@kedem/okdb 3.1.1 → 3.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/okdb-native.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x7f204b=_0x20a5;(function(_0x4ea55f,_0x33faa3){const _0x1315eb=_0x20a5,_0x47070f=_0x4ea55f();while(!![]){try{const _0x42e11a=-parseInt(_0x1315eb(0x683))/0x1+-parseInt(_0x1315eb(0x4ef))/0x2*(parseInt(_0x1315eb(0x2e5))/0x3)+-parseInt(_0x1315eb(0x1c9))/0x4*(-parseInt(_0x1315eb(0x4be))/0x5)+parseInt(_0x1315eb(0x318))/0x6*(-parseInt(_0x1315eb(0x6e6))/0x7)+-parseInt(_0x1315eb(0x39e))/0x8+parseInt(_0x1315eb(0x56e))/0x9*(parseInt(_0x1315eb(0x56d))/0xa)+-parseInt(_0x1315eb(0x694))/0xb*(-parseInt(_0x1315eb(0x8a1))/0xc);if(_0x42e11a===_0x33faa3)break;else _0x47070f['push'](_0x47070f['shift']());}catch(_0x301781){_0x47070f['push'](_0x47070f['shift']());}}}(_0x4c75,0xd3dda));var require$$0$6=require('node:events'),require$$1$1=require(_0x7f204b(0x5da)),require$$0=require('node:fs'),require$$1=require('node:stream'),require$$4=require('node:path'),require$$0$2=require('node:crypto'),require$$0$1=require(_0x7f204b(0x49d)),require$$16=require(_0x7f204b(0x5dc)),require$$0$3=require(_0x7f204b(0x404)),require$$2=require(_0x7f204b(0x3ec)),require$$18=require('msgpackr'),require$$0$4=require(_0x7f204b(0x709)),require$$0$5=require(_0x7f204b(0x3a7));function getDefaultExportFromCjs(_0x40b9a5){const _0x2c28cb=_0x7f204b;return _0x40b9a5&&_0x40b9a5[_0x2c28cb(0x5c6)]&&Object[_0x2c28cb(0x4ca)][_0x2c28cb(0x6fa)][_0x2c28cb(0x3ce)](_0x40b9a5,_0x2c28cb(0x803))?_0x40b9a5[_0x2c28cb(0x803)]:_0x40b9a5;}var lib={'exports':{}},okdbError,hasRequiredOkdbError;function requireOkdbError(){if(hasRequiredOkdbError)return okdbError;hasRequiredOkdbError=0x1;class _0x1d1c18 extends Error{constructor(_0x45a6e5,_0x490bfa,_0x3a596b={}){const _0xf64379=_0x20a5;super(_0x45a6e5),this[_0xf64379(0x5d4)]=_0xf64379(0x69e),this[_0xf64379(0x19c)]=_0x490bfa,this['details']=_0x3a596b,_0x3a596b[_0xf64379(0x51d)]&&(this[_0xf64379(0x51d)]=_0x3a596b[_0xf64379(0x51d)]),Error[_0xf64379(0x349)](this,this['constructor']);}}class _0x1d0a6e extends _0x1d1c18{constructor(_0x2ed02d,_0x1e61b8,_0x57ee06,_0x309b77){const _0xd060b=_0x20a5;super(_0xd060b(0x74a)+_0x2ed02d+'@'+_0x1e61b8+_0xd060b(0x25a)+_0x57ee06+',\x20got\x20'+_0x309b77,_0xd060b(0x278),{'type':_0x2ed02d,'key':_0x1e61b8,'expectedVersion':_0x57ee06,'actualVersion':_0x309b77}),this[_0xd060b(0x5d4)]=_0xd060b(0x774);}}class _0x55acd5 extends _0x1d1c18{constructor(_0x28fac4,_0x571241){const _0x475992=_0x20a5;super(_0x28fac4+'@'+_0x571241+_0x475992(0x816),'NOT_FOUND',{'type':_0x28fac4,'key':_0x571241}),this[_0x475992(0x5d4)]=_0x475992(0x6f2);}}class _0x417f3a extends _0x1d1c18{constructor(_0x41fc9a,_0x593cf7){const _0x7aef73=_0x20a5;super(_0x41fc9a+'@'+_0x593cf7+_0x7aef73(0x684),_0x7aef73(0x877),{'type':_0x41fc9a,'key':_0x593cf7}),this[_0x7aef73(0x5d4)]='OKDBAlreadyExistsError';}}class _0x5c2fc4 extends _0x1d1c18{constructor(_0x2ef790,_0x500ee2){const _0x326a9d=_0x20a5,_0x4501b4=typeof _0x500ee2;super(_0x326a9d(0x258)+_0x2ef790+_0x326a9d(0x45b)+_0x4501b4+_0x326a9d(0x5b7)+_0x500ee2,'INVALID_INDEX_KEY',{'index':_0x2ef790,'key':_0x500ee2,'keyType':_0x4501b4}),this[_0x326a9d(0x5d4)]=_0x326a9d(0x5fd);}}class _0x37e07f extends _0x1d1c18{constructor(_0x440efa){const _0x42e6dc=_0x20a5,_0x15ec2a=typeof _0x440efa;super(_0x42e6dc(0x7d0)+_0x15ec2a+_0x42e6dc(0x768)+_0x440efa,_0x42e6dc(0x4ab),{'key':_0x440efa,'keyType':_0x15ec2a}),this[_0x42e6dc(0x5d4)]=_0x42e6dc(0x1ad);}}class _0x42f1b1 extends _0x1d1c18{constructor(_0x1d7d11){const _0x33d72a=_0x20a5;super(_0x33d72a(0x767)+_0x1d7d11+'\x27\x20doesn\x27t\x20exist',_0x33d72a(0x76a),{'type':_0x1d7d11}),this[_0x33d72a(0x5d4)]=_0x33d72a(0x50b);}}class _0x586ddf extends _0x1d1c18{constructor(_0x3eb145){const _0x57eac2=_0x20a5;super(_0x57eac2(0x767)+_0x3eb145+'\x27\x20already\x20registered',_0x57eac2(0x1b4),{'type':_0x3eb145}),this[_0x57eac2(0x5d4)]=_0x57eac2(0x1f5);}}class _0x2d3866 extends _0x1d1c18{constructor(_0x11f0fc,_0x2b5d0c){const _0x2d7977=_0x20a5;super(_0x2d7977(0x479)+_0x2b5d0c+_0x2d7977(0x1ff)+_0x11f0fc+'\x27\x20doesn\x27t\x20exist',_0x2d7977(0x4ac),{'type':_0x11f0fc,'index':_0x2b5d0c}),this[_0x2d7977(0x5d4)]=_0x2d7977(0x474);}}class _0x1abb7 extends _0x1d1c18{constructor(_0x2c01b2,_0x3064c1){const _0x1d58e1=_0x20a5;super(_0x1d58e1(0x479)+_0x3064c1+'\x27\x20on\x20type\x20\x27'+_0x2c01b2+_0x1d58e1(0x861),_0x1d58e1(0x74e),{'type':_0x2c01b2,'index':_0x3064c1}),this[_0x1d58e1(0x5d4)]='OKDBIndexAlreadyRegisteredError';}}class _0x314460 extends _0x1d1c18{constructor(_0x2ac9f7,_0x51c129={}){const _0x2e3ed4=_0x20a5;super(_0x2ac9f7,_0x2e3ed4(0x4f4),_0x51c129),this['name']='OKDBInvalidValueError';}}class _0x45f66c extends _0x1d1c18{constructor(_0x407531,_0x19d6f9,_0x3e1914,_0x5a7d67,_0x2736fe){const _0x1dfafb=_0x20a5;super('Unique\x20constraint\x20violated\x20on\x20'+_0x407531+'@'+_0x19d6f9+_0x1dfafb(0x6ff)+_0x3e1914+_0x1dfafb(0x230)+_0x5a7d67+_0x1dfafb(0x19e)+_0x2736fe+'\x27','UNIQUE_CONSTRAINT',{'type':_0x407531,'index':_0x19d6f9,'indexKey':_0x3e1914,'existingKey':_0x5a7d67,'conflictingKey':_0x2736fe}),this[_0x1dfafb(0x5d4)]=_0x1dfafb(0x3a0);}}class _0x146107 extends _0x1d1c18{constructor(_0x537dda,_0x90e01a,_0x206ae9){const _0x1abac3=_0x20a5;super(_0x1abac3(0x507)+_0x537dda+'@'+_0x90e01a,_0x1abac3(0x54b),{'type':_0x537dda,'key':_0x90e01a,'errors':_0x206ae9}),this[_0x1abac3(0x5d4)]='OKDBSchemaValidationError',this[_0x1abac3(0x225)]=_0x537dda,this['key']=_0x90e01a,this[_0x1abac3(0x2f4)]=_0x206ae9;}}class _0x2655b8 extends _0x1d1c18{constructor(_0x306135,_0x4329d8){const _0x56400c=_0x20a5;super(_0x56400c(0x384)+_0x306135+':\x20'+_0x4329d8['length']+_0x56400c(0x72e),_0x56400c(0x2ce),{'type':_0x306135,'failures':_0x4329d8}),this[_0x56400c(0x5d4)]=_0x56400c(0x5c7),this[_0x56400c(0x225)]=_0x306135,this[_0x56400c(0x2ec)]=_0x4329d8;}}class _0x30ca91 extends _0x1d1c18{constructor(_0x4ea55b,_0x58dad9,_0x530624,_0xbf02c4,_0x2fc353){const _0x161072=_0x20a5;super('Foreign\x20key\x20violation:\x20'+_0x4ea55b+'@'+_0x58dad9+'.'+_0x530624+_0x161072(0x2fe)+_0xbf02c4+'@'+_0x2fc353+_0x161072(0x643),_0x161072(0x890),{'sourceType':_0x4ea55b,'sourceKey':_0x58dad9,'fieldPath':_0x530624,'targetType':_0xbf02c4,'targetKey':_0x2fc353}),this[_0x161072(0x5d4)]=_0x161072(0x832),this[_0x161072(0x5db)]=_0x4ea55b,this[_0x161072(0x42a)]=_0x58dad9,this['fieldPath']=_0x530624,this[_0x161072(0x3b2)]=_0xbf02c4,this['targetKey']=_0x2fc353;}}class _0x2bbf99 extends _0x1d1c18{constructor(_0x132647,_0x3ebd19,_0x3a05c4){const _0x78eb0=_0x20a5;super('Cannot\x20delete\x20'+_0x132647+'@'+_0x3ebd19+':\x20'+_0x3a05c4[_0x78eb0(0x29a)]+_0x78eb0(0x4ce),_0x78eb0(0x4b7),{'targetType':_0x132647,'targetKey':_0x3ebd19,'references':_0x3a05c4}),this['name']='OKDBForeignKeyDeleteError',this[_0x78eb0(0x3b2)]=_0x132647,this[_0x78eb0(0x308)]=_0x3ebd19,this[_0x78eb0(0x7b1)]=_0x3a05c4;}}class _0xdef7a4 extends _0x1d1c18{constructor(_0x32aaf3,_0x305aa5,_0x1aeec5){const _0x34e230=_0x20a5;super(_0x34e230(0x5e2)+_0x305aa5+_0x34e230(0x434)+_0x32aaf3+'\x22\x20is\x20used\x20by:\x20'+_0x1aeec5['map'](_0x11d214=>_0x11d214[_0x34e230(0x806)]+':'+_0x11d214[_0x34e230(0x5d4)])['join'](',\x20'),_0x34e230(0x86f),{'type':_0x32aaf3,'index':_0x305aa5,'usedBy':_0x1aeec5}),this['name']='OKDBIndexHasConsumersError';}}return okdbError={'OKDBError':_0x1d1c18,'OKDBVersionMismatchError':_0x1d0a6e,'OKDBNotFoundError':_0x55acd5,'OKDBAlreadyExistsError':_0x417f3a,'OKDBInvalidIndexKeyError':_0x5c2fc4,'OKDBInvalidPrimaryKeyError':_0x37e07f,'OKDBTypeNotRegisteredError':_0x42f1b1,'OKDBTypeAlreadyRegisteredError':_0x586ddf,'OKDBIndexNotRegisteredError':_0x2d3866,'OKDBIndexAlreadyRegisteredError':_0x1abb7,'OKDBInvalidValueError':_0x314460,'OKDBUniqueConstraintError':_0x45f66c,'OKDBSchemaValidationError':_0x146107,'OKDBSchemaCollectionError':_0x2655b8,'OKDBForeignKeyError':_0x30ca91,'OKDBForeignKeyDeleteError':_0x2bbf99,'OKDBIndexHasConsumersError':_0xdef7a4},okdbError;}var errors,hasRequiredErrors;function requireErrors(){const _0xbed604=_0x7f204b;if(hasRequiredErrors)return errors;hasRequiredErrors=0x1;const _0x495a0e=requireOkdbError(),_0x8a1db={'VERSION_MISMATCH':_0x495a0e[_0xbed604(0x774)],'NOT_FOUND':_0x495a0e[_0xbed604(0x6f2)],'ALREADY_EXISTS':_0x495a0e[_0xbed604(0x591)],'INVALID_INDEX_KEY':_0x495a0e[_0xbed604(0x5fd)],'INVALID_PRIMARY_KEY':_0x495a0e[_0xbed604(0x1ad)],'TYPE_NOT_REGISTERED':_0x495a0e[_0xbed604(0x50b)],'TYPE_ALREADY_REGISTERED':_0x495a0e['OKDBTypeAlreadyRegisteredError'],'INDEX_NOT_REGISTERED':_0x495a0e[_0xbed604(0x474)],'INDEX_ALREADY_REGISTERED':_0x495a0e[_0xbed604(0x2db)],'INVALID_VALUE':_0x495a0e[_0xbed604(0x4da)],'UNIQUE_CONSTRAINT':_0x495a0e[_0xbed604(0x3a0)],'SCHEMA_VALIDATION_FAILED':_0x495a0e[_0xbed604(0x257)],'SCHEMA_COLLECTION_INVALID':_0x495a0e[_0xbed604(0x5c7)],'FOREIGN_KEY_VIOLATION':_0x495a0e[_0xbed604(0x832)],'FOREIGN_KEY_DELETE_RESTRICTED':_0x495a0e[_0xbed604(0x475)],'INDEX_HAS_CONSUMERS':_0x495a0e[_0xbed604(0x826)]};class _0x208a25 extends _0x495a0e[_0xbed604(0x69e)]{constructor(_0x9aa701,_0x452fe5){const _0x32a77e=_0xbed604;super(_0x9aa701+':\x20not\x20implemented\x20in\x20the\x20native\x20build\x20yet'+(_0x452fe5?'\x20('+_0x452fe5+')':''),_0x32a77e(0x84d),{'feature':_0x9aa701}),this['name']=_0x32a77e(0x3a3);}}function _0x6622bc(_0x471572){const _0x5276f6=_0xbed604;if(!_0x471572||typeof _0x471572!==_0x5276f6(0x2bf)||!_0x471572[_0x5276f6(0x5ae)])return _0x471572;delete _0x471572[_0x5276f6(0x5ae)];const _0x477aea=_0x471572[_0x5276f6(0x19c)];if(_0x477aea===_0x5276f6(0x4c8)||_0x477aea===_0x5276f6(0x70a)||_0x477aea===_0x5276f6(0x3f4)){const _0x2c2455=_0x477aea==='TypeError'?TypeError[_0x5276f6(0x4ca)]:_0x477aea==='RangeError'?RangeError[_0x5276f6(0x4ca)]:Error[_0x5276f6(0x4ca)];Object[_0x5276f6(0x542)](_0x471572,_0x2c2455),_0x471572[_0x5276f6(0x5d4)]=_0x477aea;if(_0x471572['details']&&_0x471572[_0x5276f6(0x78a)][_0x5276f6(0x424)]!==undefined)_0x471572[_0x5276f6(0x424)]=_0x471572[_0x5276f6(0x78a)][_0x5276f6(0x424)];return delete _0x471572[_0x5276f6(0x19c)],delete _0x471572[_0x5276f6(0x78a)],_0x471572;}const _0x543032=_0x8a1db[_0x477aea];Object[_0x5276f6(0x542)](_0x471572,(_0x543032||_0x495a0e[_0x5276f6(0x69e)])['prototype']),_0x471572[_0x5276f6(0x5d4)]=_0x543032?_0x543032[_0x5276f6(0x5d4)][_0x5276f6(0x233)](/^OKDB/,'OKDB'):'OKDBError';const _0x2a4d64=_0x471572[_0x5276f6(0x78a)]||{};_0x477aea===_0x5276f6(0x54b)&&(_0x471572[_0x5276f6(0x225)]=_0x2a4d64['type'],_0x471572['key']=_0x2a4d64[_0x5276f6(0x3d3)],_0x471572[_0x5276f6(0x2f4)]=_0x2a4d64['errors']);_0x477aea===_0x5276f6(0x2ce)&&(_0x471572[_0x5276f6(0x225)]=_0x2a4d64[_0x5276f6(0x225)],_0x471572['failures']=_0x2a4d64['failures']);if(_0x477aea===_0x5276f6(0x890)){for(const _0x52b9cf of[_0x5276f6(0x5db),_0x5276f6(0x42a),'fieldPath',_0x5276f6(0x3b2),_0x5276f6(0x308)])_0x471572[_0x52b9cf]=_0x2a4d64[_0x52b9cf];}if(_0x477aea===_0x5276f6(0x4b7)){for(const _0x5383ea of[_0x5276f6(0x3b2),'targetKey','references'])_0x471572[_0x5383ea]=_0x2a4d64[_0x5383ea];}if(_0x2a4d64[_0x5276f6(0x51d)])_0x471572[_0x5276f6(0x51d)]=_0x2a4d64[_0x5276f6(0x51d)];if(_0x2a4d64[_0x5276f6(0x424)]!==undefined)_0x471572[_0x5276f6(0x424)]=_0x2a4d64[_0x5276f6(0x424)];if(_0x2a4d64['retryable']!==undefined)_0x471572[_0x5276f6(0x51f)]=_0x2a4d64[_0x5276f6(0x51f)];return _0x471572;}function _0x5ea6fe(_0x3fa3d8){const _0x59ed9d=_0xbed604;if(_0x3fa3d8===undefined)return _0x59ed9d(0x7b8);if(_0x3fa3d8===null)return _0x59ed9d(0x88a);if(typeof _0x3fa3d8===_0x59ed9d(0x78e))return _0x3fa3d8?_0x59ed9d(0x78e):'empty\x20string';if(typeof _0x3fa3d8===_0x59ed9d(0x8a6))return _0x59ed9d(0x8a6);if(typeof _0x3fa3d8!==_0x59ed9d(0x2bf))return typeof _0x3fa3d8;if(Array[_0x59ed9d(0x7c8)](_0x3fa3d8))return _0x3fa3d8[_0x59ed9d(0x29a)]?_0x59ed9d(0x5a3):'empty\x20array';if(_0x3fa3d8 instanceof Date)return'Date';if(_0x3fa3d8 instanceof Map)return _0x59ed9d(0x3ab);if(Buffer[_0x59ed9d(0x2e0)](_0x3fa3d8))return _0x59ed9d(0x7e3);return _0x59ed9d(0x2bf);}const _0x3c5849=(_0x49d29f,_0x1244c7,_0x50fa24)=>new _0x495a0e[(_0xbed604(0x69e))](_0x1244c7,_0x49d29f,_0x50fa24),_0x509098=(_0x1e62c9,_0x126045,_0x58f0b6)=>_0x3c5849(_0xbed604(0x7d2),_0x1e62c9+_0xbed604(0x37f)+_0x126045+_0xbed604(0x688)+_0x5ea6fe(_0x58f0b6),{'argument':_0x1e62c9,'expected':_0x126045,'got':_0x5ea6fe(_0x58f0b6)}),_0x906e9f=(_0x28f62d,_0x4633a7)=>_0x3c5849('INVALID_TYPE_NAME',_0x28f62d+_0xbed604(0x48f)+_0x5ea6fe(_0x4633a7),{'argument':_0x28f62d,'expected':_0xbed604(0x4b5),'got':_0x5ea6fe(_0x4633a7)}),_0x367e87=(_0x222619,_0x424f07)=>_0x3c5849(_0xbed604(0x53f),_0x222619+':\x20'+_0x424f07,{'argument':_0x222619,'problem':_0x424f07});function _0x2e352b(_0x4b890b,_0x47b239=_0xbed604(0x51a)){const _0x31f4d6=_0xbed604;if(_0x4b890b===undefined)return{};if(_0x4b890b===null)throw _0x367e87(_0x47b239,_0x31f4d6(0x56f));return _0x4b890b;}return errors={'reclass':_0x6622bc,'NotImplementedNative':_0x208a25,'BY_CODE':_0x8a1db,'describe':_0x5ea6fe,'invalidArgument':_0x509098,'invalidTypeName':_0x906e9f,'invalidOptions':_0x367e87,'optionsArg':_0x2e352b,..._0x495a0e},errors;}var bridge_1,hasRequiredBridge;function requireBridge(){if(hasRequiredBridge)return bridge_1;hasRequiredBridge=0x1;const _0x13652d=new Map(),_0x5f5251=new Map();let _0xcbbd6f=0x1;const _0x30dfcf=new Map(),_0x3dc9b0=new Map();let _0x46fc4d=0x1;const _0x4d34ad=new Map();let _0x6c73f8=0x1;const _0x42e555=new Map();function _0x5f3076(_0x426b67,_0x47931d=null){const _0x37cbf0=_0x20a5,_0x2fb6af=_0x6c73f8++;_0x4d34ad[_0x37cbf0(0x534)](_0x2fb6af,_0x426b67);if(_0x47931d)_0x42e555[_0x37cbf0(0x534)](_0x2fb6af,_0x47931d);return _0x2fb6af;}function _0x264c42(_0x5ebea8,_0x73385b){const _0x66a9ce=_0x20a5,_0xf2b1f=_0x4d34ad[_0x66a9ce(0x7f0)](_0x5ebea8),_0x5dbf4d=Array[_0x66a9ce(0x4ca)][_0x66a9ce(0x231)]['call'](arguments,0x2),_0xf51ce7=_0x552369=>_0x4504d8(_0x552369,_0x42e555[_0x66a9ce(0x7f0)](_0x5ebea8));let _0xc51cc7=_0x5dbf4d;if(_0x73385b==='start'||_0x73385b==='stop'||_0x73385b===_0x66a9ce(0x44c)||_0x73385b===_0x66a9ce(0x45d)||_0x73385b==='assertStartAllowed')_0xc51cc7=[_0xf51ce7(_0x5dbf4d[0x0])];else{if(_0x73385b===_0x66a9ce(0x272))_0xc51cc7=[_0x5dbf4d[0x0],_0x5dbf4d[0x1],_0xf51ce7(_0x5dbf4d[0x2])];else{if(_0x73385b===_0x66a9ce(0x2a0))_0xc51cc7=[_0xf51ce7(_0x5dbf4d[0x0])];}}let _0x4a3500=_0xf2b1f[_0x73385b](..._0xc51cc7);if(_0x4a3500&&typeof _0x4a3500[_0x66a9ce(0x315)]===_0x66a9ce(0x8a6))_0x4a3500=_0xc17575(_0x4a3500);if(_0x73385b==='start'){const _0x46206e=_0x4a3500&&typeof _0x4a3500===_0x66a9ce(0x2bf)?_0x5f3076(_0x4a3500):_0x5f3076({});return{'$api':_0x46206e};}return _0x4a3500===undefined?null:_0x4a3500;}function _0x4504d8(_0x3a5b2f,_0xa7f641){const _0x5a1bc=_0x20a5;let _0x2792b3=_0x38978f[_0x5a1bc(0x7f0)](_0x3a5b2f[_0x5a1bc(0x855)]);const _0x41505a=_0x2792b3&&_0x2792b3[_0x5a1bc(0x44b)]||_0xa7f641||_0x45ff05,_0x252878=(_0x34b8a9,..._0x1a3805)=>_0x41505a['_call'](_0x5a1bc(0x3e1),null,_0x34b8a9,[_0x3a5b2f[_0x5a1bc(0x225)],_0x3a5b2f[_0x5a1bc(0x5d4)],..._0x1a3805],!![]);return{'okdb':_0x41505a,'key':_0x3a5b2f['key'],'type':_0x3a5b2f[_0x5a1bc(0x225)],'name':_0x3a5b2f[_0x5a1bc(0x5d4)],get 'storeEnv'(){const _0x50aba8=_0x5a1bc;if(!_0x2792b3&&_0x41505a&&_0x41505a['_isOpen']&&_0x3a5b2f['storeEnvName'])_0x2792b3=_0x41505a[_0x50aba8(0x3fd)][_0x50aba8(0x7f0)](_0x3a5b2f[_0x50aba8(0x808)]);return _0x2792b3;},'storeEnvName':_0x3a5b2f[_0x5a1bc(0x808)],'config':_0x3a5b2f[_0x5a1bc(0x524)],'meta':_0x3a5b2f[_0x5a1bc(0x719)],'options':_0x3a5b2f[_0x5a1bc(0x51a)],'emit':(_0x56c225,_0x1621b8)=>_0x252878(_0x5a1bc(0x1b2),_0x56c225,_0x1621b8),'updateStatus':async(_0x1b5d66,_0xde1c93)=>_0x252878(_0x5a1bc(0x4e5),_0x1b5d66,_0xde1c93==null?null:String(_0xde1c93&&_0xde1c93[_0x5a1bc(0x4ee)]?_0xde1c93['message']:_0xde1c93)),'updateMeta':async _0xa69ec1=>_0x252878(_0x5a1bc(0x376),{'meta':_0xa69ec1}),'updateConfig':async _0x20bd50=>_0x252878(_0x5a1bc(0x376),{'config':_0x20bd50})};}function _0x367217(_0x401e16,_0x1df650,_0x2e529c){const _0x155105=_0x20a5;if(_0x401e16===_0x155105(0x63b)){const _0x2b038e=_0x39a2be(_0x1df650);let _0x399ae3=_0x2b038e(_0x2e529c);if(_0x399ae3&&typeof _0x399ae3[_0x155105(0x315)]===_0x155105(0x8a6))_0x399ae3=_0xc17575(_0x399ae3);if(!_0x399ae3||typeof _0x399ae3[_0x155105(0x2ad)]!==_0x155105(0x8a6)){const {OKDBError:_0x9f3d}=requireErrors();throw new _0x9f3d(_0x155105(0x635)+(_0x2e529c&&_0x2e529c[_0x155105(0x225)])+'\x22\x20must\x20return\x20{\x20embed(input):\x20Promise<Float32Array>\x20}',_0x155105(0x209));}return _0x399ae3[_0x155105(0x5ae)]=_0x2b038e['__okdb'],{'$id':_0x5f3076(_0x399ae3),'batch':typeof _0x399ae3['embedBatch']===_0x155105(0x8a6)};}const _0x499240=_0x4d34ad[_0x155105(0x7f0)](_0x1df650);if(_0x401e16===_0x155105(0x4e3))return _0x4d34ad['delete'](_0x1df650),_0x5c1af7[_0x155105(0x36f)](_0x1df650),null;if(!_0x499240)throw new Error(_0x155105(0x1c0));if(typeof _0x499240[_0x401e16]!==_0x155105(0x8a6))return null;if(_0x401e16===_0x155105(0x2ad)||_0x401e16===_0x155105(0x7fb)){const _0xa73ced=_0x401e16===_0x155105(0x7fb)?_0x37bde5(_0x1df650,_0x499240,_0x2e529c):_0xa17cea(_0x1df650,_0x499240,_0x401e16,_0x2e529c);return _0x401e16==='embed'?Array[_0x155105(0x52e)](_0xa73ced):_0xa73ced[_0x155105(0x70b)](_0x4e7c07=>Array['from'](_0x4e7c07));}let _0x4b7635=_0x499240[_0x401e16]();if(_0x4b7635&&typeof _0x4b7635['then']===_0x155105(0x8a6))_0x4b7635=_0xc17575(_0x4b7635);return _0x4b7635===undefined?null:_0x4b7635;}function _0x26df2a(_0x2bfbfa,_0x3c2ae9,_0x16f802){const _0x4a527f=_0x20a5;if(_0x2bfbfa===_0x4a527f(0x63b)){const _0x477de1=_0x39a2be(_0x3c2ae9);let _0x2d9ddd=_0x477de1(_0x16f802[_0x4a527f(0x524)]??{},{'dims':_0x16f802['dims'],'dir':_0x16f802['dir']});if(_0x2d9ddd&&typeof _0x2d9ddd[_0x4a527f(0x315)]===_0x4a527f(0x8a6))_0x2d9ddd=_0xc17575(_0x2d9ddd);for(const _0x2aad2e of[_0x4a527f(0x6f8),_0x4a527f(0x6a0),_0x4a527f(0x5ca),_0x4a527f(0x4c5),_0x4a527f(0x5f8)]){if(!_0x2d9ddd||typeof _0x2d9ddd[_0x2aad2e]!==_0x4a527f(0x8a6)){const {OKDBError:_0x315c89}=requireErrors();throw new _0x315c89(_0x4a527f(0x251)+_0x2aad2e+'()',_0x4a527f(0x7eb),{'method':_0x2aad2e});}}return{'$id':_0x5f3076(_0x2d9ddd)};}const _0x1addba=_0x4d34ad[_0x4a527f(0x7f0)](_0x3c2ae9);if(_0x2bfbfa===_0x4a527f(0x4e3))return _0x4d34ad[_0x4a527f(0x36f)](_0x3c2ae9),null;if(!_0x1addba)throw new Error(_0x4a527f(0x54c));const _0x1d2b59=_0x53c343=>_0x53c343?_0x53c343[_0x4a527f(0x70b)](_0x195936=>({'key':_0x195936[_0x4a527f(0x3d3)],'vector':Float32Array[_0x4a527f(0x52e)](_0x195936[_0x4a527f(0x207)])})):null;let _0x54358a;switch(_0x2bfbfa){case _0x4a527f(0x6f8):case _0x4a527f(0x62d):{const _0x374692=_0x1d2b59(_0x16f802);_0x54358a=_0x1addba[_0x2bfbfa](_0x374692?async()=>_0x374692:undefined);break;}case'add':_0x54358a=_0x1addba[_0x4a527f(0x6a0)](_0x16f802[0x0],Float32Array[_0x4a527f(0x52e)](_0x16f802[0x1]),_0x16f802[0x2]??undefined);break;case _0x4a527f(0x5ca):_0x54358a=_0x1addba[_0x4a527f(0x5ca)](_0x16f802);break;case _0x4a527f(0x4c5):_0x54358a=_0x1addba[_0x4a527f(0x4c5)](Float32Array[_0x4a527f(0x52e)](_0x16f802[_0x4a527f(0x5ee)]),_0x16f802[_0x4a527f(0x49b)]??{});break;case _0x4a527f(0x6b3):_0x54358a=typeof _0x1addba[_0x4a527f(0x6b3)]==='function'?_0x1addba[_0x4a527f(0x6b3)](_0x16f802??undefined):![];break;case'stop':_0x54358a=typeof _0x1addba[_0x4a527f(0x4a5)]===_0x4a527f(0x8a6)?_0x1addba[_0x4a527f(0x4a5)]():undefined;break;case _0x4a527f(0x5e0):_0x54358a=typeof _0x1addba['tick']===_0x4a527f(0x8a6)?_0x1addba[_0x4a527f(0x5e0)]():undefined;break;case _0x4a527f(0x5f8):return Number(_0x1addba['count']());case'info':return(typeof _0x1addba['info']===_0x4a527f(0x8a6)?_0x1addba[_0x4a527f(0x7a4)]():null)??{};default:throw new Error(_0x4a527f(0x2b3)+_0x2bfbfa);}if(_0x54358a&&typeof _0x54358a[_0x4a527f(0x315)]===_0x4a527f(0x8a6))_0x54358a=_0xc17575(_0x54358a);return _0x54358a===undefined?null:_0x54358a;}function _0x3956cf(_0x101506,_0x179e17,_0x3ab457){const _0x48f071=_0x20a5;if(_0x101506===_0x48f071(0x63b)){const _0x715b57=_0x39a2be(_0x179e17);let _0x88ba9f=_0x715b57(_0x3ab457);if(_0x88ba9f&&typeof _0x88ba9f[_0x48f071(0x315)]===_0x48f071(0x8a6))_0x88ba9f=_0xc17575(_0x88ba9f);if(!_0x88ba9f)return null;const _0x41608e=['write',_0x48f071(0x62c),_0x48f071(0x7f0),'count',_0x48f071(0x8b7),_0x48f071(0x499)][_0x48f071(0x6c2)](_0xc00b8=>typeof _0x88ba9f[_0xc00b8]===_0x48f071(0x8a6));return{'$id':_0x5f3076(_0x88ba9f),'has':_0x41608e};}const _0x257b78=_0x4d34ad[_0x48f071(0x7f0)](_0x179e17);if(_0x101506==='free')return _0x4d34ad[_0x48f071(0x36f)](_0x179e17),null;if(!_0x257b78)throw new Error(_0x48f071(0x8ab));const _0x4220a5=_0x2356a5=>Float32Array[_0x48f071(0x52e)](_0x2356a5);let _0x39d5b2;switch(_0x101506){case _0x48f071(0x1a5):_0x39d5b2=_0x257b78['put'](_0x3ab457[0x0],_0x4220a5(_0x3ab457[0x1]));break;case _0x48f071(0x5ca):_0x39d5b2=_0x257b78[_0x48f071(0x5ca)](_0x3ab457);break;case _0x48f071(0x650):{_0x39d5b2=typeof _0x257b78[_0x48f071(0x650)]===_0x48f071(0x8a6)?_0x257b78[_0x48f071(0x650)]():[];if(_0x39d5b2&&typeof _0x39d5b2[_0x48f071(0x315)]==='function')_0x39d5b2=_0xc17575(_0x39d5b2);return Array[_0x48f071(0x52e)](_0x39d5b2??[],_0x5117b4=>({'key':_0x5117b4['key'],'vector':Array[_0x48f071(0x52e)](_0x5117b4[_0x48f071(0x207)])}));}case _0x48f071(0x5a5):_0x39d5b2=_0x257b78['write'](_0x3ab457[_0x48f071(0x696)][_0x48f071(0x70b)](_0x4d2615=>({'key':_0x4d2615[_0x48f071(0x3d3)],'vector':_0x4220a5(_0x4d2615[_0x48f071(0x207)])})),_0x3ab457[_0x48f071(0x83d)]);break;case _0x48f071(0x62c):_0x39d5b2=_0x257b78[_0x48f071(0x62c)](_0x3ab457??undefined);if(_0x39d5b2&&typeof _0x39d5b2['then']==='function')_0x39d5b2=_0xc17575(_0x39d5b2);return Array[_0x48f071(0x52e)](_0x39d5b2??[]);case _0x48f071(0x7f0):{_0x39d5b2=_0x257b78[_0x48f071(0x7f0)](_0x3ab457);if(_0x39d5b2&&typeof _0x39d5b2['then']===_0x48f071(0x8a6))_0x39d5b2=_0xc17575(_0x39d5b2);return _0x39d5b2==null?null:Array['from'](_0x39d5b2);}case _0x48f071(0x5f8):return Number(_0x257b78[_0x48f071(0x5f8)]());case'dropAll':_0x39d5b2=_0x257b78['dropAll']();break;case'stats':return _0x257b78[_0x48f071(0x499)]()??null;default:throw new Error(_0x48f071(0x7ad)+_0x101506);}if(_0x39d5b2&&typeof _0x39d5b2[_0x48f071(0x315)]===_0x48f071(0x8a6))_0x39d5b2=_0xc17575(_0x39d5b2);return _0x39d5b2===undefined?null:_0x39d5b2;}const _0x5a8b15=new Map();function _0xa17cea(_0x4497c6,_0x1effe4,_0x42e799,_0xcf5f0){const _0x202b84=_0x20a5,_0x336275=_0x4497c6+'\x00'+_0x42e799+'\x00'+JSON[_0x202b84(0x427)](_0xcf5f0),_0x132c61=_0x5a8b15[_0x202b84(0x7f0)](_0x336275);if(_0x132c61){if(_0x132c61[_0x202b84(0x8ac)]==='pending')throw _0x44e14a();_0x5a8b15[_0x202b84(0x36f)](_0x336275);if(_0x132c61[_0x202b84(0x8ac)]===_0x202b84(0x4f6))throw _0x132c61[_0x202b84(0x3a5)];return _0x132c61[_0x202b84(0x3a5)];}const _0x28223f=_0x1effe4[_0x42e799](_0xcf5f0);if(!_0x28223f||typeof _0x28223f['then']!==_0x202b84(0x8a6))return _0x28223f;const _0x572bc4={'state':_0x202b84(0x773),'value':undefined};_0x28223f['then'](_0x46f04b=>{const _0x5c38bd=_0x202b84;_0x572bc4[_0x5c38bd(0x8ac)]='ok',_0x572bc4['value']=_0x46f04b;if(_0x5a8b15[_0x5c38bd(0x7f0)](_0x336275)===_0x572bc4)_0x33fff4(_0x1effe4);},_0x2815ce=>{const _0x475227=_0x202b84;_0x572bc4[_0x475227(0x8ac)]=_0x475227(0x4f6),_0x572bc4[_0x475227(0x3a5)]=_0x2815ce;if(_0x5a8b15[_0x475227(0x7f0)](_0x336275)===_0x572bc4)_0x33fff4(_0x1effe4);});for(let _0x14fb89=0x0;_0x14fb89<0x64&&_0x572bc4[_0x202b84(0x8ac)]==='pending';_0x14fb89++)process[_0x202b84(0x701)]();if(_0x572bc4[_0x202b84(0x8ac)]==='ok')return _0x572bc4[_0x202b84(0x3a5)];if(_0x572bc4[_0x202b84(0x8ac)]===_0x202b84(0x4f6))throw _0x572bc4[_0x202b84(0x3a5)];_0x5a8b15['set'](_0x336275,_0x572bc4);throw _0x44e14a();}const _0x5c1af7=new Map(),_0x3f8e95=0xa*0x3c*0x3e8;function _0x37bde5(_0x2b7ddf,_0x42cc9a,_0x357027){const _0x45255e=_0x20a5,_0x5ab82d=Array[_0x45255e(0x7c8)](_0x357027)?_0x357027:Array[_0x45255e(0x52e)](_0x357027??[]);let _0x23e98a=_0x5c1af7[_0x45255e(0x7f0)](_0x2b7ddf);if(!_0x23e98a)_0x5c1af7[_0x45255e(0x534)](_0x2b7ddf,_0x23e98a=new Map());const _0x49eb5c=Date[_0x45255e(0x200)]();for(const [_0x2cfa69,_0x3d0264]of _0x23e98a)if(_0x3d0264[_0x45255e(0x695)][_0x45255e(0x8ac)]!=='pending'&&_0x49eb5c-_0x3d0264[_0x45255e(0x695)]['at']>_0x3f8e95)_0x23e98a[_0x45255e(0x36f)](_0x2cfa69);const _0x4741ce=_0x5ab82d[_0x45255e(0x70b)](_0x278ef4=>JSON['stringify'](_0x278ef4));let _0x5d5d2f=![];const _0x1b3899=[],_0x54db9a=new Set();for(let _0x1aced9=0x0;_0x1aced9<_0x4741ce[_0x45255e(0x29a)];_0x1aced9++){const _0x2702e7=_0x23e98a['get'](_0x4741ce[_0x1aced9]);if(!_0x2702e7)!_0x54db9a[_0x45255e(0x3e6)](_0x4741ce[_0x1aced9])&&(_0x54db9a['add'](_0x4741ce[_0x1aced9]),_0x1b3899[_0x45255e(0x373)](_0x1aced9));else{if(_0x2702e7['req'][_0x45255e(0x8ac)]==='pending')_0x5d5d2f=!![];else{if(_0x2702e7[_0x45255e(0x695)][_0x45255e(0x8ac)]===_0x45255e(0x4f6)){const _0xb45dac=_0x2702e7[_0x45255e(0x695)][_0x45255e(0x3a5)];for(const [_0x43fb9d,_0x26d335]of _0x23e98a)if(_0x26d335['req']===_0x2702e7[_0x45255e(0x695)])_0x23e98a[_0x45255e(0x36f)](_0x43fb9d);throw _0xb45dac;}}}}if(_0x5d5d2f)throw _0x44e14a();if(_0x1b3899[_0x45255e(0x29a)]){const _0x5d15ad=_0x1b3899[_0x45255e(0x70b)](_0x39fb72=>_0x5ab82d[_0x39fb72]),_0x15654d=_0x42cc9a[_0x45255e(0x7fb)](_0x5d15ad),_0x27861e={'state':_0x45255e(0x773),'value':undefined,'at':0x0},_0x59e753=(_0x147b56,_0x2756e1)=>{const _0x589e39=_0x45255e;_0x27861e[_0x589e39(0x8ac)]=_0x147b56,_0x27861e['value']=_0x2756e1,_0x27861e['at']=Date['now']();};if(!_0x15654d||typeof _0x15654d[_0x45255e(0x315)]!=='function')_0x59e753('ok',_0x15654d);else{let _0x50df89=!![];_0x15654d['then'](_0x2c5eb1=>{_0x59e753('ok',_0x2c5eb1);if(!_0x50df89)_0x33fff4(_0x42cc9a);},_0x3b2fbf=>{const _0x38d4bc=_0x45255e;_0x59e753(_0x38d4bc(0x4f6),_0x3b2fbf);if(!_0x50df89)_0x33fff4(_0x42cc9a);});for(let _0x38f85c=0x0;_0x38f85c<0x64&&_0x27861e[_0x45255e(0x8ac)]===_0x45255e(0x773);_0x38f85c++)process[_0x45255e(0x701)]();_0x50df89=![];}for(let _0x5c4a7c=0x0;_0x5c4a7c<_0x1b3899[_0x45255e(0x29a)];_0x5c4a7c++)_0x23e98a[_0x45255e(0x534)](_0x4741ce[_0x1b3899[_0x5c4a7c]],{'req':_0x27861e,'index':_0x5c4a7c});if(_0x27861e[_0x45255e(0x8ac)]==='err'){for(const _0x1d8c5f of _0x1b3899)_0x23e98a[_0x45255e(0x36f)](_0x4741ce[_0x1d8c5f]);throw _0x27861e[_0x45255e(0x3a5)];}if(_0x27861e[_0x45255e(0x8ac)]===_0x45255e(0x773))throw _0x44e14a();}const _0x2b799c=_0x4741ce['map'](_0x4db462=>{const _0x1ce0c7=_0x45255e,_0x50bc23=_0x23e98a[_0x1ce0c7(0x7f0)](_0x4db462),_0x494ecc=_0x50bc23['req'][_0x1ce0c7(0x3a5)];return _0x494ecc?_0x494ecc[_0x50bc23[_0x1ce0c7(0x46a)]]:undefined;});for(const _0x6cd296 of _0x4741ce)_0x23e98a[_0x45255e(0x36f)](_0x6cd296);if(!_0x23e98a['size'])_0x5c1af7[_0x45255e(0x36f)](_0x2b7ddf);return _0x2b799c;}function _0x44e14a(){const _0x2ccc61=_0x20a5;return Object['assign'](new Error(_0x2ccc61(0x874)),{'code':'EMBED_PENDING'});}function _0x33fff4(_0x4ea9e5){const _0x184fa9=_0x20a5;_0xdf5e21();try{const _0x508f04=_0x4ea9e5[_0x184fa9(0x5ae)]||_0x45ff05;if(_0x508f04&&_0x508f04['_isOpen'])_0x508f04[_0x184fa9(0x5a6)](_0x184fa9(0x511),null,_0x184fa9(0x53b),[_0x184fa9(0x5b0),{}],!![]);}catch{}}function _0x9d0d2e(_0x2979fe,_0x3feb39,_0x8ba152){const _0x32031a=_0x20a5,_0x1cebda=_0x4d34ad['get'](_0x2979fe);if(!_0x1cebda||typeof _0x1cebda[_0x3feb39]!==_0x32031a(0x8a6))return{'__absent':!![]};let _0x168e96=_0x1cebda[_0x3feb39](...Array['isArray'](_0x8ba152)?_0x8ba152:[]);if(_0x168e96&&typeof _0x168e96['then']===_0x32031a(0x8a6))_0x168e96=_0xc17575(_0x168e96);return{'value':_0x168e96===undefined?null:_0x168e96};}const _0x5b7892=new Map();let _0x5eba5a=0x1;const _0x38978f=new Map(),_0xecc0f7=new Map();function _0x5d6f86(_0x20ce01,_0x5de4bb=null){const _0x577240=_0x20a5,_0x26a9d0=_0x5eba5a++;_0x5b7892[_0x577240(0x534)](_0x26a9d0,_0x20ce01);if(_0x5de4bb)_0xecc0f7[_0x577240(0x534)](_0x26a9d0,_0x5de4bb);return _0x26a9d0;}function _0x3e569f(_0x496198){const _0xb410b2=_0x20a5;for(const [_0x41315b,_0x3b2ca3]of _0x38978f)if(_0x3b2ca3&&_0x3b2ca3[_0xb410b2(0x44b)]===_0x496198)_0x38978f[_0xb410b2(0x36f)](_0x41315b);for(const [_0x58c335,_0xcb6a34]of _0x42e555)if(_0xcb6a34===_0x496198)_0x42e555[_0xb410b2(0x36f)](_0x58c335);for(const [_0x1d21c9,_0x3f12d8]of _0xecc0f7)_0x3f12d8===_0x496198&&(_0xecc0f7[_0xb410b2(0x36f)](_0x1d21c9),_0x5b7892['delete'](_0x1d21c9));if(_0x45ff05===_0x496198)_0x45ff05=null;}function _0x38800(_0x119879,_0x3aeca6){const _0x215f67=_0x20a5;_0x38978f[_0x215f67(0x534)](_0x119879,_0x3aeca6);}function _0x43dacb(_0x1ca796){const _0x52c5dc=_0x20a5;if(_0x1ca796&&typeof _0x1ca796===_0x52c5dc(0x2bf)&&Object[_0x52c5dc(0x62c)](_0x1ca796)[_0x52c5dc(0x29a)]===0x1&&_0x1ca796[_0x52c5dc(0x88d)]!==undefined)return _0x5b7892[_0x52c5dc(0x7f0)](_0x1ca796[_0x52c5dc(0x88d)]);return _0x1ca796;}function _0xc17575(_0x1fa8bf){const _0x2adfb6=_0x20a5;let _0x13a92e=![],_0x203164=![],_0x57f291;_0x1fa8bf[_0x2adfb6(0x315)](_0x35799c=>{_0x13a92e=!![],_0x57f291=_0x35799c;},_0x293846=>{_0x13a92e=!![],_0x203164=!![],_0x57f291=_0x293846;});for(let _0x1f5485=0x0;_0x1f5485<0x2710&&!_0x13a92e;_0x1f5485++)process[_0x2adfb6(0x701)]();if(!_0x13a92e)return _0x1fa8bf[_0x2adfb6(0x315)](undefined,_0x22362e=>{const _0x4df7bd=_0x2adfb6;try{process[_0x4df7bd(0x5b8)](_0x4df7bd(0x79d)+(_0x22362e&&_0x22362e[_0x4df7bd(0x4ee)]?_0x22362e[_0x4df7bd(0x4ee)]:_0x22362e));}catch{}}),undefined;if(_0x203164)throw _0x57f291;return _0x57f291;}function _0x4baa0d(_0x890a6f,_0x4ec60b,_0xda81db){const _0x19dd2b=_0x20a5,_0x44734c=_0x39a2be(_0x890a6f),_0x50c7a5=_0x38978f[_0x19dd2b(0x7f0)](_0x4ec60b);try{const _0x464035=_0x44734c(_0xda81db,{'okdb':_0x50c7a5&&_0x50c7a5['okdb'],'env':_0x50c7a5});if(_0x464035&&typeof _0x464035['then']==='function')_0xc17575(_0x464035);}catch(_0x564e9e){if(_0x564e9e&&_0x564e9e[_0x19dd2b(0x7e1)]===!![]&&_0x564e9e[_0x19dd2b(0x19c)]!==_0x19dd2b(0x1e4)){const _0x1c8eb9=new Error(_0x564e9e['message']);_0x1c8eb9[_0x19dd2b(0x19c)]=_0x19dd2b(0x1e4);throw _0x1c8eb9;}throw _0x564e9e;}}const _0x2b5056=new Map();function _0x158655(_0x264454,_0x3d9717,_0x1a9cb2,_0x5df6c6,_0x5bd327,_0x17db15){const _0x4914a7=_0x20a5,_0x3d14e1=_0x39a2be(_0x264454),_0x2a6eae=(_0x38978f[_0x4914a7(0x7f0)](_0x17db15)||{})['okdb']||_0x45ff05,_0x5504f3=new AbortController(),_0x3ed6ed=(_0x52c58e,..._0x236553)=>_0x2a6eae[_0x4914a7(0x5a6)]('queue',_0x4914a7(0x803),_0x52c58e,_0x236553,![]),_0x5ea25f={'okdb':_0x2a6eae,'env':_0x38978f[_0x4914a7(0x7f0)](_0x17db15)||null,'job':_0x5df6c6,'jobId':_0x5bd327,'signal':_0x5504f3['signal'],'heartbeat':()=>_0x3ed6ed(_0x4914a7(0x879),_0x1a9cb2),'markProgress':_0x5f136d=>_0x3ed6ed(_0x4914a7(0x438),_0x1a9cb2,_0x5f136d),'log':(_0x5a45f9,_0x212b9c)=>_0x3ed6ed(_0x4914a7(0x4c0),_0x1a9cb2,_0x5a45f9,_0x212b9c)};_0x2b5056[_0x4914a7(0x534)](_0x1a9cb2,{'ctrl':_0x5504f3,'call':_0x3ed6ed});const _0x19f654=()=>{const _0x5ade2e=_0x4914a7;_0x2b5056[_0x5ade2e(0x36f)](_0x1a9cb2);try{_0x3ed6ed('ctxRelease',_0x1a9cb2);}catch{}};let _0x978a5e;try{_0x978a5e=_0x3d14e1(_0x3d9717,_0x5ea25f);}catch(_0x4f734a){_0x19f654();throw _0x4f734a;}if(_0x978a5e&&typeof _0x978a5e[_0x4914a7(0x315)]===_0x4914a7(0x8a6)){const _0x42f029=_0x28be14(_0x978a5e);return _0x978a5e['then'](_0x19f654,_0x19f654),{'$token':_0x42f029};}return _0x19f654(),_0x978a5e;}function _0x1439e5(){const _0x289eb0=_0x20a5;for(const [_0x238040,_0x4c209c]of _0x2b5056){if(_0x4c209c[_0x289eb0(0x833)][_0x289eb0(0x325)][_0x289eb0(0x46f)])continue;let _0x3233cb;try{_0x3233cb=_0x4c209c[_0x289eb0(0x3ce)](_0x289eb0(0x842),_0x238040);}catch{continue;}if(_0x3233cb&&_0x3233cb['aborted']){const {OKDBError:_0x2ae881}=requireErrors();_0x4c209c[_0x289eb0(0x833)][_0x289eb0(0x638)](new _0x2ae881(_0x3233cb[_0x289eb0(0x4ee)],_0x3233cb[_0x289eb0(0x19c)]));}}}let _0x45ff05=null;function _0x14e066(_0x337633){_0x45ff05=_0x337633;}function _0x41eee6(_0x295df7,_0x19132a,_0x4e0b75,_0x356549,_0x152bab,_0x3f5360,_0xeb205a){const _0x500656=_0x20a5,_0x699da0=_0x39a2be(_0x295df7),_0x53a967=_0x38978f[_0x500656(0x7f0)](_0x4e0b75);try{const _0x308d72=_0x19132a?_0x699da0(_0x152bab,_0x3f5360):_0x699da0({'env':_0x53a967,'okdb':_0x53a967&&_0x53a967[_0x500656(0x44b)],'payload':_0x43dacb(_0x356549)},_0x152bab,_0x3f5360);if(_0x308d72&&typeof _0x308d72['then']==='function'){if(_0x3f5360&&_0x3f5360[_0x500656(0x3b4)]===_0x500656(0x2b2))_0x308d72[_0x500656(0x315)](undefined,()=>{});else{if(_0xeb205a){const _0x3256f4=_0x3e32d4(_0x308d72);if(_0x3256f4===0x0)return null;return{'$token':_0x3256f4};}else _0xc17575(_0x308d72);}}}catch(_0x4e03ca){if(_0x4e03ca&&_0x4e03ca['processorHold']===!![]&&_0x4e03ca[_0x500656(0x19c)]!==_0x500656(0x1e4)){const _0x3811a3=new Error(_0x4e03ca[_0x500656(0x4ee)]);_0x3811a3[_0x500656(0x19c)]='__HOLD__';throw _0x3811a3;}throw _0x4e03ca;}return null;}function _0x3e32d4(_0x4ea962){const _0x478aeb=_0x20a5;let _0x39b4cd=_0x478aeb(0x773),_0x26145d;_0x4ea962[_0x478aeb(0x315)](_0x413d74=>{_0x39b4cd='ok',_0x26145d=_0x413d74;},_0x4722ce=>{_0x39b4cd='err',_0x26145d=_0x4722ce;});for(let _0x329a49=0x0;_0x329a49<0x64&&_0x39b4cd==='pending';_0x329a49++)process['_tickCallback']();if(_0x39b4cd==='ok')return 0x0;const _0x59ced7=_0x46fc4d++,_0x291bcb={'state':_0x39b4cd,'value':_0x26145d};_0x3dc9b0['set'](_0x59ced7,_0x291bcb);if(_0x39b4cd===_0x478aeb(0x773))_0x4ea962[_0x478aeb(0x315)](_0x410fb8=>{const _0x5be523=_0x478aeb;_0x291bcb[_0x5be523(0x8ac)]='ok',_0x291bcb['value']=_0x410fb8,_0xdf5e21();},_0xd276ef=>{const _0x578bbe=_0x478aeb;_0x291bcb[_0x578bbe(0x8ac)]=_0x578bbe(0x4f6),_0x291bcb['value']=_0xd276ef,_0xdf5e21();});return _0x59ced7;}function _0x2dc5ca(_0x54811e){const _0x4109ef=_0x20a5;let _0x229545=_0x5f5251['get'](_0x54811e);return _0x229545===undefined&&(_0x229545=_0xcbbd6f++,_0x5f5251['set'](_0x54811e,_0x229545),_0x13652d['set'](_0x229545,{'fn':_0x54811e,'refs':0x0})),_0x13652d[_0x4109ef(0x7f0)](_0x229545)['refs']++,_0x229545;}function _0x20a248(_0x37c327){const _0x2c6bc6=_0x20a5,_0x4eb85c=_0x13652d['get'](_0x37c327);if(!_0x4eb85c)return;--_0x4eb85c[_0x2c6bc6(0x4a0)]<=0x0&&(_0x13652d[_0x2c6bc6(0x36f)](_0x37c327),_0x5f5251['delete'](_0x4eb85c['fn']));}function _0x39a2be(_0x202a59){const _0xba7fc5=_0x20a5,_0x29da8a=_0x13652d['get'](_0x202a59);if(!_0x29da8a)throw new Error(_0xba7fc5(0x5f2)+_0x202a59);return _0x29da8a['fn'];}function _0x28be14(_0x443e09){const _0x2de33a=_0x20a5;if(_0x443e09&&typeof _0x443e09['then']===_0x2de33a(0x8a6)){const _0x276814=_0x46fc4d++,_0xc247b2={'state':_0x2de33a(0x773),'value':undefined};return _0x3dc9b0[_0x2de33a(0x534)](_0x276814,_0xc247b2),_0x443e09[_0x2de33a(0x315)](_0xdb84af=>{const _0x2ab277=_0x2de33a;_0xc247b2[_0x2ab277(0x8ac)]='ok',_0xc247b2[_0x2ab277(0x3a5)]=_0xdb84af,_0xdf5e21();},_0x2aa0b8=>{const _0x8aca7a=_0x2de33a;_0xc247b2['state']=_0x8aca7a(0x4f6),_0xc247b2['value']=_0x2aa0b8,_0xdf5e21();}),_0x276814;}return 0x0;}let _0x2f4087=()=>{},_0x3363ad=null;function _0x210a47(_0x54a07,_0x2707ff=null){_0x2f4087=_0x54a07,_0x3363ad=_0x2707ff;}function _0x65ff4(_0x42f262){return _0x3363ad===_0x42f262;}function _0xdf5e21(){_0x2f4087();}function _0x306c27(_0x3ba84d){const _0x35329f=_0x20a5,_0x3ea772=_0x3dc9b0['get'](_0x3ba84d);if(!_0x3ea772)return{'state':_0x35329f(0x4f6),'error':{'message':'unknown\x20promise\x20token'}};if(_0x3ea772[_0x35329f(0x8ac)]===_0x35329f(0x773))return{'state':'pending'};_0x3dc9b0[_0x35329f(0x36f)](_0x3ba84d);if(_0x3ea772[_0x35329f(0x8ac)]==='ok')return{'state':'ok','value':_0x3ea772[_0x35329f(0x3a5)]};const _0xa7406a=_0x3ea772[_0x35329f(0x3a5)];return{'state':_0x35329f(0x4f6),'error':{'message':_0xa7406a&&_0xa7406a[_0x35329f(0x4ee)]!=null?String(_0xa7406a[_0x35329f(0x4ee)]):String(_0xa7406a),'stack':_0xa7406a&&_0xa7406a['stack'],'code':_0xa7406a&&_0xa7406a['code'],'status':_0xa7406a&&typeof _0xa7406a[_0x35329f(0x424)]==='number'?_0xa7406a['status']:undefined,'hold':!!(_0xa7406a&&_0xa7406a[_0x35329f(0x7e1)]===!![])}};}function _0x40fa88(_0x108b7e,_0xd949d9){const _0x5c0a57=_0x20a5;_0x30dfcf[_0x5c0a57(0x534)](_0x108b7e,_0xd949d9);}function _0x54ee82(_0x8335d9){const _0x1331bc=_0x20a5;_0x30dfcf[_0x1331bc(0x36f)](_0x8335d9);}let _0x347815=0x0;function _0x45f1c6(){return _0x347815>0x0;}function _0x5432ca(){const _0x43b323=_0x20a5;_0x347815++;try{return _0x47543b[_0x43b323(0x827)](undefined,arguments);}finally{_0x347815--;}}function _0x47543b(_0x2cd0be,_0x119204,_0x478ec1,_0x36f3a3,_0x440952,_0xdb6f43){const _0x1d4d36=_0x20a5;switch(_0x2cd0be){case _0x1d4d36(0x74c):return _0x2dc5ca(_0x119204);case _0x1d4d36(0x4c6):return _0x20a248(_0x119204);case _0x1d4d36(0x3ce):{const _0x1a756a=Array[_0x1d4d36(0x4ca)][_0x1d4d36(0x231)]['call'](arguments,0x2),_0x59e9c6=_0x39a2be(_0x119204)[_0x1d4d36(0x827)](undefined,_0x1a756a);return _0x59e9c6&&typeof _0x59e9c6[_0x1d4d36(0x315)]==='function'?_0xc17575(_0x59e9c6):_0x59e9c6;}case _0x1d4d36(0x530):{const _0x2caac8=Array['prototype']['slice']['call'](arguments,0x2),_0x5a1f6f=_0x39a2be(_0x119204)[_0x1d4d36(0x827)](undefined,_0x2caac8);if(_0x5a1f6f&&typeof _0x5a1f6f[_0x1d4d36(0x315)]===_0x1d4d36(0x8a6))return{'$token':_0x28be14(_0x5a1f6f)};return{'$value':_0x5a1f6f===undefined?null:_0x5a1f6f,'$undef':_0x5a1f6f===undefined};}case _0x1d4d36(0x4f9):{const _0x243333=_0x30dfcf['get'](_0x119204);if(_0x243333)_0x243333[_0x1d4d36(0x501)](_0x478ec1,_0x36f3a3);return undefined;}case _0x1d4d36(0x6ae):{const _0x5b7707=_0x30dfcf['get'](_0x119204);if(_0x5b7707)_0x5b7707[_0x1d4d36(0x89a)](_0x478ec1);return undefined;}case'handler':return _0x41eee6(_0x119204,_0x478ec1,_0x36f3a3,_0x440952,_0xdb6f43,arguments[0x6],arguments[0x7]);case _0x1d4d36(0x45a):return _0x4baa0d(_0x119204,_0x478ec1,_0x36f3a3);case _0x1d4d36(0x41a):return _0x158655(_0x119204,_0x478ec1,_0x36f3a3,_0x440952,_0xdb6f43,arguments[0x6]);case _0x1d4d36(0x3c9):return _0x264c42[_0x1d4d36(0x827)](null,Array[_0x1d4d36(0x4ca)][_0x1d4d36(0x231)]['call'](arguments,0x1));case _0x1d4d36(0x6c5):return _0x9d0d2e(_0x119204,_0x478ec1,_0x36f3a3);case _0x1d4d36(0x7f5):return _0x306c27(_0x119204);case'fetchJson':{const _0x62e542=((async()=>{const _0x303100=_0x1d4d36,_0x577408=await globalThis[_0x303100(0x4f8)](_0x119204);if(!_0x577408['ok']){const _0x1a2a1d=new Error(_0x303100(0x33d)+_0x577408[_0x303100(0x424)]);_0x1a2a1d[_0x303100(0x19c)]=_0x303100(0x2e1);throw _0x1a2a1d;}return _0x577408['json']();})());return _0xc17575(_0x62e542)??null;}case _0x1d4d36(0x674):return _0x367217(_0x119204,_0x478ec1,_0x36f3a3);case'alg':return _0x26df2a(_0x119204,_0x478ec1,_0x36f3a3);case _0x1d4d36(0x582):return _0x3956cf(_0x119204,_0x478ec1,_0x36f3a3);default:throw new Error(_0x1d4d36(0x4bf)+_0x2cd0be);}}return bridge_1={'inNativeCall':_0x45f1c6,'regObject':_0x5f3076,'checkSignals':_0x1439e5,'setCurrentDb':_0x14e066,'forgetDb':_0x3e569f,'storePayload':_0x5d6f86,'registerEnv':_0x38800,'resolvePayload':_0x43dacb,'bridge':_0x5432ca,'reg':_0x2dc5ca,'unreg':_0x20a248,'fnOf':_0x39a2be,'track':_0x28be14,'resolve':_0x306c27,'registerTarget':_0x40fa88,'unregisterTarget':_0x54ee82,'setKick':_0x210a47,'kickOwnedBy':_0x65ff4},bridge_1;}var writebatch,hasRequiredWritebatch;function requireWritebatch(){const _0x16694b=_0x7f204b;if(hasRequiredWritebatch)return writebatch;hasRequiredWritebatch=0x1;const {reclass:_0x12423b}=requireErrors(),_0x1aa514=requireBridge(),_0x47ac65=new Map();let _0x8d8bae=null;function _0x548c44(_0x5344ac){const _0x266155=_0x20a5;if(_0x8d8bae)return;_0x8d8bae=_0x5344ac,_0x5344ac[_0x266155(0x399)](_0x4a86cc);}function _0x4a86cc(){const _0x127299=_0x20a5,_0x31a929=_0x8d8bae['settledTickets']();for(const _0x29a5bb of _0x31a929){const _0x1419a4=_0x47ac65[_0x127299(0x7f0)](_0x29a5bb);_0x1419a4&&(_0x47ac65[_0x127299(0x36f)](_0x29a5bb),_0x1419a4());}}function _0x52005e(_0xfd0c23,_0x5f2630){const _0x49a819=_0x20a5;_0x47ac65[_0x49a819(0x534)](_0xfd0c23,_0x5f2630);}class _0xe160c5{constructor(_0x46ba51){const _0x1d20e1=_0x20a5;this['db']=_0x46ba51,this[_0x1d20e1(0x493)]=[],this['scheduled']=![],this['inBatch']=![],this['inflight']=new Set();}[_0x16694b(0x648)](_0x253a2f,_0xc561b3,_0x546422,_0x2e393f){const _0x3936bf=_0x16694b;if(_0x1aa514[_0x3936bf(0x2a8)]())try{return Promise[_0x3936bf(0x7f5)](this['db'][_0x3936bf(0x5a6)](_0x253a2f,_0xc561b3,_0x546422,_0x2e393f));}catch(_0x1c2af4){return Promise[_0x3936bf(0x515)](_0x1c2af4);}const _0x24d55e=new Promise((_0x405869,_0x45f3e0)=>{const _0xc97d97=_0x3936bf;this[_0xc97d97(0x493)][_0xc97d97(0x373)]({'item':[_0x253a2f,_0xc561b3,_0x546422,_0x2e393f],'resolve':_0x405869,'reject':_0x45f3e0});});this[_0x3936bf(0x813)][_0x3936bf(0x6a0)](_0x24d55e);const _0x5a3285=()=>this['inflight'][_0x3936bf(0x36f)](_0x24d55e);return _0x24d55e[_0x3936bf(0x315)](_0x5a3285,_0x5a3285),!this[_0x3936bf(0x1b3)]&&(this[_0x3936bf(0x1b3)]=!![],setImmediate(()=>{const _0x4b48d1=_0x3936bf;this[_0x4b48d1(0x1b3)]=![],this[_0x4b48d1(0x28c)]();})),_0x24d55e;}['commit'](){const _0xce528c=_0x16694b;if(!this['queue'][_0xce528c(0x29a)])return;if(this[_0xce528c(0x31b)]){!this[_0xce528c(0x1b3)]&&(this['scheduled']=!![],setImmediate(()=>{const _0x52d195=_0xce528c;this[_0x52d195(0x1b3)]=![],this[_0x52d195(0x28c)]();}));return;}const _0x4a1ec8=this[_0xce528c(0x493)];this[_0xce528c(0x493)]=[],this[_0xce528c(0x471)](_0x4a1ec8);}[_0x16694b(0x471)](_0x2a7af0){const _0xd1776e=_0x16694b;let _0x1993ae;this[_0xd1776e(0x31b)]=!![];try{_0x1993ae=this['db'][_0xd1776e(0x6df)][_0xd1776e(0x587)](_0x2a7af0['map'](_0x492b26=>_0x492b26['item']));}catch(_0x2e457f){this[_0xd1776e(0x31b)]=![];if(_0x2a7af0[_0xd1776e(0x29a)]>0x1){for(const _0x354fd3 of _0x2a7af0)this[_0xd1776e(0x471)]([_0x354fd3]);return;}const _0x516f0f=_0x12423b(_0x2e457f);for(const _0x2e8872 of _0x2a7af0)_0x2e8872['reject'](_0x516f0f);return;}finally{this['inBatch']=![];}try{this['db'][_0xd1776e(0x42d)]['wake']();}catch{}const [_0x494989,_0x3a5876]=_0x1993ae;_0x52005e(_0x3a5876,()=>{const _0x297df0=_0xd1776e;for(let _0x5bd0de=0x0;_0x5bd0de<_0x2a7af0[_0x297df0(0x29a)];_0x5bd0de++){const _0x4ceb32=_0x494989[_0x5bd0de];if(_0x4ceb32&&_0x4ceb32[0x0])_0x2a7af0[_0x5bd0de][_0x297df0(0x7f5)](_0x4ceb32[0x1]);else _0x2a7af0[_0x5bd0de]['reject'](_0x12423b(_0x4ceb32?_0x4ceb32[0x1]:new Error(_0x297df0(0x429))));}});}async[_0x16694b(0x7cc)](){const _0x42bc77=_0x16694b;this[_0x42bc77(0x28c)]();while(this[_0x42bc77(0x813)][_0x42bc77(0x2f2)]){await Promise[_0x42bc77(0x47a)]([...this[_0x42bc77(0x813)]]),this[_0x42bc77(0x28c)]();}let _0x527f02;try{_0x527f02=this['db'][_0x42bc77(0x6df)][_0x42bc77(0x46d)]();}catch{return;}await new Promise(_0xa1744d=>_0x52005e(_0x527f02,_0xa1744d));}}return writebatch={'install':_0x548c44,'WriteBatch':_0xe160c5,'whenSettled':_0x52005e},writebatch;}var pump,hasRequiredPump;function requirePump(){const _0x4c8def=_0x7f204b;if(hasRequiredPump)return pump;hasRequiredPump=0x1;const _0x3dbe4b=Number(process.env.OKDB_NATIVE_IDLE_MS)||0xfa;class _0x496a93{constructor(_0x3909db){const _0x3ff268=_0x20a5;this[_0x3ff268(0x6ea)]=_0x3909db,this[_0x3ff268(0x279)]=null,this[_0x3ff268(0x2f9)]=null,this['running']=![],this[_0x3ff268(0x3ef)]=![],this[_0x3ff268(0x38c)]=![],this[_0x3ff268(0x656)]=![],this[_0x3ff268(0x7f2)]=0x0,this[_0x3ff268(0x2f4)]=[],this['turnWaiters']=[];}[_0x4c8def(0x5d8)](_0x45ba7e){return new Promise(_0x1cc458=>{const _0x1677c5=_0x20a5,_0x21ec30=setTimeout(_0x5e21c2,_0x45ba7e);function _0x5e21c2(){clearTimeout(_0x21ec30),_0x1cc458();}this[_0x1677c5(0x372)]['push'](_0x5e21c2);});}[_0x4c8def(0x835)](){const _0x3b1e91=_0x4c8def;if(this[_0x3b1e91(0x372)][_0x3b1e91(0x29a)]===0x0)return;const _0x24d2d3=this[_0x3b1e91(0x372)];this[_0x3b1e91(0x372)]=[];for(const _0x1de392 of _0x24d2d3)_0x1de392();}[_0x4c8def(0x449)](){const _0x1d6e4d=_0x4c8def;this['stopped']=![],this[_0x1d6e4d(0x1bc)]();}['stop'](){const _0x9a0760=_0x4c8def;this[_0x9a0760(0x3ef)]=!![];if(this['timer'])clearTimeout(this[_0x9a0760(0x279)]);if(this[_0x9a0760(0x2f9)])clearImmediate(this[_0x9a0760(0x2f9)]);this[_0x9a0760(0x279)]=this[_0x9a0760(0x2f9)]=null,this[_0x9a0760(0x835)]();}[_0x4c8def(0x1bc)](){const _0x422c02=_0x4c8def;if(this[_0x422c02(0x3ef)]||this['immediate'])return;this[_0x422c02(0x279)]&&(clearTimeout(this['timer']),this[_0x422c02(0x279)]=null),this['immediate']=setImmediate(()=>{const _0x448154=_0x422c02;this[_0x448154(0x2f9)]=null,this[_0x448154(0x6f4)]();});}['turn'](){const _0x520b73=_0x4c8def;if(this[_0x520b73(0x3ef)]||this[_0x520b73(0x38c)]){this[_0x520b73(0x656)]=!![];return;}this[_0x520b73(0x38c)]=!![];let _0x14764c;try{this['turns']++,_0x14764c=this['native'][_0x520b73(0x553)]();if(this[_0x520b73(0x421)])this[_0x520b73(0x421)]();}catch(_0x4a5dec){_0x14764c=_0x3dbe4b,process[_0x520b73(0x5e1)](()=>{throw _0x4a5dec;});}finally{this[_0x520b73(0x38c)]=![],this[_0x520b73(0x835)]();}if(this[_0x520b73(0x3ef)]||_0x14764c===-0x2)return;if(this['dirty'])return this['dirty']=![],this[_0x520b73(0x1bc)]();const _0xb5ba96=_0x14764c<0x0?_0x3dbe4b:Math[_0x520b73(0x68a)](0x0,Math[_0x520b73(0x415)](_0x14764c,_0x3dbe4b));if(_0xb5ba96<=0x0)return this['wake']();this[_0x520b73(0x279)]=setTimeout(()=>{this['timer']=null,this['turn']();},Math[_0x520b73(0x627)](_0xb5ba96));if(this[_0x520b73(0x279)][_0x520b73(0x48c)])this[_0x520b73(0x279)]['unref']();}}return pump={'Pumper':_0x496a93},pump;}var dist$1={},hasRequiredDist$1;function requireDist$1(){const _0x3f8b3a=_0x7f204b;if(hasRequiredDist$1)return dist$1;hasRequiredDist$1=0x1;const _0x45a273=Symbol['for']('@harperdb/extended-iterable:skip'),_0x4ff111={'value':null,'done':!![]},_0x1c99ae={'value':null,'done':!![]};!Symbol['asyncIterator']&&(Symbol[_0x3f8b3a(0x7e2)]=Symbol[_0x3f8b3a(0x503)]('Symbol.asyncIterator'));const _0x269a7b={};class _0x4d0bc4{constructor(_0x3524ee){const _0x2b818c=_0x3f8b3a;_0x3524ee&&(this[_0x2b818c(0x65f)]=_0x3524ee[Symbol[_0x2b818c(0x38b)]][_0x2b818c(0x738)](_0x3524ee));}[_0x3f8b3a(0x70b)](_0xfa062c){const _0x47bffc=_0x3f8b3a;let _0x240ac0=this,_0x45a4a7=new _0x4d0bc4();return _0x45a4a7[_0x47bffc(0x65f)]=(_0x5397a5=_0x269a7b)=>{const _0x5882fa=_0x47bffc,{async:_0x2487e1}=_0x5397a5;let _0x468a61=_0x240ac0[_0x2487e1?Symbol[_0x5882fa(0x7e2)]:Symbol[_0x5882fa(0x38b)]](_0x5397a5);if(!_0x2487e1)_0x240ac0[_0x5882fa(0x478)]=!![];let _0x2539a1=-0x1;return{'next'(_0x5eeafb){const _0x240e69=_0x5882fa;let _0x4bb279;do{let _0x4160ea;try{if(_0x5eeafb)_0x4160ea=_0x5eeafb,_0x5eeafb=null;else{_0x2539a1++,_0x4160ea=_0x468a61[_0x240e69(0x6dd)]();if(_0x4160ea[_0x240e69(0x315)])return!_0x2487e1&&this[_0x240e69(0x720)](new Error(_0x240e69(0x828))),_0x4160ea[_0x240e69(0x315)](_0x17edfb=>this[_0x240e69(0x6dd)](_0x17edfb),_0x1473d1=>{return this['throw'](_0x1473d1);});}if(_0x4160ea[_0x240e69(0x355)]===!![]){this[_0x240e69(0x355)]=!![];if(_0x45a4a7['onDone'])_0x45a4a7[_0x240e69(0x884)]();return _0x4160ea;}try{_0x4bb279=_0xfa062c[_0x240e69(0x3ce)](_0x240ac0,_0x4160ea[_0x240e69(0x3a5)],_0x2539a1);if(_0x4bb279&&_0x4bb279[_0x240e69(0x315)]&&_0x2487e1)return _0x4bb279[_0x240e69(0x315)](_0x8203f9=>_0x8203f9===_0x45a273?this['next']():{'value':_0x8203f9},_0x2fb248=>{const _0x4a9d2d=_0x240e69;if(_0x5397a5[_0x4a9d2d(0x25e)])_0x2fb248['continueIteration']=!![];return this[_0x4a9d2d(0x720)](_0x2fb248);});}catch(_0x67b31d){if(_0x5397a5[_0x240e69(0x25e)])_0x67b31d[_0x240e69(0x71a)]=!![];throw _0x67b31d;}}catch(_0x300cc1){if(_0x45a4a7[_0x240e69(0x594)])try{_0x4bb279=_0x45a4a7['handleError'](_0x300cc1,_0x2539a1);}catch(_0x51ce38){return this[_0x240e69(0x720)](_0x51ce38);}else return this[_0x240e69(0x720)](_0x300cc1);}}while(_0x4bb279===_0x45a273);if(_0x4bb279===_0x4ff111)return this['return']();return{'value':_0x4bb279};},'return'(_0x1dee43){const _0x4d15e2=_0x5882fa;if(!this[_0x4d15e2(0x355)]){_0x1c99ae[_0x4d15e2(0x3a5)]=_0x1dee43,this[_0x4d15e2(0x355)]=!![];if(_0x45a4a7['onDone'])_0x45a4a7[_0x4d15e2(0x884)]();_0x468a61[_0x4d15e2(0x1af)]?.();}return _0x1c99ae;},'throw'(_0x18de53){const _0x9755d9=_0x5882fa;if(_0x18de53[_0x9755d9(0x71a)]){if(_0x45a4a7[_0x9755d9(0x3a1)])try{return{'value':_0x45a4a7[_0x9755d9(0x3a1)](_0x18de53)};}catch(_0x4d95a4){this['return']();throw _0x4d95a4;}if(_0x5397a5[_0x9755d9(0x25e)])throw _0x18de53;}this['return']();throw _0x18de53;}};},_0x45a4a7;}[Symbol['asyncIterator']](_0x54dc0a){const _0x66bba5=_0x3f8b3a;if(_0x54dc0a)_0x54dc0a={..._0x54dc0a,'async':!![]};else _0x54dc0a={'async':!![]};return this['iterator']=this[_0x66bba5(0x65f)](_0x54dc0a);}[Symbol[_0x3f8b3a(0x38b)]](_0x276a28){const _0x7239f6=_0x3f8b3a;return this[_0x7239f6(0x38b)]=this[_0x7239f6(0x65f)](_0x276a28);}[_0x3f8b3a(0x6c2)](_0x177bca){const _0x21c30d=_0x3f8b3a;let _0x460d15=this[_0x21c30d(0x70b)](_0x1c515c=>{const _0x48cc93=_0x21c30d;let _0x346af6=_0x177bca(_0x1c515c);if(_0x346af6?.[_0x48cc93(0x315)])return _0x346af6[_0x48cc93(0x315)](_0x34dc0d=>_0x34dc0d?_0x1c515c:_0x45a273);else return _0x346af6?_0x1c515c:_0x45a273;}),_0x4e57a0=_0x460d15[_0x21c30d(0x65f)];return _0x460d15[_0x21c30d(0x65f)]=(_0x97ad4d=_0x269a7b)=>{const _0x4a23ce=_0x21c30d;if(_0x97ad4d[_0x4a23ce(0x25e)])_0x97ad4d={..._0x97ad4d,'continueOnRecoverableError':![]};return _0x4e57a0(_0x97ad4d);},_0x460d15;}[_0x3f8b3a(0x7e0)](_0x450999){const _0x287273=_0x3f8b3a;let _0x315fa8=this[_0x287273(0x38b)]=this[_0x287273(0x65f)](),_0x366638;while((_0x366638=_0x315fa8[_0x287273(0x6dd)]())[_0x287273(0x355)]!==!![]){_0x450999(_0x366638[_0x287273(0x3a5)]);}}[_0x3f8b3a(0x8b3)](_0x2393bb){const _0x3384d2=_0x3f8b3a;let _0x31b178=new _0x4d0bc4();return _0x31b178[_0x3384d2(0x65f)]=(_0x42f8a5=_0x269a7b)=>{const _0x5a801a=_0x3384d2;let _0x6a6c2e=this[_0x5a801a(0x38b)]=this[_0x5a801a(0x65f)](_0x42f8a5),_0x9b5e62=!![];function _0x45900f(_0x2c4280){const _0x1fec3a=_0x5a801a;if(_0x9b5e62)try{_0x9b5e62=![],_0x6a6c2e=_0x2393bb[_0x42f8a5[_0x1fec3a(0x28f)]?Symbol[_0x1fec3a(0x7e2)]:Symbol['iterator']](),_0x2c4280=_0x6a6c2e[_0x1fec3a(0x6dd)]();if(_0x31b178[_0x1fec3a(0x884)]){if(_0x2c4280[_0x1fec3a(0x315)]){if(!_0x42f8a5[_0x1fec3a(0x28f)])throw new Error('Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results');_0x2c4280[_0x1fec3a(0x315)](_0x203d83=>{const _0x1aee8d=_0x1fec3a;if(_0x203d83[_0x1aee8d(0x355)]())_0x31b178[_0x1aee8d(0x884)]();},_0x3f5abd=>{const _0x12e3ad=_0x1fec3a;this[_0x12e3ad(0x1af)]();throw _0x3f5abd;});}else{if(_0x2c4280[_0x1fec3a(0x355)])_0x31b178[_0x1fec3a(0x884)]();}}}catch(_0x14e114){this[_0x1fec3a(0x720)](_0x14e114);}else{if(_0x31b178[_0x1fec3a(0x884)])_0x31b178[_0x1fec3a(0x884)]();}return _0x2c4280;}return{'next'(){const _0x482897=_0x5a801a;try{let _0x130101=_0x6a6c2e[_0x482897(0x6dd)]();if(_0x130101['then']){if(!_0x42f8a5['async'])throw new Error(_0x482897(0x828));return _0x130101[_0x482897(0x315)](_0x22e857=>{const _0x45f518=_0x482897;if(_0x22e857[_0x45f518(0x355)])return _0x45900f(_0x22e857);return _0x22e857;});}if(_0x130101[_0x482897(0x355)])return _0x45900f(_0x130101);return _0x130101;}catch(_0xaea5fd){this[_0x482897(0x720)](_0xaea5fd);}},'return'(_0xd509af){const _0x1d0cb4=_0x5a801a;if(!this[_0x1d0cb4(0x355)]){_0x1c99ae[_0x1d0cb4(0x3a5)]=_0xd509af,this['done']=!![];if(_0x31b178[_0x1d0cb4(0x884)])_0x31b178[_0x1d0cb4(0x884)]();_0x6a6c2e[_0x1d0cb4(0x1af)]();}return _0x1c99ae;},'throw'(_0x316145){const _0x3e7d27=_0x5a801a;if(_0x42f8a5[_0x3e7d27(0x25e)])throw _0x316145;this['return']();throw _0x316145;}};},_0x31b178;}[_0x3f8b3a(0x4e6)](_0x78687){const _0x14d8e1=_0x3f8b3a;let _0x44860d=new _0x4d0bc4();return _0x44860d[_0x14d8e1(0x65f)]=(_0x427e4c=_0x269a7b)=>{const _0x150a16=_0x14d8e1;let _0x22ce89=this[_0x150a16(0x38b)]=this[_0x150a16(0x65f)](_0x427e4c),_0x19da81;return{'next'(_0x3e5db5){const _0x3c3e28=_0x150a16;try{do{if(_0x19da81){let _0x2670dc;if(_0x3e5db5)_0x2670dc=_0x3e5db5,_0x3e5db5=undefined;else _0x2670dc=_0x19da81[_0x3c3e28(0x6dd)]();if(_0x2670dc[_0x3c3e28(0x315)]){if(!_0x427e4c['async'])throw new Error(_0x3c3e28(0x828));return _0x2670dc[_0x3c3e28(0x315)](_0x547312=>this['next'](_0x547312));}if(!_0x2670dc['done'])return _0x2670dc;}let _0x27f237;if(_0x3e5db5!=undefined)_0x27f237=_0x3e5db5,_0x3e5db5=undefined;else _0x27f237=_0x22ce89[_0x3c3e28(0x6dd)]();if(_0x27f237[_0x3c3e28(0x315)]){if(!_0x427e4c[_0x3c3e28(0x28f)])throw new Error('Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results');return _0x19da81=undefined,_0x27f237[_0x3c3e28(0x315)](_0x5690b7=>this[_0x3c3e28(0x6dd)](_0x5690b7));}if(_0x27f237[_0x3c3e28(0x355)]){if(_0x44860d['onDone'])_0x44860d[_0x3c3e28(0x884)]();return _0x27f237;}try{let _0xbcb111=_0x78687(_0x27f237['value']);if(_0xbcb111?.[_0x3c3e28(0x315)]){if(!_0x427e4c[_0x3c3e28(0x28f)])throw new Error(_0x3c3e28(0x828));return _0xbcb111[_0x3c3e28(0x315)](_0x5ad140=>{const _0x2cd9ad=_0x3c3e28;return Array['isArray'](_0x5ad140)||_0x5ad140 instanceof _0x4d0bc4?(_0x19da81=_0x5ad140[Symbol['iterator']](),this[_0x2cd9ad(0x6dd)]()):(_0x19da81=null,{'value':_0x5ad140});},_0x5d2b26=>{const _0x17c75f=_0x3c3e28;if(_0x427e4c[_0x17c75f(0x25e)])_0x5d2b26['continueIteration']=!![];this[_0x17c75f(0x720)](_0x5d2b26);});}if(Array['isArray'](_0xbcb111)||_0xbcb111 instanceof _0x4d0bc4)_0x19da81=_0xbcb111[Symbol['iterator']]();else return _0x19da81=null,{'value':_0xbcb111};}catch(_0x41b494){if(_0x427e4c[_0x3c3e28(0x25e)])_0x41b494[_0x3c3e28(0x71a)]=!![];throw _0x41b494;}}while(!![]);}catch(_0x3b678d){this[_0x3c3e28(0x720)](_0x3b678d);}},'return'(){const _0x418fb3=_0x150a16;if(_0x44860d['onDone'])_0x44860d[_0x418fb3(0x884)]();if(_0x19da81)_0x19da81[_0x418fb3(0x1af)]();return _0x22ce89[_0x418fb3(0x1af)]();},'throw'(_0x39c1b9){const _0x4eee32=_0x150a16;if(_0x427e4c[_0x4eee32(0x25e)])throw _0x39c1b9;if(_0x44860d[_0x4eee32(0x884)])_0x44860d[_0x4eee32(0x884)]();if(_0x19da81)_0x19da81['return']();this[_0x4eee32(0x1af)]();throw _0x39c1b9;}};},_0x44860d;}['slice'](_0x20e96d,_0x2ceb3b){const _0x35d6ce=_0x3f8b3a;let _0xf90d4c=this[_0x35d6ce(0x70b)]((_0x4573ee,_0x15b7c2)=>{const _0x2c92fe=_0x35d6ce;if(_0x15b7c2<_0x20e96d)return _0x45a273;if(_0x15b7c2>=_0x2ceb3b)return _0x4ff111[_0x2c92fe(0x3a5)]=_0x4573ee,_0x4ff111;return _0x4573ee;});return _0xf90d4c['handleError']=(_0x17833e,_0x20f1d9)=>{if(_0x20f1d9<_0x20e96d)return _0x45a273;if(_0x20f1d9>=_0x2ceb3b)return _0x4ff111;throw _0x17833e;},_0xf90d4c;}[_0x3f8b3a(0x6a1)](_0x4838a8){const _0x1b21e8=_0x3f8b3a;if(typeof _0x4838a8!==_0x1b21e8(0x8a6))throw new TypeError(_0x1b21e8(0x32f));let _0x4440d3=this[_0x1b21e8(0x70b)](_0x17f78b=>{return _0x17f78b;}),_0x361d90=_0x4440d3[_0x1b21e8(0x65f)];return _0x4440d3[_0x1b21e8(0x65f)]=(_0x58d2af=_0x269a7b)=>{return _0x361d90({..._0x58d2af,'continueOnRecoverableError':!![]});},_0x4440d3[_0x1b21e8(0x3a1)]=_0x4838a8,_0x4440d3;}[_0x3f8b3a(0x6dd)](){const _0x168a09=_0x3f8b3a;if(!this[_0x168a09(0x38b)])this[_0x168a09(0x38b)]=this[_0x168a09(0x65f)]();return this['iterator'][_0x168a09(0x6dd)]();}[_0x3f8b3a(0x513)](){const _0x344db2=_0x3f8b3a;if(this[_0x344db2(0x6dc)]&&this[_0x344db2(0x6dc)][_0x344db2(0x7e0)])return this['asArray'];const _0x343125=new Error(_0x344db2(0x284));_0x343125[_0x344db2(0x56a)]=this[_0x344db2(0x6dc)];throw _0x343125;}get['asArray'](){const _0x4e8487=_0x3f8b3a;if(this['_asArray'])return this[_0x4e8487(0x428)];let _0xdcc483=new Promise((_0x384f25,_0x231ca6)=>{const _0x1e08f4=_0x4e8487;let _0x538b14=this['iterate'](!![]),_0x1d0b88=[],_0x54cdf2=this;Object[_0x1e08f4(0x4d6)](_0x1d0b88,_0x1e08f4(0x844),{'value':_0x54cdf2});function _0x3bfa7e(_0x2b1243){const _0x3bdfe0=_0x1e08f4;while(_0x2b1243[_0x3bdfe0(0x355)]!==!![]){if(_0x2b1243[_0x3bdfe0(0x315)])return _0x2b1243[_0x3bdfe0(0x315)](_0x3bfa7e);else _0x1d0b88[_0x3bdfe0(0x373)](_0x2b1243[_0x3bdfe0(0x3a5)]);_0x2b1243=_0x538b14['next']();}_0x384f25(_0x54cdf2[_0x3bdfe0(0x428)]=_0x1d0b88);}_0x3bfa7e(_0x538b14[_0x1e08f4(0x6dd)]());});return _0xdcc483[_0x4e8487(0x844)]=this,this[_0x4e8487(0x428)]||(this[_0x4e8487(0x428)]=_0xdcc483);}['resolveData'](){const _0x3b3027=_0x3f8b3a;return this[_0x3b3027(0x6dc)];}['at'](_0x5ea41a){for(let _0x214282 of this){if(_0x5ea41a--===0x0)return _0x214282;}}}return _0x4d0bc4[_0x3f8b3a(0x4ca)][_0x3f8b3a(0x713)]=_0x4ff111,dist$1[_0x3f8b3a(0x584)]=_0x4d0bc4,dist$1[_0x3f8b3a(0x3cb)]=_0x45a273,dist$1;}var iterable,hasRequiredIterable;function requireIterable(){const _0x559415=_0x7f204b;if(hasRequiredIterable)return iterable;hasRequiredIterable=0x1;const {ExtendedIterable:_0x36c9c1}=requireDist$1(),_0x1a1e32=Number(process.env.OKDB_NATIVE_RANGE_CHUNK)||0x3e8,_0x32e90c=Math['min'](_0x1a1e32,Number(process.env.OKDB_NATIVE_ROW_CHUNK)||0x100),_0x10c208=new Set([_0x559415(0x697),'byIndex',_0x559415(0x5ee),_0x559415(0x876)]),_0x39b78f=Math[_0x559415(0x415)](_0x32e90c,Number(process.env.OKDB_NATIVE_RANGE_FIRST)||0x1),_0x4bbbcd=0x4,_0x2556ce=(_0xd3958d,_0x216a2d=_0x1a1e32)=>Math[_0x559415(0x415)](_0x216a2d,_0xd3958d*_0x4bbbcd),_0x5a0412={'value':undefined,'done':!![]};function _0x5d2a61(_0x2f6831){const _0x589a7b=_0x559415,_0x140e88=new _0x36c9c1();return _0x140e88[_0x589a7b(0x65f)]=()=>{let _0x181256=0x0;return{'next'(){return _0x181256<_0x2f6831['length']?{'value':_0x2f6831[_0x181256++],'done':![]}:{'value':undefined,'done':!![]};},'return'(){const _0x1f77cf=_0x20a5;return _0x181256=_0x2f6831[_0x1f77cf(0x29a)],{'value':undefined,'done':!![]};},'throw'(){const _0x59a451=_0x20a5;return _0x181256=_0x2f6831[_0x59a451(0x29a)],{'value':undefined,'done':!![]};}};},_0x140e88;}const _0x549d26=_0x569fea=>typeof _0x569fea===_0x559415(0x79a)&&!Number['isNaN'](_0x569fea)?Math[_0x559415(0x68a)](0x0,Math[_0x559415(0x627)](_0x569fea)):Infinity,_0x3d45b4=_0x126836=>typeof _0x126836===_0x559415(0x79a)?Math[_0x559415(0x68a)](0x0,Math['trunc'](_0x126836))||0x0:0x0;function _0x50c088(_0x12dcc9,_0x310db0,_0x5a3e72,_0x412d33={}){const _0x5c6b0d=_0x559415,_0x4bdffe=new _0x36c9c1(),_0x23e261=(_0x412d33['limitOf']||_0x549d26)(_0x310db0['limit']),_0x5ccd6a=_0x412d33[_0x5c6b0d(0x66f)]?_0x32e90c:_0x1a1e32,_0x20958d=_0x412d33[_0x5c6b0d(0x625)]||((_0x188531,_0x10bf47)=>{const _0x20842c=_0x5c6b0d;_0x188531['start']=_0x10bf47,_0x188531[_0x20842c(0x223)]=!![],delete _0x188531[_0x20842c(0x7f1)];});let _0x3ffe38=null;if(_0x412d33[_0x5c6b0d(0x300)]){const _0x137b86={..._0x310db0,'limit':Math[_0x5c6b0d(0x415)](_0x39b78f,_0x23e261)};_0x3ffe38={'rows':_0x12dcc9(_0x137b86),'limit':_0x137b86['limit']};const _0x36717a=_0x3ffe38;queueMicrotask(()=>{const _0x30e0c0=_0x5c6b0d;_0x36717a[_0x30e0c0(0x33a)]=!![];});}return _0x4bdffe[_0x5c6b0d(0x65f)]=()=>{const _0x2c200b=_0x5c6b0d;let _0x57d44b=[],_0x5ceac8=0x0,_0x3d8a40=0x0,_0x38be1f,_0x401bb3=![],_0x2008cc=![],_0x531c6a=_0x39b78f;if(_0x3ffe38&&!_0x3ffe38['dropped']&&!_0x3ffe38[_0x2c200b(0x6d1)]){_0x3ffe38[_0x2c200b(0x6d1)]=!![],_0x57d44b=_0x3ffe38[_0x2c200b(0x66f)],_0x401bb3=!![],_0x531c6a=_0x2556ce(_0x531c6a,_0x5ccd6a);if(_0x57d44b[_0x2c200b(0x29a)]<_0x3ffe38['limit'])_0x2008cc=!![];if(_0x57d44b[_0x2c200b(0x29a)])_0x38be1f=_0x5a3e72(_0x57d44b[_0x57d44b[_0x2c200b(0x29a)]-0x1]);}const _0x28a869=()=>{const _0x9ed157=_0x2c200b;if(_0x2008cc)return;const _0x1ccfa1=_0x23e261-_0x3d8a40;if(_0x1ccfa1<=0x0){_0x2008cc=!![],_0x57d44b=[];return;}const _0x28d00b={..._0x310db0,'limit':Math[_0x9ed157(0x415)](_0x531c6a,_0x1ccfa1)};if(_0x401bb3)_0x20958d(_0x28d00b,_0x38be1f);_0x401bb3=!![],_0x531c6a=_0x2556ce(_0x531c6a,_0x5ccd6a),_0x57d44b=_0x12dcc9(_0x28d00b),_0x5ceac8=0x0;if(_0x57d44b[_0x9ed157(0x29a)]<_0x28d00b[_0x9ed157(0x55c)])_0x2008cc=!![];if(_0x57d44b[_0x9ed157(0x29a)])_0x38be1f=_0x5a3e72(_0x57d44b[_0x57d44b[_0x9ed157(0x29a)]-0x1]);};return{'next'(){const _0x159f87=_0x2c200b;if(_0x5ceac8>=_0x57d44b[_0x159f87(0x29a)])_0x28a869();if(_0x5ceac8>=_0x57d44b[_0x159f87(0x29a)])return{'value':undefined,'done':!![]};return _0x3d8a40++,{'value':_0x57d44b[_0x5ceac8++],'done':![]};},'return'(){return _0x2008cc=!![],_0x57d44b=[],{'value':undefined,'done':!![]};},'throw'(){return _0x2008cc=!![],_0x57d44b=[],{'value':undefined,'done':!![]};}};},_0x4bdffe;}function _0x2b019b(_0x3dc705,_0x526b0f,_0xefc98e,_0x308ef2,_0x31e2e3={}){const _0x3caf0e=_0x559415,_0x247c20=(_0x31e2e3[_0x3caf0e(0x2da)]||_0x549d26)(_0x308ef2&&_0x308ef2[_0x3caf0e(0x55c)]),_0xcd26e3=_0x10c208['has'](_0x526b0f)?_0x32e90c:_0x1a1e32,_0x1d7234=(_0x31e2e3['offsetOf']||_0x3d45b4)(_0x308ef2&&_0x308ef2[_0x3caf0e(0x7f1)]),_0x1dadd8=(_0x140fcd,_0x5080a3,_0x1a29c9)=>{const _0x242785=_0x3caf0e,_0x7138ac=_0x247c20-_0x5080a3,_0x2a30bf=Math[_0x242785(0x415)](_0x1a29c9,_0x7138ac),_0x490d8d={'limit':_0x2a30bf,'offset':_0x1d7234+_0x5080a3},_0x42bfe2=_0x3dc705(_0x242785(0x489),[_0x140fcd,_0x526b0f,_0x2a30bf===_0x7138ac?Infinity:_0x2a30bf,..._0xefc98e(_0x490d8d)]);if(_0x42bfe2[0x0]===-0x1){const _0x163b5d={'offset':_0x1d7234+_0x5080a3};if(_0x7138ac!==Infinity)_0x163b5d['limit']=_0x7138ac;return{'pin':0x0,'rows':_0x3dc705(_0x526b0f,_0xefc98e(_0x163b5d)),'raw':Infinity,'eager':!![]};}return{'pin':_0x42bfe2[0x0],'rows':_0x42bfe2[0x1],'raw':_0x42bfe2[0x2]};},_0x2f6a99=_0x43bd7b=>{const _0x4c9cac=_0x3caf0e;if(_0x43bd7b)_0x3dc705(_0x4c9cac(0x3a9),[_0x43bd7b]);};function _0x54666c(_0x3e3014,_0x29d6e1,_0x44289b){const _0x51399a=_0x3caf0e;let _0x2424ee=0x0,_0x340c0c=[],_0x58dc12=0x0,_0x3b5c5a=_0x3e3014,_0x49fc48=_0x39b78f,_0x181e89=_0x247c20-_0x3e3014<=0x0;if(_0x44289b)({buf:_0x340c0c,pos:_0x58dc12,consumed:_0x3b5c5a,size:_0x49fc48,exhausted:_0x181e89}=_0x44289b);const _0xd45acc=_0x1b731f=>{const _0x535378=_0x20a5;_0x2424ee=_0x1b731f[_0x535378(0x850)],_0x340c0c=_0x1b731f['rows'],_0x58dc12=0x0,_0x3b5c5a+=_0x1b731f[_0x535378(0x1a3)],_0x49fc48=_0x2556ce(_0x49fc48,_0xcd26e3);if(!_0x2424ee)_0x181e89=!![];};if(_0x29d6e1)_0xd45acc(_0x29d6e1);const _0x1035fb=()=>{const _0x23e2ee=_0x2424ee;_0x2424ee=0x0,_0x2f6a99(_0x23e2ee);},_0x59eb63={'next'(){const _0x4128c9=_0x20a5;while(_0x58dc12>=_0x340c0c[_0x4128c9(0x29a)]){if(_0x181e89||_0x247c20-_0x3b5c5a<=0x0)return _0x181e89=!![],_0x1035fb(),_0x5a0412;try{_0xd45acc(_0x1dadd8(_0x2424ee,_0x3b5c5a,_0x49fc48));}catch(_0x3dc918){_0x2424ee=0x0,_0x181e89=!![],_0x340c0c=[];throw _0x3dc918;}}return{'value':_0x340c0c[_0x58dc12++],'done':![]};},'return'(){return _0x1035fb(),_0x5a0412;},'throw'(){return _0x1035fb(),_0x5a0412;},'resumed'(){return _0x54666c(0x0,null,{'buf':_0x340c0c,'pos':_0x58dc12,'consumed':_0x3b5c5a,'size':_0x49fc48,'exhausted':_0x181e89});},[Symbol[_0x51399a(0x38b)]](){return this;}};return _0x59eb63;}function _0x1472be(){if(_0x247c20<=0x0)return null;const _0x37f14b=_0x1dadd8(0x0,0x0,_0x39b78f);return queueMicrotask(()=>{const _0x401a49=_0x20a5;!_0x37f14b[_0x401a49(0x6d1)]&&(_0x37f14b['dropped']=!![],_0x2f6a99(_0x37f14b[_0x401a49(0x850)]));}),_0x37f14b;}return{'source':_0x54666c,'prefetch':_0x1472be};}function _0xb25593(_0x37942f){const _0x23e355=_0x559415;if(!_0x37942f||_0x37942f[_0x23e355(0x6d1)]||_0x37942f['dropped'])return null;return _0x37942f[_0x23e355(0x6d1)]=!![],_0x37942f;}return iterable={'fromArray':_0x5d2a61,'chunkedRange':_0x50c088,'pinnedChunks':_0x2b019b,'claimPrefetch':_0xb25593,'lmdbLimit':_0x549d26,'lmdbOffset':_0x3d45b4,'CHUNK':_0x1a1e32,'ROW_CHUNK':_0x32e90c,'FIRST':_0x39b78f},iterable;}var rawdb,hasRequiredRawdb;function requireRawdb(){const _0xf1a12a=_0x7f204b;if(hasRequiredRawdb)return rawdb;hasRequiredRawdb=0x1;const {fromArray:_0x219f6f}=requireIterable();class _0x3a30ac{constructor(_0x9924e6,_0x41ccab='',_0x354a95={},_0x22ba13=null){const _0x58e5fc=_0x20a5;this['_env']=_0x9924e6,this['name']=_0x41ccab,this['dupSort']=!!(_0x354a95&&_0x354a95[_0x58e5fc(0x797)]),this[_0x58e5fc(0x617)]=!!(_0x354a95&&_0x354a95[_0x58e5fc(0x617)]),this['_root']=_0x22ba13||this,this['_buf']=null;}get[_0xf1a12a(0x788)](){const _0x43928d=_0xf1a12a;return this[_0x43928d(0x797)]?!![]:this[_0x43928d(0x617)]?'v':![];}['_n'](_0x30005c,_0x22164f){const _0x5053e4=_0xf1a12a;return this[_0x5053e4(0x7c1)]['okdb'][_0x5053e4(0x5a6)]('raw',this['_env'][_0x5053e4(0x5d4)],_0x30005c,[this[_0x5053e4(0x5d4)],this[_0x5053e4(0x788)],..._0x22164f],!![]);}[_0xf1a12a(0x657)](_0x479424,_0x2e09cc){const _0x46b437=_0xf1a12a;return this['_env'][_0x46b437(0x44b)][_0x46b437(0x5a6)](_0x46b437(0x1a3),this[_0x46b437(0x7c1)]['name'],_0x479424,[this['name'],this[_0x46b437(0x788)],..._0x2e09cc],![]);}[_0xf1a12a(0x565)](_0x50a6c8){const _0x8b4f13=_0xf1a12a,_0x1186ec=this['_env'][_0x8b4f13(0x323)];if(_0x1186ec)_0x1186ec['push']({'sub':this[_0x8b4f13(0x5d4)],'dup':this['_dupArg'],..._0x50a6c8});else this['_env'][_0x8b4f13(0x44b)]['_call'](_0x8b4f13(0x1a3),this['_env']['name'],_0x8b4f13(0x1fc),[[{'sub':this[_0x8b4f13(0x5d4)],'dup':this[_0x8b4f13(0x788)],..._0x50a6c8}]],!![]);}[_0xf1a12a(0x7f0)](_0x1c92a2){const _0x26343f=_0xf1a12a;return this['_read'](_0x26343f(0x7f0),[_0x1c92a2]);}['getEntry'](_0x21cb81){const _0x47b5ca=_0xf1a12a;if(this[_0x47b5ca(0x617)])return this[_0x47b5ca(0x657)](_0x47b5ca(0x30e),[_0x21cb81]);const _0x171377=this[_0x47b5ca(0x7f0)](_0x21cb81);return _0x171377===undefined?undefined:{'value':_0x171377};}['doesExist'](_0x55e216){return this['_read']('exists',[_0x55e216]);}[_0xf1a12a(0x58c)](_0x422d20){const _0x10353d=_0xf1a12a;return this[_0x10353d(0x7f0)](_0x422d20);}[_0xf1a12a(0x697)](_0x44109a={}){const _0x10ab35=_0xf1a12a,_0x3f4742=this['_read']('getRange',[_0x44109a]),_0xeb1ff3=_0x44109a[_0x10ab35(0x772)]===![],_0x1408e2=_0x44109a['keys']===![];return _0x219f6f(_0x3f4742[_0x10ab35(0x70b)](([_0x20cff3,_0x3c61d4,_0x5dd474])=>{if(_0xeb1ff3)return _0x20cff3;if(_0x1408e2)return _0x3c61d4;return _0x5dd474===undefined?{'key':_0x20cff3,'value':_0x3c61d4}:{'key':_0x20cff3,'value':_0x3c61d4,'version':_0x5dd474};}));}[_0xf1a12a(0x755)](_0x6f980c={}){const _0x4e62b1=_0xf1a12a;return _0x219f6f(this[_0x4e62b1(0x657)](_0x4e62b1(0x697),[_0x6f980c])[_0x4e62b1(0x70b)](([_0x456760])=>_0x456760));}[_0xf1a12a(0x579)](_0x4ebbe9,_0x3140da={}){const _0x369bb4=_0xf1a12a,_0x3f9001=this[_0x369bb4(0x657)](_0x369bb4(0x697),[{..._0x3140da,'start':_0x4ebbe9,'end':_0x4ebbe9,'inclusiveEnd':!![]}]);return _0x219f6f(_0x3f9001[_0x369bb4(0x70b)](([,_0x4923c5])=>_0x4923c5));}[_0xf1a12a(0x3f2)](_0x244042={}){const _0x3e1d30=_0xf1a12a;return this[_0x3e1d30(0x657)]('count',[_0x244042]);}['getStats'](){const _0x38ba4d=_0xf1a12a;return{'entryCount':this[_0x38ba4d(0x3f2)]()};}[_0xf1a12a(0x1a5)](_0x3d1b94,_0x3abf75,_0x4f4bda){const _0x12d28f=_0xf1a12a;return this['_write']({'op':_0x12d28f(0x1a5),'key':_0x3d1b94,'value':_0x3abf75,'version':_0x4f4bda}),Promise['resolve'](!![]);}[_0xf1a12a(0x649)](_0x5a86d7,_0x324139,_0x1799e1){const _0x208b66=_0xf1a12a;return this['_write']({'op':_0x208b66(0x1a5),'key':_0x5a86d7,'value':_0x324139,'version':_0x1799e1}),!![];}['remove'](_0x54bd7a,_0x341551){const _0x2edadf=_0xf1a12a;return this[_0x2edadf(0x565)]({'op':_0x2edadf(0x5ca),'key':_0x54bd7a,'value':_0x341551}),Promise[_0x2edadf(0x7f5)](!![]);}[_0xf1a12a(0x417)](_0xe4f6f,_0x28de92){const _0x5c6b35=_0xf1a12a;return this[_0x5c6b35(0x565)]({'op':'remove','key':_0xe4f6f,'value':_0x28de92}),!![];}[_0xf1a12a(0x3fe)](){const _0x23269f=_0xf1a12a;this[_0x23269f(0x565)]({'op':_0x23269f(0x7fd)});}['clearAsync'](){const _0x2b07a3=_0xf1a12a;return this[_0x2b07a3(0x565)]({'op':_0x2b07a3(0x7fd)}),Promise[_0x2b07a3(0x7f5)]();}[_0xf1a12a(0x529)](){const _0x316d30=_0xf1a12a;this[_0x316d30(0x3fe)]();}[_0xf1a12a(0x4d9)](_0x49a06f,_0x51ce8a={}){const _0x60c6d0=_0xf1a12a,_0x307be1=typeof _0x49a06f===_0x60c6d0(0x2bf)?_0x49a06f:_0x51ce8a,_0xc0f8bc=typeof _0x49a06f==='object'?_0x49a06f[_0x60c6d0(0x5d4)]:_0x49a06f,_0xe959c1=new _0x3a30ac(this[_0x60c6d0(0x7c1)],_0xc0f8bc,_0x307be1);return _0xe959c1[_0x60c6d0(0x565)]({'op':_0x60c6d0(0x2cd)}),_0xe959c1;}[_0xf1a12a(0x690)](){}[_0xf1a12a(0x595)](_0x4dd75b){const _0xb3c20d=_0xf1a12a;return this[_0xb3c20d(0x27c)](_0x4dd75b);}async['transaction'](_0x65d06a){const _0x5078cf=_0xf1a12a;return this[_0x5078cf(0x27c)](_0x65d06a);}['childTransaction'](_0x54fdbf){const _0x600934=_0xf1a12a;return this[_0x600934(0x27c)](_0x54fdbf);}[_0xf1a12a(0x27c)](_0x29491a){const _0x422e75=_0xf1a12a,_0x3a9772=this['_env'];if(_0x3a9772['_rawTxnBuf'])return _0x29491a();_0x3a9772[_0x422e75(0x323)]=[];let _0x5c0023;try{_0x5c0023=_0x29491a();}catch(_0x4ccfc4){_0x3a9772[_0x422e75(0x323)]=null;throw _0x4ccfc4;}const _0x5eed38=_0x3a9772[_0x422e75(0x323)];_0x3a9772['_rawTxnBuf']=null;if(_0x5eed38[_0x422e75(0x29a)])_0x3a9772[_0x422e75(0x44b)][_0x422e75(0x5a6)]('raw',_0x3a9772[_0x422e75(0x5d4)],_0x422e75(0x1fc),[_0x5eed38],!![]);return _0x5c0023;}[_0xf1a12a(0x5c5)](){return{'done'(){}};}[_0xf1a12a(0x5e3)](){}}return rawdb={'RawDb':_0x3a30ac},rawdb;}var views,hasRequiredViews;function requireViews(){const _0x5ece7d=_0x7f204b;if(hasRequiredViews)return views;hasRequiredViews=0x1;const {RawDb:_0x36f46d}=requireRawdb();class _0x125a5d{constructor(_0x4c6bac){const _0x221627=_0x20a5;this[_0x221627(0x27b)]=_0x4c6bac,this['_n']=(_0x63fc86,_0x110212,_0x2aa95f=!![])=>_0x4c6bac['okdb']['_call']('views',_0x4c6bac[_0x221627(0x5d4)],_0x63fc86,_0x110212,_0x2aa95f);}get[_0x5ece7d(0x58e)](){const _0x1214b4=_0x5ece7d,_0x6cb0c8=this,_0x4783f9=this[_0x1214b4(0x27b)],_0x1e3749=_0x1f29b0=>_0x1f29b0?new _0x36f46d(_0x4783f9,_0x1f29b0[_0x1214b4(0x5d4)],{'dupSort':_0x1f29b0['dup']}):undefined,_0x45278d=_0x4b031d=>{const _0x312479=_0x1214b4,_0x110dbe=_0x6cb0c8['_n']('stateInfo',[_0x4b031d],![]);if(!_0x110dbe)return undefined;const _0x4725ad=_0x110dbe['compiled'],_0x170354=new Map(Object[_0x312479(0x488)](_0x4725ad[_0x312479(0x4a0)])),_0x57a3f2=new Map(Object[_0x312479(0x488)](_0x110dbe[_0x312479(0x823)])['map'](([_0x30370d,_0x39e991])=>[_0x30370d,_0x1e3749(_0x39e991)]));return{'name':_0x4b031d,'compiled':{'T':_0x4725ad['T'],'reducers':_0x4725ad[_0x312479(0x516)],'refs':_0x170354,'granId':_0x4725ad[_0x312479(0x555)],'type':_0x4725ad[_0x312479(0x225)],'_nidFor':_0x19700c=>_0x6cb0c8['_n'](_0x312479(0x262),[_0x4b031d,_0x19700c],![])},'viewDb':_0x1e3749(_0x110dbe[_0x312479(0x48a)][_0x312479(0x6b6)]),'metaDb':_0x1e3749(_0x110dbe[_0x312479(0x48a)]['metaDb']),'itemsDb':_0x1e3749(_0x110dbe[_0x312479(0x48a)][_0x312479(0x1f9)]),'bucketsDb':_0x1e3749(_0x110dbe[_0x312479(0x48a)][_0x312479(0x27d)]),'sortedDb':_0x1e3749(_0x110dbe['dbs']['sortedDb']),'groupsDb':_0x1e3749(_0x110dbe[_0x312479(0x48a)][_0x312479(0x85a)]),'prevDb':_0x1e3749(_0x110dbe['dbs'][_0x312479(0x291)]),'refItemsDbs':_0x57a3f2,'refTrackingDbs':new Map(Object[_0x312479(0x488)](_0x110dbe['refTrackingDbs']||{})[_0x312479(0x70b)](([_0x188fce,_0x342e70])=>[_0x188fce,_0x1e3749(_0x342e70)])),'stopFn':_0x110dbe[_0x312479(0x2a5)]?async()=>_0x6cb0c8['_n'](_0x312479(0x662),[_0x4b031d]):null,'bootstrapWorker':null};};return{'get':_0xa5df=>_0x45278d(_0xa5df),'has':_0x181a3b=>_0x6cb0c8['_n'](_0x1214b4(0x7ae),[],![])['includes'](_0x181a3b),'keys':()=>_0x6cb0c8['_n'](_0x1214b4(0x7ae),[],![])[Symbol[_0x1214b4(0x38b)]](),get 'size'(){const _0x992edb=_0x1214b4;return _0x6cb0c8['_n'](_0x992edb(0x7ae),[],![])[_0x992edb(0x29a)];},[Symbol[_0x1214b4(0x38b)]]:()=>_0x6cb0c8['_n'](_0x1214b4(0x7ae),[],![])['map'](_0x3a1d6b=>[_0x3a1d6b,_0x45278d(_0x3a1d6b)])[Symbol[_0x1214b4(0x38b)]]()};}get[_0x5ece7d(0x3fa)](){const _0x1781d4=_0x5ece7d,_0x33c14d=this;return{'has':_0x201225=>_0x33c14d['_n'](_0x1781d4(0x50e),[],![])[_0x1781d4(0x3b9)](_0x201225),get 'size'(){const _0x4467ac=_0x1781d4;return _0x33c14d['_n']('customReducerNames',[],![])[_0x4467ac(0x29a)];},'keys':()=>_0x33c14d['_n'](_0x1781d4(0x50e),[],![])[Symbol[_0x1781d4(0x38b)]]()};}async[_0x5ece7d(0x7ef)](){const _0x504139=_0x5ece7d;return this['_n'](_0x504139(0x7ef),[]);}async[_0x5ece7d(0x55e)](_0x53b8bc={}){const _0x1f14a3=_0x5ece7d;return this['_n'](_0x1f14a3(0x55e),[_0x53b8bc]);}async[_0x5ece7d(0x3db)](_0x54c7c2,_0x9329b0){const _0x2a7539=_0x5ece7d;return this['_n'](_0x2a7539(0x3db),[_0x54c7c2,_0x9329b0]),{'name':_0x54c7c2};}['get'](_0x122058,_0x2addd4={}){const _0x39ce30=_0x5ece7d,_0x6b7cad=this['_n'](_0x39ce30(0x7f0),[_0x122058,{'preview':_0x2addd4?.[_0x39ce30(0x285)]??{}}],![]);if(_0x6b7cad==null)return null;const _0x316e99=this['_n'](_0x39ce30(0x882),[_0x122058],![]);if(!_0x316e99)return _0x6b7cad;const _0x35eefa=_0x1f2b33=>(_0x58d1d0={})=>this['_n'](_0x39ce30(0x6de),[_0x122058,_0x1f2b33,_0x58d1d0],![]);if(_0x316e99[_0x39ce30(0x1bd)]){_0x6b7cad['items']=_0x35eefa({'kind':_0x39ce30(0x1bd)});for(const _0x4d5631 of _0x316e99[_0x39ce30(0x516)]){if(!_0x4d5631[_0x39ce30(0x6de)])continue;if(_0x4d5631['grouped']){const _0x275986=_0x6b7cad[_0x4d5631[_0x39ce30(0x5d4)]];if(_0x275986?.[_0x39ce30(0x285)]&&Array[_0x39ce30(0x7c8)](_0x275986[_0x39ce30(0x285)])){for(const _0xac0810 of _0x275986[_0x39ce30(0x285)])_0xac0810[_0x39ce30(0x6de)]=_0x35eefa({'kind':_0x39ce30(0x5e7),'reducer':_0x4d5631[_0x39ce30(0x5d4)],'key':_0xac0810[_0x39ce30(0x3d3)]});}}else _0x6b7cad[_0x4d5631['name']]&&(_0x6b7cad[_0x4d5631['name']][_0x39ce30(0x6de)]=_0x35eefa({'kind':_0x39ce30(0x505),'reducer':_0x4d5631[_0x39ce30(0x5d4)]}));}}for(const _0x4de61a of _0x316e99[_0x39ce30(0x4a0)]){if(!_0x4de61a[_0x39ce30(0x1bd)])continue;const _0x7c7c9=_0x6b7cad[_0x4de61a[_0x39ce30(0x5d4)]];if(!_0x7c7c9||typeof _0x7c7c9!==_0x39ce30(0x2bf))continue;_0x7c7c9['items']=_0x35eefa({'kind':_0x39ce30(0x1bd),'ref':_0x4de61a[_0x39ce30(0x5d4)]});for(const _0x43dc11 of _0x4de61a[_0x39ce30(0x516)]){if(!_0x43dc11[_0x39ce30(0x6de)])continue;if(_0x43dc11[_0x39ce30(0x872)]){const _0x2fa69d=_0x7c7c9[_0x43dc11[_0x39ce30(0x5d4)]];if(_0x2fa69d?.[_0x39ce30(0x285)]&&Array['isArray'](_0x2fa69d[_0x39ce30(0x285)])){for(const _0x5cc5c0 of _0x2fa69d[_0x39ce30(0x285)])_0x5cc5c0[_0x39ce30(0x6de)]=_0x35eefa({'kind':'group','ref':_0x4de61a[_0x39ce30(0x5d4)],'reducer':_0x43dc11[_0x39ce30(0x5d4)],'key':_0x5cc5c0['key']});}}else _0x7c7c9[_0x43dc11['name']]&&(_0x7c7c9[_0x43dc11[_0x39ce30(0x5d4)]]['items']=_0x35eefa({'kind':_0x39ce30(0x505),'ref':_0x4de61a[_0x39ce30(0x5d4)],'reducer':_0x43dc11[_0x39ce30(0x5d4)]}));}}return _0x6b7cad;}[_0x5ece7d(0x2ea)](_0x5b6ff1){const _0x3c4f8f=_0x5ece7d;return this['_n'](_0x3c4f8f(0x2ea),[_0x5b6ff1],![]);}[_0x5ece7d(0x4ba)](_0x35e9a4,_0x25adc7={}){return this['_n']('itemsGroups',[_0x35e9a4,_0x25adc7],![]);}['range'](_0x1266f7,_0x29c9e3={}){const _0x878352=_0x5ece7d;return this['_n'](_0x878352(0x7c6),[_0x1266f7,_0x29c9e3],![]);}[_0x5ece7d(0x646)](_0x524cca,_0x520795={}){return this['_n']('listBuckets',[_0x524cca,_0x520795],![]);}async[_0x5ece7d(0x460)](){const _0x5bd135=_0x5ece7d;return this['_n'](_0x5bd135(0x460),[],![]);}async[_0x5ece7d(0x6c1)](_0xc99f61){const _0x39ce1c=_0x5ece7d;return this['_n'](_0x39ce1c(0x6c1),[_0xc99f61],![])??null;}async[_0x5ece7d(0x5ca)](_0x3bfb26,_0x2a3b7e={}){const _0xe1743d=_0x5ece7d;return this['_n'](_0xe1743d(0x5ca),[_0x3bfb26,_0x2a3b7e]);}async[_0x5ece7d(0x4a5)](_0xecb07e){const _0x2efb31=_0x5ece7d;return this['_n'](_0x2efb31(0x4a5),[_0xecb07e]);}async[_0x5ece7d(0x449)](_0x58d31a){const _0x574314=_0x5ece7d;return this['_n'](_0x574314(0x449),[_0x58d31a]);}async[_0x5ece7d(0x62d)](_0x1b053b){return this['_n']('rebuild',[_0x1b053b]);}async[_0x5ece7d(0x206)](_0x1b2088){const _0x5aba59=_0x5ece7d;return this['_n'](_0x5aba59(0x206),[_0x1b2088]);}[_0x5ece7d(0x7b5)](_0x1314fa,_0x5a91bb={}){return this['_n']('registerReducer',[_0x1314fa,{'apply':_0x5a91bb&&_0x5a91bb['apply']}]);}}return views={'OKDBViews':_0x125a5d},views;}var queue,hasRequiredQueue;function requireQueue(){const _0x5c5243=_0x7f204b;if(hasRequiredQueue)return queue;hasRequiredQueue=0x1;const {OKDBError:_0x297180}=requireErrors(),_0x3eeedc=requireBridge();class _0x21f162{constructor(_0x3980b4){const _0x578395=_0x20a5;this['env']=_0x3980b4,this[_0x578395(0x44b)]=_0x3980b4[_0x578395(0x44b)],this[_0x578395(0x6ae)]=_0x3980b4[_0x578395(0x44b)]['log']['child']({'feature':_0x578395(0x493)}),this['_workers']=new Set();}['_n'](_0x46d8ae,_0x4e818b,_0x5ac1cf=!![]){const _0x4517b6=_0x20a5;return this[_0x4517b6(0x44b)][_0x4517b6(0x5a6)](_0x4517b6(0x493),this['env']['name'],_0x46d8ae,_0x4e818b,_0x5ac1cf);}['_w'](_0x1a553f,_0x2e9799){const _0x265514=_0x20a5;return this[_0x265514(0x44b)][_0x265514(0x83f)](this['_n'](_0x1a553f,_0x2e9799));}async[_0x5c5243(0x708)](){const _0x1f7a47=_0x5c5243;return this['_n'](_0x1f7a47(0x2cd),[]);}async[_0x5c5243(0x460)](_0x3c8394={}){const _0x5b0db7=_0x5c5243;return this['_n'](_0x5b0db7(0x460),[_0x3c8394],![]);}get[_0x5c5243(0x246)](){const _0x311837=_0x5c5243,{RawDb:_0x5b474f}=requireRawdb();return this[_0x311837(0x22e)]||(this[_0x311837(0x22e)]=new _0x5b474f(this['env'],_0x311837(0x2be)));}async['_sweepOrphanLogs'](){const _0x1bd64f=_0x5c5243;return this['_w'](_0x1bd64f(0x19f),[]);}async['enqueue'](_0x4d1094,_0x505c4a,_0x510729={}){const _0x16adf4=_0x5c5243,{txn:_0x2bf2d1,..._0x1ffb75}=_0x510729||{};if(_0x2bf2d1)return this[_0x16adf4(0x4fb)](_0x2bf2d1,_0x4d1094,_0x505c4a,_0x1ffb75);const _0x56ca40=this[_0x16adf4(0x44b)][_0x16adf4(0x20b)];if(_0x56ca40&&_0x56ca40[_0x16adf4(0x493)][_0x16adf4(0x29a)])_0x56ca40['commit']();const _0x12596b=this['_n'](_0x16adf4(0x66b),[_0x4d1094,_0x505c4a,_0x1ffb75],![]);return this[_0x16adf4(0x44b)][_0x16adf4(0x83f)](_0x12596b['id'])[_0x16adf4(0x315)](_0x16070e=>{const _0x2a3218=_0x16adf4;if(_0x12596b['claimed'])this[_0x2a3218(0x3e4)](_0x4d1094);else try{this['okdb']['_pumper'][_0x2a3218(0x1bc)]();}catch{}return _0x16070e;});}[_0x5c5243(0x3e4)](_0x52d9e6){queueMicrotask(()=>{const _0x3b858e=_0x20a5;try{this['_n'](_0x3b858e(0x79c),[_0x52d9e6]);}catch{}});}[_0x5c5243(0x4fb)](_0x5647ef,_0xc6233c,_0x5b2a09,_0x2b8320){const _0x38fd02=_0x5c5243,_0x42fdc3=_0x5647ef['raw']??_0x5647ef;if(_0x42fdc3[_0x38fd02(0x1fa)])throw new _0x297180('Transaction\x20already\x20closed',_0x38fd02(0x331));if(_0x42fdc3[_0x38fd02(0x44b)]&&_0x42fdc3[_0x38fd02(0x44b)]!==this[_0x38fd02(0x27b)]&&_0x42fdc3[_0x38fd02(0x44b)][_0x38fd02(0x5d4)]!==this[_0x38fd02(0x27b)][_0x38fd02(0x5d4)])throw new _0x297180(_0x38fd02(0x83c),_0x38fd02(0x260),{'txnEnv':_0x42fdc3[_0x38fd02(0x44b)]['name'],'queueEnv':this['env'][_0x38fd02(0x5d4)]});const _0x234be0=this['_n']('prepareTxnEnqueue',[_0xc6233c,_0x5b2a09,_0x2b8320],![]);if(_0x234be0[_0x38fd02(0x8b6)])return _0x234be0['id'];if(_0x234be0[_0x38fd02(0x5a4)])_0x5647ef['update']('~queue_jobs',_0x234be0[_0x38fd02(0x5a4)]['key'],_0x234be0[_0x38fd02(0x5a4)][_0x38fd02(0x3a5)],{'ifVersion':_0x234be0[_0x38fd02(0x5a4)][_0x38fd02(0x68c)]});if(_0x5b2a09!==undefined)_0x5647ef[_0x38fd02(0x1a5)]('~queue_payloads',_0x234be0['id'],_0x5b2a09);_0x5647ef['put'](_0x38fd02(0x680),_0x234be0['id'],_0x234be0[_0x38fd02(0x41a)]);if(typeof _0x42fdc3[_0x38fd02(0x6b8)]===_0x38fd02(0x8a6))_0x42fdc3[_0x38fd02(0x6b8)](()=>{const _0x1ed430=_0x38fd02;if(this['_n'](_0x1ed430(0x367),[_0x234be0['id'],_0xc6233c,_0x234be0[_0x1ed430(0x48b)],_0x234be0[_0x1ed430(0x306)]]))this[_0x1ed430(0x3e4)](_0xc6233c);});return _0x234be0['id'];}async[_0x5c5243(0x383)](_0x843d91,_0x3c6323={}){const _0x1edca8=_0x5c5243;if(typeof _0x843d91!==_0x1edca8(0x78e)||!_0x843d91)throw new _0x297180(_0x1edca8(0x87f),_0x1edca8(0x672));return this['_w'](_0x1edca8(0x383),[_0x843d91,_0x3c6323]);}async[_0x5c5243(0x775)](_0x2dc942,_0x108f0b,_0x3f9969=null){return this['_w']('markJobHeartbeat',[_0x2dc942,_0x108f0b,_0x3f9969]);}async['heartbeat'](_0x3556f2,_0x204fb6,_0x472c26=null){return this['markJobHeartbeat'](_0x3556f2,_0x204fb6,_0x472c26);}async['markJobProgress'](_0x1c7b18,_0x5484be,_0x407baa){return this['_w']('markJobProgress',[_0x1c7b18,_0x5484be,_0x407baa]);}async[_0x5c5243(0x7c0)](_0x4374d2,_0x350dbb,_0x231e9e){const _0xd034ce=_0x5c5243;return this['_w'](_0xd034ce(0x7c0),[_0x4374d2,_0x350dbb,_0x231e9e]);}async[_0x5c5243(0x4e4)](_0x26c661,_0x385700,_0x39030f){const _0x1be5e9=_0x5c5243;return this[_0x1be5e9(0x7c0)](_0x26c661,_0x385700,_0x39030f);}async[_0x5c5243(0x360)](_0x57e8e6,_0x2bc664,_0x139cae,_0x312771){const _0x4f94fa=_0x5c5243,_0x1b24f4=_0x139cae instanceof Error?{'message':_0x139cae[_0x4f94fa(0x4ee)],'stack':_0x139cae[_0x4f94fa(0x4e1)]}:_0x139cae;return this['_w'](_0x4f94fa(0x360),[_0x57e8e6,_0x2bc664,_0x1b24f4,_0x312771]);}async[_0x5c5243(0x571)](_0x8337f8,_0x170332,_0x34e42f,_0x582f03){const _0x3476a7=_0x5c5243;return this[_0x3476a7(0x360)](_0x8337f8,_0x170332,_0x34e42f,_0x582f03);}async[_0x5c5243(0x573)](_0xcca0f,_0x7931bb,_0xc9a40d={}){const _0x43de1a=_0x5c5243;return this['_w'](_0x43de1a(0x573),[_0xcca0f,_0x7931bb,_0xc9a40d]);}async[_0x5c5243(0x34b)](_0x4e3b2e){const _0x5f83a2=_0x5c5243;return this['_n'](_0x5f83a2(0x34b),[_0x4e3b2e],![]);}async['updateJob'](_0x44c29f,_0xd8cd31={},_0x40ef3b={}){const _0x21dc5f=_0x5c5243,_0x3cb7e1=_0x40ef3b&&_0x40ef3b[_0x21dc5f(0x3e3)];if(!_0x3cb7e1)return this['_w'](_0x21dc5f(0x411),[_0x44c29f,_0xd8cd31]);const {next:_0x53d086,version:_0x417655}=this['_n'](_0x21dc5f(0x539),[_0x44c29f,_0xd8cd31],![]);_0x3cb7e1['update']('~queue_jobs',_0x44c29f,_0x53d086,{'ifVersion':_0x417655});let _0x567cb4;if(_0x21dc5f(0x5ac)in _0xd8cd31){if(_0xd8cd31[_0x21dc5f(0x5ac)]===undefined){if(this[_0x21dc5f(0x27b)][_0x21dc5f(0x30e)](_0x21dc5f(0x858),_0x44c29f))_0x3cb7e1['remove'](_0x21dc5f(0x858),_0x44c29f);}else _0x3cb7e1[_0x21dc5f(0x1a5)](_0x21dc5f(0x858),_0x44c29f,_0xd8cd31[_0x21dc5f(0x5ac)]);_0x567cb4=_0xd8cd31[_0x21dc5f(0x5ac)];}else _0x567cb4=this[_0x21dc5f(0x27b)][_0x21dc5f(0x7f0)]('~queue_payloads',_0x44c29f);return{..._0x53d086,'payload':_0x567cb4};}async['removeJob'](_0x2b8c1b,_0x22b4f9={}){const _0x51cbc7=_0x5c5243,_0x54ea43=_0x22b4f9&&_0x22b4f9[_0x51cbc7(0x3e3)];if(!_0x54ea43)return this['_w'](_0x51cbc7(0x547),[_0x2b8c1b]);if(!_0x2b8c1b)throw new _0x297180(_0x51cbc7(0x3b6),'BAD_PARAM');if(!this[_0x51cbc7(0x27b)]['getEntry']('~queue_jobs',_0x2b8c1b))return![];_0x54ea43[_0x51cbc7(0x5ca)]('~queue_jobs',_0x2b8c1b);if(this[_0x51cbc7(0x27b)][_0x51cbc7(0x30e)](_0x51cbc7(0x858),_0x2b8c1b))_0x54ea43[_0x51cbc7(0x5ca)](_0x51cbc7(0x858),_0x2b8c1b);if(typeof _0x54ea43[_0x51cbc7(0x6b8)]===_0x51cbc7(0x8a6))_0x54ea43[_0x51cbc7(0x6b8)](()=>this['_n']('removeJobLogsAfterCommit',[_0x2b8c1b]));return!![];}async[_0x5c5243(0x721)](_0x4c7e30){return this['_w']('cancelJob',[_0x4c7e30]);}async[_0x5c5243(0x2d1)](_0x5eb0d4){const _0x4383f7=_0x5c5243;return this['_w'](_0x4383f7(0x2d1),[_0x5eb0d4]);}async[_0x5c5243(0x482)](_0x2ce052,_0x197e19,_0xf79045){const _0x24155f=_0x5c5243,_0x55d78d=this['_n'](_0x24155f(0x630),[_0x197e19??null,_0xf79045??0x0,_0x2ce052]),_0x522d9b=0x1f4;for(let _0x54c75b=0x0;_0x54c75b<_0x55d78d['length'];_0x54c75b+=_0x522d9b){this['_n']('bulkRemoveChunk',[_0x55d78d[_0x24155f(0x231)](_0x54c75b,_0x54c75b+_0x522d9b),_0x54c75b,_0x55d78d['length'],_0x197e19??null]);if(_0x54c75b+_0x522d9b<_0x55d78d[_0x24155f(0x29a)])await new Promise(_0x3b490d=>setImmediate(_0x3b490d));}return this['_n'](_0x24155f(0x7f4),[_0x55d78d[_0x24155f(0x29a)],_0x197e19??null]),await new Promise(_0x28626b=>setImmediate(_0x28626b)),_0x55d78d[_0x24155f(0x29a)];}async['clearDone'](_0x33fe0b,_0x3194ac){const _0x432b96=_0x5c5243;return this['_clearChunked'](_0x432b96(0x355),_0x33fe0b,_0x3194ac);}async[_0x5c5243(0x374)](_0x1a06dd,_0x240298){const _0x51d8cf=_0x5c5243;return this[_0x51d8cf(0x482)]('failed',_0x1a06dd,_0x240298);}async[_0x5c5243(0x46e)](_0x1ba055,_0x3cb55a){const _0x1a717c=_0x5c5243;return this['_w'](_0x1a717c(0x46e),[_0x1ba055??null,_0x3cb55a??0x0]);}async['clearStuck'](_0x508638,_0x57f25d){const _0x1e5e77=_0x5c5243;return this['_w'](_0x1e5e77(0x7dd),[_0x508638??null,_0x57f25d??0x0]);}async[_0x5c5243(0x30c)](_0x5cd166,_0x487dd4,_0x5e0979){const _0x33b214=_0x5c5243;return this['_w'](_0x33b214(0x30c),[_0x5cd166,_0x487dd4,_0x5e0979]);}async['getJobLogs'](_0x37477f,_0x3275e9={}){return this['_n']('getJobLogs',[_0x37477f,_0x3275e9],![]);}async['addBucket'](_0x33d5f2,_0x512b37={}){const _0x1b124d=_0x5c5243,{txn:_0x27e77b,..._0x256a18}=_0x512b37||{};if(!_0x27e77b)return this['_w'](_0x1b124d(0x6f0),[_0x33d5f2,_0x256a18]);const _0x21ba79=(_0x250e6d,_0x24d98e,_0x15c95d,_0x30f440)=>{const _0x220cdd=_0x1b124d,_0x499a57=Math[_0x220cdd(0x64c)](Number(_0x250e6d));return Number[_0x220cdd(0x23e)](_0x499a57)?Math[_0x220cdd(0x415)](_0x30f440,Math[_0x220cdd(0x68a)](_0x15c95d,_0x499a57)):_0x24d98e;},_0x359ea9=typeof _0x33d5f2===_0x1b124d(0x78e)?_0x33d5f2[_0x1b124d(0x87c)]():'';if(!_0x359ea9)throw new Error(_0x1b124d(0x256));const _0x3ed9e5=_0x21ba79(_0x256a18[_0x1b124d(0x8a7)],0x0,0x0,0x3b9aca00);_0x27e77b[_0x1b124d(0x1a5)]('~queue_buckets',_0x359ea9,{'id':_0x359ea9,'tokens':_0x21ba79(_0x256a18[_0x1b124d(0x6ee)],_0x3ed9e5,0x0,_0x3ed9e5),'capacity':_0x3ed9e5,'refill_amount':_0x21ba79(_0x256a18[_0x1b124d(0x59b)],0x0,0x0,0x3b9aca00),'refill_every':_0x21ba79(_0x256a18[_0x1b124d(0x3fb)],0x0,0x0,0x16d*0x18*0x36ee80),'updated':Date[_0x1b124d(0x200)]()});}async['updateBucket'](_0x516f3b,_0xe5bf3b){const _0x50e91d=_0x5c5243;return this['_w'](_0x50e91d(0x450),[_0x516f3b,_0xe5bf3b]);}async[_0x5c5243(0x726)](_0x8f3307){return this['_w']('removeBucket',[_0x8f3307]);}[_0x5c5243(0x73b)](_0x5d2e2b){const _0x433e04=_0x5c5243,_0x41246f=this['_n'](_0x433e04(0x73b),[_0x5d2e2b],![]);return _0x41246f===null&&typeof _0x5d2e2b===_0x433e04(0x78e)&&_0x5d2e2b[_0x433e04(0x87c)]()?undefined:_0x41246f;}async[_0x5c5243(0x7ce)](_0x24d9a3,_0x1c5f2d){const _0x2fc02b=_0x5c5243;return this['_w'](_0x2fc02b(0x7ce),[_0x24d9a3,_0x1c5f2d]);}async[_0x5c5243(0x745)](_0x3ed91b,_0x1575ff={}){const _0x1bbdd4=_0x5c5243;return this['_w'](_0x1bbdd4(0x745),[_0x3ed91b,_0x1575ff]);}async[_0x5c5243(0x324)](_0x3ab1a9){return this['_n']('getJobType',[_0x3ab1a9],![]);}async[_0x5c5243(0x24f)](){const _0x9f3712=_0x5c5243;return this['_n'](_0x9f3712(0x24f),[],![]);}async[_0x5c5243(0x6a5)](_0x93095c){return this['_w']('removeJobType',[_0x93095c]);}[_0x5c5243(0x286)](_0x390ce0){const _0x190d93=_0x5c5243;return this['_n'](_0x190d93(0x286),[_0x390ce0]);}[_0x5c5243(0x1cb)](_0x39afb1){const _0x560338=_0x5c5243;return this['_n'](_0x560338(0x1cb),[_0x39afb1]);}['drainJobType'](_0x5b2e2b){const _0x1af79c=_0x5c5243;return this['_n'](_0x1af79c(0x3ed),[_0x5b2e2b]);}async[_0x5c5243(0x33c)](_0x43de10,_0x39bcb2,_0x4d4018=![]){const _0x2ed262=_0x5c5243;return this['_w'](_0x2ed262(0x33c),[_0x43de10,_0x39bcb2,_0x4d4018]);}async[_0x5c5243(0x86e)](_0x56b215){const _0x79ff=_0x5c5243;return this['_w'](_0x79ff(0x86e),[_0x56b215]);}async[_0x5c5243(0x1e1)](_0x3f67f2,_0x16a2fd=0x5){const _0x40690d=_0x5c5243;return this['_n'](_0x40690d(0x1e1),[_0x3f67f2,_0x16a2fd],![]);}async[_0x5c5243(0x3ee)](_0x301b7f){const _0x324469=_0x5c5243;return this['_n'](_0x324469(0x6ac),[_0x301b7f]);}async[_0x5c5243(0x299)](_0x468918=0x7530){const _0x547b14=_0x5c5243;await Promise[_0x547b14(0x47a)]([...this[_0x547b14(0x786)]][_0x547b14(0x70b)](_0x2d4fe5=>_0x2d4fe5[_0x547b14(0x4a5)](_0x468918)));const _0x4f18b4=this['_n'](_0x547b14(0x299),[0x0]);return this[_0x547b14(0x786)]['clear'](),_0x4f18b4;}async[_0x5c5243(0x799)](){const _0xcaac7=_0x5c5243,_0x51988d=this['_n'](_0xcaac7(0x799),[]);return this['_workers'][_0xcaac7(0x7fd)](),_0x51988d;}[_0x5c5243(0x259)](_0x3c3b88,_0x2873e6,_0xe64769){const _0x25b41a=_0x5c5243;let _0x17862c,_0x36320d;if(Array[_0x25b41a(0x7c8)](_0x3c3b88)){if(typeof _0x2873e6===_0x25b41a(0x8a6))throw new _0x297180('process(entries,\x20options):\x20with\x20an\x20entries\x20array\x20the\x20handler\x20lives\x20in\x20each\x20entry\x20({\x20type,\x20handler,\x20…\x20});\x20the\x20second\x20argument\x20is\x20the\x20pool\x20options\x20object.','BAD_PARAM');_0x36320d=_0x2873e6??{};if(_0x36320d[_0x25b41a(0x87e)]!=null&&typeof _0x36320d[_0x25b41a(0x87e)]!==_0x25b41a(0x8a6))throw new _0x297180(_0x25b41a(0x6aa),_0x25b41a(0x672));if(_0x3c3b88[_0x25b41a(0x29a)]===0x0)throw new _0x297180('process(entries)\x20requires\x20at\x20least\x20one\x20entry',_0x25b41a(0x672));_0x17862c=_0x3c3b88['map'](_0x4c779a=>{const _0x472db8=_0x25b41a;if(!_0x4c779a||typeof _0x4c779a[_0x472db8(0x225)]!==_0x472db8(0x78e)||!_0x4c779a['type'])throw new _0x297180(_0x472db8(0x28d),_0x472db8(0x672));if(typeof _0x4c779a[_0x472db8(0x1f0)]!==_0x472db8(0x8a6))throw new _0x297180(_0x472db8(0x3f9)+_0x4c779a[_0x472db8(0x225)]+_0x472db8(0x71b),_0x472db8(0x672));return{..._0x4c779a};});}else{_0x36320d=_0xe64769??{};if(typeof _0x2873e6!=='function')throw new _0x297180(_0x25b41a(0x3f9)+_0x3c3b88+'\x22\x20requires\x20a\x20`handler`\x20function',_0x25b41a(0x672));_0x17862c=[{'type':_0x3c3b88,'handler':_0x2873e6,..._0xe64769??{}}];}const _0x502a16=this[_0x25b41a(0x44b)];for(const _0x325033 of _0x17862c){const _0x31fe56=_0x325033['handler'];_0x325033[_0x25b41a(0x1f0)]=function(..._0x47af7e){const _0x590e4d=_0x25b41a;return _0x502a16[_0x590e4d(0x894)]()['then'](()=>_0x31fe56['apply'](this,_0x47af7e));};}const _0x12518c=this['_n'](_0x25b41a(0x259),[_0x17862c,_0x36320d]),_0x2e1484=this,_0x5611d3={'id':_0x12518c['id'],'type':_0x12518c[_0x25b41a(0x225)],get 'running'(){const _0xa31f74=_0x25b41a;return _0x2e1484['_n']('workerState',[_0x12518c['id']],![])[_0xa31f74(0x2dd)];},'isRunning'(){const _0x2f5fd5=_0x25b41a;return _0x2e1484['_n'](_0x2f5fd5(0x1a1),[_0x12518c['id']],![])[_0x2f5fd5(0x2dd)];},async 'stop'(_0x2309d6=0x7530){const _0x394b8b=_0x25b41a;_0x2e1484['_n'](_0x394b8b(0x693),[_0x12518c['id']]);const _0x39fb7a=Date['now']()+_0x2309d6;while(_0x2e1484['_n'](_0x394b8b(0x1a1),[_0x12518c['id']],![])[_0x394b8b(0x600)]>0x0&&Date[_0x394b8b(0x200)]()<_0x39fb7a)await new Promise(_0x1da568=>setTimeout(_0x1da568,0x2));_0x2e1484['_n'](_0x394b8b(0x88c),[_0x12518c['id']]),_0x3eeedc[_0x394b8b(0x751)](),_0x2e1484[_0x394b8b(0x786)]['delete'](_0x5611d3);},async 'kill'(){const _0x335c2a=_0x25b41a;_0x2e1484['_n']('killWorker',[_0x12518c['id']]),_0x2e1484['_workers'][_0x335c2a(0x36f)](_0x5611d3);}};return this['_workers'][_0x25b41a(0x6a0)](_0x5611d3),_0x5611d3;}[_0x5c5243(0x7dc)](_0x40e93e){const _0x1d214c=_0x5c5243;throw new _0x297180('queue.worker(\x27'+_0x40e93e+_0x1d214c(0x5c8)+_0x40e93e+_0x1d214c(0x824),_0x1d214c(0x4c2));}[_0x5c5243(0x43b)](_0x34085a){return this['worker'](_0x34085a);}}return queue={'OKDBQueue':_0x21f162},queue;}var timemachine,hasRequiredTimemachine;function _0x4c75(){const _0x561083=['orchestrator','buildStep','system:ready','getIndex','shouldApplyChange','~processes','job_type.payload_schema.definition\x20must\x20be\x20object','_startAdmission','dupSort','loadedPath','killAll','number','getStats','startClaimed','okdb-node:\x20a\x20background\x20async\x20handler\x20rejected:\x20','job_type.defaults.priority\x20must\x20be\x20int\x20or\x20null','Database\x20not\x20started','_stops','parseBearer','head','unique','info','select','fetchRemoteDelta','processes','export','durableRebuild','STOPPED','log\x20entry\x20must\x20be\x20a\x20string\x20or\x20object','plugins','storage\x20adapter\x20has\x20no\x20method\x20','stateNames','spec','license:added','references','repairBlobRefs','WriteBatch','preparer\x20must\x20be\x20a\x20function','registerReducer','__notImplementedNative','txn\x20op\x20must\x20be\x20an\x20object\x20or\x20tuple','undefined','\x22\x20tokens\x20too\x20large','transaction','patch','_commitSessionMutation','level','TXN_END','_scheduleFlush','markJobComplete','_env','importFromFile','some','failed','listPath','range','viewOp','isArray','getEmbedderSchema','job\x20type\x20must\x20be\x20object','find','drain','Engine\x20driver\x20for\x20\x22','tryClaimTokens','$lt','Invalid\x20primary\x20key\x20type:\x20','handle','INVALID_ARGUMENT','resumed','envsWithFiles','_lookupByName','ALL_EVENTS','cursorKey','ENV_NOT_FOUND','_typesDb','durableDocs','_reconcileDesired','worker','clearStuck','randomUUID','compare','forEach','processorHold','asyncIterator','Buffer','incoming','_adminRelay','getAuthOptions','gen','\x20│\x20','db.processors.','ttlMs','BAD_ALGORITHM_FACTORY','job.status_message\x20must\x20be\x20string|null','restrict','_macro','bootSyncedViewsInline','get','offset','turns','storageStats','emitClearDone','resolve','TXN_INVALID_OP','\x20(required\x20by\x20','_store','failed_ttl','getPeerState','embedBatch','setCurrentDb','clear','ms\x20mean=','okdb.noFast','writerStatus','let\x20position;\x20let\x20readString\x20=\x20','ONLINE','default','setLogger','listRefViolations','kind','_onPoke','storeEnvName','claimGated','envSize','_keyListener','catalog','session','Referenced\x20type\x20\x27','lastClock','fts:registered','job.claim_id\x20must\x20be\x20string|null','listRecords','inflight','env:opened','inspect','\x20does\x20not\x20exist','set_null','_typeKeys','Plugin\x20must\x20have\x20a\x20name','boundary\x20(a\x20pinned\x20read\x20txn\x20blocks\x20LMDB\x20free-page\x20reuse).\x20Do\x20all\x20consistent\x20reads\x20','features','removeListener','job.idempotency_key\x20must\x20be\x20string|null','_ensurePeerState','duplicate\x20bucket:\x20','describeIndex','system:type_drop','onUndo','refItemsDbs','\x27,\x20fn)\x20for\x20an\x20in-process\x20consumer,\x20or\x20run\x20a\x20consumer\x20on\x20another\x20node/host\x20you\x20launch\x20—\x20all\x20claim\x20the\x20same\x20durable\x20jobs\x20exactly\x20once\x20(CAS).\x20See\x20docs/upgrade-2.0.md.','onDelete','OKDBIndexHasConsumersError','apply','Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results','progressed','createEmbedder','embeddings:indexer:ready','okdb-','_drainOne','off','_keyFns','relay:error','license:activated','OKDBForeignKeyError','ctrl','ms\x20max=','_settleWaiters','.\x20Valid:\x20','near','library\x20(okdb\x20node-model\x202.0).\x20For\x20multi-process\x20HTTP\x20serving\x20use\x20the\x20okdb\x20','internal','assertQueryOptions','durability','enqueue\x20txn\x20belongs\x20to\x20a\x20different\x20environment','removes','bus:drain','_settleWrite','envNames','doc_status:','ctxSignal','3.1.1','iterable','_blobStatusDb','byIndex','log\x20entry\x20fields\x20too\x20large\x20(>2KB\x20serialized)','drainDeadlineMs','online','pipelineFamily','job_type.id\x20must\x20be\x20non-empty\x20string','BAD_HOST','NOT_IMPLEMENTED_NATIVE','_pokeHandler','inactive','pin','_lazyPinned','resetIndexFinish','sha256','txn:end','storeEnvPath','quarantined','description','~queue_payloads','~log_entry','groupsDb','_durableEmbedderInfo','ringSize','_uid','markSnapshotComplete','_ensureDbs','note','\x27\x20is\x20already\x20registered','_closeEnvLocally','setStorageResolver','buckets','INDEXER_DOC_QUEUED','toLowerCase','job.cron\x20must\x20be\x20string|null','disable',':clockToChange','createSession','family','import','queue:rescheduled','removeJobTypeSchema','INDEX_HAS_CONSUMERS','~system',':\x20unknown\x20option\x20\x27','grouped','durableClock','embedder\x20request\x20still\x20pending','callRows:\x20unexpected\x20row\x20stride\x20','getChanges','ALREADY_EXISTS','formerOrigins','ctxHeartbeat','_statusEnv',':index','trim','listViolations','admission','claim\x20requires\x20non-empty\x20type','compareKeys','_isLoopbackIp','itemsPlan','searchWithScores','onDone','resetCursor','job.max_tries\x20must\x20be\x20int\x20>=\x201,\x20null\x20(unlimited)\x20or\x20Infinity','Blob\x20missing\x20for\x20file:\x20','freeze','engineUninstall','null','changeToClockDb','stopWorkerAbort','$payload','getTTL','index:','FOREIGN_KEY_VIOLATION','_detachConsole','_ttlParseComposite','queue:clear-progress','_afterDurable','_isReader','bucket\x20must\x20be\x20object','FTS_FLUSH_TIMEOUT','backupRoot','job.backoff_multiplier\x20must\x20be\x20number\x20>=\x201','_log','_refIndexDb','_indexBuild','sessionsForKey','log\x20entry\x20message\x20required','total','typesDb','12368124AeBlSw','buildOwnRow','type:','subscriptions-store:\x20addInterest\x20on\x20unknown\x20session\x20','_closedHandle','function','capacity','job\x20must\x20be\x20object','EMBEDDER','newListener','storage\x20adapter\x20is\x20gone','state','hasDriver','advanceHlcOnRecv','pushEphemeral','startsWith','balanced','job.tags\x20must\x20be\x20array','concat','_wrap','Server','existing','dropAll','listTypes','encryption:key-changed','busEmit','listening','compact','listModels','byteOffset','use','_ensureTokensType','createEnvironment','~ttl:key','server','_systemEnv','job_type.defaults\x20must\x20be\x20object|null','~file:blob_status','_envSyncStop','setPeersFn','code','calculateDelta','\x27,\x20cannot\x20map\x20to\x20\x27','sweepOrphanLogs','meanwhile\x20—\x20the\x20frozen\x20view\x20cannot\x20be\x20kept.\x20Materialize\x20synchronously\x20(e.g.\x20Array.from)\x20','workerState','streamByHash','raw','active','put','docs','updated','backoff_multiplier','ttlSetEntry','bucket.refill_amount\x20must\x20be\x20int\x20>=\x200','_durableEngineDoc','db.workers\x20was\x20removed.\x20okdb\x20does\x20not\x20manage\x20processes\x20—\x20run\x20more\x20okdb\x20processes\x20(processors:true)\x20via\x20your\x20orchestrator;\x20the\x201-of-N\x20processor\x20lease\x20load-balances\x20across\x20them.\x20See\x20docs/upgrade-2.0.md.','OKDBInvalidPrimaryKeyError','setProcessingConfig','return','logCap','effective','ctxEmit','scheduled','TYPE_ALREADY_REGISTERED','port','storeEnv','hash','removeTxn','replaceMember','chunks','registerViewReducer','wake','view','reconcilePeerPull','pumpEnvSync','embedder\x20is\x20gone','_meta','repair','SEARCH','_callMacro','getInt32','storeGetHead','SYSTEM_CLOCK_CHANGE','locks','5688656tmigYA','_detachLogSink','resumeJobType','routes','_setPeerState','resolveField:\x20field\x20required','_info','job_type.defaults.ttl\x20must\x20be\x20int\x20>=\x200\x20or\x20null','evict','job.bucket_tokens\x20must\x20be\x20int\x20>=1','address','~log','sseClose','registerIndex','remote','SUB_ENV','_writer','_lookupAllByName','durableCursorFloor','max_tries','getByPrefix','_rebuild','fields','_undoHooks','samplePayloads','REVERSE_INDEX','job.retry_delay\x20must\x20be\x20int\x20>=\x200','__HOLD__','_runRecord','~fts:envs','changeEncryptionKey','INDEXER','unpack','_id','_OPTION_HINTS','NativeLock','durableMarkFail','hook','_assertRangeOptions','handler','_refCache','TXN_ERROR','forceResync','debug','OKDBTypeAlreadyRegisteredError','prefix','registerEmbedderFactory','_http','itemsDb','_closed','autoCompact','batch','RELAY_FULL','header','\x27\x20on\x20type\x20\x27','now','getFast','\x27\x20export\x20\x27','clockToChangeDb','_push','$gt','resetView','vector','finish','BAD_EMBEDDER_FACTORY','spki','_wb','_jsFactories','queue:removed','Missing\x20plugin:\x20','queue:log','mean','countByIndex','_markSeen','bucket\x20\x22','_startAutoCompactCheck','warn','exports','closeEnvLocally','digest','_timer','setDefaultTTL','$streamId','bucket_tokens','validateOidcAccessToken','subscriptions','Too\x20many\x20concurrent\x20connections','_release','getSecurityNotices','stream','exclusiveStart','registerHandler:\x20name\x20must\x20be\x20a\x20non-empty\x20string','type','$mod','getHistory','T_SESSION','setLogSink','getEngine','valuesForKey','item:update','processor:progress','__logsDb','setHostPlugins',']\x20already\x20maps\x20to\x20\x27','slice',':index:','replace','views','limits','recordRun','INVALID_STATE','$and','sweepExpired','timerArmed','primaryOkdb',';return\x20{','runRecord','isFinite','FTS_READY_TIMEOUT','processorsStatus','PLUGIN_NAME_CONFLICT','createdBy','functions','durableMarkDone','lockHeld','_logsDb','createWriteFacade','bootSyncedEngines','_cursors','vecPut','_nodePublicKey','_inlineClosureWarned','__peers','reason','listJobTypes','register','Algorithm\x20factory\x20must\x20return\x20an\x20object\x20with\x20','\x22\x20not\x20found\x20in\x20~envs','pinned\x20range\x20iterator\x20held\x20across\x20an\x20await/turn\x20boundary.\x20This\x20surface\x20cannot\x20resume\x20','onWindow','bucket.tokens\x20cannot\x20exceed\x20capacity','bucket\x20id\x20required','OKDBSchemaValidationError','Invalid\x20index\x20key\x20type\x20for\x20\x27','process',':\x20expected\x20','_localViewApi','_buffer','_ttlBackoffUntil','continueOnRecoverableError','job_type.defaults.buckets\x20must\x20be\x20array|null','TXN_ENV_MISMATCH','job.finished\x20must\x20be\x20number|null','nidFor','describeAllTypes','callStatic','job.bucket\x20must\x20be\x20string|null','_started','_listening','_onItem','_oauthConfig','txn-commit','vecRemove','stderr','dropType','getLoginConfig','hlc','maxBodyBytes','flushPoll','patchConfig','regInfo','_windowCbs','_deliverEvent','sseSetHeader','files','VERSION_MISMATCH','timer','_handles','env','_tx','bucketsDb','EMBED_PENDING','envName','Unknown\x20transaction\x20action:\x20','holder','tolerant','compression','Can\x20not\x20serialize\x20async\x20iterables\x20without\x20first\x20calling\x20resolving\x20asArray','preview','pauseJobType','setUint32','getSession','ITEM_CREATE','engineType','getRaw','commit','each\x20process()\x20entry\x20requires\x20a\x20non-empty\x20`type`','listRuns','async','clients','prevDb','ttl','_listPeers','_envWide','refreshTtlBatch','\x22)\x20before\x20open()','~proc:state','registerType','stopAll','length','registerTemplate','kickOwnedBy','toBufferKey','validate','resolvedFields','assertCreateAllowed','getIndexMeta','listRoutes','__absent','Embedder\x20factory\x20must\x20be\x20a\x20function','hasStopFn','isEnabled','http','inNativeCall','getTemplate','runStart','pokeHandler','_nextExpiry','embed','resolveField:\x20type\x20required','isLoopbackIp','enabled','links','inline','algorithm\x20has\x20no\x20method\x20','isWanted','ensure:\x20view\x20entry\x20missing\x20name\x20or\x20definition','maxExtra','_stream','update','writeBlob','catch','REMOVE','index:registered','__ttlByExpiry','~queue_logs','object','reconcilePeer','clone','_readBuf','_nm','openEnv','durableEngineDoc','unregisterExtractor','\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer','summary','_setKey','resolveModelDims','CREATED','getResolvedOptions','ensure','SCHEMA_COLLECTION_INVALID','ENGINE_INVALID_TYPE','_patch','retryJob','job.priority\x20must\x20be\x20int','_assertOpen','apiCall','readKey','createSearch','mapSize','encodeInto','$options','limitOf','OKDBIndexAlreadyRegisteredError','getIndexStatus','running','\x27\x20at\x20','compactLock','isBuffer','HTTP_ERROR','_bootLog','_pending','job.buckets\x20must\x20be\x20array|null','174JWXnZC','started','dirname','getRefViolation','$pending','getMeta','durableRetryFailed','failures','invalid\x20job.status:\x20','envs','_assertFiles','toISOString','ms\x20p99=','size','before\x20any\x20await,\x20chunk\x20with\x20{limit,\x20start,\x20exclusiveStart},\x20or\x20drop\x20snapshot:true.','errors','error','constructor','localViewStats','claim_expires','immediate','error_stack','reidentify','inputSchema','true','\x20references\x20','bus:type_drop','prefetch','snapshotScan','fts:drop','registerIndexDeferred','flushTimeoutError','importBlobs','priority','buffer','targetKey','fts:','_isExpired','flushMaxWait','appendJobLog','_stopFor','getEntry','applyOps','http.listen:\x20host\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20a\x20non-empty\x20array\x20of\x20non-empty\x20strings','authOpen','_ensureVectorStore','retry_delay','detachConsole','then','_getFast','_pendingOps','2826MVswxa','__lock','readField','inBatch','files.registerExtractor:\x20extractor\x20must\x20be\x20a\x20function','~lock','files.upload:\x20stream','_staticCall','indexContent','resetUnknownOptionsWarned','backup','_rawTxnBuf','getJobType','signal','_remove','expiresAt','$type','timestamp','MINIMUM_KEY','creating','_blobPath','.\x20The\x20active\x20license\x20does\x20not\x20enable\x20\x22','listBlobStatus','Expected\x20catch\x20callback\x20to\x20be\x20a\x20function','includeViolations','TXN_CLOSED','stopping','dataView','durableWorkerStats','fieldPath','Engine\x20driver\x20type\x20must\x20be\x20a\x20non-empty\x20string','TXN_ROLLBACK','clock','kick','dropped','filterSessionsForType','setJobTypeSchema','HTTP\x20','send','__blobStatusDb','_wsettle','waiting','clearTtl','_jsSchemas','pinned\x20range\x20iterator\x20parked\x20across\x20an\x20await/turn\x20boundary\x20and\x20the\x20env\x20was\x20written\x20','ensureTypeEnv','enforced','host','_noChangelog','captureStackTrace','listen','getJob','_autoCompact','licenses','ttlState','registerHandler','_defaultEnv','deleted','created','isTypeEmpty','getSchema','done','ready','_connections','listLinks','ms/','servers','draining','embedder','_resolveKeys','Engine\x20template\x20must\x20be\x20a\x20plain\x20object','debounceTimer','markJobFail','_plugins','streamRead','bigint','backoffUntil','selfKey','\x20of\x20env\x20\x22','announceEnqueued','storeGetHeadCount','createIndexer','type:drop','sparse','engine\x20api\x20has\x20no\x20method\x20\x27','gcOrphanedBlobs','_sub','delete','reverse','issueToken','turnWaiters','push','clearFailed','searchDocs','patchDeclaration','open','_indexBuilds','resetIndex','getIndexCount','_allEnvsWithFiles','migrate','_ensureTypeEnv','registerQuantum','\x20must\x20be\x20','_ts','cascade','vectorSpace','claim','Cannot\x20set\x20enforce\x20schema\x20on\x20','recommended','tag\x20too\x20long','durableTierLag','hybridQuery','subscriptions-store:\x20open()\x20not\x20called','setMaxBodyBytes','iterator','pumping','finished','fail','_okdbAdminAttached','pipelines','importFromStream','max_concurrency','_isOpen','mcp','_registerType','shift','isOrchestrator','ensureDesired','setFlushNotify','FTS_BUILD_CONTINUE','getUniqueViolation','_clearTTL','okdb._openEnvLazy:\x20env\x20\x22','12415688DUigtL','_isBootstrap','OKDBUniqueConstraintError','returnRecoverableErrors','_db','OKDBNotImplementedNativeError','ref','value','TXN_START','sift','job.error_stack\x20must\x20be\x20string|null','unpin','setKick','Map','MCP_ERROR','storeGetConfig','unresolveField','embeddings:doc:status_change','setInt32','isInteger','targetType','_listeners','mode','_subsV2','job\x20id\x20required','enableAll','txn\x20ops\x20must\x20be\x20an\x20array','includes','_drain','doesExist','auth','handleDurableClock','assign','readFieldMany','resetting','msg','\x0a\x09\x09let\x20','exportBlobs','symbol','retry','processor:\x20quantum.module\x20must\x20be\x20a\x20string','unique:violation_resolved','embeddings:indexer:doc:done','driver','processor:retry','SKIP','field:resolver_registered','resume','call','fromEntries','listIndexes','_getType','_isFar','key','enable','payload_schema','stopAutoCompactCheck','enableNullTermination','files.upload:\x20id','buckets\x20must\x20be\x20array\x20or\x20string','ITEM_PENDING','create','callPacked','registerPreparer','job_type.defaults.retry_delay\x20must\x20be\x20int\x20>=\x200\x20or\x20null','admin','isIndex','engines','handleResult','txn','_startClaimedSoon','_validateOidcAccessToken','has','_lockHandle','once','INDEXER_DOC_DONE','getUniqueViolations','index:reset','node:cluster','drainJobType','_reconcile','stopped','lmdb','_build','getCount','indexReady','RangeError','module','_low','standalone','hasIndex','process()\x20entry\x20\x22','_customReducers','refill_every','no_action','_envs','clearSync','interest','~files','setPosition(p)\x20{\x20position\x20=\x20p\x20},','HIGH_FREQ_EVENTS','_claimGated','node:http','getRecord','released\x20at\x20the\x20first\x20await/turn\x20boundary.\x20Consume\x20ranges\x20before\x20any\x20await,\x20or\x20','listVectorStores','timeMachine','drivers','processor:error','read','~processes:desired','ensure:\x20fts\x20entry\x20missing\x20name\x20or\x20fields','envPath','isBun','_getRaw','updateJob','schema:set','rollback','queue:enqueued','min','KNOWN_OPTIONS','removeSync','registerChunkStrategy','createAndStartEngine','job','listPeers','setTTL','proc','a\x20Buffer\x20or\x20readable\x20stream','_ttlTimerAt','endIndex','afterTurn','_openLocalPeerDb','schema:drop','status','DEFAULT_EVENTS','attachOKDB','stringify','_asArray','write\x20batch:\x20missing\x20result','sourceKey','_clockListener','Type\x20\x22','_pumper','_timerObjs','role','relay','Can\x20not\x20serialize\x20key\x20of\x20type\x20','_root','startAutoCompactCheck','\x22\x20on\x20\x22','build','toFixed','join','ctxProgress','job.buckets[].tokens\x20must\x20be\x20int\x20>=\x201','\x20dropped\x20(buffer\x20full)','spawn','writerWatchdog','return\x20fromCharCode(','\x20===\x204)\x0a\x09\x09\x09\x09','status_message','cron','sort','encryptionKey','destroy','\x20=\x20finishUtf8(','getMaxBodyBytes','forceAfterMs','_compactLock','_syncLock','start','$near','okdb','uninstall','dropFts','lock','HTTP_CLUSTER_REMOVED','updateBucket','pop','_ttlCompositeKey','body','charCodeAt','createQueryTester','loaded','syncLock','index:ready','$ref','quantum','\x27:\x20','createPublicKey','install','tierList','ftsQuery','list','_buckets','_hybridQuery','\x27\x20did\x20not\x20return\x20a\x20valid\x20instance','setReadBuffer','orchestratorStarted','STARTED','createEngine','isCoordinator','upsertLink','index','vec:','createPipeline','flushTicket','retryFailed','aborted','invalid\x20job_type.status:\x20','_run','peers','_onStop','OKDBIndexNotRegisteredError','OKDBForeignKeyDeleteError','_openAckDb','INACTIVE','isSync','Index\x20\x27','allSettled','_advanceHlcOnRecv','vector-search\x20engine\x20not\x20running:\x20\x22','_changefeed','importJSON','item:','_feed','resolveField:\x20options.batch\x20must\x20be\x20a\x20function','_clearChunked','keyFor','statusOpen','typeStats','docEntry','materialize\x20them\x20(Array.from)\x20while\x20the\x20view\x20is\x20live.','entries','pinned','dbs','when','unref','wait','_formerOrigins','\x20must\x20be\x20a\x20non-empty\x20string;\x20got\x20','ITEM_UPDATE','_keepAlive','resolvedOptions','queue','blobPath','FIELD_RESOLVER_PENDING','INDEXER_DOC_FAILED','~sub','isSnapshotComplete','stats','awaitIdle','opts','describeTypeDetailed','node:perf_hooks','Database\x20already\x20opened/closed','params','refs','setCursor','an\x20environment\x20name','schema','_enableChangelog','stop','tryAcquire','_rebuilding','_flushTimer','setWake','registerDriver','INVALID_PRIMARY_KEY','INDEX_NOT_REGISTERED','processorsParticipating','_doHooks','delta_limit','path','_onPending','UNKNOWN_RANGE_OPTION','_callRows','runPoll','non-empty\x20string','Unsupported\x20transaction\x20action:\x20','FOREIGN_KEY_DELETE_RESTRICTED','bootSyncedPipelines','SYSTEM_POKE','itemsGroups','nodeKeys','_ttlByExpiry','defaults','5AQvvoV','okdb-node:\x20unknown\x20bridge\x20op\x20','ctxLog','embed-worker','QUEUE_WORKER_REMOVED','\x27\x20conflicts\x20with\x20existing\x20OKDB\x20property','idempotency_key','search','unreg','allocUnsafeSlow','Error','equal','prototype','registerEnv','encoder','login','\x20document(s)\x20reference\x20it\x20with\x20onDelete:restrict','doc','BAD_PLUGIN','invalid\x20log\x20level:\x20','formerIds','endsWith','setModeApplied','_ackDb','defineProperty','~ref_violations','run','openDB','OKDBInvalidValueError','isActive','isReader','Unable\x20to\x20serialize\x20object\x20as\x20a\x20key:\x20','_put','queue:failed','notes','stack','ensurePeerState','free','completeJob','ctxUpdateStatus','flatMap','~fts:','sweepExpiredTTL','resolveField:\x20resolver\x20must\x20be\x20a\x20function','resumeAllAfterDrain','setSchema','_getOidcDiscovery','$all','message','13276XiIaTo',':emb:','okdb_session','logChange','license:removed','INVALID_VALUE','_settle','err','system:env_release','fetch','event','socket','_enqueueInTxn','_shouldApplyChange','runtimeState','HIGH_SENTINEL','registerExtractor','actionCount','_deliver',')\x0a\x09\x09}\x0a\x09\x09','for','\x27\x20already\x20registered','reducer','health','Schema\x20validation\x20failed\x20for\x20','_settled','fts:reset','durableMarkDelete','OKDBTypeNotRegisteredError','_kbuf','_emitProc','customReducerNames','_ack','geoConfig','events','REBUILD_IN_PROGRESS','toJSON','PUT','reject','reducers','processRest()','getRun','~engines','options','shutdownTimeout','mkdirSync','cause','uploadTxn','retryable','_facade','bucket.tokens\x20must\x20be\x20int\x20>=\x200','runDrop','job.buckets[].id\x20must\x20be\x20non-empty\x20string','config','_subsV2Obj','_resolveFilter','_pdb','_onFeedChange','drop','_sweepInProgress','bus','removeResolver','exportEnvsToStream','from','STOPPING','callAsync','removeEnvironment','diag','flushed','set','resolveField','License\x20limit\x20exceeded:\x20','quarantinedEnvs','outgoing','planUpdateJob','isSetupMode','emit','setTtl','starting','__fts:','INVALID_OPTIONS','_timerHandle','registerTarget','setPrototypeOf','Plugin\x20\x27','_quantum','_tokenSecret','definition','removeJob','resolveBackupDest','sseSend','SYSTEM_STOPPED','SCHEMA_VALIDATION_FAILED','algorithm\x20is\x20gone','readTransaction','_hlc','maxConnections','_registrations','_lock','fromCharCode','pump','registerQuantum:\x20name\x20must\x20be\x20a\x20non-empty\x20string','granId','origin','written','job_type.payload_schema\x20must\x20be\x20object|null','gc.','_fail','__adminRelay','limit','_makeIterator','bootSyncedViews','bucket.id\x20must\x20be\x20non-empty\x20string','busState','_handlePoke','describeIndexes','nativeBinaryPath','durableEmbedderInfo','_write','clearDefaultTTL','_dedupeKey','exportJSON','_txnIdAtSnapshot','resolution','OKDB','_admissionTimer','20MGrKON','5508279KSGfwj','must\x20be\x20an\x20object;\x20got\x20null','processor:paused','failJob','_licenseInterval','releaseClaim',':data','txnId','system:poke','ensureTokensType','-worker','getValues','txn:start','abs','setNative','registerModule','dropIndex','ensureType','exportToFile','feed:','stor','__stateDb','ExtendedIterable','exportName','getCursor','callBatch','READER_HELD_ACROSS_AWAIT','reencrypt:\x20env','context','stopHandle','getBinary','storeHasDiff','_viewState','compact/repair\x20already\x20in\x20progress\x20for\x20this\x20environment','_isWriter','OKDBAlreadyExistsError','(worst\x20','IPv6','handleError','transactionSync','[log-sink]\x20','_pendingLocal','_subscribed','getClock','getDefaultTTL','refill_amount','syncBlobs','dims','embeddings:pipeline:ready','_txnBuf','typeId','refreshThresholdMs','isOpenForIp','array','release','write','_call','_blobsDir','WORKER',':txnRange','ensure:\x20type\x20is\x20required','getUint32','payload','_listenAddr','__okdb','createWriteStream','embeddings:embed:settled','workers','rowKey','_sync','lookupAllByName','ensureFeed','__ttlByKey','.\x20Only\x20primitives,\x20null,\x20Buffers,\x20and\x20arrays\x20are\x20allowed.\x20Got:\x20','emitWarning','streamClose','readString\x20}','versions','MAXIMUM_KEY','_localViews','_emit','validateRouteInput','_ttlByKey','_writeBlob','_maxConnections','ITEM_REMOVE','bootRuntime','useReadTransaction','__esModule','OKDBSchemaCollectionError','\x27,\x20module)\x20(the\x20auto-adopted\x20shared-pool\x20form)\x20was\x20removed\x20in\x20okdb\x202.0:\x20okdb\x20no\x20longer\x20auto-runs\x20queue\x20handlers\x20(trusted\x20user\x20code\x20it\x20can\x27t\x20place).\x20Use\x20queue.process(\x27','fromBufferKey','remove','_range','ref:violation_resolved','_np','_openEnvLazy','_makeLazyVectorAdapter','WORKERS_REMOVED','TXN_INVALID_ACTION','properties','_warnUnknownOptions','name','extend','hasApi','getPosition()\x20{\x20return\x20position\x20},','nextTurn','removeInterest','./native-loader.js','sourceType','node:util','createWorker','_teardownNative','_path','tick','nextTick','Index\x20\x22','resetReadTxn','no\x20write\x20has\x20landed.\x20Writes/commit\x20are\x20unaffected.','resetIndexBegin','addEventListener','group','_retryPending','tries','end','flush','system:clock_change','_stateDb','query','_setTTL','setLastClock','split','okdb-node:\x20unknown\x20callback\x20id\x20','dropSchema','resolveField:\x20options.batchSize\x20must\x20be\x20a\x20positive\x20integer','sync:apply','ttlTimer','_debounceTimer','count','createReadStream','localViewNames','QUERY_OPERATOR_FORBIDDEN','_pressure','OKDBInvalidIndexKeyError','Feature\x20not\x20licensed:\x20','nativeCode','inFlight','pause','node','_ttlTimeout','staticCall','_seen','ERROR','setMode','listAlgorithms','listProviders','installed','startNewEnginesFromSync','detachFeed','compactStorage',':keyToChange','jsonrpcCode','listTemplates','getFloat64','attachConsole','transaction\x20commit\x20failed','\x20must\x20be\x20number','_dedupeMax','Algorithm\x20factory\x20must\x20be\x20a\x20function','useVersions','engine:','\x22\x20is\x20not\x20allowed\x20(it\x20evaluates\x20code);\x20use\x20declarative\x20operators\x20instead','chunk\x20strategy\x20must\x20be\x20a\x20function','Use\x20module:{path,export}\x20alone,\x20or\x20handler:\x27<name>\x27\x20for\x20a\x20built-in.','emitProc','ENGINE_DRIVER_MISSING_START','applyChange','getStateAt','feature','byteLength','processor:resumed','loginSelect','ies','resumeOpts','bucket','ceil','geoQuery','_readViewExpired','_clockToChangeDb','startIndex','keys','rebuild','LICENSE_LIMIT_EXCEEDED','attach','clearScan','tags','license:invalid','files\x20feature\x20not\x20available','typeSubDbs','Embedder\x20factory\x20for\x20\x22','attachFeed','lastTxnId','abort','vector-search','whenSettled','new','_baselines','$ne','authorization','isDeepStrictEqual','getSelfNode','reduce','\x20>\x204)\x20{\x0a\x09\x09\x09if\x20(','\x20which\x20does\x20not\x20exist','~emb:models','_scheduleTTLSweep','listBuckets','job_type.max_concurrency\x20must\x20be\x20int\x20>=\x201\x20or\x20null','enqueue','putSync','_ringSize','_handleInProcess','trunc','txnDone','isWriter','Feature\x20not\x20available\x20on\x20free\x20tier:\x20','getAll','paused','_writerWatchdogInterval','a\x2032-character\x20key\x20or\x20a\x20function\x20returning\x20one','describeType','\x20=\x20source[position++]\x0a\x09\x09\x09else\x0a\x09\x09\x09\x09return\x20fromCharCode(','dirty','_read','getLegacyCursor','label','cursor','sync','hasUniqueViolations','lastError','__syncOverride','iterate','tags\x20must\x20be\x20array\x20or\x20string','Cannot\x20register\x20plugins\x20after\x20start','stopView','system:stopped','_key','_subscribeEvent','.\x20Add\x20a\x20license\x20that\x20includes\x20\x22','_settleRead','txnUndone','TXN_INVALID_OPS','item:pending','enqueueClaim','job.id\x20must\x20be\x20string','addSSE','_nodePrivateKey','rows','action','data','BAD_PARAM','_waitNative','emb','setClaiming','indexer','getOidcDiscovery','reset','@harperdb/extended-iterable:skip','usedBy','job.','actions','exportToStream','createLoginState','__tokenSecret','~queue_jobs','utf8Write','fts','608847xSyLTj','\x20already\x20exists','_rbuf','patchSelf','$where',';\x20got\x20','_durableIndexerStats','max','__warned','version','processor','oauth','system:bus_state_change','close','_makePipelineApi','percentile','stopWorkerBegin','11exjPPC','req','puts','getRange','indexOf','replaceInterests',')\x20+\x20readString(source)}','importBuf','hasChangelog','INDEX_PROGRESS','OKDBError','modeApplied','add','mapError','processorsStop','_logEnv','encryption\x20key\x20function','removeJobType','_callPacked','job_type.payload_schema.enforce\x20must\x20be\x20boolean','isWorker','processor:ready','process\x20options.admission\x20must\x20be\x20a\x20function','_running','reconcile','system','log','isOAuthEmailAllowed','REF_VIOLATION_RESOLVED','lookupByTokenHash','_detachLog','snapshot','DOC_STATUS_CHANGE','_peerDb','viewDb','_tids','onDo','scopedName','bootRuntimeDeclarations','getRunningEngine','pressure','isWellFormed','queue:retry','processor:\x20module.path\x20is\x20required','_defaultEnvObj','getDefinition','filter','getViolation','signalWant','api','$lte','durableRetryDoc','authenticateRequest','getMany','a\x20non-empty\x20string','pendingResponses','_update','_closeReadTransaction','dropping','listFtsEnvs','record','taken','consumeLoginState','queue-worker','_status',',\x20source)\x0a\x09\x09}\x20else\x20{\x0a\x09\x09\x09if\x20(','Engine\x20template\x20build()\x20is\x20required:\x20','autoCompactTimerArmed','Transaction\x20already\x20closed','flushDebounce','field\x20resolver\x20request\x20still\x20pending','_blobStream','asArray','next','items','_native','maxMs','\x20=\x20source[position++]\x0a\x09\x09if\x20(','describeChunk','engineStart','lastIndexOf','IPv4','3913zixHjB','floor','job_type.defaults.',':useReadTransaction','native','pageSize','_ensureEnv','resolveField:\x20a\x20resolver\x20or\x20options.batch\x20is\x20required','tokens','cleanup','addBucket','T_INTEREST','OKDBNotFoundError','change','turn','encryptionKeys','getGcHorizon','setEncryptionKey','load','(source)\x20=>\x20{','hasOwnProperty','findOwner','setPeerState','registerAlgorithmFactory','File\x20not\x20found:\x20',':\x20key\x20[','job.tag\x20must\x20be\x20string|null','_tickCallback','a\x20string','sessionId','utf8','hasType','_sinks','_envIndexDb','_ensure','crypto','TypeError','map','assertStartAllowed','getStatus','logCap\x20must\x20be\x20null\x20or\x20integer\x20in\x20[','last','String\x20does\x20not\x20fit\x20in\x20target\x20buffer','args','CLI\x20(`okdb\x20listen`),\x20or\x20use\x20Node\x27s\x20built-in\x20`cluster`\x20module\x20and\x20call\x20','DONE','_busFacade','_license','writeKey','embeddings','_locks','meta','continueIteration','\x22\x20requires\x20a\x20`handler`\x20function','_draining','_flushDebounce','_viewCache','index:progress','throw','cancelJob','_admissionStarted','embedderNew','noteListenAddr','authenticateToken','removeBucket','vectorStoreStats','validateBlobIntegrity','der','boolean','listTTL','status_code','$size','\x20documents\x20fail\x20validation','fetchPeer','connectionCount','ttlStats','_durableIndexerDocs','getBlobStatus','restart','tools','hasBody','engine','bind','remoteAddress','removeLink','getBucket','__ttlCancelledGen','bucket.refill_every\x20must\x20be\x20int\x20>=\x200','application/octet-stream','isRunning','job.tries\x20must\x20be\x20non-negative\x20int','getNodeRecord','reencrypt','pipeline','processors','addJobType','parse','system:env-sync','_attached','__cmd','Version\x20mismatch\x20for\x20','ENCRYPTION_KEY_REQUIRED','reg','clocks','INDEX_ALREADY_REGISTERED','_create','recomputeFields','checkSignals','headers','$defs','uninstallEngine','getKeys','getOpenWarning','addRaw','dataEnv','recordPeerAck','Query\x20operator\x20\x22','detach','disableAll','/?$','changes','registerModel','namespace','upload','ms\x20busy=','job.buckets\x20entries\x20must\x20be\x20objects','requires','hasEnv','reconcileDesired','Type\x20\x27','.\x20Primary\x20keys\x20must\x20be\x20string\x20or\x20number.\x20Got:\x20','lookupByName','TYPE_NOT_REGISTERED','_syncExpiresAtField','_lookupByTokenHash','cookies','pid','_logChange','clearTTL','handlerName','values','pending','OKDBVersionMismatchError','markJobHeartbeat','engineStop','embeddings:indexer:doc:failed','processor:\x20cannot\x20combine\x20a\x20closure\x20handler\x20with\x20module:{path,export}.\x20','regObject','Engine\x20driver\x20already\x20registered:\x20\x22','HTTP\x20server\x20already\x20running','listIndexKeys','instance','unregisterTarget','privateKey','refreshTtl','normalizeOAuthAuthResult','addInterest','_ttlState','ENGINE_INVALID_TEMPLATE','position','_workers','runGc','_dupArg','_changeToClockDb','details','existsSync','byLabel','getPeerAcks','string'];_0x4c75=function(){return _0x561083;};return _0x4c75();}function requireTimemachine(){const _0x103c85=_0x7f204b;if(hasRequiredTimemachine)return timemachine;hasRequiredTimemachine=0x1;const {fromArray:_0xa28e24}=requireIterable();class _0x47b38f{constructor(_0x51031d){const _0x28d72b=_0x20a5;this[_0x28d72b(0x27b)]=_0x51031d,this['okdb']=_0x51031d[_0x28d72b(0x44b)];const _0x2bc311=(_0x3bdae0,_0x5a7a0a)=>this['_n'](_0x3bdae0,_0x5a7a0a,![]);this['_store']={'getDiffs':(_0x31fec2,_0xea96d,_0x5e2193)=>_0x2bc311('storeGetDiffs',[_0x31fec2,_0xea96d,_0x5e2193||{}]),'hasDiff':(_0x3410f0,_0xff315e,_0x2e24ae)=>_0x2bc311(_0x28d72b(0x58d),[_0x3410f0,_0xff315e,_0x2e24ae]),'getHead':(_0xbf2ac7,_0x2ef7d9)=>_0x2bc311(_0x28d72b(0x1c6),[_0xbf2ac7,_0x2ef7d9])??null,'getHeadCount':_0x59466b=>_0x2bc311(_0x28d72b(0x368),[_0x59466b]),'getTotalHeadCount':()=>_0x2bc311('storeGetTotalHeadCount',[]),'getDiffsInRange':(_0x2f62b1,_0x2f20bd,_0x112da0)=>_0x2bc311('storeGetDiffsInRange',[_0x2f62b1??null,_0x2f20bd,_0x112da0]),'getConfig':()=>_0x2bc311(_0x28d72b(0x3ad),[])??null,'getCursor':()=>this['_n'](_0x28d72b(0x658),[],![])??null,get 'db'(){try{return _0x2bc311('storeGetTotalHeadCount',[]),{};}catch{return null;}}};}get[_0x103c85(0x550)](){const _0x88476a=_0x103c85,_0x235c87=(this[_0x88476a(0x27b)]['processor']?.[_0x88476a(0x460)]?.()||[])['filter'](_0x465dd0=>String(_0x465dd0[_0x88476a(0x7d7)]||'')[_0x88476a(0x8b0)]('time-machine:'))[_0x88476a(0x29a)];return{'size':_0x235c87};}['_n'](_0x534262,_0x1f2aa4,_0x507dec=!![]){const _0x2c9664=_0x103c85;return this[_0x2c9664(0x44b)][_0x2c9664(0x5a6)]('tm',this[_0x2c9664(0x27b)][_0x2c9664(0x5d4)],_0x534262,_0x1f2aa4,_0x507dec);}async[_0x103c85(0x3d4)](_0xd89cf1){const _0x4d1679=_0x103c85;return this['_n'](_0x4d1679(0x3d4),[_0xd89cf1??null]);}async[_0x103c85(0x868)](_0x191d51){const _0x35972e=_0x103c85;return this['_n'](_0x35972e(0x868),[_0x191d51??null]);}async[_0x103c85(0x3b7)](){const _0x31c43e=_0x103c85;return this['_n'](_0x31c43e(0x3b7),[]);}async[_0x103c85(0x75c)](){const _0x580e9d=_0x103c85;return this['_n'](_0x580e9d(0x75c),[]);}async[_0x103c85(0x529)](_0x2fa751){const _0xf4180b=_0x103c85;return this['_n'](_0xf4180b(0x529),[_0x2fa751??null]);}async[_0x103c85(0x8b7)](){const _0x9ecb14=_0x103c85;return this['_n'](_0x9ecb14(0x8b7),[]);}[_0x103c85(0x2a6)](_0x47c90f){return this['_n']('isEnabled',[_0x47c90f??null],![]);}['list'](){const _0x258aee=_0x103c85;return this['_n'](_0x258aee(0x460),[],![]);}['status'](_0x140c75){return this['_n']('status',[_0x140c75??null],![]);}[_0x103c85(0x586)](_0x4ed70a){const _0x7d8732=_0x103c85;if(!_0x4ed70a)return this['_n'](_0x7d8732(0x658),[],![]);return this['_n'](_0x7d8732(0x586),[_0x4ed70a],![]);}[_0x103c85(0x658)](){return this['_n']('getLegacyCursor',[],![]);}[_0x103c85(0x61f)](_0x25b77c,_0x10b052,_0x2b0fd7){const _0x272a84=_0x103c85;return this['_n'](_0x272a84(0x61f),[_0x25b77c,_0x10b052,_0x2b0fd7],![]);}[_0x103c85(0x227)](_0xb63b92,_0x337e31,_0xe6e086){const _0x2c9a93=_0x103c85;return this['_n'](_0x2c9a93(0x227),[_0xb63b92,_0x337e31,_0xe6e086||{}],![]);}[_0x103c85(0x876)](_0x3bcf14,_0x3bd073,_0x3ae15c){const _0x6fbfd6=_0x103c85;return this['_n'](_0x6fbfd6(0x876),[_0x3bcf14??null,_0x3bd073,_0x3ae15c],![])[Symbol[_0x6fbfd6(0x38b)]]();}async[_0x103c85(0x5eb)](_0x1ff75d){const _0x250be2=_0x103c85;return this['_n'](_0x250be2(0x5eb),[_0x1ff75d??null]);}}return timemachine={'OKDBTimeMachine':_0x47b38f},timemachine;}var files,hasRequiredFiles;function requireFiles(){const _0x5403a4=_0x7f204b;if(hasRequiredFiles)return files;hasRequiredFiles=0x1;const _0x35c41e=require$$0,{Readable:_0x479cca}=require$$1,{OKDBError:_0x506759,optionsArg:_0x477408,invalidArgument:_0x43927d}=requireErrors(),{RawDb:_0x27d852}=requireRawdb();async function _0x4fab53(_0x452f9d){const _0x2b0cb2=_0x20a5;if(Buffer[_0x2b0cb2(0x2e0)](_0x452f9d))return _0x452f9d;if(_0x452f9d instanceof Uint8Array)return Buffer[_0x2b0cb2(0x52e)](_0x452f9d);if(typeof _0x452f9d===_0x2b0cb2(0x78e))return Buffer[_0x2b0cb2(0x52e)](_0x452f9d);const _0x293e76=[];for await(const _0x36a0b0 of _0x452f9d)_0x293e76[_0x2b0cb2(0x373)](Buffer[_0x2b0cb2(0x2e0)](_0x36a0b0)?_0x36a0b0:Buffer[_0x2b0cb2(0x52e)](_0x36a0b0));return Buffer[_0x2b0cb2(0x8b3)](_0x293e76);}class _0x1c303a{constructor(_0x3fa9b5){const _0x33108e=_0x20a5;this[_0x33108e(0x27b)]=_0x3fa9b5,this[_0x33108e(0x44b)]=_0x3fa9b5[_0x33108e(0x44b)];}['_n'](_0x285d6c,_0x108a98,_0x2a5faa=!![]){const _0x477145=_0x20a5;return this['okdb']['_call'](_0x477145(0x277),this[_0x477145(0x27b)][_0x477145(0x5d4)],_0x285d6c,_0x108a98,_0x2a5faa);}['start'](){return!![];}[_0x5403a4(0x4a5)](){}async['_ensure'](){this['_n']('ensure',[]);}async[_0x5403a4(0x5c1)](_0x1549a9,_0x534ff6){const _0x26b0d2=_0x5403a4;return this[_0x26b0d2(0x44b)]['_settleWrite'](this['_n'](_0x26b0d2(0x2b9),[_0x1549a9,await _0x4fab53(_0x534ff6)]));}get[_0x5403a4(0x845)](){const _0x5b7f2b=_0x5403a4;return this['__blobStatusDb']||(this[_0x5b7f2b(0x33f)]=new _0x27d852(this[_0x5b7f2b(0x27b)],_0x5b7f2b(0x199)));}async['_blobStatusTxn'](_0x57126e){const _0x2392b8=_0x5403a4;return this[_0x2392b8(0x845)][_0x2392b8(0x27c)](_0x57126e);}async[_0x5403a4(0x761)](_0x59636a){const _0x470d9d=_0x5403a4,{id:_0x5b9615,stream:_0x555908,mime:mime=_0x470d9d(0x73e),path:_0x258ba1='',txn:txn=null}=_0x477408(_0x59636a);if(!_0x5b9615)throw _0x43927d(_0x470d9d(0x3d8),_0x470d9d(0x6ca),_0x5b9615);if(!_0x555908)throw _0x43927d(_0x470d9d(0x31e),_0x470d9d(0x41e),_0x555908);const _0x39325d=await _0x4fab53(_0x555908);if(txn){const _0x16c106=this['_n'](_0x470d9d(0x51e),[_0x5b9615,_0x39325d,{'mime':mime,'path':_0x258ba1}]);return txn[_0x470d9d(0x1a5)]('~files',_0x5b9615,_0x16c106[_0x470d9d(0x6d0)]),txn['onDo'](()=>this['_n'](_0x470d9d(0x64d),[_0x16c106[_0x470d9d(0x1ee)]])),txn[_0x470d9d(0x822)](()=>this['_n'](_0x470d9d(0x668),[_0x16c106['hook']])),_0x16c106[_0x470d9d(0x6d0)];}return this[_0x470d9d(0x44b)][_0x470d9d(0x83f)](this['_n'](_0x470d9d(0x761),[_0x5b9615,_0x39325d,{'mime':mime,'path':_0x258ba1}]));}[_0x5403a4(0x7f0)](_0x3e7134){const _0x356859=_0x5403a4;return this['_n'](_0x356859(0x7f0),[_0x3e7134],![])??null;}[_0x5403a4(0x1a2)](_0x4085a2){const _0x13e03e=_0x5403a4,_0x5be819=this['_blobPath'](_0x4085a2);if(!_0x35c41e[_0x13e03e(0x78b)](_0x5be819))throw Object['assign'](new Error('Blob\x20not\x20found:\x20'+_0x4085a2),{'status':0x194});return this[_0x13e03e(0x6db)](_0x4085a2);}['_blobStream'](_0x40fe67){const _0x403ff5=0x100*0x400,_0x439d2e=this;let _0x51f9a7=0x0;return new _0x479cca({'highWaterMark':_0x403ff5,'read'(){const _0x2a7612=_0x20a5;let _0x4e3021;try{const _0xb452a0=_0x439d2e['_n']('readHashRange',[_0x40fe67,_0x51f9a7,_0x403ff5],![]);_0x4e3021=Buffer[_0x2a7612(0x2e0)](_0xb452a0)?_0xb452a0:Buffer['from'](_0xb452a0);}catch(_0x22c1cb){this[_0x2a7612(0x443)](_0x22c1cb);return;}_0x51f9a7+=_0x4e3021['length'];if(_0x4e3021[_0x2a7612(0x29a)])this[_0x2a7612(0x373)](_0x4e3021);if(_0x4e3021[_0x2a7612(0x29a)]<_0x403ff5)this[_0x2a7612(0x373)](null);}});}async[_0x5403a4(0x40b)](_0x526b93){const _0x571cc8=_0x5403a4;return this[_0x571cc8(0x44b)]['_settleRead'](this['_n'](_0x571cc8(0x40b),[_0x526b93],![]));}async[_0x5403a4(0x222)](_0x52f455){const _0xa35c42=_0x5403a4,_0x2f1b67=this['get'](_0x52f455);if(!_0x2f1b67)throw Object[_0xa35c42(0x3be)](new Error(_0xa35c42(0x6fe)+_0x52f455),{'status':0x194});const _0xfcaac7=this[_0xa35c42(0x32c)](_0x2f1b67[_0xa35c42(0x1b7)]);if(!_0x35c41e[_0xa35c42(0x78b)](_0xfcaac7))throw Object[_0xa35c42(0x3be)](new Error(_0xa35c42(0x887)+_0x52f455),{'status':0x194});return{'stream':this[_0xa35c42(0x6db)](_0x2f1b67['hash']),'record':_0x2f1b67};}async[_0x5403a4(0x5ca)](_0x5014b0,_0x54eeef){const _0x24624a=_0x5403a4,{txn:txn=null}=_0x477408(_0x54eeef);if(txn){const _0x292a3b=this['_n'](_0x24624a(0x1b8),[_0x5014b0]);txn[_0x24624a(0x5ca)](_0x24624a(0x400),_0x5014b0),txn[_0x24624a(0x6b8)](()=>this['_n'](_0x24624a(0x64d),[_0x292a3b[_0x24624a(0x1ee)]])),txn[_0x24624a(0x822)](()=>this['_n'](_0x24624a(0x668),[_0x292a3b[_0x24624a(0x1ee)]]));return;}return this[_0x24624a(0x44b)]['_settleWrite'](this['_n'](_0x24624a(0x5ca),[_0x5014b0]));}async[_0x5403a4(0x7c5)](_0x9ee5dc,_0xb80c5a={}){const _0x5f278d=_0x5403a4;return this['_n'](_0x5f278d(0x7c5),[_0x9ee5dc,_0xb80c5a],![]);}[_0x5403a4(0x733)](_0x5a8bf6){const _0x569915=_0x5403a4;return this['_n'](_0x569915(0x733),[_0x5a8bf6],![]);}[_0x5403a4(0x32e)](){const _0x101e4f=_0x5403a4;return this['_n'](_0x101e4f(0x32e),[],![]);}[_0x5403a4(0x36d)](_0x55d36a){const {minAgeMs:_0x5f1d32}=_0x477408(_0x55d36a);return this['_n']('gcOrphanedBlobs',[_0x5f1d32??null]);}[_0x5403a4(0x4ff)](_0x4ce60f,_0x2bcfa4){const _0x20869d=_0x5403a4;if(typeof _0x2bcfa4!==_0x20869d(0x8a6))throw new _0x506759(_0x20869d(0x31c),_0x20869d(0x672));const _0x33bffb=this['_n'](_0x20869d(0x4ff),[_0x4ce60f,_0x2bcfa4]);return()=>this['_n'](_0x20869d(0x2c6),[_0x33bffb]);}async[_0x5403a4(0x320)](_0x423eff){const _0x508fd9=_0x5403a4;return _0x423eff=_0x477408(_0x423eff),this['_n'](_0x508fd9(0x320),[_0x423eff]);}async[_0x5403a4(0x59c)](_0x3cb513){const {peerIds:_0x4c3290}=_0x477408(_0x3cb513);return this['_n']('syncBlobs',[_0x4c3290??null]);}[_0x5403a4(0x32c)](_0x4044f7){const _0x242fbb=_0x5403a4;if(typeof _0x4044f7!==_0x242fbb(0x78e))return require$$4[_0x242fbb(0x437)](this[_0x242fbb(0x5a7)],_0x4044f7['slice'](0x0,0x2),_0x4044f7[_0x242fbb(0x231)](0x2));return this['_n'](_0x242fbb(0x494),[_0x4044f7],![]);}get[_0x5403a4(0x5a7)](){return this['_n']('blobsDir',[],![]);}}return files={'OKDBFiles':_0x1c303a},files;}var engines,hasRequiredEngines;function requireEngines(){const _0x3bdb8d=_0x7f204b;if(hasRequiredEngines)return engines;hasRequiredEngines=0x1;const {OKDBError:_0x52ac93}=requireErrors(),_0x1b6a01=requireBridge(),_0x1c17e1=new Set([_0x3bdb8d(0x35c),_0x3bdb8d(0x676),_0x3bdb8d(0x639),_0x3bdb8d(0x4c1)]),_0x211ee1=new Set([_0x3bdb8d(0x5f8),_0x3bdb8d(0x7a4),'dims']),_0x49e6d1=[_0x3bdb8d(0x29e),_0x3bdb8d(0x272),_0x3bdb8d(0x2a0),_0x3bdb8d(0x70c),_0x3bdb8d(0x45d),_0x3bdb8d(0x4a5),_0x3bdb8d(0x44c)],_0x3dfb23={'embedder':new Set([_0x3bdb8d(0x59d),'fingerprint'])},_0x30624a=new Set(['materializer',_0x3bdb8d(0x68d),_0x3bdb8d(0x6d3)]);class _0x4a520e{constructor(_0x389d8a,_0xb48866,_0x2338e8,_0x1706f2){const _0x35e836=_0x3bdb8d;this[_0x35e836(0x520)]=_0x389d8a,this[_0x35e836(0x3d3)]=_0xb48866,this[_0x35e836(0x225)]=_0x2338e8,this['name']=_0x1706f2,this['engineType']=_0x2338e8;}['_info'](){const _0x22d725=_0x3bdb8d;return this[_0x22d725(0x520)]['_n']('info',[this[_0x22d725(0x225)],this[_0x22d725(0x5d4)]],![]);}get[_0x3bdb8d(0x4cf)](){const _0x5c73cc=_0x3bdb8d;return this[_0x5c73cc(0x1cf)]()[_0x5c73cc(0x4cf)];}get[_0x3bdb8d(0x7f8)](){const _0x34d0bf=_0x3bdb8d,_0x2739ff=this[_0x34d0bf(0x1cf)]()[_0x34d0bf(0x1b6)];return _0x2739ff?this['_facade'][_0x34d0bf(0x44b)][_0x34d0bf(0x3fd)][_0x34d0bf(0x7f0)](_0x2739ff):undefined;}get[_0x3bdb8d(0x486)](){const _0x2bad95=_0x3bdb8d;return this[_0x2bad95(0x1cf)]()[_0x2bad95(0x486)];}get['enabled'](){const _0x231241=_0x3bdb8d;return this['_info']()[_0x231241(0x2b0)];}get['isRunning'](){const _0xf83714=_0x3bdb8d;return this['_info']()[_0xf83714(0x73f)];}get[_0x3bdb8d(0x424)](){const _0x37bd88=_0x3bdb8d;return this[_0x37bd88(0x1cf)]()['status'];}get[_0x3bdb8d(0x24e)](){const _0x2374e9=_0x3bdb8d;return this['_info']()[_0x2374e9(0x24e)];}get[_0x3bdb8d(0x65d)](){const _0xa728f=_0x3bdb8d,_0x359c26=this[_0xa728f(0x1cf)]()[_0xa728f(0x65d)];return _0x359c26?Object['assign'](new Error(_0x359c26[_0xa728f(0x4ee)]),{'code':_0x359c26[_0xa728f(0x19c)]}):null;}get[_0x3bdb8d(0x4fd)](){const _0x474075=_0x3bdb8d;return this[_0x474075(0x1cf)]()['runtimeState'];}get[_0x3bdb8d(0x3c9)](){const _0x41c69b=_0x3bdb8d;return this[_0x41c69b(0x520)][_0x41c69b(0x409)]['get'](this[_0x41c69b(0x225)])??null;}get[_0x3bdb8d(0x6c5)](){const _0x1935aa=_0x3bdb8d;if(!this[_0x1935aa(0x1cf)]()[_0x1935aa(0x5d6)])return null;const _0x14eedc=this;return new Proxy({},{'get'(_0x12685d,_0x2ca86e){const _0x5d9c9b=_0x1935aa;if(typeof _0x2ca86e==='symbol'||_0x2ca86e==='then')return undefined;if(_0x3dfb23[_0x14eedc[_0x5d9c9b(0x225)]]&&_0x3dfb23[_0x14eedc[_0x5d9c9b(0x225)]][_0x5d9c9b(0x3e6)](_0x2ca86e))return _0x14eedc[_0x5d9c9b(0x520)]['_n']('apiCall',[_0x14eedc['type'],_0x14eedc['name'],_0x2ca86e,[]],![])[_0x5d9c9b(0x3a5)];if(_0x14eedc[_0x5d9c9b(0x225)]===_0x5d9c9b(0x676)&&_0x2ca86e==='flush')return async(_0x39c644={})=>{const _0x57022f=_0x5d9c9b,_0x532935=(_0x285ea0,..._0x127035)=>_0x14eedc['_facade']['_n'](_0x57022f(0x2d4),[_0x14eedc['type'],_0x14eedc[_0x57022f(0x5d4)],_0x285ea0,_0x127035],!![])[_0x57022f(0x3a5)],_0x595dd4=_0x532935(_0x57022f(0x30b),_0x39c644??{}),_0x50ad7a=Date[_0x57022f(0x200)]();for(;;){const _0x1b0abf=await _0x14eedc[_0x57022f(0x520)]['okdb'][_0x57022f(0x7ee)](()=>_0x532935(_0x57022f(0x271)));if(_0x1b0abf[_0x57022f(0x65a)]>=_0x1b0abf[_0x57022f(0x7a2)])return;Date[_0x57022f(0x200)]()-_0x50ad7a>=_0x595dd4&&_0x532935(_0x57022f(0x304),_0x39c644??{},_0x1b0abf),await new Promise(_0x48e15d=>setTimeout(_0x48e15d,0x3));}};return(..._0x979e25)=>{const _0x42c48d=_0x5d9c9b,_0x29abaa=()=>_0x14eedc['_facade']['_n'](_0x42c48d(0x2d4),[_0x14eedc[_0x42c48d(0x225)],_0x14eedc[_0x42c48d(0x5d4)],_0x2ca86e,_0x979e25],!![]),_0x111d10=_0x31a76b=>{const _0xf81fd4=_0x42c48d;if(_0x31a76b&&_0x31a76b[_0xf81fd4(0x2a3)])throw new TypeError(_0xf81fd4(0x36c)+_0x2ca86e+'\x27');return _0x31a76b['value'];};if(_0x1c17e1[_0x42c48d(0x3e6)](_0x14eedc['type'])&&!_0x211ee1[_0x42c48d(0x3e6)](_0x2ca86e)){const _0x304f80=_0x14eedc[_0x42c48d(0x520)][_0x42c48d(0x44b)];return _0x304f80[_0x42c48d(0x5e8)](()=>_0x304f80[_0x42c48d(0x7ee)](_0x29abaa))[_0x42c48d(0x315)](_0x111d10);}if(_0x30624a['has'](_0x14eedc[_0x42c48d(0x225)]))try{return Promise[_0x42c48d(0x7f5)](_0x111d10(_0x29abaa()));}catch(_0x4a59e1){return Promise[_0x42c48d(0x515)](_0x4a59e1);}return _0x111d10(_0x29abaa());};}});}async[_0x3bdb8d(0x6f8)](_0x27e347={}){const _0x236010=_0x3bdb8d;return await this[_0x236010(0x520)][_0x236010(0x2c3)](_0x236010(0x6f8),[this[_0x236010(0x225)],this[_0x236010(0x5d4)],_0x27e347]),this;}async[_0x3bdb8d(0x449)](){const _0x44a76c=_0x3bdb8d;await this[_0x44a76c(0x520)][_0x44a76c(0x2c3)](_0x44a76c(0x6e3),[this[_0x44a76c(0x225)],this[_0x44a76c(0x5d4)]]);}async[_0x3bdb8d(0x4a5)](_0x5f6cad={}){const _0x3a21f8=_0x3bdb8d;await this[_0x3a21f8(0x520)][_0x3a21f8(0x2c3)](_0x3a21f8(0x776),[this['type'],this[_0x3a21f8(0x5d4)],_0x5f6cad]);}async['patchDeclaration'](_0x2039fb={}){const _0x786fbb=_0x3bdb8d;return await this[_0x786fbb(0x520)][_0x786fbb(0x2c3)](_0x786fbb(0x376),[this[_0x786fbb(0x225)],this[_0x786fbb(0x5d4)],_0x2039fb]),this;}async['uninstall'](){const _0x528459=_0x3bdb8d;await this['_facade']['_nm'](_0x528459(0x889),[this[_0x528459(0x225)],this['name']]);}}class _0x41aa32{constructor(_0x2fbbe4,_0x8ad8db=null,_0x3d2691=null){const _0x296a40=_0x3bdb8d;this['okdb']=_0x2fbbe4,this[_0x296a40(0x27f)]=_0x8ad8db,this[_0x296a40(0x397)]=_0x8ad8db===null,this['_root']=_0x3d2691||this,this[_0x296a40(0x409)]=this[_0x296a40(0x432)]===this?_0x3840a3(this):this[_0x296a40(0x432)][_0x296a40(0x409)],this[_0x296a40(0x27a)]=new Map();}['_n'](_0x5e0978,_0x45dcb0,_0x8805b0=!![]){const _0x425002=_0x3bdb8d;return this[_0x425002(0x44b)][_0x425002(0x5a6)]('engines',this['envName'],_0x5e0978,_0x45dcb0,_0x8805b0);}[_0x3bdb8d(0x2c3)](_0x4f9181,_0x2ab3c7){const _0x3b1083=_0x3bdb8d;return this[_0x3b1083(0x44b)][_0x3b1083(0x1c4)](_0x3b1083(0x3e1),this[_0x3b1083(0x27f)],_0x4f9181,_0x2ab3c7,!![]);}get[_0x3bdb8d(0x27b)](){const _0x4dd44f=_0x3bdb8d;return this['envName']?this[_0x4dd44f(0x44b)][_0x4dd44f(0x27b)](this['envName']):null;}['_wrap'](_0x218e02){const _0x2fa1f7=_0x3bdb8d;if(!_0x218e02)return null;let _0x5490f4=this[_0x2fa1f7(0x27a)]['get'](_0x218e02['key']);return!_0x5490f4&&(_0x5490f4=new _0x4a520e(this,_0x218e02[_0x2fa1f7(0x3d3)],_0x218e02[_0x2fa1f7(0x225)],_0x218e02[_0x2fa1f7(0x5d4)]),this[_0x2fa1f7(0x27a)][_0x2fa1f7(0x534)](_0x218e02[_0x2fa1f7(0x3d3)],_0x5490f4)),_0x5490f4;}['registerDriver'](_0x5a1c3e,_0x37a5c9){const _0x2f0b0e=_0x3bdb8d;if(!_0x5a1c3e||typeof _0x5a1c3e!==_0x2f0b0e(0x78e))throw new _0x52ac93(_0x2f0b0e(0x336),_0x2f0b0e(0x2cf),{'type':_0x5a1c3e});if(!_0x37a5c9||typeof _0x37a5c9!==_0x2f0b0e(0x2bf))throw new _0x52ac93(_0x2f0b0e(0x7cd)+_0x5a1c3e+'\x22\x20must\x20be\x20a\x20plain\x20object','ENGINE_INVALID_DRIVER',{'type':_0x5a1c3e});if(typeof _0x37a5c9['start']!==_0x2f0b0e(0x8a6))throw new _0x52ac93(_0x2f0b0e(0x7cd)+_0x5a1c3e+'\x22\x20must\x20have\x20a\x20start()\x20method',_0x2f0b0e(0x61d),{'type':_0x5a1c3e});const _0x1f623c=this[_0x2f0b0e(0x432)];if(_0x1f623c[_0x2f0b0e(0x409)]['has'](_0x5a1c3e))throw new _0x52ac93(_0x2f0b0e(0x77a)+_0x5a1c3e+'\x22','ENGINE_DRIVER_ALREADY_REGISTERED',{'type':_0x5a1c3e});const _0x397379=_0x1b6a01[_0x2f0b0e(0x779)](_0x37a5c9,this[_0x2f0b0e(0x44b)]),_0x4c8c8f=_0x49e6d1['filter'](_0x79ffc1=>typeof _0x37a5c9[_0x79ffc1]===_0x2f0b0e(0x8a6)),_0x2b0ec8=_0x37a5c9[_0x2f0b0e(0x1a6)]&&typeof _0x37a5c9[_0x2f0b0e(0x1a6)]===_0x2f0b0e(0x2bf)?_0x37a5c9[_0x2f0b0e(0x1a6)]:{};this['okdb'][_0x2f0b0e(0x5a6)](_0x2f0b0e(0x3e1),null,_0x2f0b0e(0x4aa),[_0x5a1c3e,{'$id':_0x397379,'has':_0x4c8c8f,'docs':_0x2b0ec8}]),_0x1f623c[_0x2f0b0e(0x409)]['_set'](_0x5a1c3e,_0x37a5c9);}get[_0x3bdb8d(0x266)](){const _0x1e4b36=_0x3bdb8d;return this['okdb'][_0x1e4b36(0x5a6)](_0x1e4b36(0x3e1),null,_0x1e4b36(0x465),[],![]);}get[_0x3bdb8d(0x78f)](){const _0x1f5462=this;return{get '_started'(){const _0x200d02=_0x20a5;return _0x1f5462[_0x200d02(0x266)];}};}[_0x3bdb8d(0x29b)](_0x1d48af){const _0x15ff08=_0x3bdb8d;if(!_0x1d48af||typeof _0x1d48af!=='object')throw new _0x52ac93(_0x15ff08(0x35e),_0x15ff08(0x784));if(!_0x1d48af['id']||typeof _0x1d48af['id']!=='string')throw new _0x52ac93('Engine\x20template\x20id\x20must\x20be\x20a\x20non-empty\x20string',_0x15ff08(0x784));if(![_0x15ff08(0x737),_0x15ff08(0x743)]['includes'](_0x1d48af[_0x15ff08(0x806)]))throw new _0x52ac93('Engine\x20template\x20kind\x20must\x20be\x20\x22engine\x22\x20or\x20\x22pipeline\x22:\x20'+_0x1d48af['id'],_0x15ff08(0x784));if(typeof _0x1d48af[_0x15ff08(0x435)]!==_0x15ff08(0x8a6))throw new _0x52ac93(_0x15ff08(0x6d6)+_0x1d48af['id'],_0x15ff08(0x784));const _0x5b1412=this['okdb'],_0x53b033=typeof _0x1d48af[_0x15ff08(0x2fc)]===_0x15ff08(0x8a6);return this['_n'](_0x15ff08(0x29b),[{'id':_0x1d48af['id'],'kind':_0x1d48af[_0x15ff08(0x806)],'family':_0x1d48af[_0x15ff08(0x86b)]??null,'engineType':_0x1d48af[_0x15ff08(0x28a)]??null,'pipelineFamily':_0x1d48af[_0x15ff08(0x84a)]??null,'recommended':_0x1d48af[_0x15ff08(0x385)]===!![],'summary':_0x1d48af[_0x15ff08(0x2c8)]??null,'description':_0x1d48af[_0x15ff08(0x857)]??null,'inputSchema':_0x53b033?null:_0x1d48af[_0x15ff08(0x2fc)]??null,'inputSchemaFn':_0x53b033?()=>_0x1d48af[_0x15ff08(0x2fc)](_0x5b1412):null,'defaults':_0x1d48af[_0x15ff08(0x4bd)]??null,'notes':Array['isArray'](_0x1d48af[_0x15ff08(0x4e0)])?_0x1d48af['notes']:[],'links':Array[_0x15ff08(0x7c8)](_0x1d48af[_0x15ff08(0x2b1)])?_0x1d48af[_0x15ff08(0x2b1)]:[],'build':(_0xdf60c8,_0x5f2433)=>_0x1d48af['build'](_0xdf60c8??{},{'okdb':_0x5b1412,'envName':_0x5f2433??null})}],![]);}[_0x3bdb8d(0x610)](_0xaed65f){const _0x3a798d=_0x3bdb8d;return this['_n'](_0x3a798d(0x610),[_0xaed65f??null],![]);}['getTemplate'](_0x3ebf8d){const _0x9fce13=_0x3bdb8d;return this['_n'](_0x9fce13(0x2a9),[_0x3ebf8d],![]);}['previewTemplate'](_0x44e5cd,_0xb2dd0b,_0x15424f){const _0x2c225c=_0x3bdb8d;return this['_n']('previewTemplate',[_0x44e5cd,_0xb2dd0b,_0x15424f??this[_0x2c225c(0x27f)]],![]);}[_0x3bdb8d(0x80c)](){const _0x57376c=_0x3bdb8d;return this['_n'](_0x57376c(0x80c),[],![]);}async[_0x3bdb8d(0x449)](){const _0x321ec6=_0x3bdb8d;return this[_0x321ec6(0x2c3)](_0x321ec6(0x449),[]);}async[_0x3bdb8d(0x4a5)](){const _0x2f6323=_0x3bdb8d;return this[_0x2f6323(0x2c3)](_0x2f6323(0x4a5),[]);}async[_0x3bdb8d(0x467)](_0x36c923,_0xcbdece,_0x4e7804={},_0x154074={},_0x129b12={}){const _0x55a340=_0x3bdb8d;return this[_0x55a340(0x8b4)](await this[_0x55a340(0x2c3)](_0x55a340(0x467),[_0x36c923,_0xcbdece,_0x4e7804,_0x154074,_0x129b12]));}async['createAndStartEngine'](_0x4e12d2,_0x14abc3,_0x55075a={},_0x5b3e9f={},_0x2a0ca9={}){const _0x5c2b57=_0x3bdb8d;return this[_0x5c2b57(0x8b4)](await this['_nm'](_0x5c2b57(0x419),[_0x4e12d2,_0x14abc3,_0x55075a,_0x5b3e9f,_0x2a0ca9]));}[_0x3bdb8d(0x22a)](_0x3edc54,_0x3fc8d7){const _0x45c204=_0x3bdb8d;return this[_0x45c204(0x8b4)](this['_n'](_0x45c204(0x22a),[_0x3edc54,_0x3fc8d7],![]));}['getRunningEngine'](_0x1318ae,_0x500645){const _0x26194e=_0x3bdb8d;return this[_0x26194e(0x8b4)](this['_n']('getRunningEngine',[_0x1318ae,_0x500645],![]));}['list'](_0x3e70fd){const _0x57a554=_0x3bdb8d;return this['_n'](_0x57a554(0x460),[_0x3e70fd??null],![])['map'](_0x17a913=>this[_0x57a554(0x8b4)](_0x17a913));}async['restart'](_0x245e1d,_0x409aab){const _0x3002ae=_0x3bdb8d;return this[_0x3002ae(0x8b4)](await this['_nm'](_0x3002ae(0x734),[_0x245e1d,_0x409aab]));}async[_0x3bdb8d(0x754)](_0x26d629,_0x51dd16){const _0x81ae5c=_0x3bdb8d;return this['_handles'][_0x81ae5c(0x36f)](_0x26d629+':'+_0x51dd16),this[_0x81ae5c(0x2c3)](_0x81ae5c(0x754),[_0x26d629,_0x51dd16]);}async['startNewEnginesFromSync'](_0x1ddc58){const _0x89f83b=_0x3bdb8d;return this[_0x89f83b(0x2c3)](_0x89f83b(0x60b),[_0x1ddc58]);}async[_0x3bdb8d(0x248)](){return this['_nm']('bootSyncedEngines',[]);}}function _0x3840a3(_0x1d9ebf){const _0x13bb9b=_0x3bdb8d,_0x465d7f=new Map();return{'has':_0x16bd51=>_0x465d7f[_0x13bb9b(0x3e6)](_0x16bd51)||_0x1d9ebf[_0x13bb9b(0x44b)][_0x13bb9b(0x5a6)](_0x13bb9b(0x3e1),null,_0x13bb9b(0x8ad),[_0x16bd51],![]),'get':_0x109fd0=>_0x465d7f[_0x13bb9b(0x7f0)](_0x109fd0),'set':()=>{const _0x3afdd5=_0x13bb9b;throw new _0x52ac93('use\x20engines.registerDriver()',_0x3afdd5(0x672));},'_set':(_0x4e5577,_0x5f52d6)=>_0x465d7f[_0x13bb9b(0x534)](_0x4e5577,_0x5f52d6),'keys':()=>_0x465d7f[_0x13bb9b(0x62c)](),'entries':()=>_0x465d7f[_0x13bb9b(0x488)](),'values':()=>_0x465d7f[_0x13bb9b(0x772)](),get 'size'(){const _0x5c2f4d=_0x13bb9b;return _0x465d7f[_0x5c2f4d(0x2f2)];},[Symbol[_0x13bb9b(0x38b)]]:()=>_0x465d7f[Symbol[_0x13bb9b(0x38b)]]()};}class _0x15db6c{constructor(_0x5f2f73,_0x274849=null){const _0x5c20c9=_0x3bdb8d;this[_0x5c20c9(0x44b)]=_0x5f2f73,this[_0x5c20c9(0x27f)]=_0x274849;}['_n'](_0x4e6035,_0x488de0,_0x377aa1=!![]){const _0x2fe2bd=_0x3bdb8d;return this[_0x2fe2bd(0x44b)][_0x2fe2bd(0x5a6)](_0x2fe2bd(0x390),this['envName'],_0x4e6035,_0x488de0,_0x377aa1);}[_0x3bdb8d(0x2c3)](_0x5062ff,_0x4fc0ab){const _0x349b64=_0x3bdb8d;return this['okdb']['_callMacro'](_0x349b64(0x390),this[_0x349b64(0x27f)],_0x5062ff,_0x4fc0ab,!![]);}get[_0x3bdb8d(0x468)](){return this['envName']===null;}async['ensure'](_0x2e9ab8){const _0x2a97c3=_0x3bdb8d;return this['_n'](_0x2a97c3(0x2cd),[_0x2e9ab8]);}async[_0x3bdb8d(0x7f0)](_0x538c8b,_0x1d5d96){const _0x51b857=_0x3bdb8d;return this['_n'](_0x51b857(0x7f0),[_0x538c8b,_0x1d5d96??null],![]);}async[_0x3bdb8d(0x405)](_0x41e996,_0x1a46f2){const _0x456e1f=_0x3bdb8d;return this['_n'](_0x456e1f(0x405),[_0x41e996,_0x1a46f2??null],![]);}async[_0x3bdb8d(0x460)](_0xe5841d){const _0x1d3747=_0x3bdb8d;return this['_n'](_0x1d3747(0x460),[_0xe5841d??null],![]);}async[_0x3bdb8d(0x812)](_0x123575={}){const _0xca7cf=_0x3bdb8d;return this['_n'](_0xca7cf(0x812),[_0x123575?.[_0xca7cf(0x27f)]??null],![]);}[_0x3bdb8d(0x29e)](_0xb9d26d,_0x31c68d){const _0x8eddc3=_0x3bdb8d;return this['_n'](_0x8eddc3(0x29e),[_0xb9d26d,_0x31c68d??null],![]);}async[_0x3bdb8d(0x3db)](_0x408240){const _0x54dc0d=_0x3bdb8d;return this[_0x54dc0d(0x2c3)](_0x54dc0d(0x3db),[_0x408240]);}async[_0x3bdb8d(0x2b8)](_0x535200,_0x158a65){const _0x149321=_0x3bdb8d;return this[_0x149321(0x2c3)](_0x149321(0x2b8),[_0x535200,_0x158a65]);}async[_0x3bdb8d(0x4a5)](_0x3d4a70){const _0x35c765=_0x3bdb8d;return this[_0x35c765(0x2c3)](_0x35c765(0x4a5),[_0x3d4a70]);}async['_settled'](_0x2bc2d0){const _0x2cf67e=_0x3bdb8d;if(!_0x2bc2d0||typeof _0x2bc2d0!==_0x2cf67e(0x2bf)||!_0x2bc2d0[_0x2cf67e(0x5d4)]||!_0x2bc2d0[_0x2cf67e(0x3e1)])return _0x2bc2d0;for(let _0x3e6eba=0x0;_0x3e6eba<0x3;_0x3e6eba++)await new Promise(_0x5aa780=>setImmediate(_0x5aa780));try{const _0x62f37c=this['envName']!==null?await this[_0x2cf67e(0x7f0)](_0x2bc2d0[_0x2cf67e(0x5d4)]):_0x2bc2d0[_0x2cf67e(0x27b)]?await this[_0x2cf67e(0x7f0)](_0x2bc2d0[_0x2cf67e(0x27b)],_0x2bc2d0[_0x2cf67e(0x5d4)]):null;return _0x62f37c||_0x2bc2d0;}catch{return _0x2bc2d0;}}async[_0x3bdb8d(0x449)](_0x49fb45){const _0x438c08=_0x3bdb8d;return this[_0x438c08(0x508)](await this[_0x438c08(0x2c3)](_0x438c08(0x449),[_0x49fb45]));}async[_0x3bdb8d(0x734)](_0x155413){const _0x5aee05=_0x3bdb8d;return this[_0x5aee05(0x508)](await this[_0x5aee05(0x2c3)](_0x5aee05(0x734),[_0x155413]));}async[_0x3bdb8d(0x62d)](_0x492223){const _0x4b5d48=_0x3bdb8d;return this[_0x4b5d48(0x2c3)]('rebuild',[_0x492223]);}async[_0x3bdb8d(0x1b9)](_0x3e279d,_0x481386,_0x598acd){const _0x2652f6=_0x3bdb8d;return this['_nm'](_0x2652f6(0x1b9),[_0x3e279d,_0x481386,_0x598acd]);}async[_0x3bdb8d(0x5ca)](_0xd890a6){const _0x459a84=_0x3bdb8d;return this[_0x459a84(0x2c3)](_0x459a84(0x5ca),[_0xd890a6]);}async['stopAll'](){const _0x1ce48f=_0x3bdb8d;return this['_nm'](_0x1ce48f(0x299),[]);}async[_0x3bdb8d(0x4b8)](){const _0x53d34f=_0x3bdb8d;return this[_0x53d34f(0x2c3)](_0x53d34f(0x4b8),[]);}[_0x3bdb8d(0x6fb)](_0x4e4392,_0x143fbb){const _0xbdcb98=_0x3bdb8d;return this['_n'](_0xbdcb98(0x6fb),[_0x4e4392,_0x143fbb],![]);}}return engines={'OKDBEngines':_0x41aa32,'OKDBPipelines':_0x15db6c,'OKDBEngineHandle':_0x4a520e},engines;}var functions,hasRequiredFunctions;function requireFunctions(){const _0x25b056=_0x7f204b;if(hasRequiredFunctions)return functions;hasRequiredFunctions=0x1;const {optionsArg:_0xfa0d8a}=requireErrors(),_0x57c029=Number(process.env.OKDB_FN_POLL_MS)||0x14;class _0x49ffe1{constructor(_0x167fcd,_0x107bfc=null){const _0x54e866=_0x20a5;this[_0x54e866(0x44b)]=_0x167fcd,this[_0x54e866(0x27f)]=_0x107bfc??_0x54e866(0x870);}get[_0x25b056(0x27b)](){const _0x28b5d3=_0x25b056;return this[_0x28b5d3(0x44b)][_0x28b5d3(0x3fd)][_0x28b5d3(0x7f0)](this['envName'])??null;}['_n'](_0x5d663d,_0x385228=[],_0x83c12f=!![]){const _0x475bbe=_0x25b056;try{return this['okdb'][_0x475bbe(0x5a6)](_0x475bbe(0x243),this[_0x475bbe(0x27f)],_0x5d663d,_0x385228,_0x83c12f);}catch(_0x3cd020){throw _0x5687df(_0x3cd020);}}async['_nm'](_0x587ddb,_0x1ac10a=[]){const _0x501cf0=_0x25b056;try{return await this[_0x501cf0(0x44b)]['_callMacro'](_0x501cf0(0x243),this[_0x501cf0(0x27f)],_0x587ddb,_0x1ac10a,!![]);}catch(_0x4fe2a8){throw _0x5687df(_0x4fe2a8);}}async[_0x25b056(0x460)](){const _0x18b21d=_0x25b056;return this['_n'](_0x18b21d(0x460),[],![]);}async[_0x25b056(0x7f0)](_0x2d0fb9){const _0x28d9ab=_0x25b056;return this['_n'](_0x28d9ab(0x7f0),[_0x2d0fb9],![]);}async[_0x25b056(0x3db)](_0x4c489e){const _0x4b0e00=_0x25b056;return this['_n'](_0x4b0e00(0x3db),[_0x4c489e]);}async[_0x25b056(0x2b8)](_0x1efb3d,_0x4eadbc={}){return this['_n']('update',[_0x1efb3d,_0x4eadbc]);}async[_0x25b056(0x5ca)](_0x446905){return this['_n']('remove',[_0x446905]);}async[_0x25b056(0x28e)](_0x382d6f){const _0x3323c1=_0x25b056,{functionName:functionName=null}=_0xfa0d8a(_0x382d6f);return this['_n'](_0x3323c1(0x28e),[{'functionName':functionName}],![]);}async[_0x25b056(0x518)](_0x2ce9c5){return this['_n']('getRun',[_0x2ce9c5],![]);}async[_0x25b056(0x236)](_0x31adc8){const _0x5e0cfa=_0x25b056;return _0x31adc8=_0xfa0d8a(_0x31adc8,_0x5e0cfa(0x4d8)),this['_n'](_0x5e0cfa(0x236),[_0x31adc8]);}async[_0x25b056(0x4d8)](_0x58c492,_0x138c0c=null,_0x5ed115={}){const _0x40d1a4=_0x25b056,_0x1982f6={..._0x5ed115},_0x269999=_0x1982f6[_0x40d1a4(0x325)];if(_0x269999)_0x1982f6[_0x40d1a4(0x46f)]=!!_0x269999['aborted'];delete _0x1982f6[_0x40d1a4(0x325)];const _0x4f70e8=await this['_nm'](_0x40d1a4(0x2aa),[_0x58c492,_0x138c0c,_0x1982f6]),_0x782f23=this[_0x40d1a4(0x44b)],_0x48e1cc=()=>_0x782f23['_pumper']['wake']();if(_0x269999&&typeof _0x269999[_0x40d1a4(0x5e6)]==='function')_0x269999[_0x40d1a4(0x5e6)](_0x40d1a4(0x638),_0x48e1cc,{'once':!![]});let _0x22a96b=![];try{for(;;){const _0x385337=_0x782f23[_0x40d1a4(0x42d)]['nextTurn'](_0x57c029);let _0x54c2c3;try{_0x54c2c3=await _0x782f23[_0x40d1a4(0x1c4)](_0x40d1a4(0x243),this[_0x40d1a4(0x27f)],_0x40d1a4(0x4b4),[_0x4f70e8,!!_0x269999?.[_0x40d1a4(0x46f)]],![],![]);}catch(_0x56e2e9){_0x22a96b=!![];throw _0x5687df(_0x56e2e9);}if(!_0x54c2c3||_0x54c2c3[_0x40d1a4(0x2e9)]!==!![])return _0x22a96b=!![],_0x782f23[_0x40d1a4(0x42d)]['wake'](),_0x54c2c3;if(_0x54c2c3[_0x40d1a4(0x829)])_0x782f23[_0x40d1a4(0x42d)][_0x40d1a4(0x1bc)]();await _0x385337;}}finally{if(_0x269999&&typeof _0x269999['removeEventListener']==='function')_0x269999['removeEventListener'](_0x40d1a4(0x638),_0x48e1cc);if(!_0x22a96b)try{_0x782f23[_0x40d1a4(0x5a6)]('functions',this[_0x40d1a4(0x27f)],_0x40d1a4(0x522),[_0x4f70e8],![]);}catch{}}}async[_0x25b056(0x285)](_0x5740fa={},_0x491052=null,_0x43ad90={}){const _0x556b69=_0x25b056;return this[_0x556b69(0x2c3)]('preview',[_0x5740fa,_0x491052,_0x43ad90]);}async['stop'](){}}function _0x5687df(_0x200263){const _0x4b3ae6=_0x25b056;if(_0x200263&&_0x200263['details']&&_0x200263['details'][_0x4b3ae6(0x23d)])_0x200263[_0x4b3ae6(0x1e5)]=_0x200263[_0x4b3ae6(0x78a)][_0x4b3ae6(0x23d)];return _0x200263;}return functions={'OKDBFunctions':_0x49ffe1},functions;}var processor={'exports':{}},lock,hasRequiredLock;function requireLock(){const _0x5369ef=_0x7f204b;if(hasRequiredLock)return lock;hasRequiredLock=0x1;const {optionsArg:_0x3648ca}=requireErrors();class _0x5e3985{constructor(_0x2d3bdf,_0x2216ad){this['_lock']=_0x2d3bdf,this['_id']=_0x2216ad;}['_n'](_0x45569f,_0x23323c=[]){const _0x14ffc3=_0x20a5;return this[_0x14ffc3(0x551)]['_n'](_0x45569f,[this[_0x14ffc3(0x1ea)],..._0x23323c]);}['isHeld'](){return this['_n']('isHeld');}get['acquiredAt'](){return this['_n']('acquiredAt');}[_0x5369ef(0x281)](){const _0x666c30=_0x5369ef;return this['_n'](_0x666c30(0x281));}['extend'](_0x417f3f){const _0x30d7df=_0x5369ef;return this['_n'](_0x30d7df(0x5d5),[_0x417f3f]);}async['release'](){const _0x48b726=_0x5369ef;return this['_n'](_0x48b726(0x5a4));}}class _0x58c2dd{constructor(_0x30c4b2,_0x312cf5,_0x5e6cdd,_0x1f018e){const _0xdbdd=_0x5369ef,{ttlMs:ttlMs=0x7530,heartbeatMs:heartbeatMs=null}=_0x3648ca(_0x1f018e);this[_0xdbdd(0x44b)]=_0x30c4b2,this[_0xdbdd(0x760)]=_0x5e6cdd,this['_id']=_0x30c4b2['_call'](_0xdbdd(0x44e),_0x312cf5,'open',[_0x5e6cdd,ttlMs,heartbeatMs],![]),this['_env']=_0x312cf5;}['_n'](_0xe90cb5,_0x103822=[]){const _0x202c52=_0x5369ef;return this[_0x202c52(0x44b)][_0x202c52(0x5a6)]('lock',this[_0x202c52(0x7c1)],_0xe90cb5,_0x103822,![]);}['_key'](_0x3786ad){const _0x2a27e6=_0x5369ef;return this['_n']('key',[this[_0x2a27e6(0x1ea)],_0x3786ad]);}async[_0x5369ef(0x4a6)](_0x5c7f30,_0x38cfbd={},_0x27c38e={}){const _0x355bbc=this['_n']('tryAcquire',[this['_id'],_0x5c7f30,_0x38cfbd,_0x27c38e]);return{'acquired':_0x355bbc['acquired'],'handle':_0x355bbc['handle']==null?null:new _0x5e3985(this,_0x355bbc['handle']),'current':_0x355bbc['current']};}['inspect'](_0x5aa917){const _0x2c9910=_0x5369ef;return this['_n'](_0x2c9910(0x815),[this['_id'],_0x5aa917]);}[_0x5369ef(0x460)](){const _0x2679d1=_0x5369ef;return this['_n'](_0x2679d1(0x460),[this['_id']]);}[_0x5369ef(0x6c4)](_0x4a3a3e){const _0x21c00f=_0x5369ef;return this['_n'](_0x21c00f(0x6c4),[this[_0x21c00f(0x1ea)],_0x4a3a3e]);}['isWanted'](_0x5ca20e,_0x356f4a=0x3e8){const _0x4b550f=_0x5369ef;return this['_n'](_0x4b550f(0x2b4),[this['_id'],_0x5ca20e,_0x356f4a]);}}return lock={'NativeLock':_0x58c2dd,'NativeLockHandle':_0x5e3985},lock;}var hasRequiredProcessor;function requireProcessor(){const _0x4c52f5=_0x7f204b;if(hasRequiredProcessor)return processor['exports'];hasRequiredProcessor=0x1;const _0x4175a4=requireBridge(),{RawDb:_0x444e85}=requireRawdb(),{NativeLock:_0x4323ca}=requireLock();function _0x46b1d0(_0x53e610){}class _0x40ccd3{constructor(_0x17458a){const _0x12d3e1=_0x20a5;this[_0x12d3e1(0x27b)]=_0x17458a,this[_0x12d3e1(0x44b)]=_0x17458a;try{this['_n'](_0x12d3e1(0x229),[(_0x4ff1dd,_0x101388)=>{const _0x5d3132=_0x12d3e1,_0xe423d=this[_0x5d3132(0x44b)]['log'],_0x110e02=_0xe423d?.[_0x4ff1dd]??_0xe423d?.[_0x5d3132(0x7a4)];if(typeof _0x110e02===_0x5d3132(0x8a6))_0x110e02['call'](_0xe423d,_0x101388);}],![]);}catch{}}['_n'](_0xaee811,_0x74d1eb,_0x42a33c=!![]){const _0x356624=_0x20a5;return this[_0x356624(0x27b)][_0x356624(0x44b)][_0x356624(0x5a6)]('proc',this[_0x356624(0x27b)][_0x356624(0x5d4)],_0xaee811,_0x74d1eb,_0x42a33c);}[_0x4c52f5(0x250)](_0x15c651,_0x52b0b4={}){const _0x14a60c=_0x4c52f5,_0x1138c7={..._0x52b0b4};if(typeof _0x1138c7[_0x14a60c(0x1f0)]==='function'&&_0x1138c7[_0x14a60c(0x3f5)]!=null)throw new Error(_0x14a60c(0x778)+_0x14a60c(0x61b));if(typeof _0x1138c7['handler']===_0x14a60c(0x78e)&&_0x1138c7[_0x14a60c(0x3f5)]!=null)throw new Error('processor:\x20specify\x20exactly\x20one\x20of\x20handler:\x27<name>\x27\x20or\x20module:{path,export},\x20not\x20both');if(_0x1138c7[_0x14a60c(0x3f5)]!=null){if(!_0x1138c7[_0x14a60c(0x3f5)][_0x14a60c(0x4b0)])throw new Error(_0x14a60c(0x6bf));const _0x2149d4=_0x1138c7[_0x14a60c(0x3f5)][_0x14a60c(0x7a8)]??_0x1138c7[_0x14a60c(0x3f5)][_0x14a60c(0x585)]??_0x14a60c(0x259),_0x27edfc=require[_0x14a60c(0x7f5)](_0x1138c7[_0x14a60c(0x3f5)][_0x14a60c(0x4b0)]),_0x55ca0a=require(_0x27edfc),_0x49901b=_0x55ca0a[_0x2149d4]??_0x55ca0a['default']??_0x55ca0a;if(typeof _0x49901b!=='function')throw new Error('processor:\x20module\x20\x27'+_0x1138c7[_0x14a60c(0x3f5)]['path']+_0x14a60c(0x202)+_0x2149d4+'\x27\x20is\x20not\x20a\x20function');this[_0x14a60c(0x27b)][_0x14a60c(0x44b)][_0x14a60c(0x31f)](_0x14a60c(0x41d),_0x14a60c(0x57d),[_0x27edfc,_0x2149d4,_0x49901b]),_0x1138c7[_0x14a60c(0x3f5)]={'path':_0x27edfc,'export':_0x2149d4};}if(_0x1138c7[_0x14a60c(0x45a)]!=null){if(typeof _0x1138c7[_0x14a60c(0x45a)][_0x14a60c(0x3f5)]!==_0x14a60c(0x78e))throw new Error(_0x14a60c(0x3c6));const _0x1a3f1e=require[_0x14a60c(0x7f5)](_0x1138c7[_0x14a60c(0x45a)][_0x14a60c(0x3f5)]),_0x223e01=require(_0x1a3f1e),_0x3f3331=_0x1138c7[_0x14a60c(0x45a)][_0x14a60c(0x585)],_0x46e9ba=_0x3f3331?_0x223e01[_0x3f3331]:_0x223e01[_0x14a60c(0x803)]??_0x223e01;if(typeof _0x46e9ba===_0x14a60c(0x8a6)){const _0x10c9e6=_0x3f3331?_0x1138c7['quantum'][_0x14a60c(0x3f5)]+'#'+_0x3f3331:_0x1138c7['quantum']['module'];this[_0x14a60c(0x27b)][_0x14a60c(0x44b)][_0x14a60c(0x31f)](_0x14a60c(0x41d),_0x14a60c(0x37e),[_0x10c9e6,_0x46e9ba]);}_0x1138c7['quantum']={..._0x1138c7['quantum']};}_0x1138c7[_0x14a60c(0x5ac)]!=null&&typeof _0x1138c7['payload']===_0x14a60c(0x2bf)&&(_0x1138c7[_0x14a60c(0x5ac)]={'$payload':_0x4175a4['storePayload'](_0x1138c7['payload'],this[_0x14a60c(0x27b)][_0x14a60c(0x44b)])});if(_0x1138c7[_0x14a60c(0x62d)]!=null&&typeof _0x1138c7[_0x14a60c(0x62d)]!==_0x14a60c(0x8a6))throw new Error('processor:\x20rebuild\x20must\x20be\x20a\x20function');const _0x389c4b=this['_n'](_0x14a60c(0x250),[_0x15c651??null,_0x1138c7]);return this['_stopFor'](_0x389c4b['id'],_0x389c4b[_0x14a60c(0x7d7)]);}[_0x4c52f5(0x30d)](_0x5df438,_0x3a1960){const _0x5f0427=_0x4c52f5,_0x59597f=this,_0x355aca=async()=>{const _0x25a628=_0x20a5;_0x59597f['_n'](_0x25a628(0x58b),[_0x5df438]);};return _0x355aca['id']=_0x5df438,_0x355aca[_0x5f0427(0x7d7)]=_0x3a1960,_0x355aca[_0x5f0427(0x873)]=()=>_0x3a1960?_0x59597f['_n'](_0x5f0427(0x3bd),[_0x5df438],![]):0x0,_0x355aca[_0x5f0427(0x424)]=()=>_0x59597f[_0x5f0427(0x7f0)](_0x5df438),_0x355aca['getStatus']=_0x355aca[_0x5f0427(0x424)],_0x355aca['pause']=()=>_0x59597f[_0x5f0427(0x601)](_0x5df438),_0x355aca[_0x5f0427(0x3cd)]=()=>_0x59597f[_0x5f0427(0x3cd)](_0x5df438),_0x355aca[_0x5f0427(0x339)]=()=>_0x59597f[_0x5f0427(0x339)](_0x5df438),_0x355aca[_0x5f0427(0x3c5)]=()=>_0x59597f[_0x5f0427(0x3c5)](_0x5df438),_0x355aca[_0x5f0427(0x49a)]=_0x1baf36=>_0x59597f['awaitIdle'](_0x5df438,_0x1baf36),_0x355aca;}get[_0x4c52f5(0x7a0)](){const _0x4ad653=_0x4c52f5;try{return this['_n'](_0x4ad653(0x460),[],![])[_0x4ad653(0x70b)](_0x391e2e=>({'id':_0x391e2e['id']}));}catch{return[];}}async['pauseAllAndDrain'](_0x1ffe8b){return new Set(this['_n']('pauseAllAndDrain',[]));}['resumeAllAfterDrain'](_0x34105c){const _0x2dd65a=_0x4c52f5;return this['_n'](_0x2dd65a(0x4ea),[[..._0x34105c??[]]]);}get[_0x4c52f5(0x294)](){const _0x185545=_0x4c52f5;return new Set(this['_n'](_0x185545(0x460),[],![])[_0x185545(0x6c2)](_0xbb3a1d=>_0xbb3a1d[_0x185545(0x225)]==null)[_0x185545(0x70b)](_0x162ee7=>_0x162ee7['id']));}['_ensureDbs'](){}get['_lock'](){const _0x4a9e75=_0x4c52f5;if(!this[_0x4a9e75(0x319)]){const _0x189314=new _0x4323ca(this['env']['okdb'],this[_0x4a9e75(0x27b)][_0x4a9e75(0x5d4)],_0x4a9e75(0x41d)),_0x5a15e4=this[_0x4a9e75(0x27b)];_0x189314[_0x4a9e75(0x3a2)]=()=>new _0x444e85(_0x5a15e4,_0x4a9e75(0x31d)),this[_0x4a9e75(0x319)]=_0x189314;}return this['__lock'];}[_0x4c52f5(0x55a)](_0x65cec9,_0x5c9a4f){const _0x18610d=_0x4c52f5;return this['_n'](_0x18610d(0x38e),[typeof _0x65cec9===_0x18610d(0x78e)?_0x65cec9:_0x65cec9['id'],_0x5c9a4f?.['message']??String(_0x5c9a4f??'')]);}get[_0x4c52f5(0x5ed)](){const _0x217c1f=_0x4c52f5;return this[_0x217c1f(0x583)]||(this[_0x217c1f(0x583)]=new _0x444e85(this['env'],_0x217c1f(0x297)));}get[_0x4c52f5(0x550)](){const _0x3e7bda=_0x4c52f5,_0x400683=this,_0x25123d=_0x481025=>{const _0x20362d=_0x20a5,_0x960e37=()=>_0x400683['_n'](_0x20362d(0x273),[_0x481025],![]);if(!_0x960e37())return undefined;const _0x318316=_0x2c46f3=>()=>_0x960e37()?.[_0x2c46f3],_0x192fda={'id':_0x481025},_0x9f14d0=(_0x186e78,_0x4ddbd7,_0x15b56f)=>Object[_0x20362d(0x4d6)](_0x192fda,_0x186e78,{'get':_0x4ddbd7,'set':_0x15b56f,'enumerable':!![],'configurable':!![]});return _0x9f14d0(_0x20362d(0x8ac),_0x318316(_0x20362d(0x8ac))),_0x9f14d0(_0x20362d(0x3b4),_0x318316(_0x20362d(0x3b4))),_0x9f14d0(_0x20362d(0x651),_0x318316(_0x20362d(0x651))),_0x9f14d0('lastClock',_0x318316(_0x20362d(0x80f)),_0x5eed22=>_0x400683['_n'](_0x20362d(0x5f0),[_0x481025,_0x5eed22])),_0x9f14d0(_0x20362d(0x7d7),_0x318316(_0x20362d(0x7d7))),_0x9f14d0(_0x20362d(0x403),_0x318316(_0x20362d(0x809)),_0x347e0a=>_0x400683['_n']('setClaimGated',[_0x481025,!!_0x347e0a])),_0x9f14d0('_handlerName',_0x318316(_0x20362d(0x771))),_0x9f14d0('flushQuantum',_0x318316('flushQuantum')),_0x9f14d0(_0x20362d(0x848),_0x318316(_0x20362d(0x848))),_0x9f14d0('_modeApplied',_0x318316(_0x20362d(0x69f)),_0x5f46f2=>_0x400683['_n'](_0x20362d(0x4d4),[_0x481025,_0x5f46f2])),_0x9f14d0(_0x20362d(0x719),()=>_0x400683[_0x20362d(0x7f0)](_0x481025)?.[_0x20362d(0x719)]),_0x9f14d0(_0x20362d(0x3e7),()=>_0x960e37()?.['lockHeld']?{'isHeld':()=>!!_0x960e37()?.[_0x20362d(0x245)]}:null),_0x9f14d0(_0x20362d(0x84e),()=>_0x960e37()?.[_0x20362d(0x2ab)]?()=>{}:null),_0x9f14d0('_flushIntervalTimer',()=>_0x960e37()?.['intervalTimer']?{}:null),_0x9f14d0(_0x20362d(0x5f7),()=>_0x960e37()?.[_0x20362d(0x35f)]?{}:null),_0x192fda;},_0x2ce03e=()=>_0x400683['_n']('list',[],![])['map'](_0x4319d1=>_0x4319d1['id']);return{'get':_0xb08b27=>_0x25123d(_0xb08b27),'has':_0xda99ae=>_0x2ce03e()['includes'](_0xda99ae),get 'size'(){return _0x2ce03e()['length'];},'keys':()=>_0x2ce03e()[Symbol[_0x3e7bda(0x38b)]](),'values':()=>_0x2ce03e()[_0x3e7bda(0x70b)](_0x25123d)[Symbol[_0x3e7bda(0x38b)]](),'entries':()=>_0x2ce03e()[_0x3e7bda(0x70b)](_0x1cd802=>[_0x1cd802,_0x25123d(_0x1cd802)])[Symbol[_0x3e7bda(0x38b)]](),[Symbol[_0x3e7bda(0x38b)]]:()=>_0x2ce03e()['map'](_0x68b945=>[_0x68b945,_0x25123d(_0x68b945)])[Symbol[_0x3e7bda(0x38b)]](),'forEach':_0x4d9cbe=>_0x2ce03e()[_0x3e7bda(0x7e0)](_0x3a885d=>_0x4d9cbe(_0x25123d(_0x3a885d),_0x3a885d))};}async[_0x4c52f5(0x299)](){const _0x156ab5=_0x4c52f5;return this['_n'](_0x156ab5(0x299),[]);}[_0x4c52f5(0x460)](){const _0x1cf6a7=_0x4c52f5,_0x3f17ac=this['_n'](_0x1cf6a7(0x460),[],![]);if(!this['env'][_0x1cf6a7(0x5d4)][_0x1cf6a7(0x8b0)]('~'))try{const _0x53460d=this[_0x1cf6a7(0x27b)][_0x1cf6a7(0x44b)][_0x1cf6a7(0x719)];for(const _0x365cc4 of _0x53460d[_0x1cf6a7(0x8b8)](this[_0x1cf6a7(0x27b)][_0x1cf6a7(0x5d4)])){for(const _0x475090 of _0x53460d['listIndexes'](_0x365cc4,this[_0x1cf6a7(0x27b)]['name'])){const _0x20a2a8=_0x1cf6a7(0x88f)+_0x365cc4+':'+_0x475090;_0x3f17ac[_0x1cf6a7(0x373)]({'id':_0x20a2a8,'type':_0x365cc4,'mode':'inline','state':_0x1cf6a7(0x849),'paused':![],'lag':0x0,'cursorKey':_0x20a2a8,'meta':{'name':_0x20a2a8}});}}}catch{}return _0x3f17ac;}[_0x4c52f5(0x45e)](){const _0x4e826a=_0x4c52f5;return this['_n'](_0x4e826a(0x45e),[],![]);}[_0x4c52f5(0x387)](){const _0x55cd92=_0x4c52f5;return this['_n'](_0x55cd92(0x387),[],![]);}[_0x4c52f5(0x1db)](){const _0x3f90c8=_0x4c52f5;return this['_n'](_0x3f90c8(0x1db),[],![]);}[_0x4c52f5(0x7f0)](_0x594423){const _0x4ef206=_0x4c52f5;return this['_n'](_0x4ef206(0x7f0),[_0x594423],![]);}[_0x4c52f5(0x6d4)](_0x5744f9){const _0x49eedb=_0x4c52f5;return this['get'](typeof _0x5744f9===_0x49eedb(0x78e)?_0x5744f9:_0x5744f9['id']);}[_0x4c52f5(0x586)](_0x376f1a){const _0x1f1359=_0x4c52f5;return this['_n'](_0x1f1359(0x586),[_0x376f1a],![]);}[_0x4c52f5(0x885)](_0x1055fd){const _0x5e413f=_0x4c52f5;return this['_n'](_0x5e413f(0x885),[_0x1055fd]);}[_0x4c52f5(0x85e)](_0x32416e){const _0x5b3c87=_0x4c52f5;return this['_n'](_0x5b3c87(0x85e),[_0x32416e]);}[_0x4c52f5(0x498)](_0xa0bd66){const _0x403431=_0x4c52f5;return this['_n'](_0x403431(0x498),[_0xa0bd66],![]);}['setCursor'](_0x30129c,_0x5952c0){const _0x3768f3=_0x4c52f5;return this['_n'](_0x3768f3(0x4a1),[_0x30129c,_0x5952c0]);}async['awaitIdle'](_0x4c4e6b,_0x1b3a1d){const _0x28f7ee=_0x4c52f5;return this['_n'](_0x28f7ee(0x49a),[_0x4c4e6b,_0x1b3a1d??0x7530]);}['pause'](_0x1eaf30){return this['_n']('pause',[_0x1eaf30]);}[_0x4c52f5(0x3cd)](_0x2a74a5){return this['_n']('resume',[_0x2a74a5]);}async[_0x4c52f5(0x675)](_0x26d390){const _0x489076=_0x4c52f5;return this['_n'](_0x489076(0x675),[_0x26d390]);}[_0x4c52f5(0x339)](_0x571fc9){return this['_n']('kick',[_0x571fc9]);}['retry'](_0x465fd1){const _0x1394ef=_0x4c52f5;return this['_n'](_0x1394ef(0x3c5),[_0x465fd1]);}[_0x4c52f5(0x734)](_0x58e1a6,_0x515139={}){const _0x5b74de=_0x4c52f5;return this['_n'](_0x5b74de(0x734),[_0x58e1a6,_0x515139]);}async[_0x4c52f5(0x607)](_0x341bf8,_0x252ed6,_0x138cc1){const _0x2ca3ea=_0x4c52f5,[_0x231711,_0x1de2b8]=this['_n'](_0x2ca3ea(0x607),[_0x341bf8,_0x252ed6,_0x138cc1]);return{'version':_0x231711,'flipClock':_0x1de2b8};}async['snapshotScan'](_0x47553f,_0x1d8670,_0x3ae3dd={}){const _0x47108b=_0x4c52f5;return this['_n'](_0x47108b(0x301),[_0x47553f,_0x1d8670,_0x3ae3dd]);}}_0x40ccd3[_0x4c52f5(0x34f)]=function _0x2b5437(_0x2ccb1c,_0x4b21dd){const _0x1e3a4d=_0x4c52f5;if(typeof _0x2ccb1c!==_0x1e3a4d(0x78e)||!_0x2ccb1c)throw new Error(_0x1e3a4d(0x224));if(typeof _0x4b21dd!==_0x1e3a4d(0x8a6))throw new Error('registerHandler:\x20fn\x20must\x20be\x20a\x20function');_0x463416(_0x1e3a4d(0x41d),'registerHandler',[_0x2ccb1c,_0x4b21dd]);},_0x40ccd3[_0x4c52f5(0x37e)]=function _0x41992b(_0x41c816,_0xb3f4b){const _0x47da42=_0x4c52f5;if(typeof _0x41c816!==_0x47da42(0x78e)||!_0x41c816)throw new Error(_0x47da42(0x554));if(typeof _0xb3f4b!==_0x47da42(0x8a6))throw new Error('registerQuantum:\x20load\x20must\x20be\x20a\x20function');let _0x357847=null;_0x463416(_0x47da42(0x41d),_0x47da42(0x37e),[_0x41c816,(_0x3b0865,_0xc762e7)=>{if(!_0x357847)_0x357847=_0xb3f4b();return _0x357847(_0x3b0865,_0xc762e7);}]);},_0x40ccd3['_isClosedEnvError']=_0x541389=>/closed|not open|released/i['test'](String(_0x541389)),_0x40ccd3[_0x4c52f5(0x24c)]=![];function _0x463416(_0xada920,_0x2743d7,_0x15ff89){const {staticCall:_0x56e093}=requireLib();return _0x56e093(_0xada920,_0x2743d7,_0x15ff89);}return processor[_0x4c52f5(0x216)]=_0x40ccd3,processor['exports']['OKDBProcessor']=_0x40ccd3,processor['exports'][_0x4c52f5(0x57c)]=_0x46b1d0,processor['exports'];}var okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0xc21b35=_0x7f204b;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x1a469a={'PUT':_0xc21b35(0x1a5),'REMOVE':_0xc21b35(0x5ca),'INDEX_DROP':_0xc21b35(0x57e),'INDEX_REGISTER':_0xc21b35(0x1d6),'INDEX_RESET':'resetIndex','TYPE_REGISTER':_0xc21b35(0x298),'TYPE_DROP':'dropType','FTS_REGISTER':'registerFts','FTS_DROP':_0xc21b35(0x44d),'FTS_RESET':'resetFts','SCHEMA_SET':_0xc21b35(0x4eb),'SCHEMA_DROP':'dropSchema','TTL_SET':_0xc21b35(0x53c),'TTL_CLEAR':_0xc21b35(0x342)},_0x56f0ce={'SYSTEM_READY':_0xc21b35(0x791),'FIELD_RESOLVER_REGISTERED':_0xc21b35(0x3cc),'SYSTEM_STOPPED':_0xc21b35(0x663),'SYSTEM_CLOCK_CHANGE':_0xc21b35(0x5ec),'SYSTEM_POKE':_0xc21b35(0x576),'SYSTEM_DRAIN':'system:drain','SYSTEM_TYPE_DROP':_0xc21b35(0x821),'SYSTEM_PROC':'system:proc','SYSTEM_BUS_STATE_CHANGE':_0xc21b35(0x68f),'ITEM_CREATE':'item:create','ITEM_UPDATE':_0xc21b35(0x22c),'ITEM_REMOVE':'item:remove','ITEM_PENDING':_0xc21b35(0x66a),'INDEX_RESET':_0xc21b35(0x3eb),'INDEX_READY':_0xc21b35(0x458),'INDEX_PROGRESS':_0xc21b35(0x71f),'VIEW_PROGRESS':'view:progress','INDEX_DROP':'index:drop','INDEX_REGISTERED':_0xc21b35(0x2bc),'FTS_REGISTERED':_0xc21b35(0x810),'FTS_DROP':_0xc21b35(0x302),'FTS_RESET':_0xc21b35(0x509),'SCHEMA_SET':_0xc21b35(0x412),'SCHEMA_DROP':_0xc21b35(0x423),'UNIQUE_VIOLATION':'unique:violation','UNIQUE_VIOLATION_RESOLVED':_0xc21b35(0x3c7),'REF_VIOLATION':'ref:violation','REF_VIOLATION_RESOLVED':_0xc21b35(0x5cc),'SYNC_APPLY':_0xc21b35(0x5f5),'TXN_START':_0xc21b35(0x57a),'TXN_END':_0xc21b35(0x854),'TXN_ROLLBACK':'txn:rollback','TYPE_REGISTERED':'type:registered','TYPE_DROP':_0xc21b35(0x36a),'ENV_OPENED':_0xc21b35(0x814),'ENV_REMOVED':'env:removed','SYSTEM_ENV_RELEASE':_0xc21b35(0x4f7),'TTL_EXPIRED':'ttl:expired','TTL_SET':'ttl:set','TTL_CLEAR':'ttl:clear','LICENSE_INVALID':_0xc21b35(0x632),'LICENSE_ADDED':_0xc21b35(0x7b0),'LICENSE_ACTIVATED':_0xc21b35(0x831),'LICENSE_REMOVED':_0xc21b35(0x4f3)},_0x5818bd={'CREATING':_0xc21b35(0x32b),'RESETTING':_0xc21b35(0x3c0),'READY':_0xc21b35(0x356),'DROPPING':_0xc21b35(0x6ce),'WAITING':_0xc21b35(0x341),'ERROR':_0xc21b35(0x2f5)},_0x4cad02={'CREATED':_0xc21b35(0x352),'STARTING':_0xc21b35(0x53d),'STARTED':_0xc21b35(0x2e6),'STOPPING':_0xc21b35(0x332),'STOPPED':_0xc21b35(0x3ef)},_0x14e397={'CREATING':'creating','READY':'ready','HALTED':'halted','STOPPED':_0xc21b35(0x3ef),'RESETTING':_0xc21b35(0x3c0)},_0x2d19ed=Object['freeze']({'POKE':'bus:poke','DRAIN':_0xc21b35(0x83e),'TYPE_DROP':_0xc21b35(0x2ff),'PROC':'bus:proc','ENV_RELEASE':'bus:env_release'});return okdbEnums={'BUS_EVENTS':_0x2d19ed,'CHANGE_ACTIONS':_0x1a469a,'EVENTS':_0x56f0ce,'INDEX_STATE':_0x5818bd,'OKDB_STATE':_0x4cad02,'VIEW_STATE':_0x14e397},okdbEnums;}var okdbGuardedRange,hasRequiredOkdbGuardedRange;function requireOkdbGuardedRange(){const _0x41f257=_0x7f204b;if(hasRequiredOkdbGuardedRange)return okdbGuardedRange;hasRequiredOkdbGuardedRange=0x1;const _0x1894c6={'SKIP':Symbol['for'](_0x41f257(0x679))},{OKDBError:_0x19dc3e}=requireOkdbError(),_0x3e9982={'value':null,'done':!![]};class _0x433832{constructor(_0x45bf62){const _0x4dca7d=_0x41f257;this[_0x4dca7d(0x55d)]=_0x45bf62;}get[_0x41f257(0x713)](){return _0x3e9982;}[Symbol[_0x41f257(0x38b)]](){const _0x1ba99d=_0x41f257;return this[_0x1ba99d(0x55d)]();}['map'](_0x34b098){const _0x37acb1=this;return new _0x433832(()=>{const _0x202e03=_0x20a5,_0x374ee9=_0x37acb1[Symbol[_0x202e03(0x38b)]]();return{'next'(){const _0xf9bcca=_0x202e03;for(;;){const _0xc8dd97=_0x374ee9[_0xf9bcca(0x6dd)]();if(_0xc8dd97['done'])return{'done':!![],'value':undefined};const _0x5ec78e=_0x34b098(_0xc8dd97[_0xf9bcca(0x3a5)]);if(_0x5ec78e===_0x1894c6[_0xf9bcca(0x3cb)])continue;if(_0x5ec78e===_0x3e9982)return _0x374ee9[_0xf9bcca(0x1af)]?.(),{'done':!![],'value':undefined};return{'done':![],'value':_0x5ec78e};}},'return'(){const _0x18bf78=_0x202e03;return _0x374ee9[_0x18bf78(0x1af)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x202e03(0x38b)]](){return this;}};});}['filter'](_0x23e659){const _0x34d1ef=_0x41f257;return this[_0x34d1ef(0x70b)](_0x20566f=>_0x23e659(_0x20566f)?_0x20566f:_0x1894c6[_0x34d1ef(0x3cb)]);}[_0x41f257(0x7e0)](_0x46a754){for(const _0x83ad59 of this)_0x46a754(_0x83ad59);}[_0x41f257(0x231)](_0x46a0fb=0x0,_0x5e474a=Infinity){const _0x3048a9=this;return new _0x433832(()=>{const _0x789c1c=_0x20a5,_0x173585=_0x3048a9[Symbol[_0x789c1c(0x38b)]]();let _0x486cc4=0x0;return{'next'(){const _0x167403=_0x789c1c;for(;;){const _0x2463dc=_0x173585[_0x167403(0x6dd)]();if(_0x2463dc['done'])return{'done':!![],'value':undefined};const _0x5ca965=_0x486cc4++;if(_0x5ca965<_0x46a0fb)continue;if(_0x5ca965>=_0x5e474a)return _0x173585['return']?.(),{'done':!![],'value':undefined};return _0x2463dc;}},'return'(){return _0x173585['return']?.(),{'done':!![],'value':undefined};},[Symbol[_0x789c1c(0x38b)]](){return this;}};});}['at'](_0x1e5d10){let _0x365649=0x0;for(const _0x250569 of this)if(_0x365649++===_0x1e5d10)return _0x250569;return undefined;}['flatMap'](_0x3a87e5){const _0x320389=this;return new _0x433832(()=>{const _0x1809dd=_0x20a5,_0x1db608=_0x320389[Symbol[_0x1809dd(0x38b)]]();let _0x48864a=[];return{'next'(){const _0x2c2a99=_0x1809dd;for(;;){if(_0x48864a[_0x2c2a99(0x29a)])return{'done':![],'value':_0x48864a['shift']()};const _0x4a391b=_0x1db608[_0x2c2a99(0x6dd)]();if(_0x4a391b['done'])return{'done':!![],'value':undefined};const _0x23c47c=_0x3a87e5(_0x4a391b[_0x2c2a99(0x3a5)]);if(Array[_0x2c2a99(0x7c8)](_0x23c47c))_0x48864a=_0x48864a[_0x2c2a99(0x8b3)](_0x23c47c);else{if(_0x23c47c!=null&&(_0x23c47c instanceof _0x433832||typeof _0x23c47c[Symbol[_0x2c2a99(0x38b)]]===_0x2c2a99(0x8a6)&&'asArray'in _0x23c47c))_0x48864a=_0x48864a[_0x2c2a99(0x8b3)](Array[_0x2c2a99(0x52e)](_0x23c47c));else{if(_0x23c47c!==_0x1894c6[_0x2c2a99(0x3cb)])return{'done':![],'value':_0x23c47c};}}}},'return'(){return _0x1db608['return']?.(),{'done':!![],'value':undefined};},[Symbol[_0x1809dd(0x38b)]](){return this;}};});}['concat'](_0x35c4ca){const _0x5ec391=this;return new _0x433832(()=>{const _0x2de554=_0x20a5;let _0x69b883=_0x5ec391[Symbol[_0x2de554(0x38b)]](),_0xa78b01=![];return{'next'(){const _0x378407=_0x2de554;for(;;){const _0x2947a9=_0x69b883[_0x378407(0x6dd)]();if(!_0x2947a9['done'])return _0x2947a9;if(_0xa78b01)return{'done':!![],'value':undefined};_0xa78b01=!![],_0x69b883=_0x35c4ca[Symbol[_0x378407(0x38b)]]();}},'return'(){const _0x555fd7=_0x2de554;return _0x69b883[_0x555fd7(0x1af)]?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}[_0x41f257(0x6a1)](_0x5cb25a){const _0x368c2a=this;return new _0x433832(()=>{const _0x227b76=_0x368c2a[Symbol['iterator']]();return{'next'(){const _0x324ad4=_0x20a5;for(;;){try{return _0x227b76[_0x324ad4(0x6dd)]();}catch(_0x3850f7){const _0x40c3ac=_0x5cb25a(_0x3850f7);if(_0x40c3ac===_0x1894c6[_0x324ad4(0x3cb)]||_0x40c3ac===undefined)continue;return{'done':![],'value':_0x40c3ac};}}},'return'(){return _0x227b76['return']?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}[_0x41f257(0x513)](){const _0x1a2f27=_0x41f257;return Array[_0x1a2f27(0x52e)](this);}get[_0x41f257(0x6dc)](){return Array['from'](this);}}const _0x3f88dc={'total':0x0,'byLabel':{},'last':null};function _0x1141bb(_0x355bfa){const _0x1bb571=_0x41f257;_0x3f88dc[_0x1bb571(0x89f)]++;if(_0x355bfa)_0x3f88dc[_0x1bb571(0x78c)][_0x355bfa]=(_0x3f88dc[_0x1bb571(0x78c)][_0x355bfa]??0x0)+0x1;_0x3f88dc[_0x1bb571(0x70f)]={'label':_0x355bfa??null,'at':Date[_0x1bb571(0x200)]()};}function _0x3503a0(){const _0xc48951=_0x41f257;return{'total':_0x3f88dc[_0xc48951(0x89f)],'byLabel':{..._0x3f88dc[_0xc48951(0x78c)]},'last':_0x3f88dc[_0xc48951(0x70f)]};}function _0x512844(_0x5a0ada,_0x4ad4af={}){const {getTxnId:_0x3a2bad,resume:_0x4d13e8,label:_0x175d0a,baseline:_0xa8f8b3}=_0x4ad4af;return new _0x433832(()=>{let _0x3e4db3=null,_0x3e39d7=![],_0x4e8374=![],_0x35c6b8=![],_0x3a40c6,_0x5e2864=0x0,_0x5263e2;return{'next'(){const _0x1c63c=_0x20a5;if(_0x35c6b8)return{'done':!![],'value':undefined};if(_0x4e8374){let _0x403a76=![];if(_0x4d13e8&&_0x3a2bad)try{_0x403a76=_0x3a2bad()===_0x5263e2;}catch{}if(!_0x403a76){_0x35c6b8=!![],_0x1141bb(_0x175d0a);throw new _0x19dc3e(_0x4d13e8?_0x1c63c(0x344)+_0x1c63c(0x1a0)+_0x1c63c(0x2f3):_0x1c63c(0x253)+'(no\x20unambiguous\x20bookmark)\x20—\x20consume\x20it\x20in\x20one\x20synchronous\x20block:\x20materialize\x20(e.g.\x20'+'Array.from)\x20before\x20any\x20await.',_0x1c63c(0x588));}_0x3e4db3=_0x4d13e8(_0x3a40c6,_0x5e2864)[Symbol['iterator']](),_0x4e8374=![];}if(!_0x3e4db3){if(_0xa8f8b3!==undefined)_0x5263e2=_0xa8f8b3;else try{_0x5263e2=_0x3a2bad?_0x3a2bad():undefined;}catch{_0x5263e2=undefined;}try{_0x3e4db3=_0x5a0ada()[Symbol[_0x1c63c(0x38b)]]();}catch(_0x31cb95){_0x35c6b8=!![];throw _0x31cb95;}}!_0x3e39d7&&(_0x3e39d7=!![],queueMicrotask(()=>{_0x3e39d7=![];if(_0x35c6b8||_0x4e8374)return;try{_0x3e4db3?.['return']?.();}catch{}_0x3e4db3=null,_0x4e8374=!![];}));const _0x3e5734=_0x3e4db3['next']();if(_0x3e5734['done'])return _0x35c6b8=!![],{'done':!![],'value':undefined};return _0x3a40c6=_0x3e5734[_0x1c63c(0x3a5)],_0x5e2864++,_0x3e5734;},'return'(){const _0x1dfcb4=_0x20a5;_0x35c6b8=!![];try{_0x3e4db3?.[_0x1dfcb4(0x1af)]?.();}catch{}return{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}return okdbGuardedRange={'guardSnapshotIterable':_0x512844,'OKDBGuardedRange':_0x433832,'recordGuardTrip':_0x1141bb,'getGuardTripStats':_0x3503a0},okdbGuardedRange;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0x263c3e=_0x7f204b;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x546f4b,performance:_0x131142}=require$$0$1,_0x331989=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG==='true',_0x45f71d=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x29a213=process.env.OKDB_LOOP_LAG_ALL==='1',_0x86e243=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0x5d3003{constructor(){const _0x32bcbe=_0x20a5;this['enabled']=_0x331989,this['_buckets']=new Map(),this['_h']=null,this[_0x32bcbe(0x219)]=null,this[_0x32bcbe(0x266)]=![],this[_0x32bcbe(0x89a)]=(_0x5495d6,_0x56ed7f)=>process[_0x32bcbe(0x26c)][_0x32bcbe(0x5a5)](_0x5495d6+(_0x56ed7f?'\x20'+JSON[_0x32bcbe(0x427)](_0x56ed7f):'')+'\x0a');}['now'](){return _0x131142['now']();}[_0x263c3e(0x804)](_0x1d254c){const _0x539c61=_0x263c3e;if(typeof _0x1d254c===_0x539c61(0x8a6))this['_log']=_0x1d254c;}[_0x263c3e(0x860)](_0x36c4e5,_0x3be922,_0x222a05){const _0x20dfca=_0x263c3e;if(!this[_0x20dfca(0x2b0)])return;let _0x519c1a=this['_buckets'][_0x20dfca(0x7f0)](_0x36c4e5);!_0x519c1a&&(_0x519c1a={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this['_buckets'][_0x20dfca(0x534)](_0x36c4e5,_0x519c1a)),_0x519c1a['ms']+=_0x3be922,_0x519c1a[_0x20dfca(0x5f8)]+=0x1,_0x3be922>_0x519c1a[_0x20dfca(0x6e0)]&&(_0x519c1a[_0x20dfca(0x6e0)]=_0x3be922,_0x519c1a[_0x20dfca(0x2b6)]=_0x222a05||'');}['start'](_0x329e1e){const _0x56a895=_0x263c3e;if(!this[_0x56a895(0x2b0)]||this[_0x56a895(0x266)])return;this[_0x56a895(0x266)]=!![];if(_0x329e1e)this['_log']=_0x329e1e;this['_h']=_0x546f4b({'resolution':0xa}),this['_h'][_0x56a895(0x3d4)](),this[_0x56a895(0x219)]=setInterval(()=>this['_report'](),_0x45f71d);if(this[_0x56a895(0x219)][_0x56a895(0x48c)])this[_0x56a895(0x219)][_0x56a895(0x48c)]();}[_0x263c3e(0x254)](_0x38d7b5){const _0x151218=_0x263c3e;if(!this[_0x151218(0x274)])this[_0x151218(0x274)]=new Set();this['_windowCbs'][_0x151218(0x6a0)](_0x38d7b5);if(!this[_0x151218(0x266)])this[_0x151218(0x796)]();}['offWindow'](_0xa59762){const _0x4e9540=_0x263c3e;this['_windowCbs']?.[_0x4e9540(0x36f)](_0xa59762);}[_0x263c3e(0x796)](){const _0x2a4e9e=_0x263c3e;if(this[_0x2a4e9e(0x722)])return;this['_admissionStarted']=!![];!this['_h']&&(this['_h']=_0x546f4b({'resolution':0xa}),this['_h'][_0x2a4e9e(0x3d4)]());const _0x423efd=_0x45f71d;this[_0x2a4e9e(0x56c)]=setInterval(()=>{const _0x4abe05=_0x2a4e9e,_0x177ff1=this['_h'];if(!_0x177ff1)return;const _0x4931c3=_0x177ff1[_0x4abe05(0x692)](0x63)/0xf4240,_0x145481=_0x177ff1['max']/0xf4240,_0x18970f=_0x177ff1[_0x4abe05(0x210)]/0xf4240;_0x177ff1['reset']();if(this[_0x4abe05(0x274)])for(const _0x2fdd85 of this[_0x4abe05(0x274)]){try{_0x2fdd85({'p99Ms':_0x4931c3,'maxMs':_0x145481,'meanMs':_0x18970f,'reportMs':_0x423efd});}catch{}}},_0x423efd);if(this[_0x2a4e9e(0x56c)][_0x2a4e9e(0x48c)])this['_admissionTimer'][_0x2a4e9e(0x48c)]();}['_report'](){const _0x32f625=_0x263c3e,_0x5f569a=this['_h'],_0x33e125=_0x5f569a['max']/0xf4240,_0x47cd65=_0x5f569a[_0x32f625(0x692)](0x63)/0xf4240,_0x72957a=_0x5f569a[_0x32f625(0x210)]/0xf4240;_0x5f569a[_0x32f625(0x678)]();const _0x56c6ba=[...this[_0x32f625(0x461)][_0x32f625(0x488)]()][_0x32f625(0x70b)](([_0x38fb78,_0x524c47])=>({'label':_0x38fb78,..._0x524c47}))[_0x32f625(0x441)]((_0x10c4f6,_0xe47976)=>_0xe47976['ms']-_0x10c4f6['ms'])['slice'](0x0,0x8);this[_0x32f625(0x461)][_0x32f625(0x7fd)]();const _0x35872f=_0x56c6ba[_0x32f625(0x641)]((_0x2f1b8f,_0x26f4a4)=>_0x2f1b8f+_0x26f4a4['ms'],0x0),_0xcfd6d5=_0x56c6ba[_0x32f625(0x70b)](_0x10e58d=>_0x10e58d[_0x32f625(0x659)]+'='+_0x10e58d['ms'][_0x32f625(0x436)](0x0)+_0x32f625(0x359)+_0x10e58d[_0x32f625(0x5f8)]+(_0x10e58d[_0x32f625(0x6e0)]>0x5?_0x32f625(0x592)+_0x10e58d[_0x32f625(0x6e0)][_0x32f625(0x436)](0x0)+'ms'+(_0x10e58d['maxExtra']?'\x20'+_0x10e58d['maxExtra']:'')+')':''));(_0x29a213||_0x33e125>=_0x86e243)&&this[_0x32f625(0x89a)]('loop-lag\x20'+_0x45f71d+_0x32f625(0x834)+_0x33e125[_0x32f625(0x436)](0x0)+_0x32f625(0x2f1)+_0x47cd65[_0x32f625(0x436)](0x0)+_0x32f625(0x7fe)+_0x72957a[_0x32f625(0x436)](0x0)+_0x32f625(0x762)+_0x35872f[_0x32f625(0x436)](0x0)+'ms'+(_0xcfd6d5[_0x32f625(0x29a)]?_0x32f625(0x7e8)+_0xcfd6d5['join']('\x20\x20'):''),{'feature':'loop-lag'});if(this[_0x32f625(0x274)])for(const _0xc6ceba of this[_0x32f625(0x274)]){try{_0xc6ceba({'p99Ms':_0x47cd65,'maxMs':_0x33e125,'meanMs':_0x72957a,'reportMs':_0x45f71d});}catch{}}}['stop'](){const _0x3a2f4d=_0x263c3e;if(this[_0x3a2f4d(0x219)])clearInterval(this[_0x3a2f4d(0x219)]);if(this['_h'])this['_h']['disable']();this['_timer']=null,this['_h']=null,this[_0x3a2f4d(0x266)]=![];}}const _0xc79594=new _0x5d3003();if(_0xc79594[_0x263c3e(0x2b0)])_0xc79594[_0x263c3e(0x449)]();return okdbLoopMonitor={'LOOP':_0xc79594},okdbLoopMonitor;}var okdbTransaction,hasRequiredOkdbTransaction;function requireOkdbTransaction(){const _0x451684=_0x7f204b;if(hasRequiredOkdbTransaction)return okdbTransaction;hasRequiredOkdbTransaction=0x1;const _0x4c6ddc={'v4':()=>require$$0$2[_0x451684(0x7de)]()},{EVENTS:_0x311f3f}=requireOkdbEnums(),{OKDBError:_0x5cdc2c}=requireOkdbError(),{recordGuardTrip:_0x56b7ba,guardSnapshotIterable:_0x26a322}=requireOkdbGuardedRange(),{LOOP:_0x17c11d}=requireOkdbLoopMonitor();function _0x3ef3f7(_0x419147){const _0x108386=_0x451684;return _0x419147[_0x108386(0x70b)](_0x3ee295=>{const _0x28bd7b=_0x108386,[_0x4a80ca,_0x504b11]=_0x3ee295[_0x28bd7b(0x711)]||[];return{'action':_0x3ee295['action'],'type':_0x4a80ca,'key':_0x504b11};});}class _0x1ba0f1{[_0x451684(0x44b)];[_0x451684(0x67c)]=[];['_doHooks']=[];[_0x451684(0x1e0)]=[];constructor(_0x1af511,_0x6c5b1e={'useReadTransaction':![]}){const _0x144fce=_0x451684;this[_0x144fce(0x44b)]=_0x1af511,this['options']=_0x6c5b1e,this['id']=_0x4c6ddc['v4']();if(this[_0x144fce(0x51a)][_0x144fce(0x5c5)])try{this[_0x144fce(0x569)]=this[_0x144fce(0x44b)]['db'][_0x144fce(0x79b)]()[_0x144fce(0x637)];}catch{this['_txnIdAtSnapshot']=undefined;}this['readTransaction']=this[_0x144fce(0x51a)]['useReadTransaction']?this[_0x144fce(0x44b)]['db'][_0x144fce(0x5c5)]():null,this['_closed']=![],this[_0x144fce(0x629)]=![],this[_0x144fce(0x54d)]&&queueMicrotask(()=>{const _0x1d2313=_0x144fce;this[_0x1d2313(0x54d)]&&(this['_closeReadTransaction'](),this[_0x1d2313(0x629)]=!![]);});}[_0x451684(0x6b8)](_0xbc0204){const _0x5b7452=_0x451684;this[_0x5b7452(0x4ae)][_0x5b7452(0x373)](_0xbc0204);}[_0x451684(0x822)](_0x2fa6d0){this['_undoHooks']['push'](_0x2fa6d0);}['_closeReadTransaction'](){const _0x325fa3=_0x451684;if(!this['readTransaction'])return;try{this['readTransaction'][_0x325fa3(0x355)]();}catch(_0x556cc5){}this[_0x325fa3(0x54d)]=null;}[_0x451684(0x2d3)](){const _0x2c295b=_0x451684;if(this[_0x2c295b(0x1fa)])throw new _0x5cdc2c('Transaction\x20already\x20closed',_0x2c295b(0x331));if(this['_readViewExpired']){let _0x44804f=![];if(this[_0x2c295b(0x51a)][_0x2c295b(0x5c5)]===_0x2c295b(0x282)&&this[_0x2c295b(0x569)]!==undefined)try{_0x44804f=this[_0x2c295b(0x44b)]['db'][_0x2c295b(0x79b)]()[_0x2c295b(0x637)]===this['_txnIdAtSnapshot'];}catch{}if(!_0x44804f){_0x56b7ba((this[_0x2c295b(0x44b)]?.[_0x2c295b(0x5d4)]??'?')+_0x2c295b(0x6e9));throw new _0x5cdc2c('useReadTransaction\x20read\x20view\x20expired:\x20the\x20snapshot\x20was\x20released\x20at\x20the\x20first\x20await/turn\x20'+_0x2c295b(0x81a)+'before\x20any\x20await\x20—\x20or\x20opt\x20into\x20useReadTransaction:\x27tolerant\x27\x20to\x20keep\x20reading\x20while\x20'+_0x2c295b(0x5e4),_0x2c295b(0x588));}}}[_0x451684(0x7f0)](_0x5c35bf,_0x32c07b){const _0x298e7d=_0x451684;return this[_0x298e7d(0x2d3)](),this[_0x298e7d(0x44b)]['get'](_0x5c35bf,_0x32c07b,{'transaction':this['readTransaction']});}['getEntry'](_0x37468c,_0x51cbf7){const _0x2f27f2=_0x451684;return this['_assertOpen'](),this[_0x2f27f2(0x44b)][_0x2f27f2(0x30e)](_0x37468c,_0x51cbf7,{'transaction':this[_0x2f27f2(0x54d)]});}[_0x451684(0x6c9)](_0x3a2332,_0x11c45a){const _0x150154=_0x451684;return this[_0x150154(0x2d3)](),this['okdb'][_0x150154(0x6c9)](_0x3a2332,_0x11c45a,{'transaction':this['readTransaction']});}[_0x451684(0x5cb)](_0x4121e1){const _0x283f41=_0x451684;if(!this[_0x283f41(0x51a)][_0x283f41(0x5c5)])return _0x4121e1;if(_0x4121e1&&typeof _0x4121e1[_0x283f41(0x315)]===_0x283f41(0x8a6))return _0x4121e1;if(Array[_0x283f41(0x7c8)](_0x4121e1))return _0x4121e1;const _0x407de3=this,_0x8228d7=_0x407de3[_0x283f41(0x51a)][_0x283f41(0x5c5)]==='tolerant',_0x1839fd=()=>{const _0x1a19d2=_0x283f41;if(!_0x407de3[_0x1a19d2(0x629)])return![];if(!_0x8228d7)return!![];if(_0x407de3['_txnIdAtSnapshot']===undefined)return!![];try{return _0x407de3[_0x1a19d2(0x44b)]['db'][_0x1a19d2(0x79b)]()[_0x1a19d2(0x637)]!==_0x407de3['_txnIdAtSnapshot'];}catch{return!![];}};return _0x26a322(()=>{const _0x5dc224=_0x283f41;if(_0x407de3['_closed'])throw new _0x5cdc2c(_0x5dc224(0x6d8),_0x5dc224(0x331));if(_0x1839fd()){_0x56b7ba((_0x407de3[_0x5dc224(0x44b)]?.['name']??'?')+_0x5dc224(0x5a9));throw new _0x5cdc2c('useReadTransaction\x20range\x20consumed\x20after\x20the\x20creation\x20turn\x20—\x20the\x20consistent\x20view\x20was\x20'+_0x5dc224(0x406)+_0x5dc224(0x487),_0x5dc224(0x588));}return _0x4121e1;},{'label':(_0x407de3[_0x283f41(0x44b)]?.[_0x283f41(0x5d4)]??'?')+_0x283f41(0x5a9),..._0x8228d7?{'baseline':_0x407de3[_0x283f41(0x569)],'getTxnId':()=>_0x407de3[_0x283f41(0x44b)]['db']['getStats']()[_0x283f41(0x637)],'resume':(_0x1299cf,_0x398a3e)=>_0x4121e1[_0x283f41(0x231)](_0x398a3e)}:{}});}['getRange'](_0x1d28ee,_0x499f14={}){const _0x5271b5=_0x451684;return this[_0x5271b5(0x2d3)](),this['_range'](this[_0x5271b5(0x44b)][_0x5271b5(0x697)](_0x1d28ee,{'transaction':this[_0x5271b5(0x54d)],..._0x499f14}));}['getValues'](_0x5a461a,_0x1ccc82={}){const _0x169bb0=_0x451684;return this['_assertOpen'](),this[_0x169bb0(0x5cb)](this['okdb'][_0x169bb0(0x579)](_0x5a461a,{'transaction':this[_0x169bb0(0x54d)],..._0x1ccc82}));}[_0x451684(0x755)](_0x3e61ec,_0x2674c2={}){const _0xfbedc5=_0x451684;return this[_0xfbedc5(0x2d3)](),this[_0xfbedc5(0x5cb)](this[_0xfbedc5(0x44b)]['getKeys'](_0x3e61ec,{'transaction':this[_0xfbedc5(0x54d)],..._0x2674c2}));}[_0x451684(0x846)](_0x5b7899,_0x41416a,_0x3becc9={}){const _0x24aa61=_0x451684;return this[_0x24aa61(0x2d3)](),this['_range'](this[_0x24aa61(0x44b)][_0x24aa61(0x846)](_0x5b7899,_0x41416a,{'transaction':this[_0x24aa61(0x54d)],..._0x3becc9}));}['query'](_0x50d3cf,_0x1f67b3,_0x155c98={}){const _0xf36cb2=_0x451684;return this[_0xf36cb2(0x2d3)](),this[_0xf36cb2(0x5cb)](this[_0xf36cb2(0x44b)][_0xf36cb2(0x5ee)](_0x50d3cf,_0x1f67b3,{'transaction':this['readTransaction'],..._0x155c98}));}['getClock'](_0x244935=null){const _0x3bd2a1=_0x451684;return this[_0x3bd2a1(0x2d3)](),this[_0x3bd2a1(0x44b)][_0x3bd2a1(0x599)](_0x244935,{'transaction':this[_0x3bd2a1(0x54d)]});}[_0x451684(0x3f2)](_0x3a6835){const _0x178ae2=_0x451684;return this[_0x178ae2(0x2d3)](),this['okdb'][_0x178ae2(0x3f2)](_0x3a6835,{'transaction':this['readTransaction']});}['put'](_0x3a4375,_0x3b94df,_0x33fa9d,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0x451684(0x200)](),origin:origin=null,ttl:ttl=null}={}){const _0x5a7ff3=_0x451684;this[_0x5a7ff3(0x67c)][_0x5a7ff3(0x373)]({'action':_0x5a7ff3(0x1a5),'args':[_0x3a4375,_0x3b94df,_0x33fa9d,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x451684(0x2b8)](_0xa4ba7f,_0x159ff5,_0x3995ca,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0x451684(0x200)](),origin:origin=null,ttl:ttl=null}={}){const _0x2b0e9c=_0x451684;this[_0x2b0e9c(0x67c)][_0x2b0e9c(0x373)]({'action':'update','args':[_0xa4ba7f,_0x159ff5,_0x3995ca,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x451684(0x7bb)](_0x1a421b,_0x17736e,_0x3a0188,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0x451684(0x200)](),origin:origin=null,ttl:ttl=null}={}){const _0x2e916e=_0x451684;this[_0x2e916e(0x67c)][_0x2e916e(0x373)]({'action':_0x2e916e(0x7bb),'args':[_0x1a421b,_0x17736e,_0x3a0188,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x451684(0x3db)](_0x407d04,_0x4a9680,_0x37808b,{version:version=null,timestamp:timestamp=Date[_0x451684(0x200)](),origin:origin=null,ttl:ttl=null}={}){const _0xa457ad=_0x451684;this[_0xa457ad(0x67c)][_0xa457ad(0x373)]({'action':'create','args':[_0x407d04,_0x4a9680,_0x37808b,{'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x451684(0x5ca)](_0x1f9d2e,_0x3ddd35,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0x451684(0x200)](),origin:origin=null}={}){const _0x3d30b7=_0x451684;this['actions']['push']({'action':_0x3d30b7(0x5ca),'args':[_0x1f9d2e,_0x3ddd35,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin}]});}[_0x451684(0x41c)](_0xe1b663,_0x405e98,_0x3635ac){const _0x108385=_0x451684;this[_0x108385(0x67c)][_0x108385(0x373)]({'action':'setTTL','args':[_0xe1b663,_0x405e98,_0x3635ac]});}[_0x451684(0x770)](_0x3a58a0,_0x18e022){const _0x5f61c6=_0x451684;this[_0x5f61c6(0x67c)]['push']({'action':_0x5f61c6(0x770),'args':[_0x3a58a0,_0x18e022]});}['rollback'](){const _0x351a1b=_0x451684;if(this['_closed'])return;for(const _0xcd297 of this[_0x351a1b(0x1e0)]){try{_0xcd297();}catch{}}this[_0x351a1b(0x44b)]['events'][_0x351a1b(0x53b)](_0x311f3f[_0x351a1b(0x337)],{'id':this['id']}),this[_0x351a1b(0x67c)]=[],this[_0x351a1b(0x6cd)](),this['_closed']=!![];}async['commit'](){const _0x21c0dd=_0x451684;if(this[_0x21c0dd(0x1fa)])throw new Error('Transaction\x20already\x20closed');const _0x277f74={'id':this['id'],'timestamp':Date['now'](),'actions':this[_0x21c0dd(0x67c)]};this[_0x21c0dd(0x44b)]['events']['emit'](_0x311f3f[_0x21c0dd(0x3a6)],_0x277f74);try{const _0x32d7c6=_0x17c11d[_0x21c0dd(0x2b0)]?_0x17c11d[_0x21c0dd(0x200)]():0x0;await this['okdb'][_0x21c0dd(0x1d9)][_0x21c0dd(0x7ba)](()=>{const _0x32d90b=_0x21c0dd;for(const _0x4326e4 of this[_0x32d90b(0x67c)]){const _0x10a213=this[_0x32d90b(0x44b)]['_'+_0x4326e4['action']];if(typeof _0x10a213!==_0x32d90b(0x8a6))throw new Error(_0x32d90b(0x280)+_0x4326e4[_0x32d90b(0x670)]);_0x10a213[_0x32d90b(0x3ce)](this[_0x32d90b(0x44b)],this,..._0x4326e4[_0x32d90b(0x711)]);}}),_0x17c11d[_0x21c0dd(0x2b0)]&&_0x17c11d[_0x21c0dd(0x860)](_0x21c0dd(0x26a),_0x17c11d[_0x21c0dd(0x200)]()-_0x32d7c6,(this[_0x21c0dd(0x44b)][_0x21c0dd(0x5d4)]??'?')+'\x20actions='+this[_0x21c0dd(0x67c)]['length']);}catch(_0x57a027){for(const _0x289f6b of this[_0x21c0dd(0x1e0)]){try{_0x289f6b();}catch{}}this[_0x21c0dd(0x6cd)](),this[_0x21c0dd(0x1fa)]=!![];if(_0x57a027 instanceof _0x5cdc2c)throw _0x57a027;const _0x39b8c7={'cause':_0x57a027,'env':this[_0x21c0dd(0x44b)]?.[_0x21c0dd(0x5d4)],'envPath':this['okdb']?.[_0x21c0dd(0x4b0)],'pid':process[_0x21c0dd(0x76e)],'txnId':this['id'],'actionCount':this[_0x21c0dd(0x67c)]['length'],'actions':_0x3ef3f7(this[_0x21c0dd(0x67c)]),'nativeCode':_0x57a027?.[_0x21c0dd(0x19c)],'nativeName':_0x57a027?.[_0x21c0dd(0x5d4)]};try{this['okdb']?.['log']?.[_0x21c0dd(0x2f5)]?.(_0x21c0dd(0x613),{'env':_0x39b8c7[_0x21c0dd(0x27b)],'envPath':_0x39b8c7[_0x21c0dd(0x40e)],'pid':_0x39b8c7['pid'],'txnId':_0x39b8c7[_0x21c0dd(0x575)],'actionCount':_0x39b8c7[_0x21c0dd(0x500)],'actions':_0x39b8c7[_0x21c0dd(0x67c)],'nativeCode':_0x39b8c7[_0x21c0dd(0x5ff)],'error':_0x57a027?.[_0x21c0dd(0x4ee)],'stack':_0x57a027?.[_0x21c0dd(0x4e1)]});}catch{}throw new _0x5cdc2c(_0x57a027?.['message']||'Unknown\x20OKDB\x20transaction\x20error',_0x21c0dd(0x1f2),_0x39b8c7);}this[_0x21c0dd(0x44b)][_0x21c0dd(0x511)][_0x21c0dd(0x53b)](_0x311f3f[_0x21c0dd(0x7be)],_0x277f74);for(const _0x25c80a of this[_0x21c0dd(0x4ae)]){try{await _0x25c80a();}catch{}}this['actions']=[],this[_0x21c0dd(0x6cd)](),this[_0x21c0dd(0x1fa)]=!![];}static[_0x451684(0x247)](_0x1bff1b){const _0x3ab13c=_0x451684;return Object['freeze']({'id':_0x1bff1b['id'],'put':_0x1bff1b['put'][_0x3ab13c(0x738)](_0x1bff1b),'update':_0x1bff1b[_0x3ab13c(0x2b8)][_0x3ab13c(0x738)](_0x1bff1b),'patch':_0x1bff1b[_0x3ab13c(0x7bb)]['bind'](_0x1bff1b),'create':_0x1bff1b[_0x3ab13c(0x3db)][_0x3ab13c(0x738)](_0x1bff1b),'remove':_0x1bff1b[_0x3ab13c(0x5ca)][_0x3ab13c(0x738)](_0x1bff1b),'setTTL':_0x1bff1b[_0x3ab13c(0x41c)]['bind'](_0x1bff1b),'clearTTL':_0x1bff1b[_0x3ab13c(0x770)][_0x3ab13c(0x738)](_0x1bff1b),'commit':_0x1bff1b[_0x3ab13c(0x28c)][_0x3ab13c(0x738)](_0x1bff1b),'rollback':_0x1bff1b[_0x3ab13c(0x413)][_0x3ab13c(0x738)](_0x1bff1b),'get':_0x1bff1b[_0x3ab13c(0x7f0)]['bind'](_0x1bff1b),'getEntry':_0x1bff1b[_0x3ab13c(0x30e)][_0x3ab13c(0x738)](_0x1bff1b),'getMany':_0x1bff1b[_0x3ab13c(0x6c9)][_0x3ab13c(0x738)](_0x1bff1b),'getRange':_0x1bff1b[_0x3ab13c(0x697)]['bind'](_0x1bff1b),'getValues':_0x1bff1b[_0x3ab13c(0x579)]['bind'](_0x1bff1b),'getKeys':_0x1bff1b[_0x3ab13c(0x755)][_0x3ab13c(0x738)](_0x1bff1b),'byIndex':_0x1bff1b[_0x3ab13c(0x846)][_0x3ab13c(0x738)](_0x1bff1b),'query':_0x1bff1b[_0x3ab13c(0x5ee)][_0x3ab13c(0x738)](_0x1bff1b),'getClock':_0x1bff1b[_0x3ab13c(0x599)]['bind'](_0x1bff1b),'getCount':_0x1bff1b['getCount']['bind'](_0x1bff1b),'read':_0x1bff1b,'raw':_0x1bff1b});}static[_0x451684(0x30f)](_0x1edbeb,_0x4a7cd7=[]){const _0x50da87=_0x451684;if(!Array[_0x50da87(0x7c8)](_0x4a7cd7))throw new _0x5cdc2c(_0x50da87(0x3b8),_0x50da87(0x669));for(const _0x36ddab of _0x4a7cd7){if(Array['isArray'](_0x36ddab)){const [_0x365f35,..._0x3179d8]=_0x36ddab;if(typeof _0x1edbeb[_0x365f35]!=='function')throw new _0x5cdc2c(_0x50da87(0x280)+_0x365f35,'TXN_INVALID_ACTION',{'action':_0x365f35});_0x1edbeb[_0x365f35](..._0x3179d8);continue;}if(!_0x36ddab||typeof _0x36ddab!==_0x50da87(0x2bf))throw new _0x5cdc2c(_0x50da87(0x7b7),_0x50da87(0x7f6));const {action:_0x2cd958}=_0x36ddab;if(typeof _0x2cd958!==_0x50da87(0x78e)||typeof _0x1edbeb[_0x2cd958]!==_0x50da87(0x8a6))throw new _0x5cdc2c(_0x50da87(0x280)+_0x2cd958,_0x50da87(0x5d1),{'action':_0x2cd958});switch(_0x2cd958){case'put':case _0x50da87(0x2b8):case'create':_0x1edbeb[_0x2cd958](_0x36ddab[_0x50da87(0x225)],_0x36ddab[_0x50da87(0x3d3)],_0x36ddab[_0x50da87(0x3a5)],{..._0x36ddab[_0x50da87(0x51a)],'ttl':_0x36ddab[_0x50da87(0x292)]??_0x36ddab[_0x50da87(0x51a)]?.[_0x50da87(0x292)]??null});break;case _0x50da87(0x7bb):_0x1edbeb[_0x50da87(0x7bb)](_0x36ddab[_0x50da87(0x225)],_0x36ddab[_0x50da87(0x3d3)],_0x36ddab['patch'],{..._0x36ddab[_0x50da87(0x51a)],'ttl':_0x36ddab[_0x50da87(0x292)]??_0x36ddab[_0x50da87(0x51a)]?.[_0x50da87(0x292)]??null});break;case _0x50da87(0x5ca):_0x1edbeb['remove'](_0x36ddab[_0x50da87(0x225)],_0x36ddab['key'],_0x36ddab[_0x50da87(0x51a)]||{});break;case _0x50da87(0x41c):_0x1edbeb['setTTL'](_0x36ddab[_0x50da87(0x225)],_0x36ddab[_0x50da87(0x3d3)],_0x36ddab[_0x50da87(0x292)]);break;case _0x50da87(0x770):_0x1edbeb[_0x50da87(0x770)](_0x36ddab[_0x50da87(0x225)],_0x36ddab[_0x50da87(0x3d3)]);break;default:throw new _0x5cdc2c(_0x50da87(0x4b6)+_0x2cd958,_0x50da87(0x5d1),{'action':_0x2cd958});}}}static async[_0x451684(0x4d8)](_0x53d6d4,_0x2ac98d,_0x2d4612={}){const _0x19991e=_0x451684,_0x3d45cf=new _0x1ba0f1(_0x53d6d4,_0x2d4612),_0x702c8d=_0x1ba0f1[_0x19991e(0x247)](_0x3d45cf);try{typeof _0x2ac98d===_0x19991e(0x8a6)?await _0x2ac98d(_0x702c8d):_0x1ba0f1[_0x19991e(0x30f)](_0x3d45cf,_0x2ac98d||[]);const _0x38f41b=_0x3d45cf[_0x19991e(0x67c)][_0x19991e(0x29a)];return await _0x3d45cf[_0x19991e(0x28c)](),{'id':_0x3d45cf['id'],'actions':_0x38f41b};}catch(_0x335279){try{_0x3d45cf[_0x19991e(0x413)]();}catch(_0x368582){}throw _0x335279;}}}return okdbTransaction=_0x1ba0f1,okdbTransaction;}var dist={},hasRequiredDist;function requireDist(){const _0x541d10=_0x7f204b;if(hasRequiredDist)return dist;hasRequiredDist=0x1,Object[_0x541d10(0x4d6)](dist,_0x541d10(0x5c6),{'value':!![]});const _0x469aed=new Float64Array(0x2),_0x3d118d=new Int32Array(_0x469aed[_0x541d10(0x307)],0x0,0x4),{lowIdx:_0x586d35,highIdx:_0x479fb5}=((()=>{const _0x53eef1=_0x541d10;if(new Uint8Array(new Uint32Array([0xffee1100])[_0x53eef1(0x307)])[0x0]===0xff)return{'lowIdx':0x1,'highIdx':0x0};return{'lowIdx':0x0,'highIdx':0x1};})());let _0x2ed444=![],_0x4aff02;try{_0x4aff02=new TextEncoder();}catch(_0xa7de3c){}function _0x540310(_0xb1e9ae,_0x41396f,_0x4b19fb,_0x5069f9){const _0x5e5e97=_0x541d10;let _0x3d8021=_0x41396f['dataView'];if(!_0x3d8021)_0x3d8021=_0x41396f[_0x5e5e97(0x333)]=new DataView(_0x41396f[_0x5e5e97(0x307)],_0x41396f[_0x5e5e97(0x8be)],_0x41396f['byteLength']+0x3>>0x2<<0x2);switch(typeof _0xb1e9ae){case _0x5e5e97(0x78e):let _0x5b5c56=_0xb1e9ae[_0x5e5e97(0x29a)],_0x5cd866=_0xb1e9ae[_0x5e5e97(0x454)](0x0);if(!(_0x5cd866>=0x1c))_0x41396f[_0x4b19fb++]=0x1b;if(_0x5b5c56<0x40){let _0xc93fc5,_0x273ce1;for(_0xc93fc5=0x0;_0xc93fc5<_0x5b5c56;_0xc93fc5++){_0x5cd866=_0xb1e9ae['charCodeAt'](_0xc93fc5);if(_0x5cd866<=0x4)_0x41396f[_0x4b19fb++]=0x4,_0x41396f[_0x4b19fb++]=_0x5cd866;else{if(_0x5cd866<0x80)_0x41396f[_0x4b19fb++]=_0x5cd866;else{if(_0x5cd866<0x800)_0x41396f[_0x4b19fb++]=_0x5cd866>>0x6|0xc0,_0x41396f[_0x4b19fb++]=_0x5cd866&0x3f|0x80;else(_0x5cd866&0xfc00)===0xd800&&((_0x273ce1=_0xb1e9ae[_0x5e5e97(0x454)](_0xc93fc5+0x1))&0xfc00)===0xdc00?(_0x5cd866=0x10000+((_0x5cd866&0x3ff)<<0xa)+(_0x273ce1&0x3ff),_0xc93fc5++,_0x41396f[_0x4b19fb++]=_0x5cd866>>0x12|0xf0,_0x41396f[_0x4b19fb++]=_0x5cd866>>0xc&0x3f|0x80,_0x41396f[_0x4b19fb++]=_0x5cd866>>0x6&0x3f|0x80,_0x41396f[_0x4b19fb++]=_0x5cd866&0x3f|0x80):(_0x41396f[_0x4b19fb++]=_0x5cd866>>0xc|0xe0,_0x41396f[_0x4b19fb++]=_0x5cd866>>0x6&0x3f|0x80,_0x41396f[_0x4b19fb++]=_0x5cd866&0x3f|0x80);}}}}else{if(_0x41396f[_0x5e5e97(0x681)])_0x4b19fb+=_0x41396f[_0x5e5e97(0x681)](_0xb1e9ae,_0x4b19fb,_0x41396f['byteLength']-_0x4b19fb);else _0x4b19fb+=_0x4aff02[_0x5e5e97(0x2d8)](_0xb1e9ae,_0x41396f['subarray'](_0x4b19fb))[_0x5e5e97(0x557)];if(_0x4b19fb>_0x41396f[_0x5e5e97(0x29a)]-0x4)throw new RangeError(_0x5e5e97(0x710));}break;case _0x5e5e97(0x79a):_0x469aed[0x0]=_0xb1e9ae;let _0x502a2f=_0x3d118d[_0x586d35],_0x161763=_0x3d118d[_0x479fb5],_0xac5293;if(_0xb1e9ae<0x0)return _0x3d8021['setInt32'](_0x4b19fb+0x4,~(_0x502a2f>>>0x4|_0x161763<<0x1c)),_0x3d8021['setInt32'](_0x4b19fb+0x0,(_0x161763^0x7fffffff)>>>0x4),_0x3d8021['setInt32'](_0x4b19fb+0x8,(_0x502a2f&0xf^0xf)<<0x4,!![]),_0x4b19fb+0x9;else{if(_0x502a2f&0xf||_0x5069f9)_0xac5293=0x9;else{if(_0x502a2f&0xfffff)_0xac5293=0x8;else{if(_0x502a2f||_0x161763&0xf)_0xac5293=0x6;else _0xac5293=0x4;}}}_0x3d8021[_0x5e5e97(0x3b0)](_0x4b19fb+0x0,_0x161763>>>0x4|0x10000000),_0x3d8021[_0x5e5e97(0x3b0)](_0x4b19fb+0x4,_0x502a2f>>>0x4|_0x161763<<0x1c),_0x3d8021[_0x5e5e97(0x3b0)](_0x4b19fb+0x8,(_0x502a2f&0xf)<<0x4,!![]);return _0x4b19fb+_0xac5293;case'object':if(_0xb1e9ae){if(Array[_0x5e5e97(0x7c8)](_0xb1e9ae)){for(let _0x1852a7=0x0,_0x2b7b13=_0xb1e9ae[_0x5e5e97(0x29a)];_0x1852a7<_0x2b7b13;_0x1852a7++){if(_0x1852a7>0x0)_0x41396f[_0x4b19fb++]=0x0;_0x4b19fb=_0x540310(_0xb1e9ae[_0x1852a7],_0x41396f,_0x4b19fb,!![]);}break;}else{if(_0xb1e9ae instanceof Uint8Array){_0x41396f[_0x5e5e97(0x534)](_0xb1e9ae,_0x4b19fb),_0x4b19fb+=_0xb1e9ae[_0x5e5e97(0x29a)];break;}else throw new Error(_0x5e5e97(0x4dd)+JSON[_0x5e5e97(0x427)](_0xb1e9ae));}}else _0x41396f[_0x4b19fb++]=0x0;break;case _0x5e5e97(0x72a):_0x3d8021[_0x5e5e97(0x287)](_0x4b19fb++,_0xb1e9ae?0x7:0x6,!![]);return _0x4b19fb;case _0x5e5e97(0x363):let _0x5f2472=Number(_0xb1e9ae);if(BigInt(_0x5f2472)>_0xb1e9ae){_0x469aed[0x0]=_0x5f2472;if(_0x5f2472>0x0){if(_0x3d118d[_0x586d35])_0x3d118d[_0x586d35]--;else _0x3d118d[_0x479fb5]--,_0x3d118d[_0x586d35]=0xffffffff;}else{if(_0x3d118d[_0x586d35]<0xffffffff)_0x3d118d[_0x586d35]++;else _0x3d118d[_0x479fb5]++,_0x3d118d[_0x586d35]=0x0;}_0x5f2472=_0x469aed[0x0];}let _0x505b26=_0xb1e9ae-BigInt(_0x5f2472);if(_0x505b26===0x0n)return _0x540310(_0x5f2472,_0x41396f,_0x4b19fb,_0x5069f9);_0x540310(_0x5f2472,_0x41396f,_0x4b19fb,_0x5069f9),_0x4b19fb+=0x9;let _0x145ce7=BigInt((_0x3d118d[_0x479fb5]>>0x14&0x7ff)-0x437),_0x2da4f7=_0x505b26>>_0x145ce7;_0x41396f[_0x4b19fb-0x1]|=Number(_0x2da4f7),_0x505b26-=_0x2da4f7<<_0x145ce7;let _0x3ae55f=!![];while(_0x505b26||_0x3ae55f){_0x3ae55f=![],_0x145ce7-=0x7n;let _0x376818=_0x505b26>>_0x145ce7;_0x41396f[_0x4b19fb++]=Number(_0x376818)|0x80,_0x505b26-=_0x376818<<_0x145ce7;}return _0x4b19fb;case _0x5e5e97(0x7b8):return _0x4b19fb;case _0x5e5e97(0x3c4):_0x41396f[_0x4b19fb++]=0x2;return _0x540310(_0xb1e9ae['description'],_0x41396f,_0x4b19fb,_0x5069f9);default:throw new Error(_0x5e5e97(0x431)+typeof _0xb1e9ae);}if(_0x2ed444&&!_0x5069f9)_0x3d8021['setUint32'](_0x4b19fb,0x0);return _0x4b19fb;}let _0x9ef931;function _0x46ba34(_0xad2e79,_0x18a280,_0x1c9fd3,_0x3909dc){const _0x2116b6=_0x541d10;_0x9ef931=_0x18a280;let _0x176da8=_0xad2e79[_0x9ef931],_0x23a5cf;if(_0x176da8<0x18){if(_0x176da8<0x8){_0x9ef931++;if(_0x176da8==0x6)_0x23a5cf=![];else{if(_0x176da8==0x7)_0x23a5cf=!![];else{if(_0x176da8==0x0)_0x23a5cf=null;else{if(_0x176da8==0x2)_0x23a5cf=Symbol[_0x2116b6(0x503)](_0x1658e0(_0xad2e79,_0x1c9fd3));else return Uint8Array[_0x2116b6(0x4ca)][_0x2116b6(0x231)][_0x2116b6(0x3ce)](_0xad2e79,_0x18a280,_0x1c9fd3);}}}}else{let _0x2c78a9;try{_0x2c78a9=_0xad2e79[_0x2116b6(0x333)]||(_0xad2e79[_0x2116b6(0x333)]=new DataView(_0xad2e79['buffer'],_0xad2e79[_0x2116b6(0x8be)],_0xad2e79[_0x2116b6(0x621)]+0x3>>0x2<<0x2));}catch(_0x562771){_0x2c78a9=_0xad2e79['dataView']||(_0xad2e79[_0x2116b6(0x333)]=new DataView(_0xad2e79[_0x2116b6(0x307)],_0xad2e79[_0x2116b6(0x8be)],_0xad2e79[_0x2116b6(0x307)][_0x2116b6(0x621)]-_0xad2e79['byteOffset']));}let _0x58734d=_0x2c78a9[_0x2116b6(0x1c5)](_0x9ef931)<<0x4,_0x54e67b=_0x1c9fd3-_0x9ef931,_0x3cd4e9;if(_0x54e67b>0x4)_0x3cd4e9=_0x9ef931+0x8<=_0xad2e79['length']?_0x2c78a9['getInt32'](_0x9ef931+0x4):_0xad2e79[_0x9ef931+0x4]<<0x18|_0xad2e79[_0x9ef931+0x5]<<0x10|_0xad2e79[_0x9ef931+0x6]<<0x8|_0xad2e79[_0x9ef931+0x7],_0x58734d|=_0x3cd4e9>>>0x1c,_0x54e67b<=0x6&&(_0x3cd4e9&=-0x10000),_0x3cd4e9=_0x3cd4e9<<0x4,_0x54e67b>0x8&&(_0x3cd4e9=_0x3cd4e9|_0xad2e79[_0x9ef931+0x8]>>0x4);else _0x3cd4e9=0x0;_0x176da8<0x10&&(_0x58734d=_0x58734d^0x7fffffff,_0x3cd4e9=~_0x3cd4e9);_0x3d118d[_0x479fb5]=_0x58734d,_0x3d118d[_0x586d35]=_0x3cd4e9,_0x23a5cf=_0x469aed[0x0],_0x9ef931+=0x9;if(_0x54e67b>0x9&&_0xad2e79[_0x9ef931]>0x0){_0x23a5cf=BigInt(_0x23a5cf);let _0x1ccf18=_0x58734d>>0x14&0x7ff,_0x4927c6=_0xad2e79[_0x9ef931-0x1]&0xf;_0x23a5cf+=BigInt(_0x4927c6)<<BigInt(_0x1ccf18-0x437);while((_0x4927c6=_0xad2e79[_0x9ef931])>0x0&&_0x9ef931++<_0x1c9fd3){_0x23a5cf+=BigInt(_0x4927c6&0x7f)<<BigInt((_0x18a280-_0x9ef931)*0x7+_0x1ccf18-0x3f8);}}}}else{_0x176da8==0x1b&&_0x9ef931++;_0x23a5cf=_0x1658e0(_0xad2e79,_0x1c9fd3);if(_0x9ef931<_0x1c9fd3)_0x9ef931--;}while(_0x9ef931<_0x1c9fd3){if(_0xad2e79[_0x9ef931]===0x0)_0x9ef931++;if(_0x3909dc)return _0xbf0b1[_0x2116b6(0x785)]=_0x9ef931,_0x23a5cf;let _0x4b894d=_0x46ba34(_0xad2e79,_0x9ef931,_0x1c9fd3,!![]);if(_0x23a5cf instanceof Array)_0x23a5cf[_0x2116b6(0x373)](_0x4b894d);else _0x23a5cf=[_0x23a5cf,_0x4b894d];}return _0x23a5cf;}const _0x5a4e42=()=>_0x2ed444=!![],_0xbf0b1={'writeKey':_0x540310,'readKey':_0x46ba34,'enableNullTermination':_0x5a4e42};let _0x1cb9f5=[],_0x5a6ca1=0x0;const _0x399d4a=typeof Buffer!==_0x541d10(0x7b8),_0xbd2ec6=_0x399d4a?Buffer[_0x541d10(0x4c7)]:Uint8Array,_0x1948fe=_0x3030d7=>{const _0x395855=_0x541d10;let _0x15514a;_0x5a6ca1+0x64>_0x1cb9f5[_0x395855(0x29a)]&&(_0x1cb9f5=new _0xbd2ec6(0x2000),_0x5a6ca1=0x0,_0x15514a=!![]);try{let _0x40f3ed=_0x1cb9f5['slice'](_0x5a6ca1,_0x5a6ca1=_0x540310(_0x3030d7,_0x1cb9f5,_0x5a6ca1));if(_0x5a6ca1>_0x1cb9f5['length']){if(_0x15514a)throw new Error('Key\x20is\x20too\x20large');return _0x1948fe(_0x3030d7);}return _0x40f3ed;}catch(_0x36f8f3){if(_0x15514a)throw _0x36f8f3;return _0x5a6ca1=_0x1cb9f5[_0x395855(0x29a)],_0x1948fe(_0x3030d7);}},_0xf9c61c=_0x5ddae1=>{return _0x46ba34(_0x5ddae1,0x0,_0x5ddae1['length']);},_0x155a00=String[_0x541d10(0x552)];function _0x249fc6(){const _0x547c66=_0x541d10;let _0x34f804=_0x547c66(0x6f9),_0x171ff2=[];for(let _0xa78418=0x0;_0xa78418<0x30;_0xa78418++){let _0x364de8=_0x155a00((_0xa78418&0xf)+0x61)+_0x155a00((_0xa78418>>0x4)+0x61);_0x34f804+=_0x547c66(0x3c2)+_0x364de8+_0x547c66(0x6e1)+_0x364de8+_0x547c66(0x642)+_0x364de8+'\x20>=\x200x80)\x20'+_0x364de8+_0x547c66(0x444)+_0x364de8+_0x547c66(0x6d5)+_0x364de8+_0x547c66(0x43e)+_0x364de8+_0x547c66(0x655)+_0x171ff2+_0x547c66(0x502),_0x171ff2[_0x547c66(0x373)](_0x364de8);}return _0x34f804+=_0x547c66(0x43d)+_0x171ff2+_0x547c66(0x69a),_0x34f804;}const _0x1bfba5=typeof process!==_0x541d10(0x7b8)&&process[_0x541d10(0x40f)]?function(_0x2a64ee){let {setPosition:_0x4b7fb6,getPosition:_0x5f5212,readString:_0x17bad4}=_0x2a64ee;return _0x143c57=>{_0x4b7fb6(_0x9ef931);let _0xe0e3a2=_0x17bad4(_0x143c57);return _0x9ef931=_0x5f5212(),_0xe0e3a2;};}(new Function(_0x541d10(0x552),_0x541d10(0x801)+_0x249fc6()+_0x541d10(0x23c)+_0x541d10(0x401)+_0x541d10(0x5d7)+_0x541d10(0x5ba))(_0x155a00)):eval(_0x249fc6());function _0x1658e0(_0x34be3f,_0x2ff137){if(_0x34be3f[_0x2ff137]>0x0){let _0x1ee978=_0x34be3f[_0x2ff137];try{return _0x34be3f[_0x2ff137]=0x0,_0x1bfba5(_0x34be3f);}finally{_0x34be3f[_0x2ff137]=_0x1ee978;}}else return _0x1bfba5(_0x34be3f);}function _0x12b9a1(_0x3d3e5b,_0x517a9b){const _0x148e5f=_0x541d10;if(typeof _0x3d3e5b==_0x148e5f(0x2bf)){if(!_0x3d3e5b)return _0x517a9b==null?0x0:-0x1;if(_0x3d3e5b['compare']){if(_0x517a9b==null)return 0x1;else return _0x517a9b['compare']?_0x3d3e5b[_0x148e5f(0x7df)](_0x517a9b):-0x1;}let _0x22689a;if(_0x517a9b instanceof Array){let _0x4474a2=0x0;while((_0x22689a=_0x12b9a1(_0x3d3e5b[_0x4474a2],_0x517a9b[_0x4474a2]))==0x0&&_0x4474a2<=_0x3d3e5b['length']){_0x4474a2++;}return _0x22689a;}_0x22689a=_0x12b9a1(_0x3d3e5b[0x0],_0x517a9b);if(_0x22689a==0x0&&_0x3d3e5b[_0x148e5f(0x29a)]>0x1)return 0x1;return _0x22689a;}else{if(typeof _0x3d3e5b==typeof _0x517a9b)return typeof _0x3d3e5b===_0x148e5f(0x3c4)&&(_0x3d3e5b=Symbol[_0x148e5f(0x483)](_0x3d3e5b),_0x517a9b=Symbol[_0x148e5f(0x483)](_0x517a9b)),_0x3d3e5b<_0x517a9b?-0x1:_0x3d3e5b===_0x517a9b?0x0:0x1;else{if(typeof _0x517a9b==_0x148e5f(0x2bf)){if(_0x517a9b instanceof Array)return-_0x12b9a1(_0x517a9b,_0x3d3e5b);return 0x1;}else return _0x37c362[typeof _0x3d3e5b]<_0x37c362[typeof _0x517a9b]?-0x1:0x1;}}}const _0x37c362={'symbol':0x0,'undefined':0x1,'boolean':0x2,'number':0x3,'string':0x4},_0x59c901=null,_0x2a8ef4=new Uint8Array([0xff]);return dist[_0x541d10(0x5bc)]=_0x2a8ef4,dist[_0x541d10(0x32a)]=_0x59c901,dist[_0x541d10(0x880)]=_0x12b9a1,dist[_0x541d10(0x3d7)]=_0x5a4e42,dist[_0x541d10(0x4cc)]=_0xbf0b1,dist[_0x541d10(0x5c9)]=_0xf9c61c,dist[_0x541d10(0x2d5)]=_0x46ba34,dist[_0x541d10(0x29d)]=_0x1948fe,dist[_0x541d10(0x716)]=_0x540310,dist;}var keyenc,hasRequiredKeyenc;function requireKeyenc(){const _0x1388ee=_0x7f204b;if(hasRequiredKeyenc)return keyenc;hasRequiredKeyenc=0x1;const {writeKey:_0x71fddb}=requireDist(),_0x3fd0f6=0x7ba,_0x5cfc77=0x1000;function _0x4f6614(_0x454e16,_0xaf06da){const _0x133c5a=_0x20a5;switch(typeof _0x454e16){case _0x133c5a(0x78e):return _0x454e16[_0x133c5a(0x29a)]<=_0x3fd0f6&&_0x454e16[_0x133c5a(0x6bd)]();case _0x133c5a(0x79a):case'boolean':return!![];case'object':if(_0x454e16===null)return!![];if(Array['isArray'](_0x454e16)){if(_0xaf06da>0x8||_0x454e16[_0x133c5a(0x29a)]>_0x3fd0f6)return![];for(let _0x5685ff=0x0;_0x5685ff<_0x454e16[_0x133c5a(0x29a)];_0x5685ff++)if(!_0x4f6614(_0x454e16[_0x5685ff],_0xaf06da+0x1))return![];return!![];}return Buffer[_0x133c5a(0x2e0)](_0x454e16)&&_0x454e16[_0x133c5a(0x29a)]<=_0x3fd0f6;default:return![];}}function _0x59e321(_0x50b7d6,_0xf273cd){const _0x378302=_0x20a5,_0x271ac2=typeof _0x50b7d6;if(_0x271ac2===_0x378302(0x78e)){if(_0x50b7d6[_0x378302(0x29a)]>=0x40||!_0x50b7d6[_0x378302(0x6bd)]()){if(!_0x4f6614(_0x50b7d6,0x0))return-0x1;}}else{if(_0x271ac2!==_0x378302(0x79a)){if(Array[_0x378302(0x7c8)](_0x50b7d6)?_0x50b7d6[_0x378302(0x29a)]===0x0||!_0x4f6614(_0x50b7d6,0x0):!_0x4f6614(_0x50b7d6,0x0))return-0x1;}}let _0xd8a19c;try{_0xd8a19c=_0x71fddb(_0x50b7d6,_0xf273cd,0x0);}catch{return-0x1;}return _0xd8a19c>0x0&&_0xd8a19c<=_0x3fd0f6?_0xd8a19c:-0x1;}return keyenc={'encodeKey':_0x59e321,'KEY_BUF_SIZE':_0x5cfc77,'NO_FAST':Symbol(_0x1388ee(0x7ff))},keyenc;}var okdbHlc,hasRequiredOkdbHlc;function requireOkdbHlc(){const _0x5d6c61=_0x7f204b;if(hasRequiredOkdbHlc)return okdbHlc;hasRequiredOkdbHlc=0x1;const _0x18cf19=0x400,_0x2a3f92=_0x18cf19-0x1,_0x39cbf3=0xea60;function _0x55a3a1(_0x4a8b0b,_0x144a74){const _0x106684=_0x20a5;return _0x4a8b0b*_0x18cf19+Math[_0x106684(0x68a)](0x0,Math[_0x106684(0x415)](_0x144a74,_0x2a3f92));}function _0x16eb31(_0x596c1e){const _0x48eb45=_0x20a5,_0x23d458=Math[_0x48eb45(0x68a)](0x0,Number(_0x596c1e)||0x0),_0xf01232=_0x23d458%_0x18cf19,_0x520018=(_0x23d458-_0xf01232)/_0x18cf19;return{'pt':_0x520018,'l':_0xf01232};}function _0x36de08(_0x3132ba,_0x36fb84=Date[_0x5d6c61(0x200)]()){const _0x4c2436=_0x5d6c61,{pt:_0x339b6c,l:_0x3a3f68}=_0x16eb31(_0x3132ba),_0x591096=Math['max'](_0x339b6c,_0x36fb84),_0x42f648=_0x591096===_0x339b6c?Math[_0x4c2436(0x415)](_0x3a3f68+0x1,_0x2a3f92):0x0;return _0x55a3a1(_0x591096,_0x42f648);}function _0x31943e(_0x2b85f1,_0x166892,_0x53789d=Date[_0x5d6c61(0x200)]()){const _0x18188e=_0x5d6c61,{pt:_0x40c25a,l:_0x8e03b1}=_0x16eb31(_0x2b85f1),{pt:_0x19bd50,l:_0x57aa72}=_0x16eb31(_0x166892),_0x4a76d7=Math[_0x18188e(0x68a)](_0x40c25a,_0x19bd50,_0x53789d);let _0x393642;if(_0x4a76d7===_0x40c25a&&_0x4a76d7===_0x19bd50)_0x393642=Math[_0x18188e(0x415)](Math['max'](_0x8e03b1,_0x57aa72)+0x1,_0x2a3f92);else{if(_0x4a76d7===_0x40c25a)_0x393642=Math[_0x18188e(0x415)](_0x8e03b1+0x1,_0x2a3f92);else _0x4a76d7===_0x19bd50?_0x393642=Math['min'](_0x57aa72+0x1,_0x2a3f92):_0x393642=0x0;}return _0x55a3a1(_0x4a76d7,_0x393642);}function _0xcdd822(_0x40fde8,_0x212e76){const _0x4b072e=Number(_0x40fde8)||0x0,_0xcc2503=Number(_0x212e76)||0x0;if(_0x4b072e<_0xcc2503)return-0x1;if(_0x4b072e>_0xcc2503)return 0x1;return 0x0;}function _0x3888a3(_0x44cc2c){return _0x16eb31(_0x44cc2c)['pt'];}return okdbHlc={'send':_0x36de08,'recv':_0x31943e,'compare':_0xcdd822,'toMs':_0x3888a3,'encode':_0x55a3a1,'decode':_0x16eb31,'SCALE':_0x18cf19,'L_MAX':_0x2a3f92,'DRIFT_MAX':_0x39cbf3},okdbHlc;}var env,hasRequiredEnv;function requireEnv(){const _0x308f09=_0x7f204b;if(hasRequiredEnv)return env;hasRequiredEnv=0x1;const {fromArray:_0x14b1fa,chunkedRange:_0x55fc69,pinnedChunks:_0x49e5ef,claimPrefetch:_0x5efbc3}=requireIterable(),{reclass:_0x470c2f,NotImplementedNative:_0x136933,OKDBError:_0x125455,optionsArg:_0x25dced}=requireErrors(),{OKDBViews:_0x13b6b0}=requireViews(),{OKDBQueue:_0x5364ff}=requireQueue(),{OKDBTimeMachine:_0x259327}=requireTimemachine(),_0x1d03f3=_0x5e3cf4=>{const _0x37e329=_0x20a5;try{return!_0x5e3cf4[_0x37e329(0x715)]||_0x5e3cf4[_0x37e329(0x715)]['isFeatureEnabled'](_0x37e329(0x408));}catch{return!![];}},{OKDBFiles:_0x9ca496}=requireFiles(),{OKDBEngines:_0x5475c1,OKDBPipelines:_0x1bfb2c}=requireEngines(),{OKDBFunctions:_0x3987ee}=requireFunctions(),_0x5df3f0=requireProcessor(),{RawDb:_0x9ceaf3}=requireRawdb(),_0x90963=requireBridge();let _0x392e4f=null;const _0x145b33=()=>_0x392e4f||=requireOkdbTransaction(),_0x301c75=(..._0x43a4e6)=>requireOkdbGuardedRange()['guardSnapshotIterable'](..._0x43a4e6),_0x26d3ee=Buffer[_0x308f09(0x52e)]([0xff]),_0x794d3f=process.env.OKDB_NATIVE_RAW_READS!=='0',_0x344693=_0x794d3f&&process.env.OKDB_NATIVE_FAST_GET!=='0',{NO_FAST:_0x3ba29c}=requireKeyenc(),_0x5ab3ad=new Set(_0x794d3f?[_0x308f09(0x697),_0x308f09(0x846),_0x308f09(0x5ee),_0x308f09(0x876),_0x308f09(0x755)]:[]),_0x2ecb37=new Set(['get',_0x308f09(0x30e),'getMany','getRange',_0x308f09(0x755),_0x308f09(0x579),'getCount','getByPrefix',_0x308f09(0x792),'byIndex',_0x308f09(0x211),'query',_0x308f09(0x83a),_0x308f09(0x628),_0x308f09(0x599),_0x308f09(0x876),_0x308f09(0x5f8),_0x308f09(0x200),_0x308f09(0x705),_0x308f09(0x8b8),'hasIndex',_0x308f09(0x2dc),_0x308f09(0x2a1),_0x308f09(0x489),_0x308f09(0x3a9),_0x308f09(0x3ea),_0x308f09(0x65c),_0x308f09(0x39b),_0x308f09(0x354),_0x308f09(0x6c3),_0x308f09(0x87d),_0x308f09(0x2e8),_0x308f09(0x805),_0x308f09(0x88e),'listTTL',_0x308f09(0x731),_0x308f09(0x59a),_0x308f09(0x5d4),'path','id',_0x308f09(0x637),_0x308f09(0x26f),_0x308f09(0x29f),_0x308f09(0x31a),'readFieldMany']),_0x58baf0=new Set([_0x308f09(0x449),_0x308f09(0x5ea),'reverse',_0x308f09(0x55c),_0x308f09(0x7f1),'inclusiveEnd',_0x308f09(0x223),_0x308f09(0x5bb),_0x308f09(0x772),'snapshot',_0x308f09(0x7ba),'key',_0x308f09(0x22b),_0x308f09(0x1f6)]);function _0x3efa2b(_0x5b9292,_0x2ef1a4,_0x321359){const _0x587222=new Map();return(_0x228c7f,_0x49c1b4)=>{const _0x2d49bc=_0x20a5,_0x55029c=JSON[_0x2d49bc(0x427)](_0x49c1b4),_0x2c55ef=_0x587222[_0x2d49bc(0x7f0)](_0x55029c);if(_0x2c55ef){if(_0x2c55ef['state']==='pending')throw _0x4ea790();_0x587222[_0x2d49bc(0x36f)](_0x55029c);if(_0x2c55ef['state']===_0x2d49bc(0x4f6))throw _0x2c55ef[_0x2d49bc(0x3a5)];return _0x2c55ef[_0x2d49bc(0x3a5)];}const _0xa2c2a=_0x228c7f(..._0x49c1b4);if(!_0xa2c2a||typeof _0xa2c2a[_0x2d49bc(0x315)]!=='function')return _0xa2c2a;const _0x130209={'state':_0x2d49bc(0x773),'value':undefined},_0x431628=(_0x14032a,_0x269e5e)=>{const _0x5ac09f=_0x2d49bc;_0x130209[_0x5ac09f(0x8ac)]=_0x14032a,_0x130209[_0x5ac09f(0x3a5)]=_0x269e5e;if(_0x587222['get'](_0x55029c)!==_0x130209)return;setTimeout(()=>_0x587222[_0x5ac09f(0x7f0)](_0x55029c)===_0x130209&&_0x587222[_0x5ac09f(0x36f)](_0x55029c),0x7530)[_0x5ac09f(0x48c)]();try{_0x5b9292[_0x5ac09f(0x44b)]['_call'](_0x5ac09f(0x511),null,'emit',[_0x5ac09f(0x3cc),{'env':_0x5b9292['name'],'type':_0x2ef1a4,'field':_0x321359}],!![]);}catch{}};_0xa2c2a[_0x2d49bc(0x315)](_0x5e42f7=>_0x431628('ok',_0x5e42f7),_0x225b1e=>_0x431628('err',_0x225b1e));for(let _0xe26af6=0x0;_0xe26af6<0x64&&_0x130209['state']===_0x2d49bc(0x773);_0xe26af6++)process['_tickCallback']();if(_0x130209[_0x2d49bc(0x8ac)]==='ok')return _0x130209['value'];if(_0x130209['state']===_0x2d49bc(0x4f6))throw _0x130209[_0x2d49bc(0x3a5)];_0x587222[_0x2d49bc(0x534)](_0x55029c,_0x130209);throw _0x4ea790();};}function _0x4ea790(){const _0x16b79=_0x308f09;return Object[_0x16b79(0x3be)](new Error(_0x16b79(0x6da)),{'code':_0x16b79(0x495)});}class _0xad03cb{constructor(_0x59ab70,_0x1f75f3){const _0x5e6e0a=_0x308f09;this[_0x5e6e0a(0x44b)]=_0x59ab70,this[_0x5e6e0a(0x5d4)]=_0x1f75f3,this[_0x5e6e0a(0x511)]=_0x59ab70[_0x5e6e0a(0x511)],this[_0x5e6e0a(0x6ae)]=_0x59ab70[_0x5e6e0a(0x6ae)],this['_isOpen']=!![],this['_txnBuf']=null,this[_0x5e6e0a(0x234)]=new _0x13b6b0(this),this[_0x5e6e0a(0x68d)]=new _0x5df3f0(this);if(!_0x1f75f3[_0x5e6e0a(0x8b0)]('~')||_0x1f75f3[_0x5e6e0a(0x3b9)](':emb:'))this[_0x5e6e0a(0x493)]=new _0x5364ff(this);if(!_0x1f75f3[_0x5e6e0a(0x8b0)]('~'))this[_0x5e6e0a(0x277)]=new _0x9ca496(this);this[_0x5e6e0a(0x243)]=new _0x3987ee(_0x59ab70,_0x1f75f3),this[_0x5e6e0a(0x3e1)]=new _0x5475c1(_0x59ab70,_0x1f75f3,_0x59ab70['engines']),this[_0x5e6e0a(0x390)]=new _0x1bfb2c(_0x59ab70,_0x1f75f3);if(!_0x1f75f3[_0x5e6e0a(0x8b0)]('~')&&_0x59ab70[_0x5e6e0a(0x51a)]['timeMachine']&&_0x1d03f3(_0x59ab70))this[_0x5e6e0a(0x408)]=new _0x259327(this);_0x90963[_0x5e6e0a(0x4cb)](this[_0x5e6e0a(0x4b0)],this);const _0xc7af82=this;this[_0x5e6e0a(0x1d9)]={async 'transaction'(_0x464ff3){const _0xe0e3a3=_0x5e6e0a,_0x2f5c9c=[];_0xc7af82['_txnBuf']=_0x2f5c9c;try{_0x464ff3();}finally{_0xc7af82[_0xe0e3a3(0x59f)]=null;}return _0xc7af82[_0xe0e3a3(0x44b)][_0xe0e3a3(0x20b)][_0xe0e3a3(0x648)]('env',_0xc7af82[_0xe0e3a3(0x5d4)],_0xe0e3a3(0x28c),[_0x2f5c9c]);},'drain'(){const _0x1ba4ad=_0x5e6e0a;return _0xc7af82[_0x1ba4ad(0x44b)][_0x1ba4ad(0x20b)][_0x1ba4ad(0x7cc)]();},'flushLmdb'(){const _0x4a3349=_0x5e6e0a;return _0xc7af82['okdb'][_0x4a3349(0x20b)][_0x4a3349(0x7cc)]();},'markClosed'(){}};const _0x1aaed9=new _0x9ceaf3(this,'');_0x1aaed9['getStats']=()=>({'lastTxnId':this['_n']('lastTxnId',[])}),Object[_0x5e6e0a(0x4d6)](_0x1aaed9,'committed',{'get':()=>this['okdb'][_0x5e6e0a(0x20b)][_0x5e6e0a(0x7cc)](),'configurable':!![]}),Object[_0x5e6e0a(0x4d6)](_0x1aaed9,_0x5e6e0a(0x533),{'get':()=>this[_0x5e6e0a(0x44b)][_0x5e6e0a(0x20b)][_0x5e6e0a(0x7cc)](),'configurable':!![]});const _0x5e484d=_0x1aaed9[_0x5e6e0a(0x7f0)]['bind'](_0x1aaed9);_0x1aaed9[_0x5e6e0a(0x7f0)]=_0x13a631=>_0x13a631===_0x5e6e0a(0x338)?this['_n'](_0x5e6e0a(0x599),[null]):_0x5e484d(_0x13a631),this['db']=_0x1aaed9;}async['close'](){const _0x55bab0=_0x308f09;this[_0x55bab0(0x8a5)]=!![];}get[_0x308f09(0x48e)](){const _0x145c28=_0x308f09;return new Map(this[_0x145c28(0x44b)][_0x145c28(0x5a6)]('db',null,_0x145c28(0x878),[this['name']],![]));}get['typesDb'](){const _0x2220bc=_0x308f09;return this[_0x2220bc(0x7d9)]||(this[_0x2220bc(0x7d9)]=new _0x9ceaf3(this,'types'));}['_getType'](_0x57b5c0){const _0x2837a2=_0x308f09,_0x366f37=this[_0x2837a2(0x8a0)][_0x2837a2(0x7f0)](_0x57b5c0);if(_0x366f37===undefined||String(_0x57b5c0)[_0x2837a2(0x8b0)](_0x2837a2(0x4e7))||String(_0x57b5c0)['startsWith'](_0x2837a2(0x53e))){const {OKDBError:_0x1fbcb3}=requireErrors();throw new _0x1fbcb3(_0x2837a2(0x42c)+_0x57b5c0+'\x22\x20is\x20not\x20registered','TYPE_NOT_REGISTERED',{'type':_0x57b5c0});}const _0x1665f9=this,_0x47f19b=new _0x9ceaf3(_0x1665f9,_0x2837a2(0x8a3)+_0x57b5c0+_0x2837a2(0x87b)),_0x27f323=new Map();for(const _0x109578 of _0x47f19b[_0x2837a2(0x755)]()){const _0x4d0677=_0x47f19b[_0x2837a2(0x7f0)](_0x109578)||{},_0xa4dec1={'parts':_0x109578[_0x2837a2(0x5f1)]('~'),'db':new _0x9ceaf3(_0x1665f9,_0x2837a2(0x8a3)+_0x57b5c0+_0x2837a2(0x232)+_0x109578,{'dupSort':!![]})};if(_0x4d0677[_0x2837a2(0x510)])_0xa4dec1[_0x2837a2(0x510)]=_0x4d0677[_0x2837a2(0x510)];if(_0x4d0677['unique'])_0xa4dec1[_0x2837a2(0x7a3)]=!![];if(_0x4d0677[_0x2837a2(0x36b)])_0xa4dec1[_0x2837a2(0x36b)]=!![];if(_0x4d0677[_0x2837a2(0x242)])_0xa4dec1[_0x2837a2(0x242)]=_0x4d0677[_0x2837a2(0x242)];_0xa4dec1['usedBy']=new Set((_0x4d0677[_0x2837a2(0x67a)]??[])[_0x2837a2(0x70b)](_0x3b6003=>_0x3b6003[_0x2837a2(0x806)]+':'+_0x3b6003[_0x2837a2(0x5d4)])),_0x27f323['set'](_0x109578,_0xa4dec1);}return{'root':new _0x9ceaf3(_0x1665f9,_0x2837a2(0x8a3)+_0x57b5c0),'data':new _0x9ceaf3(_0x1665f9,'type:'+_0x57b5c0+_0x2837a2(0x574),{'useVersions':!![]}),'indexes':_0x47f19b,'clockToChange':new _0x9ceaf3(_0x1665f9,_0x2837a2(0x8a3)+_0x57b5c0+_0x2837a2(0x869)),'keyToChange':new _0x9ceaf3(_0x1665f9,'type:'+_0x57b5c0+_0x2837a2(0x60e)),'fieldSchema':new Map(Object[_0x2837a2(0x488)](_0x366f37[_0x2837a2(0x1df)]||{})[_0x2837a2(0x70b)](([_0x50a75e,_0x128e55])=>[_0x50a75e,new Set(Array[_0x2837a2(0x7c8)](_0x128e55)?_0x128e55:[_0x128e55])])),'indexToDb':_0x27f323,'ftsToDb':null,'schema':_0x366f37[_0x2837a2(0x4a3)]||null,'defaultTTL':_0x366f37['defaultTTL']||null};}get[_0x308f09(0x634)](){const _0x36d967=_0x308f09,_0x3418e9=this,_0x4fa6d8=()=>_0x3418e9[_0x36d967(0x8b8)]();return{'get':_0x2df2ca=>{const _0x1c2fda=_0x36d967;try{return _0x3418e9[_0x1c2fda(0x3d1)](_0x2df2ca);}catch{return undefined;}},'has':_0x149051=>_0x4fa6d8()[_0x36d967(0x3b9)](_0x149051),'keys':()=>_0x4fa6d8()[Symbol[_0x36d967(0x38b)]](),get 'size'(){return _0x4fa6d8()['length'];}};}[_0x308f09(0x818)](){const _0x413081=_0x308f09;return this[_0x413081(0x8b8)]();}get[_0x308f09(0x88b)](){const _0x40bbd6=_0x308f09;return this[_0x40bbd6(0x789)]||(this[_0x40bbd6(0x789)]=new _0x9ceaf3(this,_0x40bbd6(0x75e)));}get[_0x308f09(0x203)](){const _0x4be1ac=_0x308f09;return this[_0x4be1ac(0x62a)]||(this['_clockToChangeDb']=new _0x9ceaf3(this,_0x4be1ac(0x74d)));}['_advanceHlcOnRecv'](_0x39b28b){const _0x180d30=_0x308f09;return this['_n'](_0x180d30(0x8ae),[_0x39b28b]);}get[_0x308f09(0x348)](){return!this['_n']('hasChangelog',[],![]);}get[_0x308f09(0x5b3)](){const _0x5e7351=_0x308f09;return this[_0x5e7351(0x65e)]!==undefined?this[_0x5e7351(0x65e)]:this['_n'](_0x5e7351(0x69c),[],![]);}set[_0x308f09(0x5b3)](_0x202563){const _0x35977e=_0x308f09;this[_0x35977e(0x65e)]=_0x202563;}get[_0x308f09(0x2df)](){const _0xafe8c6=_0x308f09;return this[_0xafe8c6(0x447)]||(this['_compactLock']=new(requireLock())[(_0xafe8c6(0x1ec))](this[_0xafe8c6(0x44b)],_0xafe8c6(0x870),_0xafe8c6(0x8bc),{'ttlMs':0xea60}));}get['path'](){const _0xd2c57d=_0x308f09;return this[_0xd2c57d(0x5df)]??(this[_0xd2c57d(0x5df)]=this['_n'](_0xd2c57d(0x4b0),[]));}get['id'](){return this['_n']('id',[]);}get[_0x308f09(0x42f)](){const _0x4e87e5=_0x308f09;return this[_0x4e87e5(0x44b)][_0x4e87e5(0x42f)];}['_n'](_0x1089cb,_0x3c00a4){const _0x165a26=_0x308f09;return this[_0x165a26(0x44b)][_0x165a26(0x5a6)](_0x165a26(0x27b),this[_0x165a26(0x5d4)],_0x1089cb,_0x3c00a4,!_0x2ecb37['has'](_0x1089cb));}['_wsettle'](_0x45ad1b){return this['okdb']['_settleWrite'](_0x45ad1b);}[_0x308f09(0x5cd)](_0x2ecdfe,_0x381344){const _0x19206f=_0x308f09;if(_0x5ab3ad[_0x19206f(0x3e6)](_0x2ecdfe===_0x19206f(0x489)?_0x381344[0x1]:_0x2ecdfe))return this[_0x19206f(0x44b)]['_callRows'](this['name'],_0x2ecdfe,_0x381344);return this[_0x19206f(0x44b)][_0x19206f(0x6a6)]('env',this[_0x19206f(0x5d4)],_0x2ecdfe,_0x381344);}[_0x308f09(0x7ba)](_0x34ac26={'useReadTransaction':![]}){return new(_0x145b33())(this,_0x34ac26);}async[_0x308f09(0x3e3)](_0x4769bc,_0x3166c3){const _0x455b46=_0x308f09;return _0x145b33()[_0x455b46(0x4d8)](this,_0x4769bc,_0x3166c3);}[_0x308f09(0x3f6)](_0x4ab868,_0x19f5db){const _0x3e4a8f=_0x308f09;if(this[_0x3e4a8f(0x59f)])this[_0x3e4a8f(0x59f)]['push']({'action':_0x4ab868,'args':_0x19f5db});else this['_n'](_0x4ab868,_0x19f5db);}[_0x308f09(0x4de)](_0x53866a,_0x9b588e,_0x48237e,_0x5e7d75,_0x1846c1){this['_low']('put',[_0x9b588e,_0x48237e,_0x5e7d75,_0x1846c1]);}[_0x308f09(0x6cc)](_0x3d6a4f,_0x245a03,_0x44dd2b,_0x5bb09a,_0x525544){const _0x526ebc=_0x308f09;this[_0x526ebc(0x3f6)](_0x526ebc(0x2b8),[_0x245a03,_0x44dd2b,_0x5bb09a,_0x525544]);}[_0x308f09(0x2d0)](_0x15b036,_0x5e1d11,_0x49f704,_0x44ed84,_0x2abbcf){const _0x2c1d31=_0x308f09;this[_0x2c1d31(0x3f6)]('patch',[_0x5e1d11,_0x49f704,_0x44ed84,_0x2abbcf]);}[_0x308f09(0x74f)](_0x170b7e,_0x236467,_0x28ae6f,_0x1ca25a,_0x267ac4){const _0x5837c9=_0x308f09;this[_0x5837c9(0x3f6)](_0x5837c9(0x3db),[_0x236467,_0x28ae6f,_0x1ca25a,_0x267ac4]);}[_0x308f09(0x326)](_0x368ee6,_0x20088f,_0x34191f,_0x3bd8c2){const _0x542d67=_0x308f09;this['_low'](_0x542d67(0x5ca),[_0x20088f,_0x34191f,_0x3bd8c2]);}[_0x308f09(0x5ef)](_0x28a70c,_0x5c2919,_0x2ca801,_0x11ccbe){const _0x39f7dc=_0x308f09;this[_0x39f7dc(0x3f6)](_0x39f7dc(0x41c),[_0x5c2919,_0x2ca801,_0x11ccbe]);}[_0x308f09(0x39c)](_0x1258d9,_0x5b6fa8,_0x162270){this['_low']('clearTTL',[_0x5b6fa8,_0x162270]);}['_w'](_0x3bbfd8,_0x5829b2){const _0x2bd500=_0x308f09;return this[_0x2bd500(0x44b)][_0x2bd500(0x20b)]['enqueue'](_0x2bd500(0x27b),this['name'],_0x3bbfd8,_0x5829b2);}['put'](_0x1f3817,_0x2e7432,_0x19a042,_0x2e0ef1={}){return this['_w']('put',[_0x1f3817,_0x2e7432,_0x19a042,_0x2e0ef1]);}[_0x308f09(0x2b8)](_0x39bb97,_0x495668,_0x5521bc,_0x396d64={}){return this['_w']('update',[_0x39bb97,_0x495668,_0x5521bc,_0x396d64]);}['patch'](_0x39d915,_0x1986aa,_0x10033e,_0x11213a={}){const _0x4292b1=_0x308f09;return this['_w'](_0x4292b1(0x7bb),[_0x39d915,_0x1986aa,_0x10033e,_0x11213a]);}['create'](_0x4890a9,_0x5832b5,_0x4f5f02,_0xd51525={}){const _0x346ef7=_0x308f09;return this['_w'](_0x346ef7(0x3db),[_0x4890a9,_0x5832b5,_0x4f5f02,_0xd51525]);}[_0x308f09(0x5ca)](_0x43009c,_0x591f07,_0x1d28d2={}){const _0x623406=_0x308f09;return this['_w'](_0x623406(0x5ca),[_0x43009c,_0x591f07,_0x1d28d2]);}['get'](_0x22dc84,_0x406f9c,_0x4b743d){const _0x3051d1=_0x308f09;if(_0x344693&&typeof _0x22dc84==='string'){const _0x32df6a=this[_0x3051d1(0x44b)]['_getFast'](this[_0x3051d1(0x5d4)],_0x22dc84,_0x406f9c);if(_0x32df6a!==_0x3ba29c)return _0x32df6a===null?this['_n'](_0x3051d1(0x7f0),[_0x22dc84,_0x406f9c]):_0x32df6a;}if(_0x794d3f&&(typeof _0x406f9c===_0x3051d1(0x78e)||typeof _0x406f9c===_0x3051d1(0x79a))){const _0x389ac2=this['okdb'][_0x3051d1(0x410)](this['name'],_0x22dc84,_0x406f9c);if(_0x389ac2!==null)return _0x389ac2;}return this['_n'](_0x3051d1(0x7f0),[_0x22dc84,typeof _0x406f9c==='symbol'?null:_0x406f9c]);}[_0x308f09(0x6c9)](_0x124fa5,_0x3cb338,_0x14d98d){const _0x574909=_0x308f09,_0x4a2a81=[_0x124fa5,Array[_0x574909(0x7c8)](_0x3cb338)&&_0x3cb338[_0x574909(0x7c3)](_0x12c527=>typeof _0x12c527===_0x574909(0x3c4))?_0x3cb338[_0x574909(0x70b)](_0x386828=>typeof _0x386828===_0x574909(0x3c4)?null:_0x386828):_0x3cb338];return _0x794d3f?this['okdb'][_0x574909(0x4b3)](this['name'],_0x574909(0x6c9),_0x4a2a81):this['_n'](_0x574909(0x6c9),_0x4a2a81);}[_0x308f09(0x30e)](_0x41e1b2,_0x7a5981,_0x394836){const _0x311338=_0x308f09;return this['_n'](_0x311338(0x30e),[_0x41e1b2,typeof _0x7a5981==='symbol'?null:_0x7a5981]);}[_0x308f09(0x3f2)](_0x4f5140,_0x5c067b){const _0x1473c5=_0x308f09;return this[_0x1473c5(0x1ef)](_0x1473c5(0x3f2),_0x5c067b),this['_n'](_0x1473c5(0x3f2),[_0x4f5140,_0x4382d5(_0x5c067b)]);}[_0x308f09(0x1ef)](_0x5d410b,_0xfa5e5b,_0x36e5a8=[]){const _0x3fc974=_0x308f09;if(!_0xfa5e5b||typeof _0xfa5e5b!==_0x3fc974(0x2bf))return;for(const _0x1d4938 of Object[_0x3fc974(0x62c)](_0xfa5e5b)){if(!_0x58baf0['has'](_0x1d4938)&&!_0x36e5a8[_0x3fc974(0x3b9)](_0x1d4938))throw new _0x125455(_0x5d410b+_0x3fc974(0x871)+_0x1d4938+'\x27',_0x3fc974(0x4b2),{'option':_0x1d4938});}}[_0x308f09(0x5cb)](_0x454419,_0x3ea560,_0x1ff979,_0xcbcaac,_0x3dd1d5,_0x19b370){const _0xe448f0=_0x308f09;this[_0xe448f0(0x1ef)](_0x454419,_0xcbcaac);const _0x166817=_0xcbcaac?.[_0xe448f0(0x6b3)],_0x1f31c5=_0x4382d5(_0xcbcaac);if(_0x166817===!![]||_0x166817===_0xe448f0(0x282)){const _0x33a88e=this[_0xe448f0(0x851)](_0x454419,_0x3ea560,_0x498604=>[_0x1ff979,{..._0x1f31c5,..._0x498604}],_0xcbcaac);return _0x19b370?_0x33a88e[_0xe448f0(0x70b)](_0x19b370):_0x33a88e;}const _0x266996=_0x55fc69(_0x2ae8f5=>this[_0xe448f0(0x5cd)](_0x3ea560,[_0x1ff979,_0x2ae8f5]),_0x1f31c5,_0x3dd1d5,{'rows':_0x3ea560==='getRange'});return _0x19b370?_0x266996[_0xe448f0(0x70b)](_0x19b370):_0x266996;}[_0x308f09(0x851)](_0x1f0fdb,_0x9c380e,_0x167d6e,_0x383e67,_0x12cf07,_0x1ffd74=![]){const _0x2bd029=_0x308f09,{source:_0x56ed2f,prefetch:_0x5324c5}=_0x49e5ef((_0x5ce928,_0x5e400e)=>_0x5ce928===_0x2bd029(0x3a9)?this['_n'](_0x5ce928,_0x5e400e):this[_0x2bd029(0x5cd)](_0x5ce928,_0x5e400e),_0x9c380e,_0x167d6e,_0x383e67||{},_0x12cf07),_0x35dcb1=_0x5324c5(),_0x1c24ed=!_0x1ffd74&&_0x383e67&&_0x383e67[_0x2bd029(0x6b3)]===_0x2bd029(0x282);let _0x312193=null;return _0x301c75(()=>({[Symbol['iterator']]:()=>_0x312193=_0x56ed2f(0x0,_0x5efbc3(_0x35dcb1))}),{'label':this[_0x2bd029(0x5d4)]+':'+_0x1f0fdb,..._0x1c24ed?{'getTxnId':()=>this['db'][_0x2bd029(0x79b)]()[_0x2bd029(0x637)],'resume':()=>({[Symbol['iterator']]:()=>_0x312193=_0x312193[_0x2bd029(0x7d3)]()})}:{}});}[_0x308f09(0x697)](_0xd59a34,_0x1a960c){const _0x2a542e=_0x308f09;return this['_range']('getRange',_0x2a542e(0x697),_0xd59a34,_0x1a960c,_0x27f2ac=>_0x27f2ac[_0x2a542e(0x3d3)]);}[_0x308f09(0x755)](_0x306a3d,_0x434f72){const _0xb741c4=_0x308f09;return this[_0xb741c4(0x5cb)](_0xb741c4(0x755),_0xb741c4(0x755),_0x306a3d,_0x434f72,_0x41e89b=>_0x41e89b);}[_0x308f09(0x579)](_0x29790b,_0xf16968){const _0x459401=_0x308f09;return this['_range'](_0x459401(0x579),_0x459401(0x697),_0x29790b,_0xf16968,_0x3fed53=>_0x3fed53[_0x459401(0x3d3)],_0x10b948=>_0x10b948[_0x459401(0x3a5)]);}['getByPrefix'](_0x57f585,_0x1aa6b8,_0x1635b9={}){return this['getRange'](_0x57f585,{'start':_0x1aa6b8,'end':_0x1aa6b8+'￿',..._0x1635b9});}['getIndex'](_0x3ecfb0,_0x436515,_0x3039c1={}){const _0x37becc=_0x308f09;this[_0x37becc(0x1ef)]('getIndex',_0x3039c1,[_0x37becc(0x1f6)]);const _0x250691=_0x4382d5(_0x3039c1);if(_0x3039c1&&_0x3039c1[_0x37becc(0x7ba)])return _0x14b1fa(this['_n'](_0x37becc(0x792),[_0x3ecfb0,_0x436515,_0x250691]));return this[_0x37becc(0x851)](_0x37becc(0x792),_0x37becc(0x792),_0x9390f3=>[_0x3ecfb0,_0x436515,{..._0x250691,..._0x9390f3}],_0x3039c1,undefined,!![]);}[_0x308f09(0x846)](_0x53c0f5,_0x1be581,_0x558d3c){const _0x2d7ddd=_0x308f09;this[_0x2d7ddd(0x1ef)]('byIndex',_0x558d3c,[_0x2d7ddd(0x1f6),_0x2d7ddd(0x330)]);const _0x455860=_0x4382d5(_0x558d3c);if(_0x558d3c&&_0x558d3c[_0x2d7ddd(0x7ba)])return _0x14b1fa(this['_n'](_0x2d7ddd(0x846),[_0x53c0f5,_0x1be581,_0x455860]));return this[_0x2d7ddd(0x851)]('byIndex',_0x2d7ddd(0x846),_0x3060fe=>[_0x53c0f5,_0x1be581,{..._0x455860,..._0x3060fe}],_0x558d3c,undefined,!![]);}[_0x308f09(0x211)](_0x6edec8,_0x298a28,_0x4a15d5={}){const _0x5a81ba=_0x308f09;return this['_n'](_0x5a81ba(0x211),[_0x6edec8,_0x298a28,_0x4382d5(_0x4a15d5)]);}[_0x308f09(0x5ee)](_0x316f20,_0x18b5e6={},_0x4e7e37={}){const _0x3d6de6=_0x308f09,_0x5dda89=_0x310ef9(_0x4e7e37);if(_0x4e7e37){for(const _0x1c1256 of Object[_0x3d6de6(0x62c)](_0x4e7e37))if(_0x1c1256!==_0x3d6de6(0x7a5)&&typeof _0x4e7e37[_0x1c1256]===_0x3d6de6(0x8a6))_0x5dda89[_0x1c1256]=null;}if(_0x4e7e37&&(_0x4e7e37[_0x3d6de6(0x682)]||_0x4e7e37[_0x3d6de6(0x207)]))return this['_n'](_0x3d6de6(0x83a),[_0x5dda89]),this[_0x3d6de6(0x462)](_0x316f20,_0x18b5e6,_0x4e7e37);const _0x200bf2=typeof _0x4e7e37[_0x3d6de6(0x7a5)]===_0x3d6de6(0x8a6)?_0x4e7e37[_0x3d6de6(0x7a5)]:null;if(_0x4e7e37[_0x3d6de6(0x837)]||_0xb20d99(_0x18b5e6)||_0x4e7e37[_0x3d6de6(0x7ba)]!==undefined){let _0x275c98=this['_n'](_0x3d6de6(0x5ee),[_0x316f20,_0x18b5e6,_0x5dda89]);if(_0x200bf2)_0x275c98=_0x275c98['map'](_0x200bf2);if(_0x4e7e37[_0x3d6de6(0x837)]||_0xb20d99(_0x18b5e6))return _0x275c98;return _0x14b1fa(_0x275c98);}const _0x21d4e5=_0x23e6a1=>typeof _0x23e6a1===_0x3d6de6(0x79a)&&Number[_0x3d6de6(0x3b1)](_0x23e6a1)?Math['max'](0x0,_0x23e6a1):Infinity;let _0x125ed2;if(_0x4e7e37[_0x3d6de6(0x46a)]){const _0x950418=_0x32d77a=>typeof _0x32d77a==='number'&&_0x32d77a>0x0?Math[_0x3d6de6(0x627)](_0x32d77a):0x0;_0x125ed2=this[_0x3d6de6(0x851)](_0x3d6de6(0x5ee),_0x3d6de6(0x5ee),_0x1a9f68=>[_0x316f20,_0x18b5e6,{..._0x5dda89,..._0x1a9f68}],null,{'limitOf':()=>_0x21d4e5(_0x5dda89[_0x3d6de6(0x55c)]),'offsetOf':()=>_0x950418(_0x5dda89['offset'])});}else _0x125ed2=_0x55fc69(_0x4aa152=>{const _0x34b73a=_0x3d6de6,{__after:_0x4cda0b,..._0x4f035d}=_0x4aa152;return this[_0x34b73a(0x5cd)](_0x34b73a(0x5ee),_0x4cda0b===undefined?[_0x316f20,_0x18b5e6,_0x4f035d]:[_0x316f20,_0x18b5e6,_0x4f035d,_0x4cda0b]);},_0x5dda89,_0x42a5b0=>_0x42a5b0[_0x3d6de6(0x3d3)],{'limitOf':_0x21d4e5,'rows':!![],'prefetch':!![],'resumeOpts':(_0x5af0ab,_0x59b9c0)=>{const _0x32d8e2=_0x3d6de6;_0x5af0ab[_0x32d8e2(0x7f1)]=0x0,_0x5af0ab['__after']=_0x59b9c0;}});return _0x200bf2?_0x125ed2[_0x3d6de6(0x70b)](_0x200bf2):_0x125ed2;}async[_0x308f09(0x462)](_0x2e2d64,_0x5756f3,_0x10ebc0){const _0x18a1d4=_0x308f09,{select:_0x2b1cef,..._0x3010ae}=_0x310ef9(_0x10ebc0);let _0x296fc6={..._0x3010ae};const _0x3871a3=_0x296fc6[_0x18a1d4(0x46a)];if(_0x3871a3&&!Array[_0x18a1d4(0x7c8)](_0x3871a3)&&typeof _0x3871a3===_0x18a1d4(0x2bf)&&_0x3871a3['fields']){const {fields:_0x56d50c,prefix:_0x331a99,start:_0x431cf8,end:_0x5a8cb8}=_0x3871a3;_0x296fc6={..._0x296fc6,'index':_0x56d50c,'prefix':_0x331a99??_0x296fc6[_0x18a1d4(0x1f6)],'startIndex':_0x431cf8??_0x296fc6[_0x18a1d4(0x62b)],'endIndex':_0x5a8cb8??_0x296fc6[_0x18a1d4(0x420)]};}const _0x21ec52=await this[_0x18a1d4(0x44b)][_0x18a1d4(0x1c4)](_0x18a1d4(0x717),null,_0x18a1d4(0x388),[this[_0x18a1d4(0x5d4)],_0x2e2d64,_0x5756f3,_0x296fc6],![]),_0x54bf2f=typeof _0x10ebc0[_0x18a1d4(0x7a5)]===_0x18a1d4(0x8a6)?_0x10ebc0[_0x18a1d4(0x7a5)]:null;if(!_0x54bf2f)return _0x21ec52;return _0x21ec52['map'](_0x4d7035=>{const _0x261568=_0x18a1d4,{score:_0x3ef049,ftsScore:_0x951f2c,numTerms:_0xcb74a1,maxScore:_0x56674b,vectorScore:_0x22e704,chunkHash:_0x14789d,chunk:_0x352df3,..._0x297997}=_0x4d7035,_0x31a6ea=_0x54bf2f(_0x297997);for(const [_0x20e3a7,_0x216069]of Object[_0x261568(0x488)]({'score':_0x3ef049,'ftsScore':_0x951f2c,'numTerms':_0xcb74a1,'maxScore':_0x56674b,'vectorScore':_0x22e704,'chunkHash':_0x14789d,'chunk':_0x352df3}))if(_0x216069!==undefined)_0x31a6ea[_0x20e3a7]=_0x216069;return _0x31a6ea;});}['geoQuery'](_0x1c8ac6,_0x5e91ae,_0x25cca2={}){const _0x2dad10=_0x308f09;let _0x26e7f4=this['_n'](_0x2dad10(0x628),[_0x1c8ac6,_0x5e91ae,_0x310ef9(_0x25cca2)]);if(typeof _0x25cca2[_0x2dad10(0x7a5)]===_0x2dad10(0x8a6))_0x26e7f4=_0x26e7f4[_0x2dad10(0x70b)](_0x25cca2[_0x2dad10(0x7a5)]);return _0x26e7f4;}[_0x308f09(0x599)](_0x5ac972=null,_0x5334d0={}){const _0x3c8da7=_0x308f09;return this['_n'](_0x3c8da7(0x599),[_0x5ac972]);}['getChanges'](_0x53938a=null,_0x462487=0x0,_0x5d8871=Number['MAX_SAFE_INTEGER'],_0xa1e20b={}){const _0x3ad0f5=_0x308f09,_0x441b3a=_0x4382d5(_0xa1e20b);if(_0xa1e20b&&_0xa1e20b[_0x3ad0f5(0x7ba)])return _0x14b1fa(this['_n'](_0x3ad0f5(0x876),[_0x53938a,_0x462487,_0x5d8871,_0x441b3a]));return this[_0x3ad0f5(0x851)](_0x3ad0f5(0x876),'getChanges',_0x32e006=>[_0x53938a,_0x462487,_0x5d8871,{..._0x441b3a,..._0x32e006}],_0xa1e20b);}['count'](_0x590d66){const _0x5db9e5=_0x308f09;if(Array[_0x5db9e5(0x7c8)](_0x590d66))return _0x590d66[_0x5db9e5(0x29a)];let _0x196392=0x0;for(const _0x14ab5e of _0x590d66)_0x196392++;return _0x196392;}*[_0x308f09(0x7c6)](_0x4489ec){yield*_0x4489ec;}['now'](){const _0x118faf=_0x308f09;return requireOkdbHlc()['toMs'](this[_0x118faf(0x54e)]);}get[_0x308f09(0x603)](){const _0x9d9334=_0x308f09,_0x5891fe=this[_0x9d9334(0x44b)][_0x9d9334(0x393)]?this[_0x9d9334(0x44b)]['_call']('db',null,'ttlTimer',[this[_0x9d9334(0x5d4)]],![]):null;if(!_0x5891fe)return null;if(this[_0x9d9334(0x73c)]===_0x5891fe[_0x9d9334(0x7e7)])return null;this[_0x9d9334(0x42e)]=this[_0x9d9334(0x42e)]||new Map();let _0x48013c=this[_0x9d9334(0x42e)][_0x9d9334(0x7f0)](_0x5891fe[_0x9d9334(0x7e7)]);if(!_0x48013c){const _0x1b862f=this;_0x48013c={'ref'(){},'unref'(){},'hasRef':()=>![],'gen':_0x5891fe[_0x9d9334(0x7e7)],'at':_0x5891fe['at'],'target':_0x5891fe['target'],get '_destroyed'(){const _0x51e367=_0x9d9334,_0x15e405=_0x1b862f[_0x51e367(0x44b)]['_isOpen']?_0x1b862f[_0x51e367(0x44b)][_0x51e367(0x5a6)]('db',null,_0x51e367(0x5f6),[_0x1b862f[_0x51e367(0x5d4)]],![]):null;return!_0x15e405||_0x15e405[_0x51e367(0x7e7)]!==this['gen']||_0x1b862f[_0x51e367(0x73c)]===this[_0x51e367(0x7e7)];}},this[_0x9d9334(0x42e)]['set'](_0x5891fe[_0x9d9334(0x7e7)],_0x48013c);}return _0x48013c;}['_cancelTTLTimeout'](){const _0x9d01be=_0x308f09,_0x259f38=this[_0x9d01be(0x44b)][_0x9d01be(0x5a6)]('db',null,'ttlTimer',[this[_0x9d01be(0x5d4)]],![]);if(_0x259f38)this[_0x9d01be(0x73c)]=_0x259f38['gen'];}get[_0x308f09(0x41f)](){const _0x64a0e0=_0x308f09,_0x3009f5=this['okdb'][_0x64a0e0(0x5a6)]('db',null,_0x64a0e0(0x5f6),[this['name']],![]);return _0x3009f5?_0x3009f5['target']:null;}get['_autoCompactTimer'](){const _0xd3644e=_0x308f09;return this['okdb'][_0xd3644e(0x5a6)]('db',null,_0xd3644e(0x6d7),[this[_0xd3644e(0x5d4)]],![])?{'ref'(){},'unref'(){}}:null;}[_0x308f09(0x214)](){const _0x3afa76=_0x308f09;this['okdb']['_call']('db',null,_0x3afa76(0x433),[this[_0x3afa76(0x5d4)]],![]);}['_stopAutoCompactCheck'](){const _0x2355df=_0x308f09;this[_0x2355df(0x44b)]['_call']('db',null,_0x2355df(0x3d6),[this[_0x2355df(0x5d4)]],![]);}get[_0x308f09(0x34c)](){const _0x59ff3a=_0x308f09,_0x35ed64=(_0x2496e2,_0x284f60)=>this[_0x59ff3a(0x44b)][_0x59ff3a(0x5a6)]('db',null,_0x2496e2,[this['name'],..._0x284f60],![]),_0x3ffc13=Object[_0x59ff3a(0x62c)](_0x35ed64('autoCompactState',[])||{}),_0x152f85={};for(const _0x3084f7 of _0x3ffc13)Object[_0x59ff3a(0x4d6)](_0x152f85,_0x3084f7,{'enumerable':!![],'get':()=>_0x35ed64('autoCompactState',[])?.[_0x3084f7],'set':_0x293f40=>{_0x35ed64('setAutoCompact',[_0x3084f7,_0x293f40]);}});return _0x152f85;}get['_hlc'](){const _0x36d7f4=_0x308f09;return this['_n'](_0x36d7f4(0x26f),[]);}[_0x308f09(0x4c9)](_0x164a3e,_0x466a9f){const _0x3fcf1b=_0x308f09;return require$$16[_0x3fcf1b(0x63f)](_0x164a3e,_0x466a9f);}async[_0x308f09(0x298)](_0x404c19,_0x527ba4){const _0x2f3891=_0x308f09;return this[_0x2f3891(0x340)](this['_n'](_0x2f3891(0x298),[_0x404c19]));}['hasType'](_0x190131){const _0x4e9cf0=_0x308f09;return this['_n'](_0x4e9cf0(0x705),[_0x190131]);}[_0x308f09(0x8b8)](){const _0x7bed9d=_0x308f09;return this['_n'](_0x7bed9d(0x8b8),[]);}async['dropType'](_0x37c6ee,_0x2e5176){const _0x1c12a2=_0x308f09;return this[_0x1c12a2(0x340)](this['_n'](_0x1c12a2(0x26d),[_0x37c6ee]));}async[_0x308f09(0x57f)](_0x53e538,_0x3d210f){const _0x32f771=_0x308f09,{timestamp:_0x25609f,indexes:indexes=[]}=_0x25dced(_0x3d210f);return this[_0x32f771(0x340)](this['_n']('ensureType',[_0x53e538,{'indexes':indexes}]));}async[_0x308f09(0x2cd)](_0x1c9cad){const _0x5dc9fc=_0x308f09,{type:_0x4f4f1e,indexes:indexes=[],fts:fts=[],views:views=[],schema:schema=null}=_0x25dced(_0x1c9cad,_0x5dc9fc(0x7af));if(!_0x4f4f1e)throw new Error(_0x5dc9fc(0x5aa));await this[_0x5dc9fc(0x57f)](_0x4f4f1e,{'indexes':indexes});for(const _0x104c4f of fts){const {name:_0x5d0317,fields:_0xc4b564,..._0x2fc7b5}=_0x104c4f;if(!_0x5d0317||!_0xc4b564)throw new Error(_0x5dc9fc(0x40d));await this[_0x5dc9fc(0x44b)][_0x5dc9fc(0x682)][_0x5dc9fc(0x2cd)](_0x4f4f1e,_0x5d0317,{'fields':_0xc4b564,..._0x2fc7b5},this);}for(const _0x1f928a of views){const {name:_0x40d5e4,definition:_0x29841d}=_0x1f928a;if(!_0x40d5e4||!_0x29841d)throw new Error(_0x5dc9fc(0x2b5));if(!await this[_0x5dc9fc(0x234)][_0x5dc9fc(0x6c1)](_0x40d5e4))await this[_0x5dc9fc(0x234)]['create'](_0x40d5e4,_0x29841d);}if(schema)await this[_0x5dc9fc(0x4eb)](_0x4f4f1e,schema);}async['registerIndex'](_0x4061ab,_0x1f4b2d,_0x287a41){const _0x19544b=_0x308f09,_0xa6589a=this['_n'](_0x19544b(0x303),[_0x4061ab,_0x1f4b2d,typeof _0x287a41===_0x19544b(0x2bf)?_0x287a41:{}]);if(!_0xa6589a)return this[_0x19544b(0x340)](undefined);const _0x5ed234=this['_n']('resetIndexBegin',[_0x4061ab,_0x1f4b2d,!![]]);if(_0x5ed234===undefined)return this[_0x19544b(0x340)](undefined);return this['_wsettle'](await this['_indexBuild'](_0x4061ab,_0x1f4b2d,_0x5ed234));}async[_0x308f09(0x89c)](_0x5739c3,_0x5b7227,_0x49c403){const _0x29dbb4=_0x308f09,_0x35a9c7=_0x5739c3+'@'+[][_0x29dbb4(0x8b3)](_0x5b7227)[_0x29dbb4(0x437)]('~');if(!this['_indexBuilds'])this['_indexBuilds']=new Map();const _0x2fd79f=this[_0x29dbb4(0x378)][_0x29dbb4(0x7f0)](_0x35a9c7);if(_0x2fd79f)return _0x2fd79f;const _0xf01661=((async()=>{const _0x2233ff=_0x29dbb4;do await new Promise(_0x5035d3=>setImmediate(_0x5035d3));while(!this['_n'](_0x2233ff(0x852),[_0x5739c3,_0x5b7227,_0x49c403,!![]]));})());this['_indexBuilds']['set'](_0x35a9c7,_0xf01661);try{return await _0xf01661;}finally{this[_0x29dbb4(0x378)][_0x29dbb4(0x36f)](_0x35a9c7);}}async[_0x308f09(0x57e)](_0x79aa60,_0x372dcf,_0x560e2e){const _0x3ff476=_0x308f09;return this[_0x3ff476(0x340)](this['_n'](_0x3ff476(0x57e),[_0x79aa60,_0x372dcf]));}async['resetIndex'](_0x1d723c,_0x404aae,_0x25796e){const _0x58c4d5=_0x308f09,_0x82e2a8=this[_0x58c4d5(0x378)]&&this[_0x58c4d5(0x378)][_0x58c4d5(0x7f0)](_0x1d723c+'@'+[][_0x58c4d5(0x8b3)](_0x404aae)[_0x58c4d5(0x437)]('~'));if(_0x82e2a8)return _0x82e2a8;const _0x1b28b9=this['_n'](_0x58c4d5(0x5e5),[_0x1d723c,_0x404aae,_0x25796e]);if(_0x1b28b9===undefined)return;return await new Promise(_0x2db11a=>setImmediate(_0x2db11a)),this[_0x58c4d5(0x340)](await this[_0x58c4d5(0x89c)](_0x1d723c,_0x404aae,_0x1b28b9));}[_0x308f09(0x3f8)](_0x91d7c6,_0x55337d){const _0x470893=_0x308f09;return this['_n'](_0x470893(0x3f8),[_0x91d7c6,_0x55337d]);}[_0x308f09(0x2dc)](_0x22baa8,_0x516d2e){const _0x2f0e71=_0x308f09;return this['_n'](_0x2f0e71(0x2dc),[_0x22baa8,_0x516d2e]);}async['indexReady'](_0x47d5ce,_0x170c3e){const _0x436d5e=_0x308f09;if(this['_n'](_0x436d5e(0x2dc),[_0x47d5ce,_0x170c3e])===_0x436d5e(0x356))return!![];let _0x2b91f1=0xa;for(;;){await new Promise(_0x182eba=>setTimeout(_0x182eba,_0x2b91f1));if(!this['okdb'][_0x436d5e(0x393)]||this[_0x436d5e(0x8a5)])return![];let _0x4d44cb;try{_0x4d44cb=this['_n'](_0x436d5e(0x2a1),[_0x47d5ce,Array['isArray'](_0x170c3e)?_0x170c3e[_0x436d5e(0x437)]('~'):String(_0x170c3e)[_0x436d5e(0x5f1)](',')['join']('~')]);}catch{return![];}const _0x15aeb2=_0x4d44cb&&_0x4d44cb[_0x436d5e(0x424)];if(_0x15aeb2===_0x436d5e(0x356))return!![];if(_0x15aeb2===undefined)return![];_0x2b91f1=Math[_0x436d5e(0x415)](_0x2b91f1*0x2,0xfa);}}['getIndexMeta'](_0x37e9c6,_0x4d9de0){return this['_n']('getIndexMeta',[_0x37e9c6,_0x4d9de0])??null;}['getUniqueViolations'](_0x1ad15e,_0x3e0e32){const _0x2014e2=_0x308f09;return this['_n'](_0x2014e2(0x3ea),[_0x1ad15e,_0x3e0e32]);}[_0x308f09(0x65c)](_0x1d67fe,_0x249e9b){const _0x433576=_0x308f09;return this['_n'](_0x433576(0x65c),[_0x1d67fe,_0x249e9b]);}[_0x308f09(0x39b)](_0x10a730,_0xc68ed0,_0x3a4d3a){const _0x1e6845=_0x308f09;return this['_n'](_0x1e6845(0x39b),[_0x10a730,_0xc68ed0,_0x3a4d3a])??null;}[_0x308f09(0x354)](_0x1ad6e0){const _0x4a7aac=_0x308f09;return this['_n'](_0x4a7aac(0x354),[_0x1ad6e0])??null;}async[_0x308f09(0x4eb)](_0x1aeb79,_0x3563e2){const _0x14ebe4=_0x308f09;return this[_0x14ebe4(0x340)](this['_n'](_0x14ebe4(0x4eb),[_0x1aeb79,_0x3563e2]));}async['dropSchema'](_0x207421){const _0x11e6b7=_0x308f09;return this['_wsettle'](this['_n'](_0x11e6b7(0x5f3),[_0x207421]));}['getViolation'](_0x34299c,_0x39f6ee){const _0x3cc69d=_0x308f09;return this['_n'](_0x3cc69d(0x6c3),[_0x34299c,_0x39f6ee])??null;}[_0x308f09(0x87d)](_0x595b66){return this['_n']('listViolations',[_0x595b66]);}['getRefViolation'](_0x44b604,_0x51fce8,_0x59cca9){const _0x1677b7=_0x308f09;return this['_n'](_0x1677b7(0x2e8),[_0x44b604,_0x51fce8,_0x59cca9])??null;}[_0x308f09(0x805)](_0x17805b){const _0x4f7635=_0x308f09;return this['_n'](_0x4f7635(0x805),[_0x17805b]);}async['setTTL'](_0x199aeb,_0x2f910c,_0x5c3822){const _0x3c29d7=_0x308f09;return this[_0x3c29d7(0x340)](this['_n'](_0x3c29d7(0x41c),[_0x199aeb,_0x2f910c,_0x5c3822]));}['getTTL'](_0xef2604,_0x471fec){return this['_n']('getTTL',[_0xef2604,_0x471fec]);}async['clearTTL'](_0x627077,_0xd846f0){const _0x18358c=_0x308f09;return this['_wsettle'](this['_n'](_0x18358c(0x770),[_0x627077,_0xd846f0]));}async[_0x308f09(0x4e8)](_0x344b4d){const _0x4cf049=_0x308f09;return this['_n'](_0x4cf049(0x4e8),[_0x344b4d]);}['listTTL'](_0x2712ef={}){const _0x39cb0a=_0x308f09;return this['_n'](_0x39cb0a(0x72b),[_0x2712ef]);}[_0x308f09(0x731)](_0x3e017b){const _0x4b8a97=_0x308f09;return this['_n'](_0x4b8a97(0x731),[_0x3e017b]);}async[_0x308f09(0x21a)](_0x172b2e,_0xc944b4){const _0x235b69=_0x308f09;return this[_0x235b69(0x340)](this['_n'](_0x235b69(0x21a),[_0x172b2e,_0xc944b4]));}['getDefaultTTL'](_0x1eb269){return this['_n']('getDefaultTTL',[_0x1eb269]);}async[_0x308f09(0x566)](_0x1032e7){const _0x5d761b=_0x308f09;return this[_0x5d761b(0x340)](this['_n'](_0x5d761b(0x566),[_0x1032e7]));}async[_0x308f09(0x535)](_0x29c06e,_0x53a400,_0x1f1c08,_0x1243be){const _0x38fc7d=_0x308f09,{batch:batch=null,batchSize:_0x511587}=_0x25dced(_0x1243be);if(typeof _0x29c06e!=='string'||!_0x29c06e)throw new _0x125455(_0x38fc7d(0x2ae),'BAD_PARAM');if(typeof _0x53a400!==_0x38fc7d(0x78e)||!_0x53a400)throw new _0x125455(_0x38fc7d(0x1ce),_0x38fc7d(0x672));if(_0x1f1c08!=null&&typeof _0x1f1c08!==_0x38fc7d(0x8a6))throw new _0x125455(_0x38fc7d(0x4e9),_0x38fc7d(0x672));if(batch!=null&&typeof batch!==_0x38fc7d(0x8a6))throw new _0x125455(_0x38fc7d(0x481),_0x38fc7d(0x672));if(!_0x1f1c08&&!batch)throw new _0x125455(_0x38fc7d(0x6ed),_0x38fc7d(0x672));if(_0x511587!==undefined&&!(Number['isInteger'](_0x511587)&&_0x511587>0x0))throw new _0x125455(_0x38fc7d(0x5f4),_0x38fc7d(0x672));const _0x366703=batch?async _0x296563=>(await batch(_0x296563))[_0x38fc7d(0x70b)](_0x3696a5=>_0x3696a5 instanceof Error?{'__error':!![],'message':_0x3696a5[_0x38fc7d(0x4ee)]}:_0x3696a5):null,_0x27100c=_0x3efa2b(this,_0x29c06e,_0x53a400),_0x52a417=this['_n'](_0x38fc7d(0x535),[_0x29c06e,_0x53a400,_0x1f1c08?(_0x1f2b10,_0x2afd96)=>_0x27100c(_0x1f1c08,[_0x1f2b10,_0x2afd96]):null,{'batch':_0x366703?_0x1d57f7=>_0x27100c(_0x366703,[_0x1d57f7]):null,'batchSize':_0x511587}]);return()=>this['_n'](_0x38fc7d(0x52c),[_0x52a417]);}async['unresolveField'](_0x1dc854,_0x4136fd){const _0x45c437=_0x308f09;return this['_n'](_0x45c437(0x3ae),[_0x1dc854,_0x4136fd]);}[_0x308f09(0x29f)](_0x37c768){const _0x99aeb=_0x308f09;return this['_n'](_0x99aeb(0x29f),[_0x37c768]);}async['readField'](_0x2b7c71,_0x45ab92,_0x4a165b,_0x84a704){const _0x2ece79=_0x308f09;return this[_0x2ece79(0x44b)]['_callMacro'](_0x2ece79(0x27b),this[_0x2ece79(0x5d4)],'readField',[_0x2b7c71,_0x45ab92,_0x4a165b,_0x84a704],![]);}async[_0x308f09(0x3bf)](_0x2170fb,_0xfa73b7,_0x50681e){const _0x9f1f46=_0x308f09;return this[_0x9f1f46(0x44b)][_0x9f1f46(0x1c4)](_0x9f1f46(0x27b),this[_0x9f1f46(0x5d4)],_0x9f1f46(0x3bf),[_0x2170fb,_0xfa73b7,_0x50681e],![]);}[_0x308f09(0x4a4)](){}[_0x308f09(0x45f)](_0x3f6964,_0x23e6a,_0x50cf04,_0x2daee8={},_0x31c383={}){const _0x23dd2e=_0x308f09;return this[_0x23dd2e(0x44b)]['_call'](_0x23dd2e(0x682),null,_0x23dd2e(0x45f),[_0x3f6964,_0x23e6a,_0x50cf04,_0x2daee8,_0x31c383,this[_0x23dd2e(0x5d4)]],![]);}get['fts'](){const _0x65221c=_0x308f09;return this[_0x65221c(0x44b)][_0x65221c(0x682)];}[_0x308f09(0x2cc)](){const _0x5213bc=_0x308f09;return this[_0x5213bc(0x44b)][_0x5213bc(0x5a6)]('env',this['name'],'getResolvedOptions',[],![]);}[_0x308f09(0x532)](){const _0x56ad4e=_0x308f09;return this[_0x56ad4e(0x44b)][_0x56ad4e(0x532)]();}[_0x308f09(0x800)](){const _0x919859=_0x308f09;return this[_0x919859(0x44b)][_0x919859(0x5a6)]('env',this[_0x919859(0x5d4)],_0x919859(0x800),[],![]);}['refreshReadTxn'](){}get[_0x308f09(0x1c8)](){const _0x565f78=_0x308f09;return this['_locks']||(this['_locks']=new(requireLock())['NativeLock'](this[_0x565f78(0x44b)],this[_0x565f78(0x5d4)],_0x565f78(0x27b)));}[_0x308f09(0x7f3)](){const _0x25c204=_0x308f09;return this[_0x25c204(0x44b)][_0x25c204(0x5a6)](_0x25c204(0x27b),this[_0x25c204(0x5d4)],_0x25c204(0x7f3),[],![]);}[_0x308f09(0x395)](_0x41292e){const _0x50a50f=_0x308f09;this['_n'](_0x50a50f(0x298),[_0x41292e]);}[_0x308f09(0x76f)](_0x55f7bf){const _0x7d196=_0x308f09;this['_n'](_0x7d196(0x4f2),[_0x55f7bf]);}[_0x308f09(0x783)](){const _0x5c3628=_0x308f09;return this['_n'](_0x5c3628(0x34e),[]);}[_0x308f09(0x452)](_0x2a2bc1,_0x8396e8){return _0x2a2bc1+'\x09'+_0x8396e8;}[_0x308f09(0x892)](_0xc64777){const _0x2a9fa1=_0x308f09,_0x359a22=_0xc64777[_0x2a9fa1(0x698)]('\x09');return{'type':_0xc64777['slice'](0x0,_0x359a22),'key':_0xc64777[_0x2a9fa1(0x231)](_0x359a22+0x1)};}get['_ttlByKey'](){const _0x11a24b=_0x308f09;if(!this['_ttlState']()[_0x11a24b(0x2b0)])return null;return this[_0x11a24b(0x5b6)]||(this[_0x11a24b(0x5b6)]=new _0x9ceaf3(this,_0x11a24b(0x195)));}get[_0x308f09(0x4bc)](){const _0x301e57=_0x308f09;if(!this[_0x301e57(0x783)]()[_0x301e57(0x2b0)])return null;return this[_0x301e57(0x2bd)]||(this['__ttlByExpiry']=new _0x9ceaf3(this,'~ttl:expiry',{'dupSort':!![]}));}['_setTTLEntry'](_0x3cfd7e,_0x1eae9f,_0x2a43cd){const _0x15a5ae=_0x308f09;this['_n'](_0x15a5ae(0x1a9),[_0x3cfd7e,_0x1eae9f,_0x2a43cd]);}[_0x308f09(0x30a)](_0x1d7763,_0x2b659c){const _0x45ef9c=_0x308f09,_0x67a467=this[_0x45ef9c(0x5c0)]?.[_0x45ef9c(0x7f0)](this[_0x45ef9c(0x452)](_0x1d7763,_0x2b659c));return _0x67a467!=null&&_0x67a467<=Date[_0x45ef9c(0x200)]();}get[_0x308f09(0x2ac)](){const _0x18dc3d=_0x308f09;return this[_0x18dc3d(0x783)]()['nextExpiry']??null;}get[_0x308f09(0x25d)](){const _0x203cdd=_0x308f09;return this[_0x203cdd(0x783)]()[_0x203cdd(0x364)]||0x0;}get[_0x308f09(0x52a)](){return![];}[_0x308f09(0x645)](){}async[_0x308f09(0x1de)](_0x2bdad0,_0x57375a){const _0x5b0d87=_0x308f09;if(this[_0x5b0d87(0x4a7)]){const {OKDBError:_0xb63ebf}=requireErrors();throw new _0xb63ebf(_0x5b0d87(0x58f),_0x5b0d87(0x512));}this[_0x5b0d87(0x4a7)]=!![];try{return await this[_0x5b0d87(0x44b)][_0x5b0d87(0x1c4)](_0x5b0d87(0x27b),this[_0x5b0d87(0x5d4)],_0x2bdad0,[_0x57375a],!![]);}finally{this['_rebuilding']=![];}}async['compact'](_0x29cce0={}){const _0x46f993=_0x308f09;return this[_0x46f993(0x1de)]('compact',_0x29cce0);}async[_0x308f09(0x1c2)](_0x55a9b9={}){const _0x1ce654=_0x308f09;return this['_rebuild'](_0x1ce654(0x1c2),_0x55a9b9);}}_0xad03cb['HIGH_SENTINEL']=_0x26d3ee;function _0xb20d99(_0x2d9009){const _0x4cc884=_0x308f09;if(!_0x2d9009||typeof _0x2d9009!==_0x4cc884(0x2bf))return![];for(const _0x2ed742 of Object[_0x4cc884(0x62c)](_0x2d9009)){const _0x2ed534=_0x2d9009[_0x2ed742];if(_0x2ed534&&typeof _0x2ed534==='object'&&(_0x2ed534[_0x4cc884(0x44a)]||_0x2ed534['$within']))return!![];}return![];}function _0x4382d5(_0x4c9218){const _0x39ad6a=_0x308f09;if(!_0x4c9218||typeof _0x4c9218!=='object')return{};const _0x44dcae={};for(const _0x1250e1 of Object[_0x39ad6a(0x62c)](_0x4c9218)){if(_0x1250e1==='transaction'||_0x1250e1==='snapshot')continue;_0x44dcae[_0x1250e1]=_0x4c9218[_0x1250e1];}return _0x44dcae;}function _0x310ef9(_0x342746){const _0x50ccce=_0x308f09;if(!_0x342746||typeof _0x342746!==_0x50ccce(0x2bf))return{};const _0x48a262={};for(const _0x1f6eb2 of Object[_0x50ccce(0x62c)](_0x342746)){if(typeof _0x342746[_0x1f6eb2]===_0x50ccce(0x8a6))continue;_0x48a262[_0x1f6eb2]=_0x342746[_0x1f6eb2];}return _0x48a262;}return env={'OKDBEnv':_0xad03cb,'HIGH_SENTINEL':_0x26d3ee},env;}var unsupported,hasRequiredUnsupported;function requireUnsupported(){if(hasRequiredUnsupported)return unsupported;hasRequiredUnsupported=0x1;const {NotImplementedNative:_0x4b9156}=requireErrors();function _0x5bb770(_0x4e4cf9){const _0x5ad376=_0x102c36=>{throw new _0x4b9156(_0x4e4cf9,_0x102c36);};return new Proxy(function(){},{'get'(_0x3d2ce8,_0x3107a9){const _0x481249=_0x20a5;if(typeof _0x3107a9==='symbol'||_0x3107a9===_0x481249(0x315)||_0x3107a9===_0x481249(0x513)||_0x3107a9===_0x481249(0x815))return undefined;if(_0x3107a9===_0x481249(0x7b6))return _0x4e4cf9;return(..._0x1262ce)=>_0x5ad376(_0x4e4cf9+'.'+String(_0x3107a9));},'apply'(){_0x5ad376(_0x4e4cf9);},'set'(){return!![];}});}return unsupported={'notImplemented':_0x5bb770},unsupported;}var http,hasRequiredHttp;function requireHttp(){const _0x5183f9=_0x7f204b;if(hasRequiredHttp)return http;hasRequiredHttp=0x1;function _0x12ffe3(_0x19ea15,_0x28a230={}){const _0xfb10f9=_0x20a5,_0x36bb64=[];let _0x2a36b2=![];_0x19ea15[_0xfb10f9(0x4d3)]('/*')&&(_0x2a36b2=!![],_0x19ea15=_0x19ea15[_0xfb10f9(0x231)](0x0,-0x2),_0x36bb64[_0xfb10f9(0x373)]('*'));let _0x47fd48=_0x19ea15['replace'](/\/+$/,'')[_0xfb10f9(0x233)](/\[([^\]]*)\]/g,(_0x50e3eb,_0x31866d)=>{const _0x2152aa=_0x31866d['replace'](/\/:(\w+)(?:=([^/\]\s]*))?/g,(_0x9d2546,_0xf70c73)=>{const _0x2f0191=_0x20a5;return _0x36bb64[_0x2f0191(0x373)](_0xf70c73),'/([^/]+)';});return'(?:'+_0x2152aa+')?';})['replace'](/\/:(\w+)/g,(_0x229532,_0x45601d)=>{return _0x36bb64['push'](_0x45601d),'/([^/]+)';});if(_0x47fd48==='')_0x47fd48='/';return{'keys':_0x36bb64,'defaults':_0x28a230||{},'wildcard':_0x2a36b2,'regex':new RegExp('^'+_0x47fd48+(_0x2a36b2?'(?:/(.*))?':'')+_0xfb10f9(0x75d))};}const _0x17511f=require$$0$3,{PassThrough:_0x67f2a2}=require$$1;function _0x5ee2ab(_0x5bf9c8){const _0x5d1fb1=_0x20a5,_0x3d191a=_0x5bf9c8[_0x5d1fb1(0x6e4)](':'),_0x4fc6d6=_0x5bf9c8[_0x5d1fb1(0x231)](0x0,_0x3d191a)['replace'](/^\[|\]$/g,'');return{'address':_0x4fc6d6,'family':_0x4fc6d6[_0x5d1fb1(0x3b9)](':')?_0x5d1fb1(0x593):_0x5d1fb1(0x6e5),'port':Number(_0x5bf9c8['slice'](_0x3d191a+0x1))};}class _0x202a7e extends _0x17511f[_0x5183f9(0x8b5)]{constructor(_0x10ce88,_0x2e17b7){const _0x4e4ac1=_0x5183f9;super(),this[_0x4e4ac1(0x1f8)]=_0x10ce88,this['_addr']=_0x5ee2ab(_0x2e17b7),this[_0x4e4ac1(0x8bb)]=!![],this[_0x4e4ac1(0x491)]=setInterval(()=>{},0x7fffffff);}get[_0x5183f9(0x8bb)](){const _0x3f080e=_0x5183f9;return this[_0x3f080e(0x267)];}set[_0x5183f9(0x8bb)](_0x47ce3c){const _0x3d072a=_0x5183f9;this[_0x3d072a(0x267)]=_0x47ce3c;}['address'](){return this['listening']?{...this['_addr']}:null;}[_0x5183f9(0x220)](){const _0x1f0e18=_0x5183f9;if(this[_0x1f0e18(0x491)])clearInterval(this[_0x1f0e18(0x491)]);this[_0x1f0e18(0x491)]=null;}[_0x5183f9(0x690)](_0x1dcaeb){const _0x18d002=_0x5183f9;this[_0x18d002(0x220)]();const _0x3e3b8b=this[_0x18d002(0x1f8)][_0x18d002(0x690)]();if(_0x1dcaeb)_0x3e3b8b['then'](()=>_0x1dcaeb(),_0x1dcaeb);return this;}[_0x5183f9(0x3a4)](){const _0xc69a5c=_0x5183f9;return this[_0xc69a5c(0x491)]?.[_0xc69a5c(0x3a4)](),this;}[_0x5183f9(0x48c)](){const _0x2a565c=_0x5183f9;return this[_0x2a565c(0x491)]?.[_0x2a565c(0x48c)](),this;}}class _0x4172fd{constructor(_0x2fa89d){const _0x1c5f90=_0x5183f9;this['okdb']=_0x2fa89d,this[_0x1c5f90(0x35a)]=[],this[_0x1c5f90(0x3bc)]={'cookieName':_0x1c5f90(0x4f1)};}get[_0x5183f9(0x196)](){const _0x5a6cc6=_0x5183f9;return this[_0x5a6cc6(0x35a)][0x0]||null;}['_n'](_0x6e21e1,_0x1e36ea=[]){const _0x1faa38=_0x5183f9;return this[_0x1faa38(0x44b)][_0x1faa38(0x1c4)]('http',null,_0x6e21e1,_0x1e36ea,!![]);}async[_0x5183f9(0x7d1)](_0x13692a,_0x215b06,_0x573b2e={},_0x4cfe7a={}){const _0x9e625b=_0x5183f9;let _0xb0e576=await this['_n'](_0x9e625b(0x7d1),[_0x13692a,_0x215b06,_0x573b2e,_0x4cfe7a]),_0x21adb6=0x0;return _0xb0e576=await this['_settle'](_0xb0e576,_0x21adb6),_0xb0e576;}async[_0x5183f9(0x4f5)](_0x1af8e7,_0x525e99){const _0x1ba975=_0x5183f9;while(_0x1af8e7&&typeof _0x1af8e7===_0x1ba975(0x2bf)&&_0x1af8e7[_0x1ba975(0x2e9)]!==undefined){await new Promise(_0x18debb=>setTimeout(_0x18debb,_0x525e99<0x5?0x1:0x5)),_0x525e99++,_0x1af8e7=await this['_n'](_0x1ba975(0x3e2),[_0x1af8e7[_0x1ba975(0x2e9)]]);}if(_0x1af8e7&&_0x1af8e7['body']&&typeof _0x1af8e7['body']===_0x1ba975(0x2bf)&&_0x1af8e7[_0x1ba975(0x453)][_0x1ba975(0x21b)]!==undefined)_0x1af8e7[_0x1ba975(0x453)]=this[_0x1ba975(0x2b7)](_0x1af8e7[_0x1ba975(0x453)]['$streamId']);return _0x1af8e7;}[_0x5183f9(0x2b7)](_0xd36db8){const _0x5caaaa=_0x5183f9,_0x551fa8=new _0x67f2a2();let _0x19c96d=![];const _0x16b40a=()=>{const _0x3ab209=_0x20a5;if(_0x19c96d)return;_0x19c96d=!![],clearTimeout(_0x9b0d66),setImmediate(()=>this['okdb'][_0x3ab209(0x393)]&&this[_0x3ab209(0x44b)][_0x3ab209(0x5a6)]('http',null,_0x3ab209(0x5b9),[_0xd36db8],!![]));};let _0x9b0d66=null;const _0x7cc686=()=>{const _0x36a223=_0x20a5;if(_0x19c96d)return;let _0x355127;try{_0x355127=this['okdb'][_0x36a223(0x5a6)](_0x36a223(0x2a7),null,_0x36a223(0x362),[_0xd36db8],!![]);}catch{_0x355127={'chunks':[],'end':!![]};}for(const _0x5918a1 of _0x355127[_0x36a223(0x1ba)])_0x551fa8[_0x36a223(0x5a5)](_0x5918a1);if(_0x355127[_0x36a223(0x5ea)]){_0x19c96d=!![],_0x551fa8[_0x36a223(0x5ea)]();return;}_0x9b0d66=setTimeout(_0x7cc686,_0x355127[_0x36a223(0x1ba)][_0x36a223(0x29a)]?0x0:0xa);};_0x551fa8['on'](_0x5caaaa(0x690),_0x16b40a),_0x7cc686();if(!_0x19c96d)_0x7cc686();if(_0x19c96d)_0x551fa8['destroy']();else{if(!_0x9b0d66)_0x9b0d66=setTimeout(_0x7cc686,0x0);}return _0x551fa8;}[_0x5183f9(0x6a0)](_0x242144,_0x5a31c2,_0x4468b1,_0x5886fb={}){const _0xf27edc=_0x5183f9;return this[_0xf27edc(0x44b)][_0xf27edc(0x5a6)](_0xf27edc(0x2a7),null,'add',[_0x242144,_0x5a31c2,_0x4468b1,_0x5886fb,![]],!![]),this;}[_0x5183f9(0x757)](_0x3d07d5,_0x372020,_0xd5afb5,_0x29ef63={}){const _0x552779=_0x5183f9;return this[_0x552779(0x44b)][_0x552779(0x5a6)](_0x552779(0x2a7),null,_0x552779(0x6a0),[_0x3d07d5,_0x372020,_0xd5afb5,_0x29ef63,!![]],!![]),this;}['guard'](_0x548d56,_0xae8134){const _0x1e7521=_0x5183f9,_0x2a25f2=async _0x2521db=>{const _0x1eba80=_0x20a5,_0x5245f4={'status':undefined,'headers':[],'hasBody':![],'body':undefined},_0xaf448b={'status'(_0x2f7b9b){const _0x27c490=_0x20a5;return _0x5245f4[_0x27c490(0x424)]=_0x2f7b9b,_0xaf448b;},'setHeader'(_0x306cc8,_0x21071e){const _0x5f51d6=_0x20a5;_0x5245f4[_0x5f51d6(0x752)][_0x5f51d6(0x373)]([_0x306cc8,_0x21071e]);},'send'(_0x39374b){const _0x4803b6=_0x20a5;_0x5245f4[_0x4803b6(0x736)]=!![],_0x5245f4[_0x4803b6(0x453)]=_0x39374b;}};_0x2521db['socket']={'remoteAddress':_0x2521db[_0x1eba80(0x739)]??null};const _0x87bd16=await _0xae8134(_0x2521db,_0xaf448b);return{'allowed':_0x87bd16!==![],..._0x5245f4};};this['okdb'][_0x1e7521(0x5a6)]('http',null,'guard',[_0x5503dc=>!!_0x548d56(_0x5503dc),_0x2a25f2],!![]);}[_0x5183f9(0x8bf)](_0x10dafe){const _0x41f225=_0x5183f9,_0x3c7bb5=async _0x4809cc=>{const _0x391238=_0x20a5,_0x497699={'status':undefined,'headers':[],'hasBody':![],'body':undefined};let _0x49f735=![];const _0x3a97c6={'status'(_0x55b805){return _0x497699['status']=_0x55b805,_0x3a97c6;},'setHeader'(_0x53ba53,_0x36d1c5){const _0x5b431f=_0x20a5;_0x497699[_0x5b431f(0x752)][_0x5b431f(0x373)]([_0x53ba53,_0x36d1c5]);},'send'(_0x2a0b25){const _0x324930=_0x20a5;_0x497699['hasBody']=!![],_0x497699[_0x324930(0x453)]=_0x2a0b25;}};return _0x4809cc[_0x391238(0x4fa)]={'remoteAddress':_0x4809cc[_0x391238(0x739)]??null},await _0x10dafe(_0x4809cc,_0x3a97c6,async()=>{_0x49f735=!![];}),{'allowed':_0x49f735,..._0x497699};};return this[_0x41f225(0x44b)]['_call']('http',null,_0x41f225(0x8bf),[_0x3c7bb5],!![]),this;}get[_0x5183f9(0x270)](){const _0x581954=_0x5183f9;return this[_0x581954(0x44b)][_0x581954(0x5a6)](_0x581954(0x2a7),null,_0x581954(0x445),[],![]);}set[_0x5183f9(0x270)](_0x439016){const _0x3ca0d3=_0x5183f9;this[_0x3ca0d3(0x44b)]['_call'](_0x3ca0d3(0x2a7),null,_0x3ca0d3(0x38a),[Number(_0x439016)],![]);}[_0x5183f9(0x66d)](_0x277c3f,_0x5b55ed,_0x1d522c={}){const _0x4498bb=_0x5183f9,_0x2e4297=new Map(),_0x3d2406=(_0x664c9e,_0x54387)=>this[_0x4498bb(0x44b)]['_call'](_0x4498bb(0x2a7),null,_0x664c9e,_0x54387,![]),_0x16a859=_0x2e9e99=>{const _0x294002=_0x4498bb,{connId:_0xd3d93e}=_0x2e9e99;if(_0x2e9e99[_0x294002(0x6ef)]){const _0x5c8efe=_0x2e4297[_0x294002(0x7f0)](_0xd3d93e);_0x2e4297[_0x294002(0x36f)](_0xd3d93e);if(typeof _0x5c8efe===_0x294002(0x8a6))_0x5c8efe();return;}const _0xc6fbe9=(_0x26cf32,_0x40ea1f,_0xa49ffe={})=>{const _0x2cf5f3=_0x294002;try{_0x3d2406(_0x2cf5f3(0x549),[_0xd3d93e,_0x26cf32,_0x40ea1f,_0xa49ffe]);}catch{}},_0x42a9fc=()=>{const _0x530970=_0x294002;try{_0x3d2406(_0x530970(0x1d5),[_0xd3d93e]);}catch{}},_0x36ba7f=(_0x148821,_0x5691b3)=>_0x3d2406(_0x294002(0x276),[_0xd3d93e,String(_0x148821),String(_0x5691b3)]),_0xe783d3={'auth':{'open':_0x2e9e99[_0x294002(0x311)],'isAuthenticated':_0x2e9e99['authenticated']}},_0x598599=_0x5b55ed({'send':_0xc6fbe9,'close':_0x42a9fc,'params':_0x2e9e99[_0x294002(0x49f)]??{},'query':_0x2e9e99[_0x294002(0x5ee)]??{},'headers':_0x2e9e99['headers']??{},'context':_0xe783d3,'setHeader':_0x36ba7f});_0x2e4297['set'](_0xd3d93e,_0x598599);};return this[_0x4498bb(0x44b)][_0x4498bb(0x5a6)](_0x4498bb(0x2a7),null,_0x4498bb(0x66d),[_0x277c3f,_0x16a859,_0x1d522c],!![]),this;}get[_0x5183f9(0x1cc)](){const _0x5e0567=_0x5183f9;return this[_0x5e0567(0x2a2)]();}[_0x5183f9(0x2a2)](){const _0x3d8624=_0x5183f9;return this[_0x3d8624(0x44b)][_0x3d8624(0x5a6)](_0x3d8624(0x2a7),null,_0x3d8624(0x2a2),[],![])['map'](_0x306df2=>({..._0x306df2,'matcher':_0x12ffe3(_0x306df2[_0x3d8624(0x4b0)],_0x306df2[_0x3d8624(0x4bd)])}));}[_0x5183f9(0x5bf)](_0xca3b46,_0x633c9c){const _0x4815d1=_0x5183f9;return this['okdb'][_0x4815d1(0x5a6)](_0x4815d1(0x2a7),null,_0x4815d1(0x5bf),[_0xca3b46,_0x633c9c],![]);}[_0x5183f9(0x34a)](_0x10cf80,_0x3cb1bb={}){const _0xc86e8=_0x5183f9;if(typeof _0x3cb1bb===_0xc86e8(0x78e)||Array[_0xc86e8(0x7c8)](_0x3cb1bb))_0x3cb1bb={'host':_0x3cb1bb};_0x3cb1bb=_0x3cb1bb??{};if((Number(_0x3cb1bb[_0xc86e8(0x5b1)])||0x0)>=0x1||_0x3cb1bb['makeOkdb']!=null||_0x3cb1bb[_0xc86e8(0x23b)]!=null){const _0x44342b=new Error('http.listen({workers/makeOkdb/primaryOkdb})\x20is\x20no\x20longer\x20supported\x20in\x20the\x20'+_0xc86e8(0x838)+_0xc86e8(0x712)+'okdb.http.listen(port)\x20in\x20each\x20worker.');_0x44342b['code']=_0xc86e8(0x44f);throw _0x44342b;}if(this[_0xc86e8(0x35a)][_0xc86e8(0x29a)])throw new Error(_0xc86e8(0x77b));const _0x12f805=_0x3cb1bb[_0xc86e8(0x347)]==null?[undefined]:[][_0xc86e8(0x8b3)](_0x3cb1bb[_0xc86e8(0x347)]);if(!_0x12f805[_0xc86e8(0x29a)]||_0x12f805[_0xc86e8(0x7c3)](_0xadd476=>_0xadd476!==undefined&&(typeof _0xadd476!==_0xc86e8(0x78e)||!_0xadd476))){const _0x109952=new Error(_0xc86e8(0x310));_0x109952[_0xc86e8(0x19c)]=_0xc86e8(0x84c);throw _0x109952;}const _0x37bb41=require$$2[_0xc86e8(0x6a8)]?{..._0x3cb1bb,'reuseport':!![]}:_0x3cb1bb,_0x2e65e3=this[_0xc86e8(0x44b)][_0xc86e8(0x5a6)]('http',null,'listen',[_0x10cf80,_0x37bb41],!![]),_0x265f49=_0x2e65e3[_0xc86e8(0x1b5)]??_0x10cf80,_0xa50d8c=_0x3cb1bb[_0xc86e8(0x347)]==null?':'+_0x265f49:_0x12f805[_0xc86e8(0x70b)](_0x5801b9=>(_0x5801b9[_0xc86e8(0x3b9)](':')?'['+_0x5801b9+']':_0x5801b9)+':'+_0x265f49)['join'](',\x20');try{this[_0xc86e8(0x44b)]['processes'][_0xc86e8(0x724)](_0xa50d8c);if(!require(_0xc86e8(0x3ec))['isWorker'])this[_0xc86e8(0x44b)]['processes'][_0xc86e8(0x250)]({'kind':_0xc86e8(0x3f7),'listenAddr':_0xa50d8c});}catch{}this[_0xc86e8(0x35a)]=_0x2e65e3['addrs'][_0xc86e8(0x70b)](_0x3baac7=>new _0x202a7e(this,_0x3baac7));const _0x128b28=this[_0xc86e8(0x35a)][0x0];return process[_0xc86e8(0x5e1)](()=>this[_0xc86e8(0x35a)][_0xc86e8(0x7e0)](_0x3ecfa6=>_0x3ecfa6['emit'](_0xc86e8(0x8bb)))),_0x128b28;}async[_0x5183f9(0x690)](_0x5b35ae={}){const _0x42ff95=_0x5183f9,_0x3fac13=this['servers'];this[_0x42ff95(0x35a)]=[];if(require$$2['isWorker']&&!process['connected']&&_0x5b35ae['forceAfterMs']==null)_0x5b35ae={..._0x5b35ae,'forceAfterMs':Infinity};if(_0x3fac13[_0x42ff95(0x29a)]){const _0x48b9f0=_0x5b35ae['forceAfterMs']===Infinity?Infinity:Number['isFinite'](_0x5b35ae[_0x42ff95(0x446)])?Math[_0x42ff95(0x68a)](0x0,_0x5b35ae[_0x42ff95(0x446)]):0x3e8,_0x1b2312=Date[_0x42ff95(0x200)]();while(this[_0x42ff95(0x44b)][_0x42ff95(0x5a6)]('http',null,_0x42ff95(0x6cb),[],!![])>0x0&&Date[_0x42ff95(0x200)]()-_0x1b2312<_0x48b9f0)await new Promise(_0x15f5ee=>setTimeout(_0x15f5ee,0x5));_0x5b35ae={..._0x5b35ae,'forceAfterMs':_0x48b9f0===Infinity?0x3e8:Math['max'](0x0,_0x48b9f0-(Date['now']()-_0x1b2312))};}await this['_n'](_0x42ff95(0x690),[_0x5b35ae]);for(const _0x54ee5a of _0x3fac13){_0x54ee5a[_0x42ff95(0x220)](),_0x54ee5a[_0x42ff95(0x8bb)]=![],_0x54ee5a['emit'](_0x42ff95(0x690));}}}return http={'OKDBHttp':_0x4172fd},http;}var fts,hasRequiredFts;function requireFts(){const _0x379bc8=_0x7f204b;if(hasRequiredFts)return fts;hasRequiredFts=0x1;const _0x21a88c=_0x315745=>(_0x315745&&typeof _0x315745==='object'?_0x315745[_0x379bc8(0x5d4)]:_0x315745)??_0x379bc8(0x803);class _0x4ea288{constructor(_0x5b1e6f){this['okdb']=_0x5b1e6f;}['_n'](_0x521451,_0x3269c9,_0x45c5f8=![]){const _0x39cf89=_0x379bc8;return this[_0x39cf89(0x44b)][_0x39cf89(0x5a6)](_0x39cf89(0x682),null,_0x521451,_0x3269c9,_0x45c5f8);}[_0x379bc8(0x2c3)](_0x173afb,_0x30dbd4){const _0x594895=_0x379bc8;return this[_0x594895(0x44b)][_0x594895(0x1c4)]('fts',null,_0x173afb,_0x30dbd4,!![]);}get['_processorStops'](){const _0x1bb63=this,_0xd7d773=_0xdd19f0=>{const _0x325516=_0x20a5,_0x495849=_0xdd19f0[_0x325516(0x698)](':'),_0x3daad7=_0xdd19f0[_0x325516(0x231)](0x0,_0x495849),_0xf0e919=_0x1bb63['okdb']['_envs'][_0x325516(0x7f0)](_0x3daad7);if(!_0xf0e919)return undefined;const _0x318d41=_0xf0e919['processor'][_0x325516(0x460)]()[_0x325516(0x7cb)](_0x2ad79f=>_0x2ad79f[_0x325516(0x7d7)]===_0x325516(0x309)+_0xdd19f0);if(!_0x318d41)return undefined;return _0xf0e919[_0x325516(0x68d)][_0x325516(0x30d)](_0x318d41['id'],_0x318d41[_0x325516(0x7d7)]);};return{'get':_0xd7d773,'has':_0x155d8b=>!!_0xd7d773(_0x155d8b)};}get[_0x379bc8(0x317)](){return[];}[_0x379bc8(0x707)](){const _0x18985c=_0x379bc8,{RawDb:_0x1636c5}=requireRawdb();return new _0x1636c5(this[_0x18985c(0x44b)][_0x18985c(0x197)],_0x18985c(0x1e6));}[_0x379bc8(0x3e6)](_0x31cf04,_0x536923,_0x123c32){return this['_n']('has',[_0x31cf04,_0x536923,_0x21a88c(_0x123c32)]);}['status'](_0x135e45,_0x1ecc6c,_0x5a67ac){const _0x307acd=_0x379bc8;return this['_n'](_0x307acd(0x424),[_0x135e45,_0x1ecc6c,_0x21a88c(_0x5a67ac)]);}[_0x379bc8(0x460)](_0x21c958,_0x2d4466){const _0x3e8cd4=_0x379bc8;return this['_n'](_0x3e8cd4(0x460),[_0x21c958,_0x21a88c(_0x2d4466)]);}async['_build'](_0x4eb49a,_0x7830e1,_0x35edcd,_0x47f8ab,_0x4d7c7c){const _0x2c6b17=_0x379bc8,_0x3c60f5=(_0x4688e1,_0x16929f)=>this[_0x2c6b17(0x44b)]['_callMacro']('fts',null,_0x4688e1,_0x16929f,!![],![]),_0x5463b1=Date[_0x2c6b17(0x200)]()+0x1d4c0;let _0xff0c8f=_0x4eb49a,_0x520fae=_0x7830e1;for(;;){try{return await _0x3c60f5(_0xff0c8f,_0x520fae);}catch(_0x263866){if(_0x263866['code']===_0x2c6b17(0x39a)){_0xff0c8f=_0x2c6b17(0x790),_0x520fae=[_0x35edcd,_0x47f8ab,_0x21a88c(_0x4d7c7c)];if(_0x263866[_0x2c6b17(0x78a)]&&_0x263866['details'][_0x2c6b17(0x48d)])await new Promise(_0x4164ba=>setTimeout(_0x4164ba,0x2));continue;}if(_0x263866['code']!==_0x2c6b17(0x495)||Date[_0x2c6b17(0x200)]()>=_0x5463b1)throw _0x263866;}await new Promise(_0x9afa59=>setTimeout(_0x9afa59,0x5)),_0xff0c8f='reset',_0x520fae=[_0x35edcd,_0x47f8ab,!![],_0x21a88c(_0x4d7c7c)];}}async[_0x379bc8(0x250)](_0xcd67d5,_0x3226a6,_0x2bcec3,_0x301c5c,_0x3453c8){const _0x9b2172=_0x379bc8;return this[_0x9b2172(0x3f1)](_0x9b2172(0x250),[_0xcd67d5,_0x3226a6,_0x2bcec3,_0x301c5c,_0x21a88c(_0x3453c8)],_0xcd67d5,_0x3226a6,_0x3453c8);}async[_0x379bc8(0x529)](_0x34d713,_0x386521,_0x541b3f){const _0x51d393=_0x379bc8;return this[_0x51d393(0x2c3)]('drop',[_0x34d713,_0x386521,_0x21a88c(_0x541b3f)]);}async[_0x379bc8(0x2cd)](_0x499bdf,_0x5a987c,_0x29d4d5,_0x515911){const _0x51c57e=_0x379bc8;return this['_build'](_0x51c57e(0x2cd),[_0x499bdf,_0x5a987c,_0x29d4d5,_0x21a88c(_0x515911)],_0x499bdf,_0x5a987c,_0x515911);}async[_0x379bc8(0x678)](_0x24bf74,_0x1498ae,_0x2b40b6,_0x40d71f){const _0x262fb8=_0x379bc8;return this['_build'](_0x262fb8(0x678),[_0x24bf74,_0x1498ae,_0x2b40b6,_0x21a88c(_0x40d71f)],_0x24bf74,_0x1498ae,_0x40d71f);}async[_0x379bc8(0x673)](_0x35cc3b,_0x43122a,_0x1d3096,_0x1d466d=0x1d4c0){const _0x4105d6=_0x379bc8,_0x442bc2=Date[_0x4105d6(0x200)]()+_0x1d466d;for(;;){try{return await this['_nm'](_0x35cc3b,[..._0x43122a,0x1]);}catch(_0x247e8e){if(_0x247e8e[_0x4105d6(0x19c)]!==_0x1d3096||Date[_0x4105d6(0x200)]()>=_0x442bc2)throw _0x247e8e;}await new Promise(_0x315fe1=>setTimeout(_0x315fe1,0x2));}}async['ready'](_0x17cd7e,_0x349e21,_0x55f58b){const _0xd16c7=_0x379bc8;return this[_0xd16c7(0x673)]('ready',[_0x17cd7e,null,_0x21a88c(_0x55f58b)],_0xd16c7(0x23f));}async[_0x379bc8(0x5eb)](_0x43f1b0,_0x5c1a25){const _0x3206f9=_0x379bc8;return this['_waitNative'](_0x3206f9(0x5eb),[_0x43f1b0,_0x21a88c(_0x5c1a25)],_0x3206f9(0x897));}async[_0x379bc8(0x8bc)](_0x1cb089,_0x40e7b1){const _0xd414ab=_0x379bc8;return this['_nm'](_0xd414ab(0x8bc),[_0x1cb089,_0x21a88c(_0x40e7b1)]);}async['process'](_0x1e6223={}){const _0xb86a25=_0x379bc8;return this[_0xb86a25(0x2c3)]('process',[_0x1e6223]);}async[_0x379bc8(0x60d)](_0x2f9b87){const _0x26f291=_0x379bc8;return this['_nm'](_0x26f291(0x60d),[_0x21a88c(_0x2f9b87)]);}[_0x379bc8(0x80a)](_0x39c4f2){return this['_n']('envSize',[_0x21a88c(_0x39c4f2)]);}['search'](_0x246f18,_0x6066f6,_0x5a4fdf,_0x4a01fc,_0x552c75){const _0x173a9b=_0x379bc8;return this['_n'](_0x173a9b(0x4c5),[_0x246f18,_0x6066f6,_0x5a4fdf,_0x4a01fc||{},_0x21a88c(_0x552c75)]);}['searchDocs'](_0x26ca50,_0x3d2b28,_0x36a168,_0x40df38,_0x5a3053,_0x4d3d25){const _0x201b53=_0x379bc8;return this['_n'](_0x201b53(0x375),[_0x26ca50,_0x3d2b28,_0x36a168,_0x40df38||{},_0x21a88c(_0x5a3053),_0x4d3d25]);}['_searchWithScores'](_0x5f0fc9,_0xc3e4ba,_0x1f9854,_0x255727,_0x52b73a){const _0x1b3190=_0x379bc8;return this['_n'](_0x1b3190(0x883),[_0x5f0fc9,_0xc3e4ba,_0x1f9854,_0x255727||{},_0x21a88c(_0x52b73a)]);}[_0x379bc8(0x6cf)](){return this['_n']('listFtsEnvs',[]);}async['drain'](){const _0x5f46b0=_0x379bc8;return this[_0x5f46b0(0x2c3)](_0x5f46b0(0x7cc),[]);}}return fts={'OKDBFts':_0x4ea288},fts;}var embeddings,hasRequiredEmbeddings;function requireEmbeddings(){const _0x9166b8=_0x7f204b;if(hasRequiredEmbeddings)return embeddings;hasRequiredEmbeddings=0x1;const {OKDBError:_0x156032,invalidArgument:_0xcd098d}=requireErrors();requireBridge();const _0x34ca7a=Object[_0x9166b8(0x888)]({'EMBEDDER':_0x9166b8(0x35c),'INDEXER':_0x9166b8(0x676),'SEARCH':'vector-search','WORKER':_0x9166b8(0x4c1)}),_0x2696c1=_0x39bd5b=>typeof _0x39bd5b===_0x9166b8(0x78e)||_0x39bd5b==null?_0x39bd5b:Array[_0x9166b8(0x52e)](_0x39bd5b);class _0x3f7e4a{constructor(_0x4ebbc5){const _0x2a535f=_0x9166b8;this[_0x2a535f(0x44b)]=_0x4ebbc5,this['_jsFactories']=new Map(),this[_0x2a535f(0x343)]=new Map(),this[_0x2a535f(0x71e)]=new Map();}['_n'](_0xbd7ade,_0x8dae62=[],_0x5e8479=!![]){const _0x37a8d2=_0x9166b8;return this[_0x37a8d2(0x44b)][_0x37a8d2(0x5a6)]('embeddings',null,_0xbd7ade,_0x8dae62,_0x5e8479);}[_0x9166b8(0x2c3)](_0x4e62c5,_0x43cd30=[]){const _0x557aa2=_0x9166b8;return this[_0x557aa2(0x44b)][_0x557aa2(0x1c4)]('embeddings',null,_0x4e62c5,_0x43cd30,!![]);}[_0x9166b8(0x8b4)](_0x473a36){const _0x4a7b9a=_0x9166b8;return _0x473a36?this[_0x4a7b9a(0x44b)]['engines']['_wrap'](_0x473a36):null;}[_0x9166b8(0x1f7)](_0x45099e,_0x17d1e5,_0xf36cf6={}){const _0x4a163f=_0x9166b8;if(typeof _0x17d1e5!==_0x4a163f(0x8a6))throw new _0x156032(_0x4a163f(0x2a4),_0x4a163f(0x672),{'name':_0x45099e});this[_0x4a163f(0x20c)][_0x4a163f(0x534)](_0x45099e,_0x17d1e5),this[_0x4a163f(0x343)]['set'](_0x45099e,_0xf36cf6);const _0x28629f=this[_0x4a163f(0x44b)],_0x1a4973=_0x507b09=>_0x17d1e5(_0x507b09,_0x28629f);_0x1a4973[_0x4a163f(0x5ae)]=_0x28629f,this['_n'](_0x4a163f(0x1f7),[_0x45099e,_0x1a4973,_0xf36cf6??{}],![]);}['getEmbedderFactory'](_0x2c3301){const _0x3f09b5=_0x9166b8,_0x3cb744=this[_0x3f09b5(0x20c)][_0x3f09b5(0x7f0)](_0x2c3301);if(_0x3cb744)return _0x3cb744;if(!this['_n']('hasEmbedderFactory',[_0x2c3301],![]))return null;const _0x3fc092=this;return(_0x5af5c9={})=>{const _0x535671=_0x3f09b5,_0x1a3d93=_0x3fc092['_n'](_0x535671(0x723),[_0x2c3301,_0x5af5c9],![]),_0x5a6ea3=_0x3fc092['_n']('hasNativeBatch',[_0x1a3d93],![]),_0x1dc5a5=(_0x549a52,_0x3624ea)=>_0x3fc092['_n']('embedderCall',[_0x1a3d93,_0x549a52,_0x3624ea],![]),_0x31726a={'embed':async _0x55fa2c=>Float32Array[_0x535671(0x52e)](_0x1dc5a5(_0x535671(0x2ad),_0x55fa2c)),'start':async()=>_0x1dc5a5(_0x535671(0x449)),'stop':async()=>{const _0x546bf8=_0x535671;_0x1dc5a5(_0x546bf8(0x4a5)),_0x1dc5a5(_0x546bf8(0x4e3));}};if(_0x5a6ea3)_0x31726a[_0x535671(0x7fb)]=async _0x1ee5a5=>_0x1dc5a5('embedBatch',_0x1ee5a5)[_0x535671(0x70b)](_0x34a84e=>Float32Array['from'](_0x34a84e));return _0x31726a;};}[_0x9166b8(0x7c9)](_0x164976){const _0x5d91e6=_0x9166b8;return this[_0x5d91e6(0x343)][_0x5d91e6(0x7f0)](_0x164976)??this['_n']('getEmbedderSchema',[_0x164976],![])??undefined;}[_0x9166b8(0x6fd)](_0xe4edb9,_0x53748b,_0x552e51={}){const _0x59fba9=_0x9166b8;if(typeof _0x53748b!=='function')throw new _0x156032(_0x59fba9(0x616),_0x59fba9(0x672),{'name':_0xe4edb9});this['_n'](_0x59fba9(0x6fd),[_0xe4edb9,(_0x371171,_0xad67b2)=>_0x53748b(_0x371171,_0xad67b2),_0x552e51??{}],![]);}[_0x9166b8(0x608)](){return this['_n']('listAlgorithms',[],![]);}[_0x9166b8(0x3dd)](_0x5d939d,_0x1bd3fb){const _0x21dc23=_0x9166b8;if(typeof _0x1bd3fb!==_0x21dc23(0x8a6))throw new _0x156032(_0x21dc23(0x7b4),_0x21dc23(0x672),{'name':_0x5d939d});this['_n'](_0x21dc23(0x3dd),[_0x5d939d,_0x1bd3fb]);}[_0x9166b8(0x418)](_0x40de34,_0x943bbf){const _0x4d32ec=_0x9166b8;if(typeof _0x943bbf!=='function')throw new _0x156032(_0x4d32ec(0x61a),_0x4d32ec(0x672),{'name':_0x40de34});this['_n']('registerChunkStrategy',[_0x40de34,_0x943bbf]);}[_0x9166b8(0x863)](_0x551338){const _0x53d52a=_0x9166b8;if(_0x551338==null)return this['_n']('setStorageResolver',[null],![]);if(typeof _0x551338!==_0x53d52a(0x8a6))throw new _0x156032('Storage\x20resolver\x20must\x20be\x20a\x20function',_0x53d52a(0x672));const _0x29d34a=this[_0x53d52a(0x44b)];this['_n'](_0x53d52a(0x863),[_0x57949f=>_0x551338(_0x57949f,_0x29d34a)],![]);}async['createEmbedder'](_0x40b4ac,_0x519025={},_0x69294a={},_0x24809d=null){const _0x4bfdfe=_0x9166b8;return this[_0x4bfdfe(0x8b4)](await this[_0x4bfdfe(0x2c3)](_0x4bfdfe(0x82a),[_0x40b4ac,_0x519025,_0x69294a,_0x24809d]));}async[_0x9166b8(0x369)](_0x7bf692,_0x3e0173={},_0xc2d1a7={}){const _0x212edf=_0x9166b8;return this[_0x212edf(0x8b4)](await this[_0x212edf(0x2c3)](_0x212edf(0x369),[_0x7bf692,_0x3e0173,_0xc2d1a7]));}async['createSearch'](_0x590410,_0x5127c6={},_0x18cdae={}){const _0x3dafc6=_0x9166b8;return this[_0x3dafc6(0x8b4)](await this[_0x3dafc6(0x2c3)](_0x3dafc6(0x2d6),[_0x590410,_0x5127c6,_0x18cdae]));}async['createWorker'](_0x40c2f3,_0x137b9b={},_0x584309={}){const _0x55be0c=_0x9166b8;return this[_0x55be0c(0x8b4)](await this[_0x55be0c(0x2c3)](_0x55be0c(0x5dd),[_0x40c2f3,_0x137b9b,_0x584309]));}async[_0x9166b8(0x46c)](_0x1d4d2f,_0x2f792b={},_0x18d0eb={}){const _0x1d070c=_0x9166b8,_0x58a4b2=await this[_0x1d070c(0x2c3)](_0x1d070c(0x46c),[_0x1d4d2f,_0x2f792b,_0x18d0eb]);return{'embedder':this['_wrap'](_0x58a4b2[_0x1d070c(0x35c)]),'indexer':this[_0x1d070c(0x8b4)](_0x58a4b2[_0x1d070c(0x676)]),'worker':this[_0x1d070c(0x8b4)](_0x58a4b2[_0x1d070c(0x7dc)]),'search':this['_wrap'](_0x58a4b2[_0x1d070c(0x4c5)]),'api':this[_0x1d070c(0x691)](_0x58a4b2[_0x1d070c(0x6b9)],_0x58a4b2['embedder']['name'],_0x58a4b2[_0x1d070c(0x7dc)]?_0x58a4b2[_0x1d070c(0x7dc)][_0x1d070c(0x5d4)]:_0x58a4b2[_0x1d070c(0x6b9)]+_0x1d070c(0x578))};}[_0x9166b8(0x6ab)](_0x2cdab7,_0x18f2ce){const _0x2572d1=_0x9166b8;return this[_0x2572d1(0x44b)]['engines'][_0x2572d1(0x6bb)](_0x2cdab7,_0x18f2ce)?.[_0x2572d1(0x6c5)]??null;}[_0x9166b8(0x35c)](_0x2f214a){const _0x1b0d46=_0x9166b8,_0x27e148=this['_running'](_0x34ca7a[_0x1b0d46(0x8a9)],_0x2f214a);if(!_0x27e148)return null;const _0x29a947=this,_0x42a85a=_0x1de009=>Array[_0x1b0d46(0x7c8)](_0x1de009)&&Array['isArray'](_0x1de009[0x0])?_0x1de009[_0x1b0d46(0x70b)](_0x2ecb02=>Float32Array['from'](_0x2ecb02)):Float32Array['from'](_0x1de009);return new Proxy(_0x27e148,{'get'(_0x7ccaad,_0x51c2c9){const _0x574504=_0x1b0d46;if(_0x51c2c9===_0x574504(0x59d))return _0x29a947[_0x574504(0x44b)]['_call'](_0x574504(0x3e1),null,'apiCall',[_0x34ca7a[_0x574504(0x8a9)],_0x2f214a,_0x574504(0x59d),[]],![])[_0x574504(0x3a5)];if(_0x51c2c9===_0x574504(0x2ad))return async _0x52974b=>_0x42a85a(await _0x27e148[_0x574504(0x2ad)](_0x52974b));if(_0x51c2c9===_0x574504(0x7fb))return async _0x59b23e=>(await _0x27e148[_0x574504(0x7fb)](_0x59b23e))[_0x574504(0x70b)](_0x18f5e2=>Float32Array['from'](_0x18f5e2));return _0x7ccaad[_0x51c2c9];}});}[_0x9166b8(0x676)](_0x1b04dd){const _0x17b152=_0x9166b8;return this[_0x17b152(0x6ab)](_0x34ca7a[_0x17b152(0x1e8)],_0x1b04dd);}['worker'](_0x10e20c){const _0x47b22f=_0x9166b8;return this[_0x47b22f(0x6ab)](_0x34ca7a[_0x47b22f(0x5a8)],_0x10e20c);}[_0x9166b8(0x4c5)](_0x1238d1){const _0x45ef04=_0x9166b8,_0x2fcb4c=this[_0x45ef04(0x6ab)](_0x34ca7a[_0x45ef04(0x1c3)],_0x1238d1);if(_0x2fcb4c)return _0x2fcb4c;return this[_0x45ef04(0x25b)](_0x1238d1);}[_0x9166b8(0x25b)](_0x385588){const _0x23360d=_0x9166b8,_0x203454=this;return{'search':(_0x1728be,_0x20b277={})=>_0x203454['okdb'][_0x23360d(0x1c4)]('embeddings',null,_0x23360d(0x4c5),[_0x385588,_0x2696c1(_0x1728be),_0x20b277],![]),'stats':async()=>_0x203454['_n'](_0x23360d(0x2f7),[_0x385588],![]),'count':()=>_0x203454['_n'](_0x23360d(0x7c7),[_0x385588,_0x23360d(0x5f8)],![])};}async['searchDocs'](_0x3b24c6,_0x292d37,_0x2f4c2f={}){const _0x69e307=_0x9166b8,{limit:limit=0xa,..._0x46e59a}=_0x2f4c2f;return this[_0x69e307(0x2c3)](_0x69e307(0x375),[_0x3b24c6,_0x2696c1(_0x292d37),{..._0x46e59a,'limit':limit}]);}[_0x9166b8(0x382)](_0x48bfdd){const _0x2a91b4=_0x9166b8;return this['_n'](_0x2a91b4(0x382),[_0x48bfdd],![]);}[_0x9166b8(0x1ab)](_0x2d6fbc,_0x15792c){const _0x41540f=_0x9166b8;return this['_n'](_0x41540f(0x2c5),[_0x2d6fbc,_0x15792c],![]);}[_0x9166b8(0x85b)](_0xb47e65){const _0x294370=_0x9166b8;return this['_n'](_0x294370(0x564),[_0xb47e65],![]);}async[_0x9166b8(0x689)](_0x3d30c4){return this['_n']('durableStats',[_0x3d30c4],![]);}async[_0x9166b8(0x732)](_0x325081,_0x216382={}){const _0x54474e=_0x9166b8;return this['_n'](_0x54474e(0x7da),[_0x325081,_0x216382],![]);}async['_durableIndexerDoc'](_0x136514,_0x4cd7c7){return this['_n']('durableDoc',[_0x136514,_0x4cd7c7],![]);}async['describeChunk'](_0x3876e8,_0x489fd7,_0x6852de,_0x351b93){const _0x1171d2=_0x9166b8;if(_0x3876e8!=null&&typeof _0x3876e8['includes']!=='function')throw _0xcd098d(_0x1171d2(0x5d4),_0x1171d2(0x702),_0x3876e8);if(!_0x3876e8||!_0x6852de)return null;return this['okdb']['_callMacro'](_0x1171d2(0x717),null,_0x1171d2(0x6e2),[_0x3876e8,_0x489fd7,_0x6852de,_0x351b93??null],![]);}async[_0x9166b8(0x244)](_0xbf384e,_0xa31583,_0xdccc09={}){const _0x327f9e=_0x9166b8,_0x4b2ac4={..._0xdccc09};if(_0x4b2ac4[_0x327f9e(0x207)])_0x4b2ac4[_0x327f9e(0x207)]=Array['from'](_0x4b2ac4['vector']);return this['_n']('durableMarkDone',[_0xbf384e,_0xa31583,_0x4b2ac4]);}async[_0x9166b8(0x1ed)](_0x53eff7,_0x5c9392,_0x5ee228,_0x4bb956={}){const _0x6cd8d9=_0x9166b8;return this['_n'](_0x6cd8d9(0x1ed),[_0x53eff7,_0x5c9392,_0x5ee228,_0x4bb956]);}async[_0x9166b8(0x50a)](_0x3091fa,_0x33a125){const _0x27b74c=_0x9166b8;return this['_n'](_0x27b74c(0x50a),[_0x3091fa,_0x33a125]);}async['durableRetryDoc'](_0x492d34,_0x2f805b){const _0x373d65=_0x9166b8;return this['_n'](_0x373d65(0x6c7),[_0x492d34,_0x2f805b]);}async[_0x9166b8(0x2eb)](_0xbf344,_0x3b1545={}){const _0x1fc104=_0x9166b8;return this['_n'](_0x1fc104(0x2eb),[_0xbf344,_0x3b1545]);}async[_0x9166b8(0x7a9)](_0x3160d0){const _0x403eb5=_0x9166b8;return this[_0x403eb5(0x2c3)](_0x403eb5(0x7a9),[_0x3160d0]);}async['_durableWorkerStats'](_0x2093e4){const _0x1289bf=_0x9166b8;return this['_n'](_0x1289bf(0x334),[_0x2093e4],![]);}['vectorStoreStats'](_0x4384e7){const _0x1e2ac1=_0x9166b8;return this['_n'](_0x1e2ac1(0x727),[_0x4384e7],![]);}[_0x9166b8(0x407)](){return this['_n']('listVectorStores',[],![]);}['getVector'](_0x563239,_0x2bef65){const _0x2f0288=_0x9166b8,_0x2daeb3=this['_n']('getVector',[_0x563239,_0x2bef65],![]);return _0x2daeb3==null?null:Float32Array[_0x2f0288(0x52e)](_0x2daeb3);}[_0x9166b8(0x2ca)](_0x46aaae,_0x4c6f53){const _0x4f265b=_0x9166b8;return this['_n'](_0x4f265b(0x2ca),[_0x46aaae,_0x4c6f53??null],![])??undefined;}async[_0x9166b8(0x75f)](_0x55948a,_0x11c141,_0x5393fb,_0x502751=''){const _0x302a2d=_0x9166b8;return this['_n'](_0x302a2d(0x75f),[_0x55948a,_0x11c141,_0x5393fb,_0x502751]);}['listModels'](_0xe654a6=null){const _0x428f84=_0x9166b8;return this['_n'](_0x428f84(0x8bd),[_0xe654a6],![]);}[_0x9166b8(0x609)](){const _0x1b05e6=_0x9166b8;return this['_n'](_0x1b05e6(0x609),[],![]);}async[_0x9166b8(0x37d)](_0x34d25c,_0x58b0fb){const _0x215c56=_0x9166b8;return this['_n'](_0x215c56(0x345),[_0x34d25c,_0x58b0fb],![]),this[_0x215c56(0x44b)][_0x215c56(0x6ec)]('~'+_0x34d25c+_0x215c56(0x4f0)+_0x58b0fb);}async[_0x9166b8(0x312)](_0x4bdee6,_0x564f79){const _0x2eef49=_0x9166b8;return await this[_0x2eef49(0x37d)](_0x4bdee6,_0x564f79),{'adapter':_0x343d44=>this[_0x2eef49(0x5cf)](_0x4bdee6,_0x564f79,_0x343d44)};}['_makeLazyVectorAdapter'](_0x195fc1,_0x1c15e3,_0x40e8c6){const _0xe8ffb=this;return{async 'put'(_0x16af2d,_0xd65f60){const _0x82a04a=_0x20a5;return _0xe8ffb['_n'](_0x82a04a(0x24a),[_0x195fc1,_0x1c15e3,_0x40e8c6,_0x16af2d,Array[_0x82a04a(0x52e)](_0xd65f60)]);},async 'remove'(_0x4e0a95){const _0x203415=_0x20a5;return _0xe8ffb['_n'](_0x203415(0x26b),[_0x195fc1,_0x1c15e3,_0x40e8c6,_0x4e0a95]);}};}get[_0x9166b8(0x5bd)](){const _0x4b8441=_0x9166b8,_0x15638b=this,_0x25bedf=()=>_0x15638b['_n'](_0x4b8441(0x5fa),[],![]),_0x3b879a=_0x56f910=>{const _0x10368b=_0x4b8441,_0x46d36d=_0x59c87c=>_0x15638b['_n'](_0x10368b(0x7c7),[_0x56f910,_0x59c87c],![]);return{'name':_0x56f910,'_evict':async()=>_0x46d36d(_0x10368b(0x1d1)),'evict':async()=>_0x46d36d('evict'),'snapshot':async()=>_0x46d36d(_0x10368b(0x6b3)),'_snapshot':async()=>_0x46d36d(_0x10368b(0x6b3)),'rebuild':async()=>_0x46d36d(_0x10368b(0x62d)),'stats':()=>_0x46d36d('stats'),get 'count'(){const _0x2187ff=_0x10368b;return _0x46d36d(_0x2187ff(0x5f8));},get 'loaded'(){const _0x323918=_0x10368b;return _0x46d36d(_0x323918(0x456));}};};return{get 'size'(){const _0x3e05dd=_0x4b8441;return _0x25bedf()[_0x3e05dd(0x29a)];},'has':_0x4bb619=>_0x25bedf()[_0x4b8441(0x3b9)](_0x4bb619),'get':_0x224dbe=>_0x25bedf()[_0x4b8441(0x3b9)](_0x224dbe)?_0x3b879a(_0x224dbe):undefined,'keys':()=>_0x25bedf()[Symbol[_0x4b8441(0x38b)]](),'values':()=>_0x25bedf()[_0x4b8441(0x70b)](_0x3b879a)[Symbol[_0x4b8441(0x38b)]](),[Symbol['iterator']]:()=>_0x25bedf()['map'](_0x347cb=>[_0x347cb,_0x3b879a(_0x347cb)])[Symbol[_0x4b8441(0x38b)]]()};}async[_0x9166b8(0x449)](){}async[_0x9166b8(0x4a5)](){this['_n']('stop',[]);}[_0x9166b8(0x691)](_0x3ba374,_0x54198b,_0x37c923){const _0x13e1f6=_0x9166b8;return{'search':(_0x22d7a5,_0x3b7ddf={})=>{const _0x9f9889=_0x20a5,_0x2f04a8=this[_0x9f9889(0x4c5)](_0x3ba374);if(!_0x2f04a8)throw new Error(_0x9f9889(0x47c)+_0x3ba374+'\x22');return _0x2f04a8[_0x9f9889(0x4c5)](_0x22d7a5,_0x3b7ddf);},'searchDocs':(_0x41323b,_0x5102fb={})=>this['searchDocs'](_0x3ba374,_0x41323b,_0x5102fb),'flush':_0x40e864=>{const _0x382f3d=_0x20a5,_0x458cd6=this[_0x382f3d(0x676)](_0x3ba374);if(!_0x458cd6)throw new Error('indexer\x20engine\x20not\x20running:\x20\x22'+_0x3ba374+'\x22');return _0x458cd6[_0x382f3d(0x5eb)](_0x40e864);},'stats':async()=>({'embedder':await this[_0x13e1f6(0x35c)](_0x54198b)?.[_0x13e1f6(0x506)]?.(),'indexer':await this[_0x13e1f6(0x676)](_0x3ba374)?.['stats']?.(),'worker':await this[_0x13e1f6(0x7dc)](_0x37c923)?.[_0x13e1f6(0x499)]?.(),'search':await this[_0x13e1f6(0x4c5)](_0x3ba374)?.[_0x13e1f6(0x499)]?.()})};}}return embeddings={'OKDBEmbeddings':_0x3f7e4a,'ENGINE_TYPES':_0x34ca7a},embeddings;}var auth,hasRequiredAuth;function requireAuth(){const _0x152e1f=_0x7f204b;if(hasRequiredAuth)return auth;hasRequiredAuth=0x1;const {invalidArgument:_0x50211c}=requireErrors();class _0x1a8756{constructor(_0x3fabe3){this['okdb']=_0x3fabe3;}['_n'](_0x377deb,_0x1b9c8c=[],_0x2f0266=![]){const _0x4290c7=_0x20a5;return this[_0x4290c7(0x44b)][_0x4290c7(0x5a6)]('auth',null,_0x377deb,_0x1b9c8c,_0x2f0266);}[_0x152e1f(0x2c3)](_0x421a90,_0x2e8607=[]){const _0x63ce88=_0x152e1f;return this[_0x63ce88(0x44b)]['_callMacro']('auth',null,_0x421a90,_0x2e8607,![]);}get[_0x152e1f(0x3b4)](){const _0x26652c=_0x152e1f;return this['_n'](_0x26652c(0x3b4));}get[_0x152e1f(0x53a)](){const _0x4e08c7=_0x152e1f;return this['_n'](_0x4e08c7(0x53a));}get[_0x152e1f(0x269)](){const _0x10fae7=_0x152e1f;return this[_0x10fae7(0x44b)][_0x10fae7(0x51a)][_0x10fae7(0x3bc)]?.[_0x10fae7(0x68e)]||{};}[_0x152e1f(0x6af)](_0x463247){const _0x19a17e=_0x152e1f;return this['_n'](_0x19a17e(0x6af),[_0x463247??null]);}['_isOpenForIp'](_0xd06f3d){const _0x4a95c5=_0x152e1f;return this['_n'](_0x4a95c5(0x5a2),[_0xd06f3d??null]);}[_0x152e1f(0x881)](_0x59a79f){const _0x29dbfc=_0x152e1f;return this['_n'](_0x29dbfc(0x2af),[_0x59a79f??null]);}[_0x152e1f(0x39f)](){return this['_n']('isBootstrap');}[_0x152e1f(0x756)](){const _0x25c808=_0x152e1f;return this['_n'](_0x25c808(0x756));}[_0x152e1f(0x7e6)](){const _0x9fdeb0=_0x152e1f;return this['_n'](_0x9fdeb0(0x7e6));}[_0x152e1f(0x371)](_0x23315b){const _0x113998=_0x152e1f;return this['_n'](_0x113998(0x371),[_0x23315b]);}[_0x152e1f(0x725)](_0x257194){const _0x2207a1=_0x152e1f;return this['_n'](_0x2207a1(0x725),[_0x257194]);}[_0x152e1f(0x7a1)](_0x321717){const _0x2c51ba=_0x152e1f;if(_0x321717!=null&&typeof _0x321717!==_0x2c51ba(0x78e))throw _0x50211c(_0x2c51ba(0x1fe),'a\x20string',_0x321717);return this['_n'](_0x2c51ba(0x7a1),[_0x321717??null]);}async[_0x152e1f(0x8c0)](){const _0x17a101=_0x152e1f;return this['_n'](_0x17a101(0x577),[],!![]);}async[_0x152e1f(0x76c)](_0x20007c){const _0x1c9c7a=_0x152e1f;return this['_n'](_0x1c9c7a(0x6b1),[_0x20007c]);}async[_0x152e1f(0x7d5)](_0x1ca184){const _0x4b2668=_0x152e1f;return this['_n'](_0x4b2668(0x769),[_0x1ca184]);}async[_0x152e1f(0x1da)](_0x186a1c){const _0x1ac7e7=_0x152e1f;return this['_n'](_0x1ac7e7(0x5b4),[_0x186a1c]);}async[_0x152e1f(0x6c8)](_0x551ef4){const _0xa4934=_0x152e1f,_0x223ebe=_0x551ef4?.[_0xa4934(0x752)]||{};return this['_n'](_0xa4934(0x6c8),[{'remoteAddress':_0x551ef4['socket']?.[_0xa4934(0x739)]??null,'internal':_0x551ef4?.[_0xa4934(0x58a)]?.[_0xa4934(0x839)]===!![],'authorization':_0x223ebe[_0xa4934(0x63e)]??null,'cookies':_0x551ef4?.[_0xa4934(0x76d)]??{}}]);}async[_0x152e1f(0x4cd)](_0x7cce95,_0x229811){const _0x3fcfa4=_0x152e1f;return this[_0x3fcfa4(0x2c3)](_0x3fcfa4(0x4cd),[_0x7cce95??null,_0x229811??null]);}async['loginSelect'](_0x3928b8,_0x5887d4,_0x4bce47){const _0x20cc0a=_0x152e1f;return this[_0x20cc0a(0x2c3)](_0x20cc0a(0x623),[_0x3928b8??null,_0x5887d4??null,_0x4bce47??null]);}['getSecurityNotices'](){const _0x4e2070=_0x152e1f;return this['_n'](_0x4e2070(0x221));}[_0x152e1f(0x26e)](){const _0x128cb9=_0x152e1f;return this['_n'](_0x128cb9(0x26e));}[_0x152e1f(0x67e)](_0x38f1f1={},_0x500380=0x927c0){const _0x9bb57b=_0x152e1f;return this['_n'](_0x9bb57b(0x67e),[_0x38f1f1,_0x500380]);}[_0x152e1f(0x6d2)](_0x3e693a){const _0x4cf8c6=_0x152e1f;return this['_n'](_0x4cf8c6(0x6d2),[_0x3e693a]);}async[_0x152e1f(0x3e5)](_0x4267e5,_0x4e6383={}){const _0x2af98b=_0x152e1f;return this[_0x2af98b(0x2c3)](_0x2af98b(0x21d),[_0x4267e5,_0x4e6383]);}async[_0x152e1f(0x4ec)](_0x4a8036={}){const _0x50105d=_0x152e1f;return this[_0x50105d(0x2c3)](_0x50105d(0x677),[_0x4a8036]);}['_normalizeOAuthAuthResult'](_0x200850){const _0xfa61b2=_0x152e1f;return this['_n'](_0xfa61b2(0x781),[_0x200850]);}}return auth={'OKDBAuth':_0x1a8756},auth;}var sync,hasRequiredSync;function requireSync(){const _0x37a99f=_0x7f204b;if(hasRequiredSync)return sync;hasRequiredSync=0x1;const {RawDb:_0x590ce6}=requireRawdb();class _0x466475{constructor(_0x118a0f){this['_s']=_0x118a0f;}get['_ackDb'](){const _0x38a746=_0x20a5;return this[_0x38a746(0x50f)]||(this[_0x38a746(0x50f)]=new _0x590ce6(this['_s'][_0x38a746(0x44b)][_0x38a746(0x197)],'__sync:acks'));}[_0x37a99f(0x476)](){const _0x1bfa6d=_0x37a99f;return this[_0x1bfa6d(0x4d5)];}[_0x37a99f(0x85f)](){const _0x3c5fb9=_0x37a99f;return this[_0x3c5fb9(0x4d5)];}['_n'](_0x19b05b,_0x1a2d9f=[]){const _0x3c77af=_0x37a99f;return this['_s']['_n'](_0x3c77af(0x559)+_0x19b05b,_0x1a2d9f);}[_0x37a99f(0x759)](_0x3123dd,_0x56d11b){return this['_n']('recordPeerAck',[_0x3123dd,_0x56d11b]);}async[_0x37a99f(0x1f3)](_0x2eab4e){const _0x22aa54=_0x37a99f;return this['_n'](_0x22aa54(0x1f3),[_0x2eab4e]);}[_0x37a99f(0x78d)](){const _0x52d6a8=_0x37a99f;return this['_n'](_0x52d6a8(0x78d));}[_0x37a99f(0x6f6)](_0x33cdae){return this['_n']('getGcHorizon',[_0x33cdae]);}async[_0x37a99f(0x787)](){const _0x1d5fa0=_0x37a99f;return this['_n'](_0x1d5fa0(0x787));}['getStatus'](){const _0xe190fd=_0x37a99f;return this['_n'](_0xe190fd(0x70d));}[_0x37a99f(0x449)](){const _0x5ec153=_0x37a99f;return this['_n'](_0x5ec153(0x449));}[_0x37a99f(0x4a5)](){const _0x2eae90=_0x37a99f;return this['_n'](_0x2eae90(0x4a5));}get['_gcTimer'](){const _0x4845cc=_0x37a99f;try{return this['_n'](_0x4845cc(0x23a))?{}:null;}catch{return null;}}}class _0x2529ca{constructor(_0x24cd2f){const _0xa83002=_0x37a99f;this[_0xa83002(0x44b)]=_0x24cd2f,this['gc']=new _0x466475(this);const _0x811ecc=this;this[_0xa83002(0x51a)]=new Proxy({},{'get':(_0x3c81,_0x5ca0fb)=>typeof _0x5ca0fb==='string'?_0x811ecc['_n'](_0xa83002(0x51a))[_0x5ca0fb]:undefined,'set':(_0x51ddb0,_0x65671f,_0x2d9044)=>{const _0xd3aca7=_0xa83002;if(_0x65671f==='address')_0x811ecc['_n']('setAddress',[_0x2d9044??null]);else{if(_0x65671f==='token')_0x811ecc['_n']('setToken',[_0x2d9044??null]);else{if(_0x65671f===_0xd3aca7(0x4af))_0x811ecc['_n']('setDeltaLimit',[_0x2d9044]);}}return!![];},'ownKeys':()=>Object[_0xa83002(0x62c)](_0x811ecc['_n'](_0xa83002(0x51a))),'getOwnPropertyDescriptor':(_0x35f7ce,_0x10d8c1)=>({'enumerable':!![],'configurable':!![],'value':_0x811ecc['_n'](_0xa83002(0x51a))[_0x10d8c1]}),'has':(_0x5d9d57,_0x125606)=>_0x125606 in _0x811ecc['_n'](_0xa83002(0x51a))});}['_n'](_0x3f489f,_0x469276=[],_0x1c079b=![]){const _0x1fbc0e=_0x37a99f;return this[_0x1fbc0e(0x44b)][_0x1fbc0e(0x5a6)]('sync',null,_0x3f489f,_0x469276,_0x1c079b);}[_0x37a99f(0x2c3)](_0x52ed2b,_0x1378d3=[]){const _0x80c1ae=_0x37a99f;return this['okdb'][_0x80c1ae(0x1c4)](_0x80c1ae(0x65b),null,_0x52ed2b,_0x1378d3,!![]);}get[_0x37a99f(0x6b5)](){const _0x559b32=_0x37a99f;return this[_0x559b32(0x527)]||(this['_pdb']=new _0x590ce6(this[_0x559b32(0x44b)][_0x559b32(0x197)],'__sync:peer_state'));}[_0x37a99f(0x422)](){const _0x475f1b=_0x37a99f;return this[_0x475f1b(0x6b5)];}get[_0x37a99f(0x457)](){const _0x4bd5c0=_0x37a99f;return this[_0x4bd5c0(0x448)]||(this[_0x4bd5c0(0x448)]=new(requireLock())[(_0x4bd5c0(0x1ec))](this[_0x4bd5c0(0x44b)],_0x4bd5c0(0x870),_0x4bd5c0(0x65b),{'ttlMs':0x7530}));}get[_0x37a99f(0x1d3)](){const _0x4d8358=_0x37a99f;return this['_n'](_0x4d8358(0x51a))[_0x4d8358(0x1d3)];}get[_0x37a99f(0x42b)](){const _0x3dc053=_0x37a99f;return this[_0x3dc053(0x44b)][_0x3dc053(0x393)]&&this['_n']('drives')?{}:null;}get['_pokeListener'](){const _0x4de05d=_0x37a99f;return this[_0x4de05d(0x42b)];}get[_0x37a99f(0x66e)](){const _0x85d691=_0x37a99f;return this['_n'](_0x85d691(0x4bb))?.[_0x85d691(0x77f)];}get[_0x37a99f(0x24b)](){const _0x5aed9d=_0x37a99f;return this['_n'](_0x5aed9d(0x4bb))?.['publicKey'];}[_0x37a99f(0x7a4)](){const _0x415d7b=_0x37a99f;return this['_n'](_0x415d7b(0x7a4));}[_0x37a99f(0x640)](){const _0x59556a=_0x37a99f;return this['_n'](_0x59556a(0x640));}get[_0x37a99f(0x472)](){const _0x5bd2ec=_0x37a99f;return this[_0x5bd2ec(0x24d)]||(()=>this['_n'](_0x5bd2ec(0x472)));}set[_0x37a99f(0x472)](_0x17b226){const _0x134bed=_0x37a99f;this[_0x134bed(0x24d)]=typeof _0x17b226===_0x134bed(0x8a6)?_0x17b226:null,this['_n'](_0x134bed(0x19b),[this[_0x134bed(0x24d)]]);}[_0x37a99f(0x293)](){const _0x4c8dcf=_0x37a99f;return this['_n'](_0x4c8dcf(0x41b));}async[_0x37a99f(0x6ac)](){const _0x5bc2bc=_0x37a99f;return this[_0x5bc2bc(0x2c3)](_0x5bc2bc(0x6ac));}async[_0x37a99f(0x2c0)](_0x1f2aca){const _0xcbcb5c=_0x37a99f;return this[_0xcbcb5c(0x2c3)]('reconcilePeer',[_0x1f2aca]);}async['_reconcilePeer'](_0x71804a,_0x39bca9={}){const _0x2d1b7d=_0x37a99f;return this[_0x2d1b7d(0x2c3)](_0x2d1b7d(0x1be),[_0x71804a,_0x39bca9]);}[_0x37a99f(0x4a5)](){const _0x2d9c0f=_0x37a99f;return this['_n'](_0x2d9c0f(0x4a5));}[_0x37a99f(0x358)](){const _0x458ca0=_0x37a99f;return this['_n'](_0x458ca0(0x358));}async[_0x37a99f(0x469)](_0x2e5b80,_0x384034={}){return this['_n']('upsertLink',[_0x2e5b80,_0x384034],!![]);}async[_0x37a99f(0x73a)](_0x2b9302){return this['_n']('removeLink',[_0x2b9302],!![]);}['_getNodeRecord'](_0x5758a7){const _0x597b09=_0x37a99f;return this['_n'](_0x597b09(0x741),[_0x5758a7]);}['_getPeerState'](_0x27fa4b){const _0x422999=_0x37a99f;return this['_n'](_0x422999(0x7fa),[_0x27fa4b]);}async[_0x37a99f(0x1cd)](_0x820a71,_0x4c9f3b,_0x5142a4={}){const _0x9bbf96=_0x37a99f;return this['_n'](_0x9bbf96(0x6fc),[_0x820a71,_0x4c9f3b,_0x5142a4]);}async[_0x37a99f(0x81e)](_0x22948c){const _0x4d4fed=_0x37a99f;return this['_n'](_0x4d4fed(0x4e2),[_0x22948c]);}async[_0x37a99f(0x708)](){const _0x4fd872=_0x37a99f;return this['_n'](_0x4fd872(0x2cd),[],!![]);}async[_0x37a99f(0x686)](_0x3b5827){const _0x4c0c5c=_0x37a99f;return this['_n'](_0x4c0c5c(0x686),[_0x3b5827],!![]);}async[_0x37a99f(0x437)](_0x527b33,_0x4377f7={}){const _0x23c8cc=_0x37a99f;return this[_0x23c8cc(0x2c3)](_0x23c8cc(0x437),[_0x527b33,_0x4377f7]);}async[_0x37a99f(0x19d)](_0x20369d={},_0x586f7e={}){const _0x2aa9e3=_0x37a99f;return void _0x20369d[_0x2aa9e3(0x870)],this['_n'](_0x2aa9e3(0x19d),[_0x20369d,_0x586f7e]);}async[_0x37a99f(0x72f)](_0x2a2716,_0x215dfa,_0x5ca615,_0x54228d){const _0x4e2dd6=_0x37a99f;return this[_0x4e2dd6(0x2c3)]('fetchPeer',[_0x2a2716,_0x215dfa,_0x5ca615,_0x54228d??null]);}async[_0x37a99f(0x7a6)](_0x3afcf1,_0x35ece4,_0x5a02b1={}){const _0x2ab102=_0x37a99f;return this['_nm'](_0x2ab102(0x7a6),[_0x3afcf1,_0x35ece4,_0x5a02b1]);}[_0x37a99f(0x4fc)](_0x1c3939,_0x43f6f8=null){const _0x4711c7=_0x37a99f;return this['_n'](_0x4711c7(0x793),[_0x1c3939,_0x43f6f8?_0x43f6f8['name']:null]);}[_0x37a99f(0x61e)](_0x1ac3a9,_0x20000f=null){const _0x3506a3=_0x37a99f;return this['_n'](_0x3506a3(0x61e),[_0x1ac3a9,_0x20000f?_0x20000f[_0x3506a3(0x5d4)]:null],!![]);}}return sync={'OKDBSync':_0x2529ca},sync;}var migrate,hasRequiredMigrate;function requireMigrate(){const _0x4265b9=_0x7f204b;if(hasRequiredMigrate)return migrate;hasRequiredMigrate=0x1;const {optionsArg:_0x2b36fb}=requireErrors(),_0x3d4235=require$$0,_0x321f88=require$$4,_0x119cd1=0x40*0x400;async function _0x59b8da(_0x139cd2,_0x461015){const _0x35118e=_0x20a5;for(let _0x3e6d00=0x0;_0x3e6d00<_0x461015['length'];){let _0x5503ed=Math[_0x35118e(0x415)](_0x461015[_0x35118e(0x29a)],_0x3e6d00+_0x119cd1);if(_0x5503ed<_0x461015[_0x35118e(0x29a)]){const _0x146f3d=_0x461015[_0x35118e(0x698)](0xa,_0x5503ed-0x1);_0x5503ed=_0x146f3d===-0x1?_0x461015['length']:_0x146f3d+0x1;}const _0x1322c1=_0x139cd2['write'](_0x461015['subarray'](_0x3e6d00,_0x5503ed));_0x3e6d00=_0x5503ed;if(!_0x1322c1)await new Promise(_0x5af18a=>_0x139cd2[_0x35118e(0x3e8)](_0x35118e(0x7cc),_0x5af18a));await new Promise(_0x2b09f3=>setImmediate(_0x2b09f3));}}async function _0x16b6da(_0x152cb6){const _0x18d7f=_0x20a5,_0x4babce=[];for await(const _0x170c97 of _0x152cb6)_0x4babce[_0x18d7f(0x373)](Buffer[_0x18d7f(0x2e0)](_0x170c97)?_0x170c97:Buffer[_0x18d7f(0x52e)](_0x170c97,_0x18d7f(0x704)));return Buffer['concat'](_0x4babce);}class _0x2e3e6e{constructor(_0x4544a6){const _0x103264=_0x20a5;this[_0x103264(0x44b)]=_0x4544a6;}['_n'](_0x4e0188,_0x420115){const _0x760555=_0x20a5;return this[_0x760555(0x44b)][_0x760555(0x5a6)](_0x760555(0x37c),null,_0x4e0188,_0x420115,!![]);}async[_0x4265b9(0x67d)](_0x411ab3,_0x304562={}){const _0x13f6b2=_0x4265b9,{data:_0x2f8aba,stats:_0x37459d}=this['_n']('exportBuf',[_0x304562]);return await _0x59b8da(_0x411ab3,Buffer[_0x13f6b2(0x52e)](_0x2f8aba)),_0x37459d;}async[_0x4265b9(0x580)](_0x3eae5f,_0x596e61={}){const _0x463ec0=_0x4265b9;_0x3d4235[_0x463ec0(0x51c)](_0x321f88[_0x463ec0(0x2e7)](_0x3eae5f),{'recursive':!![]});const _0x49de41=_0x3d4235[_0x463ec0(0x5af)](_0x3eae5f),_0x52a26d=await this[_0x463ec0(0x67d)](_0x49de41,_0x596e61);return await new Promise((_0x50cea6,_0x12932c)=>{const _0x876b89=_0x463ec0;_0x49de41[_0x876b89(0x5ea)](),_0x49de41[_0x876b89(0x3e8)](_0x876b89(0x208),_0x50cea6),_0x49de41[_0x876b89(0x3e8)](_0x876b89(0x2f5),_0x12932c);}),{..._0x52a26d,'filePath':_0x3eae5f};}async[_0x4265b9(0x52d)](_0x515e6c,_0x322078={}){const _0x357449=_0x4265b9,{data:_0x58bdf2,stats:_0x4afdb7}=this['_n']('exportEnvsBuf',[_0x322078]);return await _0x59b8da(_0x515e6c,Buffer[_0x357449(0x52e)](_0x58bdf2)),_0x4afdb7;}async['importFromStream'](_0x53d379,_0x421640={}){const _0x536483=_0x4265b9,_0x16cea2=await _0x16b6da(_0x53d379),{onProgress:_0x57c127,..._0x5c827d}=_0x421640,_0x1314c5=this['_n'](_0x536483(0x69b),[_0x16cea2,_0x5c827d]);if(typeof _0x57c127===_0x536483(0x8a6))_0x57c127({'type':null,'count':_0x1314c5['records']});return _0x1314c5;}async[_0x4265b9(0x7c2)](_0x3616c,_0x222ff6={}){const _0x55b098=_0x4265b9;return this[_0x55b098(0x391)](_0x3d4235[_0x55b098(0x5f9)](_0x3616c,{'encoding':_0x55b098(0x704)}),_0x222ff6);}async[_0x4265b9(0x322)](_0x121af7,_0x399fea={}){const _0x4d733f=_0x4265b9;return this['_n'](_0x4d733f(0x322),[_0x121af7,_0x399fea]);}[_0x4265b9(0x898)](){const _0x1cc887=_0x4265b9;return this['_n'](_0x1cc887(0x898),[]);}[_0x4265b9(0x548)](_0x3f7200){const _0x192c56=_0x4265b9;return this['_n'](_0x192c56(0x548),[_0x3f7200??null]);}async[_0x4265b9(0x7a8)](_0x3db6f0={}){const _0x5a07fd=_0x4265b9;return this['_n'](_0x5a07fd(0x7a8),[_0x3db6f0]);}async['import'](_0x223335,_0x58af99={}){const _0x2ab454=_0x4265b9;return this['_n'](_0x2ab454(0x86c),[_0x223335,_0x58af99]);}async[_0x4265b9(0x568)](_0x41ccb7){const _0x52c631=_0x4265b9,{pretty:pretty=![]}=_0x2b36fb(_0x41ccb7);return JSON[_0x52c631(0x427)](await this[_0x52c631(0x7a8)](),null,pretty?0x2:0x0);}async[_0x4265b9(0x47e)](_0xf9bf6d){const _0x5b071e=_0x4265b9;return this[_0x5b071e(0x86c)](JSON[_0x5b071e(0x746)](_0xf9bf6d));}[_0x4265b9(0x2ef)](){const _0x39de1e=_0x4265b9;if(!this[_0x39de1e(0x44b)][_0x39de1e(0x3fd)]['get'](_0x39de1e(0x803))?.[_0x39de1e(0x277)])throw new Error(_0x39de1e(0x633));}async[_0x4265b9(0x3c3)](_0xd773de){const _0x59874e=_0x4265b9;return this['_assertFiles'](),this['_n'](_0x59874e(0x3c3),[_0xd773de]);}async[_0x4265b9(0x305)](_0x52a149){const _0x516ac8=_0x4265b9;return this[_0x516ac8(0x2ef)](),this['_n'](_0x516ac8(0x305),[_0x52a149]);}[_0x4265b9(0x37b)](){const _0x183fc7=_0x4265b9;return this['_n'](_0x183fc7(0x7d4),[])[_0x183fc7(0x70b)](_0x53e6f5=>this[_0x183fc7(0x44b)][_0x183fc7(0x27b)](_0x53e6f5));}async[_0x4265b9(0x728)](){const _0x3306ba=_0x4265b9;return this[_0x3306ba(0x2ef)](),this['_n'](_0x3306ba(0x728),[]);}async[_0x4265b9(0x7b2)](){const _0x1f2304=_0x4265b9;return this['_assertFiles'](),this['_n'](_0x1f2304(0x7b2),[]);}}return migrate={'OKDBMigrate':_0x2e3e6e},migrate;}var mcp,hasRequiredMcp;function requireMcp(){const _0x340249=_0x7f204b;if(hasRequiredMcp)return mcp;hasRequiredMcp=0x1;class _0x3682ca{constructor(_0x14fe86){const _0x3b5228=_0x20a5;this[_0x3b5228(0x44b)]=_0x14fe86,this[_0x3b5228(0x290)]=new Map();}['_n'](_0x248f5c,_0x16d43c){const _0x25dc0c=_0x20a5;try{return this['okdb'][_0x25dc0c(0x5a6)]('mcp',null,_0x248f5c,_0x16d43c,!![]);}catch(_0x3938bd){if(_0x3938bd&&_0x3938bd['code']===_0x25dc0c(0x3ac)&&_0x3938bd['details']){if(_0x3938bd['details'][_0x25dc0c(0x60f)]!==undefined)_0x3938bd['jsonrpcCode']=_0x3938bd[_0x25dc0c(0x78a)][_0x25dc0c(0x60f)];_0x3938bd[_0x25dc0c(0x78a)]=_0x3938bd['details'][_0x25dc0c(0x78a)],_0x3938bd[_0x25dc0c(0x19c)]=undefined;}throw _0x3938bd;}}['_tools'](){const _0x30a41f=_0x20a5;return this['_n'](_0x30a41f(0x735),[]);}async[_0x340249(0x5a6)](_0x5e94c8,_0x2d3f1a={}){const _0x396716=_0x340249;return this['_n'](_0x396716(0x3ce),[_0x5e94c8??null,_0x2d3f1a??{}]);}async['_handle'](_0x1f8358,_0x10e90d={}){const _0x350abd=_0x340249;return this['_n'](_0x350abd(0x7d1),[_0x1f8358,_0x10e90d??{}]);}['_initialize'](_0x155844){return this['_n']('initialize',[_0x155844??null]);}}return mcp={'OKDBMcp':_0x3682ca},mcp;}var sys,hasRequiredSys;function requireSys(){const _0x3f6abf=_0x7f204b;if(hasRequiredSys)return sys;hasRequiredSys=0x1;function _0x484f17(_0x426b33,_0x38f087,_0x37e98e){const _0x3c4e5f=_0x20a5,_0x331ba3={};for(const [_0x41feea,_0x2327db]of Object[_0x3c4e5f(0x488)](_0x37e98e)){_0x331ba3[_0x41feea]=_0x2327db==='async'?async(..._0x4dbb71)=>_0x426b33['_call'](_0x38f087,null,_0x41feea,_0x4dbb71):(..._0x3b63c5)=>_0x426b33['_call'](_0x38f087,null,_0x41feea,_0x3b63c5,![]);}return _0x331ba3;}const _0x46e976=[_0x3f6abf(0x8b8),'isType',_0x3f6abf(0x654),_0x3f6abf(0x263),_0x3f6abf(0x3d0),_0x3f6abf(0x3e0),_0x3f6abf(0x2dc),_0x3f6abf(0x820),_0x3f6abf(0x562),_0x3f6abf(0x485),'indexStats',_0x3f6abf(0x49c),'describeAllTypesDetailed','meta','getTypeCount',_0x3f6abf(0x37a),_0x3f6abf(0x353),'areIndexesReady','explainIndex',_0x3f6abf(0x750),_0x3f6abf(0x77c)],_0x36e3b9={'add':'async','activate':_0x3f6abf(0x28f),'remove':_0x3f6abf(0x28f),'list':_0x3f6abf(0x65b),'get':'sync','effective':'sync'},_0x310ce3={'open':'async','register':_0x3f6abf(0x28f),'buildOwnRow':'sync','_buildProcessingFacet':_0x3f6abf(0x65b),'reportThreadStats':_0x3f6abf(0x65b),'clearThreadStats':_0x3f6abf(0x65b),'emitProc':_0x3f6abf(0x65b),'addSupervisedChild':_0x3f6abf(0x28f),'removeSupervisedChild':_0x3f6abf(0x65b),'updateSupervisedChildStats':_0x3f6abf(0x65b),'publishChildRow':'async','putNode':_0x3f6abf(0x28f),'removeNode':_0x3f6abf(0x28f),'nodeDead':'sync','listNodes':_0x3f6abf(0x65b),'reap':'async','publishOwnRow':_0x3f6abf(0x28f),'deregisterSelf':_0x3f6abf(0x28f),'setOwnMeta':_0x3f6abf(0x65b),'noteListenAddr':_0x3f6abf(0x65b),'hasDesired':_0x3f6abf(0x65b),'getDesired':_0x3f6abf(0x65b),'setDesired':'async','listDesired':_0x3f6abf(0x65b),'getCmd':_0x3f6abf(0x65b),'bumpCmd':_0x3f6abf(0x28f),'processingStatusView':_0x3f6abf(0x65b),'processorsView':_0x3f6abf(0x65b),'clusterStatusView':_0x3f6abf(0x65b),'nodesView':'sync','treeView':'sync','getProcess':_0x3f6abf(0x65b),'runtimeProcessesView':_0x3f6abf(0x65b)};function _0x159065(_0x96d7cc){const _0x213779=_0x3f6abf,_0x3127f1={},_0x343a19=_0xbfc8ab=>_0xbfc8ab&&typeof _0xbfc8ab==='object'&&!Array['isArray'](_0xbfc8ab)&&typeof _0xbfc8ab['name']==='string'?_0xbfc8ab['name']:_0xbfc8ab;for(const _0x320175 of _0x46e976)_0x3127f1[_0x320175]=_0x320175==='recomputeFields'?async(..._0x5a6540)=>_0x96d7cc['_call'](_0x213779(0x719),null,_0x320175,_0x5a6540[_0x213779(0x70b)](_0x343a19),!![]):(..._0x380c6f)=>_0x96d7cc['_call'](_0x213779(0x719),null,_0x320175,_0x380c6f[_0x213779(0x70b)](_0x343a19),![]);return _0x3127f1;}function _0x112f1d(_0xddb0e4){const _0x50263f=_0x3f6abf,_0x2878a6=_0x484f17(_0xddb0e4,_0x50263f(0x34d),_0x36e3b9);return _0x2878a6;}function _0x56ab11(_0x5bc8ec){const _0x423ecd=_0x3f6abf,_0x1e4973=()=>_0x5bc8ec['licenses'][_0x423ecd(0x1b1)](),_0x5db777=_0x379373=>_0x379373['free']?{..._0x379373,'_isFree':!![]}:_0x379373;return{async 'addLicense'(_0x5682f1){const _0xaa42fe=_0x423ecd;return _0x5bc8ec['licenses'][_0xaa42fe(0x6a0)](_0x5682f1);},async 'reload'(){},async 'recheck'(){},get 'active'(){const _0x38c56f=_0x423ecd,_0x4c38f1=_0x1e4973();return _0x4c38f1[_0x38c56f(0x4e3)]?null:_0x4c38f1;},get 'effective'(){return _0x5db777(_0x1e4973());},'hasLimit'(_0x3f0c38){const _0x12d182=_0x423ecd,_0x1957ab=_0x1e4973();if(!_0x1957ab['enforced'])return![];const _0x1ce560=_0x1957ab[_0x12d182(0x235)]?.[_0x3f0c38];return!(_0x1ce560===null||_0x1ce560===undefined||_0x1ce560===0x0);},'isFeatureEnabled'(_0x3fc775){const _0x72e21a=_0x1e4973();return!_0x72e21a['enforced']||!!_0x72e21a['features']?.[_0x3fc775];},'assertFeature'(_0x47a729){const _0x6518c3=_0x423ecd,_0xc748fb=_0x1e4973();if(!_0xc748fb['enforced']||_0xc748fb[_0x6518c3(0x81b)]?.[_0x47a729])return;const {OKDBError:_0x441c45}=requireErrors(),_0x31b585=_0xc748fb[_0x6518c3(0x4e3)]?_0x6518c3(0x64f)+_0x47a729+_0x6518c3(0x666)+_0x47a729+'\x22\x20to\x20enable\x20it.':_0x6518c3(0x5fe)+_0x47a729+_0x6518c3(0x32d)+_0x47a729+'\x22.';throw new _0x441c45(_0x31b585,'LICENSE_FEATURE_DISABLED',{'feature':_0x47a729});},'assertLimit'(_0x54c674,_0x17095a){const _0x31324d=_0x423ecd,_0x127f79=_0x1e4973();if(!_0x127f79[_0x31324d(0x346)])return;const _0x3f396d=_0x127f79[_0x31324d(0x235)]?.[_0x54c674];if(_0x3f396d===null||_0x3f396d===undefined||_0x3f396d===0x0)return;if(_0x17095a>=_0x3f396d){const {OKDBError:_0x122401}=requireErrors();throw new _0x122401(_0x31324d(0x536)+_0x54c674+'\x20('+_0x17095a+'/'+_0x3f396d+')',_0x31324d(0x62e),{'limit':_0x54c674,'current':_0x17095a,'max':_0x3f396d});}},'listLicenses'(){const _0x4a3f66=_0x423ecd;return _0x5bc8ec[_0x4a3f66(0x34d)][_0x4a3f66(0x460)]();},'getPins'(){const _0xa95f7e=_0x423ecd;return _0x5bc8ec['licenses'][_0xa95f7e(0x460)]()[_0xa95f7e(0x70b)](_0x32b2dd=>({'licenseId':_0x32b2dd['id'],'pin':_0x32b2dd[_0xa95f7e(0x225)]===_0xa95f7e(0x377)?null:_0x32b2dd[_0xa95f7e(0x850)]}));}};}function _0x3eab84(_0x1a04d5){const _0x53523e=_0x3f6abf,_0xf1af5a=_0x484f17(_0x1a04d5,_0x53523e(0x7a7),_0x310ce3);Object[_0x53523e(0x4d6)](_0xf1af5a,_0x53523e(0x365),{'get':()=>_0x1a04d5[_0x53523e(0x5a6)]('processes',null,'selfKey',[],![])}),Object['defineProperty'](_0xf1af5a,_0x53523e(0x5b2),{'get':()=>_0x1a04d5[_0x53523e(0x5a6)](_0x53523e(0x7a7),null,_0x53523e(0x5b2),[],![])}),_0xf1af5a[_0x53523e(0x5ad)]=null;const _0x46b44c=_0xf1af5a[_0x53523e(0x724)];_0xf1af5a[_0x53523e(0x724)]=_0x1c0109=>{return _0xf1af5a['_listenAddr']=_0x1c0109,_0x46b44c(_0x1c0109);};const _0xea7ec3=()=>_0xf1af5a['listNodes']()['map'](_0x514ee7=>({'key':_0x514ee7['nodeKey'],'value':_0x514ee7,'version':0x1})),_0x42f36e={'name':_0x53523e(0x794),'_sync':![],'_isOpen':!![],'isProcessStore':!![],'hasType':_0x1e07a5=>_0x1e07a5===_0x53523e(0x602),'getRange':_0x49c7e0=>_0x49c7e0==='node'?_0xea7ec3()[Symbol['iterator']]():[][Symbol[_0x53523e(0x38b)]](),'getKeys':_0x306c19=>_0x306c19===_0x53523e(0x602)?_0xea7ec3()[_0x53523e(0x70b)](_0x13372f=>_0x13372f[_0x53523e(0x3d3)])[Symbol[_0x53523e(0x38b)]]():[][Symbol['iterator']](),'getValues':_0x428f53=>_0x428f53==='node'?_0xea7ec3()[_0x53523e(0x70b)](_0x35e298=>_0x35e298['value'])[Symbol[_0x53523e(0x38b)]]():[][Symbol['iterator']](),'get':(_0xc1af2b,_0x2b95d7)=>_0xc1af2b==='node'?_0xea7ec3()[_0x53523e(0x7cb)](_0x5ebee5=>_0x5ebee5['key']===_0x2b95d7)?.[_0x53523e(0x3a5)]:undefined,'getCount':_0x5933d1=>_0x5933d1==='node'?_0xea7ec3()[_0x53523e(0x29a)]:0x0};Object[_0x53523e(0x4d6)](_0xf1af5a,_0x53523e(0x87a),{'get':()=>_0x1a04d5[_0x53523e(0x5a6)](_0x53523e(0x7a7),null,_0x53523e(0x484),[],![])?_0x42f36e:null});const _0x32db2f=_0xf1af5a[_0x53523e(0x377)];_0xf1af5a[_0x53523e(0x377)]=async _0x4e5001=>{return await _0x32db2f(_0x4e5001),_0xf1af5a['_statusEnv'];},_0xf1af5a['_ensureDesired']=()=>_0x1a04d5['_call'](_0x53523e(0x7a7),null,_0x53523e(0x398),[],!![]);const {RawDb:_0x3c066d}=requireRawdb();return Object['defineProperty'](_0xf1af5a,'_desired',{'get':()=>_0x1a04d5['_systemEnv']?_0xf1af5a['__desired']||=new _0x3c066d(_0x1a04d5[_0x53523e(0x197)],_0x53523e(0x40c)):undefined}),Object[_0x53523e(0x4d6)](_0xf1af5a,'_cmd',{'get':()=>_0x1a04d5[_0x53523e(0x197)]?_0xf1af5a[_0x53523e(0x749)]||=new _0x3c066d(_0x1a04d5[_0x53523e(0x197)],'~processes:cmd'):undefined}),_0xf1af5a['isActive']=()=>_0x1a04d5['_call'](_0x53523e(0x7a7),null,_0x53523e(0x4db),[],![]),Object[_0x53523e(0x4d6)](_0xf1af5a,_0x53523e(0x590),{'get':()=>_0x1a04d5['_call'](_0x53523e(0x7a7),null,_0x53523e(0x64e),[],![])}),Object['defineProperty'](_0xf1af5a,_0x53523e(0x895),{'get':()=>_0x1a04d5[_0x53523e(0x5a6)]('processes',null,_0x53523e(0x4dc),[],![])}),_0xf1af5a['_buildOwnRow']=()=>_0x1a04d5[_0x53523e(0x5a6)]('processes',null,_0x53523e(0x8a2),[],![]),_0xf1af5a[_0x53523e(0x50d)]=(_0x34f808,_0x1f62ff)=>_0x1a04d5[_0x53523e(0x5a6)](_0x53523e(0x7a7),null,_0x53523e(0x61c),[_0x34f808,_0x1f62ff],![]),_0xf1af5a;}return sys={'makeMeta':_0x159065,'makeLicenses':_0x112f1d,'makeLicenseChecker':_0x56ab11,'makeProcesses':_0x3eab84},sys;}var okdbLogger,hasRequiredOkdbLogger;function requireOkdbLogger(){const _0x37993b=_0x7f204b;if(hasRequiredOkdbLogger)return okdbLogger;hasRequiredOkdbLogger=0x1;const _0x2f7c20={'debug':0xa,'info':0x14,'warn':0x1e,'error':0x28};class _0x1c8564{constructor(_0x23fd6c){const _0x46fa4a=_0x20a5;this[_0x46fa4a(0x44b)]=_0x23fd6c,this[_0x46fa4a(0x706)]=new Set(),this['_meta']={};}['child'](_0x55ea3a){const _0x2938f2=_0x20a5,_0x14ddda=new _0x1c8564(this[_0x2938f2(0x44b)]);return _0x14ddda['_sinks']=this[_0x2938f2(0x706)],_0x14ddda[_0x2938f2(0x1c1)]={...this[_0x2938f2(0x1c1)],..._0x55ea3a},_0x14ddda;}[_0x37993b(0x62f)](_0x33365f){const _0x18de9c=_0x37993b;return this[_0x18de9c(0x706)][_0x18de9c(0x6a0)](_0x33365f),()=>this['_sinks'][_0x18de9c(0x36f)](_0x33365f);}[_0x37993b(0x612)](){const _0x23d98b=_0x37993b,_0x453460=_0x2f7c20[process.env.OKDB_LOG_LEVEL]??_0x2f7c20[_0x23d98b(0x7a4)];return this[_0x23d98b(0x891)]=this['attach'](({level:_0x596799,msg:_0x2dd0c6,meta:_0x2c1a46,context:_0x15c7d8,ts:_0x2a454c})=>{const _0x2b3dd3=_0x23d98b;if((_0x2f7c20[_0x596799]??_0x2f7c20['info'])<_0x453460)return;if(_0x2c1a46?.[_0x2b3dd3(0x620)]===_0x2b3dd3(0x243)&&(_0x596799===_0x2b3dd3(0x7a4)||_0x596799===_0x2b3dd3(0x1f4)))return;const _0x5b5625=_0x596799===_0x2b3dd3(0x2f5)?console[_0x2b3dd3(0x2f5)]:_0x596799===_0x2b3dd3(0x215)?console[_0x2b3dd3(0x215)]:_0x596799==='info'?console[_0x2b3dd3(0x7a4)]:console[_0x2b3dd3(0x6ae)],_0x4c3b89=_0x2c1a46&&Object[_0x2b3dd3(0x62c)](_0x2c1a46)[_0x2b3dd3(0x29a)]>0x0;_0x4c3b89||_0x15c7d8!==undefined?_0x5b5625(new Date(_0x2a454c)['toISOString'](),_0x2dd0c6,..._0x4c3b89?[_0x2c1a46]:[],..._0x15c7d8!==undefined?[_0x15c7d8]:[]):_0x5b5625(new Date(_0x2a454c)[_0x2b3dd3(0x2f0)](),_0x2dd0c6);}),this['_detachConsole'];}[_0x37993b(0x314)](){const _0x321260=_0x37993b;this[_0x321260(0x891)]&&(this[_0x321260(0x891)](),this[_0x321260(0x891)]=null);}[_0x37993b(0x426)](_0x16cb4f,_0x4a73fb){const _0x52ac11=require$$0$4,_0x24def8=0x1f4,_0x31f0e1=Number(process.env.OKDB_LOG_FLUSH_MS)||0x3e8;let _0x5582ee=[],_0x4fbe06=0x0,_0x295e5d=null;const _0x4c6d8c=()=>{const _0x2b087d=_0x20a5;_0x295e5d=null;if(_0x5582ee[_0x2b087d(0x29a)]===0x0)return;const _0x13d22e=_0x5582ee;_0x5582ee=[],_0x4fbe06>0x0&&(_0x13d22e[_0x2b087d(0x373)]({'ts':Date[_0x2b087d(0x200)](),'level':_0x2b087d(0x215),'msg':_0x2b087d(0x596)+_0x4fbe06+'\x20log\x20entr'+(_0x4fbe06===0x1?'y':_0x2b087d(0x624))+_0x2b087d(0x43a),'feature':'log','node':_0x4a73fb,'context':null}),_0x4fbe06=0x0),_0x16cb4f[_0x2b087d(0x3e3)](_0x4155b0=>{const _0x36e52e=_0x2b087d;for(const _0x17b803 of _0x13d22e)_0x4155b0[_0x36e52e(0x1a5)](_0x36e52e(0x859),_0x52ac11['randomUUID'](),_0x17b803);})['catch'](()=>{});},_0x417d65=this['attach'](({level:_0x581c1a,msg:_0x1b1279,meta:_0x5ad10f,context:_0xb67687,ts:_0x2983b5})=>{const _0x32469a=_0x20a5;if(_0x581c1a==='debug')return;_0x5582ee[_0x32469a(0x29a)]>=_0x24def8&&(_0x4fbe06++,_0x5582ee[_0x32469a(0x396)]()),_0x5582ee[_0x32469a(0x373)]({'ts':_0x2983b5,'level':_0x581c1a,'msg':_0x1b1279,'feature':_0x5ad10f?.['feature']??_0x5ad10f?.[_0x32469a(0x3f5)]??null,'node':_0x4a73fb,'context':_0xb67687??null}),!_0x295e5d&&(_0x295e5d=setTimeout(_0x4c6d8c,_0x31f0e1),_0x295e5d[_0x32469a(0x48c)]?.());});return()=>{_0x417d65();if(_0x295e5d)clearTimeout(_0x295e5d);_0x4c6d8c();};}[_0x37993b(0x5be)](_0x4b5de8,_0xb11d4d,_0x2c4e2d){const _0x32f0bb=_0x37993b;_0xb11d4d instanceof Error&&(_0x2c4e2d={'message':_0xb11d4d[_0x32f0bb(0x4ee)],'stack':_0xb11d4d[_0x32f0bb(0x4e1)],..._0x2c4e2d},_0xb11d4d=_0xb11d4d[_0x32f0bb(0x4ee)]);const _0x297e81={'level':_0x4b5de8,'msg':_0xb11d4d,'meta':{...this[_0x32f0bb(0x1c1)]},'context':_0x2c4e2d,'ts':Date[_0x32f0bb(0x200)]()};try{this[_0x32f0bb(0x44b)][_0x32f0bb(0x511)]['emit'](_0x32f0bb(0x6ae),_0x297e81);}catch{}for(const _0x10a24c of this[_0x32f0bb(0x706)]){try{_0x10a24c(_0x297e81);}catch{}}}['ingest'](_0x3ea92f){const _0x20c398=_0x37993b;try{this[_0x20c398(0x44b)]?.[_0x20c398(0x511)]?.[_0x20c398(0x53b)]('log',_0x3ea92f);}catch{}for(const _0x685374 of this['_sinks']){try{_0x685374(_0x3ea92f);}catch{}}}[_0x37993b(0x7a4)](_0x227f57,_0x4685a5){const _0x390ed6=_0x37993b;this[_0x390ed6(0x5be)](_0x390ed6(0x7a4),_0x227f57,_0x4685a5);}['warn'](_0x36e0e0,_0x319c0e){const _0x56279c=_0x37993b;this[_0x56279c(0x5be)](_0x56279c(0x215),_0x36e0e0,_0x319c0e);}[_0x37993b(0x2f5)](_0x19b334,_0x4238cc){const _0x582df4=_0x37993b;this['_emit'](_0x582df4(0x2f5),_0x19b334,_0x4238cc);}[_0x37993b(0x1f4)](_0x2a356e,_0x582009){const _0x388625=_0x37993b;this['_emit'](_0x388625(0x1f4),_0x2a356e,_0x582009);}}return okdbLogger=_0x1c8564,okdbLogger;}var okdbPlugins,hasRequiredOkdbPlugins;function requireOkdbPlugins(){const _0x402eee=_0x7f204b;if(hasRequiredOkdbPlugins)return okdbPlugins;hasRequiredOkdbPlugins=0x1;const {OKDB_STATE:_0x2e4b78}=requireOkdbEnums(),{OKDBError:_0x422aa8}=requireOkdbError();class _0x122e34{constructor(_0x5880fb){const _0x9e7ff1=_0x20a5;this[_0x9e7ff1(0x44b)]=_0x5880fb,this[_0x9e7ff1(0x361)]=[];}[_0x402eee(0x250)](_0x3e24dd,_0x20fca6){const _0x3a4880=_0x402eee;if(this[_0x3a4880(0x44b)][_0x3a4880(0x8ac)]!==_0x2e4b78['CREATED'])throw new _0x422aa8(_0x3a4880(0x661),'INVALID_STATE',{'state':this[_0x3a4880(0x44b)][_0x3a4880(0x8ac)]});if(!_0x3e24dd[_0x3a4880(0x5d4)])throw new _0x422aa8(_0x3a4880(0x819),_0x3a4880(0x4d0),{'plugin':_0x3e24dd['name']});const _0x424dbb=_0x3e24dd[_0x3a4880(0x764)]??[];for(const _0x1818f4 of _0x424dbb){if(!this['_plugins']['some'](_0x3e88b3=>_0x3e88b3[_0x3a4880(0x3f5)][_0x3a4880(0x5d4)]===_0x1818f4))throw new _0x422aa8(_0x3a4880(0x20e)+_0x1818f4+_0x3a4880(0x7f7)+_0x3e24dd['name']+')','PLUGIN_DEPENDENCY_MISSING',{'required':_0x1818f4});}if(this['_plugins'][_0x3a4880(0x7cb)](_0x3e3ad8=>_0x3e3ad8[_0x3a4880(0x3f5)][_0x3a4880(0x5d4)]===_0x3e24dd[_0x3a4880(0x5d4)]))throw new _0x422aa8(_0x3a4880(0x543)+_0x3e24dd[_0x3a4880(0x5d4)]+_0x3a4880(0x504),'PLUGIN_ALREADY_REGISTERED',{'plugin':_0x3e24dd[_0x3a4880(0x5d4)]});if(_0x3e24dd[_0x3a4880(0x5d4)]in this[_0x3a4880(0x44b)])throw new _0x422aa8('Plugin\x20name\x20\x27'+_0x3e24dd[_0x3a4880(0x5d4)]+_0x3a4880(0x4c3),_0x3a4880(0x241));const _0x21e233=_0x3e24dd[_0x3a4880(0x250)](this[_0x3a4880(0x44b)],_0x20fca6);if(!_0x21e233||typeof _0x21e233!==_0x3a4880(0x2bf))throw new _0x422aa8(_0x3a4880(0x543)+_0x3e24dd[_0x3a4880(0x5d4)]+_0x3a4880(0x463),_0x3a4880(0x4d0),{'plugin':_0x3e24dd['name']});this[_0x3a4880(0x361)]['push']({'module':_0x3e24dd,'options':_0x20fca6,'instance':_0x21e233});}[_0x402eee(0x266)]=[];async[_0x402eee(0x449)](){const _0x4a21d7=_0x402eee;try{for(const _0x2c02b4 of this['_plugins']){await _0x2c02b4['instance'][_0x4a21d7(0x449)]?.(this['okdb']),this['_started'][_0x4a21d7(0x373)](_0x2c02b4);}}catch(_0x1f362b){await this[_0x4a21d7(0x4a5)]()['catch'](()=>{});throw _0x1f362b;}}async[_0x402eee(0x4a5)](){const _0x3025b4=_0x402eee,_0x1c2d3c=this['_started'][_0x3025b4(0x370)]();this[_0x3025b4(0x266)]=[];let _0x2bfc08=null;for(const _0x522c1d of _0x1c2d3c){try{await _0x522c1d[_0x3025b4(0x77d)][_0x3025b4(0x4a5)]?.(this[_0x3025b4(0x44b)]);}catch(_0x244f21){_0x2bfc08??=_0x244f21;}}if(_0x2bfc08)throw _0x2bfc08;}}return okdbPlugins=_0x122e34,okdbPlugins;}var statics,hasRequiredStatics;function requireStatics(){const _0x4be836=_0x7f204b;if(hasRequiredStatics)return statics;hasRequiredStatics=0x1;const _0x48e247={'maxDbs':0x400,'pageSize':0x1000,'compression':!![],'encryptionKey':undefined,'mapSize':0x100000000,'durability':_0x4be836(0x8b1)},_0x115a04=new Set(['maxDbs',_0x4be836(0x6eb),_0x4be836(0x283),_0x4be836(0x442),_0x4be836(0x6f5),_0x4be836(0x2d7),_0x4be836(0x83b),'allowUnsafe',_0x4be836(0x3f0),_0x4be836(0x3bc),_0x4be836(0x65b),_0x4be836(0x493),_0x4be836(0x243),_0x4be836(0x408),_0x4be836(0x394),'runtimeDeclarations','log',_0x4be836(0x51b),'readerCheckIntervalMs',_0x4be836(0x3e1),_0x4be836(0x744),'compaction','processes',_0x4be836(0x1fb),_0x4be836(0x6c5),_0x4be836(0x3df),_0x4be836(0x21e),_0x4be836(0x1f4),'onLicenseExpired',_0x4be836(0x322)]),_0x58ec39={'http':'there\x20is\x20no\x20`http`\x20option\x20—\x20the\x20HTTP\x20server\x20exists\x20only\x20when\x20db.http.listen(port)\x20is\x20called'};return statics={'defaults':_0x48e247,'KNOWN_OPTIONS':_0x115a04,'_OPTION_HINTS':_0x58ec39},statics;}var licenseConfig,hasRequiredLicenseConfig;function requireLicenseConfig(){const _0x449bb2=_0x7f204b;if(hasRequiredLicenseConfig)return licenseConfig;hasRequiredLicenseConfig=0x1;const _0x3248c7=require$$0$2,_0x4dcf53='-----BEGIN\x20PUBLIC\x20KEY-----\x0aMCowBQYDK2VwAyEAacrkExPrhxNVHyeQBLDwg8xfm1OwyxDAPNdGXABYS2s=\x0a-----END\x20PUBLIC\x20KEY-----',_0x157ce6=_0x3248c7['createHash'](_0x449bb2(0x853))[_0x449bb2(0x2b8)](_0x3248c7[_0x449bb2(0x45c)](_0x4dcf53)[_0x449bb2(0x7a8)]({'type':_0x449bb2(0x20a),'format':_0x449bb2(0x729)}))[_0x449bb2(0x218)]('hex')[_0x449bb2(0x231)](0x0,0x10),_0x5b3339={'LICENSED_BUILD':_0x449bb2(0x2fd),'PUBLIC_KEY_PEM':_0x4dcf53,'PUB_FINGERPRINT':_0x157ce6,'LICENSE_EXPIRED_ACTION':_0x449bb2(0x6ae)};return licenseConfig={'_C':_0x5b3339,'PUBLIC_KEY_PEM':_0x4dcf53,'PUB_FINGERPRINT':_0x157ce6},licenseConfig;}var okdbSubscriptionsStore={'exports':{}},okdbQueryFilter,hasRequiredOkdbQueryFilter;function requireOkdbQueryFilter(){const _0x10b017=_0x7f204b;if(hasRequiredOkdbQueryFilter)return okdbQueryFilter;hasRequiredOkdbQueryFilter=0x1;const _0x958ea6=require$$0$5,{OKDBError:_0x56c82d}=requireOkdbError(),_0xaa55fc=['$eq',_0x10b017(0x63d),_0x10b017(0x205),'$gte',_0x10b017(0x7cf),_0x10b017(0x6c6),'$in','$nin','$exists','$regex',_0x10b017(0x2d9),_0x10b017(0x226),_0x10b017(0x72d),_0x10b017(0x4ed),_0x10b017(0x328),'$elemMatch','$not',_0x10b017(0x238),'$or','$nor'],_0x4e3ad9=[_0x10b017(0x687)];function _0x2662d3(_0x38279d){return()=>{const _0x28802c=_0x20a5,_0x4ed2d2=new _0x56c82d(_0x28802c(0x75a)+_0x38279d+_0x28802c(0x619),_0x28802c(0x5fb),{'operator':_0x38279d});_0x4ed2d2['status']=0x190;throw _0x4ed2d2;};}const _0x2221e2=Object[_0x10b017(0x888)]({...Object[_0x10b017(0x3cf)](_0xaa55fc['map'](_0x565242=>[_0x565242,_0x958ea6[_0x565242]])),...Object[_0x10b017(0x3cf)](_0x4e3ad9[_0x10b017(0x70b)](_0x3a63b2=>[_0x3a63b2,_0x2662d3(_0x3a63b2)]))});function _0x5d4d5e(_0x302ebd){const _0x1222a1=_0x10b017;return _0x958ea6[_0x1222a1(0x455)](_0x302ebd,{'operations':_0x2221e2});}function _0x4e72e9(_0x274799){const _0x5b5e57=_0x10b017;if(_0x274799==null)return;try{_0x5d4d5e(_0x274799);}catch(_0x5dfd0c){if(_0x5dfd0c?.[_0x5b5e57(0x19c)]==='QUERY_OPERATOR_FORBIDDEN')throw _0x5dfd0c;}}return okdbQueryFilter={'compileFilter':_0x5d4d5e,'assertFilterAllowed':_0x4e72e9,'ALLOWED_OPERATORS':_0xaa55fc,'FORBIDDEN_OPERATORS':_0x4e3ad9},okdbQueryFilter;}var okdbEnvRefs,hasRequiredOkdbEnvRefs;function requireOkdbEnvRefs(){const _0x339d2d=_0x7f204b;if(hasRequiredOkdbEnvRefs)return okdbEnvRefs;hasRequiredOkdbEnvRefs=0x1;const {CHANGE_ACTIONS:_0x3a0b7c,EVENTS:_0x262889}=requireOkdbEnums(),{OKDBError:_0x35577f,OKDBForeignKeyDeleteError:_0x3f0f41}=requireOkdbError(),_0x537514=_0x339d2d(0x4d7),_0x1aa2c7=new Set([_0x339d2d(0x3fc),_0x339d2d(0x381),'set_null',_0x339d2d(0x7ed)]);function _0x16c2ad(_0x38832b,_0x510acc){const _0x5eebf5=_0x339d2d;if(_0x38832b==null||!_0x510acc)return undefined;const _0x52ddcb=_0x510acc['split']('.');let _0x4b55ff=_0x38832b;for(const _0x127029 of _0x52ddcb){if(_0x4b55ff==null||typeof _0x4b55ff!==_0x5eebf5(0x2bf)||!(_0x127029 in _0x4b55ff))return undefined;_0x4b55ff=_0x4b55ff[_0x127029];}return _0x4b55ff;}function _0x377de5(_0x2f5c54,_0x5a4f60,_0x9604dd){const _0x37121e=_0x339d2d,_0x746c07=_0x5a4f60['split']('.'),_0x2c7c71={..._0x2f5c54};let _0x11f849=_0x2c7c71;for(let _0x32235=0x0;_0x32235<_0x746c07[_0x37121e(0x29a)]-0x1;_0x32235++){_0x11f849[_0x746c07[_0x32235]]=_0x11f849[_0x746c07[_0x32235]]!=null?{..._0x11f849[_0x746c07[_0x32235]]}:{},_0x11f849=_0x11f849[_0x746c07[_0x32235]];}return _0x11f849[_0x746c07[_0x746c07[_0x37121e(0x29a)]-0x1]]=_0x9604dd,_0x2c7c71;}function _0x4d4cb1(_0x58f0cd,_0x537fac,_0x5d5f79,_0x574930,_0x35dff5){return[_0x58f0cd,_0x537fac,_0x5d5f79,_0x574930,_0x35dff5];}function _0x54723a(_0x16e517){const _0x7cbdc=_0x339d2d;return typeof _0x16e517===_0x7cbdc(0x78e)||typeof _0x16e517===_0x7cbdc(0x79a);}function _0x405034(_0x34ad22,_0x13503){const _0x3a9afa=_0x339d2d;return JSON[_0x3a9afa(0x427)]([_0x34ad22,_0x13503]);}function*_0x182139(_0x324057,_0x411de9,_0x12698b){const _0x36d7af=_0x339d2d,_0x10d86d=_0x12698b!==undefined;for(const {key:_0x1dc282}of _0x324057[_0x36d7af(0x697)]({'start':_0x10d86d?[_0x411de9,_0x12698b]:[_0x411de9]})){if(!Array[_0x36d7af(0x7c8)](_0x1dc282))continue;if(_0x1dc282[0x0]!==_0x411de9||_0x10d86d&&_0x1dc282[0x1]!==_0x12698b)break;yield _0x1dc282;}}function _0x2edc7a(_0x317727,_0x154185='',_0x528444=null){const _0x4c350a=_0x339d2d,_0x4a8978=[];if(!_0x317727||typeof _0x317727!==_0x4c350a(0x2bf))return _0x4a8978;if(!_0x528444)_0x528444=_0x317727;if(_0x317727[_0x4c350a(0x459)]){const _0xd0dd45=_0x317727[_0x4c350a(0x459)]['match'](/^#\/\$defs\/(.+)$/);if(_0xd0dd45&&_0x528444?.[_0x4c350a(0x753)]?.[_0xd0dd45[0x1]])return _0x2edc7a(_0x528444[_0x4c350a(0x753)][_0xd0dd45[0x1]],_0x154185,_0x528444);return _0x4a8978;}if(_0x317727[_0x4c350a(0x3a4)]&&typeof _0x317727[_0x4c350a(0x3a4)]===_0x4c350a(0x2bf)&&_0x317727[_0x4c350a(0x3a4)][_0x4c350a(0x225)]){const _0x5c990e=_0x317727[_0x4c350a(0x3a4)]['onDelete']||'no_action';if(!_0x1aa2c7[_0x4c350a(0x3e6)](_0x5c990e))throw new _0x35577f('Invalid\x20onDelete\x20rule\x20\x27'+_0x5c990e+_0x4c350a(0x2de)+(_0x154185||'root')+_0x4c350a(0x836)+[..._0x1aa2c7][_0x4c350a(0x437)](',\x20'),'INVALID_SCHEMA');_0x4a8978[_0x4c350a(0x373)]({'fieldPath':_0x154185,'targetType':_0x317727[_0x4c350a(0x3a4)]['type'],'onDelete':_0x5c990e});}if(_0x317727['properties'])for(const [_0x2dc95f,_0x2a4ce6]of Object[_0x4c350a(0x488)](_0x317727[_0x4c350a(0x5d2)])){const _0x12df13=_0x154185?_0x154185+'.'+_0x2dc95f:_0x2dc95f;_0x4a8978['push'](..._0x2edc7a(_0x2a4ce6,_0x12df13,_0x528444));}return _0x4a8978;}function _0x1d3a47(_0x5c47ad){const _0x39dc8a=_0x339d2d,_0x3f38fb=new Map(),_0x40445a=new Map();for(const _0x116744 of _0x5c47ad[_0x39dc8a(0x818)]()){if(_0x116744['startsWith']('~'))continue;const _0x249359=_0x5c47ad[_0x39dc8a(0x8a0)]['get'](_0x116744);if(!_0x249359?.['schema']?.[_0x39dc8a(0x546)])continue;let _0x39c73e;try{_0x39c73e=_0x2edc7a(_0x249359['schema'][_0x39dc8a(0x546)]);}catch{continue;}if(_0x39c73e[_0x39dc8a(0x29a)]>0x0){_0x3f38fb[_0x39dc8a(0x534)](_0x116744,_0x39c73e);for(const _0x3bfdd0 of _0x39c73e){if(!_0x40445a[_0x39dc8a(0x3e6)](_0x3bfdd0['targetType']))_0x40445a[_0x39dc8a(0x534)](_0x3bfdd0[_0x39dc8a(0x3b2)],[]);_0x40445a[_0x39dc8a(0x7f0)](_0x3bfdd0['targetType'])[_0x39dc8a(0x373)]({'sourceType':_0x116744,'fieldPath':_0x3bfdd0[_0x39dc8a(0x335)],'onDelete':_0x3bfdd0[_0x39dc8a(0x825)]});}}}_0x5c47ad['_refCache']={'outgoing':_0x3f38fb,'incoming':_0x40445a};if(_0x3f38fb[_0x39dc8a(0x2f2)]>0x0)_0x7bf290(_0x5c47ad);}function _0x12643c(_0x5027d4,_0x109892){const _0x51eb7c=_0x339d2d;return _0x5027d4[_0x51eb7c(0x1f1)]['outgoing'][_0x51eb7c(0x7f0)](_0x109892)||[];}function _0x20b825(_0x9ba751,_0x1f3b8a){const _0x220867=_0x339d2d;return _0x9ba751[_0x220867(0x1f1)][_0x220867(0x7e4)][_0x220867(0x7f0)](_0x1f3b8a)||[];}function _0x7bf290(_0x39cdab){const _0x56f6c3=_0x339d2d;if(_0x39cdab[_0x56f6c3(0x89b)])return _0x39cdab[_0x56f6c3(0x89b)];return _0x39cdab[_0x56f6c3(0x89b)]=_0x39cdab['db'][_0x56f6c3(0x4d9)]('__ref_index',{'dupSort':![]}),_0x39cdab[_0x56f6c3(0x89b)];}function _0x45530a(_0x40a1b5,_0xbc083f,_0x159fe6,_0x2fcf1f,_0x384e62){const _0x24ffc1=_0x339d2d,_0x469884=_0x12643c(_0x40a1b5,_0xbc083f);if(_0x469884[_0x24ffc1(0x29a)]===0x0)return;const _0x367ef7=_0x7bf290(_0x40a1b5);for(const _0x215f86 of _0x469884){const _0x505304=_0x384e62!=null?_0x16c2ad(_0x384e62,_0x215f86[_0x24ffc1(0x335)]):undefined,_0x1e7719=_0x2fcf1f!=null?_0x16c2ad(_0x2fcf1f,_0x215f86[_0x24ffc1(0x335)]):undefined;if(_0x505304===_0x1e7719)continue;_0x54723a(_0x505304)&&_0x367ef7['removeSync'](_0x4d4cb1(_0x215f86[_0x24ffc1(0x3b2)],_0x505304,_0xbc083f,_0x159fe6,_0x215f86['fieldPath'])),_0x54723a(_0x1e7719)&&_0x367ef7[_0x24ffc1(0x649)](_0x4d4cb1(_0x215f86[_0x24ffc1(0x3b2)],_0x1e7719,_0xbc083f,_0x159fe6,_0x215f86['fieldPath']),0x1);}}function _0x2da845(_0x261ec8,_0x59aada,_0x5da498,_0x33cf6e){const _0x4de4e2=_0x339d2d,_0x59f1e2=_0x12643c(_0x261ec8,_0x59aada);if(_0x59f1e2[_0x4de4e2(0x29a)]===0x0)return;const _0x190a0e=_0x7bf290(_0x261ec8);for(const _0x1876c8 of _0x59f1e2){const _0x100332=_0x33cf6e!=null?_0x16c2ad(_0x33cf6e,_0x1876c8[_0x4de4e2(0x335)]):undefined;_0x54723a(_0x100332)&&_0x190a0e[_0x4de4e2(0x417)](_0x4d4cb1(_0x1876c8[_0x4de4e2(0x3b2)],_0x100332,_0x59aada,_0x5da498,_0x1876c8[_0x4de4e2(0x335)]));}}function _0x37618e(_0x4ea769,_0x25cf57,_0x1a1e20,_0x30ae1c){const _0x5ae545=_0x339d2d,_0x47c5bc=_0x12643c(_0x4ea769,_0x25cf57);if(_0x47c5bc[_0x5ae545(0x29a)]===0x0)return[];const _0x4d4cdd=[];for(const _0x5a7ec2 of _0x47c5bc){const _0x3a0c90=_0x16c2ad(_0x30ae1c,_0x5a7ec2[_0x5ae545(0x335)]);if(_0x3a0c90==null)continue;if(!_0x4ea769[_0x5ae545(0x705)](_0x5a7ec2[_0x5ae545(0x3b2)])){_0x4d4cdd[_0x5ae545(0x373)]({'fieldPath':_0x5a7ec2['fieldPath'],'targetType':_0x5a7ec2[_0x5ae545(0x3b2)],'targetKey':_0x3a0c90,'message':_0x5ae545(0x80e)+_0x5a7ec2['targetType']+'\x27\x20does\x20not\x20exist'});continue;}const _0x3e2de0=_0x4ea769[_0x5ae545(0x3d1)](_0x5a7ec2[_0x5ae545(0x3b2)])[_0x5ae545(0x671)];!_0x3e2de0[_0x5ae545(0x3bb)](_0x3a0c90)&&_0x4d4cdd[_0x5ae545(0x373)]({'fieldPath':_0x5a7ec2[_0x5ae545(0x335)],'targetType':_0x5a7ec2['targetType'],'targetKey':_0x3a0c90,'message':'Referenced\x20key\x20\x27'+_0x3a0c90+'\x27\x20does\x20not\x20exist\x20in\x20type\x20\x27'+_0x5a7ec2[_0x5ae545(0x3b2)]+'\x27'});}return _0x4d4cdd;}function _0x397d58(_0x5c7c08,_0xb14396,_0x24aa85,_0x89dc5d,_0x4e159a,{timestamp:_0x31e03d,origin:_0x336062,_cascadeVisited:_0x2c71d7}){const _0x400545=_0x339d2d,_0x40bdb6=_0x20b825(_0x5c7c08,_0x24aa85);if(_0x40bdb6[_0x400545(0x29a)]===0x0)return;const _0x4e5c33=_0x7bf290(_0x5c7c08),_0x21a707=[];for(const [,,_0x10e0bb,_0x66608b,_0x45bafc]of _0x182139(_0x4e5c33,_0x24aa85,_0x89dc5d)){_0x21a707['push']({'sourceType':_0x10e0bb,'sourceKey':_0x66608b,'fieldPath':_0x45bafc});}if(_0x21a707[_0x400545(0x29a)]===0x0)return;for(const _0x4eeb2b of _0x21a707){const _0x58124b=_0x40bdb6[_0x400545(0x7cb)](_0x368896=>_0x368896[_0x400545(0x5db)]===_0x4eeb2b[_0x400545(0x5db)]&&_0x368896[_0x400545(0x335)]===_0x4eeb2b[_0x400545(0x335)]),_0x137d15=_0x58124b?.[_0x400545(0x825)]||'no_action';switch(_0x137d15){case _0x400545(0x7ed):{if(_0x336062===null)throw new _0x3f0f41(_0x24aa85,_0x89dc5d,_0x21a707[_0x400545(0x6c2)](_0x11331d=>{const _0x2f6b3a=_0x400545,_0x323f33=_0x40bdb6[_0x2f6b3a(0x7cb)](_0x5f58c1=>_0x5f58c1[_0x2f6b3a(0x5db)]===_0x11331d[_0x2f6b3a(0x5db)]&&_0x5f58c1[_0x2f6b3a(0x335)]===_0x11331d[_0x2f6b3a(0x335)]);return(_0x323f33?.['onDelete']||_0x2f6b3a(0x3fc))===_0x2f6b3a(0x7ed);}));break;}case _0x400545(0x381):{const _0x511dcb=_0x405034(_0x4eeb2b[_0x400545(0x5db)],_0x4eeb2b[_0x400545(0x42a)]);if(_0x2c71d7[_0x400545(0x3e6)](_0x511dcb))continue;_0x5c7c08[_0x400545(0x3d1)](_0x4eeb2b[_0x400545(0x5db)])['data'][_0x400545(0x3bb)](_0x4eeb2b[_0x400545(0x42a)])&&_0x5c7c08[_0x400545(0x326)](_0xb14396,_0x4eeb2b['sourceType'],_0x4eeb2b[_0x400545(0x42a)],{'timestamp':_0x31e03d,'origin':_0x336062,'_cascadeVisited':_0x2c71d7});break;}case _0x400545(0x817):{const _0x104462=_0x5c7c08[_0x400545(0x3d1)](_0x4eeb2b[_0x400545(0x5db)])[_0x400545(0x671)],_0x3c230b=_0x104462[_0x400545(0x30e)](_0x4eeb2b[_0x400545(0x42a)]);if(_0x3c230b){const _0x3d391f=_0x377de5(_0x3c230b[_0x400545(0x3a5)],_0x4eeb2b['fieldPath'],null);_0x5c7c08[_0x400545(0x565)](_0xb14396,_0x400545(0x1a5),_0x4eeb2b['sourceType'],_0x4eeb2b['sourceKey'],_0x3d391f,{'timestamp':_0x31e03d,'origin':_0x336062,'_cascading':!![]});}break;}}}}function _0x290b9f(_0xb289db){!_0xb289db['hasType'](_0x537514)&&_0xb289db['_registerType'](_0x537514);}function _0x154f32(_0x2c0d54,_0x28164f,_0x49df0d,_0x276539,_0x39afdc,_0x3803ac,_0x45985c,{timestamp:timestamp=Date[_0x339d2d(0x200)](),origin:origin=null}={}){const _0x392cb4=_0x339d2d;_0x290b9f(_0x2c0d54);const _0x1d4a62=_0x49df0d+'@'+_0x276539+'@'+_0x39afdc,_0x5906b8={'sourceType':_0x49df0d,'sourceKey':_0x276539,'fieldPath':_0x39afdc,'targetType':_0x3803ac,'targetKey':_0x45985c,'timestamp':timestamp,'origin':origin},_0x107389=_0x2c0d54[_0x392cb4(0x3d1)](_0x537514)[_0x392cb4(0x671)],_0x10a194=_0x107389[_0x392cb4(0x30e)](_0x1d4a62),_0x1d69c2=_0x10a194?_0x10a194[_0x392cb4(0x68c)]+0x1:0x1;_0x107389[_0x392cb4(0x649)](_0x1d4a62,_0x5906b8,_0x1d69c2),_0x2c0d54[_0x392cb4(0x76f)]({'id':_0x392cb4(0x47f)+_0x537514+'@'+_0x1d4a62,'type':_0x537514,'key':_0x1d4a62,'action':_0x3a0b7c[_0x392cb4(0x514)],'timestamp':timestamp,'txnId':_0x28164f?.['id'],'origin':origin},_0x10a194?.[_0x392cb4(0x3a5)],_0x5906b8),_0x2c0d54['events'][_0x392cb4(0x53b)](_0x262889['REF_VIOLATION'],{'sourceType':_0x49df0d,'sourceKey':_0x276539,'fieldPath':_0x39afdc,'targetType':_0x3803ac,'targetKey':_0x45985c,'env':_0x2c0d54[_0x392cb4(0x5d4)]});}function _0x3a55dc(_0x2fe2ab,_0x4dcd2c,_0x2f7222,_0x3c6d8d,_0x1a12b0,{timestamp:timestamp=Date[_0x339d2d(0x200)](),origin:origin=null}={}){const _0x1db6ee=_0x339d2d;if(!_0x2fe2ab['hasType'](_0x537514))return;const _0xa4d36f=_0x2f7222+'@'+_0x3c6d8d+'@'+_0x1a12b0,_0x3ca286=_0x2fe2ab[_0x1db6ee(0x3d1)](_0x537514)[_0x1db6ee(0x671)],_0x1e079c=_0x3ca286[_0x1db6ee(0x30e)](_0xa4d36f);if(!_0x1e079c)return;_0x3ca286[_0x1db6ee(0x417)](_0xa4d36f),_0x2fe2ab[_0x1db6ee(0x76f)]({'id':_0x1db6ee(0x47f)+_0x537514+'@'+_0xa4d36f,'type':_0x537514,'key':_0xa4d36f,'action':_0x3a0b7c['REMOVE'],'timestamp':timestamp,'txnId':_0x4dcd2c?.['id'],'origin':origin},_0x1e079c['value'],undefined),_0x2fe2ab['events'][_0x1db6ee(0x53b)](_0x262889[_0x1db6ee(0x6b0)],{'sourceType':_0x2f7222,'sourceKey':_0x3c6d8d,'fieldPath':_0x1a12b0,'env':_0x2fe2ab['name']});}function _0x3da54a(_0x557ae9,_0x481cb1,_0x5f3832,_0x10dd91,_0x1f09ea={}){const _0x472cbc=_0x339d2d;if(!_0x557ae9[_0x472cbc(0x705)](_0x537514))return;const _0x4632d5=_0x557ae9[_0x472cbc(0x3d1)](_0x537514)[_0x472cbc(0x671)],_0xc98f23=_0x5f3832+'@'+_0x10dd91+'@',_0x315280=[];for(const {key:_0x268f11,value:_0x1e8638}of _0x4632d5[_0x472cbc(0x697)]({'start':_0xc98f23,'end':_0xc98f23+'\uffff'})){if(_0x1e8638?.['sourceType']===_0x5f3832&&_0x1e8638?.[_0x472cbc(0x42a)]===_0x10dd91)_0x315280[_0x472cbc(0x373)](_0x268f11);}for(const _0x81f02c of _0x315280){const _0x20888b=_0x4632d5['getEntry'](_0x81f02c);if(!_0x20888b)continue;_0x4632d5['removeSync'](_0x81f02c),_0x557ae9[_0x472cbc(0x76f)]({'id':_0x472cbc(0x47f)+_0x537514+'@'+_0x81f02c,'type':_0x537514,'key':_0x81f02c,'action':_0x3a0b7c['REMOVE'],'timestamp':_0x1f09ea[_0x472cbc(0x329)]||Date['now'](),'txnId':_0x481cb1?.['id'],'origin':_0x1f09ea[_0x472cbc(0x556)]},_0x20888b[_0x472cbc(0x3a5)],undefined);}}function _0x2e43ba(_0x47558c,_0x173c00){const _0x1ca410=_0x339d2d;if(!_0x47558c[_0x1ca410(0x705)](_0x537514))return;const _0x26dc53=_0x47558c[_0x1ca410(0x3d1)](_0x537514)[_0x1ca410(0x671)],_0x4105b9=_0x173c00+'@',_0xeedf5c=[];for(const {key:_0x967b79,value:_0x4626be}of _0x26dc53[_0x1ca410(0x697)]({'start':_0x4105b9,'end':_0x4105b9+'\uffff'})){if(_0x4626be?.[_0x1ca410(0x5db)]===_0x173c00)_0xeedf5c[_0x1ca410(0x373)](_0x967b79);}for(const _0x2dd258 of _0xeedf5c)_0x26dc53[_0x1ca410(0x417)](_0x2dd258);}async function _0x51548a(_0x331e61,_0x1e7f24){const _0x46befd=_0x339d2d,_0x296a2a=_0x12643c(_0x331e61,_0x1e7f24);if(_0x296a2a[_0x46befd(0x29a)]===0x0)return;await _0x331e61[_0x46befd(0x1d9)][_0x46befd(0x7ba)](()=>{const _0x40ae0a=_0x46befd;for(const {key:_0x2b233c,value:_0x4cb67d}of _0x331e61[_0x40ae0a(0x697)](_0x1e7f24)){_0x45530a(_0x331e61,_0x1e7f24,_0x2b233c,_0x4cb67d,null);const _0x3294ba=_0x37618e(_0x331e61,_0x1e7f24,_0x2b233c,_0x4cb67d);for(const _0x5c4d25 of _0x3294ba){_0x154f32(_0x331e61,null,_0x1e7f24,_0x2b233c,_0x5c4d25['fieldPath'],_0x5c4d25[_0x40ae0a(0x3b2)],_0x5c4d25[_0x40ae0a(0x308)]);}}});}const _0x2011b3=0x1388;async function _0x265732(_0x53c0a4){const _0x318e9a=_0x339d2d,_0x5b91b9=_0x53c0a4[_0x318e9a(0x1f1)]?.[_0x318e9a(0x538)]?.[_0x318e9a(0x2f2)]>0x0;if(!_0x5b91b9&&!_0x53c0a4[_0x318e9a(0x89b)])return{'dropped':0x0,'written':0x0};const _0x4e85c6=_0x7bf290(_0x53c0a4);let _0x303cf9=0x0;for(;;){const _0x555283=Array[_0x318e9a(0x52e)](_0x4e85c6[_0x318e9a(0x755)]({'limit':_0x2011b3}));if(_0x555283[_0x318e9a(0x29a)]===0x0)break;let _0x22256b=0x0;await _0x53c0a4[_0x318e9a(0x1d9)][_0x318e9a(0x7ba)](()=>{const _0x40d9bb=_0x318e9a;for(const _0x4529e3 of _0x555283)if(_0x4e85c6[_0x40d9bb(0x417)](_0x4529e3))_0x22256b++;});if(_0x22256b===0x0)break;_0x303cf9+=_0x22256b;}let _0x52e874=0x0;for(const _0x5e8183 of _0x53c0a4[_0x318e9a(0x1f1)][_0x318e9a(0x538)][_0x318e9a(0x62c)]()){if(_0x5e8183['startsWith']('~')||!_0x53c0a4[_0x318e9a(0x705)](_0x5e8183))continue;const _0x1fbd9a=_0x12643c(_0x53c0a4,_0x5e8183);await _0x53c0a4[_0x318e9a(0x1d9)][_0x318e9a(0x7ba)](()=>{const _0x150c14=_0x318e9a;for(const {key:_0x438b26,value:_0x3a52d5}of _0x53c0a4[_0x150c14(0x697)](_0x5e8183)){for(const _0x9a54d4 of _0x1fbd9a){const _0x1fe831=_0x16c2ad(_0x3a52d5,_0x9a54d4['fieldPath']);if(!_0x54723a(_0x1fe831))continue;_0x4e85c6[_0x150c14(0x649)](_0x4d4cb1(_0x9a54d4[_0x150c14(0x3b2)],_0x1fe831,_0x5e8183,_0x438b26,_0x9a54d4[_0x150c14(0x335)]),0x1),_0x52e874++;}}});}return{'dropped':_0x303cf9,'written':_0x52e874};}return okdbEnvRefs={'getFieldValue':_0x16c2ad,'setFieldValue':_0x377de5,'refIndexKey':_0x4d4cb1,'isRefTarget':_0x54723a,'cascadeVisitKey':_0x405034,'extractRefs':_0x2edc7a,'rebuildRefCache':_0x1d3a47,'getTypeRefs':_0x12643c,'getIncomingRefs':_0x20b825,'getRefIndexDb':_0x7bf290,'updateRefIndex':_0x45530a,'removeRefIndexEntries':_0x2da845,'refIndexRowsFor':_0x182139,'rebuildRefIndex':_0x265732,'checkForeignKeys':_0x37618e,'processDeleteCascade':_0x397d58,'setRefViolation':_0x154f32,'clearRefViolation':_0x3a55dc,'clearRefViolationsForKey':_0x3da54a,'clearRefViolationsForType':_0x2e43ba,'syncRefIndex':_0x51548a},okdbEnvRefs;}var hasRequiredOkdbSubscriptionsStore;function requireOkdbSubscriptionsStore(){const _0x5d9715=_0x7f204b;if(hasRequiredOkdbSubscriptionsStore)return okdbSubscriptionsStore[_0x5d9715(0x216)];hasRequiredOkdbSubscriptionsStore=0x1;const _0x5e3e61=require$$0$4,{assertFilterAllowed:_0x216c99}=requireOkdbQueryFilter(),{rebuildRefCache:_0x23cc66}=requireOkdbEnvRefs(),_0x53adba=_0x5d9715(0x497),_0x27c368=_0x5d9715(0x80d),_0x533564=_0x5d9715(0x3ff),_0x18d85a=[_0x5d9715(0x758),'type',_0x5d9715(0x3d3)],_0x42580a=[_0x5d9715(0x758),_0x5d9715(0x225)],_0x103e06=0x5a*0x3e8,_0x1f6d3d=Math[_0x5d9715(0x6e7)](_0x103e06/0x2);class _0x117ee5{constructor(_0x5343f1,_0x4f7487={}){const _0x148f3b=_0x5d9715;this[_0x148f3b(0x44b)]=_0x5343f1,this[_0x148f3b(0x7ea)]=Number[_0x148f3b(0x23e)](_0x4f7487[_0x148f3b(0x7ea)])&&_0x4f7487['ttlMs']>0x0?_0x4f7487[_0x148f3b(0x7ea)]:_0x103e06,this[_0x148f3b(0x5a1)]=Number[_0x148f3b(0x23e)](_0x4f7487[_0x148f3b(0x5a1)])?_0x4f7487[_0x148f3b(0x5a1)]:_0x1f6d3d,this[_0x148f3b(0x36e)]=null;}async[_0x5d9715(0x377)](){const _0x575713=_0x5d9715;if(this[_0x575713(0x36e)])return this['_sub'];const _0x3408de=await this['okdb'][_0x575713(0x194)](_0x53adba,{'sync':![]});return await _0x3408de['ensureType'](_0x27c368,{'indexes':[_0x42580a]}),await _0x3408de[_0x575713(0x57f)](_0x533564),_0x3408de[_0x575713(0x354)](_0x533564)?_0x23cc66(_0x3408de):await _0x3408de[_0x575713(0x4eb)](_0x533564,{'definition':{'type':_0x575713(0x2bf),'properties':{'sessionId':{'type':_0x575713(0x78e),'ref':{'type':_0x27c368,'onDelete':_0x575713(0x381)}},'dataEnv':{'type':_0x575713(0x78e)},'type':{'type':_0x575713(0x78e)},'key':{'type':_0x575713(0x78e)}},'required':[_0x575713(0x703),_0x575713(0x758),_0x575713(0x225),'key']},'enforce':!![]}),await _0x3408de[_0x575713(0x57f)](_0x533564,{'indexes':[_0x18d85a]}),await _0x3408de[_0x575713(0x3f3)](_0x533564,_0x18d85a),await _0x3408de[_0x575713(0x3f3)](_0x27c368,_0x42580a),this[_0x575713(0x36e)]=_0x3408de,_0x3408de;}[_0x5d9715(0x7c1)](){const _0x5a1d26=_0x5d9715;if(!this[_0x5a1d26(0x36e)])throw new Error(_0x5a1d26(0x389));return this[_0x5a1d26(0x36e)];}async[_0x5d9715(0x86a)]({sessionId:_0x18c115,dataEnv:_0x3551b5,type:_0x45a4f0,filter:filter=null,ttlMs:_0x5e96cb}={}){const _0x27c240=_0x5d9715,_0x4ba505=this[_0x27c240(0x7c1)]();_0x216c99(filter);const _0x5982fb=_0x18c115!=null&&String(_0x18c115)[_0x27c240(0x29a)]>0x0?String(_0x18c115):_0x5e3e61[_0x27c240(0x7de)](),_0x20db7e=Number[_0x27c240(0x23e)](_0x5e96cb)&&_0x5e96cb>0x0?_0x5e96cb:this['ttlMs'],_0x1db1d7=Date['now'](),_0xb932ff={'sessionId':_0x5982fb,'dataEnv':_0x3551b5,'type':_0x45a4f0,'filter':filter??null,'version':0x0,'createdAt':_0x1db1d7,'expiresAt':_0x1db1d7+_0x20db7e};return await _0x4ba505[_0x27c240(0x1a5)](_0x27c368,_0x5982fb,_0xb932ff,{'ttl':_0x20db7e}),{'sessionId':_0x5982fb,'version':0x0};}[_0x5d9715(0x288)](_0x7d4283){const _0x2af923=_0x5d9715;if(!_0x7d4283)return null;return this[_0x2af923(0x7c1)]()[_0x2af923(0x7f0)](_0x27c368,String(_0x7d4283))??null;}async['closeSession'](_0x4757ed){const _0x501b56=_0x5d9715,_0x1a1d12=this[_0x501b56(0x7c1)](),_0x32aef6=String(_0x4757ed);if(!_0x1a1d12[_0x501b56(0x7f0)](_0x27c368,_0x32aef6))return![];return await _0x1a1d12[_0x501b56(0x5ca)](_0x27c368,_0x32aef6),!![];}async['bumpVersion'](_0x22ea52){const _0x229127=_0x5d9715,_0x345300=this['_env'](),_0x4adb93=String(_0x22ea52),_0x9db4ea=_0x345300['get'](_0x27c368,_0x4adb93);if(!_0x9db4ea)return null;const _0x5b4bb1=(Number[_0x229127(0x23e)](_0x9db4ea[_0x229127(0x68c)])?_0x9db4ea[_0x229127(0x68c)]:0x0)+0x1;return await _0x345300[_0x229127(0x1a5)](_0x27c368,_0x4adb93,{..._0x9db4ea,'version':_0x5b4bb1}),_0x5b4bb1;}async[_0x5d9715(0x780)](_0x4c4d47,_0x137de1){const _0x1c9eeb=_0x5d9715,_0x209fdf=this['_env'](),_0x578020=String(_0x4c4d47);if(!_0x209fdf[_0x1c9eeb(0x7f0)](_0x27c368,_0x578020))return![];const _0x3972ea=Number[_0x1c9eeb(0x23e)](_0x137de1)&&_0x137de1>0x0?_0x137de1:this[_0x1c9eeb(0x7ea)];if(this[_0x1c9eeb(0x3d2)](_0x578020))return![];return await _0x209fdf[_0x1c9eeb(0x41c)](_0x27c368,_0x578020,_0x3972ea),await this[_0x1c9eeb(0x76b)](_0x578020,_0x3972ea),!![];}async[_0x5d9715(0x295)](_0x6e4034,_0x356e22){const _0x495132=_0x5d9715,_0x1ab962=this[_0x495132(0x7c1)](),_0x1a8d74=Number[_0x495132(0x23e)](_0x356e22)&&_0x356e22>0x0?_0x356e22:this[_0x495132(0x7ea)],_0x257026=Date['now'](),_0x34fdb2=[];for(const _0x8bcf1 of _0x6e4034||[]){const _0xa10b69=String(_0x8bcf1),_0x17a401=_0x1ab962['get'](_0x27c368,_0xa10b69);if(!_0x17a401)continue;if(this[_0x495132(0x3d2)](_0xa10b69,_0x257026))continue;_0x34fdb2[_0x495132(0x373)]({'id':_0xa10b69,'cur':_0x17a401});}if(_0x34fdb2[_0x495132(0x29a)]===0x0)return[];return await _0x1ab962[_0x495132(0x3e3)](async _0x4f7f85=>{const _0x5ae189=_0x495132;for(const {id:_0x588d30,cur:_0x15b5b3}of _0x34fdb2){_0x4f7f85[_0x5ae189(0x1a5)](_0x27c368,_0x588d30,{..._0x15b5b3,'expiresAt':_0x257026+_0x1a8d74}),_0x4f7f85[_0x5ae189(0x41c)](_0x27c368,_0x588d30,_0x1a8d74);}}),_0x34fdb2[_0x495132(0x70b)](_0x3bc112=>_0x3bc112['id']);}['_isFar'](_0x545613,_0x824d76=Date[_0x5d9715(0x200)]()){const _0x1fbe2a=_0x5d9715,_0x3e71b7=this[_0x1fbe2a(0x7c1)]()[_0x1fbe2a(0x88e)](_0x27c368,String(_0x545613));if(!_0x3e71b7)return![];return _0x3e71b7[_0x1fbe2a(0x327)]-_0x824d76>this[_0x1fbe2a(0x5a1)];}async[_0x5d9715(0x76b)](_0xf79e7c,_0x21aa45){const _0x423192=_0x5d9715,_0x38d145=this[_0x423192(0x7c1)](),_0x342731=_0x38d145['get'](_0x27c368,_0xf79e7c);if(!_0x342731)return;await _0x38d145[_0x423192(0x1a5)](_0x27c368,_0xf79e7c,{..._0x342731,'expiresAt':Date['now']()+_0x21aa45});}async[_0x5d9715(0x782)](_0x9889d2,_0x50aca3,_0x1e1cb3){const _0x1ec61f=_0x5d9715,_0x177e91=this[_0x1ec61f(0x7c1)](),_0x53485c=String(_0x9889d2),_0x76eed5=_0x177e91['get'](_0x27c368,_0x53485c);if(!_0x76eed5)throw new Error(_0x1ec61f(0x8a4)+_0x53485c);const _0x4b27e6=_0x5e3e61[_0x1ec61f(0x7de)]();return await _0x177e91[_0x1ec61f(0x1a5)](_0x533564,_0x4b27e6,{'sessionId':_0x53485c,'dataEnv':String(_0x76eed5[_0x1ec61f(0x758)]),'type':String(_0x50aca3),'key':String(_0x1e1cb3)}),_0x4b27e6;}async[_0x5d9715(0x7bc)](_0x2fb51e,_0x1d5f64,{retries:retries=0x8}={}){const _0x1c113d=_0x5d9715,_0x18de7f=this[_0x1c113d(0x7c1)]();for(let _0x1fce6d=0x0;;_0x1fce6d++){const _0x8e808d=_0x18de7f[_0x1c113d(0x30e)](_0x27c368,_0x2fb51e);if(!_0x8e808d)return null;const _0x4f72f6=_0x8e808d[_0x1c113d(0x3a5)],_0x246a12=(Number[_0x1c113d(0x23e)](_0x4f72f6[_0x1c113d(0x68c)])?_0x4f72f6[_0x1c113d(0x68c)]:0x0)+0x1,{sessionPatch:sessionPatch={},applyInterests:applyInterests=null}=_0x1d5f64(_0x4f72f6,_0x18de7f)||{};try{return await _0x18de7f[_0x1c113d(0x3e3)](async _0x3e014a=>{const _0x194a97=_0x1c113d;applyInterests?.(_0x3e014a),_0x3e014a[_0x194a97(0x1a5)](_0x27c368,_0x2fb51e,{..._0x4f72f6,...sessionPatch,'version':_0x246a12},{'ifVersion':_0x8e808d[_0x194a97(0x68c)]});}),_0x246a12;}catch(_0x366239){if(_0x366239?.['code']===_0x1c113d(0x278)&&_0x1fce6d<retries)continue;throw _0x366239;}}}async['applyInterestDelta'](_0xe161f4,{add:add=[],remove:remove=[]}={}){const _0x5db003=_0x5d9715,_0x244b10=String(_0xe161f4);return this[_0x5db003(0x7bc)](_0x244b10,(_0xf3a66d,_0x1b0b19)=>{const _0x40a597=_0x5db003,_0x2d17a5=String(_0xf3a66d['dataEnv']),_0x4ecfff=new Set((remove||[])['map'](_0x3cebb9=>String(_0x3cebb9[_0x40a597(0x225)])+'\x00'+String(_0x3cebb9[_0x40a597(0x3d3)]))),_0x3366c5=[];if(_0x4ecfff['size']>0x0)for(const {key:_0x10e4e5,value:_0x126ab8}of _0x1b0b19[_0x40a597(0x697)](_0x533564,{})){if(!_0x126ab8||_0x126ab8[_0x40a597(0x703)]!==_0x244b10)continue;if(_0x4ecfff[_0x40a597(0x3e6)](_0x126ab8['type']+'\x00'+_0x126ab8[_0x40a597(0x3d3)]))_0x3366c5[_0x40a597(0x373)](_0x10e4e5);}const _0x3eae67=(add||[])['map'](_0x31f16b=>({'id':_0x5e3e61[_0x40a597(0x7de)](),'type':String(_0x31f16b['type']),'key':String(_0x31f16b[_0x40a597(0x3d3)])}));return{'applyInterests':_0x112e0c=>{const _0x3ccd4a=_0x40a597;for(const _0x3679d7 of _0x3366c5)_0x112e0c['remove'](_0x533564,_0x3679d7);for(const _0x475969 of _0x3eae67)_0x112e0c[_0x3ccd4a(0x1a5)](_0x533564,_0x475969['id'],{'sessionId':_0x244b10,'dataEnv':_0x2d17a5,'type':_0x475969[_0x3ccd4a(0x225)],'key':_0x475969[_0x3ccd4a(0x3d3)]});}};});}async['setFilter'](_0x24959e,_0x1495e9){_0x216c99(_0x1495e9);const _0x11825a=String(_0x24959e);return this['_commitSessionMutation'](_0x11825a,()=>({'sessionPatch':{'filter':_0x1495e9??null}}));}async[_0x5d9715(0x5d9)](_0x45f05b,_0x4786b7,_0x1f0524){const _0x6c9705=_0x5d9715,_0x1870a8=this[_0x6c9705(0x7c1)](),_0xa1f448=String(_0x45f05b),_0x510a07=String(_0x4786b7),_0xaacd46=String(_0x1f0524),_0x3b1aba=[];for(const {key:_0x578da9,value:_0x48188e}of _0x1870a8[_0x6c9705(0x697)](_0x533564,{})){if(_0x48188e&&_0x48188e['sessionId']===_0xa1f448&&_0x48188e[_0x6c9705(0x225)]===_0x510a07&&_0x48188e[_0x6c9705(0x3d3)]===_0xaacd46)_0x3b1aba[_0x6c9705(0x373)](_0x578da9);}for(const _0x499c23 of _0x3b1aba)await _0x1870a8[_0x6c9705(0x5ca)](_0x533564,_0x499c23);return _0x3b1aba[_0x6c9705(0x29a)];}async[_0x5d9715(0x699)](_0xe2cc5b,_0x59ced1){const _0x12444b=_0x5d9715,_0x3eb14c=String(_0xe2cc5b);return this[_0x12444b(0x7bc)](_0x3eb14c,(_0x3d81d9,_0xac7fa7)=>{const _0x496a68=_0x12444b,_0x3ae683=String(_0x3d81d9[_0x496a68(0x758)]),_0x215c65=[];for(const {key:_0x400661,value:_0x5729fa}of _0xac7fa7['getRange'](_0x533564,{})){if(_0x5729fa&&_0x5729fa['sessionId']===_0x3eb14c)_0x215c65[_0x496a68(0x373)](_0x400661);}const _0x11059d=(_0x59ced1||[])[_0x496a68(0x70b)](_0xef2640=>({'id':_0x5e3e61[_0x496a68(0x7de)](),'type':String(_0xef2640[_0x496a68(0x225)]),'key':String(_0xef2640[_0x496a68(0x3d3)])}));return{'applyInterests':_0x1fb5f3=>{const _0x196818=_0x496a68;for(const _0x417c58 of _0x215c65)_0x1fb5f3['remove'](_0x533564,_0x417c58);for(const _0x25ab96 of _0x11059d)_0x1fb5f3['put'](_0x533564,_0x25ab96['id'],{'sessionId':_0x3eb14c,'dataEnv':_0x3ae683,'type':_0x25ab96[_0x196818(0x225)],'key':_0x25ab96[_0x196818(0x3d3)]});}};});}[_0x5d9715(0x89d)](_0x20264a,_0x40be3f,_0x2716e6){const _0x6aac71=_0x5d9715,_0x6adcfd=this['_env'](),_0x294459=String(_0x20264a),_0x111d02=String(_0x40be3f),_0x585ed7=String(_0x2716e6),_0x422f28=new Set();for(const {value:_0x246cf3}of _0x6adcfd['byIndex'](_0x533564,_0x18d85a,{'start':[_0x294459,_0x111d02,_0x585ed7],'end':[_0x294459,_0x111d02,_0x585ed7,'￿']})){if(_0x246cf3&&_0x246cf3['sessionId'])_0x422f28[_0x6aac71(0x6a0)](_0x246cf3[_0x6aac71(0x703)]);}return[..._0x422f28];}[_0x5d9715(0x33b)](_0x27d35f,_0xf6d0e0){const _0x3ec3fe=_0x5d9715,_0x47c187=this['_env'](),_0x4eec74=String(_0x27d35f),_0x2609ec=String(_0xf6d0e0),_0x63c3a2=[];for(const {value:_0x1de6af}of _0x47c187[_0x3ec3fe(0x846)](_0x27c368,_0x42580a,{'start':[_0x4eec74,_0x2609ec],'end':[_0x4eec74,_0x2609ec,'\uffff']})){if(!_0x1de6af||_0x1de6af[_0x3ec3fe(0x758)]!==_0x4eec74||_0x1de6af[_0x3ec3fe(0x225)]!==_0x2609ec)continue;if(_0x1de6af[_0x3ec3fe(0x6c2)]==null)continue;_0x63c3a2[_0x3ec3fe(0x373)]({'sessionId':_0x1de6af['sessionId'],'filter':_0x1de6af[_0x3ec3fe(0x6c2)],'version':Number['isFinite'](_0x1de6af['version'])?_0x1de6af[_0x3ec3fe(0x68c)]:0x0});}return _0x63c3a2;}async[_0x5d9715(0x239)](){const _0xebfdc4=_0x5d9715;return this[_0xebfdc4(0x7c1)]()['sweepExpiredTTL']();}}return okdbSubscriptionsStore[_0x5d9715(0x216)]=_0x117ee5,okdbSubscriptionsStore['exports'][_0x5d9715(0x1d8)]=_0x53adba,okdbSubscriptionsStore[_0x5d9715(0x216)][_0x5d9715(0x228)]=_0x27c368,okdbSubscriptionsStore[_0x5d9715(0x216)][_0x5d9715(0x6f1)]=_0x533564,okdbSubscriptionsStore[_0x5d9715(0x216)][_0x5d9715(0x1e2)]=_0x18d85a,okdbSubscriptionsStore[_0x5d9715(0x216)]['SESSION_TYPE_INDEX']=_0x42580a,okdbSubscriptionsStore[_0x5d9715(0x216)]['DEFAULT_TTL_MS']=_0x103e06,okdbSubscriptionsStore[_0x5d9715(0x216)];}function _0x20a5(_0x510e51,_0x2d56b5){_0x510e51=_0x510e51-0x194;const _0x4c756d=_0x4c75();let _0x20a543=_0x4c756d[_0x510e51];return _0x20a543;}var version=_0x7f204b(0x843),require$$29={'version':version},okdbEnginesEnums,hasRequiredOkdbEnginesEnums;function requireOkdbEnginesEnums(){const _0x4fedbd=_0x7f204b;if(hasRequiredOkdbEnginesEnums)return okdbEnginesEnums;hasRequiredOkdbEnginesEnums=0x1;const _0x22ffe4=_0x4fedbd(0x519),_0x3c4a27=0xa,_0x2e6b89=Object[_0x4fedbd(0x888)]({'CREATED':_0x4fedbd(0x352),'ONLINE':_0x4fedbd(0x849),'STOPPED':_0x4fedbd(0x3ef),'INACTIVE':_0x4fedbd(0x84f),'ERROR':_0x4fedbd(0x2f5),'REMOVED':'removed'}),_0x168ae3=Object[_0x4fedbd(0x888)]({'STARTED':_0x4fedbd(0x2e6),'STOPPED':_0x4fedbd(0x3ef),'ERROR':_0x4fedbd(0x2f5),'INSTALLED':_0x4fedbd(0x60a),'UNINSTALLED':'uninstalled'}),_0x309f09=Object[_0x4fedbd(0x888)](new Set([_0x2e6b89[_0x4fedbd(0x802)],_0x2e6b89['STOPPED'],_0x2e6b89[_0x4fedbd(0x477)],_0x2e6b89[_0x4fedbd(0x606)]]));function _0x59f3d8(_0x3a84a0){const _0x1cd936=_0x4fedbd;return _0x3a84a0?.['enabled']===![]?_0x2e6b89[_0x1cd936(0x7aa)]:_0x1cd936(0x1d7);}return okdbEnginesEnums={'TYPE_ENGINES':_0x22ffe4,'MAX_UPDATE_RETRIES':_0x3c4a27,'ENGINE_STATUS':_0x2e6b89,'ENGINE_EVENTS':_0x168ae3,'UPDATABLE_STATUSES':_0x309f09,'durableOnlyEngineState':_0x59f3d8},okdbEnginesEnums;}var enums,hasRequiredEnums;function requireEnums(){const _0x2f73ce=_0x7f204b;if(hasRequiredEnums)return enums;hasRequiredEnums=0x1;const _0x5583fb=Object[_0x2f73ce(0x888)]({'EMBEDDER':_0x2f73ce(0x35c),'INDEXER':_0x2f73ce(0x676),'SEARCH':'vector-search','WORKER':_0x2f73ce(0x4c1)}),_0x354fb8=Object[_0x2f73ce(0x888)]({'PENDING':'pending','DONE':_0x2f73ce(0x355),'FAILED':_0x2f73ce(0x7c4),'DELETED':_0x2f73ce(0x351)}),_0x287239=Object[_0x2f73ce(0x888)]({'INDEXER_READY':_0x2f73ce(0x82b),'INDEXER_FLUSHED':'embeddings:indexer:flushed','INDEXER_DOC_DONE':_0x2f73ce(0x3c8),'INDEXER_DOC_FAILED':_0x2f73ce(0x777),'INDEXER_DOC_QUEUED':'embeddings:indexer:doc:queued','STRATEGY_REGISTERED':'embeddings:strategy:registered','DOC_STATUS_CHANGE':_0x2f73ce(0x3af),'PIPELINE_READY':_0x2f73ce(0x59e)}),_0x5ae614=Object[_0x2f73ce(0x888)]({'MODELS':_0x2f73ce(0x644),'DOC_STATUS_PREFIX':_0x2f73ce(0x841),'VEC_PREFIX':_0x2f73ce(0x46b)});return enums={'ENGINE_TYPES':_0x5583fb,'INDEXER_DOC_STATUS':_0x354fb8,'EMBEDDINGS_EVENTS':_0x287239,'INTERNAL_TYPES':_0x5ae614},enums;}var okdbQueueValidate,hasRequiredOkdbQueueValidate;function requireOkdbQueueValidate(){const _0x36640c=_0x7f204b;if(hasRequiredOkdbQueueValidate)return okdbQueueValidate;hasRequiredOkdbQueueValidate=0x1;const _0x4bae90=Object[_0x36640c(0x888)]({'PENDING':_0x36640c(0x773),'RUNNING':_0x36640c(0x2dd),'DONE':_0x36640c(0x355),'FAILED':'failed'}),_0x1ab5ab=Object['freeze']({'ACTIVE':_0x36640c(0x1a4),'PAUSED':'paused','DRAINING':_0x36640c(0x35b)}),_0x3ed39a=Object[_0x36640c(0x888)]({'ENQUEUED':_0x36640c(0x414),'DONE':'queue:done','FAILED':_0x36640c(0x4df),'RETRY':_0x36640c(0x6be),'RESCHEDULED':_0x36640c(0x86d),'REMOVED':_0x36640c(0x20d),'RECONCILED':'queue:reconciled','CLEAR_PROGRESS':_0x36640c(0x893),'CLEAR_DONE':'queue:clear-done','LOG':_0x36640c(0x20f)}),_0x2b8b46=Object['freeze']([_0x36640c(0x1f4),'info',_0x36640c(0x215),_0x36640c(0x2f5)]),_0x67da7b=0x1,_0x2cb4ae=0xc350,_0x1a3c42=0x400,_0x785246=0x800;function _0x4e5449(_0x11b39d){const _0x4737c3=_0x36640c;return _0x11b39d!=null&&typeof _0x11b39d==='object'&&(_0x11b39d[_0x4737c3(0x2f6)]===Object||Object['getPrototypeOf'](_0x11b39d)===null);}function _0x4ab3a6(_0x4aab7a,_0x58e5c3,_0x31cfb7,_0x1c1df9){const _0xc64760=_0x36640c;if(_0x4aab7a==null)return _0x58e5c3;const _0xfa37ff=Number(_0x4aab7a);if(!Number[_0xc64760(0x23e)](_0xfa37ff))return _0x58e5c3;const _0x5af515=Math[_0xc64760(0x64c)](_0xfa37ff);if(_0x5af515<_0x31cfb7)return _0x31cfb7;if(_0x5af515>_0x1c1df9)return _0x1c1df9;return _0x5af515;}function _0x1bd239(_0x103f37){const _0x4356d5=_0x36640c;if(!_0x103f37)return[];if(typeof _0x103f37===_0x4356d5(0x78e))_0x103f37=[_0x103f37];if(!Array[_0x4356d5(0x7c8)](_0x103f37))throw new Error(_0x4356d5(0x660));const _0x33c506=[],_0x1b7e21=new Set();for(const _0x88a8ee of _0x103f37){if(_0x88a8ee==null)continue;const _0xcfafa4=String(_0x88a8ee)[_0x4356d5(0x87c)]();if(!_0xcfafa4)continue;if(_0xcfafa4[_0x4356d5(0x29a)]>0x80)throw new Error(_0x4356d5(0x386));if(_0x1b7e21[_0x4356d5(0x3e6)](_0xcfafa4))continue;_0x1b7e21[_0x4356d5(0x6a0)](_0xcfafa4),_0x33c506[_0x4356d5(0x373)](_0xcfafa4);if(_0x33c506[_0x4356d5(0x29a)]>=0x20)break;}return _0x33c506;}function _0x507e86(_0x1123c3){const _0x323d45=_0x36640c;if(_0x1123c3==null)return null;const _0x3ad260=String(_0x1123c3)[_0x323d45(0x87c)]();if(!_0x3ad260)return null;if(_0x3ad260[_0x323d45(0x29a)]>0x80)throw new Error('bucket\x20too\x20long');return _0x3ad260;}function _0x2117f2(_0x22001b,_0x155a81=0x1){const _0x5f1c6e=_0x36640c;if(_0x22001b==null)return[];if(typeof _0x22001b===_0x5f1c6e(0x78e)){const _0x2cd748=_0x507e86(_0x22001b);if(!_0x2cd748)return[];return[{'id':_0x2cd748,'tokens':_0x155a81}];}if(!Array[_0x5f1c6e(0x7c8)](_0x22001b))throw new Error(_0x5f1c6e(0x3d9));const _0x324bf4=[],_0x374168=new Set();for(const _0xf5af80 of _0x22001b){let _0x5ced0d,_0x47139a;if(Array['isArray'](_0xf5af80))[_0x5ced0d,_0x47139a]=_0xf5af80;else{if(_0xf5af80&&typeof _0xf5af80===_0x5f1c6e(0x2bf))({id:_0x5ced0d,tokens:_0x47139a}=_0xf5af80);else{if(typeof _0xf5af80===_0x5f1c6e(0x78e))_0x5ced0d=_0xf5af80,_0x47139a=_0x155a81;else continue;}}_0x5ced0d=_0x507e86(_0x5ced0d);if(!_0x5ced0d)continue;const _0x59b0a0=_0x47139a==null?_0x155a81:Math[_0x5f1c6e(0x64c)](Number(_0x47139a));if(!Number[_0x5f1c6e(0x23e)](_0x59b0a0)||_0x59b0a0<0x1)throw new Error(_0x5f1c6e(0x213)+_0x5ced0d+'\x22\x20tokens\x20must\x20be\x20>=\x201');if(_0x59b0a0>0xf4240)throw new Error(_0x5f1c6e(0x213)+_0x5ced0d+_0x5f1c6e(0x7b9));if(_0x374168[_0x5f1c6e(0x3e6)](_0x5ced0d))throw new Error(_0x5f1c6e(0x81f)+_0x5ced0d);_0x374168[_0x5f1c6e(0x6a0)](_0x5ced0d),_0x324bf4[_0x5f1c6e(0x373)]({'id':_0x5ced0d,'tokens':_0x59b0a0});}return _0x324bf4;}function _0x391e66(_0x4683c8,_0x1f27a6=0x400){const _0x5ca22e=_0x36640c;if(_0x4683c8==null)return null;const _0x34ed2c=String(_0x4683c8)[_0x5ca22e(0x231)](0x0,_0x1f27a6);return _0x34ed2c||null;}function _0x3683f8(_0x11ea39){const _0x3a933c=_0x36640c;if(_0x11ea39==null)return null;if(_0x11ea39[_0x3a933c(0x3d3)]!==undefined&&_0x11ea39[_0x3a933c(0x3a5)]!==undefined)return _0x11ea39;return{'key':_0x11ea39['id']??null,'value':_0x11ea39};}function _0x226b8f(_0x123f4c){const _0x422dde=_0x36640c;let _0x357162=_0x123f4c;if(typeof _0x123f4c==='string')_0x357162={'message':_0x123f4c};if(!_0x4e5449(_0x357162))throw new Error(_0x422dde(0x7ab));const _0x489ddc=_0x357162[_0x422dde(0x7bd)]==null?'info':String(_0x357162[_0x422dde(0x7bd)])[_0x422dde(0x866)]();if(!_0x2b8b46[_0x422dde(0x3b9)](_0x489ddc))throw new Error(_0x422dde(0x4d1)+_0x489ddc);if(_0x357162['message']==null)throw new Error(_0x422dde(0x89e));const _0x268998=String(_0x357162[_0x422dde(0x4ee)])[_0x422dde(0x231)](0x0,_0x1a3c42);let _0x514596=null;if(_0x357162[_0x422dde(0x1df)]!=null){if(!_0x4e5449(_0x357162[_0x422dde(0x1df)]))throw new Error('log\x20entry\x20fields\x20must\x20be\x20object|null');if(JSON[_0x422dde(0x427)](_0x357162[_0x422dde(0x1df)])['length']>_0x785246)throw new Error(_0x422dde(0x847));_0x514596=_0x357162[_0x422dde(0x1df)];}return{'level':_0x489ddc,'message':_0x268998,'fields':_0x514596,'ts':Date[_0x422dde(0x200)]()};}function _0x578b69(_0x38d8b9){const _0x4d5c8e=_0x36640c;if(_0x38d8b9==null)return;if(!Number[_0x4d5c8e(0x3b1)](_0x38d8b9)||_0x38d8b9<_0x67da7b||_0x38d8b9>_0x2cb4ae)throw new Error(_0x4d5c8e(0x70e)+_0x67da7b+',\x20'+_0x2cb4ae+']');}function _0x31ec01(_0x5ed920){const _0x2231c2=_0x36640c;if(!_0x4e5449(_0x5ed920))throw new Error(_0x2231c2(0x8a8));if(typeof _0x5ed920['id']!=='string'||_0x5ed920['id'][_0x2231c2(0x29a)]<0x8)throw new Error(_0x2231c2(0x66c));if(typeof _0x5ed920['type']!==_0x2231c2(0x78e)||!_0x5ed920[_0x2231c2(0x225)])throw new Error('job.type\x20must\x20be\x20non-empty\x20string');if(!Object[_0x2231c2(0x772)](_0x4bae90)[_0x2231c2(0x3b9)](_0x5ed920[_0x2231c2(0x424)]))throw new Error(_0x2231c2(0x2ed)+_0x5ed920['status']);for(const _0x2e2330 of[_0x2231c2(0x48b),'created',_0x2231c2(0x1a7)]){if(typeof _0x5ed920[_0x2e2330]!==_0x2231c2(0x79a)||!Number['isFinite'](_0x5ed920[_0x2e2330]))throw new Error(_0x2231c2(0x67b)+_0x2e2330+_0x2231c2(0x614));}if(_0x5ed920[_0x2231c2(0x38d)]!=null&&(typeof _0x5ed920[_0x2231c2(0x38d)]!==_0x2231c2(0x79a)||!Number[_0x2231c2(0x23e)](_0x5ed920[_0x2231c2(0x38d)])))throw new Error(_0x2231c2(0x261));if(!Number['isInteger'](_0x5ed920[_0x2231c2(0x5e9)])||_0x5ed920[_0x2231c2(0x5e9)]<0x0)throw new Error(_0x2231c2(0x740));if(!Number['isInteger'](_0x5ed920[_0x2231c2(0x306)]))throw new Error(_0x2231c2(0x2d2));if(_0x5ed920['max_tries']!==null&&_0x5ed920[_0x2231c2(0x1dc)]!==Infinity&&(!Number[_0x2231c2(0x3b1)](_0x5ed920[_0x2231c2(0x1dc)])||_0x5ed920['max_tries']<0x1))throw new Error(_0x2231c2(0x886));if(_0x5ed920[_0x2231c2(0x313)]!=null&&(!Number[_0x2231c2(0x3b1)](_0x5ed920[_0x2231c2(0x313)])||_0x5ed920[_0x2231c2(0x313)]<0x0))throw new Error(_0x2231c2(0x1e3));if(_0x5ed920[_0x2231c2(0x1a8)]!=null&&(typeof _0x5ed920[_0x2231c2(0x1a8)]!==_0x2231c2(0x79a)||_0x5ed920['backoff_multiplier']<0x1))throw new Error(_0x2231c2(0x899));if(_0x5ed920['claim_id']!=null&&typeof _0x5ed920['claim_id']!=='string')throw new Error(_0x2231c2(0x811));if(_0x5ed920[_0x2231c2(0x2f8)]!=null&&(typeof _0x5ed920[_0x2231c2(0x2f8)]!==_0x2231c2(0x79a)||!Number[_0x2231c2(0x23e)](_0x5ed920[_0x2231c2(0x2f8)])))throw new Error('job.claim_expires\x20must\x20be\x20number|null');if(_0x5ed920[_0x2231c2(0x626)]!=null&&typeof _0x5ed920[_0x2231c2(0x626)]!==_0x2231c2(0x78e))throw new Error(_0x2231c2(0x265));if(_0x5ed920[_0x2231c2(0x21c)]!=null&&(!Number['isInteger'](_0x5ed920['bucket_tokens'])||_0x5ed920[_0x2231c2(0x21c)]<0x1))throw new Error(_0x2231c2(0x1d2));if(_0x5ed920['buckets']!=null){if(!Array['isArray'](_0x5ed920['buckets']))throw new Error(_0x2231c2(0x2e4));for(const _0x2d51f5 of _0x5ed920[_0x2231c2(0x864)]){if(!_0x2d51f5||typeof _0x2d51f5!==_0x2231c2(0x2bf))throw new Error(_0x2231c2(0x763));if(typeof _0x2d51f5['id']!==_0x2231c2(0x78e)||!_0x2d51f5['id'][_0x2231c2(0x87c)]())throw new Error(_0x2231c2(0x523));if(!Number[_0x2231c2(0x3b1)](_0x2d51f5[_0x2231c2(0x6ee)])||_0x2d51f5[_0x2231c2(0x6ee)]<0x1)throw new Error(_0x2231c2(0x439));}}if(_0x5ed920[_0x2231c2(0x440)]!=null&&typeof _0x5ed920['cron']!==_0x2231c2(0x78e))throw new Error(_0x2231c2(0x867));if(_0x5ed920['idempotency_key']!=null&&typeof _0x5ed920[_0x2231c2(0x4c4)]!=='string')throw new Error(_0x2231c2(0x81d));if(!Array['isArray'](_0x5ed920[_0x2231c2(0x631)]))throw new Error(_0x2231c2(0x8b2));if(_0x5ed920['tag']!=null&&typeof _0x5ed920['tag']!==_0x2231c2(0x78e))throw new Error(_0x2231c2(0x700));if(_0x5ed920[_0x2231c2(0x72c)]!=null&&typeof _0x5ed920[_0x2231c2(0x72c)]!==_0x2231c2(0x78e))throw new Error('job.status_code\x20must\x20be\x20string|null');if(_0x5ed920[_0x2231c2(0x43f)]!=null&&typeof _0x5ed920['status_message']!==_0x2231c2(0x78e))throw new Error(_0x2231c2(0x7ec));if(_0x5ed920[_0x2231c2(0x2fa)]!=null&&typeof _0x5ed920[_0x2231c2(0x2fa)]!==_0x2231c2(0x78e))throw new Error(_0x2231c2(0x3a8));for(const _0x129043 of['done_ttl',_0x2231c2(0x7f9)]){const _0x176061=_0x5ed920[_0x129043];if(_0x176061!=null&&(!Number['isInteger'](_0x176061)||_0x176061<0x0))throw new Error(_0x2231c2(0x67b)+_0x129043+_0x2231c2(0x2c7));}_0x578b69(_0x5ed920[_0x2231c2(0x1b0)]);}function _0x5c58ab(_0x3d1c7f){const _0x5cb466=_0x36640c;if(!_0x4e5449(_0x3d1c7f))throw new Error(_0x5cb466(0x7ca));if(typeof _0x3d1c7f['id']!==_0x5cb466(0x78e)||!_0x3d1c7f['id'][_0x5cb466(0x87c)]())throw new Error(_0x5cb466(0x84b));if(!Object[_0x5cb466(0x772)](_0x1ab5ab)['includes'](_0x3d1c7f[_0x5cb466(0x424)]))throw new Error(_0x5cb466(0x470)+_0x3d1c7f[_0x5cb466(0x424)]);if(_0x3d1c7f[_0x5cb466(0x392)]!=null&&(!Number[_0x5cb466(0x3b1)](_0x3d1c7f[_0x5cb466(0x392)])||_0x3d1c7f[_0x5cb466(0x392)]<0x1))throw new Error(_0x5cb466(0x647));if(_0x3d1c7f[_0x5cb466(0x4bd)]!=null){if(!_0x4e5449(_0x3d1c7f[_0x5cb466(0x4bd)]))throw new Error(_0x5cb466(0x198));const _0x39c274=_0x3d1c7f[_0x5cb466(0x4bd)];if(_0x39c274[_0x5cb466(0x1dc)]!=null&&(!Number[_0x5cb466(0x3b1)](_0x39c274[_0x5cb466(0x1dc)])||_0x39c274['max_tries']<0x1))throw new Error('job_type.defaults.max_tries\x20must\x20be\x20int\x20>=\x201\x20or\x20null');if(_0x39c274['retry_delay']!=null&&(!Number[_0x5cb466(0x3b1)](_0x39c274[_0x5cb466(0x313)])||_0x39c274[_0x5cb466(0x313)]<0x0))throw new Error(_0x5cb466(0x3de));if(_0x39c274[_0x5cb466(0x1a8)]!=null&&(typeof _0x39c274['backoff_multiplier']!==_0x5cb466(0x79a)||_0x39c274[_0x5cb466(0x1a8)]<0x1))throw new Error('job_type.defaults.backoff_multiplier\x20must\x20be\x20number\x20>=\x201\x20or\x20null');if(_0x39c274[_0x5cb466(0x306)]!=null&&!Number[_0x5cb466(0x3b1)](_0x39c274[_0x5cb466(0x306)]))throw new Error(_0x5cb466(0x79e));if(_0x39c274[_0x5cb466(0x292)]!=null&&(!Number['isInteger'](_0x39c274['ttl'])||_0x39c274[_0x5cb466(0x292)]<0x0))throw new Error(_0x5cb466(0x1d0));for(const _0x12869b of['done_ttl',_0x5cb466(0x7f9)]){if(_0x39c274[_0x12869b]!=null&&(!Number['isInteger'](_0x39c274[_0x12869b])||_0x39c274[_0x12869b]<0x0))throw new Error(_0x5cb466(0x6e8)+_0x12869b+_0x5cb466(0x2c7));}if(_0x39c274[_0x5cb466(0x864)]!=null&&!Array['isArray'](_0x39c274[_0x5cb466(0x864)]))throw new Error(_0x5cb466(0x25f));_0x578b69(_0x39c274[_0x5cb466(0x1b0)]);}if(_0x3d1c7f[_0x5cb466(0x3d5)]!=null){if(!_0x4e5449(_0x3d1c7f[_0x5cb466(0x3d5)]))throw new Error(_0x5cb466(0x558));if(!_0x4e5449(_0x3d1c7f['payload_schema'][_0x5cb466(0x546)]))throw new Error(_0x5cb466(0x795));if(typeof _0x3d1c7f[_0x5cb466(0x3d5)]['enforce']!==_0x5cb466(0x72a))throw new Error(_0x5cb466(0x6a7));}for(const _0x1e32bc of['created_at','updated_at']){if(typeof _0x3d1c7f[_0x1e32bc]!==_0x5cb466(0x79a)||!Number[_0x5cb466(0x23e)](_0x3d1c7f[_0x1e32bc]))throw new Error('job_type.'+_0x1e32bc+'\x20must\x20be\x20number');}}function _0x202bee(_0xc3697a){const _0x4e33a2=_0x36640c;if(!_0x4e5449(_0xc3697a))throw new Error(_0x4e33a2(0x896));if(typeof _0xc3697a['id']!==_0x4e33a2(0x78e)||!_0xc3697a['id'][_0x4e33a2(0x87c)]())throw new Error(_0x4e33a2(0x55f));if(!Number[_0x4e33a2(0x3b1)](_0xc3697a[_0x4e33a2(0x6ee)])||_0xc3697a[_0x4e33a2(0x6ee)]<0x0)throw new Error(_0x4e33a2(0x521));if(!Number[_0x4e33a2(0x3b1)](_0xc3697a[_0x4e33a2(0x8a7)])||_0xc3697a[_0x4e33a2(0x8a7)]<0x0)throw new Error('bucket.capacity\x20must\x20be\x20int\x20>=\x200');if(_0xc3697a[_0x4e33a2(0x6ee)]>_0xc3697a[_0x4e33a2(0x8a7)])throw new Error(_0x4e33a2(0x255));if(!Number[_0x4e33a2(0x3b1)](_0xc3697a[_0x4e33a2(0x59b)])||_0xc3697a['refill_amount']<0x0)throw new Error(_0x4e33a2(0x1aa));if(!Number[_0x4e33a2(0x3b1)](_0xc3697a['refill_every'])||_0xc3697a[_0x4e33a2(0x3fb)]<0x0)throw new Error(_0x4e33a2(0x73d));if(typeof _0xc3697a[_0x4e33a2(0x1a7)]!==_0x4e33a2(0x79a)||!Number[_0x4e33a2(0x23e)](_0xc3697a['updated']))throw new Error('bucket.updated\x20must\x20be\x20number');}return okdbQueueValidate={'STATUS':_0x4bae90,'JOB_TYPE_STATUS':_0x1ab5ab,'QUEUE_EVENTS':_0x3ed39a,'LOG_LEVELS':_0x2b8b46,'LOG_CAP_MIN':_0x67da7b,'LOG_CAP_MAX':_0x2cb4ae,'clampInt':_0x4ab3a6,'asNullableString':_0x391e66,'normalizeResult':_0x3683f8,'normalizeTags':_0x1bd239,'normalizeBucket':_0x507e86,'normalizeBuckets':_0x2117f2,'normalizeLogEntry':_0x226b8f,'validateJobShape':_0x31ec01,'validateJobTypeShape':_0x5c58ab,'validateBucketShape':_0x202bee},okdbQueueValidate;}var okdbTimers,hasRequiredOkdbTimers;function requireOkdbTimers(){if(hasRequiredOkdbTimers)return okdbTimers;hasRequiredOkdbTimers=0x1;const _0xe9f309=0x2**0x1f-0x1;function _0x160131(_0x5267a5){if(!(_0x5267a5>0x0))return 0x0;return _0x5267a5>_0xe9f309?_0xe9f309:_0x5267a5;}function _0x289c21(_0x1ab652){return _0x1ab652===Infinity;}return okdbTimers={'MAX_TIMER_DELAY':_0xe9f309,'clampTimerDelay':_0x160131,'isNeverDelay':_0x289c21},okdbTimers;}var okdbChangefeed,hasRequiredOkdbChangefeed;function requireOkdbChangefeed(){const _0x5d92c5=_0x7f204b;if(hasRequiredOkdbChangefeed)return okdbChangefeed;hasRequiredOkdbChangefeed=0x1;const _0x4b4e8=require$$0$6,{clampTimerDelay:_0x179e5e}=requireOkdbTimers(),{EVENTS:_0x9ce429,CHANGE_ACTIONS:_0x39c772}=requireOkdbEnums(),{LOOP:_0x508c25}=requireOkdbLoopMonitor(),_0x5a3ecc=Number(process.env.OKDB_CHANGEFEED_QUANTUM)||0x3e8,_0x552121=0x5,_0xba795=0x2710;class _0xc13428 extends _0x4b4e8{constructor(_0x4addbe,_0x547870={}){const _0x2bc428=_0x20a5;super(),this[_0x2bc428(0x44b)]=_0x4addbe,this[_0x2bc428(0x544)]=_0x547870['quantum']??_0x5a3ecc,this[_0x2bc428(0x71d)]=_0x547870[_0x2bc428(0x6d9)]??_0x552121,this['_dedupeMax']=_0x547870['dedupeMax']??_0xba795,this['_started']=![],this[_0x2bc428(0x249)]=new Map(),this[_0x2bc428(0x63c)]=new Map(),this[_0x2bc428(0x2e3)]=new Map(),this[_0x2bc428(0x4a8)]=null,this[_0x2bc428(0x71c)]=![],this[_0x2bc428(0x605)]=new Set(),this[_0x2bc428(0x597)]=new Set(),this[_0x2bc428(0x268)]=_0xf411cd=>this['_handleInProcess'](_0xf411cd),this['_onPending']=_0x4317b1=>this['_handlePending'](_0x4317b1),this['_onPoke']=_0x59c2ce=>this[_0x2bc428(0x561)](_0x59c2ce),this[_0x2bc428(0x473)]=()=>this['stop']();}['start'](){const _0x6464e=_0x20a5;if(this[_0x6464e(0x266)])return;this[_0x6464e(0x266)]=!![];for(const [_0x502255,_0x17bae8]of this[_0x6464e(0x44b)][_0x6464e(0x3fd)]){if(_0x502255[_0x6464e(0x8b0)]('~'))continue;try{_0x17bae8['_enableChangelog']();}catch{}}for(const [_0x43181d,_0x24bd9b]of this[_0x6464e(0x44b)][_0x6464e(0x3fd)]){if(_0x43181d[_0x6464e(0x8b0)]('~'))continue;try{this[_0x6464e(0x63c)][_0x6464e(0x534)](_0x43181d,_0x24bd9b[_0x6464e(0x599)]()||0x0);}catch{}}const {events:_0x54b87a}=this[_0x6464e(0x44b)];_0x54b87a['on'](_0x9ce429[_0x6464e(0x3da)],this[_0x6464e(0x4b1)]),_0x54b87a['on'](_0x9ce429[_0x6464e(0x289)],this[_0x6464e(0x268)]),_0x54b87a['on'](_0x9ce429[_0x6464e(0x490)],this[_0x6464e(0x268)]),_0x54b87a['on'](_0x9ce429[_0x6464e(0x5c3)],this[_0x6464e(0x268)]),_0x54b87a['on'](_0x9ce429[_0x6464e(0x4b9)],this[_0x6464e(0x807)]),_0x54b87a[_0x6464e(0x3e8)](_0x9ce429[_0x6464e(0x54a)],this['_onStop']);}[_0x5d92c5(0x4a5)](){const _0x492fcc=_0x5d92c5;if(!this[_0x492fcc(0x266)])return;this['_started']=![];const {events:_0x12edb3}=this['okdb'];_0x12edb3[_0x492fcc(0x82e)](_0x9ce429[_0x492fcc(0x3da)],this['_onPending']),_0x12edb3[_0x492fcc(0x82e)](_0x9ce429[_0x492fcc(0x289)],this[_0x492fcc(0x268)]),_0x12edb3[_0x492fcc(0x82e)](_0x9ce429[_0x492fcc(0x490)],this[_0x492fcc(0x268)]),_0x12edb3[_0x492fcc(0x82e)](_0x9ce429[_0x492fcc(0x5c3)],this['_onItem']),_0x12edb3[_0x492fcc(0x82e)](_0x9ce429[_0x492fcc(0x4b9)],this[_0x492fcc(0x807)]);try{_0x12edb3[_0x492fcc(0x82e)](_0x9ce429[_0x492fcc(0x54a)],this['_onStop']);}catch{}this[_0x492fcc(0x4a8)]&&(clearTimeout(this[_0x492fcc(0x4a8)]),this[_0x492fcc(0x4a8)]=null),this['_pending'][_0x492fcc(0x7fd)](),this[_0x492fcc(0x249)]['clear'](),this[_0x492fcc(0x63c)]['clear'](),this[_0x492fcc(0x605)][_0x492fcc(0x7fd)](),this['_pendingLocal'][_0x492fcc(0x7fd)]();}[_0x5d92c5(0x567)](_0x3078b8,_0x506579,_0x575410,_0x2cc521){return _0x3078b8+'\x00'+_0x506579+'\x00'+_0x575410+'\x00'+_0x2cc521;}[_0x5d92c5(0x212)](_0x3a2e12,_0x425576,_0x289e21,_0x3f9517){const _0x73f62d=_0x5d92c5,_0x42eb2c=this['_dedupeKey'](_0x3a2e12,_0x425576,_0x289e21,_0x3f9517);if(this[_0x73f62d(0x605)]['has'](_0x42eb2c))return![];this[_0x73f62d(0x605)]['add'](_0x42eb2c);if(this[_0x73f62d(0x605)]['size']>this[_0x73f62d(0x615)]){const _0x332f66=this[_0x73f62d(0x605)][_0x73f62d(0x772)]()['next']()[_0x73f62d(0x3a5)];this[_0x73f62d(0x605)][_0x73f62d(0x36f)](_0x332f66);}return!![];}['_handlePending'](_0x550012){const _0x3d46ad=_0x5d92c5;if(!this['_started']||!_0x550012)return;const {env:_0x3c93ee,type:_0xd05b9d,key:_0x1c431d,clock:_0x210721}=_0x550012;if(_0x3c93ee==null||_0xd05b9d==null||_0x1c431d==null)return;if(typeof _0x3c93ee===_0x3d46ad(0x78e)&&_0x3c93ee[_0x3d46ad(0x8b0)]('~'))return;if(typeof _0xd05b9d===_0x3d46ad(0x78e)&&_0xd05b9d[_0x3d46ad(0x8b0)]('~'))return;this[_0x3d46ad(0x597)][_0x3d46ad(0x6a0)](this['_dedupeKey'](_0x3c93ee,_0xd05b9d,_0x1c431d,_0x210721)),this['_pendingLocal'][_0x3d46ad(0x2f2)]>this[_0x3d46ad(0x615)]&&this['_pendingLocal'][_0x3d46ad(0x36f)](this[_0x3d46ad(0x597)][_0x3d46ad(0x772)]()[_0x3d46ad(0x6dd)]()[_0x3d46ad(0x3a5)]);}[_0x5d92c5(0x64b)](_0x3e47fa){const _0x3d29c9=_0x5d92c5;if(!this[_0x3d29c9(0x266)]||!_0x3e47fa)return;const {env:_0xd4ca12,type:_0x1f6cac,key:_0x2c64d4,clock:_0x4ba171,origin:_0x457b00,action:_0xe5a8b4,newValue:_0x40bb57,oldValue:_0x2a4ef9}=_0x3e47fa;if(_0xd4ca12==null||_0x1f6cac==null||_0x2c64d4==null)return;if(typeof _0xd4ca12===_0x3d29c9(0x78e)&&_0xd4ca12[_0x3d29c9(0x8b0)]('~'))return;if(typeof _0x1f6cac==='string'&&_0x1f6cac[_0x3d29c9(0x8b0)]('~'))return;this['_pendingLocal'][_0x3d29c9(0x36f)](this[_0x3d29c9(0x567)](_0xd4ca12,_0x1f6cac,_0x2c64d4,_0x4ba171));if(!this[_0x3d29c9(0x212)](_0xd4ca12,_0x1f6cac,_0x2c64d4,_0x4ba171))return;const _0x2b2a54=_0xe5a8b4===_0x39c772[_0x3d29c9(0x2bb)]?_0x3d29c9(0x5ca):'put';this[_0x3d29c9(0x53b)](_0x3d29c9(0x6f3),{'env':_0xd4ca12,'type':_0x1f6cac,'key':_0x2c64d4,'op':_0x2b2a54,'clock':_0x4ba171,'origin':_0x457b00,'value':_0x2b2a54===_0x3d29c9(0x5ca)?null:_0x40bb57,'prevValue':_0x2a4ef9});}['_handlePoke'](_0x5ae596){const _0x4b91a5=_0x5d92c5;if(!this[_0x4b91a5(0x266)])return;if(!_0x5ae596||typeof _0x5ae596[_0x4b91a5(0x27b)]!=='string'||typeof _0x5ae596['type']!==_0x4b91a5(0x78e))return;const {env:_0x515ab3,type:_0x260a40}=_0x5ae596;if(_0x515ab3[_0x4b91a5(0x8b0)]('~')||_0x260a40['startsWith']('~'))return;this[_0x4b91a5(0x2e3)][_0x4b91a5(0x534)](_0x515ab3+'\x00'+_0x260a40,{'env':_0x515ab3,'type':_0x260a40}),this[_0x4b91a5(0x7bf)]();}[_0x5d92c5(0x7bf)](){const _0x2f53ed=_0x5d92c5;if(this[_0x2f53ed(0x4a8)])return;const _0x3cc998=()=>{const _0x1d04be=_0x2f53ed;this[_0x1d04be(0x4a8)]=null,this[_0x1d04be(0x3ba)]()[_0x1d04be(0x2ba)](()=>{});};this['_flushTimer']=setTimeout(_0x3cc998,_0x179e5e(this[_0x2f53ed(0x71d)]));}async[_0x5d92c5(0x3ba)](){const _0x171063=_0x5d92c5;if(this[_0x171063(0x71c)]){this['_scheduleFlush']();return;}this[_0x171063(0x71c)]=!![];try{const _0x2e8983=[...this[_0x171063(0x2e3)][_0x171063(0x772)]()];this[_0x171063(0x2e3)][_0x171063(0x7fd)]();let _0x32d363=![];for(const {env:_0x4921bf,type:_0x17d424}of _0x2e8983){try{const _0x54089e=await this[_0x171063(0x82d)](_0x4921bf,_0x17d424);if(_0x54089e)_0x32d363=!![];}catch{this[_0x171063(0x2e3)]['set'](_0x4921bf+'\x00'+_0x17d424,{'env':_0x4921bf,'type':_0x17d424}),_0x32d363=!![];}}if(_0x32d363||this[_0x171063(0x2e3)][_0x171063(0x2f2)]>0x0)this[_0x171063(0x7bf)]();}finally{this['_draining']=![];}}async['_drainOne'](_0x4dfd09,_0x2dad57){const _0x2e71d8=_0x5d92c5,_0x217bf7=await this['okdb']['_openEnvLazy'](_0x4dfd09),_0x49d67c=_0x4dfd09+'\x00'+_0x2dad57;!this[_0x2e71d8(0x249)][_0x2e71d8(0x3e6)](_0x49d67c)&&(!this['_baselines'][_0x2e71d8(0x3e6)](_0x4dfd09)&&(_0x217bf7[_0x2e71d8(0x4a4)](),this['_baselines'][_0x2e71d8(0x534)](_0x4dfd09,_0x217bf7['getClock']()||0x0)),this['_cursors'][_0x2e71d8(0x534)](_0x49d67c,this[_0x2e71d8(0x63c)][_0x2e71d8(0x7f0)](_0x4dfd09)));const _0x4d3f61=this['_cursors']['get'](_0x49d67c),_0x474525=_0x217bf7['getClock'](_0x2dad57)||0x0;if(_0x474525<=_0x4d3f61)return![];const _0x20749a=_0x4d3f61+this[_0x2e71d8(0x544)],_0x2f9956=Math['min'](_0x474525,_0x20749a),_0xab05d=_0x508c25['enabled']?_0x508c25[_0x2e71d8(0x200)]():0x0,_0x48a30e=Array[_0x2e71d8(0x52e)](_0x217bf7['getChanges'](_0x2dad57,_0x4d3f61+0x1,_0x2f9956));let _0x55652c=_0x4d3f61;for(const _0x1bf8a1 of _0x48a30e){const {clock:_0x1613fa,key:_0x35cd34,action:_0x4416bb,origin:_0xd69b1c}=_0x1bf8a1;if(_0x1613fa>_0x55652c)_0x55652c=_0x1613fa;if(_0x35cd34==null)continue;if(this['_pendingLocal'][_0x2e71d8(0x3e6)](this[_0x2e71d8(0x567)](_0x4dfd09,_0x2dad57,_0x35cd34,_0x1613fa)))continue;if(!this[_0x2e71d8(0x212)](_0x4dfd09,_0x2dad57,_0x35cd34,_0x1613fa))continue;let _0x1c803d,_0x2125a0;if(_0x4416bb===_0x39c772[_0x2e71d8(0x2bb)])_0x1c803d='remove',_0x2125a0=null;else{const _0x4119d8=_0x217bf7[_0x2e71d8(0x7f0)](_0x2dad57,_0x35cd34);_0x4119d8==null?(_0x1c803d=_0x2e71d8(0x5ca),_0x2125a0=null):(_0x1c803d=_0x2e71d8(0x1a5),_0x2125a0=_0x4119d8);}this[_0x2e71d8(0x53b)](_0x2e71d8(0x6f3),{'env':_0x4dfd09,'type':_0x2dad57,'key':_0x35cd34,'op':_0x1c803d,'clock':_0x1613fa,'origin':_0xd69b1c,'value':_0x2125a0});}if(_0x508c25[_0x2e71d8(0x2b0)])_0x508c25[_0x2e71d8(0x860)](_0x2e71d8(0x581)+_0x4dfd09+':'+_0x2dad57,_0x508c25[_0x2e71d8(0x200)]()-_0xab05d,'n='+_0x48a30e[_0x2e71d8(0x29a)]);return this[_0x2e71d8(0x249)]['set'](_0x49d67c,Math['max'](_0x55652c,_0x2f9956)),_0x217bf7[_0x2e71d8(0x599)](_0x2dad57)>_0x2f9956;}['status'](){const _0x3b8801=_0x5d92c5;return{'started':this[_0x3b8801(0x266)],'quantum':this[_0x3b8801(0x544)],'flushDebounce':this['_flushDebounce'],'cursors':Object[_0x3b8801(0x3cf)]([...this[_0x3b8801(0x249)][_0x3b8801(0x488)]()][_0x3b8801(0x70b)](([_0x449a92,_0x5b2cc9])=>[_0x449a92['replace']('\x00',':'),_0x5b2cc9])),'pending':this[_0x3b8801(0x2e3)][_0x3b8801(0x2f2)],'seen':this[_0x3b8801(0x605)][_0x3b8801(0x2f2)]};}}return _0xc13428['CHANGEFEED_QUANTUM']=_0x5a3ecc,okdbChangefeed={'OKDBChangefeed':_0xc13428},okdbChangefeed;}var okdbRelay,hasRequiredOkdbRelay;function requireOkdbRelay(){const _0x38248b=_0x7f204b;if(hasRequiredOkdbRelay)return okdbRelay;hasRequiredOkdbRelay=0x1;const {EVENTS:_0x39f765}=requireOkdbEnums(),_0x189e6a=new Set([_0x39f765['ITEM_CREATE'],_0x39f765[_0x38248b(0x490)],_0x39f765[_0x38248b(0x5c3)]]),{ENGINE_EVENTS:_0x429ad7}=requireOkdbEnginesEnums(),{EMBEDDINGS_EVENTS:_0x2b9ecb}=requireEnums(),{QUEUE_EVENTS:_0x5e8b75}=requireOkdbQueueValidate(),_0x825f99=Object[_0x38248b(0x772)](_0x39f765),_0x54822b=Object[_0x38248b(0x772)](_0x429ad7)[_0x38248b(0x70b)](_0x3f1315=>_0x38248b(0x618)+_0x3f1315),_0x48fed6=Object[_0x38248b(0x772)](_0x2b9ecb),_0x17cba4=Object[_0x38248b(0x772)](_0x5e8b75),_0x1b5731=[_0x38248b(0x6a9),'processor:progress',_0x38248b(0x40a),_0x38248b(0x570),_0x38248b(0x622),_0x38248b(0x3ca)],_0x5a64e2=[..._0x825f99,..._0x54822b,..._0x48fed6,..._0x17cba4,..._0x1b5731,_0x38248b(0x6ae)],_0x27033d=new Set(_0x5a64e2),_0x2279dc=new Set([_0x39f765['ITEM_CREATE'],_0x39f765[_0x38248b(0x490)],_0x39f765[_0x38248b(0x5c3)],_0x39f765[_0x38248b(0x3a6)],_0x39f765['TXN_END'],_0x39f765[_0x38248b(0x337)],_0x39f765[_0x38248b(0x1c7)],_0x39f765[_0x38248b(0x69d)],_0x2b9ecb[_0x38248b(0x3e9)],_0x2b9ecb[_0x38248b(0x496)],_0x2b9ecb[_0x38248b(0x865)],_0x2b9ecb[_0x38248b(0x6b4)],_0x38248b(0x22d)]),_0x14ca68=_0x5a64e2['filter'](_0x30da72=>_0x30da72===_0x38248b(0x6ae)||!_0x2279dc['has'](_0x30da72)),_0x2a2b84=0x14,_0x3f7c50=0xc8;class _0x3b071b{constructor(_0x5ac23d,_0x5a9a02={}){const _0x5779da=_0x38248b;this[_0x5779da(0x44b)]=_0x5ac23d,this[_0x5779da(0x5c2)]=_0x5a9a02[_0x5779da(0x54f)]??_0x2a2b84,this[_0x5779da(0x64a)]=_0x5a9a02[_0x5779da(0x85c)]??_0x3f7c50,this[_0x5779da(0x357)]=new Set(),this[_0x5779da(0x25c)]=[],this['_listeners']=[],this[_0x5779da(0x6b2)]=null,this['_attached']=![],this[_0x5779da(0x480)]=null,this[_0x5779da(0x528)]=null;}[_0x38248b(0x62f)](){const _0x45ff53=_0x38248b;if(this[_0x45ff53(0x748)])return;this[_0x45ff53(0x748)]=!![];const {okdb:_0x203122}=this;this[_0x45ff53(0x6b2)]=_0x203122['log'][_0x45ff53(0x62f)](_0x491861=>this[_0x45ff53(0x204)](_0x45ff53(0x6ae),_0x491861));for(const _0x5da845 of _0x5a64e2){if(_0x5da845===_0x45ff53(0x6ae))continue;const _0x361271=_0x189e6a['has'](_0x5da845),_0x4c0d73=_0x1f7e4b=>{const _0x4a6ba8=_0x45ff53;if(_0x361271&&this[_0x4a6ba8(0x480)])return;this[_0x4a6ba8(0x204)](_0x5da845,_0x1f7e4b??{});};_0x203122[_0x45ff53(0x511)]['on'](_0x5da845,_0x4c0d73),this[_0x45ff53(0x3b3)][_0x45ff53(0x373)]({'event':_0x5da845,'handler':_0x4c0d73});}this[_0x45ff53(0x473)]=()=>this[_0x45ff53(0x75b)](),_0x203122[_0x45ff53(0x511)][_0x45ff53(0x3e8)](_0x39f765[_0x45ff53(0x54a)],this[_0x45ff53(0x473)]);}[_0x38248b(0x75b)](){const _0x1a6770=_0x38248b;if(!this['_attached'])return;if(this[_0x1a6770(0x473)]){try{this[_0x1a6770(0x44b)][_0x1a6770(0x511)]['off'](_0x39f765['SYSTEM_STOPPED'],this[_0x1a6770(0x473)]);}catch{}this[_0x1a6770(0x473)]=null;}this[_0x1a6770(0x6b2)]?.(),this['_detachLog']=null;for(const {event:_0x2fcacf,handler:_0xffd4fe}of this['_listeners']){try{this[_0x1a6770(0x44b)][_0x1a6770(0x511)]['off'](_0x2fcacf,_0xffd4fe);}catch{}}this[_0x1a6770(0x3b3)]=[];for(const _0x376d72 of this[_0x1a6770(0x357)]){try{_0x376d72[_0x1a6770(0x690)]?.();}catch{}}this[_0x1a6770(0x357)][_0x1a6770(0x7fd)](),this['detachFeed'](),this[_0x1a6770(0x748)]=![];}[_0x38248b(0x636)](_0x4e0e4b){const _0x206401=_0x38248b;if(!_0x4e0e4b||this[_0x206401(0x480)]===_0x4e0e4b)return;this[_0x206401(0x60c)](),this[_0x206401(0x480)]=_0x4e0e4b,this[_0x206401(0x528)]=_0xa88cdc=>{const _0x1a9c77=_0x206401;if(!_0xa88cdc)return;const _0x15e743=_0xa88cdc['op']===_0x1a9c77(0x5ca)?_0x39f765[_0x1a9c77(0x5c3)]:_0x39f765['ITEM_UPDATE'];this[_0x1a9c77(0x204)](_0x15e743,_0xa88cdc);},_0x4e0e4b['on'](_0x206401(0x6f3),this[_0x206401(0x528)]);}[_0x38248b(0x60c)](){const _0x100507=_0x38248b;if(this[_0x100507(0x480)]&&this[_0x100507(0x528)])try{this[_0x100507(0x480)]['off'](_0x100507(0x6f3),this[_0x100507(0x528)]);}catch{}this[_0x100507(0x480)]=null,this['_onFeedChange']=null;}[_0x38248b(0x8af)](_0x51fb0f,_0x537e12){const _0x52086f=_0x38248b;if(!_0x27033d[_0x52086f(0x3e6)](_0x51fb0f))return;this[_0x52086f(0x204)](_0x51fb0f,_0x537e12??{});}['subscribe'](_0xd29409,_0x6e048f,_0xd75837){const _0x34a3dc=_0x38248b;if(this[_0x34a3dc(0x357)][_0x34a3dc(0x2f2)]>=this[_0x34a3dc(0x5c2)])return _0x6e048f(_0x34a3dc(0x830),{'message':_0x34a3dc(0x21f),'code':_0x34a3dc(0x1fd)}),()=>{};const _0x4274ea=this[_0x34a3dc(0x526)](_0xd29409),_0x84eeb4={'send':_0x6e048f,'filter':_0x4274ea,'close':_0xd75837??null};this[_0x34a3dc(0x357)][_0x34a3dc(0x6a0)](_0x84eeb4);for(const {event:_0x1416cb,data:_0x1359e5}of this['_buffer']){if(_0x4274ea['has'](_0x1416cb))try{_0x6e048f(_0x1416cb,_0x1359e5);}catch{}}return()=>this[_0x34a3dc(0x357)]['delete'](_0x84eeb4);}[_0x38248b(0x5b5)](){const _0x2980e1=_0x38248b;if(this['_feed'])return this[_0x2980e1(0x480)];const {OKDBChangefeed:_0x478363}=requireOkdbChangefeed(),_0x1cd2a6=new _0x478363(this[_0x2980e1(0x44b)]);_0x1cd2a6[_0x2980e1(0x449)](),this[_0x2980e1(0x636)](_0x1cd2a6);if(this[_0x2980e1(0x44b)]&&!this[_0x2980e1(0x44b)][_0x2980e1(0x47d)])this[_0x2980e1(0x44b)][_0x2980e1(0x47d)]=_0x1cd2a6;return this['_feed'];}get[_0x38248b(0x730)](){const _0x4f4aad=_0x38248b;return this[_0x4f4aad(0x357)][_0x4f4aad(0x2f2)];}['stats'](){const _0x5537d3=_0x38248b;return{'connections':this[_0x5537d3(0x730)],'bufferSize':this[_0x5537d3(0x25c)][_0x5537d3(0x29a)],'attached':this['_attached'],'allEvents':_0x5a64e2['length'],'defaultEvents':_0x14ca68['length']};}static get[_0x38248b(0x7d6)](){return _0x5a64e2;}static get[_0x38248b(0x425)](){return _0x14ca68;}static get[_0x38248b(0x402)](){return[..._0x2279dc];}[_0x38248b(0x526)](_0x52d405){const _0x1afd0e=_0x38248b;if(!_0x52d405||!_0x52d405[_0x1afd0e(0x29a)])return new Set(_0x14ca68);const _0x2f407c=_0x52d405[_0x1afd0e(0x6c2)](_0x3070e6=>_0x27033d[_0x1afd0e(0x3e6)](_0x3070e6));return new Set(_0x2f407c[_0x1afd0e(0x29a)]?_0x2f407c:_0x14ca68);}[_0x38248b(0x204)](_0x50a0a3,_0x1ffce6){const _0x2038e0=_0x38248b,_0x1b829d={..._0x1ffce6,'_ts':_0x1ffce6?.[_0x2038e0(0x380)]??_0x1ffce6?.['ts']??Date[_0x2038e0(0x200)]()};this[_0x2038e0(0x25c)]['push']({'event':_0x50a0a3,'data':_0x1b829d});if(this['_buffer'][_0x2038e0(0x29a)]>this[_0x2038e0(0x64a)])this['_buffer']['shift']();for(const _0x39c9f7 of this['_connections']){if(_0x39c9f7['filter']['has'](_0x50a0a3))try{_0x39c9f7[_0x2038e0(0x33e)](_0x50a0a3,_0x1b829d);}catch{}}}}return okdbRelay=_0x3b071b,okdbRelay;}var hasRequiredLib;function requireLib(){const _0x1a8a35=_0x7f204b;if(hasRequiredLib)return lib[_0x1a8a35(0x216)];return hasRequiredLib=0x1,function(_0x38b50b){const _0x282cfd=_0x1a8a35,_0x5e0fb9=require$$0$6,{load:_0x369749}=require$$1$1,_0x2e2d4d=requireBridge(),_0x4abe1f=requireWritebatch(),{Pumper:_0xde1ad1}=requirePump(),{OKDBEnv:_0xf1951,HIGH_SENTINEL:_0x3c0225}=requireEnv(),{reclass:_0x257816,NotImplementedNative:_0x41468e,OKDBError:_0x32283f,optionsArg:_0x4de87a,invalidArgument:_0x358ccb}=requireErrors(),{notImplemented:_0x107013}=requireUnsupported(),{OKDBHttp:_0x2da506}=requireHttp(),{OKDBFts:_0x83463}=requireFts(),{OKDBEmbeddings:_0x4dc9de}=requireEmbeddings(),{OKDBAuth:_0x4ecd9f}=requireAuth(),{OKDBSync:_0x27f6e7}=requireSync(),{OKDBMigrate:_0x333337}=requireMigrate(),{OKDBFunctions:_0x2875cc}=requireFunctions(),{OKDBMcp:_0x2e12d9}=requireMcp(),{OKDBEngines:_0x3930eb,OKDBPipelines:_0x3ab46e}=requireEngines(),{makeMeta:_0x4eb763,makeLicenses:_0x27c778,makeLicenseChecker:_0x4c1860,makeProcesses:_0x3b72de}=requireSys();let _0x19f191=null;function _0x1156d7(_0x19ae9b){const _0x2c965f=_0x20a5;if(!_0x19f191){const {Unpackr:_0x215fd7}=require$$18;_0x19f191=new _0x215fd7({'useRecords':![],'mapsAsObjects':!![],'copyBuffers':!![]});}return _0x19f191[_0x2c965f(0x1e9)](_0x19ae9b);}let _0x3a2ed0=null;function _0x2667b8(_0x5470bf,_0x22e324){const _0x2017fd=_0x20a5;if(!_0x3a2ed0){const {Unpackr:_0x9144cc}=require$$18;_0x3a2ed0=new _0x9144cc({'copyBuffers':!![]});}return _0x3a2ed0[_0x2017fd(0x1e9)](_0x5470bf,_0x22e324);}const {encodeKey:_0x35f76c,KEY_BUF_SIZE:_0x42668a,NO_FAST:_0x5e9a41}=requireKeyenc(),_0x93ce1b=0x40*0x400,_0x2543b0=0x4*0x400*0x400;function _0x3976f0(_0x5a9e42,_0x3b0466){const _0x4b3ed9=_0x20a5,_0x1c799b=_0x5a9e42[0x2],_0x3f5956=_0x1c799b?(_0x5a9e42[_0x4b3ed9(0x29a)]-0x3)/Math[_0x4b3ed9(0x57b)](_0x1c799b):0x0,_0x3b5426=new Array(_0x3f5956);let _0x5cbbde=0x3;if(_0x1c799b===0x2){for(let _0x4f694a=0x0;_0x4f694a<_0x3f5956;_0x4f694a++,_0x5cbbde+=0x2)_0x3b5426[_0x4f694a]={'key':_0x5a9e42[_0x5cbbde],'value':_0x5a9e42[_0x5cbbde+0x1]};}else{if(_0x1c799b===0x3){for(let _0x5f12e4=0x0;_0x5f12e4<_0x3f5956;_0x5f12e4++,_0x5cbbde+=0x3)_0x3b5426[_0x5f12e4]={'key':_0x5a9e42[_0x5cbbde],'value':_0x5a9e42[_0x5cbbde+0x1],'version':_0x5a9e42[_0x5cbbde+0x2]};}else{if(_0x1c799b===-0x2){for(let _0x316a86=0x0;_0x316a86<_0x3f5956;_0x316a86++,_0x5cbbde+=0x2)_0x3b5426[_0x316a86]={'clock':_0x5a9e42[_0x5cbbde],..._0x5a9e42[_0x5cbbde+0x1]};}else{if(_0x1c799b===0x4){for(let _0x39fa05=0x0;_0x39fa05<_0x3f5956;_0x39fa05++,_0x5cbbde+=0x4)_0x3b5426[_0x39fa05]={'key':_0x5a9e42[_0x5cbbde],'value':_0x5a9e42[_0x5cbbde+0x1],'version':_0x5a9e42[_0x5cbbde+0x2],'indexKey':_0x5a9e42[_0x5cbbde+0x3]};}else{if(_0x3f5956)throw new Error(_0x4b3ed9(0x875)+_0x1c799b);}}}}return _0x3b0466?[_0x5a9e42[0x0],_0x3b5426,_0x5a9e42[0x1]]:_0x3b5426;}let _0x232ee4=null;function _0x38d5ac(_0x3542bc,_0x593605,_0x1502b0){const _0x22482f=_0x20a5;if(!_0x232ee4)_0x232ee4=requireDist()[_0x22482f(0x2d5)];const _0x3371b4=new DataView(_0x3542bc[_0x22482f(0x307)],_0x3542bc['byteOffset'],_0x593605),_0x12cf92=_0x3371b4[_0x22482f(0x5ab)](0x10,!![]),_0x5f140f=new Array(_0x12cf92);let _0x5c3d30=0x14;for(let _0x32efd5=0x0;_0x32efd5<_0x12cf92;_0x32efd5++){const _0x1af851=_0x3542bc[_0x5c3d30]|_0x3542bc[_0x5c3d30+0x1]<<0x8;_0x5c3d30+=0x2,_0x5f140f[_0x32efd5]=_0x232ee4(_0x3542bc,_0x5c3d30,_0x5c3d30+_0x1af851),_0x5c3d30+=_0x1af851;}return _0x1502b0?[_0x3371b4[_0x22482f(0x611)](0x0,!![]),_0x5f140f,_0x3371b4[_0x22482f(0x611)](0x8,!![])]:_0x5f140f;}const _0x589675=requireOkdbLogger(),_0x3cb754=requireOkdbPlugins(),{OKDB_STATE:_0x3b19f2,EVENTS:_0x2a893e}=requireOkdbEnums(),_0x35c9c0=requireStatics();let _0x114026=null,_0x1c31e8=![],_0x356694=0x1;const _0x37007d=new Map(),_0x409977=new Set([_0x282cfd(0x495),_0x282cfd(0x27e)]),_0x6cc9f1=_0x5a3336=>!!_0x5a3336&&_0x409977[_0x282cfd(0x3e6)](_0x5a3336[_0x282cfd(0x19c)]),_0x520e1d=Number(process.env.OKDB_PENDING_RETRY_MS)>0x0?Number(process.env.OKDB_PENDING_RETRY_MS):0x1d4c0;function _0x50d2d1(){const _0x973f9d=_0x282cfd;!_0x1c31e8&&(_0x113764()['setBridge'](_0x2e2d4d['bridge']),_0x4abe1f[_0x973f9d(0x45d)](_0x113764()),_0x1c31e8=!![]);}function _0x113764(){if(!_0x114026)_0x114026=_0x369749();return _0x114026;}class _0x11e8f3 extends Map{constructor(_0x1dc920){super(),this['_db']=_0x1dc920;}['_sync'](){const _0x489fe3=_0x282cfd,_0x16f9e=this[_0x489fe3(0x3a2)];if(!_0x16f9e['_isOpen'])return;let _0x1f4b79;try{_0x1f4b79=_0x16f9e[_0x489fe3(0x5a6)]('db',null,_0x489fe3(0x840),[],![]);}catch{return;}for(const _0x1463a6 of _0x1f4b79)if(!super[_0x489fe3(0x3e6)](_0x1463a6)&&_0x16f9e[_0x489fe3(0x5a6)]('db',null,_0x489fe3(0x765),[_0x1463a6],![]))_0x16f9e[_0x489fe3(0x6ec)](_0x1463a6);}[_0x282cfd(0x7f0)](_0x3dc950){const _0x5b40ea=_0x282cfd,_0xf0e505=super[_0x5b40ea(0x7f0)](_0x3dc950);if(_0xf0e505!==undefined||typeof _0x3dc950!==_0x5b40ea(0x78e))return _0xf0e505;const _0x193fd9=this[_0x5b40ea(0x3a2)];if(_0x3dc950===_0x5b40ea(0x794))return _0x193fd9[_0x5b40ea(0x393)]?_0x193fd9[_0x5b40ea(0x7a7)][_0x5b40ea(0x87a)]??undefined:undefined;if(_0x193fd9[_0x5b40ea(0x393)]&&_0x193fd9['_call']('db',null,_0x5b40ea(0x765),[_0x3dc950],![]))return _0x193fd9[_0x5b40ea(0x6ec)](_0x3dc950);if(_0x193fd9[_0x5b40ea(0x393)]&&typeof _0x3dc950===_0x5b40ea(0x78e)&&!_0x3dc950['startsWith']('~')){_0x193fd9[_0x5b40ea(0x5a6)]('db',null,_0x5b40ea(0x1bf),[],![]);if(_0x193fd9[_0x5b40ea(0x5a6)]('db',null,_0x5b40ea(0x765),[_0x3dc950],![]))return _0x193fd9[_0x5b40ea(0x6ec)](_0x3dc950);}return undefined;}['has'](_0xc3f758){return this['get'](_0xc3f758)!==undefined;}get[_0x282cfd(0x2f2)](){return this['_sync'](),super['size'];}['keys'](){const _0x1d7392=_0x282cfd;return this[_0x1d7392(0x5b3)](),super[_0x1d7392(0x62c)]();}[_0x282cfd(0x772)](){const _0x4d6091=_0x282cfd;return this[_0x4d6091(0x5b3)](),super[_0x4d6091(0x772)]();}['entries'](){const _0x456d15=_0x282cfd;return this[_0x456d15(0x5b3)](),super[_0x456d15(0x488)]();}[_0x282cfd(0x7e0)](_0x169c3b,_0xbb8e15){return this['_sync'](),super['forEach'](_0x169c3b,_0xbb8e15);}[Symbol[_0x282cfd(0x38b)]](){return this['_sync'](),super[Symbol['iterator']]();}}class _0x12e45f{constructor(_0x2b1f62,_0x39d323={}){const _0x381155=_0x282cfd,_0x10b2d0=_0x113764();this[_0x381155(0x4b0)]=_0x2b1f62,this[_0x381155(0x85d)]=_0x356694++,this[_0x381155(0x664)]='db'+this[_0x381155(0x85d)],this[_0x381155(0x51a)]={..._0x35c9c0[_0x381155(0x4bd)],..._0x39d323,'auth':_0x39d323['auth']?{..._0x39d323[_0x381155(0x3bc)]}:undefined,'lmdb':{..._0x39d323['lmdb']||{}}},this['events']=new _0x5e0fb9(),this[_0x381155(0x511)]['setMaxListeners'](0x0),this[_0x381155(0x598)]=new Set(),this[_0x381155(0x511)]['on'](_0x381155(0x8aa),_0x6fb54b=>this[_0x381155(0x665)](_0x6fb54b)),this[_0x381155(0x6ae)]=new _0x589675(this),this[_0x381155(0x6ae)][_0x381155(0x612)](),_0x2e2d4d[_0x381155(0x541)](this[_0x381155(0x664)],{'_deliver':(_0x458f6b,_0x223e9f)=>this[_0x381155(0x275)](_0x458f6b,_0x223e9f),'_log':_0x281bd3=>{const _0xf62d49=_0x381155;if(this[_0xf62d49(0x2e2)])this[_0xf62d49(0x2e2)][_0xf62d49(0x373)](_0x281bd3);const _0x22bed3=_0x281bd3&&_0x281bd3[_0xf62d49(0x7bd)];if(_0x22bed3&&Object[_0xf62d49(0x4ca)][_0xf62d49(0x6fa)]['call'](this[_0xf62d49(0x6ae)],_0x22bed3)&&typeof this[_0xf62d49(0x6ae)][_0x22bed3]==='function'){const _0x31294d=_0x281bd3[_0xf62d49(0x58a)];return this[_0xf62d49(0x6ae)][_0x22bed3](_0x281bd3[_0xf62d49(0x3c1)],{..._0x281bd3[_0xf62d49(0x719)]||{},..._0x31294d&&typeof _0x31294d===_0xf62d49(0x2bf)?_0x31294d:{}});}return this[_0xf62d49(0x6ae)]['ingest'](_0x281bd3);}}),_0x50d2d1();try{const _0x5a03f5={};if(typeof _0x381155(0x2fd)===_0x381155(0x7b8)||'true'!=='true');const _0x1e3e92={..._0x39d323,'_clusterWorker':require(_0x381155(0x3ec))[_0x381155(0x6a8)],..._0x5a03f5};this['_keyFns']={'instance':null,'envs':new Map()};typeof _0x39d323[_0x381155(0x442)]==='function'&&(this['_keyFns'][_0x381155(0x77d)]=_0x39d323[_0x381155(0x442)],delete _0x1e3e92[_0x381155(0x442)]);if(_0x39d323[_0x381155(0x6f5)]&&typeof _0x39d323[_0x381155(0x6f5)]===_0x381155(0x2bf)){for(const [_0x4daa67,_0x5ebac1]of Object[_0x381155(0x488)](_0x39d323[_0x381155(0x6f5)]))this[_0x381155(0x82f)][_0x381155(0x2ee)][_0x381155(0x534)](_0x4daa67,_0x5ebac1);}delete _0x1e3e92['encryptionKeys'],this[_0x381155(0x6df)]=new _0x10b2d0['Native'](_0x2b1f62,_0x1e3e92,this[_0x381155(0x664)]);}catch(_0x3504d7){_0x2e2d4d[_0x381155(0x77e)](this[_0x381155(0x664)]);throw _0x257816(_0x3504d7);}this['state']=_0x3b19f2[_0x381155(0x2cb)],this['_isOpen']=![],this[_0x381155(0x3fd)]=new _0x11e8f3(this),this[_0x381155(0x42d)]=new _0xde1ad1({'pump':()=>this['_native'][_0x381155(0x553)]()}),this[_0x381155(0x20b)]=new _0x4abe1f[(_0x381155(0x7b3))](this),this[_0x381155(0x42d)][_0x381155(0x421)]=()=>_0x2e2d4d[_0x381155(0x751)](),_0x2e2d4d['setKick'](()=>this[_0x381155(0x42d)][_0x381155(0x1bc)](),this),_0x37007d['set'](this[_0x381155(0x85d)],this),this['_features']={},_0x2e2d4d[_0x381155(0x7fc)](this),this[_0x381155(0x682)]=new _0x83463(this),this[_0x381155(0x717)]=new _0x4dc9de(this),this[_0x381155(0x3e1)]=new _0x3930eb(this,null,null),this[_0x381155(0x390)]=new _0x3ab46e(this,null),this['meta']=_0x4eb763(this),this[_0x381155(0x34d)]=_0x27c778(this),this['_license']=_0x4c1860(this),this['processes']=_0x3b72de(this),this[_0x381155(0x744)]=_0x496788(this),this[_0x381155(0x7ac)]=new _0x3cb754(this),this[_0x381155(0x2a7)]=new _0x2da506(this),this[_0x381155(0x65b)]=new _0x27f6e7(this),this[_0x381155(0x3bc)]=new _0x4ecd9f(this),this['functions']=new _0x2875cc(this,null),this['mcp']=new _0x2e12d9(this),this['admin']=_0x39d323&&_0x39d323['admin']===![]?null:_0x107013(_0x381155(0x3df)),this[_0x381155(0x6c5)]=_0x107013(_0x381155(0x6c5)),this[_0x381155(0x37c)]=new _0x333337(this);}[_0x282cfd(0x5a6)](_0x417d02,_0x583f3e,_0xaea939,_0x16be3a,_0x12e43b=!![]){const _0x9eaf27=_0x282cfd;if(_0x12e43b&&this[_0x9eaf27(0x20b)]&&this[_0x9eaf27(0x20b)][_0x9eaf27(0x493)][_0x9eaf27(0x29a)])this[_0x9eaf27(0x20b)][_0x9eaf27(0x28c)]();try{return this['_native'][_0x9eaf27(0x3ce)](_0x417d02,_0x583f3e,_0xaea939,_0x16be3a);}catch(_0x5d9ed2){throw _0x257816(_0x5d9ed2);}finally{if(_0x12e43b)this['_pumper'][_0x9eaf27(0x1bc)]();}}[_0x282cfd(0x6a6)](_0x3eb229,_0x5be0de,_0x6ddfd6,_0x33f918){const _0x1df067=_0x282cfd;let _0x1cf2a7;try{_0x1cf2a7=this[_0x1df067(0x6df)][_0x1df067(0x3dc)](_0x3eb229,_0x5be0de,_0x6ddfd6,_0x33f918);}catch(_0x3db985){throw _0x257816(_0x3db985);}return _0x1cf2a7 instanceof Uint8Array?_0x1156d7(_0x1cf2a7):_0x1cf2a7[0x0];}[_0x282cfd(0x2c2)](_0x3b3779){const _0x2e6629=_0x282cfd;let _0x1bf04a=this[_0x2e6629(0x685)];if(_0x1bf04a&&_0x3b3779<=_0x1bf04a[_0x2e6629(0x29a)])return _0x1bf04a;let _0x2dce07=_0x1bf04a?_0x1bf04a[_0x2e6629(0x29a)]:_0x93ce1b;while(_0x2dce07<_0x3b3779)_0x2dce07*=0x2;if(_0x2dce07>_0x2543b0)return _0x1bf04a;return _0x1bf04a=this[_0x2e6629(0x685)]=Buffer['allocUnsafeSlow'](_0x2dce07),this['_native'][_0x2e6629(0x464)](_0x1bf04a),_0x1bf04a;}[_0x282cfd(0x410)](_0xd0a3d1,_0x338749,_0x50b978){const _0x5dfaa0=_0x282cfd;if(!this[_0x5dfaa0(0x685)])this[_0x5dfaa0(0x2c2)](0x0);const _0xb6b7d3=this[_0x5dfaa0(0x6df)][_0x5dfaa0(0x28b)](_0xd0a3d1,_0x338749,_0x50b978);if(typeof _0xb6b7d3===_0x5dfaa0(0x79a))return _0x2667b8(this['_rbuf'],_0xb6b7d3);if(_0xb6b7d3===undefined||_0xb6b7d3===null)return _0xb6b7d3;return this[_0x5dfaa0(0x2c2)](_0xb6b7d3[_0x5dfaa0(0x29a)]),_0x2667b8(_0xb6b7d3);}[_0x282cfd(0x316)](_0x452b7f,_0x51437d,_0x2c9504){const _0x4ce1bb=_0x282cfd;let _0x3ce45d=this[_0x4ce1bb(0x50c)];if(!_0x3ce45d){_0x3ce45d=this['_kbuf']=Buffer[_0x4ce1bb(0x4c7)](_0x42668a),this['_native']['setKeyBuffer'](_0x3ce45d),this[_0x4ce1bb(0x6b7)]=new Map();if(!this[_0x4ce1bb(0x685)])this[_0x4ce1bb(0x2c2)](0x0);}const _0x13ed42=_0x35f76c(_0x2c9504,_0x3ce45d);if(_0x13ed42<0x0)return _0x5e9a41;let _0x2972a5=this['_tids'][_0x4ce1bb(0x7f0)](_0x452b7f);if(_0x2972a5===undefined)this[_0x4ce1bb(0x6b7)]['set'](_0x452b7f,_0x2972a5=new Map());let _0xd5d9e8=_0x2972a5['get'](_0x51437d);if(_0xd5d9e8===undefined)_0x2972a5[_0x4ce1bb(0x534)](_0x51437d,_0xd5d9e8=this[_0x4ce1bb(0x6df)][_0x4ce1bb(0x5a0)](_0x452b7f,_0x51437d));if(_0xd5d9e8<0x0)return _0x5e9a41;const _0x55ac3d=this[_0x4ce1bb(0x6df)][_0x4ce1bb(0x201)](_0xd5d9e8,_0x13ed42);if(typeof _0x55ac3d==='number')return _0x2667b8(this[_0x4ce1bb(0x685)],_0x55ac3d);if(_0x55ac3d===undefined||_0x55ac3d===null)return _0x55ac3d;return this[_0x4ce1bb(0x2c2)](_0x55ac3d[_0x4ce1bb(0x29a)]),_0x2667b8(_0x55ac3d);}[_0x282cfd(0x4b3)](_0x19c2a1,_0x4d04d4,_0x5a4c4d){const _0x29ef5f=_0x282cfd;if(!this[_0x29ef5f(0x685)])this[_0x29ef5f(0x2c2)](0x0);let _0x21579b;try{_0x21579b=this['_native']['callRows'](_0x19c2a1,_0x4d04d4,_0x5a4c4d);}catch(_0x29436c){throw _0x257816(_0x29436c);}const _0x1cc290=_0x4d04d4==='pinned',_0x1f9766=_0x1cc290?_0x5a4c4d[0x1]:_0x4d04d4;let _0x5573a1=this[_0x29ef5f(0x685)],_0x541c36=_0x21579b;if(_0x21579b instanceof Uint8Array)this[_0x29ef5f(0x2c2)](_0x21579b[_0x29ef5f(0x29a)]),_0x5573a1=_0x21579b,_0x541c36=_0x21579b['length'];else{if(typeof _0x21579b!==_0x29ef5f(0x79a))return _0x21579b[0x0];}if(_0x1f9766==='getKeys')return _0x38d5ac(_0x5573a1,_0x541c36,_0x1cc290);if(_0x1f9766===_0x29ef5f(0x6c9))return _0x2667b8(_0x5573a1,_0x541c36);return _0x3976f0(_0x2667b8(_0x5573a1,_0x541c36),_0x1cc290);}[_0x282cfd(0x1c4)](_0x2aadc2,_0x478db2,_0x44466f,_0xe0e21c,_0x3bb029=!![],_0x56c715=!![]){const _0x2f73c8=_0x282cfd,_0x55d9a5=()=>this['_macro'](()=>this[_0x2f73c8(0x5a6)](_0x2aadc2,_0x478db2,_0x44466f,_0xe0e21c,_0x3bb029));if(!_0x56c715)return _0x55d9a5();return this[_0x2f73c8(0x5e8)](_0x55d9a5);}[_0x282cfd(0x5e8)](_0x58fe7f){const _0x32596c=_0x282cfd;return _0x58fe7f()[_0x32596c(0x2ba)](async _0x486bb8=>{const _0x4ea9da=_0x32596c;if(!_0x6cc9f1(_0x486bb8))throw _0x486bb8;const _0x5c4f08=Date['now']()+_0x520e1d;let _0x314c48=0x1;while(_0x6cc9f1(_0x486bb8)&&Date['now']()<_0x5c4f08){await new Promise(_0x1ffa70=>setTimeout(_0x1ffa70,_0x314c48)),_0x314c48=Math[_0x4ea9da(0x415)](_0x314c48*0x2,0x14);try{return await _0x58fe7f();}catch(_0x43c6f6){_0x486bb8=_0x43c6f6;}}throw _0x486bb8;});}[_0x282cfd(0x667)](_0x2fe4){const _0x57d404=_0x282cfd;if(_0x2e2d4d[_0x57d404(0x2a8)]())return Promise['resolve'](_0x2fe4);return new Promise(_0x1ea91a=>setImmediate(()=>_0x1ea91a(_0x2fe4)));}[_0x282cfd(0x83f)](_0x5959e3){const _0x51e19e=_0x282cfd;if(_0x2e2d4d[_0x51e19e(0x2a8)]())return Promise[_0x51e19e(0x7f5)](_0x5959e3);return this[_0x51e19e(0x894)]()['then'](()=>_0x5959e3);}['_afterDurable'](){return new Promise(_0x40689b=>setImmediate(()=>{const _0x54995a=_0x20a5;let _0x3a0f2d;try{_0x3a0f2d=this[_0x54995a(0x6df)][_0x54995a(0x46d)]();}catch{return _0x40689b();}_0x4abe1f[_0x54995a(0x63a)](_0x3a0f2d,_0x40689b);}));}['_macro'](_0xc78e98){return new Promise((_0x218191,_0x36aa04)=>setImmediate(()=>{try{_0x218191(_0xc78e98());}catch(_0x2ef92a){_0x36aa04(_0x2ef92a);}}));}[_0x282cfd(0x31f)](_0x5b7f87,_0x1105c8,_0x1e5e12){return _0x47c4c0(_0x5b7f87,_0x1105c8,_0x1e5e12);}[_0x282cfd(0x665)](_0x5ce011){const _0x54aad7=_0x282cfd;if(typeof _0x5ce011!==_0x54aad7(0x78e)||this[_0x54aad7(0x598)][_0x54aad7(0x3e6)](_0x5ce011)||_0x5ce011===_0x54aad7(0x8aa)||_0x5ce011===_0x54aad7(0x81c))return;this[_0x54aad7(0x598)][_0x54aad7(0x6a0)](_0x5ce011);try{this[_0x54aad7(0x6df)][_0x54aad7(0x3ce)]('events',null,'subscribe',[this[_0x54aad7(0x664)],_0x5ce011]);}catch{}}['_deliverEvent'](_0x3c0212,_0x1fefe0){const _0x17ad57=_0x282cfd;this[_0x17ad57(0x511)][_0x17ad57(0x53b)](_0x3c0212,_0x1fefe0);}async['_resolveKeys'](){const _0x505222=_0x282cfd,_0x48ec2c=this[_0x505222(0x82f)];if(_0x48ec2c['instance'])this['_setKey'](null,await _0x48ec2c['instance'](null),!![]);for(const [_0x27755c,_0x5bc8c1]of _0x48ec2c[_0x505222(0x2ee)])this[_0x505222(0x2c9)](_0x27755c,typeof _0x5bc8c1===_0x505222(0x8a6)?await _0x5bc8c1(_0x27755c):_0x5bc8c1,typeof _0x5bc8c1===_0x505222(0x8a6));(_0x48ec2c[_0x505222(0x77d)]||[..._0x48ec2c[_0x505222(0x2ee)]['values']()][_0x505222(0x7c3)](_0x5601b8=>typeof _0x5601b8===_0x505222(0x8a6)))&&!this[_0x505222(0x80b)]&&(this[_0x505222(0x80b)]=_0x277a77=>{const _0xba8f0=_0x505222,_0x551a0f=_0x277a77&&_0x277a77[_0xba8f0(0x27b)]!=null?_0x277a77[_0xba8f0(0x27b)]:null,_0x4fe773=_0x551a0f==null?_0x48ec2c[_0xba8f0(0x77d)]:_0x48ec2c[_0xba8f0(0x2ee)]['get'](_0x551a0f);if(typeof _0x4fe773!==_0xba8f0(0x8a6))return;Promise[_0xba8f0(0x7f5)]()[_0xba8f0(0x315)](()=>_0x4fe773(_0x551a0f))['then'](_0x193722=>this[_0xba8f0(0x2c9)](_0x551a0f,_0x193722,!![]))['catch'](_0x535460=>this[_0xba8f0(0x6ae)]['error']('encryption\x20key\x20function\x20failed:\x20'+(_0x535460&&_0x535460[_0xba8f0(0x4ee)]),{'env':_0x551a0f}));},this['events']['on'](_0x505222(0x8b9),this['_keyListener']));}[_0x282cfd(0x2c9)](_0x2788e9,_0x2da5bc,_0x416dd0){const _0x1eb74b=_0x282cfd;if(_0x2da5bc==null)throw new _0x32283f(_0x1eb74b(0x6a4)+(_0x2788e9?_0x1eb74b(0x366)+_0x2788e9+'\x22':'')+'\x20returned\x20no\x20key',_0x1eb74b(0x74b));this['_native'][_0x1eb74b(0x3ce)]('db',null,_0x1eb74b(0x6f7),[_0x2788e9,_0x2da5bc,!!_0x416dd0]);}async[_0x282cfd(0x1e7)](_0x4a7503){const _0x132e73=_0x282cfd;this[_0x132e73(0x2d3)]();const {env:env=null,to:_0x30a16c}=_0x4de87a(_0x4a7503),_0x2145be=typeof _0x30a16c===_0x132e73(0x8a6),_0x39aa66=_0x2145be?await _0x30a16c(env):_0x30a16c;if(_0x39aa66==null)throw _0x358ccb('changeEncryptionKey:\x20to',_0x132e73(0x653),_0x39aa66);const _0x427d6b=this[_0x132e73(0x5a6)]('db',null,_0x132e73(0x1e7),[env,_0x39aa66,_0x2145be]);if(_0x2145be){if(env==null)this['_keyFns'][_0x132e73(0x77d)]=_0x30a16c;else this['_keyFns'][_0x132e73(0x2ee)][_0x132e73(0x534)](env,_0x30a16c);}return _0x427d6b;}async[_0x282cfd(0x742)](_0x2301d2){const _0x2b31f8=_0x282cfd;this['_assertOpen']();const _0x438f6=_0x4de87a(_0x2301d2);if(!_0x438f6[_0x2b31f8(0x27b)])throw _0x358ccb(_0x2b31f8(0x589),_0x2b31f8(0x4a2),_0x438f6[_0x2b31f8(0x27b)]);let _0x38118d=_0x438f6['to'];const _0xe0b4c9=typeof _0x38118d===_0x2b31f8(0x8a6);if(_0xe0b4c9)_0x38118d=await _0x438f6['to'](_0x438f6['env']);const _0x468cf8=await this[_0x2b31f8(0x7ee)](()=>this[_0x2b31f8(0x5a6)]('db',null,_0x2b31f8(0x742),[_0x438f6[_0x2b31f8(0x27b)],'to'in _0x438f6?_0x38118d:undefined,_0xe0b4c9]));if(_0xe0b4c9)this[_0x2b31f8(0x82f)][_0x2b31f8(0x2ee)][_0x2b31f8(0x534)](_0x438f6[_0x2b31f8(0x27b)],_0x438f6['to']);return _0x468cf8;}async[_0x282cfd(0x377)](){const _0x48fd15=_0x282cfd;if(this[_0x48fd15(0x8ac)]===_0x3b19f2['STARTED'])return;if(this['state']!==_0x3b19f2[_0x48fd15(0x2cb)])throw new _0x32283f(_0x48fd15(0x49e),_0x48fd15(0x237),{'state':this[_0x48fd15(0x8ac)]});this['state']=_0x3b19f2['STARTING'],this[_0x48fd15(0x2e2)]=[];try{try{await this[_0x48fd15(0x35d)](),await this[_0x48fd15(0x7ee)](()=>this[_0x48fd15(0x6df)][_0x48fd15(0x377)]());}catch(_0x3a897a){throw _0x257816(_0x3a897a);}}catch(_0x33db63){this[_0x48fd15(0x8ac)]=_0x3b19f2[_0x48fd15(0x7aa)],this[_0x48fd15(0x2e2)]=null,this[_0x48fd15(0x5de)]();throw _0x33db63;}this[_0x48fd15(0x393)]=!![],this['state']=_0x3b19f2[_0x48fd15(0x466)];try{this['_call']('db',null,_0x48fd15(0x22f),[this['plugins'][_0x48fd15(0x361)]['map'](_0x4329f9=>_0x4329f9[_0x48fd15(0x3f5)]?.['name'])[_0x48fd15(0x6c2)](Boolean)],![]),await this['plugins'][_0x48fd15(0x449)]();}catch(_0x2ef95a){this[_0x48fd15(0x8ac)]=_0x3b19f2[_0x48fd15(0x52f)];try{this[_0x48fd15(0x6df)][_0x48fd15(0x690)]();}catch{}this[_0x48fd15(0x8ac)]=_0x3b19f2[_0x48fd15(0x7aa)],this[_0x48fd15(0x393)]=![],this[_0x48fd15(0x5de)]();throw _0x2ef95a;}for(const _0x4333be of this[_0x48fd15(0x5a6)]('db',null,_0x48fd15(0x840),[],![]))if(!_0x4333be[_0x48fd15(0x8b0)]('~'))this[_0x48fd15(0x6ec)](_0x4333be);try{if(this[_0x48fd15(0x5a6)]('db',null,_0x48fd15(0x765),['~log'],![])){this[_0x48fd15(0x6a3)]=this[_0x48fd15(0x6ec)](_0x48fd15(0x1d4));const _0x533524=new Set(this['log'][_0x48fd15(0x706)]);this[_0x48fd15(0x1ca)]=this[_0x48fd15(0x6ae)]['attachOKDB'](this[_0x48fd15(0x6a3)],this['id']);const _0x42ca62=[...this[_0x48fd15(0x6ae)][_0x48fd15(0x706)]]['find'](_0x41efd8=>!_0x533524[_0x48fd15(0x3e6)](_0x41efd8)),_0x60342c=this['_call']('db',null,'bootLogMark',[],![]);for(const _0x5bcee4 of(this[_0x48fd15(0x2e2)]??[])[_0x48fd15(0x231)](_0x60342c))_0x42ca62?.(_0x5bcee4);}}catch{}this[_0x48fd15(0x2e2)]=null,this[_0x48fd15(0x6df)]['setWake'](()=>this[_0x48fd15(0x42d)][_0x48fd15(0x1bc)]()),this[_0x48fd15(0x42d)][_0x48fd15(0x449)]();}async[_0x282cfd(0x6ba)](){const _0x4bd701=_0x282cfd;return this[_0x4bd701(0x1c4)]('db',null,_0x4bd701(0x5c4),[]);}async['close'](){const _0x2774a7=_0x282cfd;if(this['state']===_0x3b19f2[_0x2774a7(0x7aa)])return;if(this[_0x2774a7(0x8ac)]!==_0x3b19f2[_0x2774a7(0x466)])throw new _0x32283f(_0x2774a7(0x79f),_0x2774a7(0x237),{'state':this[_0x2774a7(0x8ac)]});this[_0x2774a7(0x8ac)]=_0x3b19f2[_0x2774a7(0x52f)],this[_0x2774a7(0x393)]=![];let _0x15f3dc=null;if(this[_0x2774a7(0x2a7)][_0x2774a7(0x35a)][_0x2774a7(0x29a)])try{await this['http'][_0x2774a7(0x690)]();}catch(_0x3a1044){_0x15f3dc=_0x3a1044;}if(this[_0x2774a7(0x55b)]){try{this['__adminRelay'][_0x2774a7(0x60c)](),this['__adminRelay'][_0x2774a7(0x75b)]();}catch{}this[_0x2774a7(0x55b)]=null;}try{this['_changefeed']?.[_0x2774a7(0x4a5)]?.();}catch{}try{await this[_0x2774a7(0x7ac)][_0x2774a7(0x4a5)]();}catch(_0x276c9c){_0x15f3dc=_0x276c9c;}for(const _0x35a101 of[...Map[_0x2774a7(0x4ca)][_0x2774a7(0x772)][_0x2774a7(0x3ce)](this[_0x2774a7(0x3fd)])]){try{await _0x35a101['processor']['stopAll']();}catch{}try{await _0x35a101['engines'][_0x2774a7(0x4a5)]();}catch{}}for(const _0x3a2d45 of[()=>this[_0x2774a7(0x65b)][_0x2774a7(0x4a5)](),()=>this[_0x2774a7(0x717)][_0x2774a7(0x4a5)](),()=>this[_0x2774a7(0x682)]&&this[_0x2774a7(0x682)][_0x2774a7(0x4a5)]?.()]){try{await _0x3a2d45();}catch{}}const _0x19e9ac=this[_0x2774a7(0x51a)][_0x2774a7(0x51b)]??0x7530,_0x5e4b34=[];for(const _0x35a16c of[...Map['prototype'][_0x2774a7(0x772)][_0x2774a7(0x3ce)](this['_envs'])]){if(_0x35a16c['queue']?.[_0x2774a7(0x786)]?.[_0x2774a7(0x2f2)]>0x0)_0x5e4b34[_0x2774a7(0x373)](_0x35a16c['queue'][_0x2774a7(0x299)](_0x19e9ac));}if(_0x5e4b34[_0x2774a7(0x29a)]>0x0)await Promise[_0x2774a7(0x47a)](_0x5e4b34);try{this['_detachLogSink']?.();}catch{}this[_0x2774a7(0x1ca)]=null;try{await this['_wb'][_0x2774a7(0x7cc)]();}catch{}this['_pumper'][_0x2774a7(0x4a5)]();try{await this[_0x2774a7(0x7ee)](()=>this[_0x2774a7(0x6df)][_0x2774a7(0x690)]());}catch(_0xe0a7c4){_0x15f3dc=_0x15f3dc||_0x257816(_0xe0a7c4);}this['state']=_0x3b19f2[_0x2774a7(0x7aa)],this['_teardownNative'](),Map[_0x2774a7(0x4ca)][_0x2774a7(0x7fd)][_0x2774a7(0x3ce)](this[_0x2774a7(0x3fd)]);if(_0x15f3dc)throw _0x15f3dc;}[_0x282cfd(0x5de)](){const _0x4bc3d7=_0x282cfd;this[_0x4bc3d7(0x42d)][_0x4bc3d7(0x4a5)]();try{this[_0x4bc3d7(0x6df)][_0x4bc3d7(0x4a9)](null);}catch{}try{this[_0x4bc3d7(0x6df)][_0x4bc3d7(0x5a4)]();}catch{}this[_0x4bc3d7(0x685)]=null,this[_0x4bc3d7(0x50c)]=null,this['_tids']=null,_0x2e2d4d[_0x4bc3d7(0x77e)](this[_0x4bc3d7(0x664)]),_0x2e2d4d['forgetDb'](this),_0x37007d[_0x4bc3d7(0x36f)](this['_uid']);if(_0x2e2d4d[_0x4bc3d7(0x29c)](this)){const _0xe01e36=[..._0x37007d[_0x4bc3d7(0x772)]()][_0x4bc3d7(0x451)]();if(_0xe01e36)_0x2e2d4d[_0x4bc3d7(0x3aa)](()=>_0xe01e36[_0x4bc3d7(0x42d)][_0x4bc3d7(0x1bc)](),_0xe01e36);else _0x2e2d4d[_0x4bc3d7(0x3aa)](()=>{},null);}}get['id'](){return this['_call']('db',null,'id',[],![]);}[_0x282cfd(0x47b)](_0x2555d1){const _0x2857a3=_0x282cfd;return this[_0x2857a3(0x27b)](_0x2857a3(0x803))[_0x2857a3(0x47b)](_0x2555d1);}get[_0x282cfd(0x545)](){const _0x528981=_0x282cfd;return this['_rootDb'][_0x528981(0x7f0)](_0x528981(0x67f));}get['_nodePrivateKey'](){const _0x5c57a0=_0x282cfd;return this[_0x5c57a0(0x65b)][_0x5c57a0(0x66e)];}get[_0x282cfd(0x24b)](){const _0xb5f807=_0x282cfd;return this[_0xb5f807(0x65b)][_0xb5f807(0x24b)];}get[_0x282cfd(0x3b5)](){const _0x126ce6=_0x282cfd;if(!this[_0x126ce6(0x393)]||!this['_call']('db',null,'subsBuilt',[],![]))return undefined;if(!this[_0x126ce6(0x525)]){const _0x40d553=requireOkdbSubscriptionsStore(),_0x2a2e0b=new _0x40d553(this,this['options']&&this['options']['subscriptions']);_0x2a2e0b['_sub']=this['env']('~sub');const {compileFilter:_0x3cbaa9}=requireOkdbQueryFilter(),_0x137ab9=(_0x1f664f,_0x181cc1)=>{if(_0x1f664f==null)return![];try{return _0x3cbaa9(_0x1f664f)(_0x181cc1);}catch{return![];}};this[_0x126ce6(0x525)]={'store':_0x2a2e0b,'router':{'_matches':_0x137ab9}};}return this[_0x126ce6(0x525)];}get['_role'](){const _0x3f071a=_0x282cfd;return this[_0x3f071a(0x42f)];}get[_0x282cfd(0x4d2)](){const _0x4ef08d=_0x282cfd;return this[_0x4ef08d(0x5a6)]('db',null,_0x4ef08d(0x4d2),[],![]);}get[_0x282cfd(0x42f)](){const _0x23b6ce=_0x282cfd;return{...this['_call']('db',null,_0x23b6ce(0x42f),[],![])};}get[_0x282cfd(0x68c)](){const _0x85fab7=_0x282cfd;return require$$29[_0x85fab7(0x68c)];}get[_0x282cfd(0x537)](){const _0x3b0ade=_0x282cfd;return this[_0x3b0ade(0x5a6)]('db',null,_0x3b0ade(0x856),[],![]);}get[_0x282cfd(0x7a4)](){const _0x551e11=_0x282cfd;return this[_0x551e11(0x5a6)]('db',null,'info',[],![]);}[_0x282cfd(0x2cc)](){const _0x26a3c1=_0x282cfd;return this['_call']('db',null,_0x26a3c1(0x492),[],![]);}[_0x282cfd(0x532)](){const _0x373c46=_0x282cfd;return this[_0x373c46(0x5a6)]('db',null,_0x373c46(0x532),[],![]);}async[_0x282cfd(0x1ae)](_0x520323){const _0x63251d=_0x282cfd;this[_0x63251d(0x2d3)](),this['_call']('db',null,_0x63251d(0x1ae),[_0x520323],![]);}['pressure'](){const _0x340889=_0x282cfd,_0x4e304a=Date[_0x340889(0x200)]();if(this[_0x340889(0x5fc)]&&_0x4e304a-this[_0x340889(0x5fc)]['at']<0xfa)return this[_0x340889(0x5fc)]['value'];const _0x445fc3=this[_0x340889(0x5a6)]('db',null,_0x340889(0x6bc),[],![]);return this['_pressure']={'at':_0x4e304a,'value':_0x445fc3},_0x445fc3;}[_0x282cfd(0x2d3)](){const _0x185304=_0x282cfd;if(!this[_0x185304(0x393)])throw new _0x32283f(_0x185304(0x79f),'INVALID_STATE',{'state':this[_0x185304(0x8ac)]});}get[_0x282cfd(0x52b)](){const _0x275817=_0x282cfd;if(this['state']===_0x3b19f2[_0x275817(0x7aa)]||!this[_0x275817(0x393)])return null;if(this[_0x275817(0x5a6)]('db',null,_0x275817(0x560),[],![])==null)return null;if(!this[_0x275817(0x714)]){const _0x4509fc=this;this['_busFacade']={get 'state'(){const _0x5676e3=_0x275817;return _0x4509fc[_0x5676e3(0x5a6)]('db',null,'busState',[],![]);},get 'magic'(){const _0x36266d=_0x275817;return Buffer[_0x36266d(0x52e)](_0x36266d(0x82c)+_0x4509fc['id']);},get 'isRunning'(){const _0x457791=_0x275817;return _0x4509fc['_call']('db',null,_0x457791(0x560),[],![])===_0x457791(0x2e6);},'emit'(_0x2e27ec,_0x468fcd=''){const _0x3bf865=_0x275817;_0x4509fc[_0x3bf865(0x5a6)]('db',null,_0x3bf865(0x8ba),[_0x2e27ec,String(_0x468fcd)],![]);}};}return this[_0x275817(0x714)];}[_0x282cfd(0x50d)](_0x52a5f7,_0x2fd44e){const _0x3b4375=_0x282cfd;this['bus']?.[_0x3b4375(0x53b)]('bus:proc',JSON['stringify']({'kind':_0x3b4375(0x6ac),'scope':_0x52a5f7,'key':_0x2fd44e}));}get[_0x282cfd(0x1c8)](){const _0x519141=_0x282cfd;return this[_0x519141(0x718)]||(this[_0x519141(0x718)]=new(requireLock())['NativeLock'](this,'~system',_0x519141(0x6ad)));}get['_rootDb'](){const _0x156810=_0x282cfd;return this[_0x156810(0x197)]?this[_0x156810(0x197)]['db']:undefined;}get[_0x282cfd(0x19a)](){const _0x47d897=_0x282cfd,_0x4b7973=this[_0x47d897(0x197)]?.[_0x47d897(0x68d)];if(!_0x4b7973)return null;const _0x42e62d=_0x4b7973['list']()[_0x47d897(0x7cb)](_0x81f68f=>_0x81f68f['meta']?.['name']===_0x47d897(0x747));return _0x42e62d?_0x4b7973[_0x47d897(0x30d)](_0x42e62d['id'],_0x42e62d['cursorKey']):null;}get[_0x282cfd(0x197)](){const _0x69946c=_0x282cfd;return this['_isOpen']?this[_0x69946c(0x3fd)][_0x69946c(0x7f0)]('~system'):undefined;}[_0x282cfd(0x6ec)](_0x2a6017){const _0x43310e=_0x282cfd;let _0x4ae811=Map[_0x43310e(0x4ca)][_0x43310e(0x7f0)]['call'](this['_envs'],_0x2a6017);if(!_0x4ae811){_0x4ae811=new _0xf1951(this,_0x2a6017),Map['prototype'][_0x43310e(0x534)][_0x43310e(0x3ce)](this[_0x43310e(0x3fd)],_0x2a6017,_0x4ae811);if(_0x2a6017===_0x43310e(0x803))this[_0x43310e(0x6c0)]=_0x4ae811;}return _0x4ae811;}[_0x282cfd(0x27b)](_0x2b0212=_0x282cfd(0x803)){const _0x1bda25=_0x282cfd,_0x47a630=this[_0x1bda25(0x3fd)]['get'](_0x2b0212);if(_0x47a630)return _0x47a630;if(this['_isOpen']&&this[_0x1bda25(0x5a6)]('db',null,_0x1bda25(0x765),[_0x2b0212],![]))return this[_0x1bda25(0x6ec)](_0x2b0212);throw new _0x32283f('Environment\x20\x22'+_0x2b0212+'\x22\x20not\x20found',_0x1bda25(0x7d8));}get[_0x282cfd(0x803)](){const _0x4eeb5b=_0x282cfd;return this[_0x4eeb5b(0x27b)]('default');}get['_defaultEnv'](){const _0x79c218=_0x282cfd;return this[_0x79c218(0x3fd)][_0x79c218(0x7f0)](_0x79c218(0x803))??this[_0x79c218(0x6c0)];}get['files'](){const _0x477810=_0x282cfd;return this[_0x477810(0x350)][_0x477810(0x277)];}get[_0x282cfd(0x493)](){const _0x8239c5=_0x282cfd;return this[_0x8239c5(0x350)][_0x8239c5(0x493)];}[_0x282cfd(0x540)](_0x355196){const _0x695341=_0x282cfd;if(!this[_0x695341(0x393)])return null;return this[_0x695341(0x5a6)]('db',null,'instanceTimerArmed',[_0x355196],![])?{'ref'(){},'unref'(){}}:null;}get['_readerCheckInterval'](){const _0x5d5ca7=_0x282cfd;return this[_0x5d5ca7(0x540)]('readerCheck');}[_0x282cfd(0x7db)](){const _0x544c95=_0x282cfd;return this[_0x544c95(0x5a6)]('db',null,_0x544c95(0x766),[],!![]);}get[_0x282cfd(0x572)](){const _0x337682=_0x282cfd;return this[_0x337682(0x540)]('license');}get[_0x282cfd(0x652)](){const _0x43ec22=_0x282cfd;return this[_0x43ec22(0x540)](_0x43ec22(0x43c));}get[_0x282cfd(0x54e)](){const _0x40ffff=_0x282cfd;return this[_0x40ffff(0x27b)](_0x40ffff(0x803))[_0x40ffff(0x54e)];}get[_0x282cfd(0x5b1)](){const _0x221dc6=_0x282cfd;throw new _0x32283f(_0x221dc6(0x1ac),_0x221dc6(0x5d0));}get['processor'](){const _0x21150b=_0x282cfd;return this[_0x21150b(0x350)][_0x21150b(0x68d)];}get[_0x282cfd(0x234)](){const _0x4bcddf=_0x282cfd;return this[_0x4bcddf(0x350)]['views'];}async[_0x282cfd(0x194)](_0x42ab75,_0x4b4246={}){const _0x463606=_0x282cfd;this[_0x463606(0x2d3)]();if(_0x4b4246&&typeof _0x4b4246[_0x463606(0x442)]===_0x463606(0x8a6)){const _0x2131f8=_0x4b4246['encryptionKey'];this[_0x463606(0x2c9)](_0x42ab75,await _0x2131f8(_0x42ab75),!![]),this[_0x463606(0x82f)]['envs'][_0x463606(0x534)](_0x42ab75,_0x2131f8),_0x4b4246={..._0x4b4246,'encryptionKey':!![]};}return this[_0x463606(0x5a6)]('db',null,_0x463606(0x194),[_0x42ab75,_0x4b4246]),this[_0x463606(0x6ec)](_0x42ab75);}async[_0x282cfd(0x2c4)](_0x3b9c5e){const _0x54c2ed=_0x282cfd;if(!this[_0x54c2ed(0x393)])throw new _0x32283f('Cannot\x20openEnv(\x22'+_0x3b9c5e+_0x54c2ed(0x296),_0x54c2ed(0x237));return this[_0x54c2ed(0x5a6)]('db',null,_0x54c2ed(0x2c4),[_0x3b9c5e]),this[_0x54c2ed(0x6ec)](_0x3b9c5e);}get[_0x282cfd(0x7e5)](){const _0x2e7fa4=_0x282cfd;if(!this[_0x2e7fa4(0x55b)]&&this[_0x2e7fa4(0x393)]){const _0x254d09=requireOkdbRelay(),_0x3483ba=new _0x254d09(this,this[_0x2e7fa4(0x51a)]?.[_0x2e7fa4(0x3df)]?.[_0x2e7fa4(0x430)]??{});_0x3483ba[_0x2e7fa4(0x62f)](),_0x3483ba[_0x2e7fa4(0x38f)]=!![],this[_0x2e7fa4(0x55b)]=_0x3483ba;}return this['__adminRelay']??null;}set[_0x282cfd(0x7e5)](_0x4e6305){const _0x5113f5=_0x282cfd;this[_0x5113f5(0x55b)]=_0x4e6305;}get['_quantumGate'](){const _0x2d1d37=_0x282cfd;let _0x40ed5e=0x0;if(this['_isOpen'])for(const [_0x17e58b]of Map['prototype']['entries'][_0x2d1d37(0x3ce)](this[_0x2d1d37(0x3fd)])){try{_0x40ed5e+=this[_0x2d1d37(0x5a6)]('proc',_0x17e58b,'gateQuanta',[],![])||0x0;}catch{}}return{'total':_0x40ed5e,'maxObserved':_0x40ed5e>0x0?0x1:0x0,'inFlight':0x0};}async[_0x282cfd(0x5ce)](_0x50276e){const _0x3b2b86=_0x282cfd,_0x40a152=this[_0x3b2b86(0x3fd)][_0x3b2b86(0x7f0)](_0x50276e);if(_0x40a152)return _0x40a152;if(!this['_call']('db',null,'hasEnv',[_0x50276e],![]))throw new Error(_0x3b2b86(0x39d)+_0x50276e+_0x3b2b86(0x252));return this[_0x3b2b86(0x2c4)](_0x50276e);}async[_0x282cfd(0x862)](_0x45ffd6){const _0x49b64e=_0x282cfd,_0x4ea93b=this[_0x49b64e(0x5a6)]('db',null,_0x49b64e(0x217),[_0x45ffd6]);return this['_envs']['delete'](_0x45ffd6),_0x4ea93b;}async['removeEnvironment'](_0x157a1f,_0x12e07e={}){const _0x5178d9=_0x282cfd;this['_assertOpen']();const _0x407929=this[_0x5178d9(0x5a6)]('db',null,_0x5178d9(0x531),[_0x157a1f,_0x12e07e]);return this[_0x5178d9(0x3fd)][_0x5178d9(0x36f)](_0x157a1f),_0x407929;}static get[_0x282cfd(0x4bd)](){const _0x1816a0=_0x282cfd;return _0x35c9c0[_0x1816a0(0x4bd)];}static get[_0x282cfd(0x416)](){const _0x47f050=_0x282cfd;return _0x35c9c0[_0x47f050(0x416)];}static get[_0x282cfd(0x1eb)](){const _0x297c48=_0x282cfd;return _0x35c9c0[_0x297c48(0x1eb)];}static async['clone'](_0x55a678,_0x10d271){const _0x59ba43=_0x282cfd;return _0x47c4c0('db',_0x59ba43(0x2c1),[_0x55a678,_0x10d271]);}static[_0x282cfd(0x2fb)](_0xd1907a){const _0x7757df=_0x282cfd;return _0x47c4c0('db',_0x7757df(0x2fb),[_0xd1907a]);}static['registerBucketProjection'](_0xf792cd,_0x54aa0d){const _0xe8a3a3=_0x282cfd;_0x47c4c0(_0xe8a3a3(0x234),'registerBucketProjection',[_0xf792cd,_0x54aa0d]);}static['registerViewReducer'](_0x2ef0fc,_0x2f1b4f){const _0x4ba72a=_0x282cfd;_0x47c4c0(_0x4ba72a(0x234),_0x4ba72a(0x1bb),[_0x2ef0fc,_0x2f1b4f]);}static[_0x282cfd(0x5d3)](){}[_0x282cfd(0x4c9)](_0x2365d5,_0x751374){const _0x52e8b2=_0x282cfd;return require$$16[_0x52e8b2(0x63f)](_0x2365d5,_0x751374);}}_0x12e45f[_0x282cfd(0x4fe)]=_0x3c0225,Object[_0x282cfd(0x4d6)](_0x12e45f,'_unknownOptionsWarned',{'get'(){const _0x42b176=_0x282cfd;return _0x12e45f['__warned']||(_0x12e45f[_0x42b176(0x68b)]=new Set());},'set'(_0x13139d){const _0xfd3265=_0x282cfd;_0x12e45f['__warned']=_0x13139d;try{_0x47c4c0('db',_0xfd3265(0x321),[]);}catch{}},'configurable':!![]});for(const _0x18998a of[_0x282cfd(0x7ba),'txn',_0x282cfd(0x1a5),_0x282cfd(0x2b8),'patch',_0x282cfd(0x3db),_0x282cfd(0x5ca),'get',_0x282cfd(0x6c9),'getEntry',_0x282cfd(0x697),'getValues','getKeys',_0x282cfd(0x3f2),_0x282cfd(0x1dd),_0x282cfd(0x792),_0x282cfd(0x846),'countByIndex',_0x282cfd(0x5ee),'geoQuery',_0x282cfd(0x45f),_0x282cfd(0x298),_0x282cfd(0x57f),_0x282cfd(0x2cd),_0x282cfd(0x354),_0x282cfd(0x705),_0x282cfd(0x26d),'registerIndex',_0x282cfd(0x3f8),_0x282cfd(0x57e),_0x282cfd(0x379),_0x282cfd(0x3f3),'getIndexStatus','getUniqueViolations',_0x282cfd(0x65c),_0x282cfd(0x39b),'getClock',_0x282cfd(0x876),_0x282cfd(0x41c),_0x282cfd(0x88e),'clearTTL',_0x282cfd(0x4e8),_0x282cfd(0x72b),_0x282cfd(0x731),_0x282cfd(0x21a),_0x282cfd(0x59a),_0x282cfd(0x566),_0x282cfd(0x5f8),_0x282cfd(0x7c6),_0x282cfd(0x200)]){_0x12e45f['prototype'][_0x18998a]=function(..._0x208c99){const _0x1d5418=_0x282cfd,_0x5be441=this[_0x1d5418(0x27b)](_0x1d5418(0x803));return _0x5be441[_0x18998a](..._0x208c99);};}function _0x496788(_0x521aab){const _0x91be2f=_0x282cfd,_0x48faaf=_0x1f3b0a=>()=>{const _0x1dcda9=_0x20a5;throw new Error(_0x1dcda9(0x7e9)+_0x1f3b0a+'\x20was\x20removed\x20in\x20okdb\x202.0.\x20Use\x20processors:true\x20for\x20plain\x20lease\x20participation.\x20See\x20docs/upgrade-2.0.md.');};return{'process':_0x48faaf('process(filter)'),'processRest':_0x48faaf(_0x91be2f(0x517)),'processEverything':_0x48faaf('processEverything()'),async 'start'(){const _0x39f2dc=_0x91be2f;return _0x521aab[_0x39f2dc(0x5a6)]('db',null,'processorsStart',[]);},async 'stop'(){const _0x46b4b5=_0x91be2f;return _0x521aab[_0x46b4b5(0x5a6)]('db',null,_0x46b4b5(0x6a2),[]);},'status'(){const _0x60f9bf=_0x91be2f;return _0x521aab[_0x60f9bf(0x5a6)]('db',null,_0x60f9bf(0x240),[],![]);},get 'participating'(){const _0x179b70=_0x91be2f;return _0x521aab[_0x179b70(0x5a6)]('db',null,_0x179b70(0x4ad),[],![]);},get '_participate'(){const _0x4378e6=_0x91be2f;return _0x521aab[_0x4378e6(0x5a6)]('db',null,_0x4378e6(0x4ad),[],![]);}};}function _0x47c4c0(_0xe7546,_0x5a391a,_0x484b98){const _0x15c59c=_0x282cfd;_0x50d2d1();try{return _0x113764()[_0x15c59c(0x264)](_0xe7546,_0x5a391a,_0x484b98);}catch(_0x467733){throw _0x257816(_0x467733);}}_0x38b50b[_0x282cfd(0x216)]=_0x12e45f,_0x38b50b['exports'][_0x282cfd(0x604)]=_0x47c4c0,_0x38b50b[_0x282cfd(0x216)][_0x282cfd(0x56b)]=_0x12e45f,_0x38b50b[_0x282cfd(0x216)][_0x282cfd(0x4fe)]=_0x3c0225,_0x38b50b[_0x282cfd(0x216)][_0x282cfd(0x803)]=_0x12e45f,Object['defineProperty'](_0x38b50b[_0x282cfd(0x216)],_0x282cfd(0x563),{'get':()=>require$$1$1[_0x282cfd(0x798)]?.()??null,'enumerable':![],'configurable':!![]});}(lib),lib['exports'];}var libExports=requireLib(),index=getDefaultExportFromCjs(libExports);module[_0x7f204b(0x216)]=index;
1
+ 'use strict';const _0x5c70f8=_0x52a3;(function(_0x36c49c,_0x2e5b23){const _0x45e419=_0x52a3,_0x1411b9=_0x36c49c();while(!![]){try{const _0x3b3669=-parseInt(_0x45e419(0x2ae))/0x1*(parseInt(_0x45e419(0x44c))/0x2)+-parseInt(_0x45e419(0x5ef))/0x3*(parseInt(_0x45e419(0x798))/0x4)+-parseInt(_0x45e419(0x1f0))/0x5*(-parseInt(_0x45e419(0x570))/0x6)+-parseInt(_0x45e419(0x68b))/0x7+parseInt(_0x45e419(0x491))/0x8+parseInt(_0x45e419(0x6d4))/0x9+parseInt(_0x45e419(0x42b))/0xa*(-parseInt(_0x45e419(0x25d))/0xb);if(_0x3b3669===_0x2e5b23)break;else _0x1411b9['push'](_0x1411b9['shift']());}catch(_0xcc36cd){_0x1411b9['push'](_0x1411b9['shift']());}}}(_0x273d,0x86640));function _0x52a3(_0x47e30d,_0x2cec29){_0x47e30d=_0x47e30d-0x1bb;const _0x273d01=_0x273d();let _0x52a32e=_0x273d01[_0x47e30d];return _0x52a32e;}var require$$0$6=require('node:events'),require$$1$1=require(_0x5c70f8(0x89c)),require$$0=require('node:fs'),require$$1=require(_0x5c70f8(0x6b3)),require$$4=require(_0x5c70f8(0x3de)),require$$0$2=require(_0x5c70f8(0x4c5)),require$$0$1=require(_0x5c70f8(0x1d1)),require$$16=require(_0x5c70f8(0x3f6)),require$$0$3=require(_0x5c70f8(0x1d4)),require$$2=require(_0x5c70f8(0x45e)),require$$18=require(_0x5c70f8(0x40a)),require$$0$4=require('crypto'),require$$0$5=require('sift');function getDefaultExportFromCjs(_0x37fccc){const _0x12ae10=_0x5c70f8;return _0x37fccc&&_0x37fccc[_0x12ae10(0x303)]&&Object[_0x12ae10(0x511)]['hasOwnProperty'][_0x12ae10(0x4d1)](_0x37fccc,'default')?_0x37fccc[_0x12ae10(0x2a6)]:_0x37fccc;}var lib={'exports':{}},okdbError,hasRequiredOkdbError;function requireOkdbError(){if(hasRequiredOkdbError)return okdbError;hasRequiredOkdbError=0x1;class _0x5c93c8 extends Error{constructor(_0x149765,_0x176fae,_0x480aca={}){const _0x5d5f5d=_0x52a3;super(_0x149765),this['name']=_0x5d5f5d(0x850),this[_0x5d5f5d(0x50e)]=_0x176fae,this[_0x5d5f5d(0x37e)]=_0x480aca,_0x480aca[_0x5d5f5d(0x62d)]&&(this[_0x5d5f5d(0x62d)]=_0x480aca[_0x5d5f5d(0x62d)]),Error[_0x5d5f5d(0x650)](this,this['constructor']);}}class _0x38c04c extends _0x5c93c8{constructor(_0x2a02b9,_0x563842,_0x4aef6c,_0x142cdc){const _0x4b500a=_0x52a3;super(_0x4b500a(0x446)+_0x2a02b9+'@'+_0x563842+_0x4b500a(0x3cb)+_0x4aef6c+_0x4b500a(0x4db)+_0x142cdc,_0x4b500a(0x721),{'type':_0x2a02b9,'key':_0x563842,'expectedVersion':_0x4aef6c,'actualVersion':_0x142cdc}),this[_0x4b500a(0x54b)]=_0x4b500a(0x7a1);}}class _0x28e960 extends _0x5c93c8{constructor(_0x2ef9ac,_0x27127d){const _0x5c52b8=_0x52a3;super(_0x2ef9ac+'@'+_0x27127d+_0x5c52b8(0x5d8),_0x5c52b8(0x3a2),{'type':_0x2ef9ac,'key':_0x27127d}),this[_0x5c52b8(0x54b)]=_0x5c52b8(0x83a);}}class _0x5b0242 extends _0x5c93c8{constructor(_0x4006d4,_0x582756){const _0x22e38e=_0x52a3;super(_0x4006d4+'@'+_0x582756+'\x20already\x20exists',_0x22e38e(0x218),{'type':_0x4006d4,'key':_0x582756}),this[_0x22e38e(0x54b)]=_0x22e38e(0x6ad);}}class _0x71effd extends _0x5c93c8{constructor(_0x2755b3,_0x3d69fe){const _0x1ffa2e=_0x52a3,_0x10ed10=typeof _0x3d69fe;super('Invalid\x20index\x20key\x20type\x20for\x20\x27'+_0x2755b3+_0x1ffa2e(0x84f)+_0x10ed10+_0x1ffa2e(0x31d)+_0x3d69fe,_0x1ffa2e(0x8b2),{'index':_0x2755b3,'key':_0x3d69fe,'keyType':_0x10ed10}),this[_0x1ffa2e(0x54b)]=_0x1ffa2e(0x2bd);}}class _0x17594f extends _0x5c93c8{constructor(_0x1db799){const _0x1e1504=_0x52a3,_0x35cb69=typeof _0x1db799;super(_0x1e1504(0x840)+_0x35cb69+_0x1e1504(0x507)+_0x1db799,'INVALID_PRIMARY_KEY',{'key':_0x1db799,'keyType':_0x35cb69}),this[_0x1e1504(0x54b)]=_0x1e1504(0x2be);}}class _0x153b81 extends _0x5c93c8{constructor(_0x5dd07f){const _0x16c8dc=_0x52a3;super('Type\x20\x27'+_0x5dd07f+_0x16c8dc(0x4a9),_0x16c8dc(0x1ca),{'type':_0x5dd07f}),this[_0x16c8dc(0x54b)]=_0x16c8dc(0x52b);}}class _0x4f0893 extends _0x5c93c8{constructor(_0x22eb07){const _0x1229e0=_0x52a3;super(_0x1229e0(0x7a0)+_0x22eb07+_0x1229e0(0x276),_0x1229e0(0x4a8),{'type':_0x22eb07}),this['name']='OKDBTypeAlreadyRegisteredError';}}class _0x3bba50 extends _0x5c93c8{constructor(_0x50138b,_0x161db0){const _0x42e070=_0x52a3;super(_0x42e070(0x7ce)+_0x161db0+'\x27\x20on\x20type\x20\x27'+_0x50138b+_0x42e070(0x4a9),_0x42e070(0x615),{'type':_0x50138b,'index':_0x161db0}),this[_0x42e070(0x54b)]=_0x42e070(0x4e5);}}class _0x32efd7 extends _0x5c93c8{constructor(_0x4407c9,_0x4dcab8){const _0x4e9ce2=_0x52a3;super(_0x4e9ce2(0x7ce)+_0x4dcab8+_0x4e9ce2(0x88f)+_0x4407c9+_0x4e9ce2(0x628),_0x4e9ce2(0x83e),{'type':_0x4407c9,'index':_0x4dcab8}),this[_0x4e9ce2(0x54b)]=_0x4e9ce2(0x268);}}class _0x56635a extends _0x5c93c8{constructor(_0x4a020d,_0x10b659={}){const _0x57d972=_0x52a3;super(_0x4a020d,'INVALID_VALUE',_0x10b659),this[_0x57d972(0x54b)]='OKDBInvalidValueError';}}class _0xdefeb0 extends _0x5c93c8{constructor(_0x37a7c7,_0x420eaa,_0x3f72cb,_0x3e2669,_0x23045a){const _0x3a1132=_0x52a3;super(_0x3a1132(0x70f)+_0x37a7c7+'@'+_0x420eaa+':\x20key\x20['+_0x3f72cb+']\x20already\x20maps\x20to\x20\x27'+_0x3e2669+_0x3a1132(0x448)+_0x23045a+'\x27',_0x3a1132(0x587),{'type':_0x37a7c7,'index':_0x420eaa,'indexKey':_0x3f72cb,'existingKey':_0x3e2669,'conflictingKey':_0x23045a}),this[_0x3a1132(0x54b)]=_0x3a1132(0x485);}}class _0x1ceb27 extends _0x5c93c8{constructor(_0x342be7,_0x3ee298,_0x43c926){const _0x3b9cad=_0x52a3;super(_0x3b9cad(0x1df)+_0x342be7+'@'+_0x3ee298,'SCHEMA_VALIDATION_FAILED',{'type':_0x342be7,'key':_0x3ee298,'errors':_0x43c926}),this[_0x3b9cad(0x54b)]=_0x3b9cad(0x231),this[_0x3b9cad(0x45d)]=_0x342be7,this[_0x3b9cad(0x82f)]=_0x3ee298,this[_0x3b9cad(0x22d)]=_0x43c926;}}class _0x506ba5 extends _0x5c93c8{constructor(_0x175f63,_0x10357c){const _0x1216e1=_0x52a3;super(_0x1216e1(0x8b5)+_0x175f63+':\x20'+_0x10357c[_0x1216e1(0x68a)]+_0x1216e1(0x86b),_0x1216e1(0x405),{'type':_0x175f63,'failures':_0x10357c}),this[_0x1216e1(0x54b)]=_0x1216e1(0x568),this['type']=_0x175f63,this[_0x1216e1(0x756)]=_0x10357c;}}class _0x1ecf73 extends _0x5c93c8{constructor(_0x198103,_0x2fd860,_0x431a98,_0x48ec8a,_0x45b045){const _0x22aa80=_0x52a3;super(_0x22aa80(0x8cf)+_0x198103+'@'+_0x2fd860+'.'+_0x431a98+'\x20references\x20'+_0x48ec8a+'@'+_0x45b045+'\x20which\x20does\x20not\x20exist',_0x22aa80(0x871),{'sourceType':_0x198103,'sourceKey':_0x2fd860,'fieldPath':_0x431a98,'targetType':_0x48ec8a,'targetKey':_0x45b045}),this[_0x22aa80(0x54b)]=_0x22aa80(0x80c),this[_0x22aa80(0x816)]=_0x198103,this[_0x22aa80(0x713)]=_0x2fd860,this[_0x22aa80(0x5e7)]=_0x431a98,this['targetType']=_0x48ec8a,this[_0x22aa80(0x5f7)]=_0x45b045;}}class _0x45db47 extends _0x5c93c8{constructor(_0x325afd,_0x565029,_0x280f91){const _0x1c1faf=_0x52a3;super(_0x1c1faf(0x7ea)+_0x325afd+'@'+_0x565029+':\x20'+_0x280f91[_0x1c1faf(0x68a)]+'\x20document(s)\x20reference\x20it\x20with\x20onDelete:restrict',_0x1c1faf(0x79c),{'targetType':_0x325afd,'targetKey':_0x565029,'references':_0x280f91}),this[_0x1c1faf(0x54b)]=_0x1c1faf(0x639),this[_0x1c1faf(0x469)]=_0x325afd,this[_0x1c1faf(0x5f7)]=_0x565029,this['references']=_0x280f91;}}class _0x7a830d extends _0x5c93c8{constructor(_0x40032d,_0x5669f4,_0x3410c6){const _0x37818f=_0x52a3;super(_0x37818f(0x51c)+_0x5669f4+_0x37818f(0x471)+_0x40032d+_0x37818f(0x4e4)+_0x3410c6['map'](_0x430426=>_0x430426[_0x37818f(0x2a7)]+':'+_0x430426[_0x37818f(0x54b)])[_0x37818f(0x596)](',\x20'),_0x37818f(0x44a),{'type':_0x40032d,'index':_0x5669f4,'usedBy':_0x3410c6}),this[_0x37818f(0x54b)]=_0x37818f(0x5cd);}}return okdbError={'OKDBError':_0x5c93c8,'OKDBVersionMismatchError':_0x38c04c,'OKDBNotFoundError':_0x28e960,'OKDBAlreadyExistsError':_0x5b0242,'OKDBInvalidIndexKeyError':_0x71effd,'OKDBInvalidPrimaryKeyError':_0x17594f,'OKDBTypeNotRegisteredError':_0x153b81,'OKDBTypeAlreadyRegisteredError':_0x4f0893,'OKDBIndexNotRegisteredError':_0x3bba50,'OKDBIndexAlreadyRegisteredError':_0x32efd7,'OKDBInvalidValueError':_0x56635a,'OKDBUniqueConstraintError':_0xdefeb0,'OKDBSchemaValidationError':_0x1ceb27,'OKDBSchemaCollectionError':_0x506ba5,'OKDBForeignKeyError':_0x1ecf73,'OKDBForeignKeyDeleteError':_0x45db47,'OKDBIndexHasConsumersError':_0x7a830d},okdbError;}var errors,hasRequiredErrors;function requireErrors(){const _0x4d2b29=_0x5c70f8;if(hasRequiredErrors)return errors;hasRequiredErrors=0x1;const _0x35aab8=requireOkdbError(),_0x43b802={'VERSION_MISMATCH':_0x35aab8[_0x4d2b29(0x7a1)],'NOT_FOUND':_0x35aab8[_0x4d2b29(0x83a)],'ALREADY_EXISTS':_0x35aab8[_0x4d2b29(0x6ad)],'INVALID_INDEX_KEY':_0x35aab8[_0x4d2b29(0x2bd)],'INVALID_PRIMARY_KEY':_0x35aab8[_0x4d2b29(0x2be)],'TYPE_NOT_REGISTERED':_0x35aab8['OKDBTypeNotRegisteredError'],'TYPE_ALREADY_REGISTERED':_0x35aab8[_0x4d2b29(0x460)],'INDEX_NOT_REGISTERED':_0x35aab8[_0x4d2b29(0x4e5)],'INDEX_ALREADY_REGISTERED':_0x35aab8[_0x4d2b29(0x268)],'INVALID_VALUE':_0x35aab8[_0x4d2b29(0x70c)],'UNIQUE_CONSTRAINT':_0x35aab8[_0x4d2b29(0x485)],'SCHEMA_VALIDATION_FAILED':_0x35aab8[_0x4d2b29(0x231)],'SCHEMA_COLLECTION_INVALID':_0x35aab8[_0x4d2b29(0x568)],'FOREIGN_KEY_VIOLATION':_0x35aab8[_0x4d2b29(0x80c)],'FOREIGN_KEY_DELETE_RESTRICTED':_0x35aab8['OKDBForeignKeyDeleteError'],'INDEX_HAS_CONSUMERS':_0x35aab8[_0x4d2b29(0x5cd)]};class _0x55ad90 extends _0x35aab8[_0x4d2b29(0x850)]{constructor(_0x429c6d,_0x5eeebb){const _0x396fb7=_0x4d2b29;super(_0x429c6d+_0x396fb7(0x2e7)+(_0x5eeebb?'\x20('+_0x5eeebb+')':''),'NOT_IMPLEMENTED_NATIVE',{'feature':_0x429c6d}),this[_0x396fb7(0x54b)]=_0x396fb7(0x339);}}function _0x6e268b(_0x7ccff6){const _0x1f663f=_0x4d2b29;if(!_0x7ccff6||typeof _0x7ccff6!==_0x1f663f(0x559)||!_0x7ccff6[_0x1f663f(0x263)])return _0x7ccff6;delete _0x7ccff6[_0x1f663f(0x263)];const _0x9e4bf9=_0x7ccff6[_0x1f663f(0x50e)];if(_0x9e4bf9===_0x1f663f(0x71d)||_0x9e4bf9===_0x1f663f(0x375)||_0x9e4bf9===_0x1f663f(0x2af)){const _0x1260ae=_0x9e4bf9===_0x1f663f(0x375)?TypeError[_0x1f663f(0x511)]:_0x9e4bf9===_0x1f663f(0x2af)?RangeError[_0x1f663f(0x511)]:Error['prototype'];Object[_0x1f663f(0x28b)](_0x7ccff6,_0x1260ae),_0x7ccff6[_0x1f663f(0x54b)]=_0x9e4bf9;if(_0x7ccff6[_0x1f663f(0x37e)]&&_0x7ccff6[_0x1f663f(0x37e)]['status']!==undefined)_0x7ccff6[_0x1f663f(0x717)]=_0x7ccff6[_0x1f663f(0x37e)][_0x1f663f(0x717)];return delete _0x7ccff6['code'],delete _0x7ccff6[_0x1f663f(0x37e)],_0x7ccff6;}const _0x323a8f=_0x43b802[_0x9e4bf9];Object[_0x1f663f(0x28b)](_0x7ccff6,(_0x323a8f||_0x35aab8['OKDBError'])['prototype']),_0x7ccff6['name']=_0x323a8f?_0x323a8f[_0x1f663f(0x54b)][_0x1f663f(0x306)](/^OKDB/,_0x1f663f(0x60e)):_0x1f663f(0x850);const _0x4528a3=_0x7ccff6['details']||{};_0x9e4bf9===_0x1f663f(0x8e1)&&(_0x7ccff6[_0x1f663f(0x45d)]=_0x4528a3[_0x1f663f(0x45d)],_0x7ccff6[_0x1f663f(0x82f)]=_0x4528a3[_0x1f663f(0x82f)],_0x7ccff6[_0x1f663f(0x22d)]=_0x4528a3[_0x1f663f(0x22d)]);_0x9e4bf9===_0x1f663f(0x405)&&(_0x7ccff6[_0x1f663f(0x45d)]=_0x4528a3['type'],_0x7ccff6[_0x1f663f(0x756)]=_0x4528a3[_0x1f663f(0x756)]);if(_0x9e4bf9===_0x1f663f(0x871)){for(const _0x11f683 of[_0x1f663f(0x816),_0x1f663f(0x713),_0x1f663f(0x5e7),_0x1f663f(0x469),_0x1f663f(0x5f7)])_0x7ccff6[_0x11f683]=_0x4528a3[_0x11f683];}if(_0x9e4bf9==='FOREIGN_KEY_DELETE_RESTRICTED'){for(const _0x2ea9a8 of[_0x1f663f(0x469),_0x1f663f(0x5f7),_0x1f663f(0x779)])_0x7ccff6[_0x2ea9a8]=_0x4528a3[_0x2ea9a8];}if(_0x4528a3[_0x1f663f(0x62d)])_0x7ccff6[_0x1f663f(0x62d)]=_0x4528a3[_0x1f663f(0x62d)];if(_0x4528a3['status']!==undefined)_0x7ccff6['status']=_0x4528a3[_0x1f663f(0x717)];if(_0x4528a3[_0x1f663f(0x8b8)]!==undefined)_0x7ccff6[_0x1f663f(0x8b8)]=_0x4528a3[_0x1f663f(0x8b8)];return _0x7ccff6;}function _0x396159(_0x58a964){const _0x14d484=_0x4d2b29;if(_0x58a964===undefined)return'undefined';if(_0x58a964===null)return _0x14d484(0x83b);if(typeof _0x58a964==='string')return _0x58a964?'string':_0x14d484(0x625);if(typeof _0x58a964==='function')return _0x14d484(0x640);if(typeof _0x58a964!==_0x14d484(0x559))return typeof _0x58a964;if(Array[_0x14d484(0x439)](_0x58a964))return _0x58a964[_0x14d484(0x68a)]?'array':'empty\x20array';if(_0x58a964 instanceof Date)return _0x14d484(0x8b1);if(_0x58a964 instanceof Map)return _0x14d484(0x26f);if(Buffer[_0x14d484(0x823)](_0x58a964))return _0x14d484(0x29c);return _0x14d484(0x559);}const _0x2aa532=(_0x39581d,_0x2d7a3a,_0x164ef6)=>new _0x35aab8[(_0x4d2b29(0x850))](_0x2d7a3a,_0x39581d,_0x164ef6),_0x33857e=(_0x22a18e,_0x2caa46,_0x593327)=>_0x2aa532(_0x4d2b29(0x2d6),_0x22a18e+_0x4d2b29(0x4d4)+_0x2caa46+_0x4d2b29(0x5e9)+_0x396159(_0x593327),{'argument':_0x22a18e,'expected':_0x2caa46,'got':_0x396159(_0x593327)}),_0x235ae4=(_0x3fbfd2,_0x134a0b)=>_0x2aa532(_0x4d2b29(0x854),_0x3fbfd2+'\x20must\x20be\x20a\x20non-empty\x20string;\x20got\x20'+_0x396159(_0x134a0b),{'argument':_0x3fbfd2,'expected':_0x4d2b29(0x44f),'got':_0x396159(_0x134a0b)}),_0x50e83e=(_0x83c59b,_0x19b9d9)=>_0x2aa532(_0x4d2b29(0x518),_0x83c59b+':\x20'+_0x19b9d9,{'argument':_0x83c59b,'problem':_0x19b9d9});function _0x50d9ad(_0x1ca0ce,_0x395636=_0x4d2b29(0x688)){const _0x4968ab=_0x4d2b29;if(_0x1ca0ce===undefined)return{};if(_0x1ca0ce===null)throw _0x50e83e(_0x395636,_0x4968ab(0x4d9));return _0x1ca0ce;}return errors={'reclass':_0x6e268b,'NotImplementedNative':_0x55ad90,'BY_CODE':_0x43b802,'describe':_0x396159,'invalidArgument':_0x33857e,'invalidTypeName':_0x235ae4,'invalidOptions':_0x50e83e,'optionsArg':_0x50d9ad,..._0x35aab8},errors;}var bridge_1,hasRequiredBridge;function requireBridge(){if(hasRequiredBridge)return bridge_1;hasRequiredBridge=0x1;const _0x20df6c=new Map(),_0x10cd79=new Map();let _0x4b814a=0x1;const _0x310966=new Map(),_0x17221a=new Map();let _0x39dd51=0x1;const _0xbffe1a=new Map();let _0x2ac138=0x1;const _0x4c3988=new Map();function _0x2dd26b(_0xea0ac6,_0x4b701f=null){const _0x5d5f38=_0x52a3,_0x57bb51=_0x2ac138++;_0xbffe1a[_0x5d5f38(0x63f)](_0x57bb51,_0xea0ac6);if(_0x4b701f)_0x4c3988[_0x5d5f38(0x63f)](_0x57bb51,_0x4b701f);return _0x57bb51;}function _0x2a450d(_0x14075e,_0x286491){const _0x47ac00=_0x52a3,_0x360457=_0xbffe1a[_0x47ac00(0x309)](_0x14075e),_0x18e24d=Array[_0x47ac00(0x511)][_0x47ac00(0x1f7)][_0x47ac00(0x4d1)](arguments,0x2),_0x57fd82=_0x932ea7=>_0x34e15a(_0x932ea7,_0x4c3988[_0x47ac00(0x309)](_0x14075e));let _0x246dfd=_0x18e24d;if(_0x286491==='start'||_0x286491==='stop'||_0x286491===_0x47ac00(0x752)||_0x286491===_0x47ac00(0x791)||_0x286491===_0x47ac00(0x859))_0x246dfd=[_0x57fd82(_0x18e24d[0x0])];else{if(_0x286491===_0x47ac00(0x5f4))_0x246dfd=[_0x18e24d[0x0],_0x18e24d[0x1],_0x57fd82(_0x18e24d[0x2])];else{if(_0x286491===_0x47ac00(0x203))_0x246dfd=[_0x57fd82(_0x18e24d[0x0])];}}let _0x1e8e0c=_0x360457[_0x286491](..._0x246dfd);if(_0x1e8e0c&&typeof _0x1e8e0c[_0x47ac00(0x801)]==='function')_0x1e8e0c=_0x10f279(_0x1e8e0c);if(_0x286491===_0x47ac00(0x45c)){const _0xe9e69f=_0x1e8e0c&&typeof _0x1e8e0c==='object'?_0x2dd26b(_0x1e8e0c):_0x2dd26b({});return{'$api':_0xe9e69f};}return _0x1e8e0c===undefined?null:_0x1e8e0c;}function _0x34e15a(_0x19bf25,_0x5cd375){const _0x3abdfc=_0x52a3;let _0x482333=_0x3cac00[_0x3abdfc(0x309)](_0x19bf25[_0x3abdfc(0x4df)]);const _0x59d00b=_0x482333&&_0x482333[_0x3abdfc(0x61e)]||_0x5cd375||_0x44f29d,_0x18830b=(_0x2eccb3,..._0x31bdae)=>_0x59d00b[_0x3abdfc(0x210)](_0x3abdfc(0x655),null,_0x2eccb3,[_0x19bf25['type'],_0x19bf25[_0x3abdfc(0x54b)],..._0x31bdae],!![]);return{'okdb':_0x59d00b,'key':_0x19bf25[_0x3abdfc(0x82f)],'type':_0x19bf25[_0x3abdfc(0x45d)],'name':_0x19bf25[_0x3abdfc(0x54b)],get 'storeEnv'(){const _0x282994=_0x3abdfc;if(!_0x482333&&_0x59d00b&&_0x59d00b[_0x282994(0x663)]&&_0x19bf25['storeEnvName'])_0x482333=_0x59d00b[_0x282994(0x612)]['get'](_0x19bf25[_0x282994(0x7b9)]);return _0x482333;},'storeEnvName':_0x19bf25[_0x3abdfc(0x7b9)],'config':_0x19bf25[_0x3abdfc(0x8cd)],'meta':_0x19bf25['meta'],'options':_0x19bf25[_0x3abdfc(0x688)],'emit':(_0x993862,_0x15f022)=>_0x18830b(_0x3abdfc(0x5a0),_0x993862,_0x15f022),'updateStatus':async(_0x55eaea,_0x3773be)=>_0x18830b(_0x3abdfc(0x82b),_0x55eaea,_0x3773be==null?null:String(_0x3773be&&_0x3773be[_0x3abdfc(0x211)]?_0x3773be[_0x3abdfc(0x211)]:_0x3773be)),'updateMeta':async _0x4ef232=>_0x18830b(_0x3abdfc(0x7e5),{'meta':_0x4ef232}),'updateConfig':async _0x1eb1e=>_0x18830b(_0x3abdfc(0x7e5),{'config':_0x1eb1e})};}function _0x51fd91(_0x23afde,_0x3a8242,_0x3196c9){const _0xd9b0c3=_0x52a3;if(_0x23afde===_0xd9b0c3(0x54a)){const _0xb0cf7d=_0x147e3a(_0x3a8242);let _0x29b0fa=_0xb0cf7d(_0x3196c9);if(_0x29b0fa&&typeof _0x29b0fa['then']==='function')_0x29b0fa=_0x10f279(_0x29b0fa);if(!_0x29b0fa||typeof _0x29b0fa[_0xd9b0c3(0x595)]!==_0xd9b0c3(0x640)){const {OKDBError:_0x5dd913}=requireErrors();throw new _0x5dd913(_0xd9b0c3(0x65d)+(_0x3196c9&&_0x3196c9[_0xd9b0c3(0x45d)])+_0xd9b0c3(0x206),'BAD_EMBEDDER_FACTORY');}return _0x29b0fa[_0xd9b0c3(0x263)]=_0xb0cf7d[_0xd9b0c3(0x263)],{'$id':_0x2dd26b(_0x29b0fa),'batch':typeof _0x29b0fa['embedBatch']===_0xd9b0c3(0x640)};}const _0x229298=_0xbffe1a[_0xd9b0c3(0x309)](_0x3a8242);if(_0x23afde===_0xd9b0c3(0x6b6))return _0xbffe1a[_0xd9b0c3(0x2cb)](_0x3a8242),_0x32d62b[_0xd9b0c3(0x2cb)](_0x3a8242),null;if(!_0x229298)throw new Error(_0xd9b0c3(0x435));if(typeof _0x229298[_0x23afde]!==_0xd9b0c3(0x640))return null;if(_0x23afde===_0xd9b0c3(0x595)||_0x23afde===_0xd9b0c3(0x515)){const _0x545f70=_0x23afde===_0xd9b0c3(0x515)?_0x36fd30(_0x3a8242,_0x229298,_0x3196c9):_0x176703(_0x3a8242,_0x229298,_0x23afde,_0x3196c9);return _0x23afde===_0xd9b0c3(0x595)?Array[_0xd9b0c3(0x48d)](_0x545f70):_0x545f70[_0xd9b0c3(0x35e)](_0x1a6a40=>Array[_0xd9b0c3(0x48d)](_0x1a6a40));}let _0x2507d6=_0x229298[_0x23afde]();if(_0x2507d6&&typeof _0x2507d6[_0xd9b0c3(0x801)]===_0xd9b0c3(0x640))_0x2507d6=_0x10f279(_0x2507d6);return _0x2507d6===undefined?null:_0x2507d6;}function _0xb5504(_0x2d89c1,_0x5fb90a,_0xb45eb0){const _0x3f5262=_0x52a3;if(_0x2d89c1===_0x3f5262(0x54a)){const _0x9b2a15=_0x147e3a(_0x5fb90a);let _0x16c9f8=_0x9b2a15(_0xb45eb0[_0x3f5262(0x8cd)]??{},{'dims':_0xb45eb0[_0x3f5262(0x647)],'dir':_0xb45eb0[_0x3f5262(0x8e4)]});if(_0x16c9f8&&typeof _0x16c9f8['then']===_0x3f5262(0x640))_0x16c9f8=_0x10f279(_0x16c9f8);for(const _0x3cab23 of[_0x3f5262(0x3bf),'add',_0x3f5262(0x504),_0x3f5262(0x40c),_0x3f5262(0x400)]){if(!_0x16c9f8||typeof _0x16c9f8[_0x3cab23]!=='function'){const {OKDBError:_0x452c16}=requireErrors();throw new _0x452c16(_0x3f5262(0x2ab)+_0x3cab23+'()','BAD_ALGORITHM_FACTORY',{'method':_0x3cab23});}}return{'$id':_0x2dd26b(_0x16c9f8)};}const _0x4f4501=_0xbffe1a[_0x3f5262(0x309)](_0x5fb90a);if(_0x2d89c1===_0x3f5262(0x6b6))return _0xbffe1a[_0x3f5262(0x2cb)](_0x5fb90a),null;if(!_0x4f4501)throw new Error('algorithm\x20is\x20gone');const _0x49441f=_0x49186d=>_0x49186d?_0x49186d[_0x3f5262(0x35e)](_0x48c70c=>({'key':_0x48c70c[_0x3f5262(0x82f)],'vector':Float32Array['from'](_0x48c70c['vector'])})):null;let _0x487cae;switch(_0x2d89c1){case _0x3f5262(0x3bf):case'rebuild':{const _0x1244ee=_0x49441f(_0xb45eb0);_0x487cae=_0x4f4501[_0x2d89c1](_0x1244ee?async()=>_0x1244ee:undefined);break;}case'add':_0x487cae=_0x4f4501[_0x3f5262(0x280)](_0xb45eb0[0x0],Float32Array['from'](_0xb45eb0[0x1]),_0xb45eb0[0x2]??undefined);break;case _0x3f5262(0x504):_0x487cae=_0x4f4501['remove'](_0xb45eb0);break;case _0x3f5262(0x40c):_0x487cae=_0x4f4501[_0x3f5262(0x40c)](Float32Array[_0x3f5262(0x48d)](_0xb45eb0[_0x3f5262(0x69f)]),_0xb45eb0[_0x3f5262(0x5ea)]??{});break;case _0x3f5262(0x41c):_0x487cae=typeof _0x4f4501['snapshot']===_0x3f5262(0x640)?_0x4f4501[_0x3f5262(0x41c)](_0xb45eb0??undefined):![];break;case _0x3f5262(0x1f1):_0x487cae=typeof _0x4f4501[_0x3f5262(0x1f1)]===_0x3f5262(0x640)?_0x4f4501[_0x3f5262(0x1f1)]():undefined;break;case _0x3f5262(0x8a1):_0x487cae=typeof _0x4f4501['tick']===_0x3f5262(0x640)?_0x4f4501[_0x3f5262(0x8a1)]():undefined;break;case _0x3f5262(0x400):return Number(_0x4f4501[_0x3f5262(0x400)]());case'info':return(typeof _0x4f4501[_0x3f5262(0x7e2)]===_0x3f5262(0x640)?_0x4f4501[_0x3f5262(0x7e2)]():null)??{};default:throw new Error(_0x3f5262(0x65a)+_0x2d89c1);}if(_0x487cae&&typeof _0x487cae[_0x3f5262(0x801)]===_0x3f5262(0x640))_0x487cae=_0x10f279(_0x487cae);return _0x487cae===undefined?null:_0x487cae;}function _0x59c69b(_0x5e6c43,_0x14e058,_0x5eaf59){const _0x2658f7=_0x52a3;if(_0x5e6c43===_0x2658f7(0x54a)){const _0xf76a60=_0x147e3a(_0x14e058);let _0x207964=_0xf76a60(_0x5eaf59);if(_0x207964&&typeof _0x207964[_0x2658f7(0x801)]==='function')_0x207964=_0x10f279(_0x207964);if(!_0x207964)return null;const _0x2ed0e0=['write','keys',_0x2658f7(0x309),_0x2658f7(0x400),'dropAll',_0x2658f7(0x308)]['filter'](_0x49491f=>typeof _0x207964[_0x49491f]==='function');return{'$id':_0x2dd26b(_0x207964),'has':_0x2ed0e0};}const _0x545a5d=_0xbffe1a['get'](_0x14e058);if(_0x5e6c43===_0x2658f7(0x6b6))return _0xbffe1a[_0x2658f7(0x2cb)](_0x14e058),null;if(!_0x545a5d)throw new Error(_0x2658f7(0x247));const _0x3e7462=_0x54d92b=>Float32Array['from'](_0x54d92b);let _0x1e7ec7;switch(_0x5e6c43){case _0x2658f7(0x253):_0x1e7ec7=_0x545a5d[_0x2658f7(0x253)](_0x5eaf59[0x0],_0x3e7462(_0x5eaf59[0x1]));break;case'remove':_0x1e7ec7=_0x545a5d[_0x2658f7(0x504)](_0x5eaf59);break;case _0x2658f7(0x30b):{_0x1e7ec7=typeof _0x545a5d['getAll']===_0x2658f7(0x640)?_0x545a5d[_0x2658f7(0x30b)]():[];if(_0x1e7ec7&&typeof _0x1e7ec7[_0x2658f7(0x801)]==='function')_0x1e7ec7=_0x10f279(_0x1e7ec7);return Array['from'](_0x1e7ec7??[],_0x5c4db6=>({'key':_0x5c4db6[_0x2658f7(0x82f)],'vector':Array[_0x2658f7(0x48d)](_0x5c4db6[_0x2658f7(0x24e)])}));}case _0x2658f7(0x21a):_0x1e7ec7=_0x545a5d[_0x2658f7(0x21a)](_0x5eaf59[_0x2658f7(0x251)][_0x2658f7(0x35e)](_0x739904=>({'key':_0x739904[_0x2658f7(0x82f)],'vector':_0x3e7462(_0x739904[_0x2658f7(0x24e)])})),_0x5eaf59[_0x2658f7(0x3b9)]);break;case _0x2658f7(0x4ac):_0x1e7ec7=_0x545a5d[_0x2658f7(0x4ac)](_0x5eaf59??undefined);if(_0x1e7ec7&&typeof _0x1e7ec7[_0x2658f7(0x801)]===_0x2658f7(0x640))_0x1e7ec7=_0x10f279(_0x1e7ec7);return Array[_0x2658f7(0x48d)](_0x1e7ec7??[]);case _0x2658f7(0x309):{_0x1e7ec7=_0x545a5d[_0x2658f7(0x309)](_0x5eaf59);if(_0x1e7ec7&&typeof _0x1e7ec7['then']===_0x2658f7(0x640))_0x1e7ec7=_0x10f279(_0x1e7ec7);return _0x1e7ec7==null?null:Array[_0x2658f7(0x48d)](_0x1e7ec7);}case _0x2658f7(0x400):return Number(_0x545a5d['count']());case _0x2658f7(0x604):_0x1e7ec7=_0x545a5d[_0x2658f7(0x604)]();break;case _0x2658f7(0x308):return _0x545a5d[_0x2658f7(0x308)]()??null;default:throw new Error('storage\x20adapter\x20has\x20no\x20method\x20'+_0x5e6c43);}if(_0x1e7ec7&&typeof _0x1e7ec7[_0x2658f7(0x801)]===_0x2658f7(0x640))_0x1e7ec7=_0x10f279(_0x1e7ec7);return _0x1e7ec7===undefined?null:_0x1e7ec7;}const _0x2461c2=new Map();function _0x176703(_0x3bf088,_0x385701,_0x73722b,_0x3f7890){const _0x132ea5=_0x52a3,_0x5eacea=_0x3bf088+'\x00'+_0x73722b+'\x00'+JSON[_0x132ea5(0x35a)](_0x3f7890),_0x17909d=_0x2461c2['get'](_0x5eacea);if(_0x17909d){if(_0x17909d['state']===_0x132ea5(0x321))throw _0x369c84();_0x2461c2['delete'](_0x5eacea);if(_0x17909d[_0x132ea5(0x74f)]==='err')throw _0x17909d[_0x132ea5(0x2ef)];return _0x17909d[_0x132ea5(0x2ef)];}const _0x51a6f3=_0x385701[_0x73722b](_0x3f7890);if(!_0x51a6f3||typeof _0x51a6f3[_0x132ea5(0x801)]!==_0x132ea5(0x640))return _0x51a6f3;const _0xefe826={'state':_0x132ea5(0x321),'value':undefined};_0x51a6f3['then'](_0x265334=>{const _0x201bb8=_0x132ea5;_0xefe826[_0x201bb8(0x74f)]='ok',_0xefe826[_0x201bb8(0x2ef)]=_0x265334;if(_0x2461c2[_0x201bb8(0x309)](_0x5eacea)===_0xefe826)_0x36d13e(_0x385701);},_0x2a0228=>{const _0x441887=_0x132ea5;_0xefe826[_0x441887(0x74f)]=_0x441887(0x2d0),_0xefe826[_0x441887(0x2ef)]=_0x2a0228;if(_0x2461c2[_0x441887(0x309)](_0x5eacea)===_0xefe826)_0x36d13e(_0x385701);});for(let _0x5311ea=0x0;_0x5311ea<0x64&&_0xefe826[_0x132ea5(0x74f)]===_0x132ea5(0x321);_0x5311ea++)process[_0x132ea5(0x33e)]();if(_0xefe826[_0x132ea5(0x74f)]==='ok')return _0xefe826[_0x132ea5(0x2ef)];if(_0xefe826['state']==='err')throw _0xefe826[_0x132ea5(0x2ef)];_0x2461c2[_0x132ea5(0x63f)](_0x5eacea,_0xefe826);throw _0x369c84();}const _0x32d62b=new Map(),_0x1da67e=0xa*0x3c*0x3e8;function _0x36fd30(_0x5129f6,_0x2f90d1,_0x2c7dee){const _0x59a6be=_0x52a3,_0x1cdcd3=Array[_0x59a6be(0x439)](_0x2c7dee)?_0x2c7dee:Array[_0x59a6be(0x48d)](_0x2c7dee??[]);let _0x1465d6=_0x32d62b['get'](_0x5129f6);if(!_0x1465d6)_0x32d62b['set'](_0x5129f6,_0x1465d6=new Map());const _0x1dd40d=Date[_0x59a6be(0x8cc)]();for(const [_0x4f7801,_0x4e0f86]of _0x1465d6)if(_0x4e0f86['req']['state']!==_0x59a6be(0x321)&&_0x1dd40d-_0x4e0f86['req']['at']>_0x1da67e)_0x1465d6[_0x59a6be(0x2cb)](_0x4f7801);const _0x52f18d=_0x1cdcd3['map'](_0x301198=>JSON['stringify'](_0x301198));let _0x126b59=![];const _0x317994=[],_0x2534c7=new Set();for(let _0x537128=0x0;_0x537128<_0x52f18d[_0x59a6be(0x68a)];_0x537128++){const _0x3f4d86=_0x1465d6['get'](_0x52f18d[_0x537128]);if(!_0x3f4d86)!_0x2534c7['has'](_0x52f18d[_0x537128])&&(_0x2534c7[_0x59a6be(0x280)](_0x52f18d[_0x537128]),_0x317994['push'](_0x537128));else{if(_0x3f4d86['req']['state']===_0x59a6be(0x321))_0x126b59=!![];else{if(_0x3f4d86[_0x59a6be(0x71a)][_0x59a6be(0x74f)]==='err'){const _0x58e81b=_0x3f4d86[_0x59a6be(0x71a)][_0x59a6be(0x2ef)];for(const [_0x382d2f,_0x31e26d]of _0x1465d6)if(_0x31e26d['req']===_0x3f4d86[_0x59a6be(0x71a)])_0x1465d6[_0x59a6be(0x2cb)](_0x382d2f);throw _0x58e81b;}}}}if(_0x126b59)throw _0x369c84();if(_0x317994[_0x59a6be(0x68a)]){const _0x3ac5c0=_0x317994[_0x59a6be(0x35e)](_0x4b6fcb=>_0x1cdcd3[_0x4b6fcb]),_0x55fe45=_0x2f90d1[_0x59a6be(0x515)](_0x3ac5c0),_0x5755c5={'state':_0x59a6be(0x321),'value':undefined,'at':0x0},_0x26f3b7=(_0x1f2fe2,_0x1658a0)=>{const _0x340039=_0x59a6be;_0x5755c5[_0x340039(0x74f)]=_0x1f2fe2,_0x5755c5['value']=_0x1658a0,_0x5755c5['at']=Date[_0x340039(0x8cc)]();};if(!_0x55fe45||typeof _0x55fe45[_0x59a6be(0x801)]!=='function')_0x26f3b7('ok',_0x55fe45);else{let _0x3d3005=!![];_0x55fe45[_0x59a6be(0x801)](_0x275ce4=>{_0x26f3b7('ok',_0x275ce4);if(!_0x3d3005)_0x36d13e(_0x2f90d1);},_0x1a122f=>{_0x26f3b7('err',_0x1a122f);if(!_0x3d3005)_0x36d13e(_0x2f90d1);});for(let _0x27a702=0x0;_0x27a702<0x64&&_0x5755c5[_0x59a6be(0x74f)]==='pending';_0x27a702++)process[_0x59a6be(0x33e)]();_0x3d3005=![];}for(let _0x3d5ae6=0x0;_0x3d5ae6<_0x317994[_0x59a6be(0x68a)];_0x3d5ae6++)_0x1465d6['set'](_0x52f18d[_0x317994[_0x3d5ae6]],{'req':_0x5755c5,'index':_0x3d5ae6});if(_0x5755c5['state']===_0x59a6be(0x2d0)){for(const _0x487a4c of _0x317994)_0x1465d6[_0x59a6be(0x2cb)](_0x52f18d[_0x487a4c]);throw _0x5755c5[_0x59a6be(0x2ef)];}if(_0x5755c5['state']===_0x59a6be(0x321))throw _0x369c84();}const _0xa66b40=_0x52f18d[_0x59a6be(0x35e)](_0xd6cad3=>{const _0xcd1f32=_0x59a6be,_0x5d5512=_0x1465d6[_0xcd1f32(0x309)](_0xd6cad3),_0x469360=_0x5d5512[_0xcd1f32(0x71a)][_0xcd1f32(0x2ef)];return _0x469360?_0x469360[_0x5d5512[_0xcd1f32(0x1da)]]:undefined;});for(const _0x5168e7 of _0x52f18d)_0x1465d6[_0x59a6be(0x2cb)](_0x5168e7);if(!_0x1465d6[_0x59a6be(0x8d2)])_0x32d62b[_0x59a6be(0x2cb)](_0x5129f6);return _0xa66b40;}function _0x369c84(){const _0xb39ad8=_0x52a3;return Object[_0xb39ad8(0x4cc)](new Error(_0xb39ad8(0x29d)),{'code':_0xb39ad8(0x379)});}function _0x36d13e(_0x59c748){const _0x257513=_0x52a3;_0x59e042();try{const _0x8cc77a=_0x59c748['__okdb']||_0x44f29d;if(_0x8cc77a&&_0x8cc77a[_0x257513(0x663)])_0x8cc77a[_0x257513(0x210)]('events',null,_0x257513(0x5a2),[_0x257513(0x8be),{}],!![]);}catch{}}function _0x51a86c(_0x569514,_0x3e003f,_0x1fc084){const _0x146f21=_0x52a3,_0x41755d=_0xbffe1a[_0x146f21(0x309)](_0x569514);if(!_0x41755d||typeof _0x41755d[_0x3e003f]!=='function')return{'__absent':!![]};let _0x2b1afe=_0x41755d[_0x3e003f](...Array[_0x146f21(0x439)](_0x1fc084)?_0x1fc084:[]);if(_0x2b1afe&&typeof _0x2b1afe[_0x146f21(0x801)]===_0x146f21(0x640))_0x2b1afe=_0x10f279(_0x2b1afe);return{'value':_0x2b1afe===undefined?null:_0x2b1afe};}const _0x5ee29c=new Map();let _0x226ccb=0x1;const _0x3cac00=new Map(),_0x499e88=new Map();function _0x39fb42(_0x223fae,_0x1e5566=null){const _0x4bc5d8=_0x52a3,_0x4e3edf=_0x226ccb++;_0x5ee29c['set'](_0x4e3edf,_0x223fae);if(_0x1e5566)_0x499e88[_0x4bc5d8(0x63f)](_0x4e3edf,_0x1e5566);return _0x4e3edf;}function _0x27dfa5(_0x5de23f){const _0x8d704=_0x52a3;for(const [_0x1a9b22,_0x43b95f]of _0x3cac00)if(_0x43b95f&&_0x43b95f[_0x8d704(0x61e)]===_0x5de23f)_0x3cac00[_0x8d704(0x2cb)](_0x1a9b22);for(const [_0x160a27,_0x1e041f]of _0x4c3988)if(_0x1e041f===_0x5de23f)_0x4c3988[_0x8d704(0x2cb)](_0x160a27);for(const [_0x2c1d39,_0x6805b3]of _0x499e88)_0x6805b3===_0x5de23f&&(_0x499e88[_0x8d704(0x2cb)](_0x2c1d39),_0x5ee29c[_0x8d704(0x2cb)](_0x2c1d39));if(_0x44f29d===_0x5de23f)_0x44f29d=null;}function _0x3d8b34(_0x349f34,_0x5d37a0){_0x3cac00['set'](_0x349f34,_0x5d37a0);}function _0x569527(_0x1ed98f){const _0x55bd1a=_0x52a3;if(_0x1ed98f&&typeof _0x1ed98f===_0x55bd1a(0x559)&&Object['keys'](_0x1ed98f)[_0x55bd1a(0x68a)]===0x1&&_0x1ed98f['$payload']!==undefined)return _0x5ee29c[_0x55bd1a(0x309)](_0x1ed98f['$payload']);return _0x1ed98f;}function _0x10f279(_0x342f41){const _0x108220=_0x52a3;let _0x512275=![],_0x18bc47=![],_0x41aa0;_0x342f41['then'](_0x1a2763=>{_0x512275=!![],_0x41aa0=_0x1a2763;},_0x5e5cb7=>{_0x512275=!![],_0x18bc47=!![],_0x41aa0=_0x5e5cb7;});for(let _0x380c58=0x0;_0x380c58<0x2710&&!_0x512275;_0x380c58++)process[_0x108220(0x33e)]();if(!_0x512275)return _0x342f41[_0x108220(0x801)](undefined,_0x6e4f6b=>{const _0x340253=_0x108220;try{process[_0x340253(0x442)](_0x340253(0x445)+(_0x6e4f6b&&_0x6e4f6b['message']?_0x6e4f6b[_0x340253(0x211)]:_0x6e4f6b));}catch{}}),undefined;if(_0x18bc47)throw _0x41aa0;return _0x41aa0;}function _0x485091(_0x19cc77,_0x2575ba,_0x3d6172){const _0x3e7c73=_0x52a3,_0x2b8cd2=_0x147e3a(_0x19cc77),_0x378b88=_0x3cac00[_0x3e7c73(0x309)](_0x2575ba);try{const _0x29adf7=_0x2b8cd2(_0x3d6172,{'okdb':_0x378b88&&_0x378b88[_0x3e7c73(0x61e)],'env':_0x378b88});if(_0x29adf7&&typeof _0x29adf7[_0x3e7c73(0x801)]===_0x3e7c73(0x640))_0x10f279(_0x29adf7);}catch(_0xcce421){if(_0xcce421&&_0xcce421[_0x3e7c73(0x61c)]===!![]&&_0xcce421[_0x3e7c73(0x50e)]!==_0x3e7c73(0x5b9)){const _0x3c4241=new Error(_0xcce421[_0x3e7c73(0x211)]);_0x3c4241[_0x3e7c73(0x50e)]='__HOLD__';throw _0x3c4241;}throw _0xcce421;}}const _0x1a4759=new Map();function _0x1bad10(_0x2937f9,_0x1e2574,_0x451b81,_0x3f9db3,_0xdad7e5,_0x59550f){const _0x12651e=_0x52a3,_0x17e9ad=_0x147e3a(_0x2937f9),_0x17d66b=(_0x3cac00['get'](_0x59550f)||{})['okdb']||_0x44f29d,_0xcbcd9f=new AbortController(),_0x262df6=(_0x22b45e,..._0x208e2e)=>_0x17d66b[_0x12651e(0x210)](_0x12651e(0x622),_0x12651e(0x2a6),_0x22b45e,_0x208e2e,![]),_0x4daa4={'okdb':_0x17d66b,'env':_0x3cac00[_0x12651e(0x309)](_0x59550f)||null,'job':_0x3f9db3,'jobId':_0xdad7e5,'signal':_0xcbcd9f[_0x12651e(0x411)],'heartbeat':()=>_0x262df6(_0x12651e(0x50b),_0x451b81),'markProgress':_0x2cf8cb=>_0x262df6(_0x12651e(0x2ca),_0x451b81,_0x2cf8cb),'log':(_0x459f3f,_0x107279)=>_0x262df6(_0x12651e(0x3d5),_0x451b81,_0x459f3f,_0x107279)};_0x1a4759[_0x12651e(0x63f)](_0x451b81,{'ctrl':_0xcbcd9f,'call':_0x262df6});const _0x91faae=()=>{const _0x4d1184=_0x12651e;_0x1a4759['delete'](_0x451b81);try{_0x262df6(_0x4d1184(0x8a9),_0x451b81);}catch{}};let _0xf1630e;try{_0xf1630e=_0x17e9ad(_0x1e2574,_0x4daa4);}catch(_0x3d742f){_0x91faae();throw _0x3d742f;}if(_0xf1630e&&typeof _0xf1630e[_0x12651e(0x801)]===_0x12651e(0x640)){const _0x517084=_0x3c5b12(_0xf1630e);return _0xf1630e[_0x12651e(0x801)](_0x91faae,_0x91faae),{'$token':_0x517084};}return _0x91faae(),_0xf1630e;}function _0x321e77(){const _0x2a71e1=_0x52a3;for(const [_0x1318ca,_0xfe26ab]of _0x1a4759){if(_0xfe26ab['ctrl']['signal'][_0x2a71e1(0x1ed)])continue;let _0x3f4333;try{_0x3f4333=_0xfe26ab[_0x2a71e1(0x4d1)](_0x2a71e1(0x219),_0x1318ca);}catch{continue;}if(_0x3f4333&&_0x3f4333[_0x2a71e1(0x1ed)]){const {OKDBError:_0x4e8a10}=requireErrors();_0xfe26ab['ctrl'][_0x2a71e1(0x333)](new _0x4e8a10(_0x3f4333[_0x2a71e1(0x211)],_0x3f4333['code']));}}}let _0x44f29d=null;function _0x8997af(_0x1e5ccf){_0x44f29d=_0x1e5ccf;}function _0x1264c5(_0x58ac37,_0x38804f,_0x34999d,_0x352a6e,_0x3ebb66,_0x323b7a,_0x1d2e22){const _0x23a28e=_0x52a3,_0x2dc568=_0x147e3a(_0x58ac37),_0x5abed6=_0x3cac00['get'](_0x34999d);try{const _0x28ddcf=_0x38804f?_0x2dc568(_0x3ebb66,_0x323b7a):_0x2dc568({'env':_0x5abed6,'okdb':_0x5abed6&&_0x5abed6['okdb'],'payload':_0x569527(_0x352a6e)},_0x3ebb66,_0x323b7a);if(_0x28ddcf&&typeof _0x28ddcf['then']===_0x23a28e(0x640)){if(_0x323b7a&&_0x323b7a[_0x23a28e(0x5a9)]==='inline')_0x28ddcf[_0x23a28e(0x801)](undefined,()=>{});else{if(_0x1d2e22){const _0x6379f7=_0x2f8a63(_0x28ddcf);if(_0x6379f7===0x0)return null;return{'$token':_0x6379f7};}else _0x10f279(_0x28ddcf);}}}catch(_0x4cbd86){if(_0x4cbd86&&_0x4cbd86[_0x23a28e(0x61c)]===!![]&&_0x4cbd86[_0x23a28e(0x50e)]!==_0x23a28e(0x5b9)){const _0x415021=new Error(_0x4cbd86[_0x23a28e(0x211)]);_0x415021[_0x23a28e(0x50e)]=_0x23a28e(0x5b9);throw _0x415021;}throw _0x4cbd86;}return null;}function _0x2f8a63(_0x1966f7){const _0x41f9fa=_0x52a3;let _0x5c56df=_0x41f9fa(0x321),_0x3963f3;_0x1966f7[_0x41f9fa(0x801)](_0x2300c9=>{_0x5c56df='ok',_0x3963f3=_0x2300c9;},_0x33e8d7=>{_0x5c56df='err',_0x3963f3=_0x33e8d7;});for(let _0x2d9604=0x0;_0x2d9604<0x64&&_0x5c56df==='pending';_0x2d9604++)process[_0x41f9fa(0x33e)]();if(_0x5c56df==='ok')return 0x0;const _0x4aad26=_0x39dd51++,_0x23bdba={'state':_0x5c56df,'value':_0x3963f3};_0x17221a['set'](_0x4aad26,_0x23bdba);if(_0x5c56df===_0x41f9fa(0x321))_0x1966f7[_0x41f9fa(0x801)](_0x77cfba=>{const _0x18cbcd=_0x41f9fa;_0x23bdba[_0x18cbcd(0x74f)]='ok',_0x23bdba[_0x18cbcd(0x2ef)]=_0x77cfba,_0x59e042();},_0x4aad39=>{const _0x5d6e1e=_0x41f9fa;_0x23bdba[_0x5d6e1e(0x74f)]=_0x5d6e1e(0x2d0),_0x23bdba[_0x5d6e1e(0x2ef)]=_0x4aad39,_0x59e042();});return _0x4aad26;}function _0x16db42(_0x228f77){const _0x521d67=_0x52a3;let _0x524312=_0x10cd79[_0x521d67(0x309)](_0x228f77);return _0x524312===undefined&&(_0x524312=_0x4b814a++,_0x10cd79[_0x521d67(0x63f)](_0x228f77,_0x524312),_0x20df6c[_0x521d67(0x63f)](_0x524312,{'fn':_0x228f77,'refs':0x0})),_0x20df6c[_0x521d67(0x309)](_0x524312)['refs']++,_0x524312;}function _0x163c9a(_0x85722b){const _0x1eab9c=_0x52a3,_0x5bdca9=_0x20df6c['get'](_0x85722b);if(!_0x5bdca9)return;--_0x5bdca9['refs']<=0x0&&(_0x20df6c['delete'](_0x85722b),_0x10cd79[_0x1eab9c(0x2cb)](_0x5bdca9['fn']));}function _0x147e3a(_0x24289b){const _0x332582=_0x52a3,_0x1c995f=_0x20df6c['get'](_0x24289b);if(!_0x1c995f)throw new Error(_0x332582(0x76b)+_0x24289b);return _0x1c995f['fn'];}function _0x3c5b12(_0x418c6d){const _0x2302fd=_0x52a3;if(_0x418c6d&&typeof _0x418c6d['then']==='function'){const _0x46ab21=_0x39dd51++,_0x263776={'state':_0x2302fd(0x321),'value':undefined};return _0x17221a[_0x2302fd(0x63f)](_0x46ab21,_0x263776),_0x418c6d[_0x2302fd(0x801)](_0x1a7f73=>{const _0x3c62dc=_0x2302fd;_0x263776['state']='ok',_0x263776[_0x3c62dc(0x2ef)]=_0x1a7f73,_0x59e042();},_0x331163=>{const _0x4d3904=_0x2302fd;_0x263776[_0x4d3904(0x74f)]=_0x4d3904(0x2d0),_0x263776[_0x4d3904(0x2ef)]=_0x331163,_0x59e042();}),_0x46ab21;}return 0x0;}let _0x5e357f=()=>{},_0x57d464=null;function _0x3d64de(_0x1fa769,_0x40eb73=null){_0x5e357f=_0x1fa769,_0x57d464=_0x40eb73;}function _0x5263b9(_0x51f35f){return _0x57d464===_0x51f35f;}function _0x59e042(){_0x5e357f();}function _0x4f13f2(_0x1a89f5){const _0x862388=_0x52a3,_0xbcad26=_0x17221a[_0x862388(0x309)](_0x1a89f5);if(!_0xbcad26)return{'state':_0x862388(0x2d0),'error':{'message':'unknown\x20promise\x20token'}};if(_0xbcad26[_0x862388(0x74f)]===_0x862388(0x321))return{'state':_0x862388(0x321)};_0x17221a[_0x862388(0x2cb)](_0x1a89f5);if(_0xbcad26['state']==='ok')return{'state':'ok','value':_0xbcad26[_0x862388(0x2ef)]};const _0x504300=_0xbcad26[_0x862388(0x2ef)];return{'state':'err','error':{'message':_0x504300&&_0x504300[_0x862388(0x211)]!=null?String(_0x504300[_0x862388(0x211)]):String(_0x504300),'stack':_0x504300&&_0x504300[_0x862388(0x221)],'code':_0x504300&&_0x504300[_0x862388(0x50e)],'status':_0x504300&&typeof _0x504300['status']==='number'?_0x504300[_0x862388(0x717)]:undefined,'hold':!!(_0x504300&&_0x504300[_0x862388(0x61c)]===!![])}};}function _0x1558f7(_0x2e5a06,_0x568e37){_0x310966['set'](_0x2e5a06,_0x568e37);}function _0x302501(_0x288f27){_0x310966['delete'](_0x288f27);}let _0x8d81f7=0x0;function _0x50e8a8(){return _0x8d81f7>0x0;}function _0x35baae(){const _0x48c8a8=_0x52a3;_0x8d81f7++;try{return _0x160dc5[_0x48c8a8(0x32a)](undefined,arguments);}finally{_0x8d81f7--;}}function _0x160dc5(_0x385b19,_0x2d30de,_0x41c5fb,_0x3b8ce9,_0x17d20d,_0x216d50){const _0x178f95=_0x52a3;switch(_0x385b19){case _0x178f95(0x737):return _0x16db42(_0x2d30de);case _0x178f95(0x7a9):return _0x163c9a(_0x2d30de);case _0x178f95(0x4d1):{const _0x28ee28=Array['prototype'][_0x178f95(0x1f7)][_0x178f95(0x4d1)](arguments,0x2),_0x318583=_0x147e3a(_0x2d30de)[_0x178f95(0x32a)](undefined,_0x28ee28);return _0x318583&&typeof _0x318583[_0x178f95(0x801)]===_0x178f95(0x640)?_0x10f279(_0x318583):_0x318583;}case _0x178f95(0x75f):{const _0x4e5c00=Array[_0x178f95(0x511)]['slice']['call'](arguments,0x2),_0x135759=_0x147e3a(_0x2d30de)[_0x178f95(0x32a)](undefined,_0x4e5c00);if(_0x135759&&typeof _0x135759['then']==='function')return{'$token':_0x3c5b12(_0x135759)};return{'$value':_0x135759===undefined?null:_0x135759,'$undef':_0x135759===undefined};}case _0x178f95(0x226):{const _0xe01f64=_0x310966[_0x178f95(0x309)](_0x2d30de);if(_0xe01f64)_0xe01f64['_deliver'](_0x41c5fb,_0x3b8ce9);return undefined;}case _0x178f95(0x58d):{const _0x1572fe=_0x310966[_0x178f95(0x309)](_0x2d30de);if(_0x1572fe)_0x1572fe[_0x178f95(0x8ae)](_0x41c5fb);return undefined;}case _0x178f95(0x3ea):return _0x1264c5(_0x2d30de,_0x41c5fb,_0x3b8ce9,_0x17d20d,_0x216d50,arguments[0x6],arguments[0x7]);case _0x178f95(0x484):return _0x485091(_0x2d30de,_0x41c5fb,_0x3b8ce9);case _0x178f95(0x6c7):return _0x1bad10(_0x2d30de,_0x41c5fb,_0x3b8ce9,_0x17d20d,_0x216d50,arguments[0x6]);case _0x178f95(0x61f):return _0x2a450d['apply'](null,Array[_0x178f95(0x511)][_0x178f95(0x1f7)]['call'](arguments,0x1));case _0x178f95(0x7a5):return _0x51a86c(_0x2d30de,_0x41c5fb,_0x3b8ce9);case _0x178f95(0x22e):return _0x4f13f2(_0x2d30de);case _0x178f95(0x2bf):{const _0x176111=((async()=>{const _0x2ac2c6=_0x178f95,_0x28d84e=await globalThis[_0x2ac2c6(0x1e2)](_0x2d30de);if(!_0x28d84e['ok']){const _0x2c0156=new Error('HTTP\x20'+_0x28d84e[_0x2ac2c6(0x717)]);_0x2c0156[_0x2ac2c6(0x50e)]='HTTP_ERROR';throw _0x2c0156;}return _0x28d84e[_0x2ac2c6(0x810)]();})());return _0x10f279(_0x176111)??null;}case _0x178f95(0x55c):return _0x51fd91(_0x2d30de,_0x41c5fb,_0x3b8ce9);case _0x178f95(0x459):return _0xb5504(_0x2d30de,_0x41c5fb,_0x3b8ce9);case _0x178f95(0x23c):return _0x59c69b(_0x2d30de,_0x41c5fb,_0x3b8ce9);default:throw new Error('okdb-node:\x20unknown\x20bridge\x20op\x20'+_0x385b19);}}return bridge_1={'inNativeCall':_0x50e8a8,'regObject':_0x2dd26b,'checkSignals':_0x321e77,'setCurrentDb':_0x8997af,'forgetDb':_0x27dfa5,'storePayload':_0x39fb42,'registerEnv':_0x3d8b34,'resolvePayload':_0x569527,'bridge':_0x35baae,'reg':_0x16db42,'unreg':_0x163c9a,'fnOf':_0x147e3a,'track':_0x3c5b12,'resolve':_0x4f13f2,'registerTarget':_0x1558f7,'unregisterTarget':_0x302501,'setKick':_0x3d64de,'kickOwnedBy':_0x5263b9},bridge_1;}var writebatch,hasRequiredWritebatch;function requireWritebatch(){const _0x41abd8=_0x5c70f8;if(hasRequiredWritebatch)return writebatch;hasRequiredWritebatch=0x1;const {reclass:_0x238459}=requireErrors(),_0x1b2728=requireBridge(),_0x54f131=new Map();let _0x184311=null;function _0x540c84(_0x35d5ca){const _0x487c3c=_0x52a3;if(_0x184311)return;_0x184311=_0x35d5ca,_0x35d5ca[_0x487c3c(0x607)](_0x4ba1b3);}function _0x4ba1b3(){const _0x148739=_0x52a3,_0x3e9dd5=_0x184311[_0x148739(0x878)]();for(const _0x4d6531 of _0x3e9dd5){const _0x3b9b17=_0x54f131[_0x148739(0x309)](_0x4d6531);_0x3b9b17&&(_0x54f131[_0x148739(0x2cb)](_0x4d6531),_0x3b9b17());}}function _0x163b68(_0x5b456e,_0x272e9c){const _0x11ebdd=_0x52a3;_0x54f131[_0x11ebdd(0x63f)](_0x5b456e,_0x272e9c);}class _0x14309f{constructor(_0x3d9b30){const _0x537c08=_0x52a3;this['db']=_0x3d9b30,this['queue']=[],this[_0x537c08(0x783)]=![],this[_0x537c08(0x4f2)]=![],this[_0x537c08(0x85d)]=new Set();}['enqueue'](_0x339c0a,_0x12ae87,_0x2bd4,_0x31991b){const _0x598861=_0x52a3;if(_0x1b2728['inNativeCall']())try{return Promise[_0x598861(0x22e)](this['db'][_0x598861(0x210)](_0x339c0a,_0x12ae87,_0x2bd4,_0x31991b));}catch(_0x3a6824){return Promise[_0x598861(0x4b2)](_0x3a6824);}const _0x2142ee=new Promise((_0x19c9ca,_0x54cd4f)=>{const _0x3fae9a=_0x598861;this[_0x3fae9a(0x622)]['push']({'item':[_0x339c0a,_0x12ae87,_0x2bd4,_0x31991b],'resolve':_0x19c9ca,'reject':_0x54cd4f});});this['inflight']['add'](_0x2142ee);const _0x3ac6fd=()=>this[_0x598861(0x85d)][_0x598861(0x2cb)](_0x2142ee);return _0x2142ee['then'](_0x3ac6fd,_0x3ac6fd),!this[_0x598861(0x783)]&&(this[_0x598861(0x783)]=!![],setImmediate(()=>{const _0x3578d3=_0x598861;this[_0x3578d3(0x783)]=![],this[_0x3578d3(0x8e6)]();})),_0x2142ee;}[_0x41abd8(0x8e6)](){const _0x5f2d9e=_0x41abd8;if(!this['queue']['length'])return;if(this[_0x5f2d9e(0x4f2)]){!this[_0x5f2d9e(0x783)]&&(this[_0x5f2d9e(0x783)]=!![],setImmediate(()=>{const _0x1ee681=_0x5f2d9e;this[_0x1ee681(0x783)]=![],this[_0x1ee681(0x8e6)]();}));return;}const _0x5b3a7a=this['queue'];this[_0x5f2d9e(0x622)]=[],this['_run'](_0x5b3a7a);}[_0x41abd8(0x6d8)](_0x4ec4ad){const _0x4255e8=_0x41abd8;let _0x104b4f;this[_0x4255e8(0x4f2)]=!![];try{_0x104b4f=this['db'][_0x4255e8(0x858)][_0x4255e8(0x603)](_0x4ec4ad[_0x4255e8(0x35e)](_0x3776a2=>_0x3776a2[_0x4255e8(0x20b)]));}catch(_0x34ae0d){this[_0x4255e8(0x4f2)]=![];if(_0x4ec4ad[_0x4255e8(0x68a)]>0x1){for(const _0x34aca3 of _0x4ec4ad)this[_0x4255e8(0x6d8)]([_0x34aca3]);return;}const _0x242e82=_0x238459(_0x34ae0d);for(const _0x5b130a of _0x4ec4ad)_0x5b130a[_0x4255e8(0x4b2)](_0x242e82);return;}finally{this[_0x4255e8(0x4f2)]=![];}try{this['db'][_0x4255e8(0x5fd)][_0x4255e8(0x2c2)]();}catch{}const [_0x4fbf4c,_0x3881f1]=_0x104b4f;_0x163b68(_0x3881f1,()=>{const _0xece9a0=_0x4255e8;for(let _0x4ded5f=0x0;_0x4ded5f<_0x4ec4ad[_0xece9a0(0x68a)];_0x4ded5f++){const _0x43376b=_0x4fbf4c[_0x4ded5f];if(_0x43376b&&_0x43376b[0x0])_0x4ec4ad[_0x4ded5f]['resolve'](_0x43376b[0x1]);else _0x4ec4ad[_0x4ded5f]['reject'](_0x238459(_0x43376b?_0x43376b[0x1]:new Error('write\x20batch:\x20missing\x20result')));}});}async[_0x41abd8(0x3ec)](){const _0x346db7=_0x41abd8;this[_0x346db7(0x8e6)]();while(this['inflight'][_0x346db7(0x8d2)]){await Promise[_0x346db7(0x30e)]([...this['inflight']]),this[_0x346db7(0x8e6)]();}let _0x544cc4;try{_0x544cc4=this['db'][_0x346db7(0x858)]['flushTicket']();}catch{return;}await new Promise(_0x4de784=>_0x163b68(_0x544cc4,_0x4de784));}}return writebatch={'install':_0x540c84,'WriteBatch':_0x14309f,'whenSettled':_0x163b68},writebatch;}var pump,hasRequiredPump;function requirePump(){const _0x5250f4=_0x5c70f8;if(hasRequiredPump)return pump;hasRequiredPump=0x1;const _0x110b44=Number(process.env.OKDB_NATIVE_IDLE_MS)||0xfa;class _0xbc7a65{constructor(_0xde2522){const _0x23a735=_0x52a3;this['native']=_0xde2522,this[_0x23a735(0x39b)]=null,this[_0x23a735(0x71f)]=null,this[_0x23a735(0x4c2)]=![],this['stopped']=![],this['pumping']=![],this[_0x23a735(0x32e)]=![],this['turns']=0x0,this[_0x23a735(0x22d)]=[],this[_0x23a735(0x771)]=[];}[_0x5250f4(0x6c4)](_0xde2cce){return new Promise(_0xe64e7c=>{const _0x2d9c36=_0x52a3,_0x32bda1=setTimeout(_0x28b86a,_0xde2cce);function _0x28b86a(){clearTimeout(_0x32bda1),_0xe64e7c();}this[_0x2d9c36(0x771)][_0x2d9c36(0x28d)](_0x28b86a);});}[_0x5250f4(0x793)](){const _0x33663d=_0x5250f4;if(this[_0x33663d(0x771)]['length']===0x0)return;const _0x338716=this[_0x33663d(0x771)];this['turnWaiters']=[];for(const _0x22c9a7 of _0x338716)_0x22c9a7();}[_0x5250f4(0x45c)](){const _0x26aa3f=_0x5250f4;this[_0x26aa3f(0x5a6)]=![],this[_0x26aa3f(0x2c2)]();}[_0x5250f4(0x1f1)](){const _0x18cb76=_0x5250f4;this['stopped']=!![];if(this[_0x18cb76(0x39b)])clearTimeout(this[_0x18cb76(0x39b)]);if(this[_0x18cb76(0x71f)])clearImmediate(this[_0x18cb76(0x71f)]);this[_0x18cb76(0x39b)]=this['immediate']=null,this[_0x18cb76(0x793)]();}['wake'](){const _0x1de803=_0x5250f4;if(this[_0x1de803(0x5a6)]||this[_0x1de803(0x71f)])return;this[_0x1de803(0x39b)]&&(clearTimeout(this[_0x1de803(0x39b)]),this[_0x1de803(0x39b)]=null),this[_0x1de803(0x71f)]=setImmediate(()=>{const _0x56ea93=_0x1de803;this[_0x56ea93(0x71f)]=null,this[_0x56ea93(0x3e5)]();});}['turn'](){const _0x4490e7=_0x5250f4;if(this[_0x4490e7(0x5a6)]||this[_0x4490e7(0x8a3)]){this['dirty']=!![];return;}this[_0x4490e7(0x8a3)]=!![];let _0xfd2f4d;try{this[_0x4490e7(0x683)]++,_0xfd2f4d=this[_0x4490e7(0x8d5)]['pump']();if(this[_0x4490e7(0x7b3)])this[_0x4490e7(0x7b3)]();}catch(_0x469ba7){_0xfd2f4d=_0x110b44,process[_0x4490e7(0x407)](()=>{throw _0x469ba7;});}finally{this[_0x4490e7(0x8a3)]=![],this[_0x4490e7(0x793)]();}if(this[_0x4490e7(0x5a6)]||_0xfd2f4d===-0x2)return;if(this[_0x4490e7(0x32e)])return this[_0x4490e7(0x32e)]=![],this[_0x4490e7(0x2c2)]();const _0x20c595=_0xfd2f4d<0x0?_0x110b44:Math[_0x4490e7(0x4a0)](0x0,Math[_0x4490e7(0x597)](_0xfd2f4d,_0x110b44));if(_0x20c595<=0x0)return this[_0x4490e7(0x2c2)]();this[_0x4490e7(0x39b)]=setTimeout(()=>{const _0x1558ef=_0x4490e7;this[_0x1558ef(0x39b)]=null,this[_0x1558ef(0x3e5)]();},Math[_0x4490e7(0x3c1)](_0x20c595));if(this[_0x4490e7(0x39b)][_0x4490e7(0x32c)])this['timer'][_0x4490e7(0x32c)]();}}return pump={'Pumper':_0xbc7a65},pump;}var dist$1={},hasRequiredDist$1;function requireDist$1(){const _0x4a7415=_0x5c70f8;if(hasRequiredDist$1)return dist$1;hasRequiredDist$1=0x1;const _0x31f270=Symbol[_0x4a7415(0x708)](_0x4a7415(0x8c2)),_0x645945={'value':null,'done':!![]},_0x21a137={'value':null,'done':!![]};!Symbol[_0x4a7415(0x262)]&&(Symbol[_0x4a7415(0x262)]=Symbol[_0x4a7415(0x708)](_0x4a7415(0x848)));const _0xf5ec66={};class _0x3e22ed{constructor(_0x4705ac){const _0x52bb6a=_0x4a7415;_0x4705ac&&(this['iterate']=_0x4705ac[Symbol[_0x52bb6a(0x344)]][_0x52bb6a(0x78f)](_0x4705ac));}['map'](_0x1e9371){let _0x59fe90=this,_0x5bddcf=new _0x3e22ed();return _0x5bddcf['iterate']=(_0x3135f1=_0xf5ec66)=>{const _0x13e69c=_0x52a3,{async:_0x434733}=_0x3135f1;let _0x1c7b80=_0x59fe90[_0x434733?Symbol['asyncIterator']:Symbol[_0x13e69c(0x344)]](_0x3135f1);if(!_0x434733)_0x59fe90[_0x13e69c(0x4a5)]=!![];let _0x56671e=-0x1;return{'next'(_0x40f846){const _0x594ba5=_0x13e69c;let _0x25217c;do{let _0x12e981;try{if(_0x40f846)_0x12e981=_0x40f846,_0x40f846=null;else{_0x56671e++,_0x12e981=_0x1c7b80[_0x594ba5(0x48f)]();if(_0x12e981['then'])return!_0x434733&&this[_0x594ba5(0x724)](new Error(_0x594ba5(0x7b2))),_0x12e981[_0x594ba5(0x801)](_0x16e363=>this[_0x594ba5(0x48f)](_0x16e363),_0x2da1a9=>{const _0x19abdf=_0x594ba5;return this[_0x19abdf(0x724)](_0x2da1a9);});}if(_0x12e981[_0x594ba5(0x588)]===!![]){this[_0x594ba5(0x588)]=!![];if(_0x5bddcf[_0x594ba5(0x875)])_0x5bddcf[_0x594ba5(0x875)]();return _0x12e981;}try{_0x25217c=_0x1e9371[_0x594ba5(0x4d1)](_0x59fe90,_0x12e981[_0x594ba5(0x2ef)],_0x56671e);if(_0x25217c&&_0x25217c[_0x594ba5(0x801)]&&_0x434733)return _0x25217c[_0x594ba5(0x801)](_0x260310=>_0x260310===_0x31f270?this[_0x594ba5(0x48f)]():{'value':_0x260310},_0x13e514=>{const _0x43da0f=_0x594ba5;if(_0x3135f1[_0x43da0f(0x338)])_0x13e514[_0x43da0f(0x4be)]=!![];return this[_0x43da0f(0x724)](_0x13e514);});}catch(_0xeb0d75){if(_0x3135f1[_0x594ba5(0x338)])_0xeb0d75[_0x594ba5(0x4be)]=!![];throw _0xeb0d75;}}catch(_0x9de154){if(_0x5bddcf['handleError'])try{_0x25217c=_0x5bddcf[_0x594ba5(0x42f)](_0x9de154,_0x56671e);}catch(_0x342cce){return this['throw'](_0x342cce);}else return this[_0x594ba5(0x724)](_0x9de154);}}while(_0x25217c===_0x31f270);if(_0x25217c===_0x645945)return this[_0x594ba5(0x67c)]();return{'value':_0x25217c};},'return'(_0x458246){const _0x4207b8=_0x13e69c;if(!this[_0x4207b8(0x588)]){_0x21a137[_0x4207b8(0x2ef)]=_0x458246,this[_0x4207b8(0x588)]=!![];if(_0x5bddcf[_0x4207b8(0x875)])_0x5bddcf[_0x4207b8(0x875)]();_0x1c7b80[_0x4207b8(0x67c)]?.();}return _0x21a137;},'throw'(_0x5bd538){const _0x59d251=_0x13e69c;if(_0x5bd538[_0x59d251(0x4be)]){if(_0x5bddcf[_0x59d251(0x51b)])try{return{'value':_0x5bddcf[_0x59d251(0x51b)](_0x5bd538)};}catch(_0x3934af){this[_0x59d251(0x67c)]();throw _0x3934af;}if(_0x3135f1[_0x59d251(0x338)])throw _0x5bd538;}this[_0x59d251(0x67c)]();throw _0x5bd538;}};},_0x5bddcf;}[Symbol[_0x4a7415(0x262)]](_0x5de168){const _0x4f5c06=_0x4a7415;if(_0x5de168)_0x5de168={..._0x5de168,'async':!![]};else _0x5de168={'async':!![]};return this['iterator']=this[_0x4f5c06(0x626)](_0x5de168);}[Symbol[_0x4a7415(0x344)]](_0x234dbe){const _0x21997d=_0x4a7415;return this[_0x21997d(0x344)]=this[_0x21997d(0x626)](_0x234dbe);}[_0x4a7415(0x4e1)](_0x28b917){const _0x161fca=_0x4a7415;let _0x3ac479=this[_0x161fca(0x35e)](_0x218538=>{const _0x3b2610=_0x161fca;let _0xbd02a4=_0x28b917(_0x218538);if(_0xbd02a4?.[_0x3b2610(0x801)])return _0xbd02a4[_0x3b2610(0x801)](_0x2042f9=>_0x2042f9?_0x218538:_0x31f270);else return _0xbd02a4?_0x218538:_0x31f270;}),_0x573f05=_0x3ac479[_0x161fca(0x626)];return _0x3ac479[_0x161fca(0x626)]=(_0x3c8b11=_0xf5ec66)=>{const _0x5f0182=_0x161fca;if(_0x3c8b11[_0x5f0182(0x338)])_0x3c8b11={..._0x3c8b11,'continueOnRecoverableError':![]};return _0x573f05(_0x3c8b11);},_0x3ac479;}[_0x4a7415(0x5ff)](_0x509252){const _0x2493b2=_0x4a7415;let _0x195c52=this[_0x2493b2(0x344)]=this[_0x2493b2(0x626)](),_0x4e6299;while((_0x4e6299=_0x195c52[_0x2493b2(0x48f)]())[_0x2493b2(0x588)]!==!![]){_0x509252(_0x4e6299[_0x2493b2(0x2ef)]);}}[_0x4a7415(0x6cf)](_0x8b6ed3){let _0x4644ee=new _0x3e22ed();return _0x4644ee['iterate']=(_0x4039d1=_0xf5ec66)=>{const _0x3d77f9=_0x52a3;let _0x5b6ab0=this[_0x3d77f9(0x344)]=this['iterate'](_0x4039d1),_0xd7abb0=!![];function _0x1830fa(_0x5373df){const _0x212335=_0x3d77f9;if(_0xd7abb0)try{_0xd7abb0=![],_0x5b6ab0=_0x8b6ed3[_0x4039d1[_0x212335(0x56f)]?Symbol['asyncIterator']:Symbol[_0x212335(0x344)]](),_0x5373df=_0x5b6ab0['next']();if(_0x4644ee[_0x212335(0x875)]){if(_0x5373df[_0x212335(0x801)]){if(!_0x4039d1[_0x212335(0x56f)])throw new Error(_0x212335(0x7b2));_0x5373df[_0x212335(0x801)](_0x20415c=>{const _0x28b53d=_0x212335;if(_0x20415c[_0x28b53d(0x588)]())_0x4644ee[_0x28b53d(0x875)]();},_0xc641f=>{const _0x46d567=_0x212335;this[_0x46d567(0x67c)]();throw _0xc641f;});}else{if(_0x5373df[_0x212335(0x588)])_0x4644ee['onDone']();}}}catch(_0x327023){this[_0x212335(0x724)](_0x327023);}else{if(_0x4644ee[_0x212335(0x875)])_0x4644ee[_0x212335(0x875)]();}return _0x5373df;}return{'next'(){const _0x26d06c=_0x3d77f9;try{let _0x11495e=_0x5b6ab0[_0x26d06c(0x48f)]();if(_0x11495e['then']){if(!_0x4039d1[_0x26d06c(0x56f)])throw new Error('Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results');return _0x11495e[_0x26d06c(0x801)](_0x162a80=>{if(_0x162a80['done'])return _0x1830fa(_0x162a80);return _0x162a80;});}if(_0x11495e[_0x26d06c(0x588)])return _0x1830fa(_0x11495e);return _0x11495e;}catch(_0x415756){this[_0x26d06c(0x724)](_0x415756);}},'return'(_0xdc5a22){const _0x649756=_0x3d77f9;if(!this[_0x649756(0x588)]){_0x21a137[_0x649756(0x2ef)]=_0xdc5a22,this[_0x649756(0x588)]=!![];if(_0x4644ee[_0x649756(0x875)])_0x4644ee[_0x649756(0x875)]();_0x5b6ab0[_0x649756(0x67c)]();}return _0x21a137;},'throw'(_0x45e44c){const _0x47b151=_0x3d77f9;if(_0x4039d1['continueOnRecoverableError'])throw _0x45e44c;this[_0x47b151(0x67c)]();throw _0x45e44c;}};},_0x4644ee;}[_0x4a7415(0x846)](_0xa229f8){const _0x785bca=_0x4a7415;let _0x5c1d75=new _0x3e22ed();return _0x5c1d75[_0x785bca(0x626)]=(_0x5ea4da=_0xf5ec66)=>{const _0x5c7e1e=_0x785bca;let _0x469084=this[_0x5c7e1e(0x344)]=this[_0x5c7e1e(0x626)](_0x5ea4da),_0x3189de;return{'next'(_0x409955){const _0x4a900a=_0x5c7e1e;try{do{if(_0x3189de){let _0x49e6e1;if(_0x409955)_0x49e6e1=_0x409955,_0x409955=undefined;else _0x49e6e1=_0x3189de[_0x4a900a(0x48f)]();if(_0x49e6e1[_0x4a900a(0x801)]){if(!_0x5ea4da[_0x4a900a(0x56f)])throw new Error(_0x4a900a(0x7b2));return _0x49e6e1['then'](_0x1381bc=>this['next'](_0x1381bc));}if(!_0x49e6e1[_0x4a900a(0x588)])return _0x49e6e1;}let _0x34839c;if(_0x409955!=undefined)_0x34839c=_0x409955,_0x409955=undefined;else _0x34839c=_0x469084['next']();if(_0x34839c[_0x4a900a(0x801)]){if(!_0x5ea4da['async'])throw new Error(_0x4a900a(0x7b2));return _0x3189de=undefined,_0x34839c[_0x4a900a(0x801)](_0x4a5ce1=>this[_0x4a900a(0x48f)](_0x4a5ce1));}if(_0x34839c[_0x4a900a(0x588)]){if(_0x5c1d75[_0x4a900a(0x875)])_0x5c1d75[_0x4a900a(0x875)]();return _0x34839c;}try{let _0x29f1d5=_0xa229f8(_0x34839c['value']);if(_0x29f1d5?.['then']){if(!_0x5ea4da[_0x4a900a(0x56f)])throw new Error(_0x4a900a(0x7b2));return _0x29f1d5[_0x4a900a(0x801)](_0xa7892b=>{const _0x4dbadc=_0x4a900a;return Array['isArray'](_0xa7892b)||_0xa7892b instanceof _0x3e22ed?(_0x3189de=_0xa7892b[Symbol[_0x4dbadc(0x344)]](),this[_0x4dbadc(0x48f)]()):(_0x3189de=null,{'value':_0xa7892b});},_0x40a01d=>{const _0x1df560=_0x4a900a;if(_0x5ea4da[_0x1df560(0x338)])_0x40a01d[_0x1df560(0x4be)]=!![];this[_0x1df560(0x724)](_0x40a01d);});}if(Array[_0x4a900a(0x439)](_0x29f1d5)||_0x29f1d5 instanceof _0x3e22ed)_0x3189de=_0x29f1d5[Symbol[_0x4a900a(0x344)]]();else return _0x3189de=null,{'value':_0x29f1d5};}catch(_0xdfa85f){if(_0x5ea4da[_0x4a900a(0x338)])_0xdfa85f[_0x4a900a(0x4be)]=!![];throw _0xdfa85f;}}while(!![]);}catch(_0x10ba10){this[_0x4a900a(0x724)](_0x10ba10);}},'return'(){const _0x5bb8b0=_0x5c7e1e;if(_0x5c1d75['onDone'])_0x5c1d75['onDone']();if(_0x3189de)_0x3189de[_0x5bb8b0(0x67c)]();return _0x469084['return']();},'throw'(_0x38a93e){const _0x557624=_0x5c7e1e;if(_0x5ea4da[_0x557624(0x338)])throw _0x38a93e;if(_0x5c1d75[_0x557624(0x875)])_0x5c1d75['onDone']();if(_0x3189de)_0x3189de['return']();this[_0x557624(0x67c)]();throw _0x38a93e;}};},_0x5c1d75;}[_0x4a7415(0x1f7)](_0x5df581,_0x45e272){const _0x10a814=_0x4a7415;let _0xda35b0=this[_0x10a814(0x35e)]((_0x34e132,_0x19f954)=>{const _0x24a8e4=_0x10a814;if(_0x19f954<_0x5df581)return _0x31f270;if(_0x19f954>=_0x45e272)return _0x645945[_0x24a8e4(0x2ef)]=_0x34e132,_0x645945;return _0x34e132;});return _0xda35b0[_0x10a814(0x42f)]=(_0x24ae97,_0x5c71ad)=>{if(_0x5c71ad<_0x5df581)return _0x31f270;if(_0x5c71ad>=_0x45e272)return _0x645945;throw _0x24ae97;},_0xda35b0;}[_0x4a7415(0x1e3)](_0x10493b){const _0x1c9df8=_0x4a7415;if(typeof _0x10493b!==_0x1c9df8(0x640))throw new TypeError('Expected\x20catch\x20callback\x20to\x20be\x20a\x20function');let _0x265bdf=this[_0x1c9df8(0x35e)](_0x16393a=>{return _0x16393a;}),_0x28293a=_0x265bdf['iterate'];return _0x265bdf['iterate']=(_0x23a298=_0xf5ec66)=>{return _0x28293a({..._0x23a298,'continueOnRecoverableError':!![]});},_0x265bdf[_0x1c9df8(0x51b)]=_0x10493b,_0x265bdf;}['next'](){const _0x2bb434=_0x4a7415;if(!this['iterator'])this[_0x2bb434(0x344)]=this[_0x2bb434(0x626)]();return this['iterator'][_0x2bb434(0x48f)]();}[_0x4a7415(0x861)](){const _0x4e9db4=_0x4a7415;if(this[_0x4e9db4(0x2cd)]&&this[_0x4e9db4(0x2cd)][_0x4e9db4(0x5ff)])return this[_0x4e9db4(0x2cd)];const _0x4fa4f8=new Error(_0x4e9db4(0x883));_0x4fa4f8[_0x4e9db4(0x57d)]=this['asArray'];throw _0x4fa4f8;}get[_0x4a7415(0x2cd)](){const _0x5b7b49=_0x4a7415;if(this[_0x5b7b49(0x47f)])return this['_asArray'];let _0x27c1e1=new Promise((_0x183710,_0x238e7c)=>{const _0x1d99ec=_0x5b7b49;let _0x41af02=this[_0x1d99ec(0x626)](!![]),_0x3ac44f=[],_0x38e94f=this;Object[_0x1d99ec(0x1fd)](_0x3ac44f,'iterable',{'value':_0x38e94f});function _0x2d4845(_0x57a1f0){const _0x96c5d9=_0x1d99ec;while(_0x57a1f0[_0x96c5d9(0x588)]!==!![]){if(_0x57a1f0[_0x96c5d9(0x801)])return _0x57a1f0[_0x96c5d9(0x801)](_0x2d4845);else _0x3ac44f[_0x96c5d9(0x28d)](_0x57a1f0[_0x96c5d9(0x2ef)]);_0x57a1f0=_0x41af02[_0x96c5d9(0x48f)]();}_0x183710(_0x38e94f[_0x96c5d9(0x47f)]=_0x3ac44f);}_0x2d4845(_0x41af02[_0x1d99ec(0x48f)]());});return _0x27c1e1[_0x5b7b49(0x554)]=this,this[_0x5b7b49(0x47f)]||(this[_0x5b7b49(0x47f)]=_0x27c1e1);}[_0x4a7415(0x272)](){const _0x278122=_0x4a7415;return this[_0x278122(0x2cd)];}['at'](_0x333b87){for(let _0x32fd08 of this){if(_0x333b87--===0x0)return _0x32fd08;}}}return _0x3e22ed[_0x4a7415(0x511)][_0x4a7415(0x538)]=_0x645945,dist$1[_0x4a7415(0x7a4)]=_0x3e22ed,dist$1[_0x4a7415(0x6e8)]=_0x31f270,dist$1;}var iterable,hasRequiredIterable;function requireIterable(){const _0x4d870d=_0x5c70f8;if(hasRequiredIterable)return iterable;hasRequiredIterable=0x1;const {ExtendedIterable:_0x31fd07}=requireDist$1(),_0x2e09ca=Number(process.env.OKDB_NATIVE_RANGE_CHUNK)||0x3e8,_0x53b41d=Math[_0x4d870d(0x597)](_0x2e09ca,Number(process.env.OKDB_NATIVE_ROW_CHUNK)||0x100),_0x5dd4fa=new Set([_0x4d870d(0x3ee),'byIndex','query','getChanges']),_0x3dcc0c=Math[_0x4d870d(0x597)](_0x53b41d,Number(process.env.OKDB_NATIVE_RANGE_FIRST)||0x1),_0x47b88f=0x4,_0x30301d=(_0x5b4c3b,_0x3b2180=_0x2e09ca)=>Math['min'](_0x3b2180,_0x5b4c3b*_0x47b88f),_0x25a670={'value':undefined,'done':!![]};function _0x41eebc(_0x4c4ad6){const _0x4ead4c=_0x4d870d,_0x291203=new _0x31fd07();return _0x291203[_0x4ead4c(0x626)]=()=>{let _0x4a599a=0x0;return{'next'(){const _0x34dec5=_0x52a3;return _0x4a599a<_0x4c4ad6[_0x34dec5(0x68a)]?{'value':_0x4c4ad6[_0x4a599a++],'done':![]}:{'value':undefined,'done':!![]};},'return'(){const _0x1c2565=_0x52a3;return _0x4a599a=_0x4c4ad6[_0x1c2565(0x68a)],{'value':undefined,'done':!![]};},'throw'(){const _0x232b81=_0x52a3;return _0x4a599a=_0x4c4ad6[_0x232b81(0x68a)],{'value':undefined,'done':!![]};}};},_0x291203;}const _0x3368da=_0x289346=>typeof _0x289346==='number'&&!Number[_0x4d870d(0x468)](_0x289346)?Math[_0x4d870d(0x4a0)](0x0,Math[_0x4d870d(0x3c1)](_0x289346)):Infinity,_0xefec48=_0x36caa3=>typeof _0x36caa3==='number'?Math[_0x4d870d(0x4a0)](0x0,Math[_0x4d870d(0x2fe)](_0x36caa3))||0x0:0x0;function _0x19f48c(_0x12b4be,_0x19d773,_0x445264,_0x3390cf={}){const _0x548841=_0x4d870d,_0x2b9e6d=new _0x31fd07(),_0x3a8b78=(_0x3390cf['limitOf']||_0x3368da)(_0x19d773[_0x548841(0x582)]),_0x1ca555=_0x3390cf['rows']?_0x53b41d:_0x2e09ca,_0x397782=_0x3390cf[_0x548841(0x835)]||((_0x609574,_0x12c792)=>{const _0x1ae898=_0x548841;_0x609574[_0x1ae898(0x45c)]=_0x12c792,_0x609574[_0x1ae898(0x757)]=!![],delete _0x609574[_0x1ae898(0x353)];});let _0x2be7ad=null;if(_0x3390cf[_0x548841(0x54d)]){const _0x3ada56={..._0x19d773,'limit':Math[_0x548841(0x597)](_0x3dcc0c,_0x3a8b78)};_0x2be7ad={'rows':_0x12b4be(_0x3ada56),'limit':_0x3ada56['limit']};const _0x1198b2=_0x2be7ad;queueMicrotask(()=>{_0x1198b2['dropped']=!![];});}return _0x2b9e6d[_0x548841(0x626)]=()=>{const _0x3188b3=_0x548841;let _0x3a7e97=[],_0x3b515c=0x0,_0x228496=0x0,_0x54e954,_0x3bcb8a=![],_0x415157=![],_0x55090e=_0x3dcc0c;if(_0x2be7ad&&!_0x2be7ad[_0x3188b3(0x5a5)]&&!_0x2be7ad[_0x3188b3(0x7af)]){_0x2be7ad[_0x3188b3(0x7af)]=!![],_0x3a7e97=_0x2be7ad[_0x3188b3(0x659)],_0x3bcb8a=!![],_0x55090e=_0x30301d(_0x55090e,_0x1ca555);if(_0x3a7e97['length']<_0x2be7ad[_0x3188b3(0x582)])_0x415157=!![];if(_0x3a7e97['length'])_0x54e954=_0x445264(_0x3a7e97[_0x3a7e97['length']-0x1]);}const _0x288c97=()=>{const _0x361070=_0x3188b3;if(_0x415157)return;const _0x5c707e=_0x3a8b78-_0x228496;if(_0x5c707e<=0x0){_0x415157=!![],_0x3a7e97=[];return;}const _0x59e67d={..._0x19d773,'limit':Math[_0x361070(0x597)](_0x55090e,_0x5c707e)};if(_0x3bcb8a)_0x397782(_0x59e67d,_0x54e954);_0x3bcb8a=!![],_0x55090e=_0x30301d(_0x55090e,_0x1ca555),_0x3a7e97=_0x12b4be(_0x59e67d),_0x3b515c=0x0;if(_0x3a7e97['length']<_0x59e67d[_0x361070(0x582)])_0x415157=!![];if(_0x3a7e97['length'])_0x54e954=_0x445264(_0x3a7e97[_0x3a7e97[_0x361070(0x68a)]-0x1]);};return{'next'(){const _0x2633ff=_0x3188b3;if(_0x3b515c>=_0x3a7e97[_0x2633ff(0x68a)])_0x288c97();if(_0x3b515c>=_0x3a7e97[_0x2633ff(0x68a)])return{'value':undefined,'done':!![]};return _0x228496++,{'value':_0x3a7e97[_0x3b515c++],'done':![]};},'return'(){return _0x415157=!![],_0x3a7e97=[],{'value':undefined,'done':!![]};},'throw'(){return _0x415157=!![],_0x3a7e97=[],{'value':undefined,'done':!![]};}};},_0x2b9e6d;}function _0x5168af(_0x100f45,_0x3ab982,_0x569693,_0x5748a3,_0x68d121={}){const _0x31b29e=_0x4d870d,_0x196bf8=(_0x68d121[_0x31b29e(0x601)]||_0x3368da)(_0x5748a3&&_0x5748a3['limit']),_0xfcc576=_0x5dd4fa[_0x31b29e(0x571)](_0x3ab982)?_0x53b41d:_0x2e09ca,_0x1f4907=(_0x68d121[_0x31b29e(0x6e6)]||_0xefec48)(_0x5748a3&&_0x5748a3[_0x31b29e(0x353)]),_0x17a0a6=(_0x5f452d,_0xda3b4b,_0x596a96)=>{const _0x529c29=_0x31b29e,_0x4e5cb5=_0x196bf8-_0xda3b4b,_0x12724a=Math['min'](_0x596a96,_0x4e5cb5),_0x5122b2={'limit':_0x12724a,'offset':_0x1f4907+_0xda3b4b},_0x365d92=_0x100f45(_0x529c29(0x6a1),[_0x5f452d,_0x3ab982,_0x12724a===_0x4e5cb5?Infinity:_0x12724a,..._0x569693(_0x5122b2)]);if(_0x365d92[0x0]===-0x1){const _0x261ffe={'offset':_0x1f4907+_0xda3b4b};if(_0x4e5cb5!==Infinity)_0x261ffe['limit']=_0x4e5cb5;return{'pin':0x0,'rows':_0x100f45(_0x3ab982,_0x569693(_0x261ffe)),'raw':Infinity,'eager':!![]};}return{'pin':_0x365d92[0x0],'rows':_0x365d92[0x1],'raw':_0x365d92[0x2]};},_0x2d3e21=_0x22d503=>{const _0x2dd21a=_0x31b29e;if(_0x22d503)_0x100f45(_0x2dd21a(0x7e7),[_0x22d503]);};function _0x3266f9(_0x47f896,_0x256c21,_0x28fb7c){const _0x437c4e=_0x31b29e;let _0x3b5108=0x0,_0x2fd567=[],_0x1394a6=0x0,_0x58f1f8=_0x47f896,_0x2fbcfd=_0x3dcc0c,_0x5798ec=_0x196bf8-_0x47f896<=0x0;if(_0x28fb7c)({buf:_0x2fd567,pos:_0x1394a6,consumed:_0x58f1f8,size:_0x2fbcfd,exhausted:_0x5798ec}=_0x28fb7c);const _0x46e3be=_0x135bd1=>{const _0x44232b=_0x52a3;_0x3b5108=_0x135bd1['pin'],_0x2fd567=_0x135bd1[_0x44232b(0x659)],_0x1394a6=0x0,_0x58f1f8+=_0x135bd1['raw'],_0x2fbcfd=_0x30301d(_0x2fbcfd,_0xfcc576);if(!_0x3b5108)_0x5798ec=!![];};if(_0x256c21)_0x46e3be(_0x256c21);const _0x147028=()=>{const _0x1b58e9=_0x3b5108;_0x3b5108=0x0,_0x2d3e21(_0x1b58e9);},_0x1b69d9={'next'(){const _0x4dee1c=_0x52a3;while(_0x1394a6>=_0x2fd567[_0x4dee1c(0x68a)]){if(_0x5798ec||_0x196bf8-_0x58f1f8<=0x0)return _0x5798ec=!![],_0x147028(),_0x25a670;try{_0x46e3be(_0x17a0a6(_0x3b5108,_0x58f1f8,_0x2fbcfd));}catch(_0x5344c1){_0x3b5108=0x0,_0x5798ec=!![],_0x2fd567=[];throw _0x5344c1;}}return{'value':_0x2fd567[_0x1394a6++],'done':![]};},'return'(){return _0x147028(),_0x25a670;},'throw'(){return _0x147028(),_0x25a670;},'resumed'(){return _0x3266f9(0x0,null,{'buf':_0x2fd567,'pos':_0x1394a6,'consumed':_0x58f1f8,'size':_0x2fbcfd,'exhausted':_0x5798ec});},[Symbol[_0x437c4e(0x344)]](){return this;}};return _0x1b69d9;}function _0x34c425(){if(_0x196bf8<=0x0)return null;const _0x10bd97=_0x17a0a6(0x0,0x0,_0x3dcc0c);return queueMicrotask(()=>{const _0x3ac8ec=_0x52a3;!_0x10bd97[_0x3ac8ec(0x7af)]&&(_0x10bd97[_0x3ac8ec(0x5a5)]=!![],_0x2d3e21(_0x10bd97[_0x3ac8ec(0x2a5)]));}),_0x10bd97;}return{'source':_0x3266f9,'prefetch':_0x34c425};}function _0x50b0a7(_0x5acb9f){const _0x1cbbf8=_0x4d870d;if(!_0x5acb9f||_0x5acb9f[_0x1cbbf8(0x7af)]||_0x5acb9f[_0x1cbbf8(0x5a5)])return null;return _0x5acb9f[_0x1cbbf8(0x7af)]=!![],_0x5acb9f;}return iterable={'fromArray':_0x41eebc,'chunkedRange':_0x19f48c,'pinnedChunks':_0x5168af,'claimPrefetch':_0x50b0a7,'lmdbLimit':_0x3368da,'lmdbOffset':_0xefec48,'CHUNK':_0x2e09ca,'ROW_CHUNK':_0x53b41d,'FIRST':_0x3dcc0c},iterable;}var rawdb,hasRequiredRawdb;function requireRawdb(){const _0x15560f=_0x5c70f8;if(hasRequiredRawdb)return rawdb;hasRequiredRawdb=0x1;const {fromArray:_0x36a56c}=requireIterable();class _0x43aa10{constructor(_0x231839,_0x277439='',_0x45a802={},_0x5571dc=null){const _0x6f4fb2=_0x52a3;this['_env']=_0x231839,this[_0x6f4fb2(0x54b)]=_0x277439,this[_0x6f4fb2(0x2a8)]=!!(_0x45a802&&_0x45a802[_0x6f4fb2(0x2a8)]),this['useVersions']=!!(_0x45a802&&_0x45a802['useVersions']),this['_root']=_0x5571dc||this,this['_buf']=null;}get['_dupArg'](){const _0x13d3bd=_0x52a3;return this[_0x13d3bd(0x2a8)]?!![]:this[_0x13d3bd(0x877)]?'v':![];}['_n'](_0x62f795,_0x48a401){const _0x381fba=_0x52a3;return this[_0x381fba(0x4dd)][_0x381fba(0x61e)]['_call'](_0x381fba(0x415),this['_env'][_0x381fba(0x54b)],_0x62f795,[this[_0x381fba(0x54b)],this[_0x381fba(0x6f9)],..._0x48a401],!![]);}[_0x15560f(0x5d3)](_0x33bc43,_0x5457cd){const _0x2c701b=_0x15560f;return this[_0x2c701b(0x4dd)]['okdb']['_call']('raw',this[_0x2c701b(0x4dd)][_0x2c701b(0x54b)],_0x33bc43,[this[_0x2c701b(0x54b)],this['_dupArg'],..._0x5457cd],![]);}[_0x15560f(0x77c)](_0x1bebb2){const _0x1dc94c=_0x15560f,_0x99f25f=this['_env'][_0x1dc94c(0x386)];if(_0x99f25f)_0x99f25f[_0x1dc94c(0x28d)]({'sub':this['name'],'dup':this[_0x1dc94c(0x6f9)],..._0x1bebb2});else this['_env'][_0x1dc94c(0x61e)][_0x1dc94c(0x210)](_0x1dc94c(0x415),this[_0x1dc94c(0x4dd)][_0x1dc94c(0x54b)],_0x1dc94c(0x50f),[[{'sub':this['name'],'dup':this['_dupArg'],..._0x1bebb2}]],!![]);}[_0x15560f(0x309)](_0x323c57){const _0x4a0a01=_0x15560f;return this['_read'](_0x4a0a01(0x309),[_0x323c57]);}[_0x15560f(0x3a0)](_0x142e44){const _0x270d6c=_0x15560f;if(this[_0x270d6c(0x877)])return this[_0x270d6c(0x5d3)]('getEntry',[_0x142e44]);const _0x1f8640=this[_0x270d6c(0x309)](_0x142e44);return _0x1f8640===undefined?undefined:{'value':_0x1f8640};}[_0x15560f(0x3a6)](_0x1310d3){const _0x577e7b=_0x15560f;return this['_read'](_0x577e7b(0x84e),[_0x1310d3]);}[_0x15560f(0x292)](_0x400821){const _0x486c56=_0x15560f;return this[_0x486c56(0x309)](_0x400821);}[_0x15560f(0x3ee)](_0x56b126={}){const _0x4fbf79=_0x15560f,_0x11841e=this[_0x4fbf79(0x5d3)](_0x4fbf79(0x3ee),[_0x56b126]),_0x266732=_0x56b126[_0x4fbf79(0x5d0)]===![],_0x2ac13b=_0x56b126[_0x4fbf79(0x4ac)]===![];return _0x36a56c(_0x11841e[_0x4fbf79(0x35e)](([_0x23557e,_0x19380b,_0x4a5d88])=>{if(_0x266732)return _0x23557e;if(_0x2ac13b)return _0x19380b;return _0x4a5d88===undefined?{'key':_0x23557e,'value':_0x19380b}:{'key':_0x23557e,'value':_0x19380b,'version':_0x4a5d88};}));}[_0x15560f(0x300)](_0x322981={}){const _0x170e2c=_0x15560f;return _0x36a56c(this['_read']('getRange',[_0x322981])[_0x170e2c(0x35e)](([_0x439daf])=>_0x439daf));}[_0x15560f(0x88a)](_0x3d8138,_0x2a92fa={}){const _0x49ace2=_0x15560f,_0x5d732b=this[_0x49ace2(0x5d3)]('getRange',[{..._0x2a92fa,'start':_0x3d8138,'end':_0x3d8138,'inclusiveEnd':!![]}]);return _0x36a56c(_0x5d732b[_0x49ace2(0x35e)](([,_0x35cc88])=>_0x35cc88));}[_0x15560f(0x8ce)](_0x34409b={}){const _0x5c8d74=_0x15560f;return this[_0x5c8d74(0x5d3)](_0x5c8d74(0x400),[_0x34409b]);}[_0x15560f(0x65c)](){return{'entryCount':this['getCount']()};}[_0x15560f(0x253)](_0xd41358,_0x21e428,_0x580aed){const _0x811f27=_0x15560f;return this['_write']({'op':_0x811f27(0x253),'key':_0xd41358,'value':_0x21e428,'version':_0x580aed}),Promise[_0x811f27(0x22e)](!![]);}[_0x15560f(0x512)](_0x34a9f2,_0x231280,_0x491f94){return this['_write']({'op':'put','key':_0x34a9f2,'value':_0x231280,'version':_0x491f94}),!![];}[_0x15560f(0x504)](_0x3a1c0a,_0x5ee9a4){const _0x518f5b=_0x15560f;return this[_0x518f5b(0x77c)]({'op':'remove','key':_0x3a1c0a,'value':_0x5ee9a4}),Promise['resolve'](!![]);}['removeSync'](_0x191000,_0xe682){const _0x1e5a03=_0x15560f;return this['_write']({'op':_0x1e5a03(0x504),'key':_0x191000,'value':_0xe682}),!![];}[_0x15560f(0x2d8)](){const _0x2be3bc=_0x15560f;this[_0x2be3bc(0x77c)]({'op':_0x2be3bc(0x734)});}[_0x15560f(0x63e)](){const _0x465a7b=_0x15560f;return this[_0x465a7b(0x77c)]({'op':'clear'}),Promise[_0x465a7b(0x22e)]();}[_0x15560f(0x4fa)](){this['clearSync']();}['openDB'](_0x5058cf,_0x1042f9={}){const _0x4b1087=_0x15560f,_0x4d65a3=typeof _0x5058cf===_0x4b1087(0x559)?_0x5058cf:_0x1042f9,_0x433f57=typeof _0x5058cf===_0x4b1087(0x559)?_0x5058cf[_0x4b1087(0x54b)]:_0x5058cf,_0x451561=new _0x43aa10(this[_0x4b1087(0x4dd)],_0x433f57,_0x4d65a3);return _0x451561['_write']({'op':'ensure'}),_0x451561;}[_0x15560f(0x5df)](){}[_0x15560f(0x2f2)](_0x5cee24){const _0x5affcd=_0x15560f;return this[_0x5affcd(0x430)](_0x5cee24);}async['transaction'](_0x377aa9){return this['_tx'](_0x377aa9);}[_0x15560f(0x3b6)](_0x50ee01){const _0x2b1f60=_0x15560f;return this[_0x2b1f60(0x430)](_0x50ee01);}[_0x15560f(0x430)](_0x336231){const _0x22803e=_0x15560f,_0x44feae=this['_env'];if(_0x44feae[_0x22803e(0x386)])return _0x336231();_0x44feae[_0x22803e(0x386)]=[];let _0x869b11;try{_0x869b11=_0x336231();}catch(_0x3d8b6e){_0x44feae[_0x22803e(0x386)]=null;throw _0x3d8b6e;}const _0x499bd2=_0x44feae[_0x22803e(0x386)];_0x44feae[_0x22803e(0x386)]=null;if(_0x499bd2[_0x22803e(0x68a)])_0x44feae['okdb'][_0x22803e(0x210)]('raw',_0x44feae[_0x22803e(0x54b)],_0x22803e(0x50f),[_0x499bd2],!![]);return _0x869b11;}[_0x15560f(0x62f)](){return{'done'(){}};}['resetReadTxn'](){}}return rawdb={'RawDb':_0x43aa10},rawdb;}var views,hasRequiredViews;function requireViews(){const _0x323c7d=_0x5c70f8;if(hasRequiredViews)return views;hasRequiredViews=0x1;const {RawDb:_0x9dceea}=requireRawdb();class _0x29aca4{constructor(_0x53cc62){const _0x47ed6a=_0x52a3;this[_0x47ed6a(0x609)]=_0x53cc62,this['_n']=(_0x3ac10f,_0x10b0d2,_0x454d5f=!![])=>_0x53cc62[_0x47ed6a(0x61e)]['_call'](_0x47ed6a(0x876),_0x53cc62['name'],_0x3ac10f,_0x10b0d2,_0x454d5f);}get[_0x323c7d(0x62a)](){const _0x52bf7f=_0x323c7d,_0x6556bd=this,_0x4f35bc=this[_0x52bf7f(0x609)],_0x470fbb=_0x2dcd55=>_0x2dcd55?new _0x9dceea(_0x4f35bc,_0x2dcd55[_0x52bf7f(0x54b)],{'dupSort':_0x2dcd55[_0x52bf7f(0x668)]}):undefined,_0x187cdb=_0x4dee6e=>{const _0x53e339=_0x52bf7f,_0x266589=_0x6556bd['_n'](_0x53e339(0x802),[_0x4dee6e],![]);if(!_0x266589)return undefined;const _0x237b27=_0x266589[_0x53e339(0x646)],_0x1cc9e7=new Map(Object[_0x53e339(0x719)](_0x237b27['refs'])),_0x11658b=new Map(Object[_0x53e339(0x719)](_0x266589[_0x53e339(0x6a4)])[_0x53e339(0x35e)](([_0x24a33e,_0x1888f9])=>[_0x24a33e,_0x470fbb(_0x1888f9)]));return{'name':_0x4dee6e,'compiled':{'T':_0x237b27['T'],'reducers':_0x237b27[_0x53e339(0x843)],'refs':_0x1cc9e7,'granId':_0x237b27[_0x53e339(0x2b3)],'type':_0x237b27['type'],'_nidFor':_0x2f7134=>_0x6556bd['_n'](_0x53e339(0x5c2),[_0x4dee6e,_0x2f7134],![])},'viewDb':_0x470fbb(_0x266589[_0x53e339(0x85f)][_0x53e339(0x1bc)]),'metaDb':_0x470fbb(_0x266589['dbs'][_0x53e339(0x64e)]),'itemsDb':_0x470fbb(_0x266589['dbs'][_0x53e339(0x682)]),'bucketsDb':_0x470fbb(_0x266589[_0x53e339(0x85f)]['bucketsDb']),'sortedDb':_0x470fbb(_0x266589['dbs']['sortedDb']),'groupsDb':_0x470fbb(_0x266589[_0x53e339(0x85f)][_0x53e339(0x265)]),'prevDb':_0x470fbb(_0x266589['dbs'][_0x53e339(0x3db)]),'refItemsDbs':_0x11658b,'refTrackingDbs':new Map(Object['entries'](_0x266589[_0x53e339(0x89a)]||{})['map'](([_0xdef704,_0x5383ed])=>[_0xdef704,_0x470fbb(_0x5383ed)])),'stopFn':_0x266589['hasStopFn']?async()=>_0x6556bd['_n'](_0x53e339(0x7e0),[_0x4dee6e]):null,'bootstrapWorker':null};};return{'get':_0x5f3b30=>_0x187cdb(_0x5f3b30),'has':_0x569aed=>_0x6556bd['_n'](_0x52bf7f(0x4dc),[],![])[_0x52bf7f(0x495)](_0x569aed),'keys':()=>_0x6556bd['_n'](_0x52bf7f(0x4dc),[],![])[Symbol['iterator']](),get 'size'(){const _0x42247e=_0x52bf7f;return _0x6556bd['_n'](_0x42247e(0x4dc),[],![])[_0x42247e(0x68a)];},[Symbol[_0x52bf7f(0x344)]]:()=>_0x6556bd['_n'](_0x52bf7f(0x4dc),[],![])['map'](_0x53a6cb=>[_0x53a6cb,_0x187cdb(_0x53a6cb)])[Symbol['iterator']]()};}get['_customReducers'](){const _0x42d5ce=_0x323c7d,_0x52578a=this;return{'has':_0x44e22c=>_0x52578a['_n']('customReducerNames',[],![])[_0x42d5ce(0x495)](_0x44e22c),get 'size'(){const _0x24f30f=_0x42d5ce;return _0x52578a['_n'](_0x24f30f(0x81a),[],![])['length'];},'keys':()=>_0x52578a['_n']('customReducerNames',[],![])[Symbol[_0x42d5ce(0x344)]]()};}async['bootSyncedViewsInline'](){const _0x4205af=_0x323c7d;return this['_n'](_0x4205af(0x395),[]);}async[_0x323c7d(0x4b3)](_0x3e5d88={}){const _0x170ef4=_0x323c7d;return this['_n'](_0x170ef4(0x4b3),[_0x3e5d88]);}async[_0x323c7d(0x67b)](_0x50ff37,_0x5781da){const _0x69cc1f=_0x323c7d;return this['_n'](_0x69cc1f(0x67b),[_0x50ff37,_0x5781da]),{'name':_0x50ff37};}[_0x323c7d(0x309)](_0x28be02,_0x53c716={}){const _0x4d4514=_0x323c7d,_0xca36a5=this['_n'](_0x4d4514(0x309),[_0x28be02,{'preview':_0x53c716?.[_0x4d4514(0x295)]??{}}],![]);if(_0xca36a5==null)return null;const _0x433824=this['_n'](_0x4d4514(0x608),[_0x28be02],![]);if(!_0x433824)return _0xca36a5;const _0x2b3b7a=_0x75564f=>(_0x30324f={})=>this['_n'](_0x4d4514(0x3fb),[_0x28be02,_0x75564f,_0x30324f],![]);if(_0x433824[_0x4d4514(0x53d)]){_0xca36a5[_0x4d4514(0x3fb)]=_0x2b3b7a({'kind':_0x4d4514(0x53d)});for(const _0x15264f of _0x433824[_0x4d4514(0x843)]){if(!_0x15264f[_0x4d4514(0x3fb)])continue;if(_0x15264f[_0x4d4514(0x1d2)]){const _0x1ef2ee=_0xca36a5[_0x15264f[_0x4d4514(0x54b)]];if(_0x1ef2ee?.[_0x4d4514(0x295)]&&Array['isArray'](_0x1ef2ee[_0x4d4514(0x295)])){for(const _0x202cd4 of _0x1ef2ee['preview'])_0x202cd4['items']=_0x2b3b7a({'kind':_0x4d4514(0x279),'reducer':_0x15264f[_0x4d4514(0x54b)],'key':_0x202cd4[_0x4d4514(0x82f)]});}}else _0xca36a5[_0x15264f[_0x4d4514(0x54b)]]&&(_0xca36a5[_0x15264f[_0x4d4514(0x54b)]][_0x4d4514(0x3fb)]=_0x2b3b7a({'kind':'reducer','reducer':_0x15264f[_0x4d4514(0x54b)]}));}}for(const _0x33eec2 of _0x433824[_0x4d4514(0x498)]){if(!_0x33eec2[_0x4d4514(0x53d)])continue;const _0x1f0f67=_0xca36a5[_0x33eec2[_0x4d4514(0x54b)]];if(!_0x1f0f67||typeof _0x1f0f67!==_0x4d4514(0x559))continue;_0x1f0f67[_0x4d4514(0x3fb)]=_0x2b3b7a({'kind':_0x4d4514(0x53d),'ref':_0x33eec2['name']});for(const _0x170d41 of _0x33eec2[_0x4d4514(0x843)]){if(!_0x170d41['items'])continue;if(_0x170d41['grouped']){const _0xba725=_0x1f0f67[_0x170d41['name']];if(_0xba725?.[_0x4d4514(0x295)]&&Array['isArray'](_0xba725[_0x4d4514(0x295)])){for(const _0x668050 of _0xba725[_0x4d4514(0x295)])_0x668050['items']=_0x2b3b7a({'kind':_0x4d4514(0x279),'ref':_0x33eec2['name'],'reducer':_0x170d41[_0x4d4514(0x54b)],'key':_0x668050['key']});}}else _0x1f0f67[_0x170d41[_0x4d4514(0x54b)]]&&(_0x1f0f67[_0x170d41[_0x4d4514(0x54b)]][_0x4d4514(0x3fb)]=_0x2b3b7a({'kind':_0x4d4514(0x762),'ref':_0x33eec2[_0x4d4514(0x54b)],'reducer':_0x170d41[_0x4d4514(0x54b)]}));}}return _0xca36a5;}[_0x323c7d(0x5e5)](_0x2719b8){const _0x3f0032=_0x323c7d;return this['_n'](_0x3f0032(0x5e5),[_0x2719b8],![]);}[_0x323c7d(0x47a)](_0x24e0db,_0x4e37d9={}){const _0xd4767d=_0x323c7d;return this['_n'](_0xd4767d(0x47a),[_0x24e0db,_0x4e37d9],![]);}[_0x323c7d(0x41e)](_0x22baf4,_0x872553={}){const _0x7a254c=_0x323c7d;return this['_n'](_0x7a254c(0x41e),[_0x22baf4,_0x872553],![]);}[_0x323c7d(0x34f)](_0x2ced24,_0x63f2e1={}){const _0x2d595a=_0x323c7d;return this['_n'](_0x2d595a(0x34f),[_0x2ced24,_0x63f2e1],![]);}async[_0x323c7d(0x47e)](){const _0x5a61c2=_0x323c7d;return this['_n'](_0x5a61c2(0x47e),[],![]);}async[_0x323c7d(0x437)](_0x2b0b34){const _0x3e8e56=_0x323c7d;return this['_n'](_0x3e8e56(0x437),[_0x2b0b34],![])??null;}async[_0x323c7d(0x504)](_0x4bf9b0,_0x4d3811={}){const _0x136b6e=_0x323c7d;return this['_n'](_0x136b6e(0x504),[_0x4bf9b0,_0x4d3811]);}async[_0x323c7d(0x1f1)](_0x52e3b4){const _0x2e89d3=_0x323c7d;return this['_n'](_0x2e89d3(0x1f1),[_0x52e3b4]);}async[_0x323c7d(0x45c)](_0x400cf2){const _0x4f1f76=_0x323c7d;return this['_n'](_0x4f1f76(0x45c),[_0x400cf2]);}async[_0x323c7d(0x8da)](_0x2a717b){const _0x381a4d=_0x323c7d;return this['_n'](_0x381a4d(0x8da),[_0x2a717b]);}async[_0x323c7d(0x494)](_0x4c59ac){const _0xaebab=_0x323c7d;return this['_n'](_0xaebab(0x494),[_0x4c59ac]);}[_0x323c7d(0x676)](_0x491978,_0x2ee85b={}){const _0x47bea6=_0x323c7d;return this['_n']('registerReducer',[_0x491978,{'apply':_0x2ee85b&&_0x2ee85b[_0x47bea6(0x32a)]}]);}}return views={'OKDBViews':_0x29aca4},views;}var queue,hasRequiredQueue;function requireQueue(){const _0x19afca=_0x5c70f8;if(hasRequiredQueue)return queue;hasRequiredQueue=0x1;const {OKDBError:_0x3b10df}=requireErrors(),_0x3aba9c=requireBridge();class _0x122935{constructor(_0x556a78){const _0x37ed23=_0x52a3;this[_0x37ed23(0x609)]=_0x556a78,this[_0x37ed23(0x61e)]=_0x556a78[_0x37ed23(0x61e)],this[_0x37ed23(0x58d)]=_0x556a78[_0x37ed23(0x61e)][_0x37ed23(0x58d)][_0x37ed23(0x651)]({'feature':'queue'}),this[_0x37ed23(0x1d5)]=new Set();}['_n'](_0x52e8d4,_0x195e36,_0x1a9be7=!![]){const _0x7cb05e=_0x52a3;return this[_0x7cb05e(0x61e)][_0x7cb05e(0x210)](_0x7cb05e(0x622),this[_0x7cb05e(0x609)][_0x7cb05e(0x54b)],_0x52e8d4,_0x195e36,_0x1a9be7);}['_w'](_0x571c2e,_0x30b30a){const _0x85e28f=_0x52a3;return this[_0x85e28f(0x61e)][_0x85e28f(0x7aa)](this['_n'](_0x571c2e,_0x30b30a));}async[_0x19afca(0x692)](){const _0x1e0c27=_0x19afca;return this['_n'](_0x1e0c27(0x2ea),[]);}async['list'](_0x107575={}){const _0x507992=_0x19afca;return this['_n'](_0x507992(0x47e),[_0x107575],![]);}get['_logsDb'](){const _0x12b65e=_0x19afca,{RawDb:_0x2c211d}=requireRawdb();return this['__logsDb']||(this[_0x12b65e(0x257)]=new _0x2c211d(this[_0x12b65e(0x609)],_0x12b65e(0x287)));}async['_sweepOrphanLogs'](){const _0x1747ea=_0x19afca;return this['_w'](_0x1747ea(0x5db),[]);}async[_0x19afca(0x26b)](_0x9aca0f,_0x15dfbb,_0x52453e={}){const _0x379d58=_0x19afca,{txn:_0x215127,..._0x4b1bc2}=_0x52453e||{};if(_0x215127)return this[_0x379d58(0x88c)](_0x215127,_0x9aca0f,_0x15dfbb,_0x4b1bc2);const _0x26d0f6=this[_0x379d58(0x61e)][_0x379d58(0x2d7)];if(_0x26d0f6&&_0x26d0f6[_0x379d58(0x622)]['length'])_0x26d0f6[_0x379d58(0x8e6)]();const _0x233515=this['_n']('enqueueClaim',[_0x9aca0f,_0x15dfbb,_0x4b1bc2],![]);return this[_0x379d58(0x61e)][_0x379d58(0x7aa)](_0x233515['id'])[_0x379d58(0x801)](_0x2f427a=>{const _0x1c95cb=_0x379d58;if(_0x233515['claimed'])this['_startClaimedSoon'](_0x9aca0f);else try{this['okdb'][_0x1c95cb(0x5fd)][_0x1c95cb(0x2c2)]();}catch{}return _0x2f427a;});}['_startClaimedSoon'](_0x592ff8){queueMicrotask(()=>{const _0x39d61a=_0x52a3;try{this['_n'](_0x39d61a(0x790),[_0x592ff8]);}catch{}});}[_0x19afca(0x88c)](_0x369c25,_0x2aab3b,_0x205e06,_0x296d69){const _0x534fcd=_0x19afca,_0x5c34eb=_0x369c25['raw']??_0x369c25;if(_0x5c34eb[_0x534fcd(0x417)])throw new _0x3b10df('Transaction\x20already\x20closed',_0x534fcd(0x679));if(_0x5c34eb['okdb']&&_0x5c34eb['okdb']!==this[_0x534fcd(0x609)]&&_0x5c34eb[_0x534fcd(0x61e)]['name']!==this['env'][_0x534fcd(0x54b)])throw new _0x3b10df('enqueue\x20txn\x20belongs\x20to\x20a\x20different\x20environment',_0x534fcd(0x630),{'txnEnv':_0x5c34eb[_0x534fcd(0x61e)][_0x534fcd(0x54b)],'queueEnv':this['env'][_0x534fcd(0x54b)]});const _0x5f5876=this['_n'](_0x534fcd(0x38e),[_0x2aab3b,_0x205e06,_0x296d69],![]);if(_0x5f5876[_0x534fcd(0x26a)])return _0x5f5876['id'];if(_0x5f5876[_0x534fcd(0x49e)])_0x369c25['update'](_0x534fcd(0x6ab),_0x5f5876[_0x534fcd(0x49e)][_0x534fcd(0x82f)],_0x5f5876[_0x534fcd(0x49e)][_0x534fcd(0x2ef)],{'ifVersion':_0x5f5876[_0x534fcd(0x49e)]['version']});if(_0x205e06!==undefined)_0x369c25[_0x534fcd(0x253)](_0x534fcd(0x610),_0x5f5876['id'],_0x205e06);_0x369c25[_0x534fcd(0x253)]('~queue_jobs',_0x5f5876['id'],_0x5f5876[_0x534fcd(0x6c7)]);if(typeof _0x5c34eb['onDo']===_0x534fcd(0x640))_0x5c34eb[_0x534fcd(0x6bc)](()=>{const _0x405b93=_0x534fcd;if(this['_n'](_0x405b93(0x842),[_0x5f5876['id'],_0x2aab3b,_0x5f5876['when'],_0x5f5876[_0x405b93(0x3d4)]]))this['_startClaimedSoon'](_0x2aab3b);});return _0x5f5876['id'];}async[_0x19afca(0x1fe)](_0xdd9a5f,_0x47a23a={}){const _0x19bb4c=_0x19afca;if(typeof _0xdd9a5f!==_0x19bb4c(0x2b1)||!_0xdd9a5f)throw new _0x3b10df('claim\x20requires\x20non-empty\x20type',_0x19bb4c(0x5cb));return this['_w'](_0x19bb4c(0x1fe),[_0xdd9a5f,_0x47a23a]);}async[_0x19afca(0x824)](_0x1b1e2c,_0x1d3ba5,_0x4bd00a=null){const _0x46415e=_0x19afca;return this['_w'](_0x46415e(0x824),[_0x1b1e2c,_0x1d3ba5,_0x4bd00a]);}async['heartbeat'](_0x1dfc5f,_0x5b5feb,_0x22ff41=null){const _0x5602df=_0x19afca;return this[_0x5602df(0x824)](_0x1dfc5f,_0x5b5feb,_0x22ff41);}async[_0x19afca(0x429)](_0x232d5f,_0x383512,_0x485f81){const _0x349861=_0x19afca;return this['_w'](_0x349861(0x429),[_0x232d5f,_0x383512,_0x485f81]);}async[_0x19afca(0x248)](_0x49a95a,_0x537e47,_0xdb18df){const _0x144037=_0x19afca;return this['_w'](_0x144037(0x248),[_0x49a95a,_0x537e47,_0xdb18df]);}async[_0x19afca(0x709)](_0x391198,_0x363357,_0x390c4c){const _0x2981f3=_0x19afca;return this[_0x2981f3(0x248)](_0x391198,_0x363357,_0x390c4c);}async[_0x19afca(0x1c2)](_0x1a64ea,_0x2ebb78,_0x471851,_0x2266d0){const _0x4d07de=_0x19afca,_0x333274=_0x471851 instanceof Error?{'message':_0x471851[_0x4d07de(0x211)],'stack':_0x471851['stack']}:_0x471851;return this['_w'](_0x4d07de(0x1c2),[_0x1a64ea,_0x2ebb78,_0x333274,_0x2266d0]);}async[_0x19afca(0x7a7)](_0x572d32,_0x2dff7c,_0x5a3c9b,_0x33f07e){return this['markJobFail'](_0x572d32,_0x2dff7c,_0x5a3c9b,_0x33f07e);}async['releaseClaim'](_0x371156,_0x281a50,_0x4bf53f={}){const _0x489284=_0x19afca;return this['_w'](_0x489284(0x69c),[_0x371156,_0x281a50,_0x4bf53f]);}async[_0x19afca(0x37b)](_0x3abfc8){const _0x64d6fc=_0x19afca;return this['_n'](_0x64d6fc(0x37b),[_0x3abfc8],![]);}async[_0x19afca(0x350)](_0x3439b0,_0x5c5862={},_0x377063={}){const _0x40fbcb=_0x19afca,_0x1bcfde=_0x377063&&_0x377063[_0x40fbcb(0x4b8)];if(!_0x1bcfde)return this['_w'](_0x40fbcb(0x350),[_0x3439b0,_0x5c5862]);const {next:_0x3ce289,version:_0x4dc8c5}=this['_n'](_0x40fbcb(0x4f6),[_0x3439b0,_0x5c5862],![]);_0x1bcfde[_0x40fbcb(0x5b4)]('~queue_jobs',_0x3439b0,_0x3ce289,{'ifVersion':_0x4dc8c5});let _0x4f61e0;if(_0x40fbcb(0x690)in _0x5c5862){if(_0x5c5862[_0x40fbcb(0x690)]===undefined){if(this[_0x40fbcb(0x609)]['getEntry'](_0x40fbcb(0x610),_0x3439b0))_0x1bcfde['remove'](_0x40fbcb(0x610),_0x3439b0);}else _0x1bcfde['put'](_0x40fbcb(0x610),_0x3439b0,_0x5c5862[_0x40fbcb(0x690)]);_0x4f61e0=_0x5c5862['payload'];}else _0x4f61e0=this['env'][_0x40fbcb(0x309)](_0x40fbcb(0x610),_0x3439b0);return{..._0x3ce289,'payload':_0x4f61e0};}async[_0x19afca(0x4ef)](_0x446265,_0x514f04={}){const _0x4b5d3e=_0x19afca,_0xb45fd0=_0x514f04&&_0x514f04['txn'];if(!_0xb45fd0)return this['_w'](_0x4b5d3e(0x4ef),[_0x446265]);if(!_0x446265)throw new _0x3b10df('job\x20id\x20required','BAD_PARAM');if(!this[_0x4b5d3e(0x609)][_0x4b5d3e(0x3a0)](_0x4b5d3e(0x6ab),_0x446265))return![];_0xb45fd0[_0x4b5d3e(0x504)](_0x4b5d3e(0x6ab),_0x446265);if(this['env']['getEntry']('~queue_payloads',_0x446265))_0xb45fd0['remove']('~queue_payloads',_0x446265);if(typeof _0xb45fd0[_0x4b5d3e(0x6bc)]===_0x4b5d3e(0x640))_0xb45fd0['onDo'](()=>this['_n']('removeJobLogsAfterCommit',[_0x446265]));return!![];}async[_0x19afca(0x6be)](_0x4b15ae){return this['_w']('cancelJob',[_0x4b15ae]);}async[_0x19afca(0x2df)](_0x21364a){const _0x34d39f=_0x19afca;return this['_w'](_0x34d39f(0x2df),[_0x21364a]);}async[_0x19afca(0x503)](_0x6e4162,_0x138696,_0x8d7c42){const _0x42672e=_0x19afca,_0xf7b254=this['_n'](_0x42672e(0x38c),[_0x138696??null,_0x8d7c42??0x0,_0x6e4162]),_0x4082fa=0x1f4;for(let _0x57d2d5=0x0;_0x57d2d5<_0xf7b254[_0x42672e(0x68a)];_0x57d2d5+=_0x4082fa){this['_n']('bulkRemoveChunk',[_0xf7b254['slice'](_0x57d2d5,_0x57d2d5+_0x4082fa),_0x57d2d5,_0xf7b254[_0x42672e(0x68a)],_0x138696??null]);if(_0x57d2d5+_0x4082fa<_0xf7b254[_0x42672e(0x68a)])await new Promise(_0xc04f9a=>setImmediate(_0xc04f9a));}return this['_n']('emitClearDone',[_0xf7b254[_0x42672e(0x68a)],_0x138696??null]),await new Promise(_0x75069d=>setImmediate(_0x75069d)),_0xf7b254['length'];}async[_0x19afca(0x729)](_0x1ed70c,_0x5216cf){return this['_clearChunked']('done',_0x1ed70c,_0x5216cf);}async[_0x19afca(0x24b)](_0x136200,_0x2b3233){const _0x1997ef=_0x19afca;return this[_0x1997ef(0x503)]('failed',_0x136200,_0x2b3233);}async[_0x19afca(0x633)](_0x2ce04f,_0x155997){const _0x2b38ca=_0x19afca;return this['_w'](_0x2b38ca(0x633),[_0x2ce04f??null,_0x155997??0x0]);}async[_0x19afca(0x4cf)](_0x544e10,_0x250494){const _0x510068=_0x19afca;return this['_w'](_0x510068(0x4cf),[_0x544e10??null,_0x250494??0x0]);}async[_0x19afca(0x558)](_0x33a954,_0x526c17,_0x3cf30e){const _0x3c50a6=_0x19afca;return this['_w'](_0x3c50a6(0x558),[_0x33a954,_0x526c17,_0x3cf30e]);}async[_0x19afca(0x44b)](_0x48aef6,_0x3c59a1={}){const _0x415448=_0x19afca;return this['_n'](_0x415448(0x44b),[_0x48aef6,_0x3c59a1],![]);}async[_0x19afca(0x7df)](_0x2be363,_0x316763={}){const _0x16f83c=_0x19afca,{txn:_0xfe674c,..._0x4e17c9}=_0x316763||{};if(!_0xfe674c)return this['_w'](_0x16f83c(0x7df),[_0x2be363,_0x4e17c9]);const _0x5cbf57=(_0x4342be,_0x4b146d,_0x473229,_0x1e7d10)=>{const _0x236213=_0x16f83c,_0x22ff37=Math[_0x236213(0x2fe)](Number(_0x4342be));return Number[_0x236213(0x85e)](_0x22ff37)?Math['min'](_0x1e7d10,Math[_0x236213(0x4a0)](_0x473229,_0x22ff37)):_0x4b146d;},_0x1dc8c8=typeof _0x2be363===_0x16f83c(0x2b1)?_0x2be363[_0x16f83c(0x7a8)]():'';if(!_0x1dc8c8)throw new Error(_0x16f83c(0x56c));const _0x539512=_0x5cbf57(_0x4e17c9[_0x16f83c(0x52a)],0x0,0x0,0x3b9aca00);_0xfe674c[_0x16f83c(0x253)](_0x16f83c(0x5da),_0x1dc8c8,{'id':_0x1dc8c8,'tokens':_0x5cbf57(_0x4e17c9['tokens'],_0x539512,0x0,_0x539512),'capacity':_0x539512,'refill_amount':_0x5cbf57(_0x4e17c9[_0x16f83c(0x3fe)],0x0,0x0,0x3b9aca00),'refill_every':_0x5cbf57(_0x4e17c9[_0x16f83c(0x4bf)],0x0,0x0,0x16d*0x18*0x36ee80),'updated':Date[_0x16f83c(0x8cc)]()});}async[_0x19afca(0x71b)](_0x4a266a,_0x40f69a){const _0x3a0d48=_0x19afca;return this['_w'](_0x3a0d48(0x71b),[_0x4a266a,_0x40f69a]);}async[_0x19afca(0x5fe)](_0x443916){const _0x4d8fbd=_0x19afca;return this['_w'](_0x4d8fbd(0x5fe),[_0x443916]);}[_0x19afca(0x545)](_0x5a6989){const _0x581239=_0x19afca,_0x2f3850=this['_n'](_0x581239(0x545),[_0x5a6989],![]);return _0x2f3850===null&&typeof _0x5a6989===_0x581239(0x2b1)&&_0x5a6989[_0x581239(0x7a8)]()?undefined:_0x2f3850;}async[_0x19afca(0x898)](_0xa5162a,_0x1bf5c7){return this['_w']('tryClaimTokens',[_0xa5162a,_0x1bf5c7]);}async['addJobType'](_0x4795e5,_0x4df669={}){const _0x2c74dd=_0x19afca;return this['_w'](_0x2c74dd(0x4e8),[_0x4795e5,_0x4df669]);}async[_0x19afca(0x369)](_0x34246f){const _0x46967a=_0x19afca;return this['_n'](_0x46967a(0x369),[_0x34246f],![]);}async['listJobTypes'](){const _0x5a3b85=_0x19afca;return this['_n'](_0x5a3b85(0x45a),[],![]);}async[_0x19afca(0x2c5)](_0x4212e0){return this['_w']('removeJobType',[_0x4212e0]);}[_0x19afca(0x660)](_0x2ef5df){const _0x722c10=_0x19afca;return this['_n'](_0x722c10(0x660),[_0x2ef5df]);}[_0x19afca(0x86f)](_0x58fba0){return this['_n']('resumeJobType',[_0x58fba0]);}[_0x19afca(0x785)](_0x1ab677){const _0x39444f=_0x19afca;return this['_n'](_0x39444f(0x785),[_0x1ab677]);}async['setJobTypeSchema'](_0x525033,_0x1c4ddd,_0xbaa249=![]){return this['_w']('setJobTypeSchema',[_0x525033,_0x1c4ddd,_0xbaa249]);}async['removeJobTypeSchema'](_0x19d9cb){return this['_w']('removeJobTypeSchema',[_0x19d9cb]);}async[_0x19afca(0x277)](_0x5a23cb,_0x8c5155=0x5){const _0x44f6fe=_0x19afca;return this['_n'](_0x44f6fe(0x277),[_0x5a23cb,_0x8c5155],![]);}async['_reconcile'](_0x46c136){return this['_n']('reconcile',[_0x46c136]);}async[_0x19afca(0x560)](_0xe2a41d=0x7530){const _0x4099f6=_0x19afca;await Promise[_0x4099f6(0x30e)]([...this[_0x4099f6(0x1d5)]][_0x4099f6(0x35e)](_0x5b4199=>_0x5b4199[_0x4099f6(0x1f1)](_0xe2a41d)));const _0x441533=this['_n'](_0x4099f6(0x560),[0x0]);return this[_0x4099f6(0x1d5)][_0x4099f6(0x734)](),_0x441533;}async[_0x19afca(0x1dd)](){const _0x7b3aa0=_0x19afca,_0x4b94c8=this['_n'](_0x7b3aa0(0x1dd),[]);return this[_0x7b3aa0(0x1d5)][_0x7b3aa0(0x734)](),_0x4b94c8;}[_0x19afca(0x781)](_0x42d2ad,_0x307b2a,_0x1741b3){const _0x503607=_0x19afca;let _0x3a16db,_0x41488f;if(Array[_0x503607(0x439)](_0x42d2ad)){if(typeof _0x307b2a==='function')throw new _0x3b10df(_0x503607(0x1bd),'BAD_PARAM');_0x41488f=_0x307b2a??{};if(_0x41488f[_0x503607(0x6f2)]!=null&&typeof _0x41488f['admission']!=='function')throw new _0x3b10df(_0x503607(0x753),'BAD_PARAM');if(_0x42d2ad['length']===0x0)throw new _0x3b10df(_0x503607(0x5f1),'BAD_PARAM');_0x3a16db=_0x42d2ad[_0x503607(0x35e)](_0x555db7=>{const _0xf94544=_0x503607;if(!_0x555db7||typeof _0x555db7[_0xf94544(0x45d)]!==_0xf94544(0x2b1)||!_0x555db7[_0xf94544(0x45d)])throw new _0x3b10df(_0xf94544(0x1c6),_0xf94544(0x5cb));if(typeof _0x555db7[_0xf94544(0x3ea)]!=='function')throw new _0x3b10df(_0xf94544(0x1bf)+_0x555db7['type']+_0xf94544(0x74a),_0xf94544(0x5cb));return{..._0x555db7};});}else{_0x41488f=_0x1741b3??{};if(typeof _0x307b2a!==_0x503607(0x640))throw new _0x3b10df(_0x503607(0x1bf)+_0x42d2ad+'\x22\x20requires\x20a\x20`handler`\x20function',_0x503607(0x5cb));_0x3a16db=[{'type':_0x42d2ad,'handler':_0x307b2a,..._0x1741b3??{}}];}const _0x1b7480=this['okdb'];for(const _0x4a1db7 of _0x3a16db){const _0x48b314=_0x4a1db7[_0x503607(0x3ea)];_0x4a1db7['handler']=function(..._0x2cda73){const _0x28cfd5=_0x503607;return _0x1b7480[_0x28cfd5(0x4e0)]()[_0x28cfd5(0x801)](()=>_0x48b314['apply'](this,_0x2cda73));};}const _0x3909ec=this['_n'](_0x503607(0x781),[_0x3a16db,_0x41488f]),_0x3b14e2=this,_0x1c5dc4={'id':_0x3909ec['id'],'type':_0x3909ec[_0x503607(0x45d)],get 'running'(){const _0x40a788=_0x503607;return _0x3b14e2['_n']('workerState',[_0x3909ec['id']],![])[_0x40a788(0x4c2)];},'isRunning'(){const _0x497320=_0x503607;return _0x3b14e2['_n'](_0x497320(0x8a5),[_0x3909ec['id']],![])[_0x497320(0x4c2)];},async 'stop'(_0x5be162=0x7530){const _0x402814=_0x503607;_0x3b14e2['_n'](_0x402814(0x8b6),[_0x3909ec['id']]);const _0x2f3c63=Date[_0x402814(0x8cc)]()+_0x5be162;while(_0x3b14e2['_n'](_0x402814(0x8a5),[_0x3909ec['id']],![])[_0x402814(0x3e1)]>0x0&&Date['now']()<_0x2f3c63)await new Promise(_0x2a4ac7=>setTimeout(_0x2a4ac7,0x2));_0x3b14e2['_n'](_0x402814(0x2b0),[_0x3909ec['id']]),_0x3aba9c[_0x402814(0x2f7)](),_0x3b14e2[_0x402814(0x1d5)][_0x402814(0x2cb)](_0x1c5dc4);},async 'kill'(){const _0x12b021=_0x503607;_0x3b14e2['_n'](_0x12b021(0x59e),[_0x3909ec['id']]),_0x3b14e2['_workers'][_0x12b021(0x2cb)](_0x1c5dc4);}};return this[_0x503607(0x1d5)]['add'](_0x1c5dc4),_0x1c5dc4;}['worker'](_0x1b2da5){const _0x3c1630=_0x19afca;throw new _0x3b10df(_0x3c1630(0x822)+_0x1b2da5+_0x3c1630(0x644)+_0x1b2da5+_0x3c1630(0x384),'QUEUE_WORKER_REMOVED');}[_0x19afca(0x519)](_0x397326){const _0x5113d9=_0x19afca;return this[_0x5113d9(0x36a)](_0x397326);}}return queue={'OKDBQueue':_0x122935},queue;}var timemachine,hasRequiredTimemachine;function requireTimemachine(){const _0x4f3bc9=_0x5c70f8;if(hasRequiredTimemachine)return timemachine;hasRequiredTimemachine=0x1;const {fromArray:_0x30b292}=requireIterable();class _0x2aed11{constructor(_0x105c3e){const _0x42f844=_0x52a3;this[_0x42f844(0x609)]=_0x105c3e,this['okdb']=_0x105c3e[_0x42f844(0x61e)];const _0x16ac0d=(_0x2bdc6c,_0x8dc876)=>this['_n'](_0x2bdc6c,_0x8dc876,![]);this[_0x42f844(0x4d7)]={'getDiffs':(_0xc5c9b9,_0x5eb316,_0x29d7ca)=>_0x16ac0d('storeGetDiffs',[_0xc5c9b9,_0x5eb316,_0x29d7ca||{}]),'hasDiff':(_0x1ef4ef,_0x4482be,_0x1962c0)=>_0x16ac0d('storeHasDiff',[_0x1ef4ef,_0x4482be,_0x1962c0]),'getHead':(_0x420be9,_0x2dd0f7)=>_0x16ac0d(_0x42f844(0x5dc),[_0x420be9,_0x2dd0f7])??null,'getHeadCount':_0x13f0f4=>_0x16ac0d(_0x42f844(0x6f6),[_0x13f0f4]),'getTotalHeadCount':()=>_0x16ac0d(_0x42f844(0x2c8),[]),'getDiffsInRange':(_0x5ea41c,_0x3f4611,_0x379e14)=>_0x16ac0d('storeGetDiffsInRange',[_0x5ea41c??null,_0x3f4611,_0x379e14]),'getConfig':()=>_0x16ac0d('storeGetConfig',[])??null,'getCursor':()=>this['_n']('getLegacyCursor',[],![])??null,get 'db'(){const _0x366e20=_0x42f844;try{return _0x16ac0d(_0x366e20(0x2c8),[]),{};}catch{return null;}}};}get[_0x4f3bc9(0x710)](){const _0x381e86=_0x4f3bc9,_0x517c2f=(this[_0x381e86(0x609)][_0x381e86(0x5fa)]?.[_0x381e86(0x47e)]?.()||[])[_0x381e86(0x4e1)](_0x38f09a=>String(_0x38f09a[_0x381e86(0x324)]||'')[_0x381e86(0x38a)](_0x381e86(0x261)))[_0x381e86(0x68a)];return{'size':_0x517c2f};}['_n'](_0x108c84,_0x256676,_0xfd4ba2=!![]){const _0x469c3f=_0x4f3bc9;return this['okdb'][_0x469c3f(0x210)]('tm',this[_0x469c3f(0x609)][_0x469c3f(0x54b)],_0x108c84,_0x256676,_0xfd4ba2);}async[_0x4f3bc9(0x54c)](_0x57e99b){const _0x34c3eb=_0x4f3bc9;return this['_n'](_0x34c3eb(0x54c),[_0x57e99b??null]);}async[_0x4f3bc9(0x2e6)](_0x5cbd68){const _0x2390c7=_0x4f3bc9;return this['_n'](_0x2390c7(0x2e6),[_0x5cbd68??null]);}async[_0x4f3bc9(0x550)](){return this['_n']('enableAll',[]);}async[_0x4f3bc9(0x795)](){const _0x394bf1=_0x4f3bc9;return this['_n'](_0x394bf1(0x795),[]);}async['drop'](_0x164bea){const _0x7ff745=_0x4f3bc9;return this['_n'](_0x7ff745(0x4fa),[_0x164bea??null]);}async['dropAll'](){const _0x4211f4=_0x4f3bc9;return this['_n'](_0x4211f4(0x604),[]);}['isEnabled'](_0x4d590a){const _0x451e4f=_0x4f3bc9;return this['_n'](_0x451e4f(0x24f),[_0x4d590a??null],![]);}['list'](){const _0x9d1e5f=_0x4f3bc9;return this['_n'](_0x9d1e5f(0x47e),[],![]);}[_0x4f3bc9(0x717)](_0x4e4e64){const _0x36c78a=_0x4f3bc9;return this['_n'](_0x36c78a(0x717),[_0x4e4e64??null],![]);}['getCursor'](_0xe244c3){const _0x54a170=_0x4f3bc9;if(!_0xe244c3)return this['_n'](_0x54a170(0x383),[],![]);return this['_n'](_0x54a170(0x2e8),[_0xe244c3],![]);}[_0x4f3bc9(0x383)](){const _0x579196=_0x4f3bc9;return this['_n'](_0x579196(0x383),[],![]);}[_0x4f3bc9(0x5bf)](_0x48647e,_0x405261,_0x138469){return this['_n']('getStateAt',[_0x48647e,_0x405261,_0x138469],![]);}[_0x4f3bc9(0x89f)](_0x122797,_0x33deeb,_0x42e1f4){return this['_n']('getHistory',[_0x122797,_0x33deeb,_0x42e1f4||{}],![]);}[_0x4f3bc9(0x4d6)](_0x19068d,_0x53dcad,_0x5728b9){const _0x48f71d=_0x4f3bc9;return this['_n'](_0x48f71d(0x4d6),[_0x19068d??null,_0x53dcad,_0x5728b9],![])[Symbol[_0x48f71d(0x344)]]();}async['flush'](_0x14ce0c){const _0xbd322c=_0x4f3bc9;return this['_n'](_0xbd322c(0x889),[_0x14ce0c??null]);}}return timemachine={'OKDBTimeMachine':_0x2aed11},timemachine;}function _0x273d(){const _0x1cd3bc=['listRoutes','deleted','registerQuantum','_isReader','job.priority\x20must\x20be\x20int','_emit','bus:proc','encryptionKeys','a\x20Buffer\x20or\x20readable\x20stream','removed','readerCheckIntervalMs','Index\x20\x27','regObject','queue:rescheduled','Engine\x20template\x20must\x20be\x20a\x20plain\x20object','Native','_lazyPinned','_keyFns','normalizeOAuthAuthResult','_macro','_sync','ERROR','setPosition(p)\x20{\x20position\x20=\x20p\x20},','getUniqueViolations','committed','\x20>=\x200x80)\x20','newListener','_connections','addBucket','stopView','_commitSessionMutation','info','quarantined','docEntry','patchDeclaration','_closeEnvLocally','unpin','Unknown\x20OKDB\x20transaction\x20error','__syncOverride','Cannot\x20delete\x20','durableCursorFloor','listBlobStatus','admin','done_ttl','notes','auth','embeddings','features','bridge','\x27\x20conflicts\x20with\x20existing\x20OKDB\x20property','job_type.payload_schema\x20must\x20be\x20object|null','lookupByTokenHash','\x22\x20to\x20enable\x20it.','readField','$gte','_ttlByExpiry','~file:blob_status','removeTxn','CHANGEFEED_QUANTUM','$pending','standalone','clock','then','stateInfo','_features','_undoHooks','hasEnv','_detachConsole','_ensurePeerState','encryption:key-changed','randomUUID','_peerDb','_hlc','OKDBForeignKeyError','_emitProc','connectionCount','type:registered','json','register','shift','clearDefaultTTL','createAndStartEngine','_ttlTimerAt','sourceType','isSnapshotComplete','_report','resolvedFields','customReducerNames','_ttlByKey','_openAckDb','bucket.id\x20must\x20be\x20non-empty\x20string','routes','vec:','_listening','view:progress','queue.worker(\x27','isBuffer','markJobHeartbeat','index:ready','dirname','stopHandle','a\x20non-empty\x20string','_modeApplied','getInt32','ctxUpdateStatus','hasNativeBatch','kickOwnedBy','charCodeAt','key','\x27\x20at\x20','issueToken','getNodeRecord','processor:ready','bucket.capacity\x20must\x20be\x20int\x20>=\x200','resumeOpts','vectorStoreStats','setTtl','finished','resolveField','OKDBNotFoundError','null','resetIndexFinish','job_type.defaults.retry_delay\x20must\x20be\x20int\x20>=\x200\x20or\x20null','INDEX_ALREADY_REGISTERED','durableRetryFailed','Invalid\x20primary\x20key\x20type:\x20','before\x20any\x20await,\x20chunk\x20with\x20{limit,\x20start,\x20exclusiveStart},\x20or\x20drop\x20snapshot:true.','announceEnqueued','reducers','typeStats','namespace','flatMap','ENGINE_INVALID_DRIVER','Symbol.asyncIterator','embeddings:indexer:doc:queued','isFeatureEnabled','makeOkdb','run','addSSE','exists','\x27:\x20','OKDBError','job.cron\x20must\x20be\x20string|null','effective','geoQuery','INVALID_TYPE_NAME','clocks','sparse','relay:error','_native','assertStartAllowed','bootSyncedEngines','primaryOkdb','regInfo','inflight','isFinite','dbs','origin','toJSON','match','openDB','indexReady','describeTypeDetailed','snapshotScan','_running','session','authorization','previewTemplate','\x20documents\x20fail\x20validation','setDeltaLimit','instanceTimerArmed','job.max_tries\x20must\x20be\x20int\x20>=\x201,\x20null\x20(unlimited)\x20or\x20Infinity','resumeJobType','INVALID_SCHEMA','FOREIGN_KEY_VIOLATION','_hybridQuery','viewOp','onWindow','onDone','views','useVersions','settledTickets','setInt32','files','uploadTxn','job_type.defaults.backoff_multiplier\x20must\x20be\x20number\x20>=\x201\x20or\x20null','__notImplementedNative','getEngine','_txnIdAtSnapshot','rollback','registerHandler:\x20name\x20must\x20be\x20a\x20non-empty\x20string','module','Can\x20not\x20serialize\x20async\x20iterables\x20without\x20first\x20calling\x20resolving\x20asArray','catalog','localViewStats','port','registerPreparer','bus:env_release','flush','getValues','_cancelTTLTimeout','_enqueueInTxn','lastError','setMaxListeners','\x27\x20on\x20type\x20\x27','CREATED','useReadTransaction\x20read\x20view\x20expired:\x20the\x20snapshot\x20was\x20released\x20at\x20the\x20first\x20await/turn\x20','\x27\x20did\x20not\x20return\x20a\x20valid\x20instance','calculateDelta','RELAY_FULL','feature','listIndexes','_getOidcDiscovery','tryClaimTokens','runDrop','refTrackingDbs','runtimeDeclarations','./native-loader.js','idempotency_key','processor:\x20rebuild\x20must\x20be\x20a\x20function','getHistory','REMOVE','tick','durability','pumping','isSetupMode','workerState','_shouldApplyChange','dropSchema','removeLink','ctxRelease','setToken','destroy','\x20===\x204)\x0a\x09\x09\x09\x09','$lt','_log','reconcileDesired','listTTL','Date','INVALID_INDEX_KEY','runGc','finish','Cannot\x20set\x20enforce\x20schema\x20on\x20','stopWorkerBegin','type:','retryable','_ensureTypeEnv','durableRebuild','Engine\x20driver\x20type\x20must\x20be\x20a\x20non-empty\x20string','job_type.defaults.ttl\x20must\x20be\x20int\x20>=\x200\x20or\x20null','fingerprint','embeddings:embed:settled','awaitIdle','tolerant','refreshThresholdMs','@harperdb/extended-iterable:skip','_buffer','_ttlCompositeKey','REF_VIOLATION_RESOLVED','paused','_ensureTokensType','registerModel','_localViewApi','node','registerIndex','now','config','getCount','Foreign\x20key\x20violation:\x20','durableWorkerStats',':useReadTransaction','size','summary','listPath','native','_assertFiles','validate','__cmd','compare','rebuild','STOPPED','tags\x20must\x20be\x20array\x20or\x20string','authenticateToken','nodeKeys','gen','_pokeHandler','SCHEMA_VALIDATION_FAILED','_blobStatusTxn','dropIndex','dir','hasApi','commit','isHeld','_doHooks','~ref_violations','system:env-sync','processor:paused','resolveField:\x20field\x20required','removeListener','indexer','hasChangelog','failed_ttl','compactStorage','viewDb','process(entries,\x20options):\x20with\x20an\x20entries\x20array\x20the\x20handler\x20lives\x20in\x20each\x20entry\x20({\x20type,\x20handler,\x20…\x20});\x20the\x20second\x20argument\x20is\x20the\x20pool\x20options\x20object.','ensureType','process()\x20entry\x20\x22','job.bucket_tokens\x20must\x20be\x20int\x20>=1','item:','markJobFail','unique:violation','createEngine','exportEnvsToStream','each\x20process()\x20entry\x20requires\x20a\x20non-empty\x20`type`','NativeLock','createSearch','off','TYPE_NOT_REGISTERED','_path','_nodePublicKey','closeEnvLocally','_rbuf','_warnUnknownOptions','version','node:perf_hooks','grouped','processor:\x20module.path\x20is\x20required','node:http','_workers','lookupAllByName','startAutoCompactCheck','_sinks','envsWithFiles','index','system:proc','Storage\x20resolver\x20must\x20be\x20a\x20function','killAll','http.listen({workers/makeOkdb/primaryOkdb})\x20is\x20no\x20longer\x20supported\x20in\x20the\x20','Schema\x20validation\x20failed\x20for\x20','getAuthOptions','_localViews','fetch','mapError','job_type.defaults.max_tries\x20must\x20be\x20int\x20>=\x201\x20or\x20null','describeType','maxMs','subscriptions-store:\x20addInterest\x20on\x20unknown\x20session\x20','\x27\x20export\x20\x27','durableStats','syncLock','flushTimeoutError','whenSettled','aborted','markSnapshotComplete','_envIndexDb','5181815GNCwDP','stop','cleanup','envPath','statusOpen','onUndo','drainDeadlineMs','slice','job.tag\x20must\x20be\x20string|null','plugins','license:removed','busState','tag\x20too\x20long','defineProperty','claim','processes','_viewCache','mcp','freeze','assertCreateAllowed','byteOffset','fromCharCode','\x22\x20must\x20return\x20{\x20embed(input):\x20Promise<Float32Array>\x20}','SYSTEM_POKE','handlerName','changeEncryptionKey:\x20to','$nin','item','repairBlobRefs','reset','import','flushPoll','_call','message','getUniqueViolation','_reconcileDesired','~ttl:expiry','_wrap','durableDocs','/([^/]+)','ALREADY_EXISTS','ctxSignal','write','index:progress','_formerOrigins','job.type\x20must\x20be\x20non-empty\x20string','unique','family','jsonrpcCode','stack','_advanceHlcOnRecv','socket','some','abs','event','setAutoCompact','read','buildStep','readFieldMany','__sync:acks','_baselines','errors','resolve','sort','HTTP\x20server\x20already\x20running','OKDBSchemaValidationError','bucket\x20too\x20long','getMany','pipeline','_isBootstrap','queue:clear-progress','ready','position','\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer','registerViewReducer','getGcHorizon','stor','/?$','modeApplied','ensureTokensType','_pendingOps','setSchema','_refCache','(worst\x20','_rebuilding','job.status_code\x20must\x20be\x20string|null','setTTL','storage\x20adapter\x20is\x20gone','markJobComplete','publicKey','fromEntries','clearFailed','envNames','_flushDebounce','vector','isEnabled','embeddings:pipeline:ready','puts','READER_HELD_ACROSS_AWAIT','put','_isFar','\x22\x20tokens\x20too\x20large','(no\x20unambiguous\x20bookmark)\x20—\x20consume\x20it\x20in\x20one\x20synchronous\x20block:\x20materialize\x20(e.g.\x20','__logsDb','created','_cursors','guard','body','searchDocs','302786Zlrszi','subscriptions','status_code','open','time-machine:','asyncIterator','__okdb','system:bus_state_change','groupsDb','_ttlState','TXN_INVALID_ACTION','OKDBIndexAlreadyRegisteredError','actionCount','existing','enqueue','\x20dropped\x20(buffer\x20full)','_timerObjs','tries','Map','~emb:models','readTransaction','resolveData','_cmd','listening','boolean','\x27\x20already\x20registered','samplePayloads','stopping','group','__blobStatusDb','\x22\x20must\x20have\x20a\x20start()\x20method','registerDriver','_scheduleTTLSweep','envs','embeddings:doc:status_change','add','queue:done','processorsStatus','selfKey','queue:removed','chunks','bumpVersion','~queue_logs','setProcessingConfig','_stream','processor:\x20cannot\x20combine\x20a\x20closure\x20handler\x20with\x20module:{path,export}.\x20','setPrototypeOf','_key','push','exports','getSchema','\x22\x20is\x20not\x20registered','materializer','getBinary','createEmbedder','ttl:set','preview','ttlState','delta_limit','unresolveField','flushed','attach','setNative','Buffer','embedder\x20request\x20still\x20pending','staticCall','index:reset','upsertLink','equal','system:clock_change','authenticated','dropType','pin','default','kind','dupSort','sweepExpiredTTL','workers','Algorithm\x20factory\x20must\x20return\x20an\x20object\x20with\x20','clone','tokens','9jzHemC','RangeError','stopWorkerAbort','string','license:invalid','granId','starting','kick','test','Algorithm\x20factory\x20must\x20be\x20a\x20function','findOwner','MAX_SAFE_INTEGER','resume','indexOf','\x20of\x20env\x20\x22','OKDBInvalidIndexKeyError','OKDBInvalidPrimaryKeyError','fetchJson','isBootstrap','_OPTION_HINTS','wake','setStorageResolver','onLicenseExpired','removeJobType','MCP_ERROR','queue:retry','storeGetTotalHeadCount','~processes','ctxProgress','delete','_build','asArray','cron','busEmit','err','defaults','createdBy','initialize','setLastClock','noteListenAddr','INVALID_ARGUMENT','_wb','clearSync','authOpen','reidentify','system:ready','links','getIndex','geoConfig','retryJob','description','_handleInProcess','_ringSize','startIndex','processRest()','endsWith','disable',':\x20not\x20implemented\x20in\x20the\x20native\x20build\x20yet','getCursor','sessionsForKey','ensure','recordPeerAck','spki','setAddress','toMs','value','REBUILD_IN_PROGRESS','warn','transactionSync','job_type.','fts:','created_at','_deliverEvent','checkSignals','durableTierLag','cascade','areIndexesReady','index:','setHostPlugins','isType','trunc','INDEXER_DOC_QUEUED','getKeys','invalid\x20job.status:\x20','_retryPending','__esModule','record','versions','replace','embedderCall','stats','get','_wsettle','getAll','reconcile','removeEnvironment','allSettled','_handlerName','hash','restrict','isWanted','maxConnections','getTemplate','_licenseInterval','inputSchema','log\x20entry\x20fields\x20too\x20large\x20(>2KB\x20serialized)','removeResolver','processorsStart','_handlePending','_blobsDir','invalid\x20job_type.status:\x20','.\x20Only\x20primitives,\x20null,\x20Buffers,\x20and\x20arrays\x20are\x20allowed.\x20Got:\x20','ttl','recommended','_bootLog','pending','_pending','job.bucket\x20must\x20be\x20string|null','cursorKey','license','_busFacade','instance','$all','vector-search\x20engine\x20not\x20running:\x20\x22','apply','encryptionKey','unref','ITEM_UPDATE','dirty','once','txn:end','lastIndexOf','BAD_PLUGIN','abort','quarantinedEnvs','isIndex','_jsSchemas','use','continueOnRecoverableError','OKDBNotImplementedNativeError','formerIds','\x20=\x20finishUtf8(','getLoginConfig','_low','_tickCallback','keyFor','$within','getPosition()\x20{\x20return\x20position\x20},','_searchWithScores','registerType','iterator','OKDBProcessor','ms\x20busy=','_timerHandle','wait','handle','stderr','creating','flushTicket','_systemEnv','_statusEnv','listBuckets','updateJob','Server','Referenced\x20type\x20\x27','offset','durableClock','detach','_pendingLocal','ENGINE_INVALID_TEMPLATE','_blobStream','_setPeerState','stringify','fetchRemoteDelta','_admissionStarted','resumed','map','remote','__ttlByKey','getUint32','_update','uninstalled','ensureTypeEnv','changeToClockDb','setCursor','explainIndex','isReader','getJobType','worker','addInterest','process(filter)','ies','getFast','_onStop','setPeerState','sweepExpired','written','$regex','isRunning','TypeError','fields','isCoordinator','_enableChangelog','EMBED_PENDING','fts:registered','getJob','setEncryptionKey','runtimeState','details','_dedupeKey','rowKey','$options','createPipeline','getLegacyCursor','\x27,\x20fn)\x20for\x20an\x20in-process\x20consumer,\x20or\x20run\x20a\x20consumer\x20on\x20another\x20node/host\x20you\x20launch\x20—\x20all\x20claim\x20the\x20same\x20durable\x20jobs\x20exactly\x20once\x20(CAS).\x20See\x20docs/upgrade-2.0.md.','_adminRelay','_rawTxnBuf','_durableIndexerDocs','restart','_resolveKeys','startsWith','getIndexStatus','clearScan','a\x20string','prepareTxnEnqueue','_pressure','scopedName','\x22\x20is\x20not\x20allowed\x20(it\x20evaluates\x20code);\x20use\x20declarative\x20operators\x20instead','describeAllTypesDetailed','no_action','typesDb','bootSyncedViewsInline','listProviders','der','TXN_ERROR','_envSyncStop','pressure','timer','Database\x20not\x20started','error_stack','$nor','Query\x20operator\x20\x22','getEntry','pendingResponses','NOT_FOUND','level','index:drop','importBlobs','doesExist','listFtsEnvs','_readViewExpired','oauth','txnDone','vecPut','removeSync','_ts','_flushTimer','peers','pause','setKeyBuffer','FTS_BUILD_CONTINUE','getClock','localViewNames','\x0a\x09\x09let\x20','childTransaction',':data','job.error_stack\x20must\x20be\x20string|null','removes','types','label','Plugin\x20name\x20\x27','\x20must\x20be\x20number','let\x20position;\x20let\x20readString\x20=\x20','load','dropping','ceil','engine\x20api\x20has\x20no\x20method\x20\x27','records','started','setLogger','docs','bucket\x20must\x20be\x20object','_getType','engineStop','claim_id',':\x20expected\x20','readerCheck','callStatic','_scheduleFlush','~sub','createEnvironment','_info','listen','EMBEDDER','priority','ctxLog','LICENSE_LIMIT_EXCEEDED','_onPending','engineUninstall','registerExtractor','Blob\x20missing\x20for\x20file:\x20','prevDb','status_message','durableEmbedderInfo','node:path','bucket.tokens\x20must\x20be\x20int\x20>=\x200','field\x20resolver\x20request\x20still\x20pending','inFlight','inline','processor:\x20specify\x20exactly\x20one\x20of\x20handler:\x27<name>\x27\x20or\x20module:{path,export},\x20not\x20both','role','turn','_db','fail','updated','_refIndexDb','handler','hasOwnProperty','drain','Engine\x20template\x20build()\x20is\x20required:\x20','getRange','hook','_defaultEnv','registerIndexDeferred','setMaxBodyBytes','resolveModelDims','bucket','compactLock','node:util','pauseAllAndDrain','payload_schema','reencrypt','_ttlBackoffUntil','items','_facade','meanwhile\x20—\x20the\x20frozen\x20view\x20cannot\x20be\x20kept.\x20Materialize\x20synchronously\x20(e.g.\x20Array.from)\x20','refill_amount','__adminRelay','count','ITEM_CREATE','compaction','loop-lag\x20','runRecord','SCHEMA_COLLECTION_INVALID','_rootDb','nextTick','bucket_tokens','dataView','msgpackr','getTTL','search','registerBucketProjection','embeddings:indexer:ready','assertQueryOptions','ensure:\x20fts\x20entry\x20missing\x20name\x20or\x20fields','signal','released\x20at\x20the\x20first\x20await/turn\x20boundary.\x20Consume\x20ranges\x20before\x20any\x20await,\x20or\x20','searchWithScores','hasType','raw','countByIndex','_closed','_id','shouldApplyChange','__absent','isWorker','snapshot','buckets\x20must\x20be\x20array\x20or\x20string','range','License\x20limit\x20exceeded:\x20','$defs','_lookupAllByName','durableEngineDoc','backup','addRaw','patchSelf','registerAlgorithmFactory','fetchPeer','fromBufferKey','markJobProgress',';return\x20{','160JemiWs','vectorSpace','job.claim_id\x20must\x20be\x20string|null','nodeKey','handleError','_tx','_lock','_makeLazyVectorAdapter','isBun','_durableEmbedderInfo','embedder\x20is\x20gone','job.id\x20must\x20be\x20string','getDefinition','locks','isArray','subscribe','true','_stateDb','byteLength','claimGated','tierList','files.upload:\x20stream','Too\x20many\x20concurrent\x20connections','emitWarning','__ref_index','autoCompact','okdb-node:\x20a\x20background\x20async\x20handler\x20rejected:\x20','Version\x20mismatch\x20for\x20','meta','\x27,\x20cannot\x20map\x20to\x20\x27','headers','INDEX_HAS_CONSUMERS','getJobLogs','208470ZPirdC','_np','setClaiming','non-empty\x20string','readHashRange','bigint','$not','_drainOne','_writeBlob','validateOidcAccessToken','getDefaultTTL','_getPeerState','_timer','alg','listJobTypes','registerFts','start','type','node:cluster','_drain','OKDBTypeAlreadyRegisteredError','encryption\x20key\x20function','tryAcquire','_compactLock','syncBlobs','startNewEnginesFromSync','\x22\x20tokens\x20must\x20be\x20>=\x201',')\x20+\x20readString(source)}','isNaN','targetType','applyChange','durableMarkFail','_durableEngineDoc','_remove','setBridge','_subscribeEvent','WORKER','\x22\x20on\x20\x22','_changefeed','listRuns','getPeerState','_closedHandle','ms\x20p99=','_plugins','TXN_START','unpack','itemsGroups','authenticateRequest','WriteBatch','okdb._openEnvLazy:\x20env\x20\x22','list','_asArray','toBufferKey','floor','_put','readString\x20}','quantum','OKDBUniqueConstraintError','$ref','job_type.defaults.buckets\x20must\x20be\x20array|null','recomputeFields','listPeers','exportBlobs','$eq','registerQuantum:\x20load\x20must\x20be\x20a\x20function','from','loginSelect','next','symbol','4799752QXgJco','_closeReadTransaction','blobPath','resetView','includes','_sub','dropFts','refs','_push','retry_delay','_isOpenForIp','getIndexMeta','isLoopbackIp','release','expiresAt','max','job.idempotency_key\x20must\x20be\x20string|null','isActive','storeEnv','__after','isSync','flushQuantum','drivers','TYPE_ALREADY_REGISTERED','\x27\x20doesn\x27t\x20exist',':clockToChange','pid','keys','_registerType','_attached','reconcilePeer','buffer','field:resolver_registered','reject','bootSyncedViews','job.retry_delay\x20must\x20be\x20int\x20>=\x200','_indexBuild','ensureDesired','INDEXER','txn','existsSync','ensure:\x20type\x20is\x20required','ref','context','_isClosedEnvError','continueIteration','refill_every','describeIndex','embedder','running','listTypes','bucket\x20\x22','node:crypto','_txnBuf','_stopFor','lastClock','_quantum','addrs','events','assign','_reconcilePeer','$size','clearStuck','_typesDb','call','autoCompactTimerArmed','schema:set','\x20must\x20be\x20','attachConsole','getChanges','_store','system:stopped','must\x20be\x20an\x20object;\x20got\x20null','getSecurityNotices',',\x20got\x20','stateNames','_env','TXN_INVALID_OP','storeEnvPath','_afterDurable','filter','hasEmbedderFactory','_nodePrivateKey','\x22\x20is\x20used\x20by:\x20','OKDBIndexNotRegisteredError','IPv4','3.1.3','addJobType','intervalTimer','isInteger','envName','inspect','$or','_subscribed','removeJob','shutdownTimeout','resetFts','inBatch','job.finished\x20must\x20be\x20number|null','queue-worker','DOC_STATUS_CHANGE','planUpdateJob','digest','job_type.payload_schema.definition\x20must\x20be\x20object','extend','drop','connected','getSelfNode','(?:/(.*))?','hlc','listRecords','path','~fts:envs','compact','_clearChunked','remove','setReadBuffer','_changeToClockDb','.\x20Primary\x20keys\x20must\x20be\x20string\x20or\x20number.\x20Got:\x20','$mod','_ensureDbs','outgoing','ctxHeartbeat','doc','indexStats','code','batch','resumeAllAfterDrain','prototype','putSync','isTypeEmpty','Engine\x20template\x20id\x20must\x20be\x20a\x20non-empty\x20string','embedBatch','migrate','_blobStatusDb','INVALID_OPTIONS','spawn','$elemMatch','returnRecoverableErrors','Index\x20\x22','_listPeers','max_concurrency','listVectorStores','note','prefix','forceAfterMs','KNOWN_OPTIONS','mean','hex','near','removeEventListener','SYSTEM_STOPPED','resetIndexBegin','capacity','OKDBTypeNotRegisteredError','_nm','_logChange','_onPoke','ttl:expired','MAXIMUM_KEY','unique:violation_resolved','processEverything()','lmdb','refreshTtl','getVector','_handles','active','DONE','isWellFormed','repair','\x22\x20not\x20found','_blobPath','view','_meta','files.registerExtractor:\x20extractor\x20must\x20be\x20a\x20function','\x20=\x20source[position++]\x0a\x09\x09if\x20(','job_type.defaults.','listIndexKeys','waiting','system:env_release','getBucket','setUint32','item:create','definition','blobsDir','new','name','enable','prefetch','files\x20feature\x20not\x20available','enforced','enableAll','_indexBuilds','[log-sink]\x20','PLUGIN_DEPENDENCY_MISSING','iterable','lock','advanceHlcOnRecv','validateRouteInput','appendJobLog','object','QUERY_OPERATOR_FORBIDDEN','_setKey','emb','defaultTTL','buckets','lastTxnId','stopAll','pokeHandler','processors','lockHeld','\x27\x20does\x20not\x20exist\x20in\x20type\x20\x27','importFromFile','__ttlCancelledGen','String\x20does\x20not\x20fit\x20in\x20target\x20buffer','OKDBSchemaCollectionError','fts:reset','_startAdmission','INDEXER_DOC_DONE','bucket\x20id\x20required','head','processor:progress','async','6dRbJyM','has','system:drain','maxBodyBytes','send','getStatus','sessionId','createLoginState','setClaimGated','Unknown\x20transaction\x20action:\x20','__peers','timerArmed','.\x20Valid:\x20','resolution','getRaw','job\x20type\x20must\x20be\x20object','(source)\x20=>\x20{','setMode','limit','resetting','parseBearer','log\x20entry\x20must\x20be\x20a\x20string\x20or\x20object','~fts:','UNIQUE_CONSTRAINT','done','reason','_getNodeRecord','getMaxBodyBytes','_ackDb','log','INVALID_STATE','timeMachine','embed-worker','resetIndex','embeddings:indexer:doc:done','FTS_FLUSH_TIMEOUT','PLUGIN_ALREADY_REGISTERED','embed','join','min','log\x20entry\x20message\x20required','clearTTL','_admissionTimer','ENGINE_DRIVER_MISSING_START','sync','_buckets','killWorker','properties','ctxEmit','_pdb','emit','_onItem','backoffUntil','dropped','stopped','_validateOidcAccessToken','getFloat64','mode','job.claim_expires\x20must\x20be\x20number|null','createIndexer','writeKey','set_null','_getRaw','toLowerCase','_tids','_okdbAdminAttached','INDEXER_DOC_FAILED','Cannot\x20register\x20plugins\x20after\x20start','update','~system','listLinks','logChange','limits','__HOLD__','attachFeed','__stateDb','sha256','txn:rollback','_markSeen','getStateAt','toISOString','listViolations','nidFor','actions','byIndex','getEmbedderFactory','subarray','dataEnv','BAD_HOST','\x20>\x204)\x20{\x0a\x09\x09\x09if\x20(','envSize','BAD_PARAM','inactive','OKDBIndexHasConsumersError','\x22)\x20before\x20open()','Engine\x20driver\x20already\x20registered:\x20\x22','values','enforce','getOidcDiscovery','_read','registerEmbedderFactory','pop','chunk\x20strategy\x20must\x20be\x20a\x20function','_locks','\x20does\x20not\x20exist','allowUnsafe','~queue_buckets','sweepOrphanLogs','storeGetHead','signalWant','UNKNOWN_RANGE_OPTION','close','_status','getRun','getPeerAcks','PLUGIN_NAME_CONFLICT','split','getMeta','IPv6','fieldPath','job.',';\x20got\x20','opts','uninstallEngine','getSession','~log','FTS_READY_TIMEOUT','1317NZtTgq','diag','process(entries)\x20requires\x20at\x20least\x20one\x20entry','_clockListener','$in','patchConfig','bootRuntimeDeclarations','ensureFeed','targetKey','hasIndex','Invalid\x20onDelete\x20rule\x20\x27','processor','~log_entry','_readBuf','_pumper','removeBucket','forEach','createWorker','limitOf','_debounceTimer','callBatch','dropAll','_onFeedChange','ttlTimer','setFlushNotify','itemsPlan','env','ttlMs','consumeLoginState','backoff_multiplier','resetUnknownOptionsWarned','OKDB','_kbuf','~queue_payloads','bus','_envs','_setTTL','proc','INDEX_NOT_REGISTERED','listNodes','durableMarkDone','bucket.updated\x20must\x20be\x20number','setPeersFn','endIndex','select','processorHold','_http','okdb','driver','_started','callRows:\x20unexpected\x20row\x20stride\x20','queue','TXN_END','build','empty\x20string','iterate','_teardownNative','\x27\x20is\x20already\x20registered','acquiredAt','_viewState','filterSessionsForType','retry','cause','error','useReadTransaction','TXN_ENV_MISMATCH','cookies','_isWriter','retryFailed','_jsFactories','TXN_ROLLBACK','vector-search','a\x2032-character\x20key\x20or\x20a\x20function\x20returning\x20one','openEnv','OKDBForeignKeyDeleteError','_makePipelineApi','licenses','Type\x20\x22','enabled','clearAsync','set','function','reverse','total','_syncExpiresAtField','\x27,\x20module)\x20(the\x20auto-adopted\x20shared-pool\x20form)\x20was\x20removed\x20in\x20okdb\x202.0:\x20okdb\x20no\x20longer\x20auto-runs\x20queue\x20handlers\x20(trusted\x20user\x20code\x20it\x20can\x27t\x20place).\x20Use\x20queue.process(\x27','args','compiled','dims','_detachLog','debug','nativeCode','_assertRangeOptions','toFixed','_range','metaDb',')\x0a\x09\x09}\x0a\x09\x09','captureStackTrace','child','job.buckets\x20entries\x20must\x20be\x20objects','updated_at','indexer\x20engine\x20not\x20running:\x20\x22','engines','flushMaxWait','host','_writerWatchdogInterval','rows','algorithm\x20has\x20no\x20method\x20','patch','getStats','Embedder\x20factory\x20for\x20\x22','loop-lag','schema','pauseJobType','_callMacro','queue:enqueued','_isOpen','_setTTLEntry','~engines','ttl:clear','backupRoot','dup','login','setKick','_staticCall','registerTemplate','_listeners','Array.from)\x20before\x20any\x20await.','change','_durableWorkerStats','hasBody','pump','_keyListener','env:removed','isWriter','registerReducer','exportToFile','getBlobStatus','TXN_CLOSED','HIGH_SENTINEL','create','return','__ttlByExpiry','_readerCheckInterval','STOPPING','_stopAutoCompactCheck','_feed','itemsDb','turns','offWindow','utf8Write','setDefaultTTL','getViolation','options','__tokenSecret','length','2633106yiWHad','_ensureDesired','_ttlParseComposite','claim_expires','transaction','payload','Engine\x20template\x20kind\x20must\x20be\x20\x22engine\x22\x20or\x20\x22pipeline\x22:\x20','_ensure','createQueryTester','PUT','_typeKeys','ONLINE','failed','attachOKDB','invalid\x20log\x20level:\x20','getResolvedOptions','_resolveFilter','releaseClaim','STARTED','applyInterestDelta','query','hybridQuery','pinned','encodeInto','undefined','refItemsDbs','refreshReadTxn','sseSend','data','inNativeCall','INACTIVE','-----BEGIN\x20PUBLIC\x20KEY-----\x0aMCowBQYDK2VwAyEAacrkExPrhxNVHyeQBLDwg8xfm1OwyxDAPNdGXABYS2s=\x0a-----END\x20PUBLIC\x20KEY-----','~queue_jobs','balanced','OKDBAlreadyExistsError','utf8','_detachLogSink','token','fts',':emb:','node:stream','isDeepStrictEqual','_clearTTL','free','_maxConnections','inclusiveEnd','valuesForKey','registerHandler','job.status_message\x20must\x20be\x20string|null','onDo','_syncLock','cancelJob','http.listen:\x20host\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20a\x20non-empty\x20array\x20of\x20non-empty\x20strings','ENGINE_INVALID_TYPE','remoteAddress','debounceTimer','_waitNative','nextTurn','before\x20any\x20await\x20—\x20or\x20opt\x20into\x20useReadTransaction:\x27tolerant\x27\x20to\x20keep\x20reading\x20while\x20','materialize\x20them\x20(Array.from)\x20while\x20the\x20view\x20is\x20live.','job','loadedPath','_openEnvLazy','job\x20must\x20be\x20object','HIGH_FREQ_EVENTS','boundary\x20(a\x20pinned\x20read\x20txn\x20blocks\x20LMDB\x20free-page\x20reuse).\x20Do\x20all\x20consistent\x20reads\x20','Cannot\x20openEnv(\x22','engineType','concat','action','tag','mkdirSync','forceResync','6169527RdRYht','-worker','replaceMember','catch','_run','_logEnv','_processorStops','ftsQuery','processor:\x20module\x20\x27','header','~processes:cmd','_ensureEnv','handleDurableClock','$streamId','registerHandler:\x20fn\x20must\x20be\x20a\x20function','Missing\x20plugin:\x20','Environment\x20\x22','getRunningEngine','offsetOf','number','SKIP','$exists','txn\x20ops\x20must\x20be\x20an\x20array','servers','_clockToChangeDb',':txnRange','_root','upload','nativeBinaryPath','holder','admission','__lock','library\x20(okdb\x20node-model\x202.0).\x20For\x20multi-process\x20HTTP\x20serving\x20use\x20the\x20okdb\x20','indexContent','storeGetHeadCount','no\x20write\x20has\x20landed.\x20Writes/commit\x20are\x20unaffected.','maxExtra','_dupArg','~ttl:key','allocUnsafeSlow','_callRows','exportJSON','FIELD_RESOLVER_PENDING','includeViolations','onDelete','_autoCompactTimer','item:pending','getOpenWarning','changeEncryptionKey','subscriptions-store:\x20open()\x20not\x20called','system','_seen','for','completeJob','spec','processorsParticipating','OKDBInvalidValueError','detachFeed','preparer\x20must\x20be\x20a\x20function','Unique\x20constraint\x20violated\x20on\x20','_registrations','_durableIndexerStats','feed:','sourceKey','pumpEnvSync','_subsV2','_defaultEnvObj','status','byLabel','entries','req','updateBucket','buildOwnRow','Error','system:type_drop','immediate','_listenAddr','VERSION_MISMATCH','ttlStats','pipelines','throw','ITEM_PENDING','_release','export','.\x20Add\x20a\x20license\x20that\x20includes\x20\x22','clearDone','STARTING','Transaction\x20already\x20closed','encoder','_settleRead','apiCall','nextExpiry','_makeIterator','tools','compact/repair\x20already\x20in\x20progress\x20for\x20this\x20environment','SYSTEM_CLOCK_CHANGE','clear','end','processorsStop','reg','return\x20fromCharCode(','durableMarkDelete','\x20=\x20source[position++]\x0a\x09\x09\x09else\x0a\x09\x09\x09\x09return\x20fromCharCode(','job.tags\x20must\x20be\x20array','fts:drop','find','max_tries','evict','writeBlob','_uid','REVERSE_INDEX','ms\x20mean=','listModels','queue:failed','_noChangelog','bus:drain','_rebuild','durableRetryDoc','\x22\x20requires\x20a\x20`handler`\x20function','_sweepInProgress','registerEnv','_isLoopbackIp','ITEM_REMOVE','state','ENGINE_DRIVER_ALREADY_REGISTERED','logCap','uninstall','process\x20options.admission\x20must\x20be\x20a\x20function','streamRead','http','failures','exclusiveStart','job_type.max_concurrency\x20must\x20be\x20int\x20>=\x201\x20or\x20null','cursor','__warned','_dedupeMax','SUB_ENV','writerStatus','setWake','callAsync','typeSubDbs','acquired','reducer','_subsV2Obj','getByPrefix','listTemplates','Feature\x20not\x20available\x20on\x20free\x20tier:\x20','_writer','_handlePoke','engine','_callPacked','okdb-node:\x20unknown\x20callback\x20id\x20','percentile',':index:','createWriteFacade','bucket.tokens\x20cannot\x20exceed\x20capacity','resetCursor','turnWaiters','.\x20The\x20active\x20license\x20does\x20not\x20enable\x20\x22','\x22\x20must\x20be\x20a\x20plain\x20object','sseClose','bootSyncedPipelines','loaded','there\x20is\x20no\x20`http`\x20option\x20—\x20the\x20HTTP\x20server\x20exists\x20only\x20when\x20db.http.listen(port)\x20is\x20called','logCap\x20must\x20be\x20null\x20or\x20integer\x20in\x20[','references','$where','~processes:desired','_write','_keepAlive','validateBlobIntegrity','job_type.payload_schema.enforce\x20must\x20be\x20boolean','pageSize','process','_license','scheduled','address','drainJobType','Use\x20module:{path,export}\x20alone,\x20or\x20handler:\x27<name>\x27\x20for\x20a\x20built-in.','storageStats','isOrchestrator','processor:resumed','sync:apply','_quantumGate','applyOps','runPoll','parse','bind','startClaimed','install','isOAuthEmailAllowed','_settleWaiters','_fail','disableAll','\x20log\x20entr','_handle','152xApOEm','ensure:\x20view\x20entry\x20missing\x20name\x20or\x20definition','_claimGated','importJSON','FOREIGN_KEY_DELETE_RESTRICTED','okdb-','_draining','listRefViolations','Type\x20\x27','OKDBVersionMismatchError','_assertOpen','~lock','ExtendedIterable','api','unregisterTarget','failJob','trim','unreg','_settleWrite','target','resolveField:\x20type\x20required','describeChunk','drives','taken','_settled','getEmbedderSchema','Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results','afterTurn','describeIndexes','functions','$near','_windowCbs','\x20(required\x20by\x20','storeEnvName','\x20│\x20','last','exportToStream','Embedder\x20factory\x20must\x20be\x20a\x20function','bucket.refill_every\x20must\x20be\x20int\x20>=\x200','type:drop','resolveField:\x20options.batch\x20must\x20be\x20a\x20function','engineStart','_envWide'];_0x273d=function(){return _0x1cd3bc;};return _0x273d();}var files,hasRequiredFiles;function requireFiles(){const _0x49f0ca=_0x5c70f8;if(hasRequiredFiles)return files;hasRequiredFiles=0x1;const _0x293589=require$$0,{Readable:_0x1f0080}=require$$1,{OKDBError:_0x1359b6,optionsArg:_0x1df2f5,invalidArgument:_0x399824}=requireErrors(),{RawDb:_0x3c4c24}=requireRawdb();async function _0x4be563(_0x3ae78c){const _0x44da65=_0x52a3;if(Buffer[_0x44da65(0x823)](_0x3ae78c))return _0x3ae78c;if(_0x3ae78c instanceof Uint8Array)return Buffer[_0x44da65(0x48d)](_0x3ae78c);if(typeof _0x3ae78c===_0x44da65(0x2b1))return Buffer[_0x44da65(0x48d)](_0x3ae78c);const _0x1727ee=[];for await(const _0x444867 of _0x3ae78c)_0x1727ee[_0x44da65(0x28d)](Buffer[_0x44da65(0x823)](_0x444867)?_0x444867:Buffer[_0x44da65(0x48d)](_0x444867));return Buffer[_0x44da65(0x6cf)](_0x1727ee);}class _0x6955f6{constructor(_0x2c62dc){const _0x1dac82=_0x52a3;this['env']=_0x2c62dc,this[_0x1dac82(0x61e)]=_0x2c62dc[_0x1dac82(0x61e)];}['_n'](_0x42a875,_0x1469fc,_0x5188eb=!![]){const _0x198f17=_0x52a3;return this[_0x198f17(0x61e)][_0x198f17(0x210)](_0x198f17(0x87a),this[_0x198f17(0x609)][_0x198f17(0x54b)],_0x42a875,_0x1469fc,_0x5188eb);}[_0x49f0ca(0x45c)](){return!![];}[_0x49f0ca(0x1f1)](){}async[_0x49f0ca(0x692)](){this['_n']('ensure',[]);}async[_0x49f0ca(0x454)](_0x37d807,_0x10bbdf){const _0x159ed1=_0x49f0ca;return this[_0x159ed1(0x61e)][_0x159ed1(0x7aa)](this['_n'](_0x159ed1(0x740),[_0x37d807,await _0x4be563(_0x10bbdf)]));}get[_0x49f0ca(0x517)](){const _0xcd154a=_0x49f0ca;return this['__blobStatusDb']||(this[_0xcd154a(0x27a)]=new _0x3c4c24(this[_0xcd154a(0x609)],_0xcd154a(0x7fb)));}async[_0x49f0ca(0x8e2)](_0xa0359e){const _0x220a58=_0x49f0ca;return this[_0x220a58(0x517)][_0x220a58(0x430)](_0xa0359e);}async[_0x49f0ca(0x6ef)](_0x26b744){const _0x2dec0e=_0x49f0ca,{id:_0x47e57a,stream:_0x2cfa47,mime:mime='application/octet-stream',path:_0x423b9d='',txn:txn=null}=_0x1df2f5(_0x26b744);if(!_0x47e57a)throw _0x399824('files.upload:\x20id',_0x2dec0e(0x828),_0x47e57a);if(!_0x2cfa47)throw _0x399824(_0x2dec0e(0x440),_0x2dec0e(0x7cb),_0x2cfa47);const _0x4c8153=await _0x4be563(_0x2cfa47);if(txn){const _0x20c31f=this['_n'](_0x2dec0e(0x87b),[_0x47e57a,_0x4c8153,{'mime':mime,'path':_0x423b9d}]);return txn['put']('~files',_0x47e57a,_0x20c31f[_0x2dec0e(0x304)]),txn[_0x2dec0e(0x6bc)](()=>this['_n'](_0x2dec0e(0x3aa),[_0x20c31f[_0x2dec0e(0x3ef)]])),txn[_0x2dec0e(0x1f5)](()=>this['_n']('txnUndone',[_0x20c31f['hook']])),_0x20c31f[_0x2dec0e(0x304)];}return this[_0x2dec0e(0x61e)][_0x2dec0e(0x7aa)](this['_n'](_0x2dec0e(0x6ef),[_0x47e57a,_0x4c8153,{'mime':mime,'path':_0x423b9d}]));}[_0x49f0ca(0x309)](_0x2e7cda){return this['_n']('get',[_0x2e7cda],![])??null;}['streamByHash'](_0x2d34a9){const _0x13dc92=_0x49f0ca,_0x4fe3ce=this[_0x13dc92(0x53c)](_0x2d34a9);if(!_0x293589[_0x13dc92(0x4b9)](_0x4fe3ce))throw Object[_0x13dc92(0x4cc)](new Error('Blob\x20not\x20found:\x20'+_0x2d34a9),{'status':0x194});return this[_0x13dc92(0x358)](_0x2d34a9);}['_blobStream'](_0x4fb7cc){const _0x276b4b=0x100*0x400,_0x17b07f=this;let _0x16e163=0x0;return new _0x1f0080({'highWaterMark':_0x276b4b,'read'(){const _0x28e7d3=_0x52a3;let _0x256a07;try{const _0x54c8d3=_0x17b07f['_n'](_0x28e7d3(0x450),[_0x4fb7cc,_0x16e163,_0x276b4b],![]);_0x256a07=Buffer['isBuffer'](_0x54c8d3)?_0x54c8d3:Buffer['from'](_0x54c8d3);}catch(_0x19bd49){this['destroy'](_0x19bd49);return;}_0x16e163+=_0x256a07[_0x28e7d3(0x68a)];if(_0x256a07[_0x28e7d3(0x68a)])this[_0x28e7d3(0x28d)](_0x256a07);if(_0x256a07[_0x28e7d3(0x68a)]<_0x276b4b)this[_0x28e7d3(0x28d)](null);}});}async[_0x49f0ca(0x228)](_0x48a8a1){const _0x54a49a=_0x49f0ca;return this[_0x54a49a(0x61e)][_0x54a49a(0x72d)](this['_n'](_0x54a49a(0x228),[_0x48a8a1],![]));}async['stream'](_0x357803){const _0x75c91c=_0x49f0ca,_0x483756=this[_0x75c91c(0x309)](_0x357803);if(!_0x483756)throw Object['assign'](new Error('File\x20not\x20found:\x20'+_0x357803),{'status':0x194});const _0x447fde=this[_0x75c91c(0x53c)](_0x483756[_0x75c91c(0x310)]);if(!_0x293589['existsSync'](_0x447fde))throw Object[_0x75c91c(0x4cc)](new Error(_0x75c91c(0x3da)+_0x357803),{'status':0x194});return{'stream':this['_blobStream'](_0x483756[_0x75c91c(0x310)]),'record':_0x483756};}async[_0x49f0ca(0x504)](_0x41ac13,_0x26e769){const _0x51e16b=_0x49f0ca,{txn:txn=null}=_0x1df2f5(_0x26e769);if(txn){const _0x2ed099=this['_n'](_0x51e16b(0x7fc),[_0x41ac13]);txn['remove']('~files',_0x41ac13),txn[_0x51e16b(0x6bc)](()=>this['_n'](_0x51e16b(0x3aa),[_0x2ed099[_0x51e16b(0x3ef)]])),txn[_0x51e16b(0x1f5)](()=>this['_n']('txnUndone',[_0x2ed099[_0x51e16b(0x3ef)]]));return;}return this['okdb'][_0x51e16b(0x7aa)](this['_n'](_0x51e16b(0x504),[_0x41ac13]));}async[_0x49f0ca(0x8d4)](_0xab8f5d,_0x5a662e={}){const _0x51989c=_0x49f0ca;return this['_n'](_0x51989c(0x8d4),[_0xab8f5d,_0x5a662e],![]);}[_0x49f0ca(0x678)](_0x35be34){const _0x212734=_0x49f0ca;return this['_n'](_0x212734(0x678),[_0x35be34],![]);}[_0x49f0ca(0x7ec)](){const _0x2d4599=_0x49f0ca;return this['_n'](_0x2d4599(0x7ec),[],![]);}['gcOrphanedBlobs'](_0x1d4c42){const {minAgeMs:_0x4ebb76}=_0x1df2f5(_0x1d4c42);return this['_n']('gcOrphanedBlobs',[_0x4ebb76??null]);}[_0x49f0ca(0x3d9)](_0x12da4c,_0x3a1faf){const _0x4ce43b=_0x49f0ca;if(typeof _0x3a1faf!==_0x4ce43b(0x640))throw new _0x1359b6(_0x4ce43b(0x53f),_0x4ce43b(0x5cb));const _0x567086=this['_n'](_0x4ce43b(0x3d9),[_0x12da4c,_0x3a1faf]);return()=>this['_n']('unregisterExtractor',[_0x567086]);}async[_0x49f0ca(0x6f5)](_0x14bc43){return _0x14bc43=_0x1df2f5(_0x14bc43),this['_n']('indexContent',[_0x14bc43]);}async[_0x49f0ca(0x464)](_0x10bdc2){const _0x32a0d2=_0x49f0ca,{peerIds:_0x182e87}=_0x1df2f5(_0x10bdc2);return this['_n'](_0x32a0d2(0x464),[_0x182e87??null]);}['_blobPath'](_0x2ca0a0){const _0x51b58e=_0x49f0ca;if(typeof _0x2ca0a0!==_0x51b58e(0x2b1))return require$$4['join'](this[_0x51b58e(0x31b)],_0x2ca0a0[_0x51b58e(0x1f7)](0x0,0x2),_0x2ca0a0[_0x51b58e(0x1f7)](0x2));return this['_n'](_0x51b58e(0x493),[_0x2ca0a0],![]);}get[_0x49f0ca(0x31b)](){const _0x28aaa9=_0x49f0ca;return this['_n'](_0x28aaa9(0x549),[],![]);}}return files={'OKDBFiles':_0x6955f6},files;}var engines,hasRequiredEngines;function requireEngines(){const _0x48b371=_0x5c70f8;if(hasRequiredEngines)return engines;hasRequiredEngines=0x1;const {OKDBError:_0x503949}=requireErrors(),_0x44bedd=requireBridge(),_0x8a0f9c=new Set([_0x48b371(0x4c1),_0x48b371(0x8ee),'vector-search',_0x48b371(0x590)]),_0x44df1c=new Set(['count','info',_0x48b371(0x647)]),_0x44dbf8=[_0x48b371(0x8d7),'patchConfig',_0x48b371(0x203),_0x48b371(0x859),_0x48b371(0x791),'stop',_0x48b371(0x752)],_0x35dc60={'embedder':new Set([_0x48b371(0x647),_0x48b371(0x8bd)])},_0x3b4f27=new Set([_0x48b371(0x291),_0x48b371(0x5fa),_0x48b371(0x4f4)]);class _0x5867cf{constructor(_0x3b30dc,_0x3a29b3,_0x30fe55,_0x45d552){const _0xc8d35a=_0x48b371;this[_0xc8d35a(0x3fc)]=_0x3b30dc,this[_0xc8d35a(0x82f)]=_0x3a29b3,this[_0xc8d35a(0x45d)]=_0x30fe55,this[_0xc8d35a(0x54b)]=_0x45d552,this['engineType']=_0x30fe55;}[_0x48b371(0x3d1)](){const _0x4a0fd6=_0x48b371;return this[_0x4a0fd6(0x3fc)]['_n'](_0x4a0fd6(0x7e2),[this[_0x4a0fd6(0x45d)],this[_0x4a0fd6(0x54b)]],![]);}get['doc'](){const _0x31b1fd=_0x48b371;return this[_0x31b1fd(0x3d1)]()[_0x31b1fd(0x50c)];}get[_0x48b371(0x4d7)](){const _0x442673=_0x48b371,_0x2e5bff=this[_0x442673(0x3d1)]()[_0x442673(0x4a3)];return _0x2e5bff?this[_0x442673(0x3fc)][_0x442673(0x61e)]['_envs'][_0x442673(0x309)](_0x2e5bff):undefined;}get[_0x48b371(0x7e4)](){const _0x37ee11=_0x48b371;return this[_0x37ee11(0x3d1)]()[_0x37ee11(0x7e4)];}get['enabled'](){const _0x2a4d7d=_0x48b371;return this[_0x2a4d7d(0x3d1)]()[_0x2a4d7d(0x63d)];}get[_0x48b371(0x374)](){const _0x5921c5=_0x48b371;return this[_0x5921c5(0x3d1)]()['isRunning'];}get[_0x48b371(0x717)](){const _0x51141c=_0x48b371;return this[_0x51141c(0x3d1)]()[_0x51141c(0x717)];}get['reason'](){const _0x747379=_0x48b371;return this[_0x747379(0x3d1)]()[_0x747379(0x589)];}get[_0x48b371(0x88d)](){const _0x1d7f95=_0x48b371,_0x532c7e=this[_0x1d7f95(0x3d1)]()[_0x1d7f95(0x88d)];return _0x532c7e?Object[_0x1d7f95(0x4cc)](new Error(_0x532c7e['message']),{'code':_0x532c7e[_0x1d7f95(0x50e)]}):null;}get['runtimeState'](){const _0x3232a2=_0x48b371;return this[_0x3232a2(0x3d1)]()[_0x3232a2(0x37d)];}get[_0x48b371(0x61f)](){const _0x45581d=_0x48b371;return this['_facade'][_0x45581d(0x4a7)][_0x45581d(0x309)](this[_0x45581d(0x45d)])??null;}get['api'](){const _0x34108f=_0x48b371;if(!this[_0x34108f(0x3d1)]()[_0x34108f(0x8e5)])return null;const _0x51f822=this;return new Proxy({},{'get'(_0x3f2764,_0x35f64b){const _0x5c4a9f=_0x34108f;if(typeof _0x35f64b===_0x5c4a9f(0x490)||_0x35f64b===_0x5c4a9f(0x801))return undefined;if(_0x35dc60[_0x51f822[_0x5c4a9f(0x45d)]]&&_0x35dc60[_0x51f822[_0x5c4a9f(0x45d)]][_0x5c4a9f(0x571)](_0x35f64b))return _0x51f822[_0x5c4a9f(0x3fc)]['_n']('apiCall',[_0x51f822[_0x5c4a9f(0x45d)],_0x51f822['name'],_0x35f64b,[]],![])[_0x5c4a9f(0x2ef)];if(_0x51f822['type']===_0x5c4a9f(0x8ee)&&_0x35f64b==='flush')return async(_0x4fb1ea={})=>{const _0x1eacd2=_0x5c4a9f,_0x1ec828=(_0x1933c1,..._0x589161)=>_0x51f822[_0x1eacd2(0x3fc)]['_n'](_0x1eacd2(0x72e),[_0x51f822[_0x1eacd2(0x45d)],_0x51f822[_0x1eacd2(0x54b)],_0x1933c1,_0x589161],!![])[_0x1eacd2(0x2ef)],_0x468188=_0x1ec828(_0x1eacd2(0x656),_0x4fb1ea??{}),_0x3276c6=Date[_0x1eacd2(0x8cc)]();for(;;){const _0xd21dbc=await _0x51f822[_0x1eacd2(0x3fc)][_0x1eacd2(0x61e)][_0x1eacd2(0x7d6)](()=>_0x1ec828(_0x1eacd2(0x20f)));if(_0xd21dbc[_0x1eacd2(0x759)]>=_0xd21dbc[_0x1eacd2(0x56d)])return;Date[_0x1eacd2(0x8cc)]()-_0x3276c6>=_0x468188&&_0x1ec828(_0x1eacd2(0x1eb),_0x4fb1ea??{},_0xd21dbc),await new Promise(_0x374c18=>setTimeout(_0x374c18,0x3));}};return(..._0x440783)=>{const _0x3d7728=_0x5c4a9f,_0x1cc378=()=>_0x51f822[_0x3d7728(0x3fc)]['_n']('apiCall',[_0x51f822[_0x3d7728(0x45d)],_0x51f822[_0x3d7728(0x54b)],_0x35f64b,_0x440783],!![]),_0x42ee6f=_0x4dd522=>{const _0x2274a4=_0x3d7728;if(_0x4dd522&&_0x4dd522[_0x2274a4(0x41a)])throw new TypeError(_0x2274a4(0x3c2)+_0x35f64b+'\x27');return _0x4dd522[_0x2274a4(0x2ef)];};if(_0x8a0f9c['has'](_0x51f822[_0x3d7728(0x45d)])&&!_0x44df1c[_0x3d7728(0x571)](_0x35f64b)){const _0x2336e6=_0x51f822[_0x3d7728(0x3fc)][_0x3d7728(0x61e)];return _0x2336e6[_0x3d7728(0x302)](()=>_0x2336e6[_0x3d7728(0x7d6)](_0x1cc378))[_0x3d7728(0x801)](_0x42ee6f);}if(_0x3b4f27[_0x3d7728(0x571)](_0x51f822[_0x3d7728(0x45d)]))try{return Promise['resolve'](_0x42ee6f(_0x1cc378()));}catch(_0xc06978){return Promise[_0x3d7728(0x4b2)](_0xc06978);}return _0x42ee6f(_0x1cc378());};}});}async[_0x48b371(0x3bf)](_0x543076={}){const _0x1cf537=_0x48b371;return await this[_0x1cf537(0x3fc)]['_nm'](_0x1cf537(0x3bf),[this[_0x1cf537(0x45d)],this[_0x1cf537(0x54b)],_0x543076]),this;}async[_0x48b371(0x45c)](){const _0x5572ed=_0x48b371;await this[_0x5572ed(0x3fc)][_0x5572ed(0x52c)](_0x5572ed(0x7c1),[this[_0x5572ed(0x45d)],this['name']]);}async['stop'](_0x5d46da={}){const _0x4bbdca=_0x48b371;await this[_0x4bbdca(0x3fc)][_0x4bbdca(0x52c)](_0x4bbdca(0x3c9),[this[_0x4bbdca(0x45d)],this[_0x4bbdca(0x54b)],_0x5d46da]);}async[_0x48b371(0x7e5)](_0x2d153d={}){const _0x1dc25a=_0x48b371;return await this[_0x1dc25a(0x3fc)][_0x1dc25a(0x52c)]('patchDeclaration',[this['type'],this[_0x1dc25a(0x54b)],_0x2d153d]),this;}async[_0x48b371(0x752)](){const _0x53d8a9=_0x48b371;await this[_0x53d8a9(0x3fc)][_0x53d8a9(0x52c)](_0x53d8a9(0x3d8),[this[_0x53d8a9(0x45d)],this[_0x53d8a9(0x54b)]]);}}class _0x51587e{constructor(_0x3c8449,_0x435fb9=null,_0x379ba4=null){const _0x5ab28f=_0x48b371;this[_0x5ab28f(0x61e)]=_0x3c8449,this[_0x5ab28f(0x4eb)]=_0x435fb9,this[_0x5ab28f(0x788)]=_0x435fb9===null,this[_0x5ab28f(0x6ee)]=_0x379ba4||this,this[_0x5ab28f(0x4a7)]=this[_0x5ab28f(0x6ee)]===this?_0x2e72b2(this):this['_root'][_0x5ab28f(0x4a7)],this[_0x5ab28f(0x536)]=new Map();}['_n'](_0x36f394,_0x5b4bb0,_0x496dac=!![]){const _0x7584a6=_0x48b371;return this[_0x7584a6(0x61e)][_0x7584a6(0x210)](_0x7584a6(0x655),this['envName'],_0x36f394,_0x5b4bb0,_0x496dac);}['_nm'](_0x51698c,_0x4e9d83){const _0x27ec6d=_0x48b371;return this['okdb']['_callMacro'](_0x27ec6d(0x655),this[_0x27ec6d(0x4eb)],_0x51698c,_0x4e9d83,!![]);}get[_0x48b371(0x609)](){const _0x286d5b=_0x48b371;return this[_0x286d5b(0x4eb)]?this[_0x286d5b(0x61e)][_0x286d5b(0x609)](this[_0x286d5b(0x4eb)]):null;}['_wrap'](_0x5b933c){const _0x276aa0=_0x48b371;if(!_0x5b933c)return null;let _0x1047b4=this[_0x276aa0(0x536)]['get'](_0x5b933c[_0x276aa0(0x82f)]);return!_0x1047b4&&(_0x1047b4=new _0x5867cf(this,_0x5b933c['key'],_0x5b933c[_0x276aa0(0x45d)],_0x5b933c[_0x276aa0(0x54b)]),this['_handles'][_0x276aa0(0x63f)](_0x5b933c[_0x276aa0(0x82f)],_0x1047b4)),_0x1047b4;}[_0x48b371(0x27c)](_0x30cf4d,_0x22c965){const _0x15ab14=_0x48b371;if(!_0x30cf4d||typeof _0x30cf4d!=='string')throw new _0x503949(_0x15ab14(0x8bb),_0x15ab14(0x6c0),{'type':_0x30cf4d});if(!_0x22c965||typeof _0x22c965!==_0x15ab14(0x559))throw new _0x503949('Engine\x20driver\x20for\x20\x22'+_0x30cf4d+_0x15ab14(0x773),_0x15ab14(0x847),{'type':_0x30cf4d});if(typeof _0x22c965[_0x15ab14(0x45c)]!==_0x15ab14(0x640))throw new _0x503949('Engine\x20driver\x20for\x20\x22'+_0x30cf4d+_0x15ab14(0x27b),_0x15ab14(0x59b),{'type':_0x30cf4d});const _0xfee335=this[_0x15ab14(0x6ee)];if(_0xfee335[_0x15ab14(0x4a7)]['has'](_0x30cf4d))throw new _0x503949(_0x15ab14(0x5cf)+_0x30cf4d+'\x22',_0x15ab14(0x750),{'type':_0x30cf4d});const _0x352c9a=_0x44bedd[_0x15ab14(0x7cf)](_0x22c965,this[_0x15ab14(0x61e)]),_0x372264=_0x44dbf8[_0x15ab14(0x4e1)](_0xc401e9=>typeof _0x22c965[_0xc401e9]===_0x15ab14(0x640)),_0x43e328=_0x22c965['docs']&&typeof _0x22c965[_0x15ab14(0x3c6)]===_0x15ab14(0x559)?_0x22c965['docs']:{};this['okdb']['_call'](_0x15ab14(0x655),null,_0x15ab14(0x27c),[_0x30cf4d,{'$id':_0x352c9a,'has':_0x372264,'docs':_0x43e328}]),_0xfee335[_0x15ab14(0x4a7)]['_set'](_0x30cf4d,_0x22c965);}get[_0x48b371(0x620)](){const _0x760154=_0x48b371;return this['okdb'][_0x760154(0x210)]('engines',null,'orchestratorStarted',[],![]);}get['orchestrator'](){const _0x51c8e7=this;return{get '_started'(){const _0x10e46a=_0x52a3;return _0x51c8e7[_0x10e46a(0x620)];}};}[_0x48b371(0x66c)](_0x47629e){const _0x3651ed=_0x48b371;if(!_0x47629e||typeof _0x47629e!==_0x3651ed(0x559))throw new _0x503949(_0x3651ed(0x7d1),_0x3651ed(0x357));if(!_0x47629e['id']||typeof _0x47629e['id']!==_0x3651ed(0x2b1))throw new _0x503949(_0x3651ed(0x514),'ENGINE_INVALID_TEMPLATE');if(![_0x3651ed(0x769),_0x3651ed(0x234)][_0x3651ed(0x495)](_0x47629e['kind']))throw new _0x503949(_0x3651ed(0x691)+_0x47629e['id'],_0x3651ed(0x357));if(typeof _0x47629e[_0x3651ed(0x624)]!==_0x3651ed(0x640))throw new _0x503949(_0x3651ed(0x3ed)+_0x47629e['id'],'ENGINE_INVALID_TEMPLATE');const _0x3037ae=this['okdb'],_0x336770=typeof _0x47629e['inputSchema']==='function';return this['_n'](_0x3651ed(0x66c),[{'id':_0x47629e['id'],'kind':_0x47629e[_0x3651ed(0x2a7)],'family':_0x47629e[_0x3651ed(0x21f)]??null,'engineType':_0x47629e[_0x3651ed(0x6ce)]??null,'pipelineFamily':_0x47629e['pipelineFamily']??null,'recommended':_0x47629e[_0x3651ed(0x31f)]===!![],'summary':_0x47629e[_0x3651ed(0x8d3)]??null,'description':_0x47629e[_0x3651ed(0x2e0)]??null,'inputSchema':_0x336770?null:_0x47629e[_0x3651ed(0x316)]??null,'inputSchemaFn':_0x336770?()=>_0x47629e[_0x3651ed(0x316)](_0x3037ae):null,'defaults':_0x47629e[_0x3651ed(0x2d1)]??null,'notes':Array[_0x3651ed(0x439)](_0x47629e['notes'])?_0x47629e[_0x3651ed(0x7ef)]:[],'links':Array[_0x3651ed(0x439)](_0x47629e[_0x3651ed(0x2dc)])?_0x47629e['links']:[],'build':(_0x3ee612,_0x4d89cb)=>_0x47629e[_0x3651ed(0x624)](_0x3ee612??{},{'okdb':_0x3037ae,'envName':_0x4d89cb??null})}],![]);}[_0x48b371(0x765)](_0x1ba1de){const _0x442d22=_0x48b371;return this['_n'](_0x442d22(0x765),[_0x1ba1de??null],![]);}[_0x48b371(0x314)](_0x4dc3c4){const _0x39d265=_0x48b371;return this['_n'](_0x39d265(0x314),[_0x4dc3c4],![]);}['previewTemplate'](_0x58cde5,_0x399e3a,_0x59d058){const _0xf7f2ae=_0x48b371;return this['_n'](_0xf7f2ae(0x86a),[_0x58cde5,_0x399e3a,_0x59d058??this[_0xf7f2ae(0x4eb)]],![]);}[_0x48b371(0x884)](){const _0x4b15cc=_0x48b371;return this['_n'](_0x4b15cc(0x884),[],![]);}async[_0x48b371(0x45c)](){const _0x4e2905=_0x48b371;return this[_0x4e2905(0x52c)](_0x4e2905(0x45c),[]);}async[_0x48b371(0x1f1)](){const _0x51403b=_0x48b371;return this[_0x51403b(0x52c)](_0x51403b(0x1f1),[]);}async['createEngine'](_0xa742c5,_0x536314,_0x16a5d1={},_0x2956c5={},_0x3955a3={}){const _0x4ffe9a=_0x48b371;return this['_wrap'](await this[_0x4ffe9a(0x52c)](_0x4ffe9a(0x1c4),[_0xa742c5,_0x536314,_0x16a5d1,_0x2956c5,_0x3955a3]));}async[_0x48b371(0x814)](_0x3ba833,_0x1aadf1,_0x4cbc0f={},_0x1c8c54={},_0x3fa865={}){const _0x3b43d1=_0x48b371;return this['_wrap'](await this[_0x3b43d1(0x52c)]('createAndStartEngine',[_0x3ba833,_0x1aadf1,_0x4cbc0f,_0x1c8c54,_0x3fa865]));}[_0x48b371(0x87e)](_0x141b37,_0x2a33b2){const _0x2109eb=_0x48b371;return this[_0x2109eb(0x215)](this['_n'](_0x2109eb(0x87e),[_0x141b37,_0x2a33b2],![]));}[_0x48b371(0x6e5)](_0x5ed788,_0x4f8d4b){const _0x89648a=_0x48b371;return this[_0x89648a(0x215)](this['_n']('getRunningEngine',[_0x5ed788,_0x4f8d4b],![]));}[_0x48b371(0x47e)](_0x29dc2c){const _0x427157=_0x48b371;return this['_n']('list',[_0x29dc2c??null],![])['map'](_0x51fdd8=>this[_0x427157(0x215)](_0x51fdd8));}async[_0x48b371(0x388)](_0x391e9c,_0x1df6ac){const _0x165a99=_0x48b371;return this[_0x165a99(0x215)](await this[_0x165a99(0x52c)](_0x165a99(0x388),[_0x391e9c,_0x1df6ac]));}async[_0x48b371(0x5eb)](_0x21a2e6,_0x20a5ee){const _0x11fd62=_0x48b371;return this[_0x11fd62(0x536)][_0x11fd62(0x2cb)](_0x21a2e6+':'+_0x20a5ee),this[_0x11fd62(0x52c)]('uninstallEngine',[_0x21a2e6,_0x20a5ee]);}async[_0x48b371(0x465)](_0x12b753){const _0x311da3=_0x48b371;return this[_0x311da3(0x52c)](_0x311da3(0x465),[_0x12b753]);}async[_0x48b371(0x85a)](){const _0x47a36e=_0x48b371;return this['_nm'](_0x47a36e(0x85a),[]);}}function _0x2e72b2(_0x3fc1aa){const _0x2c7e68=_0x48b371,_0x3f7f2d=new Map();return{'has':_0x7d32a9=>_0x3f7f2d[_0x2c7e68(0x571)](_0x7d32a9)||_0x3fc1aa['okdb']['_call'](_0x2c7e68(0x655),null,'hasDriver',[_0x7d32a9],![]),'get':_0x5ea1af=>_0x3f7f2d[_0x2c7e68(0x309)](_0x5ea1af),'set':()=>{const _0x49ee15=_0x2c7e68;throw new _0x503949('use\x20engines.registerDriver()',_0x49ee15(0x5cb));},'_set':(_0x321616,_0x236f08)=>_0x3f7f2d[_0x2c7e68(0x63f)](_0x321616,_0x236f08),'keys':()=>_0x3f7f2d[_0x2c7e68(0x4ac)](),'entries':()=>_0x3f7f2d['entries'](),'values':()=>_0x3f7f2d[_0x2c7e68(0x5d0)](),get 'size'(){const _0x227949=_0x2c7e68;return _0x3f7f2d[_0x227949(0x8d2)];},[Symbol['iterator']]:()=>_0x3f7f2d[Symbol[_0x2c7e68(0x344)]]()};}class _0x163d0d{constructor(_0x49db17,_0x5c7012=null){const _0x4910ae=_0x48b371;this[_0x4910ae(0x61e)]=_0x49db17,this[_0x4910ae(0x4eb)]=_0x5c7012;}['_n'](_0x310d7d,_0x4151b4,_0x134664=!![]){const _0x46ce68=_0x48b371;return this['okdb'][_0x46ce68(0x210)](_0x46ce68(0x723),this['envName'],_0x310d7d,_0x4151b4,_0x134664);}[_0x48b371(0x52c)](_0x383c05,_0x5df928){const _0x3a77b0=_0x48b371;return this['okdb']['_callMacro'](_0x3a77b0(0x723),this[_0x3a77b0(0x4eb)],_0x383c05,_0x5df928,!![]);}get[_0x48b371(0x377)](){const _0x16d2df=_0x48b371;return this[_0x16d2df(0x4eb)]===null;}async[_0x48b371(0x2ea)](_0xd9328a){const _0x378a29=_0x48b371;return this['_n'](_0x378a29(0x2ea),[_0xd9328a]);}async['get'](_0x3471d9,_0x3e9ef5){const _0x23f2ba=_0x48b371;return this['_n'](_0x23f2ba(0x309),[_0x3471d9,_0x3e9ef5??null],![]);}async['getRecord'](_0x5054f1,_0x26ed95){return this['_n']('getRecord',[_0x5054f1,_0x26ed95??null],![]);}async[_0x48b371(0x47e)](_0x3f0626){const _0xfa8a5c=_0x48b371;return this['_n'](_0xfa8a5c(0x47e),[_0x3f0626??null],![]);}async[_0x48b371(0x4ff)](_0x32107e={}){const _0x1b61f2=_0x48b371;return this['_n']('listRecords',[_0x32107e?.[_0x1b61f2(0x4eb)]??null],![]);}[_0x48b371(0x8d7)](_0x4a4d42,_0x3ee6ba){return this['_n']('validate',[_0x4a4d42,_0x3ee6ba??null],![]);}async[_0x48b371(0x67b)](_0x56c937){const _0x180ac1=_0x48b371;return this[_0x180ac1(0x52c)](_0x180ac1(0x67b),[_0x56c937]);}async[_0x48b371(0x5b4)](_0x5a19c2,_0x4fee67){const _0x4b3ecb=_0x48b371;return this[_0x4b3ecb(0x52c)](_0x4b3ecb(0x5b4),[_0x5a19c2,_0x4fee67]);}async[_0x48b371(0x1f1)](_0x282766){const _0x2e1a8d=_0x48b371;return this[_0x2e1a8d(0x52c)](_0x2e1a8d(0x1f1),[_0x282766]);}async[_0x48b371(0x7b0)](_0x2c4060){const _0x2d01db=_0x48b371;if(!_0x2c4060||typeof _0x2c4060!==_0x2d01db(0x559)||!_0x2c4060[_0x2d01db(0x54b)]||!_0x2c4060['engines'])return _0x2c4060;for(let _0x5ad0d6=0x0;_0x5ad0d6<0x3;_0x5ad0d6++)await new Promise(_0xfc174d=>setImmediate(_0xfc174d));try{const _0x2d799b=this[_0x2d01db(0x4eb)]!==null?await this[_0x2d01db(0x309)](_0x2c4060[_0x2d01db(0x54b)]):_0x2c4060[_0x2d01db(0x609)]?await this[_0x2d01db(0x309)](_0x2c4060[_0x2d01db(0x609)],_0x2c4060['name']):null;return _0x2d799b||_0x2c4060;}catch{return _0x2c4060;}}async[_0x48b371(0x45c)](_0x1e350e){const _0x44d997=_0x48b371;return this['_settled'](await this[_0x44d997(0x52c)](_0x44d997(0x45c),[_0x1e350e]));}async[_0x48b371(0x388)](_0x53b094){const _0x5eb1e4=_0x48b371;return this[_0x5eb1e4(0x7b0)](await this[_0x5eb1e4(0x52c)](_0x5eb1e4(0x388),[_0x53b094]));}async[_0x48b371(0x8da)](_0x1484ab){const _0x43ca9e=_0x48b371;return this[_0x43ca9e(0x52c)](_0x43ca9e(0x8da),[_0x1484ab]);}async[_0x48b371(0x6d6)](_0x2bafdf,_0x2bca1f,_0x235d10){const _0x3c6c5c=_0x48b371;return this['_nm'](_0x3c6c5c(0x6d6),[_0x2bafdf,_0x2bca1f,_0x235d10]);}async[_0x48b371(0x504)](_0xa4cc7){const _0x1b256a=_0x48b371;return this[_0x1b256a(0x52c)](_0x1b256a(0x504),[_0xa4cc7]);}async['stopAll'](){const _0x24311e=_0x48b371;return this[_0x24311e(0x52c)](_0x24311e(0x560),[]);}async[_0x48b371(0x775)](){const _0x472d1f=_0x48b371;return this['_nm'](_0x472d1f(0x775),[]);}[_0x48b371(0x2b8)](_0x3403ad,_0x31763d){const _0xb1b092=_0x48b371;return this['_n'](_0xb1b092(0x2b8),[_0x3403ad,_0x31763d],![]);}}return engines={'OKDBEngines':_0x51587e,'OKDBPipelines':_0x163d0d,'OKDBEngineHandle':_0x5867cf},engines;}var functions,hasRequiredFunctions;function requireFunctions(){const _0x26722c=_0x5c70f8;if(hasRequiredFunctions)return functions;hasRequiredFunctions=0x1;const {optionsArg:_0x208b79}=requireErrors(),_0x1e0275=Number(process.env.OKDB_FN_POLL_MS)||0x14;class _0x35cf84{constructor(_0x18aef5,_0x19e6ff=null){const _0x25c171=_0x52a3;this[_0x25c171(0x61e)]=_0x18aef5,this['envName']=_0x19e6ff??_0x25c171(0x5b5);}get[_0x26722c(0x609)](){const _0xe55d04=_0x26722c;return this['okdb'][_0xe55d04(0x612)][_0xe55d04(0x309)](this[_0xe55d04(0x4eb)])??null;}['_n'](_0x2c9b72,_0xada4b5=[],_0x69c0ba=!![]){const _0x388d01=_0x26722c;try{return this[_0x388d01(0x61e)][_0x388d01(0x210)](_0x388d01(0x7b5),this['envName'],_0x2c9b72,_0xada4b5,_0x69c0ba);}catch(_0x4c0558){throw _0x5d79c8(_0x4c0558);}}async[_0x26722c(0x52c)](_0x2af5b8,_0x540aae=[]){const _0x1ffad8=_0x26722c;try{return await this[_0x1ffad8(0x61e)][_0x1ffad8(0x661)](_0x1ffad8(0x7b5),this['envName'],_0x2af5b8,_0x540aae,!![]);}catch(_0x4c9246){throw _0x5d79c8(_0x4c9246);}}async[_0x26722c(0x47e)](){const _0x221d75=_0x26722c;return this['_n'](_0x221d75(0x47e),[],![]);}async['get'](_0x3b4ddd){const _0x55c322=_0x26722c;return this['_n'](_0x55c322(0x309),[_0x3b4ddd],![]);}async[_0x26722c(0x67b)](_0x1da80c){const _0x3e0804=_0x26722c;return this['_n'](_0x3e0804(0x67b),[_0x1da80c]);}async['update'](_0x1aded9,_0x10e9e0={}){const _0x3f26b0=_0x26722c;return this['_n'](_0x3f26b0(0x5b4),[_0x1aded9,_0x10e9e0]);}async[_0x26722c(0x504)](_0x3b3ed1){const _0x1bfcc0=_0x26722c;return this['_n'](_0x1bfcc0(0x504),[_0x3b3ed1]);}async[_0x26722c(0x473)](_0x2d9c4a){const _0x1114eb=_0x26722c,{functionName:functionName=null}=_0x208b79(_0x2d9c4a);return this['_n'](_0x1114eb(0x473),[{'functionName':functionName}],![]);}async[_0x26722c(0x5e1)](_0x2356bd){const _0x3ec345=_0x26722c;return this['_n'](_0x3ec345(0x5e1),[_0x2356bd],![]);}async['recordRun'](_0x16caf0){const _0x198f2d=_0x26722c;return _0x16caf0=_0x208b79(_0x16caf0,_0x198f2d(0x84c)),this['_n']('recordRun',[_0x16caf0]);}async['run'](_0x219549,_0x4a00ae=null,_0x4492c5={}){const _0x4507a1=_0x26722c,_0x273be0={..._0x4492c5},_0x41869f=_0x273be0[_0x4507a1(0x411)];if(_0x41869f)_0x273be0['aborted']=!!_0x41869f['aborted'];delete _0x273be0[_0x4507a1(0x411)];const _0x512f36=await this[_0x4507a1(0x52c)]('runStart',[_0x219549,_0x4a00ae,_0x273be0]),_0x467479=this['okdb'],_0x2aced4=()=>_0x467479[_0x4507a1(0x5fd)][_0x4507a1(0x2c2)]();if(_0x41869f&&typeof _0x41869f['addEventListener']===_0x4507a1(0x640))_0x41869f['addEventListener']('abort',_0x2aced4,{'once':!![]});let _0x5cef06=![];try{for(;;){const _0x456973=_0x467479[_0x4507a1(0x5fd)][_0x4507a1(0x6c4)](_0x1e0275);let _0xacb18d;try{_0xacb18d=await _0x467479[_0x4507a1(0x661)]('functions',this[_0x4507a1(0x4eb)],_0x4507a1(0x78d),[_0x512f36,!!_0x41869f?.['aborted']],![],![]);}catch(_0x41d4b7){_0x5cef06=!![];throw _0x5d79c8(_0x41d4b7);}if(!_0xacb18d||_0xacb18d[_0x4507a1(0x7fe)]!==!![])return _0x5cef06=!![],_0x467479['_pumper'][_0x4507a1(0x2c2)](),_0xacb18d;if(_0xacb18d['progressed'])_0x467479[_0x4507a1(0x5fd)]['wake']();await _0x456973;}}finally{if(_0x41869f&&typeof _0x41869f[_0x4507a1(0x527)]===_0x4507a1(0x640))_0x41869f[_0x4507a1(0x527)]('abort',_0x2aced4);if(!_0x5cef06)try{_0x467479[_0x4507a1(0x210)](_0x4507a1(0x7b5),this[_0x4507a1(0x4eb)],_0x4507a1(0x899),[_0x512f36],![]);}catch{}}}async[_0x26722c(0x295)](_0x41affd={},_0x58203b=null,_0x292d74={}){const _0x5af68c=_0x26722c;return this[_0x5af68c(0x52c)](_0x5af68c(0x295),[_0x41affd,_0x58203b,_0x292d74]);}async[_0x26722c(0x1f1)](){}}function _0x5d79c8(_0x3fb22c){const _0x5c4e48=_0x26722c;if(_0x3fb22c&&_0x3fb22c['details']&&_0x3fb22c[_0x5c4e48(0x37e)][_0x5c4e48(0x404)])_0x3fb22c['_runRecord']=_0x3fb22c[_0x5c4e48(0x37e)][_0x5c4e48(0x404)];return _0x3fb22c;}return functions={'OKDBFunctions':_0x35cf84},functions;}var processor={'exports':{}},lock,hasRequiredLock;function requireLock(){const _0x7d7104=_0x5c70f8;if(hasRequiredLock)return lock;hasRequiredLock=0x1;const {optionsArg:_0xb024cc}=requireErrors();class _0x21d276{constructor(_0x49916c,_0x6e3383){const _0x14a601=_0x52a3;this[_0x14a601(0x431)]=_0x49916c,this[_0x14a601(0x418)]=_0x6e3383;}['_n'](_0x5ad877,_0x25e076=[]){const _0x3e4c79=_0x52a3;return this['_lock']['_n'](_0x5ad877,[this[_0x3e4c79(0x418)],..._0x25e076]);}[_0x7d7104(0x8e7)](){const _0x180b23=_0x7d7104;return this['_n'](_0x180b23(0x8e7));}get['acquiredAt'](){const _0x228351=_0x7d7104;return this['_n'](_0x228351(0x629));}[_0x7d7104(0x6f1)](){const _0x5de5e5=_0x7d7104;return this['_n'](_0x5de5e5(0x6f1));}['extend'](_0xf859f2){const _0x34ebb5=_0x7d7104;return this['_n'](_0x34ebb5(0x4f9),[_0xf859f2]);}async['release'](){const _0x26e8c3=_0x7d7104;return this['_n'](_0x26e8c3(0x49e));}}class _0x2c7dde{constructor(_0x162962,_0x29fbea,_0x4119a1,_0x1cfc6e){const _0x35057c=_0x7d7104,{ttlMs:ttlMs=0x7530,heartbeatMs:heartbeatMs=null}=_0xb024cc(_0x1cfc6e);this['okdb']=_0x162962,this[_0x35057c(0x845)]=_0x4119a1,this[_0x35057c(0x418)]=_0x162962[_0x35057c(0x210)](_0x35057c(0x555),_0x29fbea,_0x35057c(0x260),[_0x4119a1,ttlMs,heartbeatMs],![]),this[_0x35057c(0x4dd)]=_0x29fbea;}['_n'](_0x2570be,_0x27d58f=[]){const _0x5e0915=_0x7d7104;return this[_0x5e0915(0x61e)]['_call'](_0x5e0915(0x555),this[_0x5e0915(0x4dd)],_0x2570be,_0x27d58f,![]);}[_0x7d7104(0x28c)](_0x2f3d36){const _0xcddb7b=_0x7d7104;return this['_n']('key',[this[_0xcddb7b(0x418)],_0x2f3d36]);}async[_0x7d7104(0x462)](_0x1961c0,_0x25cabd={},_0x46dd98={}){const _0x222b5d=_0x7d7104,_0x49808e=this['_n'](_0x222b5d(0x462),[this[_0x222b5d(0x418)],_0x1961c0,_0x25cabd,_0x46dd98]);return{'acquired':_0x49808e[_0x222b5d(0x761)],'handle':_0x49808e[_0x222b5d(0x349)]==null?null:new _0x21d276(this,_0x49808e[_0x222b5d(0x349)]),'current':_0x49808e['current']};}[_0x7d7104(0x4ec)](_0x5d5857){const _0x5eb4b8=_0x7d7104;return this['_n'](_0x5eb4b8(0x4ec),[this[_0x5eb4b8(0x418)],_0x5d5857]);}[_0x7d7104(0x47e)](){const _0x5ead18=_0x7d7104;return this['_n']('list',[this[_0x5ead18(0x418)]]);}[_0x7d7104(0x5dd)](_0x88c300){const _0x34ac4b=_0x7d7104;return this['_n']('signalWant',[this[_0x34ac4b(0x418)],_0x88c300]);}[_0x7d7104(0x312)](_0x2b0e5a,_0x2c25d2=0x3e8){const _0x1a33d9=_0x7d7104;return this['_n']('isWanted',[this[_0x1a33d9(0x418)],_0x2b0e5a,_0x2c25d2]);}}return lock={'NativeLock':_0x2c7dde,'NativeLockHandle':_0x21d276},lock;}var hasRequiredProcessor;function requireProcessor(){const _0x3839e7=_0x5c70f8;if(hasRequiredProcessor)return processor[_0x3839e7(0x28e)];hasRequiredProcessor=0x1;const _0x1b63ef=requireBridge(),{RawDb:_0x3e7f70}=requireRawdb(),{NativeLock:_0x3d7e68}=requireLock();function _0x106cc7(_0x4ccb20){}class _0x552d4e{constructor(_0x2e5d3b){const _0x232cc1=_0x3839e7;this[_0x232cc1(0x609)]=_0x2e5d3b,this[_0x232cc1(0x61e)]=_0x2e5d3b;try{this['_n']('setLogSink',[(_0x48af38,_0x19336a)=>{const _0x2ae776=_0x232cc1,_0x8fc2e6=this[_0x2ae776(0x61e)]['log'],_0x55fa89=_0x8fc2e6?.[_0x48af38]??_0x8fc2e6?.['info'];if(typeof _0x55fa89===_0x2ae776(0x640))_0x55fa89[_0x2ae776(0x4d1)](_0x8fc2e6,_0x19336a);}],![]);}catch{}}['_n'](_0x25428e,_0x4c1733,_0x7e51bf=!![]){const _0x53d446=_0x3839e7;return this[_0x53d446(0x609)][_0x53d446(0x61e)][_0x53d446(0x210)](_0x53d446(0x614),this[_0x53d446(0x609)][_0x53d446(0x54b)],_0x25428e,_0x4c1733,_0x7e51bf);}['register'](_0x34c69e,_0x3a26de={}){const _0x36e964=_0x3839e7,_0x12d584={..._0x3a26de};if(typeof _0x12d584[_0x36e964(0x3ea)]==='function'&&_0x12d584[_0x36e964(0x882)]!=null)throw new Error(_0x36e964(0x28a)+_0x36e964(0x786));if(typeof _0x12d584[_0x36e964(0x3ea)]==='string'&&_0x12d584[_0x36e964(0x882)]!=null)throw new Error(_0x36e964(0x3e3));if(_0x12d584[_0x36e964(0x882)]!=null){if(!_0x12d584[_0x36e964(0x882)]['path'])throw new Error(_0x36e964(0x1d3));const _0x3831ba=_0x12d584[_0x36e964(0x882)][_0x36e964(0x727)]??_0x12d584[_0x36e964(0x882)]['exportName']??_0x36e964(0x781),_0x1574c9=require[_0x36e964(0x22e)](_0x12d584[_0x36e964(0x882)][_0x36e964(0x500)]),_0x22d827=require(_0x1574c9),_0x1f5f13=_0x22d827[_0x3831ba]??_0x22d827[_0x36e964(0x2a6)]??_0x22d827;if(typeof _0x1f5f13!==_0x36e964(0x640))throw new Error(_0x36e964(0x6dc)+_0x12d584[_0x36e964(0x882)][_0x36e964(0x500)]+_0x36e964(0x1e8)+_0x3831ba+'\x27\x20is\x20not\x20a\x20function');this['env'][_0x36e964(0x61e)]['_staticCall'](_0x36e964(0x614),'registerModule',[_0x1574c9,_0x3831ba,_0x1f5f13]),_0x12d584[_0x36e964(0x882)]={'path':_0x1574c9,'export':_0x3831ba};}if(_0x12d584[_0x36e964(0x484)]!=null){if(typeof _0x12d584[_0x36e964(0x484)][_0x36e964(0x882)]!=='string')throw new Error('processor:\x20quantum.module\x20must\x20be\x20a\x20string');const _0x4ffe30=require[_0x36e964(0x22e)](_0x12d584[_0x36e964(0x484)][_0x36e964(0x882)]),_0x49f998=require(_0x4ffe30),_0x644c6e=_0x12d584[_0x36e964(0x484)]['exportName'],_0x259833=_0x644c6e?_0x49f998[_0x644c6e]:_0x49f998[_0x36e964(0x2a6)]??_0x49f998;if(typeof _0x259833===_0x36e964(0x640)){const _0x4faf45=_0x644c6e?_0x12d584[_0x36e964(0x484)][_0x36e964(0x882)]+'#'+_0x644c6e:_0x12d584[_0x36e964(0x484)][_0x36e964(0x882)];this[_0x36e964(0x609)][_0x36e964(0x61e)]['_staticCall'](_0x36e964(0x614),_0x36e964(0x7c5),[_0x4faf45,_0x259833]);}_0x12d584[_0x36e964(0x484)]={..._0x12d584[_0x36e964(0x484)]};}_0x12d584[_0x36e964(0x690)]!=null&&typeof _0x12d584[_0x36e964(0x690)]===_0x36e964(0x559)&&(_0x12d584['payload']={'$payload':_0x1b63ef['storePayload'](_0x12d584[_0x36e964(0x690)],this[_0x36e964(0x609)]['okdb'])});if(_0x12d584['rebuild']!=null&&typeof _0x12d584[_0x36e964(0x8da)]!==_0x36e964(0x640))throw new Error(_0x36e964(0x89e));const _0x10eaf1=this['_n'](_0x36e964(0x811),[_0x34c69e??null,_0x12d584]);return this[_0x36e964(0x4c7)](_0x10eaf1['id'],_0x10eaf1[_0x36e964(0x324)]);}[_0x3839e7(0x4c7)](_0x2bd549,_0x2781b3){const _0x30bc30=_0x3839e7,_0x591846=this,_0x1d6f53=async()=>{const _0x390102=_0x52a3;_0x591846['_n'](_0x390102(0x827),[_0x2bd549]);};return _0x1d6f53['id']=_0x2bd549,_0x1d6f53[_0x30bc30(0x324)]=_0x2781b3,_0x1d6f53[_0x30bc30(0x354)]=()=>_0x2781b3?_0x591846['_n'](_0x30bc30(0x6e0),[_0x2bd549],![]):0x0,_0x1d6f53[_0x30bc30(0x717)]=()=>_0x591846[_0x30bc30(0x309)](_0x2bd549),_0x1d6f53[_0x30bc30(0x575)]=_0x1d6f53[_0x30bc30(0x717)],_0x1d6f53[_0x30bc30(0x3b0)]=()=>_0x591846[_0x30bc30(0x3b0)](_0x2bd549),_0x1d6f53[_0x30bc30(0x2ba)]=()=>_0x591846[_0x30bc30(0x2ba)](_0x2bd549),_0x1d6f53[_0x30bc30(0x2b5)]=()=>_0x591846[_0x30bc30(0x2b5)](_0x2bd549),_0x1d6f53['retry']=()=>_0x591846['retry'](_0x2bd549),_0x1d6f53['awaitIdle']=_0x2b0a6f=>_0x591846[_0x30bc30(0x8bf)](_0x2bd549,_0x2b0a6f),_0x1d6f53;}get['_stops'](){const _0x352018=_0x3839e7;try{return this['_n'](_0x352018(0x47e),[],![])[_0x352018(0x35e)](_0x53adb2=>({'id':_0x53adb2['id']}));}catch{return[];}}async[_0x3839e7(0x3f7)](_0x111ed4){const _0x3485f0=_0x3839e7;return new Set(this['_n'](_0x3485f0(0x3f7),[]));}[_0x3839e7(0x510)](_0x4f455d){const _0x1b1d5f=_0x3839e7;return this['_n'](_0x1b1d5f(0x510),[[..._0x4f455d??[]]]);}get[_0x3839e7(0x7c2)](){const _0x16305a=_0x3839e7;return new Set(this['_n']('list',[],![])['filter'](_0xb03e9a=>_0xb03e9a['type']==null)[_0x16305a(0x35e)](_0x401609=>_0x401609['id']));}['_ensureDbs'](){}get[_0x3839e7(0x431)](){const _0x102cd1=_0x3839e7;if(!this[_0x102cd1(0x6f3)]){const _0x570459=new _0x3d7e68(this['env']['okdb'],this[_0x102cd1(0x609)][_0x102cd1(0x54b)],_0x102cd1(0x614)),_0x4bd148=this['env'];_0x570459[_0x102cd1(0x3e6)]=()=>new _0x3e7f70(_0x4bd148,_0x102cd1(0x7a3)),this[_0x102cd1(0x6f3)]=_0x570459;}return this[_0x102cd1(0x6f3)];}[_0x3839e7(0x794)](_0x3a1309,_0x27e606){const _0x4f6d0d=_0x3839e7;return this['_n'](_0x4f6d0d(0x3e7),[typeof _0x3a1309===_0x4f6d0d(0x2b1)?_0x3a1309:_0x3a1309['id'],_0x27e606?.[_0x4f6d0d(0x211)]??String(_0x27e606??'')]);}get[_0x3839e7(0x43c)](){const _0x569c17=_0x3839e7;return this[_0x569c17(0x5bb)]||(this[_0x569c17(0x5bb)]=new _0x3e7f70(this['env'],'~proc:state'));}get[_0x3839e7(0x710)](){const _0x25ac58=_0x3839e7,_0x19baac=this,_0x4fce48=_0x255375=>{const _0xda6ae8=_0x52a3,_0x215036=()=>_0x19baac['_n'](_0xda6ae8(0x85c),[_0x255375],![]);if(!_0x215036())return undefined;const _0x51c857=_0x269bd5=>()=>_0x215036()?.[_0x269bd5],_0xfdd5a2={'id':_0x255375},_0x8203ce=(_0x445359,_0x9a8f08,_0x142302)=>Object[_0xda6ae8(0x1fd)](_0xfdd5a2,_0x445359,{'get':_0x9a8f08,'set':_0x142302,'enumerable':!![],'configurable':!![]});return _0x8203ce('state',_0x51c857(_0xda6ae8(0x74f))),_0x8203ce(_0xda6ae8(0x5a9),_0x51c857('mode')),_0x8203ce(_0xda6ae8(0x8c6),_0x51c857(_0xda6ae8(0x8c6))),_0x8203ce(_0xda6ae8(0x4c8),_0x51c857(_0xda6ae8(0x4c8)),_0xd88cd6=>_0x19baac['_n'](_0xda6ae8(0x2d4),[_0x255375,_0xd88cd6])),_0x8203ce(_0xda6ae8(0x324),_0x51c857('cursorKey')),_0x8203ce(_0xda6ae8(0x79a),_0x51c857(_0xda6ae8(0x43e)),_0x616456=>_0x19baac['_n'](_0xda6ae8(0x578),[_0x255375,!!_0x616456])),_0x8203ce(_0xda6ae8(0x30f),_0x51c857(_0xda6ae8(0x208))),_0x8203ce('flushQuantum',_0x51c857(_0xda6ae8(0x4a6))),_0x8203ce(_0xda6ae8(0x1f6),_0x51c857(_0xda6ae8(0x1f6))),_0x8203ce(_0xda6ae8(0x829),_0x51c857(_0xda6ae8(0x23e)),_0x1767d3=>_0x19baac['_n']('setModeApplied',[_0x255375,_0x1767d3])),_0x8203ce(_0xda6ae8(0x447),()=>_0x19baac[_0xda6ae8(0x309)](_0x255375)?.['meta']),_0x8203ce('_lockHandle',()=>_0x215036()?.[_0xda6ae8(0x563)]?{'isHeld':()=>!!_0x215036()?.[_0xda6ae8(0x563)]}:null),_0x8203ce(_0xda6ae8(0x8e0),()=>_0x215036()?.[_0xda6ae8(0x561)]?()=>{}:null),_0x8203ce('_flushIntervalTimer',()=>_0x215036()?.[_0xda6ae8(0x4e9)]?{}:null),_0x8203ce(_0xda6ae8(0x602),()=>_0x215036()?.[_0xda6ae8(0x6c2)]?{}:null),_0xfdd5a2;},_0x4d247c=()=>_0x19baac['_n'](_0x25ac58(0x47e),[],![])[_0x25ac58(0x35e)](_0x4978c3=>_0x4978c3['id']);return{'get':_0x358b07=>_0x4fce48(_0x358b07),'has':_0x249be9=>_0x4d247c()['includes'](_0x249be9),get 'size'(){const _0x5e3110=_0x25ac58;return _0x4d247c()[_0x5e3110(0x68a)];},'keys':()=>_0x4d247c()[Symbol[_0x25ac58(0x344)]](),'values':()=>_0x4d247c()[_0x25ac58(0x35e)](_0x4fce48)[Symbol[_0x25ac58(0x344)]](),'entries':()=>_0x4d247c()[_0x25ac58(0x35e)](_0x968c14=>[_0x968c14,_0x4fce48(_0x968c14)])[Symbol['iterator']](),[Symbol[_0x25ac58(0x344)]]:()=>_0x4d247c()[_0x25ac58(0x35e)](_0x21d73b=>[_0x21d73b,_0x4fce48(_0x21d73b)])[Symbol[_0x25ac58(0x344)]](),'forEach':_0x206f7f=>_0x4d247c()['forEach'](_0x4b8872=>_0x206f7f(_0x4fce48(_0x4b8872),_0x4b8872))};}async[_0x3839e7(0x560)](){return this['_n']('stopAll',[]);}[_0x3839e7(0x47e)](){const _0x314f02=_0x3839e7,_0x547357=this['_n']('list',[],![]);if(!this[_0x314f02(0x609)][_0x314f02(0x54b)][_0x314f02(0x38a)]('~'))try{const _0x3060ba=this['env'][_0x314f02(0x61e)][_0x314f02(0x447)];for(const _0x70efc7 of _0x3060ba[_0x314f02(0x4c3)](this[_0x314f02(0x609)]['name'])){for(const _0x4c629e of _0x3060ba['listIndexes'](_0x70efc7,this[_0x314f02(0x609)][_0x314f02(0x54b)])){const _0x582841=_0x314f02(0x2fb)+_0x70efc7+':'+_0x4c629e;_0x547357[_0x314f02(0x28d)]({'id':_0x582841,'type':_0x70efc7,'mode':_0x314f02(0x3e2),'state':'online','paused':![],'lag':0x0,'cursorKey':_0x582841,'meta':{'name':_0x582841}});}}}catch{}return _0x547357;}[_0x3839e7(0x43f)](){return this['_n']('tierList',[],![]);}[_0x3839e7(0x2f8)](){const _0x16409b=_0x3839e7;return this['_n'](_0x16409b(0x2f8),[],![]);}['durableCursorFloor'](){const _0x1297d5=_0x3839e7;return this['_n'](_0x1297d5(0x7eb),[],![]);}[_0x3839e7(0x309)](_0xd33e88){return this['_n']('get',[_0xd33e88],![]);}[_0x3839e7(0x5e0)](_0x209070){const _0x2ef5ab=_0x3839e7;return this['get'](typeof _0x209070===_0x2ef5ab(0x2b1)?_0x209070:_0x209070['id']);}[_0x3839e7(0x2e8)](_0x69bcfd){const _0x4d70e4=_0x3839e7;return this['_n'](_0x4d70e4(0x2e8),[_0x69bcfd],![]);}[_0x3839e7(0x770)](_0x45ec8b){const _0x51f1f4=_0x3839e7;return this['_n'](_0x51f1f4(0x770),[_0x45ec8b]);}['markSnapshotComplete'](_0x27d849){const _0x1cf9da=_0x3839e7;return this['_n'](_0x1cf9da(0x1ee),[_0x27d849]);}[_0x3839e7(0x817)](_0x25b8c0){return this['_n']('isSnapshotComplete',[_0x25b8c0],![]);}[_0x3839e7(0x366)](_0xdb1ec6,_0x4f72d9){const _0x1946ac=_0x3839e7;return this['_n'](_0x1946ac(0x366),[_0xdb1ec6,_0x4f72d9]);}async[_0x3839e7(0x8bf)](_0x1bb3e9,_0x2ced04){const _0x1a0394=_0x3839e7;return this['_n'](_0x1a0394(0x8bf),[_0x1bb3e9,_0x2ced04??0x7530]);}[_0x3839e7(0x3b0)](_0x5da56e){return this['_n']('pause',[_0x5da56e]);}[_0x3839e7(0x2ba)](_0x4dd3d5){const _0x4f7ad3=_0x3839e7;return this['_n'](_0x4f7ad3(0x2ba),[_0x4dd3d5]);}async[_0x3839e7(0x44e)](_0x1d25da){return this['_n']('setClaiming',[_0x1d25da]);}[_0x3839e7(0x2b5)](_0xec99b2){const _0x4ef333=_0x3839e7;return this['_n'](_0x4ef333(0x2b5),[_0xec99b2]);}[_0x3839e7(0x62c)](_0x47c271){const _0xe1c254=_0x3839e7;return this['_n'](_0xe1c254(0x62c),[_0x47c271]);}[_0x3839e7(0x388)](_0x1083d8,_0x3b95fe={}){const _0x1c4f0e=_0x3839e7;return this['_n'](_0x1c4f0e(0x388),[_0x1083d8,_0x3b95fe]);}async[_0x3839e7(0x581)](_0x3a0cfd,_0x32c736,_0x49810a){const _0xc76c5e=_0x3839e7,[_0x2cbe55,_0x43373c]=this['_n'](_0xc76c5e(0x581),[_0x3a0cfd,_0x32c736,_0x49810a]);return{'version':_0x2cbe55,'flipClock':_0x43373c};}async[_0x3839e7(0x866)](_0x3a1a32,_0x2623a0,_0x566cfd={}){const _0x2adbe8=_0x3839e7;return this['_n'](_0x2adbe8(0x866),[_0x3a1a32,_0x2623a0,_0x566cfd]);}}_0x552d4e[_0x3839e7(0x6ba)]=function _0x396742(_0x3ba68a,_0x377d62){const _0x46ebb9=_0x3839e7;if(typeof _0x3ba68a!==_0x46ebb9(0x2b1)||!_0x3ba68a)throw new Error(_0x46ebb9(0x881));if(typeof _0x377d62!==_0x46ebb9(0x640))throw new Error(_0x46ebb9(0x6e2));_0x1aa34a(_0x46ebb9(0x614),_0x46ebb9(0x6ba),[_0x3ba68a,_0x377d62]);},_0x552d4e['registerQuantum']=function _0x192c47(_0x52d598,_0x2371d3){const _0x6ea195=_0x3839e7;if(typeof _0x52d598!==_0x6ea195(0x2b1)||!_0x52d598)throw new Error('registerQuantum:\x20name\x20must\x20be\x20a\x20non-empty\x20string');if(typeof _0x2371d3!=='function')throw new Error(_0x6ea195(0x48c));let _0x3b2474=null;_0x1aa34a('proc','registerQuantum',[_0x52d598,(_0x451397,_0x37170c)=>{if(!_0x3b2474)_0x3b2474=_0x2371d3();return _0x3b2474(_0x451397,_0x37170c);}]);},_0x552d4e[_0x3839e7(0x4bd)]=_0x3aa76e=>/closed|not open|released/i[_0x3839e7(0x2b6)](String(_0x3aa76e)),_0x552d4e['_inlineClosureWarned']=![];function _0x1aa34a(_0x5405e,_0x1c9b45,_0x53264e){const {staticCall:_0x207490}=requireLib();return _0x207490(_0x5405e,_0x1c9b45,_0x53264e);}return processor[_0x3839e7(0x28e)]=_0x552d4e,processor[_0x3839e7(0x28e)][_0x3839e7(0x345)]=_0x552d4e,processor[_0x3839e7(0x28e)][_0x3839e7(0x29b)]=_0x106cc7,processor[_0x3839e7(0x28e)];}var okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x4cd95a=_0x5c70f8;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x4710ae={'PUT':_0x4cd95a(0x253),'REMOVE':_0x4cd95a(0x504),'INDEX_DROP':_0x4cd95a(0x8e3),'INDEX_REGISTER':_0x4cd95a(0x8cb),'INDEX_RESET':_0x4cd95a(0x591),'TYPE_REGISTER':_0x4cd95a(0x343),'TYPE_DROP':_0x4cd95a(0x2a4),'FTS_REGISTER':_0x4cd95a(0x45b),'FTS_DROP':_0x4cd95a(0x497),'FTS_RESET':_0x4cd95a(0x4f1),'SCHEMA_SET':_0x4cd95a(0x241),'SCHEMA_DROP':_0x4cd95a(0x8a7),'TTL_SET':_0x4cd95a(0x837),'TTL_CLEAR':'clearTtl'},_0x31943c={'SYSTEM_READY':_0x4cd95a(0x2db),'FIELD_RESOLVER_REGISTERED':_0x4cd95a(0x4b1),'SYSTEM_STOPPED':_0x4cd95a(0x4d8),'SYSTEM_CLOCK_CHANGE':_0x4cd95a(0x2a2),'SYSTEM_POKE':'system:poke','SYSTEM_DRAIN':_0x4cd95a(0x572),'SYSTEM_TYPE_DROP':_0x4cd95a(0x71e),'SYSTEM_PROC':_0x4cd95a(0x1db),'SYSTEM_BUS_STATE_CHANGE':_0x4cd95a(0x264),'ITEM_CREATE':_0x4cd95a(0x547),'ITEM_UPDATE':'item:update','ITEM_REMOVE':'item:remove','ITEM_PENDING':_0x4cd95a(0x702),'INDEX_RESET':_0x4cd95a(0x29f),'INDEX_READY':_0x4cd95a(0x825),'INDEX_PROGRESS':_0x4cd95a(0x21b),'VIEW_PROGRESS':_0x4cd95a(0x821),'INDEX_DROP':_0x4cd95a(0x3a4),'INDEX_REGISTERED':'index:registered','FTS_REGISTERED':_0x4cd95a(0x37a),'FTS_DROP':_0x4cd95a(0x73c),'FTS_RESET':_0x4cd95a(0x569),'SCHEMA_SET':_0x4cd95a(0x4d3),'SCHEMA_DROP':'schema:drop','UNIQUE_VIOLATION':_0x4cd95a(0x1c3),'UNIQUE_VIOLATION_RESOLVED':_0x4cd95a(0x531),'REF_VIOLATION':'ref:violation','REF_VIOLATION_RESOLVED':'ref:violation_resolved','SYNC_APPLY':_0x4cd95a(0x78a),'TXN_START':'txn:start','TXN_END':_0x4cd95a(0x330),'TXN_ROLLBACK':_0x4cd95a(0x5bd),'TYPE_REGISTERED':_0x4cd95a(0x80f),'TYPE_DROP':_0x4cd95a(0x7bf),'ENV_OPENED':'env:opened','ENV_REMOVED':_0x4cd95a(0x674),'SYSTEM_ENV_RELEASE':_0x4cd95a(0x544),'TTL_EXPIRED':_0x4cd95a(0x52f),'TTL_SET':_0x4cd95a(0x294),'TTL_CLEAR':_0x4cd95a(0x666),'LICENSE_INVALID':_0x4cd95a(0x2b2),'LICENSE_ADDED':'license:added','LICENSE_ACTIVATED':'license:activated','LICENSE_REMOVED':_0x4cd95a(0x1fa)},_0x3ba0dd={'CREATING':'creating','RESETTING':_0x4cd95a(0x583),'READY':_0x4cd95a(0x237),'DROPPING':_0x4cd95a(0x3c0),'WAITING':_0x4cd95a(0x543),'ERROR':'error'},_0x4e5d55={'CREATED':_0x4cd95a(0x258),'STARTING':_0x4cd95a(0x2b4),'STARTED':_0x4cd95a(0x3c4),'STOPPING':_0x4cd95a(0x278),'STOPPED':_0x4cd95a(0x5a6)},_0x2082b8={'CREATING':_0x4cd95a(0x34b),'READY':_0x4cd95a(0x237),'HALTED':'halted','STOPPED':'stopped','RESETTING':_0x4cd95a(0x583)},_0x44237e=Object[_0x4cd95a(0x202)]({'POKE':'bus:poke','DRAIN':_0x4cd95a(0x747),'TYPE_DROP':'bus:type_drop','PROC':'bus:proc','ENV_RELEASE':_0x4cd95a(0x888)});return okdbEnums={'BUS_EVENTS':_0x44237e,'CHANGE_ACTIONS':_0x4710ae,'EVENTS':_0x31943c,'INDEX_STATE':_0x3ba0dd,'OKDB_STATE':_0x4e5d55,'VIEW_STATE':_0x2082b8},okdbEnums;}var okdbGuardedRange,hasRequiredOkdbGuardedRange;function requireOkdbGuardedRange(){const _0x38150c=_0x5c70f8;if(hasRequiredOkdbGuardedRange)return okdbGuardedRange;hasRequiredOkdbGuardedRange=0x1;const _0x2fec93={'SKIP':Symbol[_0x38150c(0x708)](_0x38150c(0x8c2))},{OKDBError:_0x4713b1}=requireOkdbError(),_0x182ad2={'value':null,'done':!![]};class _0x1d4a0b{constructor(_0x2573b9){const _0x2f1582=_0x38150c;this[_0x2f1582(0x730)]=_0x2573b9;}get[_0x38150c(0x538)](){return _0x182ad2;}[Symbol['iterator']](){const _0x12ed24=_0x38150c;return this[_0x12ed24(0x730)]();}[_0x38150c(0x35e)](_0x1d7356){const _0x839eef=this;return new _0x1d4a0b(()=>{const _0x4ef44f=_0x52a3,_0x468695=_0x839eef[Symbol['iterator']]();return{'next'(){const _0xbb94bc=_0x52a3;for(;;){const _0x96b395=_0x468695[_0xbb94bc(0x48f)]();if(_0x96b395['done'])return{'done':!![],'value':undefined};const _0x5396e1=_0x1d7356(_0x96b395[_0xbb94bc(0x2ef)]);if(_0x5396e1===_0x2fec93[_0xbb94bc(0x6e8)])continue;if(_0x5396e1===_0x182ad2)return _0x468695[_0xbb94bc(0x67c)]?.(),{'done':!![],'value':undefined};return{'done':![],'value':_0x5396e1};}},'return'(){const _0x14b0b7=_0x52a3;return _0x468695[_0x14b0b7(0x67c)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x4ef44f(0x344)]](){return this;}};});}[_0x38150c(0x4e1)](_0x212988){const _0x5cb980=_0x38150c;return this[_0x5cb980(0x35e)](_0xde9293=>_0x212988(_0xde9293)?_0xde9293:_0x2fec93[_0x5cb980(0x6e8)]);}[_0x38150c(0x5ff)](_0x4332f2){for(const _0xe519eb of this)_0x4332f2(_0xe519eb);}[_0x38150c(0x1f7)](_0x343ded=0x0,_0x416001=Infinity){const _0x39fcc4=this;return new _0x1d4a0b(()=>{const _0x2c94e2=_0x52a3,_0x28cbcc=_0x39fcc4[Symbol[_0x2c94e2(0x344)]]();let _0x2b64bc=0x0;return{'next'(){const _0x2b985f=_0x2c94e2;for(;;){const _0x357474=_0x28cbcc['next']();if(_0x357474['done'])return{'done':!![],'value':undefined};const _0x49c030=_0x2b64bc++;if(_0x49c030<_0x343ded)continue;if(_0x49c030>=_0x416001)return _0x28cbcc[_0x2b985f(0x67c)]?.(),{'done':!![],'value':undefined};return _0x357474;}},'return'(){const _0x146eb2=_0x2c94e2;return _0x28cbcc[_0x146eb2(0x67c)]?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}['at'](_0x5d054c){let _0x2db2b8=0x0;for(const _0x3dd86d of this)if(_0x2db2b8++===_0x5d054c)return _0x3dd86d;return undefined;}[_0x38150c(0x846)](_0x3a0a03){const _0x3ab356=this;return new _0x1d4a0b(()=>{const _0x51dfd0=_0x52a3,_0x2e2ff7=_0x3ab356[Symbol[_0x51dfd0(0x344)]]();let _0x560582=[];return{'next'(){const _0x149eb4=_0x51dfd0;for(;;){if(_0x560582['length'])return{'done':![],'value':_0x560582['shift']()};const _0x159327=_0x2e2ff7[_0x149eb4(0x48f)]();if(_0x159327[_0x149eb4(0x588)])return{'done':!![],'value':undefined};const _0x15870c=_0x3a0a03(_0x159327['value']);if(Array[_0x149eb4(0x439)](_0x15870c))_0x560582=_0x560582[_0x149eb4(0x6cf)](_0x15870c);else{if(_0x15870c!=null&&(_0x15870c instanceof _0x1d4a0b||typeof _0x15870c[Symbol[_0x149eb4(0x344)]]===_0x149eb4(0x640)&&'asArray'in _0x15870c))_0x560582=_0x560582[_0x149eb4(0x6cf)](Array[_0x149eb4(0x48d)](_0x15870c));else{if(_0x15870c!==_0x2fec93[_0x149eb4(0x6e8)])return{'done':![],'value':_0x15870c};}}}},'return'(){const _0x5e99ac=_0x51dfd0;return _0x2e2ff7[_0x5e99ac(0x67c)]?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}['concat'](_0x497739){const _0x2c7584=this;return new _0x1d4a0b(()=>{const _0x2dafce=_0x52a3;let _0x1c9dab=_0x2c7584[Symbol[_0x2dafce(0x344)]](),_0x97dd77=![];return{'next'(){const _0x37c4d4=_0x2dafce;for(;;){const _0x1282b9=_0x1c9dab[_0x37c4d4(0x48f)]();if(!_0x1282b9['done'])return _0x1282b9;if(_0x97dd77)return{'done':!![],'value':undefined};_0x97dd77=!![],_0x1c9dab=_0x497739[Symbol[_0x37c4d4(0x344)]]();}},'return'(){const _0x178bd8=_0x2dafce;return _0x1c9dab[_0x178bd8(0x67c)]?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}[_0x38150c(0x1e3)](_0x5db1e0){const _0x53135a=this;return new _0x1d4a0b(()=>{const _0x3b6501=_0x52a3,_0x5e4b9a=_0x53135a[Symbol['iterator']]();return{'next'(){const _0x19f3d0=_0x52a3;for(;;){try{return _0x5e4b9a[_0x19f3d0(0x48f)]();}catch(_0x17e048){const _0xfdffee=_0x5db1e0(_0x17e048);if(_0xfdffee===_0x2fec93[_0x19f3d0(0x6e8)]||_0xfdffee===undefined)continue;return{'done':![],'value':_0xfdffee};}}},'return'(){const _0x320d7d=_0x52a3;return _0x5e4b9a[_0x320d7d(0x67c)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x3b6501(0x344)]](){return this;}};});}['toJSON'](){const _0x293469=_0x38150c;return Array[_0x293469(0x48d)](this);}get[_0x38150c(0x2cd)](){const _0x4406b9=_0x38150c;return Array[_0x4406b9(0x48d)](this);}}const _0x5968bf={'total':0x0,'byLabel':{},'last':null};function _0x41cd4b(_0x324f83){const _0x215e26=_0x38150c;_0x5968bf[_0x215e26(0x642)]++;if(_0x324f83)_0x5968bf[_0x215e26(0x718)][_0x324f83]=(_0x5968bf['byLabel'][_0x324f83]??0x0)+0x1;_0x5968bf[_0x215e26(0x7bb)]={'label':_0x324f83??null,'at':Date[_0x215e26(0x8cc)]()};}function _0x39bcb1(){const _0x519da3=_0x38150c;return{'total':_0x5968bf[_0x519da3(0x642)],'byLabel':{..._0x5968bf[_0x519da3(0x718)]},'last':_0x5968bf[_0x519da3(0x7bb)]};}function _0x2c0698(_0x51ef75,_0x343da5={}){const {getTxnId:_0xf48697,resume:_0x695583,label:_0x58be81,baseline:_0x40584}=_0x343da5;return new _0x1d4a0b(()=>{let _0x338ccd=null,_0x15c38a=![],_0x9a22f7=![],_0x4aa863=![],_0x5e006c,_0x1db324=0x0,_0x3eda56;return{'next'(){const _0x6a2273=_0x52a3;if(_0x4aa863)return{'done':!![],'value':undefined};if(_0x9a22f7){let _0x4ad547=![];if(_0x695583&&_0xf48697)try{_0x4ad547=_0xf48697()===_0x3eda56;}catch{}if(!_0x4ad547){_0x4aa863=!![],_0x41cd4b(_0x58be81);throw new _0x4713b1(_0x695583?'pinned\x20range\x20iterator\x20parked\x20across\x20an\x20await/turn\x20boundary\x20and\x20the\x20env\x20was\x20written\x20'+_0x6a2273(0x3fd)+_0x6a2273(0x841):'pinned\x20range\x20iterator\x20held\x20across\x20an\x20await/turn\x20boundary.\x20This\x20surface\x20cannot\x20resume\x20'+_0x6a2273(0x256)+_0x6a2273(0x66e),'READER_HELD_ACROSS_AWAIT');}_0x338ccd=_0x695583(_0x5e006c,_0x1db324)[Symbol[_0x6a2273(0x344)]](),_0x9a22f7=![];}if(!_0x338ccd){if(_0x40584!==undefined)_0x3eda56=_0x40584;else try{_0x3eda56=_0xf48697?_0xf48697():undefined;}catch{_0x3eda56=undefined;}try{_0x338ccd=_0x51ef75()[Symbol[_0x6a2273(0x344)]]();}catch(_0x5a0dbe){_0x4aa863=!![];throw _0x5a0dbe;}}!_0x15c38a&&(_0x15c38a=!![],queueMicrotask(()=>{const _0x431045=_0x6a2273;_0x15c38a=![];if(_0x4aa863||_0x9a22f7)return;try{_0x338ccd?.[_0x431045(0x67c)]?.();}catch{}_0x338ccd=null,_0x9a22f7=!![];}));const _0x513d32=_0x338ccd[_0x6a2273(0x48f)]();if(_0x513d32[_0x6a2273(0x588)])return _0x4aa863=!![],{'done':!![],'value':undefined};return _0x5e006c=_0x513d32['value'],_0x1db324++,_0x513d32;},'return'(){const _0x4cd3f1=_0x52a3;_0x4aa863=!![];try{_0x338ccd?.[_0x4cd3f1(0x67c)]?.();}catch{}return{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}return okdbGuardedRange={'guardSnapshotIterable':_0x2c0698,'OKDBGuardedRange':_0x1d4a0b,'recordGuardTrip':_0x41cd4b,'getGuardTripStats':_0x39bcb1},okdbGuardedRange;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0x1d1927=_0x5c70f8;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x5ca839,performance:_0x16099a}=require$$0$1,_0x38eea6=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG===_0x1d1927(0x43b),_0x3e9ba2=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x53c94d=process.env.OKDB_LOOP_LAG_ALL==='1',_0x2bead4=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0xc90f33{constructor(){const _0x43e337=_0x1d1927;this[_0x43e337(0x63d)]=_0x38eea6,this['_buckets']=new Map(),this['_h']=null,this['_timer']=null,this['_started']=![],this['_log']=(_0x188a42,_0x2b7703)=>process[_0x43e337(0x34a)][_0x43e337(0x21a)](_0x188a42+(_0x2b7703?'\x20'+JSON[_0x43e337(0x35a)](_0x2b7703):'')+'\x0a');}[_0x1d1927(0x8cc)](){return _0x16099a['now']();}[_0x1d1927(0x3c5)](_0x3c5fc6){const _0x39595b=_0x1d1927;if(typeof _0x3c5fc6==='function')this[_0x39595b(0x8ae)]=_0x3c5fc6;}['note'](_0x2554cc,_0xe7a870,_0xc114b7){const _0x2e45ab=_0x1d1927;if(!this[_0x2e45ab(0x63d)])return;let _0x32038e=this['_buckets']['get'](_0x2554cc);!_0x32038e&&(_0x32038e={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this[_0x2e45ab(0x59d)][_0x2e45ab(0x63f)](_0x2554cc,_0x32038e)),_0x32038e['ms']+=_0xe7a870,_0x32038e['count']+=0x1,_0xe7a870>_0x32038e['maxMs']&&(_0x32038e[_0x2e45ab(0x1e6)]=_0xe7a870,_0x32038e['maxExtra']=_0xc114b7||'');}[_0x1d1927(0x45c)](_0x34d3f9){const _0x1d633e=_0x1d1927;if(!this['enabled']||this[_0x1d633e(0x620)])return;this[_0x1d633e(0x620)]=!![];if(_0x34d3f9)this[_0x1d633e(0x8ae)]=_0x34d3f9;this['_h']=_0x5ca839({'resolution':0xa}),this['_h'][_0x1d633e(0x54c)](),this['_timer']=setInterval(()=>this[_0x1d633e(0x818)](),_0x3e9ba2);if(this[_0x1d633e(0x458)][_0x1d633e(0x32c)])this['_timer'][_0x1d633e(0x32c)]();}[_0x1d1927(0x874)](_0x52e465){const _0xb20985=_0x1d1927;if(!this[_0xb20985(0x7b7)])this[_0xb20985(0x7b7)]=new Set();this[_0xb20985(0x7b7)][_0xb20985(0x280)](_0x52e465);if(!this[_0xb20985(0x620)])this[_0xb20985(0x56a)]();}[_0x1d1927(0x684)](_0x500a56){const _0x128e3c=_0x1d1927;this[_0x128e3c(0x7b7)]?.[_0x128e3c(0x2cb)](_0x500a56);}['_startAdmission'](){const _0x59a2ca=_0x1d1927;if(this[_0x59a2ca(0x35c)])return;this['_admissionStarted']=!![];!this['_h']&&(this['_h']=_0x5ca839({'resolution':0xa}),this['_h'][_0x59a2ca(0x54c)]());const _0x4961c3=_0x3e9ba2;this[_0x59a2ca(0x59a)]=setInterval(()=>{const _0x1a9876=_0x59a2ca,_0x1cfd54=this['_h'];if(!_0x1cfd54)return;const _0x4fa3f5=_0x1cfd54[_0x1a9876(0x76c)](0x63)/0xf4240,_0x196a3e=_0x1cfd54[_0x1a9876(0x4a0)]/0xf4240,_0x40588b=_0x1cfd54[_0x1a9876(0x524)]/0xf4240;_0x1cfd54[_0x1a9876(0x20d)]();if(this[_0x1a9876(0x7b7)])for(const _0x530431 of this[_0x1a9876(0x7b7)]){try{_0x530431({'p99Ms':_0x4fa3f5,'maxMs':_0x196a3e,'meanMs':_0x40588b,'reportMs':_0x4961c3});}catch{}}},_0x4961c3);if(this[_0x59a2ca(0x59a)][_0x59a2ca(0x32c)])this[_0x59a2ca(0x59a)]['unref']();}[_0x1d1927(0x818)](){const _0x1376ed=_0x1d1927,_0x1f1a1b=this['_h'],_0x533179=_0x1f1a1b[_0x1376ed(0x4a0)]/0xf4240,_0x8fea59=_0x1f1a1b[_0x1376ed(0x76c)](0x63)/0xf4240,_0x430311=_0x1f1a1b[_0x1376ed(0x524)]/0xf4240;_0x1f1a1b[_0x1376ed(0x20d)]();const _0x1a45cf=[...this[_0x1376ed(0x59d)]['entries']()][_0x1376ed(0x35e)](([_0x55fd3c,_0x5cd36e])=>({'label':_0x55fd3c,..._0x5cd36e}))[_0x1376ed(0x22f)]((_0x48b2de,_0x35503b)=>_0x35503b['ms']-_0x48b2de['ms'])[_0x1376ed(0x1f7)](0x0,0x8);this['_buckets']['clear']();const _0x24ca5c=_0x1a45cf['reduce']((_0x5ea04e,_0x32bce4)=>_0x5ea04e+_0x32bce4['ms'],0x0),_0x4c8ad1=_0x1a45cf[_0x1376ed(0x35e)](_0x38c173=>_0x38c173[_0x1376ed(0x3bb)]+'='+_0x38c173['ms'][_0x1376ed(0x64c)](0x0)+'ms/'+_0x38c173[_0x1376ed(0x400)]+(_0x38c173[_0x1376ed(0x1e6)]>0x5?_0x1376ed(0x243)+_0x38c173[_0x1376ed(0x1e6)][_0x1376ed(0x64c)](0x0)+'ms'+(_0x38c173[_0x1376ed(0x6f8)]?'\x20'+_0x38c173['maxExtra']:'')+')':''));(_0x53c94d||_0x533179>=_0x2bead4)&&this[_0x1376ed(0x8ae)](_0x1376ed(0x403)+_0x3e9ba2+'ms\x20max='+_0x533179[_0x1376ed(0x64c)](0x0)+_0x1376ed(0x476)+_0x8fea59['toFixed'](0x0)+_0x1376ed(0x743)+_0x430311['toFixed'](0x0)+_0x1376ed(0x346)+_0x24ca5c[_0x1376ed(0x64c)](0x0)+'ms'+(_0x4c8ad1['length']?_0x1376ed(0x7ba)+_0x4c8ad1['join']('\x20\x20'):''),{'feature':_0x1376ed(0x65e)});if(this[_0x1376ed(0x7b7)])for(const _0x392be7 of this[_0x1376ed(0x7b7)]){try{_0x392be7({'p99Ms':_0x8fea59,'maxMs':_0x533179,'meanMs':_0x430311,'reportMs':_0x3e9ba2});}catch{}}}['stop'](){const _0x51f855=_0x1d1927;if(this['_timer'])clearInterval(this[_0x51f855(0x458)]);if(this['_h'])this['_h'][_0x51f855(0x2e6)]();this[_0x51f855(0x458)]=null,this['_h']=null,this['_started']=![];}}const _0x1182bc=new _0xc90f33();if(_0x1182bc[_0x1d1927(0x63d)])_0x1182bc[_0x1d1927(0x45c)]();return okdbLoopMonitor={'LOOP':_0x1182bc},okdbLoopMonitor;}var okdbTransaction,hasRequiredOkdbTransaction;function requireOkdbTransaction(){const _0xa32521=_0x5c70f8;if(hasRequiredOkdbTransaction)return okdbTransaction;hasRequiredOkdbTransaction=0x1;const _0x575f6c={'v4':()=>require$$0$2[_0xa32521(0x809)]()},{EVENTS:_0x23b2a1}=requireOkdbEnums(),{OKDBError:_0x2712f3}=requireOkdbError(),{recordGuardTrip:_0x1f7900,guardSnapshotIterable:_0x30bfaa}=requireOkdbGuardedRange(),{LOOP:_0x2969a5}=requireOkdbLoopMonitor();function _0x288682(_0x3d93fc){const _0x2dca4e=_0xa32521;return _0x3d93fc[_0x2dca4e(0x35e)](_0x5eb3d2=>{const _0x19e839=_0x2dca4e,[_0x450aea,_0x1fda7c]=_0x5eb3d2['args']||[];return{'action':_0x5eb3d2[_0x19e839(0x6d0)],'type':_0x450aea,'key':_0x1fda7c};});}class _0x5a45b2{[_0xa32521(0x61e)];['actions']=[];[_0xa32521(0x8e8)]=[];[_0xa32521(0x804)]=[];constructor(_0x3f8dbb,_0x125477={'useReadTransaction':![]}){const _0x26c2ee=_0xa32521;this[_0x26c2ee(0x61e)]=_0x3f8dbb,this[_0x26c2ee(0x688)]=_0x125477,this['id']=_0x575f6c['v4']();if(this[_0x26c2ee(0x688)][_0x26c2ee(0x62f)])try{this[_0x26c2ee(0x87f)]=this[_0x26c2ee(0x61e)]['db'][_0x26c2ee(0x65c)]()[_0x26c2ee(0x55f)];}catch{this['_txnIdAtSnapshot']=undefined;}this[_0x26c2ee(0x271)]=this[_0x26c2ee(0x688)][_0x26c2ee(0x62f)]?this[_0x26c2ee(0x61e)]['db'][_0x26c2ee(0x62f)]():null,this[_0x26c2ee(0x417)]=![],this[_0x26c2ee(0x3a8)]=![],this['readTransaction']&&queueMicrotask(()=>{const _0x15fd77=_0x26c2ee;this[_0x15fd77(0x271)]&&(this[_0x15fd77(0x492)](),this['_readViewExpired']=!![]);});}[_0xa32521(0x6bc)](_0x2ef14f){const _0x3a626f=_0xa32521;this['_doHooks'][_0x3a626f(0x28d)](_0x2ef14f);}[_0xa32521(0x1f5)](_0x2eeb59){const _0x1c4bba=_0xa32521;this['_undoHooks'][_0x1c4bba(0x28d)](_0x2eeb59);}['_closeReadTransaction'](){const _0x69df10=_0xa32521;if(!this[_0x69df10(0x271)])return;try{this[_0x69df10(0x271)][_0x69df10(0x588)]();}catch(_0x22cb04){}this[_0x69df10(0x271)]=null;}[_0xa32521(0x7a2)](){const _0x52bf0d=_0xa32521;if(this[_0x52bf0d(0x417)])throw new _0x2712f3(_0x52bf0d(0x72b),_0x52bf0d(0x679));if(this['_readViewExpired']){let _0x3bb6c7=![];if(this[_0x52bf0d(0x688)]['useReadTransaction']===_0x52bf0d(0x8c0)&&this[_0x52bf0d(0x87f)]!==undefined)try{_0x3bb6c7=this[_0x52bf0d(0x61e)]['db'][_0x52bf0d(0x65c)]()[_0x52bf0d(0x55f)]===this[_0x52bf0d(0x87f)];}catch{}if(!_0x3bb6c7){_0x1f7900((this[_0x52bf0d(0x61e)]?.[_0x52bf0d(0x54b)]??'?')+_0x52bf0d(0x8d1));throw new _0x2712f3(_0x52bf0d(0x891)+_0x52bf0d(0x6cc)+_0x52bf0d(0x6c5)+_0x52bf0d(0x6f7),'READER_HELD_ACROSS_AWAIT');}}}[_0xa32521(0x309)](_0x26eeba,_0x7c77cd){const _0x39aa64=_0xa32521;return this[_0x39aa64(0x7a2)](),this[_0x39aa64(0x61e)]['get'](_0x26eeba,_0x7c77cd,{'transaction':this[_0x39aa64(0x271)]});}[_0xa32521(0x3a0)](_0x1e4ede,_0x4a17f7){const _0x100a22=_0xa32521;return this[_0x100a22(0x7a2)](),this[_0x100a22(0x61e)]['getEntry'](_0x1e4ede,_0x4a17f7,{'transaction':this['readTransaction']});}[_0xa32521(0x233)](_0x1493e7,_0x161d04){const _0x482b9f=_0xa32521;return this['_assertOpen'](),this[_0x482b9f(0x61e)]['getMany'](_0x1493e7,_0x161d04,{'transaction':this[_0x482b9f(0x271)]});}[_0xa32521(0x64d)](_0x43c4cb){const _0x1b1005=_0xa32521;if(!this[_0x1b1005(0x688)][_0x1b1005(0x62f)])return _0x43c4cb;if(_0x43c4cb&&typeof _0x43c4cb[_0x1b1005(0x801)]===_0x1b1005(0x640))return _0x43c4cb;if(Array[_0x1b1005(0x439)](_0x43c4cb))return _0x43c4cb;const _0x1e339f=this,_0x26f6bf=_0x1e339f[_0x1b1005(0x688)][_0x1b1005(0x62f)]===_0x1b1005(0x8c0),_0x9c5800=()=>{const _0x42719e=_0x1b1005;if(!_0x1e339f[_0x42719e(0x3a8)])return![];if(!_0x26f6bf)return!![];if(_0x1e339f[_0x42719e(0x87f)]===undefined)return!![];try{return _0x1e339f[_0x42719e(0x61e)]['db']['getStats']()['lastTxnId']!==_0x1e339f[_0x42719e(0x87f)];}catch{return!![];}};return _0x30bfaa(()=>{const _0x4a4c85=_0x1b1005;if(_0x1e339f[_0x4a4c85(0x417)])throw new _0x2712f3(_0x4a4c85(0x72b),_0x4a4c85(0x679));if(_0x9c5800()){_0x1f7900((_0x1e339f['okdb']?.[_0x4a4c85(0x54b)]??'?')+':txnRange');throw new _0x2712f3('useReadTransaction\x20range\x20consumed\x20after\x20the\x20creation\x20turn\x20—\x20the\x20consistent\x20view\x20was\x20'+_0x4a4c85(0x412)+_0x4a4c85(0x6c6),_0x4a4c85(0x252));}return _0x43c4cb;},{'label':(_0x1e339f['okdb']?.[_0x1b1005(0x54b)]??'?')+_0x1b1005(0x6ed),..._0x26f6bf?{'baseline':_0x1e339f['_txnIdAtSnapshot'],'getTxnId':()=>_0x1e339f[_0x1b1005(0x61e)]['db'][_0x1b1005(0x65c)]()[_0x1b1005(0x55f)],'resume':(_0x2807c6,_0x1f8722)=>_0x43c4cb['slice'](_0x1f8722)}:{}});}['getRange'](_0x4696a1,_0xce5507={}){const _0x498924=_0xa32521;return this[_0x498924(0x7a2)](),this[_0x498924(0x64d)](this[_0x498924(0x61e)][_0x498924(0x3ee)](_0x4696a1,{'transaction':this[_0x498924(0x271)],..._0xce5507}));}['getValues'](_0x6d21fb,_0x39c175={}){const _0x420d4a=_0xa32521;return this[_0x420d4a(0x7a2)](),this[_0x420d4a(0x64d)](this['okdb'][_0x420d4a(0x88a)](_0x6d21fb,{'transaction':this['readTransaction'],..._0x39c175}));}[_0xa32521(0x300)](_0x4c2b83,_0x555d45={}){const _0x48e36e=_0xa32521;return this[_0x48e36e(0x7a2)](),this['_range'](this[_0x48e36e(0x61e)][_0x48e36e(0x300)](_0x4c2b83,{'transaction':this[_0x48e36e(0x271)],..._0x555d45}));}[_0xa32521(0x5c4)](_0x46b122,_0x4e0134,_0x2b3d82={}){const _0x1ed779=_0xa32521;return this[_0x1ed779(0x7a2)](),this[_0x1ed779(0x64d)](this[_0x1ed779(0x61e)][_0x1ed779(0x5c4)](_0x46b122,_0x4e0134,{'transaction':this['readTransaction'],..._0x2b3d82}));}[_0xa32521(0x69f)](_0x5c8c96,_0x181ce5,_0x1cd7a3={}){const _0x5c291c=_0xa32521;return this[_0x5c291c(0x7a2)](),this[_0x5c291c(0x64d)](this[_0x5c291c(0x61e)]['query'](_0x5c8c96,_0x181ce5,{'transaction':this[_0x5c291c(0x271)],..._0x1cd7a3}));}[_0xa32521(0x3b3)](_0x1edee0=null){const _0x32c9cf=_0xa32521;return this['_assertOpen'](),this[_0x32c9cf(0x61e)][_0x32c9cf(0x3b3)](_0x1edee0,{'transaction':this[_0x32c9cf(0x271)]});}[_0xa32521(0x8ce)](_0x1510e8){const _0x21267c=_0xa32521;return this[_0x21267c(0x7a2)](),this[_0x21267c(0x61e)][_0x21267c(0x8ce)](_0x1510e8,{'transaction':this[_0x21267c(0x271)]});}[_0xa32521(0x253)](_0x19df10,_0x471ecc,_0x409e8c,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date['now'](),origin:origin=null,ttl:ttl=null}={}){const _0x207ab6=_0xa32521;this[_0x207ab6(0x5c3)][_0x207ab6(0x28d)]({'action':_0x207ab6(0x253),'args':[_0x19df10,_0x471ecc,_0x409e8c,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0xa32521(0x5b4)](_0x458020,_0x101b7c,_0x3c3af9,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date['now'](),origin:origin=null,ttl:ttl=null}={}){const _0x2cd47e=_0xa32521;this[_0x2cd47e(0x5c3)]['push']({'action':_0x2cd47e(0x5b4),'args':[_0x458020,_0x101b7c,_0x3c3af9,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0xa32521(0x65b)](_0x48fdcb,_0x378686,_0x4f9f34,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0xa32521(0x8cc)](),origin:origin=null,ttl:ttl=null}={}){const _0x59a906=_0xa32521;this[_0x59a906(0x5c3)][_0x59a906(0x28d)]({'action':_0x59a906(0x65b),'args':[_0x48fdcb,_0x378686,_0x4f9f34,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0xa32521(0x67b)](_0x2e704e,_0x2b11fd,_0x4570cf,{version:version=null,timestamp:timestamp=Date[_0xa32521(0x8cc)](),origin:origin=null,ttl:ttl=null}={}){const _0x38bf7e=_0xa32521;this[_0x38bf7e(0x5c3)][_0x38bf7e(0x28d)]({'action':_0x38bf7e(0x67b),'args':[_0x2e704e,_0x2b11fd,_0x4570cf,{'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0xa32521(0x504)](_0x18aae9,_0xf940fa,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0xa32521(0x8cc)](),origin:origin=null}={}){const _0x2c6087=_0xa32521;this[_0x2c6087(0x5c3)][_0x2c6087(0x28d)]({'action':_0x2c6087(0x504),'args':[_0x18aae9,_0xf940fa,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin}]});}[_0xa32521(0x246)](_0x155fe3,_0x5ad707,_0x55cffd){const _0x20927d=_0xa32521;this[_0x20927d(0x5c3)]['push']({'action':_0x20927d(0x246),'args':[_0x155fe3,_0x5ad707,_0x55cffd]});}['clearTTL'](_0x9cf5dc,_0x1aad65){const _0x9a49ba=_0xa32521;this[_0x9a49ba(0x5c3)]['push']({'action':'clearTTL','args':[_0x9cf5dc,_0x1aad65]});}[_0xa32521(0x880)](){const _0x1b8975=_0xa32521;if(this[_0x1b8975(0x417)])return;for(const _0x32b08f of this['_undoHooks']){try{_0x32b08f();}catch{}}this[_0x1b8975(0x61e)]['events']['emit'](_0x23b2a1[_0x1b8975(0x635)],{'id':this['id']}),this[_0x1b8975(0x5c3)]=[],this[_0x1b8975(0x492)](),this[_0x1b8975(0x417)]=!![];}async['commit'](){const _0xf31513=_0xa32521;if(this[_0xf31513(0x417)])throw new Error(_0xf31513(0x72b));const _0x5c7ed6={'id':this['id'],'timestamp':Date['now'](),'actions':this['actions']};this['okdb'][_0xf31513(0x4cb)][_0xf31513(0x5a2)](_0x23b2a1['TXN_START'],_0x5c7ed6);try{const _0x37e0e9=_0x2969a5[_0xf31513(0x63d)]?_0x2969a5['now']():0x0;await this['okdb'][_0xf31513(0x767)]['transaction'](()=>{const _0x288c6c=_0xf31513;for(const _0x2a0266 of this['actions']){const _0x1dec19=this[_0x288c6c(0x61e)]['_'+_0x2a0266[_0x288c6c(0x6d0)]];if(typeof _0x1dec19!==_0x288c6c(0x640))throw new Error(_0x288c6c(0x579)+_0x2a0266['action']);_0x1dec19[_0x288c6c(0x4d1)](this['okdb'],this,..._0x2a0266[_0x288c6c(0x645)]);}}),_0x2969a5[_0xf31513(0x63d)]&&_0x2969a5[_0xf31513(0x520)]('txn-commit',_0x2969a5[_0xf31513(0x8cc)]()-_0x37e0e9,(this[_0xf31513(0x61e)]['name']??'?')+'\x20actions='+this['actions'][_0xf31513(0x68a)]);}catch(_0x175fb4){for(const _0x193c33 of this['_undoHooks']){try{_0x193c33();}catch{}}this[_0xf31513(0x492)](),this[_0xf31513(0x417)]=!![];if(_0x175fb4 instanceof _0x2712f3)throw _0x175fb4;const _0x3e16ed={'cause':_0x175fb4,'env':this[_0xf31513(0x61e)]?.['name'],'envPath':this[_0xf31513(0x61e)]?.[_0xf31513(0x500)],'pid':process['pid'],'txnId':this['id'],'actionCount':this[_0xf31513(0x5c3)][_0xf31513(0x68a)],'actions':_0x288682(this[_0xf31513(0x5c3)]),'nativeCode':_0x175fb4?.[_0xf31513(0x50e)],'nativeName':_0x175fb4?.[_0xf31513(0x54b)]};try{this[_0xf31513(0x61e)]?.[_0xf31513(0x58d)]?.['error']?.('transaction\x20commit\x20failed',{'env':_0x3e16ed[_0xf31513(0x609)],'envPath':_0x3e16ed[_0xf31513(0x1f3)],'pid':_0x3e16ed[_0xf31513(0x4ab)],'txnId':_0x3e16ed['txnId'],'actionCount':_0x3e16ed[_0xf31513(0x269)],'actions':_0x3e16ed['actions'],'nativeCode':_0x3e16ed[_0xf31513(0x64a)],'error':_0x175fb4?.[_0xf31513(0x211)],'stack':_0x175fb4?.[_0xf31513(0x221)]});}catch{}throw new _0x2712f3(_0x175fb4?.[_0xf31513(0x211)]||_0xf31513(0x7e8),_0xf31513(0x398),_0x3e16ed);}this[_0xf31513(0x61e)][_0xf31513(0x4cb)]['emit'](_0x23b2a1[_0xf31513(0x623)],_0x5c7ed6);for(const _0x4a7eff of this[_0xf31513(0x8e8)]){try{await _0x4a7eff();}catch{}}this['actions']=[],this[_0xf31513(0x492)](),this[_0xf31513(0x417)]=!![];}static[_0xa32521(0x76e)](_0x5b593c){const _0x997473=_0xa32521;return Object[_0x997473(0x202)]({'id':_0x5b593c['id'],'put':_0x5b593c['put'][_0x997473(0x78f)](_0x5b593c),'update':_0x5b593c[_0x997473(0x5b4)][_0x997473(0x78f)](_0x5b593c),'patch':_0x5b593c[_0x997473(0x65b)][_0x997473(0x78f)](_0x5b593c),'create':_0x5b593c[_0x997473(0x67b)][_0x997473(0x78f)](_0x5b593c),'remove':_0x5b593c[_0x997473(0x504)][_0x997473(0x78f)](_0x5b593c),'setTTL':_0x5b593c['setTTL']['bind'](_0x5b593c),'clearTTL':_0x5b593c[_0x997473(0x599)][_0x997473(0x78f)](_0x5b593c),'commit':_0x5b593c[_0x997473(0x8e6)][_0x997473(0x78f)](_0x5b593c),'rollback':_0x5b593c[_0x997473(0x880)][_0x997473(0x78f)](_0x5b593c),'get':_0x5b593c['get'][_0x997473(0x78f)](_0x5b593c),'getEntry':_0x5b593c['getEntry'][_0x997473(0x78f)](_0x5b593c),'getMany':_0x5b593c[_0x997473(0x233)][_0x997473(0x78f)](_0x5b593c),'getRange':_0x5b593c[_0x997473(0x3ee)][_0x997473(0x78f)](_0x5b593c),'getValues':_0x5b593c[_0x997473(0x88a)][_0x997473(0x78f)](_0x5b593c),'getKeys':_0x5b593c[_0x997473(0x300)][_0x997473(0x78f)](_0x5b593c),'byIndex':_0x5b593c[_0x997473(0x5c4)][_0x997473(0x78f)](_0x5b593c),'query':_0x5b593c[_0x997473(0x69f)][_0x997473(0x78f)](_0x5b593c),'getClock':_0x5b593c[_0x997473(0x3b3)]['bind'](_0x5b593c),'getCount':_0x5b593c[_0x997473(0x8ce)][_0x997473(0x78f)](_0x5b593c),'read':_0x5b593c,'raw':_0x5b593c});}static[_0xa32521(0x78c)](_0x3c786b,_0x24e8fc=[]){const _0x3e0584=_0xa32521;if(!Array[_0x3e0584(0x439)](_0x24e8fc))throw new _0x2712f3(_0x3e0584(0x6ea),'TXN_INVALID_OPS');for(const _0x4d08a0 of _0x24e8fc){if(Array[_0x3e0584(0x439)](_0x4d08a0)){const [_0x42c0c6,..._0x1d1a48]=_0x4d08a0;if(typeof _0x3c786b[_0x42c0c6]!==_0x3e0584(0x640))throw new _0x2712f3(_0x3e0584(0x579)+_0x42c0c6,_0x3e0584(0x267),{'action':_0x42c0c6});_0x3c786b[_0x42c0c6](..._0x1d1a48);continue;}if(!_0x4d08a0||typeof _0x4d08a0!==_0x3e0584(0x559))throw new _0x2712f3('txn\x20op\x20must\x20be\x20an\x20object\x20or\x20tuple',_0x3e0584(0x4de));const {action:_0x46c1f6}=_0x4d08a0;if(typeof _0x46c1f6!==_0x3e0584(0x2b1)||typeof _0x3c786b[_0x46c1f6]!==_0x3e0584(0x640))throw new _0x2712f3(_0x3e0584(0x579)+_0x46c1f6,_0x3e0584(0x267),{'action':_0x46c1f6});switch(_0x46c1f6){case _0x3e0584(0x253):case'update':case'create':_0x3c786b[_0x46c1f6](_0x4d08a0[_0x3e0584(0x45d)],_0x4d08a0[_0x3e0584(0x82f)],_0x4d08a0[_0x3e0584(0x2ef)],{..._0x4d08a0[_0x3e0584(0x688)],'ttl':_0x4d08a0['ttl']??_0x4d08a0['options']?.[_0x3e0584(0x31e)]??null});break;case'patch':_0x3c786b[_0x3e0584(0x65b)](_0x4d08a0[_0x3e0584(0x45d)],_0x4d08a0[_0x3e0584(0x82f)],_0x4d08a0[_0x3e0584(0x65b)],{..._0x4d08a0[_0x3e0584(0x688)],'ttl':_0x4d08a0[_0x3e0584(0x31e)]??_0x4d08a0[_0x3e0584(0x688)]?.['ttl']??null});break;case _0x3e0584(0x504):_0x3c786b[_0x3e0584(0x504)](_0x4d08a0[_0x3e0584(0x45d)],_0x4d08a0['key'],_0x4d08a0['options']||{});break;case _0x3e0584(0x246):_0x3c786b[_0x3e0584(0x246)](_0x4d08a0[_0x3e0584(0x45d)],_0x4d08a0['key'],_0x4d08a0[_0x3e0584(0x31e)]);break;case _0x3e0584(0x599):_0x3c786b['clearTTL'](_0x4d08a0[_0x3e0584(0x45d)],_0x4d08a0[_0x3e0584(0x82f)]);break;default:throw new _0x2712f3('Unsupported\x20transaction\x20action:\x20'+_0x46c1f6,_0x3e0584(0x267),{'action':_0x46c1f6});}}}static async[_0xa32521(0x84c)](_0x3e974e,_0x37ca4e,_0x3eb5b4={}){const _0x472929=_0xa32521,_0x2e8cb9=new _0x5a45b2(_0x3e974e,_0x3eb5b4),_0x4cc33b=_0x5a45b2[_0x472929(0x76e)](_0x2e8cb9);try{typeof _0x37ca4e===_0x472929(0x640)?await _0x37ca4e(_0x4cc33b):_0x5a45b2[_0x472929(0x78c)](_0x2e8cb9,_0x37ca4e||[]);const _0x9c8c5b=_0x2e8cb9[_0x472929(0x5c3)][_0x472929(0x68a)];return await _0x2e8cb9[_0x472929(0x8e6)](),{'id':_0x2e8cb9['id'],'actions':_0x9c8c5b};}catch(_0x3cd5da){try{_0x2e8cb9[_0x472929(0x880)]();}catch(_0x282f81){}throw _0x3cd5da;}}}return okdbTransaction=_0x5a45b2,okdbTransaction;}var dist={},hasRequiredDist;function requireDist(){const _0x33c963=_0x5c70f8;if(hasRequiredDist)return dist;hasRequiredDist=0x1,Object[_0x33c963(0x1fd)](dist,_0x33c963(0x303),{'value':!![]});const _0x3adf8f=new Float64Array(0x2),_0x33af14=new Int32Array(_0x3adf8f[_0x33c963(0x4b0)],0x0,0x4),{lowIdx:_0x545a83,highIdx:_0x12756d}=((()=>{const _0x4be03f=_0x33c963;if(new Uint8Array(new Uint32Array([0xffee1100])[_0x4be03f(0x4b0)])[0x0]===0xff)return{'lowIdx':0x1,'highIdx':0x0};return{'lowIdx':0x0,'highIdx':0x1};})());let _0x1d20d8=![],_0xa12111;try{_0xa12111=new TextEncoder();}catch(_0x360dc5){}function _0x596a51(_0xfc5ea7,_0x2f5d37,_0xfd27d5,_0x31073f){const _0x1b1f28=_0x33c963;let _0x4bbbbf=_0x2f5d37[_0x1b1f28(0x409)];if(!_0x4bbbbf)_0x4bbbbf=_0x2f5d37[_0x1b1f28(0x409)]=new DataView(_0x2f5d37[_0x1b1f28(0x4b0)],_0x2f5d37[_0x1b1f28(0x204)],_0x2f5d37[_0x1b1f28(0x43d)]+0x3>>0x2<<0x2);switch(typeof _0xfc5ea7){case _0x1b1f28(0x2b1):let _0x5f0eb1=_0xfc5ea7[_0x1b1f28(0x68a)],_0xad5f35=_0xfc5ea7[_0x1b1f28(0x82e)](0x0);if(!(_0xad5f35>=0x1c))_0x2f5d37[_0xfd27d5++]=0x1b;if(_0x5f0eb1<0x40){let _0x154829,_0x5e63a5;for(_0x154829=0x0;_0x154829<_0x5f0eb1;_0x154829++){_0xad5f35=_0xfc5ea7[_0x1b1f28(0x82e)](_0x154829);if(_0xad5f35<=0x4)_0x2f5d37[_0xfd27d5++]=0x4,_0x2f5d37[_0xfd27d5++]=_0xad5f35;else{if(_0xad5f35<0x80)_0x2f5d37[_0xfd27d5++]=_0xad5f35;else{if(_0xad5f35<0x800)_0x2f5d37[_0xfd27d5++]=_0xad5f35>>0x6|0xc0,_0x2f5d37[_0xfd27d5++]=_0xad5f35&0x3f|0x80;else(_0xad5f35&0xfc00)===0xd800&&((_0x5e63a5=_0xfc5ea7[_0x1b1f28(0x82e)](_0x154829+0x1))&0xfc00)===0xdc00?(_0xad5f35=0x10000+((_0xad5f35&0x3ff)<<0xa)+(_0x5e63a5&0x3ff),_0x154829++,_0x2f5d37[_0xfd27d5++]=_0xad5f35>>0x12|0xf0,_0x2f5d37[_0xfd27d5++]=_0xad5f35>>0xc&0x3f|0x80,_0x2f5d37[_0xfd27d5++]=_0xad5f35>>0x6&0x3f|0x80,_0x2f5d37[_0xfd27d5++]=_0xad5f35&0x3f|0x80):(_0x2f5d37[_0xfd27d5++]=_0xad5f35>>0xc|0xe0,_0x2f5d37[_0xfd27d5++]=_0xad5f35>>0x6&0x3f|0x80,_0x2f5d37[_0xfd27d5++]=_0xad5f35&0x3f|0x80);}}}}else{if(_0x2f5d37[_0x1b1f28(0x685)])_0xfd27d5+=_0x2f5d37['utf8Write'](_0xfc5ea7,_0xfd27d5,_0x2f5d37[_0x1b1f28(0x43d)]-_0xfd27d5);else _0xfd27d5+=_0xa12111[_0x1b1f28(0x6a2)](_0xfc5ea7,_0x2f5d37[_0x1b1f28(0x5c6)](_0xfd27d5))[_0x1b1f28(0x372)];if(_0xfd27d5>_0x2f5d37[_0x1b1f28(0x68a)]-0x4)throw new RangeError(_0x1b1f28(0x567));}break;case'number':_0x3adf8f[0x0]=_0xfc5ea7;let _0x3bc12d=_0x33af14[_0x545a83],_0x52b337=_0x33af14[_0x12756d],_0x3b8072;if(_0xfc5ea7<0x0)return _0x4bbbbf[_0x1b1f28(0x879)](_0xfd27d5+0x4,~(_0x3bc12d>>>0x4|_0x52b337<<0x1c)),_0x4bbbbf['setInt32'](_0xfd27d5+0x0,(_0x52b337^0x7fffffff)>>>0x4),_0x4bbbbf[_0x1b1f28(0x879)](_0xfd27d5+0x8,(_0x3bc12d&0xf^0xf)<<0x4,!![]),_0xfd27d5+0x9;else{if(_0x3bc12d&0xf||_0x31073f)_0x3b8072=0x9;else{if(_0x3bc12d&0xfffff)_0x3b8072=0x8;else{if(_0x3bc12d||_0x52b337&0xf)_0x3b8072=0x6;else _0x3b8072=0x4;}}}_0x4bbbbf[_0x1b1f28(0x879)](_0xfd27d5+0x0,_0x52b337>>>0x4|0x10000000),_0x4bbbbf['setInt32'](_0xfd27d5+0x4,_0x3bc12d>>>0x4|_0x52b337<<0x1c),_0x4bbbbf[_0x1b1f28(0x879)](_0xfd27d5+0x8,(_0x3bc12d&0xf)<<0x4,!![]);return _0xfd27d5+_0x3b8072;case _0x1b1f28(0x559):if(_0xfc5ea7){if(Array[_0x1b1f28(0x439)](_0xfc5ea7)){for(let _0x468521=0x0,_0x19afaf=_0xfc5ea7[_0x1b1f28(0x68a)];_0x468521<_0x19afaf;_0x468521++){if(_0x468521>0x0)_0x2f5d37[_0xfd27d5++]=0x0;_0xfd27d5=_0x596a51(_0xfc5ea7[_0x468521],_0x2f5d37,_0xfd27d5,!![]);}break;}else{if(_0xfc5ea7 instanceof Uint8Array){_0x2f5d37[_0x1b1f28(0x63f)](_0xfc5ea7,_0xfd27d5),_0xfd27d5+=_0xfc5ea7[_0x1b1f28(0x68a)];break;}else throw new Error('Unable\x20to\x20serialize\x20object\x20as\x20a\x20key:\x20'+JSON[_0x1b1f28(0x35a)](_0xfc5ea7));}}else _0x2f5d37[_0xfd27d5++]=0x0;break;case _0x1b1f28(0x275):_0x4bbbbf['setUint32'](_0xfd27d5++,_0xfc5ea7?0x7:0x6,!![]);return _0xfd27d5;case _0x1b1f28(0x451):let _0x42237c=Number(_0xfc5ea7);if(BigInt(_0x42237c)>_0xfc5ea7){_0x3adf8f[0x0]=_0x42237c;if(_0x42237c>0x0){if(_0x33af14[_0x545a83])_0x33af14[_0x545a83]--;else _0x33af14[_0x12756d]--,_0x33af14[_0x545a83]=0xffffffff;}else{if(_0x33af14[_0x545a83]<0xffffffff)_0x33af14[_0x545a83]++;else _0x33af14[_0x12756d]++,_0x33af14[_0x545a83]=0x0;}_0x42237c=_0x3adf8f[0x0];}let _0x5f194e=_0xfc5ea7-BigInt(_0x42237c);if(_0x5f194e===0x0n)return _0x596a51(_0x42237c,_0x2f5d37,_0xfd27d5,_0x31073f);_0x596a51(_0x42237c,_0x2f5d37,_0xfd27d5,_0x31073f),_0xfd27d5+=0x9;let _0x275dbd=BigInt((_0x33af14[_0x12756d]>>0x14&0x7ff)-0x437),_0x12dbf6=_0x5f194e>>_0x275dbd;_0x2f5d37[_0xfd27d5-0x1]|=Number(_0x12dbf6),_0x5f194e-=_0x12dbf6<<_0x275dbd;let _0x56fd95=!![];while(_0x5f194e||_0x56fd95){_0x56fd95=![],_0x275dbd-=0x7n;let _0x461c8a=_0x5f194e>>_0x275dbd;_0x2f5d37[_0xfd27d5++]=Number(_0x461c8a)|0x80,_0x5f194e-=_0x461c8a<<_0x275dbd;}return _0xfd27d5;case'undefined':return _0xfd27d5;case _0x1b1f28(0x490):_0x2f5d37[_0xfd27d5++]=0x2;return _0x596a51(_0xfc5ea7[_0x1b1f28(0x2e0)],_0x2f5d37,_0xfd27d5,_0x31073f);default:throw new Error('Can\x20not\x20serialize\x20key\x20of\x20type\x20'+typeof _0xfc5ea7);}if(_0x1d20d8&&!_0x31073f)_0x4bbbbf[_0x1b1f28(0x546)](_0xfd27d5,0x0);return _0xfd27d5;}let _0x90b608;function _0x29ba30(_0x27bdd7,_0x5576d3,_0x54fd97,_0x2064b0){const _0x2452f6=_0x33c963;_0x90b608=_0x5576d3;let _0x39ed09=_0x27bdd7[_0x90b608],_0x5f0509;if(_0x39ed09<0x18){if(_0x39ed09<0x8){_0x90b608++;if(_0x39ed09==0x6)_0x5f0509=![];else{if(_0x39ed09==0x7)_0x5f0509=!![];else{if(_0x39ed09==0x0)_0x5f0509=null;else{if(_0x39ed09==0x2)_0x5f0509=Symbol[_0x2452f6(0x708)](_0x5ebf02(_0x27bdd7,_0x54fd97));else return Uint8Array[_0x2452f6(0x511)]['slice'][_0x2452f6(0x4d1)](_0x27bdd7,_0x5576d3,_0x54fd97);}}}}else{let _0x3bdca4;try{_0x3bdca4=_0x27bdd7[_0x2452f6(0x409)]||(_0x27bdd7['dataView']=new DataView(_0x27bdd7[_0x2452f6(0x4b0)],_0x27bdd7[_0x2452f6(0x204)],_0x27bdd7['byteLength']+0x3>>0x2<<0x2));}catch(_0x1c714a){_0x3bdca4=_0x27bdd7[_0x2452f6(0x409)]||(_0x27bdd7[_0x2452f6(0x409)]=new DataView(_0x27bdd7[_0x2452f6(0x4b0)],_0x27bdd7[_0x2452f6(0x204)],_0x27bdd7[_0x2452f6(0x4b0)][_0x2452f6(0x43d)]-_0x27bdd7['byteOffset']));}let _0x35cc29=_0x3bdca4[_0x2452f6(0x82a)](_0x90b608)<<0x4,_0x4dc581=_0x54fd97-_0x90b608,_0x12b0c9;if(_0x4dc581>0x4)_0x12b0c9=_0x90b608+0x8<=_0x27bdd7[_0x2452f6(0x68a)]?_0x3bdca4[_0x2452f6(0x82a)](_0x90b608+0x4):_0x27bdd7[_0x90b608+0x4]<<0x18|_0x27bdd7[_0x90b608+0x5]<<0x10|_0x27bdd7[_0x90b608+0x6]<<0x8|_0x27bdd7[_0x90b608+0x7],_0x35cc29|=_0x12b0c9>>>0x1c,_0x4dc581<=0x6&&(_0x12b0c9&=-0x10000),_0x12b0c9=_0x12b0c9<<0x4,_0x4dc581>0x8&&(_0x12b0c9=_0x12b0c9|_0x27bdd7[_0x90b608+0x8]>>0x4);else _0x12b0c9=0x0;_0x39ed09<0x10&&(_0x35cc29=_0x35cc29^0x7fffffff,_0x12b0c9=~_0x12b0c9);_0x33af14[_0x12756d]=_0x35cc29,_0x33af14[_0x545a83]=_0x12b0c9,_0x5f0509=_0x3adf8f[0x0],_0x90b608+=0x9;if(_0x4dc581>0x9&&_0x27bdd7[_0x90b608]>0x0){_0x5f0509=BigInt(_0x5f0509);let _0x4121b3=_0x35cc29>>0x14&0x7ff,_0x17ff33=_0x27bdd7[_0x90b608-0x1]&0xf;_0x5f0509+=BigInt(_0x17ff33)<<BigInt(_0x4121b3-0x437);while((_0x17ff33=_0x27bdd7[_0x90b608])>0x0&&_0x90b608++<_0x54fd97){_0x5f0509+=BigInt(_0x17ff33&0x7f)<<BigInt((_0x5576d3-_0x90b608)*0x7+_0x4121b3-0x3f8);}}}}else{_0x39ed09==0x1b&&_0x90b608++;_0x5f0509=_0x5ebf02(_0x27bdd7,_0x54fd97);if(_0x90b608<_0x54fd97)_0x90b608--;}while(_0x90b608<_0x54fd97){if(_0x27bdd7[_0x90b608]===0x0)_0x90b608++;if(_0x2064b0)return _0x4e7344[_0x2452f6(0x238)]=_0x90b608,_0x5f0509;let _0x3393ee=_0x29ba30(_0x27bdd7,_0x90b608,_0x54fd97,!![]);if(_0x5f0509 instanceof Array)_0x5f0509[_0x2452f6(0x28d)](_0x3393ee);else _0x5f0509=[_0x5f0509,_0x3393ee];}return _0x5f0509;}const _0x43cfcf=()=>_0x1d20d8=!![],_0x4e7344={'writeKey':_0x596a51,'readKey':_0x29ba30,'enableNullTermination':_0x43cfcf};let _0x47c234=[],_0x2f635c=0x0;const _0x345e7f=typeof Buffer!==_0x33c963(0x6a3),_0x4669db=_0x345e7f?Buffer[_0x33c963(0x6fb)]:Uint8Array,_0x5ce7b9=_0x3b6a05=>{const _0x50abc6=_0x33c963;let _0x20f7b2;_0x2f635c+0x64>_0x47c234[_0x50abc6(0x68a)]&&(_0x47c234=new _0x4669db(0x2000),_0x2f635c=0x0,_0x20f7b2=!![]);try{let _0x22bcd3=_0x47c234['slice'](_0x2f635c,_0x2f635c=_0x596a51(_0x3b6a05,_0x47c234,_0x2f635c));if(_0x2f635c>_0x47c234[_0x50abc6(0x68a)]){if(_0x20f7b2)throw new Error('Key\x20is\x20too\x20large');return _0x5ce7b9(_0x3b6a05);}return _0x22bcd3;}catch(_0x1f7781){if(_0x20f7b2)throw _0x1f7781;return _0x2f635c=_0x47c234[_0x50abc6(0x68a)],_0x5ce7b9(_0x3b6a05);}},_0x517b2f=_0xdf0a53=>{const _0x208fbd=_0x33c963;return _0x29ba30(_0xdf0a53,0x0,_0xdf0a53[_0x208fbd(0x68a)]);},_0x2fbb51=String[_0x33c963(0x205)];function _0xc56f7a(){const _0x16c67b=_0x33c963;let _0x165821=_0x16c67b(0x580),_0x30b328=[];for(let _0x51721b=0x0;_0x51721b<0x30;_0x51721b++){let _0x5b6699=_0x2fbb51((_0x51721b&0xf)+0x61)+_0x2fbb51((_0x51721b>>0x4)+0x61);_0x165821+=_0x16c67b(0x3b5)+_0x5b6699+_0x16c67b(0x540)+_0x5b6699+_0x16c67b(0x5c9)+_0x5b6699+_0x16c67b(0x7dc)+_0x5b6699+_0x16c67b(0x33b)+_0x5b6699+',\x20source)\x0a\x09\x09}\x20else\x20{\x0a\x09\x09\x09if\x20('+_0x5b6699+_0x16c67b(0x8ac)+_0x5b6699+_0x16c67b(0x73a)+_0x30b328+_0x16c67b(0x64f),_0x30b328[_0x16c67b(0x28d)](_0x5b6699);}return _0x165821+=_0x16c67b(0x738)+_0x30b328+_0x16c67b(0x467),_0x165821;}const _0x1a65b3=typeof process!==_0x33c963(0x6a3)&&process[_0x33c963(0x433)]?function(_0x1a3851){let {setPosition:_0x1c8f45,getPosition:_0x27904c,readString:_0x41e771}=_0x1a3851;return _0x1f56ca=>{_0x1c8f45(_0x90b608);let _0x106657=_0x41e771(_0x1f56ca);return _0x90b608=_0x27904c(),_0x106657;};}(new Function('fromCharCode',_0x33c963(0x3be)+_0xc56f7a()+_0x33c963(0x42a)+_0x33c963(0x7d9)+_0x33c963(0x341)+_0x33c963(0x483))(_0x2fbb51)):eval(_0xc56f7a());function _0x5ebf02(_0x2d4b36,_0x36c84c){if(_0x2d4b36[_0x36c84c]>0x0){let _0x5ceb1c=_0x2d4b36[_0x36c84c];try{return _0x2d4b36[_0x36c84c]=0x0,_0x1a65b3(_0x2d4b36);}finally{_0x2d4b36[_0x36c84c]=_0x5ceb1c;}}else return _0x1a65b3(_0x2d4b36);}function _0xe107f8(_0x139655,_0x203269){const _0x393bb9=_0x33c963;if(typeof _0x139655==_0x393bb9(0x559)){if(!_0x139655)return _0x203269==null?0x0:-0x1;if(_0x139655[_0x393bb9(0x8d9)]){if(_0x203269==null)return 0x1;else return _0x203269[_0x393bb9(0x8d9)]?_0x139655[_0x393bb9(0x8d9)](_0x203269):-0x1;}let _0x1b432e;if(_0x203269 instanceof Array){let _0x11b13d=0x0;while((_0x1b432e=_0xe107f8(_0x139655[_0x11b13d],_0x203269[_0x11b13d]))==0x0&&_0x11b13d<=_0x139655[_0x393bb9(0x68a)]){_0x11b13d++;}return _0x1b432e;}_0x1b432e=_0xe107f8(_0x139655[0x0],_0x203269);if(_0x1b432e==0x0&&_0x139655['length']>0x1)return 0x1;return _0x1b432e;}else{if(typeof _0x139655==typeof _0x203269)return typeof _0x139655===_0x393bb9(0x490)&&(_0x139655=Symbol[_0x393bb9(0x33f)](_0x139655),_0x203269=Symbol[_0x393bb9(0x33f)](_0x203269)),_0x139655<_0x203269?-0x1:_0x139655===_0x203269?0x0:0x1;else{if(typeof _0x203269=='object'){if(_0x203269 instanceof Array)return-_0xe107f8(_0x203269,_0x139655);return 0x1;}else return _0x4d9158[typeof _0x139655]<_0x4d9158[typeof _0x203269]?-0x1:0x1;}}}const _0x4d9158={'symbol':0x0,'undefined':0x1,'boolean':0x2,'number':0x3,'string':0x4},_0x735fe1=null,_0x4ef7a3=new Uint8Array([0xff]);return dist[_0x33c963(0x530)]=_0x4ef7a3,dist['MINIMUM_KEY']=_0x735fe1,dist['compareKeys']=_0xe107f8,dist['enableNullTermination']=_0x43cfcf,dist[_0x33c963(0x72c)]=_0x4e7344,dist[_0x33c963(0x428)]=_0x517b2f,dist['readKey']=_0x29ba30,dist[_0x33c963(0x480)]=_0x5ce7b9,dist[_0x33c963(0x5ac)]=_0x596a51,dist;}var keyenc,hasRequiredKeyenc;function requireKeyenc(){if(hasRequiredKeyenc)return keyenc;hasRequiredKeyenc=0x1;const {writeKey:_0x3ed42c}=requireDist(),_0x5ec42a=0x7ba,_0x3dde7d=0x1000;function _0x3d4f43(_0xe95a6,_0x431ae3){const _0x3da936=_0x52a3;switch(typeof _0xe95a6){case _0x3da936(0x2b1):return _0xe95a6['length']<=_0x5ec42a&&_0xe95a6[_0x3da936(0x539)]();case'number':case _0x3da936(0x275):return!![];case _0x3da936(0x559):if(_0xe95a6===null)return!![];if(Array[_0x3da936(0x439)](_0xe95a6)){if(_0x431ae3>0x8||_0xe95a6[_0x3da936(0x68a)]>_0x5ec42a)return![];for(let _0xf297b0=0x0;_0xf297b0<_0xe95a6['length'];_0xf297b0++)if(!_0x3d4f43(_0xe95a6[_0xf297b0],_0x431ae3+0x1))return![];return!![];}return Buffer['isBuffer'](_0xe95a6)&&_0xe95a6[_0x3da936(0x68a)]<=_0x5ec42a;default:return![];}}function _0x29c999(_0x1ec8cc,_0x3f5ff0){const _0x3686ad=_0x52a3,_0x177c95=typeof _0x1ec8cc;if(_0x177c95===_0x3686ad(0x2b1)){if(_0x1ec8cc[_0x3686ad(0x68a)]>=0x40||!_0x1ec8cc['isWellFormed']()){if(!_0x3d4f43(_0x1ec8cc,0x0))return-0x1;}}else{if(_0x177c95!==_0x3686ad(0x6e7)){if(Array['isArray'](_0x1ec8cc)?_0x1ec8cc[_0x3686ad(0x68a)]===0x0||!_0x3d4f43(_0x1ec8cc,0x0):!_0x3d4f43(_0x1ec8cc,0x0))return-0x1;}}let _0x53e712;try{_0x53e712=_0x3ed42c(_0x1ec8cc,_0x3f5ff0,0x0);}catch{return-0x1;}return _0x53e712>0x0&&_0x53e712<=_0x5ec42a?_0x53e712:-0x1;}return keyenc={'encodeKey':_0x29c999,'KEY_BUF_SIZE':_0x3dde7d,'NO_FAST':Symbol('okdb.noFast')},keyenc;}var okdbHlc,hasRequiredOkdbHlc;function requireOkdbHlc(){const _0x41be86=_0x5c70f8;if(hasRequiredOkdbHlc)return okdbHlc;hasRequiredOkdbHlc=0x1;const _0x3ef3f0=0x400,_0x19a315=_0x3ef3f0-0x1,_0x2ad171=0xea60;function _0xd85f3b(_0x271516,_0x819ff5){const _0x58ea76=_0x52a3;return _0x271516*_0x3ef3f0+Math['max'](0x0,Math[_0x58ea76(0x597)](_0x819ff5,_0x19a315));}function _0x536028(_0x326e3a){const _0x77a3ac=Math['max'](0x0,Number(_0x326e3a)||0x0),_0x308e0b=_0x77a3ac%_0x3ef3f0,_0x4677f9=(_0x77a3ac-_0x308e0b)/_0x3ef3f0;return{'pt':_0x4677f9,'l':_0x308e0b};}function _0x20d7b4(_0x3fbaeb,_0x40f28b=Date[_0x41be86(0x8cc)]()){const _0x2138ce=_0x41be86,{pt:_0x43b640,l:_0x5dbd88}=_0x536028(_0x3fbaeb),_0x49d9f9=Math[_0x2138ce(0x4a0)](_0x43b640,_0x40f28b),_0x447aad=_0x49d9f9===_0x43b640?Math[_0x2138ce(0x597)](_0x5dbd88+0x1,_0x19a315):0x0;return _0xd85f3b(_0x49d9f9,_0x447aad);}function _0x37a475(_0x3a5f2b,_0x1fc873,_0x5e70b0=Date[_0x41be86(0x8cc)]()){const _0x2a015e=_0x41be86,{pt:_0x4c1426,l:_0x4b583c}=_0x536028(_0x3a5f2b),{pt:_0x260c58,l:_0x334b5c}=_0x536028(_0x1fc873),_0x39d4ec=Math[_0x2a015e(0x4a0)](_0x4c1426,_0x260c58,_0x5e70b0);let _0x197870;if(_0x39d4ec===_0x4c1426&&_0x39d4ec===_0x260c58)_0x197870=Math[_0x2a015e(0x597)](Math[_0x2a015e(0x4a0)](_0x4b583c,_0x334b5c)+0x1,_0x19a315);else{if(_0x39d4ec===_0x4c1426)_0x197870=Math['min'](_0x4b583c+0x1,_0x19a315);else _0x39d4ec===_0x260c58?_0x197870=Math['min'](_0x334b5c+0x1,_0x19a315):_0x197870=0x0;}return _0xd85f3b(_0x39d4ec,_0x197870);}function _0x41c557(_0x1f9f9a,_0x4a796c){const _0x122773=Number(_0x1f9f9a)||0x0,_0x3741c7=Number(_0x4a796c)||0x0;if(_0x122773<_0x3741c7)return-0x1;if(_0x122773>_0x3741c7)return 0x1;return 0x0;}function _0x4a4955(_0x31b3a0){return _0x536028(_0x31b3a0)['pt'];}return okdbHlc={'send':_0x20d7b4,'recv':_0x37a475,'compare':_0x41c557,'toMs':_0x4a4955,'encode':_0xd85f3b,'decode':_0x536028,'SCALE':_0x3ef3f0,'L_MAX':_0x19a315,'DRIFT_MAX':_0x2ad171},okdbHlc;}var env,hasRequiredEnv;function requireEnv(){const _0x586020=_0x5c70f8;if(hasRequiredEnv)return env;hasRequiredEnv=0x1;const {fromArray:_0x3c7583,chunkedRange:_0x4f271f,pinnedChunks:_0x53dd84,claimPrefetch:_0x3d67b0}=requireIterable(),{reclass:_0x45bc2b,NotImplementedNative:_0x8f8e5a,OKDBError:_0xe3992f,optionsArg:_0x324607}=requireErrors(),{OKDBViews:_0x5a1f78}=requireViews(),{OKDBQueue:_0x5ce0fa}=requireQueue(),{OKDBTimeMachine:_0x375fd3}=requireTimemachine(),_0x24ddb9=_0xa6c313=>{const _0x4f36b5=_0x52a3;try{return!_0xa6c313[_0x4f36b5(0x782)]||_0xa6c313[_0x4f36b5(0x782)][_0x4f36b5(0x84a)]('timeMachine');}catch{return!![];}},{OKDBFiles:_0x42f508}=requireFiles(),{OKDBEngines:_0x2a3d6d,OKDBPipelines:_0x5c7fe8}=requireEngines(),{OKDBFunctions:_0x454de4}=requireFunctions(),_0x364b78=requireProcessor(),{RawDb:_0x1394ec}=requireRawdb(),_0x34d646=requireBridge();let _0x211a9f=null;const _0x2313f8=()=>_0x211a9f||=requireOkdbTransaction(),_0x4a3096=(..._0x6eb7c7)=>requireOkdbGuardedRange()['guardSnapshotIterable'](..._0x6eb7c7),_0x18f365=Buffer[_0x586020(0x48d)]([0xff]),_0x17e2fa=process.env.OKDB_NATIVE_RAW_READS!=='0',_0x336128=_0x17e2fa&&process.env.OKDB_NATIVE_FAST_GET!=='0',{NO_FAST:_0x39d868}=requireKeyenc(),_0x2bf396=new Set(_0x17e2fa?[_0x586020(0x3ee),_0x586020(0x5c4),_0x586020(0x69f),_0x586020(0x4d6),_0x586020(0x300)]:[]),_0xd29834=new Set(['get','getEntry',_0x586020(0x233),'getRange',_0x586020(0x300),_0x586020(0x88a),_0x586020(0x8ce),_0x586020(0x764),_0x586020(0x2dd),'byIndex',_0x586020(0x416),_0x586020(0x69f),_0x586020(0x40f),_0x586020(0x853),_0x586020(0x3b3),_0x586020(0x4d6),_0x586020(0x400),_0x586020(0x8cc),_0x586020(0x414),_0x586020(0x4c3),_0x586020(0x5f8),_0x586020(0x38b),_0x586020(0x49c),'pinned',_0x586020(0x7e7),_0x586020(0x7da),'hasUniqueViolations',_0x586020(0x212),_0x586020(0x28f),_0x586020(0x687),_0x586020(0x5c1),'getRefViolation','listRefViolations',_0x586020(0x40b),'listTTL','ttlStats',_0x586020(0x456),'name',_0x586020(0x500),'id',_0x586020(0x55f),_0x586020(0x4fe),_0x586020(0x819),_0x586020(0x7f8),_0x586020(0x22a)]),_0x2a3c96=new Set([_0x586020(0x45c),_0x586020(0x735),'reverse',_0x586020(0x582),_0x586020(0x353),_0x586020(0x6b8),_0x586020(0x757),_0x586020(0x305),_0x586020(0x5d0),_0x586020(0x41c),'transaction',_0x586020(0x82f),_0x586020(0x6b9),'prefix']);function _0x104df6(_0x4b1aa7,_0x75efce,_0x4af3d4){const _0x46ce64=new Map();return(_0x6fc3f7,_0x484e68)=>{const _0x5295c4=_0x52a3,_0x264d7f=JSON[_0x5295c4(0x35a)](_0x484e68),_0x355f75=_0x46ce64[_0x5295c4(0x309)](_0x264d7f);if(_0x355f75){if(_0x355f75[_0x5295c4(0x74f)]===_0x5295c4(0x321))throw _0x38e7d2();_0x46ce64['delete'](_0x264d7f);if(_0x355f75['state']==='err')throw _0x355f75[_0x5295c4(0x2ef)];return _0x355f75[_0x5295c4(0x2ef)];}const _0x654c82=_0x6fc3f7(..._0x484e68);if(!_0x654c82||typeof _0x654c82[_0x5295c4(0x801)]!=='function')return _0x654c82;const _0x368b69={'state':_0x5295c4(0x321),'value':undefined},_0x2798b1=(_0x596a07,_0x314626)=>{const _0x5f5688=_0x5295c4;_0x368b69[_0x5f5688(0x74f)]=_0x596a07,_0x368b69[_0x5f5688(0x2ef)]=_0x314626;if(_0x46ce64[_0x5f5688(0x309)](_0x264d7f)!==_0x368b69)return;setTimeout(()=>_0x46ce64[_0x5f5688(0x309)](_0x264d7f)===_0x368b69&&_0x46ce64[_0x5f5688(0x2cb)](_0x264d7f),0x7530)['unref']();try{_0x4b1aa7['okdb'][_0x5f5688(0x210)](_0x5f5688(0x4cb),null,_0x5f5688(0x5a2),[_0x5f5688(0x4b1),{'env':_0x4b1aa7[_0x5f5688(0x54b)],'type':_0x75efce,'field':_0x4af3d4}],!![]);}catch{}};_0x654c82['then'](_0x44c7ce=>_0x2798b1('ok',_0x44c7ce),_0x45b7e=>_0x2798b1('err',_0x45b7e));for(let _0x56f4fb=0x0;_0x56f4fb<0x64&&_0x368b69[_0x5295c4(0x74f)]==='pending';_0x56f4fb++)process[_0x5295c4(0x33e)]();if(_0x368b69[_0x5295c4(0x74f)]==='ok')return _0x368b69[_0x5295c4(0x2ef)];if(_0x368b69['state']===_0x5295c4(0x2d0))throw _0x368b69[_0x5295c4(0x2ef)];_0x46ce64[_0x5295c4(0x63f)](_0x264d7f,_0x368b69);throw _0x38e7d2();};}function _0x38e7d2(){const _0xc5626d=_0x586020;return Object['assign'](new Error(_0xc5626d(0x3e0)),{'code':_0xc5626d(0x6fe)});}class _0x1107fb{constructor(_0x58e2f6,_0x28138b){const _0x41daa1=_0x586020;this['okdb']=_0x58e2f6,this[_0x41daa1(0x54b)]=_0x28138b,this[_0x41daa1(0x4cb)]=_0x58e2f6[_0x41daa1(0x4cb)],this['log']=_0x58e2f6[_0x41daa1(0x58d)],this[_0x41daa1(0x663)]=!![],this[_0x41daa1(0x4c6)]=null,this['views']=new _0x5a1f78(this),this['processor']=new _0x364b78(this);if(!_0x28138b[_0x41daa1(0x38a)]('~')||_0x28138b[_0x41daa1(0x495)](_0x41daa1(0x6b2)))this[_0x41daa1(0x622)]=new _0x5ce0fa(this);if(!_0x28138b['startsWith']('~'))this[_0x41daa1(0x87a)]=new _0x42f508(this);this[_0x41daa1(0x7b5)]=new _0x454de4(_0x58e2f6,_0x28138b),this[_0x41daa1(0x655)]=new _0x2a3d6d(_0x58e2f6,_0x28138b,_0x58e2f6[_0x41daa1(0x655)]),this[_0x41daa1(0x723)]=new _0x5c7fe8(_0x58e2f6,_0x28138b);if(!_0x28138b[_0x41daa1(0x38a)]('~')&&_0x58e2f6[_0x41daa1(0x688)][_0x41daa1(0x58f)]&&_0x24ddb9(_0x58e2f6))this[_0x41daa1(0x58f)]=new _0x375fd3(this);_0x34d646[_0x41daa1(0x74c)](this[_0x41daa1(0x500)],this);const _0x597cca=this;this[_0x41daa1(0x767)]={async 'transaction'(_0x34f865){const _0x408348=_0x41daa1,_0x212891=[];_0x597cca[_0x408348(0x4c6)]=_0x212891;try{_0x34f865();}finally{_0x597cca[_0x408348(0x4c6)]=null;}return _0x597cca[_0x408348(0x61e)]['_wb'][_0x408348(0x26b)](_0x408348(0x609),_0x597cca[_0x408348(0x54b)],_0x408348(0x8e6),[_0x212891]);},'drain'(){const _0x4e1c7f=_0x41daa1;return _0x597cca[_0x4e1c7f(0x61e)][_0x4e1c7f(0x2d7)][_0x4e1c7f(0x3ec)]();},'flushLmdb'(){const _0x17f58d=_0x41daa1;return _0x597cca['okdb']['_wb'][_0x17f58d(0x3ec)]();},'markClosed'(){}};const _0x42a310=new _0x1394ec(this,'');_0x42a310['getStats']=()=>({'lastTxnId':this['_n'](_0x41daa1(0x55f),[])}),Object[_0x41daa1(0x1fd)](_0x42a310,_0x41daa1(0x7db),{'get':()=>this[_0x41daa1(0x61e)][_0x41daa1(0x2d7)][_0x41daa1(0x3ec)](),'configurable':!![]}),Object['defineProperty'](_0x42a310,_0x41daa1(0x299),{'get':()=>this[_0x41daa1(0x61e)][_0x41daa1(0x2d7)]['drain'](),'configurable':!![]});const _0x39eee6=_0x42a310['get'][_0x41daa1(0x78f)](_0x42a310);_0x42a310[_0x41daa1(0x309)]=_0x40fb45=>_0x40fb45===_0x41daa1(0x800)?this['_n'](_0x41daa1(0x3b3),[null]):_0x39eee6(_0x40fb45),this['db']=_0x42a310;}async[_0x586020(0x5df)](){const _0x2c520d=_0x586020;this[_0x2c520d(0x475)]=!![];}get[_0x586020(0x21c)](){const _0x1fbcd0=_0x586020;return new Map(this[_0x1fbcd0(0x61e)][_0x1fbcd0(0x210)]('db',null,'formerOrigins',[this['name']],![]));}get[_0x586020(0x394)](){const _0x20d16e=_0x586020;return this[_0x20d16e(0x4d0)]||(this[_0x20d16e(0x4d0)]=new _0x1394ec(this,_0x20d16e(0x3ba)));}['_getType'](_0xb21975){const _0x2d5268=_0x586020,_0x122c21=this[_0x2d5268(0x394)][_0x2d5268(0x309)](_0xb21975);if(_0x122c21===undefined||String(_0xb21975)[_0x2d5268(0x38a)](_0x2d5268(0x586))||String(_0xb21975)[_0x2d5268(0x38a)]('__fts:')){const {OKDBError:_0x2c4980}=requireErrors();throw new _0x2c4980(_0x2d5268(0x63c)+_0xb21975+_0x2d5268(0x290),_0x2d5268(0x1ca),{'type':_0xb21975});}const _0x1941db=this,_0x12ed8f=new _0x1394ec(_0x1941db,_0x2d5268(0x8b7)+_0xb21975+':index'),_0x58a3d0=new Map();for(const _0x498e77 of _0x12ed8f[_0x2d5268(0x300)]()){const _0x5070a3=_0x12ed8f['get'](_0x498e77)||{},_0x39dbf4={'parts':_0x498e77[_0x2d5268(0x5e4)]('~'),'db':new _0x1394ec(_0x1941db,_0x2d5268(0x8b7)+_0xb21975+_0x2d5268(0x76d)+_0x498e77,{'dupSort':!![]})};if(_0x5070a3[_0x2d5268(0x2de)])_0x39dbf4[_0x2d5268(0x2de)]=_0x5070a3['geoConfig'];if(_0x5070a3['unique'])_0x39dbf4[_0x2d5268(0x21e)]=!![];if(_0x5070a3[_0x2d5268(0x856)])_0x39dbf4['sparse']=!![];if(_0x5070a3[_0x2d5268(0x2d2)])_0x39dbf4[_0x2d5268(0x2d2)]=_0x5070a3['createdBy'];_0x39dbf4['usedBy']=new Set((_0x5070a3['usedBy']??[])[_0x2d5268(0x35e)](_0x150cae=>_0x150cae[_0x2d5268(0x2a7)]+':'+_0x150cae[_0x2d5268(0x54b)])),_0x58a3d0[_0x2d5268(0x63f)](_0x498e77,_0x39dbf4);}return{'root':new _0x1394ec(_0x1941db,'type:'+_0xb21975),'data':new _0x1394ec(_0x1941db,_0x2d5268(0x8b7)+_0xb21975+_0x2d5268(0x3b7),{'useVersions':!![]}),'indexes':_0x12ed8f,'clockToChange':new _0x1394ec(_0x1941db,_0x2d5268(0x8b7)+_0xb21975+_0x2d5268(0x4aa)),'keyToChange':new _0x1394ec(_0x1941db,_0x2d5268(0x8b7)+_0xb21975+':keyToChange'),'fieldSchema':new Map(Object[_0x2d5268(0x719)](_0x122c21[_0x2d5268(0x376)]||{})[_0x2d5268(0x35e)](([_0x239bc3,_0x1e9b52])=>[_0x239bc3,new Set(Array[_0x2d5268(0x439)](_0x1e9b52)?_0x1e9b52:[_0x1e9b52])])),'indexToDb':_0x58a3d0,'ftsToDb':null,'schema':_0x122c21['schema']||null,'defaultTTL':_0x122c21[_0x2d5268(0x55d)]||null};}get[_0x586020(0x760)](){const _0x4d0b4e=_0x586020,_0x16b0a7=this,_0xc8771a=()=>_0x16b0a7[_0x4d0b4e(0x4c3)]();return{'get':_0x1addcd=>{const _0x2b8ed0=_0x4d0b4e;try{return _0x16b0a7[_0x2b8ed0(0x3c8)](_0x1addcd);}catch{return undefined;}},'has':_0x2196fb=>_0xc8771a()[_0x4d0b4e(0x495)](_0x2196fb),'keys':()=>_0xc8771a()[Symbol['iterator']](),get 'size'(){const _0x6f2374=_0x4d0b4e;return _0xc8771a()[_0x6f2374(0x68a)];}};}[_0x586020(0x695)](){const _0x4975ae=_0x586020;return this[_0x4975ae(0x4c3)]();}get[_0x586020(0x365)](){const _0x59731d=_0x586020;return this[_0x59731d(0x506)]||(this['_changeToClockDb']=new _0x1394ec(this,'changes'));}get['clockToChangeDb'](){const _0x67f1b4=_0x586020;return this[_0x67f1b4(0x6ec)]||(this[_0x67f1b4(0x6ec)]=new _0x1394ec(this,_0x67f1b4(0x855)));}[_0x586020(0x222)](_0x37b6c4){const _0x1f8cdf=_0x586020;return this['_n'](_0x1f8cdf(0x556),[_0x37b6c4]);}get[_0x586020(0x746)](){const _0xdf362e=_0x586020;return!this['_n'](_0xdf362e(0x8ef),[],![]);}get[_0x586020(0x7d7)](){const _0x11afac=_0x586020;return this['__syncOverride']!==undefined?this['__syncOverride']:this['_n'](_0x11afac(0x8ef),[],![]);}set[_0x586020(0x7d7)](_0x28aee3){const _0x24de56=_0x586020;this[_0x24de56(0x7e9)]=_0x28aee3;}get[_0x586020(0x3f5)](){const _0x43afad=_0x586020;return this['_compactLock']||(this[_0x43afad(0x463)]=new(requireLock())['NativeLock'](this[_0x43afad(0x61e)],_0x43afad(0x5b5),_0x43afad(0x502),{'ttlMs':0xea60}));}get[_0x586020(0x500)](){const _0x21d2ba=_0x586020;return this[_0x21d2ba(0x1cb)]??(this[_0x21d2ba(0x1cb)]=this['_n'](_0x21d2ba(0x500),[]));}get['id'](){return this['_n']('id',[]);}get[_0x586020(0x3e4)](){const _0x5b66e0=_0x586020;return this[_0x5b66e0(0x61e)][_0x5b66e0(0x3e4)];}['_n'](_0x4c93ce,_0x428cf2){const _0x585de4=_0x586020;return this[_0x585de4(0x61e)][_0x585de4(0x210)](_0x585de4(0x609),this[_0x585de4(0x54b)],_0x4c93ce,_0x428cf2,!_0xd29834['has'](_0x4c93ce));}[_0x586020(0x30a)](_0x5a644d){const _0x501f13=_0x586020;return this[_0x501f13(0x61e)][_0x501f13(0x7aa)](_0x5a644d);}[_0x586020(0x44d)](_0x1c5d51,_0x4c265c){const _0x4a53c8=_0x586020;if(_0x2bf396['has'](_0x1c5d51===_0x4a53c8(0x6a1)?_0x4c265c[0x1]:_0x1c5d51))return this['okdb'][_0x4a53c8(0x6fc)](this[_0x4a53c8(0x54b)],_0x1c5d51,_0x4c265c);return this[_0x4a53c8(0x61e)]['_callPacked'](_0x4a53c8(0x609),this[_0x4a53c8(0x54b)],_0x1c5d51,_0x4c265c);}[_0x586020(0x68f)](_0x376ec1={'useReadTransaction':![]}){return new(_0x2313f8())(this,_0x376ec1);}async['txn'](_0xa63819,_0x3d7a65){const _0x28c550=_0x586020;return _0x2313f8()[_0x28c550(0x84c)](this,_0xa63819,_0x3d7a65);}[_0x586020(0x33d)](_0x41e2c1,_0x33d47e){const _0x53ac96=_0x586020;if(this['_txnBuf'])this[_0x53ac96(0x4c6)]['push']({'action':_0x41e2c1,'args':_0x33d47e});else this['_n'](_0x41e2c1,_0x33d47e);}[_0x586020(0x482)](_0x410bd3,_0xb616cc,_0x3c164d,_0x537628,_0x4ea4e9){const _0x1dbf81=_0x586020;this[_0x1dbf81(0x33d)](_0x1dbf81(0x253),[_0xb616cc,_0x3c164d,_0x537628,_0x4ea4e9]);}[_0x586020(0x362)](_0x95de85,_0x461e62,_0x5addee,_0x185773,_0x20abc3){const _0x28cafe=_0x586020;this[_0x28cafe(0x33d)](_0x28cafe(0x5b4),[_0x461e62,_0x5addee,_0x185773,_0x20abc3]);}['_patch'](_0x5ab658,_0x2d8b08,_0x47c007,_0x1b5ff3,_0x39b658){const _0x1c6581=_0x586020;this[_0x1c6581(0x33d)](_0x1c6581(0x65b),[_0x2d8b08,_0x47c007,_0x1b5ff3,_0x39b658]);}['_create'](_0x45d0aa,_0xf2c9ac,_0x4d9b2f,_0x42ae46,_0x535e20){const _0x4dda83=_0x586020;this[_0x4dda83(0x33d)](_0x4dda83(0x67b),[_0xf2c9ac,_0x4d9b2f,_0x42ae46,_0x535e20]);}[_0x586020(0x46d)](_0x40c3b9,_0x4aa61f,_0x5d7488,_0x3ccd13){const _0x1ff749=_0x586020;this[_0x1ff749(0x33d)]('remove',[_0x4aa61f,_0x5d7488,_0x3ccd13]);}[_0x586020(0x613)](_0x16f272,_0x5bf653,_0x189579,_0x2e8ade){const _0x3a6c17=_0x586020;this['_low'](_0x3a6c17(0x246),[_0x5bf653,_0x189579,_0x2e8ade]);}[_0x586020(0x6b5)](_0x32b59b,_0x213302,_0x1ddbf4){const _0x19ec13=_0x586020;this['_low'](_0x19ec13(0x599),[_0x213302,_0x1ddbf4]);}['_w'](_0x57a0d7,_0x19be96){const _0x510e99=_0x586020;return this['okdb'][_0x510e99(0x2d7)][_0x510e99(0x26b)]('env',this[_0x510e99(0x54b)],_0x57a0d7,_0x19be96);}[_0x586020(0x253)](_0x2f22cd,_0x400809,_0xc86b27,_0x1b5c06={}){const _0x3f5da9=_0x586020;return this['_w'](_0x3f5da9(0x253),[_0x2f22cd,_0x400809,_0xc86b27,_0x1b5c06]);}[_0x586020(0x5b4)](_0x5e52a7,_0x174302,_0x1b7e8c,_0x519995={}){const _0x3a09b6=_0x586020;return this['_w'](_0x3a09b6(0x5b4),[_0x5e52a7,_0x174302,_0x1b7e8c,_0x519995]);}[_0x586020(0x65b)](_0x2c373f,_0x14cc4d,_0x231405,_0x4e7ccc={}){const _0x1dd2fa=_0x586020;return this['_w'](_0x1dd2fa(0x65b),[_0x2c373f,_0x14cc4d,_0x231405,_0x4e7ccc]);}[_0x586020(0x67b)](_0x46f46f,_0x53f803,_0x5436e0,_0x15928c={}){const _0x4b0155=_0x586020;return this['_w'](_0x4b0155(0x67b),[_0x46f46f,_0x53f803,_0x5436e0,_0x15928c]);}['remove'](_0x3536b8,_0x8d5b0d,_0x28fbd0={}){const _0xfa3f89=_0x586020;return this['_w'](_0xfa3f89(0x504),[_0x3536b8,_0x8d5b0d,_0x28fbd0]);}['get'](_0x2fa581,_0x294d62,_0x35ff01){const _0x1eefae=_0x586020;if(_0x336128&&typeof _0x2fa581==='string'){const _0x53bb84=this[_0x1eefae(0x61e)]['_getFast'](this[_0x1eefae(0x54b)],_0x2fa581,_0x294d62);if(_0x53bb84!==_0x39d868)return _0x53bb84===null?this['_n'](_0x1eefae(0x309),[_0x2fa581,_0x294d62]):_0x53bb84;}if(_0x17e2fa&&(typeof _0x294d62===_0x1eefae(0x2b1)||typeof _0x294d62===_0x1eefae(0x6e7))){const _0x2fd9fd=this['okdb']['_getRaw'](this['name'],_0x2fa581,_0x294d62);if(_0x2fd9fd!==null)return _0x2fd9fd;}return this['_n'](_0x1eefae(0x309),[_0x2fa581,typeof _0x294d62==='symbol'?null:_0x294d62]);}[_0x586020(0x233)](_0x15380d,_0xdfde9f,_0x151a86){const _0x5390d7=_0x586020,_0x7f91bb=[_0x15380d,Array[_0x5390d7(0x439)](_0xdfde9f)&&_0xdfde9f[_0x5390d7(0x224)](_0x43d442=>typeof _0x43d442===_0x5390d7(0x490))?_0xdfde9f[_0x5390d7(0x35e)](_0x1dabb6=>typeof _0x1dabb6===_0x5390d7(0x490)?null:_0x1dabb6):_0xdfde9f];return _0x17e2fa?this[_0x5390d7(0x61e)][_0x5390d7(0x6fc)](this[_0x5390d7(0x54b)],_0x5390d7(0x233),_0x7f91bb):this['_n']('getMany',_0x7f91bb);}[_0x586020(0x3a0)](_0x3a0054,_0x774334,_0x5f4e68){const _0x5a9589=_0x586020;return this['_n']('getEntry',[_0x3a0054,typeof _0x774334===_0x5a9589(0x490)?null:_0x774334]);}[_0x586020(0x8ce)](_0x49eed0,_0x22c432){const _0x17a300=_0x586020;return this[_0x17a300(0x64b)](_0x17a300(0x8ce),_0x22c432),this['_n']('getCount',[_0x49eed0,_0x43b959(_0x22c432)]);}[_0x586020(0x64b)](_0x221008,_0x5a8a5e,_0x1bafc2=[]){const _0x125f37=_0x586020;if(!_0x5a8a5e||typeof _0x5a8a5e!==_0x125f37(0x559))return;for(const _0x226bee of Object['keys'](_0x5a8a5e)){if(!_0x2a3c96['has'](_0x226bee)&&!_0x1bafc2[_0x125f37(0x495)](_0x226bee))throw new _0xe3992f(_0x221008+':\x20unknown\x20option\x20\x27'+_0x226bee+'\x27',_0x125f37(0x5de),{'option':_0x226bee});}}[_0x586020(0x64d)](_0x243b72,_0x814a6d,_0x2871b2,_0x40543e,_0x5c8900,_0x4c8356){const _0x414c1f=_0x586020;this['_assertRangeOptions'](_0x243b72,_0x40543e);const _0x4719f3=_0x40543e?.[_0x414c1f(0x41c)],_0x23c607=_0x43b959(_0x40543e);if(_0x4719f3===!![]||_0x4719f3==='tolerant'){const _0x47c5e0=this['_lazyPinned'](_0x243b72,_0x814a6d,_0x512241=>[_0x2871b2,{..._0x23c607,..._0x512241}],_0x40543e);return _0x4c8356?_0x47c5e0[_0x414c1f(0x35e)](_0x4c8356):_0x47c5e0;}const _0x775ebe=_0x4f271f(_0x49af09=>this['_np'](_0x814a6d,[_0x2871b2,_0x49af09]),_0x23c607,_0x5c8900,{'rows':_0x814a6d===_0x414c1f(0x3ee)});return _0x4c8356?_0x775ebe['map'](_0x4c8356):_0x775ebe;}[_0x586020(0x7d3)](_0x23b70c,_0x2ba5da,_0x59c7c6,_0x390e7d,_0x277c79,_0x3b12e8=![]){const _0x5b5c55=_0x586020,{source:_0x13f3e3,prefetch:_0x311cc4}=_0x53dd84((_0x49632a,_0x9890a5)=>_0x49632a==='unpin'?this['_n'](_0x49632a,_0x9890a5):this['_np'](_0x49632a,_0x9890a5),_0x2ba5da,_0x59c7c6,_0x390e7d||{},_0x277c79),_0x49ef80=_0x311cc4(),_0x5ca1f1=!_0x3b12e8&&_0x390e7d&&_0x390e7d[_0x5b5c55(0x41c)]==='tolerant';let _0x30fd11=null;return _0x4a3096(()=>({[Symbol[_0x5b5c55(0x344)]]:()=>_0x30fd11=_0x13f3e3(0x0,_0x3d67b0(_0x49ef80))}),{'label':this[_0x5b5c55(0x54b)]+':'+_0x23b70c,..._0x5ca1f1?{'getTxnId':()=>this['db'][_0x5b5c55(0x65c)]()[_0x5b5c55(0x55f)],'resume':()=>({[Symbol[_0x5b5c55(0x344)]]:()=>_0x30fd11=_0x30fd11[_0x5b5c55(0x35d)]()})}:{}});}[_0x586020(0x3ee)](_0xe0fcdb,_0x5a07fc){const _0x33349b=_0x586020;return this[_0x33349b(0x64d)](_0x33349b(0x3ee),_0x33349b(0x3ee),_0xe0fcdb,_0x5a07fc,_0x4eeeb1=>_0x4eeeb1['key']);}[_0x586020(0x300)](_0x111c76,_0x249b36){const _0x3d40d7=_0x586020;return this[_0x3d40d7(0x64d)]('getKeys',_0x3d40d7(0x300),_0x111c76,_0x249b36,_0x54e945=>_0x54e945);}[_0x586020(0x88a)](_0x3e0c03,_0x858ee4){const _0x1994c3=_0x586020;return this['_range']('getValues','getRange',_0x3e0c03,_0x858ee4,_0x46bf90=>_0x46bf90[_0x1994c3(0x82f)],_0x2b8624=>_0x2b8624[_0x1994c3(0x2ef)]);}[_0x586020(0x764)](_0x2a892f,_0x56a2d2,_0x153949={}){return this['getRange'](_0x2a892f,{'start':_0x56a2d2,'end':_0x56a2d2+'￿',..._0x153949});}['getIndex'](_0x54b0b8,_0x516c82,_0x5af55d={}){const _0x4219c2=_0x586020;this[_0x4219c2(0x64b)](_0x4219c2(0x2dd),_0x5af55d,[_0x4219c2(0x521)]);const _0x97383e=_0x43b959(_0x5af55d);if(_0x5af55d&&_0x5af55d[_0x4219c2(0x68f)])return _0x3c7583(this['_n'](_0x4219c2(0x2dd),[_0x54b0b8,_0x516c82,_0x97383e]));return this[_0x4219c2(0x7d3)](_0x4219c2(0x2dd),'getIndex',_0x44c307=>[_0x54b0b8,_0x516c82,{..._0x97383e,..._0x44c307}],_0x5af55d,undefined,!![]);}[_0x586020(0x5c4)](_0xfb7952,_0x3f6ea7,_0x28ecf4){const _0xbb86b5=_0x586020;this[_0xbb86b5(0x64b)](_0xbb86b5(0x5c4),_0x28ecf4,[_0xbb86b5(0x521),_0xbb86b5(0x6ff)]);const _0x3c5262=_0x43b959(_0x28ecf4);if(_0x28ecf4&&_0x28ecf4[_0xbb86b5(0x68f)])return _0x3c7583(this['_n'](_0xbb86b5(0x5c4),[_0xfb7952,_0x3f6ea7,_0x3c5262]));return this[_0xbb86b5(0x7d3)]('byIndex',_0xbb86b5(0x5c4),_0x46bca0=>[_0xfb7952,_0x3f6ea7,{..._0x3c5262,..._0x46bca0}],_0x28ecf4,undefined,!![]);}[_0x586020(0x416)](_0x4e4757,_0x31af08,_0x476741={}){const _0x30ef0f=_0x586020;return this['_n'](_0x30ef0f(0x416),[_0x4e4757,_0x31af08,_0x43b959(_0x476741)]);}['query'](_0x591c0e,_0xa09851={},_0x630e4d={}){const _0x5a19a5=_0x586020,_0x3de514=_0x4cfac7(_0x630e4d);if(_0x630e4d){for(const _0x2e7571 of Object[_0x5a19a5(0x4ac)](_0x630e4d))if(_0x2e7571!==_0x5a19a5(0x61b)&&typeof _0x630e4d[_0x2e7571]==='function')_0x3de514[_0x2e7571]=null;}if(_0x630e4d&&(_0x630e4d[_0x5a19a5(0x6b1)]||_0x630e4d[_0x5a19a5(0x24e)]))return this['_n'](_0x5a19a5(0x40f),[_0x3de514]),this[_0x5a19a5(0x872)](_0x591c0e,_0xa09851,_0x630e4d);const _0xbaaab4=typeof _0x630e4d[_0x5a19a5(0x61b)]===_0x5a19a5(0x640)?_0x630e4d[_0x5a19a5(0x61b)]:null;if(_0x630e4d[_0x5a19a5(0x526)]||_0x259252(_0xa09851)||_0x630e4d[_0x5a19a5(0x68f)]!==undefined){let _0x4ae52d=this['_n'](_0x5a19a5(0x69f),[_0x591c0e,_0xa09851,_0x3de514]);if(_0xbaaab4)_0x4ae52d=_0x4ae52d[_0x5a19a5(0x35e)](_0xbaaab4);if(_0x630e4d[_0x5a19a5(0x526)]||_0x259252(_0xa09851))return _0x4ae52d;return _0x3c7583(_0x4ae52d);}const _0x216b7b=_0x2cd07e=>typeof _0x2cd07e===_0x5a19a5(0x6e7)&&Number['isInteger'](_0x2cd07e)?Math[_0x5a19a5(0x4a0)](0x0,_0x2cd07e):Infinity;let _0x5712c8;if(_0x630e4d[_0x5a19a5(0x1da)]){const _0x2f2302=_0xa396fa=>typeof _0xa396fa===_0x5a19a5(0x6e7)&&_0xa396fa>0x0?Math[_0x5a19a5(0x3c1)](_0xa396fa):0x0;_0x5712c8=this[_0x5a19a5(0x7d3)]('query',_0x5a19a5(0x69f),_0x598251=>[_0x591c0e,_0xa09851,{..._0x3de514,..._0x598251}],null,{'limitOf':()=>_0x216b7b(_0x3de514['limit']),'offsetOf':()=>_0x2f2302(_0x3de514[_0x5a19a5(0x353)])});}else _0x5712c8=_0x4f271f(_0x51e7a8=>{const _0x1cc91f=_0x5a19a5,{__after:_0x288024,..._0x224219}=_0x51e7a8;return this[_0x1cc91f(0x44d)]('query',_0x288024===undefined?[_0x591c0e,_0xa09851,_0x224219]:[_0x591c0e,_0xa09851,_0x224219,_0x288024]);},_0x3de514,_0x4d6c3e=>_0x4d6c3e[_0x5a19a5(0x82f)],{'limitOf':_0x216b7b,'rows':!![],'prefetch':!![],'resumeOpts':(_0x2d2a57,_0x11626e)=>{const _0x4f54d1=_0x5a19a5;_0x2d2a57['offset']=0x0,_0x2d2a57[_0x4f54d1(0x4a4)]=_0x11626e;}});return _0xbaaab4?_0x5712c8[_0x5a19a5(0x35e)](_0xbaaab4):_0x5712c8;}async[_0x586020(0x872)](_0x127b6a,_0x3fc08e,_0x200e9e){const _0x57a95b=_0x586020,{select:_0x53b5cf,..._0x3bd4ad}=_0x4cfac7(_0x200e9e);let _0x56cf02={..._0x3bd4ad};const _0x253ab0=_0x56cf02['index'];if(_0x253ab0&&!Array['isArray'](_0x253ab0)&&typeof _0x253ab0===_0x57a95b(0x559)&&_0x253ab0[_0x57a95b(0x376)]){const {fields:_0xb4f383,prefix:_0x1796dd,start:_0x47a396,end:_0x3c6ded}=_0x253ab0;_0x56cf02={..._0x56cf02,'index':_0xb4f383,'prefix':_0x1796dd??_0x56cf02['prefix'],'startIndex':_0x47a396??_0x56cf02[_0x57a95b(0x2e3)],'endIndex':_0x3c6ded??_0x56cf02[_0x57a95b(0x61a)]};}const _0x27f174=await this[_0x57a95b(0x61e)]['_callMacro'](_0x57a95b(0x7f1),null,_0x57a95b(0x6a0),[this['name'],_0x127b6a,_0x3fc08e,_0x56cf02],![]),_0x3d6011=typeof _0x200e9e['select']===_0x57a95b(0x640)?_0x200e9e['select']:null;if(!_0x3d6011)return _0x27f174;return _0x27f174[_0x57a95b(0x35e)](_0x581978=>{const {score:_0x5c93d3,ftsScore:_0x48a916,numTerms:_0x36465a,maxScore:_0x79bce2,vectorScore:_0x411783,chunkHash:_0x18876a,chunk:_0x215d0f,..._0x2468c2}=_0x581978,_0x5d1bbe=_0x3d6011(_0x2468c2);for(const [_0x35d319,_0x46613e]of Object['entries']({'score':_0x5c93d3,'ftsScore':_0x48a916,'numTerms':_0x36465a,'maxScore':_0x79bce2,'vectorScore':_0x411783,'chunkHash':_0x18876a,'chunk':_0x215d0f}))if(_0x46613e!==undefined)_0x5d1bbe[_0x35d319]=_0x46613e;return _0x5d1bbe;});}[_0x586020(0x853)](_0x1ccc21,_0x12ff23,_0x2740d6={}){const _0x1b7d2d=_0x586020;let _0x3b734d=this['_n'](_0x1b7d2d(0x853),[_0x1ccc21,_0x12ff23,_0x4cfac7(_0x2740d6)]);if(typeof _0x2740d6[_0x1b7d2d(0x61b)]===_0x1b7d2d(0x640))_0x3b734d=_0x3b734d[_0x1b7d2d(0x35e)](_0x2740d6[_0x1b7d2d(0x61b)]);return _0x3b734d;}[_0x586020(0x3b3)](_0x1ef916=null,_0x48084a={}){const _0x2467d5=_0x586020;return this['_n'](_0x2467d5(0x3b3),[_0x1ef916]);}['getChanges'](_0x205629=null,_0x57f393=0x0,_0x1263b1=Number[_0x586020(0x2b9)],_0x5cbaf9={}){const _0x5f51bc=_0x586020,_0x313575=_0x43b959(_0x5cbaf9);if(_0x5cbaf9&&_0x5cbaf9[_0x5f51bc(0x68f)])return _0x3c7583(this['_n']('getChanges',[_0x205629,_0x57f393,_0x1263b1,_0x313575]));return this[_0x5f51bc(0x7d3)](_0x5f51bc(0x4d6),_0x5f51bc(0x4d6),_0x32e650=>[_0x205629,_0x57f393,_0x1263b1,{..._0x313575,..._0x32e650}],_0x5cbaf9);}['count'](_0x186c0b){const _0x45a733=_0x586020;if(Array['isArray'](_0x186c0b))return _0x186c0b[_0x45a733(0x68a)];let _0x3b4cda=0x0;for(const _0xbf3ec3 of _0x186c0b)_0x3b4cda++;return _0x3b4cda;}*[_0x586020(0x41e)](_0x356ed6){yield*_0x356ed6;}[_0x586020(0x8cc)](){const _0x20085e=_0x586020;return requireOkdbHlc()[_0x20085e(0x2ee)](this[_0x20085e(0x80b)]);}get['_ttlTimeout'](){const _0x1bbcbb=_0x586020,_0x4e9369=this['okdb'][_0x1bbcbb(0x663)]?this[_0x1bbcbb(0x61e)][_0x1bbcbb(0x210)]('db',null,'ttlTimer',[this[_0x1bbcbb(0x54b)]],![]):null;if(!_0x4e9369)return null;if(this['__ttlCancelledGen']===_0x4e9369[_0x1bbcbb(0x8df)])return null;this[_0x1bbcbb(0x26d)]=this[_0x1bbcbb(0x26d)]||new Map();let _0x461252=this['_timerObjs'][_0x1bbcbb(0x309)](_0x4e9369['gen']);if(!_0x461252){const _0x3869d5=this;_0x461252={'ref'(){},'unref'(){},'hasRef':()=>![],'gen':_0x4e9369['gen'],'at':_0x4e9369['at'],'target':_0x4e9369['target'],get '_destroyed'(){const _0x5216d4=_0x1bbcbb,_0x268b00=_0x3869d5['okdb']['_isOpen']?_0x3869d5[_0x5216d4(0x61e)][_0x5216d4(0x210)]('db',null,'ttlTimer',[_0x3869d5[_0x5216d4(0x54b)]],![]):null;return!_0x268b00||_0x268b00[_0x5216d4(0x8df)]!==this[_0x5216d4(0x8df)]||_0x3869d5[_0x5216d4(0x566)]===this[_0x5216d4(0x8df)];}},this[_0x1bbcbb(0x26d)][_0x1bbcbb(0x63f)](_0x4e9369[_0x1bbcbb(0x8df)],_0x461252);}return _0x461252;}[_0x586020(0x88b)](){const _0x328728=_0x586020,_0xa677e5=this[_0x328728(0x61e)][_0x328728(0x210)]('db',null,_0x328728(0x606),[this['name']],![]);if(_0xa677e5)this[_0x328728(0x566)]=_0xa677e5[_0x328728(0x8df)];}get[_0x586020(0x815)](){const _0x2d2ab2=_0x586020,_0x51ab39=this['okdb']['_call']('db',null,_0x2d2ab2(0x606),[this[_0x2d2ab2(0x54b)]],![]);return _0x51ab39?_0x51ab39[_0x2d2ab2(0x7ab)]:null;}get[_0x586020(0x701)](){const _0x1ce8a2=_0x586020;return this[_0x1ce8a2(0x61e)][_0x1ce8a2(0x210)]('db',null,_0x1ce8a2(0x4d2),[this[_0x1ce8a2(0x54b)]],![])?{'ref'(){},'unref'(){}}:null;}['_startAutoCompactCheck'](){const _0x10ff15=_0x586020;this[_0x10ff15(0x61e)][_0x10ff15(0x210)]('db',null,_0x10ff15(0x1d7),[this[_0x10ff15(0x54b)]],![]);}[_0x586020(0x680)](){const _0x53b56a=_0x586020;this[_0x53b56a(0x61e)][_0x53b56a(0x210)]('db',null,'stopAutoCompactCheck',[this[_0x53b56a(0x54b)]],![]);}get['_autoCompact'](){const _0x486da6=_0x586020,_0x11e497=(_0x21c992,_0x19fa3d)=>this[_0x486da6(0x61e)]['_call']('db',null,_0x21c992,[this[_0x486da6(0x54b)],..._0x19fa3d],![]),_0x2455fc=Object[_0x486da6(0x4ac)](_0x11e497('autoCompactState',[])||{}),_0x4a3a18={};for(const _0x2ba04f of _0x2455fc)Object[_0x486da6(0x1fd)](_0x4a3a18,_0x2ba04f,{'enumerable':!![],'get':()=>_0x11e497('autoCompactState',[])?.[_0x2ba04f],'set':_0x1cb015=>{const _0x42e83b=_0x486da6;_0x11e497(_0x42e83b(0x227),[_0x2ba04f,_0x1cb015]);}});return _0x4a3a18;}get[_0x586020(0x80b)](){return this['_n']('hlc',[]);}[_0x586020(0x2a1)](_0x1a8ad7,_0x35435d){const _0x2c1578=_0x586020;return require$$16[_0x2c1578(0x6b4)](_0x1a8ad7,_0x35435d);}async['registerType'](_0x936799,_0x1c875c){const _0x2788fb=_0x586020;return this[_0x2788fb(0x30a)](this['_n'](_0x2788fb(0x343),[_0x936799]));}[_0x586020(0x414)](_0x5cfaab){const _0x1beb31=_0x586020;return this['_n'](_0x1beb31(0x414),[_0x5cfaab]);}[_0x586020(0x4c3)](){const _0x3b2e6f=_0x586020;return this['_n'](_0x3b2e6f(0x4c3),[]);}async[_0x586020(0x2a4)](_0x4ec5c5,_0x360168){const _0xc1b6ff=_0x586020;return this[_0xc1b6ff(0x30a)](this['_n'](_0xc1b6ff(0x2a4),[_0x4ec5c5]));}async[_0x586020(0x1be)](_0x512f82,_0x37cf8b){const _0x3a584b=_0x586020,{timestamp:_0x2ad47b,indexes:indexes=[]}=_0x324607(_0x37cf8b);return this[_0x3a584b(0x30a)](this['_n'](_0x3a584b(0x1be),[_0x512f82,{'indexes':indexes}]));}async[_0x586020(0x2ea)](_0x330bc0){const _0x24d7b1=_0x586020,{type:_0x1e2fa6,indexes:indexes=[],fts:fts=[],views:views=[],schema:schema=null}=_0x324607(_0x330bc0,_0x24d7b1(0x70a));if(!_0x1e2fa6)throw new Error(_0x24d7b1(0x4ba));await this['ensureType'](_0x1e2fa6,{'indexes':indexes});for(const _0x5ada05 of fts){const {name:_0x36eaa5,fields:_0x34fdd0,..._0x164dbd}=_0x5ada05;if(!_0x36eaa5||!_0x34fdd0)throw new Error(_0x24d7b1(0x410));await this[_0x24d7b1(0x61e)][_0x24d7b1(0x6b1)][_0x24d7b1(0x2ea)](_0x1e2fa6,_0x36eaa5,{'fields':_0x34fdd0,..._0x164dbd},this);}for(const _0x201688 of views){const {name:_0x1eaec1,definition:_0x477742}=_0x201688;if(!_0x1eaec1||!_0x477742)throw new Error(_0x24d7b1(0x799));if(!await this[_0x24d7b1(0x876)][_0x24d7b1(0x437)](_0x1eaec1))await this[_0x24d7b1(0x876)][_0x24d7b1(0x67b)](_0x1eaec1,_0x477742);}if(schema)await this[_0x24d7b1(0x241)](_0x1e2fa6,schema);}async[_0x586020(0x8cb)](_0x2163d4,_0x4b1f71,_0x1ce4ae){const _0x69f9e3=_0x586020,_0x241127=this['_n'](_0x69f9e3(0x3f1),[_0x2163d4,_0x4b1f71,typeof _0x1ce4ae===_0x69f9e3(0x559)?_0x1ce4ae:{}]);if(!_0x241127)return this[_0x69f9e3(0x30a)](undefined);const _0x45e06d=this['_n'](_0x69f9e3(0x529),[_0x2163d4,_0x4b1f71,!![]]);if(_0x45e06d===undefined)return this[_0x69f9e3(0x30a)](undefined);return this[_0x69f9e3(0x30a)](await this[_0x69f9e3(0x4b5)](_0x2163d4,_0x4b1f71,_0x45e06d));}async[_0x586020(0x4b5)](_0x3b6063,_0x32bbf1,_0x1dca5d){const _0x355094=_0x586020,_0x1240ca=_0x3b6063+'@'+[][_0x355094(0x6cf)](_0x32bbf1)[_0x355094(0x596)]('~');if(!this[_0x355094(0x551)])this['_indexBuilds']=new Map();const _0x48c1af=this[_0x355094(0x551)][_0x355094(0x309)](_0x1240ca);if(_0x48c1af)return _0x48c1af;const _0x43ea54=((async()=>{const _0x1a9bf4=_0x355094;do await new Promise(_0x942eb8=>setImmediate(_0x942eb8));while(!this['_n'](_0x1a9bf4(0x83c),[_0x3b6063,_0x32bbf1,_0x1dca5d,!![]]));})());this[_0x355094(0x551)][_0x355094(0x63f)](_0x1240ca,_0x43ea54);try{return await _0x43ea54;}finally{this[_0x355094(0x551)][_0x355094(0x2cb)](_0x1240ca);}}async[_0x586020(0x8e3)](_0x5dd8af,_0x4f1630,_0x339cee){const _0x23c2c7=_0x586020;return this[_0x23c2c7(0x30a)](this['_n'](_0x23c2c7(0x8e3),[_0x5dd8af,_0x4f1630]));}async['resetIndex'](_0x58d4d9,_0x36ac20,_0x11f0fd){const _0xa47b14=_0x586020,_0x2c84a3=this[_0xa47b14(0x551)]&&this['_indexBuilds'][_0xa47b14(0x309)](_0x58d4d9+'@'+[][_0xa47b14(0x6cf)](_0x36ac20)[_0xa47b14(0x596)]('~'));if(_0x2c84a3)return _0x2c84a3;const _0x2ed8ed=this['_n'](_0xa47b14(0x529),[_0x58d4d9,_0x36ac20,_0x11f0fd]);if(_0x2ed8ed===undefined)return;return await new Promise(_0x4455b6=>setImmediate(_0x4455b6)),this[_0xa47b14(0x30a)](await this[_0xa47b14(0x4b5)](_0x58d4d9,_0x36ac20,_0x2ed8ed));}[_0x586020(0x5f8)](_0x1d2b77,_0x121098){const _0x4888ab=_0x586020;return this['_n'](_0x4888ab(0x5f8),[_0x1d2b77,_0x121098]);}[_0x586020(0x38b)](_0x1004a5,_0x2f84e4){const _0x50f268=_0x586020;return this['_n'](_0x50f268(0x38b),[_0x1004a5,_0x2f84e4]);}async[_0x586020(0x864)](_0x4e232e,_0xf7db8f){const _0x86e8c8=_0x586020;if(this['_n'](_0x86e8c8(0x38b),[_0x4e232e,_0xf7db8f])==='ready')return!![];let _0x108a13=0xa;for(;;){await new Promise(_0x39e6ae=>setTimeout(_0x39e6ae,_0x108a13));if(!this[_0x86e8c8(0x61e)][_0x86e8c8(0x663)]||this[_0x86e8c8(0x475)])return![];let _0x259834;try{_0x259834=this['_n'](_0x86e8c8(0x49c),[_0x4e232e,Array[_0x86e8c8(0x439)](_0xf7db8f)?_0xf7db8f[_0x86e8c8(0x596)]('~'):String(_0xf7db8f)[_0x86e8c8(0x5e4)](',')[_0x86e8c8(0x596)]('~')]);}catch{return![];}const _0x24f751=_0x259834&&_0x259834[_0x86e8c8(0x717)];if(_0x24f751===_0x86e8c8(0x237))return!![];if(_0x24f751===undefined)return![];_0x108a13=Math[_0x86e8c8(0x597)](_0x108a13*0x2,0xfa);}}[_0x586020(0x49c)](_0x10a434,_0x2382c6){const _0x1bca98=_0x586020;return this['_n'](_0x1bca98(0x49c),[_0x10a434,_0x2382c6])??null;}[_0x586020(0x7da)](_0x22afba,_0x5681e7){return this['_n']('getUniqueViolations',[_0x22afba,_0x5681e7]);}['hasUniqueViolations'](_0x5983ff,_0x3acc5c){return this['_n']('hasUniqueViolations',[_0x5983ff,_0x3acc5c]);}[_0x586020(0x212)](_0x59c4a5,_0x13fc0b,_0x3d5b75){const _0x572a78=_0x586020;return this['_n'](_0x572a78(0x212),[_0x59c4a5,_0x13fc0b,_0x3d5b75])??null;}[_0x586020(0x28f)](_0x3771b0){const _0x2f4088=_0x586020;return this['_n'](_0x2f4088(0x28f),[_0x3771b0])??null;}async['setSchema'](_0x4f3374,_0x3ccb46){const _0x2529cd=_0x586020;return this[_0x2529cd(0x30a)](this['_n'](_0x2529cd(0x241),[_0x4f3374,_0x3ccb46]));}async[_0x586020(0x8a7)](_0x48b912){const _0x3da2ea=_0x586020;return this['_wsettle'](this['_n'](_0x3da2ea(0x8a7),[_0x48b912]));}['getViolation'](_0x22cbfb,_0x3acf7f){const _0x2c5aca=_0x586020;return this['_n'](_0x2c5aca(0x687),[_0x22cbfb,_0x3acf7f])??null;}[_0x586020(0x5c1)](_0x3d7a2){const _0x5bde23=_0x586020;return this['_n'](_0x5bde23(0x5c1),[_0x3d7a2]);}['getRefViolation'](_0x15f15e,_0x52310b,_0x428a56){return this['_n']('getRefViolation',[_0x15f15e,_0x52310b,_0x428a56])??null;}['listRefViolations'](_0x4f8ae5){const _0x4ef0c5=_0x586020;return this['_n'](_0x4ef0c5(0x79f),[_0x4f8ae5]);}async[_0x586020(0x246)](_0x1959df,_0x31e6a2,_0x27774a){const _0x58fe2c=_0x586020;return this[_0x58fe2c(0x30a)](this['_n']('setTTL',[_0x1959df,_0x31e6a2,_0x27774a]));}[_0x586020(0x40b)](_0x52092e,_0x3a2185){const _0x160df5=_0x586020;return this['_n'](_0x160df5(0x40b),[_0x52092e,_0x3a2185]);}async[_0x586020(0x599)](_0x1ac2ec,_0x464811){const _0x270895=_0x586020;return this[_0x270895(0x30a)](this['_n'](_0x270895(0x599),[_0x1ac2ec,_0x464811]));}async[_0x586020(0x2a9)](_0x5d638d){const _0x49d781=_0x586020;return this['_n'](_0x49d781(0x2a9),[_0x5d638d]);}[_0x586020(0x8b0)](_0x15f082={}){const _0x2967c9=_0x586020;return this['_n'](_0x2967c9(0x8b0),[_0x15f082]);}[_0x586020(0x722)](_0x4aff95){const _0x47997e=_0x586020;return this['_n'](_0x47997e(0x722),[_0x4aff95]);}async['setDefaultTTL'](_0x2cf2a5,_0x4f8575){const _0x3a3a09=_0x586020;return this['_wsettle'](this['_n'](_0x3a3a09(0x686),[_0x2cf2a5,_0x4f8575]));}['getDefaultTTL'](_0x3d417b){return this['_n']('getDefaultTTL',[_0x3d417b]);}async[_0x586020(0x813)](_0x2391ff){const _0x281331=_0x586020;return this[_0x281331(0x30a)](this['_n'](_0x281331(0x813),[_0x2391ff]));}async['resolveField'](_0x1e236a,_0x48f1aa,_0x5a3324,_0x2b3116){const _0xbe7c0b=_0x586020,{batch:batch=null,batchSize:_0x23ce9d}=_0x324607(_0x2b3116);if(typeof _0x1e236a!=='string'||!_0x1e236a)throw new _0xe3992f(_0xbe7c0b(0x7ac),_0xbe7c0b(0x5cb));if(typeof _0x48f1aa!==_0xbe7c0b(0x2b1)||!_0x48f1aa)throw new _0xe3992f(_0xbe7c0b(0x8ec),'BAD_PARAM');if(_0x5a3324!=null&&typeof _0x5a3324!==_0xbe7c0b(0x640))throw new _0xe3992f('resolveField:\x20resolver\x20must\x20be\x20a\x20function','BAD_PARAM');if(batch!=null&&typeof batch!=='function')throw new _0xe3992f(_0xbe7c0b(0x7c0),_0xbe7c0b(0x5cb));if(!_0x5a3324&&!batch)throw new _0xe3992f('resolveField:\x20a\x20resolver\x20or\x20options.batch\x20is\x20required',_0xbe7c0b(0x5cb));if(_0x23ce9d!==undefined&&!(Number[_0xbe7c0b(0x4ea)](_0x23ce9d)&&_0x23ce9d>0x0))throw new _0xe3992f('resolveField:\x20options.batchSize\x20must\x20be\x20a\x20positive\x20integer','BAD_PARAM');const _0x5aa0d9=batch?async _0xf13bde=>(await batch(_0xf13bde))[_0xbe7c0b(0x35e)](_0x302804=>_0x302804 instanceof Error?{'__error':!![],'message':_0x302804[_0xbe7c0b(0x211)]}:_0x302804):null,_0x239af6=_0x104df6(this,_0x1e236a,_0x48f1aa),_0x5880e1=this['_n'](_0xbe7c0b(0x839),[_0x1e236a,_0x48f1aa,_0x5a3324?(_0x164c12,_0x5abb46)=>_0x239af6(_0x5a3324,[_0x164c12,_0x5abb46]):null,{'batch':_0x5aa0d9?_0x45c05a=>_0x239af6(_0x5aa0d9,[_0x45c05a]):null,'batchSize':_0x23ce9d}]);return()=>this['_n'](_0xbe7c0b(0x318),[_0x5880e1]);}async['unresolveField'](_0x25808b,_0x3be473){const _0x8e0f11=_0x586020;return this['_n'](_0x8e0f11(0x298),[_0x25808b,_0x3be473]);}[_0x586020(0x819)](_0x3dff23){const _0x456e5b=_0x586020;return this['_n'](_0x456e5b(0x819),[_0x3dff23]);}async['readField'](_0x3902a8,_0x474646,_0x4ba2b6,_0x55aff9){const _0x3ae6ae=_0x586020;return this['okdb']['_callMacro'](_0x3ae6ae(0x609),this[_0x3ae6ae(0x54b)],'readField',[_0x3902a8,_0x474646,_0x4ba2b6,_0x55aff9],![]);}async['readFieldMany'](_0x80f5fb,_0x4c22b1,_0x348be8){const _0x57cfd2=_0x586020;return this[_0x57cfd2(0x61e)][_0x57cfd2(0x661)](_0x57cfd2(0x609),this['name'],_0x57cfd2(0x22a),[_0x80f5fb,_0x4c22b1,_0x348be8],![]);}[_0x586020(0x378)](){}[_0x586020(0x6db)](_0x30d5e2,_0xebb4d5,_0x3ad474,_0x38096c={},_0xa1d180={}){const _0x2244a8=_0x586020;return this['okdb'][_0x2244a8(0x210)](_0x2244a8(0x6b1),null,_0x2244a8(0x6db),[_0x30d5e2,_0xebb4d5,_0x3ad474,_0x38096c,_0xa1d180,this[_0x2244a8(0x54b)]],![]);}get['fts'](){const _0x20e30c=_0x586020;return this[_0x20e30c(0x61e)][_0x20e30c(0x6b1)];}[_0x586020(0x69a)](){const _0x256a95=_0x586020;return this[_0x256a95(0x61e)]['_call'](_0x256a95(0x609),this[_0x256a95(0x54b)],'getResolvedOptions',[],![]);}[_0x586020(0x5f0)](){const _0x4a1969=_0x586020;return this[_0x4a1969(0x61e)][_0x4a1969(0x5f0)]();}[_0x586020(0x75d)](){const _0x3bd841=_0x586020;return this[_0x3bd841(0x61e)][_0x3bd841(0x210)](_0x3bd841(0x609),this['name'],'writerStatus',[],![]);}[_0x586020(0x6a5)](){}get['locks'](){const _0x3bada1=_0x586020;return this[_0x3bada1(0x5d7)]||(this['_locks']=new(requireLock())['NativeLock'](this[_0x3bada1(0x61e)],this[_0x3bada1(0x54b)],_0x3bada1(0x609)));}[_0x586020(0x787)](){const _0x1a1751=_0x586020;return this[_0x1a1751(0x61e)][_0x1a1751(0x210)](_0x1a1751(0x609),this[_0x1a1751(0x54b)],_0x1a1751(0x787),[],![]);}['_registerType'](_0xea1c60){const _0x32d3ad=_0x586020;this['_n'](_0x32d3ad(0x343),[_0xea1c60]);}['_logChange'](_0x14564d){const _0x5e133e=_0x586020;this['_n'](_0x5e133e(0x5b7),[_0x14564d]);}[_0x586020(0x266)](){const _0x247f62=_0x586020;return this['_n'](_0x247f62(0x296),[]);}[_0x586020(0x8c4)](_0x5d1e42,_0x187890){return _0x5d1e42+'\x09'+_0x187890;}[_0x586020(0x68d)](_0x598db4){const _0x2bea31=_0x586020,_0x284ffa=_0x598db4[_0x2bea31(0x2bb)]('\x09');return{'type':_0x598db4[_0x2bea31(0x1f7)](0x0,_0x284ffa),'key':_0x598db4['slice'](_0x284ffa+0x1)};}get[_0x586020(0x81b)](){const _0xbbeaee=_0x586020;if(!this[_0xbbeaee(0x266)]()[_0xbbeaee(0x63d)])return null;return this[_0xbbeaee(0x360)]||(this[_0xbbeaee(0x360)]=new _0x1394ec(this,_0xbbeaee(0x6fa)));}get[_0x586020(0x7fa)](){const _0x14f3d9=_0x586020;if(!this[_0x14f3d9(0x266)]()[_0x14f3d9(0x63d)])return null;return this[_0x14f3d9(0x67d)]||(this[_0x14f3d9(0x67d)]=new _0x1394ec(this,_0x14f3d9(0x214),{'dupSort':!![]}));}[_0x586020(0x664)](_0x47a7bb,_0x9a54be,_0x16102f){this['_n']('ttlSetEntry',[_0x47a7bb,_0x9a54be,_0x16102f]);}['_isExpired'](_0x4d6bc6,_0x1a2d18){const _0x44a595=_0x586020,_0x18febb=this['_ttlByKey']?.[_0x44a595(0x309)](this[_0x44a595(0x8c4)](_0x4d6bc6,_0x1a2d18));return _0x18febb!=null&&_0x18febb<=Date[_0x44a595(0x8cc)]();}get['_nextExpiry'](){const _0x3e758b=_0x586020;return this[_0x3e758b(0x266)]()[_0x3e758b(0x72f)]??null;}get[_0x586020(0x3fa)](){const _0x32b2e6=_0x586020;return this[_0x32b2e6(0x266)]()[_0x32b2e6(0x5a4)]||0x0;}get[_0x586020(0x74b)](){return![];}[_0x586020(0x27d)](){}async['_rebuild'](_0x44cdd5,_0x477be8){const _0x369bdb=_0x586020;if(this[_0x369bdb(0x244)]){const {OKDBError:_0x54f25d}=requireErrors();throw new _0x54f25d(_0x369bdb(0x732),_0x369bdb(0x2f0));}this[_0x369bdb(0x244)]=!![];try{return await this[_0x369bdb(0x61e)]['_callMacro'](_0x369bdb(0x609),this['name'],_0x44cdd5,[_0x477be8],!![]);}finally{this[_0x369bdb(0x244)]=![];}}async[_0x586020(0x502)](_0x43328a={}){const _0x210dbb=_0x586020;return this['_rebuild'](_0x210dbb(0x502),_0x43328a);}async[_0x586020(0x53a)](_0x153097={}){const _0x4b6c0e=_0x586020;return this[_0x4b6c0e(0x748)](_0x4b6c0e(0x53a),_0x153097);}}_0x1107fb[_0x586020(0x67a)]=_0x18f365;function _0x259252(_0x5894c0){const _0x55d334=_0x586020;if(!_0x5894c0||typeof _0x5894c0!==_0x55d334(0x559))return![];for(const _0x22b852 of Object[_0x55d334(0x4ac)](_0x5894c0)){const _0x364954=_0x5894c0[_0x22b852];if(_0x364954&&typeof _0x364954===_0x55d334(0x559)&&(_0x364954[_0x55d334(0x7b6)]||_0x364954[_0x55d334(0x340)]))return!![];}return![];}function _0x43b959(_0x10d7de){const _0x4f2599=_0x586020;if(!_0x10d7de||typeof _0x10d7de!=='object')return{};const _0x414e53={};for(const _0x4006e3 of Object[_0x4f2599(0x4ac)](_0x10d7de)){if(_0x4006e3===_0x4f2599(0x68f)||_0x4006e3===_0x4f2599(0x41c))continue;_0x414e53[_0x4006e3]=_0x10d7de[_0x4006e3];}return _0x414e53;}function _0x4cfac7(_0x45282d){const _0x420fb1=_0x586020;if(!_0x45282d||typeof _0x45282d!==_0x420fb1(0x559))return{};const _0x480e17={};for(const _0x1acefd of Object[_0x420fb1(0x4ac)](_0x45282d)){if(typeof _0x45282d[_0x1acefd]===_0x420fb1(0x640))continue;_0x480e17[_0x1acefd]=_0x45282d[_0x1acefd];}return _0x480e17;}return env={'OKDBEnv':_0x1107fb,'HIGH_SENTINEL':_0x18f365},env;}var unsupported,hasRequiredUnsupported;function requireUnsupported(){if(hasRequiredUnsupported)return unsupported;hasRequiredUnsupported=0x1;const {NotImplementedNative:_0x3ba2a0}=requireErrors();function _0xe0d572(_0x1cd47d){const _0x41356b=_0x2b8a57=>{throw new _0x3ba2a0(_0x1cd47d,_0x2b8a57);};return new Proxy(function(){},{'get'(_0x3230a8,_0x5a5db4){const _0x4e3763=_0x52a3;if(typeof _0x5a5db4===_0x4e3763(0x490)||_0x5a5db4===_0x4e3763(0x801)||_0x5a5db4===_0x4e3763(0x861)||_0x5a5db4===_0x4e3763(0x4ec))return undefined;if(_0x5a5db4===_0x4e3763(0x87d))return _0x1cd47d;return(..._0x315272)=>_0x41356b(_0x1cd47d+'.'+String(_0x5a5db4));},'apply'(){_0x41356b(_0x1cd47d);},'set'(){return!![];}});}return unsupported={'notImplemented':_0xe0d572},unsupported;}var http,hasRequiredHttp;function requireHttp(){const _0x52f0be=_0x5c70f8;if(hasRequiredHttp)return http;hasRequiredHttp=0x1;function _0x1a144b(_0x37ebea,_0x3f6747={}){const _0x5997b8=_0x52a3,_0x43653e=[];let _0x12f934=![];_0x37ebea[_0x5997b8(0x2e5)]('/*')&&(_0x12f934=!![],_0x37ebea=_0x37ebea[_0x5997b8(0x1f7)](0x0,-0x2),_0x43653e[_0x5997b8(0x28d)]('*'));let _0x119d87=_0x37ebea[_0x5997b8(0x306)](/\/+$/,'')[_0x5997b8(0x306)](/\[([^\]]*)\]/g,(_0x2c3a02,_0x53c5e6)=>{const _0x181829=_0x5997b8,_0x11b1b3=_0x53c5e6[_0x181829(0x306)](/\/:(\w+)(?:=([^/\]\s]*))?/g,(_0x369ec0,_0x1df625)=>{const _0x21ac61=_0x181829;return _0x43653e[_0x21ac61(0x28d)](_0x1df625),_0x21ac61(0x217);});return'(?:'+_0x11b1b3+')?';})[_0x5997b8(0x306)](/\/:(\w+)/g,(_0x22a139,_0x35d316)=>{const _0x4712cc=_0x5997b8;return _0x43653e[_0x4712cc(0x28d)](_0x35d316),_0x4712cc(0x217);});if(_0x119d87==='')_0x119d87='/';return{'keys':_0x43653e,'defaults':_0x3f6747||{},'wildcard':_0x12f934,'regex':new RegExp('^'+_0x119d87+(_0x12f934?_0x5997b8(0x4fd):'')+_0x5997b8(0x23d))};}const _0x25a1ff=require$$0$3,{PassThrough:_0x42b40c}=require$$1;function _0x4d641d(_0x18cc19){const _0x1a6ddf=_0x52a3,_0x50185a=_0x18cc19[_0x1a6ddf(0x331)](':'),_0x4a557e=_0x18cc19[_0x1a6ddf(0x1f7)](0x0,_0x50185a)['replace'](/^\[|\]$/g,'');return{'address':_0x4a557e,'family':_0x4a557e[_0x1a6ddf(0x495)](':')?_0x1a6ddf(0x5e6):_0x1a6ddf(0x4e6),'port':Number(_0x18cc19[_0x1a6ddf(0x1f7)](_0x50185a+0x1))};}class _0x5d3549 extends _0x25a1ff[_0x52f0be(0x351)]{constructor(_0xb38093,_0x40e4ce){const _0x2fb417=_0x52f0be;super(),this[_0x2fb417(0x61d)]=_0xb38093,this['_addr']=_0x4d641d(_0x40e4ce),this[_0x2fb417(0x274)]=!![],this['_keepAlive']=setInterval(()=>{},0x7fffffff);}get[_0x52f0be(0x274)](){const _0x2cdb50=_0x52f0be;return this[_0x2cdb50(0x820)];}set[_0x52f0be(0x274)](_0xfdba49){const _0x41efad=_0x52f0be;this[_0x41efad(0x820)]=_0xfdba49;}[_0x52f0be(0x784)](){const _0x3e9aa5=_0x52f0be;return this[_0x3e9aa5(0x274)]?{...this['_addr']}:null;}['_release'](){const _0x398345=_0x52f0be;if(this[_0x398345(0x77d)])clearInterval(this[_0x398345(0x77d)]);this[_0x398345(0x77d)]=null;}[_0x52f0be(0x5df)](_0x254d70){const _0x4c97f4=_0x52f0be;this[_0x4c97f4(0x726)]();const _0x15ffd2=this[_0x4c97f4(0x61d)][_0x4c97f4(0x5df)]();if(_0x254d70)_0x15ffd2[_0x4c97f4(0x801)](()=>_0x254d70(),_0x254d70);return this;}[_0x52f0be(0x4bb)](){const _0x271a3d=_0x52f0be;return this[_0x271a3d(0x77d)]?.['ref'](),this;}[_0x52f0be(0x32c)](){const _0x33175f=_0x52f0be;return this[_0x33175f(0x77d)]?.[_0x33175f(0x32c)](),this;}}class _0x2a5c5a{constructor(_0x53751d){const _0x1f51cf=_0x52f0be;this[_0x1f51cf(0x61e)]=_0x53751d,this[_0x1f51cf(0x6eb)]=[],this[_0x1f51cf(0x7f0)]={'cookieName':'okdb_session'};}get['server'](){const _0x596fa9=_0x52f0be;return this[_0x596fa9(0x6eb)][0x0]||null;}['_n'](_0x43755f,_0x4af59d=[]){const _0xcdb766=_0x52f0be;return this['okdb']['_callMacro'](_0xcdb766(0x755),null,_0x43755f,_0x4af59d,!![]);}async[_0x52f0be(0x349)](_0x406056,_0x42d4dc,_0x175f48={},_0xb377c4={}){const _0x54a34=_0x52f0be;let _0x5d6f2e=await this['_n'](_0x54a34(0x349),[_0x406056,_0x42d4dc,_0x175f48,_0xb377c4]),_0x407096=0x0;return _0x5d6f2e=await this['_settle'](_0x5d6f2e,_0x407096),_0x5d6f2e;}async['_settle'](_0x1e8f67,_0x4aa94){const _0x1a1b35=_0x52f0be;while(_0x1e8f67&&typeof _0x1e8f67===_0x1a1b35(0x559)&&_0x1e8f67[_0x1a1b35(0x7fe)]!==undefined){await new Promise(_0x2c4b18=>setTimeout(_0x2c4b18,_0x4aa94<0x5?0x1:0x5)),_0x4aa94++,_0x1e8f67=await this['_n']('handleResult',[_0x1e8f67['$pending']]);}if(_0x1e8f67&&_0x1e8f67[_0x1a1b35(0x25b)]&&typeof _0x1e8f67[_0x1a1b35(0x25b)]===_0x1a1b35(0x559)&&_0x1e8f67[_0x1a1b35(0x25b)][_0x1a1b35(0x6e1)]!==undefined)_0x1e8f67[_0x1a1b35(0x25b)]=this[_0x1a1b35(0x289)](_0x1e8f67['body'][_0x1a1b35(0x6e1)]);return _0x1e8f67;}['_stream'](_0x2a8f35){const _0x2c1c36=_0x52f0be,_0x46e3ed=new _0x42b40c();let _0x24a851=![];const _0x2c74ff=()=>{const _0x39d415=_0x52a3;if(_0x24a851)return;_0x24a851=!![],clearTimeout(_0x211af0),setImmediate(()=>this['okdb'][_0x39d415(0x663)]&&this[_0x39d415(0x61e)][_0x39d415(0x210)](_0x39d415(0x755),null,'streamClose',[_0x2a8f35],!![]));};let _0x211af0=null;const _0x1f0dc2=()=>{const _0x28f77e=_0x52a3;if(_0x24a851)return;let _0x520781;try{_0x520781=this[_0x28f77e(0x61e)][_0x28f77e(0x210)](_0x28f77e(0x755),null,_0x28f77e(0x754),[_0x2a8f35],!![]);}catch{_0x520781={'chunks':[],'end':!![]};}for(const _0x55cb56 of _0x520781[_0x28f77e(0x285)])_0x46e3ed[_0x28f77e(0x21a)](_0x55cb56);if(_0x520781['end']){_0x24a851=!![],_0x46e3ed[_0x28f77e(0x735)]();return;}_0x211af0=setTimeout(_0x1f0dc2,_0x520781[_0x28f77e(0x285)][_0x28f77e(0x68a)]?0x0:0xa);};_0x46e3ed['on'](_0x2c1c36(0x5df),_0x2c74ff),_0x1f0dc2();if(!_0x24a851)_0x1f0dc2();if(_0x24a851)_0x46e3ed[_0x2c1c36(0x8ab)]();else{if(!_0x211af0)_0x211af0=setTimeout(_0x1f0dc2,0x0);}return _0x46e3ed;}['add'](_0x487646,_0x2ec455,_0x342afb,_0x137895={}){const _0x16117a=_0x52f0be;return this[_0x16117a(0x61e)][_0x16117a(0x210)](_0x16117a(0x755),null,'add',[_0x487646,_0x2ec455,_0x342afb,_0x137895,![]],!![]),this;}[_0x52f0be(0x424)](_0x18ae7e,_0x39dc7e,_0x51a442,_0x450afb={}){const _0x213044=_0x52f0be;return this['okdb']['_call'](_0x213044(0x755),null,_0x213044(0x280),[_0x18ae7e,_0x39dc7e,_0x51a442,_0x450afb,!![]],!![]),this;}['guard'](_0x87509c,_0x279215){const _0x8f8a44=_0x52f0be,_0x24a760=async _0x4a280b=>{const _0x3c11c9=_0x52a3,_0x4aeeda={'status':undefined,'headers':[],'hasBody':![],'body':undefined},_0x4e1693={'status'(_0x11cbd1){const _0xbd0d6b=_0x52a3;return _0x4aeeda[_0xbd0d6b(0x717)]=_0x11cbd1,_0x4e1693;},'setHeader'(_0x51b295,_0x48cf34){const _0x3a7486=_0x52a3;_0x4aeeda[_0x3a7486(0x449)][_0x3a7486(0x28d)]([_0x51b295,_0x48cf34]);},'send'(_0x3196af){const _0x59e0c1=_0x52a3;_0x4aeeda[_0x59e0c1(0x671)]=!![],_0x4aeeda['body']=_0x3196af;}};_0x4a280b[_0x3c11c9(0x223)]={'remoteAddress':_0x4a280b['remoteAddress']??null};const _0x48dbc3=await _0x279215(_0x4a280b,_0x4e1693);return{'allowed':_0x48dbc3!==![],..._0x4aeeda};};this[_0x8f8a44(0x61e)]['_call'](_0x8f8a44(0x755),null,_0x8f8a44(0x25a),[_0x2c0b60=>!!_0x87509c(_0x2c0b60),_0x24a760],!![]);}[_0x52f0be(0x337)](_0x2e8e0d){const _0x456bd8=_0x52f0be,_0x1ab0e0=async _0x1b7f4e=>{const _0x414972=_0x52a3,_0x2ea14e={'status':undefined,'headers':[],'hasBody':![],'body':undefined};let _0x2515af=![];const _0x427588={'status'(_0x46f7ae){const _0x43ecc7=_0x52a3;return _0x2ea14e[_0x43ecc7(0x717)]=_0x46f7ae,_0x427588;},'setHeader'(_0x3d511a,_0x1e9dbe){const _0x597de3=_0x52a3;_0x2ea14e[_0x597de3(0x449)]['push']([_0x3d511a,_0x1e9dbe]);},'send'(_0x3e25ed){const _0x496c95=_0x52a3;_0x2ea14e[_0x496c95(0x671)]=!![],_0x2ea14e[_0x496c95(0x25b)]=_0x3e25ed;}};return _0x1b7f4e['socket']={'remoteAddress':_0x1b7f4e[_0x414972(0x6c1)]??null},await _0x2e8e0d(_0x1b7f4e,_0x427588,async()=>{_0x2515af=!![];}),{'allowed':_0x2515af,..._0x2ea14e};};return this[_0x456bd8(0x61e)][_0x456bd8(0x210)](_0x456bd8(0x755),null,'use',[_0x1ab0e0],!![]),this;}get['maxBodyBytes'](){const _0x49568e=_0x52f0be;return this['okdb'][_0x49568e(0x210)](_0x49568e(0x755),null,_0x49568e(0x58b),[],![]);}set[_0x52f0be(0x573)](_0x461759){const _0x452f6b=_0x52f0be;this[_0x452f6b(0x61e)]['_call'](_0x452f6b(0x755),null,_0x452f6b(0x3f2),[Number(_0x461759)],![]);}[_0x52f0be(0x84d)](_0x482d9f,_0x355481,_0x1a1460={}){const _0x7fe326=_0x52f0be,_0x4af232=new Map(),_0xb16808=(_0x3ac2bf,_0x40cb3f)=>this[_0x7fe326(0x61e)][_0x7fe326(0x210)]('http',null,_0x3ac2bf,_0x40cb3f,![]),_0x45a751=_0x547f5e=>{const _0x236da8=_0x7fe326,{connId:_0x380f24}=_0x547f5e;if(_0x547f5e[_0x236da8(0x1f2)]){const _0x13d8c2=_0x4af232[_0x236da8(0x309)](_0x380f24);_0x4af232[_0x236da8(0x2cb)](_0x380f24);if(typeof _0x13d8c2===_0x236da8(0x640))_0x13d8c2();return;}const _0x5a98fa=(_0x1f626e,_0x3a2286,_0x3d4ecd={})=>{const _0x40029b=_0x236da8;try{_0xb16808(_0x40029b(0x6a6),[_0x380f24,_0x1f626e,_0x3a2286,_0x3d4ecd]);}catch{}},_0x42126e=()=>{const _0x13e145=_0x236da8;try{_0xb16808(_0x13e145(0x774),[_0x380f24]);}catch{}},_0x1169d5=(_0x217603,_0x1d3d26)=>_0xb16808('sseSetHeader',[_0x380f24,String(_0x217603),String(_0x1d3d26)]),_0x23f037={'auth':{'open':_0x547f5e[_0x236da8(0x2d9)],'isAuthenticated':_0x547f5e[_0x236da8(0x2a3)]}},_0x407d6b=_0x355481({'send':_0x5a98fa,'close':_0x42126e,'params':_0x547f5e['params']??{},'query':_0x547f5e[_0x236da8(0x69f)]??{},'headers':_0x547f5e[_0x236da8(0x449)]??{},'context':_0x23f037,'setHeader':_0x1169d5});_0x4af232['set'](_0x380f24,_0x407d6b);};return this[_0x7fe326(0x61e)]['_call'](_0x7fe326(0x755),null,_0x7fe326(0x84d),[_0x482d9f,_0x45a751,_0x1a1460],!![]),this;}get[_0x52f0be(0x81e)](){const _0x3a7e10=_0x52f0be;return this[_0x3a7e10(0x7c3)]();}[_0x52f0be(0x7c3)](){const _0x126b5b=_0x52f0be;return this[_0x126b5b(0x61e)][_0x126b5b(0x210)](_0x126b5b(0x755),null,'listRoutes',[],![])['map'](_0x8fbac4=>({..._0x8fbac4,'matcher':_0x1a144b(_0x8fbac4[_0x126b5b(0x500)],_0x8fbac4[_0x126b5b(0x2d1)])}));}[_0x52f0be(0x557)](_0xa3f63d,_0x361f83){const _0x3f80c9=_0x52f0be;return this['okdb'][_0x3f80c9(0x210)](_0x3f80c9(0x755),null,_0x3f80c9(0x557),[_0xa3f63d,_0x361f83],![]);}[_0x52f0be(0x3d2)](_0x46116f,_0x527980={}){const _0x346431=_0x52f0be;if(typeof _0x527980==='string'||Array['isArray'](_0x527980))_0x527980={'host':_0x527980};_0x527980=_0x527980??{};if((Number(_0x527980[_0x346431(0x2aa)])||0x0)>=0x1||_0x527980[_0x346431(0x84b)]!=null||_0x527980[_0x346431(0x85b)]!=null){const _0x16e7a8=new Error(_0x346431(0x1de)+_0x346431(0x6f4)+'CLI\x20(`okdb\x20listen`),\x20or\x20use\x20Node\x27s\x20built-in\x20`cluster`\x20module\x20and\x20call\x20'+'okdb.http.listen(port)\x20in\x20each\x20worker.');_0x16e7a8[_0x346431(0x50e)]='HTTP_CLUSTER_REMOVED';throw _0x16e7a8;}if(this[_0x346431(0x6eb)][_0x346431(0x68a)])throw new Error(_0x346431(0x230));const _0x49336e=_0x527980[_0x346431(0x657)]==null?[undefined]:[]['concat'](_0x527980[_0x346431(0x657)]);if(!_0x49336e['length']||_0x49336e[_0x346431(0x224)](_0x2fe8b1=>_0x2fe8b1!==undefined&&(typeof _0x2fe8b1!==_0x346431(0x2b1)||!_0x2fe8b1))){const _0x39b130=new Error(_0x346431(0x6bf));_0x39b130[_0x346431(0x50e)]=_0x346431(0x5c8);throw _0x39b130;}const _0x3fb4b9=require$$2[_0x346431(0x41b)]?{..._0x527980,'reuseport':!![]}:_0x527980,_0x5c9854=this['okdb']['_call'](_0x346431(0x755),null,_0x346431(0x3d2),[_0x46116f,_0x3fb4b9],!![]),_0x2f95f1=_0x5c9854[_0x346431(0x886)]??_0x46116f,_0x5275b3=_0x527980[_0x346431(0x657)]==null?':'+_0x2f95f1:_0x49336e[_0x346431(0x35e)](_0x25926c=>(_0x25926c[_0x346431(0x495)](':')?'['+_0x25926c+']':_0x25926c)+':'+_0x2f95f1)[_0x346431(0x596)](',\x20');try{this[_0x346431(0x61e)][_0x346431(0x1ff)][_0x346431(0x2d5)](_0x5275b3);if(!require(_0x346431(0x45e))[_0x346431(0x41b)])this['okdb'][_0x346431(0x1ff)][_0x346431(0x811)]({'kind':_0x346431(0x7ff),'listenAddr':_0x5275b3});}catch{}this[_0x346431(0x6eb)]=_0x5c9854[_0x346431(0x4ca)]['map'](_0x4aacb6=>new _0x5d3549(this,_0x4aacb6));const _0xb18ae7=this['servers'][0x0];return process['nextTick'](()=>this['servers']['forEach'](_0xfa47dc=>_0xfa47dc['emit'](_0x346431(0x274)))),_0xb18ae7;}async['close'](_0x214a56={}){const _0x9f4820=_0x52f0be,_0x2c4c8f=this[_0x9f4820(0x6eb)];this[_0x9f4820(0x6eb)]=[];if(require$$2[_0x9f4820(0x41b)]&&!process[_0x9f4820(0x4fb)]&&_0x214a56[_0x9f4820(0x522)]==null)_0x214a56={..._0x214a56,'forceAfterMs':Infinity};if(_0x2c4c8f[_0x9f4820(0x68a)]){const _0xbc3595=_0x214a56['forceAfterMs']===Infinity?Infinity:Number[_0x9f4820(0x85e)](_0x214a56[_0x9f4820(0x522)])?Math[_0x9f4820(0x4a0)](0x0,_0x214a56[_0x9f4820(0x522)]):0x3e8,_0x1dcae9=Date['now']();while(this[_0x9f4820(0x61e)][_0x9f4820(0x210)]('http',null,_0x9f4820(0x3a1),[],!![])>0x0&&Date[_0x9f4820(0x8cc)]()-_0x1dcae9<_0xbc3595)await new Promise(_0xe89f2d=>setTimeout(_0xe89f2d,0x5));_0x214a56={..._0x214a56,'forceAfterMs':_0xbc3595===Infinity?0x3e8:Math[_0x9f4820(0x4a0)](0x0,_0xbc3595-(Date[_0x9f4820(0x8cc)]()-_0x1dcae9))};}await this['_n'](_0x9f4820(0x5df),[_0x214a56]);for(const _0x13c88c of _0x2c4c8f){_0x13c88c[_0x9f4820(0x726)](),_0x13c88c['listening']=![],_0x13c88c[_0x9f4820(0x5a2)]('close');}}}return http={'OKDBHttp':_0x2a5c5a},http;}var fts,hasRequiredFts;function requireFts(){const _0x314b3c=_0x5c70f8;if(hasRequiredFts)return fts;hasRequiredFts=0x1;const _0x52fe5d=_0x1cc4da=>(_0x1cc4da&&typeof _0x1cc4da===_0x314b3c(0x559)?_0x1cc4da['name']:_0x1cc4da)??_0x314b3c(0x2a6);class _0x212f1e{constructor(_0x20bed9){const _0x377eaf=_0x314b3c;this[_0x377eaf(0x61e)]=_0x20bed9;}['_n'](_0x51b380,_0xdf7d83,_0x1134ed=![]){const _0x36e999=_0x314b3c;return this[_0x36e999(0x61e)][_0x36e999(0x210)](_0x36e999(0x6b1),null,_0x51b380,_0xdf7d83,_0x1134ed);}[_0x314b3c(0x52c)](_0x43745a,_0x194354){const _0x4bbbba=_0x314b3c;return this[_0x4bbbba(0x61e)][_0x4bbbba(0x661)]('fts',null,_0x43745a,_0x194354,!![]);}get[_0x314b3c(0x6da)](){const _0x29cb7f=this,_0x29c507=_0x25e01d=>{const _0x467a32=_0x52a3,_0x388d6d=_0x25e01d[_0x467a32(0x2bb)](':'),_0x400137=_0x25e01d[_0x467a32(0x1f7)](0x0,_0x388d6d),_0x129114=_0x29cb7f[_0x467a32(0x61e)][_0x467a32(0x612)][_0x467a32(0x309)](_0x400137);if(!_0x129114)return undefined;const _0xaa3fda=_0x129114[_0x467a32(0x5fa)][_0x467a32(0x47e)]()[_0x467a32(0x73d)](_0xbbbb7e=>_0xbbbb7e[_0x467a32(0x324)]===_0x467a32(0x2f4)+_0x25e01d);if(!_0xaa3fda)return undefined;return _0x129114['processor'][_0x467a32(0x4c7)](_0xaa3fda['id'],_0xaa3fda[_0x467a32(0x324)]);};return{'get':_0x29c507,'has':_0x5de163=>!!_0x29c507(_0x5de163)};}get[_0x314b3c(0x240)](){return[];}[_0x314b3c(0x1ef)](){const _0x183822=_0x314b3c,{RawDb:_0x2c43fa}=requireRawdb();return new _0x2c43fa(this[_0x183822(0x61e)][_0x183822(0x34d)],_0x183822(0x501));}['has'](_0x4d4070,_0x186f8e,_0x290638){return this['_n']('has',[_0x4d4070,_0x186f8e,_0x52fe5d(_0x290638)]);}['status'](_0x4d6283,_0x51df64,_0x1c0b37){const _0x5e3610=_0x314b3c;return this['_n'](_0x5e3610(0x717),[_0x4d6283,_0x51df64,_0x52fe5d(_0x1c0b37)]);}[_0x314b3c(0x47e)](_0x533f4c,_0x4d68c7){const _0x511f4f=_0x314b3c;return this['_n'](_0x511f4f(0x47e),[_0x533f4c,_0x52fe5d(_0x4d68c7)]);}async['_build'](_0x4720ef,_0x320415,_0x13781a,_0x154710,_0x57e5c4){const _0x4eb428=_0x314b3c,_0x5ad0b9=(_0x50169c,_0x4d7651)=>this[_0x4eb428(0x61e)][_0x4eb428(0x661)](_0x4eb428(0x6b1),null,_0x50169c,_0x4d7651,!![],![]),_0x2c3aed=Date[_0x4eb428(0x8cc)]()+0x1d4c0;let _0x2cc2e9=_0x4720ef,_0x3dd2b3=_0x320415;for(;;){try{return await _0x5ad0b9(_0x2cc2e9,_0x3dd2b3);}catch(_0x3ec049){if(_0x3ec049[_0x4eb428(0x50e)]===_0x4eb428(0x3b2)){_0x2cc2e9=_0x4eb428(0x229),_0x3dd2b3=[_0x13781a,_0x154710,_0x52fe5d(_0x57e5c4)];if(_0x3ec049[_0x4eb428(0x37e)]&&_0x3ec049[_0x4eb428(0x37e)][_0x4eb428(0x348)])await new Promise(_0x58e27c=>setTimeout(_0x58e27c,0x2));continue;}if(_0x3ec049[_0x4eb428(0x50e)]!=='FIELD_RESOLVER_PENDING'||Date[_0x4eb428(0x8cc)]()>=_0x2c3aed)throw _0x3ec049;}await new Promise(_0x142720=>setTimeout(_0x142720,0x5)),_0x2cc2e9=_0x4eb428(0x20d),_0x3dd2b3=[_0x13781a,_0x154710,!![],_0x52fe5d(_0x57e5c4)];}}async['register'](_0x4c38e0,_0x5a5382,_0xf41bdb,_0x3d26ad,_0x383e87){const _0x4b2f9e=_0x314b3c;return this[_0x4b2f9e(0x2cc)](_0x4b2f9e(0x811),[_0x4c38e0,_0x5a5382,_0xf41bdb,_0x3d26ad,_0x52fe5d(_0x383e87)],_0x4c38e0,_0x5a5382,_0x383e87);}async[_0x314b3c(0x4fa)](_0x1e0357,_0x310ebc,_0x435887){const _0x5223f9=_0x314b3c;return this['_nm'](_0x5223f9(0x4fa),[_0x1e0357,_0x310ebc,_0x52fe5d(_0x435887)]);}async['ensure'](_0x47c438,_0x190b27,_0x4706b0,_0x5eb0f6){const _0x11d5a3=_0x314b3c;return this[_0x11d5a3(0x2cc)](_0x11d5a3(0x2ea),[_0x47c438,_0x190b27,_0x4706b0,_0x52fe5d(_0x5eb0f6)],_0x47c438,_0x190b27,_0x5eb0f6);}async['reset'](_0x44bacf,_0xec8e86,_0x45c4b3,_0x1ca057){const _0x41dd30=_0x314b3c;return this[_0x41dd30(0x2cc)](_0x41dd30(0x20d),[_0x44bacf,_0xec8e86,_0x45c4b3,_0x52fe5d(_0x1ca057)],_0x44bacf,_0xec8e86,_0x1ca057);}async[_0x314b3c(0x6c3)](_0x4223be,_0x32dcba,_0x39c83a,_0x482832=0x1d4c0){const _0x31eb64=_0x314b3c,_0x266840=Date[_0x31eb64(0x8cc)]()+_0x482832;for(;;){try{return await this['_nm'](_0x4223be,[..._0x32dcba,0x1]);}catch(_0x355176){if(_0x355176[_0x31eb64(0x50e)]!==_0x39c83a||Date['now']()>=_0x266840)throw _0x355176;}await new Promise(_0x4f4c5b=>setTimeout(_0x4f4c5b,0x2));}}async['ready'](_0x3bf3c8,_0x2bb207,_0x5235fb){const _0x40d46e=_0x314b3c;return this[_0x40d46e(0x6c3)](_0x40d46e(0x237),[_0x3bf3c8,null,_0x52fe5d(_0x5235fb)],_0x40d46e(0x5ee));}async[_0x314b3c(0x889)](_0x1ab5d4,_0x51c091){const _0x58f4e8=_0x314b3c;return this[_0x58f4e8(0x6c3)](_0x58f4e8(0x889),[_0x1ab5d4,_0x52fe5d(_0x51c091)],_0x58f4e8(0x593));}async[_0x314b3c(0x502)](_0x4f2131,_0x583267){const _0x29d425=_0x314b3c;return this[_0x29d425(0x52c)](_0x29d425(0x502),[_0x4f2131,_0x52fe5d(_0x583267)]);}async[_0x314b3c(0x781)](_0x1192d2={}){return this['_nm']('process',[_0x1192d2]);}async['compactStorage'](_0x2b42fd){const _0x1e17bc=_0x314b3c;return this[_0x1e17bc(0x52c)](_0x1e17bc(0x1bb),[_0x52fe5d(_0x2b42fd)]);}[_0x314b3c(0x5ca)](_0x7dc455){const _0x351e1b=_0x314b3c;return this['_n'](_0x351e1b(0x5ca),[_0x52fe5d(_0x7dc455)]);}['search'](_0x6cce50,_0x2b053c,_0x304d2c,_0x170ac1,_0x316efd){return this['_n']('search',[_0x6cce50,_0x2b053c,_0x304d2c,_0x170ac1||{},_0x52fe5d(_0x316efd)]);}['searchDocs'](_0x46a682,_0x561dcf,_0x50be15,_0xc82234,_0x203998,_0x5d5564){return this['_n']('searchDocs',[_0x46a682,_0x561dcf,_0x50be15,_0xc82234||{},_0x52fe5d(_0x203998),_0x5d5564]);}[_0x314b3c(0x342)](_0x1ff888,_0x36a58a,_0x34efb2,_0x33f6e2,_0x3d1ed5){const _0x3eed7e=_0x314b3c;return this['_n'](_0x3eed7e(0x413),[_0x1ff888,_0x36a58a,_0x34efb2,_0x33f6e2||{},_0x52fe5d(_0x3d1ed5)]);}[_0x314b3c(0x3a7)](){const _0x4c35c9=_0x314b3c;return this['_n'](_0x4c35c9(0x3a7),[]);}async[_0x314b3c(0x3ec)](){const _0x16feb6=_0x314b3c;return this[_0x16feb6(0x52c)](_0x16feb6(0x3ec),[]);}}return fts={'OKDBFts':_0x212f1e},fts;}var embeddings,hasRequiredEmbeddings;function requireEmbeddings(){const _0x185e76=_0x5c70f8;if(hasRequiredEmbeddings)return embeddings;hasRequiredEmbeddings=0x1;const {OKDBError:_0x378b3e,invalidArgument:_0x4a5e35}=requireErrors();requireBridge();const _0x31c494=Object[_0x185e76(0x202)]({'EMBEDDER':_0x185e76(0x4c1),'INDEXER':_0x185e76(0x8ee),'SEARCH':_0x185e76(0x636),'WORKER':_0x185e76(0x590)}),_0x39f473=_0x159c34=>typeof _0x159c34===_0x185e76(0x2b1)||_0x159c34==null?_0x159c34:Array[_0x185e76(0x48d)](_0x159c34);class _0x2a7a9a{constructor(_0x2992d9){const _0x1ae7ef=_0x185e76;this[_0x1ae7ef(0x61e)]=_0x2992d9,this[_0x1ae7ef(0x634)]=new Map(),this[_0x1ae7ef(0x336)]=new Map(),this[_0x1ae7ef(0x200)]=new Map();}['_n'](_0x58a297,_0x3792fd=[],_0x4b13fa=!![]){const _0x5c69c9=_0x185e76;return this[_0x5c69c9(0x61e)][_0x5c69c9(0x210)](_0x5c69c9(0x7f1),null,_0x58a297,_0x3792fd,_0x4b13fa);}[_0x185e76(0x52c)](_0x10051d,_0x586266=[]){const _0x47922e=_0x185e76;return this[_0x47922e(0x61e)][_0x47922e(0x661)](_0x47922e(0x7f1),null,_0x10051d,_0x586266,!![]);}['_wrap'](_0xa5fb64){const _0x10c23c=_0x185e76;return _0xa5fb64?this['okdb'][_0x10c23c(0x655)][_0x10c23c(0x215)](_0xa5fb64):null;}[_0x185e76(0x5d4)](_0x1ac816,_0x50feea,_0x5704f1={}){const _0x5b3e8e=_0x185e76;if(typeof _0x50feea!=='function')throw new _0x378b3e(_0x5b3e8e(0x7bd),_0x5b3e8e(0x5cb),{'name':_0x1ac816});this[_0x5b3e8e(0x634)]['set'](_0x1ac816,_0x50feea),this[_0x5b3e8e(0x336)]['set'](_0x1ac816,_0x5704f1);const _0xf2e714=this[_0x5b3e8e(0x61e)],_0x43ec8c=_0x54139a=>_0x50feea(_0x54139a,_0xf2e714);_0x43ec8c[_0x5b3e8e(0x263)]=_0xf2e714,this['_n'](_0x5b3e8e(0x5d4),[_0x1ac816,_0x43ec8c,_0x5704f1??{}],![]);}[_0x185e76(0x5c5)](_0x227d3f){const _0x5a4e6f=_0x185e76,_0x9d76cd=this[_0x5a4e6f(0x634)][_0x5a4e6f(0x309)](_0x227d3f);if(_0x9d76cd)return _0x9d76cd;if(!this['_n'](_0x5a4e6f(0x4e2),[_0x227d3f],![]))return null;const _0x7872db=this;return(_0x27252e={})=>{const _0x3700fc=_0x5a4e6f,_0x230dcc=_0x7872db['_n']('embedderNew',[_0x227d3f,_0x27252e],![]),_0x4126cc=_0x7872db['_n'](_0x3700fc(0x82c),[_0x230dcc],![]),_0x11dc4c=(_0x465ce5,_0x4a74e6)=>_0x7872db['_n'](_0x3700fc(0x307),[_0x230dcc,_0x465ce5,_0x4a74e6],![]),_0x2f3500={'embed':async _0x4f900a=>Float32Array[_0x3700fc(0x48d)](_0x11dc4c(_0x3700fc(0x595),_0x4f900a)),'start':async()=>_0x11dc4c(_0x3700fc(0x45c)),'stop':async()=>{const _0x1f2296=_0x3700fc;_0x11dc4c(_0x1f2296(0x1f1)),_0x11dc4c(_0x1f2296(0x6b6));}};if(_0x4126cc)_0x2f3500[_0x3700fc(0x515)]=async _0x586949=>_0x11dc4c('embedBatch',_0x586949)[_0x3700fc(0x35e)](_0x420bf9=>Float32Array[_0x3700fc(0x48d)](_0x420bf9));return _0x2f3500;};}[_0x185e76(0x7b1)](_0x3b292e){const _0x2549c9=_0x185e76;return this[_0x2549c9(0x336)]['get'](_0x3b292e)??this['_n'](_0x2549c9(0x7b1),[_0x3b292e],![])??undefined;}[_0x185e76(0x426)](_0x237141,_0x494298,_0x5c2653={}){const _0x4560de=_0x185e76;if(typeof _0x494298!==_0x4560de(0x640))throw new _0x378b3e(_0x4560de(0x2b7),_0x4560de(0x5cb),{'name':_0x237141});this['_n'](_0x4560de(0x426),[_0x237141,(_0x344896,_0x4053a5)=>_0x494298(_0x344896,_0x4053a5),_0x5c2653??{}],![]);}['listAlgorithms'](){return this['_n']('listAlgorithms',[],![]);}[_0x185e76(0x887)](_0x47ac70,_0x357fa9){const _0x2342d5=_0x185e76;if(typeof _0x357fa9!==_0x2342d5(0x640))throw new _0x378b3e(_0x2342d5(0x70e),_0x2342d5(0x5cb),{'name':_0x47ac70});this['_n'](_0x2342d5(0x887),[_0x47ac70,_0x357fa9]);}['registerChunkStrategy'](_0x1c25ef,_0x42e7fe){const _0x42fac3=_0x185e76;if(typeof _0x42e7fe!==_0x42fac3(0x640))throw new _0x378b3e(_0x42fac3(0x5d6),'BAD_PARAM',{'name':_0x1c25ef});this['_n']('registerChunkStrategy',[_0x1c25ef,_0x42e7fe]);}[_0x185e76(0x2c3)](_0x2cb083){const _0x39fbfb=_0x185e76;if(_0x2cb083==null)return this['_n'](_0x39fbfb(0x2c3),[null],![]);if(typeof _0x2cb083!==_0x39fbfb(0x640))throw new _0x378b3e(_0x39fbfb(0x1dc),_0x39fbfb(0x5cb));const _0x582331=this[_0x39fbfb(0x61e)];this['_n'](_0x39fbfb(0x2c3),[_0x3dcfc2=>_0x2cb083(_0x3dcfc2,_0x582331)],![]);}async[_0x185e76(0x293)](_0x41c903,_0x492d84={},_0x87ae28={},_0x2ca5d4=null){const _0x23af3a=_0x185e76;return this[_0x23af3a(0x215)](await this[_0x23af3a(0x52c)]('createEmbedder',[_0x41c903,_0x492d84,_0x87ae28,_0x2ca5d4]));}async[_0x185e76(0x5ab)](_0x59e142,_0xb0d9b9={},_0x2c6d81={}){const _0x2e2ac0=_0x185e76;return this[_0x2e2ac0(0x215)](await this[_0x2e2ac0(0x52c)](_0x2e2ac0(0x5ab),[_0x59e142,_0xb0d9b9,_0x2c6d81]));}async[_0x185e76(0x1c8)](_0x16a774,_0x545342={},_0x5dd9ba={}){const _0xf00b69=_0x185e76;return this[_0xf00b69(0x215)](await this[_0xf00b69(0x52c)](_0xf00b69(0x1c8),[_0x16a774,_0x545342,_0x5dd9ba]));}async[_0x185e76(0x600)](_0x191fd0,_0x20c15d={},_0x293850={}){const _0x1640df=_0x185e76;return this[_0x1640df(0x215)](await this[_0x1640df(0x52c)]('createWorker',[_0x191fd0,_0x20c15d,_0x293850]));}async[_0x185e76(0x382)](_0x1f571f,_0x137039={},_0x199418={}){const _0x101867=_0x185e76,_0x443d42=await this[_0x101867(0x52c)](_0x101867(0x382),[_0x1f571f,_0x137039,_0x199418]);return{'embedder':this[_0x101867(0x215)](_0x443d42[_0x101867(0x4c1)]),'indexer':this[_0x101867(0x215)](_0x443d42[_0x101867(0x8ee)]),'worker':this[_0x101867(0x215)](_0x443d42[_0x101867(0x36a)]),'search':this[_0x101867(0x215)](_0x443d42[_0x101867(0x40c)]),'api':this['_makePipelineApi'](_0x443d42[_0x101867(0x390)],_0x443d42[_0x101867(0x4c1)][_0x101867(0x54b)],_0x443d42[_0x101867(0x36a)]?_0x443d42[_0x101867(0x36a)][_0x101867(0x54b)]:_0x443d42[_0x101867(0x390)]+_0x101867(0x6d5))};}[_0x185e76(0x867)](_0x4d952b,_0x5ac98e){const _0x1632b2=_0x185e76;return this['okdb']['engines']['getRunningEngine'](_0x4d952b,_0x5ac98e)?.[_0x1632b2(0x7a5)]??null;}[_0x185e76(0x4c1)](_0xa5cfca){const _0xfe948b=_0x185e76,_0x42b223=this['_running'](_0x31c494[_0xfe948b(0x3d3)],_0xa5cfca);if(!_0x42b223)return null;const _0x263c29=this,_0x291c0b=_0x2f467b=>Array[_0xfe948b(0x439)](_0x2f467b)&&Array['isArray'](_0x2f467b[0x0])?_0x2f467b[_0xfe948b(0x35e)](_0x532dda=>Float32Array[_0xfe948b(0x48d)](_0x532dda)):Float32Array['from'](_0x2f467b);return new Proxy(_0x42b223,{'get'(_0x21636e,_0x464d76){const _0x107a35=_0xfe948b;if(_0x464d76===_0x107a35(0x647))return _0x263c29['okdb'][_0x107a35(0x210)]('engines',null,_0x107a35(0x72e),[_0x31c494[_0x107a35(0x3d3)],_0xa5cfca,_0x107a35(0x647),[]],![])['value'];if(_0x464d76==='embed')return async _0x2e8e34=>_0x291c0b(await _0x42b223[_0x107a35(0x595)](_0x2e8e34));if(_0x464d76===_0x107a35(0x515))return async _0x5ca5c6=>(await _0x42b223['embedBatch'](_0x5ca5c6))[_0x107a35(0x35e)](_0x3af970=>Float32Array[_0x107a35(0x48d)](_0x3af970));return _0x21636e[_0x464d76];}});}[_0x185e76(0x8ee)](_0x84870a){const _0x43ce23=_0x185e76;return this[_0x43ce23(0x867)](_0x31c494[_0x43ce23(0x4b7)],_0x84870a);}['worker'](_0x2a5097){const _0x2ba45b=_0x185e76;return this[_0x2ba45b(0x867)](_0x31c494[_0x2ba45b(0x470)],_0x2a5097);}['search'](_0xd4b4f7){const _0x44301b=_0x185e76,_0x2652f9=this[_0x44301b(0x867)](_0x31c494['SEARCH'],_0xd4b4f7);if(_0x2652f9)return _0x2652f9;return this[_0x44301b(0x8c9)](_0xd4b4f7);}[_0x185e76(0x8c9)](_0x546df9){const _0x32e18e=_0x185e76,_0x43b8f2=this;return{'search':(_0x5bfd96,_0x44ee89={})=>_0x43b8f2['okdb'][_0x32e18e(0x661)](_0x32e18e(0x7f1),null,_0x32e18e(0x40c),[_0x546df9,_0x39f473(_0x5bfd96),_0x44ee89],![]),'stats':async()=>_0x43b8f2['_n'](_0x32e18e(0x885),[_0x546df9],![]),'count':()=>_0x43b8f2['_n'](_0x32e18e(0x873),[_0x546df9,_0x32e18e(0x400)],![])};}async[_0x185e76(0x25c)](_0x4e4831,_0x12920c,_0x11555e={}){const _0x4988c4=_0x185e76,{limit:limit=0xa,..._0x8e28d7}=_0x11555e;return this['_nm'](_0x4988c4(0x25c),[_0x4e4831,_0x39f473(_0x12920c),{..._0x8e28d7,'limit':limit}]);}[_0x185e76(0x42c)](_0x53253d){return this['_n']('vectorSpace',[_0x53253d],![]);}[_0x185e76(0x46c)](_0x1c3c87,_0x2c2c26){const _0x2b1100=_0x185e76;return this['_n'](_0x2b1100(0x422),[_0x1c3c87,_0x2c2c26],![]);}[_0x185e76(0x434)](_0x8a4c86){const _0x4fc3a4=_0x185e76;return this['_n'](_0x4fc3a4(0x3dd),[_0x8a4c86],![]);}async[_0x185e76(0x711)](_0x2c8353){const _0x32bd24=_0x185e76;return this['_n'](_0x32bd24(0x1e9),[_0x2c8353],![]);}async[_0x185e76(0x387)](_0xce2399,_0x19b175={}){const _0x585e8d=_0x185e76;return this['_n'](_0x585e8d(0x216),[_0xce2399,_0x19b175],![]);}async['_durableIndexerDoc'](_0x2efdd4,_0x4937bc){return this['_n']('durableDoc',[_0x2efdd4,_0x4937bc],![]);}async[_0x185e76(0x7ad)](_0x3e6222,_0x4855a9,_0x23a818,_0x34f840){const _0x76fe73=_0x185e76;if(_0x3e6222!=null&&typeof _0x3e6222['includes']!==_0x76fe73(0x640))throw _0x4a5e35(_0x76fe73(0x54b),_0x76fe73(0x38d),_0x3e6222);if(!_0x3e6222||!_0x23a818)return null;return this['okdb'][_0x76fe73(0x661)](_0x76fe73(0x7f1),null,_0x76fe73(0x7ad),[_0x3e6222,_0x4855a9,_0x23a818,_0x34f840??null],![]);}async[_0x185e76(0x617)](_0x49e3e4,_0x1ab77c,_0x264423={}){const _0x3e80aa=_0x185e76,_0x505509={..._0x264423};if(_0x505509[_0x3e80aa(0x24e)])_0x505509[_0x3e80aa(0x24e)]=Array[_0x3e80aa(0x48d)](_0x505509[_0x3e80aa(0x24e)]);return this['_n'](_0x3e80aa(0x617),[_0x49e3e4,_0x1ab77c,_0x505509]);}async[_0x185e76(0x46b)](_0x50ffc9,_0xfe8866,_0x153c2e,_0x3bc338={}){const _0x3e6c49=_0x185e76;return this['_n'](_0x3e6c49(0x46b),[_0x50ffc9,_0xfe8866,_0x153c2e,_0x3bc338]);}async[_0x185e76(0x739)](_0x130aaa,_0x564df7){const _0x3db410=_0x185e76;return this['_n'](_0x3db410(0x739),[_0x130aaa,_0x564df7]);}async[_0x185e76(0x749)](_0x40f47d,_0x1b75d5){const _0x9d014e=_0x185e76;return this['_n'](_0x9d014e(0x749),[_0x40f47d,_0x1b75d5]);}async[_0x185e76(0x83f)](_0x3137e2,_0x3be0de={}){const _0x1bc629=_0x185e76;return this['_n'](_0x1bc629(0x83f),[_0x3137e2,_0x3be0de]);}async['durableRebuild'](_0x321892){const _0x4c8d25=_0x185e76;return this[_0x4c8d25(0x52c)](_0x4c8d25(0x8ba),[_0x321892]);}async[_0x185e76(0x670)](_0x54fdf6){const _0x151dfc=_0x185e76;return this['_n'](_0x151dfc(0x8d0),[_0x54fdf6],![]);}[_0x185e76(0x836)](_0x585ae6){const _0x4490e8=_0x185e76;return this['_n'](_0x4490e8(0x836),[_0x585ae6],![]);}[_0x185e76(0x51f)](){const _0x48d26a=_0x185e76;return this['_n'](_0x48d26a(0x51f),[],![]);}['getVector'](_0x50cf97,_0xf7c0bd){const _0x2348b8=_0x185e76,_0x2c08d0=this['_n'](_0x2348b8(0x535),[_0x50cf97,_0xf7c0bd],![]);return _0x2c08d0==null?null:Float32Array[_0x2348b8(0x48d)](_0x2c08d0);}[_0x185e76(0x3f3)](_0x33a492,_0x8d541a){return this['_n']('resolveModelDims',[_0x33a492,_0x8d541a??null],![])??undefined;}async[_0x185e76(0x8c8)](_0x217bff,_0x19569c,_0x5874d4,_0x1ebe7e=''){const _0x4dd04d=_0x185e76;return this['_n'](_0x4dd04d(0x8c8),[_0x217bff,_0x19569c,_0x5874d4,_0x1ebe7e]);}[_0x185e76(0x744)](_0xbd342d=null){const _0x472166=_0x185e76;return this['_n'](_0x472166(0x744),[_0xbd342d],![]);}[_0x185e76(0x396)](){const _0x4de539=_0x185e76;return this['_n'](_0x4de539(0x396),[],![]);}async['_ensureTypeEnv'](_0x4d6ff7,_0x24e1bd){const _0x6d357a=_0x185e76;return this['_n'](_0x6d357a(0x364),[_0x4d6ff7,_0x24e1bd],![]),this[_0x6d357a(0x61e)][_0x6d357a(0x6df)]('~'+_0x4d6ff7+':emb:'+_0x24e1bd);}async['_ensureVectorStore'](_0x100b3b,_0x3d307d){const _0x1a9efb=_0x185e76;return await this[_0x1a9efb(0x8b9)](_0x100b3b,_0x3d307d),{'adapter':_0x5c7020=>this['_makeLazyVectorAdapter'](_0x100b3b,_0x3d307d,_0x5c7020)};}[_0x185e76(0x432)](_0x44b35d,_0xdbb1b4,_0x140a90){const _0x4848eb=this;return{async 'put'(_0x50365e,_0x358067){const _0x53d613=_0x52a3;return _0x4848eb['_n'](_0x53d613(0x3ab),[_0x44b35d,_0xdbb1b4,_0x140a90,_0x50365e,Array[_0x53d613(0x48d)](_0x358067)]);},async 'remove'(_0x12832e){return _0x4848eb['_n']('vecRemove',[_0x44b35d,_0xdbb1b4,_0x140a90,_0x12832e]);}};}get[_0x185e76(0x1e1)](){const _0x3d413=_0x185e76,_0xe7e528=this,_0x579305=()=>_0xe7e528['_n'](_0x3d413(0x3b4),[],![]),_0x3d3df4=_0x49114b=>{const _0x3a9d8f=_0x3d413,_0x4f470d=_0x5941f4=>_0xe7e528['_n']('viewOp',[_0x49114b,_0x5941f4],![]);return{'name':_0x49114b,'_evict':async()=>_0x4f470d(_0x3a9d8f(0x73f)),'evict':async()=>_0x4f470d('evict'),'snapshot':async()=>_0x4f470d('snapshot'),'_snapshot':async()=>_0x4f470d(_0x3a9d8f(0x41c)),'rebuild':async()=>_0x4f470d(_0x3a9d8f(0x8da)),'stats':()=>_0x4f470d('stats'),get 'count'(){return _0x4f470d('count');},get 'loaded'(){const _0x2a2145=_0x3a9d8f;return _0x4f470d(_0x2a2145(0x776));}};};return{get 'size'(){const _0x408134=_0x3d413;return _0x579305()[_0x408134(0x68a)];},'has':_0x52f75d=>_0x579305()['includes'](_0x52f75d),'get':_0x48a570=>_0x579305()['includes'](_0x48a570)?_0x3d3df4(_0x48a570):undefined,'keys':()=>_0x579305()[Symbol['iterator']](),'values':()=>_0x579305()['map'](_0x3d3df4)[Symbol[_0x3d413(0x344)]](),[Symbol['iterator']]:()=>_0x579305()[_0x3d413(0x35e)](_0xd33126=>[_0xd33126,_0x3d3df4(_0xd33126)])[Symbol[_0x3d413(0x344)]]()};}async[_0x185e76(0x45c)](){}async[_0x185e76(0x1f1)](){this['_n']('stop',[]);}[_0x185e76(0x63a)](_0x1d01bf,_0x4619da,_0x2052f4){const _0x3b76c4=_0x185e76;return{'search':(_0x27d180,_0x1ccc1c={})=>{const _0x56bd39=_0x52a3,_0xa95f97=this[_0x56bd39(0x40c)](_0x1d01bf);if(!_0xa95f97)throw new Error(_0x56bd39(0x329)+_0x1d01bf+'\x22');return _0xa95f97[_0x56bd39(0x40c)](_0x27d180,_0x1ccc1c);},'searchDocs':(_0x54ffa4,_0x168959={})=>this[_0x3b76c4(0x25c)](_0x1d01bf,_0x54ffa4,_0x168959),'flush':_0x2c4b09=>{const _0x2e6ffa=_0x3b76c4,_0x470b1b=this[_0x2e6ffa(0x8ee)](_0x1d01bf);if(!_0x470b1b)throw new Error(_0x2e6ffa(0x654)+_0x1d01bf+'\x22');return _0x470b1b['flush'](_0x2c4b09);},'stats':async()=>({'embedder':await this['embedder'](_0x4619da)?.['health']?.(),'indexer':await this[_0x3b76c4(0x8ee)](_0x1d01bf)?.[_0x3b76c4(0x308)]?.(),'worker':await this['worker'](_0x2052f4)?.[_0x3b76c4(0x308)]?.(),'search':await this[_0x3b76c4(0x40c)](_0x1d01bf)?.[_0x3b76c4(0x308)]?.()})};}}return embeddings={'OKDBEmbeddings':_0x2a7a9a,'ENGINE_TYPES':_0x31c494},embeddings;}var auth,hasRequiredAuth;function requireAuth(){const _0xa5eee8=_0x5c70f8;if(hasRequiredAuth)return auth;hasRequiredAuth=0x1;const {invalidArgument:_0x14ed3d}=requireErrors();class _0x5fb568{constructor(_0x1ecebd){const _0x26fa2a=_0x52a3;this[_0x26fa2a(0x61e)]=_0x1ecebd;}['_n'](_0x4883b3,_0x138652=[],_0x10a39f=![]){const _0x989425=_0x52a3;return this[_0x989425(0x61e)][_0x989425(0x210)](_0x989425(0x7f0),null,_0x4883b3,_0x138652,_0x10a39f);}['_nm'](_0x56f6cd,_0x4c1a9a=[]){const _0xa81a95=_0x52a3;return this[_0xa81a95(0x61e)]['_callMacro']('auth',null,_0x56f6cd,_0x4c1a9a,![]);}get[_0xa5eee8(0x5a9)](){const _0x2124f9=_0xa5eee8;return this['_n'](_0x2124f9(0x5a9));}get[_0xa5eee8(0x8a4)](){const _0x4c19ad=_0xa5eee8;return this['_n'](_0x4c19ad(0x8a4));}get['_oauthConfig'](){const _0x3d37a7=_0xa5eee8;return this[_0x3d37a7(0x61e)][_0x3d37a7(0x688)]['auth']?.[_0x3d37a7(0x3a9)]||{};}['isOAuthEmailAllowed'](_0x1cbf70){const _0x435f94=_0xa5eee8;return this['_n'](_0x435f94(0x792),[_0x1cbf70??null]);}[_0xa5eee8(0x49b)](_0x554b76){return this['_n']('isOpenForIp',[_0x554b76??null]);}[_0xa5eee8(0x74d)](_0x391c1){const _0x383503=_0xa5eee8;return this['_n'](_0x383503(0x49d),[_0x391c1??null]);}[_0xa5eee8(0x235)](){const _0x2dffcc=_0xa5eee8;return this['_n'](_0x2dffcc(0x2c0));}[_0xa5eee8(0x703)](){const _0x11f3e9=_0xa5eee8;return this['_n'](_0x11f3e9(0x703));}[_0xa5eee8(0x1e0)](){const _0x3072af=_0xa5eee8;return this['_n'](_0x3072af(0x1e0));}[_0xa5eee8(0x831)](_0x2204cf){const _0x5bb5c2=_0xa5eee8;return this['_n'](_0x5bb5c2(0x831),[_0x2204cf]);}[_0xa5eee8(0x8dd)](_0x59828a){const _0x58f0d7=_0xa5eee8;return this['_n'](_0x58f0d7(0x8dd),[_0x59828a]);}[_0xa5eee8(0x584)](_0x2a0915){const _0x793a6=_0xa5eee8;if(_0x2a0915!=null&&typeof _0x2a0915!=='string')throw _0x14ed3d(_0x793a6(0x6dd),_0x793a6(0x38d),_0x2a0915);return this['_n'](_0x793a6(0x584),[_0x2a0915??null]);}async[_0xa5eee8(0x8c7)](){const _0x492c2c=_0xa5eee8;return this['_n'](_0x492c2c(0x23f),[],!![]);}async['_lookupByTokenHash'](_0x4424c2){const _0x80eb84=_0xa5eee8;return this['_n'](_0x80eb84(0x7f6),[_0x4424c2]);}async['_lookupByName'](_0x31dfff){return this['_n']('lookupByName',[_0x31dfff]);}async[_0xa5eee8(0x421)](_0x465dda){const _0xd84d6e=_0xa5eee8;return this['_n'](_0xd84d6e(0x1d6),[_0x465dda]);}async[_0xa5eee8(0x47b)](_0x4486c1){const _0x172d05=_0xa5eee8,_0x56d18f=_0x4486c1?.['headers']||{};return this['_n'](_0x172d05(0x47b),[{'remoteAddress':_0x4486c1[_0x172d05(0x223)]?.[_0x172d05(0x6c1)]??null,'internal':_0x4486c1?.['context']?.['internal']===!![],'authorization':_0x56d18f[_0x172d05(0x869)]??null,'cookies':_0x4486c1?.[_0x172d05(0x631)]??{}}]);}async[_0xa5eee8(0x669)](_0x352132,_0x493321){const _0x422494=_0xa5eee8;return this[_0x422494(0x52c)](_0x422494(0x669),[_0x352132??null,_0x493321??null]);}async[_0xa5eee8(0x48e)](_0x52a43e,_0x32dd54,_0x32bf96){const _0x437ac1=_0xa5eee8;return this[_0x437ac1(0x52c)](_0x437ac1(0x48e),[_0x52a43e??null,_0x32dd54??null,_0x32bf96??null]);}[_0xa5eee8(0x4da)](){const _0x179422=_0xa5eee8;return this['_n'](_0x179422(0x4da));}['getLoginConfig'](){const _0x1fb3c1=_0xa5eee8;return this['_n'](_0x1fb3c1(0x33c));}[_0xa5eee8(0x577)](_0x5492b9={},_0x1d2490=0x927c0){const _0x36ce21=_0xa5eee8;return this['_n'](_0x36ce21(0x577),[_0x5492b9,_0x1d2490]);}[_0xa5eee8(0x60b)](_0x21b05a){const _0x1fe086=_0xa5eee8;return this['_n'](_0x1fe086(0x60b),[_0x21b05a]);}async[_0xa5eee8(0x5a7)](_0x1b3c8e,_0x588498={}){const _0x3b2cbc=_0xa5eee8;return this['_nm'](_0x3b2cbc(0x455),[_0x1b3c8e,_0x588498]);}async[_0xa5eee8(0x897)](_0x1945eb={}){const _0x4a5767=_0xa5eee8;return this[_0x4a5767(0x52c)](_0x4a5767(0x5d2),[_0x1945eb]);}['_normalizeOAuthAuthResult'](_0x4c14a4){const _0x167f75=_0xa5eee8;return this['_n'](_0x167f75(0x7d5),[_0x4c14a4]);}}return auth={'OKDBAuth':_0x5fb568},auth;}var sync,hasRequiredSync;function requireSync(){const _0x1b0972=_0x5c70f8;if(hasRequiredSync)return sync;hasRequiredSync=0x1;const {RawDb:_0x5d11f7}=requireRawdb();class _0x1fd8d2{constructor(_0x5f9438){this['_s']=_0x5f9438;}get[_0x1b0972(0x58c)](){const _0x572103=_0x1b0972;return this['_ack']||(this['_ack']=new _0x5d11f7(this['_s'][_0x572103(0x61e)][_0x572103(0x34d)],_0x572103(0x22b)));}[_0x1b0972(0x81c)](){const _0x3cb0ec=_0x1b0972;return this[_0x3cb0ec(0x58c)];}[_0x1b0972(0x509)](){const _0x1750b2=_0x1b0972;return this[_0x1750b2(0x58c)];}['_n'](_0x2fb9fd,_0x5470d6=[]){return this['_s']['_n']('gc.'+_0x2fb9fd,_0x5470d6);}[_0x1b0972(0x2eb)](_0x1e57ff,_0x47b70a){const _0x39b528=_0x1b0972;return this['_n'](_0x39b528(0x2eb),[_0x1e57ff,_0x47b70a]);}async[_0x1b0972(0x6d3)](_0x17b5e3){const _0x576dbc=_0x1b0972;return this['_n'](_0x576dbc(0x6d3),[_0x17b5e3]);}[_0x1b0972(0x5e2)](){const _0x3c0e8f=_0x1b0972;return this['_n'](_0x3c0e8f(0x5e2));}['getGcHorizon'](_0x9d9e8){const _0x381c37=_0x1b0972;return this['_n'](_0x381c37(0x23b),[_0x9d9e8]);}async[_0x1b0972(0x8b3)](){const _0x485496=_0x1b0972;return this['_n'](_0x485496(0x8b3));}['getStatus'](){const _0x2c2440=_0x1b0972;return this['_n'](_0x2c2440(0x575));}[_0x1b0972(0x45c)](){const _0x394f43=_0x1b0972;return this['_n'](_0x394f43(0x45c));}[_0x1b0972(0x1f1)](){return this['_n']('stop');}get['_gcTimer'](){const _0x1a42a0=_0x1b0972;try{return this['_n'](_0x1a42a0(0x57b))?{}:null;}catch{return null;}}}class _0x364245{constructor(_0x59330b){const _0x57f69e=_0x1b0972;this[_0x57f69e(0x61e)]=_0x59330b,this['gc']=new _0x1fd8d2(this);const _0x2e0a2a=this;this['options']=new Proxy({},{'get':(_0x4e8345,_0x196062)=>typeof _0x196062===_0x57f69e(0x2b1)?_0x2e0a2a['_n'](_0x57f69e(0x688))[_0x196062]:undefined,'set':(_0x120b3b,_0xe0f0ce,_0x2e4b6f)=>{const _0x2a3eb6=_0x57f69e;if(_0xe0f0ce===_0x2a3eb6(0x784))_0x2e0a2a['_n'](_0x2a3eb6(0x2ed),[_0x2e4b6f??null]);else{if(_0xe0f0ce===_0x2a3eb6(0x6b0))_0x2e0a2a['_n'](_0x2a3eb6(0x8aa),[_0x2e4b6f??null]);else{if(_0xe0f0ce===_0x2a3eb6(0x297))_0x2e0a2a['_n'](_0x2a3eb6(0x86c),[_0x2e4b6f]);}}return!![];},'ownKeys':()=>Object[_0x57f69e(0x4ac)](_0x2e0a2a['_n'](_0x57f69e(0x688))),'getOwnPropertyDescriptor':(_0x10f0f4,_0x144c44)=>({'enumerable':!![],'configurable':!![],'value':_0x2e0a2a['_n'](_0x57f69e(0x688))[_0x144c44]}),'has':(_0x32e9fe,_0x45bf7b)=>_0x45bf7b in _0x2e0a2a['_n']('options')});}['_n'](_0xb385f3,_0x45aab4=[],_0x4a3eb2=![]){const _0x5b8063=_0x1b0972;return this[_0x5b8063(0x61e)]['_call'](_0x5b8063(0x59c),null,_0xb385f3,_0x45aab4,_0x4a3eb2);}['_nm'](_0x1700dc,_0x44a945=[]){const _0x3c288d=_0x1b0972;return this[_0x3c288d(0x61e)][_0x3c288d(0x661)](_0x3c288d(0x59c),null,_0x1700dc,_0x44a945,!![]);}get[_0x1b0972(0x80a)](){const _0x2314f6=_0x1b0972;return this[_0x2314f6(0x5a1)]||(this['_pdb']=new _0x5d11f7(this[_0x2314f6(0x61e)][_0x2314f6(0x34d)],'__sync:peer_state'));}['_openLocalPeerDb'](){return this['_peerDb'];}get[_0x1b0972(0x1ea)](){const _0x23eb6b=_0x1b0972;return this[_0x23eb6b(0x6bd)]||(this[_0x23eb6b(0x6bd)]=new(requireLock())[(_0x23eb6b(0x1c7))](this[_0x23eb6b(0x61e)],_0x23eb6b(0x5b5),_0x23eb6b(0x59c),{'ttlMs':0x7530}));}get[_0x1b0972(0x784)](){const _0xc83ae0=_0x1b0972;return this['_n']('options')[_0xc83ae0(0x784)];}get[_0x1b0972(0x5f2)](){const _0x56db22=_0x1b0972;return this[_0x56db22(0x61e)]['_isOpen']&&this['_n'](_0x56db22(0x7ae))?{}:null;}get['_pokeListener'](){const _0xdcea90=_0x1b0972;return this[_0xdcea90(0x5f2)];}get[_0x1b0972(0x4e3)](){const _0x229beb=_0x1b0972;return this['_n'](_0x229beb(0x8de))?.['privateKey'];}get[_0x1b0972(0x1cc)](){const _0x5ed1f0=_0x1b0972;return this['_n']('nodeKeys')?.[_0x5ed1f0(0x249)];}['info'](){const _0x3ae6c0=_0x1b0972;return this['_n'](_0x3ae6c0(0x7e2));}[_0x1b0972(0x4fc)](){const _0x333c05=_0x1b0972;return this['_n'](_0x333c05(0x4fc));}get[_0x1b0972(0x3af)](){const _0x16ecf9=_0x1b0972;return this[_0x16ecf9(0x57a)]||(()=>this['_n']('peers'));}set['peers'](_0x2a48be){const _0x11f51d=_0x1b0972;this[_0x11f51d(0x57a)]=typeof _0x2a48be===_0x11f51d(0x640)?_0x2a48be:null,this['_n'](_0x11f51d(0x619),[this[_0x11f51d(0x57a)]]);}[_0x1b0972(0x51d)](){const _0x1b5254=_0x1b0972;return this['_n'](_0x1b5254(0x489));}async[_0x1b0972(0x30c)](){const _0x47d6cd=_0x1b0972;return this['_nm'](_0x47d6cd(0x30c));}async[_0x1b0972(0x4af)](_0x2a4efa){const _0x185b7c=_0x1b0972;return this['_nm'](_0x185b7c(0x4af),[_0x2a4efa]);}async[_0x1b0972(0x4cd)](_0x119bbf,_0x2c6829={}){const _0x385de9=_0x1b0972;return this[_0x385de9(0x52c)]('reconcilePeerPull',[_0x119bbf,_0x2c6829]);}[_0x1b0972(0x1f1)](){const _0x512f00=_0x1b0972;return this['_n'](_0x512f00(0x1f1));}[_0x1b0972(0x5b6)](){const _0x2c56e0=_0x1b0972;return this['_n'](_0x2c56e0(0x5b6));}async[_0x1b0972(0x2a0)](_0x3beef4,_0x43b20f={}){const _0x3643c3=_0x1b0972;return this['_n'](_0x3643c3(0x2a0),[_0x3beef4,_0x43b20f],!![]);}async[_0x1b0972(0x8a8)](_0x328ae8){const _0x868047=_0x1b0972;return this['_n'](_0x868047(0x8a8),[_0x328ae8],!![]);}[_0x1b0972(0x58a)](_0x44d87c){const _0x23a096=_0x1b0972;return this['_n'](_0x23a096(0x832),[_0x44d87c]);}[_0x1b0972(0x457)](_0x4b5e25){const _0x3d8f6f=_0x1b0972;return this['_n'](_0x3d8f6f(0x474),[_0x4b5e25]);}async[_0x1b0972(0x359)](_0x516364,_0x12ed7a,_0x371a24={}){const _0x217134=_0x1b0972;return this['_n'](_0x217134(0x370),[_0x516364,_0x12ed7a,_0x371a24]);}async[_0x1b0972(0x807)](_0x3eb806){return this['_n']('ensurePeerState',[_0x3eb806]);}async['_ensure'](){const _0x42b3a3=_0x1b0972;return this['_n'](_0x42b3a3(0x2ea),[],!![]);}async[_0x1b0972(0x425)](_0x260080){return this['_n']('patchSelf',[_0x260080],!![]);}async['join'](_0x430d91,_0x5e06ac={}){const _0x59b03c=_0x1b0972;return this['_nm'](_0x59b03c(0x596),[_0x430d91,_0x5e06ac]);}async['calculateDelta'](_0x59b32e={},_0x3a6282={}){const _0x19e59c=_0x1b0972;return void _0x59b32e[_0x19e59c(0x5b5)],this['_n'](_0x19e59c(0x893),[_0x59b32e,_0x3a6282]);}async['fetchPeer'](_0x43c30b,_0xd6ae75,_0xf9c42d,_0x290c7f){const _0x32e9a0=_0x1b0972;return this['_nm'](_0x32e9a0(0x427),[_0x43c30b,_0xd6ae75,_0xf9c42d,_0x290c7f??null]);}async['fetchRemoteDelta'](_0x41ed0d,_0x372a23,_0x12e81e={}){const _0x385fc9=_0x1b0972;return this['_nm'](_0x385fc9(0x35b),[_0x41ed0d,_0x372a23,_0x12e81e]);}[_0x1b0972(0x8a6)](_0x412af3,_0x186d1b=null){const _0x307131=_0x1b0972;return this['_n'](_0x307131(0x419),[_0x412af3,_0x186d1b?_0x186d1b[_0x307131(0x54b)]:null]);}['applyChange'](_0x1f8273,_0x3349fc=null){const _0x47bb74=_0x1b0972;return this['_n'](_0x47bb74(0x46a),[_0x1f8273,_0x3349fc?_0x3349fc[_0x47bb74(0x54b)]:null],!![]);}}return sync={'OKDBSync':_0x364245},sync;}var migrate,hasRequiredMigrate;function requireMigrate(){const _0x174e64=_0x5c70f8;if(hasRequiredMigrate)return migrate;hasRequiredMigrate=0x1;const {optionsArg:_0x541b9e}=requireErrors(),_0x5cb6f3=require$$0,_0x3f048d=require$$4,_0x47ca7c=0x40*0x400;async function _0x3d28aa(_0x524bf1,_0x1cab55){const _0x1c4eba=_0x52a3;for(let _0x29815d=0x0;_0x29815d<_0x1cab55[_0x1c4eba(0x68a)];){let _0x58ff06=Math[_0x1c4eba(0x597)](_0x1cab55[_0x1c4eba(0x68a)],_0x29815d+_0x47ca7c);if(_0x58ff06<_0x1cab55[_0x1c4eba(0x68a)]){const _0x293f19=_0x1cab55[_0x1c4eba(0x2bb)](0xa,_0x58ff06-0x1);_0x58ff06=_0x293f19===-0x1?_0x1cab55[_0x1c4eba(0x68a)]:_0x293f19+0x1;}const _0x29bd04=_0x524bf1[_0x1c4eba(0x21a)](_0x1cab55[_0x1c4eba(0x5c6)](_0x29815d,_0x58ff06));_0x29815d=_0x58ff06;if(!_0x29bd04)await new Promise(_0x4c06e3=>_0x524bf1[_0x1c4eba(0x32f)](_0x1c4eba(0x3ec),_0x4c06e3));await new Promise(_0x444999=>setImmediate(_0x444999));}}async function _0x5ea34e(_0x383b4e){const _0x3c8120=_0x52a3,_0x55fef5=[];for await(const _0x102665 of _0x383b4e)_0x55fef5[_0x3c8120(0x28d)](Buffer[_0x3c8120(0x823)](_0x102665)?_0x102665:Buffer[_0x3c8120(0x48d)](_0x102665,_0x3c8120(0x6ae)));return Buffer['concat'](_0x55fef5);}class _0x53f99f{constructor(_0x244aa2){const _0x548eb8=_0x52a3;this[_0x548eb8(0x61e)]=_0x244aa2;}['_n'](_0x385846,_0x46f6de){const _0x58d2b3=_0x52a3;return this['okdb']['_call'](_0x58d2b3(0x516),null,_0x385846,_0x46f6de,!![]);}async[_0x174e64(0x7bc)](_0x37357b,_0x40df02={}){const _0xebaeda=_0x174e64,{data:_0xcd8577,stats:_0x5cd691}=this['_n']('exportBuf',[_0x40df02]);return await _0x3d28aa(_0x37357b,Buffer[_0xebaeda(0x48d)](_0xcd8577)),_0x5cd691;}async[_0x174e64(0x677)](_0x3d8a08,_0x5c63c2={}){const _0x496a2c=_0x174e64;_0x5cb6f3[_0x496a2c(0x6d2)](_0x3f048d[_0x496a2c(0x826)](_0x3d8a08),{'recursive':!![]});const _0x11e1eb=_0x5cb6f3['createWriteStream'](_0x3d8a08),_0x4aaaba=await this[_0x496a2c(0x7bc)](_0x11e1eb,_0x5c63c2);return await new Promise((_0x1b6b73,_0x3c7e2b)=>{const _0x227b26=_0x496a2c;_0x11e1eb['end'](),_0x11e1eb[_0x227b26(0x32f)](_0x227b26(0x8b4),_0x1b6b73),_0x11e1eb[_0x227b26(0x32f)](_0x227b26(0x62e),_0x3c7e2b);}),{..._0x4aaaba,'filePath':_0x3d8a08};}async[_0x174e64(0x1c5)](_0x5da128,_0x28fc96={}){const _0x52fc61=_0x174e64,{data:_0x284601,stats:_0x231cb3}=this['_n']('exportEnvsBuf',[_0x28fc96]);return await _0x3d28aa(_0x5da128,Buffer[_0x52fc61(0x48d)](_0x284601)),_0x231cb3;}async['importFromStream'](_0x2f706f,_0x3f2091={}){const _0x46270a=_0x174e64,_0x4da364=await _0x5ea34e(_0x2f706f),{onProgress:_0x76e9c1,..._0x235035}=_0x3f2091,_0x13208c=this['_n']('importBuf',[_0x4da364,_0x235035]);if(typeof _0x76e9c1==='function')_0x76e9c1({'type':null,'count':_0x13208c[_0x46270a(0x3c3)]});return _0x13208c;}async[_0x174e64(0x565)](_0x92b084,_0x35fd43={}){const _0x442944=_0x174e64;return this['importFromStream'](_0x5cb6f3['createReadStream'](_0x92b084,{'encoding':_0x442944(0x6ae)}),_0x35fd43);}async[_0x174e64(0x423)](_0x4ad1ed,_0x39b8a2={}){const _0x2c9c29=_0x174e64;return this['_n'](_0x2c9c29(0x423),[_0x4ad1ed,_0x39b8a2]);}['backupRoot'](){const _0xa3605c=_0x174e64;return this['_n'](_0xa3605c(0x667),[]);}['resolveBackupDest'](_0x93a0e6){return this['_n']('resolveBackupDest',[_0x93a0e6??null]);}async[_0x174e64(0x727)](_0x45db98={}){const _0x3f537c=_0x174e64;return this['_n'](_0x3f537c(0x727),[_0x45db98]);}async[_0x174e64(0x20e)](_0x267cf8,_0x30d30d={}){const _0x13b6aa=_0x174e64;return this['_n'](_0x13b6aa(0x20e),[_0x267cf8,_0x30d30d]);}async[_0x174e64(0x6fd)](_0x4564a3){const _0x558004=_0x174e64,{pretty:pretty=![]}=_0x541b9e(_0x4564a3);return JSON[_0x558004(0x35a)](await this[_0x558004(0x727)](),null,pretty?0x2:0x0);}async[_0x174e64(0x79b)](_0x60e333){const _0x51f963=_0x174e64;return this[_0x51f963(0x20e)](JSON[_0x51f963(0x78e)](_0x60e333));}['_assertFiles'](){const _0x4ae924=_0x174e64;if(!this['okdb'][_0x4ae924(0x612)][_0x4ae924(0x309)](_0x4ae924(0x2a6))?.[_0x4ae924(0x87a)])throw new Error(_0x4ae924(0x54e));}async['exportBlobs'](_0x3da4b8){const _0x4dfb0e=_0x174e64;return this[_0x4dfb0e(0x8d6)](),this['_n'](_0x4dfb0e(0x48a),[_0x3da4b8]);}async[_0x174e64(0x3a5)](_0x5ebd6a){const _0x5697ed=_0x174e64;return this[_0x5697ed(0x8d6)](),this['_n']('importBlobs',[_0x5ebd6a]);}['_allEnvsWithFiles'](){const _0xda89f9=_0x174e64;return this['_n'](_0xda89f9(0x1d9),[])['map'](_0x53279e=>this['okdb'][_0xda89f9(0x609)](_0x53279e));}async['validateBlobIntegrity'](){const _0x9278c5=_0x174e64;return this[_0x9278c5(0x8d6)](),this['_n'](_0x9278c5(0x77e),[]);}async[_0x174e64(0x20c)](){const _0x18332c=_0x174e64;return this[_0x18332c(0x8d6)](),this['_n'](_0x18332c(0x20c),[]);}}return migrate={'OKDBMigrate':_0x53f99f},migrate;}var mcp,hasRequiredMcp;function requireMcp(){const _0x53083e=_0x5c70f8;if(hasRequiredMcp)return mcp;hasRequiredMcp=0x1;class _0x84571{constructor(_0x508059){this['okdb']=_0x508059,this['clients']=new Map();}['_n'](_0x6cce36,_0x39f16a){const _0x247542=_0x52a3;try{return this[_0x247542(0x61e)][_0x247542(0x210)]('mcp',null,_0x6cce36,_0x39f16a,!![]);}catch(_0x5ad185){if(_0x5ad185&&_0x5ad185['code']===_0x247542(0x2c6)&&_0x5ad185['details']){if(_0x5ad185['details'][_0x247542(0x220)]!==undefined)_0x5ad185[_0x247542(0x220)]=_0x5ad185[_0x247542(0x37e)]['jsonrpcCode'];_0x5ad185[_0x247542(0x37e)]=_0x5ad185[_0x247542(0x37e)][_0x247542(0x37e)],_0x5ad185[_0x247542(0x50e)]=undefined;}throw _0x5ad185;}}['_tools'](){const _0x43d452=_0x52a3;return this['_n'](_0x43d452(0x731),[]);}async['_call'](_0x1ca9e8,_0x15b1e4={}){return this['_n']('call',[_0x1ca9e8??null,_0x15b1e4??{}]);}async[_0x53083e(0x797)](_0xdea90a,_0x5b5136={}){const _0x4e094a=_0x53083e;return this['_n'](_0x4e094a(0x349),[_0xdea90a,_0x5b5136??{}]);}['_initialize'](_0x287dd1){const _0x811d1d=_0x53083e;return this['_n'](_0x811d1d(0x2d3),[_0x287dd1??null]);}}return mcp={'OKDBMcp':_0x84571},mcp;}var sys,hasRequiredSys;function requireSys(){const _0x4e929c=_0x5c70f8;if(hasRequiredSys)return sys;hasRequiredSys=0x1;function _0x44ad24(_0x1b3fd0,_0x566616,_0x12c79f){const _0x17d4c6=_0x52a3,_0x387f52={};for(const [_0x30b94f,_0x30025f]of Object[_0x17d4c6(0x719)](_0x12c79f)){_0x387f52[_0x30b94f]=_0x30025f===_0x17d4c6(0x56f)?async(..._0x5ac73f)=>_0x1b3fd0[_0x17d4c6(0x210)](_0x566616,null,_0x30b94f,_0x5ac73f):(..._0x4704dd)=>_0x1b3fd0[_0x17d4c6(0x210)](_0x566616,null,_0x30b94f,_0x4704dd,![]);}return _0x387f52;}const _0x536bd5=[_0x4e929c(0x4c3),_0x4e929c(0x2fd),_0x4e929c(0x1e5),'describeAllTypes',_0x4e929c(0x896),_0x4e929c(0x335),_0x4e929c(0x38b),_0x4e929c(0x4c0),_0x4e929c(0x7b4),_0x4e929c(0x844),_0x4e929c(0x50d),_0x4e929c(0x865),_0x4e929c(0x392),_0x4e929c(0x447),'getTypeCount','getIndexCount',_0x4e929c(0x513),_0x4e929c(0x2fa),_0x4e929c(0x367),'recomputeFields',_0x4e929c(0x542)],_0xe73981={'add':_0x4e929c(0x56f),'activate':'async','remove':_0x4e929c(0x56f),'list':'sync','get':_0x4e929c(0x59c),'effective':_0x4e929c(0x59c)},_0x15f1a5={'open':_0x4e929c(0x56f),'register':_0x4e929c(0x56f),'buildOwnRow':_0x4e929c(0x59c),'_buildProcessingFacet':_0x4e929c(0x59c),'reportThreadStats':_0x4e929c(0x59c),'clearThreadStats':_0x4e929c(0x59c),'emitProc':_0x4e929c(0x59c),'addSupervisedChild':_0x4e929c(0x56f),'removeSupervisedChild':_0x4e929c(0x59c),'updateSupervisedChildStats':_0x4e929c(0x59c),'publishChildRow':_0x4e929c(0x56f),'putNode':_0x4e929c(0x56f),'removeNode':'async','nodeDead':_0x4e929c(0x59c),'listNodes':_0x4e929c(0x59c),'reap':_0x4e929c(0x56f),'publishOwnRow':'async','deregisterSelf':_0x4e929c(0x56f),'setOwnMeta':'sync','noteListenAddr':_0x4e929c(0x59c),'hasDesired':_0x4e929c(0x59c),'getDesired':_0x4e929c(0x59c),'setDesired':_0x4e929c(0x56f),'listDesired':_0x4e929c(0x59c),'getCmd':'sync','bumpCmd':'async','processingStatusView':_0x4e929c(0x59c),'processorsView':'sync','clusterStatusView':_0x4e929c(0x59c),'nodesView':_0x4e929c(0x59c),'treeView':_0x4e929c(0x59c),'getProcess':_0x4e929c(0x59c),'runtimeProcessesView':'sync'};function _0x4b63ed(_0x3a3e3a){const _0x55575c=_0x4e929c,_0x1cf138={},_0x2466b7=_0x559dfa=>_0x559dfa&&typeof _0x559dfa===_0x55575c(0x559)&&!Array[_0x55575c(0x439)](_0x559dfa)&&typeof _0x559dfa['name']===_0x55575c(0x2b1)?_0x559dfa['name']:_0x559dfa;for(const _0xac1eb7 of _0x536bd5)_0x1cf138[_0xac1eb7]=_0xac1eb7===_0x55575c(0x488)?async(..._0x11d876)=>_0x3a3e3a[_0x55575c(0x210)](_0x55575c(0x447),null,_0xac1eb7,_0x11d876[_0x55575c(0x35e)](_0x2466b7),!![]):(..._0xf1e822)=>_0x3a3e3a[_0x55575c(0x210)]('meta',null,_0xac1eb7,_0xf1e822['map'](_0x2466b7),![]);return _0x1cf138;}function _0x359e4b(_0xb3c732){const _0x2ae744=_0x4e929c,_0x2ada15=_0x44ad24(_0xb3c732,_0x2ae744(0x63b),_0xe73981);return _0x2ada15;}function _0xe16201(_0x3af4a3){const _0x483382=_0x4e929c,_0x110ec0=()=>_0x3af4a3[_0x483382(0x63b)][_0x483382(0x852)](),_0x1c7427=_0x18ccae=>_0x18ccae[_0x483382(0x6b6)]?{..._0x18ccae,'_isFree':!![]}:_0x18ccae;return{async 'addLicense'(_0x2e5cab){const _0x420946=_0x483382;return _0x3af4a3[_0x420946(0x63b)][_0x420946(0x280)](_0x2e5cab);},async 'reload'(){},async 'recheck'(){},get 'active'(){const _0x96ad97=_0x483382,_0x4d7419=_0x110ec0();return _0x4d7419[_0x96ad97(0x6b6)]?null:_0x4d7419;},get 'effective'(){return _0x1c7427(_0x110ec0());},'hasLimit'(_0xde4264){const _0x2910a5=_0x483382,_0x1941cb=_0x110ec0();if(!_0x1941cb[_0x2910a5(0x54f)])return![];const _0x52ae57=_0x1941cb[_0x2910a5(0x5b8)]?.[_0xde4264];return!(_0x52ae57===null||_0x52ae57===undefined||_0x52ae57===0x0);},'isFeatureEnabled'(_0x3a2f1d){const _0x42a55c=_0x483382,_0x7232bc=_0x110ec0();return!_0x7232bc[_0x42a55c(0x54f)]||!!_0x7232bc[_0x42a55c(0x7f2)]?.[_0x3a2f1d];},'assertFeature'(_0x37be32){const _0x45b5e6=_0x483382,_0xccce06=_0x110ec0();if(!_0xccce06[_0x45b5e6(0x54f)]||_0xccce06[_0x45b5e6(0x7f2)]?.[_0x37be32])return;const {OKDBError:_0x33d01b}=requireErrors(),_0x48b193=_0xccce06['free']?_0x45b5e6(0x766)+_0x37be32+_0x45b5e6(0x728)+_0x37be32+_0x45b5e6(0x7f7):'Feature\x20not\x20licensed:\x20'+_0x37be32+_0x45b5e6(0x772)+_0x37be32+'\x22.';throw new _0x33d01b(_0x48b193,'LICENSE_FEATURE_DISABLED',{'feature':_0x37be32});},'assertLimit'(_0x3397e7,_0x5a960d){const _0x539fe9=_0x483382,_0x4d0519=_0x110ec0();if(!_0x4d0519[_0x539fe9(0x54f)])return;const _0x497e84=_0x4d0519[_0x539fe9(0x5b8)]?.[_0x3397e7];if(_0x497e84===null||_0x497e84===undefined||_0x497e84===0x0)return;if(_0x5a960d>=_0x497e84){const {OKDBError:_0x33e944}=requireErrors();throw new _0x33e944(_0x539fe9(0x41f)+_0x3397e7+'\x20('+_0x5a960d+'/'+_0x497e84+')',_0x539fe9(0x3d6),{'limit':_0x3397e7,'current':_0x5a960d,'max':_0x497e84});}},'listLicenses'(){return _0x3af4a3['licenses']['list']();},'getPins'(){const _0x4b762a=_0x483382;return _0x3af4a3[_0x4b762a(0x63b)][_0x4b762a(0x47e)]()[_0x4b762a(0x35e)](_0x26cb5e=>({'licenseId':_0x26cb5e['id'],'pin':_0x26cb5e[_0x4b762a(0x45d)]==='open'?null:_0x26cb5e['pin']}));}};}function _0x9acef4(_0x152b8b){const _0x15227a=_0x4e929c,_0x396a4d=_0x44ad24(_0x152b8b,_0x15227a(0x1ff),_0x15f1a5);Object[_0x15227a(0x1fd)](_0x396a4d,_0x15227a(0x283),{'get':()=>_0x152b8b[_0x15227a(0x210)](_0x15227a(0x1ff),null,_0x15227a(0x283),[],![])}),Object[_0x15227a(0x1fd)](_0x396a4d,_0x15227a(0x380),{'get':()=>_0x152b8b[_0x15227a(0x210)](_0x15227a(0x1ff),null,_0x15227a(0x380),[],![])}),_0x396a4d[_0x15227a(0x720)]=null;const _0x5ee31e=_0x396a4d[_0x15227a(0x2d5)];_0x396a4d[_0x15227a(0x2d5)]=_0x33840f=>{const _0x12da0a=_0x15227a;return _0x396a4d[_0x12da0a(0x720)]=_0x33840f,_0x5ee31e(_0x33840f);};const _0x53150e=()=>_0x396a4d[_0x15227a(0x616)]()[_0x15227a(0x35e)](_0xc1437d=>({'key':_0xc1437d[_0x15227a(0x42e)],'value':_0xc1437d,'version':0x1})),_0x530955={'name':'~processes','_sync':![],'_isOpen':!![],'isProcessStore':!![],'hasType':_0xded6fa=>_0xded6fa===_0x15227a(0x8ca),'getRange':_0x2a4502=>_0x2a4502===_0x15227a(0x8ca)?_0x53150e()[Symbol[_0x15227a(0x344)]]():[][Symbol[_0x15227a(0x344)]](),'getKeys':_0x589633=>_0x589633==='node'?_0x53150e()['map'](_0x1c1e2c=>_0x1c1e2c[_0x15227a(0x82f)])[Symbol[_0x15227a(0x344)]]():[][Symbol[_0x15227a(0x344)]](),'getValues':_0x4fa6ad=>_0x4fa6ad==='node'?_0x53150e()[_0x15227a(0x35e)](_0x4e5c26=>_0x4e5c26['value'])[Symbol['iterator']]():[][Symbol[_0x15227a(0x344)]](),'get':(_0x58e5c8,_0x202925)=>_0x58e5c8==='node'?_0x53150e()[_0x15227a(0x73d)](_0xda3c07=>_0xda3c07[_0x15227a(0x82f)]===_0x202925)?.[_0x15227a(0x2ef)]:undefined,'getCount':_0x364db6=>_0x364db6===_0x15227a(0x8ca)?_0x53150e()[_0x15227a(0x68a)]:0x0};Object[_0x15227a(0x1fd)](_0x396a4d,_0x15227a(0x34e),{'get':()=>_0x152b8b[_0x15227a(0x210)](_0x15227a(0x1ff),null,_0x15227a(0x1f4),[],![])?_0x530955:null});const _0x11db37=_0x396a4d[_0x15227a(0x260)];_0x396a4d['open']=async _0x5bc92b=>{return await _0x11db37(_0x5bc92b),_0x396a4d['_statusEnv'];},_0x396a4d[_0x15227a(0x68c)]=()=>_0x152b8b[_0x15227a(0x210)](_0x15227a(0x1ff),null,_0x15227a(0x4b6),[],!![]);const {RawDb:_0x303445}=requireRawdb();return Object['defineProperty'](_0x396a4d,'_desired',{'get':()=>_0x152b8b[_0x15227a(0x34d)]?_0x396a4d['__desired']||=new _0x303445(_0x152b8b[_0x15227a(0x34d)],_0x15227a(0x77b)):undefined}),Object['defineProperty'](_0x396a4d,_0x15227a(0x273),{'get':()=>_0x152b8b['_systemEnv']?_0x396a4d[_0x15227a(0x8d8)]||=new _0x303445(_0x152b8b[_0x15227a(0x34d)],_0x15227a(0x6de)):undefined}),_0x396a4d[_0x15227a(0x4a2)]=()=>_0x152b8b[_0x15227a(0x210)](_0x15227a(0x1ff),null,_0x15227a(0x4a2),[],![]),Object[_0x15227a(0x1fd)](_0x396a4d,_0x15227a(0x632),{'get':()=>_0x152b8b[_0x15227a(0x210)]('processes',null,_0x15227a(0x675),[],![])}),Object[_0x15227a(0x1fd)](_0x396a4d,_0x15227a(0x7c6),{'get':()=>_0x152b8b[_0x15227a(0x210)](_0x15227a(0x1ff),null,_0x15227a(0x368),[],![])}),_0x396a4d['_buildOwnRow']=()=>_0x152b8b[_0x15227a(0x210)](_0x15227a(0x1ff),null,_0x15227a(0x71c),[],![]),_0x396a4d['_emitProc']=(_0x551b72,_0x3c5753)=>_0x152b8b['_call'](_0x15227a(0x1ff),null,'emitProc',[_0x551b72,_0x3c5753],![]),_0x396a4d;}return sys={'makeMeta':_0x4b63ed,'makeLicenses':_0x359e4b,'makeLicenseChecker':_0xe16201,'makeProcesses':_0x9acef4},sys;}var okdbLogger,hasRequiredOkdbLogger;function requireOkdbLogger(){const _0x4d6aed=_0x5c70f8;if(hasRequiredOkdbLogger)return okdbLogger;hasRequiredOkdbLogger=0x1;const _0x4e7c74={'debug':0xa,'info':0x14,'warn':0x1e,'error':0x28};class _0x137bdd{constructor(_0xcd03b5){const _0x3e336d=_0x52a3;this[_0x3e336d(0x61e)]=_0xcd03b5,this['_sinks']=new Set(),this['_meta']={};}[_0x4d6aed(0x651)](_0x5574a7){const _0x437d0b=_0x4d6aed,_0x96e3eb=new _0x137bdd(this[_0x437d0b(0x61e)]);return _0x96e3eb[_0x437d0b(0x1d8)]=this[_0x437d0b(0x1d8)],_0x96e3eb['_meta']={...this['_meta'],..._0x5574a7},_0x96e3eb;}['attach'](_0x150dce){const _0x638f2e=_0x4d6aed;return this['_sinks']['add'](_0x150dce),()=>this['_sinks'][_0x638f2e(0x2cb)](_0x150dce);}['attachConsole'](){const _0x508cf4=_0x4d6aed,_0x34cda7=_0x4e7c74[process.env.OKDB_LOG_LEVEL]??_0x4e7c74[_0x508cf4(0x7e2)];return this[_0x508cf4(0x806)]=this[_0x508cf4(0x29a)](({level:_0x1587f4,msg:_0xcfc8ed,meta:_0x158339,context:_0x3c766d,ts:_0x5aed93})=>{const _0x1f04af=_0x508cf4;if((_0x4e7c74[_0x1587f4]??_0x4e7c74['info'])<_0x34cda7)return;if(_0x158339?.[_0x1f04af(0x895)]===_0x1f04af(0x7b5)&&(_0x1587f4===_0x1f04af(0x7e2)||_0x1587f4===_0x1f04af(0x649)))return;const _0x26bc4c=_0x1587f4==='error'?console[_0x1f04af(0x62e)]:_0x1587f4===_0x1f04af(0x2f1)?console[_0x1f04af(0x2f1)]:_0x1587f4===_0x1f04af(0x7e2)?console[_0x1f04af(0x7e2)]:console[_0x1f04af(0x58d)],_0x50b432=_0x158339&&Object[_0x1f04af(0x4ac)](_0x158339)[_0x1f04af(0x68a)]>0x0;_0x50b432||_0x3c766d!==undefined?_0x26bc4c(new Date(_0x5aed93)[_0x1f04af(0x5c0)](),_0xcfc8ed,..._0x50b432?[_0x158339]:[],..._0x3c766d!==undefined?[_0x3c766d]:[]):_0x26bc4c(new Date(_0x5aed93)[_0x1f04af(0x5c0)](),_0xcfc8ed);}),this['_detachConsole'];}['detachConsole'](){const _0x5bc9c5=_0x4d6aed;this[_0x5bc9c5(0x806)]&&(this[_0x5bc9c5(0x806)](),this[_0x5bc9c5(0x806)]=null);}['attachOKDB'](_0xecba8,_0x5d79fe){const _0x340c82=_0x4d6aed,_0x1f06fc=require$$0$4,_0x2a7c30=0x1f4,_0x2998ef=Number(process.env.OKDB_LOG_FLUSH_MS)||0x3e8;let _0x4e6b39=[],_0x28e52f=0x0,_0x2542fb=null;const _0x4842ca=()=>{const _0x51aad3=_0x52a3;_0x2542fb=null;if(_0x4e6b39['length']===0x0)return;const _0x1d48c7=_0x4e6b39;_0x4e6b39=[],_0x28e52f>0x0&&(_0x1d48c7[_0x51aad3(0x28d)]({'ts':Date[_0x51aad3(0x8cc)](),'level':'warn','msg':_0x51aad3(0x552)+_0x28e52f+_0x51aad3(0x796)+(_0x28e52f===0x1?'y':_0x51aad3(0x36d))+_0x51aad3(0x26c),'feature':_0x51aad3(0x58d),'node':_0x5d79fe,'context':null}),_0x28e52f=0x0),_0xecba8['txn'](_0x25d605=>{const _0x42a6fb=_0x51aad3;for(const _0x57fb93 of _0x1d48c7)_0x25d605[_0x42a6fb(0x253)](_0x42a6fb(0x5fb),_0x1f06fc[_0x42a6fb(0x809)](),_0x57fb93);})[_0x51aad3(0x6d7)](()=>{});},_0x2402fd=this[_0x340c82(0x29a)](({level:_0x3c2392,msg:_0x37b7cc,meta:_0x462e99,context:_0x5f1b01,ts:_0x1e7367})=>{const _0x4a4c81=_0x340c82;if(_0x3c2392===_0x4a4c81(0x649))return;_0x4e6b39[_0x4a4c81(0x68a)]>=_0x2a7c30&&(_0x28e52f++,_0x4e6b39[_0x4a4c81(0x812)]()),_0x4e6b39['push']({'ts':_0x1e7367,'level':_0x3c2392,'msg':_0x37b7cc,'feature':_0x462e99?.[_0x4a4c81(0x895)]??_0x462e99?.['module']??null,'node':_0x5d79fe,'context':_0x5f1b01??null}),!_0x2542fb&&(_0x2542fb=setTimeout(_0x4842ca,_0x2998ef),_0x2542fb[_0x4a4c81(0x32c)]?.());});return()=>{_0x2402fd();if(_0x2542fb)clearTimeout(_0x2542fb);_0x4842ca();};}[_0x4d6aed(0x7c8)](_0x11f2b2,_0x169c59,_0x25f8f2){const _0xafd083=_0x4d6aed;_0x169c59 instanceof Error&&(_0x25f8f2={'message':_0x169c59[_0xafd083(0x211)],'stack':_0x169c59[_0xafd083(0x221)],..._0x25f8f2},_0x169c59=_0x169c59['message']);const _0x4691bc={'level':_0x11f2b2,'msg':_0x169c59,'meta':{...this[_0xafd083(0x53e)]},'context':_0x25f8f2,'ts':Date['now']()};try{this['okdb'][_0xafd083(0x4cb)]['emit'](_0xafd083(0x58d),_0x4691bc);}catch{}for(const _0xe57b3 of this[_0xafd083(0x1d8)]){try{_0xe57b3(_0x4691bc);}catch{}}}['ingest'](_0x13e03e){const _0x51571b=_0x4d6aed;try{this[_0x51571b(0x61e)]?.[_0x51571b(0x4cb)]?.[_0x51571b(0x5a2)](_0x51571b(0x58d),_0x13e03e);}catch{}for(const _0x4c2f88 of this[_0x51571b(0x1d8)]){try{_0x4c2f88(_0x13e03e);}catch{}}}[_0x4d6aed(0x7e2)](_0x1fe855,_0x4a28ee){const _0x9a7951=_0x4d6aed;this[_0x9a7951(0x7c8)]('info',_0x1fe855,_0x4a28ee);}[_0x4d6aed(0x2f1)](_0x46b51f,_0x16741d){const _0x15b1c0=_0x4d6aed;this['_emit'](_0x15b1c0(0x2f1),_0x46b51f,_0x16741d);}[_0x4d6aed(0x62e)](_0x3f7a66,_0x2ecc2e){const _0x26cb51=_0x4d6aed;this[_0x26cb51(0x7c8)](_0x26cb51(0x62e),_0x3f7a66,_0x2ecc2e);}[_0x4d6aed(0x649)](_0x573bc1,_0x4bb215){const _0x16eddd=_0x4d6aed;this[_0x16eddd(0x7c8)](_0x16eddd(0x649),_0x573bc1,_0x4bb215);}}return okdbLogger=_0x137bdd,okdbLogger;}var okdbPlugins,hasRequiredOkdbPlugins;function requireOkdbPlugins(){const _0x24c1ff=_0x5c70f8;if(hasRequiredOkdbPlugins)return okdbPlugins;hasRequiredOkdbPlugins=0x1;const {OKDB_STATE:_0x18f631}=requireOkdbEnums(),{OKDBError:_0x2563e6}=requireOkdbError();class _0x2ecbcf{constructor(_0x1ea180){const _0x52a747=_0x52a3;this[_0x52a747(0x61e)]=_0x1ea180,this[_0x52a747(0x477)]=[];}[_0x24c1ff(0x811)](_0x2e7fd9,_0x5281a0){const _0x2b046f=_0x24c1ff;if(this[_0x2b046f(0x61e)][_0x2b046f(0x74f)]!==_0x18f631[_0x2b046f(0x890)])throw new _0x2563e6(_0x2b046f(0x5b3),_0x2b046f(0x58e),{'state':this['okdb'][_0x2b046f(0x74f)]});if(!_0x2e7fd9[_0x2b046f(0x54b)])throw new _0x2563e6('Plugin\x20must\x20have\x20a\x20name',_0x2b046f(0x332),{'plugin':_0x2e7fd9[_0x2b046f(0x54b)]});const _0x2488c3=_0x2e7fd9['requires']??[];for(const _0x23ac27 of _0x2488c3){if(!this[_0x2b046f(0x477)][_0x2b046f(0x224)](_0x5c0d7b=>_0x5c0d7b[_0x2b046f(0x882)][_0x2b046f(0x54b)]===_0x23ac27))throw new _0x2563e6(_0x2b046f(0x6e3)+_0x23ac27+_0x2b046f(0x7b8)+_0x2e7fd9[_0x2b046f(0x54b)]+')',_0x2b046f(0x553),{'required':_0x23ac27});}if(this[_0x2b046f(0x477)][_0x2b046f(0x73d)](_0x3be180=>_0x3be180[_0x2b046f(0x882)][_0x2b046f(0x54b)]===_0x2e7fd9[_0x2b046f(0x54b)]))throw new _0x2563e6('Plugin\x20\x27'+_0x2e7fd9[_0x2b046f(0x54b)]+_0x2b046f(0x276),_0x2b046f(0x594),{'plugin':_0x2e7fd9['name']});if(_0x2e7fd9['name']in this[_0x2b046f(0x61e)])throw new _0x2563e6(_0x2b046f(0x3bc)+_0x2e7fd9['name']+_0x2b046f(0x7f4),_0x2b046f(0x5e3));const _0x5bb25d=_0x2e7fd9[_0x2b046f(0x811)](this[_0x2b046f(0x61e)],_0x5281a0);if(!_0x5bb25d||typeof _0x5bb25d!==_0x2b046f(0x559))throw new _0x2563e6('Plugin\x20\x27'+_0x2e7fd9['name']+_0x2b046f(0x892),_0x2b046f(0x332),{'plugin':_0x2e7fd9[_0x2b046f(0x54b)]});this[_0x2b046f(0x477)][_0x2b046f(0x28d)]({'module':_0x2e7fd9,'options':_0x5281a0,'instance':_0x5bb25d});}[_0x24c1ff(0x620)]=[];async[_0x24c1ff(0x45c)](){const _0x543fa3=_0x24c1ff;try{for(const _0x43bd0c of this[_0x543fa3(0x477)]){await _0x43bd0c['instance'][_0x543fa3(0x45c)]?.(this[_0x543fa3(0x61e)]),this[_0x543fa3(0x620)]['push'](_0x43bd0c);}}catch(_0x3d299d){await this['stop']()[_0x543fa3(0x6d7)](()=>{});throw _0x3d299d;}}async[_0x24c1ff(0x1f1)](){const _0x2543bf=_0x24c1ff,_0x391398=this[_0x2543bf(0x620)][_0x2543bf(0x641)]();this[_0x2543bf(0x620)]=[];let _0xd7d970=null;for(const _0x352556 of _0x391398){try{await _0x352556[_0x2543bf(0x327)]['stop']?.(this['okdb']);}catch(_0x4ffd52){_0xd7d970??=_0x4ffd52;}}if(_0xd7d970)throw _0xd7d970;}}return okdbPlugins=_0x2ecbcf,okdbPlugins;}var statics,hasRequiredStatics;function requireStatics(){const _0x1b4a05=_0x5c70f8;if(hasRequiredStatics)return statics;hasRequiredStatics=0x1;const _0x3cb465={'maxDbs':0x400,'pageSize':0x1000,'compression':!![],'encryptionKey':undefined,'mapSize':0x100000000,'durability':_0x1b4a05(0x6ac)},_0x1ce2e5=new Set(['maxDbs',_0x1b4a05(0x780),'compression',_0x1b4a05(0x32b),'encryptionKeys','mapSize',_0x1b4a05(0x8a2),_0x1b4a05(0x5d9),_0x1b4a05(0x533),_0x1b4a05(0x7f0),_0x1b4a05(0x59c),_0x1b4a05(0x622),_0x1b4a05(0x7b5),_0x1b4a05(0x58f),'mcp',_0x1b4a05(0x89b),_0x1b4a05(0x58d),_0x1b4a05(0x4f0),_0x1b4a05(0x7cd),_0x1b4a05(0x655),_0x1b4a05(0x562),_0x1b4a05(0x402),'processes',_0x1b4a05(0x444),_0x1b4a05(0x7a5),_0x1b4a05(0x7ed),_0x1b4a05(0x25e),_0x1b4a05(0x649),_0x1b4a05(0x2c4),_0x1b4a05(0x423)]),_0x5ea3eb={'http':_0x1b4a05(0x777)};return statics={'defaults':_0x3cb465,'KNOWN_OPTIONS':_0x1ce2e5,'_OPTION_HINTS':_0x5ea3eb},statics;}var licenseConfig,hasRequiredLicenseConfig;function requireLicenseConfig(){const _0x5e43f0=_0x5c70f8;if(hasRequiredLicenseConfig)return licenseConfig;hasRequiredLicenseConfig=0x1;const _0x5db1e3=require$$0$2,_0x4f0273=_0x5e43f0(0x6aa),_0x3e2aa3=_0x5db1e3['createHash'](_0x5e43f0(0x5bc))[_0x5e43f0(0x5b4)](_0x5db1e3['createPublicKey'](_0x4f0273)['export']({'type':_0x5e43f0(0x2ec),'format':_0x5e43f0(0x397)}))[_0x5e43f0(0x4f7)](_0x5e43f0(0x525))[_0x5e43f0(0x1f7)](0x0,0x10),_0x47456d={'LICENSED_BUILD':_0x5e43f0(0x43b),'PUBLIC_KEY_PEM':_0x4f0273,'PUB_FINGERPRINT':_0x3e2aa3,'LICENSE_EXPIRED_ACTION':_0x5e43f0(0x58d)};return licenseConfig={'_C':_0x47456d,'PUBLIC_KEY_PEM':_0x4f0273,'PUB_FINGERPRINT':_0x3e2aa3},licenseConfig;}var okdbSubscriptionsStore={'exports':{}},okdbQueryFilter,hasRequiredOkdbQueryFilter;function requireOkdbQueryFilter(){const _0x59d762=_0x5c70f8;if(hasRequiredOkdbQueryFilter)return okdbQueryFilter;hasRequiredOkdbQueryFilter=0x1;const _0x2b829c=require$$0$5,{OKDBError:_0x47b17a}=requireOkdbError(),_0x2d4227=[_0x59d762(0x48b),'$ne','$gt',_0x59d762(0x7f9),_0x59d762(0x8ad),'$lte',_0x59d762(0x5f3),_0x59d762(0x20a),_0x59d762(0x6e9),_0x59d762(0x373),_0x59d762(0x381),_0x59d762(0x508),_0x59d762(0x4ce),_0x59d762(0x328),'$type',_0x59d762(0x51a),_0x59d762(0x452),'$and',_0x59d762(0x4ed),_0x59d762(0x39e)],_0x23c536=[_0x59d762(0x77a)];function _0x310881(_0x3a9ea2){return()=>{const _0x1207c9=_0x52a3,_0x24cd0d=new _0x47b17a(_0x1207c9(0x39f)+_0x3a9ea2+_0x1207c9(0x391),_0x1207c9(0x55a),{'operator':_0x3a9ea2});_0x24cd0d[_0x1207c9(0x717)]=0x190;throw _0x24cd0d;};}const _0x3f734a=Object[_0x59d762(0x202)]({...Object[_0x59d762(0x24a)](_0x2d4227[_0x59d762(0x35e)](_0x48c387=>[_0x48c387,_0x2b829c[_0x48c387]])),...Object[_0x59d762(0x24a)](_0x23c536[_0x59d762(0x35e)](_0x5cf236=>[_0x5cf236,_0x310881(_0x5cf236)]))});function _0x2915e8(_0x11b4dd){const _0x21d358=_0x59d762;return _0x2b829c[_0x21d358(0x693)](_0x11b4dd,{'operations':_0x3f734a});}function _0x4a1536(_0x13a735){const _0x5a9b02=_0x59d762;if(_0x13a735==null)return;try{_0x2915e8(_0x13a735);}catch(_0x324c2e){if(_0x324c2e?.[_0x5a9b02(0x50e)]===_0x5a9b02(0x55a))throw _0x324c2e;}}return okdbQueryFilter={'compileFilter':_0x2915e8,'assertFilterAllowed':_0x4a1536,'ALLOWED_OPERATORS':_0x2d4227,'FORBIDDEN_OPERATORS':_0x23c536},okdbQueryFilter;}var okdbEnvRefs,hasRequiredOkdbEnvRefs;function requireOkdbEnvRefs(){const _0x1e0b59=_0x5c70f8;if(hasRequiredOkdbEnvRefs)return okdbEnvRefs;hasRequiredOkdbEnvRefs=0x1;const {CHANGE_ACTIONS:_0x128f32,EVENTS:_0x1a181a}=requireOkdbEnums(),{OKDBError:_0x41d8df,OKDBForeignKeyDeleteError:_0x151bb2}=requireOkdbError(),_0x23fc91=_0x1e0b59(0x8e9),_0x7f3f65=new Set([_0x1e0b59(0x393),_0x1e0b59(0x2f9),_0x1e0b59(0x5ad),'restrict']);function _0x50ce29(_0x49300d,_0x18508a){const _0x20d2f5=_0x1e0b59;if(_0x49300d==null||!_0x18508a)return undefined;const _0x213cac=_0x18508a[_0x20d2f5(0x5e4)]('.');let _0x343fbd=_0x49300d;for(const _0x49bb9f of _0x213cac){if(_0x343fbd==null||typeof _0x343fbd!=='object'||!(_0x49bb9f in _0x343fbd))return undefined;_0x343fbd=_0x343fbd[_0x49bb9f];}return _0x343fbd;}function _0x29690d(_0x23766d,_0xddc424,_0x457987){const _0x3dfdf7=_0x1e0b59,_0x57b4ee=_0xddc424[_0x3dfdf7(0x5e4)]('.'),_0x22e442={..._0x23766d};let _0x31626c=_0x22e442;for(let _0x5de999=0x0;_0x5de999<_0x57b4ee[_0x3dfdf7(0x68a)]-0x1;_0x5de999++){_0x31626c[_0x57b4ee[_0x5de999]]=_0x31626c[_0x57b4ee[_0x5de999]]!=null?{..._0x31626c[_0x57b4ee[_0x5de999]]}:{},_0x31626c=_0x31626c[_0x57b4ee[_0x5de999]];}return _0x31626c[_0x57b4ee[_0x57b4ee['length']-0x1]]=_0x457987,_0x22e442;}function _0x42491a(_0x46e2e2,_0x7d32c9,_0x3bccc9,_0x2e7fa6,_0x3c5173){return[_0x46e2e2,_0x7d32c9,_0x3bccc9,_0x2e7fa6,_0x3c5173];}function _0x252b25(_0x41aee1){const _0x1d2299=_0x1e0b59;return typeof _0x41aee1==='string'||typeof _0x41aee1===_0x1d2299(0x6e7);}function _0x477949(_0x3a856c,_0x42cbd3){const _0x556170=_0x1e0b59;return JSON[_0x556170(0x35a)]([_0x3a856c,_0x42cbd3]);}function*_0x37c6a2(_0x36c829,_0x29954d,_0x5a0d84){const _0x65c549=_0x1e0b59,_0xb6cc96=_0x5a0d84!==undefined;for(const {key:_0x4f3c7e}of _0x36c829[_0x65c549(0x3ee)]({'start':_0xb6cc96?[_0x29954d,_0x5a0d84]:[_0x29954d]})){if(!Array[_0x65c549(0x439)](_0x4f3c7e))continue;if(_0x4f3c7e[0x0]!==_0x29954d||_0xb6cc96&&_0x4f3c7e[0x1]!==_0x5a0d84)break;yield _0x4f3c7e;}}function _0x33d7ce(_0x4da01a,_0x891bca='',_0x16b434=null){const _0x4b24cb=_0x1e0b59,_0x339dc7=[];if(!_0x4da01a||typeof _0x4da01a!==_0x4b24cb(0x559))return _0x339dc7;if(!_0x16b434)_0x16b434=_0x4da01a;if(_0x4da01a[_0x4b24cb(0x486)]){const _0x362bcc=_0x4da01a[_0x4b24cb(0x486)][_0x4b24cb(0x862)](/^#\/\$defs\/(.+)$/);if(_0x362bcc&&_0x16b434?.[_0x4b24cb(0x420)]?.[_0x362bcc[0x1]])return _0x33d7ce(_0x16b434[_0x4b24cb(0x420)][_0x362bcc[0x1]],_0x891bca,_0x16b434);return _0x339dc7;}if(_0x4da01a[_0x4b24cb(0x4bb)]&&typeof _0x4da01a[_0x4b24cb(0x4bb)]===_0x4b24cb(0x559)&&_0x4da01a[_0x4b24cb(0x4bb)][_0x4b24cb(0x45d)]){const _0x5bff1d=_0x4da01a[_0x4b24cb(0x4bb)][_0x4b24cb(0x700)]||_0x4b24cb(0x393);if(!_0x7f3f65[_0x4b24cb(0x571)](_0x5bff1d))throw new _0x41d8df(_0x4b24cb(0x5f9)+_0x5bff1d+_0x4b24cb(0x830)+(_0x891bca||'root')+_0x4b24cb(0x57c)+[..._0x7f3f65]['join'](',\x20'),_0x4b24cb(0x870));_0x339dc7[_0x4b24cb(0x28d)]({'fieldPath':_0x891bca,'targetType':_0x4da01a[_0x4b24cb(0x4bb)]['type'],'onDelete':_0x5bff1d});}if(_0x4da01a['properties'])for(const [_0x1d0b5e,_0x272175]of Object[_0x4b24cb(0x719)](_0x4da01a[_0x4b24cb(0x59f)])){const _0x331ee7=_0x891bca?_0x891bca+'.'+_0x1d0b5e:_0x1d0b5e;_0x339dc7[_0x4b24cb(0x28d)](..._0x33d7ce(_0x272175,_0x331ee7,_0x16b434));}return _0x339dc7;}function _0x3b247b(_0x52ee2a){const _0x2ecf8f=_0x1e0b59,_0x10bc3e=new Map(),_0x1f1e05=new Map();for(const _0x507236 of _0x52ee2a[_0x2ecf8f(0x695)]()){if(_0x507236['startsWith']('~'))continue;const _0x5584fc=_0x52ee2a[_0x2ecf8f(0x394)][_0x2ecf8f(0x309)](_0x507236);if(!_0x5584fc?.[_0x2ecf8f(0x65f)]?.[_0x2ecf8f(0x548)])continue;let _0x2a9986;try{_0x2a9986=_0x33d7ce(_0x5584fc[_0x2ecf8f(0x65f)][_0x2ecf8f(0x548)]);}catch{continue;}if(_0x2a9986[_0x2ecf8f(0x68a)]>0x0){_0x10bc3e['set'](_0x507236,_0x2a9986);for(const _0x3a7fd3 of _0x2a9986){if(!_0x1f1e05[_0x2ecf8f(0x571)](_0x3a7fd3[_0x2ecf8f(0x469)]))_0x1f1e05[_0x2ecf8f(0x63f)](_0x3a7fd3[_0x2ecf8f(0x469)],[]);_0x1f1e05[_0x2ecf8f(0x309)](_0x3a7fd3[_0x2ecf8f(0x469)])[_0x2ecf8f(0x28d)]({'sourceType':_0x507236,'fieldPath':_0x3a7fd3[_0x2ecf8f(0x5e7)],'onDelete':_0x3a7fd3[_0x2ecf8f(0x700)]});}}}_0x52ee2a[_0x2ecf8f(0x242)]={'outgoing':_0x10bc3e,'incoming':_0x1f1e05};if(_0x10bc3e[_0x2ecf8f(0x8d2)]>0x0)_0x43c18a(_0x52ee2a);}function _0x2644e9(_0x58066c,_0x4b33ed){const _0x4bdb6b=_0x1e0b59;return _0x58066c[_0x4bdb6b(0x242)][_0x4bdb6b(0x50a)]['get'](_0x4b33ed)||[];}function _0x26fddb(_0x650dbe,_0x54feb1){const _0x56f459=_0x1e0b59;return _0x650dbe[_0x56f459(0x242)]['incoming'][_0x56f459(0x309)](_0x54feb1)||[];}function _0x43c18a(_0x25b871){const _0x400fd4=_0x1e0b59;if(_0x25b871[_0x400fd4(0x3e9)])return _0x25b871[_0x400fd4(0x3e9)];return _0x25b871[_0x400fd4(0x3e9)]=_0x25b871['db'][_0x400fd4(0x863)](_0x400fd4(0x443),{'dupSort':![]}),_0x25b871[_0x400fd4(0x3e9)];}function _0x45e764(_0x156b14,_0x1f2c73,_0x2c25ff,_0x4c4873,_0x16c58f){const _0x18e7a9=_0x1e0b59,_0x5252e4=_0x2644e9(_0x156b14,_0x1f2c73);if(_0x5252e4[_0x18e7a9(0x68a)]===0x0)return;const _0x482c46=_0x43c18a(_0x156b14);for(const _0x5a8044 of _0x5252e4){const _0x13c396=_0x16c58f!=null?_0x50ce29(_0x16c58f,_0x5a8044[_0x18e7a9(0x5e7)]):undefined,_0x4140d4=_0x4c4873!=null?_0x50ce29(_0x4c4873,_0x5a8044[_0x18e7a9(0x5e7)]):undefined;if(_0x13c396===_0x4140d4)continue;_0x252b25(_0x13c396)&&_0x482c46[_0x18e7a9(0x3ac)](_0x42491a(_0x5a8044[_0x18e7a9(0x469)],_0x13c396,_0x1f2c73,_0x2c25ff,_0x5a8044[_0x18e7a9(0x5e7)])),_0x252b25(_0x4140d4)&&_0x482c46['putSync'](_0x42491a(_0x5a8044[_0x18e7a9(0x469)],_0x4140d4,_0x1f2c73,_0x2c25ff,_0x5a8044[_0x18e7a9(0x5e7)]),0x1);}}function _0x455ad3(_0x4235fa,_0x424538,_0x5e990a,_0x144cc3){const _0x470ef1=_0x1e0b59,_0x32ad47=_0x2644e9(_0x4235fa,_0x424538);if(_0x32ad47[_0x470ef1(0x68a)]===0x0)return;const _0x44b4c0=_0x43c18a(_0x4235fa);for(const _0xb6db9f of _0x32ad47){const _0x19a723=_0x144cc3!=null?_0x50ce29(_0x144cc3,_0xb6db9f[_0x470ef1(0x5e7)]):undefined;_0x252b25(_0x19a723)&&_0x44b4c0['removeSync'](_0x42491a(_0xb6db9f[_0x470ef1(0x469)],_0x19a723,_0x424538,_0x5e990a,_0xb6db9f[_0x470ef1(0x5e7)]));}}function _0x408a31(_0x38364d,_0x4e69b6,_0x1732c2,_0x3eb8af){const _0x31220c=_0x1e0b59,_0xf960e2=_0x2644e9(_0x38364d,_0x4e69b6);if(_0xf960e2[_0x31220c(0x68a)]===0x0)return[];const _0xb3c0b1=[];for(const _0x126621 of _0xf960e2){const _0x4e9021=_0x50ce29(_0x3eb8af,_0x126621['fieldPath']);if(_0x4e9021==null)continue;if(!_0x38364d[_0x31220c(0x414)](_0x126621[_0x31220c(0x469)])){_0xb3c0b1[_0x31220c(0x28d)]({'fieldPath':_0x126621[_0x31220c(0x5e7)],'targetType':_0x126621[_0x31220c(0x469)],'targetKey':_0x4e9021,'message':_0x31220c(0x352)+_0x126621[_0x31220c(0x469)]+'\x27\x20does\x20not\x20exist'});continue;}const _0x4cf2e2=_0x38364d['_getType'](_0x126621[_0x31220c(0x469)])[_0x31220c(0x6a7)];!_0x4cf2e2[_0x31220c(0x3a6)](_0x4e9021)&&_0xb3c0b1['push']({'fieldPath':_0x126621['fieldPath'],'targetType':_0x126621[_0x31220c(0x469)],'targetKey':_0x4e9021,'message':'Referenced\x20key\x20\x27'+_0x4e9021+_0x31220c(0x564)+_0x126621[_0x31220c(0x469)]+'\x27'});}return _0xb3c0b1;}function _0x303b77(_0x54ba19,_0x117be3,_0x4984d7,_0x2a750,_0x1048dd,{timestamp:_0x390b1d,origin:_0x50dd5f,_cascadeVisited:_0x18cafd}){const _0x58f5d3=_0x1e0b59,_0xa6e4f=_0x26fddb(_0x54ba19,_0x4984d7);if(_0xa6e4f[_0x58f5d3(0x68a)]===0x0)return;const _0x414bab=_0x43c18a(_0x54ba19),_0x1d75fd=[];for(const [,,_0x2598b1,_0x16689b,_0x3a4c11]of _0x37c6a2(_0x414bab,_0x4984d7,_0x2a750)){_0x1d75fd[_0x58f5d3(0x28d)]({'sourceType':_0x2598b1,'sourceKey':_0x16689b,'fieldPath':_0x3a4c11});}if(_0x1d75fd[_0x58f5d3(0x68a)]===0x0)return;for(const _0x26561f of _0x1d75fd){const _0x42488a=_0xa6e4f[_0x58f5d3(0x73d)](_0x491708=>_0x491708['sourceType']===_0x26561f[_0x58f5d3(0x816)]&&_0x491708[_0x58f5d3(0x5e7)]===_0x26561f[_0x58f5d3(0x5e7)]),_0x3620df=_0x42488a?.[_0x58f5d3(0x700)]||_0x58f5d3(0x393);switch(_0x3620df){case _0x58f5d3(0x311):{if(_0x50dd5f===null)throw new _0x151bb2(_0x4984d7,_0x2a750,_0x1d75fd[_0x58f5d3(0x4e1)](_0x548639=>{const _0x5bd867=_0x58f5d3,_0x3303c4=_0xa6e4f[_0x5bd867(0x73d)](_0x398113=>_0x398113[_0x5bd867(0x816)]===_0x548639[_0x5bd867(0x816)]&&_0x398113[_0x5bd867(0x5e7)]===_0x548639['fieldPath']);return(_0x3303c4?.[_0x5bd867(0x700)]||_0x5bd867(0x393))===_0x5bd867(0x311);}));break;}case _0x58f5d3(0x2f9):{const _0x4f1f75=_0x477949(_0x26561f[_0x58f5d3(0x816)],_0x26561f[_0x58f5d3(0x713)]);if(_0x18cafd[_0x58f5d3(0x571)](_0x4f1f75))continue;_0x54ba19[_0x58f5d3(0x3c8)](_0x26561f[_0x58f5d3(0x816)])['data'][_0x58f5d3(0x3a6)](_0x26561f[_0x58f5d3(0x713)])&&_0x54ba19[_0x58f5d3(0x46d)](_0x117be3,_0x26561f[_0x58f5d3(0x816)],_0x26561f[_0x58f5d3(0x713)],{'timestamp':_0x390b1d,'origin':_0x50dd5f,'_cascadeVisited':_0x18cafd});break;}case _0x58f5d3(0x5ad):{const _0x4b0f05=_0x54ba19[_0x58f5d3(0x3c8)](_0x26561f[_0x58f5d3(0x816)])[_0x58f5d3(0x6a7)],_0x11b488=_0x4b0f05[_0x58f5d3(0x3a0)](_0x26561f[_0x58f5d3(0x713)]);if(_0x11b488){const _0x19aadc=_0x29690d(_0x11b488[_0x58f5d3(0x2ef)],_0x26561f[_0x58f5d3(0x5e7)],null);_0x54ba19[_0x58f5d3(0x77c)](_0x117be3,_0x58f5d3(0x253),_0x26561f['sourceType'],_0x26561f[_0x58f5d3(0x713)],_0x19aadc,{'timestamp':_0x390b1d,'origin':_0x50dd5f,'_cascading':!![]});}break;}}}}function _0xe0c25d(_0x5820f6){const _0x607da1=_0x1e0b59;!_0x5820f6[_0x607da1(0x414)](_0x23fc91)&&_0x5820f6[_0x607da1(0x4ad)](_0x23fc91);}function _0xa49407(_0x4ad5f7,_0x46477c,_0xd6c38f,_0x58d61f,_0x567bb0,_0x2b0945,_0x1beb8d,{timestamp:timestamp=Date[_0x1e0b59(0x8cc)](),origin:origin=null}={}){const _0x1e4fa3=_0x1e0b59;_0xe0c25d(_0x4ad5f7);const _0x397d7c=_0xd6c38f+'@'+_0x58d61f+'@'+_0x567bb0,_0x3d037f={'sourceType':_0xd6c38f,'sourceKey':_0x58d61f,'fieldPath':_0x567bb0,'targetType':_0x2b0945,'targetKey':_0x1beb8d,'timestamp':timestamp,'origin':origin},_0x42d59c=_0x4ad5f7[_0x1e4fa3(0x3c8)](_0x23fc91)[_0x1e4fa3(0x6a7)],_0x5b89e3=_0x42d59c[_0x1e4fa3(0x3a0)](_0x397d7c),_0x1e6e3f=_0x5b89e3?_0x5b89e3[_0x1e4fa3(0x1d0)]+0x1:0x1;_0x42d59c[_0x1e4fa3(0x512)](_0x397d7c,_0x3d037f,_0x1e6e3f),_0x4ad5f7[_0x1e4fa3(0x52d)]({'id':_0x1e4fa3(0x1c1)+_0x23fc91+'@'+_0x397d7c,'type':_0x23fc91,'key':_0x397d7c,'action':_0x128f32[_0x1e4fa3(0x694)],'timestamp':timestamp,'txnId':_0x46477c?.['id'],'origin':origin},_0x5b89e3?.[_0x1e4fa3(0x2ef)],_0x3d037f),_0x4ad5f7[_0x1e4fa3(0x4cb)]['emit'](_0x1a181a['REF_VIOLATION'],{'sourceType':_0xd6c38f,'sourceKey':_0x58d61f,'fieldPath':_0x567bb0,'targetType':_0x2b0945,'targetKey':_0x1beb8d,'env':_0x4ad5f7[_0x1e4fa3(0x54b)]});}function _0x3dd8b9(_0x45a98f,_0x1b0bbb,_0x53d45a,_0x54fa7a,_0x17af02,{timestamp:timestamp=Date[_0x1e0b59(0x8cc)](),origin:origin=null}={}){const _0x540944=_0x1e0b59;if(!_0x45a98f[_0x540944(0x414)](_0x23fc91))return;const _0x295951=_0x53d45a+'@'+_0x54fa7a+'@'+_0x17af02,_0x337d24=_0x45a98f['_getType'](_0x23fc91)[_0x540944(0x6a7)],_0x1433bb=_0x337d24[_0x540944(0x3a0)](_0x295951);if(!_0x1433bb)return;_0x337d24['removeSync'](_0x295951),_0x45a98f[_0x540944(0x52d)]({'id':_0x540944(0x1c1)+_0x23fc91+'@'+_0x295951,'type':_0x23fc91,'key':_0x295951,'action':_0x128f32[_0x540944(0x8a0)],'timestamp':timestamp,'txnId':_0x1b0bbb?.['id'],'origin':origin},_0x1433bb[_0x540944(0x2ef)],undefined),_0x45a98f[_0x540944(0x4cb)][_0x540944(0x5a2)](_0x1a181a[_0x540944(0x8c5)],{'sourceType':_0x53d45a,'sourceKey':_0x54fa7a,'fieldPath':_0x17af02,'env':_0x45a98f['name']});}function _0x564cf2(_0x3ae53e,_0x26af28,_0xb5083f,_0x29fa82,_0x364bd1={}){const _0x6ab484=_0x1e0b59;if(!_0x3ae53e[_0x6ab484(0x414)](_0x23fc91))return;const _0x3b132e=_0x3ae53e[_0x6ab484(0x3c8)](_0x23fc91)[_0x6ab484(0x6a7)],_0x2895dd=_0xb5083f+'@'+_0x29fa82+'@',_0x46c8f1=[];for(const {key:_0xf3e3b7,value:_0x5535be}of _0x3b132e['getRange']({'start':_0x2895dd,'end':_0x2895dd+'\uffff'})){if(_0x5535be?.[_0x6ab484(0x816)]===_0xb5083f&&_0x5535be?.[_0x6ab484(0x713)]===_0x29fa82)_0x46c8f1['push'](_0xf3e3b7);}for(const _0x6709e3 of _0x46c8f1){const _0x1e95c4=_0x3b132e[_0x6ab484(0x3a0)](_0x6709e3);if(!_0x1e95c4)continue;_0x3b132e[_0x6ab484(0x3ac)](_0x6709e3),_0x3ae53e[_0x6ab484(0x52d)]({'id':'item:'+_0x23fc91+'@'+_0x6709e3,'type':_0x23fc91,'key':_0x6709e3,'action':_0x128f32[_0x6ab484(0x8a0)],'timestamp':_0x364bd1['timestamp']||Date[_0x6ab484(0x8cc)](),'txnId':_0x26af28?.['id'],'origin':_0x364bd1[_0x6ab484(0x860)]},_0x1e95c4[_0x6ab484(0x2ef)],undefined);}}function _0x446b07(_0x212eda,_0x29c46b){const _0x515ccc=_0x1e0b59;if(!_0x212eda[_0x515ccc(0x414)](_0x23fc91))return;const _0x5c4eb7=_0x212eda['_getType'](_0x23fc91)[_0x515ccc(0x6a7)],_0xcde11c=_0x29c46b+'@',_0x4ad24a=[];for(const {key:_0x400c36,value:_0x57477b}of _0x5c4eb7[_0x515ccc(0x3ee)]({'start':_0xcde11c,'end':_0xcde11c+'\uffff'})){if(_0x57477b?.['sourceType']===_0x29c46b)_0x4ad24a[_0x515ccc(0x28d)](_0x400c36);}for(const _0x528187 of _0x4ad24a)_0x5c4eb7[_0x515ccc(0x3ac)](_0x528187);}async function _0x302daf(_0x57d930,_0x1cc115){const _0x41e0c2=_0x1e0b59,_0x5223c1=_0x2644e9(_0x57d930,_0x1cc115);if(_0x5223c1[_0x41e0c2(0x68a)]===0x0)return;await _0x57d930['_writer']['transaction'](()=>{for(const {key:_0x42fa80,value:_0x59362d}of _0x57d930['getRange'](_0x1cc115)){_0x45e764(_0x57d930,_0x1cc115,_0x42fa80,_0x59362d,null);const _0x4c3cfb=_0x408a31(_0x57d930,_0x1cc115,_0x42fa80,_0x59362d);for(const _0x3a0aa8 of _0x4c3cfb){_0xa49407(_0x57d930,null,_0x1cc115,_0x42fa80,_0x3a0aa8['fieldPath'],_0x3a0aa8['targetType'],_0x3a0aa8['targetKey']);}}});}const _0x558207=0x1388;async function _0x5b799e(_0x1a76e9){const _0x1420e7=_0x1e0b59,_0x420313=_0x1a76e9['_refCache']?.[_0x1420e7(0x50a)]?.[_0x1420e7(0x8d2)]>0x0;if(!_0x420313&&!_0x1a76e9['_refIndexDb'])return{'dropped':0x0,'written':0x0};const _0x507175=_0x43c18a(_0x1a76e9);let _0x5668cd=0x0;for(;;){const _0x36d520=Array[_0x1420e7(0x48d)](_0x507175[_0x1420e7(0x300)]({'limit':_0x558207}));if(_0x36d520['length']===0x0)break;let _0x25046a=0x0;await _0x1a76e9[_0x1420e7(0x767)][_0x1420e7(0x68f)](()=>{for(const _0x1f335c of _0x36d520)if(_0x507175['removeSync'](_0x1f335c))_0x25046a++;});if(_0x25046a===0x0)break;_0x5668cd+=_0x25046a;}let _0x3f89a4=0x0;for(const _0x5b5255 of _0x1a76e9[_0x1420e7(0x242)][_0x1420e7(0x50a)][_0x1420e7(0x4ac)]()){if(_0x5b5255[_0x1420e7(0x38a)]('~')||!_0x1a76e9['hasType'](_0x5b5255))continue;const _0x1cb61f=_0x2644e9(_0x1a76e9,_0x5b5255);await _0x1a76e9['_writer'][_0x1420e7(0x68f)](()=>{const _0x310859=_0x1420e7;for(const {key:_0x1977ca,value:_0x5000e6}of _0x1a76e9[_0x310859(0x3ee)](_0x5b5255)){for(const _0x491f3a of _0x1cb61f){const _0x1e290c=_0x50ce29(_0x5000e6,_0x491f3a[_0x310859(0x5e7)]);if(!_0x252b25(_0x1e290c))continue;_0x507175[_0x310859(0x512)](_0x42491a(_0x491f3a[_0x310859(0x469)],_0x1e290c,_0x5b5255,_0x1977ca,_0x491f3a[_0x310859(0x5e7)]),0x1),_0x3f89a4++;}}});}return{'dropped':_0x5668cd,'written':_0x3f89a4};}return okdbEnvRefs={'getFieldValue':_0x50ce29,'setFieldValue':_0x29690d,'refIndexKey':_0x42491a,'isRefTarget':_0x252b25,'cascadeVisitKey':_0x477949,'extractRefs':_0x33d7ce,'rebuildRefCache':_0x3b247b,'getTypeRefs':_0x2644e9,'getIncomingRefs':_0x26fddb,'getRefIndexDb':_0x43c18a,'updateRefIndex':_0x45e764,'removeRefIndexEntries':_0x455ad3,'refIndexRowsFor':_0x37c6a2,'rebuildRefIndex':_0x5b799e,'checkForeignKeys':_0x408a31,'processDeleteCascade':_0x303b77,'setRefViolation':_0xa49407,'clearRefViolation':_0x3dd8b9,'clearRefViolationsForKey':_0x564cf2,'clearRefViolationsForType':_0x446b07,'syncRefIndex':_0x302daf},okdbEnvRefs;}var hasRequiredOkdbSubscriptionsStore;function requireOkdbSubscriptionsStore(){const _0x2d5e1a=_0x5c70f8;if(hasRequiredOkdbSubscriptionsStore)return okdbSubscriptionsStore[_0x2d5e1a(0x28e)];hasRequiredOkdbSubscriptionsStore=0x1;const _0x498c60=require$$0$4,{assertFilterAllowed:_0x35e3ba}=requireOkdbQueryFilter(),{rebuildRefCache:_0x2564a4}=requireOkdbEnvRefs(),_0x445fa2=_0x2d5e1a(0x3cf),_0x4e5e55=_0x2d5e1a(0x868),_0x42eedb='interest',_0x473066=[_0x2d5e1a(0x5c7),'type',_0x2d5e1a(0x82f)],_0x35a0e3=[_0x2d5e1a(0x5c7),'type'],_0xc444dd=0x5a*0x3e8,_0x5637d=Math[_0x2d5e1a(0x481)](_0xc444dd/0x2);class _0x253fe7{constructor(_0x45dda1,_0x56a0c8={}){const _0x389b1b=_0x2d5e1a;this[_0x389b1b(0x61e)]=_0x45dda1,this[_0x389b1b(0x60a)]=Number[_0x389b1b(0x85e)](_0x56a0c8['ttlMs'])&&_0x56a0c8[_0x389b1b(0x60a)]>0x0?_0x56a0c8[_0x389b1b(0x60a)]:_0xc444dd,this[_0x389b1b(0x8c1)]=Number[_0x389b1b(0x85e)](_0x56a0c8['refreshThresholdMs'])?_0x56a0c8[_0x389b1b(0x8c1)]:_0x5637d,this[_0x389b1b(0x496)]=null;}async[_0x2d5e1a(0x260)](){const _0xc18a0a=_0x2d5e1a;if(this[_0xc18a0a(0x496)])return this[_0xc18a0a(0x496)];const _0x327e1d=await this[_0xc18a0a(0x61e)][_0xc18a0a(0x3d0)](_0x445fa2,{'sync':![]});return await _0x327e1d[_0xc18a0a(0x1be)](_0x4e5e55,{'indexes':[_0x35a0e3]}),await _0x327e1d['ensureType'](_0x42eedb),_0x327e1d[_0xc18a0a(0x28f)](_0x42eedb)?_0x2564a4(_0x327e1d):await _0x327e1d['setSchema'](_0x42eedb,{'definition':{'type':'object','properties':{'sessionId':{'type':_0xc18a0a(0x2b1),'ref':{'type':_0x4e5e55,'onDelete':_0xc18a0a(0x2f9)}},'dataEnv':{'type':'string'},'type':{'type':'string'},'key':{'type':'string'}},'required':[_0xc18a0a(0x576),_0xc18a0a(0x5c7),'type',_0xc18a0a(0x82f)]},'enforce':!![]}),await _0x327e1d[_0xc18a0a(0x1be)](_0x42eedb,{'indexes':[_0x473066]}),await _0x327e1d['indexReady'](_0x42eedb,_0x473066),await _0x327e1d[_0xc18a0a(0x864)](_0x4e5e55,_0x35a0e3),this[_0xc18a0a(0x496)]=_0x327e1d,_0x327e1d;}['_env'](){const _0xa350b6=_0x2d5e1a;if(!this['_sub'])throw new Error(_0xa350b6(0x705));return this['_sub'];}async['createSession']({sessionId:_0x32c17e,dataEnv:_0x52fabb,type:_0x2a4703,filter:filter=null,ttlMs:_0x2e0301}={}){const _0x3dce7a=_0x2d5e1a,_0x4bd5cb=this[_0x3dce7a(0x4dd)]();_0x35e3ba(filter);const _0x5640d6=_0x32c17e!=null&&String(_0x32c17e)['length']>0x0?String(_0x32c17e):_0x498c60['randomUUID'](),_0x134b42=Number[_0x3dce7a(0x85e)](_0x2e0301)&&_0x2e0301>0x0?_0x2e0301:this[_0x3dce7a(0x60a)],_0x5bdad7=Date['now'](),_0xfd213={'sessionId':_0x5640d6,'dataEnv':_0x52fabb,'type':_0x2a4703,'filter':filter??null,'version':0x0,'createdAt':_0x5bdad7,'expiresAt':_0x5bdad7+_0x134b42};return await _0x4bd5cb['put'](_0x4e5e55,_0x5640d6,_0xfd213,{'ttl':_0x134b42}),{'sessionId':_0x5640d6,'version':0x0};}[_0x2d5e1a(0x5ec)](_0x40df6b){if(!_0x40df6b)return null;return this['_env']()['get'](_0x4e5e55,String(_0x40df6b))??null;}async['closeSession'](_0x44ce6f){const _0x169b26=_0x2d5e1a,_0x320a1e=this[_0x169b26(0x4dd)](),_0xa4b40e=String(_0x44ce6f);if(!_0x320a1e[_0x169b26(0x309)](_0x4e5e55,_0xa4b40e))return![];return await _0x320a1e[_0x169b26(0x504)](_0x4e5e55,_0xa4b40e),!![];}async[_0x2d5e1a(0x286)](_0x206d63){const _0x3f84e0=_0x2d5e1a,_0xfca2da=this[_0x3f84e0(0x4dd)](),_0x32749d=String(_0x206d63),_0x247b8=_0xfca2da['get'](_0x4e5e55,_0x32749d);if(!_0x247b8)return null;const _0x407bf2=(Number['isFinite'](_0x247b8[_0x3f84e0(0x1d0)])?_0x247b8['version']:0x0)+0x1;return await _0xfca2da[_0x3f84e0(0x253)](_0x4e5e55,_0x32749d,{..._0x247b8,'version':_0x407bf2}),_0x407bf2;}async[_0x2d5e1a(0x534)](_0x6051b9,_0x5c42ee){const _0x3cc765=_0x2d5e1a,_0x2a0541=this['_env'](),_0x2c1ff8=String(_0x6051b9);if(!_0x2a0541['get'](_0x4e5e55,_0x2c1ff8))return![];const _0x3b9f7b=Number[_0x3cc765(0x85e)](_0x5c42ee)&&_0x5c42ee>0x0?_0x5c42ee:this['ttlMs'];if(this[_0x3cc765(0x254)](_0x2c1ff8))return![];return await _0x2a0541[_0x3cc765(0x246)](_0x4e5e55,_0x2c1ff8,_0x3b9f7b),await this['_syncExpiresAtField'](_0x2c1ff8,_0x3b9f7b),!![];}async['refreshTtlBatch'](_0x1f9348,_0x20e045){const _0x5a161e=_0x2d5e1a,_0x57b9bb=this[_0x5a161e(0x4dd)](),_0x1e6755=Number[_0x5a161e(0x85e)](_0x20e045)&&_0x20e045>0x0?_0x20e045:this[_0x5a161e(0x60a)],_0x298568=Date[_0x5a161e(0x8cc)](),_0xde9949=[];for(const _0x1f00d2 of _0x1f9348||[]){const _0x2df00e=String(_0x1f00d2),_0x3dfb8c=_0x57b9bb[_0x5a161e(0x309)](_0x4e5e55,_0x2df00e);if(!_0x3dfb8c)continue;if(this[_0x5a161e(0x254)](_0x2df00e,_0x298568))continue;_0xde9949[_0x5a161e(0x28d)]({'id':_0x2df00e,'cur':_0x3dfb8c});}if(_0xde9949[_0x5a161e(0x68a)]===0x0)return[];return await _0x57b9bb[_0x5a161e(0x4b8)](async _0x5e0501=>{const _0x1fc2a7=_0x5a161e;for(const {id:_0xe2e86c,cur:_0x7f027b}of _0xde9949){_0x5e0501[_0x1fc2a7(0x253)](_0x4e5e55,_0xe2e86c,{..._0x7f027b,'expiresAt':_0x298568+_0x1e6755}),_0x5e0501[_0x1fc2a7(0x246)](_0x4e5e55,_0xe2e86c,_0x1e6755);}}),_0xde9949[_0x5a161e(0x35e)](_0x2f9e20=>_0x2f9e20['id']);}['_isFar'](_0x27bd31,_0x33b3b2=Date[_0x2d5e1a(0x8cc)]()){const _0x4d880e=_0x2d5e1a,_0x5b9922=this['_env']()[_0x4d880e(0x40b)](_0x4e5e55,String(_0x27bd31));if(!_0x5b9922)return![];return _0x5b9922[_0x4d880e(0x49f)]-_0x33b3b2>this[_0x4d880e(0x8c1)];}async[_0x2d5e1a(0x643)](_0xb5a302,_0x19b4b0){const _0x2639a8=_0x2d5e1a,_0x4446f4=this['_env'](),_0x1b2461=_0x4446f4[_0x2639a8(0x309)](_0x4e5e55,_0xb5a302);if(!_0x1b2461)return;await _0x4446f4[_0x2639a8(0x253)](_0x4e5e55,_0xb5a302,{..._0x1b2461,'expiresAt':Date['now']()+_0x19b4b0});}async[_0x2d5e1a(0x36b)](_0x523a38,_0x22734e,_0x284438){const _0x3e9788=_0x2d5e1a,_0x5c6a23=this[_0x3e9788(0x4dd)](),_0x5a47f6=String(_0x523a38),_0x28d4a7=_0x5c6a23['get'](_0x4e5e55,_0x5a47f6);if(!_0x28d4a7)throw new Error(_0x3e9788(0x1e7)+_0x5a47f6);const _0xb5e54=_0x498c60[_0x3e9788(0x809)]();return await _0x5c6a23[_0x3e9788(0x253)](_0x42eedb,_0xb5e54,{'sessionId':_0x5a47f6,'dataEnv':String(_0x28d4a7[_0x3e9788(0x5c7)]),'type':String(_0x22734e),'key':String(_0x284438)}),_0xb5e54;}async[_0x2d5e1a(0x7e1)](_0x2389e2,_0x14a0ad,{retries:retries=0x8}={}){const _0x4d4689=_0x2d5e1a,_0x5b23a1=this[_0x4d4689(0x4dd)]();for(let _0x34f176=0x0;;_0x34f176++){const _0x2f86c9=_0x5b23a1['getEntry'](_0x4e5e55,_0x2389e2);if(!_0x2f86c9)return null;const _0x21c1ca=_0x2f86c9[_0x4d4689(0x2ef)],_0x36c15d=(Number[_0x4d4689(0x85e)](_0x21c1ca[_0x4d4689(0x1d0)])?_0x21c1ca[_0x4d4689(0x1d0)]:0x0)+0x1,{sessionPatch:sessionPatch={},applyInterests:applyInterests=null}=_0x14a0ad(_0x21c1ca,_0x5b23a1)||{};try{return await _0x5b23a1[_0x4d4689(0x4b8)](async _0x45545d=>{const _0x9ea8e6=_0x4d4689;applyInterests?.(_0x45545d),_0x45545d[_0x9ea8e6(0x253)](_0x4e5e55,_0x2389e2,{..._0x21c1ca,...sessionPatch,'version':_0x36c15d},{'ifVersion':_0x2f86c9[_0x9ea8e6(0x1d0)]});}),_0x36c15d;}catch(_0x140fd3){if(_0x140fd3?.['code']===_0x4d4689(0x721)&&_0x34f176<retries)continue;throw _0x140fd3;}}}async[_0x2d5e1a(0x69e)](_0x177c42,{add:add=[],remove:remove=[]}={}){const _0x421ebd=String(_0x177c42);return this['_commitSessionMutation'](_0x421ebd,(_0x2c71a2,_0x4ba5a6)=>{const _0x417eda=_0x52a3,_0x4ad655=String(_0x2c71a2[_0x417eda(0x5c7)]),_0x17e1fc=new Set((remove||[])[_0x417eda(0x35e)](_0x3e44d2=>String(_0x3e44d2[_0x417eda(0x45d)])+'\x00'+String(_0x3e44d2[_0x417eda(0x82f)]))),_0x35412c=[];if(_0x17e1fc[_0x417eda(0x8d2)]>0x0)for(const {key:_0x1e4d27,value:_0x34d2ae}of _0x4ba5a6[_0x417eda(0x3ee)](_0x42eedb,{})){if(!_0x34d2ae||_0x34d2ae[_0x417eda(0x576)]!==_0x421ebd)continue;if(_0x17e1fc[_0x417eda(0x571)](_0x34d2ae[_0x417eda(0x45d)]+'\x00'+_0x34d2ae['key']))_0x35412c['push'](_0x1e4d27);}const _0x4e1aac=(add||[])[_0x417eda(0x35e)](_0x27ab2f=>({'id':_0x498c60['randomUUID'](),'type':String(_0x27ab2f[_0x417eda(0x45d)]),'key':String(_0x27ab2f['key'])}));return{'applyInterests':_0x1460f1=>{const _0x315d64=_0x417eda;for(const _0x2a1f14 of _0x35412c)_0x1460f1[_0x315d64(0x504)](_0x42eedb,_0x2a1f14);for(const _0x41817e of _0x4e1aac)_0x1460f1[_0x315d64(0x253)](_0x42eedb,_0x41817e['id'],{'sessionId':_0x421ebd,'dataEnv':_0x4ad655,'type':_0x41817e['type'],'key':_0x41817e[_0x315d64(0x82f)]});}};});}async['setFilter'](_0x5343a0,_0x2d60eb){const _0x3d99ae=_0x2d5e1a;_0x35e3ba(_0x2d60eb);const _0x298a8f=String(_0x5343a0);return this[_0x3d99ae(0x7e1)](_0x298a8f,()=>({'sessionPatch':{'filter':_0x2d60eb??null}}));}async['removeInterest'](_0x5a497f,_0x43f932,_0x30e925){const _0x1c2eac=_0x2d5e1a,_0x7a3762=this[_0x1c2eac(0x4dd)](),_0x2f8bf1=String(_0x5a497f),_0x5432fe=String(_0x43f932),_0x5f46e5=String(_0x30e925),_0x1786df=[];for(const {key:_0x4d1e79,value:_0x14aba9}of _0x7a3762[_0x1c2eac(0x3ee)](_0x42eedb,{})){if(_0x14aba9&&_0x14aba9[_0x1c2eac(0x576)]===_0x2f8bf1&&_0x14aba9[_0x1c2eac(0x45d)]===_0x5432fe&&_0x14aba9[_0x1c2eac(0x82f)]===_0x5f46e5)_0x1786df[_0x1c2eac(0x28d)](_0x4d1e79);}for(const _0x1c9953 of _0x1786df)await _0x7a3762['remove'](_0x42eedb,_0x1c9953);return _0x1786df[_0x1c2eac(0x68a)];}async['replaceInterests'](_0x5dd80f,_0x4c85a3){const _0x51efc5=_0x2d5e1a,_0x556f55=String(_0x5dd80f);return this[_0x51efc5(0x7e1)](_0x556f55,(_0x9d320a,_0x3d79e2)=>{const _0x2dfbe7=_0x51efc5,_0x44a8fa=String(_0x9d320a[_0x2dfbe7(0x5c7)]),_0x2aa355=[];for(const {key:_0x437f15,value:_0x552bcf}of _0x3d79e2[_0x2dfbe7(0x3ee)](_0x42eedb,{})){if(_0x552bcf&&_0x552bcf[_0x2dfbe7(0x576)]===_0x556f55)_0x2aa355[_0x2dfbe7(0x28d)](_0x437f15);}const _0x38c27b=(_0x4c85a3||[])[_0x2dfbe7(0x35e)](_0x2fa8d9=>({'id':_0x498c60[_0x2dfbe7(0x809)](),'type':String(_0x2fa8d9[_0x2dfbe7(0x45d)]),'key':String(_0x2fa8d9[_0x2dfbe7(0x82f)])}));return{'applyInterests':_0x580831=>{const _0x2546a2=_0x2dfbe7;for(const _0xa98299 of _0x2aa355)_0x580831[_0x2546a2(0x504)](_0x42eedb,_0xa98299);for(const _0x466d8a of _0x38c27b)_0x580831['put'](_0x42eedb,_0x466d8a['id'],{'sessionId':_0x556f55,'dataEnv':_0x44a8fa,'type':_0x466d8a[_0x2546a2(0x45d)],'key':_0x466d8a[_0x2546a2(0x82f)]});}};});}[_0x2d5e1a(0x2e9)](_0x188417,_0x38bd32,_0x9b0a4c){const _0x16bfb4=_0x2d5e1a,_0x4dad43=this[_0x16bfb4(0x4dd)](),_0x5437e5=String(_0x188417),_0x1ec216=String(_0x38bd32),_0x589946=String(_0x9b0a4c),_0xed19a7=new Set();for(const {value:_0x4e5246}of _0x4dad43[_0x16bfb4(0x5c4)](_0x42eedb,_0x473066,{'start':[_0x5437e5,_0x1ec216,_0x589946],'end':[_0x5437e5,_0x1ec216,_0x589946,'￿']})){if(_0x4e5246&&_0x4e5246[_0x16bfb4(0x576)])_0xed19a7['add'](_0x4e5246[_0x16bfb4(0x576)]);}return[..._0xed19a7];}[_0x2d5e1a(0x62b)](_0xe2f96a,_0x131eda){const _0x25c351=_0x2d5e1a,_0x3ccec1=this[_0x25c351(0x4dd)](),_0xe6009d=String(_0xe2f96a),_0x37e498=String(_0x131eda),_0x533b9a=[];for(const {value:_0x5e09b3}of _0x3ccec1[_0x25c351(0x5c4)](_0x4e5e55,_0x35a0e3,{'start':[_0xe6009d,_0x37e498],'end':[_0xe6009d,_0x37e498,'\uffff']})){if(!_0x5e09b3||_0x5e09b3[_0x25c351(0x5c7)]!==_0xe6009d||_0x5e09b3[_0x25c351(0x45d)]!==_0x37e498)continue;if(_0x5e09b3[_0x25c351(0x4e1)]==null)continue;_0x533b9a[_0x25c351(0x28d)]({'sessionId':_0x5e09b3[_0x25c351(0x576)],'filter':_0x5e09b3[_0x25c351(0x4e1)],'version':Number[_0x25c351(0x85e)](_0x5e09b3[_0x25c351(0x1d0)])?_0x5e09b3[_0x25c351(0x1d0)]:0x0});}return _0x533b9a;}async[_0x2d5e1a(0x371)](){return this['_env']()['sweepExpiredTTL']();}}return okdbSubscriptionsStore['exports']=_0x253fe7,okdbSubscriptionsStore['exports'][_0x2d5e1a(0x75c)]=_0x445fa2,okdbSubscriptionsStore[_0x2d5e1a(0x28e)]['T_SESSION']=_0x4e5e55,okdbSubscriptionsStore['exports']['T_INTEREST']=_0x42eedb,okdbSubscriptionsStore[_0x2d5e1a(0x28e)][_0x2d5e1a(0x742)]=_0x473066,okdbSubscriptionsStore[_0x2d5e1a(0x28e)]['SESSION_TYPE_INDEX']=_0x35a0e3,okdbSubscriptionsStore[_0x2d5e1a(0x28e)]['DEFAULT_TTL_MS']=_0xc444dd,okdbSubscriptionsStore[_0x2d5e1a(0x28e)];}var version=_0x5c70f8(0x4e7),require$$29={'version':version},okdbEnginesEnums,hasRequiredOkdbEnginesEnums;function requireOkdbEnginesEnums(){const _0x14ed76=_0x5c70f8;if(hasRequiredOkdbEnginesEnums)return okdbEnginesEnums;hasRequiredOkdbEnginesEnums=0x1;const _0xa45269=_0x14ed76(0x665),_0x51954b=0xa,_0x4d5761=Object[_0x14ed76(0x202)]({'CREATED':'created','ONLINE':'online','STOPPED':_0x14ed76(0x5a6),'INACTIVE':_0x14ed76(0x5cc),'ERROR':_0x14ed76(0x62e),'REMOVED':_0x14ed76(0x7cc)}),_0x3b993b=Object[_0x14ed76(0x202)]({'STARTED':_0x14ed76(0x3c4),'STOPPED':_0x14ed76(0x5a6),'ERROR':_0x14ed76(0x62e),'INSTALLED':'installed','UNINSTALLED':_0x14ed76(0x363)}),_0xc993c4=Object[_0x14ed76(0x202)](new Set([_0x4d5761[_0x14ed76(0x696)],_0x4d5761['STOPPED'],_0x4d5761[_0x14ed76(0x6a9)],_0x4d5761[_0x14ed76(0x7d8)]]));function _0x2069b1(_0x40f8c3){const _0x673209=_0x14ed76;return _0x40f8c3?.['enabled']===![]?_0x4d5761[_0x673209(0x8db)]:_0x673209(0x35f);}return okdbEnginesEnums={'TYPE_ENGINES':_0xa45269,'MAX_UPDATE_RETRIES':_0x51954b,'ENGINE_STATUS':_0x4d5761,'ENGINE_EVENTS':_0x3b993b,'UPDATABLE_STATUSES':_0xc993c4,'durableOnlyEngineState':_0x2069b1},okdbEnginesEnums;}var enums,hasRequiredEnums;function requireEnums(){const _0x2ea3c4=_0x5c70f8;if(hasRequiredEnums)return enums;hasRequiredEnums=0x1;const _0x2676a7=Object['freeze']({'EMBEDDER':_0x2ea3c4(0x4c1),'INDEXER':'indexer','SEARCH':_0x2ea3c4(0x636),'WORKER':_0x2ea3c4(0x590)}),_0x38d79a=Object[_0x2ea3c4(0x202)]({'PENDING':_0x2ea3c4(0x321),'DONE':_0x2ea3c4(0x588),'FAILED':'failed','DELETED':_0x2ea3c4(0x7c4)}),_0x3014e4=Object[_0x2ea3c4(0x202)]({'INDEXER_READY':_0x2ea3c4(0x40e),'INDEXER_FLUSHED':'embeddings:indexer:flushed','INDEXER_DOC_DONE':_0x2ea3c4(0x592),'INDEXER_DOC_FAILED':'embeddings:indexer:doc:failed','INDEXER_DOC_QUEUED':_0x2ea3c4(0x849),'STRATEGY_REGISTERED':'embeddings:strategy:registered','DOC_STATUS_CHANGE':_0x2ea3c4(0x27f),'PIPELINE_READY':_0x2ea3c4(0x250)}),_0x452fe9=Object[_0x2ea3c4(0x202)]({'MODELS':_0x2ea3c4(0x270),'DOC_STATUS_PREFIX':'doc_status:','VEC_PREFIX':_0x2ea3c4(0x81f)});return enums={'ENGINE_TYPES':_0x2676a7,'INDEXER_DOC_STATUS':_0x38d79a,'EMBEDDINGS_EVENTS':_0x3014e4,'INTERNAL_TYPES':_0x452fe9},enums;}var okdbQueueValidate,hasRequiredOkdbQueueValidate;function requireOkdbQueueValidate(){const _0x1ab742=_0x5c70f8;if(hasRequiredOkdbQueueValidate)return okdbQueueValidate;hasRequiredOkdbQueueValidate=0x1;const _0x374427=Object[_0x1ab742(0x202)]({'PENDING':_0x1ab742(0x321),'RUNNING':'running','DONE':'done','FAILED':_0x1ab742(0x697)}),_0xded7c9=Object[_0x1ab742(0x202)]({'ACTIVE':_0x1ab742(0x537),'PAUSED':'paused','DRAINING':'draining'}),_0xb558ff=Object[_0x1ab742(0x202)]({'ENQUEUED':_0x1ab742(0x662),'DONE':_0x1ab742(0x281),'FAILED':_0x1ab742(0x745),'RETRY':_0x1ab742(0x2c7),'RESCHEDULED':_0x1ab742(0x7d0),'REMOVED':_0x1ab742(0x284),'RECONCILED':'queue:reconciled','CLEAR_PROGRESS':_0x1ab742(0x236),'CLEAR_DONE':'queue:clear-done','LOG':'queue:log'}),_0x28960a=Object['freeze'](['debug',_0x1ab742(0x7e2),_0x1ab742(0x2f1),_0x1ab742(0x62e)]),_0x5aff6c=0x1,_0x41e756=0xc350,_0x1b78e7=0x400,_0x118536=0x800;function _0x853f80(_0x28f957){const _0x23a5fb=_0x1ab742;return _0x28f957!=null&&typeof _0x28f957===_0x23a5fb(0x559)&&(_0x28f957['constructor']===Object||Object['getPrototypeOf'](_0x28f957)===null);}function _0xa6a2cf(_0x5f084b,_0xee725b,_0x4c76c8,_0x5db536){const _0x2bed12=_0x1ab742;if(_0x5f084b==null)return _0xee725b;const _0x32235c=Number(_0x5f084b);if(!Number[_0x2bed12(0x85e)](_0x32235c))return _0xee725b;const _0x2f969b=Math[_0x2bed12(0x2fe)](_0x32235c);if(_0x2f969b<_0x4c76c8)return _0x4c76c8;if(_0x2f969b>_0x5db536)return _0x5db536;return _0x2f969b;}function _0x58c13d(_0x3d6242){const _0xd37b2f=_0x1ab742;if(!_0x3d6242)return[];if(typeof _0x3d6242===_0xd37b2f(0x2b1))_0x3d6242=[_0x3d6242];if(!Array[_0xd37b2f(0x439)](_0x3d6242))throw new Error(_0xd37b2f(0x8dc));const _0x350975=[],_0x4b79f5=new Set();for(const _0x32b066 of _0x3d6242){if(_0x32b066==null)continue;const _0xf1968=String(_0x32b066)[_0xd37b2f(0x7a8)]();if(!_0xf1968)continue;if(_0xf1968['length']>0x80)throw new Error(_0xd37b2f(0x1fc));if(_0x4b79f5[_0xd37b2f(0x571)](_0xf1968))continue;_0x4b79f5[_0xd37b2f(0x280)](_0xf1968),_0x350975['push'](_0xf1968);if(_0x350975['length']>=0x20)break;}return _0x350975;}function _0x55c483(_0x17cf67){const _0x41de9b=_0x1ab742;if(_0x17cf67==null)return null;const _0x5b5d51=String(_0x17cf67)[_0x41de9b(0x7a8)]();if(!_0x5b5d51)return null;if(_0x5b5d51['length']>0x80)throw new Error(_0x41de9b(0x232));return _0x5b5d51;}function _0x3ba02a(_0x4fd3e5,_0x252483=0x1){const _0x4a2156=_0x1ab742;if(_0x4fd3e5==null)return[];if(typeof _0x4fd3e5===_0x4a2156(0x2b1)){const _0x372991=_0x55c483(_0x4fd3e5);if(!_0x372991)return[];return[{'id':_0x372991,'tokens':_0x252483}];}if(!Array['isArray'](_0x4fd3e5))throw new Error(_0x4a2156(0x41d));const _0x20a0f7=[],_0x4b02b2=new Set();for(const _0x539ecc of _0x4fd3e5){let _0x9c69b6,_0xe951b3;if(Array['isArray'](_0x539ecc))[_0x9c69b6,_0xe951b3]=_0x539ecc;else{if(_0x539ecc&&typeof _0x539ecc===_0x4a2156(0x559))({id:_0x9c69b6,tokens:_0xe951b3}=_0x539ecc);else{if(typeof _0x539ecc===_0x4a2156(0x2b1))_0x9c69b6=_0x539ecc,_0xe951b3=_0x252483;else continue;}}_0x9c69b6=_0x55c483(_0x9c69b6);if(!_0x9c69b6)continue;const _0x28ade2=_0xe951b3==null?_0x252483:Math['trunc'](Number(_0xe951b3));if(!Number[_0x4a2156(0x85e)](_0x28ade2)||_0x28ade2<0x1)throw new Error(_0x4a2156(0x4c4)+_0x9c69b6+_0x4a2156(0x466));if(_0x28ade2>0xf4240)throw new Error(_0x4a2156(0x4c4)+_0x9c69b6+_0x4a2156(0x255));if(_0x4b02b2[_0x4a2156(0x571)](_0x9c69b6))throw new Error('duplicate\x20bucket:\x20'+_0x9c69b6);_0x4b02b2[_0x4a2156(0x280)](_0x9c69b6),_0x20a0f7[_0x4a2156(0x28d)]({'id':_0x9c69b6,'tokens':_0x28ade2});}return _0x20a0f7;}function _0x4c701c(_0x59fe79,_0xe6f1f=0x400){const _0x54b019=_0x1ab742;if(_0x59fe79==null)return null;const _0x201215=String(_0x59fe79)[_0x54b019(0x1f7)](0x0,_0xe6f1f);return _0x201215||null;}function _0x44c41c(_0x498729){const _0x4c586d=_0x1ab742;if(_0x498729==null)return null;if(_0x498729[_0x4c586d(0x82f)]!==undefined&&_0x498729[_0x4c586d(0x2ef)]!==undefined)return _0x498729;return{'key':_0x498729['id']??null,'value':_0x498729};}function _0x5ef880(_0x64286e){const _0x2035cd=_0x1ab742;let _0x2d0842=_0x64286e;if(typeof _0x64286e===_0x2035cd(0x2b1))_0x2d0842={'message':_0x64286e};if(!_0x853f80(_0x2d0842))throw new Error(_0x2035cd(0x585));const _0x87294d=_0x2d0842[_0x2035cd(0x3a3)]==null?_0x2035cd(0x7e2):String(_0x2d0842[_0x2035cd(0x3a3)])[_0x2035cd(0x5af)]();if(!_0x28960a[_0x2035cd(0x495)](_0x87294d))throw new Error(_0x2035cd(0x699)+_0x87294d);if(_0x2d0842['message']==null)throw new Error(_0x2035cd(0x598));const _0x17f7fb=String(_0x2d0842[_0x2035cd(0x211)])['slice'](0x0,_0x1b78e7);let _0x48931a=null;if(_0x2d0842[_0x2035cd(0x376)]!=null){if(!_0x853f80(_0x2d0842[_0x2035cd(0x376)]))throw new Error('log\x20entry\x20fields\x20must\x20be\x20object|null');if(JSON[_0x2035cd(0x35a)](_0x2d0842[_0x2035cd(0x376)])[_0x2035cd(0x68a)]>_0x118536)throw new Error(_0x2035cd(0x317));_0x48931a=_0x2d0842['fields'];}return{'level':_0x87294d,'message':_0x17f7fb,'fields':_0x48931a,'ts':Date['now']()};}function _0x1c175f(_0x3ea50b){const _0x2d9138=_0x1ab742;if(_0x3ea50b==null)return;if(!Number[_0x2d9138(0x4ea)](_0x3ea50b)||_0x3ea50b<_0x5aff6c||_0x3ea50b>_0x41e756)throw new Error(_0x2d9138(0x778)+_0x5aff6c+',\x20'+_0x41e756+']');}function _0x2d1f6d(_0x127999){const _0x17b1d5=_0x1ab742;if(!_0x853f80(_0x127999))throw new Error(_0x17b1d5(0x6ca));if(typeof _0x127999['id']!==_0x17b1d5(0x2b1)||_0x127999['id'][_0x17b1d5(0x68a)]<0x8)throw new Error(_0x17b1d5(0x436));if(typeof _0x127999['type']!==_0x17b1d5(0x2b1)||!_0x127999[_0x17b1d5(0x45d)])throw new Error(_0x17b1d5(0x21d));if(!Object[_0x17b1d5(0x5d0)](_0x374427)[_0x17b1d5(0x495)](_0x127999[_0x17b1d5(0x717)]))throw new Error(_0x17b1d5(0x301)+_0x127999['status']);for(const _0x5b604e of['when',_0x17b1d5(0x258),_0x17b1d5(0x3e8)]){if(typeof _0x127999[_0x5b604e]!==_0x17b1d5(0x6e7)||!Number[_0x17b1d5(0x85e)](_0x127999[_0x5b604e]))throw new Error(_0x17b1d5(0x5e8)+_0x5b604e+_0x17b1d5(0x3bd));}if(_0x127999['finished']!=null&&(typeof _0x127999[_0x17b1d5(0x838)]!==_0x17b1d5(0x6e7)||!Number['isFinite'](_0x127999[_0x17b1d5(0x838)])))throw new Error(_0x17b1d5(0x4f3));if(!Number['isInteger'](_0x127999[_0x17b1d5(0x26e)])||_0x127999[_0x17b1d5(0x26e)]<0x0)throw new Error('job.tries\x20must\x20be\x20non-negative\x20int');if(!Number[_0x17b1d5(0x4ea)](_0x127999[_0x17b1d5(0x3d4)]))throw new Error(_0x17b1d5(0x7c7));if(_0x127999[_0x17b1d5(0x73e)]!==null&&_0x127999[_0x17b1d5(0x73e)]!==Infinity&&(!Number['isInteger'](_0x127999[_0x17b1d5(0x73e)])||_0x127999[_0x17b1d5(0x73e)]<0x1))throw new Error(_0x17b1d5(0x86e));if(_0x127999[_0x17b1d5(0x49a)]!=null&&(!Number['isInteger'](_0x127999[_0x17b1d5(0x49a)])||_0x127999[_0x17b1d5(0x49a)]<0x0))throw new Error(_0x17b1d5(0x4b4));if(_0x127999[_0x17b1d5(0x60c)]!=null&&(typeof _0x127999[_0x17b1d5(0x60c)]!==_0x17b1d5(0x6e7)||_0x127999[_0x17b1d5(0x60c)]<0x1))throw new Error('job.backoff_multiplier\x20must\x20be\x20number\x20>=\x201');if(_0x127999[_0x17b1d5(0x3ca)]!=null&&typeof _0x127999[_0x17b1d5(0x3ca)]!==_0x17b1d5(0x2b1))throw new Error(_0x17b1d5(0x42d));if(_0x127999[_0x17b1d5(0x68e)]!=null&&(typeof _0x127999[_0x17b1d5(0x68e)]!==_0x17b1d5(0x6e7)||!Number[_0x17b1d5(0x85e)](_0x127999[_0x17b1d5(0x68e)])))throw new Error(_0x17b1d5(0x5aa));if(_0x127999[_0x17b1d5(0x3f4)]!=null&&typeof _0x127999['bucket']!==_0x17b1d5(0x2b1))throw new Error(_0x17b1d5(0x323));if(_0x127999[_0x17b1d5(0x408)]!=null&&(!Number[_0x17b1d5(0x4ea)](_0x127999[_0x17b1d5(0x408)])||_0x127999[_0x17b1d5(0x408)]<0x1))throw new Error(_0x17b1d5(0x1c0));if(_0x127999[_0x17b1d5(0x55e)]!=null){if(!Array[_0x17b1d5(0x439)](_0x127999['buckets']))throw new Error('job.buckets\x20must\x20be\x20array|null');for(const _0x34765a of _0x127999[_0x17b1d5(0x55e)]){if(!_0x34765a||typeof _0x34765a!=='object')throw new Error(_0x17b1d5(0x652));if(typeof _0x34765a['id']!==_0x17b1d5(0x2b1)||!_0x34765a['id'][_0x17b1d5(0x7a8)]())throw new Error('job.buckets[].id\x20must\x20be\x20non-empty\x20string');if(!Number['isInteger'](_0x34765a[_0x17b1d5(0x2ad)])||_0x34765a[_0x17b1d5(0x2ad)]<0x1)throw new Error('job.buckets[].tokens\x20must\x20be\x20int\x20>=\x201');}}if(_0x127999[_0x17b1d5(0x2ce)]!=null&&typeof _0x127999[_0x17b1d5(0x2ce)]!=='string')throw new Error(_0x17b1d5(0x851));if(_0x127999[_0x17b1d5(0x89d)]!=null&&typeof _0x127999[_0x17b1d5(0x89d)]!==_0x17b1d5(0x2b1))throw new Error(_0x17b1d5(0x4a1));if(!Array['isArray'](_0x127999['tags']))throw new Error(_0x17b1d5(0x73b));if(_0x127999[_0x17b1d5(0x6d1)]!=null&&typeof _0x127999[_0x17b1d5(0x6d1)]!=='string')throw new Error(_0x17b1d5(0x1f8));if(_0x127999['status_code']!=null&&typeof _0x127999[_0x17b1d5(0x25f)]!==_0x17b1d5(0x2b1))throw new Error(_0x17b1d5(0x245));if(_0x127999[_0x17b1d5(0x3dc)]!=null&&typeof _0x127999[_0x17b1d5(0x3dc)]!=='string')throw new Error(_0x17b1d5(0x6bb));if(_0x127999['error_stack']!=null&&typeof _0x127999[_0x17b1d5(0x39d)]!=='string')throw new Error(_0x17b1d5(0x3b8));for(const _0x394913 of['done_ttl',_0x17b1d5(0x8f0)]){const _0x1c2c2f=_0x127999[_0x394913];if(_0x1c2c2f!=null&&(!Number[_0x17b1d5(0x4ea)](_0x1c2c2f)||_0x1c2c2f<0x0))throw new Error(_0x17b1d5(0x5e8)+_0x394913+_0x17b1d5(0x239));}_0x1c175f(_0x127999[_0x17b1d5(0x751)]);}function _0x966953(_0x375e62){const _0x473644=_0x1ab742;if(!_0x853f80(_0x375e62))throw new Error(_0x473644(0x57f));if(typeof _0x375e62['id']!=='string'||!_0x375e62['id']['trim']())throw new Error('job_type.id\x20must\x20be\x20non-empty\x20string');if(!Object[_0x473644(0x5d0)](_0xded7c9)[_0x473644(0x495)](_0x375e62[_0x473644(0x717)]))throw new Error(_0x473644(0x31c)+_0x375e62[_0x473644(0x717)]);if(_0x375e62[_0x473644(0x51e)]!=null&&(!Number[_0x473644(0x4ea)](_0x375e62[_0x473644(0x51e)])||_0x375e62['max_concurrency']<0x1))throw new Error(_0x473644(0x758));if(_0x375e62[_0x473644(0x2d1)]!=null){if(!_0x853f80(_0x375e62[_0x473644(0x2d1)]))throw new Error('job_type.defaults\x20must\x20be\x20object|null');const _0x1c7802=_0x375e62['defaults'];if(_0x1c7802[_0x473644(0x73e)]!=null&&(!Number[_0x473644(0x4ea)](_0x1c7802[_0x473644(0x73e)])||_0x1c7802['max_tries']<0x1))throw new Error(_0x473644(0x1e4));if(_0x1c7802[_0x473644(0x49a)]!=null&&(!Number[_0x473644(0x4ea)](_0x1c7802[_0x473644(0x49a)])||_0x1c7802[_0x473644(0x49a)]<0x0))throw new Error(_0x473644(0x83d));if(_0x1c7802['backoff_multiplier']!=null&&(typeof _0x1c7802[_0x473644(0x60c)]!=='number'||_0x1c7802['backoff_multiplier']<0x1))throw new Error(_0x473644(0x87c));if(_0x1c7802['priority']!=null&&!Number[_0x473644(0x4ea)](_0x1c7802[_0x473644(0x3d4)]))throw new Error('job_type.defaults.priority\x20must\x20be\x20int\x20or\x20null');if(_0x1c7802[_0x473644(0x31e)]!=null&&(!Number[_0x473644(0x4ea)](_0x1c7802[_0x473644(0x31e)])||_0x1c7802['ttl']<0x0))throw new Error(_0x473644(0x8bc));for(const _0x440d50 of[_0x473644(0x7ee),_0x473644(0x8f0)]){if(_0x1c7802[_0x440d50]!=null&&(!Number[_0x473644(0x4ea)](_0x1c7802[_0x440d50])||_0x1c7802[_0x440d50]<0x0))throw new Error(_0x473644(0x541)+_0x440d50+_0x473644(0x239));}if(_0x1c7802[_0x473644(0x55e)]!=null&&!Array['isArray'](_0x1c7802[_0x473644(0x55e)]))throw new Error(_0x473644(0x487));_0x1c175f(_0x1c7802['logCap']);}if(_0x375e62[_0x473644(0x3f8)]!=null){if(!_0x853f80(_0x375e62['payload_schema']))throw new Error(_0x473644(0x7f5));if(!_0x853f80(_0x375e62[_0x473644(0x3f8)][_0x473644(0x548)]))throw new Error(_0x473644(0x4f8));if(typeof _0x375e62[_0x473644(0x3f8)][_0x473644(0x5d1)]!=='boolean')throw new Error(_0x473644(0x77f));}for(const _0x197cd3 of[_0x473644(0x2f5),_0x473644(0x653)]){if(typeof _0x375e62[_0x197cd3]!==_0x473644(0x6e7)||!Number[_0x473644(0x85e)](_0x375e62[_0x197cd3]))throw new Error(_0x473644(0x2f3)+_0x197cd3+_0x473644(0x3bd));}}function _0x2653ee(_0x4b9b7a){const _0x10cf0a=_0x1ab742;if(!_0x853f80(_0x4b9b7a))throw new Error(_0x10cf0a(0x3c7));if(typeof _0x4b9b7a['id']!==_0x10cf0a(0x2b1)||!_0x4b9b7a['id']['trim']())throw new Error(_0x10cf0a(0x81d));if(!Number[_0x10cf0a(0x4ea)](_0x4b9b7a[_0x10cf0a(0x2ad)])||_0x4b9b7a[_0x10cf0a(0x2ad)]<0x0)throw new Error(_0x10cf0a(0x3df));if(!Number[_0x10cf0a(0x4ea)](_0x4b9b7a[_0x10cf0a(0x52a)])||_0x4b9b7a[_0x10cf0a(0x52a)]<0x0)throw new Error(_0x10cf0a(0x834));if(_0x4b9b7a[_0x10cf0a(0x2ad)]>_0x4b9b7a[_0x10cf0a(0x52a)])throw new Error(_0x10cf0a(0x76f));if(!Number['isInteger'](_0x4b9b7a['refill_amount'])||_0x4b9b7a[_0x10cf0a(0x3fe)]<0x0)throw new Error('bucket.refill_amount\x20must\x20be\x20int\x20>=\x200');if(!Number[_0x10cf0a(0x4ea)](_0x4b9b7a[_0x10cf0a(0x4bf)])||_0x4b9b7a['refill_every']<0x0)throw new Error(_0x10cf0a(0x7be));if(typeof _0x4b9b7a[_0x10cf0a(0x3e8)]!=='number'||!Number[_0x10cf0a(0x85e)](_0x4b9b7a['updated']))throw new Error(_0x10cf0a(0x618));}return okdbQueueValidate={'STATUS':_0x374427,'JOB_TYPE_STATUS':_0xded7c9,'QUEUE_EVENTS':_0xb558ff,'LOG_LEVELS':_0x28960a,'LOG_CAP_MIN':_0x5aff6c,'LOG_CAP_MAX':_0x41e756,'clampInt':_0xa6a2cf,'asNullableString':_0x4c701c,'normalizeResult':_0x44c41c,'normalizeTags':_0x58c13d,'normalizeBucket':_0x55c483,'normalizeBuckets':_0x3ba02a,'normalizeLogEntry':_0x5ef880,'validateJobShape':_0x2d1f6d,'validateJobTypeShape':_0x966953,'validateBucketShape':_0x2653ee},okdbQueueValidate;}var okdbTimers,hasRequiredOkdbTimers;function requireOkdbTimers(){if(hasRequiredOkdbTimers)return okdbTimers;hasRequiredOkdbTimers=0x1;const _0x39ac70=0x2**0x1f-0x1;function _0x425148(_0x5b2b43){if(!(_0x5b2b43>0x0))return 0x0;return _0x5b2b43>_0x39ac70?_0x39ac70:_0x5b2b43;}function _0x2cf8c8(_0xb683d5){return _0xb683d5===Infinity;}return okdbTimers={'MAX_TIMER_DELAY':_0x39ac70,'clampTimerDelay':_0x425148,'isNeverDelay':_0x2cf8c8},okdbTimers;}var okdbChangefeed,hasRequiredOkdbChangefeed;function requireOkdbChangefeed(){const _0x11fa1c=_0x5c70f8;if(hasRequiredOkdbChangefeed)return okdbChangefeed;hasRequiredOkdbChangefeed=0x1;const _0x4a51d5=require$$0$6,{clampTimerDelay:_0x4c9247}=requireOkdbTimers(),{EVENTS:_0x1fbffc,CHANGE_ACTIONS:_0x1b739b}=requireOkdbEnums(),{LOOP:_0xa82aa2}=requireOkdbLoopMonitor(),_0x518365=Number(process.env.OKDB_CHANGEFEED_QUANTUM)||0x3e8,_0x1d4b72=0x5,_0x5b7351=0x2710;class _0x2ac925 extends _0x4a51d5{constructor(_0x4dfa70,_0x243a0e={}){const _0x2cb0b8=_0x52a3;super(),this[_0x2cb0b8(0x61e)]=_0x4dfa70,this[_0x2cb0b8(0x4c9)]=_0x243a0e[_0x2cb0b8(0x484)]??_0x518365,this[_0x2cb0b8(0x24d)]=_0x243a0e['flushDebounce']??_0x1d4b72,this['_dedupeMax']=_0x243a0e['dedupeMax']??_0x5b7351,this['_started']=![],this[_0x2cb0b8(0x259)]=new Map(),this[_0x2cb0b8(0x22c)]=new Map(),this[_0x2cb0b8(0x322)]=new Map(),this[_0x2cb0b8(0x3ae)]=null,this['_draining']=![],this[_0x2cb0b8(0x707)]=new Set(),this[_0x2cb0b8(0x356)]=new Set(),this[_0x2cb0b8(0x5a3)]=_0x39f08c=>this[_0x2cb0b8(0x2e1)](_0x39f08c),this[_0x2cb0b8(0x3d7)]=_0x4a7c75=>this[_0x2cb0b8(0x31a)](_0x4a7c75),this[_0x2cb0b8(0x52e)]=_0x31a505=>this[_0x2cb0b8(0x768)](_0x31a505),this['_onStop']=()=>this[_0x2cb0b8(0x1f1)]();}[_0x11fa1c(0x45c)](){const _0x38ee74=_0x11fa1c;if(this['_started'])return;this[_0x38ee74(0x620)]=!![];for(const [_0x5aa34a,_0x11f963]of this[_0x38ee74(0x61e)][_0x38ee74(0x612)]){if(_0x5aa34a[_0x38ee74(0x38a)]('~'))continue;try{_0x11f963[_0x38ee74(0x378)]();}catch{}}for(const [_0x56fd21,_0x56b9d3]of this[_0x38ee74(0x61e)][_0x38ee74(0x612)]){if(_0x56fd21[_0x38ee74(0x38a)]('~'))continue;try{this[_0x38ee74(0x22c)]['set'](_0x56fd21,_0x56b9d3['getClock']()||0x0);}catch{}}const {events:_0x32077c}=this[_0x38ee74(0x61e)];_0x32077c['on'](_0x1fbffc[_0x38ee74(0x725)],this['_onPending']),_0x32077c['on'](_0x1fbffc[_0x38ee74(0x401)],this[_0x38ee74(0x5a3)]),_0x32077c['on'](_0x1fbffc[_0x38ee74(0x32d)],this[_0x38ee74(0x5a3)]),_0x32077c['on'](_0x1fbffc[_0x38ee74(0x74e)],this['_onItem']),_0x32077c['on'](_0x1fbffc[_0x38ee74(0x207)],this[_0x38ee74(0x52e)]),_0x32077c['once'](_0x1fbffc['SYSTEM_STOPPED'],this[_0x38ee74(0x36f)]);}[_0x11fa1c(0x1f1)](){const _0x5d2001=_0x11fa1c;if(!this[_0x5d2001(0x620)])return;this['_started']=![];const {events:_0x31930e}=this[_0x5d2001(0x61e)];_0x31930e[_0x5d2001(0x1c9)](_0x1fbffc['ITEM_PENDING'],this[_0x5d2001(0x3d7)]),_0x31930e['off'](_0x1fbffc['ITEM_CREATE'],this['_onItem']),_0x31930e[_0x5d2001(0x1c9)](_0x1fbffc['ITEM_UPDATE'],this[_0x5d2001(0x5a3)]),_0x31930e[_0x5d2001(0x1c9)](_0x1fbffc[_0x5d2001(0x74e)],this[_0x5d2001(0x5a3)]),_0x31930e[_0x5d2001(0x1c9)](_0x1fbffc['SYSTEM_POKE'],this[_0x5d2001(0x52e)]);try{_0x31930e[_0x5d2001(0x1c9)](_0x1fbffc[_0x5d2001(0x528)],this[_0x5d2001(0x36f)]);}catch{}this[_0x5d2001(0x3ae)]&&(clearTimeout(this[_0x5d2001(0x3ae)]),this[_0x5d2001(0x3ae)]=null),this[_0x5d2001(0x322)]['clear'](),this[_0x5d2001(0x259)][_0x5d2001(0x734)](),this['_baselines'][_0x5d2001(0x734)](),this[_0x5d2001(0x707)][_0x5d2001(0x734)](),this['_pendingLocal'][_0x5d2001(0x734)]();}['_dedupeKey'](_0x2bda96,_0x4a9a17,_0xa10ee0,_0x4f2241){return _0x2bda96+'\x00'+_0x4a9a17+'\x00'+_0xa10ee0+'\x00'+_0x4f2241;}[_0x11fa1c(0x5be)](_0x5972e2,_0x533dce,_0xac90ce,_0x2d0f79){const _0x902627=_0x11fa1c,_0x2bb33a=this['_dedupeKey'](_0x5972e2,_0x533dce,_0xac90ce,_0x2d0f79);if(this[_0x902627(0x707)][_0x902627(0x571)](_0x2bb33a))return![];this['_seen'][_0x902627(0x280)](_0x2bb33a);if(this[_0x902627(0x707)][_0x902627(0x8d2)]>this[_0x902627(0x75b)]){const _0x2c0c36=this[_0x902627(0x707)]['values']()[_0x902627(0x48f)]()[_0x902627(0x2ef)];this[_0x902627(0x707)][_0x902627(0x2cb)](_0x2c0c36);}return!![];}[_0x11fa1c(0x31a)](_0x1dfbfd){const _0x437fa6=_0x11fa1c;if(!this[_0x437fa6(0x620)]||!_0x1dfbfd)return;const {env:_0x2c6f66,type:_0x44d621,key:_0x5accbe,clock:_0x53e76c}=_0x1dfbfd;if(_0x2c6f66==null||_0x44d621==null||_0x5accbe==null)return;if(typeof _0x2c6f66===_0x437fa6(0x2b1)&&_0x2c6f66[_0x437fa6(0x38a)]('~'))return;if(typeof _0x44d621===_0x437fa6(0x2b1)&&_0x44d621[_0x437fa6(0x38a)]('~'))return;this[_0x437fa6(0x356)][_0x437fa6(0x280)](this[_0x437fa6(0x37f)](_0x2c6f66,_0x44d621,_0x5accbe,_0x53e76c)),this[_0x437fa6(0x356)][_0x437fa6(0x8d2)]>this[_0x437fa6(0x75b)]&&this[_0x437fa6(0x356)][_0x437fa6(0x2cb)](this[_0x437fa6(0x356)][_0x437fa6(0x5d0)]()[_0x437fa6(0x48f)]()['value']);}[_0x11fa1c(0x2e1)](_0x592fb2){const _0x35ecd1=_0x11fa1c;if(!this['_started']||!_0x592fb2)return;const {env:_0x4628a2,type:_0x1786e4,key:_0x42c5c5,clock:_0x2ee517,origin:_0x56d0ca,action:_0x57134b,newValue:_0x52e531,oldValue:_0x1a13ef}=_0x592fb2;if(_0x4628a2==null||_0x1786e4==null||_0x42c5c5==null)return;if(typeof _0x4628a2===_0x35ecd1(0x2b1)&&_0x4628a2[_0x35ecd1(0x38a)]('~'))return;if(typeof _0x1786e4===_0x35ecd1(0x2b1)&&_0x1786e4[_0x35ecd1(0x38a)]('~'))return;this[_0x35ecd1(0x356)][_0x35ecd1(0x2cb)](this[_0x35ecd1(0x37f)](_0x4628a2,_0x1786e4,_0x42c5c5,_0x2ee517));if(!this[_0x35ecd1(0x5be)](_0x4628a2,_0x1786e4,_0x42c5c5,_0x2ee517))return;const _0x1ee2d8=_0x57134b===_0x1b739b['REMOVE']?_0x35ecd1(0x504):_0x35ecd1(0x253);this[_0x35ecd1(0x5a2)]('change',{'env':_0x4628a2,'type':_0x1786e4,'key':_0x42c5c5,'op':_0x1ee2d8,'clock':_0x2ee517,'origin':_0x56d0ca,'value':_0x1ee2d8===_0x35ecd1(0x504)?null:_0x52e531,'prevValue':_0x1a13ef});}[_0x11fa1c(0x768)](_0x45e487){const _0x506aa7=_0x11fa1c;if(!this[_0x506aa7(0x620)])return;if(!_0x45e487||typeof _0x45e487[_0x506aa7(0x609)]!=='string'||typeof _0x45e487['type']!=='string')return;const {env:_0x3f360c,type:_0x28b091}=_0x45e487;if(_0x3f360c[_0x506aa7(0x38a)]('~')||_0x28b091[_0x506aa7(0x38a)]('~'))return;this[_0x506aa7(0x322)][_0x506aa7(0x63f)](_0x3f360c+'\x00'+_0x28b091,{'env':_0x3f360c,'type':_0x28b091}),this['_scheduleFlush']();}['_scheduleFlush'](){const _0x3e0494=_0x11fa1c;if(this[_0x3e0494(0x3ae)])return;const _0x5ed9ce=()=>{const _0x2e1c17=_0x3e0494;this['_flushTimer']=null,this[_0x2e1c17(0x45f)]()[_0x2e1c17(0x6d7)](()=>{});};this[_0x3e0494(0x3ae)]=setTimeout(_0x5ed9ce,_0x4c9247(this[_0x3e0494(0x24d)]));}async['_drain'](){const _0x30c0f9=_0x11fa1c;if(this[_0x30c0f9(0x79e)]){this['_scheduleFlush']();return;}this['_draining']=!![];try{const _0x56639a=[...this[_0x30c0f9(0x322)][_0x30c0f9(0x5d0)]()];this['_pending'][_0x30c0f9(0x734)]();let _0x271575=![];for(const {env:_0x4c402a,type:_0x2035a1}of _0x56639a){try{const _0x2e3aaf=await this[_0x30c0f9(0x453)](_0x4c402a,_0x2035a1);if(_0x2e3aaf)_0x271575=!![];}catch{this[_0x30c0f9(0x322)][_0x30c0f9(0x63f)](_0x4c402a+'\x00'+_0x2035a1,{'env':_0x4c402a,'type':_0x2035a1}),_0x271575=!![];}}if(_0x271575||this[_0x30c0f9(0x322)][_0x30c0f9(0x8d2)]>0x0)this[_0x30c0f9(0x3ce)]();}finally{this['_draining']=![];}}async[_0x11fa1c(0x453)](_0x4f5667,_0x1dff89){const _0x2a99aa=_0x11fa1c,_0x2985e3=await this[_0x2a99aa(0x61e)]['_openEnvLazy'](_0x4f5667),_0x532529=_0x4f5667+'\x00'+_0x1dff89;!this['_cursors'][_0x2a99aa(0x571)](_0x532529)&&(!this[_0x2a99aa(0x22c)][_0x2a99aa(0x571)](_0x4f5667)&&(_0x2985e3[_0x2a99aa(0x378)](),this['_baselines'][_0x2a99aa(0x63f)](_0x4f5667,_0x2985e3[_0x2a99aa(0x3b3)]()||0x0)),this[_0x2a99aa(0x259)][_0x2a99aa(0x63f)](_0x532529,this[_0x2a99aa(0x22c)][_0x2a99aa(0x309)](_0x4f5667)));const _0x161bc7=this[_0x2a99aa(0x259)][_0x2a99aa(0x309)](_0x532529),_0x690572=_0x2985e3[_0x2a99aa(0x3b3)](_0x1dff89)||0x0;if(_0x690572<=_0x161bc7)return![];const _0x2501ff=_0x161bc7+this[_0x2a99aa(0x4c9)],_0x55d4bb=Math[_0x2a99aa(0x597)](_0x690572,_0x2501ff),_0x5383e7=_0xa82aa2['enabled']?_0xa82aa2[_0x2a99aa(0x8cc)]():0x0,_0x6af5e8=Array[_0x2a99aa(0x48d)](_0x2985e3['getChanges'](_0x1dff89,_0x161bc7+0x1,_0x55d4bb));let _0x5baeb8=_0x161bc7;for(const _0x2933bb of _0x6af5e8){const {clock:_0x2695df,key:_0x573718,action:_0x5c8fcd,origin:_0x3a4102}=_0x2933bb;if(_0x2695df>_0x5baeb8)_0x5baeb8=_0x2695df;if(_0x573718==null)continue;if(this[_0x2a99aa(0x356)][_0x2a99aa(0x571)](this[_0x2a99aa(0x37f)](_0x4f5667,_0x1dff89,_0x573718,_0x2695df)))continue;if(!this[_0x2a99aa(0x5be)](_0x4f5667,_0x1dff89,_0x573718,_0x2695df))continue;let _0x25d5e4,_0x247436;if(_0x5c8fcd===_0x1b739b[_0x2a99aa(0x8a0)])_0x25d5e4=_0x2a99aa(0x504),_0x247436=null;else{const _0x4da124=_0x2985e3[_0x2a99aa(0x309)](_0x1dff89,_0x573718);_0x4da124==null?(_0x25d5e4=_0x2a99aa(0x504),_0x247436=null):(_0x25d5e4=_0x2a99aa(0x253),_0x247436=_0x4da124);}this[_0x2a99aa(0x5a2)](_0x2a99aa(0x66f),{'env':_0x4f5667,'type':_0x1dff89,'key':_0x573718,'op':_0x25d5e4,'clock':_0x2695df,'origin':_0x3a4102,'value':_0x247436});}if(_0xa82aa2[_0x2a99aa(0x63d)])_0xa82aa2[_0x2a99aa(0x520)](_0x2a99aa(0x712)+_0x4f5667+':'+_0x1dff89,_0xa82aa2[_0x2a99aa(0x8cc)]()-_0x5383e7,'n='+_0x6af5e8[_0x2a99aa(0x68a)]);return this['_cursors'][_0x2a99aa(0x63f)](_0x532529,Math[_0x2a99aa(0x4a0)](_0x5baeb8,_0x55d4bb)),_0x2985e3[_0x2a99aa(0x3b3)](_0x1dff89)>_0x55d4bb;}[_0x11fa1c(0x717)](){const _0x57b3e2=_0x11fa1c;return{'started':this[_0x57b3e2(0x620)],'quantum':this[_0x57b3e2(0x4c9)],'flushDebounce':this[_0x57b3e2(0x24d)],'cursors':Object['fromEntries']([...this['_cursors'][_0x57b3e2(0x719)]()][_0x57b3e2(0x35e)](([_0x536928,_0x4f6207])=>[_0x536928[_0x57b3e2(0x306)]('\x00',':'),_0x4f6207])),'pending':this[_0x57b3e2(0x322)][_0x57b3e2(0x8d2)],'seen':this[_0x57b3e2(0x707)][_0x57b3e2(0x8d2)]};}}return _0x2ac925[_0x11fa1c(0x7fd)]=_0x518365,okdbChangefeed={'OKDBChangefeed':_0x2ac925},okdbChangefeed;}var okdbRelay,hasRequiredOkdbRelay;function requireOkdbRelay(){const _0x5de9d5=_0x5c70f8;if(hasRequiredOkdbRelay)return okdbRelay;hasRequiredOkdbRelay=0x1;const {EVENTS:_0x238cd7}=requireOkdbEnums(),_0x1d00a5=new Set([_0x238cd7[_0x5de9d5(0x401)],_0x238cd7[_0x5de9d5(0x32d)],_0x238cd7[_0x5de9d5(0x74e)]]),{ENGINE_EVENTS:_0x17fcfd}=requireOkdbEnginesEnums(),{EMBEDDINGS_EVENTS:_0x158334}=requireEnums(),{QUEUE_EVENTS:_0x1340a7}=requireOkdbQueueValidate(),_0x4522cf=Object[_0x5de9d5(0x5d0)](_0x238cd7),_0x591aa9=Object[_0x5de9d5(0x5d0)](_0x17fcfd)[_0x5de9d5(0x35e)](_0x3d7ec6=>'engine:'+_0x3d7ec6),_0x8a21d9=Object[_0x5de9d5(0x5d0)](_0x158334),_0x1c0676=Object[_0x5de9d5(0x5d0)](_0x1340a7),_0x5c9d57=[_0x5de9d5(0x833),_0x5de9d5(0x56e),'processor:error',_0x5de9d5(0x8eb),_0x5de9d5(0x789),'processor:retry'],_0x477482=[..._0x4522cf,..._0x591aa9,..._0x8a21d9,..._0x1c0676,..._0x5c9d57,_0x5de9d5(0x58d)],_0x4191b7=new Set(_0x477482),_0x1869d1=new Set([_0x238cd7[_0x5de9d5(0x401)],_0x238cd7['ITEM_UPDATE'],_0x238cd7[_0x5de9d5(0x74e)],_0x238cd7[_0x5de9d5(0x478)],_0x238cd7[_0x5de9d5(0x623)],_0x238cd7[_0x5de9d5(0x635)],_0x238cd7[_0x5de9d5(0x733)],_0x238cd7['INDEX_PROGRESS'],_0x158334[_0x5de9d5(0x56b)],_0x158334[_0x5de9d5(0x5b2)],_0x158334[_0x5de9d5(0x2ff)],_0x158334[_0x5de9d5(0x4f5)],_0x5de9d5(0x56e)]),_0x3787ea=_0x477482[_0x5de9d5(0x4e1)](_0x55a2bd=>_0x55a2bd===_0x5de9d5(0x58d)||!_0x1869d1['has'](_0x55a2bd)),_0x3c24bb=0x14,_0x32d8fe=0xc8;class _0xe03de8{constructor(_0x37f2f7,_0x1e4c9a={}){const _0xb5b86=_0x5de9d5;this['okdb']=_0x37f2f7,this[_0xb5b86(0x6b7)]=_0x1e4c9a[_0xb5b86(0x313)]??_0x3c24bb,this[_0xb5b86(0x2e2)]=_0x1e4c9a['ringSize']??_0x32d8fe,this[_0xb5b86(0x7de)]=new Set(),this[_0xb5b86(0x8c3)]=[],this['_listeners']=[],this[_0xb5b86(0x648)]=null,this[_0xb5b86(0x4ae)]=![],this[_0xb5b86(0x681)]=null,this[_0xb5b86(0x605)]=null;}[_0x5de9d5(0x29a)](){const _0x32d7a4=_0x5de9d5;if(this[_0x32d7a4(0x4ae)])return;this[_0x32d7a4(0x4ae)]=!![];const {okdb:_0x195df1}=this;this['_detachLog']=_0x195df1[_0x32d7a4(0x58d)][_0x32d7a4(0x29a)](_0x5e7a62=>this['_push'](_0x32d7a4(0x58d),_0x5e7a62));for(const _0x1bff69 of _0x477482){if(_0x1bff69===_0x32d7a4(0x58d))continue;const _0x580ffd=_0x1d00a5[_0x32d7a4(0x571)](_0x1bff69),_0x294312=_0x552df8=>{const _0xaa3f00=_0x32d7a4;if(_0x580ffd&&this[_0xaa3f00(0x681)])return;this[_0xaa3f00(0x499)](_0x1bff69,_0x552df8??{});};_0x195df1[_0x32d7a4(0x4cb)]['on'](_0x1bff69,_0x294312),this[_0x32d7a4(0x66d)][_0x32d7a4(0x28d)]({'event':_0x1bff69,'handler':_0x294312});}this[_0x32d7a4(0x36f)]=()=>this[_0x32d7a4(0x355)](),_0x195df1[_0x32d7a4(0x4cb)][_0x32d7a4(0x32f)](_0x238cd7[_0x32d7a4(0x528)],this[_0x32d7a4(0x36f)]);}[_0x5de9d5(0x355)](){const _0x111fbc=_0x5de9d5;if(!this[_0x111fbc(0x4ae)])return;if(this[_0x111fbc(0x36f)]){try{this['okdb'][_0x111fbc(0x4cb)][_0x111fbc(0x1c9)](_0x238cd7[_0x111fbc(0x528)],this[_0x111fbc(0x36f)]);}catch{}this[_0x111fbc(0x36f)]=null;}this['_detachLog']?.(),this['_detachLog']=null;for(const {event:_0x2d41a9,handler:_0x30adeb}of this[_0x111fbc(0x66d)]){try{this[_0x111fbc(0x61e)][_0x111fbc(0x4cb)][_0x111fbc(0x1c9)](_0x2d41a9,_0x30adeb);}catch{}}this[_0x111fbc(0x66d)]=[];for(const _0x254942 of this[_0x111fbc(0x7de)]){try{_0x254942['close']?.();}catch{}}this[_0x111fbc(0x7de)][_0x111fbc(0x734)](),this['detachFeed'](),this[_0x111fbc(0x4ae)]=![];}[_0x5de9d5(0x5ba)](_0x1b4ad1){const _0x5c7a5c=_0x5de9d5;if(!_0x1b4ad1||this['_feed']===_0x1b4ad1)return;this[_0x5c7a5c(0x70d)](),this[_0x5c7a5c(0x681)]=_0x1b4ad1,this[_0x5c7a5c(0x605)]=_0x4737bb=>{const _0x50f6c4=_0x5c7a5c;if(!_0x4737bb)return;const _0x59b50e=_0x4737bb['op']===_0x50f6c4(0x504)?_0x238cd7[_0x50f6c4(0x74e)]:_0x238cd7[_0x50f6c4(0x32d)];this[_0x50f6c4(0x499)](_0x59b50e,_0x4737bb);},_0x1b4ad1['on'](_0x5c7a5c(0x66f),this[_0x5c7a5c(0x605)]);}['detachFeed'](){const _0x128f2e=_0x5de9d5;if(this['_feed']&&this[_0x128f2e(0x605)])try{this['_feed']['off'](_0x128f2e(0x66f),this[_0x128f2e(0x605)]);}catch{}this[_0x128f2e(0x681)]=null,this[_0x128f2e(0x605)]=null;}['pushEphemeral'](_0x507b8c,_0x27c18e){const _0x44556b=_0x5de9d5;if(!_0x4191b7[_0x44556b(0x571)](_0x507b8c))return;this['_push'](_0x507b8c,_0x27c18e??{});}['subscribe'](_0x6f07bf,_0x557179,_0x2b3095){const _0xdcea63=_0x5de9d5;if(this[_0xdcea63(0x7de)]['size']>=this[_0xdcea63(0x6b7)])return _0x557179(_0xdcea63(0x857),{'message':_0xdcea63(0x441),'code':_0xdcea63(0x894)}),()=>{};const _0x5a0fe4=this['_resolveFilter'](_0x6f07bf),_0x5ba024={'send':_0x557179,'filter':_0x5a0fe4,'close':_0x2b3095??null};this['_connections'][_0xdcea63(0x280)](_0x5ba024);for(const {event:_0x5245a2,data:_0x2345fa}of this['_buffer']){if(_0x5a0fe4[_0xdcea63(0x571)](_0x5245a2))try{_0x557179(_0x5245a2,_0x2345fa);}catch{}}return()=>this[_0xdcea63(0x7de)][_0xdcea63(0x2cb)](_0x5ba024);}[_0x5de9d5(0x5f6)](){const _0x5c4018=_0x5de9d5;if(this['_feed'])return this[_0x5c4018(0x681)];const {OKDBChangefeed:_0x537b43}=requireOkdbChangefeed(),_0x4e112e=new _0x537b43(this[_0x5c4018(0x61e)]);_0x4e112e[_0x5c4018(0x45c)](),this[_0x5c4018(0x5ba)](_0x4e112e);if(this['okdb']&&!this[_0x5c4018(0x61e)][_0x5c4018(0x472)])this[_0x5c4018(0x61e)][_0x5c4018(0x472)]=_0x4e112e;return this[_0x5c4018(0x681)];}get[_0x5de9d5(0x80e)](){const _0x4953f8=_0x5de9d5;return this[_0x4953f8(0x7de)]['size'];}[_0x5de9d5(0x308)](){const _0x4101f7=_0x5de9d5;return{'connections':this['connectionCount'],'bufferSize':this[_0x4101f7(0x8c3)]['length'],'attached':this[_0x4101f7(0x4ae)],'allEvents':_0x477482[_0x4101f7(0x68a)],'defaultEvents':_0x3787ea[_0x4101f7(0x68a)]};}static get['ALL_EVENTS'](){return _0x477482;}static get['DEFAULT_EVENTS'](){return _0x3787ea;}static get[_0x5de9d5(0x6cb)](){return[..._0x1869d1];}[_0x5de9d5(0x69b)](_0x40ee1e){const _0x54b4e9=_0x5de9d5;if(!_0x40ee1e||!_0x40ee1e[_0x54b4e9(0x68a)])return new Set(_0x3787ea);const _0x2e11ba=_0x40ee1e[_0x54b4e9(0x4e1)](_0x5d4e2a=>_0x4191b7[_0x54b4e9(0x571)](_0x5d4e2a));return new Set(_0x2e11ba['length']?_0x2e11ba:_0x3787ea);}[_0x5de9d5(0x499)](_0x526b10,_0x1b821c){const _0xe970a2=_0x5de9d5,_0x4b77d8={..._0x1b821c,'_ts':_0x1b821c?.[_0xe970a2(0x3ad)]??_0x1b821c?.['ts']??Date['now']()};this[_0xe970a2(0x8c3)]['push']({'event':_0x526b10,'data':_0x4b77d8});if(this[_0xe970a2(0x8c3)][_0xe970a2(0x68a)]>this[_0xe970a2(0x2e2)])this[_0xe970a2(0x8c3)][_0xe970a2(0x812)]();for(const _0x5c2db2 of this[_0xe970a2(0x7de)]){if(_0x5c2db2['filter'][_0xe970a2(0x571)](_0x526b10))try{_0x5c2db2[_0xe970a2(0x574)](_0x526b10,_0x4b77d8);}catch{}}}}return okdbRelay=_0xe03de8,okdbRelay;}var hasRequiredLib;function requireLib(){const _0x39e754=_0x5c70f8;if(hasRequiredLib)return lib[_0x39e754(0x28e)];return hasRequiredLib=0x1,function(_0x3578a0){const _0xef20=_0x39e754,_0x4730b9=require$$0$6,{load:_0x300550}=require$$1$1,_0x261e57=requireBridge(),_0x40ef24=requireWritebatch(),{Pumper:_0xe941a1}=requirePump(),{OKDBEnv:_0x3c3dc3,HIGH_SENTINEL:_0x337090}=requireEnv(),{reclass:_0x4e6f50,NotImplementedNative:_0xe4ba3,OKDBError:_0x370fe4,optionsArg:_0x7906bb,invalidArgument:_0x54e14f}=requireErrors(),{notImplemented:_0x48613a}=requireUnsupported(),{OKDBHttp:_0x22cb9b}=requireHttp(),{OKDBFts:_0x346def}=requireFts(),{OKDBEmbeddings:_0x2e358d}=requireEmbeddings(),{OKDBAuth:_0x5ed8d7}=requireAuth(),{OKDBSync:_0x1e19e2}=requireSync(),{OKDBMigrate:_0x3b4d3b}=requireMigrate(),{OKDBFunctions:_0x3cb889}=requireFunctions(),{OKDBMcp:_0x2290a0}=requireMcp(),{OKDBEngines:_0x44dea6,OKDBPipelines:_0x449afb}=requireEngines(),{makeMeta:_0x2b15a1,makeLicenses:_0x24d2fd,makeLicenseChecker:_0x5459f6,makeProcesses:_0x9b35ce}=requireSys();let _0x12e8f8=null;function _0x198746(_0x4f3332){const _0x439698=_0x52a3;if(!_0x12e8f8){const {Unpackr:_0x4770be}=require$$18;_0x12e8f8=new _0x4770be({'useRecords':![],'mapsAsObjects':!![],'copyBuffers':!![]});}return _0x12e8f8[_0x439698(0x479)](_0x4f3332);}let _0x311c30=null;function _0x8cf03a(_0x2b8e87,_0x48e578){if(!_0x311c30){const {Unpackr:_0x20d435}=require$$18;_0x311c30=new _0x20d435({'copyBuffers':!![]});}return _0x311c30['unpack'](_0x2b8e87,_0x48e578);}const {encodeKey:_0x3f65b9,KEY_BUF_SIZE:_0x221984,NO_FAST:_0xab98d2}=requireKeyenc(),_0x287e1e=0x40*0x400,_0x4b7e32=0x4*0x400*0x400;function _0x6c51e7(_0x4f03fe,_0x28150d){const _0x371a21=_0x52a3,_0x1da5a3=_0x4f03fe[0x2],_0x17892d=_0x1da5a3?(_0x4f03fe['length']-0x3)/Math[_0x371a21(0x225)](_0x1da5a3):0x0,_0x5b8351=new Array(_0x17892d);let _0x3fc82f=0x3;if(_0x1da5a3===0x2){for(let _0x52e4fb=0x0;_0x52e4fb<_0x17892d;_0x52e4fb++,_0x3fc82f+=0x2)_0x5b8351[_0x52e4fb]={'key':_0x4f03fe[_0x3fc82f],'value':_0x4f03fe[_0x3fc82f+0x1]};}else{if(_0x1da5a3===0x3){for(let _0x472b95=0x0;_0x472b95<_0x17892d;_0x472b95++,_0x3fc82f+=0x3)_0x5b8351[_0x472b95]={'key':_0x4f03fe[_0x3fc82f],'value':_0x4f03fe[_0x3fc82f+0x1],'version':_0x4f03fe[_0x3fc82f+0x2]};}else{if(_0x1da5a3===-0x2){for(let _0x2bc815=0x0;_0x2bc815<_0x17892d;_0x2bc815++,_0x3fc82f+=0x2)_0x5b8351[_0x2bc815]={'clock':_0x4f03fe[_0x3fc82f],..._0x4f03fe[_0x3fc82f+0x1]};}else{if(_0x1da5a3===0x4){for(let _0x3d5672=0x0;_0x3d5672<_0x17892d;_0x3d5672++,_0x3fc82f+=0x4)_0x5b8351[_0x3d5672]={'key':_0x4f03fe[_0x3fc82f],'value':_0x4f03fe[_0x3fc82f+0x1],'version':_0x4f03fe[_0x3fc82f+0x2],'indexKey':_0x4f03fe[_0x3fc82f+0x3]};}else{if(_0x17892d)throw new Error(_0x371a21(0x621)+_0x1da5a3);}}}}return _0x28150d?[_0x4f03fe[0x0],_0x5b8351,_0x4f03fe[0x1]]:_0x5b8351;}let _0x495c22=null;function _0x109fb2(_0x5278f9,_0x18b841,_0x4ab269){const _0x2bc7d8=_0x52a3;if(!_0x495c22)_0x495c22=requireDist()['readKey'];const _0xc1e61f=new DataView(_0x5278f9[_0x2bc7d8(0x4b0)],_0x5278f9[_0x2bc7d8(0x204)],_0x18b841),_0x8b00ce=_0xc1e61f[_0x2bc7d8(0x361)](0x10,!![]),_0x4544e4=new Array(_0x8b00ce);let _0xd0f6f1=0x14;for(let _0xad83da=0x0;_0xad83da<_0x8b00ce;_0xad83da++){const _0x468c70=_0x5278f9[_0xd0f6f1]|_0x5278f9[_0xd0f6f1+0x1]<<0x8;_0xd0f6f1+=0x2,_0x4544e4[_0xad83da]=_0x495c22(_0x5278f9,_0xd0f6f1,_0xd0f6f1+_0x468c70),_0xd0f6f1+=_0x468c70;}return _0x4ab269?[_0xc1e61f[_0x2bc7d8(0x5a8)](0x0,!![]),_0x4544e4,_0xc1e61f['getFloat64'](0x8,!![])]:_0x4544e4;}const _0x48c4eb=requireOkdbLogger(),_0xa4ac97=requireOkdbPlugins(),{OKDB_STATE:_0x36d3a1,EVENTS:_0x5ae024}=requireOkdbEnums(),_0x16d1b5=requireStatics();let _0x4ddae5=null,_0x349d43=![],_0x15e341=0x1;const _0x686a76=new Map(),_0x4fb23f=new Set([_0xef20(0x6fe),'EMBED_PENDING']),_0x2a8b16=_0x2debe3=>!!_0x2debe3&&_0x4fb23f[_0xef20(0x571)](_0x2debe3[_0xef20(0x50e)]),_0x40a750=Number(process.env.OKDB_PENDING_RETRY_MS)>0x0?Number(process.env.OKDB_PENDING_RETRY_MS):0x1d4c0;function _0x53ab5b(){const _0x24dd13=_0xef20;!_0x349d43&&(_0x4d4498()[_0x24dd13(0x46e)](_0x261e57[_0x24dd13(0x7f3)]),_0x40ef24['install'](_0x4d4498()),_0x349d43=!![]);}function _0x4d4498(){if(!_0x4ddae5)_0x4ddae5=_0x300550();return _0x4ddae5;}class _0x4cc1bc extends Map{constructor(_0x40bbca){const _0x41ad19=_0xef20;super(),this[_0x41ad19(0x3e6)]=_0x40bbca;}['_sync'](){const _0x4f6525=_0xef20,_0x1dd257=this[_0x4f6525(0x3e6)];if(!_0x1dd257[_0x4f6525(0x663)])return;let _0x4adc35;try{_0x4adc35=_0x1dd257[_0x4f6525(0x210)]('db',null,'envNames',[],![]);}catch{return;}for(const _0x511c8b of _0x4adc35)if(!super['has'](_0x511c8b)&&_0x1dd257[_0x4f6525(0x210)]('db',null,_0x4f6525(0x805),[_0x511c8b],![]))_0x1dd257[_0x4f6525(0x6df)](_0x511c8b);}[_0xef20(0x309)](_0x153908){const _0x5afeb9=_0xef20,_0x54fff7=super[_0x5afeb9(0x309)](_0x153908);if(_0x54fff7!==undefined||typeof _0x153908!==_0x5afeb9(0x2b1))return _0x54fff7;const _0x21e8c8=this['_db'];if(_0x153908===_0x5afeb9(0x2c9))return _0x21e8c8['_isOpen']?_0x21e8c8['processes'][_0x5afeb9(0x34e)]??undefined:undefined;if(_0x21e8c8[_0x5afeb9(0x663)]&&_0x21e8c8[_0x5afeb9(0x210)]('db',null,_0x5afeb9(0x805),[_0x153908],![]))return _0x21e8c8[_0x5afeb9(0x6df)](_0x153908);if(_0x21e8c8[_0x5afeb9(0x663)]&&typeof _0x153908===_0x5afeb9(0x2b1)&&!_0x153908[_0x5afeb9(0x38a)]('~')){_0x21e8c8[_0x5afeb9(0x210)]('db',null,_0x5afeb9(0x714),[],![]);if(_0x21e8c8['_call']('db',null,'hasEnv',[_0x153908],![]))return _0x21e8c8[_0x5afeb9(0x6df)](_0x153908);}return undefined;}[_0xef20(0x571)](_0x2db831){const _0x22af46=_0xef20;return this[_0x22af46(0x309)](_0x2db831)!==undefined;}get[_0xef20(0x8d2)](){return this['_sync'](),super['size'];}[_0xef20(0x4ac)](){const _0x1b0cda=_0xef20;return this[_0x1b0cda(0x7d7)](),super[_0x1b0cda(0x4ac)]();}[_0xef20(0x5d0)](){const _0x14e31d=_0xef20;return this[_0x14e31d(0x7d7)](),super[_0x14e31d(0x5d0)]();}[_0xef20(0x719)](){const _0x23ff11=_0xef20;return this[_0x23ff11(0x7d7)](),super['entries']();}[_0xef20(0x5ff)](_0x33e9a9,_0x5314db){const _0x45981a=_0xef20;return this[_0x45981a(0x7d7)](),super[_0x45981a(0x5ff)](_0x33e9a9,_0x5314db);}[Symbol[_0xef20(0x344)]](){const _0x1f056e=_0xef20;return this[_0x1f056e(0x7d7)](),super[Symbol[_0x1f056e(0x344)]]();}}class _0x4514d2{constructor(_0x516bb3,_0xfd3e98={}){const _0x5cedbf=_0xef20,_0x28e1a5=_0x4d4498();this[_0x5cedbf(0x500)]=_0x516bb3,this[_0x5cedbf(0x741)]=_0x15e341++,this[_0x5cedbf(0x28c)]='db'+this[_0x5cedbf(0x741)],this[_0x5cedbf(0x688)]={..._0x16d1b5[_0x5cedbf(0x2d1)],..._0xfd3e98,'auth':_0xfd3e98[_0x5cedbf(0x7f0)]?{..._0xfd3e98[_0x5cedbf(0x7f0)]}:undefined,'lmdb':{..._0xfd3e98[_0x5cedbf(0x533)]||{}}},this['events']=new _0x4730b9(),this['events'][_0x5cedbf(0x88e)](0x0),this[_0x5cedbf(0x4ee)]=new Set(),this[_0x5cedbf(0x4cb)]['on'](_0x5cedbf(0x7dd),_0x5de324=>this[_0x5cedbf(0x46f)](_0x5de324)),this[_0x5cedbf(0x58d)]=new _0x48c4eb(this),this[_0x5cedbf(0x58d)][_0x5cedbf(0x4d5)](),_0x261e57['registerTarget'](this[_0x5cedbf(0x28c)],{'_deliver':(_0xd2ae26,_0x2ec189)=>this['_deliverEvent'](_0xd2ae26,_0x2ec189),'_log':_0x36e8f2=>{const _0x54ba6e=_0x5cedbf;if(this[_0x54ba6e(0x320)])this['_bootLog'][_0x54ba6e(0x28d)](_0x36e8f2);const _0x2f24bf=_0x36e8f2&&_0x36e8f2[_0x54ba6e(0x3a3)];if(_0x2f24bf&&Object[_0x54ba6e(0x511)][_0x54ba6e(0x3eb)][_0x54ba6e(0x4d1)](this[_0x54ba6e(0x58d)],_0x2f24bf)&&typeof this[_0x54ba6e(0x58d)][_0x2f24bf]===_0x54ba6e(0x640)){const _0x8d99aa=_0x36e8f2[_0x54ba6e(0x4bc)];return this[_0x54ba6e(0x58d)][_0x2f24bf](_0x36e8f2['msg'],{..._0x36e8f2[_0x54ba6e(0x447)]||{},..._0x8d99aa&&typeof _0x8d99aa==='object'?_0x8d99aa:{}});}return this['log']['ingest'](_0x36e8f2);}}),_0x53ab5b();try{const _0x55dec4={};if(typeof _0x5cedbf(0x43b)===_0x5cedbf(0x6a3)||_0x5cedbf(0x43b)!==_0x5cedbf(0x43b));const _0x54bc70={..._0xfd3e98,'_clusterWorker':require(_0x5cedbf(0x45e))[_0x5cedbf(0x41b)],..._0x55dec4};this[_0x5cedbf(0x7d4)]={'instance':null,'envs':new Map()};typeof _0xfd3e98['encryptionKey']===_0x5cedbf(0x640)&&(this[_0x5cedbf(0x7d4)]['instance']=_0xfd3e98[_0x5cedbf(0x32b)],delete _0x54bc70[_0x5cedbf(0x32b)]);if(_0xfd3e98[_0x5cedbf(0x7ca)]&&typeof _0xfd3e98[_0x5cedbf(0x7ca)]===_0x5cedbf(0x559)){for(const [_0xe3d2e3,_0x1df860]of Object['entries'](_0xfd3e98['encryptionKeys']))this['_keyFns'][_0x5cedbf(0x27e)][_0x5cedbf(0x63f)](_0xe3d2e3,_0x1df860);}delete _0x54bc70['encryptionKeys'],this[_0x5cedbf(0x858)]=new _0x28e1a5[(_0x5cedbf(0x7d2))](_0x516bb3,_0x54bc70,this[_0x5cedbf(0x28c)]);}catch(_0x216154){_0x261e57['unregisterTarget'](this[_0x5cedbf(0x28c)]);throw _0x4e6f50(_0x216154);}this[_0x5cedbf(0x74f)]=_0x36d3a1['CREATED'],this[_0x5cedbf(0x663)]=![],this[_0x5cedbf(0x612)]=new _0x4cc1bc(this),this[_0x5cedbf(0x5fd)]=new _0xe941a1({'pump':()=>this[_0x5cedbf(0x858)][_0x5cedbf(0x672)]()}),this[_0x5cedbf(0x2d7)]=new _0x40ef24[(_0x5cedbf(0x47c))](this),this[_0x5cedbf(0x5fd)]['afterTurn']=()=>_0x261e57[_0x5cedbf(0x2f7)](),_0x261e57['setKick'](()=>this[_0x5cedbf(0x5fd)]['wake'](),this),_0x686a76[_0x5cedbf(0x63f)](this[_0x5cedbf(0x741)],this),this[_0x5cedbf(0x803)]={},_0x261e57['setCurrentDb'](this),this['fts']=new _0x346def(this),this[_0x5cedbf(0x7f1)]=new _0x2e358d(this),this['engines']=new _0x44dea6(this,null,null),this[_0x5cedbf(0x723)]=new _0x449afb(this,null),this[_0x5cedbf(0x447)]=_0x2b15a1(this),this[_0x5cedbf(0x63b)]=_0x24d2fd(this),this['_license']=_0x5459f6(this),this[_0x5cedbf(0x1ff)]=_0x9b35ce(this),this[_0x5cedbf(0x562)]=_0x568e4a(this),this[_0x5cedbf(0x1f9)]=new _0xa4ac97(this),this[_0x5cedbf(0x755)]=new _0x22cb9b(this),this[_0x5cedbf(0x59c)]=new _0x1e19e2(this),this[_0x5cedbf(0x7f0)]=new _0x5ed8d7(this),this[_0x5cedbf(0x7b5)]=new _0x3cb889(this,null),this[_0x5cedbf(0x201)]=new _0x2290a0(this),this[_0x5cedbf(0x7ed)]=_0xfd3e98&&_0xfd3e98[_0x5cedbf(0x7ed)]===![]?null:_0x48613a(_0x5cedbf(0x7ed)),this[_0x5cedbf(0x7a5)]=_0x48613a(_0x5cedbf(0x7a5)),this[_0x5cedbf(0x516)]=new _0x3b4d3b(this);}[_0xef20(0x210)](_0x5773ce,_0x166a27,_0xd8dd34,_0x2cda4a,_0x55c876=!![]){const _0x2f8cd2=_0xef20;if(_0x55c876&&this[_0x2f8cd2(0x2d7)]&&this['_wb'][_0x2f8cd2(0x622)]['length'])this[_0x2f8cd2(0x2d7)][_0x2f8cd2(0x8e6)]();try{return this[_0x2f8cd2(0x858)]['call'](_0x5773ce,_0x166a27,_0xd8dd34,_0x2cda4a);}catch(_0x2e0a90){throw _0x4e6f50(_0x2e0a90);}finally{if(_0x55c876)this['_pumper']['wake']();}}[_0xef20(0x76a)](_0xa850e9,_0x2eb405,_0x4c14b0,_0x49c811){let _0x26828d;try{_0x26828d=this['_native']['callPacked'](_0xa850e9,_0x2eb405,_0x4c14b0,_0x49c811);}catch(_0x48714e){throw _0x4e6f50(_0x48714e);}return _0x26828d instanceof Uint8Array?_0x198746(_0x26828d):_0x26828d[0x0];}['_readBuf'](_0x4ba750){const _0xd70adf=_0xef20;let _0x2675e6=this[_0xd70adf(0x1ce)];if(_0x2675e6&&_0x4ba750<=_0x2675e6[_0xd70adf(0x68a)])return _0x2675e6;let _0x27818d=_0x2675e6?_0x2675e6[_0xd70adf(0x68a)]:_0x287e1e;while(_0x27818d<_0x4ba750)_0x27818d*=0x2;if(_0x27818d>_0x4b7e32)return _0x2675e6;return _0x2675e6=this[_0xd70adf(0x1ce)]=Buffer[_0xd70adf(0x6fb)](_0x27818d),this[_0xd70adf(0x858)][_0xd70adf(0x505)](_0x2675e6),_0x2675e6;}[_0xef20(0x5ae)](_0x38c4f4,_0x33592a,_0x3a6582){const _0x51bc79=_0xef20;if(!this[_0x51bc79(0x1ce)])this[_0x51bc79(0x5fc)](0x0);const _0x25c60d=this[_0x51bc79(0x858)][_0x51bc79(0x57e)](_0x38c4f4,_0x33592a,_0x3a6582);if(typeof _0x25c60d===_0x51bc79(0x6e7))return _0x8cf03a(this[_0x51bc79(0x1ce)],_0x25c60d);if(_0x25c60d===undefined||_0x25c60d===null)return _0x25c60d;return this[_0x51bc79(0x5fc)](_0x25c60d[_0x51bc79(0x68a)]),_0x8cf03a(_0x25c60d);}['_getFast'](_0x428f6a,_0x4fb814,_0x399258){const _0x2c32af=_0xef20;let _0x2c4a6b=this[_0x2c32af(0x60f)];if(!_0x2c4a6b){_0x2c4a6b=this[_0x2c32af(0x60f)]=Buffer['allocUnsafeSlow'](_0x221984),this[_0x2c32af(0x858)][_0x2c32af(0x3b1)](_0x2c4a6b),this['_tids']=new Map();if(!this[_0x2c32af(0x1ce)])this[_0x2c32af(0x5fc)](0x0);}const _0xcb926b=_0x3f65b9(_0x399258,_0x2c4a6b);if(_0xcb926b<0x0)return _0xab98d2;let _0x2fd3e7=this[_0x2c32af(0x5b0)]['get'](_0x428f6a);if(_0x2fd3e7===undefined)this[_0x2c32af(0x5b0)][_0x2c32af(0x63f)](_0x428f6a,_0x2fd3e7=new Map());let _0x4e159c=_0x2fd3e7[_0x2c32af(0x309)](_0x4fb814);if(_0x4e159c===undefined)_0x2fd3e7[_0x2c32af(0x63f)](_0x4fb814,_0x4e159c=this[_0x2c32af(0x858)]['typeId'](_0x428f6a,_0x4fb814));if(_0x4e159c<0x0)return _0xab98d2;const _0x175a7c=this['_native'][_0x2c32af(0x36e)](_0x4e159c,_0xcb926b);if(typeof _0x175a7c===_0x2c32af(0x6e7))return _0x8cf03a(this['_rbuf'],_0x175a7c);if(_0x175a7c===undefined||_0x175a7c===null)return _0x175a7c;return this[_0x2c32af(0x5fc)](_0x175a7c[_0x2c32af(0x68a)]),_0x8cf03a(_0x175a7c);}['_callRows'](_0x3879e3,_0x57efbe,_0x531f5b){const _0x5be6ea=_0xef20;if(!this[_0x5be6ea(0x1ce)])this[_0x5be6ea(0x5fc)](0x0);let _0x1312b8;try{_0x1312b8=this[_0x5be6ea(0x858)]['callRows'](_0x3879e3,_0x57efbe,_0x531f5b);}catch(_0x107248){throw _0x4e6f50(_0x107248);}const _0x2df419=_0x57efbe===_0x5be6ea(0x6a1),_0x4e9925=_0x2df419?_0x531f5b[0x1]:_0x57efbe;let _0x14add1=this[_0x5be6ea(0x1ce)],_0x238642=_0x1312b8;if(_0x1312b8 instanceof Uint8Array)this[_0x5be6ea(0x5fc)](_0x1312b8['length']),_0x14add1=_0x1312b8,_0x238642=_0x1312b8['length'];else{if(typeof _0x1312b8!==_0x5be6ea(0x6e7))return _0x1312b8[0x0];}if(_0x4e9925===_0x5be6ea(0x300))return _0x109fb2(_0x14add1,_0x238642,_0x2df419);if(_0x4e9925==='getMany')return _0x8cf03a(_0x14add1,_0x238642);return _0x6c51e7(_0x8cf03a(_0x14add1,_0x238642),_0x2df419);}[_0xef20(0x661)](_0x2e80b8,_0x46749a,_0x4b70b,_0x249bc4,_0x2b49fc=!![],_0x423219=!![]){const _0x37e7ae=_0xef20,_0x2f9653=()=>this[_0x37e7ae(0x7d6)](()=>this[_0x37e7ae(0x210)](_0x2e80b8,_0x46749a,_0x4b70b,_0x249bc4,_0x2b49fc));if(!_0x423219)return _0x2f9653();return this[_0x37e7ae(0x302)](_0x2f9653);}['_retryPending'](_0x381eae){const _0x1262c9=_0xef20;return _0x381eae()[_0x1262c9(0x6d7)](async _0x47e7c0=>{const _0x5cec3e=_0x1262c9;if(!_0x2a8b16(_0x47e7c0))throw _0x47e7c0;const _0x50939b=Date[_0x5cec3e(0x8cc)]()+_0x40a750;let _0x1d213f=0x1;while(_0x2a8b16(_0x47e7c0)&&Date[_0x5cec3e(0x8cc)]()<_0x50939b){await new Promise(_0x579cc3=>setTimeout(_0x579cc3,_0x1d213f)),_0x1d213f=Math[_0x5cec3e(0x597)](_0x1d213f*0x2,0x14);try{return await _0x381eae();}catch(_0x2a4d37){_0x47e7c0=_0x2a4d37;}}throw _0x47e7c0;});}['_settleRead'](_0x485a51){if(_0x261e57['inNativeCall']())return Promise['resolve'](_0x485a51);return new Promise(_0x408b64=>setImmediate(()=>_0x408b64(_0x485a51)));}[_0xef20(0x7aa)](_0x521a89){const _0x4c98b1=_0xef20;if(_0x261e57[_0x4c98b1(0x6a8)]())return Promise[_0x4c98b1(0x22e)](_0x521a89);return this['_afterDurable']()[_0x4c98b1(0x801)](()=>_0x521a89);}[_0xef20(0x4e0)](){return new Promise(_0x3779ee=>setImmediate(()=>{const _0x9535d3=_0x52a3;let _0x24d290;try{_0x24d290=this[_0x9535d3(0x858)][_0x9535d3(0x34c)]();}catch{return _0x3779ee();}_0x40ef24[_0x9535d3(0x1ec)](_0x24d290,_0x3779ee);}));}[_0xef20(0x7d6)](_0x5c1053){return new Promise((_0x4e7f86,_0x47defe)=>setImmediate(()=>{try{_0x4e7f86(_0x5c1053());}catch(_0x22f463){_0x47defe(_0x22f463);}}));}[_0xef20(0x66b)](_0x240505,_0x3132cb,_0x32c9ec){return _0x4cc447(_0x240505,_0x3132cb,_0x32c9ec);}[_0xef20(0x46f)](_0x49cd14){const _0x1510ea=_0xef20;if(typeof _0x49cd14!==_0x1510ea(0x2b1)||this[_0x1510ea(0x4ee)][_0x1510ea(0x571)](_0x49cd14)||_0x49cd14===_0x1510ea(0x7dd)||_0x49cd14===_0x1510ea(0x8ed))return;this[_0x1510ea(0x4ee)][_0x1510ea(0x280)](_0x49cd14);try{this['_native'][_0x1510ea(0x4d1)](_0x1510ea(0x4cb),null,_0x1510ea(0x43a),[this[_0x1510ea(0x28c)],_0x49cd14]);}catch{}}[_0xef20(0x2f6)](_0x53bb23,_0x560575){const _0x27ccb4=_0xef20;this[_0x27ccb4(0x4cb)][_0x27ccb4(0x5a2)](_0x53bb23,_0x560575);}async[_0xef20(0x389)](){const _0x547e4d=_0xef20,_0x4d21fc=this[_0x547e4d(0x7d4)];if(_0x4d21fc[_0x547e4d(0x327)])this[_0x547e4d(0x55b)](null,await _0x4d21fc[_0x547e4d(0x327)](null),!![]);for(const [_0x426381,_0x16760c]of _0x4d21fc[_0x547e4d(0x27e)])this[_0x547e4d(0x55b)](_0x426381,typeof _0x16760c===_0x547e4d(0x640)?await _0x16760c(_0x426381):_0x16760c,typeof _0x16760c===_0x547e4d(0x640));(_0x4d21fc['instance']||[..._0x4d21fc[_0x547e4d(0x27e)][_0x547e4d(0x5d0)]()]['some'](_0x5d7b24=>typeof _0x5d7b24==='function'))&&!this['_keyListener']&&(this['_keyListener']=_0x5d9996=>{const _0x5a584b=_0x547e4d,_0xa43a22=_0x5d9996&&_0x5d9996[_0x5a584b(0x609)]!=null?_0x5d9996[_0x5a584b(0x609)]:null,_0x5c09d5=_0xa43a22==null?_0x4d21fc[_0x5a584b(0x327)]:_0x4d21fc[_0x5a584b(0x27e)][_0x5a584b(0x309)](_0xa43a22);if(typeof _0x5c09d5!==_0x5a584b(0x640))return;Promise[_0x5a584b(0x22e)]()['then'](()=>_0x5c09d5(_0xa43a22))[_0x5a584b(0x801)](_0x41d210=>this['_setKey'](_0xa43a22,_0x41d210,!![]))['catch'](_0x4052ff=>this[_0x5a584b(0x58d)][_0x5a584b(0x62e)]('encryption\x20key\x20function\x20failed:\x20'+(_0x4052ff&&_0x4052ff['message']),{'env':_0xa43a22}));},this[_0x547e4d(0x4cb)]['on'](_0x547e4d(0x808),this[_0x547e4d(0x673)]));}[_0xef20(0x55b)](_0x27e4fd,_0x145e0a,_0x1f5e8d){const _0x3008cf=_0xef20;if(_0x145e0a==null)throw new _0x370fe4(_0x3008cf(0x461)+(_0x27e4fd?_0x3008cf(0x2bc)+_0x27e4fd+'\x22':'')+'\x20returned\x20no\x20key','ENCRYPTION_KEY_REQUIRED');this[_0x3008cf(0x858)][_0x3008cf(0x4d1)]('db',null,_0x3008cf(0x37c),[_0x27e4fd,_0x145e0a,!!_0x1f5e8d]);}async['changeEncryptionKey'](_0x7e2411){const _0x5719ca=_0xef20;this[_0x5719ca(0x7a2)]();const {env:env=null,to:_0x53b2bb}=_0x7906bb(_0x7e2411),_0x4447b5=typeof _0x53b2bb===_0x5719ca(0x640),_0x60ed69=_0x4447b5?await _0x53b2bb(env):_0x53b2bb;if(_0x60ed69==null)throw _0x54e14f(_0x5719ca(0x209),_0x5719ca(0x637),_0x60ed69);const _0x5ea1d6=this[_0x5719ca(0x210)]('db',null,_0x5719ca(0x704),[env,_0x60ed69,_0x4447b5]);if(_0x4447b5){if(env==null)this[_0x5719ca(0x7d4)]['instance']=_0x53b2bb;else this['_keyFns'][_0x5719ca(0x27e)][_0x5719ca(0x63f)](env,_0x53b2bb);}return _0x5ea1d6;}async[_0xef20(0x3f9)](_0x2d0811){const _0x992abc=_0xef20;this['_assertOpen']();const _0x191535=_0x7906bb(_0x2d0811);if(!_0x191535['env'])throw _0x54e14f('reencrypt:\x20env','an\x20environment\x20name',_0x191535[_0x992abc(0x609)]);let _0x4c6cbf=_0x191535['to'];const _0x300eaf=typeof _0x4c6cbf===_0x992abc(0x640);if(_0x300eaf)_0x4c6cbf=await _0x191535['to'](_0x191535['env']);const _0x54cf2f=await this[_0x992abc(0x7d6)](()=>this[_0x992abc(0x210)]('db',null,_0x992abc(0x3f9),[_0x191535[_0x992abc(0x609)],'to'in _0x191535?_0x4c6cbf:undefined,_0x300eaf]));if(_0x300eaf)this[_0x992abc(0x7d4)]['envs'][_0x992abc(0x63f)](_0x191535[_0x992abc(0x609)],_0x191535['to']);return _0x54cf2f;}async['open'](){const _0x2cdf5a=_0xef20;if(this['state']===_0x36d3a1[_0x2cdf5a(0x69d)])return;if(this[_0x2cdf5a(0x74f)]!==_0x36d3a1[_0x2cdf5a(0x890)])throw new _0x370fe4('Database\x20already\x20opened/closed',_0x2cdf5a(0x58e),{'state':this['state']});this[_0x2cdf5a(0x74f)]=_0x36d3a1[_0x2cdf5a(0x72a)],this['_bootLog']=[];try{try{await this[_0x2cdf5a(0x389)](),await this[_0x2cdf5a(0x7d6)](()=>this[_0x2cdf5a(0x858)][_0x2cdf5a(0x260)]());}catch(_0x4c4b9f){throw _0x4e6f50(_0x4c4b9f);}}catch(_0x4ccc6f){this[_0x2cdf5a(0x74f)]=_0x36d3a1[_0x2cdf5a(0x8db)],this[_0x2cdf5a(0x320)]=null,this['_teardownNative']();throw _0x4ccc6f;}this[_0x2cdf5a(0x663)]=!![],this[_0x2cdf5a(0x74f)]=_0x36d3a1[_0x2cdf5a(0x69d)];try{this[_0x2cdf5a(0x210)]('db',null,_0x2cdf5a(0x2fc),[this[_0x2cdf5a(0x1f9)][_0x2cdf5a(0x477)]['map'](_0x2679da=>_0x2679da[_0x2cdf5a(0x882)]?.[_0x2cdf5a(0x54b)])[_0x2cdf5a(0x4e1)](Boolean)],![]),await this[_0x2cdf5a(0x1f9)][_0x2cdf5a(0x45c)]();}catch(_0x1d6170){this[_0x2cdf5a(0x74f)]=_0x36d3a1[_0x2cdf5a(0x67f)];try{this[_0x2cdf5a(0x858)][_0x2cdf5a(0x5df)]();}catch{}this['state']=_0x36d3a1[_0x2cdf5a(0x8db)],this[_0x2cdf5a(0x663)]=![],this[_0x2cdf5a(0x627)]();throw _0x1d6170;}for(const _0x3166c1 of this['_call']('db',null,_0x2cdf5a(0x24c),[],![]))if(!_0x3166c1[_0x2cdf5a(0x38a)]('~'))this[_0x2cdf5a(0x6df)](_0x3166c1);try{if(this[_0x2cdf5a(0x210)]('db',null,_0x2cdf5a(0x805),[_0x2cdf5a(0x5ed)],![])){this[_0x2cdf5a(0x6d9)]=this[_0x2cdf5a(0x6df)]('~log');const _0x262fd1=new Set(this[_0x2cdf5a(0x58d)][_0x2cdf5a(0x1d8)]);this['_detachLogSink']=this[_0x2cdf5a(0x58d)][_0x2cdf5a(0x698)](this[_0x2cdf5a(0x6d9)],this['id']);const _0x6ffb40=[...this[_0x2cdf5a(0x58d)][_0x2cdf5a(0x1d8)]][_0x2cdf5a(0x73d)](_0x599461=>!_0x262fd1[_0x2cdf5a(0x571)](_0x599461)),_0x22c90c=this[_0x2cdf5a(0x210)]('db',null,'bootLogMark',[],![]);for(const _0x45de3d of(this['_bootLog']??[])['slice'](_0x22c90c))_0x6ffb40?.(_0x45de3d);}}catch{}this[_0x2cdf5a(0x320)]=null,this[_0x2cdf5a(0x858)][_0x2cdf5a(0x75e)](()=>this[_0x2cdf5a(0x5fd)]['wake']()),this[_0x2cdf5a(0x5fd)][_0x2cdf5a(0x45c)]();}async[_0xef20(0x5f5)](){const _0x19d8f9=_0xef20;return this[_0x19d8f9(0x661)]('db',null,'bootRuntime',[]);}async[_0xef20(0x5df)](){const _0x46ba9a=_0xef20;if(this[_0x46ba9a(0x74f)]===_0x36d3a1['STOPPED'])return;if(this['state']!==_0x36d3a1[_0x46ba9a(0x69d)])throw new _0x370fe4(_0x46ba9a(0x39c),'INVALID_STATE',{'state':this[_0x46ba9a(0x74f)]});this['state']=_0x36d3a1[_0x46ba9a(0x67f)],this[_0x46ba9a(0x663)]=![];let _0x46e551=null;if(this[_0x46ba9a(0x755)][_0x46ba9a(0x6eb)][_0x46ba9a(0x68a)])try{await this['http'][_0x46ba9a(0x5df)]();}catch(_0x7a83ae){_0x46e551=_0x7a83ae;}if(this['__adminRelay']){try{this['__adminRelay'][_0x46ba9a(0x70d)](),this[_0x46ba9a(0x3ff)][_0x46ba9a(0x355)]();}catch{}this['__adminRelay']=null;}try{this['_changefeed']?.['stop']?.();}catch{}try{await this[_0x46ba9a(0x1f9)][_0x46ba9a(0x1f1)]();}catch(_0x2487f9){_0x46e551=_0x2487f9;}for(const _0x3e08a9 of[...Map['prototype'][_0x46ba9a(0x5d0)][_0x46ba9a(0x4d1)](this['_envs'])]){try{await _0x3e08a9[_0x46ba9a(0x5fa)][_0x46ba9a(0x560)]();}catch{}try{await _0x3e08a9[_0x46ba9a(0x655)][_0x46ba9a(0x1f1)]();}catch{}}for(const _0x231483 of[()=>this[_0x46ba9a(0x59c)]['stop'](),()=>this[_0x46ba9a(0x7f1)][_0x46ba9a(0x1f1)](),()=>this['fts']&&this['fts']['stop']?.()]){try{await _0x231483();}catch{}}const _0x89629=this[_0x46ba9a(0x688)][_0x46ba9a(0x4f0)]??0x7530,_0x535bed=[];for(const _0x24f790 of[...Map['prototype'][_0x46ba9a(0x5d0)][_0x46ba9a(0x4d1)](this[_0x46ba9a(0x612)])]){if(_0x24f790[_0x46ba9a(0x622)]?.[_0x46ba9a(0x1d5)]?.[_0x46ba9a(0x8d2)]>0x0)_0x535bed['push'](_0x24f790[_0x46ba9a(0x622)][_0x46ba9a(0x560)](_0x89629));}if(_0x535bed['length']>0x0)await Promise[_0x46ba9a(0x30e)](_0x535bed);try{this[_0x46ba9a(0x6af)]?.();}catch{}this[_0x46ba9a(0x6af)]=null;try{await this[_0x46ba9a(0x2d7)][_0x46ba9a(0x3ec)]();}catch{}this[_0x46ba9a(0x5fd)][_0x46ba9a(0x1f1)]();try{await this[_0x46ba9a(0x7d6)](()=>this[_0x46ba9a(0x858)][_0x46ba9a(0x5df)]());}catch(_0xb07c14){_0x46e551=_0x46e551||_0x4e6f50(_0xb07c14);}this['state']=_0x36d3a1[_0x46ba9a(0x8db)],this[_0x46ba9a(0x627)](),Map[_0x46ba9a(0x511)][_0x46ba9a(0x734)][_0x46ba9a(0x4d1)](this[_0x46ba9a(0x612)]);if(_0x46e551)throw _0x46e551;}[_0xef20(0x627)](){const _0x11b20e=_0xef20;this[_0x11b20e(0x5fd)][_0x11b20e(0x1f1)]();try{this['_native'][_0x11b20e(0x75e)](null);}catch{}try{this[_0x11b20e(0x858)][_0x11b20e(0x49e)]();}catch{}this['_rbuf']=null,this[_0x11b20e(0x60f)]=null,this[_0x11b20e(0x5b0)]=null,_0x261e57[_0x11b20e(0x7a6)](this[_0x11b20e(0x28c)]),_0x261e57['forgetDb'](this),_0x686a76[_0x11b20e(0x2cb)](this[_0x11b20e(0x741)]);if(_0x261e57[_0x11b20e(0x82d)](this)){const _0x3e72b4=[..._0x686a76[_0x11b20e(0x5d0)]()][_0x11b20e(0x5d5)]();if(_0x3e72b4)_0x261e57[_0x11b20e(0x66a)](()=>_0x3e72b4['_pumper'][_0x11b20e(0x2c2)](),_0x3e72b4);else _0x261e57['setKick'](()=>{},null);}}get['id'](){const _0x27cef0=_0xef20;return this[_0x27cef0(0x210)]('db',null,'id',[],![]);}[_0xef20(0x222)](_0x3ca43b){const _0x66b7c5=_0xef20;return this['env'](_0x66b7c5(0x2a6))[_0x66b7c5(0x222)](_0x3ca43b);}get['_tokenSecret'](){const _0xa6dc66=_0xef20;return this['_rootDb'][_0xa6dc66(0x309)](_0xa6dc66(0x689));}get[_0xef20(0x4e3)](){const _0x302794=_0xef20;return this['sync'][_0x302794(0x4e3)];}get[_0xef20(0x1cc)](){const _0x534566=_0xef20;return this[_0x534566(0x59c)][_0x534566(0x1cc)];}get[_0xef20(0x715)](){const _0x456a24=_0xef20;if(!this[_0x456a24(0x663)]||!this[_0x456a24(0x210)]('db',null,'subsBuilt',[],![]))return undefined;if(!this[_0x456a24(0x763)]){const _0x4a698b=requireOkdbSubscriptionsStore(),_0x34db71=new _0x4a698b(this,this['options']&&this[_0x456a24(0x688)]['subscriptions']);_0x34db71['_sub']=this[_0x456a24(0x609)](_0x456a24(0x3cf));const {compileFilter:_0x2e488c}=requireOkdbQueryFilter(),_0x1f472f=(_0x202a13,_0x461afb)=>{if(_0x202a13==null)return![];try{return _0x2e488c(_0x202a13)(_0x461afb);}catch{return![];}};this[_0x456a24(0x763)]={'store':_0x34db71,'router':{'_matches':_0x1f472f}};}return this[_0x456a24(0x763)];}get['_role'](){return this['role'];}get[_0xef20(0x33a)](){const _0x14964f=_0xef20;return this['_call']('db',null,_0x14964f(0x33a),[],![]);}get[_0xef20(0x3e4)](){const _0x39831b=_0xef20;return{...this[_0x39831b(0x210)]('db',null,'role',[],![])};}get[_0xef20(0x1d0)](){return require$$29['version'];}get[_0xef20(0x334)](){const _0x22a97a=_0xef20;return this[_0x22a97a(0x210)]('db',null,_0x22a97a(0x7e3),[],![]);}get['info'](){const _0x431edd=_0xef20;return this[_0x431edd(0x210)]('db',null,'info',[],![]);}['getResolvedOptions'](){return this['_call']('db',null,'resolvedOptions',[],![]);}[_0xef20(0x5f0)](){const _0x228c10=_0xef20;return this['_call']('db',null,_0x228c10(0x5f0),[],![]);}async['setProcessingConfig'](_0x3cb14b){const _0x3060d7=_0xef20;this[_0x3060d7(0x7a2)](),this['_call']('db',null,_0x3060d7(0x288),[_0x3cb14b],![]);}[_0xef20(0x39a)](){const _0x25a5f1=_0xef20,_0x3b2f13=Date[_0x25a5f1(0x8cc)]();if(this['_pressure']&&_0x3b2f13-this['_pressure']['at']<0xfa)return this[_0x25a5f1(0x38f)][_0x25a5f1(0x2ef)];const _0xff3de0=this[_0x25a5f1(0x210)]('db',null,_0x25a5f1(0x39a),[],![]);return this['_pressure']={'at':_0x3b2f13,'value':_0xff3de0},_0xff3de0;}[_0xef20(0x7a2)](){const _0x13a40a=_0xef20;if(!this[_0x13a40a(0x663)])throw new _0x370fe4(_0x13a40a(0x39c),_0x13a40a(0x58e),{'state':this[_0x13a40a(0x74f)]});}get[_0xef20(0x611)](){const _0x5be729=_0xef20;if(this[_0x5be729(0x74f)]===_0x36d3a1['STOPPED']||!this[_0x5be729(0x663)])return null;if(this[_0x5be729(0x210)]('db',null,_0x5be729(0x1fb),[],![])==null)return null;if(!this[_0x5be729(0x326)]){const _0x56e20a=this;this[_0x5be729(0x326)]={get 'state'(){const _0x126334=_0x5be729;return _0x56e20a[_0x126334(0x210)]('db',null,_0x126334(0x1fb),[],![]);},get 'magic'(){const _0x2468ff=_0x5be729;return Buffer[_0x2468ff(0x48d)](_0x2468ff(0x79d)+_0x56e20a['id']);},get 'isRunning'(){const _0x583a9e=_0x5be729;return _0x56e20a[_0x583a9e(0x210)]('db',null,_0x583a9e(0x1fb),[],![])===_0x583a9e(0x3c4);},'emit'(_0x8c36fb,_0x576de2=''){const _0x255121=_0x5be729;_0x56e20a['_call']('db',null,_0x255121(0x2cf),[_0x8c36fb,String(_0x576de2)],![]);}};}return this[_0x5be729(0x326)];}[_0xef20(0x80d)](_0x3afedb,_0x3f6099){const _0x5c4cfa=_0xef20;this[_0x5c4cfa(0x611)]?.[_0x5c4cfa(0x5a2)](_0x5c4cfa(0x7c9),JSON[_0x5c4cfa(0x35a)]({'kind':_0x5c4cfa(0x30c),'scope':_0x3afedb,'key':_0x3f6099}));}get[_0xef20(0x438)](){const _0x3e3fdf=_0xef20;return this[_0x3e3fdf(0x5d7)]||(this[_0x3e3fdf(0x5d7)]=new(requireLock())['NativeLock'](this,_0x3e3fdf(0x5b5),_0x3e3fdf(0x706)));}get[_0xef20(0x406)](){const _0x12ff63=_0xef20;return this[_0x12ff63(0x34d)]?this[_0x12ff63(0x34d)]['db']:undefined;}get[_0xef20(0x399)](){const _0x29f47e=_0xef20,_0x5a719f=this[_0x29f47e(0x34d)]?.[_0x29f47e(0x5fa)];if(!_0x5a719f)return null;const _0x32b355=_0x5a719f[_0x29f47e(0x47e)]()[_0x29f47e(0x73d)](_0x158877=>_0x158877[_0x29f47e(0x447)]?.[_0x29f47e(0x54b)]===_0x29f47e(0x8ea));return _0x32b355?_0x5a719f[_0x29f47e(0x4c7)](_0x32b355['id'],_0x32b355[_0x29f47e(0x324)]):null;}get[_0xef20(0x34d)](){const _0x5ce7b0=_0xef20;return this[_0x5ce7b0(0x663)]?this[_0x5ce7b0(0x612)][_0x5ce7b0(0x309)](_0x5ce7b0(0x5b5)):undefined;}['_ensureEnv'](_0x5d2732){const _0x31035a=_0xef20;let _0x313c8e=Map[_0x31035a(0x511)][_0x31035a(0x309)][_0x31035a(0x4d1)](this[_0x31035a(0x612)],_0x5d2732);if(!_0x313c8e){_0x313c8e=new _0x3c3dc3(this,_0x5d2732),Map[_0x31035a(0x511)][_0x31035a(0x63f)][_0x31035a(0x4d1)](this[_0x31035a(0x612)],_0x5d2732,_0x313c8e);if(_0x5d2732==='default')this[_0x31035a(0x716)]=_0x313c8e;}return _0x313c8e;}[_0xef20(0x609)](_0x29f45d=_0xef20(0x2a6)){const _0x59f57d=_0xef20,_0x53dfb3=this[_0x59f57d(0x612)][_0x59f57d(0x309)](_0x29f45d);if(_0x53dfb3)return _0x53dfb3;if(this[_0x59f57d(0x663)]&&this[_0x59f57d(0x210)]('db',null,_0x59f57d(0x805),[_0x29f45d],![]))return this[_0x59f57d(0x6df)](_0x29f45d);throw new _0x370fe4(_0x59f57d(0x6e4)+_0x29f45d+_0x59f57d(0x53b),'ENV_NOT_FOUND');}get[_0xef20(0x2a6)](){const _0x1b2750=_0xef20;return this[_0x1b2750(0x609)](_0x1b2750(0x2a6));}get[_0xef20(0x3f0)](){const _0x40e0ed=_0xef20;return this['_envs']['get'](_0x40e0ed(0x2a6))??this['_defaultEnvObj'];}get[_0xef20(0x87a)](){const _0x3b7047=_0xef20;return this[_0x3b7047(0x3f0)][_0x3b7047(0x87a)];}get[_0xef20(0x622)](){return this['_defaultEnv']['queue'];}[_0xef20(0x347)](_0xb12fba){const _0xa2cc68=_0xef20;if(!this[_0xa2cc68(0x663)])return null;return this[_0xa2cc68(0x210)]('db',null,_0xa2cc68(0x86d),[_0xb12fba],![])?{'ref'(){},'unref'(){}}:null;}get[_0xef20(0x67e)](){const _0x1dd073=_0xef20;return this[_0x1dd073(0x347)](_0x1dd073(0x3cc));}[_0xef20(0x213)](){const _0x5d4da7=_0xef20;return this[_0x5d4da7(0x210)]('db',null,_0x5d4da7(0x8af),[],!![]);}get[_0xef20(0x315)](){const _0x2de80d=_0xef20;return this[_0x2de80d(0x347)](_0x2de80d(0x325));}get[_0xef20(0x658)](){return this['_timerHandle']('writerWatchdog');}get[_0xef20(0x80b)](){const _0x312542=_0xef20;return this[_0x312542(0x609)](_0x312542(0x2a6))[_0x312542(0x80b)];}get[_0xef20(0x2aa)](){throw new _0x370fe4('db.workers\x20was\x20removed.\x20okdb\x20does\x20not\x20manage\x20processes\x20—\x20run\x20more\x20okdb\x20processes\x20(processors:true)\x20via\x20your\x20orchestrator;\x20the\x201-of-N\x20processor\x20lease\x20load-balances\x20across\x20them.\x20See\x20docs/upgrade-2.0.md.','WORKERS_REMOVED');}get['processor'](){const _0x805bca=_0xef20;return this[_0x805bca(0x3f0)][_0x805bca(0x5fa)];}get[_0xef20(0x876)](){const _0x26c20b=_0xef20;return this[_0x26c20b(0x3f0)][_0x26c20b(0x876)];}async[_0xef20(0x3d0)](_0x4c95f0,_0x2cf21d={}){const _0x16b29d=_0xef20;this[_0x16b29d(0x7a2)]();if(_0x2cf21d&&typeof _0x2cf21d[_0x16b29d(0x32b)]==='function'){const _0x5b4179=_0x2cf21d[_0x16b29d(0x32b)];this[_0x16b29d(0x55b)](_0x4c95f0,await _0x5b4179(_0x4c95f0),!![]),this[_0x16b29d(0x7d4)]['envs'][_0x16b29d(0x63f)](_0x4c95f0,_0x5b4179),_0x2cf21d={..._0x2cf21d,'encryptionKey':!![]};}return this[_0x16b29d(0x210)]('db',null,_0x16b29d(0x3d0),[_0x4c95f0,_0x2cf21d]),this['_ensureEnv'](_0x4c95f0);}async[_0xef20(0x638)](_0x24afbd){const _0x4e90a1=_0xef20;if(!this[_0x4e90a1(0x663)])throw new _0x370fe4(_0x4e90a1(0x6cd)+_0x24afbd+_0x4e90a1(0x5ce),_0x4e90a1(0x58e));return this[_0x4e90a1(0x210)]('db',null,_0x4e90a1(0x638),[_0x24afbd]),this['_ensureEnv'](_0x24afbd);}get[_0xef20(0x385)](){const _0x240aa0=_0xef20;if(!this[_0x240aa0(0x3ff)]&&this[_0x240aa0(0x663)]){const _0x1e34d2=requireOkdbRelay(),_0x5b5e1c=new _0x1e34d2(this,this[_0x240aa0(0x688)]?.[_0x240aa0(0x7ed)]?.['relay']??{});_0x5b5e1c[_0x240aa0(0x29a)](),_0x5b5e1c[_0x240aa0(0x5b1)]=!![],this['__adminRelay']=_0x5b5e1c;}return this[_0x240aa0(0x3ff)]??null;}set[_0xef20(0x385)](_0x170d5e){const _0x1271f1=_0xef20;this[_0x1271f1(0x3ff)]=_0x170d5e;}get[_0xef20(0x78b)](){const _0x294c0a=_0xef20;let _0x4b7ee0=0x0;if(this['_isOpen'])for(const [_0x50bf8b]of Map[_0x294c0a(0x511)]['entries'][_0x294c0a(0x4d1)](this['_envs'])){try{_0x4b7ee0+=this['_call'](_0x294c0a(0x614),_0x50bf8b,'gateQuanta',[],![])||0x0;}catch{}}return{'total':_0x4b7ee0,'maxObserved':_0x4b7ee0>0x0?0x1:0x0,'inFlight':0x0};}async[_0xef20(0x6c9)](_0x357100){const _0x38bb00=_0xef20,_0x5ad0ff=this[_0x38bb00(0x612)][_0x38bb00(0x309)](_0x357100);if(_0x5ad0ff)return _0x5ad0ff;if(!this[_0x38bb00(0x210)]('db',null,_0x38bb00(0x805),[_0x357100],![]))throw new Error(_0x38bb00(0x47d)+_0x357100+'\x22\x20not\x20found\x20in\x20~envs');return this[_0x38bb00(0x638)](_0x357100);}async[_0xef20(0x7e6)](_0x492d85){const _0x584138=_0xef20,_0x1c586b=this[_0x584138(0x210)]('db',null,_0x584138(0x1cd),[_0x492d85]);return this[_0x584138(0x612)][_0x584138(0x2cb)](_0x492d85),_0x1c586b;}async[_0xef20(0x30d)](_0x3b066c,_0x254a70={}){const _0x44b46d=_0xef20;this['_assertOpen']();const _0x1a19f5=this[_0x44b46d(0x210)]('db',null,'removeEnvironment',[_0x3b066c,_0x254a70]);return this[_0x44b46d(0x612)][_0x44b46d(0x2cb)](_0x3b066c),_0x1a19f5;}static get[_0xef20(0x2d1)](){const _0x4f2873=_0xef20;return _0x16d1b5[_0x4f2873(0x2d1)];}static get[_0xef20(0x523)](){return _0x16d1b5['KNOWN_OPTIONS'];}static get[_0xef20(0x2c1)](){const _0x4b4df2=_0xef20;return _0x16d1b5[_0x4b4df2(0x2c1)];}static async[_0xef20(0x2ac)](_0x1b6859,_0x1a994d){const _0x521784=_0xef20;return _0x4cc447('db',_0x521784(0x2ac),[_0x1b6859,_0x1a994d]);}static['reidentify'](_0x39b8d0){const _0x38e108=_0xef20;return _0x4cc447('db',_0x38e108(0x2da),[_0x39b8d0]);}static[_0xef20(0x40d)](_0x568707,_0x1c6e73){const _0x32a066=_0xef20;_0x4cc447(_0x32a066(0x876),'registerBucketProjection',[_0x568707,_0x1c6e73]);}static[_0xef20(0x23a)](_0x206922,_0x351eb0){const _0x21ae70=_0xef20;_0x4cc447(_0x21ae70(0x876),_0x21ae70(0x23a),[_0x206922,_0x351eb0]);}static[_0xef20(0x1cf)](){}[_0xef20(0x2a1)](_0x3ced84,_0x356e8f){return require$$16['isDeepStrictEqual'](_0x3ced84,_0x356e8f);}}_0x4514d2[_0xef20(0x67a)]=_0x337090,Object['defineProperty'](_0x4514d2,'_unknownOptionsWarned',{'get'(){const _0x512146=_0xef20;return _0x4514d2['__warned']||(_0x4514d2[_0x512146(0x75a)]=new Set());},'set'(_0x380c2e){const _0x3faa75=_0xef20;_0x4514d2[_0x3faa75(0x75a)]=_0x380c2e;try{_0x4cc447('db',_0x3faa75(0x60d),[]);}catch{}},'configurable':!![]});for(const _0x3e7f7f of[_0xef20(0x68f),'txn',_0xef20(0x253),_0xef20(0x5b4),_0xef20(0x65b),'create',_0xef20(0x504),_0xef20(0x309),_0xef20(0x233),_0xef20(0x3a0),'getRange',_0xef20(0x88a),_0xef20(0x300),_0xef20(0x8ce),_0xef20(0x764),_0xef20(0x2dd),_0xef20(0x5c4),_0xef20(0x416),'query',_0xef20(0x853),_0xef20(0x6db),_0xef20(0x343),_0xef20(0x1be),'ensure',_0xef20(0x28f),_0xef20(0x414),_0xef20(0x2a4),'registerIndex',_0xef20(0x5f8),_0xef20(0x8e3),_0xef20(0x591),_0xef20(0x864),_0xef20(0x38b),_0xef20(0x7da),'hasUniqueViolations',_0xef20(0x212),_0xef20(0x3b3),_0xef20(0x4d6),_0xef20(0x246),'getTTL','clearTTL',_0xef20(0x2a9),_0xef20(0x8b0),_0xef20(0x722),_0xef20(0x686),_0xef20(0x456),'clearDefaultTTL',_0xef20(0x400),'range',_0xef20(0x8cc)]){_0x4514d2[_0xef20(0x511)][_0x3e7f7f]=function(..._0x41af07){const _0x2bd1c8=_0xef20,_0x4c8680=this[_0x2bd1c8(0x609)](_0x2bd1c8(0x2a6));return _0x4c8680[_0x3e7f7f](..._0x41af07);};}function _0x568e4a(_0x4a5954){const _0x1c695a=_0xef20,_0x33398a=_0x27837b=>()=>{throw new Error('db.processors.'+_0x27837b+'\x20was\x20removed\x20in\x20okdb\x202.0.\x20Use\x20processors:true\x20for\x20plain\x20lease\x20participation.\x20See\x20docs/upgrade-2.0.md.');};return{'process':_0x33398a(_0x1c695a(0x36c)),'processRest':_0x33398a(_0x1c695a(0x2e4)),'processEverything':_0x33398a(_0x1c695a(0x532)),async 'start'(){const _0x260248=_0x1c695a;return _0x4a5954[_0x260248(0x210)]('db',null,_0x260248(0x319),[]);},async 'stop'(){const _0xa5305e=_0x1c695a;return _0x4a5954[_0xa5305e(0x210)]('db',null,_0xa5305e(0x736),[]);},'status'(){const _0xdfcd6a=_0x1c695a;return _0x4a5954['_call']('db',null,_0xdfcd6a(0x282),[],![]);},get 'participating'(){const _0x3835d6=_0x1c695a;return _0x4a5954[_0x3835d6(0x210)]('db',null,_0x3835d6(0x70b),[],![]);},get '_participate'(){const _0x373296=_0x1c695a;return _0x4a5954[_0x373296(0x210)]('db',null,'processorsParticipating',[],![]);}};}function _0x4cc447(_0x40072a,_0x18a8af,_0x45b627){const _0x10db65=_0xef20;_0x53ab5b();try{return _0x4d4498()[_0x10db65(0x3cd)](_0x40072a,_0x18a8af,_0x45b627);}catch(_0x28aad6){throw _0x4e6f50(_0x28aad6);}}_0x3578a0[_0xef20(0x28e)]=_0x4514d2,_0x3578a0['exports'][_0xef20(0x29e)]=_0x4cc447,_0x3578a0[_0xef20(0x28e)]['OKDB']=_0x4514d2,_0x3578a0[_0xef20(0x28e)][_0xef20(0x67a)]=_0x337090,_0x3578a0['exports'][_0xef20(0x2a6)]=_0x4514d2,Object[_0xef20(0x1fd)](_0x3578a0[_0xef20(0x28e)],_0xef20(0x6f0),{'get':()=>require$$1$1[_0xef20(0x6c8)]?.()??null,'enumerable':![],'configurable':!![]});}(lib),lib[_0x39e754(0x28e)];}var libExports=requireLib(),index=getDefaultExportFromCjs(libExports);module[_0x5c70f8(0x28e)]=index;