Son CV dans un terminal web en Javascript!
https://terminal-cv.gregandev.fr
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
171 KiB
1 lines
171 KiB
{"version":3,"file":"index.cjs","sources":["../external.js","../util/when.js","../write.js","../level.js","../caching.js","../util/RangeIterable.js","../keys.js","../read.js","../open.js","../node-index.js"],"sourcesContent":["export let Env, Compression, Cursor, getAddress, clearKeptObjects, setGlobalBuffer,\r\n\trequire, arch, fs, os, onExit, tmpdir, lmdbError, path, EventEmitter, orderedBinary, MsgpackrEncoder, WeakLRUCache, isWorkerThread;\r\nexport function setNativeFunctions(externals) {\r\n\tEnv = externals.Env;\r\n\tCompression = externals.Compression;\r\n\tgetAddress = externals.getAddress;\r\n\tclearKeptObjects = externals.clearKeptObjects;\r\n\tsetGlobalBuffer = externals.setGlobalBuffer;\r\n\tCursor = externals.Cursor;\r\n\tlmdbError = externals.lmdbError;\r\n\tif (externals.tmpdir)\r\n tmpdir = externals.tmpdir\r\n}\r\nexport function setExternals(externals) {\r\n\trequire = externals.require;\r\n\tarch = externals.arch;\r\n\tfs = externals.fs;\r\n\tpath = externals.path;\r\n\tEventEmitter = externals.EventEmitter;\r\n\torderedBinary = externals.orderedBinary;\r\n\tMsgpackrEncoder = externals.MsgpackrEncoder;\r\n\tWeakLRUCache = externals.WeakLRUCache;\r\n\ttmpdir = externals.tmpdir;\r\n os = externals.os;\r\n\tonExit = externals.onExit;\r\n\tisWorkerThread = externals.isWorkerThread;\r\n}\r\n","export function when(promise, callback, errback) {\r\n if (promise && promise.then) {\r\n return errback ?\r\n promise.then(callback, errback) :\r\n promise.then(callback);\r\n }\r\n return callback(promise);\r\n}\r\n","import { getAddress, onExit } from './external.js';\r\nimport { when } from './util/when.js';\r\nvar backpressureArray;\r\n\r\nconst WAITING_OPERATION = 0x2000000;\r\nconst BACKPRESSURE_THRESHOLD = 100000;\r\nconst TXN_DELIMITER = 0x8000000;\r\nconst TXN_COMMITTED = 0x10000000;\r\nconst TXN_FLUSHED = 0x20000000;\r\nconst TXN_FAILED = 0x40000000;\r\nexport const FAILED_CONDITION = 0x4000000;\r\nconst REUSE_BUFFER_MODE = 512;\r\nconst RESET_BUFFER_MODE = 1024;\r\n\r\nconst SYNC_PROMISE_SUCCESS = Promise.resolve(true);\r\nconst SYNC_PROMISE_FAIL = Promise.resolve(false);\r\nSYNC_PROMISE_SUCCESS.isSync = true;\r\nSYNC_PROMISE_FAIL.isSync = true;\r\nconst PROMISE_SUCCESS = Promise.resolve(true);\r\nexport const ABORT = {};\r\nexport const IF_EXISTS = 3.542694326329068e-103;\r\nconst CALLBACK_THREW = {};\r\nconst LocalSharedArrayBuffer = typeof Deno != 'undefined' ? ArrayBuffer : SharedArrayBuffer; // Deno can't handle SharedArrayBuffer as an FFI argument due to https://github.com/denoland/deno/issues/12678\r\nconst ByteArray = typeof Buffer != 'undefined' ? Buffer.from : Uint8Array;\r\nconst queueTask = typeof setImmediate != 'undefined' ? setImmediate : setTimeout; // TODO: Or queueMicrotask?\r\n//let debugLog = []\r\nconst WRITE_BUFFER_SIZE = 0x10000;\r\nvar log = [];\r\nexport function addWriteMethods(LMDBStore, { env, fixedBuffer, resetReadTxn, useWritemap, maxKeySize,\r\n\teventTurnBatching, txnStartThreshold, batchStartThreshold, overlappingSync, commitDelay, separateFlushed, maxFlushDelay }) {\r\n\t// stands for write instructions\r\n\tvar dynamicBytes;\r\n\tfunction allocateInstructionBuffer() {\r\n\t\t// Must use a shared buffer on older node in order to use Atomics, and it is also more correct since we are \r\n\t\t// indeed accessing and modifying it from another thread (in C). However, Deno can't handle it for\r\n\t\t// FFI so aliased above\r\n\t\tlet buffer = new LocalSharedArrayBuffer(WRITE_BUFFER_SIZE);\r\n\t\tdynamicBytes = new ByteArray(buffer);\r\n\t\tlet uint32 = dynamicBytes.uint32 = new Uint32Array(buffer, 0, WRITE_BUFFER_SIZE >> 2);\r\n\t\tuint32[0] = 0;\r\n\t\tdynamicBytes.float64 = new Float64Array(buffer, 0, WRITE_BUFFER_SIZE >> 3);\r\n\t\tbuffer.address = getAddress(dynamicBytes);\r\n\t\tuint32.address = buffer.address + uint32.byteOffset;\r\n\t\tdynamicBytes.position = 0;\r\n\t\treturn dynamicBytes;\r\n\t}\r\n\tvar newBufferThreshold = (WRITE_BUFFER_SIZE - maxKeySize - 64) >> 3; // need to reserve more room if we do inline values\r\n\tvar outstandingWriteCount = 0;\r\n\tvar startAddress = 0;\r\n\tvar writeTxn = null;\r\n\tvar committed;\r\n\tvar abortedNonChildTransactionWarn;\r\n\tvar nextTxnCallbacks = [];\r\n\tvar commitPromise, flushPromise, flushResolvers = [];\r\n\tcommitDelay = commitDelay || 0;\r\n\teventTurnBatching = eventTurnBatching === false ? false : true;\r\n\tvar enqueuedCommit;\r\n\tvar afterCommitCallbacks = [];\r\n\tvar beforeCommitCallbacks = [];\r\n\tvar enqueuedEventTurnBatch;\r\n\tvar batchDepth = 0;\r\n\tvar lastWritePromise;\r\n\tvar writeBatchStart, outstandingBatchCount;\r\n\ttxnStartThreshold = txnStartThreshold || 5;\r\n\tbatchStartThreshold = batchStartThreshold || 1000;\r\n\tmaxFlushDelay = maxFlushDelay || 250;\r\n\r\n\tallocateInstructionBuffer();\r\n\tdynamicBytes.uint32[0] = TXN_DELIMITER | TXN_COMMITTED | TXN_FLUSHED;\r\n\tvar txnResolution, lastQueuedResolution, nextResolution = { uint32: dynamicBytes.uint32, flagPosition: 0, };\r\n\tvar uncommittedResolution = { next: nextResolution };\r\n\tvar unwrittenResolution = nextResolution;\r\n\tlet needToRegisterOnExit = overlappingSync;\r\n\tfunction writeInstructions(flags, store, key, value, version, ifVersion) {\r\n\t\tif (needToRegisterOnExit) {\r\n\t\t\tneedToRegisterOnExit = false;\r\n\t\t\tif (onExit) {\r\n\t\t\t\tonExit(() => {\r\n\t\t\t\t\tif (env.sync) // if we have already closed the env, this will be null\r\n\t\t\t\t\t\tenv.sync();\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t}\r\n\t\tlet writeStatus;\r\n\t\tlet targetBytes, position, encoder;\r\n\t\tlet valueBuffer, valueSize, valueBufferStart;\r\n\t\tif (flags & 2) {\r\n\t\t\t// encode first in case we have to write a shared structure\r\n\t\t\tencoder = store.encoder;\r\n\t\t\tif (value && value['\\x10binary-data\\x02'])\r\n\t\t\t\tvalueBuffer = value['\\x10binary-data\\x02'];\r\n\t\t\telse if (encoder) {\r\n\t\t\t\tif (encoder.copyBuffers) // use this as indicator for support buffer reuse for now\r\n\t\t\t\t\tvalueBuffer = encoder.encode(value, REUSE_BUFFER_MODE | (writeTxn ? RESET_BUFFER_MODE : 0)); // in addition, if we are writing sync, after using, we can immediately reset the encoder's position to reuse that space, which can improve performance\r\n\t\t\t\telse { // various other encoders, including JSON.stringify, that might serialize to a string\r\n\t\t\t\t\tvalueBuffer = encoder.encode(value);\r\n\t\t\t\t\tif (typeof valueBuffer == 'string')\r\n\t\t\t\t\t\tvalueBuffer = Buffer.from(valueBuffer); // TODO: Would be nice to write strings inline in the instructions\r\n\t\t\t\t}\r\n\t\t\t} else if (typeof value == 'string') {\r\n\t\t\t\tvalueBuffer = Buffer.from(value); // TODO: Would be nice to write strings inline in the instructions\r\n\t\t\t} else if (value instanceof Uint8Array)\r\n\t\t\t\tvalueBuffer = value;\r\n\t\t\telse\r\n\t\t\t\tthrow new Error('Invalid value to put in database ' + value + ' (' + (typeof value) +'), consider using encoder');\r\n\t\t\tvalueBufferStart = valueBuffer.start;\r\n\t\t\tif (valueBufferStart > -1) // if we have buffers with start/end position\r\n\t\t\t\tvalueSize = valueBuffer.end - valueBufferStart; // size\r\n\t\t\telse\r\n\t\t\t\tvalueSize = valueBuffer.length;\r\n\t\t\tif (store.dupSort && valueSize > maxKeySize)\r\n\t\t\t\tthrow new Error('The value is larger than the maximum size (' + maxKeySize + ') for a value in a dupSort database');\r\n\t\t} else\r\n\t\t\tvalueSize = 0;\r\n\t\tif (writeTxn) {\r\n\t\t\ttargetBytes = fixedBuffer;\r\n\t\t\tposition = 0;\r\n\t\t} else {\r\n\t\t\tif (eventTurnBatching && !enqueuedEventTurnBatch && batchDepth == 0) {\r\n\t\t\t\tenqueuedEventTurnBatch = queueTask(() => {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tfor (let i = 0, l = beforeCommitCallbacks.length; i < l; i++) {\r\n\t\t\t\t\t\t\tbeforeCommitCallbacks[i]();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch(error) {\r\n\t\t\t\t\t\tconsole.error(error);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tenqueuedEventTurnBatch = null;\r\n\t\t\t\t\tbatchDepth--;\r\n\t\t\t\t\tfinishBatch();\r\n\t\t\t\t\tif (writeBatchStart)\r\n\t\t\t\t\t\twriteBatchStart(); // TODO: When we support delay start of batch, optionally don't delay this\r\n\t\t\t\t});\r\n\t\t\t\tcommitPromise = null; // reset the commit promise, can't know if it is really a new transaction prior to finishWrite being called\r\n\t\t\t\tflushPromise = null;\r\n\t\t\t\twriteBatchStart = writeInstructions(1, store);\r\n\t\t\t\toutstandingBatchCount = 0;\r\n\t\t\t\tbatchDepth++;\r\n\t\t\t}\r\n\t\t\ttargetBytes = dynamicBytes;\r\n\t\t\tposition = targetBytes.position;\r\n\t\t}\r\n\t\tlet uint32 = targetBytes.uint32, float64 = targetBytes.float64;\r\n\t\tlet flagPosition = position << 1; // flagPosition is the 32-bit word starting position\r\n\r\n\t\t// don't increment position until we are sure we don't have any key writing errors\r\n\t\tif (!uint32) {\r\n\t\t\tthrow new Error('Internal buffers have been corrupted');\r\n\t\t}\r\n\t\tuint32[flagPosition + 1] = store.db.dbi;\r\n\t\tif (flags & 4) {\r\n\t\t\tlet keyStartPosition = (position << 3) + 12;\r\n\t\t\tlet endPosition;\r\n\t\t\ttry {\r\n\t\t\t\tendPosition = store.writeKey(key, targetBytes, keyStartPosition);\r\n\t\t\t\tif (!(keyStartPosition < endPosition) && (flags & 0xf) != 12)\r\n\t\t\t\t\tthrow new Error('Invalid key or zero length key is not allowed in LMDB')\r\n\t\t\t} catch(error) {\r\n\t\t\t\ttargetBytes.fill(0, keyStartPosition);\r\n\t\t\t\tif (error.name == 'RangeError')\r\n\t\t\t\t\terror = new Error('Key size is larger than the maximum key size (' + maxKeySize + ')');\r\n\t\t\t\tthrow error;\r\n\t\t\t}\r\n\t\t\tlet keySize = endPosition - keyStartPosition;\r\n\t\t\tif (keySize > maxKeySize) {\r\n\t\t\t\ttargetBytes.fill(0, keyStartPosition); // restore zeros\r\n\t\t\t\tthrow new Error('Key size is larger than the maximum key size (' + maxKeySize + ')');\r\n\t\t\t}\r\n\t\t\tuint32[flagPosition + 2] = keySize;\r\n\t\t\tposition = (endPosition + 16) >> 3;\r\n\t\t\tif (flags & 2) {\r\n\t\t\t\tlet mustCompress;\r\n\t\t\t\tif (valueBufferStart > -1) { // if we have buffers with start/end position\r\n\t\t\t\t\t// record pointer to value buffer\r\n\t\t\t\t\tfloat64[position] = (valueBuffer.address ||\r\n\t\t\t\t\t\t(valueBuffer.address = getAddress(valueBuffer))) + valueBufferStart;\r\n\t\t\t\t\tmustCompress = valueBuffer[valueBufferStart] >= 250; // this is the compression indicator, so we must compress\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlet valueArrayBuffer = valueBuffer.buffer;\r\n\t\t\t\t\t// record pointer to value buffer\r\n\t\t\t\t\tfloat64[position] = (valueArrayBuffer.address ||\r\n\t\t\t\t\t\t(valueArrayBuffer.address = (getAddress(valueBuffer) - valueBuffer.byteOffset)))\r\n\t\t\t\t\t\t\t+ valueBuffer.byteOffset;\r\n\t\t\t\t\tmustCompress = valueBuffer[0] >= 250; // this is the compression indicator, so we must compress\r\n\t\t\t\t}\r\n\t\t\t\tuint32[(position++ << 1) - 1] = valueSize;\r\n\t\t\t\tif (store.compression && (valueSize >= store.compression.threshold || mustCompress)) {\r\n\t\t\t\t\tflags |= 0x100000;\r\n\t\t\t\t\tfloat64[position] = store.compression.address;\r\n\t\t\t\t\tif (!writeTxn)\r\n\t\t\t\t\t\tenv.compress(uint32.address + (position << 3), () => {\r\n\t\t\t\t\t\t\t// this is never actually called in NodeJS, just use to pin the buffer in memory until it is finished\r\n\t\t\t\t\t\t\t// and is a no-op in Deno\r\n\t\t\t\t\t\t\tif (!float64)\r\n\t\t\t\t\t\t\t\tthrow new Error('No float64 available');\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\tposition++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (ifVersion !== undefined) {\r\n\t\t\t\tif (ifVersion === null)\r\n\t\t\t\t\tflags |= 0x10; // if it does not exist, MDB_NOOVERWRITE\r\n\t\t\t\telse {\r\n\t\t\t\t\tflags |= 0x100;\r\n\t\t\t\t\tfloat64[position++] = ifVersion;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (version !== undefined) {\r\n\t\t\t\tflags |= 0x200;\r\n\t\t\t\tfloat64[position++] = version || 0;\r\n\t\t\t}\r\n\t\t} else\r\n\t\t\tposition++;\r\n\t\ttargetBytes.position = position;\r\n\t\tif (writeTxn) {\r\n\t\t\tuint32[0] = flags;\r\n\t\t\tenv.write(uint32.address);\r\n\t\t\treturn () => (uint32[0] & FAILED_CONDITION) ? SYNC_PROMISE_FAIL : SYNC_PROMISE_SUCCESS;\r\n\t\t}\r\n\t\t// if we ever use buffers that haven't been zero'ed, need to clear out the next slot like this:\r\n\t\t// uint32[position << 1] = 0 // clear out the next slot\r\n\t\tlet nextUint32;\r\n\t\tif (position > newBufferThreshold) {\r\n\t\t\t// make new buffer and make pointer to it\r\n\t\t\tlet lastPosition = position;\r\n\t\t\ttargetBytes = allocateInstructionBuffer();\r\n\t\t\tposition = targetBytes.position;\r\n\t\t\tfloat64[lastPosition + 1] = targetBytes.uint32.address + position;\r\n\t\t\tuint32[lastPosition << 1] = 3; // pointer instruction\r\n\t\t\tnextUint32 = targetBytes.uint32;\r\n\t\t} else\r\n\t\t\tnextUint32 = uint32;\r\n\t\tlet resolution = nextResolution;\r\n\t\t// create the placeholder next resolution\r\n\t\tnextResolution = resolution.next = store.cache ?\r\n\t\t{\r\n\t\t\tuint32: nextUint32,\r\n\t\t\tflagPosition: position << 1,\r\n\t\t\tflag: 0, // TODO: eventually eliminate this, as we can probably signify success by zeroing the flagPosition\r\n\t\t\tvalueBuffer: fixedBuffer, // these are all just placeholders so that we have the right hidden class initially allocated\r\n\t\t\tnext: null,\r\n\t\t\tkey,\r\n\t\t\tstore,\r\n\t\t\tvalueSize,\r\n\t\t} :\r\n\t\t{\r\n\t\t\tuint32: nextUint32,\r\n\t\t\tflagPosition: position << 1,\r\n\t\t\tflag: 0, // TODO: eventually eliminate this, as we can probably signify success by zeroing the flagPosition\r\n\t\t\tvalueBuffer: fixedBuffer, // these are all just placeholders so that we have the right hidden class initially allocated\r\n\t\t\tnext: null,\r\n\t\t};\r\n\t\tlet writtenBatchDepth = batchDepth;\r\n\r\n\t\treturn (callback) => {\r\n\t\t\tif (writtenBatchDepth) {\r\n\t\t\t\t// if we are in a batch, the transaction can't close, so we do the faster,\r\n\t\t\t\t// but non-deterministic updates, knowing that the write thread can\r\n\t\t\t\t// just poll for the status change if we miss a status update\r\n\t\t\t\twriteStatus = uint32[flagPosition];\r\n\t\t\t\tuint32[flagPosition] = flags;\r\n\t\t\t\t//writeStatus = Atomics.or(uint32, flagPosition, flags)\r\n\t\t\t\tif (writeBatchStart && !writeStatus) {\r\n\t\t\t\t\toutstandingBatchCount += 1 + (valueSize >> 12);\r\n\t\t\t\t\tif (outstandingBatchCount > batchStartThreshold) {\r\n\t\t\t\t\t\toutstandingBatchCount = 0;\r\n\t\t\t\t\t\twriteBatchStart();\r\n\t\t\t\t\t\twriteBatchStart = null;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else // otherwise the transaction could end at any time and we need to know the\r\n\t\t\t\t// deterministically if it is ending, so we can reset the commit promise\r\n\t\t\t\t// so we use the slower atomic operation\r\n\t\t\t\twriteStatus = Atomics.or(uint32, flagPosition, flags);\r\n\t\r\n\t\t\toutstandingWriteCount++;\r\n\t\t\tif (writeStatus & TXN_DELIMITER) {\r\n\t\t\t\tcommitPromise = null; // TODO: Don't reset these if this comes from the batch start operation on an event turn batch\r\n\t\t\t\tflushPromise = null;\r\n\t\t\t\tqueueCommitResolution(resolution);\r\n\t\t\t\tif (!startAddress) {\r\n\t\t\t\t\tstartAddress = uint32.address + (flagPosition << 2);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (!flushPromise && overlappingSync)\r\n\t\t\t\tflushPromise = new Promise(resolve => flushResolvers.push(resolve));\r\n\t\t\tif (writeStatus & WAITING_OPERATION) { // write thread is waiting\r\n\t\t\t\tenv.write(0);\r\n\t\t\t}\r\n\t\t\tif (outstandingWriteCount > BACKPRESSURE_THRESHOLD && !writeBatchStart) {\r\n\t\t\t\tif (!backpressureArray)\r\n\t\t\t\t\tbackpressureArray = new Int32Array(new SharedArrayBuffer(4), 0, 1);\r\n\t\t\t\tAtomics.wait(backpressureArray, 0, 0, Math.round(outstandingWriteCount / BACKPRESSURE_THRESHOLD));\r\n\t\t\t}\r\n\t\t\tif (startAddress) {\r\n\t\t\t\tif (eventTurnBatching)\r\n\t\t\t\t\tstartWriting(); // start writing immediately because this has already been batched/queued\r\n\t\t\t\telse if (!enqueuedCommit && txnStartThreshold) {\r\n\t\t\t\t\tenqueuedCommit = (commitDelay == 0 && typeof setImmediate != 'undefined') ? setImmediate(() => startWriting()) : setTimeout(() => startWriting(), commitDelay);\r\n\t\t\t\t} else if (outstandingWriteCount > txnStartThreshold)\r\n\t\t\t\t\tstartWriting();\r\n\t\t\t}\r\n\r\n\t\t\tif ((outstandingWriteCount & 7) === 0)\r\n\t\t\t\tresolveWrites();\r\n\t\t\t\r\n\t\t\tif (store.cache) {\r\n\t\t\t\tresolution.key = key;\r\n\t\t\t\tresolution.store = store;\r\n\t\t\t\tresolution.valueSize = valueBuffer ? valueBuffer.length : 0;\r\n\t\t\t}\r\n\t\t\tresolution.valueBuffer = valueBuffer;\r\n\t\t\tlastQueuedResolution = resolution;\r\n\r\n\t\t\tif (callback) {\r\n\t\t\t\tif (callback === IF_EXISTS)\r\n\t\t\t\t\tifVersion = IF_EXISTS;\r\n\t\t\t\telse {\r\n\t\t\t\t\tresolution.reject = callback;\r\n\t\t\t\t\tresolution.resolve = (value) => callback(null, value);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (ifVersion === undefined) {\r\n\t\t\t\tif (writtenBatchDepth > 1)\r\n\t\t\t\t\treturn PROMISE_SUCCESS; // or return undefined?\r\n\t\t\t\tif (!commitPromise) {\r\n\t\t\t\t\tcommitPromise = new Promise((resolve, reject) => {\r\n\t\t\t\t\t\tresolution.resolve = resolve;\r\n\t\t\t\t\t\tresolve.unconditional = true;\r\n\t\t\t\t\t\tresolution.reject = reject;\r\n\t\t\t\t\t});\r\n\t\t\t\t\tif (separateFlushed)\r\n\t\t\t\t\t\tcommitPromise.flushed = overlappingSync ? flushPromise : commitPromise;\r\n\t\t\t\t}\r\n\t\t\t\treturn commitPromise;\r\n\t\t\t}\r\n\t\t\tlastWritePromise = new Promise((resolve, reject) => {\r\n\t\t\t\tresolution.resolve = resolve;\r\n\t\t\t\tresolution.reject = reject;\r\n\t\t\t});\r\n\t\t\tif (separateFlushed)\r\n\t\t\t\tlastWritePromise.flushed = overlappingSync ? flushPromise : lastWritePromise;\r\n\t\t\treturn lastWritePromise;\r\n\t\t};\r\n\t}\r\n\tlet committedFlushResolvers, lastSync = Promise.resolve()\r\n\tfunction startWriting() {\r\n\t\tif (enqueuedCommit) {\r\n\t\t\tclearImmediate(enqueuedCommit);\r\n\t\t\tenqueuedCommit = null;\r\n\t\t}\r\n\t\tlet resolvers = flushResolvers;\r\n\t\tflushResolvers = [];\r\n\t\tlet start = Date.now();\r\n\t\tenv.startWriting(startAddress, (status) => {\r\n\t\t\tif (dynamicBytes.uint32[dynamicBytes.position << 1] & TXN_DELIMITER)\r\n\t\t\t\tqueueCommitResolution(nextResolution);\r\n\r\n\t\t\tresolveWrites(true);\r\n\t\t\tswitch (status) {\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\tif (resolvers.length > 0) {\r\n\t\t\t\t\t\tif (committedFlushResolvers)\r\n\t\t\t\t\t\t\tcommittedFlushResolvers.push(...resolvers)\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tcommittedFlushResolvers = resolvers\r\n\t\t\t\t\t\t\tscheduleFlush(Math.min(Date.now() - start, maxFlushDelay))\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\tcase 1:\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\texecuteTxnCallbacks();\r\n\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\tconsole.error(status);\r\n\t\t\t\tif (commitRejectPromise) {\r\n\t\t\t\t\tcommitRejectPromise.reject(status);\r\n\t\t\t\t\tcommitRejectPromise = null;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tstartAddress = 0;\r\n\t}\r\n\tfunction scheduleFlush(delay) {\r\n\t\tsetTimeout(() => lastSync.then(() => {\r\n\t\t\tlet resolvers = committedFlushResolvers || []\r\n\t\t\tcommittedFlushResolvers = null\r\n\t\t\tlastSync = new Promise((resolve) => {\r\n\t\t\t\tenv.sync(() => {\r\n\t\t\t\t\tfor (let i = 0; i < resolvers.length; i++)\r\n\t\t\t\t\t\tresolvers[i]();\r\n\t\t\t\t\tresolve();\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t\t}), delay || 0);\r\n\t}\r\n\r\n\tfunction queueCommitResolution(resolution) {\r\n\t\tif (!resolution.isTxn) {\r\n\t\t\tresolution.isTxn = true;\r\n\t\t\tif (txnResolution) {\r\n\t\t\t\ttxnResolution.nextTxn = resolution;\r\n\t\t\t\t//outstandingWriteCount = 0\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\ttxnResolution = resolution;\r\n\t\t}\r\n\t}\r\n\tvar TXN_DONE = TXN_COMMITTED | TXN_FAILED;\r\n\tfunction resolveWrites(async) {\r\n\t\t// clean up finished instructions\r\n\t\tlet instructionStatus;\r\n\t\twhile ((instructionStatus = unwrittenResolution.uint32[unwrittenResolution.flagPosition])\r\n\t\t\t\t& 0x1000000) {\r\n\t\t\tif (unwrittenResolution.callbacks) {\r\n\t\t\t\tnextTxnCallbacks.push(unwrittenResolution.callbacks);\r\n\t\t\t\tunwrittenResolution.callbacks = null;\r\n\t\t\t}\r\n\t\t\tif (!unwrittenResolution.isTxn)\r\n\t\t\t\tunwrittenResolution.uint32 = null;\r\n\t\t\tunwrittenResolution.valueBuffer = null;\r\n\t\t\tunwrittenResolution.flag = instructionStatus;\r\n\t\t\toutstandingWriteCount--;\r\n\t\t\tunwrittenResolution = unwrittenResolution.next;\r\n\t\t}\r\n\t\twhile (txnResolution &&\r\n\t\t\t(instructionStatus = txnResolution.uint32[txnResolution.flagPosition] & TXN_DONE)) {\r\n\t\t\tif (instructionStatus & TXN_FAILED)\r\n\t\t\t\trejectCommit();\r\n\t\t\telse\r\n\t\t\t\tresolveCommit(async);\r\n\t\t}\r\n\t}\r\n\r\n\tfunction resolveCommit(async) {\r\n\t\tafterCommit();\r\n\t\tif (async)\r\n\t\t\tresetReadTxn();\r\n\t\telse\r\n\t\t\tqueueMicrotask(resetReadTxn); // TODO: only do this if there are actually committed writes?\r\n\t\tdo {\r\n\t\t\tif (uncommittedResolution.resolve) {\r\n\t\t\t\tlet resolve = uncommittedResolution.resolve;\r\n\t\t\t\tif (uncommittedResolution.flag & FAILED_CONDITION && !resolve.unconditional)\r\n\t\t\t\t\tresolve(false);\r\n\t\t\t\telse\r\n\t\t\t\t\tresolve(true);\r\n\t\t\t}\r\n\t\t} while((uncommittedResolution = uncommittedResolution.next) && uncommittedResolution != txnResolution)\r\n\t\ttxnResolution = txnResolution.nextTxn;\r\n\t}\r\n\tvar commitRejectPromise;\r\n\tfunction rejectCommit() {\r\n\t\tafterCommit();\r\n\t\tif (!commitRejectPromise) {\r\n\t\t\tlet rejectFunction;\r\n\t\t\tcommitRejectPromise = new Promise((resolve, reject) => rejectFunction = reject);\r\n\t\t\tcommitRejectPromise.reject = rejectFunction;\r\n\t\t}\r\n\t\tdo {\r\n\t\t\tif (uncommittedResolution.reject) {\r\n\t\t\t\tlet flag = uncommittedResolution.flag & 0xf;\r\n\t\t\t\tlet error = new Error(\"Commit failed (see commitError for details)\");\r\n\t\t\t\terror.commitError = commitRejectPromise;\r\n\t\t\t\tuncommittedResolution.reject(error);\r\n\t\t\t}\r\n\t\t} while((uncommittedResolution = uncommittedResolution.next) && uncommittedResolution != txnResolution)\r\n\t\ttxnResolution = txnResolution.nextTxn;\r\n\t}\r\n\tfunction atomicStatus(uint32, flagPosition, newStatus) {\r\n\t\tif (batchDepth) {\r\n\t\t\t// if we are in a batch, the transaction can't close, so we do the faster,\r\n\t\t\t// but non-deterministic updates, knowing that the write thread can\r\n\t\t\t// just poll for the status change if we miss a status update\r\n\t\t\tlet writeStatus = uint32[flagPosition];\r\n\t\t\tuint32[flagPosition] = newStatus;\r\n\t\t\treturn writeStatus;\r\n\t\t\t//return Atomics.or(uint32, flagPosition, newStatus)\r\n\t\t} else // otherwise the transaction could end at any time and we need to know the\r\n\t\t\t// deterministically if it is ending, so we can reset the commit promise\r\n\t\t\t// so we use the slower atomic operation\r\n\t\t\treturn Atomics.or(uint32, flagPosition, newStatus);\r\n\t}\r\n\tfunction afterCommit() {\r\n\t\tfor (let i = 0, l = afterCommitCallbacks.length; i < l; i++) {\r\n\t\t\tafterCommitCallbacks[i]({ next: uncommittedResolution, last: unwrittenResolution});\r\n\t\t}\r\n\t}\r\n\tasync function executeTxnCallbacks() {\r\n\t\tenv.writeTxn = writeTxn = { write: true };\r\n\t\tlet promises;\r\n\t\tlet txnCallbacks;\r\n\t\tfor (let i = 0, l = nextTxnCallbacks.length; i < l; i++) {\r\n\t\t\ttxnCallbacks = nextTxnCallbacks[i];\r\n\t\t\tfor (let i = 0, l = txnCallbacks.length; i < l; i++) {\r\n\t\t\t\tlet userTxnCallback = txnCallbacks[i];\r\n\t\t\t\tlet asChild = userTxnCallback.asChild;\r\n\t\t\t\tif (asChild) {\r\n\t\t\t\t\tif (promises) {\r\n\t\t\t\t\t\t// must complete any outstanding transactions before proceeding\r\n\t\t\t\t\t\tawait Promise.all(promises);\r\n\t\t\t\t\t\tpromises = null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tenv.beginTxn(1); // abortable\r\n\t\t\t\t\tlet parentTxn = writeTxn;\r\n\t\t\t\t\tenv.writeTxn = writeTxn = { write: true };\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tlet result = userTxnCallback.callback();\r\n\t\t\t\t\t\tif (result && result.then) {\r\n\t\t\t\t\t\t\tawait result;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (result === ABORT)\r\n\t\t\t\t\t\t\tenv.abortTxn();\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tenv.commitTxn();\r\n\t\t\t\t\t\tclearWriteTxn(parentTxn);\r\n\t\t\t\t\t\ttxnCallbacks[i] = result;\r\n\t\t\t\t\t} catch(error) {\r\n\t\t\t\t\t\tclearWriteTxn(parentTxn);\r\n\t\t\t\t\t\tenv.abortTxn();\r\n\t\t\t\t\t\ttxnError(error, i);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tlet result = userTxnCallback();\r\n\t\t\t\t\t\ttxnCallbacks[i] = result;\r\n\t\t\t\t\t\tif (result && result.then) {\r\n\t\t\t\t\t\t\tif (!promises)\r\n\t\t\t\t\t\t\t\tpromises = [];\r\n\t\t\t\t\t\t\tpromises.push(result.catch(() => {}));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch(error) {\r\n\t\t\t\t\t\ttxnError(error, i);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tnextTxnCallbacks = [];\r\n\t\tif (promises) { // finish any outstanding commit functions\r\n\t\t\tawait Promise.all(promises);\r\n\t\t}\r\n\t\tclearWriteTxn(null);\r\n\t\tfunction txnError(error, i) {\r\n\t\t\t(txnCallbacks.errors || (txnCallbacks.errors = []))[i] = error;\r\n\t\t\ttxnCallbacks[i] = CALLBACK_THREW;\r\n\t\t}\r\n\t}\r\n\tfunction finishBatch() {\r\n\t\tdynamicBytes.uint32[(dynamicBytes.position + 1) << 1] = 0; // clear out the next slot\r\n\t\tlet writeStatus = atomicStatus(dynamicBytes.uint32, (dynamicBytes.position++) << 1, 2); // atomically write the end block\r\n\t\tnextResolution.flagPosition += 2;\r\n\t\tif (writeStatus & WAITING_OPERATION) {\r\n\t\t\tenv.write(0);\r\n\t\t}\r\n\t}\r\n\tfunction clearWriteTxn(parentTxn) {\r\n\t\t// TODO: We might actually want to track cursors in a write txn and manually\r\n\t\t// close them.\r\n\t\tif (writeTxn.cursorCount > 0)\r\n\t\t\twriteTxn.isDone = true;\r\n\t\tenv.writeTxn = writeTxn = parentTxn || null;\r\n\t}\r\n\tObject.assign(LMDBStore.prototype, {\r\n\t\tput(key, value, versionOrOptions, ifVersion) {\r\n\t\t\tlet callback, flags = 15, type = typeof versionOrOptions;\r\n\t\t\tif (type == 'object') {\r\n\t\t\t\tif (versionOrOptions.noOverwrite)\r\n\t\t\t\t\tflags |= 0x10;\r\n\t\t\t\tif (versionOrOptions.noDupData)\r\n\t\t\t\t\tflags |= 0x20;\r\n\t\t\t\tif (versionOrOptions.append)\r\n\t\t\t\t\tflags |= 0x20000;\r\n\t\t\t\tif (versionOrOptions.ifVersion != undefined)\r\n\t\t\t\t\tifVersion = versionsOrOptions.ifVersion;\r\n\t\t\t\tversionOrOptions = versionOrOptions.version;\r\n\t\t\t\tif (typeof ifVersion == 'function')\r\n\t\t\t\t\tcallback = ifVersion;\r\n\t\t\t} else if (type == 'function') {\r\n\t\t\t\tcallback = versionOrOptions;\r\n\t\t\t}\r\n\t\t\treturn writeInstructions(flags, this, key, value, this.useVersions ? versionOrOptions || 0 : undefined, ifVersion)(callback);\r\n\t\t},\r\n\t\tremove(key, ifVersionOrValue, callback) {\r\n\t\t\tlet flags = 13;\r\n\t\t\tlet ifVersion, value;\r\n\t\t\tif (ifVersionOrValue !== undefined) {\r\n\t\t\t\tif (typeof ifVersionOrValue == 'function')\r\n\t\t\t\t\tcallback = ifVersionOrValue;\r\n\t\t\t\telse if (ifVersionOrValue === IF_EXISTS && !callback)\r\n\t\t\t\t\t// we have a handler for IF_EXISTS in the callback handler for remove\r\n\t\t\t\t\tcallback = ifVersionOrValue;\r\n\t\t\t\telse if (this.useVersions)\r\n\t\t\t\t\tifVersion = ifVersionOrValue;\r\n\t\t\t\telse {\r\n\t\t\t\t\tflags = 14;\r\n\t\t\t\t\tvalue = ifVersionOrValue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn writeInstructions(flags, this, key, value, undefined, ifVersion)(callback);\r\n\t\t},\r\n\t\tdel(key, options, callback) {\r\n\t\t\treturn this.remove(key, options, callback);\r\n\t\t},\r\n\t\tifNoExists(key, callback) {\r\n\t\t\treturn this.ifVersion(key, null, callback);\r\n\t\t},\r\n\r\n\t\tifVersion(key, version, callback) {\r\n\t\t\tif (!callback) {\r\n\t\t\t\treturn new Batch((operations, callback) => {\r\n\t\t\t\t\tlet promise = this.ifVersion(key, version, operations);\r\n\t\t\t\t\tif (callback)\r\n\t\t\t\t\t\tpromise.then(callback);\r\n\t\t\t\t\treturn promise;\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t\tif (writeTxn) {\r\n\t\t\t\tif (version === undefined || this.doesExist(key, version)) {\r\n\t\t\t\t\tcallback();\r\n\t\t\t\t\treturn SYNC_PROMISE_SUCCESS;\r\n\t\t\t\t}\r\n\t\t\t\treturn SYNC_PROMISE_FAIL;\r\n\t\t\t}\r\n\t\t\tlet finishStartWrite = writeInstructions(key === undefined || version === undefined ? 1 : 4, this, key, undefined, undefined, version);\r\n\t\t\tlet promise;\r\n\t\t\tbatchDepth += 2;\r\n\t\t\tif (batchDepth > 2)\r\n\t\t\t\tpromise = finishStartWrite();\r\n\t\t\telse {\r\n\t\t\t\twriteBatchStart = () => {\r\n\t\t\t\t\tpromise = finishStartWrite();\r\n\t\t\t\t};\r\n\t\t\t\toutstandingBatchCount = 0;\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tif (typeof callback === 'function') {\r\n\t\t\t\t\tcallback();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfor (let i = 0, l = callback.length; i < l; i++) {\r\n\t\t\t\t\t\tlet operation = callback[i];\r\n\t\t\t\t\t\tthis[operation.type](operation.key, operation.value);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} finally {\r\n\t\t\t\tif (!promise) {\r\n\t\t\t\t\tfinishBatch();\r\n\t\t\t\t\tbatchDepth -= 2;\r\n\t\t\t\t\tpromise = finishStartWrite(); // finish write once all the operations have been written (and it hasn't been written prematurely)\r\n\t\t\t\t\twriteBatchStart = null;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tbatchDepth -= 2;\r\n\t\t\t\t\tfinishBatch();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn promise;\r\n\t\t},\r\n\t\tbatch(callbackOrOperations) {\r\n\t\t\treturn this.ifVersion(undefined, undefined, callbackOrOperations);\r\n\t\t},\r\n\t\tdrop(callback) {\r\n\t\t\treturn writeInstructions(1024 + 12, this, undefined, undefined, undefined, undefined)(callback);\r\n\t\t},\r\n\t\tclearAsync(callback) {\r\n\t\t\tif (this.encoder) {\r\n\t\t\t\tif (this.encoder.clearSharedData)\r\n\t\t\t\t\tthis.encoder.clearSharedData()\r\n\t\t\t\telse if (this.encoder.structures)\r\n\t\t\t\t\tthis.encoder.structures = []\r\n\t\t\t}\r\n\t\t\treturn writeInstructions(12, this, undefined, undefined, undefined, undefined)(callback);\r\n\t\t},\r\n\t\t_triggerError() {\r\n\t\t\tfinishBatch();\r\n\t\t},\r\n\r\n\t\tputSync(key, value, versionOrOptions, ifVersion) {\r\n\t\t\tif (writeTxn)\r\n\t\t\t\treturn this.put(key, value, versionOrOptions, ifVersion);\r\n\t\t\telse\r\n\t\t\t\treturn this.transactionSync(() =>\r\n\t\t\t\t\tthis.put(key, value, versionOrOptions, ifVersion) == SYNC_PROMISE_SUCCESS, 2);\r\n\t\t},\r\n\t\tremoveSync(key, ifVersionOrValue) {\r\n\t\t\tif (writeTxn)\r\n\t\t\t\treturn this.remove(key, ifVersionOrValue);\r\n\t\t\telse\r\n\t\t\t\treturn this.transactionSync(() =>\r\n\t\t\t\t\tthis.remove(key, ifVersionOrValue) == SYNC_PROMISE_SUCCESS, 2);\r\n\t\t},\r\n\t\ttransaction(callback) {\r\n\t\t\tif (writeTxn) {\r\n\t\t\t\t// already nested in a transaction, just execute and return\r\n\t\t\t\treturn callback();\r\n\t\t\t}\r\n\t\t\treturn this.transactionAsync(callback);\r\n\t\t},\r\n\t\tchildTransaction(callback) {\r\n\t\t\tif (useWritemap)\r\n\t\t\t\tthrow new Error('Child transactions are not supported in writemap mode');\r\n\t\t\tif (writeTxn) {\r\n\t\t\t\tlet parentTxn = writeTxn;\r\n\t\t\t\tenv.writeTxn = writeTxn = { write: true };\r\n\t\t\t\tenv.beginTxn(1); // abortable\r\n\t\t\t\ttry {\r\n\t\t\t\t\treturn when(callback(), (result) => {\r\n\t\t\t\t\t\tif (result === ABORT)\r\n\t\t\t\t\t\t\tenv.abortTxn();\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tenv.commitTxn();\r\n\t\t\t\t\t\tclearWriteTxn(parentTxn);\r\n\t\t\t\t\t\treturn result;\r\n\t\t\t\t\t}, (error) => {\r\n\t\t\t\t\t\tenv.abortTxn();\r\n\t\t\t\t\t\tclearWriteTxn(parentTxn);\r\n\t\t\t\t\t\tthrow error;\r\n\t\t\t\t\t});\r\n\t\t\t\t} catch(error) {\r\n\t\t\t\t\tenv.abortTxn();\r\n\t\t\t\t\tclearWriteTxn(parentTxn);\r\n\t\t\t\t\tthrow error;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn this.transactionAsync(callback, true);\r\n\t\t},\r\n\t\ttransactionAsync(callback, asChild) {\r\n\t\t\tlet txnIndex;\r\n\t\t\tlet txnCallbacks;\r\n\t\t\tif (!nextResolution.callbacks) {\r\n\t\t\t\ttxnCallbacks = [asChild ? { callback, asChild } : callback];\r\n\t\t\t\tnextResolution.callbacks = txnCallbacks;\r\n\t\t\t\ttxnCallbacks.results = writeInstructions(8 | (this.strictAsyncOrder ? 0x100000 : 0), this)();\r\n\t\t\t\ttxnIndex = 0;\r\n\t\t\t} else {\r\n\t\t\t\ttxnCallbacks = lastQueuedResolution.callbacks;\r\n\t\t\t\ttxnIndex = txnCallbacks.push(asChild ? { callback, asChild } : callback) - 1;\r\n\t\t\t}\r\n\t\t\treturn txnCallbacks.results.then((results) => {\r\n\t\t\t\tlet result = txnCallbacks[txnIndex];\r\n\t\t\t\tif (result === CALLBACK_THREW)\r\n\t\t\t\t\tthrow txnCallbacks.errors[txnIndex];\r\n\t\t\t\treturn result;\r\n\t\t\t});\r\n\t\t},\r\n\t\ttransactionSync(callback, flags) {\r\n\t\t\tif (writeTxn) {\r\n\t\t\t\tif (!useWritemap && !this.isCaching) // can't use child transactions in write maps or caching stores\r\n\t\t\t\t\t// already nested in a transaction, execute as child transaction (if possible) and return\r\n\t\t\t\t\treturn this.childTransaction(callback);\r\n\t\t\t\tlet result = callback(); // else just run in current transaction\r\n\t\t\t\tif (result == ABORT && !abortedNonChildTransactionWarn) {\r\n\t\t\t\t\tconsole.warn('Can not abort a transaction inside another transaction with ' + (this.cache ? 'caching enabled' : 'useWritemap enabled'));\r\n\t\t\t\t\tabortedNonChildTransactionWarn = true;\r\n\t\t\t\t}\r\n\t\t\t\treturn result;\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tthis.transactions++;\r\n\t\t\t\tenv.beginTxn(flags == undefined ? 3 : flags);\r\n\t\t\t\twriteTxn = env.writeTxn = { write: true };\r\n\t\t\t\treturn when(callback(), (result) => {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tif (result === ABORT)\r\n\t\t\t\t\t\t\tenv.abortTxn();\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tenv.commitTxn();\r\n\t\t\t\t\t\t\tresetReadTxn();\r\n\t\t\t\t\t\t\tif ((flags & 0x10000) && overlappingSync) // if it is no-sync in overlapping-sync mode, need to schedule flush for it to be marked as persisted\r\n\t\t\t\t\t\t\t\tscheduleFlush()\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\treturn result;\r\n\t\t\t\t\t} finally {\r\n\t\t\t\t\t\tclearWriteTxn(null);\r\n\t\t\t\t\t}\r\n\t\t\t\t}, (error) => {\r\n\t\t\t\t\ttry { env.abortTxn(); } catch(e) {}\r\n\t\t\t\t\tclearWriteTxn(null);\r\n\t\t\t\t\tthrow error;\r\n\t\t\t\t});\r\n\t\t\t} catch(error) {\r\n\t\t\t\ttry { env.abortTxn(); } catch(e) {}\r\n\t\t\t\tclearWriteTxn(null);\r\n\t\t\t\tthrow error;\r\n\t\t\t}\r\n\t\t},\r\n\t\ttransactionSyncStart(callback) {\r\n\t\t\treturn this.transactionSync(callback, 0);\r\n\t\t},\r\n\t\t// make the db a thenable/promise-like for when the last commit is committed\r\n\t\tcommitted: committed = {\r\n\t\t\tthen(onfulfilled, onrejected) {\r\n\t\t\t\tif (commitPromise)\r\n\t\t\t\t\treturn commitPromise.then(onfulfilled, onrejected);\r\n\t\t\t\tif (lastWritePromise) // always resolve to true\r\n\t\t\t\t\treturn lastWritePromise.then(() => onfulfilled(true), onrejected);\r\n\t\t\t\treturn SYNC_PROMISE_SUCCESS.then(onfulfilled, onrejected);\r\n\t\t\t}\r\n\t\t},\r\n\t\tflushed: {\r\n\t\t\t// make this a thenable for when the commit is flushed to disk\r\n\t\t\tthen(onfulfilled, onrejected) {\r\n\t\t\t\tif (flushPromise)\r\n\t\t\t\t\treturn flushPromise.then(onfulfilled, onrejected);\r\n\t\t\t\treturn committed.then(onfulfilled, onrejected);\r\n\t\t\t}\r\n\t\t},\r\n\t\t_endWrites(resolvedPromise) {\r\n\t\t\tthis.put = this.remove = this.del = this.batch = this.removeSync = this.putSync = this.transactionAsync = this.drop = this.clearAsync = () => { throw new Error('Database is closed') };\r\n\t\t\t// wait for all txns to finish, checking again after the current txn is done\r\n\t\t\tlet finalPromise = flushPromise || commitPromise || lastWritePromise;\r\n\t\t\tif (finalPromise && resolvedPromise != finalPromise) {\r\n\t\t\t\treturn finalPromise.then(() => this._endWrites(finalPromise), () => this._endWrites(finalPromise));\r\n\t\t\t}\r\n\t\t\tenv.sync = null;\r\n\t\t},\r\n\t\ton(event, callback) {\r\n\t\t\tif (event == 'beforecommit') {\r\n\t\t\t\teventTurnBatching = true;\r\n\t\t\t\tbeforeCommitCallbacks.push(callback);\r\n\t\t\t} else if (event == 'aftercommit')\r\n\t\t\t\tafterCommitCallbacks.push(callback);\r\n\t\t}\r\n\t});\r\n}\r\n\r\nclass Batch extends Array {\r\n\tconstructor(callback) {\r\n\t\tsuper();\r\n\t\tthis.callback = callback;\r\n\t}\r\n\tput(key, value) {\r\n\t\tthis.push({ type: 'put', key, value });\r\n\t}\r\n\tdel(key) {\r\n\t\tthis.push({ type: 'del', key });\r\n\t}\r\n\tclear() {\r\n\t\tthis.splice(0, this.length);\r\n\t}\r\n\twrite(callback) {\r\n\t\treturn this.callback(this, callback);\r\n\t}\r\n}\r\nexport function asBinary(buffer) {\r\n\treturn {\r\n\t\t['\\x10binary-data\\x02']: buffer\r\n\t};\r\n}\r\n","export function levelup(store) {\r\n\treturn Object.assign(Object.create(store), {\r\n\t\tget(key, options, callback) {\r\n\t\t\tlet result = store.get(key);\r\n\t\t\tif (typeof options == 'function')\r\n\t\t\t\tcallback = options;\r\n\t\t\tif (callback) {\r\n\t\t\t\tif (result === undefined)\r\n\t\t\t\t\tcallback(new NotFoundError());\r\n\t\t\t\telse\r\n\t\t\t\t\tcallback(null, result);\r\n\t\t\t} else {\r\n\t\t\t\tif (result === undefined)\r\n\t\t\t\t\treturn Promise.reject(new NotFoundError());\r\n\t\t\t\telse\r\n\t\t\t\t\treturn Promise.resolve(result);\r\n\t\t\t}\r\n\t\t},\r\n\t});\r\n}\r\nclass NotFoundError extends Error {\r\n\tconstructor(message) {\r\n\t\tsuper(message);\r\n\t\tthis.name = 'NotFoundError';\r\n\t\tthis.notFound = true;\r\n\t}\r\n}","import { WeakLRUCache, clearKeptObjects } from './external.js';\r\nimport { FAILED_CONDITION } from './write.js';\r\nlet getLastVersion;\r\nconst mapGet = Map.prototype.get;\r\nexport const CachingStore = Store => class extends Store {\r\n\tconstructor(dbName, options) {\r\n\t\tsuper(dbName, options);\r\n\t\tif (!this.env.cacheCommitter) {\r\n\t\t\tthis.env.cacheCommitter = true;\r\n\t\t\tthis.on('aftercommit', ({ next, last }) => {\r\n\t\t\t\tdo {\r\n\t\t\t\t\tlet store = next.store;\r\n\t\t\t\t\tif (store) {\r\n\t\t\t\t\t\tif (next.flag & FAILED_CONDITION)\r\n\t\t\t\t\t\t\tnext.store.cache.delete(next.key); // just delete it from the map\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tlet expirationPriority = next.valueSize >> 10;\r\n\t\t\t\t\t\t\tlet cache = next.store.cache;\r\n\t\t\t\t\t\t\tlet entry = mapGet.call(cache, next.key);\r\n\t\t\t\t\t\t\tif (entry)\r\n\t\t\t\t\t\t\t\tcache.used(entry, expirationPriority + 4); // this will enter it into the LRFU (with a little lower priority than a read)\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} while (next != last && (next = next.next))\r\n\t\t\t});\r\n\t\t}\r\n\t\tthis.db.cachingDb = this;\r\n\t\tif (options.cache.clearKeptInterval)\r\n\t\t\toptions.cache.clearKeptObjects = clearKeptObjects;\r\n\t\tthis.cache = new WeakLRUCache(options.cache);\r\n\t}\r\n\tget isCaching() {\r\n\t\treturn true\r\n\t}\r\n\tget(id, cacheMode) {\r\n\t\tlet value = this.cache.getValue(id);\r\n\t\tif (value !== undefined)\r\n\t\t\treturn value;\r\n\t\tvalue = super.get(id);\r\n\t\tif (value && typeof value === 'object' && !cacheMode && typeof id !== 'object') {\r\n\t\t\tlet entry = this.cache.setValue(id, value, this.lastSize >> 10);\r\n\t\t\tif (this.useVersions) {\r\n\t\t\t\tentry.version = getLastVersion();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn value;\r\n\t}\r\n\tgetEntry(id, cacheMode) {\r\n\t\tlet entry = this.cache.get(id);\r\n\t\tif (entry)\r\n\t\t\treturn entry;\r\n\t\tlet value = super.get(id);\r\n\t\tif (value === undefined)\r\n\t\t\treturn;\r\n\t\tif (value && typeof value === 'object' && !cacheMode && typeof id !== 'object') {\r\n\t\t\tentry = this.cache.setValue(id, value, this.lastSize >> 10);\r\n\t\t} else {\r\n\t\t\tentry = { value };\r\n\t\t}\r\n\t\tif (this.useVersions) {\r\n\t\t\tentry.version = getLastVersion();\r\n\t\t}\r\n\t\treturn entry;\r\n\t}\r\n\tputEntry(id, entry, ifVersion) {\r\n\t\tlet result = super.put(id, entry.value, entry.version, ifVersion);\r\n\t\tif (typeof id === 'object')\r\n\t\t\treturn result;\r\n\t\tif (result && result.then)\r\n\t\t\tthis.cache.setManually(id, entry); // set manually so we can keep it pinned in memory until it is committed\r\n\t\telse // sync operation, immediately add to cache\r\n\t\t\tthis.cache.set(id, entry);\r\n\t}\r\n\tput(id, value, version, ifVersion) {\r\n\t\tlet result = super.put(id, value, version, ifVersion);\r\n\t\tif (typeof id !== 'object') {\r\n\t\t\tif (value && value['\\x10binary-data\\x02']) {\r\n\t\t\t\t// don't cache binary data, since it will be decoded on get\r\n\t\t\t\tthis.cache.delete(id);\r\n\t\t\t\treturn result;\r\n\t\t\t}\t\r\n\t\t\t// sync operation, immediately add to cache, otherwise keep it pinned in memory until it is committed\r\n\t\t\tlet entry = this.cache.setValue(id, value, !result || result.isSync ? 0 : -1);\r\n\t\t\tif (version !== undefined)\r\n\t\t\t\tentry.version = typeof version === 'object' ? version.version : version;\r\n\t\t}\r\n\t\treturn result;\r\n\t}\r\n\tputSync(id, value, version, ifVersion) {\r\n\t\tif (id !== 'object') {\r\n\t\t\t// sync operation, immediately add to cache, otherwise keep it pinned in memory until it is committed\r\n\t\t\tif (value && typeof value === 'object') {\r\n\t\t\t\tlet entry = this.cache.setValue(id, value);\r\n\t\t\t\tif (version !== undefined) {\r\n\t\t\t\t\tentry.version = typeof version === 'object' ? version.version : version;\r\n\t\t\t\t}\r\n\t\t\t} else // it is possible that a value used to exist here\r\n\t\t\t\tthis.cache.delete(id);\r\n\t\t}\r\n\t\treturn super.putSync(id, value, version, ifVersion);\r\n\t}\r\n\tremove(id, ifVersion) {\r\n\t\tthis.cache.delete(id);\r\n\t\treturn super.remove(id, ifVersion);\r\n\t}\r\n\tremoveSync(id, ifVersion) {\r\n\t\tthis.cache.delete(id);\r\n\t\treturn super.removeSync(id, ifVersion);\r\n\t}\r\n\tclearAsync(callback) {\r\n\t\tthis.cache.clear();\r\n\t\treturn super.clearAsync(callback);\r\n\t}\r\n\tclearSync() {\r\n\t\tthis.cache.clear();\r\n\t\tsuper.clearSync();\r\n\t}\r\n\tchildTransaction(execute) {\r\n\t\tthrow new Error('Child transactions are not supported in caching stores');\r\n\t}\r\n};\r\nexport function setGetLastVersion(get) {\r\n\tgetLastVersion = get;\r\n}\r\n","const SKIP = {};\r\nif (!Symbol.asyncIterator) {\r\n\tSymbol.asyncIterator = Symbol.for('Symbol.asyncIterator');\r\n}\r\n\r\nexport class RangeIterable {\r\n\tconstructor(sourceArray) {\r\n\t\tif (sourceArray) {\r\n\t\t\tthis.iterate = sourceArray[Symbol.iterator].bind(sourceArray);\r\n\t\t}\r\n\t}\r\n\tmap(func) {\r\n\t\tlet source = this;\r\n\t\tlet result = new RangeIterable();\r\n\t\tresult.iterate = (async) => {\r\n\t\t\tlet iterator = source[Symbol.iterator](async);\r\n\t\t\treturn {\r\n\t\t\t\tnext(resolvedResult) {\r\n\t\t\t\t\tlet result;\r\n\t\t\t\t\tdo {\r\n\t\t\t\t\t\tlet iteratorResult;\r\n\t\t\t\t\t\tif (resolvedResult) {\r\n\t\t\t\t\t\t\titeratorResult = resolvedResult;\r\n\t\t\t\t\t\t\tresolvedResult = null; // don't go in this branch on next iteration\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\titeratorResult = iterator.next();\r\n\t\t\t\t\t\t\tif (iteratorResult.then) {\r\n\t\t\t\t\t\t\t\treturn iteratorResult.then(iteratorResult => this.next(iteratorResult));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (iteratorResult.done === true) {\r\n\t\t\t\t\t\t\tthis.done = true;\r\n\t\t\t\t\t\t\treturn iteratorResult;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tresult = func(iteratorResult.value);\r\n\t\t\t\t\t\tif (result && result.then) {\r\n\t\t\t\t\t\t\treturn result.then(result =>\r\n\t\t\t\t\t\t\t\tresult == SKIP ?\r\n\t\t\t\t\t\t\t\t\tthis.next() :\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tvalue: result\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} while(result == SKIP)\r\n\t\t\t\t\treturn {\r\n\t\t\t\t\t\tvalue: result\r\n\t\t\t\t\t};\r\n\t\t\t\t},\r\n\t\t\t\treturn() {\r\n\t\t\t\t\treturn iterator.return();\r\n\t\t\t\t},\r\n\t\t\t\tthrow() {\r\n\t\t\t\t\treturn iterator.throw();\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t};\r\n\t\treturn result;\r\n\t}\r\n\t[Symbol.asyncIterator]() {\r\n\t\treturn this.iterator = this.iterate();\r\n\t}\r\n\t[Symbol.iterator]() {\r\n\t\treturn this.iterator = this.iterate();\r\n\t}\r\n\tfilter(func) {\r\n\t\treturn this.map(element => func(element) ? element : SKIP);\r\n\t}\r\n\r\n\tforEach(callback) {\r\n\t\tlet iterator = this.iterator = this.iterate();\r\n\t\tlet result;\r\n\t\twhile ((result = iterator.next()).done !== true) {\r\n\t\t\tcallback(result.value);\r\n\t\t}\r\n\t}\r\n\tconcat(secondIterable) {\r\n\t\tlet concatIterable = new RangeIterable();\r\n\t\tconcatIterable.iterate = (async) => {\r\n\t\t\tlet iterator = this.iterator = this.iterate();\r\n\t\t\tlet isFirst = true;\r\n\t\t\tlet concatIterator = {\r\n\t\t\t\tnext() {\r\n\t\t\t\t\tlet result = iterator.next();\r\n\t\t\t\t\tif (isFirst && result.done) {\r\n\t\t\t\t\t\tisFirst = false;\r\n\t\t\t\t\t\titerator = secondIterable[Symbol.iterator](async);\r\n\t\t\t\t\t\treturn iterator.next();\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn result;\r\n\t\t\t\t},\r\n\t\t\t\treturn() {\r\n\t\t\t\t\treturn iterator.return();\r\n\t\t\t\t},\r\n\t\t\t\tthrow() {\r\n\t\t\t\t\treturn iterator.throw();\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t\treturn concatIterator;\r\n\t\t};\r\n\t\treturn concatIterable;\r\n\t}\r\n\tnext() {\r\n\t\tif (!this.iterator)\r\n\t\t\tthis.iterator = this.iterate();\r\n\t\treturn this.iterator.next();\r\n\t}\r\n\ttoJSON() {\r\n\t\tif (this.asArray && this.asArray.forEach) {\r\n\t\t\treturn this.asArray;\r\n\t\t}\r\n\t\tthrow new Error('Can not serialize async iteratables without first calling resolveJSON');\r\n\t\t//return Array.from(this)\r\n\t}\r\n\tget asArray() {\r\n\t\tif (this._asArray)\r\n\t\t\treturn this._asArray;\r\n\t\tlet promise = new Promise((resolve, reject) => {\r\n\t\t\tlet iterator = this.iterate();\r\n\t\t\tlet array = [];\r\n\t\t\tlet iterable = this;\r\n\t\t\tfunction next(result) {\r\n\t\t\t\twhile (result.done !== true) {\r\n\t\t\t\t\tif (result.then) {\r\n\t\t\t\t\t\treturn result.then(next);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tarray.push(result.value);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tresult = iterator.next();\r\n\t\t\t\t}\r\n\t\t\t\tarray.iterable = iterable;\r\n\t\t\t\tresolve(iterable._asArray = array);\r\n\t\t\t}\r\n\t\t\tnext(iterator.next());\r\n\t\t});\r\n\t\tpromise.iterable = this;\r\n\t\treturn this._asArray || (this._asArray = promise);\r\n\t}\r\n\tresolveData() {\r\n\t\treturn this.asArray;\r\n\t}\r\n}\r\n","import { getAddress, orderedBinary } from './external.js';\r\n\r\nconst writeUint32Key = (key, target, start) => {\r\n\t(target.dataView || (target.dataView = new DataView(target.buffer, 0, target.length))).setUint32(start, key, true);\r\n\treturn start + 4;\r\n};\r\nconst readUint32Key = (target, start) => {\r\n\treturn (target.dataView || (target.dataView = new DataView(target.buffer, 0, target.length))).getUint32(start, true);\r\n};\r\nconst writeBufferKey = (key, target, start) => {\r\n\ttarget.set(key, start);\r\n\treturn key.length + start;\r\n};\r\nconst Uint8ArraySlice = Uint8Array.prototype.slice;\r\nconst readBufferKey = (target, start, end) => {\r\n\treturn Uint8ArraySlice.call(target, start, end);\r\n};\r\n\r\nexport function applyKeyHandling(store) {\r\n \tif (store.encoding == 'ordered-binary') {\r\n\t\tstore.encoder = store.decoder = {\r\n\t\t\twriteKey: orderedBinary.writeKey,\r\n\t\t\treadKey: orderedBinary.readKey,\r\n\t\t};\r\n\t}\r\n\tif (store.encoder && store.encoder.writeKey && !store.encoder.encode) {\r\n\t\tstore.encoder.encode = function(value) {\r\n\t\t\treturn saveKey(value, this.writeKey, false, store.maxKeySize);\r\n\t\t};\r\n\t}\r\n\tif (store.decoder && store.decoder.readKey && !store.decoder.decode)\r\n\t\tstore.decoder.decode = function(buffer) { return this.readKey(buffer, 0, buffer.length); };\r\n\tif (store.keyIsUint32 || store.keyEncoding == 'uint32') {\r\n\t\tstore.writeKey = writeUint32Key;\r\n\t\tstore.readKey = readUint32Key;\r\n\t} else if (store.keyIsBuffer || store.keyEncoding == 'binary') {\r\n\t\tstore.writeKey = writeBufferKey;\r\n\t\tstore.readKey = readBufferKey;\r\n\t} else if (store.keyEncoder) {\r\n\t\tstore.writeKey = store.keyEncoder.writeKey;\r\n\t\tstore.readKey = store.keyEncoder.readKey;\r\n\t} else {\r\n\t\tstore.writeKey = orderedBinary.writeKey;\r\n\t\tstore.readKey = orderedBinary.readKey;\r\n\t}\r\n}\r\n\r\nlet saveBuffer, saveDataView = { setFloat64() {}, setUint32() {} }, saveDataAddress;\r\nlet savePosition = 8000;\r\nlet DYNAMIC_KEY_BUFFER_SIZE = 8192;\r\nfunction allocateSaveBuffer() {\r\n\tsaveBuffer = typeof Buffer != 'undefined' ? Buffer.alloc(DYNAMIC_KEY_BUFFER_SIZE) : new Uint8Array(DYNAMIC_KEY_BUFFER_SIZE);\r\n\tsaveBuffer.buffer.address = getAddress(saveBuffer);\r\n\tsaveDataAddress = saveBuffer.buffer.address;\r\n\t// TODO: Conditionally only do this for key sequences?\r\n\tsaveDataView.setUint32(savePosition, 0xffffffff);\r\n\tsaveDataView.setFloat64(savePosition + 4, saveDataAddress, true); // save a pointer from the old buffer to the new address for the sake of the prefetch sequences\r\n\tsaveBuffer.dataView = saveDataView = new DataView(saveBuffer.buffer, saveBuffer.byteOffset, saveBuffer.byteLength);\r\n\tsavePosition = 0;\r\n}\r\nexport function saveKey(key, writeKey, saveTo, maxKeySize) {\r\n\tif (savePosition > 7800) {\r\n\t\tallocateSaveBuffer();\r\n\t}\r\n\tlet start = savePosition;\r\n\ttry {\r\n\t\tsavePosition = key === undefined ? start + 4 :\r\n\t\t\twriteKey(key, saveBuffer, start + 4);\r\n\t} catch (error) {\r\n\t\tsaveBuffer.fill(0, start + 4); // restore zeros\r\n\t\tif (error.name == 'RangeError') {\r\n\t\t\tif (8180 - start < maxKeySize) {\r\n\t\t\t\tallocateSaveBuffer(); // try again:\r\n\t\t\t\treturn saveKey(key, writeKey, saveTo, maxKeySize);\r\n\t\t\t}\r\n\t\t\tthrow new Error('Key was too large, max key size is ' + maxKeySize);\r\n\t\t} else\r\n\t\t\tthrow error;\r\n\t}\r\n\tlet length = savePosition - start - 4;\r\n\tif (length > maxKeySize) {\r\n\t\tthrow new Error('Key of size ' + length + ' was too large, max key size is ' + maxKeySize);\r\n\t}\r\n\tif (savePosition >= 8160) { // need to reserve enough room at the end for pointers\r\n\t\tsavePosition = start // reset position\r\n\t\tallocateSaveBuffer(); // try again:\r\n\t\treturn saveKey(key, writeKey, saveTo, maxKeySize);\r\n\t}\r\n\tif (saveTo) {\r\n\t\tsaveDataView.setUint32(start, length, true); // save the length\r\n\t\tsaveTo.saveBuffer = saveBuffer;\r\n\t\tsavePosition = (savePosition + 12) & 0xfffffc;\r\n\t\treturn start + saveDataAddress;\r\n\t} else {\r\n\t\tsaveBuffer.start = start + 4;\r\n\t\tsaveBuffer.end = savePosition;\r\n\t\tsavePosition = (savePosition + 7) & 0xfffff8; // full 64-bit word alignment since these are usually copied\r\n\t\treturn saveBuffer;\r\n\t}\r\n}\r\n","import { RangeIterable } from './util/RangeIterable.js';\r\nimport { getAddress, Cursor, setGlobalBuffer, orderedBinary, lmdbError } from './external.js';\r\nimport { saveKey } from './keys.js';\r\nconst ITERATOR_DONE = { done: true, value: undefined };\r\nconst Uint8ArraySlice = Uint8Array.prototype.slice;\r\nconst Uint8A = typeof Buffer != 'undefined' ? Buffer.allocUnsafeSlow : Uint8Array\r\nlet getValueBytes = makeReusableBuffer(0);\r\nconst START_ADDRESS_POSITION = 4064;\r\nconst NEW_BUFFER_THRESHOLD = 0x10000;\r\n\r\nexport function addReadMethods(LMDBStore, {\r\n\tmaxKeySize, env, keyBytes, keyBytesView, getLastVersion\r\n}) {\r\n\tlet readTxn, readTxnRenewed, returnNullWhenBig = false;\r\n\tlet renewId = 1;\r\n\tObject.assign(LMDBStore.prototype, {\r\n\t\tgetString(id) {\r\n\t\t\t(env.writeTxn || (readTxnRenewed ? readTxn : renewReadTxn()));\r\n\t\t\tlet string = this.db.getStringByBinary(this.writeKey(id, keyBytes, 0));\r\n\t\t\tif (typeof string === 'number') { // indicates the buffer wasn't large enough\r\n\t\t\t\tthis._allocateGetBuffer(string);\r\n\t\t\t\t// and then try again\r\n\t\t\t\tstring = this.db.getStringByBinary(this.writeKey(id, keyBytes, 0));\r\n\t\t\t}\r\n\t\t\tif (string)\r\n\t\t\t\tthis.lastSize = string.length;\r\n\t\t\treturn string;\r\n\t\t},\r\n\t\tgetBinaryFast(id) {\r\n\t\t\t(env.writeTxn || (readTxnRenewed ? readTxn : renewReadTxn()));\r\n\t\t\ttry {\r\n\t\t\t\tthis.lastSize = this.db.getByBinary(this.writeKey(id, keyBytes, 0));\r\n\t\t\t} catch (error) {\r\n\t\t\t\tif (error.message.startsWith('MDB_BAD_VALSIZE') && this.writeKey(id, keyBytes, 0) == 0)\r\n\t\t\t\t\terror = new Error(id === undefined ?\r\n\t\t\t\t\t\t'A key is required for get, but is undefined' :\r\n\t\t\t\t\t\t'Zero length key is not allowed in LMDB')\r\n\t\t\t\tthrow error\r\n\t\t\t}\r\n\t\t\tlet compression = this.compression;\r\n\t\t\tlet bytes = compression ? compression.getValueBytes : getValueBytes;\r\n\t\t\tif (this.lastSize > bytes.maxLength) {\r\n\t\t\t\t// this means we the target buffer wasn't big enough, so the get failed to copy all the data from the database, need to either grow or use special buffer\r\n\t\t\t\tif (this.lastSize === 0xffffffff)\r\n\t\t\t\t\treturn;\r\n\t\t\t\tif (returnNullWhenBig && this.lastSize > NEW_BUFFER_THRESHOLD)\r\n\t\t\t\t\t // used by getBinary to indicate it should create a dedicated buffer to receive this\r\n\t\t\t\t\treturn null;\r\n\t\t\t\tif (this.lastSize > NEW_BUFFER_THRESHOLD && !compression && this.db.getSharedByBinary) {\r\n\t\t\t\t\t// for large binary objects, cheaper to make a buffer that directly points at the shared LMDB memory to avoid copying a large amount of memory, but only for large data since there is significant overhead to instantiating the buffer\r\n\t\t\t\t\tif (this.lastShared) // we have to detach the last one, or else could crash due to two buffers pointing at same location\r\n\t\t\t\t\t\tenv.detachBuffer(this.lastShared.buffer)\r\n\t\t\t\t\treturn this.lastShared = this.db.getSharedByBinary(this.writeKey(id, keyBytes, 0));\r\n\t\t\t\t}\r\n\t\t\t\t// grow our shared/static buffer to accomodate the size of the data\r\n\t\t\t\tbytes = this._allocateGetBuffer(this.lastSize);\r\n\t\t\t\t// and try again\r\n\t\t\t\tthis.lastSize = this.db.getByBinary(this.writeKey(id, keyBytes, 0));\r\n\t\t\t}\r\n\t\t\tbytes.length = this.lastSize;\r\n\t\t\treturn bytes;\r\n\t\t},\r\n\t\t_allocateGetBuffer(lastSize) {\r\n\t\t\tlet newLength = Math.min(Math.max(lastSize * 2, 0x1000), 0xfffffff8);\r\n\t\t\tlet bytes;\r\n\t\t\tif (this.compression) {\r\n\t\t\t\tlet dictionary = this.compression.dictionary || new Uint8A(0);\r\n\t\t\t\tlet dictLength = (dictionary.length >> 3) << 3;// make sure it is word-aligned\r\n\t\t\t\tbytes = new Uint8A(newLength + dictLength);\r\n\t\t\t\tbytes.set(dictionary) // copy dictionary into start\r\n\t\t\t\t// the section after the dictionary is the target area for get values\r\n\t\t\t\tbytes = bytes.subarray(dictLength);\r\n\t\t\t\tthis.compression.setBuffer(bytes, newLength, dictionary, dictLength);\r\n\t\t\t\tbytes.maxLength = newLength;\r\n\t\t\t\tObject.defineProperty(bytes, 'length', { value: newLength, writable: true, configurable: true });\r\n\t\t\t\tthis.compression.getValueBytes = bytes;\r\n\t\t\t} else {\r\n\t\t\t\tbytes = makeReusableBuffer(newLength);\r\n\t\t\t\tsetGlobalBuffer(getValueBytes = bytes);\r\n\t\t\t}\r\n\t\t\treturn bytes;\r\n\t\t},\r\n\t\tgetBinary(id) {\r\n\t\t\tlet bytesToRestore;\r\n\t\t\ttry {\r\n\t\t\t\treturnNullWhenBig = true;\r\n\t\t\t\tlet fastBuffer = this.getBinaryFast(id);\r\n\t\t\t\tif (fastBuffer === null) {\r\n\t\t\t\t\tif (this.compression) {\r\n\t\t\t\t\t\tbytesToRestore = this.compression.getValueBytes;\r\n\t\t\t\t\t\tlet dictionary = this.compression.dictionary || [];\r\n\t\t\t\t\t\tlet dictLength = (dictionary.length >> 3) << 3;// make sure it is word-aligned\r\n\t\t\t\t\t\tlet bytes = makeReusableBuffer(this.lastSize);\r\n\t\t\t\t\t\tthis.compression.setBuffer(bytes, this.lastSize, dictionary, dictLength);\r\n\t\t\t\t\t\tthis.compression.getValueBytes = bytes;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tbytesToRestore = getValueBytes;\r\n\t\t\t\t\t\tsetGlobalBuffer(getValueBytes = makeReusableBuffer(this.lastSize));\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn this.getBinaryFast(id);\r\n\t\t\t\t}\r\n\t\t\t\treturn fastBuffer && Uint8ArraySlice.call(fastBuffer, 0, this.lastSize);\r\n\t\t\t} finally {\r\n\t\t\t\treturnNullWhenBig = false;\r\n\t\t\t\tif (bytesToRestore) {\r\n\t\t\t\t\tif (this.compression) {\r\n\t\t\t\t\t\tlet compression = this.compression;\r\n\t\t\t\t\t\tlet dictLength = (compression.dictionary.length >> 3) << 3;\r\n\t\t\t\t\t\tcompression.setBuffer(bytesToRestore, bytesToRestore.maxLength, compression.dictionary, dictLength);\r\n\t\t\t\t\t\tcompression.getValueBytes = bytesToRestore;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tsetGlobalBuffer(bytesToRestore);\r\n\t\t\t\t\t\tgetValueBytes = bytesToRestore;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tget(id) {\r\n\t\t\tif (this.decoder) {\r\n\t\t\t\tlet bytes = this.getBinaryFast(id);\r\n\t\t\t\treturn bytes && this.decoder.decode(bytes);\r\n\t\t\t}\r\n\t\t\tif (this.encoding == 'binary')\r\n\t\t\t\treturn this.getBinary(id);\r\n\r\n\t\t\tlet result = this.getString(id);\r\n\t\t\tif (result) {\r\n\t\t\t\tif (this.encoding == 'json')\r\n\t\t\t\t\treturn JSON.parse(result);\r\n\t\t\t}\r\n\t\t\treturn result;\r\n\t\t},\r\n\t\tgetEntry(id) {\r\n\t\t\tlet value = this.get(id);\r\n\t\t\tif (value !== undefined) {\r\n\t\t\t\tif (this.useVersions)\r\n\t\t\t\t\treturn {\r\n\t\t\t\t\t\tvalue,\r\n\t\t\t\t\t\tversion: getLastVersion(),\r\n\t\t\t\t\t\t//size: this.lastSize\r\n\t\t\t\t\t};\r\n\t\t\t\telse\r\n\t\t\t\t\treturn {\r\n\t\t\t\t\t\tvalue,\r\n\t\t\t\t\t\t//size: this.lastSize\r\n\t\t\t\t\t};\r\n\t\t\t}\r\n\t\t},\r\n\t\tresetReadTxn() {\r\n\t\t\tresetReadTxn();\r\n\t\t},\r\n\t\t_commitReadTxn() {\r\n\t\t\tif (readTxn)\r\n\t\t\t\treadTxn.commit();\r\n\t\t\treadTxnRenewed = null;\r\n\t\t\treadTxn = null;\r\n\t\t},\r\n\t\tensureReadTxn() {\r\n\t\t\tif (!env.writeTxn && !readTxnRenewed)\r\n\t\t\t\trenewReadTxn();\r\n\t\t},\r\n\t\tdoesExist(key, versionOrValue) {\r\n\t\t\tif (!env.writeTxn)\r\n\t\t\t\treadTxnRenewed ? readTxn : renewReadTxn();\r\n\t\t\tif (versionOrValue == null) {\r\n\t\t\t\tthis.getBinaryFast(key);\r\n\t\t\t\t// undefined means the entry exists, null is used specifically to check for the entry *not* existing\r\n\t\t\t\treturn (this.lastSize === 0xffffffff) == (versionOrValue === null);\r\n\t\t\t}\r\n\t\t\telse if (this.useVersions) {\r\n\t\t\t\tthis.getBinaryFast(key);\r\n\t\t\t\treturn this.lastSize !== 0xffffffff && getLastVersion() === versionOrValue;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif (versionOrValue && versionOrValue['\\x10binary-data\\x02'])\r\n\t\t\t\t\tversionOrValue = versionOrValue['\\x10binary-data\\x02'];\r\n\t\t\t\telse if (this.encoder)\r\n\t\t\t\t\tversionOrValue = this.encoder.encode(versionOrValue);\r\n\t\t\t\tif (typeof versionOrValue == 'string')\r\n\t\t\t\t\tversionOrValue = Buffer.from(versionOrValue);\r\n\t\t\t\treturn this.getValuesCount(key, { start: versionOrValue, exactMatch: true}) > 0;\r\n\t\t\t}\r\n\t\t},\r\n\t\tgetValues(key, options) {\r\n\t\t\tlet defaultOptions = {\r\n\t\t\t\tkey,\r\n\t\t\t\tvaluesForKey: true\r\n\t\t\t};\r\n\t\t\tif (options && options.snapshot === false)\r\n\t\t\t\tthrow new Error('Can not disable snapshots for getValues');\r\n\t\t\treturn this.getRange(options ? Object.assign(defaultOptions, options) : defaultOptions);\r\n\t\t},\r\n\t\tgetKeys(options) {\r\n\t\t\tif (!options)\r\n\t\t\t\toptions = {};\r\n\t\t\toptions.values = false;\r\n\t\t\treturn this.getRange(options);\r\n\t\t},\r\n\t\tgetCount(options) {\r\n\t\t\tif (!options)\r\n\t\t\t\toptions = {};\r\n\t\t\toptions.onlyCount = true;\r\n\t\t\treturn this.getRange(options).iterate();\r\n\t\t},\r\n\t\tgetKeysCount(options) {\r\n\t\t\tif (!options)\r\n\t\t\t\toptions = {};\r\n\t\t\toptions.onlyCount = true;\r\n\t\t\toptions.values = false;\r\n\t\t\treturn this.getRange(options).iterate();\r\n\t\t},\r\n\t\tgetValuesCount(key, options) {\r\n\t\t\tif (!options)\r\n\t\t\t\toptions = {};\r\n\t\t\toptions.key = key;\r\n\t\t\toptions.valuesForKey = true;\r\n\t\t\toptions.onlyCount = true;\r\n\t\t\treturn this.getRange(options).iterate();\r\n\t\t},\r\n\t\tgetRange(options) {\r\n\t\t\tlet iterable = new RangeIterable();\r\n\t\t\tif (!options)\r\n\t\t\t\toptions = {};\r\n\t\t\tlet includeValues = options.values !== false;\r\n\t\t\tlet includeVersions = options.versions;\r\n\t\t\tlet valuesForKey = options.valuesForKey;\r\n\t\t\tlet limit = options.limit;\r\n\t\t\tlet db = this.db;\r\n\t\t\tlet snapshot = options.snapshot;\r\n\t\t\tlet compression = this.compression;\r\n\t\t\titerable.iterate = () => {\r\n\t\t\t\tlet currentKey = valuesForKey ? options.key : options.start;\r\n\t\t\t\tconst reverse = options.reverse;\r\n\t\t\t\tlet count = 0;\r\n\t\t\t\tlet cursor, cursorRenewId;\r\n\t\t\t\tlet txn;\r\n\t\t\t\tlet flags = (includeValues ? 0x100 : 0) | (reverse ? 0x400 : 0) |\r\n\t\t\t\t\t(valuesForKey ? 0x800 : 0) | (options.exactMatch ? 0x4000 : 0);\r\n\t\t\t\tfunction resetCursor() {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tif (cursor)\r\n\t\t\t\t\t\t\tfinishCursor();\r\n\t\t\t\t\t\tlet writeTxn = env.writeTxn;\r\n\t\t\t\t\t\tif (writeTxn)\r\n\t\t\t\t\t\t\tsnapshot = false;\r\n\t\t\t\t\t\ttxn = writeTxn || (readTxnRenewed ? readTxn : renewReadTxn());\r\n\t\t\t\t\t\tcursor = !writeTxn && db.availableCursor;\r\n\t\t\t\t\t\tif (cursor) {\r\n\t\t\t\t\t\t\tdb.availableCursor = null;\r\n\t\t\t\t\t\t\tflags |= 0x2000;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tcursor = new Cursor(db);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\ttxn.cursorCount = (txn.cursorCount || 0) + 1; // track transaction so we always use the same one\r\n\t\t\t\t\t\tif (snapshot === false) {\r\n\t\t\t\t\t\t\tcursorRenewId = renewId; // use shared read transaction\r\n\t\t\t\t\t\t\ttxn.renewingCursorCount = (txn.renewingCursorCount || 0) + 1; // need to know how many are renewing cursors\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch(error) {\r\n\t\t\t\t\t\tif (cursor) {\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tcursor.close();\r\n\t\t\t\t\t\t\t} catch(error) { }\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tthrow error;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tresetCursor();\r\n\t\t\t\tlet store = this;\r\n\t\t\t\tif (options.onlyCount) {\r\n\t\t\t\t\tflags |= 0x1000;\r\n\t\t\t\t\tlet count = position(options.offset);\r\n\t\t\t\t\tif (count < 0)\r\n\t\t\t\t\t\tlmdbError(count);\r\n\t\t\t\t\tfinishCursor();\r\n\t\t\t\t\treturn count;\r\n\t\t\t\t}\r\n\t\t\t\tfunction position(offset) {\r\n\t\t\t\t\tlet keySize = currentKey === undefined ? 0 : store.writeKey(currentKey, keyBytes, 0);\r\n\t\t\t\t\tlet endAddress;\r\n\t\t\t\t\tif (valuesForKey) {\r\n\t\t\t\t\t\tif (options.start === undefined && options.end === undefined)\r\n\t\t\t\t\t\t\tendAddress = 0;\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tlet startAddress;\r\n\t\t\t\t\t\t\tif (store.encoder.writeKey) {\r\n\t\t\t\t\t\t\t\tstartAddress = saveKey(options.start, store.encoder.writeKey, iterable, maxKeySize);\r\n\t\t\t\t\t\t\t\tkeyBytesView.setFloat64(START_ADDRESS_POSITION, startAddress, true);\r\n\t\t\t\t\t\t\t\tendAddress = saveKey(options.end, store.encoder.writeKey, iterable, maxKeySize);\r\n\t\t\t\t\t\t\t} else if ((!options.start || options.start instanceof Uint8Array) && (!options.end || options.end instanceof Uint8Array)) {\r\n\t\t\t\t\t\t\t\tstartAddress = saveKey(options.start, orderedBinary.writeKey, iterable, maxKeySize);\r\n\t\t\t\t\t\t\t\tkeyBytesView.setFloat64(START_ADDRESS_POSITION, startAddress, true);\r\n\t\t\t\t\t\t\t\tendAddress = saveKey(options.end, orderedBinary.writeKey, iterable, maxKeySize);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tthrow new Error('Only key-based encoding is supported for start/end values');\r\n\t\t\t\t\t\t\t\tlet encoded = store.encoder.encode(options.start);\r\n\t\t\t\t\t\t\t\tlet bufferAddress = encoded.buffer.address || (encoded.buffer.address = getAddress(encoded) - encoded.byteOffset);\r\n\t\t\t\t\t\t\t\tstartAddress = bufferAddress + encoded.byteOffset;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else\r\n\t\t\t\t\t\tendAddress = saveKey(options.end, store.writeKey, iterable, maxKeySize);\r\n\t\t\t\t\treturn cursor.position(flags, offset || 0, keySize, endAddress);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfunction finishCursor() {\r\n\t\t\t\t\tif (txn.isDone)\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\tif (cursorRenewId)\r\n\t\t\t\t\t\ttxn.renewingCursorCount--;\r\n\t\t\t\t\tif (--txn.cursorCount <= 0 && txn.onlyCursor) {\r\n\t\t\t\t\t\tcursor.close();\r\n\t\t\t\t\t\ttxn.abort(); // this is no longer main read txn, abort it now that we are done\r\n\t\t\t\t\t\ttxn.isDone = true;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (db.availableCursor || txn != readTxn) {\r\n\t\t\t\t\t\t\tcursor.close();\r\n\t\t\t\t\t\t} else { // try to reuse it\r\n\t\t\t\t\t\t\tdb.availableCursor = cursor;\r\n\t\t\t\t\t\t\tdb.cursorTxn = txn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn {\r\n\t\t\t\t\tnext() {\r\n\t\t\t\t\t\tlet keySize, lastSize;\r\n\t\t\t\t\t\tif (cursorRenewId && (cursorRenewId != renewId || txn.isDone)) {\r\n\t\t\t\t\t\t\tresetCursor();\r\n\t\t\t\t\t\t\tkeySize = position(0);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (count === 0) { // && includeValues) // on first entry, get current value if we need to\r\n\t\t\t\t\t\t\tkeySize = position(options.offset);\r\n\t\t\t\t\t\t} else\r\n\t\t\t\t\t\t\tkeySize = cursor.iterate();\r\n\t\t\t\t\t\tif (keySize <= 0 ||\r\n\t\t\t\t\t\t\t\t(count++ >= limit)) {\r\n\t\t\t\t\t\t\tif (count < 0)\r\n\t\t\t\t\t\t\t\tlmdbError(count);\t\t\t\t\r\n\t\t\t\t\t\t\tfinishCursor();\r\n\t\t\t\t\t\t\treturn ITERATOR_DONE;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (!valuesForKey || snapshot === false) {\r\n\t\t\t\t\t\t\tif (keySize > 20000) {\r\n\t\t\t\t\t\t\t\tif (keySize > 0x1000000)\r\n\t\t\t\t\t\t\t\t\tlmdbError(keySize - 0x100000000)\r\n\t\t\t\t\t\t\t\tthrow new Error('Invalid key size ' + keySize.toString(16))\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tcurrentKey = store.readKey(keyBytes, 32, keySize + 32);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (includeValues) {\r\n\t\t\t\t\t\t\tlet value;\r\n\t\t\t\t\t\t\tlastSize = keyBytesView.getUint32(0, true);\r\n\t\t\t\t\t\t\tlet bytes = compression ? compression.getValueBytes : getValueBytes;\r\n\t\t\t\t\t\t\tif (lastSize > bytes.maxLength) {\r\n\t\t\t\t\t\t\t\tbytes = store._allocateGetBuffer(lastSize);\r\n\t\t\t\t\t\t\t\tlet rc = cursor.getCurrentValue();\r\n\t\t\t\t\t\t\t\tif (rc < 0)\r\n\t\t\t\t\t\t\t\t\tlmdbError(count);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tbytes.length = lastSize;\r\n\t\t\t\t\t\t\tif (store.decoder) {\r\n\t\t\t\t\t\t\t\tvalue = store.decoder.decode(bytes, lastSize);\r\n\t\t\t\t\t\t\t} else if (store.encoding == 'binary')\r\n\t\t\t\t\t\t\t\tvalue = Uint8ArraySlice.call(bytes, 0, lastSize);\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tvalue = bytes.toString('utf8', 0, lastSize);\r\n\t\t\t\t\t\t\t\tif (store.encoding == 'json' && value)\r\n\t\t\t\t\t\t\t\t\tvalue = JSON.parse(value);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif (includeVersions)\r\n\t\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\t\tvalue: {\r\n\t\t\t\t\t\t\t\t\t\tkey: currentKey,\r\n\t\t\t\t\t\t\t\t\t\tvalue,\r\n\t\t\t\t\t\t\t\t\t\tversion: getLastVersion()\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t};\r\n \t\t\t\t\t\t\telse if (valuesForKey)\r\n\t\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\t\tvalue\r\n\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\t\tvalue: {\r\n\t\t\t\t\t\t\t\t\t\tkey: currentKey,\r\n\t\t\t\t\t\t\t\t\t\tvalue,\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t} else if (includeVersions) {\r\n\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\tvalue: {\r\n\t\t\t\t\t\t\t\t\tkey: currentKey,\r\n\t\t\t\t\t\t\t\t\tversion: getLastVersion()\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\t\tvalue: currentKey\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\treturn() {\r\n\t\t\t\t\t\tfinishCursor();\r\n\t\t\t\t\t\treturn ITERATOR_DONE;\r\n\t\t\t\t\t},\r\n\t\t\t\t\tthrow() {\r\n\t\t\t\t\t\tfinishCursor();\r\n\t\t\t\t\t\treturn ITERATOR_DONE;\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t};\r\n\t\t\treturn iterable;\r\n\t\t},\r\n\r\n\t\tgetMany(keys, callback) {\r\n\t\t\t// this is an asynchronous get for multiple keys. It actually works by prefetching asynchronously,\r\n\t\t\t// allowing a separate to absorb the potentially largest cost: hard page faults (and disk I/O).\r\n\t\t\t// And then we just do standard sync gets (to deserialized data) to fulfil the callback/promise\r\n\t\t\t// once the prefetch occurs\r\n\t\t\tlet promise = callback ? undefined : new Promise(resolve => callback = (error, results) => resolve(results));\r\n\t\t\tthis.prefetch(keys, () => {\r\n\t\t\t\tlet results = new Array(keys.length);\r\n\t\t\t\tfor (let i = 0, l = keys.length; i < l; i++) {\r\n\t\t\t\t\tresults[i] = get.call(this, keys[i]);\r\n\t\t\t\t}\r\n\t\t\t\tcallback(null, results);\r\n\t\t\t});\r\n\t\t\treturn promise;\r\n\t\t},\r\n\t\tgetSharedBufferForGet(id) {\r\n\t\t\tlet txn = (env.writeTxn || (readTxnRenewed ? readTxn : renewReadTxn()));\r\n\t\t\tthis.lastSize = this.keyIsCompatibility ? txn.getBinaryShared(id) : this.db.get(this.writeKey(id, keyBytes, 0));\r\n\t\t\tif (this.lastSize === 0xffffffff) { // not found code\r\n\t\t\t\treturn; //undefined\r\n\t\t\t}\r\n\t\t\treturn this.lastSize;\r\n\t\t\tthis.lastSize = keyBytesView.getUint32(0, true);\r\n\t\t\tlet bufferIndex = keyBytesView.getUint32(12, true);\r\n\t\t\tlastOffset = keyBytesView.getUint32(8, true);\r\n\t\t\tlet buffer = buffers[bufferIndex];\r\n\t\t\tlet startOffset;\r\n\t\t\tif (!buffer || lastOffset < (startOffset = buffer.startOffset) || (lastOffset + this.lastSize > startOffset + 0x100000000)) {\r\n\t\t\t\tif (buffer)\r\n\t\t\t\t\tenv.detachBuffer(buffer.buffer);\r\n\t\t\t\tstartOffset = (lastOffset >>> 16) * 0x10000;\r\n\t\t\t\tconsole.log('make buffer for address', bufferIndex * 0x100000000 + startOffset);\r\n\t\t\t\tbuffer = buffers[bufferIndex] = Buffer.from(getBufferForAddress(bufferIndex * 0x100000000 + startOffset));\r\n\t\t\t\tbuffer.startOffset = startOffset;\r\n\t\t\t}\r\n\t\t\tlastOffset -= startOffset;\r\n\t\t\treturn buffer;\r\n\t\t\treturn buffer.slice(lastOffset, lastOffset + this.lastSize);/*Uint8ArraySlice.call(buffer, lastOffset, lastOffset + this.lastSize)*/\r\n\t\t},\r\n\t\tprefetch(keys, callback) {\r\n\t\t\tif (!keys)\r\n\t\t\t\tthrow new Error('An array of keys must be provided');\r\n\t\t\tif (!keys.length) {\r\n\t\t\t\tif (callback) {\r\n\t\t\t\t\tcallback(null);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t} else\r\n\t\t\t\t\treturn Promise.resolve();\r\n\t\t\t}\r\n\t\t\tlet buffers = [];\r\n\t\t\tlet startPosition;\r\n\t\t\tlet bufferHolder = {};\r\n\t\t\tlet lastBuffer;\r\n\t\t\tfor (let key of keys) {\r\n\t\t\t\tlet position = saveKey(key, this.writeKey, bufferHolder, maxKeySize);\r\n\t\t\t\tif (!startPosition)\r\n\t\t\t\t\tstartPosition = position;\r\n\t\t\t\tif (bufferHolder.saveBuffer != lastBuffer) {\r\n\t\t\t\t\tbuffers.push(bufferHolder);\r\n\t\t\t\t\tlastBuffer = bufferHolder.saveBuffer;\r\n\t\t\t\t\tbufferHolder = { saveBuffer: lastBuffer };\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tsaveKey(undefined, this.writeKey, bufferHolder, maxKeySize);\r\n\t\t\tthis.db.prefetch(startPosition, (error) => {\r\n\t\t\t\tif (error)\r\n\t\t\t\t\tconsole.error('Error with prefetch', buffers, bufferHolder); // partly exists to keep the buffers pinned in memory\r\n\t\t\t\telse\r\n\t\t\t\t\tcallback(null);\r\n\t\t\t});\r\n\t\t\tif (!callback)\r\n\t\t\t\treturn new Promise(resolve => callback = resolve);\r\n\t\t},\r\n\t\tclose(callback) {\r\n\t\t\tthis.status = 'closing';\r\n\t\t\tif (this.isRoot) {\r\n\t\t\t\tif (readTxn) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\treadTxn.abort();\r\n\t\t\t\t\t} catch(error) {}\r\n\t\t\t\t}\r\n\t\t\t\treadTxn = {\r\n\t\t\t\t\trenew() {\r\n\t\t\t\t\t\tthrow new Error('Can not read from a closed database');\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t\treadTxnRenewed = null;\r\n\t\t\t}\r\n\t\t\tlet txnPromise = this._endWrites();\r\n\t\t\tconst doClose = () => {\r\n\t\t\t\tthis.db.close();\r\n\t\t\t\tif (this.isRoot) {\r\n\t\t\t\t\tenv.close();\r\n\t\t\t\t}\r\n\t\t\t\tthis.status = 'closed';\r\n\t\t\t\tif (callback)\r\n\t\t\t\t\tcallback();\r\n\t\t\t}\r\n\t\t\tif (txnPromise)\r\n\t\t\t\treturn txnPromise.then(doClose);\r\n\t\t\telse {\r\n\t\t\t\tdoClose();\r\n\t\t\t\treturn Promise.resolve();\r\n\t\t\t}\r\n\t\t},\r\n\t\tgetStats() {\r\n\t\t\treadTxnRenewed ? readTxn : renewReadTxn();\r\n\t\t\treturn this.db.stat();\r\n\t\t}\r\n\t});\r\n\tlet get = LMDBStore.prototype.get;\r\n\tfunction renewReadTxn() {\r\n\t\tif (!readTxn) {\r\n\t\t\tlet retries = 0;\r\n\t\t\tlet waitArray;\r\n\t\t\tdo {\r\n\t\t\t\ttry {\r\n\t\t\t\t\treadTxn = env.beginTxn(0x20000);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t} catch (error) {\r\n\t\t\t\t\tif (error.message.includes('temporarily')) {\r\n\t\t\t\t\t\tif (!waitArray)\r\n\t\t\t\t\t\t\twaitArray = new Int32Array(new SharedArrayBuffer(4), 0, 1);\r\n\t\t\t\t\t\tAtomics.wait(waitArray, 0, 0, retries * 2);\r\n\t\t\t\t\t} else\r\n\t\t\t\t\t\tthrow error;\r\n\t\t\t\t}\r\n\t\t\t} while (retries++ < 100);\r\n\t\t}\r\n\t\treadTxnRenewed = setTimeout(resetReadTxn, 0);\r\n\t\treturn readTxn;\r\n\t}\r\n\tfunction resetReadTxn(hardReset) {\r\n\t\trenewId++;\r\n\t\tif (readTxnRenewed) {\r\n\t\t\treadTxnRenewed = null;\r\n\t\t\tif (readTxn.cursorCount - (readTxn.renewingCursorCount || 0) > 0) {\r\n\t\t\t\treadTxn.onlyCursor = true;\r\n\t\t\t\treadTxn = null;\r\n\t\t\t} else\r\n\t\t\t\treadTxn.reset();\r\n\t\t}\r\n\t}\r\n}\r\nexport function makeReusableBuffer(size) {\r\n\tlet bytes = typeof Buffer != 'undefined' ? Buffer.alloc(size) : new Uint8Array(size);\r\n\tbytes.maxLength = size;\r\n\tObject.defineProperty(bytes, 'length', { value: size, writable: true, configurable: true });\r\n\treturn bytes;\r\n}\r\n","import { Compression, getAddress, require, arch, fs, path as pathModule, lmdbError, EventEmitter, MsgpackrEncoder, Env, tmpdir, os, isWorkerThread } from './external.js';\r\nimport { CachingStore, setGetLastVersion } from './caching.js';\r\nimport { addReadMethods, makeReusableBuffer } from './read.js';\r\nimport { addWriteMethods } from './write.js';\r\nimport { applyKeyHandling } from './keys.js';\r\nsetGetLastVersion(getLastVersion);\r\nlet keyBytes, keyBytesView;\r\nconst buffers = [];\r\n\r\n\r\n// this is hard coded as an upper limit because it is important assumption of the fixed buffers in writing instructions\r\n// this corresponds to the max key size for 8KB pages, which is currently the default\r\nconst MAX_KEY_SIZE = 4026;\r\nconst DEFAULT_COMMIT_DELAY = 0;\r\n\r\nexport const allDbs = new Map();\r\nlet defaultCompression;\r\nlet lastSize, lastOffset, lastVersion;\r\nlet abortedNonChildTransactionWarn;\r\nexport function open(path, options) {\r\n\tif (!keyBytes) // TODO: Consolidate get buffer and key buffer (don't think we need both)\r\n\t\tallocateFixedBuffer();\r\n\tlet committingWrites;\r\n\tlet scheduledTransactions;\r\n\tlet scheduledOperations;\r\n\tlet asyncTransactionAfter = true, asyncTransactionStrictOrder;\r\n\tlet transactionWarned;\r\n\tif (typeof path == 'object' && !options) {\r\n\t\toptions = path;\r\n\t\tpath = options.path;\r\n\t}\r\n\tif (!path) {\r\n\t\tif (!options)\r\n\t\t\toptions = {};\r\n\t\toptions.deleteOnClose = true;\r\n\t\toptions.noSync = true;\r\n\t\tpath = tmpdir() + '/' + Math.floor(Math.random() * 2821109907455).toString(36) + '.mdb'\r\n\t}\r\n\tlet extension = pathModule.extname(path);\r\n\tlet name = pathModule.basename(path, extension);\r\n\tlet is32Bit = arch().endsWith('32');\r\n\tlet remapChunks = (options && options.remapChunks) || ((options && options.mapSize) ?\r\n\t\t(is32Bit && options.mapSize > 0x100000000) : // larger than fits in address space, must use dynamic maps\r\n\t\tis32Bit); // without a known map size, we default to being able to handle large data correctly/well*/\r\n\toptions = Object.assign({\r\n\t\tpath,\r\n\t\tnoSubdir: Boolean(extension),\r\n\t\tisRoot: true,\r\n\t\tmaxDbs: 12,\r\n\t\tremapChunks,\r\n\t\tkeyBytes,\r\n\t\tpageSize: 4096,\r\n\t\toverlappingSync: (options && (options.noSync || options.readOnly)) ? false : (os != 'win32' && !isWorkerThread),\r\n\t\t// default map size limit of 4 exabytes when using remapChunks, since it is not preallocated and we can\r\n\t\t// make it super huge.\r\n\t\tmapSize: remapChunks ? 0x10000000000000 :\r\n\t\t\t0x20000, // Otherwise we start small with 128KB\r\n\t}, options);\r\n\tif (options.asyncTransactionOrder == 'before') {\r\n\t\tconsole.warn('asyncTransactionOrder: \"before\" is deprecated');\r\n\t\tasyncTransactionAfter = false;\r\n\t} else if (options.asyncTransactionOrder == 'strict') {\r\n\t\tasyncTransactionStrictOrder = true;\r\n\t\tasyncTransactionAfter = false;\r\n\t}\r\n\r\n\tif (!exists(options.noSubdir ? pathModule.dirname(path) : path))\r\n\t\tfs.mkdirSync(options.noSubdir ? pathModule.dirname(path) : path, { recursive: true }\r\n\t\t);\r\n\tfunction makeCompression(compressionOptions) {\r\n\t\tif (compressionOptions instanceof Compression)\r\n\t\t\treturn compressionOptions;\r\n\t\tlet useDefault = typeof compressionOptions != 'object';\r\n\t\tif (useDefault && defaultCompression)\r\n\t\t\treturn defaultCompression;\r\n\t\tcompressionOptions = Object.assign({\r\n\t\t\tthreshold: 1000,\r\n\t\t\tdictionary: fs.readFileSync(new URL('./dict/dict.txt', import.meta.url.replace(/dist[\\\\\\/]index.cjs$/, ''))),\r\n\t\t\tgetValueBytes: makeReusableBuffer(0),\r\n\t\t}, compressionOptions);\r\n\t\tlet compression = Object.assign(new Compression(compressionOptions), compressionOptions);\r\n\t\tif (useDefault)\r\n\t\t\tdefaultCompression = compression;\r\n\t\treturn compression;\r\n\t}\r\n\r\n\tif (options.compression)\r\n\t\toptions.compression = makeCompression(options.compression);\r\n\tlet flags =\r\n\t\t(options.overlappingSync ? 0x1000 : 0) |\r\n\t\t(options.noSubdir ? 0x4000 : 0) |\r\n\t\t(options.noSync ? 0x10000 : 0) |\r\n\t\t(options.readOnly ? 0x20000 : 0) |\r\n\t\t(options.noMetaSync ? 0x40000 : 0) |\r\n\t\t(options.useWritemap ? 0x80000 : 0) |\r\n\t\t(options.mapAsync ? 0x100000 : 0) |\r\n\t\t(options.noReadAhead ? 0x800000 : 0) |\r\n\t\t(options.noMemInit ? 0x1000000 : 0) |\r\n\t\t(options.usePreviousSnapshot ? 0x2000000 : 0) |\r\n\t\t(options.remapChunks ? 0x4000000 : 0);\r\n\r\n\tlet env = new Env();\r\n\tlet jsFlags = (options.separateFlushed ? 1 : 0) |\r\n\t\t(options.deleteOnClose ? 2 : 0)\r\n\tlet rc = env.open(options, flags, jsFlags);\r\n if (rc)\r\n\t\tlmdbError(rc);\r\n\tlet maxKeySize = env.getMaxKeySize();\r\n\tmaxKeySize = Math.min(maxKeySize, MAX_KEY_SIZE);\r\n\tenv.readerCheck(); // clear out any stale entries\r\n\tlet stores = [];\r\n\tclass LMDBStore extends EventEmitter {\r\n\t\tconstructor(dbName, dbOptions) {\r\n\t\t\tsuper();\r\n\t\t\tif (dbName === undefined)\r\n\t\t\t\tthrow new Error('Database name must be supplied in name property (may be null for root database)');\r\n\r\n\t\t\tif (options.compression && dbOptions.compression !== false && typeof dbOptions.compression != 'object')\r\n\t\t\t\tdbOptions.compression = options.compression; // use the parent compression if available\r\n\t\t\telse if (dbOptions.compression)\r\n\t\t\t\tdbOptions.compression = makeCompression(dbOptions.compression);\r\n\r\n\t\t\tif (dbOptions.dupSort && (dbOptions.useVersions || dbOptions.cache)) {\r\n\t\t\t\tthrow new Error('The dupSort flag can not be combined with versions or caching');\r\n\t\t\t}\r\n\t\t\t// make sure we are using a fresh read txn, so we don't want to share with a cursor txn\r\n\t\t\tthis.resetReadTxn();\r\n\t\t\tthis.ensureReadTxn();\r\n\t\t\tlet keyIsBuffer = dbOptions.keyIsBuffer\r\n\t\t\tif (dbOptions.keyEncoding == 'uint32') {\r\n\t\t\t\tdbOptions.keyIsUint32 = true;\r\n\t\t\t} else if (dbOptions.keyEncoder) {\r\n\t\t\t\tif (dbOptions.keyEncoder.enableNullTermination) {\r\n\t\t\t\t\tdbOptions.keyEncoder.enableNullTermination()\r\n\t\t\t\t} else\r\n\t\t\t\t\tkeyIsBuffer = true;\r\n\t\t\t} else if (dbOptions.keyEncoding == 'binary') {\r\n\t\t\t\tkeyIsBuffer = true;\r\n\t\t\t}\r\n\t\t\tlet flags = (dbOptions.reverseKey ? 0x02 : 0) |\r\n\t\t\t\t(dbOptions.dupSort ? 0x04 : 0) |\r\n\t\t\t\t(dbOptions.dupFixed ? 0x10 : 0) |\r\n\t\t\t\t(dbOptions.integerDup ? 0x20 : 0) |\r\n\t\t\t\t(dbOptions.reverseDup ? 0x40 : 0) |\r\n\t\t\t\t(dbOptions.useVersions ? 0x1000 : 0);\r\n\t\t\tlet keyType = (dbOptions.keyIsUint32 || dbOptions.keyEncoding == 'uint32') ? 2 : keyIsBuffer ? 3 : 0;\r\n\t\t\tif (keyType == 2)\r\n\t\t\t\tflags |= 0x08; // integer key\r\n\t\t\tif (!((flags & 0xff) && !dbName)) // if there are any dupsort options on the main db, skip as we have to use a write txn below\r\n\t\t\t\tthis.db = env.openDbi(flags, dbName, keyType, dbOptions.compression);\r\n\t\t\tthis._commitReadTxn(); // current read transaction becomes invalid after opening another db\r\n\t\t\tif (!this.db) {// not found\r\n\t\t\t\tif (dbOptions.create !== false && !options.readOnly) {\r\n\t\t\t\t\tflags |= 0x40000; // add create flag\r\n\t\t\t\t\tthis.transactionSync(() => {\r\n\t\t\t\t\t\tthis.db = env.openDbi(flags, dbName, keyType, dbOptions.compression);\r\n\t\t\t\t\t}, options.overlappingSync ? 0x10002 : 2); // no flush-sync, but synchronously commit\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn; // return undefined to indicate it could not be found\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tthis.db.name = dbName || null;\r\n\t\t\tthis.name = dbName;\r\n\t\t\tthis.status = 'open';\r\n\t\t\tthis.env = env;\r\n\t\t\tthis.reads = 0;\r\n\t\t\tthis.writes = 0;\r\n\t\t\tthis.transactions = 0;\r\n\t\t\tthis.averageTransactionTime = 5;\r\n\t\t\tif (dbOptions.syncBatchThreshold)\r\n\t\t\t\tconsole.warn('syncBatchThreshold is no longer supported');\r\n\t\t\tif (dbOptions.immediateBatchThreshold)\r\n\t\t\t\tconsole.warn('immediateBatchThreshold is no longer supported');\r\n\t\t\tthis.commitDelay = DEFAULT_COMMIT_DELAY;\r\n\t\t\tObject.assign(this, { // these are the options that are inherited\r\n\t\t\t\tpath: options.path,\r\n\t\t\t\tencoding: options.encoding,\r\n\t\t\t\tstrictAsyncOrder: options.strictAsyncOrder,\r\n\t\t\t}, dbOptions);\r\n\t\t\tlet Encoder;\r\n\t\t\tif (this.encoder && this.encoder.Encoder) {\r\n\t\t\t\tEncoder = this.encoder.Encoder;\r\n\t\t\t\tthis.encoder = null; // don't copy everything from the module\r\n\t\t\t}\r\n\t\t\tif (!Encoder && !(this.encoder && this.encoder.encode) && (!this.encoding || this.encoding == 'msgpack' || this.encoding == 'cbor')) {\r\n\t\t\t\tEncoder = (this.encoding == 'cbor' ? require('cbor-x').Encoder : MsgpackrEncoder);\r\n\t\t\t}\r\n\t\t\tif (Encoder) {\r\n\t\t\t\tthis.encoder = new Encoder(Object.assign(\r\n\t\t\t\t\tassignConstrainedProperties(['copyBuffers', 'getStructures', 'saveStructures', 'useFloat32', 'useRecords', 'structuredClone', 'variableMapSize', 'useTimestamp32', 'largeBigIntToFloat', 'encodeUndefinedAsNil', 'int64AsNumber', 'onInvalidDate', 'mapsAsObjects', 'useTag259ForMaps', 'pack', 'maxSharedStructures', 'shouldShareStructure'],\r\n\t\t\t\t\tthis.sharedStructuresKey ? this.setupSharedStructures() : {\r\n\t\t\t\t\t\tcopyBuffers: true, // need to copy any embedded buffers that are found since we use unsafe buffers\r\n\t\t\t\t\t}, options, dbOptions), this.encoder));\r\n\t\t\t}\r\n\t\t\tif (this.encoding == 'json') {\r\n\t\t\t\tthis.encoder = {\r\n\t\t\t\t\tencode: JSON.stringify,\r\n\t\t\t\t};\r\n\t\t\t} else if (this.encoder) {\r\n\t\t\t\tthis.decoder = this.encoder;\r\n\t\t\t}\r\n\t\t\tthis.maxKeySize = maxKeySize;\r\n\t\t\tapplyKeyHandling(this);\r\n\t\t\tallDbs.set(dbName ? name + '-' + dbName : name, this);\r\n\t\t\tstores.push(this);\r\n\t\t}\r\n\t\topenDB(dbName, dbOptions) {\r\n\t\t\tif (this.dupSort && this.name == null)\r\n\t\t\t\tthrow new Error('Can not open named databases if the main database is dupSort')\r\n\t\t\tif (typeof dbName == 'object' && !dbOptions) {\r\n\t\t\t\tdbOptions = dbName;\r\n\t\t\t\tdbName = dbOptions.name;\r\n\t\t\t} else\r\n\t\t\t\tdbOptions = dbOptions || {};\r\n\t\t\ttry {\r\n\t\t\t\treturn dbOptions.cache ?\r\n\t\t\t\t\tnew (CachingStore(LMDBStore))(dbName, dbOptions) :\r\n\t\t\t\t\tnew LMDBStore(dbName, dbOptions);\r\n\t\t\t} catch(error) {\r\n\t\t\t\tif (error.message.indexOf('MDB_DBS_FULL') > -1) {\r\n\t\t\t\t\terror.message += ' (increase your maxDbs option)';\r\n\t\t\t\t}\r\n\t\t\t\tthrow error;\r\n\t\t\t}\r\n\t\t}\r\n\t\topen(dbOptions, callback) {\r\n\t\t\tlet db = this.openDB(dbOptions);\r\n\t\t\tif (callback)\r\n\t\t\t\tcallback(null, db);\r\n\t\t\treturn db;\r\n\t\t}\r\n\t\ttransactionAsync(callback, asChild) {\r\n\t\t\tlet lastOperation;\r\n\t\t\tlet after, strictOrder;\r\n\t\t\tif (scheduledOperations) {\r\n\t\t\t\tlastOperation = asyncTransactionAfter ? scheduledOperations.appendAsyncTxn :\r\n\t\t\t\t\tscheduledOperations[asyncTransactionStrictOrder ? scheduledOperations.length - 1 : 0];\r\n\t\t\t} else {\r\n\t\t\t\tscheduledOperations = [];\r\n\t\t\t\tscheduledOperations.bytes = 0;\r\n\t\t\t}\r\n\t\t\tlet transactionSet;\r\n\t\t\tlet transactionSetIndex;\r\n\t\t\tif (lastOperation === true) { // continue last set of transactions\r\n\t\t\t\ttransactionSetIndex = scheduledTransactions.length - 1;\r\n\t\t\t\ttransactionSet = scheduledTransactions[transactionSetIndex];\r\n\t\t\t} else {\r\n\t\t\t\t// for now we signify transactions as a true\r\n\t\t\t\tif (asyncTransactionAfter) // by default we add a flag to put transactions after other operations\r\n\t\t\t\t\tscheduledOperations.appendAsyncTxn = true;\r\n\t\t\t\telse if (asyncTransactionStrictOrder)\r\n\t\t\t\t\tscheduledOperations.push(true);\r\n\t\t\t\telse // in before mode, we put all the async transaction at the beginning\r\n\t\t\t\t\tscheduledOperations.unshift(true);\r\n\t\t\t\tif (!scheduledTransactions) {\r\n\t\t\t\t\tscheduledTransactions = [];\r\n\t\t\t\t}\r\n\t\t\t\ttransactionSetIndex = scheduledTransactions.push(transactionSet = []) - 1;\r\n\t\t\t}\r\n\t\t\tlet index = (transactionSet.push(asChild ?\r\n\t\t\t\t{asChild, callback } : callback) - 1) << 1;\r\n\t\t\treturn this.scheduleCommit().results.then((results) => {\r\n\t\t\t\tlet transactionResults = results.transactionResults[transactionSetIndex];\r\n\t\t\t\tlet error = transactionResults[index];\r\n\t\t\t\tif (error)\r\n\t\t\t\t\tthrow error;\r\n\t\t\t\treturn transactionResults[index + 1];\r\n\t\t\t});\r\n\t\t}\r\n\t\tbackup(path) {\r\n\t\t\treturn new Promise((resolve, reject) => env.copy(path, false, (error) => {\r\n\t\t\t\tif (error) {\r\n\t\t\t\t\treject(error);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tresolve();\r\n\t\t\t\t}\r\n\t\t\t}));\r\n\t\t}\r\n\t\tisOperational() {\r\n\t\t\treturn this.status == 'open';\r\n\t\t}\r\n\t\tsync(callback) {\r\n\t\t\treturn env.sync(callback || function(error) {\r\n\t\t\t\tif (error) {\r\n\t\t\t\t\tconsole.error(error);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\tdeleteDB() {\r\n\t\t\tconsole.warn('deleteDB() is deprecated, use drop or dropSync instead');\r\n\t\t\treturn this.dropSync();\r\n\t\t}\r\n\t\tdropSync() {\r\n\t\t\tthis.transactionSync(() =>\r\n\t\t\t\tthis.db.drop({\r\n\t\t\t\t\tjustFreePages: false\r\n\t\t\t\t}),\r\n\t\t\t{ abortable: false });\r\n\t\t}\r\n\t\tclear(callback) {\r\n\t\t\tif (typeof callback == 'function')\r\n\t\t\t\treturn this.clearAsync(callback);\r\n\t\t\tconsole.warn('clear() is deprecated, use clearAsync or clearSync instead');\r\n\t\t\tthis.clearSync();\r\n\t\t}\r\n\t\tclearSync() {\r\n\t\t\tif (this.encoder) {\r\n\t\t\t\tif (this.encoder.clearSharedData)\r\n\t\t\t\t\tthis.encoder.clearSharedData()\r\n\t\t\t\telse if (this.encoder.structures)\r\n\t\t\t\t\tthis.encoder.structures = []\r\n\t\t\t}\r\n\t\t\tthis.transactionSync(() =>\r\n\t\t\t\tthis.db.drop({\r\n\t\t\t\t\tjustFreePages: true\r\n\t\t\t\t}),\r\n\t\t\t{ abortable: false });\r\n\t\t}\r\n\t\treaderCheck() {\r\n\t\t\treturn env.readerCheck();\r\n\t\t}\r\n\t\treaderList() {\r\n\t\t\treturn env.readerList().join('');\r\n\t\t}\r\n\t\tsetupSharedStructures() {\r\n\t\t\tconst getStructures = () => {\r\n\t\t\t\tlet lastVersion; // because we are doing a read here, we may need to save and restore the lastVersion from the last read\r\n\t\t\t\tif (this.useVersions)\r\n\t\t\t\t\tlastVersion = getLastVersion();\r\n\t\t\t\tlet buffer = this.getBinary(this.sharedStructuresKey);\r\n\t\t\t\tif (this.useVersions)\r\n\t\t\t\t\tsetLastVersion(lastVersion);\r\n\t\t\t\treturn buffer && this.decoder.decode(buffer);\r\n\t\t\t};\r\n\t\t\treturn {\r\n\t\t\t\tsaveStructures: (structures, isCompatible) => {\r\n\t\t\t\t\treturn this.transactionSyncStart(() => {\r\n\t\t\t\t\t\tlet existingStructuresBuffer = this.getBinary(this.sharedStructuresKey);\r\n\t\t\t\t\t\tlet existingStructures = existingStructuresBuffer && this.decoder.decode(existingStructuresBuffer);\r\n\t\t\t\t\t\tif (typeof isCompatible == 'function' ?\r\n\t\t\t\t\t\t\t\t!isCompatible(existingStructures) :\r\n\t\t\t\t\t\t\t\t(existingStructures && existingStructures.length != isCompatible))\r\n\t\t\t\t\t\t\treturn false; // it changed, we need to indicate that we couldn't update\r\n\t\t\t\t\t\tthis.put(this.sharedStructuresKey, structures);\r\n\t\t\t\t\t});\r\n\t\t\t\t},\r\n\t\t\t\tgetStructures,\r\n\t\t\t\tcopyBuffers: true, // need to copy any embedded buffers that are found since we use unsafe buffers\r\n\t\t\t};\r\n\t\t}\r\n\t}\r\n\t// if caching class overrides putSync, don't want to double call the caching code\r\n\tconst putSync = LMDBStore.prototype.putSync;\r\n\tconst removeSync = LMDBStore.prototype.removeSync;\r\n\taddReadMethods(LMDBStore, { env, maxKeySize, keyBytes, keyBytesView, getLastVersion });\r\n\tif (!options.readOnly)\r\n\t\taddWriteMethods(LMDBStore, { env, maxKeySize, fixedBuffer: keyBytes,\r\n\t\t\tresetReadTxn: LMDBStore.prototype.resetReadTxn, ...options });\r\n\tLMDBStore.prototype.supports = {\r\n\t\tpermanence: true,\r\n\t\tbufferKeys: true,\r\n\t\tpromises: true,\r\n\t\tsnapshots: true,\r\n\t\tclear: true,\r\n\t\tstatus: true,\r\n\t\tdeferredOpen: true,\r\n\t\topenCallback: true,\t\r\n\t};\r\n\treturn options.cache ?\r\n\t\tnew (CachingStore(LMDBStore))(options.name || null, options) :\r\n\t\tnew LMDBStore(options.name || null, options);\r\n}\r\n\r\n\r\nexport function getLastEntrySize() {\r\n\treturn lastSize;\r\n}\r\nexport function getLastVersion() {\r\n\treturn keyBytesView.getFloat64(16, true);\r\n}\r\n\r\nexport function setLastVersion(version) {\r\n\treturn keyBytesView.setFloat64(16, version, true);\r\n}\r\n\r\nconst KEY_BUFFER_SIZE = 4096;\r\nfunction allocateFixedBuffer() {\r\n\tkeyBytes = typeof Buffer != 'undefined' ? Buffer.allocUnsafeSlow(KEY_BUFFER_SIZE) : new Uint8Array(KEY_BUFFER_SIZE);\r\n\tconst keyBuffer = keyBytes.buffer;\r\n\tkeyBytesView = keyBytes.dataView = new DataView(keyBytes.buffer, 0, KEY_BUFFER_SIZE); // max key size is actually 4026\r\n\tkeyBytes.uint32 = new Uint32Array(keyBuffer, 0, KEY_BUFFER_SIZE >> 2);\r\n\tkeyBytes.float64 = new Float64Array(keyBuffer, 0, KEY_BUFFER_SIZE >> 3);\r\n\tkeyBytes.uint32.address = keyBytes.address = keyBuffer.address = getAddress(keyBytes);\r\n}\r\n\r\nfunction exists(path) {\r\n\tif (fs.existsSync)\r\n\t\treturn fs.existsSync(path);\r\n\ttry {\r\n\t\treturn fs.statSync(path);\r\n\t} catch (error) {\r\n//\t\tif (error.name == 'NotFound')\r\n\t\t\treturn false\r\n//\t\tthrow error\r\n\t}\r\n}\r\n\r\nfunction assignConstrainedProperties(allowedProperties, target) {\r\n\tfor (let i = 2; i < arguments.length; i++) {\r\n\t\tlet source = arguments[i];\r\n\t\tfor (let key in source) {\r\n\t\t\tif (allowedProperties.includes(key))\r\n\t\t\t\ttarget[key] = source[key];\r\n\t\t}\r\n\t}\r\n\treturn target;\r\n}","import { createRequire } from 'module';\r\nconst require = createRequire(import.meta.url);\r\nimport { fileURLToPath } from 'url';\r\nimport { dirname, default as path } from 'path';\r\nimport EventEmitter from 'events';\r\nimport { setExternals, setNativeFunctions } from './external.js';\r\nimport { arch, tmpdir, platform } from 'os';\r\nimport fs from 'fs';\r\nimport { Encoder as MsgpackrEncoder } from 'msgpackr';\r\nimport { WeakLRUCache } from 'weak-lru-cache';\r\nimport * as orderedBinary from 'ordered-binary';\r\nimport { isMainThread } from 'worker_threads';\r\norderedBinary.enableNullTermination();\r\n\r\nlet dirName = dirname(fileURLToPath(import.meta.url)).replace(/dist$/, '');\r\n\r\nsetNativeFunctions(require('node-gyp-build')(dirName));\r\nsetExternals({\r\n\trequire, arch, fs, tmpdir, path, MsgpackrEncoder, WeakLRUCache, orderedBinary,\r\n\tEventEmitter, os: platform(), onExit(callback) {\r\n\t\tif (process.getMaxListeners() < process.listenerCount('exit') + 8)\r\n\t\t\tprocess.setMaxListeners(process.listenerCount('exit') + 8);\r\n\t\tprocess.on('exit', callback);\r\n\t},\r\n\tisWorkerThread: !isMainThread,\r\n});\r\nexport { toBufferKey as keyValueToBuffer, compareKeys, compareKeys as compareKey, fromBufferKey as bufferToKeyValue } from 'ordered-binary';\r\nexport { ABORT, IF_EXISTS, asBinary } from './write.js';\r\nexport { levelup } from './level.js';\r\nexport { clearKeptObjects } from './external.js';\r\nexport { open, getLastVersion, getLastEntrySize, setLastVersion, allDbs } from './open.js';\r\nimport { toBufferKey as keyValueToBuffer, compareKeys as compareKey, fromBufferKey as bufferToKeyValue } from 'ordered-binary';\r\nimport { open, getLastVersion } from './open.js';\r\nexport default {\r\n\topen, getLastVersion, compareKey, keyValueToBuffer, bufferToKeyValue, path, EventEmitter\r\n};\r\n"],"names":["clearKeptObjects","require","getLastVersion","Uint8ArraySlice","path","pathModule","createRequire","orderedBinary","dirname","fileURLToPath","arch","fs","tmpdir","MsgpackrEncoder","WeakLRUCache","EventEmitter","platform","isMainThread","compareKey","keyValueToBuffer","bufferToKeyValue"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAU,IAAC,GAAG,CAAC,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC,UAAU,CAAC,CAACA,iCAAgB,CAAC,KAAC,eAAe,CAAC;AACnF,CAACC,SAAO,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,CAAC,YAAY,CAAC,CAAC,aAAa,CAAC,CAAC,eAAe,CAAC,CAAC,YAAY,CAAC,CAAC,eAAe;AAC7H,SAAS,kBAAkB,CAAC,SAAS,EAAE;AAC9C,CAAC,GAAG,GAAG,SAAS,CAAC,GAAG,CAAC;AACrB,CAAC,WAAW,GAAG,SAAS,CAAC,WAAW,CAAC;AACrC,CAAC,UAAU,GAAG,SAAS,CAAC,UAAU,CAAC;AACnC,CAACD,wBAAgB,GAAG,SAAS,CAAC,gBAAgB,CAAC;AAC/C,CAAC,eAAe,GAAG,SAAS,CAAC,eAAe,CAAC;AAC7C,CAAC,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC;AAC3B,CAAC,SAAS,GAAG,SAAS,CAAC,SAAS,CAAC;AACjC,CAAC,IAAI,SAAS,CAAC,MAAM;AACrB,QAAQ,MAAM,GAAG,SAAS,CAAC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