diff --git a/content/.obsidian/community-plugins.json b/content/.obsidian/community-plugins.json index 3aa65ce8..be22d299 100644 --- a/content/.obsidian/community-plugins.json +++ b/content/.obsidian/community-plugins.json @@ -1,11 +1,9 @@ [ - "obsidian-zotero-desktop-connector", - "2hop-links-plus", - "obsidian-auto-link-title", "obsidian-pandoc-reference-list", "templater-obsidian", "better-word-count", "obsidian-local-rest-api", "obsidian-excalidraw-plugin", - "obsidian-git" + "obsidian-git", + "obsidian-auto-link-title" ] \ No newline at end of file diff --git a/content/.obsidian/plugins/obsidian-git/main.js b/content/.obsidian/plugins/obsidian-git/main.js index 5e45db74..d0d2c09d 100644 --- a/content/.obsidian/plugins/obsidian-git/main.js +++ b/content/.obsidian/plugins/obsidian-git/main.js @@ -37,10 +37,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge mod )); var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); -var __publicField = (obj, key2, value) => { - __defNormalProp(obj, typeof key2 !== "symbol" ? key2 + "" : key2, value); - return value; -}; +var __publicField = (obj, key2, value) => __defNormalProp(obj, typeof key2 !== "symbol" ? key2 + "" : key2, value); // node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.js var require_base64_js = __commonJS({ @@ -68,8 +65,7 @@ var require_base64_js = __commonJS({ throw new Error("Invalid string. Length must be a multiple of 4"); } var validLen = b64.indexOf("="); - if (validLen === -1) - validLen = len2; + if (validLen === -1) validLen = len2; var placeHoldersLen = validLen === len2 ? 0 : 4 - validLen % 4; return [validLen, placeHoldersLen]; } @@ -264,16 +260,14 @@ var require_buffer = __commonJS({ Object.defineProperty(Buffer2.prototype, "parent", { enumerable: true, get: function() { - if (!Buffer2.isBuffer(this)) - return void 0; + if (!Buffer2.isBuffer(this)) return void 0; return this.buffer; } }); Object.defineProperty(Buffer2.prototype, "offset", { enumerable: true, get: function() { - if (!Buffer2.isBuffer(this)) - return void 0; + if (!Buffer2.isBuffer(this)) return void 0; return this.byteOffset; } }); @@ -325,8 +319,7 @@ var require_buffer = __commonJS({ return Buffer2.from(valueOf, encodingOrOffset, length); } const b = fromObject(value); - if (b) - return b; + if (b) return b; if (typeof Symbol !== "undefined" && Symbol.toPrimitive != null && typeof value[Symbol.toPrimitive] === "function") { return Buffer2.from(value[Symbol.toPrimitive]("string"), encodingOrOffset, length); } @@ -453,17 +446,14 @@ var require_buffer = __commonJS({ return b != null && b._isBuffer === true && b !== Buffer2.prototype; }; Buffer2.compare = function compare(a, b) { - if (isInstance(a, Uint8Array)) - a = Buffer2.from(a, a.offset, a.byteLength); - if (isInstance(b, Uint8Array)) - b = Buffer2.from(b, b.offset, b.byteLength); + if (isInstance(a, Uint8Array)) a = Buffer2.from(a, a.offset, a.byteLength); + if (isInstance(b, Uint8Array)) b = Buffer2.from(b, b.offset, b.byteLength); if (!Buffer2.isBuffer(a) || !Buffer2.isBuffer(b)) { throw new TypeError( 'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array' ); } - if (a === b) - return 0; + if (a === b) return 0; let x = a.length; let y = b.length; for (let i = 0, len = Math.min(x, y); i < len; ++i) { @@ -473,10 +463,8 @@ var require_buffer = __commonJS({ break; } } - if (x < y) - return -1; - if (y < x) - return 1; + if (x < y) return -1; + if (y < x) return 1; return 0; }; Buffer2.isEncoding = function isEncoding(encoding) { @@ -517,8 +505,7 @@ var require_buffer = __commonJS({ let buf = list[i]; if (isInstance(buf, Uint8Array)) { if (pos + buf.length > buffer2.length) { - if (!Buffer2.isBuffer(buf)) - buf = Buffer2.from(buf); + if (!Buffer2.isBuffer(buf)) buf = Buffer2.from(buf); buf.copy(buffer2, pos); } else { Uint8Array.prototype.set.call( @@ -550,8 +537,7 @@ var require_buffer = __commonJS({ } const len = string.length; const mustMatch = arguments.length > 2 && arguments[2] === true; - if (!mustMatch && len === 0) - return 0; + if (!mustMatch && len === 0) return 0; let loweredCase = false; for (; ; ) { switch (encoding) { @@ -600,8 +586,7 @@ var require_buffer = __commonJS({ if (end <= start) { return ""; } - if (!encoding) - encoding = "utf8"; + if (!encoding) encoding = "utf8"; while (true) { switch (encoding) { case "hex": @@ -622,8 +607,7 @@ var require_buffer = __commonJS({ case "utf-16le": return utf16leSlice(this, start, end); default: - if (loweredCase) - throw new TypeError("Unknown encoding: " + encoding); + if (loweredCase) throw new TypeError("Unknown encoding: " + encoding); encoding = (encoding + "").toLowerCase(); loweredCase = true; } @@ -671,26 +655,21 @@ var require_buffer = __commonJS({ }; Buffer2.prototype.toString = function toString() { const length = this.length; - if (length === 0) - return ""; - if (arguments.length === 0) - return utf8Slice(this, 0, length); + if (length === 0) return ""; + if (arguments.length === 0) return utf8Slice(this, 0, length); return slowToString.apply(this, arguments); }; Buffer2.prototype.toLocaleString = Buffer2.prototype.toString; Buffer2.prototype.equals = function equals3(b) { - if (!Buffer2.isBuffer(b)) - throw new TypeError("Argument must be a Buffer"); - if (this === b) - return true; + if (!Buffer2.isBuffer(b)) throw new TypeError("Argument must be a Buffer"); + if (this === b) return true; return Buffer2.compare(this, b) === 0; }; Buffer2.prototype.inspect = function inspect() { let str = ""; const max = exports2.INSPECT_MAX_BYTES; str = this.toString("hex", 0, max).replace(/(.{2})/g, "$1 ").trim(); - if (this.length > max) - str += " ... "; + if (this.length > max) str += " ... "; return ""; }; if (customInspectSymbol) { @@ -733,8 +712,7 @@ var require_buffer = __commonJS({ end >>>= 0; thisStart >>>= 0; thisEnd >>>= 0; - if (this === target) - return 0; + if (this === target) return 0; let x = thisEnd - thisStart; let y = end - start; const len = Math.min(x, y); @@ -747,15 +725,12 @@ var require_buffer = __commonJS({ break; } } - if (x < y) - return -1; - if (y < x) - return 1; + if (x < y) return -1; + if (y < x) return 1; return 0; }; function bidirectionalIndexOf(buffer2, val, byteOffset, encoding, dir) { - if (buffer2.length === 0) - return -1; + if (buffer2.length === 0) return -1; if (typeof byteOffset === "string") { encoding = byteOffset; byteOffset = 0; @@ -768,18 +743,13 @@ var require_buffer = __commonJS({ if (numberIsNaN(byteOffset)) { byteOffset = dir ? 0 : buffer2.length - 1; } - if (byteOffset < 0) - byteOffset = buffer2.length + byteOffset; + if (byteOffset < 0) byteOffset = buffer2.length + byteOffset; if (byteOffset >= buffer2.length) { - if (dir) - return -1; - else - byteOffset = buffer2.length - 1; + if (dir) return -1; + else byteOffset = buffer2.length - 1; } else if (byteOffset < 0) { - if (dir) - byteOffset = 0; - else - return -1; + if (dir) byteOffset = 0; + else return -1; } if (typeof val === "string") { val = Buffer2.from(val, encoding); @@ -830,19 +800,15 @@ var require_buffer = __commonJS({ let foundIndex = -1; for (i = byteOffset; i < arrLength; i++) { if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) { - if (foundIndex === -1) - foundIndex = i; - if (i - foundIndex + 1 === valLength) - return foundIndex * indexSize; + if (foundIndex === -1) foundIndex = i; + if (i - foundIndex + 1 === valLength) return foundIndex * indexSize; } else { - if (foundIndex !== -1) - i -= i - foundIndex; + if (foundIndex !== -1) i -= i - foundIndex; foundIndex = -1; } } } else { - if (byteOffset + valLength > arrLength) - byteOffset = arrLength - valLength; + if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength; for (i = byteOffset; i >= 0; i--) { let found = true; for (let j = 0; j < valLength; j++) { @@ -851,8 +817,7 @@ var require_buffer = __commonJS({ break; } } - if (found) - return i; + if (found) return i; } } return -1; @@ -884,8 +849,7 @@ var require_buffer = __commonJS({ let i; for (i = 0; i < length; ++i) { const parsed = parseInt(string.substr(i * 2, 2), 16); - if (numberIsNaN(parsed)) - return i; + if (numberIsNaN(parsed)) return i; buf[offset + i] = parsed; } return i; @@ -915,8 +879,7 @@ var require_buffer = __commonJS({ offset = offset >>> 0; if (isFinite(length)) { length = length >>> 0; - if (encoding === void 0) - encoding = "utf8"; + if (encoding === void 0) encoding = "utf8"; } else { encoding = length; length = void 0; @@ -927,13 +890,11 @@ var require_buffer = __commonJS({ ); } const remaining = this.length - offset; - if (length === void 0 || length > remaining) - length = remaining; + if (length === void 0 || length > remaining) length = remaining; if (string.length > 0 && (length < 0 || offset < 0) || offset > this.length) { throw new RangeError("Attempt to write outside buffer bounds"); } - if (!encoding) - encoding = "utf8"; + if (!encoding) encoding = "utf8"; let loweredCase = false; for (; ; ) { switch (encoding) { @@ -954,8 +915,7 @@ var require_buffer = __commonJS({ case "utf-16le": return ucs2Write(this, string, offset, length); default: - if (loweredCase) - throw new TypeError("Unknown encoding: " + encoding); + if (loweredCase) throw new TypeError("Unknown encoding: " + encoding); encoding = ("" + encoding).toLowerCase(); loweredCase = true; } @@ -1068,10 +1028,8 @@ var require_buffer = __commonJS({ } function hexSlice(buf, start, end) { const len = buf.length; - if (!start || start < 0) - start = 0; - if (!end || end < 0 || end > len) - end = len; + if (!start || start < 0) start = 0; + if (!end || end < 0 || end > len) end = len; let out = ""; for (let i = start; i < end; ++i) { out += hexSliceLookupTable[buf[i]]; @@ -1092,35 +1050,29 @@ var require_buffer = __commonJS({ end = end === void 0 ? len : ~~end; if (start < 0) { start += len; - if (start < 0) - start = 0; + if (start < 0) start = 0; } else if (start > len) { start = len; } if (end < 0) { end += len; - if (end < 0) - end = 0; + if (end < 0) end = 0; } else if (end > len) { end = len; } - if (end < start) - end = start; + if (end < start) end = start; const newBuf = this.subarray(start, end); Object.setPrototypeOf(newBuf, Buffer2.prototype); return newBuf; }; function checkOffset(offset, ext, length) { - if (offset % 1 !== 0 || offset < 0) - throw new RangeError("offset is not uint"); - if (offset + ext > length) - throw new RangeError("Trying to access beyond buffer length"); + if (offset % 1 !== 0 || offset < 0) throw new RangeError("offset is not uint"); + if (offset + ext > length) throw new RangeError("Trying to access beyond buffer length"); } Buffer2.prototype.readUintLE = Buffer2.prototype.readUIntLE = function readUIntLE(offset, byteLength2, noAssert) { offset = offset >>> 0; byteLength2 = byteLength2 >>> 0; - if (!noAssert) - checkOffset(offset, byteLength2, this.length); + if (!noAssert) checkOffset(offset, byteLength2, this.length); let val = this[offset]; let mul = 1; let i = 0; @@ -1144,32 +1096,27 @@ var require_buffer = __commonJS({ }; Buffer2.prototype.readUint8 = Buffer2.prototype.readUInt8 = function readUInt8(offset, noAssert) { offset = offset >>> 0; - if (!noAssert) - checkOffset(offset, 1, this.length); + if (!noAssert) checkOffset(offset, 1, this.length); return this[offset]; }; Buffer2.prototype.readUint16LE = Buffer2.prototype.readUInt16LE = function readUInt16LE(offset, noAssert) { offset = offset >>> 0; - if (!noAssert) - checkOffset(offset, 2, this.length); + if (!noAssert) checkOffset(offset, 2, this.length); return this[offset] | this[offset + 1] << 8; }; Buffer2.prototype.readUint16BE = Buffer2.prototype.readUInt16BE = function readUInt16BE(offset, noAssert) { offset = offset >>> 0; - if (!noAssert) - checkOffset(offset, 2, this.length); + if (!noAssert) checkOffset(offset, 2, this.length); return this[offset] << 8 | this[offset + 1]; }; Buffer2.prototype.readUint32LE = Buffer2.prototype.readUInt32LE = function readUInt32LE(offset, noAssert) { offset = offset >>> 0; - if (!noAssert) - checkOffset(offset, 4, this.length); + if (!noAssert) checkOffset(offset, 4, this.length); return (this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16) + this[offset + 3] * 16777216; }; Buffer2.prototype.readUint32BE = Buffer2.prototype.readUInt32BE = function readUInt32BE(offset, noAssert) { offset = offset >>> 0; - if (!noAssert) - checkOffset(offset, 4, this.length); + if (!noAssert) checkOffset(offset, 4, this.length); return this[offset] * 16777216 + (this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3]); }; Buffer2.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE(offset) { @@ -1199,8 +1146,7 @@ var require_buffer = __commonJS({ Buffer2.prototype.readIntLE = function readIntLE(offset, byteLength2, noAssert) { offset = offset >>> 0; byteLength2 = byteLength2 >>> 0; - if (!noAssert) - checkOffset(offset, byteLength2, this.length); + if (!noAssert) checkOffset(offset, byteLength2, this.length); let val = this[offset]; let mul = 1; let i = 0; @@ -1208,15 +1154,13 @@ var require_buffer = __commonJS({ val += this[offset + i] * mul; } mul *= 128; - if (val >= mul) - val -= Math.pow(2, 8 * byteLength2); + if (val >= mul) val -= Math.pow(2, 8 * byteLength2); return val; }; Buffer2.prototype.readIntBE = function readIntBE(offset, byteLength2, noAssert) { offset = offset >>> 0; byteLength2 = byteLength2 >>> 0; - if (!noAssert) - checkOffset(offset, byteLength2, this.length); + if (!noAssert) checkOffset(offset, byteLength2, this.length); let i = byteLength2; let mul = 1; let val = this[offset + --i]; @@ -1224,42 +1168,35 @@ var require_buffer = __commonJS({ val += this[offset + --i] * mul; } mul *= 128; - if (val >= mul) - val -= Math.pow(2, 8 * byteLength2); + if (val >= mul) val -= Math.pow(2, 8 * byteLength2); return val; }; Buffer2.prototype.readInt8 = function readInt8(offset, noAssert) { offset = offset >>> 0; - if (!noAssert) - checkOffset(offset, 1, this.length); - if (!(this[offset] & 128)) - return this[offset]; + if (!noAssert) checkOffset(offset, 1, this.length); + if (!(this[offset] & 128)) return this[offset]; return (255 - this[offset] + 1) * -1; }; Buffer2.prototype.readInt16LE = function readInt16LE(offset, noAssert) { offset = offset >>> 0; - if (!noAssert) - checkOffset(offset, 2, this.length); + if (!noAssert) checkOffset(offset, 2, this.length); const val = this[offset] | this[offset + 1] << 8; return val & 32768 ? val | 4294901760 : val; }; Buffer2.prototype.readInt16BE = function readInt16BE(offset, noAssert) { offset = offset >>> 0; - if (!noAssert) - checkOffset(offset, 2, this.length); + if (!noAssert) checkOffset(offset, 2, this.length); const val = this[offset + 1] | this[offset] << 8; return val & 32768 ? val | 4294901760 : val; }; Buffer2.prototype.readInt32LE = function readInt32LE(offset, noAssert) { offset = offset >>> 0; - if (!noAssert) - checkOffset(offset, 4, this.length); + if (!noAssert) checkOffset(offset, 4, this.length); return this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16 | this[offset + 3] << 24; }; Buffer2.prototype.readInt32BE = function readInt32BE(offset, noAssert) { offset = offset >>> 0; - if (!noAssert) - checkOffset(offset, 4, this.length); + if (!noAssert) checkOffset(offset, 4, this.length); return this[offset] << 24 | this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3]; }; Buffer2.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE(offset) { @@ -1287,35 +1224,28 @@ var require_buffer = __commonJS({ }); Buffer2.prototype.readFloatLE = function readFloatLE(offset, noAssert) { offset = offset >>> 0; - if (!noAssert) - checkOffset(offset, 4, this.length); + if (!noAssert) checkOffset(offset, 4, this.length); return ieee754.read(this, offset, true, 23, 4); }; Buffer2.prototype.readFloatBE = function readFloatBE(offset, noAssert) { offset = offset >>> 0; - if (!noAssert) - checkOffset(offset, 4, this.length); + if (!noAssert) checkOffset(offset, 4, this.length); return ieee754.read(this, offset, false, 23, 4); }; Buffer2.prototype.readDoubleLE = function readDoubleLE(offset, noAssert) { offset = offset >>> 0; - if (!noAssert) - checkOffset(offset, 8, this.length); + if (!noAssert) checkOffset(offset, 8, this.length); return ieee754.read(this, offset, true, 52, 8); }; Buffer2.prototype.readDoubleBE = function readDoubleBE(offset, noAssert) { offset = offset >>> 0; - if (!noAssert) - checkOffset(offset, 8, this.length); + if (!noAssert) checkOffset(offset, 8, this.length); return ieee754.read(this, offset, false, 52, 8); }; function checkInt(buf, value, offset, ext, max, min) { - if (!Buffer2.isBuffer(buf)) - throw new TypeError('"buffer" argument must be a Buffer instance'); - if (value > max || value < min) - throw new RangeError('"value" argument is out of bounds'); - if (offset + ext > buf.length) - throw new RangeError("Index out of range"); + if (!Buffer2.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance'); + if (value > max || value < min) throw new RangeError('"value" argument is out of bounds'); + if (offset + ext > buf.length) throw new RangeError("Index out of range"); } Buffer2.prototype.writeUintLE = Buffer2.prototype.writeUIntLE = function writeUIntLE(value, offset, byteLength2, noAssert) { value = +value; @@ -1352,16 +1282,14 @@ var require_buffer = __commonJS({ Buffer2.prototype.writeUint8 = Buffer2.prototype.writeUInt8 = function writeUInt8(value, offset, noAssert) { value = +value; offset = offset >>> 0; - if (!noAssert) - checkInt(this, value, offset, 1, 255, 0); + if (!noAssert) checkInt(this, value, offset, 1, 255, 0); this[offset] = value & 255; return offset + 1; }; Buffer2.prototype.writeUint16LE = Buffer2.prototype.writeUInt16LE = function writeUInt16LE(value, offset, noAssert) { value = +value; offset = offset >>> 0; - if (!noAssert) - checkInt(this, value, offset, 2, 65535, 0); + if (!noAssert) checkInt(this, value, offset, 2, 65535, 0); this[offset] = value & 255; this[offset + 1] = value >>> 8; return offset + 2; @@ -1369,8 +1297,7 @@ var require_buffer = __commonJS({ Buffer2.prototype.writeUint16BE = Buffer2.prototype.writeUInt16BE = function writeUInt16BE(value, offset, noAssert) { value = +value; offset = offset >>> 0; - if (!noAssert) - checkInt(this, value, offset, 2, 65535, 0); + if (!noAssert) checkInt(this, value, offset, 2, 65535, 0); this[offset] = value >>> 8; this[offset + 1] = value & 255; return offset + 2; @@ -1378,8 +1305,7 @@ var require_buffer = __commonJS({ Buffer2.prototype.writeUint32LE = Buffer2.prototype.writeUInt32LE = function writeUInt32LE(value, offset, noAssert) { value = +value; offset = offset >>> 0; - if (!noAssert) - checkInt(this, value, offset, 4, 4294967295, 0); + if (!noAssert) checkInt(this, value, offset, 4, 4294967295, 0); this[offset + 3] = value >>> 24; this[offset + 2] = value >>> 16; this[offset + 1] = value >>> 8; @@ -1389,8 +1315,7 @@ var require_buffer = __commonJS({ Buffer2.prototype.writeUint32BE = Buffer2.prototype.writeUInt32BE = function writeUInt32BE(value, offset, noAssert) { value = +value; offset = offset >>> 0; - if (!noAssert) - checkInt(this, value, offset, 4, 4294967295, 0); + if (!noAssert) checkInt(this, value, offset, 4, 4294967295, 0); this[offset] = value >>> 24; this[offset + 1] = value >>> 16; this[offset + 2] = value >>> 8; @@ -1484,18 +1409,15 @@ var require_buffer = __commonJS({ Buffer2.prototype.writeInt8 = function writeInt8(value, offset, noAssert) { value = +value; offset = offset >>> 0; - if (!noAssert) - checkInt(this, value, offset, 1, 127, -128); - if (value < 0) - value = 255 + value + 1; + if (!noAssert) checkInt(this, value, offset, 1, 127, -128); + if (value < 0) value = 255 + value + 1; this[offset] = value & 255; return offset + 1; }; Buffer2.prototype.writeInt16LE = function writeInt16LE(value, offset, noAssert) { value = +value; offset = offset >>> 0; - if (!noAssert) - checkInt(this, value, offset, 2, 32767, -32768); + if (!noAssert) checkInt(this, value, offset, 2, 32767, -32768); this[offset] = value & 255; this[offset + 1] = value >>> 8; return offset + 2; @@ -1503,8 +1425,7 @@ var require_buffer = __commonJS({ Buffer2.prototype.writeInt16BE = function writeInt16BE(value, offset, noAssert) { value = +value; offset = offset >>> 0; - if (!noAssert) - checkInt(this, value, offset, 2, 32767, -32768); + if (!noAssert) checkInt(this, value, offset, 2, 32767, -32768); this[offset] = value >>> 8; this[offset + 1] = value & 255; return offset + 2; @@ -1512,8 +1433,7 @@ var require_buffer = __commonJS({ Buffer2.prototype.writeInt32LE = function writeInt32LE(value, offset, noAssert) { value = +value; offset = offset >>> 0; - if (!noAssert) - checkInt(this, value, offset, 4, 2147483647, -2147483648); + if (!noAssert) checkInt(this, value, offset, 4, 2147483647, -2147483648); this[offset] = value & 255; this[offset + 1] = value >>> 8; this[offset + 2] = value >>> 16; @@ -1523,10 +1443,8 @@ var require_buffer = __commonJS({ Buffer2.prototype.writeInt32BE = function writeInt32BE(value, offset, noAssert) { value = +value; offset = offset >>> 0; - if (!noAssert) - checkInt(this, value, offset, 4, 2147483647, -2147483648); - if (value < 0) - value = 4294967295 + value + 1; + if (!noAssert) checkInt(this, value, offset, 4, 2147483647, -2147483648); + if (value < 0) value = 4294967295 + value + 1; this[offset] = value >>> 24; this[offset + 1] = value >>> 16; this[offset + 2] = value >>> 8; @@ -1540,10 +1458,8 @@ var require_buffer = __commonJS({ return wrtBigUInt64BE(this, value, offset, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff")); }); function checkIEEE754(buf, value, offset, ext, max, min) { - if (offset + ext > buf.length) - throw new RangeError("Index out of range"); - if (offset < 0) - throw new RangeError("Index out of range"); + if (offset + ext > buf.length) throw new RangeError("Index out of range"); + if (offset < 0) throw new RangeError("Index out of range"); } function writeFloat(buf, value, offset, littleEndian, noAssert) { value = +value; @@ -1576,31 +1492,20 @@ var require_buffer = __commonJS({ return writeDouble(this, value, offset, false, noAssert); }; Buffer2.prototype.copy = function copy2(target, targetStart, start, end) { - if (!Buffer2.isBuffer(target)) - throw new TypeError("argument should be a Buffer"); - if (!start) - start = 0; - if (!end && end !== 0) - end = this.length; - if (targetStart >= target.length) - targetStart = target.length; - if (!targetStart) - targetStart = 0; - if (end > 0 && end < start) - end = start; - if (end === start) - return 0; - if (target.length === 0 || this.length === 0) - return 0; + if (!Buffer2.isBuffer(target)) throw new TypeError("argument should be a Buffer"); + if (!start) start = 0; + if (!end && end !== 0) end = this.length; + if (targetStart >= target.length) targetStart = target.length; + if (!targetStart) targetStart = 0; + if (end > 0 && end < start) end = start; + if (end === start) return 0; + if (target.length === 0 || this.length === 0) return 0; if (targetStart < 0) { throw new RangeError("targetStart out of bounds"); } - if (start < 0 || start >= this.length) - throw new RangeError("Index out of range"); - if (end < 0) - throw new RangeError("sourceEnd out of bounds"); - if (end > this.length) - end = this.length; + if (start < 0 || start >= this.length) throw new RangeError("Index out of range"); + if (end < 0) throw new RangeError("sourceEnd out of bounds"); + if (end > this.length) end = this.length; if (target.length - targetStart < end - start) { end = target.length - targetStart + start; } @@ -1651,8 +1556,7 @@ var require_buffer = __commonJS({ } start = start >>> 0; end = end === void 0 ? this.length : end >>> 0; - if (!val) - val = 0; + if (!val) val = 0; let i; if (typeof val === "number") { for (i = start; i < end; ++i) { @@ -1791,8 +1695,7 @@ var require_buffer = __commonJS({ function base64clean(str) { str = str.split("=")[0]; str = str.trim().replace(INVALID_BASE64_RE, ""); - if (str.length < 2) - return ""; + if (str.length < 2) return ""; while (str.length % 4 !== 0) { str = str + "="; } @@ -1809,51 +1712,43 @@ var require_buffer = __commonJS({ if (codePoint > 55295 && codePoint < 57344) { if (!leadSurrogate) { if (codePoint > 56319) { - if ((units -= 3) > -1) - bytes.push(239, 191, 189); + if ((units -= 3) > -1) bytes.push(239, 191, 189); continue; } else if (i + 1 === length) { - if ((units -= 3) > -1) - bytes.push(239, 191, 189); + if ((units -= 3) > -1) bytes.push(239, 191, 189); continue; } leadSurrogate = codePoint; continue; } if (codePoint < 56320) { - if ((units -= 3) > -1) - bytes.push(239, 191, 189); + if ((units -= 3) > -1) bytes.push(239, 191, 189); leadSurrogate = codePoint; continue; } codePoint = (leadSurrogate - 55296 << 10 | codePoint - 56320) + 65536; } else if (leadSurrogate) { - if ((units -= 3) > -1) - bytes.push(239, 191, 189); + if ((units -= 3) > -1) bytes.push(239, 191, 189); } leadSurrogate = null; if (codePoint < 128) { - if ((units -= 1) < 0) - break; + if ((units -= 1) < 0) break; bytes.push(codePoint); } else if (codePoint < 2048) { - if ((units -= 2) < 0) - break; + if ((units -= 2) < 0) break; bytes.push( codePoint >> 6 | 192, codePoint & 63 | 128 ); } else if (codePoint < 65536) { - if ((units -= 3) < 0) - break; + if ((units -= 3) < 0) break; bytes.push( codePoint >> 12 | 224, codePoint >> 6 & 63 | 128, codePoint & 63 | 128 ); } else if (codePoint < 1114112) { - if ((units -= 4) < 0) - break; + if ((units -= 4) < 0) break; bytes.push( codePoint >> 18 | 240, codePoint >> 12 & 63 | 128, @@ -1877,8 +1772,7 @@ var require_buffer = __commonJS({ let c, hi, lo; const byteArray = []; for (let i = 0; i < str.length; ++i) { - if ((units -= 2) < 0) - break; + if ((units -= 2) < 0) break; c = str.charCodeAt(i); hi = c >> 8; lo = c % 256; @@ -1893,8 +1787,7 @@ var require_buffer = __commonJS({ function blitBuffer(src, dst, offset, length) { let i; for (i = 0; i < length; ++i) { - if (i + offset >= dst.length || i >= src.length) - break; + if (i + offset >= dst.length || i >= src.length) break; dst[i + offset] = src[i]; } return i; @@ -2367,10 +2260,8 @@ var require_sha1 = __commonJS({ return num2 << 30 | num2 >>> 2; } function ft(s, b, c, d) { - if (s === 0) - return b & c | ~b & d; - if (s === 2) - return b & c | b & d | c & d; + if (s === 0) return b & c | ~b & d; + if (s === 2) return b & c | b & d | c & d; return b ^ c ^ d; } Sha1.prototype._update = function(M) { @@ -2380,10 +2271,8 @@ var require_sha1 = __commonJS({ var c = this._c | 0; var d = this._d | 0; var e = this._e | 0; - for (var i = 0; i < 16; ++i) - W2[i] = M.readInt32BE(i * 4); - for (; i < 80; ++i) - W2[i] = rotl1(W2[i - 3] ^ W2[i - 8] ^ W2[i - 14] ^ W2[i - 16]); + for (var i = 0; i < 16; ++i) W2[i] = M.readInt32BE(i * 4); + for (; i < 80; ++i) W2[i] = rotl1(W2[i - 3] ^ W2[i - 8] ^ W2[i - 14] ^ W2[i - 16]); for (var j = 0; j < 80; ++j) { var s = ~~(j / 20); var t = rotl5(a) + ft(s, b, c, d) + e + W2[j] + K2[s] | 0; @@ -2454,16 +2343,13 @@ var require_crc32 = __commonJS({ var T0 = signed_crc_table(); function slice_by_16_tables(T) { var c = 0, v = 0, n = 0, table = typeof Int32Array !== "undefined" ? new Int32Array(4096) : new Array(4096); - for (n = 0; n != 256; ++n) - table[n] = T[n]; + for (n = 0; n != 256; ++n) table[n] = T[n]; for (n = 0; n != 256; ++n) { v = T[n]; - for (c = 256 + n; c < 4096; c += 256) - v = table[c] = v >>> 8 ^ T[v & 255]; + for (c = 256 + n; c < 4096; c += 256) v = table[c] = v >>> 8 ^ T[v & 255]; } var out = []; - for (n = 1; n != 16; ++n) - out[n - 1] = typeof Int32Array !== "undefined" ? table.subarray(n * 256, n * 256 + 256) : table.slice(n * 256, n * 256 + 256); + for (n = 1; n != 16; ++n) out[n - 1] = typeof Int32Array !== "undefined" ? table.subarray(n * 256, n * 256 + 256) : table.slice(n * 256, n * 256 + 256); return out; } var TT = slice_by_16_tables(T0); @@ -2472,17 +2358,14 @@ var require_crc32 = __commonJS({ var Tb = TT[10], Tc = TT[11], Td = TT[12], Te = TT[13], Tf = TT[14]; function crc32_bstr(bstr, seed) { var C = seed ^ -1; - for (var i = 0, L = bstr.length; i < L; ) - C = C >>> 8 ^ T0[(C ^ bstr.charCodeAt(i++)) & 255]; + for (var i = 0, L = bstr.length; i < L; ) C = C >>> 8 ^ T0[(C ^ bstr.charCodeAt(i++)) & 255]; return ~C; } function crc32_buf(B, seed) { var C = seed ^ -1, L = B.length - 15, i = 0; - for (; i < L; ) - C = Tf[B[i++] ^ C & 255] ^ Te[B[i++] ^ C >> 8 & 255] ^ Td[B[i++] ^ C >> 16 & 255] ^ Tc[B[i++] ^ C >>> 24] ^ Tb[B[i++]] ^ Ta[B[i++]] ^ T9[B[i++]] ^ T8[B[i++]] ^ T7[B[i++]] ^ T6[B[i++]] ^ T5[B[i++]] ^ T4[B[i++]] ^ T3[B[i++]] ^ T2[B[i++]] ^ T1[B[i++]] ^ T0[B[i++]]; + for (; i < L; ) C = Tf[B[i++] ^ C & 255] ^ Te[B[i++] ^ C >> 8 & 255] ^ Td[B[i++] ^ C >> 16 & 255] ^ Tc[B[i++] ^ C >>> 24] ^ Tb[B[i++]] ^ Ta[B[i++]] ^ T9[B[i++]] ^ T8[B[i++]] ^ T7[B[i++]] ^ T6[B[i++]] ^ T5[B[i++]] ^ T4[B[i++]] ^ T3[B[i++]] ^ T2[B[i++]] ^ T1[B[i++]] ^ T0[B[i++]]; L += 15; - while (i < L) - C = C >>> 8 ^ T0[(C ^ B[i++]) & 255]; + while (i < L) C = C >>> 8 ^ T0[(C ^ B[i++]) & 255]; return ~C; } function crc32_str(str, seed) { @@ -4568,8 +4451,7 @@ var require_deflate2 = __commonJS({ var Z_DEFAULT_STRATEGY = 0; var Z_DEFLATED = 8; function Deflate(options) { - if (!(this instanceof Deflate)) - return new Deflate(options); + if (!(this instanceof Deflate)) return new Deflate(options); this.options = utils.assign({ level: Z_DEFAULT_COMPRESSION, method: Z_DEFLATED, @@ -6558,8 +6440,7 @@ var require_inflate2 = __commonJS({ var GZheader = require_gzheader(); var toString = Object.prototype.toString; function Inflate(options) { - if (!(this instanceof Inflate)) - return new Inflate(options); + if (!(this instanceof Inflate)) return new Inflate(options); this.options = utils.assign({ chunkSize: 16384, windowBits: 0, @@ -7446,8 +7327,7 @@ var require_diff3 = __commonJS({ while (hunkIndex < hunks.length - 1) { var maybeOverlapping = hunks[hunkIndex + 1]; var maybeLhs = maybeOverlapping[0]; - if (maybeLhs > regionRhs) - break; + if (maybeLhs > regionRhs) break; regionRhs = Math.max(regionRhs, maybeLhs + maybeOverlapping[2]); hunkIndex++; } @@ -7512,13 +7392,11 @@ var require_diff3 = __commonJS({ } } function isTrueConflict(rec) { - if (rec[2] != rec[6]) - return true; + if (rec[2] != rec[6]) return true; var aoff = rec[1]; var boff = rec[5]; for (var j = 0; j < rec[2]; j++) { - if (a[j + aoff] != b[j + boff]) - return true; + if (a[j + aoff] != b[j + boff]) return true; } return false; } @@ -7669,9 +7547,9 @@ var require_ms = __commonJS({ } }); -// node_modules/.pnpm/debug@4.3.4_supports-color@9.4.0/node_modules/debug/src/common.js +// node_modules/.pnpm/debug@4.3.5_supports-color@9.4.0/node_modules/debug/src/common.js var require_common2 = __commonJS({ - "node_modules/.pnpm/debug@4.3.4_supports-color@9.4.0/node_modules/debug/src/common.js"(exports2, module2) { + "node_modules/.pnpm/debug@4.3.5_supports-color@9.4.0/node_modules/debug/src/common.js"(exports2, module2) { init_polyfill_buffer(); function setup(env) { createDebug.debug = createDebug; @@ -7833,9 +7711,9 @@ var require_common2 = __commonJS({ } }); -// node_modules/.pnpm/debug@4.3.4_supports-color@9.4.0/node_modules/debug/src/browser.js +// node_modules/.pnpm/debug@4.3.5_supports-color@9.4.0/node_modules/debug/src/browser.js var require_browser = __commonJS({ - "node_modules/.pnpm/debug@4.3.4_supports-color@9.4.0/node_modules/debug/src/browser.js"(exports2, module2) { + "node_modules/.pnpm/debug@4.3.5_supports-color@9.4.0/node_modules/debug/src/browser.js"(exports2, module2) { init_polyfill_buffer(); exports2.formatArgs = formatArgs; exports2.save = save; @@ -8054,9 +7932,7 @@ var require_dist = __commonJS({ "use strict"; init_polyfill_buffer(); function __export3(m) { - for (var p in m) - if (!exports2.hasOwnProperty(p)) - exports2[p] = m[p]; + for (var p in m) if (!exports2.hasOwnProperty(p)) exports2[p] = m[p]; } Object.defineProperty(exports2, "__esModule", { value: true }); __export3(require_src()); @@ -8422,16 +8298,13 @@ var require_lib3 = __commonJS({ var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; - if ("value" in descriptor) - descriptor.writable = true; + if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) - _defineProperties(Constructor.prototype, protoProps); - if (staticProps) - _defineProperties(Constructor, staticProps); + if (protoProps) _defineProperties(Constructor.prototype, protoProps); + if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _slicedToArray(arr, i) { @@ -8441,29 +8314,22 @@ var require_lib3 = __commonJS({ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _unsupportedIterableToArray2(o, minLen) { - if (!o) - return; - if (typeof o === "string") - return _arrayLikeToArray2(o, minLen); + if (!o) return; + if (typeof o === "string") return _arrayLikeToArray2(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) - n = o.constructor.name; - if (n === "Map" || n === "Set") - return Array.from(o); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) - return _arrayLikeToArray2(o, minLen); + if (n === "Object" && o.constructor) n = o.constructor.name; + if (n === "Map" || n === "Set") return Array.from(o); + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray2(o, minLen); } function _arrayLikeToArray2(arr, len) { - if (len == null || len > arr.length) - len = arr.length; + if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } function _iterableToArrayLimit(arr, i) { - if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) - return; + if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; @@ -8471,26 +8337,22 @@ var require_lib3 = __commonJS({ try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); - if (i && _arr.length === i) - break; + if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { - if (!_n && _i["return"] != null) - _i["return"](); + if (!_n && _i["return"] != null) _i["return"](); } finally { - if (_d) - throw _e; + if (_d) throw _e; } } return _arr; } function _arrayWithHoles(arr) { - if (Array.isArray(arr)) - return arr; + if (Array.isArray(arr)) return arr; } var hex = /^#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})?$/; var shortHex = /^#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])?$/; @@ -8537,16 +8399,11 @@ var require_lib3 = __commonJS({ var x = c * (1 - Math.abs(hprim % 2 - 1)); var m = lprim - c / 2; var _ref = function() { - if (hprim < 1) - return [c, x, 0]; - if (hprim < 2) - return [x, c, 0]; - if (hprim < 3) - return [0, c, x]; - if (hprim < 4) - return [0, x, c]; - if (hprim < 5) - return [x, 0, c]; + if (hprim < 1) return [c, x, 0]; + if (hprim < 2) return [x, c, 0]; + if (hprim < 3) return [0, c, x]; + if (hprim < 4) return [0, x, c]; + if (hprim < 5) return [x, 0, c]; return [c, 0, x]; }(), _ref2 = _slicedToArray(_ref, 3), rprim = _ref2[0], gprim = _ref2[1], bprim = _ref2[2]; return [(rprim + m) * 255, (gprim + m) * 255, (bprim + m) * 255]; @@ -8994,17 +8851,18 @@ var require_has_symbols = __commonJS({ } }); -// node_modules/.pnpm/has-proto@1.0.1/node_modules/has-proto/index.js +// node_modules/.pnpm/has-proto@1.0.3/node_modules/has-proto/index.js var require_has_proto = __commonJS({ - "node_modules/.pnpm/has-proto@1.0.1/node_modules/has-proto/index.js"(exports2, module2) { + "node_modules/.pnpm/has-proto@1.0.3/node_modules/has-proto/index.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); var test = { + __proto__: null, foo: {} }; var $Object = Object; module2.exports = function hasProto() { - return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object); + return { __proto__: test }.foo === test.foo && !(test instanceof $Object); }; } }); @@ -9096,9 +8954,9 @@ var require_function_bind = __commonJS({ } }); -// node_modules/.pnpm/hasown@2.0.1/node_modules/hasown/index.js +// node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js var require_hasown = __commonJS({ - "node_modules/.pnpm/hasown@2.0.1/node_modules/hasown/index.js"(exports2, module2) { + "node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); var call = Function.prototype.call; @@ -9423,35 +9281,21 @@ var require_get_intrinsic = __commonJS({ } }); -// node_modules/.pnpm/has-property-descriptors@1.0.1/node_modules/has-property-descriptors/index.js -var require_has_property_descriptors = __commonJS({ - "node_modules/.pnpm/has-property-descriptors@1.0.1/node_modules/has-property-descriptors/index.js"(exports2, module2) { +// node_modules/.pnpm/es-define-property@1.0.0/node_modules/es-define-property/index.js +var require_es_define_property = __commonJS({ + "node_modules/.pnpm/es-define-property@1.0.0/node_modules/es-define-property/index.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); var GetIntrinsic = require_get_intrinsic(); - var $defineProperty = GetIntrinsic("%Object.defineProperty%", true); - var hasPropertyDescriptors = function hasPropertyDescriptors2() { - if ($defineProperty) { - try { - $defineProperty({}, "a", { value: 1 }); - return true; - } catch (e) { - return false; - } - } - return false; - }; - hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() { - if (!hasPropertyDescriptors()) { - return null; - } + var $defineProperty = GetIntrinsic("%Object.defineProperty%", true) || false; + if ($defineProperty) { try { - return $defineProperty([], "length", { value: 1 }).length !== 1; + $defineProperty({}, "a", { value: 1 }); } catch (e) { - return true; + $defineProperty = false; } - }; - module2.exports = hasPropertyDescriptors; + } + module2.exports = $defineProperty; } }); @@ -9473,21 +9317,12 @@ var require_gopd = __commonJS({ } }); -// node_modules/.pnpm/define-data-property@1.1.2/node_modules/define-data-property/index.js +// node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.js var require_define_data_property = __commonJS({ - "node_modules/.pnpm/define-data-property@1.1.2/node_modules/define-data-property/index.js"(exports2, module2) { + "node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); - var hasPropertyDescriptors = require_has_property_descriptors()(); - var GetIntrinsic = require_get_intrinsic(); - var $defineProperty = hasPropertyDescriptors && GetIntrinsic("%Object.defineProperty%", true); - if ($defineProperty) { - try { - $defineProperty({}, "a", { value: 1 }); - } catch (e) { - $defineProperty = false; - } - } + var $defineProperty = require_es_define_property(); var $SyntaxError = require_syntax(); var $TypeError = require_type(); var gopd = require_gopd(); @@ -9531,6 +9366,29 @@ var require_define_data_property = __commonJS({ } }); +// node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.js +var require_has_property_descriptors = __commonJS({ + "node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.js"(exports2, module2) { + "use strict"; + init_polyfill_buffer(); + var $defineProperty = require_es_define_property(); + var hasPropertyDescriptors = function hasPropertyDescriptors2() { + return !!$defineProperty; + }; + hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() { + if (!$defineProperty) { + return null; + } + try { + return $defineProperty([], "length", { value: 1 }).length !== 1; + } catch (e) { + return true; + } + }; + module2.exports = hasPropertyDescriptors; + } +}); + // node_modules/.pnpm/define-properties@1.2.1/node_modules/define-properties/index.js var require_define_properties = __commonJS({ "node_modules/.pnpm/define-properties@1.2.1/node_modules/define-properties/index.js"(exports2, module2) { @@ -9576,9 +9434,9 @@ var require_define_properties = __commonJS({ } }); -// node_modules/.pnpm/set-function-length@1.2.1/node_modules/set-function-length/index.js +// node_modules/.pnpm/set-function-length@1.2.2/node_modules/set-function-length/index.js var require_set_function_length = __commonJS({ - "node_modules/.pnpm/set-function-length@1.2.1/node_modules/set-function-length/index.js"(exports2, module2) { + "node_modules/.pnpm/set-function-length@1.2.2/node_modules/set-function-length/index.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); var GetIntrinsic = require_get_intrinsic(); @@ -9630,9 +9488,9 @@ var require_set_function_length = __commonJS({ } }); -// node_modules/.pnpm/call-bind@1.0.6/node_modules/call-bind/index.js +// node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/index.js var require_call_bind = __commonJS({ - "node_modules/.pnpm/call-bind@1.0.6/node_modules/call-bind/index.js"(exports2, module2) { + "node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/index.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); var bind = require_function_bind(); @@ -9642,15 +9500,8 @@ var require_call_bind = __commonJS({ var $apply = GetIntrinsic("%Function.prototype.apply%"); var $call = GetIntrinsic("%Function.prototype.call%"); var $reflectApply = GetIntrinsic("%Reflect.apply%", true) || bind.call($call, $apply); - var $defineProperty = GetIntrinsic("%Object.defineProperty%", true); + var $defineProperty = require_es_define_property(); var $max = GetIntrinsic("%Math.max%"); - if ($defineProperty) { - try { - $defineProperty({}, "a", { value: 1 }); - } catch (e) { - $defineProperty = null; - } - } module2.exports = function callBind(originalFunction) { if (typeof originalFunction !== "function") { throw new $TypeError("a function is required"); @@ -9673,9 +9524,9 @@ var require_call_bind = __commonJS({ } }); -// node_modules/.pnpm/call-bind@1.0.6/node_modules/call-bind/callBound.js +// node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/callBound.js var require_callBound = __commonJS({ - "node_modules/.pnpm/call-bind@1.0.6/node_modules/call-bind/callBound.js"(exports2, module2) { + "node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/callBound.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); var GetIntrinsic = require_get_intrinsic(); @@ -9865,15 +9716,15 @@ var require_functions_have_names = __commonJS({ } }); -// node_modules/.pnpm/set-function-name@2.0.1/node_modules/set-function-name/index.js +// node_modules/.pnpm/set-function-name@2.0.2/node_modules/set-function-name/index.js var require_set_function_name = __commonJS({ - "node_modules/.pnpm/set-function-name@2.0.1/node_modules/set-function-name/index.js"(exports2, module2) { + "node_modules/.pnpm/set-function-name@2.0.2/node_modules/set-function-name/index.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); var define2 = require_define_data_property(); var hasDescriptors = require_has_property_descriptors()(); var functionsHaveConfigurableNames = require_functions_have_names().functionsHaveConfigurableNames(); - var $TypeError = TypeError; + var $TypeError = require_type(); module2.exports = function setFunctionName(fn, name) { if (typeof fn !== "function") { throw new $TypeError("`fn` is not a function"); @@ -9881,9 +9732,21 @@ var require_set_function_name = __commonJS({ var loose = arguments.length > 2 && !!arguments[2]; if (!loose || functionsHaveConfigurableNames) { if (hasDescriptors) { - define2(fn, "name", name, true, true); + define2( + /** @type {Parameters[0]} */ + fn, + "name", + name, + true, + true + ); } else { - define2(fn, "name", name); + define2( + /** @type {Parameters[0]} */ + fn, + "name", + name + ); } } return fn; @@ -10058,16 +9921,16 @@ var require_is_arguments = __commonJS({ } }); -// (disabled):node_modules/.pnpm/object-inspect@1.13.1/node_modules/object-inspect/util.inspect +// (disabled):node_modules/.pnpm/object-inspect@1.13.2/node_modules/object-inspect/util.inspect var require_util = __commonJS({ - "(disabled):node_modules/.pnpm/object-inspect@1.13.1/node_modules/object-inspect/util.inspect"() { + "(disabled):node_modules/.pnpm/object-inspect@1.13.2/node_modules/object-inspect/util.inspect"() { init_polyfill_buffer(); } }); -// node_modules/.pnpm/object-inspect@1.13.1/node_modules/object-inspect/index.js +// node_modules/.pnpm/object-inspect@1.13.2/node_modules/object-inspect/index.js var require_object_inspect = __commonJS({ - "node_modules/.pnpm/object-inspect@1.13.1/node_modules/object-inspect/index.js"(exports2, module2) { + "node_modules/.pnpm/object-inspect@1.13.2/node_modules/object-inspect/index.js"(exports2, module2) { init_polyfill_buffer(); var hasMap = typeof Map === "function" && Map.prototype; var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null; @@ -10285,7 +10148,7 @@ var require_object_inspect = __commonJS({ if (typeof window !== "undefined" && obj === window) { return "{ [object Window] }"; } - if (obj === global) { + if (typeof globalThis !== "undefined" && obj === globalThis || typeof global !== "undefined" && obj === global) { return "{ [object globalThis] }"; } if (!isDate(obj) && !isRegExp(obj)) { @@ -10581,9 +10444,9 @@ var require_object_inspect = __commonJS({ } }); -// node_modules/.pnpm/side-channel@1.0.5/node_modules/side-channel/index.js +// node_modules/.pnpm/side-channel@1.0.6/node_modules/side-channel/index.js var require_side_channel = __commonJS({ - "node_modules/.pnpm/side-channel@1.0.5/node_modules/side-channel/index.js"(exports2, module2) { + "node_modules/.pnpm/side-channel@1.0.6/node_modules/side-channel/index.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); var GetIntrinsic = require_get_intrinsic(); @@ -10599,10 +10462,13 @@ var require_side_channel = __commonJS({ var $mapSet = callBound("Map.prototype.set", true); var $mapHas = callBound("Map.prototype.has", true); var listGetNode = function(list, key2) { - for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) { + var prev = list; + var curr; + for (; (curr = prev.next) !== null; prev = curr) { if (curr.key === key2) { prev.next = curr.next; - curr.next = list.next; + curr.next = /** @type {NonNullable} */ + list.next; list.next = curr; return curr; } @@ -10617,8 +10483,9 @@ var require_side_channel = __commonJS({ if (node) { node.value = value; } else { - objects.next = { - // eslint-disable-line no-param-reassign + objects.next = /** @type {import('.').ListNode} */ + { + // eslint-disable-line no-param-reassign, no-extra-parens key: key2, next: objects.next, value @@ -10836,9 +10703,9 @@ var require_is_string = __commonJS({ } }); -// node_modules/.pnpm/is-map@2.0.2/node_modules/is-map/index.js +// node_modules/.pnpm/is-map@2.0.3/node_modules/is-map/index.js var require_is_map = __commonJS({ - "node_modules/.pnpm/is-map@2.0.2/node_modules/is-map/index.js"(exports2, module2) { + "node_modules/.pnpm/is-map@2.0.3/node_modules/is-map/index.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); var $Map = typeof Map === "function" && Map.prototype ? Map : null; @@ -10877,9 +10744,9 @@ var require_is_map = __commonJS({ } }); -// node_modules/.pnpm/is-set@2.0.2/node_modules/is-set/index.js +// node_modules/.pnpm/is-set@2.0.3/node_modules/is-set/index.js var require_is_set = __commonJS({ - "node_modules/.pnpm/is-set@2.0.2/node_modules/is-set/index.js"(exports2, module2) { + "node_modules/.pnpm/is-set@2.0.3/node_modules/is-set/index.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); var $Map = typeof Map === "function" && Map.prototype ? Map : null; @@ -11078,9 +10945,9 @@ var require_es_get_iterator = __commonJS({ } }); -// node_modules/.pnpm/object-is@1.1.5/node_modules/object-is/implementation.js +// node_modules/.pnpm/object-is@1.1.6/node_modules/object-is/implementation.js var require_implementation5 = __commonJS({ - "node_modules/.pnpm/object-is@1.1.5/node_modules/object-is/implementation.js"(exports2, module2) { + "node_modules/.pnpm/object-is@1.1.6/node_modules/object-is/implementation.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); var numberIsNaN = function(value) { @@ -11101,9 +10968,9 @@ var require_implementation5 = __commonJS({ } }); -// node_modules/.pnpm/object-is@1.1.5/node_modules/object-is/polyfill.js +// node_modules/.pnpm/object-is@1.1.6/node_modules/object-is/polyfill.js var require_polyfill3 = __commonJS({ - "node_modules/.pnpm/object-is@1.1.5/node_modules/object-is/polyfill.js"(exports2, module2) { + "node_modules/.pnpm/object-is@1.1.6/node_modules/object-is/polyfill.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); var implementation = require_implementation5(); @@ -11113,9 +10980,9 @@ var require_polyfill3 = __commonJS({ } }); -// node_modules/.pnpm/object-is@1.1.5/node_modules/object-is/shim.js +// node_modules/.pnpm/object-is@1.1.6/node_modules/object-is/shim.js var require_shim3 = __commonJS({ - "node_modules/.pnpm/object-is@1.1.5/node_modules/object-is/shim.js"(exports2, module2) { + "node_modules/.pnpm/object-is@1.1.6/node_modules/object-is/shim.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); var getPolyfill = require_polyfill3(); @@ -11132,9 +10999,9 @@ var require_shim3 = __commonJS({ } }); -// node_modules/.pnpm/object-is@1.1.5/node_modules/object-is/index.js +// node_modules/.pnpm/object-is@1.1.6/node_modules/object-is/index.js var require_object_is = __commonJS({ - "node_modules/.pnpm/object-is@1.1.5/node_modules/object-is/index.js"(exports2, module2) { + "node_modules/.pnpm/object-is@1.1.6/node_modules/object-is/index.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); var define2 = require_define_properties(); @@ -11266,9 +11133,9 @@ var require_is_regex = __commonJS({ } }); -// node_modules/.pnpm/is-shared-array-buffer@1.0.2/node_modules/is-shared-array-buffer/index.js +// node_modules/.pnpm/is-shared-array-buffer@1.0.3/node_modules/is-shared-array-buffer/index.js var require_is_shared_array_buffer = __commonJS({ - "node_modules/.pnpm/is-shared-array-buffer@1.0.2/node_modules/is-shared-array-buffer/index.js"(exports2, module2) { + "node_modules/.pnpm/is-shared-array-buffer@1.0.3/node_modules/is-shared-array-buffer/index.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); var callBound = require_callBound(); @@ -11468,9 +11335,9 @@ var require_which_boxed_primitive = __commonJS({ } }); -// node_modules/.pnpm/is-weakmap@2.0.1/node_modules/is-weakmap/index.js +// node_modules/.pnpm/is-weakmap@2.0.2/node_modules/is-weakmap/index.js var require_is_weakmap = __commonJS({ - "node_modules/.pnpm/is-weakmap@2.0.1/node_modules/is-weakmap/index.js"(exports2, module2) { + "node_modules/.pnpm/is-weakmap@2.0.2/node_modules/is-weakmap/index.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); var $WeakMap = typeof WeakMap === "function" && WeakMap.prototype ? WeakMap : null; @@ -11509,9 +11376,9 @@ var require_is_weakmap = __commonJS({ } }); -// node_modules/.pnpm/is-weakset@2.0.2/node_modules/is-weakset/index.js +// node_modules/.pnpm/is-weakset@2.0.3/node_modules/is-weakset/index.js var require_is_weakset = __commonJS({ - "node_modules/.pnpm/is-weakset@2.0.2/node_modules/is-weakset/index.js"(exports2, module2) { + "node_modules/.pnpm/is-weakset@2.0.3/node_modules/is-weakset/index.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); var GetIntrinsic = require_get_intrinsic(); @@ -11547,9 +11414,9 @@ var require_is_weakset = __commonJS({ } }); -// node_modules/.pnpm/which-collection@1.0.1/node_modules/which-collection/index.js +// node_modules/.pnpm/which-collection@1.0.2/node_modules/which-collection/index.js var require_which_collection = __commonJS({ - "node_modules/.pnpm/which-collection@1.0.1/node_modules/which-collection/index.js"(exports2, module2) { + "node_modules/.pnpm/which-collection@1.0.2/node_modules/which-collection/index.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); var isMap = require_is_map(); @@ -11754,24 +11621,33 @@ var require_for_each = __commonJS({ } }); -// node_modules/.pnpm/available-typed-arrays@1.0.6/node_modules/available-typed-arrays/index.js -var require_available_typed_arrays = __commonJS({ - "node_modules/.pnpm/available-typed-arrays@1.0.6/node_modules/available-typed-arrays/index.js"(exports2, module2) { +// node_modules/.pnpm/possible-typed-array-names@1.0.0/node_modules/possible-typed-array-names/index.js +var require_possible_typed_array_names = __commonJS({ + "node_modules/.pnpm/possible-typed-array-names@1.0.0/node_modules/possible-typed-array-names/index.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); - var possibleNames = [ - "BigInt64Array", - "BigUint64Array", + module2.exports = [ "Float32Array", "Float64Array", + "Int8Array", "Int16Array", "Int32Array", - "Int8Array", + "Uint8Array", + "Uint8ClampedArray", "Uint16Array", "Uint32Array", - "Uint8Array", - "Uint8ClampedArray" + "BigInt64Array", + "BigUint64Array" ]; + } +}); + +// node_modules/.pnpm/available-typed-arrays@1.0.7/node_modules/available-typed-arrays/index.js +var require_available_typed_arrays = __commonJS({ + "node_modules/.pnpm/available-typed-arrays@1.0.7/node_modules/available-typed-arrays/index.js"(exports2, module2) { + "use strict"; + init_polyfill_buffer(); + var possibleNames = require_possible_typed_array_names(); var g = typeof globalThis === "undefined" ? global : globalThis; module2.exports = function availableTypedArrays() { var out = []; @@ -11785,9 +11661,9 @@ var require_available_typed_arrays = __commonJS({ } }); -// node_modules/.pnpm/which-typed-array@1.1.14/node_modules/which-typed-array/index.js +// node_modules/.pnpm/which-typed-array@1.1.15/node_modules/which-typed-array/index.js var require_which_typed_array = __commonJS({ - "node_modules/.pnpm/which-typed-array@1.1.14/node_modules/which-typed-array/index.js"(exports2, module2) { + "node_modules/.pnpm/which-typed-array@1.1.15/node_modules/which-typed-array/index.js"(exports2, module2) { "use strict"; init_polyfill_buffer(); var forEach2 = require_for_each(); @@ -11801,8 +11677,7 @@ var require_which_typed_array = __commonJS({ var typedArrays = availableTypedArrays(); var $slice = callBound("String.prototype.slice"); var getPrototypeOf = Object.getPrototypeOf; - var $indexOf = callBound("Array.prototype.indexOf", true) || /** @type {(array: readonly unknown[], value: unknown) => keyof array} */ - function indexOf(array, value) { + var $indexOf = callBound("Array.prototype.indexOf", true) || function indexOf(array, value) { for (var i = 0; i < array.length; i += 1) { if (array[i] === value) { return i; @@ -11837,10 +11712,10 @@ var require_which_typed_array = __commonJS({ var found = false; forEach2( // eslint-disable-next-line no-extra-parens - /** @type {Record<`\$${TypedArrayName}`, typeof cache>} */ + /** @type {Record<`\$${TypedArrayName}`, Getter>} */ /** @type {any} */ cache, - /** @type {(getter: typeof cache, name: `\$${TypedArrayName}`) => void} */ + /** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */ function(getter, typedArray) { if (!found) { try { @@ -11858,9 +11733,10 @@ var require_which_typed_array = __commonJS({ var found = false; forEach2( // eslint-disable-next-line no-extra-parens + /** @type {Record<`\$${TypedArrayName}`, Getter>} */ /** @type {any} */ cache, - /** @type {(getter: typeof cache, name: `\$${TypedArrayName}`) => void} */ + /** @type {(getter: typeof cache, name: `\$${import('.').TypedArrayName}`) => void} */ function(getter, name) { if (!found) { try { @@ -13178,8 +13054,7 @@ var require_template = __commonJS({ } this.partials[symbol].base = template; if (partial.subs) { - if (!partials.stackText) - partials.stackText = {}; + if (!partials.stackText) partials.stackText = {}; for (key in partial.subs) { if (!partials.stackText[key]) { partials.stackText[key] = this.activeSub !== void 0 && partials.stackText[this.activeSub] ? partials.stackText[this.activeSub] : this.text; @@ -13362,8 +13237,7 @@ var require_template = __commonJS({ partial.stackSubs = stackSubs; partial.subsText = stackText; for (key2 in subs) { - if (!stackSubs[key2]) - stackSubs[key2] = subs[key2]; + if (!stackSubs[key2]) stackSubs[key2] = subs[key2]; } for (key2 in stackSubs) { partial.subs[key2] = stackSubs[key2]; @@ -13371,8 +13245,7 @@ var require_template = __commonJS({ stackPartials = stackPartials || {}; partial.stackPartials = stackPartials; for (key2 in partials) { - if (!stackPartials[key2]) - stackPartials[key2] = partials[key2]; + if (!stackPartials[key2]) stackPartials[key2] = partials[key2]; } for (key2 in stackPartials) { partial.partials[key2] = stackPartials[key2]; @@ -13405,9 +13278,9 @@ var require_hogan = __commonJS({ } }); -// node_modules/.pnpm/feather-icons@4.29.1/node_modules/feather-icons/dist/feather.js +// node_modules/.pnpm/feather-icons@4.29.2/node_modules/feather-icons/dist/feather.js var require_feather = __commonJS({ - "node_modules/.pnpm/feather-icons@4.29.1/node_modules/feather-icons/dist/feather.js"(exports2, module2) { + "node_modules/.pnpm/feather-icons@4.29.2/node_modules/feather-icons/dist/feather.js"(exports2, module2) { init_polyfill_buffer(); (function webpackUniversalModuleDefinition(root2, factory) { if (typeof exports2 === "object" && typeof module2 === "object") @@ -13487,7 +13360,7 @@ var require_feather = __commonJS({ /*! exports provided: activity, airplay, alert-circle, alert-octagon, alert-triangle, align-center, align-justify, align-left, align-right, anchor, aperture, archive, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, award, bar-chart-2, bar-chart, battery-charging, battery, bell-off, bell, bluetooth, bold, book-open, book, bookmark, box, briefcase, calendar, camera-off, camera, cast, check-circle, check-square, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, chrome, circle, clipboard, clock, cloud-drizzle, cloud-lightning, cloud-off, cloud-rain, cloud-snow, cloud, code, codepen, codesandbox, coffee, columns, command, compass, copy, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, cpu, credit-card, crop, crosshair, database, delete, disc, divide-circle, divide-square, divide, dollar-sign, download-cloud, download, dribbble, droplet, edit-2, edit-3, edit, external-link, eye-off, eye, facebook, fast-forward, feather, figma, file-minus, file-plus, file-text, file, film, filter, flag, folder-minus, folder-plus, folder, framer, frown, gift, git-branch, git-commit, git-merge, git-pull-request, github, gitlab, globe, grid, hard-drive, hash, headphones, heart, help-circle, hexagon, home, image, inbox, info, instagram, italic, key, layers, layout, life-buoy, link-2, link, linkedin, list, loader, lock, log-in, log-out, mail, map-pin, map, maximize-2, maximize, meh, menu, message-circle, message-square, mic-off, mic, minimize-2, minimize, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, mouse-pointer, move, music, navigation-2, navigation, octagon, package, paperclip, pause-circle, pause, pen-tool, percent, phone-call, phone-forwarded, phone-incoming, phone-missed, phone-off, phone-outgoing, phone, pie-chart, play-circle, play, plus-circle, plus-square, plus, pocket, power, printer, radio, refresh-ccw, refresh-cw, repeat, rewind, rotate-ccw, rotate-cw, rss, save, scissors, search, send, server, settings, share-2, share, shield-off, shield, shopping-bag, shopping-cart, shuffle, sidebar, skip-back, skip-forward, slack, slash, sliders, smartphone, smile, speaker, square, star, stop-circle, sun, sunrise, sunset, table, tablet, tag, target, terminal, thermometer, thumbs-down, thumbs-up, toggle-left, toggle-right, tool, trash-2, trash, trello, trending-down, trending-up, triangle, truck, tv, twitch, twitter, type, umbrella, underline, unlock, upload-cloud, upload, user-check, user-minus, user-plus, user-x, user, users, video-off, video, voicemail, volume-1, volume-2, volume-x, volume, watch, wifi-off, wifi, wind, x-circle, x-octagon, x-square, x, youtube, zap-off, zap, zoom-in, zoom-out, default */ /***/ function(module3) { - module3.exports = { "activity": '', "airplay": '', "alert-circle": '', "alert-octagon": '', "alert-triangle": '', "align-center": '', "align-justify": '', "align-left": '', "align-right": '', "anchor": '', "aperture": '', "archive": '', "arrow-down-circle": '', "arrow-down-left": '', "arrow-down-right": '', "arrow-down": '', "arrow-left-circle": '', "arrow-left": '', "arrow-right-circle": '', "arrow-right": '', "arrow-up-circle": '', "arrow-up-left": '', "arrow-up-right": '', "arrow-up": '', "at-sign": '', "award": '', "bar-chart-2": '', "bar-chart": '', "battery-charging": '', "battery": '', "bell-off": '', "bell": '', "bluetooth": '', "bold": '', "book-open": '', "book": '', "bookmark": '', "box": '', "briefcase": '', "calendar": '', "camera-off": '', "camera": '', "cast": '', "check-circle": '', "check-square": '', "check": '', "chevron-down": '', "chevron-left": '', "chevron-right": '', "chevron-up": '', "chevrons-down": '', "chevrons-left": '', "chevrons-right": '', "chevrons-up": '', "chrome": '', "circle": '', "clipboard": '', "clock": '', "cloud-drizzle": '', "cloud-lightning": '', "cloud-off": '', "cloud-rain": '', "cloud-snow": '', "cloud": '', "code": '', "codepen": '', "codesandbox": '', "coffee": '', "columns": '', "command": '', "compass": '', "copy": '', "corner-down-left": '', "corner-down-right": '', "corner-left-down": '', "corner-left-up": '', "corner-right-down": '', "corner-right-up": '', "corner-up-left": '', "corner-up-right": '', "cpu": '', "credit-card": '', "crop": '', "crosshair": '', "database": '', "delete": '', "disc": '', "divide-circle": '', "divide-square": '', "divide": '', "dollar-sign": '', "download-cloud": '', "download": '', "dribbble": '', "droplet": '', "edit-2": '', "edit-3": '', "edit": '', "external-link": '', "eye-off": '', "eye": '', "facebook": '', "fast-forward": '', "feather": '', "figma": '', "file-minus": '', "file-plus": '', "file-text": '', "file": '', "film": '', "filter": '', "flag": '', "folder-minus": '', "folder-plus": '', "folder": '', "framer": '', "frown": '', "gift": '', "git-branch": '', "git-commit": '', "git-merge": '', "git-pull-request": '', "github": '', "gitlab": '', "globe": '', "grid": '', "hard-drive": '', "hash": '', "headphones": '', "heart": '', "help-circle": '', "hexagon": '', "home": '', "image": '', "inbox": '', "info": '', "instagram": '', "italic": '', "key": '', "layers": '', "layout": '', "life-buoy": '', "link-2": '', "link": '', "linkedin": '', "list": '', "loader": '', "lock": '', "log-in": '', "log-out": '', "mail": '', "map-pin": '', "map": '', "maximize-2": '', "maximize": '', "meh": '', "menu": '', "message-circle": '', "message-square": '', "mic-off": '', "mic": '', "minimize-2": '', "minimize": '', "minus-circle": '', "minus-square": '', "minus": '', "monitor": '', "moon": '', "more-horizontal": '', "more-vertical": '', "mouse-pointer": '', "move": '', "music": '', "navigation-2": '', "navigation": '', "octagon": '', "package": '', "paperclip": '', "pause-circle": '', "pause": '', "pen-tool": '', "percent": '', "phone-call": '', "phone-forwarded": '', "phone-incoming": '', "phone-missed": '', "phone-off": '', "phone-outgoing": '', "phone": '', "pie-chart": '', "play-circle": '', "play": '', "plus-circle": '', "plus-square": '', "plus": '', "pocket": '', "power": '', "printer": '', "radio": '', "refresh-ccw": '', "refresh-cw": '', "repeat": '', "rewind": '', "rotate-ccw": '', "rotate-cw": '', "rss": '', "save": '', "scissors": '', "search": '', "send": '', "server": '', "settings": '', "share-2": '', "share": '', "shield-off": '', "shield": '', "shopping-bag": '', "shopping-cart": '', "shuffle": '', "sidebar": '', "skip-back": '', "skip-forward": '', "slack": '', "slash": '', "sliders": '', "smartphone": '', "smile": '', "speaker": '', "square": '', "star": '', "stop-circle": '', "sun": '', "sunrise": '', "sunset": '', "table": '', "tablet": '', "tag": '', "target": '', "terminal": '', "thermometer": '', "thumbs-down": '', "thumbs-up": '', "toggle-left": '', "toggle-right": '', "tool": '', "trash-2": '', "trash": '', "trello": '', "trending-down": '', "trending-up": '', "triangle": '', "truck": '', "tv": '', "twitch": '', "twitter": '', "type": '', "umbrella": '', "underline": '', "unlock": '', "upload-cloud": '', "upload": '', "user-check": '', "user-minus": '', "user-plus": '', "user-x": '', "user": '', "users": '', "video-off": '', "video": '', "voicemail": '', "volume-1": '', "volume-2": '', "volume-x": '', "volume": '', "watch": '', "wifi-off": '', "wifi": '', "wind": '', "x-circle": '', "x-octagon": '', "x-square": '', "x": '', "youtube": '', "zap-off": '', "zap": '', "zoom-in": '', "zoom-out": '' }; + module3.exports = { "activity": '', "airplay": '', "alert-circle": '', "alert-octagon": '', "alert-triangle": '', "align-center": '', "align-justify": '', "align-left": '', "align-right": '', "anchor": '', "aperture": '', "archive": '', "arrow-down-circle": '', "arrow-down-left": '', "arrow-down-right": '', "arrow-down": '', "arrow-left-circle": '', "arrow-left": '', "arrow-right-circle": '', "arrow-right": '', "arrow-up-circle": '', "arrow-up-left": '', "arrow-up-right": '', "arrow-up": '', "at-sign": '', "award": '', "bar-chart-2": '', "bar-chart": '', "battery-charging": '', "battery": '', "bell-off": '', "bell": '', "bluetooth": '', "bold": '', "book-open": '', "book": '', "bookmark": '', "box": '', "briefcase": '', "calendar": '', "camera-off": '', "camera": '', "cast": '', "check-circle": '', "check-square": '', "check": '', "chevron-down": '', "chevron-left": '', "chevron-right": '', "chevron-up": '', "chevrons-down": '', "chevrons-left": '', "chevrons-right": '', "chevrons-up": '', "chrome": '', "circle": '', "clipboard": '', "clock": '', "cloud-drizzle": '', "cloud-lightning": '', "cloud-off": '', "cloud-rain": '', "cloud-snow": '', "cloud": '', "code": '', "codepen": '', "codesandbox": '', "coffee": '', "columns": '', "command": '', "compass": '', "copy": '', "corner-down-left": '', "corner-down-right": '', "corner-left-down": '', "corner-left-up": '', "corner-right-down": '', "corner-right-up": '', "corner-up-left": '', "corner-up-right": '', "cpu": '', "credit-card": '', "crop": '', "crosshair": '', "database": '', "delete": '', "disc": '', "divide-circle": '', "divide-square": '', "divide": '', "dollar-sign": '', "download-cloud": '', "download": '', "dribbble": '', "droplet": '', "edit-2": '', "edit-3": '', "edit": '', "external-link": '', "eye-off": '', "eye": '', "facebook": '', "fast-forward": '', "feather": '', "figma": '', "file-minus": '', "file-plus": '', "file-text": '', "file": '', "film": '', "filter": '', "flag": '', "folder-minus": '', "folder-plus": '', "folder": '', "framer": '', "frown": '', "gift": '', "git-branch": '', "git-commit": '', "git-merge": '', "git-pull-request": '', "github": '', "gitlab": '', "globe": '', "grid": '', "hard-drive": '', "hash": '', "headphones": '', "heart": '', "help-circle": '', "hexagon": '', "home": '', "image": '', "inbox": '', "info": '', "instagram": '', "italic": '', "key": '', "layers": '', "layout": '', "life-buoy": '', "link-2": '', "link": '', "linkedin": '', "list": '', "loader": '', "lock": '', "log-in": '', "log-out": '', "mail": '', "map-pin": '', "map": '', "maximize-2": '', "maximize": '', "meh": '', "menu": '', "message-circle": '', "message-square": '', "mic-off": '', "mic": '', "minimize-2": '', "minimize": '', "minus-circle": '', "minus-square": '', "minus": '', "monitor": '', "moon": '', "more-horizontal": '', "more-vertical": '', "mouse-pointer": '', "move": '', "music": '', "navigation-2": '', "navigation": '', "octagon": '', "package": '', "paperclip": '', "pause-circle": '', "pause": '', "pen-tool": '', "percent": '', "phone-call": '', "phone-forwarded": '', "phone-incoming": '', "phone-missed": '', "phone-off": '', "phone-outgoing": '', "phone": '', "pie-chart": '', "play-circle": '', "play": '', "plus-circle": '', "plus-square": '', "plus": '', "pocket": '', "power": '', "printer": '', "radio": '', "refresh-ccw": '', "refresh-cw": '', "repeat": '', "rewind": '', "rotate-ccw": '', "rotate-cw": '', "rss": '', "save": '', "scissors": '', "search": '', "send": '', "server": '', "settings": '', "share-2": '', "share": '', "shield-off": '', "shield": '', "shopping-bag": '', "shopping-cart": '', "shuffle": '', "sidebar": '', "skip-back": '', "skip-forward": '', "slack": '', "slash": '', "sliders": '', "smartphone": '', "smile": '', "speaker": '', "square": '', "star": '', "stop-circle": '', "sun": '', "sunrise": '', "sunset": '', "table": '', "tablet": '', "tag": '', "target": '', "terminal": '', "thermometer": '', "thumbs-down": '', "thumbs-up": '', "toggle-left": '', "toggle-right": '', "tool": '', "trash-2": '', "trash": '', "trello": '', "trending-down": '', "trending-up": '', "triangle": '', "truck": '', "tv": '', "twitch": '', "twitter": '', "type": '', "umbrella": '', "underline": '', "unlock": '', "upload-cloud": '', "upload": '', "user-check": '', "user-minus": '', "user-plus": '', "user-x": '', "user": '', "users": '', "video-off": '', "video": '', "voicemail": '', "volume-1": '', "volume-2": '', "volume-x": '', "volume": '', "watch": '', "wifi-off": '', "wifi": '', "wind": '', "x-circle": '', "x-octagon": '', "x-square": '', "x": '', "youtube": '', "zap-off": '', "zap": '', "zoom-in": '', "zoom-out": '' }; } ), /***/ @@ -13531,8 +13404,7 @@ var require_feather = __commonJS({ } } function _parse(resultSet, arg) { - if (!arg) - return; + if (!arg) return; var argType = typeof arg; if (argType === "string") { _parseString(resultSet, arg); @@ -13678,8 +13550,7 @@ var require_feather = __commonJS({ var index2 = 0; var iteratorMethod = getIteratorMethod(O); var length, result, step, iterator; - if (mapping) - mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : void 0, 2); + if (mapping) mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : void 0, 2); if (iteratorMethod != void 0 && !(C == Array && isArrayIteratorMethod(iteratorMethod))) { iterator = iteratorMethod.call(O); result = new C(); @@ -13728,18 +13599,13 @@ var require_feather = __commonJS({ var length = toLength(O.length); var index2 = toAbsoluteIndex(fromIndex, length); var value; - if (IS_INCLUDES && el != el) - while (length > index2) { - value = O[index2++]; - if (value != value) - return true; - } - else - for (; length > index2; index2++) - if (IS_INCLUDES || index2 in O) { - if (O[index2] === el) - return IS_INCLUDES || index2 || 0; - } + if (IS_INCLUDES && el != el) while (length > index2) { + value = O[index2++]; + if (value != value) return true; + } + else for (; length > index2; index2++) if (IS_INCLUDES || index2 in O) { + if (O[index2] === el) return IS_INCLUDES || index2 || 0; + } return !IS_INCLUDES && -1; }; }; @@ -13759,8 +13625,7 @@ var require_feather = __commonJS({ ); module3.exports = function(fn, that, length) { aFunction(fn); - if (that === void 0) - return fn; + if (that === void 0) return fn; switch (length) { case 0: return function() { @@ -13802,8 +13667,7 @@ var require_feather = __commonJS({ return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value); } catch (error) { var returnMethod = iterator["return"]; - if (returnMethod !== void 0) - anObject(returnMethod.call(iterator)); + if (returnMethod !== void 0) anObject(returnMethod.call(iterator)); throw error; } }; @@ -13842,8 +13706,7 @@ var require_feather = __commonJS({ } catch (error) { } module3.exports = function(exec, SKIP_CLOSING) { - if (!SKIP_CLOSING && !SAFE_CLOSING) - return false; + if (!SKIP_CLOSING && !SAFE_CLOSING) return false; var ITERATION_SUPPORT = false; try { var object = {}; @@ -13937,8 +13800,7 @@ var require_feather = __commonJS({ var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; for (var i = 0; i < keys.length; i++) { var key2 = keys[i]; - if (!has(target, key2)) - defineProperty(target, key2, getOwnPropertyDescriptor(source, key2)); + if (!has(target, key2)) defineProperty(target, key2, getOwnPropertyDescriptor(source, key2)); } }; } @@ -14045,10 +13907,8 @@ var require_feather = __commonJS({ ); module3.exports = function(object, key2, value) { var propertyKey = toPrimitive(key2); - if (propertyKey in object) - definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value)); - else - object[propertyKey] = value; + if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value)); + else object[propertyKey] = value; }; } ), @@ -14117,10 +13977,8 @@ var require_feather = __commonJS({ module3.exports = function(Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) { createIteratorConstructor(IteratorConstructor, NAME, next); var getIterationMethod = function(KIND) { - if (KIND === DEFAULT && defaultIterator) - return defaultIterator; - if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) - return IterablePrototype[KIND]; + if (KIND === DEFAULT && defaultIterator) return defaultIterator; + if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND]; switch (KIND) { case KEYS: return function keys() { @@ -14157,8 +14015,7 @@ var require_feather = __commonJS({ } } setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true); - if (IS_PURE) - Iterators[TO_STRING_TAG] = returnThis; + if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis; } } if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) { @@ -14177,14 +14034,12 @@ var require_feather = __commonJS({ keys: IS_SET ? defaultIterator : getIterationMethod(KEYS), entries: getIterationMethod(ENTRIES) }; - if (FORCED) - for (KEY in methods) { - if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) { - redefine(IterablePrototype, KEY, methods[KEY]); - } + if (FORCED) for (KEY in methods) { + if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) { + redefine(IterablePrototype, KEY, methods[KEY]); } - else - $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods); + } + else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods); } return methods; }; @@ -14299,25 +14154,22 @@ var require_feather = __commonJS({ } else { target = (global2[TARGET] || {}).prototype; } - if (target) - for (key2 in source) { - sourceProperty = source[key2]; - if (options.noTargetGet) { - descriptor = getOwnPropertyDescriptor(target, key2); - targetProperty = descriptor && descriptor.value; - } else - targetProperty = target[key2]; - FORCED = isForced(GLOBAL ? key2 : TARGET + (STATIC ? "." : "#") + key2, options.forced); - if (!FORCED && targetProperty !== void 0) { - if (typeof sourceProperty === typeof targetProperty) - continue; - copyConstructorProperties(sourceProperty, targetProperty); - } - if (options.sham || targetProperty && targetProperty.sham) { - hide(sourceProperty, "sham", true); - } - redefine(target, key2, sourceProperty, options); + if (target) for (key2 in source) { + sourceProperty = source[key2]; + if (options.noTargetGet) { + descriptor = getOwnPropertyDescriptor(target, key2); + targetProperty = descriptor && descriptor.value; + } else targetProperty = target[key2]; + FORCED = isForced(GLOBAL ? key2 : TARGET + (STATIC ? "." : "#") + key2, options.forced); + if (!FORCED && targetProperty !== void 0) { + if (typeof sourceProperty === typeof targetProperty) continue; + copyConstructorProperties(sourceProperty, targetProperty); } + if (options.sham || targetProperty && targetProperty.sham) { + hide(sourceProperty, "sham", true); + } + redefine(target, key2, sourceProperty, options); + } }; } ), @@ -14375,8 +14227,7 @@ var require_feather = __commonJS({ ); var ITERATOR = wellKnownSymbol("iterator"); module3.exports = function(it) { - if (it != void 0) - return it[ITERATOR] || it["@@iterator"] || Iterators[classof(it)]; + if (it != void 0) return it[ITERATOR] || it["@@iterator"] || Iterators[classof(it)]; }; } ), @@ -14722,18 +14573,14 @@ var require_feather = __commonJS({ var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator; if ([].keys) { arrayIterator = [].keys(); - if (!("next" in arrayIterator)) - BUGGY_SAFARI_ITERATORS = true; + if (!("next" in arrayIterator)) BUGGY_SAFARI_ITERATORS = true; else { PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator)); - if (PrototypeOfArrayIteratorPrototype !== Object.prototype) - IteratorPrototype = PrototypeOfArrayIteratorPrototype; + if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype; } } - if (IteratorPrototype == void 0) - IteratorPrototype = {}; - if (!IS_PURE && !has(IteratorPrototype, ITERATOR)) - hide(IteratorPrototype, ITERATOR, returnThis); + if (IteratorPrototype == void 0) IteratorPrototype = {}; + if (!IS_PURE && !has(IteratorPrototype, ITERATOR)) hide(IteratorPrototype, ITERATOR, returnThis); module3.exports = { IteratorPrototype, BUGGY_SAFARI_ITERATORS @@ -14844,8 +14691,7 @@ var require_feather = __commonJS({ iframeDocument.write(lt + script + gt + "document.F=Object" + lt + "/" + script + gt); iframeDocument.close(); createDict = iframeDocument.F; - while (length--) - delete createDict[PROTOTYPE][enumBugKeys[length]]; + while (length--) delete createDict[PROTOTYPE][enumBugKeys[length]]; return createDict(); }; module3.exports = Object.create || function create(O, Properties) { @@ -14855,8 +14701,7 @@ var require_feather = __commonJS({ result = new Empty(); Empty[PROTOTYPE] = null; result[IE_PROTO] = O; - } else - result = createDict(); + } else result = createDict(); return Properties === void 0 ? result : defineProperties(result, Properties); }; hiddenKeys[IE_PROTO] = true; @@ -14892,8 +14737,7 @@ var require_feather = __commonJS({ var length = keys.length; var i = 0; var key2; - while (length > i) - definePropertyModule.f(O, key2 = keys[i++], Properties[key2]); + while (length > i) definePropertyModule.f(O, key2 = keys[i++], Properties[key2]); return O; }; } @@ -14927,15 +14771,12 @@ var require_feather = __commonJS({ anObject(O); P = toPrimitive(P, true); anObject(Attributes); - if (IE8_DOM_DEFINE) - try { - return nativeDefineProperty(O, P, Attributes); - } catch (error) { - } - if ("get" in Attributes || "set" in Attributes) - throw TypeError("Accessors not supported"); - if ("value" in Attributes) - O[P] = Attributes.value; + if (IE8_DOM_DEFINE) try { + return nativeDefineProperty(O, P, Attributes); + } catch (error) { + } + if ("get" in Attributes || "set" in Attributes) throw TypeError("Accessors not supported"); + if ("value" in Attributes) O[P] = Attributes.value; return O; }; } @@ -14980,13 +14821,11 @@ var require_feather = __commonJS({ exports3.f = DESCRIPTORS ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) { O = toIndexedObject(O); P = toPrimitive(P, true); - if (IE8_DOM_DEFINE) - try { - return nativeGetOwnPropertyDescriptor(O, P); - } catch (error) { - } - if (has(O, P)) - return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O, P), O[P]); + if (IE8_DOM_DEFINE) try { + return nativeGetOwnPropertyDescriptor(O, P); + } catch (error) { + } + if (has(O, P)) return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O, P), O[P]); }; } ), @@ -15051,8 +14890,7 @@ var require_feather = __commonJS({ var ObjectPrototype = Object.prototype; module3.exports = CORRECT_PROTOTYPE_GETTER ? Object.getPrototypeOf : function(O) { O = toObject(O); - if (has(O, IE_PROTO)) - return O[IE_PROTO]; + if (has(O, IE_PROTO)) return O[IE_PROTO]; if (typeof O.constructor == "function" && O instanceof O.constructor) { return O.constructor.prototype; } @@ -15090,12 +14928,10 @@ var require_feather = __commonJS({ var i = 0; var result = []; var key2; - for (key2 in O) - !has(hiddenKeys, key2) && has(O, key2) && result.push(key2); - while (names.length > i) - if (has(O, key2 = names[i++])) { - ~arrayIndexOf(result, key2) || result.push(key2); - } + for (key2 in O) !has(hiddenKeys, key2) && has(O, key2) && result.push(key2); + while (names.length > i) if (has(O, key2 = names[i++])) { + ~arrayIndexOf(result, key2) || result.push(key2); + } return result; }; } @@ -15163,10 +14999,8 @@ var require_feather = __commonJS({ } return function setPrototypeOf(O, proto) { validateSetPrototypeOfArguments(O, proto); - if (correctSetter) - setter.call(O, proto); - else - O.__proto__ = proto; + if (correctSetter) setter.call(O, proto); + else O.__proto__ = proto; return O; }; }() : void 0); @@ -15262,28 +15096,23 @@ var require_feather = __commonJS({ }); (module3.exports = function(O, key2, value, options) { var unsafe = options ? !!options.unsafe : false; - var simple2 = options ? !!options.enumerable : false; + var simple = options ? !!options.enumerable : false; var noTargetGet = options ? !!options.noTargetGet : false; if (typeof value == "function") { - if (typeof key2 == "string" && !has(value, "name")) - hide(value, "name", key2); + if (typeof key2 == "string" && !has(value, "name")) hide(value, "name", key2); enforceInternalState(value).source = TEMPLATE.join(typeof key2 == "string" ? key2 : ""); } if (O === global2) { - if (simple2) - O[key2] = value; - else - setGlobal(key2, value); + if (simple) O[key2] = value; + else setGlobal(key2, value); return; } else if (!unsafe) { delete O[key2]; } else if (!noTargetGet && O[key2]) { - simple2 = true; + simple = true; } - if (simple2) - O[key2] = value; - else - hide(O, key2, value); + if (simple) O[key2] = value; + else hide(O, key2, value); })(Function.prototype, "toString", function toString() { return typeof this == "function" && getInternalState(this).source || nativeFunctionToString.call(this); }); @@ -15298,8 +15127,7 @@ var require_feather = __commonJS({ /***/ function(module3, exports3) { module3.exports = function(it) { - if (it == void 0) - throw TypeError("Can't call method on " + it); + if (it == void 0) throw TypeError("Can't call method on " + it); return it; }; } @@ -15432,8 +15260,7 @@ var require_feather = __commonJS({ var position = toInteger(pos); var size = S.length; var first2, second; - if (position < 0 || position >= size) - return CONVERT_TO_STRING ? "" : void 0; + if (position < 0 || position >= size) return CONVERT_TO_STRING ? "" : void 0; first2 = S.charCodeAt(position); return first2 < 55296 || first2 > 56319 || position + 1 === size || (second = S.charCodeAt(position + 1)) < 56320 || second > 57343 ? CONVERT_TO_STRING ? S.charAt(position) : first2 : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first2 - 55296 << 10) + (second - 56320) + 65536; }; @@ -15543,15 +15370,11 @@ var require_feather = __commonJS({ "./node_modules/core-js/internals/is-object.js" ); module3.exports = function(it, S) { - if (!isObject2(it)) - return it; + if (!isObject2(it)) return it; var fn, val; - if (S && typeof (fn = it.toString) == "function" && !isObject2(val = fn.call(it))) - return val; - if (typeof (fn = it.valueOf) == "function" && !isObject2(val = fn.call(it))) - return val; - if (!S && typeof (fn = it.toString) == "function" && !isObject2(val = fn.call(it))) - return val; + if (S && typeof (fn = it.toString) == "function" && !isObject2(val = fn.call(it))) return val; + if (typeof (fn = it.valueOf) == "function" && !isObject2(val = fn.call(it))) return val; + if (!S && typeof (fn = it.toString) == "function" && !isObject2(val = fn.call(it))) return val; throw TypeError("Can't convert object to primitive value"); }; } @@ -15689,8 +15512,7 @@ var require_feather = __commonJS({ var string = state.string; var index2 = state.index; var point; - if (index2 >= string.length) - return { value: void 0, done: true }; + if (index2 >= string.length) return { value: void 0, done: true }; point = codePointAt(string, index2, true); state.index += point.length; return { value: point, done: false }; @@ -15712,8 +15534,7 @@ var require_feather = __commonJS({ try { g = g || Function("return this")() || (1, eval)("this"); } catch (e) { - if (typeof window === "object") - g = window; + if (typeof window === "object") g = window; } module3.exports = g; } @@ -15758,16 +15579,13 @@ var require_feather = __commonJS({ var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; - if ("value" in descriptor) - descriptor.writable = true; + if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function(Constructor, protoProps, staticProps) { - if (protoProps) - defineProperties(Constructor.prototype, protoProps); - if (staticProps) - defineProperties(Constructor, staticProps); + if (protoProps) defineProperties(Constructor.prototype, protoProps); + if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); @@ -15948,6 +15766,10 @@ var require_feather = __commonJS({ var elementAttrs = getAttrs(element2); var name = elementAttrs["data-feather"]; delete elementAttrs["data-feather"]; + if (_icons2.default[name] === void 0) { + console.warn("feather: '" + name + "' is not a valid icon"); + return; + } var svgString = _icons2.default[name].toSvg(_extends({}, attrs, elementAttrs, { class: (0, _dedupe2.default)(attrs.class, elementAttrs.class) })); var svgDocument = new DOMParser().parseFromString(svgString, "image/svg+xml"); var svgElement = svgDocument.querySelector("svg"); @@ -16040,7 +15862,7 @@ __export(main_exports, { module.exports = __toCommonJS(main_exports); init_polyfill_buffer(); -// node_modules/.pnpm/isomorphic-git@1.25.3/node_modules/isomorphic-git/index.js +// node_modules/.pnpm/isomorphic-git@1.27.1/node_modules/isomorphic-git/index.js init_polyfill_buffer(); var import_async_lock = __toESM(require_async_lock(), 1); var import_sha1 = __toESM(require_sha1(), 1); @@ -16195,8 +16017,7 @@ function normalizeMode(mode) { } else { permissions = 420; } - if (type !== 8) - permissions = 0; + if (type !== 8) permissions = 0; return (type << 12) + permissions; } var MAX_UINT32 = 2 ** 32; @@ -16242,8 +16063,7 @@ function normalizeStats(e) { function toHex(buffer2) { let hex = ""; for (const byte of new Uint8Array(buffer2)) { - if (byte < 16) - hex += "0"; + if (byte < 16) hex += "0"; hex += byte.toString(16); } return hex; @@ -16265,8 +16085,7 @@ async function subtleSHA1(buffer2) { async function testSubtleSHA1() { try { const hash2 = await subtleSHA1(new Uint8Array([])); - if (hash2 === "da39a3ee5e6b4b0d3255bfef95601890afd80709") - return true; + if (hash2 === "da39a3ee5e6b4b0d3255bfef95601890afd80709") return true; } catch (_) { } return false; @@ -16366,8 +16185,7 @@ var GitIndex = class _GitIndex { throw new UnsafeFilepathError(entry.path); } let padding = 8 - (reader.tell() - 12) % 8; - if (padding === 0) - padding = 8; + if (padding === 0) padding = 8; while (padding--) { const tmp = reader.readUInt8(); if (tmp !== 0) { @@ -16517,10 +16335,10 @@ var GitIndex = class _GitIndex { return Buffer.concat([main, Buffer.from(sum, "hex")]); } }; -function compareStats(entry, stats) { +function compareStats(entry, stats, filemode = true, trustino = true) { const e = normalizeStats(entry); const s = normalizeStats(stats); - const staleness = e.mode !== s.mode || e.mtimeSeconds !== s.mtimeSeconds || e.ctimeSeconds !== s.ctimeSeconds || e.uid !== s.uid || e.gid !== s.gid || e.ino !== s.ino || e.size !== s.size; + const staleness = filemode && e.mode !== s.mode || e.mtimeSeconds !== s.mtimeSeconds || e.ctimeSeconds !== s.ctimeSeconds || e.uid !== s.uid || e.gid !== s.gid || trustino && e.ino !== s.ino || e.size !== s.size; return staleness; } var lock = null; @@ -16540,13 +16358,10 @@ async function updateCachedIndexFile(fs, filepath, cache) { } async function isIndexStale(fs, filepath, cache) { const savedStats = cache.stats.get(filepath); - if (savedStats === void 0) - return true; + if (savedStats === void 0) return true; const currStats = await fs.lstat(filepath); - if (savedStats === null) - return false; - if (currStats === null) - return false; + if (savedStats === null) return false; + if (currStats === null) return false; return compareStats(savedStats, currStats); } var GitIndexManager = class { @@ -16560,11 +16375,9 @@ var GitIndexManager = class { * @param {function(GitIndex): any} closure */ static async acquire({ fs, gitdir, cache, allowUnmerged = true }, closure) { - if (!cache[IndexCache]) - cache[IndexCache] = createCache(); + if (!cache[IndexCache]) cache[IndexCache] = createCache(); const filepath = `${gitdir}/index`; - if (lock === null) - lock = new import_async_lock.default({ maxPending: Infinity }); + if (lock === null) lock = new import_async_lock.default({ maxPending: Infinity }); let result; let unmergedPaths = []; await lock.acquire(filepath, async () => { @@ -16595,10 +16408,8 @@ function basename(path2) { } function dirname(path2) { const last2 = Math.max(path2.lastIndexOf("/"), path2.lastIndexOf("\\")); - if (last2 === -1) - return "."; - if (last2 === 0) - return "/"; + if (last2 === -1) return "."; + if (last2 === 0) return "/"; return path2.slice(0, last2); } function flatFileListToDirectoryStructure(files) { @@ -16614,8 +16425,7 @@ function flatFileListToDirectoryStructure(files) { }; inodes.set(name, dir); dir.parent = mkdir(dirname(name)); - if (dir.parent && dir.parent !== dir) - dir.parent.children.push(dir); + if (dir.parent && dir.parent !== dir) dir.parent.children.push(dir); } return inodes.get(name); }; @@ -16630,8 +16440,7 @@ function flatFileListToDirectoryStructure(files) { parent: mkdir(dirname(name)), children: [] }; - if (file.parent) - file.parent.children.push(file); + if (file.parent) file.parent.children.push(file); inodes.set(name, file); } return inodes.get(name); @@ -16695,10 +16504,8 @@ var GitWalkerIndex = class { const filepath = entry._fullpath; const tree = await this.treePromise; const inode = tree.get(filepath); - if (!inode) - return null; - if (inode.type === "blob") - return null; + if (!inode) return null; + if (inode.type === "blob") return null; if (inode.type !== "tree") { throw new Error(`ENOTDIR: not a directory, scandir '${filepath}'`); } @@ -16884,8 +16691,7 @@ var GitRefSpec = class _GitRefSpec { return this.localPath + remoteBranch.replace(this.remotePath, ""); } } else { - if (remoteBranch === this.remotePath) - return this.localPath; + if (remoteBranch === this.remotePath) return this.localPath; } return null; } @@ -16895,8 +16701,7 @@ var GitRefSpec = class _GitRefSpec { return this.remotePath + localBranch.replace(this.localPath, ""); } } else { - if (localBranch === this.localPath) - return this.remotePath; + if (localBranch === this.localPath) return this.remotePath; } return null; } @@ -16962,18 +16767,12 @@ function normalizePath(path2) { } function normalizePathInternal(path2) { path2 = path2.split("/./").join("/").replace(/\/{2,}/g, "/"); - if (path2 === "/.") - return "/"; - if (path2 === "./") - return "."; - if (path2.startsWith("./")) - path2 = path2.slice(2); - if (path2.endsWith("/.")) - path2 = path2.slice(0, -2); - if (path2.length > 1 && path2.endsWith("/")) - path2 = path2.slice(0, -1); - if (path2 === "") - return "."; + if (path2 === "/.") return "/"; + if (path2 === "./") return "."; + if (path2.startsWith("./")) path2 = path2.slice(2); + if (path2.endsWith("/.")) path2 = path2.slice(0, -2); + if (path2.length > 1 && path2.endsWith("/")) path2 = path2.slice(0, -1); + if (path2 === "") return "."; return path2; } function join(...parts) { @@ -16982,20 +16781,15 @@ function join(...parts) { var num = (val) => { val = val.toLowerCase(); let n = parseInt(val); - if (val.endsWith("k")) - n *= 1024; - if (val.endsWith("m")) - n *= 1024 * 1024; - if (val.endsWith("g")) - n *= 1024 * 1024 * 1024; + if (val.endsWith("k")) n *= 1024; + if (val.endsWith("m")) n *= 1024 * 1024; + if (val.endsWith("g")) n *= 1024 * 1024 * 1024; return n; }; var bool = (val) => { val = val.trim().toLowerCase(); - if (val === "true" || val === "yes" || val === "on") - return true; - if (val === "false" || val === "no" || val === "off") - return false; + if (val === "true" || val === "yes" || val === "on") return true; + if (val === "false" || val === "no" || val === "off") return false; throw Error( `Expected 'true', 'false', 'yes', 'no', 'on', or 'off', but got ${val}` ); @@ -17086,7 +16880,7 @@ var GitConfig = class _GitConfig { constructor(text2) { let section = null; let subsection = null; - this.parsedConfig = text2.split("\n").map((line) => { + this.parsedConfig = text2 ? text2.split("\n").map((line) => { let name = null; let value = null; const trimmedLine = line.trim(); @@ -17105,7 +16899,7 @@ var GitConfig = class _GitConfig { } const path2 = getPath(section, subsection, name); return { line, isSection, section, subsection, name, value, path: path2 }; - }); + }) : []; } static from(text2) { return new _GitConfig(text2); @@ -17227,6 +17021,11 @@ var refpaths = (ref) => [ `refs/remotes/${ref}/HEAD` ]; var GIT_FILES = ["config", "description", "index", "shallow", "commondir"]; +var lock$1; +async function acquireLock(ref, callback) { + if (lock$1 === void 0) lock$1 = new import_async_lock.default(); + return lock$1.acquire(ref, callback); +} var GitRefManager = class _GitRefManager { static async updateRemoteRefs({ fs, @@ -17308,8 +17107,11 @@ var GitRefManager = class _GitRefManager { } } for (const [key2, value] of actualRefsToWrite) { - await fs.write(join(gitdir, key2), `${value.trim()} -`, "utf8"); + await acquireLock( + key2, + async () => fs.write(join(gitdir, key2), `${value.trim()} +`, "utf8") + ); } return { pruned }; } @@ -17318,19 +17120,28 @@ var GitRefManager = class _GitRefManager { if (!value.match(/[0-9a-f]{40}/)) { throw new InvalidOidError(value); } - await fs.write(join(gitdir, ref), `${value.trim()} -`, "utf8"); + await acquireLock( + ref, + async () => fs.write(join(gitdir, ref), `${value.trim()} +`, "utf8") + ); } static async writeSymbolicRef({ fs, gitdir, ref, value }) { - await fs.write(join(gitdir, ref), `ref: ${value.trim()} -`, "utf8"); + await acquireLock( + ref, + async () => fs.write(join(gitdir, ref), `ref: ${value.trim()} +`, "utf8") + ); } static async deleteRef({ fs, gitdir, ref }) { return _GitRefManager.deleteRefs({ fs, gitdir, refs: [ref] }); } static async deleteRefs({ fs, gitdir, refs }) { await Promise.all(refs.map((ref) => fs.rm(join(gitdir, ref)))); - let text2 = await fs.read(`${gitdir}/packed-refs`, { encoding: "utf8" }); + let text2 = await acquireLock( + "packed-refs", + async () => fs.read(`${gitdir}/packed-refs`, { encoding: "utf8" }) + ); const packed = GitPackedRefs.from(text2); const beforeSize = packed.refs.size; for (const ref of refs) { @@ -17340,7 +17151,10 @@ var GitRefManager = class _GitRefManager { } if (packed.refs.size < beforeSize) { text2 = packed.toString(); - await fs.write(`${gitdir}/packed-refs`, text2, { encoding: "utf8" }); + await acquireLock( + "packed-refs", + async () => fs.write(`${gitdir}/packed-refs`, text2, { encoding: "utf8" }) + ); } } /** @@ -17358,7 +17172,6 @@ var GitRefManager = class _GitRefManager { return ref; } } - let sha; if (ref.startsWith("ref: ")) { ref = ref.slice("ref: ".length); return _GitRefManager.resolve({ fs, gitdir, ref, depth }); @@ -17369,7 +17182,10 @@ var GitRefManager = class _GitRefManager { const packedMap = await _GitRefManager.packedRefs({ fs, gitdir }); const allpaths = refpaths(ref).filter((p) => !GIT_FILES.includes(p)); for (const ref2 of allpaths) { - sha = await fs.read(`${gitdir}/${ref2}`, { encoding: "utf8" }) || packedMap.get(ref2); + const sha = await acquireLock( + ref2, + async () => await fs.read(`${gitdir}/${ref2}`, { encoding: "utf8" }) || packedMap.get(ref2) + ); if (sha) { return _GitRefManager.resolve({ fs, gitdir, ref: sha.trim(), depth }); } @@ -17391,18 +17207,19 @@ var GitRefManager = class _GitRefManager { const packedMap = await _GitRefManager.packedRefs({ fs, gitdir }); const allpaths = refpaths(ref); for (const ref2 of allpaths) { - if (await fs.exists(`${gitdir}/${ref2}`)) - return ref2; - if (packedMap.has(ref2)) - return ref2; + const refExists = await acquireLock( + ref2, + async () => fs.exists(`${gitdir}/${ref2}`) + ); + if (refExists) return ref2; + if (packedMap.has(ref2)) return ref2; } throw new NotFoundError(ref); } static async expandAgainstMap({ ref, map }) { const allpaths = refpaths(ref); for (const ref2 of allpaths) { - if (await map.has(ref2)) - return ref2; + if (await map.has(ref2)) return ref2; } throw new NotFoundError(ref); } @@ -17435,7 +17252,10 @@ var GitRefManager = class _GitRefManager { throw new NotFoundError(ref); } static async packedRefs({ fs, gitdir }) { - const text2 = await fs.read(`${gitdir}/packed-refs`, { encoding: "utf8" }); + const text2 = await acquireLock( + "packed-refs", + async () => fs.read(`${gitdir}/packed-refs`, { encoding: "utf8" }) + ); const packed = GitPackedRefs.from(text2); return packed.refs; } @@ -17518,8 +17338,7 @@ function parseBuffer(buffer2) { ); } let mode = buffer2.slice(cursor, space2).toString("utf8"); - if (mode === "40000") - mode = "040000"; + if (mode === "40000") mode = "040000"; const type = mode2type$1(mode); const path2 = buffer2.slice(space2 + 1, nullchar).toString("utf8"); if (path2.includes("\\") || path2.includes("/")) { @@ -17535,16 +17354,11 @@ function limitModeToAllowed(mode) { if (typeof mode === "number") { mode = mode.toString(8); } - if (mode.match(/^0?4.*/)) - return "040000"; - if (mode.match(/^1006.*/)) - return "100644"; - if (mode.match(/^1007.*/)) - return "100755"; - if (mode.match(/^120.*/)) - return "120000"; - if (mode.match(/^160.*/)) - return "160000"; + if (mode.match(/^0?4.*/)) return "040000"; + if (mode.match(/^1006.*/)) return "100644"; + if (mode.match(/^1007.*/)) return "100755"; + if (mode.match(/^120.*/)) return "120000"; + if (mode.match(/^160.*/)) return "160000"; throw new InternalError(`Could not understand file mode: ${mode}`); } function nudgeIntoShape(entry) { @@ -17692,8 +17506,7 @@ function readOp(reader, source) { if (byte & COPY) { const offset = readCompactLE(reader, byte & OFFS, 4); let size = readCompactLE(reader, (byte & SIZE) >> 4, 3); - if (size === 0) - size = 65536; + if (size === 0) size = 65536; return source.slice(offset, offset + size); } else { return reader.slice(byte); @@ -17728,6 +17541,9 @@ function getIterator(iterable) { } var StreamReader = class { constructor(stream) { + if (typeof Buffer === "undefined") { + throw new Error("Missing Buffer dependency"); + } this.stream = getIterator(stream); this.buffer = null; this.cursor = 0; @@ -17743,36 +17559,28 @@ var StreamReader = class { return this._discardedBytes + this.cursor; } async byte() { - if (this.eof()) - return; - if (!this.started) - await this._init(); + if (this.eof()) return; + if (!this.started) await this._init(); if (this.cursor === this.buffer.length) { await this._loadnext(); - if (this._ended) - return; + if (this._ended) return; } this._moveCursor(1); return this.buffer[this.undoCursor]; } async chunk() { - if (this.eof()) - return; - if (!this.started) - await this._init(); + if (this.eof()) return; + if (!this.started) await this._init(); if (this.cursor === this.buffer.length) { await this._loadnext(); - if (this._ended) - return; + if (this._ended) return; } this._moveCursor(this.buffer.length); return this.buffer.slice(this.undoCursor, this.cursor); } async read(n) { - if (this.eof()) - return; - if (!this.started) - await this._init(); + if (this.eof()) return; + if (!this.started) await this._init(); if (this.cursor + n > this.buffer.length) { this._trim(); await this._accumulate(n); @@ -17781,10 +17589,8 @@ var StreamReader = class { return this.buffer.slice(this.undoCursor, this.cursor); } async skip(n) { - if (this.eof()) - return; - if (!this.started) - await this._init(); + if (this.eof()) return; + if (!this.started) await this._init(); if (this.cursor + n > this.buffer.length) { this._trim(); await this._accumulate(n); @@ -17799,8 +17605,7 @@ var StreamReader = class { let { done, value } = await this.stream.next(); if (done) { this._ended = true; - if (!value) - return Buffer.alloc(0); + if (!value) return Buffer.alloc(0); } if (value) { value = Buffer.from(value); @@ -17821,13 +17626,11 @@ var StreamReader = class { } } async _accumulate(n) { - if (this._ended) - return; + if (this._ended) return; const buffers = [this.buffer]; while (this.cursor + n > lengthBuffers(buffers)) { const nextbuffer = await this._next(); - if (this._ended) - break; + if (this._ended) break; buffers.push(nextbuffer); } this.buffer = Buffer.concat(buffers); @@ -17859,16 +17662,14 @@ async function listpack(stream, onData) { } let numObjects = await reader.read(4); numObjects = numObjects.readUInt32BE(0); - if (numObjects < 1) - return; + if (numObjects < 1) return; while (!reader.eof() && numObjects--) { const offset = reader.tell(); const { type, length, ofs, reference } = await parseHeader(reader); const inflator = new import_pako.default.Inflate(); while (!inflator.result) { const chunk = await reader.chunk(); - if (!chunk) - break; + if (!chunk) break; inflator.push(chunk, false); if (inflator.err) { throw new InternalError(`Pako error: ${inflator.msg}`); @@ -17942,8 +17743,7 @@ async function browserInflate(buffer2) { function testDecompressionStream() { try { const ds = new DecompressionStream("deflate"); - if (ds) - return true; + if (ds) return true; } catch (_) { } return false; @@ -18031,8 +17831,7 @@ var GitPackIndex = class _GitPackIndex { let totalObjectCount = null; let lastPercent = null; await listpack([pack], async ({ data, type, reference, offset, num: num2 }) => { - if (totalObjectCount === null) - totalObjectCount = num2; + if (totalObjectCount === null) totalObjectCount = num2; const percent = Math.floor( (totalObjectCount - num2) * 100 / totalObjectCount ); @@ -18098,8 +17897,7 @@ var GitPackIndex = class _GitPackIndex { count++; lastPercent = percent; const o = offsetToObject[offset]; - if (o.oid) - continue; + if (o.oid) continue; try { p.readDepth = 0; p.externalReadDepth = 0; @@ -18128,8 +17926,7 @@ var GitPackIndex = class _GitPackIndex { for (let i = 0; i < 256; i++) { let count = 0; for (const hash2 of this.hashes) { - if (parseInt(hash2.slice(0, 2), 16) <= i) - count++; + if (parseInt(hash2.slice(0, 2), 16) <= i) count++; } fanoutBuffer.writeUInt32BE(count); } @@ -18250,8 +18047,7 @@ function readPackIndex({ emitter, emitterPrefix }) { - if (!cache[PackfileCache]) - cache[PackfileCache] = /* @__PURE__ */ new Map(); + if (!cache[PackfileCache]) cache[PackfileCache] = /* @__PURE__ */ new Map(); let p = cache[PackfileCache].get(filename); if (!p) { p = loadPackIndex({ @@ -18283,8 +18079,7 @@ async function readObjectPacked({ filename: indexFile, getExternalRefDelta }); - if (p.error) - throw new InternalError(p.error); + if (p.error) throw new InternalError(p.error); if (p.offsets.has(oid)) { if (!p.pack) { const packFile = indexFile.replace(/idx$/, "pack"); @@ -18321,9 +18116,10 @@ async function _readObject({ oid, getExternalRefDelta }); - } - if (!result) { - throw new NotFoundError(oid); + if (!result) { + throw new NotFoundError(oid); + } + return result; } if (format === "deflated") { return result; @@ -18332,27 +18128,23 @@ async function _readObject({ result.object = Buffer.from(await inflate(result.object)); result.format = "wrapped"; } - if (result.format === "wrapped") { - if (format === "wrapped" && result.format === "wrapped") { - return result; - } - const sha = await shasum(result.object); - if (sha !== oid) { - throw new InternalError( - `SHA check failed! Expected ${oid}, computed ${sha}` - ); - } - const { object, type } = GitObject.unwrap(result.object); - result.type = type; - result.object = object; - result.format = "content"; + if (format === "wrapped") { + return result; } - if (result.format === "content") { - if (format === "content") - return result; - return; + const sha = await shasum(result.object); + if (sha !== oid) { + throw new InternalError( + `SHA check failed! Expected ${oid}, computed ${sha}` + ); } - throw new InternalError(`invalid format "${result.format}"`); + const { object, type } = GitObject.unwrap(result.object); + result.type = type; + result.object = object; + result.format = "content"; + if (format === "content") { + return result; + } + throw new InternalError(`invalid requested format "${format}"`); } var AlreadyExistsError = class _AlreadyExistsError extends BaseError { /** @@ -18661,13 +18453,26 @@ var IndexResetError = class _IndexResetError extends BaseError { */ constructor(filepath) { super( - `Could not merge index: Entry for '${filepath}' is not up to date. Either reset the index entry to HEAD, or stage your unstaged chages.` + `Could not merge index: Entry for '${filepath}' is not up to date. Either reset the index entry to HEAD, or stage your unstaged changes.` ); this.code = this.name = _IndexResetError.code; this.data = { filepath }; } }; IndexResetError.code = "IndexResetError"; +var NoCommitError = class _NoCommitError extends BaseError { + /** + * @param {string} ref + */ + constructor(ref) { + super( + `"${ref}" does not point to any commit. You're maybe working on a repository with no commits yet. ` + ); + this.code = this.name = _NoCommitError.code; + this.data = { ref }; + } +}; +NoCommitError.code = "NoCommitError"; var Errors = /* @__PURE__ */ Object.freeze({ __proto__: null, AlreadyExistsError, @@ -18700,7 +18505,8 @@ var Errors = /* @__PURE__ */ Object.freeze({ UrlParseError, UserCanceledError, UnmergedPathsError, - IndexResetError + IndexResetError, + NoCommitError }); function formatAuthor({ name, email, timestamp, timezoneOffset }) { timezoneOffset = formatTimezoneOffset(timezoneOffset); @@ -18713,10 +18519,8 @@ function formatTimezoneOffset(minutes) { minutes -= hours * 60; let strHours = String(hours); let strMinutes = String(minutes); - if (strHours.length < 2) - strHours = "0" + strHours; - if (strMinutes.length < 2) - strMinutes = "0" + strMinutes; + if (strHours.length < 2) strHours = "0" + strHours; + if (strMinutes.length < 2) strMinutes = "0" + strMinutes; return (sign === -1 ? "-" : "+") + strHours + strMinutes; } function simpleSign(n) { @@ -18822,13 +18626,11 @@ ${obj.gpgsig ? obj.gpgsig : ""}`; } withoutSignature() { const tag2 = normalizeNewlines(this._tag); - if (tag2.indexOf("\n-----BEGIN PGP SIGNATURE-----") === -1) - return tag2; + if (tag2.indexOf("\n-----BEGIN PGP SIGNATURE-----") === -1) return tag2; return tag2.slice(0, tag2.lastIndexOf("\n-----BEGIN PGP SIGNATURE-----")); } gpgsig() { - if (this._tag.indexOf("\n-----BEGIN PGP SIGNATURE-----") === -1) - return; + if (this._tag.indexOf("\n-----BEGIN PGP SIGNATURE-----") === -1) return; const signature = this._tag.slice( this._tag.indexOf("-----BEGIN PGP SIGNATURE-----"), this._tag.indexOf("-----END PGP SIGNATURE-----") + "-----END PGP SIGNATURE-----".length @@ -18965,8 +18767,7 @@ var GitCommit = class _GitCommit { } withoutSignature() { const commit2 = normalizeNewlines(this._commit); - if (commit2.indexOf("\ngpgsig") === -1) - return commit2; + if (commit2.indexOf("\ngpgsig") === -1) return commit2; const headers = commit2.slice(0, commit2.indexOf("\ngpgsig")); const message = commit2.slice( commit2.indexOf("-----END PGP SIGNATURE-----\n") + "-----END PGP SIGNATURE-----\n".length @@ -19061,11 +18862,9 @@ var GitWalkerRepo = class { const { fs, cache, gitdir } = this; const map = await this.mapPromise; const obj = map.get(filepath); - if (!obj) - throw new Error(`No obj for ${filepath}`); + if (!obj) throw new Error(`No obj for ${filepath}`); const oid = obj.oid; - if (!oid) - throw new Error(`No oid for obj ${JSON.stringify(obj)}`); + if (!oid) throw new Error(`No oid for obj ${JSON.stringify(obj)}`); if (obj.type !== "tree") { return null; } @@ -19168,8 +18967,7 @@ var GitWalkerFs = class { const filepath = entry._fullpath; const { fs, dir } = this; const names = await fs.readdir(join(dir, filepath)); - if (names === null) - return null; + if (names === null) return null; return names.map((name) => join(filepath, name)); } async type(entry) { @@ -19209,11 +19007,13 @@ var GitWalkerFs = class { } async content(entry) { if (entry._content === false) { - const { fs, dir } = this; + const { fs, dir, gitdir } = this; if (await entry.type() === "tree") { entry._content = void 0; } else { - const content = await fs.read(`${dir}/${entry._fullpath}`); + const config = await GitConfigManager.get({ fs, gitdir }); + const autocrlf = await config.get("core.autocrlf"); + const content = await fs.read(`${dir}/${entry._fullpath}`, { autocrlf }); entry._actualSize = content.length; if (entry._stat && entry._stat.size === -1) { entry._stat.size = entry._actualSize; @@ -19230,7 +19030,10 @@ var GitWalkerFs = class { await GitIndexManager.acquire({ fs, gitdir, cache }, async function(index2) { const stage = index2.entriesMap.get(entry._fullpath); const stats = await entry.stat(); - if (!stage || compareStats(stats, stage)) { + const config = await GitConfigManager.get({ fs, gitdir }); + const filemode = await config.get("core.filemode"); + const trustino = typeof process !== "undefined" ? !(process.platform === "win32") : true; + if (!stage || compareStats(stats, stage, filemode, trustino)) { const content = await entry.content(); if (content === void 0) { oid = void 0; @@ -19238,7 +19041,7 @@ var GitWalkerFs = class { oid = await shasum( GitObject.wrap({ type: "blob", object: await entry.content() }) ); - if (stage && oid === stage.oid && stats.mode === stage.mode && compareStats(stats, stage)) { + if (stage && oid === stage.oid && (!filemode || stats.mode === stage.mode) && compareStats(stats, stage, filemode, trustino)) { index2.insert({ filepath: entry._fullpath, stats, @@ -19275,8 +19078,7 @@ var RunningMinimum = class { this.value = null; } consider(value) { - if (value === null || value === void 0) - return; + if (value === null || value === void 0) return; if (this.value === null) { this.value = value; } else if (value < this.value) { @@ -19298,8 +19100,7 @@ function* unionOfIterators(sets) { min.consider(heads[i]); } } - if (min.value === null) - return; + if (min.value === null) return; while (true) { const result = []; minimum = min.value; @@ -19316,8 +19117,7 @@ function* unionOfIterators(sets) { } } yield result; - if (min.value === null) - return; + if (min.value === null) return; } } async function _walk({ @@ -19331,8 +19131,7 @@ async function _walk({ // The default reducer is a flatmap that filters out undefineds. reduce = async (parent, children2) => { const flatten = flat(children2); - if (parent !== void 0) - flatten.unshift(parent); + if (parent !== void 0) flatten.unshift(parent); return flatten; }, // The default iterate function walks all children concurrently @@ -19377,8 +19176,7 @@ async function rmRecursive(fs, filepath) { entries.map((entry) => { const subpath = join(filepath, entry); return fs.lstat(subpath).then((stat) => { - if (!stat) - return; + if (!stat) return; return stat.isDirectory() ? rmRecursive(fs, subpath) : fs.rm(subpath); }); }) @@ -19429,25 +19227,18 @@ function bindFs(target, fs) { } } if (isPromiseFs(fs)) { - if (fs.rm) - target._rm = fs.rm.bind(fs); - else if (fs.rmdir.length > 1) - target._rm = fs.rmdir.bind(fs); - else - target._rm = rmRecursive.bind(null, target); + if (fs.rm) target._rm = fs.rm.bind(fs); + else if (fs.rmdir.length > 1) target._rm = fs.rmdir.bind(fs); + else target._rm = rmRecursive.bind(null, target); } else { - if (fs.rm) - target._rm = (0, import_pify.default)(fs.rm.bind(fs)); - else if (fs.rmdir.length > 2) - target._rm = (0, import_pify.default)(fs.rmdir.bind(fs)); - else - target._rm = rmRecursive.bind(null, target); + if (fs.rm) target._rm = (0, import_pify.default)(fs.rm.bind(fs)); + else if (fs.rmdir.length > 2) target._rm = (0, import_pify.default)(fs.rmdir.bind(fs)); + else target._rm = rmRecursive.bind(null, target); } } var FileSystem = class { constructor(fs) { - if (typeof fs._original_unwrapped_fs !== "undefined") - return fs; + if (typeof fs._original_unwrapped_fs !== "undefined") return fs; const promises = Object.getOwnPropertyDescriptor(fs, "promises"); if (promises && promises.enumerable) { bindFs(this, fs.promises); @@ -19458,7 +19249,7 @@ var FileSystem = class { } /** * Return true if a file exists, false if it doesn't exist. - * Rethrows errors that aren't related to file existance. + * Rethrows errors that aren't related to file existence. */ async exists(filepath, options = {}) { try { @@ -19484,6 +19275,14 @@ var FileSystem = class { async read(filepath, options = {}) { try { let buffer2 = await this._readFile(filepath, options); + if (options.autocrlf === "true") { + try { + buffer2 = new TextDecoder("utf8", { fatal: true }).decode(buffer2); + buffer2 = buffer2.replace(/\r\n/g, "\n"); + buffer2 = new TextEncoder().encode(buffer2); + } catch (error) { + } + } if (typeof buffer2 !== "string") { buffer2 = Buffer.from(buffer2); } @@ -19516,16 +19315,12 @@ var FileSystem = class { await this._mkdir(filepath); return; } catch (err) { - if (err === null) - return; - if (err.code === "EEXIST") - return; - if (_selfCall) - throw err; + if (err === null) return; + if (err.code === "EEXIST") return; + if (_selfCall) throw err; if (err.code === "ENOENT") { const parent = dirname(filepath); - if (parent === "." || parent === "/" || parent === filepath) - throw err; + if (parent === "." || parent === "/" || parent === filepath) throw err; await this.mkdir(parent); await this.mkdir(filepath, true); } @@ -19538,8 +19333,7 @@ var FileSystem = class { try { await this._unlink(filepath); } catch (err) { - if (err.code !== "ENOENT") - throw err; + if (err.code !== "ENOENT") throw err; } } /** @@ -19553,8 +19347,7 @@ var FileSystem = class { await this._rmdir(filepath); } } catch (err) { - if (err.code !== "ENOENT") - throw err; + if (err.code !== "ENOENT") throw err; } } /** @@ -19566,8 +19359,7 @@ var FileSystem = class { names.sort(compareStrings); return names; } catch (err) { - if (err.code === "ENOTDIR") - return null; + if (err.code === "ENOTDIR") return null; return []; } } @@ -19589,7 +19381,7 @@ var FileSystem = class { } /** * Return the Stats of a file/symlink if it exists, otherwise returns null. - * Rethrows errors that aren't related to file existance. + * Rethrows errors that aren't related to file existence. */ async lstat(filename) { try { @@ -19604,7 +19396,7 @@ var FileSystem = class { } /** * Reads the contents of a symlink if it exists, otherwise returns null. - * Rethrows errors that aren't related to file existance. + * Rethrows errors that aren't related to file existence. */ async readlink(filename, opts = { encoding: "buffer" }) { try { @@ -19630,12 +19422,9 @@ function assertParameter(name, value) { } } async function modified(entry, base) { - if (!entry && !base) - return false; - if (entry && !base) - return true; - if (!entry && base) - return true; + if (!entry && !base) return false; + if (entry && !base) return true; + if (!entry && base) return true; if (await entry.type() === "tree" && await base.type() === "tree") { return false; } @@ -19680,16 +19469,13 @@ async function abortMerge({ content: await head.content() } : void 0; } - if (unmodified) - return false; - else - throw new IndexResetError(path2); + if (unmodified) return false; + else throw new IndexResetError(path2); } }); await GitIndexManager.acquire({ fs, gitdir, cache }, async function(index2) { for (const entry of results) { - if (entry === false) - continue; + if (entry === false) continue; if (!entry) { await fs.rmdir(`${dir}/${entry.path}`, { recursive: true }); index2.delete({ filepath: entry.path }); @@ -19713,10 +19499,8 @@ async function abortMerge({ } var GitIgnoreManager = class { static async isIgnored({ fs, dir, gitdir = join(dir, ".git"), filepath }) { - if (basename(filepath) === ".git") - return true; - if (filepath === ".") - return false; + if (basename(filepath) === ".git") return true; + if (filepath === ".") return false; let excludes = ""; const excludesFile = join(gitdir, "info", "exclude"); if (await fs.exists(excludesFile)) { @@ -19743,14 +19527,12 @@ var GitIgnoreManager = class { try { file = await fs.read(p.gitignore, "utf8"); } catch (err) { - if (err.code === "NOENT") - continue; + if (err.code === "NOENT") continue; } const ign = (0, import_ignore.default)().add(excludes); ign.add(file); const parentdir = dirname(p.filepath); - if (parentdir !== "." && ign.ignores(parentdir)) - return true; + if (parentdir !== "." && ign.ignores(parentdir)) return true; if (ignoredStatus) { ignoredStatus = !ign.test(p.filepath).unignored; } else { @@ -19768,8 +19550,7 @@ async function writeObjectLoose({ fs, gitdir, object, format, oid }) { } const source = `objects/${oid.slice(0, 2)}/${oid.slice(2)}`; const filepath = `${gitdir}/${source}`; - if (!await fs.exists(filepath)) - await fs.write(filepath, object); + if (!await fs.exists(filepath)) await fs.write(filepath, object); } var supportsCompressionStream = null; async function deflate(buffer2) { @@ -19786,12 +19567,13 @@ async function browserDeflate(buffer2) { function testCompressionStream() { try { const cs = new CompressionStream("deflate"); - new Blob([]).stream(); - if (cs) - return true; + cs.writable.close(); + const stream = new Blob([]).stream(); + stream.cancel(); + return true; } catch (_) { + return false; } - return false; } async function _writeObject({ fs, @@ -19816,8 +19598,7 @@ async function _writeObject({ } function posixifyPathBuffer(buffer2) { let idx; - while (~(idx = buffer2.indexOf(92))) - buffer2[idx] = 47; + while (~(idx = buffer2.indexOf(92))) buffer2[idx] = 47; return buffer2; } async function add({ @@ -19869,12 +19650,10 @@ async function addToIndex({ gitdir, filepath: currentFilepath }); - if (ignored) - return; + if (ignored) return; } const stats = await fs.lstat(join(dir, currentFilepath)); - if (!stats) - throw new NotFoundError(currentFilepath); + if (!stats) throw new NotFoundError(currentFilepath); if (stats.isDirectory()) { const children2 = await fs.readdir(join(dir, currentFilepath)); if (parallel) { @@ -19904,9 +19683,10 @@ async function addToIndex({ } } } else { - const object = stats.isSymbolicLink() ? await fs.readlink(join(dir, currentFilepath)).then(posixifyPathBuffer) : await fs.read(join(dir, currentFilepath)); - if (object === null) - throw new NotFoundError(currentFilepath); + const config = await GitConfigManager.get({ fs, gitdir }); + const autocrlf = await config.get("core.autocrlf"); + const object = stats.isSymbolicLink() ? await fs.readlink(join(dir, currentFilepath)).then(posixifyPathBuffer) : await fs.read(join(dir, currentFilepath), { autocrlf }); + if (object === null) throw new NotFoundError(currentFilepath); const oid = await _writeObject({ fs, gitdir, type: "blob", object }); index2.insert({ filepath: currentFilepath, stats, oid }); } @@ -19922,21 +19702,112 @@ async function addToIndex({ const fulfilledPromises = settledPromises.filter((settle) => settle.status === "fulfilled" && settle.value).map((settle) => settle.value); return fulfilledPromises; } +async function _getConfig({ fs, gitdir, path: path2 }) { + const config = await GitConfigManager.get({ fs, gitdir }); + return config.get(path2); +} +function assignDefined(target, ...sources) { + for (const source of sources) { + if (source) { + for (const key2 of Object.keys(source)) { + const val = source[key2]; + if (val !== void 0) { + target[key2] = val; + } + } + } + } + return target; +} +async function normalizeAuthorObject({ fs, gitdir, author, commit: commit2 }) { + const timestamp = Math.floor(Date.now() / 1e3); + const defaultAuthor = { + name: await _getConfig({ fs, gitdir, path: "user.name" }), + email: await _getConfig({ fs, gitdir, path: "user.email" }) || "", + // author.email is allowed to be empty string + timestamp, + timezoneOffset: new Date(timestamp * 1e3).getTimezoneOffset() + }; + const normalizedAuthor = assignDefined( + {}, + defaultAuthor, + commit2 ? commit2.author : void 0, + author + ); + if (normalizedAuthor.name === void 0) { + return void 0; + } + return normalizedAuthor; +} +async function normalizeCommitterObject({ + fs, + gitdir, + author, + committer, + commit: commit2 +}) { + const timestamp = Math.floor(Date.now() / 1e3); + const defaultCommitter = { + name: await _getConfig({ fs, gitdir, path: "user.name" }), + email: await _getConfig({ fs, gitdir, path: "user.email" }) || "", + // committer.email is allowed to be empty string + timestamp, + timezoneOffset: new Date(timestamp * 1e3).getTimezoneOffset() + }; + const normalizedCommitter = assignDefined( + {}, + defaultCommitter, + commit2 ? commit2.committer : void 0, + author, + committer + ); + if (normalizedCommitter.name === void 0) { + return void 0; + } + return normalizedCommitter; +} +async function resolveCommit({ fs, cache, gitdir, oid }) { + const { type, object } = await _readObject({ fs, cache, gitdir, oid }); + if (type === "tag") { + oid = GitAnnotatedTag.from(object).parse().object; + return resolveCommit({ fs, cache, gitdir, oid }); + } + if (type !== "commit") { + throw new ObjectTypeError(oid, type, "commit"); + } + return { commit: GitCommit.from(object), oid }; +} +async function _readCommit({ fs, cache, gitdir, oid }) { + const { commit: commit2, oid: commitOid } = await resolveCommit({ + fs, + cache, + gitdir, + oid + }); + const result = { + oid: commitOid, + commit: commit2.parse(), + payload: commit2.withoutSignature() + }; + return result; +} async function _commit({ fs, cache, onSign, gitdir, message, - author, - committer, + author: _author, + committer: _committer, signingKey, + amend = false, dryRun = false, noUpdateBranch = false, ref, parent, tree }) { + let initialCommit = false; if (!ref) { ref = await GitRefManager.resolve({ fs, @@ -19945,6 +19816,40 @@ async function _commit({ depth: 2 }); } + let refOid, refCommit; + try { + refOid = await GitRefManager.resolve({ + fs, + gitdir, + ref + }); + refCommit = await _readCommit({ fs, gitdir, oid: refOid, cache: {} }); + } catch (e) { + initialCommit = true; + } + if (amend && initialCommit) { + throw new NoCommitError(ref); + } + const author = !amend ? await normalizeAuthorObject({ fs, gitdir, author: _author }) : await normalizeAuthorObject({ + fs, + gitdir, + author: _author, + commit: refCommit.commit + }); + if (!author) throw new MissingNameError("author"); + const committer = !amend ? await normalizeCommitterObject({ + fs, + gitdir, + author, + committer: _committer + }) : await normalizeCommitterObject({ + fs, + gitdir, + author, + committer: _committer, + commit: refCommit.commit + }); + if (!committer) throw new MissingNameError("committer"); return GitIndexManager.acquire( { fs, gitdir, cache, allowUnmerged: false }, async function(index2) { @@ -19954,16 +19859,10 @@ async function _commit({ tree = await constructTree({ fs, gitdir, inode, dryRun }); } if (!parent) { - try { - parent = [ - await GitRefManager.resolve({ - fs, - gitdir, - ref - }) - ]; - } catch (err) { - parent = []; + if (!amend) { + parent = refOid ? [refOid] : []; + } else { + parent = refCommit.commit.parent; } } else { parent = await Promise.all( @@ -19972,6 +19871,13 @@ async function _commit({ }) ); } + if (!message) { + if (!amend) { + throw new MissingParameterError("message"); + } else { + message = refCommit.commit.message; + } + } let comm = GitCommit.from({ tree, parent, @@ -20186,35 +20092,6 @@ async function _addNote({ }); return commitOid; } -async function _getConfig({ fs, gitdir, path: path2 }) { - const config = await GitConfigManager.get({ fs, gitdir }); - return config.get(path2); -} -async function normalizeAuthorObject({ fs, gitdir, author = {} }) { - let { name, email, timestamp, timezoneOffset } = author; - name = name || await _getConfig({ fs, gitdir, path: "user.name" }); - email = email || await _getConfig({ fs, gitdir, path: "user.email" }) || ""; - if (name === void 0) { - return void 0; - } - timestamp = timestamp != null ? timestamp : Math.floor(Date.now() / 1e3); - timezoneOffset = timezoneOffset != null ? timezoneOffset : new Date(timestamp * 1e3).getTimezoneOffset(); - return { name, email, timestamp, timezoneOffset }; -} -async function normalizeCommitterObject({ - fs, - gitdir, - author, - committer -}) { - committer = Object.assign({}, committer || author); - if (author) { - committer.timestamp = committer.timestamp || author.timestamp; - committer.timezoneOffset = committer.timezoneOffset || author.timezoneOffset; - } - committer = await normalizeAuthorObject({ fs, gitdir, author: committer }); - return committer; -} async function addNote({ fs: _fs, onSign, @@ -20239,16 +20116,14 @@ async function addNote({ } const fs = new FileSystem(_fs); const author = await normalizeAuthorObject({ fs, gitdir, author: _author }); - if (!author) - throw new MissingNameError("author"); + if (!author) throw new MissingNameError("author"); const committer = await normalizeCommitterObject({ fs, gitdir, author, committer: _committer }); - if (!committer) - throw new MissingNameError("committer"); + if (!committer) throw new MissingNameError("committer"); return await _addNote({ fs: new FileSystem(fs), cache, @@ -20377,8 +20252,7 @@ async function annotatedTag({ } const fs = new FileSystem(_fs); const tagger = await normalizeAuthorObject({ fs, gitdir, author: _tagger }); - if (!tagger) - throw new MissingNameError("tagger"); + if (!tagger) throw new MissingNameError("tagger"); return await _annotatedTag({ fs, cache, @@ -20472,6 +20346,7 @@ async function _checkout({ fs, cache, onProgress, + onPostCheckout, dir, gitdir, remote, @@ -20483,12 +20358,19 @@ async function _checkout({ force, track = true }) { + let oldOid; + if (onPostCheckout) { + try { + oldOid = await GitRefManager.resolve({ fs, gitdir, ref: "HEAD" }); + } catch (err) { + oldOid = "0000000000000000000000000000000000000000"; + } + } let oid; try { oid = await GitRefManager.resolve({ fs, gitdir, ref }); } catch (err) { - if (ref === "HEAD") - throw err; + if (ref === "HEAD") throw err; const remoteRef = `${remote}/${ref}`; oid = await GitRefManager.resolve({ fs, @@ -20537,6 +20419,13 @@ async function _checkout({ throw new InternalError(errors.join(", ")); } if (dryRun) { + if (onPostCheckout) { + await onPostCheckout({ + previousHead: oldOid, + newHead: oid, + type: filepaths != null && filepaths.length > 0 ? "file" : "branch" + }); + } return; } let count = 0; @@ -20651,6 +20540,13 @@ async function _checkout({ }) ); }); + if (onPostCheckout) { + await onPostCheckout({ + previousHead: oldOid, + newHead: oid, + type: filepaths != null && filepaths.length > 0 ? "file" : "branch" + }); + } } if (!noUpdateHead) { const fullRef = await GitRefManager.expand({ fs, gitdir, ref }); @@ -20684,8 +20580,7 @@ async function analyze({ gitdir, trees: [TREE({ ref }), WORKDIR(), STAGE()], map: async function(fullpath, [commit2, workdir, stage]) { - if (fullpath === ".") - return; + if (fullpath === ".") return; if (filepaths && !filepaths.some((base) => worthWalking(fullpath, base))) { return null; } @@ -20912,6 +20807,7 @@ async function analyze({ async function checkout({ fs, onProgress, + onPostCheckout, dir, gitdir = join(dir, ".git"), remote = "origin", @@ -20933,6 +20829,7 @@ async function checkout({ fs: new FileSystem(fs), cache, onProgress, + onPostCheckout, dir, gitdir, remote, @@ -20980,8 +20877,7 @@ async function _currentBranch({ return; } } - if (!ref.startsWith("refs/")) - return; + if (!ref.startsWith("refs/")) return; return fullname ? ref : abbreviateRef(ref); } function translateSSHtoHTTP(url) { @@ -20996,13 +20892,10 @@ async function forAwait(iterable, cb) { const iter = getIterator(iterable); while (true) { const { value, done } = await iter.next(); - if (value) - await cb(value); - if (done) - break; + if (value) await cb(value); + if (done) break; } - if (iter.return) - iter.return(); + if (iter.return) iter.return(); } async function collect(iterable) { let size = 0; @@ -21021,8 +20914,7 @@ async function collect(iterable) { } function extractAuthFromUrl(url) { let userpass = url.match(/^https?:\/\/([^/]+)@/); - if (userpass == null) - return { url, auth: {} }; + if (userpass == null) return { url, auth: {} }; userpass = userpass[1]; const [username, password] = userpass.split(":"); url = url.replace(`${userpass}@`, ""); @@ -21052,16 +20944,12 @@ var GitPktLine = class { return async function read() { try { let length = await reader.read(4); - if (length == null) - return true; + if (length == null) return true; length = parseInt(length.toString("utf8"), 16); - if (length === 0) - return null; - if (length === 1) - return null; + if (length === 0) return null; + if (length === 1) return null; const buffer2 = await reader.read(length - 4); - if (buffer2 == null) - return true; + if (buffer2 == null) return true; return buffer2; } catch (err) { stream.error = err; @@ -21075,10 +20963,8 @@ async function parseCapabilitiesV2(read) { let line; while (true) { line = await read(); - if (line === true) - break; - if (line === null) - continue; + if (line === true) break; + if (line === null) continue; line = line.toString("utf8").replace(/\n$/, ""); const i = line.indexOf("="); if (i > -1) { @@ -21097,10 +20983,8 @@ async function parseRefsAdResponse(stream, { service }) { const symrefs = /* @__PURE__ */ new Map(); const read = GitPktLine.streamReader(stream); let lineOne = await read(); - while (lineOne === null) - lineOne = await read(); - if (lineOne === true) - throw new EmptyServerResponseError(); + while (lineOne === null) lineOne = await read(); + if (lineOne === true) throw new EmptyServerResponseError(); if (lineOne.includes("version 2")) { return parseCapabilitiesV2(read); } @@ -21108,25 +20992,24 @@ async function parseRefsAdResponse(stream, { service }) { throw new ParseError(`# service=${service}\\n`, lineOne.toString("utf8")); } let lineTwo = await read(); - while (lineTwo === null) - lineTwo = await read(); - if (lineTwo === true) - return { capabilities, refs, symrefs }; + while (lineTwo === null) lineTwo = await read(); + if (lineTwo === true) return { capabilities, refs, symrefs }; lineTwo = lineTwo.toString("utf8"); if (lineTwo.includes("version 2")) { return parseCapabilitiesV2(read); } const [firstRef, capabilitiesLine] = splitAndAssert(lineTwo, "\0", "\\x00"); capabilitiesLine.split(" ").map((x) => capabilities.add(x)); - const [ref, name] = splitAndAssert(firstRef, " ", " "); - refs.set(name, ref); - while (true) { - const line = await read(); - if (line === true) - break; - if (line !== null) { - const [ref2, name2] = splitAndAssert(line.toString("utf8"), " ", " "); - refs.set(name2, ref2); + if (firstRef !== "0000000000000000000000000000000000000000 capabilities^{}") { + const [ref, name] = splitAndAssert(firstRef, " ", " "); + refs.set(name, ref); + while (true) { + const line = await read(); + if (line === true) break; + if (line !== null) { + const [ref2, name2] = splitAndAssert(line.toString("utf8"), " ", " "); + refs.set(name2, ref2); + } } } for (const cap of capabilities) { @@ -21276,10 +21159,8 @@ var GitRemoteHTTP = class { headers }) { const urlAuth = extractAuthFromUrl(url); - if (urlAuth) - url = urlAuth.url; - if (corsProxy) - url = corsProxify(corsProxy, url); + if (urlAuth) url = urlAuth.url; + if (corsProxy) url = corsProxify(corsProxy, url); headers["content-type"] = `application/x-${service}-request`; headers.accept = `application/x-${service}-result`; updateHeaders(headers, auth); @@ -21305,8 +21186,7 @@ function parseRemoteUrl({ url }) { }; } const matches = url.match(/(\w+)(:\/\/|::)(.*)/); - if (matches === null) - return; + if (matches === null) return; if (matches[2] === "://") { return { transport: matches[1], @@ -21339,36 +21219,32 @@ var GitRemoteManager = class { ); } }; -var lock$1 = null; +var lock$2 = null; var GitShallowManager = class { static async read({ fs, gitdir }) { - if (lock$1 === null) - lock$1 = new import_async_lock.default(); + if (lock$2 === null) lock$2 = new import_async_lock.default(); const filepath = join(gitdir, "shallow"); const oids = /* @__PURE__ */ new Set(); - await lock$1.acquire(filepath, async function() { + await lock$2.acquire(filepath, async function() { const text2 = await fs.read(filepath, { encoding: "utf8" }); - if (text2 === null) - return oids; - if (text2.trim() === "") - return oids; + if (text2 === null) return oids; + if (text2.trim() === "") return oids; text2.trim().split("\n").map((oid) => oids.add(oid)); }); return oids; } static async write({ fs, gitdir, oids }) { - if (lock$1 === null) - lock$1 = new import_async_lock.default(); + if (lock$2 === null) lock$2 = new import_async_lock.default(); const filepath = join(gitdir, "shallow"); if (oids.size > 0) { const text2 = [...oids].join("\n") + "\n"; - await lock$1.acquire(filepath, async function() { + await lock$2.acquire(filepath, async function() { await fs.write(filepath, text2, { encoding: "utf8" }); }); } else { - await lock$1.acquire(filepath, async function() { + await lock$2.acquire(filepath, async function() { await fs.rm(filepath); }); } @@ -21395,8 +21271,7 @@ async function hasObjectPacked({ filename: indexFile, getExternalRefDelta }); - if (p.error) - throw new InternalError(p.error); + if (p.error) throw new InternalError(p.error); if (p.offsets.has(oid)) { return true; } @@ -21439,8 +21314,8 @@ function filterCapabilities(server, client) { } var pkg = { name: "isomorphic-git", - version: "1.25.3", - agent: "git/isomorphic-git@1.25.3" + version: "1.27.1", + agent: "git/isomorphic-git@1.27.1" }; var FIFO = class { constructor() { @@ -21490,14 +21365,10 @@ var FIFO = class { function findSplit(str) { const r = str.indexOf("\r"); const n = str.indexOf("\n"); - if (r === -1 && n === -1) - return -1; - if (r === -1) - return n + 1; - if (n === -1) - return r + 1; - if (n === r + 1) - return n + 1; + if (r === -1 && n === -1) return -1; + if (r === -1) return n + 1; + if (n === -1) return r + 1; + if (n === r + 1) return n + 1; return Math.min(r, n) + 1; } function splitLines(input) { @@ -21509,8 +21380,7 @@ function splitLines(input) { tmp += chunk; while (true) { const i = findSplit(tmp); - if (i === -1) - break; + if (i === -1) break; output.write(tmp.slice(0, i)); tmp = tmp.slice(i); } @@ -21530,8 +21400,7 @@ var GitSideBand = class { const progress = new FIFO(); const nextBit = async function() { const line = await read(); - if (line === null) - return nextBit(); + if (line === null) return nextBit(); if (line === true) { packetlines.end(); progress.end(); @@ -21661,8 +21530,7 @@ async function parseUploadPackResponse(stream) { } else if (line.startsWith("ACK")) { const [, oid, status2] = line.split(" "); acks.push({ oid, status: status2 }); - if (!status2) - done = true; + if (!status2) done = true; } else if (line.startsWith("NAK")) { nak = true; done = true; @@ -21818,8 +21686,7 @@ async function _fetch({ `agent=${pkg.agent}` ] ); - if (relative2) - capabilities.push("deepen-relative"); + if (relative2) capabilities.push("deepen-relative"); const wants = singleBranch ? [oid] : remoteRefs.values(); const haveRefs = singleBranch ? [ref] : await GitRefManager.listRefs({ fs, @@ -21892,8 +21759,7 @@ async function _fetch({ let key2 = fullref; while (bail--) { const value = remoteHTTP.symrefs.get(key2); - if (value === void 0) - break; + if (value === void 0) break; symrefs.set(key2, value); key2 = value; } @@ -21949,8 +21815,7 @@ async function _fetch({ if (onProgress || onMessage) { const lines = splitLines(response.progress); forAwait(lines, async (line) => { - if (onMessage) - await onMessage(line); + if (onMessage) await onMessage(line); if (onProgress) { const matches = line.match(/([^:]*).*\((\d+?)\/(\d+?)\)/); if (matches) { @@ -21964,8 +21829,7 @@ async function _fetch({ }); } const packfile = Buffer.from(await collect(response.packfile)); - if (raw.body.error) - throw raw.body.error; + if (raw.body.error) throw raw.body.error; const packfileSha = packfile.slice(-20).toString("hex"); const res = { defaultBranch: response.HEAD, @@ -21999,8 +21863,7 @@ async function _init({ gitdir = bare ? dir : join(dir, ".git"), defaultBranch = "master" }) { - if (await fs.exists(gitdir + "/config")) - return; + if (await fs.exists(gitdir + "/config")) return; let folders = [ "hooks", "info", @@ -22033,6 +21896,7 @@ async function _clone({ onAuth, onAuthSuccess, onAuthFailure, + onPostCheckout, dir, gitdir, url, @@ -22077,14 +21941,14 @@ async function _clone({ headers, tags: !noTags }); - if (fetchHead === null) - return; + if (fetchHead === null) return; ref = ref || defaultBranch; ref = ref.replace("refs/heads/", ""); await _checkout({ fs, cache, onProgress, + onPostCheckout, dir, gitdir, ref, @@ -22104,6 +21968,7 @@ async function clone({ onAuth, onAuthSuccess, onAuthFailure, + onPostCheckout, dir, gitdir = join(dir, ".git"), url, @@ -22137,6 +22002,7 @@ async function clone({ onAuth, onAuthSuccess, onAuthFailure, + onPostCheckout, dir, gitdir, url, @@ -22163,9 +22029,10 @@ async function commit({ dir, gitdir = join(dir, ".git"), message, - author: _author, - committer: _committer, + author, + committer, signingKey, + amend = false, dryRun = false, noUpdateBranch = false, ref, @@ -22175,22 +22042,13 @@ async function commit({ }) { try { assertParameter("fs", _fs); - assertParameter("message", message); + if (!amend) { + assertParameter("message", message); + } if (signingKey) { assertParameter("onSign", onSign); } const fs = new FileSystem(_fs); - const author = await normalizeAuthorObject({ fs, gitdir, author: _author }); - if (!author) - throw new MissingNameError("author"); - const committer = await normalizeCommitterObject({ - fs, - gitdir, - author, - committer: _committer - }); - if (!committer) - throw new MissingNameError("committer"); return await _commit({ fs, cache, @@ -22200,6 +22058,7 @@ async function commit({ author, committer, signingKey, + amend, dryRun, noUpdateBranch, ref, @@ -22245,6 +22104,10 @@ async function _deleteBranch({ fs, gitdir, ref }) { await GitRefManager.writeRef({ fs, gitdir, ref: "HEAD", value }); } await GitRefManager.deleteRef({ fs, gitdir, ref: fullRef }); + const abbrevRef = abbreviateRef(ref); + const config = await GitConfigManager.get({ fs, gitdir }); + await config.deleteSection("branch", abbrevRef); + await GitConfigManager.save({ fs, gitdir, config }); } async function deleteBranch({ fs, @@ -22340,11 +22203,9 @@ async function expandOidPacked({ filename: indexFile, getExternalRefDelta }); - if (p.error) - throw new InternalError(p.error); + if (p.error) throw new InternalError(p.error); for (const oid of p.offsets.keys()) { - if (oid.startsWith(short)) - results.push(oid); + if (oid.startsWith(short)) results.push(oid); } } return results; @@ -22416,8 +22277,7 @@ async function _findMergeBase({ fs, cache, gitdir, oids }) { while (heads.length) { const result = /* @__PURE__ */ new Set(); for (const { oid, index: index2 } of heads) { - if (!visits[oid]) - visits[oid] = /* @__PURE__ */ new Set(); + if (!visits[oid]) visits[oid] = /* @__PURE__ */ new Set(); visits[oid].add(index2); if (visits[oid].size === passes) { result.add(oid); @@ -22613,10 +22473,8 @@ async function mergeTree({ */ reduce: unmergedFiles.length !== 0 && (!dir || abortOnConflict) ? void 0 : async (parent, children2) => { const entries = children2.filter(Boolean); - if (!parent) - return; - if (parent && parent.type === "tree" && entries.length === 0) - return; + if (!parent) return; + if (parent && parent.type === "tree" && entries.length === 0) return; if (entries.length > 0) { const tree = new GitTree(entries); const object = tree.toObject(); @@ -22801,8 +22659,7 @@ async function _merge({ }); } ); - if (tree instanceof MergeConflictError) - throw tree; + if (tree instanceof MergeConflictError) throw tree; if (!message) { message = `Merge branch '${abbreviateRef(theirs)}' into ${abbreviateRef( ours @@ -23169,8 +23026,7 @@ async function getRemoteInfo({ function formatInfoRefs(remote, prefix, symrefs, peelTags) { const refs = []; for (const [key2, value] of remote.refs) { - if (prefix && !key2.startsWith(prefix)) - continue; + if (prefix && !key2.startsWith(prefix)) continue; if (key2.endsWith("^{}")) { if (peelTags) { const _key = key2.replace("^{}", ""); @@ -23370,8 +23226,7 @@ async function _isDescendent({ if (!ancestor) { throw new MissingParameterError("ancestor"); } - if (oid === ancestor) - return false; + if (oid === ancestor) return false; const queue = [oid]; const visited = /* @__PURE__ */ new Set(); let searchdepth = 0; @@ -23391,8 +23246,7 @@ async function _isDescendent({ } const commit2 = GitCommit.from(object).parse(); for (const parent of commit2.parent) { - if (parent === ancestor) - return true; + if (parent === ancestor) return true; } if (!shallows.has(oid2)) { for (const parent of commit2.parent) { @@ -23610,10 +23464,8 @@ async function parseListRefsResponse(stream) { let line; while (true) { line = await read(); - if (line === true) - break; - if (line === null) - continue; + if (line === true) break; + if (line === null) continue; line = line.toString("utf8").replace(/\n$/, ""); const [oid, ref, ...attrs] = line.split(" "); const r = { ref, oid }; @@ -23637,12 +23489,9 @@ async function writeListRefsRequest({ prefix, symrefs, peelTags }) { if (peelTags || symrefs || prefix) { packstream.push(GitPktLine.delim()); } - if (peelTags) - packstream.push(GitPktLine.encode("peel")); - if (symrefs) - packstream.push(GitPktLine.encode("symrefs")); - if (prefix) - packstream.push(GitPktLine.encode(`ref-prefix ${prefix}`)); + if (peelTags) packstream.push(GitPktLine.encode("peel")); + if (symrefs) packstream.push(GitPktLine.encode("symrefs")); + if (prefix) packstream.push(GitPktLine.encode(`ref-prefix ${prefix}`)); packstream.push(GitPktLine.flush()); return packstream; } @@ -23703,38 +23552,12 @@ async function listTags({ fs, dir, gitdir = join(dir, ".git") }) { throw err; } } -async function resolveCommit({ fs, cache, gitdir, oid }) { - const { type, object } = await _readObject({ fs, cache, gitdir, oid }); - if (type === "tag") { - oid = GitAnnotatedTag.from(object).parse().object; - return resolveCommit({ fs, cache, gitdir, oid }); - } - if (type !== "commit") { - throw new ObjectTypeError(oid, type, "commit"); - } - return { commit: GitCommit.from(object), oid }; -} -async function _readCommit({ fs, cache, gitdir, oid }) { - const { commit: commit2, oid: commitOid } = await resolveCommit({ - fs, - cache, - gitdir, - oid - }); - const result = { - oid: commitOid, - commit: commit2.parse(), - payload: commit2.withoutSignature() - }; - return result; -} function compareAge(a, b) { return a.committer.timestamp - b.committer.timestamp; } var EMPTY_OID = "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"; async function resolveFileIdInTree({ fs, cache, gitdir, oid, fileId }) { - if (fileId === EMPTY_OID) - return; + if (fileId === EMPTY_OID) return; const _oid = oid; let filepath; const result = await resolveTree({ fs, cache, gitdir, oid }); @@ -23751,10 +23574,8 @@ async function resolveFileIdInTree({ fs, cache, gitdir, oid, fileId }) { oid: _oid }); if (Array.isArray(filepath)) { - if (filepath.length === 0) - filepath = void 0; - else if (filepath.length === 1) - filepath = filepath[0]; + if (filepath.length === 0) filepath = void 0; + else if (filepath.length === 1) filepath = filepath[0]; } } return filepath; @@ -23818,8 +23639,7 @@ async function _log({ let lastCommit; let isOk; function endCommit(commit2) { - if (isOk && filepath) - commits.push(commit2); + if (isOk && filepath) commits.push(commit2); } while (tips.length > 0) { const commit2 = tips.pop(); @@ -23868,36 +23688,30 @@ async function _log({ if (found.length === 1) { found = found[0]; filepath = found; - if (lastCommit) - commits.push(lastCommit); + if (lastCommit) commits.push(lastCommit); } else { found = false; - if (lastCommit) - commits.push(lastCommit); + if (lastCommit) commits.push(lastCommit); break; } } } } else { filepath = found; - if (lastCommit) - commits.push(lastCommit); + if (lastCommit) commits.push(lastCommit); } } } if (!found) { if (isOk && lastFileOid) { commits.push(lastCommit); - if (!force) - break; + if (!force) break; } - if (!force && !follow) - throw e; + if (!force && !follow) throw e; } lastCommit = commit2; isOk = false; - } else - throw e; + } else throw e; } } else { commits.push(commit2); @@ -24134,16 +23948,14 @@ async function pull({ assertParameter("gitdir", gitdir); const fs = new FileSystem(_fs); const author = await normalizeAuthorObject({ fs, gitdir, author: _author }); - if (!author) - throw new MissingNameError("author"); + if (!author) throw new MissingNameError("author"); const committer = await normalizeCommitterObject({ fs, gitdir, author, committer: _committer }); - if (!committer) - throw new MissingNameError("committer"); + if (!committer) throw new MissingNameError("committer"); return await _pull({ fs, cache, @@ -24232,8 +24044,7 @@ async function listObjects({ }) { const visited = /* @__PURE__ */ new Set(); async function walk2(oid) { - if (visited.has(oid)) - return; + if (visited.has(oid)) return; visited.add(oid); const { type, object } = await _readObject({ fs, cache, gitdir, oid }); if (type === "tag") { @@ -24267,8 +24078,7 @@ async function parseReceivePackResponse(packfile) { const read = GitPktLine.streamReader(packfile); let line = await read(); while (line !== true) { - if (line !== null) - response += line.toString("utf8") + "\n"; + if (line !== null) response += line.toString("utf8") + "\n"; line = await read(); } const lines = response.toString("utf8").split("\n"); @@ -24282,13 +24092,11 @@ async function parseReceivePackResponse(packfile) { } result.refs = {}; for (const line2 of lines) { - if (line2.trim() === "") - continue; + if (line2.trim() === "") continue; const status2 = line2.slice(0, 2); const refAndMessage = line2.slice(3); let space2 = refAndMessage.indexOf(" "); - if (space2 === -1) - space2 = refAndMessage.length; + if (space2 === -1) space2 = refAndMessage.length; const ref = refAndMessage.slice(0, space2); const error = refAndMessage.slice(space2 + 1); result.refs[ref] = { @@ -24325,6 +24133,7 @@ async function _push({ onAuth, onAuthSuccess, onAuthFailure, + onPrePush, gitdir, ref: _ref, remoteRef: _remoteRef, @@ -24385,6 +24194,15 @@ async function _push({ } } const oldoid = httpRemote.refs.get(fullRemoteRef) || "0000000000000000000000000000000000000000"; + if (onPrePush) { + const hookCancel = await onPrePush({ + remote, + url, + localRef: { ref: _delete ? "(delete)" : fullRef, oid }, + remoteRef: { ref: fullRemoteRef, oid: oldoid } + }); + if (!hookCancel) throw new UserCanceledError(); + } const thinPack = !httpRemote.capabilities.has("no-thin"); let objects = /* @__PURE__ */ new Set(); if (!_delete) { @@ -24397,8 +24215,7 @@ async function _push({ gitdir, oids: [oid, oldoid] }); - for (const oid2 of mergebase) - finish.push(oid2); + for (const oid2 of mergebase) finish.push(oid2); if (thinPack) { skipObjects = await listObjects({ fs, cache, gitdir, oids: mergebase }); } @@ -24436,8 +24253,7 @@ async function _push({ objects.delete(oid2); } } - if (oid === oldoid) - force = true; + if (oid === oldoid) force = true; if (!force) { if (fullRef.startsWith("refs/tags") && oldoid !== "0000000000000000000000000000000000000000") { throw new PushRejectedError("tag-exists"); @@ -24489,7 +24305,7 @@ async function _push({ if (res.headers) { result.headers = res.headers; } - if (remote && result.ok && result.refs[fullRemoteRef].ok) { + if (remote && result.ok && result.refs[fullRemoteRef].ok && !fullRef.startsWith("refs/tags")) { const ref2 = `refs/remotes/${remote}/${fullRemoteRef.replace( "refs/heads", "" @@ -24516,6 +24332,7 @@ async function push({ onAuth, onAuthSuccess, onAuthFailure, + onPrePush, dir, gitdir = join(dir, ".git"), ref, @@ -24541,6 +24358,7 @@ async function push({ onAuth, onAuthSuccess, onAuthFailure, + onPrePush, gitdir, ref, remoteRef, @@ -24894,16 +24712,14 @@ async function removeNote({ assertParameter("oid", oid); const fs = new FileSystem(_fs); const author = await normalizeAuthorObject({ fs, gitdir, author: _author }); - if (!author) - throw new MissingNameError("author"); + if (!author) throw new MissingNameError("author"); const committer = await normalizeCommitterObject({ fs, gitdir, author, committer: _committer }); - if (!committer) - throw new MissingNameError("committer"); + if (!committer) throw new MissingNameError("committer"); return await _removeNote({ fs, cache, @@ -25138,8 +24954,7 @@ async function status({ { fs, gitdir, cache }, async function(index2) { for (const entry of index2) { - if (entry.path === filepath) - return entry; + if (entry.path === filepath) return entry; } return null; } @@ -25168,18 +24983,14 @@ async function status({ return workdirOid; } }; - if (!H && !W && !I) - return "absent"; - if (!H && !W && I) - return "*absent"; - if (!H && W && !I) - return "*added"; + if (!H && !W && !I) return "absent"; + if (!H && !W && I) return "*absent"; + if (!H && W && !I) return "*added"; if (!H && W && I) { const workdirOid = await getWorkdirOid(); return workdirOid === indexEntry.oid ? "added" : "*added"; } - if (H && !W && !I) - return "deleted"; + if (H && !W && !I) return "deleted"; if (H && !W && I) { return treeOid === indexEntry.oid ? "*deleted" : "*deleted"; } @@ -25201,8 +25012,7 @@ async function status({ } } async function getOidAtPath({ fs, cache, gitdir, tree, path: path2 }) { - if (typeof path2 === "string") - path2 = path2.split("/"); + if (typeof path2 === "string") path2 = path2.split("/"); const dirname3 = path2.shift(); for (const entry of tree) { if (entry.path === dirname3) { @@ -25276,8 +25086,7 @@ async function statusMatrix({ return null; } if (filter) { - if (!filter(filepath)) - return; + if (!filter(filepath)) return; } const [headType, workdirType, stageType] = await Promise.all([ head && head.type(), @@ -25285,16 +25094,12 @@ async function statusMatrix({ stage && stage.type() ]); const isBlob = [headType, workdirType, stageType].includes("blob"); - if ((headType === "tree" || headType === "special") && !isBlob) - return; - if (headType === "commit") - return null; + if ((headType === "tree" || headType === "special") && !isBlob) return; + if (headType === "commit") return null; if ((workdirType === "tree" || workdirType === "special") && !isBlob) return; - if (stageType === "commit") - return null; - if ((stageType === "tree" || stageType === "special") && !isBlob) - return; + if (stageType === "commit") return null; + if ((stageType === "tree" || stageType === "special") && !isBlob) return; const headOid = headType === "blob" ? await head.oid() : void 0; const stageOid = stageType === "blob" ? await stage.oid() : void 0; let workdirOid; @@ -29686,6 +29491,16 @@ function getNewLeaf(event) { } return leaf; } +function mayTriggerFileMenu(app2, event, filePath, view, source) { + if (event.button == 2) { + const file = app2.vault.getAbstractFileByPath(filePath); + if (file != null) { + const fileMenu = new import_obsidian3.Menu(); + app2.workspace.trigger("file-menu", fileMenu, file, source, view); + fileMenu.showAtPosition({ x: event.pageX, y: event.pageY }); + } + } +} function impossibleBranch(x) { throw new Error("Impossible branch: " + x); } @@ -29705,8 +29520,7 @@ function momentToEpochSeconds(instant) { return instant.diff(import_obsidian3.moment.unix(0), "seconds"); } function median(array) { - if (array.length === 0) - return void 0; + if (array.length === 0) return void 0; return array.slice().sort()[Math.floor(array.length / 2)]; } function strictDeepEqual(a, b) { @@ -29721,8 +29535,7 @@ function resizeToLength(original, desiredLength, fillChar) { } } function prefixOfLengthAsWhitespace(toBeRenderedText, whitespacePrefixLength) { - if (whitespacePrefixLength <= 0) - return toBeRenderedText; + if (whitespacePrefixLength <= 0) return toBeRenderedText; const whitespacePrefix = new Array(whitespacePrefixLength).fill(" ").join(""); const originalSuffix = toBeRenderedText.substring( whitespacePrefixLength, @@ -29738,13 +29551,11 @@ function splitRemoteBranch(remoteBranch) { return [remote, branch2.length === 0 ? void 0 : branch2.join("/")]; } function getDisplayPath(path2) { - if (path2.endsWith("/")) - return path2; + if (path2.endsWith("/")) return path2; return path2.split("/").last().replace(".md", ""); } function formatMinutes(minutes) { - if (minutes === 1) - return "1 minute"; + if (minutes === 1) return "1 minute"; return `${minutes} minutes`; } @@ -30056,8 +29867,7 @@ var SimpleGit = class extends GitManager { //Remove wrong `"` like "My file.md" formatPath(path2, renamed = false) { function format(path3) { - if (path3 == void 0) - return void 0; + if (path3 == void 0) return void 0; if (path3.startsWith('"') && path3.endsWith('"')) { return path3.substring(1, path3.length - 1); } else { @@ -30077,14 +29887,12 @@ var SimpleGit = class extends GitManager { } async blame(path2, trackMovement, ignoreWhitespace) { path2 = this.getRelativeRepoPath(path2); - if (!await this.isTracked(path2)) - return "untracked"; + if (!await this.isTracked(path2)) return "untracked"; const inSubmodule = await this.getSubmoduleOfFile(path2); const args = inSubmodule ? ["-C", inSubmodule.submodule] : []; const relativePath = inSubmodule ? inSubmodule.relativeFilepath : path2; args.push("blame", "--porcelain"); - if (ignoreWhitespace) - args.push("-w"); + if (ignoreWhitespace) args.push("-w"); const trackCArg = `-C${GIT_LINE_AUTHORING_MOVEMENT_DETECTION_MINIMAL_LENGTH}`; switch (trackMovement) { case "inactive": @@ -30530,10 +30338,8 @@ var SimpleGit = class extends GitManager { async getDiffString(filePath, stagedChanges = false, hash2) { if (stagedChanges) return await this.git.diff(["--cached", "--", filePath]); - if (hash2) - return await this.git.show([`${hash2}`, "--", filePath]); - else - return await this.git.diff(["--", filePath]); + if (hash2) return await this.git.show([`${hash2}`, "--", filePath]); + else return await this.git.diff(["--", filePath]); } async diff(file, commit1, commit2) { return await this.git.diff([`${commit1}..${commit2}`, "--", file]); @@ -30757,8 +30563,7 @@ var EventsPerFilePath = class { * Run the {@link handler} on the subscribers to {@link filepath}. */ ifFilepathDefinedTransformSubscribers(filepath, handler) { - if (!filepath) - return; + if (!filepath) return; this.ensureInitialized(filepath); return handler(this.eventsPerFilepath.get(filepath)); } @@ -31083,31 +30888,22 @@ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } function _arrayWithoutHoles(arr) { - if (Array.isArray(arr)) - return _arrayLikeToArray(arr); + if (Array.isArray(arr)) return _arrayLikeToArray(arr); } function _iterableToArray(iter) { - if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) - return Array.from(iter); + if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); } function _unsupportedIterableToArray(o, minLen) { - if (!o) - return; - if (typeof o === "string") - return _arrayLikeToArray(o, minLen); + if (!o) return; + if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) - n = o.constructor.name; - if (n === "Map" || n === "Set") - return Array.from(o); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) - return _arrayLikeToArray(o, minLen); + if (n === "Object" && o.constructor) n = o.constructor.name; + if (n === "Map" || n === "Set") return Array.from(o); + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } function _arrayLikeToArray(arr, len) { - if (len == null || len > arr.length) - len = arr.length; - for (var i = 0, arr2 = new Array(len); i < len; i++) - arr2[i] = arr[i]; + if (len == null || len > arr.length) len = arr.length; + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } function _nonIterableSpread() { @@ -31338,19 +31134,15 @@ var GeneralModal = class extends import_obsidian5.SuggestModal { selectSuggestion(value, evt) { if (this.resolve) { let res; - if (this.config.allowEmpty && value === " ") - res = ""; - else if (value === "...") - res = void 0; - else - res = value; + if (this.config.allowEmpty && value === " ") res = ""; + else if (value === "...") res = void 0; + else res = value; this.resolve(res); } super.selectSuggestion(value, evt); } onClose() { - if (this.resolve) - this.resolve(void 0); + if (this.resolve) this.resolve(void 0); } getSuggestions(query) { if (this.config.onlySelection) { @@ -31442,8 +31234,7 @@ var MyAdapter = class { } } async readdir(path2) { - if (path2 === ".") - path2 = "/"; + if (path2 === ".") path2 = "/"; const res = await this.adapter.list(path2); const all = [...res.files, ...res.folders]; let formattedAll; @@ -31493,8 +31284,7 @@ var MyAdapter = class { }; } } - if (path2 === ".") - path2 = "/"; + if (path2 === ".") path2 = "/"; const file = this.vault.getAbstractFileByPath(path2); this.maybeLog("Stat: " + path2); if (file instanceof import_obsidian6.TFile) { @@ -32346,8 +32136,7 @@ var IsomorphicGit = class extends GitManager { ); if ((workdirType === "tree" || workdirType === "special") && !isBlob) return; - if (stageType === "commit") - return null; + if (stageType === "commit") return null; if ((stageType === "tree" || stageType === "special") && !isBlob) return; const stageOid = stageType === "blob" ? await stage.oid() : void 0; @@ -32526,13 +32315,10 @@ async function forAwait2(iterable, cb) { const iter = getIterator2(iterable); while (true) { const { value, done } = await iter.next(); - if (value) - await cb(value); - if (done) - break; + if (value) await cb(value); + if (done) break; } - if (iter.return) - iter.return(); + if (iter.return) iter.return(); } async function collect2(iterable) { let size = 0; @@ -32554,11 +32340,11 @@ async function collect2(iterable) { var FORMAT_STRING_REFERENCE_URL = "https://momentjs.com/docs/#/parsing/string-format/"; var LINE_AUTHOR_FEATURE_WIKI_LINK = "https://publish.obsidian.md/git-doc/Line+Authoring"; var ObsidianGitSettingsTab = class extends import_obsidian8.PluginSettingTab { - constructor() { - super(...arguments); + constructor(app2, plugin) { + super(app2, plugin); + this.plugin = plugin; this.lineAuthorColorSettings = /* @__PURE__ */ new Map(); } - // narrow type from PluginSettingTab.plugin get settings() { return this.plugin.settings; } @@ -32568,15 +32354,14 @@ var ObsidianGitSettingsTab = class extends import_obsidian8.PluginSettingTab { const commitOrBackup = plugin.settings.differentIntervalCommitAndPush ? "commit" : "backup"; const gitReady = plugin.gitReady; containerEl.empty(); - containerEl.createEl("h2", { text: "Git Backup settings" }); if (!gitReady) { containerEl.createEl("p", { text: "Git is not ready. When all settings are correct you can configure auto backup, etc." }); + containerEl.createEl("br"); } if (gitReady) { - containerEl.createEl("br"); - containerEl.createEl("h3", { text: "Automatic" }); + new import_obsidian8.Setting(containerEl).setName("Automatic").setHeading(); new import_obsidian8.Setting(containerEl).setName("Split automatic commit and push").setDesc("Enable to use separate timer for commit and push").addToggle( (toggle) => toggle.setValue( plugin.settings.differentIntervalCommitAndPush @@ -32727,8 +32512,7 @@ var ObsidianGitSettingsTab = class extends import_obsidian8.PluginSettingTab { plugin.saveSettings(); }) ); - containerEl.createEl("br"); - containerEl.createEl("h3", { text: "Commit message" }); + new import_obsidian8.Setting(containerEl).setName("Commit message").setHeading(); new import_obsidian8.Setting(containerEl).setName("Commit message on manual backup/commit").setDesc( "Available placeholders: {{date}} (see below), {{hostname}} (see below), {{numFiles}} (number of changed files in the commit) and {{files}} (changed files in commit message)" ).addTextArea( @@ -32769,8 +32553,7 @@ var ObsidianGitSettingsTab = class extends import_obsidian8.PluginSettingTab { plugin.saveSettings(); }) ); - containerEl.createEl("br"); - containerEl.createEl("h3", { text: "Backup" }); + new import_obsidian8.Setting(containerEl).setName("Backup").setHeading(); if (plugin.gitManager instanceof SimpleGit) new import_obsidian8.Setting(containerEl).setName("Sync Method").setDesc( "Selects the method used for handling new changes found in your remote git repository." @@ -32806,13 +32589,11 @@ var ObsidianGitSettingsTab = class extends import_obsidian8.PluginSettingTab { }) ); if (plugin.gitManager instanceof SimpleGit) { - containerEl.createEl("br"); - containerEl.createEl("h3", { text: "Line author information" }); + new import_obsidian8.Setting(containerEl).setName("Line author information").setHeading(); this.addLineAuthorInfoSettings(); } } - containerEl.createEl("br"); - containerEl.createEl("h3", { text: "History View" }); + new import_obsidian8.Setting(containerEl).setName("History view").setHeading(); new import_obsidian8.Setting(containerEl).setName("Show Author").setDesc("Show the author of the commit in the history view").addDropdown((dropdown) => { const options = { hide: "Hide", @@ -32836,10 +32617,9 @@ var ObsidianGitSettingsTab = class extends import_obsidian8.PluginSettingTab { plugin.refresh(); }) ); - containerEl.createEl("br"); - containerEl.createEl("h3", { text: "Source Control View" }); + new import_obsidian8.Setting(containerEl).setName("Source control view").setHeading(); new import_obsidian8.Setting(containerEl).setName( - "Automatically refresh Source Control View on file changes" + "Automatically refresh source control view on file changes" ).setDesc( "On slower machines this may cause lags. If so, just disable this option" ).addToggle( @@ -32848,7 +32628,7 @@ var ObsidianGitSettingsTab = class extends import_obsidian8.PluginSettingTab { plugin.saveSettings(); }) ); - new import_obsidian8.Setting(containerEl).setName("Source Control View refresh interval").setDesc( + new import_obsidian8.Setting(containerEl).setName("Source control view refresh interval").setDesc( "Milliseconds to wait after file change before refreshing the Source Control View" ).addText( (toggle) => toggle.setValue( @@ -32862,8 +32642,7 @@ var ObsidianGitSettingsTab = class extends import_obsidian8.PluginSettingTab { plugin.setRefreshDebouncer(); }) ); - containerEl.createEl("br"); - containerEl.createEl("h3", { text: "Miscellaneous" }); + new import_obsidian8.Setting(containerEl).setName("Miscellaneous").setHeading(); new import_obsidian8.Setting(containerEl).setName("Disable notifications").setDesc( "Disable notifications for git operations to minimize distraction (refer to status bar for updates). Errors are still shown as notifications even if you enable this setting" ).addToggle( @@ -32910,13 +32689,10 @@ var ObsidianGitSettingsTab = class extends import_obsidian8.PluginSettingTab { plugin.saveSettings(); }) ); - containerEl.createEl("br"); if (plugin.gitManager instanceof IsomorphicGit) { - containerEl.createEl("h3", { - text: "Authentication/Commit Author" - }); + new import_obsidian8.Setting(containerEl).setName("Authentication/commit author").setHeading(); } else { - containerEl.createEl("h3", { text: "Commit Author" }); + new import_obsidian8.Setting(containerEl).setName("Commit author").setHeading(); } if (plugin.gitManager instanceof IsomorphicGit) new import_obsidian8.Setting(containerEl).setName( @@ -32961,8 +32737,7 @@ var ObsidianGitSettingsTab = class extends import_obsidian8.PluginSettingTab { ); }); }); - containerEl.createEl("br"); - containerEl.createEl("h3", { text: "Advanced" }); + new import_obsidian8.Setting(containerEl).setName("Advanced").setHeading(); if (plugin.gitManager instanceof SimpleGit) { new import_obsidian8.Setting(containerEl).setName("Update submodules").setDesc( '"Create backup" and "pull" takes care of submodules. Missing features: Conflicted files, count of pulled/pushed/committed files. Tracking branch needs to be set for each submodule' @@ -33081,10 +32856,8 @@ var ObsidianGitSettingsTab = class extends import_obsidian8.PluginSettingTab { configureLineAuthorShowStatus(show) { this.settings.lineAuthor.show = show; this.plugin.saveSettings(); - if (show) - this.plugin.lineAuthoringFeature.activateFeature(); - else - this.plugin.lineAuthoringFeature.deactivateFeature(); + if (show) this.plugin.lineAuthoringFeature.activateFeature(); + else this.plugin.lineAuthoringFeature.deactivateFeature(); } /** * Persists the setting {@link key} with value {@link value} and @@ -33410,8 +33183,7 @@ var lineAuthorState = import_state.StateField.define({ function laStateDigest(laState) { var _a2; const digest = import_js_sha256.sha256.create(); - if (!laState) - return digest; + if (!laState) return digest; const { la, key: key2, lineOffsetsFromUnsavedChanges } = laState; digest.update(la === "untracked" ? "t" : "f"); digest.update(key2); @@ -33434,8 +33206,7 @@ function maxAgeInDaysFromSettings(settings) { ).asDays(); } function enrichUnsavedChanges(tr, prev) { - if (!prev) - return void 0; + if (!prev) return void 0; if (!tr.changes.empty) { tr.changes.iterChanges((fromA, toA, fromB, toB) => { var _a2; @@ -33451,8 +33222,7 @@ function enrichUnsavedChanges(tr, prev) { let offset = (_a2 = prev.lineOffsetsFromUnsavedChanges.get(afterI)) != null ? _a2 : 0; const isLastLine = afterTo === afterI; const changeInNumberOfLines = afterLen - beforeLen; - if (isLastLine) - offset += changeInNumberOfLines; + if (isLastLine) offset += changeInNumberOfLines; prev.lineOffsetsFromUnsavedChanges.set(afterI, offset); } }); @@ -33493,8 +33263,7 @@ var LineAuthoringSubscriber = class { } } subscribeMe() { - if (this.filepath === void 0) - return; + if (this.filepath === void 0) return; eventsPerFilePathSingleton.ifFilepathDefinedTransformSubscribers( this.filepath, (subs) => subs.add(this) @@ -33536,8 +33305,7 @@ var getLongestRenderedGutter = () => longestRenderedGutter; function conditionallyUpdateLongestRenderedGutter(gutter2, text2) { var _a2; const length = text2.length; - if (length < ((_a2 = longestRenderedGutter == null ? void 0 : longestRenderedGutter.length) != null ? _a2 : 0)) - return; + if (length < ((_a2 = longestRenderedGutter == null ? void 0 : longestRenderedGutter.length) != null ? _a2 : 0)) return; longestRenderedGutter = { gutter: gutter2, length, text: text2 }; const settings = latestSettings.get(); if (length !== settings.gutterSpacingFallbackLength) { @@ -33586,8 +33354,7 @@ function prepareGutterSearchForContextMenuHandling() { } function findGutterElementUnderMouse() { for (const elt of attachedGutterElements) { - if (contains(elt, mouseXY)) - return elt; + if (contains(elt, mouseXY)) return elt; } } function contains(elt, pt) { @@ -33602,14 +33369,11 @@ var pluginRef = {}; // src/lineAuthor/view/contextMenu.ts var COMMIT_ATTR = "data-commit"; function handleContextMenu(menu, editor, _mdv) { - if (editor.hasFocus()) - return; + if (editor.hasFocus()) return; const gutterElement = findGutterElementUnderMouse(); - if (!gutterElement) - return; + if (!gutterElement) return; const info = getCommitInfo(gutterElement); - if (!info) - return; + if (!info) return; if (!info.isZeroCommit && !info.isWaitingGutter) { addCopyHashMenuItem(info, menu); } @@ -33750,8 +33514,7 @@ var TextGutter = class extends import_view.GutterMarker { return document.createTextNode(this.text); } destroy(dom) { - if (!document.body.contains(dom)) - dom.remove(); + if (!document.body.contains(dom)) dom.remove(); } }; var LineAuthoringGutter = class extends import_view.GutterMarker { @@ -33841,8 +33604,7 @@ var LineAuthoringGutter = class extends import_view.GutterMarker { function prepareForDomAttachment() { const elt = templateElt.cloneNode(true); attachedGutterElements.add(elt); - if (!isWaitingGutter) - recordRenderedAgeInDays(daysSinceCommit); + if (!isWaitingGutter) recordRenderedAgeInDays(daysSinceCommit); return elt; } return prepareForDomAttachment; @@ -33979,8 +33741,7 @@ function lineAuthoringGutterMarker(la, startLine, endLine, key2, settings, optio digest.update(`s${startLine}-e${endLine}-k${key2}-o${options}`); const cacheKey = digest.hex(); const cached = gutterInstances.get(cacheKey); - if (cached) - return cached; + if (cached) return cached; const result = new LineAuthoringGutter( la, startLine, @@ -34092,16 +33853,14 @@ function lineAuthoringGutterMarkersRangeSet(view, optLA) { digest.update("s" + Object.values(latestSettings).join(",")); const cacheKey = digest.hex(); const cached = gutterMarkersRangeSet.get(cacheKey); - if (cached) - return cached; + if (cached) return cached; const { result, allowCache } = computeLineAuthoringGutterMarkersRangeSet( doc, lineBlockEndPos, laSettings, optLA ); - if (allowCache) - gutterMarkersRangeSet.set(cacheKey, result); + if (allowCache) gutterMarkersRangeSet.set(cacheKey, result); return result; } function computeLineAuthoringGutterMarkersRangeSet(doc, blocksPerLine, settings, optLA) { @@ -34199,8 +33958,7 @@ function temporaryWorkaroundGutterSpacingForRenderedLineAuthoring(view) { ".cm-gutters" ); guttersContainers.forEach((cont) => { - if (!(cont == null ? void 0 : cont.style)) - return; + if (!(cont == null ? void 0 : cont.style)) return; if (!cont.style.marginLeft) { cont.style.marginLeft = "unset"; } @@ -34225,8 +33983,7 @@ var LineAuthorProvider = class { }); } async trackChangedHelper(file) { - if (!file) - return; + if (!file) return; if (file.path === void 0) { console.warn( "Git: Attempted to track change of undefined filepath. Unforeseen situation." @@ -34290,8 +34047,7 @@ var LineAuthoringFeature = class { ); return; } - if (file === void 0 || (obsView == null ? void 0 : obsView.allowNoFile) === true) - return; + if (file === void 0 || (obsView == null ? void 0 : obsView.allowNoFile) === true) return; this.lineAuthorInfoProvider.trackChanged(file); }; } @@ -34313,8 +34069,7 @@ var LineAuthoringFeature = class { } activateFeature() { try { - if (!this.isAvailableOnCurrentPlatform().available) - return; + if (!this.isAvailableOnCurrentPlatform().available) return; setTextColorCssBasedOnSetting(this.plg.settings.lineAuthor); this.lineAuthorInfoProvider = new LineAuthorProvider(this.plg); this.createEventHandlers(); @@ -34593,8 +34348,7 @@ var ChangedFilesModal = class extends import_obsidian14.FuzzySuggestModal { let index2 = ""; if (item.working_dir != " ") working_dir = `Working Dir: ${item.working_dir} `; - if (item.index != " ") - index2 = `Index: ${item.index}`; + if (item.index != " ") index2 = `Index: ${item.index}`; return `${working_dir}${index2} | ${item.vault_path}`; } onChooseItem(item, _) { @@ -34629,18 +34383,15 @@ var CustomMessageModal = class extends import_obsidian15.SuggestModal { }); } onClose() { - if (this.resolve) - this.resolve(void 0); + if (this.resolve) this.resolve(void 0); } selectSuggestion(value, evt) { - if (this.resolve) - this.resolve(value); + if (this.resolve) this.resolve(value); super.selectSuggestion(value, evt); } getSuggestions(query) { const date = window.moment().format(this.plugin.settings.commitDateFormat); - if (query == "") - query = "..."; + if (query == "") query = "..."; return [query, `${date}: ${query}`, `${query}: ${date}`]; } renderSuggestion(value, el) { @@ -34654,23 +34405,22 @@ var CustomMessageModal = class extends import_obsidian15.SuggestModal { init_polyfill_buffer(); var import_obsidian16 = require("obsidian"); async function openLineInGitHub(editor, file, manager) { - const data = await getData(manager); + const data = await getData(file, manager); if (data.result === "failure") { new import_obsidian16.Notice(data.reason); return; } - const { isGitHub, branch: branch2, repo, user } = data; + const { isGitHub, branch: branch2, repo, user, filePath } = data; if (isGitHub) { - const path2 = manager.getRelativeRepoPath(file.path); const from = editor.getCursor("from").line + 1; const to = editor.getCursor("to").line + 1; if (from === to) { window.open( - `https://github.com/${user}/${repo}/blob/${branch2}/${path2}?plain=1#L${from}` + `https://github.com/${user}/${repo}/blob/${branch2}/${filePath}?plain=1#L${from}` ); } else { window.open( - `https://github.com/${user}/${repo}/blob/${branch2}/${path2}?plain=1#L${from}-L${to}` + `https://github.com/${user}/${repo}/blob/${branch2}/${filePath}?plain=1#L${from}-L${to}` ); } } else { @@ -34678,25 +34428,58 @@ async function openLineInGitHub(editor, file, manager) { } } async function openHistoryInGitHub(file, manager) { - const data = await getData(manager); + const data = await getData(file, manager); if (data.result === "failure") { new import_obsidian16.Notice(data.reason); return; } - const { isGitHub, branch: branch2, repo, user } = data; - const path2 = manager.getRelativeRepoPath(file.path); + const { isGitHub, branch: branch2, repo, user, filePath } = data; if (isGitHub) { window.open( - `https://github.com/${user}/${repo}/commits/${branch2}/${path2}` + `https://github.com/${user}/${repo}/commits/${branch2}/${filePath}` ); } else { new import_obsidian16.Notice("It seems like you are not using GitHub"); } } -async function getData(manager) { +async function getData(file, manager) { const branchInfo = await manager.branchInfo(); - const remoteBranch = branchInfo.tracking; - const branch2 = branchInfo.current; + let remoteBranch = branchInfo.tracking; + let branch2 = branchInfo.current; + let remoteUrl = void 0; + let filePath = manager.getRelativeRepoPath(file.path); + if (manager instanceof SimpleGit) { + const submodule = await manager.getSubmoduleOfFile( + manager.getRelativeRepoPath(file.path) + ); + if (submodule) { + filePath = submodule.relativeFilepath; + const status2 = await manager.git.cwd({ + path: submodule.submodule, + root: false + }).status(); + remoteBranch = status2.tracking || void 0; + branch2 = status2.current || void 0; + if (remoteBranch) { + const remote = remoteBranch.substring( + 0, + remoteBranch.indexOf("/") + ); + const config = await manager.git.cwd({ + path: submodule.submodule, + root: false + }).getConfig(`remote.${remote}.url`, "local"); + if (config.value != null) { + remoteUrl = config.value; + } else { + return { + result: "failure", + reason: "Failed to get remote url of submodule" + }; + } + } + } + } if (remoteBranch == null) { return { result: "failure", @@ -34709,20 +34492,35 @@ async function getData(manager) { reason: "Failed to get current branch name" }; } - const remote = remoteBranch.substring(0, remoteBranch.indexOf("/")); - const remoteUrl = await manager.getConfig( - `remote.${remote}.url` + if (remoteUrl == null) { + const remote = remoteBranch.substring(0, remoteBranch.indexOf("/")); + remoteUrl = await manager.getConfig(`remote.${remote}.url`); + if (remoteUrl == null) { + return { + result: "failure", + reason: "Failed to get remote url" + }; + } + } + const res = remoteUrl.match( + /(?:^https:\/\/github\.com\/(.+)\/(.+?)(?:\.git)?$)|(?:^[a-zA-Z]+@github\.com:(.+)\/(.+?)(?:\.git)?$)/ ); - const [isGitHub, httpsUser, httpsRepo, sshUser, sshRepo] = remoteUrl.match( - /(?:^https:\/\/github\.com\/(.*)\/(.*)\.git$)|(?:^[a-zA-Z]+@github\.com:(.*)\/(.*)\.git$)/ - ); - return { - result: "success", - isGitHub: !!isGitHub, - repo: httpsRepo || sshRepo, - user: httpsUser || sshUser, - branch: branch2 - }; + if (res == null) { + return { + result: "failure", + reason: "Could not parse remote url" + }; + } else { + const [isGitHub, httpsUser, httpsRepo, sshUser, sshRepo] = res; + return { + result: "success", + isGitHub: !!isGitHub, + repo: httpsRepo || sshRepo, + user: httpsUser || sshUser, + branch: branch2, + filePath + }; + } } // src/setting/localStorageSettings.ts @@ -34831,13 +34629,13 @@ var LocalStorageSettings = class { // src/ui/diff/diffView.ts init_polyfill_buffer(); -// node_modules/.pnpm/diff2html@3.4.47/node_modules/diff2html/lib-esm/diff2html.js +// node_modules/.pnpm/diff2html@3.4.48/node_modules/diff2html/lib-esm/diff2html.js init_polyfill_buffer(); -// node_modules/.pnpm/diff2html@3.4.47/node_modules/diff2html/lib-esm/diff-parser.js +// node_modules/.pnpm/diff2html@3.4.48/node_modules/diff2html/lib-esm/diff-parser.js init_polyfill_buffer(); -// node_modules/.pnpm/diff2html@3.4.47/node_modules/diff2html/lib-esm/types.js +// node_modules/.pnpm/diff2html@3.4.48/node_modules/diff2html/lib-esm/types.js init_polyfill_buffer(); var LineType; (function(LineType2) { @@ -34865,7 +34663,7 @@ var ColorSchemeType; ColorSchemeType2["LIGHT"] = "light"; })(ColorSchemeType || (ColorSchemeType = {})); -// node_modules/.pnpm/diff2html@3.4.47/node_modules/diff2html/lib-esm/utils.js +// node_modules/.pnpm/diff2html@3.4.48/node_modules/diff2html/lib-esm/utils.js init_polyfill_buffer(); var specials = [ "-", @@ -34903,7 +34701,7 @@ function hashCode(text2) { return hash2; } -// node_modules/.pnpm/diff2html@3.4.47/node_modules/diff2html/lib-esm/diff-parser.js +// node_modules/.pnpm/diff2html@3.4.48/node_modules/diff2html/lib-esm/diff-parser.js function getExtension(filename, language) { const filenameParts = filename.split("."); return filenameParts.length > 1 ? filenameParts[filenameParts.length - 1] : language; @@ -35194,10 +34992,10 @@ function parse(diffInput, config = {}) { return files; } -// node_modules/.pnpm/diff2html@3.4.47/node_modules/diff2html/lib-esm/file-list-renderer.js +// node_modules/.pnpm/diff2html@3.4.48/node_modules/diff2html/lib-esm/file-list-renderer.js init_polyfill_buffer(); -// node_modules/.pnpm/diff2html@3.4.47/node_modules/diff2html/lib-esm/render-utils.js +// node_modules/.pnpm/diff2html@3.4.48/node_modules/diff2html/lib-esm/render-utils.js init_polyfill_buffer(); // node_modules/.pnpm/diff@5.1.0/node_modules/diff/lib/index.mjs @@ -35531,7 +35329,7 @@ arrayDiff2.join = arrayDiff2.removeEmpty = function(value) { return value; }; -// node_modules/.pnpm/diff2html@3.4.47/node_modules/diff2html/lib-esm/rematch.js +// node_modules/.pnpm/diff2html@3.4.48/node_modules/diff2html/lib-esm/rematch.js init_polyfill_buffer(); function levenshtein(a, b) { if (a.length === 0) { @@ -35616,7 +35414,7 @@ function newMatcherFn(distance2) { return group; } -// node_modules/.pnpm/diff2html@3.4.47/node_modules/diff2html/lib-esm/render-utils.js +// node_modules/.pnpm/diff2html@3.4.48/node_modules/diff2html/lib-esm/render-utils.js var CSSLineClass = { INSERTS: "d2h-ins", DELETES: "d2h-del", @@ -35794,7 +35592,7 @@ function diffHighlight(diffLine1, diffLine2, isCombined, config = {}) { }; } -// node_modules/.pnpm/diff2html@3.4.47/node_modules/diff2html/lib-esm/file-list-renderer.js +// node_modules/.pnpm/diff2html@3.4.48/node_modules/diff2html/lib-esm/file-list-renderer.js var baseTemplatesPath = "file-summary"; var iconsBaseTemplatesPath = "icon"; var defaultFileListRendererConfig = { @@ -35824,7 +35622,7 @@ var FileListRenderer = class { } }; -// node_modules/.pnpm/diff2html@3.4.47/node_modules/diff2html/lib-esm/line-by-line-renderer.js +// node_modules/.pnpm/diff2html@3.4.48/node_modules/diff2html/lib-esm/line-by-line-renderer.js init_polyfill_buffer(); var defaultLineByLineRendererConfig = Object.assign(Object.assign({}, defaultRenderConfig), { renderNothingWhenEmpty: false, matchingMaxComparisons: 2500, maxLineSizeInBlockForComparison: 200 }); var genericTemplatesPath = "generic"; @@ -36000,7 +35798,7 @@ var LineByLineRenderer = class { } }; -// node_modules/.pnpm/diff2html@3.4.47/node_modules/diff2html/lib-esm/side-by-side-renderer.js +// node_modules/.pnpm/diff2html@3.4.48/node_modules/diff2html/lib-esm/side-by-side-renderer.js init_polyfill_buffer(); var defaultSideBySideRendererConfig = Object.assign(Object.assign({}, defaultRenderConfig), { renderNothingWhenEmpty: false, matchingMaxComparisons: 2500, maxLineSizeInBlockForComparison: 200 }); var genericTemplatesPath2 = "generic"; @@ -36187,11 +35985,11 @@ var SideBySideRenderer = class { } }; -// node_modules/.pnpm/diff2html@3.4.47/node_modules/diff2html/lib-esm/hoganjs-utils.js +// node_modules/.pnpm/diff2html@3.4.48/node_modules/diff2html/lib-esm/hoganjs-utils.js init_polyfill_buffer(); var Hogan3 = __toESM(require_hogan()); -// node_modules/.pnpm/diff2html@3.4.47/node_modules/diff2html/lib-esm/diff2html-templates.js +// node_modules/.pnpm/diff2html@3.4.48/node_modules/diff2html/lib-esm/diff2html-templates.js init_polyfill_buffer(); var Hogan2 = __toESM(require_hogan()); var defaultTemplates = {}; @@ -36600,7 +36398,7 @@ defaultTemplates["tag-file-renamed"] = new Hogan2.Template({ code: function(c, p return t.fl(); }, partials: {}, subs: {} }); -// node_modules/.pnpm/diff2html@3.4.47/node_modules/diff2html/lib-esm/hoganjs-utils.js +// node_modules/.pnpm/diff2html@3.4.48/node_modules/diff2html/lib-esm/hoganjs-utils.js var HoganJsUtils = class { constructor({ compiledTemplates = {}, rawTemplates = {} }) { const compiledRawTemplates = Object.entries(rawTemplates).reduce((previousTemplates, [name, templateString]) => { @@ -36629,7 +36427,7 @@ var HoganJsUtils = class { } }; -// node_modules/.pnpm/diff2html@3.4.47/node_modules/diff2html/lib-esm/diff2html.js +// node_modules/.pnpm/diff2html@3.4.48/node_modules/diff2html/lib-esm/diff2html.js var defaultDiff2HtmlConfig = Object.assign(Object.assign(Object.assign({}, defaultLineByLineRendererConfig), defaultSideBySideRendererConfig), { outputFormat: OutputFormatType.LINE_BY_LINE, drawFileList: true }); function html(diffInput, configuration = {}) { const config = Object.assign(Object.assign({}, defaultDiff2HtmlConfig), configuration); @@ -36663,8 +36461,7 @@ var DiffView = class extends import_obsidian17.ItemView { var _a2; if (((_a2 = this.state) == null ? void 0 : _a2.file) != null) { let fileName = this.state.file.split("/").last(); - if (fileName == null ? void 0 : fileName.endsWith(".md")) - fileName = fileName.slice(0, -3); + if (fileName == null ? void 0 : fileName.endsWith(".md")) fileName = fileName.slice(0, -3); return DIFF_VIEW_CONFIG.name + ` (${fileName})`; } return DIFF_VIEW_CONFIG.name; @@ -36742,13 +36539,13 @@ var import_obsidian21 = require("obsidian"); // src/ui/history/historyView.svelte init_polyfill_buffer(); -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/index.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/index.js init_polyfill_buffer(); -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/animations.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/animations.js init_polyfill_buffer(); -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/utils.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/utils.js init_polyfill_buffer(); function noop() { } @@ -36772,13 +36569,13 @@ function is_empty(obj) { return Object.keys(obj).length === 0; } -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/environment.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/environment.js init_polyfill_buffer(); var is_client = typeof window !== "undefined"; var now = is_client ? () => window.performance.now() : () => Date.now(); var raf = is_client ? (cb) => requestAnimationFrame(cb) : noop; -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/loop.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/loop.js init_polyfill_buffer(); var tasks = /* @__PURE__ */ new Set(); function run_tasks(now2) { @@ -36788,13 +36585,11 @@ function run_tasks(now2) { task.f(); } }); - if (tasks.size !== 0) - raf(run_tasks); + if (tasks.size !== 0) raf(run_tasks); } function loop(callback) { let task; - if (tasks.size === 0) - raf(run_tasks); + if (tasks.size === 0) raf(run_tasks); return { promise: new Promise((fulfill) => { tasks.add(task = { c: callback, f: fulfill }); @@ -36805,23 +36600,23 @@ function loop(callback) { }; } -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/style_manager.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/style_manager.js init_polyfill_buffer(); -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/dom.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/dom.js init_polyfill_buffer(); -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/ResizeObserverSingleton.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/ResizeObserverSingleton.js init_polyfill_buffer(); -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/globals.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/globals.js init_polyfill_buffer(); var globals = typeof window !== "undefined" ? window : typeof globalThis !== "undefined" ? globalThis : ( // @ts-ignore Node typings have this global ); -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/ResizeObserverSingleton.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/ResizeObserverSingleton.js var ResizeObserverSingleton = class _ResizeObserverSingleton { /** @param {ResizeObserverOptions} options */ constructor(options) { @@ -36869,7 +36664,7 @@ var ResizeObserverSingleton = class _ResizeObserverSingleton { }; ResizeObserverSingleton.entries = "WeakMap" in globals ? /* @__PURE__ */ new WeakMap() : void 0; -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/dom.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/dom.js var is_hydrating = false; function start_hydrating() { is_hydrating = true; @@ -36890,8 +36685,7 @@ function append_styles(target, style_sheet_id, styles) { } } function get_root_for_style(node) { - if (!node) - return document; + if (!node) return document; const root2 = node.getRootNode ? node.getRootNode() : node.ownerDocument; if (root2 && /** @type {ShadowRoot} */ root2.host) { @@ -36926,8 +36720,7 @@ function detach(node) { } function destroy_each(iterations, detaching) { for (let i = 0; i < iterations.length; i += 1) { - if (iterations[i]) - iterations[i].d(detaching); + if (iterations[i]) iterations[i].d(detaching); } } function element(name) { @@ -36953,18 +36746,15 @@ function stop_propagation(fn) { }; } function attr(node, attribute, value) { - if (value == null) - node.removeAttribute(attribute); - else if (node.getAttribute(attribute) !== value) - node.setAttribute(attribute, value); + if (value == null) node.removeAttribute(attribute); + else if (node.getAttribute(attribute) !== value) node.setAttribute(attribute, value); } function children(element2) { return Array.from(element2.childNodes); } function set_data(text2, data) { data = "" + data; - if (text2.data === data) - return; + if (text2.data === data) return; text2.data = /** @type {string} */ data; } @@ -36995,14 +36785,13 @@ function get_custom_elements_slots(element2) { return result; } -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/style_manager.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/style_manager.js var managed_styles = /* @__PURE__ */ new Map(); var active = 0; function hash(str) { let hash2 = 5381; let i = str.length; - while (i--) - hash2 = (hash2 << 5) - hash2 ^ str.charCodeAt(i); + while (i--) hash2 = (hash2 << 5) - hash2 ^ str.charCodeAt(i); return hash2 >>> 0; } function create_style_information(doc, node) { @@ -37042,41 +36831,37 @@ function delete_rule(node, name) { if (deleted) { node.style.animation = next.join(", "); active -= deleted; - if (!active) - clear_rules(); + if (!active) clear_rules(); } } function clear_rules() { raf(() => { - if (active) - return; + if (active) return; managed_styles.forEach((info) => { const { ownerNode } = info.stylesheet; - if (ownerNode) - detach(ownerNode); + if (ownerNode) detach(ownerNode); }); managed_styles.clear(); }); } -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/await_block.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/await_block.js init_polyfill_buffer(); -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/transitions.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/transitions.js init_polyfill_buffer(); -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/scheduler.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/scheduler.js init_polyfill_buffer(); -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/lifecycle.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/lifecycle.js init_polyfill_buffer(); var current_component; function set_current_component(component) { current_component = component; } function get_current_component() { - if (!current_component) - throw new Error("Function called outside component initialization"); + if (!current_component) throw new Error("Function called outside component initialization"); return current_component; } function onDestroy(fn) { @@ -37089,7 +36874,7 @@ function bubble(component, event) { } } -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/scheduler.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/scheduler.js var dirty_components = []; var binding_callbacks = []; var render_callbacks = []; @@ -37128,8 +36913,7 @@ function flush() { set_current_component(null); dirty_components.length = 0; flushidx = 0; - while (binding_callbacks.length) - binding_callbacks.pop()(); + while (binding_callbacks.length) binding_callbacks.pop()(); for (let i = 0; i < render_callbacks.length; i += 1) { const callback = render_callbacks[i]; if (!seen_callbacks.has(callback)) { @@ -37164,7 +36948,7 @@ function flush_render_callbacks(fns) { render_callbacks = filtered; } -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/transitions.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/transitions.js var promise; function wait() { if (!promise) { @@ -37202,14 +36986,12 @@ function transition_in(block, local) { } function transition_out(block, local, detach2, callback) { if (block && block.o) { - if (outroing.has(block)) - return; + if (outroing.has(block)) return; outroing.add(block); outros.c.push(() => { outroing.delete(block); if (callback) { - if (detach2) - block.d(1); + if (detach2) block.d(1); callback(); } }); @@ -37228,8 +37010,7 @@ function create_bidirectional_transition(node, fn, params, intro) { let animation_name = null; let original_inert_value; function clear_animation() { - if (animation_name) - delete_rule(node, animation_name); + if (animation_name) delete_rule(node, animation_name); } function init3(program, duration) { const d = ( @@ -37281,8 +37062,7 @@ function create_bidirectional_transition(node, fn, params, intro) { clear_animation(); animation_name = create_rule(node, t, b, duration, delay2, easing, css); } - if (b) - tick2(0, 1); + if (b) tick2(0, 1); running_program = init3(program, duration); add_render_callback(() => dispatch(node, b, "start")); loop((now2) => { @@ -37311,8 +37091,7 @@ function create_bidirectional_transition(node, fn, params, intro) { if (running_program.b) { clear_animation(); } else { - if (!--running_program.group.r) - run_all(running_program.group.c); + if (!--running_program.group.r) run_all(running_program.group.c); } } running_program = null; @@ -37345,19 +37124,19 @@ function create_bidirectional_transition(node, fn, params, intro) { }; } -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/each.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/each.js init_polyfill_buffer(); function ensure_array_like(array_like_or_iterator) { return (array_like_or_iterator == null ? void 0 : array_like_or_iterator.length) !== void 0 ? array_like_or_iterator : Array.from(array_like_or_iterator); } -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/spread.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/spread.js init_polyfill_buffer(); -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/ssr.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/ssr.js init_polyfill_buffer(); -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/shared/boolean_attributes.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/shared/boolean_attributes.js init_polyfill_buffer(); var _boolean_attributes = ( /** @type {const} */ @@ -37391,10 +37170,10 @@ var _boolean_attributes = ( ); var boolean_attributes = /* @__PURE__ */ new Set([..._boolean_attributes]); -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/shared/utils/names.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/shared/utils/names.js init_polyfill_buffer(); -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/Component.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/Component.js init_polyfill_buffer(); function create_component(block) { block && block.c(); @@ -37460,10 +37239,8 @@ function init2(component, options, instance10, create_fragment10, not_equal, pro $$.ctx = instance10 ? instance10(component, options.props || {}, (i, ret, ...rest) => { const value = rest.length ? rest[0] : ret; if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) { - if (!$$.skip_bound && $$.bound[i]) - $$.bound[i](value); - if (ready) - make_dirty(component, i); + if (!$$.skip_bound && $$.bound[i]) $$.bound[i](value); + if (ready) make_dirty(component, i); } return ret; }) : []; @@ -37480,8 +37257,7 @@ function init2(component, options, instance10, create_fragment10, not_equal, pro } else { $$.fragment && $$.fragment.c(); } - if (options.intro) - transition_in(component.$$.fragment); + if (options.intro) transition_in(component.$$.fragment); mount_component(component, options.target, options.anchor); end_hydrating(); flush(); @@ -37566,7 +37342,7 @@ if (typeof HTMLElement === "function") { }; }; await Promise.resolve(); - if (!this.$$cn) { + if (!this.$$cn || this.$$c) { return; } const $$slots = {}; @@ -37633,8 +37409,7 @@ if (typeof HTMLElement === "function") { // and setting attributes through setAttribute etc, this is helpful attributeChangedCallback(attr2, _oldValue, newValue) { var _a2; - if (this.$$r) - return; + if (this.$$r) return; attr2 = this.$$g_p(attr2); this.$$d[attr2] = get_custom_element_value(attr2, newValue, this.$$p_d, "toProp"); (_a2 = this.$$c) == null ? void 0 : _a2.$set({ [attr2]: this.$$d[attr2] }); @@ -37642,7 +37417,7 @@ if (typeof HTMLElement === "function") { disconnectedCallback() { this.$$cn = false; Promise.resolve().then(() => { - if (!this.$$cn) { + if (!this.$$cn && this.$$c) { this.$$c.$destroy(); this.$$c = void 0; } @@ -37725,8 +37500,7 @@ var SvelteComponent = class { callbacks.push(callback); return () => { const index2 = callbacks.indexOf(callback); - if (index2 !== -1) - callbacks.splice(index2, 1); + if (index2 !== -1) callbacks.splice(index2, 1); }; } /** @@ -37742,19 +37516,19 @@ var SvelteComponent = class { } }; -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/dev.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/dev.js init_polyfill_buffer(); -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/shared/version.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/shared/version.js init_polyfill_buffer(); var PUBLIC_VERSION = "4"; -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/internal/disclose-version/index.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/internal/disclose-version/index.js init_polyfill_buffer(); if (typeof window !== "undefined") (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(PUBLIC_VERSION); -// node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.es6.mjs +// node_modules/.pnpm/tslib@2.6.3/node_modules/tslib/tslib.es6.mjs init_polyfill_buffer(); function __awaiter(thisArg, _arguments, P, generator) { function adopt(value) { @@ -37787,24 +37561,24 @@ function __awaiter(thisArg, _arguments, P, generator) { // src/ui/history/historyView.svelte var import_obsidian20 = require("obsidian"); -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/index.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/index.js init_polyfill_buffer(); // src/ui/history/components/logComponent.svelte init_polyfill_buffer(); var import_obsidian19 = require("obsidian"); -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/transition/index.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/transition/index.js init_polyfill_buffer(); -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/easing/index.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/easing/index.js init_polyfill_buffer(); function cubicOut(t) { const f = t - 1; return f * f * f + 1; } -// node_modules/.pnpm/svelte@4.2.10/node_modules/svelte/src/runtime/transition/index.js +// node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/transition/index.js function slide(node, { delay: delay2 = 0, duration = 400, easing = cubicOut, axis = "y" } = {}) { const style = getComputedStyle(node); const opacity = +style.opacity; @@ -37894,7 +37668,7 @@ function create_fragment(ctx) { ctx[1].app.vault.getAbstractFileByPath( /*diff*/ ctx[0].vault_path - ) + ) instanceof import_obsidian18.TFile ); let t2; let span; @@ -37919,8 +37693,7 @@ function create_fragment(ctx) { t1 = space(); div2 = element("div"); div1 = element("div"); - if (if_block) - if_block.c(); + if (if_block) if_block.c(); t2 = space(); span = element("span"); t3 = text(t3_value); @@ -37959,8 +37732,7 @@ function create_fragment(ctx) { append2(div3, t1); append2(div3, div2); append2(div2, div1); - if (if_block) - if_block.m(div1, null); + if (if_block) if_block.m(div1, null); append2(div2, t2); append2(div2, span); append2(span, t3); @@ -37971,8 +37743,8 @@ function create_fragment(ctx) { ctx[5] )), listen(main, "auxclick", stop_propagation( - /*showDiff*/ - ctx[5] + /*auxclick_handler*/ + ctx[8] )), listen( main, @@ -37990,15 +37762,13 @@ function create_fragment(ctx) { 1 && t0_value !== (t0_value = getDisplayPath( /*diff*/ ctx2[0].vault_path - ) + "")) - set_data(t0, t0_value); + ) + "")) set_data(t0, t0_value); if (dirty & /*view, diff*/ - 3) - show_if = /*view*/ - ctx2[1].app.vault.getAbstractFileByPath( - /*diff*/ - ctx2[0].vault_path - ); + 3) show_if = /*view*/ + ctx2[1].app.vault.getAbstractFileByPath( + /*diff*/ + ctx2[0].vault_path + ) instanceof import_obsidian18.TFile; if (show_if) { if (if_block) { if_block.p(ctx2, dirty); @@ -38013,8 +37783,7 @@ function create_fragment(ctx) { } if (dirty & /*diff*/ 1 && t3_value !== (t3_value = /*diff*/ - ctx2[0].status + "")) - set_data(t3, t3_value); + ctx2[0].status + "")) set_data(t3, t3_value); if (dirty & /*diff*/ 1 && span_data_type_value !== (span_data_type_value = /*diff*/ ctx2[0].status)) { @@ -38057,8 +37826,7 @@ function create_fragment(ctx) { if (detaching) { detach(main); } - if (if_block) - if_block.d(); + if (if_block) if_block.d(); mounted = false; run_all(dispose); } @@ -38098,20 +37866,28 @@ function instance($$self, $$props, $$invalidate) { $$invalidate(2, buttons); }); } + const auxclick_handler = (event) => mayTriggerFileMenu(view.app, event, diff3.vault_path, view.leaf, "git-history"); $$self.$$set = ($$props2) => { - if ("diff" in $$props2) - $$invalidate(0, diff3 = $$props2.diff); - if ("view" in $$props2) - $$invalidate(1, view = $$props2.view); + if ("diff" in $$props2) $$invalidate(0, diff3 = $$props2.diff); + if ("view" in $$props2) $$invalidate(1, view = $$props2.view); }; $$self.$$.update = () => { if ($$self.$$.dirty & /*view*/ 2) { - $: - $$invalidate(3, side = view.leaf.getRoot().side == "left" ? "right" : "left"); + $: $$invalidate(3, side = view.leaf.getRoot().side == "left" ? "right" : "left"); } }; - return [diff3, view, buttons, side, open, showDiff, focus_handler, div_binding]; + return [ + diff3, + view, + buttons, + side, + open, + showDiff, + focus_handler, + div_binding, + auxclick_handler + ]; } var LogFileComponent = class extends SvelteComponent { constructor(options) { @@ -38176,8 +37952,7 @@ function create_else_block(ctx) { div2 = element("div"); t2 = text(t2_value); t3 = space(); - if (if_block) - if_block.c(); + if (if_block) if_block.c(); t4 = space(); attr(div0, "data-icon", "folder"); set_style(div0, "padding-right", "5px"); @@ -38223,8 +37998,7 @@ function create_else_block(ctx) { append2(div3, div2); append2(div2, t2); append2(div4, t3); - if (if_block) - if_block.m(div4, null); + if (if_block) if_block.m(div4, null); append2(div4, t4); current = true; if (!mounted) { @@ -38248,8 +38022,7 @@ function create_else_block(ctx) { } if ((!current || dirty & /*hierarchy*/ 1) && t2_value !== (t2_value = /*entity*/ - ctx[8].title + "")) - set_data(t2, t2_value); + ctx[8].title + "")) set_data(t2, t2_value); if (!current || dirty & /*side*/ 32) { attr( @@ -38302,8 +38075,7 @@ function create_else_block(ctx) { } }, i(local) { - if (current) - return; + if (current) return; transition_in(if_block); current = true; }, @@ -38315,8 +38087,7 @@ function create_else_block(ctx) { if (detaching) { detach(div4); } - if (if_block) - if_block.d(); + if (if_block) if_block.d(); mounted = false; dispose(); } @@ -38354,18 +38125,15 @@ function create_if_block2(ctx) { p(ctx2, dirty) { const logfilecomponent_changes = {}; if (dirty & /*hierarchy*/ - 1) - logfilecomponent_changes.diff = /*entity*/ - ctx2[8].data; + 1) logfilecomponent_changes.diff = /*entity*/ + ctx2[8].data; if (dirty & /*view*/ - 4) - logfilecomponent_changes.view = /*view*/ - ctx2[2]; + 4) logfilecomponent_changes.view = /*view*/ + ctx2[2]; logfilecomponent.$set(logfilecomponent_changes); }, i(local) { - if (current) - return; + if (current) return; transition_in(logfilecomponent.$$.fragment, local); current = true; }, @@ -38416,29 +38184,23 @@ function create_if_block_1(ctx) { p(ctx2, dirty) { const logtreecomponent_changes = {}; if (dirty & /*hierarchy*/ - 1) - logtreecomponent_changes.hierarchy = /*entity*/ - ctx2[8]; + 1) logtreecomponent_changes.hierarchy = /*entity*/ + ctx2[8]; if (dirty & /*plugin*/ - 2) - logtreecomponent_changes.plugin = /*plugin*/ - ctx2[1]; + 2) logtreecomponent_changes.plugin = /*plugin*/ + ctx2[1]; if (dirty & /*view*/ - 4) - logtreecomponent_changes.view = /*view*/ - ctx2[2]; + 4) logtreecomponent_changes.view = /*view*/ + ctx2[2]; logtreecomponent.$set(logtreecomponent_changes); }, i(local) { - if (current) - return; + if (current) return; transition_in(logtreecomponent.$$.fragment, local); if (local) { add_render_callback(() => { - if (!current) - return; - if (!div_transition) - div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, true); + if (!current) return; + if (!div_transition) div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, true); div_transition.run(1); }); } @@ -38447,8 +38209,7 @@ function create_if_block_1(ctx) { o(local) { transition_out(logtreecomponent.$$.fragment, local); if (local) { - if (!div_transition) - div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, false); + if (!div_transition) div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, false); div_transition.run(0); } current = false; @@ -38458,8 +38219,7 @@ function create_if_block_1(ctx) { detach(div); } destroy_component(logtreecomponent); - if (detaching && div_transition) - div_transition.end(); + if (detaching && div_transition) div_transition.end(); } }; } @@ -38474,8 +38234,7 @@ function create_each_block(ctx) { if ( /*entity*/ ctx2[8].data - ) - return 0; + ) return 0; return 1; } current_block_type_index = select_block_type(ctx, -1); @@ -38513,8 +38272,7 @@ function create_each_block(ctx) { } }, i(local) { - if (current) - return; + if (current) return; transition_in(if_block); current = true; }, @@ -38604,8 +38362,7 @@ function create_fragment2(ctx) { } }, i(local) { - if (current) - return; + if (current) return; for (let i = 0; i < each_value.length; i += 1) { transition_in(each_blocks[i]); } @@ -38638,20 +38395,15 @@ function instance2($$self, $$props, $$invalidate) { } const click_handler = (entity) => fold(entity); $$self.$$set = ($$props2) => { - if ("hierarchy" in $$props2) - $$invalidate(0, hierarchy = $$props2.hierarchy); - if ("plugin" in $$props2) - $$invalidate(1, plugin = $$props2.plugin); - if ("view" in $$props2) - $$invalidate(2, view = $$props2.view); - if ("topLevel" in $$props2) - $$invalidate(3, topLevel = $$props2.topLevel); + if ("hierarchy" in $$props2) $$invalidate(0, hierarchy = $$props2.hierarchy); + if ("plugin" in $$props2) $$invalidate(1, plugin = $$props2.plugin); + if ("view" in $$props2) $$invalidate(2, view = $$props2.view); + if ("topLevel" in $$props2) $$invalidate(3, topLevel = $$props2.topLevel); }; $$self.$$.update = () => { if ($$self.$$.dirty & /*view*/ 4) { - $: - $$invalidate(5, side = view.leaf.getRoot().side == "left" ? "right" : "left"); + $: $$invalidate(5, side = view.leaf.getRoot().side == "left" ? "right" : "left"); } }; return [hierarchy, plugin, view, topLevel, closed, side, fold, click_handler]; @@ -38703,8 +38455,7 @@ function create_if_block_4(ctx) { p(ctx2, dirty) { if (dirty & /*log*/ 1 && t_value !== (t_value = /*log*/ - ctx2[0].refs.join(", ") + "")) - set_data(t, t_value); + ctx2[0].refs.join(", ") + "")) set_data(t, t_value); }, d(detaching) { if (detaching) { @@ -38739,8 +38490,7 @@ function create_if_block_3(ctx) { ctx2[7]( /*log*/ ctx2[0] - ) + "")) - set_data(t, t_value); + ) + "")) set_data(t, t_value); }, d(detaching) { if (detaching) { @@ -38777,8 +38527,7 @@ function create_if_block_2(ctx) { ).format( /*plugin*/ ctx2[3].settings.commitDateFormat - ) + "")) - set_data(t, t_value); + ) + "")) set_data(t, t_value); }, d(detaching) { if (detaching) { @@ -38799,8 +38548,7 @@ function create_if_block3(ctx) { if ( /*showTree*/ ctx2[2] - ) - return 0; + ) return 0; return 1; } current_block_type_index = select_block_type(ctx, -1); @@ -38839,15 +38587,12 @@ function create_if_block3(ctx) { } }, i(local) { - if (current) - return; + if (current) return; transition_in(if_block); if (local) { add_render_callback(() => { - if (!current) - return; - if (!div_transition) - div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, true); + if (!current) return; + if (!div_transition) div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, true); div_transition.run(1); }); } @@ -38856,8 +38601,7 @@ function create_if_block3(ctx) { o(local) { transition_out(if_block); if (local) { - if (!div_transition) - div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, false); + if (!div_transition) div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, false); div_transition.run(0); } current = false; @@ -38867,8 +38611,7 @@ function create_if_block3(ctx) { detach(div); } if_blocks[current_block_type_index].d(); - if (detaching && div_transition) - div_transition.end(); + if (detaching && div_transition) div_transition.end(); } }; } @@ -38930,8 +38673,7 @@ function create_else_block2(ctx) { } }, i(local) { - if (current) - return; + if (current) return; for (let i = 0; i < each_value.length; i += 1) { transition_in(each_blocks[i]); } @@ -38983,22 +38725,18 @@ function create_if_block_12(ctx) { p(ctx2, dirty) { const logtreecomponent_changes = {}; if (dirty & /*logsHierarchy*/ - 64) - logtreecomponent_changes.hierarchy = /*logsHierarchy*/ - ctx2[6]; + 64) logtreecomponent_changes.hierarchy = /*logsHierarchy*/ + ctx2[6]; if (dirty & /*plugin*/ - 8) - logtreecomponent_changes.plugin = /*plugin*/ - ctx2[3]; + 8) logtreecomponent_changes.plugin = /*plugin*/ + ctx2[3]; if (dirty & /*view*/ - 2) - logtreecomponent_changes.view = /*view*/ - ctx2[1]; + 2) logtreecomponent_changes.view = /*view*/ + ctx2[1]; logtreecomponent.$set(logtreecomponent_changes); }, i(local) { - if (current) - return; + if (current) return; transition_in(logtreecomponent.$$.fragment, local); current = true; }, @@ -39037,18 +38775,15 @@ function create_each_block2(ctx) { p(ctx2, dirty) { const logfilecomponent_changes = {}; if (dirty & /*view*/ - 2) - logfilecomponent_changes.view = /*view*/ - ctx2[1]; + 2) logfilecomponent_changes.view = /*view*/ + ctx2[1]; if (dirty & /*log*/ - 1) - logfilecomponent_changes.diff = /*file*/ - ctx2[9]; + 1) logfilecomponent_changes.diff = /*file*/ + ctx2[9]; logfilecomponent.$set(logfilecomponent_changes); }, i(local) { - if (current) - return; + if (current) return; transition_in(logfilecomponent.$$.fragment, local); current = true; }, @@ -39108,20 +38843,16 @@ function create_fragment3(ctx) { div0.innerHTML = ``; t0 = space(); div2 = element("div"); - if (if_block0) - if_block0.c(); + if (if_block0) if_block0.c(); t1 = space(); - if (if_block1) - if_block1.c(); + if (if_block1) if_block1.c(); t2 = space(); - if (if_block2) - if_block2.c(); + if (if_block2) if_block2.c(); t3 = space(); div1 = element("div"); t4 = text(t4_value); t5 = space(); - if (if_block3) - if_block3.c(); + if (if_block3) if_block3.c(); attr(div0, "class", "tree-item-icon nav-folder-collapse-indicator collapse-icon"); toggle_class( div0, @@ -39167,20 +38898,16 @@ ${/*log*/ append2(div3, div0); append2(div3, t0); append2(div3, div2); - if (if_block0) - if_block0.m(div2, null); + if (if_block0) if_block0.m(div2, null); append2(div2, t1); - if (if_block1) - if_block1.m(div2, null); + if (if_block1) if_block1.m(div2, null); append2(div2, t2); - if (if_block2) - if_block2.m(div2, null); + if (if_block2) if_block2.m(div2, null); append2(div2, t3); append2(div2, div1); append2(div1, t4); append2(div4, t5); - if (if_block3) - if_block3.m(div4, null); + if (if_block3) if_block3.m(div4, null); current = true; if (!mounted) { dispose = listen( @@ -39251,8 +38978,7 @@ ${/*log*/ } if ((!current || dirty & /*log*/ 1) && t4_value !== (t4_value = /*log*/ - ctx2[0].message + "")) - set_data(t4, t4_value); + ctx2[0].message + "")) set_data(t4, t4_value); if (!current || dirty & /*log, plugin*/ 9 && div3_aria_label_value !== (div3_aria_label_value = `${/*log*/ ctx2[0].refs.length > 0 ? ( @@ -39312,8 +39038,7 @@ ${/*log*/ } }, i(local) { - if (current) - return; + if (current) return; transition_in(if_block3); current = true; }, @@ -39325,14 +39050,10 @@ ${/*log*/ if (detaching) { detach(main); } - if (if_block0) - if_block0.d(); - if (if_block1) - if_block1.d(); - if (if_block2) - if_block2.d(); - if (if_block3) - if_block3.d(); + if (if_block0) if_block0.d(); + if (if_block1) if_block1.d(); + if (if_block2) if_block2.d(); + if (if_block3) if_block3.d(); mounted = false; dispose(); } @@ -39357,30 +39078,24 @@ function instance3($$self, $$props, $$invalidate) { } const click_handler = () => $$invalidate(4, isCollapsed = !isCollapsed); $$self.$$set = ($$props2) => { - if ("log" in $$props2) - $$invalidate(0, log2 = $$props2.log); - if ("view" in $$props2) - $$invalidate(1, view = $$props2.view); - if ("showTree" in $$props2) - $$invalidate(2, showTree = $$props2.showTree); - if ("plugin" in $$props2) - $$invalidate(3, plugin = $$props2.plugin); + if ("log" in $$props2) $$invalidate(0, log2 = $$props2.log); + if ("view" in $$props2) $$invalidate(1, view = $$props2.view); + if ("showTree" in $$props2) $$invalidate(2, showTree = $$props2.showTree); + if ("plugin" in $$props2) $$invalidate(3, plugin = $$props2.plugin); }; $$self.$$.update = () => { if ($$self.$$.dirty & /*plugin, log*/ 9) { - $: - $$invalidate(6, logsHierarchy = { - title: "", - path: "", - vaultPath: "", - children: plugin.gitManager.getTreeStructure(log2.diff.files) - }); + $: $$invalidate(6, logsHierarchy = { + title: "", + path: "", + vaultPath: "", + children: plugin.gitManager.getTreeStructure(log2.diff.files) + }); } if ($$self.$$.dirty & /*view*/ 2) { - $: - $$invalidate(5, side = view.leaf.getRoot().side == "left" ? "right" : "left"); + $: $$invalidate(5, side = view.leaf.getRoot().side == "left" ? "right" : "left"); } }; return [ @@ -39472,8 +39187,7 @@ function create_if_block4(ctx) { } }, i(local) { - if (current) - return; + if (current) return; for (let i = 0; i < each_value.length; i += 1) { transition_in(each_blocks[i]); } @@ -39528,26 +39242,21 @@ function create_each_block3(ctx) { p(ctx2, dirty) { const logcomponent_changes = {}; if (dirty & /*view*/ - 2) - logcomponent_changes.view = /*view*/ - ctx2[1]; + 2) logcomponent_changes.view = /*view*/ + ctx2[1]; if (dirty & /*showTree*/ - 4) - logcomponent_changes.showTree = /*showTree*/ - ctx2[2]; + 4) logcomponent_changes.showTree = /*showTree*/ + ctx2[2]; if (dirty & /*logs*/ - 64) - logcomponent_changes.log = /*log*/ - ctx2[11]; + 64) logcomponent_changes.log = /*log*/ + ctx2[11]; if (dirty & /*plugin*/ - 1) - logcomponent_changes.plugin = /*plugin*/ - ctx2[0]; + 1) logcomponent_changes.plugin = /*plugin*/ + ctx2[0]; logcomponent.$set(logcomponent_changes); }, i(local) { - if (current) - return; + if (current) return; transition_in(logcomponent.$$.fragment, local); current = true; }, @@ -39586,8 +39295,7 @@ function create_fragment4(ctx) { div1 = element("div"); t1 = space(); div4 = element("div"); - if (if_block) - if_block.c(); + if (if_block) if_block.c(); attr(div0, "id", "layoutChange"); attr(div0, "class", "clickable-icon nav-action-button"); attr(div0, "aria-label", "Change Layout"); @@ -39618,8 +39326,7 @@ function create_fragment4(ctx) { ctx[9](div1); append2(main, t1); append2(main, div4); - if (if_block) - if_block.m(div4, null); + if (if_block) if_block.m(div4, null); current = true; if (!mounted) { dispose = [ @@ -39669,8 +39376,7 @@ function create_fragment4(ctx) { } }, i(local) { - if (current) - return; + if (current) return; transition_in(if_block); current = true; }, @@ -39684,8 +39390,7 @@ function create_fragment4(ctx) { } ctx[7](null); ctx[9](null); - if (if_block) - if_block.d(); + if (if_block) if_block.d(); mounted = false; run_all(dispose); } @@ -39741,10 +39446,8 @@ function instance4($$self, $$props, $$invalidate) { }); } $$self.$$set = ($$props2) => { - if ("plugin" in $$props2) - $$invalidate(0, plugin = $$props2.plugin); - if ("view" in $$props2) - $$invalidate(1, view = $$props2.view); + if ("plugin" in $$props2) $$invalidate(0, plugin = $$props2.plugin); + if ("view" in $$props2) $$invalidate(1, view = $$props2.view); }; $$self.$$.update = () => { if ($$self.$$.dirty & /*layoutBtn, showTree*/ @@ -39835,8 +39538,7 @@ var BranchModal = class extends import_obsidian22.FuzzySuggestModal { } async onClose() { await new Promise((resolve2) => setTimeout(resolve2, 10)); - if (this.resolve) - this.resolve(void 0); + if (this.resolve) this.resolve(void 0); } }; @@ -39915,26 +39617,22 @@ var DiscardModal = class extends import_obsidian24.Modal { text: this.deletion ? "Delete" : "Discard" }); discard.addEventListener("click", async () => { - if (this.resolve) - this.resolve(true); + if (this.resolve) this.resolve(true); this.close(); }); discard.addEventListener("keypress", async () => { - if (this.resolve) - this.resolve(true); + if (this.resolve) this.resolve(true); this.close(); }); const close = div.createEl("button", { text: "Cancel" }); close.addEventListener("click", () => { - if (this.resolve) - this.resolve(false); + if (this.resolve) this.resolve(false); return this.close(); }); close.addEventListener("keypress", () => { - if (this.resolve) - this.resolve(false); + if (this.resolve) this.resolve(false); return this.close(); }); } @@ -39948,10 +39646,10 @@ var DiscardModal = class extends import_obsidian24.Modal { init_polyfill_buffer(); var import_obsidian26 = require("obsidian"); -// node_modules/.pnpm/obsidian-community-lib@https+++codeload.github.com+Vinzent03+obsidian-community-lib+tar.gz+e6_dmashd4lm54vdqd2gnfngnqe2m/node_modules/obsidian-community-lib/dist/index.js +// node_modules/.pnpm/obsidian-community-lib@https+++codeload.github.com+Vinzent03+obsidian-community-lib+tar.gz+e6_gis2so5ruhuavxzhyb52fw447e/node_modules/obsidian-community-lib/dist/index.js init_polyfill_buffer(); -// node_modules/.pnpm/obsidian-community-lib@https+++codeload.github.com+Vinzent03+obsidian-community-lib+tar.gz+e6_dmashd4lm54vdqd2gnfngnqe2m/node_modules/obsidian-community-lib/dist/utils.js +// node_modules/.pnpm/obsidian-community-lib@https+++codeload.github.com+Vinzent03+obsidian-community-lib+tar.gz+e6_gis2so5ruhuavxzhyb52fw447e/node_modules/obsidian-community-lib/dist/utils.js init_polyfill_buffer(); var feather = __toESM(require_feather()); var import_obsidian25 = require("obsidian"); @@ -40055,8 +39753,7 @@ function create_fragment5(ctx) { t1 = space(); div5 = element("div"); div3 = element("div"); - if (if_block) - if_block.c(); + if (if_block) if_block.c(); t2 = space(); div1 = element("div"); t3 = space(); @@ -40106,8 +39803,7 @@ function create_fragment5(ctx) { append2(div6, t1); append2(div6, div5); append2(div5, div3); - if (if_block) - if_block.m(div3, null); + if (if_block) if_block.m(div3, null); append2(div3, t2); append2(div3, div1); ctx[12](div1); @@ -40138,8 +39834,8 @@ function create_fragment5(ctx) { ctx[7] )), listen(main, "auxclick", stop_propagation( - /*showDiff*/ - ctx[7] + /*auxclick_handler*/ + ctx[14] )), listen( main, @@ -40157,15 +39853,13 @@ function create_fragment5(ctx) { 1 && t0_value !== (t0_value = getDisplayPath( /*change*/ ctx2[0].vault_path - ) + "")) - set_data(t0, t0_value); + ) + "")) set_data(t0, t0_value); if (dirty & /*view, change*/ - 3) - show_if = /*view*/ - ctx2[1].app.vault.getAbstractFileByPath( - /*change*/ - ctx2[0].vault_path - ); + 3) show_if = /*view*/ + ctx2[1].app.vault.getAbstractFileByPath( + /*change*/ + ctx2[0].vault_path + ); if (show_if) { if (if_block) { if_block.p(ctx2, dirty); @@ -40180,8 +39874,7 @@ function create_fragment5(ctx) { } if (dirty & /*change*/ 1 && t5_value !== (t5_value = /*change*/ - ctx2[0].working_dir + "")) - set_data(t5, t5_value); + ctx2[0].working_dir + "")) set_data(t5, t5_value); if (dirty & /*change*/ 1 && div4_data_type_value !== (div4_data_type_value = /*change*/ ctx2[0].working_dir)) { @@ -40225,8 +39918,7 @@ function create_fragment5(ctx) { if (detaching) { detach(main); } - if (if_block) - if_block.d(); + if (if_block) if_block.d(); ctx[12](null); ctx[13](null); mounted = false; @@ -40249,7 +39941,6 @@ function instance5($$self, $$props, $$invalidate) { function open(event) { var _a2; const file = view.app.vault.getAbstractFileByPath(change.vault_path); - console.log(event); if (file instanceof import_obsidian26.TFile) { (_a2 = getNewLeaf(event)) === null || _a2 === void 0 ? void 0 : _a2.openFile(file); } @@ -40304,19 +39995,16 @@ function instance5($$self, $$props, $$invalidate) { $$invalidate(2, buttons); }); } + const auxclick_handler = (event) => mayTriggerFileMenu(view.app, event, change.vault_path, view.leaf, "git-source-control"); $$self.$$set = ($$props2) => { - if ("change" in $$props2) - $$invalidate(0, change = $$props2.change); - if ("view" in $$props2) - $$invalidate(1, view = $$props2.view); - if ("manager" in $$props2) - $$invalidate(9, manager = $$props2.manager); + if ("change" in $$props2) $$invalidate(0, change = $$props2.change); + if ("view" in $$props2) $$invalidate(1, view = $$props2.view); + if ("manager" in $$props2) $$invalidate(9, manager = $$props2.manager); }; $$self.$$.update = () => { if ($$self.$$.dirty & /*view*/ 2) { - $: - $$invalidate(3, side = view.leaf.getRoot().side == "left" ? "right" : "left"); + $: $$invalidate(3, side = view.leaf.getRoot().side == "left" ? "right" : "left"); } }; return [ @@ -40333,7 +40021,8 @@ function instance5($$self, $$props, $$invalidate) { focus_handler, div_binding, div1_binding, - div2_binding + div2_binding, + auxclick_handler ]; } var FileComponent = class extends SvelteComponent { @@ -40394,7 +40083,7 @@ function create_fragment6(ctx) { div2, "data-tooltip-position", /*side*/ - ctx[1] + ctx[2] ); attr(div2, "aria-label", div2_aria_label_value = /*change*/ ctx[0].vault_path); @@ -40415,15 +40104,15 @@ function create_fragment6(ctx) { main, "mouseover", /*hover*/ - ctx[2] + ctx[3] ), listen(main, "click", stop_propagation( /*open*/ - ctx[3] + ctx[4] )), listen(main, "auxclick", stop_propagation( - /*open*/ - ctx[3] + /*auxclick_handler*/ + ctx[6] )), listen( main, @@ -40440,12 +40129,10 @@ function create_fragment6(ctx) { 1 && t0_value !== (t0_value = getDisplayPath( /*change*/ ctx2[0].vault_path - ) + "")) - set_data(t0, t0_value); + ) + "")) set_data(t0, t0_value); if (dirty & /*change*/ 1 && t2_value !== (t2_value = /*change*/ - ctx2[0].working_dir + "")) - set_data(t2, t2_value); + ctx2[0].working_dir + "")) set_data(t2, t2_value); if (dirty & /*change*/ 1 && span_data_type_value !== (span_data_type_value = /*change*/ ctx2[0].working_dir)) { @@ -40457,12 +40144,12 @@ function create_fragment6(ctx) { attr(div2, "data-path", div2_data_path_value); } if (dirty & /*side*/ - 2) { + 4) { attr( div2, "data-tooltip-position", /*side*/ - ctx2[1] + ctx2[2] ); } if (dirty & /*change*/ @@ -40501,25 +40188,23 @@ function instance6($$self, $$props, $$invalidate) { function focus_handler(event) { bubble.call(this, $$self, event); } + const auxclick_handler = (event) => mayTriggerFileMenu(view.app, event, change.vault_path, view.leaf, "git-source-control"); $$self.$$set = ($$props2) => { - if ("change" in $$props2) - $$invalidate(0, change = $$props2.change); - if ("view" in $$props2) - $$invalidate(4, view = $$props2.view); + if ("change" in $$props2) $$invalidate(0, change = $$props2.change); + if ("view" in $$props2) $$invalidate(1, view = $$props2.view); }; $$self.$$.update = () => { if ($$self.$$.dirty & /*view*/ - 16) { - $: - $$invalidate(1, side = view.leaf.getRoot().side == "left" ? "right" : "left"); + 2) { + $: $$invalidate(2, side = view.leaf.getRoot().side == "left" ? "right" : "left"); } }; - return [change, side, hover, open, view, focus_handler]; + return [change, view, side, hover, open, focus_handler, auxclick_handler]; } var PulledFileComponent = class extends SvelteComponent { constructor(options) { super(); - init2(this, options, instance6, create_fragment6, safe_not_equal, { change: 0, view: 4 }, add_css4); + init2(this, options, instance6, create_fragment6, safe_not_equal, { change: 0, view: 1 }, add_css4); } }; var pulledFileComponent_default = PulledFileComponent; @@ -40607,8 +40292,7 @@ function create_fragment7(ctx) { t1 = space(); div4 = element("div"); div2 = element("div"); - if (if_block) - if_block.c(); + if (if_block) if_block.c(); t2 = space(); div1 = element("div"); t3 = space(); @@ -40653,8 +40337,7 @@ function create_fragment7(ctx) { append2(div5, t1); append2(div5, div4); append2(div4, div2); - if (if_block) - if_block.m(div2, null); + if (if_block) if_block.m(div2, null); append2(div2, t2); append2(div2, div1); ctx[11](div1); @@ -40684,8 +40367,8 @@ function create_fragment7(ctx) { ctx[6] )), listen(main, "auxclick", stop_propagation( - /*showDiff*/ - ctx[6] + /*auxclick_handler*/ + ctx[12] )) ]; mounted = true; @@ -40697,15 +40380,13 @@ function create_fragment7(ctx) { 1 && t0_value !== (t0_value = getDisplayPath( /*change*/ ctx2[0].vault_path - ) + "")) - set_data(t0, t0_value); + ) + "")) set_data(t0, t0_value); if (dirty & /*view, change*/ - 3) - show_if = /*view*/ - ctx2[1].app.vault.getAbstractFileByPath( - /*change*/ - ctx2[0].vault_path - ); + 3) show_if = /*view*/ + ctx2[1].app.vault.getAbstractFileByPath( + /*change*/ + ctx2[0].vault_path + ); if (show_if) { if (if_block) { if_block.p(ctx2, dirty); @@ -40720,8 +40401,7 @@ function create_fragment7(ctx) { } if (dirty & /*change*/ 1 && t4_value !== (t4_value = /*change*/ - ctx2[0].index + "")) - set_data(t4, t4_value); + ctx2[0].index + "")) set_data(t4, t4_value); if (dirty & /*change*/ 1 && div3_data_type_value !== (div3_data_type_value = /*change*/ ctx2[0].index)) { @@ -40765,8 +40445,7 @@ function create_fragment7(ctx) { if (detaching) { detach(main); } - if (if_block) - if_block.d(); + if (if_block) if_block.d(); ctx[11](null); mounted = false; run_all(dispose); @@ -40820,19 +40499,16 @@ function instance7($$self, $$props, $$invalidate) { $$invalidate(2, buttons); }); } + const auxclick_handler = (event) => mayTriggerFileMenu(view.app, event, change.vault_path, view.leaf, "git-source-control"); $$self.$$set = ($$props2) => { - if ("change" in $$props2) - $$invalidate(0, change = $$props2.change); - if ("view" in $$props2) - $$invalidate(1, view = $$props2.view); - if ("manager" in $$props2) - $$invalidate(8, manager = $$props2.manager); + if ("change" in $$props2) $$invalidate(0, change = $$props2.change); + if ("view" in $$props2) $$invalidate(1, view = $$props2.view); + if ("manager" in $$props2) $$invalidate(8, manager = $$props2.manager); }; $$self.$$.update = () => { if ($$self.$$.dirty & /*view*/ 2) { - $: - $$invalidate(3, side = view.leaf.getRoot().side == "left" ? "right" : "left"); + $: $$invalidate(3, side = view.leaf.getRoot().side == "left" ? "right" : "left"); } }; return [ @@ -40847,7 +40523,8 @@ function instance7($$self, $$props, $$invalidate) { manager, focus_handler, div_binding, - div1_binding + div1_binding, + auxclick_handler ]; } var StagedFileComponent = class extends SvelteComponent { @@ -40865,7 +40542,7 @@ function add_css6(target) { } function get_each_context4(ctx, list, i) { const child_ctx = ctx.slice(); - child_ctx[15] = list[i]; + child_ctx[16] = list[i]; return child_ctx; } function create_else_block3(ctx) { @@ -40878,7 +40555,7 @@ function create_else_block3(ctx) { let div2; let t2_value = ( /*entity*/ - ctx[15].title + "" + ctx[16].title + "" ); let t2; let t3; @@ -40896,8 +40573,7 @@ function create_else_block3(ctx) { if ( /*fileType*/ ctx2[3] == 0 /* staged */ - ) - return create_if_block_5; + ) return create_if_block_5; return create_else_block_1; } let current_block_type = select_block_type_2(ctx, -1); @@ -40905,14 +40581,24 @@ function create_else_block3(ctx) { let if_block1 = !/*closed*/ ctx[5][ /*entity*/ - ctx[15].title + ctx[16].title ] && create_if_block_42(ctx); function click_handler_3() { return ( /*click_handler_3*/ ctx[14]( /*entity*/ - ctx[15] + ctx[16] + ) + ); + } + function auxclick_handler(...args) { + return ( + /*auxclick_handler*/ + ctx[15]( + /*entity*/ + ctx[16], + ...args ) ); } @@ -40934,8 +40620,7 @@ function create_else_block3(ctx) { t4 = space(); div3 = element("div"); t5 = space(); - if (if_block1) - if_block1.c(); + if (if_block1) if_block1.c(); t6 = space(); attr(div0, "data-icon", "folder"); set_style(div0, "padding-right", "5px"); @@ -40947,7 +40632,7 @@ function create_else_block3(ctx) { /*closed*/ ctx[5][ /*entity*/ - ctx[15].title + ctx[16].title ] ); attr(div2, "class", "tree-item-inner nav-folder-title-content"); @@ -40962,7 +40647,7 @@ function create_else_block3(ctx) { ctx[6] ); attr(div6, "aria-label", div6_aria_label_value = /*entity*/ - ctx[15].vaultPath); + ctx[16].vaultPath); attr(div7, "class", "tree-item nav-folder"); toggle_class( div7, @@ -40970,7 +40655,7 @@ function create_else_block3(ctx) { /*closed*/ ctx[5][ /*entity*/ - ctx[15].title + ctx[16].title ] ); }, @@ -40990,12 +40675,14 @@ function create_else_block3(ctx) { append2(div4, t4); append2(div4, div3); append2(div7, t5); - if (if_block1) - if_block1.m(div7, null); + if (if_block1) if_block1.m(div7, null); append2(div7, t6); current = true; if (!mounted) { - dispose = listen(div7, "click", stop_propagation(click_handler_3)); + dispose = [ + listen(div7, "click", stop_propagation(click_handler_3)), + listen(div7, "auxclick", stop_propagation(auxclick_handler)) + ]; mounted = true; } }, @@ -41009,14 +40696,13 @@ function create_else_block3(ctx) { /*closed*/ ctx[5][ /*entity*/ - ctx[15].title + ctx[16].title ] ); } if ((!current || dirty & /*hierarchy*/ 1) && t2_value !== (t2_value = /*entity*/ - ctx[15].title + "")) - set_data(t2, t2_value); + ctx[16].title + "")) set_data(t2, t2_value); if (current_block_type === (current_block_type = select_block_type_2(ctx, dirty)) && if_block0) { if_block0.p(ctx, dirty); } else { @@ -41038,13 +40724,13 @@ function create_else_block3(ctx) { } if (!current || dirty & /*hierarchy*/ 1 && div6_aria_label_value !== (div6_aria_label_value = /*entity*/ - ctx[15].vaultPath)) { + ctx[16].vaultPath)) { attr(div6, "aria-label", div6_aria_label_value); } if (!/*closed*/ ctx[5][ /*entity*/ - ctx[15].title + ctx[16].title ]) { if (if_block1) { if_block1.p(ctx, dirty); @@ -41073,14 +40759,13 @@ function create_else_block3(ctx) { /*closed*/ ctx[5][ /*entity*/ - ctx[15].title + ctx[16].title ] ); } }, i(local) { - if (current) - return; + if (current) return; transition_in(if_block1); current = true; }, @@ -41093,10 +40778,9 @@ function create_else_block3(ctx) { detach(div7); } if_block0.d(); - if (if_block1) - if_block1.d(); + if (if_block1) if_block1.d(); mounted = false; - dispose(); + run_all(dispose); } }; } @@ -41112,18 +40796,15 @@ function create_if_block7(ctx) { if ( /*fileType*/ ctx2[3] == 0 /* staged */ - ) - return 0; + ) return 0; if ( /*fileType*/ ctx2[3] == 1 /* changed */ - ) - return 1; + ) return 1; if ( /*fileType*/ ctx2[3] == 2 /* pulled */ - ) - return 2; + ) return 2; return -1; } if (~(current_block_type_index = select_block_type_1(ctx, -1))) { @@ -41132,8 +40813,7 @@ function create_if_block7(ctx) { return { c() { div = element("div"); - if (if_block) - if_block.c(); + if (if_block) if_block.c(); t = space(); }, m(target, anchor) { @@ -41175,8 +40855,7 @@ function create_if_block7(ctx) { } }, i(local) { - if (current) - return; + if (current) return; transition_in(if_block); current = true; }, @@ -41205,7 +40884,7 @@ function create_else_block_1(ctx) { /*click_handler_1*/ ctx[12]( /*entity*/ - ctx[15] + ctx[16] ) ); } @@ -41214,7 +40893,7 @@ function create_else_block_1(ctx) { /*click_handler_2*/ ctx[13]( /*entity*/ - ctx[15] + ctx[16] ) ); } @@ -41267,7 +40946,7 @@ function create_if_block_5(ctx) { /*click_handler*/ ctx[11]( /*entity*/ - ctx[15] + ctx[16] ) ); } @@ -41307,7 +40986,7 @@ function create_if_block_42(ctx) { props: { hierarchy: ( /*entity*/ - ctx[15] + ctx[16] ), plugin: ( /*plugin*/ @@ -41337,33 +41016,26 @@ function create_if_block_42(ctx) { p(ctx2, dirty) { const treecomponent_changes = {}; if (dirty & /*hierarchy*/ - 1) - treecomponent_changes.hierarchy = /*entity*/ - ctx2[15]; + 1) treecomponent_changes.hierarchy = /*entity*/ + ctx2[16]; if (dirty & /*plugin*/ - 2) - treecomponent_changes.plugin = /*plugin*/ - ctx2[1]; + 2) treecomponent_changes.plugin = /*plugin*/ + ctx2[1]; if (dirty & /*view*/ - 4) - treecomponent_changes.view = /*view*/ - ctx2[2]; + 4) treecomponent_changes.view = /*view*/ + ctx2[2]; if (dirty & /*fileType*/ - 8) - treecomponent_changes.fileType = /*fileType*/ - ctx2[3]; + 8) treecomponent_changes.fileType = /*fileType*/ + ctx2[3]; treecomponent.$set(treecomponent_changes); }, i(local) { - if (current) - return; + if (current) return; transition_in(treecomponent.$$.fragment, local); if (local) { add_render_callback(() => { - if (!current) - return; - if (!div_transition) - div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, true); + if (!current) return; + if (!div_transition) div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, true); div_transition.run(1); }); } @@ -41372,8 +41044,7 @@ function create_if_block_42(ctx) { o(local) { transition_out(treecomponent.$$.fragment, local); if (local) { - if (!div_transition) - div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, false); + if (!div_transition) div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, false); div_transition.run(0); } current = false; @@ -41383,8 +41054,7 @@ function create_if_block_42(ctx) { detach(div); } destroy_component(treecomponent); - if (detaching && div_transition) - div_transition.end(); + if (detaching && div_transition) div_transition.end(); } }; } @@ -41395,7 +41065,7 @@ function create_if_block_32(ctx) { props: { change: ( /*entity*/ - ctx[15].data + ctx[16].data ), view: ( /*view*/ @@ -41414,18 +41084,15 @@ function create_if_block_32(ctx) { p(ctx2, dirty) { const pulledfilecomponent_changes = {}; if (dirty & /*hierarchy*/ - 1) - pulledfilecomponent_changes.change = /*entity*/ - ctx2[15].data; + 1) pulledfilecomponent_changes.change = /*entity*/ + ctx2[16].data; if (dirty & /*view*/ - 4) - pulledfilecomponent_changes.view = /*view*/ - ctx2[2]; + 4) pulledfilecomponent_changes.view = /*view*/ + ctx2[2]; pulledfilecomponent.$set(pulledfilecomponent_changes); }, i(local) { - if (current) - return; + if (current) return; transition_in(pulledfilecomponent.$$.fragment, local); current = true; }, @@ -41445,7 +41112,7 @@ function create_if_block_22(ctx) { props: { change: ( /*entity*/ - ctx[15].data + ctx[16].data ), manager: ( /*plugin*/ @@ -41468,22 +41135,18 @@ function create_if_block_22(ctx) { p(ctx2, dirty) { const filecomponent_changes = {}; if (dirty & /*hierarchy*/ - 1) - filecomponent_changes.change = /*entity*/ - ctx2[15].data; + 1) filecomponent_changes.change = /*entity*/ + ctx2[16].data; if (dirty & /*plugin*/ - 2) - filecomponent_changes.manager = /*plugin*/ - ctx2[1].gitManager; + 2) filecomponent_changes.manager = /*plugin*/ + ctx2[1].gitManager; if (dirty & /*view*/ - 4) - filecomponent_changes.view = /*view*/ - ctx2[2]; + 4) filecomponent_changes.view = /*view*/ + ctx2[2]; filecomponent.$set(filecomponent_changes); }, i(local) { - if (current) - return; + if (current) return; transition_in(filecomponent.$$.fragment, local); current = true; }, @@ -41503,7 +41166,7 @@ function create_if_block_13(ctx) { props: { change: ( /*entity*/ - ctx[15].data + ctx[16].data ), manager: ( /*plugin*/ @@ -41526,22 +41189,18 @@ function create_if_block_13(ctx) { p(ctx2, dirty) { const stagedfilecomponent_changes = {}; if (dirty & /*hierarchy*/ - 1) - stagedfilecomponent_changes.change = /*entity*/ - ctx2[15].data; + 1) stagedfilecomponent_changes.change = /*entity*/ + ctx2[16].data; if (dirty & /*plugin*/ - 2) - stagedfilecomponent_changes.manager = /*plugin*/ - ctx2[1].gitManager; + 2) stagedfilecomponent_changes.manager = /*plugin*/ + ctx2[1].gitManager; if (dirty & /*view*/ - 4) - stagedfilecomponent_changes.view = /*view*/ - ctx2[2]; + 4) stagedfilecomponent_changes.view = /*view*/ + ctx2[2]; stagedfilecomponent.$set(stagedfilecomponent_changes); }, i(local) { - if (current) - return; + if (current) return; transition_in(stagedfilecomponent.$$.fragment, local); current = true; }, @@ -41564,9 +41223,8 @@ function create_each_block4(ctx) { function select_block_type(ctx2, dirty) { if ( /*entity*/ - ctx2[15].data - ) - return 0; + ctx2[16].data + ) return 0; return 1; } current_block_type_index = select_block_type(ctx, -1); @@ -41604,8 +41262,7 @@ function create_each_block4(ctx) { } }, i(local) { - if (current) - return; + if (current) return; transition_in(if_block); current = true; }, @@ -41695,8 +41352,7 @@ function create_fragment8(ctx) { } }, i(local) { - if (current) - return; + if (current) return; for (let i = 0; i < each_value.length; i += 1) { transition_in(each_blocks[i]); } @@ -41754,23 +41410,18 @@ function instance8($$self, $$props, $$invalidate) { const click_handler_1 = (entity) => discard(entity); const click_handler_2 = (entity) => stage(entity.path); const click_handler_3 = (entity) => fold(entity); + const auxclick_handler = (entity, event) => mayTriggerFileMenu(view.app, event, entity.vaultPath, view.leaf, "git-source-control"); $$self.$$set = ($$props2) => { - if ("hierarchy" in $$props2) - $$invalidate(0, hierarchy = $$props2.hierarchy); - if ("plugin" in $$props2) - $$invalidate(1, plugin = $$props2.plugin); - if ("view" in $$props2) - $$invalidate(2, view = $$props2.view); - if ("fileType" in $$props2) - $$invalidate(3, fileType = $$props2.fileType); - if ("topLevel" in $$props2) - $$invalidate(4, topLevel = $$props2.topLevel); + if ("hierarchy" in $$props2) $$invalidate(0, hierarchy = $$props2.hierarchy); + if ("plugin" in $$props2) $$invalidate(1, plugin = $$props2.plugin); + if ("view" in $$props2) $$invalidate(2, view = $$props2.view); + if ("fileType" in $$props2) $$invalidate(3, fileType = $$props2.fileType); + if ("topLevel" in $$props2) $$invalidate(4, topLevel = $$props2.topLevel); }; $$self.$$.update = () => { if ($$self.$$.dirty & /*view*/ 4) { - $: - $$invalidate(6, side = view.leaf.getRoot().side == "left" ? "right" : "left"); + $: $$invalidate(6, side = view.leaf.getRoot().side == "left" ? "right" : "left"); } }; return [ @@ -41788,7 +41439,8 @@ function instance8($$self, $$props, $$invalidate) { click_handler, click_handler_1, click_handler_2, - click_handler_3 + click_handler_3, + auxclick_handler ]; } var TreeComponent = class extends SvelteComponent { @@ -41941,8 +41593,7 @@ function create_if_block8(ctx) { div4 = element("div"); t4 = text(t4_value); t5 = space(); - if (if_block0) - if_block0.c(); + if (if_block0) if_block0.c(); t6 = space(); div16 = element("div"); div15 = element("div"); @@ -41963,11 +41614,9 @@ function create_if_block8(ctx) { div13 = element("div"); t12 = text(t12_value); t13 = space(); - if (if_block1) - if_block1.c(); + if (if_block1) if_block1.c(); t14 = space(); - if (if_block2) - if_block2.c(); + if (if_block2) if_block2.c(); attr(div0, "class", "tree-item-icon nav-folder-collapse-indicator collapse-icon"); toggle_class(div0, "is-collapsed", !/*stagedOpen*/ ctx[13]); @@ -42019,8 +41668,7 @@ function create_if_block8(ctx) { append2(div5, div4); append2(div4, t4); append2(div7, t5); - if (if_block0) - if_block0.m(div7, null); + if (if_block0) if_block0.m(div7, null); append2(div17, t6); append2(div17, div16); append2(div16, div15); @@ -42038,11 +41686,9 @@ function create_if_block8(ctx) { append2(div14, div13); append2(div13, t12); append2(div16, t13); - if (if_block1) - if_block1.m(div16, null); + if (if_block1) if_block1.m(div16, null); append2(div17, t14); - if (if_block2) - if_block2.m(div17, null); + if (if_block2) if_block2.m(div17, null); current = true; if (!mounted) { dispose = [ @@ -42082,8 +41728,7 @@ function create_if_block8(ctx) { } if ((!current || dirty[0] & /*status*/ 64) && t4_value !== (t4_value = /*status*/ - ctx2[6].staged.length + "")) - set_data(t4, t4_value); + ctx2[6].staged.length + "")) set_data(t4, t4_value); if ( /*stagedOpen*/ ctx2[13] @@ -42119,8 +41764,7 @@ function create_if_block8(ctx) { } if ((!current || dirty[0] & /*status*/ 64) && t12_value !== (t12_value = /*status*/ - ctx2[6].changed.length + "")) - set_data(t12, t12_value); + ctx2[6].changed.length + "")) set_data(t12, t12_value); if ( /*changesOpen*/ ctx2[12] @@ -42174,8 +41818,7 @@ function create_if_block8(ctx) { } }, i(local) { - if (current) - return; + if (current) return; transition_in(if_block0); transition_in(if_block1); transition_in(if_block2); @@ -42192,13 +41835,10 @@ function create_if_block8(ctx) { detach(div18); } ctx[34](null); - if (if_block0) - if_block0.d(); + if (if_block0) if_block0.d(); ctx[36](null); - if (if_block1) - if_block1.d(); - if (if_block2) - if_block2.d(); + if (if_block1) if_block1.d(); + if (if_block2) if_block2.d(); mounted = false; run_all(dispose); } @@ -42216,8 +41856,7 @@ function create_if_block_6(ctx) { if ( /*showTree*/ ctx2[3] - ) - return 0; + ) return 0; return 1; } current_block_type_index = select_block_type(ctx, [-1, -1]); @@ -42256,15 +41895,12 @@ function create_if_block_6(ctx) { } }, i(local) { - if (current) - return; + if (current) return; transition_in(if_block); if (local) { add_render_callback(() => { - if (!current) - return; - if (!div_transition) - div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, true); + if (!current) return; + if (!div_transition) div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, true); div_transition.run(1); }); } @@ -42273,8 +41909,7 @@ function create_if_block_6(ctx) { o(local) { transition_out(if_block); if (local) { - if (!div_transition) - div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, false); + if (!div_transition) div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, false); div_transition.run(0); } current = false; @@ -42284,8 +41919,7 @@ function create_if_block_6(ctx) { detach(div); } if_blocks[current_block_type_index].d(); - if (detaching && div_transition) - div_transition.end(); + if (detaching && div_transition) div_transition.end(); } }; } @@ -42347,8 +41981,7 @@ function create_else_block_2(ctx) { } }, i(local) { - if (current) - return; + if (current) return; for (let i = 0; i < each_value_2.length; i += 1) { transition_in(each_blocks[i]); } @@ -42401,22 +42034,18 @@ function create_if_block_7(ctx) { p(ctx2, dirty) { const treecomponent_changes = {}; if (dirty[0] & /*stagedHierarchy*/ - 1024) - treecomponent_changes.hierarchy = /*stagedHierarchy*/ - ctx2[10]; + 1024) treecomponent_changes.hierarchy = /*stagedHierarchy*/ + ctx2[10]; if (dirty[0] & /*plugin*/ - 1) - treecomponent_changes.plugin = /*plugin*/ - ctx2[0]; + 1) treecomponent_changes.plugin = /*plugin*/ + ctx2[0]; if (dirty[0] & /*view*/ - 2) - treecomponent_changes.view = /*view*/ - ctx2[1]; + 2) treecomponent_changes.view = /*view*/ + ctx2[1]; treecomponent.$set(treecomponent_changes); }, i(local) { - if (current) - return; + if (current) return; transition_in(treecomponent.$$.fragment, local); current = true; }, @@ -42459,22 +42088,18 @@ function create_each_block_2(ctx) { p(ctx2, dirty) { const stagedfilecomponent_changes = {}; if (dirty[0] & /*status*/ - 64) - stagedfilecomponent_changes.change = /*stagedFile*/ - ctx2[45]; + 64) stagedfilecomponent_changes.change = /*stagedFile*/ + ctx2[45]; if (dirty[0] & /*view*/ - 2) - stagedfilecomponent_changes.view = /*view*/ - ctx2[1]; + 2) stagedfilecomponent_changes.view = /*view*/ + ctx2[1]; if (dirty[0] & /*plugin*/ - 1) - stagedfilecomponent_changes.manager = /*plugin*/ - ctx2[0].gitManager; + 1) stagedfilecomponent_changes.manager = /*plugin*/ + ctx2[0].gitManager; stagedfilecomponent.$set(stagedfilecomponent_changes); }, i(local) { - if (current) - return; + if (current) return; transition_in(stagedfilecomponent.$$.fragment, local); current = true; }, @@ -42499,8 +42124,7 @@ function create_if_block_43(ctx) { if ( /*showTree*/ ctx2[3] - ) - return 0; + ) return 0; return 1; } current_block_type_index = select_block_type_1(ctx, [-1, -1]); @@ -42539,15 +42163,12 @@ function create_if_block_43(ctx) { } }, i(local) { - if (current) - return; + if (current) return; transition_in(if_block); if (local) { add_render_callback(() => { - if (!current) - return; - if (!div_transition) - div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, true); + if (!current) return; + if (!div_transition) div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, true); div_transition.run(1); }); } @@ -42556,8 +42177,7 @@ function create_if_block_43(ctx) { o(local) { transition_out(if_block); if (local) { - if (!div_transition) - div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, false); + if (!div_transition) div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, false); div_transition.run(0); } current = false; @@ -42567,8 +42187,7 @@ function create_if_block_43(ctx) { detach(div); } if_blocks[current_block_type_index].d(); - if (detaching && div_transition) - div_transition.end(); + if (detaching && div_transition) div_transition.end(); } }; } @@ -42630,8 +42249,7 @@ function create_else_block_12(ctx) { } }, i(local) { - if (current) - return; + if (current) return; for (let i = 0; i < each_value_1.length; i += 1) { transition_in(each_blocks[i]); } @@ -42684,22 +42302,18 @@ function create_if_block_52(ctx) { p(ctx2, dirty) { const treecomponent_changes = {}; if (dirty[0] & /*changeHierarchy*/ - 512) - treecomponent_changes.hierarchy = /*changeHierarchy*/ - ctx2[9]; + 512) treecomponent_changes.hierarchy = /*changeHierarchy*/ + ctx2[9]; if (dirty[0] & /*plugin*/ - 1) - treecomponent_changes.plugin = /*plugin*/ - ctx2[0]; + 1) treecomponent_changes.plugin = /*plugin*/ + ctx2[0]; if (dirty[0] & /*view*/ - 2) - treecomponent_changes.view = /*view*/ - ctx2[1]; + 2) treecomponent_changes.view = /*view*/ + ctx2[1]; treecomponent.$set(treecomponent_changes); }, i(local) { - if (current) - return; + if (current) return; transition_in(treecomponent.$$.fragment, local); current = true; }, @@ -42743,22 +42357,18 @@ function create_each_block_1(ctx) { p(ctx2, dirty) { const filecomponent_changes = {}; if (dirty[0] & /*status*/ - 64) - filecomponent_changes.change = /*change*/ - ctx2[40]; + 64) filecomponent_changes.change = /*change*/ + ctx2[40]; if (dirty[0] & /*view*/ - 2) - filecomponent_changes.view = /*view*/ - ctx2[1]; + 2) filecomponent_changes.view = /*view*/ + ctx2[1]; if (dirty[0] & /*plugin*/ - 1) - filecomponent_changes.manager = /*plugin*/ - ctx2[0].gitManager; + 1) filecomponent_changes.manager = /*plugin*/ + ctx2[0].gitManager; filecomponent.$set(filecomponent_changes); }, i(local) { - if (current) - return; + if (current) return; transition_in(filecomponent.$$.fragment, local); current = true; }, @@ -42805,8 +42415,7 @@ function create_if_block_14(ctx) { span = element("span"); t3 = text(t3_value); t4 = space(); - if (if_block) - if_block.c(); + if (if_block) if_block.c(); attr(div0, "class", "tree-item-icon nav-folder-collapse-indicator collapse-icon"); attr(div1, "class", "tree-item-inner nav-folder-title-content"); attr(span, "class", "tree-item-flair"); @@ -42825,8 +42434,7 @@ function create_if_block_14(ctx) { append2(div2, span); append2(span, t3); append2(div3, t4); - if (if_block) - if_block.m(div3, null); + if (if_block) if_block.m(div3, null); current = true; if (!mounted) { dispose = listen( @@ -42841,8 +42449,7 @@ function create_if_block_14(ctx) { p(ctx2, dirty) { if ((!current || dirty[0] & /*lastPulledFiles*/ 128) && t3_value !== (t3_value = /*lastPulledFiles*/ - ctx2[7].length + "")) - set_data(t3, t3_value); + ctx2[7].length + "")) set_data(t3, t3_value); if ( /*lastPulledFilesOpen*/ ctx2[14] @@ -42873,8 +42480,7 @@ function create_if_block_14(ctx) { } }, i(local) { - if (current) - return; + if (current) return; transition_in(if_block); current = true; }, @@ -42886,8 +42492,7 @@ function create_if_block_14(ctx) { if (detaching) { detach(div3); } - if (if_block) - if_block.d(); + if (if_block) if_block.d(); mounted = false; dispose(); } @@ -42905,8 +42510,7 @@ function create_if_block_23(ctx) { if ( /*showTree*/ ctx2[3] - ) - return 0; + ) return 0; return 1; } current_block_type_index = select_block_type_2(ctx, [-1, -1]); @@ -42945,15 +42549,12 @@ function create_if_block_23(ctx) { } }, i(local) { - if (current) - return; + if (current) return; transition_in(if_block); if (local) { add_render_callback(() => { - if (!current) - return; - if (!div_transition) - div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, true); + if (!current) return; + if (!div_transition) div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, true); div_transition.run(1); }); } @@ -42962,8 +42563,7 @@ function create_if_block_23(ctx) { o(local) { transition_out(if_block); if (local) { - if (!div_transition) - div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, false); + if (!div_transition) div_transition = create_bidirectional_transition(div, slide, { duration: 150 }, false); div_transition.run(0); } current = false; @@ -42973,8 +42573,7 @@ function create_if_block_23(ctx) { detach(div); } if_blocks[current_block_type_index].d(); - if (detaching && div_transition) - div_transition.end(); + if (detaching && div_transition) div_transition.end(); } }; } @@ -43036,8 +42635,7 @@ function create_else_block4(ctx) { } }, i(local) { - if (current) - return; + if (current) return; for (let i = 0; i < each_value.length; i += 1) { transition_in(each_blocks[i]); } @@ -43090,22 +42688,18 @@ function create_if_block_33(ctx) { p(ctx2, dirty) { const treecomponent_changes = {}; if (dirty[0] & /*lastPulledFilesHierarchy*/ - 2048) - treecomponent_changes.hierarchy = /*lastPulledFilesHierarchy*/ - ctx2[11]; + 2048) treecomponent_changes.hierarchy = /*lastPulledFilesHierarchy*/ + ctx2[11]; if (dirty[0] & /*plugin*/ - 1) - treecomponent_changes.plugin = /*plugin*/ - ctx2[0]; + 1) treecomponent_changes.plugin = /*plugin*/ + ctx2[0]; if (dirty[0] & /*view*/ - 2) - treecomponent_changes.view = /*view*/ - ctx2[1]; + 2) treecomponent_changes.view = /*view*/ + ctx2[1]; treecomponent.$set(treecomponent_changes); }, i(local) { - if (current) - return; + if (current) return; transition_in(treecomponent.$$.fragment, local); current = true; }, @@ -43145,18 +42739,15 @@ function create_each_block5(ctx) { p(ctx2, dirty) { const pulledfilecomponent_changes = {}; if (dirty[0] & /*lastPulledFiles*/ - 128) - pulledfilecomponent_changes.change = /*change*/ - ctx2[40]; + 128) pulledfilecomponent_changes.change = /*change*/ + ctx2[40]; if (dirty[0] & /*view*/ - 2) - pulledfilecomponent_changes.view = /*view*/ - ctx2[1]; + 2) pulledfilecomponent_changes.view = /*view*/ + ctx2[1]; pulledfilecomponent.$set(pulledfilecomponent_changes); }, i(local) { - if (current) - return; + if (current) return; transition_in(pulledfilecomponent.$$.fragment, local); current = true; }, @@ -43232,12 +42823,10 @@ function create_fragment9(ctx) { div10 = element("div"); textarea = element("textarea"); t8 = space(); - if (if_block0) - if_block0.c(); + if (if_block0) if_block0.c(); t9 = space(); div11 = element("div"); - if (if_block1) - if_block1.c(); + if (if_block1) if_block1.c(); attr(div0, "id", "backup-btn"); attr(div0, "data-icon", "arrow-up-circle"); attr(div0, "class", "clickable-icon nav-action-button"); @@ -43329,12 +42918,10 @@ function create_fragment9(ctx) { ctx[2] ); append2(div10, t8); - if (if_block0) - if_block0.m(div10, null); + if (if_block0) if_block0.m(div10, null); append2(main, t9); append2(main, div11); - if (if_block1) - if_block1.m(div11, null); + if (if_block1) if_block1.m(div11, null); current = true; if (!mounted) { dispose = [ @@ -43460,8 +43047,7 @@ function create_fragment9(ctx) { } }, i(local) { - if (current) - return; + if (current) return; transition_in(if_block1); current = true; }, @@ -43481,10 +43067,8 @@ function create_fragment9(ctx) { ctx[28](null); ctx[29](null); ctx[31](null); - if (if_block0) - if_block0.d(); - if (if_block1) - if_block1.d(); + if (if_block0) if_block0.d(); + if (if_block1) if_block1.d(); mounted = false; run_all(dispose); } @@ -43714,10 +43298,8 @@ function instance9($$self, $$props, $$invalidate) { const click_handler_3 = () => $$invalidate(12, changesOpen = !changesOpen); const click_handler_4 = () => $$invalidate(14, lastPulledFilesOpen = !lastPulledFilesOpen); $$self.$$set = ($$props2) => { - if ("plugin" in $$props2) - $$invalidate(0, plugin = $$props2.plugin); - if ("view" in $$props2) - $$invalidate(1, view = $$props2.view); + if ("plugin" in $$props2) $$invalidate(0, plugin = $$props2.plugin); + if ("view" in $$props2) $$invalidate(1, view = $$props2.view); }; $$self.$$.update = () => { if ($$self.$$.dirty[0] & /*layoutBtn, showTree*/ @@ -43731,8 +43313,7 @@ function instance9($$self, $$props, $$invalidate) { } if ($$self.$$.dirty[0] & /*commitMessage*/ 4) { - $: - $$invalidate(15, rows = (commitMessage.match(/\n/g) || []).length + 1 || 1); + $: $$invalidate(15, rows = (commitMessage.match(/\n/g) || []).length + 1 || 1); } }; return [ @@ -43934,12 +43515,13 @@ var ObsidianGit = class extends import_obsidian31.Plugin { id: "open-git-view", name: "Open source control view", callback: async () => { + var _a2; const leafs = this.app.workspace.getLeavesOfType( SOURCE_CONTROL_VIEW_CONFIG.type ); let leaf; if (leafs.length === 0) { - leaf = this.app.workspace.getRightLeaf(false); + leaf = (_a2 = this.app.workspace.getRightLeaf(false)) != null ? _a2 : this.app.workspace.getLeaf(); await leaf.setViewState({ type: SOURCE_CONTROL_VIEW_CONFIG.type }); @@ -43954,12 +43536,13 @@ var ObsidianGit = class extends import_obsidian31.Plugin { id: "open-history-view", name: "Open history view", callback: async () => { + var _a2; const leafs = this.app.workspace.getLeavesOfType( HISTORY_VIEW_CONFIG.type ); let leaf; if (leafs.length === 0) { - leaf = this.app.workspace.getRightLeaf(false); + leaf = (_a2 = this.app.workspace.getRightLeaf(false)) != null ? _a2 : this.app.workspace.getLeaf(); await leaf.setViewState({ type: HISTORY_VIEW_CONFIG.type }); @@ -44005,8 +43588,7 @@ var ObsidianGit = class extends import_obsidian31.Plugin { id: "view-history-on-github", name: "Open file history on GitHub", editorCallback: (_, { file }) => { - if (file) - return openHistoryInGitHub(file, this.gitManager); + if (file) return openHistoryInGitHub(file, this.gitManager); } }); this.addCommand({ @@ -44032,15 +43614,7 @@ var ObsidianGit = class extends import_obsidian31.Plugin { if (checking) { return file !== null; } else { - this.app.vault.adapter.append( - this.gitManager.getRelativeVaultPath(".gitignore"), - "\n" + this.gitManager.getRelativeRepoPath( - file.path, - true - ) - ).then(() => { - this.refresh(); - }); + this.addFileToGitignore(file); } } }); @@ -44203,8 +43777,7 @@ var ObsidianGit = class extends import_obsidian31.Plugin { id: "list-changed-files", name: "List changed files", callback: async () => { - if (!await this.isAllInitialized()) - return; + if (!await this.isAllInitialized()) return; const status2 = await this.gitManager.status(); console.log(status2); this.setState(0 /* idle */); @@ -44240,8 +43813,7 @@ var ObsidianGit = class extends import_obsidian31.Plugin { id: "discard-all", name: "CAUTION: Discard all changes", callback: async () => { - if (!await this.isAllInitialized()) - return false; + if (!await this.isAllInitialized()) return false; const modal = new GeneralModal({ options: ["NO", "YES"], placeholder: "Do you want to discard all changes to tracked files? This action cannot be undone.", @@ -44320,51 +43892,65 @@ var ObsidianGit = class extends import_obsidian31.Plugin { ); } } + async addFileToGitignore(file) { + await this.app.vault.adapter.append( + this.gitManager.getRelativeVaultPath(".gitignore"), + "\n" + this.gitManager.getRelativeRepoPath(file.path, true) + ); + this.refresh(); + } handleFileMenu(menu, file, source) { - if (!this.settings.showFileMenu) - return; - if (source !== "file-explorer-context-menu") { - return; - } - if (!file) { - return; - } - if (!this.gitReady) - return; - menu.addItem((item) => { - item.setTitle(`Git: Stage`).setIcon("plus-circle").setSection("action").onClick((_) => { - this.promiseQueue.addTask(async () => { - if (file instanceof import_obsidian31.TFile) { - await this.gitManager.stage(file.path, true); - } else { - await this.gitManager.stageAll({ - dir: this.gitManager.getRelativeRepoPath( - file.path, - true - ) - }); - } - this.displayMessage(`Staged ${file.path}`); + if (!this.gitReady) return; + if (!this.settings.showFileMenu) return; + if (!file) return; + if (this.settings.showFileMenu && source == "file-explorer-context-menu") { + menu.addItem((item) => { + item.setTitle(`Git: Stage`).setIcon("plus-circle").setSection("action").onClick((_) => { + this.promiseQueue.addTask(async () => { + if (file instanceof import_obsidian31.TFile) { + await this.gitManager.stage(file.path, true); + } else { + await this.gitManager.stageAll({ + dir: this.gitManager.getRelativeRepoPath( + file.path, + true + ) + }); + } + this.displayMessage(`Staged ${file.path}`); + }); }); }); - }); - menu.addItem((item) => { - item.setTitle(`Git: Unstage`).setIcon("minus-circle").setSection("action").onClick((_) => { - this.promiseQueue.addTask(async () => { - if (file instanceof import_obsidian31.TFile) { - await this.gitManager.unstage(file.path, true); - } else { - await this.gitManager.unstageAll({ - dir: this.gitManager.getRelativeRepoPath( - file.path, - true - ) - }); - } - this.displayMessage(`Unstaged ${file.path}`); + menu.addItem((item) => { + item.setTitle(`Git: Unstage`).setIcon("minus-circle").setSection("action").onClick((_) => { + this.promiseQueue.addTask(async () => { + if (file instanceof import_obsidian31.TFile) { + await this.gitManager.unstage(file.path, true); + } else { + await this.gitManager.unstageAll({ + dir: this.gitManager.getRelativeRepoPath( + file.path, + true + ) + }); + } + this.displayMessage(`Unstaged ${file.path}`); + }); }); }); - }); + menu.addItem((item) => { + item.setTitle(`Git: Add to .gitignore`).setIcon("file-x").setSection("action").onClick((_) => { + this.addFileToGitignore(file); + }); + }); + } + if (source == "git-source-control") { + menu.addItem((item) => { + item.setTitle(`Git: Add to .gitignore`).setIcon("file-x").setSection("action").onClick((_) => { + this.addFileToGitignore(file); + }); + }); + } } async migrateSettings() { if (this.settings.mergeOnPull != void 0) { @@ -44606,8 +44192,7 @@ var ObsidianGit = class extends import_obsidian31.Plugin { } ///Used for command async pullChangesFromRemote() { - if (!await this.isAllInitialized()) - return; + if (!await this.isAllInitialized()) return; const filesUpdated = await this.pull(); this.setUpAutoBackup(); if (filesUpdated === false) { @@ -44629,8 +44214,7 @@ var ObsidianGit = class extends import_obsidian31.Plugin { this.setState(0 /* idle */); } async createBackup(fromAutoBackup, requestCustomMessage = false, commitMessage) { - if (!await this.isAllInitialized()) - return; + if (!await this.isAllInitialized()) return; if (this.settings.syncMethod == "reset" && this.settings.pullBeforePush) { await this.pull(); } @@ -44661,8 +44245,7 @@ var ObsidianGit = class extends import_obsidian31.Plugin { commitMessage, amend = false }) { - if (!await this.isAllInitialized()) - return false; + if (!await this.isAllInitialized()) return false; let hadConflict = this.localStorage.getConflict(); let changedFiles; let status2; @@ -44788,8 +44371,7 @@ var ObsidianGit = class extends import_obsidian31.Plugin { return false; } async push() { - if (!await this.isAllInitialized()) - return false; + if (!await this.isAllInitialized()) return false; if (!await this.remotesAreSet()) { return false; } @@ -44867,8 +44449,7 @@ var ObsidianGit = class extends import_obsidian31.Plugin { } } async stageFile(file) { - if (!await this.isAllInitialized()) - return false; + if (!await this.isAllInitialized()) return false; await this.gitManager.stage(file.path, true); this.displayMessage(`Staged ${file.path}`); dispatchEvent(new CustomEvent("git-refresh")); @@ -44876,8 +44457,7 @@ var ObsidianGit = class extends import_obsidian31.Plugin { return true; } async unstageFile(file) { - if (!await this.isAllInitialized()) - return false; + if (!await this.isAllInitialized()) return false; await this.gitManager.unstage(file.path, true); this.displayMessage(`Unstaged ${file.path}`); dispatchEvent(new CustomEvent("git-refresh")); @@ -44886,8 +44466,7 @@ var ObsidianGit = class extends import_obsidian31.Plugin { } async switchBranch() { var _a2; - if (!await this.isAllInitialized()) - return; + if (!await this.isAllInitialized()) return; const branchInfo = await this.gitManager.branchInfo(); const selectedBranch = await new BranchModal( branchInfo.branches @@ -44901,8 +44480,7 @@ var ObsidianGit = class extends import_obsidian31.Plugin { } async switchRemoteBranch() { var _a2; - if (!await this.isAllInitialized()) - return; + if (!await this.isAllInitialized()) return; const selectedBranch = await this.selectRemoteBranch() || ""; const [remote, branch2] = splitRemoteBranch(selectedBranch); if (branch2 != void 0 && remote != void 0) { @@ -44914,8 +44492,7 @@ var ObsidianGit = class extends import_obsidian31.Plugin { } async createBranch() { var _a2; - if (!await this.isAllInitialized()) - return; + if (!await this.isAllInitialized()) return; const newBranch = await new GeneralModal({ placeholder: "Create new branch" }).open(); @@ -44928,11 +44505,9 @@ var ObsidianGit = class extends import_obsidian31.Plugin { } async deleteBranch() { var _a2; - if (!await this.isAllInitialized()) - return; + if (!await this.isAllInitialized()) return; const branchInfo = await this.gitManager.branchInfo(); - if (branchInfo.current) - branchInfo.branches.remove(branchInfo.current); + if (branchInfo.current) branchInfo.branches.remove(branchInfo.current); const branch2 = await new GeneralModal({ options: branchInfo.branches, placeholder: "Delete branch", @@ -45054,8 +44629,7 @@ var ObsidianGit = class extends import_obsidian31.Plugin { ); } } else { - if (time > 2147483647) - time = 2147483647; + if (time > 2147483647) time = 2147483647; this.timeoutIDBackup = window.setTimeout( () => this.doAutoBackup(), time @@ -45077,8 +44651,7 @@ var ObsidianGit = class extends import_obsidian31.Plugin { } startAutoPull(minutes) { let time = (minutes != null ? minutes : this.settings.autoPullInterval) * 6e4; - if (time > 2147483647) - time = 2147483647; + if (time > 2147483647) time = 2147483647; this.timeoutIDPull = window.setTimeout(() => { this.promiseQueue.addTask(() => this.pullChangesFromRemote()); this.saveLastAuto(/* @__PURE__ */ new Date(), "pull"); @@ -45088,8 +44661,7 @@ var ObsidianGit = class extends import_obsidian31.Plugin { } startAutoPush(minutes) { let time = (minutes != null ? minutes : this.settings.autoPushInterval) * 6e4; - if (time > 2147483647) - time = 2147483647; + if (time > 2147483647) time = 2147483647; this.timeoutIDPush = window.setTimeout(() => { this.promiseQueue.addTask(() => this.push()); this.saveLastAuto(/* @__PURE__ */ new Date(), "push"); @@ -45168,8 +44740,7 @@ I strongly recommend to use "Source mode" for viewing the conflicted files. For this.writeAndOpenFile(lines == null ? void 0 : lines.join("\n")); } async editRemotes() { - if (!await this.isAllInitialized()) - return; + if (!await this.isAllInitialized()) return; const remotes = await this.gitManager.getRemotes(); const nameModal = new GeneralModal({ options: remotes, @@ -45212,8 +44783,7 @@ I strongly recommend to use "Source mode" for viewing the conflicted files. For } } async removeRemote() { - if (!await this.isAllInitialized()) - return; + if (!await this.isAllInitialized()) return; const remotes = await this.gitManager.getRemotes(); const nameModal = new GeneralModal({ options: remotes, @@ -45240,8 +44810,7 @@ I strongly recommend to use "Source mode" for viewing the conflicted files. For } handleViewActiveState(leaf) { var _a2, _b; - if (!(leaf == null ? void 0 : leaf.view.getState().file)) - return; + if (!(leaf == null ? void 0 : leaf.view.getState().file)) return; const sourceControlLeaf = this.app.workspace.getLeavesOfType(SOURCE_CONTROL_VIEW_CONFIG.type).first(); const historyLeaf = this.app.workspace.getLeavesOfType(HISTORY_VIEW_CONFIG.type).first(); (_a2 = sourceControlLeaf == null ? void 0 : sourceControlLeaf.view.containerEl.querySelector(`div.nav-file-title.is-active`)) == null ? void 0 : _a2.removeClass("is-active"); diff --git a/content/.obsidian/plugins/obsidian-git/manifest.json b/content/.obsidian/plugins/obsidian-git/manifest.json index 91dde32c..3179c1e6 100644 --- a/content/.obsidian/plugins/obsidian-git/manifest.json +++ b/content/.obsidian/plugins/obsidian-git/manifest.json @@ -1,9 +1,10 @@ { + "author": "Vinzent", + "authorUrl": "https://github.com/Vinzent03", "id": "obsidian-git", "name": "Git", - "description": "Backup your vault with Git.", + "description": "Integrate Git version control with automatic backup and other advanced features.", "isDesktopOnly": false, "fundingUrl": "https://ko-fi.com/vinzent", - "js": "main.js", - "version": "2.24.3" + "version": "2.25.0" } diff --git a/content/.obsidian/plugins/obsidian-git/styles.css b/content/.obsidian/plugins/obsidian-git/styles.css index 71a55ea3..d5ad0cc4 100644 --- a/content/.obsidian/plugins/obsidian-git/styles.css +++ b/content/.obsidian/plugins/obsidian-git/styles.css @@ -77,6 +77,10 @@ height: auto; } +.is-active .git-tools .buttons > * { + color: var(--nav-item-color-active); +} + .git-author { color: var(--text-accent); } @@ -550,7 +554,7 @@ white-space: pre; /* Keep spaces and do not collapse them. */ } -@media(max-width:800px){ +@media (max-width: 800px) { /* hide git blame gutter not to superpose text */ .cm-gutterElement.obs-git-blame-gutter { display: none; diff --git a/content/.obsidian/plugins/obsidian-zotero-desktop-connector/main.js b/content/.obsidian/plugins/obsidian-zotero-desktop-connector/main.js deleted file mode 100644 index 615c621a..00000000 --- a/content/.obsidian/plugins/obsidian-zotero-desktop-connector/main.js +++ /dev/null @@ -1,191 +0,0 @@ -var aT=Object.create;var Yr=Object.defineProperty;var nT=Object.getOwnPropertyDescriptor;var iT=Object.getOwnPropertyNames;var rT=Object.getPrototypeOf,oT=Object.prototype.hasOwnProperty;var O=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),sT=(e,t)=>{for(var a in t)Yr(e,a,{get:t[a],enumerable:!0})},Tm=(e,t,a,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of iT(t))!oT.call(e,i)&&i!==a&&Yr(e,i,{get:()=>t[i],enumerable:!(n=nT(t,i))||n.enumerable});return e};var _e=(e,t,a)=>(a=e!=null?aT(rT(e)):{},Tm(t||!e||!e.__esModule?Yr(a,"default",{value:e,enumerable:!0}):a,e)),lT=e=>Tm(Yr({},"__esModule",{value:!0}),e);var Rm=O((hD,Om)=>{Om.exports=Pm;Pm.sync=uT;var km=require("fs");function cT(e,t){var a=t.pathExt!==void 0?t.pathExt:process.env.PATHEXT;if(!a||(a=a.split(";"),a.indexOf("")!==-1))return!0;for(var n=0;n{Lm.exports=Nm;Nm.sync=pT;var Bm=require("fs");function Nm(e,t,a){Bm.stat(e,function(n,i){a(n,n?!1:jm(i,t))})}function pT(e,t){return jm(Bm.statSync(e),t)}function jm(e,t){return e.isFile()&&dT(e,t)}function dT(e,t){var a=e.mode,n=e.uid,i=e.gid,r=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),o=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),s=parseInt("100",8),l=parseInt("010",8),u=parseInt("001",8),c=s|l,f=a&u||a&l&&i===o||a&s&&n===r||a&c&&r===0;return f}});var Mc=O((gD,Dm)=>{var bD=require("fs"),Kr;process.platform==="win32"||global.TESTING_WINDOWS?Kr=Rm():Kr=Mm();Dm.exports=Lc;Lc.sync=fT;function Lc(e,t,a){if(typeof t=="function"&&(a=t,t={}),!a){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,i){Lc(e,t||{},function(r,o){r?i(r):n(o)})})}Kr(e,t||{},function(n,i){n&&(n.code==="EACCES"||t&&t.ignoreErrors)&&(n=null,i=!1),a(n,i)})}function fT(e,t){try{return Kr.sync(e,t||{})}catch(a){if(t&&t.ignoreErrors||a.code==="EACCES")return!1;throw a}}});var Jm=O((xD,Um)=>{var Cn=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",zm=require("path"),mT=Cn?";":":",Gm=Mc(),Hm=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),Wm=(e,t)=>{let a=t.colon||mT,n=e.match(/\//)||Cn&&e.match(/\\/)?[""]:[...Cn?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(a)],i=Cn?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",r=Cn?i.split(a):[""];return Cn&&e.indexOf(".")!==-1&&r[0]!==""&&r.unshift(""),{pathEnv:n,pathExt:r,pathExtExe:i}},Vm=(e,t,a)=>{typeof t=="function"&&(a=t,t={}),t||(t={});let{pathEnv:n,pathExt:i,pathExtExe:r}=Wm(e,t),o=[],s=u=>new Promise((c,f)=>{if(u===n.length)return t.all&&o.length?c(o):f(Hm(e));let p=n[u],b=/^".*"$/.test(p)?p.slice(1,-1):p,d=zm.join(b,e),m=!b&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d;c(l(m,u,0))}),l=(u,c,f)=>new Promise((p,b)=>{if(f===i.length)return p(s(c+1));let d=i[f];Gm(u+d,{pathExt:r},(m,h)=>{if(!m&&h)if(t.all)o.push(u+d);else return p(u+d);return p(l(u,c,f+1))})});return a?s(0).then(u=>a(null,u),a):s(0)},hT=(e,t)=>{t=t||{};let{pathEnv:a,pathExt:n,pathExtExe:i}=Wm(e,t),r=[];for(let o=0;o{"use strict";var Zm=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};Dc.exports=Zm;Dc.exports.default=Zm});var Ym=O((wD,$m)=>{"use strict";var qm=require("path"),vT=Jm(),bT=zc();function Xm(e,t){let a=e.options.env||process.env,n=process.cwd(),i=e.options.cwd!=null,r=i&&process.chdir!==void 0&&!process.chdir.disabled;if(r)try{process.chdir(e.options.cwd)}catch(s){}let o;try{o=vT.sync(e.command,{path:a[bT({env:a})],pathExt:t?qm.delimiter:void 0})}catch(s){}finally{r&&process.chdir(n)}return o&&(o=qm.resolve(i?e.options.cwd:"",o)),o}function gT(e){return Xm(e)||Xm(e,!0)}$m.exports=gT});var Km=O((ED,Hc)=>{"use strict";var Gc=/([()\][%!^"`<>&|;, *?])/g;function xT(e){return e=e.replace(Gc,"^$1"),e}function yT(e,t){return e=`${e}`,e=e.replace(/(\\*)"/g,'$1$1\\"'),e=e.replace(/(\\*)$/,"$1$1"),e=`"${e}"`,e=e.replace(Gc,"^$1"),t&&(e=e.replace(Gc,"^$1")),e}Hc.exports.command=xT;Hc.exports.argument=yT});var eh=O((SD,Qm)=>{"use strict";Qm.exports=/^#!(.*)/});var ah=O((CD,th)=>{"use strict";var wT=eh();th.exports=(e="")=>{let t=e.match(wT);if(!t)return null;let[a,n]=t[0].replace(/#! ?/,"").split(" "),i=a.split("/").pop();return i==="env"?n:n?`${i} ${n}`:i}});var ih=O((AD,nh)=>{"use strict";var Wc=require("fs"),ET=ah();function ST(e){let a=Buffer.alloc(150),n;try{n=Wc.openSync(e,"r"),Wc.readSync(n,a,0,150,0),Wc.closeSync(n)}catch(i){}return ET(a.toString())}nh.exports=ST});var lh=O((ID,sh)=>{"use strict";var CT=require("path"),rh=Ym(),oh=Km(),AT=ih(),IT=process.platform==="win32",_T=/\.(?:com|exe)$/i,TT=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function kT(e){e.file=rh(e);let t=e.file&&AT(e.file);return t?(e.args.unshift(e.file),e.command=t,rh(e)):e.file}function FT(e){if(!IT)return e;let t=kT(e),a=!_T.test(t);if(e.options.forceShell||a){let n=TT.test(t);e.command=CT.normalize(e.command),e.command=oh.command(e.command),e.args=e.args.map(r=>oh.argument(r,n));let i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function PT(e,t,a){t&&!Array.isArray(t)&&(a=t,t=null),t=t?t.slice(0):[],a=Object.assign({},a);let n={command:e,args:t,options:a,file:void 0,original:{command:e,args:t}};return a.shell?n:FT(n)}sh.exports=PT});var ph=O((_D,uh)=>{"use strict";var Vc=process.platform==="win32";function Uc(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function OT(e,t){if(!Vc)return;let a=e.emit;e.emit=function(n,i){if(n==="exit"){let r=ch(i,t,"spawn");if(r)return a.call(e,"error",r)}return a.apply(e,arguments)}}function ch(e,t){return Vc&&e===1&&!t.file?Uc(t.original,"spawn"):null}function RT(e,t){return Vc&&e===1&&!t.file?Uc(t.original,"spawnSync"):null}uh.exports={hookChildProcess:OT,verifyENOENT:ch,verifyENOENTSync:RT,notFoundError:Uc}});var qc=O((TD,An)=>{"use strict";var dh=require("child_process"),Jc=lh(),Zc=ph();function fh(e,t,a){let n=Jc(e,t,a),i=dh.spawn(n.command,n.args,n.options);return Zc.hookChildProcess(i,n),i}function BT(e,t,a){let n=Jc(e,t,a),i=dh.spawnSync(n.command,n.args,n.options);return i.error=i.error||Zc.verifyENOENTSync(i.status,n),i}An.exports=fh;An.exports.spawn=fh;An.exports.sync=BT;An.exports._parse=Jc;An.exports._enoent=Zc});var hh=O((kD,mh)=>{"use strict";mh.exports=e=>{let t=typeof e=="string"?` -`:` -`.charCodeAt(),a=typeof e=="string"?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e[e.length-1]===a&&(e=e.slice(0,e.length-1)),e}});var gh=O((FD,ki)=>{"use strict";var Ti=require("path"),vh=zc(),bh=e=>{e={cwd:process.cwd(),path:process.env[vh()],execPath:process.execPath,...e};let t,a=Ti.resolve(e.cwd),n=[];for(;t!==a;)n.push(Ti.join(a,"node_modules/.bin")),t=a,a=Ti.resolve(a,"..");let i=Ti.resolve(e.cwd,e.execPath,"..");return n.push(i),n.concat(e.path).join(Ti.delimiter)};ki.exports=bh;ki.exports.default=bh;ki.exports.env=e=>{e={env:process.env,...e};let t={...e.env},a=vh({env:t});return e.path=t[a],t[a]=ki.exports(e),t}});var yh=O((PD,Xc)=>{"use strict";var xh=(e,t)=>{for(let a of Reflect.ownKeys(t))Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a));return e};Xc.exports=xh;Xc.exports.default=xh});var Eh=O((OD,eo)=>{"use strict";var NT=yh(),Qr=new WeakMap,wh=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let a,n=0,i=e.displayName||e.name||"",r=function(...o){if(Qr.set(r,++n),n===1)a=e.apply(this,o),e=null;else if(t.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return a};return NT(r,e),Qr.set(r,n),r};eo.exports=wh;eo.exports.default=wh;eo.exports.callCount=e=>{if(!Qr.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Qr.get(e)}});var Sh=O(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.SIGNALS=void 0;var jT=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];to.SIGNALS=jT});var $c=O(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.SIGRTMAX=In.getRealtimeSignals=void 0;var LT=function(){let e=Ah-Ch+1;return Array.from({length:e},MT)};In.getRealtimeSignals=LT;var MT=function(e,t){return{name:`SIGRT${t+1}`,number:Ch+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},Ch=34,Ah=64;In.SIGRTMAX=Ah});var Ih=O(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.getSignals=void 0;var DT=require("os"),zT=Sh(),GT=$c(),HT=function(){let e=(0,GT.getRealtimeSignals)();return[...zT.SIGNALS,...e].map(WT)};ao.getSignals=HT;var WT=function({name:e,number:t,description:a,action:n,forced:i=!1,standard:r}){let{signals:{[e]:o}}=DT.constants,s=o!==void 0;return{name:e,number:s?o:t,description:a,supported:s,action:n,forced:i,standard:r}}});var Th=O(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.signalsByNumber=_n.signalsByName=void 0;var VT=require("os"),_h=Ih(),UT=$c(),JT=function(){return(0,_h.getSignals)().reduce(ZT,{})},ZT=function(e,{name:t,number:a,description:n,supported:i,action:r,forced:o,standard:s}){return{...e,[t]:{name:t,number:a,description:n,supported:i,action:r,forced:o,standard:s}}},qT=JT();_n.signalsByName=qT;var XT=function(){let e=(0,_h.getSignals)(),t=UT.SIGRTMAX+1,a=Array.from({length:t},(n,i)=>$T(i,e));return Object.assign({},...a)},$T=function(e,t){let a=YT(e,t);if(a===void 0)return{};let{name:n,description:i,supported:r,action:o,forced:s,standard:l}=a;return{[e]:{name:n,number:e,description:i,supported:r,action:o,forced:s,standard:l}}},YT=function(e,t){let a=t.find(({name:n})=>VT.constants.signals[n]===e);return a!==void 0?a:t.find(n=>n.number===e)},KT=XT();_n.signalsByNumber=KT});var Fh=O((LD,kh)=>{"use strict";var{signalsByName:QT}=Th(),e4=({timedOut:e,timeout:t,errorCode:a,signal:n,signalDescription:i,exitCode:r,isCanceled:o})=>e?`timed out after ${t} milliseconds`:o?"was canceled":a!==void 0?`failed with ${a}`:n!==void 0?`was killed with ${n} (${i})`:r!==void 0?`failed with exit code ${r}`:"failed",t4=({stdout:e,stderr:t,all:a,error:n,signal:i,exitCode:r,command:o,escapedCommand:s,timedOut:l,isCanceled:u,killed:c,parsed:{options:{timeout:f}}})=>{r=r===null?void 0:r,i=i===null?void 0:i;let p=i===void 0?void 0:QT[i].description,b=n&&n.code,m=`Command ${e4({timedOut:l,timeout:f,errorCode:b,signal:i,signalDescription:p,exitCode:r,isCanceled:u})}: ${o}`,h=Object.prototype.toString.call(n)==="[object Error]",v=h?`${m} -${n.message}`:m,x=[v,t,e].filter(Boolean).join(` -`);return h?(n.originalMessage=n.message,n.message=x):n=new Error(x),n.shortMessage=v,n.command=o,n.escapedCommand=s,n.exitCode=r,n.signal=i,n.signalDescription=p,n.stdout=e,n.stderr=t,a!==void 0&&(n.all=a),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=u,n.killed=c&&!l,n};kh.exports=t4});var Oh=O((MD,Yc)=>{"use strict";var no=["stdin","stdout","stderr"],a4=e=>no.some(t=>e[t]!==void 0),Ph=e=>{if(!e)return;let{stdio:t}=e;if(t===void 0)return no.map(n=>e[n]);if(a4(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${no.map(n=>`\`${n}\``).join(", ")}`);if(typeof t=="string")return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let a=Math.max(t.length,no.length);return Array.from({length:a},(n,i)=>t[i])};Yc.exports=Ph;Yc.exports.node=e=>{let t=Ph(e);return t==="ipc"?"ipc":t===void 0||typeof t=="string"?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]}});var Rh=O((DD,io)=>{io.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&io.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&io.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var eu=O((zD,Fn)=>{var Ge=global.process,qa=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};qa(Ge)?(Bh=require("assert"),Tn=Rh(),Nh=/^win/i.test(Ge.platform),Fi=require("events"),typeof Fi!="function"&&(Fi=Fi.EventEmitter),Ge.__signal_exit_emitter__?at=Ge.__signal_exit_emitter__:(at=Ge.__signal_exit_emitter__=new Fi,at.count=0,at.emitted={}),at.infinite||(at.setMaxListeners(1/0),at.infinite=!0),Fn.exports=function(e,t){if(!qa(global.process))return function(){};Bh.equal(typeof e,"function","a callback must be provided for exit handler"),kn===!1&&Kc();var a="exit";t&&t.alwaysLast&&(a="afterexit");var n=function(){at.removeListener(a,e),at.listeners("exit").length===0&&at.listeners("afterexit").length===0&&ro()};return at.on(a,e),n},ro=function(){!kn||!qa(global.process)||(kn=!1,Tn.forEach(function(t){try{Ge.removeListener(t,oo[t])}catch(a){}}),Ge.emit=so,Ge.reallyExit=Qc,at.count-=1)},Fn.exports.unload=ro,Xa=function(t,a,n){at.emitted[t]||(at.emitted[t]=!0,at.emit(t,a,n))},oo={},Tn.forEach(function(e){oo[e]=function(){if(qa(global.process)){var a=Ge.listeners(e);a.length===at.count&&(ro(),Xa("exit",null,e),Xa("afterexit",null,e),Nh&&e==="SIGHUP"&&(e="SIGINT"),Ge.kill(Ge.pid,e))}}}),Fn.exports.signals=function(){return Tn},kn=!1,Kc=function(){kn||!qa(global.process)||(kn=!0,at.count+=1,Tn=Tn.filter(function(t){try{return Ge.on(t,oo[t]),!0}catch(a){return!1}}),Ge.emit=Lh,Ge.reallyExit=jh)},Fn.exports.load=Kc,Qc=Ge.reallyExit,jh=function(t){qa(global.process)&&(Ge.exitCode=t||0,Xa("exit",Ge.exitCode,null),Xa("afterexit",Ge.exitCode,null),Qc.call(Ge,Ge.exitCode))},so=Ge.emit,Lh=function(t,a){if(t==="exit"&&qa(global.process)){a!==void 0&&(Ge.exitCode=a);var n=so.apply(this,arguments);return Xa("exit",Ge.exitCode,null),Xa("afterexit",Ge.exitCode,null),n}else return so.apply(this,arguments)}):Fn.exports=function(){return function(){}};var Bh,Tn,Nh,Fi,at,ro,Xa,oo,kn,Kc,Qc,jh,so,Lh});var Dh=O((GD,Mh)=>{"use strict";var n4=require("os"),i4=eu(),r4=1e3*5,o4=(e,t="SIGTERM",a={})=>{let n=e(t);return s4(e,t,a,n),n},s4=(e,t,a,n)=>{if(!l4(t,a,n))return;let i=u4(a),r=setTimeout(()=>{e("SIGKILL")},i);r.unref&&r.unref()},l4=(e,{forceKillAfterTimeout:t},a)=>c4(e)&&t!==!1&&a,c4=e=>e===n4.constants.signals.SIGTERM||typeof e=="string"&&e.toUpperCase()==="SIGTERM",u4=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return r4;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},p4=(e,t)=>{e.kill()&&(t.isCanceled=!0)},d4=(e,t,a)=>{e.kill(t),a(Object.assign(new Error("Timed out"),{timedOut:!0,signal:t}))},f4=(e,{timeout:t,killSignal:a="SIGTERM"},n)=>{if(t===0||t===void 0)return n;let i,r=new Promise((s,l)=>{i=setTimeout(()=>{d4(e,a,l)},t)}),o=n.finally(()=>{clearTimeout(i)});return Promise.race([r,o])},m4=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},h4=async(e,{cleanup:t,detached:a},n)=>{if(!t||a)return n;let i=i4(()=>{e.kill()});return n.finally(()=>{i()})};Mh.exports={spawnedKill:o4,spawnedCancel:p4,setupTimeout:f4,validateTimeout:m4,setExitHandler:h4}});var Gh=O((HD,zh)=>{"use strict";var Xt=e=>e!==null&&typeof e=="object"&&typeof e.pipe=="function";Xt.writable=e=>Xt(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object";Xt.readable=e=>Xt(e)&&e.readable!==!1&&typeof e._read=="function"&&typeof e._readableState=="object";Xt.duplex=e=>Xt.writable(e)&&Xt.readable(e);Xt.transform=e=>Xt.duplex(e)&&typeof e._transform=="function";zh.exports=Xt});var Wh=O((WD,Hh)=>{"use strict";var{PassThrough:v4}=require("stream");Hh.exports=e=>{e={...e};let{array:t}=e,{encoding:a}=e,n=a==="buffer",i=!1;t?i=!(a||n):a=a||"utf8",n&&(a=null);let r=new v4({objectMode:i});a&&r.setEncoding(a);let o=0,s=[];return r.on("data",l=>{s.push(l),i?o=s.length:o+=l.length}),r.getBufferedValue=()=>t?s:n?Buffer.concat(s,o):s.join(""),r.getBufferedLength=()=>o,r}});var Vh=O((VD,Pi)=>{"use strict";var{constants:b4}=require("buffer"),g4=require("stream"),{promisify:x4}=require("util"),y4=Wh(),w4=x4(g4.pipeline),lo=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function tu(e,t){if(!e)throw new Error("Expected a stream");t={maxBuffer:1/0,...t};let{maxBuffer:a}=t,n=y4(t);return await new Promise((i,r)=>{let o=s=>{s&&n.getBufferedLength()<=b4.MAX_LENGTH&&(s.bufferedData=n.getBufferedValue()),r(s)};(async()=>{try{await w4(e,n),i()}catch(s){o(s)}})(),n.on("data",()=>{n.getBufferedLength()>a&&o(new lo)})}),n.getBufferedValue()}Pi.exports=tu;Pi.exports.buffer=(e,t)=>tu(e,{...t,encoding:"buffer"});Pi.exports.array=(e,t)=>tu(e,{...t,array:!0});Pi.exports.MaxBufferError=lo});var au=O((UD,Uh)=>{"use strict";var{PassThrough:E4}=require("stream");Uh.exports=function(){var e=[],t=new E4({objectMode:!0});return t.setMaxListeners(0),t.add=a,t.isEmpty=n,t.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(a),t;function a(r){return Array.isArray(r)?(r.forEach(a),this):(e.push(r),r.once("end",i.bind(null,r)),r.once("error",t.emit.bind(t,"error")),r.pipe(t,{end:!1}),this)}function n(){return e.length==0}function i(r){e=e.filter(function(o){return o!==r}),!e.length&&t.readable&&t.end()}}});var Xh=O((JD,qh)=>{"use strict";var Zh=Gh(),Jh=Vh(),S4=au(),C4=(e,t)=>{t===void 0||e.stdin===void 0||(Zh(t)?t.pipe(e.stdin):e.stdin.end(t))},A4=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let a=S4();return e.stdout&&a.add(e.stdout),e.stderr&&a.add(e.stderr),a},nu=async(e,t)=>{if(e){e.destroy();try{return await t}catch(a){return a.bufferedData}}},iu=(e,{encoding:t,buffer:a,maxBuffer:n})=>{if(!(!e||!a))return t?Jh(e,{encoding:t,maxBuffer:n}):Jh.buffer(e,{maxBuffer:n})},I4=async({stdout:e,stderr:t,all:a},{encoding:n,buffer:i,maxBuffer:r},o)=>{let s=iu(e,{encoding:n,buffer:i,maxBuffer:r}),l=iu(t,{encoding:n,buffer:i,maxBuffer:r}),u=iu(a,{encoding:n,buffer:i,maxBuffer:r*2});try{return await Promise.all([o,s,l,u])}catch(c){return Promise.all([{error:c,signal:c.signal,timedOut:c.timedOut},nu(e,s),nu(t,l),nu(a,u)])}},_4=({input:e})=>{if(Zh(e))throw new TypeError("The `input` option cannot be a stream in sync mode")};qh.exports={handleInput:C4,makeAllStream:A4,getSpawnedResult:I4,validateInputSync:_4}});var Yh=O((ZD,$h)=>{"use strict";var T4=(async()=>{})().constructor.prototype,k4=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(T4,e)]),F4=(e,t)=>{for(let[a,n]of k4){let i=typeof t=="function"?(...r)=>Reflect.apply(n.value,t(),r):n.value.bind(t);Reflect.defineProperty(e,a,{...n,value:i})}return e},P4=e=>new Promise((t,a)=>{e.on("exit",(n,i)=>{t({exitCode:n,signal:i})}),e.on("error",n=>{a(n)}),e.stdin&&e.stdin.on("error",n=>{a(n)})});$h.exports={mergePromise:F4,getSpawnedPromise:P4}});var ev=O((qD,Qh)=>{"use strict";var Kh=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],O4=/^[\w.-]+$/,R4=/"/g,B4=e=>typeof e!="string"||O4.test(e)?e:`"${e.replace(R4,'\\"')}"`,N4=(e,t)=>Kh(e,t).join(" "),j4=(e,t)=>Kh(e,t).map(a=>B4(a)).join(" "),L4=/ +/g,M4=e=>{let t=[];for(let a of e.trim().split(L4)){let n=t[t.length-1];n&&n.endsWith("\\")?t[t.length-1]=`${n.slice(0,-1)} ${a}`:t.push(a)}return t};Qh.exports={joinCommand:N4,getEscapedCommand:j4,parseCommand:M4}});var sv=O((XD,Pn)=>{"use strict";var D4=require("path"),ru=require("child_process"),z4=qc(),G4=hh(),H4=gh(),W4=Eh(),co=Fh(),av=Oh(),{spawnedKill:V4,spawnedCancel:U4,setupTimeout:J4,validateTimeout:Z4,setExitHandler:q4}=Dh(),{handleInput:X4,getSpawnedResult:$4,makeAllStream:Y4,validateInputSync:K4}=Xh(),{mergePromise:tv,getSpawnedPromise:Q4}=Yh(),{joinCommand:nv,parseCommand:iv,getEscapedCommand:rv}=ev(),ek=1e3*1e3*100,tk=({env:e,extendEnv:t,preferLocal:a,localDir:n,execPath:i})=>{let r=t?{...process.env,...e}:e;return a?H4.env({env:r,cwd:n,execPath:i}):r},ov=(e,t,a={})=>{let n=z4._parse(e,t,a);return e=n.command,t=n.args,a=n.options,a={maxBuffer:ek,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:a.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...a},a.env=tk(a),a.stdio=av(a),process.platform==="win32"&&D4.basename(e,".exe")==="cmd"&&t.unshift("/q"),{file:e,args:t,options:a,parsed:n}},Oi=(e,t,a)=>typeof t!="string"&&!Buffer.isBuffer(t)?a===void 0?void 0:"":e.stripFinalNewline?G4(t):t,uo=(e,t,a)=>{let n=ov(e,t,a),i=nv(e,t),r=rv(e,t);Z4(n.options);let o;try{o=ru.spawn(n.file,n.args,n.options)}catch(b){let d=new ru.ChildProcess,m=Promise.reject(co({error:b,stdout:"",stderr:"",all:"",command:i,escapedCommand:r,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return tv(d,m)}let s=Q4(o),l=J4(o,n.options,s),u=q4(o,n.options,l),c={isCanceled:!1};o.kill=V4.bind(null,o.kill.bind(o)),o.cancel=U4.bind(null,o,c);let p=W4(async()=>{let[{error:b,exitCode:d,signal:m,timedOut:h},v,x,E]=await $4(o,n.options,u),g=Oi(n.options,v),w=Oi(n.options,x),C=Oi(n.options,E);if(b||d!==0||m!==null){let y=co({error:b,exitCode:d,signal:m,stdout:g,stderr:w,all:C,command:i,escapedCommand:r,parsed:n,timedOut:h,isCanceled:c.isCanceled,killed:o.killed});if(!n.options.reject)return y;throw y}return{command:i,escapedCommand:r,exitCode:0,stdout:g,stderr:w,all:C,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return X4(o,n.options.input),o.all=Y4(o,n.options),tv(o,p)};Pn.exports=uo;Pn.exports.sync=(e,t,a)=>{let n=ov(e,t,a),i=nv(e,t),r=rv(e,t);K4(n.options);let o;try{o=ru.spawnSync(n.file,n.args,n.options)}catch(u){throw co({error:u,stdout:"",stderr:"",all:"",command:i,escapedCommand:r,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let s=Oi(n.options,o.stdout,o.error),l=Oi(n.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let u=co({stdout:s,stderr:l,error:o.error,signal:o.signal,exitCode:o.status,command:i,escapedCommand:r,parsed:n,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!n.options.reject)return u;throw u}return{command:i,escapedCommand:r,exitCode:0,stdout:s,stderr:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};Pn.exports.command=(e,t)=>{let[a,...n]=iv(e);return uo(a,n,t)};Pn.exports.commandSync=(e,t)=>{let[a,...n]=iv(e);return uo.sync(a,n,t)};Pn.exports.node=(e,t,a={})=>{t&&!Array.isArray(t)&&typeof t=="object"&&(a=t,t=[]);let n=av.node(a),i=process.execArgv.filter(s=>!s.startsWith("--inspect")),{nodePath:r=process.execPath,nodeOptions:o=i}=a;return uo(r,[...o,e,...Array.isArray(t)?t:[]],{...a,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})}});var o0=O((Eo,r0)=>{"use strict";Eo.__esModule=!0;Eo.default={scheme:"threezerotwofour",author:"jan t. sott (http://github.com/idleberg)",base00:"#090300",base01:"#3a3432",base02:"#4a4543",base03:"#5c5855",base04:"#807d7c",base05:"#a5a2a2",base06:"#d6d5d4",base07:"#f7f7f7",base08:"#db2d20",base09:"#e8bbd0",base0A:"#fded02",base0B:"#01a252",base0C:"#b5e4f4",base0D:"#01a0e4",base0E:"#a16a94",base0F:"#cdab53"};r0.exports=Eo.default});var l0=O((So,s0)=>{"use strict";So.__esModule=!0;So.default={scheme:"apathy",author:"jannik siebert (https://github.com/janniks)",base00:"#031A16",base01:"#0B342D",base02:"#184E45",base03:"#2B685E",base04:"#5F9C92",base05:"#81B5AC",base06:"#A7CEC8",base07:"#D2E7E4",base08:"#3E9688",base09:"#3E7996",base0A:"#3E4C96",base0B:"#883E96",base0C:"#963E4C",base0D:"#96883E",base0E:"#4C963E",base0F:"#3E965B"};s0.exports=So.default});var u0=O((Co,c0)=>{"use strict";Co.__esModule=!0;Co.default={scheme:"ashes",author:"jannik siebert (https://github.com/janniks)",base00:"#1C2023",base01:"#393F45",base02:"#565E65",base03:"#747C84",base04:"#ADB3BA",base05:"#C7CCD1",base06:"#DFE2E5",base07:"#F3F4F5",base08:"#C7AE95",base09:"#C7C795",base0A:"#AEC795",base0B:"#95C7AE",base0C:"#95AEC7",base0D:"#AE95C7",base0E:"#C795AE",base0F:"#C79595"};c0.exports=Co.default});var d0=O((Ao,p0)=>{"use strict";Ao.__esModule=!0;Ao.default={scheme:"atelier dune",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune)",base00:"#20201d",base01:"#292824",base02:"#6e6b5e",base03:"#7d7a68",base04:"#999580",base05:"#a6a28c",base06:"#e8e4cf",base07:"#fefbec",base08:"#d73737",base09:"#b65611",base0A:"#cfb017",base0B:"#60ac39",base0C:"#1fad83",base0D:"#6684e1",base0E:"#b854d4",base0F:"#d43552"};p0.exports=Ao.default});var m0=O((Io,f0)=>{"use strict";Io.__esModule=!0;Io.default={scheme:"atelier forest",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest)",base00:"#1b1918",base01:"#2c2421",base02:"#68615e",base03:"#766e6b",base04:"#9c9491",base05:"#a8a19f",base06:"#e6e2e0",base07:"#f1efee",base08:"#f22c40",base09:"#df5320",base0A:"#d5911a",base0B:"#5ab738",base0C:"#00ad9c",base0D:"#407ee7",base0E:"#6666ea",base0F:"#c33ff3"};f0.exports=Io.default});var v0=O((_o,h0)=>{"use strict";_o.__esModule=!0;_o.default={scheme:"atelier heath",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath)",base00:"#1b181b",base01:"#292329",base02:"#695d69",base03:"#776977",base04:"#9e8f9e",base05:"#ab9bab",base06:"#d8cad8",base07:"#f7f3f7",base08:"#ca402b",base09:"#a65926",base0A:"#bb8a35",base0B:"#379a37",base0C:"#159393",base0D:"#516aec",base0E:"#7b59c0",base0F:"#cc33cc"};h0.exports=_o.default});var g0=O((To,b0)=>{"use strict";To.__esModule=!0;To.default={scheme:"atelier lakeside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside/)",base00:"#161b1d",base01:"#1f292e",base02:"#516d7b",base03:"#5a7b8c",base04:"#7195a8",base05:"#7ea2b4",base06:"#c1e4f6",base07:"#ebf8ff",base08:"#d22d72",base09:"#935c25",base0A:"#8a8a0f",base0B:"#568c3b",base0C:"#2d8f6f",base0D:"#257fad",base0E:"#5d5db1",base0F:"#b72dd2"};b0.exports=To.default});var y0=O((ko,x0)=>{"use strict";ko.__esModule=!0;ko.default={scheme:"atelier seaside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside/)",base00:"#131513",base01:"#242924",base02:"#5e6e5e",base03:"#687d68",base04:"#809980",base05:"#8ca68c",base06:"#cfe8cf",base07:"#f0fff0",base08:"#e6193c",base09:"#87711d",base0A:"#c3c322",base0B:"#29a329",base0C:"#1999b3",base0D:"#3d62f5",base0E:"#ad2bee",base0F:"#e619c3"};x0.exports=ko.default});var E0=O((Fo,w0)=>{"use strict";Fo.__esModule=!0;Fo.default={scheme:"bespin",author:"jan t. sott",base00:"#28211c",base01:"#36312e",base02:"#5e5d5c",base03:"#666666",base04:"#797977",base05:"#8a8986",base06:"#9d9b97",base07:"#baae9e",base08:"#cf6a4c",base09:"#cf7d34",base0A:"#f9ee98",base0B:"#54be0d",base0C:"#afc4db",base0D:"#5ea6ea",base0E:"#9b859d",base0F:"#937121"};w0.exports=Fo.default});var C0=O((Po,S0)=>{"use strict";Po.__esModule=!0;Po.default={scheme:"brewer",author:"timoth\xE9e poisot (http://github.com/tpoisot)",base00:"#0c0d0e",base01:"#2e2f30",base02:"#515253",base03:"#737475",base04:"#959697",base05:"#b7b8b9",base06:"#dadbdc",base07:"#fcfdfe",base08:"#e31a1c",base09:"#e6550d",base0A:"#dca060",base0B:"#31a354",base0C:"#80b1d3",base0D:"#3182bd",base0E:"#756bb1",base0F:"#b15928"};S0.exports=Po.default});var I0=O((Oo,A0)=>{"use strict";Oo.__esModule=!0;Oo.default={scheme:"bright",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#303030",base02:"#505050",base03:"#b0b0b0",base04:"#d0d0d0",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ffffff",base08:"#fb0120",base09:"#fc6d24",base0A:"#fda331",base0B:"#a1c659",base0C:"#76c7b7",base0D:"#6fb3d2",base0E:"#d381c3",base0F:"#be643c"};A0.exports=Oo.default});var T0=O((Ro,_0)=>{"use strict";Ro.__esModule=!0;Ro.default={scheme:"chalk",author:"chris kempson (http://chriskempson.com)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#eda987",base0A:"#ddb26f",base0B:"#acc267",base0C:"#12cfc0",base0D:"#6fc2ef",base0E:"#e1a3ee",base0F:"#deaf8f"};_0.exports=Ro.default});var F0=O((Bo,k0)=>{"use strict";Bo.__esModule=!0;Bo.default={scheme:"codeschool",author:"brettof86",base00:"#232c31",base01:"#1c3657",base02:"#2a343a",base03:"#3f4944",base04:"#84898c",base05:"#9ea7a6",base06:"#a7cfa3",base07:"#b5d8f6",base08:"#2a5491",base09:"#43820d",base0A:"#a03b1e",base0B:"#237986",base0C:"#b02f30",base0D:"#484d79",base0E:"#c59820",base0F:"#c98344"};k0.exports=Bo.default});var O0=O((No,P0)=>{"use strict";No.__esModule=!0;No.default={scheme:"colors",author:"mrmrs (http://clrs.cc)",base00:"#111111",base01:"#333333",base02:"#555555",base03:"#777777",base04:"#999999",base05:"#bbbbbb",base06:"#dddddd",base07:"#ffffff",base08:"#ff4136",base09:"#ff851b",base0A:"#ffdc00",base0B:"#2ecc40",base0C:"#7fdbff",base0D:"#0074d9",base0E:"#b10dc9",base0F:"#85144b"};P0.exports=No.default});var B0=O((jo,R0)=>{"use strict";jo.__esModule=!0;jo.default={scheme:"default",author:"chris kempson (http://chriskempson.com)",base00:"#181818",base01:"#282828",base02:"#383838",base03:"#585858",base04:"#b8b8b8",base05:"#d8d8d8",base06:"#e8e8e8",base07:"#f8f8f8",base08:"#ab4642",base09:"#dc9656",base0A:"#f7ca88",base0B:"#a1b56c",base0C:"#86c1b9",base0D:"#7cafc2",base0E:"#ba8baf",base0F:"#a16946"};R0.exports=jo.default});var j0=O((Lo,N0)=>{"use strict";Lo.__esModule=!0;Lo.default={scheme:"eighties",author:"chris kempson (http://chriskempson.com)",base00:"#2d2d2d",base01:"#393939",base02:"#515151",base03:"#747369",base04:"#a09f93",base05:"#d3d0c8",base06:"#e8e6df",base07:"#f2f0ec",base08:"#f2777a",base09:"#f99157",base0A:"#ffcc66",base0B:"#99cc99",base0C:"#66cccc",base0D:"#6699cc",base0E:"#cc99cc",base0F:"#d27b53"};N0.exports=Lo.default});var M0=O((Mo,L0)=>{"use strict";Mo.__esModule=!0;Mo.default={scheme:"embers",author:"jannik siebert (https://github.com/janniks)",base00:"#16130F",base01:"#2C2620",base02:"#433B32",base03:"#5A5047",base04:"#8A8075",base05:"#A39A90",base06:"#BEB6AE",base07:"#DBD6D1",base08:"#826D57",base09:"#828257",base0A:"#6D8257",base0B:"#57826D",base0C:"#576D82",base0D:"#6D5782",base0E:"#82576D",base0F:"#825757"};L0.exports=Mo.default});var z0=O((Do,D0)=>{"use strict";Do.__esModule=!0;Do.default={scheme:"flat",author:"chris kempson (http://chriskempson.com)",base00:"#2C3E50",base01:"#34495E",base02:"#7F8C8D",base03:"#95A5A6",base04:"#BDC3C7",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ECF0F1",base08:"#E74C3C",base09:"#E67E22",base0A:"#F1C40F",base0B:"#2ECC71",base0C:"#1ABC9C",base0D:"#3498DB",base0E:"#9B59B6",base0F:"#be643c"};D0.exports=Do.default});var H0=O((zo,G0)=>{"use strict";zo.__esModule=!0;zo.default={scheme:"google",author:"seth wright (http://sethawright.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#CC342B",base09:"#F96A38",base0A:"#FBA922",base0B:"#198844",base0C:"#3971ED",base0D:"#3971ED",base0E:"#A36AC7",base0F:"#3971ED"};G0.exports=zo.default});var V0=O((Go,W0)=>{"use strict";Go.__esModule=!0;Go.default={scheme:"grayscale",author:"alexandre gavioli (https://github.com/alexx2/)",base00:"#101010",base01:"#252525",base02:"#464646",base03:"#525252",base04:"#ababab",base05:"#b9b9b9",base06:"#e3e3e3",base07:"#f7f7f7",base08:"#7c7c7c",base09:"#999999",base0A:"#a0a0a0",base0B:"#8e8e8e",base0C:"#868686",base0D:"#686868",base0E:"#747474",base0F:"#5e5e5e"};W0.exports=Go.default});var J0=O((Ho,U0)=>{"use strict";Ho.__esModule=!0;Ho.default={scheme:"green screen",author:"chris kempson (http://chriskempson.com)",base00:"#001100",base01:"#003300",base02:"#005500",base03:"#007700",base04:"#009900",base05:"#00bb00",base06:"#00dd00",base07:"#00ff00",base08:"#007700",base09:"#009900",base0A:"#007700",base0B:"#00bb00",base0C:"#005500",base0D:"#009900",base0E:"#00bb00",base0F:"#005500"};U0.exports=Ho.default});var q0=O((Wo,Z0)=>{"use strict";Wo.__esModule=!0;Wo.default={scheme:"harmonic16",author:"jannik siebert (https://github.com/janniks)",base00:"#0b1c2c",base01:"#223b54",base02:"#405c79",base03:"#627e99",base04:"#aabcce",base05:"#cbd6e2",base06:"#e5ebf1",base07:"#f7f9fb",base08:"#bf8b56",base09:"#bfbf56",base0A:"#8bbf56",base0B:"#56bf8b",base0C:"#568bbf",base0D:"#8b56bf",base0E:"#bf568b",base0F:"#bf5656"};Z0.exports=Wo.default});var $0=O((Vo,X0)=>{"use strict";Vo.__esModule=!0;Vo.default={scheme:"hopscotch",author:"jan t. sott",base00:"#322931",base01:"#433b42",base02:"#5c545b",base03:"#797379",base04:"#989498",base05:"#b9b5b8",base06:"#d5d3d5",base07:"#ffffff",base08:"#dd464c",base09:"#fd8b19",base0A:"#fdcc59",base0B:"#8fc13e",base0C:"#149b93",base0D:"#1290bf",base0E:"#c85e7c",base0F:"#b33508"};X0.exports=Vo.default});var K0=O((Uo,Y0)=>{"use strict";Uo.__esModule=!0;Uo.default={scheme:"isotope",author:"jan t. sott",base00:"#000000",base01:"#404040",base02:"#606060",base03:"#808080",base04:"#c0c0c0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#ff0000",base09:"#ff9900",base0A:"#ff0099",base0B:"#33ff00",base0C:"#00ffff",base0D:"#0066ff",base0E:"#cc00ff",base0F:"#3300ff"};Y0.exports=Uo.default});var eb=O((Jo,Q0)=>{"use strict";Jo.__esModule=!0;Jo.default={scheme:"marrakesh",author:"alexandre gavioli (http://github.com/alexx2/)",base00:"#201602",base01:"#302e00",base02:"#5f5b17",base03:"#6c6823",base04:"#86813b",base05:"#948e48",base06:"#ccc37a",base07:"#faf0a5",base08:"#c35359",base09:"#b36144",base0A:"#a88339",base0B:"#18974e",base0C:"#75a738",base0D:"#477ca1",base0E:"#8868b3",base0F:"#b3588e"};Q0.exports=Jo.default});var ab=O((Zo,tb)=>{"use strict";Zo.__esModule=!0;Zo.default={scheme:"mocha",author:"chris kempson (http://chriskempson.com)",base00:"#3B3228",base01:"#534636",base02:"#645240",base03:"#7e705a",base04:"#b8afad",base05:"#d0c8c6",base06:"#e9e1dd",base07:"#f5eeeb",base08:"#cb6077",base09:"#d28b71",base0A:"#f4bc87",base0B:"#beb55b",base0C:"#7bbda4",base0D:"#8ab3b5",base0E:"#a89bb9",base0F:"#bb9584"};tb.exports=Zo.default});var ib=O((qo,nb)=>{"use strict";qo.__esModule=!0;qo.default={scheme:"monokai",author:"wimer hazenberg (http://www.monokai.nl)",base00:"#272822",base01:"#383830",base02:"#49483e",base03:"#75715e",base04:"#a59f85",base05:"#f8f8f2",base06:"#f5f4f1",base07:"#f9f8f5",base08:"#f92672",base09:"#fd971f",base0A:"#f4bf75",base0B:"#a6e22e",base0C:"#a1efe4",base0D:"#66d9ef",base0E:"#ae81ff",base0F:"#cc6633"};nb.exports=qo.default});var ob=O((Xo,rb)=>{"use strict";Xo.__esModule=!0;Xo.default={scheme:"ocean",author:"chris kempson (http://chriskempson.com)",base00:"#2b303b",base01:"#343d46",base02:"#4f5b66",base03:"#65737e",base04:"#a7adba",base05:"#c0c5ce",base06:"#dfe1e8",base07:"#eff1f5",base08:"#bf616a",base09:"#d08770",base0A:"#ebcb8b",base0B:"#a3be8c",base0C:"#96b5b4",base0D:"#8fa1b3",base0E:"#b48ead",base0F:"#ab7967"};rb.exports=Xo.default});var lb=O(($o,sb)=>{"use strict";$o.__esModule=!0;$o.default={scheme:"paraiso",author:"jan t. sott",base00:"#2f1e2e",base01:"#41323f",base02:"#4f424c",base03:"#776e71",base04:"#8d8687",base05:"#a39e9b",base06:"#b9b6b0",base07:"#e7e9db",base08:"#ef6155",base09:"#f99b15",base0A:"#fec418",base0B:"#48b685",base0C:"#5bc4bf",base0D:"#06b6ef",base0E:"#815ba4",base0F:"#e96ba8"};sb.exports=$o.default});var ub=O((Yo,cb)=>{"use strict";Yo.__esModule=!0;Yo.default={scheme:"pop",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#eb008a",base09:"#f29333",base0A:"#f8ca12",base0B:"#37b349",base0C:"#00aabb",base0D:"#0e5a94",base0E:"#b31e8d",base0F:"#7a2d00"};cb.exports=Yo.default});var db=O((Ko,pb)=>{"use strict";Ko.__esModule=!0;Ko.default={scheme:"railscasts",author:"ryan bates (http://railscasts.com)",base00:"#2b2b2b",base01:"#272935",base02:"#3a4055",base03:"#5a647e",base04:"#d4cfc9",base05:"#e6e1dc",base06:"#f4f1ed",base07:"#f9f7f3",base08:"#da4939",base09:"#cc7833",base0A:"#ffc66d",base0B:"#a5c261",base0C:"#519f50",base0D:"#6d9cbe",base0E:"#b6b3eb",base0F:"#bc9458"};pb.exports=Ko.default});var mb=O((Qo,fb)=>{"use strict";Qo.__esModule=!0;Qo.default={scheme:"shapeshifter",author:"tyler benziger (http://tybenz.com)",base00:"#000000",base01:"#040404",base02:"#102015",base03:"#343434",base04:"#555555",base05:"#ababab",base06:"#e0e0e0",base07:"#f9f9f9",base08:"#e92f2f",base09:"#e09448",base0A:"#dddd13",base0B:"#0ed839",base0C:"#23edda",base0D:"#3b48e3",base0E:"#f996e2",base0F:"#69542d"};fb.exports=Qo.default});var vb=O((es,hb)=>{"use strict";es.__esModule=!0;es.default={scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"};hb.exports=es.default});var gb=O((ts,bb)=>{"use strict";ts.__esModule=!0;ts.default={scheme:"summerfruit",author:"christopher corley (http://cscorley.github.io/)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#B0B0B0",base05:"#D0D0D0",base06:"#E0E0E0",base07:"#FFFFFF",base08:"#FF0086",base09:"#FD8900",base0A:"#ABA800",base0B:"#00C918",base0C:"#1faaaa",base0D:"#3777E6",base0E:"#AD00A1",base0F:"#cc6633"};bb.exports=ts.default});var yb=O((as,xb)=>{"use strict";as.__esModule=!0;as.default={scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"};xb.exports=as.default});var Eb=O((ns,wb)=>{"use strict";ns.__esModule=!0;ns.default={scheme:"london tube",author:"jan t. sott",base00:"#231f20",base01:"#1c3f95",base02:"#5a5758",base03:"#737171",base04:"#959ca1",base05:"#d9d8d8",base06:"#e7e7e8",base07:"#ffffff",base08:"#ee2e24",base09:"#f386a1",base0A:"#ffd204",base0B:"#00853e",base0C:"#85cebc",base0D:"#009ddc",base0E:"#98005d",base0F:"#b06110"};wb.exports=ns.default});var Cb=O((is,Sb)=>{"use strict";is.__esModule=!0;is.default={scheme:"twilight",author:"david hart (http://hart-dev.com)",base00:"#1e1e1e",base01:"#323537",base02:"#464b50",base03:"#5f5a60",base04:"#838184",base05:"#a7a7a7",base06:"#c3c3c3",base07:"#ffffff",base08:"#cf6a4c",base09:"#cda869",base0A:"#f9ee98",base0B:"#8f9d6a",base0C:"#afc4db",base0D:"#7587a6",base0E:"#9b859d",base0F:"#9b703f"};Sb.exports=is.default});var Ab=O(de=>{"use strict";de.__esModule=!0;function me(e){return e&&e.__esModule?e.default:e}var Yk=o0();de.threezerotwofour=me(Yk);var Kk=l0();de.apathy=me(Kk);var Qk=u0();de.ashes=me(Qk);var e5=d0();de.atelierDune=me(e5);var t5=m0();de.atelierForest=me(t5);var a5=v0();de.atelierHeath=me(a5);var n5=g0();de.atelierLakeside=me(n5);var i5=y0();de.atelierSeaside=me(i5);var r5=E0();de.bespin=me(r5);var o5=C0();de.brewer=me(o5);var s5=I0();de.bright=me(s5);var l5=T0();de.chalk=me(l5);var c5=F0();de.codeschool=me(c5);var u5=O0();de.colors=me(u5);var p5=B0();de.default=me(p5);var d5=j0();de.eighties=me(d5);var f5=M0();de.embers=me(f5);var m5=z0();de.flat=me(m5);var h5=H0();de.google=me(h5);var v5=V0();de.grayscale=me(v5);var b5=J0();de.greenscreen=me(b5);var g5=q0();de.harmonic=me(g5);var x5=$0();de.hopscotch=me(x5);var y5=K0();de.isotope=me(y5);var w5=eb();de.marrakesh=me(w5);var E5=ab();de.mocha=me(E5);var S5=ib();de.monokai=me(S5);var C5=ob();de.ocean=me(C5);var A5=lb();de.paraiso=me(A5);var I5=ub();de.pop=me(I5);var _5=db();de.railscasts=me(_5);var T5=mb();de.shapeshifter=me(T5);var k5=vb();de.solarized=me(k5);var F5=gb();de.summerfruit=me(F5);var P5=yb();de.tomorrow=me(P5);var O5=Eb();de.tube=me(O5);var R5=Cb();de.twilight=me(R5)});var Ru=O((w8,Ib)=>{"use strict";Ib.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var Tb=O((E8,_b)=>{_b.exports=function(t){return!t||typeof t=="string"?!1:t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")}});var Pb=O((S8,Fb)=>{"use strict";var B5=Tb(),N5=Array.prototype.concat,j5=Array.prototype.slice,kb=Fb.exports=function(t){for(var a=[],n=0,i=t.length;n{var Hi=Ru(),Wi=Pb(),Ob=Object.hasOwnProperty,Rb=Object.create(null);for(rs in Hi)Ob.call(Hi,rs)&&(Rb[Hi[rs]]=rs);var rs,Tt=Bb.exports={to:{},get:{}};Tt.get=function(e){var t=e.substring(0,3).toLowerCase(),a,n;switch(t){case"hsl":a=Tt.get.hsl(e),n="hsl";break;case"hwb":a=Tt.get.hwb(e),n="hwb";break;default:a=Tt.get.rgb(e),n="rgb";break}return a?{model:n,value:a}:null};Tt.get.rgb=function(e){if(!e)return null;var t=/^#([a-f0-9]{3,4})$/i,a=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,n=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,i=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,r=/^(\w+)$/,o=[0,0,0,1],s,l,u;if(s=e.match(a)){for(u=s[2],s=s[1],l=0;l<3;l++){var c=l*2;o[l]=parseInt(s.slice(c,c+2),16)}u&&(o[3]=parseInt(u,16)/255)}else if(s=e.match(t)){for(s=s[1],u=s[3],l=0;l<3;l++)o[l]=parseInt(s[l]+s[l],16);u&&(o[3]=parseInt(u+u,16)/255)}else if(s=e.match(n)){for(l=0;l<3;l++)o[l]=parseInt(s[l+1],0);s[4]&&(s[5]?o[3]=parseFloat(s[4])*.01:o[3]=parseFloat(s[4]))}else if(s=e.match(i)){for(l=0;l<3;l++)o[l]=Math.round(parseFloat(s[l+1])*2.55);s[4]&&(s[5]?o[3]=parseFloat(s[4])*.01:o[3]=parseFloat(s[4]))}else return(s=e.match(r))?s[1]==="transparent"?[0,0,0,0]:Ob.call(Hi,s[1])?(o=Hi[s[1]],o[3]=1,o):null:null;for(l=0;l<3;l++)o[l]=Fa(o[l],0,255);return o[3]=Fa(o[3],0,1),o};Tt.get.hsl=function(e){if(!e)return null;var t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,a=e.match(t);if(a){var n=parseFloat(a[4]),i=(parseFloat(a[1])%360+360)%360,r=Fa(parseFloat(a[2]),0,100),o=Fa(parseFloat(a[3]),0,100),s=Fa(isNaN(n)?1:n,0,1);return[i,r,o,s]}return null};Tt.get.hwb=function(e){if(!e)return null;var t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,a=e.match(t);if(a){var n=parseFloat(a[4]),i=(parseFloat(a[1])%360+360)%360,r=Fa(parseFloat(a[2]),0,100),o=Fa(parseFloat(a[3]),0,100),s=Fa(isNaN(n)?1:n,0,1);return[i,r,o,s]}return null};Tt.to.hex=function(){var e=Wi(arguments);return"#"+os(e[0])+os(e[1])+os(e[2])+(e[3]<1?os(Math.round(e[3]*255)):"")};Tt.to.rgb=function(){var e=Wi(arguments);return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"};Tt.to.rgb.percent=function(){var e=Wi(arguments),t=Math.round(e[0]/255*100),a=Math.round(e[1]/255*100),n=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+t+"%, "+a+"%, "+n+"%)":"rgba("+t+"%, "+a+"%, "+n+"%, "+e[3]+")"};Tt.to.hsl=function(){var e=Wi(arguments);return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"};Tt.to.hwb=function(){var e=Wi(arguments),t="";return e.length>=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"};Tt.to.keyword=function(e){return Rb[e.slice(0,3)]};function Fa(e,t,a){return Math.min(Math.max(t,e),a)}function os(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}});var Bu=O((A8,Db)=>{var Ka=Ru(),Mb={};for(ss in Ka)Ka.hasOwnProperty(ss)&&(Mb[Ka[ss]]=ss);var ss,Y=Db.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(vt in Y)if(Y.hasOwnProperty(vt)){if(!("channels"in Y[vt]))throw new Error("missing channels property: "+vt);if(!("labels"in Y[vt]))throw new Error("missing channel labels property: "+vt);if(Y[vt].labels.length!==Y[vt].channels)throw new Error("channel and label counts mismatch: "+vt);jb=Y[vt].channels,Lb=Y[vt].labels,delete Y[vt].channels,delete Y[vt].labels,Object.defineProperty(Y[vt],"channels",{value:jb}),Object.defineProperty(Y[vt],"labels",{value:Lb})}var jb,Lb,vt;Y.rgb.hsl=function(e){var t=e[0]/255,a=e[1]/255,n=e[2]/255,i=Math.min(t,a,n),r=Math.max(t,a,n),o=r-i,s,l,u;return r===i?s=0:t===r?s=(a-n)/o:a===r?s=2+(n-t)/o:n===r&&(s=4+(t-a)/o),s=Math.min(s*60,360),s<0&&(s+=360),u=(i+r)/2,r===i?l=0:u<=.5?l=o/(r+i):l=o/(2-r-i),[s,l*100,u*100]};Y.rgb.hsv=function(e){var t,a,n,i,r,o=e[0]/255,s=e[1]/255,l=e[2]/255,u=Math.max(o,s,l),c=u-Math.min(o,s,l),f=function(p){return(u-p)/6/c+1/2};return c===0?i=r=0:(r=c/u,t=f(o),a=f(s),n=f(l),o===u?i=n-a:s===u?i=1/3+t-n:l===u&&(i=2/3+a-t),i<0?i+=1:i>1&&(i-=1)),[i*360,r*100,u*100]};Y.rgb.hwb=function(e){var t=e[0],a=e[1],n=e[2],i=Y.rgb.hsl(e)[0],r=1/255*Math.min(t,Math.min(a,n));return n=1-1/255*Math.max(t,Math.max(a,n)),[i,r*100,n*100]};Y.rgb.cmyk=function(e){var t=e[0]/255,a=e[1]/255,n=e[2]/255,i,r,o,s;return s=Math.min(1-t,1-a,1-n),i=(1-t-s)/(1-s)||0,r=(1-a-s)/(1-s)||0,o=(1-n-s)/(1-s)||0,[i*100,r*100,o*100,s*100]};function L5(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}Y.rgb.keyword=function(e){var t=Mb[e];if(t)return t;var a=1/0,n;for(var i in Ka)if(Ka.hasOwnProperty(i)){var r=Ka[i],o=L5(e,r);o.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=t*.4124+a*.3576+n*.1805,r=t*.2126+a*.7152+n*.0722,o=t*.0193+a*.1192+n*.9505;return[i*100,r*100,o*100]};Y.rgb.lab=function(e){var t=Y.rgb.xyz(e),a=t[0],n=t[1],i=t[2],r,o,s;return a/=95.047,n/=100,i/=108.883,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,r=116*n-16,o=500*(a-n),s=200*(n-i),[r,o,s]};Y.hsl.rgb=function(e){var t=e[0]/360,a=e[1]/100,n=e[2]/100,i,r,o,s,l;if(a===0)return l=n*255,[l,l,l];n<.5?r=n*(1+a):r=n+a-n*a,i=2*n-r,s=[0,0,0];for(var u=0;u<3;u++)o=t+1/3*-(u-1),o<0&&o++,o>1&&o--,6*o<1?l=i+(r-i)*6*o:2*o<1?l=r:3*o<2?l=i+(r-i)*(2/3-o)*6:l=i,s[u]=l*255;return s};Y.hsl.hsv=function(e){var t=e[0],a=e[1]/100,n=e[2]/100,i=a,r=Math.max(n,.01),o,s;return n*=2,a*=n<=1?n:2-n,i*=r<=1?r:2-r,s=(n+a)/2,o=n===0?2*i/(r+i):2*a/(n+a),[t,o*100,s*100]};Y.hsv.rgb=function(e){var t=e[0]/60,a=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,r=t-Math.floor(t),o=255*n*(1-a),s=255*n*(1-a*r),l=255*n*(1-a*(1-r));switch(n*=255,i){case 0:return[n,l,o];case 1:return[s,n,o];case 2:return[o,n,l];case 3:return[o,s,n];case 4:return[l,o,n];case 5:return[n,o,s]}};Y.hsv.hsl=function(e){var t=e[0],a=e[1]/100,n=e[2]/100,i=Math.max(n,.01),r,o,s;return s=(2-a)*n,r=(2-a)*i,o=a*i,o/=r<=1?r:2-r,o=o||0,s/=2,[t,o*100,s*100]};Y.hwb.rgb=function(e){var t=e[0]/360,a=e[1]/100,n=e[2]/100,i=a+n,r,o,s,l;i>1&&(a/=i,n/=i),r=Math.floor(6*t),o=1-n,s=6*t-r,r&1&&(s=1-s),l=a+s*(o-a);var u,c,f;switch(r){default:case 6:case 0:u=o,c=l,f=a;break;case 1:u=l,c=o,f=a;break;case 2:u=a,c=o,f=l;break;case 3:u=a,c=l,f=o;break;case 4:u=l,c=a,f=o;break;case 5:u=o,c=a,f=l;break}return[u*255,c*255,f*255]};Y.cmyk.rgb=function(e){var t=e[0]/100,a=e[1]/100,n=e[2]/100,i=e[3]/100,r,o,s;return r=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,a*(1-i)+i),s=1-Math.min(1,n*(1-i)+i),[r*255,o*255,s*255]};Y.xyz.rgb=function(e){var t=e[0]/100,a=e[1]/100,n=e[2]/100,i,r,o;return i=t*3.2406+a*-1.5372+n*-.4986,r=t*-.9689+a*1.8758+n*.0415,o=t*.0557+a*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),r=Math.min(Math.max(0,r),1),o=Math.min(Math.max(0,o),1),[i*255,r*255,o*255]};Y.xyz.lab=function(e){var t=e[0],a=e[1],n=e[2],i,r,o;return t/=95.047,a/=100,n/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*a-16,r=500*(t-a),o=200*(a-n),[i,r,o]};Y.lab.xyz=function(e){var t=e[0],a=e[1],n=e[2],i,r,o;r=(t+16)/116,i=a/500+r,o=r-n/200;var s=Math.pow(r,3),l=Math.pow(i,3),u=Math.pow(o,3);return r=s>.008856?s:(r-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,o=u>.008856?u:(o-16/116)/7.787,i*=95.047,r*=100,o*=108.883,[i,r,o]};Y.lab.lch=function(e){var t=e[0],a=e[1],n=e[2],i,r,o;return i=Math.atan2(n,a),r=i*360/2/Math.PI,r<0&&(r+=360),o=Math.sqrt(a*a+n*n),[t,o,r]};Y.lch.lab=function(e){var t=e[0],a=e[1],n=e[2],i,r,o;return o=n/360*2*Math.PI,i=a*Math.cos(o),r=a*Math.sin(o),[t,i,r]};Y.rgb.ansi16=function(e){var t=e[0],a=e[1],n=e[2],i=1 in arguments?arguments[1]:Y.rgb.hsv(e)[2];if(i=Math.round(i/50),i===0)return 30;var r=30+(Math.round(n/255)<<2|Math.round(a/255)<<1|Math.round(t/255));return i===2&&(r+=60),r};Y.hsv.ansi16=function(e){return Y.rgb.ansi16(Y.hsv.rgb(e),e[2])};Y.rgb.ansi256=function(e){var t=e[0],a=e[1],n=e[2];if(t===a&&a===n)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;var i=16+36*Math.round(t/255*5)+6*Math.round(a/255*5)+Math.round(n/255*5);return i};Y.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var a=(~~(e>50)+1)*.5,n=(t&1)*a*255,i=(t>>1&1)*a*255,r=(t>>2&1)*a*255;return[n,i,r]};Y.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var a,n=Math.floor(e/36)/5*255,i=Math.floor((a=e%36)/6)/5*255,r=a%6/5*255;return[n,i,r]};Y.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255),a=t.toString(16).toUpperCase();return"000000".substring(a.length)+a};Y.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var a=t[0];t[0].length===3&&(a=a.split("").map(function(s){return s+s}).join(""));var n=parseInt(a,16),i=n>>16&255,r=n>>8&255,o=n&255;return[i,r,o]};Y.rgb.hcg=function(e){var t=e[0]/255,a=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,a),n),r=Math.min(Math.min(t,a),n),o=i-r,s,l;return o<1?s=r/(1-o):s=0,o<=0?l=0:i===t?l=(a-n)/o%6:i===a?l=2+(n-t)/o:l=4+(t-a)/o+4,l/=6,l%=1,[l*360,o*100,s*100]};Y.hsl.hcg=function(e){var t=e[1]/100,a=e[2]/100,n=1,i=0;return a<.5?n=2*t*a:n=2*t*(1-a),n<1&&(i=(a-.5*n)/(1-n)),[e[0],n*100,i*100]};Y.hsv.hcg=function(e){var t=e[1]/100,a=e[2]/100,n=t*a,i=0;return n<1&&(i=(a-n)/(1-n)),[e[0],n*100,i*100]};Y.hcg.rgb=function(e){var t=e[0]/360,a=e[1]/100,n=e[2]/100;if(a===0)return[n*255,n*255,n*255];var i=[0,0,0],r=t%1*6,o=r%1,s=1-o,l=0;switch(Math.floor(r)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return l=(1-a)*n,[(a*i[0]+l)*255,(a*i[1]+l)*255,(a*i[2]+l)*255]};Y.hcg.hsv=function(e){var t=e[1]/100,a=e[2]/100,n=t+a*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};Y.hcg.hsl=function(e){var t=e[1]/100,a=e[2]/100,n=a*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};Y.hcg.hwb=function(e){var t=e[1]/100,a=e[2]/100,n=t+a*(1-t);return[e[0],(n-t)*100,(1-n)*100]};Y.hwb.hcg=function(e){var t=e[1]/100,a=e[2]/100,n=1-a,i=n-t,r=0;return i<1&&(r=(n-i)/(1-i)),[e[0],i*100,r*100]};Y.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};Y.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};Y.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};Y.gray.hsl=Y.gray.hsv=function(e){return[0,0,e[0]]};Y.gray.hwb=function(e){return[0,100,e[0]]};Y.gray.cmyk=function(e){return[0,0,0,e[0]]};Y.gray.lab=function(e){return[e[0],0,0]};Y.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255,a=(t<<16)+(t<<8)+t,n=a.toString(16).toUpperCase();return"000000".substring(n.length)+n};Y.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}});var Gb=O((I8,zb)=>{var ls=Bu();function M5(){for(var e={},t=Object.keys(ls),a=t.length,n=0;n{var Nu=Bu(),H5=Gb(),Ln={},W5=Object.keys(Nu);function V5(e){var t=function(a){return a==null?a:(arguments.length>1&&(a=Array.prototype.slice.call(arguments)),e(a))};return"conversion"in e&&(t.conversion=e.conversion),t}function U5(e){var t=function(a){if(a==null)return a;arguments.length>1&&(a=Array.prototype.slice.call(arguments));var n=e(a);if(typeof n=="object")for(var i=n.length,r=0;r{"use strict";var Vi=Nb(),kt=Wb(),Mu=[].slice,Vb=["keyword","gray","hex"],ju={};Object.keys(kt).forEach(function(e){ju[Mu.call(kt[e].labels).sort().join("")]=e});var cs={};function st(e,t){if(!(this instanceof st))return new st(e,t);if(t&&t in Vb&&(t=null),t&&!(t in kt))throw new Error("Unknown model: "+t);var a,n;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof st)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if(typeof e=="string"){var i=Vi.get(e);if(i===null)throw new Error("Unable to parse color from string: "+e);this.model=i.model,n=kt[this.model].channels,this.color=i.value.slice(0,n),this.valpha=typeof i.value[n]=="number"?i.value[n]:1}else if(e.length){this.model=t||"rgb",n=kt[this.model].channels;var r=Mu.call(e,0,n);this.color=Lu(r,n),this.valpha=typeof e[n]=="number"?e[n]:1}else if(typeof e=="number")e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;var o=Object.keys(e);"alpha"in e&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);var s=o.sort().join("");if(!(s in ju))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=ju[s];var l=kt[this.model].labels,u=[];for(a=0;aa?(t+.05)/(a+.05):(a+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},isDark:function(){var e=this.rgb().color,t=(e[0]*299+e[1]*587+e[2]*114)/1e3;return t<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return st.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),a=t.color[0];return a=(a+e)%360,a=a<0?360+a:a,t.color[0]=a,t},mix:function(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);var a=e.rgb(),n=this.rgb(),i=t===void 0?.5:t,r=2*i-1,o=a.alpha()-n.alpha(),s=((r*o===-1?r:(r+o)/(1+r*o))+1)/2,l=1-s;return st.rgb(s*a.red()+l*n.red(),s*a.green()+l*n.green(),s*a.blue()+l*n.blue(),a.alpha()*i+n.alpha()*(1-i))}};Object.keys(kt).forEach(function(e){if(Vb.indexOf(e)===-1){var t=kt[e].channels;st.prototype[e]=function(){if(this.model===e)return new st(this);if(arguments.length)return new st(arguments,e);var a=typeof arguments[t]=="number"?t:this.valpha;return new st(q5(kt[this.model][e].raw(this.color)).concat(a),e)},st[e]=function(a){return typeof a=="number"&&(a=Lu(Mu.call(arguments),t)),new st(a,e)}}});function J5(e,t){return Number(e.toFixed(t))}function Z5(e){return function(t){return J5(t,e)}}function Ue(e,t,a){return e=Array.isArray(e)?e:[e],e.forEach(function(n){(cs[n]||(cs[n]=[]))[t]=a}),e=e[0],function(n){var i;return arguments.length?(a&&(n=a(n)),i=this[e](),i.color[t]=n,i):(i=this[e]().color[t],a&&(i=a(i)),i)}}function et(e){return function(t){return Math.max(0,Math.min(e,t))}}function q5(e){return Array.isArray(e)?e:[e]}function Lu(e,t){for(var a=0;a{var X5="Expected a function",Zb="__lodash_placeholder__",en=1,ps=2,$5=4,Qa=8,Ui=16,Mn=32,Ji=64,eg=128,Y5=256,tg=512,qb=1/0,K5=9007199254740991,Q5=17976931348623157e292,Xb=0/0,eF=[["ary",eg],["bind",en],["bindKey",ps],["curry",Qa],["curryRight",Ui],["flip",tg],["partial",Mn],["partialRight",Ji],["rearg",Y5]],tF="[object Function]",aF="[object GeneratorFunction]",nF="[object Symbol]",iF=/[\\^$.*+?()[\]{}|]/g,rF=/^\s+|\s+$/g,oF=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,sF=/\{\n\/\* \[wrapped with (.+)\] \*/,lF=/,? & /,cF=/^[-+]0x[0-9a-f]+$/i,uF=/^0b[01]+$/i,pF=/^\[object .+?Constructor\]$/,dF=/^0o[0-7]+$/i,fF=/^(?:0|[1-9]\d*)$/,mF=parseInt,hF=typeof global=="object"&&global&&global.Object===Object&&global,vF=typeof self=="object"&&self&&self.Object===Object&&self,qi=hF||vF||Function("return this")();function ag(e,t,a){switch(a.length){case 0:return e.call(t);case 1:return e.call(t,a[0]);case 2:return e.call(t,a[0],a[1]);case 3:return e.call(t,a[0],a[1],a[2])}return e.apply(t,a)}function bF(e,t){for(var a=-1,n=e?e.length:0;++a-1}function xF(e,t,a,n){for(var i=e.length,r=a+(n?1:-1);n?r--:++r2?e:void 0}();function FF(e){return Dn(e)?TF(e):{}}function PF(e){if(!Dn(e)||HF(e))return!1;var t=JF(e)||CF(e)?_F:pF;return t.test(VF(e))}function OF(e,t,a,n){for(var i=-1,r=e.length,o=a.length,s=-1,l=t.length,u=us(r-o,0),c=Array(l+u),f=!n;++s1&&x.reverse(),c&&l1?"& ":"")+t[n],t=t.join(a>2?", ":" "),e.replace(oF,`{ -/* [wrapped with `+t+`] */ -`)}function GF(e,t){return t=t==null?K5:t,!!t&&(typeof e=="number"||fF.test(e))&&e>-1&&e%1==0&&e{"use strict";var{PassThrough:LP}=require("stream");Jg.exports=e=>{e={...e};let{array:t}=e,{encoding:a}=e,n=a==="buffer",i=!1;t?i=!(a||n):a=a||"utf8",n&&(a=null);let r=new LP({objectMode:i});a&&r.setEncoding(a);let o=0,s=[];return r.on("data",l=>{s.push(l),i?o=s.length:o+=l.length}),r.getBufferedValue=()=>t?s:n?Buffer.concat(s,o):s.join(""),r.getBufferedLength=()=>o,r}});var qg=O((hz,Yi)=>{"use strict";var{constants:MP}=require("buffer"),DP=require("stream"),{promisify:zP}=require("util"),GP=Zg(),HP=zP(DP.pipeline),vs=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Yu(e,t){if(!e)throw new Error("Expected a stream");t={maxBuffer:1/0,...t};let{maxBuffer:a}=t,n=GP(t);return await new Promise((i,r)=>{let o=s=>{s&&n.getBufferedLength()<=MP.MAX_LENGTH&&(s.bufferedData=n.getBufferedValue()),r(s)};(async()=>{try{await HP(e,n),i()}catch(s){o(s)}})(),n.on("data",()=>{n.getBufferedLength()>a&&o(new vs)})}),n.getBufferedValue()}Yi.exports=Yu;Yi.exports.buffer=(e,t)=>Yu(e,{...t,encoding:"buffer"});Yi.exports.array=(e,t)=>Yu(e,{...t,array:!0});Yi.exports.MaxBufferError=vs});var Ax=O((tr,up)=>{(function(t,a){typeof tr=="object"&&typeof up=="object"?up.exports=a():typeof define=="function"&&define.amd?define([],a):typeof tr=="object"?tr.nunjucks=a():t.nunjucks=a()})(typeof self!="undefined"?self:tr,function(){return function(e){var t={};function a(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,a),i.l=!0,i.exports}return a.m=e,a.c=t,a.d=function(n,i,r){a.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:r})},a.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return a.d(i,"a",i),i},a.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},a.p="",a(a.s=11)}([function(e,s,a){"use strict";var n=Array.prototype,i=Object.prototype,r={"&":"&",'"':""","'":"'","<":"<",">":">","\\":"\"},o=/[&"'<>\\]/g,s=e.exports={};function l(T,N){return i.hasOwnProperty.call(T,N)}s.hasOwnProp=l;function u(T){return r[T]}function c(T,N,M){if(M.Update||(M=new s.TemplateError(M)),M.Update(T),!N){var D=M;M=new Error(D.message),M.name=D.name}return M}s._prettifyError=c;function f(T,N,M){var D,V;T instanceof Error&&(V=T,T=V.name+": "+V.message),Object.setPrototypeOf?(D=new Error(T),Object.setPrototypeOf(D,f.prototype)):(D=this,Object.defineProperty(D,"message",{enumerable:!1,writable:!0,value:T})),Object.defineProperty(D,"name",{value:"Template render error"}),Error.captureStackTrace&&Error.captureStackTrace(D,this.constructor);var q;if(V){var Z=Object.getOwnPropertyDescriptor(V,"stack");q=Z&&(Z.get||function(){return Z.value}),q||(q=function(){return V.stack})}else{var pe=new Error(T).stack;q=function(){return pe}}return Object.defineProperty(D,"stack",{get:function(){return q.call(D)}}),Object.defineProperty(D,"cause",{value:V}),D.lineno=N,D.colno=M,D.firstUpdate=!0,D.Update=function(ee){var oe="("+(ee||"unknown path")+")";return this.firstUpdate&&(this.lineno&&this.colno?oe+=" [Line "+this.lineno+", Column "+this.colno+"]":this.lineno&&(oe+=" [Line "+this.lineno+"]")),oe+=` - `,this.firstUpdate&&(oe+=" "),this.message=oe+(this.message||""),this.firstUpdate=!1,this},D}Object.setPrototypeOf?Object.setPrototypeOf(f.prototype,Error.prototype):f.prototype=Object.create(Error.prototype,{constructor:{value:f}}),s.TemplateError=f;function p(T){return T.replace(o,u)}s.escape=p;function b(T){return i.toString.call(T)==="[object Function]"}s.isFunction=b;function d(T){return i.toString.call(T)==="[object Array]"}s.isArray=d;function m(T){return i.toString.call(T)==="[object String]"}s.isString=m;function h(T){return i.toString.call(T)==="[object Object]"}s.isObject=h;function v(T){return T?typeof T=="string"?T.split("."):[T]:[]}function x(T){var N=v(T);return function(D){for(var V=D,q=0;qS.length)k=B.slice(0,S.length),B.slice(k.length,L).forEach(function(D,V){V2?_i-2:0),$r=2;$r<_i;$r++)Q_[$r-2]=arguments[$r];this.lineno=Ie,this.colno=Xe,this.fields.forEach(function(eT,tT){var jc=St[tT+2];jc===void 0&&(jc=null),Za[eT]=jc})},we.findAll=function(Ie,Xe){var St=this;return Xe=Xe||[],this instanceof d?this.children.forEach(function(Za){return f(Za,Ie,Xe)}):this.fields.forEach(function(Za){return f(St[Za],Ie,Xe)}),Xe},we.iterFields=function(Ie){var Xe=this;this.fields.forEach(function(St){Ie(Xe[St],St)})},ie}(c),b=function(te){s(ie,te);function ie(){return te.apply(this,arguments)||this}return i(ie,[{key:"typename",get:function(){return"Value"}},{key:"fields",get:function(){return["value"]}}]),ie}(p),d=function(te){s(ie,te);function ie(){return te.apply(this,arguments)||this}var we=ie.prototype;return we.init=function(Ie,Xe,St){te.prototype.init.call(this,Ie,Xe,St||[])},we.addChild=function(Ie){this.children.push(Ie)},i(ie,[{key:"typename",get:function(){return"NodeList"}},{key:"fields",get:function(){return["children"]}}]),ie}(p),m=d.extend("Root"),h=b.extend("Literal"),v=b.extend("Symbol"),x=d.extend("Group"),E=d.extend("Array"),g=p.extend("Pair",{fields:["key","value"]}),w=d.extend("Dict"),C=p.extend("LookupVal",{fields:["target","val"]}),y=p.extend("If",{fields:["cond","body","else_"]}),S=y.extend("IfAsync"),A=p.extend("InlineIf",{fields:["cond","body","else_"]}),_=p.extend("For",{fields:["arr","name","body","else_"]}),P=_.extend("AsyncEach"),F=_.extend("AsyncAll"),B=p.extend("Macro",{fields:["name","args","body"]}),j=B.extend("Caller"),L=p.extend("Import",{fields:["template","target","withContext"]}),k=function(te){s(ie,te);function ie(){return te.apply(this,arguments)||this}var we=ie.prototype;return we.init=function(Ie,Xe,St,Za,_i){te.prototype.init.call(this,Ie,Xe,St,Za||new d,_i)},i(ie,[{key:"typename",get:function(){return"FromImport"}},{key:"fields",get:function(){return["template","names","withContext"]}}]),ie}(p),T=p.extend("FunCall",{fields:["name","args"]}),N=T.extend("Filter"),M=N.extend("FilterAsync",{fields:["name","args","symbol"]}),D=w.extend("KeywordArgs"),V=p.extend("Block",{fields:["name","body"]}),q=p.extend("Super",{fields:["blockName","symbol"]}),Z=p.extend("TemplateRef",{fields:["template"]}),pe=Z.extend("Extends"),fe=p.extend("Include",{fields:["template","ignoreMissing"]}),ee=p.extend("Set",{fields:["targets","value"]}),oe=p.extend("Switch",{fields:["expr","cases","default"]}),U=p.extend("Case",{fields:["cond","body"]}),X=d.extend("Output"),$=p.extend("Capture",{fields:["body"]}),he=h.extend("TemplateData"),qe=p.extend("UnaryOp",{fields:["target"]}),ze=p.extend("BinOp",{fields:["left","right"]}),ht=ze.extend("In"),R=ze.extend("Is"),z=ze.extend("Or"),J=ze.extend("And"),H=qe.extend("Not"),ne=ze.extend("Add"),K=ze.extend("Concat"),Ae=ze.extend("Sub"),ue=ze.extend("Mul"),Ne=ze.extend("Div"),Nt=ze.extend("FloorDiv"),Vt=ze.extend("Mod"),Ia=ze.extend("Pow"),q_=qe.extend("Neg"),X_=qe.extend("Pos"),$_=p.extend("Compare",{fields:["expr","ops"]}),Y_=p.extend("CompareOperand",{fields:["expr","type"]}),Nc=p.extend("CallExtension",{init:function(ie,we,ge,Ie){this.parent(),this.extName=ie.__name||ie,this.prop=we,this.args=ge||new d,this.contentArgs=Ie||[],this.autoescape=ie.autoescape},fields:["extName","prop","args","contentArgs"]}),K_=Nc.extend("CallExtensionAsync");function Sn(te,ie,we){var ge=te.split(` -`);ge.forEach(function(Ie,Xe){Ie&&(we&&Xe>0||!we)&&process.stdout.write(" ".repeat(ie));var St=Xe===ge.length-1?"":` -`;process.stdout.write(""+Ie+St)})}function Ii(te,ie){if(ie=ie||0,Sn(te.typename+": ",ie),te instanceof d)Sn(` -`),te.children.forEach(function(Ie){Ii(Ie,ie+2)});else if(te instanceof Nc)Sn(te.extName+"."+te.prop+` -`),te.args&&Ii(te.args,ie+2),te.contentArgs&&te.contentArgs.forEach(function(Ie){Ii(Ie,ie+2)});else{var we=[],ge=null;te.iterFields(function(Ie,Xe){Ie instanceof p?we.push([Xe,Ie]):(ge=ge||{},ge[Xe]=Ie)}),ge?Sn(JSON.stringify(ge,null,2)+` -`,null,!0):Sn(` -`),we.forEach(function(Ie){var Xe=Ie[0],St=Ie[1];Sn("["+Xe+"] =>",ie+2),Ii(St,ie+4)})}}e.exports={Node:p,Root:m,NodeList:d,Value:b,Literal:h,Symbol:v,Group:x,Array:E,Pair:g,Dict:w,Output:X,Capture:$,TemplateData:he,If:y,IfAsync:S,InlineIf:A,For:_,AsyncEach:P,AsyncAll:F,Macro:B,Caller:j,Import:L,FromImport:k,FunCall:T,Filter:N,FilterAsync:M,KeywordArgs:D,Block:V,Super:q,Extends:pe,Include:fe,Set:ee,Switch:oe,Case:U,LookupVal:C,BinOp:ze,In:ht,Is:R,Or:z,And:J,Not:H,Add:ne,Concat:K,Sub:Ae,Mul:ue,Div:Ne,FloorDiv:Nt,Mod:Vt,Pow:Ia,Neg:q_,Pos:X_,Compare:$_,CompareOperand:Y_,CallExtension:Nc,CallExtensionAsync:K_,printNodes:Ii}},function(e,t){},function(e,t,a){"use strict";function n(h,v){h.prototype=Object.create(v.prototype),h.prototype.constructor=h,i(h,v)}function i(h,v){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(E,g){return E.__proto__=g,E},i(h,v)}var r=a(8),o=a(17),s=a(3),l=a(0),u=l.TemplateError,c=a(2),f=c.Frame,p=a(1),b=p.Obj,d={"==":"==","===":"===","!=":"!=","!==":"!==","<":"<",">":">","<=":"<=",">=":">="},m=function(h){n(v,h);function v(){return h.apply(this,arguments)||this}var x=v.prototype;return x.init=function(g,w){this.templateName=g,this.codebuf=[],this.lastId=0,this.buffer=null,this.bufferStack=[],this._scopeClosers="",this.inBlock=!1,this.throwOnUndefined=w},x.fail=function(g,w,C){throw w!==void 0&&(w+=1),C!==void 0&&(C+=1),new u(g,w,C)},x._pushBuffer=function(){var g=this._tmpid();return this.bufferStack.push(this.buffer),this.buffer=g,this._emit("var "+this.buffer+' = "";'),g},x._popBuffer=function(){this.buffer=this.bufferStack.pop()},x._emit=function(g){this.codebuf.push(g)},x._emitLine=function(g){this._emit(g+` -`)},x._emitLines=function(){for(var g=this,w=arguments.length,C=new Array(w),y=0;y0&&S._emit(","),S.compile(A,w)}),y&&this._emit(y)},x._compileExpression=function(g,w){this.assertType(g,s.Literal,s.Symbol,s.Group,s.Array,s.Dict,s.FunCall,s.Caller,s.Filter,s.LookupVal,s.Compare,s.InlineIf,s.In,s.Is,s.And,s.Or,s.Not,s.Add,s.Concat,s.Sub,s.Mul,s.Div,s.FloorDiv,s.Mod,s.Pow,s.Neg,s.Pos,s.Compare,s.NodeList),this.compile(g,w)},x.assertType=function(g){for(var w=arguments.length,C=new Array(w>1?w-1:0),y=1;y0&&y._emit(","),F){y._emitLine("function(cb) {"),y._emitLine("if(!cb) { cb = function(err) { if(err) { throw err; }}}");var j=y._pushBuffer();y._withScopedSyntax(function(){y.compile(F,w),y._emitLine("cb(null, "+j+");")}),y._popBuffer(),y._emitLine("return "+j+";"),y._emitLine("}")}else y._emit("null")}),C){var P=this._tmpid();this._emitLine(", "+this._makeCallback(P)),this._emitLine(this.buffer+" += runtime.suppressValue("+P+", "+_+" && env.opts.autoescape);"),this._addScopeLevel()}else this._emit(")"),this._emit(", "+_+` && env.opts.autoescape); -`)},x.compileCallExtensionAsync=function(g,w){this.compileCallExtension(g,w,!0)},x.compileNodeList=function(g,w){this._compileChildren(g,w)},x.compileLiteral=function(g){if(typeof g.value=="string"){var w=g.value.replace(/\\/g,"\\\\");w=w.replace(/"/g,'\\"'),w=w.replace(/\n/g,"\\n"),w=w.replace(/\r/g,"\\r"),w=w.replace(/\t/g,"\\t"),w=w.replace(/\u2028/g,"\\u2028"),this._emit('"'+w+'"')}else g.value===null?this._emit("null"):this._emit(g.value.toString())},x.compileSymbol=function(g,w){var C=g.value,y=w.lookup(C);y?this._emit(y):this._emit('runtime.contextOrFrameLookup(context, frame, "'+C+'")')},x.compileGroup=function(g,w){this._compileAggregate(g,w,"(",")")},x.compileArray=function(g,w){this._compileAggregate(g,w,"[","]")},x.compileDict=function(g,w){this._compileAggregate(g,w,"{","}")},x.compilePair=function(g,w){var C=g.key,y=g.value;C instanceof s.Symbol?C=new s.Literal(C.lineno,C.colno,C.value):C instanceof s.Literal&&typeof C.value=="string"||this.fail("compilePair: Dict keys must be strings or names",C.lineno,C.colno),this.compile(C,w),this._emit(": "),this._compileExpression(y,w)},x.compileInlineIf=function(g,w){this._emit("("),this.compile(g.cond,w),this._emit("?"),this.compile(g.body,w),this._emit(":"),g.else_!==null?this.compile(g.else_,w):this._emit('""'),this._emit(")")},x.compileIn=function(g,w){this._emit("runtime.inOperator("),this.compile(g.left,w),this._emit(","),this.compile(g.right,w),this._emit(")")},x.compileIs=function(g,w){var C=g.right.name?g.right.name.value:g.right.value;this._emit('env.getTest("'+C+'").call(context, '),this.compile(g.left,w),g.right.args&&(this._emit(","),this.compile(g.right.args,w)),this._emit(") === true")},x._binOpEmitter=function(g,w,C){this.compile(g.left,w),this._emit(C),this.compile(g.right,w)},x.compileOr=function(g,w){return this._binOpEmitter(g,w," || ")},x.compileAnd=function(g,w){return this._binOpEmitter(g,w," && ")},x.compileAdd=function(g,w){return this._binOpEmitter(g,w," + ")},x.compileConcat=function(g,w){return this._binOpEmitter(g,w,' + "" + ')},x.compileSub=function(g,w){return this._binOpEmitter(g,w," - ")},x.compileMul=function(g,w){return this._binOpEmitter(g,w," * ")},x.compileDiv=function(g,w){return this._binOpEmitter(g,w," / ")},x.compileMod=function(g,w){return this._binOpEmitter(g,w," % ")},x.compileNot=function(g,w){this._emit("!"),this.compile(g.target,w)},x.compileFloorDiv=function(g,w){this._emit("Math.floor("),this.compile(g.left,w),this._emit(" / "),this.compile(g.right,w),this._emit(")")},x.compilePow=function(g,w){this._emit("Math.pow("),this.compile(g.left,w),this._emit(", "),this.compile(g.right,w),this._emit(")")},x.compileNeg=function(g,w){this._emit("-"),this.compile(g.target,w)},x.compilePos=function(g,w){this._emit("+"),this.compile(g.target,w)},x.compileCompare=function(g,w){var C=this;this.compile(g.expr,w),g.ops.forEach(function(y){C._emit(" "+d[y.type]+" "),C.compile(y.expr,w)})},x.compileLookupVal=function(g,w){this._emit("runtime.memberLookup(("),this._compileExpression(g.target,w),this._emit("),"),this._compileExpression(g.val,w),this._emit(")")},x._getNodeName=function(g){switch(g.typename){case"Symbol":return g.value;case"FunCall":return"the return value of ("+this._getNodeName(g.name)+")";case"LookupVal":return this._getNodeName(g.target)+'["'+this._getNodeName(g.val)+'"]';case"Literal":return g.value.toString();default:return"--expression--"}},x.compileFunCall=function(g,w){this._emit("(lineno = "+g.lineno+", colno = "+g.colno+", "),this._emit("runtime.callWrap("),this._compileExpression(g.name,w),this._emit(', "'+this._getNodeName(g.name).replace(/"/g,'\\"')+'", context, '),this._compileAggregate(g.args,w,"[","])"),this._emit(")")},x.compileFilter=function(g,w){var C=g.name;this.assertType(C,s.Symbol),this._emit('env.getFilter("'+C.value+'").call(context, '),this._compileAggregate(g.args,w),this._emit(")")},x.compileFilterAsync=function(g,w){var C=g.name,y=g.symbol.value;this.assertType(C,s.Symbol),w.set(y,y),this._emit('env.getFilter("'+C.value+'").call(context, '),this._compileAggregate(g.args,w),this._emitLine(", "+this._makeCallback(y)),this._addScopeLevel()},x.compileKeywordArgs=function(g,w){this._emit("runtime.makeKeywordArgs("),this.compileDict(g,w),this._emit(")")},x.compileSet=function(g,w){var C=this,y=[];g.targets.forEach(function(S){var A=S.value,_=w.lookup(A);_==null&&(_=C._tmpid(),C._emitLine("var "+_+";")),y.push(_)}),g.value?(this._emit(y.join(" = ")+" = "),this._compileExpression(g.value,w),this._emitLine(";")):(this._emit(y.join(" = ")+" = "),this.compile(g.body,w),this._emitLine(";")),g.targets.forEach(function(S,A){var _=y[A],P=S.value;C._emitLine('frame.set("'+P+'", '+_+", true);"),C._emitLine("if(frame.topLevel) {"),C._emitLine('context.setVariable("'+P+'", '+_+");"),C._emitLine("}"),P.charAt(0)!=="_"&&(C._emitLine("if(frame.topLevel) {"),C._emitLine('context.addExport("'+P+'", '+_+");"),C._emitLine("}"))})},x.compileSwitch=function(g,w){var C=this;this._emit("switch ("),this.compile(g.expr,w),this._emit(") {"),g.cases.forEach(function(y,S){C._emit("case "),C.compile(y.cond,w),C._emit(": "),C.compile(y.body,w),y.body.children.length&&C._emitLine("break;")}),g.default&&(this._emit("default:"),this.compile(g.default,w)),this._emit("}")},x.compileIf=function(g,w,C){var y=this;this._emit("if("),this._compileExpression(g.cond,w),this._emitLine(") {"),this._withScopedSyntax(function(){y.compile(g.body,w),C&&y._emit("cb()")}),g.else_?(this._emitLine(`} -else {`),this._withScopedSyntax(function(){y.compile(g.else_,w),C&&y._emit("cb()")})):C&&(this._emitLine(`} -else {`),this._emit("cb()")),this._emitLine("}")},x.compileIfAsync=function(g,w){this._emit("(function(cb) {"),this.compileIf(g,w,!0),this._emit("})("+this._makeCallback()),this._addScopeLevel()},x._emitLoopBindings=function(g,w,C,y){var S=this,A=[{name:"index",val:C+" + 1"},{name:"index0",val:C},{name:"revindex",val:y+" - "+C},{name:"revindex0",val:y+" - "+C+" - 1"},{name:"first",val:C+" === 0"},{name:"last",val:C+" === "+y+" - 1"},{name:"length",val:y}];A.forEach(function(_){S._emitLine('frame.set("loop.'+_.name+'", '+_.val+");")})},x.compileFor=function(g,w){var C=this,y=this._tmpid(),S=this._tmpid(),A=this._tmpid();if(w=w.push(),this._emitLine("frame = frame.push();"),this._emit("var "+A+" = "),this._compileExpression(g.arr,w),this._emitLine(";"),this._emit("if("+A+") {"),this._emitLine(A+" = runtime.fromIterator("+A+");"),g.name instanceof s.Array){this._emitLine("var "+y+";"),this._emitLine("if(runtime.isArray("+A+")) {"),this._emitLine("var "+S+" = "+A+".length;"),this._emitLine("for("+y+"=0; "+y+" < "+A+".length; "+y+"++) {"),g.name.children.forEach(function(k,T){var N=C._tmpid();C._emitLine("var "+N+" = "+A+"["+y+"]["+T+"];"),C._emitLine('frame.set("'+k+'", '+A+"["+y+"]["+T+"]);"),w.set(g.name.children[T].value,N)}),this._emitLoopBindings(g,A,y,S),this._withScopedSyntax(function(){C.compile(g.body,w)}),this._emitLine("}"),this._emitLine("} else {");var _=g.name.children,P=_[0],F=_[1],B=this._tmpid(),j=this._tmpid();w.set(P.value,B),w.set(F.value,j),this._emitLine(y+" = -1;"),this._emitLine("var "+S+" = runtime.keys("+A+").length;"),this._emitLine("for(var "+B+" in "+A+") {"),this._emitLine(y+"++;"),this._emitLine("var "+j+" = "+A+"["+B+"];"),this._emitLine('frame.set("'+P.value+'", '+B+");"),this._emitLine('frame.set("'+F.value+'", '+j+");"),this._emitLoopBindings(g,A,y,S),this._withScopedSyntax(function(){C.compile(g.body,w)}),this._emitLine("}"),this._emitLine("}")}else{var L=this._tmpid();w.set(g.name.value,L),this._emitLine("var "+S+" = "+A+".length;"),this._emitLine("for(var "+y+"=0; "+y+" < "+A+".length; "+y+"++) {"),this._emitLine("var "+L+" = "+A+"["+y+"];"),this._emitLine('frame.set("'+g.name.value+'", '+L+");"),this._emitLoopBindings(g,A,y,S),this._withScopedSyntax(function(){C.compile(g.body,w)}),this._emitLine("}")}this._emitLine("}"),g.else_&&(this._emitLine("if (!"+S+") {"),this.compile(g.else_,w),this._emitLine("}")),this._emitLine("frame = frame.pop();")},x._compileAsyncLoop=function(g,w,C){var y=this,S=this._tmpid(),A=this._tmpid(),_=this._tmpid(),P=C?"asyncAll":"asyncEach";if(w=w.push(),this._emitLine("frame = frame.push();"),this._emit("var "+_+" = runtime.fromIterator("),this._compileExpression(g.arr,w),this._emitLine(");"),g.name instanceof s.Array){var F=g.name.children.length;this._emit("runtime."+P+"("+_+", "+F+", function("),g.name.children.forEach(function(L){y._emit(L.value+",")}),this._emit(S+","+A+",next) {"),g.name.children.forEach(function(L){var k=L.value;w.set(k,k),y._emitLine('frame.set("'+k+'", '+k+");")})}else{var B=g.name.value;this._emitLine("runtime."+P+"("+_+", 1, function("+B+", "+S+", "+A+",next) {"),this._emitLine('frame.set("'+B+'", '+B+");"),w.set(B,B)}this._emitLoopBindings(g,_,S,A),this._withScopedSyntax(function(){var L;C&&(L=y._pushBuffer()),y.compile(g.body,w),y._emitLine("next("+S+(L?","+L:"")+");"),C&&y._popBuffer()});var j=this._tmpid();this._emitLine("}, "+this._makeCallback(j)),this._addScopeLevel(),C&&this._emitLine(this.buffer+" += "+j+";"),g.else_&&(this._emitLine("if (!"+_+".length) {"),this.compile(g.else_,w),this._emitLine("}")),this._emitLine("frame = frame.pop();")},x.compileAsyncEach=function(g,w){this._compileAsyncLoop(g,w)},x.compileAsyncAll=function(g,w){this._compileAsyncLoop(g,w,!0)},x._compileMacro=function(g,w){var C=this,y=[],S=null,A="macro_"+this._tmpid(),_=w!==void 0;g.args.children.forEach(function(k,T){T===g.args.children.length-1&&k instanceof s.Dict?S=k:(C.assertType(k,s.Symbol),y.push(k))});var P=[].concat(y.map(function(k){return"l_"+k.value}),["kwargs"]),F=y.map(function(k){return'"'+k.value+'"'}),B=(S&&S.children||[]).map(function(k){return'"'+k.key.value+'"'}),j;_?j=w.push(!0):j=new f,this._emitLines("var "+A+" = runtime.makeMacro(","["+F.join(", ")+"], ","["+B.join(", ")+"], ","function ("+P.join(", ")+") {","var callerFrame = frame;","frame = "+(_?"frame.push(true);":"new runtime.Frame();"),"kwargs = kwargs || {};",'if (Object.prototype.hasOwnProperty.call(kwargs, "caller")) {','frame.set("caller", kwargs.caller); }'),y.forEach(function(k){C._emitLine('frame.set("'+k.value+'", l_'+k.value+");"),j.set(k.value,"l_"+k.value)}),S&&S.children.forEach(function(k){var T=k.key.value;C._emit('frame.set("'+T+'", '),C._emit('Object.prototype.hasOwnProperty.call(kwargs, "'+T+'")'),C._emit(' ? kwargs["'+T+'"] : '),C._compileExpression(k.value,j),C._emit(");")});var L=this._pushBuffer();return this._withScopedSyntax(function(){C.compile(g.body,j)}),this._emitLine("frame = "+(_?"frame.pop();":"callerFrame;")),this._emitLine("return new runtime.SafeString("+L+");"),this._emitLine("});"),this._popBuffer(),A},x.compileMacro=function(g,w){var C=this._compileMacro(g),y=g.name.value;w.set(y,C),w.parent?this._emitLine('frame.set("'+y+'", '+C+");"):(g.name.value.charAt(0)!=="_"&&this._emitLine('context.addExport("'+y+'");'),this._emitLine('context.setVariable("'+y+'", '+C+");"))},x.compileCaller=function(g,w){this._emit("(function (){");var C=this._compileMacro(g,w);this._emit("return "+C+";})()")},x._compileGetTemplate=function(g,w,C,y){var S=this._tmpid(),A=this._templateName(),_=this._makeCallback(S),P=C?"true":"false",F=y?"true":"false";return this._emit("env.getTemplate("),this._compileExpression(g.template,w),this._emitLine(", "+P+", "+A+", "+F+", "+_),S},x.compileImport=function(g,w){var C=g.target.value,y=this._compileGetTemplate(g,w,!1,!1);this._addScopeLevel(),this._emitLine(y+".getExported("+(g.withContext?"context.getVariables(), frame, ":"")+this._makeCallback(y)),this._addScopeLevel(),w.set(C,y),w.parent?this._emitLine('frame.set("'+C+'", '+y+");"):this._emitLine('context.setVariable("'+C+'", '+y+");")},x.compileFromImport=function(g,w){var C=this,y=this._compileGetTemplate(g,w,!1,!1);this._addScopeLevel(),this._emitLine(y+".getExported("+(g.withContext?"context.getVariables(), frame, ":"")+this._makeCallback(y)),this._addScopeLevel(),g.names.children.forEach(function(S){var A,_,P=C._tmpid();S instanceof s.Pair?(A=S.key.value,_=S.value.value):(A=S.value,_=A),C._emitLine("if(Object.prototype.hasOwnProperty.call("+y+', "'+A+'")) {'),C._emitLine("var "+P+" = "+y+"."+A+";"),C._emitLine("} else {"),C._emitLine(`cb(new Error("cannot import '`+A+`'")); return;`),C._emitLine("}"),w.set(_,P),w.parent?C._emitLine('frame.set("'+_+'", '+P+");"):C._emitLine('context.setVariable("'+_+'", '+P+");")})},x.compileBlock=function(g){var w=this._tmpid();this.inBlock||this._emit('(parentTemplate ? function(e, c, f, r, cb) { cb(""); } : '),this._emit('context.getBlock("'+g.name.value+'")'),this.inBlock||this._emit(")"),this._emitLine("(env, context, frame, runtime, "+this._makeCallback(w)),this._emitLine(this.buffer+" += "+w+";"),this._addScopeLevel()},x.compileSuper=function(g,w){var C=g.blockName.value,y=g.symbol.value,S=this._makeCallback(y);this._emitLine('context.getSuper(env, "'+C+'", b_'+C+", frame, runtime, "+S),this._emitLine(y+" = runtime.markSafe("+y+");"),this._addScopeLevel(),w.set(y,y)},x.compileExtends=function(g,w){var C=this._tmpid(),y=this._compileGetTemplate(g,w,!0,!1);this._emitLine("parentTemplate = "+y),this._emitLine("for(var "+C+" in parentTemplate.blocks) {"),this._emitLine("context.addBlock("+C+", parentTemplate.blocks["+C+"]);"),this._emitLine("}"),this._addScopeLevel()},x.compileInclude=function(g,w){this._emitLine("var tasks = [];"),this._emitLine("tasks.push("),this._emitLine("function(callback) {");var C=this._compileGetTemplate(g,w,!1,g.ignoreMissing);this._emitLine("callback(null,"+C+");});"),this._emitLine("});");var y=this._tmpid();this._emitLine("tasks.push("),this._emitLine("function(template, callback){"),this._emitLine("template.render(context.getVariables(), frame, "+this._makeCallback(y)),this._emitLine("callback(null,"+y+");});"),this._emitLine("});"),this._emitLine("tasks.push("),this._emitLine("function(result, callback){"),this._emitLine(this.buffer+" += result;"),this._emitLine("callback(null);"),this._emitLine("});"),this._emitLine("env.waterfall(tasks, function(){"),this._addScopeLevel()},x.compileTemplateData=function(g,w){this.compileLiteral(g,w)},x.compileCapture=function(g,w){var C=this,y=this.buffer;this.buffer="output",this._emitLine("(function() {"),this._emitLine('var output = "";'),this._withScopedSyntax(function(){C.compile(g.body,w)}),this._emitLine("return output;"),this._emitLine("})()"),this.buffer=y},x.compileOutput=function(g,w){var C=this,y=g.children;y.forEach(function(S){S instanceof s.TemplateData?S.value&&(C._emit(C.buffer+" += "),C.compileLiteral(S,w),C._emitLine(";")):(C._emit(C.buffer+" += runtime.suppressValue("),C.throwOnUndefined&&C._emit("runtime.ensureDefined("),C.compile(S,w),C.throwOnUndefined&&C._emit(","+g.lineno+","+g.colno+")"),C._emit(`, env.opts.autoescape); -`))})},x.compileRoot=function(g,w){var C=this;w&&this.fail("compileRoot: root node can't have frame"),w=new f,this._emitFuncBegin(g,"root"),this._emitLine("var parentTemplate = null;"),this._compileChildren(g,w),this._emitLine("if(parentTemplate) {"),this._emitLine("parentTemplate.rootRenderFunc(env, context, frame, runtime, cb);"),this._emitLine("} else {"),this._emitLine("cb(null, "+this.buffer+");"),this._emitLine("}"),this._emitFuncEnd(!0),this.inBlock=!0;var y=[],S=g.findAll(s.Block);S.forEach(function(A,_){var P=A.name.value;if(y.indexOf(P)!==-1)throw new Error('Block "'+P+'" defined more than once.');y.push(P),C._emitFuncBegin(A,"b_"+P);var F=new f;C._emitLine("var frame = frame.push(true);"),C.compile(A.body,F),C._emitFuncEnd()}),this._emitLine("return {"),S.forEach(function(A,_){var P="b_"+A.name.value;C._emitLine(P+": "+P+",")}),this._emitLine(`root: root -};`)},x.compile=function(g,w){var C=this["compile"+g.typename];C?C.call(this,g,w):this.fail("compile: Cannot compile node: "+g.typename,g.lineno,g.colno)},x.getCode=function(){return this.codebuf.join("")},v}(b);e.exports={compile:function(v,x,E,g,w){w===void 0&&(w={});var C=new m(g,w.throwOnUndefined),y=(E||[]).map(function(A){return A.preprocess}).filter(function(A){return!!A}),S=y.reduce(function(A,_){return _(A)},v);return C.compile(o.transform(r.parse(S,E,w),x,g)),C.getCode()},Compiler:m}},function(e,t,a){"use strict";function n(l,u){l.prototype=Object.create(u.prototype),l.prototype.constructor=l,i(l,u)}function i(l,u){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,p){return f.__proto__=p,f},i(l,u)}var r=a(4),o=a(1),s=o.EmitterObj;e.exports=function(l){n(u,l);function u(){return l.apply(this,arguments)||this}var c=u.prototype;return c.resolve=function(p,b){return r.resolve(r.dirname(p),b)},c.isRelative=function(p){return p.indexOf("./")===0||p.indexOf("../")===0},u}(s)},function(e,t,a){"use strict";function n(F,B){F.prototype=Object.create(B.prototype),F.prototype.constructor=F,i(F,B)}function i(F,B){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(L,k){return L.__proto__=k,L},i(F,B)}var r=a(12),o=a(15),s=a(0),l=a(5),u=a(18),c=a(10),f=c.FileSystemLoader,p=c.WebLoader,b=c.PrecompiledLoader,d=a(20),m=a(21),h=a(1),v=h.Obj,x=h.EmitterObj,E=a(2),g=E.handleError,w=E.Frame,C=a(22);function y(F,B,j){r(function(){F(B,j)})}var S={type:"code",obj:{root:function(B,j,L,k,T){try{T(null,"")}catch(N){T(g(N,null,null))}}}},A=function(F){n(B,F);function B(){return F.apply(this,arguments)||this}var j=B.prototype;return j.init=function(k,T){var N=this;T=this.opts=T||{},this.opts.dev=!!T.dev,this.opts.autoescape=T.autoescape!=null?T.autoescape:!0,this.opts.throwOnUndefined=!!T.throwOnUndefined,this.opts.trimBlocks=!!T.trimBlocks,this.opts.lstripBlocks=!!T.lstripBlocks,this.loaders=[],k?this.loaders=s.isArray(k)?k:[k]:f?this.loaders=[new f("views")]:p&&(this.loaders=[new p("/views")]),typeof window!="undefined"&&window.nunjucksPrecompiled&&this.loaders.unshift(new b(window.nunjucksPrecompiled)),this._initLoaders(),this.globals=m(),this.filters={},this.tests={},this.asyncFilters=[],this.extensions={},this.extensionsList=[],s._entries(u).forEach(function(M){var D=M[0],V=M[1];return N.addFilter(D,V)}),s._entries(d).forEach(function(M){var D=M[0],V=M[1];return N.addTest(D,V)})},j._initLoaders=function(){var k=this;this.loaders.forEach(function(T){T.cache={},typeof T.on=="function"&&(T.on("update",function(N,M){T.cache[N]=null,k.emit("update",N,M,T)}),T.on("load",function(N,M){k.emit("load",N,M,T)}))})},j.invalidateCache=function(){this.loaders.forEach(function(k){k.cache={}})},j.addExtension=function(k,T){return T.__name=k,this.extensions[k]=T,this.extensionsList.push(T),this},j.removeExtension=function(k){var T=this.getExtension(k);T&&(this.extensionsList=s.without(this.extensionsList,T),delete this.extensions[k])},j.getExtension=function(k){return this.extensions[k]},j.hasExtension=function(k){return!!this.extensions[k]},j.addGlobal=function(k,T){return this.globals[k]=T,this},j.getGlobal=function(k){if(typeof this.globals[k]=="undefined")throw new Error("global not found: "+k);return this.globals[k]},j.addFilter=function(k,T,N){var M=T;return N&&this.asyncFilters.push(k),this.filters[k]=M,this},j.getFilter=function(k){if(!this.filters[k])throw new Error("filter not found: "+k);return this.filters[k]},j.addTest=function(k,T){return this.tests[k]=T,this},j.getTest=function(k){if(!this.tests[k])throw new Error("test not found: "+k);return this.tests[k]},j.resolveTemplate=function(k,T,N){var M=k.isRelative&&T?k.isRelative(N):!1;return M&&k.resolve?k.resolve(T,N):N},j.getTemplate=function(k,T,N,M,D){var V=this,q=this,Z=null;if(k&&k.raw&&(k=k.raw),s.isFunction(N)&&(D=N,N=null,T=T||!1),s.isFunction(T)&&(D=T,T=!1),k instanceof P)Z=k;else{if(typeof k!="string")throw new Error("template names must be a string: "+k);for(var pe=0;pe0&&!this.skip(r.TOKEN_COMMA)&&this.fail("parseFrom: expected comma",d.lineno,d.colno);var E=this.parsePrimary();if(E.value.charAt(0)==="_"&&this.fail("parseFrom: names starting with an underscore cannot be imported",E.lineno,E.colno),this.skipSymbol("as")){var g=this.parsePrimary();h.addChild(new o.Pair(E.lineno,E.colno,E,g))}else h.addChild(E);v=this.parseWithContext()}return new o.FromImport(d.lineno,d.colno,m,h,v)},p.parseBlock=function(){var d=this.peekToken();this.skipSymbol("block")||this.fail("parseBlock: expected block",d.lineno,d.colno);var m=new o.Block(d.lineno,d.colno);m.name=this.parsePrimary(),m.name instanceof o.Symbol||this.fail("parseBlock: variable name expected",d.lineno,d.colno),this.advanceAfterBlockEnd(d.value),m.body=this.parseUntilBlocks("endblock"),this.skipSymbol("endblock"),this.skipSymbol(m.name.value);var h=this.peekToken();return h||this.fail("parseBlock: expected endblock, got end of file"),this.advanceAfterBlockEnd(h.value),m},p.parseExtends=function(){var d="extends",m=this.peekToken();this.skipSymbol(d)||this.fail("parseTemplateRef: expected "+d);var h=new o.Extends(m.lineno,m.colno);return h.template=this.parseExpression(),this.advanceAfterBlockEnd(m.value),h},p.parseInclude=function(){var d="include",m=this.peekToken();this.skipSymbol(d)||this.fail("parseInclude: expected "+d);var h=new o.Include(m.lineno,m.colno);return h.template=this.parseExpression(),this.skipSymbol("ignore")&&this.skipSymbol("missing")&&(h.ignoreMissing=!0),this.advanceAfterBlockEnd(m.value),h},p.parseIf=function(){var d=this.peekToken(),m;this.skipSymbol("if")||this.skipSymbol("elif")||this.skipSymbol("elseif")?m=new o.If(d.lineno,d.colno):this.skipSymbol("ifAsync")?m=new o.IfAsync(d.lineno,d.colno):this.fail("parseIf: expected if, elif, or elseif",d.lineno,d.colno),m.cond=this.parseExpression(),this.advanceAfterBlockEnd(d.value),m.body=this.parseUntilBlocks("elif","elseif","else","endif");var h=this.peekToken();switch(h&&h.value){case"elseif":case"elif":m.else_=this.parseIf();break;case"else":this.advanceAfterBlockEnd(),m.else_=this.parseUntilBlocks("endif"),this.advanceAfterBlockEnd();break;case"endif":m.else_=null,this.advanceAfterBlockEnd();break;default:this.fail("parseIf: expected elif, else, or endif, got end of file")}return m},p.parseSet=function(){var d=this.peekToken();this.skipSymbol("set")||this.fail("parseSet: expected set",d.lineno,d.colno);for(var m=new o.Set(d.lineno,d.colno,[]),h;(h=this.parsePrimary())&&(m.targets.push(h),!!this.skip(r.TOKEN_COMMA)););return this.skipValue(r.TOKEN_OPERATOR,"=")?(m.value=this.parseExpression(),this.advanceAfterBlockEnd(d.value)):this.skip(r.TOKEN_BLOCK_END)?(m.body=new o.Capture(d.lineno,d.colno,this.parseUntilBlocks("endset")),m.value=null,this.advanceAfterBlockEnd()):this.fail("parseSet: expected = or block end in set tag",d.lineno,d.colno),m},p.parseSwitch=function(){var d="switch",m="endswitch",h="case",v="default",x=this.peekToken();!this.skipSymbol(d)&&!this.skipSymbol(h)&&!this.skipSymbol(v)&&this.fail('parseSwitch: expected "switch," "case" or "default"',x.lineno,x.colno);var E=this.parseExpression();this.advanceAfterBlockEnd(d),this.parseUntilBlocks(h,v,m);var g=this.peekToken(),w=[],C;do{this.skipSymbol(h);var y=this.parseExpression();this.advanceAfterBlockEnd(d);var S=this.parseUntilBlocks(h,v,m);w.push(new o.Case(g.line,g.col,y,S)),g=this.peekToken()}while(g&&g.value===h);switch(g.value){case v:this.advanceAfterBlockEnd(),C=this.parseUntilBlocks(m),this.advanceAfterBlockEnd();break;case m:this.advanceAfterBlockEnd();break;default:this.fail('parseSwitch: expected "case," "default" or "endswitch," got EOF.')}return new o.Switch(x.lineno,x.colno,E,w,C)},p.parseStatement=function(){var d=this.peekToken(),m;if(d.type!==r.TOKEN_SYMBOL&&this.fail("tag name expected",d.lineno,d.colno),this.breakOnBlocks&&l.indexOf(this.breakOnBlocks,d.value)!==-1)return null;switch(d.value){case"raw":return this.parseRaw();case"verbatim":return this.parseRaw("verbatim");case"if":case"ifAsync":return this.parseIf();case"for":case"asyncEach":case"asyncAll":return this.parseFor();case"block":return this.parseBlock();case"extends":return this.parseExtends();case"include":return this.parseInclude();case"set":return this.parseSet();case"macro":return this.parseMacro();case"call":return this.parseCall();case"import":return this.parseImport();case"from":return this.parseFrom();case"filter":return this.parseFilterStatement();case"switch":return this.parseSwitch();default:if(this.extensions.length)for(var h=0;h0;){var w=E[0],C=E[1],y=E[2];y===d?v+=1:y===m&&(v-=1),v===0?(x+=C,this.tokens.backN(w.length-C.length)):x+=w}return new o.Output(g.lineno,g.colno,[new o.TemplateData(g.lineno,g.colno,x)])},p.parsePostfix=function(d){for(var m,h=this.peekToken();h;){if(h.type===r.TOKEN_LEFT_PAREN)d=new o.FunCall(h.lineno,h.colno,d,this.parseSignature());else if(h.type===r.TOKEN_LEFT_BRACKET)m=this.parseAggregate(),m.children.length>1&&this.fail("invalid index"),d=new o.LookupVal(h.lineno,h.colno,d,m.children[0]);else if(h.type===r.TOKEN_OPERATOR&&h.value==="."){this.nextToken();var v=this.nextToken();v.type!==r.TOKEN_SYMBOL&&this.fail("expected name as lookup value, got "+v.value,v.lineno,v.colno),m=new o.Literal(v.lineno,v.colno,v.value),d=new o.LookupVal(h.lineno,h.colno,d,m)}else break;h=this.peekToken()}return d},p.parseExpression=function(){var d=this.parseInlineIf();return d},p.parseInlineIf=function(){var d=this.parseOr();if(this.skipSymbol("if")){var m=this.parseOr(),h=d;d=new o.InlineIf(d.lineno,d.colno),d.body=h,d.cond=m,this.skipSymbol("else")?d.else_=this.parseOr():d.else_=null}return d},p.parseOr=function(){for(var d=this.parseAnd();this.skipSymbol("or");){var m=this.parseAnd();d=new o.Or(d.lineno,d.colno,d,m)}return d},p.parseAnd=function(){for(var d=this.parseNot();this.skipSymbol("and");){var m=this.parseNot();d=new o.And(d.lineno,d.colno,d,m)}return d},p.parseNot=function(){var d=this.peekToken();return this.skipSymbol("not")?new o.Not(d.lineno,d.colno,this.parseNot()):this.parseIn()},p.parseIn=function(){for(var d=this.parseIs();;){var m=this.nextToken();if(!m)break;var h=m.type===r.TOKEN_SYMBOL&&m.value==="not";if(h||this.pushToken(m),this.skipSymbol("in")){var v=this.parseIs();d=new o.In(d.lineno,d.colno,d,v),h&&(d=new o.Not(d.lineno,d.colno,d))}else{h&&this.pushToken(m);break}}return d},p.parseIs=function(){var d=this.parseCompare();if(this.skipSymbol("is")){var m=this.skipSymbol("not"),h=this.parseCompare();d=new o.Is(d.lineno,d.colno,d,h),m&&(d=new o.Not(d.lineno,d.colno,d))}return d},p.parseCompare=function(){for(var d=["==","===","!=","!==","<",">","<=",">="],m=this.parseConcat(),h=[];;){var v=this.nextToken();if(v)if(d.indexOf(v.value)!==-1)h.push(new o.CompareOperand(v.lineno,v.colno,this.parseConcat(),v.value));else{this.pushToken(v);break}else break}return h.length?new o.Compare(h[0].lineno,h[0].colno,m,h):m},p.parseConcat=function(){for(var d=this.parseAdd();this.skipValue(r.TOKEN_TILDE,"~");){var m=this.parseAdd();d=new o.Concat(d.lineno,d.colno,d,m)}return d},p.parseAdd=function(){for(var d=this.parseSub();this.skipValue(r.TOKEN_OPERATOR,"+");){var m=this.parseSub();d=new o.Add(d.lineno,d.colno,d,m)}return d},p.parseSub=function(){for(var d=this.parseMul();this.skipValue(r.TOKEN_OPERATOR,"-");){var m=this.parseMul();d=new o.Sub(d.lineno,d.colno,d,m)}return d},p.parseMul=function(){for(var d=this.parseDiv();this.skipValue(r.TOKEN_OPERATOR,"*");){var m=this.parseDiv();d=new o.Mul(d.lineno,d.colno,d,m)}return d},p.parseDiv=function(){for(var d=this.parseFloorDiv();this.skipValue(r.TOKEN_OPERATOR,"/");){var m=this.parseFloorDiv();d=new o.Div(d.lineno,d.colno,d,m)}return d},p.parseFloorDiv=function(){for(var d=this.parseMod();this.skipValue(r.TOKEN_OPERATOR,"//");){var m=this.parseMod();d=new o.FloorDiv(d.lineno,d.colno,d,m)}return d},p.parseMod=function(){for(var d=this.parsePow();this.skipValue(r.TOKEN_OPERATOR,"%");){var m=this.parsePow();d=new o.Mod(d.lineno,d.colno,d,m)}return d},p.parsePow=function(){for(var d=this.parseUnary();this.skipValue(r.TOKEN_OPERATOR,"**");){var m=this.parseUnary();d=new o.Pow(d.lineno,d.colno,d,m)}return d},p.parseUnary=function(d){var m=this.peekToken(),h;return this.skipValue(r.TOKEN_OPERATOR,"-")?h=new o.Neg(m.lineno,m.colno,this.parseUnary(!0)):this.skipValue(r.TOKEN_OPERATOR,"+")?h=new o.Pos(m.lineno,m.colno,this.parseUnary(!0)):h=this.parsePrimary(),d||(h=this.parseFilter(h)),h},p.parsePrimary=function(d){var m=this.nextToken(),h,v=null;if(m?m.type===r.TOKEN_STRING?h=m.value:m.type===r.TOKEN_INT?h=parseInt(m.value,10):m.type===r.TOKEN_FLOAT?h=parseFloat(m.value):m.type===r.TOKEN_BOOLEAN?m.value==="true"?h=!0:m.value==="false"?h=!1:this.fail("invalid boolean: "+m.value,m.lineno,m.colno):m.type===r.TOKEN_NONE?h=null:m.type===r.TOKEN_REGEX&&(h=new RegExp(m.value.body,m.value.flags)):this.fail("expected expression, got end of file"),h!==void 0?v=new o.Literal(m.lineno,m.colno,h):m.type===r.TOKEN_SYMBOL?v=new o.Symbol(m.lineno,m.colno,m.value):(this.pushToken(m),v=this.parseAggregate()),d||(v=this.parsePostfix(v)),v)return v;throw this.error("unexpected token: "+m.value,m.lineno,m.colno)},p.parseFilterName=function(){for(var d=this.expect(r.TOKEN_SYMBOL),m=d.value;this.skipValue(r.TOKEN_OPERATOR,".");)m+="."+this.expect(r.TOKEN_SYMBOL).value;return new o.Symbol(d.lineno,d.colno,m)},p.parseFilterArgs=function(d){if(this.peekToken().type===r.TOKEN_LEFT_PAREN){var m=this.parsePostfix(d);return m.args.children}return[]},p.parseFilter=function(d){for(;this.skip(r.TOKEN_PIPE);){var m=this.parseFilterName();d=new o.Filter(m.lineno,m.colno,m,new o.NodeList(m.lineno,m.colno,[d].concat(this.parseFilterArgs(d))))}return d},p.parseFilterStatement=function(){var d=this.peekToken();this.skipSymbol("filter")||this.fail("parseFilterStatement: expected filter");var m=this.parseFilterName(),h=this.parseFilterArgs(m);this.advanceAfterBlockEnd(d.value);var v=new o.Capture(m.lineno,m.colno,this.parseUntilBlocks("endfilter"));this.advanceAfterBlockEnd();var x=new o.Filter(m.lineno,m.colno,m,new o.NodeList(m.lineno,m.colno,[v].concat(h)));return new o.Output(m.lineno,m.colno,[x])},p.parseAggregate=function(){var d=this.nextToken(),m;switch(d.type){case r.TOKEN_LEFT_PAREN:m=new o.Group(d.lineno,d.colno);break;case r.TOKEN_LEFT_BRACKET:m=new o.Array(d.lineno,d.colno);break;case r.TOKEN_LEFT_CURLY:m=new o.Dict(d.lineno,d.colno);break;default:return null}for(;;){var h=this.peekToken().type;if(h===r.TOKEN_RIGHT_PAREN||h===r.TOKEN_RIGHT_BRACKET||h===r.TOKEN_RIGHT_CURLY){this.nextToken();break}if(m.children.length>0&&(this.skip(r.TOKEN_COMMA)||this.fail("parseAggregate: expected comma after expression",d.lineno,d.colno)),m instanceof o.Dict){var v=this.parsePrimary();this.skip(r.TOKEN_COLON)||this.fail("parseAggregate: expected colon after dict key",d.lineno,d.colno);var x=this.parseExpression();m.addChild(new o.Pair(v.lineno,v.colno,v,x))}else{var E=this.parseExpression();m.addChild(E)}}return m},p.parseSignature=function(d,m){var h=this.peekToken();if(!m&&h.type!==r.TOKEN_LEFT_PAREN){if(d)return null;this.fail("expected arguments",h.lineno,h.colno)}h.type===r.TOKEN_LEFT_PAREN&&(h=this.nextToken());for(var v=new o.NodeList(h.lineno,h.colno),x=new o.KeywordArgs(h.lineno,h.colno),E=!1;;){if(h=this.peekToken(),!m&&h.type===r.TOKEN_RIGHT_PAREN){this.nextToken();break}else if(m&&h.type===r.TOKEN_BLOCK_END)break;if(E&&!this.skip(r.TOKEN_COMMA))this.fail("parseSignature: expected comma after expression",h.lineno,h.colno);else{var g=this.parseExpression();this.skipValue(r.TOKEN_OPERATOR,"=")?x.addChild(new o.Pair(g.lineno,g.colno,g,this.parseExpression())):v.addChild(g)}E=!0}return x.children.length&&v.addChild(x),v},p.parseUntilBlocks=function(){for(var d=this.breakOnBlocks,m=arguments.length,h=new Array(m),v=0;v=","//","**"],J=he+this.current(),H;switch(n.indexOf(z,J)!==-1&&(this.forward(),he=J,n.indexOf(z,J+this.current())!==-1&&(he=J+this.current(),this.forward())),he){case"(":H=w;break;case")":H=C;break;case"[":H=y;break;case"]":H=S;break;case"{":H=A;break;case"}":H=_;break;case",":H=F;break;case":":H=B;break;case"~":H=j;break;case"|":H=L;break;default:H=P}return Z(H,he,U,X)}else if($=this._extractUntil(i+r),$.match(/^[-+]?[0-9]+$/))if(this.current()==="."){this.forward();var ne=this._extract(o);return Z(T,$+"."+ne,U,X)}else return Z(k,$,U,X);else{if($.match(/^(true|false)$/))return Z(N,$,U,X);if($==="none")return Z(M,$,U,X);if($==="null")return Z(M,$,U,X);if($)return Z(D,$,U,X);throw new Error("Unexpected value while parsing: "+$)}}else{var K=this.tags.BLOCK_START.charAt(0)+this.tags.VARIABLE_START.charAt(0)+this.tags.COMMENT_START.charAt(0)+this.tags.COMMENT_END.charAt(0);if(this.isFinished())return null;if(($=this._extractString(this.tags.BLOCK_START+"-"))||($=this._extractString(this.tags.BLOCK_START)))return this.in_code=!0,Z(h,$,U,X);if(($=this._extractString(this.tags.VARIABLE_START+"-"))||($=this._extractString(this.tags.VARIABLE_START)))return this.in_code=!0,Z(x,$,U,X);$="";var Ae,ue=!1;for(this._matches(this.tags.COMMENT_START)&&(ue=!0,$=this._extractString(this.tags.COMMENT_START));(Ae=this._extractUntil(K))!==null;)if($+=Ae,(this._matches(this.tags.BLOCK_START)||this._matches(this.tags.VARIABLE_START)||this._matches(this.tags.COMMENT_START))&&!ue){if(this.lstripBlocks&&this._matches(this.tags.BLOCK_START)&&this.colno>0&&this.colno<=$.length){var Ne=$.slice(-this.colno);if(/^\s+$/.test(Ne)&&($=$.slice(0,-this.colno),!$.length))return this.nextToken()}break}else if(this._matches(this.tags.COMMENT_END)){if(!ue)throw new Error("unexpected end of comment");$+=this._extractString(this.tags.COMMENT_END);break}else $+=this.current(),this.forward();if(Ae===null&&ue)throw new Error("expected end of comment, got end of file");return Z(ue?g:m,$,U,X)}},ee._parseString=function(U){this.forward();for(var X="";!this.isFinished()&&this.current()!==U;){var $=this.current();if($==="\\"){switch(this.forward(),this.current()){case"n":X+=` -`;break;case"t":X+=" ";break;case"r":X+="\r";break;default:X+=this.current()}this.forward()}else X+=$,this.forward()}return this.forward(),X},ee._matches=function(U){if(this.index+U.length>this.len)return null;var X=this.str.slice(this.index,this.index+U.length);return X===U},ee._extractString=function(U){return this._matches(U)?(this.forwardN(U.length),U):null},ee._extractUntil=function(U){return this._extractMatching(!0,U||"")},ee._extract=function(U){return this._extractMatching(!1,U)},ee._extractMatching=function(U,X){if(this.isFinished())return null;var $=X.indexOf(this.current());if(U&&$===-1||!U&&$!==-1){var he=this.current();this.forward();for(var qe=X.indexOf(this.current());(U&&qe===-1||!U&&qe!==-1)&&!this.isFinished();)he+=this.current(),this.forward(),qe=X.indexOf(this.current());return he}return""},ee._extractRegex=function(U){var X=this.currentStr().match(U);return X?(this.forwardN(X[0].length),X):null},ee.isFinished=function(){return this.index>=this.len},ee.forwardN=function(U){for(var X=0;Xu){for(var h=0,v=r.length-l;h0&&(B=A[0]),B instanceof Error)throw B;var j=new Error("Unhandled error."+(B?" ("+B.message+")":""));throw j.context=B,j}var L=F[S];if(L===void 0)return!1;if(typeof L=="function")i(L,this,A);else for(var k=L.length,T=v(L,k),_=0;_0&&B.length>P&&!B.warned){B.warned=!0;var j=new Error("Possible EventEmitter memory leak detected. "+B.length+" "+String(S)+" listeners added. Use emitter.setMaxListeners() to increase limit");j.name="MaxListenersExceededWarning",j.emitter=y,j.type=S,j.count=B.length,o(j)}return y}l.prototype.addListener=function(S,A){return p(this,S,A,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(S,A){return p(this,S,A,!0)};function b(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(y,S,A){var _={fired:!1,wrapFn:void 0,target:y,type:S,listener:A},P=b.bind(_);return P.listener=A,_.wrapFn=P,P}l.prototype.once=function(S,A){return c(A),this.on(S,d(this,S,A)),this},l.prototype.prependOnceListener=function(S,A){return c(A),this.prependListener(S,d(this,S,A)),this},l.prototype.removeListener=function(S,A){var _,P,F,B,j;if(c(A),P=this._events,P===void 0)return this;if(_=P[S],_===void 0)return this;if(_===A||_.listener===A)--this._eventsCount===0?this._events=Object.create(null):(delete P[S],P.removeListener&&this.emit("removeListener",S,_.listener||A));else if(typeof _!="function"){for(F=-1,B=_.length-1;B>=0;B--)if(_[B]===A||_[B].listener===A){j=_[B].listener,F=B;break}if(F<0)return this;F===0?_.shift():x(_,F),_.length===1&&(P[S]=_[0]),P.removeListener!==void 0&&this.emit("removeListener",S,j||A)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(S){var A,_,P;if(_=this._events,_===void 0)return this;if(_.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):_[S]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete _[S]),this;if(arguments.length===0){var F=Object.keys(_),B;for(P=0;P=0;P--)this.removeListener(S,A[P]);return this};function m(y,S,A){var _=y._events;if(_===void 0)return[];var P=_[S];return P===void 0?[]:typeof P=="function"?A?[P.listener||P]:[P]:A?E(P):v(P,P.length)}l.prototype.listeners=function(S){return m(this,S,!0)},l.prototype.rawListeners=function(S){return m(this,S,!1)},l.listenerCount=function(y,S){return typeof y.listenerCount=="function"?y.listenerCount(S):h.call(y,S)},l.prototype.listenerCount=h;function h(y){var S=this._events;if(S!==void 0){var A=S[y];if(typeof A=="function")return 1;if(A!==void 0)return A.length}return 0}l.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]};function v(y,S){for(var A=new Array(S),_=0;_=z)return R;var J=z-R.length,H=n.repeat(" ",J/2-J%2),ne=n.repeat(" ",J/2);return i.copySafeness(R,H+R+ne)}r.center=c;function f(R,z,J){return J?R||z:R!==void 0?R:z}r.default=f;function p(R,z,J){if(!n.isObject(R))throw new n.TemplateError("dictsort filter: val must be an object");var H=[];for(var ne in R)H.push([ne,R[ne]]);var K;if(J===void 0||J==="key")K=0;else if(J==="value")K=1;else throw new n.TemplateError("dictsort filter: You can only sort by either key or value");return H.sort(function(Ae,ue){var Ne=Ae[K],Nt=ue[K];return z||(n.isString(Ne)&&(Ne=Ne.toUpperCase()),n.isString(Nt)&&(Nt=Nt.toUpperCase())),Ne>Nt?1:Ne===Nt?0:-1}),H}r.dictsort=p;function b(R,z){return JSON.stringify(R,null,z)}r.dump=b;function d(R){return R instanceof i.SafeString?R:(R=R==null?"":R,i.markSafe(n.escape(R.toString())))}r.escape=d;function m(R){return R instanceof i.SafeString?R:(R=R==null?"":R,i.markSafe(R.toString()))}r.safe=m;function h(R){return R[0]}r.first=h;function v(R){return R=R==null?"":R,i.markSafe(n.escape(R.toString()))}r.forceescape=v;function x(R,z){return n.groupBy(R,z,this.env.opts.throwOnUndefined)}r.groupby=x;function E(R,z,J){if(R=o(R,""),R==="")return"";z=z||4;var H=R.split(` -`),ne=n.repeat(" ",z),K=H.map(function(Ae,ue){return ue===0&&!J?Ae:""+ne+Ae}).join(` -`);return i.copySafeness(R,K)}r.indent=E;function g(R,z,J){return z=z||"",J&&(R=n.map(R,function(H){return H[J]})),R.join(z)}r.join=g;function w(R){return R[R.length-1]}r.last=w;function C(R){var z=o(R,"");return z!==void 0?typeof Map=="function"&&z instanceof Map||typeof Set=="function"&&z instanceof Set?z.size:n.isObject(z)&&!(z instanceof i.SafeString)?n.keys(z).length:z.length:0}r.length=C;function y(R){if(n.isString(R))return R.split("");if(n.isObject(R))return n._entries(R||{}).map(function(z){var J=z[0],H=z[1];return{key:J,value:H}});if(n.isArray(R))return R;throw new n.TemplateError("list filter: type not iterable")}r.list=y;function S(R){return R=o(R,""),R.toLowerCase()}r.lower=S;function A(R){return R==null?"":i.copySafeness(R,R.replace(/\r\n|\n/g,`
-`))}r.nl2br=A;function _(R){return R[Math.floor(Math.random()*R.length)]}r.random=_;function P(R){function z(J,H,ne){H===void 0&&(H="truthy");var K=this,Ae=K.env.getTest(H);return n.toArray(J).filter(function(Ne){return Ae.call(K,Ne,ne)===R})}return z}r.reject=P(!1);function F(R,z){return R.filter(function(J){return!J[z]})}r.rejectattr=F,r.select=P(!0);function B(R,z){return R.filter(function(J){return!!J[z]})}r.selectattr=B;function j(R,z,J,H){var ne=R;if(z instanceof RegExp)return R.replace(z,J);typeof H=="undefined"&&(H=-1);var K="";if(typeof z=="number")z=""+z;else if(typeof z!="string")return R;if(typeof R=="number"&&(R=""+R),typeof R!="string"&&!(R instanceof i.SafeString))return R;if(z==="")return K=J+R.split("").join(J)+J,i.copySafeness(R,K);var Ae=R.indexOf(z);if(H===0||Ae===-1)return R;for(var ue=0,Ne=0;Ae>-1&&(H===-1||Ne=ne&&Vt.push(J),K.push(Vt)}return K}r.slice=T;function N(R,z,J){return J===void 0&&(J=0),z&&(R=n.map(R,function(H){return H[z]})),J+R.reduce(function(H,ne){return H+ne},0)}r.sum=N,r.sort=i.makeMacro(["value","reverse","case_sensitive","attribute"],[],function(z,J,H,ne){var K=this,Ae=n.map(z,function(Ne){return Ne}),ue=n.getAttrGetter(ne);return Ae.sort(function(Ne,Nt){var Vt=ne?ue(Ne):Ne,Ia=ne?ue(Nt):Nt;if(K.env.opts.throwOnUndefined&&ne&&(Vt===void 0||Ia===void 0))throw new TypeError('sort: attribute "'+ne+'" resolved to undefined');return!H&&n.isString(Vt)&&n.isString(Ia)&&(Vt=Vt.toLowerCase(),Ia=Ia.toLowerCase()),VtIa?J?-1:1:0}),Ae});function M(R){return i.copySafeness(R,R)}r.string=M;function D(R,z){R=o(R,"");var J=/<\/?([a-z][a-z0-9]*)\b[^>]*>|/gi,H=q(R.replace(J,"")),ne="";return z?ne=H.replace(/^ +| +$/gm,"").replace(/ +/g," ").replace(/(\r\n)/g,` -`).replace(/\n\n\n+/g,` - -`):ne=H.replace(/\s+/gi," "),i.copySafeness(R,ne)}r.striptags=D;function V(R){R=o(R,"");var z=R.split(" ").map(function(J){return u(J)});return i.copySafeness(R,z.join(" "))}r.title=V;function q(R){return i.copySafeness(R,R.replace(/^\s*|\s*$/g,""))}r.trim=q;function Z(R,z,J,H){var ne=R;if(R=o(R,""),z=z||255,R.length<=z)return R;if(J)R=R.substring(0,z);else{var K=R.lastIndexOf(" ",z);K===-1&&(K=z),R=R.substring(0,K)}return R+=H!=null?H:"...",i.copySafeness(ne,R)}r.truncate=Z;function pe(R){return R=o(R,""),R.toUpperCase()}r.upper=pe;function fe(R){var z=encodeURIComponent;if(n.isString(R))return z(R);var J=n.isArray(R)?R:n._entries(R);return J.map(function(H){var ne=H[0],K=H[1];return z(ne)+"="+z(K)}).join("&")}r.urlencode=fe;var ee=/^(?:\(|<|<)?(.*?)(?:\.|,|\)|\n|>)?$/,oe=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,U=/^https?:\/\/.*$/,X=/^www\./,$=/\.(?:org|net|com)(?:\:|\/|$)/;function he(R,z,J){s(z)&&(z=1/0);var H=J===!0?' rel="nofollow"':"",ne=R.split(/(\s+)/).filter(function(K){return K&&K.length}).map(function(K){var Ae=K.match(ee),ue=Ae?Ae[1]:K,Ne=ue.substr(0,z);return U.test(ue)?'"+Ne+"":X.test(ue)?'"+Ne+"":oe.test(ue)?''+ue+"":$.test(ue)?'"+Ne+"":K});return ne.join("")}r.urlize=he;function qe(R){R=o(R,"");var z=R?R.match(/\w+/g):null;return z?z.length:null}r.wordcount=qe;function ze(R,z){var J=parseFloat(R);return s(J)?z:J}r.float=ze;var ht=i.makeMacro(["value","default","base"],[],function(z,J,H){H===void 0&&(H=10);var ne=parseInt(z,H);return s(ne)?J:ne});r.int=ht,r.d=r.default,r.e=r.escape},function(e,t,a){"use strict";function n(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,i(s,l)}function i(s,l){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,f){return c.__proto__=f,c},i(s,l)}var r=a(6),o=function(s){n(l,s);function l(c){var f;return f=s.call(this)||this,f.precompiled=c||{},f}var u=l.prototype;return u.getSource=function(f){return this.precompiled[f]?{src:{type:"code",obj:this.precompiled[f]},path:f}:null},l}(r);e.exports={PrecompiledLoader:o}},function(e,t,a){"use strict";var n=a(2).SafeString;function i(_){return typeof _=="function"}t.callable=i;function r(_){return _!==void 0}t.defined=r;function o(_,P){return _%P===0}t.divisibleby=o;function s(_){return _ instanceof n}t.escaped=s;function l(_,P){return _===P}t.equalto=l,t.eq=t.equalto,t.sameas=t.equalto;function u(_){return _%2===0}t.even=u;function c(_){return!_}t.falsy=c;function f(_,P){return _>=P}t.ge=f;function p(_,P){return _>P}t.greaterthan=p,t.gt=t.greaterthan;function b(_,P){return _<=P}t.le=b;function d(_,P){return _=o.length&&(s=0),this.current=o[s],this.current}}}function i(o){o=o||",";var s=!0;return function(){var l=s?"":o;return s=!1,l}}function r(){return{range:function(s,l,u){typeof l=="undefined"?(l=s,s=0,u=1):u||(u=1);var c=[];if(u>0)for(var f=s;fl;p+=u)c.push(p);return c},cycler:function(){return n(Array.prototype.slice.call(arguments))},joiner:function(s){return i(s)}}}e.exports=r},function(e,t,a){var n=a(4);e.exports=function(r,o){function s(l,u){if(this.name=l,this.path=l,this.defaultEngine=u.defaultEngine,this.ext=n.extname(l),!this.ext&&!this.defaultEngine)throw new Error("No default engine was specified and no extension was provided.");this.ext||(this.name+=this.ext=(this.defaultEngine[0]!=="."?".":"")+this.defaultEngine)}return s.prototype.render=function(u,c){r.render(this.name,u,c)},o.set("view",s),o.set("nunjucksEnv",r),r}},function(e,t,a){"use strict";var n=a(4),i=a(4),r=a(0),o=r._prettifyError,s=a(5),l=a(7),u=l.Environment,c=a(24);function f(m,h){return Array.isArray(h)?h.some(function(v){return m.match(v)}):!1}function p(m,h){h=h||{},h.isString=!0;var v=h.env||new u([]),x=h.wrapper||c;if(!h.name)throw new Error('the "name" option is required when compiling a string');return x([d(m,h.name,v)],h)}function b(m,h){h=h||{};var v=h.env||new u([]),x=h.wrapper||c;if(h.isString)return p(m,h);var E=n.existsSync(m)&&n.statSync(m),g=[],w=[];function C(A){n.readdirSync(A).forEach(function(_){var P=i.join(A,_),F=P.substr(i.join(m,"/").length),B=n.statSync(P);B&&B.isDirectory()?(F+="/",f(F,h.exclude)||C(P)):f(F,h.include)&&w.push(P)})}if(E.isFile())g.push(d(n.readFileSync(m,"utf-8"),h.name||m,v));else if(E.isDirectory()){C(m);for(var y=0;yw.length||S>0&&_>=y||S<0&&_<=y);_+=S)A.push(i.memberLookup(w,_));return A}function x(w,C){return Object.prototype.hasOwnProperty.call(w,C)}var E={pop:function(C){if(C===void 0)return this.pop();if(C>=this.length||C<0)throw new Error("KeyError");return this.splice(C,1)},append:function(C){return this.push(C)},remove:function(C){for(var y=0;y{var Rs=require("buffer"),ea=Rs.Buffer;function Qx(e,t){for(var a in e)t[a]=e[a]}ea.from&&ea.alloc&&ea.allocUnsafe&&ea.allocUnsafeSlow?ey.exports=Rs:(Qx(Rs,Sp),Sp.Buffer=pn);function pn(e,t,a){return ea(e,t,a)}pn.prototype=Object.create(ea.prototype);Qx(ea,pn);pn.from=function(e,t,a){if(typeof e=="number")throw new TypeError("Argument must not be a number");return ea(e,t,a)};pn.alloc=function(e,t,a){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=ea(e);return t!==void 0?typeof a=="string"?n.fill(t,a):n.fill(t):n.fill(0),n};pn.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return ea(e)};pn.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Rs.SlowBuffer(e)}});var oy=O((JG,Cp)=>{"use strict";Cp.exports=VO;Cp.exports.parse=qO;var ty=require("path").basename,BO=Bs().Buffer,NO=/[\x00-\x20"'()*,/:;<=>?@[\\\]{}\x7f]/g,jO=/%[0-9A-Fa-f]{2}/,LO=/%([0-9A-Fa-f]{2})/g,ny=/[^\x20-\x7e\xa0-\xff]/g,MO=/\\([\u0000-\u007f])/g,DO=/([\\"])/g,ay=/;[\x09\x20]*([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*=[\x09\x20]*("(?:[\x20!\x23-\x5b\x5d-\x7e\x80-\xff]|\\[\x20-\x7e])*"|[!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*/g,zO=/^[\x20-\x7e\x80-\xff]+$/,GO=/^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/,HO=/^([A-Za-z0-9!#$%&+\-^_`{}~]+)'(?:[A-Za-z]{2,3}(?:-[A-Za-z]{3}){0,3}|[A-Za-z]{4,8}|)'((?:%[0-9A-Fa-f]{2}|[A-Za-z0-9!#$&+.^_`|~-])+)$/,WO=/^([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*(?:$|;)/;function VO(e,t){var a=t||{},n=a.type||"attachment",i=UO(e,a.fallback);return JO(new ry(n,i))}function UO(e,t){if(e!==void 0){var a={};if(typeof e!="string")throw new TypeError("filename must be a string");if(t===void 0&&(t=!0),typeof t!="string"&&typeof t!="boolean")throw new TypeError("fallback must be a string or boolean");if(typeof t=="string"&&ny.test(t))throw new TypeError("fallback must be ISO-8859-1 string");var n=ty(e),i=zO.test(n),r=typeof t!="string"?t&&iy(n):ty(t),o=typeof r=="string"&&r!==n;return(o||!i||jO.test(n))&&(a["filename*"]=n),(i||o)&&(a.filename=o?r:n),a}}function JO(e){var t=e.parameters,a=e.type;if(!a||typeof a!="string"||!GO.test(a))throw new TypeError("invalid type");var n=String(a).toLowerCase();if(t&&typeof t=="object")for(var i,r=Object.keys(t).sort(),o=0;o{"use strict";sy.exports=e=>{let t=new Uint8Array(e);if(!(t&&t.length>1))return null;let a=(n,i)=>{i=Object.assign({offset:0},i);for(let r=0;rs[o]===66&&s[o+1]===130);if(i>=0){let r=i+3,o=s=>Array.from(s).every((l,u)=>n[r+u]===l.charCodeAt(0));if(o("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(o("webm"))return{ext:"webm",mime:"video/webm"}}}return a([0,0,0,20,102,116,121,112,113,116,32,32])||a([102,114,101,101],{offset:4})||a([102,116,121,112,113,116,32,32],{offset:4})||a([109,100,97,116],{offset:4})||a([119,105,100,101],{offset:4})?{ext:"mov",mime:"video/quicktime"}:a([82,73,70,70])&&a([65,86,73],{offset:8})?{ext:"avi",mime:"video/x-msvideo"}:a([48,38,178,117,142,102,207,17,166,217])?{ext:"wmv",mime:"video/x-ms-wmv"}:a([0,0,1,186])?{ext:"mpg",mime:"video/mpeg"}:a([73,68,51])||a([255,251])?{ext:"mp3",mime:"audio/mpeg"}:a([102,116,121,112,77,52,65],{offset:4})||a([77,52,65,32])?{ext:"m4a",mime:"audio/m4a"}:a([79,112,117,115,72,101,97,100],{offset:28})?{ext:"opus",mime:"audio/opus"}:a([79,103,103,83])?{ext:"ogg",mime:"audio/ogg"}:a([102,76,97,67])?{ext:"flac",mime:"audio/x-flac"}:a([82,73,70,70])&&a([87,65,86,69],{offset:8})?{ext:"wav",mime:"audio/x-wav"}:a([35,33,65,77,82,10])?{ext:"amr",mime:"audio/amr"}:a([37,80,68,70])?{ext:"pdf",mime:"application/pdf"}:a([77,90])?{ext:"exe",mime:"application/x-msdownload"}:(t[0]===67||t[0]===70)&&a([87,83],{offset:1})?{ext:"swf",mime:"application/x-shockwave-flash"}:a([123,92,114,116,102])?{ext:"rtf",mime:"application/rtf"}:a([0,97,115,109])?{ext:"wasm",mime:"application/wasm"}:a([119,79,70,70])&&(a([0,1,0,0],{offset:4})||a([79,84,84,79],{offset:4}))?{ext:"woff",mime:"application/font-woff"}:a([119,79,70,50])&&(a([0,1,0,0],{offset:4})||a([79,84,84,79],{offset:4}))?{ext:"woff2",mime:"application/font-woff"}:a([76,80],{offset:34})&&(a([0,0,1],{offset:8})||a([1,0,2],{offset:8})||a([2,0,2],{offset:8}))?{ext:"eot",mime:"application/octet-stream"}:a([0,1,0,0,0])?{ext:"ttf",mime:"application/font-sfnt"}:a([79,84,84,79,0])?{ext:"otf",mime:"application/font-sfnt"}:a([0,0,1,0])?{ext:"ico",mime:"image/x-icon"}:a([70,76,86,1])?{ext:"flv",mime:"video/x-flv"}:a([37,33])?{ext:"ps",mime:"application/postscript"}:a([253,55,122,88,90,0])?{ext:"xz",mime:"application/x-xz"}:a([83,81,76,105])?{ext:"sqlite",mime:"application/x-sqlite3"}:a([78,69,83,26])?{ext:"nes",mime:"application/x-nintendo-nes-rom"}:a([67,114,50,52])?{ext:"crx",mime:"application/x-google-chrome-extension"}:a([77,83,67,70])||a([73,83,99,40])?{ext:"cab",mime:"application/vnd.ms-cab-compressed"}:a([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121])?{ext:"deb",mime:"application/x-deb"}:a([33,60,97,114,99,104,62])?{ext:"ar",mime:"application/x-unix-archive"}:a([237,171,238,219])?{ext:"rpm",mime:"application/x-rpm"}:a([31,160])||a([31,157])?{ext:"Z",mime:"application/x-compress"}:a([76,90,73,80])?{ext:"lz",mime:"application/x-lzip"}:a([208,207,17,224,161,177,26,225])?{ext:"msi",mime:"application/x-msi"}:a([6,14,43,52,2,5,1,1,13,1,2,1,1,2])?{ext:"mxf",mime:"application/mxf"}:a([66,76,69,78,68,69,82])?{ext:"blend",mime:"application/x-blender"}:null}});var uy=O((qG,cy)=>{"use strict";var QO=ly(),e3=new Set(["7z","bz2","gz","rar","tar","zip","xz","gz"]);cy.exports=e=>{let t=QO(e);return e3.has(t&&t.ext)?t:null}});var dy=O((XG,py)=>{var Na=require("constants"),t3=process.cwd,Ns=null,a3=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Ns||(Ns=t3.call(process)),Ns};try{process.cwd()}catch(e){}typeof process.chdir=="function"&&(Ap=process.chdir,process.chdir=function(e){Ns=null,Ap.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Ap));var Ap;py.exports=n3;function n3(e){Na.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||a(e),e.chown=r(e.chown),e.fchown=r(e.fchown),e.lchown=r(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=o(e.chownSync),e.fchownSync=o(e.fchownSync),e.lchownSync=o(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=s(e.stat),e.fstat=s(e.fstat),e.lstat=s(e.lstat),e.statSync=l(e.statSync),e.fstatSync=l(e.fstatSync),e.lstatSync=l(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(c,f,p){p&&process.nextTick(p)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(c,f,p,b){b&&process.nextTick(b)},e.lchownSync=function(){}),a3==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(c){function f(p,b,d){var m=Date.now(),h=0;c(p,b,function v(x){if(x&&(x.code==="EACCES"||x.code==="EPERM"||x.code==="EBUSY")&&Date.now()-m<6e4){setTimeout(function(){e.stat(b,function(E,g){E&&E.code==="ENOENT"?c(p,b,v):d(x)})},h),h<100&&(h+=10);return}d&&d(x)})}return Object.setPrototypeOf&&Object.setPrototypeOf(f,c),f}(e.rename)),e.read=typeof e.read!="function"?e.read:function(c){function f(p,b,d,m,h,v){var x;if(v&&typeof v=="function"){var E=0;x=function(g,w,C){if(g&&g.code==="EAGAIN"&&E<10)return E++,c.call(e,p,b,d,m,h,x);v.apply(this,arguments)}}return c.call(e,p,b,d,m,h,x)}return Object.setPrototypeOf&&Object.setPrototypeOf(f,c),f}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(c){return function(f,p,b,d,m){for(var h=0;;)try{return c.call(e,f,p,b,d,m)}catch(v){if(v.code==="EAGAIN"&&h<10){h++;continue}throw v}}}(e.readSync);function t(c){c.lchmod=function(f,p,b){c.open(f,Na.O_WRONLY|Na.O_SYMLINK,p,function(d,m){if(d){b&&b(d);return}c.fchmod(m,p,function(h){c.close(m,function(v){b&&b(h||v)})})})},c.lchmodSync=function(f,p){var b=c.openSync(f,Na.O_WRONLY|Na.O_SYMLINK,p),d=!0,m;try{m=c.fchmodSync(b,p),d=!1}finally{if(d)try{c.closeSync(b)}catch(h){}else c.closeSync(b)}return m}}function a(c){Na.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(f,p,b,d){c.open(f,Na.O_SYMLINK,function(m,h){if(m){d&&d(m);return}c.futimes(h,p,b,function(v){c.close(h,function(x){d&&d(v||x)})})})},c.lutimesSync=function(f,p,b){var d=c.openSync(f,Na.O_SYMLINK),m,h=!0;try{m=c.futimesSync(d,p,b),h=!1}finally{if(h)try{c.closeSync(d)}catch(v){}else c.closeSync(d)}return m}):c.futimes&&(c.lutimes=function(f,p,b,d){d&&process.nextTick(d)},c.lutimesSync=function(){})}function n(c){return c&&function(f,p,b){return c.call(e,f,p,function(d){u(d)&&(d=null),b&&b.apply(this,arguments)})}}function i(c){return c&&function(f,p){try{return c.call(e,f,p)}catch(b){if(!u(b))throw b}}}function r(c){return c&&function(f,p,b,d){return c.call(e,f,p,b,function(m){u(m)&&(m=null),d&&d.apply(this,arguments)})}}function o(c){return c&&function(f,p,b){try{return c.call(e,f,p,b)}catch(d){if(!u(d))throw d}}}function s(c){return c&&function(f,p,b){typeof p=="function"&&(b=p,p=null);function d(m,h){h&&(h.uid<0&&(h.uid+=4294967296),h.gid<0&&(h.gid+=4294967296)),b&&b.apply(this,arguments)}return p?c.call(e,f,p,d):c.call(e,f,d)}}function l(c){return c&&function(f,p){var b=p?c.call(e,f,p):c.call(e,f);return b&&(b.uid<0&&(b.uid+=4294967296),b.gid<0&&(b.gid+=4294967296)),b}}function u(c){if(!c||c.code==="ENOSYS")return!0;var f=!process.getuid||process.getuid()!==0;return!!(f&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var hy=O(($G,my)=>{var fy=require("stream").Stream;my.exports=i3;function i3(e){return{ReadStream:t,WriteStream:a};function t(n,i){if(!(this instanceof t))return new t(n,i);fy.call(this);var r=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var o=Object.keys(i),s=0,l=o.length;sthis.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){r._read()});return}e.open(this.path,this.flags,this.mode,function(c,f){if(c){r.emit("error",c),r.readable=!1;return}r.fd=f,r.emit("open",f),r._read()})}function a(n,i){if(!(this instanceof a))return new a(n,i);fy.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var r=Object.keys(i),o=0,s=r.length;o= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var by=O((YG,vy)=>{"use strict";vy.exports=o3;var r3=Object.getPrototypeOf||function(e){return e.__proto__};function o3(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:r3(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(e,a))}),t}});var wy=O((KG,Tp)=>{var We=require("fs"),s3=dy(),l3=hy(),c3=by(),js=require("util"),ct,Ms;typeof Symbol=="function"&&typeof Symbol.for=="function"?(ct=Symbol.for("graceful-fs.queue"),Ms=Symbol.for("graceful-fs.previous")):(ct="___graceful-fs.queue",Ms="___graceful-fs.previous");function u3(){}function yy(e,t){Object.defineProperty(e,ct,{get:function(){return t}})}var dn=u3;js.debuglog?dn=js.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(dn=function(){var e=js.format.apply(js,arguments);e="GFS4: "+e.split(/\n/).join(` -GFS4: `),console.error(e)});We[ct]||(gy=global[ct]||[],yy(We,gy),We.close=function(e){function t(a,n){return e.call(We,a,function(i){i||xy(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,Ms,{value:e}),t}(We.close),We.closeSync=function(e){function t(a){e.apply(We,arguments),xy()}return Object.defineProperty(t,Ms,{value:e}),t}(We.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){dn(We[ct]),require("assert").equal(We[ct].length,0)}));var gy;global[ct]||yy(global,We[ct]);Tp.exports=Ip(c3(We));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!We.__patched&&(Tp.exports=Ip(We),We.__patched=!0);function Ip(e){s3(e),e.gracefulify=Ip,e.createReadStream=w,e.createWriteStream=C;var t=e.readFile;e.readFile=a;function a(A,_,P){return typeof _=="function"&&(P=_,_=null),F(A,_,P);function F(B,j,L,k){return t(B,j,function(T){T&&(T.code==="EMFILE"||T.code==="ENFILE")?Jn([F,[B,j,L],T,k||Date.now(),Date.now()]):typeof L=="function"&&L.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(A,_,P,F){return typeof P=="function"&&(F=P,P=null),B(A,_,P,F);function B(j,L,k,T,N){return n(j,L,k,function(M){M&&(M.code==="EMFILE"||M.code==="ENFILE")?Jn([B,[j,L,k,T],M,N||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var r=e.appendFile;r&&(e.appendFile=o);function o(A,_,P,F){return typeof P=="function"&&(F=P,P=null),B(A,_,P,F);function B(j,L,k,T,N){return r(j,L,k,function(M){M&&(M.code==="EMFILE"||M.code==="ENFILE")?Jn([B,[j,L,k,T],M,N||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var s=e.copyFile;s&&(e.copyFile=l);function l(A,_,P,F){return typeof P=="function"&&(F=P,P=0),B(A,_,P,F);function B(j,L,k,T,N){return s(j,L,k,function(M){M&&(M.code==="EMFILE"||M.code==="ENFILE")?Jn([B,[j,L,k,T],M,N||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var u=e.readdir;e.readdir=f;var c=/^v[0-5]\./;function f(A,_,P){typeof _=="function"&&(P=_,_=null);var F=c.test(process.version)?function(L,k,T,N){return u(L,B(L,k,T,N))}:function(L,k,T,N){return u(L,k,B(L,k,T,N))};return F(A,_,P);function B(j,L,k,T){return function(N,M){N&&(N.code==="EMFILE"||N.code==="ENFILE")?Jn([F,[j,L,k],N,T||Date.now(),Date.now()]):(M&&M.sort&&M.sort(),typeof k=="function"&&k.call(this,N,M))}}}if(process.version.substr(0,4)==="v0.8"){var p=l3(e);v=p.ReadStream,E=p.WriteStream}var b=e.ReadStream;b&&(v.prototype=Object.create(b.prototype),v.prototype.open=x);var d=e.WriteStream;d&&(E.prototype=Object.create(d.prototype),E.prototype.open=g),Object.defineProperty(e,"ReadStream",{get:function(){return v},set:function(A){v=A},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return E},set:function(A){E=A},enumerable:!0,configurable:!0});var m=v;Object.defineProperty(e,"FileReadStream",{get:function(){return m},set:function(A){m=A},enumerable:!0,configurable:!0});var h=E;Object.defineProperty(e,"FileWriteStream",{get:function(){return h},set:function(A){h=A},enumerable:!0,configurable:!0});function v(A,_){return this instanceof v?(b.apply(this,arguments),this):v.apply(Object.create(v.prototype),arguments)}function x(){var A=this;S(A.path,A.flags,A.mode,function(_,P){_?(A.autoClose&&A.destroy(),A.emit("error",_)):(A.fd=P,A.emit("open",P),A.read())})}function E(A,_){return this instanceof E?(d.apply(this,arguments),this):E.apply(Object.create(E.prototype),arguments)}function g(){var A=this;S(A.path,A.flags,A.mode,function(_,P){_?(A.destroy(),A.emit("error",_)):(A.fd=P,A.emit("open",P))})}function w(A,_){return new e.ReadStream(A,_)}function C(A,_){return new e.WriteStream(A,_)}var y=e.open;e.open=S;function S(A,_,P,F){return typeof P=="function"&&(F=P,P=null),B(A,_,P,F);function B(j,L,k,T,N){return y(j,L,k,function(M,D){M&&(M.code==="EMFILE"||M.code==="ENFILE")?Jn([B,[j,L,k,T],M,N||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}return e}function Jn(e){dn("ENQUEUE",e[0].name,e[1]),We[ct].push(e),_p()}var Ls;function xy(){for(var e=Date.now(),t=0;t2&&(We[ct][t][3]=e,We[ct][t][4]=e);_p()}function _p(){if(clearTimeout(Ls),Ls=void 0,We[ct].length!==0){var e=We[ct].shift(),t=e[0],a=e[1],n=e[2],i=e[3],r=e[4];if(i===void 0)dn("RETRY",t.name,a),t.apply(null,a);else if(Date.now()-i>=6e4){dn("TIMEOUT",t.name,a);var o=a.pop();typeof o=="function"&&o.call(null,n)}else{var s=Date.now()-r,l=Math.max(r-i,1),u=Math.min(l*1.2,100);s>=u?(dn("RETRY",t.name,a),t.apply(null,a.concat([i]))):We[ct].push(e)}Ls===void 0&&(Ls=setTimeout(_p,0))}}});var Sy=O((QG,Ey)=>{"use strict";Ey.exports=e=>{let t=new Uint8Array(e);if(!(t&&t.length>1))return null;let a=(n,i)=>{i=Object.assign({offset:0},i);for(let r=0;rs[o]===66&&s[o+1]===130);if(i>=0){let r=i+3,o=s=>Array.from(s).every((l,u)=>n[r+u]===l.charCodeAt(0));if(o("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(o("webm"))return{ext:"webm",mime:"video/webm"}}}return a([0,0,0,20,102,116,121,112,113,116,32,32])||a([102,114,101,101],{offset:4})||a([102,116,121,112,113,116,32,32],{offset:4})||a([109,100,97,116],{offset:4})||a([119,105,100,101],{offset:4})?{ext:"mov",mime:"video/quicktime"}:a([82,73,70,70])&&a([65,86,73],{offset:8})?{ext:"avi",mime:"video/x-msvideo"}:a([48,38,178,117,142,102,207,17,166,217])?{ext:"wmv",mime:"video/x-ms-wmv"}:a([0,0,1,186])?{ext:"mpg",mime:"video/mpeg"}:a([73,68,51])||a([255,251])?{ext:"mp3",mime:"audio/mpeg"}:a([102,116,121,112,77,52,65],{offset:4})||a([77,52,65,32])?{ext:"m4a",mime:"audio/m4a"}:a([79,112,117,115,72,101,97,100],{offset:28})?{ext:"opus",mime:"audio/opus"}:a([79,103,103,83])?{ext:"ogg",mime:"audio/ogg"}:a([102,76,97,67])?{ext:"flac",mime:"audio/x-flac"}:a([82,73,70,70])&&a([87,65,86,69],{offset:8})?{ext:"wav",mime:"audio/x-wav"}:a([35,33,65,77,82,10])?{ext:"amr",mime:"audio/amr"}:a([37,80,68,70])?{ext:"pdf",mime:"application/pdf"}:a([77,90])?{ext:"exe",mime:"application/x-msdownload"}:(t[0]===67||t[0]===70)&&a([87,83],{offset:1})?{ext:"swf",mime:"application/x-shockwave-flash"}:a([123,92,114,116,102])?{ext:"rtf",mime:"application/rtf"}:a([0,97,115,109])?{ext:"wasm",mime:"application/wasm"}:a([119,79,70,70])&&(a([0,1,0,0],{offset:4})||a([79,84,84,79],{offset:4}))?{ext:"woff",mime:"font/woff"}:a([119,79,70,50])&&(a([0,1,0,0],{offset:4})||a([79,84,84,79],{offset:4}))?{ext:"woff2",mime:"font/woff2"}:a([76,80],{offset:34})&&(a([0,0,1],{offset:8})||a([1,0,2],{offset:8})||a([2,0,2],{offset:8}))?{ext:"eot",mime:"application/octet-stream"}:a([0,1,0,0,0])?{ext:"ttf",mime:"font/ttf"}:a([79,84,84,79,0])?{ext:"otf",mime:"font/otf"}:a([0,0,1,0])?{ext:"ico",mime:"image/x-icon"}:a([70,76,86,1])?{ext:"flv",mime:"video/x-flv"}:a([37,33])?{ext:"ps",mime:"application/postscript"}:a([253,55,122,88,90,0])?{ext:"xz",mime:"application/x-xz"}:a([83,81,76,105])?{ext:"sqlite",mime:"application/x-sqlite3"}:a([78,69,83,26])?{ext:"nes",mime:"application/x-nintendo-nes-rom"}:a([67,114,50,52])?{ext:"crx",mime:"application/x-google-chrome-extension"}:a([77,83,67,70])||a([73,83,99,40])?{ext:"cab",mime:"application/vnd.ms-cab-compressed"}:a([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121])?{ext:"deb",mime:"application/x-deb"}:a([33,60,97,114,99,104,62])?{ext:"ar",mime:"application/x-unix-archive"}:a([237,171,238,219])?{ext:"rpm",mime:"application/x-rpm"}:a([31,160])||a([31,157])?{ext:"Z",mime:"application/x-compress"}:a([76,90,73,80])?{ext:"lz",mime:"application/x-lzip"}:a([208,207,17,224,161,177,26,225])?{ext:"msi",mime:"application/x-msi"}:a([6,14,43,52,2,5,1,1,13,1,2,1,1,2])?{ext:"mxf",mime:"application/mxf"}:a([71],{offset:4})&&(a([71],{offset:192})||a([71],{offset:196}))?{ext:"mts",mime:"video/mp2t"}:a([66,76,69,78,68,69,82])?{ext:"blend",mime:"application/x-blender"}:a([66,80,71,251])?{ext:"bpg",mime:"image/bpg"}:null}});var Ds=O((eH,Cy)=>{"use strict";var va=Cy.exports=function(e){return e!==null&&typeof e=="object"&&typeof e.pipe=="function"};va.writable=function(e){return va(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object"};va.readable=function(e){return va(e)&&e.readable!==!1&&typeof e._read=="function"&&typeof e._readableState=="object"};va.duplex=function(e){return va.writable(e)&&va.readable(e)};va.transform=function(e){return va.duplex(e)&&typeof e._transform=="function"&&typeof e._transformState=="object"}});var ir=O((tH,kp)=>{"use strict";typeof process=="undefined"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?kp.exports={nextTick:p3}:kp.exports=process;function p3(e,t,a,n){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var i=arguments.length,r,o;switch(i){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(function(){e.call(null,t)});case 3:return process.nextTick(function(){e.call(null,t,a)});case 4:return process.nextTick(function(){e.call(null,t,a,n)});default:for(r=new Array(i-1),o=0;o{function d3(e){return Array.isArray?Array.isArray(e):zs(e)==="[object Array]"}mt.isArray=d3;function f3(e){return typeof e=="boolean"}mt.isBoolean=f3;function m3(e){return e===null}mt.isNull=m3;function h3(e){return e==null}mt.isNullOrUndefined=h3;function v3(e){return typeof e=="number"}mt.isNumber=v3;function b3(e){return typeof e=="string"}mt.isString=b3;function g3(e){return typeof e=="symbol"}mt.isSymbol=g3;function x3(e){return e===void 0}mt.isUndefined=x3;function y3(e){return zs(e)==="[object RegExp]"}mt.isRegExp=y3;function w3(e){return typeof e=="object"&&e!==null}mt.isObject=w3;function E3(e){return zs(e)==="[object Date]"}mt.isDate=E3;function S3(e){return zs(e)==="[object Error]"||e instanceof Error}mt.isError=S3;function C3(e){return typeof e=="function"}mt.isFunction=C3;function A3(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}mt.isPrimitive=A3;mt.isBuffer=require("buffer").Buffer.isBuffer;function zs(e){return Object.prototype.toString.call(e)}});var fn=O((nH,Fp)=>{typeof Object.create=="function"?Fp.exports=function(t,a){a&&(t.super_=a,t.prototype=Object.create(a.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Fp.exports=function(t,a){if(a){t.super_=a;var n=function(){};n.prototype=a.prototype,t.prototype=new n,t.prototype.constructor=t}}});var Iy=O((iH,Ay)=>{var I3={}.toString;Ay.exports=Array.isArray||function(e){return I3.call(e)=="[object Array]"}});var Pp=O((rH,_y)=>{_y.exports=require("events").EventEmitter});var Hs=O((Op,ky)=>{var Gs=require("buffer"),ba=Gs.Buffer;function Ty(e,t){for(var a in e)t[a]=e[a]}ba.from&&ba.alloc&&ba.allocUnsafe&&ba.allocUnsafeSlow?ky.exports=Gs:(Ty(Gs,Op),Op.Buffer=qn);function qn(e,t,a){return ba(e,t,a)}Ty(ba,qn);qn.from=function(e,t,a){if(typeof e=="number")throw new TypeError("Argument must not be a number");return ba(e,t,a)};qn.alloc=function(e,t,a){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=ba(e);return t!==void 0?typeof a=="string"?n.fill(t,a):n.fill(t):n.fill(0),n};qn.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return ba(e)};qn.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Gs.SlowBuffer(e)}});var Py=O((oH,Rp)=>{"use strict";function _3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Fy=Hs().Buffer,rr=require("util");function T3(e,t,a){e.copy(t,a)}Rp.exports=function(){function e(){_3(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(a){var n={data:a,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length},e.prototype.unshift=function(a){var n={data:a,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length},e.prototype.shift=function(){if(this.length!==0){var a=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,a}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(a){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=a+n.data;return i},e.prototype.concat=function(a){if(this.length===0)return Fy.alloc(0);for(var n=Fy.allocUnsafe(a>>>0),i=this.head,r=0;i;)T3(i.data,n,r),r+=i.data.length,i=i.next;return n},e}();rr&&rr.inspect&&rr.inspect.custom&&(Rp.exports.prototype[rr.inspect.custom]=function(){var e=rr.inspect({length:this.length});return this.constructor.name+" "+e})});var Bp=O((sH,Oy)=>{"use strict";var Ws=ir();function k3(e,t){var a=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Ws.nextTick(Vs,this,e)):Ws.nextTick(Vs,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(r){!t&&r?a._writableState?a._writableState.errorEmitted||(a._writableState.errorEmitted=!0,Ws.nextTick(Vs,a,r)):Ws.nextTick(Vs,a,r):t&&t(r)}),this)}function F3(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Vs(e,t){e.emit("error",t)}Oy.exports={destroy:k3,undestroy:F3}});var Gp=O((cH,Vy)=>{"use strict";var $n=ir();Vy.exports=Me;var P3=Iy(),or;Me.ReadableState=Dy;var lH=require("events").EventEmitter,jy=function(e,t){return e.listeners(t).length},Dp=Pp(),sr=Hs().Buffer,O3=(typeof global!="undefined"?global:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function R3(e){return sr.from(e)}function B3(e){return sr.isBuffer(e)||e instanceof O3}var Ly=Object.create(Zn());Ly.inherits=fn();var Np=require("util"),Ce=void 0;Np&&Np.debuglog?Ce=Np.debuglog("stream"):Ce=function(){};var N3=Py(),My=Bp(),Xn;Ly.inherits(Me,Dp);var jp=["error","close","destroy","pause","resume"];function j3(e,t,a){if(typeof e.prependListener=="function")return e.prependListener(t,a);!e._events||!e._events[t]?e.on(t,a):P3(e._events[t])?e._events[t].unshift(a):e._events[t]=[a,e._events[t]]}function Dy(e,t){or=or||ja(),e=e||{};var a=t instanceof or;this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,i=e.readableHighWaterMark,r=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:a&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=r,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new N3,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(Xn||(Xn=require("string_decoder/").StringDecoder),this.decoder=new Xn(e.encoding),this.encoding=e.encoding)}function Me(e){if(or=or||ja(),!(this instanceof Me))return new Me(e);this._readableState=new Dy(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Dp.call(this)}Object.defineProperty(Me.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});Me.prototype.destroy=My.destroy;Me.prototype._undestroy=My.undestroy;Me.prototype._destroy=function(e,t){this.push(null),t(e)};Me.prototype.push=function(e,t){var a=this._readableState,n;return a.objectMode?n=!0:typeof e=="string"&&(t=t||a.defaultEncoding,t!==a.encoding&&(e=sr.from(e,t),t=""),n=!0),zy(this,e,t,!1,n)};Me.prototype.unshift=function(e){return zy(this,e,null,!0,!1)};function zy(e,t,a,n,i){var r=e._readableState;if(t===null)r.reading=!1,z3(e,r);else{var o;i||(o=L3(r,t)),o?e.emit("error",o):r.objectMode||t&&t.length>0?(typeof t!="string"&&!r.objectMode&&Object.getPrototypeOf(t)!==sr.prototype&&(t=R3(t)),n?r.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):Lp(e,r,t,!0):r.ended?e.emit("error",new Error("stream.push() after EOF")):(r.reading=!1,r.decoder&&!a?(t=r.decoder.write(t),r.objectMode||t.length!==0?Lp(e,r,t,!1):Gy(e,r)):Lp(e,r,t,!1))):n||(r.reading=!1)}return M3(r)}function Lp(e,t,a,n){t.flowing&&t.length===0&&!t.sync?(e.emit("data",a),e.read(0)):(t.length+=t.objectMode?1:a.length,n?t.buffer.unshift(a):t.buffer.push(a),t.needReadable&&Us(e)),Gy(e,t)}function L3(e,t){var a;return!B3(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(a=new TypeError("Invalid non-string/buffer chunk")),a}function M3(e){return!e.ended&&(e.needReadable||e.length=Ry?e=Ry:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function By(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=D3(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}Me.prototype.read=function(e){Ce("read",e),e=parseInt(e,10);var t=this._readableState,a=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return Ce("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Mp(this):Us(this),null;if(e=By(e,t),e===0&&t.ended)return t.length===0&&Mp(this),null;var n=t.needReadable;Ce("need readable",n),(t.length===0||t.length-e0?i=Hy(e,t):i=null,i===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),a!==e&&t.ended&&Mp(this)),i!==null&&this.emit("data",i),i};function z3(e,t){if(!t.ended){if(t.decoder){var a=t.decoder.end();a&&a.length&&(t.buffer.push(a),t.length+=t.objectMode?1:a.length)}t.ended=!0,Us(e)}}function Us(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(Ce("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?$n.nextTick(Ny,e):Ny(e))}function Ny(e){Ce("emit readable"),e.emit("readable"),zp(e)}function Gy(e,t){t.readingMore||(t.readingMore=!0,$n.nextTick(G3,e,t))}function G3(e,t){for(var a=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length1&&Wy(n.pipes,e)!==-1)&&!u&&(Ce("false write response, pause",n.awaitDrain),n.awaitDrain++,f=!0),a.pause())}function b(v){Ce("onerror",v),h(),e.removeListener("error",b),jy(e,"error")===0&&e.emit("error",v)}j3(e,"error",b);function d(){e.removeListener("finish",m),h()}e.once("close",d);function m(){Ce("onfinish"),e.removeListener("close",d),h()}e.once("finish",m);function h(){Ce("unpipe"),a.unpipe(e)}return e.emit("pipe",a),n.flowing||(Ce("pipe resume"),a.resume()),e};function H3(e){return function(){var t=e._readableState;Ce("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&jy(e,"data")&&(t.flowing=!0,zp(e))}}Me.prototype.unpipe=function(e){var t=this._readableState,a={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,a),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var r=0;r=t.length?(t.decoder?a=t.buffer.join(""):t.buffer.length===1?a=t.buffer.head.data:a=t.buffer.concat(t.length),t.buffer.clear()):a=J3(e,t.buffer,t.decoder),a}function J3(e,t,a){var n;return er.length?r.length:e;if(o===r.length?i+=r:i+=r.slice(0,e),e-=o,e===0){o===r.length?(++n,a.next?t.head=a.next:t.head=t.tail=null):(t.head=a,a.data=r.slice(o));break}++n}return t.length-=n,i}function q3(e,t){var a=sr.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(a),e-=n.data.length;n=n.next;){var r=n.data,o=e>r.length?r.length:e;if(r.copy(a,a.length-e,0,o),e-=o,e===0){o===r.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=r.slice(o));break}++i}return t.length-=i,a}function Mp(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,$n.nextTick(X3,t,e))}function X3(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function Wy(e,t){for(var a=0,n=e.length;a{Uy.exports=$3;function $3(e,t){if(Hp("noDeprecation"))return e;var a=!1;function n(){if(!a){if(Hp("throwDeprecation"))throw new Error(t);Hp("traceDeprecation")?console.trace(t):console.warn(t),a=!0}return e.apply(this,arguments)}return n}function Hp(e){try{if(!global.localStorage)return!1}catch(a){return!1}var t=global.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}});var Vp=O((pH,ew)=>{"use strict";var mn=ir();ew.exports=Ye;function qy(e){var t=this;this.next=null,this.entry=null,this.finish=function(){m6(t,e)}}var Y3=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:mn.nextTick,Yn;Ye.WritableState=cr;var Xy=Object.create(Zn());Xy.inherits=fn();var K3={deprecate:Jy()},$y=Pp(),Zs=Hs().Buffer,Q3=(typeof global!="undefined"?global:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function e6(e){return Zs.from(e)}function t6(e){return Zs.isBuffer(e)||e instanceof Q3}var Yy=Bp();Xy.inherits(Ye,$y);function a6(){}function cr(e,t){Yn=Yn||ja(),e=e||{};var a=t instanceof Yn;this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,i=e.writableHighWaterMark,r=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:a&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=r,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=e.decodeStrings===!1;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(s){c6(t,s)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new qy(this)}cr.prototype.getBuffer=function(){for(var t=this.bufferedRequest,a=[];t;)a.push(t),t=t.next;return a};(function(){try{Object.defineProperty(cr.prototype,"buffer",{get:K3.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var Js;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Js=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ye,Symbol.hasInstance,{value:function(e){return Js.call(this,e)?!0:this!==Ye?!1:e&&e._writableState instanceof cr}})):Js=function(e){return e instanceof this};function Ye(e){if(Yn=Yn||ja(),!Js.call(Ye,this)&&!(this instanceof Yn))return new Ye(e);this._writableState=new cr(e,this),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),$y.call(this)}Ye.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function n6(e,t){var a=new Error("write after end");e.emit("error",a),mn.nextTick(t,a)}function i6(e,t,a,n){var i=!0,r=!1;return a===null?r=new TypeError("May not write null values to stream"):typeof a!="string"&&a!==void 0&&!t.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r&&(e.emit("error",r),mn.nextTick(n,r),i=!1),i}Ye.prototype.write=function(e,t,a){var n=this._writableState,i=!1,r=!n.objectMode&&t6(e);return r&&!Zs.isBuffer(e)&&(e=e6(e)),typeof t=="function"&&(a=t,t=null),r?t="buffer":t||(t=n.defaultEncoding),typeof a!="function"&&(a=a6),n.ended?n6(this,a):(r||i6(this,n,e,a))&&(n.pendingcb++,i=o6(this,n,r,e,t,a)),i};Ye.prototype.cork=function(){var e=this._writableState;e.corked++};Ye.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&Ky(this,e))};Ye.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this};function r6(e,t,a){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=Zs.from(t,a)),t}Object.defineProperty(Ye.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function o6(e,t,a,n,i,r){if(!a){var o=r6(t,n,i);n!==o&&(a=!0,i="buffer",n=o)}var s=t.objectMode?1:n.length;t.length+=s;var l=t.length{"use strict";var tw=ir(),h6=Object.keys||function(e){var t=[];for(var a in e)t.push(a);return t};iw.exports=ga;var aw=Object.create(Zn());aw.inherits=fn();var nw=Gp(),Jp=Vp();aw.inherits(ga,nw);for(Up=h6(Jp.prototype),qs=0;qs{rw.exports=ja()});var lw=O((mH,sw)=>{var Zp=ow(),g6=require("util"),Kn=Bs().Buffer;function Je(e){if(!(this instanceof Je))return new Je(e);if(this._bufs=[],this.length=0,typeof e=="function"){this._callback=e;var t=function(n){this._callback&&(this._callback(n),this._callback=null)}.bind(this);this.on("pipe",function(n){n.on("error",t)}),this.on("unpipe",function(n){n.removeListener("error",t)})}else this.append(e);Zp.call(this)}g6.inherits(Je,Zp);Je.prototype._offset=function(t){var a=0,n=0,i;if(t===0)return[0,0];for(;nthis.length)&&(i=this.length),n>=this.length||i<=0)return t||Kn.alloc(0);var r=!!t,o=this._offset(n),s=i-n,l=s,u=r&&a||0,c=o[1],f,p;if(n===0&&i==this.length){if(!r)return this._bufs.length===1?this._bufs[0]:Kn.concat(this._bufs,this.length);for(p=0;pf)this._bufs[p].copy(t,u,c),u+=f;else{this._bufs[p].copy(t,u,c,c+l),u+=f;break}l-=f,c&&(c=0)}return t.length>u?t.slice(0,u):t};Je.prototype.shallowSlice=function(t,a){t=t||0,a=a||this.length,t<0&&(t+=this.length),a<0&&(a+=this.length);var n=this._offset(t),i=this._offset(a),r=this._bufs.slice(n[0],i[0]+1);return i[1]==0?r.pop():r[r.length-1]=r[r.length-1].slice(0,i[1]),n[1]!=0&&(r[0]=r[0].slice(n[1])),new Je(r)};Je.prototype.toString=function(t,a,n){return this.slice(a,n).toString(t)};Je.prototype.consume=function(t){if(t=Math.trunc(t),Number.isNaN(t)||t<=0)return this;for(;this._bufs.length;)if(t>=this._bufs[0].length)t-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(t),this.length-=t;break}return this};Je.prototype.duplicate=function(){for(var t=0,a=new Je;t{cw.exports=y6;var x6=Object.prototype.hasOwnProperty;function y6(){for(var e={},t=0;t{dw.exports=E6;var pw=Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from:w6;function w6(e,t){return new Buffer(e,t)}function E6(e,t){if(Buffer.isBuffer(e))return e;if(typeof e=="string")return pw(e,t);if(Array.isArray(e))return pw(e);throw new Error("Input should be a buffer or a string")}});var mw=O((bH,fw)=>{var S6=function(){try{if(!Buffer.isEncoding("latin1"))return!1;var e=Buffer.alloc?Buffer.alloc(4):new Buffer(4);return e.fill("ab","ucs2"),e.toString("hex")==="61006200"}catch(t){return!1}}();function C6(e){return e.length===1&&e.charCodeAt(0)<256}function $s(e,t,a,n){if(a<0||n>e.length)throw new RangeError("Out of range index");return a=a>>>0,n=n===void 0?e.length:n>>>0,n>a&&e.fill(t,a,n),e}function A6(e,t,a,n){if(a<0||n>e.length)throw new RangeError("Out of range index");if(n<=a)return e;a=a>>>0,n=n===void 0?e.length:n>>>0;for(var i=a,r=t.length;i<=n-r;)t.copy(e,i),i+=r;return i!==n&&t.copy(e,i,0,n-i),e}function I6(e,t,a,n,i){if(S6)return e.fill(t,a,n,i);if(typeof t=="number")return $s(e,t,a,n);if(typeof t=="string"){if(typeof a=="string"?(i=a,a=0,n=e.length):typeof n=="string"&&(i=n,n=e.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(i==="latin1"&&(i="binary"),typeof i=="string"&&!Buffer.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t==="")return $s(e,0,a,n);if(C6(t))return $s(e,t.charCodeAt(0),a,n);t=new Buffer(t,i)}return Buffer.isBuffer(t)?A6(e,t,a,n):$s(e,0,a,n)}fw.exports=I6});var vw=O((gH,hw)=>{function _6(e){if(typeof e!="number")throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative');return Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e)}hw.exports=_6});var Xp=O((xH,gw)=>{var bw=mw(),T6=vw();gw.exports=function(t,a,n){if(typeof t!="number")throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative');if(Buffer.alloc)return Buffer.alloc(t,a,n);var i=T6(t);return t===0?i:a===void 0?bw(i,0):(typeof n!="string"&&(n=void 0),bw(i,a,n))}});var Yp=O(ei=>{var k6=qp(),F6=Xp(),P6="0000000000000000000",O6="7777777777777777777",xw="0".charCodeAt(0),R6="ustar\x0000",B6=parseInt("7777",8),N6=function(e,t,a){return typeof e!="number"?a:(e=~~e,e>=t?t:e>=0||(e+=t,e>=0)?e:0)},j6=function(e){switch(e){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null},L6=function(e){switch(e){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0},yw=function(e,t,a,n){for(;at?O6.slice(0,t)+" ":P6.slice(0,t-e.length)+e+" "};function M6(e){var t;if(e[0]===128)t=!0;else if(e[0]===255)t=!1;else return null;for(var a=!1,n=[],i=e.length-1;i>0;i--){var r=e[i];t?n.push(r):a&&r===0?n.push(0):a?(a=!1,n.push(256-r)):n.push(255-r)}var o=0,s=n.length;for(i=0;i=Math.pow(10,a)&&a++,t+a+e};ei.decodeLongPath=function(e,t){return Qn(e,0,e.length,t)};ei.encodePax=function(e){var t="";e.name&&(t+=$p(" path="+e.name+` -`)),e.linkname&&(t+=$p(" linkpath="+e.linkname+` -`));var a=e.pax;if(a)for(var n in a)t+=$p(" "+n+"="+a[n]+` -`);return k6(t)};ei.decodePax=function(e){for(var t={};e.length;){for(var a=0;a100;){var i=a.indexOf("/");if(i===-1)return null;n+=n?"/"+a.slice(0,i):a.slice(0,i),a=a.slice(i+1)}return Buffer.byteLength(a)>100||Buffer.byteLength(n)>155||e.linkname&&Buffer.byteLength(e.linkname)>100?null:(t.write(a),t.write(La(e.mode&B6,6),100),t.write(La(e.uid,6),108),t.write(La(e.gid,6),116),t.write(La(e.size,11),124),t.write(La(e.mtime.getTime()/1e3|0,11),136),t[156]=xw+L6(e.type),e.linkname&&t.write(e.linkname,157),t.write(R6,257),e.uname&&t.write(e.uname,265),e.gname&&t.write(e.gname,297),t.write(La(e.devmajor||0,6),329),t.write(La(e.devminor||0,6),337),n&&t.write(n,345),t.write(La(ww(t),6),148),t)};ei.decode=function(e,t){var a=e[156]===0?0:e[156]-xw,n=Qn(e,0,100,t),i=Ma(e,100,8),r=Ma(e,108,8),o=Ma(e,116,8),s=Ma(e,124,12),l=Ma(e,136,12),u=j6(a),c=e[157]===0?null:Qn(e,157,100,t),f=Qn(e,265,32),p=Qn(e,297,32),b=Ma(e,329,8),d=Ma(e,337,8);e[345]&&(n=Qn(e,345,155,t)+"/"+n),a===0&&n&&n[n.length-1]==="/"&&(a=5);var m=ww(e);if(m===8*32)return null;if(m!==Ma(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");return{name:n,mode:i,uid:r,gid:o,size:s,mtime:new Date(1e3*l),type:u,linkname:c,uname:f,gname:p,devmajor:b,devminor:d}}});var Kp=O((wH,Cw)=>{"use strict";Cw.exports=xa;var Ys=ja(),Sw=Object.create(Zn());Sw.inherits=fn();Sw.inherits(xa,Ys);function D6(e,t){var a=this._transformState;a.transforming=!1;var n=a.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));a.writechunk=null,a.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{"use strict";_w.exports=ur;var Aw=Kp(),Iw=Object.create(Zn());Iw.inherits=fn();Iw.inherits(ur,Aw);function ur(e){if(!(this instanceof ur))return new ur(e);Aw.call(this,e)}ur.prototype._transform=function(e,t,a){a(null,e)}});var ti=O((ta,kw)=>{ta=kw.exports=Gp();ta.Stream=ta;ta.Readable=ta;ta.Writable=Vp();ta.Duplex=ja();ta.Transform=Kp();ta.PassThrough=Tw()});var jw=O((SH,Nw)=>{var Pw=require("util"),G6=lw(),H6=uw(),pr=Yp(),Ow=ti().Writable,Rw=ti().PassThrough,Bw=function(){},Fw=function(e){return e&=511,e&&512-e},W6=function(e,t){var a=new Ks(e,t);return a.end(),a},V6=function(e,t){return t.path&&(e.name=t.path),t.linkpath&&(e.linkname=t.linkpath),t.size&&(e.size=parseInt(t.size,10)),e.pax=t,e},Ks=function(e,t){this._parent=e,this.offset=t,Rw.call(this)};Pw.inherits(Ks,Rw);Ks.prototype.destroy=function(e){this._parent.destroy(e)};var ya=function(e){if(!(this instanceof ya))return new ya(e);Ow.call(this,e),e=e||{},this._offset=0,this._buffer=G6(),this._missing=0,this._partial=!1,this._onparse=Bw,this._header=null,this._stream=null,this._overflow=null,this._cb=null,this._locked=!1,this._destroyed=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null;var t=this,a=t._buffer,n=function(){t._continue()},i=function(p){if(t._locked=!1,p)return t.destroy(p);t._stream||n()},r=function(){t._stream=null;var p=Fw(t._header.size);p?t._parse(p,o):t._parse(512,f),t._locked||n()},o=function(){t._buffer.consume(Fw(t._header.size)),t._parse(512,f),n()},s=function(){var p=t._header.size;t._paxGlobal=pr.decodePax(a.slice(0,p)),a.consume(p),r()},l=function(){var p=t._header.size;t._pax=pr.decodePax(a.slice(0,p)),t._paxGlobal&&(t._pax=H6(t._paxGlobal,t._pax)),a.consume(p),r()},u=function(){var p=t._header.size;this._gnuLongPath=pr.decodeLongPath(a.slice(0,p),e.filenameEncoding),a.consume(p),r()},c=function(){var p=t._header.size;this._gnuLongLinkPath=pr.decodeLongPath(a.slice(0,p),e.filenameEncoding),a.consume(p),r()},f=function(){var p=t._offset,b;try{b=t._header=pr.decode(a.slice(0,512),e.filenameEncoding)}catch(d){t.emit("error",d)}if(a.consume(512),!b){t._parse(512,f),n();return}if(b.type==="gnu-long-path"){t._parse(b.size,u),n();return}if(b.type==="gnu-long-link-path"){t._parse(b.size,c),n();return}if(b.type==="pax-global-header"){t._parse(b.size,s),n();return}if(b.type==="pax-header"){t._parse(b.size,l),n();return}if(t._gnuLongPath&&(b.name=t._gnuLongPath,t._gnuLongPath=null),t._gnuLongLinkPath&&(b.linkname=t._gnuLongLinkPath,t._gnuLongLinkPath=null),t._pax&&(t._header=b=V6(b,t._pax),t._pax=null),t._locked=!0,!b.size||b.type==="directory"){t._parse(512,f),t.emit("entry",b,W6(t,p),i);return}t._stream=new Ks(t,p),t.emit("entry",b,t._stream,i),t._parse(b.size,r),n()};this._onheader=f,this._parse(512,f)};Pw.inherits(ya,Ow);ya.prototype.destroy=function(e){this._destroyed||(this._destroyed=!0,e&&this.emit("error",e),this.emit("close"),this._stream&&this._stream.emit("close"))};ya.prototype._parse=function(e,t){this._destroyed||(this._offset+=e,this._missing=e,t===this._onheader&&(this._partial=!1),this._onparse=t)};ya.prototype._continue=function(){if(!this._destroyed){var e=this._cb;this._cb=Bw,this._overflow?this._write(this._overflow,void 0,e):e()}};ya.prototype._write=function(e,t,a){if(!this._destroyed){var n=this._stream,i=this._buffer,r=this._missing;if(e.length&&(this._partial=!0),e.lengthr&&(o=e.slice(r),e=e.slice(0,r)),n?n.end(e):i.append(e),this._overflow=o,this._onparse()}};ya.prototype._final=function(e){if(this._partial)return this.destroy(new Error("Unexpected end of data"));e()};Nw.exports=ya});var Mw=O((CH,Lw)=>{Lw.exports=require("constants")});var Gw=O((AH,zw)=>{zw.exports=Dw;function Dw(e,t){if(e&&t)return Dw(e)(t);if(typeof e!="function")throw new TypeError("need wrapper function");return Object.keys(e).forEach(function(n){a[n]=e[n]}),a;function a(){for(var n=new Array(arguments.length),i=0;i{var Hw=Gw();Qp.exports=Hw(Qs);Qp.exports.strict=Hw(Ww);Qs.proto=Qs(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Qs(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return Ww(this)},configurable:!0})});function Qs(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function Ww(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},a=e.name||"Function wrapped with `once`";return t.onceError=a+" shouldn't be called more than once",t.called=!1,t}});var td=O((_H,Uw)=>{var U6=ed(),J6=function(){},Z6=function(e){return e.setHeader&&typeof e.abort=="function"},q6=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3},Vw=function(e,t,a){if(typeof t=="function")return Vw(e,null,t);t||(t={}),a=U6(a||J6);var n=e._writableState,i=e._readableState,r=t.readable||t.readable!==!1&&e.readable,o=t.writable||t.writable!==!1&&e.writable,s=!1,l=function(){e.writable||u()},u=function(){o=!1,r||a.call(e)},c=function(){r=!1,o||a.call(e)},f=function(h){a.call(e,h?new Error("exited with error code: "+h):null)},p=function(h){a.call(e,h)},b=function(){process.nextTick(d)},d=function(){if(!s){if(r&&!(i&&i.ended&&!i.destroyed))return a.call(e,new Error("premature close"));if(o&&!(n&&n.ended&&!n.destroyed))return a.call(e,new Error("premature close"))}},m=function(){e.req.on("finish",u)};return Z6(e)?(e.on("complete",u),e.on("abort",b),e.req?m():e.on("request",m)):o&&!n&&(e.on("end",l),e.on("close",l)),q6(e)&&e.on("exit",f),e.on("end",c),e.on("finish",u),t.error!==!1&&e.on("error",p),e.on("close",b),function(){s=!0,e.removeListener("complete",u),e.removeListener("abort",b),e.removeListener("request",m),e.req&&e.req.removeListener("finish",u),e.removeListener("end",l),e.removeListener("close",l),e.removeListener("finish",u),e.removeListener("exit",f),e.removeListener("end",c),e.removeListener("error",p),e.removeListener("close",b)}};Uw.exports=Vw});var $w=O((TH,Xw)=>{var ai=Mw(),Jw=td(),tl=require("util"),X6=Xp(),$6=qp(),Zw=ti().Readable,ni=ti().Writable,Y6=require("string_decoder").StringDecoder,el=Yp(),K6=parseInt("755",8),Q6=parseInt("644",8),qw=X6(1024),nd=function(){},ad=function(e,t){t&=511,t&&e.push(qw.slice(0,512-t))};function eR(e){switch(e&ai.S_IFMT){case ai.S_IFBLK:return"block-device";case ai.S_IFCHR:return"character-device";case ai.S_IFDIR:return"directory";case ai.S_IFIFO:return"fifo";case ai.S_IFLNK:return"symlink"}return"file"}var al=function(e){ni.call(this),this.written=0,this._to=e,this._destroyed=!1};tl.inherits(al,ni);al.prototype._write=function(e,t,a){if(this.written+=e.length,this._to.push(e))return a();this._to._drain=a};al.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var nl=function(){ni.call(this),this.linkname="",this._decoder=new Y6("utf-8"),this._destroyed=!1};tl.inherits(nl,ni);nl.prototype._write=function(e,t,a){this.linkname+=this._decoder.write(e),a()};nl.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var dr=function(){ni.call(this),this._destroyed=!1};tl.inherits(dr,ni);dr.prototype._write=function(e,t,a){a(new Error("No body allowed for this entry"))};dr.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var aa=function(e){if(!(this instanceof aa))return new aa(e);Zw.call(this,e),this._drain=nd,this._finalized=!1,this._finalizing=!1,this._destroyed=!1,this._stream=null};tl.inherits(aa,Zw);aa.prototype.entry=function(e,t,a){if(this._stream)throw new Error("already piping an entry");if(!(this._finalized||this._destroyed)){typeof t=="function"&&(a=t,t=null),a||(a=nd);var n=this;if((!e.size||e.type==="symlink")&&(e.size=0),e.type||(e.type=eR(e.mode)),e.mode||(e.mode=e.type==="directory"?K6:Q6),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),typeof t=="string"&&(t=$6(t)),Buffer.isBuffer(t))return e.size=t.length,this._encode(e),this.push(t),ad(n,e.size),process.nextTick(a),new dr;if(e.type==="symlink"&&!e.linkname){var i=new nl;return Jw(i,function(o){if(o)return n.destroy(),a(o);e.linkname=i.linkname,n._encode(e),a()}),i}if(this._encode(e),e.type!=="file"&&e.type!=="contiguous-file")return process.nextTick(a),new dr;var r=new al(this);return this._stream=r,Jw(r,function(o){if(n._stream=null,o)return n.destroy(),a(o);if(r.written!==e.size)return n.destroy(),a(new Error("size mismatch"));ad(n,e.size),n._finalizing&&n.finalize(),a()}),r}};aa.prototype.finalize=function(){if(this._stream){this._finalizing=!0;return}this._finalized||(this._finalized=!0,this.push(qw),this.push(null))};aa.prototype.destroy=function(e){this._destroyed||(this._destroyed=!0,e&&this.emit("error",e),this.emit("close"),this._stream&&this._stream.destroy&&this._stream.destroy())};aa.prototype._encode=function(e){if(!e.pax){var t=el.encode(e);if(t){this.push(t);return}}this._encodePax(e)};aa.prototype._encodePax=function(e){var t=el.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),a={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:t.length,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(el.encode(a)),this.push(t),ad(this,t.length),a.size=e.size,a.type=e.type,this.push(el.encode(a))};aa.prototype._read=function(e){var t=this._drain;this._drain=nd,t()};Xw.exports=aa});var Yw=O(id=>{id.extract=jw();id.pack=$w()});var il=O((FH,Qw)=>{"use strict";var Kw=Sy(),tR=Ds(),aR=Yw();Qw.exports=()=>e=>{if(!Buffer.isBuffer(e)&&!tR(e))return Promise.reject(new TypeError(`Expected a Buffer or Stream, got ${typeof e}`));if(Buffer.isBuffer(e)&&(!Kw(e)||Kw(e).ext!=="tar"))return Promise.resolve([]);let t=aR.extract(),a=[];t.on("entry",(i,r,o)=>{let s=[];r.on("data",l=>s.push(l)),r.on("end",()=>{let l={data:Buffer.concat(s),mode:i.mode,mtime:i.mtime,path:i.name,type:i.type};(i.type==="symlink"||i.type==="link")&&(l.linkname=i.linkname),a.push(l),o()})});let n=new Promise((i,r)=>{Buffer.isBuffer(e)||e.on("error",r),t.on("finish",()=>i(a)),t.on("error",r)});return t.then=n.then.bind(n),t.catch=n.catch.bind(n),Buffer.isBuffer(e)?t.end(e):e.pipe(t),t}});var t1=O((PH,e1)=>{"use strict";var ii=e=>Array.from(e).map(t=>t.charCodeAt(0)),nR=ii("META-INF/mozilla.rsa"),iR=ii("[Content_Types].xml"),rR=ii("_rels/.rels");e1.exports=e=>{let t=new Uint8Array(e);if(!(t&&t.length>1))return null;let a=(n,i)=>{i=Object.assign({offset:0},i);for(let r=0;ro.findIndex((s,l,u)=>u[l]===80&&u[l+1]===75&&u[l+2]===3&&u[l+3]===4),r=i(n);if(r!==-1){let o=t.subarray(r+8,r+8+1e3),s=i(o);if(s!==-1){let l=8+r+s+30;if(a(ii("word/"),{offset:l}))return{ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"};if(a(ii("ppt/"),{offset:l}))return{ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"};if(a(ii("xl/"),{offset:l}))return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}}}}}if(a([80,75])&&(t[2]===3||t[2]===5||t[2]===7)&&(t[3]===4||t[3]===6||t[3]===8))return{ext:"zip",mime:"application/zip"};if(a([117,115,116,97,114],{offset:257}))return{ext:"tar",mime:"application/x-tar"};if(a([82,97,114,33,26,7])&&(t[6]===0||t[6]===1))return{ext:"rar",mime:"application/x-rar-compressed"};if(a([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(a([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(a([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(a([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(a([51,103,112,53])||a([0,0,0])&&a([102,116,121,112],{offset:4})&&(a([109,112,52,49],{offset:8})||a([109,112,52,50],{offset:8})||a([105,115,111,109],{offset:8})||a([105,115,111,50],{offset:8})||a([109,109,112,52],{offset:8})||a([77,52,86],{offset:8})||a([100,97,115,104],{offset:8})))return{ext:"mp4",mime:"video/mp4"};if(a([77,84,104,100]))return{ext:"mid",mime:"audio/midi"};if(a([26,69,223,163])){let n=t.subarray(4,4100),i=n.findIndex((r,o,s)=>s[o]===66&&s[o+1]===130);if(i!==-1){let r=i+3,o=s=>Array.from(s).every((l,u)=>n[r+u]===l.charCodeAt(0));if(o("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(o("webm"))return{ext:"webm",mime:"video/webm"}}}if(a([0,0,0,20,102,116,121,112,113,116,32,32])||a([102,114,101,101],{offset:4})||a([102,116,121,112,113,116,32,32],{offset:4})||a([109,100,97,116],{offset:4})||a([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(a([82,73,70,70])&&a([65,86,73],{offset:8}))return{ext:"avi",mime:"video/x-msvideo"};if(a([48,38,178,117,142,102,207,17,166,217]))return{ext:"wmv",mime:"video/x-ms-wmv"};if(a([0,0,1,186]))return{ext:"mpg",mime:"video/mpeg"};for(let n=0;n<2&&n{var a1=[0,1,3,7,15,31,63,127,255],fr=function(e){this.stream=e,this.bitOffset=0,this.curByte=0,this.hasByte=!1};fr.prototype._ensureByte=function(){this.hasByte||(this.curByte=this.stream.readByte(),this.hasByte=!0)};fr.prototype.read=function(e){for(var t=0;e>0;){this._ensureByte();var a=8-this.bitOffset;if(e>=a)t<<=a,t|=a1[a]&this.curByte,this.hasByte=!1,this.bitOffset=0,e-=a;else{t<<=e;var n=a-e;t|=(this.curByte&a1[e]<>n,this.bitOffset+=e,e=0}}return t};fr.prototype.seek=function(e){var t=e%8,a=(e-t)/8;this.bitOffset=t,this.stream.seek(a),this.hasByte=!1};fr.prototype.pi=function(){var e=new Buffer(6),t;for(t=0;t{var hn=function(){};hn.prototype.readByte=function(){throw new Error("abstract method readByte() not implemented")};hn.prototype.read=function(e,t,a){for(var n=0;n{s1.exports=function(){var e=new Uint32Array([0,79764919,159529838,222504665,319059676,398814059,445009330,507990021,638119352,583659535,797628118,726387553,890018660,835552979,1015980042,944750013,1276238704,1221641927,1167319070,1095957929,1595256236,1540665371,1452775106,1381403509,1780037320,1859660671,1671105958,1733955601,2031960084,2111593891,1889500026,1952343757,2552477408,2632100695,2443283854,2506133561,2334638140,2414271883,2191915858,2254759653,3190512472,3135915759,3081330742,3009969537,2905550212,2850959411,2762807018,2691435357,3560074640,3505614887,3719321342,3648080713,3342211916,3287746299,3467911202,3396681109,4063920168,4143685023,4223187782,4286162673,3779000052,3858754371,3904687514,3967668269,881225847,809987520,1023691545,969234094,662832811,591600412,771767749,717299826,311336399,374308984,453813921,533576470,25881363,88864420,134795389,214552010,2023205639,2086057648,1897238633,1976864222,1804852699,1867694188,1645340341,1724971778,1587496639,1516133128,1461550545,1406951526,1302016099,1230646740,1142491917,1087903418,2896545431,2825181984,2770861561,2716262478,3215044683,3143675388,3055782693,3001194130,2326604591,2389456536,2200899649,2280525302,2578013683,2640855108,2418763421,2498394922,3769900519,3832873040,3912640137,3992402750,4088425275,4151408268,4197601365,4277358050,3334271071,3263032808,3476998961,3422541446,3585640067,3514407732,3694837229,3640369242,1762451694,1842216281,1619975040,1682949687,2047383090,2127137669,1938468188,2001449195,1325665622,1271206113,1183200824,1111960463,1543535498,1489069629,1434599652,1363369299,622672798,568075817,748617968,677256519,907627842,853037301,1067152940,995781531,51762726,131386257,177728840,240578815,269590778,349224269,429104020,491947555,4046411278,4126034873,4172115296,4234965207,3794477266,3874110821,3953728444,4016571915,3609705398,3555108353,3735388376,3664026991,3290680682,3236090077,3449943556,3378572211,3174993278,3120533705,3032266256,2961025959,2923101090,2868635157,2813903052,2742672763,2604032198,2683796849,2461293480,2524268063,2284983834,2364738477,2175806836,2238787779,1569362073,1498123566,1409854455,1355396672,1317987909,1246755826,1192025387,1137557660,2072149281,2135122070,1912620623,1992383480,1753615357,1816598090,1627664531,1707420964,295390185,358241886,404320391,483945776,43990325,106832002,186451547,266083308,932423249,861060070,1041341759,986742920,613929101,542559546,756411363,701822548,3316196985,3244833742,3425377559,3370778784,3601682597,3530312978,3744426955,3689838204,3819031489,3881883254,3928223919,4007849240,4037393693,4100235434,4180117107,4259748804,2310601993,2373574846,2151335527,2231098320,2596047829,2659030626,2470359227,2550115596,2947551409,2876312838,2788305887,2733848168,3165939309,3094707162,3040238851,2985771188]),t=function(){var a=4294967295;this.getCRC=function(){return~a>>>0},this.updateCRC=function(n){a=a<<8^e[(a>>>24^n)&255]},this.updateCRCRun=function(n,i){for(;i-- >0;)a=a<<8^e[(a>>>24^n)&255]}};return t}()});var c1=O((NH,oR)=>{oR.exports={name:"seek-bzip",version:"1.0.6",contributors:["C. Scott Ananian (http://cscott.net)","Eli Skeggs","Kevin Kwok","Rob Landley (http://landley.net)"],description:"a pure-JavaScript Node.JS module for random-access decoding bzip2 data",main:"./lib/index.js",repository:{type:"git",url:"https://github.com/cscott/seek-bzip.git"},license:"MIT",bin:{"seek-bunzip":"./bin/seek-bunzip","seek-table":"./bin/seek-bzip-table"},directories:{test:"test"},dependencies:{commander:"^2.8.1"},devDependencies:{fibers:"~1.0.6",mocha:"~2.2.5"},scripts:{test:"mocha"}}});var b1=O((jH,v1)=>{var sR=i1(),mr=o1(),f1=l1(),m1=c1(),rl=20,u1=258,p1=0,lR=1,cR=2,uR=6,pR=50,dR="314159265359",fR="177245385090",d1=function(e,t){var a=e[t],n;for(n=t;n>0;n--)e[n]=e[n-1];return e[0]=a,a},De={OK:0,LAST_BLOCK:-1,NOT_BZIP_DATA:-2,UNEXPECTED_INPUT_EOF:-3,UNEXPECTED_OUTPUT_EOF:-4,DATA_ERROR:-5,OUT_OF_MEMORY:-6,OBSOLETE_INPUT:-7,END_OF_BLOCK:-8},Da={};Da[De.LAST_BLOCK]="Bad file checksum";Da[De.NOT_BZIP_DATA]="Not bzip data";Da[De.UNEXPECTED_INPUT_EOF]="Unexpected input EOF";Da[De.UNEXPECTED_OUTPUT_EOF]="Unexpected output EOF";Da[De.DATA_ERROR]="Data error";Da[De.OUT_OF_MEMORY]="Out of memory";Da[De.OBSOLETE_INPUT]="Obsolete (pre 0.9.5) bzip format not supported.";var ut=function(e,t){var a=Da[e]||"unknown error";t&&(a+=": "+t);var n=new TypeError(a);throw n.errorCode=e,n},gt=function(e,t){this.writePos=this.writeCurrent=this.writeCount=0,this._start_bunzip(e,t)};gt.prototype._init_block=function(){var e=this._get_next_block();return e?(this.blockCRC=new f1,!0):(this.writeCount=-1,!1)};gt.prototype._start_bunzip=function(e,t){var a=new Buffer(4);(e.read(a,0,4)!==4||String.fromCharCode(a[0],a[1],a[2])!=="BZh")&&ut(De.NOT_BZIP_DATA,"bad magic");var n=a[3]-48;(n<1||n>9)&&ut(De.NOT_BZIP_DATA,"level out of range"),this.reader=new sR(e),this.dbufSize=1e5*n,this.nextoutput=0,this.outputStream=t,this.streamCRC=0};gt.prototype._get_next_block=function(){var e,t,a,n=this.reader,i=n.pi();if(i===fR)return!1;i!==dR&&ut(De.NOT_BZIP_DATA),this.targetBlockCRC=n.read(32)>>>0,this.streamCRC=(this.targetBlockCRC^(this.streamCRC<<1|this.streamCRC>>>31))>>>0,n.read(1)&&ut(De.OBSOLETE_INPUT);var r=n.read(24);r>this.dbufSize&&ut(De.DATA_ERROR,"initial position out of bounds");var o=n.read(16),s=new Buffer(256),l=0;for(e=0;e<16;e++)if(o&1<<15-e){var u=e*16;for(a=n.read(16),t=0;t<16;t++)a&1<<15-t&&(s[l++]=u+t)}var c=n.read(3);(cuR)&&ut(De.DATA_ERROR);var f=n.read(15);f===0&&ut(De.DATA_ERROR);var p=new Buffer(256);for(e=0;e=c&&ut(De.DATA_ERROR);b[e]=d1(p,t)}var d=l+2,m=[],h;for(t=0;trl)&&ut(De.DATA_ERROR),!!n.read(1);)n.read(1)?o--:o++;v[e]=o}var E,g;for(E=g=v[0],e=1;eg?g=v[e]:v[e]=f&&ut(De.DATA_ERROR),h=m[b[A++]]),e=h.minLen,t=n.read(e);e>h.maxLen&&ut(De.DATA_ERROR),!(t<=h.limit[e]);e++)t=t<<1|n.read(1);t-=h.base[e],(t<0||t>=u1)&&ut(De.DATA_ERROR);var F=h.permute[t];if(F===p1||F===lR){y||(y=1,o=0),F===p1?o+=y:o+=2*y,y<<=1;continue}if(y)for(y=0,S+o>this.dbufSize&&ut(De.DATA_ERROR),_=s[p[0]],C[_]+=o;o--;)P[S++]=_;if(F>l)break;S>=this.dbufSize&&ut(De.DATA_ERROR),e=F-1,_=d1(p,e),_=s[_],C[_]++,P[S++]=_}for((r<0||r>=S)&&ut(De.DATA_ERROR),t=0,e=0;e<256;e++)a=t+C[e],C[e]=t,t=a;for(e=0;e>=8,L=-1),this.writePos=B,this.writeCurrent=j,this.writeCount=S,this.writeRun=L,!0};gt.prototype._read_bunzip=function(e,t){var a,n,i;if(this.writeCount<0)return 0;for(var r=0,o=this.dbuf,s=this.writePos,l=this.writeCurrent,u=this.writeCount,c=this.outputsize,f=this.writeRun;u;){for(u--,n=l,s=o[s],l=s&255,s>>=8,f++===3?(a=l,i=n,l=-1):(a=1,i=l),this.blockCRC.updateCRCRun(i,a);a--;)this.outputStream.writeByte(i),this.nextoutput++;l!=n&&(f=0)}return this.writeCount=u,this.blockCRC.getCRC()!==this.targetBlockCRC&&ut(De.DATA_ERROR,"Bad block CRC (got "+this.blockCRC.getCRC().toString(16)+" expected "+this.targetBlockCRC.toString(16)+")"),this.nextoutput};var rd=function(e){if("readByte"in e)return e;var t=new mr;return t.pos=0,t.readByte=function(){return e[this.pos++]},t.seek=function(a){this.pos=a},t.eof=function(){return this.pos>=e.length},t},h1=function(e){var t=new mr,a=!0;if(e)if(typeof e=="number")t.buffer=new Buffer(e),a=!1;else{if("writeByte"in e)return e;t.buffer=e,a=!1}else t.buffer=new Buffer(16384);return t.pos=0,t.writeByte=function(n){if(a&&this.pos>=this.buffer.length){var i=new Buffer(this.buffer.length*2);this.buffer.copy(i),this.buffer=i}this.buffer[this.pos++]=n},t.getBuffer=function(){if(this.pos!==this.buffer.length){if(!a)throw new TypeError("outputsize does not match decoded input");var n=new Buffer(this.pos);this.buffer.copy(n,0,0,this.pos),this.buffer=n}return this.buffer},t._coerced=!0,t};gt.Err=De;gt.decode=function(e,t,a){for(var n=rd(e),i=h1(t),r=new gt(n,i);!("eof"in n&&n.eof());)if(r._init_block())r._read_bunzip();else{var o=r.reader.read(32)>>>0;if(o!==r.streamCRC&&ut(De.DATA_ERROR,"Bad stream CRC (got "+r.streamCRC.toString(16)+" expected "+o.toString(16)+")"),a&&"eof"in n&&!n.eof())r._start_bunzip(n,i);else break}if("getBuffer"in i)return i.getBuffer()};gt.decodeBlock=function(e,t,a){var n=rd(e),i=h1(a),r=new gt(n,i);r.reader.seek(t);var o=r._get_next_block();if(o&&(r.blockCRC=new f1,r.writeCopies=0,r._read_bunzip()),"getBuffer"in i)return i.getBuffer()};gt.table=function(e,t,a){var n=new mr;n.delegate=rd(e),n.pos=0,n.readByte=function(){return this.pos++,this.delegate.readByte()},n.delegate.eof&&(n.eof=n.delegate.eof.bind(n.delegate));var i=new mr;i.pos=0,i.writeByte=function(){this.pos++};for(var r=new gt(n,i),o=r.dbufSize;!("eof"in n&&n.eof());){var s=n.pos*8+r.reader.bitOffset;if(r.reader.hasByte&&(s-=8),r._init_block()){var l=i.pos;r._read_bunzip(),t(s,i.pos-l)}else{var u=r.reader.read(32);if(a&&"eof"in n&&!n.eof())r._start_bunzip(n,i),console.assert(r.dbufSize===o,"shouldn't change block size within multistream file");else break}}};gt.Stream=mr;gt.version=m1.version;gt.license=m1.license;v1.exports=gt});var y1=O((g1,x1)=>{var mR=require("stream");g1=x1.exports=od;od.through=od;function od(e,t,a){e=e||function(c){this.queue(c)},t=t||function(){this.queue(null)};var n=!1,i=!1,r=[],o=!1,s=new mR;s.readable=s.writable=!0,s.paused=!1,s.autoDestroy=!(a&&a.autoDestroy===!1),s.write=function(c){return e.call(this,c),!s.paused};function l(){for(;r.length&&!s.paused;){var c=r.shift();if(c===null)return s.emit("end");s.emit("data",c)}}s.queue=s.push=function(c){return o||(c===null&&(o=!0),r.push(c),l()),s},s.on("end",function(){s.readable=!1,!s.writable&&s.autoDestroy&&process.nextTick(function(){s.destroy()})});function u(){s.writable=!1,t.call(s),!s.readable&&s.autoDestroy&&s.destroy()}return s.end=function(c){if(!n)return n=!0,arguments.length&&s.write(c),u(),s},s.destroy=function(){if(!i)return i=!0,n=!0,r.length=0,s.writable=s.readable=!1,s.emit("close"),s},s.pause=function(){if(!s.paused)return s.paused=!0,s},s.resume=function(){return s.paused&&(s.paused=!1,s.emit("resume")),l(),s.paused||s.emit("drain"),s},s}});var E1=O((LH,w1)=>{function sd(e){this.name="Bzip2Error",this.message=e,this.stack=new Error().stack}sd.prototype=new Error;var pt={Error:function(e){throw new sd(e)}},na={};na.Bzip2Error=sd;na.crcTable=[0,79764919,159529838,222504665,319059676,398814059,445009330,507990021,638119352,583659535,797628118,726387553,890018660,835552979,1015980042,944750013,1276238704,1221641927,1167319070,1095957929,1595256236,1540665371,1452775106,1381403509,1780037320,1859660671,1671105958,1733955601,2031960084,2111593891,1889500026,1952343757,2552477408,2632100695,2443283854,2506133561,2334638140,2414271883,2191915858,2254759653,3190512472,3135915759,3081330742,3009969537,2905550212,2850959411,2762807018,2691435357,3560074640,3505614887,3719321342,3648080713,3342211916,3287746299,3467911202,3396681109,4063920168,4143685023,4223187782,4286162673,3779000052,3858754371,3904687514,3967668269,881225847,809987520,1023691545,969234094,662832811,591600412,771767749,717299826,311336399,374308984,453813921,533576470,25881363,88864420,134795389,214552010,2023205639,2086057648,1897238633,1976864222,1804852699,1867694188,1645340341,1724971778,1587496639,1516133128,1461550545,1406951526,1302016099,1230646740,1142491917,1087903418,2896545431,2825181984,2770861561,2716262478,3215044683,3143675388,3055782693,3001194130,2326604591,2389456536,2200899649,2280525302,2578013683,2640855108,2418763421,2498394922,3769900519,3832873040,3912640137,3992402750,4088425275,4151408268,4197601365,4277358050,3334271071,3263032808,3476998961,3422541446,3585640067,3514407732,3694837229,3640369242,1762451694,1842216281,1619975040,1682949687,2047383090,2127137669,1938468188,2001449195,1325665622,1271206113,1183200824,1111960463,1543535498,1489069629,1434599652,1363369299,622672798,568075817,748617968,677256519,907627842,853037301,1067152940,995781531,51762726,131386257,177728840,240578815,269590778,349224269,429104020,491947555,4046411278,4126034873,4172115296,4234965207,3794477266,3874110821,3953728444,4016571915,3609705398,3555108353,3735388376,3664026991,3290680682,3236090077,3449943556,3378572211,3174993278,3120533705,3032266256,2961025959,2923101090,2868635157,2813903052,2742672763,2604032198,2683796849,2461293480,2524268063,2284983834,2364738477,2175806836,2238787779,1569362073,1498123566,1409854455,1355396672,1317987909,1246755826,1192025387,1137557660,2072149281,2135122070,1912620623,1992383480,1753615357,1816598090,1627664531,1707420964,295390185,358241886,404320391,483945776,43990325,106832002,186451547,266083308,932423249,861060070,1041341759,986742920,613929101,542559546,756411363,701822548,3316196985,3244833742,3425377559,3370778784,3601682597,3530312978,3744426955,3689838204,3819031489,3881883254,3928223919,4007849240,4037393693,4100235434,4180117107,4259748804,2310601993,2373574846,2151335527,2231098320,2596047829,2659030626,2470359227,2550115596,2947551409,2876312838,2788305887,2733848168,3165939309,3094707162,3040238851,2985771188];na.array=function(e){var t=0,a=0,n=[0,1,3,7,15,31,63,127,255];return function(i){for(var r=0;i>0;){var o=8-t;i>=o?(r<<=o,r|=n[o]&e[a++],t=0,i-=o):(r<<=i,r|=(e[a]&n[i]<<8-i-t)>>8-i-t,t+=i,i=0)}return r}};na.simple=function(e,t){var a=na.array(e),n=na.header(a),i=!1,r=1e5*n,o=new Int32Array(r);do i=na.decompress(a,t,o,r);while(!i)};na.header=function(e){this.byteCount=new Int32Array(256),this.symToByte=new Uint8Array(256),this.mtfSymbol=new Int32Array(256),this.selectors=new Uint8Array(32768),e(8*3)!=4348520&&pt.Error("No magic number found");var t=e(8)-48;return(t<1||t>9)&&pt.Error("Not a BZIP archive"),t};na.decompress=function(e,t,a,n,i){for(var r=20,o=258,s=0,l=1,u=50,c=-1,f="",p=0;p<6;p++)f+=e(8).toString(16);if(f=="177245385090"){var b=e(32)|0;return b!==i&&pt.Error("Error in bzip2: crc32 do not match"),e(null),null}f!="314159265359"&&pt.Error("eek not valid bzip data");var d=e(32)|0;e(1)&&pt.Error("unsupported obsolete version");var m=e(24);m>n&&pt.Error("Initial position larger than buffer size");var h=e(16),v=0;for(p=0;p<16;p++)if(h&1<<15-p){var x=e(16);for(D=0;D<16;D++)x&1<<15-D&&(this.symToByte[v++]=16*p+D)}var E=e(3);(E<2||E>6)&&pt.Error("another error");var g=e(15);g==0&&pt.Error("meh");for(var p=0;p=E&&pt.Error("whoops another error");for(var w=this.mtfSymbol[D],x=D-1;x>=0;x--)this.mtfSymbol[x+1]=this.mtfSymbol[x];this.mtfSymbol[0]=w,this.selectors[p]=w}for(var T=v+2,C=[],y=new Uint8Array(o),S=new Uint16Array(r+1),A,D=0;Dr)&&pt.Error("I gave up a while ago on writing error messages"),!!e(1);)e(1)?h--:h++;y[p]=h}var _,P;_=P=y[0];for(var p=1;pP?P=y[p]:y[p]<_&&(_=y[p]);A=C[D]={},A.permute=new Int32Array(o),A.limit=new Int32Array(r+1),A.base=new Int32Array(r+1),A.minLen=_,A.maxLen=P;for(var F=A.base,B=A.limit,j=0,p=_;p<=P;p++)for(var h=0;h=g&&pt.Error("meow i'm a kitty, that's an error"),A=C[this.selectors[N++]],F=A.base,B=A.limit),p=A.minLen,D=e(p);p>A.maxLen&&pt.Error("rawr i'm a dinosaur"),!(D<=B[p]);)p++,D=D<<1|e(1);D-=F[p],(D<0||D>=o)&&pt.Error("moo i'm a cow");var M=A.permute[D];if(M==s||M==l){L||(L=1,h=0),M==s?h+=L:h+=2*L,L<<=1;continue}if(L)for(L=0,k+h>n&&pt.Error("Boom."),w=this.symToByte[this.mtfSymbol[0]],this.byteCount[w]+=h;h--;)a[k++]=w;if(M>v)break;k>=n&&pt.Error("I can't think of anything. Error"),p=M-1,w=this.mtfSymbol[p];for(var x=p-1;x>=0;x--)this.mtfSymbol[x+1]=this.mtfSymbol[x];this.mtfSymbol[0]=w,w=this.symToByte[w],this.byteCount[w]++,a[k++]=w}(m<0||m>=k)&&pt.Error("I'm a monkey and I'm throwing something at someone, namely you");for(var D=0,p=0;p<256;p++)x=D+this.byteCount[p],this.byteCount[p]=D,D=x;for(var p=0;p>=8,Z=-1),k=k;for(var pe,fe,ee;k;){for(k--,fe=q,V=a[V],q=V&255,V>>=8,Z++==3?(pe=q,ee=fe,q=-1):(pe=1,ee=q);pe--;)c=(c<<8^this.crcTable[(c>>24^ee)&255])&4294967295,t(ee);q!=fe&&(Z=0)}return c=(c^-1)>>>0,(c|0)!=(d|0)&&pt.Error("Error in bzip2: crc32 do not match"),i=(c^(i<<1|i>>>31))&4294967295,i};w1.exports=na});var A1=O((MH,C1)=>{var S1=[0,1,3,7,15,31,63,127,255];C1.exports=function(t){var a=0,n=0,i=t(),r=function(o){if(o===null&&a!=0){a=0,n++;return}for(var s=0;o>0;){n>=i.length&&(n=0,i=t());var l=8-a;a===0&&o>0&&r.bytesRead++,o>=l?(s<<=l,s|=S1[l]&i[n++],a=0,o-=l):(s<<=o,s|=(i[n]&S1[o]<<8-o-a)>>8-o-a,a+=o,o=0)}return s};return r.bytesRead=0,r}});var T1=O((DH,_1)=>{var hR=y1(),I1=E1(),vR=A1();_1.exports=bR;function bR(){var e=[],t=0,a=0,n=!1,i=!1,r=null,o=null;function s(c){if(a){var f=1e5*a,p=new Int32Array(f),b=[],d=function(m){b.push(m)};return o=I1.decompress(r,d,p,f,o),o===null?(a=0,!1):(c(Buffer.from(b)),!0)}else return a=I1.header(r),o=0,!0}var l=0;function u(c){if(!n)try{return s(function(f){c.queue(f),f!==null&&(l+=f.length)})}catch(f){return c.emit("error",f),n=!0,!1}}return hR(function(f){for(e.push(f),t+=f.length,r===null&&(r=vR(function(){return e.shift()}));!n&&t-r.bytesRead+1>=(25e3+1e5*a||4);)u(this)},function(f){for(;!n&&r&&t>r.bytesRead;)u(this);n||(o!==null&&this.emit("error",new Error("input stream ended prematurely")),this.queue(null))})}});var O1=O((zH,P1)=>{"use strict";var k1=il(),F1=t1(),gR=Ds(),xR=b1(),yR=T1();P1.exports=()=>e=>!Buffer.isBuffer(e)&&!gR(e)?Promise.reject(new TypeError(`Expected a Buffer or Stream, got ${typeof e}`)):Buffer.isBuffer(e)&&(!F1(e)||F1(e).ext!=="bz2")?Promise.resolve([]):Buffer.isBuffer(e)?k1()(xR.decode(e)):k1()(e.pipe(yR()))});var B1=O((GH,R1)=>{"use strict";R1.exports=e=>{let t=new Uint8Array(e);if(!(t&&t.length>1))return null;let a=(n,i)=>{i=Object.assign({offset:0},i);for(let r=0;rs[o]===66&&s[o+1]===130);if(i>=0){let r=i+3,o=s=>Array.from(s).every((l,u)=>n[r+u]===l.charCodeAt(0));if(o("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(o("webm"))return{ext:"webm",mime:"video/webm"}}}return a([0,0,0,20,102,116,121,112,113,116,32,32])||a([102,114,101,101],{offset:4})||a([102,116,121,112,113,116,32,32],{offset:4})||a([109,100,97,116],{offset:4})||a([119,105,100,101],{offset:4})?{ext:"mov",mime:"video/quicktime"}:a([82,73,70,70])&&a([65,86,73],{offset:8})?{ext:"avi",mime:"video/x-msvideo"}:a([48,38,178,117,142,102,207,17,166,217])?{ext:"wmv",mime:"video/x-ms-wmv"}:a([0,0,1,186])?{ext:"mpg",mime:"video/mpeg"}:a([73,68,51])||a([255,251])?{ext:"mp3",mime:"audio/mpeg"}:a([102,116,121,112,77,52,65],{offset:4})||a([77,52,65,32])?{ext:"m4a",mime:"audio/m4a"}:a([79,112,117,115,72,101,97,100],{offset:28})?{ext:"opus",mime:"audio/opus"}:a([79,103,103,83])?{ext:"ogg",mime:"audio/ogg"}:a([102,76,97,67])?{ext:"flac",mime:"audio/x-flac"}:a([82,73,70,70])&&a([87,65,86,69],{offset:8})?{ext:"wav",mime:"audio/x-wav"}:a([35,33,65,77,82,10])?{ext:"amr",mime:"audio/amr"}:a([37,80,68,70])?{ext:"pdf",mime:"application/pdf"}:a([77,90])?{ext:"exe",mime:"application/x-msdownload"}:(t[0]===67||t[0]===70)&&a([87,83],{offset:1})?{ext:"swf",mime:"application/x-shockwave-flash"}:a([123,92,114,116,102])?{ext:"rtf",mime:"application/rtf"}:a([0,97,115,109])?{ext:"wasm",mime:"application/wasm"}:a([119,79,70,70])&&(a([0,1,0,0],{offset:4})||a([79,84,84,79],{offset:4}))?{ext:"woff",mime:"font/woff"}:a([119,79,70,50])&&(a([0,1,0,0],{offset:4})||a([79,84,84,79],{offset:4}))?{ext:"woff2",mime:"font/woff2"}:a([76,80],{offset:34})&&(a([0,0,1],{offset:8})||a([1,0,2],{offset:8})||a([2,0,2],{offset:8}))?{ext:"eot",mime:"application/octet-stream"}:a([0,1,0,0,0])?{ext:"ttf",mime:"font/ttf"}:a([79,84,84,79,0])?{ext:"otf",mime:"font/otf"}:a([0,0,1,0])?{ext:"ico",mime:"image/x-icon"}:a([70,76,86,1])?{ext:"flv",mime:"video/x-flv"}:a([37,33])?{ext:"ps",mime:"application/postscript"}:a([253,55,122,88,90,0])?{ext:"xz",mime:"application/x-xz"}:a([83,81,76,105])?{ext:"sqlite",mime:"application/x-sqlite3"}:a([78,69,83,26])?{ext:"nes",mime:"application/x-nintendo-nes-rom"}:a([67,114,50,52])?{ext:"crx",mime:"application/x-google-chrome-extension"}:a([77,83,67,70])||a([73,83,99,40])?{ext:"cab",mime:"application/vnd.ms-cab-compressed"}:a([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121])?{ext:"deb",mime:"application/x-deb"}:a([33,60,97,114,99,104,62])?{ext:"ar",mime:"application/x-unix-archive"}:a([237,171,238,219])?{ext:"rpm",mime:"application/x-rpm"}:a([31,160])||a([31,157])?{ext:"Z",mime:"application/x-compress"}:a([76,90,73,80])?{ext:"lz",mime:"application/x-lzip"}:a([208,207,17,224,161,177,26,225])?{ext:"msi",mime:"application/x-msi"}:a([6,14,43,52,2,5,1,1,13,1,2,1,1,2])?{ext:"mxf",mime:"application/mxf"}:a([71],{offset:4})&&(a([71],{offset:192})||a([71],{offset:196}))?{ext:"mts",mime:"video/mp2t"}:a([66,76,69,78,68,69,82])?{ext:"blend",mime:"application/x-blender"}:a([66,80,71,251])?{ext:"bpg",mime:"image/bpg"}:null}});var L1=O((HH,j1)=>{"use strict";var wR=require("zlib"),ER=il(),N1=B1(),SR=Ds();j1.exports=()=>e=>{if(!Buffer.isBuffer(e)&&!SR(e))return Promise.reject(new TypeError(`Expected a Buffer or Stream, got ${typeof e}`));if(Buffer.isBuffer(e)&&(!N1(e)||N1(e).ext!=="gz"))return Promise.resolve([]);let t=wR.createGunzip(),a=ER()(t);return Buffer.isBuffer(e)?t.end(e):e.pipe(t),a}});var D1=O((WH,M1)=>{"use strict";M1.exports=function(e){return e&&e.length>1?e[0]===255&&e[1]===216&&e[2]===255?{ext:"jpg",mime:"image/jpeg"}:e[0]===137&&e[1]===80&&e[2]===78&&e[3]===71?{ext:"png",mime:"image/png"}:e[0]===71&&e[1]===73&&e[2]===70?{ext:"gif",mime:"image/gif"}:e[8]===87&&e[9]===69&&e[10]===66&&e[11]===80?{ext:"webp",mime:"image/webp"}:e[0]===70&&e[1]===76&&e[2]===73&&e[3]===70?{ext:"flif",mime:"image/flif"}:(e[0]===73&&e[1]===73&&e[2]===42&&e[3]===0||e[0]===77&&e[1]===77&&e[2]===0&&e[3]===42)&&e[8]===67&&e[9]===82?{ext:"cr2",mime:"image/x-canon-cr2"}:e[0]===73&&e[1]===73&&e[2]===42&&e[3]===0||e[0]===77&&e[1]===77&&e[2]===0&&e[3]===42?{ext:"tif",mime:"image/tiff"}:e[0]===66&&e[1]===77?{ext:"bmp",mime:"image/bmp"}:e[0]===73&&e[1]===73&&e[2]===188?{ext:"jxr",mime:"image/vnd.ms-photo"}:e[0]===56&&e[1]===66&&e[2]===80&&e[3]===83?{ext:"psd",mime:"image/vnd.adobe.photoshop"}:e[0]===80&&e[1]===75&&e[2]===3&&e[3]===4&&e[30]===109&&e[31]===105&&e[32]===109&&e[33]===101&&e[34]===116&&e[35]===121&&e[36]===112&&e[37]===101&&e[38]===97&&e[39]===112&&e[40]===112&&e[41]===108&&e[42]===105&&e[43]===99&&e[44]===97&&e[45]===116&&e[46]===105&&e[47]===111&&e[48]===110&&e[49]===47&&e[50]===101&&e[51]===112&&e[52]===117&&e[53]===98&&e[54]===43&&e[55]===122&&e[56]===105&&e[57]===112?{ext:"epub",mime:"application/epub+zip"}:e[0]===80&&e[1]===75&&e[2]===3&&e[3]===4&&e[30]===77&&e[31]===69&&e[32]===84&&e[33]===65&&e[34]===45&&e[35]===73&&e[36]===78&&e[37]===70&&e[38]===47&&e[39]===109&&e[40]===111&&e[41]===122&&e[42]===105&&e[43]===108&&e[44]===108&&e[45]===97&&e[46]===46&&e[47]===114&&e[48]===115&&e[49]===97?{ext:"xpi",mime:"application/x-xpinstall"}:e[0]===80&&e[1]===75&&(e[2]===3||e[2]===5||e[2]===7)&&(e[3]===4||e[3]===6||e[3]===8)?{ext:"zip",mime:"application/zip"}:e[257]===117&&e[258]===115&&e[259]===116&&e[260]===97&&e[261]===114?{ext:"tar",mime:"application/x-tar"}:e[0]===82&&e[1]===97&&e[2]===114&&e[3]===33&&e[4]===26&&e[5]===7&&(e[6]===0||e[6]===1)?{ext:"rar",mime:"application/x-rar-compressed"}:e[0]===31&&e[1]===139&&e[2]===8?{ext:"gz",mime:"application/gzip"}:e[0]===66&&e[1]===90&&e[2]===104?{ext:"bz2",mime:"application/x-bzip2"}:e[0]===55&&e[1]===122&&e[2]===188&&e[3]===175&&e[4]===39&&e[5]===28?{ext:"7z",mime:"application/x-7z-compressed"}:e[0]===120&&e[1]===1?{ext:"dmg",mime:"application/x-apple-diskimage"}:e[0]===0&&e[1]===0&&e[2]===0&&(e[3]===24||e[3]===32)&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112||e[0]===51&&e[1]===103&&e[2]===112&&e[3]===53||e[0]===0&&e[1]===0&&e[2]===0&&e[3]===28&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===109&&e[9]===112&&e[10]===52&&e[11]===50&&e[16]===109&&e[17]===112&&e[18]===52&&e[19]===49&&e[20]===109&&e[21]===112&&e[22]===52&&e[23]===50&&e[24]===105&&e[25]===115&&e[26]===111&&e[27]===109||e[0]===0&&e[1]===0&&e[2]===0&&e[3]===28&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===105&&e[9]===115&&e[10]===111&&e[11]===109||e[0]===0&&e[1]===0&&e[2]===0&&e[3]===28&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===109&&e[9]===112&&e[10]===52&&e[11]===50&&e[12]===0&&e[13]===0&&e[14]===0&&e[15]===0?{ext:"mp4",mime:"video/mp4"}:e[0]===0&&e[1]===0&&e[2]===0&&e[3]===28&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===77&&e[9]===52&&e[10]===86?{ext:"m4v",mime:"video/x-m4v"}:e[0]===77&&e[1]===84&&e[2]===104&&e[3]===100?{ext:"mid",mime:"audio/midi"}:e[31]===109&&e[32]===97&&e[33]===116&&e[34]===114&&e[35]===111&&e[36]===115&&e[37]===107&&e[38]===97?{ext:"mkv",mime:"video/x-matroska"}:e[0]===26&&e[1]===69&&e[2]===223&&e[3]===163?{ext:"webm",mime:"video/webm"}:e[0]===0&&e[1]===0&&e[2]===0&&e[3]===20&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112?{ext:"mov",mime:"video/quicktime"}:e[0]===82&&e[1]===73&&e[2]===70&&e[3]===70&&e[8]===65&&e[9]===86&&e[10]===73?{ext:"avi",mime:"video/x-msvideo"}:e[0]===48&&e[1]===38&&e[2]===178&&e[3]===117&&e[4]===142&&e[5]===102&&e[6]===207&&e[7]===17&&e[8]===166&&e[9]===217?{ext:"wmv",mime:"video/x-ms-wmv"}:e[0]===0&&e[1]===0&&e[2]===1&&e[3].toString(16)[0]==="b"?{ext:"mpg",mime:"video/mpeg"}:e[0]===73&&e[1]===68&&e[2]===51||e[0]===255&&e[1]===251?{ext:"mp3",mime:"audio/mpeg"}:e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===77&&e[9]===52&&e[10]===65||e[0]===77&&e[1]===52&&e[2]===65&&e[3]===32?{ext:"m4a",mime:"audio/m4a"}:e[28]===79&&e[29]===112&&e[30]===117&&e[31]===115&&e[32]===72&&e[33]===101&&e[34]===97&&e[35]===100?{ext:"opus",mime:"audio/opus"}:e[0]===79&&e[1]===103&&e[2]===103&&e[3]===83?{ext:"ogg",mime:"audio/ogg"}:e[0]===102&&e[1]===76&&e[2]===97&&e[3]===67?{ext:"flac",mime:"audio/x-flac"}:e[0]===82&&e[1]===73&&e[2]===70&&e[3]===70&&e[8]===87&&e[9]===65&&e[10]===86&&e[11]===69?{ext:"wav",mime:"audio/x-wav"}:e[0]===35&&e[1]===33&&e[2]===65&&e[3]===77&&e[4]===82&&e[5]===10?{ext:"amr",mime:"audio/amr"}:e[0]===37&&e[1]===80&&e[2]===68&&e[3]===70?{ext:"pdf",mime:"application/pdf"}:e[0]===77&&e[1]===90?{ext:"exe",mime:"application/x-msdownload"}:(e[0]===67||e[0]===70)&&e[1]===87&&e[2]===83?{ext:"swf",mime:"application/x-shockwave-flash"}:e[0]===123&&e[1]===92&&e[2]===114&&e[3]===116&&e[4]===102?{ext:"rtf",mime:"application/rtf"}:e[0]===119&&e[1]===79&&e[2]===70&&e[3]===70&&(e[4]===0&&e[5]===1&&e[6]===0&&e[7]===0||e[4]===79&&e[5]===84&&e[6]===84&&e[7]===79)?{ext:"woff",mime:"application/font-woff"}:e[0]===119&&e[1]===79&&e[2]===70&&e[3]===50&&(e[4]===0&&e[5]===1&&e[6]===0&&e[7]===0||e[4]===79&&e[5]===84&&e[6]===84&&e[7]===79)?{ext:"woff2",mime:"application/font-woff"}:e[34]===76&&e[35]===80&&(e[8]===0&&e[9]===0&&e[10]===1||e[8]===1&&e[9]===0&&e[10]===2||e[8]===2&&e[9]===0&&e[10]===2)?{ext:"eot",mime:"application/octet-stream"}:e[0]===0&&e[1]===1&&e[2]===0&&e[3]===0&&e[4]===0?{ext:"ttf",mime:"application/font-sfnt"}:e[0]===79&&e[1]===84&&e[2]===84&&e[3]===79&&e[4]===0?{ext:"otf",mime:"application/font-sfnt"}:e[0]===0&&e[1]===0&&e[2]===1&&e[3]===0?{ext:"ico",mime:"image/x-icon"}:e[0]===70&&e[1]===76&&e[2]===86&&e[3]===1?{ext:"flv",mime:"video/x-flv"}:e[0]===37&&e[1]===33?{ext:"ps",mime:"application/postscript"}:e[0]===253&&e[1]===55&&e[2]===122&&e[3]===88&&e[4]===90&&e[5]===0?{ext:"xz",mime:"application/x-xz"}:e[0]===83&&e[1]===81&&e[2]===76&&e[3]===105?{ext:"sqlite",mime:"application/x-sqlite3"}:e[0]===78&&e[1]===69&&e[2]===83&&e[3]===26?{ext:"nes",mime:"application/x-nintendo-nes-rom"}:e[0]===67&&e[1]===114&&e[2]===50&&e[3]===52?{ext:"crx",mime:"application/x-google-chrome-extension"}:e[0]===77&&e[1]===83&&e[2]===67&&e[3]===70||e[0]===73&&e[1]===83&&e[2]===99&&e[3]===40?{ext:"cab",mime:"application/vnd.ms-cab-compressed"}:e[0]===33&&e[1]===60&&e[2]===97&&e[3]===114&&e[4]===99&&e[5]===104&&e[6]===62&&e[7]===10&&e[8]===100&&e[9]===101&&e[10]===98&&e[11]===105&&e[12]===97&&e[13]===110&&e[14]===45&&e[15]===98&&e[16]===105&&e[17]===110&&e[18]===97&&e[19]===114&&e[20]===121?{ext:"deb",mime:"application/x-deb"}:e[0]===33&&e[1]===60&&e[2]===97&&e[3]===114&&e[4]===99&&e[5]===104&&e[6]===62?{ext:"ar",mime:"application/x-unix-archive"}:e[0]===237&&e[1]===171&&e[2]===238&&e[3]===219?{ext:"rpm",mime:"application/x-rpm"}:e[0]===31&&e[1]===160||e[0]===31&&e[1]===157?{ext:"Z",mime:"application/x-compress"}:e[0]===76&&e[1]===90&&e[2]===73&&e[3]===80?{ext:"lz",mime:"application/x-lzip"}:e[0]===208&&e[1]===207&&e[2]===17&&e[3]===224&&e[4]===161&&e[5]===177&&e[6]===26&&e[7]===225?{ext:"msi",mime:"application/x-msi"}:null:null}});var Z1=O((VH,J1)=>{"use strict";var cd="pending",z1="settled",ol="fulfilled",sl="rejected",CR=function(){},G1=typeof global!="undefined"&&typeof global.process!="undefined"&&typeof global.process.emit=="function",AR=typeof setImmediate=="undefined"?setTimeout:setImmediate,hr=[],ld;function IR(){for(var e=0;e{"use strict";q1.exports=typeof Promise=="function"?Promise:Z1()});var cl=O((JH,Y1)=>{"use strict";var $1=Object.getOwnPropertySymbols,PR=Object.prototype.hasOwnProperty,OR=Object.prototype.propertyIsEnumerable;function RR(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function BR(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},a=0;a<10;a++)t["_"+String.fromCharCode(a)]=a;var n=Object.getOwnPropertyNames(t).map(function(r){return t[r]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(r){i[r]=r}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch(r){return!1}}Y1.exports=BR()?Object.assign:function(e,t){for(var a,n=RR(e),i,r=1;r{var NR=require("stream").PassThrough,jR=cl();K1.exports=function(e){e=jR({},e);var t=e.array,a=e.encoding,n=a==="buffer",i=!1;t?i=!(a||n):a=a||"utf8",n&&(a=null);var r=0,o=[],s=new NR({objectMode:i});return a&&s.setEncoding(a),s.on("data",function(l){o.push(l),i?r=o.length:r+=l.length}),s.getBufferedValue=function(){return t?o:n?Buffer.concat(o,r):o.join("")},s.getBufferedLength=function(){return r},s}});var tE=O((qH,ul)=>{"use strict";var eE=X1(),pd=cl(),LR=Q1();function dd(e,t){if(!e)return eE.reject(new Error("Expected a stream"));t=pd({maxBuffer:1/0},t);var a=t.maxBuffer,n,i,r=new eE(function(o,s){n=LR(t),e.once("error",l),e.pipe(n),n.on("data",function(){n.getBufferedLength()>a&&s(new Error("maxBuffer exceeded"))}),n.once("error",l),n.on("end",o),i=function(){e.unpipe&&e.unpipe(n)};function l(u){u&&(u.bufferedData=n.getBufferedValue()),s(u)}});return r.then(i,i),r.then(function(){return n.getBufferedValue()})}ul.exports=dd;ul.exports.buffer=function(e,t){return dd(e,pd({},t,{encoding:"buffer"}))};ul.exports.array=function(e,t){return dd(e,pd({},t,{array:!0}))}});var rE=O((XH,iE)=>{"use strict";var aE=function(e,t,a){return function(){for(var n=this,i=new Array(arguments.length),r=0;r{lE.exports=pl;function pl(){this.pending=0,this.max=1/0,this.listeners=[],this.waiting=[],this.error=null}pl.prototype.go=function(e){this.pending0&&e.pending{var br=require("fs"),dl=require("util"),fd=require("stream"),uE=fd.Readable,md=fd.Writable,MR=fd.PassThrough,DR=cE(),fl=require("events").EventEmitter;gr.createFromBuffer=zR;gr.createFromFd=GR;gr.BufferSlicer=Ea;gr.FdSlicer=wa;dl.inherits(wa,fl);function wa(e,t){t=t||{},fl.call(this),this.fd=e,this.pend=new DR,this.pend.max=1,this.refCount=0,this.autoClose=!!t.autoClose}wa.prototype.read=function(e,t,a,n,i){var r=this;r.pend.go(function(o){br.read(r.fd,e,t,a,n,function(s,l,u){o(),i(s,l,u)})})};wa.prototype.write=function(e,t,a,n,i){var r=this;r.pend.go(function(o){br.write(r.fd,e,t,a,n,function(s,l,u){o(),i(s,l,u)})})};wa.prototype.createReadStream=function(e){return new ml(this,e)};wa.prototype.createWriteStream=function(e){return new hl(this,e)};wa.prototype.ref=function(){this.refCount+=1};wa.prototype.unref=function(){var e=this;if(e.refCount-=1,e.refCount>0)return;if(e.refCount<0)throw new Error("invalid unref");e.autoClose&&br.close(e.fd,t);function t(a){a?e.emit("error",a):e.emit("close")}};dl.inherits(ml,uE);function ml(e,t){t=t||{},uE.call(this,t),this.context=e,this.context.ref(),this.start=t.start||0,this.endOffset=t.end,this.pos=this.start,this.destroyed=!1}ml.prototype._read=function(e){var t=this;if(!t.destroyed){var a=Math.min(t._readableState.highWaterMark,e);if(t.endOffset!=null&&(a=Math.min(a,t.endOffset-t.pos)),a<=0){t.destroyed=!0,t.push(null),t.context.unref();return}t.context.pend.go(function(n){if(t.destroyed)return n();var i=new Buffer(a);br.read(t.context.fd,i,0,a,t.pos,function(r,o){r?t.destroy(r):o===0?(t.destroyed=!0,t.push(null),t.context.unref()):(t.pos+=o,t.push(i.slice(0,o))),n()})})}};ml.prototype.destroy=function(e){this.destroyed||(e=e||new Error("stream destroyed"),this.destroyed=!0,this.emit("error",e),this.context.unref())};dl.inherits(hl,md);function hl(e,t){t=t||{},md.call(this,t),this.context=e,this.context.ref(),this.start=t.start||0,this.endOffset=t.end==null?1/0:+t.end,this.bytesWritten=0,this.pos=this.start,this.destroyed=!1,this.on("finish",this.destroy.bind(this))}hl.prototype._write=function(e,t,a){var n=this;if(!n.destroyed){if(n.pos+e.length>n.endOffset){var i=new Error("maximum file length exceeded");i.code="ETOOBIG",n.destroy(),a(i);return}n.context.pend.go(function(r){if(n.destroyed)return r();br.write(n.context.fd,e,0,e.length,n.pos,function(o,s){o?(n.destroy(),r(),a(o)):(n.bytesWritten+=s,n.pos+=s,n.emit("progress"),r(),a())})})}};hl.prototype.destroy=function(){this.destroyed||(this.destroyed=!0,this.context.unref())};dl.inherits(Ea,fl);function Ea(e,t){fl.call(this),t=t||{},this.refCount=0,this.buffer=e,this.maxChunkSize=t.maxChunkSize||Number.MAX_SAFE_INTEGER}Ea.prototype.read=function(e,t,a,n,i){var r=n+a,o=r-this.buffer.length,s=o>0?o:a;this.buffer.copy(e,t,n,r),setImmediate(function(){i(null,s)})};Ea.prototype.write=function(e,t,a,n,i){e.copy(this.buffer,n,t,t+a),setImmediate(function(){i(null,a,e)})};Ea.prototype.createReadStream=function(e){e=e||{};var t=new MR(e);t.destroyed=!1,t.start=e.start||0,t.endOffset=e.end,t.pos=t.endOffset||this.buffer.length;for(var a=this.buffer.slice(t.start,t.pos),n=0;;){var i=n+this.maxChunkSize;if(i>=a.length){na.endOffset){var s=new Error("maximum file length exceeded");s.code="ETOOBIG",a.destroyed=!0,r(s);return}n.copy(t.buffer,a.pos,0,n.length),a.bytesWritten+=n.length,a.pos=o,a.emit("progress"),r()}},a.destroy=function(){a.destroyed=!0},a};Ea.prototype.ref=function(){this.refCount+=1};Ea.prototype.unref=function(){if(this.refCount-=1,this.refCount<0)throw new Error("invalid unref")};function zR(e,t){return new Ea(e,t)}function GR(e,t){return new wa(e,t)}});var mE=O((KH,fE)=>{var za=require("buffer").Buffer,hd=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];typeof Int32Array!="undefined"&&(hd=new Int32Array(hd));function dE(e){if(za.isBuffer(e))return e;var t=typeof za.alloc=="function"&&typeof za.from=="function";if(typeof e=="number")return t?za.alloc(e):new za(e);if(typeof e=="string")return t?za.from(e):new za(e);throw new Error("input must be buffer, number, or string, received "+typeof e)}function HR(e){var t=dE(4);return t.writeInt32BE(e,0),t}function vd(e,t){e=dE(e),za.isBuffer(t)&&(t=t.readUInt32BE(0));for(var a=~~t^-1,n=0;n>>8;return a^-1}function bd(){return HR(vd.apply(null,arguments))}bd.signed=function(){return vd.apply(null,arguments)};bd.unsigned=function(){return vd.apply(null,arguments)>>>0};fE.exports=bd});var wE=O(ra=>{var gd=require("fs"),WR=require("zlib"),hE=pE(),VR=mE(),gl=require("util"),xl=require("events").EventEmitter,vE=require("stream").Transform,xd=require("stream").PassThrough,UR=require("stream").Writable;ra.open=JR;ra.fromFd=bE;ra.fromBuffer=ZR;ra.fromRandomAccessReader=yd;ra.dosDateTimeToDate=xE;ra.validateFileName=yE;ra.ZipFile=Ga;ra.Entry=xr;ra.RandomAccessReader=Ha;function JR(e,t,a){typeof t=="function"&&(a=t,t=null),t==null&&(t={}),t.autoClose==null&&(t.autoClose=!0),t.lazyEntries==null&&(t.lazyEntries=!1),t.decodeStrings==null&&(t.decodeStrings=!0),t.validateEntrySizes==null&&(t.validateEntrySizes=!0),t.strictFileNames==null&&(t.strictFileNames=!1),a==null&&(a=bl),gd.open(e,"r",function(n,i){if(n)return a(n);bE(i,t,function(r,o){r&&gd.close(i,bl),a(r,o)})})}function bE(e,t,a){typeof t=="function"&&(a=t,t=null),t==null&&(t={}),t.autoClose==null&&(t.autoClose=!1),t.lazyEntries==null&&(t.lazyEntries=!1),t.decodeStrings==null&&(t.decodeStrings=!0),t.validateEntrySizes==null&&(t.validateEntrySizes=!0),t.strictFileNames==null&&(t.strictFileNames=!1),a==null&&(a=bl),gd.fstat(e,function(n,i){if(n)return a(n);var r=hE.createFromFd(e,{autoClose:!0});yd(r,i.size,t,a)})}function ZR(e,t,a){typeof t=="function"&&(a=t,t=null),t==null&&(t={}),t.autoClose=!1,t.lazyEntries==null&&(t.lazyEntries=!1),t.decodeStrings==null&&(t.decodeStrings=!0),t.validateEntrySizes==null&&(t.validateEntrySizes=!0),t.strictFileNames==null&&(t.strictFileNames=!1);var n=hE.createFromBuffer(e,{maxChunkSize:65536});yd(n,e.length,t,a)}function yd(e,t,a,n){typeof a=="function"&&(n=a,a=null),a==null&&(a={}),a.autoClose==null&&(a.autoClose=!0),a.lazyEntries==null&&(a.lazyEntries=!1),a.decodeStrings==null&&(a.decodeStrings=!0);var i=!!a.decodeStrings;if(a.validateEntrySizes==null&&(a.validateEntrySizes=!0),a.strictFileNames==null&&(a.strictFileNames=!1),n==null&&(n=bl),typeof t!="number")throw new Error("expected totalSize parameter to be a number");if(t>Number.MAX_SAFE_INTEGER)throw new Error("zip file too large. only file sizes up to 2^52 are supported due to JavaScript's Number type being an IEEE 754 double.");e.ref();var r=22,o=65535,s=Math.min(r+o,t),l=ia(s),u=t-l.length;ri(e,l,0,s,u,function(c){if(c)return n(c);for(var f=s-r;f>=0;f-=1)if(l.readUInt32LE(f)===101010256){var p=l.slice(f),b=p.readUInt16LE(4);if(b!==0)return n(new Error("multi-disk zip files are not supported: found disk number: "+b));var d=p.readUInt16LE(10),m=p.readUInt32LE(16),h=p.readUInt16LE(20),v=p.length-r;if(h!==v)return n(new Error("invalid comment length. expected: "+v+". found: "+h));var x=i?vl(p,22,p.length,!1):p.slice(22);if(!(d===65535||m===4294967295))return n(null,new Ga(e,m,t,d,x,a.autoClose,a.lazyEntries,i,a.validateEntrySizes,a.strictFileNames));var E=ia(20),g=u+f-E.length;ri(e,E,0,E.length,g,function(w){if(w)return n(w);if(E.readUInt32LE(0)!==117853008)return n(new Error("invalid zip64 end of central directory locator signature"));var C=oi(E,8),y=ia(56);ri(e,y,0,y.length,C,function(S){return S?n(S):y.readUInt32LE(0)!==101075792?n(new Error("invalid zip64 end of central directory record signature")):(d=oi(y,32),m=oi(y,48),n(null,new Ga(e,m,t,d,x,a.autoClose,a.lazyEntries,i,a.validateEntrySizes,a.strictFileNames)))})});return}n(new Error("end of central directory record signature not found"))})}gl.inherits(Ga,xl);function Ga(e,t,a,n,i,r,o,s,l,u){var c=this;xl.call(c),c.reader=e,c.reader.on("error",function(f){gE(c,f)}),c.reader.once("close",function(){c.emit("close")}),c.readEntryCursor=t,c.fileSize=a,c.entryCount=n,c.comment=i,c.entriesRead=0,c.autoClose=!!r,c.lazyEntries=!!o,c.decodeStrings=!!s,c.validateEntrySizes=!!l,c.strictFileNames=!!u,c.isOpen=!0,c.emittedError=!1,c.lazyEntries||c._readEntry()}Ga.prototype.close=function(){this.isOpen&&(this.isOpen=!1,this.reader.unref())};function Zt(e,t){e.autoClose&&e.close(),gE(e,t)}function gE(e,t){e.emittedError||(e.emittedError=!0,e.emit("error",t))}Ga.prototype.readEntry=function(){if(!this.lazyEntries)throw new Error("readEntry() called without lazyEntries:true");this._readEntry()};Ga.prototype._readEntry=function(){var e=this;if(e.entryCount===e.entriesRead){setImmediate(function(){e.autoClose&&e.close(),!e.emittedError&&e.emit("end")});return}if(!e.emittedError){var t=ia(46);ri(e.reader,t,0,t.length,e.readEntryCursor,function(a){if(a)return Zt(e,a);if(!e.emittedError){var n=new xr,i=t.readUInt32LE(0);if(i!==33639248)return Zt(e,new Error("invalid central directory file header signature: 0x"+i.toString(16)));if(n.versionMadeBy=t.readUInt16LE(4),n.versionNeededToExtract=t.readUInt16LE(6),n.generalPurposeBitFlag=t.readUInt16LE(8),n.compressionMethod=t.readUInt16LE(10),n.lastModFileTime=t.readUInt16LE(12),n.lastModFileDate=t.readUInt16LE(14),n.crc32=t.readUInt32LE(16),n.compressedSize=t.readUInt32LE(20),n.uncompressedSize=t.readUInt32LE(24),n.fileNameLength=t.readUInt16LE(28),n.extraFieldLength=t.readUInt16LE(30),n.fileCommentLength=t.readUInt16LE(32),n.internalFileAttributes=t.readUInt16LE(36),n.externalFileAttributes=t.readUInt32LE(38),n.relativeOffsetOfLocalHeader=t.readUInt32LE(42),n.generalPurposeBitFlag&64)return Zt(e,new Error("strong encryption is not supported"));e.readEntryCursor+=46,t=ia(n.fileNameLength+n.extraFieldLength+n.fileCommentLength),ri(e.reader,t,0,t.length,e.readEntryCursor,function(r){if(r)return Zt(e,r);if(!e.emittedError){var o=(n.generalPurposeBitFlag&2048)!==0;n.fileName=e.decodeStrings?vl(t,0,n.fileNameLength,o):t.slice(0,n.fileNameLength);var s=n.fileNameLength+n.extraFieldLength,l=t.slice(n.fileNameLength,s);n.extraFields=[];for(var u=0;ul.length)return Zt(e,new Error("extra field length exceeds extra field buffer size"));var d=ia(f);l.copy(d,0,p,b),n.extraFields.push({id:c,data:d}),u=b}if(n.fileComment=e.decodeStrings?vl(t,s,s+n.fileCommentLength,o):t.slice(s,s+n.fileCommentLength),n.comment=n.fileComment,e.readEntryCursor+=t.length,e.entriesRead+=1,n.uncompressedSize===4294967295||n.compressedSize===4294967295||n.relativeOffsetOfLocalHeader===4294967295){for(var m=null,u=0;um.length)return Zt(e,new Error("zip64 extended information extra field does not include uncompressed size"));n.uncompressedSize=oi(m,v),v+=8}if(n.compressedSize===4294967295){if(v+8>m.length)return Zt(e,new Error("zip64 extended information extra field does not include compressed size"));n.compressedSize=oi(m,v),v+=8}if(n.relativeOffsetOfLocalHeader===4294967295){if(v+8>m.length)return Zt(e,new Error("zip64 extended information extra field does not include relative header offset"));n.relativeOffsetOfLocalHeader=oi(m,v),v+=8}}if(e.decodeStrings)for(var u=0;ue.compressedSize)throw new Error("options.start > entry.compressedSize")}if(t.end!=null){if(r=t.end,r<0)throw new Error("options.end < 0");if(r>e.compressedSize)throw new Error("options.end > entry.compressedSize");if(rn.fileSize)return a(new Error("file data overflows file bounds: "+b+" + "+e.compressedSize+" > "+n.fileSize));var m=n.reader.createReadStream({start:b+i,end:b+r}),h=m;if(p){var v=!1,x=WR.createInflateRaw();m.on("error",function(E){setImmediate(function(){v||x.emit("error",E)})}),m.pipe(x),n.validateEntrySizes?(h=new yr(e.uncompressedSize),x.on("error",function(E){setImmediate(function(){v||h.emit("error",E)})}),x.pipe(h)):h=x,h.destroy=function(){v=!0,x!==h&&x.unpipe(h),m.unpipe(x),m.destroy()}}a(null,h)}finally{n.reader.unref()}})};function xr(){}xr.prototype.getLastModDate=function(){return xE(this.lastModFileDate,this.lastModFileTime)};xr.prototype.isEncrypted=function(){return(this.generalPurposeBitFlag&1)!==0};xr.prototype.isCompressed=function(){return this.compressionMethod===8};function xE(e,t){var a=e&31,n=(e>>5&15)-1,i=(e>>9&127)+1980,r=0,o=(t&31)*2,s=t>>5&63,l=t>>11&31;return new Date(i,n,a,l,s,o,r)}function yE(e){return e.indexOf("\\")!==-1?"invalid characters in fileName: "+e:/^[a-zA-Z]:/.test(e)||/^\//.test(e)?"absolute path: "+e:e.split("/").indexOf("..")!==-1?"invalid relative path: "+e:null}function ri(e,t,a,n,i,r){if(n===0)return setImmediate(function(){r(null,ia(0))});e.read(t,a,n,i,function(o,s){if(o)return r(o);if(sthis.expectedByteCount){var n="too many bytes in the stream. expected "+this.expectedByteCount+". got at least "+this.actualByteCount;return a(new Error(n))}a(null,e)};yr.prototype._flush=function(e){if(this.actualByteCount0)return;if(e.refCount<0)throw new Error("invalid unref");e.close(t);function t(a){if(a)return e.emit("error",a);e.emit("close")}};Ha.prototype.createReadStream=function(e){var t=e.start,a=e.end;if(t===a){var n=new xd;return setImmediate(function(){n.end()}),n}var i=this._readStreamForRange(t,a),r=!1,o=new yl(this);i.on("error",function(l){setImmediate(function(){r||o.emit("error",l)})}),o.destroy=function(){i.unpipe(o),o.unref(),i.destroy()};var s=new yr(a-t);return o.on("error",function(l){setImmediate(function(){r||s.emit("error",l)})}),s.destroy=function(){r=!0,o.unpipe(s),o.destroy()},i.pipe(o).pipe(s)};Ha.prototype._readStreamForRange=function(e,t){throw new Error("not implemented")};Ha.prototype.read=function(e,t,a,n,i){var r=this.createReadStream({start:n,end:n+a}),o=new UR,s=0;o._write=function(l,u,c){l.copy(e,t+s,0,l.length),s+=l.length,c()},o.on("finish",i),r.on("error",function(l){i(l)}),r.pipe(o)};Ha.prototype.close=function(e){setImmediate(e)};gl.inherits(yl,xd);function yl(e){xd.call(this),this.context=e,this.context.ref(),this.unreffedYet=!1}yl.prototype._flush=function(e){this.unref(),e()};yl.prototype.unref=function(e){this.unreffedYet||(this.unreffedYet=!0,this.context.unref())};var qR="\0\u263A\u263B\u2665\u2666\u2663\u2660\u2022\u25D8\u25CB\u25D9\u2642\u2640\u266A\u266B\u263C\u25BA\u25C4\u2195\u203C\xB6\xA7\u25AC\u21A8\u2191\u2193\u2192\u2190\u221F\u2194\u25B2\u25BC !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u2302\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xA2\xA3\xA5\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0";function vl(e,t,a,n){if(n)return e.toString("utf8",t,a);for(var i="",r=t;r{"use strict";var EE=D1(),XR=tE(),SE=rE(),$R=wE(),YR=(e,t)=>{let r=e.versionMadeBy>>8;return(t&61440)===40960?"symlink":(t&61440)===16384||r===0&&e.externalFileAttributes===16?"directory":"file"},KR=(e,t)=>{let a={mode:e.externalFileAttributes>>16&65535,mtime:e.getLastModDate(),path:e.fileName};return a.type=YR(e,a.mode),a.mode===0&&a.type==="directory"&&(a.mode=493),a.mode===0&&(a.mode=420),SE(t.openReadStream.bind(t))(e).then(XR.buffer).then(n=>(a.data=n,a.type==="symlink"&&(a.linkname=n.toString()),a)).catch(n=>{throw t.close(),n})},QR=e=>new Promise((t,a)=>{let n=[];e.readEntry(),e.on("entry",i=>{KR(i,e).catch(a).then(r=>{n.push(r),e.readEntry()})}),e.on("error",a),e.on("end",()=>t(n))});CE.exports=()=>e=>Buffer.isBuffer(e)?!EE(e)||EE(e).ext!=="zip"?Promise.resolve([]):SE($R.fromBuffer)(e,{lazyEntries:!0}).then(QR):Promise.reject(new TypeError(`Expected a Buffer, got ${typeof e}`))});var TE=O((tW,_E)=>{"use strict";var IE=(e,t)=>function(){let a=t.promiseModule,n=new Array(arguments.length);for(let i=0;i{t.errorFirst?n.push(function(o,s){if(t.multiArgs){let l=new Array(arguments.length-1);for(let u=1;u{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},t);let a=i=>{let r=o=>typeof o=="string"?i===o:o.test(i);return t.include?t.include.some(r):!t.exclude.some(r)},n;typeof e=="function"?n=function(){return t.excludeMain?e.apply(this,arguments):IE(e,t).apply(this,arguments)}:n=Object.create(Object.getPrototypeOf(e));for(let i in e){let r=e[i];n[i]=typeof r=="function"&&a(i)?IE(r,t):r}return n}});var OE=O((aW,wd)=>{"use strict";var eB=require("fs"),vn=require("path"),kE=TE(),FE={mode:511&~process.umask(),fs:eB},PE=e=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(vn.parse(e).root,""))){let a=new Error(`Path contains invalid characters: ${e}`);throw a.code="EINVAL",a}};wd.exports=(e,t)=>Promise.resolve().then(()=>{PE(e),t=Object.assign({},FE,t);let a=kE(t.fs.mkdir),n=kE(t.fs.stat),i=r=>a(r,t.mode).then(()=>r).catch(o=>{if(o.code==="ENOENT"){if(o.message.includes("null bytes")||vn.dirname(r)===r)throw o;return i(vn.dirname(r)).then(()=>i(r))}return n(r).then(s=>s.isDirectory()?r:Promise.reject()).catch(()=>{throw o})});return i(vn.resolve(e))});wd.exports.sync=(e,t)=>{PE(e),t=Object.assign({},FE,t);let a=n=>{try{t.fs.mkdirSync(n,t.mode)}catch(i){if(i.code==="ENOENT"){if(i.message.includes("null bytes")||vn.dirname(n)===n)throw i;return a(vn.dirname(n)),a(n)}try{if(!t.fs.statSync(n).isDirectory())throw new Error("The path is not a directory")}catch(r){throw i}}return n};return a(vn.resolve(e))}});var jE=O((nW,NE)=>{"use strict";var RE=function(e,t,a){return function(){for(var n=this,i=new Array(arguments.length),r=0;r{"use strict";LE.exports=function(t,a){if(a){if(typeof a!="object")throw new TypeError(String(a)+" is not an object. Expected an object that has boolean `includeZero` property.");if("includeZero"in a){if(typeof a.includeZero!="boolean")throw new TypeError(String(a.includeZero)+" is neither true nor false. `includeZero` option must be a Boolean value.");if(a.includeZero&&t===0)return!0}}return Number.isSafeInteger(t)&&t>=1}});var zE=O((rW,DE)=>{"use strict";var wr=require("path"),Er=require("util"),tB=ME();DE.exports=function(t,a,n){if(typeof t!="string")throw new TypeError(Er.inspect(t)+" is not a string. First argument to strip-dirs must be a path string.");if(wr.posix.isAbsolute(t)||wr.win32.isAbsolute(t))throw new Error(`${t} is an absolute path. strip-dirs requires a relative path.`);if(!tB(a,{includeZero:!0}))throw new Error("The Second argument of strip-dirs must be a natural number or 0, but received "+Er.inspect(a)+".");if(n){if(typeof n!="object")throw new TypeError(Er.inspect(n)+" is not an object. Expected an object with a boolean `disallowOverflow` property.");if(Array.isArray(n))throw new TypeError(Er.inspect(n)+" is an array. Expected an object with a boolean `disallowOverflow` property.");if("disallowOverflow"in n&&typeof n.disallowOverflow!="boolean")throw new TypeError(Er.inspect(n.disallowOverflow)+" is neither true nor false. `disallowOverflow` option must be a Boolean value.")}else n={disallowOverflow:!1};let i=wr.normalize(t).split(wr.sep);if(i.length>1&&i[0]==="."&&i.shift(),a>i.length-1){if(n.disallowOverflow)throw new RangeError("Cannot strip more directories than there are.");a=i.length-1}return wr.join.apply(null,i.slice(a))}});var HE=O((oW,GE)=>{"use strict";var wl=require("path"),aB=wy(),nB=il(),iB=O1(),rB=L1(),oB=AE(),Ed=OE(),sB=jE(),lB=zE(),Pt=sB(aB),cB=(e,t)=>t.plugins.length===0?Promise.resolve([]):Promise.all(t.plugins.map(a=>a(e,t))).then(a=>a.reduce((n,i)=>n.concat(i))),Sd=(e,t)=>Pt.realpath(e).catch(a=>{let n=wl.dirname(e);return Sd(n,t)}).then(a=>{if(a.indexOf(t)!==0)throw new Error("Refusing to create a directory outside the output path.");return Ed(e).then(Pt.realpath)}),uB=(e,t)=>Pt.readlink(e).catch(a=>null).then(a=>{if(a)throw new Error("Refusing to write into a symlink");return t}),pB=(e,t,a)=>cB(e,a).then(n=>(a.strip>0&&(n=n.map(i=>(i.path=lB(i.path,a.strip),i)).filter(i=>i.path!==".")),typeof a.filter=="function"&&(n=n.filter(a.filter)),typeof a.map=="function"&&(n=n.map(a.map)),t?Promise.all(n.map(i=>{let r=wl.join(t,i.path),o=i.mode&~process.umask(),s=new Date;return i.type==="directory"?Ed(t).then(l=>Pt.realpath(l)).then(l=>Sd(r,l)).then(()=>Pt.utimes(r,s,i.mtime)).then(()=>i):Ed(t).then(l=>Pt.realpath(l)).then(l=>Sd(wl.dirname(r),l).then(()=>l)).then(l=>i.type==="file"?uB(r,l):l).then(l=>Pt.realpath(wl.dirname(r)).then(u=>{if(u.indexOf(l)!==0)throw new Error("Refusing to write outside output directory: "+u)})).then(()=>i.type==="link"||i.type==="symlink"&&process.platform==="win32"?Pt.link(i.linkname,r):i.type==="symlink"?Pt.symlink(i.linkname,r):Pt.writeFile(r,i.data,{mode:o})).then(()=>i.type==="file"&&Pt.utimes(r,s,i.mtime)).then(()=>i)})):n));GE.exports=(e,t,a)=>typeof e!="string"&&!Buffer.isBuffer(e)?Promise.reject(new TypeError("Input file required")):(typeof t=="object"&&(a=t,t=null),a=Object.assign({plugins:[nB(),iB(),rB(),oB()]},a),(typeof e=="string"?Pt.readFile(e):Promise.resolve(e)).then(i=>pB(i,t,a)))});var VE=O((sW,WE)=>{"use strict";var dB=/[|\\{}()[\]^$+*?.]/g;WE.exports=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(dB,"\\$&")}});var JE=O((lW,UE)=>{"use strict";var fB=VE();UE.exports=function(e,t){if(typeof e!="string"||typeof t!="string")throw new TypeError("Expected a string");return e.replace(new RegExp("(?:"+fB(t)+"){2,}","g"),t)}});var ZE=O((cW,Cd)=>{"use strict";Cd.exports=()=>/[<>:"\/\\|?*\x00-\x1F]/g;Cd.exports.windowsNames=()=>/^(con|prn|aux|nul|com[0-9]|lpt[0-9])$/i});var XE=O((uW,qE)=>{"use strict";var mB=/[|\\{}()[\]^$+*?.]/g;qE.exports=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(mB,"\\$&")}});var YE=O((pW,$E)=>{"use strict";var hB=XE();$E.exports=function(e,t){if(typeof e!="string"||typeof t!="string")throw new TypeError;return t=hB(t),e.replace(new RegExp("^"+t+"|"+t+"$","g"),"")}});var QE=O((dW,Id)=>{"use strict";var El=require("path"),vB=JE(),Ad=ZE(),bB=YE(),gB=100,KE=/[\u0000-\u001f\u0080-\u009f]/g,xB=/^\.+/,Sl=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let a=t.replacement===void 0?"!":t.replacement;if(Ad().test(a)&&KE.test(a))throw new Error("Replacement string cannot contain reserved filename characters");return e=e.replace(Ad(),a),e=e.replace(KE,a),e=e.replace(xB,a),a.length>0&&(e=vB(e,a),e=e.length>1?bB(e,a):e),e=Ad.windowsNames().test(e)?e+a:e,e=e.slice(0,gB),e};Sl.path=(e,t)=>(e=El.resolve(e),El.join(El.dirname(e),Sl(El.basename(e),t)));Id.exports=Sl;Id.exports.default=Sl});var aS=O((fW,tS)=>{var yB=ed(),wB=td(),_d=require("fs"),Sr=function(){},EB=/^v?\.0/.test(process.version),Cl=function(e){return typeof e=="function"},SB=function(e){return!EB||!_d?!1:(e instanceof(_d.ReadStream||Sr)||e instanceof(_d.WriteStream||Sr))&&Cl(e.close)},CB=function(e){return e.setHeader&&Cl(e.abort)},AB=function(e,t,a,n){n=yB(n);var i=!1;e.on("close",function(){i=!0}),wB(e,{readable:t,writable:a},function(o){if(o)return n(o);i=!0,n()});var r=!1;return function(o){if(!i&&!r){if(r=!0,SB(e))return e.close(Sr);if(CB(e))return e.abort();if(Cl(e.destroy))return e.destroy();n(o||new Error("stream was destroyed"))}}},eS=function(e){e()},IB=function(e,t){return e.pipe(t)},_B=function(){var e=Array.prototype.slice.call(arguments),t=Cl(e[e.length-1]||Sr)&&e.pop()||Sr;if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Error("pump requires two streams per minimum");var a,n=e.map(function(i,r){var o=r0;return AB(i,o,s,function(l){a||(a=l),l&&n.forEach(eS),!o&&(n.forEach(eS),t(a))})});return e.reduce(IB)};tS.exports=_B});var iS=O((mW,nS)=>{"use strict";var{PassThrough:TB}=require("stream");nS.exports=e=>{e=Object.assign({},e);let{array:t}=e,{encoding:a}=e,n=a==="buffer",i=!1;t?i=!(a||n):a=a||"utf8",n&&(a=null);let r=0,o=[],s=new TB({objectMode:i});return a&&s.setEncoding(a),s.on("data",l=>{o.push(l),i?r=o.length:r+=l.length}),s.getBufferedValue=()=>t?o:n?Buffer.concat(o,r):o.join(""),s.getBufferedLength=()=>r,s}});var rS=O((hW,Cr)=>{"use strict";var kB=aS(),FB=iS(),Al=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};function Td(e,t){if(!e)return Promise.reject(new Error("Expected a stream"));t=Object.assign({maxBuffer:1/0},t);let{maxBuffer:a}=t,n;return new Promise((i,r)=>{let o=s=>{s&&(s.bufferedData=n.getBufferedValue()),r(s)};n=kB(e,FB(t),s=>{if(s){o(s);return}i()}),n.on("data",()=>{n.getBufferedLength()>a&&o(new Al)})}).then(()=>n.getBufferedValue())}Cr.exports=Td;Cr.exports.buffer=(e,t)=>Td(e,Object.assign({},t,{encoding:"buffer"}));Cr.exports.array=(e,t)=>Td(e,Object.assign({},t,{array:!0}));Cr.exports.MaxBufferError=Al});var sS=O((vW,oS)=>{"use strict";oS.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}});var dS=O((bW,pS)=>{"use strict";var uS="%[a-f0-9]{2}",lS=new RegExp("("+uS+")|([^%]+?)","gi"),cS=new RegExp("("+uS+")+","gi");function kd(e,t){try{return[decodeURIComponent(e.join(""))]}catch(i){}if(e.length===1)return e;t=t||1;var a=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],kd(a),kd(n))}function PB(e){try{return decodeURIComponent(e)}catch(n){for(var t=e.match(lS)||[],a=1;a{"use strict";var RB=sS(),mS=cl(),fS=dS();function BB(e){switch(e.arrayFormat){case"index":return function(t,a,n){return a===null?[Ot(t,e),"[",n,"]"].join(""):[Ot(t,e),"[",Ot(n,e),"]=",Ot(a,e)].join("")};case"bracket":return function(t,a){return a===null?Ot(t,e):[Ot(t,e),"[]=",Ot(a,e)].join("")};default:return function(t,a){return a===null?Ot(t,e):[Ot(t,e),"=",Ot(a,e)].join("")}}}function NB(e){var t;switch(e.arrayFormat){case"index":return function(a,n,i){if(t=/\[(\d*)\]$/.exec(a),a=a.replace(/\[\d*\]$/,""),!t){i[a]=n;return}i[a]===void 0&&(i[a]={}),i[a][t[1]]=n};case"bracket":return function(a,n,i){if(t=/(\[\])$/.exec(a),a=a.replace(/\[\]$/,""),t){if(i[a]===void 0){i[a]=[n];return}}else{i[a]=n;return}i[a]=[].concat(i[a],n)};default:return function(a,n,i){if(i[a]===void 0){i[a]=n;return}i[a]=[].concat(i[a],n)}}}function Ot(e,t){return t.encode?t.strict?RB(e):encodeURIComponent(e):e}function hS(e){return Array.isArray(e)?e.sort():typeof e=="object"?hS(Object.keys(e)).sort(function(t,a){return Number(t)-Number(a)}).map(function(t){return e[t]}):e}function vS(e){var t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function bS(e,t){t=mS({arrayFormat:"none"},t);var a=NB(t),n=Object.create(null);return typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e)?n:(e.split("&").forEach(function(i){var r=i.replace(/\+/g," ").split("="),o=r.shift(),s=r.length>0?r.join("="):void 0;s=s===void 0?null:fS(s),a(fS(o),s,n)}),Object.keys(n).sort().reduce(function(i,r){var o=n[r];return o&&typeof o=="object"&&!Array.isArray(o)?i[r]=hS(o):i[r]=o,i},Object.create(null)))}Ar.extract=vS;Ar.parse=bS;Ar.stringify=function(e,t){var a={encode:!0,strict:!0,arrayFormat:"none"};t=mS(a,t),t.sort===!1&&(t.sort=function(){});var n=BB(t);return e?Object.keys(e).sort(t.sort).map(function(i){var r=e[i];if(r===void 0)return"";if(r===null)return Ot(i,t);if(Array.isArray(r)){var o=[];return r.slice().forEach(function(s){s!==void 0&&o.push(n(i,s,o.length))}),o.join("&")}return Ot(i,t)+"="+Ot(r,t)}).filter(function(i){return i.length>0}).join("&"):""};Ar.parseUrl=function(e,t){return{url:e.split("?")[0]||"",query:bS(vS(e),t)}}});var Fd=O((xW,xS)=>{"use strict";xS.exports=(e,t)=>{if(typeof e!="string")throw new TypeError(`Expected \`url\` to be of type \`string\`, got \`${typeof e}\``);return e=e.trim(),t=Object.assign({https:!1},t),/^\.*\/|^(?!localhost)\w+:/.test(e)?e:e.replace(/^(?!(?:\w+:)?\/\/)/,t.https?"https://":"http://")}});var Pd=O((yW,yS)=>{"use strict";var jB=Object.prototype.toString;yS.exports=function(e){var t;return jB.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))}});var ES=O((wW,wS)=>{"use strict";var Od=Pd();wS.exports=(e,t)=>{if(!Od(e))throw new TypeError("Expected a plain object");if(t=t||{},typeof t=="function")throw new TypeError("Specify the compare function as an option instead");let a=t.deep,n=[],i=[],r=o=>{let s=n.indexOf(o);if(s!==-1)return i[s];let l={},u=Object.keys(o).sort(t.compare);n.push(o),i.push(l);for(let c=0;c{"use strict";var Rd=require("url"),LB=require("punycode"),SS=gS(),MB=Fd(),DB=ES(),zB={"http:":80,"https:":443,"ftp:":21},GB={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function CS(e,t){return t.some(a=>a instanceof RegExp?a.test(e):a===e)}AS.exports=(e,t)=>{if(t=Object.assign({normalizeProtocol:!0,normalizeHttps:!1,stripFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0},t),typeof e!="string")throw new TypeError("Expected a string");let a=e.startsWith("//");e=MB(e.trim()).replace(/^\/\//,"http://");let n=Rd.parse(e);if(t.normalizeHttps&&n.protocol==="https:"&&(n.protocol="http:"),!n.hostname&&!n.pathname)throw new Error("Invalid URL");delete n.host,delete n.query,t.stripFragment&&delete n.hash;let i=zB[n.protocol];if(Number(n.port)===i&&delete n.port,n.pathname&&(n.pathname=n.pathname.replace(/\/{2,}/g,"/")),n.pathname&&(n.pathname=decodeURI(n.pathname)),t.removeDirectoryIndex===!0&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let o=n.pathname.split("/"),s=o[o.length-1];CS(s,t.removeDirectoryIndex)&&(o=o.slice(0,o.length-1),n.pathname=o.slice(1).join("/")+"/")}if(GB[n.protocol]){let o=n.protocol+"//"+n.hostname,s=Rd.resolve(o,n.pathname);n.pathname=s.replace(o,"")}n.hostname&&(n.hostname=LB.toUnicode(n.hostname).toLowerCase(),n.hostname=n.hostname.replace(/\.$/,""),t.stripWWW&&(n.hostname=n.hostname.replace(/^www\./,""))),n.search==="?"&&delete n.search;let r=SS.parse(n.search);if(Array.isArray(t.removeQueryParameters))for(let o in r)CS(o,t.removeQueryParameters)&&delete r[o];return t.sortQueryParameters&&(n.search=SS.stringify(DB(r))),n.search!==null&&(n.search=decodeURIComponent(n.search)),e=Rd.format(n),(t.removeTrailingSlash||n.pathname==="/")&&(e=e.replace(/\/$/,"")),a&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),e}});var TS=O((SW,_S)=>{"use strict";var HB=require("stream").PassThrough;_S.exports=e=>{e=Object.assign({},e);let t=e.array,a=e.encoding,n=a==="buffer",i=!1;t?i=!(a||n):a=a||"utf8",n&&(a=null);let r=0,o=[],s=new HB({objectMode:i});return a&&s.setEncoding(a),s.on("data",l=>{o.push(l),i?r=o.length:r+=l.length}),s.getBufferedValue=()=>t?o:n?Buffer.concat(o,r):o.join(""),s.getBufferedLength=()=>r,s}});var kS=O((CW,Il)=>{"use strict";var WB=TS();function Bd(e,t){if(!e)return Promise.reject(new Error("Expected a stream"));t=Object.assign({maxBuffer:1/0},t);let a=t.maxBuffer,n,i,r=new Promise((o,s)=>{let l=u=>{u&&(u.bufferedData=n.getBufferedValue()),s(u)};n=WB(t),e.once("error",l),e.pipe(n),n.on("data",()=>{n.getBufferedLength()>a&&s(new Error("maxBuffer exceeded"))}),n.once("error",l),n.on("end",o),i=()=>{e.unpipe&&e.unpipe(n)}});return r.then(i,i),r.then(()=>n.getBufferedValue())}Il.exports=Bd;Il.exports.buffer=(e,t)=>Bd(e,Object.assign({},t,{encoding:"buffer"}));Il.exports.array=(e,t)=>Bd(e,Object.assign({},t,{array:!0}))});var PS=O((AW,FS)=>{"use strict";function VB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var UB=[200,203,204,206,300,301,404,405,410,414,501],JB=[200,203,204,300,301,302,303,307,308,404,405,410,414,501],ZB={connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},qB={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function Nd(e){var t={};if(!e)return t;for(var a=e.trim().split(/\s*,\s*/),r=a,n=Array.isArray(r),i=0,r=n?r:r[Symbol.iterator]();;){var o;if(n){if(i>=r.length)break;o=r[i++]}else{if(i=r.next(),i.done)break;o=i.value}var s=o,l=s.split(/\s*=\s*/,2),u=l[0],c=l[1];t[u]=c===void 0?!0:c.replace(/^"|"$/g,"")}return t}function XB(e){var t=[];for(var a in e){var n=e[a];t.push(n===!0?a:a+"="+n)}if(t.length)return t.join(", ")}FS.exports=function(){function e(t,a){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.shared,r=n.cacheHeuristic,o=n.immutableMinTimeToLive,s=n.ignoreCargoCult,l=n._fromObject;if(VB(this,e),l){this._fromObject(l);return}if(!a||!a.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(t),this._responseTime=this.now(),this._isShared=i!==!1,this._cacheHeuristic=r!==void 0?r:.1,this._immutableMinTtl=o!==void 0?o:24*3600*1e3,this._status="status"in a?a.status:200,this._resHeaders=a.headers,this._rescc=Nd(a.headers["cache-control"]),this._method="method"in t?t.method:"GET",this._url=t.url,this._host=t.headers.host,this._noAuthorization=!t.headers.authorization,this._reqHeaders=a.headers.vary?t.headers:null,this._reqcc=Nd(t.headers["cache-control"]),s&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":XB(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),!a.headers["cache-control"]&&/no-cache/.test(a.headers.pragma)&&(this._rescc["no-cache"]=!0)}return e.prototype.now=function(){return Date.now()},e.prototype.storable=function(){return!!(!this._reqcc["no-store"]&&(this._method==="GET"||this._method==="HEAD"||this._method==="POST"&&this._hasExplicitExpiration())&&JB.indexOf(this._status)!==-1&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc.public||this._rescc["max-age"]||this._rescc["s-maxage"]||UB.indexOf(this._status)!==-1))},e.prototype._hasExplicitExpiration=function(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires},e.prototype._assertRequestHasHeaders=function(a){if(!a||!a.headers)throw Error("Request headers missing")},e.prototype.satisfiesWithoutRevalidation=function(a){this._assertRequestHasHeaders(a);var n=Nd(a.headers["cache-control"]);if(n["no-cache"]||/no-cache/.test(a.headers.pragma)||n["max-age"]&&this.age()>n["max-age"]||n["min-fresh"]&&this.timeToLive()<1e3*n["min-fresh"])return!1;if(this.stale()){var i=n["max-stale"]&&!this._rescc["must-revalidate"]&&(n["max-stale"]===!0||n["max-stale"]>this.age()-this.maxAge());if(!i)return!1}return this._requestMatches(a,!1)},e.prototype._requestMatches=function(a,n){return(!this._url||this._url===a.url)&&this._host===a.headers.host&&(!a.method||this._method===a.method||n&&a.method==="HEAD")&&this._varyMatches(a)},e.prototype._allowsStoringAuthenticated=function(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]},e.prototype._varyMatches=function(a){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;for(var n=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/),o=n,i=Array.isArray(o),r=0,o=i?o:o[Symbol.iterator]();;){var s;if(i){if(r>=o.length)break;s=o[r++]}else{if(r=o.next(),r.done)break;s=r.value}var l=s;if(a.headers[l]!==this._reqHeaders[l])return!1}return!0},e.prototype._copyWithoutHopByHopHeaders=function(a){var n={};for(var i in a)ZB[i]||(n[i]=a[i]);if(a.connection)for(var r=a.connection.trim().split(/\s*,\s*/),l=r,o=Array.isArray(l),s=0,l=o?l:l[Symbol.iterator]();;){var u;if(o){if(s>=l.length)break;u=l[s++]}else{if(s=l.next(),s.done)break;u=s.value}var c=u;delete n[c]}if(n.warning){var f=n.warning.split(/,/).filter(function(p){return!/^\s*1[0-9][0-9]/.test(p)});f.length?n.warning=f.join(",").trim():delete n.warning}return n},e.prototype.responseHeaders=function(){var a=this._copyWithoutHopByHopHeaders(this._resHeaders),n=this.age();return n>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(a.warning=(a.warning?`${a.warning}, `:"")+'113 - "rfc7234 5.5.4"'),a.age=`${Math.round(n)}`,a},e.prototype.date=function(){var a=Date.parse(this._resHeaders.date),n=8*3600*1e3;return Number.isNaN(a)||athis._responseTime+n?this._responseTime:a},e.prototype.age=function(){var a=Math.max(0,(this._responseTime-this.date())/1e3);if(this._resHeaders.age){var n=this._ageValue();n>a&&(a=n)}var i=(this.now()-this._responseTime)/1e3;return a+i},e.prototype._ageValue=function(){var a=parseInt(this._resHeaders.age);return isFinite(a)?a:0},e.prototype.maxAge=function(){if(!this.storable()||this._rescc["no-cache"]||this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable||this._resHeaders.vary==="*")return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return parseInt(this._rescc["s-maxage"],10)}if(this._rescc["max-age"])return parseInt(this._rescc["max-age"],10);var a=this._rescc.immutable?this._immutableMinTtl:0,n=this.date();if(this._resHeaders.expires){var i=Date.parse(this._resHeaders.expires);return Number.isNaN(i)||ir)return Math.max(a,(n-r)/1e3*this._cacheHeuristic)}return a},e.prototype.timeToLive=function(){return Math.max(0,this.maxAge()-this.age())*1e3},e.prototype.stale=function(){return this.maxAge()<=this.age()},e.fromObject=function(a){return new this(void 0,void 0,{_fromObject:a})},e.prototype._fromObject=function(a){if(this._responseTime)throw Error("Reinitialized");if(!a||a.v!==1)throw Error("Invalid serialization");this._responseTime=a.t,this._isShared=a.sh,this._cacheHeuristic=a.ch,this._immutableMinTtl=a.imm!==void 0?a.imm:24*3600*1e3,this._status=a.st,this._resHeaders=a.resh,this._rescc=a.rescc,this._method=a.m,this._url=a.u,this._host=a.h,this._noAuthorization=a.a,this._reqHeaders=a.reqh,this._reqcc=a.reqcc},e.prototype.toObject=function(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}},e.prototype.revalidationHeaders=function(a){this._assertRequestHasHeaders(a);var n=this._copyWithoutHopByHopHeaders(a.headers);if(delete n["if-range"],!this._requestMatches(a,!0)||!this.storable())return delete n["if-none-match"],delete n["if-modified-since"],n;this._resHeaders.etag&&(n["if-none-match"]=n["if-none-match"]?`${n["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag);var i=n["accept-ranges"]||n["if-match"]||n["if-unmodified-since"]||this._method&&this._method!="GET";if(i){if(delete n["if-modified-since"],n["if-none-match"]){var r=n["if-none-match"].split(/,/).filter(function(o){return!/^\s*W\//.test(o)});r.length?n["if-none-match"]=r.join(",").trim():delete n["if-none-match"]}}else this._resHeaders["last-modified"]&&!n["if-modified-since"]&&(n["if-modified-since"]=this._resHeaders["last-modified"]);return n},e.prototype.revalidatedPolicy=function(a,n){if(this._assertRequestHasHeaders(a),!n||!n.headers)throw Error("Response headers missing");var i=!1;if(n.status!==void 0&&n.status!=304?i=!1:n.headers.etag&&!/^\s*W\//.test(n.headers.etag)?i=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===n.headers.etag:this._resHeaders.etag&&n.headers.etag?i=this._resHeaders.etag.replace(/^\s*W\//,"")===n.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?i=this._resHeaders["last-modified"]===n.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!n.headers.etag&&!n.headers["last-modified"]&&(i=!0),!i)return{policy:new this.constructor(a,n),modified:!0};var r={};for(var o in this._resHeaders)r[o]=o in n.headers&&!qB[o]?n.headers[o]:this._resHeaders[o];var s=Object.assign({},n,{status:this._status,method:this._method,headers:r});return{policy:new this.constructor(a,s),modified:!1}},e}()});var jd=O((IW,OS)=>{"use strict";OS.exports=function(e){for(var t={},a=Object.keys(Object(e)),n=0;n{"use strict";var $B=require("stream").Readable,YB=jd(),Ld=class extends $B{constructor(t,a,n,i){if(typeof t!="number")throw new TypeError("Argument `statusCode` should be a number");if(typeof a!="object")throw new TypeError("Argument `headers` should be an object");if(!(n instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof i!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=t,this.headers=YB(a),this.body=n,this.url=i}_read(){this.push(this.body),this.push(null)}};RS.exports=Ld});var jS=O((TW,NS)=>{"use strict";NS.exports=function(e){for(var t={},a=Object.keys(Object(e)),n=0;n{"use strict";var KB=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];LS.exports=(e,t)=>{let a=new Set(Object.keys(e).concat(KB));for(let n of a)n in t||(t[n]=typeof e[n]=="function"?e[n].bind(e):e[n])}});var DS=O((FW,MS)=>{"use strict";var QB=require("stream").PassThrough,eN=Md(),tN=e=>{if(!(e&&e.pipe))throw new TypeError("Parameter `response` must be a response stream.");let t=new QB;return eN(e,t),e.pipe(t)};MS.exports=tN});var zS=O(Dd=>{Dd.stringify=function e(t){if(typeof t=="undefined")return t;if(t&&Buffer.isBuffer(t))return JSON.stringify(":base64:"+t.toString("base64"));if(t&&t.toJSON&&(t=t.toJSON()),t&&typeof t=="object"){var a="",n=Array.isArray(t);a=n?"[":"{";var i=!0;for(var r in t){var o=typeof t[r]=="function"||!n&&typeof t[r]=="undefined";Object.hasOwnProperty.call(t,r)&&!o&&(i||(a+=","),i=!1,n?t[r]==null?a+="null":a+=e(t[r]):t[r]!==void 0&&(a+=e(r)+":"+e(t[r])))}return a+=n?"]":"}",a}else return typeof t=="string"?JSON.stringify(/^:/.test(t)?":"+t:t):typeof t=="undefined"?"null":JSON.stringify(t)};Dd.parse=function(e){return JSON.parse(e,function(t,a){return typeof a=="string"?/^:base64:/.test(a)?new Buffer(a.substring(8),"base64"):/^:/.test(a)?a.substring(1):a:a})}});var WS=O((OW,HS)=>{"use strict";var aN=require("events"),GS=zS(),nN=e=>{let t={redis:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql"};if(e.adapter||e.uri){let a=e.adapter||/^[^:]*/.exec(e.uri)[0];return new(require(t[a]))(e)}return new Map},zd=class extends aN{constructor(t,a){if(super(),this.opts=Object.assign({namespace:"keyv"},typeof t=="string"?{uri:t}:t,a),!this.opts.store){let n=Object.assign({},this.opts);this.opts.store=nN(n)}typeof this.opts.store.on=="function"&&this.opts.store.on("error",n=>this.emit("error",n)),this.opts.store.namespace=this.opts.namespace}_getKeyPrefix(t){return`${this.opts.namespace}:${t}`}get(t){t=this._getKeyPrefix(t);let a=this.opts.store;return Promise.resolve().then(()=>a.get(t)).then(n=>{if(n=typeof n=="string"?GS.parse(n):n,n!==void 0){if(typeof n.expires=="number"&&Date.now()>n.expires){this.delete(t);return}return n.value}})}set(t,a,n){t=this._getKeyPrefix(t),typeof n=="undefined"&&(n=this.opts.ttl),n===0&&(n=void 0);let i=this.opts.store;return Promise.resolve().then(()=>{let r=typeof n=="number"?Date.now()+n:null;return a={value:a,expires:r},i.set(t,GS.stringify(a),n)}).then(()=>!0)}delete(t){t=this._getKeyPrefix(t);let a=this.opts.store;return Promise.resolve().then(()=>a.delete(t))}clear(){let t=this.opts.store;return Promise.resolve().then(()=>t.clear())}};HS.exports=zd});var ZS=O((RW,JS)=>{"use strict";var iN=require("events"),VS=require("url"),rN=IS(),oN=kS(),Gd=PS(),US=BS(),sN=jS(),lN=DS(),cN=WS(),Ir=class e{constructor(t,a){if(typeof t!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new cN({uri:typeof a=="string"&&a,store:typeof a!="string"&&a,namespace:"cacheable-request"}),this.createCacheableRequest(t)}createCacheableRequest(t){return(a,n)=>{typeof a=="string"&&(a=VS.parse(a)),a=Object.assign({headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1},a),a.headers=sN(a.headers);let i=new iN,r=rN(VS.format(a)),o=`${a.method}:${r}`,s=!1,l=!1,u=f=>{l=!0;let p=b=>{if(s){let m=Gd.fromObject(s.cachePolicy).revalidatedPolicy(f,b);if(!m.modified){let h=m.policy.responseHeaders();b=new US(b.statusCode,h,s.body,s.url),b.cachePolicy=m.policy,b.fromCache=!0}}b.fromCache||(b.cachePolicy=new Gd(f,b),b.fromCache=!1);let d;f.cache&&b.cachePolicy.storable()?(d=lN(b),oN.buffer(b).then(m=>{let h={cachePolicy:b.cachePolicy.toObject(),url:b.url,statusCode:b.fromCache?s.statusCode:b.statusCode,body:m},v=f.strictTtl?b.cachePolicy.timeToLive():void 0;return this.cache.set(o,h,v)}).catch(m=>i.emit("error",new e.CacheError(m)))):f.cache&&s&&this.cache.delete(o).catch(m=>i.emit("error",new e.CacheError(m))),i.emit("response",d||b),typeof n=="function"&&n(d||b)};try{let b=t(f,p);i.emit("request",b)}catch(b){i.emit("error",new e.RequestError(b))}},c=f=>Promise.resolve().then(()=>f.cache?this.cache.get(o):void 0).then(p=>{if(typeof p=="undefined")return u(f);let b=Gd.fromObject(p.cachePolicy);if(b.satisfiesWithoutRevalidation(f)){let d=b.responseHeaders(),m=new US(p.statusCode,d,p.body,p.url);m.cachePolicy=b,m.fromCache=!0,i.emit("response",m),typeof n=="function"&&n(m)}else s=p,f.headers=b.revalidationHeaders(f),u(f)});return this.cache.on("error",f=>i.emit("error",new e.CacheError(f))),c(a).catch(f=>{a.automaticFailover&&!l&&u(a),i.emit("error",new e.CacheError(f))}),i}}};Ir.RequestError=class extends Error{constructor(e){super(e.message),this.name="RequestError",Object.assign(this,e)}};Ir.CacheError=class extends Error{constructor(e){super(e.message),this.name="CacheError",Object.assign(this,e)}};JS.exports=Ir});var qS=O((jW,Wd)=>{"use strict";var Hd=require("stream");function si(e,t,a){typeof a=="undefined"&&(a=t,t=e,e=null),Hd.Duplex.call(this,e),typeof a.read!="function"&&(a=new Hd.Readable(e).wrap(a)),this._writable=t,this._readable=a,this._waiting=!1;var n=this;t.once("finish",function(){n.end()}),this.once("finish",function(){t.end()}),a.on("readable",function(){n._waiting&&(n._waiting=!1,n._read())}),a.once("end",function(){n.push(null)}),(!e||typeof e.bubbleErrors=="undefined"||e.bubbleErrors)&&(t.on("error",function(i){n.emit("error",i)}),a.on("error",function(i){n.emit("error",i)}))}si.prototype=Object.create(Hd.Duplex.prototype,{constructor:{value:si}});si.prototype._write=function(t,a,n){this._writable.write(t,a,n)};si.prototype._read=function(){for(var t,a=0;(t=this._readable.read())!==null;)this.push(t),a++;a===0&&(this._waiting=!0)};Wd.exports=function(t,a,n){return new si(t,a,n)};Wd.exports.DuplexWrapper=si});var eC=O((LW,QS)=>{var XS=ti().Readable,uN=fn();QS.exports=_l;_l.ctor=$S;_l.obj=fN;var pN=$S();function dN(e){return e=e.slice(),function(t,a){var n=null,i=e.length?e.shift():null;i instanceof Error&&(n=i,i=null),a(n,i)}}function _l(e,t){(typeof e!="object"||Array.isArray(e))&&(t=e,e={});var a=new pN(e);return a._from=Array.isArray(t)?dN(t):t||YS,a}function $S(e,t){typeof e=="function"&&(t=e,e={}),e=KS(e),uN(a,XS);function a(n){if(!(this instanceof a))return new a(n);this._reading=!1,this._callback=o,this.destroyed=!1,XS.call(this,n||e);var i=this,r=this._readableState.highWaterMark;function o(s,l){if(!i.destroyed){if(s)return i.destroy(s);if(l===null)return i.push(null);i._reading=!1,i.push(l)&&i._read(r)}}}return a.prototype._from=t||YS,a.prototype._read=function(n){this._reading||this.destroyed||(this._reading=!0,this._from(n,this._callback))},a.prototype.destroy=function(n){if(!this.destroyed){this.destroyed=!0;var i=this;process.nextTick(function(){n&&i.emit("error",n),i.emit("close")})}},a}function fN(e,t){return(typeof e=="function"||Array.isArray(e))&&(t=e,e={}),e=KS(e),e.objectMode=!0,e.highWaterMark=16,_l(e,t)}function YS(){}function KS(e){return e=e||{},e}});var aC=O((MW,tC)=>{"use strict";tC.exports=e=>e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"});var rC=O((DW,Vd)=>{"use strict";var nC=eC(),iC=aC();Vd.exports=e=>{Array.isArray(e)&&(e=e.slice());let t,a;n(e);function n(i){e=i,t=iC(e)?e:null,a=!t&&e[Symbol.iterator]&&typeof e!="string"&&!Buffer.isBuffer(e)?e[Symbol.iterator]():null}return nC(function i(r,o){if(t){t.then(n).then(()=>i.call(this,r,o),o);return}if(a){let l=a.next();setImmediate(o,null,l.done?null:l.value);return}if(e.length===0){setImmediate(o,null,null);return}let s=e.slice(0,r);e=e.slice(r),setImmediate(o,null,s)})};Vd.exports.obj=e=>{Array.isArray(e)&&(e=e.slice());let t,a;n(e);function n(i){e=i,t=iC(e)?e:null,a=!t&&e[Symbol.iterator]?e[Symbol.iterator]():null}return nC.obj(function i(r,o){if(t){t.then(n).then(()=>i.call(this,r,o),o);return}if(a){let s=a.next();setImmediate(o,null,s.done?null:s.value);return}this.push(e),setImmediate(o,null,null)})}});var Zd=O((Ud,Jd)=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});var oC=require("util"),mN=Object.prototype.toString,_r=e=>t=>typeof t===e,Tl=e=>{let t=mN.call(e).slice(8,-1);return t||null},Ke=e=>t=>Tl(t)===e;function oa(e){if(e===null)return"null";if(e===!0||e===!1)return"boolean";let t=typeof e;if(t==="undefined")return"undefined";if(t==="string")return"string";if(t==="number")return"number";if(t==="symbol")return"symbol";if(oa.function_(e))return"Function";if(Array.isArray(e))return"Array";if(Buffer.isBuffer(e))return"Buffer";let a=Tl(e);if(a)return a;if(e instanceof String||e instanceof Boolean||e instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}(function(e){let t=v=>typeof v=="object";e.undefined=_r("undefined"),e.string=_r("string"),e.number=_r("number"),e.function_=_r("function"),e.null_=v=>v===null,e.class_=v=>e.function_(v)&&v.toString().startsWith("class "),e.boolean=v=>v===!0||v===!1,e.symbol=_r("symbol"),e.array=Array.isArray,e.buffer=Buffer.isBuffer,e.nullOrUndefined=v=>e.null_(v)||e.undefined(v),e.object=v=>!e.nullOrUndefined(v)&&(e.function_(v)||t(v)),e.iterable=v=>!e.nullOrUndefined(v)&&e.function_(v[Symbol.iterator]),e.generator=v=>e.iterable(v)&&e.function_(v.next)&&e.function_(v.throw),e.nativePromise=Ke("Promise");let a=v=>!e.null_(v)&&t(v)&&e.function_(v.then)&&e.function_(v.catch);e.promise=v=>e.nativePromise(v)||a(v);let n=v=>x=>e.function_(x)&&e.function_(x.constructor)&&x.constructor.name===v;e.generatorFunction=n("GeneratorFunction"),e.asyncFunction=n("AsyncFunction"),e.boundFunction=v=>e.function_(v)&&!v.hasOwnProperty("prototype"),e.regExp=Ke("RegExp"),e.date=Ke("Date"),e.error=Ke("Error"),e.map=Ke("Map"),e.set=Ke("Set"),e.weakMap=Ke("WeakMap"),e.weakSet=Ke("WeakSet"),e.int8Array=Ke("Int8Array"),e.uint8Array=Ke("Uint8Array"),e.uint8ClampedArray=Ke("Uint8ClampedArray"),e.int16Array=Ke("Int16Array"),e.uint16Array=Ke("Uint16Array"),e.int32Array=Ke("Int32Array"),e.uint32Array=Ke("Uint32Array"),e.float32Array=Ke("Float32Array"),e.float64Array=Ke("Float64Array"),e.arrayBuffer=Ke("ArrayBuffer"),e.sharedArrayBuffer=Ke("SharedArrayBuffer"),e.dataView=Ke("DataView"),e.directInstanceOf=(v,x)=>e.object(v)&&e.object(x)&&Object.getPrototypeOf(v)===x.prototype,e.truthy=v=>!!v,e.falsy=v=>!v,e.nan=v=>Number.isNaN(v);let i=new Set(["undefined","string","number","boolean","symbol"]);e.primitive=v=>e.null_(v)||i.has(typeof v),e.integer=v=>Number.isInteger(v),e.safeInteger=v=>Number.isSafeInteger(v),e.plainObject=v=>{let x;return Tl(v)==="Object"&&(x=Object.getPrototypeOf(v),x===null||x===Object.getPrototypeOf({}))};let r=new Set(["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"]);e.typedArray=v=>{let x=Tl(v);return x===null?!1:r.has(x)};let o=v=>e.safeInteger(v)&&v>-1;e.arrayLike=v=>!e.nullOrUndefined(v)&&!e.function_(v)&&o(v.length),e.inRange=(v,x)=>{if(e.number(x))return v>=Math.min(0,x)&&v<=Math.max(x,0);if(e.array(x)&&x.length===2)return v>=Math.min.apply(null,x)&&v<=Math.max.apply(null,x);throw new TypeError(`Invalid range: ${oC.inspect(x)}`)};let s=1,l=["innerHTML","ownerDocument","style","attributes","nodeValue"];e.domElement=v=>e.object(v)&&v.nodeType===s&&e.string(v.nodeName)&&!e.plainObject(v)&&l.every(x=>x in v),e.nodeStream=v=>!e.nullOrUndefined(v)&&t(v)&&e.function_(v.pipe),e.infinite=v=>v===1/0||v===-1/0;let u=v=>x=>e.integer(x)&&Math.abs(x%2)===v;e.even=u(0),e.odd=u(1);let c=v=>e.string(v)&&/\S/.test(v)===!1,f=v=>(e.string(v)||e.array(v))&&v.length===0,p=v=>!e.map(v)&&!e.set(v)&&e.object(v)&&Object.keys(v).length===0,b=v=>(e.map(v)||e.set(v))&&v.size===0;e.empty=v=>e.falsy(v)||f(v)||p(v)||b(v),e.emptyOrWhitespace=v=>e.empty(v)||c(v);let d=(v,x,E)=>{let g=Array.prototype.slice.call(E,1);if(e.function_(x)===!1)throw new TypeError(`Invalid predicate: ${oC.inspect(x)}`);if(g.length===0)throw new TypeError("Invalid number of values");return v.call(g,x)};function m(v){return d(Array.prototype.some,v,arguments)}e.any=m;function h(v){return d(Array.prototype.every,v,arguments)}e.all=h})(oa||(oa={}));Object.defineProperties(oa,{class:{value:oa.class_},function:{value:oa.function_},null:{value:oa.null_}});Ud.default=oa;Jd.exports=oa;Jd.exports.default=oa});var lC=O((zW,sC)=>{"use strict";var hN=require("stream").PassThrough;sC.exports=e=>{e=Object.assign({},e);let t=e.array,a=e.encoding,n=a==="buffer",i=!1;t?i=!(a||n):a=a||"utf8",n&&(a=null);let r=0,o=[],s=new hN({objectMode:i});return a&&s.setEncoding(a),s.on("data",l=>{o.push(l),i?r=o.length:r+=l.length}),s.getBufferedValue=()=>t?o:n?Buffer.concat(o,r):o.join(""),s.getBufferedLength=()=>r,s}});var cC=O((GW,kl)=>{"use strict";var vN=lC();function qd(e,t){if(!e)return Promise.reject(new Error("Expected a stream"));t=Object.assign({maxBuffer:1/0},t);let a=t.maxBuffer,n,i,r=new Promise((o,s)=>{let l=u=>{u&&(u.bufferedData=n.getBufferedValue()),s(u)};n=vN(t),e.once("error",l),e.pipe(n),n.on("data",()=>{n.getBufferedLength()>a&&s(new Error("maxBuffer exceeded"))}),n.once("error",l),n.on("end",o),i=()=>{e.unpipe&&e.unpipe(n)}});return r.then(i,i),r.then(()=>n.getBufferedValue())}kl.exports=qd;kl.exports.buffer=(e,t)=>qd(e,Object.assign({},t,{encoding:"buffer"}));kl.exports.array=(e,t)=>qd(e,Object.assign({},t,{array:!0}))});var pC=O((HW,uC)=>{"use strict";uC.exports=function(e,t){if(e.timeoutTimer)return e;var a=isNaN(t)?t:{socket:t,connect:t},n=e._headers?" to "+e._headers.host:"";a.connect!==void 0&&(e.timeoutTimer=setTimeout(function(){e.abort();var s=new Error("Connection timed out on request"+n);s.code="ETIMEDOUT",e.emit("error",s)},a.connect)),e.on("socket",function(s){if(!(s.connecting||s._connecting)){r();return}s.once("connect",r)});function i(){e.timeoutTimer&&(clearTimeout(e.timeoutTimer),e.timeoutTimer=null)}function r(){i(),a.socket!==void 0&&e.setTimeout(a.socket,function(){e.abort();var s=new Error("Socket timed out on request"+n);s.code="ESOCKETTIMEDOUT",e.emit("error",s)})}return e.on("error",i)}});var fC=O((WW,dC)=>{"use strict";var bN=require("url"),gN=Fd();dC.exports=(e,t)=>{if(typeof e!="string")throw new TypeError(`Expected \`url\` to be of type \`string\`, got \`${typeof e}\` instead.`);let a=gN(e,Object.assign({https:!0},t));return bN.parse(a)}});var hC=O((VW,mC)=>{"use strict";function xN(e){var t={protocol:e.protocol,hostname:e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:`${e.pathname}${e.search}`,href:e.href};return e.port!==""&&(t.port=Number(e.port)),(e.username||e.password)&&(t.auth=`${e.username}:${e.password}`),t}mC.exports=xN});var vC=O(()=>{});var gC=O((ZW,bC)=>{"use strict";var yN=["ETIMEDOUT","ECONNRESET","EADDRINUSE","ESOCKETTIMEDOUT","ECONNREFUSED","EPIPE","EHOSTUNREACH","EAI_AGAIN"],wN=["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED"];bC.exports=function(e){return!e||!e.code||yN.indexOf(e.code)!==-1?!0:wN.indexOf(e.code)===-1}});var yC=O((qW,xC)=>{"use strict";xC.exports=typeof Symbol=="function"&&typeof Symbol("")=="symbol"});var EC=O((XW,wC)=>{"use strict";wC.exports=yC()&&typeof Symbol.toStringTag=="symbol"});var CC=O(($W,SC)=>{"use strict";SC.exports=function(t){return typeof t=="object"&&t!==null}});var _C=O((YW,IC)=>{"use strict";var EN=EC(),AC=CC(),SN=Object.prototype.toString,CN="[object URL]",AN="hash",IN="host",_N="hostname",TN="href",kN="password",FN="pathname",PN="port",ON="protocol",RN="search",BN="username",Xd=(e,t)=>AC(e)?!EN&&SN.call(e)===CN?!0:!(!(TN in e)||!(ON in e)||!(BN in e)||!(kN in e)||!(_N in e)||!(PN in e)||!(IN in e)||!(FN in e)||!(RN in e)||!(AN in e)||t!==!0&&!AC(e.searchParams)):!1;Xd.lenient=e=>Xd(e,!0);IC.exports=Xd});var Yd=O((KW,$d)=>{"use strict";var Fl=class extends Error{constructor(){super("Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},Pl=class e{static fn(t){return function(){let a=[].slice.apply(arguments);return new e((n,i,r)=>{a.push(r),t.apply(null,a).then(n,i)})}}constructor(t){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._promise=new Promise((a,n)=>(this._reject=n,t(i=>{this._isPending=!1,a(i)},i=>{this._isPending=!1,n(i)},i=>{this._cancelHandlers.push(i)})))}then(t,a){return this._promise.then(t,a)}catch(t){return this._promise.catch(t)}finally(t){return this._promise.finally(t)}cancel(){if(!(!this._isPending||this._isCanceled)){if(this._cancelHandlers.length>0)try{for(let t of this._cancelHandlers)t()}catch(t){this._reject(t)}this._isCanceled=!0,this._reject(new Fl)}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(Pl.prototype,Promise.prototype);$d.exports=Pl;$d.exports.CancelError=Fl});var kC=O((QW,TC)=>{"use strict";TC.exports=(e,t)=>(t=t||(()=>{}),e.then(a=>new Promise(n=>{n(t())}).then(()=>a),a=>new Promise(n=>{n(t())}).then(()=>{throw a})))});var Qd=O((eV,Kd)=>{"use strict";var NN=kC(),Ol=class extends Error{constructor(t){super(t),this.name="TimeoutError"}};Kd.exports=(e,t,a)=>new Promise((n,i)=>{if(typeof t!="number"||t<0)throw new TypeError("Expected `ms` to be a positive number");let r=setTimeout(()=>{if(typeof a=="function"){try{n(a())}catch(l){i(l)}return}let o=typeof a=="string"?a:`Promise timed out after ${t} milliseconds`,s=a instanceof Error?a:new Ol(o);typeof e.cancel=="function"&&e.cancel(),i(s)},t);NN(e.then(n,i),()=>{clearTimeout(r)})});Kd.exports.TimeoutError=Ol});var OC=O((tV,PC)=>{"use strict";var FC=(e,t)=>function(){let a=t.promiseModule,n=new Array(arguments.length);for(let i=0;i{t.errorFirst?n.push(function(o,s){if(t.multiArgs){let l=new Array(arguments.length-1);for(let u=1;u{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},t);let a=i=>{let r=o=>typeof o=="string"?i===o:o.test(i);return t.include?t.include.some(r):!t.exclude.some(r)},n;typeof e=="function"?n=function(){return t.excludeMain?e.apply(this,arguments):FC(e,t).apply(this,arguments)}:n=Object.create(Object.getPrototypeOf(e));for(let i in e){let r=e[i];n[i]=typeof r=="function"&&a(i)?FC(r,t):r}return n}});var RC=O((aV,jN)=>{jN.exports={name:"got",version:"8.3.2",description:"Simplified HTTP requests",license:"MIT",repository:"sindresorhus/got",maintainers:[{name:"Sindre Sorhus",email:"sindresorhus@gmail.com",url:"sindresorhus.com"},{name:"Vsevolod Strukchinsky",email:"floatdrop@gmail.com",url:"github.com/floatdrop"},{name:"Alexander Tesfamichael",email:"alex.tesfamichael@gmail.com",url:"alextes.me"}],engines:{node:">=4"},scripts:{test:"xo && nyc ava",coveralls:"nyc report --reporter=text-lcov | coveralls"},files:["index.js","errors.js"],keywords:["http","https","get","got","url","uri","request","util","utility","simple","curl","wget","fetch","net","network","electron"],dependencies:{"@sindresorhus/is":"^0.7.0","cacheable-request":"^2.1.1","decompress-response":"^3.3.0",duplexer3:"^0.1.4","get-stream":"^3.0.0","into-stream":"^3.1.0","is-retry-allowed":"^1.1.0",isurl:"^1.0.0-alpha5","lowercase-keys":"^1.0.0","mimic-response":"^1.0.0","p-cancelable":"^0.4.0","p-timeout":"^2.0.1",pify:"^3.0.0","safe-buffer":"^5.1.1","timed-out":"^4.0.1","url-parse-lax":"^3.0.0","url-to-options":"^1.0.1"},devDependencies:{ava:"^0.25.0",coveralls:"^3.0.0","form-data":"^2.1.1","get-port":"^3.0.0",nyc:"^11.0.2","p-event":"^1.3.0",pem:"^1.4.4",proxyquire:"^1.8.0",sinon:"^4.0.0","slow-stream":"0.0.4",tempfile:"^2.0.0",tempy:"^0.2.1","universal-url":"1.0.0-alpha",xo:"^0.20.0"},ava:{concurrency:4},browser:{"decompress-response":!1,electron:!1}}});var BC=O((nV,la)=>{"use strict";var LN=require("url"),ef=require("http"),MN=Yd(),DN=Zd(),sa=class extends Error{constructor(t,a,n){super(t),Error.captureStackTrace(this,this.constructor),this.name="GotError",DN.undefined(a.code)||(this.code=a.code),Object.assign(this,{host:n.host,hostname:n.hostname,method:n.method,path:n.path,protocol:n.protocol,url:n.href})}};la.exports.GotError=sa;la.exports.CacheError=class extends sa{constructor(e,t){super(e.message,e,t),this.name="CacheError"}};la.exports.RequestError=class extends sa{constructor(e,t){super(e.message,e,t),this.name="RequestError"}};la.exports.ReadError=class extends sa{constructor(e,t){super(e.message,e,t),this.name="ReadError"}};la.exports.ParseError=class extends sa{constructor(e,t,a,n){super(`${e.message} in "${LN.format(a)}": -${n.slice(0,77)}...`,e,a),this.name="ParseError",this.statusCode=t,this.statusMessage=ef.STATUS_CODES[this.statusCode]}};la.exports.HTTPError=class extends sa{constructor(e,t,a,n){t?t=t.replace(/\r?\n/g," ").trim():t=ef.STATUS_CODES[e],super(`Response code ${e} (${t})`,{},n),this.name="HTTPError",this.statusCode=e,this.statusMessage=t,this.headers=a}};la.exports.MaxRedirectsError=class extends sa{constructor(e,t,a){super("Redirected 10 times. Aborting.",{},a),this.name="MaxRedirectsError",this.statusCode=e,this.statusMessage=ef.STATUS_CODES[this.statusCode],this.redirectUrls=t}};la.exports.UnsupportedProtocolError=class extends sa{constructor(e){super(`Unsupported protocol "${e.protocol}"`,{},e),this.name="UnsupportedProtocolError"}};la.exports.CancelError=MN.CancelError});var qC=O((pV,ZC)=>{"use strict";var WC=require("events"),zN=require("http"),GN=require("https"),NC=require("stream").PassThrough,HN=require("stream").Transform,Tr=require("url"),jC=require("fs"),LC=require("querystring"),MC=ZS(),WN=qS(),VN=rC(),xe=Zd(),DC=cC(),UN=pC(),JN=fC(),ZN=hC(),qN=jd(),zC=vC(),XN=Md(),$N=gC(),YN=_C(),KN=Yd(),QN=Qd(),GC=OC(),Rl=Bs().Buffer,HC=RC(),ej=BC(),tj=new Set([300,301,302,303,304,305,307,308]),aj=new Set([300,303,307,308]),tf=e=>xe.nodeStream(e)&&xe.function(e.getBoundary),nj=e=>{let t=e.body;return e.headers["content-length"]?Number(e.headers["content-length"]):!t&&!e.stream?0:xe.string(t)?Rl.byteLength(t):tf(t)?GC(t.getLength.bind(t))():t instanceof jC.ReadStream?GC(jC.stat)(t.path).then(a=>a.size):xe.nodeStream(t)&&xe.buffer(t._buffer)?t._buffer.length:null};function VC(e){e=e||{};let t=new WC,a=e.href||Tr.resolve(Tr.format(e),e.path),n=[],i=xe.object(e.agent)?e.agent:null,r=0,o,s,l=0,u=c=>{if(c.protocol!=="http:"&&c.protocol!=="https:"){t.emit("error",new tt.UnsupportedProtocolError(c));return}let f=c.protocol==="https:"?GN:zN;if(i){let m=c.protocol==="https:"?"https":"http";c.agent=i[m]||c.agent}if(c.useElectronNet&&process.versions.electron){let m=require("electron");f=m.net||m.remote.net}let p,d=new MC(f.request,c.cache)(c,m=>{clearInterval(p),t.emit("uploadProgress",{percent:1,transferred:l,total:s});let h=m.statusCode;m.url=o||a,m.requestUrl=a;let v=c.followRedirect&&"location"in m.headers,x=v&&tj.has(h);if(v&&aj.has(h)||x&&(c.method==="GET"||c.method==="HEAD")){if(m.resume(),h===303&&(c.method="GET"),n.length>=10){t.emit("error",new tt.MaxRedirectsError(h,n,c),null,m);return}let g=Rl.from(m.headers.location,"binary").toString();o=Tr.resolve(Tr.format(c),g),n.push(o);let w=Object.assign({},c,Tr.parse(o));t.emit("redirect",m,w),u(w);return}setImmediate(()=>{try{ij(m,c,t,n)}catch(g){t.emit("error",g)}})});d.on("error",m=>{m instanceof MC.RequestError?t.emit("error",new tt.RequestError(m,c)):t.emit("error",new tt.CacheError(m,c))}),d.once("request",m=>{let h=!1;m.once("abort",v=>{h=!0}),m.once("error",v=>{if(clearInterval(p),h)return;let x=c.retries(++r,v);if(x){setTimeout(u,x,c);return}t.emit("error",new tt.RequestError(v,c))}),t.once("request",v=>{t.emit("uploadProgress",{percent:0,transferred:0,total:s});let x=v.connection;if(x){let E=x.connecting===void 0?x._connecting:x.connecting,g=()=>{p=setInterval(()=>{if(x.destroyed){clearInterval(p);return}let C=l,y=v._header?Rl.byteLength(v._header):0;l=x.bytesWritten-y,s&&l>s&&(l=s),!(l===C||l===s)&&t.emit("uploadProgress",{percent:s?l/s:0,transferred:l,total:s})},150)};E?x.once("connect",g):g()}}),c.gotTimeout&&(clearInterval(p),UN(m,c.gotTimeout)),setImmediate(()=>{t.emit("request",m)})})};return setImmediate(()=>{Promise.resolve(nj(e)).then(c=>{s=c,xe.undefined(e.headers["content-length"])&&xe.undefined(e.headers["transfer-encoding"])&&tf(e.body)&&(e.headers["content-length"]=c),u(e)}).catch(c=>{t.emit("error",c)})}),t}function ij(e,t,a,n){let i=Number(e.headers["content-length"])||null,r=0,o=new HN({transform(l,u,c){r+=l.length;let f=i?r/i:0;f<1&&a.emit("downloadProgress",{percent:f,transferred:r,total:i}),c(null,l)},flush(l){a.emit("downloadProgress",{percent:1,transferred:r,total:i}),l()}});XN(e,o),o.redirectUrls=n;let s=t.decompress===!0&&xe.function(zC)&&t.method!=="HEAD"?zC(o):o;!t.decompress&&["gzip","deflate"].indexOf(e.headers["content-encoding"])!==-1&&(t.encoding=null),a.emit("response",s),a.emit("downloadProgress",{percent:0,transferred:0,total:i}),e.pipe(o)}function rj(e){let t=r=>e.gotTimeout&&e.gotTimeout.request?QN(r,e.gotTimeout.request,new tt.RequestError({message:"Request timed out",code:"ETIMEDOUT"},e)):r,a=new WC,n=new KN((r,o,s)=>{let l=VC(e),u=!1;s(()=>{u=!0}),l.on("request",c=>{if(u&&c.abort(),s(()=>{c.abort()}),xe.nodeStream(e.body)){e.body.pipe(c),e.body=void 0;return}c.end(e.body)}),l.on("response",c=>{(xe.null(e.encoding)?DC.buffer(c):DC(c,e)).catch(p=>o(new tt.ReadError(p,e))).then(p=>{let b=c.statusCode,d=e.followRedirect?299:399;if(c.body=p,e.json&&c.body)try{c.body=JSON.parse(c.body)}catch(m){if(b>=200&&b<300)throw new tt.ParseError(m,b,e,p)}if(e.throwHttpErrors&&b!==304&&(b<200||b>d))throw new tt.HTTPError(b,c.statusMessage,c.headers,e);r(c)}).catch(p=>{Object.defineProperty(p,"response",{value:c}),o(p)})}),l.once("error",o),l.on("redirect",a.emit.bind(a,"redirect")),l.on("uploadProgress",a.emit.bind(a,"uploadProgress")),l.on("downloadProgress",a.emit.bind(a,"downloadProgress"))});Object.defineProperty(n,"canceled",{get(){return n.isCanceled}});let i=t(n);return i.cancel=n.cancel.bind(n),i.on=(r,o)=>(a.on(r,o),i),i}function UC(e){e.stream=!0;let t=new NC,a=new NC,n=WN(t,a),i;if(e.gotTimeout&&e.gotTimeout.request&&(i=setTimeout(()=>{n.emit("error",new tt.RequestError({message:"Request timed out",code:"ETIMEDOUT"},e))},e.gotTimeout.request)),e.json)throw new Error("Got can not be used as a stream when the `json` option is used");e.body&&(n.write=()=>{throw new Error("Got's stream is not writable when the `body` option is used")});let r=VC(e);return r.on("request",o=>{if(n.emit("request",o),xe.nodeStream(e.body)){e.body.pipe(o);return}if(e.body){o.end(e.body);return}if(e.method==="POST"||e.method==="PUT"||e.method==="PATCH"){t.pipe(o);return}o.end()}),r.on("response",o=>{clearTimeout(i);let s=o.statusCode;if(o.on("error",l=>{n.emit("error",new tt.ReadError(l,e))}),o.pipe(a),e.throwHttpErrors&&s!==304&&(s<200||s>299)){n.emit("error",new tt.HTTPError(s,o.statusMessage,o.headers,e),null,o);return}n.emit("response",o)}),r.on("error",n.emit.bind(n,"error")),r.on("redirect",n.emit.bind(n,"redirect")),r.on("uploadProgress",n.emit.bind(n,"uploadProgress")),r.on("downloadProgress",n.emit.bind(n,"downloadProgress")),n}function JC(e,t){if(!xe.string(e)&&!xe.object(e))throw new TypeError(`Parameter \`url\` must be a string or object, not ${xe(e)}`);if(xe.string(e)){e=e.replace(/^unix:/,"http://$&");try{decodeURI(e)}catch(r){throw new Error("Parameter `url` must contain valid UTF-8 character sequences")}if(e=JN(e),e.auth)throw new Error("Basic authentication must be done with the `auth` option")}else YN.lenient(e)&&(e=ZN(e));t=Object.assign({path:"",retries:2,cache:!1,decompress:!0,useElectronNet:!1,throwHttpErrors:!0},e,{protocol:e.protocol||"http:"},t);let a=qN(t.headers);for(let r of Object.keys(a))xe.nullOrUndefined(a[r])&&delete a[r];t.headers=Object.assign({"user-agent":`${HC.name}/${HC.version} (https://github.com/sindresorhus/got)`},a),t.decompress&&xe.undefined(t.headers["accept-encoding"])&&(t.headers["accept-encoding"]="gzip, deflate");let n=t.query;n&&(xe.string(n)||(t.query=LC.stringify(n)),t.path=`${t.path.split("?")[0]}?${t.query}`,delete t.query),t.json&&xe.undefined(t.headers.accept)&&(t.headers.accept="application/json");let i=t.body;if(xe.nullOrUndefined(i))t.method=(t.method||"GET").toUpperCase();else{let r=t.headers;if(!xe.nodeStream(i)&&!xe.string(i)&&!xe.buffer(i)&&!(t.form||t.json))throw new TypeError("The `body` option must be a stream.Readable, string, Buffer or plain Object");let o=xe.plainObject(i)||xe.array(i);if((t.form||t.json)&&!o)throw new TypeError("The `body` option must be a plain Object or Array when the `form` or `json` option is used");if(tf(i)?r["content-type"]=r["content-type"]||`multipart/form-data; boundary=${i.getBoundary()}`:t.form&&o?(r["content-type"]=r["content-type"]||"application/x-www-form-urlencoded",t.body=LC.stringify(i)):t.json&&o&&(r["content-type"]=r["content-type"]||"application/json",t.body=JSON.stringify(i)),xe.undefined(r["content-length"])&&xe.undefined(r["transfer-encoding"])&&!xe.nodeStream(i)){let s=xe.string(t.body)?Rl.byteLength(t.body):t.body.length;r["content-length"]=s}xe.buffer(i)&&(t.body=VN(i),t.body._buffer=i),t.method=(t.method||"POST").toUpperCase()}if(t.hostname==="unix"){let r=/(.+?):(.+)/.exec(t.path);r&&(t.socketPath=r[1],t.path=r[2],t.host=null)}if(!xe.function(t.retries)){let r=t.retries;t.retries=(o,s)=>{if(o>r||!$N(s))return 0;let l=Math.random()*100;return(1<UC(JC(e,t));var oj=["get","post","put","patch","head","delete"];for(let e of oj)tt[e]=(t,a)=>tt(t,Object.assign({},a,{method:e})),tt.stream[e]=(t,a)=>tt.stream(t,Object.assign({},a,{method:e}));Object.assign(tt,ej);ZC.exports=tt});var af=O((dV,$C)=>{"use strict";var XC=(e,t)=>function(...a){let n=t.promiseModule;return new n((i,r)=>{t.multiArgs?a.push((...o)=>{t.errorFirst?o[0]?r(o):(o.shift(),i(o)):i(o)}):t.errorFirst?a.push((o,s)=>{o?r(o):i(s)}):a.push(i),e.apply(this,a)})};$C.exports=(e,t)=>{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},t);let a=typeof e;if(!(e!==null&&(a==="object"||a==="function")))throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${e===null?"null":a}\``);let n=r=>{let o=s=>typeof s=="string"?r===s:s.test(r);return t.include?t.include.some(o):!t.exclude.some(o)},i;a==="function"?i=function(...r){return t.excludeMain?e(...r):XC(e,t).apply(this,r)}:i=Object.create(Object.getPrototypeOf(e));for(let r in e){let o=e[r];i[r]=typeof o=="function"&&n(r)?XC(o,t):o}return i}});var fA=O((ce,dA)=>{ce=dA.exports=be;var Te;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?Te=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:Te=function(){};ce.SEMVER_SPEC_VERSION="2.0.0";var rf=256,Bl=Number.MAX_SAFE_INTEGER||9007199254740991,nf=16,Oe=ce.re=[],G=ce.src=[],ve=0,li=ve++;G[li]="0|[1-9]\\d*";var ci=ve++;G[ci]="[0-9]+";var cf=ve++;G[cf]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var KC=ve++;G[KC]="("+G[li]+")\\.("+G[li]+")\\.("+G[li]+")";var QC=ve++;G[QC]="("+G[ci]+")\\.("+G[ci]+")\\.("+G[ci]+")";var of=ve++;G[of]="(?:"+G[li]+"|"+G[cf]+")";var sf=ve++;G[sf]="(?:"+G[ci]+"|"+G[cf]+")";var uf=ve++;G[uf]="(?:-("+G[of]+"(?:\\."+G[of]+")*))";var pf=ve++;G[pf]="(?:-?("+G[sf]+"(?:\\."+G[sf]+")*))";var lf=ve++;G[lf]="[0-9A-Za-z-]+";var Pr=ve++;G[Pr]="(?:\\+("+G[lf]+"(?:\\."+G[lf]+")*))";var df=ve++,eA="v?"+G[KC]+G[uf]+"?"+G[Pr]+"?";G[df]="^"+eA+"$";var ff="[v=\\s]*"+G[QC]+G[pf]+"?"+G[Pr]+"?",mf=ve++;G[mf]="^"+ff+"$";var di=ve++;G[di]="((?:<|>)?=?)";var Nl=ve++;G[Nl]=G[ci]+"|x|X|\\*";var jl=ve++;G[jl]=G[li]+"|x|X|\\*";var bn=ve++;G[bn]="[v=\\s]*("+G[jl]+")(?:\\.("+G[jl]+")(?:\\.("+G[jl]+")(?:"+G[uf]+")?"+G[Pr]+"?)?)?";var pi=ve++;G[pi]="[v=\\s]*("+G[Nl]+")(?:\\.("+G[Nl]+")(?:\\.("+G[Nl]+")(?:"+G[pf]+")?"+G[Pr]+"?)?)?";var tA=ve++;G[tA]="^"+G[di]+"\\s*"+G[bn]+"$";var aA=ve++;G[aA]="^"+G[di]+"\\s*"+G[pi]+"$";var nA=ve++;G[nA]="(?:^|[^\\d])(\\d{1,"+nf+"})(?:\\.(\\d{1,"+nf+"}))?(?:\\.(\\d{1,"+nf+"}))?(?:$|[^\\d])";var Hl=ve++;G[Hl]="(?:~>?)";var Ll=ve++;G[Ll]="(\\s*)"+G[Hl]+"\\s+";Oe[Ll]=new RegExp(G[Ll],"g");var sj="$1~",iA=ve++;G[iA]="^"+G[Hl]+G[bn]+"$";var rA=ve++;G[rA]="^"+G[Hl]+G[pi]+"$";var Wl=ve++;G[Wl]="(?:\\^)";var Ml=ve++;G[Ml]="(\\s*)"+G[Wl]+"\\s+";Oe[Ml]=new RegExp(G[Ml],"g");var lj="$1^",oA=ve++;G[oA]="^"+G[Wl]+G[bn]+"$";var sA=ve++;G[sA]="^"+G[Wl]+G[pi]+"$";var hf=ve++;G[hf]="^"+G[di]+"\\s*("+ff+")$|^$";var vf=ve++;G[vf]="^"+G[di]+"\\s*("+eA+")$|^$";var kr=ve++;G[kr]="(\\s*)"+G[di]+"\\s*("+ff+"|"+G[bn]+")";Oe[kr]=new RegExp(G[kr],"g");var cj="$1$2$3",lA=ve++;G[lA]="^\\s*("+G[bn]+")\\s+-\\s+("+G[bn]+")\\s*$";var cA=ve++;G[cA]="^\\s*("+G[pi]+")\\s+-\\s+("+G[pi]+")\\s*$";var uA=ve++;G[uA]="(<|>)?=?\\s*\\*";for(Wa=0;Warf)return null;var a=t.loose?Oe[mf]:Oe[df];if(!a.test(e))return null;try{return new be(e,t)}catch(n){return null}}ce.valid=uj;function uj(e,t){var a=gn(e,t);return a?a.version:null}ce.clean=pj;function pj(e,t){var a=gn(e.trim().replace(/^[=v]+/,""),t);return a?a.version:null}ce.SemVer=be;function be(e,t){if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),e instanceof be){if(e.loose===t.loose)return e;e=e.version}else if(typeof e!="string")throw new TypeError("Invalid Version: "+e);if(e.length>rf)throw new TypeError("version is longer than "+rf+" characters");if(!(this instanceof be))return new be(e,t);Te("SemVer",e,t),this.options=t,this.loose=!!t.loose;var a=e.trim().match(t.loose?Oe[mf]:Oe[df]);if(!a)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>Bl||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Bl||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Bl||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map(function(n){if(/^[0-9]+$/.test(n)){var i=+n;if(i>=0&&i=0;)typeof this.prerelease[a]=="number"&&(this.prerelease[a]++,a=-2);a===-1&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this};ce.inc=dj;function dj(e,t,a,n){typeof a=="string"&&(n=a,a=void 0);try{return new be(e,a).inc(t,n).version}catch(i){return null}}ce.diff=fj;function fj(e,t){if(bf(e,t))return null;var a=gn(e),n=gn(t),i="";if(a.prerelease.length||n.prerelease.length){i="pre";var r="prerelease"}for(var o in a)if((o==="major"||o==="minor"||o==="patch")&&a[o]!==n[o])return i+o;return r}ce.compareIdentifiers=ui;var YC=/^[0-9]+$/;function ui(e,t){var a=YC.test(e),n=YC.test(t);return a&&n&&(e=+e,t=+t),e===t?0:a&&!n?-1:n&&!a?1:e0}ce.lt=Dl;function Dl(e,t,a){return Sa(e,t,a)<0}ce.eq=bf;function bf(e,t,a){return Sa(e,t,a)===0}ce.neq=pA;function pA(e,t,a){return Sa(e,t,a)!==0}ce.gte=gf;function gf(e,t,a){return Sa(e,t,a)>=0}ce.lte=xf;function xf(e,t,a){return Sa(e,t,a)<=0}ce.cmp=zl;function zl(e,t,a,n){switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof a=="object"&&(a=a.version),e===a;case"!==":return typeof e=="object"&&(e=e.version),typeof a=="object"&&(a=a.version),e!==a;case"":case"=":case"==":return bf(e,a,n);case"!=":return pA(e,a,n);case">":return Fr(e,a,n);case">=":return gf(e,a,n);case"<":return Dl(e,a,n);case"<=":return xf(e,a,n);default:throw new TypeError("Invalid operator: "+t)}}ce.Comparator=Gt;function Gt(e,t){if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),e instanceof Gt){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof Gt))return new Gt(e,t);Te("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===Or?this.value="":this.value=this.operator+this.semver.version,Te("comp",this)}var Or={};Gt.prototype.parse=function(e){var t=this.options.loose?Oe[hf]:Oe[vf],a=e.match(t);if(!a)throw new TypeError("Invalid comparator: "+e);this.operator=a[1],this.operator==="="&&(this.operator=""),a[2]?this.semver=new be(a[2],this.options.loose):this.semver=Or};Gt.prototype.toString=function(){return this.value};Gt.prototype.test=function(e){return Te("Comparator.test",e,this.options.loose),this.semver===Or?!0:(typeof e=="string"&&(e=new be(e,this.options)),zl(e,this.operator,this.semver,this.options))};Gt.prototype.intersects=function(e,t){if(!(e instanceof Gt))throw new TypeError("a Comparator is required");(!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1});var a;if(this.operator==="")return a=new Ve(e.value,t),Gl(this.value,a,t);if(e.operator==="")return a=new Ve(this.value,t),Gl(e.semver,a,t);var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">"),i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<"),r=this.semver.version===e.semver.version,o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<="),s=zl(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),l=zl(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return n||i||r&&o||s||l};ce.Range=Ve;function Ve(e,t){if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),e instanceof Ve)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new Ve(e.raw,t);if(e instanceof Gt)return new Ve(e.value,t);if(!(this instanceof Ve))return new Ve(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(function(a){return this.parseRange(a.trim())},this).filter(function(a){return a.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}Ve.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range};Ve.prototype.toString=function(){return this.range};Ve.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var a=t?Oe[cA]:Oe[lA];e=e.replace(a,Pj),Te("hyphen replace",e),e=e.replace(Oe[kr],cj),Te("comparator trim",e,Oe[kr]),e=e.replace(Oe[Ll],sj),e=e.replace(Oe[Ml],lj),e=e.split(/\s+/).join(" ");var n=t?Oe[hf]:Oe[vf],i=e.split(" ").map(function(r){return Sj(r,this.options)},this).join(" ").split(/\s+/);return this.options.loose&&(i=i.filter(function(r){return!!r.match(n)})),i=i.map(function(r){return new Gt(r,this.options)},this),i};Ve.prototype.intersects=function(e,t){if(!(e instanceof Ve))throw new TypeError("a Range is required");return this.set.some(function(a){return a.every(function(n){return e.set.some(function(i){return i.every(function(r){return n.intersects(r,t)})})})})};ce.toComparators=Ej;function Ej(e,t){return new Ve(e,t).set.map(function(a){return a.map(function(n){return n.value}).join(" ").trim().split(" ")})}function Sj(e,t){return Te("comp",e,t),e=Ij(e,t),Te("caret",e),e=Cj(e,t),Te("tildes",e),e=Tj(e,t),Te("xrange",e),e=Fj(e,t),Te("stars",e),e}function xt(e){return!e||e.toLowerCase()==="x"||e==="*"}function Cj(e,t){return e.trim().split(/\s+/).map(function(a){return Aj(a,t)}).join(" ")}function Aj(e,t){var a=t.loose?Oe[rA]:Oe[iA];return e.replace(a,function(n,i,r,o,s){Te("tilde",e,n,i,r,o,s);var l;return xt(i)?l="":xt(r)?l=">="+i+".0.0 <"+(+i+1)+".0.0":xt(o)?l=">="+i+"."+r+".0 <"+i+"."+(+r+1)+".0":s?(Te("replaceTilde pr",s),l=">="+i+"."+r+"."+o+"-"+s+" <"+i+"."+(+r+1)+".0"):l=">="+i+"."+r+"."+o+" <"+i+"."+(+r+1)+".0",Te("tilde return",l),l})}function Ij(e,t){return e.trim().split(/\s+/).map(function(a){return _j(a,t)}).join(" ")}function _j(e,t){Te("caret",e,t);var a=t.loose?Oe[sA]:Oe[oA];return e.replace(a,function(n,i,r,o,s){Te("caret",e,n,i,r,o,s);var l;return xt(i)?l="":xt(r)?l=">="+i+".0.0 <"+(+i+1)+".0.0":xt(o)?i==="0"?l=">="+i+"."+r+".0 <"+i+"."+(+r+1)+".0":l=">="+i+"."+r+".0 <"+(+i+1)+".0.0":s?(Te("replaceCaret pr",s),i==="0"?r==="0"?l=">="+i+"."+r+"."+o+"-"+s+" <"+i+"."+r+"."+(+o+1):l=">="+i+"."+r+"."+o+"-"+s+" <"+i+"."+(+r+1)+".0":l=">="+i+"."+r+"."+o+"-"+s+" <"+(+i+1)+".0.0"):(Te("no pr"),i==="0"?r==="0"?l=">="+i+"."+r+"."+o+" <"+i+"."+r+"."+(+o+1):l=">="+i+"."+r+"."+o+" <"+i+"."+(+r+1)+".0":l=">="+i+"."+r+"."+o+" <"+(+i+1)+".0.0"),Te("caret return",l),l})}function Tj(e,t){return Te("replaceXRanges",e,t),e.split(/\s+/).map(function(a){return kj(a,t)}).join(" ")}function kj(e,t){e=e.trim();var a=t.loose?Oe[aA]:Oe[tA];return e.replace(a,function(n,i,r,o,s,l){Te("xRange",e,n,i,r,o,s,l);var u=xt(r),c=u||xt(o),f=c||xt(s),p=f;return i==="="&&p&&(i=""),u?i===">"||i==="<"?n="<0.0.0":n="*":i&&p?(c&&(o=0),s=0,i===">"?(i=">=",c?(r=+r+1,o=0,s=0):(o=+o+1,s=0)):i==="<="&&(i="<",c?r=+r+1:o=+o+1),n=i+r+"."+o+"."+s):c?n=">="+r+".0.0 <"+(+r+1)+".0.0":f&&(n=">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0"),Te("xRange return",n),n})}function Fj(e,t){return Te("replaceStars",e,t),e.trim().replace(Oe[uA],"")}function Pj(e,t,a,n,i,r,o,s,l,u,c,f,p){return xt(a)?t="":xt(n)?t=">="+a+".0.0":xt(i)?t=">="+a+"."+n+".0":t=">="+t,xt(l)?s="":xt(u)?s="<"+(+l+1)+".0.0":xt(c)?s="<"+l+"."+(+u+1)+".0":f?s="<="+l+"."+u+"."+c+"-"+f:s="<="+s,(t+" "+s).trim()}Ve.prototype.test=function(e){if(!e)return!1;typeof e=="string"&&(e=new be(e,this.options));for(var t=0;t0){var i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}ce.satisfies=Gl;function Gl(e,t,a){try{t=new Ve(t,a)}catch(n){return!1}return t.test(e)}ce.maxSatisfying=Rj;function Rj(e,t,a){var n=null,i=null;try{var r=new Ve(t,a)}catch(o){return null}return e.forEach(function(o){r.test(o)&&(!n||i.compare(o)===-1)&&(n=o,i=new be(n,a))}),n}ce.minSatisfying=Bj;function Bj(e,t,a){var n=null,i=null;try{var r=new Ve(t,a)}catch(o){return null}return e.forEach(function(o){r.test(o)&&(!n||i.compare(o)===1)&&(n=o,i=new be(n,a))}),n}ce.minVersion=Nj;function Nj(e,t){e=new Ve(e,t);var a=new be("0.0.0");if(e.test(a)||(a=new be("0.0.0-0"),e.test(a)))return a;a=null;for(var n=0;n":o.prerelease.length===0?o.patch++:o.prerelease.push(0),o.raw=o.format();case"":case">=":(!a||Fr(a,o))&&(a=o);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+r.operator)}})}return a&&e.test(a)?a:null}ce.validRange=jj;function jj(e,t){try{return new Ve(e,t).range||"*"}catch(a){return null}}ce.ltr=Lj;function Lj(e,t,a){return yf(e,t,"<",a)}ce.gtr=Mj;function Mj(e,t,a){return yf(e,t,">",a)}ce.outside=yf;function yf(e,t,a,n){e=new be(e,n),t=new Ve(t,n);var i,r,o,s,l;switch(a){case">":i=Fr,r=xf,o=Dl,s=">",l=">=";break;case"<":i=Dl,r=gf,o=Fr,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Gl(e,t,n))return!1;for(var u=0;u=0.0.0")),f=f||b,p=p||b,i(b.semver,f.semver,n)?f=b:o(b.semver,p.semver,n)&&(p=b)}),f.operator===s||f.operator===l||(!p.operator||p.operator===s)&&r(e,p.semver))return!1;if(p.operator===l&&o(e,p.semver))return!1}return!0}ce.prerelease=Dj;function Dj(e,t){var a=gn(e,t);return a&&a.prerelease.length?a.prerelease:null}ce.intersects=zj;function zj(e,t,a){return e=new Ve(e,a),t=new Ve(t,a),e.intersects(t)}ce.coerce=Gj;function Gj(e){if(e instanceof be)return e;if(typeof e!="string")return null;var t=e.match(Oe[nA]);return t==null?null:gn(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}});var yA=O((fV,Ul)=>{"use strict";var Vl=require("fs"),Ca=require("path"),mA=af(),Hj=fA(),hA={mode:511&~process.umask(),fs:Vl},vA=Hj.satisfies(process.version,">=10.12.0"),bA=e=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(Ca.parse(e).root,""))){let a=new Error(`Path contains invalid characters: ${e}`);throw a.code="EINVAL",a}},gA=e=>{let t=new Error(`operation not permitted, mkdir '${e}'`);return t.code="EPERM",t.errno=-4048,t.path=e,t.syscall="mkdir",t},xA=(e,t)=>Promise.resolve().then(()=>{bA(e),t=Object.assign({},hA,t);let a=mA(t.fs.mkdir),n=mA(t.fs.stat);if(vA&&t.fs.mkdir===Vl.mkdir){let r=Ca.resolve(e);return a(r,{mode:t.mode,recursive:!0}).then(()=>r)}let i=r=>a(r,t.mode).then(()=>r).catch(o=>{if(o.code==="EPERM")throw o;if(o.code==="ENOENT"){if(Ca.dirname(r)===r)throw gA(r);if(o.message.includes("null bytes"))throw o;return i(Ca.dirname(r)).then(()=>i(r))}return n(r).then(s=>s.isDirectory()?r:Promise.reject()).catch(()=>{throw o})});return i(Ca.resolve(e))});Ul.exports=xA;Ul.exports.default=xA;Ul.exports.sync=(e,t)=>{if(bA(e),t=Object.assign({},hA,t),vA&&t.fs.mkdirSync===Vl.mkdirSync){let n=Ca.resolve(e);return Vl.mkdirSync(n,{mode:t.mode,recursive:!0}),n}let a=n=>{try{t.fs.mkdirSync(n,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(Ca.dirname(n)===n)throw gA(n);if(i.message.includes("null bytes"))throw i;return a(Ca.dirname(n)),a(n)}try{if(!t.fs.statSync(n).isDirectory())throw new Error("The path is not a directory")}catch(r){throw i}}return n};return a(Ca.resolve(e))}});var CA=O((mV,Jl)=>{"use strict";var Wj=Qd(),Vj=Symbol.asyncIterator||"@@asyncIterator",wA=e=>{let t=e.on||e.addListener||e.addEventListener,a=e.off||e.removeListener||e.removeEventListener;if(!t||!a)throw new TypeError("Emitter is not compatible");return{addListener:t.bind(e),removeListener:a.bind(e)}},EA=e=>Array.isArray(e)?e:[e],SA=(e,t,a)=>{let n,i=new Promise((r,o)=>{if(a=Object.assign({rejectionEvents:["error"],multiArgs:!1,resolveImmediately:!1},a),!(a.count>=0&&(a.count===1/0||Number.isInteger(a.count))))throw new TypeError("The `count` option should be at least 0 or more");let s=EA(t),l=[],{addListener:u,removeListener:c}=wA(e),f=(...b)=>{let d=a.multiArgs?b:b[0];a.filter&&!a.filter(d)||(l.push(d),a.count===l.length&&(n(),r(l)))},p=b=>{n(),o(b)};n=()=>{for(let b of s)c(b,f);for(let b of a.rejectionEvents)c(b,p)};for(let b of s)u(b,f);for(let b of a.rejectionEvents)u(b,p);a.resolveImmediately&&r(l)});if(i.cancel=n,typeof a.timeout=="number"){let r=Wj(i,a.timeout);return r.cancel=n,r}return i};Jl.exports=(e,t,a)=>{typeof a=="function"&&(a={filter:a}),a=Object.assign({},a,{count:1,resolveImmediately:!1});let n=SA(e,t,a),i=n.then(r=>r[0]);return i.cancel=n.cancel,i};Jl.exports.multiple=SA;Jl.exports.iterator=(e,t,a)=>{typeof a=="function"&&(a={filter:a});let n=EA(t);a=Object.assign({rejectionEvents:["error"],resolutionEvents:[],limit:1/0,multiArgs:!1},a);let{limit:i}=a;if(!(i>=0&&(i===1/0||Number.isInteger(i))))throw new TypeError("The `limit` option should be a non-negative integer or Infinity");if(i===0)return{[Symbol.asyncIterator](){return this},next(){return Promise.resolve({done:!0,value:void 0})}};let o=!1,{addListener:s,removeListener:l}=wA(e),u=!1,c,f=!1,p=[],b=[],d=0,m=(...E)=>{d++,o=d===i;let g=a.multiArgs?E:E[0];if(p.length>0){let{resolve:w}=p.shift();w({done:!1,value:g}),o&&h();return}b.push(g),o&&h()},h=()=>{u=!0;for(let E of n)l(E,m);for(let E of a.rejectionEvents)l(E,v);for(let E of a.resolutionEvents)l(E,x);for(;p.length>0;){let{resolve:E}=p.shift();E({done:!0,value:void 0})}},v=(...E)=>{if(c=a.multiArgs?E:E[0],p.length>0){let{reject:g}=p.shift();g(c)}else f=!0;h()},x=(...E)=>{let g=a.multiArgs?E:E[0];if(!(a.filter&&!a.filter(g))){if(p.length>0){let{resolve:w}=p.shift();w({done:!0,value:g})}else b.push(g);h()}};for(let E of n)s(E,m);for(let E of a.rejectionEvents)s(E,v);for(let E of a.resolutionEvents)s(E,x);return{[Vj](){return this},next(){if(b.length>0){let E=b.shift();return Promise.resolve({done:u&&b.length===0&&!o,value:E})}return f?(f=!1,Promise.reject(c)):u?Promise.resolve({done:!0,value:void 0}):new Promise((E,g)=>p.push({resolve:E,reject:g}))},return(E){return h(),Promise.resolve({done:u,value:E})}}}});var IA=O(Rr=>{"use strict";Rr.stringToBytes=e=>[...e].map(t=>t.charCodeAt(0));var AA=(e,t,a)=>String.fromCharCode(...e.slice(t,a));Rr.readUInt64LE=(e,t=0)=>{let a=e[t],n=1,i=0;for(;++i<8;)n*=256,a+=e[t+i]*n;return a};Rr.tarHeaderChecksumMatches=e=>{if(e.length<512)return!1;let t=128,a=256,n=0;for(let r=0;r<148;r++){let o=e[r];a+=o,n+=o&t}for(let r=156;r<512;r++){let o=e[r];a+=o,n+=o&t}let i=parseInt(AA(e,148,154),8);return i===a||i===a-(n<<1)};Rr.uint8ArrayUtf8ByteString=AA});var _A=O((exports,module)=>{"use strict";var{stringToBytes,readUInt64LE,tarHeaderChecksumMatches,uint8ArrayUtf8ByteString}=IA(),xpiZipFilename=stringToBytes("META-INF/mozilla.rsa"),oxmlContentTypes=stringToBytes("[Content_Types].xml"),oxmlRels=stringToBytes("_rels/.rels"),fileType=e=>{if(!(e instanceof Uint8Array||e instanceof ArrayBuffer||Buffer.isBuffer(e)))throw new TypeError(`Expected the \`input\` argument to be of type \`Uint8Array\` or \`Buffer\` or \`ArrayBuffer\`, got \`${typeof e}\``);let t=e instanceof Uint8Array?e:new Uint8Array(e);if(!(t&&t.length>1))return;let a=(i,r)=>{r=Object.assign({offset:0},r);for(let o=0;oa(stringToBytes(i),r);if(a([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(a([137,80,78,71,13,10,26,10]))return{ext:"png",mime:"image/png"};if(a([71,73,70]))return{ext:"gif",mime:"image/gif"};if(a([87,69,66,80],{offset:8}))return{ext:"webp",mime:"image/webp"};if(a([70,76,73,70]))return{ext:"flif",mime:"image/flif"};if((a([73,73,42,0])||a([77,77,0,42]))&&a([67,82],{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(a([73,73,82,79,8,0,0,0,24]))return{ext:"orf",mime:"image/x-olympus-orf"};if(a([73,73,42,0,16,251,134,1]))return{ext:"arw",mime:"image/x-sony-arw"};if(a([73,73,42,0,8,0,0,0,45]))return{ext:"dng",mime:"image/x-adobe-dng"};if(a([73,73,42,0,48,61,114,1,28]))return{ext:"nef",mime:"image/x-nikon-nef"};if(a([73,73,42,0])||a([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(a([66,77]))return{ext:"bmp",mime:"image/bmp"};if(a([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(a([56,66,80,83]))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(a([80,75,3,4])){if(a([109,105,109,101,116,121,112,101,97,112,112,108,105,99,97,116,105,111,110,47,101,112,117,98,43,122,105,112],{offset:30}))return{ext:"epub",mime:"application/epub+zip"};if(a(xpiZipFilename,{offset:30}))return{ext:"xpi",mime:"application/x-xpinstall"};if(n("mimetypeapplication/vnd.oasis.opendocument.text",{offset:30}))return{ext:"odt",mime:"application/vnd.oasis.opendocument.text"};if(n("mimetypeapplication/vnd.oasis.opendocument.spreadsheet",{offset:30}))return{ext:"ods",mime:"application/vnd.oasis.opendocument.spreadsheet"};if(n("mimetypeapplication/vnd.oasis.opendocument.presentation",{offset:30}))return{ext:"odp",mime:"application/vnd.oasis.opendocument.presentation"};let i=(l,u=0)=>l.findIndex((c,f,p)=>f>=u&&p[f]===80&&p[f+1]===75&&p[f+2]===3&&p[f+3]===4),r=0,o=!1,s;do{let l=r+30;if(o||(o=a(oxmlContentTypes,{offset:l})||a(oxmlRels,{offset:l})),s||(n("word/",{offset:l})?s={ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"}:n("ppt/",{offset:l})?s={ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"}:n("xl/",{offset:l})&&(s={ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"})),o&&s)return s;r=i(t,l)}while(r>=0);if(s)return s}if(a([80,75])&&(t[2]===3||t[2]===5||t[2]===7)&&(t[3]===4||t[3]===6||t[3]===8))return{ext:"zip",mime:"application/zip"};if(a([48,48,48,48,48,48],{offset:148,mask:[248,248,248,248,248,248]})&&tarHeaderChecksumMatches(t))return{ext:"tar",mime:"application/x-tar"};if(a([82,97,114,33,26,7])&&(t[6]===0||t[6]===1))return{ext:"rar",mime:"application/x-rar-compressed"};if(a([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(a([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(a([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(a([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(a([102,114,101,101],{offset:4})||a([109,100,97,116],{offset:4})||a([109,111,111,118],{offset:4})||a([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(a([102,116,121,112],{offset:4})&&t[8]&96&&t[9]&96&&t[10]&96&&t[11]&96){let i=uint8ArrayUtf8ByteString(t,8,12);switch(i){case"mif1":return{ext:"heic",mime:"image/heif"};case"msf1":return{ext:"heic",mime:"image/heif-sequence"};case"heic":case"heix":return{ext:"heic",mime:"image/heic"};case"hevc":case"hevx":return{ext:"heic",mime:"image/heic-sequence"};case"qt ":return{ext:"mov",mime:"video/quicktime"};case"M4V ":case"M4VH":case"M4VP":return{ext:"m4v",mime:"video/x-m4v"};case"M4P ":return{ext:"m4p",mime:"video/mp4"};case"M4B ":return{ext:"m4b",mime:"audio/mp4"};case"M4A ":return{ext:"m4a",mime:"audio/x-m4a"};case"F4V ":return{ext:"f4v",mime:"video/mp4"};case"F4P ":return{ext:"f4p",mime:"video/mp4"};case"F4A ":return{ext:"f4a",mime:"audio/mp4"};case"F4B ":return{ext:"f4b",mime:"audio/mp4"};default:return i.startsWith("3g")?i.startsWith("3g2")?{ext:"3g2",mime:"video/3gpp2"}:{ext:"3gp",mime:"video/3gpp"}:{ext:"mp4",mime:"video/mp4"}}}if(a([77,84,104,100]))return{ext:"mid",mime:"audio/midi"};if(a([26,69,223,163])){let i=t.subarray(4,4100),r=i.findIndex((o,s,l)=>l[s]===66&&l[s+1]===130);if(r!==-1){let o=r+3,s=l=>[...l].every((u,c)=>i[o+c]===u.charCodeAt(0));if(s("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(s("webm"))return{ext:"webm",mime:"video/webm"}}}if(a([82,73,70,70])){if(a([65,86,73],{offset:8}))return{ext:"avi",mime:"video/vnd.avi"};if(a([87,65,86,69],{offset:8}))return{ext:"wav",mime:"audio/vnd.wave"};if(a([81,76,67,77],{offset:8}))return{ext:"qcp",mime:"audio/qcelp"}}if(a([48,38,178,117,142,102,207,17,166,217])){let i=30;do{let r=readUInt64LE(t,i+16);if(a([145,7,220,183,183,169,207,17,142,230,0,192,12,32,83,101],{offset:i})){if(a([64,158,105,248,77,91,207,17,168,253,0,128,95,92,68,43],{offset:i+24}))return{ext:"wma",mime:"audio/x-ms-wma"};if(a([192,239,25,188,77,91,207,17,168,253,0,128,95,92,68,43],{offset:i+24}))return{ext:"wmv",mime:"video/x-ms-asf"};break}i+=r}while(i+24<=t.length);return{ext:"asf",mime:"application/vnd.ms-asf"}}if(a([0,0,1,186])||a([0,0,1,179]))return{ext:"mpg",mime:"video/mpeg"};for(let i=0;i<2&&inew Promise((resolve,reject)=>{let stream=eval("require")("stream");readableStream.once("readable",()=>{let e=new stream.PassThrough,t=readableStream.read(module.exports.minimumBytes)||readableStream.read();try{e.fileType=fileType(t)}catch(a){reject(a)}readableStream.unshift(t),stream.pipeline?resolve(stream.pipeline(readableStream,e,()=>{})):resolve(readableStream.pipe(e))})})});var TA=O((vV,Uj)=>{Uj.exports={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}});var FA=O((bV,kA)=>{kA.exports=TA()});var RA=O((gV,OA)=>{"use strict";var PA=FA();OA.exports=function(){var e={};return Object.keys(PA).forEach(function(t){var a=PA[t];a.extensions&&a.extensions.length>0&&a.extensions.forEach(function(n){e[n]=t})}),e}});var jA=O((xV,NA)=>{"use strict";var BA=Pd();NA.exports=function(e,t){if(!BA(e))throw new TypeError("Expected a plain object");t=t||{},typeof t=="function"&&(t={compare:t});var a=t.deep,n=[],i=[],r=function(o){var s=n.indexOf(o);if(s!==-1)return i[s];var l={},u=Object.keys(o).sort(t.compare);n.push(o),i.push(l);for(var c=0;c{"use strict";var LA=jA();wf.exports.desc=function(e){return LA(e,function(t,a){return a.length-t.length})};wf.exports.asc=function(e){return LA(e,function(t,a){return t.length-a.length})}});var GA=O((wV,Ef)=>{"use strict";var DA=RA(),zA=MA();Ef.exports=e=>{let t=zA.desc(DA()),a=Object.keys(t).filter(n=>e.endsWith(n));return a.length===0?[]:a.map(n=>({ext:n,mime:t[n]}))};Ef.exports.mime=e=>{let t=zA.desc(DA()),a=Object.keys(t).filter(n=>t[n]===e);return a.length===0?[]:a.map(n=>({ext:n,mime:t[n]}))}});var UA=O((EV,VA)=>{"use strict";var Jj=require("fs"),Br=require("path"),{URL:Zj}=require("url"),qj=oy(),HA=uy(),WA=HE(),Xj=QE(),$j=rS(),Yj=qC(),Kj=yA(),Qj=af(),e9=CA(),t9=_A(),a9=GA(),n9=Qj(Jj),i9=e=>Br.basename(new Zj(e.requestUrl).pathname),r9=e=>{let t=e.headers["content-type"];if(!t)return null;let a=a9.mime(t);return a.length!==1?null:a[0].ext},o9=(e,t)=>{let a=e.headers["content-disposition"];if(a){let i=qj.parse(a);if(i.parameters&&i.parameters.filename)return i.parameters.filename}let n=i9(e);if(!Br.extname(n)){let i=(t9(t)||{}).ext||r9(e);i&&(n=`${n}.${i}`)}return n};VA.exports=(e,t,a)=>{typeof t=="object"&&(a=t,t=null),a=Object.assign({encoding:null,rejectUnauthorized:process.env.npm_config_strict_ssl!=="false"},a);let n=Yj.stream(e,a),i=e9(n,"response").then(r=>{let o=a.encoding===null?"buffer":a.encoding;return Promise.all([$j(n,{encoding:o}),r])}).then(r=>{let[o,s]=r;if(!t)return a.extract&&HA(o)?WA(o,a):o;let l=a.filename||Xj(o9(s,o)),u=Br.join(t,l);return a.extract&&HA(o)?WA(o,Br.dirname(u),a):Kj(Br.dirname(u)).then(()=>n9.writeFile(u,o)).then(()=>o)});return n.then=i.then.bind(i),n.catch=i.catch.bind(i),n}});var r2=O((OV,i2)=>{var KA=Mc(),{join:u9,delimiter:p9,sep:XA,posix:$A}=require("path"),YA=process.platform==="win32",QA=new RegExp(`[${$A.sep}${XA===$A.sep?"":XA}]`.replace(/(\\)/g,"\\$1")),d9=new RegExp(`^\\.${QA.source}`),e2=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),t2=(e,{path:t=process.env.PATH,pathExt:a=process.env.PATHEXT,delimiter:n=p9})=>{let i=e.match(QA)?[""]:[...YA?[process.cwd()]:[],...(t||"").split(n)];if(YA){let r=a||[".EXE",".CMD",".BAT",".COM"].join(n),o=r.split(n).reduce((s,l)=>(s.push(l),s.push(l.toLowerCase()),s),[]);return e.includes(".")&&o[0]!==""&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:r}}return{pathEnv:i,pathExt:[""]}},a2=(e,t)=>{let a=/^".*"$/.test(e)?e.slice(1,-1):e;return(!a&&d9.test(t)?t.slice(0,2):"")+u9(a,t)},n2=async(e,t={})=>{let{pathEnv:a,pathExt:n,pathExtExe:i}=t2(e,t),r=[];for(let o of a){let s=a2(o,e);for(let l of n){let u=s+l;if(await KA(u,{pathExt:i,ignoreErrors:!0})){if(!t.all)return u;r.push(u)}}}if(t.all&&r.length)return r;if(t.nothrow)return null;throw e2(e)},f9=(e,t={})=>{let{pathEnv:a,pathExt:n,pathExtExe:i}=t2(e,t),r=[];for(let o of a){let s=a2(o,e);for(let l of n){let u=s+l;if(KA.sync(u,{pathExt:i,ignoreErrors:!0})){if(!t.all)return u;r.push(u)}}}if(t.all&&r.length)return r;if(t.nothrow)return null;throw e2(e)};i2.exports=n2;n2.sync=f9});var P2=O(ke=>{"use strict";var it=typeof Symbol=="function"&&Symbol.for,zf=it?Symbol.for("react.element"):60103,Gf=it?Symbol.for("react.portal"):60106,ac=it?Symbol.for("react.fragment"):60107,nc=it?Symbol.for("react.strict_mode"):60108,ic=it?Symbol.for("react.profiler"):60114,rc=it?Symbol.for("react.provider"):60109,oc=it?Symbol.for("react.context"):60110,Hf=it?Symbol.for("react.async_mode"):60111,sc=it?Symbol.for("react.concurrent_mode"):60111,lc=it?Symbol.for("react.forward_ref"):60112,cc=it?Symbol.for("react.suspense"):60113,C9=it?Symbol.for("react.suspense_list"):60120,uc=it?Symbol.for("react.memo"):60115,pc=it?Symbol.for("react.lazy"):60116,A9=it?Symbol.for("react.block"):60121,I9=it?Symbol.for("react.fundamental"):60117,_9=it?Symbol.for("react.responder"):60118,T9=it?Symbol.for("react.scope"):60119;function Rt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case zf:switch(e=e.type,e){case Hf:case sc:case ac:case ic:case nc:case cc:return e;default:switch(e=e&&e.$$typeof,e){case oc:case lc:case pc:case uc:case rc:return e;default:return t}}case Gf:return t}}}function F2(e){return Rt(e)===sc}ke.AsyncMode=Hf;ke.ConcurrentMode=sc;ke.ContextConsumer=oc;ke.ContextProvider=rc;ke.Element=zf;ke.ForwardRef=lc;ke.Fragment=ac;ke.Lazy=pc;ke.Memo=uc;ke.Portal=Gf;ke.Profiler=ic;ke.StrictMode=nc;ke.Suspense=cc;ke.isAsyncMode=function(e){return F2(e)||Rt(e)===Hf};ke.isConcurrentMode=F2;ke.isContextConsumer=function(e){return Rt(e)===oc};ke.isContextProvider=function(e){return Rt(e)===rc};ke.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===zf};ke.isForwardRef=function(e){return Rt(e)===lc};ke.isFragment=function(e){return Rt(e)===ac};ke.isLazy=function(e){return Rt(e)===pc};ke.isMemo=function(e){return Rt(e)===uc};ke.isPortal=function(e){return Rt(e)===Gf};ke.isProfiler=function(e){return Rt(e)===ic};ke.isStrictMode=function(e){return Rt(e)===nc};ke.isSuspense=function(e){return Rt(e)===cc};ke.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ac||e===sc||e===ic||e===nc||e===cc||e===C9||typeof e=="object"&&e!==null&&(e.$$typeof===pc||e.$$typeof===uc||e.$$typeof===rc||e.$$typeof===oc||e.$$typeof===lc||e.$$typeof===I9||e.$$typeof===_9||e.$$typeof===T9||e.$$typeof===A9)};ke.typeOf=Rt});var R2=O((kU,O2)=>{"use strict";O2.exports=P2()});var z2=O((FU,D2)=>{"use strict";var Wf=R2(),k9={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},F9={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},P9={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},L2={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Vf={};Vf[Wf.ForwardRef]=P9;Vf[Wf.Memo]=L2;function B2(e){return Wf.isMemo(e)?L2:Vf[e.$$typeof]||k9}var O9=Object.defineProperty,R9=Object.getOwnPropertyNames,N2=Object.getOwnPropertySymbols,B9=Object.getOwnPropertyDescriptor,N9=Object.getPrototypeOf,j2=Object.prototype;function M2(e,t,a){if(typeof t!="string"){if(j2){var n=N9(t);n&&n!==j2&&M2(e,n,a)}var i=R9(t);N2&&(i=i.concat(N2(t)));for(var r=B2(e),o=B2(t),s=0;sBc});module.exports=lT(fD);var En=require("obsidian");var fo=_e(require("node:process"),1),uv=_e(sv(),1);function ou({onlyFirst:e=!1}={}){let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}var ak=ou();function su(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(ak,"")}var po=_e(require("node:process"),1),lv=require("node:os"),nk=()=>{let{env:e}=po.default;if(po.default.platform==="win32")return e.COMSPEC||"cmd.exe";try{let{shell:t}=(0,lv.userInfo)();if(t)return t}catch(t){}return po.default.platform==="darwin"?e.SHELL||"/bin/zsh":e.SHELL||"/bin/sh"},ik=nk(),cv=ik;var rk=["-ilc",'echo -n "_SHELL_ENV_DELIMITER_"; env; echo -n "_SHELL_ENV_DELIMITER_"; exit'],ok={DISABLE_AUTO_UPDATE:"true"},sk=e=>{e=e.split("_SHELL_ENV_DELIMITER_")[1];let t={};for(let a of su(e).split(` -`).filter(n=>!!n)){let[n,...i]=a.split("=");t[n]=i.join("=")}return t};async function pv(e){if(fo.default.platform==="win32")return fo.default.env;try{let{stdout:t}=await(0,uv.default)(e||cv,rk,{env:ok});return sk(t)}catch(t){if(e)throw t;return fo.default.env}}async function dv(){let{PATH:e}=await pv();return e}var Ba=require("obsidian");var Ni,Q,bv,lk,$a,fv,gv,lu,xv,mo={},yv=[],ck=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,bo=Array.isArray;function ma(e,t){for(var a in t)e[a]=t[a];return e}function wv(e){var t=e.parentNode;t&&t.removeChild(e)}function se(e,t,a){var n,i,r,o={};for(r in t)r=="key"?n=t[r]:r=="ref"?i=t[r]:o[r]=t[r];if(arguments.length>2&&(o.children=arguments.length>3?Ni.call(arguments,2):a),typeof e=="function"&&e.defaultProps!=null)for(r in e.defaultProps)o[r]===void 0&&(o[r]=e.defaultProps[r]);return Ri(e,o,n,i,null)}function Ri(e,t,a,n,i){var r={type:e,props:t,key:a,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i==null?++bv:i};return i==null&&Q.vnode!=null&&Q.vnode(r),r}function uu(){return{current:null}}function rt(e){return e.children}function Ct(e,t){this.props=e,this.context=t}function Bi(e,t){if(t==null)return e.__?Bi(e.__,e.__.__k.indexOf(e)+1):null;for(var a;tt&&$a.sort(lu));ho.__r=0}function Sv(e,t,a,n,i,r,o,s,l,u){var c,f,p,b,d,m,h,v=n&&n.__k||yv,x=v.length;for(a.__k=[],c=0;c0?Ri(b.type,b.props,b.key,b.ref?b.ref:null,b.__v):b)!=null){if(b.__=a,b.__b=a.__b+1,(p=v[c])===null||p&&b.key==p.key&&b.type===p.type)v[c]=void 0;else for(f=0;f=0;t--)if((a=e.__k[t])&&(n=Iv(a)))return n}return null}function uk(e,t,a,n,i){var r;for(r in a)r==="children"||r==="key"||r in t||vo(e,r,null,a[r],n);for(r in t)i&&typeof t[r]!="function"||r==="children"||r==="key"||r==="value"||r==="checked"||a[r]===t[r]||vo(e,r,t[r],a[r],n)}function mv(e,t,a){t[0]==="-"?e.setProperty(t,a==null?"":a):e[t]=a==null?"":typeof a!="number"||ck.test(t)?a:a+"px"}function vo(e,t,a,n,i){var r;e:if(t==="style")if(typeof a=="string")e.style.cssText=a;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)a&&t in a||mv(e.style,t,"");if(a)for(t in a)n&&a[t]===n[t]||mv(e.style,t,a[t])}else if(t[0]==="o"&&t[1]==="n")r=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=a,a?n||e.addEventListener(t,r?vv:hv,r):e.removeEventListener(t,r?vv:hv,r);else if(t!=="dangerouslySetInnerHTML"){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t!=="rowSpan"&&t!=="colSpan"&&t in e)try{e[t]=a==null?"":a;break e}catch(o){}typeof a=="function"||(a==null||a===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,a))}}function hv(e){return this.l[e.type+!1](Q.event?Q.event(e):e)}function vv(e){return this.l[e.type+!0](Q.event?Q.event(e):e)}function pu(e,t,a,n,i,r,o,s,l){var u,c,f,p,b,d,m,h,v,x,E,g,w,C,y,S=t.type;if(t.constructor!==void 0)return null;a.__h!=null&&(l=a.__h,s=t.__e=a.__e,t.__h=null,r=[s]),(u=Q.__b)&&u(t);try{e:if(typeof S=="function"){if(h=t.props,v=(u=S.contextType)&&n[u.__c],x=u?v?v.props.value:u.__:n,a.__c?m=(c=t.__c=a.__c).__=c.__E:("prototype"in S&&S.prototype.render?t.__c=c=new S(h,x):(t.__c=c=new Ct(h,x),c.constructor=S,c.render=dk),v&&v.sub(c),c.props=h,c.state||(c.state={}),c.context=x,c.__n=n,f=c.__d=!0,c.__h=[],c._sb=[]),c.__s==null&&(c.__s=c.state),S.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=ma({},c.__s)),ma(c.__s,S.getDerivedStateFromProps(h,c.__s))),p=c.props,b=c.state,c.__v=t,f)S.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(S.getDerivedStateFromProps==null&&h!==p&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(h,x),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(h,c.__s,x)===!1||t.__v===a.__v){for(t.__v!==a.__v&&(c.props=h,c.state=c.__s,c.__d=!1),c.__e=!1,t.__e=a.__e,t.__k=a.__k,t.__k.forEach(function(A){A&&(A.__=t)}),E=0;E2&&(s.children=arguments.length>3?Ni.call(arguments,2):a),Ri(e.type,s,n||e.key,i||e.ref,null)}function _a(e,t){var a={__c:t="__cC"+xv++,__:e,Consumer:function(n,i){return n.children(i)},Provider:function(n){var i,r;return this.getChildContext||(i=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&i.some(function(s){s.__e=!0,cu(s)})},this.sub=function(o){i.push(o);var s=o.componentWillUnmount;o.componentWillUnmount=function(){i.splice(i.indexOf(o),1),s&&s.call(o)}}),n.children}};return a.Provider.__=a.Consumer.contextType=a}Ni=yv.slice,Q={__e:function(e,t,a,n){for(var i,r,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((r=i.constructor)&&r.getDerivedStateFromError!=null&&(i.setState(r.getDerivedStateFromError(e)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,n||{}),o=i.__d),o)return i.__E=i}catch(s){e=s}throw e}},bv=0,lk=function(e){return e!=null&&e.constructor===void 0},Ct.prototype.setState=function(e,t){var a;a=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=ma({},this.state),typeof e=="function"&&(e=e(ma({},a),this.props)),e&&ma(a,e),e!=null&&this.__v&&(t&&this._sb.push(t),cu(this))},Ct.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),cu(this))},Ct.prototype.render=rt,$a=[],gv=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,lu=function(e,t){return e.__v.__b-t.__v.__b},ho.__r=0,xv=0;var Ta,je,fu,Pv,Rn=0,Mv=[],go=[],Ov=Q.__b,Rv=Q.__r,Bv=Q.diffed,Nv=Q.__c,jv=Q.unmount;function Bn(e,t){Q.__h&&Q.__h(je,e,Rn||t),Rn=0;var a=je.__H||(je.__H={__:[],__h:[]});return e>=a.__.length&&a.__.push({__V:go}),a.__[e]}function Re(e){return Rn=1,hu(Hv,e)}function hu(e,t,a){var n=Bn(Ta++,2);if(n.t=e,!n.__c&&(n.__=[a?a(t):Hv(void 0,t),function(s){var l=n.__N?n.__N[0]:n.__[0],u=n.t(l,s);l!==u&&(n.__N=[u,n.__[1]],n.__c.setState({}))}],n.__c=je,!je.u)){var i=function(s,l,u){if(!n.__c.__H)return!0;var c=n.__c.__H.__.filter(function(p){return p.__c});if(c.every(function(p){return!p.__N}))return!r||r.call(this,s,l,u);var f=!1;return c.forEach(function(p){if(p.__N){var b=p.__[0];p.__=p.__N,p.__N=void 0,b!==p.__[0]&&(f=!0)}}),!(!f&&n.__c.props===s)&&(!r||r.call(this,s,l,u))};je.u=!0;var r=je.shouldComponentUpdate,o=je.componentWillUpdate;je.componentWillUpdate=function(s,l,u){if(this.__e){var c=r;r=void 0,i(s,l,u),r=c}o&&o.call(this,s,l,u)},je.shouldComponentUpdate=i}return n.__N||n.__}function ha(e,t){var a=Bn(Ta++,3);!Q.__s&&vu(a.__H,t)&&(a.__=e,a.i=t,je.__H.__h.push(a))}function ka(e,t){var a=Bn(Ta++,4);!Q.__s&&vu(a.__H,t)&&(a.__=e,a.i=t,je.__h.push(a))}function ot(e){return Rn=5,At(function(){return{current:e}},[])}function Dv(e,t,a){Rn=6,ka(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},a==null?a:a.concat(e))}function At(e,t){var a=Bn(Ta++,7);return vu(a.__H,t)?(a.__V=e(),a.i=t,a.__h=e,a.__V):a.__}function Fe(e,t){return Rn=8,At(function(){return e},t)}function Yt(e){var t=je.context[e.__c],a=Bn(Ta++,9);return a.c=e,t?(a.__==null&&(a.__=!0,t.sub(je)),t.props.value):e.__}function zv(e,t){Q.useDebugValue&&Q.useDebugValue(t?t(e):e)}function Gv(){var e=Bn(Ta++,11);if(!e.__){for(var t=je.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var a=t.__m||(t.__m=[0,0]);e.__="P"+a[0]+"-"+a[1]++}return e.__}function fk(){for(var e;e=Mv.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(xo),e.__H.__h.forEach(mu),e.__H.__h=[]}catch(t){e.__H.__h=[],Q.__e(t,e.__v)}}Q.__b=function(e){je=null,Ov&&Ov(e)},Q.__r=function(e){Rv&&Rv(e),Ta=0;var t=(je=e.__c).__H;t&&(fu===je?(t.__h=[],je.__h=[],t.__.forEach(function(a){a.__N&&(a.__=a.__N),a.__V=go,a.__N=a.i=void 0})):(t.__h.forEach(xo),t.__h.forEach(mu),t.__h=[],Ta=0)),fu=je},Q.diffed=function(e){Bv&&Bv(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Mv.push(t)!==1&&Pv===Q.requestAnimationFrame||((Pv=Q.requestAnimationFrame)||mk)(fk)),t.__H.__.forEach(function(a){a.i&&(a.__H=a.i),a.__V!==go&&(a.__=a.__V),a.i=void 0,a.__V=go})),fu=je=null},Q.__c=function(e,t){t.some(function(a){try{a.__h.forEach(xo),a.__h=a.__h.filter(function(n){return!n.__||mu(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Q.__e(n,a.__v)}}),Nv&&Nv(e,t)},Q.unmount=function(e){jv&&jv(e);var t,a=e.__c;a&&a.__H&&(a.__H.__.forEach(function(n){try{xo(n)}catch(i){t=i}}),a.__H=void 0,t&&Q.__e(t,a.__v))};var Lv=typeof requestAnimationFrame=="function";function mk(e){var t,a=function(){clearTimeout(n),Lv&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(a,100);Lv&&(t=requestAnimationFrame(a))}function xo(e){var t=je,a=e.__c;typeof a=="function"&&(e.__c=void 0,a()),je=t}function mu(e){var t=je;e.__c=e.__(),je=t}function vu(e,t){return!e||e.length!==t.length||t.some(function(a,n){return a!==e[n]})}function Hv(e,t){return typeof t=="function"?t(e):t}function Yv(e,t){for(var a in t)e[a]=t[a];return e}function gu(e,t){for(var a in e)if(a!=="__source"&&!(a in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function bu(e,t){return e===t&&(e!==0||1/e==1/t)||e!=e&&t!=t}function xu(e){this.props=e}function hk(e,t){function a(i){var r=this.props.ref,o=r==i.ref;return!o&&r&&(r.call?r(null):r.current=null),t?!t(this.props,i)||!o:gu(this.props,i)}function n(i){return this.shouldComponentUpdate=a,se(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(xu.prototype=new Ct).isPureReactComponent=!0,xu.prototype.shouldComponentUpdate=function(e,t){return gu(this.props,e)||gu(this.state,t)};var Wv=Q.__b;Q.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Wv&&Wv(e)};var vk=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Nn(e){function t(a){var n=Yv({},a);return delete n.ref,e(n,a.ref||null)}return t.$$typeof=vk,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Vv=function(e,t){return e==null?null:$t($t(e).map(t))},bk={map:Vv,forEach:Vv,count:function(e){return e?$t(e).length:0},only:function(e){var t=$t(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:$t},gk=Q.__e;Q.__e=function(e,t,a,n){if(e.then){for(var i,r=t;r=r.__;)if((i=r.__c)&&i.__c)return t.__e==null&&(t.__e=a.__e,t.__k=a.__k),i.__c(e,t)}gk(e,t,a,n)};var Uv=Q.unmount;function Kv(e,t,a){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=Yv({},e)).__c!=null&&(e.__c.__P===a&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Kv(n,t,a)})),e}function Qv(e,t,a){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Qv(n,t,a)}),e.__c&&e.__c.__P===t&&(e.__e&&a.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=a)),e}function yo(){this.__u=0,this.t=null,this.__b=null}function e0(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function xk(e){var t,a,n;function i(r){if(t||(t=e()).then(function(o){a=o.default||o},function(o){n=o}),n)throw n;if(!a)throw t;return se(a,r)}return i.displayName="Lazy",i.__f=!0,i}function ji(){this.u=null,this.o=null}Q.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Uv&&Uv(e)},(yo.prototype=new Ct).__c=function(e,t){var a=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(a);var i=e0(n.__v),r=!1,o=function(){r||(r=!0,a.__R=null,i?i(s):s())};a.__R=o;var s=function(){if(!--n.__u){if(n.state.__a){var u=n.state.__a;n.__v.__k[0]=Qv(u,u.__c.__P,u.__c.__O)}var c;for(n.setState({__a:n.__b=null});c=n.t.pop();)c.forceUpdate()}},l=t.__h===!0;n.__u++||l||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(o,o)},yo.prototype.componentWillUnmount=function(){this.t=[]},yo.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var a=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Kv(this.__b,a,n.__O=n.__P)}this.__b=null}var i=t.__a&&se(rt,null,e.fallback);return i&&(i.__h=null),[se(rt,null,t.__a?null:e.children),i]};var Jv=function(e,t,a){if(++a[1]===a[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(a=e.u;a;){for(;a.length>3;)a.pop()();if(a[1]>>1,1),t.i.removeChild(n)}}),On(se(yk,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function yu(e,t){var a=se(wk,{__v:e,i:t});return a.containerInfo=t,a}(ji.prototype=new Ct).__a=function(e){var t=this,a=e0(t.__v),n=t.o.get(e);return n[0]++,function(i){var r=function(){t.props.revealOrder?(n.push(i),Jv(t,e,n)):i()};a?a(r):r()}},ji.prototype.render=function(e){this.u=null,this.o=new Map;var t=$t(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var a=t.length;a--;)this.o.set(t[a],this.u=[1,0,this.u]);return e.children},ji.prototype.componentDidUpdate=ji.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,a){Jv(e,a,t)})};var t0=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,Ek=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Sk=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Ck=/[A-Z0-9]/g,Ak=typeof document!="undefined",Ik=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function _k(e,t,a){return t.__k==null&&(t.textContent=""),On(e,t),typeof a=="function"&&a(),e?e.__c:null}function Tk(e,t,a){return du(e,t),typeof a=="function"&&a(),e?e.__c:null}Ct.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ct.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Zv=Q.event;function kk(){}function Fk(){return this.cancelBubble}function Pk(){return this.defaultPrevented}Q.event=function(e){return Zv&&(e=Zv(e)),e.persist=kk,e.isPropagationStopped=Fk,e.isDefaultPrevented=Pk,e.nativeEvent=e};var wu,Ok={enumerable:!1,configurable:!0,get:function(){return this.class}},qv=Q.vnode;Q.vnode=function(e){typeof e.type=="string"&&function(t){var a=t.props,n=t.type,i={};for(var r in a){var o=a[r];if(!(r==="value"&&"defaultValue"in a&&o==null||Ak&&r==="children"&&n==="noscript"||r==="class"||r==="className")){var s=r.toLowerCase();r==="defaultValue"&&"value"in a&&a.value==null?r="value":r==="download"&&o===!0?o="":s==="ondoubleclick"?r="ondblclick":s!=="onchange"||n!=="input"&&n!=="textarea"||Ik(a.type)?s==="onfocus"?r="onfocusin":s==="onblur"?r="onfocusout":Sk.test(r)?r=s:n.indexOf("-")===-1&&Ek.test(r)?r=r.replace(Ck,"-$&").toLowerCase():o===null&&(o=void 0):s=r="oninput",s==="oninput"&&i[r=s]&&(r="oninputCapture"),i[r]=o}}n=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=$t(a.children).forEach(function(l){l.props.selected=i.value.indexOf(l.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=$t(a.children).forEach(function(l){l.props.selected=i.multiple?i.defaultValue.indexOf(l.props.value)!=-1:i.defaultValue==l.props.value})),a.class&&!a.className?(i.class=a.class,Object.defineProperty(i,"className",Ok)):(a.className&&!a.class||a.class&&a.className)&&(i.class=i.className=a.className),t.props=i}(e),e.$$typeof=t0,qv&&qv(e)};var Xv=Q.__r;Q.__r=function(e){Xv&&Xv(e),wu=e.__c};var $v=Q.diffed;Q.diffed=function(e){$v&&$v(e);var t=e.props,a=e.__e;a!=null&&e.type==="textarea"&&"value"in t&&t.value!==a.value&&(a.value=t.value==null?"":t.value),wu=null};var Rk={ReactCurrentDispatcher:{current:{readContext:function(e){return wu.__n[e.__c].props.value}}}};function Bk(e){return se.bind(null,e)}function a0(e){return!!e&&e.$$typeof===t0}function Nk(e){return a0(e)?Fv.apply(null,arguments):e}function jk(e){return!!e.__k&&(On(null,e),!0)}function Lk(e){return e&&(e.base||e.nodeType===1&&e)||null}var Mk=function(e,t){return e(t)},Dk=function(e,t){return e(t)},zk=rt;function n0(e){e()}function Gk(e){return e}function Hk(){return[!1,n0]}var wo=ka;function Wk(e,t){var a=t(),n=Re({h:{__:a,v:t}}),i=n[0].h,r=n[1];return ka(function(){i.__=a,i.v=t,bu(i.__,t())||r({h:i})},[e,a,t]),ha(function(){return bu(i.__,i.v())||r({h:i}),e(function(){bu(i.__,i.v())||r({h:i})})},[e]),a}var I={useState:Re,useId:Gv,useReducer:hu,useEffect:ha,useLayoutEffect:ka,useInsertionEffect:wo,useTransition:Hk,useDeferredValue:Gk,useSyncExternalStore:Wk,startTransition:n0,useRef:ot,useImperativeHandle:Dv,useMemo:At,useCallback:Fe,useContext:Yt,useDebugValue:zv,version:"17.0.2",Children:bk,render:_k,hydrate:Tk,unmountComponentAtNode:jk,createPortal:yu,createElement:se,createContext:_a,createFactory:Bk,cloneElement:Nk,createRef:uu,Fragment:rt,isValidElement:a0,findDOMNode:Lk,Component:Ct,PureComponent:xu,memo:hk,forwardRef:Nn,flushSync:Dk,unstable_batchedUpdates:Mk,StrictMode:zk,Suspense:yo,SuspenseList:ji,lazy:xk,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Rk};function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1/0,r;if(e==="Object"){let o=Object.getOwnPropertyNames(t);a&&o.sort(a===!0?void 0:a),o=o.slice(n,i+1),r={entries:o.map(s=>({key:s,value:t[s]}))}}else if(e==="Array")r={entries:t.slice(n,i+1).map((o,s)=>({key:s+n,value:o}))};else{let o=0,s=[],l=!0,u=Uk(t);for(let c of t){if(o>i){l=!1;break}n<=o&&(u&&Array.isArray(c)?typeof c[0]=="string"||typeof c[0]=="number"?s.push({key:c[0],value:c[1]}):s.push({key:`[entry ${o}]`,value:{"[key]":c[0],"[value]":c[1]}}):s.push({key:o,value:c})),o++}r={hasMore:!l,entries:s}}return r}function Su(e,t,a){let n=[];for(;t-e>a*a;)a=a*a;for(let i=e;i<=t;i+=a)n.push({from:i,to:Math.min(t,i+a-1)});return n}function Cu(e,t,a,n){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,r=arguments.length>5&&arguments[5]!==void 0?arguments[5]:1/0,o=Jk.bind(null,e,t,a);if(!n)return o().entries;let s=r<1/0,l=Math.min(r-i,Vk(e,t));if(e!=="Iterable"){if(l<=n||n<7)return o(i,r).entries}else if(l<=n&&!s)return o(i,r).entries;let u;if(e==="Iterable"){let{hasMore:c,entries:f}=o(i,i+n-1);u=c?[...f,...Su(i+n,i+2*n-1,n)]:f}else u=s?Su(i,r,n):[...o(0,n-5).entries,...Su(n-4,l-5,n),...o(l-4,l-1).entries];return u}function Au(e){let{styling:t,from:a,to:n,renderChildNodes:i,nodeType:r}=e,[o,s]=Re(!1),l=Fe(()=>{s(!o)},[o]);return o?I.createElement("div",t("itemRange",o),i(e,a,n)):I.createElement("div",W({},t("itemRange",o),{onClick:l}),I.createElement(Mi,{nodeType:r,styling:t,expanded:!1,onClick:l,arrowStyle:"double"}),`${a} ... ${n}`)}function Zk(e){return e.to!==void 0}function i0(e,t,a){let{nodeType:n,data:i,collectionLimit:r,circularCache:o,keyPath:s,postprocessValue:l,sortObjectKeys:u}=e,c=[];return Cu(n,i,u,r,t,a).forEach(f=>{if(Zk(f))c.push(I.createElement(Au,W({},e,{key:`ItemRange--${f.from}-${f.to}`,from:f.from,to:f.to,renderChildNodes:i0})));else{let{key:p,value:b}=f,d=o.indexOf(b)!==-1;c.push(I.createElement(Di,W({},e,{postprocessValue:l,collectionLimit:r,key:`Node--${p}`,keyPath:[p,...s],value:l(b),circularCache:[...o,b],isCircular:d,hideRoot:!1})))}}),c}function Ya(e){let{circularCache:t=[],collectionLimit:a,createItemString:n,data:i,expandable:r,getItemString:o,hideRoot:s,isCircular:l,keyPath:u,labelRenderer:c,level:f=0,nodeType:p,nodeTypeIndicator:b,shouldExpandNodeInitially:d,styling:m}=e,[h,v]=Re(l?!1:d(u,i,f)),x=Fe(()=>{r&&v(!h)},[r,h]),E=h||s&&f===0?i0({...e,circularCache:t,level:f+1}):null,g=I.createElement("span",m("nestedNodeItemType",h),b),w=o(p,i,g,n(i,a),u),C=[u,p,h,r];return s?I.createElement("li",m("rootNode",...C),I.createElement("ul",m("rootNodeChildren",...C),E)):I.createElement("li",m("nestedNode",...C),r&&I.createElement(Mi,{styling:m,nodeType:p,expanded:h,onClick:x}),I.createElement("label",W({},m(["label","nestedNodeLabel"],...C),{onClick:x}),c(...C)),I.createElement("span",W({},m("nestedNodeItemString",...C),{onClick:x}),w),I.createElement("ul",m("nestedNodeChildren",...C),E))}function qk(e){let t=Object.getOwnPropertyNames(e).length;return`${t} ${t!==1?"keys":"key"}`}function Iu(e){let{data:t,...a}=e;return I.createElement(Ya,W({},a,{data:t,nodeType:"Object",nodeTypeIndicator:a.nodeType==="Error"?"Error()":"{}",createItemString:qk,expandable:Object.getOwnPropertyNames(t).length>0}))}function Xk(e){return`${e.length} ${e.length!==1?"items":"item"}`}function _u(e){let{data:t,...a}=e;return I.createElement(Ya,W({},a,{data:t,nodeType:"Array",nodeTypeIndicator:"[]",createItemString:Xk,expandable:t.length>0}))}function $k(e,t){let a=0,n=!1;if(Number.isSafeInteger(e.size))a=e.size;else for(let i of e){if(t&&a+1>t){n=!0;break}a+=1}return`${n?">":""}${a} ${a!==1?"entries":"entry"}`}function Tu(e){return I.createElement(Ya,W({},e,{nodeType:"Iterable",nodeTypeIndicator:"()",createItemString:$k,expandable:!0}))}function Ut(e){let{nodeType:t,styling:a,labelRenderer:n,keyPath:i,valueRenderer:r,value:o,valueGetter:s=l=>l}=e;return I.createElement("li",a("value",t,i),I.createElement("label",a(["label","valueLabel"],t,i),n(i,t,!1,!1)),I.createElement("span",a("valueText",t,i),r(s(o),o,...i)))}function Di(e){let{getItemString:t,keyPath:a,labelRenderer:n,styling:i,value:r,valueRenderer:o,isCustomNode:s,...l}=e,u=s(r)?"Custom":Eu(r),c={getItemString:t,key:a[0],keyPath:a,labelRenderer:n,nodeType:u,styling:i,value:r,valueRenderer:o},f={...l,...c,data:r,isCustomNode:s};switch(u){case"Object":case"Error":case"WeakMap":case"WeakSet":return I.createElement(Iu,f);case"Array":return I.createElement(_u,f);case"Iterable":case"Map":case"Set":return I.createElement(Tu,f);case"String":return I.createElement(Ut,W({},c,{valueGetter:p=>`"${p}"`}));case"Number":return I.createElement(Ut,c);case"Boolean":return I.createElement(Ut,W({},c,{valueGetter:p=>p?"true":"false"}));case"Date":return I.createElement(Ut,W({},c,{valueGetter:p=>p.toISOString()}));case"Null":return I.createElement(Ut,W({},c,{valueGetter:()=>"null"}));case"Undefined":return I.createElement(Ut,W({},c,{valueGetter:()=>"undefined"}));case"Function":case"Symbol":return I.createElement(Ut,W({},c,{valueGetter:p=>p.toString()}));case"Custom":return I.createElement(Ut,c);default:return I.createElement(Ut,W({},c,{valueGetter:()=>`<${u}>`}))}}function ft(e){"@babel/helpers - typeof";return ft=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ft(e)}function ku(e,t){if(ft(e)!=="object"||e===null)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t||"default");if(ft(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zi(e){var t=ku(e,"string");return ft(t)==="symbol"?t:String(t)}function jt(e,t,a){return t=zi(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function Fu(e){if(Array.isArray(e))return e}function Pu(e,t){var a=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var n,i,r,o,s=[],l=!0,u=!1;try{if(r=(a=a.call(e)).next,t===0){if(Object(a)!==a)return;l=!1}else for(;!(l=(n=r.call(a)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&a.return!=null&&(o=a.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function jn(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a1?o-1:0),l=1;l1?o-1:0),l=1;l1?o-1:0),l=1;l1?o-1:0),l=1;l1?o-1:0),l=1;l2?n-2:0),r=2;r1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=t.defaultBase16,i=n===void 0?vg:n,r=t.base16Themes,o=r===void 0?null:r,s=iP(a,o);s&&(a=It(It({},s),a));for(var l=hg.reduce(function(m,h){return m[h]=a[h]||i[h],m},{}),u=Object.keys(a).reduce(function(m,h){return hg.indexOf(h)===-1&&(m[h]=a[h]),m},{}),c=e(l),f=aP(u,c),p=arguments.length,b=new Array(p>3?p-3:0),d=3;d({BACKGROUND_COLOR:e.base00,TEXT_COLOR:e.base07,STRING_COLOR:e.base0B,DATE_COLOR:e.base0B,NUMBER_COLOR:e.base09,BOOLEAN_COLOR:e.base09,NULL_COLOR:e.base08,UNDEFINED_COLOR:e.base08,FUNCTION_COLOR:e.base08,SYMBOL_COLOR:e.base08,LABEL_COLOR:e.base0D,ARROW_COLOR:e.base0D,ITEM_STRING_COLOR:e.base0B,ITEM_STRING_EXPANDED_COLOR:e.base03}),oP=e=>({String:e.STRING_COLOR,Date:e.DATE_COLOR,Number:e.NUMBER_COLOR,Boolean:e.BOOLEAN_COLOR,Null:e.NULL_COLOR,Undefined:e.UNDEFINED_COLOR,Function:e.FUNCTION_COLOR,Symbol:e.SYMBOL_COLOR}),sP=e=>{let t=rP(e);return{tree:{border:0,padding:0,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"0.125em",marginRight:0,listStyle:"none",MozUserSelect:"none",WebkitUserSelect:"none",backgroundColor:t.BACKGROUND_COLOR},value:(a,n,i)=>{let{style:r}=a;return{style:{...r,paddingTop:"0.25em",paddingRight:0,marginLeft:"0.875em",WebkitUserSelect:"text",MozUserSelect:"text",wordWrap:"break-word",paddingLeft:i.length>1?"2.125em":"1.25em",textIndent:"-0.5em",wordBreak:"break-all"}}},label:{display:"inline-block",color:t.LABEL_COLOR},valueLabel:{margin:"0 0.5em 0 0"},valueText:(a,n)=>{let{style:i}=a;return{style:{...i,color:oP(t)[n]}}},itemRange:(a,n)=>({style:{paddingTop:n?0:"0.25em",cursor:"pointer",color:t.LABEL_COLOR}}),arrow:(a,n,i)=>{let{style:r}=a;return{style:{...r,marginLeft:0,transition:"150ms",WebkitTransition:"150ms",MozTransition:"150ms",WebkitTransform:i?"rotateZ(90deg)":"rotateZ(0deg)",MozTransform:i?"rotateZ(90deg)":"rotateZ(0deg)",transform:i?"rotateZ(90deg)":"rotateZ(0deg)",transformOrigin:"45% 50%",WebkitTransformOrigin:"45% 50%",MozTransformOrigin:"45% 50%",position:"relative",lineHeight:"1.1em",fontSize:"0.75em"}}},arrowContainer:(a,n)=>{let{style:i}=a;return{style:{...i,display:"inline-block",paddingRight:"0.5em",paddingLeft:n==="double"?"1em":0,cursor:"pointer"}}},arrowSign:{color:t.ARROW_COLOR},arrowSignInner:{position:"absolute",top:0,left:"-0.4em"},nestedNode:(a,n,i,r,o)=>{let{style:s}=a;return{style:{...s,position:"relative",paddingTop:"0.25em",marginLeft:n.length>1?"0.875em":0,paddingLeft:o?0:"1.125em"}}},rootNode:{padding:0,margin:0},nestedNodeLabel:(a,n,i,r,o)=>{let{style:s}=a;return{style:{...s,margin:0,padding:0,WebkitUserSelect:o?"inherit":"text",MozUserSelect:o?"inherit":"text",cursor:o?"pointer":"default"}}},nestedNodeItemString:(a,n,i,r)=>{let{style:o}=a;return{style:{...o,paddingLeft:"0.5em",cursor:"default",color:r?t.ITEM_STRING_EXPANDED_COLOR:t.ITEM_STRING_COLOR}}},nestedNodeItemType:{marginLeft:"0.3em",marginRight:"0.3em"},nestedNodeChildren:(a,n,i)=>{let{style:r}=a;return{style:{...r,padding:0,margin:0,listStyle:"none",display:i?"block":"none"}}},rootNodeChildren:{padding:0,margin:0,listStyle:"none"}}},lP=bg(sP,{defaultBase16:yg}),wg=lP;var Eg=e=>e,cP=(e,t,a)=>a===0,uP=(e,t,a,n)=>I.createElement("span",null,a," ",n),pP=e=>{let[t]=e;return I.createElement("span",null,t,":")},dP=()=>!1;function Sg(e){let{data:t,theme:a,invertTheme:n,keyPath:i=["root"],labelRenderer:r=pP,valueRenderer:o=Eg,shouldExpandNodeInitially:s=cP,hideRoot:l=!1,getItemString:u=uP,postprocessValue:c=Eg,isCustomNode:f=dP,collectionLimit:p=50,sortObjectKeys:b=!1}=e,d=At(()=>wg(n?xg(a):a),[a,n]);return I.createElement("ul",d("tree"),I.createElement(Di,{keyPath:l?[]:i,value:c(t),isCustomNode:f,styling:d,labelRenderer:r,valueRenderer:o,shouldExpandNodeInitially:s,hideRoot:l,getItemString:u,postprocessValue:c,collectionLimit:p,sortObjectKeys:b}))}var Ra=require("fs"),Be=require("obsidian"),Jt=_e(require("path"));var px=require("node:buffer"),dx=_e(require("node:path"),1),xs=_e(require("node:child_process"),1),Ki=_e(require("node:process"),1),fx=_e(qc(),1);function Ju(e){let t=typeof e=="string"?` -`:` -`.charCodeAt(),a=typeof e=="string"?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===a&&(e=e.slice(0,-1)),e}var Xi=_e(require("node:process"),1),Gn=_e(require("node:path"),1),Cg=_e(require("node:url"),1);function ds(e={}){let{env:t=process.env,platform:a=process.platform}=e;return a!=="win32"?"PATH":Object.keys(t).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"}function fP(e={}){let{cwd:t=Xi.default.cwd(),path:a=Xi.default.env[ds()],execPath:n=Xi.default.execPath}=e,i,r=t instanceof URL?Cg.default.fileURLToPath(t):t,o=Gn.default.resolve(r),s=[];for(;i!==o;)s.push(Gn.default.join(o,"node_modules/.bin")),i=o,o=Gn.default.resolve(o,"..");return s.push(Gn.default.resolve(r,n,"..")),[...s,a].join(Gn.default.delimiter)}function Ag({env:e=Xi.default.env,...t}={}){e={...e};let a=ds({env:e});return t.path=e[a],e[a]=fP(t),e}var mP=(e,t,a,n)=>{if(a==="length"||a==="prototype"||a==="arguments"||a==="caller")return;let i=Object.getOwnPropertyDescriptor(e,a),r=Object.getOwnPropertyDescriptor(t,a);!hP(i,r)&&n||Object.defineProperty(e,a,r)},hP=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},vP=(e,t)=>{let a=Object.getPrototypeOf(t);a!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,a)},bP=(e,t)=>`/* Wrapped ${e}*/ -${t}`,gP=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),xP=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),yP=(e,t,a)=>{let n=a===""?"":`with ${a.trim()}() `,i=bP.bind(null,n,t.toString());Object.defineProperty(i,"name",xP),Object.defineProperty(e,"toString",{...gP,value:i})};function Zu(e,t,{ignoreNonConfigurable:a=!1}={}){let{name:n}=e;for(let i of Reflect.ownKeys(t))mP(e,t,i,a);return vP(e,t),yP(e,t,n),e}var fs=new WeakMap,Ig=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let a,n=0,i=e.displayName||e.name||"",r=function(...o){if(fs.set(r,++n),n===1)a=e.apply(this,o),e=null;else if(t.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return a};return Zu(r,e),fs.set(r,n),r};Ig.callCount=e=>{if(!fs.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return fs.get(e)};var _g=Ig;var Rg=require("node:os");var Tg=()=>{let e=Fg-kg+1;return Array.from({length:e},wP)},wP=(e,t)=>({name:`SIGRT${t+1}`,number:kg+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),kg=34,Fg=64;var Og=require("node:os");var Pg=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];var qu=()=>{let e=Tg();return[...Pg,...e].map(EP)},EP=({name:e,number:t,description:a,action:n,forced:i=!1,standard:r})=>{let{signals:{[e]:o}}=Og.constants,s=o!==void 0;return{name:e,number:s?o:t,description:a,supported:s,action:n,forced:i,standard:r}};var SP=()=>{let e=qu();return Object.fromEntries(e.map(CP))},CP=({name:e,number:t,description:a,supported:n,action:i,forced:r,standard:o})=>[e,{name:e,number:t,description:a,supported:n,action:i,forced:r,standard:o}],Bg=SP(),AP=()=>{let e=qu(),t=64+1,a=Array.from({length:t},(n,i)=>IP(i,e));return Object.assign({},...a)},IP=(e,t)=>{let a=_P(e,t);if(a===void 0)return{};let{name:n,description:i,supported:r,action:o,forced:s,standard:l}=a;return{[e]:{name:n,number:e,description:i,supported:r,action:o,forced:s,standard:l}}},_P=(e,t)=>{let a=t.find(({name:n})=>Rg.constants.signals[n]===e);return a!==void 0?a:t.find(n=>n.number===e)},rz=AP();var TP=({timedOut:e,timeout:t,errorCode:a,signal:n,signalDescription:i,exitCode:r,isCanceled:o})=>e?`timed out after ${t} milliseconds`:o?"was canceled":a!==void 0?`failed with ${a}`:n!==void 0?`was killed with ${n} (${i})`:r!==void 0?`failed with exit code ${r}`:"failed",$i=({stdout:e,stderr:t,all:a,error:n,signal:i,exitCode:r,command:o,escapedCommand:s,timedOut:l,isCanceled:u,killed:c,parsed:{options:{timeout:f}}})=>{r=r===null?void 0:r,i=i===null?void 0:i;let p=i===void 0?void 0:Bg[i].description,b=n&&n.code,m=`Command ${TP({timedOut:l,timeout:f,errorCode:b,signal:i,signalDescription:p,exitCode:r,isCanceled:u})}: ${o}`,h=Object.prototype.toString.call(n)==="[object Error]",v=h?`${m} -${n.message}`:m,x=[v,t,e].filter(Boolean).join(` -`);return h?(n.originalMessage=n.message,n.message=x):n=new Error(x),n.shortMessage=v,n.command=o,n.escapedCommand=s,n.exitCode=r,n.signal=i,n.signalDescription=p,n.stdout=e,n.stderr=t,a!==void 0&&(n.all=a),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=u,n.killed=c&&!l,n};var ms=["stdin","stdout","stderr"],kP=e=>ms.some(t=>e[t]!==void 0),Ng=e=>{if(!e)return;let{stdio:t}=e;if(t===void 0)return ms.map(n=>e[n]);if(kP(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${ms.map(n=>`\`${n}\``).join(", ")}`);if(typeof t=="string")return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let a=Math.max(t.length,ms.length);return Array.from({length:a},(n,i)=>t[i])};var jg=_e(require("node:os"),1),Lg=_e(eu(),1),FP=1e3*5,Mg=(e,t="SIGTERM",a={})=>{let n=e(t);return PP(e,t,a,n),n},PP=(e,t,a,n)=>{if(!OP(t,a,n))return;let i=BP(a),r=setTimeout(()=>{e("SIGKILL")},i);r.unref&&r.unref()},OP=(e,{forceKillAfterTimeout:t},a)=>RP(e)&&t!==!1&&a,RP=e=>e===jg.default.constants.signals.SIGTERM||typeof e=="string"&&e.toUpperCase()==="SIGTERM",BP=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return FP;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},Dg=(e,t)=>{e.kill()&&(t.isCanceled=!0)},NP=(e,t,a)=>{e.kill(t),a(Object.assign(new Error("Timed out"),{timedOut:!0,signal:t}))},zg=(e,{timeout:t,killSignal:a="SIGTERM"},n)=>{if(t===0||t===void 0)return n;let i,r=new Promise((s,l)=>{i=setTimeout(()=>{NP(e,a,l)},t)}),o=n.finally(()=>{clearTimeout(i)});return Promise.race([r,o])},Gg=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},Hg=async(e,{cleanup:t,detached:a},n)=>{if(!t||a)return n;let i=(0,Lg.default)(()=>{e.kill()});return n.finally(()=>{i()})};var Wg=require("node:fs"),Vg=require("node:child_process");function hs(e){return e!==null&&typeof e=="object"&&typeof e.pipe=="function"}function Xu(e){return hs(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object"}var jP=e=>e instanceof Vg.ChildProcess&&typeof e.then=="function",$u=(e,t,a)=>{if(typeof a=="string")return e[t].pipe((0,Wg.createWriteStream)(a)),e;if(Xu(a))return e[t].pipe(a),e;if(!jP(a))throw new TypeError("The second argument must be a string, a stream or an Execa child process.");if(!Xu(a.stdin))throw new TypeError("The target child process's stdin must be available.");return e[t].pipe(a.stdin),a},Ug=e=>{e.stdout!==null&&(e.pipeStdout=$u.bind(void 0,e,"stdout")),e.stderr!==null&&(e.pipeStderr=$u.bind(void 0,e,"stderr")),e.all!==void 0&&(e.pipeAll=$u.bind(void 0,e,"all"))};var bs=require("node:fs");var ep=_e(qg(),1),Xg=_e(au(),1),$g=e=>{if(e!==void 0)throw new TypeError("The `input` and `inputFile` options cannot be both set.")},WP=({input:e,inputFile:t})=>typeof t!="string"?e:($g(e),(0,bs.readFileSync)(t)),Yg=e=>{let t=WP(e);if(hs(t))throw new TypeError("The `input` option cannot be a stream in sync mode");return t},VP=({input:e,inputFile:t})=>typeof t!="string"?e:($g(e),(0,bs.createReadStream)(t)),Kg=(e,t)=>{let a=VP(t);a!==void 0&&(hs(a)?a.pipe(e.stdin):e.stdin.end(a))},Qg=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let a=(0,Xg.default)();return e.stdout&&a.add(e.stdout),e.stderr&&a.add(e.stderr),a},Ku=async(e,t)=>{if(!(!e||t===void 0)){e.destroy();try{return await t}catch(a){return a.bufferedData}}},Qu=(e,{encoding:t,buffer:a,maxBuffer:n})=>{if(!(!e||!a))return t?(0,ep.default)(e,{encoding:t,maxBuffer:n}):ep.default.buffer(e,{maxBuffer:n})},ex=async({stdout:e,stderr:t,all:a},{encoding:n,buffer:i,maxBuffer:r},o)=>{let s=Qu(e,{encoding:n,buffer:i,maxBuffer:r}),l=Qu(t,{encoding:n,buffer:i,maxBuffer:r}),u=Qu(a,{encoding:n,buffer:i,maxBuffer:r*2});try{return await Promise.all([o,s,l,u])}catch(c){return Promise.all([{error:c,signal:c.signal,timedOut:c.timedOut},Ku(e,s),Ku(t,l),Ku(a,u)])}};var UP=(async()=>{})().constructor.prototype,JP=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(UP,e)]),tp=(e,t)=>{for(let[a,n]of JP){let i=typeof t=="function"?(...r)=>Reflect.apply(n.value,t(),r):n.value.bind(t);Reflect.defineProperty(e,a,{...n,value:i})}},tx=e=>new Promise((t,a)=>{e.on("exit",(n,i)=>{t({exitCode:n,signal:i})}),e.on("error",n=>{a(n)}),e.stdin&&e.stdin.on("error",n=>{a(n)})});var ix=require("node:buffer"),rx=require("node:child_process"),ox=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],ZP=/^[\w.-]+$/,qP=/"/g,XP=e=>typeof e!="string"||ZP.test(e)?e:`"${e.replace(qP,'\\"')}"`,ap=(e,t)=>ox(e,t).join(" "),np=(e,t)=>ox(e,t).map(a=>XP(a)).join(" "),$P=/ +/g;var ax=e=>{let t=typeof e;if(t==="string")return e;if(t==="number")return String(e);if(t==="object"&&e!==null&&!(e instanceof rx.ChildProcess)&&"stdout"in e){let a=typeof e.stdout;if(a==="string")return e.stdout;if(ix.Buffer.isBuffer(e.stdout))return e.stdout.toString();throw new TypeError(`Unexpected "${a}" stdout in template expression`)}throw new TypeError(`Unexpected "${t}" in template expression`)},nx=(e,t,a)=>a||e.length===0||t.length===0?[...e,...t]:[...e.slice(0,-1),`${e[e.length-1]}${t[0]}`,...t.slice(1)],YP=({templates:e,expressions:t,tokens:a,index:n,template:i})=>{let r=i!=null?i:e.raw[n],o=r.split($P).filter(Boolean),s=nx(a,o,r.startsWith(" "));if(n===t.length)return s;let l=t[n],u=Array.isArray(l)?l.map(c=>ax(c)):[ax(l)];return nx(s,u,r.endsWith(" "))},ip=(e,t)=>{let a=[];for(let[n,i]of e.entries())a=YP({templates:e,expressions:t,tokens:a,index:n,template:i});return a};var sx=require("node:util"),lx=_e(require("node:process"),1),cx=(0,sx.debuglog)("execa").enabled,gs=(e,t)=>String(e).padStart(t,"0"),KP=()=>{let e=new Date;return`${gs(e.getHours(),2)}:${gs(e.getMinutes(),2)}:${gs(e.getSeconds(),2)}.${gs(e.getMilliseconds(),3)}`},rp=(e,{verbose:t})=>{t&&lx.default.stderr.write(`[${KP()}] ${e} -`)};var QP=1e3*1e3*100,eO=({env:e,extendEnv:t,preferLocal:a,localDir:n,execPath:i})=>{let r=t?{...Ki.default.env,...e}:e;return a?Ag({env:r,cwd:n,execPath:i}):r},mx=(e,t,a={})=>{let n=fx.default._parse(e,t,a);return e=n.command,t=n.args,a=n.options,a={maxBuffer:QP,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:a.cwd||Ki.default.cwd(),execPath:Ki.default.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:cx,...a},a.env=eO(a),a.stdio=Ng(a),Ki.default.platform==="win32"&&dx.default.basename(e,".exe")==="cmd"&&t.unshift("/q"),{file:e,args:t,options:a,parsed:n}},Qi=(e,t,a)=>typeof t!="string"&&!px.Buffer.isBuffer(t)?a===void 0?void 0:"":e.stripFinalNewline?Ju(t):t;function er(e,t,a){let n=mx(e,t,a),i=ap(e,t),r=np(e,t);rp(r,n.options),Gg(n.options);let o;try{o=xs.default.spawn(n.file,n.args,n.options)}catch(b){let d=new xs.default.ChildProcess,m=Promise.reject($i({error:b,stdout:"",stderr:"",all:"",command:i,escapedCommand:r,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return tp(d,m),d}let s=tx(o),l=zg(o,n.options,s),u=Hg(o,n.options,l),c={isCanceled:!1};o.kill=Mg.bind(null,o.kill.bind(o)),o.cancel=Dg.bind(null,o,c);let p=_g(async()=>{let[{error:b,exitCode:d,signal:m,timedOut:h},v,x,E]=await ex(o,n.options,u),g=Qi(n.options,v),w=Qi(n.options,x),C=Qi(n.options,E);if(b||d!==0||m!==null){let y=$i({error:b,exitCode:d,signal:m,stdout:g,stderr:w,all:C,command:i,escapedCommand:r,parsed:n,timedOut:h,isCanceled:c.isCanceled||(n.options.signal?n.options.signal.aborted:!1),killed:o.killed});if(!n.options.reject)return y;throw y}return{command:i,escapedCommand:r,exitCode:0,stdout:g,stderr:w,all:C,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return Kg(o,n.options),o.all=Qg(o,n.options),Ug(o),tp(o,p),o}function tO(e,t,a){let n=mx(e,t,a),i=ap(e,t),r=np(e,t);rp(r,n.options);let o=Yg(n.options),s;try{s=xs.default.spawnSync(n.file,n.args,{...n.options,input:o})}catch(c){throw $i({error:c,stdout:"",stderr:"",all:"",command:i,escapedCommand:r,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let l=Qi(n.options,s.stdout,s.error),u=Qi(n.options,s.stderr,s.error);if(s.error||s.status!==0||s.signal!==null){let c=$i({stdout:l,stderr:u,error:s.error,signal:s.signal,exitCode:s.status,command:i,escapedCommand:r,parsed:n,timedOut:s.error&&s.error.code==="ETIMEDOUT",isCanceled:!1,killed:s.signal!==null});if(!n.options.reject)return c;throw c}return{command:i,escapedCommand:r,exitCode:0,stdout:l,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}var aO=({input:e,inputFile:t,stdio:a})=>e===void 0&&t===void 0&&a===void 0?{stdin:"inherit"}:{},ux=(e={})=>({preferLocal:!0,...aO(e),...e});function hx(e){function t(a,...n){if(!Array.isArray(a))return hx({...e,...a});let[i,...r]=ip(a,n);return er(i,r,ux(e))}return t.sync=(a,...n)=>{if(!Array.isArray(a))throw new TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[i,...r]=ip(a,n);return tO(i,r,ux(e))},t}var Bz=hx();var lt=_e(require("fs")),op=require("obsidian"),tn=_e(require("os")),Lt=_e(require("path"));function sp(){return require("electron").remote.BrowserWindow.getFocusedWindow()}function lp(e){return e<10?`0${e}`:e.toString()}function an(){return app.vault.adapter.getBasePath()}function _t(){return Lt.default.join(an(),"./.obsidian/plugins/obsidian-zotero-desktop-connector/")}function nn(){return tn.default.platform()==="win32"?"pdfannots2json.exe":`pdfannots2json-${tn.default.platform()}-${tn.default.arch()}`}function vx(){tn.default.platform()!=="win32"&<.default.renameSync(Lt.default.join(_t(),cp()),Lt.default.join(_t(),nn()))}function cp(){return tn.default.platform()==="win32"?"pdfannots2json.exe":"pdfannots2json"}function bx(){return tn.default.platform()==="win32"?"pdf-annots2json.exe":"pdf-annots2json"}function Hn(e){return e?lt.default.existsSync(e):lt.default.existsSync(Lt.default.join(_t(),nn()))}function gx(e){return e?lt.default.existsSync(e):lt.default.existsSync(Lt.default.join(_t(),cp()))}function xx(){return lt.default.existsSync(Lt.default.join(_t(),bx()))}function yx(){lt.default.rmSync(Lt.default.join(_t(),nn()))}function wx(){lt.default.rmSync(Lt.default.join(_t(),cp()))}function Ex(){lt.default.rmSync(Lt.default.join(_t(),bx()))}async function Sx(e){try{let t=await er(e||Lt.default.join(_t(),nn()),["-v"]);if(t.stderr&&!t.stderr.includes("warning"))throw new op.Notice(`Error checking PDF utility version: ${t.stderr}`,1e4),new Error(t.stderr);return t.stdout.trim()}catch(t){throw console.error(t),new op.Notice(`Error checking PDF utility version: ${t.message}`,1e4),t}}function nO(e=0){return e|lt.default.constants.S_IXUSR|lt.default.constants.S_IXGRP|lt.default.constants.S_IXOTH}function iO(e){if(console.error("Error: pdfannots2json not executable",e),e.code==="ENOENT")return!1}function Cx(e){let t=e||Lt.default.join(_t(),nn());try{return lt.default.accessSync(t,lt.default.constants.X_OK),!0}catch(a){}try{let a=lt.default.statSync(t);return lt.default.chmodSync(t,nO(a.mode)),!0}catch(a){return iO(a)}}var Tx=require("obsidian");var Wn=_e(Ax()),ys=require("obsidian");Wn.default.runtime.memberLookup=function(t,a){if(t!=null)return a=="__proto__"||a=="constructor"?function(){return function(){}}:typeof t[a]=="function"?(...n)=>t[a].apply(t,n):t[a]};function rO(e){return e?e.split("."):[]}function oO(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function sO(e){let t=rO(e);return function(n){let i=n;for(let r=0;r{let o=typeof r=="string"?r:i(r);return o?typeof n[0]=="string"&&["startswith","endswith","contains"].includes(a)?(o=o.toString().toLocaleLowerCase(),n.some(s=>{let l=s.toLocaleLowerCase();return a==="startswith"?o.startsWith(l):a==="endswith"?o.endsWith(l):a==="contains"?o.includes(l):!0})):["dateafter","dateonorafter","datebefore","dateonorbefore"].includes(a)?n.some(s=>{if(!ys.moment.isMoment(o)||!ys.moment.isMoment(s))return!1;switch(a){case"dateafter":return o.isAfter(s);case"dateonorafter":return o.isSameOrAfter(s);case"datebefore":return o.isBefore(s);case"dateonorbefore":return o.isSameOrBefore(s)}}):!1:!1})}function cO(e,t){return e instanceof ys.moment?e.format(t):"Error: `format` can only be applied to dates. Tried for format "+typeof e}var Kt=class{constructor(){this.tags=["persist"]}parse(t,a){let n=t.nextToken(),i=t.parseSignature(null,!0);t.advanceAfterBlockEnd(n.value);let r=t.parseUntilBlocks("endpersist");return t.advanceAfterBlockEnd(),new a.CallExtension(this,"run",i,[r])}run(t,a,n){var o;let i="";(o=t==null?void 0:t.ctx)!=null&&o._retained&&t.ctx._retained[a]&&(i=t.ctx._retained[a]);let r=n();return i&&(r=r.trimStart()),new Wn.default.runtime.SafeString(`%% begin ${a} %%${i}${r}%% end ${a} %%`)}static hasPersist(t){return/%% begin (.+?) %%([\w\W]*?)%% end \1 %%/gi.test(t)}static prepareTemplateData(t,a){let n={};if(!a)return t;let i=a.matchAll(/%% begin (.+?) %%([\w\W]*?)%% end \1 %%/gi);for(let r of i)n[r[1]]=r[2];return{...t,_retained:n}}};Kt.id="PersistExtension";var pp=class extends Wn.Loader{constructor(){super(...arguments);this.async=!0}setSourceFile(a){this.sourceFile=a}getLinkPath(a){let n=a.trim().match(/^\[\[([^\]]+)\]\]$/);return n||(n=a.trim().match(/^\[[^\]]*\]\(([^)]+)\)$/),n)?n[1]:null}getSource(a,n){let i=this.getLinkPath(a);if(!i)return n(new Error("Cannot find file. Invalid markdown link: "+a),null);let r=app.metadataCache.getFirstLinkpathDest(i,this.sourceFile||"");if(!r)return n(new Error("Cannot find file. File not found: "+a),null);app.vault.cachedRead(r).then(o=>{let s={src:o,path:i,noCache:!0};n(null,s),this.emit("load",a,s)}).catch(o=>{n(o,null)})}},Ix=new pp,ar=new Wn.default.Environment(Ix,{autoescape:!1});ar.addFilter("setAttribute",function(e,t,a){return e[t]=a,e});ar.addFilter("filterby",lO);ar.addFilter("format",cO);ar.addExtension(Kt.id,new Kt);function bt(e,t,a){return new Promise((n,i)=>{Ix.setSourceFile(e),ar.renderString(t,a,(r,o)=>{if(r)return i(r);n(o)})})}var uO=` -{%- if creators and creators.length > 0 -%} - {%- for creator in creators -%} - {%- if creator.name -%} - {{creator.name}} - {%- else -%} - {{creator.firstName}} {{creator.lastName}} - {%- endif -%} - {% if not loop.last %}, {% endif %} - {%- endfor -%} -{%- endif -%} -`,pO=` -{%- if attachments and attachments.length > 0 -%} -{%- set file = attachments | filterby("path", "endswith", ".pdf") | first -%} -{%- if file and file.path and file.path.endsWith(".pdf") -%} - [{{file.title}}](file://{{file.path | replace(" ", "%20")}}) -{%- endif -%} -{%- endif -%} -`,dO=` -{%- if attachments and attachments.length > 0 -%} -{%- set file = attachments | filterby("path", "endswith", ".pdf") | first -%} -{%- if file and file.path and file.path.endsWith(".pdf") -%} - [{{file.title}}]({{file.desktopURI}}) -{%- endif -%} -{%- endif -%} -`,_x=` -{%- if annotations and annotations.length > 0 -%} -{%- set annots = annotations | filterby("date", "dateafter", lastExportDate) -%} -{%- if annots.length > 0 %} -**Imported: {{importDate | format("YYYY-MM-DD")}}** - -{% for annotation in annots -%} - {%- if annotation.annotatedText -%} - > \u201C{{annotation.annotatedText}}\u201D{% if annotation.color %} {{annotation.colorCategory}} {{annotation.type | capitalize}} {% else %} {{annotation.type | capitalize}} {% endif %}[Page {{annotation.page}}]({{annotation.attachment.desktopURI.replace("select", "open-pdf")}}?page={{annotation.pageLabel}}&annotation={{annotation.id}}) - {%- endif %} - {%- if annotation.imageRelativePath -%} - > ![[{{annotation.imageRelativePath}}]] - {%- endif %} -{% if annotation.comment %} -{{annotation.comment}} -{% endif %} -{% endfor -%} -{%- endif -%} -{%- endif -%} -`;async function ws(e,t){var r,o,s;if(!t)return t;let a=(t.creators||[]).reduce((l,u)=>(l[u.creatorType]||(l[u.creatorType]=[]),l[u.creatorType].push(u),l),{});await Promise.all(Object.keys(a).map(async l=>{t[`${l}s`]=(await bt(e,uO,{creators:a[l]})).trim()}));let n=(await bt(e,pO,t)).trim();n&&(t.pdfLink=n);let i=(await bt(e,dO,t)).trim();if(i&&(t.pdfZoteroLink=i),(r=t.notes)!=null&&r.length){let l=t.notes.reduce((u,c)=>c.note?`${u} - -${c.note.trim()}`:u,"").trim();l&&(t.markdownNotes=l)}return(o=t.tags)!=null&&o.length&&(t.allTags=t.tags.map(l=>l.tag).join(", "),t.hashTags=t.tags.map(l=>`#${l.tag.replace(/\s+/g,"-")}`).join(", ")),(s=t.annotations)!=null&&s.length&&(t.formattedAnnotationsNew=(await bt(e,_x,t)).trim(),t.formattedAnnotations=(await bt(e,_x,{...t,lastExportDate:(0,Tx.moment)(0)})).trim()),t}var Pa=require("obsidian");var kx=require("obsidian"),nt=class extends kx.Modal{constructor(a,n){super(a);this.message=n}onOpen(){this.contentEl.createDiv({text:this.message})}onClose(){this.contentEl.empty()}};var Es=_e(require("path")),Mt={"Content-Type":"application/json","User-Agent":"obsidian/zotero",Accept:"application/json",Connection:"keep-alive"};function Dt(e,t){return e==="Zotero"?"23119":e==="Juris-M"?"24119":t||"23119"}async function Ss(e){let t=Es.default.dirname(e);await app.vault.adapter.exists(t)||await app.vault.createFolder(t)}function Fx(e){return e.replace(/\s*[*?]+\s*/g," ").trim().replace(/\s*[:"<>|]+\s*/g," - ").trim()}function Vn(e){let t=Es.default.parse(e),a=Fx(t.dir),n=Fx(t.name);return Es.default.join(a,`${n}${t.ext}`)}function fO(e){let t="0",a="0",n="0";e.length==4?(t="0x"+e[1]+e[1],a="0x"+e[2]+e[2],n="0x"+e[3]+e[3]):e.length==7&&(t="0x"+e[1]+e[2],a="0x"+e[3]+e[4],n="0x"+e[5]+e[6]);let i=+t/255,r=+a/255,o=+n/255,s=Math.min(i,r,o),l=Math.max(i,r,o),u=l-s,c=0,f=0,p=0;return u==0?c=0:l==i?c=(r-o)/u%6:l==r?c=(o-i)/u+2:c=(i-r)/u+4,c=Math.round(c*60),c<0&&(c+=360),p=(l+s)/2,f=u==0?0:u/(1-Math.abs(2*p-1)),f=+(f*100).toFixed(1),p=+(p*100).toFixed(1),{h:c,s:f,l:p}}function Px(e){let{h:t,s:a,l:n}=fO(e);return n<12?"Black":n>98?"White":a<2?"Gray":t<15?"Red":t<45?"Orange":t<65?"Yellow":t<170?"Green":t<190?"Cyan":t<263?"Blue":t<280?"Purple":t<335?"Magenta":"Red"}function Qt(e,t,a){let n=t.split("/").pop(),i=`zotero://${e}`,r="";if(/group/.test(t)?r=t.replace("http://zotero.org",i):r=`${i}/library/items/${n}`,a){let o=new URLSearchParams(a);r+=`?${o}`}return r}var Pe=require("obsidian");var dp=class e{constructor(t){this.compare=t;this.heapArray=[];this._limit=0}static getChildrenIndexOf(t){return[t*2+1,t*2+2]}static getParentIndexOf(t){if(t<=0)return-1;let a=t%2?1:2;return Math.floor((t-a)/2)}push(t){return this._sortNodeUp(this.heapArray.push(t)-1),!0}length(){return this.heapArray.length}peek(){return this.heapArray[0]}pop(){let t=this.heapArray.pop();return this.length()>0&&t!==void 0?this.replace(t):t}replace(t){let a=this.heapArray[0];return this.heapArray[0]=t,this._sortNodeDown(0),a}size(){return this.length()}_moveNode(t,a){[this.heapArray[t],this.heapArray[a]]=[this.heapArray[a],this.heapArray[t]]}_sortNodeDown(t){let a=t(this.heapArray.length>o&&this.compare(this.heapArray[o],this.heapArray[r])<0&&(r=o),r);for(;a;){let r=e.getChildrenIndexOf(t),o=r.reduce(i,r[0]),s=this.heapArray[o];typeof s!="undefined"&&this.compare(n,s)>0?(this._moveNode(t,o),t=o):a=!1}}_sortNodeUp(t){let a=t>0;for(;a;){let n=e.getParentIndexOf(t);n>=0&&this.compare(this.heapArray[n],this.heapArray[t])>0?(this._moveNode(t,n),t=n):a=!1}}};function mO(e,t){return e.prio-t.prio||e.counter-t.counter}var fp=class{constructor(t,a){this.maxConcurrent=t||1,this.minCycle=a||0,this.queueRunning=new Map,this.queueWaiting=new dp(mO),this.lastRun=0,this.nextTimer=null,this.counter=0}tryRun(){for(;this.queueWaiting.size()>0&&this.queueRunning.sizeactiveWindow.setTimeout(()=>{this.nextTimer=null,this.tryRun(),a()},this.minCycle-Date.now()+this.lastRun)));return}let t=this.queueWaiting.pop();if(t!==void 0){let a,i={wait:new Promise(o=>{a=o}),signal:a},r={hash:t.hash,prio:t.prio,finish:i};if(this.queueRunning.has(t.hash))throw new Error("async-await-queue: duplicate hash "+t.hash);this.queueRunning.set(t.hash,r),this.lastRun=Date.now(),t.start.signal()}}}end(t){let a=this.queueRunning.get(t);if(a===void 0)throw new Error("async-await-queue: queue desync for "+t);this.queueRunning.delete(t),a.finish.signal(),this.tryRun()}async wait(t,a){let n=a!=null?a:0,i,r=new Promise(s=>{i=s}),o={hash:t,prio:n,start:{signal:i,wait:r},counter:this.counter++};this.queueWaiting.push(o),this.tryRun(),await r,this.lastRun=Date.now()}run(t,a){let n=a!=null?a:0,i=Symbol();return this.wait(i,n).then(t).finally(()=>{this.end(i)})}stat(){return{running:this.queueRunning.size,waiting:this.queueWaiting.size(),last:this.lastRun}}async flush(t){for(;this.queueRunning.size>0||this.queueWaiting.size()>0;){let a=this.queueWaiting.peek();if(a&&await a.start.wait,t!==void 0&&this.queueWaiting.size()0&&await this.queueRunning.values().next().value.finish.wait}}},Ee=new fp(1);async function Ox(e,t){let a,n=new nt(app,"Fetching notes from Zotero...");n.open();let i=Symbol();try{await Ee.wait(i),a=await(0,Pe.request)({method:"POST",url:`http://127.0.0.1:${Dt(t.database,t.port)}/better-bibtex/json-rpc`,body:JSON.stringify({jsonrpc:"2.0",method:"item.notes",params:[e.map(r=>r.key)]}),headers:Mt})}catch(r){return console.error(r),n.close(),new Pe.Notice(`Error retrieving notes: ${r.message}`,1e4),Ee.end(i),null}Ee.end(i),n.close();try{return JSON.parse(a).result}catch(r){return console.error(r),new Pe.Notice(`Error retrieving notes: ${r.message}`,1e4),null}}async function Rx(e,t){let a,n=new nt(app,"Fetching collections from Zotero...");n.open();let i=Symbol();try{await Ee.wait(i),a=await(0,Pe.request)({method:"POST",url:`http://127.0.0.1:${Dt(t.database,t.port)}/better-bibtex/json-rpc`,body:JSON.stringify({jsonrpc:"2.0",method:"item.collections",params:[[e.key],!0]}),headers:Mt})}catch(r){return console.error(r),n.close(),new Pe.Notice(`Error retrieving notes: ${r.message}`,1e4),Ee.end(i),null}Ee.end(i),n.close();try{return JSON.parse(a).result[e.key].map(s=>{let l=s,u=[s.name];for(;l.parentCollection;)u.push(l.parentCollection.name),l=l.parentCollection;return{key:s.key,name:s.name,fullPath:u.reverse().join("/")}})}catch(r){return console.error(r),new Pe.Notice(`Error retrieving notes: ${r.message}`,1e4),null}}async function Cs(e,t){let a,n=new nt(app,"Fetching collections from Zotero...");n.open();let i=Symbol();try{await Ee.wait(i),a=await(0,Pe.request)({method:"POST",url:`http://127.0.0.1:${Dt(t.database,t.port)}/better-bibtex/json-rpc`,body:JSON.stringify({jsonrpc:"2.0",method:"item.attachments",params:[e.key,e.library]}),headers:Mt})}catch(r){return console.error(r),n.close(),new Pe.Notice(`Error retrieving notes: ${r.message}`,1e4),Ee.end(i),null}Ee.end(i),n.close();try{return JSON.parse(a).result}catch(r){return console.error(r),new Pe.Notice(`Error retrieving notes: ${r.message}`,1e4),null}}function Bx(e,t,a,n,i){return mp([e],t,a,n,i)}async function mp(e,t,a,n,i){var l;if(!e||!e.length)return null;let r,o;i||(o=new nt(app,"Fetching data from Zotero..."),o.open());let s=Symbol();try{let u={quickCopy:!0,contentType:"html"};a&&(delete u.quickCopy,u.id=a),await Ee.wait(s),r=await(0,Pe.request)({method:"POST",url:`http://127.0.0.1:${Dt(t.database,t.port)}/better-bibtex/json-rpc`,body:JSON.stringify({jsonrpc:"2.0",method:"item.bibliography",params:[e.map(c=>c.key),u,e[0].library]}),headers:Mt})}catch(u){return console.error(u),!i&&o.close(),new Pe.Notice(`Error retrieving formatted bibliography: ${u.message}`,1e4),Ee.end(s),null}Ee.end(s),!i&&o.close();try{let u=JSON.parse(r);if((l=u.error)!=null&&l.message)throw new Error(u.error.message);return n==="html"?u.result:(0,Pe.htmlToMarkdown)(u.result)}catch(u){console.error(u),console.error(`Response from BBT: ${r}`);let c=`Error converting formatted bibliography to markdown: ${u.message}`;return u.message.includes("element/document/fragment")&&(c="Error: Received empty bibliography from Zotero. Ensure Zotero's quick copy settings are set and the selected citation style is installed."),new Pe.Notice(c,1e4),null}}async function nr(e,t,a){var o;let n,i=new nt(app,"Fetching data from Zotero...");i.open();let r=Symbol();try{await Ee.wait(r),n=await(0,Pe.request)({method:"POST",url:`http://127.0.0.1:${Dt(t.database,t.port)}/better-bibtex/json-rpc`,body:JSON.stringify({jsonrpc:"2.0",method:"item.export",params:[e.map(s=>s.key),"36a3b0b5-bad0-4a04-b79b-441c7cef77db",a]}),headers:Mt})}catch(s){return console.error(s),i.close(),new Pe.Notice(`Error retrieving item data: ${s.message}`,1e4),Ee.end(r),null}Ee.end(r),i.close();try{let s=JSON.parse(n);if((o=s.error)!=null&&o.message)throw new Error(s.error.message);return Array.isArray(s.result)?JSON.parse(s.result[2]).items:JSON.parse(s.result).items}catch(s){return console.error(s),new Pe.Notice(`Error retrieving item data: ${s.message}`,1e4),null}}async function Nx(e,t,a){let n,i=new nt(app,"Fetching data from Zotero...");i.open();let r={},o=[],s=Symbol();try{await Ee.wait(s),n=await(0,Pe.request)({method:"POST",url:`http://127.0.0.1:${Dt(a.database,a.port)}/better-bibtex/json-rpc`,body:JSON.stringify({jsonrpc:"2.0",method:"item.citationkey",params:[t.map(f=>{let p=f.split("/").pop();return o.push(p),r[p]=f,`${e}:${p}`})]}),headers:Mt})}catch(f){return console.error(f),i.close(),new Pe.Notice(`Error retrieving item data: ${f.message}`,1e4),Ee.end(s),null}Ee.end(s),i.close();let l={},u=[];try{let f=JSON.parse(n);Object.keys(f.result).forEach(p=>{let b=p.split(":").pop();f.result[p]?(u.push({key:f.result[p],library:e}),l[b]={citekey:f.result[p],uri:r[b]}):l[b]={uri:r[b]}})}catch(f){return console.error(f),new Pe.Notice(`Error retrieving item data: ${f.message}`,1e4),null}let c=u.length?await nr(u,a,e):[];return o.map(f=>{if(l[f].citekey){let p=c.find(b=>{var d;return((d=rn(b))==null?void 0:d.key)===l[f].citekey});if(p)return p}return l[f]})}async function jx(e,t){var r;let a,n=new nt(app,"Fetching data from Zotero...");n.open();let i=Symbol();try{await Ee.wait(i),a=await(0,Pe.request)({method:"POST",url:`http://127.0.0.1:${Dt(t.database,t.port)}/better-bibtex/json-rpc`,body:JSON.stringify({jsonrpc:"2.0",method:"item.export",params:[[e.key],"f4b52ab0-f878-4556-85a0-c7aeedd09dfc",e.library]}),headers:Mt})}catch(o){return console.error(o),n.close(),new Pe.Notice(`Error retrieving item data: ${o.message}`,1e4),Ee.end(i),null}Ee.end(i),n.close();try{let o=JSON.parse(a);if((r=o.error)!=null&&r.message)throw new Error(o.error.message);let l=(Array.isArray(o.result)?JSON.parse(o.result[2]):JSON.parse(o.result)).map(u=>{let{issued:c}=u;if(!c||!c["date-parts"])return null;let f=c["date-parts"][0];return f.length?(0,Pe.moment)(`${f[0]}-${f[1]?lp(f[1]):"01"}-${f[2]?lp(f[2]):"01"}`,"YYYY-MM-DD"):null}).filter(u=>u);return l[0]?l[0]:null}catch(o){return console.error(o),new Pe.Notice(`Error retrieving item data: ${o.message}`,1e4),null}}function rn(e){return!e.citekey&&!e.citationKey?null:{key:e.citekey||e.citationKey,library:e.libraryID}}var As=!1,Lx=0;async function hp(e,t){if(As&&Date.now()-Lx<1e3*30)return As;let a;t||(a=new nt(app,"Fetching data from Zotero..."),a.open());let n=Symbol();try{await Ee.wait(n);let i=await(0,Pa.request)({method:"GET",url:`http://127.0.0.1:${Dt(e.database,e.port)}/better-bibtex/cayw?probe=true`,headers:Mt});return a==null||a.close(),As=i==="ready",Lx=Date.now(),Ee.end(n),As}catch(i){return a==null||a.close(),!t&&new Pa.Notice("Cannot connect to Zotero. Please ensure it is running and the Better BibTeX plugin is installed",1e4),Ee.end(n),!1}}function hO(e){switch(e.format){case"formatted-bibliography":return"format=formatted-bibliography";case"formatted-citation":return`format=formatted-citation${e.cslStyle?`&style=${e.cslStyle}`:""}`;case"pandoc":return`format=pandoc${e.brackets?"&brackets=true":""}`;case"latex":return`format=latex&command=${e.command||"cite"}`;case"biblatex":return`format=biblatex&command=${e.command||"autocite"}`}}async function Mx(e,t){let a=sp();if(!await hp(t))return null;let n=new nt(app,"Awaiting item selection from Zotero...");n.open();let i=Symbol();try{if(e.format==="formatted-bibliography"){n.close();let o=await on(t);return await mp(o,t,e.cslStyle)}await Ee.wait(i);let r=await(0,Pa.request)({method:"GET",url:`http://127.0.0.1:${Dt(t.database,t.port)}/better-bibtex/cayw?${hO(e)}`,headers:Mt});return a.show(),n.close(),Ee.end(i),r}catch(r){return a.show(),console.error(r),n.close(),new Pa.Notice(`Error processing citation: ${r.message}`,1e4),Ee.end(i),null}}async function on(e){try{let t=await vO(e);if(!t)return[];let a=t.map(n=>rn(n)).filter(n=>!!n);return a.length?a:[]}catch(t){return[]}}async function vO(e){let t=sp();if(!await hp(e))return null;let a=new nt(app,"Awaiting item selection from Zotero...");a.open();let n=Symbol();try{await Ee.wait(n);let i=await(0,Pa.request)({method:"GET",url:`http://127.0.0.1:${Dt(e.database,e.port)}/better-bibtex/cayw?format=translate&translator=36a3b0b5-bad0-4a04-b79b-441c7cef77db&exportNotes=false`,headers:Mt});return t.show(),a.close(),Ee.end(n),i?JSON.parse(i).items||[]:null}catch(i){return t.show(),console.error(i),a.close(),new Pa.Notice(`Error retrieving cite key: ${i.message}`,1e4),Ee.end(n),null}}var Oa=require("fs"),zt=require("obsidian"),cn=_e(require("path"));var sn=require("obsidian");function Is(e,t){if(!t)return null;let a=app.vault.getAbstractFileByPath(bp(t));return a?app.vault.cachedRead(a):(new sn.Notice(`Error: ${e} template not found ${t}`),null)}async function Dx(e){let{exportFormat:t}=e,a=!t.headerTemplatePath&&!t.annotationTemplatePath&&!t.footerTemplatePath;return t.templatePath||a?{template:await Is("",t.templatePath)}:{headerTemplate:await Is("Header",t.headerTemplatePath),annotationTemplate:await Is("Annotation",t.annotationTemplatePath),footerTemplate:await Is("Footer",t.footerTemplatePath)}}function zx(e){let t=e.match(/%% Import Date: (\S+) %%\n$/);return t&&t[1]?(0,sn.moment)(t[1]):(t=e.match(/%% Export Date: (\S+) %%\n$/),t&&t[1]?(0,sn.moment)(t[1]):(0,sn.moment)(0))}function vp(e){return e+` - -%% Import Date: ${(0,sn.moment)().toISOString(!0)} %% -`}function Gx(e){let t=e.match(/%% Begin annotations %%([\w\W]+)%% End annotations %%/);return t&&t[1]?t[1].trim():""}function Hx(e){return` -%% Begin annotations %% -${e} -%% End annotations %% -`}function ln(e){return e.startsWith("/")?e.replace(/^\/+/,""):e}function bp(e){return e.endsWith(".md")||(e+=".md"),e.startsWith("/")&&(e=ln(e)),e}async function gp(e,t,a,n){let i=new DOMParser().parseFromString(t,"text/html"),r=i.querySelectorAll("[data-annotation]"),o=i.querySelectorAll("[data-citation]");for(let s of Array.from(r))try{let l=s.dataset.annotation,u=l?JSON.parse(decodeURIComponent(l)):null;if(!u)return;let c=u.annotationKey,f=s instanceof HTMLImageElement;if(f){let p=a[c];if(p){let b=cn.default.parse(p),d=await bO(c,b.ext.slice(1),n),h=cn.default.parse(cn.default.join(an(),d)).dir;(0,Oa.existsSync)(h)||(0,Oa.mkdirSync)(h,{recursive:!0});let v=cn.default.join(b.dir,`${c}${b.ext}`);try{if(!(0,Oa.existsSync)(v)){let x=v;if(v=p,!(0,Oa.existsSync)(v))throw new Error("Cannot find annotation image: "+x)}(0,Oa.copyFileSync)(v,cn.default.join(an(),d))}catch(x){new zt.Notice("Error: unable to copy annotation image from Zotero into your vault",7e3),console.error(x)}s.src=d}}s.insertAdjacentElement(f?"afterend":"beforebegin",createEl("a",{text:"Go to annotation",href:Qt("open-pdf",u.attachmentURI,{page:u.pageLabel,annotation:u.annotationKey})})),f?s.insertAdjacentElement("afterend",createEl("br")):s.insertAdjacentElement("beforebegin",createSpan({text:" "}))}catch(l){console.error(l)}return o.forEach(s=>{var l;try{let u=s.dataset.citation,c=u?JSON.parse(decodeURIComponent(u)):null;if(!c||!c.citationItems.length||!((l=c.citationItems[0].uris)!=null&&l.length))return;let f=s.querySelector("span");if(!f)return;let p=f.innerText;f.empty(),f.createEl("a",{text:p,href:Qt("select",c.citationItems[0].uris[0])})}catch(u){console.error(u)}}),i.body.innerHTML}async function xp(e,t){let a=await on(e);if(!a.length)return;let n=await Ox(a,e);if(!n){new zt.Notice("No notes found for selected items",7e3);return}let i=Object.keys(n);if(!i.length){new zt.Notice("No notes found for selected items",7e3);return}let r={};for(let s of a){let l=await Cs(s,e);if(l){let u={};l.forEach(c=>{var f;(f=c.annotations)==null||f.forEach(p=>{p.annotationType==="image"&&(u[p.key]=p.annotationImagePath)})}),r[s.key]=u}}let o={};for(let s of i){let l=[];for(let u of n[s])l.push((0,zt.htmlToMarkdown)(await gp(s,u,r[s],t)));o[s]=l.join(` - -`)}return o}async function bO(e,t,a){let n=app.vault.getConfig("attachmentFolderPath"),i=n==="."||n==="./",r=null;n.startsWith("./")&&(r=n.slice(2)),i?n=a||"":r&&(n=cn.default.join(a||"",r)),n=(0,zt.normalizePath)(n);let o=app.vault.getAbstractFileByPathInsensitive(n);return!o&&r&&(await app.vault.createFolder(n),o=app.vault.getAbstractFileByPathInsensitive(n)),o instanceof zt.TFolder?`${o.getParentPrefix()+e}.${t}`:`${e}.${t}`}function Wx(e,t){e.replaceSelection(Object.values(t).join(` - -`))}async function Vx(e,t){let a=Object.keys(t),n=[];for(let i of a){let r=await gO(e,i,t[i]);if(!r)break;n.push(r)}return n.map(i=>i.path)}async function gO(e,t,a){let n=(0,zt.normalizePath)(Vn(ln(`${e}/${t}.md`))),i=app.vault.getAbstractFileByPath(n);try{i?await app.vault.modify(i,a):(await Ss(n),i=await app.vault.create(n,a))}catch(r){return console.error(r),new zt.Notice(`Error creating file "${n}": ${r.message}`,1e4),null}return i}var un=require("obsidian"),_s=_e(require("path"));var xO={noWrite:"-w",imageOutputPath:"-o",imageBaseName:"-n",imageFormat:"-f",imageDPI:"-d",imageQuality:"-q",ignoreBefore:"-b",attemptOCR:"-e",ocrLang:"-l",tesseractPath:"--tesseract-path",tessDataDir:"--tess-data-dir"};async function yp(e,t,a){let n=new nt(app,"Extracting annotations...");n.open();let i=[e];Object.keys(t).forEach(r=>{let o=t[r];if(o===""||o===void 0)return"";let s=xO[r];typeof o=="boolean"?o&&i.push(s):(i.push(s),typeof o=="string"&&o.startsWith("-")?i.push(`"${o}"`):i.push(o.toString()))});try{if(!Cx(a))return new un.Notice("Error: PDF utility is not executable",1e4),"[]";let o=await er(a||_s.default.join(_t(),nn()),i);if(n.close(),o.stderr.toLowerCase().includes("password"))return new un.Notice(`Error opening ${_s.default.basename(e)}: PDF is password protected`,1e4),"[]";if(o.stderr&&!o.stderr.includes("warning"))throw new un.Notice(`Error processing PDF: ${o.stderr}`,1e4),new Error(o.stderr);return o.stdout}catch(r){if(n.close(),r.message.toLowerCase().includes("password"))return new un.Notice(`Error opening ${_s.default.basename(e)}: PDF is password protected`,1e4),"[]";if(r.message.toLowerCase().includes("type3"))return new un.Notice(`Error processing annotations: ${r.message}`,1e4),"[]";throw console.error(r),new un.Notice(`Error processing PDF: ${r.message}`,1e4),r}}async function yO(e,t,a,n,i){t.note&&(t.note=(0,Be.htmlToMarkdown)(await gp(e.key,t.note,{}))),t.dateAdded&&(t.dateAdded=(0,Be.moment)(t.dateAdded)),t.dateModified&&(t.dateModified=(0,Be.moment)(t.dateModified)),t.desktopURI=Qt("select",t.uri),t.relations=await Zx(t,e.library,a,n,i)}function wO(e){var t;e.dateAdded&&(e.dateAdded=(0,Be.moment)(e.dateAdded)),e.dateModified&&(e.dateModified=(0,Be.moment)(e.dateModified)),e.uri&&(e.itemKey=e.uri.split("/").pop(),e.desktopURI=e.select||Qt("select",e.uri),(t=e.path)!=null&&t.endsWith(".pdf")&&(e.pdfURI=Qt("open-pdf",e.uri)))}function Ux(e,t,a){e.date=(0,Be.moment)(e.date),e.attachment=t,e.source="pdf",e.imagePath&&(e.imageBaseName=Jt.default.basename(e.imagePath),e.imageExtension=Jt.default.extname(e.imagePath).slice(1),e.imageRelativePath=(0,Be.normalizePath)(Jt.default.join(a,e.imageBaseName))),e.desktopURI=Qt("open-pdf",t.uri,{page:e.pageLabel})}function Jx(e,t,a,n,i,r=!1){var l;let o=e.annotationPosition.rects[0],s={date:(0,Be.moment)(e.dateModified),attachment:t,page:e.annotationPosition.pageIndex+1,pageLabel:e.annotationPageLabel,id:e.key,type:e.annotationType,x:o[0],y:o[1],color:e.annotationColor,colorCategory:Px(e.annotationColor),desktopURI:Qt("open-pdf",t.uri,{page:e.annotationPageLabel,annotation:e.key}),source:"zotero"};if(e.annotationText&&(s.annotatedText=e.annotationText),e.annotationComment&&(s.comment=e.annotationComment),e.annotationImagePath){let u=Jt.default.parse(e.annotationImagePath);s.imageBaseName=`${i}-${s.page}-x${Math.round(s.x)}-y${Math.round(s.y)}${u.ext}`,s.imageRelativePath=(0,Be.normalizePath)(Jt.default.join(n,s.imageBaseName)),s.imageExtension=u.ext.slice(1);let c=Jt.default.join(a,s.imageBaseName);if(r){(0,Ra.existsSync)(a)||(0,Ra.mkdirSync)(a,{recursive:!0});let f=Jt.default.join(u.dir,`${e.key}${u.ext}`);try{if(!(0,Ra.existsSync)(f)){let p=f;if(f=e.annotationImagePath,!(0,Ra.existsSync)(f))throw new Error("Cannot find annotation image: "+p)}(0,Ra.copyFileSync)(f,c)}catch(p){new Be.Notice("Error: unable to copy annotation image from Zotero into your vault",7e3),console.error(p)}}s.imagePath=c}return(l=e.tags)!=null&&l.length&&(s.tags=e.tags,s.allTags=e.tags.map(u=>u.tag).join(", "),s.hashTags=e.tags.map(u=>`#${u.tag.replace(/\s+/g,"-")}`).join(", ")),s}function Fs(e){let t=[],a=/^\+\s*/;return e.forEach(n=>{if(typeof n.comment=="string"&&a.test(n.comment)){n.comment=n.comment.replace(a,"");let i=t[t.length-1];if(i){i.annotatedText=i.annotatedText?i.annotatedText+"..."+n.annotatedText:n.annotatedText,i.comment=i.comment?i.comment+"..."+n.comment:n.comment;return}}t.push(n)}),t}async function Zx(e,t,a,n,i){var o;if(e.relations&&!Array.isArray(e.relations)){let s=[];for(let l of Object.values(e.relations))Array.isArray(l)&&s.push(...l);e.relations=s}if(!((o=e.relations)!=null&&o.length))return[];let r=await Nx(t,e.relations,n);for(let s of r)rn(s)&&await Ps(s,a,n,i,!0);return r}async function Ps(e,t,a,n,i){let r=rn(e);if(e.importDate=t,e.exportDate=t,e.desktopURI=e.select||Qt("select",e.uri,e.itemKey),e.accessDate&&(e.accessDate=(0,Be.moment)(e.accessDate)),e.dateAdded&&(e.dateAdded=(0,Be.moment)(e.dateAdded)),e.dateModified&&(e.dateModified=(0,Be.moment)(e.dateModified)),r){e.citekey||(e.citekey=r.key),e.citationKey||(e.citationKey=r.key);try{e.date=await jx(r,a)}catch(o){}try{e.collections=await Rx(r,a)}catch(o){}try{e.bibliography=await Bx(r,a,n)}catch(o){e.bibliography="Error generating bibliography"}}if(e.notes)for(let o of e.notes)await yO(r,o,t,a,n);if(e.attachments)for(let o of e.attachments)wO(o);i||(e.relations=await Zx(e,e.libraryID,t,a,n))}function qx(e,t){let a=e.message;try{if(a){let n=a.match(/\[Line (\d+), Column (\d+)]/);if(n){let r=t.split(/\n/g)[Number(n[1])-1],o=" ".repeat(Number(n[2])-1)+"^";return`${a} - -${r} -${o}`}}}catch(n){}return a}function Ts(e,t,a){new Be.Notice(createFragment(n=>{n.createSpan({text:`Error parsing template "${t}": `}),n.createEl("code",{text:qx(e,a)})}),1e4)}function ks(e,t,a){return new Error(`Error parsing template "${t}": ${qx(e,a)}`)}async function wp(e,t,a,n){let{template:i,headerTemplate:r,annotationTemplate:o,footerTemplate:s}=await Dx(e);if(!i&&!r&&!o&&!s)throw new Error(`No templates found for export ${e.exportFormat.name}`);let l="",u=!1;if(i){try{l=await bt(e.exportFormat.templatePath,i,t),u=Kt.hasPersist(l)}catch(m){if(n)throw ks(m,e.exportFormat.templatePath,i);return Ts(m,e.exportFormat.templatePath,i),!1}return u?vp(l):l}let c="",f="",p="";try{c=r?await bt(e.exportFormat.headerTemplatePath,r,t):""}catch(m){if(n)throw ks(m,e.exportFormat.headerTemplatePath,r);return Ts(m,e.exportFormat.headerTemplatePath,r),!1}try{f=o?await bt(e.exportFormat.annotationTemplatePath,o,t):""}catch(m){if(n)throw ks(m,e.exportFormat.annotationTemplatePath,o);return Ts(m,e.exportFormat.annotationTemplatePath,o),!1}try{p=s?await bt(e.exportFormat.footerTemplatePath,s,t):""}catch(m){if(n)throw ks(m,e.exportFormat.footerTemplatePath,s);return Ts(m,e.exportFormat.footerTemplatePath,s),!1}let b=[];r&&c.trim()&&b.push(c);let d=o&&(a+f).trim();return d&&b.push(Hx(a+f)),s&&p.trim()&&b.push(p),d?vp(b.join("")):b.join("")}function EO({exportFormat:e}){return e.templatePath||e.headerTemplatePath||e.annotationTemplatePath||e.footerTemplatePath||""}async function Xx(e,t){let a={};try{let n=rn(e);n&&(a=(await Cs(n,t)||[]).reduce((r,o)=>(o!=null&&o.path&&(r[o.path]=o),r),{}))}catch(n){console.error(n)}return a}async function $x(e,t,a){var i;let n=t.attachments.find(r=>{var o,s;return((o=r.path)==null?void 0:o.endsWith(".pdf"))&&((s=r.annotations)==null?void 0:s.length)});return t.annotations=(i=n==null?void 0:n.annotations)!=null?i:[],t.lastImportDate=a,t.lastExportDate=a,t.isFirstImport=a.valueOf()===0,await ws(e,t)}async function Ep(e,t){var h,v;let a=(0,Be.moment)(),{database:n,exportFormat:i,settings:r}=e,o=EO(e),s=Hn(),l=t||await on(n);if(!l.length)return[];let u=l[0].library,c;try{c=await nr(l,n,u)}catch(x){return[]}let f=[];for(let x of c)await Ps(x,a,n,i.cslStyle);let p=an(),b=new Map,d=async(x,E)=>{if(!b.has(x)){let g=app.vault.getAbstractFileByPath(x),w=g?await app.vault.cachedRead(g):"",C=g?Gx(w):"",y=g?zx(w):(0,Be.moment)(0);b.set(x,{item:E,file:g,fileContent:w,lastImportDate:y,existingAnnotations:C})}},m=async x=>(0,Be.normalizePath)(Vn(ln(await bt(o,i.outputPathTemplate,x))));for(let x=0,E=c.length;x{var M;(M=N.annotationPosition.rects)!=null&&M.length&&T.push(Jx(N,A,j,B,L,!0))})),T.length&&r.shouldConcat&&(T=Fs(T)),P&&s)try{let N=await yp(_,{imageBaseName:L,imageDPI:r.pdfExportImageDPI,imageFormat:r.pdfExportImageFormat,imageOutputPath:j,imageQuality:r.pdfExportImageQuality,attemptOCR:r.pdfExportImageOCR,ocrLang:r.pdfExportImageOCRLang,tesseractPath:r.pdfExportImageTesseractPath,tessDataDir:r.pdfExportImageTessDataDir},r.exeOverridePath),M=JSON.parse(N);for(let D of M)Ux(D,A,B);r.shouldConcat&&M.length&&(M=Fs(M)),T.push(...M)}catch(N){}T.length&&(A.annotations=T),await d(k,g)}}for(let[x,E]of b.entries())try{let{existingAnnotations:g,file:w,fileContent:C,item:y,lastImportDate:S}=E,A=await $x(x,y,S),_=await wp(e,Kt.prepareTemplateData(A,C),g);if(!_)continue;w?await app.vault.modify(w,_):(await Ss(x),await app.vault.create(x,_)),f.push(x)}catch(g){new Be.Notice(`Import failed for ${x}, check developer console for details`,7e3),console.error(g)}return f}async function Yx(e){let t=(0,Be.moment)(),{database:a,format:n}=e,i=await on(a);if(!i.length)return null;let r=i[0].library,o;try{o=await nr(i,a,r)}catch(l){return null}if(o.length===0)return null;let s=[];for(let l of o){await Ps(l,t,a,n.cslStyle);let u=l.attachments||[],f={attachment:u.find(p=>{var b;return!!((b=p.path)!=null&&b.endsWith(".pdf"))})||u.length?u[0]:null,...l};s.push(await bt("",n.template,f))}return s.join(" ")}function SO(e){let t=e.exportFormats.find(n=>!!n.cslStyle);if(t)return t.cslStyle;let a=e.citeFormats.find(n=>!!n.cslStyle);if(a)return a.cslStyle}async function Kx(e){var u,c;let t={database:e.database,port:e.port},a=await on(t),n=Hn();if(!a.length)return null;let i=a[0].library,r;try{r=await nr(a,t,i)}catch(f){return null}let o=(0,Be.moment)(),s=SO(e),l=an();for(let f of r){await Ps(f,o,t,s);let p=f.attachments,b=await Xx(f,t);for(let d of p){let m=d.path;if(!(m!=null&&m.endsWith(".pdf")))continue;let h=[];if((c=(u=b[m])==null?void 0:u.annotations)==null||c.forEach(v=>{var x;(x=v.annotationPosition.rects)!=null&&x.length&&h.push(Jx(v,d,Jt.default.join(l,"output_path"),"base_name","output_path"))}),e.shouldConcat&&h.length&&(h=Fs(h)),n)try{let v=await yp(m,{noWrite:!0,imageBaseName:"base_name",imageDPI:e.pdfExportImageDPI,imageFormat:e.pdfExportImageFormat,imageOutputPath:Jt.default.join(l,"output_path"),imageQuality:e.pdfExportImageQuality,attemptOCR:e.pdfExportImageOCR,ocrLang:e.pdfExportImageOCRLang,tesseractPath:e.pdfExportImageTesseractPath,tessDataDir:e.pdfExportImageTessDataDir},e.exeOverridePath),x=JSON.parse(v);for(let E of x)Ux(E,d,"output_path");e.shouldConcat&&x.length&&(x=Fs(x)),h.push(...x)}catch(v){return!1}h.length&&(d.annotations=h)}}return await Promise.all(r.map(async f=>{await $x("",f,(0,Be.moment)(0))})),r}var Un="zdc-debug",CO={scheme:"Tomorrow",author:"Chris Kempson (http://chriskempson.com)",base00:"#ffffff",base01:"#e0e0e0",base02:"#d6d6d6",base03:"#8e908c",base04:"#969896",base05:"#4d4d4c",base06:"#282a2e",base07:"#1d1f21",base08:"#c82829",base09:"#f5871f",base0A:"#eab700",base0B:"#718c00",base0C:"#3e999f",base0D:"#4271ae",base0E:"#8959a8",base0F:"#a3685a"},AO={scheme:"Tomorrow Night",author:"Chris Kempson (http://chriskempson.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"};function IO({plugin:e,formatIndex:t,templateData:a}){let[n,i]=I.useState(null),[r,o]=I.useState(null),[s,l]=I.useState(0);return I.useEffect(()=>{let u=e.settings.exportFormats[t],c=u.templatePath?e.app.vault.getAbstractFileByPath(bp(u.templatePath)):null,f=b=>{b&&b===c&&l(Date.now())},p=()=>{l(Date.now())};return e.emitter.on("fileUpdated",f),e.emitter.on("settingsUpdated",p),()=>{e.emitter.off("fileUpdated",f),e.emitter.off("settingsUpdated",p)}},[t]),I.useEffect(()=>{if(i(null),t===null)return;let u={settings:e.settings,database:{database:e.settings.database,port:e.settings.port},exportFormat:e.settings.exportFormats[t]};(async()=>{try{let f="",p=(0,Ba.moment)(0),b=await wp(u,Kt.prepareTemplateData({...a,lastImportDate:p,lastExportDate:p},f),"",!0);o(b||null)}catch(f){i(f.message)}})()},[t,s,a]),!r&&!n?null:I.createElement("div",{className:`zt-json-viewer__preview${n?" error":""}`},I.createElement("pre",null,I.createElement("code",null,n||r)))}function _O({plugin:e}){let[t,a]=I.useState(null),[n,i]=I.useState(null),[r,o]=I.useState(null),s=I.useCallback(()=>{Kx(e.settings).then(l=>{!l||l.length===0?a("No data retrieved"):(a(null),i(l[0]))})},[]);return I.createElement("div",{className:"zt-json-viewer"},I.createElement("div",{className:"zt-json-viewer__btns"},I.createElement("div",null,I.createElement("button",{onClick:s},"Prompt For Selection")),I.createElement("div",null,I.createElement("select",{className:"dropdown",onChange:l=>{l.target.value?o(Number(l.target.value)):o(null)}},I.createElement("option",{value:""},"Preview Import Format"),e.settings.exportFormats.map((l,u)=>I.createElement("option",{key:u,value:u},l.name))))),t?I.createElement("div",null,t):I.createElement("div",null,n&&I.createElement(I.Fragment,null,r!==null&&I.createElement(IO,{plugin:e,formatIndex:r,templateData:n}),I.createElement("div",{className:"zt-json-viewer__data"},I.createElement(Sg,{data:n,sortObjectKeys:(l,u)=>l.localeCompare(u),isCustomNode:l=>l instanceof Ba.moment,valueRenderer:RO,labelRenderer:TO,theme:document.body.hasClass("theme-dark")?AO:CO,invertTheme:!1})))))}var Os=class extends Ba.ItemView{constructor(a,n){super(n);this.plugin=a,this.mountJsonViewer()}getViewType(){return Un}getIcon(){return"gear"}getDisplayText(){return"Zotero Data Explorer"}mountJsonViewer(){I.unmountComponentAtNode(this.contentEl),I.render(I.createElement(_O,{plugin:this.plugin}),this.contentEl)}unmountJsonViewer(){I.unmountComponentAtNode(this.contentEl)}async onClose(){this.unmountJsonViewer()}},TO=(e,t)=>{let a=e.length===1,n=e.slice(0,-1),i=kO(n);return I.createElement("span",{onContextMenu:a?void 0:o=>{let s=new Ba.Menu().addItem(l=>l.setIcon("lucide-copy").setTitle("Copy template path").onClick(()=>{navigator.clipboard.writeText(`{{${i}}}`)}));t==="Array"&&s.addItem(l=>l.setIcon("lucide-copy").setTitle("Copy template for loop").onClick(()=>{navigator.clipboard.writeText(`{% for item in ${i} %} -{% item %} -{% endfor %}`)})),o.preventDefault(),s.showAtMouseEvent(o)}},a?"Template Data":e[0])},kO=e=>e.map(PO).reverse().join(""),FO=/^[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*$/u,PO=(e,t,a)=>typeof e=="number"?`[${e}]`:FO.test(e)?t===a.length-1?`${e}`:`.${e}`:`[${JSON.stringify(e)}]`,OO=/^#(?:[\dA-F]{3}){1,2}$|^#(?:[\dA-F]{4}){1,2}$/i,RO=(e,t)=>t instanceof Ba.moment?I.createElement(I.Fragment,null,"\u{1F4C5} ",t.format("l LTS")):typeof t=="string"&&OO.test(t)?I.createElement(I.Fragment,null,I.createElement("span",{style:{backgroundColor:t},className:"zt-color-chip"}),t):typeof t=="string"&&t.length>800?t.slice(0,800)+"...":e;var ZA=_e(UA()),Zl=require("obsidian"),Sf=_e(require("os"));var JA=require("obsidian");function ca({name:e,className:t}){return I.createElement("span",{"data-icon":e,className:t,ref:a=>{a&&(0,JA.setIcon)(a,e)}})}function s9({name:e,description:t}){return I.createElement("div",{className:"setting-item-info"},I.createElement("div",{className:"setting-item-name"},e),I.createElement("div",{className:"setting-item-description"},t))}function He({name:e,description:t,children:a,isHeading:n}){return I.createElement("div",{className:`zt-setting-item setting-item${n?" setting-item-heading":""}`},I.createElement(s9,{name:e,description:t}),I.createElement("div",{className:"setting-item-control"},a))}var Va="1.0.15",Cf=1,l9={darwin:{x64:`https://github.com/mgmeyers/pdfannots2json/releases/download/${Va}/pdfannots2json.Mac.Intel.tar.gz`,arm64:`https://github.com/mgmeyers/pdfannots2json/releases/download/${Va}/pdfannots2json.Mac.M1.tar.gz`},linux:{x64:`https://github.com/mgmeyers/pdfannots2json/releases/download/${Va}/pdfannots2json.Linux.x64.tar.gz`},win32:{x64:`https://github.com/mgmeyers/pdfannots2json/releases/download/${Va}/pdfannots2json.Windows.x64.zip`}};function c9(){let e=l9[Sf.default.platform()];if(!e)return null;let t=e[Sf.default.arch()];return t||null}async function Af(){let e=c9();if(console.log("Obsidian Zotero Integration: Downloading "+e),!e)return!1;try{xx()&&Ex(),gx()&&wx(),Hn()&&yx(),await(0,ZA.default)(e,_t(),{extract:!0}),vx()}catch(t){console.error(t),new Zl.Notice("Error downloading PDF utility. Check the console for more details.",1e4)}return!0}function qA(e){let[t,a]=I.useState(null),[n,i]=I.useState(!1),[r,o]=I.useState(!1),[s,l]=I.useState(e.settings.exeOverridePath),u=I.useMemo(()=>(0,Zl.debounce)(m=>{l(m),e.updateSetting("exeOverridePath",m)},150,!0),[]);I.useEffect(()=>{let m=Hn(s);o(m),m&&Sx(s).then(h=>{a(`v${Va}`===h)}).catch(()=>{})},[s]);let c=I.useCallback(()=>{i(!0),Af().then(m=>{i(!1),m&&(a(!0),o(!0))})},[]),f=["Extracting data from PDFs requires an external tool.","This plugin will still work without it, but annotations will not be included in exports."],b=I.createElement(He,{name:"PDF Utility Path Override",description:I.createElement(I.Fragment,null,"Override the path to the PDF utility. Specify an absolute path to the pdfannots2json executable."," ",I.createElement("a",{href:"https://github.com/mgmeyers/pdfannots2json/releases",target:"_blank",rel:"noreferrer"},"Download the executable here.")," ","You may need to provide Obsidian the appropriate OS permissions to access the executable.")},I.createElement("input",{onChange:m=>u(m.target.value),type:"text",spellCheck:!1,value:s}),I.createElement("div",{className:"clickable-icon setting-editor-extra-setting-button","aria-label":"Select the pdfannots2json executable",onClick:()=>{let m=require("electron").remote.dialog.showOpenDialogSync({properties:["openFile"]});m&&m.length&&u(m[0])}},I.createElement(ca,{name:"lucide-folder-open"})));if(r&&t)return I.createElement(I.Fragment,null,I.createElement(He,{name:"PDF Utility",description:f.join(" ")},I.createElement("div",{className:"zt-asset-success"},I.createElement("div",{className:"zt-asset-success__icon"},I.createElement(ca,{name:"check-small"})),I.createElement("div",{className:"zt-asset-success__message"},"PDF utility is up to date."))),b);let d=I.createElement(I.Fragment,null,f.join(" ")," ",r&&I.createElement("strong",{className:"mod-warning"},"The PDF extraction tool requires updating. Please re-download."),!r&&!s&&I.createElement("strong",null,"Click the button to download."));return I.createElement(I.Fragment,null,I.createElement(He,{name:"PDF Utility",description:d},!s&&I.createElement("button",{disabled:n,onClick:c},n?"Downloading...":"Download")),b)}var Ja=require("obsidian");var V_=_e(r2());function o2(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),a.push.apply(a,n)}return a}function ae(e){for(var t=1;t0?$e(wi,--wt):0,xi--,Qe===10&&(xi=1,Kl--),Qe}function Et(){return Qe=wt2||yi(Qe)>3?"":" "}function g2(e,t){for(;--t&&Et()&&!(Qe<48||Qe>102||Qe>57&&Qe<65||Qe>70&&Qe<97););return Si(e,Dr()+(t<6&&Ht()==32&&Et()==32))}function Mf(e){for(;Et();)switch(Qe){case e:return wt;case 34:case 39:e!==34&&e!==39&&Mf(Qe);break;case 40:e===41&&Mf(e);break;case 92:Et();break}return wt}function x2(e,t){for(;Et()&&e+Qe!==47+10;)if(e+Qe===42+42&&Ht()===47)break;return"/*"+Si(t,wt-1)+"*"+xn(e===47?e:Et())}function y2(e){for(;!yi(Ht());)Et();return Si(e,wt)}function S2(e){return ec(tc("",null,null,null,[""],e=Ql(e),0,[0],e))}function tc(e,t,a,n,i,r,o,s,l){for(var u=0,c=0,f=o,p=0,b=0,d=0,m=1,h=1,v=1,x=0,E="",g=i,w=r,C=n,y=E;h;)switch(d=x,x=Et()){case 40:if(d!=108&&$e(y,f-1)==58){Lr(y+=ye(Ci(x),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:y+=Ci(x);break;case 9:case 10:case 13:case 32:y+=b2(d);break;case 92:y+=g2(Dr()-1,7);continue;case 47:switch(Ht()){case 42:case 47:gi(v9(x2(Et(),Dr()),t,a),l);break;default:y+="/"}break;case 123*m:s[u++]=yt(y)*v;case 125*m:case 59:case 0:switch(x){case 0:case 125:h=0;case 59+c:v==-1&&(y=ye(y,/\f/g,"")),b>0&&yt(y)-f&&gi(b>32?E2(y+";",n,a,f-1):E2(ye(y," ","")+";",n,a,f-2),l);break;case 59:y+=";";default:if(gi(C=w2(y,t,a,u,c,i,s,E,g=[],w=[],f),r),x===123)if(c===0)tc(y,t,C,C,g,r,f,s,w);else switch(p===99&&$e(y,3)===110?100:p){case 100:case 108:case 109:case 115:tc(e,C,C,n&&gi(w2(e,C,C,0,0,i,s,E,i,g=[],f),w),i,w,f,s,n?g:w);break;default:tc(y,C,C,C,[""],w,0,s,w)}}u=c=b=0,m=v=1,E=y="",f=o;break;case 58:f=1+yt(y),b=d;default:if(m<1){if(x==123)--m;else if(x==125&&m++==0&&v2()==125)continue}switch(y+=xn(x),x*m){case 38:v=c>0?1:(y+="\f",-1);break;case 44:s[u++]=(yt(y)-1)*v,v=1;break;case 64:Ht()===45&&(y+=Ci(Et())),p=Ht(),c=f=yt(E=y+=y2(Dr())),x++;break;case 45:d===45&&yt(y)==2&&(m=0)}}return r}function w2(e,t,a,n,i,r,o,s,l,u,c){for(var f=i-1,p=i===0?r:[""],b=bi(p),d=0,m=0,h=0;d0?p[v]+" "+x:ye(x,/&\f/g,p[v])))&&(l[h++]=E);return Mr(e,t,a,i===0?mi:s,l,u,c)}function v9(e,t,a){return Mr(e,t,a,Xl,xn(h2()),Ua(e,2,-2),0)}function E2(e,t,a,n){return Mr(e,t,a,hi,Ua(e,0,n),Ua(e,n+1,-1),n)}function yn(e,t){for(var a="",n=bi(e),i=0;i6)switch($e(e,t+1)){case 109:if($e(e,t+4)!==45)break;case 102:return ye(e,/(.+:)(.+)-([^]+)/,"$1"+Se+"$2-$3$1"+jr+($e(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Lr(e,"stretch")?k2(ye(e,"stretch","fill-available"),t)+e:e}break;case 4949:if($e(e,t+1)!==115)break;case 6444:switch($e(e,yt(e)-3-(~Lr(e,"!important")&&10))){case 107:return ye(e,":",":"+Se)+e;case 101:return ye(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Se+($e(e,14)===45?"inline-":"")+"box$3$1"+Se+"$2$3$1"+dt+"$2box$3")+e}break;case 5936:switch($e(e,t+11)){case 114:return Se+e+dt+ye(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Se+e+dt+ye(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Se+e+dt+ye(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Se+e+dt+e+e}return e}var E9=function(t,a,n,i){if(t.length>-1&&!t.return)switch(t.type){case hi:t.return=k2(t.value,t.length);break;case $l:return yn([Ei(t,{value:ye(t.value,"@","@"+Se)})],i);case mi:if(t.length)return Lf(t.props,function(r){switch(jf(r,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return yn([Ei(t,{props:[ye(r,/:(read-\w+)/,":"+jr+"$1")]})],i);case"::placeholder":return yn([Ei(t,{props:[ye(r,/:(plac\w+)/,":"+Se+"input-$1")]}),Ei(t,{props:[ye(r,/:(plac\w+)/,":"+jr+"$1")]}),Ei(t,{props:[ye(r,/:(plac\w+)/,dt+"input-$1")]})],i)}return""})}},S9=[E9],Df=function(t){var a=t.key;if(a==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(m){var h=m.getAttribute("data-emotion");h.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=t.stylisPlugins||S9,r={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+a+' "]'),function(m){for(var h=m.getAttribute("data-emotion").split(" "),v=1;v=4;++n,i-=4)a=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,a=(a&65535)*1540483477+((a>>>16)*59797<<16),a^=a>>>24,t=(a&65535)*1540483477+((a>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var H2={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var L9=/[A-Z]|^ms/g,M9=/_EMO_([^_]+?)_([^]*?)_EMO_/g,J2=function(t){return t.charCodeAt(1)===45},W2=function(t){return t!=null&&typeof t!="boolean"},Zf=_2(function(e){return J2(e)?e:e.replace(L9,"-$&").toLowerCase()}),V2=function(t,a){switch(t){case"animation":case"animationName":if(typeof a=="string")return a.replace(M9,function(n,i,r){return ua={name:i,styles:r,next:ua},i})}return H2[t]!==1&&!J2(t)&&typeof a=="number"&&a!==0?a+"px":a};function zr(e,t,a){if(a==null)return"";if(a.__emotion_styles!==void 0)return a;switch(typeof a){case"boolean":return"";case"object":{if(a.anim===1)return ua={name:a.name,styles:a.styles,next:ua},a.name;if(a.styles!==void 0){var n=a.next;if(n!==void 0)for(;n!==void 0;)ua={name:n.name,styles:n.styles,next:ua},n=n.next;var i=a.styles+";";return i}return D9(e,t,a)}case"function":{if(e!==void 0){var r=ua,o=a(e);return ua=r,zr(e,t,o)}break}case"string":if(!1)var s,l;break}if(t==null)return a;var u=t[a];return u!==void 0?u:a}function D9(e,t,a){var n="";if(Array.isArray(a))for(var i=0;i=0)&&(a[i]=e[i]);return a}function Wt(e,t){if(e==null)return{};var a=Yf(e,t),n,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Kf(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function K2(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}var V9=["top","right","bottom","left"],dJ=V9.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);function pa(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function aI(e){return pa(e).getComputedStyle(e)}function nI(e){return e instanceof pa(e).Node}function iI(e){return nI(e)?(e.nodeName||"").toLowerCase():"#document"}function am(e){return e instanceof pa(e).HTMLElement}function em(e){return e instanceof pa(e).Element}function Q2(e){return typeof ShadowRoot!="undefined"&&(e instanceof pa(e).ShadowRoot||e instanceof ShadowRoot)}function rI(e){let{overflow:t,overflowX:a,overflowY:n,display:i}=aI(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+a)&&!["inline","contents"].includes(i)}function U9(){return!(typeof CSS=="undefined"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function J9(e){return["html","body","#document"].includes(iI(e))}var Z9=Math.min,q9=Math.max,bc=Math.round,vc=Math.floor,nm=e=>({x:e,y:e});function X9(e){let t=aI(e),a=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=am(e),r=i?e.offsetWidth:a,o=i?e.offsetHeight:n,s=bc(a)!==r||bc(n)!==o;return s&&(a=r,n=o),{width:a,height:n,$:s}}function im(e){return em(e)?e:e.contextElement}function Qf(e){let t=im(e);if(!am(t))return nm(1);let a=t.getBoundingClientRect(),{width:n,height:i,$:r}=X9(t),o=(r?bc(a.width):a.width)/n,s=(r?bc(a.height):a.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}var eI=nm(0);function $9(e,t,a){var n,i;if(t===void 0&&(t=!0),!U9())return eI;let r=e?pa(e):window;return!a||t&&a!==r?eI:{x:((n=r.visualViewport)==null?void 0:n.offsetLeft)||0,y:((i=r.visualViewport)==null?void 0:i.offsetTop)||0}}function tI(e,t,a,n){t===void 0&&(t=!1),a===void 0&&(a=!1);let i=e.getBoundingClientRect(),r=im(e),o=nm(1);t&&(n?em(n)&&(o=Qf(n)):o=Qf(e));let s=$9(r,a,n),l=(i.left+s.x)/o.x,u=(i.top+s.y)/o.y,c=i.width/o.x,f=i.height/o.y;if(r){let p=pa(r),b=n&&em(n)?pa(n):n,d=p.frameElement;for(;d&&n&&b!==p;){let m=Qf(d),h=d.getBoundingClientRect(),v=getComputedStyle(d),x=h.left+(d.clientLeft+parseFloat(v.paddingLeft))*m.x,E=h.top+(d.clientTop+parseFloat(v.paddingTop))*m.y;l*=m.x,u*=m.y,c*=m.x,f*=m.y,l+=x,u+=E,d=pa(d).frameElement}}return K2({width:c,height:f,x:l,y:u})}function oI(e){return((nI(e)?e.ownerDocument:e.document)||window.document).documentElement}function Y9(e){if(iI(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Q2(e)&&e.host||oI(e);return Q2(t)?t.host:t}function sI(e){let t=Y9(e);return J9(t)?e.ownerDocument?e.ownerDocument.body:e.body:am(t)&&rI(t)?t:sI(t)}function tm(e,t){var a;t===void 0&&(t=[]);let n=sI(e),i=n===((a=e.ownerDocument)==null?void 0:a.body),r=pa(n);return i?t.concat(r,r.visualViewport||[],rI(n)?n:[]):t.concat(n,tm(n))}function lI(e,t,a,n){n===void 0&&(n={});let{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,u=im(e),c=i||r?[...u?tm(u):[],...tm(t)]:[];c.forEach(h=>{i&&h.addEventListener("scroll",a,{passive:!0}),r&&h.addEventListener("resize",a)});let f=u&&s?function(h,v){let x,E=null,g=oI(h);function w(){clearTimeout(x),E&&E.disconnect(),E=null}return function C(y,S){y===void 0&&(y=!1),S===void 0&&(S=1),w();let{left:A,top:_,width:P,height:F}=h.getBoundingClientRect();if(y||v(),!P||!F)return;let B={rootMargin:-vc(_)+"px "+-vc(g.clientWidth-(A+P))+"px "+-vc(g.clientHeight-(_+F))+"px "+-vc(A)+"px",threshold:q9(0,Z9(1,S))||1},j=!0;function L(k){let T=k[0].intersectionRatio;if(T!==S){if(!j)return C();T?C(!1,T):x=setTimeout(()=>{C(!1,1e-7)},100)}j=!1}try{E=new IntersectionObserver(L,{...B,root:g.ownerDocument})}catch(k){E=new IntersectionObserver(L,B)}E.observe(h)}(!0),w}(u,a):null,p,b=-1,d=null;o&&(d=new ResizeObserver(h=>{let[v]=h;v&&v.target===u&&d&&(d.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{d&&d.observe(t)})),a()}),u&&!l&&d.observe(u),d.observe(t));let m=l?tI(e):null;return l&&function h(){let v=tI(e);!m||v.x===m.x&&v.y===m.y&&v.width===m.width&&v.height===m.height||a(),m=v,p=requestAnimationFrame(h)}(),a(),()=>{c.forEach(h=>{i&&h.removeEventListener("scroll",a),r&&h.removeEventListener("resize",a)}),f&&f(),d&&d.disconnect(),d=null,l&&cancelAnimationFrame(p)}}var K9=ka,gc=K9;var Q9=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Hr=function(){};function eL(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function uI(e,t){for(var a=arguments.length,n=new Array(a>2?a-2:0),i=2;i-1}function tL(e){return Wr(e)?window.innerHeight:e.clientHeight}function fI(e){return Wr(e)?window.pageYOffset:e.scrollTop}function wc(e,t){if(Wr(e)){window.scrollTo(0,t);return}e.scrollTop=t}function aL(e){var t=getComputedStyle(e),a=t.position==="absolute",n=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(a&&t.position==="static")&&n.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function nL(e,t,a,n){return a*((e=e/n-1)*e*e+1)+t}function xc(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Hr,i=fI(e),r=t-i,o=10,s=0;function l(){s+=o;var u=nL(s,i,r,a);wc(e,u),sa.bottom?wc(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):n.top-i1?a-1:0),i=1;i=d)return{placement:"bottom",maxHeight:t};if(A>=d&&!o)return r&&xc(l,_,F),{placement:"bottom",maxHeight:t};if(!o&&A>=n||o&&y>=n){r&&xc(l,_,F);var B=o?y-g:A-g;return{placement:"bottom",maxHeight:B}}if(i==="auto"||o){var j=t,L=o?C:S;return L>=n&&(j=Math.min(L-g-s,t)),{placement:"top",maxHeight:j}}if(i==="bottom")return r&&wc(l,_),{placement:"bottom",maxHeight:t};break;case"top":if(C>=d)return{placement:"top",maxHeight:t};if(S>=d&&!o)return r&&xc(l,P,F),{placement:"top",maxHeight:t};if(!o&&S>=n||o&&C>=n){var k=t;return(!o&&S>=n||o&&C>=n)&&(k=o?C-w:S-w),r&&xc(l,P,F),{placement:"top",maxHeight:k}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return u}function lL(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var xI=function(t){return t==="auto"?"bottom":t},yI=function(t,a){var n,i=t.placement,r=t.theme,o=r.borderRadius,s=r.spacing,l=r.colors;return ae((n={label:"menu"},jt(n,lL(i),"100%"),jt(n,"position","absolute"),jt(n,"width","100%"),jt(n,"zIndex",1),n),a?{}:{backgroundColor:l.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},wI=_a(null),EI=function(t){var a=t.children,n=t.minMenuHeight,i=t.maxMenuHeight,r=t.menuPlacement,o=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,u=Yt(wI)||{},c=u.setPortalPlacement,f=ot(null),p=Re(i),b=Le(p,2),d=b[0],m=b[1],h=Re(null),v=Le(h,2),x=v[0],E=v[1],g=l.spacing.controlHeight;return gc(function(){var w=f.current;if(w){var C=o==="fixed",y=s&&!C,S=sL({maxHeight:i,menuEl:w,minHeight:n,placement:r,shouldScroll:y,isFixedPosition:C,controlHeight:g});m(S.maxHeight),E(S.placement),c==null||c(S.placement)}},[i,r,o,s,n,c,g]),a({ref:f,placerProps:ae(ae({},t),{},{placement:x||xI(r),maxHeight:d})})},cL=function(t){var a=t.children,n=t.innerRef,i=t.innerProps;return re("div",W({},Ze(t,"menu",{menu:!0}),{ref:n},i),a)},uL=cL,SI=function(t,a){var n=t.maxHeight,i=t.theme.spacing.baseUnit;return ae({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},a?{}:{paddingBottom:i,paddingTop:i})},pL=function(t){var a=t.children,n=t.innerProps,i=t.innerRef,r=t.isMulti;return re("div",W({},Ze(t,"menuList",{"menu-list":!0,"menu-list--is-multi":r}),{ref:i},n),a)},CI=function(t,a){var n=t.theme,i=n.spacing.baseUnit,r=n.colors;return ae({textAlign:"center"},a?{}:{color:r.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},AI=CI,II=CI,_I=function(t){var a=t.children,n=t.innerProps;return re("div",W({},Ze(t,"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),a)};_I.defaultProps={children:"No options"};var TI=function(t){var a=t.children,n=t.innerProps;return re("div",W({},Ze(t,"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),a)};TI.defaultProps={children:"Loading..."};var kI=function(t){var a=t.rect,n=t.offset,i=t.position;return{left:a.left,position:i,top:n,width:a.width,zIndex:1}},dL=function(t){var a=t.appendTo,n=t.children,i=t.controlElement,r=t.innerProps,o=t.menuPlacement,s=t.menuPosition,l=ot(null),u=ot(null),c=Re(xI(o)),f=Le(c,2),p=f[0],b=f[1],d=At(function(){return{setPortalPlacement:b}},[]),m=Re(null),h=Le(m,2),v=h[0],x=h[1],E=Fe(function(){if(i){var y=iL(i),S=s==="fixed"?0:window.pageYOffset,A=y[p]+S;(A!==(v==null?void 0:v.offset)||y.left!==(v==null?void 0:v.rect.left)||y.width!==(v==null?void 0:v.rect.width))&&x({offset:A,rect:y})}},[i,s,p,v==null?void 0:v.offset,v==null?void 0:v.rect.left,v==null?void 0:v.rect.width]);gc(function(){E()},[E]);var g=Fe(function(){typeof u.current=="function"&&(u.current(),u.current=null),i&&l.current&&(u.current=lI(i,l.current,E,{elementResize:"ResizeObserver"in window}))},[i,E]);gc(function(){g()},[g]);var w=Fe(function(y){l.current=y,g()},[g]);if(!a&&s!=="fixed"||!v)return null;var C=re("div",W({ref:w},Ze(ae(ae({},t),{},{offset:v.offset,position:s,rect:v.rect}),"menuPortal",{"menu-portal":!0}),r),n);return re(wI.Provider,{value:d},a?yu(C,a):C)},FI=function(t){var a=t.isDisabled,n=t.isRtl;return{label:"container",direction:n?"rtl":void 0,pointerEvents:a?"none":void 0,position:"relative"}},fL=function(t){var a=t.children,n=t.innerProps,i=t.isDisabled,r=t.isRtl;return re("div",W({},Ze(t,"container",{"--is-disabled":i,"--is-rtl":r}),n),a)},PI=function(t,a){var n=t.theme.spacing,i=t.isMulti,r=t.hasValue,o=t.selectProps.controlShouldRenderValue;return ae({alignItems:"center",display:i&&r&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},a?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(n.baseUnit*2,"px")})},mL=function(t){var a=t.children,n=t.innerProps,i=t.isMulti,r=t.hasValue;return re("div",W({},Ze(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":r}),n),a)},OI=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},hL=function(t){var a=t.children,n=t.innerProps;return re("div",W({},Ze(t,"indicatorsContainer",{indicators:!0}),n),a)},cI,vL=["size"];var bL={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},RI=function(t){var a=t.size,n=Wt(t,vL);return re("svg",W({height:a,width:a,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:bL},n))},cm=function(t){return re(RI,W({size:20},t),re("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},BI=function(t){return re(RI,W({size:20},t),re("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},NI=function(t,a){var n=t.isFocused,i=t.theme,r=i.spacing.baseUnit,o=i.colors;return ae({label:"indicatorContainer",display:"flex",transition:"color 150ms"},a?{}:{color:n?o.neutral60:o.neutral20,padding:r*2,":hover":{color:n?o.neutral80:o.neutral40}})},jI=NI,gL=function(t){var a=t.children,n=t.innerProps;return re("div",W({},Ze(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),a||re(BI,null))},LI=NI,xL=function(t){var a=t.children,n=t.innerProps;return re("div",W({},Ze(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),a||re(cm,null))},MI=function(t,a){var n=t.isDisabled,i=t.theme,r=i.spacing.baseUnit,o=i.colors;return ae({label:"indicatorSeparator",alignSelf:"stretch",width:1},a?{}:{backgroundColor:n?o.neutral10:o.neutral20,marginBottom:r*2,marginTop:r*2})},yL=function(t){var a=t.innerProps;return re("span",W({},a,Ze(t,"indicatorSeparator",{"indicator-separator":!0})))},wL=Y2(cI||(cI=Kf([` - 0%, 80%, 100% { opacity: 0; } - 40% { opacity: 1; } -`]))),DI=function(t,a){var n=t.isFocused,i=t.size,r=t.theme,o=r.colors,s=r.spacing.baseUnit;return ae({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},a?{}:{color:n?o.neutral60:o.neutral20,padding:s*2})},rm=function(t){var a=t.delay,n=t.offset;return re("span",{css:Gr({animation:"".concat(wL," 1s ease-in-out ").concat(a,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},zI=function(t){var a=t.innerProps,n=t.isRtl;return re("div",W({},Ze(t,"loadingIndicator",{indicator:!0,"loading-indicator":!0}),a),re(rm,{delay:0,offset:n}),re(rm,{delay:160,offset:!0}),re(rm,{delay:320,offset:!n}))};zI.defaultProps={size:4};var GI=function(t,a){var n=t.isDisabled,i=t.isFocused,r=t.theme,o=r.colors,s=r.borderRadius,l=r.spacing;return ae({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},a?{}:{backgroundColor:n?o.neutral5:o.neutral0,borderColor:n?o.neutral10:i?o.primary:o.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:i?o.primary:o.neutral30}})},EL=function(t){var a=t.children,n=t.isDisabled,i=t.isFocused,r=t.innerRef,o=t.innerProps,s=t.menuIsOpen;return re("div",W({ref:r},Ze(t,"control",{control:!0,"control--is-disabled":n,"control--is-focused":i,"control--menu-is-open":s}),o),a)},SL=EL,CL=["data"],HI=function(t,a){var n=t.theme.spacing;return a?{}:{paddingBottom:n.baseUnit*2,paddingTop:n.baseUnit*2}},AL=function(t){var a=t.children,n=t.cx,i=t.getStyles,r=t.getClassNames,o=t.Heading,s=t.headingProps,l=t.innerProps,u=t.label,c=t.theme,f=t.selectProps;return re("div",W({},Ze(t,"group",{group:!0}),l),re(o,W({},s,{selectProps:f,theme:c,getStyles:i,getClassNames:r,cx:n}),u),re("div",null,a))},WI=function(t,a){var n=t.theme,i=n.colors,r=n.spacing;return ae({label:"group",cursor:"default",display:"block"},a?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:r.baseUnit*3,paddingRight:r.baseUnit*3,textTransform:"uppercase"})},IL=function(t){var a=pI(t);a.data;var n=Wt(a,CL);return re("div",W({},Ze(t,"groupHeading",{"group-heading":!0}),n))},_L=AL,TL=["innerRef","isDisabled","isHidden","inputClassName"],VI=function(t,a){var n=t.isDisabled,i=t.value,r=t.theme,o=r.spacing,s=r.colors;return ae(ae({visibility:n?"hidden":"visible",transform:i?"translateZ(0)":""},kL),a?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:s.neutral80})},UI={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},kL={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ae({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},UI)},FL=function(t){return ae({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},UI)},PL=function(t){var a=t.cx,n=t.value,i=pI(t),r=i.innerRef,o=i.isDisabled,s=i.isHidden,l=i.inputClassName,u=Wt(i,TL);return re("div",W({},Ze(t,"input",{"input-container":!0}),{"data-value":n||""}),re("input",W({className:a({input:!0},l),ref:r,style:FL(s),disabled:o},u)))},OL=PL,JI=function(t,a){var n=t.theme,i=n.spacing,r=n.borderRadius,o=n.colors;return ae({label:"multiValue",display:"flex",minWidth:0},a?{}:{backgroundColor:o.neutral10,borderRadius:r/2,margin:i.baseUnit/2})},ZI=function(t,a){var n=t.theme,i=n.borderRadius,r=n.colors,o=t.cropWithEllipsis;return ae({overflow:"hidden",textOverflow:o||o===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},a?{}:{borderRadius:i/2,color:r.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},qI=function(t,a){var n=t.theme,i=n.spacing,r=n.borderRadius,o=n.colors,s=t.isFocused;return ae({alignItems:"center",display:"flex"},a?{}:{borderRadius:r/2,backgroundColor:s?o.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},XI=function(t){var a=t.children,n=t.innerProps;return re("div",n,a)},RL=XI,BL=XI;function NL(e){var t=e.children,a=e.innerProps;return re("div",W({role:"button"},a),t||re(cm,{size:14}))}var jL=function(t){var a=t.children,n=t.components,i=t.data,r=t.innerProps,o=t.isDisabled,s=t.removeProps,l=t.selectProps,u=n.Container,c=n.Label,f=n.Remove;return re(u,{data:i,innerProps:ae(ae({},Ze(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),r),selectProps:l},re(c,{data:i,innerProps:ae({},Ze(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},a),re(f,{data:i,innerProps:ae(ae({},Ze(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(a||"option")},s),selectProps:l}))},LL=jL,$I=function(t,a){var n=t.isDisabled,i=t.isFocused,r=t.isSelected,o=t.theme,s=o.spacing,l=o.colors;return ae({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},a?{}:{backgroundColor:r?l.primary:i?l.primary25:"transparent",color:n?l.neutral20:r?l.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:n?void 0:r?l.primary:l.primary50}})},ML=function(t){var a=t.children,n=t.isDisabled,i=t.isFocused,r=t.isSelected,o=t.innerRef,s=t.innerProps;return re("div",W({},Ze(t,"option",{option:!0,"option--is-disabled":n,"option--is-focused":i,"option--is-selected":r}),{ref:o,"aria-disabled":n},s),a)},DL=ML,YI=function(t,a){var n=t.theme,i=n.spacing,r=n.colors;return ae({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},a?{}:{color:r.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},zL=function(t){var a=t.children,n=t.innerProps;return re("div",W({},Ze(t,"placeholder",{placeholder:!0}),n),a)},GL=zL,KI=function(t,a){var n=t.isDisabled,i=t.theme,r=i.spacing,o=i.colors;return ae({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},a?{}:{color:n?o.neutral40:o.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},HL=function(t){var a=t.children,n=t.isDisabled,i=t.innerProps;return re("div",W({},Ze(t,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),i),a)},WL=HL,VL={ClearIndicator:xL,Control:SL,DropdownIndicator:gL,DownChevron:BI,CrossIcon:cm,Group:_L,GroupHeading:IL,IndicatorsContainer:hL,IndicatorSeparator:yL,Input:OL,LoadingIndicator:zI,Menu:uL,MenuList:pL,MenuPortal:dL,LoadingMessage:TI,NoOptionsMessage:_I,MultiValue:LL,MultiValueContainer:RL,MultiValueLabel:BL,MultiValueRemove:NL,Option:DL,Placeholder:GL,SelectContainer:fL,SingleValue:WL,ValueContainer:mL},QI=function(t){return ae(ae({},VL),t.components)};var e_=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function UL(e,t){return!!(e===t||e_(e)&&e_(t))}function JL(e,t){if(e.length!==t.length)return!1;for(var a=0;a1?"s":""," ").concat(r.join(","),", selected.");case"select-option":return o?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var a=t.context,n=t.focused,i=t.options,r=t.label,o=r===void 0?"":r,s=t.selectValue,l=t.isDisabled,u=t.isSelected,c=function(d,m){return d&&d.length?"".concat(d.indexOf(m)+1," of ").concat(d.length):""};if(a==="value"&&s)return"value ".concat(o," focused, ").concat(c(s,n),".");if(a==="menu"){var f=l?" disabled":"",p="".concat(u?"selected":"focused").concat(f);return"option ".concat(o," ").concat(p,", ").concat(c(i,n),".")}return""},onFilter:function(t){var a=t.inputValue,n=t.resultsMessage;return"".concat(n).concat(a?" for search term "+a:"",".")}},$L=function(t){var a=t.ariaSelection,n=t.focusedOption,i=t.focusedValue,r=t.focusableOptions,o=t.isFocused,s=t.selectValue,l=t.selectProps,u=t.id,c=l.ariaLiveMessages,f=l.getOptionLabel,p=l.inputValue,b=l.isMulti,d=l.isOptionDisabled,m=l.isSearchable,h=l.menuIsOpen,v=l.options,x=l.screenReaderStatus,E=l.tabSelectsValue,g=l["aria-label"],w=l["aria-live"],C=At(function(){return ae(ae({},XL),c||{})},[c]),y=At(function(){var j="";if(a&&C.onChange){var L=a.option,k=a.options,T=a.removedValue,N=a.removedValues,M=a.value,D=function(oe){return Array.isArray(oe)?null:oe},V=T||L||D(M),q=V?f(V):"",Z=k||N||void 0,pe=Z?Z.map(f):[],fe=ae({isDisabled:V&&d(V,s),label:q,labels:pe},a);j=C.onChange(fe)}return j},[a,C,d,s,f]),S=At(function(){var j="",L=n||i,k=!!(n&&s&&s.includes(n));if(L&&C.onFocus){var T={focused:L,label:f(L),isDisabled:d(L,s),isSelected:k,options:r,context:L===n?"menu":"value",selectValue:s};j=C.onFocus(T)}return j},[n,i,f,d,C,r,s]),A=At(function(){var j="";if(h&&v.length&&C.onFilter){var L=x({count:r.length});j=C.onFilter({inputValue:p,resultsMessage:L})}return j},[r,p,h,C,v,x]),_=At(function(){var j="";if(C.guidance){var L=i?"value":h?"menu":"input";j=C.guidance({"aria-label":g,context:L,isDisabled:n&&d(n,s),isMulti:b,isSearchable:m,tabSelectsValue:E})}return j},[g,n,i,b,d,m,h,C,s,E]),P="".concat(S," ").concat(A," ").concat(_),F=re(rt,null,re("span",{id:"aria-selection"},y),re("span",{id:"aria-context"},P)),B=(a==null?void 0:a.action)==="initial-input-focus";return re(rt,null,re(a_,{id:u},B&&F),re(a_,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text"},o&&!B&&F))},YL=$L,pm=[{base:"A",letters:"A\u24B6\uFF21\xC0\xC1\xC2\u1EA6\u1EA4\u1EAA\u1EA8\xC3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\xC4\u01DE\u1EA2\xC5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F"},{base:"AA",letters:"\uA732"},{base:"AE",letters:"\xC6\u01FC\u01E2"},{base:"AO",letters:"\uA734"},{base:"AU",letters:"\uA736"},{base:"AV",letters:"\uA738\uA73A"},{base:"AY",letters:"\uA73C"},{base:"B",letters:"B\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181"},{base:"C",letters:"C\u24B8\uFF23\u0106\u0108\u010A\u010C\xC7\u1E08\u0187\u023B\uA73E"},{base:"D",letters:"D\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779"},{base:"DZ",letters:"\u01F1\u01C4"},{base:"Dz",letters:"\u01F2\u01C5"},{base:"E",letters:"E\u24BA\uFF25\xC8\xC9\xCA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\xCB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E"},{base:"F",letters:"F\u24BB\uFF26\u1E1E\u0191\uA77B"},{base:"G",letters:"G\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E"},{base:"H",letters:"H\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D"},{base:"I",letters:"I\u24BE\uFF29\xCC\xCD\xCE\u0128\u012A\u012C\u0130\xCF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197"},{base:"J",letters:"J\u24BF\uFF2A\u0134\u0248"},{base:"K",letters:"K\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2"},{base:"L",letters:"L\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780"},{base:"LJ",letters:"\u01C7"},{base:"Lj",letters:"\u01C8"},{base:"M",letters:"M\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C"},{base:"N",letters:"N\u24C3\uFF2E\u01F8\u0143\xD1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4"},{base:"NJ",letters:"\u01CA"},{base:"Nj",letters:"\u01CB"},{base:"O",letters:"O\u24C4\uFF2F\xD2\xD3\xD4\u1ED2\u1ED0\u1ED6\u1ED4\xD5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\xD6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\xD8\u01FE\u0186\u019F\uA74A\uA74C"},{base:"OI",letters:"\u01A2"},{base:"OO",letters:"\uA74E"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754"},{base:"Q",letters:"Q\u24C6\uFF31\uA756\uA758\u024A"},{base:"R",letters:"R\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782"},{base:"S",letters:"S\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784"},{base:"T",letters:"T\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786"},{base:"TZ",letters:"\uA728"},{base:"U",letters:"U\u24CA\uFF35\xD9\xDA\xDB\u0168\u1E78\u016A\u1E7A\u016C\xDC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244"},{base:"V",letters:"V\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245"},{base:"VY",letters:"\uA760"},{base:"W",letters:"W\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72"},{base:"X",letters:"X\u24CD\uFF38\u1E8A\u1E8C"},{base:"Y",letters:"Y\u24CE\uFF39\u1EF2\xDD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE"},{base:"Z",letters:"Z\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762"},{base:"a",letters:"a\u24D0\uFF41\u1E9A\xE0\xE1\xE2\u1EA7\u1EA5\u1EAB\u1EA9\xE3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\xE4\u01DF\u1EA3\xE5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250"},{base:"aa",letters:"\uA733"},{base:"ae",letters:"\xE6\u01FD\u01E3"},{base:"ao",letters:"\uA735"},{base:"au",letters:"\uA737"},{base:"av",letters:"\uA739\uA73B"},{base:"ay",letters:"\uA73D"},{base:"b",letters:"b\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253"},{base:"c",letters:"c\u24D2\uFF43\u0107\u0109\u010B\u010D\xE7\u1E09\u0188\u023C\uA73F\u2184"},{base:"d",letters:"d\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A"},{base:"dz",letters:"\u01F3\u01C6"},{base:"e",letters:"e\u24D4\uFF45\xE8\xE9\xEA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\xEB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD"},{base:"f",letters:"f\u24D5\uFF46\u1E1F\u0192\uA77C"},{base:"g",letters:"g\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F"},{base:"h",letters:"h\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24D8\uFF49\xEC\xED\xEE\u0129\u012B\u012D\xEF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131"},{base:"j",letters:"j\u24D9\uFF4A\u0135\u01F0\u0249"},{base:"k",letters:"k\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3"},{base:"l",letters:"l\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747"},{base:"lj",letters:"\u01C9"},{base:"m",letters:"m\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F"},{base:"n",letters:"n\u24DD\uFF4E\u01F9\u0144\xF1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5"},{base:"nj",letters:"\u01CC"},{base:"o",letters:"o\u24DE\uFF4F\xF2\xF3\xF4\u1ED3\u1ED1\u1ED7\u1ED5\xF5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\xF6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\xF8\u01FF\u0254\uA74B\uA74D\u0275"},{base:"oi",letters:"\u01A3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\uA74F"},{base:"p",letters:"p\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755"},{base:"q",letters:"q\u24E0\uFF51\u024B\uA757\uA759"},{base:"r",letters:"r\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783"},{base:"s",letters:"s\u24E2\uFF53\xDF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B"},{base:"t",letters:"t\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787"},{base:"tz",letters:"\uA729"},{base:"u",letters:"u\u24E4\uFF55\xF9\xFA\xFB\u0169\u1E79\u016B\u1E7B\u016D\xFC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289"},{base:"v",letters:"v\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C"},{base:"vy",letters:"\uA761"},{base:"w",letters:"w\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73"},{base:"x",letters:"x\u24E7\uFF58\u1E8B\u1E8D"},{base:"y",letters:"y\u24E8\uFF59\u1EF3\xFD\u0177\u1EF9\u0233\u1E8F\xFF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF"},{base:"z",letters:"z\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763"}],KL=new RegExp("["+pm.map(function(e){return e.letters}).join("")+"]","g"),f_={};for(Ec=0;Ec-1}},aM=["innerRef"];function nM(e){var t=e.innerRef,a=Wt(e,aM),n=gI(a,"onExited","in","enter","exit","appear");return re("input",W({ref:t},n,{css:Gr({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var iM=function(t){t.preventDefault(),t.stopPropagation()};function rM(e){var t=e.isEnabled,a=e.onBottomArrive,n=e.onBottomLeave,i=e.onTopArrive,r=e.onTopLeave,o=ot(!1),s=ot(!1),l=ot(0),u=ot(null),c=Fe(function(h,v){if(u.current!==null){var x=u.current,E=x.scrollTop,g=x.scrollHeight,w=x.clientHeight,C=u.current,y=v>0,S=g-w-E,A=!1;S>v&&o.current&&(n&&n(h),o.current=!1),y&&s.current&&(r&&r(h),s.current=!1),y&&v>S?(a&&!o.current&&a(h),C.scrollTop=g,A=!0,o.current=!0):!y&&-v>E&&(i&&!s.current&&i(h),C.scrollTop=0,A=!0,s.current=!0),A&&iM(h)}},[a,n,i,r]),f=Fe(function(h){c(h,h.deltaY)},[c]),p=Fe(function(h){l.current=h.changedTouches[0].clientY},[]),b=Fe(function(h){var v=l.current-h.changedTouches[0].clientY;c(h,v)},[c]),d=Fe(function(h){if(h){var v=vI?{passive:!1}:!1;h.addEventListener("wheel",f,v),h.addEventListener("touchstart",p,v),h.addEventListener("touchmove",b,v)}},[b,p,f]),m=Fe(function(h){h&&(h.removeEventListener("wheel",f,!1),h.removeEventListener("touchstart",p,!1),h.removeEventListener("touchmove",b,!1))},[b,p,f]);return ha(function(){if(t){var h=u.current;return d(h),function(){m(h)}}},[t,d,m]),function(h){u.current=h}}var i_=["boxSizing","height","overflow","paddingRight","position"],r_={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function o_(e){e.preventDefault()}function s_(e){e.stopPropagation()}function l_(){var e=this.scrollTop,t=this.scrollHeight,a=e+this.offsetHeight;e===0?this.scrollTop=1:a===t&&(this.scrollTop=e-1)}function c_(){return"ontouchstart"in window||navigator.maxTouchPoints}var u_=!!(typeof window!="undefined"&&window.document&&window.document.createElement),Ur=0,Ai={capture:!1,passive:!1};function oM(e){var t=e.isEnabled,a=e.accountForScrollbars,n=a===void 0?!0:a,i=ot({}),r=ot(null),o=Fe(function(l){if(u_){var u=document.body,c=u&&u.style;if(n&&i_.forEach(function(d){var m=c&&c[d];i.current[d]=m}),n&&Ur<1){var f=parseInt(i.current.paddingRight,10)||0,p=document.body?document.body.clientWidth:0,b=window.innerWidth-p+f||0;Object.keys(r_).forEach(function(d){var m=r_[d];c&&(c[d]=m)}),c&&(c.paddingRight="".concat(b,"px"))}u&&c_()&&(u.addEventListener("touchmove",o_,Ai),l&&(l.addEventListener("touchstart",l_,Ai),l.addEventListener("touchmove",s_,Ai))),Ur+=1}},[n]),s=Fe(function(l){if(u_){var u=document.body,c=u&&u.style;Ur=Math.max(Ur-1,0),n&&Ur<1&&i_.forEach(function(f){var p=i.current[f];c&&(c[f]=p)}),u&&c_()&&(u.removeEventListener("touchmove",o_,Ai),l&&(l.removeEventListener("touchstart",l_,Ai),l.removeEventListener("touchmove",s_,Ai)))}},[n]);return ha(function(){if(t){var l=r.current;return o(l),function(){s(l)}}},[t,o,s]),function(l){r.current=l}}var sM=function(){return document.activeElement&&document.activeElement.blur()},lM={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function cM(e){var t=e.children,a=e.lockEnabled,n=e.captureEnabled,i=n===void 0?!0:n,r=e.onBottomArrive,o=e.onBottomLeave,s=e.onTopArrive,l=e.onTopLeave,u=rM({isEnabled:i,onBottomArrive:r,onBottomLeave:o,onTopArrive:s,onTopLeave:l}),c=oM({isEnabled:a}),f=function(b){u(b),c(b)};return re(rt,null,a&&re("div",{onClick:sM,css:lM}),t(f))}var uM={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},pM=function(t){var a=t.name,n=t.onFocus;return re("input",{required:!0,name:a,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:uM,value:"",onChange:function(){}})},dM=pM,fM=function(t){return t.label},mM=function(t){return t.label},hM=function(t){return t.value},vM=function(t){return!!t.isDisabled},bM={clearIndicator:LI,container:FI,control:GI,dropdownIndicator:jI,group:HI,groupHeading:WI,indicatorsContainer:OI,indicatorSeparator:MI,input:VI,loadingIndicator:DI,loadingMessage:II,menu:yI,menuList:SI,menuPortal:kI,multiValue:JI,multiValueLabel:ZI,multiValueRemove:qI,noOptionsMessage:AI,option:$I,placeholder:YI,singleValue:KI,valueContainer:PI};var gM={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},xM=4,h_=4,yM=38,wM=h_*2,EM={baseUnit:h_,controlHeight:yM,menuGutter:wM},um={borderRadius:xM,colors:gM,spacing:EM},SM={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:lm(),captureMenuScroll:!lm(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:tM(),formatGroupLabel:fM,getOptionLabel:mM,getOptionValue:hM,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:vM,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!mI(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var a=t.count;return"".concat(a," result").concat(a!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function p_(e,t,a,n){var i=x_(e,t,a),r=y_(e,t,a),o=g_(e,t),s=Ac(e,t);return{type:"option",data:t,isDisabled:i,isSelected:r,label:o,value:s,index:n}}function v_(e,t){return e.options.map(function(a,n){if("options"in a){var i=a.options.map(function(o,s){return p_(e,o,t,s)}).filter(function(o){return d_(e,o)});return i.length>0?{type:"group",data:a,options:i,index:n}:void 0}var r=p_(e,a,t,n);return d_(e,r)?r:void 0}).filter(bI)}function b_(e){return e.reduce(function(t,a){return a.type==="group"?t.push.apply(t,ql(a.options.map(function(n){return n.data}))):t.push(a.data),t},[])}function CM(e,t){return b_(v_(e,t))}function d_(e,t){var a=e.inputValue,n=a===void 0?"":a,i=t.data,r=t.isSelected,o=t.label,s=t.value;return(!E_(e)||!r)&&w_(e,{label:o,value:s,data:i},n)}function AM(e,t){var a=e.focusedValue,n=e.selectValue,i=n.indexOf(a);if(i>-1){var r=t.indexOf(a);if(r>-1)return a;if(i-1?a:t[0]}var g_=function(t,a){return t.getOptionLabel(a)},Ac=function(t,a){return t.getOptionValue(a)};function x_(e,t,a){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,a):!1}function y_(e,t,a){if(a.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,a);var n=Ac(e,t);return a.some(function(i){return Ac(e,i)===n})}function w_(e,t,a){return e.filterOption?e.filterOption(t,a):!0}var E_=function(t){var a=t.hideSelectedOptions,n=t.isMulti;return a===void 0?n:a},_M=1,dm=function(e){Tf(a,e);var t=Of(a);function a(n){var i;if(If(this,a),i=t.call(this,n),i.state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.instancePrefix="",i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.controlRef=null,i.getControlRef=function(s){i.controlRef=s},i.focusedOptionRef=null,i.getFocusedOptionRef=function(s){i.focusedOptionRef=s},i.menuListRef=null,i.getMenuListRef=function(s){i.menuListRef=s},i.inputRef=null,i.getInputRef=function(s){i.inputRef=s},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(s,l){var u=i.props,c=u.onChange,f=u.name;l.name=f,i.ariaOnChange(s,l),c(s,l)},i.setValue=function(s,l,u){var c=i.props,f=c.closeMenuOnSelect,p=c.isMulti,b=c.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:b}),f&&(i.setState({inputIsHiddenAfterUpdate:!p}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(s,{action:l,option:u})},i.selectOption=function(s){var l=i.props,u=l.blurInputOnSelect,c=l.isMulti,f=l.name,p=i.state.selectValue,b=c&&i.isOptionSelected(s,p),d=i.isOptionDisabled(s,p);if(b){var m=i.getOptionValue(s);i.setValue(p.filter(function(h){return i.getOptionValue(h)!==m}),"deselect-option",s)}else if(!d)c?i.setValue([].concat(ql(p),[s]),"select-option",s):i.setValue(s,"select-option");else{i.ariaOnChange(s,{action:"select-option",option:s,name:f});return}u&&i.blurInput()},i.removeValue=function(s){var l=i.props.isMulti,u=i.state.selectValue,c=i.getOptionValue(s),f=u.filter(function(b){return i.getOptionValue(b)!==c}),p=Vr(l,f,f[0]||null);i.onChange(p,{action:"remove-value",removedValue:s}),i.focusInput()},i.clearValue=function(){var s=i.state.selectValue;i.onChange(Vr(i.props.isMulti,[],null),{action:"clear",removedValues:s})},i.popValue=function(){var s=i.props.isMulti,l=i.state.selectValue,u=l[l.length-1],c=l.slice(0,l.length-1),f=Vr(s,c,c[0]||null);i.onChange(f,{action:"pop-value",removedValue:u})},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var s=arguments.length,l=new Array(s),u=0;up||f>p}},i.onTouchEnd=function(s){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(s.target)&&i.menuListRef&&!i.menuListRef.contains(s.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(s){i.userIsDragging||i.onControlMouseDown(s)},i.onClearIndicatorTouchEnd=function(s){i.userIsDragging||i.onClearIndicatorMouseDown(s)},i.onDropdownIndicatorTouchEnd=function(s){i.userIsDragging||i.onDropdownIndicatorMouseDown(s)},i.handleInputChange=function(s){var l=i.props.inputValue,u=s.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(u,{action:"input-change",prevInputValue:l}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(s){i.props.onFocus&&i.props.onFocus(s),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(s){var l=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(s),i.onInputChange("",{action:"input-blur",prevInputValue:l}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(s){i.blockOptionHover||i.state.focusedOption===s||i.setState({focusedOption:s})},i.shouldHideSelectedOptions=function(){return E_(i.props)},i.onValueInputFocus=function(s){s.preventDefault(),s.stopPropagation(),i.focus()},i.onKeyDown=function(s){var l=i.props,u=l.isMulti,c=l.backspaceRemovesValue,f=l.escapeClearsValue,p=l.inputValue,b=l.isClearable,d=l.isDisabled,m=l.menuIsOpen,h=l.onKeyDown,v=l.tabSelectsValue,x=l.openMenuOnFocus,E=i.state,g=E.focusedOption,w=E.focusedValue,C=E.selectValue;if(!d&&!(typeof h=="function"&&(h(s),s.defaultPrevented))){switch(i.blockOptionHover=!0,s.key){case"ArrowLeft":if(!u||p)return;i.focusValue("previous");break;case"ArrowRight":if(!u||p)return;i.focusValue("next");break;case"Delete":case"Backspace":if(p)return;if(w)i.removeValue(w);else{if(!c)return;u?i.popValue():b&&i.clearValue()}break;case"Tab":if(i.isComposing||s.shiftKey||!m||!v||!g||x&&i.isOptionSelected(g,C))return;i.selectOption(g);break;case"Enter":if(s.keyCode===229)break;if(m){if(!g||i.isComposing)return;i.selectOption(g);break}return;case"Escape":m?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:p}),i.onMenuClose()):b&&f&&i.clearValue();break;case" ":if(p)return;if(!m){i.openMenu("first");break}if(!g)return;i.selectOption(g);break;case"ArrowUp":m?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":m?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!m)return;i.focusOption("pageup");break;case"PageDown":if(!m)return;i.focusOption("pagedown");break;case"Home":if(!m)return;i.focusOption("first");break;case"End":if(!m)return;i.focusOption("last");break;default:return}s.preventDefault()}},i.instancePrefix="react-select-"+(i.props.instanceId||++_M),i.state.selectValue=om(n.value),n.menuIsOpen&&i.state.selectValue.length){var r=i.buildFocusableOptions(),o=r.indexOf(i.state.selectValue[0]);i.state.focusedOption=r[o]}return i}return _f(a,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&sm(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var r=this.props,o=r.isDisabled,s=r.menuIsOpen,l=this.state.isFocused;(l&&!o&&i.isDisabled||l&&s&&!i.menuIsOpen)&&this.focusInput(),l&&o&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!o&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(sm(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,r){this.props.onInputChange(i,r)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var r=this,o=this.state,s=o.selectValue,l=o.isFocused,u=this.buildFocusableOptions(),c=i==="first"?0:u.length-1;if(!this.props.isMulti){var f=u.indexOf(s[0]);f>-1&&(c=f)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[c]},function(){return r.onMenuOpen()})}},{key:"focusValue",value:function(i){var r=this.state,o=r.selectValue,s=r.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=o.indexOf(s);s||(l=-1);var u=o.length-1,c=-1;if(o.length){switch(i){case"previous":l===0?c=0:l===-1?c=u:c=l-1;break;case"next":l>-1&&l0&&arguments[0]!==void 0?arguments[0]:"first",r=this.props.pageSize,o=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var l=0,u=s.indexOf(o);o||(u=-1),i==="up"?l=u>0?u-1:s.length-1:i==="down"?l=(u+1)%s.length:i==="pageup"?(l=u-r,l<0&&(l=0)):i==="pagedown"?(l=u+r,l>s.length-1&&(l=s.length-1)):i==="last"&&(l=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[l],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(um):ae(ae({},um),this.props.theme):um}},{key:"getCommonProps",value:function(){var i=this.clearValue,r=this.cx,o=this.getStyles,s=this.getClassNames,l=this.getValue,u=this.selectOption,c=this.setValue,f=this.props,p=f.isMulti,b=f.isRtl,d=f.options,m=this.hasValue();return{clearValue:i,cx:r,getStyles:o,getClassNames:s,getValue:l,hasValue:m,isMulti:p,isRtl:b,options:d,selectOption:u,selectProps:f,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,r=i.isClearable,o=i.isMulti;return r===void 0?o:r}},{key:"isOptionDisabled",value:function(i,r){return x_(this.props,i,r)}},{key:"isOptionSelected",value:function(i,r){return y_(this.props,i,r)}},{key:"filterOption",value:function(i,r){return w_(this.props,i,r)}},{key:"formatOptionLabel",value:function(i,r){if(typeof this.props.formatOptionLabel=="function"){var o=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(i,{context:r,inputValue:o,selectValue:s})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,r=i.isDisabled,o=i.isSearchable,s=i.inputId,l=i.inputValue,u=i.tabIndex,c=i.form,f=i.menuIsOpen,p=i.required,b=this.getComponents(),d=b.Input,m=this.state,h=m.inputIsHidden,v=m.ariaSelection,x=this.commonProps,E=s||this.getElementId("input"),g=ae(ae(ae({"aria-autocomplete":"list","aria-expanded":f,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":p,role:"combobox"},f&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!o&&{"aria-readonly":!0}),this.hasValue()?(v==null?void 0:v.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return o?se(d,W({},x,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:E,innerRef:this.getInputRef,isDisabled:r,isHidden:h,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:l},g)):se(nM,W({id:E,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Hr,onFocus:this.onInputFocus,disabled:r,tabIndex:u,inputMode:"none",form:c,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,r=this.getComponents(),o=r.MultiValue,s=r.MultiValueContainer,l=r.MultiValueLabel,u=r.MultiValueRemove,c=r.SingleValue,f=r.Placeholder,p=this.commonProps,b=this.props,d=b.controlShouldRenderValue,m=b.isDisabled,h=b.isMulti,v=b.inputValue,x=b.placeholder,E=this.state,g=E.selectValue,w=E.focusedValue,C=E.isFocused;if(!this.hasValue()||!d)return v?null:se(f,W({},p,{key:"placeholder",isDisabled:m,isFocused:C,innerProps:{id:this.getElementId("placeholder")}}),x);if(h)return g.map(function(S,A){var _=S===w,P="".concat(i.getOptionLabel(S),"-").concat(i.getOptionValue(S));return se(o,W({},p,{components:{Container:s,Label:l,Remove:u},isFocused:_,isDisabled:m,key:P,index:A,removeProps:{onClick:function(){return i.removeValue(S)},onTouchEnd:function(){return i.removeValue(S)},onMouseDown:function(B){B.preventDefault()}},data:S}),i.formatOptionLabel(S,"value"))});if(v)return null;var y=g[0];return se(c,W({},p,{data:y,isDisabled:m}),this.formatOptionLabel(y,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),r=i.ClearIndicator,o=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!this.isClearable()||!r||l||!this.hasValue()||u)return null;var f={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return se(r,W({},o,{innerProps:f,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),r=i.LoadingIndicator,o=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!r||!u)return null;var f={"aria-hidden":"true"};return se(r,W({},o,{innerProps:f,isDisabled:l,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),r=i.DropdownIndicator,o=i.IndicatorSeparator;if(!r||!o)return null;var s=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused;return se(o,W({},s,{isDisabled:l,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),r=i.DropdownIndicator;if(!r)return null;var o=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return se(r,W({},o,{innerProps:u,isDisabled:s,isFocused:l}))}},{key:"renderMenu",value:function(){var i=this,r=this.getComponents(),o=r.Group,s=r.GroupHeading,l=r.Menu,u=r.MenuList,c=r.MenuPortal,f=r.LoadingMessage,p=r.NoOptionsMessage,b=r.Option,d=this.commonProps,m=this.state.focusedOption,h=this.props,v=h.captureMenuScroll,x=h.inputValue,E=h.isLoading,g=h.loadingMessage,w=h.minMenuHeight,C=h.maxMenuHeight,y=h.menuIsOpen,S=h.menuPlacement,A=h.menuPosition,_=h.menuPortalTarget,P=h.menuShouldBlockScroll,F=h.menuShouldScrollIntoView,B=h.noOptionsMessage,j=h.onMenuScrollToTop,L=h.onMenuScrollToBottom;if(!y)return null;var k=function(Z,pe){var fe=Z.type,ee=Z.data,oe=Z.isDisabled,U=Z.isSelected,X=Z.label,$=Z.value,he=m===ee,qe=oe?void 0:function(){return i.onOptionHover(ee)},ze=oe?void 0:function(){return i.selectOption(ee)},ht="".concat(i.getElementId("option"),"-").concat(pe),R={id:ht,onClick:ze,onMouseMove:qe,onMouseOver:qe,tabIndex:-1};return se(b,W({},d,{innerProps:R,data:ee,isDisabled:oe,isSelected:U,key:ht,label:X,type:fe,value:$,isFocused:he,innerRef:he?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(Z.data,"menu"))},T;if(this.hasOptions())T=this.getCategorizedOptions().map(function(q){if(q.type==="group"){var Z=q.data,pe=q.options,fe=q.index,ee="".concat(i.getElementId("group"),"-").concat(fe),oe="".concat(ee,"-heading");return se(o,W({},d,{key:ee,data:Z,options:pe,Heading:s,headingProps:{id:oe,data:q.data},label:i.formatGroupLabel(q.data)}),q.options.map(function(U){return k(U,"".concat(fe,"-").concat(U.index))}))}else if(q.type==="option")return k(q,"".concat(q.index))});else if(E){var N=g({inputValue:x});if(N===null)return null;T=se(f,d,N)}else{var M=B({inputValue:x});if(M===null)return null;T=se(p,d,M)}var D={minMenuHeight:w,maxMenuHeight:C,menuPlacement:S,menuPosition:A,menuShouldScrollIntoView:F},V=se(EI,W({},d,D),function(q){var Z=q.ref,pe=q.placerProps,fe=pe.placement,ee=pe.maxHeight;return se(l,W({},d,D,{innerRef:Z,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove,id:i.getElementId("listbox")},isLoading:E,placement:fe}),se(cM,{captureEnabled:v,onTopArrive:j,onBottomArrive:L,lockEnabled:P},function(oe){return se(u,W({},d,{innerRef:function(X){i.getMenuListRef(X),oe(X)},isLoading:E,maxHeight:ee,focusedOption:m}),T)}))});return _||A==="fixed"?se(c,W({},d,{appendTo:_,controlElement:this.controlRef,menuPlacement:S,menuPosition:A}),V):V}},{key:"renderFormField",value:function(){var i=this,r=this.props,o=r.delimiter,s=r.isDisabled,l=r.isMulti,u=r.name,c=r.required,f=this.state.selectValue;if(c&&!this.hasValue()&&!s)return se(dM,{name:u,onFocus:this.onValueInputFocus});if(!(!u||s))if(l)if(o){var p=f.map(function(m){return i.getOptionValue(m)}).join(o);return se("input",{name:u,type:"hidden",value:p})}else{var b=f.length>0?f.map(function(m,h){return se("input",{key:"i-".concat(h),name:u,type:"hidden",value:i.getOptionValue(m)})}):se("input",{name:u,type:"hidden",value:""});return se("div",null,b)}else{var d=f[0]?this.getOptionValue(f[0]):"";return se("input",{name:u,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,r=this.state,o=r.ariaSelection,s=r.focusedOption,l=r.focusedValue,u=r.isFocused,c=r.selectValue,f=this.getFocusableOptions();return se(YL,W({},i,{id:this.getElementId("live-region"),ariaSelection:o,focusedOption:s,focusedValue:l,isFocused:u,selectValue:c,focusableOptions:f}))}},{key:"render",value:function(){var i=this.getComponents(),r=i.Control,o=i.IndicatorsContainer,s=i.SelectContainer,l=i.ValueContainer,u=this.props,c=u.className,f=u.id,p=u.isDisabled,b=u.menuIsOpen,d=this.state.isFocused,m=this.commonProps=this.getCommonProps();return se(s,W({},m,{className:c,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:p,isFocused:d}),this.renderLiveRegion(),se(r,W({},m,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:p,isFocused:d,menuIsOpen:b}),se(l,W({},m,{isDisabled:p}),this.renderPlaceholderOrValue(),this.renderInput()),se(o,W({},m,{isDisabled:p}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,r){var o=r.prevProps,s=r.clearFocusValueOnUpdate,l=r.inputIsHiddenAfterUpdate,u=r.ariaSelection,c=r.isFocused,f=r.prevWasFocused,p=i.options,b=i.value,d=i.menuIsOpen,m=i.inputValue,h=i.isMulti,v=om(b),x={};if(o&&(b!==o.value||p!==o.options||d!==o.menuIsOpen||m!==o.inputValue)){var E=d?CM(i,v):[],g=s?AM(r,v):null,w=IM(r,E);x={selectValue:v,focusedOption:w,focusedValue:g,clearFocusValueOnUpdate:!1}}var C=l!=null&&i!==o?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},y=u,S=c&&f;return c&&!S&&(y={value:Vr(h,v,v[0]||null),options:v,action:"initial-input-focus"},S=!f),(u==null?void 0:u.action)==="initial-input-focus"&&(y=null),ae(ae(ae({},x),C),{},{prevProps:i,ariaSelection:y,prevWasFocused:S})}}]),a}(Ct);dm.defaultProps=SM;var TM=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function S_(e){var t=e.defaultInputValue,a=t===void 0?"":t,n=e.defaultMenuIsOpen,i=n===void 0?!1:n,r=e.defaultValue,o=r===void 0?null:r,s=e.inputValue,l=e.menuIsOpen,u=e.onChange,c=e.onInputChange,f=e.onMenuClose,p=e.onMenuOpen,b=e.value,d=Wt(e,TM),m=Re(s!==void 0?s:a),h=Le(m,2),v=h[0],x=h[1],E=Re(l!==void 0?l:i),g=Le(E,2),w=g[0],C=g[1],y=Re(b!==void 0?b:o),S=Le(y,2),A=S[0],_=S[1],P=Fe(function(N,M){typeof u=="function"&&u(N,M),_(N)},[u]),F=Fe(function(N,M){var D;typeof c=="function"&&(D=c(N,M)),x(D!==void 0?D:N)},[c]),B=Fe(function(){typeof p=="function"&&p(),C(!0)},[p]),j=Fe(function(){typeof f=="function"&&f(),C(!1)},[f]),L=s!==void 0?s:v,k=l!==void 0?l:w,T=b!==void 0?b:A;return ae(ae({},d),{},{inputValue:L,menuIsOpen:k,onChange:P,onInputChange:F,onMenuClose:j,onMenuOpen:B,value:T})}var kM=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function C_(e){var t=e.defaultOptions,a=t===void 0?!1:t,n=e.cacheOptions,i=n===void 0?!1:n,r=e.loadOptions;e.options;var o=e.isLoading,s=o===void 0?!1:o,l=e.onInputChange,u=e.filterOption,c=u===void 0?null:u,f=Wt(e,kM),p=f.inputValue,b=ot(void 0),d=ot(!1),m=Re(Array.isArray(a)?a:void 0),h=Le(m,2),v=h[0],x=h[1],E=Re(typeof p!="undefined"?p:""),g=Le(E,2),w=g[0],C=g[1],y=Re(a===!0),S=Le(y,2),A=S[0],_=S[1],P=Re(void 0),F=Le(P,2),B=F[0],j=F[1],L=Re([]),k=Le(L,2),T=k[0],N=k[1],M=Re(!1),D=Le(M,2),V=D[0],q=D[1],Z=Re({}),pe=Le(Z,2),fe=pe[0],ee=pe[1],oe=Re(void 0),U=Le(oe,2),X=U[0],$=U[1],he=Re(void 0),qe=Le(he,2),ze=qe[0],ht=qe[1];i!==ze&&(ee({}),ht(i)),a!==X&&(x(Array.isArray(a)?a:void 0),$(a)),ha(function(){return d.current=!0,function(){d.current=!1}},[]);var R=Fe(function(H,ne){if(!r)return ne();var K=r(H,ne);K&&typeof K.then=="function"&&K.then(ne,function(){return ne()})},[r]);ha(function(){a===!0&&R(w,function(H){d.current&&(x(H||[]),_(!!b.current))})},[]);var z=Fe(function(H,ne){var K=dI(H,ne,l);if(!K){b.current=void 0,C(""),j(""),N([]),_(!1),q(!1);return}if(i&&fe[K])C(K),j(K),N(fe[K]),_(!1),q(!1);else{var Ae=b.current={};C(K),_(!0),q(!B),R(K,function(ue){d&&Ae===b.current&&(b.current=void 0,_(!1),j(K),N(ue||[]),q(!1),ee(ue?ae(ae({},fe),{},jt({},K,ue)):fe))})}},[i,R,B,fe,l]),J=V?[]:w&&B?T:v||[];return ae(ae({},f),{},{options:J,isLoading:A||s,onInputChange:z,filterOption:c})}var FM=Nn(function(e,t){var a=C_(e),n=S_(a);return se(dm,W({ref:t},n))}),Jr=FM;function Aa(e){return Array.isArray?Array.isArray(e):O_(e)==="[object Array]"}var PM=1/0;function OM(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-PM?"-0":t}function RM(e){return e==null?"":OM(e)}function da(e){return typeof e=="string"}function F_(e){return typeof e=="number"}function BM(e){return e===!0||e===!1||NM(e)&&O_(e)=="[object Boolean]"}function P_(e){return typeof e=="object"}function NM(e){return P_(e)&&e!==null}function Bt(e){return e!=null}function fm(e){return!e.trim().length}function O_(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var jM="Incorrect 'index' type",LM=e=>`Invalid value for key ${e}`,MM=e=>`Pattern length exceeds max of ${e}.`,DM=e=>`Missing ${e} property in key`,zM=e=>`Property 'weight' in key '${e}' must be a positive integer`,A_=Object.prototype.hasOwnProperty,mm=class{constructor(t){this._keys=[],this._keyMap={};let a=0;t.forEach(n=>{let i=R_(n);a+=i.weight,this._keys.push(i),this._keyMap[i.id]=i,a+=i.weight}),this._keys.forEach(n=>{n.weight/=a})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function R_(e){let t=null,a=null,n=null,i=1,r=null;if(da(e)||Aa(e))n=e,t=I_(e),a=hm(e);else{if(!A_.call(e,"name"))throw new Error(DM("name"));let o=e.name;if(n=o,A_.call(e,"weight")&&(i=e.weight,i<=0))throw new Error(zM(o));t=I_(o),a=hm(o),r=e.getFn}return{path:t,id:a,weight:i,src:n,getFn:r}}function I_(e){return Aa(e)?e:e.split(".")}function hm(e){return Aa(e)?e.join("."):e}function GM(e,t){let a=[],n=!1,i=(r,o,s)=>{if(Bt(r))if(!o[s])a.push(r);else{let l=o[s],u=r[l];if(!Bt(u))return;if(s===o.length-1&&(da(u)||F_(u)||BM(u)))a.push(RM(u));else if(Aa(u)){n=!0;for(let c=0,f=u.length;ce.score===t.score?e.idx{this._keysMap[a.id]=n})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,da(this.docs[0])?this.docs.forEach((t,a)=>{this._addString(t,a)}):this.docs.forEach((t,a)=>{this._addObject(t,a)}),this.norm.clear())}add(t){let a=this.size();da(t)?this._addString(t,a):this._addObject(t,a)}removeAt(t){this.records.splice(t,1);for(let a=t,n=this.size();a{let o=i.getFn?i.getFn(t):this.getFn(t,i.path);if(Bt(o)){if(Aa(o)){let s=[],l=[{nestedArrIndex:-1,value:o}];for(;l.length;){let{nestedArrIndex:u,value:c}=l.pop();if(Bt(c))if(da(c)&&!fm(c)){let f={v:c,i:u,n:this.norm.get(c)};s.push(f)}else Aa(c)&&c.forEach((f,p)=>{l.push({nestedArrIndex:p,value:f})})}n.$[r]=s}else if(da(o)&&!fm(o)){let s={v:o,n:this.norm.get(o)};n.$[r]=s}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}};function B_(e,t,{getFn:a=le.getFn,fieldNormWeight:n=le.fieldNormWeight}={}){let i=new Zr({getFn:a,fieldNormWeight:n});return i.setKeys(e.map(R_)),i.setSources(t),i.create(),i}function qM(e,{getFn:t=le.getFn,fieldNormWeight:a=le.fieldNormWeight}={}){let{keys:n,records:i}=e,r=new Zr({getFn:t,fieldNormWeight:a});return r.setKeys(n),r.setIndexRecords(i),r}function Ic(e,{errors:t=0,currentLocation:a=0,expectedLocation:n=0,distance:i=le.distance,ignoreLocation:r=le.ignoreLocation}={}){let o=t/e.length;if(r)return o;let s=Math.abs(n-a);return i?o+s/i:s?1:o}function XM(e=[],t=le.minMatchCharLength){let a=[],n=-1,i=-1,r=0;for(let o=e.length;r=t&&a.push([n,i]),n=-1)}return e[r-1]&&r-n>=t&&a.push([n,r-1]),a}var wn=32;function $M(e,t,a,{location:n=le.location,distance:i=le.distance,threshold:r=le.threshold,findAllMatches:o=le.findAllMatches,minMatchCharLength:s=le.minMatchCharLength,includeMatches:l=le.includeMatches,ignoreLocation:u=le.ignoreLocation}={}){if(t.length>wn)throw new Error(MM(wn));let c=t.length,f=e.length,p=Math.max(0,Math.min(n,f)),b=r,d=p,m=s>1||l,h=m?Array(f):[],v;for(;(v=e.indexOf(t,d))>-1;){let y=Ic(t,{currentLocation:v,expectedLocation:p,distance:i,ignoreLocation:u});if(b=Math.min(y,b),d=v+c,m){let S=0;for(;S=_;j-=1){let L=j-1,k=a[e.charAt(L)];if(m&&(h[L]=+!!k),F[j]=(F[j+1]<<1|1)&k,y&&(F[j]|=(x[j+1]|x[j])<<1|1|x[j+1]),F[j]&w&&(E=Ic(t,{errors:y,currentLocation:L,expectedLocation:p,distance:i,ignoreLocation:u}),E<=b)){if(b=E,d=L,d<=p)break;_=Math.max(1,2*p-d)}}if(Ic(t,{errors:y+1,currentLocation:p,expectedLocation:p,distance:i,ignoreLocation:u})>b)break;x=F}let C={isMatch:d>=0,score:Math.max(.001,E)};if(m){let y=XM(h,s);y.length?l&&(C.indices=y):C.isMatch=!1}return C}function YM(e){let t={};for(let a=0,n=e.length;a{this.chunks.push({pattern:p,alphabet:YM(p),startIndex:b})},f=this.pattern.length;if(f>wn){let p=0,b=f%wn,d=f-b;for(;p{let{isMatch:v,score:x,indices:E}=$M(t,d,m,{location:i+h,distance:r,threshold:o,findAllMatches:s,minMatchCharLength:l,includeMatches:n,ignoreLocation:u});v&&(p=!0),f+=x,v&&E&&(c=[...c,...E])});let b={isMatch:p,score:p?f/this.chunks.length:1};return p&&n&&(b.indices=c),b}},fa=class{constructor(t){this.pattern=t}static isMultiMatch(t){return __(t,this.multiRegex)}static isSingleMatch(t){return __(t,this.singleRegex)}search(){}};function __(e,t){let a=e.match(t);return a?a[1]:null}var vm=class extends fa{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){let a=t===this.pattern;return{isMatch:a,score:a?0:1,indices:[0,this.pattern.length-1]}}},bm=class extends fa{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){let n=t.indexOf(this.pattern)===-1;return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}},gm=class extends fa{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){let a=t.startsWith(this.pattern);return{isMatch:a,score:a?0:1,indices:[0,this.pattern.length-1]}}},xm=class extends fa{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){let a=!t.startsWith(this.pattern);return{isMatch:a,score:a?0:1,indices:[0,t.length-1]}}},ym=class extends fa{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){let a=t.endsWith(this.pattern);return{isMatch:a,score:a?0:1,indices:[t.length-this.pattern.length,t.length-1]}}},wm=class extends fa{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){let a=!t.endsWith(this.pattern);return{isMatch:a,score:a?0:1,indices:[0,t.length-1]}}},Tc=class extends fa{constructor(t,{location:a=le.location,threshold:n=le.threshold,distance:i=le.distance,includeMatches:r=le.includeMatches,findAllMatches:o=le.findAllMatches,minMatchCharLength:s=le.minMatchCharLength,isCaseSensitive:l=le.isCaseSensitive,ignoreLocation:u=le.ignoreLocation}={}){super(t),this._bitapSearch=new _c(t,{location:a,threshold:n,distance:i,includeMatches:r,findAllMatches:o,minMatchCharLength:s,isCaseSensitive:l,ignoreLocation:u})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}},kc=class extends fa{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let a=0,n,i=[],r=this.pattern.length;for(;(n=t.indexOf(this.pattern,a))>-1;)a=n+r,i.push([n,a-1]);let o=!!i.length;return{isMatch:o,score:o?0:1,indices:i}}},Em=[vm,kc,gm,xm,wm,ym,bm,Tc],T_=Em.length,KM=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,QM="|";function eD(e,t={}){return e.split(QM).map(a=>{let n=a.trim().split(KM).filter(r=>r&&!!r.trim()),i=[];for(let r=0,o=n.length;r!!(e[Fc.AND]||e[Fc.OR]),nD=e=>!!e[Im.PATH],iD=e=>!Aa(e)&&P_(e)&&!_m(e),k_=e=>({[Fc.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function N_(e,t,{auto:a=!0}={}){let n=i=>{let r=Object.keys(i),o=nD(i);if(!o&&r.length>1&&!_m(i))return n(k_(i));if(iD(i)){let l=o?i[Im.PATH]:r[0],u=o?i[Im.PATTERN]:i[l];if(!da(u))throw new Error(LM(l));let c={keyId:hm(l),pattern:u};return a&&(c.searcher=Am(u,t)),c}let s={children:[],operator:r[0]};return r.forEach(l=>{let u=i[l];Aa(u)&&u.forEach(c=>{s.children.push(n(c))})}),s};return _m(e)||(e=k_(e)),n(e)}function rD(e,{ignoreFieldNorm:t=le.ignoreFieldNorm}){e.forEach(a=>{let n=1;a.matches.forEach(({key:i,norm:r,score:o})=>{let s=i?i.weight:null;n*=Math.pow(o===0&&s?Number.EPSILON:o,(s||1)*(t?1:r))}),a.score=n})}function oD(e,t){let a=e.matches;t.matches=[],Bt(a)&&a.forEach(n=>{if(!Bt(n.indices)||!n.indices.length)return;let{indices:i,value:r}=n,o={indices:i,value:r};n.key&&(o.key=n.key.src),n.idx>-1&&(o.refIndex=n.idx),t.matches.push(o)})}function sD(e,t){t.score=e.score}function lD(e,t,{includeMatches:a=le.includeMatches,includeScore:n=le.includeScore}={}){let i=[];return a&&i.push(oD),n&&i.push(sD),e.map(r=>{let{idx:o}=r,s={item:t[o],refIndex:o};return i.length&&i.forEach(l=>{l(r,s)}),s})}var qt=class{constructor(t,a={},n){this.options={...le,...a},this.options.useExtendedSearch,this._keyStore=new mm(this.options.keys),this.setCollection(t,n)}setCollection(t,a){if(this._docs=t,a&&!(a instanceof Zr))throw new Error(jM);this._myIndex=a||B_(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){Bt(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){let a=[];for(let n=0,i=this._docs.length;n-1&&(l=l.slice(0,a)),lD(l,this._docs,{includeMatches:n,includeScore:i})}_searchStringList(t){let a=Am(t,this.options),{records:n}=this._myIndex,i=[];return n.forEach(({v:r,i:o,n:s})=>{if(!Bt(r))return;let{isMatch:l,score:u,indices:c}=a.searchIn(r);l&&i.push({item:r,idx:o,matches:[{score:u,value:r,norm:s,indices:c}]})}),i}_searchLogical(t){let a=N_(t,this.options),n=(s,l,u)=>{if(!s.children){let{keyId:f,searcher:p}=s,b=this._findMatches({key:this._keyStore.get(f),value:this._myIndex.getValueForItemAtKeyId(l,f),searcher:p});return b&&b.length?[{idx:u,item:l,matches:b}]:[]}let c=[];for(let f=0,p=s.children.length;f{if(Bt(s)){let u=n(a,s,l);u.length&&(r[l]||(r[l]={idx:l,item:s,matches:[]},o.push(r[l])),u.forEach(({matches:c})=>{r[l].matches.push(...c)}))}}),o}_searchObjectList(t){let a=Am(t,this.options),{keys:n,records:i}=this._myIndex,r=[];return i.forEach(({$:o,i:s})=>{if(!Bt(o))return;let l=[];n.forEach((u,c)=>{l.push(...this._findMatches({key:u,value:o[c],searcher:a}))}),l.length&&r.push({idx:s,item:o,matches:l})}),r}_findMatches({key:t,value:a,searcher:n}){if(!Bt(a))return[];let i=[];if(Aa(a))a.forEach(({v:r,i:o,n:s})=>{if(!Bt(r))return;let{isMatch:l,score:u,indices:c}=n.searchIn(r);l&&i.push({score:u,key:t,value:r,idx:o,norm:s,indices:c})});else{let{v:r,n:o}=a,{isMatch:s,score:l,indices:u}=n.searchIn(r);s&&i.push({score:l,key:t,value:r,norm:o,indices:u})}return i}};qt.version="6.6.2";qt.createIndex=B_;qt.parseIndex=qM;qt.config=le;qt.parseQuery=N_;aD(Sm);var qr=[{value:"academy-of-management-review",label:"Academy of Management Review"},{value:"accident-analysis-and-prevention",label:"Accident Analysis and Prevention"},{value:"aci-materials-journal",label:"ACI Materials Journal"},{value:"acm-sig-proceedings-long-author-list",label:'ACM SIG Proceedings ("et al." for 15+ authors)'},{value:"acm-sig-proceedings",label:'ACM SIG Proceedings ("et al." for 3+ authors)'},{value:"acm-sigchi-proceedings-extended-abstract-format",label:"ACM SIGCHI Proceedings - Extended Abstract Format"},{value:"acm-sigchi-proceedings",label:"ACM SIGCHI Proceedings (2016)"},{value:"acm-siggraph",label:"ACM SIGGRAPH"},{value:"acme-an-international-journal-for-critical-geographies",label:"ACME: An International Journal for Critical Geographies"},{value:"acta-amazonica",label:"Acta Amazonica"},{value:"acta-anaesthesiologica-scandinavica",label:"Acta Anaesthesiologica Scandinavica"},{value:"acta-anaesthesiologica-taiwanica",label:"Acta Anaesthesiologica Taiwanica"},{value:"acta-botanica-croatica",label:"Acta Botanica Croatica"},{value:"acta-chiropterologica",label:"Acta Chiropterologica"},{value:"acta-chirurgiae-orthopaedicae-et-traumatologiae-cechoslovaca",label:"Acta chirurgiae orthopaedicae et traumatologiae \u010Cechoslovaca"},{value:"acta-hydrotechnica",label:"Acta hydrotechnica"},{value:"acta-ichthyologica-et-piscatoria",label:"Acta Ichthyologica et Piscatoria"},{value:"acta-medica-peruana",label:"Acta M\xE9dica Peruana"},{value:"acta-naturae",label:"Acta Naturae"},{value:"acta-neurobiologiae-experimentalis",label:"Acta Neurobiologiae Experimentalis"},{value:"acta-neurochirurgica",label:"Acta Neurochirurgica"},{value:"acta-ophthalmologica",label:"Acta Ophthalmologica"},{value:"acta-ornithologica",label:"Acta Ornithologica"},{value:"acta-orthopaedica-belgica",label:"Acta Orthop\xE6dica Belgica"},{value:"acta-orthopaedica",label:"Acta Orthopaedica"},{value:"acta-paediatrica",label:"Acta Paediatrica"},{value:"acta-palaeontologica-polonica",label:"Acta Palaeontologica Polonica"},{value:"acta-pharmaceutica-sinica-b",label:"Acta Pharmaceutica Sinica B"},{value:"acta-pharmaceutica",label:"Acta Pharmaceutica"},{value:"acta-philosophica",label:"Acta Philosophica"},{value:"acta-physica-sinica",label:"Acta Physica Sinica (\u7269\u7406\u5B66\u62A5)"},{value:"acta-physiologica",label:"Acta Physiologica"},{value:"acta-polytechnica",label:"Acta Polytechnica"},{value:"acta-radiologica",label:"Acta Radiologica"},{value:"acta-scientiae-veterinariae",label:"Acta Scientiae Veterinariae"},{value:"acta-societatis-botanicorum-poloniae",label:"Acta Societatis Botanicorum Poloniae"},{value:"acta-universitatis-agriculturae-et-silviculturae-mendelianae-brunensis",label:"Acta Universitatis Agriculturae et Silviculturae Mendelianae Brunensis"},{value:"acta-universitatis-agriculturae-sueciae",label:"Acta Universitatis Agriculturae Sueciae (Swedish University of Agricultural Sciences)"},{value:"acta-zoologica-academiae-scientiarum-hungaricae",label:"Acta Zoologica Academiae Scientiarum Hungaricae"},{value:"administrative-science-quarterly",label:"Administrative Science Quarterly"},{value:"advanced-engineering-materials",label:"Advanced Engineering Materials"},{value:"advanced-functional-materials",label:"Advanced Functional Materials"},{value:"advanced-healthcare-materials",label:"Advanced Healthcare Materials"},{value:"advanced-materials",label:"Advanced Materials"},{value:"advanced-optical-materials",label:"Advanced Optical Materials"},{value:"advanced-pharmaceutical-bulletin",label:"Advanced Pharmaceutical Bulletin"},{value:"advances-in-alzheimers-disease",label:"Advances in Alzheimer's Disease"},{value:"advances-in-complex-systems",label:"Advances in Complex Systems"},{value:"aerosol-and-air-quality-research",label:"Aerosol and Air Quality Research"},{value:"aerosol-science-and-technology",label:"Aerosol Science and Technology"},{value:"aerospace-medicine-and-human-performance",label:"Aerospace Medicine and Human Performance"},{value:"african-journal-of-marine-science",label:"African Journal of Marine Science"},{value:"african-online-scientific-information-systems-harvard",label:"African Online Scientific Information Systems - Harvard"},{value:"african-online-scientific-information-systems-vancouver",label:"African Online Scientific Information Systems - Vancouver"},{value:"african-zoology",label:"African Zoology"},{value:"afro-asia",label:"Afro-\xC1sia (Portugu\xEAs - Brasil)"},{value:"age-and-ageing",label:"Age and Ageing"},{value:"ageing-and-society",label:"Ageing & Society"},{value:"aging-and-disease",label:"Aging and Disease"},{value:"aging-cell",label:"Aging Cell"},{value:"aging",label:"Aging"},{value:"agora",label:"Agora"},{value:"agriculturae-conspectus-scientificus",label:"Agriculturae Conspectus Scientificus"},{value:"aib-studi",label:"AIB studi (Italiano)"},{value:"aids",label:"AIDS"},{value:"aims-press",label:"AIMS Press"},{value:"aix-marseille-universite-departement-d-etudes-asiatiques",label:"Aix-Marseille Universit\xE9 - D\xE9partement d'\xE9tudes asiatiques (Fran\xE7ais)"},{value:"al-jamiah-journal-of-islamic-studies",label:"Al-Jami'ah - Journal of Islamic Studies"},{value:"alcohol-and-alcoholism",label:"Alcohol and Alcoholism"},{value:"alcoholism-clinical-and-experimental-research",label:"Alcoholism: Clinical and Experimental Research"},{value:"alkoholizmus-a-drogove-zavislosti",label:"Alkoholizmus a drogov\xE9 z\xE1vislosti"},{value:"allergology-international",label:"Allergology International"},{value:"allergy",label:"Allergy"},{value:"alternatif-politika",label:"Alternatif Politika"},{value:"alternatives-to-animal-experimentation",label:"Alternatives to Animal Experimentation"},{value:"ambio",label:"AMBIO"},{value:"ameghiniana",label:"Ameghiniana"},{value:"american-anthropological-association",label:"American Anthropological Association"},{value:"american-association-for-cancer-research",label:"American Association for Cancer Research"},{value:"american-association-of-petroleum-geologists",label:"American Association of Petroleum Geologists"},{value:"american-chemical-society",label:"American Chemical Society"},{value:"american-fisheries-society",label:"American Fisheries Society"},{value:"american-geophysical-union",label:"American Geophysical Union"},{value:"american-heart-association",label:"American Heart Association"},{value:"american-institute-of-aeronautics-and-astronautics",label:"American Institute of Aeronautics and Astronautics"},{value:"american-institute-of-physics",label:"American Institute of Physics"},{value:"american-journal-of-agricultural-economics",label:"American Journal of Agricultural Economics"},{value:"american-journal-of-archaeology",label:"American Journal of Archaeology"},{value:"american-journal-of-botany",label:"American Journal of Botany"},{value:"american-journal-of-climate-change",label:"American Journal of Climate Change"},{value:"american-journal-of-clinical-pathology",label:"American Journal of Clinical Pathology"},{value:"american-journal-of-enology-and-viticulture",label:"American Journal of Enology and Viticulture"},{value:"american-journal-of-epidemiology",label:"American Journal of Epidemiology"},{value:"american-journal-of-health-behavior",label:"American Journal of Health Behavior"},{value:"american-journal-of-hypertension",label:"American Journal of Hypertension"},{value:"american-journal-of-medical-genetics",label:"American Journal of Medical Genetics"},{value:"american-journal-of-neuroradiology",label:"American Journal of Neuroradiology"},{value:"american-journal-of-orthodontics-and-dentofacial-orthopedics",label:"American Journal of Orthodontics & Dentofacial Orthopedics"},{value:"american-journal-of-plant-sciences",label:"American Journal of Plant Sciences"},{value:"american-journal-of-political-science",label:"American Journal of Political Science"},{value:"american-journal-of-respiratory-and-critical-care-medicine",label:"American Journal of Respiratory and Critical Care Medicine"},{value:"american-journal-of-science",label:"American Journal of Science"},{value:"american-journal-of-sociology",label:"American Journal of Sociology"},{value:"american-journal-of-sonography",label:"American Journal of Sonography"},{value:"american-journal-of-surgical-pathology",label:"American Journal of Surgical Pathology"},{value:"american-journal-of-translational-research",label:"American Journal of Translational Research"},{value:"american-marketing-association",label:"American Marketing Association"},{value:"american-medical-association-10th-edition",label:"American Medical Association 10th edition"},{value:"american-medical-association-alphabetical",label:"American Medical Association 11th edition (sorted alphabetically)"},{value:"american-medical-association-brackets",label:"American Medical Association 11th edition (brackets)"},{value:"american-medical-association-no-et-al",label:'American Medical Association 11th edition (no "et al.")'},{value:"american-medical-association-no-url",label:"American Medical Association 11th edition (no URL)"},{value:"american-medical-association",label:"American Medical Association 11th edition"},{value:"american-meteorological-society",label:"American Meteorological Society"},{value:"american-mineralogist",label:"American Mineralogist"},{value:"american-nuclear-society",label:"American Nuclear Society"},{value:"american-physical-society-et-al",label:"American Physical Society - et al. (if more than 3 authors)"},{value:"american-physics-society-without-titles",label:"American Physical Society (without titles)"},{value:"american-physics-society",label:"American Physical Society"},{value:"american-physiological-society",label:"American Physiological Society"},{value:"american-phytopathological-society",label:"American Phytopathological Society"},{value:"american-political-science-association",label:"American Political Science Association"},{value:"american-school-of-classical-studies-at-athens",label:"American School of Classical Studies at Athens"},{value:"american-society-for-horticultural-science",label:"American Society for Horticultural Science"},{value:"american-society-for-microbiology",label:"American Society for Microbiology"},{value:"american-society-for-pharmacology-and-experimental-therapeutics",label:"American Society for Pharmacology and Experimental Therapeutics"},{value:"american-society-of-agricultural-and-biological-engineers",label:"American Society of Agricultural and Biological Engineers"},{value:"american-society-of-civil-engineers",label:"American Society of Civil Engineers"},{value:"american-society-of-mechanical-engineers",label:"American Society of Mechanical Engineers"},{value:"american-sociological-association",label:"American Sociological Association 6th edition"},{value:"american-statistical-association",label:"American Statistical Association"},{value:"american-veterinary-medical-association",label:"American Veterinary Medical Association"},{value:"amerindia",label:"Amerindia"},{value:"amphibia-reptilia",label:"Amphibia-Reptilia"},{value:"amsterdam-university-press-academic",label:"Amsterdam University Press - Academic"},{value:"anabases",label:"Anabases"},{value:"anaesthesia",label:"Anaesthesia"},{value:"analytical-sciences",label:"Analytical Sciences"},{value:"anatomical-sciences-education",label:"Anatomical Sciences Education"},{value:"ancilla-iuris",label:"Ancilla Iuris"},{value:"andean-geology",label:"Andean Geology"},{value:"anesthesia-and-analgesia",label:"Anesthesia and Analgesia"},{value:"anesthesiology",label:"Anesthesiology"},{value:"angewandte-chemie",label:"Angewandte Chemie International Edition"},{value:"angiologia",label:"Angiologia (Espa\xF1ol)"},{value:"anglia",label:"Anglia"},{value:"animal-conservation",label:"Animal Conservation"},{value:"animal-migration",label:"Animal Migration"},{value:"animal-welfare",label:"Animal Welfare"},{value:"animal",label:"animal"},{value:"annalen-des-naturhistorischen-museums-in-wien",label:"Annalen des Naturhistorischen Museums in Wien"},{value:"annales-de-demographie-historique",label:"Annales de d\xE9mographie historique"},{value:"annales",label:"Annales. Histoire, Sciences sociales (Fran\xE7ais)"},{value:"annals-of-applied-biology",label:"Annals of Applied Biology"},{value:"annals-of-behavioral-medicine",label:"Annals of Behavioral Medicine"},{value:"annals-of-biomedical-engineering",label:"Annals of Biomedical Engineering"},{value:"annals-of-botany",label:"Annals of Botany"},{value:"annals-of-eye-science",label:"Annals of Eye Science"},{value:"annals-of-joint",label:"Annals of Joint"},{value:"annals-of-laboratory-medicine",label:"Annals of Laboratory Medicine"},{value:"annals-of-neurology",label:"Annals of Neurology"},{value:"annals-of-oncology",label:"Annals of Oncology"},{value:"annals-of-public-and-cooperative-economics",label:"Annals of Public and Cooperative Economics"},{value:"annals-of-surgery",label:"Annals of Surgery"},{value:"annals-of-the-association-of-american-geographers",label:"Annals of the Association of American Geographers"},{value:"annals-of-the-new-york-academy-of-sciences",label:"Annals of the New York Academy of Sciences"},{value:"annals-of-work-exposures-and-health",label:"Annals of Work Exposures and Health"},{value:"annual-review-of-astronomy-and-astrophysics",label:"Annual Review of Astronomy and Astrophysics"},{value:"annual-review-of-linguistics",label:"Annual Review of Linguistics"},{value:"annual-review-of-medicine",label:"Annual Review of Medicine"},{value:"annual-review-of-nuclear-and-particle-science",label:"Annual Review of Nuclear and Particle Science"},{value:"annual-reviews-alphabetical",label:"Annual Reviews (sorted alphabetically)"},{value:"annual-reviews-author-date",label:"Annual Reviews (author-date)"},{value:"annual-reviews-without-titles",label:"Annual Reviews (sorted by order of appearance, without titles)"},{value:"annual-reviews",label:"Annual Reviews (sorted by order of appearance)"},{value:"antarctic-science",label:"Antarctic Science"},{value:"anthropologie-et-societes",label:"Anthropologie et Soci\xE9t\xE9s (Fran\xE7ais)"},{value:"anti-trafficking-review",label:"Anti-Trafficking Review"},{value:"anticancer-research",label:"Anticancer Research"},{value:"antipode",label:"Antipode"},{value:"antiquites-africaines",label:"Antiquit\xE9s africaines"},{value:"antiquity",label:"Antiquity"},{value:"apa-5th-edition",label:"American Psychological Association 5th edition"},{value:"apa-6th-edition-no-ampersand",label:"American Psychological Association 6th edition (no ampersand)"},{value:"apa-6th-edition",label:"American Psychological Association 6th edition"},{value:"apa-annotated-bibliography",label:"American Psychological Association 7th edition (annotated bibliography)"},{value:"apa-cv",label:"American Psychological Association 7th edition (curriculum vitae, sorted by descending date)"},{value:"apa-fr-provost",label:"American Psychological Association 6th edition (Provost) (Fran\xE7ais - Canada)"},{value:"apa-no-ampersand",label:"American Psychological Association 7th edition (no ampersand)"},{value:"apa-no-doi-no-issue",label:"American Psychological Association 6th edition (no DOIs, no issue numbers)"},{value:"apa-no-initials",label:"American Psychological Association 7th edition (no initials)"},{value:"apa-numeric-superscript-brackets",label:"American Psychological Association 7th edition (numeric, brackets)"},{value:"apa-numeric-superscript",label:"American Psychological Association 7th edition (numeric, superscript)"},{value:"apa-old-doi-prefix",label:'American Psychological Association 6th edition ("doi:" DOI prefix)'},{value:"apa-single-spaced",label:"American Psychological Association 7th edition (single-spaced bibliography)"},{value:"apa-tr",label:"American Psychological Association 6th edition (T\xFCrk\xE7e)"},{value:"apa-with-abstract",label:"American Psychological Association 7th edition (with abstract)"},{value:"apa",label:"American Psychological Association 7th edition"},{value:"aporia-the-nursing-journal",label:"Aporia: The Nursing Journal"},{value:"applied-clay-science",label:"Applied Clay Science"},{value:"applied-spectroscopy-reviews",label:"Applied Spectroscopy Reviews"},{value:"applied-spectroscopy",label:"Applied Spectroscopy"},{value:"aquatic-conservation",label:"Aquatic Conservation: Marine and Freshwater Ecosystems"},{value:"aquatic-invasions",label:"Aquatic Invasions"},{value:"aquatic-living-resources",label:"Aquatic Living Resources"},{value:"aquitania",label:"Aquitania (Fran\xE7ais)"},{value:"arachne",label:"Arachne"},{value:"arachnology",label:"Arachnology"},{value:"arbok-hins-islenzka-fornleifafelags",label:"\xC1rb\xF3k Hins \xEDslenzka fornleifaf\xE9lags (\xCDslenska)"},{value:"archaeologia-austriaca",label:"Archaeologia Austriaca"},{value:"archaeometry",label:"Archaeometry"},{value:"archaeonautica",label:"Archaeonautica"},{value:"archeologia-classica",label:"Archeologia Classica (Italiano)"},{value:"archeologicke-rozhledy",label:"Archeologick\xE9 rozhledy"},{value:"archeologie-medievale",label:"Arch\xE9ologie m\xE9di\xE9vale (Fran\xE7ais)"},{value:"archeologies-et-sciences-de-lantiquite",label:"Arch\xE9ologies et Sciences de l'Antiquit\xE9 (Fran\xE7ais)"},{value:"archeosciences",label:"ArcheoSciences (Fran\xE7ais)"},{value:"archiv-fur-die-civilistische-praxis",label:"Archiv f\xFCr die civilistische Praxis (Deutsch)"},{value:"archiv-fur-geschichte-der-philosophie",label:"Archiv f\xFCr Geschichte der Philosophie"},{value:"archives-of-hand-and-microsurgery",label:"Archives of Hand and Microsurgery"},{value:"archives-of-physical-medicine-and-rehabilitation",label:"Archives of Physical Medicine and Rehabilitation"},{value:"archivos-de-bronconeumologia",label:"Archivos de Bronconeumolog\xEDa"},{value:"archivos-de-la-sociedad-espanola-de-oftalmologia",label:"Archivos de la Sociedad Espa\xF1ola de Oftalmolog\xEDa (Espa\xF1ol)"},{value:"archivum-latinitatis-medii-aevi",label:"Archivum Latinitatis Medii Aevi (Fran\xE7ais)"},{value:"arctic-antarctic-and-alpine-research",label:"Arctic, Antarctic, and Alpine Research"},{value:"arctic",label:"Arctic"},{value:"arhiv-za-higijenu-rada-i-toksikologiju",label:"Arhiv za higijenu rada i toksikologiju (Archives of Industrial Hygiene and Toxicology)"},{value:"art-history",label:"Art History"},{value:"art-libraries-society-of-north-america-arlisna-reviews",label:"Art Libraries Society of North America: ARLIS/NA Reviews"},{value:"artery-research",label:"Artery Research"},{value:"arthritis-and-rheumatism",label:"Arthritis & Rheumatism"},{value:"arthropod-systematics-and-phylogeny",label:"Arthropod Systematics & Phylogeny"},{value:"arts-university-bournemouth",label:"Arts University Bournemouth"},{value:"arzneimitteltherapie",label:"Arzneimitteltherapie"},{value:"asa-cssa-sssa",label:"American Society of Agronomy, Crop Science Society of America, Soil Science Society of America"},{value:"asaio-journal",label:"ASAIO Journal (American Society for Artificial Internal Organs)"},{value:"asia-and-the-pacific-policy-studies",label:"Asia & the Pacific Policy Studies"},{value:"asia-pacific-journal-of-human-resources",label:"Asia Pacific Journal of Human Resources"},{value:"asian-journal-of-neurosurgery",label:"Asian Journal of Neurosurgery"},{value:"asian-myrmecology",label:"Asian Myrmecology"},{value:"asian-studies-review",label:"Asian Studies Review"},{value:"associacao-brasileira-de-normas-tecnicas-eceme",label:"Escola de Comando e Estado-Maior do Ex\xE9rcito - ABNT (Portugu\xEAs - Brasil)"},{value:"associacao-brasileira-de-normas-tecnicas-instituto-meira-mattos",label:"Escola de Comando e Estado-Maior do Ex\xE9rcito - Instituto Meira Mattos - ABNT (Portugu\xEAs - Brasil)"},{value:"associacao-brasileira-de-normas-tecnicas-ipea",label:"Instituto de Pesquisa Econ\xF4mica Aplicada - ABNT (Portugu\xEAs - Brasil)"},{value:"associacao-brasileira-de-normas-tecnicas-note",label:"Associa\xE7\xE3o Brasileira de Normas T\xE9cnicas (note, Portugu\xEAs - Brasil)"},{value:"associacao-brasileira-de-normas-tecnicas-ufmg-face-full",label:"Universidade Federal de Minas Gerais - Faculdade de Ci\xEAncias Econ\xF4micas - ABNT (autoria completa) (Portugu\xEAs - Brasil)"},{value:"associacao-brasileira-de-normas-tecnicas-ufmg-face-initials",label:"Universidade Federal de Minas Gerais - Faculdade de Ci\xEAncias Econ\xF4micas - ABNT (autoria abreviada) (Portugu\xEAs - Brasil)"},{value:"associacao-brasileira-de-normas-tecnicas-ufpr",label:"Universidade Federal do Paran\xE1 - ABNT (Portugu\xEAs - Brasil)"},{value:"associacao-brasileira-de-normas-tecnicas-ufrgs-initials",label:"Universidade Federal do Rio Grande do Sul - ABNT (autoria abreviada) (Portugu\xEAs - Brasil)"},{value:"associacao-brasileira-de-normas-tecnicas-ufrgs-note-initials-with-ibid",label:"Universidade Federal do Rio Grande do Sul - ABNT (autoria abreviada, nota, com Ibid.) (Portugu\xEAs - Brasil)"},{value:"associacao-brasileira-de-normas-tecnicas-ufrgs",label:"Universidade Federal do Rio Grande do Sul - ABNT (autoria completa) (Portugu\xEAs - Brasil)"},{value:"associacao-brasileira-de-normas-tecnicas-ufs",label:"Universidade Federal de Sergipe - ABNT (Portugu\xEAs - Brasil)"},{value:"associacao-brasileira-de-normas-tecnicas-unirio-eipp",label:"Universidade Federal do Estado do Rio de Janeiro - Educa\xE7\xE3o Infantil e Pol\xEDticas P\xFAblicas - ABNT (Portugu\xEAs - Brasil)"},{value:"associacao-brasileira-de-normas-tecnicas-usp-fmvz",label:"Universidade de S\xE3o Paulo - Faculdade de Medicina Veterin\xE1ria e Zootecnia - ABNT (Portugu\xEAs - Brasil)"},{value:"associacao-brasileira-de-normas-tecnicas",label:"Associa\xE7\xE3o Brasileira de Normas T\xE9cnicas (Portugu\xEAs - Brasil)"},{value:"associacao-nacional-de-pesquisa-e-ensino-em-transportes",label:"ANPET - Congresso de Pesquisa e Ensino em Transportes (Portugu\xEAs - Brasil)"},{value:"association-de-science-regionale-de-langue-francaise",label:"Association de Science R\xE9gionale de Langue Fran\xE7aise (Fran\xE7ais)"},{value:"association-for-computational-linguistics",label:"Association for Computational Linguistics - Conference Proceedings"},{value:"association-for-computing-machinery",label:"Association for Computing Machinery"},{value:"atlande",label:"Atlande (author-date, Fran\xE7ais)"},{value:"atlas-of-genetics-and-cytogenetics-in-oncology-and-haematology",label:"Atlas of Genetics and Cytogenetics in Oncology and Haematology"},{value:"ausonius-editions",label:"Ausonius \xC9ditions (Fran\xE7ais)"},{value:"austral-ecology",label:"Austral Ecology"},{value:"austral-entomology",label:"Austral Entomology"},{value:"australian-archaeology",label:"Australian Archaeology"},{value:"australian-critical-care",label:"Australian Critical Care"},{value:"australian-dental-journal",label:"Australian Dental Journal"},{value:"australian-guide-to-legal-citation-3rd-edition",label:"Australian Guide to Legal Citation 3rd edition"},{value:"australian-guide-to-legal-citation",label:"Australian Guide to Legal Citation 4th edition"},{value:"australian-historical-studies",label:"Australian Historical Studies"},{value:"australian-journal-of-earth-sciences",label:"Australian Journal of Earth Sciences"},{value:"australian-journal-of-grape-and-wine-research",label:"Australian Journal of Grape and Wine Research"},{value:"australian-road-research-board",label:"Australian Road Research Board"},{value:"australian-veterinary-journal",label:"Australian Veterinary Journal"},{value:"austrian-journal-of-development-studies",label:"Austrian Journal of Development Studies (Journal f\xFCr Entwicklungspolitik)"},{value:"austrian-legal",label:"Austrian Legal (Deutsch - \xD6sterreich)"},{value:"avian-conservation-and-ecology",label:"Avian Conservation and Ecology"},{value:"avian-diseases",label:"Avian Diseases"},{value:"avian-pathology",label:"Avian Pathology"},{value:"ayer",label:"Ayer (Espa\xF1ol)"},{value:"azr-abkurzungs-und-zitierregeln-der-osterreichischen-rechtssprache-und-europarechtlicher-rechtsquellen",label:"AZR - Abk\xFCrzungs- und Zitierregeln der \xF6sterreichischen Rechtssprache und europarechtlicher Rechtsquellen (Deutsch - \xD6sterreich)"},{value:"babes-bolyai-university-faculty-of-orthodox-theology",label:"Babes-Bolyai University - Faculty of Orthodox Theology (no ibid., Rom\xE2n\u0103)"},{value:"babesch-annual-papers-on-mediterranean-archaeology",label:"BABESCH - Annual Papers on Mediterranean Archaeology"},{value:"baghdad-science-journal",label:"Baghdad Science Journal"},{value:"baishideng-publishing-group",label:"Baishideng Publishing Group"},{value:"bakhtiniana-journal-of-discourse-studies",label:"Bakhtiniana: Journal of Discourse Studies"},{value:"begell-house-apa",label:"Begell House - APA"},{value:"begell-house-chicago-author-date",label:"Begell House - Chicago Manual of Style"},{value:"behaviour",label:"Behaviour"},{value:"beilstein-journal-of-organic-chemistry",label:"Beilstein Journal of Organic Chemistry"},{value:"beltz-padagogik",label:"Beltz - P\xE4dagogik (Deutsch)"},{value:"berghahn-books-author-date-en-gb",label:"Berghahn Books (author-date, English - UK)"},{value:"berlin-school-of-economics-and-law-international-marketing-management",label:"Berlin School of Economics and Law - International Marketing Management"},{value:"bern-university-of-applied-sciences-school-of-agricultural-forest-and-food-sciences-hafl",label:"Bern University of Applied Sciences - School of Agricultural, Forest and Food Sciences HAFL (author-date)"},{value:"betriebswirtschaftliche-forschung-und-praxis",label:"Betriebswirtschaftliche Forschung und Praxis (Deutsch)"},{value:"biblio-3w",label:"Biblio 3W (Espa\xF1ol)"},{value:"bibliothecae-it",label:"Bibliothecae.it (Italiano)"},{value:"bibliotheque-d-archeologie-mediterraneenne-et-africaine-biama",label:"Biblioth\xE8que d'arch\xE9ologie m\xE9diterran\xE9enne et africaine (BiAMA) (Fran\xE7ais)"},{value:"bibliotheque-universitaire-de-medecine-vancouver",label:"Biblioth\xE8que universitaire de m\xE9decine - Vancouver (Fran\xE7ais)"},{value:"bibtex",label:"BibTeX generic citation style"},{value:"biens-symboliques-symbolic-goods",label:"Biens symboliques / Symbolic Goods"},{value:"bioarchaeology-international",label:"Bioarchaeology International"},{value:"bioarchaeology-of-the-near-east",label:"Bioarchaeology of the Near East"},{value:"biochemical-journal",label:"Biochemical Journal"},{value:"biochemical-society-transactions",label:"Biochemical Society Transactions"},{value:"biochemistry-and-molecular-biology-education",label:"Biochemistry and Molecular Biology Education"},{value:"biochemistry",label:"Biochemistry"},{value:"biochimica-et-biophysica-acta",label:"Biochimica et Biophysica Acta"},{value:"bioelectromagnetics",label:"Bioelectromagnetics"},{value:"bioinformatics",label:"Bioinformatics"},{value:"biologia",label:"Biologia"},{value:"biological-and-pharmaceutical-bulletin",label:"Biological and Pharmaceutical Bulletin"},{value:"biological-journal-of-the-linnean-society",label:"Biological Journal of the Linnean Society"},{value:"biological-psychiatry",label:"Biological Psychiatry"},{value:"biological-reviews",label:"Biological Reviews"},{value:"biology-of-reproduction",label:"Biology of Reproduction"},{value:"biomarkers",label:"Biomarkers"},{value:"biomed-central",label:"BioMed Central"},{value:"biomed-research-international",label:"BioMed Research International"},{value:"biometrics",label:"Biometrics"},{value:"biophysical-journal",label:"Biophysical Journal"},{value:"biophysics-and-physicobiology",label:"Biophysics and Physicobiology"},{value:"biopolymers",label:"Biopolymers"},{value:"bioresources",label:"BioResources"},{value:"bioscience",label:"BioScience"},{value:"biosocieties",label:"BioSocieties"},{value:"biostatistics",label:"Biostatistics"},{value:"biota-neotropica",label:"Biota Neotropica"},{value:"biotechniques",label:"BioTechniques"},{value:"biotechnology-and-bioengineering",label:"Biotechnology and Bioengineering"},{value:"biotropica",label:"Biotropica"},{value:"bitonline",label:"b.i.t.online (note, Deutsch)"},{value:"biuletyn-polskiego-towarzystwa-jezykoznawczego",label:"Biuletyn Polskiego Towarzystwa J\u0119zykoznawczego (Polski)"},{value:"blood",label:"Blood"},{value:"bloomsbury-academic",label:"Bloomsbury Academic"},{value:"bluebook-inline",label:"Bluebook Inline"},{value:"bluebook-law-review",label:"Bluebook Law Review"},{value:"bluebook2",label:"Bluebook Law Review (2)"},{value:"bmj",label:"BMJ"},{value:"body-and-society",label:"Body & Society"},{value:"boletin-de-la-sociedad-geologica-mexicana",label:"Bolet\xEDn de la Sociedad Geol\xF3gica Mexicana (Espa\xF1ol - Mexico)"},{value:"boletin-de-pediatria",label:"Bolet\xEDn de Pediatr\xEDa (Espa\xF1ol)"},{value:"bollettino-d-archeologia-online",label:"Bollettino d'archeologia online (Italiano)"},{value:"boreal-environment-research",label:"Boreal Environment Research"},{value:"bourgogne-franche-comte-nature",label:"Bourgogne-Franche-Comt\xE9 Nature (Fran\xE7ais)"},{value:"brachytherapy",label:"Brachytherapy"},{value:"brain-behavior-and-evolution",label:"Brain, Behavior and Evolution"},{value:"brazilian-journal-of-experimental-design-data-analysis-and-inferential-statistics",label:"Brazilian Journal of Experimental Design, Data Analysis and Inferential Statistics"},{value:"brazilian-journal-of-infectious-diseases",label:"Brazilian Journal of Infectious Diseases"},{value:"brazilian-journal-of-psychiatry",label:"Brazilian Journal of Psychiatry"},{value:"brazilian-journal-of-veterinary-research-and-animal-science",label:"Brazilian Journal of Veterinary Research and Animal Science"},{value:"brazilian-oral-research",label:"Brazilian Oral Research"},{value:"brewingscience",label:"BrewingScience"},{value:"briefings-in-bioinformatics",label:"Briefings in Bioinformatics"},{value:"british-journal-of-anaesthesia",label:"British Journal of Anaesthesia"},{value:"british-journal-of-cancer",label:"British Journal of Cancer"},{value:"british-journal-of-dermatology",label:"British Journal of Dermatology"},{value:"british-journal-of-haematology",label:"British Journal of Haematology"},{value:"british-journal-of-industrial-relations",label:"British Journal of Industrial Relations"},{value:"british-journal-of-pharmacology",label:"British Journal of Pharmacology"},{value:"british-journal-of-political-science",label:"British Journal of Political Science"},{value:"british-journal-of-surgery",label:"British Journal of Surgery"},{value:"budownictwo-i-architektura-pl",label:"Budownictwo i Architektura"},{value:"building-structure",label:"Building Structure (\u4E2D\u6587)"},{value:"buletin-agrohorti",label:"Buletin Agrohorti"},{value:"bulletin-de-correspondance-hellenique",label:"Bulletin de correspondance hell\xE9nique"},{value:"bulletin-de-la-societe-entomologique-de-france",label:"Bulletin de la Soci\xE9t\xE9 Entomologique de France"},{value:"bulletin-de-la-societe-prehistorique-francaise",label:"Bulletin de la Soci\xE9t\xE9 pr\xE9historique fran\xE7aise (Fran\xE7ais)"},{value:"bulletin-du-centre-detudes-medievales-dauxerre",label:"Bulletin du Centre d\u2019\xE9tudes m\xE9di\xE9vales d\u2019Auxerre (Fran\xE7ais)"},{value:"bulletin-of-geosciences",label:"Bulletin of Geosciences"},{value:"bulletin-of-marine-science",label:"Bulletin of Marine Science"},{value:"bulletin-of-the-american-schools-of-oriental-research",label:"Bulletin of the American Schools of Oriental Research"},{value:"bulletin-of-the-seismological-society-of-america",label:"Bulletin of the Seismological Society of America"},{value:"bursa-uludag-universitesi-egitim-bilimleri-enstitusu",label:"Bursa Uluda\u011F \xDCniversitesi - E\u011Fitim Bilimleri Enstit\xFCs\xFC"},{value:"bursa-uludag-universitesi-fen-bilimleri-enstitusu",label:"Bursa Uludag \xDCniversitesi Fen Bilimleri Enstit\xFCs\xFC"},{value:"bursa-uludag-universitesi-saglik-bilimleri-enstitusu",label:"Bursa Uluda\u011F \xDCniversitesi - Sa\u011Fl\u0131k Bilimleri Enstit\xFCs\xFC"},{value:"bursa-uludag-universitesi-sosyal-bilimler-enstitusu-metinici-atif",label:"Bursa Uluda\u011F \xDCniversitesi - Sosyal Bilimler Enstit\xFCs\xFC (metinici atif)"},{value:"bursa-uludag-universitesi-sosyal-bilimler-enstitusu",label:"Bursa Uluda\u011F \xDCniversitesi - Sosyal Bilimler Enstit\xFCs\xFC"},{value:"business-ethics-a-european-review",label:"Business Ethics: A European Review"},{value:"byzantina-symmeikta",label:"BYZANTINA SYMMEIKTA"},{value:"byzantine-and-modern-greek-studies",label:"Byzantine and Modern Greek Studies"},{value:"cahiers-d-ethnomusicologie",label:"Cahiers d'ethnomusicologie (Fran\xE7ais)"},{value:"cahiers-du-centre-gustave-glotz",label:"Cahiers du Centre Gustave-Glotz (Fran\xE7ais)"},{value:"california-agriculture",label:"California Agriculture"},{value:"cambridge-journal-of-economics",label:"Cambridge Journal of Economics"},{value:"cambridge-university-press-author-date",label:"Cambridge University Press (author-date)"},{value:"cambridge-university-press-law-note",label:"Cambridge University Press - Law (note)"},{value:"cambridge-university-press-note",label:"Cambridge University Press (note)"},{value:"cambridge-university-press-numeric",label:"Cambridge University Press (numeric)"},{value:"campus-adventiste-du-saleve-faculte-adventiste-de-theologie",label:"Campus adventiste du Sal\xE8ve - Facult\xE9 adventiste de th\xE9ologie (Fran\xE7ais)"},{value:"canadian-biosystems-engineering",label:"Canadian Biosystems Engineering"},{value:"canadian-geotechnical-journal",label:"Canadian Geotechnical Journal"},{value:"canadian-journal-of-chemistry",label:"Canadian Journal of Chemistry"},{value:"canadian-journal-of-dietetic-practice-and-research",label:"Canadian Journal of Dietetic Practice and Research"},{value:"canadian-journal-of-earth-sciences",label:"Canadian Journal of Earth Sciences"},{value:"canadian-journal-of-economics",label:"Canadian Journal of Economics"},{value:"canadian-journal-of-fisheries-and-aquatic-sciences",label:"Canadian Journal of Fisheries and Aquatic Sciences"},{value:"canadian-journal-of-physics",label:"Canadian Journal of Physics"},{value:"canadian-journal-of-public-health",label:"Canadian Journal of Public Health"},{value:"canadian-journal-of-soil-science",label:"Canadian Journal of Soil Science"},{value:"canadian-public-policy",label:"Canadian Public Policy"},{value:"cancer-biomarkers",label:"Cancer Biomarkers"},{value:"cancer-drug-resistance",label:"Cancer Drug Resistance"},{value:"cancer-translational-medicine",label:"Cancer Translational Medicine"},{value:"carcinogenesis",label:"Carcinogenesis"},{value:"cardiff-university-harvard",label:"Cardiff University - Harvard"},{value:"cardiff-university-vancouver",label:"Cardiff University - Vancouver"},{value:"cardiocore",label:"Cardiocore (Espa\xF1ol)"},{value:"cath-lab-digest",label:"Cath Lab Digest"},{value:"catholic-biblical-association",label:"Catholic Biblical Association (full note)"},{value:"cell-numeric-superscript",label:"Cell journals (numeric, superscript)"},{value:"cell-numeric",label:"Cell journals (numeric)"},{value:"cell-research",label:"Cell Research"},{value:"cell-structure-and-function",label:"Cell Structure and Function"},{value:"cell-transplantation",label:"Cell Transplantation"},{value:"cell",label:"Cell"},{value:"cellular-and-molecular-bioengineering",label:"Cellular and Molecular Bioengineering"},{value:"cellular-and-molecular-gastroenterology-and-hepatology",label:"Cellular and Molecular Gastroenterology and Hepatology"},{value:"centaurus",label:"Centaurus"},{value:"centre-de-recherche-sur-les-civilisations-de-l-asie-orientale-auteur-date",label:"Centre de recherche sur les civilisations de l\u2019Asie orientale (Fran\xE7ais - Auteur, Date)"},{value:"centre-de-recherche-sur-les-civilisations-de-l-asie-orientale",label:"Centre de recherche sur les civilisations de l'Asie orientale (Fran\xE7ais - note)"},{value:"cerebral-cortex",label:"Cerebral Cortex"},{value:"ceska-zemedelska-univerzita-v-praze-fakulta-agrobiologie-potravinovych-a-prirodnich-zdroju",label:"\u010Cesk\xE1 zem\u011Bd\u011Blsk\xE1 univerzita v Praze - Fakulta agrobiologie, potravinov\xFDch a p\u0159\xEDrodn\xEDch zdroj\u016F"},{value:"changer-d-epoque",label:"Changer d'\xE9poque (Fran\xE7ais)"},{value:"chemical-and-pharmaceutical-bulletin",label:"Chemical and Pharmaceutical Bulletin"},{value:"chemical-biology-and-drug-design",label:"Chemical Biology & Drug Design"},{value:"chemical-engineering-progress",label:"Chemical Engineering Progress"},{value:"chemical-senses",label:"Chemical Senses"},{value:"chemie-ingenieur-technik",label:"Chemie Ingenieur Technik"},{value:"chemistry-education-research-and-practice",label:"Chemistry Education Research and Practice"},{value:"chest",label:"Chest"},{value:"chicago-annotated-bibliography",label:"Chicago Manual of Style 17th edition (note, annotated bibliography)"},{value:"chicago-author-date-16th-edition",label:"Chicago Manual of Style 16th edition (author-date)"},{value:"chicago-author-date-basque",label:"Chicago Manual of Style 16th edition (author-date, Euskara)"},{value:"chicago-author-date-de",label:"Chicago Manual of Style 16th edition (author-date, Deutsch)"},{value:"chicago-author-date-fr",label:"Chicago Manual of Style 17th edition (author-date, Fran\xE7ais)"},{value:"chicago-author-date",label:"Chicago Manual of Style 17th edition (author-date)"},{value:"chicago-figures",label:"Chicago Manual of Style 16th edition (figures and illustrations)"},{value:"chicago-fullnote-bibliography-16th-edition",label:"Chicago Manual of Style 16th edition (full note)"},{value:"chicago-fullnote-bibliography-fr",label:"Chicago Manual of Style 17th edition (full note, Fran\xE7ais)"},{value:"chicago-fullnote-bibliography-short-title-subsequent",label:"Chicago Manual of Style 17th edition (full note, short title subsequent)"},{value:"chicago-fullnote-bibliography-with-ibid",label:"Chicago Manual of Style 17th edition (full note, with Ibid.)"},{value:"chicago-fullnote-bibliography",label:"Chicago Manual of Style 17th edition (full note)"},{value:"chicago-library-list",label:"Chicago Manual of Style 17th edition (library list)"},{value:"chicago-note-bibliography-16th-edition",label:"Chicago Manual of Style 16th edition (note)"},{value:"chicago-note-bibliography-with-ibid",label:"Chicago Manual of Style 17th edition (note, with Ibid.)"},{value:"chicago-note-bibliography",label:"Chicago Manual of Style 17th edition (note)"},{value:"chimia",label:"CHIMIA"},{value:"china-information",label:"China Information"},{value:"china-national-standard-gb-t-7714-2015-author-date",label:"China National Standard GB/T 7714-2015 (author-date, \u4E2D\u6587)"},{value:"china-national-standard-gb-t-7714-2015-note",label:"China National Standard GB/T 7714-2015 (note, \u4E2D\u6587)"},{value:"china-national-standard-gb-t-7714-2015-numeric",label:"China National Standard GB/T 7714-2015 (numeric, \u4E2D\u6587)"},{value:"chinese-gb7714-1987-numeric",label:"China National Standard GB/T 7714-1987 (numeric, \u4E2D\u6587)"},{value:"chinese-gb7714-2005-author-date",label:"China National Standard GB/T 7714-2005 (author-date, \u4E2D\u6587)"},{value:"chinese-gb7714-2005-numeric",label:"China National Standard GB/T 7714-2005 (numeric, \u4E2D\u6587)"},{value:"chinese-journal-of-aeronautics",label:"Chinese Journal of Aeronautics"},{value:"chinese-medical-journal",label:"Chinese Medical Journal"},{value:"chroniques-des-activites-archeologiques-de-l-ecole-francaise-de-rome",label:"Chroniques des activit\xE9s arch\xE9ologiques de l'Ecole fran\xE7aise de Rome"},{value:"chungara-revista-de-antropologia-chilena",label:"Chungara Revista de Antropolog\xEDa Chilena (Espa\xF1ol - Chile)"},{value:"circulation-journal",label:"Circulation Journal"},{value:"circulation",label:"Circulation"},{value:"cirugia-cardiovascular",label:"Cirugia Cardiovascular (Espa\xF1ol)"},{value:"citation-compass-apa-note",label:"Citation Compass (Kildekompasset) - APA (note)"},{value:"citizen-science-theory-and-practice",label:"Citizen Science: Theory and Practice"},{value:"civilta-italiana",label:"Civilt\xE0 Italiana (Italiano)"},{value:"civitas-revista-de-ciencias-sociais",label:"Civitas: Revista de Ci\xEAncias Sociais"},{value:"cladistics",label:"Cladistics"},{value:"clara-architecture-recherche",label:"CLARA Architecture/Recherche (Fran\xE7ais)"},{value:"clay-minerals",label:"Clay Minerals"},{value:"clays-and-clay-minerals",label:"Clays and Clay Minerals"},{value:"climate-change-economics",label:"Climate Change Economics"},{value:"clinica-e-investigacion-en-arteriosclerosis",label:"Cl\xEDnica e Investigaci\xF3n en Arteriosclerosis (Espa\xF1ol)"},{value:"clinical-anatomy",label:"Clinical Anatomy"},{value:"clinical-dysmorphology",label:"Clinical Dysmorphology"},{value:"clinical-gastroenterology-and-hepatology",label:"Clinical Gastroenterology and Hepatology"},{value:"clinical-hemorheology-and-microcirculation",label:"Clinical Hemorheology and Microcirculation"},{value:"clinical-infectious-diseases",label:"Clinical Infectious Diseases"},{value:"clinical-journal-of-sport-medicine",label:"Clinical Journal of Sport Medicine"},{value:"clinical-journal-of-the-american-society-of-nephrology",label:"Clinical Journal of the American Society of Nephrology"},{value:"clinical-management-issues",label:"Clinical Management Issues"},{value:"clinical-nuclear-medicine",label:"Clinical Nuclear Medicine"},{value:"clinical-oral-implants-research",label:"Clinical Oral Implants Research"},{value:"clinical-orthopaedics-and-related-research",label:"Clinical Orthopaedics and Related Research"},{value:"clinical-otolaryngology",label:"Clinical Otolaryngology"},{value:"clinical-pharmacology-and-therapeutics",label:"Clinical Pharmacology & Therapeutics"},{value:"clinical-physiology-and-functional-imaging",label:"Clinical Physiology and Functional Imaging"},{value:"clinical-radiology",label:"Clinical Radiology"},{value:"clinical-spine-surgery",label:"Clinical Spine Surgery"},{value:"clio-medica",label:"Clio Medica"},{value:"cns-and-neurological-disorders-drug-targets",label:"CNS & Neurological Disorders - Drug Targets"},{value:"cns-spectrums",label:"CNS Spectrums"},{value:"cold-spring-harbor-laboratory-press",label:"Cold Spring Harbor Laboratory Press"},{value:"collection-de-l-ecole-francaise-de-rome-full-note",label:"Collection de l'Ecole fran\xE7aise de Rome (full note, Fran\xE7ais)"},{value:"collection-de-l-ecole-francaise-de-rome-note",label:"Collection de l'Ecole fran\xE7aise de Rome (note, Fran\xE7ais)"},{value:"collection-du-centre-jean-berard",label:"Collection du Centre Jean-B\xE9rard (Fran\xE7ais)"},{value:"collections-electroniques-de-l-inha-author-date",label:"Collections \xE9lectroniques de l'INHA (author-date, Fran\xE7ais)"},{value:"collections-electroniques-de-l-inha-full-note",label:"Collections \xE9lectroniques de l'INHA (full note, Fran\xE7ais)"},{value:"college-montmorency",label:"Coll\xE8ge Montmorency (note, Fran\xE7ais - Canada)"},{value:"college-of-naturopathic-medicine",label:"College of Naturopathic Medicine"},{value:"colombian-journal-of-anesthesiology",label:"Colombian Journal of Anesthesiology"},{value:"colorado-state-university-school-of-biomedical-engineering",label:"Colorado State University - School of Biomedical Engineering"},{value:"comision-economica-para-america-latina-y-el-caribe",label:"Comisi\xF3n Econ\xF3mica para Am\xE9rica Latina y el Caribe (Espa\xF1ol)"},{value:"common-market-law-review",label:"Common Market Law Review"},{value:"communication-et-langages",label:"Communication et Langages"},{value:"comparativ",label:"Comparativ"},{value:"comparative-politics",label:"Comparative Politics"},{value:"comparative-population-studies",label:"Comparative Population Studies"},{value:"computer-und-recht",label:"Computer und Recht (Deutsch)"},{value:"conservation-and-society",label:"Conservation & Society"},{value:"conservation-biology",label:"Conservation Biology"},{value:"conservation-letters",label:"Conservation Letters"},{value:"conservation-physiology",label:"Conservation Physiology"},{value:"contemporary-accounting-research",label:"Contemporary Accounting Research"},{value:"continuity-and-change",label:"Continuity and Change"},{value:"contributions-to-the-archaeology-of-egypt-nubia-and-the-levant",label:"Contributions to the Archaeology of Egypt, Nubia and the Levant"},{value:"copeia",label:"Copeia"},{value:"copernicus-publications",label:"Copernicus Publications"},{value:"coral-reefs",label:"Coral Reefs"},{value:"cornea",label:"Cornea"},{value:"corrosion",label:"Corrosion"},{value:"council-of-science-editors-alphabetical",label:"Council of Science Editors, Citation-Name (numeric, sorted alphabetically)"},{value:"council-of-science-editors-author-date",label:"Council of Science Editors, Name-Year (author-date)"},{value:"council-of-science-editors-brackets",label:"Council of Science Editors, Citation-Sequence (numeric, brackets)"},{value:"council-of-science-editors",label:"Council of Science Editors, Citation-Sequence (numeric)"},{value:"cranfield-university-numeric",label:"Cranfield University (numeric)"},{value:"creativity-and-innovation-management",label:"Creativity and Innovation Management"},{value:"critical-care-medicine",label:"Critical Care Medicine"},{value:"critical-reviews-in-plant-sciences",label:"Critical Reviews in Plant Sciences"},{value:"critical-reviews-in-solid-state-and-materials-sciences",label:"Critical Reviews in Solid State and Materials Sciences"},{value:"crop-breeding-and-applied-biotechnology",label:"Crop Breeding and Applied Biotechnology"},{value:"crustaceana",label:"Crustaceana"},{value:"cuadernos-de-filologia-clasica",label:"Cuadernos de Filolog\xEDa Cl\xE1sica. Estudios Griegos e Indoeuropeos (autor-a\xF1o, Espa\xF1ol)"},{value:"cultivos-tropicales",label:"Cultivos Tropicales (Espa\xF1ol)"},{value:"cultural-geographies",label:"cultural geographies"},{value:"cultural-studies-of-science-education",label:"Cultural Studies of Science Education"},{value:"culture-medicine-and-psychiatry",label:"Culture, Medicine, and Psychiatry"},{value:"cureus",label:"Cureus"},{value:"current-alzheimer-research",label:"Current Alzheimer Research"},{value:"current-gene-therapy",label:"Current Gene Therapy"},{value:"current-neurology-aktualnosci-neurologiczne",label:"Current Neurology - Aktualno\u015Bci Neurologiczne"},{value:"current-opinion-in-endocrinology-diabetes-and-obesity",label:"Current Opinion in Endocrinology, Diabetes and Obesity"},{value:"current-opinion",label:"Current Opinion journals"},{value:"current-pharmaceutical-design",label:"Current Pharmaceutical Design"},{value:"current-proteomics",label:"Current Proteomics"},{value:"current-protocols",label:"Current Protocols journals"},{value:"current-science",label:"Current Science"},{value:"current-topics-in-medicinal-chemistry",label:"Current Topics in Medicinal Chemistry"},{value:"currents-in-biblical-research",label:"Currents in Biblical Research"},{value:"cybium",label:"Cybium"},{value:"cytometry",label:"Cytometry"},{value:"data-science-journal",label:"Data Science Journal"},{value:"database",label:"Database"},{value:"de-buck",label:"De Buck (Nederlands)"},{value:"de-montfort-university-harvard",label:"De Montfort University - Harvard"},{value:"decision-sciences",label:"Decision Sciences"},{value:"demographic-research",label:"Demographic Research"},{value:"der-moderne-staat",label:"der moderne staat (Deutsch)"},{value:"dermatology-online-journal",label:"Dermatology Online Journal"},{value:"deutsche-gesellschaft-fur-psychologie",label:"Deutsche Gesellschaft f\xFCr Psychologie 5. Auflage (Deutsch)"},{value:"deutsche-sprache",label:"Deutsche Sprache (Deutsch)"},{value:"deutsches-archaologisches-institut",label:"Deutsches Arch\xE4ologisches Institut"},{value:"deutsches-arzteblatt",label:"Deutsches \xC4rzteblatt"},{value:"developing-world-bioethics",label:"Developing World Bioethics"},{value:"development-and-change",label:"Development and Change"},{value:"development-policy-review",label:"Development Policy Review"},{value:"developmental-medicine-and-child-neurology",label:"Developmental Medicine & Child Neurology"},{value:"developmental-neurobiology",label:"Developmental Neurobiology"},{value:"diabetologia",label:"Diabetologia"},{value:"diagnostico-prenatal",label:"Diagn\xF3stico Prenatal (Espa\xF1ol)"},{value:"dialisis-y-trasplante",label:"Dialisis y Trasplante (Espa\xF1ol)"},{value:"diatom-research",label:"Diatom Research"},{value:"die-bachelorarbeit-samac-et-al-in-text",label:"Die Bachelorarbeit (Samac et al.) (in-text, Deutsch)"},{value:"die-bachelorarbeit-samac-et-al-note",label:"Die Bachelorarbeit (Samac et al.) (note, Deutsch)"},{value:"digital-humanities-im-deutschsprachigen-raum",label:"Digital Humanities im deutschsprachigen Raum (Deutsch)"},{value:"digital-scholarship-in-the-humanities",label:"Digital Scholarship in the Humanities"},{value:"din-1505-2-alphanumeric",label:"DIN 1505-2 (alphanumeric, Deutsch) - standard superseded by ISO-690"},{value:"din-1505-2-numeric-alphabetical",label:"DIN 1505-2 (numeric, sorted alphabetically, Deutsch) - standard superseded by ISO-690"},{value:"din-1505-2-numeric",label:"DIN 1505-2 (numeric, Deutsch) - standard superseded by ISO-690"},{value:"din-1505-2",label:"DIN 1505-2 (author-date, Deutsch) - standard superseded by ISO-690"},{value:"diplo",label:"Diplo"},{value:"disability-and-rehabilitation",label:"Disability and Rehabilitation"},{value:"discovery-medicine",label:"Discovery Medicine"},{value:"dna-research",label:"DNA Research"},{value:"documents-d-archeologie-francaise",label:"Documents d'arch\xE9ologie fran\xE7aise (Fran\xE7ais)"},{value:"donau-universitat-krems-department-fur-e-governance-in-wirthschaft-und-verwaltung",label:"Donau-Universit\xE4t Krems - Department f\xFCr E-Governance in Wirtschaft und Verwaltung (Deutsch - \xD6sterreich)"},{value:"drug-development-research",label:"Drug Development Research"},{value:"drug-testing-and-analysis",label:"Drug Testing and Analysis"},{value:"drugs-of-today",label:"Drugs of Today"},{value:"durban-university-of-technology-harvard",label:"Durban University of Technology - Harvard"},{value:"e3s-web-of-conferences",label:"E3S Web of Conferences"},{value:"ear-and-hearing",label:"Ear and Hearing"},{value:"early-christianity",label:"Early Christianity"},{value:"early-medieval-europe",label:"Early Medieval Europe"},{value:"early-music-history",label:"Early Music History"},{value:"earth-surface-processes-and-landforms",label:"Earth Surface Processes and Landforms"},{value:"earthquake-engineering-and-structural-dynamics",label:"Earthquake Engineering & Structural Dynamics"},{value:"earthquake-spectra",label:"Earthquake Spectra"},{value:"ecclesial-practices",label:"Ecclesial Practices"},{value:"ecole-de-technologie-superieure-apa",label:"\xC9cole de technologie sup\xE9rieure - APA (Fran\xE7ais - Canada)"},{value:"ecole-pratique-des-hautes-etudes-sciences-historiques-et-philologiques",label:"\xC9cole Pratique des Hautes \xC9tudes - Sciences historiques et philologiques (Fran\xE7ais)"},{value:"ecological-entomology",label:"Ecological Entomology"},{value:"ecological-restoration",label:"Ecological Restoration"},{value:"ecology-and-society",label:"Ecology and Society"},{value:"ecology-letters",label:"Ecology Letters"},{value:"ecology-of-freshwater-fish",label:"Ecology of Freshwater Fish"},{value:"ecology",label:"Ecology"},{value:"econometrica",label:"Econometrica"},{value:"economia-y-politica",label:"Econom\xEDa y Pol\xEDtica (Espa\xF1ol - Chile)"},{value:"economic-commission-for-latin-america-and-the-caribbean",label:"Economic Commission for Latin America and the Caribbean"},{value:"economic-geology",label:"Economic Geology"},{value:"economie-et-statistique",label:"\xC9conomie et Statistique (Fran\xE7ais)"},{value:"ecoscience",label:"\xC9coscience"},{value:"ecosistemas",label:"Ecosistemas (Espa\xF1ol)"},{value:"ecosystems",label:"Ecosystems"},{value:"edward-elgar-business-and-social-sciences",label:"Edward Elgar Publishing - Business and Social Sciences"},{value:"effective-altruism-wiki",label:"Effective Altruism Wiki"},{value:"egretta",label:"Egretta (Deutsch - \xD6sterreich)"},{value:"einaudi",label:"Einaudi (Italiano)"},{value:"eksploatacja-i-niezawodnosc",label:"Eksploatacja i Niezawodnosc - Maintenance and Reliability"},{value:"el-profesional-de-la-informacion",label:"Profesional de la informaci\xF3n (Espa\xF1ol)"},{value:"electrophoresis",label:"Electrophoresis"},{value:"elementa",label:"Elementa"},{value:"elife",label:"eLife"},{value:"elsevier-harvard-without-titles",label:"Elsevier - Harvard (without titles)"},{value:"elsevier-harvard",label:"Elsevier - Harvard (with titles)"},{value:"elsevier-harvard2",label:"Elsevier - Harvard 2"},{value:"elsevier-vancouver-author-date",label:"Elsevier - Vancouver (author-date)"},{value:"elsevier-vancouver",label:"Elsevier - Vancouver"},{value:"elsevier-with-titles-alphabetical",label:"Elsevier (numeric, with titles, sorted alphabetically)"},{value:"elsevier-with-titles",label:"Elsevier (numeric, with titles)"},{value:"elsevier-without-titles",label:"Elsevier (numeric, without titles)"},{value:"embnet-journal",label:"EMBnet.journal"},{value:"embo-press",label:"EMBO Press"},{value:"emerald-harvard",label:"Emerald - Harvard"},{value:"emu-austral-ornithology",label:"Emu - Austral Ornithology"},{value:"endocrine-connections",label:"Endocrine Connections"},{value:"endocrine-press",label:"Endocrine Press"},{value:"endoscopia",label:"Endoscopia (Espa\xF1ol)"},{value:"eneuro",label:"eNeuro"},{value:"enfermeria-clinica",label:"Enfermer\xEDa Cl\xEDnica (Espa\xF1ol)"},{value:"enfermeria-intensiva",label:"Enfermer\xEDa Intensiva (Espa\xF1ol)"},{value:"engineered-regeneration",label:"Engineered Regeneration"},{value:"engineering-in-life-sciences",label:"Engineering in Life Sciences"},{value:"engineering-technology-and-applied-science-research",label:"Engineering, Technology & Applied Science Research"},{value:"ens-de-lyon-centre-d-ingenierie-documentaire",label:"ENS de Lyon - Centre d'ing\xE9nierie documentaire (Fran\xE7ais)"},{value:"entecho",label:"ENTECHO (\u010Ce\u0161tina)"},{value:"entomologia-experimentalis-et-applicata",label:"Entomologia Experimentalis et Applicata"},{value:"entomological-society-of-america",label:"Entomological Society of America"},{value:"environment-and-planning",label:"Environment and Planning"},{value:"environment-and-urbanization",label:"Environment and Urbanization"},{value:"environmental-and-engineering-geoscience",label:"Environmental & Engineering Geoscience"},{value:"environmental-chemistry",label:"Environmental Chemistry"},{value:"environmental-conservation",label:"Environmental Conservation"},{value:"environmental-health-perspectives",label:"Environmental Health Perspectives"},{value:"environmental-microbiology",label:"Environmental Microbiology"},{value:"environmental-values",label:"Environmental Values"},{value:"environnement-risques-et-sante",label:"Environnement, Risques & Sant\xE9"},{value:"ephemerides-theologicae-lovanienses",label:"Ephemerides Theologicae Lovanienses"},{value:"epidemiologie-et-sante-animale",label:"\xC9pid\xE9miologie et Sant\xE9 Animale"},{value:"epidemiology-and-infection",label:"Epidemiology & Infection"},{value:"epilepsia",label:"Epilepsia"},{value:"equine-veterinary-education",label:"Equine Veterinary Education"},{value:"equine-veterinary-journal",label:"Equine Veterinary Journal"},{value:"ergo",label:"Ergo"},{value:"ergoscience",label:"ergoscience"},{value:"errata",label:"Errata: Publica\xE7\xE3o sobre processos editoriais (Portugu\xEAs - Brasil)"},{value:"escuela-nacional-de-antropologia-e-historia-author-date",label:"Escuela Nacional de Antropolog\xEDa e Historia (autor-fecha, Espa\xF1ol - M\xE9xico)"},{value:"escuela-nacional-de-antropologia-e-historia-full-note",label:"Escuela Nacional de Antropolog\xEDa e Historia (nota completa, Espa\xF1ol - M\xE9xico)"},{value:"escuela-nacional-de-antropologia-e-historia-short-note",label:"Escuela Nacional de Antropolog\xEDa e Historia (nota corta, Espa\xF1ol - M\xE9xico)"},{value:"estuaries-and-coasts",label:"Estuaries and Coasts"},{value:"estudios-de-cultura-maya",label:"Estudios de Cultura Maya (Espa\xF1ol - M\xE9xico)"},{value:"estudios-de-fonetica-experimental",label:"Estudios de Fon\xE9tica Experimental"},{value:"estudios-hispanicos",label:"Estudios Hisp\xE1nicos (Espa\xF1ol)"},{value:"ethics-book-reviews",label:"Ethics (for book reviews)"},{value:"ethnobiology-and-conservation",label:"Ethnobiology and Conservation"},{value:"ethnobiology-letters",label:"Ethnobiology Letters"},{value:"ethnographiques-org",label:"ethnographiques.org (Fran\xE7ais)"},{value:"ethnologie-francaise",label:"Ethnologie fran\xE7aise (Fran\xE7ais)"},{value:"ethnomusicology",label:"Ethnomusicology"},{value:"etri-journal",label:"ETRI Journal"},{value:"ets-ecole-de-technologie-superieure",label:"\xC9TS - \xC9cole de technologie sup\xE9rieure (Fran\xE7ais - Canada)"},{value:"eurasian-journal-of-medical-investigation",label:"Eurasian Journal of Medical Investigation"},{value:"eurasian-journal-of-medicine-and-oncology",label:"Eurasian Journal of Medicine and Oncology"},{value:"eurointervention",label:"EuroIntervention"},{value:"europace",label:"Europace"},{value:"european-cells-and-materials",label:"European Cells & Materials"},{value:"european-journal-for-philosophy-of-religion",label:"European Journal for Philosophy of Religion"},{value:"european-journal-of-anaesthesiology",label:"European Journal of Anaesthesiology"},{value:"european-journal-of-clinical-microbiology-and-infectious-diseases",label:"European Journal of Clinical Microbiology & Infectious Diseases"},{value:"european-journal-of-emergency-medicine",label:"European Journal of Emergency Medicine"},{value:"european-journal-of-endocrinology",label:"European Journal of Endocrinology"},{value:"european-journal-of-entomology",label:"European Journal of Entomology"},{value:"european-journal-of-human-genetics",label:"European Journal of Human Genetics"},{value:"european-journal-of-immunology",label:"European Journal of Immunology"},{value:"european-journal-of-information-systems",label:"European Journal of Information Systems"},{value:"european-journal-of-international-law",label:"European Journal of International Law"},{value:"european-journal-of-microbiology-and-immunology",label:"European Journal of Microbiology & Immunology"},{value:"european-journal-of-neuroscience",label:"European Journal of Neuroscience"},{value:"european-journal-of-ophthalmology",label:"European Journal of Ophthalmology"},{value:"european-journal-of-paediatric-neurology",label:"European Journal of Paediatric Neurology"},{value:"european-journal-of-pain",label:"European Journal of Pain"},{value:"european-journal-of-political-research",label:"European Journal of Political Research"},{value:"european-journal-of-public-health",label:"European Journal of Public Health"},{value:"european-journal-of-soil-science",label:"European Journal of Soil Science"},{value:"european-journal-of-taxonomy",label:"European Journal of Taxonomy"},{value:"european-journal-of-theology",label:"European Journal of Theology"},{value:"european-journal-of-ultrasound",label:"European Journal of Ultrasound (Ultraschall in der Medizin)"},{value:"european-journal-of-vascular-and-endovascular-surgery",label:"European Journal of Vascular and Endovascular Surgery"},{value:"european-respiratory-journal",label:"European Respiratory Journal"},{value:"european-retail-research",label:"European Retail Research"},{value:"european-review-of-agricultural-economics",label:"European Review of Agricultural Economics"},{value:"european-society-of-cardiology",label:"European Society of Cardiology"},{value:"european-union-interinstitutional-style-guide-author-date",label:"European Union - Interinstitutional Style Guide (author-date)"},{value:"european-union-interinstitutional-style-guide",label:"European Union - Interinstitutional Style Guide (note)"},{value:"eva-berlin-konferenz",label:"EVA Berlin Konferenz (Deutsch)"},{value:"evidence-based-complementary-and-alternative-medicine",label:"Evidence-Based Complementary and Alternative Medicine"},{value:"evolution-and-development",label:"Evolution & Development"},{value:"evolution-letters",label:"Evolution Letters"},{value:"evolution",label:"Evolution"},{value:"evolutionary-anthropology",label:"Evolutionary Anthropology"},{value:"evolutionary-ecology-research",label:"Evolutionary Ecology Research"},{value:"excli-journal",label:"EXCLI Journal"},{value:"exercer",label:"exercer (Fran\xE7ais)"},{value:"experimental-biology-and-medicine",label:"Experimental Biology and Medicine"},{value:"experimental-biomedical-research",label:"Experimental Biomedical Research"},{value:"experimental-dermatology",label:"Experimental Dermatology"},{value:"expert-reviews-in-molecular-medicine",label:"Expert Reviews in Molecular Medicine"},{value:"express-polymer-letters",label:"eXPRESS Polymer Letters"},{value:"extracellular-vesicles-and-circulating-nucleic-acids",label:"Extracellular Vesicles and Circulating Nucleic Acids"},{value:"eye",label:"Eye"},{value:"fachhochschule-kiel-fachbereich-medien",label:"Fachhochschule Kiel - Fachbereich Medien (Deutsch)"},{value:"fachhochschule-sudwestfalen",label:"Fachhochschule S\xFCdwestfalen (Deutsch)"},{value:"fachhochschule-vorarlberg-author-date",label:"Fachhochschule Vorarlberg (author-date)"},{value:"fachhochschule-vorarlberg-note",label:"Fachhochschule Vorarlberg (note)"},{value:"facial-plastic-surgery-clinics-of-north-america",label:"Facial Plastic Surgery Clinics of North America"},{value:"facolta-teologica-dell-italia-settentrionale-milano",label:"Facolt\xE0 Teologica dell'Italia Settentrionale - Milano (titoli di riviste non abbreviati, Italiano)"},{value:"family-business-review",label:"Family Business Review"},{value:"farmeconomia",label:"Farmeconomia. Health Economics and Therapeutic Pathways"},{value:"fatigue-and-fracture-of-engineering-materials-and-structures",label:"Fatigue & Fracture of Engineering Materials & Structures"},{value:"feminist-economics",label:"Feminist Economics"},{value:"feminist-theory",label:"Feminist Theory"},{value:"ferdinand-porsche-fern-fachhochschule",label:"Ferdinand Porsche Fernfachhochschule (Deutsch - \xD6sterreich)"},{value:"fertility-and-sterility",label:"Fertility and Sterility"},{value:"finance-and-society",label:"Finance and Society"},{value:"finanzarchiv",label:"FinanzArchiv - Public Finance Analysis"},{value:"fine-focus",label:"Fine Focus"},{value:"first-break",label:"First Break"},{value:"first-monday",label:"First Monday"},{value:"fishery-bulletin",label:"Fishery Bulletin"},{value:"flavour-and-fragrance-journal",label:"Flavour and Fragrance Journal"},{value:"florida-entomologist",label:"Florida Entomologist"},{value:"focaal-journal-of-global-and-historical-anthropology",label:"Focaal\u2014Journal of Global and Historical Anthropology"},{value:"foerster-geisteswissenschaft",label:"Sascha Foerster - Geisteswissenschaft (Deutsch)"},{value:"fold-and-r",label:"FOLD&R (Fasti On Line Documents & Research)"},{value:"folia-biologica",label:"Folia Biologica"},{value:"folia-morphologia",label:"Folia Morphologia"},{value:"food-and-agriculture-organization-of-the-united-nations",label:"Food and Agriculture Organization of the United Nations"},{value:"forensic-anthropology",label:"Forensic Anthropology"},{value:"forensic-science-review",label:"Forensic Science Review"},{value:"forest-science",label:"Forest Science"},{value:"forschungsjournal-soziale-bewegungen-fjsb",label:"Forschungsjournal Soziale Bewegungen FJSB(German)"},{value:"forum-qualitative-social-research",label:"Forum: Qualitative Social Research (English)"},{value:"forum-qualitative-sozialforschung",label:"Forum: Qualitative Sozialforschung (Deutsch)"},{value:"frattura-ed-integrita-strutturale-fracture-and-structural-integrity",label:"Frattura ed Integrit\xE0 Strutturale - Fracture and Structural Integrity"},{value:"free-radical-research",label:"Free Radical Research"},{value:"freie-hochschule-stuttgart",label:"Freie Hochschule Stuttgart (Deutsch)"},{value:"freie-universitat-berlin-geographische-wissenschaften",label:"Freie Universit\xE4t Berlin - Geographische Wissenschaften (Deutsch)"},{value:"french-politics",label:"French Politics"},{value:"french1",label:"France (tous les auteurs, num\xE9rotation, Fran\xE7ais)"},{value:"french2",label:"France (auteurs et al., num\xE9rotation, Fran\xE7ais)"},{value:"french3",label:"France (tous les auteurs, auteur-date, Fran\xE7ais)"},{value:"french4",label:"France (auteurs et al., auteur-date, Fran\xE7ais)"},{value:"freshwater-biology",label:"Freshwater Biology"},{value:"freshwater-crayfish",label:"Freshwater Crayfish"},{value:"freshwater-science",label:"Freshwater Science"},{value:"friedrich-schiller-universitat-jena-medizinische-fakultat",label:"Friedrich-Schiller-Universit\xE4t Jena - Medizinische Fakult\xE4t (Deutsch)"},{value:"frontiers-in-bioscience",label:"Frontiers in Bioscience"},{value:"frontiers-in-ecology-and-the-environment",label:"Frontiers in Ecology and the Environment"},{value:"frontiers-in-optics",label:"Frontiers in Optics"},{value:"frontiers-in-physics",label:"Frontiers in Physics"},{value:"frontiers-medical-journals",label:"Frontiers medical journals"},{value:"frontiers-of-biogeography",label:"Frontiers of Biogeography"},{value:"frontiers",label:"Frontiers journals"},{value:"fundamental-and-applied-limnology",label:"Fundamental and Applied Limnology"},{value:"future-medicine",label:"Future Medicine journals"},{value:"future-science-group",label:"Future Science Group"},{value:"g-giappichelli-editore",label:"G. Giappichelli Editore (Italiano)"},{value:"g3",label:"G3: Genes, Genomes, Genetics"},{value:"gaceta-sanitaria",label:"Gaceta Sanitaria"},{value:"gaia",label:"GAIA"},{value:"galatasaray-universitesi-sosyal-bilimler-enstitusu",label:"Galatasaray \xDCniversitesi Sosyal Bilimler Enstit\xFCs\xFC"},{value:"gallia-prehistoire",label:"Gallia Pr\xE9histoire (Fran\xE7ais)"},{value:"gallia",label:"Gallia (Fran\xE7ais)"},{value:"gastroenterology",label:"Gastroenterology"},{value:"gastrointestinal-endoscopy-clinics-of-north-america",label:"Gastrointestinal Endoscopy Clinics of North America"},{value:"gastrointestinal-intervention",label:"Gastrointestinal Intervention"},{value:"gazeta-medica",label:"Gazeta M\xE9dica"},{value:"geistes-und-kulturwissenschaften-heilmann",label:"Geistes- und Kulturwissenschaften (Heilmann) (Deutsch)"},{value:"generic-style-rules-for-linguistics",label:"Generic Style Rules for Linguistics"},{value:"genes-brain-and-behavior",label:"Genes, Brain and Behavior"},{value:"genes-to-cells",label:"Genes to Cells"},{value:"geneses",label:"Gen\xE8ses: Sciences sociales et histoire (Fran\xE7ais)"},{value:"genetics-and-molecular-biology",label:"Genetics and Molecular Biology"},{value:"genetics",label:"Genetics"},{value:"genome-biology-and-evolution",label:"Genome Biology and Evolution"},{value:"genomics-and-informatics",label:"Genomics & Informatics"},{value:"geoarchaeology",label:"Geoarchaeology"},{value:"geobiology",label:"Geobiology"},{value:"geochemical-perspectives-letters",label:"Geochemical Perspectives Letters"},{value:"geochimica-et-cosmochimica-acta",label:"Geochimica et Cosmochimica Acta"},{value:"geochronometria",label:"Geochronometria"},{value:"geografia-fisica-e-dinamica-quaternaria",label:"Geografia Fisica e Dinamica Quaternaria"},{value:"geografie-sbornik-cgs",label:"Geografie Sborn\xEDk \u010CGS"},{value:"geographie-et-cultures",label:"G\xE9ographie et cultures (Fran\xE7ais)"},{value:"geographische-zeitschrift",label:"Geographische Zeitschrift"},{value:"geological-magazine",label:"Geological Magazine"},{value:"geophysical-journal-international",label:"Geophysical Journal International"},{value:"geophysics",label:"Geophysics"},{value:"geopolitics",label:"Geopolitics"},{value:"georg-august-universitat-gottingen-institut-fur-ethnologie-und-ethnologische-sammlung",label:"Georg-August-Universit\xE4t G\xF6ttingen - Institut f\xFCr Ethnologie und Ethnologische Sammlung (Deutsch)"},{value:"geriatrics-and-gerontology-international",label:"Geriatrics & Gerontology International"},{value:"geriatrie-et-psychologie-neuropsychiatrie-du-vieillissement",label:"G\xE9riatrie et Psychologie Neuropsychiatrie du Vieillissement"},{value:"german-council-of-economic-experts",label:"German Council of Economic Experts"},{value:"german-journal-of-agricultural-economics",label:"German Journal of Agricultural Economics"},{value:"german-yearbook-of-international-law",label:"German Yearbook of International Law"},{value:"geschichte-und-gesellschaft",label:"Geschichte und Gesellschaft"},{value:"gesellschaft-fur-popularmusikforschung",label:"Gesellschaft fur Popularmusikforschung (Deutsch)"},{value:"gewerblicher-rechtsschutz-und-urheberrecht",label:"Gewerblicher Rechtsschutz und Urheberrecht (Deutsch)"},{value:"gigascience",label:"GigaScience"},{value:"global-ecology-and-biogeography",label:"Global Ecology and Biogeography"},{value:"glossa",label:"Glossa"},{value:"gost-r-7-0-5-2008-numeric-alphabetical",label:"Russian GOST R 7.0.5-2008 (numeric, sorted alphabetically, \u0420\u0443\u0301\u0441\u0441\u043A\u0438\u0439)"},{value:"gost-r-7-0-5-2008-numeric",label:"Russian GOST R 7.0.5-2008 (numeric)"},{value:"gost-r-7-0-5-2008",label:"Russian GOST R 7.0.5-2008 (\u0420\u0443\u0301\u0441\u0441\u043A\u0438\u0439)"},{value:"government-and-opposition",label:"Government and Opposition"},{value:"grasas-y-aceites",label:"Grasas y Aceites"},{value:"griffith-college-harvard",label:"Griffith College - Harvard"},{value:"groundwater",label:"Groundwater"},{value:"groupe-danthropologie-et-darcheologie-funeraire",label:"Groupe d'anthropologie et d'arch\xE9ologie fun\xE9raire (Fran\xE7ais)"},{value:"guide-des-citations-references-et-abreviations-juridiques",label:"Guide des citations, r\xE9f\xE9rences et abr\xE9viations juridiques 6e \xE9dition (Fran\xE7ais)"},{value:"guide-pour-la-redaction-et-la-presentation-des-theses-a-lusage-des-doctorants",label:"Guide pour la r\xE9daction et la pr\xE9sentation des th\xE8ses \xE0 l'usage des doctorants (Fran\xE7ais)"},{value:"haaga-helia-university-of-applied-sciences-harvard",label:"Haaga-Helia ammattikorkeakoulu - Harvard"},{value:"haematologica",label:"Haematologica"},{value:"haemophilia",label:"Haemophilia"},{value:"hainan-medical-university-journal-publisher",label:"Hainan Medical University Journal Publisher"},{value:"hamburg-school-of-food-science",label:"Hamburg School of Food Science (diploma, Deutsch)"},{value:"hand",label:"HAND"},{value:"handbook-of-clinical-neurology",label:"Handbook of Clinical Neurology"},{value:"harvard-anglia-ruskin-university",label:"Anglia Ruskin University - Harvard"},{value:"harvard-bournemouth-university",label:"Bournemouth University - Harvard"},{value:"harvard-cape-peninsula-university-of-technology",label:"Cape Peninsula University of Technology - Harvard"},{value:"harvard-cardiff-university-old",label:"Cardiff University - (old) Harvard"},{value:"harvard-cite-them-right-10th-edition",label:"Cite Them Right 10th edition - Harvard"},{value:"harvard-cite-them-right-no-et-al",label:'Cite Them Right 11th edition - Harvard (no "et al.")'},{value:"harvard-cite-them-right",label:"Cite Them Right 11th edition - Harvard"},{value:"harvard-coventry-university",label:"Coventry University - Harvard"},{value:"harvard-cranfield-university",label:"Cranfield University - Harvard"},{value:"harvard-deakin-university",label:"Deakin University - Harvard"},{value:"harvard-dundalk-institute-of-technology",label:"Dundalk Institute of Technology - Harvard"},{value:"harvard-durham-university-business-school",label:"Durham University Business School - Harvard"},{value:"harvard-edge-hill-university",label:"Edge Hill University - Harvard"},{value:"harvard-european-archaeology",label:"European Archaeology - Harvard"},{value:"harvard-fachhochschule-salzburg",label:"Fachhochschule Salzburg - Harvard"},{value:"harvard-falmouth-university",label:"Falmouth University - Harvard"},{value:"harvard-gesellschaft-fur-bildung-und-forschung-in-europa",label:"Gesellschaft f\xFCr Bildung und Forschung in Europa - Harvard (Deutsch)"},{value:"harvard-imperial-college-london",label:"Imperial College London - Harvard"},{value:"harvard-institut-fur-praxisforschung-de",label:"Institut f\xFCr Praxisforschung - Harvard (Bahr & Frackmann) (Deutsch)"},{value:"harvard-kings-college-london",label:"King's College London - Harvard"},{value:"harvard-leeds-beckett-university",label:"Leeds Beckett University - Harvard"},{value:"harvard-leeds-metropolitan-university",label:"Leeds Metropolitan University - Harvard"},{value:"harvard-limerick",label:"University of Limerick (Cite it Right) - Harvard"},{value:"harvard-london-south-bank-university",label:"London South Bank University - Harvard"},{value:"harvard-manchester-business-school",label:"Manchester Business School - Harvard"},{value:"harvard-manchester-metropolitan-university",label:"Manchester Metropolitan University - Harvard"},{value:"harvard-melbourne-polytechnic",label:"Melbourne Polytechnic - Harvard"},{value:"harvard-newcastle-university",label:"Newcastle University - Harvard"},{value:"harvard-north-west-university",label:"North-West University - Harvard"},{value:"harvard-oxford-brookes-university-faculty-of-health-and-life-sciences",label:"Oxford Brookes University - Faculty of Health and Life Sciences - Harvard"},{value:"harvard-pontificia-universidad-catolica-del-ecuador",label:"Pontificia Universidad Cat\xF3lica del Ecuador (Espa\xF1ol) - Harvard"},{value:"harvard-robert-gordon-university",label:"Robert Gordon University - Harvard"},{value:"harvard-staffordshire-university",label:"Staffordshire University - Harvard"},{value:"harvard-stellenbosch-university",label:"Stellenbosch University - Harvard"},{value:"harvard-swinburne-university-of-technology",label:"Swinburne University of Technology - Harvard"},{value:"harvard-the-university-of-melbourne",label:"The University of Melbourne - Harvard"},{value:"harvard-the-university-of-northampton",label:"The University of Northampton - Harvard"},{value:"harvard-the-university-of-sheffield-school-of-east-asian-studies",label:"The University of Sheffield - School of East Asian Studies - Harvard"},{value:"harvard-the-university-of-sheffield-town-and-regional-planning",label:"The University of Sheffield - Town and Regional Planning - Harvard"},{value:"harvard-theologisches-seminar-adelshofen",label:"Theologisches Seminar Adelshofen - Harvard (Deutsch)"},{value:"harvard-universiti-teknologi-malaysia",label:"Universiti Teknologi Malaysia - Harvard"},{value:"harvard-universiti-tunku-abdul-rahman",label:"Universiti Tunku Abdul Rahman - Harvard"},{value:"harvard-university-for-the-creative-arts",label:"University for the Creative Arts - Harvard"},{value:"harvard-university-of-abertay-dundee",label:"University of Abertay Dundee - Harvard"},{value:"harvard-university-of-bath",label:"University of Bath - Harvard"},{value:"harvard-university-of-birmingham",label:"University of Birmingham - Harvard"},{value:"harvard-university-of-brighton-school-of-environment-and-technology",label:"University of Brighton School of Environment & Technology - Harvard"},{value:"harvard-university-of-cape-town",label:"University of Cape Town - Harvard"},{value:"harvard-university-of-exeter-geography",label:"University of Exeter - Geography - Harvard"},{value:"harvard-university-of-greenwich",label:"University of Greenwich - Harvard"},{value:"harvard-university-of-kent",label:"University of Kent - Harvard"},{value:"harvard-university-of-leeds",label:"University of Leeds - Harvard"},{value:"harvard-university-of-technology-sydney",label:"University of Technology Sydney - Harvard"},{value:"harvard-university-of-the-west-of-england",label:"University of the West of England (Bristol) - Harvard"},{value:"harvard-university-of-the-west-of-scotland",label:"University of the West of Scotland - Harvard"},{value:"harvard-university-of-westminster",label:"University of Westminster - Harvard"},{value:"harvard-university-of-wolverhampton",label:"University of Wolverhampton - Harvard"},{value:"harvard-university-of-worcester",label:"University of Worcester - Harvard"},{value:"harvard-york-st-john-university",label:"York St John University - Harvard (pre September 2019 entry)"},{value:"haute-ecole-de-gestion-de-geneve-iso-690",label:"Haute \xE9cole de gestion de Gen\xE8ve - ISO 690"},{value:"haute-ecole-pedagogique-fribourg",label:"Haute Ecole p\xE9dagogique Fribourg (Fran\xE7ais)"},{value:"hawaii-international-conference-on-system-sciences-proceedings",label:"Hawaii International Conference on System Sciences Proceedings"},{value:"health-and-human-rights-journal",label:"Health and Human Rights Journal"},{value:"health-and-social-care-in-the-community",label:"Health & Social Care in the Community"},{value:"health-economics-policy-and-law",label:"Health Economics, Policy and Law"},{value:"health-economics",label:"Health Economics"},{value:"health-education-england-harvard",label:"Health Education England - Harvard"},{value:"health-education-research",label:"Health Education Research"},{value:"health-policy-and-planning",label:"Health Policy and Planning"},{value:"health-reform-observer-observatoire-des-reformes-de-sante",label:"Health Reform Observer - Observatoire des R\xE9formes de Sant\xE9"},{value:"health-sports-and-rehabilitation-medicine",label:"Health, Sports & Rehabilitation Medicine"},{value:"heart-failure-clinics",label:"Heart Failure Clinics"},{value:"heart-rhythm",label:"Heart Rhythm"},{value:"heidelberg-university-faculty-of-medicine",label:"Heidelberg University - Faculty of Medicine (Universit\xE4t Heidelberg - Medizinische Fakult\xE4t Heidelberg)"},{value:"heiliger-dienst",label:"Heiliger Dienst (Deutsch)"},{value:"helvetica-chimica-acta",label:"Helvetica Chimica Acta"},{value:"hematology-oncology-clinics-of-north-america",label:"Hematology/Oncology Clinics of North America"},{value:"hemijska-industrija",label:"Hemijska industrija"},{value:"henoch",label:"Henoch"},{value:"hepatology",label:"Hepatology"},{value:"heredity",label:"Heredity"},{value:"herpetologica",label:"Herpetologica"},{value:"hiob-ludolf-centre-for-ethiopian-studies-long-names",label:"Hiob Ludolf Centre for Ethiopian Studies (long names)"},{value:"hiob-ludolf-centre-for-ethiopian-studies-with-url-doi",label:"Hiob Ludolf Centre for Ethiopian Studies (with URL/DOI)"},{value:"hiob-ludolf-centre-for-ethiopian-studies",label:"Hiob Ludolf Centre for Ethiopian Studies"},{value:"hipertension-y-riesgo-vascular",label:"Hipertensi\xF3n y Riesgo Vascular (Espa\xF1ol)"},{value:"histoire-at-politique",label:"Histoire@Politique. Politique, culture, soci\xE9t\xE9 (Fran\xE7ais)"},{value:"histoire-et-mesure",label:"Histoire & Mesure (Fran\xE7ais)"},{value:"histopathology",label:"Histopathology"},{value:"historia-scribere",label:"historia-scribere (Deutsch)"},{value:"historical-materialism",label:"Historical Materialism"},{value:"historical-social-research",label:"Historical Social Research"},{value:"historio-plus",label:"historioPLUS (Deutsch - \xD6sterreich)"},{value:"history-and-theory",label:"History and Theory"},{value:"history-australia",label:"History Australia"},{value:"history-of-the-human-sciences",label:"History of the Human Sciences"},{value:"hochschule-bonn-rhein-sieg",label:"Hochschule Bonn-Rhein-Sieg (Harvard, Deutsch)"},{value:"hochschule-fur-soziale-arbeit-fhnw",label:"Hochschule f\xFCr Soziale Arbeit FHNW (Deutsch - Schweiz)"},{value:"hochschule-fur-wirtschaft-und-recht-berlin",label:"Hochschule f\xFCr Wirtschaft und Recht Berlin (Deutsch)"},{value:"hochschule-hannover-soziale-arbeit",label:"Hochschule Hannover - Soziale Arbeit (Deutsch)"},{value:"hochschule-munchen-fakultat-fur-angewandte-sozialwissenschaften",label:"Hochschule M\xFCnchen - Fakult\xE4t f\xFCr Angewandte Sozialwissenschaften (Deutsch)"},{value:"hochschule-osnabruck-fakultat-agrarwissenschaften-und-landschaftsarchitektur",label:"Hochschule Osnabr\xFCck - Fakult\xE4t Agrarwissenschaften und Landschaftsarchitektur (Deutsch)"},{value:"hochschule-pforzheim-fakultat-fur-wirtschaft-und-recht",label:"Hochschule Pforzheim - Fakult\xE4t f\xFCr Wirtschaft und Recht (Deutsch)"},{value:"hong-kong-journal-of-radiology",label:"Hong Kong Journal of Radiology"},{value:"hospital-a-domicilio",label:"Hospital a Domicilio"},{value:"housing-studies",label:"Housing Studies"},{value:"hpb",label:"HPB"},{value:"human-brain-mapping",label:"Human Brain Mapping"},{value:"human-ecology",label:"Human Ecology"},{value:"human-molecular-genetics",label:"Human Molecular Genetics"},{value:"human-mutation",label:"Human Mutation"},{value:"human-reproduction-update",label:"Human Reproduction Update"},{value:"human-reproduction",label:"Human Reproduction"},{value:"human-resource-management-journal",label:"Human Resource Management Journal"},{value:"human-rights-law-review",label:"Human Rights Law Review"},{value:"human-wildlife-interactions",label:"Human-Wildlife Interactions"},{value:"humanistica-lovaniensia-journal-of-neo-latin-studies",label:"Humanistica Lovaniensia. Journal of Neo-Latin Studies"},{value:"humboldt-state-university-environmental-resources-engineering",label:"Humboldt State University - Environmental Resources Engineering"},{value:"hydrobiologia",label:"Hydrobiologia"},{value:"hydrological-processes",label:"Hydrological Processes"},{value:"hydrological-sciences-journal",label:"Hydrological Sciences Journal"},{value:"hypertension-research",label:"Hypertension Research"},{value:"hypotheses-in-the-life-sciences",label:"Hypotheses in the Life Sciences"},{value:"hystrix-the-italian-journal-of-mammalogy",label:"Hystrix, the Italian Journal of Mammalogy"},{value:"iawa-journal",label:"IAWA Journal"},{value:"ib-tauris-note",label:"I.B. Tauris (note)"},{value:"ibis",label:"Ibis"},{value:"ices-journal-of-marine-science",label:"ICES Journal of Marine Science"},{value:"idojaras-quarterly-journal-of-the-hungarian-meteorological-service",label:"Id\u0151j\xE1r\xE1s - Quarterly Journal of the Hungarian Meteorological Service"},{value:"ie-comunicaciones",label:"IE Comunicaciones"},{value:"ieee-transactions-on-medical-imaging",label:"IEEE Transactions on Medical Imaging"},{value:"ieee-with-url",label:"IEEE (with URL)"},{value:"ieee",label:"IEEE"},{value:"iforest",label:"iForest"},{value:"igaku-toshokan",label:"Igaku Toshokan (\u65E5\u672C\u8A9E)"},{value:"iica-catie",label:"IICA-CATIE (Espa\xF1ol)"},{value:"ilahiyat-studies",label:"Ilahiyat Studies (full note)"},{value:"im-gesprach",label:"Im Gespr\xE4ch - Hefte der Martin Buber-Gesellschaft (Deutsch)"},{value:"incontext-studies-in-translation-and-interculturalism",label:"INContext: Studies in Translation and Interculturalism"},{value:"indian-dermatology-online-journal",label:"Indian Dermatology Online Journal"},{value:"indian-journal-of-medical-research",label:"Indian Journal of Medical Research"},{value:"indian-journal-of-orthopaedics",label:"Indian Journal of Orthopaedics"},{value:"indian-journal-of-physics",label:"Indian Journal of Physics"},{value:"indian-journal-of-traditional-knowledge",label:"Indian Journal of Traditional Knowledge"},{value:"indiana",label:"INDIANA"},{value:"indoor-air",label:"Indoor Air"},{value:"industrial-relations",label:"Industrial Relations"},{value:"infectio",label:"Infectio (Espa\xF1ol)"},{value:"infectious-disease-clinics-of-north-america",label:"Infectious Disease Clinics of North America"},{value:"inflammatory-bowel-diseases",label:"Inflammatory Bowel Diseases"},{value:"influenza-and-other-respiratory-viruses",label:"Influenza and Other Respiratory Viruses"},{value:"infoclio-de-kurzbelege",label:"infoclio.ch (Kurzbelege, Deutsch - Schweiz)"},{value:"infoclio-de",label:"infoclio.ch (Deutsch - Schweiz)"},{value:"infoclio-fr-nocaps",label:"infoclio.ch (sans majuscules, Fran\xE7ais)"},{value:"infoclio-fr-smallcaps",label:"infoclio.ch (petites majuscules, Fran\xE7ais)"},{value:"infomin",label:"Infomin"},{value:"informal-logic",label:"Informal Logic"},{value:"ingenieria-agricola",label:"Ingenier\xEDa Agr\xEDcola (Espa\xF1ol)"},{value:"innovations-therapeutiques-en-oncologie",label:"Innovations & Th\xE9rapeutiques en Oncologie"},{value:"instap-academic-press",label:"INSTAP Academic Press"},{value:"institut-francais-darcheologie-orientale-arab-studies",label:"Institut fran\xE7ais d'arch\xE9ologie orientale - Arab Studies (English)"},{value:"institut-francais-darcheologie-orientale-en",label:"Institut fran\xE7ais d'arch\xE9ologie orientale - Egyptology (English)"},{value:"institut-francais-darcheologie-orientale-etudes-arabes",label:"Institut fran\xE7ais d'arch\xE9ologie orientale - \xE9tudes arabes (Fran\xE7ais)"},{value:"institut-francais-darcheologie-orientale",label:"Institut fran\xE7ais d'arch\xE9ologie orientale - arch\xE9ologie et \xE9gyptologie (Fran\xE7ais)"},{value:"institut-national-de-la-recherche-scientifique-sciences-sociales",label:"Institut national de la recherche scientifique - Sciences sociales (author-date, Fran\xE7ais)"},{value:"institut-national-de-recherches-archeologiques-preventives",label:"Institut national de recherches arch\xE9ologiques pr\xE9ventives (Fran\xE7ais)"},{value:"institut-national-de-sante-publique-du-quebec-napp",label:"Institut national de sant\xE9 publique du Qu\xE9bec - NAPP (Fran\xE7ais - Canada)"},{value:"institut-national-de-sante-publique-du-quebec-topo",label:"Institut national de sant\xE9 publique du Qu\xE9bec - TOPO (Fran\xE7ais - Canada)"},{value:"institut-pertanian-bogor",label:"Institut Pertanian Bogor: Pedoman Penulisan Karya Ilmiah Edisi ke-3 (Bahasa Indonesia)"},{value:"institut-teknologi-bandung-sekolah-pascasarjana",label:"Institut Teknologi Bandung - Sekolah Pascasarjana"},{value:"institute-for-operations-research-and-the-management-sciences",label:"Institute for Operations Research and the Management Sciences"},{value:"institute-of-mathematical-statistics",label:"Institute of Mathematical Statistics journals"},{value:"institute-of-mathematics-and-its-applications",label:"Institute of Mathematics and its Applications"},{value:"institute-of-physics-harvard",label:"Institute of Physics - Harvard"},{value:"institute-of-physics-numeric",label:"Institute of Physics (numeric)"},{value:"instituto-brasileiro-de-informacao-em-ciencia-e-tecnologia-abnt-initials",label:"Instituto Brasileiro de Informa\xE7\xE3o em Ci\xEAncia e Tecnologia - ABNT (autoria abreviada)"},{value:"instituto-brasileiro-de-informacao-em-ciencia-e-tecnologia-abnt",label:"Instituto Brasileiro de Informa\xE7\xE3o em Ci\xEAncia e Tecnologia - ABNT (autoria completa)"},{value:"instituto-de-investigaciones-sobre-la-universidad-y-la-educacion-moderno",label:"Instituto de Investigaciones sobre la Universidad y la Educaci\xF3n - Moderno (autor-fecha, Espa\xF1ol)"},{value:"instituto-de-pesquisas-energeticas-e-nucleares",label:"Instituto de Pesquisas Energ\xE9ticas e Nucleares (Portugu\xEAs - Brasil)"},{value:"instituto-de-pesquisas-tecnologicas",label:"Instituto de Pesquisas Tecnol\xF3gicas (Portugu\xEAs - Brasil)"},{value:"instituto-superior-de-teologia-de-las-islas-canarias",label:"Instituto Superior de Teolog\xEDa de las Islas Canarias (Espa\xF1ol)"},{value:"integrated-science-publishing-journals",label:"Integrated Science Publishing journals"},{value:"integrative-and-comparative-biology",label:"Integrative & Comparative Biology"},{value:"inter-research-science-center",label:"Inter-Research Science Center"},{value:"inter-ro",label:"INTER: Romanian Review for Theological and Religious Studies"},{value:"interaction-design-and-architectures",label:"Interaction Design & Architecture(s)"},{value:"interactive-cardiovascular-and-thoracic-surgery",label:"Interactive CardioVascular and Thoracic Surgery"},{value:"interdisziplinare-anthropologie",label:"Interdisziplin\xE4re Anthropologie (Deutsch)"},{value:"interdisziplinare-zeitschrift-fur-technologie-und-lernen",label:"Interdisziplin\xE4re Zeitschrift f\xFCr Technologie und Lernen (Deutsch)"},{value:"interkulturelle-germanistik-gottingen",label:"Interkulturelle Germanistik G\xF6ttingen (Deutsch)"},{value:"international-atomic-energy-agency",label:"International Atomic Energy Agency"},{value:"international-biodeterioration-and-biodegradation",label:"International Biodeterioration & Biodegradation"},{value:"international-brazilian-journal-of-urology",label:"International Brazilian Journal Of Urology"},{value:"international-conference-on-information-systems-development",label:"International Conference on Information Systems Development"},{value:"international-development-policy",label:"International Development Policy"},{value:"international-energy-agency-organisation-for-economic-co-operation-and-development",label:"International Energy Agency - Organisation for Economic Co-operation and Development"},{value:"international-islamic-university-malaysia-ahmad-ibrahim-kulliyyah-of-laws",label:"International Islamic University Malaysia - Ahmad Ibrahim Kulliyyah of Laws"},{value:"international-journal-for-numerical-methods-in-biomedical-engineering",label:"International Journal for Numerical Methods in Biomedical Engineering"},{value:"international-journal-of-audiology",label:"International Journal of Audiology"},{value:"international-journal-of-automotive-technology",label:"International Journal of Automotive Technology"},{value:"international-journal-of-cancer",label:"International Journal of Cancer"},{value:"international-journal-of-circuit-theory-and-applications",label:"International Journal of Circuit Theory and Applications"},{value:"international-journal-of-climatology",label:"International Journal of Climatology"},{value:"international-journal-of-clinical-research",label:"International Journal of Clinical Research"},{value:"international-journal-of-cosmetic-science",label:"International Journal of Cosmetic Science"},{value:"international-journal-of-electrochemical-science",label:"International Journal of Electrochemical Science"},{value:"international-journal-of-electronic-commerce",label:"International Journal of Electronic Commerce"},{value:"international-journal-of-epidemiology",label:"International Journal of Epidemiology"},{value:"international-journal-of-exercise-science",label:"International Journal of Exercise Science"},{value:"international-journal-of-food-science-and-technology",label:"International Journal of Food Science & Technology"},{value:"international-journal-of-geriatric-psychiatry",label:"International Journal of Geriatric Psychiatry"},{value:"international-journal-of-humanoid-robotics",label:"International Journal of Humanoid Robotics"},{value:"international-journal-of-language-and-communication-disorders",label:"International Journal of Language & Communication Disorders"},{value:"international-journal-of-learner-corpus-research",label:"International Journal of Learner Corpus Research"},{value:"international-journal-of-lexicography",label:"International Journal of Lexicography"},{value:"international-journal-of-management-reviews",label:"International Journal of Management Reviews"},{value:"international-journal-of-nuclear-security",label:"International Journal of Nuclear Security"},{value:"international-journal-of-obstetric-anesthesia",label:"International Journal of Obstetric Anesthesia"},{value:"international-journal-of-occupational-medicine-and-environmental-health",label:"International Journal of Occupational Medicine and Environmental Health"},{value:"international-journal-of-oral-and-maxillofacial-surgery",label:"International Journal of Oral and Maxillofacial Surgery"},{value:"international-journal-of-osteoarchaeology",label:"International Journal of Osteoarchaeology"},{value:"international-journal-of-plant-sciences",label:"International Journal of Plant Sciences"},{value:"international-journal-of-polymer-analysis-and-characterization",label:"International Journal of Polymer Analysis and Characterization"},{value:"international-journal-of-polymeric-materials-and-polymeric-biomaterials",label:"International Journal of Polymeric Materials and Polymeric Biomaterials"},{value:"international-journal-of-population-data-science",label:"International Journal of Population Data Science"},{value:"international-journal-of-quantum-chemistry",label:"International Journal of Quantum Chemistry"},{value:"international-journal-of-radiation-oncology-biology-physics",label:"International Journal of Radiation Oncology, Biology, Physics"},{value:"international-journal-of-research-in-exercise-physiology",label:"International Journal of Research in Exercise Physiology"},{value:"international-journal-of-simulation-modelling",label:"International Journal of Simulation Modelling"},{value:"international-journal-of-spatial-data-infrastructures-research",label:"International Journal of Spatial Data Infrastructures Research"},{value:"international-journal-of-sports-medicine",label:"International Journal of Sport Medicine"},{value:"international-journal-of-urban-and-regional-research",label:"International Journal of Urban and Regional Research"},{value:"international-journal-of-wildland-fire",label:"International Journal of Wildland Fire"},{value:"international-microbiology",label:"International Microbiology"},{value:"international-organization",label:"International Organization"},{value:"international-pig-veterinary-society-congress-proceedings",label:"International Pig Veterinary Society Congress Proceedings"},{value:"international-review-of-the-red-cross",label:"International Review of the Red Cross"},{value:"international-security",label:"International Security"},{value:"international-studies-association",label:"International Studies Association"},{value:"international-union-of-crystallography",label:"International Union of Crystallography journals"},{value:"international-union-of-forest-research-organizations-headquarters",label:"International Union of Forest Research Organizations - Headquarters"},{value:"inventaire-general-du-patrimoine-culturel-iso-690-full-note-with-ibid",label:"Inventaire g\xE9n\xE9ral du patrimoine culturel - ISO-690 (full note, with Ibid., Fran\xE7ais)"},{value:"inventaire-general-du-patrimoine-culturel-iso-690-full-note",label:"Inventaire g\xE9n\xE9ral du patrimoine culturel - ISO-690 (full note, Fran\xE7ais)"},{value:"inventaire-general-du-patrimoine-culturel-iso-690-note",label:"Inventaire g\xE9n\xE9ral du patrimoine culturel - ISO-690 (note, Fran\xE7ais)"},{value:"invertebrate-biology",label:"Invertebrate Biology"},{value:"investigative-radiology",label:"Investigative Radiology"},{value:"invisu",label:"InVisu"},{value:"ios-press-books",label:"IOS Press (books)"},{value:"ipag-business-school-apa",label:"IPAG Business School - APA"},{value:"iran-manual-of-style",label:"Iran Manual of Style - \u0634\u06CC\u0648\u0647\u200C\u0646\u0627\u0645\u0647 \u0627\u06CC\u0631\u0627\u0646 (\u0641\u0627\u0631\u0633\u06CC)"},{value:"iranian-journal-of-basic-medical-sciences",label:"Iranian Journal of Basic Medical Sciences"},{value:"iranian-journal-of-pharmaceutical-research",label:"Iranian Journal of Pharmaceutical Research"},{value:"irish-historical-studies",label:"Irish Historical Studies"},{value:"isabella-stewart-gardner-museum",label:"Isabella Stewart Gardner Museum"},{value:"isnad-dipnotlu",label:"\u0130SNAD At\u0131f Sistemi 2. Edisyon (dipnotlu)"},{value:"isnad-metinici",label:"\u0130SNAD At\u0131f Sistemi 2. Edisyon (metini\xE7i)"},{value:"isnad",label:"\u0130SNAD At\u0131f Sistemi 1. Edisyon (dipnotlu)"},{value:"iso690-author-date-cs",label:"ISO-690 (author-date, \u010Ce\u0161tina)"},{value:"iso690-author-date-de",label:"ISO-690 (author-date, Deutsch)"},{value:"iso690-author-date-en",label:"ISO-690 (author-date, English)"},{value:"iso690-author-date-es",label:"ISO-690 (author-date, Espa\xF1ol)"},{value:"iso690-author-date-fr-no-abstract",label:"ISO-690 (author-date, no abstract, Fran\xE7ais)"},{value:"iso690-author-date-fr",label:"ISO-690 (author-date, Fran\xE7ais)"},{value:"iso690-author-date-pt-br",label:"ISO-690 (author-date, Portugu\xEAs - Brasil)"},{value:"iso690-author-date-sk",label:"ISO-690 (author-date, Sloven\u010Dina)"},{value:"iso690-full-note-cs",label:"ISO-690 (full note, \u010Ce\u0161tina)"},{value:"iso690-full-note-sk",label:"ISO-690 (full note, Sloven\u010Dina)"},{value:"iso690-full-note-with-ibid-ro",label:"ISO-690 (full note, with Ibid., Rom\xE2n\u0103)"},{value:"iso690-note-cs",label:"ISO-690 (note, without bibliography, \u010Ce\u0161tina)"},{value:"iso690-note-fr",label:"ISO-690 (note, no abstract, Fran\xE7ais)"},{value:"iso690-numeric-brackets-cs",label:"ISO-690 (numeric, brackets, \u010Ce\u0161tina)"},{value:"iso690-numeric-cs",label:"ISO-690 (numeric, parentheses, \u010Ce\u0161tina)"},{value:"iso690-numeric-en",label:"ISO-690 (numeric, English)"},{value:"iso690-numeric-fr",label:"ISO-690 (numeric, Fran\xE7ais)"},{value:"iso690-numeric-lt",label:"ISO-690 (numeric, Lietuvi\u0173 kalba)"},{value:"iso690-numeric-sk",label:"ISO-690 (numeric, Sloven\u010Dina)"},{value:"israel-medical-association-journal",label:"Israel Medical Association Journal"},{value:"istanbul-medical-journal",label:"\u0130stanbul Medical Journal"},{value:"istanbul-universitesi-sosyal-bilimler-enstitusu",label:"\u0130stanbul \xDCniversitesi Sosyal Bilimler Enstit\xFCs\xFC (T\xFCrk\xE7e)"},{value:"italian-journal-of-agronomy",label:"Italian Journal of Agronomy"},{value:"italus-hortus",label:"Italus Hortus"},{value:"ithaque",label:"Ithaque (Fran\xE7ais - Canada)"},{value:"iubmb-life",label:"IUBMB Life"},{value:"ius-ecclesiae",label:"Ius Ecclesiae"},{value:"izmir-katip-celebi-universitesi-sosyal-bilimler-enstitusu",label:"\u0130zmir Katip \xC7elebi \xDCniversitesi - Sosyal Bilimler Enstit\xFCs\xFC (T\xFCrk\xE7e)"},{value:"jacc-cardiovascular-imaging",label:"JACC: Cardiovascular Imaging"},{value:"jacc-cardiovascular-interventions",label:"JACC: Cardiovascular Interventions"},{value:"jahrbuch-der-osterreichischen-byzantinischen-gesellschaft",label:"Jahrbuch der \xD6sterreichischen Byzantinischen Gesellschaft"},{value:"jahrbuch-fur-evangelikale-theologie",label:"Jahrbuch f\xFCr evangelikale Theologie (Deutsch)"},{value:"japanese-journal-of-applied-physics",label:"Japanese Journal of Applied Physics"},{value:"javnost-the-public",label:"Javnost - The Public"},{value:"jci-insight",label:"JCI Insight"},{value:"jcom-journal-of-science-communication",label:"JCOM: Journal of Science Communication"},{value:"john-benjamins-publishing-company-iconicity-in-language-and-literature",label:"John Benjamins Publishing Company - Iconicity in Language and Literature"},{value:"john-benjamins-publishing-company-linguistik-aktuell-linguistics-today",label:"John Benjamins Publishing Company - Linguistik Aktuell/Linguistics Today"},{value:"johnson-matthey-technology-review",label:"Johnson Matthey Technology Review"},{value:"journal-and-proceedings-of-the-royal-society-of-new-south-wales",label:"Journal and Proceedings of the Royal Society of New South Wales"},{value:"journal-de-la-societe-des-americanistes",label:"Journal de la Soci\xE9t\xE9 des am\xE9ricanistes"},{value:"journal-de-la-societe-des-oceanistes",label:"Journal de la Soci\xE9t\xE9 des Oc\xE9anistes"},{value:"journal-for-the-history-of-astronomy",label:"Journal for the History of Astronomy"},{value:"journal-for-the-study-of-the-new-testament",label:"Journal for the Study of the New Testament"},{value:"journal-for-veterinary-medicine-biotechnology-and-biosafety",label:"Journal for Veterinary Medicine, Biotechnology and Biosafety"},{value:"journal-fur-kulturpflanzen-journal-of-cultivated-plants",label:"Journal f\xFCr Kulturpflanzen - Journal of Cultivated Plants"},{value:"journal-fur-kunstgeschichte",label:"Journal f\xFCr Kunstgeschichte"},{value:"journal-of-accounting-research",label:"Journal of Accounting Research"},{value:"journal-of-acoustics",label:"Journal of Acoustics"},{value:"journal-of-adolescent-health",label:"Journal of Adolescent Health"},{value:"journal-of-advertising-research",label:"Journal of Advertising Research"},{value:"journal-of-agricultural-and-applied-economics",label:"Journal of Agricultural and Applied Economics"},{value:"journal-of-agricultural-and-resource-economics",label:"Journal of Agricultural and Resource Economics"},{value:"journal-of-alzheimers-disease",label:"Journal of Alzheimer's Disease"},{value:"journal-of-analytical-toxicology",label:"Journal of Analytical Toxicology"},{value:"journal-of-animal-physiology-and-animal-nutrition",label:"Journal of Animal Physiology and Animal Nutrition"},{value:"journal-of-animal-science",label:"Journal of Animal Science"},{value:"journal-of-antimicrobial-chemotherapy",label:"Journal of Antimicrobial Chemotherapy"},{value:"journal-of-aoac-international",label:"Journal of AOAC International"},{value:"journal-of-applied-animal-science",label:"Journal of Applied Animal Science"},{value:"journal-of-applied-clinical-medical-physics",label:"Journal of Applied Clinical Medical Physics"},{value:"journal-of-applied-entomology",label:"Journal of Applied Entomology"},{value:"journal-of-applied-pharmaceutical-research",label:"Journal of Applied Pharmaceutical Research"},{value:"journal-of-applied-philosophy",label:"Journal of Applied Philosophy"},{value:"journal-of-applied-polymer-science",label:"Journal of Applied Polymer Science"},{value:"journal-of-archaeological-research",label:"Journal of Archaeological Research"},{value:"journal-of-atrial-fibrillation",label:"Journal of Atrial Fibrillation"},{value:"journal-of-australian-strength-and-conditioning",label:"Journal of Australian Strength & Conditioning"},{value:"journal-of-avian-biology",label:"Journal of Avian Biology"},{value:"journal-of-basic-microbiology",label:"Journal of Basic Microbiology"},{value:"journal-of-biological-chemistry",label:"The Journal of Biological Chemistry"},{value:"journal-of-biological-regulators-and-homeostatic-agents",label:"Journal of Biological Regulators & Homeostatic Agents"},{value:"journal-of-biomedical-materials-research-part-a",label:"Journal of Biomedical Materials Research Part A"},{value:"journal-of-biosciences",label:"Journal of Biosciences"},{value:"journal-of-bone-and-mineral-research",label:"Journal of Bone and Mineral Research"},{value:"journal-of-brachial-plexus-and-peripheral-nerve-injury",label:"Journal of Brachial Plexus and Peripheral Nerve Injury"},{value:"journal-of-breast-cancer",label:"Journal of Breast Cancer"},{value:"journal-of-burn-care-and-research",label:"Journal of Burn Care & Research"},{value:"journal-of-business-logistics",label:"Journal of Business Logistics"},{value:"journal-of-cachexia-sarcopenia-and-muscle",label:"Journal of Cachexia, Sarcopenia and Muscle"},{value:"journal-of-cardiothoracic-and-vascular-anesthesia",label:"Journal of Cardiothoracic and Vascular Anesthesia"},{value:"journal-of-cellular-and-molecular-medicine",label:"Journal of Cellular and Molecular Medicine"},{value:"journal-of-cellular-biochemistry",label:"Journal of Cellular Biochemistry"},{value:"journal-of-chemistry-and-chemical-engineering",label:"Journal of Chemistry and Chemical Engineering"},{value:"journal-of-chemometrics",label:"Journal of Chemometrics"},{value:"journal-of-clinical-and-translational-science",label:"Journal of Clinical and Translational Science"},{value:"journal-of-clinical-neurology",label:"Journal of Clinical Neurology"},{value:"journal-of-clinical-neurophysiology",label:"Journal of Clinical Neurophysiology"},{value:"journal-of-clinical-oncology",label:"Journal of Clinical Oncology"},{value:"journal-of-clinical-rheumatology",label:"Journal of Clinical Rheumatology"},{value:"journal-of-clinical-sleep-medicine",label:"Journal of Clinical Sleep Medicine"},{value:"journal-of-combinatorics",label:"Journal of Combinatorics"},{value:"journal-of-common-market-studies",label:"Journal of Common Market Studies"},{value:"journal-of-comparative-pathology",label:"Journal of Comparative Pathology"},{value:"journal-of-computational-chemistry",label:"Journal of Computational Chemistry"},{value:"journal-of-computer-applications-in-archaeology",label:"Journal of Computer Applications in Archaeology"},{value:"journal-of-computer-assisted-tomography",label:"Journal of Computer Assisted Tomography"},{value:"journal-of-computer-information-systems",label:"Journal of Computer Information Systems"},{value:"journal-of-consumer-research",label:"Journal of Consumer Research"},{value:"journal-of-contemporary-medicine",label:"Journal of Contemporary Medicine"},{value:"journal-of-contemporary-water-research-and-education",label:"Journal of Contemporary Water Research and Education"},{value:"journal-of-crohns-and-colitis-supplements",label:"Journal of Crohn's and Colitis Supplements"},{value:"journal-of-crohns-and-colitis",label:"Journal of Crohn's and Colitis"},{value:"journal-of-dairy-science",label:"Journal of Dairy Science"},{value:"journal-of-dental-research",label:"Journal of Dental Research"},{value:"journal-of-early-christian-studies",label:"Journal of Early Christian Studies"},{value:"journal-of-economic-impact",label:"Journal of Economic Impact"},{value:"journal-of-egyptian-history",label:"Journal of Egyptian History"},{value:"journal-of-elections-public-opinion-and-parties",label:"Journal of Elections, Public Opinion & Parties"},{value:"journal-of-endodontics",label:"Journal of Endodontics"},{value:"journal-of-environmental-science-and-health-part-b",label:"Journal of Environmental Science and Health, Part B"},{value:"journal-of-ethnobiology",label:"Journal of Ethnobiology"},{value:"journal-of-european-public-policy",label:"Journal of European Public Policy"},{value:"journal-of-evolution-and-health",label:"Journal of Evolution and Health"},{value:"journal-of-evolutionary-biology",label:"Journal of Evolutionary Biology"},{value:"journal-of-experimental-botany",label:"Journal of Experimental Botany"},{value:"journal-of-field-ornithology",label:"Journal of Field Ornithology"},{value:"journal-of-finance",label:"Journal of Finance"},{value:"journal-of-financial-and-quantitative-analysis",label:"Journal of Financial and Quantitative Analysis"},{value:"journal-of-fish-biology",label:"Journal of Fish Biology"},{value:"journal-of-food-protection",label:"Journal of Food Protection"},{value:"journal-of-foraminiferal-research",label:"Journal of Foraminiferal Research"},{value:"journal-of-forensic-sciences",label:"Journal of Forensic Sciences"},{value:"journal-of-frailty-and-aging",label:"Journal of Frailty & Aging"},{value:"journal-of-geriatric-psychiatry-and-neurology",label:"Journal of Geriatric Psychiatry and Neurology"},{value:"journal-of-glaciology",label:"Journal of Glaciology"},{value:"journal-of-global-health",label:"Journal of Global Health"},{value:"journal-of-health-care-for-the-poor-and-underserved",label:"Journal of Health Care for the Poor and Underserved"},{value:"journal-of-hearing-science",label:"Journal of Hearing Science"},{value:"journal-of-historical-linguistics",label:"Journal of Historical Linguistics"},{value:"journal-of-human-evolution",label:"Journal of Human Evolution"},{value:"journal-of-human-rights",label:"Journal of Human Rights"},{value:"journal-of-hypertension",label:"Journal of Hypertension"},{value:"journal-of-industrial-and-engineering-chemistry",label:"Journal of Industrial and Engineering Chemistry"},{value:"journal-of-industrial-ecology",label:"Journal of Industrial Ecology"},{value:"journal-of-infection",label:"Journal of Infection"},{value:"journal-of-infectious-diseases",label:"Journal of Infectious Diseases"},{value:"journal-of-information-technology",label:"Journal of Information Technology"},{value:"journal-of-institutional-and-theoretical-economics",label:"Journal of Institutional and Theoretical Economics"},{value:"journal-of-instrumentation",label:"Journal of Instrumentation"},{value:"journal-of-integrated-omics",label:"Journal of Integrated OMICS"},{value:"journal-of-interactive-marketing",label:"Journal of Interactive Marketing"},{value:"journal-of-intercultural-studies",label:"Journal of Intercultural Studies"},{value:"journal-of-internal-medicine",label:"Journal of Internal Medicine"},{value:"journal-of-international-business-studies",label:"Journal of International Business Studies"},{value:"journal-of-international-economic-law",label:"Journal of International Economic Law"},{value:"journal-of-international-peacekeeping",label:"Journal of International Peacekeeping"},{value:"journal-of-international-relations-and-development",label:"Journal of International Relations and Development"},{value:"journal-of-investigative-dermatology",label:"Journal of Investigative Dermatology"},{value:"journal-of-jewish-studies",label:"Journal of Jewish Studies"},{value:"journal-of-korean-neurosurgical-society",label:"Journal of Korean Neurosurgical Society"},{value:"journal-of-leukocyte-biology",label:"Journal of Leukocyte Biology"},{value:"journal-of-limnology",label:"Journal of Limnology"},{value:"journal-of-linguistics",label:"Journal of Linguistics"},{value:"journal-of-lipid-research",label:"Journal of Lipid Research"},{value:"journal-of-magnetic-resonance-imaging",label:"Journal Of Magnetic Resonance Imaging"},{value:"journal-of-mammalogy",label:"Journal of Mammalogy"},{value:"journal-of-management-information-systems",label:"Journal of Management Information Systems"},{value:"journal-of-management-studies",label:"Journal of Management Studies"},{value:"journal-of-management",label:"Journal of Management"},{value:"journal-of-materials-research",label:"Journal of Materials Research"},{value:"journal-of-mechanical-science-and-technology",label:"Journal of Mechanical Science and Technology"},{value:"journal-of-medical-genetics",label:"Journal of Medical Genetics"},{value:"journal-of-medical-internet-research",label:"Journal of Medical Internet Research"},{value:"journal-of-microbiology-and-biotechnology",label:"Journal of Microbiology and Biotechnology"},{value:"journal-of-microbiology",label:"Journal of Microbiology"},{value:"journal-of-minimally-invasive-gynecology",label:"Journal of Minimally Invasive Gynecology"},{value:"journal-of-molecular-cell-biology",label:"Journal of Molecular Cell Biology"},{value:"journal-of-molecular-endocrinology",label:"Journal of Molecular Endocrinology"},{value:"journal-of-molecular-recognition",label:"Journal of Molecular Recognition"},{value:"journal-of-molecular-signaling",label:"Journal of Molecular Signaling"},{value:"journal-of-move-and-therapeutic-science",label:"Journal of Move and Therapeutic Science"},{value:"journal-of-musculoskeletal-research",label:"Journal of Musculoskeletal Research"},{value:"journal-of-music-technology-and-education",label:"Journal of Music Technology and Education"},{value:"journal-of-nanoscience-and-nanotechnology",label:"Journal of Nanoscience and Nanotechnology"},{value:"journal-of-natural-history",label:"Journal of Natural History"},{value:"journal-of-neolithic-archaeology",label:"Journal of Neolithic Archaeology"},{value:"journal-of-neurochemistry",label:"Journal of Neurochemistry"},{value:"journal-of-neuroendocrinology",label:"Journal of Neuroendocrinology"},{value:"journal-of-neurological-disorders",label:"Journal of Neurological Disorders"},{value:"journal-of-neurophysiology",label:"Journal of Neurophysiology"},{value:"journal-of-neuroscience-and-neuroengineering",label:"Journal of Neuroscience and Neuroengineering"},{value:"journal-of-new-zealand-grasslands",label:"Journal of New Zealand Grasslands"},{value:"journal-of-nutrition",label:"Journal of Nutrition"},{value:"journal-of-oil-palm-research",label:"Journal of Oil Palm Research"},{value:"journal-of-open-research-software",label:"Journal of Open Research Software"},{value:"journal-of-oral-and-maxillofacial-surgery",label:"Journal of Oral and Maxillofacial Surgery"},{value:"journal-of-orthopaedic-research",label:"Journal of Orthopaedic Research"},{value:"journal-of-orthopaedic-trauma",label:"Journal of Orthopaedic Trauma"},{value:"journal-of-orthopaedics-trauma-and-rehabilitation",label:"Journal of Orthopaedics, Trauma and Rehabilitation"},{value:"journal-of-paleontology",label:"Journal of Paleontology"},{value:"journal-of-peace-research",label:"Journal of Peace Research"},{value:"journal-of-pediatric-gastroenterology-and-nutrition",label:"Journal of Pediatric Gastroenterology and Nutrition"},{value:"journal-of-peptide-science",label:"Journal of Peptide Science"},{value:"journal-of-perinatal-medicine",label:"Journal of Perinatal Medicine"},{value:"journal-of-periodontal-research",label:"Journal of Periodontal Research"},{value:"journal-of-petrology",label:"Journal of Petrology"},{value:"journal-of-pharmacy-and-pharmacology",label:"Journal of Pharmacy and Pharmacology"},{value:"journal-of-phycology",label:"Journal of Phycology"},{value:"journal-of-physical-therapy-science",label:"Journal of Physical Therapy Science"},{value:"journal-of-plankton-research",label:"Journal of Plankton Research"},{value:"journal-of-plant-ecology",label:"Journal of Plant Ecology"},{value:"journal-of-plant-nutrition-and-soil-science",label:"Journal of Plant Nutrition and Soil Science"},{value:"journal-of-plant-protection-research",label:"Journal of Plant Protection Research"},{value:"journal-of-political-ideologies",label:"Journal of Political Ideologies"},{value:"journal-of-political-philosophy",label:"Journal of Political Philosophy"},{value:"journal-of-pollination-ecology",label:"Journal of Pollination Ecology"},{value:"journal-of-polymer-science-part-a-polymer-chemistry",label:"Journal of Polymer Science Part A: Polymer Chemistry"},{value:"journal-of-porphyrins-and-phthalocyanines",label:"Journal of Porphyrins and Phthalocyanines"},{value:"journal-of-product-innovation-management",label:"Journal of Product Innovation Management"},{value:"journal-of-psychiatric-and-mental-health-nursing",label:"Journal of Psychiatric and Mental Health Nursing"},{value:"journal-of-psychiatry-and-neuroscience",label:"Journal of Psychiatry & Neuroscience"},{value:"journal-of-raman-spectroscopy",label:"Journal of Raman Spectroscopy"},{value:"journal-of-reconstructive-microsurgery",label:"Journal of Reconstructive Microsurgery"},{value:"journal-of-refugee-studies",label:"Journal of Refugee Studies"},{value:"journal-of-retailing",label:"Journal of Retailing"},{value:"journal-of-rheumatology",label:"Journal of Rheumatology"},{value:"journal-of-roman-archaeology-a",label:"Journal of Roman Archaeology (A)"},{value:"journal-of-roman-archaeology-b",label:"Journal of Roman Archaeology (B)"},{value:"journal-of-science-and-medicine-in-sport",label:"Journal of Science and Medicine in Sport"},{value:"journal-of-separation-science",label:"Journal of Separation Science"},{value:"journal-of-shoulder-and-elbow-surgery",label:"Journal of Shoulder and Elbow Surgery"},{value:"journal-of-simulation",label:"Journal of Simulation"},{value:"journal-of-sleep-research",label:"Journal of Sleep Research"},{value:"journal-of-small-animal-practice",label:"Journal of Small Animal Practice"},{value:"journal-of-small-business-management",label:"Journal of Small Business Management"},{value:"journal-of-social-archaeology",label:"Journal of Social Archaeology"},{value:"journal-of-social-philosophy",label:"Journal of Social Philosophy"},{value:"journal-of-soil-and-water-conservation",label:"Journal of Soil and Water Conservation"},{value:"journal-of-soil-science-and-plant-nutrition",label:"Journal of Soil Science and Plant Nutrition"},{value:"journal-of-sport-and-health-science",label:"Journal of Sport and Health Science"},{value:"journal-of-sports-science-and-medicine",label:"Journal of Sports Science & Medicine"},{value:"journal-of-strength-and-conditioning-research",label:"Journal of Strength and Conditioning Research"},{value:"journal-of-stroke",label:"Journal of Stroke"},{value:"journal-of-structural-geology",label:"Journal of Structural Geology"},{value:"journal-of-studies-on-alcohol-and-drugs",label:"Journal of Studies on Alcohol and Drugs"},{value:"journal-of-surgery-and-medicine",label:"Journal of Surgery and Medicine"},{value:"journal-of-surgical-oncology",label:"Journal of Surgical Oncology"},{value:"journal-of-systematic-palaeontology",label:"Journal of Systematic Palaeontology"},{value:"journal-of-the-air-and-waste-management-association",label:"Journal of the Air & Waste Management Association"},{value:"journal-of-the-american-academy-of-audiology",label:"Journal of the American Academy of Audiology"},{value:"journal-of-the-american-academy-of-orthopaedic-surgeons",label:"Journal of the American Academy of Orthopaedic Surgeons"},{value:"journal-of-the-american-animal-hospital-association",label:"Journal of the American Animal Hospital Association"},{value:"journal-of-the-american-association-of-laboratory-animal-science",label:"Journal of the American Association of Laboratory Animal Science"},{value:"journal-of-the-american-ceramic-society",label:"Journal of the American Ceramic Society"},{value:"journal-of-the-american-college-of-cardiology",label:"Journal of the American College of Cardiology"},{value:"journal-of-the-american-college-of-surgeons",label:"Journal of the American College of Surgeons"},{value:"journal-of-the-american-heart-association",label:"Journal of the American Heart Association"},{value:"journal-of-the-american-society-of-brewing-chemists",label:"Journal of the American Society of Brewing Chemists"},{value:"journal-of-the-american-society-of-nephrology",label:"Journal of the American Society of Nephrology"},{value:"journal-of-the-american-water-resources-association",label:"Journal of the American Water Resources Association"},{value:"journal-of-the-association-for-information-systems",label:"Journal of the Association for Information Systems"},{value:"journal-of-the-association-of-environmental-and-resource-economists",label:"Journal of the Association of Environmental and Resource Economists"},{value:"journal-of-the-botanical-research-institute-of-texas",label:"Journal of the Botanical Research Institute of Texas"},{value:"journal-of-the-brazilian-chemical-society",label:"Journal of the Brazilian Chemical Society"},{value:"journal-of-the-electrochemical-society",label:"Journal of The Electrochemical Society"},{value:"journal-of-the-european-academy-of-dermatology-and-venereology",label:"Journal of the European Academy of Dermatology and Venereology"},{value:"journal-of-the-history-of-collections",label:"Journal of the History of Collections"},{value:"journal-of-the-indian-law-institute",label:"Journal of the Indian Law Institute"},{value:"journal-of-the-korean-society-of-civil-engineers",label:"Journal of the Korean Society of Civil Engineers"},{value:"journal-of-the-marine-biological-association-of-the-united-kingdom",label:"Journal of the Marine Biological Association of the United Kingdom"},{value:"journal-of-the-royal-anthropological-institute",label:"Journal of the Royal Anthropological Institute"},{value:"journal-of-the-royal-society-of-western-australia",label:"Journal of the Royal Society of Western Australia"},{value:"journal-of-the-royal-statistical-society",label:"Journal of the Royal Statistical Society"},{value:"journal-of-the-science-of-food-and-agriculture",label:"Journal of the Science of Food and Agriculture"},{value:"journal-of-the-serbian-chemical-society",label:"Journal of the Serbian Chemical Society"},{value:"journal-of-the-warburg-and-courtauld-institutes",label:"Journal of the Warburg and Courtauld Institutes"},{value:"journal-of-thermal-spray-technology",label:"Journal of Thermal Spray Technology"},{value:"journal-of-threatened-taxa",label:"Journal of Threatened Taxa"},{value:"journal-of-thrombosis-and-haemostasis",label:"Journal of Thrombosis and Haemostasis"},{value:"journal-of-tropical-ecology",label:"Journal of Tropical Ecology"},{value:"journal-of-tropical-life-science",label:"Journal of Tropical Life Science"},{value:"journal-of-universal-computer-science",label:"Journal of Universal Computer Science"},{value:"journal-of-urban-and-environmental-engineering",label:"Journal of Urban and Environmental Engineering"},{value:"journal-of-urban-technology",label:"Journal of Urban Technology"},{value:"journal-of-value-inquiry",label:"The Journal of Value Inquiry"},{value:"journal-of-vegetation-science",label:"Journal of Vegetation Science"},{value:"journal-of-vertebrate-biology",label:"Journal of Vertebrate Biology"},{value:"journal-of-vertebrate-paleontology",label:"Journal of Vertebrate Paleontology"},{value:"journal-of-vestibular-research",label:"Journal of Vestibular Research"},{value:"journal-of-veterinary-diagnostic-investigation",label:"Journal of Veterinary Diagnostic Investigation"},{value:"journal-of-visualized-experiments",label:"Journal of Visualized Experiments"},{value:"journal-of-water-sanitation-and-hygiene-for-development",label:"Journal of Water Sanitation and Hygiene for Development"},{value:"journal-of-wildlife-diseases",label:"Journal of Wildlife Diseases"},{value:"journal-of-zoo-and-wildlife-medicine",label:"Journal of Zoo and Wildlife Medicine"},{value:"journal-of-zoo-biology",label:"Journal of Zoo Biology"},{value:"journal-of-zoology",label:"Journal of Zoology"},{value:"journal-on-efficiency-and-responsibility-in-education-and-science",label:"Journal on Efficiency and Responsibility in Education and Science"},{value:"journalistica",label:"Journalistica (Dansk)"},{value:"jurisprudence",label:"Jurisprudence (\u010Ce\u0161tina)"},{value:"juristische-schulung",label:"Juristische Schulung (Deutsch)"},{value:"juristische-zitierweise-offentliches-recht",label:"Juristische Zitierweise - \xD6ffentliches Recht (Deutsch)"},{value:"juristische-zitierweise-schweizer",label:"Juristische Zitierweise Schweizer (Ryser B\xFCschi et al.) (Deutsch - Schweiz)"},{value:"juristische-zitierweise",label:"Juristische Zitierweise (St\xFCber) (Deutsch)"},{value:"jurnal-ilmu-dan-teknologi-hasil-ternak",label:"Jurnal Ilmu dan Teknologi Hasil Ternak"},{value:"jurnal-pangan-dan-agroindustri",label:"Jurnal Pangan dan Agroindustri (Bahasa Indonesia)"},{value:"jurnal-sains-farmasi-dan-klinis",label:"Jurnal Sains Farmasi & Klinis"},{value:"jyvaskylan-yliopisto-kemian-laitos",label:"Jyv\xE4skyl\xE4n yliopisto - Kemian laitos (Suomi)"},{value:"karabuk-university-graduate-school-of-natural-and-applied-sciences",label:"Karabuk University - Graduate School of Natural and Applied Sciences"},{value:"karger-journals-author-date",label:"Karger journals (author-date)"},{value:"karger-journals",label:"Karger journals"},{value:"karlstad-universitet-harvard",label:"Karlstad Universitet - Harvard (Svenska)"},{value:"karstenia",label:"Karstenia"},{value:"keel-ja-kirjandus",label:"Keel ja Kirjandus (Eesti keel)"},{value:"kidney-research-and-clinical-practice",label:"Kidney Research and Clinical Practice"},{value:"kindheit-und-entwicklung",label:"Kindheit und Entwicklung"},{value:"kit-karlsruher-institut-fur-technologie-germanistik-ndl-neuere-deutsche-literaturwissenschaft",label:"KIT Karlsruher Institut f\xFCr Technologie Germanistik NDL Neuere Deutsche Literaturwissenschaft (German)"},{value:"klinische-padiatrie",label:"Klinische P\xE4diatrie"},{value:"knee-surgery-and-related-research",label:"Knee Surgery & Related Research"},{value:"knee-surgery-sports-traumatology-arthroscopy",label:"Knee Surgery, Sports Traumatology, Arthroscopy"},{value:"knowledge-and-management-of-aquatic-ecosystems",label:"Knowledge & Management of Aquatic Ecosystems"},{value:"kolner-zeitschrift-fur-soziologie-und-sozialpsychologie",label:"K\xF6lner Zeitschrift f\xFCr Soziologie und Sozialpsychologie (Deutsch)"},{value:"kommunikation-und-recht",label:"Kommunikation und Recht (Deutsch)"},{value:"kona-powder-and-particle-journal",label:"KONA Powder and Particle Journal"},{value:"korean-journal-of-anesthesiology",label:"Korean Journal of Anesthesiology"},{value:"korean-journal-of-radiology",label:"Korean Journal of Radiology"},{value:"kritische-ausgabe",label:"Kritische Ausgabe (Deutsch)"},{value:"ksce-journal-of-civil-engineering",label:"KSCE Journal of Civil Engineering"},{value:"kth-royal-institute-of-technology-school-of-computer-science-and-communication-sv",label:"KTH Royal Institute of Technology - School of Computer Science and Communication (Svenska)"},{value:"kth-royal-institute-of-technology-school-of-computer-science-and-communication",label:"KTH Royal Institute of Technology - School of Computer Science and Communication"},{value:"kunstakademie-munster",label:"Kunstakademie M\xFCnster (Deutsch)"},{value:"l-homme",label:"L'homme \u2013 Revue fran\xE7aise d'anthropologie"},{value:"la-revue-des-sciences-de-gestion",label:"La Revue des Sciences de Gestion (Fran\xE7ais)"},{value:"la-trobe-university-apa",label:"La Trobe University - APA 6th edition"},{value:"la-trobe-university-harvard",label:"La Trobe University - Harvard"},{value:"laboratory-animal-science-professional",label:"Laboratory Animal Science Professional"},{value:"lancaster-university-harvard",label:"Lancaster University - Harvard"},{value:"land-degradation-and-development",label:"Land Degradation & Development"},{value:"landes-bioscience-journals",label:"Landes Bioscience Journals"},{value:"language-in-society",label:"Language in Society"},{value:"language",label:"Language"},{value:"lannee-sociologique",label:"L\u2019Ann\xE9e sociologique (Fran\xE7ais)"},{value:"laser-and-photonics-reviews",label:"Laser & Photonics Reviews"},{value:"latin-american-perspectives",label:"Latin American Perspectives"},{value:"latin-american-research-review",label:"Latin American Research Review"},{value:"lauterbornia",label:"Lauterbornia - Internationale Zeitschrift f\xFCr Faunistik und Floristik des S\xFC\xDFwassers (Deutsch)"},{value:"law-and-society-review",label:"Law & Society Review"},{value:"law-citation-manual",label:"Law Citation Manual (\u4E2D\u6CD5\u5B66\u6CE8\u5F15\u624B\u518C, \u4E2D\u6587)"},{value:"law-technology-and-humans",label:"Law, Technology and Humans"},{value:"lcgc",label:"LCGC"},{value:"le-mouvement-social",label:"Le Mouvement Social (Fran\xE7ais)"},{value:"le-tapuscrit-author-date",label:"Le tapuscrit (\xC9cole des hautes \xE9tudes en sciences sociales) (author-date, Fran\xE7ais)"},{value:"le-tapuscrit-note",label:"Le tapuscrit (\xC9cole des hautes \xE9tudes en sciences sociales) (note, Fran\xE7ais)"},{value:"leiden-journal-of-international-law",label:"Leiden Journal of International Law"},{value:"leidraad-voor-juridische-auteurs",label:"Leidraad voor juridische auteurs 2019 (Nederlands)"},{value:"leonardo",label:"Leonardo"},{value:"les-cahiers-du-journalisme",label:"Les Cahiers du journalisme (Fran\xE7ais)"},{value:"les-journees-de-la-recherche-avicole",label:"Les Journ\xE9es de la Recherche Avicole (Fran\xE7ais)"},{value:"les-journees-de-la-recherche-porcine",label:"Les Journ\xE9es de la Recherche Porcine (Fran\xE7ais)"},{value:"les-nouvelles-de-l-archeologie",label:"Les nouvelles de l'arch\xE9ologie (Fran\xE7ais)"},{value:"lethaia",label:"Lethaia"},{value:"letters-in-applied-microbiology",label:"Letters in Applied Microbiology"},{value:"lettres-et-sciences-humaines-fr",label:"Lettres et Sciences Humaines (biblio et notes, Fran\xE7ais)"},{value:"leviathan",label:"Leviathan (Deutsch)"},{value:"lien-social-et-politiques",label:"Lien social et Politiques (Fran\xE7ais)"},{value:"limnetica",label:"Limnetica"},{value:"limnology-and-oceanography",label:"Limnology and Oceanography"},{value:"liver-international",label:"Liver International"},{value:"liverpool-john-moores-university-harvard",label:"Liverpool John Moores University - Harvard"},{value:"lluelles-no-ibid",label:"Guide des r\xE9f\xE9rences pour la r\xE9daction juridique 7e \xE9dition (Notes compl\xE8tes) (Guide Lluelles, no Ibid., Fran\xE7ais - Canada)"},{value:"lluelles",label:"Guide des r\xE9f\xE9rences pour la r\xE9daction juridique 7e \xE9dition (Guide Lluelles, Fran\xE7ais - Canada)"},{value:"london-metropolitan-university-harvard",label:"London Metropolitan University - Harvard"},{value:"london-review-of-international-law",label:"London Review of International Law"},{value:"london-south-bank-university-numeric",label:"London South Bank University (numeric)"},{value:"lund-university-school-of-economics-and-management",label:"Lund University School of Economics and Management"},{value:"macromolecular-reaction-engineering",label:"Macromolecular Reaction Engineering"},{value:"magnetic-resonance-in-medical-sciences",label:"Magnetic Resonance in Medical Sciences"},{value:"magnetic-resonance-in-medicine",label:"Magnetic Resonance in Medicine"},{value:"magnetic-resonance-materials-in-physics-biology-and-medicine",label:"Magnetic Resonance Materials in Physics, Biology and Medicine"},{value:"maison-de-l-orient-et-de-la-mediterranee-en",label:"Maison de l'Orient et de la M\xE9diterran\xE9e (English)"},{value:"maison-de-l-orient-et-de-la-mediterranee",label:"Maison de l'Orient et de la M\xE9diterran\xE9e (Fran\xE7ais)"},{value:"malaysian-orthopaedic-journal",label:"Malaysian Orthopaedic Journal"},{value:"mammal-review",label:"Mammal Review"},{value:"mammalia",label:"Mammalia"},{value:"mammalogy-notes",label:"Mammalogy Notes"},{value:"management-et-avenir",label:"Management & Avenir (Fran\xE7ais)"},{value:"management-international",label:"Management international"},{value:"management-of-biological-invasions",label:"Management of Biological Invasions"},{value:"manchester-university-press-author-date",label:"Manchester University Press monographs (author-date)"},{value:"manchester-university-press",label:"Manchester University Press monographs (note)"},{value:"marine-biology",label:"Marine Biology"},{value:"marine-mammal-science",label:"Marine Mammal Science"},{value:"marine-ornithology",label:"Marine Ornithology"},{value:"marine-turtle-newsletter",label:"Marine Turtle Newsletter"},{value:"marmara-universitesi-turkiyat-arastirmalari-enstitusu",label:"Marmara \xDCniversitesi - T\xFCrkiyat Ara\u015Ft\u0131rmalar\u0131 Enstit\xFCs\xFC (T\xFCrk\xE7e)"},{value:"mary-ann-liebert-harvard",label:"Mary Ann Liebert - Harvard"},{value:"mary-ann-liebert-vancouver",label:"Mary Ann Liebert - Vancouver"},{value:"masarykova-univerzita-pravnicka-fakulta",label:"Masarykova univerzita - Pr\xE1vnick\xE1 fakulta"},{value:"mastozoologia-neotropical",label:"Mastozoologia Neotropical"},{value:"materials-express",label:"Materials Express"},{value:"mathematical-geosciences",label:"Mathematical Geosciences"},{value:"mathematics-and-computers-in-simulation",label:"Mathematics and Computers in Simulation"},{value:"mcdonald-institute-monographs",label:"McDonald Institute Monographs"},{value:"mcgill-en",label:"Canadian Guide to Uniform Legal Citation 9th edition (McGill Guide)"},{value:"mcgill-fr",label:"Manuel canadien de la r\xE9f\xE9rence juridique 9e \xE9dition (Guide McGill, Fran\xE7ais - Canada)"},{value:"medecine-intensive-reanimation",label:"M\xE9decine Intensive R\xE9animation"},{value:"medecine-sciences",label:"m\xE9decine/sciences"},{value:"media-culture-and-society",label:"Media, Culture & Society"},{value:"mediaeval-studies",label:"Mediaeval Studies"},{value:"medical-dosimetry",label:"Medical Dosimetry"},{value:"medical-history",label:"Medical History"},{value:"medicina-clinica",label:"Medicina Cl\xEDnica (Espa\xF1ol)"},{value:"medicina-delle-dipendenze-italian-journal-of-the-addictions",label:"Medicina delle Dipendenze - Italian Journal of the Addictions (Italiano)"},{value:"medicinal-research-reviews",label:"Medicinal Research Reviews"},{value:"medicine-and-science-in-sports-and-exercise",label:"Medicine & Science in Sports & Exercise"},{value:"medicine-publishing",label:"Medicine Publishing"},{value:"medicinski-razgledi",label:"Medicinski razgledi"},{value:"medicinskiy-akademicheskiy-zhurnal",label:"Medicinskiy Akademicheskiy Zhurnal"},{value:"mediterranean-journal-of-chemistry",label:"Mediterranean Journal of Chemistry"},{value:"mediterranean-journal-of-infection-microbes-and-antimicrobials",label:"Mediterranean Journal of Infection, Microbes and Antimicrobials"},{value:"mediterranean-politics",label:"Mediterranean Politics"},{value:"melbourne-school-of-theology",label:"Melbourne School of Theology"},{value:"memorias-do-instituto-oswaldo-cruz",label:"Mem\xF3rias do Instituto Oswaldo Cruz"},{value:"mercator-institut-fur-sprachforderung-und-deutsch-als-zweitsprache",label:"Mercator-Institut f\xFCr Sprachf\xF6rderung und Deutsch als Zweitsprache (Deutsch)"},{value:"mercatus-center",label:"Mercatus Center"},{value:"metallurgical-and-materials-transactions-a",label:"Metallurgical and Materials Transactions A"},{value:"metallurgical-and-materials-transactions",label:"Metallurgical and Materials Transactions"},{value:"meteoritics-and-planetary-science",label:"Meteoritics & Planetary Science"},{value:"meteorological-applications",label:"Meteorological Applications"},{value:"method-and-theory-in-the-study-of-religion",label:"Method & Theory in the Study of Religion"},{value:"methods-of-information-in-medicine",label:"Methods of Information in Medicine"},{value:"metropol-verlag",label:"Metropol Verlag (Deutsch)"},{value:"metropolia-university-of-applied-sciences-harvard",label:"Metropolia Ammattikorkeakoulu - Harvard (Suomi)"},{value:"metropolitiques",label:"M\xE9tropolitiques (Fran\xE7ais)"},{value:"microbial-cell",label:"Microbial Cell"},{value:"microbiology-society",label:"Microbiology Society"},{value:"microcirculation",label:"Microcirculation"},{value:"microscopy-and-microanalysis",label:"Microscopy and Microanalysis"},{value:"middle-east-critique",label:"Middle East Critique"},{value:"midwestern-baptist-theological-seminary",label:"Midwestern Baptist Theological Seminary"},{value:"mimbar-hukum",label:"Mimbar Hukum"},{value:"mimesis-edizioni",label:"Mimesis Edizioni (Italiano)"},{value:"mind-and-language",label:"Mind & Language"},{value:"mineralogical-magazine",label:"Mineralogical Magazine"},{value:"mis-quarterly",label:"MIS Quarterly"},{value:"modern-chinese-literature-and-culture",label:"Modern Chinese Literature and Culture"},{value:"modern-humanities-research-association-author-date",label:"Modern Humanities Research Association 3rd edition (author-date)"},{value:"modern-humanities-research-association",label:"Modern Humanities Research Association 3rd edition (note with bibliography)"},{value:"modern-language-association-6th-edition-note",label:"Modern Language Association 6th edition (note)"},{value:"modern-language-association-7th-edition-underline",label:"Modern Language Association 7th edition (underline)"},{value:"modern-language-association-7th-edition-with-url",label:"Modern Language Association 7th edition (with URL)"},{value:"modern-language-association-7th-edition",label:"Modern Language Association 7th edition"},{value:"modern-language-association-8th-edition",label:"Modern Language Association 8th edition"},{value:"modern-language-association",label:"Modern Language Association 9th edition"},{value:"modern-pathology",label:"Modern Pathology"},{value:"modern-phytomorphology",label:"Modern Phytomorphology"},{value:"mohr-siebeck-recht",label:"Mohr Siebeck - Recht (Deutsch - \xD6sterreich)"},{value:"molecular-and-cellular-proteomics",label:"Molecular & Cellular Proteomics"},{value:"molecular-biology-and-evolution",label:"Molecular Biology and Evolution"},{value:"molecular-biology-of-the-cell",label:"Molecular Biology of the Cell"},{value:"molecular-biology",label:"Molecular Biology"},{value:"molecular-metabolism",label:"Molecular Metabolism"},{value:"molecular-microbiology",label:"Molecular Microbiology"},{value:"molecular-nutrition-and-food-research",label:"Molecular Nutrition & Food Research"},{value:"molecular-oncology",label:"Molecular Oncology"},{value:"molecular-plant-microbe-interactions",label:"Molecular Plant-Microbe Interactions"},{value:"molecular-plant-pathology",label:"Molecular Plant Pathology"},{value:"molecular-plant",label:"Molecular Plant"},{value:"molecular-psychiatry-letters",label:"Molecular Psychiatry (letters to the editor)"},{value:"molecular-psychiatry",label:"Molecular Psychiatry"},{value:"monash-university-csiro",label:"Monash University - CSIRO"},{value:"monash-university-harvard",label:"Monash University - Harvard"},{value:"mondes-en-developpement",label:"Mondes en d\xE9veloppement (Fran\xE7ais)"},{value:"monographs-of-the-palaeontographical-society",label:"Monographs of the Palaeontographical Society"},{value:"moore-theological-college",label:"Moore Theological College"},{value:"moorlands-college",label:"Moorlands College"},{value:"mrs-bulletin",label:"MRS Bulletin"},{value:"multidisciplinary-digital-publishing-institute",label:"Multidisciplinary Digital Publishing Institute"},{value:"multilingual-matters",label:"Multilingual Matters"},{value:"multimed",label:"Multimed (Espa\xF1ol)"},{value:"multiple-sclerosis-journal",label:"Multiple Sclerosis Journal"},{value:"muscle-and-nerve",label:"Muscle & Nerve"},{value:"museum-national-dhistoire-naturelle",label:"Mus\xE9um national d'Histoire naturelle"},{value:"music-theory-spectrum",label:"Music Theory Spectrum"},{value:"mutagenesis",label:"Mutagenesis"},{value:"mycobiology",label:"Mycobiology"},{value:"mycologia",label:"Mycologia"},{value:"myrmecological-news",label:"Myrmecological News"},{value:"nano-biomedicine-and-engineering",label:"Nano Biomedicine and Engineering"},{value:"natbib-plainnat-author-date",label:"natbib - plainnat (author-date)"},{value:"national-archives-of-australia",label:"National Archives of Australia"},{value:"national-institute-of-health-research",label:"National Institute of Health Research"},{value:"national-institute-of-organisation-dynamics-australia-harvard",label:"National Institute of Organisation Dynamics Australia - Harvard"},{value:"national-institute-of-technology-karnataka",label:"National Institute of Technology Karnataka"},{value:"national-institute-of-technology-tiruchirappalli",label:"National Institute of Technology, Tiruchirappalli"},{value:"national-library-of-medicine-grant-proposals",label:"National Library of Medicine (grant proposals with PMCID/PMID)"},{value:"national-marine-fisheries-service-national-environmental-policy-act",label:"National Marine Fisheries Service - National Environmental Policy Act"},{value:"national-natural-science-foundation-of-china",label:"National Natural Science Foundation of China (\u4E2D\u6587)"},{value:"national-science-foundation-grant-proposals",label:"National Science Foundation (grant proposals)"},{value:"national-university-of-singapore-department-of-geography-harvard",label:"National University of Singapore - Department of Geography - Harvard"},{value:"nations-and-nationalism",label:"Nations and Nationalism"},{value:"natur-und-landschaft",label:"Natur und Landschaft (Deutsch)"},{value:"natura-croatica",label:"Natura Croatica"},{value:"nature-neuroscience-brief-communications",label:"Nature Neuroscience (brief communications)"},{value:"nature-no-et-al",label:'Nature (no "et al.")'},{value:"nature-no-superscript",label:"Nature (no superscript)"},{value:"nature-publishing-group-vancouver",label:"Nature Publishing Group - Vancouver"},{value:"nature",label:"Nature"},{value:"natures-sciences-societes",label:"Natures Sciences Soci\xE9t\xE9s"},{value:"nauplius",label:"Nauplius"},{value:"navigation",label:"Navigation"},{value:"nccr-mediality",label:"NCCR Mediality. Medienwandel - Medienwechsel - Medienwissen (Deutsch)"},{value:"necmettin-erbakan-universitesi-fen-ve-muhendislik-bilimleri-dergisi",label:"Necmettin Erbakan \xDCniversitesi Fen ve M\xFChendislik Bilimleri Dergisi (T\xFCrk\xE7e)"},{value:"nehet",label:"NeHeT (Fran\xE7ais)"},{value:"nejm-catalyst-innovations-in-care-delivery",label:"NEJM Catalyst Innovations in Care Delivery"},{value:"nephrology-dialysis-transplantation",label:"Nephrology Dialysis Transplantation"},{value:"netherlands-journal-of-geosciences-geologie-en-mijnbouw",label:"Netherlands Journal of Geosciences - Geologie en Mijnbouw"},{value:"neue-juristische-wochenschrift",label:"Neue Juristische Wochenschrift (Deutsch)"},{value:"neue-kriminalpolitik",label:"Neue Kriminalpolitik (Deutsch)"},{value:"neural-plasticity",label:"Neural Plasticity"},{value:"neuroendocrinology-letters",label:"Neuroendocrinology Letters"},{value:"neuroimaging-clinics-of-north-america",label:"Neuroimaging Clinics of North America"},{value:"neurologia-argentina",label:"Neurolog\xEDa Argentina (Espa\xF1ol)"},{value:"neurologia",label:"Neurolog\xEDa (Espa\xF1ol)"},{value:"neurology-india",label:"Neurology India"},{value:"neurology",label:"Neurology"},{value:"neuropsychopharmacology",label:"Neuropsychopharmacology"},{value:"neurorehabilitation-and-neural-repair",label:"Neurorehabilitation and Neural Repair"},{value:"neuroreport",label:"NeuroReport"},{value:"neurospine",label:"Neurospine"},{value:"neurosurgery-clinics-of-north-america",label:"Neurosurgery Clinics of North America"},{value:"new-harts-rules-the-oxford-style-guide",label:"New Hart's Rules: The Oxford Style Guide"},{value:"new-phytologist",label:"New Phytologist"},{value:"new-solutions",label:"New Solutions"},{value:"new-testament-studies",label:"New Testament Studies"},{value:"new-zealand-dental-journal",label:"New Zealand Dental Journal"},{value:"new-zealand-journal-of-forestry-science",label:"New Zealand Journal of Forestry Science"},{value:"new-zealand-journal-of-history",label:"New Zealand Journal of History"},{value:"new-zealand-plant-protection",label:"New Zealand Plant Protection"},{value:"new-zealand-veterinary-journal",label:"New Zealand Veterinary Journal"},{value:"nist-technical-publication-journal-of-research-of-nist",label:"NIST Technical Publications - Journal of Research of NIST"},{value:"nordic-pulp-and-paper-research-journal",label:"Nordic Pulp & Paper Research Journal"},{value:"norma-portuguesa-405",label:"Norma Portuguesa 405 (Portugu\xEAs)"},{value:"norois",label:"Norois (Fran\xE7ais)"},{value:"norsk-apa-manual-note",label:"Norsk APA-manual - APA 7th edition (note)"},{value:"norsk-apa-manual",label:"Norsk APA-manual - APA 7th edition (author-date)"},{value:"norsk-henvisningsstandard-for-rettsvitenskapelige-tekster",label:"Norsk henvisningsstandard for rettsvitenskapelige tekster (Norsk - Bokm\xE5l)"},{value:"northeastern-naturalist",label:"Northeastern Naturalist"},{value:"nottingham-trent-university-library-harvard",label:"Nottingham Trent University Library - Harvard"},{value:"nouvelles-perspectives-en-sciences-sociales",label:"Nouvelles perspectives en sciences sociales (Fran\xE7ais - Canada)"},{value:"novasinergia",label:"Novasinergia"},{value:"nowa-audiofonologia",label:"Nowa Audiofonologia (Polski)"},{value:"nuclear-receptor-signaling",label:"Nuclear Receptor Signaling"},{value:"nucleic-acids-research-web-server-issue",label:"Nucleic Acids Research - Web Server Issue"},{value:"nucleic-acids-research",label:"Nucleic Acids Research"},{value:"nutrition-research-reviews",label:"Nutrition Research Reviews"},{value:"obafemi-awolowo-university-faculty-of-technology",label:"Obafemi Awolowo University - Faculty of Technology"},{value:"obesity",label:"Obesity"},{value:"obstetrics-and-gynecology-science",label:"Obstetrics & Gynecology Science"},{value:"occupational-medicine",label:"Occupational Medicine"},{value:"ocean-and-coastal-research",label:"Ocean and Coastal Research"},{value:"oceanography",label:"Oceanography"},{value:"oecologia-australis",label:"Oecologia Australis"},{value:"offa",label:"Offa - Berichte und Mitteilungen zur Urgeschichte, Fr\xFChgeschichte und Mittelalterarch\xE4ologie"},{value:"oikos",label:"Oikos"},{value:"oil-shale",label:"Oil Shale"},{value:"oncoimmunology",label:"OncoImmunology"},{value:"oncotarget",label:"Oncotarget"},{value:"open-gender-journal",label:"Open Gender Journal"},{value:"open-window",label:"Open Window - Harvard"},{value:"operative-dentistry",label:"Operative Dentistry"},{value:"ophthalmic-genetics",label:"Ophthalmic Genetics"},{value:"ophthalmology-retina",label:"Ophthalmology Retina"},{value:"ophthalmology",label:"Ophthalmology"},{value:"optics-express",label:"Optics Express"},{value:"optics-letters",label:"Optics Letters"},{value:"opto-electronic-advances",label:"Opto-Electronic Advances"},{value:"optometry-and-vision-science",label:"Optometry & Vision Science"},{value:"opuscula",label:"Opuscula"},{value:"oral-diseases",label:"Oral Diseases"},{value:"organic-geochemistry",label:"Organic Geochemistry"},{value:"organised-sound",label:"Organised Sound"},{value:"organization-studies",label:"Organization Studies"},{value:"organization",label:"Organization"},{value:"organon",label:"Organon"},{value:"ornitologia-neotropical",label:"Ornitolog\xEDa Neotropical"},{value:"orthopedic-clinics-of-north-america",label:"Orthopedic Clinics of North America"},{value:"oryx",label:"Oryx"},{value:"oscola-no-ibid",label:"OSCOLA (Oxford University Standard for Citation of Legal Authorities) (no Ibid.)"},{value:"oscola",label:"OSCOLA (Oxford University Standard for Citation of Legal Authorities)"},{value:"osterreichische-zeitschrift-fur-politikwissenschaft",label:"\xD6sterreichische Zeitschrift f\xFCr Politikwissenschaft (Deutsch - \xD6sterreich)"},{value:"otto-von-guricke-universitat-magdeburg-medizinische-fakultat-numeric",label:"Otto-von-Guericke-Universit\xE4t Magdeburg - Medizinische Fakult\xE4t (numeric)"},{value:"owbarth-verlag",label:"O.W. Barth Verlag (Deutsch)"},{value:"oxford-art-journal",label:"Oxford Art Journal"},{value:"oxford-centre-for-mission-studies-harvard",label:"Oxford Centre for Mission Studies - Harvard"},{value:"oxford-studies-in-ancient-philosophy",label:"Oxford Studies in Ancient Philosophy"},{value:"oxford-studies-on-the-roman-economy",label:"Oxford Studies on the Roman Economy"},{value:"oxford-the-university-of-new-south-wales",label:"The University of New South Wales - Oxford"},{value:"oxford-university-press-humsoc",label:"Oxford University Press HUMSOC"},{value:"oxford-university-press-note",label:"Oxford University Press (note)"},{value:"oxford-university-press-scimed-author-date",label:"Oxford University Press SciMed (author-date)"},{value:"oxford-university-press-scimed-numeric",label:"Oxford University Press SciMed (numeric)"},{value:"oxidation-of-metals",label:"Oxidation of Metals"},{value:"pacific-conservation-biology",label:"Pacific Conservation Biology"},{value:"pacific-science",label:"Pacific Science"},{value:"padagogische-hochschule-bern-institut-vorschulstufe-und-primarstufe",label:"P\xE4dagogische Hochschule Bern - Institut Vorschulstufe und Primarstufe"},{value:"padagogische-hochschule-fachhochschule-nordwestschweiz",label:"P\xE4dagogische Hochschule Fachhochschule Nordwestschweiz (Deutsch - Schweiz)"},{value:"padagogische-hochschule-heidelberg",label:"P\xE4dagogische Hochschule Heidelberg (Deutsch)"},{value:"padagogische-hochschule-vorarlberg",label:"P\xE4dagogische Hochschule Vorarlberg (Deutsch)"},{value:"paediatric-and-perinatal-epidemiology",label:"Paediatric and Perinatal Epidemiology"},{value:"pain-medicine",label:"Pain Medicine"},{value:"pain",label:"PAIN"},{value:"pakistan-journal-of-agricultural-sciences",label:"Pakistan Journal of Agricultural Sciences"},{value:"pakistani-veterinary-journal",label:"Pakistan Veterinary Journal"},{value:"palaeodiversity",label:"Palaeodiversity"},{value:"palaeontographica-abteilung-b-palaeobotany-palaeophytology",label:"Palaeontographica Abteilung B: Palaeobotany - Palaeophytology"},{value:"palaeontologia-electronica",label:"Palaeontologia Electronica"},{value:"palaeontology",label:"Palaeontology"},{value:"palaeovertebrata",label:"Palaeovertebrata"},{value:"palaios",label:"Palaios"},{value:"paleobiology",label:"Paleobiology"},{value:"parasite",label:"Parasite"},{value:"parasitology",label:"Parasitology"},{value:"past-and-present",label:"Past & Present"},{value:"pediatric-allergy-and-immunology",label:"Pediatric Allergy and Immunology"},{value:"pediatric-anesthesia",label:"Pediatric Anesthesia"},{value:"pediatric-blood-and-cancer",label:"Pediatric Blood & Cancer"},{value:"pediatric-infectious-disease-journal",label:"Pediatric Infectious Disease Journal"},{value:"pediatric-physical-therapy",label:"Pediatric Physical Therapy"},{value:"pediatric-practice-and-research",label:"Pediatric Practice and Research"},{value:"pediatric-pulmonology",label:"Pediatric Pulmonology"},{value:"pediatric-research",label:"Pediatric Research"},{value:"pediatric-urology-case-reports",label:"Pediatric Urology Case Reports"},{value:"pedosphere",label:"Pedosphere"},{value:"peerj",label:"PeerJ"},{value:"pensoft-journals",label:"Pensoft Journals"},{value:"periodicum-biologorum",label:"Periodicum Biologorum"},{value:"periodontology-2000",label:"Periodontology 2000"},{value:"permafrost-and-periglacial-processes",label:"Permafrost and Periglacial Processes"},{value:"perspectives-on-sexual-and-reproductive-health",label:"Perspectives on Sexual and Reproductive Health"},{value:"pesquisa-agropecuaria-brasileira",label:"Pesquisa Agropecu\xE1ria Brasileira (Portugu\xEAs - Brasil)"},{value:"pest-management-science",label:"Pest Management Science"},{value:"petit-chicago-author-date",label:"Petit Chicago (author-date, Fran\xE7ais - Canada)"},{value:"pharmacoepidemiology-and-drug-safety",label:"Pharmacoepidemiology and Drug Safety"},{value:"philippika",label:"Philippika (Deutsch)"},{value:"philipps-universitat-marburg-note",label:"Philipps-Universit\xE4t Marburg - Erziehungswissenschaften (note, Deutsch)"},{value:"philosophia-scientiae",label:"Philosophia Scienti\xE6"},{value:"philosophiques",label:"Philosophiques (Fran\xE7ais)"},{value:"philosophy-and-public-affairs",label:"Philosophy & Public Affairs"},{value:"photochemistry-and-photobiology",label:"Photochemistry and Photobiology"},{value:"photosynthetica",label:"Photosynthetica"},{value:"phycological-research",label:"Phycological Research"},{value:"phyllomedusa",label:"Phyllomedusa"},{value:"physiologia-plantarum",label:"Physiologia Plantarum"},{value:"physiological-and-biochemical-zoology",label:"Physiological and Biochemical Zoology"},{value:"physiotherapy-theory-and-practice",label:"Physiotherapy Theory and Practice"},{value:"phytopathologia-mediterranea",label:"Phytopathologia Mediterranea"},{value:"phytotaxa",label:"Phytotaxa"},{value:"pisa-university-press",label:"Pisa University Press"},{value:"planning-practice-and-research",label:"Planning Practice & Research"},{value:"plant-and-cell-physiology",label:"Plant & Cell Physiology"},{value:"plant-biology",label:"Plant Biology"},{value:"plant-biotechnology-journal",label:"Plant Biotechnology Journal"},{value:"plant-cell-and-environment",label:"Plant, Cell & Environment"},{value:"plant-genetic-resources-characterization-and-utilization",label:"Plant Genetic Resources - Characterization and Utilization"},{value:"plant-pathology",label:"Plant Pathology"},{value:"plant-physiology",label:"Plant Physiology"},{value:"plant-species-biology",label:"Plant Species Biology"},{value:"plos",label:"Public Library of Science"},{value:"pnas",label:"Proceedings of the National Academy of Sciences of the United States of America"},{value:"podzemna-voda",label:"Podzemn\xE1 voda (Sloven\u010Dina)"},{value:"polar-research",label:"Polar Research"},{value:"polish-legal",label:"Polish Legal (Polski)"},{value:"politeknik-negeri-manado-jurnal-p3m",label:"Politeknik Negeri Manado - Jurnal Pusat Penelitian dan Pengabdian Kepada Masyarakat (Bahasa Indonesia)"},{value:"political-studies",label:"Political Studies"},{value:"politische-vierteljahresschrift",label:"Politische Vierteljahresschrift (Deutsch)"},{value:"politix",label:"Politix (Fran\xE7ais)"},{value:"polymer-reviews",label:"Polymer Reviews"},{value:"pontifical-athenaeum-regina-apostolorum",label:"Pontifical Athenaeum Regina Apostolorum"},{value:"pontifical-biblical-institute",label:"Pontifical Biblical Institute"},{value:"pontifical-gregorian-university",label:"Pontifical Gregorian University (Italiano)"},{value:"population-space-and-place",label:"Population, Space and Place"},{value:"population",label:"Population (Fran\xE7ais)"},{value:"postepy-higieny-i-medycyny-doswiadczalnej",label:"Post\u0119py Higieny i Medycyny Do\u015Bwiadczalnej (Polski)"},{value:"poultry-science",label:"Poultry Science"},{value:"pour-reussir-note",label:"Pour r\xE9ussir (note, Fran\xE7ais - Canada)"},{value:"pravnik",label:"Pr\xE1vn\xEDk (\u010Ce\u0161tina)"},{value:"praxis",label:"Praxis (Deutsch - Schweiz)"},{value:"prehistoires-mediterraneennes",label:"Pr\xE9histoires m\xE9diterran\xE9ennes"},{value:"prehospital-emergency-care",label:"Prehospital Emergency Care"},{value:"preslia",label:"Preslia - The Journal of the Czech Botanical Society"},{value:"presses-universitaires-de-paris-nanterre",label:"Presses universitaires de Paris Nanterre (note, Fran\xE7ais)"},{value:"presses-universitaires-de-rennes-archeologie-et-culture",label:"Presses Universitaires de Rennes - Arch\xE9ologie et Culture (Fran\xE7ais)"},{value:"presses-universitaires-de-rennes",label:"Presses Universitaires de Rennes (Fran\xE7ais)"},{value:"presses-universitaires-de-strasbourg-note",label:"Presses universitaires de Strasbourg (note, Fran\xE7ais)"},{value:"primary-care-clinics-in-office-practice",label:"Primary Care: Clinics in Office Practice"},{value:"proceedings-of-the-joint-international-grassland-and-international-rangeland-congress-2021",label:"Proceedings of the Joint International Grassland & International Rangeland Congress 2021"},{value:"proceedings-of-the-royal-society-b",label:"Proceedings of the Royal Society B"},{value:"processing-and-application-of-ceramics",label:"Processing and Application of Ceramics"},{value:"production-and-operations-management",label:"Production and Operations Management"},{value:"proinflow",label:"ProInflow (note, \u010Ce\u0161tina)"},{value:"protein-engineering-design-and-selection",label:"Protein Engineering Design and Selection"},{value:"protein-science",label:"Protein Science"},{value:"proteomics",label:"PROTEOMICS"},{value:"psychiatric-clinics-of-north-america",label:"Psychiatric Clinics of North America"},{value:"psychiatric-services",label:"Psychiatric Services"},{value:"psychiatry-and-clinical-neurosciences",label:"Psychiatry and Clinical Neurosciences"},{value:"psychological-medicine",label:"Psychological Medicine"},{value:"psychosomatic-medicine",label:"Psychosomatic Medicine"},{value:"psychosomatics",label:"Psychosomatics"},{value:"public-health-nutrition",label:"Public Health Nutrition"},{value:"pure-and-applied-geophysics",label:"Pure and Applied Geophysics"},{value:"qeios",label:"Qeios"},{value:"quaderni-degli-avogadro-colloquia",label:"Quaderni degli Avogadro Colloquia"},{value:"quaderni-materialisti",label:"Quaderni Materialisti (Italiano)"},{value:"quaderni",label:"Quaderni (Italiano)"},{value:"quaternaire",label:"Quaternaire (Fran\xE7ais)"},{value:"quaternary-international",label:"Quaternary International"},{value:"queen-margaret-university-harvard",label:"Queen Margaret University - Harvard"},{value:"r-and-d-management",label:"R&D Management"},{value:"radiation-protection-dosimetry",label:"Radiation Protection Dosimetry"},{value:"radiochimica-acta",label:"Radiochimica Acta"},{value:"radiographics",label:"RadioGraphics"},{value:"radiography",label:"Radiography"},{value:"radiologic-clinics-of-north-america",label:"Radiologic Clinics of North America"},{value:"radiology",label:"Radiology"},{value:"radiopaedia",label:"Radiopaedia.org"},{value:"raffles-bulletin-of-zoology",label:"Raffles Bulletin of Zoology"},{value:"rassegna-degli-archivi-di-stato",label:"Rassegna degli Archivi di Stato (citazioni estese, italiano)"},{value:"recent-patents-on-drug-delivery-and-formulation",label:"Recent Patents on Drug Delivery & Formulation"},{value:"recherches-en-sciences-de-gestion",label:"Recherches en Sciences de Gestion (Fran\xE7ais)"},{value:"refugee-survey-quarterly",label:"Refugee Survey Quarterly"},{value:"register-studies",label:"Register Studies"},{value:"religion-in-the-roman-empire",label:"Religion in the Roman Empire"},{value:"renewable-agriculture-and-food-systems",label:"Renewable Agriculture and Food Systems"},{value:"reports-of-practical-oncology-and-radiotherapy",label:"Reports of Practical Oncology and Radiotherapy"},{value:"representation",label:"Representation"},{value:"reproduction-fertility-and-development",label:"Reproduction, Fertility and Development"},{value:"reproduction",label:"Reproduction"},{value:"research-and-education-promotion-association",label:"Research and Education Promotion Association"},{value:"research-in-plant-disease",label:"Research in Plant Disease"},{value:"research-institute-for-nature-and-forest",label:"Research Institute for Nature and Forest (Instituut voor Natuur- en Bosonderzoek)"},{value:"research-on-biomedical-engineering",label:"Research on Biomedical Engineering"},{value:"respiratory-care-journal",label:"Respiratory Care Journal"},{value:"restoration-ecology",label:"Restoration Ecology"},{value:"rever-revista-de-estudos-da-religiao",label:"REVER - Revista de Estudos da Religi\xE3o"},{value:"review-of-international-studies",label:"Review of International Studies"},{value:"review-of-political-economy",label:"Review of Political Economy"},{value:"reviews-of-modern-physics-with-titles",label:"Reviews of Modern Physics (with titles)"},{value:"revista-argentina-de-antropologia-biologica",label:"Revista Argentina de Antropologia Biologica (Espa\xF1ol)"},{value:"revista-biblica",label:"Revista B\xEDblica (Espa\xF1ol)"},{value:"revista-brasileira-de-ciencia-do-solo",label:"Revista Brasileira de Ci\xEAncia do Solo"},{value:"revista-chilena-de-derecho-y-tecnologia",label:"Revista Chilena de Derecho y Tecnolog\xEDa (Espa\xF1ol - Chile)"},{value:"revista-ciencias-tecnicas-agropecuarias",label:"Revista Ciencias T\xE9cnicas Agropecuarias (Espa\xF1ol)"},{value:"revista-cubana-de-meteorologia",label:"Revista Cubana de Meteorologia"},{value:"revista-da-sociedade-brasileira-de-medicina-tropical",label:"Revista da Sociedade Brasileira de Medicina Tropical"},{value:"revista-de-biologia-marina-y-oceanografia",label:"Revista de Biolog\xEDa Marina y Oceanograf\xEDa"},{value:"revista-de-biologia-tropical",label:"Revista de Biolog\xEDa Tropical (International Journal of Tropical Biology and Conservation)"},{value:"revista-de-filologia-espanola",label:"Revista de Filolog\xEDa Espa\xF1ola (Espa\xF1ol)"},{value:"revista-do-instituto-de-medicina-tropical-de-sao-paulo",label:"Revista do Instituto de Medicina Tropical de S\xE3o Paulo"},{value:"revista-espanola-de-nutricion-humana-y-dietetica",label:"Revista Espanola de Nutricion Humana y Dietetica (Espa\xF1ol)"},{value:"revista-fave-seccion-ciencias-agrarias",label:"Revista FAVE - Secci\xF3n Ciencias Agrarias (Espa\xF1ol)"},{value:"revista-ladinia",label:"Revista Ladinia"},{value:"revista-latinoamericana-de-metalurgia-y-materiales",label:"Revista Latinoamericana de Metalurgia y Materiales"},{value:"revista-latinoamericana-de-recursos-naturales",label:"Revista Latinoamericana de Recursos Naturales"},{value:"revista-materia",label:"Revista Mat\xE9ria"},{value:"revista-noesis",label:"Revista N\xF3esis"},{value:"revista-peruana-de-medicina-experimental-y-salud-publica",label:"Revista Peruana de Medicina Experimental y Salud P\xFAblica (Espa\xF1ol)"},{value:"revista-portuguesa-de-arqueologia",label:"Revista Portuguesa de Arqueologia"},{value:"revista-virtual-de-quimica",label:"Revista Virtual de Qu\xEDmica (Portugu\xEAs - Brasil)"},{value:"revue-archeologique-de-lest",label:"Revue arch\xE9ologique de l\u2019Est (Fran\xE7ais)"},{value:"revue-archeologique-de-narbonnaise",label:"Revue arch\xE9ologique de Narbonnaise (French)"},{value:"revue-archeologique-du-centre-de-la-france",label:"Revue arch\xE9ologique du Centre de la France (Fran\xE7ais)"},{value:"revue-archeologique",label:"Revue Arch\xE9ologique (Fran\xE7ais)"},{value:"revue-d-elevage-et-de-medecine-veterinaire-des-pays-tropicaux",label:"Revue d'\xE9levage et de m\xE9decine v\xE9t\xE9rinaire des pays tropicaux (Fran\xE7ais)"},{value:"revue-de-medecine-veterinaire",label:"Revue de M\xE9decine V\xE9t\xE9rinaire (Fran\xE7ais)"},{value:"revue-de-qumran",label:"Revue de Qumr\xE2n"},{value:"revue-des-etudes-byzantines",label:"Revue des \xC9tudes Byzantines"},{value:"revue-des-nouvelles-technologies-de-l-information",label:"Revue des Nouvelles Technologies de l'Information (Fran\xE7ais)"},{value:"revue-dhistoire-des-sciences-humaines",label:"Revue d'histoire des sciences humaines (Fran\xE7ais)"},{value:"revue-dhistoire-moderne-et-contemporaine",label:"Revue d'histoire moderne et contemporaine (Fran\xE7ais)"},{value:"revue-europeenne-des-migrations-internationales",label:"Revue Europe\u0301enne des Migrations Internationales"},{value:"revue-forestiere-francaise",label:"Revue foresti\xE8re fran\xE7aise (Fran\xE7ais)"},{value:"revue-francaise-d-administration-publique",label:"Revue fran\xE7aise d'administration publique (Fran\xE7ais)"},{value:"revue-francaise-de-gestion",label:"Revue fran\xE7aise de gestion (Fran\xE7ais)"},{value:"revue-francaise-de-sociologie",label:"Revue fran\xE7aise de sociologie (Fran\xE7ais)"},{value:"rhinology",label:"Rhinology"},{value:"rhodora",label:"Rhodora"},{value:"risk-analysis",label:"Risk Analysis"},{value:"ritid",label:"Riti\xF0: t\xEDmarit Hugv\xEDsindastofnunar (\xCDslenska)"},{value:"rivista-italiana-di-paleontologia-e-stratigrafia",label:"Rivista Italiana di Paleontologia e Stratigrafia"},{value:"rmit-university-harvard",label:"RMIT University - Harvard"},{value:"rofo",label:"R\xF6Fo: Fortschritte auf dem Gebiet der R\xF6ntgenstrahlen und bildgebenden Verfahren"},{value:"romanian-humanities",label:"Romanian Humanities (Rom\xE2n\u0103)"},{value:"rose-school",label:"ROSE School"},{value:"rossiiskii-fiziologicheskii-zhurnal-imeni-i-m-sechenova",label:"\u0420\u043E\u0441\u0441\u0438\u0439\u0441\u043A\u0438\u0439 \u0444\u0438\u0437\u0438\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u0436\u0443\u0440\u043D\u0430\u043B \u0438\u043C. \u0418.\u041C. \u0421\u0435\u0447\u0435\u043D\u043E\u0432\u0430 (\u0420\u0443\u0301\u0441\u0441\u043A\u0438\u0439)"},{value:"royal-college-of-nursing-harvard",label:"Royal College of Nursing - Harvard"},{value:"royal-society-of-chemistry-with-titles",label:"Royal Society of Chemistry (with titles)"},{value:"royal-society-of-chemistry",label:"Royal Society of Chemistry"},{value:"rtf-scan",label:"RTF Scan"},{value:"ruhr-universitat-bochum-lehrstuhl-fur-industrial-sales-and-service-engineering",label:"Ruhr-Universit\xE4t Bochum - Lehrstuhl f\xFCr Industrial Sales and Service Engineering"},{value:"ruhr-universitat-bochum-medizinische-fakultat-numeric",label:"Ruhr-Universit\xE4t Bochum - Medizinische Fakult\xE4t (numerisch, Deutsch)"},{value:"sage-harvard",label:"SAGE - Harvard"},{value:"sage-vancouver-brackets",label:"SAGE - Vancouver (brackets)"},{value:"sage-vancouver",label:"SAGE - Vancouver"},{value:"saglik-bilimleri-universitesi",label:"Sa\u011Fl\u0131k Bilimleri \xDCniversitesi"},{value:"saint-paul-university-faculty-of-canon-law",label:"Saint Paul University - Faculty of Canon Law"},{value:"san-francisco-estuary-and-watershed-science",label:"San Francisco Estuary & Watershed Science"},{value:"sanamed",label:"Sanamed"},{value:"scandinavian-journal-of-infectious-diseases",label:"Scandinavian Journal of Infectious Diseases"},{value:"scandinavian-journal-of-information-systems",label:"Scandinavian Journal of Information Systems"},{value:"scandinavian-journal-of-medicine-and-science-in-sports",label:"Scandinavian Journal of Medicine & Science in Sports"},{value:"scandinavian-journal-of-rheumatology",label:"Scandinavian Journal of Rheumatology"},{value:"scandinavian-journal-of-work-environment-and-health",label:"Scandinavian Journal of Work, Environment & Health"},{value:"scandinavian-political-studies",label:"Scandinavian Political Studies"},{value:"science-and-technology-for-the-built-environment",label:"Science and Technology for the Built Environment"},{value:"science-china-chemistry",label:"Science China Chemistry"},{value:"science-china-earth-sciences",label:"SCIENCE CHINA Earth Sciences"},{value:"science-china-life-sciences",label:"SCIENCE CHINA Life Sciences"},{value:"science-china-materials",label:"SCIENCE CHINA Materials"},{value:"science-translational-medicine",label:"Science Translational Medicine"},{value:"science-without-titles",label:"Science (without titles)"},{value:"science",label:"Science"},{value:"scienceasia",label:"ScienceAsia"},{value:"sciences-po-ecole-doctorale-author-date",label:"Sciences Po - Ecole doctorale (author-date, Fran\xE7ais)"},{value:"sciences-po-ecole-doctorale-note-french",label:"Sciences Po - \xC9cole doctorale (note, Fran\xE7ais)"},{value:"scientia-agriculturae-bohemica",label:"Scientia Agriculturae Bohemica"},{value:"scientia-iranica",label:"Scientia Iranica"},{value:"scientific-review-engineering-and-environmental-sciences",label:"Scientific Review Engineering and Environmental Sciences (Przegl\u0105d Naukowy In\u017Cynieria i Kszta\u0142towanie \u015Arodowiska)"},{value:"scrinium",label:"Scrinium"},{value:"sedimentology",label:"Sedimentology"},{value:"seed-science-and-technology",label:"Seed Science and Technology"},{value:"seed-science-research",label:"Seed Science Research"},{value:"seismological-research-letters",label:"Seismological Research Letters"},{value:"sekolah-tinggi-meteorologi-klimatologi-dan-geofisika",label:"Sekolah Tinggi Meteorologi Klimatologi dan Geofisika (Bahasa Indonesia)"},{value:"seminaire-saint-sulpice-ecole-theologie",label:"S\xE9minaire Saint-Sulpice - Ecole Th\xE9ologie (Fran\xE7ais)"},{value:"seminars-in-pediatric-neurology",label:"Seminars in Pediatric Neurology"},{value:"serbian-archives-of-medicine",label:"Vancouver - Serbian Archives of Medicine"},{value:"serdica-journal-of-computing",label:"Serdica Journal of Computing"},{value:"service-medical-de-l-assurance-maladie",label:"Service M\xE9dical de l'Assurance Maladie (Fran\xE7ais)"},{value:"sexual-development",label:"Sexual Development"},{value:"sexual-health",label:"Sexual Health"},{value:"sheffield-hallam-university-history",label:"Sheffield Hallam University - History"},{value:"shock",label:"Shock"},{value:"sinergie-italian-journal-of-management",label:"Sinergie Italian Journal of Management"},{value:"sist02",label:"SIST02 (\u65E5\u672C\u8A9E)"},{value:"skene-journal-of-theatre-and-drama-studies",label:"Sken\xE8. Journal of Theatre and Drama Studies"},{value:"small",label:"Small"},{value:"smithsonian-institution-scholarly-press-author-date",label:"Smithsonian Institution Scholarly Press (author-date)"},{value:"smithsonian-institution-scholarly-press-botany",label:"Smithsonian Institution Scholarly Press - Botany (author-date)"},{value:"smithsonian-institution-scholarly-press-note",label:"Smithsonian Institution Scholarly Press (note)"},{value:"smyrna-tip-dergisi",label:"Smyrna T\u0131p Dergisi (T\xFCrk\xE7e)"},{value:"social-anthropology",label:"Social Anthropology/Anthropologie Sociale"},{value:"social-cognitive-and-affective-neuroscience",label:"Social Cognitive and Affective Neuroscience"},{value:"sociedade-brasileira-de-computacao",label:"Sociedade Brasileira de Computa\xE7\xE3o"},{value:"societe-archeologique-de-bordeaux",label:"Soci\xE9t\xE9 Arch\xE9ologique de Bordeaux (Fran\xE7ais)"},{value:"societe-francaise-detude-de-la-ceramique-antique-en-gaule",label:"Soci\xE9t\xE9 Fran\xE7aise d\u2019\xC9tude de la C\xE9ramique Antique en Gaule (Fran\xE7ais)"},{value:"societe-nationale-des-groupements-techniques-veterinaires",label:"Soci\xE9t\xE9 Nationale des Groupements Techniques V\xE9t\xE9rinaires (Fran\xE7ais)"},{value:"societes-contemporaines",label:"Soci\xE9t\xE9s Contemporaines"},{value:"society-for-american-archaeology",label:"Society for American Archaeology"},{value:"society-for-historical-archaeology",label:"Society for Historical Archaeology"},{value:"society-for-laboratory-automation-and-screening",label:"Society for Laboratory Automation and Screening"},{value:"society-of-automotive-engineers-technical-papers-numeric",label:"Society of Automotive Engineers Technical Papers (numeric)"},{value:"society-of-biblical-literature-1st-edition-fullnote-bibliography",label:"Society of Biblical Literature 1st edition (full note)"},{value:"society-of-biblical-literature-author-date",label:"Society of Biblical Literature 2nd edition (author-date)"},{value:"society-of-biblical-literature-fullnote-bibliography",label:"Society of Biblical Literature 2nd edition (full note)"},{value:"socio-economic-review",label:"Socio-Economic Review"},{value:"sociology-of-health-and-illness",label:"Sociology of Health & Illness"},{value:"sodertorns-hogskola-harvard-ibid",label:"S\xF6dert\xF6rns h\xF6gskola - Harvard (with Ibid.)"},{value:"sodertorns-hogskola-harvard",label:"S\xF6dert\xF6rns h\xF6gskola - Harvard"},{value:"sodertorns-hogskola-oxford",label:"S\xF6dert\xF6rns h\xF6gskola - Oxford"},{value:"soil-biology-and-biochemistry",label:"Soil Biology and Biochemistry"},{value:"soil-science-and-plant-nutrition",label:"Soil Science and Plant Nutrition"},{value:"solent-university-harvard",label:"Solent University - Harvard"},{value:"solutions",label:"Solutions"},{value:"sorbonne-student-law-review",label:"Sorbonne Student Law Review - Revue juridique des \xE9tudiants de la Sorbonne"},{value:"south-african-actuarial-journal",label:"South African Actuarial Journal"},{value:"south-african-journal-of-animal-science",label:"South African Journal of Animal Science"},{value:"south-african-journal-of-enology-and-viticulture",label:"South African Journal of Enology and Viticulture"},{value:"south-african-journal-of-geology",label:"South African Journal of Geology"},{value:"south-african-medical-journal",label:"South African Medical Journal"},{value:"south-african-theological-seminary",label:"South African Theological Seminary"},{value:"southeastern-geographer",label:"Southeastern Geographer"},{value:"southern-african-journal-of-critical-care",label:"Southern African Journal of Critical Care"},{value:"soziale-welt",label:"Soziale Welt (Deutsch)"},{value:"sozialpadagogisches-institut-berlin-walter-may",label:"Sozialp\xE4dagogisches Institut Berlin - Walter May (Deutsch)"},{value:"sozialwissenschaften-heilmann",label:"Sozialwissenschaften (Heilmann) (Deutsch)"},{value:"soziologie",label:"Soziologie (Deutsch)"},{value:"soziologiemagazin",label:"Soziologiemagazin (Deutsch)"},{value:"spandidos-publications",label:"Spandidos Publications"},{value:"spanish-legal",label:"Spanish Legal (Espa\xF1ol)"},{value:"spectroscopy-letters",label:"Spectroscopy Letters"},{value:"speculum",label:"Speculum"},{value:"spie-bios",label:"SPIE BiOS"},{value:"spie-journals",label:"SPIE journals"},{value:"spie-proceedings",label:"SPIE Conference Proceedings"},{value:"spine",label:"Spine"},{value:"spip-cite",label:"SPIP - Cite plugin"},{value:"sports-health",label:"Sports Health"},{value:"springer-basic-author-date-no-et-al-with-issue",label:'Springer - Basic (author-date, no "et al.", with issue numbers)'},{value:"springer-basic-author-date-no-et-al",label:'Springer - Basic (author-date, no "et al.")'},{value:"springer-basic-author-date",label:"Springer - Basic (author-date)"},{value:"springer-basic-brackets-no-et-al-alphabetical",label:'Springer - Basic (numeric, brackets, no "et al.", alphabetical)'},{value:"springer-basic-brackets-no-et-al",label:'Springer - Basic (numeric, brackets, no "et al.")'},{value:"springer-basic-brackets",label:"Springer - Basic (numeric, brackets)"},{value:"springer-basic-note",label:"Springer - Basic (note)"},{value:"springer-fachzeitschriften-medizin-psychologie",label:"Springer - Fachzeitschriften Medizin Psychologie (Deutsch)"},{value:"springer-humanities-author-date",label:"Springer - Humanities (author-date)"},{value:"springer-humanities-brackets",label:"Springer - Humanities (numeric, brackets)"},{value:"springer-imis-series-migrationsgesellschaften",label:"Springer - IMIS Series Migrationsgesellschaften"},{value:"springer-lecture-notes-in-computer-science-alphabetical",label:"Springer - Lecture Notes in Computer Science (sorted alphabetically)"},{value:"springer-lecture-notes-in-computer-science",label:"Springer - Lecture Notes in Computer Science"},{value:"springer-mathphys-author-date",label:"Springer - MathPhys (author-date)"},{value:"springer-mathphys-brackets",label:"Springer - MathPhys (numeric, brackets)"},{value:"springer-physics-author-date",label:"Springer - Physics (author-date)"},{value:"springer-physics-brackets",label:"Springer - Physics (numeric, brackets)"},{value:"springer-socpsych-author-date",label:"Springer - SocPsych (author-date)"},{value:"springer-socpsych-brackets",label:"Springer - SocPsych (numeric, brackets)"},{value:"springer-vancouver-author-date",label:"Springer - Vancouver (author-date)"},{value:"springer-vancouver-brackets",label:"Springer - Vancouver (brackets)"},{value:"springer-vancouver",label:"Springer - Vancouver"},{value:"springer-vs-author-date",label:"Springer VS (author-date, Deutsch)"},{value:"springerprotocols",label:"SpringerProtocols"},{value:"st-patricks-college",label:"St Patrick's College"},{value:"statistika-statistics-and-economy-journal",label:"Statistika: Statistics and Economy Journal"},{value:"stavebni-obzor",label:"Stavebn\xED obzor (\u010Ce\u0161tina)"},{value:"steel-research-international",label:"Steel Research International"},{value:"steinbeis-hochschule-school-of-management-and-innovation",label:"Steinbeis-Hochschule - School of Management & Innovation (Deutsch)"},{value:"stellenbosch-law-review",label:"Stellenbosch Law Review"},{value:"stem-cells",label:"Stem Cells"},{value:"strategic-design-research-journal",label:"Strategic Design Research Journal"},{value:"strategic-entrepreneurship-journal",label:"Strategic Entrepreneurship Journal"},{value:"strategic-management-journal",label:"Strategic Management Journal"},{value:"stroke",label:"Stroke"},{value:"structural-control-and-health-monitoring",label:"Structural Control and Health Monitoring"},{value:"studi-e-materiali-di-storia-delle-religioni",label:"Studi e materiali di storia delle religioni (Italiano)"},{value:"studi-slavistici-rivista-dellassociazione-italiana-degli-slavisti",label:"Studi Slavistici Rivista dell\u2019Associazione Italiana degli Slavisti"},{value:"studia-bas",label:"Studia BAS (Polski)"},{value:"studies-in-the-history-of-gardens-and-designed-landscapes",label:"Studies in the History of Gardens & Designed Landscapes"},{value:"studii-teologice",label:"Studii Teologice"},{value:"stuttgart-media-university",label:"Hochschule der Medien Stuttgart (Deutsch)"},{value:"style-manual-australian-government-note",label:"Style Manual - Australian Government (note)"},{value:"style-manual-australian-government",label:"Style Manual - Australian Government (author-date)"},{value:"style-manual-for-authors-editors-and-printers-6th-edition-snooks-co",label:"Style manual for authors, editors and printers 6th edition (Snooks & Co.) (author-date)"},{value:"suburban-zeitschrift-fur-kritische-stadtforschung",label:"sub\\urban - Zeitschrift f\xFCr kritische Stadtforschung (Deutsch)"},{value:"sunway-college-johor-bahru",label:"Sunway College Johor Bahru - Harvard"},{value:"surgical-clinics-of-north-america",label:"Surgical Clinics of North America"},{value:"surgical-neurology-international",label:"Surgical Neurology International"},{value:"surgical-pathology-clinics",label:"Surgical Pathology Clinics"},{value:"svensk-exegetisk-arsbok",label:"Svensk exegetisk \xE5rsbok (full note)"},{value:"swedish-legal",label:"Swedish Legal (Svenska)"},{value:"swiss-political-science-review",label:"Swiss Political Science Review"},{value:"sylwan",label:"Sylwan (Polski)"},{value:"synthesis",label:"Synthesis"},{value:"system-dynamics-review",label:"System Dynamics Review"},{value:"systematic-and-applied-microbiology",label:"Systematic and Applied Microbiology"},{value:"systematic-biology",label:"Systematic Biology"},{value:"szociologiai-szemle",label:"Szociol\xF3giai Szemle (Magyar)"},{value:"tabula",label:"T\xE1bula (Espa\xF1ol)"},{value:"tagungsberichte-der-historischen-kommission-fur-ost-und-westpreussische-landesforschung",label:"Tagungsberichte der Historischen Kommission f\xFCr ost- und westpreu\xDFische Landesforschung (Deutsch)"},{value:"tatup-zeitschrift-fur-technikfolgenabschatzung-in-theorie-und-praxis",label:"TATuP - Zeitschrift f\xFCr Technikfolgenabsch\xE4tzung in Theorie und Praxis"},{value:"taxon",label:"Taxon"},{value:"taylor-and-francis-acs",label:"Taylor & Francis - American Chemical Society"},{value:"taylor-and-francis-chicago-author-date",label:"Taylor & Francis - Chicago Manual of Style (author-date)"},{value:"taylor-and-francis-chicago-f",label:"Taylor & Francis - Chicago F"},{value:"taylor-and-francis-council-of-science-editors-author-date",label:"Taylor & Francis - Council of Science Editors (author-date)"},{value:"taylor-and-francis-council-of-science-editors-numeric",label:"Taylor & Francis - Council of Science Editors (numeric)"},{value:"taylor-and-francis-harvard-x",label:"Taylor & Francis - Harvard X"},{value:"taylor-and-francis-national-library-of-medicine",label:"Taylor & Francis - National Library of Medicine"},{value:"taylor-and-francis-numeric-q",label:"Taylor & Francis - Numeric Q"},{value:"taylor-and-francis-vancouver-national-library-of-medicine",label:"Taylor & Francis - Vancouver/National Library of Medicine"},{value:"techniques-et-culture",label:"Techniques&Culture (Fran\xE7ais)"},{value:"technische-universitat-dortmund-ag-virtual-machining",label:"Technische Universit\xE4t Dortmund - AG Virtual Machining (Deutsch)"},{value:"technische-universitat-dresden-betriebswirtschaftslehre-logistik-author-date",label:"Technische Universit\xE4t Dresden - Betriebswirtschaftslehre/Logistik (author-date)"},{value:"technische-universitat-dresden-betriebswirtschaftslehre-marketing",label:"Technische Universit\xE4t Dresden - Betriebswirtschaftslehre/Marketing (author-date)"},{value:"technische-universitat-dresden-betriebswirtschaftslehre-rechnungswesen-controlling",label:"Technische Universit\xE4t Dresden - Betriebswirtschaftslehre/Rechnungswesen/Controlling (Deutsch)"},{value:"technische-universitat-dresden-erziehungswissenschaften-author-date",label:"Technische Universit\xE4t Dresden - Erziehungswissenschaften (author-date)"},{value:"technische-universitat-dresden-finanzwirtschaft-und-finanzdienstleistungen-author-date-with-short-titles",label:"Technische Universit\xE4t Dresden - Finanzwirtschaft und Finanzdienstleistungen (author-date, with short titles)"},{value:"technische-universitat-dresden-finanzwirtschaft-und-finanzdienstleistungen-author-date",label:"Technische Universit\xE4t Dresden - Finanzwirtschaft und Finanzdienstleistungen (author-date)"},{value:"technische-universitat-dresden-finanzwirtschaft-und-finanzdienstleistungen-note",label:"Technische Universit\xE4t Dresden - Finanzwirtschaft und Finanzdienstleistungen (note)"},{value:"technische-universitat-dresden-forstwissenschaft",label:"Technische Universit\xE4t Dresden - Forstwissenschaft (author-date, Deutsch)"},{value:"technische-universitat-dresden-historische-musikwissenschaft-note",label:"Technische Universit\xE4t Dresden - Historische Musikwissenschaft (note, Deutsch)"},{value:"technische-universitat-dresden-kunstgeschichte-note",label:"Technische Universit\xE4t Dresden - Kunstgeschichte (note, Deutsch)"},{value:"technische-universitat-dresden-linguistik",label:"Technische Universit\xE4t Dresden - Linguistik (Deutsch)"},{value:"technische-universitat-dresden-medienwissenschaft-und-neuere-deutsche-literatur-note",label:"Technische Universit\xE4t Dresden - Medienwissenschaft und Neuere Deutsche Literatur (note, Deutsch)"},{value:"technische-universitat-dresden-medizin",label:"Technische Universit\xE4t Dresden - Medizin"},{value:"technische-universitat-dresden-wirtschaftswissenschaften",label:"Technische Universit\xE4t Dresden - Wirtschaftswissenschaften (Deutsch)"},{value:"technische-universitat-munchen-controlling",label:"Technische Universit\xE4t M\xFCnchen - Controlling (Deutsch)"},{value:"technische-universitat-munchen-unternehmensfuhrung",label:"Technische Universit\xE4t M\xFCnchen - Unternehmensf\xFChrung (Deutsch)"},{value:"technische-universitat-wien",label:"Technische Universit\xE4t Wien (dissertation) (Deutsch)"},{value:"teologia-catalunya",label:"Teologia Catalunya"},{value:"termedia-neuropsychiatria-i-neuropsychologia-neuropsychiatry-and-neuropsychology",label:"Termedia Neuropsychiatria i Neuropsychologia/Neuropsychiatry and Neuropsychology"},{value:"terra-nova",label:"Terra Nova"},{value:"tetrahedron-letters",label:"Tetrahedron Letters"},{value:"textual-cultures",label:"Textual Cultures"},{value:"textual-practice",label:"Textual Practice"},{value:"tgm-wien-diplom",label:"TGM Wien Diplomarbeit (Deutsch)"},{value:"tgm-wien-diplomarbeit-onorm",label:"TGM Wien Diplomarbeit \xD6NORM (Deutsch - \xD6sterreich)"},{value:"the-accounting-review",label:"The Accounting Review"},{value:"the-american-journal-of-bioethics",label:"The American Journal of Bioethics"},{value:"the-american-journal-of-cardiology",label:"The American Journal of Cardiology"},{value:"the-american-journal-of-dermatopathology",label:"The American Journal of Dermatopathology"},{value:"the-american-journal-of-gastroenterology",label:"The American Journal of Gastroenterology"},{value:"the-american-journal-of-geriatric-psychiatry",label:"The American Journal of Geriatric Psychiatry"},{value:"the-american-journal-of-human-genetics",label:"The American Journal of Human Genetics"},{value:"the-american-journal-of-pathology",label:"The American Journal of Pathology"},{value:"the-american-journal-of-psychiatry",label:"The American Journal of Psychiatry"},{value:"the-american-journal-of-tropical-medicine-and-hygiene",label:"The American Journal of Tropical Medicine and Hygiene"},{value:"the-american-midland-naturalist",label:"The American Midland Naturalist"},{value:"the-american-naturalist",label:"The American Naturalist"},{value:"the-angle-orthodontist",label:"The Angle Orthodontist"},{value:"the-astrophysical-journal",label:"The Astrophysical Journal"},{value:"the-auk",label:"The Auk"},{value:"the-australian-journal-of-agricultural-and-resource-economics",label:"The Australian Journal of Agricultural and Resource Economics"},{value:"the-biological-bulletin",label:"The Biological Bulletin"},{value:"the-bone-and-joint-journal",label:"The Bone & Joint Journal"},{value:"the-botanical-review",label:"The Botanical Review"},{value:"the-bovine-practitioner",label:"The Bovine Practitioner"},{value:"the-british-journal-for-the-philosophy-of-science",label:"The British Journal for the Philosophy of Science"},{value:"the-british-journal-of-cardiology",label:"The British Journal of Cardiology"},{value:"the-british-journal-of-criminology",label:"The British Journal of Criminology"},{value:"the-british-journal-of-psychiatry",label:"The British Journal of Psychiatry"},{value:"the-british-journal-of-sociology",label:"The British Journal of Sociology"},{value:"the-canadian-geographer",label:"The Canadian Geographer (Le G\xE9ographe canadien)"},{value:"the-canadian-journal-of-chemical-engineering",label:"The Canadian Journal of Chemical Engineering"},{value:"the-canadian-journal-of-psychiatry",label:"The Canadian Journal of Psychiatry"},{value:"the-cancer-journal",label:"The Cancer Journal"},{value:"the-chemical-society-of-japan",label:"The Chemical Society of Japan"},{value:"the-chinese-journal-of-international-politics",label:"The Chinese Journal of International Politics"},{value:"the-company-of-biologists",label:"The Company of Biologists"},{value:"the-design-journal",label:"The Design Journal"},{value:"the-economic-history-review",label:"The Economic History Review"},{value:"the-european-research-journal",label:"The European Research Journal"},{value:"the-faseb-journal",label:"The FASEB Journal"},{value:"the-febs-journal",label:"The FEBS Journal"},{value:"the-geological-society-of-america",label:"The Geological Society of America"},{value:"the-geological-society-of-london",label:"The Geological Society of London"},{value:"the-hastings-center-report",label:"The Hastings Center Report"},{value:"the-historical-journal",label:"The Historical Journal"},{value:"the-holocene",label:"The Holocene"},{value:"the-horticulture-journal",label:"The Horticulture Journal"},{value:"the-institute-of-electronics-information-and-communication-engineers",label:"The Institute of Electronics, Information and Communication Engineers (\u96FB\u5B50\u60C5\u5831\u901A\u4FE1\u5B66\u4F1A)"},{value:"the-institution-of-engineering-and-technology",label:"The Institution of Engineering and Technology"},{value:"the-international-journal-of-developmental-biology",label:"The International Journal of Developmental Biology"},{value:"the-international-journal-of-psychoanalysis",label:"The International Journal of Psychoanalysis"},{value:"the-international-journal-of-tuberculosis-and-lung-disease",label:"The International Journal of Tuberculosis and Lung Disease"},{value:"the-isme-journal",label:"The ISME Journal"},{value:"the-journal-of-adhesive-dentistry",label:"The Journal of Adhesive Dentistry"},{value:"the-journal-of-agricultural-science",label:"The Journal of Agricultural Science"},{value:"the-journal-of-clinical-ethics",label:"The Journal of Clinical Ethics"},{value:"the-journal-of-clinical-investigation",label:"The Journal of Clinical Investigation"},{value:"the-journal-of-comparative-law",label:"The Journal of Comparative Law"},{value:"the-journal-of-comparative-neurology",label:"The Journal of Comparative Neurology"},{value:"the-journal-of-egyptian-archaeology",label:"The Journal of Egyptian Archaeology"},{value:"the-journal-of-eukaryotic-microbiology",label:"The Journal of Eukaryotic Microbiology"},{value:"the-journal-of-foot-and-ankle-surgery",label:"The Journal of Foot & Ankle Surgery"},{value:"the-journal-of-hand-surgery-asian-pacific-volume",label:"The Journal of Hand Surgery Asian-Pacific Volume"},{value:"the-journal-of-hand-surgery-european-volume",label:"The Journal of Hand Surgery (European Volume)"},{value:"the-journal-of-hellenic-studies",label:"The Journal of Hellenic Studies"},{value:"the-journal-of-immunology",label:"The Journal of Immunology"},{value:"the-journal-of-infection-in-developing-countries",label:"The Journal of Infection in Developing Countries"},{value:"the-journal-of-juristic-papyrology",label:"The Journal of Juristic Papyrology"},{value:"the-journal-of-laryngology-and-otology",label:"The Journal of Laryngology & Otology"},{value:"the-journal-of-modern-history",label:"The Journal of Modern History"},{value:"the-journal-of-molecular-diagnostics",label:"The Journal of Molecular Diagnostics"},{value:"the-journal-of-nervous-and-mental-disease",label:"The Journal of Nervous and Mental Disease"},{value:"the-journal-of-neuropsychiatry-and-clinical-neurosciences",label:"The Journal of Neuropsychiatry and Clinical Neurosciences"},{value:"the-journal-of-neuroscience",label:"The Journal of Neuroscience"},{value:"the-journal-of-nuclear-medicine",label:"The Journal of Nuclear Medicine"},{value:"the-journal-of-nutrition-health-and-aging",label:"The Journal of Nutrition, Health & Aging"},{value:"the-journal-of-pain",label:"The Journal of Pain"},{value:"the-journal-of-parasitology",label:"The Journal of Parasitology"},{value:"the-journal-of-pathology",label:"The Journal of Pathology"},{value:"the-journal-of-peasant-studies",label:"The Journal of Peasant Studies"},{value:"the-journal-of-physiology",label:"The Journal of Physiology"},{value:"the-journal-of-pure-and-applied-chemistry-research",label:"The Journal of Pure and Applied Chemistry Research"},{value:"the-journal-of-roman-studies",label:"The Journal of Roman Studies"},{value:"the-journal-of-the-acoustical-society-of-america-numeric",label:"The Journal of the Acoustical Society of America (numeric)"},{value:"the-journal-of-the-acoustical-society-of-america",label:"The Journal of the Acoustical Society of America (author-date)"},{value:"the-journal-of-the-torrey-botanical-society",label:"The Journal of the Torrey Botanical Society"},{value:"the-journal-of-transport-history",label:"The Journal of Transport History"},{value:"the-journal-of-trauma-and-acute-care-surgery",label:"The Journal of Trauma and Acute Care Surgery"},{value:"the-journal-of-urology",label:"The Journal of Urology"},{value:"the-journal-of-veterinary-medical-science",label:"The Journal of Veterinary Medical Science"},{value:"the-journal-of-wildlife-management",label:"The Journal of Wildlife Management"},{value:"the-journals-of-gerontology-series-a",label:"The Journals of Gerontology, Series A: Biological Sciences and Medical Sciences"},{value:"the-korean-journal-of-gastroenterology",label:"The Korean Journal of Gastroenterology"},{value:"the-korean-journal-of-internal-medicine",label:"The Korean Journal of Internal Medicine"},{value:"the-korean-journal-of-mycology",label:"The Korean Journal of Mycology"},{value:"the-lancet",label:"The Lancet"},{value:"the-lichenologist",label:"The Lichenologist"},{value:"the-national-medical-journal-of-india",label:"The National Medical Journal of India"},{value:"the-neuroscientist",label:"The Neuroscientist"},{value:"the-new-england-journal-of-medicine",label:"The New England Journal of Medicine"},{value:"the-oncologist",label:"The Oncologist"},{value:"the-open-university-a251",label:"The Open University - A251 - Arts Course"},{value:"the-open-university-harvard",label:"The Open University - Harvard"},{value:"the-open-university-m801",label:"The Open University - M801 - Research Project and Dissertation"},{value:"the-open-university-numeric-superscript",label:"The Open University (numeric, superscript)"},{value:"the-open-university-numeric",label:"The Open University (numeric)"},{value:"the-open-university-s390",label:"The Open University - S390"},{value:"the-optical-society",label:"The Optical Society"},{value:"the-pan-african-medical-journal",label:"The Pan African Medical Journal"},{value:"the-plant-cell",label:"The Plant Cell"},{value:"the-plant-genome",label:"The Plant Genome"},{value:"the-plant-journal",label:"The Plant Journal"},{value:"the-quarterly-journal-of-economics",label:"The Quarterly Journal of Economics"},{value:"the-review-of-financial-studies",label:"The Review of Financial Studies"},{value:"the-rockefeller-university-press",label:"The Rockefeller University Press"},{value:"the-saudi-journal-for-dental-research",label:"The Saudi Journal for Dental Research"},{value:"the-scandinavian-journal-of-clinical-and-laboratory-investigation",label:"The Scandinavian Journal of Clinical & Laboratory Investigation"},{value:"the-university-of-tokyo-law-review",label:"\u6771\u4EAC\u5927\u5B66\u6CD5\u79D1\u5927\u5B66\u9662\u30ED\u30FC\u30EC\u30D3\u30E5\u30FC (The University of Tokyo Law Review) (\u65E5\u672C\u8A9E)"},{value:"the-university-of-western-australia-harvard",label:"The University of Western Australia - Harvard"},{value:"the-university-of-winchester-harvard",label:"The University of Winchester - Harvard"},{value:"the-world-journal-of-biological-psychiatry",label:"The World Journal of Biological Psychiatry"},{value:"theologie-und-philosophie",label:"Theologie und Philosophie (Deutsch)"},{value:"theory-culture-and-society",label:"Theory, Culture & Society"},{value:"theranostics",label:"Theranostics"},{value:"thieme-german",label:"Thieme-German (Deutsch)"},{value:"thomson-reuters-legal-tax-and-accounting-australia",label:"Thomson Reuters - Legal, Tax & Accounting Australia"},{value:"thrombosis-and-haemostasis",label:"Thrombosis and Haemostasis"},{value:"tijdschrift-voor-economische-en-sociale-geografie",label:"Tijdschrift voor economische en sociale geografie"},{value:"tijdschrift-voor-geneeskunde",label:"Tijdschrift voor Geneeskunde en Gezondheidszorg (Nederlands)"},{value:"topoi-orient-occident-auteur-date",label:"Topoi Orient-Occident (auteur-date, Fran\xE7ais)"},{value:"topoi-orient-occident-classique",label:"Topoi Orient-Occident (classique, Fran\xE7ais)"},{value:"toxicological-sciences",label:"Toxicological Sciences"},{value:"trabajos-de-prehistoria",label:"Trabajos de Prehistoria (Espa\xF1ol)"},{value:"traces",label:"Trac\xE9s: Revue de Sciences Humaines (Fran\xE7ais)"},{value:"traffic-injury-prevention",label:"Traffic Injury Prevention"},{value:"traffic",label:"Traffic"},{value:"transactions-of-the-american-philological-association",label:"Transactions of the American Philological Association"},{value:"transactions-of-the-materials-research-society-of-japan",label:"Transactions of the Materials Research Society of Japan"},{value:"transboundary-and-emerging-diseases",label:"Transboundary and Emerging Diseases"},{value:"transnational-environmental-law",label:"Transnational Environmental Law"},{value:"transplantation",label:"Transplantation"},{value:"transport",label:"Transport"},{value:"transportation-research-record",label:"Transportation Research Record: Journal of the Transportation Research Board"},{value:"transposition",label:"Transposition. Musique et sciences sociales"},{value:"transversalites",label:"Transversalit\xE9s (Fran\xE7ais)"},{value:"tree-physiology",label:"Tree Physiology"},{value:"trends-in-glycoscience-and-glycotechnology",label:"Trends in Glycoscience and Glycotechnology"},{value:"trends-journals",label:"Trends journals"},{value:"triangle",label:"Triangle (Fran\xE7ais)"},{value:"trinity-college-dublin-zoology-botany-environmental-sciences-harvard",label:"Trinity College Dublin - Zoology Botany Environmental Sciences - Harvard"},{value:"tropical-animal-health-and-production",label:"Tropical Animal Health and Production"},{value:"tsaqafah",label:"Tsaqafah"},{value:"turabian-author-date",label:"Turabian 9th edition (author-date)"},{value:"turabian-fullnote-bibliography-no-ibid",label:"Turabian 8th edition (full note, no ibid)"},{value:"turabian-fullnote-bibliography",label:"Turabian 8th edition (full note)"},{value:"turkiye-bilimsel-ve-teknolojik-arastirma-kurumu",label:"T\xDCB\u0130TAK (T\xFCrkiye Bilimsel ve Teknolojik Ara\u015Ft\u0131rma Kurumu) (T\xFCrk\xE7e)"},{value:"twentieth-century-music",label:"Twentieth-Century Music"},{value:"tyndale-bulletin",label:"Tyndale Bulletin"},{value:"u-schylku-starozytnosci",label:"U Schy\u0142ku Staro\u017Cytno\u015Bci (Polski)"},{value:"ucl-institute-of-education-harvard",label:"UCL Institute of Education - Harvard"},{value:"ucl-university-college-apa",label:"UCL University College - APA (Dansk)"},{value:"ucl-university-college-harvard",label:"UCL University College - Harvard (Dansk)"},{value:"ucl-university-college-vancouver",label:"UCL University College - Vancouver (English)"},{value:"uclouvain-centre-charles-de-visscher-pour-le-droit-international-et-europeen",label:"UCLouvain - Centre Charles De Visscher pour le droit international et europ\xE9en (French)"},{value:"ugeskrift-for-laeger",label:"Ugeskrift for L\xE6ger (Dansk)"},{value:"ultrasound-in-medicine-and-biology",label:"Ultrasound in Medicine and Biology"},{value:"ulua-revista-de-historia-sociedad-y-cultura",label:"Ul\xFAa. Revista de Historia, Sociedad y Cultura"},{value:"uludag-universitesi-sosyal-bilimler-enstitusu-author-date",label:"Uluda\u011F \xDCniversitesi - Sosyal Bilimler Enstit\xFCs\xFC (author-date, T\xFCrk\xE7e)"},{value:"uludag-universitesi-sosyal-bilimler-enstitusu-full-note-with-ibid",label:"Uluda\u011F \xDCniversitesi - Sosyal Bilimler Enstit\xFCs\xFC (full note, with Ibid., T\xFCrk\xE7e)"},{value:"uludag-universitesi-sosyal-bilimler-enstitusu-full-note",label:"Uluda\u011F \xDCniversitesi - Sosyal Bilimler Enstit\xFCs\xFC (full note, T\xFCrk\xE7e)"},{value:"uludag-universitesi-sosyal-bilimler-enstitusu-ilahiyat-fakultesi-full-note-with-ibid",label:"Uluda\u011F \xDCniversitesi - Sosyal Bilimler Enstit\xFCs\xFC - \u0130lahiyat Fak\xFCltesi (full note, with Ibid., T\xFCrk\xE7e)"},{value:"uludag-universitesi-sosyal-bilimler-enstitusu-ilahiyat-fakultesi-full-note",label:"Uluda\u011F \xDCniversitesi - Sosyal Bilimler Enstit\xFCs\xFC - \u0130lahiyat Fak\xFCltesi (full note, T\xFCrk\xE7e)"},{value:"unesco-international-institute-for-educational-planning",label:"UNESCO International Institute for Educational Planning"},{value:"unified-style-sheet-for-linguistics-de-gruyter-literature",label:"Unified Stylesheet for Linguistics (de Gruyter Literature)"},{value:"unified-style-sheet-for-linguistics",label:"Unified style sheet for linguistics"},{value:"united-nations-conference-on-trade-and-development",label:"United Nations Conference on Trade and Development"},{value:"united-nations-development-programme-icca-legal-review",label:"United Nations Development Programme ICCA Legal Review"},{value:"united-nations-framework-convention-on-climate-change",label:"United Nations Framework Convention on Climate Change"},{value:"united-states-international-trade-commission",label:"United States International Trade Commission"},{value:"universidad-autonoma-cidudad-juarez-estilo-latino-humanistico",label:"Universidad Aut\xF3noma de Ciudad Ju\xE1rez - Estilo Latino Human\xEDstico"},{value:"universidad-de-leon-harvard",label:"Universidad de Le\xF3n (Espa\xF1a) - Harvard"},{value:"universidad-evangelica-del-paraguay",label:"Universidad Evang\xE9lica del Paraguay (Espa\xF1ol)"},{value:"universidade-de-sao-paulo-escola-de-comunicacoes-e-artes-abnt",label:"Universidade de S\xE3o Paulo - Escola de Comunica\xE7\xF5es e Artes - ABNT (Portugu\xEAs - Brasil)"},{value:"universidade-de-sao-paulo-instituto-de-matematica-e-estatistica",label:"Universidade de S\xE3o Paulo - Instituto de Matem\xE1tica e Estat\xEDstica"},{value:"universidade-do-estado-do-rio-de-janeiro-abnt",label:"Universidade do Estado do Rio de Janeiro - ABNT (Portugu\xEAs - Brasil)"},{value:"universidade-do-porto-faculdade-de-engenharia-chicago-pt",label:"Universidade do Porto - Faculdade de Engenharia - Chicago Manual of Style 17th (author-date) (Portugu\xEAs - Portugal)"},{value:"universidade-do-porto-faculdade-de-engenharia-chicago",label:"Universidade do Porto - Faculdade de Engenharia - Chicago Manual of Style 17th (author-date)"},{value:"universidade-do-porto-faculdade-de-psicologia-e-de-ciencias-da-educacao",label:"Universidade do Porto - Faculdade de Psicologia e de Ci\xEAncias da Educa\xE7\xE3o - APA"},{value:"universidade-estadual-de-alagoas-abnt",label:"Universidade Estadual de Alagoas - ABNT (Portugu\xEAs - Brasil)"},{value:"universidade-estadual-do-oeste-do-parana-programa-institucional-de-bolsas-de-iniciacao-cientifica",label:"Universidade Estadual do Oeste do Paran\xE1 - Programa Institucional de Bolsas de Inicia\xE7\xE3o Cient\xEDfica (Portugu\xEAs - Brasil)"},{value:"universidade-estadual-paulista-campus-de-dracena-abnt",label:"Universidade Estadual Paulista - Campus de Dracena - ABNT (autoria abreviada) (Portugu\xEAs - Brasil)"},{value:"universidade-estadual-paulista-faculdade-de-engenharia-de-guaratingueta-abnt",label:"Universidade Estadual Paulista - Faculdade de Engenharia de Guaratingueta - ABNT (Portugu\xEAs - Brasil)"},{value:"universidade-federal-de-juiz-de-fora",label:"Universidade Federal de Juiz de Fora (Portugu\xEAs - Brasil)"},{value:"universidade-federal-de-pernambuco-abnt",label:"Universidade Federal de Pernambuco - ABNT (Portugu\xEAs - Brasil)"},{value:"universidade-federal-de-sergipe-departamento-de-engenharia-de-producao-abnt",label:"Universidade Federal de Sergipe - Departamento de Engenharia de Produ\xE7\xE3o - ABNT (Portugu\xEAs - Brasil)"},{value:"universidade-federal-do-espirito-santo-abnt-initials",label:"Universidade Federal do Esp\xEDrito Santo - ABNT (autoria abreviada) (Portugu\xEAs - Brasil)"},{value:"universidade-federal-do-espirito-santo-abnt",label:"Universidade Federal do Esp\xEDrito Santo - ABNT (autoria completa) (Portugu\xEAs - Brasil)"},{value:"universidade-federal-do-rio-de-janeiro-instituto-alberto-luiz-coimbra-de-pos-graduacao-e-pesquisa-de-engenharia-abnt",label:"Universidade Federal do Rio de Janeiro - Instituto Alberto Luiz Coimbra de P\xF3s-Gradua\xE7\xE3o e Pesquisa de Engenharia - ABNT (Portugu\xEAs - Brasil)"},{value:"universita-cattolica-del-sacro-cuore",label:"Universit\xE0 Cattolica del Sacro Cuore (note, Italiano)"},{value:"universita-di-bologna-lettere",label:"University of Bologna - Liberal Arts College (Universit\xE0 di Bologna - Facolt\xE0 di Lettere e Filosofia) (Italiano)"},{value:"universita-pontificia-salesiana-it",label:"Universit\xE0 Pontificia Salesiana (Italiano)"},{value:"universita-pontificia-salesiana",label:"Universit\xE0 Pontificia Salesiana"},{value:"universitas-gadjah-mada-departemen-sejarah",label:"Universitas Gadjah Mada - Departemen Sejarah (Bahasa Indonesia)"},{value:"universitas-negeri-semarang-fakultas-matematika-dan-ilmu-pengetahuan-alam",label:"Universitas Negeri Semarang - Fakultas Matematika dan Ilmu Pengetahuan Alam (Bahasa Indonesia)"},{value:"universitas-negeri-yogyakarta-program-pascasarjana",label:"Universitas Negeri Yogyakarta - Program Pascasarjana (Bahasa Indonesia)"},{value:"universitat-basel-deutsche-sprachwissenschaft",label:"Universit\xE4t Basel - Deutsche Sprachwissenschaft"},{value:"universitat-basel-iberoromanistik",label:"Universit\xE4t Basel - Iberoromanistik (Espa\xF1ol)"},{value:"universitat-bern-institut-fur-musikwissenschaft-note",label:"Universit\xE4t Bern - Institut f\xFCr Musikwissenschaft (note, Deutsch)"},{value:"universitat-bern-institut-fur-sozialanthropologie",label:"Universit\xE4t Bern - Institut f\xFCr Sozialanthropologie (Deutsch - Schweiz)"},{value:"universitat-bremen-institut-fur-politikwissenschaft",label:"Universit\xE4t Bremen - Institut f\xFCr Politikwissenschaft (Deutsch)"},{value:"universitat-bremen-lehrstuhl-fur-innovatives-markenmanagement",label:"Universit\xE4t Bremen - Lehrstuhl f\xFCr innovatives Markenmanagement (Deutsch)"},{value:"universitat-freiburg-geschichte",label:"Albert-Ludwigs-Universit\xE4t Freiburg - Geschichte (Deutsch)"},{value:"universitat-heidelberg-historisches-seminar",label:"Universit\xE4t Heidelberg - Historisches Seminar (Deutsch)"},{value:"universitat-heidelberg-medizinische-fakultat-mannheim-numeric",label:"Universit\xE4t Heidelberg - Medizinische Fakult\xE4t Mannheim (numerisch, Deutsch)"},{value:"universitat-mainz-geographisches-institut",label:"Universit\xE4t Mainz - Geographisches Institut (Deutsch)"},{value:"universitat-mannheim-germanistische-linguistik",label:"Universit\xE4t Mannheim - Germanistische Linguistik (Deutsch)"},{value:"universitat-stuttgart-planung-und-partizipation",label:"Universit\xE4t Stuttgart - Planung und Partizipation (Deutsch)"},{value:"universitat-wien-institut-fur-geschichte",label:"Universit\xE4t Wien - Institut f\xFCr Geschichte"},{value:"universitat-zu-koln-seminar-fur-abwl-und-finanzierungslehre",label:"Universit\xE4t zu K\xF6ln - Seminar f\xFCr ABWL und Finanzierungslehre (Deutsch)"},{value:"universitatsmedizin-gottingen",label:"Universit\xE4tsmedizin G\xF6ttingen (Deutsch)"},{value:"universite-catholique-de-louvain-histoire",label:"Universit\xE9 Catholique de Louvain - Histoire (Fran\xE7ais)"},{value:"universite-cheikh-anta-diop-faculte-de-medecine-de-pharmacie-et-dodontologie",label:"Universit\xE9 Cheikh Anta Diop - Facult\xE9 de M\xE9decine de Pharmacie et d'Odontologie (Fran\xE7ais)"},{value:"universite-de-bordeaux-ecole-doctorale-de-droit",label:"Universit\xE9 de Bordeaux - \xC9cole doctorale de droit (Fran\xE7ais)"},{value:"universite-de-geneve-departement-de-langue-et-de-litterature-francaises-modernes",label:"Universit\xE9 de Gen\xE8ve - D\xE9partement de langue et de litt\xE9rature fran\xE7aises modernes (Fran\xE7ais)"},{value:"universite-de-lausanne-histoire",label:"Universit\xE9 de Lausanne - Histoire (Fran\xE7ais)"},{value:"universite-de-liege-droit-par-categorie",label:"Universit\xE9 de Li\xE8ge - Droit (classement par cat\xE9gorie, Fran\xE7ais)"},{value:"universite-de-liege-droit",label:"Universit\xE9 de Li\xE8ge - Droit (Fran\xE7ais)"},{value:"universite-de-liege-histoire",label:"Universit\xE9 de Li\xE8ge - Histoire (Fran\xE7ais)"},{value:"universite-de-montreal-apa",label:"Universit\xE9 de Montr\xE9al - APA (Fran\xE7ais - Canada)"},{value:"universite-de-montreal-faculte-de-musique",label:"Universit\xE9 de Montr\xE9al - Facult\xE9 de musique (Fran\xE7ais - Canada)"},{value:"universite-de-picardie-jules-verne-ufr-de-medecine",label:"Universit\xE9 de Picardie Jules Verne (Amiens) - Th\xE8se de UFR de M\xE9decine"},{value:"universite-de-sherbrooke-departement-de-geomatique",label:"Universit\xE9 de Sherbrooke - D\xE9partement de g\xE9omatique (Fran\xE7ais - Canada)"},{value:"universite-de-sherbrooke-faculte-d-education",label:"Universit\xE9 de Sherbrooke - Facult\xE9 d'\xE9ducation (Fran\xE7ais - Canada)"},{value:"universite-de-sherbrooke-histoire",label:"Universit\xE9 de Sherbrooke - Histoire (Fran\xE7ais - Canada)"},{value:"universite-du-quebec-a-montreal-departement-dhistoire",label:"Universit\xE9 du Qu\xE9bec \xE0 Montr\xE9al - D\xE9partement d\u2019histoire (Fran\xE7ais - Canada)"},{value:"universite-du-quebec-a-montreal-etudes-litteraires-et-semiologie",label:"Universit\xE9 du Qu\xE9bec \xE0 Montr\xE9al - \xC9tudes litt\xE9raires et s\xE9miologie (Fran\xE7ais - Canada)"},{value:"universite-du-quebec-a-montreal",label:"Universit\xE9 du Qu\xE9bec \xE0 Montr\xE9al - APA (Fran\xE7ais - Canada)"},{value:"universite-laval-departement-des-sciences-historiques",label:"Universit\xE9 Laval - D\xE9partement des sciences historiques (Fran\xE7ais - Canada)"},{value:"universite-laval-departement-dinformation-et-de-communication",label:"Universit\xE9 Laval - D\xE9partement d'information et de communication (Fran\xE7ais - Canada)"},{value:"universite-laval-faculte-de-theologie-et-de-sciences-religieuses",label:"Universit\xE9 Laval - Facult\xE9 de th\xE9ologie et de sciences religieuses (Fran\xE7ais - Canada)"},{value:"universite-libre-de-bruxelles-histoire",label:"Universit\xE9 libre de Bruxelles - Histoire (Fran\xE7ais)"},{value:"universite-nangui-abrogoua-sciences-de-la-nature-apa",label:"Universit\xE9 Nangui Abrogoua - Sciences de la Nature - APA (Fran\xE7ais)"},{value:"universiteit-utrecht-onderzoeksgids-geschiedenis",label:"Universiteit Utrecht - Onderzoeksgids Geschiedenis (Nederlands)"},{value:"universitetet-i-oslo-rettsvitenskap",label:"Universitetet i Oslo - Rettsvitenskap (Norsk - Bokm\xE5l)"},{value:"universiti-kebangsaan-malaysia",label:"Universiti Kebangsaan Malaysia (Malay)"},{value:"university-college-dublin-school-of-history-and-archives",label:"University College Dublin - School of History & Archives"},{value:"university-college-lillebaelt-apa",label:"University College Lilleb\xE6lt - APA (Dansk)"},{value:"university-for-the-creative-arts-figures",label:"University for the Creative Arts (figures and illustrations)"},{value:"university-of-aberdeen-school-of-education-harvard",label:"University of Aberdeen - School of Education - Harvard"},{value:"university-of-aleppo-faculty-of-medicine",label:"University of Aleppo - Faculty of Medicine"},{value:"university-of-auckland-history",label:"University of Auckland - History"},{value:"university-of-bradford-harvard",label:"University of Bradford - Harvard"},{value:"university-of-cambridge-faculty-of-history",label:"University of Cambridge - Faculty of History"},{value:"university-of-gothenburg-apa-7th-edition-swedish-legislations",label:"University of Gothenburg - APA 7th edition (Swedish legislations)"},{value:"university-of-gothenburg-apa-swedish-legislations",label:"University of Gothenburg - APA 6th edition (Swedish legislations)"},{value:"university-of-helsinki-faculty-of-theology",label:"Helsingin yliopisto - Teologinen tiedekunta (Suomi)"},{value:"university-of-lincoln-harvard",label:"University of Lincoln - Harvard"},{value:"university-of-new-england-australia-note",label:"University of New England, Australia (note)"},{value:"university-of-roehampton-harvard",label:"University of Roehampton - Harvard"},{value:"university-of-south-africa-harvard",label:"University of South Africa - Harvard"},{value:"university-of-south-australia-2017-harvard",label:"University of South Australia 2017 - Harvard"},{value:"university-of-south-australia-harvard-2011",label:"University of South Australia 2011 - Harvard"},{value:"university-of-south-australia-harvard-2013",label:"University of South Australia 2013 - Harvard"},{value:"university-of-south-wales-harvard",label:"University of South Wales - Harvard"},{value:"university-of-tasmania-simplified-author-date",label:"University of Tasmania - Simplified Author-date"},{value:"university-of-york-apa",label:"University of York - APA 6th edition"},{value:"university-of-york-chicago",label:"University of York - Chicago Manual of Style 16th edition"},{value:"university-of-york-harvard-archaeology",label:"University of York - Harvard - Archaeology"},{value:"university-of-york-harvard-environment",label:"University of York - Harvard - Environment"},{value:"university-of-york-harvard",label:"University of York - Harvard"},{value:"university-of-york-ieee",label:"University of York - IEEE"},{value:"university-of-york-mhra",label:"University of York - Modern Humanities Research Association 3rd edition"},{value:"university-of-york-mla",label:"University of York - Modern Language Association 8th edition"},{value:"university-of-york-oscola",label:"University of York - OSCOLA"},{value:"university-of-york-vancouver",label:"University of York - Vancouver"},{value:"university-of-zabol-fa",label:"University of Zabol (\u0641\u0627\u0631\u0633\u06CC)"},{value:"university-of-zabol",label:"University of Zabol (English)"},{value:"univerza-na-primorskem-fakulteta-za-vede-o-zdravju-apa",label:"Univerza na Primorskem - Fakulteta za vede o zdravju - APA (Sloven\u0161\u010Dina)"},{value:"uniwersytet-im-adama-mickiewicza-w-poznaniu-wydzial-anglistyki",label:"Uniwersytet im. Adama Mickiewicza w Poznaniu - Wydzia\u0142 Anglistyki (English)"},{value:"uniwersytet-kardynala-stefana-wyszynskiego-w-warszawie-autor-rok",label:"Uniwersytet Kardyna\u0142a Stefana Wyszy\u0144skiego w Warszawie (autor-rok, Polski)"},{value:"uniwersytet-kardynala-stefana-wyszynskiego-w-warszawie-przypis",label:"Uniwersytet Kardyna\u0142a Stefana Wyszy\u0144skiego w Warszawie (przypis, Polski)"},{value:"uppsala-universitet-historia",label:"Uppsala universitet - Historia"},{value:"uppsala-universitet-institutionen-for-biologisk-grundutbildning",label:"Uppsala universitet, Institutionen f\xF6r biologisk grundutbildning"},{value:"urad-rs-za-makroekonomske-analize-in-razvoj",label:"Urad RS za makroekonomske analize in razvoj (Sloven\u0161\u010Dina)"},{value:"urban-geography",label:"Urban Geography"},{value:"urban-habitats",label:"Urban Habitats"},{value:"urban-studies",label:"Urban Studies"},{value:"urbani-izziv-en",label:"Urbani izziv (Urban Challenge) (English)"},{value:"urbani-izziv",label:"Urbani izziv (Urban Challenge) (Sloven\u0161\u010Dina)"},{value:"urological-science",label:"Urological Science"},{value:"us-geological-survey",label:"U.S. Geological Survey"},{value:"usda-forest-service-pacific-northwest-research-station",label:"USDA Forest Service - Pacific Northwest Research Station"},{value:"user-modeling-and-user-adapted-interaction",label:"User Modeling and User-Adapted Interaction"},{value:"uspekhi-gerontologii",label:"\u0423\u0441\u043F\u0435\u0445\u0438 \u0433\u0435\u0440\u043E\u043D\u0442\u043E\u043B\u043E\u0433\u0438\u0438 (\u0420\u0443\u0301\u0441\u0441\u043A\u0438\u0439)"},{value:"utah-geological-survey",label:"Utah Geological Survey"},{value:"vancouver-author-date",label:"Vancouver (author-date)"},{value:"vancouver-brackets-no-et-al",label:'Vancouver (brackets, no "et al.")'},{value:"vancouver-brackets-only-year-no-issue",label:"Vancouver (brackets, only year in date, no issue numbers)"},{value:"vancouver-brackets",label:"Vancouver (brackets)"},{value:"vancouver-fr-ca",label:"Vancouver (Fran\xE7ais - Canada)"},{value:"vancouver-imperial-college-london",label:"Imperial College London - Vancouver"},{value:"vancouver-superscript-brackets-only-year",label:"Vancouver (superscript, brackets, only year in date)"},{value:"vancouver-superscript-only-year",label:"Vancouver (superscript, only year in date, no issue numbers)"},{value:"vancouver-superscript",label:"Vancouver (superscript)"},{value:"vancouver",label:"Vancouver"},{value:"veterinaria-italiana",label:"Veterinaria Italiana"},{value:"veterinary-medicine-austria",label:"Veterinary Medicine Austria (Wiener Tier\xE4rztliche Monatsschrift)"},{value:"veterinary-microbiology",label:"Veterinary Microbiology"},{value:"veterinary-pathology",label:"Veterinary Pathology"},{value:"veterinary-radiology-and-ultrasound",label:"Veterinary Radiology & Ultrasound"},{value:"veterinary-record",label:"Veterinary Record"},{value:"victoria-university-harvard",label:"Victoria University - Harvard"},{value:"vienna-legal",label:"Vienna Legal"},{value:"vietnam-ministry-of-education-and-training-en",label:"Vietnam Ministry of Education and Training (English)"},{value:"vietnam-ministry-of-education-and-training-vi",label:"Vietnam Ministry of Education and Training (Ti\u1EBFng Vi\u1EC7t)"},{value:"vigiliae-christianae",label:"Vigiliae Christianae"},{value:"vilnius-gediminas-technical-university",label:"Vilnius Gediminas Technical University (Lietuvi\u0173 kalba)"},{value:"vingtieme-siecle",label:"Vingti\xE8me Si\xE8cle. Revue d'histoire (Fran\xE7ais)"},{value:"vita-latina-auteurs-anciens",label:"Vita Latina (auteurs anciens, Fran\xE7ais)"},{value:"vita-latina",label:"Vita Latina (Fran\xE7ais)"},{value:"vodohospodarske-technicko-ekonomicke-informace-en",label:"Vodohospod\xE1\u0159sk\xE9 technicko-ekonomick\xE9 informace (English)"},{value:"vodohospodarske-technicko-ekonomicke-informace",label:"Vodohospod\xE1\u0159sk\xE9 technicko-ekonomick\xE9 informace (\u010Ce\u0161tina)"},{value:"wader-study",label:"Wader Study"},{value:"water-alternatives",label:"Water Alternatives"},{value:"water-environment-research",label:"Water Environment Research"},{value:"water-sa",label:"Water SA"},{value:"water-science-and-technology",label:"Water Science & Technology"},{value:"waterbirds",label:"Waterbirds"},{value:"weed-research",label:"Weed Research"},{value:"weed-science-society-of-america",label:"Weed Science Society of America"},{value:"west-european-politics",label:"West European Politics"},{value:"western-journal-of-emergency-medicine",label:"Western Journal of Emergency Medicine"},{value:"westfalische-wilhelms-universitat-munster-medizinische-fakultat",label:"Westf\xE4lische Wilhelms-Universit\xE4t M\xFCnster - Medizinische Fakult\xE4t (Deutsch)"},{value:"wetlands",label:"Wetlands"},{value:"wheaton-college-phd-in-biblical-and-theological-studies",label:"Wheaton College - Ph.D. in Biblical and Theological Studies"},{value:"who-europe-harvard",label:"WHO Regional Office for Europe - Harvard"},{value:"who-europe-numeric",label:"WHO Regional Office for Europe (numeric)"},{value:"wiesbaden-business-school",label:"Wiesbaden Business School"},{value:"wikipedia-templates",label:"Wikipedia Templates"},{value:"wiley-vch-books",label:"Wiley-VCH books"},{value:"wireless-communications-and-mobile-computing",label:"Wireless Communications and Mobile Computing"},{value:"wirtschaftsuniversitat-wien-abteilung-fur-bildungswissenschaft",label:"Wirtschaftsuniversit\xE4t Wien - Abteilung f\xFCr Bildungswissenschaft (Deutsch - \xD6sterreich)"},{value:"wirtschaftsuniversitat-wien-author-date",label:"Wirtschaftsuniversit\xE4t Wien (author-date)"},{value:"wirtschaftsuniversitat-wien-handel-und-marketing",label:"Wirtschaftsuniversit\xE4t Wien - Handel und Marketing (Deutsch - \xD6sterreich)"},{value:"wirtschaftsuniversitat-wien-health-care-management",label:"Wirtschaftsuniversit\xE4t Wien - Health Care Management"},{value:"wirtschaftsuniversitat-wien-institut-fur-bwl-des-aussenhandels",label:"Wirtschaftsuniversit\xE4t Wien - Institut f\xFCr BWL des Au\xDFenhandels (Deutsch - \xD6sterreich)"},{value:"wirtschaftsuniversitat-wien-institut-fur-transportwirtschaft-und-logistik",label:"Wirtschaftsuniversit\xE4t Wien - Institut f\xFCr Transportwirtschaft und Logistik (Deutsch - \xD6sterreich)"},{value:"wirtschaftsuniversitat-wien-unternehmensrechnung-und-controlling",label:"Wirtschaftsuniversit\xE4t Wien - Unternehmensrechnung und Controlling"},{value:"wirtschaftsuniversitat-wien-wirtschaftspadagogik",label:"Wirtschaftsuniversit\xE4t Wien - Wirtschaftsp\xE4dagogik (Deutsch - \xD6sterreich)"},{value:"wissenschaftlicher-industrielogistik-dialog",label:"Wissenschaftlicher Industrielogistik-Dialog (Deutsch - \xD6sterreich)"},{value:"wolters-kluwerbrede-schrijfwijzer-author-date",label:"Wolters Kluwerbrede Schrijfwijzer (author-date, Nederlands)"},{value:"world-applied-sciences-journal",label:"World Applied Sciences Journal"},{value:"world-congress-on-engineering-asset-management",label:"World Congress on Engineering Asset Management 2010"},{value:"world-mycotoxin-journal",label:"World Mycotoxin Journal"},{value:"world-organisation-for-animal-health-scientific-and-technical-review",label:"World Organisation for Animal Health - Scientific and Technical Review"},{value:"world-politcs",label:"World Politics"},{value:"worlds-poultry-science-journal",label:"World's Poultry Science Journal"},{value:"worlds-veterinary-journal",label:"World's Veterinary Journal"},{value:"xenotransplantation",label:"Xenotransplantation"},{value:"yeast",label:"Yeast"},{value:"yozgat-bozok-universitesi-fen-bilimleri-enstitusu",label:"Yozgat Bozok \xDCniversitesi - Fen Bilimleri Enstit\xFCs\xFC (T\xFCrk\xE7e)"},{value:"zastosowania-komputerow-w-elektrotechnice",label:"Zastosowania Komputer\xF3w w Elektrotechnice"},{value:"zdfm-zeitschrift-fur-diversitatsforschung-und-management",label:"ZDfm \u2013 Zeitschrift f\xFCr Diversit\xE4tsforschung und -management (Deutsch - \xD6sterreich)"},{value:"zdravniski-vestnik",label:"Zdravni\u0161ki Vestnik (Slovenian Medical Journal)"},{value:"zeitgeschichte",label:"Zeitgeschichte (Deutsch)"},{value:"zeithistorische-forschungen",label:"Zeithistorische Forschungen/Studies in Contemporary History"},{value:"zeitschrift-fur-allgemeinmedizin",label:"Zeitschrift f\xFCr Allgemeinmedizin"},{value:"zeitschrift-fur-antikes-christentum",label:"Zeitschrift f\xFCr Antikes Christentum (Journal of Ancient Christianity) (English)"},{value:"zeitschrift-fur-deutsche-philologie",label:"Zeitschrift f\xFCr deutsche Philologie (Deutsch)"},{value:"zeitschrift-fur-die-geschichte-des-oberrheins",label:"Zeitschrift f\xFCr die Geschichte des Oberrheins (Deutsch)"},{value:"zeitschrift-fur-digitale-geisteswissenschaften",label:"Zeitschrift f\xFCr digitale Geisteswissenschaften (Deutsch)"},{value:"zeitschrift-fur-fantastikforschung",label:"Zeitschrift f\xFCr Fantastikforschung (Deutsch)"},{value:"zeitschrift-fur-geschichtsdidaktik",label:"Zeitschrift f\xFCr Geschichtsdidaktik (Deutsch)"},{value:"zeitschrift-fur-internationale-beziehungen",label:"Zeitschrift f\xFCr Internationale Beziehungen (Deutsch)"},{value:"zeitschrift-fur-kunstgeschichte",label:"Zeitschrift f\xFCr Kunstgeschichte"},{value:"zeitschrift-fur-medien-und-kulturforschung",label:"Zeitschrift f\xFCr Medien- und Kulturforschung (Deutsch)"},{value:"zeitschrift-fur-medienwissenschaft",label:"Zeitschrift f\xFCr Medienwissenschaft (Deutsch)"},{value:"zeitschrift-fur-ostmitteleuropa-forschung",label:"Zeitschrift f\xFCr Ostmitteleuropa-Forschung (Deutsch)"},{value:"zeitschrift-fur-padagogik",label:"Zeitschrift f\xFCr P\xE4dagogik (Deutsch)"},{value:"zeitschrift-fur-papyrologie-und-epigraphik",label:"Zeitschrift f\xFCr Papyrologie und Epigraphik"},{value:"zeitschrift-fur-parlamentsfragen",label:"Zeitschrift f\xFCr Parlamentsfragen (Deutsch)"},{value:"zeitschrift-fur-politik",label:"Zeitschrift f\xFCr Politik (German)"},{value:"zeitschrift-fur-qualitative-forschung",label:"Zeitschrift f\xFCr Qualitative Forschung (Deutsch)"},{value:"zeitschrift-fur-religionswissenschaft-author-date",label:"Zeitschrift f\xFCr Religionswissenschaft (author-date)"},{value:"zeitschrift-fur-religionswissenschaft-note",label:"Zeitschrift f\xFCr Religionswissenschaft (note)"},{value:"zeitschrift-fur-soziologie",label:"Zeitschrift f\xFCr Soziologie (Deutsch)"},{value:"zeitschrift-fur-theologie-und-kirche",label:"Zeitschrift f\xFCr Theologie und Kirche (Deutsch)"},{value:"zeitschrift-fur-theologie-und-philosophie",label:"Zeitschrift f\xFCr Theologie und Philosophie"},{value:"zeitschrift-fur-zahnarztliche-implantologie",label:"Zeitschrift f\xFCr Zahn\xE4rztliche Implantologie (Deutsch)"},{value:"zeszyty-prawnicze-bas",label:"Zeszyty Prawnicze BAS (Polski)"},{value:"zilsel",label:"Zilsel (Fran\xE7ais)"},{value:"zitierguide-leitfaden-zum-fachgerechten-zitieren-in-rechtswissenschaftlichen-arbeiten",label:"ZitierGuide: Leitfaden zum fachgerechten Zitieren in rechtswissenschaftlichen Arbeiten (Roger M\xFCller) (Deutsch - Schweiz)"},{value:"zoological-journal-of-the-linnean-society",label:"Zoological Journal of the Linnean Society"},{value:"zootaxa",label:"Zootaxa"},{value:"zwitscher-maschine",label:"Zwitscher-Maschine"},{value:"jm-azr-erstzitat-kurz-mit-verzeichnissen",label:"JM AZR (Erstzitat kurz mit Verzeichnissen)"},{value:"jm-azr",label:"JM AZR"},{value:"jm-chicago-fullnote-bibliography-nagoya",label:"JM Chicago Manual of Style 16th edition (full note) [Nagoya]"},{value:"jm-chicago-fullnote-bibliography-polyglot",label:"JM Chicago Manual of Style 16th edition (full note, polyglot)"},{value:"jm-chicago-fullnote-bibliography",label:"JM Chicago Manual of Style 16th edition (full note)"},{value:"jm-chinese-gb7714-2005-numeric",label:"JM Chinese Std GB/T 7714-2005 (numeric, Chinese)"},{value:"jm-diritto-pubblico-comparato-ed-europeo",label:"JM Diritto pubblico comparato ed europeo"},{value:"harvard-australian-national-university",label:"JM Harvard - Australian National University"},{value:"jm-ibfd-with-page-label",label:"JM IBFD Standard Citations and References (with page label)"},{value:"jm-ibfd",label:"JM IBFD Standard Citations and References"},{value:"jm-indigobook-law-review",label:"JM Indigo Book Law Review"},{value:"jm-indigobook",label:"JM Indigo Book"},{value:"japan-sociological-society",label:"\u65E5\u672C\u793E\u4F1A\u5B66\u4F1A (author-date, Japanese)"},{value:"jm-leg-cit-literaturverzeichnis",label:"JM leg cit mit Literaturverzeichnis"},{value:"jm-leg-cit-ohne-verzeichnisse",label:"JM leg cit ohne Verzeichnisse"},{value:"jm-leg-cit-rechtsquellenverzeichnis-literaturverzeichnis",label:"JM leg cit mit Rechtsquellenverzeichnis und Literaturverzeichnis"},{value:"jm-mgcill-v9",label:"JM - Canadian Guide to Uniform Legal Citation (9th edition) / Manuel canadien de la r\xE9f\xE9rence juridique (9\u1D49 \xE9dition)"},{value:"jm-new-zealand-law",label:"JM New Zealand Law Style"},{value:"jm-oscola",label:"JM OSCOLA - Oxford Standard for Citation of Legal Authorities"},{value:"jm-taylor-and-francis-chicago-author-date",label:"JM Taylor & Francis - Chicago Manual of Style (author-date)"},{value:"jm-turabian-fullnote-bibliography-eu-multi",label:"JM Turabian 8th edition (full note, EU multilingual)"},{value:"jm-turabian-fullnote-bibliography-nl-multi",label:"JM Turabian 8th edition (full note, Dutch multilingual)"},{value:"jm-vis-moot-1",label:"JM Vis Moot variant 1"},{value:"jm-wirtschaftsuniversitat-wien-steuerrecht",label:"JM Wirtschaftsuniversit\xE4t Wien \u2013 Steuerrecht"},{value:"juris-eu.int",label:"Verwijzingen en Afkortingen (Belgium)"}],j_=new qt(qr,{keys:["label"],minMatchCharLength:3});var Xr={input:e=>({...e,color:"var(--text-normal)"}),singleValue:e=>({...e,color:"var(--text-normal)"}),menu:e=>({...e,backgroundColor:"var(--background-modifier-form-field)",color:"var(--text-normal)"}),option:(e,{isFocused:t,isSelected:a})=>({...e,backgroundColor:t?"var(--interactive-accent)":a?"var(--background-modifier-hover)":void 0,color:t?"var(--text-on-accent)":"var(--text-normal)"}),control:(e,t)=>({...e,backgroundColor:"var(--background-modifier-form-field)",color:"var(--text-normal)",borderColor:t.isFocused?"var(--interactive-accent)":"var(--background-modifier-border)",boxShadow:t.isFocused?"0 0 0 1px var(--interactive-accent)":"none",":hover":{borderColor:t.isFocused?"var(--interactive-accent)":"var(--background-modifier-border)"}})};function cD(e){return j_.search(e).map(t=>t.item)}var L_=0;function Pc(e,t){e===""?t([]):(clearTimeout(L_),L_=activeWindow.setTimeout(()=>{t([{value:e,label:e},...cD(e)])},150))}function Oc(){return I.createElement("span",null,"Type to search CSL styles")}function D_(){return I.createElement("span",null,"Type to search")}function z_(){let e=app.vault.getMarkdownFiles();return new qt(e,{keys:["basename"],minMatchCharLength:2})}var M_=0,G_=e=>(t,a)=>{t===""?a([]):(clearTimeout(M_),M_=activeWindow.setTimeout(()=>{a(e.search(t).map(n=>({value:n.item.path,label:n.item.path})))},150))};function H_({format:e,index:t,updateFormat:a,removeFormat:n}){let i=I.useMemo(()=>{if(!e.cslStyle)return;let p=qr.find(b=>b.value===e.cslStyle);return p||{label:e.cslStyle,value:e.cslStyle}},[e.cslStyle]),r=I.useCallback(p=>{a(t,{...e,name:p.target.value})},[a,t,e]),o=I.useCallback(p=>{let b=p.target.value,d={...e,format:b};b==="latex"?d.command="cite":b==="biblatex"?d.command="autocite":d.command&&delete d.command,d.format!=="template"&&d.template&&delete d.template,d.format!=="pandoc"&&d.brackets&&delete d.brackets,a(t,d)},[a,t,e]),s=I.useCallback(p=>{a(t,{...e,template:p.target.value})},[a,t,e]),l=I.useCallback(p=>{a(t,{...e,cslStyle:p==null?void 0:p.value})},[a,t,e]),u=I.useCallback(p=>{a(t,{...e,command:p.target.value})},[a,t,e]),c=I.useCallback(()=>{a(t,{...e,brackets:!e.brackets})},[a,t,e]),f=I.useCallback(()=>{n(t)},[n,t]);return I.createElement("div",{className:"zt-format"},I.createElement("div",{className:"zt-format__form"},I.createElement("div",{className:"zt-format__label"},"Name"),I.createElement("div",{className:"zt-format__input-wrapper"},I.createElement("input",{onChange:r,type:"text",value:e.name}),I.createElement("div",{className:"zt-format__delete"},I.createElement("button",{className:"zt-format__delete-btn",onClick:f},I.createElement(ca,{name:"trash"}))))),I.createElement("div",{className:"zt-format__form"},I.createElement("div",{className:"zt-format__label"},"Output Format"),I.createElement("div",{className:"zt-format__input-wrapper"},I.createElement("select",{className:"dropdown",defaultValue:e.format,onChange:o},I.createElement("option",{value:"latex"},"LaTeX"),I.createElement("option",{value:"biblatex"},"BibLaTeX"),I.createElement("option",{value:"pandoc"},"Pandoc"),I.createElement("option",{value:"formatted-citation"},"Formatted Citation"),I.createElement("option",{value:"formatted-bibliography"},"Formatted Bibliography"),I.createElement("option",{value:"template"},"Template")))),e.format==="template"&&I.createElement("div",{className:"zt-format__form"},I.createElement("div",{className:"zt-format__label"},"Template"),I.createElement("div",{className:"zt-format__input-wrapper"},I.createElement("textarea",{rows:4,onChange:s,value:e.template})),I.createElement("div",{className:"zt-format__input-note"},"Citation templates have access to a subset of the Zotero item's data. The item's first attachement is available under the"," ",I.createElement("pre",null,"attachment")," key. Annotations are not provided. Open the data explorer from the command pallet to see available template data. Templates are written using"," ",I.createElement("a",{href:"https://mozilla.github.io/nunjucks/templating.html#variables",target:"_blank",rel:"noreferrer"},"Nunjucks"),"."," ",I.createElement("a",{href:"https://github.com/mgmeyers/obsidian-zotero-integration/blob/main/docs/Templating.md",target:"_blank",rel:"noreferrer"},"See the templating documentation here"),".")),["formatted-citation","formatted-bibliography","template"].contains(e.format)&&I.createElement("div",{className:"zt-format__form"},I.createElement("div",{className:"zt-format__label"},e.format==="template"?"Bibliography Style":"Citation Style"),I.createElement("div",{className:"zt-format__input-wrapper"},I.createElement(Jr,{noOptionsMessage:Oc,placeholder:"Search...",cacheOptions:!0,defaultValue:i,className:"zt-multiselect",loadOptions:Pc,isClearable:!0,onChange:l,styles:Xr})),I.createElement("div",{className:"zt-format__input-note"},"Note, the chosen style must be installed in Zotero. See"," ",I.createElement("a",{target:"_blank",href:"https://www.zotero.org/support/styles",rel:"noreferrer"},"Zotero: Citation Styles"))),["latex","biblatex"].contains(e.format)&&I.createElement("div",{className:"zt-format__form"},I.createElement("div",{className:"zt-format__label"},"Citation Command"),I.createElement("div",{className:"zt-format__input-wrapper"},I.createElement("input",{type:"text",value:e.command,onChange:u}))),e.format==="pandoc"&&I.createElement("div",{className:"zt-format__form"},I.createElement("div",{className:"zt-format__label"},"Include Brackets"),I.createElement("div",{className:"zt-format__input-wrapper"},I.createElement("div",{onClick:c,className:`checkbox-container${e.brackets?" is-enabled":""}`}))))}function W_({format:e,index:t,updateFormat:a,removeFormat:n}){let i=I.useMemo(()=>{let f=z_();return G_(f)},[]),r=I.useMemo(()=>{if(!e.templatePath)return;let f=app.vault.getMarkdownFiles().find(p=>p.path===e.templatePath);return f?{value:f.path,label:f.path}:void 0},[e.templatePath]),o=I.useMemo(()=>{if(!e.cslStyle)return;let f=qr.find(p=>p.value===e.cslStyle);return f||{label:e.cslStyle,value:e.cslStyle}},[e.cslStyle]),s=I.useCallback(f=>{let p=f.target.dataset.key;a(t,{...e,[p]:f.target.value})},[a,t,e]),l=I.useCallback(f=>{a(t,{...e,cslStyle:f==null?void 0:f.value})},[a,t,e]),u=I.useCallback(f=>{a(t,{...e,templatePath:f==null?void 0:f.value})},[a,t,e]),c=I.useCallback(()=>{n(t)},[n,t]);return I.createElement("div",{className:"zt-format"},I.createElement("div",{className:"zt-format__form"},I.createElement("div",{className:"zt-format__label"},"Name"),I.createElement("div",{className:"zt-format__input-wrapper"},I.createElement("input",{onChange:s,type:"text","data-key":"name",value:e.name}),I.createElement("div",{className:"zt-format__delete"},I.createElement("button",{className:"zt-format__delete-btn",onClick:c},I.createElement(ca,{name:"trash"}))))),I.createElement("div",{className:"zt-format__form"},I.createElement("div",{className:"zt-format__label"},"Output Path"),I.createElement("div",{className:"zt-format__input-wrapper"},I.createElement("input",{onChange:s,type:"text","data-key":"outputPathTemplate",value:e.outputPathTemplate})),I.createElement("div",{className:"zt-format__input-note"},"The file path of the exported markdown. Supports templating, eg"," ",I.createElement("pre",null,"My Folder/","{{citekey}}",".md"),". Templates have access to data from the Zotero item and its first attachment.")),I.createElement("div",{className:"zt-format__form"},I.createElement("div",{className:"zt-format__label"},"Image Output Path"),I.createElement("div",{className:"zt-format__input-wrapper"},I.createElement("input",{onChange:s,type:"text","data-key":"imageOutputPathTemplate",value:e.imageOutputPathTemplate})),I.createElement("div",{className:"zt-format__input-note"},"The folder in which images should be saved. Supports templating, eg"," ",I.createElement("pre",null,"Assets/","{{citekey}}","/"),". Templates have access to data from the Zotero item and its first attachment.")),I.createElement("div",{className:"zt-format__form"},I.createElement("div",{className:"zt-format__label"},"Image Base Name"),I.createElement("div",{className:"zt-format__input-wrapper"},I.createElement("input",{onChange:s,type:"text","data-key":"imageBaseNameTemplate",value:e.imageBaseNameTemplate})),I.createElement("div",{className:"zt-format__input-note"},"The base file name of exported images. Eg. ",I.createElement("pre",null,"image")," will result in ",I.createElement("pre",null,"image-1-x123-y456.jpg")," where ",I.createElement("pre",null,"1")," is the page number and ",I.createElement("pre",null,"x123")," and ",I.createElement("pre",null,"y456")," are the x and y coordinates of rectangle annotation on the page. Supports templating. Templates have access to data from the Zotero item and its first attachment.")),I.createElement("div",{className:"zt-format__form"},I.createElement("div",{className:"zt-format__label"},"Template File"),I.createElement("div",{className:"zt-format__input-wrapper"},I.createElement(Jr,{noOptionsMessage:D_,placeholder:"Search...",cacheOptions:!0,defaultValue:r,className:"zt-multiselect",loadOptions:i,isClearable:!0,onChange:u,styles:Xr})),I.createElement("div",{className:"zt-format__input-note"},"Open the data explorer from the command pallet to see available template data. Templates are written using"," ",I.createElement("a",{href:"https://mozilla.github.io/nunjucks/templating.html#variables",target:"_blank",rel:"noreferrer"},"Nunjucks"),"."," ",I.createElement("a",{href:"https://github.com/mgmeyers/obsidian-zotero-integration/blob/main/docs/Templating.md",target:"_blank",rel:"noreferrer"},"See the templating documentation here"),".")),e.headerTemplatePath&&I.createElement("div",{className:"zt-format__form is-deprecated"},I.createElement("div",{className:"zt-format__label"},"Header Template File (deprecated)"),I.createElement("div",{className:"zt-format__input-wrapper"},I.createElement("input",{type:"text",disabled:!0,value:e.headerTemplatePath}),I.createElement("button",{className:"mod-warning",onClick:()=>{a(t,{...e,headerTemplatePath:void 0})}},"Remove Template")),I.createElement("div",{className:"zt-format__input-note"},"Deprecated: Separate template files are no longer needed."," ",I.createElement("a",{href:"https://github.com/mgmeyers/obsidian-zotero-integration/blob/main/docs/Templating.md",target:"_blank",rel:"noreferrer"},"See the templating documentation here"),".")),e.annotationTemplatePath&&I.createElement("div",{className:"zt-format__form is-deprecated"},I.createElement("div",{className:"zt-format__label"},"Annotation Template File (deprecated)"),I.createElement("div",{className:"zt-format__input-wrapper"},I.createElement("input",{type:"text",disabled:!0,value:e.annotationTemplatePath}),I.createElement("button",{className:"mod-warning",onClick:()=>{a(t,{...e,annotationTemplatePath:void 0})}},"Remove Template")),I.createElement("div",{className:"zt-format__input-note"},"Deprecated: Separate template files are no longer needed."," ",I.createElement("a",{href:"https://github.com/mgmeyers/obsidian-zotero-integration/blob/main/docs/Templating.md",target:"_blank",rel:"noreferrer"},"See the templating documentation here"),".")),e.footerTemplatePath&&I.createElement("div",{className:"zt-format__form is-deprecated"},I.createElement("div",{className:"zt-format__label"},"Footer Template File (deprecated)"),I.createElement("div",{className:"zt-format__input-wrapper"},I.createElement("input",{type:"text",disabled:!0,value:e.footerTemplatePath}),I.createElement("button",{className:"mod-warning",onClick:()=>{a(t,{...e,footerTemplatePath:void 0})}},"Remove Template")),I.createElement("div",{className:"zt-format__input-note"},"Deprecated: Separate template files are no longer needed."," ",I.createElement("a",{href:"https://github.com/mgmeyers/obsidian-zotero-integration/blob/main/docs/Templating.md",target:"_blank",rel:"noreferrer"},"See the templating documentation here"),".")),I.createElement("div",{className:"zt-format__form"},I.createElement("div",{className:"zt-format__label"},"Bilbiography Style"),I.createElement("div",{className:"zt-format__input-wrapper"},I.createElement(Jr,{noOptionsMessage:Oc,placeholder:"Search...",cacheOptions:!0,defaultValue:o,className:"zt-multiselect",loadOptions:Pc,isClearable:!0,onChange:l,styles:Xr})),I.createElement("div",{className:"zt-format__input-note"},"Note, the chosen style must be installed in Zotero. See"," ",I.createElement("a",{target:"_blank",href:"https://www.zotero.org/support/styles",rel:"noreferrer"},"Zotero: Citation Styles"))))}function uD({settings:e,addCiteFormat:t,updateCiteFormat:a,removeCiteFormat:n,addExportFormat:i,updateExportFormat:r,removeExportFormat:o,updateSetting:s}){let[l,u]=I.useState(e.citeFormats),[c,f]=I.useState(e.exportFormats),[p,b]=I.useState(!!e.openNoteAfterImport),[d,m]=I.useState(e.pdfExportImageOCR),[h,v]=I.useState(!!e.shouldConcat),x=I.useCallback((0,Ja.debounce)((F,B)=>{u(a(F,B))},200,!0),[a]),E=I.useCallback(()=>{u(t({name:`Format #${l.length+1}`,format:"formatted-citation"}))},[t,l]),g=I.useCallback(F=>{u(n(F))},[n]),w=I.useCallback((0,Ja.debounce)((F,B)=>{f(r(F,B))},200,!0),[r]),C=I.useCallback(()=>{f(i({name:`Import #${c.length+1}`,outputPathTemplate:"{{citekey}}.md",imageOutputPathTemplate:"{{citekey}}/",imageBaseNameTemplate:"image"}))},[i,l]),y=I.useCallback(F=>{f(o(F))},[o]),S=I.useRef(null),A=I.useRef(null),[_,P]=I.useState(e.database==="Custom");return I.createElement("div",null,I.createElement(He,{name:"General Settings",isHeading:!0}),I.createElement(qA,{settings:e,updateSetting:s}),I.createElement(He,{name:"Database",description:"Supports Zotero and Juris-M. Alternatively a custom port number can be specified."},I.createElement("select",{className:"dropdown",defaultValue:e.database,onChange:F=>{let B=F.target.value;s("database",B),P(B==="Custom")}},I.createElement("option",{value:"Zotero"},"Zotero"),I.createElement("option",{value:"Juris-M"},"Juris-M"),I.createElement("option",{value:"Custom"},"Custom"))),_?I.createElement(He,{name:"Port number",description:"If a custom port number has been set in Zotero, enter it here."},I.createElement("input",{onChange:F=>s("port",F.target.value),type:"number",placeholder:"Example: 23119",defaultValue:e.port})):null,I.createElement(He,{name:"Note Import Location",description:"Notes imported from Zotero will be added to this folder in your vault"},I.createElement("input",{onChange:F=>s("noteImportFolder",F.target.value),type:"text",spellCheck:!1,placeholder:"Example: folder 1/folder 2",defaultValue:e.noteImportFolder})),I.createElement(He,{name:"Open the created or updated note(s) after import",description:"The created or updated markdown files resulting from the import will be automatically opened."},I.createElement("div",{onClick:()=>{b(F=>(s("openNoteAfterImport",!F),!F))},className:`checkbox-container${p?" is-enabled":""}`})),I.createElement(He,{name:"Which notes to open after import",description:"Open either the first note imported, the last note imported, or all notes in new tabs."},I.createElement("select",{className:"dropdown",defaultValue:e.whichNotesToOpenAfterImport,disabled:!e.openNoteAfterImport,onChange:F=>s("whichNotesToOpenAfterImport",F.target.value)},I.createElement("option",{value:"first-imported-note"},"First imported note"),I.createElement("option",{value:"last-imported-note"},"Last imported note"),I.createElement("option",{value:"all-imported-notes"},"All imported notes"))),I.createElement(He,{name:"Enable Annotation Concatenation",description:"Annotations extracted from PDFs that begin with '+' will be appended to the previous annotation. Note: Annotation ordering is not always consistent and you may not always acheive the desire concatenation result"},I.createElement("div",{onClick:()=>{v(F=>(s("shouldConcat",!F),!F))},className:`checkbox-container${h?" is-enabled":""}`})),I.createElement(He,{name:"Citation Formats",isHeading:!0}),I.createElement(He,null,I.createElement("button",{onClick:E,className:"mod-cta"},"Add Citation Format")),l.map((F,B)=>I.createElement(H_,{key:B,format:F,index:B,updateFormat:x,removeFormat:g})),I.createElement(He,{name:"Import Formats",isHeading:!0}),I.createElement(He,null,I.createElement("button",{onClick:C,className:"mod-cta"},"Add Import Format")),c.map((F,B)=>I.createElement(W_,{key:c.length-B,format:F,index:B,updateFormat:w,removeFormat:y})),I.createElement(He,{name:"Import Image Settings",description:"Rectangle annotations will be extracted from PDFs as images.",isHeading:!0}),I.createElement(He,{name:"Image Format"},I.createElement("select",{className:"dropdown",defaultValue:e.pdfExportImageFormat,onChange:F=>s("pdfExportImageFormat",F.target.value)},I.createElement("option",{value:"jpg"},"jpg"),I.createElement("option",{value:"png"},"png"))),I.createElement(He,{name:"Image Quality (jpg only)"},I.createElement("input",{min:"0",max:"100",onChange:F=>s("pdfExportImageQuality",Number(F.target.value)),type:"number",defaultValue:e.pdfExportImageQuality.toString()})),I.createElement(He,{name:"Image DPI"},I.createElement("input",{min:"0",onChange:F=>s("pdfExportImageDPI",Number(F.target.value)),type:"number",defaultValue:e.pdfExportImageDPI.toString()})),I.createElement(He,{name:"Image OCR",description:I.createElement("div",null,"Attempt to extract text from images created by rectangle annotations. This requires that"," ",I.createElement("a",{href:"https://tesseract-ocr.github.io/tessdoc/",target:"_blank",rel:"noreferrer"},"tesseract")," ","be installed on your system. Tesseract can be installed from",I.createElement("a",{href:"https://brew.sh/",target:"_blank",rel:"noreferrer"},"homebrew on mac"),", various linux package managers, and from"," ",I.createElement("a",{href:"https://github.com/UB-Mannheim/tesseract/wiki",target:"_blank",rel:"noreferrer"},"here on windows"),".")},I.createElement("div",{onClick:()=>m(F=>(s("pdfExportImageOCR",!F),!F)),className:`checkbox-container${d?" is-enabled":""}`})),I.createElement(He,{name:"Tesseract path",description:I.createElement("div",null,"Required: An absolute path to the tesseract executable. This can be found on mac and linux with the terminal command"," ",I.createElement("pre",null,"which tesseract"))},I.createElement("input",{ref:S,onChange:F=>s("pdfExportImageTesseractPath",F.target.value),type:"text",defaultValue:e.pdfExportImageTesseractPath}),I.createElement("div",{className:"clickable-icon setting-editor-extra-setting-button","aria-label":"Attempt to find tesseract automatically",onClick:async()=>{try{let F=await(0,V_.default)("tesseract");F?(S.current.value=F,s("pdfExportImageTesseractPath",F)):new Ja.Notice("Unable to find tesseract on your system. If it is installed, please manually enter a path.")}catch(F){new Ja.Notice("Unable to find tesseract on your system. If it is installed, please manually enter a path."),console.error(F)}}},I.createElement(ca,{name:"magnifying-glass"}))),I.createElement(He,{name:"Image OCR Language",description:I.createElement("div",null,"Optional: defaults to english. Multiple languages can be specified like so: ",I.createElement("pre",null,"eng+deu"),". Each language must be installed on your system."," ",I.createElement("a",{href:"https://github.com/tesseract-ocr/tessdata",target:"_blank",rel:"noreferrer"},"Languages can be downloaded here"),". (See"," ",I.createElement("a",{href:"https://tesseract-ocr.github.io/tessdoc/Data-Files-in-different-versions.html",target:"_blank",rel:"noreferrer"},"here for a description of the language codes"),")")},I.createElement("input",{onChange:F=>s("pdfExportImageOCRLang",F.target.value),type:"text",defaultValue:e.pdfExportImageOCRLang})),I.createElement(He,{name:"Tesseract data directory",description:"Optional: supply an absolute path to the directory where tesseract's language files reside. This folder should include *.traineddata files for your selected languages."},I.createElement("input",{ref:A,onChange:F=>s("pdfExportImageTessDataDir",F.target.value),type:"text",defaultValue:e.pdfExportImageTessDataDir}),I.createElement("div",{className:"clickable-icon setting-editor-extra-setting-button","aria-label":"Select the tesseract data directory",onClick:()=>{let F=require("electron").remote.dialog.showOpenDialogSync({properties:["openDirectory"]});F&&F.length&&(A.current.value=F[0],s("pdfExportImageTessDataDir",F[0]))}},I.createElement(ca,{name:"lucide-folder-open"}))))}var Rc=class extends Ja.PluginSettingTab{constructor(a,n){super(a,n);this.addCiteFormat=a=>(this.plugin.addFormatCommand(a),this.plugin.settings.citeFormats.unshift(a),this.debouncedSave(),this.plugin.settings.citeFormats.slice());this.updateCiteFormat=(a,n)=>(this.plugin.removeFormatCommand(this.plugin.settings.citeFormats[a]),this.plugin.addFormatCommand(n),this.plugin.settings.citeFormats[a]=n,this.debouncedSave(),this.plugin.settings.citeFormats.slice());this.removeCiteFormat=a=>(this.plugin.removeFormatCommand(this.plugin.settings.citeFormats[a]),this.plugin.settings.citeFormats.splice(a,1),this.debouncedSave(),this.plugin.settings.citeFormats.slice());this.addExportFormat=a=>(this.plugin.addExportCommand(a),this.plugin.settings.exportFormats.unshift(a),this.debouncedSave(),this.plugin.settings.exportFormats.slice());this.updateExportFormat=(a,n)=>(this.plugin.removeExportCommand(this.plugin.settings.exportFormats[a]),this.plugin.addExportCommand(n),this.plugin.settings.exportFormats[a]=n,this.debouncedSave(),this.plugin.settings.exportFormats.slice());this.removeExportFormat=a=>(this.plugin.removeExportCommand(this.plugin.settings.exportFormats[a]),this.plugin.settings.exportFormats.splice(a,1),this.debouncedSave(),this.plugin.settings.exportFormats.slice());this.updateSetting=(a,n)=>{this.plugin.settings[a]=n,this.debouncedSave()};this.plugin=n}display(){I.render(I.createElement(uD,{settings:this.plugin.settings,addCiteFormat:this.addCiteFormat,updateCiteFormat:this.updateCiteFormat,removeCiteFormat:this.removeCiteFormat,addExportFormat:this.addExportFormat,updateExportFormat:this.updateExportFormat,removeExportFormat:this.removeExportFormat,updateSetting:this.updateSetting}),this.containerEl)}debouncedSave(){clearTimeout(this.dbTimer),this.dbTimer=activeWindow.setTimeout(()=>{this.plugin.saveSettings()},150)}hide(){super.hide(),I.unmountComponentAtNode(this.containerEl)}};var U_="obsidian-zotero-desktop-connector:",J_="zdc-",Z_="zdc-exp-",pD={database:"Zotero",noteImportFolder:"",pdfExportImageDPI:120,pdfExportImageFormat:"jpg",pdfExportImageQuality:90,citeFormats:[],exportFormats:[],citeSuggestTemplate:"[[{{citekey}}]]",openNoteAfterImport:!1,whichNotesToOpenAfterImport:"first-imported-note"};async function dD(){if(process.platform!=="win32")try{let e=await dv();process.env.PATH=e||["./node_modules/.bin","/.nodebrew/current/bin","/usr/local/bin",process.env.PATH].join(":")}catch(e){console.error(e)}}var Bc=class extends En.Plugin{async onload(){await this.loadSettings(),this.emitter=new En.Events,this.updatePDFUtility(),this.addSettingTab(new Rc(this.app,this)),this.registerView(Un,a=>new Os(this,a)),this.settings.citeFormats.forEach(a=>{this.addFormatCommand(a)}),this.settings.exportFormats.forEach(a=>{this.addExportCommand(a)}),this.addCommand({id:"zdc-insert-notes",name:"Insert notes into current document",editorCallback:a=>{var i;let n={database:this.settings.database,port:this.settings.port};xp(n,(i=this.app.workspace.getActiveFile())==null?void 0:i.parent.path).then(r=>{r&&Wx(a,r)})}}),this.addCommand({id:"zdc-import-notes",name:"Import notes",callback:()=>{let a={database:this.settings.database,port:this.settings.port};xp(a,this.settings.noteImportFolder).then(n=>n?Vx(this.settings.noteImportFolder,n):[]).then(n=>this.openNotes(n))}}),this.addCommand({id:"show-zotero-debug-view",name:"Data explorer",callback:()=>{this.activateDataExplorer()}}),this.registerEvent(this.app.vault.on("modify",a=>{a instanceof En.TFile&&this.emitter.trigger("fileUpdated",a)})),app.workspace.trigger("parse-style-settings"),dD()}onunload(){this.settings.citeFormats.forEach(a=>{this.removeFormatCommand(a)}),this.settings.exportFormats.forEach(a=>{this.removeExportCommand(a)}),this.app.workspace.detachLeavesOfType(Un)}addFormatCommand(a){this.addCommand({id:`${J_}${a.name}`,name:a.name,editorCallback:n=>{let i={database:this.settings.database,port:this.settings.port};a.format==="template"&&a.template.trim()?Yx({database:i,format:a}).then(r=>{typeof r=="string"&&n.replaceSelection(r)}):Mx(a,i).then(r=>{typeof r=="string"&&n.replaceSelection(r)})}})}removeFormatCommand(a){this.app.commands.removeCommand(`${U_}${J_}${a.name}`)}addExportCommand(a){this.addCommand({id:`${Z_}${a.name}`,name:a.name,callback:async()=>{let n={database:this.settings.database,port:this.settings.port};this.openNotes(await Ep({settings:this.settings,database:n,exportFormat:a}))}})}removeExportCommand(a){this.app.commands.removeCommand(`${U_}${Z_}${a.name}`)}async runImport(a,n,i=1){let r=this.settings.exportFormats.find(s=>s.name===a);if(!r)throw new Error(`Error: Import format "${a}" not found`);let o={database:this.settings.database,port:this.settings.port};n.startsWith("@")&&(n=n.substring(1)),await Ep({settings:this.settings,database:o,exportFormat:r},[{key:n,library:i}])}async openNotes(a){let n=[];if(this.settings.openNoteAfterImport)switch(this.settings.whichNotesToOpenAfterImport){case"first-imported-note":{n.push(a[0]);break}case"last-imported-note":{n.push(a[a.length-1]);break}case"all-imported-notes":{n.push(...a);break}}await new Promise(r=>setTimeout(r,1e3));let i=this.app.workspace.getLeavesOfType("markdown");for(let r of n){let o=this.app.vault.getAbstractFileByPath(r),s=i.find(l=>l.view.file===o);s?app.workspace.revealLeaf(s):o instanceof En.TFile&&await this.app.workspace.getLeaf(!0).openFile(o)}}async loadSettings(){let a=await this.loadData();this.settings={...pD,...a}}async saveSettings(){this.emitter.trigger("settingsUpdated"),await this.saveData(this.settings)}deactivateDataExplorer(){this.app.workspace.detachLeavesOfType(Un)}async activateDataExplorer(){this.deactivateDataExplorer(),await this.app.workspace.createLeafBySplit(this.app.workspace.activeLeaf,"vertical").setViewState({type:Un})}async updatePDFUtility(){let{exeOverridePath:a,_exeInternalVersion:n,exeVersion:i}=this.settings;if(!(a||!i)&&(i!==Va||!n||n!==Cf)){let r=new nt(app,"Updating Obsidian Zotero Integration PDF Utility...");r.open();try{await Af()&&(this.settings.exeVersion=Va,this.settings._exeInternalVersion=Cf,this.saveSettings())}catch(o){}r.close()}}}; -/*! Bundled license information: - -nunjucks/browser/nunjucks.js: - (*! Browser bundle of nunjucks 3.2.4 *) - -safe-buffer/index.js: - (*! safe-buffer. MIT License. Feross Aboukhadijeh *) - -content-disposition/index.js: - (*! - * content-disposition - * Copyright(c) 2014-2017 Douglas Christopher Wilson - * MIT Licensed - *) - -object-assign/index.js: - (* - object-assign - (c) Sindre Sorhus - @license MIT - *) - -is-natural-number/index.js: - (*! - * is-natural-number.js | MIT (c) Shinnosuke Watanabe - * https://github.com/shinnn/is-natural-number.js - *) - -strip-dirs/index.js: - (*! - * strip-dirs | MIT (c) Shinnosuke Watanabe - * https://github.com/shinnn/node-strip-dirs - *) - -has-symbol-support-x/index.js: - (** - * @file Tests if ES6 Symbol is supported. - * @version 1.4.2 - * @author Xotic750 - * @copyright Xotic750 - * @license {@link MIT} - * @module has-symbol-support-x - *) - -has-to-string-tag-x/index.js: - (** - * @file Tests if ES6 @@toStringTag is supported. - * @see {@link http://www.ecma-international.org/ecma-262/6.0/#sec-@@tostringtag|26.3.1 @@toStringTag} - * @version 1.4.1 - * @author Xotic750 - * @copyright Xotic750 - * @license {@link MIT} - * @module has-to-string-tag-x - *) - -mime-db/index.js: - (*! - * mime-db - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2015-2022 Douglas Christopher Wilson - * MIT Licensed - *) - -react-is/cjs/react-is.production.min.js: - (** @license React v16.13.1 - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - *) -*/ diff --git a/content/.pandoc/apa.csl b/content/.pandoc/apa.csl deleted file mode 100644 index 772c25e3..00000000 --- a/content/.pandoc/apa.csl +++ /dev/null @@ -1,1697 +0,0 @@ - - diff --git a/content/.pandoc/chicago-author-date.csl b/content/.pandoc/chicago-author-date.csl deleted file mode 100644 index 7527a1d4..00000000 --- a/content/.pandoc/chicago-author-date.csl +++ /dev/null @@ -1,684 +0,0 @@ - - diff --git a/content/private b/content/private index fb5e7cbc..389e258c 160000 --- a/content/private +++ b/content/private @@ -1 +1 @@ -Subproject commit fb5e7cbcd39738137f3e5a084be8c680bf04ce34 +Subproject commit 389e258c809d105a276ae299ec1807347f873f76 diff --git a/quartz/cli/args.js b/quartz/cli/args.js deleted file mode 100644 index 7ed5b078..00000000 --- a/quartz/cli/args.js +++ /dev/null @@ -1,103 +0,0 @@ -export const CommonArgv = { - directory: { - string: true, - alias: ["d"], - default: "content", - describe: "directory to look for content files", - }, - verbose: { - boolean: true, - alias: ["v"], - default: false, - describe: "print out extra logging information", - }, -} - -export const CreateArgv = { - ...CommonArgv, - source: { - string: true, - alias: ["s"], - describe: "source directory to copy/create symlink from", - }, - strategy: { - string: true, - alias: ["X"], - choices: ["new", "copy", "symlink"], - describe: "strategy for content folder setup", - }, - links: { - string: true, - alias: ["l"], - choices: ["absolute", "shortest", "relative"], - describe: "strategy to resolve links", - }, -} - -export const SyncArgv = { - ...CommonArgv, - commit: { - boolean: true, - default: true, - describe: "create a git commit for your unsaved changes", - }, - message: { - string: true, - alias: ["m"], - describe: "option to override the default Quartz commit message", - }, - push: { - boolean: true, - default: true, - describe: "push updates to your Quartz fork", - }, - pull: { - boolean: true, - default: true, - describe: "pull updates from your Quartz fork", - }, -} - -export const BuildArgv = { - ...CommonArgv, - output: { - string: true, - alias: ["o"], - default: "public", - describe: "output folder for files", - }, - serve: { - boolean: true, - default: false, - describe: "run a local server to live-preview your Quartz", - }, - baseDir: { - string: true, - default: "", - describe: "base path to serve your local server on", - }, - port: { - number: true, - default: 8080, - describe: "port to serve Quartz on", - }, - wsPort: { - number: true, - default: 3001, - describe: "port to use for WebSocket-based hot-reload notifications", - }, - remoteDevHost: { - string: true, - default: "", - describe: "A URL override for the websocket connection if you are not developing on localhost", - }, - bundleInfo: { - boolean: true, - default: false, - describe: "show detailed bundle information", - }, - concurrency: { - number: true, - describe: "how many threads to use to parse notes", - }, -} diff --git a/quartz/cli/constants.js b/quartz/cli/constants.js deleted file mode 100644 index f4a9ce52..00000000 --- a/quartz/cli/constants.js +++ /dev/null @@ -1,15 +0,0 @@ -import path from "path" -import { readFileSync } from "fs" - -/** - * All constants relating to helpers or handlers - */ -export const ORIGIN_NAME = "origin" -export const UPSTREAM_NAME = "upstream" -export const QUARTZ_SOURCE_BRANCH = "v4" -export const cwd = process.cwd() -export const cacheDir = path.join(cwd, ".quartz-cache") -export const cacheFile = "./quartz/.quartz-cache/transpiled-build.mjs" -export const fp = "./quartz/build.ts" -export const { version } = JSON.parse(readFileSync("./package.json").toString()) -export const contentCacheFolder = path.join(cacheDir, "content-cache") diff --git a/quartz/cli/handlers.js b/quartz/cli/handlers.js deleted file mode 100644 index 12e7e8ec..00000000 --- a/quartz/cli/handlers.js +++ /dev/null @@ -1,544 +0,0 @@ -import { promises } from "fs" -import path from "path" -import esbuild from "esbuild" -import chalk from "chalk" -import { sassPlugin } from "esbuild-sass-plugin" -import fs from "fs" -import { intro, outro, select, text } from "@clack/prompts" -import { rimraf } from "rimraf" -import chokidar from "chokidar" -import prettyBytes from "pretty-bytes" -import { execSync, spawnSync } from "child_process" -import http from "http" -import serveHandler from "serve-handler" -import { WebSocketServer } from "ws" -import { randomUUID } from "crypto" -import { Mutex } from "async-mutex" -import { CreateArgv } from "./args.js" -import { - exitIfCancel, - escapePath, - gitPull, - popContentFolder, - stashContentFolder, -} from "./helpers.js" -import { - UPSTREAM_NAME, - QUARTZ_SOURCE_BRANCH, - ORIGIN_NAME, - version, - fp, - cacheFile, - cwd, -} from "./constants.js" - -/** - * Handles `npx quartz create` - * @param {*} argv arguments for `create` - */ -export async function handleCreate(argv) { - console.log() - intro(chalk.bgGreen.black(` Quartz v${version} `)) - const contentFolder = path.join(cwd, argv.directory) - let setupStrategy = argv.strategy?.toLowerCase() - let linkResolutionStrategy = argv.links?.toLowerCase() - const sourceDirectory = argv.source - - // If all cmd arguments were provided, check if theyre valid - if (setupStrategy && linkResolutionStrategy) { - // If setup isn't, "new", source argument is required - if (setupStrategy !== "new") { - // Error handling - if (!sourceDirectory) { - outro( - chalk.red( - `Setup strategies (arg '${chalk.yellow( - `-${CreateArgv.strategy.alias[0]}`, - )}') other than '${chalk.yellow( - "new", - )}' require content folder argument ('${chalk.yellow( - `-${CreateArgv.source.alias[0]}`, - )}') to be set`, - ), - ) - process.exit(1) - } else { - if (!fs.existsSync(sourceDirectory)) { - outro( - chalk.red( - `Input directory to copy/symlink 'content' from not found ('${chalk.yellow( - sourceDirectory, - )}', invalid argument "${chalk.yellow(`-${CreateArgv.source.alias[0]}`)})`, - ), - ) - process.exit(1) - } else if (!fs.lstatSync(sourceDirectory).isDirectory()) { - outro( - chalk.red( - `Source directory to copy/symlink 'content' from is not a directory (found file at '${chalk.yellow( - sourceDirectory, - )}', invalid argument ${chalk.yellow(`-${CreateArgv.source.alias[0]}`)}")`, - ), - ) - process.exit(1) - } - } - } - } - - // Use cli process if cmd args werent provided - if (!setupStrategy) { - setupStrategy = exitIfCancel( - await select({ - message: `Choose how to initialize the content in \`${contentFolder}\``, - options: [ - { value: "new", label: "Empty Quartz" }, - { value: "copy", label: "Copy an existing folder", hint: "overwrites `content`" }, - { - value: "symlink", - label: "Symlink an existing folder", - hint: "don't select this unless you know what you are doing!", - }, - ], - }), - ) - } - - async function rmContentFolder() { - const contentStat = await fs.promises.lstat(contentFolder) - if (contentStat.isSymbolicLink()) { - await fs.promises.unlink(contentFolder) - } else { - await rimraf(contentFolder) - } - } - - const gitkeepPath = path.join(contentFolder, ".gitkeep") - if (fs.existsSync(gitkeepPath)) { - await fs.promises.unlink(gitkeepPath) - } - if (setupStrategy === "copy" || setupStrategy === "symlink") { - let originalFolder = sourceDirectory - - // If input directory was not passed, use cli - if (!sourceDirectory) { - originalFolder = escapePath( - exitIfCancel( - await text({ - message: "Enter the full path to existing content folder", - placeholder: - "On most terminal emulators, you can drag and drop a folder into the window and it will paste the full path", - validate(fp) { - const fullPath = escapePath(fp) - if (!fs.existsSync(fullPath)) { - return "The given path doesn't exist" - } else if (!fs.lstatSync(fullPath).isDirectory()) { - return "The given path is not a folder" - } - }, - }), - ), - ) - } - - await rmContentFolder() - if (setupStrategy === "copy") { - await fs.promises.cp(originalFolder, contentFolder, { - recursive: true, - preserveTimestamps: true, - }) - } else if (setupStrategy === "symlink") { - await fs.promises.symlink(originalFolder, contentFolder, "dir") - } - } else if (setupStrategy === "new") { - await fs.promises.writeFile( - path.join(contentFolder, "index.md"), - `--- -title: Welcome to Quartz ---- - -This is a blank Quartz installation. -See the [documentation](https://quartz.jzhao.xyz) for how to get started. -`, - ) - } - - // Use cli process if cmd args werent provided - if (!linkResolutionStrategy) { - // get a preferred link resolution strategy - linkResolutionStrategy = exitIfCancel( - await select({ - message: `Choose how Quartz should resolve links in your content. This should match Obsidian's link format. You can change this later in \`quartz.config.ts\`.`, - options: [ - { - value: "shortest", - label: "Treat links as shortest path", - hint: "(default)", - }, - { - value: "absolute", - label: "Treat links as absolute path", - }, - { - value: "relative", - label: "Treat links as relative paths", - }, - ], - }), - ) - } - - // now, do config changes - const configFilePath = path.join(cwd, "quartz.config.ts") - let configContent = await fs.promises.readFile(configFilePath, { encoding: "utf-8" }) - configContent = configContent.replace( - /markdownLinkResolution: '(.+)'/, - `markdownLinkResolution: '${linkResolutionStrategy}'`, - ) - await fs.promises.writeFile(configFilePath, configContent) - - // setup remote - execSync( - `git remote show upstream || git remote add upstream https://github.com/jackyzha0/quartz.git`, - { stdio: "ignore" }, - ) - - outro(`You're all set! Not sure what to do next? Try: - • Customizing Quartz a bit more by editing \`quartz.config.ts\` - • Running \`npx quartz build --serve\` to preview your Quartz locally - • Hosting your Quartz online (see: https://quartz.jzhao.xyz/hosting) -`) -} - -/** - * Handles `npx quartz build` - * @param {*} argv arguments for `build` - */ -export async function handleBuild(argv) { - console.log(chalk.bgGreen.black(`\n Quartz v${version} \n`)) - const ctx = await esbuild.context({ - entryPoints: [fp], - outfile: cacheFile, - bundle: true, - keepNames: true, - minifyWhitespace: true, - minifySyntax: true, - platform: "node", - format: "esm", - jsx: "automatic", - jsxImportSource: "preact", - packages: "external", - metafile: true, - sourcemap: true, - sourcesContent: false, - plugins: [ - sassPlugin({ - type: "css-text", - cssImports: true, - }), - { - name: "inline-script-loader", - setup(build) { - build.onLoad({ filter: /\.inline\.(ts|js)$/ }, async (args) => { - let text = await promises.readFile(args.path, "utf8") - - // remove default exports that we manually inserted - text = text.replace("export default", "") - text = text.replace("export", "") - - const sourcefile = path.relative(path.resolve("."), args.path) - const resolveDir = path.dirname(sourcefile) - const transpiled = await esbuild.build({ - stdin: { - contents: text, - loader: "ts", - resolveDir, - sourcefile, - }, - write: false, - bundle: true, - minify: true, - platform: "browser", - format: "esm", - }) - const rawMod = transpiled.outputFiles[0].text - return { - contents: rawMod, - loader: "text", - } - }) - }, - }, - ], - }) - - const buildMutex = new Mutex() - let lastBuildMs = 0 - let cleanupBuild = null - const build = async (clientRefresh) => { - const buildStart = new Date().getTime() - lastBuildMs = buildStart - const release = await buildMutex.acquire() - if (lastBuildMs > buildStart) { - release() - return - } - - if (cleanupBuild) { - await cleanupBuild() - console.log(chalk.yellow("Detected a source code change, doing a hard rebuild...")) - } - - const result = await ctx.rebuild().catch((err) => { - console.error(`${chalk.red("Couldn't parse Quartz configuration:")} ${fp}`) - console.log(`Reason: ${chalk.grey(err)}`) - process.exit(1) - }) - release() - - if (argv.bundleInfo) { - const outputFileName = "quartz/.quartz-cache/transpiled-build.mjs" - const meta = result.metafile.outputs[outputFileName] - console.log( - `Successfully transpiled ${Object.keys(meta.inputs).length} files (${prettyBytes( - meta.bytes, - )})`, - ) - console.log(await esbuild.analyzeMetafile(result.metafile, { color: true })) - } - - // bypass module cache - // https://github.com/nodejs/modules/issues/307 - const { default: buildQuartz } = await import(`../../${cacheFile}?update=${randomUUID()}`) - // ^ this import is relative, so base "cacheFile" path can't be used - - cleanupBuild = await buildQuartz(argv, buildMutex, clientRefresh) - clientRefresh() - } - - if (argv.serve) { - const connections = [] - const clientRefresh = () => connections.forEach((conn) => conn.send("rebuild")) - - if (argv.baseDir !== "" && !argv.baseDir.startsWith("/")) { - argv.baseDir = "/" + argv.baseDir - } - - await build(clientRefresh) - const server = http.createServer(async (req, res) => { - if (argv.baseDir && !req.url?.startsWith(argv.baseDir)) { - console.log( - chalk.red( - `[404] ${req.url} (warning: link outside of site, this is likely a Quartz bug)`, - ), - ) - res.writeHead(404) - res.end() - return - } - - // strip baseDir prefix - req.url = req.url?.slice(argv.baseDir.length) - - const serve = async () => { - const release = await buildMutex.acquire() - await serveHandler(req, res, { - public: argv.output, - directoryListing: false, - headers: [ - { - source: "**/*.*", - headers: [{ key: "Content-Disposition", value: "inline" }], - }, - ], - }) - const status = res.statusCode - const statusString = - status >= 200 && status < 300 ? chalk.green(`[${status}]`) : chalk.red(`[${status}]`) - console.log(statusString + chalk.grey(` ${argv.baseDir}${req.url}`)) - release() - } - - const redirect = (newFp) => { - newFp = argv.baseDir + newFp - res.writeHead(302, { - Location: newFp, - }) - console.log(chalk.yellow("[302]") + chalk.grey(` ${argv.baseDir}${req.url} -> ${newFp}`)) - res.end() - } - - let fp = req.url?.split("?")[0] ?? "/" - - // handle redirects - if (fp.endsWith("/")) { - // /trailing/ - // does /trailing/index.html exist? if so, serve it - const indexFp = path.posix.join(fp, "index.html") - if (fs.existsSync(path.posix.join(argv.output, indexFp))) { - req.url = fp - return serve() - } - - // does /trailing.html exist? if so, redirect to /trailing - let base = fp.slice(0, -1) - if (path.extname(base) === "") { - base += ".html" - } - if (fs.existsSync(path.posix.join(argv.output, base))) { - return redirect(fp.slice(0, -1)) - } - } else { - // /regular - // does /regular.html exist? if so, serve it - let base = fp - if (path.extname(base) === "") { - base += ".html" - } - if (fs.existsSync(path.posix.join(argv.output, base))) { - req.url = fp - return serve() - } - - // does /regular/index.html exist? if so, redirect to /regular/ - let indexFp = path.posix.join(fp, "index.html") - if (fs.existsSync(path.posix.join(argv.output, indexFp))) { - return redirect(fp + "/") - } - } - - return serve() - }) - server.listen(argv.port) - const wss = new WebSocketServer({ port: argv.wsPort }) - wss.on("connection", (ws) => connections.push(ws)) - console.log( - chalk.cyan( - `Started a Quartz server listening at http://localhost:${argv.port}${argv.baseDir}`, - ), - ) - console.log("hint: exit with ctrl+c") - chokidar - .watch(["**/*.ts", "**/*.tsx", "**/*.scss", "package.json"], { - ignoreInitial: true, - }) - .on("all", async () => { - build(clientRefresh) - }) - } else { - await build(() => {}) - ctx.dispose() - } -} - -/** - * Handles `npx quartz update` - * @param {*} argv arguments for `update` - */ -export async function handleUpdate(argv) { - const contentFolder = path.join(cwd, argv.directory) - console.log(chalk.bgGreen.black(`\n Quartz v${version} \n`)) - console.log("Backing up your content") - execSync( - `git remote show upstream || git remote add upstream https://github.com/jackyzha0/quartz.git`, - ) - await stashContentFolder(contentFolder) - console.log( - "Pulling updates... you may need to resolve some `git` conflicts if you've made changes to components or plugins.", - ) - - try { - gitPull(UPSTREAM_NAME, QUARTZ_SOURCE_BRANCH) - } catch { - console.log(chalk.red("An error occurred above while pulling updates.")) - await popContentFolder(contentFolder) - return - } - - await popContentFolder(contentFolder) - console.log("Ensuring dependencies are up to date") - const res = spawnSync("npm", ["i"], { stdio: "inherit" }) - if (res.status === 0) { - console.log(chalk.green("Done!")) - } else { - console.log(chalk.red("An error occurred above while installing dependencies.")) - } -} - -/** - * Handles `npx quartz restore` - * @param {*} argv arguments for `restore` - */ -export async function handleRestore(argv) { - const contentFolder = path.join(cwd, argv.directory) - await popContentFolder(contentFolder) -} - -/** - * Handles `npx quartz sync` - * @param {*} argv arguments for `sync` - */ -export async function handleSync(argv) { - const contentFolder = path.join(cwd, argv.directory) - console.log(chalk.bgGreen.black(`\n Quartz v${version} \n`)) - console.log("Backing up your content") - - if (argv.commit) { - const contentStat = await fs.promises.lstat(contentFolder) - if (contentStat.isSymbolicLink()) { - const linkTarg = await fs.promises.readlink(contentFolder) - console.log(chalk.yellow("Detected symlink, trying to dereference before committing")) - - // stash symlink file - await stashContentFolder(contentFolder) - - // follow symlink and copy content - await fs.promises.cp(linkTarg, contentFolder, { - recursive: true, - preserveTimestamps: true, - }) - } - - const currentTimestamp = new Date().toLocaleString("en-US", { - dateStyle: "medium", - timeStyle: "short", - }) - const commitMessage = argv.message ?? `Quartz sync: ${currentTimestamp}` - spawnSync("git", ["add", "."], { stdio: "inherit" }) - spawnSync("git", ["commit", "-m", commitMessage], { stdio: "inherit" }) - - if (contentStat.isSymbolicLink()) { - // put symlink back - await popContentFolder(contentFolder) - } - } - - await stashContentFolder(contentFolder) - - if (argv.pull) { - console.log( - "Pulling updates from your repository. You may need to resolve some `git` conflicts if you've made changes to components or plugins.", - ) - try { - gitPull(ORIGIN_NAME, QUARTZ_SOURCE_BRANCH) - } catch { - console.log(chalk.red("An error occurred above while pulling updates.")) - await popContentFolder(contentFolder) - return - } - } - - await popContentFolder(contentFolder) - if (argv.push) { - console.log("Pushing your changes") - const res = spawnSync("git", ["push", "-uf", ORIGIN_NAME, QUARTZ_SOURCE_BRANCH], { - stdio: "inherit", - }) - if (res.status !== 0) { - console.log(chalk.red(`An error occurred above while pushing to remote ${ORIGIN_NAME}.`)) - return - } - } - - console.log(chalk.green("Done!")) -} diff --git a/quartz/cli/helpers.js b/quartz/cli/helpers.js deleted file mode 100644 index 702a1b71..00000000 --- a/quartz/cli/helpers.js +++ /dev/null @@ -1,54 +0,0 @@ -import { isCancel, outro } from "@clack/prompts" -import chalk from "chalk" -import { contentCacheFolder } from "./constants.js" -import { spawnSync } from "child_process" -import fs from "fs" - -export function escapePath(fp) { - return fp - .replace(/\\ /g, " ") // unescape spaces - .replace(/^".*"$/, "$1") - .replace(/^'.*"$/, "$1") - .trim() -} - -export function exitIfCancel(val) { - if (isCancel(val)) { - outro(chalk.red("Exiting")) - process.exit(0) - } else { - return val - } -} - -export async function stashContentFolder(contentFolder) { - await fs.promises.rm(contentCacheFolder, { force: true, recursive: true }) - await fs.promises.cp(contentFolder, contentCacheFolder, { - force: true, - recursive: true, - verbatimSymlinks: true, - preserveTimestamps: true, - }) - await fs.promises.rm(contentFolder, { force: true, recursive: true }) -} - -export function gitPull(origin, branch) { - const flags = ["--no-rebase", "--autostash", "-s", "recursive", "-X", "ours", "--no-edit"] - const out = spawnSync("git", ["pull", ...flags, origin, branch], { stdio: "inherit" }) - if (out.stderr) { - throw new Error(chalk.red(`Error while pulling updates: ${out.stderr}`)) - } else if (out.status !== 0) { - throw new Error(chalk.red("Error while pulling updates")) - } -} - -export async function popContentFolder(contentFolder) { - await fs.promises.rm(contentFolder, { force: true, recursive: true }) - await fs.promises.cp(contentCacheFolder, contentFolder, { - force: true, - recursive: true, - verbatimSymlinks: true, - preserveTimestamps: true, - }) - await fs.promises.rm(contentCacheFolder, { force: true, recursive: true }) -}