@kedem/okdb 3.2.1 → 3.3.0

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 _0x5186d4=_0x458f;(function(_0x355d18,_0x5a49c5){const _0x347231=_0x458f,_0x4261a2=_0x355d18();while(!![]){try{const _0x54afab=-parseInt(_0x347231(0x60d))/0x1*(-parseInt(_0x347231(0x4a9))/0x2)+-parseInt(_0x347231(0x100))/0x3+parseInt(_0x347231(0x629))/0x4*(parseInt(_0x347231(0x55c))/0x5)+parseInt(_0x347231(0x168))/0x6*(parseInt(_0x347231(0x1a3))/0x7)+parseInt(_0x347231(0x451))/0x8+parseInt(_0x347231(0x7aa))/0x9+-parseInt(_0x347231(0x568))/0xa*(parseInt(_0x347231(0x404))/0xb);if(_0x54afab===_0x5a49c5)break;else _0x4261a2['push'](_0x4261a2['shift']());}catch(_0x2f12d8){_0x4261a2['push'](_0x4261a2['shift']());}}}(_0x311a,0xa41d4));var require$$0$6=require('node:events'),require$$1$1=require('./native-loader.js'),require$$0=require(_0x5186d4(0x25f)),require$$1=require('node:stream'),require$$4=require(_0x5186d4(0x4e4)),require$$0$2=require(_0x5186d4(0x3ac)),require$$0$1=require('node:perf_hooks'),require$$16=require('node:util'),require$$0$3=require(_0x5186d4(0x4de)),require$$2=require(_0x5186d4(0x1a1)),require$$18=require(_0x5186d4(0x7ae)),require$$0$4=require('crypto'),require$$0$5=require(_0x5186d4(0x5e1));function getDefaultExportFromCjs(_0x3c7785){const _0x393964=_0x5186d4;return _0x3c7785&&_0x3c7785[_0x393964(0x767)]&&Object[_0x393964(0x50c)][_0x393964(0x4c5)][_0x393964(0x17f)](_0x3c7785,_0x393964(0x132))?_0x3c7785['default']:_0x3c7785;}var lib={'exports':{}},okdbError,hasRequiredOkdbError;function requireOkdbError(){if(hasRequiredOkdbError)return okdbError;hasRequiredOkdbError=0x1;class _0x1431e1 extends Error{constructor(_0x47dd57,_0x36ab84,_0x6e9f={}){const _0x4b861c=_0x458f;super(_0x47dd57),this[_0x4b861c(0x397)]=_0x4b861c(0x425),this[_0x4b861c(0x649)]=_0x36ab84,this[_0x4b861c(0x4cf)]=_0x6e9f,_0x6e9f[_0x4b861c(0x2c9)]&&(this[_0x4b861c(0x2c9)]=_0x6e9f[_0x4b861c(0x2c9)]),Error[_0x4b861c(0x52d)](this,this[_0x4b861c(0x6ba)]);}}class _0x2cc9f9 extends _0x1431e1{constructor(_0x3e6745,_0x5492d2,_0x140109,_0x7c72e7){const _0x5c6b4c=_0x458f;super(_0x5c6b4c(0x12a)+_0x3e6745+'@'+_0x5492d2+':\x20expected\x20'+_0x140109+',\x20got\x20'+_0x7c72e7,_0x5c6b4c(0x21d),{'type':_0x3e6745,'key':_0x5492d2,'expectedVersion':_0x140109,'actualVersion':_0x7c72e7}),this[_0x5c6b4c(0x397)]=_0x5c6b4c(0x671);}}class _0x15c7f4 extends _0x1431e1{constructor(_0x4cd9ba,_0x21daa8){const _0x4081f5=_0x458f;super(_0x4cd9ba+'@'+_0x21daa8+_0x4081f5(0x639),_0x4081f5(0x238),{'type':_0x4cd9ba,'key':_0x21daa8}),this['name']=_0x4081f5(0x779);}}class _0x548af6 extends _0x1431e1{constructor(_0x3e94ea,_0x5bb918){const _0x16ebc1=_0x458f;super(_0x3e94ea+'@'+_0x5bb918+'\x20already\x20exists',_0x16ebc1(0x324),{'type':_0x3e94ea,'key':_0x5bb918}),this[_0x16ebc1(0x397)]=_0x16ebc1(0x6c7);}}class _0xc2c1a4 extends _0x1431e1{constructor(_0x2bfcca,_0xa8d200){const _0x525d20=_0x458f,_0x44aa68=typeof _0xa8d200;super(_0x525d20(0x77f)+_0x2bfcca+_0x525d20(0x40d)+_0x44aa68+_0x525d20(0x2b0)+_0xa8d200,'INVALID_INDEX_KEY',{'index':_0x2bfcca,'key':_0xa8d200,'keyType':_0x44aa68}),this[_0x525d20(0x397)]='OKDBInvalidIndexKeyError';}}class _0x33e2bf extends _0x1431e1{constructor(_0x29f0b8){const _0x5cd7ef=_0x458f,_0x3df463=typeof _0x29f0b8;super(_0x5cd7ef(0x1cd)+_0x3df463+_0x5cd7ef(0x75c)+_0x29f0b8,_0x5cd7ef(0x781),{'key':_0x29f0b8,'keyType':_0x3df463}),this['name']=_0x5cd7ef(0x74b);}}class _0x4d44b1 extends _0x1431e1{constructor(_0x104e6a){const _0x21d966=_0x458f;super(_0x21d966(0x15e)+_0x104e6a+_0x21d966(0x2d9),_0x21d966(0x502),{'type':_0x104e6a}),this[_0x21d966(0x397)]=_0x21d966(0x47d);}}class _0x10eb95 extends _0x1431e1{constructor(_0x326a78){const _0x14078f=_0x458f;super('Type\x20\x27'+_0x326a78+'\x27\x20already\x20registered',_0x14078f(0x7a0),{'type':_0x326a78}),this[_0x14078f(0x397)]=_0x14078f(0x1ff);}}class _0x19129d extends _0x1431e1{constructor(_0xc4fba2,_0x3f3958){const _0x5ae0a6=_0x458f;super('Index\x20\x27'+_0x3f3958+_0x5ae0a6(0x505)+_0xc4fba2+_0x5ae0a6(0x2d9),'INDEX_NOT_REGISTERED',{'type':_0xc4fba2,'index':_0x3f3958}),this[_0x5ae0a6(0x397)]=_0x5ae0a6(0x680);}}class _0x173859 extends _0x1431e1{constructor(_0x3bba61,_0x4b801f){const _0x17550a=_0x458f;super(_0x17550a(0x446)+_0x4b801f+_0x17550a(0x505)+_0x3bba61+_0x17550a(0x27f),'INDEX_ALREADY_REGISTERED',{'type':_0x3bba61,'index':_0x4b801f}),this[_0x17550a(0x397)]=_0x17550a(0x3fe);}}class _0x34f6af extends _0x1431e1{constructor(_0x2b5932,_0xa21ac0={}){const _0x5d8d45=_0x458f;super(_0x2b5932,'INVALID_VALUE',_0xa21ac0),this[_0x5d8d45(0x397)]=_0x5d8d45(0x3d4);}}class _0x3f3b9a extends _0x1431e1{constructor(_0x22d9b3,_0x41592e,_0x5c1c0b,_0x475fca,_0x1efc7e){const _0x5bc8b3=_0x458f;super(_0x5bc8b3(0x6bb)+_0x22d9b3+'@'+_0x41592e+_0x5bc8b3(0x393)+_0x5c1c0b+_0x5bc8b3(0x347)+_0x475fca+'\x27,\x20cannot\x20map\x20to\x20\x27'+_0x1efc7e+'\x27',_0x5bc8b3(0x68a),{'type':_0x22d9b3,'index':_0x41592e,'indexKey':_0x5c1c0b,'existingKey':_0x475fca,'conflictingKey':_0x1efc7e}),this['name']='OKDBUniqueConstraintError';}}class _0x5a5de0 extends _0x1431e1{constructor(_0x45b6fe,_0x1a60d8,_0x757e93){const _0x2eb7b0=_0x458f;super(_0x2eb7b0(0x655)+_0x45b6fe+'@'+_0x1a60d8,_0x2eb7b0(0x4a5),{'type':_0x45b6fe,'key':_0x1a60d8,'errors':_0x757e93}),this['name']='OKDBSchemaValidationError',this['type']=_0x45b6fe,this['key']=_0x1a60d8,this[_0x2eb7b0(0x68c)]=_0x757e93;}}class _0xedf8dc extends _0x1431e1{constructor(_0x1d2d01,_0xcb53fb){const _0x1b4ab4=_0x458f;super('Cannot\x20set\x20enforce\x20schema\x20on\x20'+_0x1d2d01+':\x20'+_0xcb53fb[_0x1b4ab4(0x5f6)]+_0x1b4ab4(0x282),_0x1b4ab4(0x61c),{'type':_0x1d2d01,'failures':_0xcb53fb}),this[_0x1b4ab4(0x397)]=_0x1b4ab4(0x609),this[_0x1b4ab4(0x170)]=_0x1d2d01,this[_0x1b4ab4(0x22c)]=_0xcb53fb;}}class _0x2bdd60 extends _0x1431e1{constructor(_0x278263,_0x1656a3,_0x190913,_0x57ab82,_0x5801e1){const _0x579d89=_0x458f;super(_0x579d89(0x26f)+_0x278263+'@'+_0x1656a3+'.'+_0x190913+'\x20references\x20'+_0x57ab82+'@'+_0x5801e1+_0x579d89(0x410),_0x579d89(0x3b4),{'sourceType':_0x278263,'sourceKey':_0x1656a3,'fieldPath':_0x190913,'targetType':_0x57ab82,'targetKey':_0x5801e1}),this[_0x579d89(0x397)]=_0x579d89(0x343),this[_0x579d89(0x74c)]=_0x278263,this[_0x579d89(0x2a4)]=_0x1656a3,this[_0x579d89(0x49f)]=_0x190913,this[_0x579d89(0x12e)]=_0x57ab82,this[_0x579d89(0x38b)]=_0x5801e1;}}class _0xe0bb9a extends _0x1431e1{constructor(_0x58d0eb,_0x541422,_0x558a80){const _0x1c315d=_0x458f;super(_0x1c315d(0x549)+_0x58d0eb+'@'+_0x541422+':\x20'+_0x558a80[_0x1c315d(0x5f6)]+_0x1c315d(0x197),_0x1c315d(0x5fc),{'targetType':_0x58d0eb,'targetKey':_0x541422,'references':_0x558a80}),this['name']='OKDBForeignKeyDeleteError',this[_0x1c315d(0x12e)]=_0x58d0eb,this[_0x1c315d(0x38b)]=_0x541422,this['references']=_0x558a80;}}class _0x5a1219 extends _0x1431e1{constructor(_0x2054f9,_0x3d607c,_0x612ece){const _0x4a3edb=_0x458f;super(_0x4a3edb(0x60c)+_0x3d607c+_0x4a3edb(0x58e)+_0x2054f9+'\x22\x20is\x20used\x20by:\x20'+_0x612ece[_0x4a3edb(0x25e)](_0x340a07=>_0x340a07['kind']+':'+_0x340a07[_0x4a3edb(0x397)])[_0x4a3edb(0x4b7)](',\x20'),'INDEX_HAS_CONSUMERS',{'type':_0x2054f9,'index':_0x3d607c,'usedBy':_0x612ece}),this[_0x4a3edb(0x397)]=_0x4a3edb(0x2cd);}}return okdbError={'OKDBError':_0x1431e1,'OKDBVersionMismatchError':_0x2cc9f9,'OKDBNotFoundError':_0x15c7f4,'OKDBAlreadyExistsError':_0x548af6,'OKDBInvalidIndexKeyError':_0xc2c1a4,'OKDBInvalidPrimaryKeyError':_0x33e2bf,'OKDBTypeNotRegisteredError':_0x4d44b1,'OKDBTypeAlreadyRegisteredError':_0x10eb95,'OKDBIndexNotRegisteredError':_0x19129d,'OKDBIndexAlreadyRegisteredError':_0x173859,'OKDBInvalidValueError':_0x34f6af,'OKDBUniqueConstraintError':_0x3f3b9a,'OKDBSchemaValidationError':_0x5a5de0,'OKDBSchemaCollectionError':_0xedf8dc,'OKDBForeignKeyError':_0x2bdd60,'OKDBForeignKeyDeleteError':_0xe0bb9a,'OKDBIndexHasConsumersError':_0x5a1219},okdbError;}var errors,hasRequiredErrors;function requireErrors(){const _0x930ef5=_0x5186d4;if(hasRequiredErrors)return errors;hasRequiredErrors=0x1;const _0x1b9e1d=requireOkdbError(),_0x4c0358={'VERSION_MISMATCH':_0x1b9e1d[_0x930ef5(0x671)],'NOT_FOUND':_0x1b9e1d[_0x930ef5(0x779)],'ALREADY_EXISTS':_0x1b9e1d[_0x930ef5(0x6c7)],'INVALID_INDEX_KEY':_0x1b9e1d[_0x930ef5(0x586)],'INVALID_PRIMARY_KEY':_0x1b9e1d[_0x930ef5(0x74b)],'TYPE_NOT_REGISTERED':_0x1b9e1d['OKDBTypeNotRegisteredError'],'TYPE_ALREADY_REGISTERED':_0x1b9e1d['OKDBTypeAlreadyRegisteredError'],'INDEX_NOT_REGISTERED':_0x1b9e1d[_0x930ef5(0x680)],'INDEX_ALREADY_REGISTERED':_0x1b9e1d[_0x930ef5(0x3fe)],'INVALID_VALUE':_0x1b9e1d[_0x930ef5(0x3d4)],'UNIQUE_CONSTRAINT':_0x1b9e1d[_0x930ef5(0x784)],'SCHEMA_VALIDATION_FAILED':_0x1b9e1d[_0x930ef5(0x710)],'SCHEMA_COLLECTION_INVALID':_0x1b9e1d[_0x930ef5(0x609)],'FOREIGN_KEY_VIOLATION':_0x1b9e1d[_0x930ef5(0x343)],'FOREIGN_KEY_DELETE_RESTRICTED':_0x1b9e1d[_0x930ef5(0x659)],'INDEX_HAS_CONSUMERS':_0x1b9e1d[_0x930ef5(0x2cd)]};class _0x3a83ef extends _0x1b9e1d['OKDBError']{constructor(_0x50779d,_0x3ca4ce){const _0x325612=_0x930ef5;super(_0x50779d+_0x325612(0x723)+(_0x3ca4ce?'\x20('+_0x3ca4ce+')':''),_0x325612(0x6d2),{'feature':_0x50779d}),this[_0x325612(0x397)]=_0x325612(0x331);}}function _0x2a353b(_0x1415b0){const _0x38c1f2=_0x930ef5;if(!_0x1415b0||typeof _0x1415b0!=='object'||!_0x1415b0[_0x38c1f2(0x2e6)])return _0x1415b0;delete _0x1415b0[_0x38c1f2(0x2e6)];const _0x54404a=_0x1415b0[_0x38c1f2(0x649)];if(_0x54404a===_0x38c1f2(0x35e)||_0x54404a==='TypeError'||_0x54404a===_0x38c1f2(0xbd)){const _0x2c7300=_0x54404a===_0x38c1f2(0x61b)?TypeError[_0x38c1f2(0x50c)]:_0x54404a===_0x38c1f2(0xbd)?RangeError['prototype']:Error[_0x38c1f2(0x50c)];Object[_0x38c1f2(0x40a)](_0x1415b0,_0x2c7300),_0x1415b0['name']=_0x54404a;if(_0x1415b0[_0x38c1f2(0x4cf)]&&_0x1415b0[_0x38c1f2(0x4cf)][_0x38c1f2(0x26e)]!==undefined)_0x1415b0[_0x38c1f2(0x26e)]=_0x1415b0[_0x38c1f2(0x4cf)][_0x38c1f2(0x26e)];return delete _0x1415b0[_0x38c1f2(0x649)],delete _0x1415b0[_0x38c1f2(0x4cf)],_0x1415b0;}const _0x4885dc=_0x4c0358[_0x54404a];Object[_0x38c1f2(0x40a)](_0x1415b0,(_0x4885dc||_0x1b9e1d['OKDBError'])[_0x38c1f2(0x50c)]),_0x1415b0[_0x38c1f2(0x397)]=_0x4885dc?_0x4885dc[_0x38c1f2(0x397)][_0x38c1f2(0xbe)](/^OKDB/,_0x38c1f2(0x240)):_0x38c1f2(0x425);const _0x29f481=_0x1415b0['details']||{};_0x54404a==='SCHEMA_VALIDATION_FAILED'&&(_0x1415b0[_0x38c1f2(0x170)]=_0x29f481[_0x38c1f2(0x170)],_0x1415b0[_0x38c1f2(0x4fc)]=_0x29f481[_0x38c1f2(0x4fc)],_0x1415b0[_0x38c1f2(0x68c)]=_0x29f481['errors']);_0x54404a===_0x38c1f2(0x61c)&&(_0x1415b0['type']=_0x29f481['type'],_0x1415b0['failures']=_0x29f481[_0x38c1f2(0x22c)]);if(_0x54404a==='FOREIGN_KEY_VIOLATION'){for(const _0x406e45 of['sourceType','sourceKey','fieldPath',_0x38c1f2(0x12e),_0x38c1f2(0x38b)])_0x1415b0[_0x406e45]=_0x29f481[_0x406e45];}if(_0x54404a===_0x38c1f2(0x5fc)){for(const _0x2d59aa of[_0x38c1f2(0x12e),_0x38c1f2(0x38b),_0x38c1f2(0x241)])_0x1415b0[_0x2d59aa]=_0x29f481[_0x2d59aa];}if(_0x29f481[_0x38c1f2(0x2c9)])_0x1415b0[_0x38c1f2(0x2c9)]=_0x29f481[_0x38c1f2(0x2c9)];if(_0x29f481[_0x38c1f2(0x26e)]!==undefined)_0x1415b0[_0x38c1f2(0x26e)]=_0x29f481[_0x38c1f2(0x26e)];if(_0x29f481[_0x38c1f2(0x7b2)]!==undefined)_0x1415b0[_0x38c1f2(0x7b2)]=_0x29f481[_0x38c1f2(0x7b2)];return _0x1415b0;}function _0x1b095a(_0x19153f){const _0x3d9704=_0x930ef5;if(_0x19153f===undefined)return _0x3d9704(0x673);if(_0x19153f===null)return _0x3d9704(0x3d8);if(typeof _0x19153f===_0x3d9704(0x48a))return _0x19153f?_0x3d9704(0x48a):_0x3d9704(0x321);if(typeof _0x19153f==='function')return _0x3d9704(0x5a8);if(typeof _0x19153f!==_0x3d9704(0x57c))return typeof _0x19153f;if(Array['isArray'](_0x19153f))return _0x19153f['length']?_0x3d9704(0x2d8):'empty\x20array';if(_0x19153f instanceof Date)return _0x3d9704(0x40e);if(_0x19153f instanceof Map)return _0x3d9704(0x7ce);if(Buffer[_0x3d9704(0x3c8)](_0x19153f))return _0x3d9704(0x575);return _0x3d9704(0x57c);}const _0x3295f4=(_0x438f8c,_0x2364a1,_0x4b8041)=>new _0x1b9e1d[(_0x930ef5(0x425))](_0x2364a1,_0x438f8c,_0x4b8041),_0x238526=(_0x5ca05c,_0x35b4ea,_0x187624)=>_0x3295f4(_0x930ef5(0x3aa),_0x5ca05c+_0x930ef5(0x147)+_0x35b4ea+_0x930ef5(0x114)+_0x1b095a(_0x187624),{'argument':_0x5ca05c,'expected':_0x35b4ea,'got':_0x1b095a(_0x187624)}),_0x496cdb=(_0xa4dde8,_0x3aec98)=>_0x3295f4(_0x930ef5(0x3bd),_0xa4dde8+_0x930ef5(0x2c1)+_0x1b095a(_0x3aec98),{'argument':_0xa4dde8,'expected':_0x930ef5(0x675),'got':_0x1b095a(_0x3aec98)}),_0x54829f=(_0x169a06,_0x38f485)=>_0x3295f4('INVALID_OPTIONS',_0x169a06+':\x20'+_0x38f485,{'argument':_0x169a06,'problem':_0x38f485});function _0x2d062c(_0x443234,_0x349c49=_0x930ef5(0x308)){const _0x4645e1=_0x930ef5;if(_0x443234===undefined)return{};if(_0x443234===null)throw _0x54829f(_0x349c49,_0x4645e1(0x136));return _0x443234;}return errors={'reclass':_0x2a353b,'NotImplementedNative':_0x3a83ef,'BY_CODE':_0x4c0358,'describe':_0x1b095a,'invalidArgument':_0x238526,'invalidTypeName':_0x496cdb,'invalidOptions':_0x54829f,'optionsArg':_0x2d062c,..._0x1b9e1d},errors;}var bridge_1,hasRequiredBridge;function requireBridge(){if(hasRequiredBridge)return bridge_1;hasRequiredBridge=0x1;const _0x1404d5=new Map(),_0x55c8e9=new Map();let _0x265be4=0x1;const _0x450b1a=new Map(),_0xdc93b0=new Map();let _0x53b0fe=0x1;const _0x43fb5b=new Map();let _0x26acd2=0x1;const _0x585ebe=new Map();function _0x29cc2f(_0x3df2e1,_0xf74e76=null){const _0x42707c=_0x458f,_0x43ca3e=_0x26acd2++;_0x43fb5b[_0x42707c(0x227)](_0x43ca3e,_0x3df2e1);if(_0xf74e76)_0x585ebe['set'](_0x43ca3e,_0xf74e76);return _0x43ca3e;}function _0x3cec64(_0xe68701,_0x142fcb){const _0x384db8=_0x458f,_0xada1eb=_0x43fb5b[_0x384db8(0x576)](_0xe68701),_0x457a8b=Array[_0x384db8(0x50c)][_0x384db8(0x1be)][_0x384db8(0x17f)](arguments,0x2),_0xe4b4dd=_0x302820=>_0x85822d(_0x302820,_0x585ebe['get'](_0xe68701));let _0x4a3d82=_0x457a8b;if(_0x142fcb===_0x384db8(0x6ae)||_0x142fcb===_0x384db8(0x415)||_0x142fcb===_0x384db8(0x62a)||_0x142fcb===_0x384db8(0x4d6)||_0x142fcb==='assertStartAllowed')_0x4a3d82=[_0xe4b4dd(_0x457a8b[0x0])];else{if(_0x142fcb===_0x384db8(0x2c4))_0x4a3d82=[_0x457a8b[0x0],_0x457a8b[0x1],_0xe4b4dd(_0x457a8b[0x2])];else{if(_0x142fcb===_0x384db8(0x3a1))_0x4a3d82=[_0xe4b4dd(_0x457a8b[0x0])];}}let _0x580517=_0xada1eb[_0x142fcb](..._0x4a3d82);if(_0x580517&&typeof _0x580517[_0x384db8(0x5eb)]===_0x384db8(0x5a8))_0x580517=_0x44313c(_0x580517);if(_0x142fcb==='start'){const _0x73e3e8=_0x580517&&typeof _0x580517==='object'?_0x29cc2f(_0x580517):_0x29cc2f({});return{'$api':_0x73e3e8};}return _0x580517===undefined?null:_0x580517;}function _0x85822d(_0x3bf862,_0x2b57fe){const _0x463ced=_0x458f;let _0x29ffa8=_0x544bd1[_0x463ced(0x576)](_0x3bf862['storeEnvPath']);const _0x57857f=_0x29ffa8&&_0x29ffa8[_0x463ced(0x5df)]||_0x2b57fe||_0x593fa5,_0xc31152=(_0x47c909,..._0x48f536)=>_0x57857f[_0x463ced(0x463)](_0x463ced(0x10f),null,_0x47c909,[_0x3bf862[_0x463ced(0x170)],_0x3bf862['name'],..._0x48f536],!![]);return{'okdb':_0x57857f,'key':_0x3bf862[_0x463ced(0x4fc)],'type':_0x3bf862[_0x463ced(0x170)],'name':_0x3bf862[_0x463ced(0x397)],get 'storeEnv'(){const _0x3cfe32=_0x463ced;if(!_0x29ffa8&&_0x57857f&&_0x57857f[_0x3cfe32(0x109)]&&_0x3bf862[_0x3cfe32(0x523)])_0x29ffa8=_0x57857f[_0x3cfe32(0x126)][_0x3cfe32(0x576)](_0x3bf862[_0x3cfe32(0x523)]);return _0x29ffa8;},'storeEnvName':_0x3bf862[_0x463ced(0x523)],'config':_0x3bf862[_0x463ced(0x2da)],'meta':_0x3bf862[_0x463ced(0x4eb)],'options':_0x3bf862[_0x463ced(0x308)],'emit':(_0x55b449,_0x439ce9)=>_0xc31152(_0x463ced(0x494),_0x55b449,_0x439ce9),'updateStatus':async(_0xf01071,_0x5d824a)=>_0xc31152(_0x463ced(0x6cc),_0xf01071,_0x5d824a==null?null:String(_0x5d824a&&_0x5d824a[_0x463ced(0xe9)]?_0x5d824a['message']:_0x5d824a)),'updateMeta':async _0x4ffbd6=>_0xc31152(_0x463ced(0x1c2),{'meta':_0x4ffbd6}),'updateConfig':async _0x2af25d=>_0xc31152(_0x463ced(0x1c2),{'config':_0x2af25d})};}function _0x298647(_0x4a8bce,_0x420918,_0x44291c){const _0x306aa3=_0x458f;if(_0x4a8bce===_0x306aa3(0x447)){const _0x56759d=_0x454aff(_0x420918);let _0x4303a3=_0x56759d(_0x44291c);if(_0x4303a3&&typeof _0x4303a3[_0x306aa3(0x5eb)]===_0x306aa3(0x5a8))_0x4303a3=_0x44313c(_0x4303a3);if(!_0x4303a3||typeof _0x4303a3['embed']!==_0x306aa3(0x5a8)){const {OKDBError:_0x4685aa}=requireErrors();throw new _0x4685aa('Embedder\x20factory\x20for\x20\x22'+(_0x44291c&&_0x44291c[_0x306aa3(0x170)])+_0x306aa3(0x757),_0x306aa3(0x133));}return _0x4303a3[_0x306aa3(0x2e6)]=_0x56759d[_0x306aa3(0x2e6)],{'$id':_0x29cc2f(_0x4303a3),'batch':typeof _0x4303a3[_0x306aa3(0x78a)]===_0x306aa3(0x5a8)};}const _0x59c69b=_0x43fb5b[_0x306aa3(0x576)](_0x420918);if(_0x4a8bce===_0x306aa3(0x2c7))return _0x43fb5b['delete'](_0x420918),_0x1c6d7a['delete'](_0x420918),null;if(!_0x59c69b)throw new Error(_0x306aa3(0xc9));if(typeof _0x59c69b[_0x4a8bce]!==_0x306aa3(0x5a8))return null;if(_0x4a8bce===_0x306aa3(0x4ea)||_0x4a8bce===_0x306aa3(0x78a)){const _0x4613b4=_0x4a8bce===_0x306aa3(0x78a)?_0x5b4222(_0x420918,_0x59c69b,_0x44291c):_0xb7c4a6(_0x420918,_0x59c69b,_0x4a8bce,_0x44291c);return _0x4a8bce==='embed'?_0x482a0f(_0x4613b4):_0x4613b4[_0x306aa3(0x25e)](_0x482a0f);}let _0xcf0643=_0x59c69b[_0x4a8bce]();if(_0xcf0643&&typeof _0xcf0643['then']===_0x306aa3(0x5a8))_0xcf0643=_0x44313c(_0xcf0643);return _0xcf0643===undefined?null:_0xcf0643;}function _0x482a0f(_0x2b1d28){const _0xf9b78a=_0x458f;return _0x2b1d28 instanceof Float32Array?_0x2b1d28:Array[_0xf9b78a(0x791)](_0x2b1d28);}function _0x33088d(_0x156946,_0x3cd403,_0x147282){const _0x3d37d1=_0x458f;if(_0x156946===_0x3d37d1(0x447)){const _0x3b7707=_0x454aff(_0x3cd403);let _0x6417f8=_0x3b7707(_0x147282['config']??{},{'dims':_0x147282[_0x3d37d1(0x6ac)],'dir':_0x147282[_0x3d37d1(0x789)]});if(_0x6417f8&&typeof _0x6417f8[_0x3d37d1(0x5eb)]===_0x3d37d1(0x5a8))_0x6417f8=_0x44313c(_0x6417f8);for(const _0x4728b4 of[_0x3d37d1(0x63f),_0x3d37d1(0x5b5),_0x3d37d1(0x228),'search',_0x3d37d1(0x650)]){if(!_0x6417f8||typeof _0x6417f8[_0x4728b4]!==_0x3d37d1(0x5a8)){const {OKDBError:_0x5e6766}=requireErrors();throw new _0x5e6766('Algorithm\x20factory\x20must\x20return\x20an\x20object\x20with\x20'+_0x4728b4+'()',_0x3d37d1(0x5e9),{'method':_0x4728b4});}}return{'$id':_0x29cc2f(_0x6417f8)};}const _0x2690d5=_0x43fb5b[_0x3d37d1(0x576)](_0x3cd403);if(_0x156946===_0x3d37d1(0x2c7))return _0x43fb5b[_0x3d37d1(0x32d)](_0x3cd403),null;if(!_0x2690d5)throw new Error(_0x3d37d1(0x433));const _0x319952=_0x233254=>_0x233254?_0x233254['map'](_0x5b2da0=>({'key':_0x5b2da0['key'],'vector':Float32Array[_0x3d37d1(0x791)](_0x5b2da0[_0x3d37d1(0x625)])})):null;let _0x4315fc;switch(_0x156946){case _0x3d37d1(0x63f):case _0x3d37d1(0x4d4):{const _0x57a411=_0x319952(_0x147282);_0x4315fc=_0x2690d5[_0x156946](_0x57a411?async()=>_0x57a411:undefined);break;}case _0x3d37d1(0x5b5):_0x4315fc=_0x2690d5[_0x3d37d1(0x5b5)](_0x147282[0x0],Float32Array[_0x3d37d1(0x791)](_0x147282[0x1]),_0x147282[0x2]??undefined);break;case _0x3d37d1(0x228):_0x4315fc=_0x2690d5[_0x3d37d1(0x228)](_0x147282);break;case _0x3d37d1(0x33f):_0x4315fc=_0x2690d5[_0x3d37d1(0x33f)](Float32Array[_0x3d37d1(0x791)](_0x147282['query']),_0x147282[_0x3d37d1(0x726)]??{});break;case _0x3d37d1(0x5d8):_0x4315fc=typeof _0x2690d5[_0x3d37d1(0x5d8)]==='function'?_0x2690d5[_0x3d37d1(0x5d8)](_0x147282??undefined):![];break;case _0x3d37d1(0x415):_0x4315fc=typeof _0x2690d5[_0x3d37d1(0x415)]===_0x3d37d1(0x5a8)?_0x2690d5[_0x3d37d1(0x415)]():undefined;break;case _0x3d37d1(0x67f):_0x4315fc=typeof _0x2690d5[_0x3d37d1(0x67f)]===_0x3d37d1(0x5a8)?_0x2690d5['tick']():undefined;break;case _0x3d37d1(0x650):return Number(_0x2690d5[_0x3d37d1(0x650)]());case _0x3d37d1(0x6b7):return(typeof _0x2690d5[_0x3d37d1(0x6b7)]===_0x3d37d1(0x5a8)?_0x2690d5[_0x3d37d1(0x6b7)]():null)??{};default:throw new Error(_0x3d37d1(0x57f)+_0x156946);}if(_0x4315fc&&typeof _0x4315fc[_0x3d37d1(0x5eb)]==='function')_0x4315fc=_0x44313c(_0x4315fc);return _0x4315fc===undefined?null:_0x4315fc;}function _0x49298c(_0x5b2f5c,_0x123d08,_0x244cfe){const _0x2df2a7=_0x458f;if(_0x5b2f5c===_0x2df2a7(0x447)){const _0x3cbfe2=_0x454aff(_0x123d08);let _0x474740=_0x3cbfe2(_0x244cfe);if(_0x474740&&typeof _0x474740[_0x2df2a7(0x5eb)]===_0x2df2a7(0x5a8))_0x474740=_0x44313c(_0x474740);if(!_0x474740)return null;const _0x3718b3=[_0x2df2a7(0x772),_0x2df2a7(0xc7),_0x2df2a7(0x576),_0x2df2a7(0x650),_0x2df2a7(0x18a),_0x2df2a7(0x7be)][_0x2df2a7(0x127)](_0x33064f=>typeof _0x474740[_0x33064f]==='function');return{'$id':_0x29cc2f(_0x474740),'has':_0x3718b3};}const _0x5bd013=_0x43fb5b[_0x2df2a7(0x576)](_0x123d08);if(_0x5b2f5c===_0x2df2a7(0x2c7))return _0x43fb5b[_0x2df2a7(0x32d)](_0x123d08),null;if(!_0x5bd013)throw new Error(_0x2df2a7(0x155));const _0x338a8e=_0x1698eb=>Float32Array['from'](_0x1698eb);let _0x2c46a6;switch(_0x5b2f5c){case _0x2df2a7(0x540):_0x2c46a6=_0x5bd013[_0x2df2a7(0x540)](_0x244cfe[0x0],_0x338a8e(_0x244cfe[0x1]));break;case _0x2df2a7(0x228):_0x2c46a6=_0x5bd013[_0x2df2a7(0x228)](_0x244cfe);break;case _0x2df2a7(0x229):{_0x2c46a6=typeof _0x5bd013['getAll']===_0x2df2a7(0x5a8)?_0x5bd013[_0x2df2a7(0x229)]():[];if(_0x2c46a6&&typeof _0x2c46a6[_0x2df2a7(0x5eb)]===_0x2df2a7(0x5a8))_0x2c46a6=_0x44313c(_0x2c46a6);return Array['from'](_0x2c46a6??[],_0x26784e=>({'key':_0x26784e[_0x2df2a7(0x4fc)],'vector':Array[_0x2df2a7(0x791)](_0x26784e[_0x2df2a7(0x625)])}));}case _0x2df2a7(0x772):_0x2c46a6=_0x5bd013['write'](_0x244cfe[_0x2df2a7(0x277)][_0x2df2a7(0x25e)](_0x4be782=>({'key':_0x4be782['key'],'vector':_0x338a8e(_0x4be782['vector'])})),_0x244cfe[_0x2df2a7(0x1f4)]);break;case _0x2df2a7(0xc7):_0x2c46a6=_0x5bd013[_0x2df2a7(0xc7)](_0x244cfe??undefined);if(_0x2c46a6&&typeof _0x2c46a6[_0x2df2a7(0x5eb)]==='function')_0x2c46a6=_0x44313c(_0x2c46a6);return Array[_0x2df2a7(0x791)](_0x2c46a6??[]);case _0x2df2a7(0x576):{_0x2c46a6=_0x5bd013['get'](_0x244cfe);if(_0x2c46a6&&typeof _0x2c46a6[_0x2df2a7(0x5eb)]===_0x2df2a7(0x5a8))_0x2c46a6=_0x44313c(_0x2c46a6);return _0x2c46a6==null?null:Array[_0x2df2a7(0x791)](_0x2c46a6);}case _0x2df2a7(0x650):return Number(_0x5bd013['count']());case _0x2df2a7(0x18a):_0x2c46a6=_0x5bd013[_0x2df2a7(0x18a)]();break;case _0x2df2a7(0x7be):return _0x5bd013['stats']()??null;default:throw new Error(_0x2df2a7(0x49b)+_0x5b2f5c);}if(_0x2c46a6&&typeof _0x2c46a6[_0x2df2a7(0x5eb)]===_0x2df2a7(0x5a8))_0x2c46a6=_0x44313c(_0x2c46a6);return _0x2c46a6===undefined?null:_0x2c46a6;}const _0x2ab15b=new Map();function _0xb7c4a6(_0x58bfa9,_0x35cfbf,_0x591cf1,_0x2830ff){const _0x45483b=_0x458f,_0x12b4f4=_0x58bfa9+'\x00'+_0x591cf1+'\x00'+JSON[_0x45483b(0x745)](_0x2830ff),_0x1c2e5c=_0x2ab15b['get'](_0x12b4f4);if(_0x1c2e5c){if(_0x1c2e5c[_0x45483b(0xd2)]===_0x45483b(0x465))throw _0x430860();_0x2ab15b[_0x45483b(0x32d)](_0x12b4f4);if(_0x1c2e5c[_0x45483b(0xd2)]===_0x45483b(0x3c0))throw _0x1c2e5c[_0x45483b(0x27a)];return _0x1c2e5c[_0x45483b(0x27a)];}const _0x3365e2=_0x35cfbf[_0x591cf1](_0x2830ff);if(!_0x3365e2||typeof _0x3365e2['then']!==_0x45483b(0x5a8))return _0x3365e2;const _0x4a5e91={'state':_0x45483b(0x465),'value':undefined};_0x3365e2[_0x45483b(0x5eb)](_0x3c6f8a=>{const _0x630b32=_0x45483b;_0x4a5e91['state']='ok',_0x4a5e91[_0x630b32(0x27a)]=_0x3c6f8a;if(_0x2ab15b[_0x630b32(0x576)](_0x12b4f4)===_0x4a5e91)_0x53774b(_0x35cfbf);},_0x2634bf=>{const _0x46adbd=_0x45483b;_0x4a5e91[_0x46adbd(0xd2)]='err',_0x4a5e91['value']=_0x2634bf;if(_0x2ab15b['get'](_0x12b4f4)===_0x4a5e91)_0x53774b(_0x35cfbf);});for(let _0x3f921a=0x0;_0x3f921a<0x64&&_0x4a5e91[_0x45483b(0xd2)]===_0x45483b(0x465);_0x3f921a++)process[_0x45483b(0xfe)]();if(_0x4a5e91[_0x45483b(0xd2)]==='ok')return _0x4a5e91['value'];if(_0x4a5e91[_0x45483b(0xd2)]==='err')throw _0x4a5e91['value'];_0x2ab15b[_0x45483b(0x227)](_0x12b4f4,_0x4a5e91);throw _0x430860();}const _0x1c6d7a=new Map(),_0x13dd16=0xa*0x3c*0x3e8;function _0x5b4222(_0x431aa0,_0x540963,_0x4e41eb){const _0x14f9f0=_0x458f,_0xf85a17=Array[_0x14f9f0(0x28e)](_0x4e41eb)?_0x4e41eb:Array[_0x14f9f0(0x791)](_0x4e41eb??[]);let _0x28b894=_0x1c6d7a['get'](_0x431aa0);if(!_0x28b894)_0x1c6d7a[_0x14f9f0(0x227)](_0x431aa0,_0x28b894=new Map());const _0x57ece8=Date[_0x14f9f0(0x55e)]();for(const [_0x588410,_0x1dc0c8]of _0x28b894)if(_0x1dc0c8['req'][_0x14f9f0(0xd2)]!==_0x14f9f0(0x465)&&_0x57ece8-_0x1dc0c8[_0x14f9f0(0x189)]['at']>_0x13dd16)_0x28b894[_0x14f9f0(0x32d)](_0x588410);const _0x1f0087=_0xf85a17[_0x14f9f0(0x25e)](_0x3564a0=>JSON[_0x14f9f0(0x745)](_0x3564a0));let _0x486b9b=![];const _0x2fc67b=[],_0x17b86f=new Set();for(let _0x3bc3cb=0x0;_0x3bc3cb<_0x1f0087[_0x14f9f0(0x5f6)];_0x3bc3cb++){const _0x505143=_0x28b894[_0x14f9f0(0x576)](_0x1f0087[_0x3bc3cb]);if(!_0x505143)!_0x17b86f['has'](_0x1f0087[_0x3bc3cb])&&(_0x17b86f['add'](_0x1f0087[_0x3bc3cb]),_0x2fc67b[_0x14f9f0(0x7f5)](_0x3bc3cb));else{if(_0x505143[_0x14f9f0(0x189)][_0x14f9f0(0xd2)]===_0x14f9f0(0x465))_0x486b9b=!![];else{if(_0x505143[_0x14f9f0(0x189)][_0x14f9f0(0xd2)]==='err'){const _0xb6a909=_0x505143['req'][_0x14f9f0(0x27a)];for(const [_0x2c0e03,_0x517e61]of _0x28b894)if(_0x517e61['req']===_0x505143['req'])_0x28b894[_0x14f9f0(0x32d)](_0x2c0e03);throw _0xb6a909;}}}}if(_0x486b9b)throw _0x430860();if(_0x2fc67b['length']){const _0x516444=_0x2fc67b[_0x14f9f0(0x25e)](_0x4f6617=>_0xf85a17[_0x4f6617]),_0x516056=_0x540963['embedBatch'](_0x516444),_0x4a5d20={'state':_0x14f9f0(0x465),'value':undefined,'at':0x0},_0x534313=(_0xf0b60,_0x1892cf)=>{const _0x27b800=_0x14f9f0;_0x4a5d20[_0x27b800(0xd2)]=_0xf0b60,_0x4a5d20[_0x27b800(0x27a)]=_0x1892cf,_0x4a5d20['at']=Date[_0x27b800(0x55e)]();};if(!_0x516056||typeof _0x516056['then']!==_0x14f9f0(0x5a8))_0x534313('ok',_0x516056);else{let _0x57c749=!![];_0x516056[_0x14f9f0(0x5eb)](_0x5a2ab1=>{_0x534313('ok',_0x5a2ab1);if(!_0x57c749)_0x53774b(_0x540963);},_0x5a57fa=>{const _0xe70440=_0x14f9f0;_0x534313(_0xe70440(0x3c0),_0x5a57fa);if(!_0x57c749)_0x53774b(_0x540963);});for(let _0xb85514=0x0;_0xb85514<0x64&&_0x4a5d20[_0x14f9f0(0xd2)]===_0x14f9f0(0x465);_0xb85514++)process[_0x14f9f0(0xfe)]();_0x57c749=![];}for(let _0x12bc81=0x0;_0x12bc81<_0x2fc67b[_0x14f9f0(0x5f6)];_0x12bc81++)_0x28b894['set'](_0x1f0087[_0x2fc67b[_0x12bc81]],{'req':_0x4a5d20,'index':_0x12bc81});if(_0x4a5d20[_0x14f9f0(0xd2)]===_0x14f9f0(0x3c0)){for(const _0x4200ae of _0x2fc67b)_0x28b894['delete'](_0x1f0087[_0x4200ae]);throw _0x4a5d20['value'];}if(_0x4a5d20[_0x14f9f0(0xd2)]===_0x14f9f0(0x465))throw _0x430860();}const _0x429844=_0x1f0087['map'](_0x440839=>{const _0x454ca3=_0x14f9f0,_0x1dfd62=_0x28b894[_0x454ca3(0x576)](_0x440839),_0x2e662a=_0x1dfd62[_0x454ca3(0x189)][_0x454ca3(0x27a)];return _0x2e662a?_0x2e662a[_0x1dfd62[_0x454ca3(0x67a)]]:undefined;});for(const _0x1bb4f8 of _0x1f0087)_0x28b894[_0x14f9f0(0x32d)](_0x1bb4f8);if(!_0x28b894[_0x14f9f0(0x691)])_0x1c6d7a[_0x14f9f0(0x32d)](_0x431aa0);return _0x429844;}function _0x430860(){const _0x36d99d=_0x458f;return Object[_0x36d99d(0x3eb)](new Error(_0x36d99d(0x354)),{'code':_0x36d99d(0x1c1)});}function _0x53774b(_0x4dd02c){const _0x1b480d=_0x458f;_0x52d777();try{const _0xd0a18f=_0x4dd02c[_0x1b480d(0x2e6)]||_0x593fa5;if(_0xd0a18f&&_0xd0a18f[_0x1b480d(0x109)])_0xd0a18f[_0x1b480d(0x463)](_0x1b480d(0x2b9),null,'emit',[_0x1b480d(0x2db),{}],!![]);}catch{}}function _0x24d5aa(_0x466973,_0x37c68d,_0x3eec3e){const _0x5155f4=_0x458f,_0x9549e0=_0x43fb5b[_0x5155f4(0x576)](_0x466973);if(!_0x9549e0||typeof _0x9549e0[_0x37c68d]!=='function')return{'__absent':!![]};let _0x3fee84=_0x9549e0[_0x37c68d](...Array[_0x5155f4(0x28e)](_0x3eec3e)?_0x3eec3e:[]);if(_0x3fee84&&typeof _0x3fee84[_0x5155f4(0x5eb)]==='function')_0x3fee84=_0x44313c(_0x3fee84);return{'value':_0x3fee84===undefined?null:_0x3fee84};}const _0x1cd4b0=new Map();let _0x4f098e=0x1;const _0x544bd1=new Map(),_0xc69f28=new Map();function _0x52d684(_0x2579d1,_0x337eb4=null){const _0x1dde20=_0x458f,_0x1981a0=_0x4f098e++;_0x1cd4b0[_0x1dde20(0x227)](_0x1981a0,_0x2579d1);if(_0x337eb4)_0xc69f28[_0x1dde20(0x227)](_0x1981a0,_0x337eb4);return _0x1981a0;}function _0xbcc2f1(_0x355f2a){const _0x52e722=_0x458f;for(const [_0x34fc58,_0x30c113]of _0x544bd1)if(_0x30c113&&_0x30c113['okdb']===_0x355f2a)_0x544bd1[_0x52e722(0x32d)](_0x34fc58);for(const [_0x8a3b8b,_0x3e8de3]of _0x585ebe)if(_0x3e8de3===_0x355f2a)_0x585ebe[_0x52e722(0x32d)](_0x8a3b8b);for(const [_0x4c194b,_0x1be232]of _0xc69f28)_0x1be232===_0x355f2a&&(_0xc69f28[_0x52e722(0x32d)](_0x4c194b),_0x1cd4b0[_0x52e722(0x32d)](_0x4c194b));if(_0x593fa5===_0x355f2a)_0x593fa5=null;}function _0x498a0b(_0x459051,_0x50f0c3){_0x544bd1['set'](_0x459051,_0x50f0c3);}function _0x326ec9(_0x289dcc){const _0x519eb0=_0x458f;if(_0x289dcc&&typeof _0x289dcc===_0x519eb0(0x57c)&&Object[_0x519eb0(0xc7)](_0x289dcc)[_0x519eb0(0x5f6)]===0x1&&_0x289dcc[_0x519eb0(0x4af)]!==undefined)return _0x1cd4b0[_0x519eb0(0x576)](_0x289dcc[_0x519eb0(0x4af)]);return _0x289dcc;}function _0x44313c(_0x2efd2f){const _0xccf85a=_0x458f;let _0x1b00df=![],_0x3a7bc1=![],_0x24fb1d;_0x2efd2f[_0xccf85a(0x5eb)](_0x24da9f=>{_0x1b00df=!![],_0x24fb1d=_0x24da9f;},_0x27ac77=>{_0x1b00df=!![],_0x3a7bc1=!![],_0x24fb1d=_0x27ac77;});for(let _0xd24ec2=0x0;_0xd24ec2<0x2710&&!_0x1b00df;_0xd24ec2++)process[_0xccf85a(0xfe)]();if(!_0x1b00df)return _0x2efd2f[_0xccf85a(0x5eb)](undefined,_0xfc1ff4=>{try{process['emitWarning']('okdb-node:\x20a\x20background\x20async\x20handler\x20rejected:\x20'+(_0xfc1ff4&&_0xfc1ff4['message']?_0xfc1ff4['message']:_0xfc1ff4));}catch{}}),undefined;if(_0x3a7bc1)throw _0x24fb1d;return _0x24fb1d;}function _0x1644d1(_0x2470d3,_0x220658,_0x1c8ff6){const _0x4b3d66=_0x458f,_0x165e79=_0x454aff(_0x2470d3),_0x13475b=_0x544bd1[_0x4b3d66(0x576)](_0x220658);try{const _0x4afd18=_0x165e79(_0x1c8ff6,{'okdb':_0x13475b&&_0x13475b[_0x4b3d66(0x5df)],'env':_0x13475b});if(_0x4afd18&&typeof _0x4afd18['then']==='function')_0x44313c(_0x4afd18);}catch(_0x22bd52){if(_0x22bd52&&_0x22bd52[_0x4b3d66(0x5a9)]===!![]&&_0x22bd52[_0x4b3d66(0x649)]!==_0x4b3d66(0x65a)){const _0x4e5320=new Error(_0x22bd52[_0x4b3d66(0xe9)]);_0x4e5320['code']=_0x4b3d66(0x65a);throw _0x4e5320;}throw _0x22bd52;}}const _0x54fccb=new Map();function _0x52ae8b(_0x22b7ee,_0x28ac76,_0x4b9edc,_0x4c8477,_0x5b5187,_0x4099f9){const _0x3cee98=_0x458f,_0xb51b15=_0x454aff(_0x22b7ee),_0x2d5cc4=(_0x544bd1['get'](_0x4099f9)||{})[_0x3cee98(0x5df)]||_0x593fa5,_0x5c25c4=new AbortController(),_0x1d5019=(_0x1d30b7,..._0x58d244)=>_0x2d5cc4[_0x3cee98(0x463)](_0x3cee98(0x30b),_0x3cee98(0x132),_0x1d30b7,_0x58d244,![]),_0x2a5594={'okdb':_0x2d5cc4,'env':_0x544bd1[_0x3cee98(0x576)](_0x4099f9)||null,'job':_0x4c8477,'jobId':_0x5b5187,'signal':_0x5c25c4[_0x3cee98(0x536)],'heartbeat':()=>_0x1d5019(_0x3cee98(0x4f3),_0x4b9edc),'markProgress':_0x4dd3bb=>_0x1d5019('ctxProgress',_0x4b9edc,_0x4dd3bb),'log':(_0x4fcd0c,_0x1814d2)=>_0x1d5019(_0x3cee98(0x713),_0x4b9edc,_0x4fcd0c,_0x1814d2)};_0x54fccb[_0x3cee98(0x227)](_0x4b9edc,{'ctrl':_0x5c25c4,'call':_0x1d5019});const _0x4d6416=()=>{_0x54fccb['delete'](_0x4b9edc);try{_0x1d5019('ctxRelease',_0x4b9edc);}catch{}};let _0x2a1e94;try{_0x2a1e94=_0xb51b15(_0x28ac76,_0x2a5594);}catch(_0x19581c){_0x4d6416();throw _0x19581c;}if(_0x2a1e94&&typeof _0x2a1e94['then']===_0x3cee98(0x5a8)){const _0x11b611=_0x43b85c(_0x2a1e94);return _0x2a1e94[_0x3cee98(0x5eb)](_0x4d6416,_0x4d6416),{'$token':_0x11b611};}return _0x4d6416(),_0x2a1e94;}function _0x55b543(){const _0x1870d9=_0x458f;for(const [_0x4b7dc7,_0x4a4a0d]of _0x54fccb){if(_0x4a4a0d['ctrl'][_0x1870d9(0x536)][_0x1870d9(0x1d2)])continue;let _0xd19980;try{_0xd19980=_0x4a4a0d[_0x1870d9(0x17f)](_0x1870d9(0x24a),_0x4b7dc7);}catch{continue;}if(_0xd19980&&_0xd19980[_0x1870d9(0x1d2)]){const {OKDBError:_0x2a83d9}=requireErrors();_0x4a4a0d[_0x1870d9(0x5b7)][_0x1870d9(0x108)](new _0x2a83d9(_0xd19980[_0x1870d9(0xe9)],_0xd19980[_0x1870d9(0x649)]));}}}let _0x593fa5=null;function _0x5e02e4(_0x247872){_0x593fa5=_0x247872;}function _0x311d81(_0x2b7b19,_0x46c9e0,_0x5d414c,_0x19d837,_0x3ebcb7,_0x39f3cc,_0x2b7d7c){const _0x395caf=_0x458f,_0x45b33d=_0x454aff(_0x2b7b19),_0xefb21d=_0x544bd1[_0x395caf(0x576)](_0x5d414c);try{const _0x403bc3=_0x46c9e0?_0x45b33d(_0x3ebcb7,_0x39f3cc):_0x45b33d({'env':_0xefb21d,'okdb':_0xefb21d&&_0xefb21d[_0x395caf(0x5df)],'payload':_0x326ec9(_0x19d837)},_0x3ebcb7,_0x39f3cc);if(_0x403bc3&&typeof _0x403bc3['then']===_0x395caf(0x5a8)){if(_0x39f3cc&&_0x39f3cc[_0x395caf(0x667)]===_0x395caf(0x396))_0x403bc3['then'](undefined,()=>{});else{if(_0x2b7d7c){const _0x47a51d=_0x2329e4(_0x403bc3);if(_0x47a51d===0x0)return null;return{'$token':_0x47a51d};}else _0x44313c(_0x403bc3);}}}catch(_0x5149b1){if(_0x5149b1&&_0x5149b1[_0x395caf(0x5a9)]===!![]&&_0x5149b1[_0x395caf(0x649)]!==_0x395caf(0x65a)){const _0x480585=new Error(_0x5149b1['message']);_0x480585[_0x395caf(0x649)]=_0x395caf(0x65a);throw _0x480585;}throw _0x5149b1;}return null;}function _0x2329e4(_0x280a82){const _0x20baed=_0x458f;let _0x1627b3='pending',_0x498c19;_0x280a82[_0x20baed(0x5eb)](_0x39b614=>{_0x1627b3='ok',_0x498c19=_0x39b614;},_0x36db83=>{const _0x4a48e3=_0x20baed;_0x1627b3=_0x4a48e3(0x3c0),_0x498c19=_0x36db83;});for(let _0x106598=0x0;_0x106598<0x64&&_0x1627b3==='pending';_0x106598++)process[_0x20baed(0xfe)]();if(_0x1627b3==='ok')return 0x0;const _0x34309d=_0x53b0fe++,_0x4ca307={'state':_0x1627b3,'value':_0x498c19};_0xdc93b0['set'](_0x34309d,_0x4ca307);if(_0x1627b3===_0x20baed(0x465))_0x280a82[_0x20baed(0x5eb)](_0x113621=>{const _0x3db7ec=_0x20baed;_0x4ca307[_0x3db7ec(0xd2)]='ok',_0x4ca307[_0x3db7ec(0x27a)]=_0x113621,_0x52d777();},_0x22c2d3=>{const _0x1153cf=_0x20baed;_0x4ca307[_0x1153cf(0xd2)]=_0x1153cf(0x3c0),_0x4ca307[_0x1153cf(0x27a)]=_0x22c2d3,_0x52d777();});return _0x34309d;}function _0x5c3c84(_0xe30a92){const _0x3017d9=_0x458f;let _0x20054b=_0x55c8e9[_0x3017d9(0x576)](_0xe30a92);return _0x20054b===undefined&&(_0x20054b=_0x265be4++,_0x55c8e9['set'](_0xe30a92,_0x20054b),_0x1404d5[_0x3017d9(0x227)](_0x20054b,{'fn':_0xe30a92,'refs':0x0})),_0x1404d5['get'](_0x20054b)[_0x3017d9(0x265)]++,_0x20054b;}function _0x4c81ee(_0x545192){const _0x361297=_0x458f,_0x12150c=_0x1404d5[_0x361297(0x576)](_0x545192);if(!_0x12150c)return;--_0x12150c[_0x361297(0x265)]<=0x0&&(_0x1404d5[_0x361297(0x32d)](_0x545192),_0x55c8e9[_0x361297(0x32d)](_0x12150c['fn']));}function _0x454aff(_0x2d84c0){const _0x33efad=_0x458f,_0x24143d=_0x1404d5['get'](_0x2d84c0);if(!_0x24143d)throw new Error(_0x33efad(0x1f6)+_0x2d84c0);return _0x24143d['fn'];}function _0x43b85c(_0x76ecd0){const _0x47888f=_0x458f;if(_0x76ecd0&&typeof _0x76ecd0['then']===_0x47888f(0x5a8)){const _0x35ab9e=_0x53b0fe++,_0x733831={'state':_0x47888f(0x465),'value':undefined};return _0xdc93b0[_0x47888f(0x227)](_0x35ab9e,_0x733831),_0x76ecd0[_0x47888f(0x5eb)](_0x31a4de=>{const _0xe608ea=_0x47888f;_0x733831['state']='ok',_0x733831[_0xe608ea(0x27a)]=_0x31a4de,_0x52d777();},_0x4fa5d2=>{const _0x5627f2=_0x47888f;_0x733831[_0x5627f2(0xd2)]='err',_0x733831[_0x5627f2(0x27a)]=_0x4fa5d2,_0x52d777();}),_0x35ab9e;}return 0x0;}let _0x3f0ed3=()=>{},_0xd1fe2a=null;function _0x488bd2(_0x1ff683,_0x39792d=null){_0x3f0ed3=_0x1ff683,_0xd1fe2a=_0x39792d;}function _0x32d2ad(_0x13e3c0){return _0xd1fe2a===_0x13e3c0;}function _0x52d777(){_0x3f0ed3();}function _0x3d9636(_0x520534){const _0x21e896=_0x458f,_0x20ec21=_0xdc93b0[_0x21e896(0x576)](_0x520534);if(!_0x20ec21)return{'state':_0x21e896(0x3c0),'error':{'message':_0x21e896(0x1a8)}};if(_0x20ec21[_0x21e896(0xd2)]===_0x21e896(0x465))return{'state':_0x21e896(0x465)};_0xdc93b0['delete'](_0x520534);if(_0x20ec21[_0x21e896(0xd2)]==='ok')return{'state':'ok','value':_0x20ec21[_0x21e896(0x27a)]};const _0x568288=_0x20ec21[_0x21e896(0x27a)];return{'state':_0x21e896(0x3c0),'error':{'message':_0x568288&&_0x568288[_0x21e896(0xe9)]!=null?String(_0x568288[_0x21e896(0xe9)]):String(_0x568288),'stack':_0x568288&&_0x568288[_0x21e896(0x709)],'code':_0x568288&&_0x568288[_0x21e896(0x649)],'status':_0x568288&&typeof _0x568288[_0x21e896(0x26e)]==='number'?_0x568288[_0x21e896(0x26e)]:undefined,'hold':!!(_0x568288&&_0x568288[_0x21e896(0x5a9)]===!![])}};}function _0x390362(_0x4ec3a7,_0x4602f5){const _0x1c09c4=_0x458f;_0x450b1a[_0x1c09c4(0x227)](_0x4ec3a7,_0x4602f5);}function _0x3d23d0(_0x2f1f53){const _0xfb03d1=_0x458f;_0x450b1a[_0xfb03d1(0x32d)](_0x2f1f53);}let _0x296317=0x0;function _0x48aef6(){return _0x296317>0x0;}function _0x1f789c(){const _0x3e1b59=_0x458f;_0x296317++;try{return _0x123991[_0x3e1b59(0x36b)](undefined,arguments);}finally{_0x296317--;}}function _0x123991(_0x408331,_0xe672d3,_0x280007,_0x2c9e4d,_0x47a382,_0xcb9bc2){const _0x48494d=_0x458f;switch(_0x408331){case _0x48494d(0x6f9):return _0x5c3c84(_0xe672d3);case _0x48494d(0x349):return _0x4c81ee(_0xe672d3);case _0x48494d(0x17f):{const _0x253a3b=Array['prototype'][_0x48494d(0x1be)][_0x48494d(0x17f)](arguments,0x2),_0x5211e6=_0x454aff(_0xe672d3)[_0x48494d(0x36b)](undefined,_0x253a3b);return _0x5211e6&&typeof _0x5211e6[_0x48494d(0x5eb)]===_0x48494d(0x5a8)?_0x44313c(_0x5211e6):_0x5211e6;}case _0x48494d(0x3b1):{const _0x5dfdea=Array[_0x48494d(0x50c)][_0x48494d(0x1be)][_0x48494d(0x17f)](arguments,0x2),_0x1af30d=_0x454aff(_0xe672d3)['apply'](undefined,_0x5dfdea);if(_0x1af30d&&typeof _0x1af30d[_0x48494d(0x5eb)]===_0x48494d(0x5a8))return{'$token':_0x43b85c(_0x1af30d)};return{'$value':_0x1af30d===undefined?null:_0x1af30d,'$undef':_0x1af30d===undefined};}case _0x48494d(0x3f1):{const _0x3bc48f=_0x450b1a[_0x48494d(0x576)](_0xe672d3);if(_0x3bc48f)_0x3bc48f[_0x48494d(0x54e)](_0x280007,_0x2c9e4d);return undefined;}case'log':{const _0x9aba68=_0x450b1a[_0x48494d(0x576)](_0xe672d3);if(_0x9aba68)_0x9aba68['_log'](_0x280007);return undefined;}case _0x48494d(0x5ab):return _0x311d81(_0xe672d3,_0x280007,_0x2c9e4d,_0x47a382,_0xcb9bc2,arguments[0x6],arguments[0x7]);case _0x48494d(0x42b):return _0x1644d1(_0xe672d3,_0x280007,_0x2c9e4d);case _0x48494d(0x264):return _0x52ae8b(_0xe672d3,_0x280007,_0x2c9e4d,_0x47a382,_0xcb9bc2,arguments[0x6]);case _0x48494d(0x5ee):return _0x3cec64['apply'](null,Array[_0x48494d(0x50c)][_0x48494d(0x1be)][_0x48494d(0x17f)](arguments,0x1));case'api':return _0x24d5aa(_0xe672d3,_0x280007,_0x2c9e4d);case _0x48494d(0x4ef):return _0x3d9636(_0xe672d3);case _0x48494d(0x3f0):{const _0x13f389=((async()=>{const _0x2a8b0d=_0x48494d,_0x108d20=await globalThis['fetch'](_0xe672d3);if(!_0x108d20['ok']){const _0x332f40=new Error(_0x2a8b0d(0x656)+_0x108d20[_0x2a8b0d(0x26e)]);_0x332f40['code']='HTTP_ERROR';throw _0x332f40;}return _0x108d20[_0x2a8b0d(0x1d7)]();})());return _0x44313c(_0x13f389)??null;}case _0x48494d(0x142):return _0x298647(_0xe672d3,_0x280007,_0x2c9e4d);case'alg':return _0x33088d(_0xe672d3,_0x280007,_0x2c9e4d);case _0x48494d(0x613):return _0x49298c(_0xe672d3,_0x280007,_0x2c9e4d);default:throw new Error(_0x48494d(0xf2)+_0x408331);}}return bridge_1={'inNativeCall':_0x48aef6,'regObject':_0x29cc2f,'checkSignals':_0x55b543,'setCurrentDb':_0x5e02e4,'forgetDb':_0xbcc2f1,'storePayload':_0x52d684,'registerEnv':_0x498a0b,'resolvePayload':_0x326ec9,'bridge':_0x1f789c,'reg':_0x5c3c84,'unreg':_0x4c81ee,'fnOf':_0x454aff,'track':_0x43b85c,'resolve':_0x3d9636,'registerTarget':_0x390362,'unregisterTarget':_0x3d23d0,'setKick':_0x488bd2,'kickOwnedBy':_0x32d2ad},bridge_1;}var writebatch,hasRequiredWritebatch;function requireWritebatch(){const _0x1ed42e=_0x5186d4;if(hasRequiredWritebatch)return writebatch;hasRequiredWritebatch=0x1;const {reclass:_0x1ac4c4}=requireErrors(),_0x216326=requireBridge(),_0x376a0c=new Map();let _0x1ea0b3=null;function _0xca01de(_0x59f222){if(_0x1ea0b3)return;_0x1ea0b3=_0x59f222,_0x59f222['setFlushNotify'](_0x1acc18);}function _0x1acc18(){const _0x46e4b0=_0x458f,_0x1626c8=_0x1ea0b3[_0x46e4b0(0x3e5)]();for(const _0x1cac5e of _0x1626c8){const _0x2caddd=_0x376a0c[_0x46e4b0(0x576)](_0x1cac5e);_0x2caddd&&(_0x376a0c[_0x46e4b0(0x32d)](_0x1cac5e),_0x2caddd());}}function _0x147a7e(_0x4f1046,_0x446575){const _0xeac246=_0x458f;_0x376a0c[_0xeac246(0x227)](_0x4f1046,_0x446575);}class _0x3bbc55{constructor(_0x5b1fd4){this['db']=_0x5b1fd4,this['queue']=[],this['scheduled']=![],this['inBatch']=![],this['inflight']=new Set();}[_0x1ed42e(0x7a4)](_0x253b28,_0x31f80b,_0x687ecd,_0x25b67b){const _0x3533d0=_0x1ed42e;if(_0x216326['inNativeCall']())try{return Promise[_0x3533d0(0x4ef)](this['db'][_0x3533d0(0x463)](_0x253b28,_0x31f80b,_0x687ecd,_0x25b67b));}catch(_0x464354){return Promise['reject'](_0x464354);}const _0x588de9=new Promise((_0x360487,_0x211218)=>{const _0x3afb44=_0x3533d0;this[_0x3afb44(0x30b)]['push']({'item':[_0x253b28,_0x31f80b,_0x687ecd,_0x25b67b],'resolve':_0x360487,'reject':_0x211218});});this['inflight'][_0x3533d0(0x5b5)](_0x588de9);const _0x17395f=()=>this['inflight'][_0x3533d0(0x32d)](_0x588de9);return _0x588de9[_0x3533d0(0x5eb)](_0x17395f,_0x17395f),!this['scheduled']&&(this['scheduled']=!![],setImmediate(()=>{const _0x5a8ef3=_0x3533d0;this[_0x5a8ef3(0x4c9)]=![],this[_0x5a8ef3(0x686)]();})),_0x588de9;}['commit'](){const _0xc4aa40=_0x1ed42e;if(!this[_0xc4aa40(0x30b)]['length'])return;if(this[_0xc4aa40(0x53b)]){!this[_0xc4aa40(0x4c9)]&&(this[_0xc4aa40(0x4c9)]=!![],setImmediate(()=>{const _0x19ae99=_0xc4aa40;this['scheduled']=![],this[_0x19ae99(0x686)]();}));return;}const _0x394bbb=this[_0xc4aa40(0x30b)];this[_0xc4aa40(0x30b)]=[],this[_0xc4aa40(0x45c)](_0x394bbb);}['_run'](_0x4f6e92){const _0x17396e=_0x1ed42e;let _0x4ac95b;this[_0x17396e(0x53b)]=!![];try{_0x4ac95b=this['db'][_0x17396e(0x63a)][_0x17396e(0x716)](_0x4f6e92[_0x17396e(0x25e)](_0xa0565b=>_0xa0565b['item']));}catch(_0x4e920a){this['inBatch']=![];if(_0x4f6e92['length']>0x1){for(const _0xe856a9 of _0x4f6e92)this['_run']([_0xe856a9]);return;}const _0x36fcc7=_0x1ac4c4(_0x4e920a);for(const _0xdf042c of _0x4f6e92)_0xdf042c['reject'](_0x36fcc7);return;}finally{this['inBatch']=![];}try{this['db'][_0x17396e(0x1e0)]['wake']();}catch{}const [_0x4fd9ad,_0x9805bd]=_0x4ac95b;_0x147a7e(_0x9805bd,()=>{const _0x2a1137=_0x17396e;for(let _0x39c52c=0x0;_0x39c52c<_0x4f6e92[_0x2a1137(0x5f6)];_0x39c52c++){const _0x1ee9b7=_0x4fd9ad[_0x39c52c];if(_0x1ee9b7&&_0x1ee9b7[0x0])_0x4f6e92[_0x39c52c]['resolve'](_0x1ee9b7[0x1]);else _0x4f6e92[_0x39c52c][_0x2a1137(0x317)](_0x1ac4c4(_0x1ee9b7?_0x1ee9b7[0x1]:new Error(_0x2a1137(0x466))));}});}async[_0x1ed42e(0x527)](){const _0x22606c=_0x1ed42e;this[_0x22606c(0x686)]();while(this[_0x22606c(0x56e)][_0x22606c(0x691)]){await Promise[_0x22606c(0x3e4)]([...this[_0x22606c(0x56e)]]),this[_0x22606c(0x686)]();}let _0x49afc7;try{_0x49afc7=this['db'][_0x22606c(0x63a)]['flushTicket']();}catch{return;}await new Promise(_0x548354=>_0x147a7e(_0x49afc7,_0x548354));}}return writebatch={'install':_0xca01de,'WriteBatch':_0x3bbc55,'whenSettled':_0x147a7e},writebatch;}var pump,hasRequiredPump;function requirePump(){const _0x35e5de=_0x5186d4;if(hasRequiredPump)return pump;hasRequiredPump=0x1;const _0x154c56=Number(process.env.OKDB_NATIVE_IDLE_MS)||0xfa;class _0x4f30d5{constructor(_0x27b00b){const _0x5be8bd=_0x458f;this[_0x5be8bd(0x483)]=_0x27b00b,this[_0x5be8bd(0x21e)]=null,this[_0x5be8bd(0x212)]=null,this[_0x5be8bd(0x600)]=![],this[_0x5be8bd(0x3d7)]=![],this[_0x5be8bd(0x424)]=![],this[_0x5be8bd(0x759)]=![],this[_0x5be8bd(0x421)]=0x0,this['errors']=[],this[_0x5be8bd(0x53d)]=[];}[_0x35e5de(0x50d)](_0x20686f){return new Promise(_0x1030b4=>{const _0x18c7ab=_0x458f,_0x235be1=setTimeout(_0x534925,_0x20686f);function _0x534925(){clearTimeout(_0x235be1),_0x1030b4();}this[_0x18c7ab(0x53d)][_0x18c7ab(0x7f5)](_0x534925);});}[_0x35e5de(0x374)](){const _0x491f2c=_0x35e5de;if(this[_0x491f2c(0x53d)][_0x491f2c(0x5f6)]===0x0)return;const _0x558212=this[_0x491f2c(0x53d)];this['turnWaiters']=[];for(const _0x209074 of _0x558212)_0x209074();}[_0x35e5de(0x6ae)](){this['stopped']=![],this['wake']();}[_0x35e5de(0x415)](){const _0x330717=_0x35e5de;this[_0x330717(0x3d7)]=!![];if(this[_0x330717(0x21e)])clearTimeout(this['timer']);if(this[_0x330717(0x212)])clearImmediate(this['immediate']);this['timer']=this[_0x330717(0x212)]=null,this['_settleWaiters']();}['wake'](){const _0x2c5cf6=_0x35e5de;if(this[_0x2c5cf6(0x3d7)]||this[_0x2c5cf6(0x212)])return;this['timer']&&(clearTimeout(this[_0x2c5cf6(0x21e)]),this[_0x2c5cf6(0x21e)]=null),this[_0x2c5cf6(0x212)]=setImmediate(()=>{const _0x5d61b2=_0x2c5cf6;this[_0x5d61b2(0x212)]=null,this['turn']();});}['turn'](){const _0x4f59e6=_0x35e5de;if(this[_0x4f59e6(0x3d7)]||this[_0x4f59e6(0x424)]){this[_0x4f59e6(0x759)]=!![];return;}this['pumping']=!![];let _0x5dcda1;try{this[_0x4f59e6(0x421)]++,_0x5dcda1=this['native'][_0x4f59e6(0x37d)]();if(this[_0x4f59e6(0x31b)])this[_0x4f59e6(0x31b)]();}catch(_0x129006){_0x5dcda1=_0x154c56,process[_0x4f59e6(0x6b1)](()=>{throw _0x129006;});}finally{this[_0x4f59e6(0x424)]=![],this[_0x4f59e6(0x374)]();}if(this['stopped']||_0x5dcda1===-0x2)return;if(this[_0x4f59e6(0x759)])return this['dirty']=![],this['wake']();const _0x1d4833=_0x5dcda1<0x0?_0x154c56:Math[_0x4f59e6(0x7f0)](0x0,Math[_0x4f59e6(0x4b5)](_0x5dcda1,_0x154c56));if(_0x1d4833<=0x0)return this[_0x4f59e6(0x58b)]();this[_0x4f59e6(0x21e)]=setTimeout(()=>{const _0x43d6a6=_0x4f59e6;this[_0x43d6a6(0x21e)]=null,this[_0x43d6a6(0x441)]();},Math[_0x4f59e6(0x1fc)](_0x1d4833));if(this[_0x4f59e6(0x21e)]['unref'])this[_0x4f59e6(0x21e)][_0x4f59e6(0x580)]();}}return pump={'Pumper':_0x4f30d5},pump;}var dist$1={},hasRequiredDist$1;function _0x458f(_0x1e9b96,_0x2aaf78){_0x1e9b96=_0x1e9b96-0xac;const _0x311a2b=_0x311a();let _0x458fc3=_0x311a2b[_0x1e9b96];return _0x458fc3;}function requireDist$1(){const _0x4c5086=_0x5186d4;if(hasRequiredDist$1)return dist$1;hasRequiredDist$1=0x1;const _0x17be68=Symbol[_0x4c5086(0x428)]('@harperdb/extended-iterable:skip'),_0x140c4f={'value':null,'done':!![]},_0x1a6f74={'value':null,'done':!![]};!Symbol[_0x4c5086(0x657)]&&(Symbol['asyncIterator']=Symbol[_0x4c5086(0x428)](_0x4c5086(0x59e)));const _0x10eb42={};class _0x283daa{constructor(_0x38c596){const _0x1d6bc5=_0x4c5086;_0x38c596&&(this['iterate']=_0x38c596[Symbol[_0x1d6bc5(0x16f)]][_0x1d6bc5(0x632)](_0x38c596));}[_0x4c5086(0x25e)](_0x123973){let _0x43894d=this,_0x3bff36=new _0x283daa();return _0x3bff36['iterate']=(_0x35edfe=_0x10eb42)=>{const _0x55ecdc=_0x458f,{async:_0x529e3c}=_0x35edfe;let _0x467fb7=_0x43894d[_0x529e3c?Symbol[_0x55ecdc(0x657)]:Symbol['iterator']](_0x35edfe);if(!_0x529e3c)_0x43894d[_0x55ecdc(0x2f4)]=!![];let _0x145e2d=-0x1;return{'next'(_0x4d0b2e){const _0x28334f=_0x55ecdc;let _0x195f01;do{let _0x394e16;try{if(_0x4d0b2e)_0x394e16=_0x4d0b2e,_0x4d0b2e=null;else{_0x145e2d++,_0x394e16=_0x467fb7[_0x28334f(0x7e9)]();if(_0x394e16[_0x28334f(0x5eb)])return!_0x529e3c&&this[_0x28334f(0x131)](new Error(_0x28334f(0x1c8))),_0x394e16[_0x28334f(0x5eb)](_0x4e6ab9=>this[_0x28334f(0x7e9)](_0x4e6ab9),_0x44f9f2=>{const _0x1a73c4=_0x28334f;return this[_0x1a73c4(0x131)](_0x44f9f2);});}if(_0x394e16[_0x28334f(0x4d9)]===!![]){this[_0x28334f(0x4d9)]=!![];if(_0x3bff36[_0x28334f(0x747)])_0x3bff36[_0x28334f(0x747)]();return _0x394e16;}try{_0x195f01=_0x123973['call'](_0x43894d,_0x394e16['value'],_0x145e2d);if(_0x195f01&&_0x195f01[_0x28334f(0x5eb)]&&_0x529e3c)return _0x195f01[_0x28334f(0x5eb)](_0x19b81e=>_0x19b81e===_0x17be68?this[_0x28334f(0x7e9)]():{'value':_0x19b81e},_0x370199=>{const _0x1079e4=_0x28334f;if(_0x35edfe[_0x1079e4(0x405)])_0x370199['continueIteration']=!![];return this[_0x1079e4(0x131)](_0x370199);});}catch(_0x4ac613){if(_0x35edfe[_0x28334f(0x405)])_0x4ac613[_0x28334f(0x41d)]=!![];throw _0x4ac613;}}catch(_0xdf4305){if(_0x3bff36[_0x28334f(0x1fb)])try{_0x195f01=_0x3bff36[_0x28334f(0x1fb)](_0xdf4305,_0x145e2d);}catch(_0x2805ff){return this[_0x28334f(0x131)](_0x2805ff);}else return this[_0x28334f(0x131)](_0xdf4305);}}while(_0x195f01===_0x17be68);if(_0x195f01===_0x140c4f)return this[_0x28334f(0x280)]();return{'value':_0x195f01};},'return'(_0x8b5dc){const _0x4246e8=_0x55ecdc;if(!this['done']){_0x1a6f74[_0x4246e8(0x27a)]=_0x8b5dc,this[_0x4246e8(0x4d9)]=!![];if(_0x3bff36[_0x4246e8(0x747)])_0x3bff36[_0x4246e8(0x747)]();_0x467fb7[_0x4246e8(0x280)]?.();}return _0x1a6f74;},'throw'(_0x53df6a){const _0x3098fa=_0x55ecdc;if(_0x53df6a[_0x3098fa(0x41d)]){if(_0x3bff36['returnRecoverableErrors'])try{return{'value':_0x3bff36['returnRecoverableErrors'](_0x53df6a)};}catch(_0x2a03c1){this[_0x3098fa(0x280)]();throw _0x2a03c1;}if(_0x35edfe[_0x3098fa(0x405)])throw _0x53df6a;}this[_0x3098fa(0x280)]();throw _0x53df6a;}};},_0x3bff36;}[Symbol[_0x4c5086(0x657)]](_0x1020af){const _0x38b771=_0x4c5086;if(_0x1020af)_0x1020af={..._0x1020af,'async':!![]};else _0x1020af={'async':!![]};return this[_0x38b771(0x16f)]=this[_0x38b771(0xc2)](_0x1020af);}[Symbol[_0x4c5086(0x16f)]](_0x147997){const _0x3fb695=_0x4c5086;return this[_0x3fb695(0x16f)]=this[_0x3fb695(0xc2)](_0x147997);}[_0x4c5086(0x127)](_0xe72c5d){const _0x1822d1=_0x4c5086;let _0xa942=this[_0x1822d1(0x25e)](_0x2d6f45=>{const _0x467bdf=_0x1822d1;let _0x257de7=_0xe72c5d(_0x2d6f45);if(_0x257de7?.[_0x467bdf(0x5eb)])return _0x257de7['then'](_0x31e351=>_0x31e351?_0x2d6f45:_0x17be68);else return _0x257de7?_0x2d6f45:_0x17be68;}),_0x52b2e6=_0xa942[_0x1822d1(0xc2)];return _0xa942[_0x1822d1(0xc2)]=(_0x2c4202=_0x10eb42)=>{if(_0x2c4202['continueOnRecoverableError'])_0x2c4202={..._0x2c4202,'continueOnRecoverableError':![]};return _0x52b2e6(_0x2c4202);},_0xa942;}['forEach'](_0x1e62e2){const _0x430af6=_0x4c5086;let _0x37ca51=this[_0x430af6(0x16f)]=this[_0x430af6(0xc2)](),_0x575278;while((_0x575278=_0x37ca51['next']())[_0x430af6(0x4d9)]!==!![]){_0x1e62e2(_0x575278['value']);}}[_0x4c5086(0x748)](_0x40d76d){const _0x348b58=_0x4c5086;let _0x45c7ee=new _0x283daa();return _0x45c7ee[_0x348b58(0xc2)]=(_0x5a8a35=_0x10eb42)=>{let _0x5f1006=this['iterator']=this['iterate'](_0x5a8a35),_0x2da622=!![];function _0x29479a(_0x134da9){const _0x388368=_0x458f;if(_0x2da622)try{_0x2da622=![],_0x5f1006=_0x40d76d[_0x5a8a35['async']?Symbol[_0x388368(0x657)]:Symbol[_0x388368(0x16f)]](),_0x134da9=_0x5f1006[_0x388368(0x7e9)]();if(_0x45c7ee[_0x388368(0x747)]){if(_0x134da9[_0x388368(0x5eb)]){if(!_0x5a8a35[_0x388368(0x63d)])throw new Error('Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results');_0x134da9[_0x388368(0x5eb)](_0x4a8090=>{const _0x36d7a3=_0x388368;if(_0x4a8090[_0x36d7a3(0x4d9)]())_0x45c7ee['onDone']();},_0x50ad75=>{const _0x5830f5=_0x388368;this[_0x5830f5(0x280)]();throw _0x50ad75;});}else{if(_0x134da9['done'])_0x45c7ee[_0x388368(0x747)]();}}}catch(_0x36f4da){this[_0x388368(0x131)](_0x36f4da);}else{if(_0x45c7ee[_0x388368(0x747)])_0x45c7ee[_0x388368(0x747)]();}return _0x134da9;}return{'next'(){const _0x501434=_0x458f;try{let _0x49e1d8=_0x5f1006[_0x501434(0x7e9)]();if(_0x49e1d8[_0x501434(0x5eb)]){if(!_0x5a8a35['async'])throw new Error(_0x501434(0x1c8));return _0x49e1d8[_0x501434(0x5eb)](_0x5b2da7=>{const _0x99d149=_0x501434;if(_0x5b2da7[_0x99d149(0x4d9)])return _0x29479a(_0x5b2da7);return _0x5b2da7;});}if(_0x49e1d8[_0x501434(0x4d9)])return _0x29479a(_0x49e1d8);return _0x49e1d8;}catch(_0x124d27){this['throw'](_0x124d27);}},'return'(_0x3def6b){const _0x20817c=_0x458f;if(!this[_0x20817c(0x4d9)]){_0x1a6f74[_0x20817c(0x27a)]=_0x3def6b,this['done']=!![];if(_0x45c7ee['onDone'])_0x45c7ee[_0x20817c(0x747)]();_0x5f1006[_0x20817c(0x280)]();}return _0x1a6f74;},'throw'(_0x4ae7b2){const _0x4abdb9=_0x458f;if(_0x5a8a35[_0x4abdb9(0x405)])throw _0x4ae7b2;this[_0x4abdb9(0x280)]();throw _0x4ae7b2;}};},_0x45c7ee;}[_0x4c5086(0x16b)](_0x16cc1a){const _0x15b602=_0x4c5086;let _0x560890=new _0x283daa();return _0x560890[_0x15b602(0xc2)]=(_0x1d3014=_0x10eb42)=>{const _0x2c0c59=_0x15b602;let _0x73f887=this[_0x2c0c59(0x16f)]=this[_0x2c0c59(0xc2)](_0x1d3014),_0x4d8606;return{'next'(_0x67f553){const _0x5c3f91=_0x2c0c59;try{do{if(_0x4d8606){let _0x39caed;if(_0x67f553)_0x39caed=_0x67f553,_0x67f553=undefined;else _0x39caed=_0x4d8606['next']();if(_0x39caed[_0x5c3f91(0x5eb)]){if(!_0x1d3014[_0x5c3f91(0x63d)])throw new Error(_0x5c3f91(0x1c8));return _0x39caed[_0x5c3f91(0x5eb)](_0x53b384=>this['next'](_0x53b384));}if(!_0x39caed[_0x5c3f91(0x4d9)])return _0x39caed;}let _0x5860a8;if(_0x67f553!=undefined)_0x5860a8=_0x67f553,_0x67f553=undefined;else _0x5860a8=_0x73f887['next']();if(_0x5860a8['then']){if(!_0x1d3014[_0x5c3f91(0x63d)])throw new Error(_0x5c3f91(0x1c8));return _0x4d8606=undefined,_0x5860a8['then'](_0x51cd1e=>this[_0x5c3f91(0x7e9)](_0x51cd1e));}if(_0x5860a8[_0x5c3f91(0x4d9)]){if(_0x560890[_0x5c3f91(0x747)])_0x560890['onDone']();return _0x5860a8;}try{let _0x2a06c4=_0x16cc1a(_0x5860a8['value']);if(_0x2a06c4?.[_0x5c3f91(0x5eb)]){if(!_0x1d3014['async'])throw new Error(_0x5c3f91(0x1c8));return _0x2a06c4[_0x5c3f91(0x5eb)](_0x2533ca=>{const _0x544ab8=_0x5c3f91;return Array[_0x544ab8(0x28e)](_0x2533ca)||_0x2533ca instanceof _0x283daa?(_0x4d8606=_0x2533ca[Symbol['iterator']](),this[_0x544ab8(0x7e9)]()):(_0x4d8606=null,{'value':_0x2533ca});},_0x3aeeaf=>{const _0x47ac89=_0x5c3f91;if(_0x1d3014[_0x47ac89(0x405)])_0x3aeeaf[_0x47ac89(0x41d)]=!![];this[_0x47ac89(0x131)](_0x3aeeaf);});}if(Array['isArray'](_0x2a06c4)||_0x2a06c4 instanceof _0x283daa)_0x4d8606=_0x2a06c4[Symbol[_0x5c3f91(0x16f)]]();else return _0x4d8606=null,{'value':_0x2a06c4};}catch(_0x52e285){if(_0x1d3014[_0x5c3f91(0x405)])_0x52e285['continueIteration']=!![];throw _0x52e285;}}while(!![]);}catch(_0xdf38f){this[_0x5c3f91(0x131)](_0xdf38f);}},'return'(){const _0x442624=_0x2c0c59;if(_0x560890['onDone'])_0x560890['onDone']();if(_0x4d8606)_0x4d8606[_0x442624(0x280)]();return _0x73f887[_0x442624(0x280)]();},'throw'(_0x105089){const _0x3ce823=_0x2c0c59;if(_0x1d3014[_0x3ce823(0x405)])throw _0x105089;if(_0x560890[_0x3ce823(0x747)])_0x560890[_0x3ce823(0x747)]();if(_0x4d8606)_0x4d8606[_0x3ce823(0x280)]();this[_0x3ce823(0x280)]();throw _0x105089;}};},_0x560890;}['slice'](_0x5a3a3d,_0x350973){const _0x213313=_0x4c5086;let _0x435a38=this[_0x213313(0x25e)]((_0x425525,_0x3ff76e)=>{const _0x514b7a=_0x213313;if(_0x3ff76e<_0x5a3a3d)return _0x17be68;if(_0x3ff76e>=_0x350973)return _0x140c4f[_0x514b7a(0x27a)]=_0x425525,_0x140c4f;return _0x425525;});return _0x435a38['handleError']=(_0x2c6b6f,_0x41a81b)=>{if(_0x41a81b<_0x5a3a3d)return _0x17be68;if(_0x41a81b>=_0x350973)return _0x140c4f;throw _0x2c6b6f;},_0x435a38;}[_0x4c5086(0x5c8)](_0x580bfb){const _0x25f533=_0x4c5086;if(typeof _0x580bfb!=='function')throw new TypeError(_0x25f533(0x134));let _0x3456bd=this[_0x25f533(0x25e)](_0x14dc7f=>{return _0x14dc7f;}),_0x76ede4=_0x3456bd[_0x25f533(0xc2)];return _0x3456bd[_0x25f533(0xc2)]=(_0x5cdf76=_0x10eb42)=>{return _0x76ede4({..._0x5cdf76,'continueOnRecoverableError':!![]});},_0x3456bd[_0x25f533(0x124)]=_0x580bfb,_0x3456bd;}[_0x4c5086(0x7e9)](){const _0x3a5853=_0x4c5086;if(!this[_0x3a5853(0x16f)])this['iterator']=this[_0x3a5853(0xc2)]();return this['iterator']['next']();}[_0x4c5086(0x5bc)](){const _0x5cc58c=_0x4c5086;if(this[_0x5cc58c(0x135)]&&this['asArray']['forEach'])return this[_0x5cc58c(0x135)];const _0x5d5056=new Error(_0x5cc58c(0x4b9));_0x5d5056[_0x5cc58c(0x4c7)]=this[_0x5cc58c(0x135)];throw _0x5d5056;}get['asArray'](){const _0x311032=_0x4c5086;if(this[_0x311032(0x38c)])return this[_0x311032(0x38c)];let _0x45295a=new Promise((_0x3adfe5,_0x38204f)=>{const _0x1ffc81=_0x311032;let _0x373420=this[_0x1ffc81(0xc2)](!![]),_0x1c3ac7=[],_0xbaf8a7=this;Object[_0x1ffc81(0x4a2)](_0x1c3ac7,_0x1ffc81(0x382),{'value':_0xbaf8a7});function _0x1f377a(_0xe5b558){const _0x45e528=_0x1ffc81;while(_0xe5b558[_0x45e528(0x4d9)]!==!![]){if(_0xe5b558['then'])return _0xe5b558['then'](_0x1f377a);else _0x1c3ac7[_0x45e528(0x7f5)](_0xe5b558[_0x45e528(0x27a)]);_0xe5b558=_0x373420[_0x45e528(0x7e9)]();}_0x3adfe5(_0xbaf8a7[_0x45e528(0x38c)]=_0x1c3ac7);}_0x1f377a(_0x373420['next']());});return _0x45295a[_0x311032(0x382)]=this,this[_0x311032(0x38c)]||(this[_0x311032(0x38c)]=_0x45295a);}[_0x4c5086(0x38f)](){const _0x2501b0=_0x4c5086;return this[_0x2501b0(0x135)];}['at'](_0x2754cb){for(let _0x389722 of this){if(_0x2754cb--===0x0)return _0x389722;}}}return _0x283daa[_0x4c5086(0x50c)][_0x4c5086(0x47b)]=_0x140c4f,dist$1[_0x4c5086(0x345)]=_0x283daa,dist$1[_0x4c5086(0x6d7)]=_0x17be68,dist$1;}var iterable,hasRequiredIterable;function requireIterable(){const _0x117504=_0x5186d4;if(hasRequiredIterable)return iterable;hasRequiredIterable=0x1;const {ExtendedIterable:_0x5ce07b}=requireDist$1(),_0x931b97=Number(process.env.OKDB_NATIVE_RANGE_CHUNK)||0x3e8,_0x1b9102=Math['min'](_0x931b97,Number(process.env.OKDB_NATIVE_ROW_CHUNK)||0x100),_0x30030d=new Set(['getRange','byIndex',_0x117504(0x2b2),'getChanges']),_0x4c2713=Math[_0x117504(0x4b5)](_0x1b9102,Number(process.env.OKDB_NATIVE_RANGE_FIRST)||0x1),_0x213428=0x4,_0x40a18d=(_0x328685,_0x55987b=_0x931b97)=>Math[_0x117504(0x4b5)](_0x55987b,_0x328685*_0x213428),_0x382ad3={'value':undefined,'done':!![]};function _0x4ccce8(_0x122af0){const _0x4a79c6=_0x117504,_0x1d1904=new _0x5ce07b();return _0x1d1904[_0x4a79c6(0xc2)]=()=>{let _0x1b96d0=0x0;return{'next'(){return _0x1b96d0<_0x122af0['length']?{'value':_0x122af0[_0x1b96d0++],'done':![]}:{'value':undefined,'done':!![]};},'return'(){return _0x1b96d0=_0x122af0['length'],{'value':undefined,'done':!![]};},'throw'(){const _0xc4617f=_0x458f;return _0x1b96d0=_0x122af0[_0xc4617f(0x5f6)],{'value':undefined,'done':!![]};}};},_0x1d1904;}const _0x568581=_0x554e0c=>typeof _0x554e0c===_0x117504(0x51e)&&!Number[_0x117504(0x6f7)](_0x554e0c)?Math[_0x117504(0x7f0)](0x0,Math[_0x117504(0x1fc)](_0x554e0c)):Infinity,_0x3fd635=_0x2fce97=>typeof _0x2fce97==='number'?Math[_0x117504(0x7f0)](0x0,Math[_0x117504(0x2aa)](_0x2fce97))||0x0:0x0;function _0x425d65(_0x3e6652,_0x3cbe7c,_0x55e7a1,_0x15906b={}){const _0x2dd919=_0x117504,_0x1035fb=new _0x5ce07b(),_0x5bb986=(_0x15906b[_0x2dd919(0x3e6)]||_0x568581)(_0x3cbe7c[_0x2dd919(0x7bb)]),_0x29976c=_0x15906b['rows']?_0x1b9102:_0x931b97,_0x1276d0=_0x15906b[_0x2dd919(0x34c)]||((_0x4d2124,_0x5fdfbf)=>{const _0x3c5f6e=_0x2dd919;_0x4d2124['start']=_0x5fdfbf,_0x4d2124[_0x3c5f6e(0x3fb)]=!![],delete _0x4d2124[_0x3c5f6e(0x1bb)];});let _0x2c91b2=null;if(_0x15906b[_0x2dd919(0x312)]){const _0x2b11ed={..._0x3cbe7c,'limit':Math[_0x2dd919(0x4b5)](_0x4c2713,_0x5bb986)};_0x2c91b2={'rows':_0x3e6652(_0x2b11ed),'limit':_0x2b11ed['limit']};const _0x3927a0=_0x2c91b2;queueMicrotask(()=>{const _0xdf785a=_0x2dd919;_0x3927a0[_0xdf785a(0x254)]=!![];});}return _0x1035fb[_0x2dd919(0xc2)]=()=>{const _0x5493eb=_0x2dd919;let _0x5d1f7d=[],_0x4ff7c9=0x0,_0x327f46=0x0,_0x403e68,_0x1a9952=![],_0x4fbc48=![],_0x4a18c1=_0x4c2713;if(_0x2c91b2&&!_0x2c91b2['dropped']&&!_0x2c91b2[_0x5493eb(0xae)]){_0x2c91b2[_0x5493eb(0xae)]=!![],_0x5d1f7d=_0x2c91b2[_0x5493eb(0x707)],_0x1a9952=!![],_0x4a18c1=_0x40a18d(_0x4a18c1,_0x29976c);if(_0x5d1f7d[_0x5493eb(0x5f6)]<_0x2c91b2[_0x5493eb(0x7bb)])_0x4fbc48=!![];if(_0x5d1f7d[_0x5493eb(0x5f6)])_0x403e68=_0x55e7a1(_0x5d1f7d[_0x5d1f7d[_0x5493eb(0x5f6)]-0x1]);}const _0x141fff=()=>{const _0x1dfaac=_0x5493eb;if(_0x4fbc48)return;const _0x16abad=_0x5bb986-_0x327f46;if(_0x16abad<=0x0){_0x4fbc48=!![],_0x5d1f7d=[];return;}const _0x321643={..._0x3cbe7c,'limit':Math[_0x1dfaac(0x4b5)](_0x4a18c1,_0x16abad)};if(_0x1a9952)_0x1276d0(_0x321643,_0x403e68);_0x1a9952=!![],_0x4a18c1=_0x40a18d(_0x4a18c1,_0x29976c),_0x5d1f7d=_0x3e6652(_0x321643),_0x4ff7c9=0x0;if(_0x5d1f7d[_0x1dfaac(0x5f6)]<_0x321643[_0x1dfaac(0x7bb)])_0x4fbc48=!![];if(_0x5d1f7d[_0x1dfaac(0x5f6)])_0x403e68=_0x55e7a1(_0x5d1f7d[_0x5d1f7d[_0x1dfaac(0x5f6)]-0x1]);};return{'next'(){const _0x4e30d5=_0x5493eb;if(_0x4ff7c9>=_0x5d1f7d[_0x4e30d5(0x5f6)])_0x141fff();if(_0x4ff7c9>=_0x5d1f7d[_0x4e30d5(0x5f6)])return{'value':undefined,'done':!![]};return _0x327f46++,{'value':_0x5d1f7d[_0x4ff7c9++],'done':![]};},'return'(){return _0x4fbc48=!![],_0x5d1f7d=[],{'value':undefined,'done':!![]};},'throw'(){return _0x4fbc48=!![],_0x5d1f7d=[],{'value':undefined,'done':!![]};}};},_0x1035fb;}function _0x587e2d(_0x4232f1,_0x4ba809,_0x1e6e58,_0x15d5e1,_0x23a775={}){const _0x39ec70=_0x117504,_0x5e681a=(_0x23a775[_0x39ec70(0x3e6)]||_0x568581)(_0x15d5e1&&_0x15d5e1[_0x39ec70(0x7bb)]),_0x66464d=_0x30030d[_0x39ec70(0x43b)](_0x4ba809)?_0x1b9102:_0x931b97,_0x123710=(_0x23a775[_0x39ec70(0x311)]||_0x3fd635)(_0x15d5e1&&_0x15d5e1[_0x39ec70(0x1bb)]),_0x564937=(_0x4933f2,_0xd45c16,_0x5a08f4)=>{const _0x3fbce7=_0x39ec70,_0x4b229c=_0x5e681a-_0xd45c16,_0x1dd674=Math['min'](_0x5a08f4,_0x4b229c),_0x30c977={'limit':_0x1dd674,'offset':_0x123710+_0xd45c16},_0x1c7d6a=_0x4232f1(_0x3fbce7(0x5b8),[_0x4933f2,_0x4ba809,_0x1dd674===_0x4b229c?Infinity:_0x1dd674,..._0x1e6e58(_0x30c977)]);if(_0x1c7d6a[0x0]===-0x1){const _0x5c9989={'offset':_0x123710+_0xd45c16};if(_0x4b229c!==Infinity)_0x5c9989[_0x3fbce7(0x7bb)]=_0x4b229c;return{'pin':0x0,'rows':_0x4232f1(_0x4ba809,_0x1e6e58(_0x5c9989)),'raw':Infinity,'eager':!![]};}return{'pin':_0x1c7d6a[0x0],'rows':_0x1c7d6a[0x1],'raw':_0x1c7d6a[0x2]};},_0x2f3904=_0x215742=>{const _0x571f32=_0x39ec70;if(_0x215742)_0x4232f1(_0x571f32(0x537),[_0x215742]);};function _0x281b23(_0xdf13d6,_0x4ccfc7,_0x323104){const _0x135e26=_0x39ec70;let _0x136b69=0x0,_0x2c5725=[],_0x4db57c=0x0,_0x2b8beb=_0xdf13d6,_0x41a791=_0x4c2713,_0x534a9b=_0x5e681a-_0xdf13d6<=0x0;if(_0x323104)({buf:_0x2c5725,pos:_0x4db57c,consumed:_0x2b8beb,size:_0x41a791,exhausted:_0x534a9b}=_0x323104);const _0x4a659f=_0x312bdf=>{const _0x3e0041=_0x458f;_0x136b69=_0x312bdf[_0x3e0041(0x262)],_0x2c5725=_0x312bdf[_0x3e0041(0x707)],_0x4db57c=0x0,_0x2b8beb+=_0x312bdf[_0x3e0041(0x644)],_0x41a791=_0x40a18d(_0x41a791,_0x66464d);if(!_0x136b69)_0x534a9b=!![];};if(_0x4ccfc7)_0x4a659f(_0x4ccfc7);const _0xb9083c=()=>{const _0x5afce2=_0x136b69;_0x136b69=0x0,_0x2f3904(_0x5afce2);},_0x577fea={'next'(){const _0x17e06b=_0x458f;while(_0x4db57c>=_0x2c5725[_0x17e06b(0x5f6)]){if(_0x534a9b||_0x5e681a-_0x2b8beb<=0x0)return _0x534a9b=!![],_0xb9083c(),_0x382ad3;try{_0x4a659f(_0x564937(_0x136b69,_0x2b8beb,_0x41a791));}catch(_0x402c2b){_0x136b69=0x0,_0x534a9b=!![],_0x2c5725=[];throw _0x402c2b;}}return{'value':_0x2c5725[_0x4db57c++],'done':![]};},'return'(){return _0xb9083c(),_0x382ad3;},'throw'(){return _0xb9083c(),_0x382ad3;},'resumed'(){return _0x281b23(0x0,null,{'buf':_0x2c5725,'pos':_0x4db57c,'consumed':_0x2b8beb,'size':_0x41a791,'exhausted':_0x534a9b});},[Symbol[_0x135e26(0x16f)]](){return this;}};return _0x577fea;}function _0x5536ff(){if(_0x5e681a<=0x0)return null;const _0x3076f5=_0x564937(0x0,0x0,_0x4c2713);return queueMicrotask(()=>{const _0x237456=_0x458f;!_0x3076f5[_0x237456(0xae)]&&(_0x3076f5['dropped']=!![],_0x2f3904(_0x3076f5[_0x237456(0x262)]));}),_0x3076f5;}return{'source':_0x281b23,'prefetch':_0x5536ff};}function _0x4433b0(_0x273a5e){const _0x4d0634=_0x117504;if(!_0x273a5e||_0x273a5e[_0x4d0634(0xae)]||_0x273a5e[_0x4d0634(0x254)])return null;return _0x273a5e[_0x4d0634(0xae)]=!![],_0x273a5e;}return iterable={'fromArray':_0x4ccce8,'chunkedRange':_0x425d65,'pinnedChunks':_0x587e2d,'claimPrefetch':_0x4433b0,'lmdbLimit':_0x568581,'lmdbOffset':_0x3fd635,'CHUNK':_0x931b97,'ROW_CHUNK':_0x1b9102,'FIRST':_0x4c2713},iterable;}var rawdb,hasRequiredRawdb;function requireRawdb(){const _0x3171e0=_0x5186d4;if(hasRequiredRawdb)return rawdb;hasRequiredRawdb=0x1;const {fromArray:_0x25efab}=requireIterable();class _0x8c51d{constructor(_0x2fe41f,_0x233071='',_0x1c5cf4={},_0x1a3acb=null){const _0x5626dd=_0x458f;this[_0x5626dd(0x34e)]=_0x2fe41f,this[_0x5626dd(0x397)]=_0x233071,this[_0x5626dd(0x49c)]=!!(_0x1c5cf4&&_0x1c5cf4[_0x5626dd(0x49c)]),this[_0x5626dd(0x64a)]=!!(_0x1c5cf4&&_0x1c5cf4[_0x5626dd(0x64a)]),this[_0x5626dd(0x646)]=_0x1a3acb||this,this[_0x5626dd(0x51a)]=null;}get[_0x3171e0(0x172)](){const _0x49bf4f=_0x3171e0;return this[_0x49bf4f(0x49c)]?!![]:this[_0x49bf4f(0x64a)]?'v':![];}['_n'](_0x3a49b5,_0x560b26){const _0x10c6b5=_0x3171e0;return this['_env'][_0x10c6b5(0x5df)][_0x10c6b5(0x463)](_0x10c6b5(0x644),this[_0x10c6b5(0x34e)][_0x10c6b5(0x397)],_0x3a49b5,[this[_0x10c6b5(0x397)],this['_dupArg'],..._0x560b26],!![]);}['_read'](_0x3ff0d6,_0x1361aa){const _0x25d9ed=_0x3171e0;return this[_0x25d9ed(0x34e)][_0x25d9ed(0x5df)][_0x25d9ed(0x463)](_0x25d9ed(0x644),this[_0x25d9ed(0x34e)]['name'],_0x3ff0d6,[this[_0x25d9ed(0x397)],this[_0x25d9ed(0x172)],..._0x1361aa],![]);}[_0x3171e0(0x245)](_0x5da814){const _0x100b1f=_0x3171e0,_0x1f4f3b=this[_0x100b1f(0x34e)][_0x100b1f(0x188)];if(_0x1f4f3b)_0x1f4f3b['push']({'sub':this['name'],'dup':this[_0x100b1f(0x172)],..._0x5da814});else this[_0x100b1f(0x34e)][_0x100b1f(0x5df)]['_call'](_0x100b1f(0x644),this[_0x100b1f(0x34e)][_0x100b1f(0x397)],'batch',[[{'sub':this['name'],'dup':this[_0x100b1f(0x172)],..._0x5da814}]],!![]);}['get'](_0x55b7de){const _0x3475be=_0x3171e0;return this[_0x3475be(0x6fc)](_0x3475be(0x576),[_0x55b7de]);}[_0x3171e0(0x45e)](_0x12ecba){const _0x1c52da=_0x3171e0;if(this[_0x1c52da(0x64a)])return this[_0x1c52da(0x6fc)]('getEntry',[_0x12ecba]);const _0x2e0727=this['get'](_0x12ecba);return _0x2e0727===undefined?undefined:{'value':_0x2e0727};}[_0x3171e0(0x4fb)](_0x1c5fa0){const _0x1795c9=_0x3171e0;return this[_0x1795c9(0x6fc)](_0x1795c9(0x7f3),[_0x1c5fa0]);}[_0x3171e0(0x24d)](_0x339b77){const _0x5cb2f1=_0x3171e0;return this[_0x5cb2f1(0x576)](_0x339b77);}[_0x3171e0(0x783)](_0x11f6bd={}){const _0x522a5a=_0x3171e0,_0x5ed102=this[_0x522a5a(0x6fc)](_0x522a5a(0x783),[_0x11f6bd]),_0x5cb171=_0x11f6bd[_0x522a5a(0x2af)]===![],_0x2f433a=_0x11f6bd[_0x522a5a(0xc7)]===![];return _0x25efab(_0x5ed102[_0x522a5a(0x25e)](([_0x866140,_0x11dfaf,_0x14e46c])=>{if(_0x5cb171)return _0x866140;if(_0x2f433a)return _0x11dfaf;return _0x14e46c===undefined?{'key':_0x866140,'value':_0x11dfaf}:{'key':_0x866140,'value':_0x11dfaf,'version':_0x14e46c};}));}[_0x3171e0(0x139)](_0x22bce0={}){const _0x4121c2=_0x3171e0;return _0x25efab(this[_0x4121c2(0x6fc)]('getRange',[_0x22bce0])[_0x4121c2(0x25e)](([_0x309dc1])=>_0x309dc1));}[_0x3171e0(0x5ec)](_0x875da3,_0x4d2c30={}){const _0x461f86=_0x3171e0,_0x57c04e=this[_0x461f86(0x6fc)](_0x461f86(0x783),[{..._0x4d2c30,'start':_0x875da3,'end':_0x875da3,'inclusiveEnd':!![]}]);return _0x25efab(_0x57c04e[_0x461f86(0x25e)](([,_0x579368])=>_0x579368));}[_0x3171e0(0x34f)](_0x6ce102={}){const _0x117ddd=_0x3171e0;return this[_0x117ddd(0x6fc)](_0x117ddd(0x650),[_0x6ce102]);}[_0x3171e0(0x379)](){return{'entryCount':this['getCount']()};}[_0x3171e0(0x540)](_0xcfae5,_0x33577d,_0xcfb331){const _0x208987=_0x3171e0;return this['_write']({'op':_0x208987(0x540),'key':_0xcfae5,'value':_0x33577d,'version':_0xcfb331}),Promise['resolve'](!![]);}[_0x3171e0(0x500)](_0x10b519,_0x316f03,_0x1d5648){return this['_write']({'op':'put','key':_0x10b519,'value':_0x316f03,'version':_0x1d5648}),!![];}[_0x3171e0(0x228)](_0x5e4bd8,_0x5348a1){const _0x21a71f=_0x3171e0;return this[_0x21a71f(0x245)]({'op':_0x21a71f(0x228),'key':_0x5e4bd8,'value':_0x5348a1}),Promise[_0x21a71f(0x4ef)](!![]);}['removeSync'](_0x13409a,_0x1030a9){const _0x594aac=_0x3171e0;return this[_0x594aac(0x245)]({'op':_0x594aac(0x228),'key':_0x13409a,'value':_0x1030a9}),!![];}[_0x3171e0(0x18e)](){const _0x30e7c1=_0x3171e0;this[_0x30e7c1(0x245)]({'op':'clear'});}[_0x3171e0(0x7c3)](){const _0x182db8=_0x3171e0;return this[_0x182db8(0x245)]({'op':_0x182db8(0x635)}),Promise[_0x182db8(0x4ef)]();}[_0x3171e0(0x125)](){const _0x3f0b9d=_0x3171e0;this[_0x3f0b9d(0x18e)]();}[_0x3171e0(0xe3)](_0x3438cf,_0x69d5aa={}){const _0x5be948=_0x3171e0,_0x452532=typeof _0x3438cf==='object'?_0x3438cf:_0x69d5aa,_0x426c31=typeof _0x3438cf==='object'?_0x3438cf[_0x5be948(0x397)]:_0x3438cf,_0x57ba1d=new _0x8c51d(this[_0x5be948(0x34e)],_0x426c31,_0x452532);return _0x57ba1d[_0x5be948(0x245)]({'op':_0x5be948(0x71f)}),_0x57ba1d;}[_0x3171e0(0x3ce)](){}[_0x3171e0(0x515)](_0x23298e){const _0xb78f90=_0x3171e0;return this[_0xb78f90(0x1e6)](_0x23298e);}async[_0x3171e0(0x316)](_0x400078){const _0x5ed535=_0x3171e0;return this[_0x5ed535(0x1e6)](_0x400078);}[_0x3171e0(0x22a)](_0x3842db){const _0x67fdea=_0x3171e0;return this[_0x67fdea(0x1e6)](_0x3842db);}[_0x3171e0(0x1e6)](_0x1ebf13){const _0x29a7d7=_0x3171e0,_0x3f820e=this[_0x29a7d7(0x34e)];if(_0x3f820e[_0x29a7d7(0x188)])return _0x1ebf13();_0x3f820e[_0x29a7d7(0x188)]=[];let _0x4ce2e4;try{_0x4ce2e4=_0x1ebf13();}catch(_0x389983){_0x3f820e['_rawTxnBuf']=null;throw _0x389983;}const _0x80f6ae=_0x3f820e[_0x29a7d7(0x188)];_0x3f820e['_rawTxnBuf']=null;if(_0x80f6ae[_0x29a7d7(0x5f6)])_0x3f820e['okdb'][_0x29a7d7(0x463)](_0x29a7d7(0x644),_0x3f820e[_0x29a7d7(0x397)],_0x29a7d7(0x261),[_0x80f6ae],!![]);return _0x4ce2e4;}['useReadTransaction'](){return{'done'(){}};}[_0x3171e0(0x330)](){}}return rawdb={'RawDb':_0x8c51d},rawdb;}var views,hasRequiredViews;function requireViews(){const _0x4b0f4e=_0x5186d4;if(hasRequiredViews)return views;hasRequiredViews=0x1;const {RawDb:_0x1a0379}=requireRawdb();class _0x34ed01{constructor(_0x48cb15){const _0x3f57ed=_0x458f;this['env']=_0x48cb15,this['_n']=(_0x5c92c8,_0x24ebd3,_0x3e402d=!![])=>_0x48cb15[_0x3f57ed(0x5df)][_0x3f57ed(0x463)](_0x3f57ed(0x290),_0x48cb15[_0x3f57ed(0x397)],_0x5c92c8,_0x24ebd3,_0x3e402d);}get[_0x4b0f4e(0x2df)](){const _0x5a7740=_0x4b0f4e,_0x1597f=this,_0x20a822=this[_0x5a7740(0x78b)],_0x44ff81=_0x164b48=>_0x164b48?new _0x1a0379(_0x20a822,_0x164b48[_0x5a7740(0x397)],{'dupSort':_0x164b48[_0x5a7740(0x5e6)]}):undefined,_0x4f2339=_0x4fe865=>{const _0x134c40=_0x5a7740,_0x132424=_0x1597f['_n'](_0x134c40(0x137),[_0x4fe865],![]);if(!_0x132424)return undefined;const _0x386950=_0x132424['compiled'],_0x4da2e1=new Map(Object[_0x134c40(0x591)](_0x386950['refs'])),_0x328c3e=new Map(Object['entries'](_0x132424['refItemsDbs'])[_0x134c40(0x25e)](([_0xaa8963,_0x32ec77])=>[_0xaa8963,_0x44ff81(_0x32ec77)]));return{'name':_0x4fe865,'compiled':{'T':_0x386950['T'],'reducers':_0x386950[_0x134c40(0x6de)],'refs':_0x4da2e1,'granId':_0x386950[_0x134c40(0x714)],'type':_0x386950[_0x134c40(0x170)],'_nidFor':_0x4bc95c=>_0x1597f['_n'](_0x134c40(0x470),[_0x4fe865,_0x4bc95c],![])},'viewDb':_0x44ff81(_0x132424[_0x134c40(0x288)]['viewDb']),'metaDb':_0x44ff81(_0x132424['dbs'][_0x134c40(0x1f3)]),'itemsDb':_0x44ff81(_0x132424['dbs'][_0x134c40(0x27c)]),'bucketsDb':_0x44ff81(_0x132424[_0x134c40(0x288)]['bucketsDb']),'sortedDb':_0x44ff81(_0x132424[_0x134c40(0x288)][_0x134c40(0x3c6)]),'groupsDb':_0x44ff81(_0x132424[_0x134c40(0x288)][_0x134c40(0x119)]),'prevDb':_0x44ff81(_0x132424['dbs']['prevDb']),'refItemsDbs':_0x328c3e,'refTrackingDbs':new Map(Object['entries'](_0x132424[_0x134c40(0x3cf)]||{})[_0x134c40(0x25e)](([_0x32e257,_0x11b7a8])=>[_0x32e257,_0x44ff81(_0x11b7a8)])),'stopFn':_0x132424['hasStopFn']?async()=>_0x1597f['_n'](_0x134c40(0x2e7),[_0x4fe865]):null,'bootstrapWorker':null};};return{'get':_0x21322f=>_0x4f2339(_0x21322f),'has':_0x4688e3=>_0x1597f['_n']('stateNames',[],![])[_0x5a7740(0x61d)](_0x4688e3),'keys':()=>_0x1597f['_n'](_0x5a7740(0x7c0),[],![])[Symbol[_0x5a7740(0x16f)]](),get 'size'(){const _0xff8c37=_0x5a7740;return _0x1597f['_n'](_0xff8c37(0x7c0),[],![])[_0xff8c37(0x5f6)];},[Symbol[_0x5a7740(0x16f)]]:()=>_0x1597f['_n']('stateNames',[],![])[_0x5a7740(0x25e)](_0x1a0f79=>[_0x1a0f79,_0x4f2339(_0x1a0f79)])[Symbol[_0x5a7740(0x16f)]]()};}get['_customReducers'](){const _0x484915=_0x4b0f4e,_0x279ac0=this;return{'has':_0x25347d=>_0x279ac0['_n'](_0x484915(0x32e),[],![])[_0x484915(0x61d)](_0x25347d),get 'size'(){const _0x542c55=_0x484915;return _0x279ac0['_n'](_0x542c55(0x32e),[],![])['length'];},'keys':()=>_0x279ac0['_n'](_0x484915(0x32e),[],![])[Symbol[_0x484915(0x16f)]]()};}async[_0x4b0f4e(0xcd)](){const _0x562c4f=_0x4b0f4e;return this['_n'](_0x562c4f(0xcd),[]);}async['bootSyncedViews'](_0x28a201={}){const _0x4d0d24=_0x4b0f4e;return this['_n'](_0x4d0d24(0x14a),[_0x28a201]);}async[_0x4b0f4e(0x730)](_0x253a74,_0x194f79){const _0x4cf1e6=_0x4b0f4e;return await this[_0x4cf1e6(0x7a1)](_0x4cf1e6(0x724),[_0x253a74,_0x194f79]),await this[_0x4cf1e6(0x4b3)](_0x253a74),{'name':_0x253a74};}async[_0x4b0f4e(0x7a1)](_0x22cddf,_0x1c26fd){const _0x1a2577=_0x4b0f4e,_0x250905=Date[_0x1a2577(0x55e)]()+0x7d0;for(;;){try{return this['_n'](_0x22cddf,_0x1c26fd);}catch(_0x39c1a5){if(_0x39c1a5?.[_0x1a2577(0x649)]!==_0x1a2577(0x121)||Date[_0x1a2577(0x55e)]()>=_0x250905)throw _0x39c1a5;await new Promise(_0x1412ab=>setTimeout(_0x1412ab,0x32));}}}async[_0x4b0f4e(0x4b3)](_0x28e22a){const _0x5ac5ab=_0x4b0f4e,_0x592e96=this[_0x5ac5ab(0x78b)][_0x5ac5ab(0x5df)][_0x5ac5ab(0x1e0)];while(this['_n'](_0x5ac5ab(0x37f),[_0x28e22a],![]))await _0x592e96[_0x5ac5ab(0x50d)](0xfa);try{this['_n'](_0x5ac5ab(0x499),[_0x28e22a],![]);}catch(_0x250c05){if(_0x250c05?.[_0x5ac5ab(0x649)]!==_0x5ac5ab(0x439)||_0x250c05['details']?.['reason']!==_0x5ac5ab(0x33b))throw _0x250c05;await this[_0x5ac5ab(0x692)](_0x28e22a);}}async['_awaitPeerBuild'](_0xee7ae3){const _0x6ae78c=_0x4b0f4e,_0x3018a0=this[_0x6ae78c(0x78b)][_0x6ae78c(0x5df)][_0x6ae78c(0x1e0)];let _0x4b6366=0x0,_0xba695e='',_0x20f077=Date[_0x6ae78c(0x55e)]();for(;;){if(this['_n'](_0x6ae78c(0x37f),[_0xee7ae3],![]))return this[_0x6ae78c(0x4b3)](_0xee7ae3);const _0xc4cf64=this[_0x6ae78c(0x2b6)](_0xee7ae3);if(!_0xc4cf64)throw Object[_0x6ae78c(0x3eb)](new Error(_0x6ae78c(0x6e6)+_0xee7ae3+_0x6ae78c(0x210)),{'code':'VIEW_NOT_FOUND'});const _0x77d242=_0xc4cf64[_0x6ae78c(0xd2)],_0x36050d=_0xc85821=>_0xc85821==='creating'||_0xc85821==='resetting',_0x4cdb0d=Object['values'](_0xc4cf64[_0x6ae78c(0x39e)]?.[_0x6ae78c(0x265)]??{})['some'](_0x5f1409=>_0x36050d(_0x5f1409?.[_0x6ae78c(0xd2)])),_0x384894=_0x36050d(_0x77d242)||_0x77d242===_0x6ae78c(0x186)&&(_0xc4cf64[_0x6ae78c(0x52f)]!=null||_0x4cdb0d);if(!_0x384894){if(_0x77d242===_0x6ae78c(0x47f)||_0x77d242==='partially-ready')return;throw Object[_0x6ae78c(0x3eb)](new Error(_0x6ae78c(0x6e6)+_0xee7ae3+_0x6ae78c(0x7a2)+_0x77d242+'\x22'+(_0xc4cf64[_0x6ae78c(0xdb)]?':\x20'+_0xc4cf64[_0x6ae78c(0xdb)]:'')),{'code':_0x6ae78c(0x78f),'details':{'name':_0xee7ae3,'state':_0x77d242}});}const _0x1fd8c0=JSON['stringify'](_0xc4cf64);if(_0x1fd8c0!==_0xba695e)_0xba695e=_0x1fd8c0,_0x20f077=Date[_0x6ae78c(0x55e)]();else{if(!this[_0x6ae78c(0x78b)][_0x6ae78c(0x5df)][_0x6ae78c(0x17c)]?.['processors']&&Date['now']()-_0x20f077>0x927c0)throw Object['assign'](new Error(_0x6ae78c(0x6e6)+_0xee7ae3+'\x22:\x20the\x20build\x20another\x20process\x20took\x20over\x20made\x20no\x20progress\x20for\x2010\x20min'),{'code':'VIEW_BUILD_STALLED','details':{'name':_0xee7ae3}});}Date[_0x6ae78c(0x55e)]()>=_0x4b6366&&this[_0x6ae78c(0x78b)][_0x6ae78c(0x5df)][_0x6ae78c(0x17c)]?.[_0x6ae78c(0x790)]&&(_0x4b6366=Date[_0x6ae78c(0x55e)]()+0x3e8,await this[_0x6ae78c(0x14a)]({'skipReadyRescan':!![]})[_0x6ae78c(0x2fc)](()=>{})),await _0x3018a0['nextTurn'](0xfa);}}[_0x4b0f4e(0x576)](_0x4da1ec,_0x1dc553={}){const _0xf133cc=_0x4b0f4e,_0x4df8ff=this['_n'](_0xf133cc(0x576),[_0x4da1ec,{'preview':_0x1dc553?.[_0xf133cc(0x276)]??{}}],![]);if(_0x4df8ff==null)return null;const _0x357ec9=this['_n'](_0xf133cc(0x53c),[_0x4da1ec],![]);if(!_0x357ec9)return _0x4df8ff;const _0x18f2d8=_0x55cf3d=>(_0x288d0c={})=>this['_n'](_0xf133cc(0xe8),[_0x4da1ec,_0x55cf3d,_0x288d0c],![]);if(_0x357ec9[_0xf133cc(0x2ab)]){_0x4df8ff[_0xf133cc(0xe8)]=_0x18f2d8({'kind':_0xf133cc(0x2ab)});for(const _0x321740 of _0x357ec9['reducers']){if(!_0x321740[_0xf133cc(0xe8)])continue;if(_0x321740[_0xf133cc(0x49e)]){const _0x46dee7=_0x4df8ff[_0x321740[_0xf133cc(0x397)]];if(_0x46dee7?.['preview']&&Array[_0xf133cc(0x28e)](_0x46dee7['preview'])){for(const _0x3603c1 of _0x46dee7['preview'])_0x3603c1[_0xf133cc(0xe8)]=_0x18f2d8({'kind':_0xf133cc(0x611),'reducer':_0x321740['name'],'key':_0x3603c1[_0xf133cc(0x4fc)]});}}else _0x4df8ff[_0x321740['name']]&&(_0x4df8ff[_0x321740[_0xf133cc(0x397)]][_0xf133cc(0xe8)]=_0x18f2d8({'kind':_0xf133cc(0x215),'reducer':_0x321740[_0xf133cc(0x397)]}));}}for(const _0x466971 of _0x357ec9[_0xf133cc(0x265)]){if(!_0x466971[_0xf133cc(0x2ab)])continue;const _0x2e61dc=_0x4df8ff[_0x466971['name']];if(!_0x2e61dc||typeof _0x2e61dc!==_0xf133cc(0x57c))continue;_0x2e61dc[_0xf133cc(0xe8)]=_0x18f2d8({'kind':'view','ref':_0x466971[_0xf133cc(0x397)]});for(const _0x1608d0 of _0x466971['reducers']){if(!_0x1608d0[_0xf133cc(0xe8)])continue;if(_0x1608d0['grouped']){const _0x3b504c=_0x2e61dc[_0x1608d0[_0xf133cc(0x397)]];if(_0x3b504c?.[_0xf133cc(0x276)]&&Array[_0xf133cc(0x28e)](_0x3b504c[_0xf133cc(0x276)])){for(const _0x1ce7f2 of _0x3b504c[_0xf133cc(0x276)])_0x1ce7f2[_0xf133cc(0xe8)]=_0x18f2d8({'kind':_0xf133cc(0x611),'ref':_0x466971[_0xf133cc(0x397)],'reducer':_0x1608d0['name'],'key':_0x1ce7f2['key']});}}else _0x2e61dc[_0x1608d0[_0xf133cc(0x397)]]&&(_0x2e61dc[_0x1608d0['name']]['items']=_0x18f2d8({'kind':_0xf133cc(0x215),'ref':_0x466971[_0xf133cc(0x397)],'reducer':_0x1608d0[_0xf133cc(0x397)]}));}}return _0x4df8ff;}['getMeta'](_0x49f870){const _0x50459d=_0x4b0f4e;return this['_n'](_0x50459d(0x2b6),[_0x49f870],![]);}[_0x4b0f4e(0xdf)](_0x5d894f,_0x352b5c={}){const _0x1f020a=_0x4b0f4e;return this['_n'](_0x1f020a(0xdf),[_0x5d894f,_0x352b5c],![]);}['range'](_0x27adfe,_0x522190={}){const _0x176be4=_0x4b0f4e;return this['_n'](_0x176be4(0x3c4),[_0x27adfe,_0x522190],![]);}[_0x4b0f4e(0x5c7)](_0x447dc8,_0x113a7d={}){const _0x2cff7d=_0x4b0f4e;return this['_n'](_0x2cff7d(0x5c7),[_0x447dc8,_0x113a7d],![]);}async[_0x4b0f4e(0x5b2)](){const _0x27c664=_0x4b0f4e;return this['_n'](_0x27c664(0x5b2),[],![]);}async['getDefinition'](_0x2f5dd8){const _0x1dd8e3=_0x4b0f4e;return this['_n'](_0x1dd8e3(0x682),[_0x2f5dd8],![])??null;}async[_0x4b0f4e(0x228)](_0x575ca8,_0x3d96e9={}){const _0x4e9da7=_0x4b0f4e;return this['_n'](_0x4e9da7(0x228),[_0x575ca8,_0x3d96e9]);}async[_0x4b0f4e(0x415)](_0x2e4b6c){const _0x17d75b=_0x4b0f4e;return this['_n'](_0x17d75b(0x415),[_0x2e4b6c]);}async[_0x4b0f4e(0x6ae)](_0xc61f3){const _0x13f15b=_0x4b0f4e;await this[_0x13f15b(0x7a1)](_0x13f15b(0x28d),[_0xc61f3]),await this[_0x13f15b(0x4b3)](_0xc61f3);}async[_0x4b0f4e(0x4d4)](_0x3e9d23){const _0x36ff7e=_0x4b0f4e;await this[_0x36ff7e(0x7a1)](_0x36ff7e(0x19c),[_0x3e9d23]),await this['_awaitBuild'](_0x3e9d23);}async[_0x4b0f4e(0x4fe)](_0x4a2642){const _0x1874f4=_0x4b0f4e;await this[_0x1874f4(0x7a1)](_0x1874f4(0x45f),[_0x4a2642]),await this[_0x1874f4(0x4b3)](_0x4a2642);}['registerReducer'](_0x41d15b,_0x3f154f={}){const _0x392b9f=_0x4b0f4e;return this['_n'](_0x392b9f(0x3ea),[_0x41d15b,{'apply':_0x3f154f&&_0x3f154f['apply']}]);}}return views={'OKDBViews':_0x34ed01},views;}var queue,hasRequiredQueue;function requireQueue(){const _0x432a11=_0x5186d4;if(hasRequiredQueue)return queue;hasRequiredQueue=0x1;const {OKDBError:_0x147426}=requireErrors(),_0x3a7abb=requireBridge();class _0x5c5e8d{constructor(_0x2465bf){const _0x16daf8=_0x458f;this['env']=_0x2465bf,this[_0x16daf8(0x5df)]=_0x2465bf[_0x16daf8(0x5df)],this[_0x16daf8(0x23f)]=_0x2465bf[_0x16daf8(0x5df)][_0x16daf8(0x23f)][_0x16daf8(0xe4)]({'feature':_0x16daf8(0x30b)}),this[_0x16daf8(0x75b)]=new Set();}['_n'](_0x28daef,_0x577550,_0x3e1ee1=!![]){const _0x537f29=_0x458f;return this[_0x537f29(0x5df)][_0x537f29(0x463)](_0x537f29(0x30b),this[_0x537f29(0x78b)][_0x537f29(0x397)],_0x28daef,_0x577550,_0x3e1ee1);}['_w'](_0x5f5d1d,_0x46e6f0){const _0x144d13=_0x458f;return this[_0x144d13(0x5df)][_0x144d13(0x29b)](this['_n'](_0x5f5d1d,_0x46e6f0));}async[_0x432a11(0x7ca)](){const _0x56f32d=_0x432a11;return this['_n'](_0x56f32d(0x71f),[]);}async[_0x432a11(0x5b2)](_0x1f3077={}){const _0x27b2c2=_0x432a11;return this['_n'](_0x27b2c2(0x5b2),[_0x1f3077],![]);}get[_0x432a11(0x487)](){const _0x27617d=_0x432a11,{RawDb:_0x2b8128}=requireRawdb();return this[_0x27617d(0x672)]||(this[_0x27617d(0x672)]=new _0x2b8128(this[_0x27617d(0x78b)],_0x27617d(0xed)));}async[_0x432a11(0x56c)](){const _0x3b2209=_0x432a11;return this['_w'](_0x3b2209(0x373),[]);}async[_0x432a11(0x7a4)](_0x36411b,_0x2764ca,_0x3c9219={}){const _0x2213ae=_0x432a11,{txn:_0x13822a,..._0x63a539}=_0x3c9219||{};if(_0x13822a)return this['_enqueueInTxn'](_0x13822a,_0x36411b,_0x2764ca,_0x63a539);const _0x1346bb=this[_0x2213ae(0x5df)][_0x2213ae(0x298)];if(_0x1346bb&&_0x1346bb[_0x2213ae(0x30b)][_0x2213ae(0x5f6)])_0x1346bb['commit']();const _0x953c71=this['_n']('enqueueClaim',[_0x36411b,_0x2764ca,_0x63a539],![]);return this[_0x2213ae(0x5df)][_0x2213ae(0x29b)](_0x953c71['id'])['then'](_0x154180=>{const _0x2ccba2=_0x2213ae;if(_0x953c71[_0x2ccba2(0x623)])this[_0x2ccba2(0x5dd)](_0x36411b);else try{this[_0x2ccba2(0x5df)]['_pumper'][_0x2ccba2(0x58b)]();}catch{}return _0x154180;});}[_0x432a11(0x5dd)](_0x58cc5b){queueMicrotask(()=>{const _0x5f4508=_0x458f;try{this['_n'](_0x5f4508(0x231),[_0x58cc5b]);}catch{}});}[_0x432a11(0x150)](_0x56b0d3,_0x38fa26,_0x195634,_0x2841e0){const _0x3d656b=_0x432a11,_0x4a5f26=_0x56b0d3[_0x3d656b(0x644)]??_0x56b0d3;if(_0x4a5f26[_0x3d656b(0x7bf)])throw new _0x147426(_0x3d656b(0x43a),'TXN_CLOSED');if(_0x4a5f26[_0x3d656b(0x5df)]&&_0x4a5f26[_0x3d656b(0x5df)]!==this[_0x3d656b(0x78b)]&&_0x4a5f26[_0x3d656b(0x5df)][_0x3d656b(0x397)]!==this['env'][_0x3d656b(0x397)])throw new _0x147426(_0x3d656b(0x5cd),_0x3d656b(0x570),{'txnEnv':_0x4a5f26[_0x3d656b(0x5df)][_0x3d656b(0x397)],'queueEnv':this['env'][_0x3d656b(0x397)]});const _0xa971ac=this['_n'](_0x3d656b(0xca),[_0x38fa26,_0x195634,_0x2841e0],![]);if(_0xa971ac[_0x3d656b(0x457)])return _0xa971ac['id'];if(_0xa971ac['release'])_0x56b0d3[_0x3d656b(0x37c)]('~queue_jobs',_0xa971ac[_0x3d656b(0x36a)][_0x3d656b(0x4fc)],_0xa971ac['release'][_0x3d656b(0x27a)],{'ifVersion':_0xa971ac['release'][_0x3d656b(0x28c)]});if(_0x195634!==undefined)_0x56b0d3[_0x3d656b(0x540)](_0x3d656b(0x796),_0xa971ac['id'],_0x195634);_0x56b0d3['put'](_0x3d656b(0x6a6),_0xa971ac['id'],_0xa971ac['job']);if(typeof _0x4a5f26['onDo']===_0x3d656b(0x5a8))_0x4a5f26[_0x3d656b(0x2f5)](()=>{const _0xbea689=_0x3d656b;if(this['_n']('announceEnqueued',[_0xa971ac['id'],_0x38fa26,_0xa971ac[_0xbea689(0x199)],_0xa971ac[_0xbea689(0x717)]]))this[_0xbea689(0x5dd)](_0x38fa26);});return _0xa971ac['id'];}async[_0x432a11(0x6ee)](_0x14944a,_0x258b95={}){const _0x3619c5=_0x432a11;if(typeof _0x14944a!==_0x3619c5(0x48a)||!_0x14944a)throw new _0x147426(_0x3619c5(0x76c),_0x3619c5(0x32c));return this['_w'](_0x3619c5(0x6ee),[_0x14944a,_0x258b95]);}async['markJobHeartbeat'](_0xe772b8,_0x44677a,_0x4f627b=null){const _0x394684=_0x432a11;return this['_w'](_0x394684(0x29d),[_0xe772b8,_0x44677a,_0x4f627b]);}async[_0x432a11(0x472)](_0x1a012e,_0x5888f2,_0x219af3=null){const _0x4f218e=_0x432a11;return this[_0x4f218e(0x29d)](_0x1a012e,_0x5888f2,_0x219af3);}async[_0x432a11(0x35d)](_0x578235,_0x2df4bb,_0x3870c7){const _0x688800=_0x432a11;return this['_w'](_0x688800(0x35d),[_0x578235,_0x2df4bb,_0x3870c7]);}async['markJobComplete'](_0x14ab74,_0x13aa4c,_0x328a4c){const _0x422e0c=_0x432a11;return this['_w'](_0x422e0c(0x47a),[_0x14ab74,_0x13aa4c,_0x328a4c]);}async[_0x432a11(0x6da)](_0x1d9664,_0x6f7046,_0x1a58f3){const _0x1c7711=_0x432a11;return this[_0x1c7711(0x47a)](_0x1d9664,_0x6f7046,_0x1a58f3);}async[_0x432a11(0x556)](_0x2b5200,_0x383f22,_0x4be483,_0x47ff47){const _0x4e046c=_0x432a11,_0x1c97d5=_0x4be483 instanceof Error?{'message':_0x4be483[_0x4e046c(0xe9)],'stack':_0x4be483[_0x4e046c(0x709)]}:_0x4be483;return this['_w'](_0x4e046c(0x556),[_0x2b5200,_0x383f22,_0x1c97d5,_0x47ff47]);}async['failJob'](_0x5c3ada,_0x50a550,_0x3cf667,_0x2996a0){return this['markJobFail'](_0x5c3ada,_0x50a550,_0x3cf667,_0x2996a0);}async['releaseClaim'](_0x22de67,_0x18f42a,_0x5dc0d1={}){const _0x44c01b=_0x432a11;return this['_w'](_0x44c01b(0x481),[_0x22de67,_0x18f42a,_0x5dc0d1]);}async[_0x432a11(0x4fa)](_0x400614){const _0x8664f8=_0x432a11;return this['_n'](_0x8664f8(0x4fa),[_0x400614],![]);}async[_0x432a11(0x652)](_0x3516f7,_0x5ca787={},_0x1e1726={}){const _0x56ce16=_0x432a11,_0xd62d3d=_0x1e1726&&_0x1e1726[_0x56ce16(0x778)];if(!_0xd62d3d)return this['_w']('updateJob',[_0x3516f7,_0x5ca787]);const {next:_0x50c743,version:_0x329b2e}=this['_n']('planUpdateJob',[_0x3516f7,_0x5ca787],![]);_0xd62d3d['update'](_0x56ce16(0x6a6),_0x3516f7,_0x50c743,{'ifVersion':_0x329b2e});let _0x5d5e0e;if(_0x56ce16(0x403)in _0x5ca787){if(_0x5ca787['payload']===undefined){if(this['env'][_0x56ce16(0x45e)](_0x56ce16(0x796),_0x3516f7))_0xd62d3d[_0x56ce16(0x228)](_0x56ce16(0x796),_0x3516f7);}else _0xd62d3d[_0x56ce16(0x540)](_0x56ce16(0x796),_0x3516f7,_0x5ca787[_0x56ce16(0x403)]);_0x5d5e0e=_0x5ca787[_0x56ce16(0x403)];}else _0x5d5e0e=this[_0x56ce16(0x78b)][_0x56ce16(0x576)](_0x56ce16(0x796),_0x3516f7);return{..._0x50c743,'payload':_0x5d5e0e};}async['removeJob'](_0x2ceaa6,_0x6d6604={}){const _0x2bd798=_0x432a11,_0x387fad=_0x6d6604&&_0x6d6604[_0x2bd798(0x778)];if(!_0x387fad)return this['_w'](_0x2bd798(0x3cc),[_0x2ceaa6]);if(!_0x2ceaa6)throw new _0x147426(_0x2bd798(0x36f),_0x2bd798(0x32c));if(!this[_0x2bd798(0x78b)][_0x2bd798(0x45e)](_0x2bd798(0x6a6),_0x2ceaa6))return![];_0x387fad[_0x2bd798(0x228)](_0x2bd798(0x6a6),_0x2ceaa6);if(this['env']['getEntry'](_0x2bd798(0x796),_0x2ceaa6))_0x387fad[_0x2bd798(0x228)](_0x2bd798(0x796),_0x2ceaa6);if(typeof _0x387fad['onDo']===_0x2bd798(0x5a8))_0x387fad[_0x2bd798(0x2f5)](()=>this['_n'](_0x2bd798(0x5c6),[_0x2ceaa6]));return!![];}async[_0x432a11(0x4c3)](_0x3f1fc9){return this['_w']('cancelJob',[_0x3f1fc9]);}async['retryJob'](_0x43a29b){const _0x54ee01=_0x432a11;return this['_w'](_0x54ee01(0x6d5),[_0x43a29b]);}async[_0x432a11(0xb4)](_0x507eb6,_0x71cac3,_0x298bf4){const _0x4ac000=_0x432a11,_0x44b307=this['_n'](_0x4ac000(0x230),[_0x71cac3??null,_0x298bf4??0x0,_0x507eb6]),_0x4f2609=0x1f4;for(let _0x168a49=0x0;_0x168a49<_0x44b307['length'];_0x168a49+=_0x4f2609){this['_n'](_0x4ac000(0x217),[_0x44b307[_0x4ac000(0x1be)](_0x168a49,_0x168a49+_0x4f2609),_0x168a49,_0x44b307[_0x4ac000(0x5f6)],_0x71cac3??null]);if(_0x168a49+_0x4f2609<_0x44b307[_0x4ac000(0x5f6)])await new Promise(_0x2b66b8=>setImmediate(_0x2b66b8));}return this['_n']('emitClearDone',[_0x44b307[_0x4ac000(0x5f6)],_0x71cac3??null]),await new Promise(_0x4e4465=>setImmediate(_0x4e4465)),_0x44b307[_0x4ac000(0x5f6)];}async[_0x432a11(0xc1)](_0x1eb877,_0x48ab77){const _0x4cea22=_0x432a11;return this[_0x4cea22(0xb4)](_0x4cea22(0x4d9),_0x1eb877,_0x48ab77);}async[_0x432a11(0x2ad)](_0x2026b2,_0x366c1f){const _0xcfae05=_0x432a11;return this['_clearChunked'](_0xcfae05(0x30c),_0x2026b2,_0x366c1f);}async['retryFailed'](_0x5a3e87,_0x5acd41){const _0x2c715d=_0x432a11;return this['_w'](_0x2c715d(0x52b),[_0x5a3e87??null,_0x5acd41??0x0]);}async[_0x432a11(0x62e)](_0x2c3c1b,_0x34fecd){return this['_w']('clearStuck',[_0x2c3c1b??null,_0x34fecd??0x0]);}async[_0x432a11(0x344)](_0x4f7f70,_0x3b7932,_0x2a9675){const _0x27aa29=_0x432a11;return this['_w'](_0x27aa29(0x344),[_0x4f7f70,_0x3b7932,_0x2a9675]);}async[_0x432a11(0x1e9)](_0x34f90a,_0x13d957={}){const _0x540d76=_0x432a11;return this['_n'](_0x540d76(0x1e9),[_0x34f90a,_0x13d957],![]);}async[_0x432a11(0x183)](_0x43094f,_0x15bddf={}){const _0x53c25b=_0x432a11,{txn:_0x453ff6,..._0xb5e69b}=_0x15bddf||{};if(!_0x453ff6)return this['_w']('addBucket',[_0x43094f,_0xb5e69b]);const _0x4ef0ae=(_0x4a92a4,_0x10a489,_0x13861f,_0x1a35e5)=>{const _0x412c36=_0x458f,_0x2303c3=Math[_0x412c36(0x2aa)](Number(_0x4a92a4));return Number['isFinite'](_0x2303c3)?Math[_0x412c36(0x4b5)](_0x1a35e5,Math[_0x412c36(0x7f0)](_0x13861f,_0x2303c3)):_0x10a489;},_0x4ee162=typeof _0x43094f===_0x53c25b(0x48a)?_0x43094f['trim']():'';if(!_0x4ee162)throw new Error(_0x53c25b(0xdd));const _0xd705af=_0x4ef0ae(_0xb5e69b[_0x53c25b(0x122)],0x0,0x0,0x3b9aca00);_0x453ff6['put'](_0x53c25b(0x4f4),_0x4ee162,{'id':_0x4ee162,'tokens':_0x4ef0ae(_0xb5e69b[_0x53c25b(0xaf)],_0xd705af,0x0,_0xd705af),'capacity':_0xd705af,'refill_amount':_0x4ef0ae(_0xb5e69b[_0x53c25b(0x41a)],0x0,0x0,0x3b9aca00),'refill_every':_0x4ef0ae(_0xb5e69b[_0x53c25b(0xee)],0x0,0x0,0x16d*0x18*0x36ee80),'updated':Date['now']()});}async['updateBucket'](_0x4fd0fe,_0x2c1236){return this['_w']('updateBucket',[_0x4fd0fe,_0x2c1236]);}async['removeBucket'](_0x486a65){const _0x1de365=_0x432a11;return this['_w'](_0x1de365(0x3dd),[_0x486a65]);}[_0x432a11(0x12b)](_0xf05d43){const _0x5c5260=_0x432a11,_0x345853=this['_n'](_0x5c5260(0x12b),[_0xf05d43],![]);return _0x345853===null&&typeof _0xf05d43===_0x5c5260(0x48a)&&_0xf05d43['trim']()?undefined:_0x345853;}async['tryClaimTokens'](_0x3267d8,_0x15bcb3){const _0x3958da=_0x432a11;return this['_w'](_0x3958da(0x32a),[_0x3267d8,_0x15bcb3]);}async[_0x432a11(0x41e)](_0x10e751,_0x3f3e6b={}){const _0xbd98d2=_0x432a11;return this['_w'](_0xbd98d2(0x41e),[_0x10e751,_0x3f3e6b]);}async[_0x432a11(0x670)](_0x4ed129){const _0x56d252=_0x432a11;return this['_n'](_0x56d252(0x670),[_0x4ed129],![]);}async[_0x432a11(0xfd)](){return this['_n']('listJobTypes',[],![]);}async[_0x432a11(0x79c)](_0x457d48){const _0x593d5b=_0x432a11;return this['_w'](_0x593d5b(0x79c),[_0x457d48]);}['pauseJobType'](_0x5f2533){const _0x2578cd=_0x432a11;return this['_n'](_0x2578cd(0x715),[_0x5f2533]);}[_0x432a11(0x696)](_0x39310c){const _0x2ccd36=_0x432a11;return this['_n'](_0x2ccd36(0x696),[_0x39310c]);}[_0x432a11(0x198)](_0x422b16){const _0x567f5f=_0x432a11;return this['_n'](_0x567f5f(0x198),[_0x422b16]);}async['setJobTypeSchema'](_0x2b0144,_0xf38428,_0x3e2aa0=![]){const _0x4460a0=_0x432a11;return this['_w'](_0x4460a0(0x6c8),[_0x2b0144,_0xf38428,_0x3e2aa0]);}async['removeJobTypeSchema'](_0x246e0a){const _0x10077d=_0x432a11;return this['_w'](_0x10077d(0x3a8),[_0x246e0a]);}async[_0x432a11(0x4dc)](_0x4f1c71,_0x2782cf=0x5){return this['_n']('samplePayloads',[_0x4f1c71,_0x2782cf],![]);}async['_reconcile'](_0x24611d){const _0x56a1eb=_0x432a11;return this['_n'](_0x56a1eb(0x4e0),[_0x24611d]);}async[_0x432a11(0x746)](_0x4be229=0x7530){const _0x290353=_0x432a11;await Promise['allSettled']([...this[_0x290353(0x75b)]][_0x290353(0x25e)](_0x4a5580=>_0x4a5580[_0x290353(0x415)](_0x4be229)));const _0x2ca3ab=this['_n'](_0x290353(0x746),[0x0]);return this['_workers'][_0x290353(0x635)](),_0x2ca3ab;}async['killAll'](){const _0x3bea90=_0x432a11,_0x32bf45=this['_n'](_0x3bea90(0x554),[]);return this[_0x3bea90(0x75b)]['clear'](),_0x32bf45;}[_0x432a11(0xf4)](_0xbf5bad,_0x17a3d0,_0x1f0b8b){const _0x19789e=_0x432a11;let _0x4d4020,_0x3d2e0e;if(Array[_0x19789e(0x28e)](_0xbf5bad)){if(typeof _0x17a3d0==='function')throw new _0x147426(_0x19789e(0x753),'BAD_PARAM');_0x3d2e0e=_0x17a3d0??{};if(_0x3d2e0e[_0x19789e(0x11b)]!=null&&typeof _0x3d2e0e[_0x19789e(0x11b)]!==_0x19789e(0x5a8))throw new _0x147426(_0x19789e(0x50e),'BAD_PARAM');if(_0xbf5bad[_0x19789e(0x5f6)]===0x0)throw new _0x147426(_0x19789e(0x35c),_0x19789e(0x32c));_0x4d4020=_0xbf5bad[_0x19789e(0x25e)](_0x4fd2e5=>{const _0x5797f6=_0x19789e;if(!_0x4fd2e5||typeof _0x4fd2e5[_0x5797f6(0x170)]!=='string'||!_0x4fd2e5['type'])throw new _0x147426(_0x5797f6(0x6c1),_0x5797f6(0x32c));if(typeof _0x4fd2e5[_0x5797f6(0x5ab)]!==_0x5797f6(0x5a8))throw new _0x147426('process()\x20entry\x20\x22'+_0x4fd2e5['type']+_0x5797f6(0x23c),_0x5797f6(0x32c));return{..._0x4fd2e5};});}else{_0x3d2e0e=_0x1f0b8b??{};if(typeof _0x17a3d0!==_0x19789e(0x5a8))throw new _0x147426(_0x19789e(0x336)+_0xbf5bad+_0x19789e(0x23c),_0x19789e(0x32c));_0x4d4020=[{'type':_0xbf5bad,'handler':_0x17a3d0,..._0x1f0b8b??{}}];}const _0x259203=this[_0x19789e(0x5df)];for(const _0x1a326d of _0x4d4020){const _0x13e515=_0x1a326d[_0x19789e(0x5ab)];_0x1a326d[_0x19789e(0x5ab)]=function(..._0x581ddd){const _0x180b66=_0x19789e;return _0x259203['_afterDurable']()[_0x180b66(0x5eb)](()=>_0x13e515[_0x180b66(0x36b)](this,_0x581ddd));};}const _0x5baba2=this['_n']('process',[_0x4d4020,_0x3d2e0e]),_0x1722af=this,_0x49b5e7={'id':_0x5baba2['id'],'type':_0x5baba2[_0x19789e(0x170)],get 'running'(){const _0x265352=_0x19789e;return _0x1722af['_n'](_0x265352(0x4ee),[_0x5baba2['id']],![])[_0x265352(0x600)];},'isRunning'(){const _0x46c6bd=_0x19789e;return _0x1722af['_n'](_0x46c6bd(0x4ee),[_0x5baba2['id']],![])[_0x46c6bd(0x600)];},async 'stop'(_0x10a7d0=0x7530){const _0x2e9fc8=_0x19789e;_0x1722af['_n'](_0x2e9fc8(0x558),[_0x5baba2['id']]);const _0xc60703=Date['now']()+_0x10a7d0;while(_0x1722af['_n'](_0x2e9fc8(0x4ee),[_0x5baba2['id']],![])['inFlight']>0x0&&Date[_0x2e9fc8(0x55e)]()<_0xc60703)await new Promise(_0x42f7ac=>setTimeout(_0x42f7ac,0x2));_0x1722af['_n']('stopWorkerAbort',[_0x5baba2['id']]),_0x3a7abb[_0x2e9fc8(0x407)](),_0x1722af['_workers'][_0x2e9fc8(0x32d)](_0x49b5e7);},async 'kill'(){const _0x1c2427=_0x19789e;_0x1722af['_n']('killWorker',[_0x5baba2['id']]),_0x1722af[_0x1c2427(0x75b)][_0x1c2427(0x32d)](_0x49b5e7);}};return this[_0x19789e(0x75b)][_0x19789e(0x5b5)](_0x49b5e7),_0x49b5e7;}[_0x432a11(0x758)](_0x32ff1f){const _0x283964=_0x432a11;throw new _0x147426(_0x283964(0x11d)+_0x32ff1f+_0x283964(0x6fa)+_0x32ff1f+_0x283964(0x5de),_0x283964(0xba));}['spawn'](_0x3cb8f6){const _0x17c248=_0x432a11;return this[_0x17c248(0x758)](_0x3cb8f6);}}return queue={'OKDBQueue':_0x5c5e8d},queue;}var timemachine,hasRequiredTimemachine;function requireTimemachine(){const _0x36104d=_0x5186d4;if(hasRequiredTimemachine)return timemachine;hasRequiredTimemachine=0x1;const {fromArray:_0x34cdcf}=requireIterable();class _0x1713f4{constructor(_0x4f7a73){const _0x416b06=_0x458f;this['env']=_0x4f7a73,this['okdb']=_0x4f7a73[_0x416b06(0x5df)];const _0x2f2992=(_0x568c4b,_0x5503af)=>this['_n'](_0x568c4b,_0x5503af,![]);this[_0x416b06(0x7cf)]={'getDiffs':(_0x27bdfe,_0x385646,_0x32caa1)=>_0x2f2992('storeGetDiffs',[_0x27bdfe,_0x385646,_0x32caa1||{}]),'hasDiff':(_0xdfe2b8,_0x212880,_0x1de7e0)=>_0x2f2992('storeHasDiff',[_0xdfe2b8,_0x212880,_0x1de7e0]),'getHead':(_0x220b15,_0x4306a5)=>_0x2f2992('storeGetHead',[_0x220b15,_0x4306a5])??null,'getHeadCount':_0x4d0af5=>_0x2f2992(_0x416b06(0x640),[_0x4d0af5]),'getTotalHeadCount':()=>_0x2f2992(_0x416b06(0x2e4),[]),'getDiffsInRange':(_0x54c70f,_0x11a8a0,_0xb09f07)=>_0x2f2992(_0x416b06(0x12c),[_0x54c70f??null,_0x11a8a0,_0xb09f07]),'getConfig':()=>_0x2f2992('storeGetConfig',[])??null,'getCursor':()=>this['_n'](_0x416b06(0x7cb),[],![])??null,get 'db'(){try{return _0x2f2992('storeGetTotalHeadCount',[]),{};}catch{return null;}}};}get['_registrations'](){const _0x499e9c=_0x458f,_0x104dc8=(this['env'][_0x499e9c(0x1aa)]?.[_0x499e9c(0x5b2)]?.()||[])[_0x499e9c(0x127)](_0x54c150=>String(_0x54c150[_0x499e9c(0x732)]||'')[_0x499e9c(0x377)](_0x499e9c(0x304)))[_0x499e9c(0x5f6)];return{'size':_0x104dc8};}['_n'](_0x1a84ad,_0x3f1766,_0x356184=!![]){const _0x2f4a0e=_0x458f;return this[_0x2f4a0e(0x5df)][_0x2f4a0e(0x463)]('tm',this[_0x2f4a0e(0x78b)]['name'],_0x1a84ad,_0x3f1766,_0x356184);}async[_0x36104d(0x676)](_0x43b6d1){const _0x2c67f2=_0x36104d;return this['_n'](_0x2c67f2(0x676),[_0x43b6d1??null]);}async[_0x36104d(0x3ab)](_0x468bbc){const _0x4cd624=_0x36104d;return this['_n'](_0x4cd624(0x3ab),[_0x468bbc??null]);}async[_0x36104d(0x2a9)](){const _0x142cf4=_0x36104d;return this['_n'](_0x142cf4(0x2a9),[]);}async[_0x36104d(0x6b4)](){const _0x3204b2=_0x36104d;return this['_n'](_0x3204b2(0x6b4),[]);}async[_0x36104d(0x125)](_0x5d2019){return this['_n']('drop',[_0x5d2019??null]);}async[_0x36104d(0x18a)](){return this['_n']('dropAll',[]);}['isEnabled'](_0x3cdb3a){return this['_n']('isEnabled',[_0x3cdb3a??null],![]);}[_0x36104d(0x5b2)](){const _0x4e9537=_0x36104d;return this['_n'](_0x4e9537(0x5b2),[],![]);}[_0x36104d(0x26e)](_0x10051a){const _0x2a3f00=_0x36104d;return this['_n'](_0x2a3f00(0x26e),[_0x10051a??null],![]);}[_0x36104d(0x3bc)](_0x69fda8){const _0x33034b=_0x36104d;if(!_0x69fda8)return this['_n'](_0x33034b(0x7cb),[],![]);return this['_n']('getCursor',[_0x69fda8],![]);}[_0x36104d(0x7cb)](){const _0x2e9c85=_0x36104d;return this['_n'](_0x2e9c85(0x7cb),[],![]);}[_0x36104d(0x20f)](_0x5302fb,_0x40b4b6,_0x326106){const _0x267b9c=_0x36104d;return this['_n'](_0x267b9c(0x20f),[_0x5302fb,_0x40b4b6,_0x326106],![]);}[_0x36104d(0x6c4)](_0xb4e6c2,_0xe8d0a3,_0x5bedda){const _0x316bba=_0x36104d;return this['_n'](_0x316bba(0x6c4),[_0xb4e6c2,_0xe8d0a3,_0x5bedda||{}],![]);}[_0x36104d(0x232)](_0x5bca7b,_0x2fc79f,_0x3a9a42){const _0x5f0209=_0x36104d;return this['_n'](_0x5f0209(0x232),[_0x5bca7b??null,_0x2fc79f,_0x3a9a42],![])[Symbol[_0x5f0209(0x16f)]]();}async['flush'](_0x1e7934){const _0x34ddf2=_0x36104d;return this['_n'](_0x34ddf2(0x6e3),[_0x1e7934??null]);}}return timemachine={'OKDBTimeMachine':_0x1713f4},timemachine;}var files,hasRequiredFiles;function requireFiles(){const _0x3a5e7b=_0x5186d4;if(hasRequiredFiles)return files;hasRequiredFiles=0x1;const _0x3d09e9=require$$0,{Readable:_0x5a8340}=require$$1,{OKDBError:_0x416c6f,optionsArg:_0x33f12e,invalidArgument:_0x37c196}=requireErrors(),{RawDb:_0xe9dd86}=requireRawdb();async function _0x116b54(_0x24d6d2){const _0x1610fd=_0x458f;if(Buffer[_0x1610fd(0x3c8)](_0x24d6d2))return _0x24d6d2;if(_0x24d6d2 instanceof Uint8Array)return Buffer[_0x1610fd(0x791)](_0x24d6d2);if(typeof _0x24d6d2==='string')return Buffer[_0x1610fd(0x791)](_0x24d6d2);const _0x58da9e=[];for await(const _0x3535c1 of _0x24d6d2)_0x58da9e['push'](Buffer[_0x1610fd(0x3c8)](_0x3535c1)?_0x3535c1:Buffer[_0x1610fd(0x791)](_0x3535c1));return Buffer[_0x1610fd(0x748)](_0x58da9e);}class _0x4b3d8b{constructor(_0x5a5b76){const _0x592849=_0x458f;this[_0x592849(0x78b)]=_0x5a5b76,this['okdb']=_0x5a5b76[_0x592849(0x5df)];}['_n'](_0x2062e2,_0x9beaa7,_0xab0b3e=!![]){const _0x55b9bf=_0x458f;return this['okdb']['_call'](_0x55b9bf(0x204),this[_0x55b9bf(0x78b)][_0x55b9bf(0x397)],_0x2062e2,_0x9beaa7,_0xab0b3e);}['start'](){return!![];}['stop'](){}async['_ensure'](){const _0x2247ae=_0x458f;this['_n'](_0x2247ae(0x71f),[]);}async['_writeBlob'](_0x14da58,_0x26a1ee){const _0x12520d=_0x458f;return this[_0x12520d(0x5df)][_0x12520d(0x29b)](this['_n'](_0x12520d(0x22f),[_0x14da58,await _0x116b54(_0x26a1ee)]));}get[_0x3a5e7b(0xe5)](){const _0x39ee0c=_0x3a5e7b;return this[_0x39ee0c(0x751)]||(this[_0x39ee0c(0x751)]=new _0xe9dd86(this[_0x39ee0c(0x78b)],_0x39ee0c(0x279)));}async[_0x3a5e7b(0x4a3)](_0x569dbe){const _0x562a37=_0x3a5e7b;return this['_blobStatusDb'][_0x562a37(0x1e6)](_0x569dbe);}async[_0x3a5e7b(0x342)](_0x244e46){const _0x562d87=_0x3a5e7b,{id:_0x1dc3cf,stream:_0xdd25e7,mime:mime=_0x562d87(0x3a3),path:_0x46b0d5='',txn:txn=null}=_0x33f12e(_0x244e46);if(!_0x1dc3cf)throw _0x37c196('files.upload:\x20id',_0x562d87(0x642),_0x1dc3cf);if(!_0xdd25e7)throw _0x37c196('files.upload:\x20stream','a\x20Buffer\x20or\x20readable\x20stream',_0xdd25e7);const _0x35fab9=await _0x116b54(_0xdd25e7);if(txn){const _0x14dc56=this['_n']('uploadTxn',[_0x1dc3cf,_0x35fab9,{'mime':mime,'path':_0x46b0d5}]);return txn['put'](_0x562d87(0x621),_0x1dc3cf,_0x14dc56[_0x562d87(0xc4)]),txn[_0x562d87(0x2f5)](()=>this['_n'](_0x562d87(0x3d0),[_0x14dc56['hook']])),txn[_0x562d87(0x683)](()=>this['_n'](_0x562d87(0x56d),[_0x14dc56[_0x562d87(0x6fe)]])),_0x14dc56[_0x562d87(0xc4)];}return this['okdb'][_0x562d87(0x29b)](this['_n']('upload',[_0x1dc3cf,_0x35fab9,{'mime':mime,'path':_0x46b0d5}]));}[_0x3a5e7b(0x576)](_0x32b01e){const _0x36b854=_0x3a5e7b;return this['_n'](_0x36b854(0x576),[_0x32b01e],![])??null;}[_0x3a5e7b(0x60e)](_0x3138d3){const _0x3fe5a6=_0x3a5e7b,_0x22e30b=this[_0x3fe5a6(0xac)](_0x3138d3);if(!_0x3d09e9[_0x3fe5a6(0x48b)](_0x22e30b))throw Object['assign'](new Error(_0x3fe5a6(0x756)+_0x3138d3),{'status':0x194});return this[_0x3fe5a6(0x7b5)](_0x3138d3);}[_0x3a5e7b(0x7b5)](_0x3e9b63){const _0x1fe0be=0x100*0x400,_0xae175f=this;let _0x24af66=0x0;return new _0x5a8340({'highWaterMark':_0x1fe0be,'read'(){const _0xa66117=_0x458f;let _0xa0aa75;try{const _0x507428=_0xae175f['_n'](_0xa66117(0x372),[_0x3e9b63,_0x24af66,_0x1fe0be],![]);_0xa0aa75=Buffer[_0xa66117(0x3c8)](_0x507428)?_0x507428:Buffer[_0xa66117(0x791)](_0x507428);}catch(_0xf1c47a){this[_0xa66117(0x274)](_0xf1c47a);return;}_0x24af66+=_0xa0aa75['length'];if(_0xa0aa75[_0xa66117(0x5f6)])this[_0xa66117(0x7f5)](_0xa0aa75);if(_0xa0aa75[_0xa66117(0x5f6)]<_0x1fe0be)this[_0xa66117(0x7f5)](null);}});}async[_0x3a5e7b(0x7c1)](_0x4168fa){const _0x500b9d=_0x3a5e7b;return this['okdb'][_0x500b9d(0xf6)](this['_n'](_0x500b9d(0x7c1),[_0x4168fa],![]));}async[_0x3a5e7b(0x585)](_0x18ee75){const _0x59dc27=_0x3a5e7b,_0x3c87a0=this[_0x59dc27(0x576)](_0x18ee75);if(!_0x3c87a0)throw Object[_0x59dc27(0x3eb)](new Error(_0x59dc27(0x42e)+_0x18ee75),{'status':0x194});const _0x2ed960=this[_0x59dc27(0xac)](_0x3c87a0[_0x59dc27(0xf5)]);if(!_0x3d09e9[_0x59dc27(0x48b)](_0x2ed960))throw Object['assign'](new Error(_0x59dc27(0x180)+_0x18ee75),{'status':0x194});return{'stream':this['_blobStream'](_0x3c87a0[_0x59dc27(0xf5)]),'record':_0x3c87a0};}async['remove'](_0x52f35d,_0x3343e7){const _0x4dd25b=_0x3a5e7b,{txn:txn=null}=_0x33f12e(_0x3343e7);if(txn){const _0x57df49=this['_n']('removeTxn',[_0x52f35d]);txn['remove'](_0x4dd25b(0x621),_0x52f35d),txn['onDo'](()=>this['_n']('txnDone',[_0x57df49[_0x4dd25b(0x6fe)]])),txn[_0x4dd25b(0x683)](()=>this['_n'](_0x4dd25b(0x56d),[_0x57df49[_0x4dd25b(0x6fe)]]));return;}return this[_0x4dd25b(0x5df)][_0x4dd25b(0x29b)](this['_n']('remove',[_0x52f35d]));}async[_0x3a5e7b(0x5d4)](_0x4c6c09,_0x5bbc0f={}){const _0x263319=_0x3a5e7b;return this['_n'](_0x263319(0x5d4),[_0x4c6c09,_0x5bbc0f],![]);}[_0x3a5e7b(0x75a)](_0x49a6a0){const _0x31f818=_0x3a5e7b;return this['_n'](_0x31f818(0x75a),[_0x49a6a0],![]);}['listBlobStatus'](){const _0x1463a2=_0x3a5e7b;return this['_n'](_0x1463a2(0x7d0),[],![]);}[_0x3a5e7b(0x67c)](_0x444b59){const _0x7b1de4=_0x3a5e7b,{minAgeMs:_0x496419}=_0x33f12e(_0x444b59);return this['_n'](_0x7b1de4(0x67c),[_0x496419??null]);}['registerExtractor'](_0x2838ca,_0x236ff3){const _0x4b0fb6=_0x3a5e7b;if(typeof _0x236ff3!=='function')throw new _0x416c6f(_0x4b0fb6(0x766),_0x4b0fb6(0x32c));const _0x34eedb=this['_n'](_0x4b0fb6(0x464),[_0x2838ca,_0x236ff3]);return()=>this['_n'](_0x4b0fb6(0x56f),[_0x34eedb]);}async[_0x3a5e7b(0x355)](_0x24b2b6){return _0x24b2b6=_0x33f12e(_0x24b2b6),this['_n']('indexContent',[_0x24b2b6]);}async[_0x3a5e7b(0x17a)](_0x42043a){const _0x4d729f=_0x3a5e7b,{peerIds:_0x4b723a}=_0x33f12e(_0x42043a);return this['_n'](_0x4d729f(0x17a),[_0x4b723a??null]);}[_0x3a5e7b(0xac)](_0x28b215){const _0x4bd981=_0x3a5e7b;if(typeof _0x28b215!==_0x4bd981(0x48a))return require$$4['join'](this[_0x4bd981(0x72c)],_0x28b215['slice'](0x0,0x2),_0x28b215['slice'](0x2));return this['_n'](_0x4bd981(0x320),[_0x28b215],![]);}get[_0x3a5e7b(0x72c)](){const _0xf33480=_0x3a5e7b;return this['_n'](_0xf33480(0x2de),[],![]);}}return files={'OKDBFiles':_0x4b3d8b},files;}var engines,hasRequiredEngines;function requireEngines(){const _0x20b41e=_0x5186d4;if(hasRequiredEngines)return engines;hasRequiredEngines=0x1;const {OKDBError:_0x514afe}=requireErrors(),_0x50823e=requireBridge(),_0xc7b329=new Set([_0x20b41e(0x605),_0x20b41e(0x1c9),_0x20b41e(0x4b2),_0x20b41e(0x64d)]),_0x3675f6=new Set([_0x20b41e(0x650),'info','dims']),_0x11d2c1=['validate',_0x20b41e(0x2c4),_0x20b41e(0x3a1),_0x20b41e(0x358),_0x20b41e(0x4d6),_0x20b41e(0x415),_0x20b41e(0x62a)],_0x2b314f={'embedder':new Set([_0x20b41e(0x6ac),_0x20b41e(0x207)])},_0x23b049=new Set([_0x20b41e(0x701),_0x20b41e(0x1aa),_0x20b41e(0x56b)]);class _0x12ef80{constructor(_0x48e83a,_0x1cf523,_0x47cda3,_0x42cec9){const _0xae5370=_0x20b41e;this[_0xae5370(0x46e)]=_0x48e83a,this['key']=_0x1cf523,this['type']=_0x47cda3,this[_0xae5370(0x397)]=_0x42cec9,this[_0xae5370(0x592)]=_0x47cda3;}['_info'](){const _0x41ae4e=_0x20b41e;return this['_facade']['_n']('info',[this[_0x41ae4e(0x170)],this[_0x41ae4e(0x397)]],![]);}get[_0x20b41e(0x6ed)](){const _0x7a166d=_0x20b41e;return this[_0x7a166d(0x5e2)]()[_0x7a166d(0x6ed)];}get['_store'](){const _0xb1cc4b=_0x20b41e,_0x50439c=this['_info']()['storeEnv'];return _0x50439c?this[_0xb1cc4b(0x46e)]['okdb'][_0xb1cc4b(0x126)][_0xb1cc4b(0x576)](_0x50439c):undefined;}get['docEntry'](){const _0x285862=_0x20b41e;return this[_0x285862(0x5e2)]()[_0x285862(0x3b2)];}get['enabled'](){const _0x148e8d=_0x20b41e;return this['_info']()[_0x148e8d(0x57b)];}get[_0x20b41e(0x793)](){const _0x58de82=_0x20b41e;return this['_info']()[_0x58de82(0x793)];}get['status'](){const _0x158500=_0x20b41e;return this[_0x158500(0x5e2)]()[_0x158500(0x26e)];}get[_0x20b41e(0x2ee)](){const _0x8f4caf=_0x20b41e;return this['_info']()[_0x8f4caf(0x2ee)];}get[_0x20b41e(0x54f)](){const _0x26ed8e=_0x20b41e,_0xa65630=this[_0x26ed8e(0x5e2)]()[_0x26ed8e(0x54f)];return _0xa65630?Object['assign'](new Error(_0xa65630[_0x26ed8e(0xe9)]),{'code':_0xa65630['code']}):null;}get[_0x20b41e(0x66e)](){const _0x157423=_0x20b41e;return this[_0x157423(0x5e2)]()[_0x157423(0x66e)];}get['driver'](){const _0xd41b32=_0x20b41e;return this[_0xd41b32(0x46e)][_0xd41b32(0x2fb)]['get'](this[_0xd41b32(0x170)])??null;}get[_0x20b41e(0x115)](){const _0x6a6ca3=_0x20b41e;if(!this[_0x6a6ca3(0x5e2)]()[_0x6a6ca3(0x6d9)])return null;const _0x34cec9=this;return new Proxy({},{'get'(_0xc77238,_0x2184a9){const _0x3ef0=_0x6a6ca3;if(typeof _0x2184a9===_0x3ef0(0x3ad)||_0x2184a9===_0x3ef0(0x5eb))return undefined;if(_0x2b314f[_0x34cec9[_0x3ef0(0x170)]]&&_0x2b314f[_0x34cec9[_0x3ef0(0x170)]][_0x3ef0(0x43b)](_0x2184a9))return _0x34cec9['_facade']['_n']('apiCall',[_0x34cec9[_0x3ef0(0x170)],_0x34cec9['name'],_0x2184a9,[]],![])[_0x3ef0(0x27a)];if(_0x34cec9['type']==='indexer'&&_0x2184a9==='flush')return async(_0x2d050c={})=>{const _0x25be41=_0x3ef0,_0x5489ee=(_0x448b3e,..._0x5a2796)=>_0x34cec9[_0x25be41(0x46e)]['_n'](_0x25be41(0x725),[_0x34cec9[_0x25be41(0x170)],_0x34cec9[_0x25be41(0x397)],_0x448b3e,_0x5a2796],!![])[_0x25be41(0x27a)],_0x31d0c2=_0x5489ee(_0x25be41(0x4e5),_0x2d050c??{}),_0x3a50ee=Date[_0x25be41(0x55e)]();for(;;){const _0x9b9b94=await _0x34cec9[_0x25be41(0x46e)]['okdb'][_0x25be41(0x7eb)](()=>_0x5489ee(_0x25be41(0x6ad)));if(_0x9b9b94['cursor']>=_0x9b9b94[_0x25be41(0x4f6)])return;Date[_0x25be41(0x55e)]()-_0x3a50ee>=_0x31d0c2&&_0x5489ee(_0x25be41(0x422),_0x2d050c??{},_0x9b9b94),await new Promise(_0x2c297c=>setTimeout(_0x2c297c,0x3));}};return(..._0x458d27)=>{const _0x45e5f8=_0x3ef0,_0x33f84f=()=>_0x34cec9[_0x45e5f8(0x46e)]['_n'](_0x45e5f8(0x725),[_0x34cec9[_0x45e5f8(0x170)],_0x34cec9[_0x45e5f8(0x397)],_0x2184a9,_0x458d27],!![]),_0x3f8185=_0xf9f8d1=>{const _0x5a9ec2=_0x45e5f8;if(_0xf9f8d1&&_0xf9f8d1[_0x5a9ec2(0x161)])throw new TypeError(_0x5a9ec2(0x7ad)+_0x2184a9+'\x27');return _0xf9f8d1['value'];};if(_0xc7b329[_0x45e5f8(0x43b)](_0x34cec9['type'])&&!_0x3675f6[_0x45e5f8(0x43b)](_0x2184a9)){const _0x1f6ef8=_0x34cec9[_0x45e5f8(0x46e)]['okdb'];return _0x1f6ef8[_0x45e5f8(0x5a4)](()=>_0x1f6ef8[_0x45e5f8(0x7eb)](_0x33f84f))[_0x45e5f8(0x5eb)](_0x3f8185);}if(_0x23b049[_0x45e5f8(0x43b)](_0x34cec9['type']))try{return Promise[_0x45e5f8(0x4ef)](_0x3f8185(_0x33f84f()));}catch(_0x15160e){return Promise[_0x45e5f8(0x317)](_0x15160e);}return _0x3f8185(_0x33f84f());};}});}async['load'](_0x170342={}){const _0x54ff5c=_0x20b41e;return await this[_0x54ff5c(0x46e)][_0x54ff5c(0x507)](_0x54ff5c(0x63f),[this[_0x54ff5c(0x170)],this[_0x54ff5c(0x397)],_0x170342]),this;}async['start'](){const _0x436c0f=_0x20b41e;await this[_0x436c0f(0x46e)][_0x436c0f(0x507)](_0x436c0f(0x2f1),[this[_0x436c0f(0x170)],this[_0x436c0f(0x397)]]);}async[_0x20b41e(0x415)](_0x93dd35={}){const _0x559307=_0x20b41e;await this['_facade'][_0x559307(0x507)](_0x559307(0x601),[this['type'],this[_0x559307(0x397)],_0x93dd35]);}async[_0x20b41e(0x1c2)](_0x3d61d8={}){const _0x5b4bb8=_0x20b41e;return await this[_0x5b4bb8(0x46e)]['_nm'](_0x5b4bb8(0x1c2),[this[_0x5b4bb8(0x170)],this[_0x5b4bb8(0x397)],_0x3d61d8]),this;}async['uninstall'](){const _0xd46af3=_0x20b41e;await this['_facade'][_0xd46af3(0x507)]('engineUninstall',[this[_0xd46af3(0x170)],this[_0xd46af3(0x397)]]);}}class _0x92a8a9{constructor(_0x58991f,_0x3912d2=null,_0x2367aa=null){const _0x151d60=_0x20b41e;this[_0x151d60(0x5df)]=_0x58991f,this[_0x151d60(0x728)]=_0x3912d2,this[_0x151d60(0x544)]=_0x3912d2===null,this[_0x151d60(0x646)]=_0x2367aa||this,this[_0x151d60(0x2fb)]=this[_0x151d60(0x646)]===this?_0x3709d4(this):this[_0x151d60(0x646)][_0x151d60(0x2fb)],this['_handles']=new Map();}['_n'](_0x2ac4fd,_0xcad945,_0x5d4499=!![]){const _0x1cc7b7=_0x20b41e;return this[_0x1cc7b7(0x5df)][_0x1cc7b7(0x463)](_0x1cc7b7(0x10f),this[_0x1cc7b7(0x728)],_0x2ac4fd,_0xcad945,_0x5d4499);}[_0x20b41e(0x507)](_0x5b1832,_0x2b04dd){const _0x395565=_0x20b41e;return this[_0x395565(0x5df)][_0x395565(0x338)]('engines',this[_0x395565(0x728)],_0x5b1832,_0x2b04dd,!![]);}get['env'](){const _0x4159a3=_0x20b41e;return this[_0x4159a3(0x728)]?this['okdb'][_0x4159a3(0x78b)](this[_0x4159a3(0x728)]):null;}[_0x20b41e(0x1e1)](_0x447a03){const _0x31c315=_0x20b41e;if(!_0x447a03)return null;let _0x20afde=this['_handles'][_0x31c315(0x576)](_0x447a03[_0x31c315(0x4fc)]);return!_0x20afde&&(_0x20afde=new _0x12ef80(this,_0x447a03[_0x31c315(0x4fc)],_0x447a03[_0x31c315(0x170)],_0x447a03[_0x31c315(0x397)]),this[_0x31c315(0x158)][_0x31c315(0x227)](_0x447a03[_0x31c315(0x4fc)],_0x20afde)),_0x20afde;}[_0x20b41e(0x548)](_0x3565c3,_0xf7ec54){const _0x4c9b6a=_0x20b41e;if(!_0x3565c3||typeof _0x3565c3!==_0x4c9b6a(0x48a))throw new _0x514afe(_0x4c9b6a(0x491),'ENGINE_INVALID_TYPE',{'type':_0x3565c3});if(!_0xf7ec54||typeof _0xf7ec54!==_0x4c9b6a(0x57c))throw new _0x514afe(_0x4c9b6a(0x413)+_0x3565c3+'\x22\x20must\x20be\x20a\x20plain\x20object',_0x4c9b6a(0x7c4),{'type':_0x3565c3});if(typeof _0xf7ec54[_0x4c9b6a(0x6ae)]!==_0x4c9b6a(0x5a8))throw new _0x514afe(_0x4c9b6a(0x413)+_0x3565c3+_0x4c9b6a(0x66d),_0x4c9b6a(0x3bf),{'type':_0x3565c3});const _0xbd096a=this['_root'];if(_0xbd096a[_0x4c9b6a(0x2fb)]['has'](_0x3565c3))throw new _0x514afe(_0x4c9b6a(0x76b)+_0x3565c3+'\x22',_0x4c9b6a(0x584),{'type':_0x3565c3});const _0x4bc0f1=_0x50823e[_0x4c9b6a(0x179)](_0xf7ec54,this['okdb']),_0x378a55=_0x11d2c1['filter'](_0x2eba17=>typeof _0xf7ec54[_0x2eba17]===_0x4c9b6a(0x5a8)),_0x3d53af=_0xf7ec54[_0x4c9b6a(0x541)]&&typeof _0xf7ec54[_0x4c9b6a(0x541)]===_0x4c9b6a(0x57c)?_0xf7ec54[_0x4c9b6a(0x541)]:{};this[_0x4c9b6a(0x5df)][_0x4c9b6a(0x463)]('engines',null,'registerDriver',[_0x3565c3,{'$id':_0x4bc0f1,'has':_0x378a55,'docs':_0x3d53af}]),_0xbd096a[_0x4c9b6a(0x2fb)][_0x4c9b6a(0x2a8)](_0x3565c3,_0xf7ec54);}get[_0x20b41e(0x18f)](){const _0x1c95a3=_0x20b41e;return this['okdb'][_0x1c95a3(0x463)](_0x1c95a3(0x10f),null,'orchestratorStarted',[],![]);}get[_0x20b41e(0x445)](){const _0x3cfc74=this;return{get '_started'(){return _0x3cfc74['_started'];}};}['registerTemplate'](_0x473ff8){const _0x1295bc=_0x20b41e;if(!_0x473ff8||typeof _0x473ff8!==_0x1295bc(0x57c))throw new _0x514afe(_0x1295bc(0x1a0),_0x1295bc(0x223));if(!_0x473ff8['id']||typeof _0x473ff8['id']!==_0x1295bc(0x48a))throw new _0x514afe(_0x1295bc(0x50b),_0x1295bc(0x223));if(![_0x1295bc(0x3fd),_0x1295bc(0x148)][_0x1295bc(0x61d)](_0x473ff8[_0x1295bc(0x44d)]))throw new _0x514afe(_0x1295bc(0x735)+_0x473ff8['id'],_0x1295bc(0x223));if(typeof _0x473ff8['build']!==_0x1295bc(0x5a8))throw new _0x514afe('Engine\x20template\x20build()\x20is\x20required:\x20'+_0x473ff8['id'],'ENGINE_INVALID_TEMPLATE');const _0x4ae451=this['okdb'],_0x3a5506=typeof _0x473ff8[_0x1295bc(0x2cf)]==='function';return this['_n'](_0x1295bc(0x719),[{'id':_0x473ff8['id'],'kind':_0x473ff8[_0x1295bc(0x44d)],'family':_0x473ff8['family']??null,'engineType':_0x473ff8[_0x1295bc(0x592)]??null,'pipelineFamily':_0x473ff8[_0x1295bc(0x5f9)]??null,'recommended':_0x473ff8['recommended']===!![],'summary':_0x473ff8[_0x1295bc(0x4d3)]??null,'description':_0x473ff8[_0x1295bc(0x7d9)]??null,'inputSchema':_0x3a5506?null:_0x473ff8[_0x1295bc(0x2cf)]??null,'inputSchemaFn':_0x3a5506?()=>_0x473ff8['inputSchema'](_0x4ae451):null,'defaults':_0x473ff8[_0x1295bc(0x3ed)]??null,'notes':Array['isArray'](_0x473ff8[_0x1295bc(0x6a1)])?_0x473ff8[_0x1295bc(0x6a1)]:[],'links':Array[_0x1295bc(0x28e)](_0x473ff8[_0x1295bc(0x7d4)])?_0x473ff8[_0x1295bc(0x7d4)]:[],'build':(_0x547454,_0x352430)=>_0x473ff8[_0x1295bc(0x16c)](_0x547454??{},{'okdb':_0x4ae451,'envName':_0x352430??null})}],![]);}[_0x20b41e(0x597)](_0xa4ebcf){const _0x506f2d=_0x20b41e;return this['_n'](_0x506f2d(0x597),[_0xa4ebcf??null],![]);}['getTemplate'](_0x4dbbee){const _0x281459=_0x20b41e;return this['_n'](_0x281459(0x631),[_0x4dbbee],![]);}[_0x20b41e(0x459)](_0x25161b,_0x155f93,_0x3234ae){const _0x1bdead=_0x20b41e;return this['_n']('previewTemplate',[_0x25161b,_0x155f93,_0x3234ae??this[_0x1bdead(0x728)]],![]);}[_0x20b41e(0x77a)](){const _0x57fbdc=_0x20b41e;return this['_n'](_0x57fbdc(0x77a),[],![]);}async[_0x20b41e(0x6ae)](){const _0x1f605=_0x20b41e;return this[_0x1f605(0x507)](_0x1f605(0x6ae),[]);}async[_0x20b41e(0x415)](){const _0x1113ce=_0x20b41e;return this[_0x1113ce(0x507)]('stop',[]);}async[_0x20b41e(0x461)](_0x1b9b10,_0xba58f2,_0x164c18={},_0x3fb420={},_0x36f29d={}){const _0x202604=_0x20b41e;return this[_0x202604(0x1e1)](await this[_0x202604(0x507)](_0x202604(0x461),[_0x1b9b10,_0xba58f2,_0x164c18,_0x3fb420,_0x36f29d]));}async[_0x20b41e(0x690)](_0x4fdfdd,_0x4d8e46,_0x3c10d8={},_0x15bec8={},_0x3e0034={}){const _0x1f1079=_0x20b41e;return this[_0x1f1079(0x1e1)](await this['_nm'](_0x1f1079(0x690),[_0x4fdfdd,_0x4d8e46,_0x3c10d8,_0x15bec8,_0x3e0034]));}['getEngine'](_0x5863cc,_0x3d06b3){const _0x18fead=_0x20b41e;return this[_0x18fead(0x1e1)](this['_n']('getEngine',[_0x5863cc,_0x3d06b3],![]));}[_0x20b41e(0x798)](_0x1c1c47,_0x595a66){const _0x7074c3=_0x20b41e;return this[_0x7074c3(0x1e1)](this['_n'](_0x7074c3(0x798),[_0x1c1c47,_0x595a66],![]));}[_0x20b41e(0x5b2)](_0x200248){const _0x18d8d9=_0x20b41e;return this['_n'](_0x18d8d9(0x5b2),[_0x200248??null],![])[_0x18d8d9(0x25e)](_0x60cd5d=>this[_0x18d8d9(0x1e1)](_0x60cd5d));}async[_0x20b41e(0x2bb)](_0x1cdbcc,_0x3f255e){const _0x121e82=_0x20b41e;return this['_wrap'](await this['_nm'](_0x121e82(0x2bb),[_0x1cdbcc,_0x3f255e]));}async[_0x20b41e(0xef)](_0x2ca798,_0x52eeef){const _0x2769e0=_0x20b41e;return this['_handles'][_0x2769e0(0x32d)](_0x2ca798+':'+_0x52eeef),this['_nm']('uninstallEngine',[_0x2ca798,_0x52eeef]);}async['startNewEnginesFromSync'](_0x4ac8c6){const _0x6680b=_0x20b41e;return this['_nm'](_0x6680b(0x1b5),[_0x4ac8c6]);}async[_0x20b41e(0x610)](){const _0x36d739=_0x20b41e;return this['_nm'](_0x36d739(0x610),[]);}}function _0x3709d4(_0x1f25fb){const _0x2f5e11=_0x20b41e,_0x401100=new Map();return{'has':_0x5d412e=>_0x401100[_0x2f5e11(0x43b)](_0x5d412e)||_0x1f25fb[_0x2f5e11(0x5df)][_0x2f5e11(0x463)](_0x2f5e11(0x10f),null,'hasDriver',[_0x5d412e],![]),'get':_0x248014=>_0x401100[_0x2f5e11(0x576)](_0x248014),'set':()=>{const _0x45291d=_0x2f5e11;throw new _0x514afe(_0x45291d(0x6dd),'BAD_PARAM');},'_set':(_0x171d28,_0x31f849)=>_0x401100['set'](_0x171d28,_0x31f849),'keys':()=>_0x401100['keys'](),'entries':()=>_0x401100['entries'](),'values':()=>_0x401100[_0x2f5e11(0x2af)](),get 'size'(){const _0x2de81b=_0x2f5e11;return _0x401100[_0x2de81b(0x691)];},[Symbol[_0x2f5e11(0x16f)]]:()=>_0x401100[Symbol[_0x2f5e11(0x16f)]]()};}class _0x52e97a{constructor(_0x61f1a7,_0x3f8719=null){const _0x379b80=_0x20b41e;this[_0x379b80(0x5df)]=_0x61f1a7,this[_0x379b80(0x728)]=_0x3f8719;}['_n'](_0x44cf38,_0x3a36b0,_0x228962=!![]){const _0x1ebd53=_0x20b41e;return this[_0x1ebd53(0x5df)]['_call'](_0x1ebd53(0x35a),this[_0x1ebd53(0x728)],_0x44cf38,_0x3a36b0,_0x228962);}[_0x20b41e(0x507)](_0x52598f,_0x5fa2bc){const _0x289a2e=_0x20b41e;return this['okdb'][_0x289a2e(0x338)](_0x289a2e(0x35a),this['envName'],_0x52598f,_0x5fa2bc,!![]);}get[_0x20b41e(0x79e)](){const _0x4843ce=_0x20b41e;return this[_0x4843ce(0x728)]===null;}async['ensure'](_0xb826f){return this['_n']('ensure',[_0xb826f]);}async[_0x20b41e(0x576)](_0x230201,_0x51ffea){const _0x3feff9=_0x20b41e;return this['_n'](_0x3feff9(0x576),[_0x230201,_0x51ffea??null],![]);}async[_0x20b41e(0x251)](_0x4bbfd5,_0x46b91a){const _0x4b4ae5=_0x20b41e;return this['_n'](_0x4b4ae5(0x251),[_0x4bbfd5,_0x46b91a??null],![]);}async[_0x20b41e(0x5b2)](_0x393e0c){const _0x51ac9c=_0x20b41e;return this['_n'](_0x51ac9c(0x5b2),[_0x393e0c??null],![]);}async[_0x20b41e(0x2a5)](_0x436371={}){const _0x1cb744=_0x20b41e;return this['_n'](_0x1cb744(0x2a5),[_0x436371?.[_0x1cb744(0x728)]??null],![]);}['validate'](_0x3caac6,_0x4ab11e){return this['_n']('validate',[_0x3caac6,_0x4ab11e??null],![]);}async[_0x20b41e(0x730)](_0x2b8cb1){const _0x38a8b0=_0x20b41e;return this[_0x38a8b0(0x507)](_0x38a8b0(0x730),[_0x2b8cb1]);}async[_0x20b41e(0x37c)](_0x41e404,_0x24df8f){const _0x4664b1=_0x20b41e;return this[_0x4664b1(0x507)](_0x4664b1(0x37c),[_0x41e404,_0x24df8f]);}async[_0x20b41e(0x415)](_0xc038cc){const _0x525895=_0x20b41e;return this[_0x525895(0x507)](_0x525895(0x415),[_0xc038cc]);}async[_0x20b41e(0x546)](_0x420eed){const _0x20f861=_0x20b41e;if(!_0x420eed||typeof _0x420eed!=='object'||!_0x420eed[_0x20f861(0x397)]||!_0x420eed['engines'])return _0x420eed;for(let _0x4b15d2=0x0;_0x4b15d2<0x3;_0x4b15d2++)await new Promise(_0x436e7b=>setImmediate(_0x436e7b));try{const _0x34aec5=this[_0x20f861(0x728)]!==null?await this['get'](_0x420eed['name']):_0x420eed[_0x20f861(0x78b)]?await this[_0x20f861(0x576)](_0x420eed['env'],_0x420eed[_0x20f861(0x397)]):null;return _0x34aec5||_0x420eed;}catch{return _0x420eed;}}async[_0x20b41e(0x6ae)](_0x30373e){const _0x477bb9=_0x20b41e;return this[_0x477bb9(0x546)](await this[_0x477bb9(0x507)]('start',[_0x30373e]));}async[_0x20b41e(0x2bb)](_0x3209b7){const _0x40bb0f=_0x20b41e;return this[_0x40bb0f(0x546)](await this[_0x40bb0f(0x507)](_0x40bb0f(0x2bb),[_0x3209b7]));}async[_0x20b41e(0x4d4)](_0xf3379c){const _0x19e6ea=_0x20b41e;return this[_0x19e6ea(0x507)](_0x19e6ea(0x4d4),[_0xf3379c]);}async['replaceMember'](_0x4e463b,_0x4c49ce,_0x57365b){const _0xec7df=_0x20b41e;return this[_0xec7df(0x507)]('replaceMember',[_0x4e463b,_0x4c49ce,_0x57365b]);}async['remove'](_0x146795){const _0x983a70=_0x20b41e;return this[_0x983a70(0x507)](_0x983a70(0x228),[_0x146795]);}async[_0x20b41e(0x746)](){const _0x3f522e=_0x20b41e;return this['_nm'](_0x3f522e(0x746),[]);}async[_0x20b41e(0x69c)](){const _0x14c080=_0x20b41e;return this[_0x14c080(0x507)]('bootSyncedPipelines',[]);}[_0x20b41e(0x187)](_0x100583,_0x154723){const _0x1ffc4d=_0x20b41e;return this['_n'](_0x1ffc4d(0x187),[_0x100583,_0x154723],![]);}}return engines={'OKDBEngines':_0x92a8a9,'OKDBPipelines':_0x52e97a,'OKDBEngineHandle':_0x12ef80},engines;}var functions,hasRequiredFunctions;function requireFunctions(){const _0x20c388=_0x5186d4;if(hasRequiredFunctions)return functions;hasRequiredFunctions=0x1;const {optionsArg:_0x3340b5}=requireErrors(),_0x3966ef=Number(process.env.OKDB_FN_POLL_MS)||0x14;class _0x7da0b4{constructor(_0x26edbb,_0x322199=null){const _0x3dd9c2=_0x458f;this['okdb']=_0x26edbb,this['envName']=_0x322199??_0x3dd9c2(0x74e);}get[_0x20c388(0x78b)](){const _0x36d378=_0x20c388;return this['okdb'][_0x36d378(0x126)]['get'](this[_0x36d378(0x728)])??null;}['_n'](_0x575268,_0x4f9f60=[],_0x30973c=!![]){const _0x417e96=_0x20c388;try{return this[_0x417e96(0x5df)][_0x417e96(0x463)](_0x417e96(0x1e8),this[_0x417e96(0x728)],_0x575268,_0x4f9f60,_0x30973c);}catch(_0x1a1f54){throw _0x3a89c7(_0x1a1f54);}}async[_0x20c388(0x507)](_0x1535a0,_0x46a6a5=[]){const _0x40743b=_0x20c388;try{return await this[_0x40743b(0x5df)][_0x40743b(0x338)](_0x40743b(0x1e8),this[_0x40743b(0x728)],_0x1535a0,_0x46a6a5,!![]);}catch(_0x360529){throw _0x3a89c7(_0x360529);}}async[_0x20c388(0x5b2)](){return this['_n']('list',[],![]);}async[_0x20c388(0x576)](_0x227ec5){const _0xd4cc2e=_0x20c388;return this['_n'](_0xd4cc2e(0x576),[_0x227ec5],![]);}async[_0x20c388(0x730)](_0x5949c9){const _0x346ab7=_0x20c388;return this['_n'](_0x346ab7(0x730),[_0x5949c9]);}async['update'](_0x93414c,_0x41909d={}){const _0x2c65fe=_0x20c388;return this['_n'](_0x2c65fe(0x37c),[_0x93414c,_0x41909d]);}async[_0x20c388(0x228)](_0x5cf4a4){const _0x2a22e8=_0x20c388;return this['_n'](_0x2a22e8(0x228),[_0x5cf4a4]);}async['listRuns'](_0x1b884e){const _0x540afb=_0x20c388,{functionName:functionName=null}=_0x3340b5(_0x1b884e);return this['_n'](_0x540afb(0x414),[{'functionName':functionName}],![]);}async[_0x20c388(0x1f1)](_0x408586){const _0x10ac9f=_0x20c388;return this['_n'](_0x10ac9f(0x1f1),[_0x408586],![]);}async[_0x20c388(0x492)](_0x5af591){const _0x56395f=_0x20c388;return _0x5af591=_0x3340b5(_0x5af591,_0x56395f(0x12d)),this['_n'](_0x56395f(0x492),[_0x5af591]);}async[_0x20c388(0x12d)](_0x2799ac,_0x5af8dc=null,_0x5a0981={}){const _0x4040f4=_0x20c388,_0x373322={..._0x5a0981},_0x25c8fd=_0x373322['signal'];if(_0x25c8fd)_0x373322[_0x4040f4(0x1d2)]=!!_0x25c8fd[_0x4040f4(0x1d2)];delete _0x373322['signal'];const _0x1ee5ab=await this[_0x4040f4(0x507)]('runStart',[_0x2799ac,_0x5af8dc,_0x373322]),_0x9261e4=this[_0x4040f4(0x5df)],_0x587c33=()=>_0x9261e4[_0x4040f4(0x1e0)][_0x4040f4(0x58b)]();if(_0x25c8fd&&typeof _0x25c8fd['addEventListener']===_0x4040f4(0x5a8))_0x25c8fd[_0x4040f4(0x47e)](_0x4040f4(0x108),_0x587c33,{'once':!![]});let _0x4ae36b=![];try{for(;;){const _0x546552=_0x9261e4[_0x4040f4(0x1e0)][_0x4040f4(0x50d)](_0x3966ef);let _0x5eb3a6;try{_0x5eb3a6=await _0x9261e4['_callMacro'](_0x4040f4(0x1e8),this[_0x4040f4(0x728)],'runPoll',[_0x1ee5ab,!!_0x25c8fd?.['aborted']],![],![]);}catch(_0x2c434a){_0x4ae36b=!![];throw _0x3a89c7(_0x2c434a);}if(!_0x5eb3a6||_0x5eb3a6['$pending']!==!![])return _0x4ae36b=!![],_0x9261e4[_0x4040f4(0x1e0)][_0x4040f4(0x58b)](),_0x5eb3a6;if(_0x5eb3a6[_0x4040f4(0x532)])_0x9261e4[_0x4040f4(0x1e0)][_0x4040f4(0x58b)]();await _0x546552;}}finally{if(_0x25c8fd&&typeof _0x25c8fd[_0x4040f4(0x782)]===_0x4040f4(0x5a8))_0x25c8fd['removeEventListener'](_0x4040f4(0x108),_0x587c33);if(!_0x4ae36b)try{_0x9261e4[_0x4040f4(0x463)](_0x4040f4(0x1e8),this[_0x4040f4(0x728)],_0x4040f4(0xf9),[_0x1ee5ab],![]);}catch{}}}async[_0x20c388(0x276)](_0x2e903f={},_0x4ccf05=null,_0x59640a={}){const _0x50b0e4=_0x20c388;return this[_0x50b0e4(0x507)]('preview',[_0x2e903f,_0x4ccf05,_0x59640a]);}async[_0x20c388(0x415)](){}}function _0x3a89c7(_0x5a9752){const _0x4f9af4=_0x20c388;if(_0x5a9752&&_0x5a9752['details']&&_0x5a9752['details']['runRecord'])_0x5a9752[_0x4f9af4(0x5d2)]=_0x5a9752[_0x4f9af4(0x4cf)][_0x4f9af4(0x685)];return _0x5a9752;}return functions={'OKDBFunctions':_0x7da0b4},functions;}var processor={'exports':{}},lock,hasRequiredLock;function requireLock(){const _0xbac1d4=_0x5186d4;if(hasRequiredLock)return lock;hasRequiredLock=0x1;const {optionsArg:_0x253623}=requireErrors();class _0x5921c7{constructor(_0x406bb9,_0x2a8d5a){const _0x1c283e=_0x458f;this['_lock']=_0x406bb9,this[_0x1c283e(0x36d)]=_0x2a8d5a;}['_n'](_0x146339,_0x79737a=[]){const _0x1a2610=_0x458f;return this['_lock']['_n'](_0x146339,[this[_0x1a2610(0x36d)],..._0x79737a]);}[_0xbac1d4(0x408)](){return this['_n']('isHeld');}get[_0xbac1d4(0x51d)](){return this['_n']('acquiredAt');}[_0xbac1d4(0x6b3)](){const _0x3f3c8b=_0xbac1d4;return this['_n'](_0x3f3c8b(0x6b3));}[_0xbac1d4(0x255)](_0x8b4360){const _0x19f659=_0xbac1d4;return this['_n'](_0x19f659(0x255),[_0x8b4360]);}async[_0xbac1d4(0x36a)](){const _0x266432=_0xbac1d4;return this['_n'](_0x266432(0x36a));}}class _0x5017bf{constructor(_0x12c198,_0x19968b,_0x2b2f77,_0x183809){const _0x32fca6=_0xbac1d4,{ttlMs:ttlMs=0x7530,heartbeatMs:heartbeatMs=null}=_0x253623(_0x183809);this[_0x32fca6(0x5df)]=_0x12c198,this[_0x32fca6(0x360)]=_0x2b2f77,this[_0x32fca6(0x36d)]=_0x12c198[_0x32fca6(0x463)]('lock',_0x19968b,_0x32fca6(0x30e),[_0x2b2f77,ttlMs,heartbeatMs],![]),this['_env']=_0x19968b;}['_n'](_0x6504b7,_0xfaa336=[]){const _0x166431=_0xbac1d4;return this[_0x166431(0x5df)][_0x166431(0x463)](_0x166431(0x6ce),this[_0x166431(0x34e)],_0x6504b7,_0xfaa336,![]);}[_0xbac1d4(0x60b)](_0x1e6de9){const _0x14a210=_0xbac1d4;return this['_n']('key',[this[_0x14a210(0x36d)],_0x1e6de9]);}async[_0xbac1d4(0xbc)](_0xa7f15a,_0x5e3dab={},_0x188a50={}){const _0x5ea71c=_0xbac1d4,_0x345b56=this['_n'](_0x5ea71c(0xbc),[this[_0x5ea71c(0x36d)],_0xa7f15a,_0x5e3dab,_0x188a50]);return{'acquired':_0x345b56['acquired'],'handle':_0x345b56['handle']==null?null:new _0x5921c7(this,_0x345b56[_0x5ea71c(0x2fa)]),'current':_0x345b56['current']};}[_0xbac1d4(0x149)](_0x392012){const _0x14948c=_0xbac1d4;return this['_n']('inspect',[this[_0x14948c(0x36d)],_0x392012]);}[_0xbac1d4(0x5b2)](){const _0x5e8935=_0xbac1d4;return this['_n'](_0x5e8935(0x5b2),[this[_0x5e8935(0x36d)]]);}[_0xbac1d4(0x46a)](_0x564856){const _0x2c1910=_0xbac1d4;return this['_n'](_0x2c1910(0x46a),[this[_0x2c1910(0x36d)],_0x564856]);}[_0xbac1d4(0x45d)](_0x12f301,_0x142eba=0x3e8){const _0x2a03b5=_0xbac1d4;return this['_n'](_0x2a03b5(0x45d),[this[_0x2a03b5(0x36d)],_0x12f301,_0x142eba]);}}return lock={'NativeLock':_0x5017bf,'NativeLockHandle':_0x5921c7},lock;}var hasRequiredProcessor;function requireProcessor(){const _0x301f8c=_0x5186d4;if(hasRequiredProcessor)return processor[_0x301f8c(0x73a)];hasRequiredProcessor=0x1;const _0x2c07c0=requireBridge(),{RawDb:_0x53cefe}=requireRawdb(),{NativeLock:_0x30fbb5}=requireLock();function _0x486c46(_0xa70116){}class _0x2eb74d{constructor(_0x41b822){const _0xbc3409=_0x301f8c;this[_0xbc3409(0x78b)]=_0x41b822,this[_0xbc3409(0x5df)]=_0x41b822;try{this['_n'](_0xbc3409(0x357),[(_0x36eba6,_0x45c93d)=>{const _0x3fdcef=_0xbc3409,_0x1e4471=this[_0x3fdcef(0x5df)][_0x3fdcef(0x23f)],_0x116dbd=_0x1e4471?.[_0x36eba6]??_0x1e4471?.[_0x3fdcef(0x6b7)];if(typeof _0x116dbd===_0x3fdcef(0x5a8))_0x116dbd['call'](_0x1e4471,_0x45c93d);}],![]);}catch{}}['_n'](_0x23440a,_0x18a4ad,_0x164639=!![]){const _0x509ee5=_0x301f8c;return this[_0x509ee5(0x78b)][_0x509ee5(0x5df)]['_call'](_0x509ee5(0xbb),this['env'][_0x509ee5(0x397)],_0x23440a,_0x18a4ad,_0x164639);}['register'](_0x54c45a,_0x5bcf2f={}){const _0x40f9b6=_0x301f8c,_0x261781={..._0x5bcf2f};if(typeof _0x261781[_0x40f9b6(0x5ab)]==='function'&&_0x261781[_0x40f9b6(0x6f6)]!=null)throw new Error(_0x40f9b6(0x234)+_0x40f9b6(0x6f4));if(typeof _0x261781[_0x40f9b6(0x5ab)]===_0x40f9b6(0x48a)&&_0x261781['module']!=null)throw new Error(_0x40f9b6(0x291));if(_0x261781[_0x40f9b6(0x6f6)]!=null){if(!_0x261781[_0x40f9b6(0x6f6)][_0x40f9b6(0x41c)])throw new Error(_0x40f9b6(0x5da));const _0x4ec43e=_0x261781[_0x40f9b6(0x6f6)][_0x40f9b6(0x1f7)]??_0x261781['module'][_0x40f9b6(0x2d4)]??_0x40f9b6(0xf4),_0x140f9f=require[_0x40f9b6(0x4ef)](_0x261781[_0x40f9b6(0x6f6)][_0x40f9b6(0x41c)]),_0x13aef7=require(_0x140f9f),_0x4b9d12=_0x13aef7[_0x4ec43e]??_0x13aef7['default']??_0x13aef7;if(typeof _0x4b9d12!==_0x40f9b6(0x5a8))throw new Error(_0x40f9b6(0x26d)+_0x261781['module'][_0x40f9b6(0x41c)]+_0x40f9b6(0x380)+_0x4ec43e+'\x27\x20is\x20not\x20a\x20function');this[_0x40f9b6(0x78b)][_0x40f9b6(0x5df)][_0x40f9b6(0x2e0)](_0x40f9b6(0xbb),'registerModule',[_0x140f9f,_0x4ec43e,_0x4b9d12]),_0x261781[_0x40f9b6(0x6f6)]={'path':_0x140f9f,'export':_0x4ec43e};}if(_0x261781[_0x40f9b6(0x42b)]!=null){if(typeof _0x261781[_0x40f9b6(0x42b)][_0x40f9b6(0x6f6)]!==_0x40f9b6(0x48a))throw new Error(_0x40f9b6(0x1dc));const _0x2ab316=require[_0x40f9b6(0x4ef)](_0x261781[_0x40f9b6(0x42b)][_0x40f9b6(0x6f6)]),_0x422db3=require(_0x2ab316),_0x461ed6=_0x261781[_0x40f9b6(0x42b)]['exportName'],_0x14653b=_0x461ed6?_0x422db3[_0x461ed6]:_0x422db3[_0x40f9b6(0x132)]??_0x422db3;if(typeof _0x14653b==='function'){const _0x1ce403=_0x461ed6?_0x261781['quantum'][_0x40f9b6(0x6f6)]+'#'+_0x461ed6:_0x261781[_0x40f9b6(0x42b)][_0x40f9b6(0x6f6)];this[_0x40f9b6(0x78b)][_0x40f9b6(0x5df)]['_staticCall'](_0x40f9b6(0xbb),'registerQuantum',[_0x1ce403,_0x14653b]);}_0x261781[_0x40f9b6(0x42b)]={..._0x261781[_0x40f9b6(0x42b)]};}_0x261781['payload']!=null&&typeof _0x261781['payload']===_0x40f9b6(0x57c)&&(_0x261781[_0x40f9b6(0x403)]={'$payload':_0x2c07c0['storePayload'](_0x261781['payload'],this[_0x40f9b6(0x78b)][_0x40f9b6(0x5df)])});if(_0x261781[_0x40f9b6(0x4d4)]!=null&&typeof _0x261781['rebuild']!==_0x40f9b6(0x5a8))throw new Error(_0x40f9b6(0x51f));const _0x72edea=this['_n'](_0x40f9b6(0x4a7),[_0x54c45a??null,_0x261781]);return this[_0x40f9b6(0x43d)](_0x72edea['id'],_0x72edea['cursorKey']);}[_0x301f8c(0x43d)](_0x53c8cb,_0x3b825f){const _0x3f5205=_0x301f8c,_0x499334=this,_0x7b133c=async()=>{const _0x53a73e=_0x458f;_0x499334['_n'](_0x53a73e(0x485),[_0x53c8cb]);};return _0x7b133c['id']=_0x53c8cb,_0x7b133c[_0x3f5205(0x732)]=_0x3b825f,_0x7b133c[_0x3f5205(0x14f)]=()=>_0x3b825f?_0x499334['_n'](_0x3f5205(0x111),[_0x53c8cb],![]):0x0,_0x7b133c['status']=()=>_0x499334[_0x3f5205(0x576)](_0x53c8cb),_0x7b133c[_0x3f5205(0x7d5)]=_0x7b133c[_0x3f5205(0x26e)],_0x7b133c['pause']=()=>_0x499334[_0x3f5205(0x565)](_0x53c8cb),_0x7b133c[_0x3f5205(0x7a9)]=()=>_0x499334[_0x3f5205(0x7a9)](_0x53c8cb),_0x7b133c['kick']=()=>_0x499334[_0x3f5205(0x334)](_0x53c8cb),_0x7b133c[_0x3f5205(0x5fe)]=()=>_0x499334[_0x3f5205(0x5fe)](_0x53c8cb),_0x7b133c[_0x3f5205(0x775)]=_0x5c5eaa=>_0x499334[_0x3f5205(0x775)](_0x53c8cb,_0x5c5eaa),_0x7b133c;}get[_0x301f8c(0x799)](){const _0x3f0174=_0x301f8c;try{return this['_n'](_0x3f0174(0x5b2),[],![])[_0x3f0174(0x25e)](_0x2587a9=>({'id':_0x2587a9['id']}));}catch{return[];}}async[_0x301f8c(0x62d)](_0x480746){const _0x4a6fed=_0x301f8c;return new Set(this['_n'](_0x4a6fed(0x62d),[]));}['resumeAllAfterDrain'](_0x56810c){const _0xdba449=_0x301f8c;return this['_n'](_0xdba449(0x388),[[..._0x56810c??[]]]);}get['_envWide'](){const _0xc2cf01=_0x301f8c;return new Set(this['_n'](_0xc2cf01(0x5b2),[],![])[_0xc2cf01(0x127)](_0x3d942a=>_0x3d942a[_0xc2cf01(0x170)]==null)['map'](_0x34829c=>_0x34829c['id']));}[_0x301f8c(0x4ad)](){}get[_0x301f8c(0x534)](){const _0x315932=_0x301f8c;if(!this[_0x315932(0xeb)]){const _0x5a9e7d=new _0x30fbb5(this['env'][_0x315932(0x5df)],this[_0x315932(0x78b)][_0x315932(0x397)],_0x315932(0xbb)),_0x1752ba=this[_0x315932(0x78b)];_0x5a9e7d[_0x315932(0x25a)]=()=>new _0x53cefe(_0x1752ba,_0x315932(0x55b)),this[_0x315932(0xeb)]=_0x5a9e7d;}return this[_0x315932(0xeb)];}['_fail'](_0x3df12a,_0x474792){const _0x18b528=_0x301f8c;return this['_n'](_0x18b528(0x7f2),[typeof _0x3df12a===_0x18b528(0x48a)?_0x3df12a:_0x3df12a['id'],_0x474792?.[_0x18b528(0xe9)]??String(_0x474792??'')]);}get[_0x301f8c(0x77e)](){const _0x28d55b=_0x301f8c;return this[_0x28d55b(0x376)]||(this['__stateDb']=new _0x53cefe(this['env'],_0x28d55b(0x794)));}get[_0x301f8c(0xd5)](){const _0x502082=_0x301f8c,_0x5b6046=this,_0x1cabe9=_0xbe8fba=>{const _0x5b26cf=_0x458f,_0x440066=()=>_0x5b6046['_n'](_0x5b26cf(0xfc),[_0xbe8fba],![]);if(!_0x440066())return undefined;const _0xbb8081=_0x17f56c=>()=>_0x440066()?.[_0x17f56c],_0x497032={'id':_0xbe8fba},_0x54c75a=(_0x33f640,_0x1142b5,_0x3aed0f)=>Object[_0x5b26cf(0x4a2)](_0x497032,_0x33f640,{'get':_0x1142b5,'set':_0x3aed0f,'enumerable':!![],'configurable':!![]});return _0x54c75a(_0x5b26cf(0xd2),_0xbb8081('state')),_0x54c75a('mode',_0xbb8081(_0x5b26cf(0x667))),_0x54c75a(_0x5b26cf(0x2e8),_0xbb8081(_0x5b26cf(0x2e8))),_0x54c75a(_0x5b26cf(0x120),_0xbb8081('lastClock'),_0x334b02=>_0x5b6046['_n'](_0x5b26cf(0x57a),[_0xbe8fba,_0x334b02])),_0x54c75a('cursorKey',_0xbb8081(_0x5b26cf(0x732))),_0x54c75a('_claimGated',_0xbb8081(_0x5b26cf(0x7b4)),_0x436e2e=>_0x5b6046['_n'](_0x5b26cf(0x27b),[_0xbe8fba,!!_0x436e2e])),_0x54c75a('_handlerName',_0xbb8081('handlerName')),_0x54c75a(_0x5b26cf(0x6f0),_0xbb8081(_0x5b26cf(0x6f0))),_0x54c75a(_0x5b26cf(0x634),_0xbb8081(_0x5b26cf(0x634))),_0x54c75a(_0x5b26cf(0x547),_0xbb8081('modeApplied'),_0xb109fd=>_0x5b6046['_n'](_0x5b26cf(0xe2),[_0xbe8fba,_0xb109fd])),_0x54c75a(_0x5b26cf(0x4eb),()=>_0x5b6046[_0x5b26cf(0x576)](_0xbe8fba)?.['meta']),_0x54c75a(_0x5b26cf(0x1d8),()=>_0x440066()?.[_0x5b26cf(0x4f8)]?{'isHeld':()=>!!_0x440066()?.[_0x5b26cf(0x4f8)]}:null),_0x54c75a('_pokeHandler',()=>_0x440066()?.[_0x5b26cf(0x531)]?()=>{}:null),_0x54c75a('_flushIntervalTimer',()=>_0x440066()?.[_0x5b26cf(0x128)]?{}:null),_0x54c75a(_0x5b26cf(0x7a7),()=>_0x440066()?.[_0x5b26cf(0x5e7)]?{}:null),_0x497032;},_0x22a262=()=>_0x5b6046['_n']('list',[],![])[_0x502082(0x25e)](_0x58bf56=>_0x58bf56['id']);return{'get':_0x28ed7d=>_0x1cabe9(_0x28ed7d),'has':_0x191858=>_0x22a262()[_0x502082(0x61d)](_0x191858),get 'size'(){const _0x5b4a0f=_0x502082;return _0x22a262()[_0x5b4a0f(0x5f6)];},'keys':()=>_0x22a262()[Symbol[_0x502082(0x16f)]](),'values':()=>_0x22a262()[_0x502082(0x25e)](_0x1cabe9)[Symbol[_0x502082(0x16f)]](),'entries':()=>_0x22a262()[_0x502082(0x25e)](_0x479b5b=>[_0x479b5b,_0x1cabe9(_0x479b5b)])[Symbol[_0x502082(0x16f)]](),[Symbol[_0x502082(0x16f)]]:()=>_0x22a262()[_0x502082(0x25e)](_0x2843a1=>[_0x2843a1,_0x1cabe9(_0x2843a1)])[Symbol[_0x502082(0x16f)]](),'forEach':_0x38341e=>_0x22a262()[_0x502082(0x191)](_0x20f63f=>_0x38341e(_0x1cabe9(_0x20f63f),_0x20f63f))};}async['stopAll'](){return this['_n']('stopAll',[]);}[_0x301f8c(0x5b2)](){const _0x3ff65=_0x301f8c,_0x299058=this['_n'](_0x3ff65(0x5b2),[],![]);if(!this['env'][_0x3ff65(0x397)][_0x3ff65(0x377)]('~'))try{const _0x1035fc=this[_0x3ff65(0x78b)][_0x3ff65(0x5df)][_0x3ff65(0x4eb)];for(const _0x27a0f2 of _0x1035fc[_0x3ff65(0x498)](this[_0x3ff65(0x78b)][_0x3ff65(0x397)])){for(const _0x439a56 of _0x1035fc[_0x3ff65(0x513)](_0x27a0f2,this[_0x3ff65(0x78b)][_0x3ff65(0x397)])){const _0x3623b1=_0x3ff65(0x740)+_0x27a0f2+':'+_0x439a56;_0x299058[_0x3ff65(0x7f5)]({'id':_0x3623b1,'type':_0x27a0f2,'mode':_0x3ff65(0x396),'state':_0x3ff65(0x39b),'paused':![],'lag':0x0,'cursorKey':_0x3623b1,'meta':{'name':_0x3623b1}});}}}catch{}return _0x299058;}[_0x301f8c(0x5d6)](){const _0x3fd7dc=_0x301f8c;return this['_n'](_0x3fd7dc(0x5d6),[],![]);}[_0x301f8c(0x1fd)](){return this['_n']('durableTierLag',[],![]);}[_0x301f8c(0x2dd)](){const _0x21bff2=_0x301f8c;return this['_n'](_0x21bff2(0x2dd),[],![]);}[_0x301f8c(0x576)](_0x40d963){const _0xcf7570=_0x301f8c;return this['_n'](_0xcf7570(0x576),[_0x40d963],![]);}[_0x301f8c(0x69b)](_0x50c6e3){const _0x5b26ac=_0x301f8c;return this[_0x5b26ac(0x576)](typeof _0x50c6e3===_0x5b26ac(0x48a)?_0x50c6e3:_0x50c6e3['id']);}[_0x301f8c(0x3bc)](_0x4a368f){const _0x3bade2=_0x301f8c;return this['_n'](_0x3bade2(0x3bc),[_0x4a368f],![]);}[_0x301f8c(0x3c7)](_0x366fda){const _0x5794d5=_0x301f8c;return this['_n'](_0x5794d5(0x3c7),[_0x366fda]);}[_0x301f8c(0x2ec)](_0x244f78){const _0x6f6955=_0x301f8c;return this['_n'](_0x6f6955(0x2ec),[_0x244f78]);}[_0x301f8c(0x5c0)](_0x447f45){const _0x3b0634=_0x301f8c;return this['_n'](_0x3b0634(0x5c0),[_0x447f45],![]);}[_0x301f8c(0x61e)](_0x282a94,_0x4d59b1){return this['_n']('setCursor',[_0x282a94,_0x4d59b1]);}async[_0x301f8c(0x775)](_0x3e3a7b,_0x14222e){const _0x9a7c00=_0x301f8c;return this['_n'](_0x9a7c00(0x775),[_0x3e3a7b,_0x14222e??0x7530]);}[_0x301f8c(0x565)](_0xe7ca2b){const _0x43ab6c=_0x301f8c;return this['_n'](_0x43ab6c(0x565),[_0xe7ca2b]);}['resume'](_0x1c4325){const _0x354aa2=_0x301f8c;return this['_n'](_0x354aa2(0x7a9),[_0x1c4325]);}async[_0x301f8c(0x5c4)](_0x417297){const _0x3e3982=_0x301f8c;return this['_n'](_0x3e3982(0x5c4),[_0x417297]);}[_0x301f8c(0x334)](_0x9b3439){const _0x22ee6a=_0x301f8c;return this['_n'](_0x22ee6a(0x334),[_0x9b3439]);}[_0x301f8c(0x5fe)](_0x17755a){const _0x6e12fb=_0x301f8c;return this['_n'](_0x6e12fb(0x5fe),[_0x17755a]);}['restart'](_0x209eb9,_0x3b2a40={}){const _0x2136e2=_0x301f8c;return this['_n'](_0x2136e2(0x2bb),[_0x209eb9,_0x3b2a40]);}async[_0x301f8c(0x6fd)](_0x44a6b3,_0x53e0c3,_0x52c057){const _0x3cdd23=_0x301f8c,[_0x33a4c5,_0x4af589]=this['_n'](_0x3cdd23(0x6fd),[_0x44a6b3,_0x53e0c3,_0x52c057]);return{'version':_0x33a4c5,'flipClock':_0x4af589};}async['snapshotScan'](_0x33a845,_0x24f3d3,_0x3ab8b8={}){const _0x23b9c5=_0x301f8c;return this['_n'](_0x23b9c5(0x2c5),[_0x33a845,_0x24f3d3,_0x3ab8b8]);}}_0x2eb74d['registerHandler']=function _0x128acb(_0x49fe87,_0x32b60e){const _0x13f09d=_0x301f8c;if(typeof _0x49fe87!=='string'||!_0x49fe87)throw new Error(_0x13f09d(0xe7));if(typeof _0x32b60e!=='function')throw new Error(_0x13f09d(0x103));_0x1aa266(_0x13f09d(0xbb),_0x13f09d(0x2d1),[_0x49fe87,_0x32b60e]);},_0x2eb74d['registerQuantum']=function _0x20db75(_0x14077b,_0x4dcc1e){const _0x293ef3=_0x301f8c;if(typeof _0x14077b!==_0x293ef3(0x48a)||!_0x14077b)throw new Error(_0x293ef3(0x307));if(typeof _0x4dcc1e!==_0x293ef3(0x5a8))throw new Error(_0x293ef3(0x5a6));let _0x1dfeac=null;_0x1aa266(_0x293ef3(0xbb),_0x293ef3(0x669),[_0x14077b,(_0x3d92fa,_0xd56e62)=>{if(!_0x1dfeac)_0x1dfeac=_0x4dcc1e();return _0x1dfeac(_0x3d92fa,_0xd56e62);}]);},_0x2eb74d[_0x301f8c(0x41b)]=_0x29bd57=>/closed|not open|released/i[_0x301f8c(0x61f)](String(_0x29bd57)),_0x2eb74d[_0x301f8c(0x7cd)]=![];function _0x1aa266(_0x3f319b,_0xc55f07,_0x531b31){const {staticCall:_0x119d5f}=requireLib();return _0x119d5f(_0x3f319b,_0xc55f07,_0x531b31);}return processor['exports']=_0x2eb74d,processor[_0x301f8c(0x73a)][_0x301f8c(0x366)]=_0x2eb74d,processor[_0x301f8c(0x73a)][_0x301f8c(0x2fe)]=_0x486c46,processor['exports'];}var okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x87ef3e=_0x5186d4;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x967cfe={'PUT':_0x87ef3e(0x540),'REMOVE':_0x87ef3e(0x228),'INDEX_DROP':'dropIndex','INDEX_REGISTER':_0x87ef3e(0x703),'INDEX_RESET':_0x87ef3e(0x545),'TYPE_REGISTER':_0x87ef3e(0x5bb),'TYPE_DROP':_0x87ef3e(0x3e0),'FTS_REGISTER':_0x87ef3e(0x6bd),'FTS_DROP':_0x87ef3e(0x19f),'FTS_RESET':'resetFts','SCHEMA_SET':_0x87ef3e(0x208),'SCHEMA_DROP':_0x87ef3e(0x401),'TTL_SET':_0x87ef3e(0x7e1),'TTL_CLEAR':_0x87ef3e(0x23b)},_0x328731={'SYSTEM_READY':_0x87ef3e(0x5fb),'FIELD_RESOLVER_REGISTERED':_0x87ef3e(0x7b3),'SYSTEM_STOPPED':_0x87ef3e(0x4d1),'SYSTEM_CLOCK_CHANGE':'system:clock_change','SYSTEM_POKE':_0x87ef3e(0x3df),'SYSTEM_DRAIN':_0x87ef3e(0x503),'SYSTEM_TYPE_DROP':_0x87ef3e(0x248),'SYSTEM_PROC':_0x87ef3e(0x55d),'SYSTEM_BUS_STATE_CHANGE':'system:bus_state_change','ITEM_CREATE':_0x87ef3e(0xfa),'ITEM_UPDATE':'item:update','ITEM_REMOVE':_0x87ef3e(0x297),'ITEM_PENDING':_0x87ef3e(0x205),'INDEX_RESET':_0x87ef3e(0x267),'INDEX_READY':_0x87ef3e(0x643),'INDEX_PROGRESS':_0x87ef3e(0x2b3),'VIEW_PROGRESS':_0x87ef3e(0xea),'INDEX_DROP':'index:drop','INDEX_REGISTERED':_0x87ef3e(0x627),'FTS_REGISTERED':'fts:registered','FTS_DROP':_0x87ef3e(0x18b),'FTS_RESET':_0x87ef3e(0x516),'SCHEMA_SET':'schema:set','SCHEMA_DROP':_0x87ef3e(0xd4),'UNIQUE_VIOLATION':_0x87ef3e(0x651),'UNIQUE_VIOLATION_RESOLVED':'unique:violation_resolved','REF_VIOLATION':_0x87ef3e(0x6ef),'REF_VIOLATION_RESOLVED':'ref:violation_resolved','SYNC_APPLY':_0x87ef3e(0x7ed),'TXN_START':_0x87ef3e(0x5cf),'TXN_END':'txn:end','TXN_ROLLBACK':_0x87ef3e(0x7f4),'TYPE_REGISTERED':'type:registered','TYPE_DROP':_0x87ef3e(0x3cb),'ENV_OPENED':_0x87ef3e(0x3b5),'ENV_REMOVED':_0x87ef3e(0x557),'SYSTEM_ENV_RELEASE':_0x87ef3e(0x220),'TTL_EXPIRED':_0x87ef3e(0x6d8),'TTL_SET':_0x87ef3e(0x3d9),'TTL_CLEAR':_0x87ef3e(0x193),'LICENSE_INVALID':'license:invalid','LICENSE_ADDED':_0x87ef3e(0x294),'LICENSE_ACTIVATED':_0x87ef3e(0x116),'LICENSE_REMOVED':'license:removed'},_0x3b2a6d={'CREATING':'creating','RESETTING':_0x87ef3e(0x482),'READY':'ready','DROPPING':_0x87ef3e(0x4e6),'WAITING':_0x87ef3e(0x722),'ERROR':_0x87ef3e(0xdb)},_0x3b1ebf={'CREATED':_0x87ef3e(0x471),'STARTING':_0x87ef3e(0x5ce),'STARTED':_0x87ef3e(0x271),'STOPPING':_0x87ef3e(0x33e),'STOPPED':'stopped'},_0x3dfb07={'CREATING':_0x87ef3e(0x423),'READY':_0x87ef3e(0x47f),'HALTED':'halted','STOPPED':_0x87ef3e(0x3d7),'RESETTING':'resetting'},_0x1ecbb7=Object[_0x87ef3e(0x173)]({'POKE':_0x87ef3e(0x1a6),'DRAIN':_0x87ef3e(0x660),'TYPE_DROP':_0x87ef3e(0x637),'PROC':_0x87ef3e(0x4c2),'ENV_RELEASE':_0x87ef3e(0x700)});return okdbEnums={'BUS_EVENTS':_0x1ecbb7,'CHANGE_ACTIONS':_0x967cfe,'EVENTS':_0x328731,'INDEX_STATE':_0x3b2a6d,'OKDB_STATE':_0x3b1ebf,'VIEW_STATE':_0x3dfb07},okdbEnums;}var okdbGuardedRange,hasRequiredOkdbGuardedRange;function requireOkdbGuardedRange(){const _0xa729ae=_0x5186d4;if(hasRequiredOkdbGuardedRange)return okdbGuardedRange;hasRequiredOkdbGuardedRange=0x1;const _0x3bebd2={'SKIP':Symbol[_0xa729ae(0x428)]('@harperdb/extended-iterable:skip')},{OKDBError:_0x428652}=requireOkdbError(),_0xf444af={'value':null,'done':!![]};class _0x1a4349{constructor(_0x172c87){const _0x2d9435=_0xa729ae;this[_0x2d9435(0x3dc)]=_0x172c87;}get['DONE'](){return _0xf444af;}[Symbol[_0xa729ae(0x16f)]](){const _0xd8ec41=_0xa729ae;return this[_0xd8ec41(0x3dc)]();}['map'](_0x2307db){const _0x54abe7=this;return new _0x1a4349(()=>{const _0xe9d323=_0x458f,_0x15ee90=_0x54abe7[Symbol['iterator']]();return{'next'(){const _0x3bfd10=_0x458f;for(;;){const _0x515dd0=_0x15ee90['next']();if(_0x515dd0['done'])return{'done':!![],'value':undefined};const _0x2e673e=_0x2307db(_0x515dd0[_0x3bfd10(0x27a)]);if(_0x2e673e===_0x3bebd2[_0x3bfd10(0x6d7)])continue;if(_0x2e673e===_0xf444af)return _0x15ee90[_0x3bfd10(0x280)]?.(),{'done':!![],'value':undefined};return{'done':![],'value':_0x2e673e};}},'return'(){const _0x41a406=_0x458f;return _0x15ee90[_0x41a406(0x280)]?.(),{'done':!![],'value':undefined};},[Symbol[_0xe9d323(0x16f)]](){return this;}};});}['filter'](_0x3334f4){const _0x5f0b87=_0xa729ae;return this[_0x5f0b87(0x25e)](_0x2d48b8=>_0x3334f4(_0x2d48b8)?_0x2d48b8:_0x3bebd2[_0x5f0b87(0x6d7)]);}[_0xa729ae(0x191)](_0x671459){for(const _0x5b3604 of this)_0x671459(_0x5b3604);}[_0xa729ae(0x1be)](_0x4c9bfe=0x0,_0xddee39=Infinity){const _0x3c13dc=this;return new _0x1a4349(()=>{const _0x458e9b=_0x458f,_0x371b85=_0x3c13dc[Symbol['iterator']]();let _0x4e6d98=0x0;return{'next'(){const _0x2610a9=_0x458f;for(;;){const _0xd85561=_0x371b85[_0x2610a9(0x7e9)]();if(_0xd85561[_0x2610a9(0x4d9)])return{'done':!![],'value':undefined};const _0x2733d5=_0x4e6d98++;if(_0x2733d5<_0x4c9bfe)continue;if(_0x2733d5>=_0xddee39)return _0x371b85['return']?.(),{'done':!![],'value':undefined};return _0xd85561;}},'return'(){const _0x762c16=_0x458f;return _0x371b85[_0x762c16(0x280)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x458e9b(0x16f)]](){return this;}};});}['at'](_0xae9ae1){let _0x56d813=0x0;for(const _0x41cc43 of this)if(_0x56d813++===_0xae9ae1)return _0x41cc43;return undefined;}[_0xa729ae(0x16b)](_0x17c0af){const _0x310d6e=this;return new _0x1a4349(()=>{const _0x5816cd=_0x458f,_0xeca023=_0x310d6e[Symbol[_0x5816cd(0x16f)]]();let _0x42ebb5=[];return{'next'(){const _0x2ed1fb=_0x5816cd;for(;;){if(_0x42ebb5[_0x2ed1fb(0x5f6)])return{'done':![],'value':_0x42ebb5[_0x2ed1fb(0x3d5)]()};const _0x14ba94=_0xeca023['next']();if(_0x14ba94[_0x2ed1fb(0x4d9)])return{'done':!![],'value':undefined};const _0x530365=_0x17c0af(_0x14ba94[_0x2ed1fb(0x27a)]);if(Array[_0x2ed1fb(0x28e)](_0x530365))_0x42ebb5=_0x42ebb5['concat'](_0x530365);else{if(_0x530365!=null&&(_0x530365 instanceof _0x1a4349||typeof _0x530365[Symbol[_0x2ed1fb(0x16f)]]===_0x2ed1fb(0x5a8)&&_0x2ed1fb(0x135)in _0x530365))_0x42ebb5=_0x42ebb5['concat'](Array[_0x2ed1fb(0x791)](_0x530365));else{if(_0x530365!==_0x3bebd2[_0x2ed1fb(0x6d7)])return{'done':![],'value':_0x530365};}}}},'return'(){const _0x1a9742=_0x5816cd;return _0xeca023[_0x1a9742(0x280)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x5816cd(0x16f)]](){return this;}};});}[_0xa729ae(0x748)](_0x2ca27d){const _0x30f30a=this;return new _0x1a4349(()=>{const _0x1112ce=_0x458f;let _0x548d61=_0x30f30a[Symbol[_0x1112ce(0x16f)]](),_0x1bb377=![];return{'next'(){const _0x2079e0=_0x1112ce;for(;;){const _0x2bbc2f=_0x548d61['next']();if(!_0x2bbc2f[_0x2079e0(0x4d9)])return _0x2bbc2f;if(_0x1bb377)return{'done':!![],'value':undefined};_0x1bb377=!![],_0x548d61=_0x2ca27d[Symbol[_0x2079e0(0x16f)]]();}},'return'(){const _0x191e73=_0x1112ce;return _0x548d61[_0x191e73(0x280)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x1112ce(0x16f)]](){return this;}};});}[_0xa729ae(0x5c8)](_0x37cf9f){const _0x301c75=this;return new _0x1a4349(()=>{const _0x2bdd47=_0x458f,_0x98b769=_0x301c75[Symbol[_0x2bdd47(0x16f)]]();return{'next'(){for(;;){try{return _0x98b769['next']();}catch(_0x3b3233){const _0x44acd2=_0x37cf9f(_0x3b3233);if(_0x44acd2===_0x3bebd2['SKIP']||_0x44acd2===undefined)continue;return{'done':![],'value':_0x44acd2};}}},'return'(){const _0x27de59=_0x2bdd47;return _0x98b769[_0x27de59(0x280)]?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}[_0xa729ae(0x5bc)](){const _0x1b5f78=_0xa729ae;return Array[_0x1b5f78(0x791)](this);}get[_0xa729ae(0x135)](){const _0x243785=_0xa729ae;return Array[_0x243785(0x791)](this);}}const _0x264be4={'total':0x0,'byLabel':{},'last':null};function _0x4c243a(_0x1ac130){const _0x251b29=_0xa729ae;_0x264be4['total']++;if(_0x1ac130)_0x264be4[_0x251b29(0x1c0)][_0x1ac130]=(_0x264be4[_0x251b29(0x1c0)][_0x1ac130]??0x0)+0x1;_0x264be4[_0x251b29(0x118)]={'label':_0x1ac130??null,'at':Date[_0x251b29(0x55e)]()};}function _0x59a81c(){const _0x28e356=_0xa729ae;return{'total':_0x264be4[_0x28e356(0x15b)],'byLabel':{..._0x264be4[_0x28e356(0x1c0)]},'last':_0x264be4[_0x28e356(0x118)]};}function _0x3ac304(_0x351294,_0x262a46={}){const {getTxnId:_0x47aec2,resume:_0x4e5c83,label:_0x2daa0a,baseline:_0x49cd6d}=_0x262a46;return new _0x1a4349(()=>{const _0x4273fc=_0x458f;let _0x31b165=null,_0x1e69e1=![],_0xe4e887=![],_0x135f68=![],_0x418e64,_0x4a5dfd=0x0,_0x4082fa;return{'next'(){const _0xb26c18=_0x458f;if(_0x135f68)return{'done':!![],'value':undefined};if(_0xe4e887){let _0x2d4ef3=![];if(_0x4e5c83&&_0x47aec2)try{_0x2d4ef3=_0x47aec2()===_0x4082fa;}catch{}if(!_0x2d4ef3){_0x135f68=!![],_0x4c243a(_0x2daa0a);throw new _0x428652(_0x4e5c83?_0xb26c18(0x5a5)+_0xb26c18(0x1bc)+_0xb26c18(0x6a2):_0xb26c18(0x3f7)+_0xb26c18(0x647)+_0xb26c18(0x3a5),_0xb26c18(0x5ba));}_0x31b165=_0x4e5c83(_0x418e64,_0x4a5dfd)[Symbol['iterator']](),_0xe4e887=![];}if(!_0x31b165){if(_0x49cd6d!==undefined)_0x4082fa=_0x49cd6d;else try{_0x4082fa=_0x47aec2?_0x47aec2():undefined;}catch{_0x4082fa=undefined;}try{_0x31b165=_0x351294()[Symbol[_0xb26c18(0x16f)]]();}catch(_0xcd4c7d){_0x135f68=!![];throw _0xcd4c7d;}}!_0x1e69e1&&(_0x1e69e1=!![],queueMicrotask(()=>{const _0xa21d61=_0xb26c18;_0x1e69e1=![];if(_0x135f68||_0xe4e887)return;try{_0x31b165?.[_0xa21d61(0x280)]?.();}catch{}_0x31b165=null,_0xe4e887=!![];}));const _0x1bf23b=_0x31b165[_0xb26c18(0x7e9)]();if(_0x1bf23b[_0xb26c18(0x4d9)])return _0x135f68=!![],{'done':!![],'value':undefined};return _0x418e64=_0x1bf23b[_0xb26c18(0x27a)],_0x4a5dfd++,_0x1bf23b;},'return'(){_0x135f68=!![];try{_0x31b165?.['return']?.();}catch{}return{'done':!![],'value':undefined};},[Symbol[_0x4273fc(0x16f)]](){return this;}};});}return okdbGuardedRange={'guardSnapshotIterable':_0x3ac304,'OKDBGuardedRange':_0x1a4349,'recordGuardTrip':_0x4c243a,'getGuardTripStats':_0x59a81c},okdbGuardedRange;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0x413674=_0x5186d4;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x48ba83,performance:_0x1ee0bc}=require$$0$1,_0x3672aa=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG===_0x413674(0x495),_0x337536=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x186519=process.env.OKDB_LOOP_LAG_ALL==='1',_0x51f6c6=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0x342ed3{constructor(){const _0x427427=_0x413674;this[_0x427427(0x57b)]=_0x3672aa,this['_buckets']=new Map(),this['_h']=null,this[_0x427427(0x394)]=null,this['_started']=![],this[_0x427427(0x560)]=(_0x29ec19,_0x534cb6)=>process[_0x427427(0x4bb)][_0x427427(0x772)](_0x29ec19+(_0x534cb6?'\x20'+JSON[_0x427427(0x745)](_0x534cb6):'')+'\x0a');}[_0x413674(0x55e)](){const _0x3eb08a=_0x413674;return _0x1ee0bc[_0x3eb08a(0x55e)]();}[_0x413674(0x195)](_0x4b16f5){const _0x56fb13=_0x413674;if(typeof _0x4b16f5===_0x56fb13(0x5a8))this[_0x56fb13(0x560)]=_0x4b16f5;}[_0x413674(0x526)](_0x2c5304,_0x3021e9,_0x4c4834){const _0x1f8d4c=_0x413674;if(!this[_0x1f8d4c(0x57b)])return;let _0x12b5df=this['_buckets'][_0x1f8d4c(0x576)](_0x2c5304);!_0x12b5df&&(_0x12b5df={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this['_buckets'][_0x1f8d4c(0x227)](_0x2c5304,_0x12b5df)),_0x12b5df['ms']+=_0x3021e9,_0x12b5df[_0x1f8d4c(0x650)]+=0x1,_0x3021e9>_0x12b5df['maxMs']&&(_0x12b5df[_0x1f8d4c(0x3af)]=_0x3021e9,_0x12b5df[_0x1f8d4c(0x3d2)]=_0x4c4834||'');}[_0x413674(0x6ae)](_0x2339b9){const _0x5a31ce=_0x413674;if(!this['enabled']||this['_started'])return;this['_started']=!![];if(_0x2339b9)this[_0x5a31ce(0x560)]=_0x2339b9;this['_h']=_0x48ba83({'resolution':0xa}),this['_h']['enable'](),this[_0x5a31ce(0x394)]=setInterval(()=>this['_report'](),_0x337536);if(this['_timer'][_0x5a31ce(0x580)])this[_0x5a31ce(0x394)]['unref']();}[_0x413674(0x21b)](_0x53b833){const _0x1c3b06=_0x413674;if(!this['_windowCbs'])this[_0x1c3b06(0x28a)]=new Set();this[_0x1c3b06(0x28a)][_0x1c3b06(0x5b5)](_0x53b833);if(!this['_started'])this['_startAdmission']();}[_0x413674(0x638)](_0x18b2e2){const _0x28a3f2=_0x413674;this[_0x28a3f2(0x28a)]?.[_0x28a3f2(0x32d)](_0x18b2e2);}['_startAdmission'](){const _0x25146b=_0x413674;if(this[_0x25146b(0x2fd)])return;this['_admissionStarted']=!![];!this['_h']&&(this['_h']=_0x48ba83({'resolution':0xa}),this['_h']['enable']());const _0x25840d=_0x337536;this[_0x25146b(0x522)]=setInterval(()=>{const _0x580a6d=_0x25146b,_0x51a653=this['_h'];if(!_0x51a653)return;const _0x2f2ab4=_0x51a653[_0x580a6d(0x310)](0x63)/0xf4240,_0x3972d1=_0x51a653[_0x580a6d(0x7f0)]/0xf4240,_0x51648e=_0x51a653['mean']/0xf4240;_0x51a653[_0x580a6d(0x626)]();if(this['_windowCbs'])for(const _0x32d06e of this[_0x580a6d(0x28a)]){try{_0x32d06e({'p99Ms':_0x2f2ab4,'maxMs':_0x3972d1,'meanMs':_0x51648e,'reportMs':_0x25840d});}catch{}}},_0x25840d);if(this['_admissionTimer'][_0x25146b(0x580)])this[_0x25146b(0x522)][_0x25146b(0x580)]();}[_0x413674(0x14b)](){const _0x222496=_0x413674,_0xc70464=this['_h'],_0x5605c6=_0xc70464[_0x222496(0x7f0)]/0xf4240,_0x37bd67=_0xc70464[_0x222496(0x310)](0x63)/0xf4240,_0x43772e=_0xc70464[_0x222496(0x7a5)]/0xf4240;_0xc70464[_0x222496(0x626)]();const _0x4a8bc2=[...this[_0x222496(0x620)][_0x222496(0x591)]()][_0x222496(0x25e)](([_0x1ef030,_0x2b4ed6])=>({'label':_0x1ef030,..._0x2b4ed6}))[_0x222496(0x386)]((_0x5ce17a,_0x2bc45f)=>_0x2bc45f['ms']-_0x5ce17a['ms'])[_0x222496(0x1be)](0x0,0x8);this[_0x222496(0x620)]['clear']();const _0xfb5e4b=_0x4a8bc2[_0x222496(0x10e)]((_0x418b95,_0x4cad25)=>_0x418b95+_0x4cad25['ms'],0x0),_0x28f035=_0x4a8bc2[_0x222496(0x25e)](_0x508089=>_0x508089[_0x222496(0x30a)]+'='+_0x508089['ms'][_0x222496(0x774)](0x0)+'ms/'+_0x508089[_0x222496(0x650)]+(_0x508089[_0x222496(0x3af)]>0x5?_0x222496(0x7e8)+_0x508089['maxMs'][_0x222496(0x774)](0x0)+'ms'+(_0x508089[_0x222496(0x3d2)]?'\x20'+_0x508089['maxExtra']:'')+')':''));(_0x186519||_0x5605c6>=_0x51f6c6)&&this[_0x222496(0x560)](_0x222496(0x177)+_0x337536+_0x222496(0x5f2)+_0x5605c6[_0x222496(0x774)](0x0)+_0x222496(0x3ba)+_0x37bd67[_0x222496(0x774)](0x0)+'ms\x20mean='+_0x43772e['toFixed'](0x0)+'ms\x20busy='+_0xfb5e4b['toFixed'](0x0)+'ms'+(_0x28f035['length']?_0x222496(0x564)+_0x28f035[_0x222496(0x4b7)]('\x20\x20'):''),{'feature':'loop-lag'});if(this[_0x222496(0x28a)])for(const _0x1680e8 of this[_0x222496(0x28a)]){try{_0x1680e8({'p99Ms':_0x37bd67,'maxMs':_0x5605c6,'meanMs':_0x43772e,'reportMs':_0x337536});}catch{}}}[_0x413674(0x415)](){const _0x59015c=_0x413674;if(this[_0x59015c(0x394)])clearInterval(this[_0x59015c(0x394)]);if(this['_h'])this['_h'][_0x59015c(0x3ab)]();this[_0x59015c(0x394)]=null,this['_h']=null,this[_0x59015c(0x18f)]=![];}}const _0x33e8c8=new _0x342ed3();if(_0x33e8c8[_0x413674(0x57b)])_0x33e8c8[_0x413674(0x6ae)]();return okdbLoopMonitor={'LOOP':_0x33e8c8},okdbLoopMonitor;}var okdbTransaction,hasRequiredOkdbTransaction;function requireOkdbTransaction(){const _0x2647bc=_0x5186d4;if(hasRequiredOkdbTransaction)return okdbTransaction;hasRequiredOkdbTransaction=0x1;const _0xd58407={'v4':()=>require$$0$2['randomUUID']()},{EVENTS:_0x1d07fd}=requireOkdbEnums(),{OKDBError:_0x38f13f}=requireOkdbError(),{recordGuardTrip:_0x1c8292,guardSnapshotIterable:_0x33e6fa}=requireOkdbGuardedRange(),{LOOP:_0x2db800}=requireOkdbLoopMonitor();function _0x4258bd(_0x545518){const _0x30e704=_0x458f;return _0x545518[_0x30e704(0x25e)](_0x5a940f=>{const _0x3032e0=_0x30e704,[_0x22324f,_0x4b918d]=_0x5a940f['args']||[];return{'action':_0x5a940f[_0x3032e0(0x34d)],'type':_0x22324f,'key':_0x4b918d};});}class _0xa7510d{[_0x2647bc(0x5df)];[_0x2647bc(0x5ff)]=[];[_0x2647bc(0x24b)]=[];['_undoHooks']=[];constructor(_0x2f0afa,_0x1ea599={'useReadTransaction':![]}){const _0x13e517=_0x2647bc;this[_0x13e517(0x5df)]=_0x2f0afa,this[_0x13e517(0x308)]=_0x1ea599,this['id']=_0xd58407['v4']();if(this[_0x13e517(0x308)][_0x13e517(0x76a)])try{this[_0x13e517(0x16a)]=this[_0x13e517(0x5df)]['db'][_0x13e517(0x379)]()[_0x13e517(0x44f)];}catch{this[_0x13e517(0x16a)]=undefined;}this[_0x13e517(0x327)]=this[_0x13e517(0x308)][_0x13e517(0x76a)]?this[_0x13e517(0x5df)]['db']['useReadTransaction']():null,this[_0x13e517(0x7bf)]=![],this[_0x13e517(0x6df)]=![],this[_0x13e517(0x327)]&&queueMicrotask(()=>{const _0x3b82df=_0x13e517;this[_0x3b82df(0x327)]&&(this[_0x3b82df(0x20c)](),this[_0x3b82df(0x6df)]=!![]);});}[_0x2647bc(0x2f5)](_0x2eded2){const _0x286fea=_0x2647bc;this[_0x286fea(0x24b)]['push'](_0x2eded2);}['onUndo'](_0x1a12fc){this['_undoHooks']['push'](_0x1a12fc);}[_0x2647bc(0x20c)](){const _0x371cfa=_0x2647bc;if(!this[_0x371cfa(0x327)])return;try{this['readTransaction']['done']();}catch(_0x41b076){}this['readTransaction']=null;}['_assertOpen'](){const _0x5b4151=_0x2647bc;if(this[_0x5b4151(0x7bf)])throw new _0x38f13f(_0x5b4151(0x43a),_0x5b4151(0x289));if(this[_0x5b4151(0x6df)]){let _0x2e7aca=![];if(this[_0x5b4151(0x308)]['useReadTransaction']===_0x5b4151(0x399)&&this[_0x5b4151(0x16a)]!==undefined)try{_0x2e7aca=this[_0x5b4151(0x5df)]['db'][_0x5b4151(0x379)]()[_0x5b4151(0x44f)]===this[_0x5b4151(0x16a)];}catch{}if(!_0x2e7aca){_0x1c8292((this['okdb']?.[_0x5b4151(0x397)]??'?')+_0x5b4151(0x571));throw new _0x38f13f(_0x5b4151(0x23e)+'boundary\x20(a\x20pinned\x20read\x20txn\x20blocks\x20LMDB\x20free-page\x20reuse).\x20Do\x20all\x20consistent\x20reads\x20'+_0x5b4151(0x54d)+'no\x20write\x20has\x20landed.\x20Writes/commit\x20are\x20unaffected.','READER_HELD_ACROSS_AWAIT');}}}[_0x2647bc(0x576)](_0x49a57a,_0x36a7fe){const _0xe7e9f1=_0x2647bc;return this[_0xe7e9f1(0x2ff)](),this[_0xe7e9f1(0x5df)][_0xe7e9f1(0x576)](_0x49a57a,_0x36a7fe,{'transaction':this[_0xe7e9f1(0x327)]});}[_0x2647bc(0x45e)](_0x37783e,_0x314923){const _0x571529=_0x2647bc;return this[_0x571529(0x2ff)](),this[_0x571529(0x5df)][_0x571529(0x45e)](_0x37783e,_0x314923,{'transaction':this['readTransaction']});}['getMany'](_0x573a79,_0x452a6f){const _0x2a084e=_0x2647bc;return this['_assertOpen'](),this[_0x2a084e(0x5df)]['getMany'](_0x573a79,_0x452a6f,{'transaction':this[_0x2a084e(0x327)]});}['_range'](_0x4b7d57){const _0x3e1976=_0x2647bc;if(!this['options'][_0x3e1976(0x76a)])return _0x4b7d57;if(_0x4b7d57&&typeof _0x4b7d57['then']===_0x3e1976(0x5a8))return _0x4b7d57;if(Array[_0x3e1976(0x28e)](_0x4b7d57))return _0x4b7d57;const _0x33077a=this,_0x35a99c=_0x33077a[_0x3e1976(0x308)]['useReadTransaction']===_0x3e1976(0x399),_0x4f098a=()=>{const _0x1207c2=_0x3e1976;if(!_0x33077a[_0x1207c2(0x6df)])return![];if(!_0x35a99c)return!![];if(_0x33077a['_txnIdAtSnapshot']===undefined)return!![];try{return _0x33077a[_0x1207c2(0x5df)]['db'][_0x1207c2(0x379)]()['lastTxnId']!==_0x33077a[_0x1207c2(0x16a)];}catch{return!![];}};return _0x33e6fa(()=>{const _0x3e696a=_0x3e1976;if(_0x33077a[_0x3e696a(0x7bf)])throw new _0x38f13f(_0x3e696a(0x43a),_0x3e696a(0x289));if(_0x4f098a()){_0x1c8292((_0x33077a['okdb']?.[_0x3e696a(0x397)]??'?')+':txnRange');throw new _0x38f13f('useReadTransaction\x20range\x20consumed\x20after\x20the\x20creation\x20turn\x20—\x20the\x20consistent\x20view\x20was\x20'+_0x3e696a(0x6d0)+_0x3e696a(0x5c9),_0x3e696a(0x5ba));}return _0x4b7d57;},{'label':(_0x33077a[_0x3e1976(0x5df)]?.[_0x3e1976(0x397)]??'?')+_0x3e1976(0x786),..._0x35a99c?{'baseline':_0x33077a[_0x3e1976(0x16a)],'getTxnId':()=>_0x33077a[_0x3e1976(0x5df)]['db'][_0x3e1976(0x379)]()['lastTxnId'],'resume':(_0x45eefe,_0x330988)=>_0x4b7d57['slice'](_0x330988)}:{}});}[_0x2647bc(0x783)](_0x22a68e,_0x541169={}){const _0x30caba=_0x2647bc;return this['_assertOpen'](),this[_0x30caba(0x432)](this[_0x30caba(0x5df)][_0x30caba(0x783)](_0x22a68e,{'transaction':this[_0x30caba(0x327)],..._0x541169}));}['getValues'](_0x5458f6,_0x12663a={}){const _0x1676e2=_0x2647bc;return this[_0x1676e2(0x2ff)](),this[_0x1676e2(0x432)](this[_0x1676e2(0x5df)][_0x1676e2(0x5ec)](_0x5458f6,{'transaction':this[_0x1676e2(0x327)],..._0x12663a}));}[_0x2647bc(0x139)](_0x2d2cee,_0xa14894={}){const _0xc8ec22=_0x2647bc;return this[_0xc8ec22(0x2ff)](),this[_0xc8ec22(0x432)](this['okdb'][_0xc8ec22(0x139)](_0x2d2cee,{'transaction':this[_0xc8ec22(0x327)],..._0xa14894}));}[_0x2647bc(0x594)](_0x25a8c1,_0x4163fb,_0x2046e0={}){const _0x24bb51=_0x2647bc;return this[_0x24bb51(0x2ff)](),this[_0x24bb51(0x432)](this[_0x24bb51(0x5df)][_0x24bb51(0x594)](_0x25a8c1,_0x4163fb,{'transaction':this[_0x24bb51(0x327)],..._0x2046e0}));}[_0x2647bc(0x2b2)](_0x29a896,_0x30f510,_0x430c3f={}){const _0x2dca65=_0x2647bc;return this[_0x2dca65(0x2ff)](),this[_0x2dca65(0x432)](this[_0x2dca65(0x5df)][_0x2dca65(0x2b2)](_0x29a896,_0x30f510,{'transaction':this[_0x2dca65(0x327)],..._0x430c3f}));}['getClock'](_0x3d8e2e=null){const _0x42864f=_0x2647bc;return this['_assertOpen'](),this[_0x42864f(0x5df)][_0x42864f(0x18c)](_0x3d8e2e,{'transaction':this[_0x42864f(0x327)]});}[_0x2647bc(0x34f)](_0x3e0ec0){const _0x30e6cb=_0x2647bc;return this[_0x30e6cb(0x2ff)](),this[_0x30e6cb(0x5df)][_0x30e6cb(0x34f)](_0x3e0ec0,{'transaction':this[_0x30e6cb(0x327)]});}[_0x2647bc(0x540)](_0x4bd3e,_0x526c72,_0x4fb297,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0x2647bc(0x55e)](),origin:origin=null,ttl:ttl=null}={}){const _0x546128=_0x2647bc;this[_0x546128(0x5ff)][_0x546128(0x7f5)]({'action':'put','args':[_0x4bd3e,_0x526c72,_0x4fb297,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}['update'](_0x253e96,_0x2bc992,_0x3b1ce5,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0x2647bc(0x55e)](),origin:origin=null,ttl:ttl=null}={}){const _0x3d30c8=_0x2647bc;this[_0x3d30c8(0x5ff)][_0x3d30c8(0x7f5)]({'action':'update','args':[_0x253e96,_0x2bc992,_0x3b1ce5,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x2647bc(0x720)](_0x43f4a8,_0xf38ba7,_0x1cfcf1,{ifVersion:ifVersion=null,timestamp:timestamp=Date['now'](),origin:origin=null,ttl:ttl=null}={}){const _0x538783=_0x2647bc;this['actions'][_0x538783(0x7f5)]({'action':'patch','args':[_0x43f4a8,_0xf38ba7,_0x1cfcf1,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}['create'](_0x17b2b2,_0xe6df8f,_0x1e5903,{version:version=null,timestamp:timestamp=Date['now'](),origin:origin=null,ttl:ttl=null}={}){const _0x1d6415=_0x2647bc;this[_0x1d6415(0x5ff)][_0x1d6415(0x7f5)]({'action':_0x1d6415(0x730),'args':[_0x17b2b2,_0xe6df8f,_0x1e5903,{'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}['remove'](_0xa3b11,_0x23d3f8,{ifVersion:ifVersion=null,timestamp:timestamp=Date['now'](),origin:origin=null}={}){const _0x48b8f1=_0x2647bc;this[_0x48b8f1(0x5ff)][_0x48b8f1(0x7f5)]({'action':_0x48b8f1(0x228),'args':[_0xa3b11,_0x23d3f8,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin}]});}[_0x2647bc(0x4dd)](_0x402ee7,_0x248277,_0x5c46b1){const _0x320e30=_0x2647bc;this['actions'][_0x320e30(0x7f5)]({'action':'setTTL','args':[_0x402ee7,_0x248277,_0x5c46b1]});}[_0x2647bc(0x60f)](_0x4b8e50,_0x42ceb9){const _0x1bb347=_0x2647bc;this['actions'][_0x1bb347(0x7f5)]({'action':_0x1bb347(0x60f),'args':[_0x4b8e50,_0x42ceb9]});}[_0x2647bc(0x244)](){const _0x2e6ebf=_0x2647bc;if(this[_0x2e6ebf(0x7bf)])return;for(const _0xd6ac7f of this[_0x2e6ebf(0x72e)]){try{_0xd6ac7f();}catch{}}this[_0x2e6ebf(0x5df)]['events']['emit'](_0x1d07fd['TXN_ROLLBACK'],{'id':this['id']}),this[_0x2e6ebf(0x5ff)]=[],this[_0x2e6ebf(0x20c)](),this[_0x2e6ebf(0x7bf)]=!![];}async[_0x2647bc(0x686)](){const _0x203490=_0x2647bc;if(this[_0x203490(0x7bf)])throw new Error('Transaction\x20already\x20closed');const _0xbd3cab={'id':this['id'],'timestamp':Date[_0x203490(0x55e)](),'actions':this['actions']};this[_0x203490(0x5df)][_0x203490(0x2b9)][_0x203490(0x74a)](_0x1d07fd[_0x203490(0x1af)],_0xbd3cab);try{const _0x4a60f7=_0x2db800[_0x203490(0x57b)]?_0x2db800[_0x203490(0x55e)]():0x0;await this[_0x203490(0x5df)][_0x203490(0x32f)][_0x203490(0x316)](()=>{const _0x276f7f=_0x203490;for(const _0x1c0b73 of this['actions']){const _0x546cab=this[_0x276f7f(0x5df)]['_'+_0x1c0b73[_0x276f7f(0x34d)]];if(typeof _0x546cab!==_0x276f7f(0x5a8))throw new Error(_0x276f7f(0x4e8)+_0x1c0b73[_0x276f7f(0x34d)]);_0x546cab[_0x276f7f(0x17f)](this[_0x276f7f(0x5df)],this,..._0x1c0b73['args']);}}),_0x2db800[_0x203490(0x57b)]&&_0x2db800[_0x203490(0x526)](_0x203490(0xd1),_0x2db800[_0x203490(0x55e)]()-_0x4a60f7,(this[_0x203490(0x5df)]['name']??'?')+_0x203490(0x7b6)+this[_0x203490(0x5ff)]['length']);}catch(_0x4fd5da){for(const _0x5b20ab of this['_undoHooks']){try{_0x5b20ab();}catch{}}this[_0x203490(0x20c)](),this[_0x203490(0x7bf)]=!![];if(_0x4fd5da instanceof _0x38f13f)throw _0x4fd5da;const _0x35e580={'cause':_0x4fd5da,'env':this[_0x203490(0x5df)]?.[_0x203490(0x397)],'envPath':this[_0x203490(0x5df)]?.['path'],'pid':process[_0x203490(0x70d)],'txnId':this['id'],'actionCount':this[_0x203490(0x5ff)]['length'],'actions':_0x4258bd(this[_0x203490(0x5ff)]),'nativeCode':_0x4fd5da?.[_0x203490(0x649)],'nativeName':_0x4fd5da?.[_0x203490(0x397)]};try{this[_0x203490(0x5df)]?.[_0x203490(0x23f)]?.[_0x203490(0xdb)]?.(_0x203490(0x6e9),{'env':_0x35e580[_0x203490(0x78b)],'envPath':_0x35e580['envPath'],'pid':_0x35e580[_0x203490(0x70d)],'txnId':_0x35e580['txnId'],'actionCount':_0x35e580[_0x203490(0x15f)],'actions':_0x35e580['actions'],'nativeCode':_0x35e580[_0x203490(0x194)],'error':_0x4fd5da?.['message'],'stack':_0x4fd5da?.['stack']});}catch{}throw new _0x38f13f(_0x4fd5da?.[_0x203490(0xe9)]||'Unknown\x20OKDB\x20transaction\x20error','TXN_ERROR',_0x35e580);}this[_0x203490(0x5df)][_0x203490(0x2b9)]['emit'](_0x1d07fd['TXN_END'],_0xbd3cab);for(const _0x1a52f4 of this[_0x203490(0x24b)]){try{await _0x1a52f4();}catch{}}this[_0x203490(0x5ff)]=[],this[_0x203490(0x20c)](),this[_0x203490(0x7bf)]=!![];}static[_0x2647bc(0x64f)](_0x5ec521){const _0x4f6054=_0x2647bc;return Object[_0x4f6054(0x173)]({'id':_0x5ec521['id'],'put':_0x5ec521[_0x4f6054(0x540)]['bind'](_0x5ec521),'update':_0x5ec521[_0x4f6054(0x37c)][_0x4f6054(0x632)](_0x5ec521),'patch':_0x5ec521[_0x4f6054(0x720)][_0x4f6054(0x632)](_0x5ec521),'create':_0x5ec521[_0x4f6054(0x730)]['bind'](_0x5ec521),'remove':_0x5ec521['remove']['bind'](_0x5ec521),'setTTL':_0x5ec521[_0x4f6054(0x4dd)][_0x4f6054(0x632)](_0x5ec521),'clearTTL':_0x5ec521[_0x4f6054(0x60f)][_0x4f6054(0x632)](_0x5ec521),'commit':_0x5ec521['commit'][_0x4f6054(0x632)](_0x5ec521),'rollback':_0x5ec521[_0x4f6054(0x244)][_0x4f6054(0x632)](_0x5ec521),'get':_0x5ec521['get']['bind'](_0x5ec521),'getEntry':_0x5ec521[_0x4f6054(0x45e)]['bind'](_0x5ec521),'getMany':_0x5ec521[_0x4f6054(0x249)]['bind'](_0x5ec521),'getRange':_0x5ec521['getRange'][_0x4f6054(0x632)](_0x5ec521),'getValues':_0x5ec521['getValues']['bind'](_0x5ec521),'getKeys':_0x5ec521[_0x4f6054(0x139)]['bind'](_0x5ec521),'byIndex':_0x5ec521[_0x4f6054(0x594)][_0x4f6054(0x632)](_0x5ec521),'query':_0x5ec521[_0x4f6054(0x2b2)][_0x4f6054(0x632)](_0x5ec521),'getClock':_0x5ec521[_0x4f6054(0x18c)][_0x4f6054(0x632)](_0x5ec521),'getCount':_0x5ec521[_0x4f6054(0x34f)][_0x4f6054(0x632)](_0x5ec521),'read':_0x5ec521,'raw':_0x5ec521});}static['applyOps'](_0x1a8e63,_0x553efa=[]){const _0x13e27f=_0x2647bc;if(!Array[_0x13e27f(0x28e)](_0x553efa))throw new _0x38f13f(_0x13e27f(0x1a9),'TXN_INVALID_OPS');for(const _0x4fefe5 of _0x553efa){if(Array[_0x13e27f(0x28e)](_0x4fefe5)){const [_0x11cc14,..._0x178c93]=_0x4fefe5;if(typeof _0x1a8e63[_0x11cc14]!==_0x13e27f(0x5a8))throw new _0x38f13f(_0x13e27f(0x4e8)+_0x11cc14,_0x13e27f(0x6fb),{'action':_0x11cc14});_0x1a8e63[_0x11cc14](..._0x178c93);continue;}if(!_0x4fefe5||typeof _0x4fefe5!=='object')throw new _0x38f13f(_0x13e27f(0x1ee),_0x13e27f(0x31c));const {action:_0x539f3e}=_0x4fefe5;if(typeof _0x539f3e!=='string'||typeof _0x1a8e63[_0x539f3e]!==_0x13e27f(0x5a8))throw new _0x38f13f(_0x13e27f(0x4e8)+_0x539f3e,_0x13e27f(0x6fb),{'action':_0x539f3e});switch(_0x539f3e){case _0x13e27f(0x540):case _0x13e27f(0x37c):case _0x13e27f(0x730):_0x1a8e63[_0x539f3e](_0x4fefe5[_0x13e27f(0x170)],_0x4fefe5[_0x13e27f(0x4fc)],_0x4fefe5[_0x13e27f(0x27a)],{..._0x4fefe5[_0x13e27f(0x308)],'ttl':_0x4fefe5['ttl']??_0x4fefe5[_0x13e27f(0x308)]?.[_0x13e27f(0x7bc)]??null});break;case'patch':_0x1a8e63[_0x13e27f(0x720)](_0x4fefe5[_0x13e27f(0x170)],_0x4fefe5[_0x13e27f(0x4fc)],_0x4fefe5[_0x13e27f(0x720)],{..._0x4fefe5[_0x13e27f(0x308)],'ttl':_0x4fefe5[_0x13e27f(0x7bc)]??_0x4fefe5[_0x13e27f(0x308)]?.['ttl']??null});break;case'remove':_0x1a8e63[_0x13e27f(0x228)](_0x4fefe5[_0x13e27f(0x170)],_0x4fefe5[_0x13e27f(0x4fc)],_0x4fefe5['options']||{});break;case _0x13e27f(0x4dd):_0x1a8e63['setTTL'](_0x4fefe5[_0x13e27f(0x170)],_0x4fefe5[_0x13e27f(0x4fc)],_0x4fefe5[_0x13e27f(0x7bc)]);break;case _0x13e27f(0x60f):_0x1a8e63['clearTTL'](_0x4fefe5[_0x13e27f(0x170)],_0x4fefe5[_0x13e27f(0x4fc)]);break;default:throw new _0x38f13f('Unsupported\x20transaction\x20action:\x20'+_0x539f3e,_0x13e27f(0x6fb),{'action':_0x539f3e});}}}static async[_0x2647bc(0x12d)](_0x4214ea,_0x3dea59,_0x4749d5={}){const _0x5a0053=_0x2647bc,_0x3882d3=new _0xa7510d(_0x4214ea,_0x4749d5),_0x1b988a=_0xa7510d[_0x5a0053(0x64f)](_0x3882d3);try{typeof _0x3dea59===_0x5a0053(0x5a8)?await _0x3dea59(_0x1b988a):_0xa7510d[_0x5a0053(0x7f1)](_0x3882d3,_0x3dea59||[]);const _0xd72941=_0x3882d3[_0x5a0053(0x5ff)][_0x5a0053(0x5f6)];return await _0x3882d3['commit'](),{'id':_0x3882d3['id'],'actions':_0xd72941};}catch(_0xedcdf9){try{_0x3882d3[_0x5a0053(0x244)]();}catch(_0x184804){}throw _0xedcdf9;}}}return okdbTransaction=_0xa7510d,okdbTransaction;}var dist={},hasRequiredDist;function requireDist(){const _0x2e99b1=_0x5186d4;if(hasRequiredDist)return dist;hasRequiredDist=0x1,Object[_0x2e99b1(0x4a2)](dist,_0x2e99b1(0x767),{'value':!![]});const _0x2930f0=new Float64Array(0x2),_0x14ab64=new Int32Array(_0x2930f0[_0x2e99b1(0x65b)],0x0,0x4),{lowIdx:_0x34ec1f,highIdx:_0x18a585}=((()=>{const _0x465c07=_0x2e99b1;if(new Uint8Array(new Uint32Array([0xffee1100])[_0x465c07(0x65b)])[0x0]===0xff)return{'lowIdx':0x1,'highIdx':0x0};return{'lowIdx':0x0,'highIdx':0x1};})());let _0x2c0df8=![],_0x3dfe7d;try{_0x3dfe7d=new TextEncoder();}catch(_0xeccda2){}function _0x422274(_0x48c562,_0x17b489,position,_0x52a27b){const _0x5f0aaf=_0x2e99b1;let _0x59d110=_0x17b489[_0x5f0aaf(0x780)];if(!_0x59d110)_0x59d110=_0x17b489[_0x5f0aaf(0x780)]=new DataView(_0x17b489['buffer'],_0x17b489[_0x5f0aaf(0x152)],_0x17b489[_0x5f0aaf(0x3a2)]+0x3>>0x2<<0x2);switch(typeof _0x48c562){case _0x5f0aaf(0x48a):let _0x57d5bf=_0x48c562[_0x5f0aaf(0x5f6)],_0x860105=_0x48c562[_0x5f0aaf(0x3d6)](0x0);if(!(_0x860105>=0x1c))_0x17b489[position++]=0x1b;if(_0x57d5bf<0x40){let _0x28bea8,_0x242da5;for(_0x28bea8=0x0;_0x28bea8<_0x57d5bf;_0x28bea8++){_0x860105=_0x48c562['charCodeAt'](_0x28bea8);if(_0x860105<=0x4)_0x17b489[position++]=0x4,_0x17b489[position++]=_0x860105;else{if(_0x860105<0x80)_0x17b489[position++]=_0x860105;else{if(_0x860105<0x800)_0x17b489[position++]=_0x860105>>0x6|0xc0,_0x17b489[position++]=_0x860105&0x3f|0x80;else(_0x860105&0xfc00)===0xd800&&((_0x242da5=_0x48c562[_0x5f0aaf(0x3d6)](_0x28bea8+0x1))&0xfc00)===0xdc00?(_0x860105=0x10000+((_0x860105&0x3ff)<<0xa)+(_0x242da5&0x3ff),_0x28bea8++,_0x17b489[position++]=_0x860105>>0x12|0xf0,_0x17b489[position++]=_0x860105>>0xc&0x3f|0x80,_0x17b489[position++]=_0x860105>>0x6&0x3f|0x80,_0x17b489[position++]=_0x860105&0x3f|0x80):(_0x17b489[position++]=_0x860105>>0xc|0xe0,_0x17b489[position++]=_0x860105>>0x6&0x3f|0x80,_0x17b489[position++]=_0x860105&0x3f|0x80);}}}}else{if(_0x17b489[_0x5f0aaf(0x509)])position+=_0x17b489[_0x5f0aaf(0x509)](_0x48c562,position,_0x17b489[_0x5f0aaf(0x3a2)]-position);else position+=_0x3dfe7d['encodeInto'](_0x48c562,_0x17b489['subarray'](position))[_0x5f0aaf(0x28f)];if(position>_0x17b489[_0x5f0aaf(0x5f6)]-0x4)throw new RangeError(_0x5f0aaf(0x6d4));}break;case'number':_0x2930f0[0x0]=_0x48c562;let _0x304447=_0x14ab64[_0x34ec1f],_0x444594=_0x14ab64[_0x18a585],_0x13b833;if(_0x48c562<0x0)return _0x59d110[_0x5f0aaf(0x176)](position+0x4,~(_0x304447>>>0x4|_0x444594<<0x1c)),_0x59d110['setInt32'](position+0x0,(_0x444594^0x7fffffff)>>>0x4),_0x59d110[_0x5f0aaf(0x176)](position+0x8,(_0x304447&0xf^0xf)<<0x4,!![]),position+0x9;else{if(_0x304447&0xf||_0x52a27b)_0x13b833=0x9;else{if(_0x304447&0xfffff)_0x13b833=0x8;else{if(_0x304447||_0x444594&0xf)_0x13b833=0x6;else _0x13b833=0x4;}}}_0x59d110[_0x5f0aaf(0x176)](position+0x0,_0x444594>>>0x4|0x10000000),_0x59d110[_0x5f0aaf(0x176)](position+0x4,_0x304447>>>0x4|_0x444594<<0x1c),_0x59d110[_0x5f0aaf(0x176)](position+0x8,(_0x304447&0xf)<<0x4,!![]);return position+_0x13b833;case _0x5f0aaf(0x57c):if(_0x48c562){if(Array[_0x5f0aaf(0x28e)](_0x48c562)){for(let _0x344b24=0x0,_0x2bbe9e=_0x48c562[_0x5f0aaf(0x5f6)];_0x344b24<_0x2bbe9e;_0x344b24++){if(_0x344b24>0x0)_0x17b489[position++]=0x0;position=_0x422274(_0x48c562[_0x344b24],_0x17b489,position,!![]);}break;}else{if(_0x48c562 instanceof Uint8Array){_0x17b489[_0x5f0aaf(0x227)](_0x48c562,position),position+=_0x48c562['length'];break;}else throw new Error('Unable\x20to\x20serialize\x20object\x20as\x20a\x20key:\x20'+JSON[_0x5f0aaf(0x745)](_0x48c562));}}else _0x17b489[position++]=0x0;break;case _0x5f0aaf(0x17e):_0x59d110[_0x5f0aaf(0x658)](position++,_0x48c562?0x7:0x6,!![]);return position;case _0x5f0aaf(0x21a):let _0x4fb939=Number(_0x48c562);if(BigInt(_0x4fb939)>_0x48c562){_0x2930f0[0x0]=_0x4fb939;if(_0x4fb939>0x0){if(_0x14ab64[_0x34ec1f])_0x14ab64[_0x34ec1f]--;else _0x14ab64[_0x18a585]--,_0x14ab64[_0x34ec1f]=0xffffffff;}else{if(_0x14ab64[_0x34ec1f]<0xffffffff)_0x14ab64[_0x34ec1f]++;else _0x14ab64[_0x18a585]++,_0x14ab64[_0x34ec1f]=0x0;}_0x4fb939=_0x2930f0[0x0];}let _0x4a2c7b=_0x48c562-BigInt(_0x4fb939);if(_0x4a2c7b===0x0n)return _0x422274(_0x4fb939,_0x17b489,position,_0x52a27b);_0x422274(_0x4fb939,_0x17b489,position,_0x52a27b),position+=0x9;let _0x42bfe6=BigInt((_0x14ab64[_0x18a585]>>0x14&0x7ff)-0x437),_0x203fa3=_0x4a2c7b>>_0x42bfe6;_0x17b489[position-0x1]|=Number(_0x203fa3),_0x4a2c7b-=_0x203fa3<<_0x42bfe6;let _0x474113=!![];while(_0x4a2c7b||_0x474113){_0x474113=![],_0x42bfe6-=0x7n;let _0x1f03a2=_0x4a2c7b>>_0x42bfe6;_0x17b489[position++]=Number(_0x1f03a2)|0x80,_0x4a2c7b-=_0x1f03a2<<_0x42bfe6;}return position;case _0x5f0aaf(0x673):return position;case _0x5f0aaf(0x3ad):_0x17b489[position++]=0x2;return _0x422274(_0x48c562[_0x5f0aaf(0x7d9)],_0x17b489,position,_0x52a27b);default:throw new Error(_0x5f0aaf(0x10c)+typeof _0x48c562);}if(_0x2c0df8&&!_0x52a27b)_0x59d110[_0x5f0aaf(0x658)](position,0x0);return position;}let position;function _0x1afe65(_0x2752c6,_0x4f332a,_0x8c72,_0x1682b8){const _0x812ba=_0x2e99b1;position=_0x4f332a;let _0x235471=_0x2752c6[position],_0x1a3cc6;if(_0x235471<0x18){if(_0x235471<0x8){position++;if(_0x235471==0x6)_0x1a3cc6=![];else{if(_0x235471==0x7)_0x1a3cc6=!![];else{if(_0x235471==0x0)_0x1a3cc6=null;else{if(_0x235471==0x2)_0x1a3cc6=Symbol['for'](_0x5bd5cf(_0x2752c6,_0x8c72));else return Uint8Array[_0x812ba(0x50c)][_0x812ba(0x1be)][_0x812ba(0x17f)](_0x2752c6,_0x4f332a,_0x8c72);}}}}else{let _0x2c56b5;try{_0x2c56b5=_0x2752c6[_0x812ba(0x780)]||(_0x2752c6[_0x812ba(0x780)]=new DataView(_0x2752c6['buffer'],_0x2752c6[_0x812ba(0x152)],_0x2752c6[_0x812ba(0x3a2)]+0x3>>0x2<<0x2));}catch(_0x46d9f6){_0x2c56b5=_0x2752c6[_0x812ba(0x780)]||(_0x2752c6[_0x812ba(0x780)]=new DataView(_0x2752c6[_0x812ba(0x65b)],_0x2752c6[_0x812ba(0x152)],_0x2752c6[_0x812ba(0x65b)][_0x812ba(0x3a2)]-_0x2752c6[_0x812ba(0x152)]));}let _0x3fd63c=_0x2c56b5[_0x812ba(0x69f)](position)<<0x4,_0x2b4e02=_0x8c72-position,_0x1918cd;if(_0x2b4e02>0x4)_0x1918cd=position+0x8<=_0x2752c6[_0x812ba(0x5f6)]?_0x2c56b5[_0x812ba(0x69f)](position+0x4):_0x2752c6[position+0x4]<<0x18|_0x2752c6[position+0x5]<<0x10|_0x2752c6[position+0x6]<<0x8|_0x2752c6[position+0x7],_0x3fd63c|=_0x1918cd>>>0x1c,_0x2b4e02<=0x6&&(_0x1918cd&=-0x10000),_0x1918cd=_0x1918cd<<0x4,_0x2b4e02>0x8&&(_0x1918cd=_0x1918cd|_0x2752c6[position+0x8]>>0x4);else _0x1918cd=0x0;_0x235471<0x10&&(_0x3fd63c=_0x3fd63c^0x7fffffff,_0x1918cd=~_0x1918cd);_0x14ab64[_0x18a585]=_0x3fd63c,_0x14ab64[_0x34ec1f]=_0x1918cd,_0x1a3cc6=_0x2930f0[0x0],position+=0x9;if(_0x2b4e02>0x9&&_0x2752c6[position]>0x0){_0x1a3cc6=BigInt(_0x1a3cc6);let _0xb4c9ea=_0x3fd63c>>0x14&0x7ff,_0xeab76f=_0x2752c6[position-0x1]&0xf;_0x1a3cc6+=BigInt(_0xeab76f)<<BigInt(_0xb4c9ea-0x437);while((_0xeab76f=_0x2752c6[position])>0x0&&position++<_0x8c72){_0x1a3cc6+=BigInt(_0xeab76f&0x7f)<<BigInt((_0x4f332a-position)*0x7+_0xb4c9ea-0x3f8);}}}}else{_0x235471==0x1b&&position++;_0x1a3cc6=_0x5bd5cf(_0x2752c6,_0x8c72);if(position<_0x8c72)position--;}while(position<_0x8c72){if(_0x2752c6[position]===0x0)position++;if(_0x1682b8)return _0x3f1b50[_0x812ba(0x79f)]=position,_0x1a3cc6;let _0x91409c=_0x1afe65(_0x2752c6,position,_0x8c72,!![]);if(_0x1a3cc6 instanceof Array)_0x1a3cc6['push'](_0x91409c);else _0x1a3cc6=[_0x1a3cc6,_0x91409c];}return _0x1a3cc6;}const _0x14dffb=()=>_0x2c0df8=!![],_0x3f1b50={'writeKey':_0x422274,'readKey':_0x1afe65,'enableNullTermination':_0x14dffb};let _0xc34f48=[],_0x34dba3=0x0;const _0x49ab1a=typeof Buffer!=='undefined',_0x4a34fb=_0x49ab1a?Buffer[_0x2e99b1(0x2bc)]:Uint8Array,_0x495c39=_0x94e619=>{const _0x4b9d5b=_0x2e99b1;let _0x4e179f;_0x34dba3+0x64>_0xc34f48[_0x4b9d5b(0x5f6)]&&(_0xc34f48=new _0x4a34fb(0x2000),_0x34dba3=0x0,_0x4e179f=!![]);try{let _0x26c412=_0xc34f48['slice'](_0x34dba3,_0x34dba3=_0x422274(_0x94e619,_0xc34f48,_0x34dba3));if(_0x34dba3>_0xc34f48['length']){if(_0x4e179f)throw new Error('Key\x20is\x20too\x20large');return _0x495c39(_0x94e619);}return _0x26c412;}catch(_0x49e5d0){if(_0x4e179f)throw _0x49e5d0;return _0x34dba3=_0xc34f48[_0x4b9d5b(0x5f6)],_0x495c39(_0x94e619);}},_0x4c00b4=_0x1ebad2=>{const _0x19ba9b=_0x2e99b1;return _0x1afe65(_0x1ebad2,0x0,_0x1ebad2[_0x19ba9b(0x5f6)]);},fromCharCode=String[_0x2e99b1(0x17d)];function _0x1b62a7(){const _0x1d4708=_0x2e99b1;let _0x25df51=_0x1d4708(0x7ee),_0x57d59e=[];for(let _0x14eb7d=0x0;_0x14eb7d<0x30;_0x14eb7d++){let _0x297176=fromCharCode((_0x14eb7d&0xf)+0x61)+fromCharCode((_0x14eb7d>>0x4)+0x61);_0x25df51+=_0x1d4708(0x339)+_0x297176+'\x20=\x20source[position++]\x0a\x09\x09if\x20('+_0x297176+'\x20>\x204)\x20{\x0a\x09\x09\x09if\x20('+_0x297176+_0x1d4708(0x633)+_0x297176+_0x1d4708(0x702)+_0x297176+_0x1d4708(0x48e)+_0x297176+'\x20===\x204)\x0a\x09\x09\x09\x09'+_0x297176+_0x1d4708(0x741)+_0x57d59e+_0x1d4708(0x510),_0x57d59e[_0x1d4708(0x7f5)](_0x297176);}return _0x25df51+='return\x20fromCharCode('+_0x57d59e+_0x1d4708(0x7a8),_0x25df51;}const readString=typeof process!==_0x2e99b1(0x673)&&process[_0x2e99b1(0x6f8)]?function(_0x43bd89){let {setPosition:_0x740034,getPosition:_0x71afc3,readString:readString}=_0x43bd89;return _0xc2dd48=>{_0x740034(position);let _0x45981e=readString(_0xc2dd48);return position=_0x71afc3(),_0x45981e;};}(new Function(_0x2e99b1(0x17d),_0x2e99b1(0x5e5)+_0x1b62a7()+_0x2e99b1(0x1b9)+_0x2e99b1(0x263)+'getPosition()\x20{\x20return\x20position\x20},'+'readString\x20}')(fromCharCode)):eval(_0x1b62a7());function _0x5bd5cf(_0x542246,_0x4707a7){if(_0x542246[_0x4707a7]>0x0){let _0x53f983=_0x542246[_0x4707a7];try{return _0x542246[_0x4707a7]=0x0,readString(_0x542246);}finally{_0x542246[_0x4707a7]=_0x53f983;}}else return readString(_0x542246);}function _0x6bca33(_0x5b6f71,_0x373b88){const _0x2b83f4=_0x2e99b1;if(typeof _0x5b6f71==_0x2b83f4(0x57c)){if(!_0x5b6f71)return _0x373b88==null?0x0:-0x1;if(_0x5b6f71[_0x2b83f4(0x543)]){if(_0x373b88==null)return 0x1;else return _0x373b88[_0x2b83f4(0x543)]?_0x5b6f71[_0x2b83f4(0x543)](_0x373b88):-0x1;}let _0x288ae4;if(_0x373b88 instanceof Array){let _0x5335d5=0x0;while((_0x288ae4=_0x6bca33(_0x5b6f71[_0x5335d5],_0x373b88[_0x5335d5]))==0x0&&_0x5335d5<=_0x5b6f71[_0x2b83f4(0x5f6)]){_0x5335d5++;}return _0x288ae4;}_0x288ae4=_0x6bca33(_0x5b6f71[0x0],_0x373b88);if(_0x288ae4==0x0&&_0x5b6f71[_0x2b83f4(0x5f6)]>0x1)return 0x1;return _0x288ae4;}else{if(typeof _0x5b6f71==typeof _0x373b88)return typeof _0x5b6f71===_0x2b83f4(0x3ad)&&(_0x5b6f71=Symbol[_0x2b83f4(0x146)](_0x5b6f71),_0x373b88=Symbol[_0x2b83f4(0x146)](_0x373b88)),_0x5b6f71<_0x373b88?-0x1:_0x5b6f71===_0x373b88?0x0:0x1;else{if(typeof _0x373b88==_0x2b83f4(0x57c)){if(_0x373b88 instanceof Array)return-_0x6bca33(_0x373b88,_0x5b6f71);return 0x1;}else return _0x4d030f[typeof _0x5b6f71]<_0x4d030f[typeof _0x373b88]?-0x1:0x1;}}}const _0x4d030f={'symbol':0x0,'undefined':0x1,'boolean':0x2,'number':0x3,'string':0x4},_0x2d7f24=null,_0x33a380=new Uint8Array([0xff]);return dist[_0x2e99b1(0x4be)]=_0x33a380,dist[_0x2e99b1(0x654)]=_0x2d7f24,dist[_0x2e99b1(0x2e1)]=_0x6bca33,dist[_0x2e99b1(0x1a5)]=_0x14dffb,dist[_0x2e99b1(0x14e)]=_0x3f1b50,dist['fromBufferKey']=_0x4c00b4,dist[_0x2e99b1(0x10a)]=_0x1afe65,dist[_0x2e99b1(0x1b0)]=_0x495c39,dist[_0x2e99b1(0x68e)]=_0x422274,dist;}var keyenc,hasRequiredKeyenc;function requireKeyenc(){const _0x555982=_0x5186d4;if(hasRequiredKeyenc)return keyenc;hasRequiredKeyenc=0x1;const {writeKey:_0x20eb22}=requireDist(),_0x138a3b=0x7ba,_0x16fa51=0x1000;function _0x1e3981(_0x11a55b,_0x1c647a){const _0x2cf322=_0x458f;switch(typeof _0x11a55b){case _0x2cf322(0x48a):return _0x11a55b[_0x2cf322(0x5f6)]<=_0x138a3b&&_0x11a55b[_0x2cf322(0x22d)]();case _0x2cf322(0x51e):case _0x2cf322(0x17e):return!![];case _0x2cf322(0x57c):if(_0x11a55b===null)return!![];if(Array[_0x2cf322(0x28e)](_0x11a55b)){if(_0x1c647a>0x8||_0x11a55b[_0x2cf322(0x5f6)]>_0x138a3b)return![];for(let _0x9decef=0x0;_0x9decef<_0x11a55b['length'];_0x9decef++)if(!_0x1e3981(_0x11a55b[_0x9decef],_0x1c647a+0x1))return![];return!![];}return Buffer['isBuffer'](_0x11a55b)&&_0x11a55b[_0x2cf322(0x5f6)]<=_0x138a3b;default:return![];}}function _0x484159(_0x4fdf93,_0x4e014a){const _0x24adb1=_0x458f,_0x2c628a=typeof _0x4fdf93;if(_0x2c628a===_0x24adb1(0x48a)){if(_0x4fdf93[_0x24adb1(0x5f6)]>=0x40||!_0x4fdf93['isWellFormed']()){if(!_0x1e3981(_0x4fdf93,0x0))return-0x1;}}else{if(_0x2c628a!=='number'){if(Array[_0x24adb1(0x28e)](_0x4fdf93)?_0x4fdf93[_0x24adb1(0x5f6)]===0x0||!_0x1e3981(_0x4fdf93,0x0):!_0x1e3981(_0x4fdf93,0x0))return-0x1;}}let _0x21ead9;try{_0x21ead9=_0x20eb22(_0x4fdf93,_0x4e014a,0x0);}catch{return-0x1;}return _0x21ead9>0x0&&_0x21ead9<=_0x138a3b?_0x21ead9:-0x1;}return keyenc={'encodeKey':_0x484159,'KEY_BUF_SIZE':_0x16fa51,'NO_FAST':Symbol(_0x555982(0x20d))},keyenc;}var okdbHlc,hasRequiredOkdbHlc;function requireOkdbHlc(){const _0x201af3=_0x5186d4;if(hasRequiredOkdbHlc)return okdbHlc;hasRequiredOkdbHlc=0x1;const _0x548246=0x400,_0x5b40d0=_0x548246-0x1,_0x580e55=0xea60;function _0x4e3a55(_0x5ce12b,_0x48e9bc){const _0x5f3c73=_0x458f;return _0x5ce12b*_0x548246+Math[_0x5f3c73(0x7f0)](0x0,Math[_0x5f3c73(0x4b5)](_0x48e9bc,_0x5b40d0));}function _0x20b6a2(_0x4e5dfb){const _0x1ee864=_0x458f,_0x216742=Math[_0x1ee864(0x7f0)](0x0,Number(_0x4e5dfb)||0x0),_0x299ab6=_0x216742%_0x548246,_0x5c2793=(_0x216742-_0x299ab6)/_0x548246;return{'pt':_0x5c2793,'l':_0x299ab6};}function _0x2c7e1d(_0x2fe109,_0x55c6d2=Date[_0x201af3(0x55e)]()){const _0x17bbd4=_0x201af3,{pt:_0x52cce4,l:_0x26d33f}=_0x20b6a2(_0x2fe109),_0x5131f3=Math[_0x17bbd4(0x7f0)](_0x52cce4,_0x55c6d2),_0x15abe6=_0x5131f3===_0x52cce4?Math['min'](_0x26d33f+0x1,_0x5b40d0):0x0;return _0x4e3a55(_0x5131f3,_0x15abe6);}function _0x11a65a(_0x294478,_0x2c276d,_0x4be008=Date[_0x201af3(0x55e)]()){const _0x4b71b7=_0x201af3,{pt:_0x15d123,l:_0x530388}=_0x20b6a2(_0x294478),{pt:_0xe7deb0,l:_0x2685fd}=_0x20b6a2(_0x2c276d),_0x3ee970=Math[_0x4b71b7(0x7f0)](_0x15d123,_0xe7deb0,_0x4be008);let _0x106109;if(_0x3ee970===_0x15d123&&_0x3ee970===_0xe7deb0)_0x106109=Math[_0x4b71b7(0x4b5)](Math['max'](_0x530388,_0x2685fd)+0x1,_0x5b40d0);else{if(_0x3ee970===_0x15d123)_0x106109=Math[_0x4b71b7(0x4b5)](_0x530388+0x1,_0x5b40d0);else _0x3ee970===_0xe7deb0?_0x106109=Math[_0x4b71b7(0x4b5)](_0x2685fd+0x1,_0x5b40d0):_0x106109=0x0;}return _0x4e3a55(_0x3ee970,_0x106109);}function _0x2ada15(_0x675195,_0x3916d9){const _0x202d4b=Number(_0x675195)||0x0,_0x17e61b=Number(_0x3916d9)||0x0;if(_0x202d4b<_0x17e61b)return-0x1;if(_0x202d4b>_0x17e61b)return 0x1;return 0x0;}function _0x3e6c4f(_0x35ca13){return _0x20b6a2(_0x35ca13)['pt'];}return okdbHlc={'send':_0x2c7e1d,'recv':_0x11a65a,'compare':_0x2ada15,'toMs':_0x3e6c4f,'encode':_0x4e3a55,'decode':_0x20b6a2,'SCALE':_0x548246,'L_MAX':_0x5b40d0,'DRIFT_MAX':_0x580e55},okdbHlc;}var env,hasRequiredEnv;function requireEnv(){const _0x541f38=_0x5186d4;if(hasRequiredEnv)return env;hasRequiredEnv=0x1;const {fromArray:_0x30965a,chunkedRange:_0x5c5aac,pinnedChunks:_0x1a456c,claimPrefetch:_0x2ea4d9}=requireIterable(),{reclass:_0x502dab,NotImplementedNative:_0x8bc337,OKDBError:_0x4f671d,optionsArg:_0x17ba82}=requireErrors(),{OKDBViews:_0x29cfd1}=requireViews(),{OKDBQueue:_0x432ac7}=requireQueue(),{OKDBTimeMachine:_0x13c2df}=requireTimemachine(),_0x4d1bb7=_0x197339=>{const _0x22930d=_0x458f;try{return!_0x197339['_license']||_0x197339[_0x22930d(0xcb)][_0x22930d(0x30d)](_0x22930d(0x77c));}catch{return!![];}},{OKDBFiles:_0x1074db}=requireFiles(),{OKDBEngines:_0x1ea21a,OKDBPipelines:_0x355405}=requireEngines(),{OKDBFunctions:_0x5dac17}=requireFunctions(),_0x4cae19=requireProcessor(),{RawDb:_0xbe812}=requireRawdb(),_0x20c0dd=requireBridge();let _0x573703=null;const _0x27c181=()=>_0x573703||=requireOkdbTransaction(),_0x196deb=(..._0x166a39)=>requireOkdbGuardedRange()[_0x541f38(0x551)](..._0x166a39),_0x55df5f=Buffer['from']([0xff]),_0x35238f=process.env.OKDB_NATIVE_RAW_READS!=='0',_0x35b20f=_0x35238f&&process.env.OKDB_NATIVE_FAST_GET!=='0',{NO_FAST:_0x2006aa}=requireKeyenc(),_0x425137=new Set(_0x35238f?['getRange',_0x541f38(0x594),_0x541f38(0x2b2),_0x541f38(0x232),_0x541f38(0x139)]:[]),_0x1bd5fc=new Set(['get',_0x541f38(0x45e),'getMany',_0x541f38(0x783),_0x541f38(0x139),'getValues','getCount',_0x541f38(0x602),_0x541f38(0x206),_0x541f38(0x594),_0x541f38(0x426),_0x541f38(0x2b2),_0x541f38(0x5e0),_0x541f38(0x559),_0x541f38(0x18c),_0x541f38(0x232),_0x541f38(0x650),_0x541f38(0x55e),_0x541f38(0x7d2),_0x541f38(0x498),'hasIndex',_0x541f38(0x322),_0x541f38(0x488),_0x541f38(0x5b8),'unpin',_0x541f38(0x3f2),_0x541f38(0x3b6),_0x541f38(0x3ae),_0x541f38(0x7ab),_0x541f38(0x6e2),_0x541f38(0x420),_0x541f38(0x6b5),_0x541f38(0x3e8),_0x541f38(0x6a9),_0x541f38(0xd6),_0x541f38(0x3da),_0x541f38(0xc3),'name',_0x541f38(0x41c),'id',_0x541f38(0x44f),'hlc','resolvedFields',_0x541f38(0x7e6),_0x541f38(0x440)]),_0x17fcb1=new Set([_0x541f38(0x6ae),_0x541f38(0x202),_0x541f38(0xd0),_0x541f38(0x7bb),_0x541f38(0x1bb),'inclusiveEnd',_0x541f38(0x3fb),'versions',_0x541f38(0x2af),_0x541f38(0x5d8),'transaction',_0x541f38(0x4fc),_0x541f38(0x52a),'prefix']);function _0x15dd4d(_0x266279,_0x5b096b,_0x5a5843){const _0x30cc62=new Map();return(_0x3bf894,_0x55a75e)=>{const _0x4c1ceb=_0x458f,_0x1dad12=JSON[_0x4c1ceb(0x745)](_0x55a75e),_0x1b251a=_0x30cc62[_0x4c1ceb(0x576)](_0x1dad12);if(_0x1b251a){if(_0x1b251a[_0x4c1ceb(0xd2)]==='pending')throw _0xc18df0();_0x30cc62['delete'](_0x1dad12);if(_0x1b251a[_0x4c1ceb(0xd2)]==='err')throw _0x1b251a['value'];return _0x1b251a[_0x4c1ceb(0x27a)];}const _0x4a6d10=_0x3bf894(..._0x55a75e);if(!_0x4a6d10||typeof _0x4a6d10[_0x4c1ceb(0x5eb)]!=='function')return _0x4a6d10;const _0x35042d={'state':_0x4c1ceb(0x465),'value':undefined},_0x4c75cd=(_0x251c76,_0x3564f9)=>{const _0x4e3454=_0x4c1ceb;_0x35042d[_0x4e3454(0xd2)]=_0x251c76,_0x35042d[_0x4e3454(0x27a)]=_0x3564f9;if(_0x30cc62['get'](_0x1dad12)!==_0x35042d)return;setTimeout(()=>_0x30cc62['get'](_0x1dad12)===_0x35042d&&_0x30cc62[_0x4e3454(0x32d)](_0x1dad12),0x7530)[_0x4e3454(0x580)]();try{_0x266279[_0x4e3454(0x5df)]['_call'](_0x4e3454(0x2b9),null,_0x4e3454(0x74a),[_0x4e3454(0x7b3),{'env':_0x266279['name'],'type':_0x5b096b,'field':_0x5a5843}],!![]);}catch{}};_0x4a6d10['then'](_0x8504da=>_0x4c75cd('ok',_0x8504da),_0x2282f4=>_0x4c75cd(_0x4c1ceb(0x3c0),_0x2282f4));for(let _0x2c6fdf=0x0;_0x2c6fdf<0x64&&_0x35042d['state']===_0x4c1ceb(0x465);_0x2c6fdf++)process[_0x4c1ceb(0xfe)]();if(_0x35042d[_0x4c1ceb(0xd2)]==='ok')return _0x35042d['value'];if(_0x35042d[_0x4c1ceb(0xd2)]===_0x4c1ceb(0x3c0))throw _0x35042d[_0x4c1ceb(0x27a)];_0x30cc62['set'](_0x1dad12,_0x35042d);throw _0xc18df0();};}function _0xc18df0(){const _0x24f2ba=_0x541f38;return Object[_0x24f2ba(0x3eb)](new Error(_0x24f2ba(0x739)),{'code':_0x24f2ba(0x11f)});}class _0x462cbe{constructor(_0x7e0fe5,_0x392590){const _0x54f475=_0x541f38;this[_0x54f475(0x5df)]=_0x7e0fe5,this['name']=_0x392590,this[_0x54f475(0x2b9)]=_0x7e0fe5[_0x54f475(0x2b9)],this[_0x54f475(0x23f)]=_0x7e0fe5['log'],this[_0x54f475(0x109)]=!![],this[_0x54f475(0x3e7)]=null,this[_0x54f475(0x290)]=new _0x29cfd1(this),this[_0x54f475(0x1aa)]=new _0x4cae19(this);if(!_0x392590[_0x54f475(0x377)]('~')||_0x392590[_0x54f475(0x61d)](_0x54f475(0x72d)))this[_0x54f475(0x30b)]=new _0x432ac7(this);if(!_0x392590[_0x54f475(0x377)]('~'))this[_0x54f475(0x204)]=new _0x1074db(this);this[_0x54f475(0x1e8)]=new _0x5dac17(_0x7e0fe5,_0x392590),this[_0x54f475(0x10f)]=new _0x1ea21a(_0x7e0fe5,_0x392590,_0x7e0fe5[_0x54f475(0x10f)]),this['pipelines']=new _0x355405(_0x7e0fe5,_0x392590);if(!_0x392590[_0x54f475(0x377)]('~')&&_0x7e0fe5[_0x54f475(0x308)][_0x54f475(0x77c)]&&_0x4d1bb7(_0x7e0fe5))this[_0x54f475(0x77c)]=new _0x13c2df(this);_0x20c0dd['registerEnv'](this[_0x54f475(0x41c)],this);const _0xfafe55=this;this[_0x54f475(0x32f)]={async 'transaction'(_0x1beecf){const _0x4097a6=_0x54f475,_0x13025a=[];_0xfafe55[_0x4097a6(0x3e7)]=_0x13025a;try{_0x1beecf();}finally{_0xfafe55[_0x4097a6(0x3e7)]=null;}return _0xfafe55['okdb'][_0x4097a6(0x298)]['enqueue'](_0x4097a6(0x78b),_0xfafe55[_0x4097a6(0x397)],_0x4097a6(0x686),[_0x13025a]);},'drain'(){const _0x3c955d=_0x54f475;return _0xfafe55[_0x3c955d(0x5df)]['_wb'][_0x3c955d(0x527)]();},'flushLmdb'(){const _0x34d76e=_0x54f475;return _0xfafe55[_0x34d76e(0x5df)][_0x34d76e(0x298)][_0x34d76e(0x527)]();},'markClosed'(){}};const _0x5b2f58=new _0xbe812(this,'');_0x5b2f58['getStats']=()=>({'lastTxnId':this['_n'](_0x54f475(0x44f),[])}),Object[_0x54f475(0x4a2)](_0x5b2f58,_0x54f475(0x7df),{'get':()=>this['okdb']['_wb'][_0x54f475(0x527)](),'configurable':!![]}),Object[_0x54f475(0x4a2)](_0x5b2f58,_0x54f475(0x1ad),{'get':()=>this[_0x54f475(0x5df)]['_wb']['drain'](),'configurable':!![]});const _0x6d27dd=_0x5b2f58['get'][_0x54f475(0x632)](_0x5b2f58);_0x5b2f58['get']=_0x27ddc8=>_0x27ddc8===_0x54f475(0x3a4)?this['_n'](_0x54f475(0x18c),[null]):_0x6d27dd(_0x27ddc8),this['db']=_0x5b2f58;}async[_0x541f38(0x3ce)](){this['_closedHandle']=!![];}get[_0x541f38(0x2b7)](){const _0x30ef7f=_0x541f38;return new Map(this[_0x30ef7f(0x5df)][_0x30ef7f(0x463)]('db',null,_0x30ef7f(0x48f),[this['name']],![]));}get[_0x541f38(0x27d)](){const _0x595215=_0x541f38;return this[_0x595215(0x5fd)]||(this[_0x595215(0x5fd)]=new _0xbe812(this,_0x595215(0x335)));}[_0x541f38(0x39c)](_0x28281a){const _0xd5c57b=_0x541f38,_0xe5ee11=this['typesDb'][_0xd5c57b(0x576)](_0x28281a);if(_0xe5ee11===undefined||String(_0x28281a)['startsWith']('~fts:')||String(_0x28281a)[_0xd5c57b(0x377)](_0xd5c57b(0x79d))){const {OKDBError:_0x410d06}=requireErrors();throw new _0x410d06(_0xd5c57b(0x416)+_0x28281a+_0xd5c57b(0x398),_0xd5c57b(0x502),{'type':_0x28281a});}const _0x930c19=this,_0x20573b=new _0xbe812(_0x930c19,_0xd5c57b(0x346)+_0x28281a+_0xd5c57b(0x3bb)),_0x3d1bb4=new Map();for(const _0x451a56 of _0x20573b[_0xd5c57b(0x139)]()){const _0x196669=_0x20573b[_0xd5c57b(0x576)](_0x451a56)||{},_0x1a0b02={'parts':_0x451a56[_0xd5c57b(0x711)]('~'),'db':new _0xbe812(_0x930c19,_0xd5c57b(0x346)+_0x28281a+':index:'+_0x451a56,{'dupSort':!![]})};if(_0x196669[_0xd5c57b(0x4ac)])_0x1a0b02[_0xd5c57b(0x4ac)]=_0x196669[_0xd5c57b(0x4ac)];if(_0x196669[_0xd5c57b(0x552)])_0x1a0b02[_0xd5c57b(0x552)]=!![];if(_0x196669[_0xd5c57b(0x226)])_0x1a0b02['sparse']=!![];if(_0x196669['createdBy'])_0x1a0b02[_0xd5c57b(0x6e8)]=_0x196669[_0xd5c57b(0x6e8)];_0x1a0b02[_0xd5c57b(0x1b4)]=new Set((_0x196669['usedBy']??[])['map'](_0x2eaffa=>_0x2eaffa[_0xd5c57b(0x44d)]+':'+_0x2eaffa[_0xd5c57b(0x397)])),_0x3d1bb4[_0xd5c57b(0x227)](_0x451a56,_0x1a0b02);}return{'root':new _0xbe812(_0x930c19,_0xd5c57b(0x346)+_0x28281a),'data':new _0xbe812(_0x930c19,_0xd5c57b(0x346)+_0x28281a+_0xd5c57b(0x2ea),{'useVersions':!![]}),'indexes':_0x20573b,'clockToChange':new _0xbe812(_0x930c19,'type:'+_0x28281a+':clockToChange'),'keyToChange':new _0xbe812(_0x930c19,_0xd5c57b(0x346)+_0x28281a+_0xd5c57b(0x2ba)),'fieldSchema':new Map(Object[_0xd5c57b(0x591)](_0xe5ee11['fields']||{})[_0xd5c57b(0x25e)](([_0x14b3d8,_0x1bb5f5])=>[_0x14b3d8,new Set(Array[_0xd5c57b(0x28e)](_0x1bb5f5)?_0x1bb5f5:[_0x1bb5f5])])),'indexToDb':_0x3d1bb4,'ftsToDb':null,'schema':_0xe5ee11['schema']||null,'defaultTTL':_0xe5ee11[_0xd5c57b(0x607)]||null};}get[_0x541f38(0x59c)](){const _0x454872=_0x541f38,_0x45a0bf=this,_0x50902d=()=>_0x45a0bf[_0x454872(0x498)]();return{'get':_0x468771=>{const _0x114fa1=_0x454872;try{return _0x45a0bf[_0x114fa1(0x39c)](_0x468771);}catch{return undefined;}},'has':_0x276382=>_0x50902d()['includes'](_0x276382),'keys':()=>_0x50902d()[Symbol[_0x454872(0x16f)]](),get 'size'(){const _0x433d10=_0x454872;return _0x50902d()[_0x433d10(0x5f6)];}};}[_0x541f38(0x1d4)](){const _0x4e5542=_0x541f38;return this[_0x4e5542(0x498)]();}get[_0x541f38(0x7d8)](){const _0x544545=_0x541f38;return this[_0x544545(0x729)]||(this[_0x544545(0x729)]=new _0xbe812(this,_0x544545(0x352)));}get['clockToChangeDb'](){const _0x19ae21=_0x541f38;return this[_0x19ae21(0x73b)]||(this[_0x19ae21(0x73b)]=new _0xbe812(this,_0x19ae21(0x219)));}['_advanceHlcOnRecv'](_0x21b7bc){return this['_n']('advanceHlcOnRecv',[_0x21b7bc]);}get[_0x541f38(0x43e)](){const _0x131baf=_0x541f38;return!this['_n'](_0x131baf(0x45a),[],![]);}get[_0x541f38(0x4d5)](){const _0xef6a32=_0x541f38;return this[_0xef6a32(0x456)]!==undefined?this[_0xef6a32(0x456)]:this['_n'](_0xef6a32(0x45a),[],![]);}set[_0x541f38(0x4d5)](_0x13d066){this['__syncOverride']=_0x13d066;}get[_0x541f38(0x5f3)](){const _0x49570d=_0x541f38;return this[_0x49570d(0x528)]||(this['_compactLock']=new(requireLock())['NativeLock'](this[_0x49570d(0x5df)],'~system',_0x49570d(0x5e4),{'ttlMs':0xea60}));}get['path'](){const _0x39bd30=_0x541f38;return this['_path']??(this['_path']=this['_n'](_0x39bd30(0x41c),[]));}get['id'](){return this['_n']('id',[]);}get[_0x541f38(0x17c)](){const _0x968aa7=_0x541f38;return this[_0x968aa7(0x5df)][_0x968aa7(0x17c)];}['_n'](_0x3ae245,_0x183cd3){const _0x2c110b=_0x541f38;return this[_0x2c110b(0x5df)][_0x2c110b(0x463)]('env',this[_0x2c110b(0x397)],_0x3ae245,_0x183cd3,!_0x1bd5fc['has'](_0x3ae245));}[_0x541f38(0xb2)](_0x3a95e4){const _0x3c1e1a=_0x541f38;return this[_0x3c1e1a(0x5df)][_0x3c1e1a(0x29b)](_0x3a95e4);}[_0x541f38(0x163)](_0x5aa82a,_0x26a12f){const _0x1925fa=_0x541f38;if(_0x425137[_0x1925fa(0x43b)](_0x5aa82a==='pinned'?_0x26a12f[0x1]:_0x5aa82a))return this[_0x1925fa(0x5df)][_0x1925fa(0x75e)](this[_0x1925fa(0x397)],_0x5aa82a,_0x26a12f);return this['okdb'][_0x1925fa(0x54a)](_0x1925fa(0x78b),this[_0x1925fa(0x397)],_0x5aa82a,_0x26a12f);}[_0x541f38(0x316)](_0x2d9453={'useReadTransaction':![]}){return new(_0x27c181())(this,_0x2d9453);}async[_0x541f38(0x778)](_0x57bc50,_0x53ced4){const _0x3d63de=_0x541f38;return _0x27c181()[_0x3d63de(0x12d)](this,_0x57bc50,_0x53ced4);}[_0x541f38(0x773)](_0x4333c1,_0x4aabfe){const _0x1976cb=_0x541f38;if(this[_0x1976cb(0x3e7)])this[_0x1976cb(0x3e7)][_0x1976cb(0x7f5)]({'action':_0x4333c1,'args':_0x4aabfe});else this['_n'](_0x4333c1,_0x4aabfe);}[_0x541f38(0x15d)](_0x353e84,_0x47d5ab,_0x398f36,_0xf1d390,_0x499c69){const _0x365166=_0x541f38;this['_low'](_0x365166(0x540),[_0x47d5ab,_0x398f36,_0xf1d390,_0x499c69]);}[_0x541f38(0x32b)](_0xfa0e24,_0x12d853,_0x5bf315,_0x1d9d62,_0x294869){this['_low']('update',[_0x12d853,_0x5bf315,_0x1d9d62,_0x294869]);}[_0x541f38(0x3e3)](_0x345d1d,_0x149e41,_0x33bfa4,_0x123ce3,_0x28689b){const _0x318537=_0x541f38;this[_0x318537(0x773)]('patch',[_0x149e41,_0x33bfa4,_0x123ce3,_0x28689b]);}[_0x541f38(0x224)](_0x2c1515,_0x4affaa,_0x45d00c,_0x39bc77,_0x47dc7b){const _0x331d26=_0x541f38;this[_0x331d26(0x773)](_0x331d26(0x730),[_0x4affaa,_0x45d00c,_0x39bc77,_0x47dc7b]);}[_0x541f38(0x4ae)](_0x5bee7e,_0x36041a,_0x144ad6,_0x1863d4){const _0x10bc34=_0x541f38;this[_0x10bc34(0x773)](_0x10bc34(0x228),[_0x36041a,_0x144ad6,_0x1863d4]);}[_0x541f38(0x340)](_0x5cbcdb,_0x3d97cb,_0x5633fc,_0x468ce0){const _0x5ab82e=_0x541f38;this[_0x5ab82e(0x773)]('setTTL',[_0x3d97cb,_0x5633fc,_0x468ce0]);}[_0x541f38(0x3d1)](_0x42e2f7,_0x18bb92,_0x3e1ace){const _0x2e3ef9=_0x541f38;this[_0x2e3ef9(0x773)]('clearTTL',[_0x18bb92,_0x3e1ace]);}['_w'](_0xe84119,_0x1d1ace){const _0x1c1111=_0x541f38;return this[_0x1c1111(0x5df)]['_wb'][_0x1c1111(0x7a4)]('env',this[_0x1c1111(0x397)],_0xe84119,_0x1d1ace);}['put'](_0x2de2a7,_0x4e992b,_0x4a5c24,_0x30902b={}){return this['_w']('put',[_0x2de2a7,_0x4e992b,_0x4a5c24,_0x30902b]);}['update'](_0x5a6e3d,_0x27685f,_0x35ccd4,_0x16ea43={}){const _0x5b76d1=_0x541f38;return this['_w'](_0x5b76d1(0x37c),[_0x5a6e3d,_0x27685f,_0x35ccd4,_0x16ea43]);}[_0x541f38(0x720)](_0x52fdde,_0x14358a,_0x4a6631,_0x2cabed={}){return this['_w']('patch',[_0x52fdde,_0x14358a,_0x4a6631,_0x2cabed]);}[_0x541f38(0x730)](_0x392a12,_0x1647d5,_0x4dcf28,_0x6de36b={}){return this['_w']('create',[_0x392a12,_0x1647d5,_0x4dcf28,_0x6de36b]);}['remove'](_0x2d3f37,_0x1a27eb,_0x45b6eb={}){const _0x5fa9a7=_0x541f38;return this['_w'](_0x5fa9a7(0x228),[_0x2d3f37,_0x1a27eb,_0x45b6eb]);}[_0x541f38(0x576)](_0x3939b7,_0x4caccb,_0x2ba05c){const _0x4c76be=_0x541f38;if(_0x35b20f&&typeof _0x3939b7===_0x4c76be(0x48a)){const _0x10d982=this[_0x4c76be(0x5df)][_0x4c76be(0x535)](this[_0x4c76be(0x397)],_0x3939b7,_0x4caccb);if(_0x10d982!==_0x2006aa)return _0x10d982===null?this['_n'](_0x4c76be(0x576),[_0x3939b7,_0x4caccb]):_0x10d982;}if(_0x35238f&&(typeof _0x4caccb===_0x4c76be(0x48a)||typeof _0x4caccb===_0x4c76be(0x51e))){const _0x8311ee=this[_0x4c76be(0x5df)][_0x4c76be(0x117)](this[_0x4c76be(0x397)],_0x3939b7,_0x4caccb);if(_0x8311ee!==null)return _0x8311ee;}return this['_n'](_0x4c76be(0x576),[_0x3939b7,typeof _0x4caccb===_0x4c76be(0x3ad)?null:_0x4caccb]);}['getMany'](_0x5949b4,_0x1cad60,_0x52aaf6){const _0x821c32=_0x541f38,_0x2b15c3=[_0x5949b4,Array[_0x821c32(0x28e)](_0x1cad60)&&_0x1cad60['some'](_0xae992b=>typeof _0xae992b===_0x821c32(0x3ad))?_0x1cad60[_0x821c32(0x25e)](_0x3a7104=>typeof _0x3a7104==='symbol'?null:_0x3a7104):_0x1cad60];return _0x35238f?this[_0x821c32(0x5df)][_0x821c32(0x75e)](this[_0x821c32(0x397)],_0x821c32(0x249),_0x2b15c3):this['_n']('getMany',_0x2b15c3);}['getEntry'](_0x279d51,_0x26a084,_0xaf4530){const _0x245745=_0x541f38;return this['_n'](_0x245745(0x45e),[_0x279d51,typeof _0x26a084===_0x245745(0x3ad)?null:_0x26a084]);}['getCount'](_0x48fc4c,_0x5ee96c){const _0x39b296=_0x541f38;return this[_0x39b296(0x5d7)](_0x39b296(0x34f),_0x5ee96c),this['_n'](_0x39b296(0x34f),[_0x48fc4c,_0x23bb74(_0x5ee96c)]);}['_assertRangeOptions'](_0x4d8eb9,_0xe8591d,_0x1519c2=[]){const _0x33fb6c=_0x541f38;if(!_0xe8591d||typeof _0xe8591d!==_0x33fb6c(0x57c))return;for(const _0x13fd44 of Object[_0x33fb6c(0xc7)](_0xe8591d)){if(!_0x17fcb1[_0x33fb6c(0x43b)](_0x13fd44)&&!_0x1519c2[_0x33fb6c(0x61d)](_0x13fd44))throw new _0x4f671d(_0x4d8eb9+_0x33fb6c(0x201)+_0x13fd44+'\x27',_0x33fb6c(0x31d),{'option':_0x13fd44});}}['_range'](_0x2a1853,_0x4d80a6,_0x4338cf,_0x437746,_0x1903ef,_0xc9acd4){const _0x16bd70=_0x541f38;this[_0x16bd70(0x5d7)](_0x2a1853,_0x437746);const _0x545b9f=_0x437746?.['snapshot'],_0x43b134=_0x23bb74(_0x437746);if(_0x545b9f===!![]||_0x545b9f===_0x16bd70(0x399)){const _0x5d2262=this['_lazyPinned'](_0x2a1853,_0x4d80a6,_0x1bebbd=>[_0x4338cf,{..._0x43b134,..._0x1bebbd}],_0x437746);return _0xc9acd4?_0x5d2262[_0x16bd70(0x25e)](_0xc9acd4):_0x5d2262;}const _0x4bfd6a=_0x5c5aac(_0x1ba308=>this[_0x16bd70(0x163)](_0x4d80a6,[_0x4338cf,_0x1ba308]),_0x43b134,_0x1903ef,{'rows':_0x4d80a6===_0x16bd70(0x783)});return _0xc9acd4?_0x4bfd6a['map'](_0xc9acd4):_0x4bfd6a;}[_0x541f38(0x49d)](_0x1de1eb,_0x4c4674,_0x267567,_0x50a2e2,_0x594188,_0x29c732=![]){const _0x3b8c60=_0x541f38,{source:_0x25e7df,prefetch:_0x21d092}=_0x1a456c((_0x557762,_0x15e753)=>_0x557762==='unpin'?this['_n'](_0x557762,_0x15e753):this[_0x3b8c60(0x163)](_0x557762,_0x15e753),_0x4c4674,_0x267567,_0x50a2e2||{},_0x594188),_0x56e92b=_0x21d092(),_0x3486bd=!_0x29c732&&_0x50a2e2&&_0x50a2e2[_0x3b8c60(0x5d8)]===_0x3b8c60(0x399);let _0x1dd7ee=null;return _0x196deb(()=>({[Symbol[_0x3b8c60(0x16f)]]:()=>_0x1dd7ee=_0x25e7df(0x0,_0x2ea4d9(_0x56e92b))}),{'label':this[_0x3b8c60(0x397)]+':'+_0x1de1eb,..._0x3486bd?{'getTxnId':()=>this['db'][_0x3b8c60(0x379)]()[_0x3b8c60(0x44f)],'resume':()=>({[Symbol[_0x3b8c60(0x16f)]]:()=>_0x1dd7ee=_0x1dd7ee[_0x3b8c60(0x66c)]()})}:{}});}['getRange'](_0x3486b5,_0x27594c){const _0x333d99=_0x541f38;return this[_0x333d99(0x432)](_0x333d99(0x783),_0x333d99(0x783),_0x3486b5,_0x27594c,_0x549fa0=>_0x549fa0[_0x333d99(0x4fc)]);}[_0x541f38(0x139)](_0x54c7b8,_0x3bf049){const _0x17b5cc=_0x541f38;return this[_0x17b5cc(0x432)](_0x17b5cc(0x139),'getKeys',_0x54c7b8,_0x3bf049,_0x27607d=>_0x27607d);}[_0x541f38(0x5ec)](_0x47446d,_0x33ffda){const _0x52037a=_0x541f38;return this[_0x52037a(0x432)](_0x52037a(0x5ec),_0x52037a(0x783),_0x47446d,_0x33ffda,_0x46b56f=>_0x46b56f[_0x52037a(0x4fc)],_0x1fbc32=>_0x1fbc32[_0x52037a(0x27a)]);}['getByPrefix'](_0x1b87e9,_0x5db6a4,_0x2f4581={}){const _0x2c59f0=_0x541f38;return this[_0x2c59f0(0x783)](_0x1b87e9,{'start':_0x5db6a4,'end':_0x5db6a4+'￿',..._0x2f4581});}['getIndex'](_0x463529,_0x18f389,_0x387402={}){const _0x4e2e50=_0x541f38;this[_0x4e2e50(0x5d7)](_0x4e2e50(0x206),_0x387402,[_0x4e2e50(0x5be)]);const _0x271eb2=_0x23bb74(_0x387402);if(_0x387402&&_0x387402[_0x4e2e50(0x316)])return _0x30965a(this['_n'](_0x4e2e50(0x206),[_0x463529,_0x18f389,_0x271eb2]));return this[_0x4e2e50(0x49d)](_0x4e2e50(0x206),_0x4e2e50(0x206),_0x495902=>[_0x463529,_0x18f389,{..._0x271eb2,..._0x495902}],_0x387402,undefined,!![]);}[_0x541f38(0x594)](_0x9f7ce6,_0x401e9d,_0xdc8f06){const _0x2d6355=_0x541f38;this[_0x2d6355(0x5d7)](_0x2d6355(0x594),_0xdc8f06,['prefix','includeViolations']);const _0x2fd05a=_0x23bb74(_0xdc8f06);if(_0xdc8f06&&_0xdc8f06[_0x2d6355(0x316)])return _0x30965a(this['_n']('byIndex',[_0x9f7ce6,_0x401e9d,_0x2fd05a]));return this['_lazyPinned']('byIndex',_0x2d6355(0x594),_0x2297ab=>[_0x9f7ce6,_0x401e9d,{..._0x2fd05a,..._0x2297ab}],_0xdc8f06,undefined,!![]);}[_0x541f38(0x426)](_0x5416f2,_0x598ac9,_0x236982={}){const _0x27bff8=_0x541f38;return this['_n'](_0x27bff8(0x426),[_0x5416f2,_0x598ac9,_0x23bb74(_0x236982)]);}['query'](_0xee6bef,_0x408ab1={},_0x5c46b2={}){const _0x19ad1c=_0x541f38,_0x17c051=_0x13585a(_0x5c46b2);if(_0x5c46b2){for(const _0x751406 of Object[_0x19ad1c(0xc7)](_0x5c46b2))if(_0x751406!==_0x19ad1c(0x14c)&&typeof _0x5c46b2[_0x751406]==='function')_0x17c051[_0x751406]=null;}if(_0x5c46b2&&(_0x5c46b2[_0x19ad1c(0x7b1)]||_0x5c46b2[_0x19ad1c(0x625)]))return this['_n'](_0x19ad1c(0x5e0),[_0x17c051]),this[_0x19ad1c(0x1bf)](_0xee6bef,_0x408ab1,_0x5c46b2);const _0x5cf436=typeof _0x5c46b2[_0x19ad1c(0x14c)]===_0x19ad1c(0x5a8)?_0x5c46b2[_0x19ad1c(0x14c)]:null;if(_0x5c46b2[_0x19ad1c(0x1c4)]||_0x31c841(_0x408ab1)||_0x5c46b2[_0x19ad1c(0x316)]!==undefined){let _0x1eb222=this['_n'](_0x19ad1c(0x2b2),[_0xee6bef,_0x408ab1,_0x17c051]);if(_0x5cf436)_0x1eb222=_0x1eb222[_0x19ad1c(0x25e)](_0x5cf436);if(_0x5c46b2[_0x19ad1c(0x1c4)]||_0x31c841(_0x408ab1))return _0x1eb222;return _0x30965a(_0x1eb222);}const _0x1ff651=_0xf902e2=>typeof _0xf902e2==='number'&&Number[_0x19ad1c(0x409)](_0xf902e2)?Math[_0x19ad1c(0x7f0)](0x0,_0xf902e2):Infinity;let _0x5d220a;if(_0x5c46b2[_0x19ad1c(0x67a)]){const _0x4beb5d=_0xfc00cf=>typeof _0xfc00cf===_0x19ad1c(0x51e)&&_0xfc00cf>0x0?Math[_0x19ad1c(0x1fc)](_0xfc00cf):0x0;_0x5d220a=this[_0x19ad1c(0x49d)](_0x19ad1c(0x2b2),'query',_0x4f4d26=>[_0xee6bef,_0x408ab1,{..._0x17c051,..._0x4f4d26}],null,{'limitOf':()=>_0x1ff651(_0x17c051[_0x19ad1c(0x7bb)]),'offsetOf':()=>_0x4beb5d(_0x17c051[_0x19ad1c(0x1bb)])});}else _0x5d220a=_0x5c5aac(_0x45abbd=>{const _0x353e90=_0x19ad1c,{__after:_0x2576ef,..._0x27d0ef}=_0x45abbd;return this['_np'](_0x353e90(0x2b2),_0x2576ef===undefined?[_0xee6bef,_0x408ab1,_0x27d0ef]:[_0xee6bef,_0x408ab1,_0x27d0ef,_0x2576ef]);},_0x17c051,_0x2943b4=>_0x2943b4['key'],{'limitOf':_0x1ff651,'rows':!![],'prefetch':!![],'resumeOpts':(_0x4ced29,_0x178083)=>{const _0x418d9f=_0x19ad1c;_0x4ced29[_0x418d9f(0x1bb)]=0x0,_0x4ced29['__after']=_0x178083;}});return _0x5cf436?_0x5d220a[_0x19ad1c(0x25e)](_0x5cf436):_0x5d220a;}async[_0x541f38(0x1bf)](_0x3ea725,_0x17a9f0,_0xe86b84){const _0x393efc=_0x541f38,{select:_0x3d3de3,..._0xc347a3}=_0x13585a(_0xe86b84);let _0x504baf={..._0xc347a3};const _0x12c6fb=_0x504baf[_0x393efc(0x67a)];if(_0x12c6fb&&!Array['isArray'](_0x12c6fb)&&typeof _0x12c6fb==='object'&&_0x12c6fb['fields']){const {fields:_0x59612f,prefix:_0xcd9d63,start:_0x2a1574,end:_0x3e2022}=_0x12c6fb;_0x504baf={..._0x504baf,'index':_0x59612f,'prefix':_0xcd9d63??_0x504baf[_0x393efc(0x5be)],'startIndex':_0x2a1574??_0x504baf[_0x393efc(0x6db)],'endIndex':_0x3e2022??_0x504baf[_0x393efc(0x3f8)]};}const _0x3d1e2c=await this[_0x393efc(0x5df)][_0x393efc(0x338)](_0x393efc(0xe1),null,_0x393efc(0x11e),[this[_0x393efc(0x397)],_0x3ea725,_0x17a9f0,_0x504baf],![]),_0x79a1eb=typeof _0xe86b84[_0x393efc(0x14c)]==='function'?_0xe86b84[_0x393efc(0x14c)]:null;if(!_0x79a1eb)return _0x3d1e2c;return _0x3d1e2c[_0x393efc(0x25e)](_0xf629fa=>{const {score:_0x51a90e,ftsScore:_0x1ba93a,numTerms:_0x4dff38,maxScore:_0xdbe4af,vectorScore:_0x535c64,chunkHash:_0x1053c3,chunk:_0x30821a,..._0x793f03}=_0xf629fa,_0x145668=_0x79a1eb(_0x793f03);for(const [_0x21a2aa,_0x4b8f9b]of Object['entries']({'score':_0x51a90e,'ftsScore':_0x1ba93a,'numTerms':_0x4dff38,'maxScore':_0xdbe4af,'vectorScore':_0x535c64,'chunkHash':_0x1053c3,'chunk':_0x30821a}))if(_0x4b8f9b!==undefined)_0x145668[_0x21a2aa]=_0x4b8f9b;return _0x145668;});}[_0x541f38(0x559)](_0x2c8cd1,_0x5a0d01,_0x3e79af={}){const _0x42af65=_0x541f38;let _0x2e2da3=this['_n'](_0x42af65(0x559),[_0x2c8cd1,_0x5a0d01,_0x13585a(_0x3e79af)]);if(typeof _0x3e79af['select']===_0x42af65(0x5a8))_0x2e2da3=_0x2e2da3[_0x42af65(0x25e)](_0x3e79af[_0x42af65(0x14c)]);return _0x2e2da3;}[_0x541f38(0x18c)](_0x51ea53=null,_0x2c30cb={}){const _0x4f3500=_0x541f38;return this['_n'](_0x4f3500(0x18c),[_0x51ea53]);}[_0x541f38(0x232)](_0xed3c47=null,_0x3f868=0x0,_0x2d2dfb=Number[_0x541f38(0x3c9)],_0x1d47fe={}){const _0x3c8d85=_0x541f38,_0x318bb0=_0x23bb74(_0x1d47fe);if(_0x1d47fe&&_0x1d47fe[_0x3c8d85(0x316)])return _0x30965a(this['_n']('getChanges',[_0xed3c47,_0x3f868,_0x2d2dfb,_0x318bb0]));return this[_0x3c8d85(0x49d)]('getChanges',_0x3c8d85(0x232),_0xbe43fd=>[_0xed3c47,_0x3f868,_0x2d2dfb,{..._0x318bb0,..._0xbe43fd}],_0x1d47fe);}[_0x541f38(0x650)](_0x1b0dbb){const _0x3750d4=_0x541f38;if(Array[_0x3750d4(0x28e)](_0x1b0dbb))return _0x1b0dbb[_0x3750d4(0x5f6)];let _0x3b0bc8=0x0;for(const _0x1d1018 of _0x1b0dbb)_0x3b0bc8++;return _0x3b0bc8;}*[_0x541f38(0x3c4)](_0x130ecc){yield*_0x130ecc;}['now'](){const _0x2868c0=_0x541f38;return requireOkdbHlc()[_0x2868c0(0x54c)](this[_0x2868c0(0x734)]);}get[_0x541f38(0x486)](){const _0x47153e=_0x541f38,_0x1d2c99=this[_0x47153e(0x5df)]['_isOpen']?this[_0x47153e(0x5df)][_0x47153e(0x463)]('db',null,_0x47153e(0x663),[this[_0x47153e(0x397)]],![]):null;if(!_0x1d2c99)return null;if(this[_0x47153e(0x2a0)]===_0x1d2c99[_0x47153e(0x6c0)])return null;this[_0x47153e(0x292)]=this[_0x47153e(0x292)]||new Map();let _0x1d66f4=this[_0x47153e(0x292)][_0x47153e(0x576)](_0x1d2c99[_0x47153e(0x6c0)]);if(!_0x1d66f4){const _0x346625=this;_0x1d66f4={'ref'(){},'unref'(){},'hasRef':()=>![],'gen':_0x1d2c99[_0x47153e(0x6c0)],'at':_0x1d2c99['at'],'target':_0x1d2c99['target'],get '_destroyed'(){const _0x3948fd=_0x47153e,_0x5e7bbd=_0x346625[_0x3948fd(0x5df)][_0x3948fd(0x109)]?_0x346625[_0x3948fd(0x5df)][_0x3948fd(0x463)]('db',null,_0x3948fd(0x663),[_0x346625[_0x3948fd(0x397)]],![]):null;return!_0x5e7bbd||_0x5e7bbd[_0x3948fd(0x6c0)]!==this['gen']||_0x346625[_0x3948fd(0x2a0)]===this['gen'];}},this[_0x47153e(0x292)][_0x47153e(0x227)](_0x1d2c99[_0x47153e(0x6c0)],_0x1d66f4);}return _0x1d66f4;}[_0x541f38(0x3ff)](){const _0x445ef5=_0x541f38,_0x2ecef7=this['okdb'][_0x445ef5(0x463)]('db',null,_0x445ef5(0x663),[this['name']],![]);if(_0x2ecef7)this['__ttlCancelledGen']=_0x2ecef7[_0x445ef5(0x6c0)];}get[_0x541f38(0x5b1)](){const _0x286024=_0x541f38,_0x36c06c=this[_0x286024(0x5df)][_0x286024(0x463)]('db',null,'ttlTimer',[this['name']],![]);return _0x36c06c?_0x36c06c[_0x286024(0x5ac)]:null;}get['_autoCompactTimer'](){const _0x1cfcba=_0x541f38;return this['okdb'][_0x1cfcba(0x463)]('db',null,_0x1cfcba(0x178),[this[_0x1cfcba(0x397)]],![])?{'ref'(){},'unref'(){}}:null;}[_0x541f38(0x24f)](){const _0x51b15b=_0x541f38;this[_0x51b15b(0x5df)][_0x51b15b(0x463)]('db',null,_0x51b15b(0x10b),[this['name']],![]);}['_stopAutoCompactCheck'](){const _0x5c3d85=_0x541f38;this[_0x5c3d85(0x5df)]['_call']('db',null,_0x5c3d85(0x1de),[this['name']],![]);}get[_0x541f38(0x200)](){const _0x13eb90=_0x541f38,_0x5c0638=(_0x3c83dc,_0x1bb432)=>this[_0x13eb90(0x5df)][_0x13eb90(0x463)]('db',null,_0x3c83dc,[this['name'],..._0x1bb432],![]),_0xf58490=Object['keys'](_0x5c0638(_0x13eb90(0x20a),[])||{}),_0x595cfb={};for(const _0x18205e of _0xf58490)Object[_0x13eb90(0x4a2)](_0x595cfb,_0x18205e,{'enumerable':!![],'get':()=>_0x5c0638(_0x13eb90(0x20a),[])?.[_0x18205e],'set':_0xa7a152=>{_0x5c0638('setAutoCompact',[_0x18205e,_0xa7a152]);}});return _0x595cfb;}get[_0x541f38(0x734)](){const _0x7bc0d1=_0x541f38;return this['_n'](_0x7bc0d1(0x328),[]);}[_0x541f38(0x2be)](_0x58ea28,_0x24463a){return require$$16['isDeepStrictEqual'](_0x58ea28,_0x24463a);}async[_0x541f38(0x5bb)](_0x55fc4f,_0x20827d){const _0x2bafb8=_0x541f38;return this[_0x2bafb8(0xb2)](this['_n']('registerType',[_0x55fc4f]));}[_0x541f38(0x7d2)](_0xfba1ba){const _0x3ec8f9=_0x541f38;return this['_n'](_0x3ec8f9(0x7d2),[_0xfba1ba]);}[_0x541f38(0x498)](){const _0x233556=_0x541f38;return this['_n'](_0x233556(0x498),[]);}async['dropType'](_0x5d9053,_0x3ceebf){const _0x575ea7=_0x541f38;return this['_wsettle'](this['_n'](_0x575ea7(0x3e0),[_0x5d9053]));}async[_0x541f38(0x4f2)](_0x5c7101,_0x6e44f0){const _0xbbaa6=_0x541f38,{timestamp:_0x22fa38,indexes:indexes=[]}=_0x17ba82(_0x6e44f0);return this[_0xbbaa6(0xb2)](this['_n'](_0xbbaa6(0x4f2),[_0x5c7101,{'indexes':indexes}]));}async[_0x541f38(0x71f)](_0x4cfeb2){const _0x2192f5=_0x541f38,{type:_0x53fb14,indexes:indexes=[],fts:fts=[],views:views=[],schema:schema=null}=_0x17ba82(_0x4cfeb2,_0x2192f5(0x4a1));if(!_0x53fb14)throw new Error(_0x2192f5(0x154));await this[_0x2192f5(0x4f2)](_0x53fb14,{'indexes':indexes});for(const _0xf0164e of fts){const {name:_0x49e78b,fields:_0x26925b,..._0x50dffe}=_0xf0164e;if(!_0x49e78b||!_0x26925b)throw new Error(_0x2192f5(0x73d));await this['okdb'][_0x2192f5(0x7b1)]['ensure'](_0x53fb14,_0x49e78b,{'fields':_0x26925b,..._0x50dffe},this);}for(const _0x5e8d31 of views){const {name:_0x1a9def,definition:_0x3163af}=_0x5e8d31;if(!_0x1a9def||!_0x3163af)throw new Error('ensure:\x20view\x20entry\x20missing\x20name\x20or\x20definition');if(!await this[_0x2192f5(0x290)]['getDefinition'](_0x1a9def))await this[_0x2192f5(0x290)][_0x2192f5(0x730)](_0x1a9def,_0x3163af);}if(schema)await this[_0x2192f5(0x208)](_0x53fb14,schema);}async[_0x541f38(0x703)](_0x414209,_0x5b5664,_0x202ab0){const _0x1f2125=_0x541f38,_0x179ad8=this['_n'](_0x1f2125(0x5ad),[_0x414209,_0x5b5664,typeof _0x202ab0===_0x1f2125(0x57c)?_0x202ab0:{}]);if(!_0x179ad8)return this[_0x1f2125(0xb2)](undefined);const _0x449cb8=this['_n'](_0x1f2125(0x412),[_0x414209,_0x5b5664,!![]]);if(_0x449cb8===undefined)return this['_wsettle'](undefined);return this[_0x1f2125(0xb2)](await this[_0x1f2125(0x64e)](_0x414209,_0x5b5664,_0x449cb8));}async['_indexBuild'](_0x15d552,_0x38fa8a,_0x288d7c){const _0x269efa=_0x541f38,_0x58bb44=_0x15d552+'@'+[][_0x269efa(0x748)](_0x38fa8a)[_0x269efa(0x4b7)]('~');if(!this[_0x269efa(0x705)])this[_0x269efa(0x705)]=new Map();const _0x5e4c24=this[_0x269efa(0x705)][_0x269efa(0x576)](_0x58bb44);if(_0x5e4c24)return _0x5e4c24;const _0x56078c=((async()=>{const _0x3fcd36=_0x269efa;do await new Promise(_0x2b7fcd=>setImmediate(_0x2b7fcd));while(!this['_n'](_0x3fcd36(0x418),[_0x15d552,_0x38fa8a,_0x288d7c,!![]]));})());this[_0x269efa(0x705)]['set'](_0x58bb44,_0x56078c);try{return await _0x56078c;}finally{this[_0x269efa(0x705)][_0x269efa(0x32d)](_0x58bb44);}}async['dropIndex'](_0x50572c,_0x3cba3c,_0x47cc1b){const _0x4199c2=_0x541f38;return this[_0x4199c2(0xb2)](this['_n'](_0x4199c2(0x318),[_0x50572c,_0x3cba3c]));}async[_0x541f38(0x545)](_0x4b4666,_0xeed548,_0x2330c0){const _0x5e551e=_0x541f38,_0x15555c=this[_0x5e551e(0x705)]&&this[_0x5e551e(0x705)][_0x5e551e(0x576)](_0x4b4666+'@'+[][_0x5e551e(0x748)](_0xeed548)[_0x5e551e(0x4b7)]('~'));if(_0x15555c)return _0x15555c;const _0x102bce=this['_n']('resetIndexBegin',[_0x4b4666,_0xeed548,_0x2330c0]);if(_0x102bce===undefined)return;return await new Promise(_0x18b710=>setImmediate(_0x18b710)),this[_0x5e551e(0xb2)](await this[_0x5e551e(0x64e)](_0x4b4666,_0xeed548,_0x102bce));}[_0x541f38(0x13c)](_0x2c2374,_0x37c823){const _0x10425f=_0x541f38;return this['_n'](_0x10425f(0x13c),[_0x2c2374,_0x37c823]);}[_0x541f38(0x322)](_0x534949,_0x373c4f){const _0x8ddc4b=_0x541f38;return this['_n'](_0x8ddc4b(0x322),[_0x534949,_0x373c4f]);}async['indexReady'](_0x29f37a,_0x1e11b7){const _0x4c8d17=_0x541f38;if(this['_n'](_0x4c8d17(0x322),[_0x29f37a,_0x1e11b7])===_0x4c8d17(0x47f))return!![];let _0x5b2db5=0xa;for(;;){await new Promise(_0xf2866f=>setTimeout(_0xf2866f,_0x5b2db5));if(!this[_0x4c8d17(0x5df)][_0x4c8d17(0x109)]||this[_0x4c8d17(0x749)])return![];let _0x1b18f3;try{_0x1b18f3=this['_n'](_0x4c8d17(0x488),[_0x29f37a,Array[_0x4c8d17(0x28e)](_0x1e11b7)?_0x1e11b7[_0x4c8d17(0x4b7)]('~'):String(_0x1e11b7)[_0x4c8d17(0x711)](',')[_0x4c8d17(0x4b7)]('~')]);}catch{return![];}const _0x1ec21a=_0x1b18f3&&_0x1b18f3[_0x4c8d17(0x26e)];if(_0x1ec21a===_0x4c8d17(0x47f))return!![];if(_0x1ec21a===undefined)return![];_0x5b2db5=Math[_0x4c8d17(0x4b5)](_0x5b2db5*0x2,0xfa);}}[_0x541f38(0x488)](_0x508121,_0x1341cf){return this['_n']('getIndexMeta',[_0x508121,_0x1341cf])??null;}['getUniqueViolations'](_0x5c06f0,_0x110e12){const _0x33c28c=_0x541f38;return this['_n'](_0x33c28c(0x3f2),[_0x5c06f0,_0x110e12]);}[_0x541f38(0x3b6)](_0x2d4c36,_0x270901){const _0x5abdab=_0x541f38;return this['_n'](_0x5abdab(0x3b6),[_0x2d4c36,_0x270901]);}[_0x541f38(0x3ae)](_0x8dc48c,_0x55aa59,_0x559c79){const _0x15bb98=_0x541f38;return this['_n'](_0x15bb98(0x3ae),[_0x8dc48c,_0x55aa59,_0x559c79])??null;}['getSchema'](_0x5cec0a){const _0x691764=_0x541f38;return this['_n'](_0x691764(0x7ab),[_0x5cec0a])??null;}async['setSchema'](_0x3a9d27,_0x3f8588){const _0xdb447=_0x541f38;return this[_0xdb447(0xb2)](this['_n'](_0xdb447(0x208),[_0x3a9d27,_0x3f8588]));}async[_0x541f38(0x401)](_0x10b6f1){const _0x571d4d=_0x541f38;return this['_wsettle'](this['_n'](_0x571d4d(0x401),[_0x10b6f1]));}[_0x541f38(0x6e2)](_0x53ed8f,_0x596263){return this['_n']('getViolation',[_0x53ed8f,_0x596263])??null;}['listViolations'](_0x2d22e1){return this['_n']('listViolations',[_0x2d22e1]);}[_0x541f38(0x6b5)](_0x164b97,_0x76d445,_0xdc1720){const _0x2fe29e=_0x541f38;return this['_n'](_0x2fe29e(0x6b5),[_0x164b97,_0x76d445,_0xdc1720])??null;}['listRefViolations'](_0x438c7b){const _0x2c575d=_0x541f38;return this['_n'](_0x2c575d(0x3e8),[_0x438c7b]);}async['setTTL'](_0x2c7919,_0xa91272,_0x3519c8){const _0x249691=_0x541f38;return this['_wsettle'](this['_n'](_0x249691(0x4dd),[_0x2c7919,_0xa91272,_0x3519c8]));}[_0x541f38(0x6a9)](_0x35d460,_0x54aa7a){const _0x147ad8=_0x541f38;return this['_n'](_0x147ad8(0x6a9),[_0x35d460,_0x54aa7a]);}async[_0x541f38(0x60f)](_0x290301,_0x5797dc){const _0x15b56c=_0x541f38;return this[_0x15b56c(0xb2)](this['_n']('clearTTL',[_0x290301,_0x5797dc]));}async[_0x541f38(0x4d7)](_0x1c1c3c){const _0x9e66e9=_0x541f38;return this['_n'](_0x9e66e9(0x4d7),[_0x1c1c3c]);}[_0x541f38(0xd6)](_0x45d375={}){const _0x1fc785=_0x541f38;return this['_n'](_0x1fc785(0xd6),[_0x45d375]);}[_0x541f38(0x3da)](_0x288e94){const _0x2db259=_0x541f38;return this['_n'](_0x2db259(0x3da),[_0x288e94]);}async['setDefaultTTL'](_0x450b9e,_0x5285f2){const _0x331e15=_0x541f38;return this[_0x331e15(0xb2)](this['_n'](_0x331e15(0x65f),[_0x450b9e,_0x5285f2]));}[_0x541f38(0xc3)](_0x79448){const _0x34e12f=_0x541f38;return this['_n'](_0x34e12f(0xc3),[_0x79448]);}async[_0x541f38(0x325)](_0x4938f2){const _0x3a5d90=_0x541f38;return this[_0x3a5d90(0xb2)](this['_n'](_0x3a5d90(0x325),[_0x4938f2]));}async[_0x541f38(0x738)](_0x38c062,_0x465a7a,_0x19b061,_0x3883cd){const _0x5aa1b1=_0x541f38,{batch:batch=null,batchSize:_0x4fb42e}=_0x17ba82(_0x3883cd);if(typeof _0x38c062!==_0x5aa1b1(0x48a)||!_0x38c062)throw new _0x4f671d(_0x5aa1b1(0xbf),_0x5aa1b1(0x32c));if(typeof _0x465a7a!==_0x5aa1b1(0x48a)||!_0x465a7a)throw new _0x4f671d('resolveField:\x20field\x20required',_0x5aa1b1(0x32c));if(_0x19b061!=null&&typeof _0x19b061!==_0x5aa1b1(0x5a8))throw new _0x4f671d(_0x5aa1b1(0x11c),_0x5aa1b1(0x32c));if(batch!=null&&typeof batch!=='function')throw new _0x4f671d(_0x5aa1b1(0x563),'BAD_PARAM');if(!_0x19b061&&!batch)throw new _0x4f671d(_0x5aa1b1(0x50a),_0x5aa1b1(0x32c));if(_0x4fb42e!==undefined&&!(Number[_0x5aa1b1(0x409)](_0x4fb42e)&&_0x4fb42e>0x0))throw new _0x4f671d(_0x5aa1b1(0x538),_0x5aa1b1(0x32c));const _0x58b363=batch?async _0x3bc783=>(await batch(_0x3bc783))[_0x5aa1b1(0x25e)](_0x4492d9=>_0x4492d9 instanceof Error?{'__error':!![],'message':_0x4492d9[_0x5aa1b1(0xe9)]}:_0x4492d9):null,_0x3eb8e3=_0x15dd4d(this,_0x38c062,_0x465a7a),_0x531c9d=this['_n'](_0x5aa1b1(0x738),[_0x38c062,_0x465a7a,_0x19b061?(_0x1a1565,_0x4d7dbc)=>_0x3eb8e3(_0x19b061,[_0x1a1565,_0x4d7dbc]):null,{'batch':_0x58b363?_0x570387=>_0x3eb8e3(_0x58b363,[_0x570387]):null,'batchSize':_0x4fb42e}]);return()=>this['_n'](_0x5aa1b1(0x661),[_0x531c9d]);}async[_0x541f38(0x53e)](_0x4873d5,_0x514461){const _0x3a49e6=_0x541f38;return this['_n'](_0x3a49e6(0x53e),[_0x4873d5,_0x514461]);}['resolvedFields'](_0x632646){const _0x5155e0=_0x541f38;return this['_n'](_0x5155e0(0x595),[_0x632646]);}async[_0x541f38(0x7e6)](_0x26e856,_0x3b9720,_0x29a992,_0xc638c4){const _0x34c2f2=_0x541f38;return this[_0x34c2f2(0x5df)][_0x34c2f2(0x338)](_0x34c2f2(0x78b),this[_0x34c2f2(0x397)],_0x34c2f2(0x7e6),[_0x26e856,_0x3b9720,_0x29a992,_0xc638c4],![]);}async[_0x541f38(0x440)](_0x32be64,_0x3b509d,_0xbb016d){const _0x4c8183=_0x541f38;return this[_0x4c8183(0x5df)][_0x4c8183(0x338)](_0x4c8183(0x78b),this[_0x4c8183(0x397)],_0x4c8183(0x440),[_0x32be64,_0x3b509d,_0xbb016d],![]);}[_0x541f38(0xf3)](){}[_0x541f38(0x5a0)](_0x24b48e,_0x315f79,_0xad1297,_0x49df46={},_0x47eb70={}){const _0x50c31f=_0x541f38;return this[_0x50c31f(0x5df)][_0x50c31f(0x463)](_0x50c31f(0x7b1),null,_0x50c31f(0x5a0),[_0x24b48e,_0x315f79,_0xad1297,_0x49df46,_0x47eb70,this['name']],![]);}get[_0x541f38(0x7b1)](){const _0x2994ab=_0x541f38;return this[_0x2994ab(0x5df)][_0x2994ab(0x7b1)];}[_0x541f38(0x776)](){const _0x23eb3e=_0x541f38;return this[_0x23eb3e(0x5df)][_0x23eb3e(0x463)](_0x23eb3e(0x78b),this['name'],_0x23eb3e(0x776),[],![]);}[_0x541f38(0x6c6)](){const _0x2501b2=_0x541f38;return this[_0x2501b2(0x5df)][_0x2501b2(0x6c6)]();}[_0x541f38(0x3db)](){const _0x23d1b7=_0x541f38;return this[_0x23d1b7(0x5df)][_0x23d1b7(0x463)]('env',this[_0x23d1b7(0x397)],_0x23d1b7(0x3db),[],![]);}[_0x541f38(0x6c5)](){}get['locks'](){const _0xb61b19=_0x541f38;return this['_locks']||(this['_locks']=new(requireLock())['NativeLock'](this[_0xb61b19(0x5df)],this[_0xb61b19(0x397)],_0xb61b19(0x78b)));}[_0x541f38(0x64c)](){const _0x2f19de=_0x541f38;return this[_0x2f19de(0x5df)][_0x2f19de(0x463)](_0x2f19de(0x78b),this[_0x2f19de(0x397)],_0x2f19de(0x64c),[],![]);}['_registerType'](_0x2a4c7a){const _0x423e22=_0x541f38;this['_n'](_0x423e22(0x5bb),[_0x2a4c7a]);}[_0x541f38(0x2e9)](_0x11da80){this['_n']('logChange',[_0x11da80]);}[_0x541f38(0x257)](){const _0x12108e=_0x541f38;return this['_n'](_0x12108e(0x7e4),[]);}[_0x541f38(0x6eb)](_0x316028,_0x28fb61){return _0x316028+'\x09'+_0x28fb61;}[_0x541f38(0x3a7)](_0x2b31ff){const _0x1bff89=_0x541f38,_0x19755e=_0x2b31ff[_0x1bff89(0x26c)]('\x09');return{'type':_0x2b31ff[_0x1bff89(0x1be)](0x0,_0x19755e),'key':_0x2b31ff[_0x1bff89(0x1be)](_0x19755e+0x1)};}get[_0x541f38(0x72b)](){const _0x579da0=_0x541f38;if(!this[_0x579da0(0x257)]()[_0x579da0(0x57b)])return null;return this['__ttlByKey']||(this[_0x579da0(0x44b)]=new _0xbe812(this,_0x579da0(0x362)));}get[_0x541f38(0x596)](){const _0x13ebb5=_0x541f38;if(!this[_0x13ebb5(0x257)]()['enabled'])return null;return this[_0x13ebb5(0x169)]||(this[_0x13ebb5(0x169)]=new _0xbe812(this,_0x13ebb5(0x272),{'dupSort':!![]}));}[_0x541f38(0x3b7)](_0x3cf830,_0x225768,_0x5122c5){const _0x2cec94=_0x541f38;this['_n'](_0x2cec94(0x5b6),[_0x3cf830,_0x225768,_0x5122c5]);}[_0x541f38(0x4cc)](_0xc1cc4a,_0x4750e9){const _0x250c37=_0x541f38,_0x4ef76f=this[_0x250c37(0x72b)]?.[_0x250c37(0x576)](this[_0x250c37(0x6eb)](_0xc1cc4a,_0x4750e9));return _0x4ef76f!=null&&_0x4ef76f<=Date['now']();}get[_0x541f38(0x72f)](){const _0x34748f=_0x541f38;return this[_0x34748f(0x257)]()['nextExpiry']??null;}get[_0x541f38(0x35f)](){return this['_ttlState']()['backoffUntil']||0x0;}get[_0x541f38(0x329)](){return![];}[_0x541f38(0x2a1)](){}async['_rebuild'](_0x57fbd6,_0x497512){const _0x4ce2fd=_0x541f38;if(this[_0x4ce2fd(0x159)]){const {OKDBError:_0x559556}=requireErrors();throw new _0x559556(_0x4ce2fd(0x449),_0x4ce2fd(0x2b8));}this[_0x4ce2fd(0x159)]=!![];try{const _0x238939={..._0x497512||{},'repair':_0x57fbd6===_0x4ce2fd(0x460)};this['okdb'][_0x4ce2fd(0x463)](_0x4ce2fd(0x78b),this[_0x4ce2fd(0x397)],_0x4ce2fd(0x6a4),[_0x238939]);const _0x27748b=this[_0x4ce2fd(0x5df)][_0x4ce2fd(0x1e0)];while(this[_0x4ce2fd(0x5df)]['_call'](_0x4ce2fd(0x78b),this['name'],_0x4ce2fd(0x76f),[],![]))await _0x27748b[_0x4ce2fd(0x50d)](0xfa);return this[_0x4ce2fd(0x5df)][_0x4ce2fd(0x463)](_0x4ce2fd(0x78b),this[_0x4ce2fd(0x397)],'takeCompactResult',[],![]);}finally{this[_0x4ce2fd(0x159)]=![];}}async[_0x541f38(0x5e4)](_0x3aee1b={}){const _0x10bb35=_0x541f38;return this[_0x10bb35(0x1d9)](_0x10bb35(0x5e4),_0x3aee1b);}async[_0x541f38(0x460)](_0x2eb4b5={}){const _0x2cb44f=_0x541f38;return this[_0x2cb44f(0x1d9)](_0x2cb44f(0x460),_0x2eb4b5);}}_0x462cbe['HIGH_SENTINEL']=_0x55df5f;function _0x31c841(_0x170fd9){const _0x2c1ee5=_0x541f38;if(!_0x170fd9||typeof _0x170fd9!==_0x2c1ee5(0x57c))return![];for(const _0x349a92 of Object[_0x2c1ee5(0xc7)](_0x170fd9)){const _0x5f2c45=_0x170fd9[_0x349a92];if(_0x5f2c45&&typeof _0x5f2c45===_0x2c1ee5(0x57c)&&(_0x5f2c45[_0x2c1ee5(0x1f2)]||_0x5f2c45[_0x2c1ee5(0x7ec)]))return!![];}return![];}function _0x23bb74(_0x2afcb2){const _0x16ae88=_0x541f38;if(!_0x2afcb2||typeof _0x2afcb2!=='object')return{};const _0x163e2d={};for(const _0x43af97 of Object[_0x16ae88(0xc7)](_0x2afcb2)){if(_0x43af97===_0x16ae88(0x316)||_0x43af97===_0x16ae88(0x5d8))continue;_0x163e2d[_0x43af97]=_0x2afcb2[_0x43af97];}return _0x163e2d;}function _0x13585a(_0x4c7b52){const _0x23e609=_0x541f38;if(!_0x4c7b52||typeof _0x4c7b52!==_0x23e609(0x57c))return{};const _0x3fd196={};for(const _0xb9ed70 of Object['keys'](_0x4c7b52)){if(typeof _0x4c7b52[_0xb9ed70]===_0x23e609(0x5a8))continue;_0x3fd196[_0xb9ed70]=_0x4c7b52[_0xb9ed70];}return _0x3fd196;}return env={'OKDBEnv':_0x462cbe,'HIGH_SENTINEL':_0x55df5f},env;}var unsupported,hasRequiredUnsupported;function requireUnsupported(){if(hasRequiredUnsupported)return unsupported;hasRequiredUnsupported=0x1;const {NotImplementedNative:_0x97dd61}=requireErrors();function _0x2ce697(_0xeea4ae){const _0x4a3ba2=_0x4d4c8c=>{throw new _0x97dd61(_0xeea4ae,_0x4d4c8c);};return new Proxy(function(){},{'get'(_0x254b8d,_0x13fc02){const _0x2fcab4=_0x458f;if(typeof _0x13fc02===_0x2fcab4(0x3ad)||_0x13fc02===_0x2fcab4(0x5eb)||_0x13fc02==='toJSON'||_0x13fc02===_0x2fcab4(0x149))return undefined;if(_0x13fc02==='__notImplementedNative')return _0xeea4ae;return(..._0x1cc2f9)=>_0x4a3ba2(_0xeea4ae+'.'+String(_0x13fc02));},'apply'(){_0x4a3ba2(_0xeea4ae);},'set'(){return!![];}});}return unsupported={'notImplemented':_0x2ce697},unsupported;}var http,hasRequiredHttp;function requireHttp(){const _0x53dccd=_0x5186d4;if(hasRequiredHttp)return http;hasRequiredHttp=0x1;function _0x39bf70(_0x18949a,_0x44ed2c={}){const _0x95e4c0=_0x458f,_0x50c987=[];let _0x49b8bf=![];_0x18949a[_0x95e4c0(0x770)]('/*')&&(_0x49b8bf=!![],_0x18949a=_0x18949a[_0x95e4c0(0x1be)](0x0,-0x2),_0x50c987['push']('*'));let _0x39144c=_0x18949a['replace'](/\/+$/,'')[_0x95e4c0(0xbe)](/\[([^\]]*)\]/g,(_0x2e2e79,_0x23f9e9)=>{const _0x27ab07=_0x95e4c0,_0x10e71e=_0x23f9e9[_0x27ab07(0xbe)](/\/:(\w+)(?:=([^/\]\s]*))?/g,(_0x1884b3,_0x56adae)=>{const _0x3ba6ee=_0x27ab07;return _0x50c987['push'](_0x56adae),_0x3ba6ee(0x2d5);});return _0x27ab07(0x7d1)+_0x10e71e+')?';})['replace'](/\/:(\w+)/g,(_0x95a814,_0x5cebcb)=>{const _0x5c8bca=_0x95e4c0;return _0x50c987[_0x5c8bca(0x7f5)](_0x5cebcb),'/([^/]+)';});if(_0x39144c==='')_0x39144c='/';return{'keys':_0x50c987,'defaults':_0x44ed2c||{},'wildcard':_0x49b8bf,'regex':new RegExp('^'+_0x39144c+(_0x49b8bf?_0x95e4c0(0x70b):'')+_0x95e4c0(0x211))};}const _0x25dbc6=require$$0$3,{PassThrough:_0x2fa7c0}=require$$1;function _0x350328(_0x536edf){const _0x5732cb=_0x458f,_0x15d139=_0x536edf[_0x5732cb(0x5d1)](':'),_0x3581d0=_0x536edf[_0x5732cb(0x1be)](0x0,_0x15d139)[_0x5732cb(0xbe)](/^\[|\]$/g,'');return{'address':_0x3581d0,'family':_0x3581d0[_0x5732cb(0x61d)](':')?_0x5732cb(0x59a):_0x5732cb(0xfb),'port':Number(_0x536edf[_0x5732cb(0x1be)](_0x15d139+0x1))};}class _0x16ebe8 extends _0x25dbc6['Server']{constructor(_0x476f89,_0x220e4d){const _0x5434fb=_0x458f;super(),this[_0x5434fb(0x648)]=_0x476f89,this[_0x5434fb(0x6e1)]=_0x350328(_0x220e4d),this[_0x5434fb(0x19a)]=!![],this[_0x5434fb(0x233)]=setInterval(()=>{},0x7fffffff);}get[_0x53dccd(0x19a)](){const _0x53d7ce=_0x53dccd;return this[_0x53d7ce(0x58d)];}set['listening'](_0x3c8175){const _0xc5bf79=_0x53dccd;this[_0xc5bf79(0x58d)]=_0x3c8175;}[_0x53dccd(0x7d6)](){const _0x366cb4=_0x53dccd;return this['listening']?{...this[_0x366cb4(0x6e1)]}:null;}[_0x53dccd(0x326)](){const _0x1dff4b=_0x53dccd;if(this[_0x1dff4b(0x233)])clearInterval(this[_0x1dff4b(0x233)]);this['_keepAlive']=null;}['close'](_0x567388){const _0x210098=_0x53dccd;this[_0x210098(0x326)]();const _0x4b7f69=this[_0x210098(0x648)][_0x210098(0x3ce)]();if(_0x567388)_0x4b7f69[_0x210098(0x5eb)](()=>_0x567388(),_0x567388);return this;}[_0x53dccd(0x1d3)](){const _0x234157=_0x53dccd;return this[_0x234157(0x233)]?.[_0x234157(0x1d3)](),this;}[_0x53dccd(0x580)](){const _0x4d35c8=_0x53dccd;return this[_0x4d35c8(0x233)]?.[_0x4d35c8(0x580)](),this;}}class _0x4dcd2b{constructor(_0x4e5a98){const _0x16cd1f=_0x53dccd;this[_0x16cd1f(0x5df)]=_0x4e5a98,this[_0x16cd1f(0x718)]=[],this[_0x16cd1f(0x3f9)]={'cookieName':_0x16cd1f(0x45b)};}get[_0x53dccd(0x1c3)](){const _0x52bab9=_0x53dccd;return this[_0x52bab9(0x718)][0x0]||null;}['_n'](_0x3e6851,_0x5fec5e=[]){const _0x265957=_0x53dccd;return this['okdb'][_0x265957(0x338)](_0x265957(0x67e),null,_0x3e6851,_0x5fec5e,!![]);}async[_0x53dccd(0x2fa)](_0x4dd1f2,_0x4c4a71,_0x25df83={},_0x370d62={}){const _0x3d0811=_0x53dccd;let _0x5be092=await this['_n']('handle',[_0x4dd1f2,_0x4c4a71,_0x25df83,_0x370d62]),_0x5efad5=0x0;return _0x5be092=await this[_0x3d0811(0x1ed)](_0x5be092,_0x5efad5),_0x5be092;}async['_settle'](_0x561865,_0x2c36c6){const _0x549b49=_0x53dccd;while(_0x561865&&typeof _0x561865===_0x549b49(0x57c)&&_0x561865['$pending']!==undefined){await new Promise(_0x162ed8=>setTimeout(_0x162ed8,_0x2c36c6<0x5?0x1:0x5)),_0x2c36c6++,_0x561865=await this['_n']('handleResult',[_0x561865[_0x549b49(0x2d7)]]);}if(_0x561865&&_0x561865['body']&&typeof _0x561865['body']===_0x549b49(0x57c)&&_0x561865[_0x549b49(0x69e)][_0x549b49(0x71c)]!==undefined)_0x561865[_0x549b49(0x69e)]=this['_stream'](_0x561865[_0x549b49(0x69e)][_0x549b49(0x71c)]);return _0x561865;}['_stream'](_0x5b1922){const _0x32f706=_0x53dccd,_0x4bbf24=new _0x2fa7c0();let _0x17e4c9=![];const _0x43f773=()=>{const _0x144d7e=_0x458f;if(_0x17e4c9)return;_0x17e4c9=!![],clearTimeout(_0x48f471),setImmediate(()=>this[_0x144d7e(0x5df)]['_isOpen']&&this[_0x144d7e(0x5df)][_0x144d7e(0x463)](_0x144d7e(0x67e),null,_0x144d7e(0x5d0),[_0x5b1922],!![]));};let _0x48f471=null;const _0x4d8728=()=>{const _0x2b252a=_0x458f;if(_0x17e4c9)return;let _0x5887da;try{_0x5887da=this[_0x2b252a(0x5df)][_0x2b252a(0x463)]('http',null,_0x2b252a(0x5cb),[_0x5b1922],!![]);}catch{_0x5887da={'chunks':[],'end':!![]};}for(const _0x51490a of _0x5887da[_0x2b252a(0x5af)])_0x4bbf24[_0x2b252a(0x772)](_0x51490a);if(_0x5887da[_0x2b252a(0x202)]){_0x17e4c9=!![],_0x4bbf24[_0x2b252a(0x202)]();return;}_0x48f471=setTimeout(_0x4d8728,_0x5887da[_0x2b252a(0x5af)]['length']?0x0:0xa);};_0x4bbf24['on'](_0x32f706(0x3ce),_0x43f773),_0x4d8728();if(!_0x17e4c9)_0x4d8728();if(_0x17e4c9)_0x4bbf24['destroy']();else{if(!_0x48f471)_0x48f471=setTimeout(_0x4d8728,0x0);}return _0x4bbf24;}[_0x53dccd(0x5b5)](_0x253c9b,_0xcc4051,_0x3e0bea,_0x149cca={}){const _0x17c42b=_0x53dccd;return this[_0x17c42b(0x5df)][_0x17c42b(0x463)]('http',null,_0x17c42b(0x5b5),[_0x253c9b,_0xcc4051,_0x3e0bea,_0x149cca,![]],!![]),this;}[_0x53dccd(0x52c)](_0x34ddbe,_0x32f332,_0xb0a895,_0x343edb={}){const _0xc57fb6=_0x53dccd;return this[_0xc57fb6(0x5df)]['_call'](_0xc57fb6(0x67e),null,'add',[_0x34ddbe,_0x32f332,_0xb0a895,_0x343edb,!![]],!![]),this;}['guard'](_0x1bc6e5,_0x88426e){const _0x48d787=_0x53dccd,_0x5938cc=async _0x158f5e=>{const _0x15e719=_0x458f,_0x3601f8={'status':undefined,'headers':[],'hasBody':![],'body':undefined},_0x153ebe={'status'(_0x201f02){const _0x4b4482=_0x458f;return _0x3601f8[_0x4b4482(0x26e)]=_0x201f02,_0x153ebe;},'setHeader'(_0x175480,_0x3d6421){const _0x66dcd6=_0x458f;_0x3601f8[_0x66dcd6(0x306)][_0x66dcd6(0x7f5)]([_0x175480,_0x3d6421]);},'send'(_0x3f17db){const _0x4544bb=_0x458f;_0x3601f8[_0x4544bb(0x7b0)]=!![],_0x3601f8[_0x4544bb(0x69e)]=_0x3f17db;}};_0x158f5e[_0x15e719(0x247)]={'remoteAddress':_0x158f5e[_0x15e719(0x285)]??null};const _0x1cacdb=await _0x88426e(_0x158f5e,_0x153ebe);return{'allowed':_0x1cacdb!==![],..._0x3601f8};};this['okdb'][_0x48d787(0x463)](_0x48d787(0x67e),null,_0x48d787(0x579),[_0x105011=>!!_0x1bc6e5(_0x105011),_0x5938cc],!![]);}['use'](_0x6c8aa8){const _0x54a546=_0x53dccd,_0x290c2c=async _0xd88832=>{const _0x3f3146=_0x458f,_0x27937a={'status':undefined,'headers':[],'hasBody':![],'body':undefined};let _0x58a91e=![];const _0x4e2c59={'status'(_0x3130af){return _0x27937a['status']=_0x3130af,_0x4e2c59;},'setHeader'(_0x304b5a,_0x5b4f34){const _0x44b767=_0x458f;_0x27937a[_0x44b767(0x306)][_0x44b767(0x7f5)]([_0x304b5a,_0x5b4f34]);},'send'(_0x3cb09d){const _0x4ed95e=_0x458f;_0x27937a[_0x4ed95e(0x7b0)]=!![],_0x27937a['body']=_0x3cb09d;}};return _0xd88832[_0x3f3146(0x247)]={'remoteAddress':_0xd88832[_0x3f3146(0x285)]??null},await _0x6c8aa8(_0xd88832,_0x4e2c59,async()=>{_0x58a91e=!![];}),{'allowed':_0x58a91e,..._0x27937a};};return this['okdb'][_0x54a546(0x463)]('http',null,_0x54a546(0x7b9),[_0x290c2c],!![]),this;}get['maxBodyBytes'](){const _0x254c7d=_0x53dccd;return this[_0x254c7d(0x5df)][_0x254c7d(0x463)]('http',null,_0x254c7d(0x31a),[],![]);}set[_0x53dccd(0xc6)](_0x1d7534){const _0x2fed7e=_0x53dccd;this[_0x2fed7e(0x5df)][_0x2fed7e(0x463)]('http',null,'setMaxBodyBytes',[Number(_0x1d7534)],![]);}[_0x53dccd(0x2a7)](_0x296f20,_0x10b992,_0x27af9c={}){const _0x9c2a1=_0x53dccd,_0x236bdd=new Map(),_0x1cc849=(_0x50cc2d,_0x3f995c)=>this[_0x9c2a1(0x5df)][_0x9c2a1(0x463)](_0x9c2a1(0x67e),null,_0x50cc2d,_0x3f995c,![]),_0x4e7130=_0x2e9267=>{const _0x2a805c=_0x9c2a1,{connId:_0x28e1cc}=_0x2e9267;if(_0x2e9267[_0x2a805c(0x144)]){const _0x2fbff3=_0x236bdd[_0x2a805c(0x576)](_0x28e1cc);_0x236bdd['delete'](_0x28e1cc);if(typeof _0x2fbff3==='function')_0x2fbff3();return;}const _0x286e95=(_0x4b96bc,_0x434167,_0x2c0abd={})=>{const _0x3cc598=_0x2a805c;try{_0x1cc849(_0x3cc598(0x50f),[_0x28e1cc,_0x4b96bc,_0x434167,_0x2c0abd]);}catch{}},_0x5a96c6=()=>{const _0x11cf3d=_0x2a805c;try{_0x1cc849(_0x11cf3d(0xb1),[_0x28e1cc]);}catch{}},_0x6bc178=(_0x51d75c,_0x4baac4)=>_0x1cc849(_0x2a805c(0x476),[_0x28e1cc,String(_0x51d75c),String(_0x4baac4)]),_0xac71ca={'auth':{'open':_0x2e9267[_0x2a805c(0x72a)],'isAuthenticated':_0x2e9267[_0x2a805c(0x4b4)]}},_0x3208c1=_0x10b992({'send':_0x286e95,'close':_0x5a96c6,'params':_0x2e9267[_0x2a805c(0x314)]??{},'query':_0x2e9267[_0x2a805c(0x2b2)]??{},'headers':_0x2e9267[_0x2a805c(0x306)]??{},'context':_0xac71ca,'setHeader':_0x6bc178});_0x236bdd['set'](_0x28e1cc,_0x3208c1);};return this[_0x9c2a1(0x5df)][_0x9c2a1(0x463)]('http',null,'addSSE',[_0x296f20,_0x4e7130,_0x27af9c],!![]),this;}get[_0x53dccd(0x1ea)](){return this['listRoutes']();}[_0x53dccd(0x6bc)](){const _0x2eb757=_0x53dccd;return this[_0x2eb757(0x5df)][_0x2eb757(0x463)]('http',null,_0x2eb757(0x6bc),[],![])[_0x2eb757(0x25e)](_0x5480c9=>({..._0x5480c9,'matcher':_0x39bf70(_0x5480c9[_0x2eb757(0x41c)],_0x5480c9[_0x2eb757(0x3ed)])}));}[_0x53dccd(0x315)](_0x46e050,_0x397ec3){const _0x4206f2=_0x53dccd;return this[_0x4206f2(0x5df)]['_call'](_0x4206f2(0x67e),null,_0x4206f2(0x315),[_0x46e050,_0x397ec3],![]);}[_0x53dccd(0x243)](_0x17dc6e,_0x3955ef={}){const _0x1523ba=_0x53dccd;if(typeof _0x3955ef==='string'||Array[_0x1523ba(0x28e)](_0x3955ef))_0x3955ef={'host':_0x3955ef};_0x3955ef=_0x3955ef??{};if((Number(_0x3955ef[_0x1523ba(0x53f)])||0x0)>=0x1||_0x3955ef[_0x1523ba(0xf0)]!=null||_0x3955ef[_0x1523ba(0x62c)]!=null){const _0x39bbc3=new Error(_0x1523ba(0x3b8)+'library\x20(okdb\x20node-model\x202.0).\x20For\x20multi-process\x20HTTP\x20serving\x20use\x20the\x20okdb\x20'+'CLI\x20(`okdb\x20listen`),\x20or\x20use\x20Node\x27s\x20built-in\x20`cluster`\x20module\x20and\x20call\x20'+_0x1523ba(0xde));_0x39bbc3[_0x1523ba(0x649)]=_0x1523ba(0x239);throw _0x39bbc3;}if(this['servers'][_0x1523ba(0x5f6)])throw new Error(_0x1523ba(0x479));const _0x54200d=_0x3955ef[_0x1523ba(0x429)]==null?[undefined]:[][_0x1523ba(0x748)](_0x3955ef['host']);if(!_0x54200d['length']||_0x54200d[_0x1523ba(0x192)](_0x131f6f=>_0x131f6f!==undefined&&(typeof _0x131f6f!==_0x1523ba(0x48a)||!_0x131f6f))){const _0x4615e9=new Error(_0x1523ba(0x406));_0x4615e9[_0x1523ba(0x649)]=_0x1523ba(0xc5);throw _0x4615e9;}const _0x1c33bd=require$$2[_0x1523ba(0x4bd)]?{..._0x3955ef,'reuseport':!![]}:_0x3955ef,_0x44f6d7=this[_0x1523ba(0x5df)][_0x1523ba(0x463)](_0x1523ba(0x67e),null,_0x1523ba(0x243),[_0x17dc6e,_0x1c33bd],!![]),_0x45e9d5=_0x44f6d7[_0x1523ba(0x145)]??_0x17dc6e,_0x5f2b30=_0x3955ef[_0x1523ba(0x429)]==null?':'+_0x45e9d5:_0x54200d[_0x1523ba(0x25e)](_0x2e5936=>(_0x2e5936[_0x1523ba(0x61d)](':')?'['+_0x2e5936+']':_0x2e5936)+':'+_0x45e9d5)['join'](',\x20');try{this['okdb'][_0x1523ba(0x475)][_0x1523ba(0x287)](_0x5f2b30);if(!require(_0x1523ba(0x1a1))['isWorker'])this[_0x1523ba(0x5df)][_0x1523ba(0x475)][_0x1523ba(0x4a7)]({'kind':_0x1523ba(0x697),'listenAddr':_0x5f2b30});}catch{}this['servers']=_0x44f6d7[_0x1523ba(0x303)]['map'](_0x269a76=>new _0x16ebe8(this,_0x269a76));const _0x34b127=this[_0x1523ba(0x718)][0x0];return process[_0x1523ba(0x6b1)](()=>this[_0x1523ba(0x718)][_0x1523ba(0x191)](_0x23e149=>_0x23e149[_0x1523ba(0x74a)](_0x1523ba(0x19a)))),_0x34b127;}async[_0x53dccd(0x3ce)](_0x5e3c5b={}){const _0x34bbbb=_0x53dccd,_0x28deab=this[_0x34bbbb(0x718)];this[_0x34bbbb(0x718)]=[];if(require$$2[_0x34bbbb(0x4bd)]&&!process[_0x34bbbb(0x58f)]&&_0x5e3c5b[_0x34bbbb(0x392)]==null)_0x5e3c5b={..._0x5e3c5b,'forceAfterMs':Infinity};if(_0x28deab[_0x34bbbb(0x5f6)]){const _0x10c41a=_0x5e3c5b[_0x34bbbb(0x392)]===Infinity?Infinity:Number[_0x34bbbb(0x43f)](_0x5e3c5b[_0x34bbbb(0x392)])?Math[_0x34bbbb(0x7f0)](0x0,_0x5e3c5b[_0x34bbbb(0x392)]):0x3e8,_0x25df63=Date['now']();while(this['okdb'][_0x34bbbb(0x463)](_0x34bbbb(0x67e),null,_0x34bbbb(0x363),[],!![])>0x0&&Date[_0x34bbbb(0x55e)]()-_0x25df63<_0x10c41a)await new Promise(_0x287c3e=>setTimeout(_0x287c3e,0x5));_0x5e3c5b={..._0x5e3c5b,'forceAfterMs':_0x10c41a===Infinity?0x3e8:Math['max'](0x0,_0x10c41a-(Date[_0x34bbbb(0x55e)]()-_0x25df63))};}await this['_n']('close',[_0x5e3c5b]);for(const _0x2a7a16 of _0x28deab){_0x2a7a16[_0x34bbbb(0x326)](),_0x2a7a16['listening']=![],_0x2a7a16[_0x34bbbb(0x74a)](_0x34bbbb(0x3ce));}}}return http={'OKDBHttp':_0x4dcd2b},http;}var fts,hasRequiredFts;function requireFts(){const _0x10485a=_0x5186d4;if(hasRequiredFts)return fts;hasRequiredFts=0x1;const _0x1fab4a=_0x5f4343=>(_0x5f4343&&typeof _0x5f4343===_0x10485a(0x57c)?_0x5f4343['name']:_0x5f4343)??_0x10485a(0x132);class _0x317e7b{constructor(_0x35c6e3){const _0x599dbe=_0x10485a;this[_0x599dbe(0x5df)]=_0x35c6e3;}['_n'](_0x42ac31,_0x2d4997,_0x2a69a2=![]){const _0x5589c6=_0x10485a;return this[_0x5589c6(0x5df)][_0x5589c6(0x463)](_0x5589c6(0x7b1),null,_0x42ac31,_0x2d4997,_0x2a69a2);}[_0x10485a(0x507)](_0x59a747,_0x1deea1){const _0x7cb9c4=_0x10485a;return this['okdb'][_0x7cb9c4(0x338)](_0x7cb9c4(0x7b1),null,_0x59a747,_0x1deea1,!![]);}get[_0x10485a(0x792)](){const _0x407425=this,_0x1bc35d=_0x3fdc7f=>{const _0x43a98f=_0x458f,_0x3f10ff=_0x3fdc7f[_0x43a98f(0x26c)](':'),_0x4f8154=_0x3fdc7f['slice'](0x0,_0x3f10ff),_0xd6da2f=_0x407425[_0x43a98f(0x5df)][_0x43a98f(0x126)][_0x43a98f(0x576)](_0x4f8154);if(!_0xd6da2f)return undefined;const _0x566f0b=_0xd6da2f[_0x43a98f(0x1aa)][_0x43a98f(0x5b2)]()[_0x43a98f(0x58a)](_0x33b4d6=>_0x33b4d6[_0x43a98f(0x732)]==='fts:'+_0x3fdc7f);if(!_0x566f0b)return undefined;return _0xd6da2f[_0x43a98f(0x1aa)]['_stopFor'](_0x566f0b['id'],_0x566f0b[_0x43a98f(0x732)]);};return{'get':_0x1bc35d,'has':_0x2144fe=>!!_0x1bc35d(_0x2144fe)};}get[_0x10485a(0x1d5)](){return[];}[_0x10485a(0x5c5)](){const _0x2a1d44=_0x10485a,{RawDb:_0x1e91a7}=requireRawdb();return new _0x1e91a7(this[_0x2a1d44(0x5df)][_0x2a1d44(0x6b8)],'~fts:envs');}['has'](_0x4c4c04,_0x112bc4,_0x2b3be3){const _0x5e7535=_0x10485a;return this['_n'](_0x5e7535(0x43b),[_0x4c4c04,_0x112bc4,_0x1fab4a(_0x2b3be3)]);}[_0x10485a(0x26e)](_0x348d7e,_0x384316,_0xb793b){const _0x20bb60=_0x10485a;return this['_n'](_0x20bb60(0x26e),[_0x348d7e,_0x384316,_0x1fab4a(_0xb793b)]);}[_0x10485a(0x5b2)](_0x1079a9,_0x4bdf68){const _0xeda80b=_0x10485a;return this['_n'](_0xeda80b(0x5b2),[_0x1079a9,_0x1fab4a(_0x4bdf68)]);}async['_build'](_0x4dc17b,_0x4d99e9,_0x3badde,_0x440b46,_0x133e9d){const _0x3b9f6b=_0x10485a,_0x337745=(_0x190149,_0x28d128)=>this[_0x3b9f6b(0x5df)][_0x3b9f6b(0x338)]('fts',null,_0x190149,_0x28d128,!![],![]),_0x5b0381=Date[_0x3b9f6b(0x55e)]()+0x1d4c0;let _0x2eabf0=_0x4dc17b,_0x4dbbfb=_0x4d99e9;for(;;){try{return await _0x337745(_0x2eabf0,_0x4dbbfb);}catch(_0x54d56c){if(_0x54d56c['code']===_0x3b9f6b(0x4bc)){_0x2eabf0=_0x3b9f6b(0x4e7),_0x4dbbfb=[_0x3badde,_0x440b46,_0x1fab4a(_0x133e9d)];if(_0x54d56c['details']&&_0x54d56c[_0x3b9f6b(0x4cf)][_0x3b9f6b(0x3fc)])await new Promise(_0x22da99=>setTimeout(_0x22da99,0x2));continue;}if(_0x54d56c['code']!=='FIELD_RESOLVER_PENDING'||Date[_0x3b9f6b(0x55e)]()>=_0x5b0381)throw _0x54d56c;}await new Promise(_0x410a6f=>setTimeout(_0x410a6f,0x5)),_0x2eabf0=_0x3b9f6b(0x626),_0x4dbbfb=[_0x3badde,_0x440b46,!![],_0x1fab4a(_0x133e9d)];}}async[_0x10485a(0x4a7)](_0xaa8008,_0x3ae702,_0x411bfe,_0x52038c,_0x3e4fa3){return this['_build']('register',[_0xaa8008,_0x3ae702,_0x411bfe,_0x52038c,_0x1fab4a(_0x3e4fa3)],_0xaa8008,_0x3ae702,_0x3e4fa3);}async['drop'](_0x471428,_0x41c3c3,_0x9f3109){const _0x1e6048=_0x10485a;return this[_0x1e6048(0x507)](_0x1e6048(0x125),[_0x471428,_0x41c3c3,_0x1fab4a(_0x9f3109)]);}async[_0x10485a(0x71f)](_0x238d95,_0x2c6ff1,_0x534ca5,_0x1f241f){const _0x259d46=_0x10485a;return this[_0x259d46(0x367)](_0x259d46(0x71f),[_0x238d95,_0x2c6ff1,_0x534ca5,_0x1fab4a(_0x1f241f)],_0x238d95,_0x2c6ff1,_0x1f241f);}async[_0x10485a(0x626)](_0x3aa154,_0x2232b4,_0x286c90,_0x2c8982){const _0x18dc9d=_0x10485a;return this[_0x18dc9d(0x367)](_0x18dc9d(0x626),[_0x3aa154,_0x2232b4,_0x286c90,_0x1fab4a(_0x2c8982)],_0x3aa154,_0x2232b4,_0x2c8982);}async[_0x10485a(0x5ea)](_0x261096,_0x12b503,_0x3ece22,_0x2fa3e7=0x1d4c0){const _0x581160=_0x10485a,_0x1f6bb7=Date[_0x581160(0x55e)]()+_0x2fa3e7;for(;;){try{return await this[_0x581160(0x507)](_0x261096,[..._0x12b503,0x1]);}catch(_0x43e0b0){if(_0x43e0b0[_0x581160(0x649)]!==_0x3ece22||Date[_0x581160(0x55e)]()>=_0x1f6bb7)throw _0x43e0b0;}await new Promise(_0x1725db=>setTimeout(_0x1725db,0x2));}}async['ready'](_0x1a0dfc,_0x6f1604,_0x44f5b6){const _0x3f264c=_0x10485a;return this[_0x3f264c(0x5ea)](_0x3f264c(0x47f),[_0x1a0dfc,null,_0x1fab4a(_0x44f5b6)],_0x3f264c(0x665));}async['flush'](_0x58cd66,_0x457d1c){const _0x5dc5e0=_0x10485a;return this[_0x5dc5e0(0x5ea)]('flush',[_0x58cd66,_0x1fab4a(_0x457d1c)],_0x5dc5e0(0x112));}async[_0x10485a(0x5e4)](_0x545c6d,_0x2ce549){const _0x5e4bfd=_0x10485a;return this['_nm'](_0x5e4bfd(0x5e4),[_0x545c6d,_0x1fab4a(_0x2ce549)]);}async[_0x10485a(0xf4)](_0x5823c1={}){const _0x2bae40=_0x10485a;return this[_0x2bae40(0x507)](_0x2bae40(0xf4),[_0x5823c1]);}async['compactStorage'](_0x15036d){const _0x31d93e=_0x10485a;return this['_nm'](_0x31d93e(0x1fe),[_0x1fab4a(_0x15036d)]);}[_0x10485a(0x63e)](_0x37c380){return this['_n']('envSize',[_0x1fab4a(_0x37c380)]);}['search'](_0x291a24,_0x246eb9,_0x42fbb4,_0x5d7ead,_0x23e601){const _0x5e882b=_0x10485a;return this['_n'](_0x5e882b(0x33f),[_0x291a24,_0x246eb9,_0x42fbb4,_0x5d7ead||{},_0x1fab4a(_0x23e601)]);}[_0x10485a(0x4da)](_0x234b24,_0x113442,_0x1ad66f,_0x1861e7,_0xcc132e,_0x5988e1){const _0x39c0f0=_0x10485a;return this['_n'](_0x39c0f0(0x4da),[_0x234b24,_0x113442,_0x1ad66f,_0x1861e7||{},_0x1fab4a(_0xcc132e),_0x5988e1]);}['_searchWithScores'](_0x2e1259,_0x5aa48e,_0x5091f1,_0x3df3a8,_0x11746d){const _0x3cb5fd=_0x10485a;return this['_n'](_0x3cb5fd(0x60a),[_0x2e1259,_0x5aa48e,_0x5091f1,_0x3df3a8||{},_0x1fab4a(_0x11746d)]);}[_0x10485a(0x389)](){const _0x48a222=_0x10485a;return this['_n'](_0x48a222(0x389),[]);}async[_0x10485a(0x527)](){const _0x40e201=_0x10485a;return this[_0x40e201(0x507)](_0x40e201(0x527),[]);}}return fts={'OKDBFts':_0x317e7b},fts;}var embeddings,hasRequiredEmbeddings;function requireEmbeddings(){const _0x4b94fb=_0x5186d4;if(hasRequiredEmbeddings)return embeddings;hasRequiredEmbeddings=0x1;const {OKDBError:_0x435666,invalidArgument:_0x308469}=requireErrors();requireBridge();const _0x14ec46=Object[_0x4b94fb(0x173)]({'EMBEDDER':_0x4b94fb(0x605),'INDEXER':_0x4b94fb(0x1c9),'SEARCH':_0x4b94fb(0x4b2),'WORKER':_0x4b94fb(0x64d)});async function _0x422492(_0x12d7b4,_0x509251,_0x36c057,_0x2b9850={}){const _0x3168c4=_0x4b94fb,_0x5a10c0=_0x2b9850&&_0x2b9850[_0x3168c4(0x23a)]!=null?Number(_0x2b9850[_0x3168c4(0x23a)]):0x1d4c0,_0x2a7cfb=Date[_0x3168c4(0x55e)]()+_0x5a10c0;await _0x509251();for(;;){const _0x37c90c=await _0x36c057()||{};if(_0x37c90c['loaded']&&!_0x37c90c['building'])return!![];if(Date['now']()>=_0x2a7cfb)throw new _0x435666(_0x3168c4(0x4a4)+_0x12d7b4+'\x22\x20not\x20ready\x20after\x20'+_0x5a10c0+_0x3168c4(0x29f),_0x3168c4(0x361),{'name':_0x12d7b4,'timeoutMs':_0x5a10c0,'loaded':!!_0x37c90c[_0x3168c4(0x59d)],'building':!!_0x37c90c[_0x3168c4(0x2a3)],'count':_0x37c90c[_0x3168c4(0x650)]});await new Promise(_0x56965e=>setTimeout(_0x56965e,0xa));}}const _0x128a0a=_0x327554=>typeof _0x327554==='string'||_0x327554==null?_0x327554:Array[_0x4b94fb(0x791)](_0x327554);class _0x52c9ad{constructor(_0x5a4ec3){const _0x5668b6=_0x4b94fb;this['okdb']=_0x5a4ec3,this[_0x5668b6(0x606)]=new Map(),this[_0x5668b6(0x3c5)]=new Map(),this['_viewCache']=new Map();}['_n'](_0x4995d2,_0x2f2c6a=[],_0x5b6997=!![]){const _0x10c030=_0x4b94fb;return this['okdb']['_call'](_0x10c030(0xe1),null,_0x4995d2,_0x2f2c6a,_0x5b6997);}['_nm'](_0x569f57,_0x24780b=[]){const _0x3c92ad=_0x4b94fb;return this['okdb']['_callMacro'](_0x3c92ad(0xe1),null,_0x569f57,_0x24780b,!![]);}[_0x4b94fb(0x1e1)](_0x1fbe09){const _0x16387f=_0x4b94fb;return _0x1fbe09?this[_0x16387f(0x5df)][_0x16387f(0x10f)][_0x16387f(0x1e1)](_0x1fbe09):null;}[_0x4b94fb(0x7e2)](_0x4fe195,_0x4020fd,_0x188b7c={}){const _0x219472=_0x4b94fb;if(typeof _0x4020fd!==_0x219472(0x5a8))throw new _0x435666(_0x219472(0x7af),_0x219472(0x32c),{'name':_0x4fe195});this['_jsFactories']['set'](_0x4fe195,_0x4020fd),this[_0x219472(0x3c5)][_0x219472(0x227)](_0x4fe195,_0x188b7c);const _0x2eec08=this['okdb'],_0x110a2d=_0x466345=>_0x4020fd(_0x466345,_0x2eec08);_0x110a2d[_0x219472(0x2e6)]=_0x2eec08,this['_n']('registerEmbedderFactory',[_0x4fe195,_0x110a2d,_0x188b7c??{}],![]);}[_0x4b94fb(0x525)](_0x30fb7f){const _0x5117c5=_0x4b94fb,_0x3e08e3=this['_jsFactories'][_0x5117c5(0x576)](_0x30fb7f);if(_0x3e08e3)return _0x3e08e3;if(!this['_n'](_0x5117c5(0x737),[_0x30fb7f],![]))return null;const _0x2966ae=this;return(_0x370805={})=>{const _0x573ddc=_0x5117c5,_0x57c1c2=_0x2966ae['_n'](_0x573ddc(0x42d),[_0x30fb7f,_0x370805],![]),_0x556753=_0x2966ae['_n'](_0x573ddc(0x430),[_0x57c1c2],![]),_0x349234=(_0x5f4d50,_0x363f36)=>_0x2966ae['_n'](_0x573ddc(0x769),[_0x57c1c2,_0x5f4d50,_0x363f36],![]),_0x25bd00={'embed':async _0x4b4d44=>Float32Array[_0x573ddc(0x791)](_0x349234('embed',_0x4b4d44)),'start':async()=>_0x349234(_0x573ddc(0x6ae)),'stop':async()=>{const _0x40924a=_0x573ddc;_0x349234(_0x40924a(0x415)),_0x349234(_0x40924a(0x2c7));}};if(_0x556753)_0x25bd00[_0x573ddc(0x78a)]=async _0x32732e=>_0x349234(_0x573ddc(0x78a),_0x32732e)['map'](_0x17e2ed=>Float32Array['from'](_0x17e2ed));return _0x25bd00;};}[_0x4b94fb(0xce)](_0x41fa34){const _0x2590dc=_0x4b94fb;return this[_0x2590dc(0x3c5)]['get'](_0x41fa34)??this['_n'](_0x2590dc(0xce),[_0x41fa34],![])??undefined;}[_0x4b94fb(0x63b)](_0x3994ee,_0x187024,_0x36ce4a={}){const _0x1a23f3=_0x4b94fb;if(typeof _0x187024!=='function')throw new _0x435666(_0x1a23f3(0x78e),_0x1a23f3(0x32c),{'name':_0x3994ee});this['_n'](_0x1a23f3(0x63b),[_0x3994ee,(_0x20c1d2,_0x275dad)=>_0x187024(_0x20c1d2,_0x275dad),_0x36ce4a??{}],![]);}[_0x4b94fb(0x668)](){return this['_n']('listAlgorithms',[],![]);}[_0x4b94fb(0x313)](_0x2c2426,_0x2640a4){const _0x2cf19c=_0x4b94fb;if(typeof _0x2640a4!==_0x2cf19c(0x5a8))throw new _0x435666(_0x2cf19c(0x23d),_0x2cf19c(0x32c),{'name':_0x2c2426});this['_n'](_0x2cf19c(0x313),[_0x2c2426,_0x2640a4]);}[_0x4b94fb(0x2f8)](_0x11fca8,_0x1bd4ad){const _0x41a7a5=_0x4b94fb;if(typeof _0x1bd4ad!==_0x41a7a5(0x5a8))throw new _0x435666(_0x41a7a5(0x102),_0x41a7a5(0x32c),{'name':_0x11fca8});this['_n'](_0x41a7a5(0x2f8),[_0x11fca8,_0x1bd4ad]);}[_0x4b94fb(0x16d)](_0x3d435f){const _0x47be0d=_0x4b94fb;if(_0x3d435f==null)return this['_n'](_0x47be0d(0x16d),[null],![]);if(typeof _0x3d435f!=='function')throw new _0x435666(_0x47be0d(0x2e3),_0x47be0d(0x32c));const _0x16fa0a=this[_0x47be0d(0x5df)];this['_n'](_0x47be0d(0x16d),[_0x1aa898=>_0x3d435f(_0x1aa898,_0x16fa0a)],![]);}async[_0x4b94fb(0x1f8)](_0x3c07cb,_0x5c2295={},_0x4fed7a={},_0x245e18=null){const _0x31c7b2=_0x4b94fb;return this[_0x31c7b2(0x1e1)](await this['_nm'](_0x31c7b2(0x1f8),[_0x3c07cb,_0x5c2295,_0x4fed7a,_0x245e18]));}async[_0x4b94fb(0x2cb)](_0x3994e7,_0x10fce3={},_0x5132c2={}){const _0x4c21a0=_0x4b94fb;return this[_0x4c21a0(0x1e1)](await this[_0x4c21a0(0x507)](_0x4c21a0(0x2cb),[_0x3994e7,_0x10fce3,_0x5132c2]));}async[_0x4b94fb(0x4f0)](_0x44a853,_0x38dddb={},_0x1046d2={}){const _0x4a2d45=_0x4b94fb;return this['_wrap'](await this[_0x4a2d45(0x507)](_0x4a2d45(0x4f0),[_0x44a853,_0x38dddb,_0x1046d2]));}async[_0x4b94fb(0x760)](_0x571275,_0x25a7c3={},_0x30055a={}){const _0x494d69=_0x4b94fb;return this['_wrap'](await this['_nm'](_0x494d69(0x760),[_0x571275,_0x25a7c3,_0x30055a]));}async['createPipeline'](_0x467c99,_0xc69ea6={},_0x240221={}){const _0x17e6c3=_0x4b94fb,_0x1a52e0=await this[_0x17e6c3(0x507)](_0x17e6c3(0x708),[_0x467c99,_0xc69ea6,_0x240221]);return{'embedder':this[_0x17e6c3(0x1e1)](_0x1a52e0[_0x17e6c3(0x605)]),'indexer':this[_0x17e6c3(0x1e1)](_0x1a52e0[_0x17e6c3(0x1c9)]),'worker':this['_wrap'](_0x1a52e0[_0x17e6c3(0x758)]),'search':this[_0x17e6c3(0x1e1)](_0x1a52e0[_0x17e6c3(0x33f)]),'api':this[_0x17e6c3(0x38d)](_0x1a52e0[_0x17e6c3(0x79a)],_0x1a52e0[_0x17e6c3(0x605)]['name'],_0x1a52e0[_0x17e6c3(0x758)]?_0x1a52e0[_0x17e6c3(0x758)][_0x17e6c3(0x397)]:_0x1a52e0[_0x17e6c3(0x79a)]+'-worker')};}[_0x4b94fb(0x744)](_0x20cae6,_0x1959d7){const _0x536d09=_0x4b94fb;return this[_0x536d09(0x5df)]['engines'][_0x536d09(0x798)](_0x20cae6,_0x1959d7)?.[_0x536d09(0x115)]??null;}[_0x4b94fb(0x605)](_0x203b7f){const _0x561c51=_0x4b94fb,_0x33f760=this[_0x561c51(0x744)](_0x14ec46[_0x561c51(0xf8)],_0x203b7f);if(!_0x33f760)return null;const _0x294809=this,_0x5e9fc4=_0x4338e5=>Array[_0x561c51(0x28e)](_0x4338e5)&&Array[_0x561c51(0x28e)](_0x4338e5[0x0])?_0x4338e5[_0x561c51(0x25e)](_0x239056=>Float32Array[_0x561c51(0x791)](_0x239056)):Float32Array[_0x561c51(0x791)](_0x4338e5);return new Proxy(_0x33f760,{'get'(_0x5177ef,_0x320dd6){const _0x5154ac=_0x561c51;if(_0x320dd6===_0x5154ac(0x6ac))return _0x294809['okdb'][_0x5154ac(0x463)](_0x5154ac(0x10f),null,'apiCall',[_0x14ec46[_0x5154ac(0xf8)],_0x203b7f,'dims',[]],![])['value'];if(_0x320dd6===_0x5154ac(0x4ea))return async _0x549729=>_0x5e9fc4(await _0x33f760[_0x5154ac(0x4ea)](_0x549729));if(_0x320dd6===_0x5154ac(0x78a))return async _0x3c4432=>(await _0x33f760[_0x5154ac(0x78a)](_0x3c4432))[_0x5154ac(0x25e)](_0x10f99d=>Float32Array[_0x5154ac(0x791)](_0x10f99d));return _0x5177ef[_0x320dd6];}});}[_0x4b94fb(0x1c9)](_0xe24b63){const _0x25fe79=_0x4b94fb;return this[_0x25fe79(0x744)](_0x14ec46[_0x25fe79(0x1a2)],_0xe24b63);}[_0x4b94fb(0x758)](_0x4db57e){const _0x33ee9c=_0x4b94fb;return this[_0x33ee9c(0x744)](_0x14ec46[_0x33ee9c(0x7c8)],_0x4db57e);}[_0x4b94fb(0x33f)](_0x53aa1e){const _0x39715a=_0x4b94fb,_0x41369d=this[_0x39715a(0x744)](_0x14ec46['SEARCH'],_0x53aa1e);if(_0x41369d){const _0xe53b5f=_0x12290e=>_0x422492(_0x53aa1e,async()=>_0x41369d['load'](),async()=>_0x41369d[_0x39715a(0x7be)](),_0x12290e);return new Proxy(_0x41369d,{'get':(_0x2ce6e8,_0x2e23d4)=>_0x2e23d4===_0x39715a(0x47f)?_0xe53b5f:_0x2ce6e8[_0x2e23d4]});}return this['_localViewApi'](_0x53aa1e);}[_0x4b94fb(0x214)](_0xf20d1c){const _0x52723b=_0x4b94fb,_0x43b1e8=this;return{'search':(_0x1b2e8c,_0x3b8195={})=>_0x43b1e8[_0x52723b(0x5df)][_0x52723b(0x338)](_0x52723b(0xe1),null,'search',[_0xf20d1c,_0x128a0a(_0x1b2e8c),_0x3b8195],![]),'stats':async()=>_0x43b1e8['_n'](_0x52723b(0x67d),[_0xf20d1c],![]),'count':()=>_0x43b1e8['_n'](_0x52723b(0x7ac),[_0xf20d1c,_0x52723b(0x650)],![]),'ready':_0x1fcaef=>_0x422492(_0xf20d1c,async()=>_0x43b1e8['_n'](_0x52723b(0x7ac),[_0xf20d1c,_0x52723b(0x63f)],!![]),async()=>_0x43b1e8['_n'](_0x52723b(0x67d),[_0xf20d1c],!![]),_0x1fcaef)};}async[_0x4b94fb(0x4da)](_0x58fbfe,_0x47ccb3,_0x10b6af={}){const _0x59faeb=_0x4b94fb,{limit:limit=0xa,..._0x2c43fa}=_0x10b6af;return this['_nm'](_0x59faeb(0x4da),[_0x58fbfe,_0x128a0a(_0x47ccb3),{..._0x2c43fa,'limit':limit}]);}['vectorSpace'](_0x3b1ac3){return this['_n']('vectorSpace',[_0x3b1ac3],![]);}['_durableEngineDoc'](_0x476974,_0x111f91){const _0x2d4de0=_0x4b94fb;return this['_n'](_0x2d4de0(0x4bf),[_0x476974,_0x111f91],![]);}[_0x4b94fb(0x2ce)](_0x56a8ac){const _0xce2be6=_0x4b94fb;return this['_n'](_0xce2be6(0x3ca),[_0x56a8ac],![]);}async['_durableIndexerStats'](_0x5647fd){return this['_n']('durableStats',[_0x5647fd],![]);}async[_0x4b94fb(0x768)](_0x5d7872,_0x520dca={}){return this['_n']('durableDocs',[_0x5d7872,_0x520dca],![]);}async['_durableIndexerDoc'](_0x118379,_0x182d4f){return this['_n']('durableDoc',[_0x118379,_0x182d4f],![]);}async[_0x4b94fb(0x237)](_0x3627fa,_0x590019,_0x3b8e34,_0x2d3e98){const _0xe999aa=_0x4b94fb;if(_0x3627fa!=null&&typeof _0x3627fa['includes']!=='function')throw _0x308469(_0xe999aa(0x397),_0xe999aa(0x1dd),_0x3627fa);if(!_0x3627fa||!_0x3b8e34)return null;return this[_0xe999aa(0x5df)][_0xe999aa(0x338)]('embeddings',null,_0xe999aa(0x237),[_0x3627fa,_0x590019,_0x3b8e34,_0x2d3e98??null],![]);}async[_0x4b94fb(0x13b)](_0x1e5538,_0x48e05f,_0xa9e51c={}){const _0x86a271=_0x4b94fb,_0x1d235c={..._0xa9e51c};if(_0x1d235c[_0x86a271(0x625)])_0x1d235c[_0x86a271(0x625)]=Array[_0x86a271(0x791)](_0x1d235c[_0x86a271(0x625)]);return this['_n']('durableMarkDone',[_0x1e5538,_0x48e05f,_0x1d235c]);}async[_0x4b94fb(0x3f6)](_0x477e47,_0x39513a,_0x1497d1,_0x449020={}){const _0x5f0b41=_0x4b94fb;return this['_n'](_0x5f0b41(0x3f6),[_0x477e47,_0x39513a,_0x1497d1,_0x449020]);}async[_0x4b94fb(0x616)](_0x9cecb0,_0x365af7){return this['_n']('durableMarkDelete',[_0x9cecb0,_0x365af7]);}async[_0x4b94fb(0x1f0)](_0x1329ba,_0x4ff83b){return this['_n']('durableRetryDoc',[_0x1329ba,_0x4ff83b]);}async['durableRetryFailed'](_0x44afb1,_0x501931={}){return this['_n']('durableRetryFailed',[_0x44afb1,_0x501931]);}async[_0x4b94fb(0x4cd)](_0x441949){const _0x1a5647=_0x4b94fb;return this[_0x1a5647(0x507)]('durableRebuild',[_0x441949]);}async['_durableWorkerStats'](_0x168f07){const _0x288dcc=_0x4b94fb;return this['_n'](_0x288dcc(0x203),[_0x168f07],![]);}['vectorStoreStats'](_0x31591e){const _0x2d35fd=_0x4b94fb;return this['_n'](_0x2d35fd(0x29a),[_0x31591e],![]);}[_0x4b94fb(0x76e)](){const _0xf4418d=_0x4b94fb;return this['_n'](_0xf4418d(0x76e),[],![]);}['getVector'](_0x27079d,_0x149ba4){const _0x3c1572=_0x4b94fb,_0x8a5552=this['_n'](_0x3c1572(0x44a),[_0x27079d,_0x149ba4],![]);return _0x8a5552==null?null:Float32Array[_0x3c1572(0x791)](_0x8a5552);}['resolveModelDims'](_0x155577,_0x2af136){const _0x2bb88f=_0x4b94fb;return this['_n'](_0x2bb88f(0x462),[_0x155577,_0x2af136??null],![])??undefined;}async[_0x4b94fb(0x5f7)](_0x42faa8,_0x35c487,_0x38019f,_0x4e789b=''){const _0x227b95=_0x4b94fb;return this['_n'](_0x227b95(0x5f7),[_0x42faa8,_0x35c487,_0x38019f,_0x4e789b]);}[_0x4b94fb(0x2a2)](_0x15f90c=null){const _0x54d730=_0x4b94fb;return this['_n'](_0x54d730(0x2a2),[_0x15f90c],![]);}[_0x4b94fb(0x427)](){return this['_n']('listProviders',[],![]);}async[_0x4b94fb(0x15a)](_0x53ecf6,_0xabbaff){const _0x2a562b=_0x4b94fb;return this['_n']('ensureTypeEnv',[_0x53ecf6,_0xabbaff],![]),this[_0x2a562b(0x5df)][_0x2a562b(0x157)]('~'+_0x53ecf6+_0x2a562b(0x72d)+_0xabbaff);}async[_0x4b94fb(0x5f0)](_0x180c4b,_0x270779){const _0x214d91=_0x4b94fb;return await this['_ensureTypeEnv'](_0x180c4b,_0x270779),{'adapter':_0x122642=>this[_0x214d91(0x52e)](_0x180c4b,_0x270779,_0x122642)};}[_0x4b94fb(0x52e)](_0x49b782,_0x2a5137,_0x4c3022){const _0x3eaf53=this;return{async 'put'(_0x40b873,_0x3c7f6b){return _0x3eaf53['_n']('vecPut',[_0x49b782,_0x2a5137,_0x4c3022,_0x40b873,Array['from'](_0x3c7f6b)]);},async 'remove'(_0x17c7e0){const _0x450777=_0x458f;return _0x3eaf53['_n'](_0x450777(0x33d),[_0x49b782,_0x2a5137,_0x4c3022,_0x17c7e0]);}};}get['_localViews'](){const _0x3b517b=_0x4b94fb,_0x3f19c3=this,_0x5373f8=()=>_0x3f19c3['_n'](_0x3b517b(0x2d2),[],![]),_0x5527a3=_0x2775f5=>{const _0x3ed95a=_0x3b517b,_0xe187d=_0x2df8bc=>_0x3f19c3['_n'](_0x3ed95a(0x7ac),[_0x2775f5,_0x2df8bc],![]);return{'name':_0x2775f5,'_evict':async()=>_0xe187d(_0x3ed95a(0x3ec)),'evict':async()=>_0xe187d(_0x3ed95a(0x3ec)),'snapshot':async()=>_0xe187d(_0x3ed95a(0x5d8)),'_snapshot':async()=>_0xe187d('snapshot'),'rebuild':async()=>_0xe187d(_0x3ed95a(0x4d4)),'stats':()=>_0xe187d(_0x3ed95a(0x7be)),get 'count'(){const _0x48655d=_0x3ed95a;return _0xe187d(_0x48655d(0x650));},get 'loaded'(){const _0x1e1fb6=_0x3ed95a;return _0xe187d(_0x1e1fb6(0x59d));}};};return{get 'size'(){return _0x5373f8()['length'];},'has':_0xdc4c81=>_0x5373f8()[_0x3b517b(0x61d)](_0xdc4c81),'get':_0x22e6d9=>_0x5373f8()[_0x3b517b(0x61d)](_0x22e6d9)?_0x5527a3(_0x22e6d9):undefined,'keys':()=>_0x5373f8()[Symbol[_0x3b517b(0x16f)]](),'values':()=>_0x5373f8()[_0x3b517b(0x25e)](_0x5527a3)[Symbol['iterator']](),[Symbol['iterator']]:()=>_0x5373f8()[_0x3b517b(0x25e)](_0x37e731=>[_0x37e731,_0x5527a3(_0x37e731)])[Symbol['iterator']]()};}async[_0x4b94fb(0x6ae)](){}async[_0x4b94fb(0x415)](){const _0x362356=_0x4b94fb;this['_n'](_0x362356(0x415),[]);}[_0x4b94fb(0x38d)](_0x365784,_0x15c800,_0x1cde44){const _0x35b31e=_0x4b94fb;return{'search':(_0x3b54bf,_0x38f1ff={})=>{const _0x5b60da=_0x458f,_0x5f21ad=this[_0x5b60da(0x33f)](_0x365784);if(!_0x5f21ad)throw new Error('vector-search\x20engine\x20not\x20running:\x20\x22'+_0x365784+'\x22');return _0x5f21ad[_0x5b60da(0x33f)](_0x3b54bf,_0x38f1ff);},'searchDocs':(_0x58500d,_0x2f4c62={})=>this['searchDocs'](_0x365784,_0x58500d,_0x2f4c62),'flush':_0x260acd=>{const _0x3e9306=_0x458f,_0x399f43=this[_0x3e9306(0x1c9)](_0x365784);if(!_0x399f43)throw new Error('indexer\x20engine\x20not\x20running:\x20\x22'+_0x365784+'\x22');return _0x399f43[_0x3e9306(0x6e3)](_0x260acd);},'stats':async()=>({'embedder':await this[_0x35b31e(0x605)](_0x15c800)?.[_0x35b31e(0x6f2)]?.(),'indexer':await this['indexer'](_0x365784)?.[_0x35b31e(0x7be)]?.(),'worker':await this['worker'](_0x1cde44)?.['stats']?.(),'search':await this[_0x35b31e(0x33f)](_0x365784)?.[_0x35b31e(0x7be)]?.()})};}}return embeddings={'OKDBEmbeddings':_0x52c9ad,'ENGINE_TYPES':_0x14ec46},embeddings;}var auth,hasRequiredAuth;function requireAuth(){const _0x188083=_0x5186d4;if(hasRequiredAuth)return auth;hasRequiredAuth=0x1;const {invalidArgument:_0x346c74}=requireErrors();class _0x250510{constructor(_0x42d24c){const _0x31cebd=_0x458f;this[_0x31cebd(0x5df)]=_0x42d24c;}['_n'](_0x14db11,_0x3a4bc5=[],_0x53a560=![]){const _0x2873b7=_0x458f;return this[_0x2873b7(0x5df)]['_call'](_0x2873b7(0x3f9),null,_0x14db11,_0x3a4bc5,_0x53a560);}[_0x188083(0x507)](_0x12f105,_0x592ba7=[]){const _0x32d175=_0x188083;return this[_0x32d175(0x5df)][_0x32d175(0x338)](_0x32d175(0x3f9),null,_0x12f105,_0x592ba7,![]);}get[_0x188083(0x667)](){const _0x3a4aa7=_0x188083;return this['_n'](_0x3a4aa7(0x667));}get[_0x188083(0x1ab)](){const _0x2c2060=_0x188083;return this['_n'](_0x2c2060(0x1ab));}get[_0x188083(0x419)](){const _0x7bf571=_0x188083;return this[_0x7bf571(0x5df)][_0x7bf571(0x308)][_0x7bf571(0x3f9)]?.[_0x7bf571(0x225)]||{};}[_0x188083(0x5ae)](_0x2ae952){return this['_n']('isOAuthEmailAllowed',[_0x2ae952??null]);}['_isOpenForIp'](_0x452685){const _0x2eebb3=_0x188083;return this['_n'](_0x2eebb3(0x7f6),[_0x452685??null]);}[_0x188083(0x5b4)](_0x497eeb){const _0x27363b=_0x188083;return this['_n'](_0x27363b(0x26a),[_0x497eeb??null]);}[_0x188083(0x13e)](){return this['_n']('isBootstrap');}[_0x188083(0x577)](){const _0xb8e164=_0x188083;return this['_n'](_0xb8e164(0x577));}[_0x188083(0x566)](){const _0x45b54e=_0x188083;return this['_n'](_0x45b54e(0x566));}[_0x188083(0x4e9)](_0x1a1ca5){return this['_n']('issueToken',[_0x1a1ca5]);}[_0x188083(0x57d)](_0x2aeaea){const _0x241d38=_0x188083;return this['_n'](_0x241d38(0x57d),[_0x2aeaea]);}[_0x188083(0x259)](_0x1215e8){const _0x445a27=_0x188083;if(_0x1215e8!=null&&typeof _0x1215e8!=='string')throw _0x346c74(_0x445a27(0x6b0),'a\x20string',_0x1215e8);return this['_n'](_0x445a27(0x259),[_0x1215e8??null]);}async[_0x188083(0x4d0)](){const _0x1f3cf5=_0x188083;return this['_n'](_0x1f3cf5(0x46c),[],!![]);}async[_0x188083(0x684)](_0x3af6d1){const _0x24cb62=_0x188083;return this['_n'](_0x24cb62(0x7f8),[_0x3af6d1]);}async[_0x188083(0x497)](_0x30beca){const _0x4ba4fb=_0x188083;return this['_n'](_0x4ba4fb(0x19b),[_0x30beca]);}async[_0x188083(0x7f7)](_0x419c07){return this['_n']('lookupAllByName',[_0x419c07]);}async['authenticateRequest'](_0x5995cc){const _0xecaa5b=_0x188083,_0x40c33e=_0x5995cc?.['headers']||{};return this['_n']('authenticateRequest',[{'remoteAddress':_0x5995cc[_0xecaa5b(0x247)]?.['remoteAddress']??null,'internal':_0x5995cc?.['context']?.['internal']===!![],'authorization':_0x40c33e[_0xecaa5b(0x7e5)]??null,'cookies':_0x5995cc?.[_0xecaa5b(0x10d)]??{}}]);}async[_0x188083(0x678)](_0x572ff8,_0xa0ff61){const _0x48ffee=_0x188083;return this[_0x48ffee(0x507)](_0x48ffee(0x678),[_0x572ff8??null,_0xa0ff61??null]);}async[_0x188083(0x66f)](_0x5a11c9,_0x3e0045,_0x4c705c){const _0x346eb3=_0x188083;return this[_0x346eb3(0x507)](_0x346eb3(0x66f),[_0x5a11c9??null,_0x3e0045??null,_0x4c705c??null]);}['getSecurityNotices'](){const _0x9101d3=_0x188083;return this['_n'](_0x9101d3(0x174));}['getLoginConfig'](){return this['_n']('getLoginConfig');}[_0x188083(0x74d)](_0x32211e={},_0x3188e9=0x927c0){const _0x702350=_0x188083;return this['_n'](_0x702350(0x74d),[_0x32211e,_0x3188e9]);}['consumeLoginState'](_0x1089cd){const _0x25ad37=_0x188083;return this['_n'](_0x25ad37(0x400),[_0x1089cd]);}async[_0x188083(0x4f1)](_0xb2948e,_0x50c11c={}){return this['_nm']('validateOidcAccessToken',[_0xb2948e,_0x50c11c]);}async[_0x188083(0x599)](_0x3d78ca={}){const _0x391ce9=_0x188083;return this[_0x391ce9(0x507)](_0x391ce9(0x641),[_0x3d78ca]);}[_0x188083(0x797)](_0x43c9b9){const _0x3dc4d5=_0x188083;return this['_n'](_0x3dc4d5(0x302),[_0x43c9b9]);}}return auth={'OKDBAuth':_0x250510},auth;}var sync,hasRequiredSync;function requireSync(){const _0x3020b9=_0x5186d4;if(hasRequiredSync)return sync;hasRequiredSync=0x1;const {RawDb:_0x8fce5}=requireRawdb();class _0x3fd911{constructor(_0x45a620){this['_s']=_0x45a620;}get[_0x3020b9(0x13f)](){const _0x5ae4d5=_0x3020b9;return this[_0x5ae4d5(0x41f)]||(this[_0x5ae4d5(0x41f)]=new _0x8fce5(this['_s']['okdb'][_0x5ae4d5(0x6b8)],_0x5ae4d5(0x275)));}['_openAckDb'](){const _0x3e4bdc=_0x3020b9;return this[_0x3e4bdc(0x13f)];}[_0x3020b9(0x4ad)](){const _0x31d561=_0x3020b9;return this[_0x31d561(0x13f)];}['_n'](_0x3cdf57,_0x5e8d47=[]){const _0x35074c=_0x3020b9;return this['_s']['_n'](_0x35074c(0x1b8)+_0x3cdf57,_0x5e8d47);}[_0x3020b9(0x442)](_0x4f9bdf,_0x581b4c){const _0x4dc5fc=_0x3020b9;return this['_n'](_0x4dc5fc(0x442),[_0x4f9bdf,_0x581b4c]);}async[_0x3020b9(0x253)](_0x1b9097){const _0x2511f5=_0x3020b9;return this['_n'](_0x2511f5(0x253),[_0x1b9097]);}[_0x3020b9(0x107)](){return this['_n']('getPeerAcks');}[_0x3020b9(0x6c3)](_0x57ac4a){const _0x44c217=_0x3020b9;return this['_n'](_0x44c217(0x6c3),[_0x57ac4a]);}async[_0x3020b9(0x300)](){const _0x392392=_0x3020b9;return this['_n'](_0x392392(0x300));}[_0x3020b9(0x7d5)](){const _0x3b904a=_0x3020b9;return this['_n'](_0x3b904a(0x7d5));}[_0x3020b9(0x6ae)](){const _0x20821d=_0x3020b9;return this['_n'](_0x20821d(0x6ae));}[_0x3020b9(0x415)](){return this['_n']('stop');}get[_0x3020b9(0x3d3)](){const _0x302867=_0x3020b9;try{return this['_n'](_0x302867(0x622))?{}:null;}catch{return null;}}}class _0x3e4018{constructor(_0x9f2fc2){const _0x46245b=_0x3020b9;this[_0x46245b(0x5df)]=_0x9f2fc2,this['gc']=new _0x3fd911(this);const _0x3d2e04=this;this['options']=new Proxy({},{'get':(_0x51253e,_0x465be2)=>typeof _0x465be2===_0x46245b(0x48a)?_0x3d2e04['_n'](_0x46245b(0x308))[_0x465be2]:undefined,'set':(_0x50406f,_0xa6e95d,_0x4a5496)=>{const _0x59feab=_0x46245b;if(_0xa6e95d===_0x59feab(0x7d6))_0x3d2e04['_n'](_0x59feab(0x1ae),[_0x4a5496??null]);else{if(_0xa6e95d===_0x59feab(0x1b3))_0x3d2e04['_n'](_0x59feab(0x721),[_0x4a5496??null]);else{if(_0xa6e95d===_0x59feab(0x5bd))_0x3d2e04['_n'](_0x59feab(0x795),[_0x4a5496]);}}return!![];},'ownKeys':()=>Object['keys'](_0x3d2e04['_n'](_0x46245b(0x308))),'getOwnPropertyDescriptor':(_0x5ae8be,_0x226ba6)=>({'enumerable':!![],'configurable':!![],'value':_0x3d2e04['_n'](_0x46245b(0x308))[_0x226ba6]}),'has':(_0x563880,_0x488337)=>_0x488337 in _0x3d2e04['_n'](_0x46245b(0x308))});}['_n'](_0x8e43ac,_0x1ef072=[],_0x44498a=![]){const _0x2263e1=_0x3020b9;return this[_0x2263e1(0x5df)][_0x2263e1(0x463)](_0x2263e1(0x364),null,_0x8e43ac,_0x1ef072,_0x44498a);}[_0x3020b9(0x507)](_0x3f8e98,_0x422e7d=[]){const _0x13e3fc=_0x3020b9;return this[_0x13e3fc(0x5df)][_0x13e3fc(0x338)](_0x13e3fc(0x364),null,_0x3f8e98,_0x422e7d,!![]);}get[_0x3020b9(0x7c7)](){const _0x5d227f=_0x3020b9;return this['_pdb']||(this[_0x5d227f(0x70e)]=new _0x8fce5(this[_0x5d227f(0x5df)][_0x5d227f(0x6b8)],'__sync:peer_state'));}[_0x3020b9(0x3b0)](){const _0x4b758b=_0x3020b9;return this[_0x4b758b(0x7c7)];}get[_0x3020b9(0x387)](){const _0x45fae6=_0x3020b9;return this['_syncLock']||(this[_0x45fae6(0x474)]=new(requireLock())['NativeLock'](this['okdb'],_0x45fae6(0x74e),'sync',{'ttlMs':0x7530}));}get[_0x3020b9(0x7d6)](){const _0x1706e0=_0x3020b9;return this['_n'](_0x1706e0(0x308))[_0x1706e0(0x7d6)];}get[_0x3020b9(0x63c)](){const _0x10193f=_0x3020b9;return this[_0x10193f(0x5df)][_0x10193f(0x109)]&&this['_n']('drives')?{}:null;}get[_0x3020b9(0x617)](){const _0x56cc2a=_0x3020b9;return this[_0x56cc2a(0x63c)];}get[_0x3020b9(0x11a)](){const _0x10a80e=_0x3020b9;return this['_n']('nodeKeys')?.[_0x10a80e(0x7cc)];}get[_0x3020b9(0x2bf)](){const _0x42c631=_0x3020b9;return this['_n'](_0x42c631(0x5b0))?.[_0x42c631(0x6a0)];}[_0x3020b9(0x6b7)](){return this['_n']('info');}[_0x3020b9(0x281)](){const _0x349986=_0x3020b9;return this['_n'](_0x349986(0x281));}get['peers'](){const _0x431ad=_0x3020b9;return this[_0x431ad(0xe6)]||(()=>this['_n'](_0x431ad(0x469)));}set[_0x3020b9(0x469)](_0xd14587){const _0x539cfe=_0x3020b9;this[_0x539cfe(0xe6)]=typeof _0xd14587===_0x539cfe(0x5a8)?_0xd14587:null,this['_n']('setPeersFn',[this[_0x539cfe(0xe6)]]);}[_0x3020b9(0x5a7)](){const _0x4b4806=_0x3020b9;return this['_n'](_0x4b4806(0x42c));}async['reconcile'](){const _0xed1469=_0x3020b9;return this[_0xed1469(0x507)](_0xed1469(0x4e0));}async[_0x3020b9(0x4ce)](_0x28bd78){const _0x30ce63=_0x3020b9;return this[_0x30ce63(0x507)](_0x30ce63(0x4ce),[_0x28bd78]);}async['_reconcilePeer'](_0x4d1cdd,_0x398b7f={}){return this['_nm']('reconcilePeerPull',[_0x4d1cdd,_0x398b7f]);}[_0x3020b9(0x415)](){const _0x3e56c2=_0x3020b9;return this['_n'](_0x3e56c2(0x415));}[_0x3020b9(0x694)](){const _0x17622c=_0x3020b9;return this['_n'](_0x17622c(0x694));}async[_0x3020b9(0x4d2)](_0x56e768,_0x2a9352={}){return this['_n']('upsertLink',[_0x56e768,_0x2a9352],!![]);}async['removeLink'](_0x3b2538){const _0x37f8af=_0x3020b9;return this['_n'](_0x37f8af(0x4c8),[_0x3b2538],!![]);}['_getNodeRecord'](_0x5d9200){const _0x2f9aab=_0x3020b9;return this['_n'](_0x2f9aab(0x351),[_0x5d9200]);}[_0x3020b9(0x2c2)](_0xd51aa3){return this['_n']('getPeerState',[_0xd51aa3]);}async['_setPeerState'](_0x19b811,_0x5e01f7,_0x160976={}){const _0x52aa4a=_0x3020b9;return this['_n'](_0x52aa4a(0x27e),[_0x19b811,_0x5e01f7,_0x160976]);}async['_ensurePeerState'](_0xdf242a){const _0x121bcf=_0x3020b9;return this['_n'](_0x121bcf(0x39a),[_0xdf242a]);}async['_ensure'](){const _0x37fe6a=_0x3020b9;return this['_n'](_0x37fe6a(0x71f),[],!![]);}async['patchSelf'](_0x1241a6){const _0x3032c6=_0x3020b9;return this['_n'](_0x3032c6(0xb9),[_0x1241a6],!![]);}async[_0x3020b9(0x4b7)](_0x594fc0,_0x4b6c57={}){const _0x43f56a=_0x3020b9;return this[_0x43f56a(0x507)]('join',[_0x594fc0,_0x4b6c57]);}async[_0x3020b9(0x5f1)](_0x1bfed8={},_0x2dcf56={}){const _0x3cb1ac=_0x3020b9;return void _0x1bfed8[_0x3cb1ac(0x74e)],this['_n'](_0x3cb1ac(0x5f1),[_0x1bfed8,_0x2dcf56]);}async[_0x3020b9(0x65c)](_0x359c31,_0x3ce7b0,_0x5dda3a,_0x33eb1b){const _0x272732=_0x3020b9;return this[_0x272732(0x507)](_0x272732(0x65c),[_0x359c31,_0x3ce7b0,_0x5dda3a,_0x33eb1b??null]);}async['fetchRemoteDelta'](_0x12c568,_0x4902c7,_0x40e67c={}){const _0x50e94b=_0x3020b9;return this[_0x50e94b(0x507)](_0x50e94b(0x141),[_0x12c568,_0x4902c7,_0x40e67c]);}['_shouldApplyChange'](_0x2c67fd,_0x13d3bb=null){const _0x48c40d=_0x3020b9;return this['_n'](_0x48c40d(0xb8),[_0x2c67fd,_0x13d3bb?_0x13d3bb[_0x48c40d(0x397)]:null]);}[_0x3020b9(0x167)](_0x1e9706,_0x39ad8e=null){return this['_n']('applyChange',[_0x1e9706,_0x39ad8e?_0x39ad8e['name']:null],!![]);}}return sync={'OKDBSync':_0x3e4018},sync;}var migrate,hasRequiredMigrate;function requireMigrate(){const _0x494589=_0x5186d4;if(hasRequiredMigrate)return migrate;hasRequiredMigrate=0x1;const {optionsArg:_0x4bc9fc}=requireErrors(),_0x25f83c=require$$0,_0xe5e718=require$$4,_0x16ba63=0x40*0x400;async function _0x1ad56c(_0x9ce31f,_0x28be82){const _0x3e6215=_0x458f;for(let _0x5a8a24=0x0;_0x5a8a24<_0x28be82['length'];){let _0x774db9=Math[_0x3e6215(0x4b5)](_0x28be82[_0x3e6215(0x5f6)],_0x5a8a24+_0x16ba63);if(_0x774db9<_0x28be82[_0x3e6215(0x5f6)]){const _0x19cf38=_0x28be82[_0x3e6215(0x26c)](0xa,_0x774db9-0x1);_0x774db9=_0x19cf38===-0x1?_0x28be82['length']:_0x19cf38+0x1;}const _0x36bbac=_0x9ce31f[_0x3e6215(0x772)](_0x28be82['subarray'](_0x5a8a24,_0x774db9));_0x5a8a24=_0x774db9;if(!_0x36bbac)await new Promise(_0x582c9f=>_0x9ce31f[_0x3e6215(0x1cf)]('drain',_0x582c9f));await new Promise(_0x95b704=>setImmediate(_0x95b704));}}async function _0x1b4ed5(_0x581d78){const _0x44fa17=_0x458f,_0x5cd757=[];for await(const _0x3f71f0 of _0x581d78)_0x5cd757[_0x44fa17(0x7f5)](Buffer[_0x44fa17(0x3c8)](_0x3f71f0)?_0x3f71f0:Buffer[_0x44fa17(0x791)](_0x3f71f0,_0x44fa17(0x19e)));return Buffer[_0x44fa17(0x748)](_0x5cd757);}class _0x1a0aeb{constructor(_0x4857b8){const _0x33dbc8=_0x458f;this[_0x33dbc8(0x5df)]=_0x4857b8;}['_n'](_0x5098db,_0x137cae){const _0x93d36d=_0x458f;return this[_0x93d36d(0x5df)][_0x93d36d(0x463)](_0x93d36d(0x55f),null,_0x5098db,_0x137cae,!![]);}async[_0x494589(0x2b1)](_0x333c2f,_0x5c6972={}){const _0x325875=_0x494589,{data:_0x5cf472,stats:_0x257120}=this['_n']('exportBuf',[_0x5c6972]);return await _0x1ad56c(_0x333c2f,Buffer[_0x325875(0x791)](_0x5cf472)),_0x257120;}async[_0x494589(0x5ef)](_0x48378d,_0x38a801={}){const _0x849f6e=_0x494589;_0x25f83c[_0x849f6e(0x771)](_0xe5e718[_0x849f6e(0x250)](_0x48378d),{'recursive':!![]});const _0x63f1ba=_0x25f83c['createWriteStream'](_0x48378d),_0x12c5f0=await this[_0x849f6e(0x2b1)](_0x63f1ba,_0x38a801);return await new Promise((_0x1d2c24,_0x31ef46)=>{const _0x3b36cd=_0x849f6e;_0x63f1ba[_0x3b36cd(0x202)](),_0x63f1ba[_0x3b36cd(0x1cf)](_0x3b36cd(0x1c5),_0x1d2c24),_0x63f1ba[_0x3b36cd(0x1cf)](_0x3b36cd(0xdb),_0x31ef46);}),{..._0x12c5f0,'filePath':_0x48378d};}async[_0x494589(0x467)](_0x1ea96c,_0x2ab283={}){const {data:_0x57d3a4,stats:_0x2cb933}=this['_n']('exportEnvsBuf',[_0x2ab283]);return await _0x1ad56c(_0x1ea96c,Buffer['from'](_0x57d3a4)),_0x2cb933;}async[_0x494589(0x1a7)](_0x169fac,_0x793ca6={}){const _0x7b32d5=_0x494589,_0x5323a9=await _0x1b4ed5(_0x169fac),{onProgress:_0x5f4eec,..._0x2017b3}=_0x793ca6,_0x93d9fa=this['_n'](_0x7b32d5(0x437),[_0x5323a9,_0x2017b3]);if(typeof _0x5f4eec===_0x7b32d5(0x5a8))_0x5f4eec({'type':null,'count':_0x93d9fa[_0x7b32d5(0x542)]});return _0x93d9fa;}async[_0x494589(0x7d7)](_0x2655d1,_0x1708e5={}){const _0x4c056b=_0x494589;return this['importFromStream'](_0x25f83c['createReadStream'](_0x2655d1,{'encoding':_0x4c056b(0x19e)}),_0x1708e5);}async[_0x494589(0x7c9)](_0x292b6d,_0x3f419c={}){const _0x698bae=_0x494589;return this['_n'](_0x698bae(0x7c9),[_0x292b6d,_0x3f419c]);}[_0x494589(0x40b)](){return this['_n']('backupRoot',[]);}[_0x494589(0x4b1)](_0xc8a42b){const _0x81b3a0=_0x494589;return this['_n'](_0x81b3a0(0x4b1),[_0xc8a42b??null]);}async['export'](_0x22dd82={}){const _0x49bd52=_0x494589;return this['_n'](_0x49bd52(0x1f7),[_0x22dd82]);}async[_0x494589(0x66a)](_0x272874,_0x2a4e55={}){const _0x2082d7=_0x494589;return this['_n'](_0x2082d7(0x66a),[_0x272874,_0x2a4e55]);}async['exportJSON'](_0x17e730){const _0x1dc6fa=_0x494589,{pretty:pretty=![]}=_0x4bc9fc(_0x17e730);return JSON[_0x1dc6fa(0x745)](await this[_0x1dc6fa(0x1f7)](),null,pretty?0x2:0x0);}async[_0x494589(0x785)](_0x4c735c){const _0x5b4d02=_0x494589;return this[_0x5b4d02(0x66a)](JSON[_0x5b4d02(0x6cd)](_0x4c735c));}[_0x494589(0x5f8)](){const _0x4b9d1c=_0x494589;if(!this[_0x4b9d1c(0x5df)][_0x4b9d1c(0x126)][_0x4b9d1c(0x576)](_0x4b9d1c(0x132))?.[_0x4b9d1c(0x204)])throw new Error(_0x4b9d1c(0x22e));}async[_0x494589(0x614)](_0x55c896){const _0x1a0d81=_0x494589;return this[_0x1a0d81(0x5f8)](),this['_n'](_0x1a0d81(0x614),[_0x55c896]);}async[_0x494589(0x530)](_0x2a4027){const _0x4b09b2=_0x494589;return this[_0x4b09b2(0x5f8)](),this['_n'](_0x4b09b2(0x530),[_0x2a4027]);}[_0x494589(0x332)](){const _0x491ad5=_0x494589;return this['_n'](_0x491ad5(0x221),[])[_0x491ad5(0x25e)](_0x2a977a=>this[_0x491ad5(0x5df)][_0x491ad5(0x78b)](_0x2a977a));}async[_0x494589(0x2b4)](){const _0x39bbde=_0x494589;return this[_0x39bbde(0x5f8)](),this['_n'](_0x39bbde(0x2b4),[]);}async[_0x494589(0x6ab)](){const _0x40f01e=_0x494589;return this[_0x40f01e(0x5f8)](),this['_n'](_0x40f01e(0x6ab),[]);}}return migrate={'OKDBMigrate':_0x1a0aeb},migrate;}var mcp,hasRequiredMcp;function requireMcp(){const _0xb85094=_0x5186d4;if(hasRequiredMcp)return mcp;hasRequiredMcp=0x1;class _0x59846e{constructor(_0x44f4be){const _0x2b616f=_0x458f;this[_0x2b616f(0x5df)]=_0x44f4be,this['clients']=new Map();}['_n'](_0x43c68e,_0x20e6a1){const _0x2c243d=_0x458f;try{return this['okdb']['_call'](_0x2c243d(0x350),null,_0x43c68e,_0x20e6a1,!![]);}catch(_0x58091b){if(_0x58091b&&_0x58091b[_0x2c243d(0x649)]===_0x2c243d(0x73c)&&_0x58091b[_0x2c243d(0x4cf)]){if(_0x58091b[_0x2c243d(0x4cf)][_0x2c243d(0x1e3)]!==undefined)_0x58091b[_0x2c243d(0x1e3)]=_0x58091b['details'][_0x2c243d(0x1e3)];_0x58091b[_0x2c243d(0x4cf)]=_0x58091b['details'][_0x2c243d(0x4cf)],_0x58091b[_0x2c243d(0x649)]=undefined;}throw _0x58091b;}}[_0xb85094(0x256)](){const _0xb35b02=_0xb85094;return this['_n'](_0xb35b02(0x2c8),[]);}async['_call'](_0x4bda96,_0x204442={}){const _0xc9a0f4=_0xb85094;return this['_n'](_0xc9a0f4(0x17f),[_0x4bda96??null,_0x204442??{}]);}async['_handle'](_0x4da3c4,_0x1fc41e={}){const _0x18d87b=_0xb85094;return this['_n'](_0x18d87b(0x2fa),[_0x4da3c4,_0x1fc41e??{}]);}[_0xb85094(0x589)](_0x2a08c6){return this['_n']('initialize',[_0x2a08c6??null]);}}return mcp={'OKDBMcp':_0x59846e},mcp;}var sys,hasRequiredSys;function requireSys(){const _0xbc41ea=_0x5186d4;if(hasRequiredSys)return sys;hasRequiredSys=0x1;function _0x158f40(_0x37a089,_0x44869a,_0x208370){const _0x182ca0=_0x458f,_0x30a85e={};for(const [_0x46b2be,_0x230e6c]of Object[_0x182ca0(0x591)](_0x208370)){_0x30a85e[_0x46b2be]=_0x230e6c===_0x182ca0(0x63d)?async(..._0x57c7af)=>_0x37a089['_call'](_0x44869a,null,_0x46b2be,_0x57c7af):(..._0x3c0569)=>_0x37a089[_0x182ca0(0x463)](_0x44869a,null,_0x46b2be,_0x3c0569,![]);}return _0x30a85e;}const _0x5d793c=[_0xbc41ea(0x498),_0xbc41ea(0x695),_0xbc41ea(0x4e3),_0xbc41ea(0x14d),_0xbc41ea(0x513),_0xbc41ea(0x411),_0xbc41ea(0x322),_0xbc41ea(0x645),'describeIndexes',_0xbc41ea(0x763),_0xbc41ea(0x4f5),_0xbc41ea(0x1eb),_0xbc41ea(0x48c),_0xbc41ea(0x4eb),_0xbc41ea(0x553),_0xbc41ea(0xc8),_0xbc41ea(0x1b6),_0xbc41ea(0x5a2),'explainIndex',_0xbc41ea(0x7ea),_0xbc41ea(0x181)],_0x10ac19={'add':_0xbc41ea(0x63d),'activate':_0xbc41ea(0x63d),'remove':_0xbc41ea(0x63d),'list':_0xbc41ea(0x364),'get':'sync','effective':_0xbc41ea(0x364)},_0x5bd345={'open':_0xbc41ea(0x63d),'register':_0xbc41ea(0x63d),'buildOwnRow':'sync','_buildProcessingFacet':_0xbc41ea(0x364),'reportThreadStats':'sync','clearThreadStats':_0xbc41ea(0x364),'emitProc':_0xbc41ea(0x364),'addSupervisedChild':_0xbc41ea(0x63d),'removeSupervisedChild':'sync','updateSupervisedChildStats':_0xbc41ea(0x364),'publishChildRow':_0xbc41ea(0x63d),'putNode':_0xbc41ea(0x63d),'removeNode':_0xbc41ea(0x63d),'nodeDead':_0xbc41ea(0x364),'listNodes':_0xbc41ea(0x364),'reap':_0xbc41ea(0x63d),'publishOwnRow':'async','deregisterSelf':_0xbc41ea(0x63d),'setOwnMeta':'sync','noteListenAddr':_0xbc41ea(0x364),'hasDesired':'sync','getDesired':_0xbc41ea(0x364),'setDesired':_0xbc41ea(0x63d),'listDesired':_0xbc41ea(0x364),'getCmd':_0xbc41ea(0x364),'bumpCmd':_0xbc41ea(0x63d),'processingStatusView':_0xbc41ea(0x364),'processorsView':'sync','clusterStatusView':_0xbc41ea(0x364),'nodesView':_0xbc41ea(0x364),'treeView':_0xbc41ea(0x364),'getProcess':_0xbc41ea(0x364),'runtimeProcessesView':_0xbc41ea(0x364)};function _0x85f033(_0x2a5c4e){const _0x2a9fb1=_0xbc41ea,_0x335a70={},_0x5da7af=_0x278159=>_0x278159&&typeof _0x278159===_0x2a9fb1(0x57c)&&!Array['isArray'](_0x278159)&&typeof _0x278159[_0x2a9fb1(0x397)]===_0x2a9fb1(0x48a)?_0x278159[_0x2a9fb1(0x397)]:_0x278159;for(const _0x558908 of _0x5d793c)_0x335a70[_0x558908]=_0x558908==='recomputeFields'?async(..._0x139ada)=>_0x2a5c4e['_call'](_0x2a9fb1(0x4eb),null,_0x558908,_0x139ada['map'](_0x5da7af),!![]):(..._0x5cbc73)=>_0x2a5c4e[_0x2a9fb1(0x463)]('meta',null,_0x558908,_0x5cbc73['map'](_0x5da7af),![]);return _0x335a70;}function _0x296c7b(_0x59a723){const _0x5c8392=_0xbc41ea,_0x1250b2=_0x158f40(_0x59a723,_0x5c8392(0x1ef),_0x10ac19);return _0x1250b2;}function _0x957735(_0x3091fb){const _0x240f0c=_0xbc41ea,_0x27bc0b=()=>_0x3091fb[_0x240f0c(0x1ef)]['effective'](),_0xc5e33=_0x42ff78=>_0x42ff78[_0x240f0c(0x2c7)]?{..._0x42ff78,'_isFree':!![]}:_0x42ff78;return{async 'addLicense'(_0x748c32){const _0x265fed=_0x240f0c;return _0x3091fb[_0x265fed(0x1ef)][_0x265fed(0x5b5)](_0x748c32);},async 'reload'(){},async 'recheck'(){},get 'active'(){const _0x390f17=_0x240f0c,_0x5479e9=_0x27bc0b();return _0x5479e9[_0x390f17(0x2c7)]?null:_0x5479e9;},get 'effective'(){return _0xc5e33(_0x27bc0b());},'hasLimit'(_0xa6bae3){const _0x308298=_0x240f0c,_0x40b414=_0x27bc0b();if(!_0x40b414[_0x308298(0x2dc)])return![];const _0x224cee=_0x40b414[_0x308298(0x1ca)]?.[_0xa6bae3];return!(_0x224cee===null||_0x224cee===undefined||_0x224cee===0x0);},'isFeatureEnabled'(_0x2d3907){const _0x3c9602=_0x240f0c,_0x2e3bd3=_0x27bc0b();return!_0x2e3bd3['enforced']||!!_0x2e3bd3[_0x3c9602(0x3ef)]?.[_0x2d3907];},'assertFeature'(_0x1087bc){const _0x643fc8=_0x240f0c,_0x5a4377=_0x27bc0b();if(!_0x5a4377[_0x643fc8(0x2dc)]||_0x5a4377['features']?.[_0x1087bc])return;const {OKDBError:_0x3ecc1a}=requireErrors(),_0xbad00=_0x5a4377[_0x643fc8(0x2c7)]?_0x643fc8(0x71b)+_0x1087bc+'.\x20Add\x20a\x20license\x20that\x20includes\x20\x22'+_0x1087bc+'\x22\x20to\x20enable\x20it.':'Feature\x20not\x20licensed:\x20'+_0x1087bc+'.\x20The\x20active\x20license\x20does\x20not\x20enable\x20\x22'+_0x1087bc+'\x22.';throw new _0x3ecc1a(_0xbad00,'LICENSE_FEATURE_DISABLED',{'feature':_0x1087bc});},'assertLimit'(_0x2c8c2e,_0x52a88f){const _0x58fa7b=_0x240f0c,_0xeea263=_0x27bc0b();if(!_0xeea263['enforced'])return;const _0x1fda2a=_0xeea263[_0x58fa7b(0x1ca)]?.[_0x2c8c2e];if(_0x1fda2a===null||_0x1fda2a===undefined||_0x1fda2a===0x0)return;if(_0x52a88f>=_0x1fda2a){const {OKDBError:_0x2d6ca2}=requireErrors();throw new _0x2d6ca2(_0x58fa7b(0x3b9)+_0x2c8c2e+'\x20('+_0x52a88f+'/'+_0x1fda2a+')',_0x58fa7b(0x520),{'limit':_0x2c8c2e,'current':_0x52a88f,'max':_0x1fda2a});}},'listLicenses'(){const _0x37cc23=_0x240f0c;return _0x3091fb[_0x37cc23(0x1ef)]['list']();},'getPins'(){const _0x236b2d=_0x240f0c;return _0x3091fb[_0x236b2d(0x1ef)]['list']()[_0x236b2d(0x25e)](_0x55130d=>({'licenseId':_0x55130d['id'],'pin':_0x55130d[_0x236b2d(0x170)]===_0x236b2d(0x30e)?null:_0x55130d[_0x236b2d(0x262)]}));}};}function _0x2ee679(_0x42c055){const _0x197f8c=_0xbc41ea,_0x4799ef=_0x158f40(_0x42c055,'processes',_0x5bd345);Object['defineProperty'](_0x4799ef,_0x197f8c(0x417),{'get':()=>_0x42c055[_0x197f8c(0x463)](_0x197f8c(0x475),null,_0x197f8c(0x417),[],![])}),Object[_0x197f8c(0x4a2)](_0x4799ef,'rowKey',{'get':()=>_0x42c055['_call']('processes',null,'rowKey',[],![])}),_0x4799ef['_listenAddr']=null;const _0x524f3f=_0x4799ef['noteListenAddr'];_0x4799ef[_0x197f8c(0x287)]=_0x35a4d2=>{const _0x33e0d7=_0x197f8c;return _0x4799ef[_0x33e0d7(0x524)]=_0x35a4d2,_0x524f3f(_0x35a4d2);};const _0x1c4be4=()=>_0x4799ef['listNodes']()[_0x197f8c(0x25e)](_0x501961=>({'key':_0x501961[_0x197f8c(0xd7)],'value':_0x501961,'version':0x1})),_0x560eb5={'name':'~processes','_sync':![],'_isOpen':!![],'isProcessStore':!![],'hasType':_0x39d08d=>_0x39d08d===_0x197f8c(0x3e9),'getRange':_0x49ac21=>_0x49ac21===_0x197f8c(0x3e9)?_0x1c4be4()[Symbol['iterator']]():[][Symbol['iterator']](),'getKeys':_0x1f41d7=>_0x1f41d7===_0x197f8c(0x3e9)?_0x1c4be4()[_0x197f8c(0x25e)](_0x5b0854=>_0x5b0854[_0x197f8c(0x4fc)])[Symbol[_0x197f8c(0x16f)]]():[][Symbol['iterator']](),'getValues':_0x230420=>_0x230420===_0x197f8c(0x3e9)?_0x1c4be4()[_0x197f8c(0x25e)](_0x5adfa4=>_0x5adfa4[_0x197f8c(0x27a)])[Symbol['iterator']]():[][Symbol['iterator']](),'get':(_0x5561d9,_0x33003c)=>_0x5561d9===_0x197f8c(0x3e9)?_0x1c4be4()['find'](_0x4ab403=>_0x4ab403[_0x197f8c(0x4fc)]===_0x33003c)?.[_0x197f8c(0x27a)]:undefined,'getCount':_0x307250=>_0x307250===_0x197f8c(0x3e9)?_0x1c4be4()[_0x197f8c(0x5f6)]:0x0};Object['defineProperty'](_0x4799ef,_0x197f8c(0x590),{'get':()=>_0x42c055[_0x197f8c(0x463)](_0x197f8c(0x475),null,_0x197f8c(0x222),[],![])?_0x560eb5:null});const _0x269b72=_0x4799ef['open'];_0x4799ef['open']=async _0x7378fe=>{return await _0x269b72(_0x7378fe),_0x4799ef['_statusEnv'];},_0x4799ef[_0x197f8c(0x5a1)]=()=>_0x42c055[_0x197f8c(0x463)](_0x197f8c(0x475),null,'ensureDesired',[],!![]);const {RawDb:_0x1191d4}=requireRawdb();return Object['defineProperty'](_0x4799ef,_0x197f8c(0x6af),{'get':()=>_0x42c055[_0x197f8c(0x6b8)]?_0x4799ef[_0x197f8c(0x2eb)]||=new _0x1191d4(_0x42c055[_0x197f8c(0x6b8)],_0x197f8c(0x39f)):undefined}),Object[_0x197f8c(0x4a2)](_0x4799ef,_0x197f8c(0x5cc),{'get':()=>_0x42c055[_0x197f8c(0x6b8)]?_0x4799ef[_0x197f8c(0x2d6)]||=new _0x1191d4(_0x42c055[_0x197f8c(0x6b8)],_0x197f8c(0x458)):undefined}),_0x4799ef['isActive']=()=>_0x42c055[_0x197f8c(0x463)](_0x197f8c(0x475),null,_0x197f8c(0x359),[],![]),Object[_0x197f8c(0x4a2)](_0x4799ef,_0x197f8c(0x333),{'get':()=>_0x42c055[_0x197f8c(0x463)](_0x197f8c(0x475),null,_0x197f8c(0x24c),[],![])}),Object[_0x197f8c(0x4a2)](_0x4799ef,_0x197f8c(0x13a),{'get':()=>_0x42c055[_0x197f8c(0x463)](_0x197f8c(0x475),null,_0x197f8c(0x572),[],![])}),_0x4799ef['_buildOwnRow']=()=>_0x42c055[_0x197f8c(0x463)](_0x197f8c(0x475),null,'buildOwnRow',[],![]),_0x4799ef[_0x197f8c(0x3b3)]=(_0x2b8190,_0x14614b)=>_0x42c055[_0x197f8c(0x463)](_0x197f8c(0x475),null,_0x197f8c(0x6e7),[_0x2b8190,_0x14614b],![]),_0x4799ef;}return sys={'makeMeta':_0x85f033,'makeLicenses':_0x296c7b,'makeLicenseChecker':_0x957735,'makeProcesses':_0x2ee679},sys;}var okdbLogger,hasRequiredOkdbLogger;function requireOkdbLogger(){const _0x5d18b8=_0x5186d4;if(hasRequiredOkdbLogger)return okdbLogger;hasRequiredOkdbLogger=0x1;const _0x3bd152={'debug':0xa,'info':0x14,'warn':0x1e,'error':0x28};class _0x3edccb{constructor(_0x255be7){const _0x204af8=_0x458f;this[_0x204af8(0x5df)]=_0x255be7,this[_0x204af8(0x162)]=new Set(),this['_meta']={};}[_0x5d18b8(0xe4)](_0x13b2c1){const _0xe1b50f=_0x5d18b8,_0xd003c5=new _0x3edccb(this[_0xe1b50f(0x5df)]);return _0xd003c5[_0xe1b50f(0x162)]=this[_0xe1b50f(0x162)],_0xd003c5[_0xe1b50f(0x5ca)]={...this[_0xe1b50f(0x5ca)],..._0x13b2c1},_0xd003c5;}['attach'](_0x4a50f){const _0x127c01=_0x5d18b8;return this['_sinks'][_0x127c01(0x5b5)](_0x4a50f),()=>this[_0x127c01(0x162)]['delete'](_0x4a50f);}['attachConsole'](){const _0x24b631=_0x5d18b8,_0x44afcf=_0x3bd152[process.env.OKDB_LOG_LEVEL]??_0x3bd152[_0x24b631(0x6b7)];return this['_detachConsole']=this[_0x24b631(0x341)](({level:_0x18802d,msg:_0x4e5c0b,meta:_0x2c1e9b,context:_0x4be71a,ts:_0x4647fa})=>{const _0x30a93f=_0x24b631;if((_0x3bd152[_0x18802d]??_0x3bd152['info'])<_0x44afcf)return;if(_0x2c1e9b?.[_0x30a93f(0x4e2)]===_0x30a93f(0x1e8)&&(_0x18802d===_0x30a93f(0x6b7)||_0x18802d===_0x30a93f(0x59b)))return;const _0x1a94fe=_0x18802d===_0x30a93f(0xdb)?console[_0x30a93f(0xdb)]:_0x18802d===_0x30a93f(0xb5)?console[_0x30a93f(0xb5)]:_0x18802d==='info'?console['info']:console[_0x30a93f(0x23f)],_0x3b7407=_0x2c1e9b&&Object[_0x30a93f(0xc7)](_0x2c1e9b)[_0x30a93f(0x5f6)]>0x0;_0x3b7407||_0x4be71a!==undefined?_0x1a94fe(new Date(_0x4647fa)[_0x30a93f(0x687)](),_0x4e5c0b,..._0x3b7407?[_0x2c1e9b]:[],..._0x4be71a!==undefined?[_0x4be71a]:[]):_0x1a94fe(new Date(_0x4647fa)[_0x30a93f(0x687)](),_0x4e5c0b);}),this[_0x24b631(0x370)];}[_0x5d18b8(0x77d)](){const _0x208c6a=_0x5d18b8;this[_0x208c6a(0x370)]&&(this[_0x208c6a(0x370)](),this[_0x208c6a(0x370)]=null);}['attachOKDB'](_0x2fd545,_0x4c236b){const _0xfddaec=require$$0$4,_0x4c1406=0x1f4,_0x3e8d05=Number(process.env.OKDB_LOG_FLUSH_MS)||0x3e8;let _0x1c6718=[],_0x44be9e=0x0,_0x32e804=null;const _0x3fd58b=()=>{const _0x1a8a1c=_0x458f;_0x32e804=null;if(_0x1c6718['length']===0x0)return;const _0x15ab3d=_0x1c6718;_0x1c6718=[],_0x44be9e>0x0&&(_0x15ab3d['push']({'ts':Date[_0x1a8a1c(0x55e)](),'level':_0x1a8a1c(0xb5),'msg':_0x1a8a1c(0x3c3)+_0x44be9e+_0x1a8a1c(0x4b8)+(_0x44be9e===0x1?'y':_0x1a8a1c(0x56a))+_0x1a8a1c(0xad),'feature':_0x1a8a1c(0x23f),'node':_0x4c236b,'context':null}),_0x44be9e=0x0),_0x2fd545[_0x1a8a1c(0x778)](_0x3b2f77=>{const _0x3c8835=_0x1a8a1c;for(const _0xb615df of _0x15ab3d)_0x3b2f77[_0x3c8835(0x540)]('~log_entry',_0xfddaec[_0x3c8835(0x504)](),_0xb615df);})['catch'](()=>{});},_0x5dddcc=this['attach'](({level:_0x119a13,msg:_0x378d1f,meta:_0x40a8aa,context:_0x552faa,ts:_0x5db726})=>{const _0x5ae644=_0x458f;if(_0x119a13===_0x5ae644(0x59b))return;_0x1c6718[_0x5ae644(0x5f6)]>=_0x4c1406&&(_0x44be9e++,_0x1c6718[_0x5ae644(0x3d5)]()),_0x1c6718[_0x5ae644(0x7f5)]({'ts':_0x5db726,'level':_0x119a13,'msg':_0x378d1f,'feature':_0x40a8aa?.[_0x5ae644(0x4e2)]??_0x40a8aa?.[_0x5ae644(0x6f6)]??null,'node':_0x4c236b,'context':_0x552faa??null}),!_0x32e804&&(_0x32e804=setTimeout(_0x3fd58b,_0x3e8d05),_0x32e804['unref']?.());});return()=>{_0x5dddcc();if(_0x32e804)clearTimeout(_0x32e804);_0x3fd58b();};}['_emit'](_0x54a9aa,_0x5a1176,_0x3900e1){const _0x45bcfa=_0x5d18b8;_0x5a1176 instanceof Error&&(_0x3900e1={'message':_0x5a1176[_0x45bcfa(0xe9)],'stack':_0x5a1176[_0x45bcfa(0x709)],..._0x3900e1},_0x5a1176=_0x5a1176[_0x45bcfa(0xe9)]);const _0x5883a3={'level':_0x54a9aa,'msg':_0x5a1176,'meta':{...this[_0x45bcfa(0x5ca)]},'context':_0x3900e1,'ts':Date[_0x45bcfa(0x55e)]()};try{this[_0x45bcfa(0x5df)][_0x45bcfa(0x2b9)][_0x45bcfa(0x74a)]('log',_0x5883a3);}catch{}for(const _0x2277c9 of this[_0x45bcfa(0x162)]){try{_0x2277c9(_0x5883a3);}catch{}}}[_0x5d18b8(0x1db)](_0x392f24){const _0x19202b=_0x5d18b8;try{this[_0x19202b(0x5df)]?.[_0x19202b(0x2b9)]?.[_0x19202b(0x74a)](_0x19202b(0x23f),_0x392f24);}catch{}for(const _0x3ca3e7 of this[_0x19202b(0x162)]){try{_0x3ca3e7(_0x392f24);}catch{}}}['info'](_0x4b88ff,_0x110438){const _0x2b8533=_0x5d18b8;this[_0x2b8533(0x6d3)]('info',_0x4b88ff,_0x110438);}[_0x5d18b8(0xb5)](_0x281ddc,_0x22e154){const _0x1ac786=_0x5d18b8;this[_0x1ac786(0x6d3)]('warn',_0x281ddc,_0x22e154);}[_0x5d18b8(0xdb)](_0x1d0a6e,_0x551604){const _0x2a438b=_0x5d18b8;this['_emit'](_0x2a438b(0xdb),_0x1d0a6e,_0x551604);}[_0x5d18b8(0x59b)](_0x28b313,_0x362340){const _0x3a424c=_0x5d18b8;this[_0x3a424c(0x6d3)]('debug',_0x28b313,_0x362340);}}return okdbLogger=_0x3edccb,okdbLogger;}var okdbPlugins,hasRequiredOkdbPlugins;function requireOkdbPlugins(){const _0x3a6593=_0x5186d4;if(hasRequiredOkdbPlugins)return okdbPlugins;hasRequiredOkdbPlugins=0x1;const {OKDB_STATE:_0xdead6}=requireOkdbEnums(),{OKDBError:_0x33bfe6}=requireOkdbError();class _0x6d4c8b{constructor(_0x417444){const _0x3add1c=_0x458f;this[_0x3add1c(0x5df)]=_0x417444,this['_plugins']=[];}['register'](_0x18ab87,_0x1c386c){const _0x103c24=_0x458f;if(this['okdb'][_0x103c24(0xd2)]!==_0xdead6[_0x103c24(0x712)])throw new _0x33bfe6(_0x103c24(0x184),_0x103c24(0x190),{'state':this[_0x103c24(0x5df)]['state']});if(!_0x18ab87[_0x103c24(0x397)])throw new _0x33bfe6('Plugin\x20must\x20have\x20a\x20name',_0x103c24(0x3ee),{'plugin':_0x18ab87[_0x103c24(0x397)]});const _0x5f831c=_0x18ab87['requires']??[];for(const _0x16b1a5 of _0x5f831c){if(!this[_0x103c24(0x521)][_0x103c24(0x192)](_0x2d3456=>_0x2d3456[_0x103c24(0x6f6)][_0x103c24(0x397)]===_0x16b1a5))throw new _0x33bfe6(_0x103c24(0x1ec)+_0x16b1a5+_0x103c24(0x48d)+_0x18ab87['name']+')',_0x103c24(0x268),{'required':_0x16b1a5});}if(this[_0x103c24(0x521)]['find'](_0x5776f8=>_0x5776f8[_0x103c24(0x6f6)][_0x103c24(0x397)]===_0x18ab87[_0x103c24(0x397)]))throw new _0x33bfe6('Plugin\x20\x27'+_0x18ab87[_0x103c24(0x397)]+_0x103c24(0x434),'PLUGIN_ALREADY_REGISTERED',{'plugin':_0x18ab87['name']});if(_0x18ab87[_0x103c24(0x397)]in this['okdb'])throw new _0x33bfe6('Plugin\x20name\x20\x27'+_0x18ab87[_0x103c24(0x397)]+_0x103c24(0x3f5),_0x103c24(0x529));const _0x264023=_0x18ab87[_0x103c24(0x4a7)](this['okdb'],_0x1c386c);if(!_0x264023||typeof _0x264023!==_0x103c24(0x57c))throw new _0x33bfe6(_0x103c24(0x3a6)+_0x18ab87[_0x103c24(0x397)]+_0x103c24(0x1ba),_0x103c24(0x3ee),{'plugin':_0x18ab87[_0x103c24(0x397)]});this[_0x103c24(0x521)][_0x103c24(0x7f5)]({'module':_0x18ab87,'options':_0x1c386c,'instance':_0x264023});}['_started']=[];async[_0x3a6593(0x6ae)](){const _0x2f0ce2=_0x3a6593;try{for(const _0x23bfc9 of this[_0x2f0ce2(0x521)]){await _0x23bfc9[_0x2f0ce2(0x57e)]['start']?.(this[_0x2f0ce2(0x5df)]),this['_started'][_0x2f0ce2(0x7f5)](_0x23bfc9);}}catch(_0x446141){await this[_0x2f0ce2(0x415)]()[_0x2f0ce2(0x2fc)](()=>{});throw _0x446141;}}async[_0x3a6593(0x415)](){const _0x115320=_0x3a6593,_0x370371=this[_0x115320(0x18f)][_0x115320(0xd0)]();this[_0x115320(0x18f)]=[];let _0x4231e6=null;for(const _0x3dac27 of _0x370371){try{await _0x3dac27[_0x115320(0x57e)][_0x115320(0x415)]?.(this[_0x115320(0x5df)]);}catch(_0x4488bb){_0x4231e6??=_0x4488bb;}}if(_0x4231e6)throw _0x4231e6;}}return okdbPlugins=_0x6d4c8b,okdbPlugins;}var statics,hasRequiredStatics;function requireStatics(){const _0x477357=_0x5186d4;if(hasRequiredStatics)return statics;hasRequiredStatics=0x1;const _0x3e70ba={'maxDbs':0x400,'pageSize':0x1000,'compression':!![],'encryptionKey':undefined,'mapSize':0x100000000,'durability':_0x477357(0x588)},_0x4bac90=new Set([_0x477357(0x7ba),'pageSize',_0x477357(0x62f),_0x477357(0x78c),_0x477357(0x5d3),_0x477357(0x666),_0x477357(0x5ed),_0x477357(0x743),'lmdb',_0x477357(0x3f9),_0x477357(0x364),_0x477357(0x30b),'functions','timeMachine',_0x477357(0x350),_0x477357(0x7c6),_0x477357(0x23f),_0x477357(0x511),_0x477357(0x153),'engines',_0x477357(0x790),_0x477357(0x4a6),_0x477357(0x475),_0x477357(0x381),'api',_0x477357(0x788),_0x477357(0x323),'debug',_0x477357(0x64b),_0x477357(0x7c9)]),_0x19f088={'http':_0x477357(0x1da)};return statics={'defaults':_0x3e70ba,'KNOWN_OPTIONS':_0x4bac90,'_OPTION_HINTS':_0x19f088},statics;}var licenseConfig,hasRequiredLicenseConfig;function requireLicenseConfig(){const _0x158e78=_0x5186d4;if(hasRequiredLicenseConfig)return licenseConfig;hasRequiredLicenseConfig=0x1;const _0x1ff708=require$$0$2,_0x35c7b8=_0x158e78(0x583),_0x58ca8b=_0x1ff708[_0x158e78(0x70a)](_0x158e78(0x1f5))[_0x158e78(0x37c)](_0x1ff708[_0x158e78(0x34b)](_0x35c7b8)[_0x158e78(0x1f7)]({'type':_0x158e78(0x539),'format':_0x158e78(0x473)}))['digest']('hex')[_0x158e78(0x1be)](0x0,0x10),_0x62b2db={'LICENSED_BUILD':_0x158e78(0x495),'PUBLIC_KEY_PEM':_0x35c7b8,'PUB_FINGERPRINT':_0x58ca8b,'LICENSE_EXPIRED_ACTION':_0x158e78(0x23f)};return licenseConfig={'_C':_0x62b2db,'PUBLIC_KEY_PEM':_0x35c7b8,'PUB_FINGERPRINT':_0x58ca8b},licenseConfig;}var okdbSubscriptionsStore={'exports':{}},okdbQueryFilter,hasRequiredOkdbQueryFilter;function requireOkdbQueryFilter(){const _0x48c845=_0x5186d4;if(hasRequiredOkdbQueryFilter)return okdbQueryFilter;hasRequiredOkdbQueryFilter=0x1;const _0x506d58=require$$0$5,{OKDBError:_0x55e8be}=requireOkdbError(),_0xcdadd6=[_0x48c845(0x777),_0x48c845(0x110),'$gt',_0x48c845(0x1e5),_0x48c845(0x5a3),_0x48c845(0x37b),_0x48c845(0x269),'$nin',_0x48c845(0xb7),_0x48c845(0x484),_0x48c845(0x731),'$mod',_0x48c845(0x742),_0x48c845(0x448),_0x48c845(0x286),_0x48c845(0x501),_0x48c845(0x7a3),'$and',_0x48c845(0x71d),'$nor'],_0x536356=[_0x48c845(0x1a4)];function _0x39d85d(_0x686c48){return()=>{const _0x35755e=_0x458f,_0x4c0ce2=new _0x55e8be(_0x35755e(0x6cb)+_0x686c48+_0x35755e(0x4c6),'QUERY_OPERATOR_FORBIDDEN',{'operator':_0x686c48});_0x4c0ce2[_0x35755e(0x26e)]=0x190;throw _0x4c0ce2;};}const _0x549c7=Object[_0x48c845(0x173)]({...Object['fromEntries'](_0xcdadd6[_0x48c845(0x25e)](_0x405cf4=>[_0x405cf4,_0x506d58[_0x405cf4]])),...Object[_0x48c845(0x750)](_0x536356['map'](_0x1aadd8=>[_0x1aadd8,_0x39d85d(_0x1aadd8)]))});function _0x255fb3(_0x4ae4cf){const _0x59b2e7=_0x48c845;return _0x506d58[_0x59b2e7(0x175)](_0x4ae4cf,{'operations':_0x549c7});}function _0x4d365e(_0x449558){const _0x2d040d=_0x48c845;if(_0x449558==null)return;try{_0x255fb3(_0x449558);}catch(_0xe9897b){if(_0xe9897b?.[_0x2d040d(0x649)]===_0x2d040d(0x65e))throw _0xe9897b;}}return okdbQueryFilter={'compileFilter':_0x255fb3,'assertFilterAllowed':_0x4d365e,'ALLOWED_OPERATORS':_0xcdadd6,'FORBIDDEN_OPERATORS':_0x536356},okdbQueryFilter;}var okdbEnvRefs,hasRequiredOkdbEnvRefs;function requireOkdbEnvRefs(){const _0x3e9ffc=_0x5186d4;if(hasRequiredOkdbEnvRefs)return okdbEnvRefs;hasRequiredOkdbEnvRefs=0x1;const {CHANGE_ACTIONS:_0x33a79a,EVENTS:_0x11aa80}=requireOkdbEnums(),{OKDBError:_0x1c2941,OKDBForeignKeyDeleteError:_0x2b8a00}=requireOkdbError(),_0x168756='~ref_violations',_0x3eba07=new Set([_0x3e9ffc(0x15c),_0x3e9ffc(0x2d0),_0x3e9ffc(0x2ed),_0x3e9ffc(0x299)]);function _0x3ba026(_0x462114,_0x46d5d0){const _0x1cc593=_0x3e9ffc;if(_0x462114==null||!_0x46d5d0)return undefined;const _0x459926=_0x46d5d0[_0x1cc593(0x711)]('.');let _0x487053=_0x462114;for(const _0x226590 of _0x459926){if(_0x487053==null||typeof _0x487053!==_0x1cc593(0x57c)||!(_0x226590 in _0x487053))return undefined;_0x487053=_0x487053[_0x226590];}return _0x487053;}function _0x3fdac4(_0x234c1b,_0x4f2595,_0x3a5578){const _0x581f2d=_0x3e9ffc,_0x11ca14=_0x4f2595[_0x581f2d(0x711)]('.'),_0x3737c6={..._0x234c1b};let _0x3f68fa=_0x3737c6;for(let _0x1a5309=0x0;_0x1a5309<_0x11ca14[_0x581f2d(0x5f6)]-0x1;_0x1a5309++){_0x3f68fa[_0x11ca14[_0x1a5309]]=_0x3f68fa[_0x11ca14[_0x1a5309]]!=null?{..._0x3f68fa[_0x11ca14[_0x1a5309]]}:{},_0x3f68fa=_0x3f68fa[_0x11ca14[_0x1a5309]];}return _0x3f68fa[_0x11ca14[_0x11ca14[_0x581f2d(0x5f6)]-0x1]]=_0x3a5578,_0x3737c6;}function _0x1ca65c(_0x3275dd,_0x384b5b,_0x134717,_0x3ab272,_0x2b5574){return[_0x3275dd,_0x384b5b,_0x134717,_0x3ab272,_0x2b5574];}function _0x1d725c(_0x43144d){const _0x50e79a=_0x3e9ffc;return typeof _0x43144d===_0x50e79a(0x48a)||typeof _0x43144d===_0x50e79a(0x51e);}function _0x22a7be(_0x2fd0f0,_0xaa7b8e){const _0xde5ef7=_0x3e9ffc;return JSON[_0xde5ef7(0x745)]([_0x2fd0f0,_0xaa7b8e]);}function*_0x41cfce(_0x48a33d,_0x22302f,_0x551cd4){const _0x5483de=_0x3e9ffc,_0x15798c=_0x551cd4!==undefined;for(const {key:_0x1cefc7}of _0x48a33d[_0x5483de(0x783)]({'start':_0x15798c?[_0x22302f,_0x551cd4]:[_0x22302f]})){if(!Array[_0x5483de(0x28e)](_0x1cefc7))continue;if(_0x1cefc7[0x0]!==_0x22302f||_0x15798c&&_0x1cefc7[0x1]!==_0x551cd4)break;yield _0x1cefc7;}}function _0x238bfd(_0x42e340,_0xd07da1='',_0x325fcc=null){const _0x316e23=_0x3e9ffc,_0x4339f3=[];if(!_0x42e340||typeof _0x42e340!==_0x316e23(0x57c))return _0x4339f3;if(!_0x325fcc)_0x325fcc=_0x42e340;if(_0x42e340['$ref']){const _0x3e258f=_0x42e340[_0x316e23(0x5fa)][_0x316e23(0x4b6)](/^#\/\$defs\/(.+)$/);if(_0x3e258f&&_0x325fcc?.[_0x316e23(0x598)]?.[_0x3e258f[0x1]])return _0x238bfd(_0x325fcc[_0x316e23(0x598)][_0x3e258f[0x1]],_0xd07da1,_0x325fcc);return _0x4339f3;}if(_0x42e340[_0x316e23(0x1d3)]&&typeof _0x42e340[_0x316e23(0x1d3)]===_0x316e23(0x57c)&&_0x42e340[_0x316e23(0x1d3)][_0x316e23(0x170)]){const _0x44e381=_0x42e340[_0x316e23(0x1d3)][_0x316e23(0x6f5)]||_0x316e23(0x15c);if(!_0x3eba07['has'](_0x44e381))throw new _0x1c2941('Invalid\x20onDelete\x20rule\x20\x27'+_0x44e381+_0x316e23(0x452)+(_0xd07da1||_0x316e23(0x151))+'.\x20Valid:\x20'+[..._0x3eba07]['join'](',\x20'),'INVALID_SCHEMA');_0x4339f3[_0x316e23(0x7f5)]({'fieldPath':_0xd07da1,'targetType':_0x42e340['ref'][_0x316e23(0x170)],'onDelete':_0x44e381});}if(_0x42e340[_0x316e23(0x164)])for(const [_0x4562fe,_0x172a85]of Object[_0x316e23(0x591)](_0x42e340[_0x316e23(0x164)])){const _0x39415f=_0xd07da1?_0xd07da1+'.'+_0x4562fe:_0x4562fe;_0x4339f3[_0x316e23(0x7f5)](..._0x238bfd(_0x172a85,_0x39415f,_0x325fcc));}return _0x4339f3;}function _0x4e67a(_0x26a4b1){const _0x1eaedf=_0x3e9ffc,_0x38efb4=new Map(),_0x45999c=new Map();for(const _0x57cd06 of _0x26a4b1['_typeKeys']()){if(_0x57cd06[_0x1eaedf(0x377)]('~'))continue;const _0x40f6c4=_0x26a4b1[_0x1eaedf(0x27d)][_0x1eaedf(0x576)](_0x57cd06);if(!_0x40f6c4?.[_0x1eaedf(0x375)]?.[_0x1eaedf(0x5d9)])continue;let _0x3269d6;try{_0x3269d6=_0x238bfd(_0x40f6c4[_0x1eaedf(0x375)]['definition']);}catch{continue;}if(_0x3269d6[_0x1eaedf(0x5f6)]>0x0){_0x38efb4[_0x1eaedf(0x227)](_0x57cd06,_0x3269d6);for(const _0x2d1b3d of _0x3269d6){if(!_0x45999c['has'](_0x2d1b3d[_0x1eaedf(0x12e)]))_0x45999c['set'](_0x2d1b3d[_0x1eaedf(0x12e)],[]);_0x45999c[_0x1eaedf(0x576)](_0x2d1b3d[_0x1eaedf(0x12e)])[_0x1eaedf(0x7f5)]({'sourceType':_0x57cd06,'fieldPath':_0x2d1b3d[_0x1eaedf(0x49f)],'onDelete':_0x2d1b3d['onDelete']});}}}_0x26a4b1[_0x1eaedf(0x55a)]={'outgoing':_0x38efb4,'incoming':_0x45999c};if(_0x38efb4[_0x1eaedf(0x691)]>0x0)_0x3a7379(_0x26a4b1);}function _0x1453d0(_0x7bcfc9,_0x3b452d){const _0x27d2b7=_0x3e9ffc;return _0x7bcfc9[_0x27d2b7(0x55a)][_0x27d2b7(0x47c)][_0x27d2b7(0x576)](_0x3b452d)||[];}function _0x56e49b(_0x2bfdbd,_0x405ee2){const _0x4330d7=_0x3e9ffc;return _0x2bfdbd[_0x4330d7(0x55a)]['incoming']['get'](_0x405ee2)||[];}function _0x3a7379(_0x51e7e6){const _0x7c6c7f=_0x3e9ffc;if(_0x51e7e6[_0x7c6c7f(0x733)])return _0x51e7e6[_0x7c6c7f(0x733)];return _0x51e7e6[_0x7c6c7f(0x733)]=_0x51e7e6['db']['openDB'](_0x7c6c7f(0x4ab),{'dupSort':![]}),_0x51e7e6['_refIndexDb'];}function _0x84c953(_0x4c0055,_0x1e95c9,_0x16d820,_0x4942d2,_0x1c9cbf){const _0x3d5dc8=_0x3e9ffc,_0x5cdcd0=_0x1453d0(_0x4c0055,_0x1e95c9);if(_0x5cdcd0[_0x3d5dc8(0x5f6)]===0x0)return;const _0x216227=_0x3a7379(_0x4c0055);for(const _0x38e4ef of _0x5cdcd0){const _0x25db55=_0x1c9cbf!=null?_0x3ba026(_0x1c9cbf,_0x38e4ef[_0x3d5dc8(0x49f)]):undefined,_0x583bcc=_0x4942d2!=null?_0x3ba026(_0x4942d2,_0x38e4ef[_0x3d5dc8(0x49f)]):undefined;if(_0x25db55===_0x583bcc)continue;_0x1d725c(_0x25db55)&&_0x216227['removeSync'](_0x1ca65c(_0x38e4ef['targetType'],_0x25db55,_0x1e95c9,_0x16d820,_0x38e4ef[_0x3d5dc8(0x49f)])),_0x1d725c(_0x583bcc)&&_0x216227[_0x3d5dc8(0x500)](_0x1ca65c(_0x38e4ef[_0x3d5dc8(0x12e)],_0x583bcc,_0x1e95c9,_0x16d820,_0x38e4ef['fieldPath']),0x1);}}function _0x1bcf9b(_0x1e93cf,_0x4f2e5b,_0x134c70,_0x295452){const _0x5edea8=_0x3e9ffc,_0x50360c=_0x1453d0(_0x1e93cf,_0x4f2e5b);if(_0x50360c['length']===0x0)return;const _0x552194=_0x3a7379(_0x1e93cf);for(const _0x267b40 of _0x50360c){const _0x5d60b0=_0x295452!=null?_0x3ba026(_0x295452,_0x267b40[_0x5edea8(0x49f)]):undefined;_0x1d725c(_0x5d60b0)&&_0x552194[_0x5edea8(0x35b)](_0x1ca65c(_0x267b40['targetType'],_0x5d60b0,_0x4f2e5b,_0x134c70,_0x267b40[_0x5edea8(0x49f)]));}}function _0x440a39(_0x5df35e,_0x2e8f40,_0x51f1f0,_0x1fd694){const _0x1f40aa=_0x3e9ffc,_0x4c5ecb=_0x1453d0(_0x5df35e,_0x2e8f40);if(_0x4c5ecb[_0x1f40aa(0x5f6)]===0x0)return[];const _0x999f93=[];for(const _0x3adb30 of _0x4c5ecb){const _0x4b260d=_0x3ba026(_0x1fd694,_0x3adb30[_0x1f40aa(0x49f)]);if(_0x4b260d==null)continue;if(!_0x5df35e[_0x1f40aa(0x7d2)](_0x3adb30['targetType'])){_0x999f93[_0x1f40aa(0x7f5)]({'fieldPath':_0x3adb30['fieldPath'],'targetType':_0x3adb30[_0x1f40aa(0x12e)],'targetKey':_0x4b260d,'message':'Referenced\x20type\x20\x27'+_0x3adb30[_0x1f40aa(0x12e)]+'\x27\x20does\x20not\x20exist'});continue;}const _0x2b6b68=_0x5df35e[_0x1f40aa(0x39c)](_0x3adb30[_0x1f40aa(0x12e)])['data'];!_0x2b6b68[_0x1f40aa(0x4fb)](_0x4b260d)&&_0x999f93[_0x1f40aa(0x7f5)]({'fieldPath':_0x3adb30[_0x1f40aa(0x49f)],'targetType':_0x3adb30['targetType'],'targetKey':_0x4b260d,'message':_0x1f40aa(0x129)+_0x4b260d+_0x1f40aa(0x17b)+_0x3adb30['targetType']+'\x27'});}return _0x999f93;}function _0x16254(_0x543d4a,_0x5daf83,_0x5af8bc,_0x5c17b7,_0x3a7865,{timestamp:_0xa551a3,origin:_0x501e5a,_cascadeVisited:_0x5a20c9}){const _0x28e37f=_0x3e9ffc,_0x3d3f54=_0x56e49b(_0x543d4a,_0x5af8bc);if(_0x3d3f54[_0x28e37f(0x5f6)]===0x0)return;const _0x48b9a5=_0x3a7379(_0x543d4a),_0x157b42=[];for(const [,,_0x1d7ef3,_0x1f1cd6,_0x478b5a]of _0x41cfce(_0x48b9a5,_0x5af8bc,_0x5c17b7)){_0x157b42[_0x28e37f(0x7f5)]({'sourceType':_0x1d7ef3,'sourceKey':_0x1f1cd6,'fieldPath':_0x478b5a});}if(_0x157b42[_0x28e37f(0x5f6)]===0x0)return;for(const _0x34af29 of _0x157b42){const _0x4cfe6e=_0x3d3f54[_0x28e37f(0x58a)](_0xa89866=>_0xa89866[_0x28e37f(0x74c)]===_0x34af29[_0x28e37f(0x74c)]&&_0xa89866[_0x28e37f(0x49f)]===_0x34af29['fieldPath']),_0x3b3ff2=_0x4cfe6e?.[_0x28e37f(0x6f5)]||_0x28e37f(0x15c);switch(_0x3b3ff2){case _0x28e37f(0x299):{if(_0x501e5a===null)throw new _0x2b8a00(_0x5af8bc,_0x5c17b7,_0x157b42[_0x28e37f(0x127)](_0x30a27a=>{const _0x8b2508=_0x28e37f,_0xbbb47c=_0x3d3f54[_0x8b2508(0x58a)](_0x1de48b=>_0x1de48b['sourceType']===_0x30a27a[_0x8b2508(0x74c)]&&_0x1de48b[_0x8b2508(0x49f)]===_0x30a27a[_0x8b2508(0x49f)]);return(_0xbbb47c?.[_0x8b2508(0x6f5)]||'no_action')===_0x8b2508(0x299);}));break;}case _0x28e37f(0x2d0):{const _0x56486b=_0x22a7be(_0x34af29[_0x28e37f(0x74c)],_0x34af29['sourceKey']);if(_0x5a20c9[_0x28e37f(0x43b)](_0x56486b))continue;_0x543d4a[_0x28e37f(0x39c)](_0x34af29[_0x28e37f(0x74c)])[_0x28e37f(0x7d3)][_0x28e37f(0x4fb)](_0x34af29[_0x28e37f(0x2a4)])&&_0x543d4a[_0x28e37f(0x4ae)](_0x5daf83,_0x34af29[_0x28e37f(0x74c)],_0x34af29[_0x28e37f(0x2a4)],{'timestamp':_0xa551a3,'origin':_0x501e5a,'_cascadeVisited':_0x5a20c9});break;}case'set_null':{const _0x580da0=_0x543d4a[_0x28e37f(0x39c)](_0x34af29[_0x28e37f(0x74c)])[_0x28e37f(0x7d3)],_0x1ebb98=_0x580da0[_0x28e37f(0x45e)](_0x34af29[_0x28e37f(0x2a4)]);if(_0x1ebb98){const _0x32db14=_0x3fdac4(_0x1ebb98[_0x28e37f(0x27a)],_0x34af29[_0x28e37f(0x49f)],null);_0x543d4a[_0x28e37f(0x245)](_0x5daf83,_0x28e37f(0x540),_0x34af29[_0x28e37f(0x74c)],_0x34af29[_0x28e37f(0x2a4)],_0x32db14,{'timestamp':_0xa551a3,'origin':_0x501e5a,'_cascading':!![]});}break;}}}}function _0x5c67e2(_0x478696){const _0x4491e7=_0x3e9ffc;!_0x478696[_0x4491e7(0x7d2)](_0x168756)&&_0x478696['_registerType'](_0x168756);}function _0x444733(_0x4ebf96,_0x52352c,_0x3aa8b8,_0x268a71,_0x3599d8,_0x31f0b3,_0x3df382,{timestamp:timestamp=Date[_0x3e9ffc(0x55e)](),origin:origin=null}={}){const _0x42973b=_0x3e9ffc;_0x5c67e2(_0x4ebf96);const _0x486ed1=_0x3aa8b8+'@'+_0x268a71+'@'+_0x3599d8,_0x688475={'sourceType':_0x3aa8b8,'sourceKey':_0x268a71,'fieldPath':_0x3599d8,'targetType':_0x31f0b3,'targetKey':_0x3df382,'timestamp':timestamp,'origin':origin},_0x30482a=_0x4ebf96['_getType'](_0x168756)[_0x42973b(0x7d3)],_0x2f73cd=_0x30482a[_0x42973b(0x45e)](_0x486ed1),_0x3f2bd4=_0x2f73cd?_0x2f73cd[_0x42973b(0x28c)]+0x1:0x1;_0x30482a[_0x42973b(0x500)](_0x486ed1,_0x688475,_0x3f2bd4),_0x4ebf96[_0x42973b(0x2e9)]({'id':_0x42973b(0x33a)+_0x168756+'@'+_0x486ed1,'type':_0x168756,'key':_0x486ed1,'action':_0x33a79a[_0x42973b(0x2c3)],'timestamp':timestamp,'txnId':_0x52352c?.['id'],'origin':origin},_0x2f73cd?.[_0x42973b(0x27a)],_0x688475),_0x4ebf96[_0x42973b(0x2b9)][_0x42973b(0x74a)](_0x11aa80['REF_VIOLATION'],{'sourceType':_0x3aa8b8,'sourceKey':_0x268a71,'fieldPath':_0x3599d8,'targetType':_0x31f0b3,'targetKey':_0x3df382,'env':_0x4ebf96['name']});}function _0x269c78(_0xbf81cb,_0x27237e,_0x2ac248,_0x2d3cb2,_0x5100f7,{timestamp:timestamp=Date[_0x3e9ffc(0x55e)](),origin:origin=null}={}){const _0x247413=_0x3e9ffc;if(!_0xbf81cb[_0x247413(0x7d2)](_0x168756))return;const _0x585a9b=_0x2ac248+'@'+_0x2d3cb2+'@'+_0x5100f7,_0xdac061=_0xbf81cb[_0x247413(0x39c)](_0x168756)[_0x247413(0x7d3)],_0x183000=_0xdac061[_0x247413(0x45e)](_0x585a9b);if(!_0x183000)return;_0xdac061[_0x247413(0x35b)](_0x585a9b),_0xbf81cb[_0x247413(0x2e9)]({'id':_0x247413(0x33a)+_0x168756+'@'+_0x585a9b,'type':_0x168756,'key':_0x585a9b,'action':_0x33a79a[_0x247413(0x371)],'timestamp':timestamp,'txnId':_0x27237e?.['id'],'origin':origin},_0x183000[_0x247413(0x27a)],undefined),_0xbf81cb[_0x247413(0x2b9)][_0x247413(0x74a)](_0x11aa80['REF_VIOLATION_RESOLVED'],{'sourceType':_0x2ac248,'sourceKey':_0x2d3cb2,'fieldPath':_0x5100f7,'env':_0xbf81cb['name']});}function _0x1f42a1(_0x2e27d3,_0x433e8a,_0x17782e,_0x49f03f,_0x4e5e7f={}){const _0xb1d5b2=_0x3e9ffc;if(!_0x2e27d3[_0xb1d5b2(0x7d2)](_0x168756))return;const _0x8f1740=_0x2e27d3[_0xb1d5b2(0x39c)](_0x168756)['data'],_0x2353a1=_0x17782e+'@'+_0x49f03f+'@',_0x1fc28e=[];for(const {key:_0xeade31,value:_0x26b1b0}of _0x8f1740[_0xb1d5b2(0x783)]({'start':_0x2353a1,'end':_0x2353a1+'\uffff'})){if(_0x26b1b0?.[_0xb1d5b2(0x74c)]===_0x17782e&&_0x26b1b0?.[_0xb1d5b2(0x2a4)]===_0x49f03f)_0x1fc28e['push'](_0xeade31);}for(const _0x3b3aaa of _0x1fc28e){const _0x3087b2=_0x8f1740[_0xb1d5b2(0x45e)](_0x3b3aaa);if(!_0x3087b2)continue;_0x8f1740[_0xb1d5b2(0x35b)](_0x3b3aaa),_0x2e27d3[_0xb1d5b2(0x2e9)]({'id':_0xb1d5b2(0x33a)+_0x168756+'@'+_0x3b3aaa,'type':_0x168756,'key':_0x3b3aaa,'action':_0x33a79a[_0xb1d5b2(0x371)],'timestamp':_0x4e5e7f[_0xb1d5b2(0x489)]||Date['now'](),'txnId':_0x433e8a?.['id'],'origin':_0x4e5e7f['origin']},_0x3087b2[_0xb1d5b2(0x27a)],undefined);}}function _0x440851(_0x4d8c94,_0x1ff169){const _0x26c455=_0x3e9ffc;if(!_0x4d8c94[_0x26c455(0x7d2)](_0x168756))return;const _0x2458d8=_0x4d8c94[_0x26c455(0x39c)](_0x168756)[_0x26c455(0x7d3)],_0x50d90=_0x1ff169+'@',_0x4a0be5=[];for(const {key:_0x294de5,value:_0x407f6f}of _0x2458d8[_0x26c455(0x783)]({'start':_0x50d90,'end':_0x50d90+'\uffff'})){if(_0x407f6f?.['sourceType']===_0x1ff169)_0x4a0be5[_0x26c455(0x7f5)](_0x294de5);}for(const _0x2d270e of _0x4a0be5)_0x2458d8[_0x26c455(0x35b)](_0x2d270e);}async function _0x5b656d(_0x51e0ac,_0x18ce3b){const _0xa323c5=_0x3e9ffc,_0x18e1b5=_0x1453d0(_0x51e0ac,_0x18ce3b);if(_0x18e1b5['length']===0x0)return;await _0x51e0ac[_0xa323c5(0x32f)][_0xa323c5(0x316)](()=>{const _0x9003e0=_0xa323c5;for(const {key:_0x26b521,value:_0x34864a}of _0x51e0ac[_0x9003e0(0x783)](_0x18ce3b)){_0x84c953(_0x51e0ac,_0x18ce3b,_0x26b521,_0x34864a,null);const _0x186818=_0x440a39(_0x51e0ac,_0x18ce3b,_0x26b521,_0x34864a);for(const _0x51811d of _0x186818){_0x444733(_0x51e0ac,null,_0x18ce3b,_0x26b521,_0x51811d[_0x9003e0(0x49f)],_0x51811d[_0x9003e0(0x12e)],_0x51811d[_0x9003e0(0x38b)]);}}});}const _0x2ef822=0x1388;async function _0x11c30f(_0x309a25){const _0x1aedc0=_0x3e9ffc,_0x4260de=_0x309a25['_refCache']?.[_0x1aedc0(0x47c)]?.[_0x1aedc0(0x691)]>0x0;if(!_0x4260de&&!_0x309a25[_0x1aedc0(0x733)])return{'dropped':0x0,'written':0x0};const _0x51f22d=_0x3a7379(_0x309a25);let _0x2a57a9=0x0;for(;;){const _0x4dc29a=Array[_0x1aedc0(0x791)](_0x51f22d['getKeys']({'limit':_0x2ef822}));if(_0x4dc29a['length']===0x0)break;let _0xe7b01=0x0;await _0x309a25[_0x1aedc0(0x32f)][_0x1aedc0(0x316)](()=>{const _0x140749=_0x1aedc0;for(const _0x456af3 of _0x4dc29a)if(_0x51f22d[_0x140749(0x35b)](_0x456af3))_0xe7b01++;});if(_0xe7b01===0x0)break;_0x2a57a9+=_0xe7b01;}let _0x2d83b8=0x0;for(const _0x512f38 of _0x309a25['_refCache'][_0x1aedc0(0x47c)][_0x1aedc0(0xc7)]()){if(_0x512f38['startsWith']('~')||!_0x309a25[_0x1aedc0(0x7d2)](_0x512f38))continue;const _0x42510b=_0x1453d0(_0x309a25,_0x512f38);await _0x309a25[_0x1aedc0(0x32f)][_0x1aedc0(0x316)](()=>{const _0x29461e=_0x1aedc0;for(const {key:_0x1026a1,value:_0x272770}of _0x309a25[_0x29461e(0x783)](_0x512f38)){for(const _0x4a615c of _0x42510b){const _0x51914c=_0x3ba026(_0x272770,_0x4a615c[_0x29461e(0x49f)]);if(!_0x1d725c(_0x51914c))continue;_0x51f22d['putSync'](_0x1ca65c(_0x4a615c[_0x29461e(0x12e)],_0x51914c,_0x512f38,_0x1026a1,_0x4a615c[_0x29461e(0x49f)]),0x1),_0x2d83b8++;}}});}return{'dropped':_0x2a57a9,'written':_0x2d83b8};}return okdbEnvRefs={'getFieldValue':_0x3ba026,'setFieldValue':_0x3fdac4,'refIndexKey':_0x1ca65c,'isRefTarget':_0x1d725c,'cascadeVisitKey':_0x22a7be,'extractRefs':_0x238bfd,'rebuildRefCache':_0x4e67a,'getTypeRefs':_0x1453d0,'getIncomingRefs':_0x56e49b,'getRefIndexDb':_0x3a7379,'updateRefIndex':_0x84c953,'removeRefIndexEntries':_0x1bcf9b,'refIndexRowsFor':_0x41cfce,'rebuildRefIndex':_0x11c30f,'checkForeignKeys':_0x440a39,'processDeleteCascade':_0x16254,'setRefViolation':_0x444733,'clearRefViolation':_0x269c78,'clearRefViolationsForKey':_0x1f42a1,'clearRefViolationsForType':_0x440851,'syncRefIndex':_0x5b656d},okdbEnvRefs;}var hasRequiredOkdbSubscriptionsStore;function requireOkdbSubscriptionsStore(){const _0x10206f=_0x5186d4;if(hasRequiredOkdbSubscriptionsStore)return okdbSubscriptionsStore[_0x10206f(0x73a)];hasRequiredOkdbSubscriptionsStore=0x1;const _0x221c30=require$$0$4,{assertFilterAllowed:_0x786a53}=requireOkdbQueryFilter(),{rebuildRefCache:_0x164236}=requireOkdbEnvRefs(),_0x39f787=_0x10206f(0x2f6),_0x325571=_0x10206f(0x6a8),_0x46d141=_0x10206f(0x2ca),_0x1ac887=[_0x10206f(0x246),'type',_0x10206f(0x4fc)],_0xb34a71=[_0x10206f(0x246),_0x10206f(0x170)],_0x27372d=0x5a*0x3e8,_0x2c9757=Math[_0x10206f(0x1c7)](_0x27372d/0x2);class _0x4cc8e9{constructor(_0x29b275,_0x19bc5a={}){const _0x3d6020=_0x10206f;this['okdb']=_0x29b275,this[_0x3d6020(0x38a)]=Number[_0x3d6020(0x43f)](_0x19bc5a[_0x3d6020(0x38a)])&&_0x19bc5a['ttlMs']>0x0?_0x19bc5a['ttlMs']:_0x27372d,this['refreshThresholdMs']=Number[_0x3d6020(0x43f)](_0x19bc5a[_0x3d6020(0x384)])?_0x19bc5a[_0x3d6020(0x384)]:_0x2c9757,this['_sub']=null;}async[_0x10206f(0x30e)](){const _0xf7d22e=_0x10206f;if(this['_sub'])return this['_sub'];const _0x2b7de9=await this[_0xf7d22e(0x5df)][_0xf7d22e(0x431)](_0x39f787,{'sync':![]});return await _0x2b7de9[_0xf7d22e(0x4f2)](_0x325571,{'indexes':[_0xb34a71]}),await _0x2b7de9['ensureType'](_0x46d141),_0x2b7de9[_0xf7d22e(0x7ab)](_0x46d141)?_0x164236(_0x2b7de9):await _0x2b7de9[_0xf7d22e(0x208)](_0x46d141,{'definition':{'type':_0xf7d22e(0x57c),'properties':{'sessionId':{'type':_0xf7d22e(0x48a),'ref':{'type':_0x325571,'onDelete':'cascade'}},'dataEnv':{'type':_0xf7d22e(0x48a)},'type':{'type':'string'},'key':{'type':_0xf7d22e(0x48a)}},'required':[_0xf7d22e(0x653),_0xf7d22e(0x246),'type',_0xf7d22e(0x4fc)]},'enforce':!![]}),await _0x2b7de9[_0xf7d22e(0x4f2)](_0x46d141,{'indexes':[_0x1ac887]}),await _0x2b7de9[_0xf7d22e(0xda)](_0x46d141,_0x1ac887),await _0x2b7de9[_0xf7d22e(0xda)](_0x325571,_0xb34a71),this[_0xf7d22e(0x454)]=_0x2b7de9,_0x2b7de9;}['_env'](){const _0x21fd88=_0x10206f;if(!this[_0x21fd88(0x454)])throw new Error(_0x21fd88(0x4c0));return this[_0x21fd88(0x454)];}async['createSession']({sessionId:_0x5a6404,dataEnv:_0xb2185,type:_0x941502,filter:filter=null,ttlMs:_0x27e7be}={}){const _0x3d6304=_0x10206f,_0x230b5d=this[_0x3d6304(0x34e)]();_0x786a53(filter);const _0x34040a=_0x5a6404!=null&&String(_0x5a6404)[_0x3d6304(0x5f6)]>0x0?String(_0x5a6404):_0x221c30[_0x3d6304(0x504)](),_0x22612b=Number['isFinite'](_0x27e7be)&&_0x27e7be>0x0?_0x27e7be:this[_0x3d6304(0x38a)],_0x2d7063=Date[_0x3d6304(0x55e)](),_0x1ac180={'sessionId':_0x34040a,'dataEnv':_0xb2185,'type':_0x941502,'filter':filter??null,'version':0x0,'createdAt':_0x2d7063,'expiresAt':_0x2d7063+_0x22612b};return await _0x230b5d[_0x3d6304(0x540)](_0x325571,_0x34040a,_0x1ac180,{'ttl':_0x22612b}),{'sessionId':_0x34040a,'version':0x0};}[_0x10206f(0x296)](_0x22465a){const _0x4eb9f8=_0x10206f;if(!_0x22465a)return null;return this[_0x4eb9f8(0x34e)]()[_0x4eb9f8(0x576)](_0x325571,String(_0x22465a))??null;}async['closeSession'](_0xaf9a78){const _0x2820a7=_0x10206f,_0x59018d=this[_0x2820a7(0x34e)](),_0x5f269d=String(_0xaf9a78);if(!_0x59018d[_0x2820a7(0x576)](_0x325571,_0x5f269d))return![];return await _0x59018d[_0x2820a7(0x228)](_0x325571,_0x5f269d),!![];}async[_0x10206f(0x6c2)](_0x319c76){const _0x29d7f3=_0x10206f,_0x49d17a=this['_env'](),_0x36f79f=String(_0x319c76),_0x58ed80=_0x49d17a[_0x29d7f3(0x576)](_0x325571,_0x36f79f);if(!_0x58ed80)return null;const _0x244afb=(Number[_0x29d7f3(0x43f)](_0x58ed80[_0x29d7f3(0x28c)])?_0x58ed80[_0x29d7f3(0x28c)]:0x0)+0x1;return await _0x49d17a['put'](_0x325571,_0x36f79f,{..._0x58ed80,'version':_0x244afb}),_0x244afb;}async['refreshTtl'](_0x1083d2,_0x35313d){const _0x2c4d64=_0x10206f,_0x15ae01=this[_0x2c4d64(0x34e)](),_0x4b21e3=String(_0x1083d2);if(!_0x15ae01[_0x2c4d64(0x576)](_0x325571,_0x4b21e3))return![];const _0x57d322=Number['isFinite'](_0x35313d)&&_0x35313d>0x0?_0x35313d:this[_0x2c4d64(0x38a)];if(this[_0x2c4d64(0x61a)](_0x4b21e3))return![];return await _0x15ae01[_0x2c4d64(0x4dd)](_0x325571,_0x4b21e3,_0x57d322),await this[_0x2c4d64(0xf1)](_0x4b21e3,_0x57d322),!![];}async['refreshTtlBatch'](_0x148d37,_0x1d06a2){const _0x54232d=_0x10206f,_0x59e977=this[_0x54232d(0x34e)](),_0x37b461=Number['isFinite'](_0x1d06a2)&&_0x1d06a2>0x0?_0x1d06a2:this[_0x54232d(0x38a)],_0x5a7b10=Date['now'](),_0x2ad15f=[];for(const _0x49198c of _0x148d37||[]){const _0x442a3a=String(_0x49198c),_0x3e2814=_0x59e977['get'](_0x325571,_0x442a3a);if(!_0x3e2814)continue;if(this[_0x54232d(0x61a)](_0x442a3a,_0x5a7b10))continue;_0x2ad15f[_0x54232d(0x7f5)]({'id':_0x442a3a,'cur':_0x3e2814});}if(_0x2ad15f[_0x54232d(0x5f6)]===0x0)return[];return await _0x59e977[_0x54232d(0x778)](async _0x6cde11=>{const _0x235075=_0x54232d;for(const {id:_0x87235d,cur:_0x2b139f}of _0x2ad15f){_0x6cde11[_0x235075(0x540)](_0x325571,_0x87235d,{..._0x2b139f,'expiresAt':_0x5a7b10+_0x37b461}),_0x6cde11[_0x235075(0x4dd)](_0x325571,_0x87235d,_0x37b461);}}),_0x2ad15f[_0x54232d(0x25e)](_0x27ce22=>_0x27ce22['id']);}[_0x10206f(0x61a)](_0x5e2796,_0x1a8dd3=Date['now']()){const _0x11e077=_0x10206f,_0x4215ed=this[_0x11e077(0x34e)]()[_0x11e077(0x6a9)](_0x325571,String(_0x5e2796));if(!_0x4215ed)return![];return _0x4215ed[_0x11e077(0x1f9)]-_0x1a8dd3>this[_0x11e077(0x384)];}async[_0x10206f(0xf1)](_0x46b32a,_0xa3b1d4){const _0x3967e8=_0x10206f,_0x2a874a=this[_0x3967e8(0x34e)](),_0x4ee8fc=_0x2a874a['get'](_0x325571,_0x46b32a);if(!_0x4ee8fc)return;await _0x2a874a[_0x3967e8(0x540)](_0x325571,_0x46b32a,{..._0x4ee8fc,'expiresAt':Date[_0x3967e8(0x55e)]()+_0xa3b1d4});}async[_0x10206f(0x70f)](_0x26e0fb,_0x3d1cb7,_0x400150){const _0x109fd3=_0x10206f,_0x57954f=this[_0x109fd3(0x34e)](),_0xcdd5b0=String(_0x26e0fb),_0x269636=_0x57954f['get'](_0x325571,_0xcdd5b0);if(!_0x269636)throw new Error(_0x109fd3(0x5c3)+_0xcdd5b0);const _0x1b70be=_0x221c30[_0x109fd3(0x504)]();return await _0x57954f[_0x109fd3(0x540)](_0x46d141,_0x1b70be,{'sessionId':_0xcdd5b0,'dataEnv':String(_0x269636[_0x109fd3(0x246)]),'type':String(_0x3d1cb7),'key':String(_0x400150)}),_0x1b70be;}async[_0x10206f(0x337)](_0x1ecc69,_0x3e1725,{retries:retries=0x8}={}){const _0xdc35fe=_0x10206f,_0x592dd4=this[_0xdc35fe(0x34e)]();for(let _0x33a1f7=0x0;;_0x33a1f7++){const _0x274a3d=_0x592dd4[_0xdc35fe(0x45e)](_0x325571,_0x1ecc69);if(!_0x274a3d)return null;const _0x54f947=_0x274a3d[_0xdc35fe(0x27a)],_0x57c59a=(Number[_0xdc35fe(0x43f)](_0x54f947[_0xdc35fe(0x28c)])?_0x54f947[_0xdc35fe(0x28c)]:0x0)+0x1,{sessionPatch:sessionPatch={},applyInterests:applyInterests=null}=_0x3e1725(_0x54f947,_0x592dd4)||{};try{return await _0x592dd4[_0xdc35fe(0x778)](async _0x272004=>{const _0x5a957b=_0xdc35fe;applyInterests?.(_0x272004),_0x272004[_0x5a957b(0x540)](_0x325571,_0x1ecc69,{..._0x54f947,...sessionPatch,'version':_0x57c59a},{'ifVersion':_0x274a3d[_0x5a957b(0x28c)]});}),_0x57c59a;}catch(_0x204d2d){if(_0x204d2d?.[_0xdc35fe(0x649)]===_0xdc35fe(0x21d)&&_0x33a1f7<retries)continue;throw _0x204d2d;}}}async[_0x10206f(0x58c)](_0x6c401b,{add:add=[],remove:remove=[]}={}){const _0x49afaa=_0x10206f,_0xb93f15=String(_0x6c401b);return this[_0x49afaa(0x337)](_0xb93f15,(_0x2c4a7c,_0x5430e1)=>{const _0x334c6b=_0x49afaa,_0x4d08c2=String(_0x2c4a7c[_0x334c6b(0x246)]),_0x376c76=new Set((remove||[])[_0x334c6b(0x25e)](_0x2b6777=>String(_0x2b6777[_0x334c6b(0x170)])+'\x00'+String(_0x2b6777[_0x334c6b(0x4fc)]))),_0x4c5477=[];if(_0x376c76[_0x334c6b(0x691)]>0x0)for(const {key:_0x5ed856,value:_0x310e22}of _0x5430e1[_0x334c6b(0x783)](_0x46d141,{})){if(!_0x310e22||_0x310e22['sessionId']!==_0xb93f15)continue;if(_0x376c76[_0x334c6b(0x43b)](_0x310e22[_0x334c6b(0x170)]+'\x00'+_0x310e22[_0x334c6b(0x4fc)]))_0x4c5477[_0x334c6b(0x7f5)](_0x5ed856);}const _0x14d62f=(add||[])[_0x334c6b(0x25e)](_0x5507bb=>({'id':_0x221c30[_0x334c6b(0x504)](),'type':String(_0x5507bb[_0x334c6b(0x170)]),'key':String(_0x5507bb[_0x334c6b(0x4fc)])}));return{'applyInterests':_0x304c5a=>{const _0x12aaa6=_0x334c6b;for(const _0x52a887 of _0x4c5477)_0x304c5a[_0x12aaa6(0x228)](_0x46d141,_0x52a887);for(const _0x436c84 of _0x14d62f)_0x304c5a[_0x12aaa6(0x540)](_0x46d141,_0x436c84['id'],{'sessionId':_0xb93f15,'dataEnv':_0x4d08c2,'type':_0x436c84[_0x12aaa6(0x170)],'key':_0x436c84[_0x12aaa6(0x4fc)]});}};});}async['setFilter'](_0x177751,_0x3e99df){const _0x21adb3=_0x10206f;_0x786a53(_0x3e99df);const _0xcabb35=String(_0x177751);return this[_0x21adb3(0x337)](_0xcabb35,()=>({'sessionPatch':{'filter':_0x3e99df??null}}));}async[_0x10206f(0x512)](_0x497722,_0x2c41b2,_0x1ae98c){const _0x25f275=_0x10206f,_0x1dea25=this[_0x25f275(0x34e)](),_0x4d4fc0=String(_0x497722),_0x469715=String(_0x2c41b2),_0x478ef6=String(_0x1ae98c),_0x12311e=[];for(const {key:_0x1aa704,value:_0x1e27be}of _0x1dea25['getRange'](_0x46d141,{})){if(_0x1e27be&&_0x1e27be['sessionId']===_0x4d4fc0&&_0x1e27be['type']===_0x469715&&_0x1e27be[_0x25f275(0x4fc)]===_0x478ef6)_0x12311e[_0x25f275(0x7f5)](_0x1aa704);}for(const _0x51a6b8 of _0x12311e)await _0x1dea25[_0x25f275(0x228)](_0x46d141,_0x51a6b8);return _0x12311e[_0x25f275(0x5f6)];}async['replaceInterests'](_0x2eb497,_0xf256b5){const _0x1c0e53=_0x10206f,_0x38cd1c=String(_0x2eb497);return this[_0x1c0e53(0x337)](_0x38cd1c,(_0x396b8d,_0x58c9b8)=>{const _0x269fb5=_0x1c0e53,_0xc6bd7=String(_0x396b8d[_0x269fb5(0x246)]),_0x272751=[];for(const {key:_0x579826,value:_0x1cc5a9}of _0x58c9b8[_0x269fb5(0x783)](_0x46d141,{})){if(_0x1cc5a9&&_0x1cc5a9[_0x269fb5(0x653)]===_0x38cd1c)_0x272751[_0x269fb5(0x7f5)](_0x579826);}const _0x425a99=(_0xf256b5||[])[_0x269fb5(0x25e)](_0x109205=>({'id':_0x221c30[_0x269fb5(0x504)](),'type':String(_0x109205[_0x269fb5(0x170)]),'key':String(_0x109205[_0x269fb5(0x4fc)])}));return{'applyInterests':_0x1e3d33=>{const _0x2809c8=_0x269fb5;for(const _0x4b8822 of _0x272751)_0x1e3d33[_0x2809c8(0x228)](_0x46d141,_0x4b8822);for(const _0x45d867 of _0x425a99)_0x1e3d33[_0x2809c8(0x540)](_0x46d141,_0x45d867['id'],{'sessionId':_0x38cd1c,'dataEnv':_0xc6bd7,'type':_0x45d867[_0x2809c8(0x170)],'key':_0x45d867['key']});}};});}['sessionsForKey'](_0x4b9dd7,_0xccbff5,_0x470123){const _0x3e19fa=_0x10206f,_0x44b0bf=this[_0x3e19fa(0x34e)](),_0x1053be=String(_0x4b9dd7),_0x45d11d=String(_0xccbff5),_0x4a0cd2=String(_0x470123),_0x4d15b9=new Set();for(const {value:_0x5592d4}of _0x44b0bf[_0x3e19fa(0x594)](_0x46d141,_0x1ac887,{'start':[_0x1053be,_0x45d11d,_0x4a0cd2],'end':[_0x1053be,_0x45d11d,_0x4a0cd2,'￿']})){if(_0x5592d4&&_0x5592d4['sessionId'])_0x4d15b9['add'](_0x5592d4[_0x3e19fa(0x653)]);}return[..._0x4d15b9];}[_0x10206f(0x62b)](_0x291e7d,_0x47dff3){const _0x175ee9=_0x10206f,_0x3e2169=this[_0x175ee9(0x34e)](),_0x4bf69f=String(_0x291e7d),_0x351ea4=String(_0x47dff3),_0x5b667c=[];for(const {value:_0x95adc3}of _0x3e2169[_0x175ee9(0x594)](_0x325571,_0xb34a71,{'start':[_0x4bf69f,_0x351ea4],'end':[_0x4bf69f,_0x351ea4,'\uffff']})){if(!_0x95adc3||_0x95adc3[_0x175ee9(0x246)]!==_0x4bf69f||_0x95adc3['type']!==_0x351ea4)continue;if(_0x95adc3[_0x175ee9(0x127)]==null)continue;_0x5b667c['push']({'sessionId':_0x95adc3[_0x175ee9(0x653)],'filter':_0x95adc3[_0x175ee9(0x127)],'version':Number['isFinite'](_0x95adc3[_0x175ee9(0x28c)])?_0x95adc3[_0x175ee9(0x28c)]:0x0});}return _0x5b667c;}async['sweepExpired'](){const _0x39ab16=_0x10206f;return this['_env']()[_0x39ab16(0x4d7)]();}}return okdbSubscriptionsStore[_0x10206f(0x73a)]=_0x4cc8e9,okdbSubscriptionsStore[_0x10206f(0x73a)]['SUB_ENV']=_0x39f787,okdbSubscriptionsStore[_0x10206f(0x73a)][_0x10206f(0x3e1)]=_0x325571,okdbSubscriptionsStore[_0x10206f(0x73a)][_0x10206f(0x2ac)]=_0x46d141,okdbSubscriptionsStore[_0x10206f(0x73a)][_0x10206f(0x450)]=_0x1ac887,okdbSubscriptionsStore['exports'][_0x10206f(0x39d)]=_0xb34a71,okdbSubscriptionsStore['exports'][_0x10206f(0x6b9)]=_0x27372d,okdbSubscriptionsStore[_0x10206f(0x73a)];}var version=_0x5186d4(0x493),require$$29={'version':version},okdbEnginesEnums,hasRequiredOkdbEnginesEnums;function _0x311a(){const _0x4e0548=['stack','createHash','(?:/(.*))?','processor:error','pid','_pdb','addInterest','OKDBSchemaValidationError','split','CREATED','ctxLog','granId','pauseJobType','callBatch','priority','servers','registerTemplate','ensureFeed','Feature\x20not\x20available\x20on\x20free\x20tier:\x20','$streamId','$or','abs','ensure','patch','setToken','waiting',':\x20not\x20implemented\x20in\x20the\x20native\x20build\x20yet','createBegin','apiCall','opts','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.','envName','_changeToClockDb','authOpen','_ttlByKey','_blobsDir',':emb:','_undoHooks','_nextExpiry','create','$options','cursorKey','_refIndexDb','_hlc','Engine\x20template\x20kind\x20must\x20be\x20\x22engine\x22\x20or\x20\x22pipeline\x22:\x20','_openEnvLazy','hasEmbedderFactory','resolveField','field\x20resolver\x20request\x20still\x20pending','exports','_clockToChangeDb','MCP_ERROR','ensure:\x20fts\x20entry\x20missing\x20name\x20or\x20fields','claim_id','idempotency_key','index:','\x20=\x20source[position++]\x0a\x09\x09\x09else\x0a\x09\x09\x09\x09return\x20fromCharCode(','$size','allowUnsafe','_running','stringify','stopAll','onDone','concat','_closedHandle','emit','OKDBInvalidPrimaryKeyError','sourceType','createLoginState','~system','processor:resumed','fromEntries','__blobStatusDb','job.idempotency_key\x20must\x20be\x20string|null','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.','queue:done','logCap','Blob\x20not\x20found:\x20','\x22\x20must\x20return\x20{\x20embed(input):\x20Promise<Float32Array>\x20}','worker','dirty','getBlobStatus','_workers','.\x20Primary\x20keys\x20must\x20be\x20string\x20or\x20number.\x20Got:\x20','STOPPING','_callRows','_subsV2','createWorker','setKick','Native','typeStats','_reconcileDesired','HIGH_SENTINEL','files.registerExtractor:\x20extractor\x20must\x20be\x20a\x20function','__esModule','_durableIndexerDocs','embedderCall','useReadTransaction','Engine\x20driver\x20already\x20registered:\x20\x22','claim\x20requires\x20non-empty\x20type','failed_ttl','listVectorStores','compactPending','endsWith','mkdirSync','write','_low','toFixed','awaitIdle','getResolvedOptions','$eq','txn','OKDBNotFoundError','catalog','bucket.updated\x20must\x20be\x20number','timeMachine','detachConsole','_stateDb','Invalid\x20index\x20key\x20type\x20for\x20\x27','dataView','INVALID_PRIMARY_KEY','removeEventListener','getRange','OKDBUniqueConstraintError','importJSON',':txnRange','changeEncryptionKey:\x20to','admin','dir','embedBatch','env','encryptionKey','attachConsole','Algorithm\x20factory\x20must\x20be\x20a\x20function','VIEW_BUILD_FAILED','processors','from','_processorStops','isRunning','~proc:state','setDeltaLimit','~queue_payloads','_normalizeOAuthAuthResult','getRunningEngine','_stops','scopedName','registerTarget','removeJobType','__fts:','isCoordinator','position','TYPE_ALREADY_REGISTERED','_begin','\x22\x20build\x20by\x20another\x20process\x20ended\x20\x22','$not','enqueue','mean','_attached','_debounceTimer',')\x20+\x20readString(source)}','resume','11995533PhwvtU','getSchema','viewOp','engine\x20api\x20has\x20no\x20method\x20\x27','msgpackr','Embedder\x20factory\x20must\x20be\x20a\x20function','hasBody','fts','retryable','field:resolver_registered','claimGated','_blobStream','\x20actions=','__warned','_unknownOptionsWarned','use','maxDbs','limit','ttl','_feed','stats','_closed','stateNames','read','job.finished\x20must\x20be\x20number|null','clearAsync','ENGINE_INVALID_DRIVER','level','runtimeDeclarations','_peerDb','WORKER','backup','_ensure','getLegacyCursor','privateKey','_inlineClosureWarned','Map','_store','listBlobStatus','(?:','hasType','data','links','getStatus','address','importFromFile','changeToClockDb','description','remote','busEmit','relay','newListener','removeEnvironment','committed','unpack','setTtl','registerEmbedderFactory','done_ttl','ttlState','authorization','readField','_cursors','(worst\x20','next','recomputeFields','_macro','$within','sync:apply','(source)\x20=>\x20{','status_code','max','applyOps','fail','exists','txn:rollback','push','isOpenForIp','_lookupAllByName','lookupByTokenHash','_blobPath','\x20dropped\x20(buffer\x20full)','taken','tokens','job_type.defaults\x20must\x20be\x20object|null','sseClose','_wsettle','_pendingLocal','_clearChunked','warn','_locks','$exists','shouldApplyChange','patchSelf','QUEUE_WORKER_REMOVED','proc','tryAcquire','RangeError','replace','resolveField:\x20type\x20required','tag\x20too\x20long','clearDone','iterate','getDefaultTTL','record','BAD_HOST','maxBodyBytes','keys','getIndexCount','embedder\x20is\x20gone','prepareTxnEnqueue','_license','_changefeed','bootSyncedViewsInline','getEmbedderSchema','job.error_stack\x20must\x20be\x20string|null','reverse','txn-commit','state','job.status_message\x20must\x20be\x20string|null','schema:drop','_registrations','listTTL','nodeKey','ENCRYPTION_KEY_REQUIRED','job\x20type\x20must\x20be\x20object','indexReady','error','_tids','bucket\x20id\x20required','okdb.http.listen(port)\x20in\x20each\x20worker.','itemsGroups','DOC_STATUS_CHANGE','embeddings','setModeApplied','openDB','child','_blobStatusDb','__peers','registerHandler:\x20name\x20must\x20be\x20a\x20non-empty\x20string','items','message','view:progress','__lock','max_concurrency','~queue_logs','refill_every','uninstallEngine','makeOkdb','_syncExpiresAtField','okdb-node:\x20unknown\x20bridge\x20op\x20','_enableChangelog','process','hash','_settleRead','processEverything()','EMBEDDER','runDrop','item:create','IPv4','regInfo','listJobTypes','_tickCallback','_onFeedChange','3715689PgcEQj','retry_delay','chunk\x20strategy\x20must\x20be\x20a\x20function','registerHandler:\x20fn\x20must\x20be\x20a\x20function','embeddings:indexer:doc:failed','reidentify','typeId','getPeerAcks','abort','_isOpen','readKey','startAutoCompactCheck','Can\x20not\x20serialize\x20key\x20of\x20type\x20','cookies','reduce','engines','$ne','handleDurableClock','FTS_FLUSH_TIMEOUT','setProcessingConfig',';\x20got\x20','api','license:activated','_getRaw','last','groupsDb','_nodePrivateKey','admission','resolveField:\x20resolver\x20must\x20be\x20a\x20function','queue.worker(\x27','hybridQuery','FIELD_RESOLVER_PENDING','lastClock','VIEW_REBUILD_IN_PROGRESS','capacity','bucket\x20\x22','returnRecoverableErrors','drop','_envs','filter','intervalTimer','Referenced\x20key\x20\x27','Version\x20mismatch\x20for\x20','getBucket','storeGetDiffsInRange','run','targetType','_okdbAdminAttached','setEncryptionKey','throw','default','BAD_EMBEDDER_FACTORY','Expected\x20catch\x20callback\x20to\x20be\x20a\x20function','asArray','must\x20be\x20an\x20object;\x20got\x20null','stateInfo','embeddings:pipeline:ready','getKeys','_isReader','durableMarkDone','hasIndex','\x22\x20not\x20found','_isBootstrap','_ackDb','job_type.id\x20must\x20be\x20non-empty\x20string','fetchRemoteDelta','emb','job.retry_delay\x20must\x20be\x20int\x20>=\x200','cleanup','port','keyFor','\x20must\x20be\x20','pipeline','inspect','bootSyncedViews','_report','select','describeAllTypes','encoder','durableClock','_enqueueInTxn','root','byteOffset','readerCheckIntervalMs','ensure:\x20type\x20is\x20required','storage\x20adapter\x20is\x20gone','_subsV2Obj','_ensureEnv','_handles','_rebuilding','_ensureTypeEnv','total','no_action','_put','Type\x20\x27','actionCount','_envSyncStop','__absent','_sinks','_np','properties','gateQuanta','engine:','applyChange','3480468FTZvJi','__ttlByExpiry','_txnIdAtSnapshot','flatMap','build','setStorageResolver','bucket_tokens','iterator','type','busState','_dupArg','freeze','getSecurityNotices','createQueryTester','setInt32','loop-lag\x20','autoCompactTimerArmed','regObject','syncBlobs','\x27\x20does\x20not\x20exist\x20in\x20type\x20\x27','role','fromCharCode','boolean','call','Blob\x20missing\x20for\x20file:\x20','listIndexKeys','job.cron\x20must\x20be\x20string|null','addBucket','Cannot\x20register\x20plugins\x20after\x20start','_subscribed','partially-ready','findOwner','_rawTxnBuf','req','dropAll','fts:drop','getClock','job_type.payload_schema.definition\x20must\x20be\x20object','clearSync','_started','INVALID_STATE','forEach','some','ttl:clear','nativeCode','setLogger','registerViewReducer','\x20document(s)\x20reference\x20it\x20with\x20onDelete:restrict','drainJobType','when','listening','lookupByName','rebuildBegin','formerIds','utf8','dropFts','Engine\x20template\x20must\x20be\x20a\x20plain\x20object','node:cluster','INDEXER','7bjbzdl','$where','enableNullTermination','bus:poke','importFromStream','unknown\x20promise\x20token','txn\x20ops\x20must\x20be\x20an\x20array','processor','isSetupMode','invalid\x20job_type.status:\x20','flushed','setAddress','TXN_START','toBufferKey','subsBuilt','pushEphemeral','token','usedBy','startNewEnginesFromSync','isTypeEmpty','job.id\x20must\x20be\x20string','gc.',';return\x20{','\x27\x20did\x20not\x20return\x20a\x20valid\x20instance','offset','meanwhile\x20—\x20the\x20frozen\x20view\x20cannot\x20be\x20kept.\x20Materialize\x20synchronously\x20(e.g.\x20Array.from)\x20','getPrototypeOf','slice','_hybridQuery','byLabel','EMBED_PENDING','patchDeclaration','server','near','finish','getRaw','floor','Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results','indexer','limits','SYSTEM_CLOCK_CHANGE','getFast','Invalid\x20primary\x20key\x20type:\x20','STARTED','once','~engines','Too\x20many\x20concurrent\x20connections','aborted','ref','_typeKeys','_pendingOps','job.claim_id\x20must\x20be\x20string|null','json','_lockHandle','_rebuild','there\x20is\x20no\x20`http`\x20option\x20—\x20the\x20HTTP\x20server\x20exists\x20only\x20when\x20db.http.listen(port)\x20is\x20called','ingest','processor:\x20quantum.module\x20must\x20be\x20a\x20string','a\x20string','stopAutoCompactCheck','send','_pumper','_wrap','queue:enqueued','jsonrpcCode','getFloat64','$gte','_tx','_baselines','functions','getJobLogs','routes','describeTypeDetailed','Missing\x20plugin:\x20','_settle','txn\x20op\x20must\x20be\x20an\x20object\x20or\x20tuple','licenses','durableRetryDoc','getRun','$near','metaDb','removes','sha256','okdb-node:\x20unknown\x20callback\x20id\x20','export','createEmbedder','expiresAt','payload_schema','handleError','ceil','durableTierLag','compactStorage','OKDBTypeAlreadyRegisteredError','_autoCompact',':\x20unknown\x20option\x20\x27','end','durableWorkerStats','files','item:pending','getIndex','fingerprint','setSchema','bootLogMark','autoCompactState','_busFacade','_closeReadTransaction','okdb.noFast','attachOKDB','getStateAt','\x22\x20was\x20removed\x20while\x20it\x20was\x20being\x20built','/?$','immediate','bucket.refill_amount\x20must\x20be\x20int\x20>=\x200','_localViewApi','reducer','_keyListener','bulkRemoveChunk','quarantinedEnvs','clocks','bigint','onWindow','whenSettled','VERSION_MISMATCH','timer','log\x20entry\x20must\x20be\x20a\x20string\x20or\x20object','system:env_release','envsWithFiles','statusOpen','ENGINE_INVALID_TEMPLATE','_create','oauth','sparse','set','remove','getAll','childTransaction','_timerHandle','failures','isWellFormed','files\x20feature\x20not\x20available','writeBlob','clearScan','startClaimed','getChanges','_keepAlive','processor:\x20cannot\x20combine\x20a\x20closure\x20handler\x20with\x20module:{path,export}.\x20','queue:removed','attachFeed','describeChunk','NOT_FOUND','HTTP_CLUSTER_REMOVED','timeoutMs','clearTtl','\x22\x20requires\x20a\x20`handler`\x20function','preparer\x20must\x20be\x20a\x20function','useReadTransaction\x20read\x20view\x20expired:\x20the\x20snapshot\x20was\x20released\x20at\x20the\x20first\x20await/turn\x20','log','OKDB','references','setWake','listen','rollback','_write','dataEnv','socket','system:type_drop','getMany','ctxSignal','_doHooks','isWriter','getBinary','clone','_startAutoCompactCheck','dirname','getRecord','_quantum','forceResync','dropped','extend','_tools','_ttlState','okdb-','parseBearer','_db','trim','log\x20entry\x20fields\x20too\x20large\x20(>2KB\x20serialized)','plugins','map','node:fs','job.','batch','pin','setPosition(p)\x20{\x20position\x20=\x20p\x20},','job','refs','_deliverEvent','index:reset','PLUGIN_DEPENDENCY_MISSING','$in','isLoopbackIp','flushTicket','indexOf','processor:\x20module\x20\x27','status','Foreign\x20key\x20violation:\x20','_onItem','started','~ttl:expiry','ringSize','destroy','__sync:acks','preview','puts','ITEM_REMOVE','~file:blob_status','value','setClaimGated','itemsDb','typesDb','setPeerState','\x27\x20is\x20already\x20registered','return','getSelfNode','\x20documents\x20fail\x20validation','buckets','fields','remoteAddress','$type','noteListenAddr','dbs','TXN_CLOSED','_windowCbs','staticCall','version','startBegin','isArray','written','views','processor:\x20specify\x20exactly\x20one\x20of\x20handler:\x27<name>\x27\x20or\x20module:{path,export},\x20not\x20both','_timerObjs','_rootDb','license:added','job_type.','getSession','item:remove','_wb','restrict','vectorStoreStats','_settleWrite','queue:rescheduled','markJobHeartbeat','bridge','\x20ms','__ttlCancelledGen','_scheduleTTLSweep','listModels','building','sourceKey','listRecords','ONLINE','addSSE','_set','enableAll','trunc','view','T_INTEREST','clearFailed','_dedupeMax','values','.\x20Only\x20primitives,\x20null,\x20Buffers,\x20and\x20arrays\x20are\x20allowed.\x20Got:\x20','exportToStream','query','index:progress','validateBlobIntegrity','subscribe','getMeta','_formerOrigins','REBUILD_IN_PROGRESS','events',':keyToChange','restart','allocUnsafeSlow','finished','equal','_nodePublicKey','_setKey','\x20must\x20be\x20a\x20non-empty\x20string;\x20got\x20','_getPeerState','PUT','patchConfig','snapshotScan','_warnUnknownOptions','free','tools','cause','interest','createIndexer','job.backoff_multiplier\x20must\x20be\x20number\x20>=\x201','OKDBIndexHasConsumersError','_durableEmbedderInfo','inputSchema','cascade','registerHandler','localViewNames','bootRuntime','exportName','/([^/]+)','__cmd','$pending','array','\x27\x20doesn\x27t\x20exist','config','embeddings:embed:settled','enforced','durableCursorFloor','blobsDir','_viewState','_staticCall','compareKeys','Cannot\x20openEnv(\x22','Storage\x20resolver\x20must\x20be\x20a\x20function','storeGetTotalHeadCount','bucket','__okdb','stopView','paused','_logChange',':data','__desired','markSnapshotComplete','set_null','reason','ALL_EVENTS','_listeners','engineStart','job_type.defaults.buckets\x20must\x20be\x20array|null','bucket.capacity\x20must\x20be\x20int\x20>=\x200','isSync','onDo','~sub','claim_expires','registerChunkStrategy','INDEXER_DOC_QUEUED','handle','drivers','catch','_admissionStarted','setNative','_assertOpen','runGc','job_type.defaults.','normalizeOAuthAuthResult','addrs','time-machine:','_detachLog','headers','registerQuantum:\x20name\x20must\x20be\x20a\x20non-empty\x20string','options','processorsStop','label','queue','failed','isFeatureEnabled','open','_kbuf','percentile','offsetOf','prefetch','registerPreparer','params','validateRouteInput','transaction','reject','dropIndex','_drainOne','getMaxBodyBytes','afterTurn','TXN_INVALID_OP','UNKNOWN_RANGE_OPTION','processorsStatus','tags\x20must\x20be\x20array\x20or\x20string','blobPath','empty\x20string','getIndexStatus','subscriptions','ALREADY_EXISTS','clearDefaultTTL','_release','readTransaction','hlc','_sweepInProgress','tryClaimTokens','_update','BAD_PARAM','delete','customReducerNames','_writer','resetReadTxn','OKDBNotImplementedNativeError','_allEnvsWithFiles','_isWriter','kick','types','process()\x20entry\x20\x22','_commitSessionMutation','_callMacro','\x0a\x09\x09let\x20','item:','taken-over','bucket\x20too\x20long','vecRemove','stopping','search','_setTTL','attach','upload','OKDBForeignKeyError','appendJobLog','ExtendedIterable','type:',']\x20already\x20maps\x20to\x20\x27','status_message','unreg','active','createPublicKey','resumeOpts','action','_env','getCount','mcp','getNodeRecord','changes','_ts','embedder\x20request\x20still\x20pending','indexContent','_pressure','setLogSink','assertStartAllowed','isActive','pipelines','removeSync','process(entries)\x20requires\x20at\x20least\x20one\x20entry','markJobProgress','Error','_ttlBackoffUntil','namespace','VECTOR_SEARCH_READY_TIMEOUT','~ttl:key','pendingResponses','sync','_bootLog','OKDBProcessor','_build','processorsStart','pressure','release','apply','_resolveFilter','_id','HIGH_FREQ_EVENTS','job\x20id\x20required','_detachConsole','REMOVE','readHashRange','sweepOrphanLogs','_settleWaiters','schema','__stateDb','startsWith','\x20returned\x20no\x20key','getStats','callRows:\x20unexpected\x20row\x20stride\x20','$lte','update','pump','envNames','buildPending','\x27\x20export\x20\x27','autoCompact','iterable','okdb._openEnvLazy:\x20env\x20\x22','refreshThresholdMs','log\x20entry\x20fields\x20must\x20be\x20object|null','sort','syncLock','resumeAllAfterDrain','listFtsEnvs','ttlMs','targetKey','_asArray','_makePipelineApi','_teardownNative','resolveData','embeddings:indexer:flushed','maxConnections','forceAfterMs',':\x20key\x20[','_timer','queue:reconciled','inline','name','\x22\x20is\x20not\x20registered','tolerant','ensurePeerState','online','_getType','SESSION_TYPE_INDEX','sections','~processes:desired','error_stack','assertCreateAllowed','byteLength','application/octet-stream','clock','Array.from)\x20before\x20any\x20await.','Plugin\x20\x27','_ttlParseComposite','removeJobTypeSchema','job.buckets[].tokens\x20must\x20be\x20int\x20>=\x201','INVALID_ARGUMENT','disable','node:crypto','symbol','getUniqueViolation','maxMs','_openLocalPeerDb','callAsync','docEntry','_emitProc','FOREIGN_KEY_VIOLATION','env:opened','hasUniqueViolations','_setTTLEntry','http.listen({workers/makeOkdb/primaryOkdb})\x20is\x20no\x20longer\x20supported\x20in\x20the\x20','License\x20limit\x20exceeded:\x20','ms\x20p99=',':index','getCursor','INVALID_TYPE_NAME','KNOWN_OPTIONS','ENGINE_DRIVER_MISSING_START','err','process(filter)','TXN_ROLLBACK','[log-sink]\x20','range','_jsSchemas','sortedDb','resetCursor','isBuffer','MAX_SAFE_INTEGER','durableEmbedderInfo','type:drop','removeJob','tag','close','refTrackingDbs','txnDone','_clearTTL','maxExtra','_gcTimer','OKDBInvalidValueError','shift','charCodeAt','stopped','null','ttl:set','ttlStats','writerStatus','_makeIterator','removeBucket','~log','system:poke','dropType','T_SESSION','draining','_patch','allSettled','settledTickets','limitOf','_txnBuf','listRefViolations','node','registerReducer','assign','evict','defaults','BAD_PLUGIN','features','fetchJson','event','getUniqueViolations','processor:progress','_resolveKeys','\x27\x20conflicts\x20with\x20existing\x20OKDB\x20property','durableMarkFail','pinned\x20range\x20iterator\x20held\x20across\x20an\x20await/turn\x20boundary.\x20This\x20surface\x20cannot\x20resume\x20','endIndex','auth','hasEnv','exclusiveStart','wait','engine','OKDBIndexAlreadyRegisteredError','_cancelTTLTimeout','consumeLoginState','dropSchema','SYSTEM_STOPPED','payload','15181122ykSpGv','continueOnRecoverableError','http.listen:\x20host\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20a\x20non-empty\x20array\x20of\x20non-empty\x20strings','checkSignals','isHeld','isInteger','setPrototypeOf','backupRoot','_detachLogSink','\x27:\x20','Date','_push','\x20which\x20does\x20not\x20exist','isIndex','resetIndexBegin','Engine\x20driver\x20for\x20\x22','listRuns','stop','Type\x20\x22','selfKey','resetIndexFinish','_oauthConfig','refill_amount','_isClosedEnvError','path','continueIteration','addJobType','_ack','listViolations','turns','flushTimeoutError','creating','pumping','OKDBError','countByIndex','listProviders','for','host','nativeBinaryPath','quantum','listPeers','embedderNew','File\x20not\x20found:\x20','job_type.defaults.backoff_multiplier\x20must\x20be\x20number\x20>=\x201\x20or\x20null','hasNativeBatch','createEnvironment','_range','algorithm\x20is\x20gone','\x27\x20already\x20registered','vec:','INDEXER_DOC_FAILED','importBuf','queue:clear-done','VIEW_BOOTSTRAP_CANCELLED','Transaction\x20already\x20closed','has','_OPTION_HINTS','_stopFor','_noChangelog','isFinite','readFieldMany','turn','recordPeerAck','processor:retry','enforce','orchestrator','Index\x20\x27','new','$all','compact/repair\x20already\x20in\x20progress\x20for\x20this\x20environment','getVector','__ttlByKey','setReadBuffer','kind','flushDebounce','lastTxnId','REVERSE_INDEX','6419760TQsHCI','\x27\x20at\x20','inNativeCall','_sub','_onPoke','__syncOverride','existing','~processes:cmd','previewTemplate','hasChangelog','okdb_session','_run','isWanted','getEntry','resetViewBegin','repair','createEngine','resolveModelDims','_call','registerExtractor','pending','write\x20batch:\x20missing\x20result','exportEnvsToStream','locks','peers','signalWant','bucket.tokens\x20cannot\x20exceed\x20capacity','ensureTokensType','feed:','_facade','Database\x20not\x20started','nidFor','created','heartbeat','der','_syncLock','processes','sseSetHeader','_flushTimer','\x22\x20not\x20found\x20in\x20~envs','HTTP\x20server\x20already\x20running','markJobComplete','DONE','outgoing','OKDBTypeNotRegisteredError','addEventListener','ready','\x22\x20tokens\x20too\x20large','releaseClaim','resetting','native','$regex','stopHandle','_ttlTimeout','_logsDb','getIndexMeta','timestamp','string','existsSync','describeAllTypesDetailed','\x20(required\x20by\x20',',\x20source)\x0a\x09\x09}\x20else\x20{\x0a\x09\x09\x09if\x20(','formerOrigins','_defaultEnv','Engine\x20driver\x20type\x20must\x20be\x20a\x20non-empty\x20string','recordRun','3.2.1','ctxEmit','true','STOPPED','_lookupByName','listTypes','takeBuildResult','_readBuf','storage\x20adapter\x20has\x20no\x20method\x20','dupSort','_lazyPinned','grouped','fieldPath','relay:error','spec','defineProperty','_blobStatusTxn','vector\x20search\x20\x22','SCHEMA_VALIDATION_FAILED','compaction','register','_features','6vMBSra','reencrypt','__ref_index','geoConfig','_ensureDbs','_remove','$payload','isDeepStrictEqual','resolveBackupDest','vector-search','_awaitBuild','authenticated','min','match','join','\x20log\x20entr','Can\x20not\x20serialize\x20async\x20iterables\x20without\x20first\x20calling\x20resolving\x20asArray','registerBucketProjection','stderr','FTS_BUILD_CONTINUE','isWorker','MAXIMUM_KEY','durableEngineDoc','subscriptions-store:\x20open()\x20not\x20called','embeddings:strategy:registered','bus:proc','cancelJob','job.type\x20must\x20be\x20non-empty\x20string','hasOwnProperty','\x22\x20is\x20not\x20allowed\x20(it\x20evaluates\x20code);\x20use\x20declarative\x20operators\x20instead','resolution','removeLink','scheduled','setHostPlugins','_adminRelay','_isExpired','durableRebuild','reconcilePeer','details','_ensureTokensType','system:stopped','upsertLink','summary','rebuild','_sync','install','sweepExpiredTTL','readerCheck','done','searchDocs','_keyFns','samplePayloads','setTTL','node:http','system','reconcile','_onStop','feature','describeType','node:path','flushMaxWait','dropping','buildStep','Unknown\x20transaction\x20action:\x20','issueToken','embed','meta','Database\x20already\x20opened/closed','buildsPending','workerState','resolve','createSearch','_validateOidcAccessToken','ensureType','ctxHeartbeat','~queue_buckets','indexStats','head','setMaxListeners','lockHeld','_handleInProcess','getJob','doesExist','key','_advanceHlcOnRecv','resetView','cron','putSync','$elemMatch','TYPE_NOT_REGISTERED','system:drain','randomUUID','\x27\x20on\x20type\x20\x27','change','_nm','job_type.defaults.max_tries\x20must\x20be\x20int\x20>=\x201\x20or\x20null','utf8Write','resolveField:\x20a\x20resolver\x20or\x20options.batch\x20is\x20required','Engine\x20template\x20id\x20must\x20be\x20a\x20non-empty\x20string','prototype','nextTurn','process\x20options.admission\x20must\x20be\x20a\x20function','sseSend',')\x0a\x09\x09}\x0a\x09\x09','shutdownTimeout','removeInterest','listIndexes','ITEM_UPDATE','transactionSync','fts:reset','detachFeed','ITEM_CREATE','detach','_buf','_subscribeEvent','created_at','acquiredAt','number','processor:\x20rebuild\x20must\x20be\x20a\x20function','LICENSE_LIMIT_EXCEEDED','_plugins','_admissionTimer','storeEnvName','_listenAddr','getEmbedderFactory','note','drain','_compactLock','PLUGIN_NAME_CONFLICT','valuesForKey','retryFailed','addRaw','captureStackTrace','_makeLazyVectorAdapter','bootstrapStartClock','importBlobs','pokeHandler','progressed','reconcileDesired','_lock','_getFast','signal','unpin','resolveField:\x20options.batchSize\x20must\x20be\x20a\x20positive\x20integer','spki','job_type.payload_schema\x20must\x20be\x20object|null','inBatch','itemsPlan','turnWaiters','unresolveField','workers','put','docs','records','compare','isOrchestrator','resetIndex','_settled','_modeApplied','registerDriver','Cannot\x20delete\x20','_callPacked','context','toMs','before\x20any\x20await\x20—\x20or\x20opt\x20into\x20useReadTransaction:\x27tolerant\x27\x20to\x20keep\x20reading\x20while\x20','_deliver','lastError','WriteBatch','guardSnapshotIterable','unique','getTypeCount','killAll','job.claim_expires\x20must\x20be\x20number|null','markJobFail','env:removed','stopWorkerBegin','geoQuery','_refCache','~lock','10Tpioaf','system:proc','now','migrate','_log','max_tries','_logEnv','resolveField:\x20options.batch\x20must\x20be\x20a\x20function','\x20│\x20','pause','getAuthOptions','encryption\x20key\x20function','10ALZhjk','callPacked','ies','queue-worker','_sweepOrphanLogs','txnUndone','inflight','unregisterExtractor','TXN_ENV_MISMATCH',':useReadTransaction','isReader','CHANGEFEED_QUANTUM','bus','Buffer','get','getOpenWarning','STARTING','guard','setLastClock','enabled','object','authenticateToken','instance','algorithm\x20has\x20no\x20method\x20','unref','db.processors.','tags','-----BEGIN\x20PUBLIC\x20KEY-----\x0aMCowBQYDK2VwAyEAacrkExPrhxNVHyeQBLDwg8xfm1OwyxDAPNdGXABYS2s=\x0a-----END\x20PUBLIC\x20KEY-----','ENGINE_DRIVER_ALREADY_REGISTERED','stream','OKDBInvalidIndexKeyError','backoff_multiplier','balanced','_initialize','find','wake','applyInterestDelta','_listening','\x22\x20on\x20\x22','connected','_statusEnv','entries','engineType','an\x20environment\x20name','byIndex','resolvedFields','_ttlByExpiry','listTemplates','$defs','_getOidcDiscovery','IPv6','debug','typeSubDbs','loaded','Symbol.asyncIterator','unregisterTarget','ftsQuery','_ensureDesired','areIndexesReady','$lt','_retryPending','pinned\x20range\x20iterator\x20parked\x20across\x20an\x20await/turn\x20boundary\x20and\x20the\x20env\x20was\x20written\x20','registerQuantum:\x20load\x20must\x20be\x20a\x20function','_listPeers','function','processorHold','bucket.refill_every\x20must\x20be\x20int\x20>=\x200','handler','target','registerIndexDeferred','isOAuthEmailAllowed','chunks','nodeKeys','_ttlTimerAt','list','_seen','_isLoopbackIp','add','ttlSetEntry','ctrl','pinned','job_type.max_concurrency\x20must\x20be\x20int\x20>=\x201\x20or\x20null','READER_HELD_ACROSS_AWAIT','registerType','toJSON','delta_limit','prefix','ERROR','isSnapshotComplete','_drain','_onPending','subscriptions-store:\x20addInterest\x20on\x20unknown\x20session\x20','setClaiming','_envIndexDb','removeJobLogsAfterCommit','listBuckets','mapError','materialize\x20them\x20(Array.from)\x20while\x20the\x20view\x20is\x20live.','_meta','streamRead','_cmd','enqueue\x20txn\x20belongs\x20to\x20a\x20different\x20environment','starting','txn:start','streamClose','lastIndexOf','_runRecord','encryptionKeys','listPath','writerWatchdog','tierList','_assertRangeOptions','snapshot','definition','processor:\x20module.path\x20is\x20required','ITEM_PENDING','DEFAULT_EVENTS','_startClaimedSoon','\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.','okdb','assertQueryOptions','sift','_info','_maxConnections','compact','let\x20position;\x20let\x20readString\x20=\x20','dup','debounceTimer','_flushDebounce','BAD_ALGORITHM_FACTORY','_waitNative','then','getValues','durability','driver','exportToFile','_ensureVectorStore','calculateDelta','ms\x20max=','compactLock','_handlePending','doc_status:','length','registerModel','_assertFiles','pipelineFamily','$ref','system:ready','FOREIGN_KEY_DELETE_RESTRICTED','_typesDb','retry','actions','running','engineStop','getByPrefix','callRows','logCap\x20must\x20be\x20null\x20or\x20integer\x20in\x20[','embedder','_jsFactories','defaultTTL','pumpEnvSync','OKDBSchemaCollectionError','searchWithScores','_key','Index\x20\x22','98208DklLeQ','streamByHash','clearTTL','bootSyncedEngines','group','a\x2032-character\x20key\x20or\x20a\x20function\x20returning\x20one','stor','exportBlobs','_uid','durableMarkDelete','_pokeListener','__adminRelay','reencrypt:\x20env','_isFar','TypeError','SCHEMA_COLLECTION_INVALID','includes','setCursor','test','_buckets','~files','timerArmed','claimed','tries','vector','reset','index:registered','INDEX_PROGRESS','561736lXjrzG','uninstall','filterSessionsForType','primaryOkdb','pauseAllAndDrain','clearStuck','compression','_buffer','getTemplate','bind','\x20>=\x200x80)\x20','drainDeadlineMs','clear','WORKERS_REMOVED','bus:type_drop','offWindow','\x20does\x20not\x20exist','_native','registerAlgorithmFactory','_clockListener','async','envSize','load','storeGetHeadCount','getOidcDiscovery','a\x20non-empty\x20string','index:ready','raw','describeIndex','_root','(no\x20unambiguous\x20bookmark)\x20—\x20consume\x20it\x20in\x20one\x20synchronous\x20block:\x20materialize\x20(e.g.\x20','_http','code','useVersions','onLicenseExpired','storageStats','embed-worker','_indexBuild','createWriteFacade','count','unique:violation','updateJob','sessionId','MINIMUM_KEY','Schema\x20validation\x20failed\x20for\x20','HTTP\x20','asyncIterator','setUint32','OKDBForeignKeyDeleteError','__HOLD__','buffer','fetchPeer','updated','QUERY_OPERATOR_FORBIDDEN','setDefaultTTL','bus:drain','removeResolver','bucket.id\x20must\x20be\x20non-empty\x20string','ttlTimer','queue:failed','FTS_READY_TIMEOUT','mapSize','mode','listAlgorithms','registerQuantum','import','setBridge','resumed','\x22\x20must\x20have\x20a\x20start()\x20method','runtimeState','loginSelect','getJobType','OKDBVersionMismatchError','__logsDb','undefined','installed','non-empty\x20string','enable','job.tries\x20must\x20be\x20non-negative\x20int','login','off','index','_readerCheckInterval','gcOrphanedBlobs','localViewStats','http','tick','OKDBIndexNotRegisteredError','setCurrentDb','getDefinition','onUndo','_lookupByTokenHash','runRecord','commit','toISOString','kickOwnedBy','~emb:models','UNIQUE_CONSTRAINT','\x20of\x20env\x20\x22','errors','_connections','writeKey','_ringSize','createAndStartEngine','size','_awaitPeerBuild','connectionCount','listLinks','isType','resumeJobType','standalone','_draining','lmdb','\x20must\x20be\x20number','_status','bootSyncedPipelines','_defaultEnvObj','body','getInt32','publicKey','notes','before\x20any\x20await,\x20chunk\x20with\x20{limit,\x20start,\x20exclusiveStart},\x20or\x20drop\x20snapshot:true.','setKeyBuffer','compactBegin','system:env-sync','~queue_jobs','_markSeen','session','getTTL','_dedupeKey','repairBlobRefs','dims','flushPoll','start','_desired','header','nextTick','job.buckets\x20must\x20be\x20array|null','holder','disableAll','getRefViolation','envs','info','_systemEnv','DEFAULT_TTL_MS','constructor','Unique\x20constraint\x20violated\x20on\x20','listRoutes','registerFts','processor:paused','job.priority\x20must\x20be\x20int','gen','each\x20process()\x20entry\x20requires\x20a\x20non-empty\x20`type`','bumpVersion','getGcHorizon','getHistory','refreshReadTxn','diag','OKDBAlreadyExistsError','setJobTypeSchema','job_type.defaults.ttl\x20must\x20be\x20int\x20>=\x200\x20or\x20null','openEnv','Query\x20operator\x20\x22','ctxUpdateStatus','parse','lock','job.max_tries\x20must\x20be\x20int\x20>=\x201,\x20null\x20(unlimited)\x20or\x20Infinity','released\x20at\x20the\x20first\x20await/turn\x20boundary.\x20Consume\x20ranges\x20before\x20any\x20await,\x20or\x20','bootRuntimeDeclarations','NOT_IMPLEMENTED_NATIVE','_emit','String\x20does\x20not\x20fit\x20in\x20target\x20buffer','retryJob','embeddings:doc:status_change','SKIP','ttl:expired','hasApi','completeJob','startIndex','_pending','use\x20engines.registerDriver()','reducers','_readViewExpired','embeddings:indexer:doc:done','_addr','getViolation','flush','_licenseInterval','forgetDb','view\x20\x22','emitProc','createdBy','transaction\x20commit\x20failed','updated_at','_ttlCompositeKey','loadedPath','doc','claim','ref:violation','flushQuantum','embeddings:indexer:ready','health','_scheduleFlush','Use\x20module:{path,export}\x20alone,\x20or\x20handler:\x27<name>\x27\x20for\x20a\x20built-in.','onDelete','module','isNaN','isBun','reg','\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','TXN_INVALID_ACTION','_read','setMode','hook','_afterDurable','bus:env_release','materializer','\x20=\x20finishUtf8(','registerIndex','invalid\x20log\x20level:\x20','_indexBuilds','_rbuf','rows','createPipeline'];_0x311a=function(){return _0x4e0548;};return _0x311a();}function requireOkdbEnginesEnums(){const _0x144c04=_0x5186d4;if(hasRequiredOkdbEnginesEnums)return okdbEnginesEnums;hasRequiredOkdbEnginesEnums=0x1;const _0x1bf959=_0x144c04(0x1d0),_0x1ff1f9=0xa,_0x42ba6b=Object[_0x144c04(0x173)]({'CREATED':_0x144c04(0x471),'ONLINE':_0x144c04(0x39b),'STOPPED':_0x144c04(0x3d7),'INACTIVE':'inactive','ERROR':'error','REMOVED':'removed'}),_0x414a71=Object[_0x144c04(0x173)]({'STARTED':_0x144c04(0x271),'STOPPED':_0x144c04(0x3d7),'ERROR':_0x144c04(0xdb),'INSTALLED':_0x144c04(0x674),'UNINSTALLED':'uninstalled'}),_0x2271a9=Object[_0x144c04(0x173)](new Set([_0x42ba6b[_0x144c04(0x2a6)],_0x42ba6b[_0x144c04(0x496)],_0x42ba6b['INACTIVE'],_0x42ba6b[_0x144c04(0x5bf)]]));function _0x366235(_0x388ef0){const _0x79dc9=_0x144c04;return _0x388ef0?.[_0x79dc9(0x57b)]===![]?_0x42ba6b[_0x79dc9(0x496)]:_0x79dc9(0x7da);}return okdbEnginesEnums={'TYPE_ENGINES':_0x1bf959,'MAX_UPDATE_RETRIES':_0x1ff1f9,'ENGINE_STATUS':_0x42ba6b,'ENGINE_EVENTS':_0x414a71,'UPDATABLE_STATUSES':_0x2271a9,'durableOnlyEngineState':_0x366235},okdbEnginesEnums;}var enums,hasRequiredEnums;function requireEnums(){const _0xaf30=_0x5186d4;if(hasRequiredEnums)return enums;hasRequiredEnums=0x1;const _0x2a93e7=Object[_0xaf30(0x173)]({'EMBEDDER':_0xaf30(0x605),'INDEXER':_0xaf30(0x1c9),'SEARCH':_0xaf30(0x4b2),'WORKER':_0xaf30(0x64d)}),_0x31b59e=Object[_0xaf30(0x173)]({'PENDING':'pending','DONE':'done','FAILED':_0xaf30(0x30c),'DELETED':'deleted'}),_0x1ba5fb=Object['freeze']({'INDEXER_READY':_0xaf30(0x6f1),'INDEXER_FLUSHED':_0xaf30(0x390),'INDEXER_DOC_DONE':_0xaf30(0x6e0),'INDEXER_DOC_FAILED':_0xaf30(0x104),'INDEXER_DOC_QUEUED':'embeddings:indexer:doc:queued','STRATEGY_REGISTERED':_0xaf30(0x4c1),'DOC_STATUS_CHANGE':_0xaf30(0x6d6),'PIPELINE_READY':_0xaf30(0x138)}),_0x354a4a=Object[_0xaf30(0x173)]({'MODELS':_0xaf30(0x689),'DOC_STATUS_PREFIX':_0xaf30(0x5f5),'VEC_PREFIX':_0xaf30(0x435)});return enums={'ENGINE_TYPES':_0x2a93e7,'INDEXER_DOC_STATUS':_0x31b59e,'EMBEDDINGS_EVENTS':_0x1ba5fb,'INTERNAL_TYPES':_0x354a4a},enums;}var okdbQueueValidate,hasRequiredOkdbQueueValidate;function requireOkdbQueueValidate(){const _0x4d9aa5=_0x5186d4;if(hasRequiredOkdbQueueValidate)return okdbQueueValidate;hasRequiredOkdbQueueValidate=0x1;const _0x24256d=Object['freeze']({'PENDING':_0x4d9aa5(0x465),'RUNNING':'running','DONE':_0x4d9aa5(0x4d9),'FAILED':'failed'}),_0x5e7012=Object[_0x4d9aa5(0x173)]({'ACTIVE':_0x4d9aa5(0x34a),'PAUSED':_0x4d9aa5(0x2e8),'DRAINING':_0x4d9aa5(0x3e2)}),_0xb6e22b=Object[_0x4d9aa5(0x173)]({'ENQUEUED':_0x4d9aa5(0x1e2),'DONE':_0x4d9aa5(0x754),'FAILED':_0x4d9aa5(0x664),'RETRY':'queue:retry','RESCHEDULED':_0x4d9aa5(0x29c),'REMOVED':_0x4d9aa5(0x235),'RECONCILED':_0x4d9aa5(0x395),'CLEAR_PROGRESS':'queue:clear-progress','CLEAR_DONE':_0x4d9aa5(0x438),'LOG':'queue:log'}),_0x2cc059=Object[_0x4d9aa5(0x173)]([_0x4d9aa5(0x59b),_0x4d9aa5(0x6b7),_0x4d9aa5(0xb5),_0x4d9aa5(0xdb)]),_0x5c8b3d=0x1,_0x18a509=0xc350,_0x11ffba=0x400,_0x57d647=0x800;function _0x2aff35(_0x48edb5){const _0x16f864=_0x4d9aa5;return _0x48edb5!=null&&typeof _0x48edb5===_0x16f864(0x57c)&&(_0x48edb5[_0x16f864(0x6ba)]===Object||Object[_0x16f864(0x1bd)](_0x48edb5)===null);}function _0xd0ae53(_0xb901a9,_0x296b93,_0x40edd4,_0x5d24f8){const _0x2fd57a=_0x4d9aa5;if(_0xb901a9==null)return _0x296b93;const _0x2eaded=Number(_0xb901a9);if(!Number[_0x2fd57a(0x43f)](_0x2eaded))return _0x296b93;const _0x4a27d8=Math[_0x2fd57a(0x2aa)](_0x2eaded);if(_0x4a27d8<_0x40edd4)return _0x40edd4;if(_0x4a27d8>_0x5d24f8)return _0x5d24f8;return _0x4a27d8;}function _0x14b257(_0x29f23a){const _0x55785e=_0x4d9aa5;if(!_0x29f23a)return[];if(typeof _0x29f23a===_0x55785e(0x48a))_0x29f23a=[_0x29f23a];if(!Array['isArray'](_0x29f23a))throw new Error(_0x55785e(0x31f));const _0x603911=[],_0x29266e=new Set();for(const _0x352661 of _0x29f23a){if(_0x352661==null)continue;const _0x3bab90=String(_0x352661)[_0x55785e(0x25b)]();if(!_0x3bab90)continue;if(_0x3bab90[_0x55785e(0x5f6)]>0x80)throw new Error(_0x55785e(0xc0));if(_0x29266e[_0x55785e(0x43b)](_0x3bab90))continue;_0x29266e[_0x55785e(0x5b5)](_0x3bab90),_0x603911['push'](_0x3bab90);if(_0x603911[_0x55785e(0x5f6)]>=0x20)break;}return _0x603911;}function _0x2666f9(_0x3ca9e5){const _0x58be5b=_0x4d9aa5;if(_0x3ca9e5==null)return null;const _0x2365af=String(_0x3ca9e5)['trim']();if(!_0x2365af)return null;if(_0x2365af[_0x58be5b(0x5f6)]>0x80)throw new Error(_0x58be5b(0x33c));return _0x2365af;}function _0x439737(_0xb03068,_0x421067=0x1){const _0x1a4efb=_0x4d9aa5;if(_0xb03068==null)return[];if(typeof _0xb03068===_0x1a4efb(0x48a)){const _0x16be0e=_0x2666f9(_0xb03068);if(!_0x16be0e)return[];return[{'id':_0x16be0e,'tokens':_0x421067}];}if(!Array[_0x1a4efb(0x28e)](_0xb03068))throw new Error('buckets\x20must\x20be\x20array\x20or\x20string');const _0x1b114e=[],_0x12931f=new Set();for(const _0xd17c85 of _0xb03068){let _0x3d9132,_0x1774f3;if(Array[_0x1a4efb(0x28e)](_0xd17c85))[_0x3d9132,_0x1774f3]=_0xd17c85;else{if(_0xd17c85&&typeof _0xd17c85===_0x1a4efb(0x57c))({id:_0x3d9132,tokens:_0x1774f3}=_0xd17c85);else{if(typeof _0xd17c85===_0x1a4efb(0x48a))_0x3d9132=_0xd17c85,_0x1774f3=_0x421067;else continue;}}_0x3d9132=_0x2666f9(_0x3d9132);if(!_0x3d9132)continue;const _0x35eb0d=_0x1774f3==null?_0x421067:Math[_0x1a4efb(0x2aa)](Number(_0x1774f3));if(!Number['isFinite'](_0x35eb0d)||_0x35eb0d<0x1)throw new Error(_0x1a4efb(0x123)+_0x3d9132+'\x22\x20tokens\x20must\x20be\x20>=\x201');if(_0x35eb0d>0xf4240)throw new Error(_0x1a4efb(0x123)+_0x3d9132+_0x1a4efb(0x480));if(_0x12931f['has'](_0x3d9132))throw new Error('duplicate\x20bucket:\x20'+_0x3d9132);_0x12931f['add'](_0x3d9132),_0x1b114e['push']({'id':_0x3d9132,'tokens':_0x35eb0d});}return _0x1b114e;}function _0x49ce14(_0x2d5c4f,_0x26b612=0x400){const _0x53f382=_0x4d9aa5;if(_0x2d5c4f==null)return null;const _0x4cc49e=String(_0x2d5c4f)[_0x53f382(0x1be)](0x0,_0x26b612);return _0x4cc49e||null;}function _0x5927b5(_0x508dfe){if(_0x508dfe==null)return null;if(_0x508dfe['key']!==undefined&&_0x508dfe['value']!==undefined)return _0x508dfe;return{'key':_0x508dfe['id']??null,'value':_0x508dfe};}function _0x1f68ba(_0x148046){const _0x476cb2=_0x4d9aa5;let _0x386037=_0x148046;if(typeof _0x148046===_0x476cb2(0x48a))_0x386037={'message':_0x148046};if(!_0x2aff35(_0x386037))throw new Error(_0x476cb2(0x21f));const _0x1cd36a=_0x386037[_0x476cb2(0x7c5)]==null?_0x476cb2(0x6b7):String(_0x386037[_0x476cb2(0x7c5)])['toLowerCase']();if(!_0x2cc059[_0x476cb2(0x61d)](_0x1cd36a))throw new Error(_0x476cb2(0x704)+_0x1cd36a);if(_0x386037[_0x476cb2(0xe9)]==null)throw new Error('log\x20entry\x20message\x20required');const _0x4c1cee=String(_0x386037[_0x476cb2(0xe9)])[_0x476cb2(0x1be)](0x0,_0x11ffba);let _0xbfd525=null;if(_0x386037[_0x476cb2(0x284)]!=null){if(!_0x2aff35(_0x386037['fields']))throw new Error(_0x476cb2(0x385));if(JSON[_0x476cb2(0x745)](_0x386037['fields'])['length']>_0x57d647)throw new Error(_0x476cb2(0x25c));_0xbfd525=_0x386037[_0x476cb2(0x284)];}return{'level':_0x1cd36a,'message':_0x4c1cee,'fields':_0xbfd525,'ts':Date[_0x476cb2(0x55e)]()};}function _0x4772cf(_0x20da54){const _0x44de5d=_0x4d9aa5;if(_0x20da54==null)return;if(!Number[_0x44de5d(0x409)](_0x20da54)||_0x20da54<_0x5c8b3d||_0x20da54>_0x18a509)throw new Error(_0x44de5d(0x604)+_0x5c8b3d+',\x20'+_0x18a509+']');}function _0x165074(_0x539375){const _0x4f5863=_0x4d9aa5;if(!_0x2aff35(_0x539375))throw new Error('job\x20must\x20be\x20object');if(typeof _0x539375['id']!=='string'||_0x539375['id'][_0x4f5863(0x5f6)]<0x8)throw new Error(_0x4f5863(0x1b7));if(typeof _0x539375[_0x4f5863(0x170)]!==_0x4f5863(0x48a)||!_0x539375[_0x4f5863(0x170)])throw new Error(_0x4f5863(0x4c4));if(!Object[_0x4f5863(0x2af)](_0x24256d)[_0x4f5863(0x61d)](_0x539375[_0x4f5863(0x26e)]))throw new Error('invalid\x20job.status:\x20'+_0x539375['status']);for(const _0x255e77 of[_0x4f5863(0x199),'created',_0x4f5863(0x65d)]){if(typeof _0x539375[_0x255e77]!==_0x4f5863(0x51e)||!Number[_0x4f5863(0x43f)](_0x539375[_0x255e77]))throw new Error(_0x4f5863(0x260)+_0x255e77+_0x4f5863(0x69a));}if(_0x539375[_0x4f5863(0x2bd)]!=null&&(typeof _0x539375[_0x4f5863(0x2bd)]!==_0x4f5863(0x51e)||!Number['isFinite'](_0x539375[_0x4f5863(0x2bd)])))throw new Error(_0x4f5863(0x7c2));if(!Number[_0x4f5863(0x409)](_0x539375['tries'])||_0x539375[_0x4f5863(0x624)]<0x0)throw new Error(_0x4f5863(0x677));if(!Number[_0x4f5863(0x409)](_0x539375['priority']))throw new Error(_0x4f5863(0x6bf));if(_0x539375[_0x4f5863(0x561)]!==null&&_0x539375[_0x4f5863(0x561)]!==Infinity&&(!Number[_0x4f5863(0x409)](_0x539375[_0x4f5863(0x561)])||_0x539375[_0x4f5863(0x561)]<0x1))throw new Error(_0x4f5863(0x6cf));if(_0x539375[_0x4f5863(0x101)]!=null&&(!Number['isInteger'](_0x539375[_0x4f5863(0x101)])||_0x539375[_0x4f5863(0x101)]<0x0))throw new Error(_0x4f5863(0x143));if(_0x539375[_0x4f5863(0x587)]!=null&&(typeof _0x539375[_0x4f5863(0x587)]!==_0x4f5863(0x51e)||_0x539375['backoff_multiplier']<0x1))throw new Error(_0x4f5863(0x2cc));if(_0x539375[_0x4f5863(0x73e)]!=null&&typeof _0x539375['claim_id']!==_0x4f5863(0x48a))throw new Error(_0x4f5863(0x1d6));if(_0x539375[_0x4f5863(0x2f7)]!=null&&(typeof _0x539375['claim_expires']!=='number'||!Number[_0x4f5863(0x43f)](_0x539375['claim_expires'])))throw new Error(_0x4f5863(0x555));if(_0x539375[_0x4f5863(0x2e5)]!=null&&typeof _0x539375[_0x4f5863(0x2e5)]!==_0x4f5863(0x48a))throw new Error('job.bucket\x20must\x20be\x20string|null');if(_0x539375[_0x4f5863(0x16e)]!=null&&(!Number[_0x4f5863(0x409)](_0x539375['bucket_tokens'])||_0x539375[_0x4f5863(0x16e)]<0x1))throw new Error('job.bucket_tokens\x20must\x20be\x20int\x20>=1');if(_0x539375['buckets']!=null){if(!Array[_0x4f5863(0x28e)](_0x539375[_0x4f5863(0x283)]))throw new Error(_0x4f5863(0x6b2));for(const _0xf9c87c of _0x539375[_0x4f5863(0x283)]){if(!_0xf9c87c||typeof _0xf9c87c!==_0x4f5863(0x57c))throw new Error('job.buckets\x20entries\x20must\x20be\x20objects');if(typeof _0xf9c87c['id']!==_0x4f5863(0x48a)||!_0xf9c87c['id']['trim']())throw new Error('job.buckets[].id\x20must\x20be\x20non-empty\x20string');if(!Number[_0x4f5863(0x409)](_0xf9c87c[_0x4f5863(0xaf)])||_0xf9c87c['tokens']<0x1)throw new Error(_0x4f5863(0x3a9));}}if(_0x539375[_0x4f5863(0x4ff)]!=null&&typeof _0x539375[_0x4f5863(0x4ff)]!==_0x4f5863(0x48a))throw new Error(_0x4f5863(0x182));if(_0x539375[_0x4f5863(0x73f)]!=null&&typeof _0x539375[_0x4f5863(0x73f)]!=='string')throw new Error(_0x4f5863(0x752));if(!Array[_0x4f5863(0x28e)](_0x539375[_0x4f5863(0x582)]))throw new Error('job.tags\x20must\x20be\x20array');if(_0x539375[_0x4f5863(0x3cd)]!=null&&typeof _0x539375['tag']!==_0x4f5863(0x48a))throw new Error('job.tag\x20must\x20be\x20string|null');if(_0x539375[_0x4f5863(0x7ef)]!=null&&typeof _0x539375[_0x4f5863(0x7ef)]!==_0x4f5863(0x48a))throw new Error('job.status_code\x20must\x20be\x20string|null');if(_0x539375[_0x4f5863(0x348)]!=null&&typeof _0x539375[_0x4f5863(0x348)]!==_0x4f5863(0x48a))throw new Error(_0x4f5863(0xd3));if(_0x539375[_0x4f5863(0x3a0)]!=null&&typeof _0x539375['error_stack']!==_0x4f5863(0x48a))throw new Error(_0x4f5863(0xcf));for(const _0x4c4202 of[_0x4f5863(0x7e3),_0x4f5863(0x76d)]){const _0x1f62f5=_0x539375[_0x4c4202];if(_0x1f62f5!=null&&(!Number['isInteger'](_0x1f62f5)||_0x1f62f5<0x0))throw new Error(_0x4f5863(0x260)+_0x4c4202+'\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer');}_0x4772cf(_0x539375[_0x4f5863(0x755)]);}function _0x50e9f3(_0x399a77){const _0x25673b=_0x4d9aa5;if(!_0x2aff35(_0x399a77))throw new Error(_0x25673b(0xd9));if(typeof _0x399a77['id']!==_0x25673b(0x48a)||!_0x399a77['id'][_0x25673b(0x25b)]())throw new Error(_0x25673b(0x140));if(!Object[_0x25673b(0x2af)](_0x5e7012)[_0x25673b(0x61d)](_0x399a77[_0x25673b(0x26e)]))throw new Error(_0x25673b(0x1ac)+_0x399a77[_0x25673b(0x26e)]);if(_0x399a77[_0x25673b(0xec)]!=null&&(!Number[_0x25673b(0x409)](_0x399a77['max_concurrency'])||_0x399a77['max_concurrency']<0x1))throw new Error(_0x25673b(0x5b9));if(_0x399a77[_0x25673b(0x3ed)]!=null){if(!_0x2aff35(_0x399a77[_0x25673b(0x3ed)]))throw new Error(_0x25673b(0xb0));const _0xcbc927=_0x399a77[_0x25673b(0x3ed)];if(_0xcbc927[_0x25673b(0x561)]!=null&&(!Number['isInteger'](_0xcbc927[_0x25673b(0x561)])||_0xcbc927[_0x25673b(0x561)]<0x1))throw new Error(_0x25673b(0x508));if(_0xcbc927['retry_delay']!=null&&(!Number[_0x25673b(0x409)](_0xcbc927[_0x25673b(0x101)])||_0xcbc927[_0x25673b(0x101)]<0x0))throw new Error('job_type.defaults.retry_delay\x20must\x20be\x20int\x20>=\x200\x20or\x20null');if(_0xcbc927[_0x25673b(0x587)]!=null&&(typeof _0xcbc927[_0x25673b(0x587)]!==_0x25673b(0x51e)||_0xcbc927[_0x25673b(0x587)]<0x1))throw new Error(_0x25673b(0x42f));if(_0xcbc927[_0x25673b(0x717)]!=null&&!Number[_0x25673b(0x409)](_0xcbc927[_0x25673b(0x717)]))throw new Error('job_type.defaults.priority\x20must\x20be\x20int\x20or\x20null');if(_0xcbc927[_0x25673b(0x7bc)]!=null&&(!Number['isInteger'](_0xcbc927['ttl'])||_0xcbc927[_0x25673b(0x7bc)]<0x0))throw new Error(_0x25673b(0x6c9));for(const _0x540ab5 of[_0x25673b(0x7e3),'failed_ttl']){if(_0xcbc927[_0x540ab5]!=null&&(!Number[_0x25673b(0x409)](_0xcbc927[_0x540ab5])||_0xcbc927[_0x540ab5]<0x0))throw new Error(_0x25673b(0x301)+_0x540ab5+'\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer');}if(_0xcbc927[_0x25673b(0x283)]!=null&&!Array['isArray'](_0xcbc927[_0x25673b(0x283)]))throw new Error(_0x25673b(0x2f2));_0x4772cf(_0xcbc927[_0x25673b(0x755)]);}if(_0x399a77[_0x25673b(0x1fa)]!=null){if(!_0x2aff35(_0x399a77['payload_schema']))throw new Error(_0x25673b(0x53a));if(!_0x2aff35(_0x399a77[_0x25673b(0x1fa)][_0x25673b(0x5d9)]))throw new Error(_0x25673b(0x18d));if(typeof _0x399a77[_0x25673b(0x1fa)][_0x25673b(0x444)]!==_0x25673b(0x17e))throw new Error('job_type.payload_schema.enforce\x20must\x20be\x20boolean');}for(const _0x475432 of[_0x25673b(0x51c),_0x25673b(0x6ea)]){if(typeof _0x399a77[_0x475432]!==_0x25673b(0x51e)||!Number[_0x25673b(0x43f)](_0x399a77[_0x475432]))throw new Error(_0x25673b(0x295)+_0x475432+'\x20must\x20be\x20number');}}function _0x1fba14(_0x3f9191){const _0x404c11=_0x4d9aa5;if(!_0x2aff35(_0x3f9191))throw new Error('bucket\x20must\x20be\x20object');if(typeof _0x3f9191['id']!==_0x404c11(0x48a)||!_0x3f9191['id'][_0x404c11(0x25b)]())throw new Error(_0x404c11(0x662));if(!Number['isInteger'](_0x3f9191['tokens'])||_0x3f9191[_0x404c11(0xaf)]<0x0)throw new Error('bucket.tokens\x20must\x20be\x20int\x20>=\x200');if(!Number[_0x404c11(0x409)](_0x3f9191['capacity'])||_0x3f9191[_0x404c11(0x122)]<0x0)throw new Error(_0x404c11(0x2f3));if(_0x3f9191[_0x404c11(0xaf)]>_0x3f9191[_0x404c11(0x122)])throw new Error(_0x404c11(0x46b));if(!Number[_0x404c11(0x409)](_0x3f9191[_0x404c11(0x41a)])||_0x3f9191[_0x404c11(0x41a)]<0x0)throw new Error(_0x404c11(0x213));if(!Number[_0x404c11(0x409)](_0x3f9191[_0x404c11(0xee)])||_0x3f9191[_0x404c11(0xee)]<0x0)throw new Error(_0x404c11(0x5aa));if(typeof _0x3f9191[_0x404c11(0x65d)]!==_0x404c11(0x51e)||!Number[_0x404c11(0x43f)](_0x3f9191[_0x404c11(0x65d)]))throw new Error(_0x404c11(0x77b));}return okdbQueueValidate={'STATUS':_0x24256d,'JOB_TYPE_STATUS':_0x5e7012,'QUEUE_EVENTS':_0xb6e22b,'LOG_LEVELS':_0x2cc059,'LOG_CAP_MIN':_0x5c8b3d,'LOG_CAP_MAX':_0x18a509,'clampInt':_0xd0ae53,'asNullableString':_0x49ce14,'normalizeResult':_0x5927b5,'normalizeTags':_0x14b257,'normalizeBucket':_0x2666f9,'normalizeBuckets':_0x439737,'normalizeLogEntry':_0x1f68ba,'validateJobShape':_0x165074,'validateJobTypeShape':_0x50e9f3,'validateBucketShape':_0x1fba14},okdbQueueValidate;}var okdbTimers,hasRequiredOkdbTimers;function requireOkdbTimers(){if(hasRequiredOkdbTimers)return okdbTimers;hasRequiredOkdbTimers=0x1;const _0x32a4e9=0x2**0x1f-0x1;function _0x2231e9(_0x41264){if(!(_0x41264>0x0))return 0x0;return _0x41264>_0x32a4e9?_0x32a4e9:_0x41264;}function _0x4a561a(_0x5e56fc){return _0x5e56fc===Infinity;}return okdbTimers={'MAX_TIMER_DELAY':_0x32a4e9,'clampTimerDelay':_0x2231e9,'isNeverDelay':_0x4a561a},okdbTimers;}var okdbChangefeed,hasRequiredOkdbChangefeed;function requireOkdbChangefeed(){const _0x17633e=_0x5186d4;if(hasRequiredOkdbChangefeed)return okdbChangefeed;hasRequiredOkdbChangefeed=0x1;const _0x237003=require$$0$6,{clampTimerDelay:_0x3f5682}=requireOkdbTimers(),{EVENTS:_0x285ec8,CHANGE_ACTIONS:_0x5a0f4f}=requireOkdbEnums(),{LOOP:_0x2903e3}=requireOkdbLoopMonitor(),_0x251cb2=Number(process.env.OKDB_CHANGEFEED_QUANTUM)||0x3e8,_0x454150=0x5,_0x2e8c43=0x2710;class _0x31c792 extends _0x237003{constructor(_0x52b83d,_0x2e0a76={}){const _0x3f2c02=_0x458f;super(),this['okdb']=_0x52b83d,this[_0x3f2c02(0x252)]=_0x2e0a76[_0x3f2c02(0x42b)]??_0x251cb2,this[_0x3f2c02(0x5e8)]=_0x2e0a76[_0x3f2c02(0x44e)]??_0x454150,this['_dedupeMax']=_0x2e0a76['dedupeMax']??_0x2e8c43,this[_0x3f2c02(0x18f)]=![],this[_0x3f2c02(0x7e7)]=new Map(),this['_baselines']=new Map(),this[_0x3f2c02(0x6dc)]=new Map(),this[_0x3f2c02(0x477)]=null,this[_0x3f2c02(0x698)]=![],this[_0x3f2c02(0x5b3)]=new Set(),this[_0x3f2c02(0xb3)]=new Set(),this[_0x3f2c02(0x270)]=_0x1856b8=>this[_0x3f2c02(0x4f9)](_0x1856b8),this[_0x3f2c02(0x5c2)]=_0x2e8754=>this[_0x3f2c02(0x5f4)](_0x2e8754),this[_0x3f2c02(0x455)]=_0x2a0bb3=>this['_handlePoke'](_0x2a0bb3),this[_0x3f2c02(0x4e1)]=()=>this[_0x3f2c02(0x415)]();}['start'](){const _0x32709f=_0x458f;if(this['_started'])return;this[_0x32709f(0x18f)]=!![];for(const [_0x8d9fca,_0x24b66e]of this['okdb']['_envs']){if(_0x8d9fca[_0x32709f(0x377)]('~'))continue;try{_0x24b66e[_0x32709f(0xf3)]();}catch{}}for(const [_0x47252b,_0x2c759b]of this[_0x32709f(0x5df)][_0x32709f(0x126)]){if(_0x47252b[_0x32709f(0x377)]('~'))continue;try{this[_0x32709f(0x1e7)][_0x32709f(0x227)](_0x47252b,_0x2c759b[_0x32709f(0x18c)]()||0x0);}catch{}}const {events:_0x4d9b43}=this['okdb'];_0x4d9b43['on'](_0x285ec8[_0x32709f(0x5db)],this['_onPending']),_0x4d9b43['on'](_0x285ec8[_0x32709f(0x518)],this[_0x32709f(0x270)]),_0x4d9b43['on'](_0x285ec8[_0x32709f(0x514)],this['_onItem']),_0x4d9b43['on'](_0x285ec8[_0x32709f(0x278)],this[_0x32709f(0x270)]),_0x4d9b43['on'](_0x285ec8['SYSTEM_POKE'],this[_0x32709f(0x455)]),_0x4d9b43['once'](_0x285ec8[_0x32709f(0x402)],this[_0x32709f(0x4e1)]);}[_0x17633e(0x415)](){const _0x483995=_0x17633e;if(!this['_started'])return;this[_0x483995(0x18f)]=![];const {events:_0x193eb8}=this[_0x483995(0x5df)];_0x193eb8[_0x483995(0x679)](_0x285ec8['ITEM_PENDING'],this[_0x483995(0x5c2)]),_0x193eb8[_0x483995(0x679)](_0x285ec8['ITEM_CREATE'],this[_0x483995(0x270)]),_0x193eb8['off'](_0x285ec8[_0x483995(0x514)],this[_0x483995(0x270)]),_0x193eb8[_0x483995(0x679)](_0x285ec8[_0x483995(0x278)],this[_0x483995(0x270)]),_0x193eb8[_0x483995(0x679)](_0x285ec8['SYSTEM_POKE'],this['_onPoke']);try{_0x193eb8[_0x483995(0x679)](_0x285ec8[_0x483995(0x402)],this['_onStop']);}catch{}this[_0x483995(0x477)]&&(clearTimeout(this[_0x483995(0x477)]),this['_flushTimer']=null),this[_0x483995(0x6dc)]['clear'](),this[_0x483995(0x7e7)][_0x483995(0x635)](),this['_baselines'][_0x483995(0x635)](),this['_seen']['clear'](),this[_0x483995(0xb3)]['clear']();}['_dedupeKey'](_0xa26603,_0x5ceef9,_0x569ffc,_0x2420f9){return _0xa26603+'\x00'+_0x5ceef9+'\x00'+_0x569ffc+'\x00'+_0x2420f9;}['_markSeen'](_0x1bf80,_0x238472,_0x538c83,_0x526205){const _0x1fdf3d=_0x17633e,_0x599c45=this[_0x1fdf3d(0x6aa)](_0x1bf80,_0x238472,_0x538c83,_0x526205);if(this[_0x1fdf3d(0x5b3)]['has'](_0x599c45))return![];this['_seen'][_0x1fdf3d(0x5b5)](_0x599c45);if(this['_seen']['size']>this[_0x1fdf3d(0x2ae)]){const _0x273ea1=this[_0x1fdf3d(0x5b3)][_0x1fdf3d(0x2af)]()[_0x1fdf3d(0x7e9)]()['value'];this[_0x1fdf3d(0x5b3)]['delete'](_0x273ea1);}return!![];}['_handlePending'](_0x6adedc){const _0x43cc9e=_0x17633e;if(!this[_0x43cc9e(0x18f)]||!_0x6adedc)return;const {env:_0x541204,type:_0x4fe452,key:_0x5e83da,clock:_0x5c0671}=_0x6adedc;if(_0x541204==null||_0x4fe452==null||_0x5e83da==null)return;if(typeof _0x541204===_0x43cc9e(0x48a)&&_0x541204[_0x43cc9e(0x377)]('~'))return;if(typeof _0x4fe452===_0x43cc9e(0x48a)&&_0x4fe452[_0x43cc9e(0x377)]('~'))return;this[_0x43cc9e(0xb3)][_0x43cc9e(0x5b5)](this['_dedupeKey'](_0x541204,_0x4fe452,_0x5e83da,_0x5c0671)),this[_0x43cc9e(0xb3)]['size']>this[_0x43cc9e(0x2ae)]&&this[_0x43cc9e(0xb3)][_0x43cc9e(0x32d)](this[_0x43cc9e(0xb3)][_0x43cc9e(0x2af)]()[_0x43cc9e(0x7e9)]()[_0x43cc9e(0x27a)]);}[_0x17633e(0x4f9)](_0x41d294){const _0x327a04=_0x17633e;if(!this[_0x327a04(0x18f)]||!_0x41d294)return;const {env:_0x50aee7,type:_0x132dbd,key:_0x3df8a7,clock:_0x35de05,origin:_0x236453,action:_0x4904c1,newValue:_0x302043,oldValue:_0xef5b66}=_0x41d294;if(_0x50aee7==null||_0x132dbd==null||_0x3df8a7==null)return;if(typeof _0x50aee7===_0x327a04(0x48a)&&_0x50aee7[_0x327a04(0x377)]('~'))return;if(typeof _0x132dbd===_0x327a04(0x48a)&&_0x132dbd[_0x327a04(0x377)]('~'))return;this[_0x327a04(0xb3)][_0x327a04(0x32d)](this[_0x327a04(0x6aa)](_0x50aee7,_0x132dbd,_0x3df8a7,_0x35de05));if(!this[_0x327a04(0x6a7)](_0x50aee7,_0x132dbd,_0x3df8a7,_0x35de05))return;const _0x2642ff=_0x4904c1===_0x5a0f4f[_0x327a04(0x371)]?_0x327a04(0x228):'put';this[_0x327a04(0x74a)]('change',{'env':_0x50aee7,'type':_0x132dbd,'key':_0x3df8a7,'op':_0x2642ff,'clock':_0x35de05,'origin':_0x236453,'value':_0x2642ff===_0x327a04(0x228)?null:_0x302043,'prevValue':_0xef5b66});}['_handlePoke'](_0x168e1d){const _0x4c3819=_0x17633e;if(!this[_0x4c3819(0x18f)])return;if(!_0x168e1d||typeof _0x168e1d[_0x4c3819(0x78b)]!==_0x4c3819(0x48a)||typeof _0x168e1d[_0x4c3819(0x170)]!==_0x4c3819(0x48a))return;const {env:_0x1e9c3d,type:_0x2c0d41}=_0x168e1d;if(_0x1e9c3d['startsWith']('~')||_0x2c0d41[_0x4c3819(0x377)]('~'))return;this[_0x4c3819(0x6dc)][_0x4c3819(0x227)](_0x1e9c3d+'\x00'+_0x2c0d41,{'env':_0x1e9c3d,'type':_0x2c0d41}),this[_0x4c3819(0x6f3)]();}[_0x17633e(0x6f3)](){const _0x3b95c4=_0x17633e;if(this[_0x3b95c4(0x477)])return;const _0xc42886=()=>{const _0x38052e=_0x3b95c4;this['_flushTimer']=null,this[_0x38052e(0x5c1)]()[_0x38052e(0x2fc)](()=>{});};this[_0x3b95c4(0x477)]=setTimeout(_0xc42886,_0x3f5682(this[_0x3b95c4(0x5e8)]));}async['_drain'](){const _0x552bcc=_0x17633e;if(this['_draining']){this[_0x552bcc(0x6f3)]();return;}this['_draining']=!![];try{const _0xd5ff0b=[...this[_0x552bcc(0x6dc)]['values']()];this['_pending'][_0x552bcc(0x635)]();let _0x275461=![];for(const {env:_0x41e249,type:_0x87be28}of _0xd5ff0b){try{const _0x2f06e1=await this['_drainOne'](_0x41e249,_0x87be28);if(_0x2f06e1)_0x275461=!![];}catch{this[_0x552bcc(0x6dc)][_0x552bcc(0x227)](_0x41e249+'\x00'+_0x87be28,{'env':_0x41e249,'type':_0x87be28}),_0x275461=!![];}}if(_0x275461||this['_pending'][_0x552bcc(0x691)]>0x0)this[_0x552bcc(0x6f3)]();}finally{this[_0x552bcc(0x698)]=![];}}async[_0x17633e(0x319)](_0x1c909c,_0x2a6491){const _0x4fd386=_0x17633e,_0x119a63=await this['okdb']['_openEnvLazy'](_0x1c909c),_0x41d2df=_0x1c909c+'\x00'+_0x2a6491;!this[_0x4fd386(0x7e7)]['has'](_0x41d2df)&&(!this['_baselines'][_0x4fd386(0x43b)](_0x1c909c)&&(_0x119a63[_0x4fd386(0xf3)](),this[_0x4fd386(0x1e7)][_0x4fd386(0x227)](_0x1c909c,_0x119a63[_0x4fd386(0x18c)]()||0x0)),this[_0x4fd386(0x7e7)][_0x4fd386(0x227)](_0x41d2df,this['_baselines'][_0x4fd386(0x576)](_0x1c909c)));const _0x4b3d51=this[_0x4fd386(0x7e7)]['get'](_0x41d2df),_0x5e0d19=_0x119a63['getClock'](_0x2a6491)||0x0;if(_0x5e0d19<=_0x4b3d51)return![];const _0x509f29=_0x4b3d51+this['_quantum'],_0x3a737a=Math[_0x4fd386(0x4b5)](_0x5e0d19,_0x509f29),_0x391410=_0x2903e3[_0x4fd386(0x57b)]?_0x2903e3[_0x4fd386(0x55e)]():0x0,_0x13d070=Array[_0x4fd386(0x791)](_0x119a63['getChanges'](_0x2a6491,_0x4b3d51+0x1,_0x3a737a));let _0x11cc3c=_0x4b3d51;for(const _0x1d3d1c of _0x13d070){const {clock:_0x376ecf,key:_0x257280,action:_0x17a380,origin:_0x4c438a}=_0x1d3d1c;if(_0x376ecf>_0x11cc3c)_0x11cc3c=_0x376ecf;if(_0x257280==null)continue;if(this[_0x4fd386(0xb3)][_0x4fd386(0x43b)](this[_0x4fd386(0x6aa)](_0x1c909c,_0x2a6491,_0x257280,_0x376ecf)))continue;if(!this[_0x4fd386(0x6a7)](_0x1c909c,_0x2a6491,_0x257280,_0x376ecf))continue;let _0xacdfc,_0x4d3330;if(_0x17a380===_0x5a0f4f[_0x4fd386(0x371)])_0xacdfc=_0x4fd386(0x228),_0x4d3330=null;else{const _0x1b547a=_0x119a63[_0x4fd386(0x576)](_0x2a6491,_0x257280);_0x1b547a==null?(_0xacdfc=_0x4fd386(0x228),_0x4d3330=null):(_0xacdfc=_0x4fd386(0x540),_0x4d3330=_0x1b547a);}this[_0x4fd386(0x74a)](_0x4fd386(0x506),{'env':_0x1c909c,'type':_0x2a6491,'key':_0x257280,'op':_0xacdfc,'clock':_0x376ecf,'origin':_0x4c438a,'value':_0x4d3330});}if(_0x2903e3[_0x4fd386(0x57b)])_0x2903e3[_0x4fd386(0x526)](_0x4fd386(0x46d)+_0x1c909c+':'+_0x2a6491,_0x2903e3[_0x4fd386(0x55e)]()-_0x391410,'n='+_0x13d070[_0x4fd386(0x5f6)]);return this[_0x4fd386(0x7e7)][_0x4fd386(0x227)](_0x41d2df,Math[_0x4fd386(0x7f0)](_0x11cc3c,_0x3a737a)),_0x119a63['getClock'](_0x2a6491)>_0x3a737a;}[_0x17633e(0x26e)](){const _0x14878a=_0x17633e;return{'started':this[_0x14878a(0x18f)],'quantum':this[_0x14878a(0x252)],'flushDebounce':this[_0x14878a(0x5e8)],'cursors':Object[_0x14878a(0x750)]([...this[_0x14878a(0x7e7)]['entries']()][_0x14878a(0x25e)](([_0x31725d,_0x68bbfe])=>[_0x31725d[_0x14878a(0xbe)]('\x00',':'),_0x68bbfe])),'pending':this[_0x14878a(0x6dc)][_0x14878a(0x691)],'seen':this[_0x14878a(0x5b3)]['size']};}}return _0x31c792[_0x17633e(0x573)]=_0x251cb2,okdbChangefeed={'OKDBChangefeed':_0x31c792},okdbChangefeed;}var okdbRelay,hasRequiredOkdbRelay;function requireOkdbRelay(){const _0x117fd0=_0x5186d4;if(hasRequiredOkdbRelay)return okdbRelay;hasRequiredOkdbRelay=0x1;const {EVENTS:_0x5c1fca}=requireOkdbEnums(),_0x4ba55f=new Set([_0x5c1fca[_0x117fd0(0x518)],_0x5c1fca[_0x117fd0(0x514)],_0x5c1fca[_0x117fd0(0x278)]]),{ENGINE_EVENTS:_0x249864}=requireOkdbEnginesEnums(),{EMBEDDINGS_EVENTS:_0x3a9498}=requireEnums(),{QUEUE_EVENTS:_0x53fa90}=requireOkdbQueueValidate(),_0x401ada=Object[_0x117fd0(0x2af)](_0x5c1fca),_0x2a251b=Object[_0x117fd0(0x2af)](_0x249864)['map'](_0x46fd3b=>_0x117fd0(0x166)+_0x46fd3b),_0x59c3c9=Object['values'](_0x3a9498),_0x446267=Object['values'](_0x53fa90),_0x29157b=['processor:ready',_0x117fd0(0x3f3),_0x117fd0(0x70c),_0x117fd0(0x6be),_0x117fd0(0x74f),_0x117fd0(0x443)],_0x507823=[..._0x401ada,..._0x2a251b,..._0x59c3c9,..._0x446267,..._0x29157b,_0x117fd0(0x23f)],_0x2f06d0=new Set(_0x507823),_0x391817=new Set([_0x5c1fca[_0x117fd0(0x518)],_0x5c1fca['ITEM_UPDATE'],_0x5c1fca[_0x117fd0(0x278)],_0x5c1fca[_0x117fd0(0x1af)],_0x5c1fca['TXN_END'],_0x5c1fca[_0x117fd0(0x3c2)],_0x5c1fca[_0x117fd0(0x1cb)],_0x5c1fca[_0x117fd0(0x628)],_0x3a9498['INDEXER_DOC_DONE'],_0x3a9498[_0x117fd0(0x436)],_0x3a9498[_0x117fd0(0x2f9)],_0x3a9498[_0x117fd0(0xe0)],_0x117fd0(0x3f3)]),_0x27a8b4=_0x507823['filter'](_0x517905=>_0x517905===_0x117fd0(0x23f)||!_0x391817[_0x117fd0(0x43b)](_0x517905)),_0x5b1747=0x14,_0x516792=0xc8;class _0x4b94b3{constructor(_0x178544,_0x547576={}){const _0x3ea91=_0x117fd0;this['okdb']=_0x178544,this[_0x3ea91(0x5e3)]=_0x547576[_0x3ea91(0x391)]??_0x5b1747,this[_0x3ea91(0x68f)]=_0x547576[_0x3ea91(0x273)]??_0x516792,this[_0x3ea91(0x68d)]=new Set(),this['_buffer']=[],this[_0x3ea91(0x2f0)]=[],this[_0x3ea91(0x305)]=null,this['_attached']=![],this['_feed']=null,this[_0x3ea91(0xff)]=null;}['attach'](){const _0x11fda9=_0x117fd0;if(this[_0x11fda9(0x7a6)])return;this[_0x11fda9(0x7a6)]=!![];const {okdb:_0x13270f}=this;this[_0x11fda9(0x305)]=_0x13270f[_0x11fda9(0x23f)]['attach'](_0x17f9a5=>this[_0x11fda9(0x40f)]('log',_0x17f9a5));for(const _0x329a95 of _0x507823){if(_0x329a95==='log')continue;const _0x4a7b4b=_0x4ba55f[_0x11fda9(0x43b)](_0x329a95),_0x51994c=_0x3af1c4=>{const _0x408871=_0x11fda9;if(_0x4a7b4b&&this[_0x408871(0x7bd)])return;this[_0x408871(0x40f)](_0x329a95,_0x3af1c4??{});};_0x13270f[_0x11fda9(0x2b9)]['on'](_0x329a95,_0x51994c),this['_listeners'][_0x11fda9(0x7f5)]({'event':_0x329a95,'handler':_0x51994c});}this[_0x11fda9(0x4e1)]=()=>this[_0x11fda9(0x519)](),_0x13270f[_0x11fda9(0x2b9)][_0x11fda9(0x1cf)](_0x5c1fca[_0x11fda9(0x402)],this[_0x11fda9(0x4e1)]);}[_0x117fd0(0x519)](){const _0x6ef920=_0x117fd0;if(!this[_0x6ef920(0x7a6)])return;if(this['_onStop']){try{this[_0x6ef920(0x5df)][_0x6ef920(0x2b9)]['off'](_0x5c1fca[_0x6ef920(0x402)],this[_0x6ef920(0x4e1)]);}catch{}this[_0x6ef920(0x4e1)]=null;}this[_0x6ef920(0x305)]?.(),this['_detachLog']=null;for(const {event:_0x110c29,handler:_0x12ebcd}of this[_0x6ef920(0x2f0)]){try{this[_0x6ef920(0x5df)][_0x6ef920(0x2b9)]['off'](_0x110c29,_0x12ebcd);}catch{}}this['_listeners']=[];for(const _0x26e143 of this[_0x6ef920(0x68d)]){try{_0x26e143[_0x6ef920(0x3ce)]?.();}catch{}}this['_connections'][_0x6ef920(0x635)](),this[_0x6ef920(0x517)](),this[_0x6ef920(0x7a6)]=![];}[_0x117fd0(0x236)](_0x9faa48){const _0xf0da0f=_0x117fd0;if(!_0x9faa48||this['_feed']===_0x9faa48)return;this[_0xf0da0f(0x517)](),this[_0xf0da0f(0x7bd)]=_0x9faa48,this[_0xf0da0f(0xff)]=_0x133bbf=>{const _0x169110=_0xf0da0f;if(!_0x133bbf)return;const _0x51e3cc=_0x133bbf['op']===_0x169110(0x228)?_0x5c1fca['ITEM_REMOVE']:_0x5c1fca[_0x169110(0x514)];this[_0x169110(0x40f)](_0x51e3cc,_0x133bbf);},_0x9faa48['on'](_0xf0da0f(0x506),this[_0xf0da0f(0xff)]);}[_0x117fd0(0x517)](){const _0x28cf0b=_0x117fd0;if(this[_0x28cf0b(0x7bd)]&&this[_0x28cf0b(0xff)])try{this[_0x28cf0b(0x7bd)][_0x28cf0b(0x679)](_0x28cf0b(0x506),this[_0x28cf0b(0xff)]);}catch{}this['_feed']=null,this['_onFeedChange']=null;}[_0x117fd0(0x1b2)](_0x2da108,_0x597ec9){const _0x1314e0=_0x117fd0;if(!_0x2f06d0[_0x1314e0(0x43b)](_0x2da108))return;this[_0x1314e0(0x40f)](_0x2da108,_0x597ec9??{});}[_0x117fd0(0x2b5)](_0x1c6366,_0x13f4dd,_0x129c1f){const _0x4559ac=_0x117fd0;if(this[_0x4559ac(0x68d)][_0x4559ac(0x691)]>=this['_maxConnections'])return _0x13f4dd(_0x4559ac(0x4a0),{'message':_0x4559ac(0x1d1),'code':'RELAY_FULL'}),()=>{};const _0x57c4ce=this[_0x4559ac(0x36c)](_0x1c6366),_0x357371={'send':_0x13f4dd,'filter':_0x57c4ce,'close':_0x129c1f??null};this[_0x4559ac(0x68d)]['add'](_0x357371);for(const {event:_0x55a0f6,data:_0xc04457}of this['_buffer']){if(_0x57c4ce[_0x4559ac(0x43b)](_0x55a0f6))try{_0x13f4dd(_0x55a0f6,_0xc04457);}catch{}}return()=>this[_0x4559ac(0x68d)][_0x4559ac(0x32d)](_0x357371);}[_0x117fd0(0x71a)](){const _0x9a6970=_0x117fd0;if(this[_0x9a6970(0x7bd)])return this[_0x9a6970(0x7bd)];const {OKDBChangefeed:_0x2999c9}=requireOkdbChangefeed(),_0x57766b=new _0x2999c9(this[_0x9a6970(0x5df)]);_0x57766b[_0x9a6970(0x6ae)](),this[_0x9a6970(0x236)](_0x57766b);if(this[_0x9a6970(0x5df)]&&!this[_0x9a6970(0x5df)][_0x9a6970(0xcc)])this[_0x9a6970(0x5df)]['_changefeed']=_0x57766b;return this[_0x9a6970(0x7bd)];}get['connectionCount'](){const _0x505079=_0x117fd0;return this[_0x505079(0x68d)][_0x505079(0x691)];}['stats'](){const _0x24410c=_0x117fd0;return{'connections':this[_0x24410c(0x693)],'bufferSize':this[_0x24410c(0x630)][_0x24410c(0x5f6)],'attached':this[_0x24410c(0x7a6)],'allEvents':_0x507823[_0x24410c(0x5f6)],'defaultEvents':_0x27a8b4[_0x24410c(0x5f6)]};}static get[_0x117fd0(0x2ef)](){return _0x507823;}static get[_0x117fd0(0x5dc)](){return _0x27a8b4;}static get[_0x117fd0(0x36e)](){return[..._0x391817];}['_resolveFilter'](_0x35809e){const _0x14a446=_0x117fd0;if(!_0x35809e||!_0x35809e['length'])return new Set(_0x27a8b4);const _0x5c5ecd=_0x35809e[_0x14a446(0x127)](_0x5e3667=>_0x2f06d0[_0x14a446(0x43b)](_0x5e3667));return new Set(_0x5c5ecd[_0x14a446(0x5f6)]?_0x5c5ecd:_0x27a8b4);}['_push'](_0x472a59,_0x503868){const _0xaec92d=_0x117fd0,_0x37fb5b={..._0x503868,'_ts':_0x503868?.[_0xaec92d(0x353)]??_0x503868?.['ts']??Date['now']()};this[_0xaec92d(0x630)][_0xaec92d(0x7f5)]({'event':_0x472a59,'data':_0x37fb5b});if(this[_0xaec92d(0x630)][_0xaec92d(0x5f6)]>this[_0xaec92d(0x68f)])this[_0xaec92d(0x630)][_0xaec92d(0x3d5)]();for(const _0x6372d5 of this[_0xaec92d(0x68d)]){if(_0x6372d5[_0xaec92d(0x127)][_0xaec92d(0x43b)](_0x472a59))try{_0x6372d5[_0xaec92d(0x1df)](_0x472a59,_0x37fb5b);}catch{}}}}return okdbRelay=_0x4b94b3,okdbRelay;}var hasRequiredLib;function requireLib(){const _0x5ec444=_0x5186d4;if(hasRequiredLib)return lib[_0x5ec444(0x73a)];return hasRequiredLib=0x1,function(_0x120b7f){const _0x145d4e=_0x5ec444,_0x423037=require$$0$6,{load:_0x17dad0}=require$$1$1,_0x23dfc1=requireBridge(),_0xfda7b8=requireWritebatch(),{Pumper:_0x36ab78}=requirePump(),{OKDBEnv:_0x4976d2,HIGH_SENTINEL:_0xfeca90}=requireEnv(),{reclass:_0x562c87,NotImplementedNative:_0x4d1ca3,OKDBError:_0x5a27ab,optionsArg:_0x253702,invalidArgument:_0x3be7da}=requireErrors(),{notImplemented:_0x2630cf}=requireUnsupported(),{OKDBHttp:_0x46d19b}=requireHttp(),{OKDBFts:_0x55cc58}=requireFts(),{OKDBEmbeddings:_0x4f45fe}=requireEmbeddings(),{OKDBAuth:_0x2a4e94}=requireAuth(),{OKDBSync:_0x4759fd}=requireSync(),{OKDBMigrate:_0x55358a}=requireMigrate(),{OKDBFunctions:_0x134015}=requireFunctions(),{OKDBMcp:_0x361c86}=requireMcp(),{OKDBEngines:_0x23dd9c,OKDBPipelines:_0x2cdd7b}=requireEngines(),{makeMeta:_0x12c45f,makeLicenses:_0x4aa3f5,makeLicenseChecker:_0x127eba,makeProcesses:_0x24aff3}=requireSys();let _0x420cd7=null;function _0x952323(_0x361f80){if(!_0x420cd7){const {Unpackr:_0x16b501}=require$$18;_0x420cd7=new _0x16b501({'useRecords':![],'mapsAsObjects':!![],'copyBuffers':!![]});}return _0x420cd7['unpack'](_0x361f80);}let _0xbdc2c=null;function _0x470f23(_0x245033,_0x10d0ec){const _0x421fca=_0x458f;if(!_0xbdc2c){const {Unpackr:_0x6938b7}=require$$18;_0xbdc2c=new _0x6938b7({'copyBuffers':!![]});}return _0xbdc2c[_0x421fca(0x7e0)](_0x245033,_0x10d0ec);}const {encodeKey:_0x4a0840,KEY_BUF_SIZE:_0x3aa6ff,NO_FAST:_0x3b597b}=requireKeyenc(),_0x4d3aaa=0x40*0x400,_0x21509e=0x4*0x400*0x400;function _0xc643af(_0x106f3e,_0x445783){const _0x10cbe0=_0x458f,_0x251e01=_0x106f3e[0x2],_0x295054=_0x251e01?(_0x106f3e[_0x10cbe0(0x5f6)]-0x3)/Math[_0x10cbe0(0x71e)](_0x251e01):0x0,_0x6913df=new Array(_0x295054);let _0x95cd32=0x3;if(_0x251e01===0x2){for(let _0x117634=0x0;_0x117634<_0x295054;_0x117634++,_0x95cd32+=0x2)_0x6913df[_0x117634]={'key':_0x106f3e[_0x95cd32],'value':_0x106f3e[_0x95cd32+0x1]};}else{if(_0x251e01===0x3){for(let _0x159be6=0x0;_0x159be6<_0x295054;_0x159be6++,_0x95cd32+=0x3)_0x6913df[_0x159be6]={'key':_0x106f3e[_0x95cd32],'value':_0x106f3e[_0x95cd32+0x1],'version':_0x106f3e[_0x95cd32+0x2]};}else{if(_0x251e01===-0x2){for(let _0x4a0da2=0x0;_0x4a0da2<_0x295054;_0x4a0da2++,_0x95cd32+=0x2)_0x6913df[_0x4a0da2]={'clock':_0x106f3e[_0x95cd32],..._0x106f3e[_0x95cd32+0x1]};}else{if(_0x251e01===0x4){for(let _0x9b96d6=0x0;_0x9b96d6<_0x295054;_0x9b96d6++,_0x95cd32+=0x4)_0x6913df[_0x9b96d6]={'key':_0x106f3e[_0x95cd32],'value':_0x106f3e[_0x95cd32+0x1],'version':_0x106f3e[_0x95cd32+0x2],'indexKey':_0x106f3e[_0x95cd32+0x3]};}else{if(_0x295054)throw new Error(_0x10cbe0(0x37a)+_0x251e01);}}}}return _0x445783?[_0x106f3e[0x0],_0x6913df,_0x106f3e[0x1]]:_0x6913df;}let _0x755f30=null;function _0x4d4194(_0x166b9f,_0x588600,_0x2fd51e){const _0x52e7a5=_0x458f;if(!_0x755f30)_0x755f30=requireDist()[_0x52e7a5(0x10a)];const _0x43bed4=new DataView(_0x166b9f[_0x52e7a5(0x65b)],_0x166b9f['byteOffset'],_0x588600),_0x163f84=_0x43bed4['getUint32'](0x10,!![]),_0x49f476=new Array(_0x163f84);let _0x1745ac=0x14;for(let _0x580041=0x0;_0x580041<_0x163f84;_0x580041++){const _0x321e13=_0x166b9f[_0x1745ac]|_0x166b9f[_0x1745ac+0x1]<<0x8;_0x1745ac+=0x2,_0x49f476[_0x580041]=_0x755f30(_0x166b9f,_0x1745ac,_0x1745ac+_0x321e13),_0x1745ac+=_0x321e13;}return _0x2fd51e?[_0x43bed4[_0x52e7a5(0x1e4)](0x0,!![]),_0x49f476,_0x43bed4[_0x52e7a5(0x1e4)](0x8,!![])]:_0x49f476;}const _0x3d790f=requireOkdbLogger(),_0x19bd51=requireOkdbPlugins(),{OKDB_STATE:_0x2c29c9,EVENTS:_0x672792}=requireOkdbEnums(),_0x13dc2b=requireStatics();let _0xacc4ab=null,_0x46147d=![],_0x424420=0x1;const _0x1601ad=new Map(),_0x2c02ab=new Set([_0x145d4e(0x11f),_0x145d4e(0x1c1)]),_0x5ef9be=_0x55e72a=>!!_0x55e72a&&_0x2c02ab[_0x145d4e(0x43b)](_0x55e72a[_0x145d4e(0x649)]),_0x9b2dfe=Number(process.env.OKDB_PENDING_RETRY_MS)>0x0?Number(process.env.OKDB_PENDING_RETRY_MS):0x1d4c0;function _0x53e41f(){const _0x3a0cf7=_0x145d4e;!_0x46147d&&(_0x195391()[_0x3a0cf7(0x66b)](_0x23dfc1[_0x3a0cf7(0x29e)]),_0xfda7b8[_0x3a0cf7(0x4d6)](_0x195391()),_0x46147d=!![]);}function _0x195391(){if(!_0xacc4ab)_0xacc4ab=_0x17dad0();return _0xacc4ab;}class _0x58cb04 extends Map{constructor(_0x58139a){const _0x4c130f=_0x145d4e;super(),this[_0x4c130f(0x25a)]=_0x58139a;}['_sync'](){const _0x3653fc=_0x145d4e,_0x2090f9=this[_0x3653fc(0x25a)];if(!_0x2090f9[_0x3653fc(0x109)])return;let _0x55f539;try{_0x55f539=_0x2090f9[_0x3653fc(0x463)]('db',null,_0x3653fc(0x37e),[],![]);}catch{return;}for(const _0x4095d4 of _0x55f539)if(!super[_0x3653fc(0x43b)](_0x4095d4)&&_0x2090f9[_0x3653fc(0x463)]('db',null,'hasEnv',[_0x4095d4],![]))_0x2090f9[_0x3653fc(0x157)](_0x4095d4);}[_0x145d4e(0x576)](_0x487a1e){const _0xa0060e=_0x145d4e,_0x176dff=super[_0xa0060e(0x576)](_0x487a1e);if(_0x176dff!==undefined||typeof _0x487a1e!=='string')return _0x176dff;const _0xcf5351=this[_0xa0060e(0x25a)];if(_0x487a1e==='~processes')return _0xcf5351[_0xa0060e(0x109)]?_0xcf5351[_0xa0060e(0x475)][_0xa0060e(0x590)]??undefined:undefined;if(_0xcf5351[_0xa0060e(0x109)]&&_0xcf5351[_0xa0060e(0x463)]('db',null,_0xa0060e(0x3fa),[_0x487a1e],![]))return _0xcf5351[_0xa0060e(0x157)](_0x487a1e);if(_0xcf5351[_0xa0060e(0x109)]&&typeof _0x487a1e===_0xa0060e(0x48a)&&!_0x487a1e['startsWith']('~')){_0xcf5351[_0xa0060e(0x463)]('db',null,_0xa0060e(0x608),[],![]);if(_0xcf5351[_0xa0060e(0x463)]('db',null,'hasEnv',[_0x487a1e],![]))return _0xcf5351[_0xa0060e(0x157)](_0x487a1e);}return undefined;}['has'](_0x2f0bd1){const _0x5ee289=_0x145d4e;return this[_0x5ee289(0x576)](_0x2f0bd1)!==undefined;}get['size'](){const _0x40962b=_0x145d4e;return this[_0x40962b(0x4d5)](),super[_0x40962b(0x691)];}[_0x145d4e(0xc7)](){const _0x2c58ca=_0x145d4e;return this[_0x2c58ca(0x4d5)](),super[_0x2c58ca(0xc7)]();}[_0x145d4e(0x2af)](){return this['_sync'](),super['values']();}['entries'](){const _0x4b4ae1=_0x145d4e;return this[_0x4b4ae1(0x4d5)](),super[_0x4b4ae1(0x591)]();}[_0x145d4e(0x191)](_0x21d22c,_0x39fce4){const _0x408afc=_0x145d4e;return this['_sync'](),super[_0x408afc(0x191)](_0x21d22c,_0x39fce4);}[Symbol[_0x145d4e(0x16f)]](){const _0x1ee625=_0x145d4e;return this[_0x1ee625(0x4d5)](),super[Symbol[_0x1ee625(0x16f)]]();}}class _0x3d9500{constructor(_0x3b8e19,_0x5b14e9={}){const _0x2874b8=_0x145d4e,_0x24a233=_0x195391();this[_0x2874b8(0x41c)]=_0x3b8e19,this['_uid']=_0x424420++,this[_0x2874b8(0x60b)]='db'+this[_0x2874b8(0x615)],this['options']={..._0x13dc2b[_0x2874b8(0x3ed)],..._0x5b14e9,'auth':_0x5b14e9['auth']?{..._0x5b14e9['auth']}:undefined,'lmdb':{..._0x5b14e9[_0x2874b8(0x699)]||{}}},this[_0x2874b8(0x2b9)]=new _0x423037(),this['events'][_0x2874b8(0x4f7)](0x0),this[_0x2874b8(0x185)]=new Set(),this[_0x2874b8(0x2b9)]['on']('newListener',_0x324f90=>this['_subscribeEvent'](_0x324f90)),this[_0x2874b8(0x23f)]=new _0x3d790f(this),this[_0x2874b8(0x23f)][_0x2874b8(0x78d)](),_0x23dfc1[_0x2874b8(0x79b)](this['_key'],{'_deliver':(_0x3c137a,_0x33528b)=>this[_0x2874b8(0x266)](_0x3c137a,_0x33528b),'_log':_0x13fc3a=>{const _0x2e8991=_0x2874b8;if(this[_0x2e8991(0x365)])this[_0x2e8991(0x365)][_0x2e8991(0x7f5)](_0x13fc3a);const _0x10c7c3=_0x13fc3a&&_0x13fc3a['level'];if(_0x10c7c3&&Object[_0x2e8991(0x50c)][_0x2e8991(0x4c5)][_0x2e8991(0x17f)](this[_0x2e8991(0x23f)],_0x10c7c3)&&typeof this[_0x2e8991(0x23f)][_0x10c7c3]===_0x2e8991(0x5a8)){const _0x1a614d=_0x13fc3a[_0x2e8991(0x54b)];return this[_0x2e8991(0x23f)][_0x10c7c3](_0x13fc3a['msg'],{..._0x13fc3a[_0x2e8991(0x4eb)]||{},..._0x1a614d&&typeof _0x1a614d===_0x2e8991(0x57c)?_0x1a614d:{}});}return this['log'][_0x2e8991(0x1db)](_0x13fc3a);}}),_0x53e41f();try{const _0x5470f1={};if(typeof _0x2874b8(0x495)===_0x2874b8(0x673)||_0x2874b8(0x495)!==_0x2874b8(0x495));const _0xfedbe0={..._0x5b14e9,'_clusterWorker':require('node:cluster')[_0x2874b8(0x4bd)],..._0x5470f1};this['_keyFns']={'instance':null,'envs':new Map()};typeof _0x5b14e9[_0x2874b8(0x78c)]==='function'&&(this[_0x2874b8(0x4db)]['instance']=_0x5b14e9[_0x2874b8(0x78c)],delete _0xfedbe0[_0x2874b8(0x78c)]);if(_0x5b14e9[_0x2874b8(0x5d3)]&&typeof _0x5b14e9['encryptionKeys']==='object'){for(const [_0x451a8e,_0x20912b]of Object['entries'](_0x5b14e9['encryptionKeys']))this[_0x2874b8(0x4db)][_0x2874b8(0x6b6)][_0x2874b8(0x227)](_0x451a8e,_0x20912b);}delete _0xfedbe0['encryptionKeys'],this[_0x2874b8(0x63a)]=new _0x24a233[(_0x2874b8(0x762))](_0x3b8e19,_0xfedbe0,this[_0x2874b8(0x60b)]);}catch(_0x78d7d3){_0x23dfc1['unregisterTarget'](this[_0x2874b8(0x60b)]);throw _0x562c87(_0x78d7d3);}this[_0x2874b8(0xd2)]=_0x2c29c9[_0x2874b8(0x712)],this[_0x2874b8(0x109)]=![],this[_0x2874b8(0x126)]=new _0x58cb04(this),this['_pumper']=new _0x36ab78({'pump':()=>this['_native']['pump']()}),this[_0x2874b8(0x298)]=new _0xfda7b8[(_0x2874b8(0x550))](this),this['_pumper'][_0x2874b8(0x31b)]=()=>_0x23dfc1['checkSignals'](),_0x23dfc1['setKick'](()=>this['_pumper'][_0x2874b8(0x58b)](),this),_0x1601ad[_0x2874b8(0x227)](this[_0x2874b8(0x615)],this),this[_0x2874b8(0x4a8)]={},_0x23dfc1[_0x2874b8(0x681)](this),this[_0x2874b8(0x7b1)]=new _0x55cc58(this),this[_0x2874b8(0xe1)]=new _0x4f45fe(this),this[_0x2874b8(0x10f)]=new _0x23dd9c(this,null,null),this['pipelines']=new _0x2cdd7b(this,null),this['meta']=_0x12c45f(this),this[_0x2874b8(0x1ef)]=_0x4aa3f5(this),this[_0x2874b8(0xcb)]=_0x127eba(this),this['processes']=_0x24aff3(this),this[_0x2874b8(0x790)]=_0x53897a(this),this[_0x2874b8(0x25d)]=new _0x19bd51(this),this[_0x2874b8(0x67e)]=new _0x46d19b(this),this[_0x2874b8(0x364)]=new _0x4759fd(this),this['auth']=new _0x2a4e94(this),this[_0x2874b8(0x1e8)]=new _0x134015(this,null),this['mcp']=new _0x361c86(this),this[_0x2874b8(0x788)]=_0x5b14e9&&_0x5b14e9[_0x2874b8(0x788)]===![]?null:_0x2630cf(_0x2874b8(0x788)),this['api']=_0x2630cf('api'),this[_0x2874b8(0x55f)]=new _0x55358a(this);}[_0x145d4e(0x463)](_0x16abf8,_0x4878de,_0xa8330b,_0x12790d,_0x1b84a0=!![]){const _0x262f2e=_0x145d4e;if(_0x1b84a0&&this[_0x262f2e(0x298)]&&this[_0x262f2e(0x298)][_0x262f2e(0x30b)]['length'])this['_wb'][_0x262f2e(0x686)]();try{return this[_0x262f2e(0x63a)][_0x262f2e(0x17f)](_0x16abf8,_0x4878de,_0xa8330b,_0x12790d);}catch(_0x3d7e81){throw _0x562c87(_0x3d7e81);}finally{if(_0x1b84a0)this[_0x262f2e(0x1e0)]['wake']();}}[_0x145d4e(0x54a)](_0x178eef,_0x3d933c,_0x4fc97d,_0x5b62e4){const _0xfc56f0=_0x145d4e;let _0x3155ee;try{_0x3155ee=this[_0xfc56f0(0x63a)][_0xfc56f0(0x569)](_0x178eef,_0x3d933c,_0x4fc97d,_0x5b62e4);}catch(_0x169c51){throw _0x562c87(_0x169c51);}return _0x3155ee instanceof Uint8Array?_0x952323(_0x3155ee):_0x3155ee[0x0];}[_0x145d4e(0x49a)](_0x1ae5cb){const _0x35968b=_0x145d4e;let _0x436c08=this['_rbuf'];if(_0x436c08&&_0x1ae5cb<=_0x436c08['length'])return _0x436c08;let _0x59f70c=_0x436c08?_0x436c08[_0x35968b(0x5f6)]:_0x4d3aaa;while(_0x59f70c<_0x1ae5cb)_0x59f70c*=0x2;if(_0x59f70c>_0x21509e)return _0x436c08;return _0x436c08=this[_0x35968b(0x706)]=Buffer[_0x35968b(0x2bc)](_0x59f70c),this[_0x35968b(0x63a)][_0x35968b(0x44c)](_0x436c08),_0x436c08;}[_0x145d4e(0x117)](_0x41b69a,_0x11139f,_0x2d2610){const _0x4c2803=_0x145d4e;if(!this['_rbuf'])this[_0x4c2803(0x49a)](0x0);const _0x56050d=this[_0x4c2803(0x63a)][_0x4c2803(0x1c6)](_0x41b69a,_0x11139f,_0x2d2610);if(typeof _0x56050d===_0x4c2803(0x51e))return _0x470f23(this['_rbuf'],_0x56050d);if(_0x56050d===undefined||_0x56050d===null)return _0x56050d;return this[_0x4c2803(0x49a)](_0x56050d[_0x4c2803(0x5f6)]),_0x470f23(_0x56050d);}[_0x145d4e(0x535)](_0x9c3fc1,_0x846c60,_0x32edb5){const _0x49bbbf=_0x145d4e;let _0x59233b=this[_0x49bbbf(0x30f)];if(!_0x59233b){_0x59233b=this[_0x49bbbf(0x30f)]=Buffer['allocUnsafeSlow'](_0x3aa6ff),this[_0x49bbbf(0x63a)][_0x49bbbf(0x6a3)](_0x59233b),this['_tids']=new Map();if(!this[_0x49bbbf(0x706)])this[_0x49bbbf(0x49a)](0x0);}const _0x39866f=_0x4a0840(_0x32edb5,_0x59233b);if(_0x39866f<0x0)return _0x3b597b;let _0x333814=this[_0x49bbbf(0xdc)][_0x49bbbf(0x576)](_0x9c3fc1);if(_0x333814===undefined)this[_0x49bbbf(0xdc)][_0x49bbbf(0x227)](_0x9c3fc1,_0x333814=new Map());let _0x2d5031=_0x333814['get'](_0x846c60);if(_0x2d5031===undefined)_0x333814['set'](_0x846c60,_0x2d5031=this['_native'][_0x49bbbf(0x106)](_0x9c3fc1,_0x846c60));if(_0x2d5031<0x0)return _0x3b597b;const _0x150a88=this[_0x49bbbf(0x63a)][_0x49bbbf(0x1cc)](_0x2d5031,_0x39866f);if(typeof _0x150a88===_0x49bbbf(0x51e))return _0x470f23(this['_rbuf'],_0x150a88);if(_0x150a88===undefined||_0x150a88===null)return _0x150a88;return this[_0x49bbbf(0x49a)](_0x150a88[_0x49bbbf(0x5f6)]),_0x470f23(_0x150a88);}[_0x145d4e(0x75e)](_0x1b476b,_0x2e2cbf,_0x19c0bf){const _0x23d296=_0x145d4e;if(!this[_0x23d296(0x706)])this[_0x23d296(0x49a)](0x0);let _0x120e2a;try{_0x120e2a=this[_0x23d296(0x63a)][_0x23d296(0x603)](_0x1b476b,_0x2e2cbf,_0x19c0bf);}catch(_0x4a4203){throw _0x562c87(_0x4a4203);}const _0x460d80=_0x2e2cbf===_0x23d296(0x5b8),_0x5da228=_0x460d80?_0x19c0bf[0x1]:_0x2e2cbf;let _0x590427=this[_0x23d296(0x706)],_0x51ce32=_0x120e2a;if(_0x120e2a instanceof Uint8Array)this[_0x23d296(0x49a)](_0x120e2a[_0x23d296(0x5f6)]),_0x590427=_0x120e2a,_0x51ce32=_0x120e2a[_0x23d296(0x5f6)];else{if(typeof _0x120e2a!==_0x23d296(0x51e))return _0x120e2a[0x0];}if(_0x5da228===_0x23d296(0x139))return _0x4d4194(_0x590427,_0x51ce32,_0x460d80);if(_0x5da228===_0x23d296(0x249))return _0x470f23(_0x590427,_0x51ce32);return _0xc643af(_0x470f23(_0x590427,_0x51ce32),_0x460d80);}['_callMacro'](_0x43d9df,_0x1c52c2,_0x256d06,_0x4beb4b,_0x3b7db6=!![],_0x1e2b25=!![]){const _0x309d83=_0x145d4e,_0x42a5a6=()=>this[_0x309d83(0x7eb)](()=>this['_call'](_0x43d9df,_0x1c52c2,_0x256d06,_0x4beb4b,_0x3b7db6));if(!_0x1e2b25)return _0x42a5a6();return this[_0x309d83(0x5a4)](_0x42a5a6);}[_0x145d4e(0x5a4)](_0x23727d){const _0x5e4b64=_0x145d4e;return _0x23727d()[_0x5e4b64(0x2fc)](async _0x45226d=>{const _0x3ac013=_0x5e4b64;if(!_0x5ef9be(_0x45226d))throw _0x45226d;const _0x206362=Date[_0x3ac013(0x55e)]()+_0x9b2dfe;let _0x294a09=0x1;while(_0x5ef9be(_0x45226d)&&Date[_0x3ac013(0x55e)]()<_0x206362){await new Promise(_0x3ec117=>setTimeout(_0x3ec117,_0x294a09)),_0x294a09=Math[_0x3ac013(0x4b5)](_0x294a09*0x2,0x14);try{return await _0x23727d();}catch(_0x29cf3a){_0x45226d=_0x29cf3a;}}throw _0x45226d;});}[_0x145d4e(0xf6)](_0x520b1f){const _0x2c17bb=_0x145d4e;if(_0x23dfc1[_0x2c17bb(0x453)]())return Promise[_0x2c17bb(0x4ef)](_0x520b1f);return new Promise(_0x2aa415=>setImmediate(()=>_0x2aa415(_0x520b1f)));}[_0x145d4e(0x29b)](_0x3e9595){const _0x329e4a=_0x145d4e;if(_0x23dfc1[_0x329e4a(0x453)]())return Promise[_0x329e4a(0x4ef)](_0x3e9595);return this['_afterDurable']()['then'](()=>_0x3e9595);}[_0x145d4e(0x6ff)](){return new Promise(_0x54d29a=>setImmediate(()=>{const _0x23772b=_0x458f;let _0x48fded;try{_0x48fded=this[_0x23772b(0x63a)][_0x23772b(0x26b)]();}catch{return _0x54d29a();}_0xfda7b8[_0x23772b(0x21c)](_0x48fded,_0x54d29a);}));}[_0x145d4e(0x7eb)](_0x4aeba9){return new Promise((_0x415bbd,_0x379e40)=>setImmediate(()=>{try{_0x415bbd(_0x4aeba9());}catch(_0x153cb9){_0x379e40(_0x153cb9);}}));}[_0x145d4e(0x2e0)](_0x2954c2,_0x589731,_0x1cbc06){return _0x583aa1(_0x2954c2,_0x589731,_0x1cbc06);}[_0x145d4e(0x51b)](_0xbd9cab){const _0x177fc5=_0x145d4e;if(typeof _0xbd9cab!==_0x177fc5(0x48a)||this[_0x177fc5(0x185)][_0x177fc5(0x43b)](_0xbd9cab)||_0xbd9cab===_0x177fc5(0x7dd)||_0xbd9cab==='removeListener')return;this[_0x177fc5(0x185)]['add'](_0xbd9cab);try{this[_0x177fc5(0x63a)][_0x177fc5(0x17f)](_0x177fc5(0x2b9),null,_0x177fc5(0x2b5),[this[_0x177fc5(0x60b)],_0xbd9cab]);}catch{}}['_deliverEvent'](_0x1294b1,_0x410634){const _0x53afe2=_0x145d4e;this[_0x53afe2(0x2b9)]['emit'](_0x1294b1,_0x410634);}async['_resolveKeys'](){const _0x22fd63=_0x145d4e,_0x5dc3a8=this['_keyFns'];if(_0x5dc3a8[_0x22fd63(0x57e)])this[_0x22fd63(0x2c0)](null,await _0x5dc3a8[_0x22fd63(0x57e)](null),!![]);for(const [_0x994141,_0x3c4e3c]of _0x5dc3a8['envs'])this[_0x22fd63(0x2c0)](_0x994141,typeof _0x3c4e3c===_0x22fd63(0x5a8)?await _0x3c4e3c(_0x994141):_0x3c4e3c,typeof _0x3c4e3c===_0x22fd63(0x5a8));(_0x5dc3a8['instance']||[..._0x5dc3a8[_0x22fd63(0x6b6)]['values']()]['some'](_0x402316=>typeof _0x402316===_0x22fd63(0x5a8)))&&!this[_0x22fd63(0x216)]&&(this[_0x22fd63(0x216)]=_0xdb8d7a=>{const _0x4f921c=_0x22fd63,_0x18dcc1=_0xdb8d7a&&_0xdb8d7a['env']!=null?_0xdb8d7a[_0x4f921c(0x78b)]:null,_0x2b6485=_0x18dcc1==null?_0x5dc3a8[_0x4f921c(0x57e)]:_0x5dc3a8[_0x4f921c(0x6b6)][_0x4f921c(0x576)](_0x18dcc1);if(typeof _0x2b6485!==_0x4f921c(0x5a8))return;Promise[_0x4f921c(0x4ef)]()[_0x4f921c(0x5eb)](()=>_0x2b6485(_0x18dcc1))[_0x4f921c(0x5eb)](_0x19373b=>this[_0x4f921c(0x2c0)](_0x18dcc1,_0x19373b,!![]))[_0x4f921c(0x2fc)](_0x25ae58=>this[_0x4f921c(0x23f)][_0x4f921c(0xdb)]('encryption\x20key\x20function\x20failed:\x20'+(_0x25ae58&&_0x25ae58['message']),{'env':_0x18dcc1}));},this['events']['on']('encryption:key-changed',this['_keyListener']));}[_0x145d4e(0x2c0)](_0x287084,_0x4df817,_0x5d444e){const _0x3c0141=_0x145d4e;if(_0x4df817==null)throw new _0x5a27ab(_0x3c0141(0x567)+(_0x287084?_0x3c0141(0x68b)+_0x287084+'\x22':'')+_0x3c0141(0x378),_0x3c0141(0xd8));this['_native'][_0x3c0141(0x17f)]('db',null,_0x3c0141(0x130),[_0x287084,_0x4df817,!!_0x5d444e]);}async['changeEncryptionKey'](_0x57feab){const _0x44a0d1=_0x145d4e;this[_0x44a0d1(0x2ff)]();const {env:env=null,to:_0x311db1}=_0x253702(_0x57feab),_0x3fadb5=typeof _0x311db1===_0x44a0d1(0x5a8),_0xde63d8=_0x3fadb5?await _0x311db1(env):_0x311db1;if(_0xde63d8==null)throw _0x3be7da(_0x44a0d1(0x787),_0x44a0d1(0x612),_0xde63d8);const _0x3b7a22=this[_0x44a0d1(0x463)]('db',null,'changeEncryptionKey',[env,_0xde63d8,_0x3fadb5]);if(_0x3fadb5){if(env==null)this['_keyFns'][_0x44a0d1(0x57e)]=_0x311db1;else this['_keyFns']['envs']['set'](env,_0x311db1);}return _0x3b7a22;}async[_0x145d4e(0x4aa)](_0xc52be4){const _0x4aefd3=_0x145d4e;this['_assertOpen']();const _0x34be03=_0x253702(_0xc52be4);if(!_0x34be03['env'])throw _0x3be7da(_0x4aefd3(0x619),_0x4aefd3(0x593),_0x34be03[_0x4aefd3(0x78b)]);let _0x8af36c=_0x34be03['to'];const _0x467053=typeof _0x8af36c===_0x4aefd3(0x5a8);if(_0x467053)_0x8af36c=await _0x34be03['to'](_0x34be03[_0x4aefd3(0x78b)]);const _0x59a0fc=await this[_0x4aefd3(0x7eb)](()=>this[_0x4aefd3(0x463)]('db',null,_0x4aefd3(0x4aa),[_0x34be03[_0x4aefd3(0x78b)],'to'in _0x34be03?_0x8af36c:undefined,_0x467053]));if(_0x467053)this[_0x4aefd3(0x4db)]['envs'][_0x4aefd3(0x227)](_0x34be03[_0x4aefd3(0x78b)],_0x34be03['to']);return _0x59a0fc;}async[_0x145d4e(0x30e)](){const _0x5bb1f3=_0x145d4e;if(this['state']===_0x2c29c9[_0x5bb1f3(0x1ce)])return;if(this['state']!==_0x2c29c9[_0x5bb1f3(0x712)])throw new _0x5a27ab(_0x5bb1f3(0x4ec),_0x5bb1f3(0x190),{'state':this[_0x5bb1f3(0xd2)]});this[_0x5bb1f3(0xd2)]=_0x2c29c9[_0x5bb1f3(0x578)],this[_0x5bb1f3(0x365)]=[];try{try{await this[_0x5bb1f3(0x3f4)](),await this[_0x5bb1f3(0x7eb)](()=>this[_0x5bb1f3(0x63a)][_0x5bb1f3(0x30e)]());}catch(_0x758131){throw _0x562c87(_0x758131);}}catch(_0x124f08){this['state']=_0x2c29c9[_0x5bb1f3(0x496)],this[_0x5bb1f3(0x365)]=null,this['_teardownNative']();throw _0x124f08;}this[_0x5bb1f3(0x109)]=!![],this['state']=_0x2c29c9[_0x5bb1f3(0x1ce)];try{this['_call']('db',null,_0x5bb1f3(0x4ca),[this[_0x5bb1f3(0x25d)][_0x5bb1f3(0x521)][_0x5bb1f3(0x25e)](_0x3f78fc=>_0x3f78fc[_0x5bb1f3(0x6f6)]?.['name'])[_0x5bb1f3(0x127)](Boolean)],![]),await this[_0x5bb1f3(0x25d)][_0x5bb1f3(0x6ae)]();}catch(_0x27f9a5){this[_0x5bb1f3(0xd2)]=_0x2c29c9['STOPPING'];try{this[_0x5bb1f3(0x63a)]['close']();}catch{}this[_0x5bb1f3(0xd2)]=_0x2c29c9[_0x5bb1f3(0x496)],this[_0x5bb1f3(0x109)]=![],this[_0x5bb1f3(0x38e)]();throw _0x27f9a5;}for(const _0x14cf3c of this[_0x5bb1f3(0x463)]('db',null,'envNames',[],![]))if(!_0x14cf3c[_0x5bb1f3(0x377)]('~'))this[_0x5bb1f3(0x157)](_0x14cf3c);try{if(this['_call']('db',null,_0x5bb1f3(0x3fa),['~log'],![])){this[_0x5bb1f3(0x562)]=this[_0x5bb1f3(0x157)](_0x5bb1f3(0x3de));const _0x4452f7=new Set(this[_0x5bb1f3(0x23f)][_0x5bb1f3(0x162)]);this[_0x5bb1f3(0x40c)]=this[_0x5bb1f3(0x23f)][_0x5bb1f3(0x20e)](this[_0x5bb1f3(0x562)],this['id']);const _0xee8c65=[...this['log'][_0x5bb1f3(0x162)]][_0x5bb1f3(0x58a)](_0x3a2133=>!_0x4452f7['has'](_0x3a2133)),_0x4cde16=this[_0x5bb1f3(0x463)]('db',null,_0x5bb1f3(0x209),[],![]);for(const _0x10798c of(this['_bootLog']??[])[_0x5bb1f3(0x1be)](_0x4cde16))_0xee8c65?.(_0x10798c);}}catch{}this[_0x5bb1f3(0x365)]=null,this[_0x5bb1f3(0x63a)][_0x5bb1f3(0x242)](()=>this['_pumper'][_0x5bb1f3(0x58b)]()),this[_0x5bb1f3(0x1e0)][_0x5bb1f3(0x6ae)]();}get['_viewRebuildChain'](){const _0x457329=()=>{const _0x279276=_0x458f;if(!this[_0x279276(0x109)])return![];for(const _0x78e6bf of this[_0x279276(0x463)]('db',null,_0x279276(0x37e),[],![])){if(!_0x78e6bf[_0x279276(0x377)]('~')&&this[_0x279276(0x463)]('views',_0x78e6bf,_0x279276(0x4ed),[],![]))return!![];}return![];};return((async()=>{const _0x3c0bad=_0x458f;while(_0x457329())await this[_0x3c0bad(0x1e0)][_0x3c0bad(0x50d)](0xfa);})());}async[_0x145d4e(0x6d1)](){const _0x1507ab=_0x145d4e;return this[_0x1507ab(0x338)]('db',null,_0x1507ab(0x2d3),[]);}async[_0x145d4e(0x3ce)](){const _0x4fd5e9=_0x145d4e;if(this['state']===_0x2c29c9[_0x4fd5e9(0x496)])return;if(this[_0x4fd5e9(0xd2)]!==_0x2c29c9[_0x4fd5e9(0x1ce)])throw new _0x5a27ab(_0x4fd5e9(0x46f),_0x4fd5e9(0x190),{'state':this[_0x4fd5e9(0xd2)]});this[_0x4fd5e9(0xd2)]=_0x2c29c9[_0x4fd5e9(0x75d)],this[_0x4fd5e9(0x109)]=![];let _0x172562=null;if(this['http']['servers'][_0x4fd5e9(0x5f6)])try{await this['http'][_0x4fd5e9(0x3ce)]();}catch(_0x283e10){_0x172562=_0x283e10;}if(this['__adminRelay']){try{this['__adminRelay']['detachFeed'](),this[_0x4fd5e9(0x618)]['detach']();}catch{}this['__adminRelay']=null;}try{this[_0x4fd5e9(0xcc)]?.[_0x4fd5e9(0x415)]?.();}catch{}try{await this[_0x4fd5e9(0x25d)][_0x4fd5e9(0x415)]();}catch(_0x5d4687){_0x172562=_0x5d4687;}for(const _0x3c91b8 of[...Map['prototype']['values'][_0x4fd5e9(0x17f)](this[_0x4fd5e9(0x126)])]){try{await _0x3c91b8['processor'][_0x4fd5e9(0x746)]();}catch{}try{await _0x3c91b8[_0x4fd5e9(0x10f)][_0x4fd5e9(0x415)]();}catch{}}for(const _0x5670e8 of[()=>this['sync']['stop'](),()=>this[_0x4fd5e9(0xe1)]['stop'](),()=>this[_0x4fd5e9(0x7b1)]&&this[_0x4fd5e9(0x7b1)][_0x4fd5e9(0x415)]?.()]){try{await _0x5670e8();}catch{}}const _0x23a603=this[_0x4fd5e9(0x308)][_0x4fd5e9(0x511)]??0x7530,_0x2b9f60=[];for(const _0x45c11b of[...Map[_0x4fd5e9(0x50c)][_0x4fd5e9(0x2af)]['call'](this[_0x4fd5e9(0x126)])]){if(_0x45c11b[_0x4fd5e9(0x30b)]?.[_0x4fd5e9(0x75b)]?.[_0x4fd5e9(0x691)]>0x0)_0x2b9f60[_0x4fd5e9(0x7f5)](_0x45c11b[_0x4fd5e9(0x30b)]['stopAll'](_0x23a603));}if(_0x2b9f60[_0x4fd5e9(0x5f6)]>0x0)await Promise[_0x4fd5e9(0x3e4)](_0x2b9f60);try{this[_0x4fd5e9(0x40c)]?.();}catch{}this['_detachLogSink']=null;try{await this[_0x4fd5e9(0x298)][_0x4fd5e9(0x527)]();}catch{}this[_0x4fd5e9(0x1e0)]['stop']();try{await this['_macro'](()=>this[_0x4fd5e9(0x63a)][_0x4fd5e9(0x3ce)]());}catch(_0x18150b){_0x172562=_0x172562||_0x562c87(_0x18150b);}this['state']=_0x2c29c9[_0x4fd5e9(0x496)],this['_teardownNative'](),Map[_0x4fd5e9(0x50c)][_0x4fd5e9(0x635)]['call'](this['_envs']);if(_0x172562)throw _0x172562;}['_teardownNative'](){const _0x52986c=_0x145d4e;this['_pumper'][_0x52986c(0x415)]();try{this['_native'][_0x52986c(0x242)](null);}catch{}try{this['_native']['release']();}catch{}this[_0x52986c(0x706)]=null,this[_0x52986c(0x30f)]=null,this[_0x52986c(0xdc)]=null,_0x23dfc1[_0x52986c(0x59f)](this['_key']),_0x23dfc1[_0x52986c(0x6e5)](this),_0x1601ad['delete'](this[_0x52986c(0x615)]);if(_0x23dfc1[_0x52986c(0x688)](this)){const _0x2a28d7=[..._0x1601ad[_0x52986c(0x2af)]()]['pop']();if(_0x2a28d7)_0x23dfc1['setKick'](()=>_0x2a28d7['_pumper'][_0x52986c(0x58b)](),_0x2a28d7);else _0x23dfc1[_0x52986c(0x761)](()=>{},null);}}get['id'](){const _0x3f3f70=_0x145d4e;return this[_0x3f3f70(0x463)]('db',null,'id',[],![]);}[_0x145d4e(0x4fd)](_0x40f693){const _0x51ad3c=_0x145d4e;return this[_0x51ad3c(0x78b)](_0x51ad3c(0x132))[_0x51ad3c(0x4fd)](_0x40f693);}get['_tokenSecret'](){const _0x1909e9=_0x145d4e;return this[_0x1909e9(0x293)][_0x1909e9(0x576)]('__tokenSecret');}get[_0x145d4e(0x11a)](){const _0x2c1fc4=_0x145d4e;return this[_0x2c1fc4(0x364)][_0x2c1fc4(0x11a)];}get[_0x145d4e(0x2bf)](){const _0x4bc132=_0x145d4e;return this[_0x4bc132(0x364)][_0x4bc132(0x2bf)];}get[_0x145d4e(0x75f)](){const _0x20f369=_0x145d4e;if(!this[_0x20f369(0x109)]||!this[_0x20f369(0x463)]('db',null,_0x20f369(0x1b1),[],![]))return undefined;if(!this[_0x20f369(0x156)]){const _0x236588=requireOkdbSubscriptionsStore(),_0x7d03c4=new _0x236588(this,this['options']&&this[_0x20f369(0x308)][_0x20f369(0x323)]);_0x7d03c4[_0x20f369(0x454)]=this[_0x20f369(0x78b)](_0x20f369(0x2f6));const {compileFilter:_0x6b61ce}=requireOkdbQueryFilter(),_0x5ed7e8=(_0x4b4b68,_0x30d56b)=>{if(_0x4b4b68==null)return![];try{return _0x6b61ce(_0x4b4b68)(_0x30d56b);}catch{return![];}};this[_0x20f369(0x156)]={'store':_0x7d03c4,'router':{'_matches':_0x5ed7e8}};}return this[_0x20f369(0x156)];}get['_role'](){const _0x74941f=_0x145d4e;return this[_0x74941f(0x17c)];}get[_0x145d4e(0x19d)](){const _0x4c3fde=_0x145d4e;return this[_0x4c3fde(0x463)]('db',null,'formerIds',[],![]);}get[_0x145d4e(0x17c)](){const _0x372899=_0x145d4e;return{...this[_0x372899(0x463)]('db',null,_0x372899(0x17c),[],![])};}get[_0x145d4e(0x28c)](){const _0x3a5331=_0x145d4e;return require$$29[_0x3a5331(0x28c)];}get[_0x145d4e(0x218)](){const _0x35a918=_0x145d4e;return this[_0x35a918(0x463)]('db',null,'quarantined',[],![]);}get[_0x145d4e(0x6b7)](){return this['_call']('db',null,'info',[],![]);}[_0x145d4e(0x776)](){return this['_call']('db',null,'resolvedOptions',[],![]);}['diag'](){const _0x20d4b0=_0x145d4e;return this[_0x20d4b0(0x463)]('db',null,_0x20d4b0(0x6c6),[],![]);}async[_0x145d4e(0x113)](_0x3cfaea){const _0x33eed7=_0x145d4e;this['_assertOpen'](),this[_0x33eed7(0x463)]('db',null,'setProcessingConfig',[_0x3cfaea],![]);}[_0x145d4e(0x369)](){const _0x1d8dbe=_0x145d4e,_0x3c48ec=Date[_0x1d8dbe(0x55e)]();if(this[_0x1d8dbe(0x356)]&&_0x3c48ec-this[_0x1d8dbe(0x356)]['at']<0xfa)return this[_0x1d8dbe(0x356)]['value'];const _0x56dba3=this[_0x1d8dbe(0x463)]('db',null,_0x1d8dbe(0x369),[],![]);return this[_0x1d8dbe(0x356)]={'at':_0x3c48ec,'value':_0x56dba3},_0x56dba3;}['_assertOpen'](){const _0x29b96d=_0x145d4e;if(!this[_0x29b96d(0x109)])throw new _0x5a27ab(_0x29b96d(0x46f),_0x29b96d(0x190),{'state':this[_0x29b96d(0xd2)]});}get[_0x145d4e(0x574)](){const _0x4eddb8=_0x145d4e;if(this[_0x4eddb8(0xd2)]===_0x2c29c9['STOPPED']||!this[_0x4eddb8(0x109)])return null;if(this[_0x4eddb8(0x463)]('db',null,_0x4eddb8(0x171),[],![])==null)return null;if(!this[_0x4eddb8(0x20b)]){const _0x26dabb=this;this['_busFacade']={get 'state'(){const _0x14981f=_0x4eddb8;return _0x26dabb[_0x14981f(0x463)]('db',null,_0x14981f(0x171),[],![]);},get 'magic'(){const _0x3b1f5b=_0x4eddb8;return Buffer['from'](_0x3b1f5b(0x258)+_0x26dabb['id']);},get 'isRunning'(){const _0x1bbd97=_0x4eddb8;return _0x26dabb[_0x1bbd97(0x463)]('db',null,_0x1bbd97(0x171),[],![])==='started';},'emit'(_0x4a6449,_0x2c8426=''){const _0x2ae9b4=_0x4eddb8;_0x26dabb[_0x2ae9b4(0x463)]('db',null,_0x2ae9b4(0x7db),[_0x4a6449,String(_0x2c8426)],![]);}};}return this[_0x4eddb8(0x20b)];}[_0x145d4e(0x3b3)](_0xf9d0a7,_0x88e6ae){const _0xc09c54=_0x145d4e;this[_0xc09c54(0x574)]?.[_0xc09c54(0x74a)](_0xc09c54(0x4c2),JSON[_0xc09c54(0x745)]({'kind':_0xc09c54(0x4e0),'scope':_0xf9d0a7,'key':_0x88e6ae}));}get[_0x145d4e(0x468)](){const _0x203c01=_0x145d4e;return this['_locks']||(this[_0x203c01(0xb6)]=new(requireLock())['NativeLock'](this,'~system',_0x203c01(0x4df)));}get['_rootDb'](){const _0x21f055=_0x145d4e;return this[_0x21f055(0x6b8)]?this[_0x21f055(0x6b8)]['db']:undefined;}get[_0x145d4e(0x160)](){const _0x547425=_0x145d4e,_0x1f19f7=this['_systemEnv']?.[_0x547425(0x1aa)];if(!_0x1f19f7)return null;const _0x556fce=_0x1f19f7[_0x547425(0x5b2)]()[_0x547425(0x58a)](_0x491afb=>_0x491afb[_0x547425(0x4eb)]?.[_0x547425(0x397)]===_0x547425(0x6a5));return _0x556fce?_0x1f19f7[_0x547425(0x43d)](_0x556fce['id'],_0x556fce['cursorKey']):null;}get[_0x145d4e(0x6b8)](){const _0x21a1ec=_0x145d4e;return this[_0x21a1ec(0x109)]?this[_0x21a1ec(0x126)][_0x21a1ec(0x576)](_0x21a1ec(0x74e)):undefined;}['_ensureEnv'](_0x246ead){const _0x1b99a3=_0x145d4e;let _0x310f33=Map['prototype'][_0x1b99a3(0x576)][_0x1b99a3(0x17f)](this[_0x1b99a3(0x126)],_0x246ead);if(!_0x310f33){_0x310f33=new _0x4976d2(this,_0x246ead),Map[_0x1b99a3(0x50c)]['set'][_0x1b99a3(0x17f)](this['_envs'],_0x246ead,_0x310f33);if(_0x246ead===_0x1b99a3(0x132))this[_0x1b99a3(0x69d)]=_0x310f33;}return _0x310f33;}[_0x145d4e(0x78b)](_0x101a1a=_0x145d4e(0x132)){const _0x509482=_0x145d4e,_0xb4b666=this[_0x509482(0x126)][_0x509482(0x576)](_0x101a1a);if(_0xb4b666)return _0xb4b666;if(this['_isOpen']&&this[_0x509482(0x463)]('db',null,_0x509482(0x3fa),[_0x101a1a],![]))return this[_0x509482(0x157)](_0x101a1a);throw new _0x5a27ab('Environment\x20\x22'+_0x101a1a+_0x509482(0x13d),'ENV_NOT_FOUND');}get[_0x145d4e(0x132)](){const _0x1dc46d=_0x145d4e;return this[_0x1dc46d(0x78b)]('default');}get[_0x145d4e(0x490)](){const _0x53eadb=_0x145d4e;return this[_0x53eadb(0x126)]['get'](_0x53eadb(0x132))??this[_0x53eadb(0x69d)];}get[_0x145d4e(0x204)](){return this['_defaultEnv']['files'];}get[_0x145d4e(0x30b)](){const _0x4313e7=_0x145d4e;return this['_defaultEnv'][_0x4313e7(0x30b)];}[_0x145d4e(0x22b)](_0xf44151){const _0x3ff1dc=_0x145d4e;if(!this[_0x3ff1dc(0x109)])return null;return this['_call']('db',null,'instanceTimerArmed',[_0xf44151],![])?{'ref'(){},'unref'(){}}:null;}get[_0x145d4e(0x67b)](){const _0x130ded=_0x145d4e;return this['_timerHandle'](_0x130ded(0x4d8));}[_0x145d4e(0x764)](){const _0xe492e6=_0x145d4e;return this[_0xe492e6(0x463)]('db',null,_0xe492e6(0x533),[],!![]);}get[_0x145d4e(0x6e4)](){const _0x338e86=_0x145d4e;return this[_0x338e86(0x22b)]('license');}get['_writerWatchdogInterval'](){const _0x20a479=_0x145d4e;return this[_0x20a479(0x22b)](_0x20a479(0x5d5));}get[_0x145d4e(0x734)](){const _0x5a7ee3=_0x145d4e;return this[_0x5a7ee3(0x78b)](_0x5a7ee3(0x132))[_0x5a7ee3(0x734)];}get['workers'](){const _0x5ef065=_0x145d4e;throw new _0x5a27ab(_0x5ef065(0x727),_0x5ef065(0x636));}get[_0x145d4e(0x1aa)](){const _0x91b9e8=_0x145d4e;return this[_0x91b9e8(0x490)][_0x91b9e8(0x1aa)];}get['views'](){const _0x2376d9=_0x145d4e;return this[_0x2376d9(0x490)][_0x2376d9(0x290)];}async[_0x145d4e(0x431)](_0x358d7f,_0x3e406b={}){const _0x1504eb=_0x145d4e;this[_0x1504eb(0x2ff)]();if(_0x3e406b&&typeof _0x3e406b['encryptionKey']===_0x1504eb(0x5a8)){const _0x49ae07=_0x3e406b[_0x1504eb(0x78c)];this[_0x1504eb(0x2c0)](_0x358d7f,await _0x49ae07(_0x358d7f),!![]),this[_0x1504eb(0x4db)][_0x1504eb(0x6b6)][_0x1504eb(0x227)](_0x358d7f,_0x49ae07),_0x3e406b={..._0x3e406b,'encryptionKey':!![]};}return this[_0x1504eb(0x463)]('db',null,_0x1504eb(0x431),[_0x358d7f,_0x3e406b]),this[_0x1504eb(0x157)](_0x358d7f);}async[_0x145d4e(0x6ca)](_0x2e2a3e){const _0x2ce7bd=_0x145d4e;if(!this[_0x2ce7bd(0x109)])throw new _0x5a27ab(_0x2ce7bd(0x2e2)+_0x2e2a3e+'\x22)\x20before\x20open()','INVALID_STATE');return this[_0x2ce7bd(0x463)]('db',null,_0x2ce7bd(0x6ca),[_0x2e2a3e]),this['_ensureEnv'](_0x2e2a3e);}get[_0x145d4e(0x4cb)](){const _0x514fd8=_0x145d4e;if(!this[_0x514fd8(0x618)]&&this['_isOpen']){const _0x23ffd0=requireOkdbRelay(),_0x48a73c=new _0x23ffd0(this,this['options']?.[_0x514fd8(0x788)]?.[_0x514fd8(0x7dc)]??{});_0x48a73c[_0x514fd8(0x341)](),_0x48a73c[_0x514fd8(0x12f)]=!![],this[_0x514fd8(0x618)]=_0x48a73c;}return this[_0x514fd8(0x618)]??null;}set['_adminRelay'](_0x1c84ac){const _0x2e1d52=_0x145d4e;this[_0x2e1d52(0x618)]=_0x1c84ac;}get['_quantumGate'](){const _0x464b84=_0x145d4e;let _0x482c68=0x0;if(this[_0x464b84(0x109)])for(const [_0x44c185]of Map[_0x464b84(0x50c)][_0x464b84(0x591)][_0x464b84(0x17f)](this[_0x464b84(0x126)])){try{_0x482c68+=this[_0x464b84(0x463)](_0x464b84(0xbb),_0x44c185,_0x464b84(0x165),[],![])||0x0;}catch{}}return{'total':_0x482c68,'maxObserved':_0x482c68>0x0?0x1:0x0,'inFlight':0x0};}async[_0x145d4e(0x736)](_0x2e3c17){const _0x2d3fb4=_0x145d4e,_0x5b89a8=this[_0x2d3fb4(0x126)][_0x2d3fb4(0x576)](_0x2e3c17);if(_0x5b89a8)return _0x5b89a8;if(!this[_0x2d3fb4(0x463)]('db',null,_0x2d3fb4(0x3fa),[_0x2e3c17],![]))throw new Error(_0x2d3fb4(0x383)+_0x2e3c17+_0x2d3fb4(0x478));return this[_0x2d3fb4(0x6ca)](_0x2e3c17);}async['_closeEnvLocally'](_0x17d8cd){const _0x35421b=_0x145d4e,_0x46e588=this[_0x35421b(0x463)]('db',null,'closeEnvLocally',[_0x17d8cd]);return this['_envs'][_0x35421b(0x32d)](_0x17d8cd),_0x46e588;}async[_0x145d4e(0x7de)](_0x309713,_0x2d6cb6={}){const _0xb8e725=_0x145d4e;this[_0xb8e725(0x2ff)]();const _0x2eef31=this[_0xb8e725(0x463)]('db',null,_0xb8e725(0x7de),[_0x309713,_0x2d6cb6]);return this['_envs'][_0xb8e725(0x32d)](_0x309713),_0x2eef31;}static get[_0x145d4e(0x3ed)](){const _0xea16df=_0x145d4e;return _0x13dc2b[_0xea16df(0x3ed)];}static get['KNOWN_OPTIONS'](){const _0x4173ea=_0x145d4e;return _0x13dc2b[_0x4173ea(0x3be)];}static get[_0x145d4e(0x43c)](){return _0x13dc2b['_OPTION_HINTS'];}static async[_0x145d4e(0x24e)](_0x536873,_0x45b475){const _0x556bc8=_0x145d4e;return _0x583aa1('db',_0x556bc8(0x24e),[_0x536873,_0x45b475]);}static[_0x145d4e(0x105)](_0x4022d3){const _0x31e285=_0x145d4e;return _0x583aa1('db',_0x31e285(0x105),[_0x4022d3]);}static[_0x145d4e(0x4ba)](_0x1e3f98,_0x570522){const _0x2eb7cf=_0x145d4e;_0x583aa1(_0x2eb7cf(0x290),_0x2eb7cf(0x4ba),[_0x1e3f98,_0x570522]);}static[_0x145d4e(0x196)](_0x104bd6,_0x5a977d){const _0x1c1fc6=_0x145d4e;_0x583aa1(_0x1c1fc6(0x290),_0x1c1fc6(0x196),[_0x104bd6,_0x5a977d]);}static[_0x145d4e(0x2c6)](){}['equal'](_0x4d3f8f,_0x45e665){const _0x1a0438=_0x145d4e;return require$$16[_0x1a0438(0x4b0)](_0x4d3f8f,_0x45e665);}}_0x3d9500[_0x145d4e(0x765)]=_0xfeca90,Object[_0x145d4e(0x4a2)](_0x3d9500,_0x145d4e(0x7b8),{'get'(){const _0x2e0f17=_0x145d4e;return _0x3d9500[_0x2e0f17(0x7b7)]||(_0x3d9500[_0x2e0f17(0x7b7)]=new Set());},'set'(_0x1bccad){_0x3d9500['__warned']=_0x1bccad;try{_0x583aa1('db','resetUnknownOptionsWarned',[]);}catch{}},'configurable':!![]});for(const _0x49ba8e of[_0x145d4e(0x316),_0x145d4e(0x778),_0x145d4e(0x540),_0x145d4e(0x37c),_0x145d4e(0x720),_0x145d4e(0x730),_0x145d4e(0x228),'get','getMany',_0x145d4e(0x45e),_0x145d4e(0x783),_0x145d4e(0x5ec),_0x145d4e(0x139),_0x145d4e(0x34f),_0x145d4e(0x602),_0x145d4e(0x206),'byIndex',_0x145d4e(0x426),'query',_0x145d4e(0x559),_0x145d4e(0x5a0),_0x145d4e(0x5bb),_0x145d4e(0x4f2),_0x145d4e(0x71f),_0x145d4e(0x7ab),_0x145d4e(0x7d2),'dropType',_0x145d4e(0x703),_0x145d4e(0x13c),_0x145d4e(0x318),_0x145d4e(0x545),'indexReady',_0x145d4e(0x322),_0x145d4e(0x3f2),_0x145d4e(0x3b6),_0x145d4e(0x3ae),_0x145d4e(0x18c),_0x145d4e(0x232),_0x145d4e(0x4dd),_0x145d4e(0x6a9),_0x145d4e(0x60f),_0x145d4e(0x4d7),_0x145d4e(0xd6),'ttlStats',_0x145d4e(0x65f),_0x145d4e(0xc3),_0x145d4e(0x325),'count',_0x145d4e(0x3c4),_0x145d4e(0x55e)]){_0x3d9500[_0x145d4e(0x50c)][_0x49ba8e]=function(..._0x5602ec){const _0x1829f2=_0x145d4e,_0x153b1e=this[_0x1829f2(0x78b)]('default');return _0x153b1e[_0x49ba8e](..._0x5602ec);};}function _0x53897a(_0x46f674){const _0x3dd95c=_0x145d4e,_0x50612a=_0x1dbc27=>()=>{const _0x254283=_0x458f;throw new Error(_0x254283(0x581)+_0x1dbc27+'\x20was\x20removed\x20in\x20okdb\x202.0.\x20Use\x20processors:true\x20for\x20plain\x20lease\x20participation.\x20See\x20docs/upgrade-2.0.md.');};return{'process':_0x50612a(_0x3dd95c(0x3c1)),'processRest':_0x50612a('processRest()'),'processEverything':_0x50612a(_0x3dd95c(0xf7)),async 'start'(){const _0x4e4abb=_0x3dd95c;return _0x46f674['_call']('db',null,_0x4e4abb(0x368),[]);},async 'stop'(){const _0x331eed=_0x3dd95c;return _0x46f674[_0x331eed(0x463)]('db',null,_0x331eed(0x309),[]);},'status'(){const _0x28698f=_0x3dd95c;return _0x46f674['_call']('db',null,_0x28698f(0x31e),[],![]);},get 'participating'(){return _0x46f674['_call']('db',null,'processorsParticipating',[],![]);},get '_participate'(){const _0x24dd0c=_0x3dd95c;return _0x46f674[_0x24dd0c(0x463)]('db',null,'processorsParticipating',[],![]);}};}function _0x583aa1(_0x59f021,_0xfadddf,_0x5b1815){_0x53e41f();try{return _0x195391()['callStatic'](_0x59f021,_0xfadddf,_0x5b1815);}catch(_0x34662b){throw _0x562c87(_0x34662b);}}_0x120b7f[_0x145d4e(0x73a)]=_0x3d9500,_0x120b7f[_0x145d4e(0x73a)][_0x145d4e(0x28b)]=_0x583aa1,_0x120b7f['exports'][_0x145d4e(0x240)]=_0x3d9500,_0x120b7f[_0x145d4e(0x73a)][_0x145d4e(0x765)]=_0xfeca90,_0x120b7f[_0x145d4e(0x73a)][_0x145d4e(0x132)]=_0x3d9500,Object['defineProperty'](_0x120b7f[_0x145d4e(0x73a)],_0x145d4e(0x42a),{'get':()=>require$$1$1[_0x145d4e(0x6ec)]?.()??null,'enumerable':![],'configurable':!![]});}(lib),lib['exports'];}var libExports=requireLib(),index=getDefaultExportFromCjs(libExports);module[_0x5186d4(0x73a)]=index;
1
+ 'use strict';const _0x2d5353=_0x36a2;(function(_0x41afde,_0xacf9bb){const _0x3f4bba=_0x36a2,_0xcac20c=_0x41afde();while(!![]){try{const _0x1bc9fd=parseInt(_0x3f4bba(0x6b6))/0x1+parseInt(_0x3f4bba(0x13b))/0x2+-parseInt(_0x3f4bba(0x786))/0x3+-parseInt(_0x3f4bba(0x272))/0x4+parseInt(_0x3f4bba(0x81d))/0x5+-parseInt(_0x3f4bba(0x45f))/0x6+parseInt(_0x3f4bba(0x632))/0x7;if(_0x1bc9fd===_0xacf9bb)break;else _0xcac20c['push'](_0xcac20c['shift']());}catch(_0xe4b1e6){_0xcac20c['push'](_0xcac20c['shift']());}}}(_0x49fd,0x383f5));var require$$0$6=require(_0x2d5353(0x264)),require$$1$1=require(_0x2d5353(0x80d)),require$$0=require(_0x2d5353(0x7cd)),require$$1=require(_0x2d5353(0x2d1)),require$$4=require(_0x2d5353(0x164)),require$$0$2=require(_0x2d5353(0x4ba)),require$$0$1=require('node:perf_hooks'),require$$16=require(_0x2d5353(0x1ca)),require$$0$3=require(_0x2d5353(0x6d4)),require$$2=require(_0x2d5353(0x29e)),require$$18=require(_0x2d5353(0x5e0)),require$$0$4=require('crypto'),require$$0$5=require(_0x2d5353(0x58d));function getDefaultExportFromCjs(_0x30e22a){const _0x1580fe=_0x2d5353;return _0x30e22a&&_0x30e22a[_0x1580fe(0x3df)]&&Object[_0x1580fe(0x771)][_0x1580fe(0x5b6)][_0x1580fe(0x245)](_0x30e22a,_0x1580fe(0x634))?_0x30e22a[_0x1580fe(0x634)]:_0x30e22a;}var lib={'exports':{}},okdbError,hasRequiredOkdbError;function requireOkdbError(){if(hasRequiredOkdbError)return okdbError;hasRequiredOkdbError=0x1;class _0xcd71bd extends Error{constructor(_0x28e856,_0x1d5803,_0x5ee495={}){const _0x43cbae=_0x36a2;super(_0x28e856),this['name']=_0x43cbae(0x5c6),this[_0x43cbae(0x316)]=_0x1d5803,this[_0x43cbae(0x433)]=_0x5ee495,_0x5ee495[_0x43cbae(0x13e)]&&(this[_0x43cbae(0x13e)]=_0x5ee495['cause']),Error[_0x43cbae(0x2e6)](this,this['constructor']);}}class _0x2b871e extends _0xcd71bd{constructor(_0x32736e,_0x2fe410,_0x59e57e,_0x56acf7){const _0x365c00=_0x36a2;super('Version\x20mismatch\x20for\x20'+_0x32736e+'@'+_0x2fe410+':\x20expected\x20'+_0x59e57e+_0x365c00(0x749)+_0x56acf7,_0x365c00(0x430),{'type':_0x32736e,'key':_0x2fe410,'expectedVersion':_0x59e57e,'actualVersion':_0x56acf7}),this[_0x365c00(0x425)]=_0x365c00(0x28b);}}class _0x1646aa extends _0xcd71bd{constructor(_0x5dbf52,_0x315f4f){const _0x3a3460=_0x36a2;super(_0x5dbf52+'@'+_0x315f4f+_0x3a3460(0x403),_0x3a3460(0x2e7),{'type':_0x5dbf52,'key':_0x315f4f}),this[_0x3a3460(0x425)]=_0x3a3460(0x60e);}}class _0x3f4a24 extends _0xcd71bd{constructor(_0x1cdc4e,_0x42fa10){const _0x3c4cef=_0x36a2;super(_0x1cdc4e+'@'+_0x42fa10+_0x3c4cef(0x4c3),'ALREADY_EXISTS',{'type':_0x1cdc4e,'key':_0x42fa10}),this[_0x3c4cef(0x425)]=_0x3c4cef(0x368);}}class _0x33a4ae extends _0xcd71bd{constructor(_0x208601,_0x657c33){const _0x30d1e0=_0x36a2,_0x40b349=typeof _0x657c33;super('Invalid\x20index\x20key\x20type\x20for\x20\x27'+_0x208601+_0x30d1e0(0x2ea)+_0x40b349+_0x30d1e0(0x1db)+_0x657c33,_0x30d1e0(0x646),{'index':_0x208601,'key':_0x657c33,'keyType':_0x40b349}),this[_0x30d1e0(0x425)]=_0x30d1e0(0x843);}}class _0x3d62da extends _0xcd71bd{constructor(_0x3e9fab){const _0x390a05=_0x36a2,_0x40b01a=typeof _0x3e9fab;super(_0x390a05(0x39c)+_0x40b01a+_0x390a05(0x365)+_0x3e9fab,_0x390a05(0x764),{'key':_0x3e9fab,'keyType':_0x40b01a}),this['name']=_0x390a05(0x495);}}class _0x369276 extends _0xcd71bd{constructor(_0x5ba377){const _0x44916e=_0x36a2;super('Type\x20\x27'+_0x5ba377+'\x27\x20doesn\x27t\x20exist',_0x44916e(0x1cf),{'type':_0x5ba377}),this['name']=_0x44916e(0x7be);}}class _0x28addf extends _0xcd71bd{constructor(_0x3ac3cc){const _0x2d201d=_0x36a2;super('Type\x20\x27'+_0x3ac3cc+_0x2d201d(0x5c4),_0x2d201d(0x58f),{'type':_0x3ac3cc}),this[_0x2d201d(0x425)]=_0x2d201d(0x347);}}class _0x5d9ff1 extends _0xcd71bd{constructor(_0x5f171c,_0x3a3265){const _0x1029d5=_0x36a2;super('Index\x20\x27'+_0x3a3265+_0x1029d5(0x19a)+_0x5f171c+_0x1029d5(0x1ff),'INDEX_NOT_REGISTERED',{'type':_0x5f171c,'index':_0x3a3265}),this['name']=_0x1029d5(0x3d8);}}class _0x2ae7a3 extends _0xcd71bd{constructor(_0x195739,_0x243259){const _0x293071=_0x36a2;super('Index\x20\x27'+_0x243259+_0x293071(0x19a)+_0x195739+_0x293071(0x2d4),_0x293071(0x837),{'type':_0x195739,'index':_0x243259}),this['name']='OKDBIndexAlreadyRegisteredError';}}class _0x2f651c extends _0xcd71bd{constructor(_0x1b2a9d,_0xbcd118={}){const _0x340dbe=_0x36a2;super(_0x1b2a9d,_0x340dbe(0x315),_0xbcd118),this[_0x340dbe(0x425)]=_0x340dbe(0x621);}}class _0x33fa0 extends _0xcd71bd{constructor(_0x3550ad,_0x2f7212,_0x2c5875,_0x130261,_0x3303b5){const _0x3d820a=_0x36a2;super(_0x3d820a(0x853)+_0x3550ad+'@'+_0x2f7212+_0x3d820a(0x30b)+_0x2c5875+_0x3d820a(0x3d3)+_0x130261+'\x27,\x20cannot\x20map\x20to\x20\x27'+_0x3303b5+'\x27','UNIQUE_CONSTRAINT',{'type':_0x3550ad,'index':_0x2f7212,'indexKey':_0x2c5875,'existingKey':_0x130261,'conflictingKey':_0x3303b5}),this[_0x3d820a(0x425)]=_0x3d820a(0x42f);}}class _0x1460e7 extends _0xcd71bd{constructor(_0x24a9f8,_0x4b4f24,_0x1d8a74){const _0x549244=_0x36a2;super(_0x549244(0x832)+_0x24a9f8+'@'+_0x4b4f24,_0x549244(0x458),{'type':_0x24a9f8,'key':_0x4b4f24,'errors':_0x1d8a74}),this['name']=_0x549244(0x778),this[_0x549244(0x2d0)]=_0x24a9f8,this['key']=_0x4b4f24,this['errors']=_0x1d8a74;}}class _0x290cfe extends _0xcd71bd{constructor(_0x31b1fc,_0x130200){const _0x299d25=_0x36a2;super(_0x299d25(0x505)+_0x31b1fc+':\x20'+_0x130200[_0x299d25(0x192)]+_0x299d25(0x75c),_0x299d25(0x822),{'type':_0x31b1fc,'failures':_0x130200}),this[_0x299d25(0x425)]=_0x299d25(0x828),this[_0x299d25(0x2d0)]=_0x31b1fc,this[_0x299d25(0x544)]=_0x130200;}}class _0x120f49 extends _0xcd71bd{constructor(_0x2965a8,_0x586de0,_0x45f39d,_0x56ca6b,_0x589736){const _0x44fc47=_0x36a2;super(_0x44fc47(0x15b)+_0x2965a8+'@'+_0x586de0+'.'+_0x45f39d+_0x44fc47(0x867)+_0x56ca6b+'@'+_0x589736+'\x20which\x20does\x20not\x20exist',_0x44fc47(0x1b0),{'sourceType':_0x2965a8,'sourceKey':_0x586de0,'fieldPath':_0x45f39d,'targetType':_0x56ca6b,'targetKey':_0x589736}),this[_0x44fc47(0x425)]='OKDBForeignKeyError',this[_0x44fc47(0x615)]=_0x2965a8,this[_0x44fc47(0x806)]=_0x586de0,this[_0x44fc47(0x818)]=_0x45f39d,this[_0x44fc47(0x67f)]=_0x56ca6b,this[_0x44fc47(0x1aa)]=_0x589736;}}class _0x3defb9 extends _0xcd71bd{constructor(_0x4cf952,_0x5d2aa3,_0x46b311){const _0x490637=_0x36a2;super(_0x490637(0x6de)+_0x4cf952+'@'+_0x5d2aa3+':\x20'+_0x46b311['length']+_0x490637(0x754),_0x490637(0x722),{'targetType':_0x4cf952,'targetKey':_0x5d2aa3,'references':_0x46b311}),this[_0x490637(0x425)]='OKDBForeignKeyDeleteError',this[_0x490637(0x67f)]=_0x4cf952,this['targetKey']=_0x5d2aa3,this[_0x490637(0x59d)]=_0x46b311;}}class _0x4bc1be extends _0xcd71bd{constructor(_0x54570c,_0x5be7cb,_0x5e4acf){const _0x5b6295=_0x36a2;super('Index\x20\x22'+_0x5be7cb+'\x22\x20on\x20\x22'+_0x54570c+'\x22\x20is\x20used\x20by:\x20'+_0x5e4acf[_0x5b6295(0x4e8)](_0x53c023=>_0x53c023[_0x5b6295(0x50a)]+':'+_0x53c023[_0x5b6295(0x425)])['join'](',\x20'),_0x5b6295(0x567),{'type':_0x54570c,'index':_0x5be7cb,'usedBy':_0x5e4acf}),this[_0x5b6295(0x425)]='OKDBIndexHasConsumersError';}}return okdbError={'OKDBError':_0xcd71bd,'OKDBVersionMismatchError':_0x2b871e,'OKDBNotFoundError':_0x1646aa,'OKDBAlreadyExistsError':_0x3f4a24,'OKDBInvalidIndexKeyError':_0x33a4ae,'OKDBInvalidPrimaryKeyError':_0x3d62da,'OKDBTypeNotRegisteredError':_0x369276,'OKDBTypeAlreadyRegisteredError':_0x28addf,'OKDBIndexNotRegisteredError':_0x5d9ff1,'OKDBIndexAlreadyRegisteredError':_0x2ae7a3,'OKDBInvalidValueError':_0x2f651c,'OKDBUniqueConstraintError':_0x33fa0,'OKDBSchemaValidationError':_0x1460e7,'OKDBSchemaCollectionError':_0x290cfe,'OKDBForeignKeyError':_0x120f49,'OKDBForeignKeyDeleteError':_0x3defb9,'OKDBIndexHasConsumersError':_0x4bc1be},okdbError;}var errors,hasRequiredErrors;function requireErrors(){const _0x4e17bf=_0x2d5353;if(hasRequiredErrors)return errors;hasRequiredErrors=0x1;const _0x372879=requireOkdbError(),_0x1b0d54={'VERSION_MISMATCH':_0x372879['OKDBVersionMismatchError'],'NOT_FOUND':_0x372879['OKDBNotFoundError'],'ALREADY_EXISTS':_0x372879[_0x4e17bf(0x368)],'INVALID_INDEX_KEY':_0x372879[_0x4e17bf(0x843)],'INVALID_PRIMARY_KEY':_0x372879[_0x4e17bf(0x495)],'TYPE_NOT_REGISTERED':_0x372879[_0x4e17bf(0x7be)],'TYPE_ALREADY_REGISTERED':_0x372879['OKDBTypeAlreadyRegisteredError'],'INDEX_NOT_REGISTERED':_0x372879[_0x4e17bf(0x3d8)],'INDEX_ALREADY_REGISTERED':_0x372879[_0x4e17bf(0x4d4)],'INVALID_VALUE':_0x372879['OKDBInvalidValueError'],'UNIQUE_CONSTRAINT':_0x372879[_0x4e17bf(0x42f)],'SCHEMA_VALIDATION_FAILED':_0x372879['OKDBSchemaValidationError'],'SCHEMA_COLLECTION_INVALID':_0x372879[_0x4e17bf(0x828)],'FOREIGN_KEY_VIOLATION':_0x372879[_0x4e17bf(0x7b1)],'FOREIGN_KEY_DELETE_RESTRICTED':_0x372879[_0x4e17bf(0x68b)],'INDEX_HAS_CONSUMERS':_0x372879[_0x4e17bf(0x6b2)]};class _0x16ae2d extends _0x372879['OKDBError']{constructor(_0x54e50e,_0x20748c){const _0xbd15cf=_0x4e17bf;super(_0x54e50e+':\x20not\x20implemented\x20in\x20the\x20native\x20build\x20yet'+(_0x20748c?'\x20('+_0x20748c+')':''),'NOT_IMPLEMENTED_NATIVE',{'feature':_0x54e50e}),this[_0xbd15cf(0x425)]=_0xbd15cf(0x61f);}}function _0x426671(_0x275d1b){const _0x5cd49b=_0x4e17bf;if(!_0x275d1b||typeof _0x275d1b!=='object'||!_0x275d1b['__okdb'])return _0x275d1b;delete _0x275d1b[_0x5cd49b(0x330)];const _0x5f8839=_0x275d1b[_0x5cd49b(0x316)];if(_0x5f8839===_0x5cd49b(0x153)||_0x5f8839===_0x5cd49b(0x622)||_0x5f8839==='RangeError'){const _0xb72d90=_0x5f8839===_0x5cd49b(0x622)?TypeError[_0x5cd49b(0x771)]:_0x5f8839==='RangeError'?RangeError[_0x5cd49b(0x771)]:Error['prototype'];Object[_0x5cd49b(0x30f)](_0x275d1b,_0xb72d90),_0x275d1b[_0x5cd49b(0x425)]=_0x5f8839;if(_0x275d1b['details']&&_0x275d1b[_0x5cd49b(0x433)][_0x5cd49b(0x2e4)]!==undefined)_0x275d1b[_0x5cd49b(0x2e4)]=_0x275d1b[_0x5cd49b(0x433)][_0x5cd49b(0x2e4)];return delete _0x275d1b['code'],delete _0x275d1b[_0x5cd49b(0x433)],_0x275d1b;}const _0x47a5ed=_0x1b0d54[_0x5f8839];Object[_0x5cd49b(0x30f)](_0x275d1b,(_0x47a5ed||_0x372879['OKDBError'])[_0x5cd49b(0x771)]),_0x275d1b[_0x5cd49b(0x425)]=_0x47a5ed?_0x47a5ed[_0x5cd49b(0x425)][_0x5cd49b(0x4d7)](/^OKDB/,_0x5cd49b(0x39d)):'OKDBError';const _0x58134c=_0x275d1b['details']||{};_0x5f8839===_0x5cd49b(0x458)&&(_0x275d1b[_0x5cd49b(0x2d0)]=_0x58134c['type'],_0x275d1b[_0x5cd49b(0x5c0)]=_0x58134c[_0x5cd49b(0x5c0)],_0x275d1b[_0x5cd49b(0x266)]=_0x58134c[_0x5cd49b(0x266)]);_0x5f8839==='SCHEMA_COLLECTION_INVALID'&&(_0x275d1b[_0x5cd49b(0x2d0)]=_0x58134c[_0x5cd49b(0x2d0)],_0x275d1b[_0x5cd49b(0x544)]=_0x58134c['failures']);if(_0x5f8839===_0x5cd49b(0x1b0)){for(const _0x74076a of[_0x5cd49b(0x615),_0x5cd49b(0x806),_0x5cd49b(0x818),_0x5cd49b(0x67f),'targetKey'])_0x275d1b[_0x74076a]=_0x58134c[_0x74076a];}if(_0x5f8839===_0x5cd49b(0x722)){for(const _0x19df31 of[_0x5cd49b(0x67f),'targetKey',_0x5cd49b(0x59d)])_0x275d1b[_0x19df31]=_0x58134c[_0x19df31];}if(_0x58134c[_0x5cd49b(0x13e)])_0x275d1b[_0x5cd49b(0x13e)]=_0x58134c[_0x5cd49b(0x13e)];if(_0x58134c[_0x5cd49b(0x2e4)]!==undefined)_0x275d1b[_0x5cd49b(0x2e4)]=_0x58134c[_0x5cd49b(0x2e4)];if(_0x58134c[_0x5cd49b(0x129)]!==undefined)_0x275d1b[_0x5cd49b(0x129)]=_0x58134c[_0x5cd49b(0x129)];return _0x275d1b;}function _0x134d44(_0x39f5b2){const _0xa9dc75=_0x4e17bf;if(_0x39f5b2===undefined)return _0xa9dc75(0x364);if(_0x39f5b2===null)return _0xa9dc75(0x6f7);if(typeof _0x39f5b2===_0xa9dc75(0x84a))return _0x39f5b2?_0xa9dc75(0x84a):'empty\x20string';if(typeof _0x39f5b2==='function')return'function';if(typeof _0x39f5b2!==_0xa9dc75(0x712))return typeof _0x39f5b2;if(Array['isArray'](_0x39f5b2))return _0x39f5b2['length']?_0xa9dc75(0x22f):'empty\x20array';if(_0x39f5b2 instanceof Date)return _0xa9dc75(0x7c6);if(_0x39f5b2 instanceof Map)return'Map';if(Buffer['isBuffer'](_0x39f5b2))return _0xa9dc75(0x70f);return _0xa9dc75(0x712);}const _0x1c0bec=(_0x30e297,_0x4cb444,_0x444454)=>new _0x372879[(_0x4e17bf(0x5c6))](_0x4cb444,_0x30e297,_0x444454),_0x299ed4=(_0x26334f,_0x1ae7e2,_0x569dcb)=>_0x1c0bec(_0x4e17bf(0x4fa),_0x26334f+_0x4e17bf(0x1b9)+_0x1ae7e2+';\x20got\x20'+_0x134d44(_0x569dcb),{'argument':_0x26334f,'expected':_0x1ae7e2,'got':_0x134d44(_0x569dcb)}),_0x36dea1=(_0xbe2e9d,_0x2c9501)=>_0x1c0bec(_0x4e17bf(0x5a4),_0xbe2e9d+_0x4e17bf(0x23f)+_0x134d44(_0x2c9501),{'argument':_0xbe2e9d,'expected':_0x4e17bf(0x1fd),'got':_0x134d44(_0x2c9501)}),_0x57426d=(_0x415b07,_0x21a50f)=>_0x1c0bec(_0x4e17bf(0x5bd),_0x415b07+':\x20'+_0x21a50f,{'argument':_0x415b07,'problem':_0x21a50f});function _0xd485f5(_0x2622ad,_0x10cc95=_0x4e17bf(0x4c0)){const _0x28d92f=_0x4e17bf;if(_0x2622ad===undefined)return{};if(_0x2622ad===null)throw _0x57426d(_0x10cc95,_0x28d92f(0x838));return _0x2622ad;}return errors={'reclass':_0x426671,'NotImplementedNative':_0x16ae2d,'BY_CODE':_0x1b0d54,'describe':_0x134d44,'invalidArgument':_0x299ed4,'invalidTypeName':_0x36dea1,'invalidOptions':_0x57426d,'optionsArg':_0xd485f5,..._0x372879},errors;}var bridge_1,hasRequiredBridge;function requireBridge(){if(hasRequiredBridge)return bridge_1;hasRequiredBridge=0x1;const _0x578a6f=new Map(),_0xc638bf=new Map();let _0xffb492=0x1;const _0x888ce=new Map(),_0x20ce5a=new Map();let _0x5e13e6=0x1;const _0x572656=new Map();let _0x4e1fc5=0x1;const _0x496125=new Map();function _0x3adb68(_0x33597f,_0x5ece4d=null){const _0x41fe4f=_0x36a2,_0x331e6f=_0x4e1fc5++;_0x572656[_0x41fe4f(0x7a0)](_0x331e6f,_0x33597f);if(_0x5ece4d)_0x496125['set'](_0x331e6f,_0x5ece4d);return _0x331e6f;}function _0x1b9b37(_0x4e53b6,_0x2782da){const _0x4c5964=_0x36a2,_0x50974f=_0x572656[_0x4c5964(0x6ce)](_0x4e53b6),_0x455736=Array[_0x4c5964(0x771)][_0x4c5964(0x6fe)][_0x4c5964(0x245)](arguments,0x2),_0x4f40b7=_0x4db0a0=>_0x3c2ec5(_0x4db0a0,_0x496125['get'](_0x4e53b6));let _0x59a0cc=_0x455736;if(_0x2782da===_0x4c5964(0x4df)||_0x2782da==='stop'||_0x2782da===_0x4c5964(0x145)||_0x2782da===_0x4c5964(0x708)||_0x2782da==='assertStartAllowed')_0x59a0cc=[_0x4f40b7(_0x455736[0x0])];else{if(_0x2782da===_0x4c5964(0x327))_0x59a0cc=[_0x455736[0x0],_0x455736[0x1],_0x4f40b7(_0x455736[0x2])];else{if(_0x2782da==='assertCreateAllowed')_0x59a0cc=[_0x4f40b7(_0x455736[0x0])];}}let _0x2539bf=_0x50974f[_0x2782da](..._0x59a0cc);if(_0x2539bf&&typeof _0x2539bf[_0x4c5964(0x600)]===_0x4c5964(0x3b3))_0x2539bf=_0x2e3e1d(_0x2539bf);if(_0x2782da===_0x4c5964(0x4df)){const _0x158812=_0x2539bf&&typeof _0x2539bf===_0x4c5964(0x712)?_0x3adb68(_0x2539bf):_0x3adb68({});return{'$api':_0x158812};}return _0x2539bf===undefined?null:_0x2539bf;}function _0x3c2ec5(_0x53a035,_0xfe04a2){const _0x1ecb95=_0x36a2;let _0x29eb94=_0x14f8a8[_0x1ecb95(0x6ce)](_0x53a035[_0x1ecb95(0x1d7)]);const _0x368318=_0x29eb94&&_0x29eb94[_0x1ecb95(0x4f7)]||_0xfe04a2||_0x4324fe,_0x25b22d=(_0x5ee99d,..._0x14bc9b)=>_0x368318[_0x1ecb95(0x24a)]('engines',null,_0x5ee99d,[_0x53a035[_0x1ecb95(0x2d0)],_0x53a035[_0x1ecb95(0x425)],..._0x14bc9b],!![]);return{'okdb':_0x368318,'key':_0x53a035[_0x1ecb95(0x5c0)],'type':_0x53a035['type'],'name':_0x53a035[_0x1ecb95(0x425)],get 'storeEnv'(){const _0x220ae7=_0x1ecb95;if(!_0x29eb94&&_0x368318&&_0x368318['_isOpen']&&_0x53a035['storeEnvName'])_0x29eb94=_0x368318['_envs']['get'](_0x53a035[_0x220ae7(0x768)]);return _0x29eb94;},'storeEnvName':_0x53a035[_0x1ecb95(0x768)],'config':_0x53a035['config'],'meta':_0x53a035[_0x1ecb95(0x360)],'options':_0x53a035[_0x1ecb95(0x4c0)],'emit':(_0x1eff24,_0x5248e9)=>_0x25b22d(_0x1ecb95(0x379),_0x1eff24,_0x5248e9),'updateStatus':async(_0x195c58,_0x3e09e5)=>_0x25b22d(_0x1ecb95(0x181),_0x195c58,_0x3e09e5==null?null:String(_0x3e09e5&&_0x3e09e5[_0x1ecb95(0x367)]?_0x3e09e5[_0x1ecb95(0x367)]:_0x3e09e5)),'updateMeta':async _0x20015d=>_0x25b22d(_0x1ecb95(0x6c4),{'meta':_0x20015d}),'updateConfig':async _0x23a2b0=>_0x25b22d(_0x1ecb95(0x6c4),{'config':_0x23a2b0})};}function _0x6cf95d(_0x9e44f5,_0x59a727,_0x4fc0a6){const _0x8a4a0f=_0x36a2;if(_0x9e44f5===_0x8a4a0f(0x770)){const _0x591af8=_0x23f4e7(_0x59a727);let _0x14f4ee=_0x591af8(_0x4fc0a6);if(_0x14f4ee&&typeof _0x14f4ee[_0x8a4a0f(0x600)]===_0x8a4a0f(0x3b3))_0x14f4ee=_0x2e3e1d(_0x14f4ee);if(!_0x14f4ee||typeof _0x14f4ee[_0x8a4a0f(0x6b9)]!=='function'){const {OKDBError:_0x193fa3}=requireErrors();throw new _0x193fa3('Embedder\x20factory\x20for\x20\x22'+(_0x4fc0a6&&_0x4fc0a6[_0x8a4a0f(0x2d0)])+_0x8a4a0f(0x405),_0x8a4a0f(0x17f));}return _0x14f4ee[_0x8a4a0f(0x330)]=_0x591af8[_0x8a4a0f(0x330)],{'$id':_0x3adb68(_0x14f4ee),'batch':typeof _0x14f4ee[_0x8a4a0f(0x3f6)]==='function'};}const _0xb9dc20=_0x572656[_0x8a4a0f(0x6ce)](_0x59a727);if(_0x9e44f5===_0x8a4a0f(0x152))return _0x572656[_0x8a4a0f(0x243)](_0x59a727),_0x520752[_0x8a4a0f(0x243)](_0x59a727),null;if(!_0xb9dc20)throw new Error(_0x8a4a0f(0x1ab));if(typeof _0xb9dc20[_0x9e44f5]!==_0x8a4a0f(0x3b3))return null;if(_0x9e44f5==='embed'||_0x9e44f5===_0x8a4a0f(0x3f6)){const _0x191b52=_0x9e44f5===_0x8a4a0f(0x3f6)?_0x1aef07(_0x59a727,_0xb9dc20,_0x4fc0a6):_0x43af9b(_0x59a727,_0xb9dc20,_0x9e44f5,_0x4fc0a6);return _0x9e44f5==='embed'?_0x55f8d9(_0x191b52):_0x191b52['map'](_0x55f8d9);}let _0x4a5655=_0xb9dc20[_0x9e44f5]();if(_0x4a5655&&typeof _0x4a5655['then']===_0x8a4a0f(0x3b3))_0x4a5655=_0x2e3e1d(_0x4a5655);return _0x4a5655===undefined?null:_0x4a5655;}function _0x55f8d9(_0x3afb9b){const _0x169bea=_0x36a2;return _0x3afb9b instanceof Float32Array?_0x3afb9b:Array[_0x169bea(0x3ed)](_0x3afb9b);}function _0x33d227(_0x41e7b8,_0x59f2b2,_0x36c491){const _0x3dcd7a=_0x36a2;if(_0x41e7b8===_0x3dcd7a(0x770)){const _0x18c462=_0x23f4e7(_0x59f2b2);let _0x375d78=_0x18c462(_0x36c491['config']??{},{'dims':_0x36c491[_0x3dcd7a(0x250)],'dir':_0x36c491['dir']});if(_0x375d78&&typeof _0x375d78[_0x3dcd7a(0x600)]===_0x3dcd7a(0x3b3))_0x375d78=_0x2e3e1d(_0x375d78);for(const _0x1b2bee of['load',_0x3dcd7a(0x725),_0x3dcd7a(0x78e),_0x3dcd7a(0x3ff),_0x3dcd7a(0x21b)]){if(!_0x375d78||typeof _0x375d78[_0x1b2bee]!==_0x3dcd7a(0x3b3)){const {OKDBError:_0x330ca7}=requireErrors();throw new _0x330ca7(_0x3dcd7a(0x847)+_0x1b2bee+'()',_0x3dcd7a(0x663),{'method':_0x1b2bee});}}return{'$id':_0x3adb68(_0x375d78)};}const _0x41ab9c=_0x572656['get'](_0x59f2b2);if(_0x41e7b8===_0x3dcd7a(0x152))return _0x572656[_0x3dcd7a(0x243)](_0x59f2b2),null;if(!_0x41ab9c)throw new Error(_0x3dcd7a(0x22a));const _0x3911df=_0x41f01c=>_0x41f01c?_0x41f01c[_0x3dcd7a(0x4e8)](_0x5013e6=>({'key':_0x5013e6[_0x3dcd7a(0x5c0)],'vector':Float32Array['from'](_0x5013e6['vector'])})):null;let _0x58663d;switch(_0x41e7b8){case'load':case _0x3dcd7a(0x247):{const _0x299480=_0x3911df(_0x36c491);_0x58663d=_0x41ab9c[_0x41e7b8](_0x299480?async()=>_0x299480:undefined);break;}case _0x3dcd7a(0x725):_0x58663d=_0x41ab9c[_0x3dcd7a(0x725)](_0x36c491[0x0],Float32Array['from'](_0x36c491[0x1]),_0x36c491[0x2]??undefined);break;case'remove':_0x58663d=_0x41ab9c[_0x3dcd7a(0x78e)](_0x36c491);break;case _0x3dcd7a(0x3ff):_0x58663d=_0x41ab9c['search'](Float32Array[_0x3dcd7a(0x3ed)](_0x36c491[_0x3dcd7a(0x450)]),_0x36c491[_0x3dcd7a(0x635)]??{});break;case _0x3dcd7a(0x22c):_0x58663d=typeof _0x41ab9c[_0x3dcd7a(0x22c)]==='function'?_0x41ab9c[_0x3dcd7a(0x22c)](_0x36c491??undefined):![];break;case'stop':_0x58663d=typeof _0x41ab9c[_0x3dcd7a(0x32a)]===_0x3dcd7a(0x3b3)?_0x41ab9c['stop']():undefined;break;case _0x3dcd7a(0x479):_0x58663d=typeof _0x41ab9c[_0x3dcd7a(0x479)]===_0x3dcd7a(0x3b3)?_0x41ab9c[_0x3dcd7a(0x479)]():undefined;break;case'count':return Number(_0x41ab9c['count']());case _0x3dcd7a(0x758):return(typeof _0x41ab9c[_0x3dcd7a(0x758)]===_0x3dcd7a(0x3b3)?_0x41ab9c[_0x3dcd7a(0x758)]():null)??{};default:throw new Error(_0x3dcd7a(0x5d3)+_0x41e7b8);}if(_0x58663d&&typeof _0x58663d[_0x3dcd7a(0x600)]===_0x3dcd7a(0x3b3))_0x58663d=_0x2e3e1d(_0x58663d);return _0x58663d===undefined?null:_0x58663d;}function _0x5deb4e(_0x8ce3f,_0x1bd4f0,_0x30e57f){const _0x199a20=_0x36a2;if(_0x8ce3f===_0x199a20(0x770)){const _0x4bbaba=_0x23f4e7(_0x1bd4f0);let _0x464041=_0x4bbaba(_0x30e57f);if(_0x464041&&typeof _0x464041[_0x199a20(0x600)]==='function')_0x464041=_0x2e3e1d(_0x464041);if(!_0x464041)return null;const _0x5c98fa=[_0x199a20(0x46e),_0x199a20(0x50d),'get',_0x199a20(0x21b),_0x199a20(0x645),_0x199a20(0x159)][_0x199a20(0x440)](_0x180b6b=>typeof _0x464041[_0x180b6b]===_0x199a20(0x3b3));return{'$id':_0x3adb68(_0x464041),'has':_0x5c98fa};}const _0xb8fb5f=_0x572656[_0x199a20(0x6ce)](_0x1bd4f0);if(_0x8ce3f===_0x199a20(0x152))return _0x572656[_0x199a20(0x243)](_0x1bd4f0),null;if(!_0xb8fb5f)throw new Error(_0x199a20(0x253));const _0x38a046=_0x291cbb=>Float32Array['from'](_0x291cbb);let _0x3c1098;switch(_0x8ce3f){case'put':_0x3c1098=_0xb8fb5f[_0x199a20(0x14f)](_0x30e57f[0x0],_0x38a046(_0x30e57f[0x1]));break;case _0x199a20(0x78e):_0x3c1098=_0xb8fb5f[_0x199a20(0x78e)](_0x30e57f);break;case _0x199a20(0x552):{_0x3c1098=typeof _0xb8fb5f[_0x199a20(0x552)]===_0x199a20(0x3b3)?_0xb8fb5f[_0x199a20(0x552)]():[];if(_0x3c1098&&typeof _0x3c1098[_0x199a20(0x600)]===_0x199a20(0x3b3))_0x3c1098=_0x2e3e1d(_0x3c1098);return Array[_0x199a20(0x3ed)](_0x3c1098??[],_0x5339bf=>({'key':_0x5339bf['key'],'vector':Array[_0x199a20(0x3ed)](_0x5339bf[_0x199a20(0x695)])}));}case _0x199a20(0x46e):_0x3c1098=_0xb8fb5f[_0x199a20(0x46e)](_0x30e57f[_0x199a20(0x1d2)]['map'](_0x204443=>({'key':_0x204443[_0x199a20(0x5c0)],'vector':_0x38a046(_0x204443['vector'])})),_0x30e57f[_0x199a20(0x4a5)]);break;case'keys':_0x3c1098=_0xb8fb5f[_0x199a20(0x50d)](_0x30e57f??undefined);if(_0x3c1098&&typeof _0x3c1098[_0x199a20(0x600)]==='function')_0x3c1098=_0x2e3e1d(_0x3c1098);return Array['from'](_0x3c1098??[]);case _0x199a20(0x6ce):{_0x3c1098=_0xb8fb5f['get'](_0x30e57f);if(_0x3c1098&&typeof _0x3c1098[_0x199a20(0x600)]===_0x199a20(0x3b3))_0x3c1098=_0x2e3e1d(_0x3c1098);return _0x3c1098==null?null:Array['from'](_0x3c1098);}case'count':return Number(_0xb8fb5f[_0x199a20(0x21b)]());case _0x199a20(0x645):_0x3c1098=_0xb8fb5f[_0x199a20(0x645)]();break;case _0x199a20(0x159):return _0xb8fb5f[_0x199a20(0x159)]()??null;default:throw new Error(_0x199a20(0x55c)+_0x8ce3f);}if(_0x3c1098&&typeof _0x3c1098['then']===_0x199a20(0x3b3))_0x3c1098=_0x2e3e1d(_0x3c1098);return _0x3c1098===undefined?null:_0x3c1098;}const _0x4e3431=new Map();function _0x43af9b(_0xf83396,_0x3dd8d7,_0x2c45d6,_0x2b16ed){const _0x5d5120=_0x36a2,_0x2990cb=_0xf83396+'\x00'+_0x2c45d6+'\x00'+JSON['stringify'](_0x2b16ed),_0x2bb0bf=_0x4e3431[_0x5d5120(0x6ce)](_0x2990cb);if(_0x2bb0bf){if(_0x2bb0bf['state']===_0x5d5120(0x641))throw _0x4648a4();_0x4e3431['delete'](_0x2990cb);if(_0x2bb0bf[_0x5d5120(0x76c)]==='err')throw _0x2bb0bf[_0x5d5120(0x821)];return _0x2bb0bf[_0x5d5120(0x821)];}const _0x4389c5=_0x3dd8d7[_0x2c45d6](_0x2b16ed);if(!_0x4389c5||typeof _0x4389c5[_0x5d5120(0x600)]!==_0x5d5120(0x3b3))return _0x4389c5;const _0x1b6b4a={'state':_0x5d5120(0x641),'value':undefined};_0x4389c5['then'](_0x110e8b=>{const _0x44e0ed=_0x5d5120;_0x1b6b4a[_0x44e0ed(0x76c)]='ok',_0x1b6b4a[_0x44e0ed(0x821)]=_0x110e8b;if(_0x4e3431[_0x44e0ed(0x6ce)](_0x2990cb)===_0x1b6b4a)_0x1525ae(_0x3dd8d7);},_0x39e831=>{const _0x375bb0=_0x5d5120;_0x1b6b4a[_0x375bb0(0x76c)]=_0x375bb0(0x20f),_0x1b6b4a[_0x375bb0(0x821)]=_0x39e831;if(_0x4e3431['get'](_0x2990cb)===_0x1b6b4a)_0x1525ae(_0x3dd8d7);});for(let _0x15b4f9=0x0;_0x15b4f9<0x64&&_0x1b6b4a[_0x5d5120(0x76c)]===_0x5d5120(0x641);_0x15b4f9++)process[_0x5d5120(0x168)]();if(_0x1b6b4a[_0x5d5120(0x76c)]==='ok')return _0x1b6b4a[_0x5d5120(0x821)];if(_0x1b6b4a[_0x5d5120(0x76c)]===_0x5d5120(0x20f))throw _0x1b6b4a[_0x5d5120(0x821)];_0x4e3431[_0x5d5120(0x7a0)](_0x2990cb,_0x1b6b4a);throw _0x4648a4();}const _0x520752=new Map(),_0xe6851d=0xa*0x3c*0x3e8;function _0x1aef07(_0x816040,_0x20d3ac,_0x12f892){const _0x1e08a2=_0x36a2,_0x3a2a84=Array[_0x1e08a2(0x7e3)](_0x12f892)?_0x12f892:Array[_0x1e08a2(0x3ed)](_0x12f892??[]);let _0x57da0d=_0x520752['get'](_0x816040);if(!_0x57da0d)_0x520752['set'](_0x816040,_0x57da0d=new Map());const _0xba4648=Date[_0x1e08a2(0x76a)]();for(const [_0xb6810d,_0x5a823d]of _0x57da0d)if(_0x5a823d[_0x1e08a2(0x2e3)][_0x1e08a2(0x76c)]!==_0x1e08a2(0x641)&&_0xba4648-_0x5a823d[_0x1e08a2(0x2e3)]['at']>_0xe6851d)_0x57da0d[_0x1e08a2(0x243)](_0xb6810d);const _0x5b54fc=_0x3a2a84[_0x1e08a2(0x4e8)](_0x352c2b=>JSON[_0x1e08a2(0x84b)](_0x352c2b));let _0x2a5c4d=![];const _0x432909=[],_0x271d2e=new Set();for(let _0x408c5f=0x0;_0x408c5f<_0x5b54fc[_0x1e08a2(0x192)];_0x408c5f++){const _0x21022a=_0x57da0d[_0x1e08a2(0x6ce)](_0x5b54fc[_0x408c5f]);if(!_0x21022a)!_0x271d2e[_0x1e08a2(0x69d)](_0x5b54fc[_0x408c5f])&&(_0x271d2e['add'](_0x5b54fc[_0x408c5f]),_0x432909[_0x1e08a2(0x46d)](_0x408c5f));else{if(_0x21022a[_0x1e08a2(0x2e3)][_0x1e08a2(0x76c)]===_0x1e08a2(0x641))_0x2a5c4d=!![];else{if(_0x21022a[_0x1e08a2(0x2e3)][_0x1e08a2(0x76c)]==='err'){const _0x4c5eb8=_0x21022a['req']['value'];for(const [_0x2d61b5,_0x3c8db8]of _0x57da0d)if(_0x3c8db8[_0x1e08a2(0x2e3)]===_0x21022a[_0x1e08a2(0x2e3)])_0x57da0d[_0x1e08a2(0x243)](_0x2d61b5);throw _0x4c5eb8;}}}}if(_0x2a5c4d)throw _0x4648a4();if(_0x432909['length']){const _0x4c456f=_0x432909[_0x1e08a2(0x4e8)](_0x418032=>_0x3a2a84[_0x418032]),_0x3d9e0b=_0x20d3ac[_0x1e08a2(0x3f6)](_0x4c456f),_0x3fa094={'state':_0x1e08a2(0x641),'value':undefined,'at':0x0},_0x15a1d7=(_0x26fd8d,_0x24c32e)=>{const _0x1f8b52=_0x1e08a2;_0x3fa094[_0x1f8b52(0x76c)]=_0x26fd8d,_0x3fa094[_0x1f8b52(0x821)]=_0x24c32e,_0x3fa094['at']=Date[_0x1f8b52(0x76a)]();};if(!_0x3d9e0b||typeof _0x3d9e0b[_0x1e08a2(0x600)]!==_0x1e08a2(0x3b3))_0x15a1d7('ok',_0x3d9e0b);else{let _0x3350bd=!![];_0x3d9e0b[_0x1e08a2(0x600)](_0x4c60ef=>{_0x15a1d7('ok',_0x4c60ef);if(!_0x3350bd)_0x1525ae(_0x20d3ac);},_0x29c100=>{const _0x1d4e20=_0x1e08a2;_0x15a1d7(_0x1d4e20(0x20f),_0x29c100);if(!_0x3350bd)_0x1525ae(_0x20d3ac);});for(let _0x444200=0x0;_0x444200<0x64&&_0x3fa094[_0x1e08a2(0x76c)]===_0x1e08a2(0x641);_0x444200++)process[_0x1e08a2(0x168)]();_0x3350bd=![];}for(let _0x583afd=0x0;_0x583afd<_0x432909[_0x1e08a2(0x192)];_0x583afd++)_0x57da0d['set'](_0x5b54fc[_0x432909[_0x583afd]],{'req':_0x3fa094,'index':_0x583afd});if(_0x3fa094[_0x1e08a2(0x76c)]===_0x1e08a2(0x20f)){for(const _0x1df86b of _0x432909)_0x57da0d[_0x1e08a2(0x243)](_0x5b54fc[_0x1df86b]);throw _0x3fa094['value'];}if(_0x3fa094[_0x1e08a2(0x76c)]===_0x1e08a2(0x641))throw _0x4648a4();}const _0x431d=_0x5b54fc[_0x1e08a2(0x4e8)](_0x43cf6b=>{const _0x3f97a3=_0x1e08a2,_0x59178e=_0x57da0d[_0x3f97a3(0x6ce)](_0x43cf6b),_0x48b313=_0x59178e[_0x3f97a3(0x2e3)][_0x3f97a3(0x821)];return _0x48b313?_0x48b313[_0x59178e[_0x3f97a3(0x4bf)]]:undefined;});for(const _0x2fc0aa of _0x5b54fc)_0x57da0d[_0x1e08a2(0x243)](_0x2fc0aa);if(!_0x57da0d['size'])_0x520752['delete'](_0x816040);return _0x431d;}function _0x4648a4(){const _0x1ba152=_0x36a2;return Object[_0x1ba152(0x3aa)](new Error('embedder\x20request\x20still\x20pending'),{'code':_0x1ba152(0x2dc)});}function _0x1525ae(_0x33c718){const _0x627b44=_0x36a2;_0x1ed962();try{const _0x26e184=_0x33c718[_0x627b44(0x330)]||_0x4324fe;if(_0x26e184&&_0x26e184[_0x627b44(0x67d)])_0x26e184['_call'](_0x627b44(0x5d6),null,_0x627b44(0x839),[_0x627b44(0x161),{}],!![]);}catch{}}function _0x241040(_0x16bb5a,_0x16870a,_0x288c2f){const _0x480374=_0x36a2,_0x797e71=_0x572656['get'](_0x16bb5a);if(!_0x797e71||typeof _0x797e71[_0x16870a]!=='function')return{'__absent':!![]};let _0x21741d=_0x797e71[_0x16870a](...Array[_0x480374(0x7e3)](_0x288c2f)?_0x288c2f:[]);if(_0x21741d&&typeof _0x21741d[_0x480374(0x600)]==='function')_0x21741d=_0x2e3e1d(_0x21741d);return{'value':_0x21741d===undefined?null:_0x21741d};}const _0x267b83=new Map();let _0x371e0d=0x1;const _0x14f8a8=new Map(),_0xcc0215=new Map();function _0x2a870c(_0x589755,_0x3b8738=null){const _0x494459=_0x36a2,_0x451d21=_0x371e0d++;_0x267b83[_0x494459(0x7a0)](_0x451d21,_0x589755);if(_0x3b8738)_0xcc0215[_0x494459(0x7a0)](_0x451d21,_0x3b8738);return _0x451d21;}function _0x1b2f9c(_0x1a6d46){const _0x39f57d=_0x36a2;for(const [_0x302e16,_0x18aaea]of _0x14f8a8)if(_0x18aaea&&_0x18aaea[_0x39f57d(0x4f7)]===_0x1a6d46)_0x14f8a8['delete'](_0x302e16);for(const [_0x3c529a,_0x400429]of _0x496125)if(_0x400429===_0x1a6d46)_0x496125[_0x39f57d(0x243)](_0x3c529a);for(const [_0x4a9aa8,_0x4ded91]of _0xcc0215)_0x4ded91===_0x1a6d46&&(_0xcc0215[_0x39f57d(0x243)](_0x4a9aa8),_0x267b83[_0x39f57d(0x243)](_0x4a9aa8));if(_0x4324fe===_0x1a6d46)_0x4324fe=null;}function _0x2936ac(_0x40cf4a,_0x3ae223){const _0x577d8f=_0x36a2;_0x14f8a8[_0x577d8f(0x7a0)](_0x40cf4a,_0x3ae223);}function _0x445458(_0x365918){const _0x14e4b4=_0x36a2;if(_0x365918&&typeof _0x365918==='object'&&Object[_0x14e4b4(0x50d)](_0x365918)[_0x14e4b4(0x192)]===0x1&&_0x365918['$payload']!==undefined)return _0x267b83[_0x14e4b4(0x6ce)](_0x365918['$payload']);return _0x365918;}function _0x2e3e1d(_0x12b79f){const _0x3e1ef6=_0x36a2;let _0x58ea5e=![],_0x2d9ed4=![],_0x36fc61;_0x12b79f[_0x3e1ef6(0x600)](_0x296b6c=>{_0x58ea5e=!![],_0x36fc61=_0x296b6c;},_0x7ec2d3=>{_0x58ea5e=!![],_0x2d9ed4=!![],_0x36fc61=_0x7ec2d3;});for(let _0xa42cba=0x0;_0xa42cba<0x2710&&!_0x58ea5e;_0xa42cba++)process[_0x3e1ef6(0x168)]();if(!_0x58ea5e)return _0x12b79f[_0x3e1ef6(0x600)](undefined,_0x1fa830=>{const _0x567307=_0x3e1ef6;try{process['emitWarning']('okdb-node:\x20a\x20background\x20async\x20handler\x20rejected:\x20'+(_0x1fa830&&_0x1fa830[_0x567307(0x367)]?_0x1fa830[_0x567307(0x367)]:_0x1fa830));}catch{}}),undefined;if(_0x2d9ed4)throw _0x36fc61;return _0x36fc61;}function _0x42aae5(_0x299032,_0x2e84ba,_0x1fca12){const _0x3f4cb9=_0x36a2,_0x4726ee=_0x23f4e7(_0x299032),_0x533e55=_0x14f8a8[_0x3f4cb9(0x6ce)](_0x2e84ba);try{const _0x154ca3=_0x4726ee(_0x1fca12,{'okdb':_0x533e55&&_0x533e55['okdb'],'env':_0x533e55});if(_0x154ca3&&typeof _0x154ca3['then']===_0x3f4cb9(0x3b3))_0x2e3e1d(_0x154ca3);}catch(_0x359136){if(_0x359136&&_0x359136[_0x3f4cb9(0x461)]===!![]&&_0x359136[_0x3f4cb9(0x316)]!==_0x3f4cb9(0x3cf)){const _0x16232a=new Error(_0x359136[_0x3f4cb9(0x367)]);_0x16232a['code']=_0x3f4cb9(0x3cf);throw _0x16232a;}throw _0x359136;}}const _0x45d43b=new Map();function _0x5dc11a(_0x378bb6,_0x53725e,_0x3b4aec,_0x29f0ab,_0x2a0610,_0x1a0b7e){const _0x55b754=_0x36a2,_0x1b4167=_0x23f4e7(_0x378bb6),_0x456c49=(_0x14f8a8[_0x55b754(0x6ce)](_0x1a0b7e)||{})[_0x55b754(0x4f7)]||_0x4324fe,_0x2fc976=new AbortController(),_0x2adf33=(_0x47a951,..._0x629a76)=>_0x456c49[_0x55b754(0x24a)](_0x55b754(0x72c),'default',_0x47a951,_0x629a76,![]),_0x50a1ed={'okdb':_0x456c49,'env':_0x14f8a8[_0x55b754(0x6ce)](_0x1a0b7e)||null,'job':_0x29f0ab,'jobId':_0x2a0610,'signal':_0x2fc976[_0x55b754(0x1cc)],'heartbeat':()=>_0x2adf33(_0x55b754(0x7c4),_0x3b4aec),'markProgress':_0x5c9f0b=>_0x2adf33(_0x55b754(0x58a),_0x3b4aec,_0x5c9f0b),'log':(_0x38cbf1,_0x234d7d)=>_0x2adf33(_0x55b754(0x7d3),_0x3b4aec,_0x38cbf1,_0x234d7d)};_0x45d43b[_0x55b754(0x7a0)](_0x3b4aec,{'ctrl':_0x2fc976,'call':_0x2adf33});const _0x11c2de=()=>{_0x45d43b['delete'](_0x3b4aec);try{_0x2adf33('ctxRelease',_0x3b4aec);}catch{}};let _0x52d015;try{_0x52d015=_0x1b4167(_0x53725e,_0x50a1ed);}catch(_0x1dc4d6){_0x11c2de();throw _0x1dc4d6;}if(_0x52d015&&typeof _0x52d015[_0x55b754(0x600)]===_0x55b754(0x3b3)){const _0x196f4c=_0x353521(_0x52d015);return _0x52d015['then'](_0x11c2de,_0x11c2de),{'$token':_0x196f4c};}return _0x11c2de(),_0x52d015;}function _0x484b26(){const _0x50bbaf=_0x36a2;for(const [_0x172311,_0xe66b46]of _0x45d43b){if(_0xe66b46[_0x50bbaf(0x44d)][_0x50bbaf(0x1cc)]['aborted'])continue;let _0x178ca0;try{_0x178ca0=_0xe66b46[_0x50bbaf(0x245)](_0x50bbaf(0x2cf),_0x172311);}catch{continue;}if(_0x178ca0&&_0x178ca0['aborted']){const {OKDBError:_0x480531}=requireErrors();_0xe66b46['ctrl']['abort'](new _0x480531(_0x178ca0[_0x50bbaf(0x367)],_0x178ca0[_0x50bbaf(0x316)]));}}}let _0x4324fe=null;function _0x2576f2(_0xae746b){_0x4324fe=_0xae746b;}function _0x2bba21(_0x188c99,_0x4c676c,_0x32d4b8,_0x43e0a8,_0x43df60,_0x3cdbad,_0x59ccdb){const _0x5afecd=_0x36a2,_0x51d933=_0x23f4e7(_0x188c99),_0x4642cb=_0x14f8a8[_0x5afecd(0x6ce)](_0x32d4b8);try{const _0xb2711a=_0x4c676c?_0x51d933(_0x43df60,_0x3cdbad):_0x51d933({'env':_0x4642cb,'okdb':_0x4642cb&&_0x4642cb[_0x5afecd(0x4f7)],'payload':_0x445458(_0x43e0a8)},_0x43df60,_0x3cdbad);if(_0xb2711a&&typeof _0xb2711a[_0x5afecd(0x600)]==='function'){if(_0x3cdbad&&_0x3cdbad[_0x5afecd(0x82b)]===_0x5afecd(0x3a4))_0xb2711a['then'](undefined,()=>{});else{if(_0x59ccdb){const _0x1fd9b0=_0x39dbad(_0xb2711a);if(_0x1fd9b0===0x0)return null;return{'$token':_0x1fd9b0};}else _0x2e3e1d(_0xb2711a);}}}catch(_0x3869cd){if(_0x3869cd&&_0x3869cd[_0x5afecd(0x461)]===!![]&&_0x3869cd[_0x5afecd(0x316)]!==_0x5afecd(0x3cf)){const _0x237ab4=new Error(_0x3869cd[_0x5afecd(0x367)]);_0x237ab4['code']=_0x5afecd(0x3cf);throw _0x237ab4;}throw _0x3869cd;}return null;}function _0x39dbad(_0x1b5312){const _0x24ba10=_0x36a2;let _0x1028b3=_0x24ba10(0x641),_0x8f022d;_0x1b5312[_0x24ba10(0x600)](_0x81a80a=>{_0x1028b3='ok',_0x8f022d=_0x81a80a;},_0x3584cc=>{_0x1028b3='err',_0x8f022d=_0x3584cc;});for(let _0x3e1efe=0x0;_0x3e1efe<0x64&&_0x1028b3==='pending';_0x3e1efe++)process[_0x24ba10(0x168)]();if(_0x1028b3==='ok')return 0x0;const _0x1e7b17=_0x5e13e6++,_0x13f5df={'state':_0x1028b3,'value':_0x8f022d};_0x20ce5a[_0x24ba10(0x7a0)](_0x1e7b17,_0x13f5df);if(_0x1028b3===_0x24ba10(0x641))_0x1b5312['then'](_0xa6f389=>{const _0x51192c=_0x24ba10;_0x13f5df[_0x51192c(0x76c)]='ok',_0x13f5df['value']=_0xa6f389,_0x1ed962();},_0x5f0f2d=>{const _0x29bde2=_0x24ba10;_0x13f5df[_0x29bde2(0x76c)]=_0x29bde2(0x20f),_0x13f5df[_0x29bde2(0x821)]=_0x5f0f2d,_0x1ed962();});return _0x1e7b17;}function _0x4d3e(_0x1d0320){const _0x3580ea=_0x36a2;let _0x5d477d=_0xc638bf[_0x3580ea(0x6ce)](_0x1d0320);return _0x5d477d===undefined&&(_0x5d477d=_0xffb492++,_0xc638bf['set'](_0x1d0320,_0x5d477d),_0x578a6f[_0x3580ea(0x7a0)](_0x5d477d,{'fn':_0x1d0320,'refs':0x0})),_0x578a6f[_0x3580ea(0x6ce)](_0x5d477d)['refs']++,_0x5d477d;}function _0x4c51de(_0x16032b){const _0x28a263=_0x36a2,_0x1aeb39=_0x578a6f['get'](_0x16032b);if(!_0x1aeb39)return;--_0x1aeb39[_0x28a263(0x3ec)]<=0x0&&(_0x578a6f['delete'](_0x16032b),_0xc638bf[_0x28a263(0x243)](_0x1aeb39['fn']));}function _0x23f4e7(_0x328bd4){const _0x2e085c=_0x36a2,_0x1c3148=_0x578a6f[_0x2e085c(0x6ce)](_0x328bd4);if(!_0x1c3148)throw new Error(_0x2e085c(0x79f)+_0x328bd4);return _0x1c3148['fn'];}function _0x353521(_0x326483){const _0x57926=_0x36a2;if(_0x326483&&typeof _0x326483[_0x57926(0x600)]==='function'){const _0x5af0a0=_0x5e13e6++,_0xa648a1={'state':_0x57926(0x641),'value':undefined};return _0x20ce5a['set'](_0x5af0a0,_0xa648a1),_0x326483['then'](_0x529df1=>{const _0x4b604a=_0x57926;_0xa648a1[_0x4b604a(0x76c)]='ok',_0xa648a1[_0x4b604a(0x821)]=_0x529df1,_0x1ed962();},_0x40a22e=>{const _0x4a87aa=_0x57926;_0xa648a1['state']='err',_0xa648a1[_0x4a87aa(0x821)]=_0x40a22e,_0x1ed962();}),_0x5af0a0;}return 0x0;}let _0x478282=()=>{},_0x11ce00=null;function _0x448757(_0x434b5b,_0xc49b2f=null){_0x478282=_0x434b5b,_0x11ce00=_0xc49b2f;}function _0x4a2aea(_0x3299ad){return _0x11ce00===_0x3299ad;}function _0x1ed962(){_0x478282();}function _0x3008b7(_0x54d647){const _0x3dbcd7=_0x36a2,_0x569bff=_0x20ce5a[_0x3dbcd7(0x6ce)](_0x54d647);if(!_0x569bff)return{'state':_0x3dbcd7(0x20f),'error':{'message':'unknown\x20promise\x20token'}};if(_0x569bff[_0x3dbcd7(0x76c)]===_0x3dbcd7(0x641))return{'state':_0x3dbcd7(0x641)};_0x20ce5a['delete'](_0x54d647);if(_0x569bff[_0x3dbcd7(0x76c)]==='ok')return{'state':'ok','value':_0x569bff['value']};const _0x596984=_0x569bff['value'];return{'state':_0x3dbcd7(0x20f),'error':{'message':_0x596984&&_0x596984[_0x3dbcd7(0x367)]!=null?String(_0x596984[_0x3dbcd7(0x367)]):String(_0x596984),'stack':_0x596984&&_0x596984[_0x3dbcd7(0x86d)],'code':_0x596984&&_0x596984['code'],'status':_0x596984&&typeof _0x596984[_0x3dbcd7(0x2e4)]==='number'?_0x596984['status']:undefined,'hold':!!(_0x596984&&_0x596984[_0x3dbcd7(0x461)]===!![])}};}function _0x3eb388(_0x43e372,_0x1e6da0){const _0x4b0f48=_0x36a2;_0x888ce[_0x4b0f48(0x7a0)](_0x43e372,_0x1e6da0);}function _0x1e4662(_0x109861){const _0x43a0ca=_0x36a2;_0x888ce[_0x43a0ca(0x243)](_0x109861);}let _0x300908=0x0;function _0x8e78a3(){return _0x300908>0x0;}function _0x2cc1f3(){_0x300908++;try{return _0x4fb6ae['apply'](undefined,arguments);}finally{_0x300908--;}}function _0x4fb6ae(_0x447963,_0x14bfc3,_0x55afcc,_0x5e2062,_0x57fe8c,_0x1fe9bd){const _0x2bd03e=_0x36a2;switch(_0x447963){case _0x2bd03e(0x4d1):return _0x4d3e(_0x14bfc3);case _0x2bd03e(0x2db):return _0x4c51de(_0x14bfc3);case _0x2bd03e(0x245):{const _0x574a60=Array['prototype']['slice'][_0x2bd03e(0x245)](arguments,0x2),_0x5c6961=_0x23f4e7(_0x14bfc3)[_0x2bd03e(0x5fb)](undefined,_0x574a60);return _0x5c6961&&typeof _0x5c6961['then']===_0x2bd03e(0x3b3)?_0x2e3e1d(_0x5c6961):_0x5c6961;}case _0x2bd03e(0x521):{const _0x193205=Array[_0x2bd03e(0x771)][_0x2bd03e(0x6fe)]['call'](arguments,0x2),_0x122a73=_0x23f4e7(_0x14bfc3)['apply'](undefined,_0x193205);if(_0x122a73&&typeof _0x122a73['then']===_0x2bd03e(0x3b3))return{'$token':_0x353521(_0x122a73)};return{'$value':_0x122a73===undefined?null:_0x122a73,'$undef':_0x122a73===undefined};}case'event':{const _0x401f4e=_0x888ce[_0x2bd03e(0x6ce)](_0x14bfc3);if(_0x401f4e)_0x401f4e[_0x2bd03e(0x707)](_0x55afcc,_0x5e2062);return undefined;}case'log':{const _0x58487d=_0x888ce['get'](_0x14bfc3);if(_0x58487d)_0x58487d[_0x2bd03e(0x1ac)](_0x55afcc);return undefined;}case _0x2bd03e(0x816):return _0x2bba21(_0x14bfc3,_0x55afcc,_0x5e2062,_0x57fe8c,_0x1fe9bd,arguments[0x6],arguments[0x7]);case _0x2bd03e(0x86b):return _0x42aae5(_0x14bfc3,_0x55afcc,_0x5e2062);case _0x2bd03e(0x16f):return _0x5dc11a(_0x14bfc3,_0x55afcc,_0x5e2062,_0x57fe8c,_0x1fe9bd,arguments[0x6]);case _0x2bd03e(0x281):return _0x1b9b37['apply'](null,Array[_0x2bd03e(0x771)][_0x2bd03e(0x6fe)][_0x2bd03e(0x245)](arguments,0x1));case _0x2bd03e(0x551):return _0x241040(_0x14bfc3,_0x55afcc,_0x5e2062);case _0x2bd03e(0x794):return _0x3008b7(_0x14bfc3);case'fetchJson':{const _0x71cca2=((async()=>{const _0x2097b2=_0x2bd03e,_0x141449=await globalThis[_0x2097b2(0x73e)](_0x14bfc3);if(!_0x141449['ok']){const _0x2447da=new Error('HTTP\x20'+_0x141449[_0x2097b2(0x2e4)]);_0x2447da[_0x2097b2(0x316)]=_0x2097b2(0x6b3);throw _0x2447da;}return _0x141449[_0x2097b2(0x650)]();})());return _0x2e3e1d(_0x71cca2)??null;}case'emb':return _0x6cf95d(_0x14bfc3,_0x55afcc,_0x5e2062);case _0x2bd03e(0x7a6):return _0x33d227(_0x14bfc3,_0x55afcc,_0x5e2062);case _0x2bd03e(0x7ea):return _0x5deb4e(_0x14bfc3,_0x55afcc,_0x5e2062);default:throw new Error(_0x2bd03e(0x17b)+_0x447963);}}return bridge_1={'inNativeCall':_0x8e78a3,'regObject':_0x3adb68,'checkSignals':_0x484b26,'setCurrentDb':_0x2576f2,'forgetDb':_0x1b2f9c,'storePayload':_0x2a870c,'registerEnv':_0x2936ac,'resolvePayload':_0x445458,'bridge':_0x2cc1f3,'reg':_0x4d3e,'unreg':_0x4c51de,'fnOf':_0x23f4e7,'track':_0x353521,'resolve':_0x3008b7,'registerTarget':_0x3eb388,'unregisterTarget':_0x1e4662,'setKick':_0x448757,'kickOwnedBy':_0x4a2aea},bridge_1;}var writebatch,hasRequiredWritebatch;function requireWritebatch(){const _0xa90467=_0x2d5353;if(hasRequiredWritebatch)return writebatch;hasRequiredWritebatch=0x1;const {reclass:_0x3af623}=requireErrors(),_0x299d58=requireBridge(),_0x30d525=new Map();let _0x30021c=null;function _0x2495b6(_0x3e3bfa){const _0x5a710e=_0x36a2;if(_0x30021c)return;_0x30021c=_0x3e3bfa,_0x3e3bfa[_0x5a710e(0x826)](_0x27f9ff);}function _0x27f9ff(){const _0xc3461f=_0x30021c['settledTickets']();for(const _0x572581 of _0xc3461f){const _0x4b5ee6=_0x30d525['get'](_0x572581);_0x4b5ee6&&(_0x30d525['delete'](_0x572581),_0x4b5ee6());}}function _0x5040f5(_0x121fc0,_0x53222a){const _0x2c46cc=_0x36a2;_0x30d525[_0x2c46cc(0x7a0)](_0x121fc0,_0x53222a);}class _0x1d940f{constructor(_0x1ee0cb){const _0x5af9d9=_0x36a2;this['db']=_0x1ee0cb,this[_0x5af9d9(0x72c)]=[],this[_0x5af9d9(0x311)]=![],this['inBatch']=![],this[_0x5af9d9(0x57f)]=new Set();}[_0xa90467(0x4eb)](_0xbec1bb,_0x3af299,_0x20d60e,_0x88fba6){const _0x383632=_0xa90467;if(_0x299d58[_0x383632(0x211)]())try{return Promise[_0x383632(0x794)](this['db']['_call'](_0xbec1bb,_0x3af299,_0x20d60e,_0x88fba6));}catch(_0x2460b6){return Promise[_0x383632(0x47c)](_0x2460b6);}const _0x20b613=new Promise((_0x1caf15,_0x1b2474)=>{const _0x2c55ca=_0x383632;this[_0x2c55ca(0x72c)]['push']({'item':[_0xbec1bb,_0x3af299,_0x20d60e,_0x88fba6],'resolve':_0x1caf15,'reject':_0x1b2474});});this[_0x383632(0x57f)][_0x383632(0x725)](_0x20b613);const _0x32f321=()=>this[_0x383632(0x57f)][_0x383632(0x243)](_0x20b613);return _0x20b613['then'](_0x32f321,_0x32f321),!this[_0x383632(0x311)]&&(this[_0x383632(0x311)]=!![],setImmediate(()=>{const _0x2ab8d6=_0x383632;this[_0x2ab8d6(0x311)]=![],this[_0x2ab8d6(0x65f)]();})),_0x20b613;}[_0xa90467(0x65f)](){const _0x5d49eb=_0xa90467;if(!this[_0x5d49eb(0x72c)][_0x5d49eb(0x192)])return;if(this[_0x5d49eb(0x400)]){!this['scheduled']&&(this[_0x5d49eb(0x311)]=!![],setImmediate(()=>{const _0x2456d3=_0x5d49eb;this[_0x2456d3(0x311)]=![],this[_0x2456d3(0x65f)]();}));return;}const _0xa3122=this[_0x5d49eb(0x72c)];this[_0x5d49eb(0x72c)]=[],this[_0x5d49eb(0x7ee)](_0xa3122);}[_0xa90467(0x7ee)](_0x4656d3){const _0x3bbb5f=_0xa90467;let _0x1b342f;this[_0x3bbb5f(0x400)]=!![];try{_0x1b342f=this['db'][_0x3bbb5f(0x38a)][_0x3bbb5f(0x736)](_0x4656d3[_0x3bbb5f(0x4e8)](_0x5f3ee4=>_0x5f3ee4[_0x3bbb5f(0x5ce)]));}catch(_0xa9289e){this['inBatch']=![];if(_0x4656d3['length']>0x1){for(const _0x457911 of _0x4656d3)this[_0x3bbb5f(0x7ee)]([_0x457911]);return;}const _0x335afb=_0x3af623(_0xa9289e);for(const _0x26cf56 of _0x4656d3)_0x26cf56[_0x3bbb5f(0x47c)](_0x335afb);return;}finally{this[_0x3bbb5f(0x400)]=![];}try{this['db'][_0x3bbb5f(0x176)]['wake']();}catch{}const [_0x398a68,_0x31dbb7]=_0x1b342f;_0x5040f5(_0x31dbb7,()=>{const _0x4a03fa=_0x3bbb5f;for(let _0x32050d=0x0;_0x32050d<_0x4656d3[_0x4a03fa(0x192)];_0x32050d++){const _0x33f216=_0x398a68[_0x32050d];if(_0x33f216&&_0x33f216[0x0])_0x4656d3[_0x32050d][_0x4a03fa(0x794)](_0x33f216[0x1]);else _0x4656d3[_0x32050d]['reject'](_0x3af623(_0x33f216?_0x33f216[0x1]:new Error(_0x4a03fa(0x237))));}});}async[_0xa90467(0x7da)](){const _0x2d0233=_0xa90467;this[_0x2d0233(0x65f)]();while(this[_0x2d0233(0x57f)]['size']){await Promise[_0x2d0233(0x373)]([...this[_0x2d0233(0x57f)]]),this[_0x2d0233(0x65f)]();}let _0x56a098;try{_0x56a098=this['db']['_native'][_0x2d0233(0x1c8)]();}catch{return;}await new Promise(_0x139fef=>_0x5040f5(_0x56a098,_0x139fef));}}return writebatch={'install':_0x2495b6,'WriteBatch':_0x1d940f,'whenSettled':_0x5040f5},writebatch;}var pump,hasRequiredPump;function requirePump(){const _0x12a7e9=_0x2d5353;if(hasRequiredPump)return pump;hasRequiredPump=0x1;const _0xbc68d3=Number(process.env.OKDB_NATIVE_IDLE_MS)||0xfa;class _0x4f283a{constructor(_0x26311f){const _0x5ac4bc=_0x36a2;this[_0x5ac4bc(0x72f)]=_0x26311f,this[_0x5ac4bc(0x562)]=null,this['immediate']=null,this[_0x5ac4bc(0x12a)]=![],this[_0x5ac4bc(0x6da)]=![],this['pumping']=![],this[_0x5ac4bc(0x2bb)]=![],this[_0x5ac4bc(0x4e1)]=0x0,this[_0x5ac4bc(0x266)]=[],this[_0x5ac4bc(0x78a)]=[];}[_0x12a7e9(0x7f9)](_0x1944a5){return new Promise(_0x5cba1e=>{const _0x4c242e=_0x36a2,_0x75c7ba=setTimeout(_0x3cd5e2,_0x1944a5);function _0x3cd5e2(){clearTimeout(_0x75c7ba),_0x5cba1e();}this['turnWaiters'][_0x4c242e(0x46d)](_0x3cd5e2);});}[_0x12a7e9(0x4aa)](){const _0x48b5db=_0x12a7e9;if(this[_0x48b5db(0x78a)][_0x48b5db(0x192)]===0x0)return;const _0x4a5b95=this['turnWaiters'];this[_0x48b5db(0x78a)]=[];for(const _0x500e36 of _0x4a5b95)_0x500e36();}['start'](){const _0xdc2fc=_0x12a7e9;this[_0xdc2fc(0x6da)]=![],this['wake']();}[_0x12a7e9(0x32a)](){const _0x5e8a27=_0x12a7e9;this[_0x5e8a27(0x6da)]=!![];if(this[_0x5e8a27(0x562)])clearTimeout(this[_0x5e8a27(0x562)]);if(this[_0x5e8a27(0x5ff)])clearImmediate(this['immediate']);this[_0x5e8a27(0x562)]=this[_0x5e8a27(0x5ff)]=null,this[_0x5e8a27(0x4aa)]();}[_0x12a7e9(0x42a)](){const _0x2b3298=_0x12a7e9;if(this[_0x2b3298(0x6da)]||this['immediate'])return;this['timer']&&(clearTimeout(this[_0x2b3298(0x562)]),this['timer']=null),this['immediate']=setImmediate(()=>{const _0x2b95e3=_0x2b3298;this[_0x2b95e3(0x5ff)]=null,this[_0x2b95e3(0x6eb)]();});}[_0x12a7e9(0x6eb)](){const _0x231c84=_0x12a7e9;if(this[_0x231c84(0x6da)]||this['pumping']){this[_0x231c84(0x2bb)]=!![];return;}this[_0x231c84(0x3b2)]=!![];let _0x40b7bf;try{this[_0x231c84(0x4e1)]++,_0x40b7bf=this[_0x231c84(0x72f)][_0x231c84(0x2c7)]();if(this['afterTurn'])this[_0x231c84(0x783)]();}catch(_0x435ae1){_0x40b7bf=_0xbc68d3,process[_0x231c84(0x864)](()=>{throw _0x435ae1;});}finally{this['pumping']=![],this[_0x231c84(0x4aa)]();}if(this[_0x231c84(0x6da)]||_0x40b7bf===-0x2)return;if(this[_0x231c84(0x2bb)])return this['dirty']=![],this[_0x231c84(0x42a)]();const _0x2ad37b=_0x40b7bf<0x0?_0xbc68d3:Math['max'](0x0,Math[_0x231c84(0x7bc)](_0x40b7bf,_0xbc68d3));if(_0x2ad37b<=0x0)return this[_0x231c84(0x42a)]();this[_0x231c84(0x562)]=setTimeout(()=>{this['timer']=null,this['turn']();},Math['ceil'](_0x2ad37b));if(this[_0x231c84(0x562)][_0x231c84(0x46f)])this[_0x231c84(0x562)][_0x231c84(0x46f)]();}}return pump={'Pumper':_0x4f283a},pump;}var dist$1={},hasRequiredDist$1;function requireDist$1(){const _0x53275e=_0x2d5353;if(hasRequiredDist$1)return dist$1;hasRequiredDist$1=0x1;const _0xa8ee49=Symbol[_0x53275e(0x2c3)](_0x53275e(0x48f)),_0x5cc775={'value':null,'done':!![]},_0x508653={'value':null,'done':!![]};!Symbol['asyncIterator']&&(Symbol['asyncIterator']=Symbol['for'](_0x53275e(0x385)));const _0x1dd011={};class _0xe91c8f{constructor(_0x41e3e2){const _0xdd7249=_0x53275e;_0x41e3e2&&(this[_0xdd7249(0x165)]=_0x41e3e2[Symbol[_0xdd7249(0x1f2)]][_0xdd7249(0x7b2)](_0x41e3e2));}['map'](_0x34fde6){const _0x3d93df=_0x53275e;let _0x1c6965=this,_0x18c181=new _0xe91c8f();return _0x18c181[_0x3d93df(0x165)]=(_0x4f0be1=_0x1dd011)=>{const _0x5546b5=_0x3d93df,{async:_0x407323}=_0x4f0be1;let _0x3ba1c6=_0x1c6965[_0x407323?Symbol[_0x5546b5(0x87b)]:Symbol['iterator']](_0x4f0be1);if(!_0x407323)_0x1c6965[_0x5546b5(0x611)]=!![];let _0x494e99=-0x1;return{'next'(_0x5c827b){const _0x576b5a=_0x5546b5;let _0x36ecaa;do{let _0x151bec;try{if(_0x5c827b)_0x151bec=_0x5c827b,_0x5c827b=null;else{_0x494e99++,_0x151bec=_0x3ba1c6['next']();if(_0x151bec[_0x576b5a(0x600)])return!_0x407323&&this[_0x576b5a(0x3f7)](new Error(_0x576b5a(0x5dc))),_0x151bec[_0x576b5a(0x600)](_0x4dfd02=>this[_0x576b5a(0x730)](_0x4dfd02),_0x834e5c=>{const _0xa36c12=_0x576b5a;return this[_0xa36c12(0x3f7)](_0x834e5c);});}if(_0x151bec['done']===!![]){this[_0x576b5a(0x5f1)]=!![];if(_0x18c181[_0x576b5a(0x65b)])_0x18c181[_0x576b5a(0x65b)]();return _0x151bec;}try{_0x36ecaa=_0x34fde6[_0x576b5a(0x245)](_0x1c6965,_0x151bec[_0x576b5a(0x821)],_0x494e99);if(_0x36ecaa&&_0x36ecaa[_0x576b5a(0x600)]&&_0x407323)return _0x36ecaa[_0x576b5a(0x600)](_0x3d5742=>_0x3d5742===_0xa8ee49?this[_0x576b5a(0x730)]():{'value':_0x3d5742},_0x27fe7b=>{const _0x5df579=_0x576b5a;if(_0x4f0be1[_0x5df579(0x4af)])_0x27fe7b[_0x5df579(0x3a7)]=!![];return this['throw'](_0x27fe7b);});}catch(_0x55907e){if(_0x4f0be1['continueOnRecoverableError'])_0x55907e[_0x576b5a(0x3a7)]=!![];throw _0x55907e;}}catch(_0x452d67){if(_0x18c181[_0x576b5a(0x1a0)])try{_0x36ecaa=_0x18c181[_0x576b5a(0x1a0)](_0x452d67,_0x494e99);}catch(_0x20e682){return this[_0x576b5a(0x3f7)](_0x20e682);}else return this[_0x576b5a(0x3f7)](_0x452d67);}}while(_0x36ecaa===_0xa8ee49);if(_0x36ecaa===_0x5cc775)return this[_0x576b5a(0x700)]();return{'value':_0x36ecaa};},'return'(_0x50e024){const _0x4ac876=_0x5546b5;if(!this[_0x4ac876(0x5f1)]){_0x508653[_0x4ac876(0x821)]=_0x50e024,this[_0x4ac876(0x5f1)]=!![];if(_0x18c181[_0x4ac876(0x65b)])_0x18c181['onDone']();_0x3ba1c6[_0x4ac876(0x700)]?.();}return _0x508653;},'throw'(_0x3c5d38){const _0x816948=_0x5546b5;if(_0x3c5d38[_0x816948(0x3a7)]){if(_0x18c181['returnRecoverableErrors'])try{return{'value':_0x18c181['returnRecoverableErrors'](_0x3c5d38)};}catch(_0x1ef702){this[_0x816948(0x700)]();throw _0x1ef702;}if(_0x4f0be1['continueOnRecoverableError'])throw _0x3c5d38;}this[_0x816948(0x700)]();throw _0x3c5d38;}};},_0x18c181;}[Symbol['asyncIterator']](_0x47bc1a){if(_0x47bc1a)_0x47bc1a={..._0x47bc1a,'async':!![]};else _0x47bc1a={'async':!![]};return this['iterator']=this['iterate'](_0x47bc1a);}[Symbol[_0x53275e(0x1f2)]](_0x33a557){const _0x6f27c=_0x53275e;return this[_0x6f27c(0x1f2)]=this['iterate'](_0x33a557);}[_0x53275e(0x440)](_0x5503ee){const _0xc1d47a=_0x53275e;let _0x19cc75=this[_0xc1d47a(0x4e8)](_0xe4f4d8=>{const _0x40e730=_0xc1d47a;let _0x578e33=_0x5503ee(_0xe4f4d8);if(_0x578e33?.[_0x40e730(0x600)])return _0x578e33[_0x40e730(0x600)](_0x26c986=>_0x26c986?_0xe4f4d8:_0xa8ee49);else return _0x578e33?_0xe4f4d8:_0xa8ee49;}),_0xae3eba=_0x19cc75['iterate'];return _0x19cc75[_0xc1d47a(0x165)]=(_0x4ea541=_0x1dd011)=>{const _0xe87371=_0xc1d47a;if(_0x4ea541[_0xe87371(0x4af)])_0x4ea541={..._0x4ea541,'continueOnRecoverableError':![]};return _0xae3eba(_0x4ea541);},_0x19cc75;}['forEach'](_0xed844f){const _0x4460a0=_0x53275e;let _0x21fee2=this[_0x4460a0(0x1f2)]=this[_0x4460a0(0x165)](),_0x208035;while((_0x208035=_0x21fee2[_0x4460a0(0x730)]())['done']!==!![]){_0xed844f(_0x208035[_0x4460a0(0x821)]);}}[_0x53275e(0x557)](_0x10b4be){const _0x8cc783=_0x53275e;let _0x4dfa7a=new _0xe91c8f();return _0x4dfa7a[_0x8cc783(0x165)]=(_0x5f169f=_0x1dd011)=>{const _0x1f7935=_0x8cc783;let _0x388858=this[_0x1f7935(0x1f2)]=this[_0x1f7935(0x165)](_0x5f169f),_0x2c06de=!![];function _0x368f40(_0x373cd4){const _0x15cf53=_0x1f7935;if(_0x2c06de)try{_0x2c06de=![],_0x388858=_0x10b4be[_0x5f169f[_0x15cf53(0x537)]?Symbol[_0x15cf53(0x87b)]:Symbol[_0x15cf53(0x1f2)]](),_0x373cd4=_0x388858[_0x15cf53(0x730)]();if(_0x4dfa7a['onDone']){if(_0x373cd4[_0x15cf53(0x600)]){if(!_0x5f169f[_0x15cf53(0x537)])throw new Error('Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results');_0x373cd4[_0x15cf53(0x600)](_0x52e6eb=>{if(_0x52e6eb['done']())_0x4dfa7a['onDone']();},_0x3f0452=>{this['return']();throw _0x3f0452;});}else{if(_0x373cd4[_0x15cf53(0x5f1)])_0x4dfa7a[_0x15cf53(0x65b)]();}}}catch(_0x29c083){this['throw'](_0x29c083);}else{if(_0x4dfa7a[_0x15cf53(0x65b)])_0x4dfa7a[_0x15cf53(0x65b)]();}return _0x373cd4;}return{'next'(){const _0x17f1ed=_0x1f7935;try{let _0x9abaf1=_0x388858[_0x17f1ed(0x730)]();if(_0x9abaf1[_0x17f1ed(0x600)]){if(!_0x5f169f[_0x17f1ed(0x537)])throw new Error(_0x17f1ed(0x5dc));return _0x9abaf1[_0x17f1ed(0x600)](_0x560c21=>{const _0x3c93f8=_0x17f1ed;if(_0x560c21[_0x3c93f8(0x5f1)])return _0x368f40(_0x560c21);return _0x560c21;});}if(_0x9abaf1[_0x17f1ed(0x5f1)])return _0x368f40(_0x9abaf1);return _0x9abaf1;}catch(_0x472c17){this[_0x17f1ed(0x3f7)](_0x472c17);}},'return'(_0x5a2cf7){const _0x44a9ee=_0x1f7935;if(!this['done']){_0x508653['value']=_0x5a2cf7,this['done']=!![];if(_0x4dfa7a[_0x44a9ee(0x65b)])_0x4dfa7a[_0x44a9ee(0x65b)]();_0x388858[_0x44a9ee(0x700)]();}return _0x508653;},'throw'(_0x3c9874){const _0x588d21=_0x1f7935;if(_0x5f169f[_0x588d21(0x4af)])throw _0x3c9874;this[_0x588d21(0x700)]();throw _0x3c9874;}};},_0x4dfa7a;}[_0x53275e(0x661)](_0x16cd21){const _0x17cb32=_0x53275e;let _0x46c671=new _0xe91c8f();return _0x46c671[_0x17cb32(0x165)]=(_0x256a08=_0x1dd011)=>{const _0x178ff5=_0x17cb32;let _0xe0b7fc=this['iterator']=this[_0x178ff5(0x165)](_0x256a08),_0x642934;return{'next'(_0x52f716){const _0x1d3734=_0x178ff5;try{do{if(_0x642934){let _0x5b31a7;if(_0x52f716)_0x5b31a7=_0x52f716,_0x52f716=undefined;else _0x5b31a7=_0x642934['next']();if(_0x5b31a7[_0x1d3734(0x600)]){if(!_0x256a08[_0x1d3734(0x537)])throw new Error(_0x1d3734(0x5dc));return _0x5b31a7[_0x1d3734(0x600)](_0x7099cb=>this[_0x1d3734(0x730)](_0x7099cb));}if(!_0x5b31a7['done'])return _0x5b31a7;}let _0x2670e9;if(_0x52f716!=undefined)_0x2670e9=_0x52f716,_0x52f716=undefined;else _0x2670e9=_0xe0b7fc[_0x1d3734(0x730)]();if(_0x2670e9[_0x1d3734(0x600)]){if(!_0x256a08[_0x1d3734(0x537)])throw new Error(_0x1d3734(0x5dc));return _0x642934=undefined,_0x2670e9[_0x1d3734(0x600)](_0xa2e060=>this[_0x1d3734(0x730)](_0xa2e060));}if(_0x2670e9['done']){if(_0x46c671[_0x1d3734(0x65b)])_0x46c671['onDone']();return _0x2670e9;}try{let _0x540931=_0x16cd21(_0x2670e9[_0x1d3734(0x821)]);if(_0x540931?.[_0x1d3734(0x600)]){if(!_0x256a08[_0x1d3734(0x537)])throw new Error(_0x1d3734(0x5dc));return _0x540931[_0x1d3734(0x600)](_0x29c49e=>{const _0x464b7f=_0x1d3734;return Array[_0x464b7f(0x7e3)](_0x29c49e)||_0x29c49e instanceof _0xe91c8f?(_0x642934=_0x29c49e[Symbol[_0x464b7f(0x1f2)]](),this['next']()):(_0x642934=null,{'value':_0x29c49e});},_0x469a9b=>{const _0x1f753e=_0x1d3734;if(_0x256a08[_0x1f753e(0x4af)])_0x469a9b[_0x1f753e(0x3a7)]=!![];this[_0x1f753e(0x3f7)](_0x469a9b);});}if(Array[_0x1d3734(0x7e3)](_0x540931)||_0x540931 instanceof _0xe91c8f)_0x642934=_0x540931[Symbol['iterator']]();else return _0x642934=null,{'value':_0x540931};}catch(_0x15d13f){if(_0x256a08[_0x1d3734(0x4af)])_0x15d13f[_0x1d3734(0x3a7)]=!![];throw _0x15d13f;}}while(!![]);}catch(_0x176573){this[_0x1d3734(0x3f7)](_0x176573);}},'return'(){const _0x444ff0=_0x178ff5;if(_0x46c671[_0x444ff0(0x65b)])_0x46c671[_0x444ff0(0x65b)]();if(_0x642934)_0x642934['return']();return _0xe0b7fc[_0x444ff0(0x700)]();},'throw'(_0xc1d19a){const _0x35af30=_0x178ff5;if(_0x256a08[_0x35af30(0x4af)])throw _0xc1d19a;if(_0x46c671[_0x35af30(0x65b)])_0x46c671[_0x35af30(0x65b)]();if(_0x642934)_0x642934[_0x35af30(0x700)]();this['return']();throw _0xc1d19a;}};},_0x46c671;}['slice'](_0x299eb8,_0x5b5cf5){const _0x10476c=_0x53275e;let _0x378f0d=this[_0x10476c(0x4e8)]((_0x98fca1,_0x1596ca)=>{const _0x561f92=_0x10476c;if(_0x1596ca<_0x299eb8)return _0xa8ee49;if(_0x1596ca>=_0x5b5cf5)return _0x5cc775[_0x561f92(0x821)]=_0x98fca1,_0x5cc775;return _0x98fca1;});return _0x378f0d['handleError']=(_0x160525,_0x508e5d)=>{if(_0x508e5d<_0x299eb8)return _0xa8ee49;if(_0x508e5d>=_0x5b5cf5)return _0x5cc775;throw _0x160525;},_0x378f0d;}[_0x53275e(0x65d)](_0x2dabb9){const _0x361b16=_0x53275e;if(typeof _0x2dabb9!==_0x361b16(0x3b3))throw new TypeError(_0x361b16(0x43c));let _0x136be4=this[_0x361b16(0x4e8)](_0x3c7a3f=>{return _0x3c7a3f;}),_0x2468ca=_0x136be4[_0x361b16(0x165)];return _0x136be4['iterate']=(_0x5f283e=_0x1dd011)=>{return _0x2468ca({..._0x5f283e,'continueOnRecoverableError':!![]});},_0x136be4[_0x361b16(0x74d)]=_0x2dabb9,_0x136be4;}[_0x53275e(0x730)](){const _0x24d071=_0x53275e;if(!this[_0x24d071(0x1f2)])this[_0x24d071(0x1f2)]=this[_0x24d071(0x165)]();return this[_0x24d071(0x1f2)][_0x24d071(0x730)]();}['toJSON'](){const _0x5704f1=_0x53275e;if(this[_0x5704f1(0x6ca)]&&this[_0x5704f1(0x6ca)][_0x5704f1(0x524)])return this[_0x5704f1(0x6ca)];const _0xe525b=new Error(_0x5704f1(0x2e9));_0xe525b[_0x5704f1(0x7ff)]=this[_0x5704f1(0x6ca)];throw _0xe525b;}get[_0x53275e(0x6ca)](){const _0x39da13=_0x53275e;if(this[_0x39da13(0x136)])return this[_0x39da13(0x136)];let _0x33e9d2=new Promise((_0x4c1a6d,_0x2f9f3c)=>{const _0x483bba=_0x39da13;let _0x5b4305=this[_0x483bba(0x165)](!![]),_0x17d953=[],_0x883ff5=this;Object[_0x483bba(0x2ad)](_0x17d953,_0x483bba(0x282),{'value':_0x883ff5});function _0x4bc496(_0x2297fa){const _0x368d6f=_0x483bba;while(_0x2297fa[_0x368d6f(0x5f1)]!==!![]){if(_0x2297fa['then'])return _0x2297fa[_0x368d6f(0x600)](_0x4bc496);else _0x17d953['push'](_0x2297fa[_0x368d6f(0x821)]);_0x2297fa=_0x5b4305[_0x368d6f(0x730)]();}_0x4c1a6d(_0x883ff5[_0x368d6f(0x136)]=_0x17d953);}_0x4bc496(_0x5b4305['next']());});return _0x33e9d2[_0x39da13(0x282)]=this,this[_0x39da13(0x136)]||(this[_0x39da13(0x136)]=_0x33e9d2);}['resolveData'](){const _0x5105ab=_0x53275e;return this[_0x5105ab(0x6ca)];}['at'](_0xe75d70){for(let _0x38a729 of this){if(_0xe75d70--===0x0)return _0x38a729;}}}return _0xe91c8f[_0x53275e(0x771)]['DONE']=_0x5cc775,dist$1[_0x53275e(0x27c)]=_0xe91c8f,dist$1[_0x53275e(0x337)]=_0xa8ee49,dist$1;}var iterable,hasRequiredIterable;function requireIterable(){const _0x124c20=_0x2d5353;if(hasRequiredIterable)return iterable;hasRequiredIterable=0x1;const {ExtendedIterable:_0x11000a}=requireDist$1(),_0x257d29=Number(process.env.OKDB_NATIVE_RANGE_CHUNK)||0x3e8,_0x11dfc7=Math[_0x124c20(0x7bc)](_0x257d29,Number(process.env.OKDB_NATIVE_ROW_CHUNK)||0x100),_0x21f43e=new Set([_0x124c20(0x35a),'byIndex',_0x124c20(0x450),_0x124c20(0x5ed)]),_0x3efd1c=Math['min'](_0x11dfc7,Number(process.env.OKDB_NATIVE_RANGE_FIRST)||0x1),_0x2f3abc=0x4,_0x235c7d=(_0x471083,_0x1b0f72=_0x257d29)=>Math['min'](_0x1b0f72,_0x471083*_0x2f3abc),_0x18c513={'value':undefined,'done':!![]};function _0x46ba74(_0x3fb26c){const _0xc3880d=_0x124c20,_0x97b9e7=new _0x11000a();return _0x97b9e7[_0xc3880d(0x165)]=()=>{let _0x528eff=0x0;return{'next'(){const _0x4cf150=_0x36a2;return _0x528eff<_0x3fb26c[_0x4cf150(0x192)]?{'value':_0x3fb26c[_0x528eff++],'done':![]}:{'value':undefined,'done':!![]};},'return'(){const _0x371010=_0x36a2;return _0x528eff=_0x3fb26c[_0x371010(0x192)],{'value':undefined,'done':!![]};},'throw'(){return _0x528eff=_0x3fb26c['length'],{'value':undefined,'done':!![]};}};},_0x97b9e7;}const _0x3e6acf=_0x1fb8cf=>typeof _0x1fb8cf===_0x124c20(0x859)&&!Number['isNaN'](_0x1fb8cf)?Math[_0x124c20(0x81c)](0x0,Math[_0x124c20(0x69c)](_0x1fb8cf)):Infinity,_0x1b44c7=_0x558dbc=>typeof _0x558dbc===_0x124c20(0x859)?Math[_0x124c20(0x81c)](0x0,Math[_0x124c20(0x232)](_0x558dbc))||0x0:0x0;function _0x24b6ce(_0x8a30e5,_0x2bf2d2,_0x216415,_0x307094={}){const _0x176a04=_0x124c20,_0x5141de=new _0x11000a(),_0x3c03e8=(_0x307094[_0x176a04(0x2d7)]||_0x3e6acf)(_0x2bf2d2[_0x176a04(0x15c)]),_0x528e72=_0x307094[_0x176a04(0x503)]?_0x11dfc7:_0x257d29,_0x3479df=_0x307094['resumeOpts']||((_0x24573d,_0x5ac713)=>{const _0x2c2872=_0x176a04;_0x24573d[_0x2c2872(0x4df)]=_0x5ac713,_0x24573d[_0x2c2872(0x332)]=!![],delete _0x24573d[_0x2c2872(0x87e)];});let _0x40c93c=null;if(_0x307094[_0x176a04(0x61e)]){const _0x39112c={..._0x2bf2d2,'limit':Math[_0x176a04(0x7bc)](_0x3efd1c,_0x3c03e8)};_0x40c93c={'rows':_0x8a30e5(_0x39112c),'limit':_0x39112c[_0x176a04(0x15c)]};const _0x4be867=_0x40c93c;queueMicrotask(()=>{_0x4be867['dropped']=!![];});}return _0x5141de[_0x176a04(0x165)]=()=>{const _0x1c5f4b=_0x176a04;let _0x5926b1=[],_0x709955=0x0,_0x2fc826=0x0,_0x2b226d,_0x51fe49=![],_0x2745cd=![],_0x28f476=_0x3efd1c;if(_0x40c93c&&!_0x40c93c['dropped']&&!_0x40c93c[_0x1c5f4b(0x679)]){_0x40c93c[_0x1c5f4b(0x679)]=!![],_0x5926b1=_0x40c93c['rows'],_0x51fe49=!![],_0x28f476=_0x235c7d(_0x28f476,_0x528e72);if(_0x5926b1[_0x1c5f4b(0x192)]<_0x40c93c['limit'])_0x2745cd=!![];if(_0x5926b1['length'])_0x2b226d=_0x216415(_0x5926b1[_0x5926b1[_0x1c5f4b(0x192)]-0x1]);}const _0x3b4071=()=>{const _0xbc9de6=_0x1c5f4b;if(_0x2745cd)return;const _0x4234bf=_0x3c03e8-_0x2fc826;if(_0x4234bf<=0x0){_0x2745cd=!![],_0x5926b1=[];return;}const _0x5633a6={..._0x2bf2d2,'limit':Math['min'](_0x28f476,_0x4234bf)};if(_0x51fe49)_0x3479df(_0x5633a6,_0x2b226d);_0x51fe49=!![],_0x28f476=_0x235c7d(_0x28f476,_0x528e72),_0x5926b1=_0x8a30e5(_0x5633a6),_0x709955=0x0;if(_0x5926b1[_0xbc9de6(0x192)]<_0x5633a6['limit'])_0x2745cd=!![];if(_0x5926b1[_0xbc9de6(0x192)])_0x2b226d=_0x216415(_0x5926b1[_0x5926b1[_0xbc9de6(0x192)]-0x1]);};return{'next'(){const _0x593129=_0x1c5f4b;if(_0x709955>=_0x5926b1[_0x593129(0x192)])_0x3b4071();if(_0x709955>=_0x5926b1[_0x593129(0x192)])return{'value':undefined,'done':!![]};return _0x2fc826++,{'value':_0x5926b1[_0x709955++],'done':![]};},'return'(){return _0x2745cd=!![],_0x5926b1=[],{'value':undefined,'done':!![]};},'throw'(){return _0x2745cd=!![],_0x5926b1=[],{'value':undefined,'done':!![]};}};},_0x5141de;}function _0x522ede(_0x115415,_0x57f321,_0x693477,_0x1d544,_0x3c6c23={}){const _0x4bdd2b=_0x124c20,_0x2b7889=(_0x3c6c23[_0x4bdd2b(0x2d7)]||_0x3e6acf)(_0x1d544&&_0x1d544['limit']),_0x4e98a5=_0x21f43e[_0x4bdd2b(0x69d)](_0x57f321)?_0x11dfc7:_0x257d29,_0x5b107a=(_0x3c6c23[_0x4bdd2b(0x5da)]||_0x1b44c7)(_0x1d544&&_0x1d544[_0x4bdd2b(0x87e)]),_0x5e0874=(_0x2196b8,_0x5f32b8,_0x31d4e1)=>{const _0x557134=_0x4bdd2b,_0x3536bc=_0x2b7889-_0x5f32b8,_0xcf7822=Math[_0x557134(0x7bc)](_0x31d4e1,_0x3536bc),_0x7ce026={'limit':_0xcf7822,'offset':_0x5b107a+_0x5f32b8},_0x22d5e3=_0x115415('pinned',[_0x2196b8,_0x57f321,_0xcf7822===_0x3536bc?Infinity:_0xcf7822,..._0x693477(_0x7ce026)]);if(_0x22d5e3[0x0]===-0x1){const _0x1f80e8={'offset':_0x5b107a+_0x5f32b8};if(_0x3536bc!==Infinity)_0x1f80e8[_0x557134(0x15c)]=_0x3536bc;return{'pin':0x0,'rows':_0x115415(_0x57f321,_0x693477(_0x1f80e8)),'raw':Infinity,'eager':!![]};}return{'pin':_0x22d5e3[0x0],'rows':_0x22d5e3[0x1],'raw':_0x22d5e3[0x2]};},_0x30f0f7=_0x366e8a=>{const _0x395d71=_0x4bdd2b;if(_0x366e8a)_0x115415(_0x395d71(0x2fc),[_0x366e8a]);};function _0x1196d0(_0x34e1b6,_0x61b2e9,_0x2c92a8){const _0xc7a749=_0x4bdd2b;let _0x95dfd=0x0,_0x128663=[],_0x57dbe5=0x0,_0x19bb99=_0x34e1b6,_0xe08a95=_0x3efd1c,_0x38f196=_0x2b7889-_0x34e1b6<=0x0;if(_0x2c92a8)({buf:_0x128663,pos:_0x57dbe5,consumed:_0x19bb99,size:_0xe08a95,exhausted:_0x38f196}=_0x2c92a8);const _0x221b72=_0x512f95=>{const _0x2bffbf=_0x36a2;_0x95dfd=_0x512f95[_0x2bffbf(0x202)],_0x128663=_0x512f95['rows'],_0x57dbe5=0x0,_0x19bb99+=_0x512f95[_0x2bffbf(0x6a8)],_0xe08a95=_0x235c7d(_0xe08a95,_0x4e98a5);if(!_0x95dfd)_0x38f196=!![];};if(_0x61b2e9)_0x221b72(_0x61b2e9);const _0x5917a0=()=>{const _0x544662=_0x95dfd;_0x95dfd=0x0,_0x30f0f7(_0x544662);},_0x2d5e91={'next'(){const _0x48c8e9=_0x36a2;while(_0x57dbe5>=_0x128663[_0x48c8e9(0x192)]){if(_0x38f196||_0x2b7889-_0x19bb99<=0x0)return _0x38f196=!![],_0x5917a0(),_0x18c513;try{_0x221b72(_0x5e0874(_0x95dfd,_0x19bb99,_0xe08a95));}catch(_0x5f5d91){_0x95dfd=0x0,_0x38f196=!![],_0x128663=[];throw _0x5f5d91;}}return{'value':_0x128663[_0x57dbe5++],'done':![]};},'return'(){return _0x5917a0(),_0x18c513;},'throw'(){return _0x5917a0(),_0x18c513;},'resumed'(){return _0x1196d0(0x0,null,{'buf':_0x128663,'pos':_0x57dbe5,'consumed':_0x19bb99,'size':_0xe08a95,'exhausted':_0x38f196});},[Symbol[_0xc7a749(0x1f2)]](){return this;}};return _0x2d5e91;}function _0xb5fdfc(){if(_0x2b7889<=0x0)return null;const _0x39d6dc=_0x5e0874(0x0,0x0,_0x3efd1c);return queueMicrotask(()=>{const _0x49df80=_0x36a2;!_0x39d6dc['taken']&&(_0x39d6dc[_0x49df80(0x87a)]=!![],_0x30f0f7(_0x39d6dc[_0x49df80(0x202)]));}),_0x39d6dc;}return{'source':_0x1196d0,'prefetch':_0xb5fdfc};}function _0x43682c(_0x82fe55){const _0x9cd394=_0x124c20;if(!_0x82fe55||_0x82fe55['taken']||_0x82fe55[_0x9cd394(0x87a)])return null;return _0x82fe55['taken']=!![],_0x82fe55;}return iterable={'fromArray':_0x46ba74,'chunkedRange':_0x24b6ce,'pinnedChunks':_0x522ede,'claimPrefetch':_0x43682c,'lmdbLimit':_0x3e6acf,'lmdbOffset':_0x1b44c7,'CHUNK':_0x257d29,'ROW_CHUNK':_0x11dfc7,'FIRST':_0x3efd1c},iterable;}var rawdb,hasRequiredRawdb;function requireRawdb(){const _0x24cfd1=_0x2d5353;if(hasRequiredRawdb)return rawdb;hasRequiredRawdb=0x1;const {fromArray:_0x44ccb0}=requireIterable();class _0x198f2a{constructor(_0x5c0066,_0x240930='',_0x420feb={},_0x574d1b=null){const _0x477570=_0x36a2;this['_env']=_0x5c0066,this[_0x477570(0x425)]=_0x240930,this[_0x477570(0x5d1)]=!!(_0x420feb&&_0x420feb['dupSort']),this['useVersions']=!!(_0x420feb&&_0x420feb['useVersions']),this[_0x477570(0x6f0)]=_0x574d1b||this,this[_0x477570(0x41a)]=null;}get[_0x24cfd1(0x363)](){const _0x43398f=_0x24cfd1;return this['dupSort']?!![]:this[_0x43398f(0x4c8)]?'v':![];}['_n'](_0x54e298,_0x2d7452){const _0x46ade2=_0x24cfd1;return this[_0x46ade2(0x76b)][_0x46ade2(0x4f7)][_0x46ade2(0x24a)](_0x46ade2(0x6a8),this[_0x46ade2(0x76b)][_0x46ade2(0x425)],_0x54e298,[this[_0x46ade2(0x425)],this[_0x46ade2(0x363)],..._0x2d7452],!![]);}[_0x24cfd1(0x299)](_0x64ed82,_0x9331d1){const _0x3f92c8=_0x24cfd1;return this[_0x3f92c8(0x76b)][_0x3f92c8(0x4f7)][_0x3f92c8(0x24a)](_0x3f92c8(0x6a8),this[_0x3f92c8(0x76b)][_0x3f92c8(0x425)],_0x64ed82,[this[_0x3f92c8(0x425)],this[_0x3f92c8(0x363)],..._0x9331d1],![]);}['_write'](_0x6d8457){const _0x1d0c32=_0x24cfd1,_0x3c468a=this[_0x1d0c32(0x76b)][_0x1d0c32(0x540)];if(_0x3c468a)_0x3c468a[_0x1d0c32(0x46d)]({'sub':this['name'],'dup':this[_0x1d0c32(0x363)],..._0x6d8457});else this['_env'][_0x1d0c32(0x4f7)][_0x1d0c32(0x24a)](_0x1d0c32(0x6a8),this[_0x1d0c32(0x76b)]['name'],_0x1d0c32(0x5ba),[[{'sub':this[_0x1d0c32(0x425)],'dup':this['_dupArg'],..._0x6d8457}]],!![]);}[_0x24cfd1(0x6ce)](_0x38c5c3){const _0x1f781d=_0x24cfd1;return this[_0x1f781d(0x299)](_0x1f781d(0x6ce),[_0x38c5c3]);}[_0x24cfd1(0x638)](_0x5d701c){const _0x29eb8f=_0x24cfd1;if(this['useVersions'])return this[_0x29eb8f(0x299)](_0x29eb8f(0x638),[_0x5d701c]);const _0x16aae7=this[_0x29eb8f(0x6ce)](_0x5d701c);return _0x16aae7===undefined?undefined:{'value':_0x16aae7};}[_0x24cfd1(0x16c)](_0xb4d3fe){const _0x10ae00=_0x24cfd1;return this[_0x10ae00(0x299)](_0x10ae00(0x5e2),[_0xb4d3fe]);}[_0x24cfd1(0x52f)](_0x41e143){const _0x582e4a=_0x24cfd1;return this[_0x582e4a(0x6ce)](_0x41e143);}[_0x24cfd1(0x35a)](_0x1afeee={}){const _0x4e6131=_0x24cfd1,_0x118d2e=this[_0x4e6131(0x299)](_0x4e6131(0x35a),[_0x1afeee]),_0xabe855=_0x1afeee[_0x4e6131(0x514)]===![],_0x37d862=_0x1afeee['keys']===![];return _0x44ccb0(_0x118d2e[_0x4e6131(0x4e8)](([_0x551ac1,_0x1056c5,_0x5cb46c])=>{if(_0xabe855)return _0x551ac1;if(_0x37d862)return _0x1056c5;return _0x5cb46c===undefined?{'key':_0x551ac1,'value':_0x1056c5}:{'key':_0x551ac1,'value':_0x1056c5,'version':_0x5cb46c};}));}[_0x24cfd1(0x462)](_0xc060fc={}){const _0x579fd2=_0x24cfd1;return _0x44ccb0(this[_0x579fd2(0x299)](_0x579fd2(0x35a),[_0xc060fc])[_0x579fd2(0x4e8)](([_0x4b09e2])=>_0x4b09e2));}[_0x24cfd1(0x38b)](_0x191837,_0x149d3d={}){const _0x213724=_0x24cfd1,_0x5bba87=this[_0x213724(0x299)]('getRange',[{..._0x149d3d,'start':_0x191837,'end':_0x191837,'inclusiveEnd':!![]}]);return _0x44ccb0(_0x5bba87[_0x213724(0x4e8)](([,_0x1151fe])=>_0x1151fe));}['getCount'](_0x4fe729={}){const _0x1434dd=_0x24cfd1;return this[_0x1434dd(0x299)](_0x1434dd(0x21b),[_0x4fe729]);}[_0x24cfd1(0x20d)](){const _0x540ac0=_0x24cfd1;return{'entryCount':this[_0x540ac0(0x7d6)]()};}['put'](_0xc9e7dc,_0x185d55,_0x33e01f){const _0x54c6e6=_0x24cfd1;return this[_0x54c6e6(0x3a8)]({'op':_0x54c6e6(0x14f),'key':_0xc9e7dc,'value':_0x185d55,'version':_0x33e01f}),Promise[_0x54c6e6(0x794)](!![]);}[_0x24cfd1(0x759)](_0x2f4493,_0x3741f1,_0x8de6f5){const _0x2a49de=_0x24cfd1;return this[_0x2a49de(0x3a8)]({'op':_0x2a49de(0x14f),'key':_0x2f4493,'value':_0x3741f1,'version':_0x8de6f5}),!![];}[_0x24cfd1(0x78e)](_0x53f253,_0x6a98fd){const _0x58adb6=_0x24cfd1;return this['_write']({'op':_0x58adb6(0x78e),'key':_0x53f253,'value':_0x6a98fd}),Promise[_0x58adb6(0x794)](!![]);}['removeSync'](_0x45a0bb,_0x9db311){const _0x5bdde=_0x24cfd1;return this[_0x5bdde(0x3a8)]({'op':_0x5bdde(0x78e),'key':_0x45a0bb,'value':_0x9db311}),!![];}[_0x24cfd1(0x53b)](){this['_write']({'op':'clear'});}['clearAsync'](){const _0x459c48=_0x24cfd1;return this['_write']({'op':_0x459c48(0x530)}),Promise[_0x459c48(0x794)]();}['drop'](){this['clearSync']();}[_0x24cfd1(0x5f9)](_0x51f5e8,_0x3b507a={}){const _0xc9b73d=_0x24cfd1,_0x4c06ad=typeof _0x51f5e8===_0xc9b73d(0x712)?_0x51f5e8:_0x3b507a,_0x136443=typeof _0x51f5e8==='object'?_0x51f5e8[_0xc9b73d(0x425)]:_0x51f5e8,_0x182883=new _0x198f2a(this[_0xc9b73d(0x76b)],_0x136443,_0x4c06ad);return _0x182883[_0xc9b73d(0x3a8)]({'op':_0xc9b73d(0x51b)}),_0x182883;}[_0x24cfd1(0x182)](){}[_0x24cfd1(0x6ff)](_0x2a0e63){return this['_tx'](_0x2a0e63);}async['transaction'](_0x1a34fe){const _0x1a91a0=_0x24cfd1;return this[_0x1a91a0(0x6a7)](_0x1a34fe);}[_0x24cfd1(0x11f)](_0x1800a3){const _0x59b401=_0x24cfd1;return this[_0x59b401(0x6a7)](_0x1800a3);}[_0x24cfd1(0x6a7)](_0x5dbe01){const _0x44174a=_0x24cfd1,_0xcb3a62=this[_0x44174a(0x76b)];if(_0xcb3a62[_0x44174a(0x540)])return _0x5dbe01();_0xcb3a62[_0x44174a(0x540)]=[];let _0x5892a8;try{_0x5892a8=_0x5dbe01();}catch(_0x49b786){_0xcb3a62[_0x44174a(0x540)]=null;throw _0x49b786;}const _0x16d902=_0xcb3a62['_rawTxnBuf'];_0xcb3a62[_0x44174a(0x540)]=null;if(_0x16d902['length'])_0xcb3a62[_0x44174a(0x4f7)][_0x44174a(0x24a)](_0x44174a(0x6a8),_0xcb3a62[_0x44174a(0x425)],_0x44174a(0x5ba),[_0x16d902],!![]);return _0x5892a8;}[_0x24cfd1(0x157)](){return{'done'(){}};}[_0x24cfd1(0x24e)](){}}return rawdb={'RawDb':_0x198f2a},rawdb;}var views,hasRequiredViews;function requireViews(){const _0x40f90a=_0x2d5353;if(hasRequiredViews)return views;hasRequiredViews=0x1;const {RawDb:_0x27cbe2}=requireRawdb();class _0x52a83b{constructor(_0x559321){const _0x5e42c6=_0x36a2;this[_0x5e42c6(0x784)]=_0x559321,this['_n']=(_0x3c3aaf,_0x114a58,_0x121332=!![])=>_0x559321[_0x5e42c6(0x4f7)]['_call'](_0x5e42c6(0x555),_0x559321[_0x5e42c6(0x425)],_0x3c3aaf,_0x114a58,_0x121332);}get[_0x40f90a(0x5c5)](){const _0x546d30=_0x40f90a,_0xcd9d98=this,_0x131508=this['env'],_0x3e8b44=_0x269f73=>_0x269f73?new _0x27cbe2(_0x131508,_0x269f73[_0x546d30(0x425)],{'dupSort':_0x269f73[_0x546d30(0x647)]}):undefined,_0x47732b=_0xd990b8=>{const _0x31c308=_0x546d30,_0x43f13c=_0xcd9d98['_n'](_0x31c308(0x798),[_0xd990b8],![]);if(!_0x43f13c)return undefined;const _0x525e49=_0x43f13c[_0x31c308(0x59e)],_0x4436e9=new Map(Object['entries'](_0x525e49[_0x31c308(0x3ec)])),_0x4e3ebf=new Map(Object[_0x31c308(0x45b)](_0x43f13c[_0x31c308(0x35c)])[_0x31c308(0x4e8)](([_0x53f5c1,_0x467a0f])=>[_0x53f5c1,_0x3e8b44(_0x467a0f)]));return{'name':_0xd990b8,'compiled':{'T':_0x525e49['T'],'reducers':_0x525e49[_0x31c308(0x18d)],'refs':_0x4436e9,'granId':_0x525e49[_0x31c308(0x72b)],'type':_0x525e49[_0x31c308(0x2d0)],'_nidFor':_0x134f21=>_0xcd9d98['_n'](_0x31c308(0x349),[_0xd990b8,_0x134f21],![])},'viewDb':_0x3e8b44(_0x43f13c['dbs'][_0x31c308(0x4cb)]),'metaDb':_0x3e8b44(_0x43f13c[_0x31c308(0x34e)][_0x31c308(0x1b3)]),'itemsDb':_0x3e8b44(_0x43f13c['dbs']['itemsDb']),'bucketsDb':_0x3e8b44(_0x43f13c['dbs']['bucketsDb']),'sortedDb':_0x3e8b44(_0x43f13c[_0x31c308(0x34e)][_0x31c308(0x15f)]),'groupsDb':_0x3e8b44(_0x43f13c[_0x31c308(0x34e)][_0x31c308(0x53d)]),'prevDb':_0x3e8b44(_0x43f13c['dbs'][_0x31c308(0x483)]),'refItemsDbs':_0x4e3ebf,'refTrackingDbs':new Map(Object[_0x31c308(0x45b)](_0x43f13c[_0x31c308(0x1af)]||{})[_0x31c308(0x4e8)](([_0x3bccee,_0x27a733])=>[_0x3bccee,_0x3e8b44(_0x27a733)])),'stopFn':_0x43f13c[_0x31c308(0x3ea)]?async()=>_0xcd9d98['_n']('stopView',[_0xd990b8]):null,'bootstrapWorker':null};};return{'get':_0x206e2d=>_0x47732b(_0x206e2d),'has':_0x5dabfb=>_0xcd9d98['_n'](_0x546d30(0x435),[],![])['includes'](_0x5dabfb),'keys':()=>_0xcd9d98['_n'](_0x546d30(0x435),[],![])[Symbol['iterator']](),get 'size'(){const _0x55bcbb=_0x546d30;return _0xcd9d98['_n'](_0x55bcbb(0x435),[],![])[_0x55bcbb(0x192)];},[Symbol['iterator']]:()=>_0xcd9d98['_n'](_0x546d30(0x435),[],![])['map'](_0x192d11=>[_0x192d11,_0x47732b(_0x192d11)])[Symbol[_0x546d30(0x1f2)]]()};}get[_0x40f90a(0x2df)](){const _0x360f0a=_0x40f90a,_0x5a936a=this;return{'has':_0x5e643b=>_0x5a936a['_n'](_0x360f0a(0x732),[],![])[_0x360f0a(0x6f8)](_0x5e643b),get 'size'(){const _0x470979=_0x360f0a;return _0x5a936a['_n'](_0x470979(0x732),[],![])[_0x470979(0x192)];},'keys':()=>_0x5a936a['_n']('customReducerNames',[],![])[Symbol[_0x360f0a(0x1f2)]]()};}async[_0x40f90a(0x3d4)](){const _0x50048a=_0x40f90a;return this['_n'](_0x50048a(0x3d4),[]);}async[_0x40f90a(0x1d3)](_0x21cb9e={}){const _0x46c615=_0x40f90a;return this['_n'](_0x46c615(0x1d3),[_0x21cb9e]);}async['create'](_0x327a6d,_0x46946f){const _0x4b8299=_0x40f90a;return await this[_0x4b8299(0x6bf)](_0x4b8299(0x193),[_0x327a6d,_0x46946f]),await this[_0x4b8299(0x559)](_0x327a6d),{'name':_0x327a6d};}async[_0x40f90a(0x6bf)](_0x345303,_0x3f367d){const _0x1b3c3f=_0x40f90a,_0xb6cad6=Date[_0x1b3c3f(0x76a)]()+0x7d0;for(;;){try{return this['_n'](_0x345303,_0x3f367d);}catch(_0x129166){if(_0x129166?.[_0x1b3c3f(0x316)]!==_0x1b3c3f(0x287)||Date[_0x1b3c3f(0x76a)]()>=_0xb6cad6)throw _0x129166;await new Promise(_0x25f926=>setTimeout(_0x25f926,0x32));}}}async[_0x40f90a(0x559)](_0x3c1c10){const _0xb9daeb=_0x40f90a,_0x3ccc69=this[_0xb9daeb(0x784)]['okdb'][_0xb9daeb(0x176)];while(this['_n'](_0xb9daeb(0x785),[_0x3c1c10],![]))await _0x3ccc69[_0xb9daeb(0x7f9)](0xfa);try{this['_n'](_0xb9daeb(0x25f),[_0x3c1c10],![]);}catch(_0x14e10f){if(_0x14e10f?.[_0xb9daeb(0x316)]!==_0xb9daeb(0x64d)||_0x14e10f[_0xb9daeb(0x433)]?.[_0xb9daeb(0x549)]!==_0xb9daeb(0x541))throw _0x14e10f;await this['_awaitPeerBuild'](_0x3c1c10);}}async['_awaitPeerBuild'](_0x1c5cc6){const _0x50a4a3=_0x40f90a,_0x8c935c=this[_0x50a4a3(0x784)][_0x50a4a3(0x4f7)]['_pumper'];let _0x34e183=0x0,_0x3f9daa='',_0x406edf=Date[_0x50a4a3(0x76a)]();for(;;){if(this['_n'](_0x50a4a3(0x785),[_0x1c5cc6],![]))return this[_0x50a4a3(0x559)](_0x1c5cc6);const _0x2d6526=this['getMeta'](_0x1c5cc6);if(!_0x2d6526)throw Object[_0x50a4a3(0x3aa)](new Error('view\x20\x22'+_0x1c5cc6+_0x50a4a3(0x682)),{'code':_0x50a4a3(0x1f7)});const _0x20bf26=_0x2d6526[_0x50a4a3(0x76c)],_0x2077a0=_0x4c680b=>_0x4c680b===_0x50a4a3(0x169)||_0x4c680b===_0x50a4a3(0x44c),_0x151353=Object[_0x50a4a3(0x514)](_0x2d6526[_0x50a4a3(0x4cf)]?.[_0x50a4a3(0x3ec)]??{})[_0x50a4a3(0x454)](_0x354bcc=>_0x2077a0(_0x354bcc?.[_0x50a4a3(0x76c)])),_0x1f3147=_0x2077a0(_0x20bf26)||_0x20bf26===_0x50a4a3(0x772)&&(_0x2d6526['bootstrapStartClock']!=null||_0x151353);if(!_0x1f3147){if(_0x20bf26==='ready'||_0x20bf26===_0x50a4a3(0x772))return;throw Object[_0x50a4a3(0x3aa)](new Error(_0x50a4a3(0x19c)+_0x1c5cc6+_0x50a4a3(0x3c0)+_0x20bf26+'\x22'+(_0x2d6526[_0x50a4a3(0x5b4)]?':\x20'+_0x2d6526['error']:'')),{'code':_0x50a4a3(0x606),'details':{'name':_0x1c5cc6,'state':_0x20bf26}});}const _0x46c4f0=JSON[_0x50a4a3(0x84b)](_0x2d6526);if(_0x46c4f0!==_0x3f9daa)_0x3f9daa=_0x46c4f0,_0x406edf=Date[_0x50a4a3(0x76a)]();else{if(!this[_0x50a4a3(0x784)][_0x50a4a3(0x4f7)]['role']?.[_0x50a4a3(0x23a)]&&Date['now']()-_0x406edf>0x927c0)throw Object[_0x50a4a3(0x3aa)](new Error(_0x50a4a3(0x19c)+_0x1c5cc6+_0x50a4a3(0x81b)),{'code':_0x50a4a3(0x277),'details':{'name':_0x1c5cc6}});}Date[_0x50a4a3(0x76a)]()>=_0x34e183&&this[_0x50a4a3(0x784)][_0x50a4a3(0x4f7)]['role']?.[_0x50a4a3(0x23a)]&&(_0x34e183=Date['now']()+0x3e8,await this[_0x50a4a3(0x1d3)]({'skipReadyRescan':!![]})[_0x50a4a3(0x512)](()=>{})),await _0x8c935c[_0x50a4a3(0x7f9)](0xfa);}}[_0x40f90a(0x6ce)](_0xdf37ef,_0x3905ca={}){const _0x1ec6a9=_0x40f90a,_0x2d24e8=this['_n']('get',[_0xdf37ef,{'preview':_0x3905ca?.[_0x1ec6a9(0x73d)]??{}}],![]);if(_0x2d24e8==null)return null;const _0x4064a7=this['_n']('itemsPlan',[_0xdf37ef],![]);if(!_0x4064a7)return _0x2d24e8;const _0x3b357a=_0x4e8110=>(_0x2baa0b={})=>this['_n'](_0x1ec6a9(0x420),[_0xdf37ef,_0x4e8110,_0x2baa0b],![]);if(_0x4064a7['view']){_0x2d24e8[_0x1ec6a9(0x420)]=_0x3b357a({'kind':_0x1ec6a9(0x36e)});for(const _0x1f1d9b of _0x4064a7[_0x1ec6a9(0x18d)]){if(!_0x1f1d9b[_0x1ec6a9(0x420)])continue;if(_0x1f1d9b[_0x1ec6a9(0x820)]){const _0x598d2b=_0x2d24e8[_0x1f1d9b['name']];if(_0x598d2b?.[_0x1ec6a9(0x73d)]&&Array[_0x1ec6a9(0x7e3)](_0x598d2b[_0x1ec6a9(0x73d)])){for(const _0x10dcea of _0x598d2b['preview'])_0x10dcea[_0x1ec6a9(0x420)]=_0x3b357a({'kind':_0x1ec6a9(0x47e),'reducer':_0x1f1d9b[_0x1ec6a9(0x425)],'key':_0x10dcea[_0x1ec6a9(0x5c0)]});}}else _0x2d24e8[_0x1f1d9b[_0x1ec6a9(0x425)]]&&(_0x2d24e8[_0x1f1d9b[_0x1ec6a9(0x425)]][_0x1ec6a9(0x420)]=_0x3b357a({'kind':'reducer','reducer':_0x1f1d9b[_0x1ec6a9(0x425)]}));}}for(const _0x24b193 of _0x4064a7[_0x1ec6a9(0x3ec)]){if(!_0x24b193[_0x1ec6a9(0x36e)])continue;const _0x4aa2ea=_0x2d24e8[_0x24b193['name']];if(!_0x4aa2ea||typeof _0x4aa2ea!==_0x1ec6a9(0x712))continue;_0x4aa2ea[_0x1ec6a9(0x420)]=_0x3b357a({'kind':_0x1ec6a9(0x36e),'ref':_0x24b193[_0x1ec6a9(0x425)]});for(const _0x3e9260 of _0x24b193[_0x1ec6a9(0x18d)]){if(!_0x3e9260[_0x1ec6a9(0x420)])continue;if(_0x3e9260[_0x1ec6a9(0x820)]){const _0x4ae215=_0x4aa2ea[_0x3e9260[_0x1ec6a9(0x425)]];if(_0x4ae215?.['preview']&&Array[_0x1ec6a9(0x7e3)](_0x4ae215[_0x1ec6a9(0x73d)])){for(const _0x4ef465 of _0x4ae215[_0x1ec6a9(0x73d)])_0x4ef465[_0x1ec6a9(0x420)]=_0x3b357a({'kind':'group','ref':_0x24b193['name'],'reducer':_0x3e9260[_0x1ec6a9(0x425)],'key':_0x4ef465[_0x1ec6a9(0x5c0)]});}}else _0x4aa2ea[_0x3e9260[_0x1ec6a9(0x425)]]&&(_0x4aa2ea[_0x3e9260[_0x1ec6a9(0x425)]][_0x1ec6a9(0x420)]=_0x3b357a({'kind':_0x1ec6a9(0x28f),'ref':_0x24b193['name'],'reducer':_0x3e9260[_0x1ec6a9(0x425)]}));}}return _0x2d24e8;}[_0x40f90a(0x504)](_0x24480a){const _0xb4fb8f=_0x40f90a;return this['_n'](_0xb4fb8f(0x504),[_0x24480a],![]);}[_0x40f90a(0x4bb)](_0x22f6e5,_0x558de6={}){return this['_n']('itemsGroups',[_0x22f6e5,_0x558de6],![]);}['range'](_0x1b718f,_0x3d0b68={}){const _0x435410=_0x40f90a;return this['_n'](_0x435410(0x85c),[_0x1b718f,_0x3d0b68],![]);}[_0x40f90a(0x87c)](_0xf09ab4,_0x1b0d38={}){const _0x2c8e70=_0x40f90a;return this['_n'](_0x2c8e70(0x87c),[_0xf09ab4,_0x1b0d38],![]);}async[_0x40f90a(0x6ec)](){const _0x366931=_0x40f90a;return this['_n'](_0x366931(0x6ec),[],![]);}async[_0x40f90a(0x6d8)](_0x5c1261){return this['_n']('getDefinition',[_0x5c1261],![])??null;}async[_0x40f90a(0x78e)](_0x1cde67,_0x50e6d5={}){const _0x1c41c1=_0x40f90a;return this['_n'](_0x1c41c1(0x78e),[_0x1cde67,_0x50e6d5]);}async[_0x40f90a(0x32a)](_0xede3a){return this['_n']('stop',[_0xede3a]);}async[_0x40f90a(0x4df)](_0x3b5c04){const _0x574a80=_0x40f90a;await this[_0x574a80(0x6bf)]('startBegin',[_0x3b5c04]),await this[_0x574a80(0x559)](_0x3b5c04);}async[_0x40f90a(0x247)](_0x3a13c7){const _0x405913=_0x40f90a;await this[_0x405913(0x6bf)](_0x405913(0x80e),[_0x3a13c7]),await this['_awaitBuild'](_0x3a13c7);}async['resetView'](_0x491f08){const _0x42f239=_0x40f90a;await this[_0x42f239(0x6bf)](_0x42f239(0x1e0),[_0x491f08]),await this['_awaitBuild'](_0x491f08);}[_0x40f90a(0x214)](_0x153bef,_0x55743b={}){const _0x577746=_0x40f90a;return this['_n'](_0x577746(0x214),[_0x153bef,{'apply':_0x55743b&&_0x55743b[_0x577746(0x5fb)]}]);}}return views={'OKDBViews':_0x52a83b},views;}var queue,hasRequiredQueue;function requireQueue(){const _0x4dd2a6=_0x2d5353;if(hasRequiredQueue)return queue;hasRequiredQueue=0x1;const {OKDBError:_0x25e1be}=requireErrors(),_0x2e7993=requireBridge();class _0x3ab6b1{constructor(_0x3a500a){const _0x59e872=_0x36a2;this[_0x59e872(0x784)]=_0x3a500a,this[_0x59e872(0x4f7)]=_0x3a500a[_0x59e872(0x4f7)],this[_0x59e872(0x71e)]=_0x3a500a['okdb'][_0x59e872(0x71e)]['child']({'feature':_0x59e872(0x72c)}),this['_workers']=new Set();}['_n'](_0x1da2b8,_0x1dc659,_0x4db333=!![]){const _0x3bc36c=_0x36a2;return this[_0x3bc36c(0x4f7)][_0x3bc36c(0x24a)](_0x3bc36c(0x72c),this['env']['name'],_0x1da2b8,_0x1dc659,_0x4db333);}['_w'](_0x34a13a,_0x1060ee){const _0x2cc42a=_0x36a2;return this['okdb'][_0x2cc42a(0x664)](this['_n'](_0x34a13a,_0x1060ee));}async[_0x4dd2a6(0x862)](){const _0xd1700e=_0x4dd2a6;return this['_n'](_0xd1700e(0x51b),[]);}async[_0x4dd2a6(0x6ec)](_0x1a7ae7={}){const _0x4f2585=_0x4dd2a6;return this['_n'](_0x4f2585(0x6ec),[_0x1a7ae7],![]);}get[_0x4dd2a6(0x62b)](){const _0x238989=_0x4dd2a6,{RawDb:_0x5ae5df}=requireRawdb();return this['__logsDb']||(this[_0x238989(0x38c)]=new _0x5ae5df(this['env'],_0x238989(0x4cd)));}async[_0x4dd2a6(0x1ee)](){const _0x24c272=_0x4dd2a6;return this['_w'](_0x24c272(0x672),[]);}async[_0x4dd2a6(0x4eb)](_0x31010f,_0x27587a,_0x34625f={}){const _0x131bfd=_0x4dd2a6,{txn:_0x1cc8b6,..._0x1d15cd}=_0x34625f||{};if(_0x1cc8b6)return this[_0x131bfd(0x851)](_0x1cc8b6,_0x31010f,_0x27587a,_0x1d15cd);const _0x4dac71=this[_0x131bfd(0x4f7)][_0x131bfd(0x61c)];if(_0x4dac71&&_0x4dac71[_0x131bfd(0x72c)][_0x131bfd(0x192)])_0x4dac71['commit']();const _0x193afd=this['_n'](_0x131bfd(0x716),[_0x31010f,_0x27587a,_0x1d15cd],![]);return this['okdb'][_0x131bfd(0x664)](_0x193afd['id'])['then'](_0x358806=>{const _0x19c999=_0x131bfd;if(_0x193afd['claimed'])this[_0x19c999(0x3cd)](_0x31010f);else try{this[_0x19c999(0x4f7)][_0x19c999(0x176)][_0x19c999(0x42a)]();}catch{}return _0x358806;});}[_0x4dd2a6(0x3cd)](_0x3a934b){queueMicrotask(()=>{try{this['_n']('startClaimed',[_0x3a934b]);}catch{}});}[_0x4dd2a6(0x851)](_0x4b3a99,_0x19e88e,_0x5b077e,_0x1f1b53){const _0x2a5059=_0x4dd2a6,_0x37a687=_0x4b3a99[_0x2a5059(0x6a8)]??_0x4b3a99;if(_0x37a687['_closed'])throw new _0x25e1be(_0x2a5059(0x54d),_0x2a5059(0x3dc));if(_0x37a687['okdb']&&_0x37a687[_0x2a5059(0x4f7)]!==this[_0x2a5059(0x784)]&&_0x37a687[_0x2a5059(0x4f7)][_0x2a5059(0x425)]!==this[_0x2a5059(0x784)][_0x2a5059(0x425)])throw new _0x25e1be(_0x2a5059(0x320),_0x2a5059(0x350),{'txnEnv':_0x37a687['okdb'][_0x2a5059(0x425)],'queueEnv':this[_0x2a5059(0x784)][_0x2a5059(0x425)]});const _0x2610a7=this['_n']('prepareTxnEnqueue',[_0x19e88e,_0x5b077e,_0x1f1b53],![]);if(_0x2610a7[_0x2a5059(0x248)])return _0x2610a7['id'];if(_0x2610a7[_0x2a5059(0x7fb)])_0x4b3a99['update'](_0x2a5059(0x55a),_0x2610a7[_0x2a5059(0x7fb)][_0x2a5059(0x5c0)],_0x2610a7[_0x2a5059(0x7fb)][_0x2a5059(0x821)],{'ifVersion':_0x2610a7[_0x2a5059(0x7fb)][_0x2a5059(0x779)]});if(_0x5b077e!==undefined)_0x4b3a99[_0x2a5059(0x14f)]('~queue_payloads',_0x2610a7['id'],_0x5b077e);_0x4b3a99[_0x2a5059(0x14f)](_0x2a5059(0x55a),_0x2610a7['id'],_0x2610a7[_0x2a5059(0x16f)]);if(typeof _0x37a687[_0x2a5059(0x12b)]===_0x2a5059(0x3b3))_0x37a687[_0x2a5059(0x12b)](()=>{const _0x16f3ed=_0x2a5059;if(this['_n'](_0x16f3ed(0x271),[_0x2610a7['id'],_0x19e88e,_0x2610a7[_0x16f3ed(0x1e9)],_0x2610a7[_0x16f3ed(0x876)]]))this[_0x16f3ed(0x3cd)](_0x19e88e);});return _0x2610a7['id'];}async[_0x4dd2a6(0x374)](_0x57d50,_0x23b9aa={}){const _0x1a6225=_0x4dd2a6;if(typeof _0x57d50!==_0x1a6225(0x84a)||!_0x57d50)throw new _0x25e1be(_0x1a6225(0x762),_0x1a6225(0x29b));return this['_w'](_0x1a6225(0x374),[_0x57d50,_0x23b9aa]);}async[_0x4dd2a6(0x7eb)](_0xaf8d14,_0x33253,_0x4c80d9=null){const _0x336798=_0x4dd2a6;return this['_w'](_0x336798(0x7eb),[_0xaf8d14,_0x33253,_0x4c80d9]);}async['heartbeat'](_0x3ead94,_0x94b63f,_0x120856=null){const _0x5daf36=_0x4dd2a6;return this[_0x5daf36(0x7eb)](_0x3ead94,_0x94b63f,_0x120856);}async[_0x4dd2a6(0x587)](_0x47640c,_0x47cf3c,_0x534cb9){const _0x1dee53=_0x4dd2a6;return this['_w'](_0x1dee53(0x587),[_0x47640c,_0x47cf3c,_0x534cb9]);}async[_0x4dd2a6(0x477)](_0x3315c7,_0x3c8eeb,_0x1dcd0d){const _0xe5fb9=_0x4dd2a6;return this['_w'](_0xe5fb9(0x477),[_0x3315c7,_0x3c8eeb,_0x1dcd0d]);}async[_0x4dd2a6(0x1e8)](_0x858ba6,_0x53f103,_0x7197b9){const _0x3a438f=_0x4dd2a6;return this[_0x3a438f(0x477)](_0x858ba6,_0x53f103,_0x7197b9);}async[_0x4dd2a6(0x51c)](_0x46a337,_0x5651b2,_0x41e645,_0x408de3){const _0x373da9=_0x4dd2a6,_0x10ee35=_0x41e645 instanceof Error?{'message':_0x41e645['message'],'stack':_0x41e645['stack']}:_0x41e645;return this['_w'](_0x373da9(0x51c),[_0x46a337,_0x5651b2,_0x10ee35,_0x408de3]);}async[_0x4dd2a6(0x775)](_0xe4fea5,_0x2d8895,_0x1eb483,_0x15d5dd){const _0x40be2e=_0x4dd2a6;return this[_0x40be2e(0x51c)](_0xe4fea5,_0x2d8895,_0x1eb483,_0x15d5dd);}async['releaseClaim'](_0x53b944,_0x43bcc2,_0x3cb397={}){const _0x2bcc81=_0x4dd2a6;return this['_w'](_0x2bcc81(0x201),[_0x53b944,_0x43bcc2,_0x3cb397]);}async['getJob'](_0x2980a4){const _0x41c227=_0x4dd2a6;return this['_n'](_0x41c227(0x3a3),[_0x2980a4],![]);}async[_0x4dd2a6(0x2a6)](_0x501f1a,_0x43459d={},_0x2a8d6a={}){const _0x24607f=_0x4dd2a6,_0x17b170=_0x2a8d6a&&_0x2a8d6a[_0x24607f(0x346)];if(!_0x17b170)return this['_w'](_0x24607f(0x2a6),[_0x501f1a,_0x43459d]);const {next:_0x487b22,version:_0xe898e6}=this['_n'](_0x24607f(0x233),[_0x501f1a,_0x43459d],![]);_0x17b170[_0x24607f(0x1a2)](_0x24607f(0x55a),_0x501f1a,_0x487b22,{'ifVersion':_0xe898e6});let _0x53b848;if('payload'in _0x43459d){if(_0x43459d[_0x24607f(0x172)]===undefined){if(this[_0x24607f(0x784)]['getEntry'](_0x24607f(0x124),_0x501f1a))_0x17b170[_0x24607f(0x78e)]('~queue_payloads',_0x501f1a);}else _0x17b170[_0x24607f(0x14f)](_0x24607f(0x124),_0x501f1a,_0x43459d['payload']);_0x53b848=_0x43459d['payload'];}else _0x53b848=this['env'][_0x24607f(0x6ce)](_0x24607f(0x124),_0x501f1a);return{..._0x487b22,'payload':_0x53b848};}async[_0x4dd2a6(0x133)](_0x3a920c,_0x52c5b0={}){const _0x36427e=_0x4dd2a6,_0x11bf7e=_0x52c5b0&&_0x52c5b0['txn'];if(!_0x11bf7e)return this['_w']('removeJob',[_0x3a920c]);if(!_0x3a920c)throw new _0x25e1be(_0x36427e(0x5f8),_0x36427e(0x29b));if(!this['env'][_0x36427e(0x638)]('~queue_jobs',_0x3a920c))return![];_0x11bf7e[_0x36427e(0x78e)](_0x36427e(0x55a),_0x3a920c);if(this['env']['getEntry']('~queue_payloads',_0x3a920c))_0x11bf7e[_0x36427e(0x78e)](_0x36427e(0x124),_0x3a920c);if(typeof _0x11bf7e['onDo']===_0x36427e(0x3b3))_0x11bf7e[_0x36427e(0x12b)](()=>this['_n'](_0x36427e(0x135),[_0x3a920c]));return!![];}async[_0x4dd2a6(0x747)](_0x353422){const _0x28a250=_0x4dd2a6;return this['_w'](_0x28a250(0x747),[_0x353422]);}async[_0x4dd2a6(0x7d8)](_0x9b440b){const _0x11016e=_0x4dd2a6;return this['_w'](_0x11016e(0x7d8),[_0x9b440b]);}async[_0x4dd2a6(0x1f4)](_0x5336cb,_0x1f6394,_0x430407){const _0x44d8c9=_0x4dd2a6,_0x46ba8c=this['_n']('clearScan',[_0x1f6394??null,_0x430407??0x0,_0x5336cb]),_0xc7f2d5=0x1f4;for(let _0x443c07=0x0;_0x443c07<_0x46ba8c[_0x44d8c9(0x192)];_0x443c07+=_0xc7f2d5){this['_n'](_0x44d8c9(0x209),[_0x46ba8c['slice'](_0x443c07,_0x443c07+_0xc7f2d5),_0x443c07,_0x46ba8c[_0x44d8c9(0x192)],_0x1f6394??null]);if(_0x443c07+_0xc7f2d5<_0x46ba8c[_0x44d8c9(0x192)])await new Promise(_0x45c243=>setImmediate(_0x45c243));}return this['_n'](_0x44d8c9(0x17e),[_0x46ba8c[_0x44d8c9(0x192)],_0x1f6394??null]),await new Promise(_0x4fcbf5=>setImmediate(_0x4fcbf5)),_0x46ba8c[_0x44d8c9(0x192)];}async['clearDone'](_0x4c3d02,_0x26e228){const _0x2c5bfe=_0x4dd2a6;return this[_0x2c5bfe(0x1f4)](_0x2c5bfe(0x5f1),_0x4c3d02,_0x26e228);}async['clearFailed'](_0x2be0bc,_0x56c77e){const _0x44de1a=_0x4dd2a6;return this[_0x44de1a(0x1f4)](_0x44de1a(0x823),_0x2be0bc,_0x56c77e);}async[_0x4dd2a6(0x416)](_0xf820c,_0x345af2){return this['_w']('retryFailed',[_0xf820c??null,_0x345af2??0x0]);}async[_0x4dd2a6(0x561)](_0xa217ed,_0x411b3f){return this['_w']('clearStuck',[_0xa217ed??null,_0x411b3f??0x0]);}async[_0x4dd2a6(0x515)](_0x396d29,_0x51c453,_0x4443a0){const _0x385d56=_0x4dd2a6;return this['_w'](_0x385d56(0x515),[_0x396d29,_0x51c453,_0x4443a0]);}async['getJobLogs'](_0x1b6ea9,_0x2a22e9={}){return this['_n']('getJobLogs',[_0x1b6ea9,_0x2a22e9],![]);}async['addBucket'](_0x26a4b4,_0x18228f={}){const _0x3a856b=_0x4dd2a6,{txn:_0x4d1590,..._0x79f243}=_0x18228f||{};if(!_0x4d1590)return this['_w'](_0x3a856b(0x383),[_0x26a4b4,_0x79f243]);const _0x394c06=(_0xc34410,_0x3bc8eb,_0x181125,_0x5554b9)=>{const _0xc0e994=_0x3a856b,_0x1908f8=Math[_0xc0e994(0x232)](Number(_0xc34410));return Number[_0xc0e994(0x496)](_0x1908f8)?Math[_0xc0e994(0x7bc)](_0x5554b9,Math[_0xc0e994(0x81c)](_0x181125,_0x1908f8)):_0x3bc8eb;},_0x3ec494=typeof _0x26a4b4==='string'?_0x26a4b4[_0x3a856b(0x4f1)]():'';if(!_0x3ec494)throw new Error(_0x3a856b(0x7e9));const _0x1772f7=_0x394c06(_0x79f243[_0x3a856b(0x583)],0x0,0x0,0x3b9aca00);_0x4d1590['put']('~queue_buckets',_0x3ec494,{'id':_0x3ec494,'tokens':_0x394c06(_0x79f243[_0x3a856b(0x493)],_0x1772f7,0x0,_0x1772f7),'capacity':_0x1772f7,'refill_amount':_0x394c06(_0x79f243[_0x3a856b(0x24d)],0x0,0x0,0x3b9aca00),'refill_every':_0x394c06(_0x79f243[_0x3a856b(0x306)],0x0,0x0,0x16d*0x18*0x36ee80),'updated':Date[_0x3a856b(0x76a)]()});}async[_0x4dd2a6(0x4ce)](_0x39775d,_0x252055){const _0x151c97=_0x4dd2a6;return this['_w'](_0x151c97(0x4ce),[_0x39775d,_0x252055]);}async[_0x4dd2a6(0x38f)](_0x18bbaf){const _0x1cc967=_0x4dd2a6;return this['_w'](_0x1cc967(0x38f),[_0x18bbaf]);}[_0x4dd2a6(0x6f5)](_0x18bb39){const _0x475810=_0x4dd2a6,_0x3de032=this['_n'](_0x475810(0x6f5),[_0x18bb39],![]);return _0x3de032===null&&typeof _0x18bb39==='string'&&_0x18bb39['trim']()?undefined:_0x3de032;}async['tryClaimTokens'](_0x41e5f0,_0x4b1197){const _0x12c303=_0x4dd2a6;return this['_w'](_0x12c303(0x4c6),[_0x41e5f0,_0x4b1197]);}async['addJobType'](_0x437e12,_0x204461={}){return this['_w']('addJobType',[_0x437e12,_0x204461]);}async[_0x4dd2a6(0x441)](_0x3c6dde){const _0x5d4ba9=_0x4dd2a6;return this['_n'](_0x5d4ba9(0x441),[_0x3c6dde],![]);}async[_0x4dd2a6(0x452)](){const _0x941470=_0x4dd2a6;return this['_n'](_0x941470(0x452),[],![]);}async[_0x4dd2a6(0x7fa)](_0x4c4afe){const _0x1de408=_0x4dd2a6;return this['_w'](_0x1de408(0x7fa),[_0x4c4afe]);}[_0x4dd2a6(0x186)](_0x7278c9){const _0x3f9f72=_0x4dd2a6;return this['_n'](_0x3f9f72(0x186),[_0x7278c9]);}[_0x4dd2a6(0x3ac)](_0x5e147f){const _0x1cbee3=_0x4dd2a6;return this['_n'](_0x1cbee3(0x3ac),[_0x5e147f]);}[_0x4dd2a6(0x68c)](_0x18591c){const _0x126610=_0x4dd2a6;return this['_n'](_0x126610(0x68c),[_0x18591c]);}async[_0x4dd2a6(0x804)](_0x13d52a,_0x4dd5e7,_0x2fd1d7=![]){return this['_w']('setJobTypeSchema',[_0x13d52a,_0x4dd5e7,_0x2fd1d7]);}async['removeJobTypeSchema'](_0x44258f){const _0xbe47f3=_0x4dd2a6;return this['_w'](_0xbe47f3(0x293),[_0x44258f]);}async[_0x4dd2a6(0x4f3)](_0x24ed23,_0x7ee588=0x5){const _0x2360f5=_0x4dd2a6;return this['_n'](_0x2360f5(0x4f3),[_0x24ed23,_0x7ee588],![]);}async[_0x4dd2a6(0x6f1)](_0x451515){const _0x3694b5=_0x4dd2a6;return this['_n'](_0x3694b5(0x423),[_0x451515]);}async[_0x4dd2a6(0x570)](_0x28ff22=0x7530){const _0x588c4a=_0x4dd2a6;await Promise[_0x588c4a(0x373)]([...this[_0x588c4a(0x80a)]][_0x588c4a(0x4e8)](_0x1ff958=>_0x1ff958['stop'](_0x28ff22)));const _0x515c43=this['_n'](_0x588c4a(0x570),[0x0]);return this[_0x588c4a(0x80a)][_0x588c4a(0x530)](),_0x515c43;}async[_0x4dd2a6(0x16a)](){const _0xde5cfb=_0x4dd2a6,_0x112834=this['_n'](_0xde5cfb(0x16a),[]);return this[_0xde5cfb(0x80a)]['clear'](),_0x112834;}['process'](_0x1b70e3,_0x28d390,_0x5be5f8){const _0x469187=_0x4dd2a6;let _0x2e62c0,_0x48516c;if(Array[_0x469187(0x7e3)](_0x1b70e3)){if(typeof _0x28d390===_0x469187(0x3b3))throw new _0x25e1be(_0x469187(0x539),_0x469187(0x29b));_0x48516c=_0x28d390??{};if(_0x48516c[_0x469187(0x354)]!=null&&typeof _0x48516c[_0x469187(0x354)]!==_0x469187(0x3b3))throw new _0x25e1be('process\x20options.admission\x20must\x20be\x20a\x20function',_0x469187(0x29b));if(_0x1b70e3[_0x469187(0x192)]===0x0)throw new _0x25e1be('process(entries)\x20requires\x20at\x20least\x20one\x20entry',_0x469187(0x29b));_0x2e62c0=_0x1b70e3[_0x469187(0x4e8)](_0x3b9cbf=>{const _0x2cf73c=_0x469187;if(!_0x3b9cbf||typeof _0x3b9cbf['type']!==_0x2cf73c(0x84a)||!_0x3b9cbf[_0x2cf73c(0x2d0)])throw new _0x25e1be(_0x2cf73c(0x156),_0x2cf73c(0x29b));if(typeof _0x3b9cbf[_0x2cf73c(0x816)]!==_0x2cf73c(0x3b3))throw new _0x25e1be(_0x2cf73c(0x6ea)+_0x3b9cbf[_0x2cf73c(0x2d0)]+_0x2cf73c(0x3f5),'BAD_PARAM');return{..._0x3b9cbf};});}else{_0x48516c=_0x5be5f8??{};if(typeof _0x28d390!==_0x469187(0x3b3))throw new _0x25e1be(_0x469187(0x6ea)+_0x1b70e3+_0x469187(0x3f5),_0x469187(0x29b));_0x2e62c0=[{'type':_0x1b70e3,'handler':_0x28d390,..._0x5be5f8??{}}];}const _0x51d729=this['okdb'];for(const _0xb0fa1e of _0x2e62c0){const _0x1947a2=_0xb0fa1e[_0x469187(0x816)];_0xb0fa1e[_0x469187(0x816)]=function(..._0xc846ad){const _0x423122=_0x469187;return _0x51d729[_0x423122(0x409)]()['then'](()=>_0x1947a2['apply'](this,_0xc846ad));};}const _0x5ce500=this['_n'](_0x469187(0x421),[_0x2e62c0,_0x48516c]),_0x4c1502=this,_0x3544ce={'id':_0x5ce500['id'],'type':_0x5ce500['type'],get 'running'(){const _0x56e5ef=_0x469187;return _0x4c1502['_n'](_0x56e5ef(0x738),[_0x5ce500['id']],![])[_0x56e5ef(0x12a)];},'isRunning'(){const _0x4f48fb=_0x469187;return _0x4c1502['_n'](_0x4f48fb(0x738),[_0x5ce500['id']],![])['running'];},async 'stop'(_0xa3b44a=0x7530){const _0x2efb64=_0x469187;_0x4c1502['_n'](_0x2efb64(0x1e3),[_0x5ce500['id']]);const _0xa218fd=Date[_0x2efb64(0x76a)]()+_0xa3b44a;while(_0x4c1502['_n'](_0x2efb64(0x738),[_0x5ce500['id']],![])['inFlight']>0x0&&Date[_0x2efb64(0x76a)]()<_0xa218fd)await new Promise(_0x363925=>setTimeout(_0x363925,0x2));_0x4c1502['_n'](_0x2efb64(0x5fa),[_0x5ce500['id']]),_0x2e7993[_0x2efb64(0x3e6)](),_0x4c1502[_0x2efb64(0x80a)][_0x2efb64(0x243)](_0x3544ce);},async 'kill'(){const _0x3b39f6=_0x469187;_0x4c1502['_n'](_0x3b39f6(0x18f),[_0x5ce500['id']]),_0x4c1502[_0x3b39f6(0x80a)]['delete'](_0x3544ce);}};return this[_0x469187(0x80a)][_0x469187(0x725)](_0x3544ce),_0x3544ce;}[_0x4dd2a6(0x7ab)](_0x538a2b){const _0x5d1bf7=_0x4dd2a6;throw new _0x25e1be(_0x5d1bf7(0x84f)+_0x538a2b+_0x5d1bf7(0x817)+_0x538a2b+'\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.',_0x5d1bf7(0x780));}[_0x4dd2a6(0x795)](_0x24fea1){const _0x55c298=_0x4dd2a6;return this[_0x55c298(0x7ab)](_0x24fea1);}}return queue={'OKDBQueue':_0x3ab6b1},queue;}var timemachine,hasRequiredTimemachine;function requireTimemachine(){const _0x1f1f48=_0x2d5353;if(hasRequiredTimemachine)return timemachine;hasRequiredTimemachine=0x1;const {fromArray:_0x32faca}=requireIterable();class _0x4b8e6f{constructor(_0x89726){const _0x2dcb8b=_0x36a2;this['env']=_0x89726,this[_0x2dcb8b(0x4f7)]=_0x89726[_0x2dcb8b(0x4f7)];const _0x32fd24=(_0x50ae13,_0x3024e8)=>this['_n'](_0x50ae13,_0x3024e8,![]);this[_0x2dcb8b(0x180)]={'getDiffs':(_0xd382ba,_0x506dae,_0x42de90)=>_0x32fd24('storeGetDiffs',[_0xd382ba,_0x506dae,_0x42de90||{}]),'hasDiff':(_0x401ae1,_0x510c66,_0x2965ef)=>_0x32fd24('storeHasDiff',[_0x401ae1,_0x510c66,_0x2965ef]),'getHead':(_0x52cbd0,_0xb16247)=>_0x32fd24(_0x2dcb8b(0x46a),[_0x52cbd0,_0xb16247])??null,'getHeadCount':_0x4a5f4d=>_0x32fd24(_0x2dcb8b(0x6c9),[_0x4a5f4d]),'getTotalHeadCount':()=>_0x32fd24(_0x2dcb8b(0x6e7),[]),'getDiffsInRange':(_0x55f408,_0x37b3e8,_0x8bea33)=>_0x32fd24(_0x2dcb8b(0x2ca),[_0x55f408??null,_0x37b3e8,_0x8bea33]),'getConfig':()=>_0x32fd24('storeGetConfig',[])??null,'getCursor':()=>this['_n'](_0x2dcb8b(0x246),[],![])??null,get 'db'(){const _0x4084a4=_0x2dcb8b;try{return _0x32fd24(_0x4084a4(0x6e7),[]),{};}catch{return null;}}};}get[_0x1f1f48(0x207)](){const _0xccd493=_0x1f1f48,_0x3c6492=(this[_0xccd493(0x784)][_0xccd493(0x26e)]?.['list']?.()||[])[_0xccd493(0x440)](_0x306e10=>String(_0x306e10[_0xccd493(0x52c)]||'')[_0xccd493(0x48b)](_0xccd493(0x7e7)))[_0xccd493(0x192)];return{'size':_0x3c6492};}['_n'](_0x54fc34,_0x32eb17,_0x2b0f3b=!![]){const _0x1d8aad=_0x1f1f48;return this[_0x1d8aad(0x4f7)]['_call']('tm',this[_0x1d8aad(0x784)]['name'],_0x54fc34,_0x32eb17,_0x2b0f3b);}async[_0x1f1f48(0x671)](_0x3e9faf){const _0x57bf5f=_0x1f1f48;return this['_n'](_0x57bf5f(0x671),[_0x3e9faf??null]);}async[_0x1f1f48(0x878)](_0x407897){return this['_n']('disable',[_0x407897??null]);}async[_0x1f1f48(0x1cb)](){const _0x55f577=_0x1f1f48;return this['_n'](_0x55f577(0x1cb),[]);}async[_0x1f1f48(0x593)](){const _0x4b7357=_0x1f1f48;return this['_n'](_0x4b7357(0x593),[]);}async[_0x1f1f48(0x4e3)](_0x45f171){const _0x2070f5=_0x1f1f48;return this['_n'](_0x2070f5(0x4e3),[_0x45f171??null]);}async[_0x1f1f48(0x645)](){const _0x3e78dd=_0x1f1f48;return this['_n'](_0x3e78dd(0x645),[]);}[_0x1f1f48(0x366)](_0x1fc5a6){return this['_n']('isEnabled',[_0x1fc5a6??null],![]);}['list'](){const _0x5c9d74=_0x1f1f48;return this['_n'](_0x5c9d74(0x6ec),[],![]);}[_0x1f1f48(0x2e4)](_0x25dcb7){const _0x4ce02d=_0x1f1f48;return this['_n'](_0x4ce02d(0x2e4),[_0x25dcb7??null],![]);}[_0x1f1f48(0x665)](_0x225982){const _0x394c01=_0x1f1f48;if(!_0x225982)return this['_n'](_0x394c01(0x246),[],![]);return this['_n'](_0x394c01(0x665),[_0x225982],![]);}[_0x1f1f48(0x246)](){return this['_n']('getLegacyCursor',[],![]);}[_0x1f1f48(0x698)](_0x2cf450,_0x23b14b,_0x3bf8a6){const _0x56bc9c=_0x1f1f48;return this['_n'](_0x56bc9c(0x698),[_0x2cf450,_0x23b14b,_0x3bf8a6],![]);}['getHistory'](_0x2f025f,_0x2d66a3,_0x1f98e3){const _0x26a684=_0x1f1f48;return this['_n'](_0x26a684(0x14c),[_0x2f025f,_0x2d66a3,_0x1f98e3||{}],![]);}[_0x1f1f48(0x5ed)](_0x457cc8,_0x5bb3e4,_0x488b9f){const _0x4ac35d=_0x1f1f48;return this['_n'](_0x4ac35d(0x5ed),[_0x457cc8??null,_0x5bb3e4,_0x488b9f],![])[Symbol[_0x4ac35d(0x1f2)]]();}async['flush'](_0x4d8b97){return this['_n']('flush',[_0x4d8b97??null]);}}return timemachine={'OKDBTimeMachine':_0x4b8e6f},timemachine;}var files,hasRequiredFiles;function requireFiles(){const _0x1446b9=_0x2d5353;if(hasRequiredFiles)return files;hasRequiredFiles=0x1;const _0x3eb27e=require$$0,{Readable:_0x800de4}=require$$1,{OKDBError:_0x1dbf87,optionsArg:_0x14ef19,invalidArgument:_0x5e945c}=requireErrors(),{RawDb:_0x29e3d0}=requireRawdb();async function _0x43c747(_0x2bdfab){const _0x2cd2da=_0x36a2;if(Buffer[_0x2cd2da(0x478)](_0x2bdfab))return _0x2bdfab;if(_0x2bdfab instanceof Uint8Array)return Buffer[_0x2cd2da(0x3ed)](_0x2bdfab);if(typeof _0x2bdfab===_0x2cd2da(0x84a))return Buffer['from'](_0x2bdfab);const _0x2f110c=[];for await(const _0x202aa7 of _0x2bdfab)_0x2f110c[_0x2cd2da(0x46d)](Buffer['isBuffer'](_0x202aa7)?_0x202aa7:Buffer['from'](_0x202aa7));return Buffer[_0x2cd2da(0x557)](_0x2f110c);}class _0x635168{constructor(_0x4fcadd){const _0x3c482d=_0x36a2;this[_0x3c482d(0x784)]=_0x4fcadd,this[_0x3c482d(0x4f7)]=_0x4fcadd['okdb'];}['_n'](_0xf85038,_0x2a82b5,_0x2381e7=!![]){const _0x5bfbae=_0x36a2;return this['okdb'][_0x5bfbae(0x24a)](_0x5bfbae(0x669),this[_0x5bfbae(0x784)][_0x5bfbae(0x425)],_0xf85038,_0x2a82b5,_0x2381e7);}[_0x1446b9(0x4df)](){return!![];}[_0x1446b9(0x32a)](){}async[_0x1446b9(0x862)](){const _0x5838c8=_0x1446b9;this['_n'](_0x5838c8(0x51b),[]);}async[_0x1446b9(0x639)](_0x51aa01,_0x43caa3){const _0x12ed4d=_0x1446b9;return this[_0x12ed4d(0x4f7)]['_settleWrite'](this['_n'](_0x12ed4d(0x210),[_0x51aa01,await _0x43c747(_0x43caa3)]));}get['_blobStatusDb'](){const _0x2b6b6c=_0x1446b9;return this[_0x2b6b6c(0x487)]||(this[_0x2b6b6c(0x487)]=new _0x29e3d0(this[_0x2b6b6c(0x784)],_0x2b6b6c(0x413)));}async['_blobStatusTxn'](_0x5f049e){const _0xf0f34d=_0x1446b9;return this[_0xf0f34d(0x7d9)][_0xf0f34d(0x6a7)](_0x5f049e);}async[_0x1446b9(0x324)](_0x4a21db){const _0x4825f2=_0x1446b9,{id:_0x33d0fb,stream:_0x29d50c,mime:mime=_0x4825f2(0x5b8),path:_0x7f61bb='',txn:txn=null}=_0x14ef19(_0x4a21db);if(!_0x33d0fb)throw _0x5e945c(_0x4825f2(0x571),_0x4825f2(0x7c8),_0x33d0fb);if(!_0x29d50c)throw _0x5e945c(_0x4825f2(0x148),_0x4825f2(0x294),_0x29d50c);const _0x90c3ac=await _0x43c747(_0x29d50c);if(txn){const _0x4b9b47=this['_n'](_0x4825f2(0x750),[_0x33d0fb,_0x90c3ac,{'mime':mime,'path':_0x7f61bb}]);return txn[_0x4825f2(0x14f)](_0x4825f2(0x325),_0x33d0fb,_0x4b9b47[_0x4825f2(0x702)]),txn[_0x4825f2(0x12b)](()=>this['_n']('txnDone',[_0x4b9b47[_0x4825f2(0x787)]])),txn[_0x4825f2(0x179)](()=>this['_n'](_0x4825f2(0x63e),[_0x4b9b47[_0x4825f2(0x787)]])),_0x4b9b47['record'];}return this[_0x4825f2(0x4f7)]['_settleWrite'](this['_n'](_0x4825f2(0x324),[_0x33d0fb,_0x90c3ac,{'mime':mime,'path':_0x7f61bb}]));}[_0x1446b9(0x6ce)](_0x841f3f){const _0x50cbf1=_0x1446b9;return this['_n'](_0x50cbf1(0x6ce),[_0x841f3f],![])??null;}[_0x1446b9(0x1d8)](_0x45d969){const _0x371fce=_0x1446b9,_0x47a65e=this[_0x371fce(0x188)](_0x45d969);if(!_0x3eb27e[_0x371fce(0x7a5)](_0x47a65e))throw Object[_0x371fce(0x3aa)](new Error(_0x371fce(0x7b0)+_0x45d969),{'status':0x194});return this['_blobStream'](_0x45d969);}[_0x1446b9(0x411)](_0x5a45d8){const _0x58e6cd=0x100*0x400,_0x32aebb=this;let _0xf7d8e6=0x0;return new _0x800de4({'highWaterMark':_0x58e6cd,'read'(){const _0x6cc6ed=_0x36a2;let _0x2ddd3d;try{const _0x391475=_0x32aebb['_n'](_0x6cc6ed(0x376),[_0x5a45d8,_0xf7d8e6,_0x58e6cd],![]);_0x2ddd3d=Buffer['isBuffer'](_0x391475)?_0x391475:Buffer[_0x6cc6ed(0x3ed)](_0x391475);}catch(_0x3738f5){this[_0x6cc6ed(0x1e6)](_0x3738f5);return;}_0xf7d8e6+=_0x2ddd3d[_0x6cc6ed(0x192)];if(_0x2ddd3d['length'])this[_0x6cc6ed(0x46d)](_0x2ddd3d);if(_0x2ddd3d[_0x6cc6ed(0x192)]<_0x58e6cd)this[_0x6cc6ed(0x46d)](null);}});}async[_0x1446b9(0x83c)](_0x14d5cc){const _0x4a49a0=_0x1446b9;return this[_0x4a49a0(0x4f7)][_0x4a49a0(0x369)](this['_n'](_0x4a49a0(0x83c),[_0x14d5cc],![]));}async[_0x1446b9(0x6df)](_0x53adc7){const _0x97a156=_0x1446b9,_0x30a2b8=this[_0x97a156(0x6ce)](_0x53adc7);if(!_0x30a2b8)throw Object[_0x97a156(0x3aa)](new Error('File\x20not\x20found:\x20'+_0x53adc7),{'status':0x194});const _0x3102cc=this[_0x97a156(0x188)](_0x30a2b8[_0x97a156(0x643)]);if(!_0x3eb27e[_0x97a156(0x7a5)](_0x3102cc))throw Object[_0x97a156(0x3aa)](new Error('Blob\x20missing\x20for\x20file:\x20'+_0x53adc7),{'status':0x194});return{'stream':this[_0x97a156(0x411)](_0x30a2b8[_0x97a156(0x643)]),'record':_0x30a2b8};}async['remove'](_0x2194d2,_0x1aae6d){const _0x3d513b=_0x1446b9,{txn:txn=null}=_0x14ef19(_0x1aae6d);if(txn){const _0xb385ee=this['_n'](_0x3d513b(0x6cb),[_0x2194d2]);txn[_0x3d513b(0x78e)](_0x3d513b(0x325),_0x2194d2),txn[_0x3d513b(0x12b)](()=>this['_n'](_0x3d513b(0x252),[_0xb385ee[_0x3d513b(0x787)]])),txn[_0x3d513b(0x179)](()=>this['_n'](_0x3d513b(0x63e),[_0xb385ee['hook']]));return;}return this[_0x3d513b(0x4f7)]['_settleWrite'](this['_n']('remove',[_0x2194d2]));}async['listPath'](_0x67ac19,_0x105662={}){const _0x34c28d=_0x1446b9;return this['_n'](_0x34c28d(0x597),[_0x67ac19,_0x105662],![]);}['getBlobStatus'](_0x44e465){return this['_n']('getBlobStatus',[_0x44e465],![]);}[_0x1446b9(0x6fb)](){const _0x2be89b=_0x1446b9;return this['_n'](_0x2be89b(0x6fb),[],![]);}[_0x1446b9(0x71d)](_0x4d7b49){const _0x37aa5d=_0x1446b9,{minAgeMs:_0x3665b9}=_0x14ef19(_0x4d7b49);return this['_n'](_0x37aa5d(0x71d),[_0x3665b9??null]);}['registerExtractor'](_0x564e16,_0x268d78){const _0x35b995=_0x1446b9;if(typeof _0x268d78!==_0x35b995(0x3b3))throw new _0x1dbf87(_0x35b995(0x678),_0x35b995(0x29b));const _0x16685c=this['_n'](_0x35b995(0x38d),[_0x564e16,_0x268d78]);return()=>this['_n'](_0x35b995(0x370),[_0x16685c]);}async[_0x1446b9(0x1bc)](_0x53612c){return _0x53612c=_0x14ef19(_0x53612c),this['_n']('indexContent',[_0x53612c]);}async[_0x1446b9(0x1fa)](_0x1ee1b9){const _0x16233d=_0x1446b9,{peerIds:_0x333767}=_0x14ef19(_0x1ee1b9);return this['_n'](_0x16233d(0x1fa),[_0x333767??null]);}[_0x1446b9(0x188)](_0x5741fa){const _0x312e54=_0x1446b9;if(typeof _0x5741fa!==_0x312e54(0x84a))return require$$4[_0x312e54(0x3ee)](this[_0x312e54(0x79d)],_0x5741fa[_0x312e54(0x6fe)](0x0,0x2),_0x5741fa[_0x312e54(0x6fe)](0x2));return this['_n'](_0x312e54(0x480),[_0x5741fa],![]);}get['_blobsDir'](){return this['_n']('blobsDir',[],![]);}}return files={'OKDBFiles':_0x635168},files;}var engines,hasRequiredEngines;function requireEngines(){const _0x3718ee=_0x2d5353;if(hasRequiredEngines)return engines;hasRequiredEngines=0x1;const {OKDBError:_0x5079f6}=requireErrors(),_0x26376a=requireBridge(),_0xecaf78=new Set([_0x3718ee(0x122),_0x3718ee(0x706),'vector-search',_0x3718ee(0x31b)]),_0x1fd2bc=new Set(['count',_0x3718ee(0x758),_0x3718ee(0x250)]),_0x4da184=[_0x3718ee(0x83e),'patchConfig',_0x3718ee(0x5aa),_0x3718ee(0x468),_0x3718ee(0x708),_0x3718ee(0x32a),_0x3718ee(0x145)],_0x53f1c0={'embedder':new Set(['dims',_0x3718ee(0x1f3)])},_0x46a82f=new Set(['materializer','processor',_0x3718ee(0x3ef)]);class _0x16d4e3{constructor(_0x2e25b8,_0x19933e,_0x4e348c,_0x5157d4){const _0x56cfa4=_0x3718ee;this[_0x56cfa4(0x7cf)]=_0x2e25b8,this[_0x56cfa4(0x5c0)]=_0x19933e,this[_0x56cfa4(0x2d0)]=_0x4e348c,this[_0x56cfa4(0x425)]=_0x5157d4,this['engineType']=_0x4e348c;}[_0x3718ee(0x33b)](){const _0x5d106a=_0x3718ee;return this[_0x5d106a(0x7cf)]['_n'](_0x5d106a(0x758),[this['type'],this[_0x5d106a(0x425)]],![]);}get[_0x3718ee(0x6ac)](){const _0x4af9bc=_0x3718ee;return this[_0x4af9bc(0x33b)]()[_0x4af9bc(0x6ac)];}get[_0x3718ee(0x180)](){const _0x350d8b=_0x3718ee,_0x5b5c8a=this['_info']()[_0x350d8b(0x241)];return _0x5b5c8a?this[_0x350d8b(0x7cf)]['okdb'][_0x350d8b(0x3e2)][_0x350d8b(0x6ce)](_0x5b5c8a):undefined;}get[_0x3718ee(0x5b1)](){const _0x152233=_0x3718ee;return this['_info']()[_0x152233(0x5b1)];}get[_0x3718ee(0x6f9)](){const _0x51bd1a=_0x3718ee;return this['_info']()[_0x51bd1a(0x6f9)];}get[_0x3718ee(0x1c3)](){const _0x15148b=_0x3718ee;return this[_0x15148b(0x33b)]()[_0x15148b(0x1c3)];}get[_0x3718ee(0x2e4)](){const _0x23edc1=_0x3718ee;return this[_0x23edc1(0x33b)]()[_0x23edc1(0x2e4)];}get[_0x3718ee(0x549)](){const _0x67adaf=_0x3718ee;return this[_0x67adaf(0x33b)]()[_0x67adaf(0x549)];}get[_0x3718ee(0x66e)](){const _0x36b1bc=_0x3718ee,_0x234104=this['_info']()[_0x36b1bc(0x66e)];return _0x234104?Object[_0x36b1bc(0x3aa)](new Error(_0x234104['message']),{'code':_0x234104[_0x36b1bc(0x316)]}):null;}get[_0x3718ee(0x802)](){const _0x202806=_0x3718ee;return this['_info']()[_0x202806(0x802)];}get['driver'](){const _0x3c27b7=_0x3718ee;return this[_0x3c27b7(0x7cf)][_0x3c27b7(0x469)][_0x3c27b7(0x6ce)](this[_0x3c27b7(0x2d0)])??null;}get[_0x3718ee(0x551)](){const _0x1be6ed=_0x3718ee;if(!this[_0x1be6ed(0x33b)]()[_0x1be6ed(0x26b)])return null;const _0x1a98ec=this;return new Proxy({},{'get'(_0x505ef0,_0x4ad32a){const _0x131320=_0x1be6ed;if(typeof _0x4ad32a==='symbol'||_0x4ad32a===_0x131320(0x600))return undefined;if(_0x53f1c0[_0x1a98ec['type']]&&_0x53f1c0[_0x1a98ec[_0x131320(0x2d0)]]['has'](_0x4ad32a))return _0x1a98ec[_0x131320(0x7cf)]['_n'](_0x131320(0x30c),[_0x1a98ec['type'],_0x1a98ec[_0x131320(0x425)],_0x4ad32a,[]],![])[_0x131320(0x821)];if(_0x1a98ec[_0x131320(0x2d0)]===_0x131320(0x706)&&_0x4ad32a===_0x131320(0x53c))return async(_0x184ac3={})=>{const _0x56c9d5=_0x131320,_0x276867=(_0x3b1c82,..._0x56a00f)=>_0x1a98ec['_facade']['_n'](_0x56c9d5(0x30c),[_0x1a98ec[_0x56c9d5(0x2d0)],_0x1a98ec[_0x56c9d5(0x425)],_0x3b1c82,_0x56a00f],!![])['value'],_0x49e2b2=_0x276867('flushMaxWait',_0x184ac3??{}),_0x385221=Date[_0x56c9d5(0x76a)]();for(;;){const _0x34b0a2=await _0x1a98ec['_facade'][_0x56c9d5(0x4f7)][_0x56c9d5(0x45c)](()=>_0x276867(_0x56c9d5(0x2c4)));if(_0x34b0a2['cursor']>=_0x34b0a2[_0x56c9d5(0x6ba)])return;Date[_0x56c9d5(0x76a)]()-_0x385221>=_0x49e2b2&&_0x276867(_0x56c9d5(0x7b4),_0x184ac3??{},_0x34b0a2),await new Promise(_0x2af8cd=>setTimeout(_0x2af8cd,0x3));}};return(..._0x306d52)=>{const _0x524a8c=_0x131320,_0x5f43fa=()=>_0x1a98ec[_0x524a8c(0x7cf)]['_n'](_0x524a8c(0x30c),[_0x1a98ec[_0x524a8c(0x2d0)],_0x1a98ec['name'],_0x4ad32a,_0x306d52],!![]),_0x102c12=_0x5c0db2=>{const _0x4d2de8=_0x524a8c;if(_0x5c0db2&&_0x5c0db2[_0x4d2de8(0x34b)])throw new TypeError('engine\x20api\x20has\x20no\x20method\x20\x27'+_0x4ad32a+'\x27');return _0x5c0db2[_0x4d2de8(0x821)];};if(_0xecaf78['has'](_0x1a98ec['type'])&&!_0x1fd2bc[_0x524a8c(0x69d)](_0x4ad32a)){const _0x457f22=_0x1a98ec['_facade'][_0x524a8c(0x4f7)];return _0x457f22[_0x524a8c(0x7ef)](()=>_0x457f22[_0x524a8c(0x45c)](_0x5f43fa))[_0x524a8c(0x600)](_0x102c12);}if(_0x46a82f[_0x524a8c(0x69d)](_0x1a98ec[_0x524a8c(0x2d0)]))try{return Promise[_0x524a8c(0x794)](_0x102c12(_0x5f43fa()));}catch(_0xd3a8f9){return Promise[_0x524a8c(0x47c)](_0xd3a8f9);}return _0x102c12(_0x5f43fa());};}});}async['load'](_0x5a1610={}){const _0x21dcdf=_0x3718ee;return await this[_0x21dcdf(0x7cf)][_0x21dcdf(0x577)](_0x21dcdf(0x321),[this[_0x21dcdf(0x2d0)],this[_0x21dcdf(0x425)],_0x5a1610]),this;}async[_0x3718ee(0x4df)](){const _0x12f9d6=_0x3718ee;await this[_0x12f9d6(0x7cf)][_0x12f9d6(0x577)](_0x12f9d6(0x424),[this[_0x12f9d6(0x2d0)],this[_0x12f9d6(0x425)]]);}async[_0x3718ee(0x32a)](_0x3ae824={}){const _0x2ed92e=_0x3718ee;await this[_0x2ed92e(0x7cf)][_0x2ed92e(0x577)](_0x2ed92e(0x29d),[this[_0x2ed92e(0x2d0)],this['name'],_0x3ae824]);}async[_0x3718ee(0x6c4)](_0x304a90={}){const _0x1e54ca=_0x3718ee;return await this[_0x1e54ca(0x7cf)][_0x1e54ca(0x577)]('patchDeclaration',[this[_0x1e54ca(0x2d0)],this[_0x1e54ca(0x425)],_0x304a90]),this;}async[_0x3718ee(0x145)](){const _0x2a9021=_0x3718ee;await this['_facade']['_nm'](_0x2a9021(0x599),[this[_0x2a9021(0x2d0)],this[_0x2a9021(0x425)]]);}}class _0x505bf3{constructor(_0x4e05a3,_0x4e987a=null,_0xcb7e5f=null){const _0x1225f3=_0x3718ee;this['okdb']=_0x4e05a3,this['envName']=_0x4e987a,this['isOrchestrator']=_0x4e987a===null,this[_0x1225f3(0x6f0)]=_0xcb7e5f||this,this[_0x1225f3(0x469)]=this[_0x1225f3(0x6f0)]===this?_0x1140e3(this):this[_0x1225f3(0x6f0)][_0x1225f3(0x469)],this[_0x1225f3(0x7d2)]=new Map();}['_n'](_0x37407f,_0x155fd3,_0x50c6d6=!![]){const _0x7398b=_0x3718ee;return this[_0x7398b(0x4f7)]['_call'](_0x7398b(0x617),this[_0x7398b(0x305)],_0x37407f,_0x155fd3,_0x50c6d6);}['_nm'](_0x149987,_0x274434){const _0x493889=_0x3718ee;return this[_0x493889(0x4f7)][_0x493889(0x67a)]('engines',this[_0x493889(0x305)],_0x149987,_0x274434,!![]);}get[_0x3718ee(0x784)](){const _0x389446=_0x3718ee;return this[_0x389446(0x305)]?this['okdb']['env'](this[_0x389446(0x305)]):null;}[_0x3718ee(0x48e)](_0x4a3f7b){const _0xed9b2e=_0x3718ee;if(!_0x4a3f7b)return null;let _0x824df2=this[_0xed9b2e(0x7d2)][_0xed9b2e(0x6ce)](_0x4a3f7b[_0xed9b2e(0x5c0)]);return!_0x824df2&&(_0x824df2=new _0x16d4e3(this,_0x4a3f7b['key'],_0x4a3f7b[_0xed9b2e(0x2d0)],_0x4a3f7b['name']),this[_0xed9b2e(0x7d2)][_0xed9b2e(0x7a0)](_0x4a3f7b['key'],_0x824df2)),_0x824df2;}['registerDriver'](_0x4372b0,_0x34a7b7){const _0x1ff8c4=_0x3718ee;if(!_0x4372b0||typeof _0x4372b0!=='string')throw new _0x5079f6(_0x1ff8c4(0x5f6),'ENGINE_INVALID_TYPE',{'type':_0x4372b0});if(!_0x34a7b7||typeof _0x34a7b7!==_0x1ff8c4(0x712))throw new _0x5079f6(_0x1ff8c4(0x531)+_0x4372b0+'\x22\x20must\x20be\x20a\x20plain\x20object',_0x1ff8c4(0x2fb),{'type':_0x4372b0});if(typeof _0x34a7b7[_0x1ff8c4(0x4df)]!==_0x1ff8c4(0x3b3))throw new _0x5079f6(_0x1ff8c4(0x531)+_0x4372b0+'\x22\x20must\x20have\x20a\x20start()\x20method',_0x1ff8c4(0x33e),{'type':_0x4372b0});const _0x55ddff=this[_0x1ff8c4(0x6f0)];if(_0x55ddff[_0x1ff8c4(0x469)]['has'](_0x4372b0))throw new _0x5079f6('Engine\x20driver\x20already\x20registered:\x20\x22'+_0x4372b0+'\x22','ENGINE_DRIVER_ALREADY_REGISTERED',{'type':_0x4372b0});const _0x58b9f6=_0x26376a[_0x1ff8c4(0x6a2)](_0x34a7b7,this[_0x1ff8c4(0x4f7)]),_0x4be14c=_0x4da184['filter'](_0x5603c2=>typeof _0x34a7b7[_0x5603c2]===_0x1ff8c4(0x3b3)),_0x2ac7c8=_0x34a7b7[_0x1ff8c4(0x2d9)]&&typeof _0x34a7b7[_0x1ff8c4(0x2d9)]===_0x1ff8c4(0x712)?_0x34a7b7['docs']:{};this['okdb'][_0x1ff8c4(0x24a)](_0x1ff8c4(0x617),null,_0x1ff8c4(0x4f8),[_0x4372b0,{'$id':_0x58b9f6,'has':_0x4be14c,'docs':_0x2ac7c8}]),_0x55ddff[_0x1ff8c4(0x469)][_0x1ff8c4(0x431)](_0x4372b0,_0x34a7b7);}get[_0x3718ee(0x508)](){const _0x5e220f=_0x3718ee;return this['okdb'][_0x5e220f(0x24a)](_0x5e220f(0x617),null,_0x5e220f(0x848),[],![]);}get['orchestrator'](){const _0x38a6bf=this;return{get '_started'(){return _0x38a6bf['_started'];}};}[_0x3718ee(0x5fc)](_0x22a859){const _0x5bb2f8=_0x3718ee;if(!_0x22a859||typeof _0x22a859!=='object')throw new _0x5079f6('Engine\x20template\x20must\x20be\x20a\x20plain\x20object',_0x5bb2f8(0x43d));if(!_0x22a859['id']||typeof _0x22a859['id']!==_0x5bb2f8(0x84a))throw new _0x5079f6(_0x5bb2f8(0x77c),_0x5bb2f8(0x43d));if(![_0x5bb2f8(0x769),'pipeline'][_0x5bb2f8(0x6f8)](_0x22a859[_0x5bb2f8(0x50a)]))throw new _0x5079f6(_0x5bb2f8(0x173)+_0x22a859['id'],_0x5bb2f8(0x43d));if(typeof _0x22a859[_0x5bb2f8(0x13a)]!==_0x5bb2f8(0x3b3))throw new _0x5079f6(_0x5bb2f8(0x7a9)+_0x22a859['id'],_0x5bb2f8(0x43d));const _0x580994=this[_0x5bb2f8(0x4f7)],_0x27933b=typeof _0x22a859[_0x5bb2f8(0x1a3)]===_0x5bb2f8(0x3b3);return this['_n'](_0x5bb2f8(0x5fc),[{'id':_0x22a859['id'],'kind':_0x22a859[_0x5bb2f8(0x50a)],'family':_0x22a859['family']??null,'engineType':_0x22a859[_0x5bb2f8(0x16d)]??null,'pipelineFamily':_0x22a859[_0x5bb2f8(0x657)]??null,'recommended':_0x22a859[_0x5bb2f8(0x43f)]===!![],'summary':_0x22a859['summary']??null,'description':_0x22a859[_0x5bb2f8(0x18c)]??null,'inputSchema':_0x27933b?null:_0x22a859[_0x5bb2f8(0x1a3)]??null,'inputSchemaFn':_0x27933b?()=>_0x22a859[_0x5bb2f8(0x1a3)](_0x580994):null,'defaults':_0x22a859[_0x5bb2f8(0x163)]??null,'notes':Array[_0x5bb2f8(0x7e3)](_0x22a859['notes'])?_0x22a859[_0x5bb2f8(0x428)]:[],'links':Array[_0x5bb2f8(0x7e3)](_0x22a859['links'])?_0x22a859['links']:[],'build':(_0x1be392,_0x5b3a6a)=>_0x22a859[_0x5bb2f8(0x13a)](_0x1be392??{},{'okdb':_0x580994,'envName':_0x5b3a6a??null})}],![]);}[_0x3718ee(0x6e1)](_0x57063b){const _0x7b01f5=_0x3718ee;return this['_n'](_0x7b01f5(0x6e1),[_0x57063b??null],![]);}[_0x3718ee(0x739)](_0x3b9b15){const _0x13d733=_0x3718ee;return this['_n'](_0x13d733(0x739),[_0x3b9b15],![]);}['previewTemplate'](_0xd843fc,_0x36bdf6,_0x3da969){const _0x33c318=_0x3718ee;return this['_n'](_0x33c318(0x6d0),[_0xd843fc,_0x36bdf6,_0x3da969??this[_0x33c318(0x305)]],![]);}['catalog'](){const _0x833b2=_0x3718ee;return this['_n'](_0x833b2(0x47b),[],![]);}async[_0x3718ee(0x4df)](){const _0x4ea48d=_0x3718ee;return this[_0x4ea48d(0x577)](_0x4ea48d(0x4df),[]);}async[_0x3718ee(0x32a)](){const _0x4ddfb2=_0x3718ee;return this['_nm'](_0x4ddfb2(0x32a),[]);}async[_0x3718ee(0x752)](_0x104f85,_0x4fac6d,_0x2f6525={},_0x47812e={},_0x55a478={}){const _0x1349fe=_0x3718ee;return this['_wrap'](await this['_nm'](_0x1349fe(0x752),[_0x104f85,_0x4fac6d,_0x2f6525,_0x47812e,_0x55a478]));}async[_0x3718ee(0x6e3)](_0x301d58,_0x136028,_0x4d60d9={},_0x1c4fba={},_0x12f363={}){const _0xea7d3c=_0x3718ee;return this['_wrap'](await this['_nm'](_0xea7d3c(0x6e3),[_0x301d58,_0x136028,_0x4d60d9,_0x1c4fba,_0x12f363]));}[_0x3718ee(0x553)](_0x5ea9e1,_0x4e7fc7){const _0x7d182f=_0x3718ee;return this[_0x7d182f(0x48e)](this['_n'](_0x7d182f(0x553),[_0x5ea9e1,_0x4e7fc7],![]));}['getRunningEngine'](_0x2ba6d6,_0x5d2b05){const _0x20d55b=_0x3718ee;return this[_0x20d55b(0x48e)](this['_n'](_0x20d55b(0x6a9),[_0x2ba6d6,_0x5d2b05],![]));}[_0x3718ee(0x6ec)](_0x373ba3){const _0x1eef48=_0x3718ee;return this['_n'](_0x1eef48(0x6ec),[_0x373ba3??null],![])['map'](_0x5bad5f=>this[_0x1eef48(0x48e)](_0x5bad5f));}async[_0x3718ee(0x17a)](_0x2e5e09,_0x120781){const _0x45105f=_0x3718ee;return this[_0x45105f(0x48e)](await this['_nm'](_0x45105f(0x17a),[_0x2e5e09,_0x120781]));}async[_0x3718ee(0x147)](_0x19b88a,_0x533e09){const _0x5ecb08=_0x3718ee;return this[_0x5ecb08(0x7d2)][_0x5ecb08(0x243)](_0x19b88a+':'+_0x533e09),this['_nm'](_0x5ecb08(0x147),[_0x19b88a,_0x533e09]);}async['startNewEnginesFromSync'](_0x4b27c1){const _0x5b0ccd=_0x3718ee;return this[_0x5b0ccd(0x577)](_0x5b0ccd(0x576),[_0x4b27c1]);}async[_0x3718ee(0x6a6)](){const _0x10e32=_0x3718ee;return this[_0x10e32(0x577)](_0x10e32(0x6a6),[]);}}function _0x1140e3(_0x234a9e){const _0x5e6174=_0x3718ee,_0x13e453=new Map();return{'has':_0x910314=>_0x13e453['has'](_0x910314)||_0x234a9e['okdb'][_0x5e6174(0x24a)](_0x5e6174(0x617),null,_0x5e6174(0x329),[_0x910314],![]),'get':_0x31ce44=>_0x13e453[_0x5e6174(0x6ce)](_0x31ce44),'set':()=>{const _0x3d677b=_0x5e6174;throw new _0x5079f6('use\x20engines.registerDriver()',_0x3d677b(0x29b));},'_set':(_0x2d5345,_0x4be3df)=>_0x13e453[_0x5e6174(0x7a0)](_0x2d5345,_0x4be3df),'keys':()=>_0x13e453[_0x5e6174(0x50d)](),'entries':()=>_0x13e453[_0x5e6174(0x45b)](),'values':()=>_0x13e453[_0x5e6174(0x514)](),get 'size'(){const _0x6a5041=_0x5e6174;return _0x13e453[_0x6a5041(0x4fb)];},[Symbol[_0x5e6174(0x1f2)]]:()=>_0x13e453[Symbol[_0x5e6174(0x1f2)]]()};}class _0x483778{constructor(_0x36c2de,_0x2d3dd1=null){const _0x65a270=_0x3718ee;this[_0x65a270(0x4f7)]=_0x36c2de,this[_0x65a270(0x305)]=_0x2d3dd1;}['_n'](_0x4391e7,_0x3127d5,_0xfe536=!![]){const _0x1caa5c=_0x3718ee;return this[_0x1caa5c(0x4f7)]['_call']('pipelines',this[_0x1caa5c(0x305)],_0x4391e7,_0x3127d5,_0xfe536);}[_0x3718ee(0x577)](_0x490ef1,_0x51329c){const _0x341ca3=_0x3718ee;return this[_0x341ca3(0x4f7)][_0x341ca3(0x67a)](_0x341ca3(0x3ca),this['envName'],_0x490ef1,_0x51329c,!![]);}get['isCoordinator'](){const _0x18a3a4=_0x3718ee;return this[_0x18a3a4(0x305)]===null;}async['ensure'](_0x21219b){const _0x4d3db7=_0x3718ee;return this['_n'](_0x4d3db7(0x51b),[_0x21219b]);}async[_0x3718ee(0x6ce)](_0x161575,_0x5bbaa4){return this['_n']('get',[_0x161575,_0x5bbaa4??null],![]);}async[_0x3718ee(0x875)](_0x84f321,_0x466dff){const _0x115cb3=_0x3718ee;return this['_n'](_0x115cb3(0x875),[_0x84f321,_0x466dff??null],![]);}async[_0x3718ee(0x6ec)](_0x563607){const _0x519ea6=_0x3718ee;return this['_n'](_0x519ea6(0x6ec),[_0x563607??null],![]);}async['listRecords'](_0x4dad2b={}){const _0x479682=_0x3718ee;return this['_n'](_0x479682(0x4fc),[_0x4dad2b?.[_0x479682(0x305)]??null],![]);}['validate'](_0x1a1cae,_0x19c93b){const _0x337436=_0x3718ee;return this['_n'](_0x337436(0x83e),[_0x1a1cae,_0x19c93b??null],![]);}async[_0x3718ee(0x569)](_0x45c56a){const _0x5e38f8=_0x3718ee;return this[_0x5e38f8(0x577)](_0x5e38f8(0x569),[_0x45c56a]);}async[_0x3718ee(0x1a2)](_0xcb247a,_0x359cf3){const _0x278cf0=_0x3718ee;return this[_0x278cf0(0x577)](_0x278cf0(0x1a2),[_0xcb247a,_0x359cf3]);}async['stop'](_0xeae818){const _0x175ac1=_0x3718ee;return this[_0x175ac1(0x577)](_0x175ac1(0x32a),[_0xeae818]);}async[_0x3718ee(0x654)](_0x1c6f8a){const _0x495815=_0x3718ee;if(!_0x1c6f8a||typeof _0x1c6f8a!==_0x495815(0x712)||!_0x1c6f8a[_0x495815(0x425)]||!_0x1c6f8a[_0x495815(0x617)])return _0x1c6f8a;for(let _0x1a94fa=0x0;_0x1a94fa<0x3;_0x1a94fa++)await new Promise(_0x58a2a8=>setImmediate(_0x58a2a8));try{const _0x4925e9=this['envName']!==null?await this['get'](_0x1c6f8a[_0x495815(0x425)]):_0x1c6f8a[_0x495815(0x784)]?await this['get'](_0x1c6f8a['env'],_0x1c6f8a[_0x495815(0x425)]):null;return _0x4925e9||_0x1c6f8a;}catch{return _0x1c6f8a;}}async[_0x3718ee(0x4df)](_0x1619a8){const _0x31e1d7=_0x3718ee;return this[_0x31e1d7(0x654)](await this[_0x31e1d7(0x577)](_0x31e1d7(0x4df),[_0x1619a8]));}async[_0x3718ee(0x17a)](_0x1a410e){const _0x2a0ea5=_0x3718ee;return this[_0x2a0ea5(0x654)](await this[_0x2a0ea5(0x577)](_0x2a0ea5(0x17a),[_0x1a410e]));}async['rebuild'](_0xe3af1b){const _0xf31dc2=_0x3718ee;return this[_0xf31dc2(0x577)](_0xf31dc2(0x247),[_0xe3af1b]);}async['replaceMember'](_0x46a796,_0x604467,_0x2af3a7){const _0x43e93b=_0x3718ee;return this[_0x43e93b(0x577)](_0x43e93b(0x4c1),[_0x46a796,_0x604467,_0x2af3a7]);}async[_0x3718ee(0x78e)](_0x39c90f){const _0x1dae5f=_0x3718ee;return this[_0x1dae5f(0x577)](_0x1dae5f(0x78e),[_0x39c90f]);}async['stopAll'](){const _0x72569e=_0x3718ee;return this[_0x72569e(0x577)]('stopAll',[]);}async[_0x3718ee(0x6f4)](){const _0x104ab7=_0x3718ee;return this[_0x104ab7(0x577)]('bootSyncedPipelines',[]);}['findOwner'](_0x43317f,_0x49f795){const _0x272718=_0x3718ee;return this['_n'](_0x272718(0x388),[_0x43317f,_0x49f795],![]);}}return engines={'OKDBEngines':_0x505bf3,'OKDBPipelines':_0x483778,'OKDBEngineHandle':_0x16d4e3},engines;}var functions,hasRequiredFunctions;function requireFunctions(){const _0x5951c7=_0x2d5353;if(hasRequiredFunctions)return functions;hasRequiredFunctions=0x1;const {optionsArg:_0xf9a428}=requireErrors(),_0x188c6e=Number(process.env.OKDB_FN_POLL_MS)||0x14;class _0x55d3c7{constructor(_0x33d5d6,_0x44cead=null){const _0x182827=_0x36a2;this[_0x182827(0x4f7)]=_0x33d5d6,this[_0x182827(0x305)]=_0x44cead??_0x182827(0x5f7);}get['env'](){const _0x11fd17=_0x36a2;return this['okdb'][_0x11fd17(0x3e2)][_0x11fd17(0x6ce)](this[_0x11fd17(0x305)])??null;}['_n'](_0x11c647,_0x391d33=[],_0x333aaf=!![]){const _0x1748bd=_0x36a2;try{return this[_0x1748bd(0x4f7)]['_call'](_0x1748bd(0x792),this[_0x1748bd(0x305)],_0x11c647,_0x391d33,_0x333aaf);}catch(_0x1d0dff){throw _0xa18e09(_0x1d0dff);}}async['_nm'](_0x3e83ea,_0xe666cc=[]){const _0xb39b26=_0x36a2;try{return await this[_0xb39b26(0x4f7)]['_callMacro'](_0xb39b26(0x792),this[_0xb39b26(0x305)],_0x3e83ea,_0xe666cc,!![]);}catch(_0xea3181){throw _0xa18e09(_0xea3181);}}async[_0x5951c7(0x6ec)](){return this['_n']('list',[],![]);}async[_0x5951c7(0x6ce)](_0x230c5e){const _0x456a16=_0x5951c7;return this['_n'](_0x456a16(0x6ce),[_0x230c5e],![]);}async[_0x5951c7(0x569)](_0x26d017){const _0x260665=_0x5951c7;return this['_n'](_0x260665(0x569),[_0x26d017]);}async[_0x5951c7(0x1a2)](_0x2c2084,_0x47d179={}){const _0x1f8130=_0x5951c7;return this['_n'](_0x1f8130(0x1a2),[_0x2c2084,_0x47d179]);}async[_0x5951c7(0x78e)](_0x46f3eb){return this['_n']('remove',[_0x46f3eb]);}async[_0x5951c7(0x36d)](_0xd33d32){const _0x34818=_0x5951c7,{functionName:functionName=null}=_0xf9a428(_0xd33d32);return this['_n'](_0x34818(0x36d),[{'functionName':functionName}],![]);}async['getRun'](_0x2201fe){const _0x5e653e=_0x5951c7;return this['_n'](_0x5e653e(0x1bf),[_0x2201fe],![]);}async['recordRun'](_0x46e6a6){const _0x3b70ec=_0x5951c7;return _0x46e6a6=_0xf9a428(_0x46e6a6,_0x3b70ec(0x269)),this['_n'](_0x3b70ec(0x5af),[_0x46e6a6]);}async[_0x5951c7(0x269)](_0x31f16b,_0x335043=null,_0x55c154={}){const _0x5dd076=_0x5951c7,_0x157c79={..._0x55c154},_0x2182eb=_0x157c79[_0x5dd076(0x1cc)];if(_0x2182eb)_0x157c79[_0x5dd076(0x550)]=!!_0x2182eb[_0x5dd076(0x550)];delete _0x157c79[_0x5dd076(0x1cc)];const _0x4cf7ff=await this[_0x5dd076(0x577)](_0x5dd076(0x1c0),[_0x31f16b,_0x335043,_0x157c79]),_0x14072a=this[_0x5dd076(0x4f7)],_0x7a05c6=()=>_0x14072a[_0x5dd076(0x176)]['wake']();if(_0x2182eb&&typeof _0x2182eb[_0x5dd076(0x30a)]===_0x5dd076(0x3b3))_0x2182eb['addEventListener'](_0x5dd076(0x2bc),_0x7a05c6,{'once':!![]});let _0x53b1c8=![];try{for(;;){const _0xc627a3=_0x14072a['_pumper'][_0x5dd076(0x7f9)](_0x188c6e);let _0x469003;try{_0x469003=await _0x14072a[_0x5dd076(0x67a)](_0x5dd076(0x792),this['envName'],_0x5dd076(0x7bd),[_0x4cf7ff,!!_0x2182eb?.['aborted']],![],![]);}catch(_0x3df1e9){_0x53b1c8=!![];throw _0xa18e09(_0x3df1e9);}if(!_0x469003||_0x469003[_0x5dd076(0x3bb)]!==!![])return _0x53b1c8=!![],_0x14072a[_0x5dd076(0x176)]['wake'](),_0x469003;if(_0x469003['progressed'])_0x14072a[_0x5dd076(0x176)][_0x5dd076(0x42a)]();await _0xc627a3;}}finally{if(_0x2182eb&&typeof _0x2182eb[_0x5dd076(0x724)]==='function')_0x2182eb['removeEventListener'](_0x5dd076(0x2bc),_0x7a05c6);if(!_0x53b1c8)try{_0x14072a[_0x5dd076(0x24a)]('functions',this['envName'],_0x5dd076(0x52d),[_0x4cf7ff],![]);}catch{}}}async[_0x5951c7(0x73d)](_0x2d7e6f={},_0x4ba965=null,_0x59ce1a={}){const _0x3d17db=_0x5951c7;return this[_0x3d17db(0x577)](_0x3d17db(0x73d),[_0x2d7e6f,_0x4ba965,_0x59ce1a]);}async['stop'](){}}function _0xa18e09(_0x3c218c){const _0x26a46f=_0x5951c7;if(_0x3c218c&&_0x3c218c['details']&&_0x3c218c[_0x26a46f(0x433)][_0x26a46f(0x146)])_0x3c218c['_runRecord']=_0x3c218c[_0x26a46f(0x433)]['runRecord'];return _0x3c218c;}return functions={'OKDBFunctions':_0x55d3c7},functions;}var processor={'exports':{}},lock,hasRequiredLock;function requireLock(){const _0x1a47a1=_0x2d5353;if(hasRequiredLock)return lock;hasRequiredLock=0x1;const {optionsArg:_0x46863a}=requireErrors();class _0xb9d07b{constructor(_0x4d54f3,_0x135cec){const _0x2a492=_0x36a2;this[_0x2a492(0x190)]=_0x4d54f3,this[_0x2a492(0x23e)]=_0x135cec;}['_n'](_0x26140d,_0x54384c=[]){const _0x32928e=_0x36a2;return this[_0x32928e(0x190)]['_n'](_0x26140d,[this[_0x32928e(0x23e)],..._0x54384c]);}['isHeld'](){const _0x43a638=_0x36a2;return this['_n'](_0x43a638(0x6f2));}get[_0x1a47a1(0x255)](){const _0x5c917b=_0x1a47a1;return this['_n'](_0x5c917b(0x255));}[_0x1a47a1(0x4e2)](){return this['_n']('holder');}[_0x1a47a1(0x35f)](_0x46dd62){const _0x41fe15=_0x1a47a1;return this['_n'](_0x41fe15(0x35f),[_0x46dd62]);}async[_0x1a47a1(0x7fb)](){return this['_n']('release');}}class _0x440408{constructor(_0x4d2602,_0x577ae7,_0xaaed20,_0x24c5c0){const _0x16fb74=_0x1a47a1,{ttlMs:ttlMs=0x7530,heartbeatMs:heartbeatMs=null}=_0x46863a(_0x24c5c0);this[_0x16fb74(0x4f7)]=_0x4d2602,this[_0x16fb74(0x542)]=_0xaaed20,this[_0x16fb74(0x23e)]=_0x4d2602['_call']('lock',_0x577ae7,_0x16fb74(0x223),[_0xaaed20,ttlMs,heartbeatMs],![]),this[_0x16fb74(0x76b)]=_0x577ae7;}['_n'](_0x3f1748,_0x3122a1=[]){const _0x4a7ca4=_0x1a47a1;return this['okdb']['_call'](_0x4a7ca4(0x58c),this[_0x4a7ca4(0x76b)],_0x3f1748,_0x3122a1,![]);}['_key'](_0x233c9b){const _0x56c9a0=_0x1a47a1;return this['_n'](_0x56c9a0(0x5c0),[this[_0x56c9a0(0x23e)],_0x233c9b]);}async[_0x1a47a1(0x6af)](_0xc18d2c,_0x5b93d0={},_0x3e0727={}){const _0x282748=_0x1a47a1,_0x4553ee=this['_n'](_0x282748(0x6af),[this[_0x282748(0x23e)],_0xc18d2c,_0x5b93d0,_0x3e0727]);return{'acquired':_0x4553ee['acquired'],'handle':_0x4553ee['handle']==null?null:new _0xb9d07b(this,_0x4553ee[_0x282748(0x398)]),'current':_0x4553ee[_0x282748(0x2a1)]};}['inspect'](_0x26514f){const _0x2b7789=_0x1a47a1;return this['_n']('inspect',[this[_0x2b7789(0x23e)],_0x26514f]);}[_0x1a47a1(0x6ec)](){const _0x3b0dfb=_0x1a47a1;return this['_n']('list',[this[_0x3b0dfb(0x23e)]]);}[_0x1a47a1(0x490)](_0xbb225d){const _0x4bd14d=_0x1a47a1;return this['_n'](_0x4bd14d(0x490),[this['_id'],_0xbb225d]);}['isWanted'](_0x184fc8,_0x1240d7=0x3e8){const _0x545d46=_0x1a47a1;return this['_n']('isWanted',[this[_0x545d46(0x23e)],_0x184fc8,_0x1240d7]);}}return lock={'NativeLock':_0x440408,'NativeLockHandle':_0xb9d07b},lock;}var hasRequiredProcessor;function requireProcessor(){const _0x2398e9=_0x2d5353;if(hasRequiredProcessor)return processor[_0x2398e9(0x613)];hasRequiredProcessor=0x1;const _0x36978e=requireBridge(),{RawDb:_0x10a31f}=requireRawdb(),{NativeLock:_0x4d0220}=requireLock();function _0x464018(_0x24b9c6){}class _0x59442e{constructor(_0x465505){const _0x5e74a2=_0x2398e9;this[_0x5e74a2(0x784)]=_0x465505,this['okdb']=_0x465505;try{this['_n'](_0x5e74a2(0x16e),[(_0x2dfd8d,_0x85235a)=>{const _0x302b7b=_0x5e74a2,_0x1a5f89=this[_0x302b7b(0x4f7)][_0x302b7b(0x71e)],_0x1fac06=_0x1a5f89?.[_0x2dfd8d]??_0x1a5f89?.['info'];if(typeof _0x1fac06===_0x302b7b(0x3b3))_0x1fac06['call'](_0x1a5f89,_0x85235a);}],![]);}catch{}}['_n'](_0x85c437,_0x572a8b,_0x193487=!![]){const _0x240f5a=_0x2398e9;return this[_0x240f5a(0x784)][_0x240f5a(0x4f7)][_0x240f5a(0x24a)](_0x240f5a(0x171),this['env'][_0x240f5a(0x425)],_0x85c437,_0x572a8b,_0x193487);}[_0x2398e9(0x82d)](_0x48a64a,_0x1eba14={}){const _0x399750=_0x2398e9,_0x294f4c={..._0x1eba14};if(typeof _0x294f4c['handler']===_0x399750(0x3b3)&&_0x294f4c[_0x399750(0x455)]!=null)throw new Error(_0x399750(0x563)+_0x399750(0x85e));if(typeof _0x294f4c['handler']===_0x399750(0x84a)&&_0x294f4c['module']!=null)throw new Error('processor:\x20specify\x20exactly\x20one\x20of\x20handler:\x27<name>\x27\x20or\x20module:{path,export},\x20not\x20both');if(_0x294f4c[_0x399750(0x455)]!=null){if(!_0x294f4c[_0x399750(0x455)][_0x399750(0x733)])throw new Error(_0x399750(0x691));const _0x55438e=_0x294f4c[_0x399750(0x455)][_0x399750(0x5bc)]??_0x294f4c[_0x399750(0x455)][_0x399750(0x6d9)]??'process',_0x16b1f9=require[_0x399750(0x794)](_0x294f4c[_0x399750(0x455)][_0x399750(0x733)]),_0x2a97c8=require(_0x16b1f9),_0x181ff2=_0x2a97c8[_0x55438e]??_0x2a97c8['default']??_0x2a97c8;if(typeof _0x181ff2!==_0x399750(0x3b3))throw new Error('processor:\x20module\x20\x27'+_0x294f4c[_0x399750(0x455)][_0x399750(0x733)]+_0x399750(0x384)+_0x55438e+_0x399750(0x673));this[_0x399750(0x784)][_0x399750(0x4f7)]['_staticCall'](_0x399750(0x171),_0x399750(0x1dd),[_0x16b1f9,_0x55438e,_0x181ff2]),_0x294f4c[_0x399750(0x455)]={'path':_0x16b1f9,'export':_0x55438e};}if(_0x294f4c[_0x399750(0x86b)]!=null){if(typeof _0x294f4c[_0x399750(0x86b)][_0x399750(0x455)]!==_0x399750(0x84a))throw new Error(_0x399750(0x224));const _0x5f1f5d=require[_0x399750(0x794)](_0x294f4c['quantum'][_0x399750(0x455)]),_0x1bb03a=require(_0x5f1f5d),_0x3de5ca=_0x294f4c['quantum']['exportName'],_0x38ef1e=_0x3de5ca?_0x1bb03a[_0x3de5ca]:_0x1bb03a[_0x399750(0x634)]??_0x1bb03a;if(typeof _0x38ef1e===_0x399750(0x3b3)){const _0x25da34=_0x3de5ca?_0x294f4c[_0x399750(0x86b)][_0x399750(0x455)]+'#'+_0x3de5ca:_0x294f4c[_0x399750(0x86b)][_0x399750(0x455)];this[_0x399750(0x784)][_0x399750(0x4f7)][_0x399750(0x701)](_0x399750(0x171),_0x399750(0x51e),[_0x25da34,_0x38ef1e]);}_0x294f4c[_0x399750(0x86b)]={..._0x294f4c[_0x399750(0x86b)]};}_0x294f4c[_0x399750(0x172)]!=null&&typeof _0x294f4c[_0x399750(0x172)]===_0x399750(0x712)&&(_0x294f4c[_0x399750(0x172)]={'$payload':_0x36978e[_0x399750(0x723)](_0x294f4c[_0x399750(0x172)],this[_0x399750(0x784)][_0x399750(0x4f7)])});if(_0x294f4c[_0x399750(0x247)]!=null&&typeof _0x294f4c[_0x399750(0x247)]!==_0x399750(0x3b3))throw new Error(_0x399750(0x265));const _0x4692ef=this['_n']('register',[_0x48a64a??null,_0x294f4c]);return this[_0x399750(0x7ba)](_0x4692ef['id'],_0x4692ef[_0x399750(0x52c)]);}[_0x2398e9(0x7ba)](_0x33ac77,_0x4e3530){const _0x56c7d=_0x2398e9,_0x39fdf8=this,_0x18c8d5=async()=>{const _0xd053c3=_0x36a2;_0x39fdf8['_n'](_0xd053c3(0x6bb),[_0x33ac77]);};return _0x18c8d5['id']=_0x33ac77,_0x18c8d5[_0x56c7d(0x52c)]=_0x4e3530,_0x18c8d5[_0x56c7d(0x63a)]=()=>_0x4e3530?_0x39fdf8['_n'](_0x56c7d(0x3e3),[_0x33ac77],![]):0x0,_0x18c8d5[_0x56c7d(0x2e4)]=()=>_0x39fdf8[_0x56c7d(0x6ce)](_0x33ac77),_0x18c8d5[_0x56c7d(0x782)]=_0x18c8d5['status'],_0x18c8d5[_0x56c7d(0x689)]=()=>_0x39fdf8['pause'](_0x33ac77),_0x18c8d5['resume']=()=>_0x39fdf8[_0x56c7d(0x506)](_0x33ac77),_0x18c8d5[_0x56c7d(0x6bd)]=()=>_0x39fdf8['kick'](_0x33ac77),_0x18c8d5[_0x56c7d(0x855)]=()=>_0x39fdf8[_0x56c7d(0x855)](_0x33ac77),_0x18c8d5[_0x56c7d(0x194)]=_0x47699b=>_0x39fdf8[_0x56c7d(0x194)](_0x33ac77,_0x47699b),_0x18c8d5;}get[_0x2398e9(0x80c)](){try{return this['_n']('list',[],![])['map'](_0x2cade6=>({'id':_0x2cade6['id']}));}catch{return[];}}async[_0x2398e9(0x40e)](_0x4b46b0){return new Set(this['_n']('pauseAllAndDrain',[]));}[_0x2398e9(0x763)](_0x240b03){const _0x1f2d20=_0x2398e9;return this['_n'](_0x1f2d20(0x763),[[..._0x240b03??[]]]);}get['_envWide'](){const _0x5b5bec=_0x2398e9;return new Set(this['_n'](_0x5b5bec(0x6ec),[],![])[_0x5b5bec(0x440)](_0x2ab088=>_0x2ab088[_0x5b5bec(0x2d0)]==null)[_0x5b5bec(0x4e8)](_0xdd82d0=>_0xdd82d0['id']));}[_0x2398e9(0x31f)](){}get[_0x2398e9(0x190)](){const _0x554aef=_0x2398e9;if(!this[_0x554aef(0x62c)]){const _0x1e2527=new _0x4d0220(this[_0x554aef(0x784)][_0x554aef(0x4f7)],this['env'][_0x554aef(0x425)],_0x554aef(0x171)),_0x391823=this[_0x554aef(0x784)];_0x1e2527['_db']=()=>new _0x10a31f(_0x391823,_0x554aef(0x7c3)),this[_0x554aef(0x62c)]=_0x1e2527;}return this['__lock'];}[_0x2398e9(0x292)](_0x45a5b4,_0x18d2d9){const _0x5e129f=_0x2398e9;return this['_n']('fail',[typeof _0x45a5b4===_0x5e129f(0x84a)?_0x45a5b4:_0x45a5b4['id'],_0x18d2d9?.[_0x5e129f(0x367)]??String(_0x18d2d9??'')]);}get['_stateDb'](){const _0x369776=_0x2398e9;return this[_0x369776(0x24f)]||(this[_0x369776(0x24f)]=new _0x10a31f(this['env'],'~proc:state'));}get[_0x2398e9(0x207)](){const _0x48f701=_0x2398e9,_0x48e528=this,_0x364437=_0x2f4635=>{const _0xe383c2=_0x36a2,_0x161789=()=>_0x48e528['_n']('regInfo',[_0x2f4635],![]);if(!_0x161789())return undefined;const _0x2acb5c=_0x492321=>()=>_0x161789()?.[_0x492321],_0x2c5b0e={'id':_0x2f4635},_0x43730a=(_0x1e7853,_0x137512,_0x3243b0)=>Object[_0xe383c2(0x2ad)](_0x2c5b0e,_0x1e7853,{'get':_0x137512,'set':_0x3243b0,'enumerable':!![],'configurable':!![]});return _0x43730a(_0xe383c2(0x76c),_0x2acb5c('state')),_0x43730a(_0xe383c2(0x82b),_0x2acb5c('mode')),_0x43730a(_0xe383c2(0x1ae),_0x2acb5c(_0xe383c2(0x1ae))),_0x43730a(_0xe383c2(0x4b9),_0x2acb5c(_0xe383c2(0x4b9)),_0x2ee8ec=>_0x48e528['_n'](_0xe383c2(0x7c0),[_0x2f4635,_0x2ee8ec])),_0x43730a(_0xe383c2(0x52c),_0x2acb5c(_0xe383c2(0x52c))),_0x43730a(_0xe383c2(0x499),_0x2acb5c(_0xe383c2(0x4ef)),_0x226fd4=>_0x48e528['_n']('setClaimGated',[_0x2f4635,!!_0x226fd4])),_0x43730a(_0xe383c2(0x7ae),_0x2acb5c(_0xe383c2(0x70d))),_0x43730a(_0xe383c2(0x275),_0x2acb5c(_0xe383c2(0x275))),_0x43730a(_0xe383c2(0x2eb),_0x2acb5c('drainDeadlineMs')),_0x43730a(_0xe383c2(0x64a),_0x2acb5c(_0xe383c2(0x7ed)),_0x148dfd=>_0x48e528['_n'](_0xe383c2(0x290),[_0x2f4635,_0x148dfd])),_0x43730a(_0xe383c2(0x360),()=>_0x48e528[_0xe383c2(0x6ce)](_0x2f4635)?.[_0xe383c2(0x360)]),_0x43730a('_lockHandle',()=>_0x161789()?.[_0xe383c2(0x648)]?{'isHeld':()=>!!_0x161789()?.[_0xe383c2(0x648)]}:null),_0x43730a(_0xe383c2(0x446),()=>_0x161789()?.['pokeHandler']?()=>{}:null),_0x43730a(_0xe383c2(0x12d),()=>_0x161789()?.[_0xe383c2(0x28e)]?{}:null),_0x43730a('_debounceTimer',()=>_0x161789()?.[_0xe383c2(0x734)]?{}:null),_0x2c5b0e;},_0x50b376=()=>_0x48e528['_n'](_0x48f701(0x6ec),[],![])[_0x48f701(0x4e8)](_0x3438a9=>_0x3438a9['id']);return{'get':_0x3e41e0=>_0x364437(_0x3e41e0),'has':_0x31ffd3=>_0x50b376()[_0x48f701(0x6f8)](_0x31ffd3),get 'size'(){return _0x50b376()['length'];},'keys':()=>_0x50b376()[Symbol[_0x48f701(0x1f2)]](),'values':()=>_0x50b376()[_0x48f701(0x4e8)](_0x364437)[Symbol[_0x48f701(0x1f2)]](),'entries':()=>_0x50b376()['map'](_0x1838ec=>[_0x1838ec,_0x364437(_0x1838ec)])[Symbol['iterator']](),[Symbol['iterator']]:()=>_0x50b376()['map'](_0x44720a=>[_0x44720a,_0x364437(_0x44720a)])[Symbol[_0x48f701(0x1f2)]](),'forEach':_0x5634e6=>_0x50b376()[_0x48f701(0x524)](_0x567a06=>_0x5634e6(_0x364437(_0x567a06),_0x567a06))};}async['stopAll'](){const _0x68e70c=_0x2398e9;return this['_n'](_0x68e70c(0x570),[]);}['list'](){const _0x256cc5=_0x2398e9,_0x394939=this['_n'](_0x256cc5(0x6ec),[],![]);if(!this[_0x256cc5(0x784)][_0x256cc5(0x425)]['startsWith']('~'))try{const _0x1282a3=this[_0x256cc5(0x784)][_0x256cc5(0x4f7)][_0x256cc5(0x360)];for(const _0x24e8df of _0x1282a3[_0x256cc5(0x1c7)](this[_0x256cc5(0x784)][_0x256cc5(0x425)])){for(const _0x573953 of _0x1282a3[_0x256cc5(0x581)](_0x24e8df,this['env'][_0x256cc5(0x425)])){const _0x20a941=_0x256cc5(0x84e)+_0x24e8df+':'+_0x573953;_0x394939[_0x256cc5(0x46d)]({'id':_0x20a941,'type':_0x24e8df,'mode':_0x256cc5(0x3a4),'state':'online','paused':![],'lag':0x0,'cursorKey':_0x20a941,'meta':{'name':_0x20a941}});}}}catch{}return _0x394939;}[_0x2398e9(0x62d)](){const _0x47e3d5=_0x2398e9;return this['_n'](_0x47e3d5(0x62d),[],![]);}[_0x2398e9(0x2ba)](){return this['_n']('durableTierLag',[],![]);}[_0x2398e9(0x59c)](){const _0x3795f8=_0x2398e9;return this['_n'](_0x3795f8(0x59c),[],![]);}[_0x2398e9(0x6ce)](_0x91793b){return this['_n']('get',[_0x91793b],![]);}[_0x2398e9(0x4b7)](_0x42df0e){const _0x155602=_0x2398e9;return this[_0x155602(0x6ce)](typeof _0x42df0e===_0x155602(0x84a)?_0x42df0e:_0x42df0e['id']);}[_0x2398e9(0x665)](_0x2ab6ff){const _0xa60bab=_0x2398e9;return this['_n'](_0xa60bab(0x665),[_0x2ab6ff],![]);}['resetCursor'](_0x41be47){return this['_n']('resetCursor',[_0x41be47]);}[_0x2398e9(0x380)](_0x9b34b1){const _0x31fbe8=_0x2398e9;return this['_n'](_0x31fbe8(0x380),[_0x9b34b1]);}[_0x2398e9(0x434)](_0x98f77d){return this['_n']('isSnapshotComplete',[_0x98f77d],![]);}[_0x2398e9(0x41b)](_0x2578d3,_0xe9dd5){const _0x4d139b=_0x2398e9;return this['_n'](_0x4d139b(0x41b),[_0x2578d3,_0xe9dd5]);}async[_0x2398e9(0x194)](_0x276e23,_0xfbfefc){const _0x3be276=_0x2398e9;return this['_n'](_0x3be276(0x194),[_0x276e23,_0xfbfefc??0x7530]);}[_0x2398e9(0x689)](_0xf2c3b){const _0x5aa24a=_0x2398e9;return this['_n'](_0x5aa24a(0x689),[_0xf2c3b]);}['resume'](_0x1644d6){return this['_n']('resume',[_0x1644d6]);}async[_0x2398e9(0x154)](_0x3bec03){return this['_n']('setClaiming',[_0x3bec03]);}[_0x2398e9(0x6bd)](_0x1693eb){const _0x13af5f=_0x2398e9;return this['_n'](_0x13af5f(0x6bd),[_0x1693eb]);}[_0x2398e9(0x855)](_0x1b2763){const _0x276717=_0x2398e9;return this['_n'](_0x276717(0x855),[_0x1b2763]);}[_0x2398e9(0x17a)](_0x2b932d,_0x3b6096={}){return this['_n']('restart',[_0x2b932d,_0x3b6096]);}async[_0x2398e9(0x149)](_0x294ff0,_0x42b36c,_0x1ffbc){const _0x784e09=_0x2398e9,[_0xa337fb,_0xb0d1bf]=this['_n'](_0x784e09(0x149),[_0x294ff0,_0x42b36c,_0x1ffbc]);return{'version':_0xa337fb,'flipClock':_0xb0d1bf};}async[_0x2398e9(0x3c1)](_0x1c276c,_0x5e3298,_0x522a10={}){const _0xbe4126=_0x2398e9;return this['_n'](_0xbe4126(0x3c1),[_0x1c276c,_0x5e3298,_0x522a10]);}}_0x59442e[_0x2398e9(0x625)]=function _0x1fdc3f(_0x5cb737,_0x2bb5f3){const _0x581624=_0x2398e9;if(typeof _0x5cb737!=='string'||!_0x5cb737)throw new Error(_0x581624(0x160));if(typeof _0x2bb5f3!==_0x581624(0x3b3))throw new Error(_0x581624(0x4b5));_0x1f46f0(_0x581624(0x171),_0x581624(0x625),[_0x5cb737,_0x2bb5f3]);},_0x59442e[_0x2398e9(0x51e)]=function _0x1b5188(_0x25eaca,_0x2b173a){const _0x8bda6f=_0x2398e9;if(typeof _0x25eaca!==_0x8bda6f(0x84a)||!_0x25eaca)throw new Error(_0x8bda6f(0x7e2));if(typeof _0x2b173a!=='function')throw new Error(_0x8bda6f(0x407));let _0x5eecb8=null;_0x1f46f0(_0x8bda6f(0x171),_0x8bda6f(0x51e),[_0x25eaca,(_0xb98c64,_0x3e0157)=>{if(!_0x5eecb8)_0x5eecb8=_0x2b173a();return _0x5eecb8(_0xb98c64,_0x3e0157);}]);},_0x59442e[_0x2398e9(0x652)]=_0x121952=>/closed|not open|released/i[_0x2398e9(0x728)](String(_0x121952)),_0x59442e[_0x2398e9(0x205)]=![];function _0x1f46f0(_0x373bb2,_0xb15e93,_0x521a18){const {staticCall:_0x262f95}=requireLib();return _0x262f95(_0x373bb2,_0xb15e93,_0x521a18);}return processor['exports']=_0x59442e,processor[_0x2398e9(0x613)][_0x2398e9(0x3c6)]=_0x59442e,processor[_0x2398e9(0x613)][_0x2398e9(0x4b8)]=_0x464018,processor[_0x2398e9(0x613)];}var okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x36b62a=_0x2d5353;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x443f87={'PUT':'put','REMOVE':_0x36b62a(0x78e),'INDEX_DROP':'dropIndex','INDEX_REGISTER':_0x36b62a(0x5cc),'INDEX_RESET':_0x36b62a(0x475),'TYPE_REGISTER':_0x36b62a(0x6c6),'TYPE_DROP':'dropType','FTS_REGISTER':_0x36b62a(0x4ff),'FTS_DROP':_0x36b62a(0x812),'FTS_RESET':_0x36b62a(0x685),'SCHEMA_SET':_0x36b62a(0x598),'SCHEMA_DROP':_0x36b62a(0x39b),'TTL_SET':_0x36b62a(0x408),'TTL_CLEAR':'clearTtl'},_0xaf58ab={'SYSTEM_READY':'system:ready','FIELD_RESOLVER_REGISTERED':_0x36b62a(0x3a0),'SYSTEM_STOPPED':'system:stopped','SYSTEM_CLOCK_CHANGE':_0x36b62a(0x390),'SYSTEM_POKE':_0x36b62a(0x338),'SYSTEM_DRAIN':'system:drain','SYSTEM_TYPE_DROP':_0x36b62a(0x21c),'SYSTEM_PROC':_0x36b62a(0x810),'SYSTEM_BUS_STATE_CHANGE':_0x36b62a(0x158),'ITEM_CREATE':_0x36b62a(0x64c),'ITEM_UPDATE':'item:update','ITEM_REMOVE':'item:remove','ITEM_PENDING':_0x36b62a(0x5e6),'INDEX_RESET':_0x36b62a(0x312),'INDEX_READY':'index:ready','INDEX_PROGRESS':_0x36b62a(0x4dc),'VIEW_PROGRESS':_0x36b62a(0x69f),'INDEX_DROP':'index:drop','INDEX_REGISTERED':_0x36b62a(0x5e1),'FTS_REGISTERED':_0x36b62a(0x511),'FTS_DROP':_0x36b62a(0x25d),'FTS_RESET':_0x36b62a(0x2f9),'SCHEMA_SET':_0x36b62a(0x37c),'SCHEMA_DROP':_0x36b62a(0x336),'UNIQUE_VIOLATION':'unique:violation','UNIQUE_VIOLATION_RESOLVED':_0x36b62a(0x66b),'REF_VIOLATION':_0x36b62a(0x614),'REF_VIOLATION_RESOLVED':_0x36b62a(0x45a),'SYNC_APPLY':_0x36b62a(0x760),'TXN_START':_0x36b62a(0x20b),'TXN_END':_0x36b62a(0x6e6),'TXN_ROLLBACK':_0x36b62a(0x70b),'TYPE_REGISTERED':_0x36b62a(0x2f4),'TYPE_DROP':_0x36b62a(0x4dd),'ENV_OPENED':_0x36b62a(0x1e4),'ENV_REMOVED':_0x36b62a(0x748),'SYSTEM_ENV_RELEASE':_0x36b62a(0x3f3),'TTL_EXPIRED':_0x36b62a(0x686),'TTL_SET':_0x36b62a(0x870),'TTL_CLEAR':'ttl:clear','LICENSE_INVALID':_0x36b62a(0x37e),'LICENSE_ADDED':_0x36b62a(0x3c8),'LICENSE_ACTIVATED':'license:activated','LICENSE_REMOVED':_0x36b62a(0x830)},_0x4aa940={'CREATING':_0x36b62a(0x169),'RESETTING':'resetting','READY':_0x36b62a(0x2bf),'DROPPING':_0x36b62a(0x522),'WAITING':_0x36b62a(0x66c),'ERROR':'error'},_0x9bc5f6={'CREATED':_0x36b62a(0x236),'STARTING':_0x36b62a(0x6e8),'STARTED':_0x36b62a(0x344),'STOPPING':'stopping','STOPPED':'stopped'},_0x248f29={'CREATING':_0x36b62a(0x169),'READY':_0x36b62a(0x2bf),'HALTED':_0x36b62a(0x3b5),'STOPPED':_0x36b62a(0x6da),'RESETTING':_0x36b62a(0x44c)},_0x139637=Object[_0x36b62a(0x1c4)]({'POKE':_0x36b62a(0x393),'DRAIN':_0x36b62a(0x5cd),'TYPE_DROP':'bus:type_drop','PROC':_0x36b62a(0x5de),'ENV_RELEASE':_0x36b62a(0x308)});return okdbEnums={'BUS_EVENTS':_0x139637,'CHANGE_ACTIONS':_0x443f87,'EVENTS':_0xaf58ab,'INDEX_STATE':_0x4aa940,'OKDB_STATE':_0x9bc5f6,'VIEW_STATE':_0x248f29},okdbEnums;}var okdbGuardedRange,hasRequiredOkdbGuardedRange;function requireOkdbGuardedRange(){const _0x42ec9b=_0x2d5353;if(hasRequiredOkdbGuardedRange)return okdbGuardedRange;hasRequiredOkdbGuardedRange=0x1;const _0x5c5e00={'SKIP':Symbol['for'](_0x42ec9b(0x48f))},{OKDBError:_0x4c861e}=requireOkdbError(),_0x21fcb8={'value':null,'done':!![]};class _0x539dd8{constructor(_0x55be05){const _0x39297e=_0x42ec9b;this[_0x39297e(0x459)]=_0x55be05;}get[_0x42ec9b(0x21f)](){return _0x21fcb8;}[Symbol[_0x42ec9b(0x1f2)]](){const _0x3ca340=_0x42ec9b;return this[_0x3ca340(0x459)]();}[_0x42ec9b(0x4e8)](_0x3860c6){const _0xc1030c=this;return new _0x539dd8(()=>{const _0x43fa7b=_0x36a2,_0xad27b6=_0xc1030c[Symbol['iterator']]();return{'next'(){const _0x52e8d5=_0x36a2;for(;;){const _0x57f151=_0xad27b6['next']();if(_0x57f151[_0x52e8d5(0x5f1)])return{'done':!![],'value':undefined};const _0xa56b68=_0x3860c6(_0x57f151[_0x52e8d5(0x821)]);if(_0xa56b68===_0x5c5e00[_0x52e8d5(0x337)])continue;if(_0xa56b68===_0x21fcb8)return _0xad27b6[_0x52e8d5(0x700)]?.(),{'done':!![],'value':undefined};return{'done':![],'value':_0xa56b68};}},'return'(){const _0x3c6901=_0x36a2;return _0xad27b6[_0x3c6901(0x700)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x43fa7b(0x1f2)]](){return this;}};});}['filter'](_0xb2205d){return this['map'](_0x2e8400=>_0xb2205d(_0x2e8400)?_0x2e8400:_0x5c5e00['SKIP']);}[_0x42ec9b(0x524)](_0x24c0d7){for(const _0x19048d of this)_0x24c0d7(_0x19048d);}['slice'](_0x494bba=0x0,_0x433324=Infinity){const _0x3132e8=this;return new _0x539dd8(()=>{const _0x30f4b1=_0x36a2,_0xed47a=_0x3132e8[Symbol['iterator']]();let _0x1800f7=0x0;return{'next'(){const _0x5eb2c3=_0x36a2;for(;;){const _0x113a0f=_0xed47a[_0x5eb2c3(0x730)]();if(_0x113a0f[_0x5eb2c3(0x5f1)])return{'done':!![],'value':undefined};const _0x43510b=_0x1800f7++;if(_0x43510b<_0x494bba)continue;if(_0x43510b>=_0x433324)return _0xed47a['return']?.(),{'done':!![],'value':undefined};return _0x113a0f;}},'return'(){const _0x187c8a=_0x36a2;return _0xed47a[_0x187c8a(0x700)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x30f4b1(0x1f2)]](){return this;}};});}['at'](_0x430771){let _0x18c6d6=0x0;for(const _0x103d9e of this)if(_0x18c6d6++===_0x430771)return _0x103d9e;return undefined;}[_0x42ec9b(0x661)](_0x5c649f){const _0x33dd41=this;return new _0x539dd8(()=>{const _0x46213c=_0x36a2,_0x394ac8=_0x33dd41[Symbol[_0x46213c(0x1f2)]]();let _0x1d6033=[];return{'next'(){const _0x425462=_0x46213c;for(;;){if(_0x1d6033[_0x425462(0x192)])return{'done':![],'value':_0x1d6033[_0x425462(0x356)]()};const _0x6a4f54=_0x394ac8[_0x425462(0x730)]();if(_0x6a4f54[_0x425462(0x5f1)])return{'done':!![],'value':undefined};const _0x54a8a3=_0x5c649f(_0x6a4f54[_0x425462(0x821)]);if(Array[_0x425462(0x7e3)](_0x54a8a3))_0x1d6033=_0x1d6033[_0x425462(0x557)](_0x54a8a3);else{if(_0x54a8a3!=null&&(_0x54a8a3 instanceof _0x539dd8||typeof _0x54a8a3[Symbol[_0x425462(0x1f2)]]===_0x425462(0x3b3)&&_0x425462(0x6ca)in _0x54a8a3))_0x1d6033=_0x1d6033['concat'](Array[_0x425462(0x3ed)](_0x54a8a3));else{if(_0x54a8a3!==_0x5c5e00[_0x425462(0x337)])return{'done':![],'value':_0x54a8a3};}}}},'return'(){return _0x394ac8['return']?.(),{'done':!![],'value':undefined};},[Symbol[_0x46213c(0x1f2)]](){return this;}};});}[_0x42ec9b(0x557)](_0x770869){const _0x54d301=this;return new _0x539dd8(()=>{let _0x33439b=_0x54d301[Symbol['iterator']](),_0x24d768=![];return{'next'(){const _0x23d49c=_0x36a2;for(;;){const _0x20f201=_0x33439b[_0x23d49c(0x730)]();if(!_0x20f201[_0x23d49c(0x5f1)])return _0x20f201;if(_0x24d768)return{'done':!![],'value':undefined};_0x24d768=!![],_0x33439b=_0x770869[Symbol[_0x23d49c(0x1f2)]]();}},'return'(){return _0x33439b['return']?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}[_0x42ec9b(0x65d)](_0x58f0b6){const _0x29fd55=this;return new _0x539dd8(()=>{const _0x3ec7f3=_0x36a2,_0x3b3c34=_0x29fd55[Symbol['iterator']]();return{'next'(){const _0x555486=_0x36a2;for(;;){try{return _0x3b3c34[_0x555486(0x730)]();}catch(_0x248c45){const _0x336538=_0x58f0b6(_0x248c45);if(_0x336538===_0x5c5e00[_0x555486(0x337)]||_0x336538===undefined)continue;return{'done':![],'value':_0x336538};}}},'return'(){const _0x32b280=_0x36a2;return _0x3b3c34[_0x32b280(0x700)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x3ec7f3(0x1f2)]](){return this;}};});}[_0x42ec9b(0x2d3)](){const _0x3670c1=_0x42ec9b;return Array[_0x3670c1(0x3ed)](this);}get[_0x42ec9b(0x6ca)](){const _0x123156=_0x42ec9b;return Array[_0x123156(0x3ed)](this);}}const _0x4a0d37={'total':0x0,'byLabel':{},'last':null};function _0x465f82(_0x5eeedb){const _0x3c0336=_0x42ec9b;_0x4a0d37[_0x3c0336(0x4ea)]++;if(_0x5eeedb)_0x4a0d37['byLabel'][_0x5eeedb]=(_0x4a0d37['byLabel'][_0x5eeedb]??0x0)+0x1;_0x4a0d37[_0x3c0336(0x582)]={'label':_0x5eeedb??null,'at':Date['now']()};}function _0x494b4a(){const _0xc5fc78=_0x42ec9b;return{'total':_0x4a0d37[_0xc5fc78(0x4ea)],'byLabel':{..._0x4a0d37[_0xc5fc78(0x422)]},'last':_0x4a0d37['last']};}function _0x810f43(_0x2b333d,_0x1c4c6e={}){const {getTxnId:_0x373e66,resume:_0x332f07,label:_0x143ed7,baseline:_0x3fc309}=_0x1c4c6e;return new _0x539dd8(()=>{let _0x2f6860=null,_0x3fca7d=![],_0x3f7852=![],_0x51b39e=![],_0x7885ce,_0xffe040=0x0,_0x2dec76;return{'next'(){const _0x57d1bb=_0x36a2;if(_0x51b39e)return{'done':!![],'value':undefined};if(_0x3f7852){let _0x39d5e4=![];if(_0x332f07&&_0x373e66)try{_0x39d5e4=_0x373e66()===_0x2dec76;}catch{}if(!_0x39d5e4){_0x51b39e=!![],_0x465f82(_0x143ed7);throw new _0x4c861e(_0x332f07?'pinned\x20range\x20iterator\x20parked\x20across\x20an\x20await/turn\x20boundary\x20and\x20the\x20env\x20was\x20written\x20'+_0x57d1bb(0x604)+_0x57d1bb(0x58e):_0x57d1bb(0x323)+_0x57d1bb(0x32f)+_0x57d1bb(0x62a),_0x57d1bb(0x77e));}_0x2f6860=_0x332f07(_0x7885ce,_0xffe040)[Symbol[_0x57d1bb(0x1f2)]](),_0x3f7852=![];}if(!_0x2f6860){if(_0x3fc309!==undefined)_0x2dec76=_0x3fc309;else try{_0x2dec76=_0x373e66?_0x373e66():undefined;}catch{_0x2dec76=undefined;}try{_0x2f6860=_0x2b333d()[Symbol[_0x57d1bb(0x1f2)]]();}catch(_0x178b25){_0x51b39e=!![];throw _0x178b25;}}!_0x3fca7d&&(_0x3fca7d=!![],queueMicrotask(()=>{_0x3fca7d=![];if(_0x51b39e||_0x3f7852)return;try{_0x2f6860?.['return']?.();}catch{}_0x2f6860=null,_0x3f7852=!![];}));const _0x296c7b=_0x2f6860[_0x57d1bb(0x730)]();if(_0x296c7b[_0x57d1bb(0x5f1)])return _0x51b39e=!![],{'done':!![],'value':undefined};return _0x7885ce=_0x296c7b[_0x57d1bb(0x821)],_0xffe040++,_0x296c7b;},'return'(){_0x51b39e=!![];try{_0x2f6860?.['return']?.();}catch{}return{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}return okdbGuardedRange={'guardSnapshotIterable':_0x810f43,'OKDBGuardedRange':_0x539dd8,'recordGuardTrip':_0x465f82,'getGuardTripStats':_0x494b4a},okdbGuardedRange;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0x79a08=_0x2d5353;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x1b24bf,performance:_0x20b9d4}=require$$0$1,_0x5c0d34=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG==='true',_0x3e520c=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x4eb0d8=process.env.OKDB_LOOP_LAG_ALL==='1',_0x5d2ff0=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0x1a8fae{constructor(){const _0x5c5d8f=_0x36a2;this['enabled']=_0x5c0d34,this[_0x5c5d8f(0x1bd)]=new Map(),this['_h']=null,this['_timer']=null,this['_started']=![],this[_0x5c5d8f(0x1ac)]=(_0x30f1cc,_0xa13061)=>process['stderr'][_0x5c5d8f(0x46e)](_0x30f1cc+(_0xa13061?'\x20'+JSON['stringify'](_0xa13061):'')+'\x0a');}[_0x79a08(0x76a)](){return _0x20b9d4['now']();}['setLogger'](_0x1ab4ff){const _0x2a4d2d=_0x79a08;if(typeof _0x1ab4ff==='function')this[_0x2a4d2d(0x1ac)]=_0x1ab4ff;}[_0x79a08(0x80b)](_0x59852d,_0x36fba7,_0x5a4976){const _0x3e80c0=_0x79a08;if(!this[_0x3e80c0(0x6f9)])return;let _0x107d52=this[_0x3e80c0(0x1bd)][_0x3e80c0(0x6ce)](_0x59852d);!_0x107d52&&(_0x107d52={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this[_0x3e80c0(0x1bd)]['set'](_0x59852d,_0x107d52)),_0x107d52['ms']+=_0x36fba7,_0x107d52[_0x3e80c0(0x21b)]+=0x1,_0x36fba7>_0x107d52['maxMs']&&(_0x107d52['maxMs']=_0x36fba7,_0x107d52[_0x3e80c0(0x381)]=_0x5a4976||'');}[_0x79a08(0x4df)](_0x28ec47){const _0x2c0a6b=_0x79a08;if(!this[_0x2c0a6b(0x6f9)]||this[_0x2c0a6b(0x508)])return;this[_0x2c0a6b(0x508)]=!![];if(_0x28ec47)this[_0x2c0a6b(0x1ac)]=_0x28ec47;this['_h']=_0x1b24bf({'resolution':0xa}),this['_h'][_0x2c0a6b(0x671)](),this[_0x2c0a6b(0x7f8)]=setInterval(()=>this['_report'](),_0x3e520c);if(this[_0x2c0a6b(0x7f8)][_0x2c0a6b(0x46f)])this[_0x2c0a6b(0x7f8)]['unref']();}['onWindow'](_0x3b58b6){const _0x5d330e=_0x79a08;if(!this['_windowCbs'])this[_0x5d330e(0x166)]=new Set();this[_0x5d330e(0x166)][_0x5d330e(0x725)](_0x3b58b6);if(!this[_0x5d330e(0x508)])this['_startAdmission']();}['offWindow'](_0x3d5f2b){const _0x94480a=_0x79a08;this[_0x94480a(0x166)]?.['delete'](_0x3d5f2b);}['_startAdmission'](){const _0x44deec=_0x79a08;if(this[_0x44deec(0x25a)])return;this['_admissionStarted']=!![];!this['_h']&&(this['_h']=_0x1b24bf({'resolution':0xa}),this['_h'][_0x44deec(0x671)]());const _0x235110=_0x3e520c;this[_0x44deec(0x4a9)]=setInterval(()=>{const _0x5673a6=_0x44deec,_0x32e239=this['_h'];if(!_0x32e239)return;const _0x4a4362=_0x32e239['percentile'](0x63)/0xf4240,_0xb7fd28=_0x32e239[_0x5673a6(0x81c)]/0xf4240,_0x3a80bc=_0x32e239[_0x5673a6(0x727)]/0xf4240;_0x32e239[_0x5673a6(0x5be)]();if(this[_0x5673a6(0x166)])for(const _0x3943f7 of this[_0x5673a6(0x166)]){try{_0x3943f7({'p99Ms':_0x4a4362,'maxMs':_0xb7fd28,'meanMs':_0x3a80bc,'reportMs':_0x235110});}catch{}}},_0x235110);if(this[_0x44deec(0x4a9)]['unref'])this[_0x44deec(0x4a9)]['unref']();}['_report'](){const _0x224d8e=_0x79a08,_0x3acbf7=this['_h'],_0x4d016e=_0x3acbf7['max']/0xf4240,_0x799d14=_0x3acbf7[_0x224d8e(0x2a5)](0x63)/0xf4240,_0x1129f4=_0x3acbf7[_0x224d8e(0x727)]/0xf4240;_0x3acbf7['reset']();const _0x3243c0=[...this[_0x224d8e(0x1bd)]['entries']()][_0x224d8e(0x4e8)](([_0x885751,_0x18be66])=>({'label':_0x885751,..._0x18be66}))[_0x224d8e(0x861)]((_0x268ca,_0x22af6a)=>_0x22af6a['ms']-_0x268ca['ms'])['slice'](0x0,0x8);this[_0x224d8e(0x1bd)][_0x224d8e(0x530)]();const _0x4dcf44=_0x3243c0[_0x224d8e(0x268)]((_0x3bc354,_0x46b6db)=>_0x3bc354+_0x46b6db['ms'],0x0),_0x3cea0a=_0x3243c0[_0x224d8e(0x4e8)](_0x4a4e09=>_0x4a4e09[_0x224d8e(0x50e)]+'='+_0x4a4e09['ms']['toFixed'](0x0)+_0x224d8e(0x7cb)+_0x4a4e09[_0x224d8e(0x21b)]+(_0x4a4e09['maxMs']>0x5?'(worst\x20'+_0x4a4e09[_0x224d8e(0x77a)][_0x224d8e(0x5ae)](0x0)+'ms'+(_0x4a4e09[_0x224d8e(0x381)]?'\x20'+_0x4a4e09['maxExtra']:'')+')':''));(_0x4eb0d8||_0x4d016e>=_0x5d2ff0)&&this['_log'](_0x224d8e(0x703)+_0x3e520c+'ms\x20max='+_0x4d016e[_0x224d8e(0x5ae)](0x0)+'ms\x20p99='+_0x799d14[_0x224d8e(0x5ae)](0x0)+_0x224d8e(0x56d)+_0x1129f4[_0x224d8e(0x5ae)](0x0)+_0x224d8e(0x5f4)+_0x4dcf44[_0x224d8e(0x5ae)](0x0)+'ms'+(_0x3cea0a[_0x224d8e(0x192)]?_0x224d8e(0x2e0)+_0x3cea0a[_0x224d8e(0x3ee)]('\x20\x20'):''),{'feature':_0x224d8e(0x20c)});if(this[_0x224d8e(0x166)])for(const _0x34d75b of this[_0x224d8e(0x166)]){try{_0x34d75b({'p99Ms':_0x799d14,'maxMs':_0x4d016e,'meanMs':_0x1129f4,'reportMs':_0x3e520c});}catch{}}}['stop'](){const _0x2b87ee=_0x79a08;if(this[_0x2b87ee(0x7f8)])clearInterval(this['_timer']);if(this['_h'])this['_h'][_0x2b87ee(0x878)]();this[_0x2b87ee(0x7f8)]=null,this['_h']=null,this['_started']=![];}}const _0x8fdc4a=new _0x1a8fae();if(_0x8fdc4a['enabled'])_0x8fdc4a[_0x79a08(0x4df)]();return okdbLoopMonitor={'LOOP':_0x8fdc4a},okdbLoopMonitor;}var okdbTransaction,hasRequiredOkdbTransaction;function requireOkdbTransaction(){const _0x3318fb=_0x2d5353;if(hasRequiredOkdbTransaction)return okdbTransaction;hasRequiredOkdbTransaction=0x1;const _0xdc58a3={'v4':()=>require$$0$2[_0x3318fb(0x846)]()},{EVENTS:_0x408654}=requireOkdbEnums(),{OKDBError:_0x783ec9}=requireOkdbError(),{recordGuardTrip:_0x100442,guardSnapshotIterable:_0x37c2a9}=requireOkdbGuardedRange(),{LOOP:_0x3d55a4}=requireOkdbLoopMonitor();function _0x485164(_0x1bf91a){const _0x4f6f26=_0x3318fb;return _0x1bf91a[_0x4f6f26(0x4e8)](_0x411346=>{const _0x5e39a7=_0x4f6f26,[_0x329d38,_0x66d4cd]=_0x411346['args']||[];return{'action':_0x411346[_0x5e39a7(0x608)],'type':_0x329d38,'key':_0x66d4cd};});}class _0x344b33{[_0x3318fb(0x4f7)];[_0x3318fb(0x533)]=[];[_0x3318fb(0x2e8)]=[];[_0x3318fb(0x465)]=[];constructor(_0x2d7835,_0x33d4fe={'useReadTransaction':![]}){const _0x3bc0e6=_0x3318fb;this['okdb']=_0x2d7835,this[_0x3bc0e6(0x4c0)]=_0x33d4fe,this['id']=_0xdc58a3['v4']();if(this['options'][_0x3bc0e6(0x157)])try{this[_0x3bc0e6(0x222)]=this['okdb']['db'][_0x3bc0e6(0x20d)]()['lastTxnId'];}catch{this[_0x3bc0e6(0x222)]=undefined;}this[_0x3bc0e6(0x5d0)]=this['options'][_0x3bc0e6(0x157)]?this[_0x3bc0e6(0x4f7)]['db']['useReadTransaction']():null,this[_0x3bc0e6(0x788)]=![],this['_readViewExpired']=![],this['readTransaction']&&queueMicrotask(()=>{const _0x122787=_0x3bc0e6;this[_0x122787(0x5d0)]&&(this[_0x122787(0x4d0)](),this[_0x122787(0x4be)]=!![]);});}[_0x3318fb(0x12b)](_0x863527){this['_doHooks']['push'](_0x863527);}[_0x3318fb(0x179)](_0x15acbd){const _0x109c69=_0x3318fb;this[_0x109c69(0x465)]['push'](_0x15acbd);}[_0x3318fb(0x4d0)](){const _0x579c6e=_0x3318fb;if(!this[_0x579c6e(0x5d0)])return;try{this[_0x579c6e(0x5d0)][_0x579c6e(0x5f1)]();}catch(_0x538217){}this[_0x579c6e(0x5d0)]=null;}[_0x3318fb(0x23b)](){const _0x1a6d35=_0x3318fb;if(this[_0x1a6d35(0x788)])throw new _0x783ec9(_0x1a6d35(0x54d),_0x1a6d35(0x3dc));if(this[_0x1a6d35(0x4be)]){let _0x167430=![];if(this[_0x1a6d35(0x4c0)][_0x1a6d35(0x157)]===_0x1a6d35(0x7c2)&&this['_txnIdAtSnapshot']!==undefined)try{_0x167430=this['okdb']['db']['getStats']()['lastTxnId']===this[_0x1a6d35(0x222)];}catch{}if(!_0x167430){_0x100442((this[_0x1a6d35(0x4f7)]?.['name']??'?')+_0x1a6d35(0x3fc));throw new _0x783ec9('useReadTransaction\x20read\x20view\x20expired:\x20the\x20snapshot\x20was\x20released\x20at\x20the\x20first\x20await/turn\x20'+_0x1a6d35(0x6c8)+_0x1a6d35(0x603)+_0x1a6d35(0x5d2),'READER_HELD_ACROSS_AWAIT');}}}[_0x3318fb(0x6ce)](_0x571258,_0x18af26){const _0x32dc9e=_0x3318fb;return this[_0x32dc9e(0x23b)](),this['okdb']['get'](_0x571258,_0x18af26,{'transaction':this['readTransaction']});}[_0x3318fb(0x638)](_0x5e9012,_0x1a3d08){const _0x49690c=_0x3318fb;return this['_assertOpen'](),this[_0x49690c(0x4f7)]['getEntry'](_0x5e9012,_0x1a3d08,{'transaction':this[_0x49690c(0x5d0)]});}[_0x3318fb(0x438)](_0x4feb7f,_0x2edb7b){const _0x4c9cec=_0x3318fb;return this[_0x4c9cec(0x23b)](),this[_0x4c9cec(0x4f7)][_0x4c9cec(0x438)](_0x4feb7f,_0x2edb7b,{'transaction':this[_0x4c9cec(0x5d0)]});}[_0x3318fb(0x130)](_0x57335c){const _0x294ffb=_0x3318fb;if(!this['options']['useReadTransaction'])return _0x57335c;if(_0x57335c&&typeof _0x57335c['then']==='function')return _0x57335c;if(Array[_0x294ffb(0x7e3)](_0x57335c))return _0x57335c;const _0x2223ee=this,_0x464f43=_0x2223ee[_0x294ffb(0x4c0)][_0x294ffb(0x157)]===_0x294ffb(0x7c2),_0x648e97=()=>{const _0x43c33c=_0x294ffb;if(!_0x2223ee[_0x43c33c(0x4be)])return![];if(!_0x464f43)return!![];if(_0x2223ee[_0x43c33c(0x222)]===undefined)return!![];try{return _0x2223ee[_0x43c33c(0x4f7)]['db'][_0x43c33c(0x20d)]()['lastTxnId']!==_0x2223ee['_txnIdAtSnapshot'];}catch{return!![];}};return _0x37c2a9(()=>{const _0x355b8c=_0x294ffb;if(_0x2223ee[_0x355b8c(0x788)])throw new _0x783ec9(_0x355b8c(0x54d),_0x355b8c(0x3dc));if(_0x648e97()){_0x100442((_0x2223ee[_0x355b8c(0x4f7)]?.[_0x355b8c(0x425)]??'?')+_0x355b8c(0x1f0));throw new _0x783ec9(_0x355b8c(0x2ef)+_0x355b8c(0x64b)+_0x355b8c(0x6b0),_0x355b8c(0x77e));}return _0x57335c;},{'label':(_0x2223ee[_0x294ffb(0x4f7)]?.[_0x294ffb(0x425)]??'?')+_0x294ffb(0x1f0),..._0x464f43?{'baseline':_0x2223ee[_0x294ffb(0x222)],'getTxnId':()=>_0x2223ee[_0x294ffb(0x4f7)]['db'][_0x294ffb(0x20d)]()[_0x294ffb(0x274)],'resume':(_0x31845b,_0x3030d4)=>_0x57335c['slice'](_0x3030d4)}:{}});}[_0x3318fb(0x35a)](_0x3ff8a0,_0x245b22={}){const _0xbf42db=_0x3318fb;return this[_0xbf42db(0x23b)](),this[_0xbf42db(0x130)](this[_0xbf42db(0x4f7)]['getRange'](_0x3ff8a0,{'transaction':this[_0xbf42db(0x5d0)],..._0x245b22}));}[_0x3318fb(0x38b)](_0x4966bf,_0x100f6a={}){const _0x235cd9=_0x3318fb;return this[_0x235cd9(0x23b)](),this[_0x235cd9(0x130)](this['okdb'][_0x235cd9(0x38b)](_0x4966bf,{'transaction':this[_0x235cd9(0x5d0)],..._0x100f6a}));}[_0x3318fb(0x462)](_0x141c84,_0x4dcfae={}){const _0x2f5e7b=_0x3318fb;return this['_assertOpen'](),this[_0x2f5e7b(0x130)](this['okdb']['getKeys'](_0x141c84,{'transaction':this[_0x2f5e7b(0x5d0)],..._0x4dcfae}));}[_0x3318fb(0x120)](_0x2db76d,_0x2ebdfd,_0x505020={}){const _0x1e46f3=_0x3318fb;return this['_assertOpen'](),this[_0x1e46f3(0x130)](this['okdb']['byIndex'](_0x2db76d,_0x2ebdfd,{'transaction':this['readTransaction'],..._0x505020}));}[_0x3318fb(0x450)](_0x2fce20,_0x46a307,_0x1866ad={}){const _0x1eb1f0=_0x3318fb;return this[_0x1eb1f0(0x23b)](),this[_0x1eb1f0(0x130)](this['okdb'][_0x1eb1f0(0x450)](_0x2fce20,_0x46a307,{'transaction':this['readTransaction'],..._0x1866ad}));}[_0x3318fb(0x863)](_0x4132b1=null){const _0x19f3f9=_0x3318fb;return this[_0x19f3f9(0x23b)](),this[_0x19f3f9(0x4f7)]['getClock'](_0x4132b1,{'transaction':this[_0x19f3f9(0x5d0)]});}[_0x3318fb(0x7d6)](_0x53e07a){const _0x469aad=_0x3318fb;return this[_0x469aad(0x23b)](),this[_0x469aad(0x4f7)][_0x469aad(0x7d6)](_0x53e07a,{'transaction':this[_0x469aad(0x5d0)]});}[_0x3318fb(0x14f)](_0x408044,_0x3cec8d,_0x3721a6,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0x3318fb(0x76a)](),origin:origin=null,ttl:ttl=null}={}){const _0x212d46=_0x3318fb;this[_0x212d46(0x533)][_0x212d46(0x46d)]({'action':'put','args':[_0x408044,_0x3cec8d,_0x3721a6,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x3318fb(0x1a2)](_0x206f35,_0x3ea720,_0x4c5726,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0x3318fb(0x76a)](),origin:origin=null,ttl:ttl=null}={}){const _0x17627f=_0x3318fb;this[_0x17627f(0x533)]['push']({'action':_0x17627f(0x1a2),'args':[_0x206f35,_0x3ea720,_0x4c5726,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}['patch'](_0x405ed1,_0x55463d,_0xf0840c,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0x3318fb(0x76a)](),origin:origin=null,ttl:ttl=null}={}){const _0x58b25f=_0x3318fb;this[_0x58b25f(0x533)][_0x58b25f(0x46d)]({'action':_0x58b25f(0x41f),'args':[_0x405ed1,_0x55463d,_0xf0840c,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x3318fb(0x569)](_0x2fbecb,_0x23f72f,_0x456dd9,{version:version=null,timestamp:timestamp=Date['now'](),origin:origin=null,ttl:ttl=null}={}){const _0x7f3d0d=_0x3318fb;this[_0x7f3d0d(0x533)][_0x7f3d0d(0x46d)]({'action':_0x7f3d0d(0x569),'args':[_0x2fbecb,_0x23f72f,_0x456dd9,{'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x3318fb(0x78e)](_0x4506ab,_0x5c28ce,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0x3318fb(0x76a)](),origin:origin=null}={}){const _0x127c70=_0x3318fb;this[_0x127c70(0x533)]['push']({'action':'remove','args':[_0x4506ab,_0x5c28ce,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin}]});}[_0x3318fb(0x235)](_0x3b8ff1,_0x97c7e0,_0x15bc1d){const _0x36b9b1=_0x3318fb;this[_0x36b9b1(0x533)][_0x36b9b1(0x46d)]({'action':_0x36b9b1(0x235),'args':[_0x3b8ff1,_0x97c7e0,_0x15bc1d]});}['clearTTL'](_0x525826,_0x727c3b){const _0xc30ccf=_0x3318fb;this[_0xc30ccf(0x533)][_0xc30ccf(0x46d)]({'action':'clearTTL','args':[_0x525826,_0x727c3b]});}[_0x3318fb(0x5a0)](){const _0x26fa64=_0x3318fb;if(this[_0x26fa64(0x788)])return;for(const _0x744734 of this[_0x26fa64(0x465)]){try{_0x744734();}catch{}}this[_0x26fa64(0x4f7)]['events'][_0x26fa64(0x839)](_0x408654['TXN_ROLLBACK'],{'id':this['id']}),this[_0x26fa64(0x533)]=[],this[_0x26fa64(0x4d0)](),this[_0x26fa64(0x788)]=!![];}async[_0x3318fb(0x65f)](){const _0x2a0328=_0x3318fb;if(this['_closed'])throw new Error(_0x2a0328(0x54d));const _0x32b691={'id':this['id'],'timestamp':Date[_0x2a0328(0x76a)](),'actions':this['actions']};this[_0x2a0328(0x4f7)][_0x2a0328(0x5d6)][_0x2a0328(0x839)](_0x408654[_0x2a0328(0x256)],_0x32b691);try{const _0xc0a879=_0x3d55a4['enabled']?_0x3d55a4[_0x2a0328(0x76a)]():0x0;await this['okdb'][_0x2a0328(0x208)][_0x2a0328(0x5d5)](()=>{const _0x4177bc=_0x2a0328;for(const _0x25a67e of this[_0x4177bc(0x533)]){const _0x147c69=this['okdb']['_'+_0x25a67e['action']];if(typeof _0x147c69!=='function')throw new Error(_0x4177bc(0x280)+_0x25a67e[_0x4177bc(0x608)]);_0x147c69[_0x4177bc(0x245)](this[_0x4177bc(0x4f7)],this,..._0x25a67e['args']);}}),_0x3d55a4['enabled']&&_0x3d55a4[_0x2a0328(0x80b)](_0x2a0328(0x217),_0x3d55a4[_0x2a0328(0x76a)]()-_0xc0a879,(this[_0x2a0328(0x4f7)][_0x2a0328(0x425)]??'?')+_0x2a0328(0x644)+this[_0x2a0328(0x533)][_0x2a0328(0x192)]);}catch(_0x47daa8){for(const _0x102854 of this[_0x2a0328(0x465)]){try{_0x102854();}catch{}}this[_0x2a0328(0x4d0)](),this[_0x2a0328(0x788)]=!![];if(_0x47daa8 instanceof _0x783ec9)throw _0x47daa8;const _0x5d6549={'cause':_0x47daa8,'env':this[_0x2a0328(0x4f7)]?.[_0x2a0328(0x425)],'envPath':this[_0x2a0328(0x4f7)]?.[_0x2a0328(0x733)],'pid':process[_0x2a0328(0x27b)],'txnId':this['id'],'actionCount':this[_0x2a0328(0x533)]['length'],'actions':_0x485164(this[_0x2a0328(0x533)]),'nativeCode':_0x47daa8?.['code'],'nativeName':_0x47daa8?.['name']};try{this['okdb']?.[_0x2a0328(0x71e)]?.['error']?.('transaction\x20commit\x20failed',{'env':_0x5d6549['env'],'envPath':_0x5d6549['envPath'],'pid':_0x5d6549[_0x2a0328(0x27b)],'txnId':_0x5d6549[_0x2a0328(0x132)],'actionCount':_0x5d6549[_0x2a0328(0x303)],'actions':_0x5d6549[_0x2a0328(0x533)],'nativeCode':_0x5d6549[_0x2a0328(0x743)],'error':_0x47daa8?.[_0x2a0328(0x367)],'stack':_0x47daa8?.[_0x2a0328(0x86d)]});}catch{}throw new _0x783ec9(_0x47daa8?.[_0x2a0328(0x367)]||_0x2a0328(0x464),_0x2a0328(0x56e),_0x5d6549);}this['okdb'][_0x2a0328(0x5d6)]['emit'](_0x408654[_0x2a0328(0x1a9)],_0x32b691);for(const _0x1b418e of this['_doHooks']){try{await _0x1b418e();}catch{}}this[_0x2a0328(0x533)]=[],this[_0x2a0328(0x4d0)](),this[_0x2a0328(0x788)]=!![];}static['createWriteFacade'](_0x3f53e5){const _0x32814e=_0x3318fb;return Object['freeze']({'id':_0x3f53e5['id'],'put':_0x3f53e5[_0x32814e(0x14f)][_0x32814e(0x7b2)](_0x3f53e5),'update':_0x3f53e5['update'][_0x32814e(0x7b2)](_0x3f53e5),'patch':_0x3f53e5[_0x32814e(0x41f)][_0x32814e(0x7b2)](_0x3f53e5),'create':_0x3f53e5[_0x32814e(0x569)]['bind'](_0x3f53e5),'remove':_0x3f53e5[_0x32814e(0x78e)][_0x32814e(0x7b2)](_0x3f53e5),'setTTL':_0x3f53e5['setTTL'][_0x32814e(0x7b2)](_0x3f53e5),'clearTTL':_0x3f53e5['clearTTL'][_0x32814e(0x7b2)](_0x3f53e5),'commit':_0x3f53e5['commit'][_0x32814e(0x7b2)](_0x3f53e5),'rollback':_0x3f53e5[_0x32814e(0x5a0)][_0x32814e(0x7b2)](_0x3f53e5),'get':_0x3f53e5[_0x32814e(0x6ce)][_0x32814e(0x7b2)](_0x3f53e5),'getEntry':_0x3f53e5[_0x32814e(0x638)][_0x32814e(0x7b2)](_0x3f53e5),'getMany':_0x3f53e5[_0x32814e(0x438)][_0x32814e(0x7b2)](_0x3f53e5),'getRange':_0x3f53e5['getRange']['bind'](_0x3f53e5),'getValues':_0x3f53e5[_0x32814e(0x38b)]['bind'](_0x3f53e5),'getKeys':_0x3f53e5['getKeys'][_0x32814e(0x7b2)](_0x3f53e5),'byIndex':_0x3f53e5[_0x32814e(0x120)][_0x32814e(0x7b2)](_0x3f53e5),'query':_0x3f53e5['query']['bind'](_0x3f53e5),'getClock':_0x3f53e5[_0x32814e(0x863)][_0x32814e(0x7b2)](_0x3f53e5),'getCount':_0x3f53e5[_0x32814e(0x7d6)]['bind'](_0x3f53e5),'read':_0x3f53e5,'raw':_0x3f53e5});}static[_0x3318fb(0x251)](_0x463c36,_0x158faf=[]){const _0x9c1bb5=_0x3318fb;if(!Array[_0x9c1bb5(0x7e3)](_0x158faf))throw new _0x783ec9('txn\x20ops\x20must\x20be\x20an\x20array',_0x9c1bb5(0x73b));for(const _0x5773d5 of _0x158faf){if(Array[_0x9c1bb5(0x7e3)](_0x5773d5)){const [_0x9eee2a,..._0x206219]=_0x5773d5;if(typeof _0x463c36[_0x9eee2a]!=='function')throw new _0x783ec9(_0x9c1bb5(0x280)+_0x9eee2a,_0x9c1bb5(0x49c),{'action':_0x9eee2a});_0x463c36[_0x9eee2a](..._0x206219);continue;}if(!_0x5773d5||typeof _0x5773d5!==_0x9c1bb5(0x712))throw new _0x783ec9('txn\x20op\x20must\x20be\x20an\x20object\x20or\x20tuple',_0x9c1bb5(0x328));const {action:_0x3b93d9}=_0x5773d5;if(typeof _0x3b93d9!=='string'||typeof _0x463c36[_0x3b93d9]!=='function')throw new _0x783ec9(_0x9c1bb5(0x280)+_0x3b93d9,_0x9c1bb5(0x49c),{'action':_0x3b93d9});switch(_0x3b93d9){case'put':case _0x9c1bb5(0x1a2):case _0x9c1bb5(0x569):_0x463c36[_0x3b93d9](_0x5773d5[_0x9c1bb5(0x2d0)],_0x5773d5[_0x9c1bb5(0x5c0)],_0x5773d5['value'],{..._0x5773d5['options'],'ttl':_0x5773d5[_0x9c1bb5(0x419)]??_0x5773d5[_0x9c1bb5(0x4c0)]?.[_0x9c1bb5(0x419)]??null});break;case _0x9c1bb5(0x41f):_0x463c36[_0x9c1bb5(0x41f)](_0x5773d5[_0x9c1bb5(0x2d0)],_0x5773d5[_0x9c1bb5(0x5c0)],_0x5773d5['patch'],{..._0x5773d5[_0x9c1bb5(0x4c0)],'ttl':_0x5773d5[_0x9c1bb5(0x419)]??_0x5773d5[_0x9c1bb5(0x4c0)]?.[_0x9c1bb5(0x419)]??null});break;case _0x9c1bb5(0x78e):_0x463c36['remove'](_0x5773d5[_0x9c1bb5(0x2d0)],_0x5773d5[_0x9c1bb5(0x5c0)],_0x5773d5[_0x9c1bb5(0x4c0)]||{});break;case _0x9c1bb5(0x235):_0x463c36[_0x9c1bb5(0x235)](_0x5773d5[_0x9c1bb5(0x2d0)],_0x5773d5[_0x9c1bb5(0x5c0)],_0x5773d5[_0x9c1bb5(0x419)]);break;case _0x9c1bb5(0x449):_0x463c36[_0x9c1bb5(0x449)](_0x5773d5['type'],_0x5773d5['key']);break;default:throw new _0x783ec9(_0x9c1bb5(0x2c8)+_0x3b93d9,_0x9c1bb5(0x49c),{'action':_0x3b93d9});}}}static async[_0x3318fb(0x269)](_0x34e597,_0x4580a6,_0x48876f={}){const _0x4c1b3d=_0x3318fb,_0x54082e=new _0x344b33(_0x34e597,_0x48876f),_0x2e288c=_0x344b33[_0x4c1b3d(0x42c)](_0x54082e);try{typeof _0x4580a6==='function'?await _0x4580a6(_0x2e288c):_0x344b33['applyOps'](_0x54082e,_0x4580a6||[]);const _0xbfa819=_0x54082e[_0x4c1b3d(0x533)]['length'];return await _0x54082e[_0x4c1b3d(0x65f)](),{'id':_0x54082e['id'],'actions':_0xbfa819};}catch(_0x21fe91){try{_0x54082e[_0x4c1b3d(0x5a0)]();}catch(_0x3f303d){}throw _0x21fe91;}}}return okdbTransaction=_0x344b33,okdbTransaction;}var dist={},hasRequiredDist;function requireDist(){const _0x5d62f8=_0x2d5353;if(hasRequiredDist)return dist;hasRequiredDist=0x1,Object[_0x5d62f8(0x2ad)](dist,_0x5d62f8(0x3df),{'value':!![]});const _0x2c10bb=new Float64Array(0x2),_0x1cd289=new Int32Array(_0x2c10bb[_0x5d62f8(0x2c6)],0x0,0x4),{lowIdx:_0x47cf8e,highIdx:_0x20cb3e}=((()=>{const _0x9bb63c=_0x5d62f8;if(new Uint8Array(new Uint32Array([0xffee1100])[_0x9bb63c(0x2c6)])[0x0]===0xff)return{'lowIdx':0x1,'highIdx':0x0};return{'lowIdx':0x0,'highIdx':0x1};})());let _0x36752a=![],_0x3c73db;try{_0x3c73db=new TextEncoder();}catch(_0x43ecc0){}function _0x5df842(_0xb9634c,_0x3923a4,position,_0x2837a2){const _0x1562f7=_0x5d62f8;let _0x5f4ac9=_0x3923a4[_0x1562f7(0x6cd)];if(!_0x5f4ac9)_0x5f4ac9=_0x3923a4[_0x1562f7(0x6cd)]=new DataView(_0x3923a4['buffer'],_0x3923a4[_0x1562f7(0x824)],_0x3923a4['byteLength']+0x3>>0x2<<0x2);switch(typeof _0xb9634c){case _0x1562f7(0x84a):let _0x4fa98f=_0xb9634c[_0x1562f7(0x192)],_0x12be65=_0xb9634c['charCodeAt'](0x0);if(!(_0x12be65>=0x1c))_0x3923a4[position++]=0x1b;if(_0x4fa98f<0x40){let _0x11c2ad,_0x239e77;for(_0x11c2ad=0x0;_0x11c2ad<_0x4fa98f;_0x11c2ad++){_0x12be65=_0xb9634c[_0x1562f7(0x73f)](_0x11c2ad);if(_0x12be65<=0x4)_0x3923a4[position++]=0x4,_0x3923a4[position++]=_0x12be65;else{if(_0x12be65<0x80)_0x3923a4[position++]=_0x12be65;else{if(_0x12be65<0x800)_0x3923a4[position++]=_0x12be65>>0x6|0xc0,_0x3923a4[position++]=_0x12be65&0x3f|0x80;else(_0x12be65&0xfc00)===0xd800&&((_0x239e77=_0xb9634c[_0x1562f7(0x73f)](_0x11c2ad+0x1))&0xfc00)===0xdc00?(_0x12be65=0x10000+((_0x12be65&0x3ff)<<0xa)+(_0x239e77&0x3ff),_0x11c2ad++,_0x3923a4[position++]=_0x12be65>>0x12|0xf0,_0x3923a4[position++]=_0x12be65>>0xc&0x3f|0x80,_0x3923a4[position++]=_0x12be65>>0x6&0x3f|0x80,_0x3923a4[position++]=_0x12be65&0x3f|0x80):(_0x3923a4[position++]=_0x12be65>>0xc|0xe0,_0x3923a4[position++]=_0x12be65>>0x6&0x3f|0x80,_0x3923a4[position++]=_0x12be65&0x3f|0x80);}}}}else{if(_0x3923a4[_0x1562f7(0x28a)])position+=_0x3923a4['utf8Write'](_0xb9634c,position,_0x3923a4['byteLength']-position);else position+=_0x3c73db[_0x1562f7(0x404)](_0xb9634c,_0x3923a4[_0x1562f7(0x5ad)](position))[_0x1562f7(0x3a1)];if(position>_0x3923a4['length']-0x4)throw new RangeError(_0x1562f7(0x3ba));}break;case _0x1562f7(0x859):_0x2c10bb[0x0]=_0xb9634c;let _0x66d732=_0x1cd289[_0x47cf8e],_0x5f0c28=_0x1cd289[_0x20cb3e],_0x4ae71f;if(_0xb9634c<0x0)return _0x5f4ac9[_0x1562f7(0x32b)](position+0x4,~(_0x66d732>>>0x4|_0x5f0c28<<0x1c)),_0x5f4ac9[_0x1562f7(0x32b)](position+0x0,(_0x5f0c28^0x7fffffff)>>>0x4),_0x5f4ac9[_0x1562f7(0x32b)](position+0x8,(_0x66d732&0xf^0xf)<<0x4,!![]),position+0x9;else{if(_0x66d732&0xf||_0x2837a2)_0x4ae71f=0x9;else{if(_0x66d732&0xfffff)_0x4ae71f=0x8;else{if(_0x66d732||_0x5f0c28&0xf)_0x4ae71f=0x6;else _0x4ae71f=0x4;}}}_0x5f4ac9[_0x1562f7(0x32b)](position+0x0,_0x5f0c28>>>0x4|0x10000000),_0x5f4ac9[_0x1562f7(0x32b)](position+0x4,_0x66d732>>>0x4|_0x5f0c28<<0x1c),_0x5f4ac9['setInt32'](position+0x8,(_0x66d732&0xf)<<0x4,!![]);return position+_0x4ae71f;case'object':if(_0xb9634c){if(Array[_0x1562f7(0x7e3)](_0xb9634c)){for(let _0x2a55be=0x0,_0x2f7b61=_0xb9634c[_0x1562f7(0x192)];_0x2a55be<_0x2f7b61;_0x2a55be++){if(_0x2a55be>0x0)_0x3923a4[position++]=0x0;position=_0x5df842(_0xb9634c[_0x2a55be],_0x3923a4,position,!![]);}break;}else{if(_0xb9634c instanceof Uint8Array){_0x3923a4[_0x1562f7(0x7a0)](_0xb9634c,position),position+=_0xb9634c[_0x1562f7(0x192)];break;}else throw new Error('Unable\x20to\x20serialize\x20object\x20as\x20a\x20key:\x20'+JSON[_0x1562f7(0x84b)](_0xb9634c));}}else _0x3923a4[position++]=0x0;break;case _0x1562f7(0x2ff):_0x5f4ac9[_0x1562f7(0x62e)](position++,_0xb9634c?0x7:0x6,!![]);return position;case _0x1562f7(0x538):let _0x3ad134=Number(_0xb9634c);if(BigInt(_0x3ad134)>_0xb9634c){_0x2c10bb[0x0]=_0x3ad134;if(_0x3ad134>0x0){if(_0x1cd289[_0x47cf8e])_0x1cd289[_0x47cf8e]--;else _0x1cd289[_0x20cb3e]--,_0x1cd289[_0x47cf8e]=0xffffffff;}else{if(_0x1cd289[_0x47cf8e]<0xffffffff)_0x1cd289[_0x47cf8e]++;else _0x1cd289[_0x20cb3e]++,_0x1cd289[_0x47cf8e]=0x0;}_0x3ad134=_0x2c10bb[0x0];}let _0x3450b7=_0xb9634c-BigInt(_0x3ad134);if(_0x3450b7===0x0n)return _0x5df842(_0x3ad134,_0x3923a4,position,_0x2837a2);_0x5df842(_0x3ad134,_0x3923a4,position,_0x2837a2),position+=0x9;let _0x1da745=BigInt((_0x1cd289[_0x20cb3e]>>0x14&0x7ff)-0x437),_0x56b222=_0x3450b7>>_0x1da745;_0x3923a4[position-0x1]|=Number(_0x56b222),_0x3450b7-=_0x56b222<<_0x1da745;let _0x49e409=!![];while(_0x3450b7||_0x49e409){_0x49e409=![],_0x1da745-=0x7n;let _0x2e4c51=_0x3450b7>>_0x1da745;_0x3923a4[position++]=Number(_0x2e4c51)|0x80,_0x3450b7-=_0x2e4c51<<_0x1da745;}return position;case _0x1562f7(0x364):return position;case _0x1562f7(0x721):_0x3923a4[position++]=0x2;return _0x5df842(_0xb9634c[_0x1562f7(0x18c)],_0x3923a4,position,_0x2837a2);default:throw new Error(_0x1562f7(0x766)+typeof _0xb9634c);}if(_0x36752a&&!_0x2837a2)_0x5f4ac9['setUint32'](position,0x0);return position;}let position;function _0x56feb0(_0x2a038d,_0x232527,_0x4b0ac1,_0x5a7161){const _0xa57eda=_0x5d62f8;position=_0x232527;let _0x38fa78=_0x2a038d[position],_0x3e0eba;if(_0x38fa78<0x18){if(_0x38fa78<0x8){position++;if(_0x38fa78==0x6)_0x3e0eba=![];else{if(_0x38fa78==0x7)_0x3e0eba=!![];else{if(_0x38fa78==0x0)_0x3e0eba=null;else{if(_0x38fa78==0x2)_0x3e0eba=Symbol['for'](_0x4fe17c(_0x2a038d,_0x4b0ac1));else return Uint8Array[_0xa57eda(0x771)]['slice'][_0xa57eda(0x245)](_0x2a038d,_0x232527,_0x4b0ac1);}}}}else{let _0x1dcfd4;try{_0x1dcfd4=_0x2a038d[_0xa57eda(0x6cd)]||(_0x2a038d[_0xa57eda(0x6cd)]=new DataView(_0x2a038d['buffer'],_0x2a038d[_0xa57eda(0x824)],_0x2a038d[_0xa57eda(0x227)]+0x3>>0x2<<0x2));}catch(_0x48a061){_0x1dcfd4=_0x2a038d[_0xa57eda(0x6cd)]||(_0x2a038d[_0xa57eda(0x6cd)]=new DataView(_0x2a038d['buffer'],_0x2a038d[_0xa57eda(0x824)],_0x2a038d[_0xa57eda(0x2c6)][_0xa57eda(0x227)]-_0x2a038d[_0xa57eda(0x824)]));}let _0x5e7a11=_0x1dcfd4[_0xa57eda(0x204)](position)<<0x4,_0x56c8b5=_0x4b0ac1-position,_0x552c8f;if(_0x56c8b5>0x4)_0x552c8f=position+0x8<=_0x2a038d[_0xa57eda(0x192)]?_0x1dcfd4['getInt32'](position+0x4):_0x2a038d[position+0x4]<<0x18|_0x2a038d[position+0x5]<<0x10|_0x2a038d[position+0x6]<<0x8|_0x2a038d[position+0x7],_0x5e7a11|=_0x552c8f>>>0x1c,_0x56c8b5<=0x6&&(_0x552c8f&=-0x10000),_0x552c8f=_0x552c8f<<0x4,_0x56c8b5>0x8&&(_0x552c8f=_0x552c8f|_0x2a038d[position+0x8]>>0x4);else _0x552c8f=0x0;_0x38fa78<0x10&&(_0x5e7a11=_0x5e7a11^0x7fffffff,_0x552c8f=~_0x552c8f);_0x1cd289[_0x20cb3e]=_0x5e7a11,_0x1cd289[_0x47cf8e]=_0x552c8f,_0x3e0eba=_0x2c10bb[0x0],position+=0x9;if(_0x56c8b5>0x9&&_0x2a038d[position]>0x0){_0x3e0eba=BigInt(_0x3e0eba);let _0x36995e=_0x5e7a11>>0x14&0x7ff,_0x68601d=_0x2a038d[position-0x1]&0xf;_0x3e0eba+=BigInt(_0x68601d)<<BigInt(_0x36995e-0x437);while((_0x68601d=_0x2a038d[position])>0x0&&position++<_0x4b0ac1){_0x3e0eba+=BigInt(_0x68601d&0x7f)<<BigInt((_0x232527-position)*0x7+_0x36995e-0x3f8);}}}}else{_0x38fa78==0x1b&&position++;_0x3e0eba=_0x4fe17c(_0x2a038d,_0x4b0ac1);if(position<_0x4b0ac1)position--;}while(position<_0x4b0ac1){if(_0x2a038d[position]===0x0)position++;if(_0x5a7161)return _0x3865b0[_0xa57eda(0x6e5)]=position,_0x3e0eba;let _0x2e8308=_0x56feb0(_0x2a038d,position,_0x4b0ac1,!![]);if(_0x3e0eba instanceof Array)_0x3e0eba[_0xa57eda(0x46d)](_0x2e8308);else _0x3e0eba=[_0x3e0eba,_0x2e8308];}return _0x3e0eba;}const _0x28944d=()=>_0x36752a=!![],_0x3865b0={'writeKey':_0x5df842,'readKey':_0x56feb0,'enableNullTermination':_0x28944d};let _0x39d662=[],_0x3e6daf=0x0;const _0x477cac=typeof Buffer!==_0x5d62f8(0x364),_0xa2dfee=_0x477cac?Buffer[_0x5d62f8(0x623)]:Uint8Array,_0x2c807b=_0x5eecc0=>{const _0x45983a=_0x5d62f8;let _0x352a05;_0x3e6daf+0x64>_0x39d662[_0x45983a(0x192)]&&(_0x39d662=new _0xa2dfee(0x2000),_0x3e6daf=0x0,_0x352a05=!![]);try{let _0x2b0b7d=_0x39d662['slice'](_0x3e6daf,_0x3e6daf=_0x5df842(_0x5eecc0,_0x39d662,_0x3e6daf));if(_0x3e6daf>_0x39d662[_0x45983a(0x192)]){if(_0x352a05)throw new Error(_0x45983a(0x273));return _0x2c807b(_0x5eecc0);}return _0x2b0b7d;}catch(_0x29908a){if(_0x352a05)throw _0x29908a;return _0x3e6daf=_0x39d662[_0x45983a(0x192)],_0x2c807b(_0x5eecc0);}},_0x933876=_0x3aee0a=>{const _0x39ef8e=_0x5d62f8;return _0x56feb0(_0x3aee0a,0x0,_0x3aee0a[_0x39ef8e(0x192)]);},fromCharCode=String[_0x5d62f8(0x612)];function _0x44f8ed(){const _0x44e4b2=_0x5d62f8;let _0x31819c=_0x44e4b2(0x46c),_0x2942f8=[];for(let _0x5639ee=0x0;_0x5639ee<0x30;_0x5639ee++){let _0x5cc890=fromCharCode((_0x5639ee&0xf)+0x61)+fromCharCode((_0x5639ee>>0x4)+0x61);_0x31819c+=_0x44e4b2(0x19f)+_0x5cc890+'\x20=\x20source[position++]\x0a\x09\x09if\x20('+_0x5cc890+_0x44e4b2(0x59f)+_0x5cc890+_0x44e4b2(0x26d)+_0x5cc890+_0x44e4b2(0x489)+_0x5cc890+_0x44e4b2(0x7a1)+_0x5cc890+_0x44e4b2(0x2ed)+_0x5cc890+_0x44e4b2(0x791)+_0x2942f8+')\x0a\x09\x09}\x0a\x09\x09',_0x2942f8[_0x44e4b2(0x46d)](_0x5cc890);}return _0x31819c+=_0x44e4b2(0x620)+_0x2942f8+')\x20+\x20readString(source)}',_0x31819c;}const readString=typeof process!==_0x5d62f8(0x364)&&process['isBun']?function(_0x4415f9){let {setPosition:_0x3e1156,getPosition:_0x6f6bd9,readString:readString}=_0x4415f9;return _0x46fd7d=>{_0x3e1156(position);let _0x5d1028=readString(_0x46fd7d);return position=_0x6f6bd9(),_0x5d1028;};}(new Function('fromCharCode',_0x5d62f8(0x212)+_0x44f8ed()+';return\x20{'+_0x5d62f8(0x3d9)+_0x5d62f8(0x45d)+_0x5d62f8(0x601))(fromCharCode)):eval(_0x44f8ed());function _0x4fe17c(_0x49c4a7,_0xeb7790){if(_0x49c4a7[_0xeb7790]>0x0){let _0x40e7a0=_0x49c4a7[_0xeb7790];try{return _0x49c4a7[_0xeb7790]=0x0,readString(_0x49c4a7);}finally{_0x49c4a7[_0xeb7790]=_0x40e7a0;}}else return readString(_0x49c4a7);}function _0x43c1b2(_0x33d6af,_0x3d9359){const _0x3f8754=_0x5d62f8;if(typeof _0x33d6af==_0x3f8754(0x712)){if(!_0x33d6af)return _0x3d9359==null?0x0:-0x1;if(_0x33d6af[_0x3f8754(0x546)]){if(_0x3d9359==null)return 0x1;else return _0x3d9359[_0x3f8754(0x546)]?_0x33d6af[_0x3f8754(0x546)](_0x3d9359):-0x1;}let _0x1c53e6;if(_0x3d9359 instanceof Array){let _0x3b50eb=0x0;while((_0x1c53e6=_0x43c1b2(_0x33d6af[_0x3b50eb],_0x3d9359[_0x3b50eb]))==0x0&&_0x3b50eb<=_0x33d6af[_0x3f8754(0x192)]){_0x3b50eb++;}return _0x1c53e6;}_0x1c53e6=_0x43c1b2(_0x33d6af[0x0],_0x3d9359);if(_0x1c53e6==0x0&&_0x33d6af[_0x3f8754(0x192)]>0x1)return 0x1;return _0x1c53e6;}else{if(typeof _0x33d6af==typeof _0x3d9359)return typeof _0x33d6af==='symbol'&&(_0x33d6af=Symbol[_0x3f8754(0x4de)](_0x33d6af),_0x3d9359=Symbol[_0x3f8754(0x4de)](_0x3d9359)),_0x33d6af<_0x3d9359?-0x1:_0x33d6af===_0x3d9359?0x0:0x1;else{if(typeof _0x3d9359==_0x3f8754(0x712)){if(_0x3d9359 instanceof Array)return-_0x43c1b2(_0x3d9359,_0x33d6af);return 0x1;}else return _0x111901[typeof _0x33d6af]<_0x111901[typeof _0x3d9359]?-0x1:0x1;}}}const _0x111901={'symbol':0x0,'undefined':0x1,'boolean':0x2,'number':0x3,'string':0x4},_0x5e408d=null,_0x162569=new Uint8Array([0xff]);return dist[_0x5d62f8(0x25e)]=_0x162569,dist[_0x5d62f8(0x22e)]=_0x5e408d,dist[_0x5d62f8(0x2ce)]=_0x43c1b2,dist[_0x5d62f8(0x175)]=_0x28944d,dist['encoder']=_0x3865b0,dist[_0x5d62f8(0x75b)]=_0x933876,dist[_0x5d62f8(0x5ef)]=_0x56feb0,dist['toBufferKey']=_0x2c807b,dist[_0x5d62f8(0x61b)]=_0x5df842,dist;}var keyenc,hasRequiredKeyenc;function _0x49fd(){const _0xee5233=['queue:enqueued','~processes:desired','removeResolver','bucket\x20too\x20long','autoCompactState','_stream','$options','registerQuantum:\x20name\x20must\x20be\x20a\x20non-empty\x20string','isArray','ttlMs','files\x20feature\x20not\x20available','_ensureDesired','time-machine:','_rebuild','bucket\x20id\x20required','stor','markJobHeartbeat','_autoCompactTimer','modeApplied','_run','_retryPending','WORKER','durableRetryFailed','queue:retry','Referenced\x20type\x20\x27','T_SESSION','\x27\x20conflicts\x20with\x20existing\x20OKDB\x20property','floor','_isBootstrap','_timer','nextTurn','removeJobType','release','timerArmed','listTTL','_changefeed','resolution','Invalid\x20onDelete\x20rule\x20\x27','$regex','runtimeState','_durableIndexerDoc','setJobTypeSchema','import','sourceKey','lastIndexOf','installed','isType','_workers','note','_stops','./native-loader.js','rebuildBegin','getGcHorizon','system:proc','log\x20entry\x20message\x20required','dropFts','backupRoot','building','indexOf','handler','\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','fieldPath','streamClose','detachFeed','\x22:\x20the\x20build\x20another\x20process\x20took\x20over\x20made\x20no\x20progress\x20for\x2010\x20min','max','838700YqGJNH','refreshTtlBatch','max_tries','grouped','value','SCHEMA_COLLECTION_INVALID','failed','byteOffset','_license','setFlushNotify','logChange','OKDBSchemaCollectionError','isActive','_indexBuilds','mode','__ttlByKey','register','typeId','authenticated','license:removed','ensureDesired','Schema\x20validation\x20failed\x20for\x20','setEncryptionKey','parseBearer','okdb.http.listen(port)\x20in\x20each\x20worker.','job.tries\x20must\x20be\x20non-negative\x20int','INDEX_ALREADY_REGISTERED','must\x20be\x20an\x20object;\x20got\x20null','emit',':data','reencrypt:\x20env','read','pendingResponses','validate','durableEmbedderInfo','createEmbedder','_handleInProcess','_isOpenForIp','OKDBInvalidIndexKeyError','getTypeCount','processor:ready','randomUUID','Algorithm\x20factory\x20must\x20return\x20an\x20object\x20with\x20','orchestratorStarted','stopAutoCompactCheck','string','stringify','vector-search','_clockToChangeDb','index:','queue.worker(\x27','properties','_enqueueInTxn','sweepExpiredTTL','Unique\x20constraint\x20violated\x20on\x20','root','retry','set_null','embeddings:doc:status_change','timeMachine','number','Embedder\x20factory\x20must\x20be\x20a\x20function','servers','range','runGc','Use\x20module:{path,export}\x20alone,\x20or\x20handler:\x27<name>\x27\x20for\x20a\x20built-in.','createPipeline','_setTTLEntry','sort','_ensure','getClock','nextTick','_ack','claim_id','\x20references\x20','_getPeerState','createEnvironment','fetchPeer','quantum','readFieldMany','stack','mkdirSync','_assertFiles','ttl:set','FIELD_RESOLVER_PENDING','storageStats','Database\x20already\x20opened/closed','delta_limit','getRecord','priority','token','disable','processorsParticipating','dropped','asyncIterator','listBuckets','applyInterestDelta','offset','connectionCount','childTransaction','byIndex','Plugin\x20name\x20\x27','embedder','MCP_ERROR','~queue_payloads','_buffer','T_INTEREST','removeLink','describeChunk','retryable','running','onDo','compression','_flushIntervalTimer','_okdbAdminAttached','durableRebuild','_range','sha256','txnId','removeJob','_nodePrivateKey','removeJobLogsAfterCommit','_asArray','_warnUnknownOptions','uninstalled','prefix','build','469454tieCWX','INVALID_SCHEMA','auth','cause','debug','_licenseInterval','_localViewApi','$lt','MAX_SAFE_INTEGER','_statusEnv','uninstall','runRecord','uninstallEngine','files.upload:\x20stream','setMode','loginSelect','listen','getHistory','nodeKeys','job.id\x20must\x20be\x20string','put','drives','FTS_FLUSH_TIMEOUT','free','Error','setClaiming','~ref_violations','each\x20process()\x20entry\x20requires\x20a\x20non-empty\x20`type`','useReadTransaction','system:bus_state_change','stats','hasEnv','Foreign\x20key\x20violation:\x20','limit','_keyFns','finish','sortedDb','registerHandler:\x20name\x20must\x20be\x20a\x20non-empty\x20string','embeddings:embed:settled','_clearTTL','defaults','node:path','iterate','_windowCbs','encryption:key-changed','_tickCallback','creating','killAll','SYSTEM_CLOCK_CHANGE','doesExist','engineType','setLogSink','job','REBUILD_IN_PROGRESS','proc','payload','Engine\x20template\x20kind\x20must\x20be\x20\x22engine\x22\x20or\x20\x22pipeline\x22:\x20','bucket\x20must\x20be\x20object','enableNullTermination','_pumper','outgoing','STARTING','onUndo','restart','okdb-node:\x20unknown\x20bridge\x20op\x20','__ttlByExpiry','scopedName','emitClearDone','BAD_EMBEDDER_FACTORY','_store','ctxUpdateStatus','close','ensure:\x20fts\x20entry\x20missing\x20name\x20or\x20fields','_put','_indexBuild','pauseJobType','http.listen:\x20host\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20a\x20non-empty\x20array\x20of\x20non-empty\x20strings','_blobPath','_settle','_commitSessionMutation','migrate','description','reducers','SESSION_TYPE_INDEX','killWorker','_lock','subscriptions-store:\x20open()\x20not\x20called','length','createBegin','awaitIdle','_baselines','$eq','idempotency_key','job.cron\x20must\x20be\x20string|null','host','\x27\x20on\x20type\x20\x27','peers','view\x20\x22','LICENSE_LIMIT_EXCEEDED','ensureTokensType','\x0a\x09\x09let\x20','handleError','addRaw','update','inputSchema','writerWatchdog','usedBy','_defaultEnvObj','~ttl:expiry','_advanceHlcOnRecv','TXN_END','targetKey','embedder\x20is\x20gone','_log','schema','paused','refTrackingDbs','FOREIGN_KEY_VIOLATION','getFast','INDEXER_DOC_DONE','metaDb','_sub','\x22)\x20before\x20open()','ensureFeed','_peerDb','bumpVersion','\x20must\x20be\x20','setPeerState','autoCompactTimerArmed','indexContent','_buckets','INVALID_STATE','getRun','runStart','active','_ensureEnv','isRunning','freeze','__ref_index','_rbuf','listTypes','flushTicket','ENCRYPTION_KEY_REQUIRED','node:util','enableAll','signal','_wsettle','_cursors','TYPE_NOT_REGISTERED','LICENSE_FEATURE_DISABLED','queue:clear-progress','puts','bootSyncedViews','ttlState','_busFacade','FTS_BUILD_CONTINUE','storeEnvPath','streamByHash','params','\x22\x20to\x20enable\x20it.','.\x20Only\x20primitives,\x20null,\x20Buffers,\x20and\x20arrays\x20are\x20allowed.\x20Got:\x20','job.backoff_multiplier\x20must\x20be\x20number\x20>=\x201','registerModule','job_type.defaults.','_normalizeOAuthAuthResult','resetViewBegin','job.buckets[].id\x20must\x20be\x20non-empty\x20string','getByPrefix','stopWorkerBegin','env:opened','~fts:envs','destroy','newListener','completeJob','when','processes','_onPoke','features','importFromFile','_sweepOrphanLogs','pushEphemeral',':txnRange','~log','iterator','fingerprint','_clearChunked','listRefViolations','$lte','VIEW_NOT_FOUND','_txnBuf','attachConsole','syncBlobs','_subscribed','warn','non-empty\x20string','cron','\x27\x20doesn\x27t\x20exist','_rootDb','releaseClaim','pin','subscriptions-store:\x20addInterest\x20on\x20unknown\x20session\x20','getInt32','_inlineClosureWarned','createSearch','_registrations','_writer','bulkRemoveChunk','_pending','txn:start','loop-lag','getStats','statusOpen','err','writeBlob','inNativeCall','let\x20position;\x20let\x20readString\x20=\x20','job_type.payload_schema.enforce\x20must\x20be\x20boolean','registerReducer','max_concurrency','jsonrpcCode','txn-commit','job_type.payload_schema\x20must\x20be\x20object|null','definition','_ensurePeerState','count','system:type_drop','job.bucket_tokens\x20must\x20be\x20int\x20>=1','processEverything()','DONE','indexer\x20engine\x20not\x20running:\x20\x22','SYSTEM_POKE','_txnIdAtSnapshot','open','processor:\x20quantum.module\x20must\x20be\x20a\x20string','processor:progress','resolveModelDims','byteLength','setKeyBuffer','_shouldApplyChange','algorithm\x20is\x20gone','importJSON','snapshot','_refCache','MINIMUM_KEY','array','_sweepInProgress','_initialize','trunc','planUpdateJob','createWorker','setTTL','created','write\x20batch:\x20missing\x20result','listModels','_pdb','processors','_assertOpen','getSecurityNotices','durableDocs','_id','\x20must\x20be\x20a\x20non-empty\x20string;\x20got\x20','abs','storeEnv','_typesDb','delete','deleted','call','getLegacyCursor','rebuild','existing','forceResync','_call','_durableEngineDoc','Plugin\x20must\x20have\x20a\x20name','refill_amount','resetReadTxn','__stateDb','dims','applyOps','txnDone','storage\x20adapter\x20is\x20gone','Feature\x20not\x20available\x20on\x20free\x20tier:\x20','acquiredAt','TXN_START','attachOKDB','describeAllTypesDetailed','listFtsEnvs','_admissionStarted','getEmbedderSchema','REVERSE_INDEX','fts:drop','MAXIMUM_KEY','takeBuildResult','isFeatureEnabled','cascade','login','createdBy','node:events','processor:\x20rebuild\x20must\x20be\x20a\x20function','errors','hasEmbedderFactory','reduce','run','enforce','hasApi','describeType','\x20>=\x200x80)\x20','processor','_create','dedupeMax','announceEnqueued','1267376jsLaeK','Key\x20is\x20too\x20large','lastTxnId','flushQuantum','buildsPending','VIEW_BUILD_STALLED','listening','\x22\x20not\x20found\x20in\x20~envs','unique','pid','ExtendedIterable','$size','__adminRelay','health','Unknown\x20transaction\x20action:\x20','driver','iterable','_connections','committed','_attached','dropIndex','VIEW_REBUILD_IN_PROGRESS','registerAlgorithmFactory','_keyListener','utf8Write','OKDBVersionMismatchError','node','_setTTL','intervalTimer','reducer','setModeApplied','job_type.defaults.priority\x20must\x20be\x20int\x20or\x20null','_fail','removeJobTypeSchema','a\x20Buffer\x20or\x20readable\x20stream','queue:done','reidentify','ingest','_ttlTimerAt','_read','noteListenAddr','BAD_PARAM','durableEngineDoc','engineStop','node:cluster','onDelete','~processes','current','sync','getSelfNode','localViewNames','percentile','updateJob','viewOp','setHostPlugins','dropType','_defaultEnv','setFilter','getFloat64','defineProperty','durableWorkerStats','openEnv','~emb:models','plugins','_seen','_subsV2Obj','off','getAuthOptions','_cmd','inactive','_drain','replaceInterests','durableTierLag','dirty','abort','setMaxListeners','durability','ready','listPeers','expiresAt','unregisterTarget','for','flushPoll','limits','buffer','pump','Unsupported\x20transaction\x20action:\x20','__peers','storeGetDiffsInRange','createReadStream','valuesForKey','RELAY_FULL','compareKeys','ctxSignal','type','node:stream','listRoutes','toJSON','\x27\x20is\x20already\x20registered','compactLock','~sub','limitOf','clearDefaultTTL','docs','ies','unreg','EMBED_PENDING','describeIndex','embeddings:indexer:doc:done','_customReducers','\x20│\x20','resolveBackupDest','callRows:\x20unexpected\x20row\x20stride\x20','req','status','addSSE','captureStackTrace','NOT_FOUND','_doHooks','Can\x20not\x20serialize\x20async\x20iterables\x20without\x20first\x20calling\x20resolving\x20asArray','\x27:\x20','drainDeadlineMs','match','\x20===\x204)\x0a\x09\x09\x09\x09','_path','useReadTransaction\x20range\x20consumed\x20after\x20the\x20creation\x20turn\x20—\x20the\x20consistent\x20view\x20was\x20','_timerObjs','describeIndexes','lookupByName','equal','type:registered','_onPending','reconcilePeer','bootLogMark','isDeepStrictEqual','fts:reset','__warned','ENGINE_INVALID_DRIVER','unpin','listLinks','relay:error','boolean','$exists','SYSTEM_STOPPED','bucket.tokens\x20must\x20be\x20int\x20>=\x200','actionCount','detachConsole','envName','refill_every','compactBegin','bus:env_release','_sinks','addEventListener',':\x20key\x20[','apiCall','makeOkdb','hasUniqueViolations','setPrototypeOf','writerStatus','scheduled','index:reset','requires','indexStats','INVALID_VALUE','code','getOpenWarning','$not','_reconcileDesired','durableRetryDoc','embed-worker','_ttlCompositeKey','bridge','status_message','_ensureDbs','enqueue\x20txn\x20belongs\x20to\x20a\x20different\x20environment','load','setDefaultTTL','pinned\x20range\x20iterator\x20held\x20across\x20an\x20await/turn\x20boundary.\x20This\x20surface\x20cannot\x20resume\x20','upload','~files','importBlobs','patchConfig','TXN_INVALID_OP','hasDriver','stop','setInt32','tries','mcp','timeoutMs','(no\x20unambiguous\x20bookmark)\x20—\x20consume\x20it\x20in\x20one\x20synchronous\x20block:\x20materialize\x20(e.g.\x20','__okdb','_handle','exclusiveStart','job_type.defaults\x20must\x20be\x20object|null','getRefViolation','_onItem','schema:drop','SKIP','system:poke','isInteger','body','_info','typeStats','job.type\x20must\x20be\x20non-empty\x20string','ENGINE_DRIVER_MISSING_START','_enableChangelog','$type','INDEXER_DOC_FAILED','_jsFactories','shouldApplyChange','started','getPeerState','txn','OKDBTypeAlreadyRegisteredError','-worker','nidFor','_nodePublicKey','__absent','typeSubDbs','setAddress','dbs','NativeLock','TXN_ENV_MISMATCH','STOPPING','~engines','_hybridQuery','admission','done_ttl','shift','streamRead','authenticateToken','processor:resumed','getRange','_autoCompact','refItemsDbs','restrict','embedderCall','extend','meta','subscriptions','upsertLink','_dupArg','undefined','.\x20Primary\x20keys\x20must\x20be\x20string\x20or\x20number.\x20Got:\x20','isEnabled','message','OKDBAlreadyExistsError','_settleRead','standalone','getNodeRecord','sseSetHeader','listRuns','view','BAD_PLUGIN','unregisterExtractor','recordPeerAck','ERROR','allSettled','claim','INDEXER','readHashRange','\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer','inclusiveEnd','ctxEmit','admin','address','schema:set','_flushTimer','license:invalid','_plugins','markSnapshotComplete','maxExtra','_openLocalPeerDb','addBucket','\x27\x20export\x20\x27','Symbol.asyncIterator','refreshReadTxn','SEARCH','findOwner','_subscribeEvent','_native','getValues','__logsDb','registerExtractor','getRaw','removeBucket','system:clock_change','hlc','CREATED','bus:poke','vec:',':\x20unknown\x20option\x20\x27','_isWriter','createSession','handle','send','_syncLock','dropSchema','Invalid\x20primary\x20key\x20type:\x20','OKDB','VECTOR_SEARCH_READY_TIMEOUT','fields','field:resolver_registered','written','draining','getJob','inline','log\x20entry\x20fields\x20must\x20be\x20object|null','_draining','continueIteration','_write','processorsStop','assign','nodeKey','resumeJobType','okdb._openEnvLazy:\x20env\x20\x22','refreshTtl','http','reencrypt','_meta','pumping','function','addrs','halted','created_at','isBootstrap','_startAutoCompactCheck','changeEncryptionKey','String\x20does\x20not\x20fit\x20in\x20target\x20buffer','$pending','effective','isLoopbackIp','\x27\x20did\x20not\x20return\x20a\x20valid\x20instance','DOC_STATUS_CHANGE','\x22\x20build\x20by\x20another\x20process\x20ended\x20\x22','snapshotScan','toLowerCase','_hlc','embeddings:strategy:registered','\x22\x20tokens\x20too\x20large','OKDBProcessor','PUT','license:added','resolveField:\x20options.batch\x20must\x20be\x20a\x20function','pipelines','clone','$near','_startClaimedSoon','context','__HOLD__','_gcTimer','pumpEnvSync','_noChangelog',']\x20already\x20maps\x20to\x20\x27','bootSyncedViewsInline','validateBlobIntegrity','_assertRangeOptions','~log_entry','OKDBIndexNotRegisteredError','setPosition(p)\x20{\x20position\x20=\x20p\x20},','embedderNew','clocks','TXN_CLOSED','_emit','(?:/(.*))?','__esModule','_resolveFilter','_ackDb','_envs','handleDurableClock','EMBEDDER','getResolvedOptions','checkSignals','getDefaultTTL','_listenAddr','_emitProc','hasStopFn','$defs','refs','from','join','queue-worker','incoming','timestamp',':keyToChange','system:env_release','_closedHandle','\x22\x20requires\x20a\x20`handler`\x20function','embedBatch','throw','nativeBinaryPath','end','balanced','getOidcDiscovery',':useReadTransaction','ensure:\x20type\x20is\x20required','quarantinedEnvs','search','inBatch','no_action','_onStop','\x20does\x20not\x20exist','encodeInto','\x22\x20must\x20return\x20{\x20embed(input):\x20Promise<Float32Array>\x20}','registerModel','registerQuantum:\x20load\x20must\x20be\x20a\x20function','setTtl','_afterDurable','_closeEnvLocally','job_type.defaults.retry_delay\x20must\x20be\x20int\x20>=\x200\x20or\x20null','$gte','queue:clear-done','pauseAllAndDrain','isWellFormed','getMaxBodyBytes','_blobStream','defaultTTL','~file:blob_status','_dedupeMax','connected','retryFailed','_syncExpiresAtField','bucket_tokens','ttl','_buf','setCursor','_openEnvLazy','3.3.0','durableMarkFail','patch','items','process','byLabel','reconcile','engineStart','name','$mod','job.tags\x20must\x20be\x20array','notes','_ttlTimeout','wake','bucket.id\x20must\x20be\x20non-empty\x20string','createWriteFacade','_viewRebuildChain','_reconcilePeer','OKDBUniqueConstraintError','VERSION_MISMATCH','_set','_envSyncStop','details','isSnapshotComplete','stateNames','pinned','_callRows','getMany','attachFeed','_jsSchemas','envNames','Expected\x20catch\x20callback\x20to\x20be\x20a\x20function','ENGINE_INVALID_TEMPLATE','(?:','recommended','filter','getJobType','bucket.capacity\x20must\x20be\x20int\x20>=\x200','Missing\x20plugin:\x20','PLUGIN_DEPENDENCY_MISSING','_ttlByKey','_pokeHandler','getIndexStatus','__after','clearTTL','headers','handleResult','resetting','ctrl','role','_oauthConfig','query','CLI\x20(`okdb\x20listen`),\x20or\x20use\x20Node\x27s\x20built-in\x20`cluster`\x20module\x20and\x20call\x20','listJobTypes','removeEnvironment','some','module','_listeners','vector\x20search\x20\x22','SCHEMA_VALIDATION_FAILED','_makeIterator','ref:violation_resolved','entries','_macro','getPosition()\x20{\x20return\x20position\x20},','UNKNOWN_RANGE_OPTION','534558SSTilh','$ref','processorHold','getKeys','subsBuilt','Unknown\x20OKDB\x20transaction\x20error','_undoHooks','Environment\x20\x22','removeSync','assertStartAllowed','drivers','storeGetHead','takeCompactResult','(source)\x20=>\x20{','push','write','unref','_listPeers','updated','find','_setKey','_pokeListener','resetIndex',':index:','markJobComplete','isBuffer','tick','_durableIndexerDocs','catalog','reject','field\x20resolver\x20request\x20still\x20pending','group','$where','blobPath','syncLock','hasChangelog','prevDb','bucket.refill_every\x20must\x20be\x20int\x20>=\x200','_makePipelineApi','_lookupByTokenHash','__blobStatusDb','near','\x20=\x20finishUtf8(','engine:','startsWith','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.','job_type.defaults.buckets\x20must\x20be\x20array|null','_wrap','@harperdb/extended-iterable:skip','signalWant','\x20returned\x20no\x20key','getSession','tokens','_logEnv','OKDBInvalidPrimaryKeyError','isFinite','envs','okdb.noFast','_claimGated','forceAfterMs','importFromStream','TXN_INVALID_ACTION','select','registerEnv','applyChange','remoteAddress','getTTL','staticCall','consumeLoginState','_readBuf','removes','geoConfig','_tools','_adminRelay','_admissionTimer','_settleWaiters','_formerOrigins','loaded','rowKey','ttlSetEntry','continueOnRecoverableError','FTS_READY_TIMEOUT','_key','fts:','resolveField:\x20a\x20resolver\x20or\x20options.batch\x20is\x20required','invalid\x20job.status:\x20','registerHandler:\x20fn\x20must\x20be\x20a\x20function','clients','_status','setNative','lastClock','node:crypto','itemsGroups','_scheduleFlush','job.priority\x20must\x20be\x20int','_readViewExpired','index','options','replaceMember','countByIndex','\x20already\x20exists','_listening','spki','tryClaimTokens','a\x2032-character\x20key\x20or\x20a\x20function\x20returning\x20one','useVersions','_detachLog','_feed','viewDb','hybridQuery','~queue_logs','updateBucket','sections','_closeReadTransaction','reg','$within','exportJSON','OKDBIndexAlreadyRegisteredError','WriteBatch','lookupAllByName','replace','_detachLogSink','_pendingLocal','queue:reconciled','unpack','index:progress','type:drop','keyFor','start','remote','turns','holder','drop','digest','getEmbedderFactory','job_type.payload_schema.definition\x20must\x20be\x20object','isOAuthEmailAllowed','map','ensureType','total','enqueue','setDeltaLimit','nextExpiry','encryptionKey','claimGated','split','trim','setCurrentDb','samplePayloads','hasNativeBatch','bus','\x20must\x20be\x20number','okdb','registerDriver','_quantumGate','INVALID_ARGUMENT','size','listRecords','_build','setReadBuffer','registerFts','busEmit','registerViewReducer',':emb:','rows','getMeta','Cannot\x20set\x20enforce\x20schema\x20on\x20','resume','TXN_ROLLBACK','_started','process(filter)','kind','ITEM_CREATE','error_stack','keys','label','enforced','diag','fts:registered','catch','callStatic','values','appendJobLog','Referenced\x20key\x20\x27','$in','isIndex','$nor','repair','ensure','markJobFail','_detachConsole','registerQuantum','retry_delay','removeInterest','callAsync','dropping','_markSeen','forEach','job.idempotency_key\x20must\x20be\x20string|null','-----BEGIN\x20PUBLIC\x20KEY-----\x0aMCowBQYDK2VwAyEAacrkExPrhxNVHyeQBLDwg8xfm1OwyxDAPNdGXABYS2s=\x0a-----END\x20PUBLIC\x20KEY-----','tags\x20must\x20be\x20array\x20or\x20string','server','isWriter','describeAllTypes','_envIndexDb','cursorKey','runDrop','_dedupeKey','getBinary','clear','Engine\x20driver\x20for\x20\x22','_onFeedChange','actions','\x27\x20at\x20','filterSessionsForType','formerOrigins','async','bigint','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.','_scheduleTTLSweep','clearSync','flush','groupsDb','ITEM_REMOVE','_push','_rawTxnBuf','taken-over','namespace','HTTP_CLUSTER_REMOVED','failures','_maxConnections','compare','DEFAULT_EVENTS','assertQueryOptions','reason','INDEX_PROGRESS','clock','_teardownNative','Transaction\x20already\x20closed','_kbuf','validateRouteInput','aborted','api','getAll','getEngine','type:','views','invalid\x20job_type.status:\x20','concat','vecRemove','_awaitBuild','~queue_jobs','log\x20entry\x20must\x20be\x20a\x20string\x20or\x20object','storage\x20adapter\x20has\x20no\x20method\x20','subscribe','\x22\x20is\x20not\x20allowed\x20(it\x20evaluates\x20code);\x20use\x20declarative\x20operators\x20instead','listIndexKeys','_ts','clearStuck','timer','processor:\x20cannot\x20combine\x20a\x20closure\x20handler\x20with\x20module:{path,export}.\x20','ttlStats','encryption\x20key\x20function\x20failed:\x20','_lazyPinned','INDEX_HAS_CONSUMERS','status_code','create','IPv4','$or','.\x20Add\x20a\x20license\x20that\x20includes\x20\x22','ms\x20mean=','TXN_ERROR','backoff_multiplier','stopAll','files.upload:\x20id','job_type.defaults.max_tries\x20must\x20be\x20int\x20>=\x201\x20or\x20null','_changeToClockDb','buildStep','job.bucket\x20must\x20be\x20string|null','startNewEnginesFromSync','_nm','forgetDb','_lookupAllByName','/?$','updated_at','SUB_ENV','_registerType','durableStats','inflight','preparer\x20must\x20be\x20a\x20function','listIndexes','last','capacity','relay','selfKey','allowUnsafe','markJobProgress','setStorageResolver','resolveField:\x20resolver\x20must\x20be\x20a\x20function','ctxProgress','der','lock','sift','before\x20any\x20await,\x20chunk\x20with\x20{limit,\x20start,\x20exclusiveStart},\x20or\x20drop\x20snapshot:true.','TYPE_ALREADY_REGISTERED','isSetupMode','isWorker','guardSnapshotIterable','disableAll','formerIds','compactStorage','_getFast','listPath','setSchema','engineUninstall','sessionId','QUERY_OPERATOR_FORBIDDEN','durableCursorFloor','references','compiled','\x20>\x204)\x20{\x0a\x09\x09\x09if\x20(','rollback','removed','patchSelf','authorization','INVALID_TYPE_NAME','embeddings:indexer:ready','__ttlCancelledGen','REMOVE','getIndexMeta','__tokenSecret','assertCreateAllowed','_makeLazyVectorAdapter','_getOidcDiscovery','subarray','toFixed','recordRun','PLUGIN_NAME_CONFLICT','docEntry','attach','failed_ttl','error','resolvedOptions','hasOwnProperty','Type\x20\x22','application/octet-stream','\x20of\x20env\x20\x22','batch','_setPeerState','export','INVALID_OPTIONS','reset','setKick','key','logCap','_role','_refIndexDb','\x27\x20already\x20registered','_viewState','OKDBError','job.','invalid\x20log\x20level:\x20','shutdownTimeout','reverse','encryption\x20key\x20function','registerIndex','bus:drain','item','target','readTransaction','dupSort','no\x20write\x20has\x20landed.\x20Writes/commit\x20are\x20unaffected.','algorithm\x20has\x20no\x20method\x20','getPeerAcks','transaction','events','sseSend','vectorStoreStats','routes','offsetOf','Cannot\x20register\x20plugins\x20after\x20start','Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results','_addr','bus:proc','setAutoCompact','msgpackr','index:registered','exists','registerIndexDeferred','dataEnv','socket','item:pending','getLoginConfig','_sync','_readerCheckInterval','registerEmbedderFactory','\x22\x20not\x20found','runtimeDeclarations','getChanges','backup','readKey','_localViews','done','tag\x20too\x20long','once','ms\x20busy=','bootRuntime','Engine\x20driver\x20type\x20must\x20be\x20a\x20non-empty\x20string','~system','job\x20id\x20required','openDB','stopWorkerAbort','apply','registerTemplate','_durableIndexerStats','getUniqueViolation','immediate','then','readString\x20}','\x20ms','before\x20any\x20await\x20—\x20or\x20opt\x20into\x20useReadTransaction:\x27tolerant\x27\x20to\x20keep\x20reading\x20while\x20','meanwhile\x20—\x20the\x20frozen\x20view\x20cannot\x20be\x20kept.\x20Materialize\x20synchronously\x20(e.g.\x20Array.from)\x20','doc_status:','VIEW_BUILD_FAILED','vector-search\x20engine\x20not\x20running:\x20\x22','action','_waitNative','compact','_processorStops','__fts:','_stopAutoCompactCheck','OKDBNotFoundError','issueToken','Too\x20many\x20concurrent\x20connections','isSync','fromCharCode','exports','ref:violation','sourceType','gateQuanta','engines','\x20was\x20removed\x20in\x20okdb\x202.0.\x20Use\x20processors:true\x20for\x20plain\x20lease\x20participation.\x20See\x20docs/upgrade-2.0.md.','processor:retry','ENV_NOT_FOUND','writeKey','_wb','buckets','prefetch','OKDBNotImplementedNativeError','return\x20fromCharCode(','OKDBInvalidValueError','TypeError','allocUnsafeSlow','_ttlByExpiry','registerHandler','_deliverEvent','registerChunkStrategy','tags','_resolveKeys','Array.from)\x20before\x20any\x20await.','_logsDb','__lock','tierList','setUint32','_viewCache','_np','recomputeFields','386519EUpkUA','readerCheck','default','opts','KNOWN_OPTIONS','ITEM_UPDATE','getEntry','_writeBlob','durableClock','oauth','ensureTypeEnv','Database\x20not\x20started','txnUndone','\x27\x20does\x20not\x20exist','tag','pending','.\x20Valid:\x20','hash','\x20actions=','dropAll','INVALID_INDEX_KEY','dup','lockHeld','_nextExpiry','_modeApplied','released\x20at\x20the\x20first\x20await/turn\x20boundary.\x20Consume\x20ranges\x20before\x20any\x20await,\x20or\x20','item:create','VIEW_BOOTSTRAP_CANCELLED','getIndexCount','IPv6','json','item:','_isClosedEnvError','listProviders','_settled','job.max_tries\x20must\x20be\x20int\x20>=\x201,\x20null\x20(unlimited)\x20or\x20Infinity','changeToClockDb','pipelineFamily','createPublicKey','evict','there\x20is\x20no\x20`http`\x20option\x20—\x20the\x20HTTP\x20server\x20exists\x20only\x20when\x20db.http.listen(port)\x20is\x20called','onDone','getPrototypeOf','mapError','_db','commit','ringSize','flatMap','_bootLog','BAD_ALGORITHM_FACTORY','_settleWrite','getCursor','_getRaw','utf8','spec','files','ALL_EVENTS','unique:violation_resolved','waiting','Server','lastError','chunk\x20strategy\x20must\x20be\x20a\x20function',':clockToChange','enable','sweepOrphanLogs','\x27\x20is\x20not\x20a\x20function','ref','_isFar','onLicenseExpired','busState','files.registerExtractor:\x20extractor\x20must\x20be\x20a\x20function','taken','_callMacro','_subsV2','__syncOverride','_isOpen','_quantum','targetType','HIGH_SENTINEL','_clockListener','\x22\x20was\x20removed\x20while\x20it\x20was\x20being\x20built','processRest()','maxBodyBytes','resetFts','ttl:expired','job.claim_id\x20must\x20be\x20string|null','listVectorStores','pause','Query\x20operator\x20\x22','OKDBForeignKeyDeleteError','drainJobType','job_type.','\x22\x20not\x20ready\x20after\x20','_locks','toISOString','processor:\x20module.path\x20is\x20required','job_type.max_concurrency\x20must\x20be\x20int\x20>=\x201\x20or\x20null','processor:error','registerTarget','vector','localViewStats','_remove','getStateAt','instance','_handlePending','_keepAlive','ceil','has','job.buckets\x20entries\x20must\x20be\x20objects','view:progress','listNodes','gc.','regObject','_logChange','PLUGIN_ALREADY_REGISTERED','fromEntries','bootSyncedEngines','_tx','raw','getRunningEngine','HTTP\x20server\x20already\x20running','closeSession','doc','$streamId','getVector','tryAcquire','materialize\x20them\x20(Array.from)\x20while\x20the\x20view\x20is\x20live.','_timerHandle','OKDBIndexHasConsumersError','HTTP_ERROR','indexReady','hasIndex','209476GrdyHZ','sparse','licenses','embed','head','stopHandle','vectorSpace','kick','_isReader','_begin','change','removeListener','unresolveField','durableMarkDelete','patchDeclaration','payload_schema','registerType','getIndex','boundary\x20(a\x20pinned\x20read\x20txn\x20blocks\x20LMDB\x20free-page\x20reuse).\x20Do\x20all\x20consistent\x20reads\x20','storeGetHeadCount','asArray','removeTxn','kickOwnedBy','dataView','get','detach','previewTemplate','Cannot\x20openEnv(\x22','explainIndex','/([^/]+)','node:http','gen','primaryOkdb','emitProc','getDefinition','exportName','stopped','setProcessingConfig','refreshThresholdMs','level','Cannot\x20delete\x20','stream','listViolations','listTemplates','hasType','createAndStartEngine','processorsStart','position','txn:end','storeGetTotalHeadCount','starting','job.error_stack\x20must\x20be\x20string|null','process()\x20entry\x20\x22','turn','list','embeddings','normalizeOAuthAuthResult','fts','_root','_reconcile','isHeld','envSize','bootSyncedPipelines','getBucket','job.tag\x20must\x20be\x20string|null','null','includes','enabled','claim_expires','listBlobStatus','job.status_message\x20must\x20be\x20string|null','isTypeEmpty','slice','transactionSync','return','_staticCall','record','loop-lag\x20','exportEnvsToStream','a\x20string','indexer','_deliver','install','library\x20(okdb\x20node-model\x202.0).\x20For\x20multi-process\x20HTTP\x20serving\x20use\x20the\x20okdb\x20','_getNodeRecord','txn:rollback','searchDocs','handlerName','__notImplementedNative','Buffer','resetIndexBegin','.\x20The\x20active\x20license\x20does\x20not\x20enable\x20\x22','object','getViolation','ONLINE','finished','enqueueClaim','header','job\x20must\x20be\x20object','_tids','interest','_rebuilding','~ttl:key','gcOrphanedBlobs','log','geoQuery','reconcilePeerPull','symbol','FOREIGN_KEY_DELETE_RESTRICTED','storePayload','removeEventListener','add','_getType','mean','test','locks','_compactLock','granId','queue','resolveField','Plugin\x20\x27','native','next','fetchRemoteDelta','customReducerNames','path','debounceTimer','use','callBatch','_ringSize','workerState','getTemplate','_running','TXN_INVALID_OPS','_ttlParseComposite','preview','fetch','charCodeAt','ttlTimer','_http','maxConnections','nativeCode','embeddings:indexer:doc:failed','constructor','$all','cancelJob','env:removed',',\x20got\x20','port','_typeKeys','setWake','returnRecoverableErrors','endsWith','workers','uploadTxn','sessionsForKey','createEngine','_buildOwnRow','\x20document(s)\x20reference\x20it\x20with\x20onDelete:restrict','_ensureTokensType','resolvedFields','_low','info','putSync','_tokenSecret','fromBufferKey','\x20documents\x20fail\x20validation','ensure:\x20view\x20entry\x20missing\x20name\x20or\x20definition','embeddings:indexer:flushed','bucket','sync:apply','__cmd','claim\x20requires\x20non-empty\x20type','resumeAllAfterDrain','INVALID_PRIMARY_KEY','Algorithm\x20factory\x20must\x20be\x20a\x20function','Can\x20not\x20serialize\x20key\x20of\x20type\x20','_flushDebounce','storeEnvName','engine','now','_env','state','readField','isReader','\x20(required\x20by\x20','new','prototype','partially-ready','db.processors.','$ne','failJob','vecPut','createLoginState','OKDBSchemaValidationError','version','maxMs','true','Engine\x20template\x20id\x20must\x20be\x20a\x20non-empty\x20string','ftsQuery','READER_HELD_ACROSS_AWAIT','getUniqueViolations','QUEUE_WORKER_REMOVED','REF_VIOLATION_RESOLVED','getStatus','afterTurn','env','buildPending','92502uuljRi','hook','_closed','http.listen({workers/makeOkdb/primaryOkdb})\x20is\x20no\x20longer\x20supported\x20in\x20the\x20','turnWaiters','_ensureTypeEnv','publicKey','exportBuf','remove','hasBody','ITEM_PENDING','\x20=\x20source[position++]\x0a\x09\x09\x09else\x0a\x09\x09\x09\x09return\x20fromCharCode(','functions','$gt','resolve','spawn','_ttlState','registerPreparer','stateInfo','_callPacked','~processes:cmd','_uid','data','_blobsDir','listAlgorithms','okdb-node:\x20unknown\x20callback\x20id\x20','set',',\x20source)\x0a\x09\x09}\x20else\x20{\x0a\x09\x09\x09if\x20(','cleanup','getSchema','guard','existsSync','alg','feature','addInterest','Engine\x20template\x20build()\x20is\x20required:\x20','_openAckDb','worker','startAutoCompactCheck','bucket\x20\x22','_handlerName','registerBucketProjection','Blob\x20not\x20found:\x20','OKDBForeignKeyError','bind','origin','flushTimeoutError','_systemEnv','STOPPED','setPeersFn','authenticateRequest','job_type.defaults.ttl\x20must\x20be\x20int\x20>=\x200\x20or\x20null','_stopFor','job_type.id\x20must\x20be\x20non-empty\x20string','min','runPoll','OKDBTypeNotRegisteredError','startIndex','setLastClock','durableMarkDone','tolerant','~lock','ctxHeartbeat','pressure','Date','encryptionKeys','a\x20non-empty\x20string','STARTED','exportBlobs','ms/','$and','node:fs','calculateDelta','_facade','job_type.defaults.backoff_multiplier\x20must\x20be\x20number\x20>=\x201\x20or\x20null','privateKey','_handles','ctxLog','system','job\x20type\x20must\x20be\x20object','getCount','whenSettled','retryJob','_blobStatusDb','drain'];_0x49fd=function(){return _0xee5233;};return _0x49fd();}function requireKeyenc(){const _0x48b000=_0x2d5353;if(hasRequiredKeyenc)return keyenc;hasRequiredKeyenc=0x1;const {writeKey:_0x486de0}=requireDist(),_0x1c47ec=0x7ba,_0xeefb12=0x1000;function _0x2ad51c(_0x5da6ff,_0x1ff97a){const _0x2bdb94=_0x36a2;switch(typeof _0x5da6ff){case _0x2bdb94(0x84a):return _0x5da6ff[_0x2bdb94(0x192)]<=_0x1c47ec&&_0x5da6ff[_0x2bdb94(0x40f)]();case _0x2bdb94(0x859):case _0x2bdb94(0x2ff):return!![];case _0x2bdb94(0x712):if(_0x5da6ff===null)return!![];if(Array[_0x2bdb94(0x7e3)](_0x5da6ff)){if(_0x1ff97a>0x8||_0x5da6ff['length']>_0x1c47ec)return![];for(let _0x32709b=0x0;_0x32709b<_0x5da6ff[_0x2bdb94(0x192)];_0x32709b++)if(!_0x2ad51c(_0x5da6ff[_0x32709b],_0x1ff97a+0x1))return![];return!![];}return Buffer[_0x2bdb94(0x478)](_0x5da6ff)&&_0x5da6ff[_0x2bdb94(0x192)]<=_0x1c47ec;default:return![];}}function _0x141bea(_0x271c6a,_0x3bb8fb){const _0x364eb0=_0x36a2,_0x81b529=typeof _0x271c6a;if(_0x81b529==='string'){if(_0x271c6a[_0x364eb0(0x192)]>=0x40||!_0x271c6a[_0x364eb0(0x40f)]()){if(!_0x2ad51c(_0x271c6a,0x0))return-0x1;}}else{if(_0x81b529!=='number'){if(Array['isArray'](_0x271c6a)?_0x271c6a[_0x364eb0(0x192)]===0x0||!_0x2ad51c(_0x271c6a,0x0):!_0x2ad51c(_0x271c6a,0x0))return-0x1;}}let _0x31ddeb;try{_0x31ddeb=_0x486de0(_0x271c6a,_0x3bb8fb,0x0);}catch{return-0x1;}return _0x31ddeb>0x0&&_0x31ddeb<=_0x1c47ec?_0x31ddeb:-0x1;}return keyenc={'encodeKey':_0x141bea,'KEY_BUF_SIZE':_0xeefb12,'NO_FAST':Symbol(_0x48b000(0x498))},keyenc;}var okdbHlc,hasRequiredOkdbHlc;function requireOkdbHlc(){const _0x523bcf=_0x2d5353;if(hasRequiredOkdbHlc)return okdbHlc;hasRequiredOkdbHlc=0x1;const _0x59b003=0x400,_0x28e5fc=_0x59b003-0x1,_0x3601db=0xea60;function _0x23219f(_0x4bcbc4,_0x50a24b){const _0x11bd53=_0x36a2;return _0x4bcbc4*_0x59b003+Math['max'](0x0,Math[_0x11bd53(0x7bc)](_0x50a24b,_0x28e5fc));}function _0x418ea4(_0x4c248f){const _0xc583ee=_0x36a2,_0xce0612=Math[_0xc583ee(0x81c)](0x0,Number(_0x4c248f)||0x0),_0x25cbfa=_0xce0612%_0x59b003,_0x4749d1=(_0xce0612-_0x25cbfa)/_0x59b003;return{'pt':_0x4749d1,'l':_0x25cbfa};}function _0x22bad0(_0x153a97,_0x1a6e90=Date[_0x523bcf(0x76a)]()){const _0xd82ceb=_0x523bcf,{pt:_0x4ddd41,l:_0xa099a6}=_0x418ea4(_0x153a97),_0x4ca972=Math['max'](_0x4ddd41,_0x1a6e90),_0x2fa927=_0x4ca972===_0x4ddd41?Math[_0xd82ceb(0x7bc)](_0xa099a6+0x1,_0x28e5fc):0x0;return _0x23219f(_0x4ca972,_0x2fa927);}function _0x2d4453(_0x1eb885,_0x24eea3,_0x2a4db7=Date[_0x523bcf(0x76a)]()){const _0x9258b4=_0x523bcf,{pt:_0x1f81b7,l:_0x2c67f2}=_0x418ea4(_0x1eb885),{pt:_0x650674,l:_0x8f7462}=_0x418ea4(_0x24eea3),_0x40b259=Math[_0x9258b4(0x81c)](_0x1f81b7,_0x650674,_0x2a4db7);let _0x35a182;if(_0x40b259===_0x1f81b7&&_0x40b259===_0x650674)_0x35a182=Math['min'](Math[_0x9258b4(0x81c)](_0x2c67f2,_0x8f7462)+0x1,_0x28e5fc);else{if(_0x40b259===_0x1f81b7)_0x35a182=Math[_0x9258b4(0x7bc)](_0x2c67f2+0x1,_0x28e5fc);else _0x40b259===_0x650674?_0x35a182=Math[_0x9258b4(0x7bc)](_0x8f7462+0x1,_0x28e5fc):_0x35a182=0x0;}return _0x23219f(_0x40b259,_0x35a182);}function _0x2d657b(_0x23d4f4,_0x451b4f){const _0x1e9587=Number(_0x23d4f4)||0x0,_0x3eb639=Number(_0x451b4f)||0x0;if(_0x1e9587<_0x3eb639)return-0x1;if(_0x1e9587>_0x3eb639)return 0x1;return 0x0;}function _0x565f70(_0x22bc5f){return _0x418ea4(_0x22bc5f)['pt'];}return okdbHlc={'send':_0x22bad0,'recv':_0x2d4453,'compare':_0x2d657b,'toMs':_0x565f70,'encode':_0x23219f,'decode':_0x418ea4,'SCALE':_0x59b003,'L_MAX':_0x28e5fc,'DRIFT_MAX':_0x3601db},okdbHlc;}var env,hasRequiredEnv;function requireEnv(){const _0x4e67d6=_0x2d5353;if(hasRequiredEnv)return env;hasRequiredEnv=0x1;const {fromArray:_0x10c8a8,chunkedRange:_0x1665ed,pinnedChunks:_0x1bc2c5,claimPrefetch:_0x3cea51}=requireIterable(),{reclass:_0x166499,NotImplementedNative:_0x3ab58c,OKDBError:_0x462cf0,optionsArg:_0x3702c7}=requireErrors(),{OKDBViews:_0x96f27f}=requireViews(),{OKDBQueue:_0xafdba6}=requireQueue(),{OKDBTimeMachine:_0x264fe9}=requireTimemachine(),_0x5a9d16=_0x92a57d=>{const _0x4800d3=_0x36a2;try{return!_0x92a57d[_0x4800d3(0x825)]||_0x92a57d[_0x4800d3(0x825)][_0x4800d3(0x260)]('timeMachine');}catch{return!![];}},{OKDBFiles:_0x2770b7}=requireFiles(),{OKDBEngines:_0x5105f8,OKDBPipelines:_0x58fad6}=requireEngines(),{OKDBFunctions:_0x3f84c2}=requireFunctions(),_0x51b4df=requireProcessor(),{RawDb:_0x2b4711}=requireRawdb(),_0x2c3b7f=requireBridge();let _0x524230=null;const _0x42064b=()=>_0x524230||=requireOkdbTransaction(),_0x1408da=(..._0x36b186)=>requireOkdbGuardedRange()[_0x4e67d6(0x592)](..._0x36b186),_0x4248e9=Buffer[_0x4e67d6(0x3ed)]([0xff]),_0x3924ea=process.env.OKDB_NATIVE_RAW_READS!=='0',_0x156629=_0x3924ea&&process.env.OKDB_NATIVE_FAST_GET!=='0',{NO_FAST:_0x1b1955}=requireKeyenc(),_0x22d911=new Set(_0x3924ea?[_0x4e67d6(0x35a),_0x4e67d6(0x120),_0x4e67d6(0x450),'getChanges',_0x4e67d6(0x462)]:[]),_0x296d11=new Set([_0x4e67d6(0x6ce),'getEntry',_0x4e67d6(0x438),_0x4e67d6(0x35a),'getKeys',_0x4e67d6(0x38b),_0x4e67d6(0x7d6),_0x4e67d6(0x1e2),_0x4e67d6(0x6c7),_0x4e67d6(0x120),'countByIndex',_0x4e67d6(0x450),_0x4e67d6(0x548),_0x4e67d6(0x71f),_0x4e67d6(0x863),'getChanges',_0x4e67d6(0x21b),_0x4e67d6(0x76a),_0x4e67d6(0x6e2),_0x4e67d6(0x1c7),_0x4e67d6(0x6b5),_0x4e67d6(0x447),'getIndexMeta',_0x4e67d6(0x436),_0x4e67d6(0x2fc),_0x4e67d6(0x77f),_0x4e67d6(0x30e),_0x4e67d6(0x5fe),_0x4e67d6(0x7a3),_0x4e67d6(0x713),_0x4e67d6(0x6e0),'getRefViolation','listRefViolations',_0x4e67d6(0x4a1),_0x4e67d6(0x7fd),'ttlStats',_0x4e67d6(0x3e7),_0x4e67d6(0x425),_0x4e67d6(0x733),'id',_0x4e67d6(0x274),_0x4e67d6(0x391),_0x4e67d6(0x756),'readField',_0x4e67d6(0x86c)]),_0x5e791f=new Set([_0x4e67d6(0x4df),'end',_0x4e67d6(0x5ca),_0x4e67d6(0x15c),_0x4e67d6(0x87e),_0x4e67d6(0x378),_0x4e67d6(0x332),'versions','values',_0x4e67d6(0x22c),'transaction',_0x4e67d6(0x5c0),_0x4e67d6(0x2cc),_0x4e67d6(0x139)]);function _0x280303(_0x17d90e,_0x1bd5b3,_0x568a41){const _0x3d95fe=new Map();return(_0x5d46c5,_0x51b475)=>{const _0x44d015=_0x36a2,_0x12a3c9=JSON[_0x44d015(0x84b)](_0x51b475),_0x105cb4=_0x3d95fe[_0x44d015(0x6ce)](_0x12a3c9);if(_0x105cb4){if(_0x105cb4[_0x44d015(0x76c)]===_0x44d015(0x641))throw _0xf70a4e();_0x3d95fe['delete'](_0x12a3c9);if(_0x105cb4[_0x44d015(0x76c)]===_0x44d015(0x20f))throw _0x105cb4[_0x44d015(0x821)];return _0x105cb4[_0x44d015(0x821)];}const _0x7c5f8=_0x5d46c5(..._0x51b475);if(!_0x7c5f8||typeof _0x7c5f8[_0x44d015(0x600)]!==_0x44d015(0x3b3))return _0x7c5f8;const _0x2f3b21={'state':_0x44d015(0x641),'value':undefined},_0xc753ac=(_0x1f285b,_0x192c98)=>{const _0x10279e=_0x44d015;_0x2f3b21[_0x10279e(0x76c)]=_0x1f285b,_0x2f3b21[_0x10279e(0x821)]=_0x192c98;if(_0x3d95fe[_0x10279e(0x6ce)](_0x12a3c9)!==_0x2f3b21)return;setTimeout(()=>_0x3d95fe[_0x10279e(0x6ce)](_0x12a3c9)===_0x2f3b21&&_0x3d95fe[_0x10279e(0x243)](_0x12a3c9),0x7530)[_0x10279e(0x46f)]();try{_0x17d90e[_0x10279e(0x4f7)][_0x10279e(0x24a)](_0x10279e(0x5d6),null,_0x10279e(0x839),['field:resolver_registered',{'env':_0x17d90e[_0x10279e(0x425)],'type':_0x1bd5b3,'field':_0x568a41}],!![]);}catch{}};_0x7c5f8[_0x44d015(0x600)](_0x452f42=>_0xc753ac('ok',_0x452f42),_0x32615e=>_0xc753ac('err',_0x32615e));for(let _0x3fcdd6=0x0;_0x3fcdd6<0x64&&_0x2f3b21[_0x44d015(0x76c)]===_0x44d015(0x641);_0x3fcdd6++)process['_tickCallback']();if(_0x2f3b21[_0x44d015(0x76c)]==='ok')return _0x2f3b21[_0x44d015(0x821)];if(_0x2f3b21[_0x44d015(0x76c)]===_0x44d015(0x20f))throw _0x2f3b21['value'];_0x3d95fe[_0x44d015(0x7a0)](_0x12a3c9,_0x2f3b21);throw _0xf70a4e();};}function _0xf70a4e(){const _0x251edb=_0x4e67d6;return Object['assign'](new Error(_0x251edb(0x47d)),{'code':'FIELD_RESOLVER_PENDING'});}class _0x3302b2{constructor(_0x294ff3,_0x1f4522){const _0x4d6387=_0x4e67d6;this[_0x4d6387(0x4f7)]=_0x294ff3,this['name']=_0x1f4522,this[_0x4d6387(0x5d6)]=_0x294ff3[_0x4d6387(0x5d6)],this[_0x4d6387(0x71e)]=_0x294ff3[_0x4d6387(0x71e)],this[_0x4d6387(0x67d)]=!![],this['_txnBuf']=null,this[_0x4d6387(0x555)]=new _0x96f27f(this),this['processor']=new _0x51b4df(this);if(!_0x1f4522[_0x4d6387(0x48b)]('~')||_0x1f4522[_0x4d6387(0x6f8)](_0x4d6387(0x502)))this[_0x4d6387(0x72c)]=new _0xafdba6(this);if(!_0x1f4522[_0x4d6387(0x48b)]('~'))this[_0x4d6387(0x669)]=new _0x2770b7(this);this[_0x4d6387(0x792)]=new _0x3f84c2(_0x294ff3,_0x1f4522),this[_0x4d6387(0x617)]=new _0x5105f8(_0x294ff3,_0x1f4522,_0x294ff3['engines']),this['pipelines']=new _0x58fad6(_0x294ff3,_0x1f4522);if(!_0x1f4522[_0x4d6387(0x48b)]('~')&&_0x294ff3['options']['timeMachine']&&_0x5a9d16(_0x294ff3))this[_0x4d6387(0x858)]=new _0x264fe9(this);_0x2c3b7f[_0x4d6387(0x49e)](this[_0x4d6387(0x733)],this);const _0x567075=this;this['_writer']={async 'transaction'(_0x5ed9f5){const _0x228be5=_0x4d6387,_0x2270a6=[];_0x567075[_0x228be5(0x1f8)]=_0x2270a6;try{_0x5ed9f5();}finally{_0x567075[_0x228be5(0x1f8)]=null;}return _0x567075[_0x228be5(0x4f7)][_0x228be5(0x61c)][_0x228be5(0x4eb)](_0x228be5(0x784),_0x567075['name'],_0x228be5(0x65f),[_0x2270a6]);},'drain'(){const _0x47e1f2=_0x4d6387;return _0x567075[_0x47e1f2(0x4f7)]['_wb'][_0x47e1f2(0x7da)]();},'flushLmdb'(){const _0xbf366a=_0x4d6387;return _0x567075[_0xbf366a(0x4f7)][_0xbf366a(0x61c)][_0xbf366a(0x7da)]();},'markClosed'(){}};const _0x396471=new _0x2b4711(this,'');_0x396471[_0x4d6387(0x20d)]=()=>({'lastTxnId':this['_n'](_0x4d6387(0x274),[])}),Object[_0x4d6387(0x2ad)](_0x396471,_0x4d6387(0x284),{'get':()=>this[_0x4d6387(0x4f7)][_0x4d6387(0x61c)]['drain'](),'configurable':!![]}),Object[_0x4d6387(0x2ad)](_0x396471,'flushed',{'get':()=>this['okdb'][_0x4d6387(0x61c)]['drain'](),'configurable':!![]});const _0x51d12c=_0x396471[_0x4d6387(0x6ce)][_0x4d6387(0x7b2)](_0x396471);_0x396471[_0x4d6387(0x6ce)]=_0x231c1b=>_0x231c1b===_0x4d6387(0x54b)?this['_n']('getClock',[null]):_0x51d12c(_0x231c1b),this['db']=_0x396471;}async[_0x4e67d6(0x182)](){const _0x6f024=_0x4e67d6;this[_0x6f024(0x3f4)]=!![];}get[_0x4e67d6(0x4ab)](){const _0x10ee9f=_0x4e67d6;return new Map(this[_0x10ee9f(0x4f7)][_0x10ee9f(0x24a)]('db',null,_0x10ee9f(0x536),[this['name']],![]));}get['typesDb'](){const _0x56f43a=_0x4e67d6;return this[_0x56f43a(0x242)]||(this[_0x56f43a(0x242)]=new _0x2b4711(this,'types'));}[_0x4e67d6(0x726)](_0x269bb7){const _0x39938a=_0x4e67d6,_0xf74791=this['typesDb']['get'](_0x269bb7);if(_0xf74791===undefined||String(_0x269bb7)[_0x39938a(0x48b)]('~fts:')||String(_0x269bb7)['startsWith'](_0x39938a(0x60c))){const {OKDBError:_0x592c6b}=requireErrors();throw new _0x592c6b(_0x39938a(0x5b7)+_0x269bb7+'\x22\x20is\x20not\x20registered',_0x39938a(0x1cf),{'type':_0x269bb7});}const _0x58e94c=this,_0x2cb8ff=new _0x2b4711(_0x58e94c,_0x39938a(0x554)+_0x269bb7+':index'),_0x14474a=new Map();for(const _0x191a9d of _0x2cb8ff[_0x39938a(0x462)]()){const _0x1dfe18=_0x2cb8ff['get'](_0x191a9d)||{},_0x33cb69={'parts':_0x191a9d[_0x39938a(0x4f0)]('~'),'db':new _0x2b4711(_0x58e94c,_0x39938a(0x554)+_0x269bb7+_0x39938a(0x476)+_0x191a9d,{'dupSort':!![]})};if(_0x1dfe18[_0x39938a(0x4a6)])_0x33cb69[_0x39938a(0x4a6)]=_0x1dfe18[_0x39938a(0x4a6)];if(_0x1dfe18[_0x39938a(0x27a)])_0x33cb69['unique']=!![];if(_0x1dfe18['sparse'])_0x33cb69[_0x39938a(0x6b7)]=!![];if(_0x1dfe18[_0x39938a(0x263)])_0x33cb69[_0x39938a(0x263)]=_0x1dfe18[_0x39938a(0x263)];_0x33cb69[_0x39938a(0x1a5)]=new Set((_0x1dfe18[_0x39938a(0x1a5)]??[])[_0x39938a(0x4e8)](_0x3fa22c=>_0x3fa22c[_0x39938a(0x50a)]+':'+_0x3fa22c[_0x39938a(0x425)])),_0x14474a[_0x39938a(0x7a0)](_0x191a9d,_0x33cb69);}return{'root':new _0x2b4711(_0x58e94c,'type:'+_0x269bb7),'data':new _0x2b4711(_0x58e94c,_0x39938a(0x554)+_0x269bb7+_0x39938a(0x83a),{'useVersions':!![]}),'indexes':_0x2cb8ff,'clockToChange':new _0x2b4711(_0x58e94c,'type:'+_0x269bb7+_0x39938a(0x670)),'keyToChange':new _0x2b4711(_0x58e94c,_0x39938a(0x554)+_0x269bb7+_0x39938a(0x3f2)),'fieldSchema':new Map(Object[_0x39938a(0x45b)](_0xf74791[_0x39938a(0x39f)]||{})[_0x39938a(0x4e8)](([_0xb4d51f,_0x281bac])=>[_0xb4d51f,new Set(Array[_0x39938a(0x7e3)](_0x281bac)?_0x281bac:[_0x281bac])])),'indexToDb':_0x14474a,'ftsToDb':null,'schema':_0xf74791['schema']||null,'defaultTTL':_0xf74791[_0x39938a(0x412)]||null};}get[_0x4e67d6(0x34c)](){const _0x12b2bd=_0x4e67d6,_0x37c1eb=this,_0x5bf4a5=()=>_0x37c1eb[_0x12b2bd(0x1c7)]();return{'get':_0x482cb2=>{try{return _0x37c1eb['_getType'](_0x482cb2);}catch{return undefined;}},'has':_0x3362e6=>_0x5bf4a5()['includes'](_0x3362e6),'keys':()=>_0x5bf4a5()[Symbol[_0x12b2bd(0x1f2)]](),get 'size'(){return _0x5bf4a5()['length'];}};}[_0x4e67d6(0x74b)](){const _0x502e84=_0x4e67d6;return this[_0x502e84(0x1c7)]();}get[_0x4e67d6(0x656)](){const _0x2f90fd=_0x4e67d6;return this[_0x2f90fd(0x573)]||(this[_0x2f90fd(0x573)]=new _0x2b4711(this,'changes'));}get['clockToChangeDb'](){const _0x38d0e0=_0x4e67d6;return this[_0x38d0e0(0x84d)]||(this[_0x38d0e0(0x84d)]=new _0x2b4711(this,_0x38d0e0(0x3db)));}[_0x4e67d6(0x1a8)](_0x3e4291){return this['_n']('advanceHlcOnRecv',[_0x3e4291]);}get[_0x4e67d6(0x3d2)](){const _0x3b70b9=_0x4e67d6;return!this['_n'](_0x3b70b9(0x482),[],![]);}get[_0x4e67d6(0x5e8)](){const _0xbd1cdc=_0x4e67d6;return this[_0xbd1cdc(0x67c)]!==undefined?this['__syncOverride']:this['_n'](_0xbd1cdc(0x482),[],![]);}set[_0x4e67d6(0x5e8)](_0x36696a){this['__syncOverride']=_0x36696a;}get[_0x4e67d6(0x2d5)](){const _0x1514ed=_0x4e67d6;return this[_0x1514ed(0x72a)]||(this[_0x1514ed(0x72a)]=new(requireLock())[(_0x1514ed(0x34f))](this[_0x1514ed(0x4f7)],'~system','compact',{'ttlMs':0xea60}));}get['path'](){const _0x3903bb=_0x4e67d6;return this[_0x3903bb(0x2ee)]??(this[_0x3903bb(0x2ee)]=this['_n'](_0x3903bb(0x733),[]));}get['id'](){return this['_n']('id',[]);}get[_0x4e67d6(0x44e)](){const _0xcad581=_0x4e67d6;return this[_0xcad581(0x4f7)]['role'];}['_n'](_0x1cb0fd,_0xdc89bf){const _0x10404f=_0x4e67d6;return this[_0x10404f(0x4f7)][_0x10404f(0x24a)](_0x10404f(0x784),this[_0x10404f(0x425)],_0x1cb0fd,_0xdc89bf,!_0x296d11['has'](_0x1cb0fd));}[_0x4e67d6(0x1cd)](_0x34d1f1){const _0x306c94=_0x4e67d6;return this[_0x306c94(0x4f7)][_0x306c94(0x664)](_0x34d1f1);}[_0x4e67d6(0x630)](_0x224a3e,_0x45f44a){const _0x2b3f4d=_0x4e67d6;if(_0x22d911[_0x2b3f4d(0x69d)](_0x224a3e==='pinned'?_0x45f44a[0x1]:_0x224a3e))return this['okdb'][_0x2b3f4d(0x437)](this[_0x2b3f4d(0x425)],_0x224a3e,_0x45f44a);return this[_0x2b3f4d(0x4f7)][_0x2b3f4d(0x799)](_0x2b3f4d(0x784),this['name'],_0x224a3e,_0x45f44a);}[_0x4e67d6(0x5d5)](_0x134224={'useReadTransaction':![]}){return new(_0x42064b())(this,_0x134224);}async[_0x4e67d6(0x346)](_0x4c38da,_0x56152a){const _0x26bfa2=_0x4e67d6;return _0x42064b()[_0x26bfa2(0x269)](this,_0x4c38da,_0x56152a);}[_0x4e67d6(0x757)](_0x57a00b,_0xfafe37){const _0x15e058=_0x4e67d6;if(this[_0x15e058(0x1f8)])this[_0x15e058(0x1f8)]['push']({'action':_0x57a00b,'args':_0xfafe37});else this['_n'](_0x57a00b,_0xfafe37);}[_0x4e67d6(0x184)](_0x2eaf58,_0x22fadb,_0x46461a,_0x4c8f04,_0x4de4b1){const _0x5637f3=_0x4e67d6;this[_0x5637f3(0x757)]('put',[_0x22fadb,_0x46461a,_0x4c8f04,_0x4de4b1]);}['_update'](_0x3cdb92,_0x28fa9b,_0x21807f,_0x27fed8,_0x581038){const _0x5644e=_0x4e67d6;this[_0x5644e(0x757)](_0x5644e(0x1a2),[_0x28fa9b,_0x21807f,_0x27fed8,_0x581038]);}['_patch'](_0x36fefe,_0x5c0a3,_0x4f070a,_0x2a76a7,_0x24e534){const _0x4ba2a8=_0x4e67d6;this[_0x4ba2a8(0x757)]('patch',[_0x5c0a3,_0x4f070a,_0x2a76a7,_0x24e534]);}[_0x4e67d6(0x26f)](_0x30fdb2,_0x1faa6c,_0x1e8379,_0x9536fc,_0x174fa7){const _0x5a5d50=_0x4e67d6;this['_low'](_0x5a5d50(0x569),[_0x1faa6c,_0x1e8379,_0x9536fc,_0x174fa7]);}[_0x4e67d6(0x697)](_0x1815f7,_0x3756b2,_0x51ce8c,_0x31e5f9){const _0x10dc9b=_0x4e67d6;this[_0x10dc9b(0x757)]('remove',[_0x3756b2,_0x51ce8c,_0x31e5f9]);}[_0x4e67d6(0x28d)](_0x366be2,_0x4b2656,_0x9b2834,_0x5487c4){const _0xceb1eb=_0x4e67d6;this[_0xceb1eb(0x757)](_0xceb1eb(0x235),[_0x4b2656,_0x9b2834,_0x5487c4]);}[_0x4e67d6(0x162)](_0xb8b2e1,_0x22ce38,_0x50e3fa){const _0x10b2b7=_0x4e67d6;this['_low'](_0x10b2b7(0x449),[_0x22ce38,_0x50e3fa]);}['_w'](_0x3c8132,_0x238e64){const _0x99792a=_0x4e67d6;return this[_0x99792a(0x4f7)][_0x99792a(0x61c)][_0x99792a(0x4eb)](_0x99792a(0x784),this[_0x99792a(0x425)],_0x3c8132,_0x238e64);}[_0x4e67d6(0x14f)](_0x5f0d20,_0x3797ed,_0x14ec60,_0x11fb69={}){const _0x14348f=_0x4e67d6;return this['_w'](_0x14348f(0x14f),[_0x5f0d20,_0x3797ed,_0x14ec60,_0x11fb69]);}[_0x4e67d6(0x1a2)](_0x1d61b3,_0x69fbac,_0x4e95b5,_0x3d2ba2={}){const _0x3774df=_0x4e67d6;return this['_w'](_0x3774df(0x1a2),[_0x1d61b3,_0x69fbac,_0x4e95b5,_0x3d2ba2]);}[_0x4e67d6(0x41f)](_0x4ae741,_0x230d02,_0x22075a,_0x3fed40={}){const _0x215d11=_0x4e67d6;return this['_w'](_0x215d11(0x41f),[_0x4ae741,_0x230d02,_0x22075a,_0x3fed40]);}[_0x4e67d6(0x569)](_0x438767,_0x269b5a,_0x5ad04e,_0x1143ab={}){const _0x5109e7=_0x4e67d6;return this['_w'](_0x5109e7(0x569),[_0x438767,_0x269b5a,_0x5ad04e,_0x1143ab]);}['remove'](_0x32611c,_0x3baaa7,_0x45c250={}){const _0x4da0e9=_0x4e67d6;return this['_w'](_0x4da0e9(0x78e),[_0x32611c,_0x3baaa7,_0x45c250]);}['get'](_0x529781,_0x5eabcc,_0x3bd9a1){const _0x249098=_0x4e67d6;if(_0x156629&&typeof _0x529781===_0x249098(0x84a)){const _0x4bb5c5=this[_0x249098(0x4f7)]['_getFast'](this[_0x249098(0x425)],_0x529781,_0x5eabcc);if(_0x4bb5c5!==_0x1b1955)return _0x4bb5c5===null?this['_n']('get',[_0x529781,_0x5eabcc]):_0x4bb5c5;}if(_0x3924ea&&(typeof _0x5eabcc===_0x249098(0x84a)||typeof _0x5eabcc===_0x249098(0x859))){const _0x54a63c=this[_0x249098(0x4f7)]['_getRaw'](this[_0x249098(0x425)],_0x529781,_0x5eabcc);if(_0x54a63c!==null)return _0x54a63c;}return this['_n'](_0x249098(0x6ce),[_0x529781,typeof _0x5eabcc===_0x249098(0x721)?null:_0x5eabcc]);}['getMany'](_0x524f3d,_0x571dfa,_0x578c0e){const _0x1e52fa=_0x4e67d6,_0x45a6b2=[_0x524f3d,Array[_0x1e52fa(0x7e3)](_0x571dfa)&&_0x571dfa[_0x1e52fa(0x454)](_0x3c0e79=>typeof _0x3c0e79===_0x1e52fa(0x721))?_0x571dfa['map'](_0x1dc1d9=>typeof _0x1dc1d9==='symbol'?null:_0x1dc1d9):_0x571dfa];return _0x3924ea?this[_0x1e52fa(0x4f7)][_0x1e52fa(0x437)](this[_0x1e52fa(0x425)],'getMany',_0x45a6b2):this['_n']('getMany',_0x45a6b2);}[_0x4e67d6(0x638)](_0x1cf92e,_0x27e531,_0x55ae04){const _0x4c5fbb=_0x4e67d6;return this['_n'](_0x4c5fbb(0x638),[_0x1cf92e,typeof _0x27e531===_0x4c5fbb(0x721)?null:_0x27e531]);}[_0x4e67d6(0x7d6)](_0x542ea0,_0x473242){const _0x223bfd=_0x4e67d6;return this[_0x223bfd(0x3d6)](_0x223bfd(0x7d6),_0x473242),this['_n'](_0x223bfd(0x7d6),[_0x542ea0,_0x27f346(_0x473242)]);}[_0x4e67d6(0x3d6)](_0x4fb751,_0x2ef67a,_0x4cee99=[]){const _0x31d9b2=_0x4e67d6;if(!_0x2ef67a||typeof _0x2ef67a!==_0x31d9b2(0x712))return;for(const _0x40e101 of Object[_0x31d9b2(0x50d)](_0x2ef67a)){if(!_0x5e791f[_0x31d9b2(0x69d)](_0x40e101)&&!_0x4cee99[_0x31d9b2(0x6f8)](_0x40e101))throw new _0x462cf0(_0x4fb751+_0x31d9b2(0x395)+_0x40e101+'\x27',_0x31d9b2(0x45e),{'option':_0x40e101});}}[_0x4e67d6(0x130)](_0x333c26,_0x2b313e,_0x59dd03,_0x26c772,_0x5ef2bc,_0x3e5585){const _0x5890cf=_0x4e67d6;this['_assertRangeOptions'](_0x333c26,_0x26c772);const _0x1dea96=_0x26c772?.['snapshot'],_0x16a705=_0x27f346(_0x26c772);if(_0x1dea96===!![]||_0x1dea96===_0x5890cf(0x7c2)){const _0x248a07=this['_lazyPinned'](_0x333c26,_0x2b313e,_0x536ac3=>[_0x59dd03,{..._0x16a705,..._0x536ac3}],_0x26c772);return _0x3e5585?_0x248a07[_0x5890cf(0x4e8)](_0x3e5585):_0x248a07;}const _0x2a065a=_0x1665ed(_0x5d8083=>this['_np'](_0x2b313e,[_0x59dd03,_0x5d8083]),_0x16a705,_0x5ef2bc,{'rows':_0x2b313e===_0x5890cf(0x35a)});return _0x3e5585?_0x2a065a['map'](_0x3e5585):_0x2a065a;}[_0x4e67d6(0x566)](_0x599fe3,_0x2bb63e,_0x38c9f1,_0x25272a,_0x1ec927,_0x292f55=![]){const _0x233cf4=_0x4e67d6,{source:_0x1f34c5,prefetch:_0x5843dd}=_0x1bc2c5((_0xf4bf7a,_0x11fa9a)=>_0xf4bf7a===_0x233cf4(0x2fc)?this['_n'](_0xf4bf7a,_0x11fa9a):this[_0x233cf4(0x630)](_0xf4bf7a,_0x11fa9a),_0x2bb63e,_0x38c9f1,_0x25272a||{},_0x1ec927),_0x3db11d=_0x5843dd(),_0x2223c7=!_0x292f55&&_0x25272a&&_0x25272a[_0x233cf4(0x22c)]===_0x233cf4(0x7c2);let _0x3e80dd=null;return _0x1408da(()=>({[Symbol['iterator']]:()=>_0x3e80dd=_0x1f34c5(0x0,_0x3cea51(_0x3db11d))}),{'label':this[_0x233cf4(0x425)]+':'+_0x599fe3,..._0x2223c7?{'getTxnId':()=>this['db']['getStats']()['lastTxnId'],'resume':()=>({[Symbol['iterator']]:()=>_0x3e80dd=_0x3e80dd['resumed']()})}:{}});}[_0x4e67d6(0x35a)](_0x526c7b,_0x1de8dc){const _0x5bceb3=_0x4e67d6;return this[_0x5bceb3(0x130)](_0x5bceb3(0x35a),_0x5bceb3(0x35a),_0x526c7b,_0x1de8dc,_0xbabf49=>_0xbabf49[_0x5bceb3(0x5c0)]);}['getKeys'](_0x3aa8e2,_0x24af1f){const _0x40afb1=_0x4e67d6;return this[_0x40afb1(0x130)](_0x40afb1(0x462),_0x40afb1(0x462),_0x3aa8e2,_0x24af1f,_0x41de03=>_0x41de03);}[_0x4e67d6(0x38b)](_0x23ad84,_0x48b5ea){const _0x1b6a19=_0x4e67d6;return this['_range']('getValues',_0x1b6a19(0x35a),_0x23ad84,_0x48b5ea,_0xde48bc=>_0xde48bc[_0x1b6a19(0x5c0)],_0x57a383=>_0x57a383['value']);}['getByPrefix'](_0x26ae06,_0x25dca1,_0x53f96e={}){const _0x476f2f=_0x4e67d6;return this[_0x476f2f(0x35a)](_0x26ae06,{'start':_0x25dca1,'end':_0x25dca1+'￿',..._0x53f96e});}[_0x4e67d6(0x6c7)](_0x370a4f,_0x499f7c,_0x49a5f0={}){const _0x29cc55=_0x4e67d6;this['_assertRangeOptions']('getIndex',_0x49a5f0,[_0x29cc55(0x139)]);const _0x13e38c=_0x27f346(_0x49a5f0);if(_0x49a5f0&&_0x49a5f0[_0x29cc55(0x5d5)])return _0x10c8a8(this['_n'](_0x29cc55(0x6c7),[_0x370a4f,_0x499f7c,_0x13e38c]));return this[_0x29cc55(0x566)](_0x29cc55(0x6c7),_0x29cc55(0x6c7),_0xb4283b=>[_0x370a4f,_0x499f7c,{..._0x13e38c,..._0xb4283b}],_0x49a5f0,undefined,!![]);}['byIndex'](_0x460b8e,_0x3aed91,_0x5d2798){const _0x464ac2=_0x4e67d6;this[_0x464ac2(0x3d6)](_0x464ac2(0x120),_0x5d2798,[_0x464ac2(0x139),'includeViolations']);const _0x100693=_0x27f346(_0x5d2798);if(_0x5d2798&&_0x5d2798[_0x464ac2(0x5d5)])return _0x10c8a8(this['_n'](_0x464ac2(0x120),[_0x460b8e,_0x3aed91,_0x100693]));return this[_0x464ac2(0x566)]('byIndex',_0x464ac2(0x120),_0x1f4e68=>[_0x460b8e,_0x3aed91,{..._0x100693,..._0x1f4e68}],_0x5d2798,undefined,!![]);}[_0x4e67d6(0x4c2)](_0x5a31eb,_0x9067ef,_0x2b7efc={}){const _0xec626b=_0x4e67d6;return this['_n'](_0xec626b(0x4c2),[_0x5a31eb,_0x9067ef,_0x27f346(_0x2b7efc)]);}[_0x4e67d6(0x450)](_0x73a4db,_0x4920ca={},_0x3ec352={}){const _0x1b1fec=_0x4e67d6,_0x3516cd=_0x2c6aab(_0x3ec352);if(_0x3ec352){for(const _0x5887c7 of Object['keys'](_0x3ec352))if(_0x5887c7!==_0x1b1fec(0x49d)&&typeof _0x3ec352[_0x5887c7]==='function')_0x3516cd[_0x5887c7]=null;}if(_0x3ec352&&(_0x3ec352[_0x1b1fec(0x6ef)]||_0x3ec352['vector']))return this['_n']('assertQueryOptions',[_0x3516cd]),this['_hybridQuery'](_0x73a4db,_0x4920ca,_0x3ec352);const _0x14ea3a=typeof _0x3ec352[_0x1b1fec(0x49d)]===_0x1b1fec(0x3b3)?_0x3ec352[_0x1b1fec(0x49d)]:null;if(_0x3ec352[_0x1b1fec(0x488)]||_0xf1170f(_0x4920ca)||_0x3ec352['transaction']!==undefined){let _0x4b741c=this['_n'](_0x1b1fec(0x450),[_0x73a4db,_0x4920ca,_0x3516cd]);if(_0x14ea3a)_0x4b741c=_0x4b741c[_0x1b1fec(0x4e8)](_0x14ea3a);if(_0x3ec352[_0x1b1fec(0x488)]||_0xf1170f(_0x4920ca))return _0x4b741c;return _0x10c8a8(_0x4b741c);}const _0x33308e=_0x363524=>typeof _0x363524===_0x1b1fec(0x859)&&Number[_0x1b1fec(0x339)](_0x363524)?Math[_0x1b1fec(0x81c)](0x0,_0x363524):Infinity;let _0x136532;if(_0x3ec352[_0x1b1fec(0x4bf)]){const _0x5581da=_0x231983=>typeof _0x231983==='number'&&_0x231983>0x0?Math[_0x1b1fec(0x69c)](_0x231983):0x0;_0x136532=this[_0x1b1fec(0x566)]('query',_0x1b1fec(0x450),_0x21ca72=>[_0x73a4db,_0x4920ca,{..._0x3516cd,..._0x21ca72}],null,{'limitOf':()=>_0x33308e(_0x3516cd[_0x1b1fec(0x15c)]),'offsetOf':()=>_0x5581da(_0x3516cd[_0x1b1fec(0x87e)])});}else _0x136532=_0x1665ed(_0x32de67=>{const _0x52cbb1=_0x1b1fec,{__after:_0x2f588e,..._0xaa173a}=_0x32de67;return this['_np'](_0x52cbb1(0x450),_0x2f588e===undefined?[_0x73a4db,_0x4920ca,_0xaa173a]:[_0x73a4db,_0x4920ca,_0xaa173a,_0x2f588e]);},_0x3516cd,_0x514117=>_0x514117[_0x1b1fec(0x5c0)],{'limitOf':_0x33308e,'rows':!![],'prefetch':!![],'resumeOpts':(_0x37e624,_0x187def)=>{const _0x488037=_0x1b1fec;_0x37e624[_0x488037(0x87e)]=0x0,_0x37e624[_0x488037(0x448)]=_0x187def;}});return _0x14ea3a?_0x136532['map'](_0x14ea3a):_0x136532;}async[_0x4e67d6(0x353)](_0x3b301d,_0xb8d137,_0x3a63f1){const _0x47aa15=_0x4e67d6,{select:_0x2e89bb,..._0x5b4482}=_0x2c6aab(_0x3a63f1);let _0x460ea2={..._0x5b4482};const _0x3ad83f=_0x460ea2['index'];if(_0x3ad83f&&!Array[_0x47aa15(0x7e3)](_0x3ad83f)&&typeof _0x3ad83f==='object'&&_0x3ad83f[_0x47aa15(0x39f)]){const {fields:_0x167ef1,prefix:_0x5caecd,start:_0x517f67,end:_0x463bf5}=_0x3ad83f;_0x460ea2={..._0x460ea2,'index':_0x167ef1,'prefix':_0x5caecd??_0x460ea2[_0x47aa15(0x139)],'startIndex':_0x517f67??_0x460ea2[_0x47aa15(0x7bf)],'endIndex':_0x463bf5??_0x460ea2['endIndex']};}const _0x2c70d4=await this[_0x47aa15(0x4f7)][_0x47aa15(0x67a)](_0x47aa15(0x6ed),null,_0x47aa15(0x4cc),[this[_0x47aa15(0x425)],_0x3b301d,_0xb8d137,_0x460ea2],![]),_0x345a47=typeof _0x3a63f1[_0x47aa15(0x49d)]==='function'?_0x3a63f1[_0x47aa15(0x49d)]:null;if(!_0x345a47)return _0x2c70d4;return _0x2c70d4[_0x47aa15(0x4e8)](_0x430fa3=>{const {score:_0x4451c0,ftsScore:_0x5e85e2,numTerms:_0xef47be,maxScore:_0x4123cb,vectorScore:_0x3a2846,chunkHash:_0x2ee578,chunk:_0x1d96a9,..._0x302147}=_0x430fa3,_0x5a8445=_0x345a47(_0x302147);for(const [_0x1c5a1b,_0x18aede]of Object['entries']({'score':_0x4451c0,'ftsScore':_0x5e85e2,'numTerms':_0xef47be,'maxScore':_0x4123cb,'vectorScore':_0x3a2846,'chunkHash':_0x2ee578,'chunk':_0x1d96a9}))if(_0x18aede!==undefined)_0x5a8445[_0x1c5a1b]=_0x18aede;return _0x5a8445;});}[_0x4e67d6(0x71f)](_0x50a3fa,_0x228d7a,_0x2dea66={}){const _0x5027d8=_0x4e67d6;let _0x32a392=this['_n'](_0x5027d8(0x71f),[_0x50a3fa,_0x228d7a,_0x2c6aab(_0x2dea66)]);if(typeof _0x2dea66[_0x5027d8(0x49d)]==='function')_0x32a392=_0x32a392['map'](_0x2dea66[_0x5027d8(0x49d)]);return _0x32a392;}[_0x4e67d6(0x863)](_0x5f1ed0=null,_0x2b63d3={}){return this['_n']('getClock',[_0x5f1ed0]);}[_0x4e67d6(0x5ed)](_0x4916ef=null,_0x531d36=0x0,_0x44870b=Number[_0x4e67d6(0x143)],_0x1965e7={}){const _0x1fdbbf=_0x4e67d6,_0x47ea8a=_0x27f346(_0x1965e7);if(_0x1965e7&&_0x1965e7[_0x1fdbbf(0x5d5)])return _0x10c8a8(this['_n'](_0x1fdbbf(0x5ed),[_0x4916ef,_0x531d36,_0x44870b,_0x47ea8a]));return this[_0x1fdbbf(0x566)](_0x1fdbbf(0x5ed),_0x1fdbbf(0x5ed),_0x540b0b=>[_0x4916ef,_0x531d36,_0x44870b,{..._0x47ea8a,..._0x540b0b}],_0x1965e7);}[_0x4e67d6(0x21b)](_0x4e627a){const _0x243191=_0x4e67d6;if(Array[_0x243191(0x7e3)](_0x4e627a))return _0x4e627a[_0x243191(0x192)];let _0x2ea626=0x0;for(const _0x4482bd of _0x4e627a)_0x2ea626++;return _0x2ea626;}*['range'](_0x22d03b){yield*_0x22d03b;}[_0x4e67d6(0x76a)](){const _0x109e7b=_0x4e67d6;return requireOkdbHlc()['toMs'](this[_0x109e7b(0x3c3)]);}get[_0x4e67d6(0x429)](){const _0x3f7ee1=_0x4e67d6,_0x647ef0=this[_0x3f7ee1(0x4f7)][_0x3f7ee1(0x67d)]?this[_0x3f7ee1(0x4f7)][_0x3f7ee1(0x24a)]('db',null,_0x3f7ee1(0x740),[this[_0x3f7ee1(0x425)]],![]):null;if(!_0x647ef0)return null;if(this['__ttlCancelledGen']===_0x647ef0['gen'])return null;this[_0x3f7ee1(0x2f0)]=this[_0x3f7ee1(0x2f0)]||new Map();let _0x162032=this['_timerObjs']['get'](_0x647ef0[_0x3f7ee1(0x6d5)]);if(!_0x162032){const _0x3f1224=this;_0x162032={'ref'(){},'unref'(){},'hasRef':()=>![],'gen':_0x647ef0['gen'],'at':_0x647ef0['at'],'target':_0x647ef0[_0x3f7ee1(0x5cf)],get '_destroyed'(){const _0x5a09f7=_0x3f7ee1,_0x46cc86=_0x3f1224['okdb'][_0x5a09f7(0x67d)]?_0x3f1224[_0x5a09f7(0x4f7)][_0x5a09f7(0x24a)]('db',null,_0x5a09f7(0x740),[_0x3f1224[_0x5a09f7(0x425)]],![]):null;return!_0x46cc86||_0x46cc86[_0x5a09f7(0x6d5)]!==this['gen']||_0x3f1224[_0x5a09f7(0x5a6)]===this[_0x5a09f7(0x6d5)];}},this[_0x3f7ee1(0x2f0)][_0x3f7ee1(0x7a0)](_0x647ef0[_0x3f7ee1(0x6d5)],_0x162032);}return _0x162032;}['_cancelTTLTimeout'](){const _0x22e925=_0x4e67d6,_0x167b7d=this[_0x22e925(0x4f7)][_0x22e925(0x24a)]('db',null,_0x22e925(0x740),[this[_0x22e925(0x425)]],![]);if(_0x167b7d)this['__ttlCancelledGen']=_0x167b7d[_0x22e925(0x6d5)];}get[_0x4e67d6(0x298)](){const _0x2a43fd=_0x4e67d6,_0x5c1e7e=this[_0x2a43fd(0x4f7)][_0x2a43fd(0x24a)]('db',null,'ttlTimer',[this[_0x2a43fd(0x425)]],![]);return _0x5c1e7e?_0x5c1e7e[_0x2a43fd(0x5cf)]:null;}get[_0x4e67d6(0x7ec)](){const _0x20403e=_0x4e67d6;return this[_0x20403e(0x4f7)][_0x20403e(0x24a)]('db',null,_0x20403e(0x1bb),[this[_0x20403e(0x425)]],![])?{'ref'(){},'unref'(){}}:null;}[_0x4e67d6(0x3b8)](){const _0x3a7e94=_0x4e67d6;this[_0x3a7e94(0x4f7)][_0x3a7e94(0x24a)]('db',null,_0x3a7e94(0x7ac),[this[_0x3a7e94(0x425)]],![]);}[_0x4e67d6(0x60d)](){const _0x216e61=_0x4e67d6;this[_0x216e61(0x4f7)][_0x216e61(0x24a)]('db',null,_0x216e61(0x849),[this[_0x216e61(0x425)]],![]);}get[_0x4e67d6(0x35b)](){const _0x1970b5=_0x4e67d6,_0x1e6037=(_0x1bb409,_0x348f18)=>this['okdb'][_0x1970b5(0x24a)]('db',null,_0x1bb409,[this[_0x1970b5(0x425)],..._0x348f18],![]),_0x587576=Object[_0x1970b5(0x50d)](_0x1e6037('autoCompactState',[])||{}),_0x571dc7={};for(const _0x14d818 of _0x587576)Object[_0x1970b5(0x2ad)](_0x571dc7,_0x14d818,{'enumerable':!![],'get':()=>_0x1e6037(_0x1970b5(0x7df),[])?.[_0x14d818],'set':_0x39a106=>{const _0x15fa6e=_0x1970b5;_0x1e6037(_0x15fa6e(0x5df),[_0x14d818,_0x39a106]);}});return _0x571dc7;}get[_0x4e67d6(0x3c3)](){const _0x177ddc=_0x4e67d6;return this['_n'](_0x177ddc(0x391),[]);}[_0x4e67d6(0x2f3)](_0xd2764b,_0x2bd29b){const _0xf263b9=_0x4e67d6;return require$$16[_0xf263b9(0x2f8)](_0xd2764b,_0x2bd29b);}async[_0x4e67d6(0x6c6)](_0x1d9173,_0x2bb75e){const _0x16bea7=_0x4e67d6;return this[_0x16bea7(0x1cd)](this['_n'](_0x16bea7(0x6c6),[_0x1d9173]));}['hasType'](_0x3f95ff){return this['_n']('hasType',[_0x3f95ff]);}[_0x4e67d6(0x1c7)](){const _0x2eb713=_0x4e67d6;return this['_n'](_0x2eb713(0x1c7),[]);}async[_0x4e67d6(0x2a9)](_0xff892c,_0x54b4d5){const _0x44d4f6=_0x4e67d6;return this[_0x44d4f6(0x1cd)](this['_n'](_0x44d4f6(0x2a9),[_0xff892c]));}async[_0x4e67d6(0x4e9)](_0x38aa51,_0x2f66c5){const _0x4963bb=_0x4e67d6,{timestamp:_0x40ea21,indexes:indexes=[]}=_0x3702c7(_0x2f66c5);return this['_wsettle'](this['_n'](_0x4963bb(0x4e9),[_0x38aa51,{'indexes':indexes}]));}async['ensure'](_0x2021e1){const _0x294c66=_0x4e67d6,{type:_0x6739bd,indexes:indexes=[],fts:fts=[],views:views=[],schema:schema=null}=_0x3702c7(_0x2021e1,_0x294c66(0x668));if(!_0x6739bd)throw new Error(_0x294c66(0x3fd));await this[_0x294c66(0x4e9)](_0x6739bd,{'indexes':indexes});for(const _0x3de547 of fts){const {name:_0x1ca8e9,fields:_0x4b8886,..._0x2ac535}=_0x3de547;if(!_0x1ca8e9||!_0x4b8886)throw new Error(_0x294c66(0x183));await this[_0x294c66(0x4f7)][_0x294c66(0x6ef)]['ensure'](_0x6739bd,_0x1ca8e9,{'fields':_0x4b8886,..._0x2ac535},this);}for(const _0x58bbba of views){const {name:_0x79a95a,definition:_0x41a529}=_0x58bbba;if(!_0x79a95a||!_0x41a529)throw new Error(_0x294c66(0x75d));if(!await this[_0x294c66(0x555)][_0x294c66(0x6d8)](_0x79a95a))await this[_0x294c66(0x555)][_0x294c66(0x569)](_0x79a95a,_0x41a529);}if(schema)await this[_0x294c66(0x598)](_0x6739bd,schema);}async[_0x4e67d6(0x5cc)](_0x949c49,_0x11c853,_0x24462d){const _0x231640=_0x4e67d6,_0x1f12a6=this['_n'](_0x231640(0x5e3),[_0x949c49,_0x11c853,typeof _0x24462d===_0x231640(0x712)?_0x24462d:{}]);if(!_0x1f12a6)return this['_wsettle'](undefined);const _0x59f33e=this['_n'](_0x231640(0x710),[_0x949c49,_0x11c853,!![]]);if(_0x59f33e===undefined)return this[_0x231640(0x1cd)](undefined);return this[_0x231640(0x1cd)](await this[_0x231640(0x185)](_0x949c49,_0x11c853,_0x59f33e));}async[_0x4e67d6(0x185)](_0x3cf68d,_0x2d53bf,_0x1331bb){const _0x55739d=_0x4e67d6,_0x1d19a3=_0x3cf68d+'@'+[][_0x55739d(0x557)](_0x2d53bf)['join']('~');if(!this[_0x55739d(0x82a)])this[_0x55739d(0x82a)]=new Map();const _0x542c97=this[_0x55739d(0x82a)][_0x55739d(0x6ce)](_0x1d19a3);if(_0x542c97)return _0x542c97;const _0x42040c=((async()=>{do await new Promise(_0xb6dd46=>setImmediate(_0xb6dd46));while(!this['_n']('resetIndexFinish',[_0x3cf68d,_0x2d53bf,_0x1331bb,!![]]));})());this[_0x55739d(0x82a)][_0x55739d(0x7a0)](_0x1d19a3,_0x42040c);try{return await _0x42040c;}finally{this[_0x55739d(0x82a)]['delete'](_0x1d19a3);}}async[_0x4e67d6(0x286)](_0x30e266,_0x39d543,_0xa53c6a){const _0xd79bb7=_0x4e67d6;return this[_0xd79bb7(0x1cd)](this['_n'](_0xd79bb7(0x286),[_0x30e266,_0x39d543]));}async[_0x4e67d6(0x475)](_0x3c9fbb,_0x9ebe38,_0x3557ed){const _0x263f08=_0x4e67d6,_0x14da4e=this[_0x263f08(0x82a)]&&this[_0x263f08(0x82a)][_0x263f08(0x6ce)](_0x3c9fbb+'@'+[]['concat'](_0x9ebe38)['join']('~'));if(_0x14da4e)return _0x14da4e;const _0x512fa3=this['_n']('resetIndexBegin',[_0x3c9fbb,_0x9ebe38,_0x3557ed]);if(_0x512fa3===undefined)return;return await new Promise(_0x415dae=>setImmediate(_0x415dae)),this[_0x263f08(0x1cd)](await this['_indexBuild'](_0x3c9fbb,_0x9ebe38,_0x512fa3));}[_0x4e67d6(0x6b5)](_0x1778d3,_0x44b853){return this['_n']('hasIndex',[_0x1778d3,_0x44b853]);}[_0x4e67d6(0x447)](_0x2cb910,_0x5cea2b){const _0x181c80=_0x4e67d6;return this['_n'](_0x181c80(0x447),[_0x2cb910,_0x5cea2b]);}async[_0x4e67d6(0x6b4)](_0x478fcb,_0xc246a4){const _0x1209bb=_0x4e67d6;if(this['_n'](_0x1209bb(0x447),[_0x478fcb,_0xc246a4])==='ready')return!![];let _0x4b1219=0xa;for(;;){await new Promise(_0x36b3aa=>setTimeout(_0x36b3aa,_0x4b1219));if(!this[_0x1209bb(0x4f7)][_0x1209bb(0x67d)]||this[_0x1209bb(0x3f4)])return![];let _0x1e09c2;try{_0x1e09c2=this['_n'](_0x1209bb(0x5a8),[_0x478fcb,Array[_0x1209bb(0x7e3)](_0xc246a4)?_0xc246a4[_0x1209bb(0x3ee)]('~'):String(_0xc246a4)[_0x1209bb(0x4f0)](',')[_0x1209bb(0x3ee)]('~')]);}catch{return![];}const _0x5c0f15=_0x1e09c2&&_0x1e09c2['status'];if(_0x5c0f15==='ready')return!![];if(_0x5c0f15===undefined)return![];_0x4b1219=Math[_0x1209bb(0x7bc)](_0x4b1219*0x2,0xfa);}}[_0x4e67d6(0x5a8)](_0x39616a,_0x5a60cb){const _0x4dba5e=_0x4e67d6;return this['_n'](_0x4dba5e(0x5a8),[_0x39616a,_0x5a60cb])??null;}['getUniqueViolations'](_0x943354,_0x33f665){const _0x22ac42=_0x4e67d6;return this['_n'](_0x22ac42(0x77f),[_0x943354,_0x33f665]);}[_0x4e67d6(0x30e)](_0xadbb7a,_0x5b4edf){const _0x51bd77=_0x4e67d6;return this['_n'](_0x51bd77(0x30e),[_0xadbb7a,_0x5b4edf]);}[_0x4e67d6(0x5fe)](_0x27a255,_0x213692,_0x375d5d){return this['_n']('getUniqueViolation',[_0x27a255,_0x213692,_0x375d5d])??null;}[_0x4e67d6(0x7a3)](_0x546097){const _0x46b49b=_0x4e67d6;return this['_n'](_0x46b49b(0x7a3),[_0x546097])??null;}async[_0x4e67d6(0x598)](_0x4ccc3e,_0x523b46){const _0x2e069a=_0x4e67d6;return this[_0x2e069a(0x1cd)](this['_n'](_0x2e069a(0x598),[_0x4ccc3e,_0x523b46]));}async[_0x4e67d6(0x39b)](_0x5e770a){const _0x306cea=_0x4e67d6;return this[_0x306cea(0x1cd)](this['_n'](_0x306cea(0x39b),[_0x5e770a]));}[_0x4e67d6(0x713)](_0x1f1cca,_0x454147){const _0x51c759=_0x4e67d6;return this['_n'](_0x51c759(0x713),[_0x1f1cca,_0x454147])??null;}[_0x4e67d6(0x6e0)](_0x1db461){const _0x3b62ea=_0x4e67d6;return this['_n'](_0x3b62ea(0x6e0),[_0x1db461]);}[_0x4e67d6(0x334)](_0x382dc9,_0x46c81d,_0x1b669f){const _0x46479=_0x4e67d6;return this['_n'](_0x46479(0x334),[_0x382dc9,_0x46c81d,_0x1b669f])??null;}[_0x4e67d6(0x1f5)](_0x203697){const _0x560c55=_0x4e67d6;return this['_n'](_0x560c55(0x1f5),[_0x203697]);}async[_0x4e67d6(0x235)](_0x73da1d,_0x50f372,_0x528828){const _0xf03f4=_0x4e67d6;return this[_0xf03f4(0x1cd)](this['_n']('setTTL',[_0x73da1d,_0x50f372,_0x528828]));}[_0x4e67d6(0x4a1)](_0x4a5871,_0x4aff95){const _0x49ff5b=_0x4e67d6;return this['_n'](_0x49ff5b(0x4a1),[_0x4a5871,_0x4aff95]);}async[_0x4e67d6(0x449)](_0x2207ae,_0x16686d){return this['_wsettle'](this['_n']('clearTTL',[_0x2207ae,_0x16686d]));}async[_0x4e67d6(0x852)](_0x5423d4){const _0x205f3c=_0x4e67d6;return this['_n'](_0x205f3c(0x852),[_0x5423d4]);}[_0x4e67d6(0x7fd)](_0x48d86b={}){const _0x161fa1=_0x4e67d6;return this['_n'](_0x161fa1(0x7fd),[_0x48d86b]);}['ttlStats'](_0x2c1bdd){const _0x4883f5=_0x4e67d6;return this['_n'](_0x4883f5(0x564),[_0x2c1bdd]);}async[_0x4e67d6(0x322)](_0x52953d,_0x430a1b){const _0x2a3b12=_0x4e67d6;return this[_0x2a3b12(0x1cd)](this['_n']('setDefaultTTL',[_0x52953d,_0x430a1b]));}[_0x4e67d6(0x3e7)](_0x2bdba5){return this['_n']('getDefaultTTL',[_0x2bdba5]);}async[_0x4e67d6(0x2d8)](_0x6d88d4){const _0x370f94=_0x4e67d6;return this[_0x370f94(0x1cd)](this['_n']('clearDefaultTTL',[_0x6d88d4]));}async['resolveField'](_0x575621,_0x39d0a9,_0x48f195,_0x2630e7){const _0x1e6a5f=_0x4e67d6,{batch:batch=null,batchSize:_0x1e8274}=_0x3702c7(_0x2630e7);if(typeof _0x575621!==_0x1e6a5f(0x84a)||!_0x575621)throw new _0x462cf0('resolveField:\x20type\x20required',_0x1e6a5f(0x29b));if(typeof _0x39d0a9!==_0x1e6a5f(0x84a)||!_0x39d0a9)throw new _0x462cf0('resolveField:\x20field\x20required',_0x1e6a5f(0x29b));if(_0x48f195!=null&&typeof _0x48f195!==_0x1e6a5f(0x3b3))throw new _0x462cf0(_0x1e6a5f(0x589),_0x1e6a5f(0x29b));if(batch!=null&&typeof batch!==_0x1e6a5f(0x3b3))throw new _0x462cf0(_0x1e6a5f(0x3c9),_0x1e6a5f(0x29b));if(!_0x48f195&&!batch)throw new _0x462cf0(_0x1e6a5f(0x4b3),_0x1e6a5f(0x29b));if(_0x1e8274!==undefined&&!(Number[_0x1e6a5f(0x339)](_0x1e8274)&&_0x1e8274>0x0))throw new _0x462cf0('resolveField:\x20options.batchSize\x20must\x20be\x20a\x20positive\x20integer',_0x1e6a5f(0x29b));const _0x4bc22e=batch?async _0x33f66e=>(await batch(_0x33f66e))[_0x1e6a5f(0x4e8)](_0x1e2d5f=>_0x1e2d5f instanceof Error?{'__error':!![],'message':_0x1e2d5f['message']}:_0x1e2d5f):null,_0x36449e=_0x280303(this,_0x575621,_0x39d0a9),_0x2a590a=this['_n'](_0x1e6a5f(0x72d),[_0x575621,_0x39d0a9,_0x48f195?(_0x2e0bcd,_0xa8206c)=>_0x36449e(_0x48f195,[_0x2e0bcd,_0xa8206c]):null,{'batch':_0x4bc22e?_0x398e25=>_0x36449e(_0x4bc22e,[_0x398e25]):null,'batchSize':_0x1e8274}]);return()=>this['_n'](_0x1e6a5f(0x7dd),[_0x2a590a]);}async[_0x4e67d6(0x6c2)](_0x265334,_0x4135c9){return this['_n']('unresolveField',[_0x265334,_0x4135c9]);}[_0x4e67d6(0x756)](_0x41d6af){return this['_n']('resolvedFields',[_0x41d6af]);}async[_0x4e67d6(0x76d)](_0x279b6f,_0x3c88d1,_0x4f02c6,_0x15565d){const _0x29c3ea=_0x4e67d6;return this[_0x29c3ea(0x4f7)][_0x29c3ea(0x67a)]('env',this[_0x29c3ea(0x425)],_0x29c3ea(0x76d),[_0x279b6f,_0x3c88d1,_0x4f02c6,_0x15565d],![]);}async['readFieldMany'](_0x3f9343,_0xa916d0,_0x513abb){const _0x4db9c4=_0x4e67d6;return this['okdb'][_0x4db9c4(0x67a)](_0x4db9c4(0x784),this[_0x4db9c4(0x425)],_0x4db9c4(0x86c),[_0x3f9343,_0xa916d0,_0x513abb],![]);}[_0x4e67d6(0x33f)](){}['ftsQuery'](_0x3c6788,_0x519d5b,_0x56b277,_0x514bab={},_0x1205a4={}){const _0x5ee1e4=_0x4e67d6;return this[_0x5ee1e4(0x4f7)][_0x5ee1e4(0x24a)](_0x5ee1e4(0x6ef),null,_0x5ee1e4(0x77d),[_0x3c6788,_0x519d5b,_0x56b277,_0x514bab,_0x1205a4,this[_0x5ee1e4(0x425)]],![]);}get[_0x4e67d6(0x6ef)](){const _0x3d9fc8=_0x4e67d6;return this['okdb'][_0x3d9fc8(0x6ef)];}[_0x4e67d6(0x3e5)](){const _0x37701c=_0x4e67d6;return this[_0x37701c(0x4f7)][_0x37701c(0x24a)](_0x37701c(0x784),this[_0x37701c(0x425)],_0x37701c(0x3e5),[],![]);}[_0x4e67d6(0x510)](){const _0x5b52c5=_0x4e67d6;return this[_0x5b52c5(0x4f7)]['diag']();}[_0x4e67d6(0x310)](){const _0x2c91f0=_0x4e67d6;return this[_0x2c91f0(0x4f7)][_0x2c91f0(0x24a)]('env',this['name'],_0x2c91f0(0x310),[],![]);}[_0x4e67d6(0x386)](){}get[_0x4e67d6(0x729)](){const _0xb96254=_0x4e67d6;return this['_locks']||(this[_0xb96254(0x68f)]=new(requireLock())['NativeLock'](this[_0xb96254(0x4f7)],this[_0xb96254(0x425)],'env'));}[_0x4e67d6(0x872)](){const _0x453a0f=_0x4e67d6;return this[_0x453a0f(0x4f7)][_0x453a0f(0x24a)](_0x453a0f(0x784),this[_0x453a0f(0x425)],_0x453a0f(0x872),[],![]);}[_0x4e67d6(0x57d)](_0x3728b5){const _0x3ab641=_0x4e67d6;this['_n'](_0x3ab641(0x6c6),[_0x3728b5]);}[_0x4e67d6(0x6a3)](_0x38b390){const _0x16a570=_0x4e67d6;this['_n'](_0x16a570(0x827),[_0x38b390]);}[_0x4e67d6(0x796)](){const _0x177127=_0x4e67d6;return this['_n'](_0x177127(0x1d4),[]);}[_0x4e67d6(0x31c)](_0x3a9a29,_0xd4e97a){return _0x3a9a29+'\x09'+_0xd4e97a;}[_0x4e67d6(0x73c)](_0x24d65a){const _0x2e072f=_0x4e67d6,_0x25bd7d=_0x24d65a[_0x2e072f(0x815)]('\x09');return{'type':_0x24d65a['slice'](0x0,_0x25bd7d),'key':_0x24d65a[_0x2e072f(0x6fe)](_0x25bd7d+0x1)};}get[_0x4e67d6(0x445)](){const _0x12957f=_0x4e67d6;if(!this[_0x12957f(0x796)]()['enabled'])return null;return this[_0x12957f(0x82c)]||(this[_0x12957f(0x82c)]=new _0x2b4711(this,_0x12957f(0x71c)));}get[_0x4e67d6(0x624)](){const _0x305280=_0x4e67d6;if(!this['_ttlState']()[_0x305280(0x6f9)])return null;return this[_0x305280(0x17c)]||(this['__ttlByExpiry']=new _0x2b4711(this,_0x305280(0x1a7),{'dupSort':!![]}));}[_0x4e67d6(0x860)](_0x38d4d0,_0x29b59d,_0x15ae7e){const _0x1dbdd3=_0x4e67d6;this['_n'](_0x1dbdd3(0x4ae),[_0x38d4d0,_0x29b59d,_0x15ae7e]);}['_isExpired'](_0x247d56,_0x1fb7c4){const _0x10b66a=_0x4e67d6,_0x631815=this[_0x10b66a(0x445)]?.[_0x10b66a(0x6ce)](this[_0x10b66a(0x31c)](_0x247d56,_0x1fb7c4));return _0x631815!=null&&_0x631815<=Date[_0x10b66a(0x76a)]();}get[_0x4e67d6(0x649)](){const _0x58d27=_0x4e67d6;return this[_0x58d27(0x796)]()[_0x58d27(0x4ed)]??null;}get['_ttlBackoffUntil'](){const _0x501d55=_0x4e67d6;return this[_0x501d55(0x796)]()['backoffUntil']||0x0;}get[_0x4e67d6(0x230)](){return![];}[_0x4e67d6(0x53a)](){}async['_rebuild'](_0x22e63e,_0x18733d){const _0x4b2bb5=_0x4e67d6;if(this[_0x4b2bb5(0x71b)]){const {OKDBError:_0x5110a9}=requireErrors();throw new _0x5110a9('compact/repair\x20already\x20in\x20progress\x20for\x20this\x20environment',_0x4b2bb5(0x170));}this[_0x4b2bb5(0x71b)]=!![];try{const _0x336ac4={..._0x18733d||{},'repair':_0x22e63e===_0x4b2bb5(0x51a)};this[_0x4b2bb5(0x4f7)][_0x4b2bb5(0x24a)](_0x4b2bb5(0x784),this[_0x4b2bb5(0x425)],_0x4b2bb5(0x307),[_0x336ac4]);const _0xd2b063=this[_0x4b2bb5(0x4f7)][_0x4b2bb5(0x176)];while(this[_0x4b2bb5(0x4f7)][_0x4b2bb5(0x24a)]('env',this['name'],'compactPending',[],![]))await _0xd2b063['nextTurn'](0xfa);return this[_0x4b2bb5(0x4f7)][_0x4b2bb5(0x24a)](_0x4b2bb5(0x784),this[_0x4b2bb5(0x425)],_0x4b2bb5(0x46b),[],![]);}finally{this['_rebuilding']=![];}}async[_0x4e67d6(0x60a)](_0x294174={}){const _0x241c69=_0x4e67d6;return this[_0x241c69(0x7e8)](_0x241c69(0x60a),_0x294174);}async[_0x4e67d6(0x51a)](_0x2b0be6={}){const _0xdb0774=_0x4e67d6;return this[_0xdb0774(0x7e8)](_0xdb0774(0x51a),_0x2b0be6);}}_0x3302b2[_0x4e67d6(0x680)]=_0x4248e9;function _0xf1170f(_0x4eaa2b){const _0x3da289=_0x4e67d6;if(!_0x4eaa2b||typeof _0x4eaa2b!=='object')return![];for(const _0x4bde14 of Object[_0x3da289(0x50d)](_0x4eaa2b)){const _0x21e16f=_0x4eaa2b[_0x4bde14];if(_0x21e16f&&typeof _0x21e16f===_0x3da289(0x712)&&(_0x21e16f[_0x3da289(0x3cc)]||_0x21e16f[_0x3da289(0x4d2)]))return!![];}return![];}function _0x27f346(_0xb1f517){const _0x57c349=_0x4e67d6;if(!_0xb1f517||typeof _0xb1f517!==_0x57c349(0x712))return{};const _0x408db9={};for(const _0x2fbb43 of Object['keys'](_0xb1f517)){if(_0x2fbb43===_0x57c349(0x5d5)||_0x2fbb43===_0x57c349(0x22c))continue;_0x408db9[_0x2fbb43]=_0xb1f517[_0x2fbb43];}return _0x408db9;}function _0x2c6aab(_0x374341){const _0x1f16a1=_0x4e67d6;if(!_0x374341||typeof _0x374341!==_0x1f16a1(0x712))return{};const _0x39ecde={};for(const _0x526c60 of Object[_0x1f16a1(0x50d)](_0x374341)){if(typeof _0x374341[_0x526c60]===_0x1f16a1(0x3b3))continue;_0x39ecde[_0x526c60]=_0x374341[_0x526c60];}return _0x39ecde;}return env={'OKDBEnv':_0x3302b2,'HIGH_SENTINEL':_0x4248e9},env;}var unsupported,hasRequiredUnsupported;function requireUnsupported(){if(hasRequiredUnsupported)return unsupported;hasRequiredUnsupported=0x1;const {NotImplementedNative:_0x546d26}=requireErrors();function _0x4bfc7c(_0x15f484){const _0x3567d2=_0x36d2c8=>{throw new _0x546d26(_0x15f484,_0x36d2c8);};return new Proxy(function(){},{'get'(_0x532397,_0x44d0c0){const _0x2d7983=_0x36a2;if(typeof _0x44d0c0===_0x2d7983(0x721)||_0x44d0c0===_0x2d7983(0x600)||_0x44d0c0===_0x2d7983(0x2d3)||_0x44d0c0==='inspect')return undefined;if(_0x44d0c0===_0x2d7983(0x70e))return _0x15f484;return(..._0x379b8f)=>_0x3567d2(_0x15f484+'.'+String(_0x44d0c0));},'apply'(){_0x3567d2(_0x15f484);},'set'(){return!![];}});}return unsupported={'notImplemented':_0x4bfc7c},unsupported;}var http,hasRequiredHttp;function requireHttp(){const _0x47ef7f=_0x2d5353;if(hasRequiredHttp)return http;hasRequiredHttp=0x1;function _0xa98e13(_0x1c0bd2,_0x15e172={}){const _0x5aae4f=_0x36a2,_0x1a7c74=[];let _0x18c2dd=![];_0x1c0bd2[_0x5aae4f(0x74e)]('/*')&&(_0x18c2dd=!![],_0x1c0bd2=_0x1c0bd2[_0x5aae4f(0x6fe)](0x0,-0x2),_0x1a7c74[_0x5aae4f(0x46d)]('*'));let _0xb0f708=_0x1c0bd2[_0x5aae4f(0x4d7)](/\/+$/,'')[_0x5aae4f(0x4d7)](/\[([^\]]*)\]/g,(_0x2a05f0,_0x22dc2b)=>{const _0x314376=_0x5aae4f,_0x3dcf80=_0x22dc2b[_0x314376(0x4d7)](/\/:(\w+)(?:=([^/\]\s]*))?/g,(_0x1de959,_0x5c3d9d)=>{const _0x11f408=_0x314376;return _0x1a7c74[_0x11f408(0x46d)](_0x5c3d9d),_0x11f408(0x6d3);});return _0x314376(0x43e)+_0x3dcf80+')?';})['replace'](/\/:(\w+)/g,(_0x392b42,_0x4fe62b)=>{const _0x345184=_0x5aae4f;return _0x1a7c74[_0x345184(0x46d)](_0x4fe62b),_0x345184(0x6d3);});if(_0xb0f708==='')_0xb0f708='/';return{'keys':_0x1a7c74,'defaults':_0x15e172||{},'wildcard':_0x18c2dd,'regex':new RegExp('^'+_0xb0f708+(_0x18c2dd?_0x5aae4f(0x3de):'')+_0x5aae4f(0x57a))};}const _0x534c61=require$$0$3,{PassThrough:_0x3c8b64}=require$$1;function _0x457653(_0x2de628){const _0x3765a3=_0x36a2,_0x290d34=_0x2de628[_0x3765a3(0x807)](':'),_0x3d72e3=_0x2de628['slice'](0x0,_0x290d34)[_0x3765a3(0x4d7)](/^\[|\]$/g,'');return{'address':_0x3d72e3,'family':_0x3d72e3['includes'](':')?_0x3765a3(0x64f):_0x3765a3(0x56a),'port':Number(_0x2de628['slice'](_0x290d34+0x1))};}class _0x2a1c06 extends _0x534c61[_0x47ef7f(0x66d)]{constructor(_0x563e5e,_0x2fb3cf){const _0x2e0a75=_0x47ef7f;super(),this['_http']=_0x563e5e,this['_addr']=_0x457653(_0x2fb3cf),this[_0x2e0a75(0x278)]=!![],this[_0x2e0a75(0x69b)]=setInterval(()=>{},0x7fffffff);}get[_0x47ef7f(0x278)](){const _0x4f135d=_0x47ef7f;return this[_0x4f135d(0x4c4)];}set['listening'](_0x4b6fdf){const _0x4355bc=_0x47ef7f;this[_0x4355bc(0x4c4)]=_0x4b6fdf;}['address'](){const _0x5b4256=_0x47ef7f;return this[_0x5b4256(0x278)]?{...this[_0x5b4256(0x5dd)]}:null;}['_release'](){const _0x574df0=_0x47ef7f;if(this[_0x574df0(0x69b)])clearInterval(this[_0x574df0(0x69b)]);this[_0x574df0(0x69b)]=null;}['close'](_0x429865){const _0x3ff5e2=_0x47ef7f;this['_release']();const _0x2eaf04=this[_0x3ff5e2(0x741)]['close']();if(_0x429865)_0x2eaf04['then'](()=>_0x429865(),_0x429865);return this;}[_0x47ef7f(0x674)](){const _0x3269cd=_0x47ef7f;return this[_0x3269cd(0x69b)]?.[_0x3269cd(0x674)](),this;}[_0x47ef7f(0x46f)](){const _0x3b8161=_0x47ef7f;return this[_0x3b8161(0x69b)]?.['unref'](),this;}}class _0x3b874e{constructor(_0x5ec035){const _0x3043c2=_0x47ef7f;this[_0x3043c2(0x4f7)]=_0x5ec035,this[_0x3043c2(0x85b)]=[],this['auth']={'cookieName':'okdb_session'};}get[_0x47ef7f(0x528)](){const _0x55fad7=_0x47ef7f;return this[_0x55fad7(0x85b)][0x0]||null;}['_n'](_0x33fb1d,_0xa66221=[]){const _0x1b0de4=_0x47ef7f;return this[_0x1b0de4(0x4f7)][_0x1b0de4(0x67a)](_0x1b0de4(0x3af),null,_0x33fb1d,_0xa66221,!![]);}async[_0x47ef7f(0x398)](_0xd151a6,_0xb22b81,_0x2bd832={},_0x3f94c9={}){const _0x3608ca=_0x47ef7f;let _0x1f15e7=await this['_n'](_0x3608ca(0x398),[_0xd151a6,_0xb22b81,_0x2bd832,_0x3f94c9]),_0x293376=0x0;return _0x1f15e7=await this[_0x3608ca(0x189)](_0x1f15e7,_0x293376),_0x1f15e7;}async[_0x47ef7f(0x189)](_0x44ea9f,_0x483355){const _0x5f031d=_0x47ef7f;while(_0x44ea9f&&typeof _0x44ea9f===_0x5f031d(0x712)&&_0x44ea9f[_0x5f031d(0x3bb)]!==undefined){await new Promise(_0x5b0dbb=>setTimeout(_0x5b0dbb,_0x483355<0x5?0x1:0x5)),_0x483355++,_0x44ea9f=await this['_n'](_0x5f031d(0x44b),[_0x44ea9f[_0x5f031d(0x3bb)]]);}if(_0x44ea9f&&_0x44ea9f[_0x5f031d(0x33a)]&&typeof _0x44ea9f[_0x5f031d(0x33a)]===_0x5f031d(0x712)&&_0x44ea9f[_0x5f031d(0x33a)][_0x5f031d(0x6ad)]!==undefined)_0x44ea9f[_0x5f031d(0x33a)]=this[_0x5f031d(0x7e0)](_0x44ea9f[_0x5f031d(0x33a)][_0x5f031d(0x6ad)]);return _0x44ea9f;}[_0x47ef7f(0x7e0)](_0x78b502){const _0x206890=new _0x3c8b64();let _0x408966=![];const _0xe86f9e=()=>{const _0x5e9ab9=_0x36a2;if(_0x408966)return;_0x408966=!![],clearTimeout(_0x265711),setImmediate(()=>this[_0x5e9ab9(0x4f7)][_0x5e9ab9(0x67d)]&&this[_0x5e9ab9(0x4f7)][_0x5e9ab9(0x24a)](_0x5e9ab9(0x3af),null,_0x5e9ab9(0x819),[_0x78b502],!![]));};let _0x265711=null;const _0x33aa2d=()=>{const _0x515245=_0x36a2;if(_0x408966)return;let _0x55fbc6;try{_0x55fbc6=this[_0x515245(0x4f7)][_0x515245(0x24a)](_0x515245(0x3af),null,_0x515245(0x357),[_0x78b502],!![]);}catch{_0x55fbc6={'chunks':[],'end':!![]};}for(const _0x4b8732 of _0x55fbc6['chunks'])_0x206890[_0x515245(0x46e)](_0x4b8732);if(_0x55fbc6[_0x515245(0x3f9)]){_0x408966=!![],_0x206890['end']();return;}_0x265711=setTimeout(_0x33aa2d,_0x55fbc6['chunks'][_0x515245(0x192)]?0x0:0xa);};_0x206890['on']('close',_0xe86f9e),_0x33aa2d();if(!_0x408966)_0x33aa2d();if(_0x408966)_0x206890['destroy']();else{if(!_0x265711)_0x265711=setTimeout(_0x33aa2d,0x0);}return _0x206890;}[_0x47ef7f(0x725)](_0xa10abe,_0x1c2283,_0x32c03c,_0x5bdea2={}){const _0xfed972=_0x47ef7f;return this[_0xfed972(0x4f7)][_0xfed972(0x24a)](_0xfed972(0x3af),null,'add',[_0xa10abe,_0x1c2283,_0x32c03c,_0x5bdea2,![]],!![]),this;}[_0x47ef7f(0x1a1)](_0x140f2c,_0x494b91,_0x671bea,_0x4eb02f={}){const _0x990513=_0x47ef7f;return this[_0x990513(0x4f7)]['_call'](_0x990513(0x3af),null,_0x990513(0x725),[_0x140f2c,_0x494b91,_0x671bea,_0x4eb02f,!![]],!![]),this;}['guard'](_0x380419,_0x2940bd){const _0x9d53f0=_0x47ef7f,_0xcdf75c=async _0x3de550=>{const _0x4dd0c1=_0x36a2,_0x179031={'status':undefined,'headers':[],'hasBody':![],'body':undefined},_0x966bf3={'status'(_0x2b4766){const _0x1372af=_0x36a2;return _0x179031[_0x1372af(0x2e4)]=_0x2b4766,_0x966bf3;},'setHeader'(_0x1b6be7,_0x209694){const _0x1ab41f=_0x36a2;_0x179031[_0x1ab41f(0x44a)]['push']([_0x1b6be7,_0x209694]);},'send'(_0x42b3c0){const _0x170c8a=_0x36a2;_0x179031['hasBody']=!![],_0x179031[_0x170c8a(0x33a)]=_0x42b3c0;}};_0x3de550[_0x4dd0c1(0x5e5)]={'remoteAddress':_0x3de550[_0x4dd0c1(0x4a0)]??null};const _0x33674a=await _0x2940bd(_0x3de550,_0x966bf3);return{'allowed':_0x33674a!==![],..._0x179031};};this[_0x9d53f0(0x4f7)]['_call']('http',null,_0x9d53f0(0x7a4),[_0x2ac4bb=>!!_0x380419(_0x2ac4bb),_0xcdf75c],!![]);}[_0x47ef7f(0x735)](_0x133eb8){const _0x58ef63=_0x47ef7f,_0x30e4e5=async _0x12cd41=>{const _0x479d1e=_0x36a2,_0x171405={'status':undefined,'headers':[],'hasBody':![],'body':undefined};let _0x52b54c=![];const _0x2cd256={'status'(_0x41ab8e){return _0x171405['status']=_0x41ab8e,_0x2cd256;},'setHeader'(_0x3f034d,_0x585c3c){const _0x2d06fd=_0x36a2;_0x171405['headers'][_0x2d06fd(0x46d)]([_0x3f034d,_0x585c3c]);},'send'(_0x2d07cc){const _0x2d67a3=_0x36a2;_0x171405[_0x2d67a3(0x78f)]=!![],_0x171405['body']=_0x2d07cc;}};return _0x12cd41['socket']={'remoteAddress':_0x12cd41[_0x479d1e(0x4a0)]??null},await _0x133eb8(_0x12cd41,_0x2cd256,async()=>{_0x52b54c=!![];}),{'allowed':_0x52b54c,..._0x171405};};return this[_0x58ef63(0x4f7)][_0x58ef63(0x24a)](_0x58ef63(0x3af),null,_0x58ef63(0x735),[_0x30e4e5],!![]),this;}get['maxBodyBytes'](){const _0x53e055=_0x47ef7f;return this[_0x53e055(0x4f7)][_0x53e055(0x24a)](_0x53e055(0x3af),null,_0x53e055(0x410),[],![]);}set[_0x47ef7f(0x684)](_0x233996){const _0x1ca9c2=_0x47ef7f;this['okdb'][_0x1ca9c2(0x24a)](_0x1ca9c2(0x3af),null,'setMaxBodyBytes',[Number(_0x233996)],![]);}[_0x47ef7f(0x2e5)](_0x3eecf5,_0x2dc2dc,_0x535e2b={}){const _0x50a3ca=_0x47ef7f,_0x30d67b=new Map(),_0x27ddd9=(_0x2e8cce,_0x2dd9a4)=>this['okdb']['_call'](_0x50a3ca(0x3af),null,_0x2e8cce,_0x2dd9a4,![]),_0x14622e=_0x12e2d0=>{const _0x50a328=_0x50a3ca,{connId:_0x3e3bc1}=_0x12e2d0;if(_0x12e2d0[_0x50a328(0x7a2)]){const _0xa0501d=_0x30d67b[_0x50a328(0x6ce)](_0x3e3bc1);_0x30d67b[_0x50a328(0x243)](_0x3e3bc1);if(typeof _0xa0501d===_0x50a328(0x3b3))_0xa0501d();return;}const _0x2a5d71=(_0x3d7b79,_0x83d4a4,_0x1a9e18={})=>{const _0x58451f=_0x50a328;try{_0x27ddd9(_0x58451f(0x5d7),[_0x3e3bc1,_0x3d7b79,_0x83d4a4,_0x1a9e18]);}catch{}},_0x2f9649=()=>{try{_0x27ddd9('sseClose',[_0x3e3bc1]);}catch{}},_0x2c81c3=(_0x140f81,_0x529a83)=>_0x27ddd9(_0x50a328(0x36c),[_0x3e3bc1,String(_0x140f81),String(_0x529a83)]),_0x4dbf47={'auth':{'open':_0x12e2d0['authOpen'],'isAuthenticated':_0x12e2d0[_0x50a328(0x82f)]}},_0x3a5480=_0x2dc2dc({'send':_0x2a5d71,'close':_0x2f9649,'params':_0x12e2d0[_0x50a328(0x1d9)]??{},'query':_0x12e2d0[_0x50a328(0x450)]??{},'headers':_0x12e2d0[_0x50a328(0x44a)]??{},'context':_0x4dbf47,'setHeader':_0x2c81c3});_0x30d67b[_0x50a328(0x7a0)](_0x3e3bc1,_0x3a5480);};return this[_0x50a3ca(0x4f7)][_0x50a3ca(0x24a)](_0x50a3ca(0x3af),null,_0x50a3ca(0x2e5),[_0x3eecf5,_0x14622e,_0x535e2b],!![]),this;}get[_0x47ef7f(0x5d9)](){const _0x1256e2=_0x47ef7f;return this[_0x1256e2(0x2d2)]();}[_0x47ef7f(0x2d2)](){const _0x41913c=_0x47ef7f;return this[_0x41913c(0x4f7)][_0x41913c(0x24a)](_0x41913c(0x3af),null,'listRoutes',[],![])[_0x41913c(0x4e8)](_0x29f624=>({..._0x29f624,'matcher':_0xa98e13(_0x29f624[_0x41913c(0x733)],_0x29f624['defaults'])}));}[_0x47ef7f(0x54f)](_0x18474f,_0xa30326){const _0x1a8b23=_0x47ef7f;return this[_0x1a8b23(0x4f7)][_0x1a8b23(0x24a)](_0x1a8b23(0x3af),null,_0x1a8b23(0x54f),[_0x18474f,_0xa30326],![]);}['listen'](_0x3b769d,_0x1c84c0={}){const _0x304a8f=_0x47ef7f;if(typeof _0x1c84c0==='string'||Array[_0x304a8f(0x7e3)](_0x1c84c0))_0x1c84c0={'host':_0x1c84c0};_0x1c84c0=_0x1c84c0??{};if((Number(_0x1c84c0[_0x304a8f(0x74f)])||0x0)>=0x1||_0x1c84c0[_0x304a8f(0x30d)]!=null||_0x1c84c0[_0x304a8f(0x6d6)]!=null){const _0x546757=new Error(_0x304a8f(0x789)+_0x304a8f(0x709)+_0x304a8f(0x451)+_0x304a8f(0x835));_0x546757[_0x304a8f(0x316)]=_0x304a8f(0x543);throw _0x546757;}if(this['servers'][_0x304a8f(0x192)])throw new Error(_0x304a8f(0x6aa));const _0x24558a=_0x1c84c0[_0x304a8f(0x199)]==null?[undefined]:[][_0x304a8f(0x557)](_0x1c84c0['host']);if(!_0x24558a[_0x304a8f(0x192)]||_0x24558a[_0x304a8f(0x454)](_0x2ae2d2=>_0x2ae2d2!==undefined&&(typeof _0x2ae2d2!==_0x304a8f(0x84a)||!_0x2ae2d2))){const _0x1d4036=new Error(_0x304a8f(0x187));_0x1d4036[_0x304a8f(0x316)]='BAD_HOST';throw _0x1d4036;}const _0x5b1b2c=require$$2[_0x304a8f(0x591)]?{..._0x1c84c0,'reuseport':!![]}:_0x1c84c0,_0x4f150a=this['okdb'][_0x304a8f(0x24a)](_0x304a8f(0x3af),null,_0x304a8f(0x14b),[_0x3b769d,_0x5b1b2c],!![]),_0x46d011=_0x4f150a[_0x304a8f(0x74a)]??_0x3b769d,_0x5d725f=_0x1c84c0[_0x304a8f(0x199)]==null?':'+_0x46d011:_0x24558a[_0x304a8f(0x4e8)](_0x576962=>(_0x576962[_0x304a8f(0x6f8)](':')?'['+_0x576962+']':_0x576962)+':'+_0x46d011)[_0x304a8f(0x3ee)](',\x20');try{this['okdb']['processes'][_0x304a8f(0x29a)](_0x5d725f);if(!require(_0x304a8f(0x29e))['isWorker'])this['okdb'][_0x304a8f(0x1ea)][_0x304a8f(0x82d)]({'kind':_0x304a8f(0x36a),'listenAddr':_0x5d725f});}catch{}this[_0x304a8f(0x85b)]=_0x4f150a[_0x304a8f(0x3b4)]['map'](_0x198d47=>new _0x2a1c06(this,_0x198d47));const _0x90e1e6=this[_0x304a8f(0x85b)][0x0];return process[_0x304a8f(0x864)](()=>this[_0x304a8f(0x85b)][_0x304a8f(0x524)](_0x177b29=>_0x177b29[_0x304a8f(0x839)]('listening'))),_0x90e1e6;}async[_0x47ef7f(0x182)](_0x5a16ba={}){const _0x2ed5b8=_0x47ef7f,_0x193941=this[_0x2ed5b8(0x85b)];this[_0x2ed5b8(0x85b)]=[];if(require$$2[_0x2ed5b8(0x591)]&&!process[_0x2ed5b8(0x415)]&&_0x5a16ba[_0x2ed5b8(0x49a)]==null)_0x5a16ba={..._0x5a16ba,'forceAfterMs':Infinity};if(_0x193941['length']){const _0x1b4ebb=_0x5a16ba[_0x2ed5b8(0x49a)]===Infinity?Infinity:Number['isFinite'](_0x5a16ba[_0x2ed5b8(0x49a)])?Math[_0x2ed5b8(0x81c)](0x0,_0x5a16ba[_0x2ed5b8(0x49a)]):0x3e8,_0x2c2284=Date['now']();while(this[_0x2ed5b8(0x4f7)][_0x2ed5b8(0x24a)](_0x2ed5b8(0x3af),null,_0x2ed5b8(0x83d),[],!![])>0x0&&Date[_0x2ed5b8(0x76a)]()-_0x2c2284<_0x1b4ebb)await new Promise(_0x20dfbf=>setTimeout(_0x20dfbf,0x5));_0x5a16ba={..._0x5a16ba,'forceAfterMs':_0x1b4ebb===Infinity?0x3e8:Math['max'](0x0,_0x1b4ebb-(Date[_0x2ed5b8(0x76a)]()-_0x2c2284))};}await this['_n'](_0x2ed5b8(0x182),[_0x5a16ba]);for(const _0xcd6a40 of _0x193941){_0xcd6a40['_release'](),_0xcd6a40['listening']=![],_0xcd6a40[_0x2ed5b8(0x839)]('close');}}}return http={'OKDBHttp':_0x3b874e},http;}var fts,hasRequiredFts;function requireFts(){const _0x26d508=_0x2d5353;if(hasRequiredFts)return fts;hasRequiredFts=0x1;const _0x17b48c=_0x156cb3=>(_0x156cb3&&typeof _0x156cb3==='object'?_0x156cb3[_0x26d508(0x425)]:_0x156cb3)??'default';class _0xc6a66b{constructor(_0x3b9ab7){const _0x449861=_0x26d508;this[_0x449861(0x4f7)]=_0x3b9ab7;}['_n'](_0x1a5db6,_0x2bc2bf,_0x176bbe=![]){const _0x10dbf5=_0x26d508;return this[_0x10dbf5(0x4f7)][_0x10dbf5(0x24a)](_0x10dbf5(0x6ef),null,_0x1a5db6,_0x2bc2bf,_0x176bbe);}[_0x26d508(0x577)](_0x5c5936,_0x17e067){const _0x384edd=_0x26d508;return this[_0x384edd(0x4f7)]['_callMacro'](_0x384edd(0x6ef),null,_0x5c5936,_0x17e067,!![]);}get[_0x26d508(0x60b)](){const _0x586241=this,_0x14e9d1=_0x1f5eb3=>{const _0x431e60=_0x36a2,_0x5811cd=_0x1f5eb3[_0x431e60(0x815)](':'),_0x747ef8=_0x1f5eb3[_0x431e60(0x6fe)](0x0,_0x5811cd),_0x25e795=_0x586241[_0x431e60(0x4f7)]['_envs']['get'](_0x747ef8);if(!_0x25e795)return undefined;const _0x2b7110=_0x25e795[_0x431e60(0x26e)][_0x431e60(0x6ec)]()[_0x431e60(0x472)](_0x4afbce=>_0x4afbce[_0x431e60(0x52c)]===_0x431e60(0x4b2)+_0x1f5eb3);if(!_0x2b7110)return undefined;return _0x25e795[_0x431e60(0x26e)]['_stopFor'](_0x2b7110['id'],_0x2b7110[_0x431e60(0x52c)]);};return{'get':_0x14e9d1,'has':_0x3fe572=>!!_0x14e9d1(_0x3fe572)};}get['_pendingOps'](){return[];}[_0x26d508(0x52b)](){const _0x22e4d7=_0x26d508,{RawDb:_0xd27988}=requireRawdb();return new _0xd27988(this[_0x22e4d7(0x4f7)][_0x22e4d7(0x7b5)],_0x22e4d7(0x1e5));}[_0x26d508(0x69d)](_0x51ea3f,_0x3ae522,_0x35be7d){const _0x30c87f=_0x26d508;return this['_n'](_0x30c87f(0x69d),[_0x51ea3f,_0x3ae522,_0x17b48c(_0x35be7d)]);}['status'](_0x472620,_0x5aed6a,_0x1a8681){const _0x45366b=_0x26d508;return this['_n'](_0x45366b(0x2e4),[_0x472620,_0x5aed6a,_0x17b48c(_0x1a8681)]);}[_0x26d508(0x6ec)](_0x48fddc,_0x2b6db7){return this['_n']('list',[_0x48fddc,_0x17b48c(_0x2b6db7)]);}async[_0x26d508(0x4fd)](_0x2d0f72,_0x526afc,_0x2e708a,_0x3e2856,_0xb40c13){const _0x402914=_0x26d508,_0x215b7f=(_0x16b847,_0x2a873a)=>this[_0x402914(0x4f7)]['_callMacro'](_0x402914(0x6ef),null,_0x16b847,_0x2a873a,!![],![]),_0x4c5493=Date[_0x402914(0x76a)]()+0x1d4c0;let _0x5e8cda=_0x2d0f72,_0x1a95c9=_0x526afc;for(;;){try{return await _0x215b7f(_0x5e8cda,_0x1a95c9);}catch(_0x3d1630){if(_0x3d1630['code']===_0x402914(0x1d6)){_0x5e8cda=_0x402914(0x574),_0x1a95c9=[_0x2e708a,_0x3e2856,_0x17b48c(_0xb40c13)];if(_0x3d1630['details']&&_0x3d1630[_0x402914(0x433)]['wait'])await new Promise(_0xc2b079=>setTimeout(_0xc2b079,0x2));continue;}if(_0x3d1630[_0x402914(0x316)]!==_0x402914(0x871)||Date['now']()>=_0x4c5493)throw _0x3d1630;}await new Promise(_0x1d3ae9=>setTimeout(_0x1d3ae9,0x5)),_0x5e8cda=_0x402914(0x5be),_0x1a95c9=[_0x2e708a,_0x3e2856,!![],_0x17b48c(_0xb40c13)];}}async['register'](_0x52c07f,_0xa72e5e,_0x3f9b5f,_0xbf668f,_0x23d23c){const _0x4d473c=_0x26d508;return this[_0x4d473c(0x4fd)](_0x4d473c(0x82d),[_0x52c07f,_0xa72e5e,_0x3f9b5f,_0xbf668f,_0x17b48c(_0x23d23c)],_0x52c07f,_0xa72e5e,_0x23d23c);}async[_0x26d508(0x4e3)](_0x50d3e7,_0x2c1f97,_0x5ab61b){const _0x1fd043=_0x26d508;return this['_nm'](_0x1fd043(0x4e3),[_0x50d3e7,_0x2c1f97,_0x17b48c(_0x5ab61b)]);}async['ensure'](_0x4ec34f,_0x5d6a23,_0x369709,_0x42582f){const _0x4dc101=_0x26d508;return this[_0x4dc101(0x4fd)](_0x4dc101(0x51b),[_0x4ec34f,_0x5d6a23,_0x369709,_0x17b48c(_0x42582f)],_0x4ec34f,_0x5d6a23,_0x42582f);}async[_0x26d508(0x5be)](_0x388f83,_0x346c05,_0x29c00a,_0x4e68b5){const _0x54f55f=_0x26d508;return this[_0x54f55f(0x4fd)](_0x54f55f(0x5be),[_0x388f83,_0x346c05,_0x29c00a,_0x17b48c(_0x4e68b5)],_0x388f83,_0x346c05,_0x4e68b5);}async[_0x26d508(0x609)](_0x45f301,_0xa48a38,_0x64db96,_0x523feb=0x1d4c0){const _0xaa66a8=_0x26d508,_0x1eb162=Date[_0xaa66a8(0x76a)]()+_0x523feb;for(;;){try{return await this[_0xaa66a8(0x577)](_0x45f301,[..._0xa48a38,0x1]);}catch(_0x35d58f){if(_0x35d58f[_0xaa66a8(0x316)]!==_0x64db96||Date['now']()>=_0x1eb162)throw _0x35d58f;}await new Promise(_0x276fa2=>setTimeout(_0x276fa2,0x2));}}async[_0x26d508(0x2bf)](_0x48a9c3,_0x3757a0,_0x22b7be){const _0x16bd9a=_0x26d508;return this['_waitNative'](_0x16bd9a(0x2bf),[_0x48a9c3,null,_0x17b48c(_0x22b7be)],_0x16bd9a(0x4b0));}async['flush'](_0x2d92a3,_0x1edea0){const _0x575f1d=_0x26d508;return this[_0x575f1d(0x609)]('flush',[_0x2d92a3,_0x17b48c(_0x1edea0)],_0x575f1d(0x151));}async[_0x26d508(0x60a)](_0x3e30a2,_0x383910){const _0x562124=_0x26d508;return this[_0x562124(0x577)]('compact',[_0x3e30a2,_0x17b48c(_0x383910)]);}async[_0x26d508(0x421)](_0x3ab348={}){const _0x3e6101=_0x26d508;return this[_0x3e6101(0x577)](_0x3e6101(0x421),[_0x3ab348]);}async[_0x26d508(0x595)](_0x4929af){const _0x31aba7=_0x26d508;return this[_0x31aba7(0x577)](_0x31aba7(0x595),[_0x17b48c(_0x4929af)]);}[_0x26d508(0x6f3)](_0x487eb7){const _0x5f4a0a=_0x26d508;return this['_n'](_0x5f4a0a(0x6f3),[_0x17b48c(_0x487eb7)]);}['search'](_0x1a2329,_0x462850,_0x1fd570,_0x262ee1,_0x55aa16){const _0x5c0e5a=_0x26d508;return this['_n'](_0x5c0e5a(0x3ff),[_0x1a2329,_0x462850,_0x1fd570,_0x262ee1||{},_0x17b48c(_0x55aa16)]);}[_0x26d508(0x70c)](_0x3809d5,_0x1f2a31,_0x2d5efb,_0x217ca3,_0x2dd7fa,_0x13e0e9){const _0x56dca3=_0x26d508;return this['_n'](_0x56dca3(0x70c),[_0x3809d5,_0x1f2a31,_0x2d5efb,_0x217ca3||{},_0x17b48c(_0x2dd7fa),_0x13e0e9]);}['_searchWithScores'](_0x329d9e,_0x3ab497,_0x598f8f,_0xe1f47b,_0x5d1c76){return this['_n']('searchWithScores',[_0x329d9e,_0x3ab497,_0x598f8f,_0xe1f47b||{},_0x17b48c(_0x5d1c76)]);}[_0x26d508(0x259)](){return this['_n']('listFtsEnvs',[]);}async[_0x26d508(0x7da)](){const _0x3dfedf=_0x26d508;return this[_0x3dfedf(0x577)](_0x3dfedf(0x7da),[]);}}return fts={'OKDBFts':_0xc6a66b},fts;}var embeddings,hasRequiredEmbeddings;function requireEmbeddings(){const _0xb23287=_0x2d5353;if(hasRequiredEmbeddings)return embeddings;hasRequiredEmbeddings=0x1;const {OKDBError:_0x41dcc0,invalidArgument:_0x5a6350}=requireErrors();requireBridge();const _0x171944=Object[_0xb23287(0x1c4)]({'EMBEDDER':_0xb23287(0x122),'INDEXER':_0xb23287(0x706),'SEARCH':'vector-search','WORKER':_0xb23287(0x31b)});async function _0x1839e8(_0x25a661,_0x1f81bb,_0x5e76e5,_0x590225={}){const _0x5637c7=_0xb23287,_0x51237e=_0x590225&&_0x590225['timeoutMs']!=null?Number(_0x590225[_0x5637c7(0x32e)]):0x1d4c0,_0x89aa3b=Date['now']()+_0x51237e;await _0x1f81bb();for(;;){const _0x4f6cf0=await _0x5e76e5()||{};if(_0x4f6cf0[_0x5637c7(0x4ac)]&&!_0x4f6cf0[_0x5637c7(0x814)])return!![];if(Date['now']()>=_0x89aa3b)throw new _0x41dcc0(_0x5637c7(0x457)+_0x25a661+_0x5637c7(0x68e)+_0x51237e+_0x5637c7(0x602),_0x5637c7(0x39e),{'name':_0x25a661,'timeoutMs':_0x51237e,'loaded':!!_0x4f6cf0['loaded'],'building':!!_0x4f6cf0[_0x5637c7(0x814)],'count':_0x4f6cf0[_0x5637c7(0x21b)]});await new Promise(_0x2f861d=>setTimeout(_0x2f861d,0xa));}}const _0x18cb59=_0x1f77bf=>typeof _0x1f77bf===_0xb23287(0x84a)||_0x1f77bf==null?_0x1f77bf:Array[_0xb23287(0x3ed)](_0x1f77bf);class _0x5c0fbf{constructor(_0x520dd9){const _0xfcdde0=_0xb23287;this['okdb']=_0x520dd9,this[_0xfcdde0(0x342)]=new Map(),this[_0xfcdde0(0x43a)]=new Map(),this[_0xfcdde0(0x62f)]=new Map();}['_n'](_0x161849,_0x827bb6=[],_0xefc845=!![]){const _0x1d01d0=_0xb23287;return this['okdb']['_call'](_0x1d01d0(0x6ed),null,_0x161849,_0x827bb6,_0xefc845);}[_0xb23287(0x577)](_0x2186d5,_0x4447cc=[]){const _0x51af03=_0xb23287;return this[_0x51af03(0x4f7)][_0x51af03(0x67a)](_0x51af03(0x6ed),null,_0x2186d5,_0x4447cc,!![]);}[_0xb23287(0x48e)](_0x4e9405){const _0x48e1a7=_0xb23287;return _0x4e9405?this[_0x48e1a7(0x4f7)][_0x48e1a7(0x617)][_0x48e1a7(0x48e)](_0x4e9405):null;}['registerEmbedderFactory'](_0x1623ea,_0x186fdb,_0x23f459={}){const _0x569cfc=_0xb23287;if(typeof _0x186fdb!=='function')throw new _0x41dcc0(_0x569cfc(0x85a),_0x569cfc(0x29b),{'name':_0x1623ea});this[_0x569cfc(0x342)][_0x569cfc(0x7a0)](_0x1623ea,_0x186fdb),this['_jsSchemas'][_0x569cfc(0x7a0)](_0x1623ea,_0x23f459);const _0x5660b2=this['okdb'],_0x21a30c=_0x3c068d=>_0x186fdb(_0x3c068d,_0x5660b2);_0x21a30c[_0x569cfc(0x330)]=_0x5660b2,this['_n'](_0x569cfc(0x5ea),[_0x1623ea,_0x21a30c,_0x23f459??{}],![]);}[_0xb23287(0x4e5)](_0x510d48){const _0x9f28cf=_0xb23287,_0x49ee87=this['_jsFactories'][_0x9f28cf(0x6ce)](_0x510d48);if(_0x49ee87)return _0x49ee87;if(!this['_n'](_0x9f28cf(0x267),[_0x510d48],![]))return null;const _0x23d7b5=this;return(_0x3893a1={})=>{const _0x5d9ed8=_0x9f28cf,_0x1cc4c3=_0x23d7b5['_n'](_0x5d9ed8(0x3da),[_0x510d48,_0x3893a1],![]),_0x2191e0=_0x23d7b5['_n'](_0x5d9ed8(0x4f4),[_0x1cc4c3],![]),_0x3a9210=(_0x120445,_0xd5d45c)=>_0x23d7b5['_n'](_0x5d9ed8(0x35e),[_0x1cc4c3,_0x120445,_0xd5d45c],![]),_0x44ea64={'embed':async _0x161d70=>Float32Array[_0x5d9ed8(0x3ed)](_0x3a9210(_0x5d9ed8(0x6b9),_0x161d70)),'start':async()=>_0x3a9210('start'),'stop':async()=>{const _0x4de684=_0x5d9ed8;_0x3a9210(_0x4de684(0x32a)),_0x3a9210(_0x4de684(0x152));}};if(_0x2191e0)_0x44ea64[_0x5d9ed8(0x3f6)]=async _0x4018b5=>_0x3a9210(_0x5d9ed8(0x3f6),_0x4018b5)[_0x5d9ed8(0x4e8)](_0x41faa2=>Float32Array[_0x5d9ed8(0x3ed)](_0x41faa2));return _0x44ea64;};}[_0xb23287(0x25b)](_0x30efaa){const _0x17a0b1=_0xb23287;return this[_0x17a0b1(0x43a)]['get'](_0x30efaa)??this['_n'](_0x17a0b1(0x25b),[_0x30efaa],![])??undefined;}[_0xb23287(0x288)](_0x480f09,_0x321ffe,_0x4efdcd={}){const _0x37990c=_0xb23287;if(typeof _0x321ffe!=='function')throw new _0x41dcc0(_0x37990c(0x765),_0x37990c(0x29b),{'name':_0x480f09});this['_n'](_0x37990c(0x288),[_0x480f09,(_0x3a612c,_0x5a8e3c)=>_0x321ffe(_0x3a612c,_0x5a8e3c),_0x4efdcd??{}],![]);}[_0xb23287(0x79e)](){const _0x1ebe9a=_0xb23287;return this['_n'](_0x1ebe9a(0x79e),[],![]);}[_0xb23287(0x797)](_0x5c9e06,_0x212083){const _0x33f88e=_0xb23287;if(typeof _0x212083!=='function')throw new _0x41dcc0(_0x33f88e(0x580),_0x33f88e(0x29b),{'name':_0x5c9e06});this['_n'](_0x33f88e(0x797),[_0x5c9e06,_0x212083]);}[_0xb23287(0x627)](_0x5a3f23,_0x5a67ef){const _0x248b41=_0xb23287;if(typeof _0x5a67ef!=='function')throw new _0x41dcc0(_0x248b41(0x66f),_0x248b41(0x29b),{'name':_0x5a3f23});this['_n'](_0x248b41(0x627),[_0x5a3f23,_0x5a67ef]);}[_0xb23287(0x588)](_0x4e9277){const _0x500e5a=_0xb23287;if(_0x4e9277==null)return this['_n']('setStorageResolver',[null],![]);if(typeof _0x4e9277!==_0x500e5a(0x3b3))throw new _0x41dcc0('Storage\x20resolver\x20must\x20be\x20a\x20function','BAD_PARAM');const _0x1a811a=this[_0x500e5a(0x4f7)];this['_n'](_0x500e5a(0x588),[_0x295e04=>_0x4e9277(_0x295e04,_0x1a811a)],![]);}async[_0xb23287(0x840)](_0x471141,_0x307eb4={},_0x18e395={},_0x39627c=null){const _0x334825=_0xb23287;return this[_0x334825(0x48e)](await this[_0x334825(0x577)](_0x334825(0x840),[_0x471141,_0x307eb4,_0x18e395,_0x39627c]));}async['createIndexer'](_0x37fe08,_0x30c209={},_0x476690={}){const _0x3b70ba=_0xb23287;return this[_0x3b70ba(0x48e)](await this['_nm']('createIndexer',[_0x37fe08,_0x30c209,_0x476690]));}async[_0xb23287(0x206)](_0x29e96b,_0xda0dac={},_0x373bf4={}){const _0x444b22=_0xb23287;return this[_0x444b22(0x48e)](await this[_0x444b22(0x577)](_0x444b22(0x206),[_0x29e96b,_0xda0dac,_0x373bf4]));}async[_0xb23287(0x234)](_0x2c1ad7,_0x333d4f={},_0x89a2c5={}){const _0x4b697c=_0xb23287;return this[_0x4b697c(0x48e)](await this['_nm'](_0x4b697c(0x234),[_0x2c1ad7,_0x333d4f,_0x89a2c5]));}async[_0xb23287(0x85f)](_0x32effb,_0x420d98={},_0x186f9e={}){const _0x3ad5a9=_0xb23287,_0x180880=await this['_nm'](_0x3ad5a9(0x85f),[_0x32effb,_0x420d98,_0x186f9e]);return{'embedder':this['_wrap'](_0x180880[_0x3ad5a9(0x122)]),'indexer':this[_0x3ad5a9(0x48e)](_0x180880[_0x3ad5a9(0x706)]),'worker':this['_wrap'](_0x180880[_0x3ad5a9(0x7ab)]),'search':this[_0x3ad5a9(0x48e)](_0x180880[_0x3ad5a9(0x3ff)]),'api':this[_0x3ad5a9(0x485)](_0x180880[_0x3ad5a9(0x17d)],_0x180880['embedder'][_0x3ad5a9(0x425)],_0x180880['worker']?_0x180880[_0x3ad5a9(0x7ab)][_0x3ad5a9(0x425)]:_0x180880[_0x3ad5a9(0x17d)]+_0x3ad5a9(0x348))};}[_0xb23287(0x73a)](_0x549940,_0x3c3928){const _0x2779b1=_0xb23287;return this[_0x2779b1(0x4f7)][_0x2779b1(0x617)][_0x2779b1(0x6a9)](_0x549940,_0x3c3928)?.[_0x2779b1(0x551)]??null;}[_0xb23287(0x122)](_0x4954ee){const _0x1ebc8e=_0xb23287,_0x40d91f=this['_running'](_0x171944[_0x1ebc8e(0x3e4)],_0x4954ee);if(!_0x40d91f)return null;const _0x3e8e71=this,_0x4dc505=_0x5dd842=>Array[_0x1ebc8e(0x7e3)](_0x5dd842)&&Array[_0x1ebc8e(0x7e3)](_0x5dd842[0x0])?_0x5dd842[_0x1ebc8e(0x4e8)](_0x8eadb1=>Float32Array[_0x1ebc8e(0x3ed)](_0x8eadb1)):Float32Array['from'](_0x5dd842);return new Proxy(_0x40d91f,{'get'(_0x3b0e7f,_0x3c4e88){const _0x405662=_0x1ebc8e;if(_0x3c4e88==='dims')return _0x3e8e71[_0x405662(0x4f7)][_0x405662(0x24a)](_0x405662(0x617),null,_0x405662(0x30c),[_0x171944[_0x405662(0x3e4)],_0x4954ee,_0x405662(0x250),[]],![])[_0x405662(0x821)];if(_0x3c4e88===_0x405662(0x6b9))return async _0x15f5eb=>_0x4dc505(await _0x40d91f[_0x405662(0x6b9)](_0x15f5eb));if(_0x3c4e88===_0x405662(0x3f6))return async _0x501263=>(await _0x40d91f[_0x405662(0x3f6)](_0x501263))[_0x405662(0x4e8)](_0x436366=>Float32Array[_0x405662(0x3ed)](_0x436366));return _0x3b0e7f[_0x3c4e88];}});}[_0xb23287(0x706)](_0x363276){const _0x112ddb=_0xb23287;return this[_0x112ddb(0x73a)](_0x171944[_0x112ddb(0x375)],_0x363276);}[_0xb23287(0x7ab)](_0x381feb){const _0x73c621=_0xb23287;return this['_running'](_0x171944[_0x73c621(0x7f0)],_0x381feb);}[_0xb23287(0x3ff)](_0x3abd0c){const _0x29de11=_0xb23287,_0x1790c8=this['_running'](_0x171944[_0x29de11(0x387)],_0x3abd0c);if(_0x1790c8){const _0x3178a7=_0x87f848=>_0x1839e8(_0x3abd0c,async()=>_0x1790c8['load'](),async()=>_0x1790c8[_0x29de11(0x159)](),_0x87f848);return new Proxy(_0x1790c8,{'get':(_0x334449,_0x56c640)=>_0x56c640===_0x29de11(0x2bf)?_0x3178a7:_0x334449[_0x56c640]});}return this[_0x29de11(0x141)](_0x3abd0c);}[_0xb23287(0x141)](_0x4c17a8){const _0x3a2d3b=_0xb23287,_0x2a2097=this;return{'search':(_0x4acc5b,_0xaaf09={})=>_0x2a2097[_0x3a2d3b(0x4f7)]['_callMacro']('embeddings',null,_0x3a2d3b(0x3ff),[_0x4c17a8,_0x18cb59(_0x4acc5b),_0xaaf09],![]),'stats':async()=>_0x2a2097['_n'](_0x3a2d3b(0x696),[_0x4c17a8],![]),'count':()=>_0x2a2097['_n'](_0x3a2d3b(0x2a7),[_0x4c17a8,_0x3a2d3b(0x21b)],![]),'ready':_0x50bc82=>_0x1839e8(_0x4c17a8,async()=>_0x2a2097['_n'](_0x3a2d3b(0x2a7),[_0x4c17a8,'load'],!![]),async()=>_0x2a2097['_n'](_0x3a2d3b(0x696),[_0x4c17a8],!![]),_0x50bc82)};}async['searchDocs'](_0x341112,_0x4ba71d,_0x289658={}){const _0x36326b=_0xb23287,{limit:limit=0xa,..._0xd9555}=_0x289658;return this['_nm'](_0x36326b(0x70c),[_0x341112,_0x18cb59(_0x4ba71d),{..._0xd9555,'limit':limit}]);}['vectorSpace'](_0x1fcd62){const _0x2dd192=_0xb23287;return this['_n'](_0x2dd192(0x6bc),[_0x1fcd62],![]);}[_0xb23287(0x24b)](_0x4181f8,_0x12036b){const _0x3ccf3c=_0xb23287;return this['_n'](_0x3ccf3c(0x29c),[_0x4181f8,_0x12036b],![]);}['_durableEmbedderInfo'](_0x210478){const _0x557010=_0xb23287;return this['_n'](_0x557010(0x83f),[_0x210478],![]);}async[_0xb23287(0x5fd)](_0x5394c1){const _0x16671b=_0xb23287;return this['_n'](_0x16671b(0x57e),[_0x5394c1],![]);}async[_0xb23287(0x47a)](_0x43263e,_0x1b9aa1={}){const _0x22527a=_0xb23287;return this['_n'](_0x22527a(0x23d),[_0x43263e,_0x1b9aa1],![]);}async[_0xb23287(0x803)](_0x495d62,_0xb9caeb){return this['_n']('durableDoc',[_0x495d62,_0xb9caeb],![]);}async[_0xb23287(0x128)](_0x78162d,_0x496150,_0x4dbc7d,_0x197dc7){const _0x463814=_0xb23287;if(_0x78162d!=null&&typeof _0x78162d[_0x463814(0x6f8)]!=='function')throw _0x5a6350(_0x463814(0x425),_0x463814(0x705),_0x78162d);if(!_0x78162d||!_0x4dbc7d)return null;return this[_0x463814(0x4f7)]['_callMacro']('embeddings',null,_0x463814(0x128),[_0x78162d,_0x496150,_0x4dbc7d,_0x197dc7??null],![]);}async[_0xb23287(0x7c1)](_0x5385d8,_0x4d9b94,_0x35258d={}){const _0x211305=_0xb23287,_0x1a7319={..._0x35258d};if(_0x1a7319[_0x211305(0x695)])_0x1a7319[_0x211305(0x695)]=Array[_0x211305(0x3ed)](_0x1a7319[_0x211305(0x695)]);return this['_n'](_0x211305(0x7c1),[_0x5385d8,_0x4d9b94,_0x1a7319]);}async[_0xb23287(0x41e)](_0x4cd936,_0xeb4eaa,_0x3d1681,_0x1f2ae8={}){const _0x41e87d=_0xb23287;return this['_n'](_0x41e87d(0x41e),[_0x4cd936,_0xeb4eaa,_0x3d1681,_0x1f2ae8]);}async[_0xb23287(0x6c3)](_0x4e6128,_0x33d2b6){return this['_n']('durableMarkDelete',[_0x4e6128,_0x33d2b6]);}async[_0xb23287(0x31a)](_0x50dce2,_0x5d78e8){const _0x54a465=_0xb23287;return this['_n'](_0x54a465(0x31a),[_0x50dce2,_0x5d78e8]);}async[_0xb23287(0x7f1)](_0x147d99,_0x25a0fd={}){return this['_n']('durableRetryFailed',[_0x147d99,_0x25a0fd]);}async[_0xb23287(0x12f)](_0x2bac55){const _0x452fae=_0xb23287;return this['_nm'](_0x452fae(0x12f),[_0x2bac55]);}async['_durableWorkerStats'](_0x1964a7){const _0x599c8e=_0xb23287;return this['_n'](_0x599c8e(0x2ae),[_0x1964a7],![]);}['vectorStoreStats'](_0x1c6916){const _0x45ee80=_0xb23287;return this['_n'](_0x45ee80(0x5d8),[_0x1c6916],![]);}['listVectorStores'](){const _0x2d0c27=_0xb23287;return this['_n'](_0x2d0c27(0x688),[],![]);}[_0xb23287(0x6ae)](_0x34fe4f,_0x2fcd47){const _0x35d010=_0xb23287,_0x1b40a9=this['_n'](_0x35d010(0x6ae),[_0x34fe4f,_0x2fcd47],![]);return _0x1b40a9==null?null:Float32Array[_0x35d010(0x3ed)](_0x1b40a9);}[_0xb23287(0x226)](_0x5b373c,_0x3b1147){return this['_n']('resolveModelDims',[_0x5b373c,_0x3b1147??null],![])??undefined;}async[_0xb23287(0x406)](_0x3127a7,_0xba5a35,_0x57f764,_0x432650=''){const _0x5487f6=_0xb23287;return this['_n'](_0x5487f6(0x406),[_0x3127a7,_0xba5a35,_0x57f764,_0x432650]);}['listModels'](_0x2272a4=null){const _0x1b250a=_0xb23287;return this['_n'](_0x1b250a(0x238),[_0x2272a4],![]);}['listProviders'](){const _0x3c4aab=_0xb23287;return this['_n'](_0x3c4aab(0x653),[],![]);}async[_0xb23287(0x78b)](_0x2d0f58,_0x3929be){const _0x3dfa28=_0xb23287;return this['_n'](_0x3dfa28(0x63c),[_0x2d0f58,_0x3929be],![]),this[_0x3dfa28(0x4f7)][_0x3dfa28(0x1c2)]('~'+_0x2d0f58+_0x3dfa28(0x502)+_0x3929be);}async['_ensureVectorStore'](_0x26af92,_0x4a6a4b){const _0x584d5a=_0xb23287;return await this[_0x584d5a(0x78b)](_0x26af92,_0x4a6a4b),{'adapter':_0x20cce0=>this[_0x584d5a(0x5ab)](_0x26af92,_0x4a6a4b,_0x20cce0)};}['_makeLazyVectorAdapter'](_0x170c37,_0xca052b,_0x1f4c3f){const _0x47bd6a=this;return{async 'put'(_0x30c9f9,_0x1f6a92){const _0xc1e18e=_0x36a2;return _0x47bd6a['_n'](_0xc1e18e(0x776),[_0x170c37,_0xca052b,_0x1f4c3f,_0x30c9f9,Array[_0xc1e18e(0x3ed)](_0x1f6a92)]);},async 'remove'(_0x3ca583){const _0x55afea=_0x36a2;return _0x47bd6a['_n'](_0x55afea(0x558),[_0x170c37,_0xca052b,_0x1f4c3f,_0x3ca583]);}};}get[_0xb23287(0x5f0)](){const _0x51054f=_0xb23287,_0x1d3ae2=this,_0x3cbd47=()=>_0x1d3ae2['_n'](_0x51054f(0x2a4),[],![]),_0x4bb0d1=_0x4c277d=>{const _0x206d3f=_0x51054f,_0x17a433=_0x152ccf=>_0x1d3ae2['_n']('viewOp',[_0x4c277d,_0x152ccf],![]);return{'name':_0x4c277d,'_evict':async()=>_0x17a433(_0x206d3f(0x659)),'evict':async()=>_0x17a433(_0x206d3f(0x659)),'snapshot':async()=>_0x17a433(_0x206d3f(0x22c)),'_snapshot':async()=>_0x17a433(_0x206d3f(0x22c)),'rebuild':async()=>_0x17a433(_0x206d3f(0x247)),'stats':()=>_0x17a433(_0x206d3f(0x159)),get 'count'(){const _0x3e4504=_0x206d3f;return _0x17a433(_0x3e4504(0x21b));},get 'loaded'(){const _0x49d7b5=_0x206d3f;return _0x17a433(_0x49d7b5(0x4ac));}};};return{get 'size'(){const _0x37c7e9=_0x51054f;return _0x3cbd47()[_0x37c7e9(0x192)];},'has':_0x3a8807=>_0x3cbd47()[_0x51054f(0x6f8)](_0x3a8807),'get':_0x27a590=>_0x3cbd47()['includes'](_0x27a590)?_0x4bb0d1(_0x27a590):undefined,'keys':()=>_0x3cbd47()[Symbol[_0x51054f(0x1f2)]](),'values':()=>_0x3cbd47()[_0x51054f(0x4e8)](_0x4bb0d1)[Symbol[_0x51054f(0x1f2)]](),[Symbol['iterator']]:()=>_0x3cbd47()['map'](_0x3ebdff=>[_0x3ebdff,_0x4bb0d1(_0x3ebdff)])[Symbol[_0x51054f(0x1f2)]]()};}async['start'](){}async[_0xb23287(0x32a)](){const _0x4c0637=_0xb23287;this['_n'](_0x4c0637(0x32a),[]);}[_0xb23287(0x485)](_0x347824,_0x18f13a,_0x2bea78){const _0x7d97ee=_0xb23287;return{'search':(_0x23af39,_0x3f38a6={})=>{const _0x3de92d=_0x36a2,_0x5ea064=this[_0x3de92d(0x3ff)](_0x347824);if(!_0x5ea064)throw new Error(_0x3de92d(0x607)+_0x347824+'\x22');return _0x5ea064[_0x3de92d(0x3ff)](_0x23af39,_0x3f38a6);},'searchDocs':(_0x550543,_0x10c618={})=>this[_0x7d97ee(0x70c)](_0x347824,_0x550543,_0x10c618),'flush':_0x1fe3d6=>{const _0x1143a6=_0x7d97ee,_0x155f3f=this[_0x1143a6(0x706)](_0x347824);if(!_0x155f3f)throw new Error(_0x1143a6(0x220)+_0x347824+'\x22');return _0x155f3f[_0x1143a6(0x53c)](_0x1fe3d6);},'stats':async()=>({'embedder':await this[_0x7d97ee(0x122)](_0x18f13a)?.[_0x7d97ee(0x27f)]?.(),'indexer':await this[_0x7d97ee(0x706)](_0x347824)?.['stats']?.(),'worker':await this[_0x7d97ee(0x7ab)](_0x2bea78)?.['stats']?.(),'search':await this['search'](_0x347824)?.['stats']?.()})};}}return embeddings={'OKDBEmbeddings':_0x5c0fbf,'ENGINE_TYPES':_0x171944},embeddings;}var auth,hasRequiredAuth;function requireAuth(){const _0x3b708a=_0x2d5353;if(hasRequiredAuth)return auth;hasRequiredAuth=0x1;const {invalidArgument:_0x3842f7}=requireErrors();class _0x18b8eb{constructor(_0x15f886){const _0x249bf3=_0x36a2;this[_0x249bf3(0x4f7)]=_0x15f886;}['_n'](_0xd97bdb,_0x293d64=[],_0x310615=![]){const _0x52a448=_0x36a2;return this[_0x52a448(0x4f7)][_0x52a448(0x24a)]('auth',null,_0xd97bdb,_0x293d64,_0x310615);}[_0x3b708a(0x577)](_0x4a1882,_0x52bb63=[]){const _0x5614d5=_0x3b708a;return this['okdb'][_0x5614d5(0x67a)](_0x5614d5(0x13d),null,_0x4a1882,_0x52bb63,![]);}get[_0x3b708a(0x82b)](){const _0x4320ce=_0x3b708a;return this['_n'](_0x4320ce(0x82b));}get[_0x3b708a(0x590)](){const _0x2382c2=_0x3b708a;return this['_n'](_0x2382c2(0x590));}get[_0x3b708a(0x44f)](){const _0x166d23=_0x3b708a;return this[_0x166d23(0x4f7)]['options'][_0x166d23(0x13d)]?.[_0x166d23(0x63b)]||{};}[_0x3b708a(0x4e7)](_0x4bb470){const _0x532168=_0x3b708a;return this['_n'](_0x532168(0x4e7),[_0x4bb470??null]);}[_0x3b708a(0x842)](_0x1727a7){return this['_n']('isOpenForIp',[_0x1727a7??null]);}['_isLoopbackIp'](_0x3b0b91){const _0x164d47=_0x3b708a;return this['_n'](_0x164d47(0x3bd),[_0x3b0b91??null]);}[_0x3b708a(0x7f7)](){const _0x2c1e69=_0x3b708a;return this['_n'](_0x2c1e69(0x3b7));}[_0x3b708a(0x317)](){const _0x3c9121=_0x3b708a;return this['_n'](_0x3c9121(0x317));}[_0x3b708a(0x2b5)](){const _0x7f678f=_0x3b708a;return this['_n'](_0x7f678f(0x2b5));}[_0x3b708a(0x60f)](_0x524131){const _0x1813dc=_0x3b708a;return this['_n'](_0x1813dc(0x60f),[_0x524131]);}['authenticateToken'](_0x1b223e){const _0x2cdc63=_0x3b708a;return this['_n'](_0x2cdc63(0x358),[_0x1b223e]);}[_0x3b708a(0x834)](_0x279a47){const _0xf63da=_0x3b708a;if(_0x279a47!=null&&typeof _0x279a47!==_0xf63da(0x84a))throw _0x3842f7(_0xf63da(0x717),_0xf63da(0x705),_0x279a47);return this['_n']('parseBearer',[_0x279a47??null]);}async[_0x3b708a(0x755)](){const _0x19eb1b=_0x3b708a;return this['_n'](_0x19eb1b(0x19e),[],!![]);}async[_0x3b708a(0x486)](_0x12dfa1){return this['_n']('lookupByTokenHash',[_0x12dfa1]);}async['_lookupByName'](_0x33c64d){const _0x2ddafe=_0x3b708a;return this['_n'](_0x2ddafe(0x2f2),[_0x33c64d]);}async[_0x3b708a(0x579)](_0x4ce5c8){const _0x4c34f8=_0x3b708a;return this['_n'](_0x4c34f8(0x4d6),[_0x4ce5c8]);}async[_0x3b708a(0x7b8)](_0x52deb1){const _0xf9fda1=_0x3b708a,_0xc12671=_0x52deb1?.[_0xf9fda1(0x44a)]||{};return this['_n'](_0xf9fda1(0x7b8),[{'remoteAddress':_0x52deb1[_0xf9fda1(0x5e5)]?.[_0xf9fda1(0x4a0)]??null,'internal':_0x52deb1?.[_0xf9fda1(0x3ce)]?.['internal']===!![],'authorization':_0xc12671[_0xf9fda1(0x5a3)]??null,'cookies':_0x52deb1?.['cookies']??{}}]);}async[_0x3b708a(0x262)](_0x5581e9,_0x715f0b){const _0x9ac0b3=_0x3b708a;return this[_0x9ac0b3(0x577)](_0x9ac0b3(0x262),[_0x5581e9??null,_0x715f0b??null]);}async[_0x3b708a(0x14a)](_0x4c2576,_0x484916,_0xa57464){const _0x1798ee=_0x3b708a;return this[_0x1798ee(0x577)]('loginSelect',[_0x4c2576??null,_0x484916??null,_0xa57464??null]);}[_0x3b708a(0x23c)](){return this['_n']('getSecurityNotices');}[_0x3b708a(0x5e7)](){const _0x32be09=_0x3b708a;return this['_n'](_0x32be09(0x5e7));}[_0x3b708a(0x777)](_0x409c51={},_0x12fa43=0x927c0){const _0x13b11d=_0x3b708a;return this['_n'](_0x13b11d(0x777),[_0x409c51,_0x12fa43]);}['consumeLoginState'](_0x5e3caa){const _0x46219d=_0x3b708a;return this['_n'](_0x46219d(0x4a3),[_0x5e3caa]);}async['_validateOidcAccessToken'](_0xd4ea17,_0x188b3b={}){const _0x2d993c=_0x3b708a;return this[_0x2d993c(0x577)]('validateOidcAccessToken',[_0xd4ea17,_0x188b3b]);}async[_0x3b708a(0x5ac)](_0x287e5b={}){const _0x4c6b17=_0x3b708a;return this[_0x4c6b17(0x577)](_0x4c6b17(0x3fb),[_0x287e5b]);}[_0x3b708a(0x1df)](_0x2dfd05){const _0x2a9710=_0x3b708a;return this['_n'](_0x2a9710(0x6ee),[_0x2dfd05]);}}return auth={'OKDBAuth':_0x18b8eb},auth;}var sync,hasRequiredSync;function requireSync(){const _0x569042=_0x2d5353;if(hasRequiredSync)return sync;hasRequiredSync=0x1;const {RawDb:_0x4d51aa}=requireRawdb();class _0x29cfd1{constructor(_0xaf80ac){this['_s']=_0xaf80ac;}get[_0x569042(0x3e1)](){const _0x3e7a49=_0x569042;return this[_0x3e7a49(0x865)]||(this[_0x3e7a49(0x865)]=new _0x4d51aa(this['_s'][_0x3e7a49(0x4f7)][_0x3e7a49(0x7b5)],'__sync:acks'));}[_0x569042(0x7aa)](){return this['_ackDb'];}['_ensureDbs'](){return this['_ackDb'];}['_n'](_0x3a4c70,_0x153cf0=[]){const _0x35d2f8=_0x569042;return this['_s']['_n'](_0x35d2f8(0x6a1)+_0x3a4c70,_0x153cf0);}[_0x569042(0x371)](_0x40f37c,_0x97e059){const _0x1a8422=_0x569042;return this['_n'](_0x1a8422(0x371),[_0x40f37c,_0x97e059]);}async[_0x569042(0x249)](_0x5d9a3a){const _0xe2b871=_0x569042;return this['_n'](_0xe2b871(0x249),[_0x5d9a3a]);}[_0x569042(0x5d4)](){const _0x5c8efd=_0x569042;return this['_n'](_0x5c8efd(0x5d4));}[_0x569042(0x80f)](_0x5c1b50){const _0x223b69=_0x569042;return this['_n'](_0x223b69(0x80f),[_0x5c1b50]);}async[_0x569042(0x85d)](){const _0x494516=_0x569042;return this['_n'](_0x494516(0x85d));}['getStatus'](){const _0x231cd2=_0x569042;return this['_n'](_0x231cd2(0x782));}[_0x569042(0x4df)](){const _0x3d1072=_0x569042;return this['_n'](_0x3d1072(0x4df));}[_0x569042(0x32a)](){return this['_n']('stop');}get[_0x569042(0x3d0)](){const _0x4d1e36=_0x569042;try{return this['_n'](_0x4d1e36(0x7fc))?{}:null;}catch{return null;}}}class _0x24339d{constructor(_0x3807e2){const _0xa1652a=_0x569042;this[_0xa1652a(0x4f7)]=_0x3807e2,this['gc']=new _0x29cfd1(this);const _0x4595f0=this;this[_0xa1652a(0x4c0)]=new Proxy({},{'get':(_0x2b0a84,_0x3e68e1)=>typeof _0x3e68e1==='string'?_0x4595f0['_n']('options')[_0x3e68e1]:undefined,'set':(_0x3fd5a2,_0x1d40b4,_0x339bb2)=>{const _0x6981ef=_0xa1652a;if(_0x1d40b4===_0x6981ef(0x37b))_0x4595f0['_n'](_0x6981ef(0x34d),[_0x339bb2??null]);else{if(_0x1d40b4===_0x6981ef(0x877))_0x4595f0['_n']('setToken',[_0x339bb2??null]);else{if(_0x1d40b4===_0x6981ef(0x874))_0x4595f0['_n'](_0x6981ef(0x4ec),[_0x339bb2]);}}return!![];},'ownKeys':()=>Object[_0xa1652a(0x50d)](_0x4595f0['_n'](_0xa1652a(0x4c0))),'getOwnPropertyDescriptor':(_0x32184e,_0x508ca2)=>({'enumerable':!![],'configurable':!![],'value':_0x4595f0['_n'](_0xa1652a(0x4c0))[_0x508ca2]}),'has':(_0x3be418,_0x35d849)=>_0x35d849 in _0x4595f0['_n'](_0xa1652a(0x4c0))});}['_n'](_0x2a16ad,_0x1c9269=[],_0x9d7ef3=![]){const _0x2dbf6e=_0x569042;return this[_0x2dbf6e(0x4f7)][_0x2dbf6e(0x24a)](_0x2dbf6e(0x2a2),null,_0x2a16ad,_0x1c9269,_0x9d7ef3);}[_0x569042(0x577)](_0x195349,_0x116266=[]){const _0x5bcda9=_0x569042;return this[_0x5bcda9(0x4f7)]['_callMacro'](_0x5bcda9(0x2a2),null,_0x195349,_0x116266,!![]);}get[_0x569042(0x1b7)](){const _0x216f28=_0x569042;return this[_0x216f28(0x239)]||(this['_pdb']=new _0x4d51aa(this[_0x216f28(0x4f7)][_0x216f28(0x7b5)],'__sync:peer_state'));}[_0x569042(0x382)](){const _0x3900f8=_0x569042;return this[_0x3900f8(0x1b7)];}get[_0x569042(0x481)](){const _0x1751a4=_0x569042;return this[_0x1751a4(0x39a)]||(this['_syncLock']=new(requireLock())[(_0x1751a4(0x34f))](this['okdb'],'~system',_0x1751a4(0x2a2),{'ttlMs':0x7530}));}get['address'](){const _0x5b47a5=_0x569042;return this['_n'](_0x5b47a5(0x4c0))['address'];}get['_clockListener'](){const _0x40c8af=_0x569042;return this['okdb']['_isOpen']&&this['_n'](_0x40c8af(0x150))?{}:null;}get[_0x569042(0x474)](){const _0x2fb9c2=_0x569042;return this[_0x2fb9c2(0x681)];}get['_nodePrivateKey'](){const _0xe8695f=_0x569042;return this['_n'](_0xe8695f(0x14d))?.[_0xe8695f(0x7d1)];}get['_nodePublicKey'](){const _0x13218e=_0x569042;return this['_n'](_0x13218e(0x14d))?.[_0x13218e(0x78c)];}['info'](){const _0x43d264=_0x569042;return this['_n'](_0x43d264(0x758));}['getSelfNode'](){const _0x2d1777=_0x569042;return this['_n'](_0x2d1777(0x2a3));}get['peers'](){return this['__peers']||(()=>this['_n']('peers'));}set[_0x569042(0x19b)](_0x39039e){const _0x557435=_0x569042;this[_0x557435(0x2c9)]=typeof _0x39039e==='function'?_0x39039e:null,this['_n'](_0x557435(0x7b7),[this[_0x557435(0x2c9)]]);}[_0x569042(0x470)](){const _0x5aac6a=_0x569042;return this['_n'](_0x5aac6a(0x2c0));}async['reconcile'](){const _0x492c47=_0x569042;return this[_0x492c47(0x577)](_0x492c47(0x423));}async[_0x569042(0x2f6)](_0x6d5de9){const _0x49419c=_0x569042;return this['_nm'](_0x49419c(0x2f6),[_0x6d5de9]);}async[_0x569042(0x42e)](_0xfc6557,_0x2b12f2={}){const _0x337768=_0x569042;return this[_0x337768(0x577)](_0x337768(0x720),[_0xfc6557,_0x2b12f2]);}[_0x569042(0x32a)](){const _0xb0b114=_0x569042;return this['_n'](_0xb0b114(0x32a));}[_0x569042(0x2fd)](){return this['_n']('listLinks');}async[_0x569042(0x362)](_0x42c426,_0x3745e9={}){const _0x285c51=_0x569042;return this['_n'](_0x285c51(0x362),[_0x42c426,_0x3745e9],!![]);}async[_0x569042(0x127)](_0x113f13){return this['_n']('removeLink',[_0x113f13],!![]);}[_0x569042(0x70a)](_0x5a71d7){const _0x48829b=_0x569042;return this['_n'](_0x48829b(0x36b),[_0x5a71d7]);}[_0x569042(0x868)](_0x20a053){const _0x32cfa7=_0x569042;return this['_n'](_0x32cfa7(0x345),[_0x20a053]);}async[_0x569042(0x5bb)](_0x5088a5,_0x49fc67,_0x505826={}){const _0x15c9e5=_0x569042;return this['_n'](_0x15c9e5(0x1ba),[_0x5088a5,_0x49fc67,_0x505826]);}async[_0x569042(0x21a)](_0x16c2fc){return this['_n']('ensurePeerState',[_0x16c2fc]);}async[_0x569042(0x862)](){return this['_n']('ensure',[],!![]);}async[_0x569042(0x5a2)](_0xe11bcb){return this['_n']('patchSelf',[_0xe11bcb],!![]);}async[_0x569042(0x3ee)](_0x54c218,_0x1fcf1c={}){const _0x1a8063=_0x569042;return this[_0x1a8063(0x577)](_0x1a8063(0x3ee),[_0x54c218,_0x1fcf1c]);}async[_0x569042(0x7ce)](_0x3f0bf4={},_0x51321e={}){const _0x2f1f11=_0x569042;return void _0x3f0bf4[_0x2f1f11(0x5f7)],this['_n']('calculateDelta',[_0x3f0bf4,_0x51321e]);}async[_0x569042(0x86a)](_0x3eb42e,_0x463fc5,_0x3ab66a,_0x465c3d){const _0x43e776=_0x569042;return this[_0x43e776(0x577)]('fetchPeer',[_0x3eb42e,_0x463fc5,_0x3ab66a,_0x465c3d??null]);}async[_0x569042(0x731)](_0x5cf278,_0xdf21a2,_0x375a6f={}){const _0x4b89b4=_0x569042;return this[_0x4b89b4(0x577)]('fetchRemoteDelta',[_0x5cf278,_0xdf21a2,_0x375a6f]);}[_0x569042(0x229)](_0xd523e2,_0x4372a6=null){const _0x4a46d2=_0x569042;return this['_n'](_0x4a46d2(0x343),[_0xd523e2,_0x4372a6?_0x4372a6[_0x4a46d2(0x425)]:null]);}[_0x569042(0x49f)](_0x4c8b5d,_0x2b351b=null){const _0x1c2425=_0x569042;return this['_n'](_0x1c2425(0x49f),[_0x4c8b5d,_0x2b351b?_0x2b351b[_0x1c2425(0x425)]:null],!![]);}}return sync={'OKDBSync':_0x24339d},sync;}var migrate,hasRequiredMigrate;function requireMigrate(){const _0x1ac7b4=_0x2d5353;if(hasRequiredMigrate)return migrate;hasRequiredMigrate=0x1;const {optionsArg:_0x1eeff6}=requireErrors(),_0x2d0142=require$$0,_0x3dafaf=require$$4,_0x4f5532=0x40*0x400;async function _0x281c4f(_0x1708d3,_0x274d7a){const _0x1847d0=_0x36a2;for(let _0x5ed184=0x0;_0x5ed184<_0x274d7a[_0x1847d0(0x192)];){let _0x3a5326=Math['min'](_0x274d7a[_0x1847d0(0x192)],_0x5ed184+_0x4f5532);if(_0x3a5326<_0x274d7a[_0x1847d0(0x192)]){const _0x34951e=_0x274d7a[_0x1847d0(0x815)](0xa,_0x3a5326-0x1);_0x3a5326=_0x34951e===-0x1?_0x274d7a[_0x1847d0(0x192)]:_0x34951e+0x1;}const _0x4316d9=_0x1708d3[_0x1847d0(0x46e)](_0x274d7a[_0x1847d0(0x5ad)](_0x5ed184,_0x3a5326));_0x5ed184=_0x3a5326;if(!_0x4316d9)await new Promise(_0x3d74cf=>_0x1708d3[_0x1847d0(0x5f3)](_0x1847d0(0x7da),_0x3d74cf));await new Promise(_0x1ee70c=>setImmediate(_0x1ee70c));}}async function _0x41555e(_0x3574fe){const _0x29f74c=_0x36a2,_0x477ac9=[];for await(const _0x56401 of _0x3574fe)_0x477ac9[_0x29f74c(0x46d)](Buffer['isBuffer'](_0x56401)?_0x56401:Buffer[_0x29f74c(0x3ed)](_0x56401,_0x29f74c(0x667)));return Buffer[_0x29f74c(0x557)](_0x477ac9);}class _0x562dac{constructor(_0x3e1deb){const _0x43715f=_0x36a2;this[_0x43715f(0x4f7)]=_0x3e1deb;}['_n'](_0x17591f,_0xc8d0c4){const _0x74e65d=_0x36a2;return this[_0x74e65d(0x4f7)][_0x74e65d(0x24a)]('migrate',null,_0x17591f,_0xc8d0c4,!![]);}async['exportToStream'](_0x4836c4,_0x343d76={}){const _0x44a7fc=_0x36a2,{data:_0x2dbe5c,stats:_0x25b7ad}=this['_n'](_0x44a7fc(0x78d),[_0x343d76]);return await _0x281c4f(_0x4836c4,Buffer[_0x44a7fc(0x3ed)](_0x2dbe5c)),_0x25b7ad;}async['exportToFile'](_0x3843c8,_0x2f118b={}){const _0x559c9c=_0x36a2;_0x2d0142[_0x559c9c(0x86e)](_0x3dafaf['dirname'](_0x3843c8),{'recursive':!![]});const _0x2abbdb=_0x2d0142['createWriteStream'](_0x3843c8),_0xac5f62=await this['exportToStream'](_0x2abbdb,_0x2f118b);return await new Promise((_0x56f959,_0x198712)=>{const _0x3156e8=_0x559c9c;_0x2abbdb['end'](),_0x2abbdb[_0x3156e8(0x5f3)](_0x3156e8(0x15e),_0x56f959),_0x2abbdb[_0x3156e8(0x5f3)](_0x3156e8(0x5b4),_0x198712);}),{..._0xac5f62,'filePath':_0x3843c8};}async[_0x1ac7b4(0x704)](_0x1073b8,_0x5bfbf9={}){const _0x46846b=_0x1ac7b4,{data:_0x392838,stats:_0x493d7c}=this['_n']('exportEnvsBuf',[_0x5bfbf9]);return await _0x281c4f(_0x1073b8,Buffer[_0x46846b(0x3ed)](_0x392838)),_0x493d7c;}async['importFromStream'](_0x5bb061,_0x46aaad={}){const _0x156150=_0x1ac7b4,_0x4e4afa=await _0x41555e(_0x5bb061),{onProgress:_0x5a2b53,..._0x3ee054}=_0x46aaad,_0x1cb936=this['_n']('importBuf',[_0x4e4afa,_0x3ee054]);if(typeof _0x5a2b53===_0x156150(0x3b3))_0x5a2b53({'type':null,'count':_0x1cb936['records']});return _0x1cb936;}async[_0x1ac7b4(0x1ed)](_0x902d77,_0x26e2c6={}){const _0x4b8625=_0x1ac7b4;return this[_0x4b8625(0x49b)](_0x2d0142[_0x4b8625(0x2cb)](_0x902d77,{'encoding':'utf8'}),_0x26e2c6);}async[_0x1ac7b4(0x5ee)](_0x575ce2,_0x5db86e={}){const _0x29fcf0=_0x1ac7b4;return this['_n'](_0x29fcf0(0x5ee),[_0x575ce2,_0x5db86e]);}[_0x1ac7b4(0x813)](){const _0x43c7b6=_0x1ac7b4;return this['_n'](_0x43c7b6(0x813),[]);}[_0x1ac7b4(0x2e1)](_0x38566f){const _0x5e3348=_0x1ac7b4;return this['_n'](_0x5e3348(0x2e1),[_0x38566f??null]);}async[_0x1ac7b4(0x5bc)](_0x8db695={}){return this['_n']('export',[_0x8db695]);}async[_0x1ac7b4(0x805)](_0xaf1590,_0x585d21={}){return this['_n']('import',[_0xaf1590,_0x585d21]);}async[_0x1ac7b4(0x4d3)](_0x3a8e3c){const _0x5d7bb0=_0x1ac7b4,{pretty:pretty=![]}=_0x1eeff6(_0x3a8e3c);return JSON[_0x5d7bb0(0x84b)](await this[_0x5d7bb0(0x5bc)](),null,pretty?0x2:0x0);}async[_0x1ac7b4(0x22b)](_0x114715){const _0x580d4c=_0x1ac7b4;return this[_0x580d4c(0x805)](JSON['parse'](_0x114715));}[_0x1ac7b4(0x86f)](){const _0x18b699=_0x1ac7b4;if(!this[_0x18b699(0x4f7)][_0x18b699(0x3e2)][_0x18b699(0x6ce)](_0x18b699(0x634))?.[_0x18b699(0x669)])throw new Error(_0x18b699(0x7e5));}async[_0x1ac7b4(0x7ca)](_0x52099d){return this['_assertFiles'](),this['_n']('exportBlobs',[_0x52099d]);}async['importBlobs'](_0x20b3a4){const _0x40f8ea=_0x1ac7b4;return this[_0x40f8ea(0x86f)](),this['_n'](_0x40f8ea(0x326),[_0x20b3a4]);}['_allEnvsWithFiles'](){const _0x598b61=_0x1ac7b4;return this['_n']('envsWithFiles',[])[_0x598b61(0x4e8)](_0x3cca69=>this['okdb'][_0x598b61(0x784)](_0x3cca69));}async[_0x1ac7b4(0x3d5)](){const _0x5af1ef=_0x1ac7b4;return this[_0x5af1ef(0x86f)](),this['_n'](_0x5af1ef(0x3d5),[]);}async['repairBlobRefs'](){const _0x4becc9=_0x1ac7b4;return this[_0x4becc9(0x86f)](),this['_n']('repairBlobRefs',[]);}}return migrate={'OKDBMigrate':_0x562dac},migrate;}var mcp,hasRequiredMcp;function requireMcp(){const _0x4b65ea=_0x2d5353;if(hasRequiredMcp)return mcp;hasRequiredMcp=0x1;class _0x394d2b{constructor(_0x2bd5b6){const _0x44851f=_0x36a2;this[_0x44851f(0x4f7)]=_0x2bd5b6,this[_0x44851f(0x4b6)]=new Map();}['_n'](_0x407352,_0x5b88a6){const _0x422017=_0x36a2;try{return this[_0x422017(0x4f7)][_0x422017(0x24a)](_0x422017(0x32d),null,_0x407352,_0x5b88a6,!![]);}catch(_0xc9a96f){if(_0xc9a96f&&_0xc9a96f[_0x422017(0x316)]===_0x422017(0x123)&&_0xc9a96f[_0x422017(0x433)]){if(_0xc9a96f[_0x422017(0x433)]['jsonrpcCode']!==undefined)_0xc9a96f['jsonrpcCode']=_0xc9a96f['details'][_0x422017(0x216)];_0xc9a96f[_0x422017(0x433)]=_0xc9a96f[_0x422017(0x433)][_0x422017(0x433)],_0xc9a96f[_0x422017(0x316)]=undefined;}throw _0xc9a96f;}}[_0x4b65ea(0x4a7)](){return this['_n']('tools',[]);}async[_0x4b65ea(0x24a)](_0x1bbce5,_0xcccb13={}){return this['_n']('call',[_0x1bbce5??null,_0xcccb13??{}]);}async[_0x4b65ea(0x331)](_0x4423ba,_0x2f4777={}){return this['_n']('handle',[_0x4423ba,_0x2f4777??{}]);}[_0x4b65ea(0x231)](_0x1c4dfa){return this['_n']('initialize',[_0x1c4dfa??null]);}}return mcp={'OKDBMcp':_0x394d2b},mcp;}var sys,hasRequiredSys;function requireSys(){const _0x25927a=_0x2d5353;if(hasRequiredSys)return sys;hasRequiredSys=0x1;function _0x1699ec(_0x1c5c21,_0x39227b,_0x4e2374){const _0x548b0c=_0x36a2,_0x3c4d6c={};for(const [_0x1dec3,_0x493cba]of Object[_0x548b0c(0x45b)](_0x4e2374)){_0x3c4d6c[_0x1dec3]=_0x493cba===_0x548b0c(0x537)?async(..._0x4b4e73)=>_0x1c5c21[_0x548b0c(0x24a)](_0x39227b,null,_0x1dec3,_0x4b4e73):(..._0x4c64ae)=>_0x1c5c21['_call'](_0x39227b,null,_0x1dec3,_0x4c64ae,![]);}return _0x3c4d6c;}const _0x1242ca=['listTypes',_0x25927a(0x809),_0x25927a(0x26c),_0x25927a(0x52a),_0x25927a(0x581),_0x25927a(0x518),_0x25927a(0x447),_0x25927a(0x2dd),_0x25927a(0x2f1),_0x25927a(0x33c),_0x25927a(0x314),'describeTypeDetailed',_0x25927a(0x258),_0x25927a(0x360),_0x25927a(0x844),_0x25927a(0x64e),_0x25927a(0x6fd),'areIndexesReady',_0x25927a(0x6d2),_0x25927a(0x631),_0x25927a(0x55f)],_0x5a3752={'add':_0x25927a(0x537),'activate':_0x25927a(0x537),'remove':_0x25927a(0x537),'list':_0x25927a(0x2a2),'get':_0x25927a(0x2a2),'effective':_0x25927a(0x2a2)},_0x414bad={'open':_0x25927a(0x537),'register':'async','buildOwnRow':'sync','_buildProcessingFacet':_0x25927a(0x2a2),'reportThreadStats':_0x25927a(0x2a2),'clearThreadStats':'sync','emitProc':_0x25927a(0x2a2),'addSupervisedChild':'async','removeSupervisedChild':_0x25927a(0x2a2),'updateSupervisedChildStats':_0x25927a(0x2a2),'publishChildRow':_0x25927a(0x537),'putNode':'async','removeNode':_0x25927a(0x537),'nodeDead':_0x25927a(0x2a2),'listNodes':_0x25927a(0x2a2),'reap':'async','publishOwnRow':'async','deregisterSelf':_0x25927a(0x537),'setOwnMeta':_0x25927a(0x2a2),'noteListenAddr':_0x25927a(0x2a2),'hasDesired':_0x25927a(0x2a2),'getDesired':_0x25927a(0x2a2),'setDesired':'async','listDesired':_0x25927a(0x2a2),'getCmd':_0x25927a(0x2a2),'bumpCmd':_0x25927a(0x537),'processingStatusView':_0x25927a(0x2a2),'processorsView':_0x25927a(0x2a2),'clusterStatusView':_0x25927a(0x2a2),'nodesView':_0x25927a(0x2a2),'treeView':_0x25927a(0x2a2),'getProcess':_0x25927a(0x2a2),'runtimeProcessesView':_0x25927a(0x2a2)};function _0x41b156(_0x935371){const _0xe49b45=_0x25927a,_0x385842={},_0xfd8e03=_0x44f914=>_0x44f914&&typeof _0x44f914===_0xe49b45(0x712)&&!Array[_0xe49b45(0x7e3)](_0x44f914)&&typeof _0x44f914[_0xe49b45(0x425)]==='string'?_0x44f914[_0xe49b45(0x425)]:_0x44f914;for(const _0x32e45c of _0x1242ca)_0x385842[_0x32e45c]=_0x32e45c===_0xe49b45(0x631)?async(..._0x25d5c5)=>_0x935371[_0xe49b45(0x24a)](_0xe49b45(0x360),null,_0x32e45c,_0x25d5c5[_0xe49b45(0x4e8)](_0xfd8e03),!![]):(..._0x133588)=>_0x935371[_0xe49b45(0x24a)]('meta',null,_0x32e45c,_0x133588[_0xe49b45(0x4e8)](_0xfd8e03),![]);return _0x385842;}function _0xb804ba(_0x5e44fa){const _0x446e0f=_0x25927a,_0x34711e=_0x1699ec(_0x5e44fa,_0x446e0f(0x6b8),_0x5a3752);return _0x34711e;}function _0x259449(_0x386b77){const _0x1ae09f=_0x25927a,_0x232345=()=>_0x386b77[_0x1ae09f(0x6b8)][_0x1ae09f(0x3bc)](),_0x498449=_0x5f18e0=>_0x5f18e0['free']?{..._0x5f18e0,'_isFree':!![]}:_0x5f18e0;return{async 'addLicense'(_0x2ee5ba){const _0x442c34=_0x1ae09f;return _0x386b77[_0x442c34(0x6b8)][_0x442c34(0x725)](_0x2ee5ba);},async 'reload'(){},async 'recheck'(){},get 'active'(){const _0x48bed3=_0x1ae09f,_0x38f491=_0x232345();return _0x38f491[_0x48bed3(0x152)]?null:_0x38f491;},get 'effective'(){return _0x498449(_0x232345());},'hasLimit'(_0x2895d7){const _0x4dbe69=_0x1ae09f,_0x5327c5=_0x232345();if(!_0x5327c5['enforced'])return![];const _0x5ac72c=_0x5327c5[_0x4dbe69(0x2c5)]?.[_0x2895d7];return!(_0x5ac72c===null||_0x5ac72c===undefined||_0x5ac72c===0x0);},'isFeatureEnabled'(_0x431719){const _0x407a5c=_0x1ae09f,_0x1883cd=_0x232345();return!_0x1883cd['enforced']||!!_0x1883cd[_0x407a5c(0x1ec)]?.[_0x431719];},'assertFeature'(_0x1dd68e){const _0x533c86=_0x1ae09f,_0x489917=_0x232345();if(!_0x489917[_0x533c86(0x50f)]||_0x489917[_0x533c86(0x1ec)]?.[_0x1dd68e])return;const {OKDBError:_0x46a9fe}=requireErrors(),_0x587c5f=_0x489917[_0x533c86(0x152)]?_0x533c86(0x254)+_0x1dd68e+_0x533c86(0x56c)+_0x1dd68e+_0x533c86(0x1da):'Feature\x20not\x20licensed:\x20'+_0x1dd68e+_0x533c86(0x711)+_0x1dd68e+'\x22.';throw new _0x46a9fe(_0x587c5f,_0x533c86(0x1d0),{'feature':_0x1dd68e});},'assertLimit'(_0x3e78a8,_0x3dc3e8){const _0x5ede20=_0x1ae09f,_0x16062b=_0x232345();if(!_0x16062b['enforced'])return;const _0x329d04=_0x16062b[_0x5ede20(0x2c5)]?.[_0x3e78a8];if(_0x329d04===null||_0x329d04===undefined||_0x329d04===0x0)return;if(_0x3dc3e8>=_0x329d04){const {OKDBError:_0x155101}=requireErrors();throw new _0x155101('License\x20limit\x20exceeded:\x20'+_0x3e78a8+'\x20('+_0x3dc3e8+'/'+_0x329d04+')',_0x5ede20(0x19d),{'limit':_0x3e78a8,'current':_0x3dc3e8,'max':_0x329d04});}},'listLicenses'(){const _0xe5abe7=_0x1ae09f;return _0x386b77[_0xe5abe7(0x6b8)][_0xe5abe7(0x6ec)]();},'getPins'(){const _0x3168af=_0x1ae09f;return _0x386b77['licenses']['list']()[_0x3168af(0x4e8)](_0x33c9ab=>({'licenseId':_0x33c9ab['id'],'pin':_0x33c9ab[_0x3168af(0x2d0)]===_0x3168af(0x223)?null:_0x33c9ab[_0x3168af(0x202)]}));}};}function _0x51fef8(_0x5b310a){const _0x382fe8=_0x25927a,_0xf5bcaa=_0x1699ec(_0x5b310a,_0x382fe8(0x1ea),_0x414bad);Object[_0x382fe8(0x2ad)](_0xf5bcaa,_0x382fe8(0x585),{'get':()=>_0x5b310a[_0x382fe8(0x24a)](_0x382fe8(0x1ea),null,_0x382fe8(0x585),[],![])}),Object[_0x382fe8(0x2ad)](_0xf5bcaa,_0x382fe8(0x4ad),{'get':()=>_0x5b310a[_0x382fe8(0x24a)](_0x382fe8(0x1ea),null,_0x382fe8(0x4ad),[],![])}),_0xf5bcaa[_0x382fe8(0x3e8)]=null;const _0xebd5ec=_0xf5bcaa[_0x382fe8(0x29a)];_0xf5bcaa[_0x382fe8(0x29a)]=_0x5c8a20=>{const _0x469862=_0x382fe8;return _0xf5bcaa[_0x469862(0x3e8)]=_0x5c8a20,_0xebd5ec(_0x5c8a20);};const _0x2c4a8a=()=>_0xf5bcaa[_0x382fe8(0x6a0)]()[_0x382fe8(0x4e8)](_0x4cd634=>({'key':_0x4cd634[_0x382fe8(0x3ab)],'value':_0x4cd634,'version':0x1})),_0x3f1a26={'name':_0x382fe8(0x2a0),'_sync':![],'_isOpen':!![],'isProcessStore':!![],'hasType':_0x542875=>_0x542875==='node','getRange':_0x442a2f=>_0x442a2f==='node'?_0x2c4a8a()[Symbol[_0x382fe8(0x1f2)]]():[][Symbol[_0x382fe8(0x1f2)]](),'getKeys':_0x7f98cf=>_0x7f98cf===_0x382fe8(0x28c)?_0x2c4a8a()[_0x382fe8(0x4e8)](_0x5d3161=>_0x5d3161['key'])[Symbol[_0x382fe8(0x1f2)]]():[][Symbol[_0x382fe8(0x1f2)]](),'getValues':_0x5d654b=>_0x5d654b===_0x382fe8(0x28c)?_0x2c4a8a()[_0x382fe8(0x4e8)](_0x115809=>_0x115809[_0x382fe8(0x821)])[Symbol[_0x382fe8(0x1f2)]]():[][Symbol['iterator']](),'get':(_0x3428a6,_0x431ec6)=>_0x3428a6===_0x382fe8(0x28c)?_0x2c4a8a()[_0x382fe8(0x472)](_0x133314=>_0x133314['key']===_0x431ec6)?.['value']:undefined,'getCount':_0x4eb7c1=>_0x4eb7c1===_0x382fe8(0x28c)?_0x2c4a8a()[_0x382fe8(0x192)]:0x0};Object[_0x382fe8(0x2ad)](_0xf5bcaa,_0x382fe8(0x144),{'get':()=>_0x5b310a[_0x382fe8(0x24a)](_0x382fe8(0x1ea),null,_0x382fe8(0x20e),[],![])?_0x3f1a26:null});const _0x1dbc62=_0xf5bcaa[_0x382fe8(0x223)];_0xf5bcaa[_0x382fe8(0x223)]=async _0x2c3121=>{return await _0x1dbc62(_0x2c3121),_0xf5bcaa['_statusEnv'];},_0xf5bcaa[_0x382fe8(0x7e6)]=()=>_0x5b310a[_0x382fe8(0x24a)]('processes',null,_0x382fe8(0x831),[],!![]);const {RawDb:_0x24ba00}=requireRawdb();return Object[_0x382fe8(0x2ad)](_0xf5bcaa,'_desired',{'get':()=>_0x5b310a[_0x382fe8(0x7b5)]?_0xf5bcaa['__desired']||=new _0x24ba00(_0x5b310a['_systemEnv'],_0x382fe8(0x7dc)):undefined}),Object['defineProperty'](_0xf5bcaa,_0x382fe8(0x2b6),{'get':()=>_0x5b310a['_systemEnv']?_0xf5bcaa[_0x382fe8(0x761)]||=new _0x24ba00(_0x5b310a['_systemEnv'],_0x382fe8(0x79a)):undefined}),_0xf5bcaa[_0x382fe8(0x829)]=()=>_0x5b310a[_0x382fe8(0x24a)](_0x382fe8(0x1ea),null,_0x382fe8(0x829),[],![]),Object[_0x382fe8(0x2ad)](_0xf5bcaa,_0x382fe8(0x396),{'get':()=>_0x5b310a[_0x382fe8(0x24a)](_0x382fe8(0x1ea),null,_0x382fe8(0x529),[],![])}),Object[_0x382fe8(0x2ad)](_0xf5bcaa,_0x382fe8(0x6be),{'get':()=>_0x5b310a['_call']('processes',null,_0x382fe8(0x76e),[],![])}),_0xf5bcaa[_0x382fe8(0x753)]=()=>_0x5b310a[_0x382fe8(0x24a)](_0x382fe8(0x1ea),null,'buildOwnRow',[],![]),_0xf5bcaa['_emitProc']=(_0x12f0b0,_0x5d3918)=>_0x5b310a['_call'](_0x382fe8(0x1ea),null,_0x382fe8(0x6d7),[_0x12f0b0,_0x5d3918],![]),_0xf5bcaa;}return sys={'makeMeta':_0x41b156,'makeLicenses':_0xb804ba,'makeLicenseChecker':_0x259449,'makeProcesses':_0x51fef8},sys;}var okdbLogger,hasRequiredOkdbLogger;function requireOkdbLogger(){const _0x53f791=_0x2d5353;if(hasRequiredOkdbLogger)return okdbLogger;hasRequiredOkdbLogger=0x1;const _0x49d3fd={'debug':0xa,'info':0x14,'warn':0x1e,'error':0x28};class _0x4db742{constructor(_0x248c2f){const _0x5980ee=_0x36a2;this[_0x5980ee(0x4f7)]=_0x248c2f,this[_0x5980ee(0x309)]=new Set(),this[_0x5980ee(0x3b1)]={};}['child'](_0xcb657){const _0x481d47=_0x36a2,_0x258392=new _0x4db742(this[_0x481d47(0x4f7)]);return _0x258392[_0x481d47(0x309)]=this['_sinks'],_0x258392[_0x481d47(0x3b1)]={...this[_0x481d47(0x3b1)],..._0xcb657},_0x258392;}[_0x53f791(0x5b2)](_0x52ed69){const _0x4d1838=_0x53f791;return this[_0x4d1838(0x309)][_0x4d1838(0x725)](_0x52ed69),()=>this[_0x4d1838(0x309)][_0x4d1838(0x243)](_0x52ed69);}['attachConsole'](){const _0x39242a=_0x53f791,_0x5bbea3=_0x49d3fd[process.env.OKDB_LOG_LEVEL]??_0x49d3fd[_0x39242a(0x758)];return this[_0x39242a(0x51d)]=this[_0x39242a(0x5b2)](({level:_0x4828b8,msg:_0x280456,meta:_0x53488f,context:_0x5837a7,ts:_0x5229a7})=>{const _0x279a2b=_0x39242a;if((_0x49d3fd[_0x4828b8]??_0x49d3fd[_0x279a2b(0x758)])<_0x5bbea3)return;if(_0x53488f?.[_0x279a2b(0x7a7)]===_0x279a2b(0x792)&&(_0x4828b8===_0x279a2b(0x758)||_0x4828b8==='debug'))return;const _0x146f87=_0x4828b8===_0x279a2b(0x5b4)?console[_0x279a2b(0x5b4)]:_0x4828b8===_0x279a2b(0x1fc)?console['warn']:_0x4828b8===_0x279a2b(0x758)?console[_0x279a2b(0x758)]:console[_0x279a2b(0x71e)],_0x2d779e=_0x53488f&&Object[_0x279a2b(0x50d)](_0x53488f)[_0x279a2b(0x192)]>0x0;_0x2d779e||_0x5837a7!==undefined?_0x146f87(new Date(_0x5229a7)[_0x279a2b(0x690)](),_0x280456,..._0x2d779e?[_0x53488f]:[],..._0x5837a7!==undefined?[_0x5837a7]:[]):_0x146f87(new Date(_0x5229a7)[_0x279a2b(0x690)](),_0x280456);}),this['_detachConsole'];}[_0x53f791(0x304)](){const _0x370d00=_0x53f791;this[_0x370d00(0x51d)]&&(this[_0x370d00(0x51d)](),this[_0x370d00(0x51d)]=null);}[_0x53f791(0x257)](_0x3e80f4,_0x20ac4f){const _0x257313=_0x53f791,_0x4297c7=require$$0$4,_0x2d2107=0x1f4,_0x444892=Number(process.env.OKDB_LOG_FLUSH_MS)||0x3e8;let _0x39e81a=[],_0x2462cf=0x0,_0x2407a6=null;const _0x188477=()=>{const _0x3fc125=_0x36a2;_0x2407a6=null;if(_0x39e81a[_0x3fc125(0x192)]===0x0)return;const _0x2c3789=_0x39e81a;_0x39e81a=[],_0x2462cf>0x0&&(_0x2c3789[_0x3fc125(0x46d)]({'ts':Date[_0x3fc125(0x76a)](),'level':'warn','msg':'[log-sink]\x20'+_0x2462cf+'\x20log\x20entr'+(_0x2462cf===0x1?'y':_0x3fc125(0x2da))+'\x20dropped\x20(buffer\x20full)','feature':_0x3fc125(0x71e),'node':_0x20ac4f,'context':null}),_0x2462cf=0x0),_0x3e80f4['txn'](_0x265143=>{const _0xc4d081=_0x3fc125;for(const _0x35e930 of _0x2c3789)_0x265143['put'](_0xc4d081(0x3d7),_0x4297c7['randomUUID'](),_0x35e930);})[_0x3fc125(0x512)](()=>{});},_0x5b98d8=this[_0x257313(0x5b2)](({level:_0x4787ff,msg:_0x5fdb7b,meta:_0x5ce8a3,context:_0x3a5c99,ts:_0x492a43})=>{const _0x234d5f=_0x257313;if(_0x4787ff===_0x234d5f(0x13f))return;_0x39e81a[_0x234d5f(0x192)]>=_0x2d2107&&(_0x2462cf++,_0x39e81a[_0x234d5f(0x356)]()),_0x39e81a[_0x234d5f(0x46d)]({'ts':_0x492a43,'level':_0x4787ff,'msg':_0x5fdb7b,'feature':_0x5ce8a3?.['feature']??_0x5ce8a3?.[_0x234d5f(0x455)]??null,'node':_0x20ac4f,'context':_0x3a5c99??null}),!_0x2407a6&&(_0x2407a6=setTimeout(_0x188477,_0x444892),_0x2407a6[_0x234d5f(0x46f)]?.());});return()=>{_0x5b98d8();if(_0x2407a6)clearTimeout(_0x2407a6);_0x188477();};}[_0x53f791(0x3dd)](_0x351938,_0x53786f,_0x23c90a){const _0x417a05=_0x53f791;_0x53786f instanceof Error&&(_0x23c90a={'message':_0x53786f[_0x417a05(0x367)],'stack':_0x53786f[_0x417a05(0x86d)],..._0x23c90a},_0x53786f=_0x53786f[_0x417a05(0x367)]);const _0x5bd985={'level':_0x351938,'msg':_0x53786f,'meta':{...this['_meta']},'context':_0x23c90a,'ts':Date[_0x417a05(0x76a)]()};try{this[_0x417a05(0x4f7)]['events'][_0x417a05(0x839)](_0x417a05(0x71e),_0x5bd985);}catch{}for(const _0x24ca0c of this[_0x417a05(0x309)]){try{_0x24ca0c(_0x5bd985);}catch{}}}[_0x53f791(0x297)](_0x56513c){const _0x5b2af7=_0x53f791;try{this[_0x5b2af7(0x4f7)]?.[_0x5b2af7(0x5d6)]?.[_0x5b2af7(0x839)](_0x5b2af7(0x71e),_0x56513c);}catch{}for(const _0x58783d of this[_0x5b2af7(0x309)]){try{_0x58783d(_0x56513c);}catch{}}}['info'](_0x1bd9f0,_0x254a39){const _0x49047e=_0x53f791;this[_0x49047e(0x3dd)](_0x49047e(0x758),_0x1bd9f0,_0x254a39);}[_0x53f791(0x1fc)](_0x20c88e,_0x303040){const _0xe1a6d4=_0x53f791;this[_0xe1a6d4(0x3dd)](_0xe1a6d4(0x1fc),_0x20c88e,_0x303040);}[_0x53f791(0x5b4)](_0x5a50d9,_0x5270de){const _0x56bc78=_0x53f791;this[_0x56bc78(0x3dd)]('error',_0x5a50d9,_0x5270de);}[_0x53f791(0x13f)](_0x50f421,_0x507987){const _0x108a53=_0x53f791;this[_0x108a53(0x3dd)](_0x108a53(0x13f),_0x50f421,_0x507987);}}return okdbLogger=_0x4db742,okdbLogger;}var okdbPlugins,hasRequiredOkdbPlugins;function requireOkdbPlugins(){const _0x5ac7b2=_0x2d5353;if(hasRequiredOkdbPlugins)return okdbPlugins;hasRequiredOkdbPlugins=0x1;const {OKDB_STATE:_0x2a7626}=requireOkdbEnums(),{OKDBError:_0xa3f487}=requireOkdbError();class _0x2f24d6{constructor(_0x508b73){const _0x3ea20e=_0x36a2;this[_0x3ea20e(0x4f7)]=_0x508b73,this[_0x3ea20e(0x37f)]=[];}[_0x5ac7b2(0x82d)](_0x468819,_0x270168){const _0x1b8eca=_0x5ac7b2;if(this['okdb'][_0x1b8eca(0x76c)]!==_0x2a7626[_0x1b8eca(0x392)])throw new _0xa3f487(_0x1b8eca(0x5db),_0x1b8eca(0x1be),{'state':this[_0x1b8eca(0x4f7)]['state']});if(!_0x468819[_0x1b8eca(0x425)])throw new _0xa3f487(_0x1b8eca(0x24c),_0x1b8eca(0x36f),{'plugin':_0x468819[_0x1b8eca(0x425)]});const _0x301942=_0x468819[_0x1b8eca(0x313)]??[];for(const _0x8e9ee6 of _0x301942){if(!this[_0x1b8eca(0x37f)]['some'](_0x38b1c9=>_0x38b1c9['module'][_0x1b8eca(0x425)]===_0x8e9ee6))throw new _0xa3f487(_0x1b8eca(0x443)+_0x8e9ee6+_0x1b8eca(0x76f)+_0x468819[_0x1b8eca(0x425)]+')',_0x1b8eca(0x444),{'required':_0x8e9ee6});}if(this[_0x1b8eca(0x37f)][_0x1b8eca(0x472)](_0x100f17=>_0x100f17[_0x1b8eca(0x455)][_0x1b8eca(0x425)]===_0x468819[_0x1b8eca(0x425)]))throw new _0xa3f487('Plugin\x20\x27'+_0x468819['name']+_0x1b8eca(0x5c4),_0x1b8eca(0x6a4),{'plugin':_0x468819[_0x1b8eca(0x425)]});if(_0x468819[_0x1b8eca(0x425)]in this[_0x1b8eca(0x4f7)])throw new _0xa3f487(_0x1b8eca(0x121)+_0x468819['name']+_0x1b8eca(0x7f5),_0x1b8eca(0x5b0));const _0x3afea4=_0x468819[_0x1b8eca(0x82d)](this[_0x1b8eca(0x4f7)],_0x270168);if(!_0x3afea4||typeof _0x3afea4!==_0x1b8eca(0x712))throw new _0xa3f487(_0x1b8eca(0x72e)+_0x468819[_0x1b8eca(0x425)]+_0x1b8eca(0x3be),_0x1b8eca(0x36f),{'plugin':_0x468819[_0x1b8eca(0x425)]});this[_0x1b8eca(0x37f)][_0x1b8eca(0x46d)]({'module':_0x468819,'options':_0x270168,'instance':_0x3afea4});}[_0x5ac7b2(0x508)]=[];async[_0x5ac7b2(0x4df)](){const _0x22a980=_0x5ac7b2;try{for(const _0x170b8b of this[_0x22a980(0x37f)]){await _0x170b8b[_0x22a980(0x699)][_0x22a980(0x4df)]?.(this[_0x22a980(0x4f7)]),this[_0x22a980(0x508)][_0x22a980(0x46d)](_0x170b8b);}}catch(_0x5efebd){await this[_0x22a980(0x32a)]()[_0x22a980(0x512)](()=>{});throw _0x5efebd;}}async[_0x5ac7b2(0x32a)](){const _0x348e3c=_0x5ac7b2,_0x1d90f2=this[_0x348e3c(0x508)][_0x348e3c(0x5ca)]();this[_0x348e3c(0x508)]=[];let _0x90ccf1=null;for(const _0x45edd3 of _0x1d90f2){try{await _0x45edd3[_0x348e3c(0x699)]['stop']?.(this['okdb']);}catch(_0xa4b766){_0x90ccf1??=_0xa4b766;}}if(_0x90ccf1)throw _0x90ccf1;}}return okdbPlugins=_0x2f24d6,okdbPlugins;}var statics,hasRequiredStatics;function requireStatics(){const _0x5aba02=_0x2d5353;if(hasRequiredStatics)return statics;hasRequiredStatics=0x1;const _0x4343a8={'maxDbs':0x400,'pageSize':0x1000,'compression':!![],'encryptionKey':undefined,'mapSize':0x100000000,'durability':_0x5aba02(0x3fa)},_0xcbcea1=new Set(['maxDbs','pageSize',_0x5aba02(0x12c),_0x5aba02(0x4ee),_0x5aba02(0x7c7),'mapSize',_0x5aba02(0x2be),_0x5aba02(0x586),'lmdb',_0x5aba02(0x13d),_0x5aba02(0x2a2),_0x5aba02(0x72c),_0x5aba02(0x792),_0x5aba02(0x858),_0x5aba02(0x32d),_0x5aba02(0x5ec),'log',_0x5aba02(0x5c9),'readerCheckIntervalMs',_0x5aba02(0x617),_0x5aba02(0x23a),'compaction','processes','autoCompact',_0x5aba02(0x551),'admin',_0x5aba02(0x361),_0x5aba02(0x13f),_0x5aba02(0x676),'backup']),_0x4413bc={'http':_0x5aba02(0x65a)};return statics={'defaults':_0x4343a8,'KNOWN_OPTIONS':_0xcbcea1,'_OPTION_HINTS':_0x4413bc},statics;}var licenseConfig,hasRequiredLicenseConfig;function requireLicenseConfig(){const _0x14ff32=_0x2d5353;if(hasRequiredLicenseConfig)return licenseConfig;hasRequiredLicenseConfig=0x1;const _0x487c03=require$$0$2,_0x190915=_0x14ff32(0x526),_0x1892ac=_0x487c03['createHash'](_0x14ff32(0x131))[_0x14ff32(0x1a2)](_0x487c03[_0x14ff32(0x658)](_0x190915)[_0x14ff32(0x5bc)]({'type':_0x14ff32(0x4c5),'format':_0x14ff32(0x58b)}))[_0x14ff32(0x4e4)]('hex')['slice'](0x0,0x10),_0x286ee0={'LICENSED_BUILD':_0x14ff32(0x77b),'PUBLIC_KEY_PEM':_0x190915,'PUB_FINGERPRINT':_0x1892ac,'LICENSE_EXPIRED_ACTION':_0x14ff32(0x71e)};return licenseConfig={'_C':_0x286ee0,'PUBLIC_KEY_PEM':_0x190915,'PUB_FINGERPRINT':_0x1892ac},licenseConfig;}var okdbSubscriptionsStore={'exports':{}},okdbQueryFilter,hasRequiredOkdbQueryFilter;function requireOkdbQueryFilter(){const _0x3ab921=_0x2d5353;if(hasRequiredOkdbQueryFilter)return okdbQueryFilter;hasRequiredOkdbQueryFilter=0x1;const _0x4229d6=require$$0$5,{OKDBError:_0x2f3fdd}=requireOkdbError(),_0xe8e305=[_0x3ab921(0x196),_0x3ab921(0x774),_0x3ab921(0x793),_0x3ab921(0x40c),_0x3ab921(0x142),_0x3ab921(0x1f6),_0x3ab921(0x517),'$nin',_0x3ab921(0x300),_0x3ab921(0x801),_0x3ab921(0x7e1),_0x3ab921(0x426),_0x3ab921(0x27d),_0x3ab921(0x746),_0x3ab921(0x340),'$elemMatch',_0x3ab921(0x318),_0x3ab921(0x7cc),_0x3ab921(0x56b),_0x3ab921(0x519)],_0x3ece84=[_0x3ab921(0x47f)];function _0x449286(_0x676d1e){return()=>{const _0x336043=_0x36a2,_0xebf838=new _0x2f3fdd(_0x336043(0x68a)+_0x676d1e+_0x336043(0x55e),'QUERY_OPERATOR_FORBIDDEN',{'operator':_0x676d1e});_0xebf838[_0x336043(0x2e4)]=0x190;throw _0xebf838;};}const _0x2fcce3=Object['freeze']({...Object[_0x3ab921(0x6a5)](_0xe8e305[_0x3ab921(0x4e8)](_0x43f1ea=>[_0x43f1ea,_0x4229d6[_0x43f1ea]])),...Object['fromEntries'](_0x3ece84['map'](_0x1a6c91=>[_0x1a6c91,_0x449286(_0x1a6c91)]))});function _0x2420a2(_0x500eec){return _0x4229d6['createQueryTester'](_0x500eec,{'operations':_0x2fcce3});}function _0x4b4f1f(_0x492374){const _0x1793cb=_0x3ab921;if(_0x492374==null)return;try{_0x2420a2(_0x492374);}catch(_0x409816){if(_0x409816?.[_0x1793cb(0x316)]===_0x1793cb(0x59b))throw _0x409816;}}return okdbQueryFilter={'compileFilter':_0x2420a2,'assertFilterAllowed':_0x4b4f1f,'ALLOWED_OPERATORS':_0xe8e305,'FORBIDDEN_OPERATORS':_0x3ece84},okdbQueryFilter;}var okdbEnvRefs,hasRequiredOkdbEnvRefs;function _0x36a2(_0x1132a7,_0x16066a){_0x1132a7=_0x1132a7-0x11e;const _0x49fde6=_0x49fd();let _0x36a2c4=_0x49fde6[_0x1132a7];return _0x36a2c4;}function requireOkdbEnvRefs(){const _0x40af1c=_0x2d5353;if(hasRequiredOkdbEnvRefs)return okdbEnvRefs;hasRequiredOkdbEnvRefs=0x1;const {CHANGE_ACTIONS:_0x423fa7,EVENTS:_0x434d64}=requireOkdbEnums(),{OKDBError:_0x4c364b,OKDBForeignKeyDeleteError:_0x3b59ed}=requireOkdbError(),_0x205a6b=_0x40af1c(0x155),_0x1ec415=new Set(['no_action',_0x40af1c(0x261),_0x40af1c(0x856),'restrict']);function _0x529aa1(_0x5349e2,_0x5ef7ac){const _0x1d661c=_0x40af1c;if(_0x5349e2==null||!_0x5ef7ac)return undefined;const _0x3b94cd=_0x5ef7ac[_0x1d661c(0x4f0)]('.');let _0x1ca2ad=_0x5349e2;for(const _0x13a264 of _0x3b94cd){if(_0x1ca2ad==null||typeof _0x1ca2ad!==_0x1d661c(0x712)||!(_0x13a264 in _0x1ca2ad))return undefined;_0x1ca2ad=_0x1ca2ad[_0x13a264];}return _0x1ca2ad;}function _0xa0fd40(_0x579550,_0x1d59a6,_0x124781){const _0x29fe1d=_0x40af1c,_0x1942bc=_0x1d59a6[_0x29fe1d(0x4f0)]('.'),_0x25310b={..._0x579550};let _0x4c4057=_0x25310b;for(let _0x73b497=0x0;_0x73b497<_0x1942bc[_0x29fe1d(0x192)]-0x1;_0x73b497++){_0x4c4057[_0x1942bc[_0x73b497]]=_0x4c4057[_0x1942bc[_0x73b497]]!=null?{..._0x4c4057[_0x1942bc[_0x73b497]]}:{},_0x4c4057=_0x4c4057[_0x1942bc[_0x73b497]];}return _0x4c4057[_0x1942bc[_0x1942bc[_0x29fe1d(0x192)]-0x1]]=_0x124781,_0x25310b;}function _0xa91a1c(_0x2fa686,_0x2be9a9,_0x2c8754,_0x5363ef,_0x179f69){return[_0x2fa686,_0x2be9a9,_0x2c8754,_0x5363ef,_0x179f69];}function _0xc8de30(_0x13d065){const _0x298d72=_0x40af1c;return typeof _0x13d065==='string'||typeof _0x13d065===_0x298d72(0x859);}function _0xe242db(_0x5c292c,_0x1d2046){const _0x4e373f=_0x40af1c;return JSON[_0x4e373f(0x84b)]([_0x5c292c,_0x1d2046]);}function*_0x5ee967(_0x2940be,_0x4cecba,_0x381251){const _0x4ec499=_0x40af1c,_0x5d8f2c=_0x381251!==undefined;for(const {key:_0x331925}of _0x2940be[_0x4ec499(0x35a)]({'start':_0x5d8f2c?[_0x4cecba,_0x381251]:[_0x4cecba]})){if(!Array[_0x4ec499(0x7e3)](_0x331925))continue;if(_0x331925[0x0]!==_0x4cecba||_0x5d8f2c&&_0x331925[0x1]!==_0x381251)break;yield _0x331925;}}function _0x5ba584(_0x7c2c2a,_0x33e25b='',_0x5269e4=null){const _0x6c966b=_0x40af1c,_0x49d2eb=[];if(!_0x7c2c2a||typeof _0x7c2c2a!==_0x6c966b(0x712))return _0x49d2eb;if(!_0x5269e4)_0x5269e4=_0x7c2c2a;if(_0x7c2c2a[_0x6c966b(0x460)]){const _0x2560b6=_0x7c2c2a[_0x6c966b(0x460)][_0x6c966b(0x2ec)](/^#\/\$defs\/(.+)$/);if(_0x2560b6&&_0x5269e4?.[_0x6c966b(0x3eb)]?.[_0x2560b6[0x1]])return _0x5ba584(_0x5269e4[_0x6c966b(0x3eb)][_0x2560b6[0x1]],_0x33e25b,_0x5269e4);return _0x49d2eb;}if(_0x7c2c2a['ref']&&typeof _0x7c2c2a[_0x6c966b(0x674)]==='object'&&_0x7c2c2a[_0x6c966b(0x674)]['type']){const _0x1210f7=_0x7c2c2a[_0x6c966b(0x674)][_0x6c966b(0x29f)]||_0x6c966b(0x401);if(!_0x1ec415[_0x6c966b(0x69d)](_0x1210f7))throw new _0x4c364b(_0x6c966b(0x800)+_0x1210f7+_0x6c966b(0x534)+(_0x33e25b||_0x6c966b(0x854))+_0x6c966b(0x642)+[..._0x1ec415][_0x6c966b(0x3ee)](',\x20'),_0x6c966b(0x13c));_0x49d2eb['push']({'fieldPath':_0x33e25b,'targetType':_0x7c2c2a[_0x6c966b(0x674)]['type'],'onDelete':_0x1210f7});}if(_0x7c2c2a[_0x6c966b(0x850)])for(const [_0x25c491,_0xfc4ff8]of Object[_0x6c966b(0x45b)](_0x7c2c2a[_0x6c966b(0x850)])){const _0xaddad9=_0x33e25b?_0x33e25b+'.'+_0x25c491:_0x25c491;_0x49d2eb[_0x6c966b(0x46d)](..._0x5ba584(_0xfc4ff8,_0xaddad9,_0x5269e4));}return _0x49d2eb;}function _0x2bd684(_0x34d9fc){const _0x3b4f67=_0x40af1c,_0x372a2c=new Map(),_0x512f76=new Map();for(const _0x5a5128 of _0x34d9fc['_typeKeys']()){if(_0x5a5128['startsWith']('~'))continue;const _0xc56ce5=_0x34d9fc['typesDb'][_0x3b4f67(0x6ce)](_0x5a5128);if(!_0xc56ce5?.['schema']?.[_0x3b4f67(0x219)])continue;let _0x9aaacc;try{_0x9aaacc=_0x5ba584(_0xc56ce5[_0x3b4f67(0x1ad)]['definition']);}catch{continue;}if(_0x9aaacc[_0x3b4f67(0x192)]>0x0){_0x372a2c['set'](_0x5a5128,_0x9aaacc);for(const _0xcc4231 of _0x9aaacc){if(!_0x512f76[_0x3b4f67(0x69d)](_0xcc4231['targetType']))_0x512f76[_0x3b4f67(0x7a0)](_0xcc4231[_0x3b4f67(0x67f)],[]);_0x512f76[_0x3b4f67(0x6ce)](_0xcc4231[_0x3b4f67(0x67f)])[_0x3b4f67(0x46d)]({'sourceType':_0x5a5128,'fieldPath':_0xcc4231[_0x3b4f67(0x818)],'onDelete':_0xcc4231[_0x3b4f67(0x29f)]});}}}_0x34d9fc['_refCache']={'outgoing':_0x372a2c,'incoming':_0x512f76};if(_0x372a2c[_0x3b4f67(0x4fb)]>0x0)_0x44c9e4(_0x34d9fc);}function _0x3d2afa(_0x3cea00,_0x2c87f6){const _0x3a15f3=_0x40af1c;return _0x3cea00[_0x3a15f3(0x22d)][_0x3a15f3(0x177)][_0x3a15f3(0x6ce)](_0x2c87f6)||[];}function _0x2a8401(_0x42da0a,_0x38f74d){const _0x2c832d=_0x40af1c;return _0x42da0a['_refCache'][_0x2c832d(0x3f0)][_0x2c832d(0x6ce)](_0x38f74d)||[];}function _0x44c9e4(_0x13fba1){const _0x4fc0b9=_0x40af1c;if(_0x13fba1[_0x4fc0b9(0x5c3)])return _0x13fba1['_refIndexDb'];return _0x13fba1[_0x4fc0b9(0x5c3)]=_0x13fba1['db']['openDB'](_0x4fc0b9(0x1c5),{'dupSort':![]}),_0x13fba1['_refIndexDb'];}function _0x11c029(_0x213238,_0x4fafdf,_0x256ded,_0x385279,_0x535fb6){const _0x170b53=_0x40af1c,_0x224f00=_0x3d2afa(_0x213238,_0x4fafdf);if(_0x224f00[_0x170b53(0x192)]===0x0)return;const _0xf972d2=_0x44c9e4(_0x213238);for(const _0x316f7f of _0x224f00){const _0x392145=_0x535fb6!=null?_0x529aa1(_0x535fb6,_0x316f7f[_0x170b53(0x818)]):undefined,_0x4d23f6=_0x385279!=null?_0x529aa1(_0x385279,_0x316f7f['fieldPath']):undefined;if(_0x392145===_0x4d23f6)continue;_0xc8de30(_0x392145)&&_0xf972d2['removeSync'](_0xa91a1c(_0x316f7f[_0x170b53(0x67f)],_0x392145,_0x4fafdf,_0x256ded,_0x316f7f[_0x170b53(0x818)])),_0xc8de30(_0x4d23f6)&&_0xf972d2[_0x170b53(0x759)](_0xa91a1c(_0x316f7f[_0x170b53(0x67f)],_0x4d23f6,_0x4fafdf,_0x256ded,_0x316f7f[_0x170b53(0x818)]),0x1);}}function _0x539932(_0x5a593f,_0x11d59d,_0x2a87a2,_0x146c58){const _0x1ac1ef=_0x40af1c,_0x113f23=_0x3d2afa(_0x5a593f,_0x11d59d);if(_0x113f23[_0x1ac1ef(0x192)]===0x0)return;const _0xfbda2b=_0x44c9e4(_0x5a593f);for(const _0x2f90ed of _0x113f23){const _0x282504=_0x146c58!=null?_0x529aa1(_0x146c58,_0x2f90ed['fieldPath']):undefined;_0xc8de30(_0x282504)&&_0xfbda2b[_0x1ac1ef(0x467)](_0xa91a1c(_0x2f90ed[_0x1ac1ef(0x67f)],_0x282504,_0x11d59d,_0x2a87a2,_0x2f90ed[_0x1ac1ef(0x818)]));}}function _0x300f6b(_0x208d03,_0x5c257a,_0x5e69b5,_0x3a6ba5){const _0x3914b7=_0x40af1c,_0x1ccf6c=_0x3d2afa(_0x208d03,_0x5c257a);if(_0x1ccf6c[_0x3914b7(0x192)]===0x0)return[];const _0x46f427=[];for(const _0x41b28e of _0x1ccf6c){const _0x212e17=_0x529aa1(_0x3a6ba5,_0x41b28e[_0x3914b7(0x818)]);if(_0x212e17==null)continue;if(!_0x208d03['hasType'](_0x41b28e['targetType'])){_0x46f427[_0x3914b7(0x46d)]({'fieldPath':_0x41b28e[_0x3914b7(0x818)],'targetType':_0x41b28e[_0x3914b7(0x67f)],'targetKey':_0x212e17,'message':_0x3914b7(0x7f3)+_0x41b28e[_0x3914b7(0x67f)]+_0x3914b7(0x63f)});continue;}const _0xb9598f=_0x208d03['_getType'](_0x41b28e[_0x3914b7(0x67f)])[_0x3914b7(0x79c)];!_0xb9598f[_0x3914b7(0x16c)](_0x212e17)&&_0x46f427[_0x3914b7(0x46d)]({'fieldPath':_0x41b28e['fieldPath'],'targetType':_0x41b28e[_0x3914b7(0x67f)],'targetKey':_0x212e17,'message':_0x3914b7(0x516)+_0x212e17+'\x27\x20does\x20not\x20exist\x20in\x20type\x20\x27'+_0x41b28e[_0x3914b7(0x67f)]+'\x27'});}return _0x46f427;}function _0x93bbd6(_0x4ba307,_0x35c376,_0x56a853,_0x3a0a21,_0x5e0262,{timestamp:_0x425f4a,origin:_0x3df3f8,_cascadeVisited:_0x3c0795}){const _0x2559d7=_0x40af1c,_0x5405d4=_0x2a8401(_0x4ba307,_0x56a853);if(_0x5405d4[_0x2559d7(0x192)]===0x0)return;const _0x280ccc=_0x44c9e4(_0x4ba307),_0x41eb9c=[];for(const [,,_0x522cba,_0x2842d7,_0x192003]of _0x5ee967(_0x280ccc,_0x56a853,_0x3a0a21)){_0x41eb9c[_0x2559d7(0x46d)]({'sourceType':_0x522cba,'sourceKey':_0x2842d7,'fieldPath':_0x192003});}if(_0x41eb9c['length']===0x0)return;for(const _0x5025e8 of _0x41eb9c){const _0x5a8cdd=_0x5405d4[_0x2559d7(0x472)](_0x2ac734=>_0x2ac734[_0x2559d7(0x615)]===_0x5025e8[_0x2559d7(0x615)]&&_0x2ac734[_0x2559d7(0x818)]===_0x5025e8[_0x2559d7(0x818)]),_0x19af6d=_0x5a8cdd?.[_0x2559d7(0x29f)]||'no_action';switch(_0x19af6d){case _0x2559d7(0x35d):{if(_0x3df3f8===null)throw new _0x3b59ed(_0x56a853,_0x3a0a21,_0x41eb9c['filter'](_0x35dd73=>{const _0x2f8206=_0x2559d7,_0x221da9=_0x5405d4[_0x2f8206(0x472)](_0x305eba=>_0x305eba[_0x2f8206(0x615)]===_0x35dd73[_0x2f8206(0x615)]&&_0x305eba[_0x2f8206(0x818)]===_0x35dd73['fieldPath']);return(_0x221da9?.['onDelete']||_0x2f8206(0x401))===_0x2f8206(0x35d);}));break;}case _0x2559d7(0x261):{const _0x13490d=_0xe242db(_0x5025e8['sourceType'],_0x5025e8[_0x2559d7(0x806)]);if(_0x3c0795['has'](_0x13490d))continue;_0x4ba307[_0x2559d7(0x726)](_0x5025e8['sourceType'])[_0x2559d7(0x79c)]['doesExist'](_0x5025e8[_0x2559d7(0x806)])&&_0x4ba307[_0x2559d7(0x697)](_0x35c376,_0x5025e8[_0x2559d7(0x615)],_0x5025e8[_0x2559d7(0x806)],{'timestamp':_0x425f4a,'origin':_0x3df3f8,'_cascadeVisited':_0x3c0795});break;}case'set_null':{const _0x1e7e52=_0x4ba307[_0x2559d7(0x726)](_0x5025e8[_0x2559d7(0x615)])['data'],_0x268fbf=_0x1e7e52[_0x2559d7(0x638)](_0x5025e8[_0x2559d7(0x806)]);if(_0x268fbf){const _0x3e5dec=_0xa0fd40(_0x268fbf['value'],_0x5025e8[_0x2559d7(0x818)],null);_0x4ba307[_0x2559d7(0x3a8)](_0x35c376,_0x2559d7(0x14f),_0x5025e8[_0x2559d7(0x615)],_0x5025e8[_0x2559d7(0x806)],_0x3e5dec,{'timestamp':_0x425f4a,'origin':_0x3df3f8,'_cascading':!![]});}break;}}}}function _0x24ddb8(_0x450b6d){const _0x2fe2d8=_0x40af1c;!_0x450b6d[_0x2fe2d8(0x6e2)](_0x205a6b)&&_0x450b6d[_0x2fe2d8(0x57d)](_0x205a6b);}function _0x508910(_0x1b5c7a,_0x3a1cb5,_0x2f1499,_0x58600e,_0x44ed6d,_0x3714bf,_0x11cfce,{timestamp:timestamp=Date[_0x40af1c(0x76a)](),origin:origin=null}={}){const _0x1d12f9=_0x40af1c;_0x24ddb8(_0x1b5c7a);const _0x1d62fe=_0x2f1499+'@'+_0x58600e+'@'+_0x44ed6d,_0x5b1ee4={'sourceType':_0x2f1499,'sourceKey':_0x58600e,'fieldPath':_0x44ed6d,'targetType':_0x3714bf,'targetKey':_0x11cfce,'timestamp':timestamp,'origin':origin},_0x5e960f=_0x1b5c7a[_0x1d12f9(0x726)](_0x205a6b)['data'],_0x249277=_0x5e960f[_0x1d12f9(0x638)](_0x1d62fe),_0x383cdf=_0x249277?_0x249277[_0x1d12f9(0x779)]+0x1:0x1;_0x5e960f[_0x1d12f9(0x759)](_0x1d62fe,_0x5b1ee4,_0x383cdf),_0x1b5c7a['_logChange']({'id':_0x1d12f9(0x651)+_0x205a6b+'@'+_0x1d62fe,'type':_0x205a6b,'key':_0x1d62fe,'action':_0x423fa7[_0x1d12f9(0x3c7)],'timestamp':timestamp,'txnId':_0x3a1cb5?.['id'],'origin':origin},_0x249277?.[_0x1d12f9(0x821)],_0x5b1ee4),_0x1b5c7a[_0x1d12f9(0x5d6)][_0x1d12f9(0x839)](_0x434d64['REF_VIOLATION'],{'sourceType':_0x2f1499,'sourceKey':_0x58600e,'fieldPath':_0x44ed6d,'targetType':_0x3714bf,'targetKey':_0x11cfce,'env':_0x1b5c7a[_0x1d12f9(0x425)]});}function _0x3f56dd(_0x1c46aa,_0x5503dc,_0xdec749,_0x59dfc0,_0x203cc9,{timestamp:timestamp=Date[_0x40af1c(0x76a)](),origin:origin=null}={}){const _0x317b4e=_0x40af1c;if(!_0x1c46aa[_0x317b4e(0x6e2)](_0x205a6b))return;const _0x4ab494=_0xdec749+'@'+_0x59dfc0+'@'+_0x203cc9,_0x997a84=_0x1c46aa[_0x317b4e(0x726)](_0x205a6b)[_0x317b4e(0x79c)],_0x1f0673=_0x997a84[_0x317b4e(0x638)](_0x4ab494);if(!_0x1f0673)return;_0x997a84['removeSync'](_0x4ab494),_0x1c46aa[_0x317b4e(0x6a3)]({'id':_0x317b4e(0x651)+_0x205a6b+'@'+_0x4ab494,'type':_0x205a6b,'key':_0x4ab494,'action':_0x423fa7[_0x317b4e(0x5a7)],'timestamp':timestamp,'txnId':_0x5503dc?.['id'],'origin':origin},_0x1f0673[_0x317b4e(0x821)],undefined),_0x1c46aa[_0x317b4e(0x5d6)][_0x317b4e(0x839)](_0x434d64[_0x317b4e(0x781)],{'sourceType':_0xdec749,'sourceKey':_0x59dfc0,'fieldPath':_0x203cc9,'env':_0x1c46aa[_0x317b4e(0x425)]});}function _0x4b8fcb(_0x5c45e1,_0x542ada,_0x3d0071,_0x229173,_0x30dea9={}){const _0x5c6ec1=_0x40af1c;if(!_0x5c45e1[_0x5c6ec1(0x6e2)](_0x205a6b))return;const _0x259b84=_0x5c45e1[_0x5c6ec1(0x726)](_0x205a6b)[_0x5c6ec1(0x79c)],_0x14d0d0=_0x3d0071+'@'+_0x229173+'@',_0x2a593d=[];for(const {key:_0x59862c,value:_0x47223a}of _0x259b84[_0x5c6ec1(0x35a)]({'start':_0x14d0d0,'end':_0x14d0d0+'\uffff'})){if(_0x47223a?.[_0x5c6ec1(0x615)]===_0x3d0071&&_0x47223a?.['sourceKey']===_0x229173)_0x2a593d[_0x5c6ec1(0x46d)](_0x59862c);}for(const _0x46e0e0 of _0x2a593d){const _0x47e05b=_0x259b84[_0x5c6ec1(0x638)](_0x46e0e0);if(!_0x47e05b)continue;_0x259b84[_0x5c6ec1(0x467)](_0x46e0e0),_0x5c45e1[_0x5c6ec1(0x6a3)]({'id':_0x5c6ec1(0x651)+_0x205a6b+'@'+_0x46e0e0,'type':_0x205a6b,'key':_0x46e0e0,'action':_0x423fa7[_0x5c6ec1(0x5a7)],'timestamp':_0x30dea9[_0x5c6ec1(0x3f1)]||Date['now'](),'txnId':_0x542ada?.['id'],'origin':_0x30dea9[_0x5c6ec1(0x7b3)]},_0x47e05b['value'],undefined);}}function _0x5dc7dd(_0x90f386,_0x4a829a){const _0x360c28=_0x40af1c;if(!_0x90f386[_0x360c28(0x6e2)](_0x205a6b))return;const _0x10f24c=_0x90f386['_getType'](_0x205a6b)[_0x360c28(0x79c)],_0x4147e5=_0x4a829a+'@',_0x2af448=[];for(const {key:_0x3e3178,value:_0x48cb6b}of _0x10f24c[_0x360c28(0x35a)]({'start':_0x4147e5,'end':_0x4147e5+'\uffff'})){if(_0x48cb6b?.[_0x360c28(0x615)]===_0x4a829a)_0x2af448[_0x360c28(0x46d)](_0x3e3178);}for(const _0x2e93b9 of _0x2af448)_0x10f24c[_0x360c28(0x467)](_0x2e93b9);}async function _0xbd73f4(_0x4c983b,_0x3a6873){const _0x5748d6=_0x40af1c,_0x3485a8=_0x3d2afa(_0x4c983b,_0x3a6873);if(_0x3485a8['length']===0x0)return;await _0x4c983b[_0x5748d6(0x208)][_0x5748d6(0x5d5)](()=>{const _0x497979=_0x5748d6;for(const {key:_0x1be8c1,value:_0x1083c1}of _0x4c983b[_0x497979(0x35a)](_0x3a6873)){_0x11c029(_0x4c983b,_0x3a6873,_0x1be8c1,_0x1083c1,null);const _0x365663=_0x300f6b(_0x4c983b,_0x3a6873,_0x1be8c1,_0x1083c1);for(const _0xfe0f09 of _0x365663){_0x508910(_0x4c983b,null,_0x3a6873,_0x1be8c1,_0xfe0f09['fieldPath'],_0xfe0f09[_0x497979(0x67f)],_0xfe0f09[_0x497979(0x1aa)]);}}});}const _0x2c7514=0x1388;async function _0x1405e3(_0x52c63e){const _0x1ad138=_0x40af1c,_0x12dd24=_0x52c63e[_0x1ad138(0x22d)]?.['outgoing']?.[_0x1ad138(0x4fb)]>0x0;if(!_0x12dd24&&!_0x52c63e['_refIndexDb'])return{'dropped':0x0,'written':0x0};const _0x3a695a=_0x44c9e4(_0x52c63e);let _0x229ab6=0x0;for(;;){const _0x3a5c2f=Array['from'](_0x3a695a[_0x1ad138(0x462)]({'limit':_0x2c7514}));if(_0x3a5c2f[_0x1ad138(0x192)]===0x0)break;let _0x4cfb3d=0x0;await _0x52c63e[_0x1ad138(0x208)]['transaction'](()=>{for(const _0x3e6e12 of _0x3a5c2f)if(_0x3a695a['removeSync'](_0x3e6e12))_0x4cfb3d++;});if(_0x4cfb3d===0x0)break;_0x229ab6+=_0x4cfb3d;}let _0x4b46d6=0x0;for(const _0x4c9687 of _0x52c63e['_refCache'][_0x1ad138(0x177)][_0x1ad138(0x50d)]()){if(_0x4c9687[_0x1ad138(0x48b)]('~')||!_0x52c63e['hasType'](_0x4c9687))continue;const _0x5f0779=_0x3d2afa(_0x52c63e,_0x4c9687);await _0x52c63e[_0x1ad138(0x208)]['transaction'](()=>{const _0x59bd3f=_0x1ad138;for(const {key:_0xa8416d,value:_0x3fa824}of _0x52c63e[_0x59bd3f(0x35a)](_0x4c9687)){for(const _0x2af9f0 of _0x5f0779){const _0x234663=_0x529aa1(_0x3fa824,_0x2af9f0[_0x59bd3f(0x818)]);if(!_0xc8de30(_0x234663))continue;_0x3a695a['putSync'](_0xa91a1c(_0x2af9f0[_0x59bd3f(0x67f)],_0x234663,_0x4c9687,_0xa8416d,_0x2af9f0[_0x59bd3f(0x818)]),0x1),_0x4b46d6++;}}});}return{'dropped':_0x229ab6,'written':_0x4b46d6};}return okdbEnvRefs={'getFieldValue':_0x529aa1,'setFieldValue':_0xa0fd40,'refIndexKey':_0xa91a1c,'isRefTarget':_0xc8de30,'cascadeVisitKey':_0xe242db,'extractRefs':_0x5ba584,'rebuildRefCache':_0x2bd684,'getTypeRefs':_0x3d2afa,'getIncomingRefs':_0x2a8401,'getRefIndexDb':_0x44c9e4,'updateRefIndex':_0x11c029,'removeRefIndexEntries':_0x539932,'refIndexRowsFor':_0x5ee967,'rebuildRefIndex':_0x1405e3,'checkForeignKeys':_0x300f6b,'processDeleteCascade':_0x93bbd6,'setRefViolation':_0x508910,'clearRefViolation':_0x3f56dd,'clearRefViolationsForKey':_0x4b8fcb,'clearRefViolationsForType':_0x5dc7dd,'syncRefIndex':_0xbd73f4},okdbEnvRefs;}var hasRequiredOkdbSubscriptionsStore;function requireOkdbSubscriptionsStore(){const _0x5a3d70=_0x2d5353;if(hasRequiredOkdbSubscriptionsStore)return okdbSubscriptionsStore['exports'];hasRequiredOkdbSubscriptionsStore=0x1;const _0x351418=require$$0$4,{assertFilterAllowed:_0xc89baa}=requireOkdbQueryFilter(),{rebuildRefCache:_0x1f324e}=requireOkdbEnvRefs(),_0x51932f=_0x5a3d70(0x2d6),_0x471413='session',_0xcd42e8=_0x5a3d70(0x71a),_0x42333b=[_0x5a3d70(0x5e4),_0x5a3d70(0x2d0),_0x5a3d70(0x5c0)],_0x5c8423=[_0x5a3d70(0x5e4),_0x5a3d70(0x2d0)],_0x4903e5=0x5a*0x3e8,_0x3491db=Math[_0x5a3d70(0x7f6)](_0x4903e5/0x2);class _0x5130af{constructor(_0xc26376,_0xbd0bc3={}){const _0x25fe9e=_0x5a3d70;this['okdb']=_0xc26376,this[_0x25fe9e(0x7e4)]=Number['isFinite'](_0xbd0bc3[_0x25fe9e(0x7e4)])&&_0xbd0bc3[_0x25fe9e(0x7e4)]>0x0?_0xbd0bc3[_0x25fe9e(0x7e4)]:_0x4903e5,this['refreshThresholdMs']=Number['isFinite'](_0xbd0bc3[_0x25fe9e(0x6dc)])?_0xbd0bc3['refreshThresholdMs']:_0x3491db,this['_sub']=null;}async['open'](){const _0x3c0e46=_0x5a3d70;if(this[_0x3c0e46(0x1b4)])return this[_0x3c0e46(0x1b4)];const _0x39a9f5=await this[_0x3c0e46(0x4f7)][_0x3c0e46(0x869)](_0x51932f,{'sync':![]});return await _0x39a9f5['ensureType'](_0x471413,{'indexes':[_0x5c8423]}),await _0x39a9f5[_0x3c0e46(0x4e9)](_0xcd42e8),_0x39a9f5[_0x3c0e46(0x7a3)](_0xcd42e8)?_0x1f324e(_0x39a9f5):await _0x39a9f5[_0x3c0e46(0x598)](_0xcd42e8,{'definition':{'type':_0x3c0e46(0x712),'properties':{'sessionId':{'type':_0x3c0e46(0x84a),'ref':{'type':_0x471413,'onDelete':_0x3c0e46(0x261)}},'dataEnv':{'type':'string'},'type':{'type':_0x3c0e46(0x84a)},'key':{'type':'string'}},'required':[_0x3c0e46(0x59a),'dataEnv',_0x3c0e46(0x2d0),_0x3c0e46(0x5c0)]},'enforce':!![]}),await _0x39a9f5['ensureType'](_0xcd42e8,{'indexes':[_0x42333b]}),await _0x39a9f5['indexReady'](_0xcd42e8,_0x42333b),await _0x39a9f5[_0x3c0e46(0x6b4)](_0x471413,_0x5c8423),this['_sub']=_0x39a9f5,_0x39a9f5;}['_env'](){const _0x5c02e9=_0x5a3d70;if(!this[_0x5c02e9(0x1b4)])throw new Error(_0x5c02e9(0x191));return this[_0x5c02e9(0x1b4)];}async[_0x5a3d70(0x397)]({sessionId:_0x4b46cf,dataEnv:_0x138240,type:_0x4e7d3f,filter:filter=null,ttlMs:_0x1af5ec}={}){const _0x56acfe=_0x5a3d70,_0xe2632f=this[_0x56acfe(0x76b)]();_0xc89baa(filter);const _0x231f3a=_0x4b46cf!=null&&String(_0x4b46cf)[_0x56acfe(0x192)]>0x0?String(_0x4b46cf):_0x351418[_0x56acfe(0x846)](),_0x12f25f=Number[_0x56acfe(0x496)](_0x1af5ec)&&_0x1af5ec>0x0?_0x1af5ec:this[_0x56acfe(0x7e4)],_0x4cdd02=Date[_0x56acfe(0x76a)](),_0x158755={'sessionId':_0x231f3a,'dataEnv':_0x138240,'type':_0x4e7d3f,'filter':filter??null,'version':0x0,'createdAt':_0x4cdd02,'expiresAt':_0x4cdd02+_0x12f25f};return await _0xe2632f['put'](_0x471413,_0x231f3a,_0x158755,{'ttl':_0x12f25f}),{'sessionId':_0x231f3a,'version':0x0};}[_0x5a3d70(0x492)](_0x106d4b){const _0x50213f=_0x5a3d70;if(!_0x106d4b)return null;return this[_0x50213f(0x76b)]()[_0x50213f(0x6ce)](_0x471413,String(_0x106d4b))??null;}async[_0x5a3d70(0x6ab)](_0x10145b){const _0x5a64b7=_0x5a3d70,_0x230620=this[_0x5a64b7(0x76b)](),_0x749673=String(_0x10145b);if(!_0x230620[_0x5a64b7(0x6ce)](_0x471413,_0x749673))return![];return await _0x230620[_0x5a64b7(0x78e)](_0x471413,_0x749673),!![];}async[_0x5a3d70(0x1b8)](_0x242c7a){const _0x4b6bce=_0x5a3d70,_0x21b523=this[_0x4b6bce(0x76b)](),_0x384445=String(_0x242c7a),_0x2b8ce8=_0x21b523['get'](_0x471413,_0x384445);if(!_0x2b8ce8)return null;const _0x2fe438=(Number[_0x4b6bce(0x496)](_0x2b8ce8['version'])?_0x2b8ce8['version']:0x0)+0x1;return await _0x21b523[_0x4b6bce(0x14f)](_0x471413,_0x384445,{..._0x2b8ce8,'version':_0x2fe438}),_0x2fe438;}async[_0x5a3d70(0x3ae)](_0x3b84d4,_0x216a44){const _0x1fdb0b=_0x5a3d70,_0x3af704=this[_0x1fdb0b(0x76b)](),_0xe4803a=String(_0x3b84d4);if(!_0x3af704[_0x1fdb0b(0x6ce)](_0x471413,_0xe4803a))return![];const _0x583f8c=Number[_0x1fdb0b(0x496)](_0x216a44)&&_0x216a44>0x0?_0x216a44:this[_0x1fdb0b(0x7e4)];if(this[_0x1fdb0b(0x675)](_0xe4803a))return![];return await _0x3af704[_0x1fdb0b(0x235)](_0x471413,_0xe4803a,_0x583f8c),await this[_0x1fdb0b(0x417)](_0xe4803a,_0x583f8c),!![];}async[_0x5a3d70(0x81e)](_0x4248df,_0x4335e0){const _0x50c846=_0x5a3d70,_0x28cd63=this[_0x50c846(0x76b)](),_0x47a0c1=Number[_0x50c846(0x496)](_0x4335e0)&&_0x4335e0>0x0?_0x4335e0:this['ttlMs'],_0x325a25=Date[_0x50c846(0x76a)](),_0x2abbd8=[];for(const _0x2c8c95 of _0x4248df||[]){const _0x99fef3=String(_0x2c8c95),_0x37a275=_0x28cd63[_0x50c846(0x6ce)](_0x471413,_0x99fef3);if(!_0x37a275)continue;if(this[_0x50c846(0x675)](_0x99fef3,_0x325a25))continue;_0x2abbd8[_0x50c846(0x46d)]({'id':_0x99fef3,'cur':_0x37a275});}if(_0x2abbd8[_0x50c846(0x192)]===0x0)return[];return await _0x28cd63[_0x50c846(0x346)](async _0x434a36=>{const _0xc508c3=_0x50c846;for(const {id:_0x20795c,cur:_0x4f842c}of _0x2abbd8){_0x434a36['put'](_0x471413,_0x20795c,{..._0x4f842c,'expiresAt':_0x325a25+_0x47a0c1}),_0x434a36[_0xc508c3(0x235)](_0x471413,_0x20795c,_0x47a0c1);}}),_0x2abbd8[_0x50c846(0x4e8)](_0x3b7ce5=>_0x3b7ce5['id']);}[_0x5a3d70(0x675)](_0x2c14c4,_0x28cfd3=Date['now']()){const _0x2e6824=_0x5a3d70,_0x5bfc0e=this[_0x2e6824(0x76b)]()[_0x2e6824(0x4a1)](_0x471413,String(_0x2c14c4));if(!_0x5bfc0e)return![];return _0x5bfc0e[_0x2e6824(0x2c1)]-_0x28cfd3>this['refreshThresholdMs'];}async['_syncExpiresAtField'](_0xc7d3c1,_0x1603e1){const _0x1f8f4f=_0x5a3d70,_0x50a2e8=this[_0x1f8f4f(0x76b)](),_0x40d40e=_0x50a2e8['get'](_0x471413,_0xc7d3c1);if(!_0x40d40e)return;await _0x50a2e8['put'](_0x471413,_0xc7d3c1,{..._0x40d40e,'expiresAt':Date['now']()+_0x1603e1});}async[_0x5a3d70(0x7a8)](_0x481ee7,_0x4129e8,_0x2cabca){const _0x53332a=_0x5a3d70,_0x51440e=this['_env'](),_0x459289=String(_0x481ee7),_0x554182=_0x51440e[_0x53332a(0x6ce)](_0x471413,_0x459289);if(!_0x554182)throw new Error(_0x53332a(0x203)+_0x459289);const _0x5bed5a=_0x351418[_0x53332a(0x846)]();return await _0x51440e['put'](_0xcd42e8,_0x5bed5a,{'sessionId':_0x459289,'dataEnv':String(_0x554182[_0x53332a(0x5e4)]),'type':String(_0x4129e8),'key':String(_0x2cabca)}),_0x5bed5a;}async['_commitSessionMutation'](_0x511195,_0x326b7b,{retries:retries=0x8}={}){const _0x4725d1=_0x5a3d70,_0x3c4549=this[_0x4725d1(0x76b)]();for(let _0x1aa836=0x0;;_0x1aa836++){const _0x34952a=_0x3c4549[_0x4725d1(0x638)](_0x471413,_0x511195);if(!_0x34952a)return null;const _0x36ddb5=_0x34952a[_0x4725d1(0x821)],_0x16cefb=(Number[_0x4725d1(0x496)](_0x36ddb5[_0x4725d1(0x779)])?_0x36ddb5[_0x4725d1(0x779)]:0x0)+0x1,{sessionPatch:sessionPatch={},applyInterests:applyInterests=null}=_0x326b7b(_0x36ddb5,_0x3c4549)||{};try{return await _0x3c4549[_0x4725d1(0x346)](async _0xd6f064=>{const _0xf8976d=_0x4725d1;applyInterests?.(_0xd6f064),_0xd6f064[_0xf8976d(0x14f)](_0x471413,_0x511195,{..._0x36ddb5,...sessionPatch,'version':_0x16cefb},{'ifVersion':_0x34952a[_0xf8976d(0x779)]});}),_0x16cefb;}catch(_0x3c3565){if(_0x3c3565?.['code']==='VERSION_MISMATCH'&&_0x1aa836<retries)continue;throw _0x3c3565;}}}async[_0x5a3d70(0x87d)](_0x4212a3,{add:add=[],remove:remove=[]}={}){const _0x1dc972=_0x5a3d70,_0x7b2679=String(_0x4212a3);return this[_0x1dc972(0x18a)](_0x7b2679,(_0x16d82a,_0x4f0c39)=>{const _0x45af71=_0x1dc972,_0x527c85=String(_0x16d82a[_0x45af71(0x5e4)]),_0x5bdafa=new Set((remove||[])[_0x45af71(0x4e8)](_0x5e04a2=>String(_0x5e04a2[_0x45af71(0x2d0)])+'\x00'+String(_0x5e04a2[_0x45af71(0x5c0)]))),_0x4842c1=[];if(_0x5bdafa[_0x45af71(0x4fb)]>0x0)for(const {key:_0x33a4a1,value:_0x23f2be}of _0x4f0c39[_0x45af71(0x35a)](_0xcd42e8,{})){if(!_0x23f2be||_0x23f2be[_0x45af71(0x59a)]!==_0x7b2679)continue;if(_0x5bdafa[_0x45af71(0x69d)](_0x23f2be['type']+'\x00'+_0x23f2be[_0x45af71(0x5c0)]))_0x4842c1[_0x45af71(0x46d)](_0x33a4a1);}const _0x11003f=(add||[])[_0x45af71(0x4e8)](_0x535de9=>({'id':_0x351418[_0x45af71(0x846)](),'type':String(_0x535de9[_0x45af71(0x2d0)]),'key':String(_0x535de9[_0x45af71(0x5c0)])}));return{'applyInterests':_0x44312e=>{const _0x37419e=_0x45af71;for(const _0x2a3db6 of _0x4842c1)_0x44312e[_0x37419e(0x78e)](_0xcd42e8,_0x2a3db6);for(const _0x2b4166 of _0x11003f)_0x44312e[_0x37419e(0x14f)](_0xcd42e8,_0x2b4166['id'],{'sessionId':_0x7b2679,'dataEnv':_0x527c85,'type':_0x2b4166[_0x37419e(0x2d0)],'key':_0x2b4166[_0x37419e(0x5c0)]});}};});}async[_0x5a3d70(0x2ab)](_0x3254e1,_0x30277e){const _0x5e477c=_0x5a3d70;_0xc89baa(_0x30277e);const _0x590f35=String(_0x3254e1);return this[_0x5e477c(0x18a)](_0x590f35,()=>({'sessionPatch':{'filter':_0x30277e??null}}));}async[_0x5a3d70(0x520)](_0x5c3d72,_0x2abcd1,_0x177c6f){const _0x30804b=_0x5a3d70,_0x279c7c=this['_env'](),_0x67b313=String(_0x5c3d72),_0x386dd0=String(_0x2abcd1),_0x166d8e=String(_0x177c6f),_0x5b52c3=[];for(const {key:_0x3ba6da,value:_0x95033}of _0x279c7c[_0x30804b(0x35a)](_0xcd42e8,{})){if(_0x95033&&_0x95033['sessionId']===_0x67b313&&_0x95033[_0x30804b(0x2d0)]===_0x386dd0&&_0x95033[_0x30804b(0x5c0)]===_0x166d8e)_0x5b52c3[_0x30804b(0x46d)](_0x3ba6da);}for(const _0xefbd3c of _0x5b52c3)await _0x279c7c['remove'](_0xcd42e8,_0xefbd3c);return _0x5b52c3['length'];}async[_0x5a3d70(0x2b9)](_0x16b149,_0x36b41a){const _0x493632=_0x5a3d70,_0x3c89cb=String(_0x16b149);return this[_0x493632(0x18a)](_0x3c89cb,(_0x89a268,_0x4b467c)=>{const _0x29673d=_0x493632,_0x3696b3=String(_0x89a268[_0x29673d(0x5e4)]),_0x41317b=[];for(const {key:_0x592538,value:_0x398c02}of _0x4b467c['getRange'](_0xcd42e8,{})){if(_0x398c02&&_0x398c02[_0x29673d(0x59a)]===_0x3c89cb)_0x41317b[_0x29673d(0x46d)](_0x592538);}const _0x28b301=(_0x36b41a||[])['map'](_0x378924=>({'id':_0x351418[_0x29673d(0x846)](),'type':String(_0x378924[_0x29673d(0x2d0)]),'key':String(_0x378924[_0x29673d(0x5c0)])}));return{'applyInterests':_0x4ac56c=>{const _0x41fb5c=_0x29673d;for(const _0x2107cb of _0x41317b)_0x4ac56c[_0x41fb5c(0x78e)](_0xcd42e8,_0x2107cb);for(const _0x2ebc60 of _0x28b301)_0x4ac56c['put'](_0xcd42e8,_0x2ebc60['id'],{'sessionId':_0x3c89cb,'dataEnv':_0x3696b3,'type':_0x2ebc60[_0x41fb5c(0x2d0)],'key':_0x2ebc60['key']});}};});}[_0x5a3d70(0x751)](_0x2d6f2d,_0x53ca0e,_0x160ce7){const _0xca3cf5=_0x5a3d70,_0x25f85c=this['_env'](),_0x55279a=String(_0x2d6f2d),_0x39434e=String(_0x53ca0e),_0x16d89c=String(_0x160ce7),_0x4609b5=new Set();for(const {value:_0x252932}of _0x25f85c['byIndex'](_0xcd42e8,_0x42333b,{'start':[_0x55279a,_0x39434e,_0x16d89c],'end':[_0x55279a,_0x39434e,_0x16d89c,'￿']})){if(_0x252932&&_0x252932[_0xca3cf5(0x59a)])_0x4609b5[_0xca3cf5(0x725)](_0x252932[_0xca3cf5(0x59a)]);}return[..._0x4609b5];}[_0x5a3d70(0x535)](_0x318b23,_0x325422){const _0x87356e=_0x5a3d70,_0x43ebe3=this[_0x87356e(0x76b)](),_0xda9c9e=String(_0x318b23),_0x490e6b=String(_0x325422),_0x5b2026=[];for(const {value:_0x448cd7}of _0x43ebe3[_0x87356e(0x120)](_0x471413,_0x5c8423,{'start':[_0xda9c9e,_0x490e6b],'end':[_0xda9c9e,_0x490e6b,'\uffff']})){if(!_0x448cd7||_0x448cd7[_0x87356e(0x5e4)]!==_0xda9c9e||_0x448cd7[_0x87356e(0x2d0)]!==_0x490e6b)continue;if(_0x448cd7[_0x87356e(0x440)]==null)continue;_0x5b2026['push']({'sessionId':_0x448cd7['sessionId'],'filter':_0x448cd7['filter'],'version':Number['isFinite'](_0x448cd7[_0x87356e(0x779)])?_0x448cd7[_0x87356e(0x779)]:0x0});}return _0x5b2026;}async['sweepExpired'](){const _0x3ab395=_0x5a3d70;return this['_env']()[_0x3ab395(0x852)]();}}return okdbSubscriptionsStore['exports']=_0x5130af,okdbSubscriptionsStore[_0x5a3d70(0x613)][_0x5a3d70(0x57c)]=_0x51932f,okdbSubscriptionsStore[_0x5a3d70(0x613)][_0x5a3d70(0x7f4)]=_0x471413,okdbSubscriptionsStore[_0x5a3d70(0x613)][_0x5a3d70(0x126)]=_0xcd42e8,okdbSubscriptionsStore[_0x5a3d70(0x613)][_0x5a3d70(0x25c)]=_0x42333b,okdbSubscriptionsStore[_0x5a3d70(0x613)][_0x5a3d70(0x18e)]=_0x5c8423,okdbSubscriptionsStore[_0x5a3d70(0x613)]['DEFAULT_TTL_MS']=_0x4903e5,okdbSubscriptionsStore[_0x5a3d70(0x613)];}var version=_0x2d5353(0x41d),require$$29={'version':version},okdbEnginesEnums,hasRequiredOkdbEnginesEnums;function requireOkdbEnginesEnums(){const _0x41abc7=_0x2d5353;if(hasRequiredOkdbEnginesEnums)return okdbEnginesEnums;hasRequiredOkdbEnginesEnums=0x1;const _0x40f140=_0x41abc7(0x352),_0x5b809e=0xa,_0x52d6a4=Object[_0x41abc7(0x1c4)]({'CREATED':_0x41abc7(0x236),'ONLINE':'online','STOPPED':_0x41abc7(0x6da),'INACTIVE':_0x41abc7(0x2b7),'ERROR':_0x41abc7(0x5b4),'REMOVED':_0x41abc7(0x5a1)}),_0xfc87b6=Object['freeze']({'STARTED':'started','STOPPED':_0x41abc7(0x6da),'ERROR':'error','INSTALLED':_0x41abc7(0x808),'UNINSTALLED':_0x41abc7(0x138)}),_0x526fbe=Object['freeze'](new Set([_0x52d6a4[_0x41abc7(0x714)],_0x52d6a4['STOPPED'],_0x52d6a4['INACTIVE'],_0x52d6a4[_0x41abc7(0x372)]]));function _0x34f6d3(_0x151377){const _0x5fc60a=_0x41abc7;return _0x151377?.['enabled']===![]?_0x52d6a4[_0x5fc60a(0x7b6)]:_0x5fc60a(0x4e0);}return okdbEnginesEnums={'TYPE_ENGINES':_0x40f140,'MAX_UPDATE_RETRIES':_0x5b809e,'ENGINE_STATUS':_0x52d6a4,'ENGINE_EVENTS':_0xfc87b6,'UPDATABLE_STATUSES':_0x526fbe,'durableOnlyEngineState':_0x34f6d3},okdbEnginesEnums;}var enums,hasRequiredEnums;function requireEnums(){const _0x5e78b0=_0x2d5353;if(hasRequiredEnums)return enums;hasRequiredEnums=0x1;const _0xe5a739=Object[_0x5e78b0(0x1c4)]({'EMBEDDER':_0x5e78b0(0x122),'INDEXER':_0x5e78b0(0x706),'SEARCH':_0x5e78b0(0x84c),'WORKER':_0x5e78b0(0x31b)}),_0xdb19fd=Object[_0x5e78b0(0x1c4)]({'PENDING':_0x5e78b0(0x641),'DONE':_0x5e78b0(0x5f1),'FAILED':_0x5e78b0(0x823),'DELETED':_0x5e78b0(0x244)}),_0x583c61=Object[_0x5e78b0(0x1c4)]({'INDEXER_READY':_0x5e78b0(0x5a5),'INDEXER_FLUSHED':_0x5e78b0(0x75e),'INDEXER_DOC_DONE':_0x5e78b0(0x2de),'INDEXER_DOC_FAILED':_0x5e78b0(0x744),'INDEXER_DOC_QUEUED':'embeddings:indexer:doc:queued','STRATEGY_REGISTERED':_0x5e78b0(0x3c4),'DOC_STATUS_CHANGE':_0x5e78b0(0x857),'PIPELINE_READY':'embeddings:pipeline:ready'}),_0x535d24=Object[_0x5e78b0(0x1c4)]({'MODELS':_0x5e78b0(0x2b0),'DOC_STATUS_PREFIX':_0x5e78b0(0x605),'VEC_PREFIX':_0x5e78b0(0x394)});return enums={'ENGINE_TYPES':_0xe5a739,'INDEXER_DOC_STATUS':_0xdb19fd,'EMBEDDINGS_EVENTS':_0x583c61,'INTERNAL_TYPES':_0x535d24},enums;}var okdbQueueValidate,hasRequiredOkdbQueueValidate;function requireOkdbQueueValidate(){const _0x3a99e4=_0x2d5353;if(hasRequiredOkdbQueueValidate)return okdbQueueValidate;hasRequiredOkdbQueueValidate=0x1;const _0x137719=Object['freeze']({'PENDING':_0x3a99e4(0x641),'RUNNING':_0x3a99e4(0x12a),'DONE':_0x3a99e4(0x5f1),'FAILED':'failed'}),_0x513883=Object[_0x3a99e4(0x1c4)]({'ACTIVE':_0x3a99e4(0x1c1),'PAUSED':_0x3a99e4(0x1ae),'DRAINING':_0x3a99e4(0x3a2)}),_0x448778=Object[_0x3a99e4(0x1c4)]({'ENQUEUED':_0x3a99e4(0x7db),'DONE':_0x3a99e4(0x295),'FAILED':'queue:failed','RETRY':_0x3a99e4(0x7f2),'RESCHEDULED':'queue:rescheduled','REMOVED':'queue:removed','RECONCILED':_0x3a99e4(0x4da),'CLEAR_PROGRESS':_0x3a99e4(0x1d1),'CLEAR_DONE':_0x3a99e4(0x40d),'LOG':'queue:log'}),_0x4ae576=Object[_0x3a99e4(0x1c4)]([_0x3a99e4(0x13f),_0x3a99e4(0x758),_0x3a99e4(0x1fc),_0x3a99e4(0x5b4)]),_0x8c01d3=0x1,_0x15210e=0xc350,_0x5c2379=0x400,_0x8c10b6=0x800;function _0x4d41d1(_0x5b70c9){const _0xa8482e=_0x3a99e4;return _0x5b70c9!=null&&typeof _0x5b70c9==='object'&&(_0x5b70c9[_0xa8482e(0x745)]===Object||Object[_0xa8482e(0x65c)](_0x5b70c9)===null);}function _0x36c6ae(_0x2791cb,_0x26baaa,_0xa6d615,_0x2a0078){const _0x2f48b3=_0x3a99e4;if(_0x2791cb==null)return _0x26baaa;const _0x4c049d=Number(_0x2791cb);if(!Number[_0x2f48b3(0x496)](_0x4c049d))return _0x26baaa;const _0x502d2b=Math['trunc'](_0x4c049d);if(_0x502d2b<_0xa6d615)return _0xa6d615;if(_0x502d2b>_0x2a0078)return _0x2a0078;return _0x502d2b;}function _0x2948c3(_0x36ec70){const _0x157c7b=_0x3a99e4;if(!_0x36ec70)return[];if(typeof _0x36ec70===_0x157c7b(0x84a))_0x36ec70=[_0x36ec70];if(!Array['isArray'](_0x36ec70))throw new Error(_0x157c7b(0x527));const _0x3f6b96=[],_0xb6a1d6=new Set();for(const _0x557e04 of _0x36ec70){if(_0x557e04==null)continue;const _0x53e1f8=String(_0x557e04)['trim']();if(!_0x53e1f8)continue;if(_0x53e1f8[_0x157c7b(0x192)]>0x80)throw new Error(_0x157c7b(0x5f2));if(_0xb6a1d6[_0x157c7b(0x69d)](_0x53e1f8))continue;_0xb6a1d6[_0x157c7b(0x725)](_0x53e1f8),_0x3f6b96[_0x157c7b(0x46d)](_0x53e1f8);if(_0x3f6b96[_0x157c7b(0x192)]>=0x20)break;}return _0x3f6b96;}function _0xf35097(_0x4153d2){const _0xdfabd9=_0x3a99e4;if(_0x4153d2==null)return null;const _0xd56e28=String(_0x4153d2)[_0xdfabd9(0x4f1)]();if(!_0xd56e28)return null;if(_0xd56e28[_0xdfabd9(0x192)]>0x80)throw new Error(_0xdfabd9(0x7de));return _0xd56e28;}function _0x48e879(_0x452295,_0x119e0a=0x1){const _0x206e5e=_0x3a99e4;if(_0x452295==null)return[];if(typeof _0x452295===_0x206e5e(0x84a)){const _0xb68449=_0xf35097(_0x452295);if(!_0xb68449)return[];return[{'id':_0xb68449,'tokens':_0x119e0a}];}if(!Array[_0x206e5e(0x7e3)](_0x452295))throw new Error('buckets\x20must\x20be\x20array\x20or\x20string');const _0x480c32=[],_0x3f44be=new Set();for(const _0x96f6b7 of _0x452295){let _0x41574a,_0x3559dc;if(Array[_0x206e5e(0x7e3)](_0x96f6b7))[_0x41574a,_0x3559dc]=_0x96f6b7;else{if(_0x96f6b7&&typeof _0x96f6b7===_0x206e5e(0x712))({id:_0x41574a,tokens:_0x3559dc}=_0x96f6b7);else{if(typeof _0x96f6b7==='string')_0x41574a=_0x96f6b7,_0x3559dc=_0x119e0a;else continue;}}_0x41574a=_0xf35097(_0x41574a);if(!_0x41574a)continue;const _0x1dc58f=_0x3559dc==null?_0x119e0a:Math['trunc'](Number(_0x3559dc));if(!Number[_0x206e5e(0x496)](_0x1dc58f)||_0x1dc58f<0x1)throw new Error(_0x206e5e(0x7ad)+_0x41574a+'\x22\x20tokens\x20must\x20be\x20>=\x201');if(_0x1dc58f>0xf4240)throw new Error(_0x206e5e(0x7ad)+_0x41574a+_0x206e5e(0x3c5));if(_0x3f44be[_0x206e5e(0x69d)](_0x41574a))throw new Error('duplicate\x20bucket:\x20'+_0x41574a);_0x3f44be['add'](_0x41574a),_0x480c32[_0x206e5e(0x46d)]({'id':_0x41574a,'tokens':_0x1dc58f});}return _0x480c32;}function _0x580933(_0x4ac013,_0x16b9a3=0x400){const _0x250f52=_0x3a99e4;if(_0x4ac013==null)return null;const _0x2abe6c=String(_0x4ac013)[_0x250f52(0x6fe)](0x0,_0x16b9a3);return _0x2abe6c||null;}function _0x47bc31(_0x10dedb){const _0x2343f6=_0x3a99e4;if(_0x10dedb==null)return null;if(_0x10dedb[_0x2343f6(0x5c0)]!==undefined&&_0x10dedb[_0x2343f6(0x821)]!==undefined)return _0x10dedb;return{'key':_0x10dedb['id']??null,'value':_0x10dedb};}function _0x3a352c(_0x46bc08){const _0xe50da8=_0x3a99e4;let _0x5174a4=_0x46bc08;if(typeof _0x46bc08===_0xe50da8(0x84a))_0x5174a4={'message':_0x46bc08};if(!_0x4d41d1(_0x5174a4))throw new Error(_0xe50da8(0x55b));const _0x41d54c=_0x5174a4[_0xe50da8(0x6dd)]==null?_0xe50da8(0x758):String(_0x5174a4[_0xe50da8(0x6dd)])[_0xe50da8(0x3c2)]();if(!_0x4ae576[_0xe50da8(0x6f8)](_0x41d54c))throw new Error(_0xe50da8(0x5c8)+_0x41d54c);if(_0x5174a4[_0xe50da8(0x367)]==null)throw new Error(_0xe50da8(0x811));const _0x3af139=String(_0x5174a4[_0xe50da8(0x367)])[_0xe50da8(0x6fe)](0x0,_0x5c2379);let _0x29e922=null;if(_0x5174a4['fields']!=null){if(!_0x4d41d1(_0x5174a4[_0xe50da8(0x39f)]))throw new Error(_0xe50da8(0x3a5));if(JSON[_0xe50da8(0x84b)](_0x5174a4[_0xe50da8(0x39f)])[_0xe50da8(0x192)]>_0x8c10b6)throw new Error('log\x20entry\x20fields\x20too\x20large\x20(>2KB\x20serialized)');_0x29e922=_0x5174a4[_0xe50da8(0x39f)];}return{'level':_0x41d54c,'message':_0x3af139,'fields':_0x29e922,'ts':Date[_0xe50da8(0x76a)]()};}function _0x6edbcf(_0x1dc1db){const _0x2826bc=_0x3a99e4;if(_0x1dc1db==null)return;if(!Number[_0x2826bc(0x339)](_0x1dc1db)||_0x1dc1db<_0x8c01d3||_0x1dc1db>_0x15210e)throw new Error('logCap\x20must\x20be\x20null\x20or\x20integer\x20in\x20['+_0x8c01d3+',\x20'+_0x15210e+']');}function _0x1ec720(_0x30b1e8){const _0x2926bb=_0x3a99e4;if(!_0x4d41d1(_0x30b1e8))throw new Error(_0x2926bb(0x718));if(typeof _0x30b1e8['id']!==_0x2926bb(0x84a)||_0x30b1e8['id'][_0x2926bb(0x192)]<0x8)throw new Error(_0x2926bb(0x14e));if(typeof _0x30b1e8[_0x2926bb(0x2d0)]!=='string'||!_0x30b1e8[_0x2926bb(0x2d0)])throw new Error(_0x2926bb(0x33d));if(!Object[_0x2926bb(0x514)](_0x137719)[_0x2926bb(0x6f8)](_0x30b1e8['status']))throw new Error(_0x2926bb(0x4b4)+_0x30b1e8[_0x2926bb(0x2e4)]);for(const _0x5e1f8e of[_0x2926bb(0x1e9),_0x2926bb(0x236),_0x2926bb(0x471)]){if(typeof _0x30b1e8[_0x5e1f8e]!==_0x2926bb(0x859)||!Number['isFinite'](_0x30b1e8[_0x5e1f8e]))throw new Error('job.'+_0x5e1f8e+_0x2926bb(0x4f6));}if(_0x30b1e8['finished']!=null&&(typeof _0x30b1e8[_0x2926bb(0x715)]!==_0x2926bb(0x859)||!Number[_0x2926bb(0x496)](_0x30b1e8[_0x2926bb(0x715)])))throw new Error('job.finished\x20must\x20be\x20number|null');if(!Number[_0x2926bb(0x339)](_0x30b1e8[_0x2926bb(0x32c)])||_0x30b1e8['tries']<0x0)throw new Error(_0x2926bb(0x836));if(!Number[_0x2926bb(0x339)](_0x30b1e8[_0x2926bb(0x876)]))throw new Error(_0x2926bb(0x4bd));if(_0x30b1e8[_0x2926bb(0x81f)]!==null&&_0x30b1e8[_0x2926bb(0x81f)]!==Infinity&&(!Number[_0x2926bb(0x339)](_0x30b1e8[_0x2926bb(0x81f)])||_0x30b1e8[_0x2926bb(0x81f)]<0x1))throw new Error(_0x2926bb(0x655));if(_0x30b1e8['retry_delay']!=null&&(!Number[_0x2926bb(0x339)](_0x30b1e8['retry_delay'])||_0x30b1e8[_0x2926bb(0x51f)]<0x0))throw new Error('job.retry_delay\x20must\x20be\x20int\x20>=\x200');if(_0x30b1e8[_0x2926bb(0x56f)]!=null&&(typeof _0x30b1e8[_0x2926bb(0x56f)]!==_0x2926bb(0x859)||_0x30b1e8[_0x2926bb(0x56f)]<0x1))throw new Error(_0x2926bb(0x1dc));if(_0x30b1e8[_0x2926bb(0x866)]!=null&&typeof _0x30b1e8['claim_id']!==_0x2926bb(0x84a))throw new Error(_0x2926bb(0x687));if(_0x30b1e8[_0x2926bb(0x6fa)]!=null&&(typeof _0x30b1e8[_0x2926bb(0x6fa)]!==_0x2926bb(0x859)||!Number[_0x2926bb(0x496)](_0x30b1e8[_0x2926bb(0x6fa)])))throw new Error('job.claim_expires\x20must\x20be\x20number|null');if(_0x30b1e8[_0x2926bb(0x75f)]!=null&&typeof _0x30b1e8[_0x2926bb(0x75f)]!==_0x2926bb(0x84a))throw new Error(_0x2926bb(0x575));if(_0x30b1e8[_0x2926bb(0x418)]!=null&&(!Number[_0x2926bb(0x339)](_0x30b1e8[_0x2926bb(0x418)])||_0x30b1e8['bucket_tokens']<0x1))throw new Error(_0x2926bb(0x21d));if(_0x30b1e8['buckets']!=null){if(!Array[_0x2926bb(0x7e3)](_0x30b1e8[_0x2926bb(0x61d)]))throw new Error('job.buckets\x20must\x20be\x20array|null');for(const _0x41f3d5 of _0x30b1e8[_0x2926bb(0x61d)]){if(!_0x41f3d5||typeof _0x41f3d5!==_0x2926bb(0x712))throw new Error(_0x2926bb(0x69e));if(typeof _0x41f3d5['id']!==_0x2926bb(0x84a)||!_0x41f3d5['id'][_0x2926bb(0x4f1)]())throw new Error(_0x2926bb(0x1e1));if(!Number[_0x2926bb(0x339)](_0x41f3d5['tokens'])||_0x41f3d5[_0x2926bb(0x493)]<0x1)throw new Error('job.buckets[].tokens\x20must\x20be\x20int\x20>=\x201');}}if(_0x30b1e8[_0x2926bb(0x1fe)]!=null&&typeof _0x30b1e8[_0x2926bb(0x1fe)]!==_0x2926bb(0x84a))throw new Error(_0x2926bb(0x198));if(_0x30b1e8[_0x2926bb(0x197)]!=null&&typeof _0x30b1e8[_0x2926bb(0x197)]!==_0x2926bb(0x84a))throw new Error(_0x2926bb(0x525));if(!Array[_0x2926bb(0x7e3)](_0x30b1e8[_0x2926bb(0x628)]))throw new Error(_0x2926bb(0x427));if(_0x30b1e8[_0x2926bb(0x640)]!=null&&typeof _0x30b1e8[_0x2926bb(0x640)]!==_0x2926bb(0x84a))throw new Error(_0x2926bb(0x6f6));if(_0x30b1e8[_0x2926bb(0x568)]!=null&&typeof _0x30b1e8['status_code']!=='string')throw new Error('job.status_code\x20must\x20be\x20string|null');if(_0x30b1e8[_0x2926bb(0x31e)]!=null&&typeof _0x30b1e8[_0x2926bb(0x31e)]!=='string')throw new Error(_0x2926bb(0x6fc));if(_0x30b1e8[_0x2926bb(0x50c)]!=null&&typeof _0x30b1e8[_0x2926bb(0x50c)]!==_0x2926bb(0x84a))throw new Error(_0x2926bb(0x6e9));for(const _0x52bb10 of['done_ttl',_0x2926bb(0x5b3)]){const _0x400987=_0x30b1e8[_0x52bb10];if(_0x400987!=null&&(!Number['isInteger'](_0x400987)||_0x400987<0x0))throw new Error(_0x2926bb(0x5c7)+_0x52bb10+_0x2926bb(0x377));}_0x6edbcf(_0x30b1e8[_0x2926bb(0x5c1)]);}function _0x89abfd(_0x2ec629){const _0x176670=_0x3a99e4;if(!_0x4d41d1(_0x2ec629))throw new Error(_0x176670(0x7d5));if(typeof _0x2ec629['id']!==_0x176670(0x84a)||!_0x2ec629['id']['trim']())throw new Error(_0x176670(0x7bb));if(!Object[_0x176670(0x514)](_0x513883)[_0x176670(0x6f8)](_0x2ec629[_0x176670(0x2e4)]))throw new Error(_0x176670(0x556)+_0x2ec629['status']);if(_0x2ec629[_0x176670(0x215)]!=null&&(!Number[_0x176670(0x339)](_0x2ec629[_0x176670(0x215)])||_0x2ec629[_0x176670(0x215)]<0x1))throw new Error(_0x176670(0x692));if(_0x2ec629[_0x176670(0x163)]!=null){if(!_0x4d41d1(_0x2ec629[_0x176670(0x163)]))throw new Error(_0x176670(0x333));const _0x2ee58f=_0x2ec629[_0x176670(0x163)];if(_0x2ee58f[_0x176670(0x81f)]!=null&&(!Number[_0x176670(0x339)](_0x2ee58f[_0x176670(0x81f)])||_0x2ee58f['max_tries']<0x1))throw new Error(_0x176670(0x572));if(_0x2ee58f[_0x176670(0x51f)]!=null&&(!Number[_0x176670(0x339)](_0x2ee58f[_0x176670(0x51f)])||_0x2ee58f[_0x176670(0x51f)]<0x0))throw new Error(_0x176670(0x40b));if(_0x2ee58f[_0x176670(0x56f)]!=null&&(typeof _0x2ee58f[_0x176670(0x56f)]!==_0x176670(0x859)||_0x2ee58f[_0x176670(0x56f)]<0x1))throw new Error(_0x176670(0x7d0));if(_0x2ee58f[_0x176670(0x876)]!=null&&!Number['isInteger'](_0x2ee58f['priority']))throw new Error(_0x176670(0x291));if(_0x2ee58f[_0x176670(0x419)]!=null&&(!Number['isInteger'](_0x2ee58f[_0x176670(0x419)])||_0x2ee58f[_0x176670(0x419)]<0x0))throw new Error(_0x176670(0x7b9));for(const _0x58824e of[_0x176670(0x355),'failed_ttl']){if(_0x2ee58f[_0x58824e]!=null&&(!Number[_0x176670(0x339)](_0x2ee58f[_0x58824e])||_0x2ee58f[_0x58824e]<0x0))throw new Error(_0x176670(0x1de)+_0x58824e+_0x176670(0x377));}if(_0x2ee58f[_0x176670(0x61d)]!=null&&!Array[_0x176670(0x7e3)](_0x2ee58f[_0x176670(0x61d)]))throw new Error(_0x176670(0x48d));_0x6edbcf(_0x2ee58f[_0x176670(0x5c1)]);}if(_0x2ec629[_0x176670(0x6c5)]!=null){if(!_0x4d41d1(_0x2ec629[_0x176670(0x6c5)]))throw new Error(_0x176670(0x218));if(!_0x4d41d1(_0x2ec629['payload_schema'][_0x176670(0x219)]))throw new Error(_0x176670(0x4e6));if(typeof _0x2ec629[_0x176670(0x6c5)][_0x176670(0x26a)]!==_0x176670(0x2ff))throw new Error(_0x176670(0x213));}for(const _0x404007 of[_0x176670(0x3b6),_0x176670(0x57b)]){if(typeof _0x2ec629[_0x404007]!=='number'||!Number[_0x176670(0x496)](_0x2ec629[_0x404007]))throw new Error(_0x176670(0x68d)+_0x404007+_0x176670(0x4f6));}}function _0x1c9d85(_0x279697){const _0x1027ff=_0x3a99e4;if(!_0x4d41d1(_0x279697))throw new Error(_0x1027ff(0x174));if(typeof _0x279697['id']!=='string'||!_0x279697['id'][_0x1027ff(0x4f1)]())throw new Error(_0x1027ff(0x42b));if(!Number[_0x1027ff(0x339)](_0x279697['tokens'])||_0x279697[_0x1027ff(0x493)]<0x0)throw new Error(_0x1027ff(0x302));if(!Number['isInteger'](_0x279697['capacity'])||_0x279697['capacity']<0x0)throw new Error(_0x1027ff(0x442));if(_0x279697[_0x1027ff(0x493)]>_0x279697[_0x1027ff(0x583)])throw new Error('bucket.tokens\x20cannot\x20exceed\x20capacity');if(!Number[_0x1027ff(0x339)](_0x279697[_0x1027ff(0x24d)])||_0x279697['refill_amount']<0x0)throw new Error('bucket.refill_amount\x20must\x20be\x20int\x20>=\x200');if(!Number['isInteger'](_0x279697[_0x1027ff(0x306)])||_0x279697[_0x1027ff(0x306)]<0x0)throw new Error(_0x1027ff(0x484));if(typeof _0x279697['updated']!==_0x1027ff(0x859)||!Number[_0x1027ff(0x496)](_0x279697[_0x1027ff(0x471)]))throw new Error('bucket.updated\x20must\x20be\x20number');}return okdbQueueValidate={'STATUS':_0x137719,'JOB_TYPE_STATUS':_0x513883,'QUEUE_EVENTS':_0x448778,'LOG_LEVELS':_0x4ae576,'LOG_CAP_MIN':_0x8c01d3,'LOG_CAP_MAX':_0x15210e,'clampInt':_0x36c6ae,'asNullableString':_0x580933,'normalizeResult':_0x47bc31,'normalizeTags':_0x2948c3,'normalizeBucket':_0xf35097,'normalizeBuckets':_0x48e879,'normalizeLogEntry':_0x3a352c,'validateJobShape':_0x1ec720,'validateJobTypeShape':_0x89abfd,'validateBucketShape':_0x1c9d85},okdbQueueValidate;}var okdbTimers,hasRequiredOkdbTimers;function requireOkdbTimers(){if(hasRequiredOkdbTimers)return okdbTimers;hasRequiredOkdbTimers=0x1;const _0x2e5acd=0x2**0x1f-0x1;function _0x3196bc(_0x4a72ad){if(!(_0x4a72ad>0x0))return 0x0;return _0x4a72ad>_0x2e5acd?_0x2e5acd:_0x4a72ad;}function _0x3914e1(_0x1c546a){return _0x1c546a===Infinity;}return okdbTimers={'MAX_TIMER_DELAY':_0x2e5acd,'clampTimerDelay':_0x3196bc,'isNeverDelay':_0x3914e1},okdbTimers;}var okdbChangefeed,hasRequiredOkdbChangefeed;function requireOkdbChangefeed(){const _0x1aaedf=_0x2d5353;if(hasRequiredOkdbChangefeed)return okdbChangefeed;hasRequiredOkdbChangefeed=0x1;const _0x5a36c6=require$$0$6,{clampTimerDelay:_0x457ba1}=requireOkdbTimers(),{EVENTS:_0x2bdbf6,CHANGE_ACTIONS:_0x520fd7}=requireOkdbEnums(),{LOOP:_0x4331b6}=requireOkdbLoopMonitor(),_0x5ca7d7=Number(process.env.OKDB_CHANGEFEED_QUANTUM)||0x3e8,_0x3494ba=0x5,_0x54ddbc=0x2710;class _0x3f6435 extends _0x5a36c6{constructor(_0x332c67,_0x10de91={}){const _0x355f79=_0x36a2;super(),this[_0x355f79(0x4f7)]=_0x332c67,this[_0x355f79(0x67e)]=_0x10de91[_0x355f79(0x86b)]??_0x5ca7d7,this['_flushDebounce']=_0x10de91['flushDebounce']??_0x3494ba,this[_0x355f79(0x414)]=_0x10de91[_0x355f79(0x270)]??_0x54ddbc,this[_0x355f79(0x508)]=![],this[_0x355f79(0x1ce)]=new Map(),this['_baselines']=new Map(),this[_0x355f79(0x20a)]=new Map(),this[_0x355f79(0x37d)]=null,this['_draining']=![],this['_seen']=new Set(),this[_0x355f79(0x4d9)]=new Set(),this[_0x355f79(0x335)]=_0x302cc2=>this[_0x355f79(0x841)](_0x302cc2),this[_0x355f79(0x2f5)]=_0x334ff3=>this[_0x355f79(0x69a)](_0x334ff3),this[_0x355f79(0x1eb)]=_0x4eae5d=>this['_handlePoke'](_0x4eae5d),this[_0x355f79(0x402)]=()=>this[_0x355f79(0x32a)]();}['start'](){const _0x52d55e=_0x36a2;if(this['_started'])return;this[_0x52d55e(0x508)]=!![];for(const [_0x5d1ea7,_0x3c9142]of this[_0x52d55e(0x4f7)][_0x52d55e(0x3e2)]){if(_0x5d1ea7[_0x52d55e(0x48b)]('~'))continue;try{_0x3c9142[_0x52d55e(0x33f)]();}catch{}}for(const [_0x4553ad,_0x4b6cf5]of this[_0x52d55e(0x4f7)]['_envs']){if(_0x4553ad['startsWith']('~'))continue;try{this[_0x52d55e(0x195)][_0x52d55e(0x7a0)](_0x4553ad,_0x4b6cf5[_0x52d55e(0x863)]()||0x0);}catch{}}const {events:_0x4a170b}=this[_0x52d55e(0x4f7)];_0x4a170b['on'](_0x2bdbf6[_0x52d55e(0x790)],this['_onPending']),_0x4a170b['on'](_0x2bdbf6[_0x52d55e(0x50b)],this['_onItem']),_0x4a170b['on'](_0x2bdbf6['ITEM_UPDATE'],this[_0x52d55e(0x335)]),_0x4a170b['on'](_0x2bdbf6['ITEM_REMOVE'],this[_0x52d55e(0x335)]),_0x4a170b['on'](_0x2bdbf6[_0x52d55e(0x221)],this[_0x52d55e(0x1eb)]),_0x4a170b[_0x52d55e(0x5f3)](_0x2bdbf6['SYSTEM_STOPPED'],this[_0x52d55e(0x402)]);}[_0x1aaedf(0x32a)](){const _0x441cde=_0x1aaedf;if(!this[_0x441cde(0x508)])return;this['_started']=![];const {events:_0x14636a}=this['okdb'];_0x14636a[_0x441cde(0x2b4)](_0x2bdbf6['ITEM_PENDING'],this['_onPending']),_0x14636a[_0x441cde(0x2b4)](_0x2bdbf6['ITEM_CREATE'],this[_0x441cde(0x335)]),_0x14636a[_0x441cde(0x2b4)](_0x2bdbf6['ITEM_UPDATE'],this['_onItem']),_0x14636a['off'](_0x2bdbf6[_0x441cde(0x53e)],this[_0x441cde(0x335)]),_0x14636a[_0x441cde(0x2b4)](_0x2bdbf6['SYSTEM_POKE'],this[_0x441cde(0x1eb)]);try{_0x14636a[_0x441cde(0x2b4)](_0x2bdbf6[_0x441cde(0x301)],this[_0x441cde(0x402)]);}catch{}this[_0x441cde(0x37d)]&&(clearTimeout(this[_0x441cde(0x37d)]),this[_0x441cde(0x37d)]=null),this[_0x441cde(0x20a)][_0x441cde(0x530)](),this[_0x441cde(0x1ce)][_0x441cde(0x530)](),this[_0x441cde(0x195)][_0x441cde(0x530)](),this[_0x441cde(0x2b2)][_0x441cde(0x530)](),this[_0x441cde(0x4d9)][_0x441cde(0x530)]();}[_0x1aaedf(0x52e)](_0x2799d4,_0x45d19a,_0xba5c66,_0x22cfb5){return _0x2799d4+'\x00'+_0x45d19a+'\x00'+_0xba5c66+'\x00'+_0x22cfb5;}[_0x1aaedf(0x523)](_0xb56f87,_0x1fbac9,_0x5b589a,_0x54363c){const _0x4dfeee=_0x1aaedf,_0x47553f=this[_0x4dfeee(0x52e)](_0xb56f87,_0x1fbac9,_0x5b589a,_0x54363c);if(this[_0x4dfeee(0x2b2)][_0x4dfeee(0x69d)](_0x47553f))return![];this[_0x4dfeee(0x2b2)][_0x4dfeee(0x725)](_0x47553f);if(this[_0x4dfeee(0x2b2)][_0x4dfeee(0x4fb)]>this[_0x4dfeee(0x414)]){const _0x723eee=this['_seen'][_0x4dfeee(0x514)]()['next']()[_0x4dfeee(0x821)];this[_0x4dfeee(0x2b2)][_0x4dfeee(0x243)](_0x723eee);}return!![];}[_0x1aaedf(0x69a)](_0x1e2b69){const _0x325b6b=_0x1aaedf;if(!this['_started']||!_0x1e2b69)return;const {env:_0x13b18c,type:_0x4b0acf,key:_0x1a6232,clock:_0x3d7df5}=_0x1e2b69;if(_0x13b18c==null||_0x4b0acf==null||_0x1a6232==null)return;if(typeof _0x13b18c===_0x325b6b(0x84a)&&_0x13b18c[_0x325b6b(0x48b)]('~'))return;if(typeof _0x4b0acf===_0x325b6b(0x84a)&&_0x4b0acf[_0x325b6b(0x48b)]('~'))return;this[_0x325b6b(0x4d9)][_0x325b6b(0x725)](this[_0x325b6b(0x52e)](_0x13b18c,_0x4b0acf,_0x1a6232,_0x3d7df5)),this[_0x325b6b(0x4d9)][_0x325b6b(0x4fb)]>this['_dedupeMax']&&this['_pendingLocal'][_0x325b6b(0x243)](this[_0x325b6b(0x4d9)][_0x325b6b(0x514)]()[_0x325b6b(0x730)]()[_0x325b6b(0x821)]);}[_0x1aaedf(0x841)](_0x376e77){const _0x1daf7e=_0x1aaedf;if(!this[_0x1daf7e(0x508)]||!_0x376e77)return;const {env:_0x336ccf,type:_0x45179e,key:_0x47beeb,clock:_0x5a1c87,origin:_0x510c63,action:_0x426a2f,newValue:_0xa33d2e,oldValue:_0x4830ef}=_0x376e77;if(_0x336ccf==null||_0x45179e==null||_0x47beeb==null)return;if(typeof _0x336ccf===_0x1daf7e(0x84a)&&_0x336ccf[_0x1daf7e(0x48b)]('~'))return;if(typeof _0x45179e===_0x1daf7e(0x84a)&&_0x45179e[_0x1daf7e(0x48b)]('~'))return;this[_0x1daf7e(0x4d9)][_0x1daf7e(0x243)](this[_0x1daf7e(0x52e)](_0x336ccf,_0x45179e,_0x47beeb,_0x5a1c87));if(!this[_0x1daf7e(0x523)](_0x336ccf,_0x45179e,_0x47beeb,_0x5a1c87))return;const _0x39996a=_0x426a2f===_0x520fd7[_0x1daf7e(0x5a7)]?'remove':'put';this[_0x1daf7e(0x839)](_0x1daf7e(0x6c0),{'env':_0x336ccf,'type':_0x45179e,'key':_0x47beeb,'op':_0x39996a,'clock':_0x5a1c87,'origin':_0x510c63,'value':_0x39996a==='remove'?null:_0xa33d2e,'prevValue':_0x4830ef});}['_handlePoke'](_0x46059a){const _0x54e25a=_0x1aaedf;if(!this[_0x54e25a(0x508)])return;if(!_0x46059a||typeof _0x46059a['env']!=='string'||typeof _0x46059a[_0x54e25a(0x2d0)]!==_0x54e25a(0x84a))return;const {env:_0x9f1bc8,type:_0x386c4a}=_0x46059a;if(_0x9f1bc8[_0x54e25a(0x48b)]('~')||_0x386c4a['startsWith']('~'))return;this[_0x54e25a(0x20a)][_0x54e25a(0x7a0)](_0x9f1bc8+'\x00'+_0x386c4a,{'env':_0x9f1bc8,'type':_0x386c4a}),this[_0x54e25a(0x4bc)]();}[_0x1aaedf(0x4bc)](){const _0x5e1722=_0x1aaedf;if(this['_flushTimer'])return;const _0x461239=()=>{const _0x382425=_0x36a2;this[_0x382425(0x37d)]=null,this['_drain']()['catch'](()=>{});};this['_flushTimer']=setTimeout(_0x461239,_0x457ba1(this[_0x5e1722(0x767)]));}async[_0x1aaedf(0x2b8)](){const _0x555207=_0x1aaedf;if(this[_0x555207(0x3a6)]){this['_scheduleFlush']();return;}this['_draining']=!![];try{const _0x2efbb7=[...this['_pending'][_0x555207(0x514)]()];this[_0x555207(0x20a)][_0x555207(0x530)]();let _0x394d47=![];for(const {env:_0x11655e,type:_0xb826c9}of _0x2efbb7){try{const _0x1319d7=await this['_drainOne'](_0x11655e,_0xb826c9);if(_0x1319d7)_0x394d47=!![];}catch{this[_0x555207(0x20a)]['set'](_0x11655e+'\x00'+_0xb826c9,{'env':_0x11655e,'type':_0xb826c9}),_0x394d47=!![];}}if(_0x394d47||this[_0x555207(0x20a)][_0x555207(0x4fb)]>0x0)this['_scheduleFlush']();}finally{this[_0x555207(0x3a6)]=![];}}async['_drainOne'](_0x5349df,_0x3a1e05){const _0xac4317=_0x1aaedf,_0x147b54=await this[_0xac4317(0x4f7)][_0xac4317(0x41c)](_0x5349df),_0x326dd3=_0x5349df+'\x00'+_0x3a1e05;!this[_0xac4317(0x1ce)][_0xac4317(0x69d)](_0x326dd3)&&(!this[_0xac4317(0x195)][_0xac4317(0x69d)](_0x5349df)&&(_0x147b54[_0xac4317(0x33f)](),this[_0xac4317(0x195)][_0xac4317(0x7a0)](_0x5349df,_0x147b54['getClock']()||0x0)),this[_0xac4317(0x1ce)][_0xac4317(0x7a0)](_0x326dd3,this[_0xac4317(0x195)][_0xac4317(0x6ce)](_0x5349df)));const _0x5df0ad=this[_0xac4317(0x1ce)][_0xac4317(0x6ce)](_0x326dd3),_0x139d10=_0x147b54[_0xac4317(0x863)](_0x3a1e05)||0x0;if(_0x139d10<=_0x5df0ad)return![];const _0x4114a1=_0x5df0ad+this['_quantum'],_0x43681b=Math[_0xac4317(0x7bc)](_0x139d10,_0x4114a1),_0x27c765=_0x4331b6['enabled']?_0x4331b6['now']():0x0,_0xfaeeef=Array[_0xac4317(0x3ed)](_0x147b54[_0xac4317(0x5ed)](_0x3a1e05,_0x5df0ad+0x1,_0x43681b));let _0x347290=_0x5df0ad;for(const _0x23449d of _0xfaeeef){const {clock:_0x4201b5,key:_0x1b2ec3,action:_0x16a33c,origin:_0x578705}=_0x23449d;if(_0x4201b5>_0x347290)_0x347290=_0x4201b5;if(_0x1b2ec3==null)continue;if(this[_0xac4317(0x4d9)][_0xac4317(0x69d)](this[_0xac4317(0x52e)](_0x5349df,_0x3a1e05,_0x1b2ec3,_0x4201b5)))continue;if(!this[_0xac4317(0x523)](_0x5349df,_0x3a1e05,_0x1b2ec3,_0x4201b5))continue;let _0x56543a,_0x1037b8;if(_0x16a33c===_0x520fd7['REMOVE'])_0x56543a=_0xac4317(0x78e),_0x1037b8=null;else{const _0x50de31=_0x147b54[_0xac4317(0x6ce)](_0x3a1e05,_0x1b2ec3);_0x50de31==null?(_0x56543a=_0xac4317(0x78e),_0x1037b8=null):(_0x56543a=_0xac4317(0x14f),_0x1037b8=_0x50de31);}this[_0xac4317(0x839)](_0xac4317(0x6c0),{'env':_0x5349df,'type':_0x3a1e05,'key':_0x1b2ec3,'op':_0x56543a,'clock':_0x4201b5,'origin':_0x578705,'value':_0x1037b8});}if(_0x4331b6[_0xac4317(0x6f9)])_0x4331b6['note']('feed:'+_0x5349df+':'+_0x3a1e05,_0x4331b6[_0xac4317(0x76a)]()-_0x27c765,'n='+_0xfaeeef[_0xac4317(0x192)]);return this[_0xac4317(0x1ce)][_0xac4317(0x7a0)](_0x326dd3,Math['max'](_0x347290,_0x43681b)),_0x147b54[_0xac4317(0x863)](_0x3a1e05)>_0x43681b;}[_0x1aaedf(0x2e4)](){const _0x185a41=_0x1aaedf;return{'started':this[_0x185a41(0x508)],'quantum':this[_0x185a41(0x67e)],'flushDebounce':this[_0x185a41(0x767)],'cursors':Object[_0x185a41(0x6a5)]([...this['_cursors'][_0x185a41(0x45b)]()][_0x185a41(0x4e8)](([_0x22acc0,_0x1b4ced])=>[_0x22acc0[_0x185a41(0x4d7)]('\x00',':'),_0x1b4ced])),'pending':this[_0x185a41(0x20a)]['size'],'seen':this[_0x185a41(0x2b2)]['size']};}}return _0x3f6435['CHANGEFEED_QUANTUM']=_0x5ca7d7,okdbChangefeed={'OKDBChangefeed':_0x3f6435},okdbChangefeed;}var okdbRelay,hasRequiredOkdbRelay;function requireOkdbRelay(){const _0x651e71=_0x2d5353;if(hasRequiredOkdbRelay)return okdbRelay;hasRequiredOkdbRelay=0x1;const {EVENTS:_0x59e280}=requireOkdbEnums(),_0x2d5e9a=new Set([_0x59e280['ITEM_CREATE'],_0x59e280[_0x651e71(0x637)],_0x59e280['ITEM_REMOVE']]),{ENGINE_EVENTS:_0x1db2a0}=requireOkdbEnginesEnums(),{EMBEDDINGS_EVENTS:_0x26212c}=requireEnums(),{QUEUE_EVENTS:_0x7f8fe3}=requireOkdbQueueValidate(),_0x455c88=Object['values'](_0x59e280),_0x3dd425=Object[_0x651e71(0x514)](_0x1db2a0)[_0x651e71(0x4e8)](_0x26ec08=>_0x651e71(0x48a)+_0x26ec08),_0x27c8c9=Object[_0x651e71(0x514)](_0x26212c),_0x4de12e=Object[_0x651e71(0x514)](_0x7f8fe3),_0x348005=[_0x651e71(0x845),_0x651e71(0x225),_0x651e71(0x693),'processor:paused',_0x651e71(0x359),_0x651e71(0x619)],_0x57e253=[..._0x455c88,..._0x3dd425,..._0x27c8c9,..._0x4de12e,..._0x348005,_0x651e71(0x71e)],_0x42c7ac=new Set(_0x57e253),_0x5af9c5=new Set([_0x59e280[_0x651e71(0x50b)],_0x59e280['ITEM_UPDATE'],_0x59e280[_0x651e71(0x53e)],_0x59e280[_0x651e71(0x256)],_0x59e280[_0x651e71(0x1a9)],_0x59e280[_0x651e71(0x507)],_0x59e280[_0x651e71(0x16b)],_0x59e280[_0x651e71(0x54a)],_0x26212c[_0x651e71(0x1b2)],_0x26212c[_0x651e71(0x341)],_0x26212c['INDEXER_DOC_QUEUED'],_0x26212c[_0x651e71(0x3bf)],_0x651e71(0x225)]),_0x4aeeb7=_0x57e253['filter'](_0x3bc1b1=>_0x3bc1b1===_0x651e71(0x71e)||!_0x5af9c5[_0x651e71(0x69d)](_0x3bc1b1)),_0x474d7b=0x14,_0x2f692d=0xc8;class _0x496597{constructor(_0x459c0d,_0x42e235={}){const _0x4c40c9=_0x651e71;this[_0x4c40c9(0x4f7)]=_0x459c0d,this[_0x4c40c9(0x545)]=_0x42e235[_0x4c40c9(0x742)]??_0x474d7b,this[_0x4c40c9(0x737)]=_0x42e235[_0x4c40c9(0x660)]??_0x2f692d,this['_connections']=new Set(),this[_0x4c40c9(0x125)]=[],this[_0x4c40c9(0x456)]=[],this[_0x4c40c9(0x4c9)]=null,this[_0x4c40c9(0x285)]=![],this[_0x4c40c9(0x4ca)]=null,this[_0x4c40c9(0x532)]=null;}[_0x651e71(0x5b2)](){const _0x32b0ed=_0x651e71;if(this[_0x32b0ed(0x285)])return;this['_attached']=!![];const {okdb:_0x3260bb}=this;this[_0x32b0ed(0x4c9)]=_0x3260bb['log']['attach'](_0x3b4feb=>this['_push'](_0x32b0ed(0x71e),_0x3b4feb));for(const _0x2e087e of _0x57e253){if(_0x2e087e===_0x32b0ed(0x71e))continue;const _0x2ff407=_0x2d5e9a[_0x32b0ed(0x69d)](_0x2e087e),_0x5ac315=_0x527400=>{const _0xed485=_0x32b0ed;if(_0x2ff407&&this[_0xed485(0x4ca)])return;this['_push'](_0x2e087e,_0x527400??{});};_0x3260bb[_0x32b0ed(0x5d6)]['on'](_0x2e087e,_0x5ac315),this[_0x32b0ed(0x456)][_0x32b0ed(0x46d)]({'event':_0x2e087e,'handler':_0x5ac315});}this[_0x32b0ed(0x402)]=()=>this['detach'](),_0x3260bb[_0x32b0ed(0x5d6)][_0x32b0ed(0x5f3)](_0x59e280['SYSTEM_STOPPED'],this[_0x32b0ed(0x402)]);}[_0x651e71(0x6cf)](){const _0x179e13=_0x651e71;if(!this[_0x179e13(0x285)])return;if(this[_0x179e13(0x402)]){try{this[_0x179e13(0x4f7)]['events']['off'](_0x59e280[_0x179e13(0x301)],this[_0x179e13(0x402)]);}catch{}this['_onStop']=null;}this[_0x179e13(0x4c9)]?.(),this[_0x179e13(0x4c9)]=null;for(const {event:_0x1f7d99,handler:_0x2d572b}of this['_listeners']){try{this['okdb'][_0x179e13(0x5d6)]['off'](_0x1f7d99,_0x2d572b);}catch{}}this['_listeners']=[];for(const _0x470269 of this[_0x179e13(0x283)]){try{_0x470269[_0x179e13(0x182)]?.();}catch{}}this[_0x179e13(0x283)][_0x179e13(0x530)](),this[_0x179e13(0x81a)](),this[_0x179e13(0x285)]=![];}[_0x651e71(0x439)](_0x285b50){const _0x582a22=_0x651e71;if(!_0x285b50||this[_0x582a22(0x4ca)]===_0x285b50)return;this[_0x582a22(0x81a)](),this['_feed']=_0x285b50,this['_onFeedChange']=_0x5cf735=>{const _0x125f3c=_0x582a22;if(!_0x5cf735)return;const _0x4b0979=_0x5cf735['op']===_0x125f3c(0x78e)?_0x59e280[_0x125f3c(0x53e)]:_0x59e280[_0x125f3c(0x637)];this[_0x125f3c(0x53f)](_0x4b0979,_0x5cf735);},_0x285b50['on']('change',this[_0x582a22(0x532)]);}[_0x651e71(0x81a)](){const _0x24b499=_0x651e71;if(this[_0x24b499(0x4ca)]&&this[_0x24b499(0x532)])try{this[_0x24b499(0x4ca)]['off']('change',this[_0x24b499(0x532)]);}catch{}this['_feed']=null,this[_0x24b499(0x532)]=null;}[_0x651e71(0x1ef)](_0x4eb92f,_0x2864ea){const _0x4f7f81=_0x651e71;if(!_0x42c7ac['has'](_0x4eb92f))return;this[_0x4f7f81(0x53f)](_0x4eb92f,_0x2864ea??{});}[_0x651e71(0x55d)](_0x4537cb,_0x3f18fa,_0x49a321){const _0x2de6f6=_0x651e71;if(this[_0x2de6f6(0x283)][_0x2de6f6(0x4fb)]>=this[_0x2de6f6(0x545)])return _0x3f18fa(_0x2de6f6(0x2fe),{'message':_0x2de6f6(0x610),'code':_0x2de6f6(0x2cd)}),()=>{};const _0x195cf2=this[_0x2de6f6(0x3e0)](_0x4537cb),_0x120912={'send':_0x3f18fa,'filter':_0x195cf2,'close':_0x49a321??null};this[_0x2de6f6(0x283)][_0x2de6f6(0x725)](_0x120912);for(const {event:_0x346e87,data:_0x503aab}of this['_buffer']){if(_0x195cf2[_0x2de6f6(0x69d)](_0x346e87))try{_0x3f18fa(_0x346e87,_0x503aab);}catch{}}return()=>this[_0x2de6f6(0x283)][_0x2de6f6(0x243)](_0x120912);}[_0x651e71(0x1b6)](){const _0x2b377d=_0x651e71;if(this[_0x2b377d(0x4ca)])return this[_0x2b377d(0x4ca)];const {OKDBChangefeed:_0x2130ec}=requireOkdbChangefeed(),_0x2919be=new _0x2130ec(this['okdb']);_0x2919be[_0x2b377d(0x4df)](),this['attachFeed'](_0x2919be);if(this[_0x2b377d(0x4f7)]&&!this[_0x2b377d(0x4f7)][_0x2b377d(0x7fe)])this[_0x2b377d(0x4f7)][_0x2b377d(0x7fe)]=_0x2919be;return this[_0x2b377d(0x4ca)];}get[_0x651e71(0x11e)](){const _0x5a9cc6=_0x651e71;return this[_0x5a9cc6(0x283)][_0x5a9cc6(0x4fb)];}[_0x651e71(0x159)](){const _0x1aa075=_0x651e71;return{'connections':this[_0x1aa075(0x11e)],'bufferSize':this['_buffer'][_0x1aa075(0x192)],'attached':this[_0x1aa075(0x285)],'allEvents':_0x57e253[_0x1aa075(0x192)],'defaultEvents':_0x4aeeb7[_0x1aa075(0x192)]};}static get[_0x651e71(0x66a)](){return _0x57e253;}static get[_0x651e71(0x547)](){return _0x4aeeb7;}static get['HIGH_FREQ_EVENTS'](){return[..._0x5af9c5];}[_0x651e71(0x3e0)](_0x381b89){const _0x301527=_0x651e71;if(!_0x381b89||!_0x381b89[_0x301527(0x192)])return new Set(_0x4aeeb7);const _0x2da1fa=_0x381b89['filter'](_0x1020db=>_0x42c7ac[_0x301527(0x69d)](_0x1020db));return new Set(_0x2da1fa['length']?_0x2da1fa:_0x4aeeb7);}[_0x651e71(0x53f)](_0x2ea5f5,_0x94b1cf){const _0x3deb11=_0x651e71,_0x3f505d={..._0x94b1cf,'_ts':_0x94b1cf?.[_0x3deb11(0x560)]??_0x94b1cf?.['ts']??Date[_0x3deb11(0x76a)]()};this[_0x3deb11(0x125)][_0x3deb11(0x46d)]({'event':_0x2ea5f5,'data':_0x3f505d});if(this[_0x3deb11(0x125)]['length']>this[_0x3deb11(0x737)])this['_buffer'][_0x3deb11(0x356)]();for(const _0x445b80 of this['_connections']){if(_0x445b80['filter'][_0x3deb11(0x69d)](_0x2ea5f5))try{_0x445b80[_0x3deb11(0x399)](_0x2ea5f5,_0x3f505d);}catch{}}}}return okdbRelay=_0x496597,okdbRelay;}var hasRequiredLib;function requireLib(){const _0xfaecd0=_0x2d5353;if(hasRequiredLib)return lib[_0xfaecd0(0x613)];return hasRequiredLib=0x1,function(_0x5cf16a){const _0x225529=_0xfaecd0,_0x2eca81=require$$0$6,{load:_0x18d4fe}=require$$1$1,_0x59662c=requireBridge(),_0x24e126=requireWritebatch(),{Pumper:_0x599bd4}=requirePump(),{OKDBEnv:_0x5924c6,HIGH_SENTINEL:_0x458029}=requireEnv(),{reclass:_0x996777,NotImplementedNative:_0xc989f2,OKDBError:_0x3557d7,optionsArg:_0x53bf1c,invalidArgument:_0x2bbe5e}=requireErrors(),{notImplemented:_0x5c68e2}=requireUnsupported(),{OKDBHttp:_0x2c8512}=requireHttp(),{OKDBFts:_0x552848}=requireFts(),{OKDBEmbeddings:_0x3029e6}=requireEmbeddings(),{OKDBAuth:_0x22c1e1}=requireAuth(),{OKDBSync:_0x495aef}=requireSync(),{OKDBMigrate:_0x4cb43f}=requireMigrate(),{OKDBFunctions:_0x3b0284}=requireFunctions(),{OKDBMcp:_0x1f0b42}=requireMcp(),{OKDBEngines:_0x4c006a,OKDBPipelines:_0x5d7443}=requireEngines(),{makeMeta:_0x371de6,makeLicenses:_0xee87e3,makeLicenseChecker:_0x196721,makeProcesses:_0x2ffba7}=requireSys();let _0x5cade8=null;function _0x7f91a2(_0xec5edc){if(!_0x5cade8){const {Unpackr:_0x26bf46}=require$$18;_0x5cade8=new _0x26bf46({'useRecords':![],'mapsAsObjects':!![],'copyBuffers':!![]});}return _0x5cade8['unpack'](_0xec5edc);}let _0x360eab=null;function _0x56399f(_0x4ad7d3,_0x12a1b0){const _0x2b8a03=_0x36a2;if(!_0x360eab){const {Unpackr:_0xe2cd32}=require$$18;_0x360eab=new _0xe2cd32({'copyBuffers':!![]});}return _0x360eab[_0x2b8a03(0x4db)](_0x4ad7d3,_0x12a1b0);}const {encodeKey:_0x4eefe8,KEY_BUF_SIZE:_0x3f46f1,NO_FAST:_0x4a2e97}=requireKeyenc(),_0x360dfc=0x40*0x400,_0xd222cf=0x4*0x400*0x400;function _0x5b437f(_0xa7a499,_0x2092c9){const _0x8e8f76=_0x36a2,_0x22732f=_0xa7a499[0x2],_0x47e008=_0x22732f?(_0xa7a499[_0x8e8f76(0x192)]-0x3)/Math[_0x8e8f76(0x240)](_0x22732f):0x0,_0x180e6e=new Array(_0x47e008);let _0x22be0e=0x3;if(_0x22732f===0x2){for(let _0x165dff=0x0;_0x165dff<_0x47e008;_0x165dff++,_0x22be0e+=0x2)_0x180e6e[_0x165dff]={'key':_0xa7a499[_0x22be0e],'value':_0xa7a499[_0x22be0e+0x1]};}else{if(_0x22732f===0x3){for(let _0x3d50d1=0x0;_0x3d50d1<_0x47e008;_0x3d50d1++,_0x22be0e+=0x3)_0x180e6e[_0x3d50d1]={'key':_0xa7a499[_0x22be0e],'value':_0xa7a499[_0x22be0e+0x1],'version':_0xa7a499[_0x22be0e+0x2]};}else{if(_0x22732f===-0x2){for(let _0x2026ab=0x0;_0x2026ab<_0x47e008;_0x2026ab++,_0x22be0e+=0x2)_0x180e6e[_0x2026ab]={'clock':_0xa7a499[_0x22be0e],..._0xa7a499[_0x22be0e+0x1]};}else{if(_0x22732f===0x4){for(let _0x17614f=0x0;_0x17614f<_0x47e008;_0x17614f++,_0x22be0e+=0x4)_0x180e6e[_0x17614f]={'key':_0xa7a499[_0x22be0e],'value':_0xa7a499[_0x22be0e+0x1],'version':_0xa7a499[_0x22be0e+0x2],'indexKey':_0xa7a499[_0x22be0e+0x3]};}else{if(_0x47e008)throw new Error(_0x8e8f76(0x2e2)+_0x22732f);}}}}return _0x2092c9?[_0xa7a499[0x0],_0x180e6e,_0xa7a499[0x1]]:_0x180e6e;}let _0x8afa1=null;function _0x55a549(_0x3539ab,_0x17b818,_0xaa0c85){const _0x39ef6e=_0x36a2;if(!_0x8afa1)_0x8afa1=requireDist()['readKey'];const _0x504f1c=new DataView(_0x3539ab[_0x39ef6e(0x2c6)],_0x3539ab['byteOffset'],_0x17b818),_0xe60533=_0x504f1c['getUint32'](0x10,!![]),_0x3c6118=new Array(_0xe60533);let _0xf895b=0x14;for(let _0x49fff9=0x0;_0x49fff9<_0xe60533;_0x49fff9++){const _0x5340de=_0x3539ab[_0xf895b]|_0x3539ab[_0xf895b+0x1]<<0x8;_0xf895b+=0x2,_0x3c6118[_0x49fff9]=_0x8afa1(_0x3539ab,_0xf895b,_0xf895b+_0x5340de),_0xf895b+=_0x5340de;}return _0xaa0c85?[_0x504f1c[_0x39ef6e(0x2ac)](0x0,!![]),_0x3c6118,_0x504f1c[_0x39ef6e(0x2ac)](0x8,!![])]:_0x3c6118;}const _0x2a5b58=requireOkdbLogger(),_0x71351=requireOkdbPlugins(),{OKDB_STATE:_0x3fda88,EVENTS:_0x239e30}=requireOkdbEnums(),_0x185869=requireStatics();let _0x55c1c1=null,_0x3c887a=![],_0x2e1441=0x1;const _0x5678fd=new Map(),_0x2aa026=new Set([_0x225529(0x871),_0x225529(0x2dc)]),_0x135527=_0x2c34ea=>!!_0x2c34ea&&_0x2aa026[_0x225529(0x69d)](_0x2c34ea[_0x225529(0x316)]),_0x53120a=Number(process.env.OKDB_PENDING_RETRY_MS)>0x0?Number(process.env.OKDB_PENDING_RETRY_MS):0x1d4c0;function _0x1e8ed7(){const _0x19f6df=_0x225529;!_0x3c887a&&(_0x176e58()['setBridge'](_0x59662c[_0x19f6df(0x31d)]),_0x24e126['install'](_0x176e58()),_0x3c887a=!![]);}function _0x176e58(){if(!_0x55c1c1)_0x55c1c1=_0x18d4fe();return _0x55c1c1;}class _0x535b16 extends Map{constructor(_0x477d3d){const _0x212251=_0x225529;super(),this[_0x212251(0x65e)]=_0x477d3d;}[_0x225529(0x5e8)](){const _0x5c6aa6=_0x225529,_0x45f4a5=this['_db'];if(!_0x45f4a5[_0x5c6aa6(0x67d)])return;let _0x59c9de;try{_0x59c9de=_0x45f4a5[_0x5c6aa6(0x24a)]('db',null,_0x5c6aa6(0x43b),[],![]);}catch{return;}for(const _0x38352a of _0x59c9de)if(!super[_0x5c6aa6(0x69d)](_0x38352a)&&_0x45f4a5[_0x5c6aa6(0x24a)]('db',null,_0x5c6aa6(0x15a),[_0x38352a],![]))_0x45f4a5['_ensureEnv'](_0x38352a);}[_0x225529(0x6ce)](_0x54c2de){const _0x324adb=_0x225529,_0x4e0ea8=super[_0x324adb(0x6ce)](_0x54c2de);if(_0x4e0ea8!==undefined||typeof _0x54c2de!==_0x324adb(0x84a))return _0x4e0ea8;const _0x1e3159=this['_db'];if(_0x54c2de===_0x324adb(0x2a0))return _0x1e3159[_0x324adb(0x67d)]?_0x1e3159[_0x324adb(0x1ea)][_0x324adb(0x144)]??undefined:undefined;if(_0x1e3159[_0x324adb(0x67d)]&&_0x1e3159['_call']('db',null,_0x324adb(0x15a),[_0x54c2de],![]))return _0x1e3159[_0x324adb(0x1c2)](_0x54c2de);if(_0x1e3159['_isOpen']&&typeof _0x54c2de===_0x324adb(0x84a)&&!_0x54c2de[_0x324adb(0x48b)]('~')){_0x1e3159[_0x324adb(0x24a)]('db',null,_0x324adb(0x3d1),[],![]);if(_0x1e3159['_call']('db',null,_0x324adb(0x15a),[_0x54c2de],![]))return _0x1e3159[_0x324adb(0x1c2)](_0x54c2de);}return undefined;}[_0x225529(0x69d)](_0x1eadb7){const _0xb3c612=_0x225529;return this[_0xb3c612(0x6ce)](_0x1eadb7)!==undefined;}get['size'](){const _0x33018d=_0x225529;return this['_sync'](),super[_0x33018d(0x4fb)];}[_0x225529(0x50d)](){const _0x1a1d1d=_0x225529;return this[_0x1a1d1d(0x5e8)](),super['keys']();}[_0x225529(0x514)](){const _0x4258d5=_0x225529;return this['_sync'](),super[_0x4258d5(0x514)]();}[_0x225529(0x45b)](){const _0x11502d=_0x225529;return this['_sync'](),super[_0x11502d(0x45b)]();}['forEach'](_0xb34281,_0x28974c){const _0x4b58a3=_0x225529;return this[_0x4b58a3(0x5e8)](),super[_0x4b58a3(0x524)](_0xb34281,_0x28974c);}[Symbol['iterator']](){const _0x1245e2=_0x225529;return this[_0x1245e2(0x5e8)](),super[Symbol[_0x1245e2(0x1f2)]]();}}class _0x20abc6{constructor(_0x2d17d0,_0x83184d={}){const _0x2e39bf=_0x225529,_0x55e58e=_0x176e58();this[_0x2e39bf(0x733)]=_0x2d17d0,this[_0x2e39bf(0x79b)]=_0x2e1441++,this[_0x2e39bf(0x4b1)]='db'+this['_uid'],this[_0x2e39bf(0x4c0)]={..._0x185869['defaults'],..._0x83184d,'auth':_0x83184d['auth']?{..._0x83184d['auth']}:undefined,'lmdb':{..._0x83184d['lmdb']||{}}},this['events']=new _0x2eca81(),this['events'][_0x2e39bf(0x2bd)](0x0),this[_0x2e39bf(0x1fb)]=new Set(),this[_0x2e39bf(0x5d6)]['on']('newListener',_0x3c96a7=>this[_0x2e39bf(0x389)](_0x3c96a7)),this[_0x2e39bf(0x71e)]=new _0x2a5b58(this),this['log'][_0x2e39bf(0x1f9)](),_0x59662c[_0x2e39bf(0x694)](this[_0x2e39bf(0x4b1)],{'_deliver':(_0x185193,_0x16ce2b)=>this[_0x2e39bf(0x626)](_0x185193,_0x16ce2b),'_log':_0x23e194=>{const _0x2cdd05=_0x2e39bf;if(this[_0x2cdd05(0x662)])this[_0x2cdd05(0x662)][_0x2cdd05(0x46d)](_0x23e194);const _0x491910=_0x23e194&&_0x23e194[_0x2cdd05(0x6dd)];if(_0x491910&&Object[_0x2cdd05(0x771)][_0x2cdd05(0x5b6)]['call'](this[_0x2cdd05(0x71e)],_0x491910)&&typeof this[_0x2cdd05(0x71e)][_0x491910]==='function'){const _0x1e0dfe=_0x23e194[_0x2cdd05(0x3ce)];return this[_0x2cdd05(0x71e)][_0x491910](_0x23e194['msg'],{..._0x23e194[_0x2cdd05(0x360)]||{},..._0x1e0dfe&&typeof _0x1e0dfe==='object'?_0x1e0dfe:{}});}return this[_0x2cdd05(0x71e)][_0x2cdd05(0x297)](_0x23e194);}}),_0x1e8ed7();try{const _0x5c3d48={};if(typeof _0x2e39bf(0x77b)===_0x2e39bf(0x364)||_0x2e39bf(0x77b)!==_0x2e39bf(0x77b));const _0x50e976={..._0x83184d,'_clusterWorker':require(_0x2e39bf(0x29e))[_0x2e39bf(0x591)],..._0x5c3d48};this[_0x2e39bf(0x15d)]={'instance':null,'envs':new Map()};typeof _0x83184d[_0x2e39bf(0x4ee)]===_0x2e39bf(0x3b3)&&(this[_0x2e39bf(0x15d)][_0x2e39bf(0x699)]=_0x83184d['encryptionKey'],delete _0x50e976[_0x2e39bf(0x4ee)]);if(_0x83184d[_0x2e39bf(0x7c7)]&&typeof _0x83184d[_0x2e39bf(0x7c7)]===_0x2e39bf(0x712)){for(const [_0x43b85e,_0x48f05e]of Object[_0x2e39bf(0x45b)](_0x83184d[_0x2e39bf(0x7c7)]))this['_keyFns']['envs'][_0x2e39bf(0x7a0)](_0x43b85e,_0x48f05e);}delete _0x50e976[_0x2e39bf(0x7c7)],this['_native']=new _0x55e58e['Native'](_0x2d17d0,_0x50e976,this[_0x2e39bf(0x4b1)]);}catch(_0x1a1d3f){_0x59662c[_0x2e39bf(0x2c2)](this[_0x2e39bf(0x4b1)]);throw _0x996777(_0x1a1d3f);}this[_0x2e39bf(0x76c)]=_0x3fda88[_0x2e39bf(0x392)],this['_isOpen']=![],this['_envs']=new _0x535b16(this),this[_0x2e39bf(0x176)]=new _0x599bd4({'pump':()=>this[_0x2e39bf(0x38a)][_0x2e39bf(0x2c7)]()}),this['_wb']=new _0x24e126[(_0x2e39bf(0x4d5))](this),this['_pumper']['afterTurn']=()=>_0x59662c[_0x2e39bf(0x3e6)](),_0x59662c[_0x2e39bf(0x5bf)](()=>this[_0x2e39bf(0x176)][_0x2e39bf(0x42a)](),this),_0x5678fd['set'](this[_0x2e39bf(0x79b)],this),this['_features']={},_0x59662c[_0x2e39bf(0x4f2)](this),this[_0x2e39bf(0x6ef)]=new _0x552848(this),this[_0x2e39bf(0x6ed)]=new _0x3029e6(this),this[_0x2e39bf(0x617)]=new _0x4c006a(this,null,null),this[_0x2e39bf(0x3ca)]=new _0x5d7443(this,null),this['meta']=_0x371de6(this),this[_0x2e39bf(0x6b8)]=_0xee87e3(this),this[_0x2e39bf(0x825)]=_0x196721(this),this[_0x2e39bf(0x1ea)]=_0x2ffba7(this),this[_0x2e39bf(0x23a)]=_0x1ca5b8(this),this['plugins']=new _0x71351(this),this[_0x2e39bf(0x3af)]=new _0x2c8512(this),this['sync']=new _0x495aef(this),this[_0x2e39bf(0x13d)]=new _0x22c1e1(this),this[_0x2e39bf(0x792)]=new _0x3b0284(this,null),this[_0x2e39bf(0x32d)]=new _0x1f0b42(this),this[_0x2e39bf(0x37a)]=_0x83184d&&_0x83184d[_0x2e39bf(0x37a)]===![]?null:_0x5c68e2(_0x2e39bf(0x37a)),this['api']=_0x5c68e2('api'),this[_0x2e39bf(0x18b)]=new _0x4cb43f(this);}[_0x225529(0x24a)](_0x532048,_0x47334d,_0x52cc75,_0x5e6e27,_0x30d6ec=!![]){const _0x3f6a47=_0x225529;if(_0x30d6ec&&this[_0x3f6a47(0x61c)]&&this[_0x3f6a47(0x61c)]['queue'][_0x3f6a47(0x192)])this[_0x3f6a47(0x61c)]['commit']();try{return this['_native'][_0x3f6a47(0x245)](_0x532048,_0x47334d,_0x52cc75,_0x5e6e27);}catch(_0x4a4a9f){throw _0x996777(_0x4a4a9f);}finally{if(_0x30d6ec)this[_0x3f6a47(0x176)][_0x3f6a47(0x42a)]();}}[_0x225529(0x799)](_0x1635ab,_0x25e50b,_0x517af8,_0x511b06){const _0x24dc6b=_0x225529;let _0x45bf4a;try{_0x45bf4a=this[_0x24dc6b(0x38a)]['callPacked'](_0x1635ab,_0x25e50b,_0x517af8,_0x511b06);}catch(_0x113faa){throw _0x996777(_0x113faa);}return _0x45bf4a instanceof Uint8Array?_0x7f91a2(_0x45bf4a):_0x45bf4a[0x0];}['_readBuf'](_0x1e46d2){const _0x2b5936=_0x225529;let _0x18f2e0=this[_0x2b5936(0x1c6)];if(_0x18f2e0&&_0x1e46d2<=_0x18f2e0[_0x2b5936(0x192)])return _0x18f2e0;let _0x27bfb1=_0x18f2e0?_0x18f2e0[_0x2b5936(0x192)]:_0x360dfc;while(_0x27bfb1<_0x1e46d2)_0x27bfb1*=0x2;if(_0x27bfb1>_0xd222cf)return _0x18f2e0;return _0x18f2e0=this[_0x2b5936(0x1c6)]=Buffer[_0x2b5936(0x623)](_0x27bfb1),this[_0x2b5936(0x38a)][_0x2b5936(0x4fe)](_0x18f2e0),_0x18f2e0;}[_0x225529(0x666)](_0x11aac9,_0x31a7d3,_0x36965c){const _0x1f9b2c=_0x225529;if(!this['_rbuf'])this[_0x1f9b2c(0x4a4)](0x0);const _0x5d8ddf=this[_0x1f9b2c(0x38a)][_0x1f9b2c(0x38e)](_0x11aac9,_0x31a7d3,_0x36965c);if(typeof _0x5d8ddf===_0x1f9b2c(0x859))return _0x56399f(this[_0x1f9b2c(0x1c6)],_0x5d8ddf);if(_0x5d8ddf===undefined||_0x5d8ddf===null)return _0x5d8ddf;return this[_0x1f9b2c(0x4a4)](_0x5d8ddf['length']),_0x56399f(_0x5d8ddf);}[_0x225529(0x596)](_0x2b1a74,_0x5e639e,_0x3a47c9){const _0x3997fa=_0x225529;let _0xc78bbf=this[_0x3997fa(0x54e)];if(!_0xc78bbf){_0xc78bbf=this['_kbuf']=Buffer['allocUnsafeSlow'](_0x3f46f1),this['_native'][_0x3997fa(0x228)](_0xc78bbf),this[_0x3997fa(0x719)]=new Map();if(!this[_0x3997fa(0x1c6)])this[_0x3997fa(0x4a4)](0x0);}const _0x393ca6=_0x4eefe8(_0x3a47c9,_0xc78bbf);if(_0x393ca6<0x0)return _0x4a2e97;let _0x52917a=this[_0x3997fa(0x719)][_0x3997fa(0x6ce)](_0x2b1a74);if(_0x52917a===undefined)this[_0x3997fa(0x719)][_0x3997fa(0x7a0)](_0x2b1a74,_0x52917a=new Map());let _0x4da6e5=_0x52917a['get'](_0x5e639e);if(_0x4da6e5===undefined)_0x52917a[_0x3997fa(0x7a0)](_0x5e639e,_0x4da6e5=this[_0x3997fa(0x38a)][_0x3997fa(0x82e)](_0x2b1a74,_0x5e639e));if(_0x4da6e5<0x0)return _0x4a2e97;const _0x183840=this[_0x3997fa(0x38a)][_0x3997fa(0x1b1)](_0x4da6e5,_0x393ca6);if(typeof _0x183840===_0x3997fa(0x859))return _0x56399f(this[_0x3997fa(0x1c6)],_0x183840);if(_0x183840===undefined||_0x183840===null)return _0x183840;return this['_readBuf'](_0x183840['length']),_0x56399f(_0x183840);}['_callRows'](_0x17d528,_0x1d2b82,_0x493f3d){const _0x1ee4be=_0x225529;if(!this[_0x1ee4be(0x1c6)])this['_readBuf'](0x0);let _0x1041cf;try{_0x1041cf=this[_0x1ee4be(0x38a)]['callRows'](_0x17d528,_0x1d2b82,_0x493f3d);}catch(_0x437f85){throw _0x996777(_0x437f85);}const _0x92d12c=_0x1d2b82===_0x1ee4be(0x436),_0x243968=_0x92d12c?_0x493f3d[0x1]:_0x1d2b82;let _0x4b9cd4=this[_0x1ee4be(0x1c6)],_0x2995fb=_0x1041cf;if(_0x1041cf instanceof Uint8Array)this[_0x1ee4be(0x4a4)](_0x1041cf['length']),_0x4b9cd4=_0x1041cf,_0x2995fb=_0x1041cf[_0x1ee4be(0x192)];else{if(typeof _0x1041cf!=='number')return _0x1041cf[0x0];}if(_0x243968===_0x1ee4be(0x462))return _0x55a549(_0x4b9cd4,_0x2995fb,_0x92d12c);if(_0x243968==='getMany')return _0x56399f(_0x4b9cd4,_0x2995fb);return _0x5b437f(_0x56399f(_0x4b9cd4,_0x2995fb),_0x92d12c);}['_callMacro'](_0x2a8b23,_0x179224,_0x37158e,_0x1acd3f,_0x230693=!![],_0x128a07=!![]){const _0x111cd0=_0x225529,_0xb5695e=()=>this['_macro'](()=>this[_0x111cd0(0x24a)](_0x2a8b23,_0x179224,_0x37158e,_0x1acd3f,_0x230693));if(!_0x128a07)return _0xb5695e();return this['_retryPending'](_0xb5695e);}[_0x225529(0x7ef)](_0x240a90){return _0x240a90()['catch'](async _0xfe2eb0=>{const _0x28d7b7=_0x36a2;if(!_0x135527(_0xfe2eb0))throw _0xfe2eb0;const _0x47f99a=Date[_0x28d7b7(0x76a)]()+_0x53120a;let _0x2704c2=0x1;while(_0x135527(_0xfe2eb0)&&Date[_0x28d7b7(0x76a)]()<_0x47f99a){await new Promise(_0x8b5392=>setTimeout(_0x8b5392,_0x2704c2)),_0x2704c2=Math['min'](_0x2704c2*0x2,0x14);try{return await _0x240a90();}catch(_0x2f0be7){_0xfe2eb0=_0x2f0be7;}}throw _0xfe2eb0;});}[_0x225529(0x369)](_0xe1ab46){const _0x21bf64=_0x225529;if(_0x59662c[_0x21bf64(0x211)]())return Promise[_0x21bf64(0x794)](_0xe1ab46);return new Promise(_0x185e06=>setImmediate(()=>_0x185e06(_0xe1ab46)));}[_0x225529(0x664)](_0x59c131){const _0x4fd63c=_0x225529;if(_0x59662c[_0x4fd63c(0x211)]())return Promise[_0x4fd63c(0x794)](_0x59c131);return this[_0x4fd63c(0x409)]()[_0x4fd63c(0x600)](()=>_0x59c131);}[_0x225529(0x409)](){return new Promise(_0x11ba89=>setImmediate(()=>{const _0x43a934=_0x36a2;let _0x275898;try{_0x275898=this[_0x43a934(0x38a)][_0x43a934(0x1c8)]();}catch{return _0x11ba89();}_0x24e126[_0x43a934(0x7d7)](_0x275898,_0x11ba89);}));}['_macro'](_0x22c291){return new Promise((_0x3fce86,_0x3181b7)=>setImmediate(()=>{try{_0x3fce86(_0x22c291());}catch(_0x2f8dfa){_0x3181b7(_0x2f8dfa);}}));}[_0x225529(0x701)](_0xa44b31,_0x1cff11,_0x5f00e8){return _0x165880(_0xa44b31,_0x1cff11,_0x5f00e8);}['_subscribeEvent'](_0x513580){const _0x196a0a=_0x225529;if(typeof _0x513580!==_0x196a0a(0x84a)||this['_subscribed'][_0x196a0a(0x69d)](_0x513580)||_0x513580===_0x196a0a(0x1e7)||_0x513580===_0x196a0a(0x6c1))return;this[_0x196a0a(0x1fb)]['add'](_0x513580);try{this[_0x196a0a(0x38a)][_0x196a0a(0x245)]('events',null,_0x196a0a(0x55d),[this[_0x196a0a(0x4b1)],_0x513580]);}catch{}}[_0x225529(0x626)](_0x4b37d7,_0x58cab4){this['events']['emit'](_0x4b37d7,_0x58cab4);}async[_0x225529(0x629)](){const _0x2829e1=_0x225529,_0x43b7ae=this[_0x2829e1(0x15d)];if(_0x43b7ae[_0x2829e1(0x699)])this[_0x2829e1(0x473)](null,await _0x43b7ae[_0x2829e1(0x699)](null),!![]);for(const [_0x5bae2e,_0x43e4f0]of _0x43b7ae[_0x2829e1(0x497)])this[_0x2829e1(0x473)](_0x5bae2e,typeof _0x43e4f0===_0x2829e1(0x3b3)?await _0x43e4f0(_0x5bae2e):_0x43e4f0,typeof _0x43e4f0==='function');(_0x43b7ae[_0x2829e1(0x699)]||[..._0x43b7ae[_0x2829e1(0x497)][_0x2829e1(0x514)]()][_0x2829e1(0x454)](_0x1ba349=>typeof _0x1ba349==='function'))&&!this[_0x2829e1(0x289)]&&(this[_0x2829e1(0x289)]=_0x456f97=>{const _0x38a62d=_0x2829e1,_0x34b7bb=_0x456f97&&_0x456f97[_0x38a62d(0x784)]!=null?_0x456f97[_0x38a62d(0x784)]:null,_0x5a2a9b=_0x34b7bb==null?_0x43b7ae[_0x38a62d(0x699)]:_0x43b7ae[_0x38a62d(0x497)][_0x38a62d(0x6ce)](_0x34b7bb);if(typeof _0x5a2a9b!=='function')return;Promise[_0x38a62d(0x794)]()[_0x38a62d(0x600)](()=>_0x5a2a9b(_0x34b7bb))[_0x38a62d(0x600)](_0x46da0b=>this[_0x38a62d(0x473)](_0x34b7bb,_0x46da0b,!![]))[_0x38a62d(0x512)](_0x5ede6a=>this['log'][_0x38a62d(0x5b4)](_0x38a62d(0x565)+(_0x5ede6a&&_0x5ede6a[_0x38a62d(0x367)]),{'env':_0x34b7bb}));},this[_0x2829e1(0x5d6)]['on'](_0x2829e1(0x167),this[_0x2829e1(0x289)]));}[_0x225529(0x473)](_0x583adf,_0x260a0a,_0x12f069){const _0x37f201=_0x225529;if(_0x260a0a==null)throw new _0x3557d7(_0x37f201(0x5cb)+(_0x583adf?_0x37f201(0x5b9)+_0x583adf+'\x22':'')+_0x37f201(0x491),_0x37f201(0x1c9));this[_0x37f201(0x38a)][_0x37f201(0x245)]('db',null,_0x37f201(0x833),[_0x583adf,_0x260a0a,!!_0x12f069]);}async[_0x225529(0x3b9)](_0x42d2ae){const _0x55bb23=_0x225529;this['_assertOpen']();const {env:env=null,to:_0x56d0bf}=_0x53bf1c(_0x42d2ae),_0x4d173a=typeof _0x56d0bf===_0x55bb23(0x3b3),_0x4eb844=_0x4d173a?await _0x56d0bf(env):_0x56d0bf;if(_0x4eb844==null)throw _0x2bbe5e('changeEncryptionKey:\x20to',_0x55bb23(0x4c7),_0x4eb844);const _0x2661b9=this[_0x55bb23(0x24a)]('db',null,'changeEncryptionKey',[env,_0x4eb844,_0x4d173a]);if(_0x4d173a){if(env==null)this['_keyFns'][_0x55bb23(0x699)]=_0x56d0bf;else this[_0x55bb23(0x15d)]['envs'][_0x55bb23(0x7a0)](env,_0x56d0bf);}return _0x2661b9;}async['reencrypt'](_0xf7b619){const _0x3ae817=_0x225529;this[_0x3ae817(0x23b)]();const _0x991fc6=_0x53bf1c(_0xf7b619);if(!_0x991fc6[_0x3ae817(0x784)])throw _0x2bbe5e(_0x3ae817(0x83b),'an\x20environment\x20name',_0x991fc6['env']);let _0x4e0d1f=_0x991fc6['to'];const _0x6d046c=typeof _0x4e0d1f===_0x3ae817(0x3b3);if(_0x6d046c)_0x4e0d1f=await _0x991fc6['to'](_0x991fc6[_0x3ae817(0x784)]);const _0x59699b=await this[_0x3ae817(0x45c)](()=>this[_0x3ae817(0x24a)]('db',null,_0x3ae817(0x3b0),[_0x991fc6[_0x3ae817(0x784)],'to'in _0x991fc6?_0x4e0d1f:undefined,_0x6d046c]));if(_0x6d046c)this['_keyFns']['envs'][_0x3ae817(0x7a0)](_0x991fc6[_0x3ae817(0x784)],_0x991fc6['to']);return _0x59699b;}async['open'](){const _0x380a86=_0x225529;if(this[_0x380a86(0x76c)]===_0x3fda88[_0x380a86(0x7c9)])return;if(this[_0x380a86(0x76c)]!==_0x3fda88[_0x380a86(0x392)])throw new _0x3557d7(_0x380a86(0x873),_0x380a86(0x1be),{'state':this['state']});this[_0x380a86(0x76c)]=_0x3fda88[_0x380a86(0x178)],this[_0x380a86(0x662)]=[];try{try{await this['_resolveKeys'](),await this[_0x380a86(0x45c)](()=>this['_native'][_0x380a86(0x223)]());}catch(_0x26d4ac){throw _0x996777(_0x26d4ac);}}catch(_0x2e3805){this[_0x380a86(0x76c)]=_0x3fda88[_0x380a86(0x7b6)],this['_bootLog']=null,this[_0x380a86(0x54c)]();throw _0x2e3805;}this['_isOpen']=!![],this['state']=_0x3fda88['STARTED'];try{this[_0x380a86(0x24a)]('db',null,_0x380a86(0x2a8),[this['plugins'][_0x380a86(0x37f)][_0x380a86(0x4e8)](_0x1682d8=>_0x1682d8[_0x380a86(0x455)]?.[_0x380a86(0x425)])[_0x380a86(0x440)](Boolean)],![]),await this[_0x380a86(0x2b1)][_0x380a86(0x4df)]();}catch(_0x5f179a){this[_0x380a86(0x76c)]=_0x3fda88[_0x380a86(0x351)];try{this[_0x380a86(0x38a)][_0x380a86(0x182)]();}catch{}this[_0x380a86(0x76c)]=_0x3fda88[_0x380a86(0x7b6)],this[_0x380a86(0x67d)]=![],this[_0x380a86(0x54c)]();throw _0x5f179a;}for(const _0x4113f8 of this['_call']('db',null,_0x380a86(0x43b),[],![]))if(!_0x4113f8[_0x380a86(0x48b)]('~'))this[_0x380a86(0x1c2)](_0x4113f8);try{if(this['_call']('db',null,_0x380a86(0x15a),[_0x380a86(0x1f1)],![])){this[_0x380a86(0x494)]=this[_0x380a86(0x1c2)]('~log');const _0x6a16e2=new Set(this[_0x380a86(0x71e)]['_sinks']);this['_detachLogSink']=this[_0x380a86(0x71e)][_0x380a86(0x257)](this[_0x380a86(0x494)],this['id']);const _0x2a6b0d=[...this[_0x380a86(0x71e)][_0x380a86(0x309)]][_0x380a86(0x472)](_0x2ec800=>!_0x6a16e2[_0x380a86(0x69d)](_0x2ec800)),_0x204720=this[_0x380a86(0x24a)]('db',null,_0x380a86(0x2f7),[],![]);for(const _0x2affb7 of(this['_bootLog']??[])[_0x380a86(0x6fe)](_0x204720))_0x2a6b0d?.(_0x2affb7);}}catch{}this[_0x380a86(0x662)]=null,this['_native'][_0x380a86(0x74c)](()=>this['_pumper'][_0x380a86(0x42a)]()),this[_0x380a86(0x176)]['start']();}get[_0x225529(0x42d)](){const _0x392208=()=>{const _0x14da95=_0x36a2;if(!this[_0x14da95(0x67d)])return![];for(const _0x319e17 of this[_0x14da95(0x24a)]('db',null,_0x14da95(0x43b),[],![])){if(!_0x319e17[_0x14da95(0x48b)]('~')&&this['_call'](_0x14da95(0x555),_0x319e17,_0x14da95(0x276),[],![]))return!![];}return![];};return((async()=>{const _0xf78929=_0x36a2;while(_0x392208())await this['_pumper'][_0xf78929(0x7f9)](0xfa);})());}async['bootRuntimeDeclarations'](){const _0x40a3a9=_0x225529;return this[_0x40a3a9(0x67a)]('db',null,_0x40a3a9(0x5f5),[]);}async[_0x225529(0x182)](){const _0x41ff8f=_0x225529;if(this['state']===_0x3fda88['STOPPED'])return;if(this[_0x41ff8f(0x76c)]!==_0x3fda88['STARTED'])throw new _0x3557d7(_0x41ff8f(0x63d),_0x41ff8f(0x1be),{'state':this[_0x41ff8f(0x76c)]});this[_0x41ff8f(0x76c)]=_0x3fda88['STOPPING'],this['_isOpen']=![];let _0x137bf0=null;if(this[_0x41ff8f(0x3af)][_0x41ff8f(0x85b)]['length'])try{await this[_0x41ff8f(0x3af)][_0x41ff8f(0x182)]();}catch(_0x436438){_0x137bf0=_0x436438;}if(this['__adminRelay']){try{this[_0x41ff8f(0x27e)][_0x41ff8f(0x81a)](),this[_0x41ff8f(0x27e)]['detach']();}catch{}this[_0x41ff8f(0x27e)]=null;}try{this['_changefeed']?.['stop']?.();}catch{}try{await this[_0x41ff8f(0x2b1)][_0x41ff8f(0x32a)]();}catch(_0x360f45){_0x137bf0=_0x360f45;}for(const _0xb6bff0 of[...Map['prototype'][_0x41ff8f(0x514)][_0x41ff8f(0x245)](this['_envs'])]){try{await _0xb6bff0['processor'][_0x41ff8f(0x570)]();}catch{}try{await _0xb6bff0[_0x41ff8f(0x617)][_0x41ff8f(0x32a)]();}catch{}}for(const _0x3c4a79 of[()=>this['sync'][_0x41ff8f(0x32a)](),()=>this['embeddings'][_0x41ff8f(0x32a)](),()=>this[_0x41ff8f(0x6ef)]&&this['fts'][_0x41ff8f(0x32a)]?.()]){try{await _0x3c4a79();}catch{}}const _0x575c35=this['options'][_0x41ff8f(0x5c9)]??0x7530,_0xeaf6ab=[];for(const _0x52402 of[...Map[_0x41ff8f(0x771)][_0x41ff8f(0x514)][_0x41ff8f(0x245)](this['_envs'])]){if(_0x52402[_0x41ff8f(0x72c)]?.[_0x41ff8f(0x80a)]?.['size']>0x0)_0xeaf6ab[_0x41ff8f(0x46d)](_0x52402[_0x41ff8f(0x72c)]['stopAll'](_0x575c35));}if(_0xeaf6ab[_0x41ff8f(0x192)]>0x0)await Promise[_0x41ff8f(0x373)](_0xeaf6ab);try{this[_0x41ff8f(0x4d8)]?.();}catch{}this[_0x41ff8f(0x4d8)]=null;try{await this[_0x41ff8f(0x61c)][_0x41ff8f(0x7da)]();}catch{}this[_0x41ff8f(0x176)][_0x41ff8f(0x32a)]();try{await this['_macro'](()=>this[_0x41ff8f(0x38a)][_0x41ff8f(0x182)]());}catch(_0x29d537){_0x137bf0=_0x137bf0||_0x996777(_0x29d537);}this[_0x41ff8f(0x76c)]=_0x3fda88['STOPPED'],this[_0x41ff8f(0x54c)](),Map[_0x41ff8f(0x771)][_0x41ff8f(0x530)][_0x41ff8f(0x245)](this[_0x41ff8f(0x3e2)]);if(_0x137bf0)throw _0x137bf0;}[_0x225529(0x54c)](){const _0x335fd4=_0x225529;this[_0x335fd4(0x176)][_0x335fd4(0x32a)]();try{this[_0x335fd4(0x38a)][_0x335fd4(0x74c)](null);}catch{}try{this[_0x335fd4(0x38a)][_0x335fd4(0x7fb)]();}catch{}this['_rbuf']=null,this[_0x335fd4(0x54e)]=null,this[_0x335fd4(0x719)]=null,_0x59662c[_0x335fd4(0x2c2)](this[_0x335fd4(0x4b1)]),_0x59662c[_0x335fd4(0x578)](this),_0x5678fd[_0x335fd4(0x243)](this[_0x335fd4(0x79b)]);if(_0x59662c[_0x335fd4(0x6cc)](this)){const _0x4a72ee=[..._0x5678fd[_0x335fd4(0x514)]()]['pop']();if(_0x4a72ee)_0x59662c[_0x335fd4(0x5bf)](()=>_0x4a72ee[_0x335fd4(0x176)]['wake'](),_0x4a72ee);else _0x59662c[_0x335fd4(0x5bf)](()=>{},null);}}get['id'](){const _0x1b7e88=_0x225529;return this[_0x1b7e88(0x24a)]('db',null,'id',[],![]);}['_advanceHlcOnRecv'](_0x48e36b){const _0x4b6e3c=_0x225529;return this[_0x4b6e3c(0x784)](_0x4b6e3c(0x634))['_advanceHlcOnRecv'](_0x48e36b);}get[_0x225529(0x75a)](){const _0x582672=_0x225529;return this[_0x582672(0x200)][_0x582672(0x6ce)](_0x582672(0x5a9));}get['_nodePrivateKey'](){const _0x95f942=_0x225529;return this[_0x95f942(0x2a2)][_0x95f942(0x134)];}get[_0x225529(0x34a)](){const _0x5d4861=_0x225529;return this[_0x5d4861(0x2a2)][_0x5d4861(0x34a)];}get[_0x225529(0x67b)](){const _0xa84fa6=_0x225529;if(!this[_0xa84fa6(0x67d)]||!this[_0xa84fa6(0x24a)]('db',null,_0xa84fa6(0x463),[],![]))return undefined;if(!this['_subsV2Obj']){const _0x6835b2=requireOkdbSubscriptionsStore(),_0x23f018=new _0x6835b2(this,this['options']&&this[_0xa84fa6(0x4c0)]['subscriptions']);_0x23f018[_0xa84fa6(0x1b4)]=this['env'](_0xa84fa6(0x2d6));const {compileFilter:_0x1b769a}=requireOkdbQueryFilter(),_0x3797d9=(_0x505209,_0x1ece1a)=>{if(_0x505209==null)return![];try{return _0x1b769a(_0x505209)(_0x1ece1a);}catch{return![];}};this[_0xa84fa6(0x2b3)]={'store':_0x23f018,'router':{'_matches':_0x3797d9}};}return this['_subsV2Obj'];}get[_0x225529(0x5c2)](){return this['role'];}get[_0x225529(0x594)](){const _0x128732=_0x225529;return this[_0x128732(0x24a)]('db',null,_0x128732(0x594),[],![]);}get[_0x225529(0x44e)](){const _0x2b7d59=_0x225529;return{...this[_0x2b7d59(0x24a)]('db',null,_0x2b7d59(0x44e),[],![])};}get[_0x225529(0x779)](){return require$$29['version'];}get[_0x225529(0x3fe)](){const _0x4a60d8=_0x225529;return this[_0x4a60d8(0x24a)]('db',null,'quarantined',[],![]);}get[_0x225529(0x758)](){const _0x2f8f70=_0x225529;return this[_0x2f8f70(0x24a)]('db',null,_0x2f8f70(0x758),[],![]);}[_0x225529(0x3e5)](){const _0x1949cd=_0x225529;return this['_call']('db',null,_0x1949cd(0x5b5),[],![]);}[_0x225529(0x510)](){const _0x1c2de7=_0x225529;return this[_0x1c2de7(0x24a)]('db',null,_0x1c2de7(0x510),[],![]);}async[_0x225529(0x6db)](_0x1e7e21){const _0x5422e4=_0x225529;this[_0x5422e4(0x23b)](),this[_0x5422e4(0x24a)]('db',null,'setProcessingConfig',[_0x1e7e21],![]);}['pressure'](){const _0x34231e=_0x225529,_0xf1e969=Date['now']();if(this['_pressure']&&_0xf1e969-this['_pressure']['at']<0xfa)return this['_pressure'][_0x34231e(0x821)];const _0x132677=this[_0x34231e(0x24a)]('db',null,_0x34231e(0x7c5),[],![]);return this['_pressure']={'at':_0xf1e969,'value':_0x132677},_0x132677;}['_assertOpen'](){const _0x424217=_0x225529;if(!this[_0x424217(0x67d)])throw new _0x3557d7('Database\x20not\x20started',_0x424217(0x1be),{'state':this[_0x424217(0x76c)]});}get['bus'](){const _0x829b93=_0x225529;if(this[_0x829b93(0x76c)]===_0x3fda88[_0x829b93(0x7b6)]||!this[_0x829b93(0x67d)])return null;if(this[_0x829b93(0x24a)]('db',null,_0x829b93(0x677),[],![])==null)return null;if(!this[_0x829b93(0x1d5)]){const _0x261cce=this;this['_busFacade']={get 'state'(){const _0x1abc5d=_0x829b93;return _0x261cce[_0x1abc5d(0x24a)]('db',null,'busState',[],![]);},get 'magic'(){const _0xbd0650=_0x829b93;return Buffer[_0xbd0650(0x3ed)]('okdb-'+_0x261cce['id']);},get 'isRunning'(){const _0x28a3a2=_0x829b93;return _0x261cce[_0x28a3a2(0x24a)]('db',null,_0x28a3a2(0x677),[],![])===_0x28a3a2(0x344);},'emit'(_0x3fa7d6,_0x157326=''){const _0x14386e=_0x829b93;_0x261cce[_0x14386e(0x24a)]('db',null,_0x14386e(0x500),[_0x3fa7d6,String(_0x157326)],![]);}};}return this[_0x829b93(0x1d5)];}[_0x225529(0x3e9)](_0x528a5a,_0x3754b2){const _0x2c0f6f=_0x225529;this[_0x2c0f6f(0x4f5)]?.['emit']('bus:proc',JSON[_0x2c0f6f(0x84b)]({'kind':'reconcile','scope':_0x528a5a,'key':_0x3754b2}));}get[_0x225529(0x729)](){const _0x54b4f0=_0x225529;return this[_0x54b4f0(0x68f)]||(this[_0x54b4f0(0x68f)]=new(requireLock())['NativeLock'](this,_0x54b4f0(0x5f7),_0x54b4f0(0x7d4)));}get[_0x225529(0x200)](){const _0x3c75a7=_0x225529;return this[_0x3c75a7(0x7b5)]?this[_0x3c75a7(0x7b5)]['db']:undefined;}get[_0x225529(0x432)](){const _0x1c49c8=_0x225529,_0x184069=this[_0x1c49c8(0x7b5)]?.[_0x1c49c8(0x26e)];if(!_0x184069)return null;const _0xa7b8d7=_0x184069[_0x1c49c8(0x6ec)]()[_0x1c49c8(0x472)](_0x17fa42=>_0x17fa42[_0x1c49c8(0x360)]?.[_0x1c49c8(0x425)]==='system:env-sync');return _0xa7b8d7?_0x184069[_0x1c49c8(0x7ba)](_0xa7b8d7['id'],_0xa7b8d7['cursorKey']):null;}get['_systemEnv'](){const _0x3229aa=_0x225529;return this[_0x3229aa(0x67d)]?this[_0x3229aa(0x3e2)]['get'](_0x3229aa(0x5f7)):undefined;}['_ensureEnv'](_0x3fdd92){const _0x376770=_0x225529;let _0x517c34=Map[_0x376770(0x771)][_0x376770(0x6ce)][_0x376770(0x245)](this[_0x376770(0x3e2)],_0x3fdd92);if(!_0x517c34){_0x517c34=new _0x5924c6(this,_0x3fdd92),Map[_0x376770(0x771)][_0x376770(0x7a0)]['call'](this[_0x376770(0x3e2)],_0x3fdd92,_0x517c34);if(_0x3fdd92==='default')this[_0x376770(0x1a6)]=_0x517c34;}return _0x517c34;}[_0x225529(0x784)](_0x299ef2='default'){const _0x2615d8=_0x225529,_0x13b77b=this[_0x2615d8(0x3e2)][_0x2615d8(0x6ce)](_0x299ef2);if(_0x13b77b)return _0x13b77b;if(this[_0x2615d8(0x67d)]&&this[_0x2615d8(0x24a)]('db',null,_0x2615d8(0x15a),[_0x299ef2],![]))return this[_0x2615d8(0x1c2)](_0x299ef2);throw new _0x3557d7(_0x2615d8(0x466)+_0x299ef2+_0x2615d8(0x5eb),_0x2615d8(0x61a));}get[_0x225529(0x634)](){return this['env']('default');}get[_0x225529(0x2aa)](){const _0x233870=_0x225529;return this[_0x233870(0x3e2)][_0x233870(0x6ce)]('default')??this[_0x233870(0x1a6)];}get[_0x225529(0x669)](){const _0x292c30=_0x225529;return this[_0x292c30(0x2aa)][_0x292c30(0x669)];}get[_0x225529(0x72c)](){const _0x13511d=_0x225529;return this[_0x13511d(0x2aa)][_0x13511d(0x72c)];}[_0x225529(0x6b1)](_0x51568c){const _0x7b58e9=_0x225529;if(!this[_0x7b58e9(0x67d)])return null;return this['_call']('db',null,'instanceTimerArmed',[_0x51568c],![])?{'ref'(){},'unref'(){}}:null;}get[_0x225529(0x5e9)](){const _0x4e0a12=_0x225529;return this[_0x4e0a12(0x6b1)](_0x4e0a12(0x633));}[_0x225529(0x319)](){const _0x312604=_0x225529;return this[_0x312604(0x24a)]('db',null,'reconcileDesired',[],!![]);}get[_0x225529(0x140)](){const _0xd060d3=_0x225529;return this[_0xd060d3(0x6b1)]('license');}get['_writerWatchdogInterval'](){const _0x492670=_0x225529;return this['_timerHandle'](_0x492670(0x1a4));}get[_0x225529(0x3c3)](){const _0x9f2f30=_0x225529;return this[_0x9f2f30(0x784)](_0x9f2f30(0x634))[_0x9f2f30(0x3c3)];}get[_0x225529(0x74f)](){const _0x37420c=_0x225529;throw new _0x3557d7(_0x37420c(0x48c),'WORKERS_REMOVED');}get[_0x225529(0x26e)](){const _0x4a20ca=_0x225529;return this['_defaultEnv'][_0x4a20ca(0x26e)];}get[_0x225529(0x555)](){const _0x2ec4a5=_0x225529;return this['_defaultEnv'][_0x2ec4a5(0x555)];}async['createEnvironment'](_0x14ed06,_0x367bb5={}){const _0x60f8f=_0x225529;this['_assertOpen']();if(_0x367bb5&&typeof _0x367bb5[_0x60f8f(0x4ee)]===_0x60f8f(0x3b3)){const _0xec6aa5=_0x367bb5['encryptionKey'];this['_setKey'](_0x14ed06,await _0xec6aa5(_0x14ed06),!![]),this[_0x60f8f(0x15d)]['envs'][_0x60f8f(0x7a0)](_0x14ed06,_0xec6aa5),_0x367bb5={..._0x367bb5,'encryptionKey':!![]};}return this['_call']('db',null,_0x60f8f(0x869),[_0x14ed06,_0x367bb5]),this[_0x60f8f(0x1c2)](_0x14ed06);}async[_0x225529(0x2af)](_0x51a868){const _0x578f07=_0x225529;if(!this['_isOpen'])throw new _0x3557d7(_0x578f07(0x6d1)+_0x51a868+_0x578f07(0x1b5),_0x578f07(0x1be));return this[_0x578f07(0x24a)]('db',null,'openEnv',[_0x51a868]),this[_0x578f07(0x1c2)](_0x51a868);}get[_0x225529(0x4a8)](){const _0x2acbe2=_0x225529;if(!this[_0x2acbe2(0x27e)]&&this[_0x2acbe2(0x67d)]){const _0x54067a=requireOkdbRelay(),_0x3bcdad=new _0x54067a(this,this[_0x2acbe2(0x4c0)]?.[_0x2acbe2(0x37a)]?.[_0x2acbe2(0x584)]??{});_0x3bcdad[_0x2acbe2(0x5b2)](),_0x3bcdad[_0x2acbe2(0x12e)]=!![],this[_0x2acbe2(0x27e)]=_0x3bcdad;}return this[_0x2acbe2(0x27e)]??null;}set[_0x225529(0x4a8)](_0x115e23){const _0x3af910=_0x225529;this[_0x3af910(0x27e)]=_0x115e23;}get[_0x225529(0x4f9)](){const _0x376545=_0x225529;let _0x34f45f=0x0;if(this[_0x376545(0x67d)])for(const [_0x14f151]of Map[_0x376545(0x771)][_0x376545(0x45b)][_0x376545(0x245)](this[_0x376545(0x3e2)])){try{_0x34f45f+=this[_0x376545(0x24a)](_0x376545(0x171),_0x14f151,_0x376545(0x616),[],![])||0x0;}catch{}}return{'total':_0x34f45f,'maxObserved':_0x34f45f>0x0?0x1:0x0,'inFlight':0x0};}async[_0x225529(0x41c)](_0x1afcc1){const _0x413817=_0x225529,_0x3d7ff9=this[_0x413817(0x3e2)][_0x413817(0x6ce)](_0x1afcc1);if(_0x3d7ff9)return _0x3d7ff9;if(!this[_0x413817(0x24a)]('db',null,'hasEnv',[_0x1afcc1],![]))throw new Error(_0x413817(0x3ad)+_0x1afcc1+_0x413817(0x279));return this[_0x413817(0x2af)](_0x1afcc1);}async[_0x225529(0x40a)](_0x24437f){const _0x7d4cc8=_0x225529,_0x3259d9=this[_0x7d4cc8(0x24a)]('db',null,'closeEnvLocally',[_0x24437f]);return this['_envs'][_0x7d4cc8(0x243)](_0x24437f),_0x3259d9;}async['removeEnvironment'](_0x288b3e,_0xc1bf14={}){const _0x478f08=_0x225529;this[_0x478f08(0x23b)]();const _0x3329a7=this[_0x478f08(0x24a)]('db',null,_0x478f08(0x453),[_0x288b3e,_0xc1bf14]);return this[_0x478f08(0x3e2)][_0x478f08(0x243)](_0x288b3e),_0x3329a7;}static get[_0x225529(0x163)](){const _0x47a450=_0x225529;return _0x185869[_0x47a450(0x163)];}static get[_0x225529(0x636)](){return _0x185869['KNOWN_OPTIONS'];}static get['_OPTION_HINTS'](){return _0x185869['_OPTION_HINTS'];}static async['clone'](_0x239815,_0x1e65f9){const _0x10527f=_0x225529;return _0x165880('db',_0x10527f(0x3cb),[_0x239815,_0x1e65f9]);}static[_0x225529(0x296)](_0x57f09c){return _0x165880('db','reidentify',[_0x57f09c]);}static['registerBucketProjection'](_0x42edc6,_0x22df32){const _0x316500=_0x225529;_0x165880(_0x316500(0x555),_0x316500(0x7af),[_0x42edc6,_0x22df32]);}static[_0x225529(0x501)](_0xd6d9a,_0xf830ce){const _0x37d6a2=_0x225529;_0x165880(_0x37d6a2(0x555),_0x37d6a2(0x501),[_0xd6d9a,_0xf830ce]);}static[_0x225529(0x137)](){}[_0x225529(0x2f3)](_0x436cef,_0x2d931b){const _0x288620=_0x225529;return require$$16[_0x288620(0x2f8)](_0x436cef,_0x2d931b);}}_0x20abc6[_0x225529(0x680)]=_0x458029,Object['defineProperty'](_0x20abc6,'_unknownOptionsWarned',{'get'(){return _0x20abc6['__warned']||(_0x20abc6['__warned']=new Set());},'set'(_0x434551){const _0x24eaa5=_0x225529;_0x20abc6[_0x24eaa5(0x2fa)]=_0x434551;try{_0x165880('db','resetUnknownOptionsWarned',[]);}catch{}},'configurable':!![]});for(const _0x54c563 of[_0x225529(0x5d5),_0x225529(0x346),_0x225529(0x14f),_0x225529(0x1a2),'patch',_0x225529(0x569),'remove',_0x225529(0x6ce),'getMany',_0x225529(0x638),_0x225529(0x35a),_0x225529(0x38b),_0x225529(0x462),'getCount',_0x225529(0x1e2),'getIndex',_0x225529(0x120),_0x225529(0x4c2),'query',_0x225529(0x71f),'ftsQuery','registerType',_0x225529(0x4e9),_0x225529(0x51b),_0x225529(0x7a3),'hasType','dropType','registerIndex',_0x225529(0x6b5),'dropIndex',_0x225529(0x475),_0x225529(0x6b4),_0x225529(0x447),'getUniqueViolations',_0x225529(0x30e),_0x225529(0x5fe),_0x225529(0x863),_0x225529(0x5ed),_0x225529(0x235),'getTTL',_0x225529(0x449),'sweepExpiredTTL',_0x225529(0x7fd),'ttlStats',_0x225529(0x322),'getDefaultTTL',_0x225529(0x2d8),_0x225529(0x21b),_0x225529(0x85c),_0x225529(0x76a)]){_0x20abc6[_0x225529(0x771)][_0x54c563]=function(..._0x48d983){const _0x45fbec=_0x225529,_0x177681=this[_0x45fbec(0x784)](_0x45fbec(0x634));return _0x177681[_0x54c563](..._0x48d983);};}function _0x1ca5b8(_0x14ee67){const _0x3b1c1b=_0x225529,_0x36a230=_0xd2db39=>()=>{const _0x2bbf42=_0x36a2;throw new Error(_0x2bbf42(0x773)+_0xd2db39+_0x2bbf42(0x618));};return{'process':_0x36a230(_0x3b1c1b(0x509)),'processRest':_0x36a230(_0x3b1c1b(0x683)),'processEverything':_0x36a230(_0x3b1c1b(0x21e)),async 'start'(){const _0x1989bd=_0x3b1c1b;return _0x14ee67[_0x1989bd(0x24a)]('db',null,_0x1989bd(0x6e4),[]);},async 'stop'(){const _0x3c8a3c=_0x3b1c1b;return _0x14ee67[_0x3c8a3c(0x24a)]('db',null,_0x3c8a3c(0x3a9),[]);},'status'(){return _0x14ee67['_call']('db',null,'processorsStatus',[],![]);},get 'participating'(){const _0x325cc4=_0x3b1c1b;return _0x14ee67[_0x325cc4(0x24a)]('db',null,_0x325cc4(0x879),[],![]);},get '_participate'(){const _0xcd5d0c=_0x3b1c1b;return _0x14ee67[_0xcd5d0c(0x24a)]('db',null,_0xcd5d0c(0x879),[],![]);}};}function _0x165880(_0x25e3b3,_0x40aab9,_0x25fe22){const _0x31f843=_0x225529;_0x1e8ed7();try{return _0x176e58()[_0x31f843(0x513)](_0x25e3b3,_0x40aab9,_0x25fe22);}catch(_0x379036){throw _0x996777(_0x379036);}}_0x5cf16a['exports']=_0x20abc6,_0x5cf16a[_0x225529(0x613)][_0x225529(0x4a2)]=_0x165880,_0x5cf16a[_0x225529(0x613)][_0x225529(0x39d)]=_0x20abc6,_0x5cf16a[_0x225529(0x613)][_0x225529(0x680)]=_0x458029,_0x5cf16a[_0x225529(0x613)][_0x225529(0x634)]=_0x20abc6,Object[_0x225529(0x2ad)](_0x5cf16a[_0x225529(0x613)],_0x225529(0x3f8),{'get':()=>require$$1$1['loadedPath']?.()??null,'enumerable':![],'configurable':!![]});}(lib),lib[_0xfaecd0(0x613)];}var libExports=requireLib(),index=getDefaultExportFromCjs(libExports);module[_0x2d5353(0x613)]=index;