@kedem/okdb 3.1.2 → 3.1.4

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 _0x2dfd83=_0x5aff;(function(_0x27a1f2,_0x6034cd){const _0x81813b=_0x5aff,_0x5e5818=_0x27a1f2();while(!![]){try{const _0x1aa111=-parseInt(_0x81813b(0x210))/0x1+-parseInt(_0x81813b(0x1f8))/0x2+-parseInt(_0x81813b(0x556))/0x3*(parseInt(_0x81813b(0x35f))/0x4)+parseInt(_0x81813b(0x3a5))/0x5*(-parseInt(_0x81813b(0x5c5))/0x6)+-parseInt(_0x81813b(0x5b2))/0x7+parseInt(_0x81813b(0x795))/0x8+parseInt(_0x81813b(0x72b))/0x9*(parseInt(_0x81813b(0x252))/0xa);if(_0x1aa111===_0x6034cd)break;else _0x5e5818['push'](_0x5e5818['shift']());}catch(_0x36590c){_0x5e5818['push'](_0x5e5818['shift']());}}}(_0x5b0a,0x97d41));var require$$0$6=require(_0x2dfd83(0x597)),require$$1$1=require(_0x2dfd83(0x740)),require$$0=require(_0x2dfd83(0x1b0)),require$$1=require('node:stream'),require$$4=require(_0x2dfd83(0x2f1)),require$$0$2=require(_0x2dfd83(0x532)),require$$0$1=require(_0x2dfd83(0x3a1)),require$$16=require(_0x2dfd83(0x25a)),require$$0$3=require(_0x2dfd83(0x199)),require$$2=require(_0x2dfd83(0x693)),require$$18=require(_0x2dfd83(0x5d5)),require$$0$4=require(_0x2dfd83(0x4d4)),require$$0$5=require(_0x2dfd83(0x430));function getDefaultExportFromCjs(_0x372bf0){const _0xf91885=_0x2dfd83;return _0x372bf0&&_0x372bf0['__esModule']&&Object[_0xf91885(0x175)][_0xf91885(0x3ee)][_0xf91885(0x772)](_0x372bf0,_0xf91885(0x511))?_0x372bf0[_0xf91885(0x511)]:_0x372bf0;}var lib={'exports':{}},okdbError,hasRequiredOkdbError;function requireOkdbError(){if(hasRequiredOkdbError)return okdbError;hasRequiredOkdbError=0x1;class _0x28ef9a extends Error{constructor(_0x1b1631,_0x19fa59,_0x1af2a3={}){const _0x19abdf=_0x5aff;super(_0x1b1631),this[_0x19abdf(0x5d1)]=_0x19abdf(0x381),this[_0x19abdf(0x330)]=_0x19fa59,this[_0x19abdf(0x3e8)]=_0x1af2a3,_0x1af2a3['cause']&&(this['cause']=_0x1af2a3['cause']),Error[_0x19abdf(0x5bd)](this,this[_0x19abdf(0x5a0)]);}}class _0x354234 extends _0x28ef9a{constructor(_0x5dc2db,_0x8e687,_0x446f4e,_0x49758a){const _0x18bcf1=_0x5aff;super(_0x18bcf1(0x227)+_0x5dc2db+'@'+_0x8e687+_0x18bcf1(0x5e6)+_0x446f4e+',\x20got\x20'+_0x49758a,_0x18bcf1(0x366),{'type':_0x5dc2db,'key':_0x8e687,'expectedVersion':_0x446f4e,'actualVersion':_0x49758a}),this[_0x18bcf1(0x5d1)]=_0x18bcf1(0x1c8);}}class _0xe28a4f extends _0x28ef9a{constructor(_0x42069d,_0x594df5){const _0x24272e=_0x5aff;super(_0x42069d+'@'+_0x594df5+_0x24272e(0x546),'NOT_FOUND',{'type':_0x42069d,'key':_0x594df5}),this[_0x24272e(0x5d1)]='OKDBNotFoundError';}}class _0x5af841 extends _0x28ef9a{constructor(_0x175b94,_0x24d528){const _0x294f87=_0x5aff;super(_0x175b94+'@'+_0x24d528+_0x294f87(0x1fb),_0x294f87(0x718),{'type':_0x175b94,'key':_0x24d528}),this[_0x294f87(0x5d1)]=_0x294f87(0x7af);}}class _0x1c7a40 extends _0x28ef9a{constructor(_0x37eac8,_0x26e94e){const _0x158065=_0x5aff,_0x42c033=typeof _0x26e94e;super(_0x158065(0x67a)+_0x37eac8+_0x158065(0x601)+_0x42c033+_0x158065(0xe4)+_0x26e94e,'INVALID_INDEX_KEY',{'index':_0x37eac8,'key':_0x26e94e,'keyType':_0x42c033}),this[_0x158065(0x5d1)]='OKDBInvalidIndexKeyError';}}class _0x294250 extends _0x28ef9a{constructor(_0x2927dc){const _0x4eab60=_0x5aff,_0x36c9eb=typeof _0x2927dc;super(_0x4eab60(0x144)+_0x36c9eb+_0x4eab60(0x1d8)+_0x2927dc,_0x4eab60(0x6ae),{'key':_0x2927dc,'keyType':_0x36c9eb}),this[_0x4eab60(0x5d1)]=_0x4eab60(0x350);}}class _0x312a84 extends _0x28ef9a{constructor(_0x5252da){const _0x33595f=_0x5aff;super('Type\x20\x27'+_0x5252da+'\x27\x20doesn\x27t\x20exist','TYPE_NOT_REGISTERED',{'type':_0x5252da}),this[_0x33595f(0x5d1)]=_0x33595f(0x598);}}class _0x4df1cf extends _0x28ef9a{constructor(_0x14367e){const _0x484e3c=_0x5aff;super(_0x484e3c(0x34d)+_0x14367e+'\x27\x20already\x20registered','TYPE_ALREADY_REGISTERED',{'type':_0x14367e}),this[_0x484e3c(0x5d1)]='OKDBTypeAlreadyRegisteredError';}}class _0x169bbc extends _0x28ef9a{constructor(_0x5a2553,_0x215b73){const _0x495740=_0x5aff;super('Index\x20\x27'+_0x215b73+'\x27\x20on\x20type\x20\x27'+_0x5a2553+_0x495740(0x3c0),_0x495740(0x2ea),{'type':_0x5a2553,'index':_0x215b73}),this[_0x495740(0x5d1)]='OKDBIndexNotRegisteredError';}}class _0x56c0c6 extends _0x28ef9a{constructor(_0x160ae4,_0x4f5267){const _0x30eb4e=_0x5aff;super(_0x30eb4e(0x7b8)+_0x4f5267+_0x30eb4e(0x14a)+_0x160ae4+_0x30eb4e(0x3bc),_0x30eb4e(0x6e1),{'type':_0x160ae4,'index':_0x4f5267}),this['name']=_0x30eb4e(0x3b6);}}class _0x5ef9a0 extends _0x28ef9a{constructor(_0x38f36f,_0x4613c1={}){const _0xfa138b=_0x5aff;super(_0x38f36f,'INVALID_VALUE',_0x4613c1),this[_0xfa138b(0x5d1)]='OKDBInvalidValueError';}}class _0x2c2544 extends _0x28ef9a{constructor(_0x45228b,_0x3a93fd,_0x238534,_0x2b20d4,_0x371307){const _0x51cabe=_0x5aff;super(_0x51cabe(0x4f5)+_0x45228b+'@'+_0x3a93fd+_0x51cabe(0x202)+_0x238534+_0x51cabe(0x45b)+_0x2b20d4+'\x27,\x20cannot\x20map\x20to\x20\x27'+_0x371307+'\x27',_0x51cabe(0x23f),{'type':_0x45228b,'index':_0x3a93fd,'indexKey':_0x238534,'existingKey':_0x2b20d4,'conflictingKey':_0x371307}),this['name']='OKDBUniqueConstraintError';}}class _0x53feb4 extends _0x28ef9a{constructor(_0xbac6ef,_0x21f612,_0x1e7dfd){const _0x2a10a9=_0x5aff;super(_0x2a10a9(0x3c4)+_0xbac6ef+'@'+_0x21f612,'SCHEMA_VALIDATION_FAILED',{'type':_0xbac6ef,'key':_0x21f612,'errors':_0x1e7dfd}),this['name']=_0x2a10a9(0x626),this['type']=_0xbac6ef,this['key']=_0x21f612,this[_0x2a10a9(0x7a7)]=_0x1e7dfd;}}class _0x3879a8 extends _0x28ef9a{constructor(_0x3ce93c,_0x49061f){const _0x267bc9=_0x5aff;super(_0x267bc9(0x45f)+_0x3ce93c+':\x20'+_0x49061f['length']+_0x267bc9(0x685),_0x267bc9(0x542),{'type':_0x3ce93c,'failures':_0x49061f}),this[_0x267bc9(0x5d1)]=_0x267bc9(0x5cb),this[_0x267bc9(0xae)]=_0x3ce93c,this[_0x267bc9(0x682)]=_0x49061f;}}class _0x478ba3 extends _0x28ef9a{constructor(_0x455eee,_0x21f753,_0x4a9399,_0x51af72,_0x1a3044){const _0x18d495=_0x5aff;super('Foreign\x20key\x20violation:\x20'+_0x455eee+'@'+_0x21f753+'.'+_0x4a9399+_0x18d495(0x748)+_0x51af72+'@'+_0x1a3044+_0x18d495(0x15d),'FOREIGN_KEY_VIOLATION',{'sourceType':_0x455eee,'sourceKey':_0x21f753,'fieldPath':_0x4a9399,'targetType':_0x51af72,'targetKey':_0x1a3044}),this['name']=_0x18d495(0x7e3),this[_0x18d495(0x57a)]=_0x455eee,this[_0x18d495(0xb6)]=_0x21f753,this[_0x18d495(0x78b)]=_0x4a9399,this['targetType']=_0x51af72,this['targetKey']=_0x1a3044;}}class _0x16458c extends _0x28ef9a{constructor(_0x4cb460,_0x155b52,_0x1b9b16){const _0x34e7af=_0x5aff;super(_0x34e7af(0x555)+_0x4cb460+'@'+_0x155b52+':\x20'+_0x1b9b16[_0x34e7af(0x42c)]+_0x34e7af(0x28d),_0x34e7af(0x13f),{'targetType':_0x4cb460,'targetKey':_0x155b52,'references':_0x1b9b16}),this[_0x34e7af(0x5d1)]=_0x34e7af(0x203),this['targetType']=_0x4cb460,this[_0x34e7af(0x49b)]=_0x155b52,this[_0x34e7af(0x5de)]=_0x1b9b16;}}class _0x260519 extends _0x28ef9a{constructor(_0x265b8b,_0x48e760,_0x1ecf85){const _0x3a2efd=_0x5aff;super(_0x3a2efd(0x23c)+_0x48e760+_0x3a2efd(0x6c6)+_0x265b8b+'\x22\x20is\x20used\x20by:\x20'+_0x1ecf85[_0x3a2efd(0x78f)](_0xad6fe6=>_0xad6fe6[_0x3a2efd(0x312)]+':'+_0xad6fe6['name'])[_0x3a2efd(0x43a)](',\x20'),_0x3a2efd(0x741),{'type':_0x265b8b,'index':_0x48e760,'usedBy':_0x1ecf85}),this[_0x3a2efd(0x5d1)]='OKDBIndexHasConsumersError';}}return okdbError={'OKDBError':_0x28ef9a,'OKDBVersionMismatchError':_0x354234,'OKDBNotFoundError':_0xe28a4f,'OKDBAlreadyExistsError':_0x5af841,'OKDBInvalidIndexKeyError':_0x1c7a40,'OKDBInvalidPrimaryKeyError':_0x294250,'OKDBTypeNotRegisteredError':_0x312a84,'OKDBTypeAlreadyRegisteredError':_0x4df1cf,'OKDBIndexNotRegisteredError':_0x169bbc,'OKDBIndexAlreadyRegisteredError':_0x56c0c6,'OKDBInvalidValueError':_0x5ef9a0,'OKDBUniqueConstraintError':_0x2c2544,'OKDBSchemaValidationError':_0x53feb4,'OKDBSchemaCollectionError':_0x3879a8,'OKDBForeignKeyError':_0x478ba3,'OKDBForeignKeyDeleteError':_0x16458c,'OKDBIndexHasConsumersError':_0x260519},okdbError;}var errors,hasRequiredErrors;function requireErrors(){const _0x54a6a3=_0x2dfd83;if(hasRequiredErrors)return errors;hasRequiredErrors=0x1;const _0x32a0df=requireOkdbError(),_0xe80426={'VERSION_MISMATCH':_0x32a0df[_0x54a6a3(0x1c8)],'NOT_FOUND':_0x32a0df[_0x54a6a3(0x719)],'ALREADY_EXISTS':_0x32a0df['OKDBAlreadyExistsError'],'INVALID_INDEX_KEY':_0x32a0df[_0x54a6a3(0x3a2)],'INVALID_PRIMARY_KEY':_0x32a0df[_0x54a6a3(0x350)],'TYPE_NOT_REGISTERED':_0x32a0df[_0x54a6a3(0x598)],'TYPE_ALREADY_REGISTERED':_0x32a0df[_0x54a6a3(0x5ba)],'INDEX_NOT_REGISTERED':_0x32a0df['OKDBIndexNotRegisteredError'],'INDEX_ALREADY_REGISTERED':_0x32a0df[_0x54a6a3(0x3b6)],'INVALID_VALUE':_0x32a0df[_0x54a6a3(0x137)],'UNIQUE_CONSTRAINT':_0x32a0df[_0x54a6a3(0x4e8)],'SCHEMA_VALIDATION_FAILED':_0x32a0df['OKDBSchemaValidationError'],'SCHEMA_COLLECTION_INVALID':_0x32a0df['OKDBSchemaCollectionError'],'FOREIGN_KEY_VIOLATION':_0x32a0df[_0x54a6a3(0x7e3)],'FOREIGN_KEY_DELETE_RESTRICTED':_0x32a0df[_0x54a6a3(0x203)],'INDEX_HAS_CONSUMERS':_0x32a0df[_0x54a6a3(0x530)]};class _0x50f56f extends _0x32a0df[_0x54a6a3(0x381)]{constructor(_0x1c0528,_0x4a9855){const _0x4036ed=_0x54a6a3;super(_0x1c0528+':\x20not\x20implemented\x20in\x20the\x20native\x20build\x20yet'+(_0x4a9855?'\x20('+_0x4a9855+')':''),_0x4036ed(0x3c7),{'feature':_0x1c0528}),this['name']=_0x4036ed(0x373);}}function _0x159f83(_0x497928){const _0x52e743=_0x54a6a3;if(!_0x497928||typeof _0x497928!==_0x52e743(0x788)||!_0x497928['__okdb'])return _0x497928;delete _0x497928[_0x52e743(0x5e9)];const _0x53f364=_0x497928[_0x52e743(0x330)];if(_0x53f364===_0x52e743(0x724)||_0x53f364===_0x52e743(0x5b1)||_0x53f364===_0x52e743(0x219)){const _0x24f0ee=_0x53f364===_0x52e743(0x5b1)?TypeError[_0x52e743(0x175)]:_0x53f364===_0x52e743(0x219)?RangeError[_0x52e743(0x175)]:Error['prototype'];Object[_0x52e743(0x5b7)](_0x497928,_0x24f0ee),_0x497928[_0x52e743(0x5d1)]=_0x53f364;if(_0x497928[_0x52e743(0x3e8)]&&_0x497928[_0x52e743(0x3e8)][_0x52e743(0x422)]!==undefined)_0x497928[_0x52e743(0x422)]=_0x497928['details']['status'];return delete _0x497928[_0x52e743(0x330)],delete _0x497928[_0x52e743(0x3e8)],_0x497928;}const _0x4ae229=_0xe80426[_0x53f364];Object['setPrototypeOf'](_0x497928,(_0x4ae229||_0x32a0df['OKDBError'])[_0x52e743(0x175)]),_0x497928[_0x52e743(0x5d1)]=_0x4ae229?_0x4ae229[_0x52e743(0x5d1)][_0x52e743(0x2e5)](/^OKDB/,_0x52e743(0x791)):_0x52e743(0x381);const _0x10ec93=_0x497928[_0x52e743(0x3e8)]||{};_0x53f364===_0x52e743(0x777)&&(_0x497928[_0x52e743(0xae)]=_0x10ec93[_0x52e743(0xae)],_0x497928['key']=_0x10ec93['key'],_0x497928[_0x52e743(0x7a7)]=_0x10ec93['errors']);_0x53f364==='SCHEMA_COLLECTION_INVALID'&&(_0x497928[_0x52e743(0xae)]=_0x10ec93[_0x52e743(0xae)],_0x497928[_0x52e743(0x682)]=_0x10ec93[_0x52e743(0x682)]);if(_0x53f364===_0x52e743(0x418)){for(const _0x293fd1 of[_0x52e743(0x57a),_0x52e743(0xb6),_0x52e743(0x78b),'targetType',_0x52e743(0x49b)])_0x497928[_0x293fd1]=_0x10ec93[_0x293fd1];}if(_0x53f364===_0x52e743(0x13f)){for(const _0x3af5f8 of['targetType',_0x52e743(0x49b),'references'])_0x497928[_0x3af5f8]=_0x10ec93[_0x3af5f8];}if(_0x10ec93[_0x52e743(0x5ab)])_0x497928[_0x52e743(0x5ab)]=_0x10ec93[_0x52e743(0x5ab)];if(_0x10ec93[_0x52e743(0x422)]!==undefined)_0x497928[_0x52e743(0x422)]=_0x10ec93[_0x52e743(0x422)];if(_0x10ec93[_0x52e743(0x2b8)]!==undefined)_0x497928[_0x52e743(0x2b8)]=_0x10ec93[_0x52e743(0x2b8)];return _0x497928;}function _0x597bdb(_0x5ba476){const _0x56eed9=_0x54a6a3;if(_0x5ba476===undefined)return _0x56eed9(0x3a6);if(_0x5ba476===null)return'null';if(typeof _0x5ba476===_0x56eed9(0x48c))return _0x5ba476?'string':_0x56eed9(0x3ff);if(typeof _0x5ba476===_0x56eed9(0x656))return _0x56eed9(0x656);if(typeof _0x5ba476!=='object')return typeof _0x5ba476;if(Array[_0x56eed9(0x796)](_0x5ba476))return _0x5ba476[_0x56eed9(0x42c)]?'array':_0x56eed9(0x658);if(_0x5ba476 instanceof Date)return'Date';if(_0x5ba476 instanceof Map)return'Map';if(Buffer[_0x56eed9(0x1b4)](_0x5ba476))return _0x56eed9(0x3b9);return _0x56eed9(0x788);}const _0x1a757e=(_0x57d54d,_0x540e3b,_0x472bf7)=>new _0x32a0df['OKDBError'](_0x540e3b,_0x57d54d,_0x472bf7),_0x4c23f3=(_0x39ec24,_0x326e99,_0x5964ee)=>_0x1a757e(_0x54a6a3(0x6f7),_0x39ec24+'\x20must\x20be\x20'+_0x326e99+_0x54a6a3(0x60b)+_0x597bdb(_0x5964ee),{'argument':_0x39ec24,'expected':_0x326e99,'got':_0x597bdb(_0x5964ee)}),_0x2d94e5=(_0x28408b,_0x49998b)=>_0x1a757e('INVALID_TYPE_NAME',_0x28408b+_0x54a6a3(0x389)+_0x597bdb(_0x49998b),{'argument':_0x28408b,'expected':_0x54a6a3(0x26b),'got':_0x597bdb(_0x49998b)}),_0x3c8a2f=(_0x1fd364,_0x42fca8)=>_0x1a757e(_0x54a6a3(0x31e),_0x1fd364+':\x20'+_0x42fca8,{'argument':_0x1fd364,'problem':_0x42fca8});function _0x13fcb3(_0x2fc19d,_0x5573b5=_0x54a6a3(0x51c)){const _0x9ebf00=_0x54a6a3;if(_0x2fc19d===undefined)return{};if(_0x2fc19d===null)throw _0x3c8a2f(_0x5573b5,_0x9ebf00(0x27f));return _0x2fc19d;}return errors={'reclass':_0x159f83,'NotImplementedNative':_0x50f56f,'BY_CODE':_0xe80426,'describe':_0x597bdb,'invalidArgument':_0x4c23f3,'invalidTypeName':_0x2d94e5,'invalidOptions':_0x3c8a2f,'optionsArg':_0x13fcb3,..._0x32a0df},errors;}var bridge_1,hasRequiredBridge;function requireBridge(){if(hasRequiredBridge)return bridge_1;hasRequiredBridge=0x1;const _0x3243f5=new Map(),_0x1015a5=new Map();let _0x328924=0x1;const _0x4b289e=new Map(),_0x3419a7=new Map();let _0x355440=0x1;const _0x2ad4fe=new Map();let _0xc02b59=0x1;const _0x1213dc=new Map();function _0xd52a37(_0x5f0681,_0x37a428=null){const _0x2be81a=_0x5aff,_0x37ac5f=_0xc02b59++;_0x2ad4fe[_0x2be81a(0x721)](_0x37ac5f,_0x5f0681);if(_0x37a428)_0x1213dc[_0x2be81a(0x721)](_0x37ac5f,_0x37a428);return _0x37ac5f;}function _0x3b95db(_0xca6fa7,_0x597041){const _0x8254a=_0x5aff,_0x107ab6=_0x2ad4fe['get'](_0xca6fa7),_0x56f35e=Array[_0x8254a(0x175)][_0x8254a(0x49d)][_0x8254a(0x772)](arguments,0x2),_0x49d29b=_0x397857=>_0x1a9a5c(_0x397857,_0x1213dc[_0x8254a(0x73e)](_0xca6fa7));let _0x3f2d6e=_0x56f35e;if(_0x597041==='start'||_0x597041==='stop'||_0x597041==='uninstall'||_0x597041===_0x8254a(0x500)||_0x597041==='assertStartAllowed')_0x3f2d6e=[_0x49d29b(_0x56f35e[0x0])];else{if(_0x597041===_0x8254a(0x40b))_0x3f2d6e=[_0x56f35e[0x0],_0x56f35e[0x1],_0x49d29b(_0x56f35e[0x2])];else{if(_0x597041===_0x8254a(0x352))_0x3f2d6e=[_0x49d29b(_0x56f35e[0x0])];}}let _0x269ff=_0x107ab6[_0x597041](..._0x3f2d6e);if(_0x269ff&&typeof _0x269ff[_0x8254a(0x447)]==='function')_0x269ff=_0x3ddc15(_0x269ff);if(_0x597041==='start'){const _0x454208=_0x269ff&&typeof _0x269ff===_0x8254a(0x788)?_0xd52a37(_0x269ff):_0xd52a37({});return{'$api':_0x454208};}return _0x269ff===undefined?null:_0x269ff;}function _0x1a9a5c(_0x49135e,_0x26e651){const _0x8c21de=_0x5aff;let _0x36c6a2=_0x56689d[_0x8c21de(0x73e)](_0x49135e[_0x8c21de(0x3d7)]);const _0x3d6dd5=_0x36c6a2&&_0x36c6a2[_0x8c21de(0x538)]||_0x26e651||_0x2f937d,_0x46bdd6=(_0x4d3a3a,..._0x4086a9)=>_0x3d6dd5['_call'](_0x8c21de(0x675),null,_0x4d3a3a,[_0x49135e[_0x8c21de(0xae)],_0x49135e[_0x8c21de(0x5d1)],..._0x4086a9],!![]);return{'okdb':_0x3d6dd5,'key':_0x49135e[_0x8c21de(0x69e)],'type':_0x49135e[_0x8c21de(0xae)],'name':_0x49135e[_0x8c21de(0x5d1)],get 'storeEnv'(){const _0x2a3d3a=_0x8c21de;if(!_0x36c6a2&&_0x3d6dd5&&_0x3d6dd5[_0x2a3d3a(0x56b)]&&_0x49135e[_0x2a3d3a(0x208)])_0x36c6a2=_0x3d6dd5[_0x2a3d3a(0x4a8)][_0x2a3d3a(0x73e)](_0x49135e[_0x2a3d3a(0x208)]);return _0x36c6a2;},'storeEnvName':_0x49135e[_0x8c21de(0x208)],'config':_0x49135e[_0x8c21de(0x2ce)],'meta':_0x49135e[_0x8c21de(0xc5)],'options':_0x49135e['options'],'emit':(_0x5aae0f,_0x4f5b0e)=>_0x46bdd6(_0x8c21de(0x134),_0x5aae0f,_0x4f5b0e),'updateStatus':async(_0x143a37,_0x41c728)=>_0x46bdd6(_0x8c21de(0x6b1),_0x143a37,_0x41c728==null?null:String(_0x41c728&&_0x41c728[_0x8c21de(0x3f1)]?_0x41c728[_0x8c21de(0x3f1)]:_0x41c728)),'updateMeta':async _0x55abfd=>_0x46bdd6(_0x8c21de(0x5ae),{'meta':_0x55abfd}),'updateConfig':async _0x4b1511=>_0x46bdd6(_0x8c21de(0x5ae),{'config':_0x4b1511})};}function _0xe2f0d4(_0x38c54e,_0xd4ba5,_0x1189aa){const _0x231afd=_0x5aff;if(_0x38c54e==='new'){const _0x26556f=_0x27da46(_0xd4ba5);let _0x42c62d=_0x26556f(_0x1189aa);if(_0x42c62d&&typeof _0x42c62d['then']===_0x231afd(0x656))_0x42c62d=_0x3ddc15(_0x42c62d);if(!_0x42c62d||typeof _0x42c62d[_0x231afd(0x254)]!=='function'){const {OKDBError:_0x15a941}=requireErrors();throw new _0x15a941(_0x231afd(0x4f8)+(_0x1189aa&&_0x1189aa['type'])+_0x231afd(0x490),_0x231afd(0x7a2));}return _0x42c62d[_0x231afd(0x5e9)]=_0x26556f['__okdb'],{'$id':_0xd52a37(_0x42c62d),'batch':typeof _0x42c62d[_0x231afd(0x292)]===_0x231afd(0x656)};}const _0x2bb488=_0x2ad4fe[_0x231afd(0x73e)](_0xd4ba5);if(_0x38c54e==='free')return _0x2ad4fe[_0x231afd(0x62a)](_0xd4ba5),_0x2c98d0['delete'](_0xd4ba5),null;if(!_0x2bb488)throw new Error(_0x231afd(0x13b));if(typeof _0x2bb488[_0x38c54e]!==_0x231afd(0x656))return null;if(_0x38c54e===_0x231afd(0x254)||_0x38c54e===_0x231afd(0x292)){const _0x4ba80c=_0x38c54e===_0x231afd(0x292)?_0x4dbaad(_0xd4ba5,_0x2bb488,_0x1189aa):_0x2a21b3(_0xd4ba5,_0x2bb488,_0x38c54e,_0x1189aa);return _0x38c54e===_0x231afd(0x254)?Array[_0x231afd(0x6a2)](_0x4ba80c):_0x4ba80c['map'](_0x283529=>Array['from'](_0x283529));}let _0x2e57ee=_0x2bb488[_0x38c54e]();if(_0x2e57ee&&typeof _0x2e57ee[_0x231afd(0x447)]===_0x231afd(0x656))_0x2e57ee=_0x3ddc15(_0x2e57ee);return _0x2e57ee===undefined?null:_0x2e57ee;}function _0x253451(_0x1f6b6c,_0x54dd5c,_0x4d2ffb){const _0x59b0ef=_0x5aff;if(_0x1f6b6c===_0x59b0ef(0x7bc)){const _0x3f2a5a=_0x27da46(_0x54dd5c);let _0x552f0a=_0x3f2a5a(_0x4d2ffb['config']??{},{'dims':_0x4d2ffb['dims'],'dir':_0x4d2ffb[_0x59b0ef(0x246)]});if(_0x552f0a&&typeof _0x552f0a[_0x59b0ef(0x447)]===_0x59b0ef(0x656))_0x552f0a=_0x3ddc15(_0x552f0a);for(const _0x200646 of[_0x59b0ef(0x2e4),_0x59b0ef(0x694),_0x59b0ef(0x102),_0x59b0ef(0x168),_0x59b0ef(0x432)]){if(!_0x552f0a||typeof _0x552f0a[_0x200646]!=='function'){const {OKDBError:_0x2cfae8}=requireErrors();throw new _0x2cfae8('Algorithm\x20factory\x20must\x20return\x20an\x20object\x20with\x20'+_0x200646+'()',_0x59b0ef(0x375),{'method':_0x200646});}}return{'$id':_0xd52a37(_0x552f0a)};}const _0x35c756=_0x2ad4fe[_0x59b0ef(0x73e)](_0x54dd5c);if(_0x1f6b6c===_0x59b0ef(0x3e9))return _0x2ad4fe[_0x59b0ef(0x62a)](_0x54dd5c),null;if(!_0x35c756)throw new Error(_0x59b0ef(0x1bd));const _0x1d6ef2=_0x384506=>_0x384506?_0x384506[_0x59b0ef(0x78f)](_0xb06973=>({'key':_0xb06973[_0x59b0ef(0x69e)],'vector':Float32Array[_0x59b0ef(0x6a2)](_0xb06973[_0x59b0ef(0x2f9)])})):null;let _0x2a2382;switch(_0x1f6b6c){case _0x59b0ef(0x2e4):case'rebuild':{const _0x1ec385=_0x1d6ef2(_0x4d2ffb);_0x2a2382=_0x35c756[_0x1f6b6c](_0x1ec385?async()=>_0x1ec385:undefined);break;}case _0x59b0ef(0x694):_0x2a2382=_0x35c756[_0x59b0ef(0x694)](_0x4d2ffb[0x0],Float32Array['from'](_0x4d2ffb[0x1]),_0x4d2ffb[0x2]??undefined);break;case'remove':_0x2a2382=_0x35c756[_0x59b0ef(0x102)](_0x4d2ffb);break;case _0x59b0ef(0x168):_0x2a2382=_0x35c756[_0x59b0ef(0x168)](Float32Array[_0x59b0ef(0x6a2)](_0x4d2ffb['query']),_0x4d2ffb[_0x59b0ef(0x4e4)]??{});break;case _0x59b0ef(0x3e3):_0x2a2382=typeof _0x35c756[_0x59b0ef(0x3e3)]==='function'?_0x35c756[_0x59b0ef(0x3e3)](_0x4d2ffb??undefined):![];break;case'stop':_0x2a2382=typeof _0x35c756[_0x59b0ef(0x1ff)]==='function'?_0x35c756['stop']():undefined;break;case _0x59b0ef(0x3f2):_0x2a2382=typeof _0x35c756[_0x59b0ef(0x3f2)]===_0x59b0ef(0x656)?_0x35c756[_0x59b0ef(0x3f2)]():undefined;break;case _0x59b0ef(0x432):return Number(_0x35c756['count']());case _0x59b0ef(0x76d):return(typeof _0x35c756[_0x59b0ef(0x76d)]==='function'?_0x35c756[_0x59b0ef(0x76d)]():null)??{};default:throw new Error(_0x59b0ef(0x1c4)+_0x1f6b6c);}if(_0x2a2382&&typeof _0x2a2382['then']===_0x59b0ef(0x656))_0x2a2382=_0x3ddc15(_0x2a2382);return _0x2a2382===undefined?null:_0x2a2382;}function _0x553aeb(_0x56feb0,_0x3261a4,_0x29f2f5){const _0x414e07=_0x5aff;if(_0x56feb0===_0x414e07(0x7bc)){const _0xcedbf6=_0x27da46(_0x3261a4);let _0xca5f54=_0xcedbf6(_0x29f2f5);if(_0xca5f54&&typeof _0xca5f54[_0x414e07(0x447)]==='function')_0xca5f54=_0x3ddc15(_0xca5f54);if(!_0xca5f54)return null;const _0x3895c8=[_0x414e07(0x5b4),_0x414e07(0x6e4),_0x414e07(0x73e),'count',_0x414e07(0x4d8),_0x414e07(0x156)][_0x414e07(0xe5)](_0x5e9ebc=>typeof _0xca5f54[_0x5e9ebc]===_0x414e07(0x656));return{'$id':_0xd52a37(_0xca5f54),'has':_0x3895c8};}const _0x18c728=_0x2ad4fe[_0x414e07(0x73e)](_0x3261a4);if(_0x56feb0===_0x414e07(0x3e9))return _0x2ad4fe['delete'](_0x3261a4),null;if(!_0x18c728)throw new Error('storage\x20adapter\x20is\x20gone');const _0x107e87=_0x28d405=>Float32Array[_0x414e07(0x6a2)](_0x28d405);let _0x192fce;switch(_0x56feb0){case _0x414e07(0x10d):_0x192fce=_0x18c728[_0x414e07(0x10d)](_0x29f2f5[0x0],_0x107e87(_0x29f2f5[0x1]));break;case _0x414e07(0x102):_0x192fce=_0x18c728['remove'](_0x29f2f5);break;case _0x414e07(0x5e7):{_0x192fce=typeof _0x18c728['getAll']===_0x414e07(0x656)?_0x18c728[_0x414e07(0x5e7)]():[];if(_0x192fce&&typeof _0x192fce['then']===_0x414e07(0x656))_0x192fce=_0x3ddc15(_0x192fce);return Array['from'](_0x192fce??[],_0xeaff61=>({'key':_0xeaff61[_0x414e07(0x69e)],'vector':Array['from'](_0xeaff61[_0x414e07(0x2f9)])}));}case'write':_0x192fce=_0x18c728['write'](_0x29f2f5['puts'][_0x414e07(0x78f)](_0x515333=>({'key':_0x515333[_0x414e07(0x69e)],'vector':_0x107e87(_0x515333[_0x414e07(0x2f9)])})),_0x29f2f5[_0x414e07(0x644)]);break;case'keys':_0x192fce=_0x18c728[_0x414e07(0x6e4)](_0x29f2f5??undefined);if(_0x192fce&&typeof _0x192fce[_0x414e07(0x447)]===_0x414e07(0x656))_0x192fce=_0x3ddc15(_0x192fce);return Array[_0x414e07(0x6a2)](_0x192fce??[]);case'get':{_0x192fce=_0x18c728['get'](_0x29f2f5);if(_0x192fce&&typeof _0x192fce[_0x414e07(0x447)]===_0x414e07(0x656))_0x192fce=_0x3ddc15(_0x192fce);return _0x192fce==null?null:Array[_0x414e07(0x6a2)](_0x192fce);}case _0x414e07(0x432):return Number(_0x18c728[_0x414e07(0x432)]());case _0x414e07(0x4d8):_0x192fce=_0x18c728[_0x414e07(0x4d8)]();break;case _0x414e07(0x156):return _0x18c728[_0x414e07(0x156)]()??null;default:throw new Error(_0x414e07(0x14c)+_0x56feb0);}if(_0x192fce&&typeof _0x192fce[_0x414e07(0x447)]===_0x414e07(0x656))_0x192fce=_0x3ddc15(_0x192fce);return _0x192fce===undefined?null:_0x192fce;}const _0x4e7043=new Map();function _0x2a21b3(_0x5ec2cc,_0x114979,_0x2d9ceb,_0x48f867){const _0xebb9ec=_0x5aff,_0x2dcb57=_0x5ec2cc+'\x00'+_0x2d9ceb+'\x00'+JSON[_0xebb9ec(0x7cf)](_0x48f867),_0x3618d6=_0x4e7043['get'](_0x2dcb57);if(_0x3618d6){if(_0x3618d6[_0xebb9ec(0x728)]===_0xebb9ec(0x690))throw _0x135ce4();_0x4e7043['delete'](_0x2dcb57);if(_0x3618d6[_0xebb9ec(0x728)]==='err')throw _0x3618d6[_0xebb9ec(0x1d0)];return _0x3618d6[_0xebb9ec(0x1d0)];}const _0x2083c3=_0x114979[_0x2d9ceb](_0x48f867);if(!_0x2083c3||typeof _0x2083c3[_0xebb9ec(0x447)]!==_0xebb9ec(0x656))return _0x2083c3;const _0x174cb5={'state':_0xebb9ec(0x690),'value':undefined};_0x2083c3[_0xebb9ec(0x447)](_0x543c54=>{const _0x478702=_0xebb9ec;_0x174cb5[_0x478702(0x728)]='ok',_0x174cb5[_0x478702(0x1d0)]=_0x543c54;if(_0x4e7043['get'](_0x2dcb57)===_0x174cb5)_0xf17a8a(_0x114979);},_0x51767c=>{const _0x263263=_0xebb9ec;_0x174cb5[_0x263263(0x728)]=_0x263263(0x342),_0x174cb5[_0x263263(0x1d0)]=_0x51767c;if(_0x4e7043[_0x263263(0x73e)](_0x2dcb57)===_0x174cb5)_0xf17a8a(_0x114979);});for(let _0x1e00c8=0x0;_0x1e00c8<0x64&&_0x174cb5[_0xebb9ec(0x728)]===_0xebb9ec(0x690);_0x1e00c8++)process[_0xebb9ec(0x1c9)]();if(_0x174cb5[_0xebb9ec(0x728)]==='ok')return _0x174cb5[_0xebb9ec(0x1d0)];if(_0x174cb5[_0xebb9ec(0x728)]==='err')throw _0x174cb5['value'];_0x4e7043['set'](_0x2dcb57,_0x174cb5);throw _0x135ce4();}const _0x2c98d0=new Map(),_0x46218e=0xa*0x3c*0x3e8;function _0x4dbaad(_0x1f64dd,_0x25453f,_0x3d24ef){const _0x2486a4=_0x5aff,_0x39164f=Array['isArray'](_0x3d24ef)?_0x3d24ef:Array['from'](_0x3d24ef??[]);let _0x4c2a5a=_0x2c98d0[_0x2486a4(0x73e)](_0x1f64dd);if(!_0x4c2a5a)_0x2c98d0[_0x2486a4(0x721)](_0x1f64dd,_0x4c2a5a=new Map());const _0x225928=Date[_0x2486a4(0xcc)]();for(const [_0x4f8031,_0xe9b210]of _0x4c2a5a)if(_0xe9b210['req'][_0x2486a4(0x728)]!==_0x2486a4(0x690)&&_0x225928-_0xe9b210[_0x2486a4(0xe6)]['at']>_0x46218e)_0x4c2a5a[_0x2486a4(0x62a)](_0x4f8031);const _0x2d2ce5=_0x39164f[_0x2486a4(0x78f)](_0x3a3f0d=>JSON['stringify'](_0x3a3f0d));let _0x50797e=![];const _0x4ad8eb=[],_0x446cdd=new Set();for(let _0x17f97f=0x0;_0x17f97f<_0x2d2ce5['length'];_0x17f97f++){const _0x2a1181=_0x4c2a5a[_0x2486a4(0x73e)](_0x2d2ce5[_0x17f97f]);if(!_0x2a1181)!_0x446cdd[_0x2486a4(0x7d4)](_0x2d2ce5[_0x17f97f])&&(_0x446cdd[_0x2486a4(0x694)](_0x2d2ce5[_0x17f97f]),_0x4ad8eb['push'](_0x17f97f));else{if(_0x2a1181[_0x2486a4(0xe6)][_0x2486a4(0x728)]==='pending')_0x50797e=!![];else{if(_0x2a1181[_0x2486a4(0xe6)][_0x2486a4(0x728)]===_0x2486a4(0x342)){const _0x16eed3=_0x2a1181[_0x2486a4(0xe6)][_0x2486a4(0x1d0)];for(const [_0x2cba7d,_0x4054d5]of _0x4c2a5a)if(_0x4054d5['req']===_0x2a1181[_0x2486a4(0xe6)])_0x4c2a5a['delete'](_0x2cba7d);throw _0x16eed3;}}}}if(_0x50797e)throw _0x135ce4();if(_0x4ad8eb['length']){const _0x5249ad=_0x4ad8eb[_0x2486a4(0x78f)](_0x11d3d6=>_0x39164f[_0x11d3d6]),_0x4eb705=_0x25453f['embedBatch'](_0x5249ad),_0x3bccb6={'state':_0x2486a4(0x690),'value':undefined,'at':0x0},_0x41e852=(_0x902a83,_0x2b5f2c)=>{const _0x55ad0c=_0x2486a4;_0x3bccb6[_0x55ad0c(0x728)]=_0x902a83,_0x3bccb6[_0x55ad0c(0x1d0)]=_0x2b5f2c,_0x3bccb6['at']=Date[_0x55ad0c(0xcc)]();};if(!_0x4eb705||typeof _0x4eb705[_0x2486a4(0x447)]!==_0x2486a4(0x656))_0x41e852('ok',_0x4eb705);else{let _0x36489f=!![];_0x4eb705[_0x2486a4(0x447)](_0x415efe=>{_0x41e852('ok',_0x415efe);if(!_0x36489f)_0xf17a8a(_0x25453f);},_0x2cf1ef=>{const _0x5c5352=_0x2486a4;_0x41e852(_0x5c5352(0x342),_0x2cf1ef);if(!_0x36489f)_0xf17a8a(_0x25453f);});for(let _0x36332f=0x0;_0x36332f<0x64&&_0x3bccb6[_0x2486a4(0x728)]===_0x2486a4(0x690);_0x36332f++)process[_0x2486a4(0x1c9)]();_0x36489f=![];}for(let _0xcc9343=0x0;_0xcc9343<_0x4ad8eb[_0x2486a4(0x42c)];_0xcc9343++)_0x4c2a5a['set'](_0x2d2ce5[_0x4ad8eb[_0xcc9343]],{'req':_0x3bccb6,'index':_0xcc9343});if(_0x3bccb6[_0x2486a4(0x728)]===_0x2486a4(0x342)){for(const _0x4db72e of _0x4ad8eb)_0x4c2a5a[_0x2486a4(0x62a)](_0x2d2ce5[_0x4db72e]);throw _0x3bccb6[_0x2486a4(0x1d0)];}if(_0x3bccb6[_0x2486a4(0x728)]===_0x2486a4(0x690))throw _0x135ce4();}const _0x1ec304=_0x2d2ce5['map'](_0x108ad8=>{const _0x25b34d=_0x2486a4,_0x24746e=_0x4c2a5a[_0x25b34d(0x73e)](_0x108ad8),_0x1c2e88=_0x24746e[_0x25b34d(0xe6)][_0x25b34d(0x1d0)];return _0x1c2e88?_0x1c2e88[_0x24746e[_0x25b34d(0x6ec)]]:undefined;});for(const _0x12044f of _0x2d2ce5)_0x4c2a5a[_0x2486a4(0x62a)](_0x12044f);if(!_0x4c2a5a[_0x2486a4(0x479)])_0x2c98d0[_0x2486a4(0x62a)](_0x1f64dd);return _0x1ec304;}function _0x135ce4(){const _0xf3d280=_0x5aff;return Object['assign'](new Error(_0xf3d280(0x5c0)),{'code':_0xf3d280(0x372)});}function _0xf17a8a(_0x21127f){const _0x5d4993=_0x5aff;_0x6fe9c1();try{const _0x496114=_0x21127f[_0x5d4993(0x5e9)]||_0x2f937d;if(_0x496114&&_0x496114[_0x5d4993(0x56b)])_0x496114[_0x5d4993(0x11e)](_0x5d4993(0xe3),null,_0x5d4993(0x2fe),[_0x5d4993(0x335),{}],!![]);}catch{}}function _0xd3f844(_0x1e0e96,_0x5615b7,_0x530754){const _0x575a43=_0x5aff,_0x36d581=_0x2ad4fe[_0x575a43(0x73e)](_0x1e0e96);if(!_0x36d581||typeof _0x36d581[_0x5615b7]!==_0x575a43(0x656))return{'__absent':!![]};let _0x1db138=_0x36d581[_0x5615b7](...Array['isArray'](_0x530754)?_0x530754:[]);if(_0x1db138&&typeof _0x1db138[_0x575a43(0x447)]===_0x575a43(0x656))_0x1db138=_0x3ddc15(_0x1db138);return{'value':_0x1db138===undefined?null:_0x1db138};}const _0x4bffcf=new Map();let _0x37dc87=0x1;const _0x56689d=new Map(),_0x17530d=new Map();function _0x5f2409(_0x31ac1d,_0x4fd948=null){const _0x186031=_0x5aff,_0x1215e5=_0x37dc87++;_0x4bffcf[_0x186031(0x721)](_0x1215e5,_0x31ac1d);if(_0x4fd948)_0x17530d[_0x186031(0x721)](_0x1215e5,_0x4fd948);return _0x1215e5;}function _0xc9da0b(_0x14e45d){const _0x21deee=_0x5aff;for(const [_0x511279,_0x4eee18]of _0x56689d)if(_0x4eee18&&_0x4eee18['okdb']===_0x14e45d)_0x56689d[_0x21deee(0x62a)](_0x511279);for(const [_0x245512,_0xe5816a]of _0x1213dc)if(_0xe5816a===_0x14e45d)_0x1213dc[_0x21deee(0x62a)](_0x245512);for(const [_0x49477b,_0x3048b6]of _0x17530d)_0x3048b6===_0x14e45d&&(_0x17530d[_0x21deee(0x62a)](_0x49477b),_0x4bffcf['delete'](_0x49477b));if(_0x2f937d===_0x14e45d)_0x2f937d=null;}function _0x585599(_0xb3bde2,_0x39edb7){_0x56689d['set'](_0xb3bde2,_0x39edb7);}function _0x3468c2(_0x536bf2){const _0x2b61e2=_0x5aff;if(_0x536bf2&&typeof _0x536bf2===_0x2b61e2(0x788)&&Object[_0x2b61e2(0x6e4)](_0x536bf2)[_0x2b61e2(0x42c)]===0x1&&_0x536bf2[_0x2b61e2(0x1a9)]!==undefined)return _0x4bffcf['get'](_0x536bf2[_0x2b61e2(0x1a9)]);return _0x536bf2;}function _0x3ddc15(_0x53447c){const _0x343c35=_0x5aff;let _0x2ccc12=![],_0x587770=![],_0x3cdd40;_0x53447c[_0x343c35(0x447)](_0x307ee9=>{_0x2ccc12=!![],_0x3cdd40=_0x307ee9;},_0x5d677a=>{_0x2ccc12=!![],_0x587770=!![],_0x3cdd40=_0x5d677a;});for(let _0x1be39f=0x0;_0x1be39f<0x2710&&!_0x2ccc12;_0x1be39f++)process[_0x343c35(0x1c9)]();if(!_0x2ccc12)return _0x53447c[_0x343c35(0x447)](undefined,_0x211895=>{const _0x2e7f0b=_0x343c35;try{process[_0x2e7f0b(0x4f4)](_0x2e7f0b(0x57e)+(_0x211895&&_0x211895['message']?_0x211895[_0x2e7f0b(0x3f1)]:_0x211895));}catch{}}),undefined;if(_0x587770)throw _0x3cdd40;return _0x3cdd40;}function _0x5a665f(_0x32d956,_0x28e834,_0x4c8124){const _0x325446=_0x5aff,_0x5ec030=_0x27da46(_0x32d956),_0x86bc3e=_0x56689d[_0x325446(0x73e)](_0x28e834);try{const _0x2d157f=_0x5ec030(_0x4c8124,{'okdb':_0x86bc3e&&_0x86bc3e[_0x325446(0x538)],'env':_0x86bc3e});if(_0x2d157f&&typeof _0x2d157f[_0x325446(0x447)]===_0x325446(0x656))_0x3ddc15(_0x2d157f);}catch(_0x4a1349){if(_0x4a1349&&_0x4a1349[_0x325446(0x457)]===!![]&&_0x4a1349['code']!==_0x325446(0x313)){const _0x1d5b7e=new Error(_0x4a1349['message']);_0x1d5b7e[_0x325446(0x330)]=_0x325446(0x313);throw _0x1d5b7e;}throw _0x4a1349;}}const _0x38f9bc=new Map();function _0x40b4ec(_0x117480,_0x42ff57,_0x474dff,_0x22d4d2,_0x3c5ac0,_0x397a7a){const _0x418989=_0x5aff,_0x2294db=_0x27da46(_0x117480),_0x2d7a2e=(_0x56689d['get'](_0x397a7a)||{})[_0x418989(0x538)]||_0x2f937d,_0x551d87=new AbortController(),_0x3c8dd8=(_0x51ee50,..._0x135439)=>_0x2d7a2e[_0x418989(0x11e)]('queue','default',_0x51ee50,_0x135439,![]),_0x4a205d={'okdb':_0x2d7a2e,'env':_0x56689d[_0x418989(0x73e)](_0x397a7a)||null,'job':_0x22d4d2,'jobId':_0x3c5ac0,'signal':_0x551d87[_0x418989(0x7d5)],'heartbeat':()=>_0x3c8dd8(_0x418989(0x69c),_0x474dff),'markProgress':_0x2aaabe=>_0x3c8dd8(_0x418989(0x65c),_0x474dff,_0x2aaabe),'log':(_0x4c68a0,_0x357d61)=>_0x3c8dd8(_0x418989(0x536),_0x474dff,_0x4c68a0,_0x357d61)};_0x38f9bc[_0x418989(0x721)](_0x474dff,{'ctrl':_0x551d87,'call':_0x3c8dd8});const _0x24be21=()=>{const _0x5e1ce3=_0x418989;_0x38f9bc[_0x5e1ce3(0x62a)](_0x474dff);try{_0x3c8dd8(_0x5e1ce3(0x584),_0x474dff);}catch{}};let _0x5bb164;try{_0x5bb164=_0x2294db(_0x42ff57,_0x4a205d);}catch(_0x2d01b2){_0x24be21();throw _0x2d01b2;}if(_0x5bb164&&typeof _0x5bb164[_0x418989(0x447)]==='function'){const _0x2eb962=_0x21ae90(_0x5bb164);return _0x5bb164['then'](_0x24be21,_0x24be21),{'$token':_0x2eb962};}return _0x24be21(),_0x5bb164;}function _0x41bc50(){const _0x8408f7=_0x5aff;for(const [_0x5c5208,_0x4ebcc4]of _0x38f9bc){if(_0x4ebcc4['ctrl'][_0x8408f7(0x7d5)][_0x8408f7(0x798)])continue;let _0x4bc1b0;try{_0x4bc1b0=_0x4ebcc4['call'](_0x8408f7(0x270),_0x5c5208);}catch{continue;}if(_0x4bc1b0&&_0x4bc1b0[_0x8408f7(0x798)]){const {OKDBError:_0x3db8f8}=requireErrors();_0x4ebcc4[_0x8408f7(0x3ad)][_0x8408f7(0x73c)](new _0x3db8f8(_0x4bc1b0[_0x8408f7(0x3f1)],_0x4bc1b0[_0x8408f7(0x330)]));}}}let _0x2f937d=null;function _0x36369f(_0x229f96){_0x2f937d=_0x229f96;}function _0x3c42b6(_0x333618,_0x10b9a6,_0x2f974c,_0x1df94b,_0x3e8700,_0x26e784,_0x25acf6){const _0x986738=_0x5aff,_0x3895db=_0x27da46(_0x333618),_0x2836f4=_0x56689d[_0x986738(0x73e)](_0x2f974c);try{const _0x56be12=_0x10b9a6?_0x3895db(_0x3e8700,_0x26e784):_0x3895db({'env':_0x2836f4,'okdb':_0x2836f4&&_0x2836f4[_0x986738(0x538)],'payload':_0x3468c2(_0x1df94b)},_0x3e8700,_0x26e784);if(_0x56be12&&typeof _0x56be12[_0x986738(0x447)]==='function'){if(_0x26e784&&_0x26e784[_0x986738(0x2de)]===_0x986738(0x25d))_0x56be12[_0x986738(0x447)](undefined,()=>{});else{if(_0x25acf6){const _0x33c7cd=_0xa59c9e(_0x56be12);if(_0x33c7cd===0x0)return null;return{'$token':_0x33c7cd};}else _0x3ddc15(_0x56be12);}}}catch(_0x22e456){if(_0x22e456&&_0x22e456[_0x986738(0x457)]===!![]&&_0x22e456[_0x986738(0x330)]!==_0x986738(0x313)){const _0x18a5b0=new Error(_0x22e456['message']);_0x18a5b0[_0x986738(0x330)]=_0x986738(0x313);throw _0x18a5b0;}throw _0x22e456;}return null;}function _0xa59c9e(_0x3f92f8){const _0x24c709=_0x5aff;let _0x54f9f5='pending',_0x58d9cb;_0x3f92f8[_0x24c709(0x447)](_0x584b9b=>{_0x54f9f5='ok',_0x58d9cb=_0x584b9b;},_0x496f04=>{const _0x3c3272=_0x24c709;_0x54f9f5=_0x3c3272(0x342),_0x58d9cb=_0x496f04;});for(let _0x7150fb=0x0;_0x7150fb<0x64&&_0x54f9f5===_0x24c709(0x690);_0x7150fb++)process[_0x24c709(0x1c9)]();if(_0x54f9f5==='ok')return 0x0;const _0x417b97=_0x355440++,_0x2e7953={'state':_0x54f9f5,'value':_0x58d9cb};_0x3419a7[_0x24c709(0x721)](_0x417b97,_0x2e7953);if(_0x54f9f5===_0x24c709(0x690))_0x3f92f8[_0x24c709(0x447)](_0x3c383b=>{const _0x4958f6=_0x24c709;_0x2e7953[_0x4958f6(0x728)]='ok',_0x2e7953[_0x4958f6(0x1d0)]=_0x3c383b,_0x6fe9c1();},_0x1318f6=>{const _0x17db43=_0x24c709;_0x2e7953[_0x17db43(0x728)]='err',_0x2e7953[_0x17db43(0x1d0)]=_0x1318f6,_0x6fe9c1();});return _0x417b97;}function _0x203fe4(_0x2ed477){const _0x5ddc74=_0x5aff;let _0x31e366=_0x1015a5[_0x5ddc74(0x73e)](_0x2ed477);return _0x31e366===undefined&&(_0x31e366=_0x328924++,_0x1015a5['set'](_0x2ed477,_0x31e366),_0x3243f5[_0x5ddc74(0x721)](_0x31e366,{'fn':_0x2ed477,'refs':0x0})),_0x3243f5[_0x5ddc74(0x73e)](_0x31e366)[_0x5ddc74(0x19d)]++,_0x31e366;}function _0x5c8b26(_0x359189){const _0x18815a=_0x5aff,_0x177d5e=_0x3243f5[_0x18815a(0x73e)](_0x359189);if(!_0x177d5e)return;--_0x177d5e[_0x18815a(0x19d)]<=0x0&&(_0x3243f5[_0x18815a(0x62a)](_0x359189),_0x1015a5[_0x18815a(0x62a)](_0x177d5e['fn']));}function _0x27da46(_0x4b096a){const _0x3695d5=_0x5aff,_0x2b7c99=_0x3243f5[_0x3695d5(0x73e)](_0x4b096a);if(!_0x2b7c99)throw new Error(_0x3695d5(0x6f6)+_0x4b096a);return _0x2b7c99['fn'];}function _0x21ae90(_0x9efed8){const _0x204f2f=_0x5aff;if(_0x9efed8&&typeof _0x9efed8['then']===_0x204f2f(0x656)){const _0x32cdf9=_0x355440++,_0x486e2e={'state':'pending','value':undefined};return _0x3419a7[_0x204f2f(0x721)](_0x32cdf9,_0x486e2e),_0x9efed8[_0x204f2f(0x447)](_0x2ae24f=>{const _0x4cfa2d=_0x204f2f;_0x486e2e['state']='ok',_0x486e2e[_0x4cfa2d(0x1d0)]=_0x2ae24f,_0x6fe9c1();},_0x54950c=>{const _0x5044e7=_0x204f2f;_0x486e2e['state']='err',_0x486e2e[_0x5044e7(0x1d0)]=_0x54950c,_0x6fe9c1();}),_0x32cdf9;}return 0x0;}let _0x1a2b89=()=>{},_0x55e72c=null;function _0xe2e53f(_0x52921f,_0x5bf046=null){_0x1a2b89=_0x52921f,_0x55e72c=_0x5bf046;}function _0x3e9398(_0x19804c){return _0x55e72c===_0x19804c;}function _0x6fe9c1(){_0x1a2b89();}function _0x59ed9f(_0x4f1add){const _0x4ee505=_0x5aff,_0x14febc=_0x3419a7[_0x4ee505(0x73e)](_0x4f1add);if(!_0x14febc)return{'state':_0x4ee505(0x342),'error':{'message':_0x4ee505(0xbb)}};if(_0x14febc[_0x4ee505(0x728)]==='pending')return{'state':'pending'};_0x3419a7[_0x4ee505(0x62a)](_0x4f1add);if(_0x14febc['state']==='ok')return{'state':'ok','value':_0x14febc[_0x4ee505(0x1d0)]};const _0x347274=_0x14febc[_0x4ee505(0x1d0)];return{'state':_0x4ee505(0x342),'error':{'message':_0x347274&&_0x347274[_0x4ee505(0x3f1)]!=null?String(_0x347274['message']):String(_0x347274),'stack':_0x347274&&_0x347274[_0x4ee505(0x2b9)],'code':_0x347274&&_0x347274[_0x4ee505(0x330)],'status':_0x347274&&typeof _0x347274['status']===_0x4ee505(0x1f1)?_0x347274[_0x4ee505(0x422)]:undefined,'hold':!!(_0x347274&&_0x347274[_0x4ee505(0x457)]===!![])}};}function _0x45e8df(_0x2edab1,_0x3b2dca){const _0x2541dc=_0x5aff;_0x4b289e[_0x2541dc(0x721)](_0x2edab1,_0x3b2dca);}function _0x4729b9(_0x3d3591){const _0x1a5e45=_0x5aff;_0x4b289e[_0x1a5e45(0x62a)](_0x3d3591);}let _0x739331=0x0;function _0x2a84dc(){return _0x739331>0x0;}function _0x158a02(){const _0x279a09=_0x5aff;_0x739331++;try{return _0x41d887[_0x279a09(0x518)](undefined,arguments);}finally{_0x739331--;}}function _0x41d887(_0x5c765a,_0x31751e,_0x388d13,_0x5f49bc,_0x5351a2,_0x101a0d){const _0x40c742=_0x5aff;switch(_0x5c765a){case _0x40c742(0x6ee):return _0x203fe4(_0x31751e);case'unreg':return _0x5c8b26(_0x31751e);case _0x40c742(0x772):{const _0x4f627e=Array[_0x40c742(0x175)][_0x40c742(0x49d)]['call'](arguments,0x2),_0x23e7b4=_0x27da46(_0x31751e)[_0x40c742(0x518)](undefined,_0x4f627e);return _0x23e7b4&&typeof _0x23e7b4[_0x40c742(0x447)]===_0x40c742(0x656)?_0x3ddc15(_0x23e7b4):_0x23e7b4;}case _0x40c742(0x738):{const _0x538685=Array[_0x40c742(0x175)][_0x40c742(0x49d)][_0x40c742(0x772)](arguments,0x2),_0x1c2c37=_0x27da46(_0x31751e)[_0x40c742(0x518)](undefined,_0x538685);if(_0x1c2c37&&typeof _0x1c2c37['then']===_0x40c742(0x656))return{'$token':_0x21ae90(_0x1c2c37)};return{'$value':_0x1c2c37===undefined?null:_0x1c2c37,'$undef':_0x1c2c37===undefined};}case'event':{const _0xc74135=_0x4b289e['get'](_0x31751e);if(_0xc74135)_0xc74135[_0x40c742(0x196)](_0x388d13,_0x5f49bc);return undefined;}case _0x40c742(0x66c):{const _0x1ed24d=_0x4b289e[_0x40c742(0x73e)](_0x31751e);if(_0x1ed24d)_0x1ed24d['_log'](_0x388d13);return undefined;}case _0x40c742(0x6a0):return _0x3c42b6(_0x31751e,_0x388d13,_0x5f49bc,_0x5351a2,_0x101a0d,arguments[0x6],arguments[0x7]);case _0x40c742(0x3d4):return _0x5a665f(_0x31751e,_0x388d13,_0x5f49bc);case _0x40c742(0x387):return _0x40b4ec(_0x31751e,_0x388d13,_0x5f49bc,_0x5351a2,_0x101a0d,arguments[0x6]);case _0x40c742(0x5e3):return _0x3b95db[_0x40c742(0x518)](null,Array[_0x40c742(0x175)]['slice'][_0x40c742(0x772)](arguments,0x1));case _0x40c742(0x22e):return _0xd3f844(_0x31751e,_0x388d13,_0x5f49bc);case _0x40c742(0x705):return _0x59ed9f(_0x31751e);case _0x40c742(0x7b7):{const _0x26d300=((async()=>{const _0x3aeb44=_0x40c742,_0x35da28=await globalThis[_0x3aeb44(0x293)](_0x31751e);if(!_0x35da28['ok']){const _0x106599=new Error(_0x3aeb44(0xb7)+_0x35da28['status']);_0x106599[_0x3aeb44(0x330)]=_0x3aeb44(0x6b3);throw _0x106599;}return _0x35da28[_0x3aeb44(0x2d2)]();})());return _0x3ddc15(_0x26d300)??null;}case _0x40c742(0x5e8):return _0xe2f0d4(_0x31751e,_0x388d13,_0x5f49bc);case _0x40c742(0x2c7):return _0x253451(_0x31751e,_0x388d13,_0x5f49bc);case'stor':return _0x553aeb(_0x31751e,_0x388d13,_0x5f49bc);default:throw new Error('okdb-node:\x20unknown\x20bridge\x20op\x20'+_0x5c765a);}}return bridge_1={'inNativeCall':_0x2a84dc,'regObject':_0xd52a37,'checkSignals':_0x41bc50,'setCurrentDb':_0x36369f,'forgetDb':_0xc9da0b,'storePayload':_0x5f2409,'registerEnv':_0x585599,'resolvePayload':_0x3468c2,'bridge':_0x158a02,'reg':_0x203fe4,'unreg':_0x5c8b26,'fnOf':_0x27da46,'track':_0x21ae90,'resolve':_0x59ed9f,'registerTarget':_0x45e8df,'unregisterTarget':_0x4729b9,'setKick':_0xe2e53f,'kickOwnedBy':_0x3e9398},bridge_1;}var writebatch,hasRequiredWritebatch;function requireWritebatch(){const _0xfd4d3f=_0x2dfd83;if(hasRequiredWritebatch)return writebatch;hasRequiredWritebatch=0x1;const {reclass:_0x53170e}=requireErrors(),_0x39d935=requireBridge(),_0x5ec4d5=new Map();let _0x115b47=null;function _0x2216ec(_0x21beae){const _0x1e0b33=_0x5aff;if(_0x115b47)return;_0x115b47=_0x21beae,_0x21beae[_0x1e0b33(0x473)](_0x10b727);}function _0x10b727(){const _0x40810f=_0x5aff,_0xea5365=_0x115b47[_0x40810f(0x32b)]();for(const _0x357a92 of _0xea5365){const _0x5951ca=_0x5ec4d5['get'](_0x357a92);_0x5951ca&&(_0x5ec4d5[_0x40810f(0x62a)](_0x357a92),_0x5951ca());}}function _0xf924b7(_0x1fd7fe,_0x4440ca){const _0x3590b9=_0x5aff;_0x5ec4d5[_0x3590b9(0x721)](_0x1fd7fe,_0x4440ca);}class _0x492343{constructor(_0x4ab84d){const _0x4ed740=_0x5aff;this['db']=_0x4ab84d,this['queue']=[],this[_0x4ed740(0xfb)]=![],this[_0x4ed740(0x496)]=![],this[_0x4ed740(0x2bb)]=new Set();}[_0xfd4d3f(0xc8)](_0x475be7,_0x294978,_0x3df37b,_0x20c933){const _0x41adc9=_0xfd4d3f;if(_0x39d935[_0x41adc9(0x406)]())try{return Promise[_0x41adc9(0x705)](this['db']['_call'](_0x475be7,_0x294978,_0x3df37b,_0x20c933));}catch(_0x2dccf7){return Promise[_0x41adc9(0x75e)](_0x2dccf7);}const _0x2da463=new Promise((_0x1fc6a1,_0x487a03)=>{const _0x150e64=_0x41adc9;this['queue'][_0x150e64(0x782)]({'item':[_0x475be7,_0x294978,_0x3df37b,_0x20c933],'resolve':_0x1fc6a1,'reject':_0x487a03});});this[_0x41adc9(0x2bb)][_0x41adc9(0x694)](_0x2da463);const _0x34c28c=()=>this['inflight']['delete'](_0x2da463);return _0x2da463[_0x41adc9(0x447)](_0x34c28c,_0x34c28c),!this['scheduled']&&(this[_0x41adc9(0xfb)]=!![],setImmediate(()=>{const _0x5a31b0=_0x41adc9;this[_0x5a31b0(0xfb)]=![],this[_0x5a31b0(0x53d)]();})),_0x2da463;}[_0xfd4d3f(0x53d)](){const _0x54f8e6=_0xfd4d3f;if(!this[_0x54f8e6(0x431)][_0x54f8e6(0x42c)])return;if(this['inBatch']){!this[_0x54f8e6(0xfb)]&&(this[_0x54f8e6(0xfb)]=!![],setImmediate(()=>{const _0x5f3667=_0x54f8e6;this['scheduled']=![],this[_0x5f3667(0x53d)]();}));return;}const _0x5d6078=this['queue'];this[_0x54f8e6(0x431)]=[],this['_run'](_0x5d6078);}[_0xfd4d3f(0x6e7)](_0x2f0d85){const _0x320a89=_0xfd4d3f;let _0x219d89;this[_0x320a89(0x496)]=!![];try{_0x219d89=this['db']['_native'][_0x320a89(0x259)](_0x2f0d85['map'](_0x50efc5=>_0x50efc5[_0x320a89(0x7c9)]));}catch(_0x1d7f09){this['inBatch']=![];if(_0x2f0d85[_0x320a89(0x42c)]>0x1){for(const _0x2d5331 of _0x2f0d85)this[_0x320a89(0x6e7)]([_0x2d5331]);return;}const _0x6f7b50=_0x53170e(_0x1d7f09);for(const _0x2e4033 of _0x2f0d85)_0x2e4033[_0x320a89(0x75e)](_0x6f7b50);return;}finally{this[_0x320a89(0x496)]=![];}try{this['db'][_0x320a89(0x166)][_0x320a89(0x7a8)]();}catch{}const [_0x4dadc2,_0xa83ebb]=_0x219d89;_0xf924b7(_0xa83ebb,()=>{const _0x2297de=_0x320a89;for(let _0x301907=0x0;_0x301907<_0x2f0d85[_0x2297de(0x42c)];_0x301907++){const _0x1be529=_0x4dadc2[_0x301907];if(_0x1be529&&_0x1be529[0x0])_0x2f0d85[_0x301907][_0x2297de(0x705)](_0x1be529[0x1]);else _0x2f0d85[_0x301907][_0x2297de(0x75e)](_0x53170e(_0x1be529?_0x1be529[0x1]:new Error(_0x2297de(0x38d))));}});}async['drain'](){const _0x24a828=_0xfd4d3f;this['commit']();while(this[_0x24a828(0x2bb)][_0x24a828(0x479)]){await Promise[_0x24a828(0x780)]([...this[_0x24a828(0x2bb)]]),this[_0x24a828(0x53d)]();}let _0x1f485f;try{_0x1f485f=this['db'][_0x24a828(0x2a7)]['flushTicket']();}catch{return;}await new Promise(_0x29a5e0=>_0xf924b7(_0x1f485f,_0x29a5e0));}}return writebatch={'install':_0x2216ec,'WriteBatch':_0x492343,'whenSettled':_0xf924b7},writebatch;}var pump,hasRequiredPump;function requirePump(){const _0x52259a=_0x2dfd83;if(hasRequiredPump)return pump;hasRequiredPump=0x1;const _0x1525a0=Number(process.env.OKDB_NATIVE_IDLE_MS)||0xfa;class _0x2e1299{constructor(_0x3db0cc){const _0x48db70=_0x5aff;this[_0x48db70(0x4b6)]=_0x3db0cc,this['timer']=null,this[_0x48db70(0x4aa)]=null,this[_0x48db70(0x50d)]=![],this[_0x48db70(0x191)]=![],this[_0x48db70(0x726)]=![],this[_0x48db70(0x404)]=![],this[_0x48db70(0x2d9)]=0x0,this[_0x48db70(0x7a7)]=[],this[_0x48db70(0x642)]=[];}['nextTurn'](_0x4518c4){return new Promise(_0x1449d1=>{const _0x27ba29=_0x5aff,_0x140a1f=setTimeout(_0x3c7e12,_0x4518c4);function _0x3c7e12(){clearTimeout(_0x140a1f),_0x1449d1();}this['turnWaiters'][_0x27ba29(0x782)](_0x3c7e12);});}[_0x52259a(0x421)](){const _0x46c5f8=_0x52259a;if(this[_0x46c5f8(0x642)][_0x46c5f8(0x42c)]===0x0)return;const _0x55556b=this[_0x46c5f8(0x642)];this[_0x46c5f8(0x642)]=[];for(const _0x173fc0 of _0x55556b)_0x173fc0();}[_0x52259a(0x160)](){const _0x45a05a=_0x52259a;this[_0x45a05a(0x191)]=![],this[_0x45a05a(0x7a8)]();}['stop'](){const _0x9f2b8=_0x52259a;this[_0x9f2b8(0x191)]=!![];if(this['timer'])clearTimeout(this[_0x9f2b8(0x409)]);if(this[_0x9f2b8(0x4aa)])clearImmediate(this[_0x9f2b8(0x4aa)]);this['timer']=this['immediate']=null,this[_0x9f2b8(0x421)]();}[_0x52259a(0x7a8)](){const _0x19a971=_0x52259a;if(this[_0x19a971(0x191)]||this[_0x19a971(0x4aa)])return;this[_0x19a971(0x409)]&&(clearTimeout(this[_0x19a971(0x409)]),this['timer']=null),this['immediate']=setImmediate(()=>{const _0xc7b1e0=_0x19a971;this['immediate']=null,this[_0xc7b1e0(0x14e)]();});}[_0x52259a(0x14e)](){const _0x17653f=_0x52259a;if(this[_0x17653f(0x191)]||this[_0x17653f(0x726)]){this[_0x17653f(0x404)]=!![];return;}this[_0x17653f(0x726)]=!![];let _0x1c77f7;try{this[_0x17653f(0x2d9)]++,_0x1c77f7=this[_0x17653f(0x4b6)]['pump']();if(this['afterTurn'])this['afterTurn']();}catch(_0xb8ae62){_0x1c77f7=_0x1525a0,process[_0x17653f(0x258)](()=>{throw _0xb8ae62;});}finally{this[_0x17653f(0x726)]=![],this[_0x17653f(0x421)]();}if(this['stopped']||_0x1c77f7===-0x2)return;if(this[_0x17653f(0x404)])return this['dirty']=![],this['wake']();const _0x2f42d1=_0x1c77f7<0x0?_0x1525a0:Math['max'](0x0,Math[_0x17653f(0x492)](_0x1c77f7,_0x1525a0));if(_0x2f42d1<=0x0)return this[_0x17653f(0x7a8)]();this[_0x17653f(0x409)]=setTimeout(()=>{const _0x267cf3=_0x17653f;this[_0x267cf3(0x409)]=null,this[_0x267cf3(0x14e)]();},Math['ceil'](_0x2f42d1));if(this[_0x17653f(0x409)][_0x17653f(0x212)])this[_0x17653f(0x409)][_0x17653f(0x212)]();}}return pump={'Pumper':_0x2e1299},pump;}var dist$1={},hasRequiredDist$1;function requireDist$1(){const _0x8f9ce=_0x2dfd83;if(hasRequiredDist$1)return dist$1;hasRequiredDist$1=0x1;const _0x5d9fae=Symbol[_0x8f9ce(0x11a)](_0x8f9ce(0xe2)),_0x53983f={'value':null,'done':!![]},_0x47cef5={'value':null,'done':!![]};!Symbol[_0x8f9ce(0x470)]&&(Symbol['asyncIterator']=Symbol['for'](_0x8f9ce(0x517)));const _0x2f77d0={};class _0x15d72a{constructor(_0x1401dd){const _0x8a696a=_0x8f9ce;_0x1401dd&&(this[_0x8a696a(0x77f)]=_0x1401dd[Symbol[_0x8a696a(0x3f3)]][_0x8a696a(0x215)](_0x1401dd));}[_0x8f9ce(0x78f)](_0x123e81){const _0x3c033c=_0x8f9ce;let _0x7416e1=this,_0x2119f5=new _0x15d72a();return _0x2119f5[_0x3c033c(0x77f)]=(_0x3ea029=_0x2f77d0)=>{const _0x746616=_0x3c033c,{async:_0x39617a}=_0x3ea029;let _0x5ac25f=_0x7416e1[_0x39617a?Symbol[_0x746616(0x470)]:Symbol[_0x746616(0x3f3)]](_0x3ea029);if(!_0x39617a)_0x7416e1['isSync']=!![];let _0x56d038=-0x1;return{'next'(_0x2ab0a6){const _0x311195=_0x746616;let _0x489558;do{let _0x3cc6e3;try{if(_0x2ab0a6)_0x3cc6e3=_0x2ab0a6,_0x2ab0a6=null;else{_0x56d038++,_0x3cc6e3=_0x5ac25f[_0x311195(0x5fc)]();if(_0x3cc6e3[_0x311195(0x447)])return!_0x39617a&&this[_0x311195(0x6f0)](new Error(_0x311195(0x1c7))),_0x3cc6e3[_0x311195(0x447)](_0x41672d=>this[_0x311195(0x5fc)](_0x41672d),_0x36216d=>{return this['throw'](_0x36216d);});}if(_0x3cc6e3['done']===!![]){this['done']=!![];if(_0x2119f5[_0x311195(0x183)])_0x2119f5[_0x311195(0x183)]();return _0x3cc6e3;}try{_0x489558=_0x123e81[_0x311195(0x772)](_0x7416e1,_0x3cc6e3[_0x311195(0x1d0)],_0x56d038);if(_0x489558&&_0x489558['then']&&_0x39617a)return _0x489558[_0x311195(0x447)](_0x26cd32=>_0x26cd32===_0x5d9fae?this[_0x311195(0x5fc)]():{'value':_0x26cd32},_0x20b58a=>{const _0x11883c=_0x311195;if(_0x3ea029[_0x11883c(0x40d)])_0x20b58a[_0x11883c(0x4b8)]=!![];return this[_0x11883c(0x6f0)](_0x20b58a);});}catch(_0x59b359){if(_0x3ea029[_0x311195(0x40d)])_0x59b359[_0x311195(0x4b8)]=!![];throw _0x59b359;}}catch(_0x11be73){if(_0x2119f5[_0x311195(0x676)])try{_0x489558=_0x2119f5[_0x311195(0x676)](_0x11be73,_0x56d038);}catch(_0x477839){return this[_0x311195(0x6f0)](_0x477839);}else return this[_0x311195(0x6f0)](_0x11be73);}}while(_0x489558===_0x5d9fae);if(_0x489558===_0x53983f)return this[_0x311195(0x6a8)]();return{'value':_0x489558};},'return'(_0x519b2c){const _0x49bbfb=_0x746616;if(!this[_0x49bbfb(0x320)]){_0x47cef5[_0x49bbfb(0x1d0)]=_0x519b2c,this['done']=!![];if(_0x2119f5[_0x49bbfb(0x183)])_0x2119f5[_0x49bbfb(0x183)]();_0x5ac25f[_0x49bbfb(0x6a8)]?.();}return _0x47cef5;},'throw'(_0xbad6d9){const _0x7ffc39=_0x746616;if(_0xbad6d9[_0x7ffc39(0x4b8)]){if(_0x2119f5[_0x7ffc39(0xf3)])try{return{'value':_0x2119f5[_0x7ffc39(0xf3)](_0xbad6d9)};}catch(_0x671754){this[_0x7ffc39(0x6a8)]();throw _0x671754;}if(_0x3ea029[_0x7ffc39(0x40d)])throw _0xbad6d9;}this[_0x7ffc39(0x6a8)]();throw _0xbad6d9;}};},_0x2119f5;}[Symbol[_0x8f9ce(0x470)]](_0x1c5b15){if(_0x1c5b15)_0x1c5b15={..._0x1c5b15,'async':!![]};else _0x1c5b15={'async':!![]};return this['iterator']=this['iterate'](_0x1c5b15);}[Symbol[_0x8f9ce(0x3f3)]](_0x493112){const _0x5975d7=_0x8f9ce;return this[_0x5975d7(0x3f3)]=this[_0x5975d7(0x77f)](_0x493112);}[_0x8f9ce(0xe5)](_0x341093){const _0x12ade0=_0x8f9ce;let _0x36c743=this[_0x12ade0(0x78f)](_0x3fee07=>{const _0x39a254=_0x12ade0;let _0x504fab=_0x341093(_0x3fee07);if(_0x504fab?.[_0x39a254(0x447)])return _0x504fab[_0x39a254(0x447)](_0x51f9b8=>_0x51f9b8?_0x3fee07:_0x5d9fae);else return _0x504fab?_0x3fee07:_0x5d9fae;}),_0x14998a=_0x36c743[_0x12ade0(0x77f)];return _0x36c743['iterate']=(_0x2957e0=_0x2f77d0)=>{const _0x302291=_0x12ade0;if(_0x2957e0[_0x302291(0x40d)])_0x2957e0={..._0x2957e0,'continueOnRecoverableError':![]};return _0x14998a(_0x2957e0);},_0x36c743;}[_0x8f9ce(0x356)](_0x164cce){const _0xd4d8c5=_0x8f9ce;let _0x2aadb7=this[_0xd4d8c5(0x3f3)]=this[_0xd4d8c5(0x77f)](),_0xc1b0a2;while((_0xc1b0a2=_0x2aadb7[_0xd4d8c5(0x5fc)]())[_0xd4d8c5(0x320)]!==!![]){_0x164cce(_0xc1b0a2[_0xd4d8c5(0x1d0)]);}}[_0x8f9ce(0x543)](_0x42f37c){const _0x4225bf=_0x8f9ce;let _0x19720e=new _0x15d72a();return _0x19720e[_0x4225bf(0x77f)]=(_0x15aa32=_0x2f77d0)=>{const _0xcbd65=_0x4225bf;let _0x18a692=this[_0xcbd65(0x3f3)]=this['iterate'](_0x15aa32),_0x371047=!![];function _0x48ce63(_0x568fd3){const _0x747411=_0xcbd65;if(_0x371047)try{_0x371047=![],_0x18a692=_0x42f37c[_0x15aa32['async']?Symbol[_0x747411(0x470)]:Symbol['iterator']](),_0x568fd3=_0x18a692[_0x747411(0x5fc)]();if(_0x19720e[_0x747411(0x183)]){if(_0x568fd3[_0x747411(0x447)]){if(!_0x15aa32[_0x747411(0x411)])throw new Error(_0x747411(0x1c7));_0x568fd3[_0x747411(0x447)](_0x346731=>{const _0xf731bc=_0x747411;if(_0x346731[_0xf731bc(0x320)]())_0x19720e[_0xf731bc(0x183)]();},_0x574f0a=>{const _0x2aec25=_0x747411;this[_0x2aec25(0x6a8)]();throw _0x574f0a;});}else{if(_0x568fd3['done'])_0x19720e[_0x747411(0x183)]();}}}catch(_0x128e51){this[_0x747411(0x6f0)](_0x128e51);}else{if(_0x19720e[_0x747411(0x183)])_0x19720e[_0x747411(0x183)]();}return _0x568fd3;}return{'next'(){const _0xfc2bb2=_0xcbd65;try{let _0x3e4159=_0x18a692[_0xfc2bb2(0x5fc)]();if(_0x3e4159['then']){if(!_0x15aa32[_0xfc2bb2(0x411)])throw new Error(_0xfc2bb2(0x1c7));return _0x3e4159[_0xfc2bb2(0x447)](_0x48beb1=>{const _0x5df779=_0xfc2bb2;if(_0x48beb1[_0x5df779(0x320)])return _0x48ce63(_0x48beb1);return _0x48beb1;});}if(_0x3e4159[_0xfc2bb2(0x320)])return _0x48ce63(_0x3e4159);return _0x3e4159;}catch(_0x485599){this[_0xfc2bb2(0x6f0)](_0x485599);}},'return'(_0x466db0){const _0xbc2ca4=_0xcbd65;if(!this['done']){_0x47cef5[_0xbc2ca4(0x1d0)]=_0x466db0,this[_0xbc2ca4(0x320)]=!![];if(_0x19720e['onDone'])_0x19720e[_0xbc2ca4(0x183)]();_0x18a692[_0xbc2ca4(0x6a8)]();}return _0x47cef5;},'throw'(_0x1be978){const _0x5b6bad=_0xcbd65;if(_0x15aa32[_0x5b6bad(0x40d)])throw _0x1be978;this[_0x5b6bad(0x6a8)]();throw _0x1be978;}};},_0x19720e;}[_0x8f9ce(0x5cd)](_0x3cb005){const _0x4e32c9=_0x8f9ce;let _0x257d83=new _0x15d72a();return _0x257d83[_0x4e32c9(0x77f)]=(_0x3db27f=_0x2f77d0)=>{const _0x31d9cd=_0x4e32c9;let _0x55ffd4=this[_0x31d9cd(0x3f3)]=this[_0x31d9cd(0x77f)](_0x3db27f),_0x61b0b9;return{'next'(_0x1c556f){const _0x2176b4=_0x31d9cd;try{do{if(_0x61b0b9){let _0x32401d;if(_0x1c556f)_0x32401d=_0x1c556f,_0x1c556f=undefined;else _0x32401d=_0x61b0b9[_0x2176b4(0x5fc)]();if(_0x32401d['then']){if(!_0x3db27f[_0x2176b4(0x411)])throw new Error(_0x2176b4(0x1c7));return _0x32401d[_0x2176b4(0x447)](_0x5b2029=>this[_0x2176b4(0x5fc)](_0x5b2029));}if(!_0x32401d['done'])return _0x32401d;}let _0x365ef6;if(_0x1c556f!=undefined)_0x365ef6=_0x1c556f,_0x1c556f=undefined;else _0x365ef6=_0x55ffd4[_0x2176b4(0x5fc)]();if(_0x365ef6[_0x2176b4(0x447)]){if(!_0x3db27f[_0x2176b4(0x411)])throw new Error(_0x2176b4(0x1c7));return _0x61b0b9=undefined,_0x365ef6[_0x2176b4(0x447)](_0x58d3de=>this[_0x2176b4(0x5fc)](_0x58d3de));}if(_0x365ef6[_0x2176b4(0x320)]){if(_0x257d83[_0x2176b4(0x183)])_0x257d83[_0x2176b4(0x183)]();return _0x365ef6;}try{let _0x105996=_0x3cb005(_0x365ef6[_0x2176b4(0x1d0)]);if(_0x105996?.[_0x2176b4(0x447)]){if(!_0x3db27f[_0x2176b4(0x411)])throw new Error(_0x2176b4(0x1c7));return _0x105996[_0x2176b4(0x447)](_0x5226a4=>{const _0x3be1ca=_0x2176b4;return Array['isArray'](_0x5226a4)||_0x5226a4 instanceof _0x15d72a?(_0x61b0b9=_0x5226a4[Symbol[_0x3be1ca(0x3f3)]](),this['next']()):(_0x61b0b9=null,{'value':_0x5226a4});},_0x353847=>{if(_0x3db27f['continueOnRecoverableError'])_0x353847['continueIteration']=!![];this['throw'](_0x353847);});}if(Array[_0x2176b4(0x796)](_0x105996)||_0x105996 instanceof _0x15d72a)_0x61b0b9=_0x105996[Symbol[_0x2176b4(0x3f3)]]();else return _0x61b0b9=null,{'value':_0x105996};}catch(_0x44879b){if(_0x3db27f['continueOnRecoverableError'])_0x44879b[_0x2176b4(0x4b8)]=!![];throw _0x44879b;}}while(!![]);}catch(_0x5440e0){this['throw'](_0x5440e0);}},'return'(){const _0x2a900b=_0x31d9cd;if(_0x257d83[_0x2a900b(0x183)])_0x257d83[_0x2a900b(0x183)]();if(_0x61b0b9)_0x61b0b9[_0x2a900b(0x6a8)]();return _0x55ffd4[_0x2a900b(0x6a8)]();},'throw'(_0x380c52){const _0x3d006e=_0x31d9cd;if(_0x3db27f[_0x3d006e(0x40d)])throw _0x380c52;if(_0x257d83[_0x3d006e(0x183)])_0x257d83['onDone']();if(_0x61b0b9)_0x61b0b9[_0x3d006e(0x6a8)]();this['return']();throw _0x380c52;}};},_0x257d83;}[_0x8f9ce(0x49d)](_0x1c430f,_0x3ace3c){const _0x31fba7=_0x8f9ce;let _0xef248e=this[_0x31fba7(0x78f)]((_0x581486,_0x3feb49)=>{const _0x38c1ba=_0x31fba7;if(_0x3feb49<_0x1c430f)return _0x5d9fae;if(_0x3feb49>=_0x3ace3c)return _0x53983f[_0x38c1ba(0x1d0)]=_0x581486,_0x53983f;return _0x581486;});return _0xef248e[_0x31fba7(0x676)]=(_0x3caf59,_0xf6c341)=>{if(_0xf6c341<_0x1c430f)return _0x5d9fae;if(_0xf6c341>=_0x3ace3c)return _0x53983f;throw _0x3caf59;},_0xef248e;}[_0x8f9ce(0x268)](_0x4c9fd9){const _0xb1ccdc=_0x8f9ce;if(typeof _0x4c9fd9!==_0xb1ccdc(0x656))throw new TypeError('Expected\x20catch\x20callback\x20to\x20be\x20a\x20function');let _0x266455=this[_0xb1ccdc(0x78f)](_0x592adc=>{return _0x592adc;}),_0x27711e=_0x266455[_0xb1ccdc(0x77f)];return _0x266455[_0xb1ccdc(0x77f)]=(_0x2bc6b3=_0x2f77d0)=>{return _0x27711e({..._0x2bc6b3,'continueOnRecoverableError':!![]});},_0x266455[_0xb1ccdc(0xf3)]=_0x4c9fd9,_0x266455;}[_0x8f9ce(0x5fc)](){const _0x358b7f=_0x8f9ce;if(!this[_0x358b7f(0x3f3)])this[_0x358b7f(0x3f3)]=this['iterate']();return this[_0x358b7f(0x3f3)]['next']();}[_0x8f9ce(0x6c4)](){const _0x1c01f4=_0x8f9ce;if(this['asArray']&&this[_0x1c01f4(0x18f)][_0x1c01f4(0x356)])return this[_0x1c01f4(0x18f)];const _0x251be8=new Error(_0x1c01f4(0x7a0));_0x251be8['resolution']=this['asArray'];throw _0x251be8;}get[_0x8f9ce(0x18f)](){const _0x2775cb=_0x8f9ce;if(this[_0x2775cb(0x17b)])return this[_0x2775cb(0x17b)];let _0x2bc72a=new Promise((_0x19d226,_0xe6a34e)=>{const _0x2db184=_0x2775cb;let _0x13d093=this[_0x2db184(0x77f)](!![]),_0xff71e8=[],_0x40c0bd=this;Object['defineProperty'](_0xff71e8,_0x2db184(0x77e),{'value':_0x40c0bd});function _0x1ddf43(_0x3e7b84){const _0x2b7a7e=_0x2db184;while(_0x3e7b84[_0x2b7a7e(0x320)]!==!![]){if(_0x3e7b84[_0x2b7a7e(0x447)])return _0x3e7b84['then'](_0x1ddf43);else _0xff71e8[_0x2b7a7e(0x782)](_0x3e7b84[_0x2b7a7e(0x1d0)]);_0x3e7b84=_0x13d093['next']();}_0x19d226(_0x40c0bd[_0x2b7a7e(0x17b)]=_0xff71e8);}_0x1ddf43(_0x13d093['next']());});return _0x2bc72a[_0x2775cb(0x77e)]=this,this['_asArray']||(this[_0x2775cb(0x17b)]=_0x2bc72a);}[_0x8f9ce(0x297)](){const _0x41894c=_0x8f9ce;return this[_0x41894c(0x18f)];}['at'](_0x3f8e5a){for(let _0x538129 of this){if(_0x3f8e5a--===0x0)return _0x538129;}}}return _0x15d72a['prototype'][_0x8f9ce(0x108)]=_0x53983f,dist$1[_0x8f9ce(0x766)]=_0x15d72a,dist$1[_0x8f9ce(0x6c3)]=_0x5d9fae,dist$1;}var iterable,hasRequiredIterable;function requireIterable(){const _0x137299=_0x2dfd83;if(hasRequiredIterable)return iterable;hasRequiredIterable=0x1;const {ExtendedIterable:_0x2cbb8d}=requireDist$1(),_0x5c3c10=Number(process.env.OKDB_NATIVE_RANGE_CHUNK)||0x3e8,_0x5e5921=Math[_0x137299(0x492)](_0x5c3c10,Number(process.env.OKDB_NATIVE_ROW_CHUNK)||0x100),_0x527342=new Set([_0x137299(0x3bd),'byIndex','query',_0x137299(0x76b)]),_0x55bf6c=Math[_0x137299(0x492)](_0x5e5921,Number(process.env.OKDB_NATIVE_RANGE_FIRST)||0x1),_0x323979=0x4,_0x9eaad4=(_0x2c3b98,_0x46fac6=_0x5c3c10)=>Math['min'](_0x46fac6,_0x2c3b98*_0x323979),_0x292c38={'value':undefined,'done':!![]};function _0x13950(_0x241359){const _0x4cf29d=new _0x2cbb8d();return _0x4cf29d['iterate']=()=>{let _0x490d26=0x0;return{'next'(){const _0x22ed4e=_0x5aff;return _0x490d26<_0x241359[_0x22ed4e(0x42c)]?{'value':_0x241359[_0x490d26++],'done':![]}:{'value':undefined,'done':!![]};},'return'(){const _0x15cfd7=_0x5aff;return _0x490d26=_0x241359[_0x15cfd7(0x42c)],{'value':undefined,'done':!![]};},'throw'(){const _0x733cc7=_0x5aff;return _0x490d26=_0x241359[_0x733cc7(0x42c)],{'value':undefined,'done':!![]};}};},_0x4cf29d;}const _0x1eee0c=_0x22c594=>typeof _0x22c594==='number'&&!Number['isNaN'](_0x22c594)?Math[_0x137299(0x57c)](0x0,Math[_0x137299(0xfd)](_0x22c594)):Infinity,_0x5e432e=_0x78f687=>typeof _0x78f687===_0x137299(0x1f1)?Math[_0x137299(0x57c)](0x0,Math['trunc'](_0x78f687))||0x0:0x0;function _0x4f52dd(_0x2c0797,_0x994074,_0x1c333e,_0x25d9a5={}){const _0x3d2fce=_0x137299,_0x50f130=new _0x2cbb8d(),_0x6fb088=(_0x25d9a5[_0x3d2fce(0x613)]||_0x1eee0c)(_0x994074['limit']),_0x36f10b=_0x25d9a5[_0x3d2fce(0x306)]?_0x5e5921:_0x5c3c10,_0x18191a=_0x25d9a5[_0x3d2fce(0x6af)]||((_0x29fd9c,_0x605533)=>{const _0x2a7708=_0x3d2fce;_0x29fd9c[_0x2a7708(0x160)]=_0x605533,_0x29fd9c[_0x2a7708(0x686)]=!![],delete _0x29fd9c[_0x2a7708(0x159)];});let _0x424c52=null;if(_0x25d9a5[_0x3d2fce(0x753)]){const _0xc55ba4={..._0x994074,'limit':Math[_0x3d2fce(0x492)](_0x55bf6c,_0x6fb088)};_0x424c52={'rows':_0x2c0797(_0xc55ba4),'limit':_0xc55ba4[_0x3d2fce(0x5d2)]};const _0x5af1e4=_0x424c52;queueMicrotask(()=>{_0x5af1e4['dropped']=!![];});}return _0x50f130['iterate']=()=>{const _0x526c93=_0x3d2fce;let _0x1e505f=[],_0x4253b6=0x0,_0x12d310=0x0,_0x1c6fc0,_0x62573e=![],_0x131332=![],_0x4b10ae=_0x55bf6c;if(_0x424c52&&!_0x424c52[_0x526c93(0x6d9)]&&!_0x424c52[_0x526c93(0x2ff)]){_0x424c52[_0x526c93(0x2ff)]=!![],_0x1e505f=_0x424c52[_0x526c93(0x306)],_0x62573e=!![],_0x4b10ae=_0x9eaad4(_0x4b10ae,_0x36f10b);if(_0x1e505f[_0x526c93(0x42c)]<_0x424c52[_0x526c93(0x5d2)])_0x131332=!![];if(_0x1e505f[_0x526c93(0x42c)])_0x1c6fc0=_0x1c333e(_0x1e505f[_0x1e505f[_0x526c93(0x42c)]-0x1]);}const _0x4f3807=()=>{const _0x2b3b47=_0x526c93;if(_0x131332)return;const _0x4ce084=_0x6fb088-_0x12d310;if(_0x4ce084<=0x0){_0x131332=!![],_0x1e505f=[];return;}const _0x375e76={..._0x994074,'limit':Math[_0x2b3b47(0x492)](_0x4b10ae,_0x4ce084)};if(_0x62573e)_0x18191a(_0x375e76,_0x1c6fc0);_0x62573e=!![],_0x4b10ae=_0x9eaad4(_0x4b10ae,_0x36f10b),_0x1e505f=_0x2c0797(_0x375e76),_0x4253b6=0x0;if(_0x1e505f['length']<_0x375e76[_0x2b3b47(0x5d2)])_0x131332=!![];if(_0x1e505f[_0x2b3b47(0x42c)])_0x1c6fc0=_0x1c333e(_0x1e505f[_0x1e505f['length']-0x1]);};return{'next'(){const _0x1597be=_0x526c93;if(_0x4253b6>=_0x1e505f[_0x1597be(0x42c)])_0x4f3807();if(_0x4253b6>=_0x1e505f[_0x1597be(0x42c)])return{'value':undefined,'done':!![]};return _0x12d310++,{'value':_0x1e505f[_0x4253b6++],'done':![]};},'return'(){return _0x131332=!![],_0x1e505f=[],{'value':undefined,'done':!![]};},'throw'(){return _0x131332=!![],_0x1e505f=[],{'value':undefined,'done':!![]};}};},_0x50f130;}function _0x12e8a0(_0x885cb5,_0x4d65a0,_0x1c1c2f,_0x4a43b4,_0x7824fa={}){const _0x37608d=_0x137299,_0x54acc7=(_0x7824fa[_0x37608d(0x613)]||_0x1eee0c)(_0x4a43b4&&_0x4a43b4['limit']),_0x1dd265=_0x527342['has'](_0x4d65a0)?_0x5e5921:_0x5c3c10,_0x3c84f2=(_0x7824fa[_0x37608d(0x33b)]||_0x5e432e)(_0x4a43b4&&_0x4a43b4[_0x37608d(0x159)]),_0x50ba75=(_0x47e913,_0x5e173e,_0x300e4a)=>{const _0x5e4d0f=_0x37608d,_0x1fa693=_0x54acc7-_0x5e173e,_0x541e82=Math[_0x5e4d0f(0x492)](_0x300e4a,_0x1fa693),_0x4577ce={'limit':_0x541e82,'offset':_0x3c84f2+_0x5e173e},_0x46c51f=_0x885cb5(_0x5e4d0f(0x624),[_0x47e913,_0x4d65a0,_0x541e82===_0x1fa693?Infinity:_0x541e82,..._0x1c1c2f(_0x4577ce)]);if(_0x46c51f[0x0]===-0x1){const _0x489ea6={'offset':_0x3c84f2+_0x5e173e};if(_0x1fa693!==Infinity)_0x489ea6[_0x5e4d0f(0x5d2)]=_0x1fa693;return{'pin':0x0,'rows':_0x885cb5(_0x4d65a0,_0x1c1c2f(_0x489ea6)),'raw':Infinity,'eager':!![]};}return{'pin':_0x46c51f[0x0],'rows':_0x46c51f[0x1],'raw':_0x46c51f[0x2]};},_0x178f56=_0x2848dc=>{const _0x1e4cd5=_0x37608d;if(_0x2848dc)_0x885cb5(_0x1e4cd5(0x3a0),[_0x2848dc]);};function _0xea8b27(_0x119039,_0x2844b9,_0x2e7e06){const _0x7f266b=_0x37608d;let _0x4fd32e=0x0,_0x47c8ea=[],_0x2fd5f=0x0,_0x52f56c=_0x119039,_0x448c33=_0x55bf6c,_0x2e78e3=_0x54acc7-_0x119039<=0x0;if(_0x2e7e06)({buf:_0x47c8ea,pos:_0x2fd5f,consumed:_0x52f56c,size:_0x448c33,exhausted:_0x2e78e3}=_0x2e7e06);const _0x4ef401=_0x30ea51=>{const _0x245c67=_0x5aff;_0x4fd32e=_0x30ea51[_0x245c67(0x1d3)],_0x47c8ea=_0x30ea51[_0x245c67(0x306)],_0x2fd5f=0x0,_0x52f56c+=_0x30ea51[_0x245c67(0x286)],_0x448c33=_0x9eaad4(_0x448c33,_0x1dd265);if(!_0x4fd32e)_0x2e78e3=!![];};if(_0x2844b9)_0x4ef401(_0x2844b9);const _0x24f3ce=()=>{const _0x56716b=_0x4fd32e;_0x4fd32e=0x0,_0x178f56(_0x56716b);},_0x2870c7={'next'(){const _0x407508=_0x5aff;while(_0x2fd5f>=_0x47c8ea[_0x407508(0x42c)]){if(_0x2e78e3||_0x54acc7-_0x52f56c<=0x0)return _0x2e78e3=!![],_0x24f3ce(),_0x292c38;try{_0x4ef401(_0x50ba75(_0x4fd32e,_0x52f56c,_0x448c33));}catch(_0xb104e4){_0x4fd32e=0x0,_0x2e78e3=!![],_0x47c8ea=[];throw _0xb104e4;}}return{'value':_0x47c8ea[_0x2fd5f++],'done':![]};},'return'(){return _0x24f3ce(),_0x292c38;},'throw'(){return _0x24f3ce(),_0x292c38;},'resumed'(){return _0xea8b27(0x0,null,{'buf':_0x47c8ea,'pos':_0x2fd5f,'consumed':_0x52f56c,'size':_0x448c33,'exhausted':_0x2e78e3});},[Symbol[_0x7f266b(0x3f3)]](){return this;}};return _0x2870c7;}function _0x52a05e(){if(_0x54acc7<=0x0)return null;const _0x34b46b=_0x50ba75(0x0,0x0,_0x55bf6c);return queueMicrotask(()=>{const _0x45f344=_0x5aff;!_0x34b46b[_0x45f344(0x2ff)]&&(_0x34b46b[_0x45f344(0x6d9)]=!![],_0x178f56(_0x34b46b['pin']));}),_0x34b46b;}return{'source':_0xea8b27,'prefetch':_0x52a05e};}function _0x4e6894(_0x327ba3){const _0x3fbc4b=_0x137299;if(!_0x327ba3||_0x327ba3[_0x3fbc4b(0x2ff)]||_0x327ba3[_0x3fbc4b(0x6d9)])return null;return _0x327ba3['taken']=!![],_0x327ba3;}return iterable={'fromArray':_0x13950,'chunkedRange':_0x4f52dd,'pinnedChunks':_0x12e8a0,'claimPrefetch':_0x4e6894,'lmdbLimit':_0x1eee0c,'lmdbOffset':_0x5e432e,'CHUNK':_0x5c3c10,'ROW_CHUNK':_0x5e5921,'FIRST':_0x55bf6c},iterable;}var rawdb,hasRequiredRawdb;function requireRawdb(){const _0x8f30b1=_0x2dfd83;if(hasRequiredRawdb)return rawdb;hasRequiredRawdb=0x1;const {fromArray:_0x24fde6}=requireIterable();class _0x556b7a{constructor(_0x33620c,_0x19ca60='',_0x328e01={},_0x37ce8a=null){const _0xae350e=_0x5aff;this[_0xae350e(0x2e3)]=_0x33620c,this[_0xae350e(0x5d1)]=_0x19ca60,this['dupSort']=!!(_0x328e01&&_0x328e01[_0xae350e(0x58b)]),this[_0xae350e(0x5e4)]=!!(_0x328e01&&_0x328e01[_0xae350e(0x5e4)]),this['_root']=_0x37ce8a||this,this['_buf']=null;}get[_0x8f30b1(0x21e)](){const _0x3f87f7=_0x8f30b1;return this[_0x3f87f7(0x58b)]?!![]:this[_0x3f87f7(0x5e4)]?'v':![];}['_n'](_0x3da0e7,_0x5e672d){const _0x11dc31=_0x8f30b1;return this[_0x11dc31(0x2e3)][_0x11dc31(0x538)]['_call'](_0x11dc31(0x286),this[_0x11dc31(0x2e3)][_0x11dc31(0x5d1)],_0x3da0e7,[this[_0x11dc31(0x5d1)],this[_0x11dc31(0x21e)],..._0x5e672d],!![]);}[_0x8f30b1(0x143)](_0x4ec5db,_0x274476){const _0x264d19=_0x8f30b1;return this[_0x264d19(0x2e3)][_0x264d19(0x538)][_0x264d19(0x11e)](_0x264d19(0x286),this[_0x264d19(0x2e3)][_0x264d19(0x5d1)],_0x4ec5db,[this[_0x264d19(0x5d1)],this[_0x264d19(0x21e)],..._0x274476],![]);}[_0x8f30b1(0x54c)](_0x293b32){const _0x123c09=_0x8f30b1,_0x274818=this[_0x123c09(0x2e3)][_0x123c09(0x3cb)];if(_0x274818)_0x274818[_0x123c09(0x782)]({'sub':this[_0x123c09(0x5d1)],'dup':this['_dupArg'],..._0x293b32});else this['_env'][_0x123c09(0x538)][_0x123c09(0x11e)](_0x123c09(0x286),this[_0x123c09(0x2e3)]['name'],_0x123c09(0x195),[[{'sub':this[_0x123c09(0x5d1)],'dup':this[_0x123c09(0x21e)],..._0x293b32}]],!![]);}['get'](_0x12fbf4){const _0x2f8ea7=_0x8f30b1;return this[_0x2f8ea7(0x143)]('get',[_0x12fbf4]);}['getEntry'](_0x40507d){const _0x4c646f=_0x8f30b1;if(this[_0x4c646f(0x5e4)])return this[_0x4c646f(0x143)](_0x4c646f(0x465),[_0x40507d]);const _0x303169=this[_0x4c646f(0x73e)](_0x40507d);return _0x303169===undefined?undefined:{'value':_0x303169};}[_0x8f30b1(0x2b4)](_0x4fee6c){const _0x316fa6=_0x8f30b1;return this[_0x316fa6(0x143)](_0x316fa6(0x557),[_0x4fee6c]);}[_0x8f30b1(0x1de)](_0x30a533){const _0x27f9e7=_0x8f30b1;return this[_0x27f9e7(0x73e)](_0x30a533);}['getRange'](_0x485011={}){const _0x46c3ce=_0x8f30b1,_0x52cea8=this[_0x46c3ce(0x143)](_0x46c3ce(0x3bd),[_0x485011]),_0x43c88a=_0x485011[_0x46c3ce(0x4a4)]===![],_0x48357e=_0x485011['keys']===![];return _0x24fde6(_0x52cea8['map'](([_0x4b2221,_0x57a7f2,_0x1057dd])=>{if(_0x43c88a)return _0x4b2221;if(_0x48357e)return _0x57a7f2;return _0x1057dd===undefined?{'key':_0x4b2221,'value':_0x57a7f2}:{'key':_0x4b2221,'value':_0x57a7f2,'version':_0x1057dd};}));}[_0x8f30b1(0x42e)](_0x31837c={}){const _0xc4beda=_0x8f30b1;return _0x24fde6(this[_0xc4beda(0x143)](_0xc4beda(0x3bd),[_0x31837c])[_0xc4beda(0x78f)](([_0x58139e])=>_0x58139e));}[_0x8f30b1(0x735)](_0x33a3a4,_0x1083d4={}){const _0x59e495=_0x8f30b1,_0x399a53=this[_0x59e495(0x143)](_0x59e495(0x3bd),[{..._0x1083d4,'start':_0x33a3a4,'end':_0x33a3a4,'inclusiveEnd':!![]}]);return _0x24fde6(_0x399a53['map'](([,_0x17b8db])=>_0x17b8db));}[_0x8f30b1(0x1e5)](_0x339ce5={}){const _0x4dc25b=_0x8f30b1;return this[_0x4dc25b(0x143)](_0x4dc25b(0x432),[_0x339ce5]);}[_0x8f30b1(0x1ad)](){const _0x3c801d=_0x8f30b1;return{'entryCount':this[_0x3c801d(0x1e5)]()};}['put'](_0x2d50ca,_0x2ea7fb,_0x1218d8){return this['_write']({'op':'put','key':_0x2d50ca,'value':_0x2ea7fb,'version':_0x1218d8}),Promise['resolve'](!![]);}[_0x8f30b1(0x4ab)](_0x6d3ee4,_0x3d01f4,_0x325e32){const _0x594992=_0x8f30b1;return this[_0x594992(0x54c)]({'op':_0x594992(0x10d),'key':_0x6d3ee4,'value':_0x3d01f4,'version':_0x325e32}),!![];}[_0x8f30b1(0x102)](_0x400b0e,_0x14f770){const _0x29a128=_0x8f30b1;return this[_0x29a128(0x54c)]({'op':_0x29a128(0x102),'key':_0x400b0e,'value':_0x14f770}),Promise['resolve'](!![]);}[_0x8f30b1(0x394)](_0x2dd83f,_0x36d760){const _0x26ba25=_0x8f30b1;return this[_0x26ba25(0x54c)]({'op':'remove','key':_0x2dd83f,'value':_0x36d760}),!![];}['clearSync'](){const _0x2e1537=_0x8f30b1;this[_0x2e1537(0x54c)]({'op':_0x2e1537(0x5f1)});}[_0x8f30b1(0x579)](){const _0x2ddfaf=_0x8f30b1;return this[_0x2ddfaf(0x54c)]({'op':_0x2ddfaf(0x5f1)}),Promise[_0x2ddfaf(0x705)]();}[_0x8f30b1(0xce)](){const _0xd59c2c=_0x8f30b1;this[_0xd59c2c(0x25e)]();}[_0x8f30b1(0x6e8)](_0x32792f,_0x2c19af={}){const _0x3b820f=_0x8f30b1,_0x5e8b4f=typeof _0x32792f==='object'?_0x32792f:_0x2c19af,_0x36784f=typeof _0x32792f===_0x3b820f(0x788)?_0x32792f[_0x3b820f(0x5d1)]:_0x32792f,_0x5e8b50=new _0x556b7a(this['_env'],_0x36784f,_0x5e8b4f);return _0x5e8b50[_0x3b820f(0x54c)]({'op':'ensure'}),_0x5e8b50;}[_0x8f30b1(0x3f5)](){}[_0x8f30b1(0x68f)](_0x22f59d){const _0x3f0299=_0x8f30b1;return this[_0x3f0299(0x2fb)](_0x22f59d);}async['transaction'](_0xb7178e){return this['_tx'](_0xb7178e);}[_0x8f30b1(0x4b1)](_0x1b87a4){return this['_tx'](_0x1b87a4);}['_tx'](_0x774f3c){const _0x2f02f5=_0x8f30b1,_0x22ea49=this['_env'];if(_0x22ea49[_0x2f02f5(0x3cb)])return _0x774f3c();_0x22ea49[_0x2f02f5(0x3cb)]=[];let _0x55a50e;try{_0x55a50e=_0x774f3c();}catch(_0x5427f8){_0x22ea49[_0x2f02f5(0x3cb)]=null;throw _0x5427f8;}const _0xd07c02=_0x22ea49[_0x2f02f5(0x3cb)];_0x22ea49['_rawTxnBuf']=null;if(_0xd07c02[_0x2f02f5(0x42c)])_0x22ea49[_0x2f02f5(0x538)][_0x2f02f5(0x11e)](_0x2f02f5(0x286),_0x22ea49[_0x2f02f5(0x5d1)],_0x2f02f5(0x195),[_0xd07c02],!![]);return _0x55a50e;}[_0x8f30b1(0x595)](){return{'done'(){}};}[_0x8f30b1(0x2a5)](){}}return rawdb={'RawDb':_0x556b7a},rawdb;}var views,hasRequiredViews;function requireViews(){const _0xb95880=_0x2dfd83;if(hasRequiredViews)return views;hasRequiredViews=0x1;const {RawDb:_0x576d3e}=requireRawdb();class _0x1f087a{constructor(_0x2d039c){const _0x555794=_0x5aff;this[_0x555794(0x114)]=_0x2d039c,this['_n']=(_0x55114b,_0x13b7a9,_0x2f41cf=!![])=>_0x2d039c['okdb'][_0x555794(0x11e)](_0x555794(0x553),_0x2d039c[_0x555794(0x5d1)],_0x55114b,_0x13b7a9,_0x2f41cf);}get[_0xb95880(0x493)](){const _0x3448d8=_0xb95880,_0x570628=this,_0x179eda=this[_0x3448d8(0x114)],_0x492159=_0x2d795c=>_0x2d795c?new _0x576d3e(_0x179eda,_0x2d795c[_0x3448d8(0x5d1)],{'dupSort':_0x2d795c[_0x3448d8(0x1e0)]}):undefined,_0x3441c7=_0x39e571=>{const _0x2f055e=_0x3448d8,_0x54d836=_0x570628['_n'](_0x2f055e(0x296),[_0x39e571],![]);if(!_0x54d836)return undefined;const _0x4f4e80=_0x54d836[_0x2f055e(0x3a4)],_0x4a0293=new Map(Object[_0x2f055e(0x67c)](_0x4f4e80[_0x2f055e(0x19d)])),_0x3f6bae=new Map(Object[_0x2f055e(0x67c)](_0x54d836[_0x2f055e(0x7c7)])[_0x2f055e(0x78f)](([_0x30c1c6,_0x4b924c])=>[_0x30c1c6,_0x492159(_0x4b924c)]));return{'name':_0x39e571,'compiled':{'T':_0x4f4e80['T'],'reducers':_0x4f4e80['reducers'],'refs':_0x4a0293,'granId':_0x4f4e80[_0x2f055e(0x2aa)],'type':_0x4f4e80[_0x2f055e(0xae)],'_nidFor':_0x183234=>_0x570628['_n'](_0x2f055e(0x619),[_0x39e571,_0x183234],![])},'viewDb':_0x492159(_0x54d836[_0x2f055e(0x190)]['viewDb']),'metaDb':_0x492159(_0x54d836['dbs'][_0x2f055e(0x1f5)]),'itemsDb':_0x492159(_0x54d836['dbs'][_0x2f055e(0x1b5)]),'bucketsDb':_0x492159(_0x54d836[_0x2f055e(0x190)][_0x2f055e(0x5fe)]),'sortedDb':_0x492159(_0x54d836[_0x2f055e(0x190)][_0x2f055e(0x7b1)]),'groupsDb':_0x492159(_0x54d836[_0x2f055e(0x190)][_0x2f055e(0x419)]),'prevDb':_0x492159(_0x54d836[_0x2f055e(0x190)][_0x2f055e(0x462)]),'refItemsDbs':_0x3f6bae,'refTrackingDbs':new Map(Object[_0x2f055e(0x67c)](_0x54d836[_0x2f055e(0x591)]||{})['map'](([_0x43ead4,_0x52799d])=>[_0x43ead4,_0x492159(_0x52799d)])),'stopFn':_0x54d836[_0x2f055e(0x280)]?async()=>_0x570628['_n'](_0x2f055e(0x599),[_0x39e571]):null,'bootstrapWorker':null};};return{'get':_0x1a9e75=>_0x3441c7(_0x1a9e75),'has':_0x36f25c=>_0x570628['_n']('stateNames',[],![])[_0x3448d8(0x564)](_0x36f25c),'keys':()=>_0x570628['_n']('stateNames',[],![])[Symbol[_0x3448d8(0x3f3)]](),get 'size'(){const _0x3694b9=_0x3448d8;return _0x570628['_n'](_0x3694b9(0x5d3),[],![])[_0x3694b9(0x42c)];},[Symbol[_0x3448d8(0x3f3)]]:()=>_0x570628['_n'](_0x3448d8(0x5d3),[],![])['map'](_0x31bf72=>[_0x31bf72,_0x3441c7(_0x31bf72)])[Symbol['iterator']]()};}get[_0xb95880(0x234)](){const _0x4597eb=_0xb95880,_0x1e17f8=this;return{'has':_0x4eee23=>_0x1e17f8['_n'](_0x4597eb(0x611),[],![])[_0x4597eb(0x564)](_0x4eee23),get 'size'(){const _0x39c060=_0x4597eb;return _0x1e17f8['_n'](_0x39c060(0x611),[],![])[_0x39c060(0x42c)];},'keys':()=>_0x1e17f8['_n'](_0x4597eb(0x611),[],![])[Symbol[_0x4597eb(0x3f3)]]()};}async[_0xb95880(0x239)](){const _0x5dbd4f=_0xb95880;return this['_n'](_0x5dbd4f(0x239),[]);}async['bootSyncedViews'](_0x4ab047={}){return this['_n']('bootSyncedViews',[_0x4ab047]);}async[_0xb95880(0x53b)](_0x52e42c,_0x396f32){const _0xe0e3a7=_0xb95880;return this['_n'](_0xe0e3a7(0x53b),[_0x52e42c,_0x396f32]),{'name':_0x52e42c};}['get'](_0x1a7bee,_0x180791={}){const _0x278cfc=_0xb95880,_0x1c4577=this['_n'](_0x278cfc(0x73e),[_0x1a7bee,{'preview':_0x180791?.[_0x278cfc(0x206)]??{}}],![]);if(_0x1c4577==null)return null;const _0x476eca=this['_n'](_0x278cfc(0x778),[_0x1a7bee],![]);if(!_0x476eca)return _0x1c4577;const _0x3d1bd1=_0x1706ef=>(_0x4b9d59={})=>this['_n'](_0x278cfc(0x541),[_0x1a7bee,_0x1706ef,_0x4b9d59],![]);if(_0x476eca[_0x278cfc(0x391)]){_0x1c4577['items']=_0x3d1bd1({'kind':'view'});for(const _0x3b465f of _0x476eca['reducers']){if(!_0x3b465f[_0x278cfc(0x541)])continue;if(_0x3b465f[_0x278cfc(0x602)]){const _0x4c9fe1=_0x1c4577[_0x3b465f[_0x278cfc(0x5d1)]];if(_0x4c9fe1?.[_0x278cfc(0x206)]&&Array[_0x278cfc(0x796)](_0x4c9fe1[_0x278cfc(0x206)])){for(const _0x194167 of _0x4c9fe1[_0x278cfc(0x206)])_0x194167['items']=_0x3d1bd1({'kind':_0x278cfc(0x3eb),'reducer':_0x3b465f[_0x278cfc(0x5d1)],'key':_0x194167['key']});}}else _0x1c4577[_0x3b465f[_0x278cfc(0x5d1)]]&&(_0x1c4577[_0x3b465f[_0x278cfc(0x5d1)]]['items']=_0x3d1bd1({'kind':_0x278cfc(0xcf),'reducer':_0x3b465f['name']}));}}for(const _0x379b45 of _0x476eca['refs']){if(!_0x379b45['view'])continue;const _0x2b68d8=_0x1c4577[_0x379b45[_0x278cfc(0x5d1)]];if(!_0x2b68d8||typeof _0x2b68d8!==_0x278cfc(0x788))continue;_0x2b68d8['items']=_0x3d1bd1({'kind':_0x278cfc(0x391),'ref':_0x379b45[_0x278cfc(0x5d1)]});for(const _0x33d6ff of _0x379b45[_0x278cfc(0x2f3)]){if(!_0x33d6ff[_0x278cfc(0x541)])continue;if(_0x33d6ff[_0x278cfc(0x602)]){const _0x477311=_0x2b68d8[_0x33d6ff['name']];if(_0x477311?.['preview']&&Array[_0x278cfc(0x796)](_0x477311[_0x278cfc(0x206)])){for(const _0x6377c7 of _0x477311[_0x278cfc(0x206)])_0x6377c7[_0x278cfc(0x541)]=_0x3d1bd1({'kind':_0x278cfc(0x3eb),'ref':_0x379b45[_0x278cfc(0x5d1)],'reducer':_0x33d6ff[_0x278cfc(0x5d1)],'key':_0x6377c7[_0x278cfc(0x69e)]});}}else _0x2b68d8[_0x33d6ff['name']]&&(_0x2b68d8[_0x33d6ff[_0x278cfc(0x5d1)]]['items']=_0x3d1bd1({'kind':_0x278cfc(0xcf),'ref':_0x379b45[_0x278cfc(0x5d1)],'reducer':_0x33d6ff[_0x278cfc(0x5d1)]}));}}return _0x1c4577;}['getMeta'](_0x44af4a){const _0x17c407=_0xb95880;return this['_n'](_0x17c407(0x358),[_0x44af4a],![]);}['itemsGroups'](_0x1413c5,_0x4259cd={}){const _0x4e819b=_0xb95880;return this['_n'](_0x4e819b(0x5df),[_0x1413c5,_0x4259cd],![]);}[_0xb95880(0x2a3)](_0x19ccc8,_0x1c2a17={}){const _0x10b4d6=_0xb95880;return this['_n'](_0x10b4d6(0x2a3),[_0x19ccc8,_0x1c2a17],![]);}[_0xb95880(0x512)](_0x281def,_0x3b0391={}){const _0x1fb065=_0xb95880;return this['_n'](_0x1fb065(0x512),[_0x281def,_0x3b0391],![]);}async['list'](){const _0x432569=_0xb95880;return this['_n'](_0x432569(0x46b),[],![]);}async[_0xb95880(0x592)](_0x2bcc3a){return this['_n']('getDefinition',[_0x2bcc3a],![])??null;}async[_0xb95880(0x102)](_0x28d78b,_0x546ab6={}){return this['_n']('remove',[_0x28d78b,_0x546ab6]);}async[_0xb95880(0x1ff)](_0x4e2274){const _0x4e1bc9=_0xb95880;return this['_n'](_0x4e1bc9(0x1ff),[_0x4e2274]);}async[_0xb95880(0x160)](_0x15e609){const _0x3f3bb2=_0xb95880;return this['_n'](_0x3f3bb2(0x160),[_0x15e609]);}async[_0xb95880(0x771)](_0x4664de){const _0x1c21fd=_0xb95880;return this['_n'](_0x1c21fd(0x771),[_0x4664de]);}async[_0xb95880(0x2be)](_0x1ada5c){const _0x4842f6=_0xb95880;return this['_n'](_0x4842f6(0x2be),[_0x1ada5c]);}[_0xb95880(0x6e6)](_0x1e2eed,_0x20c2e3={}){const _0xd6819=_0xb95880;return this['_n'](_0xd6819(0x6e6),[_0x1e2eed,{'apply':_0x20c2e3&&_0x20c2e3[_0xd6819(0x518)]}]);}}return views={'OKDBViews':_0x1f087a},views;}var queue,hasRequiredQueue;function requireQueue(){const _0x49a37e=_0x2dfd83;if(hasRequiredQueue)return queue;hasRequiredQueue=0x1;const {OKDBError:_0x473d43}=requireErrors(),_0x5f0bc0=requireBridge();class _0xb01d54{constructor(_0x175e3c){const _0x1f1030=_0x5aff;this[_0x1f1030(0x114)]=_0x175e3c,this[_0x1f1030(0x538)]=_0x175e3c[_0x1f1030(0x538)],this[_0x1f1030(0x66c)]=_0x175e3c[_0x1f1030(0x538)]['log'][_0x1f1030(0xda)]({'feature':_0x1f1030(0x431)}),this[_0x1f1030(0x61e)]=new Set();}['_n'](_0x973fe0,_0x5787a4,_0x3491f8=!![]){const _0x3dbf0f=_0x5aff;return this[_0x3dbf0f(0x538)][_0x3dbf0f(0x11e)](_0x3dbf0f(0x431),this[_0x3dbf0f(0x114)][_0x3dbf0f(0x5d1)],_0x973fe0,_0x5787a4,_0x3491f8);}['_w'](_0x40cfea,_0x3d7549){const _0x443378=_0x5aff;return this[_0x443378(0x538)][_0x443378(0x4cf)](this['_n'](_0x40cfea,_0x3d7549));}async[_0x49a37e(0x6ff)](){const _0x3a166b=_0x49a37e;return this['_n'](_0x3a166b(0x5c8),[]);}async[_0x49a37e(0x46b)](_0x399474={}){const _0x24cd92=_0x49a37e;return this['_n'](_0x24cd92(0x46b),[_0x399474],![]);}get[_0x49a37e(0x197)](){const _0x2ccfc4=_0x49a37e,{RawDb:_0x3e8fd8}=requireRawdb();return this[_0x2ccfc4(0x34e)]||(this[_0x2ccfc4(0x34e)]=new _0x3e8fd8(this[_0x2ccfc4(0x114)],_0x2ccfc4(0x4d2)));}async['_sweepOrphanLogs'](){return this['_w']('sweepOrphanLogs',[]);}async[_0x49a37e(0xc8)](_0x2f1e37,_0x526879,_0x5489d4={}){const _0x2df34b=_0x49a37e,{txn:_0x254ead,..._0x3f80e0}=_0x5489d4||{};if(_0x254ead)return this['_enqueueInTxn'](_0x254ead,_0x2f1e37,_0x526879,_0x3f80e0);const _0x55bf3a=this['okdb'][_0x2df34b(0x65f)];if(_0x55bf3a&&_0x55bf3a['queue']['length'])_0x55bf3a[_0x2df34b(0x53d)]();const _0x93d154=this['_n'](_0x2df34b(0x585),[_0x2f1e37,_0x526879,_0x3f80e0],![]);return this[_0x2df34b(0x538)]['_settleWrite'](_0x93d154['id'])[_0x2df34b(0x447)](_0x19d21a=>{const _0x4f01a8=_0x2df34b;if(_0x93d154[_0x4f01a8(0x255)])this['_startClaimedSoon'](_0x2f1e37);else try{this[_0x4f01a8(0x538)]['_pumper'][_0x4f01a8(0x7a8)]();}catch{}return _0x19d21a;});}['_startClaimedSoon'](_0x453abc){queueMicrotask(()=>{const _0x28fafc=_0x5aff;try{this['_n'](_0x28fafc(0x73b),[_0x453abc]);}catch{}});}['_enqueueInTxn'](_0x57b831,_0x1e0428,_0x53cc62,_0x2f13da){const _0x2e47b1=_0x49a37e,_0xd636c9=_0x57b831['raw']??_0x57b831;if(_0xd636c9['_closed'])throw new _0x473d43(_0x2e47b1(0x7e9),_0x2e47b1(0x4e2));if(_0xd636c9[_0x2e47b1(0x538)]&&_0xd636c9[_0x2e47b1(0x538)]!==this[_0x2e47b1(0x114)]&&_0xd636c9[_0x2e47b1(0x538)]['name']!==this[_0x2e47b1(0x114)][_0x2e47b1(0x5d1)])throw new _0x473d43(_0x2e47b1(0x77a),_0x2e47b1(0x616),{'txnEnv':_0xd636c9['okdb'][_0x2e47b1(0x5d1)],'queueEnv':this[_0x2e47b1(0x114)][_0x2e47b1(0x5d1)]});const _0xcde1e1=this['_n'](_0x2e47b1(0x222),[_0x1e0428,_0x53cc62,_0x2f13da],![]);if(_0xcde1e1['existing'])return _0xcde1e1['id'];if(_0xcde1e1[_0x2e47b1(0x4db)])_0x57b831[_0x2e47b1(0x47c)](_0x2e47b1(0x4b9),_0xcde1e1[_0x2e47b1(0x4db)]['key'],_0xcde1e1[_0x2e47b1(0x4db)][_0x2e47b1(0x1d0)],{'ifVersion':_0xcde1e1[_0x2e47b1(0x4db)][_0x2e47b1(0x668)]});if(_0x53cc62!==undefined)_0x57b831[_0x2e47b1(0x10d)]('~queue_payloads',_0xcde1e1['id'],_0x53cc62);_0x57b831[_0x2e47b1(0x10d)](_0x2e47b1(0x4b9),_0xcde1e1['id'],_0xcde1e1[_0x2e47b1(0x387)]);if(typeof _0xd636c9['onDo']===_0x2e47b1(0x656))_0xd636c9[_0x2e47b1(0x138)](()=>{const _0x5f5bdb=_0x2e47b1;if(this['_n'](_0x5f5bdb(0xd9),[_0xcde1e1['id'],_0x1e0428,_0xcde1e1[_0x5f5bdb(0x303)],_0xcde1e1[_0x5f5bdb(0x559)]]))this['_startClaimedSoon'](_0x1e0428);});return _0xcde1e1['id'];}async[_0x49a37e(0x7a6)](_0x2dbcdb,_0x47ae13={}){const _0x1274e4=_0x49a37e;if(typeof _0x2dbcdb!=='string'||!_0x2dbcdb)throw new _0x473d43(_0x1274e4(0x475),_0x1274e4(0x6db));return this['_w']('claim',[_0x2dbcdb,_0x47ae13]);}async[_0x49a37e(0x495)](_0x4ab464,_0x3db69f,_0x208242=null){return this['_w']('markJobHeartbeat',[_0x4ab464,_0x3db69f,_0x208242]);}async[_0x49a37e(0x55a)](_0x108e65,_0x40c129,_0x36f2b4=null){const _0x2b1b2a=_0x49a37e;return this[_0x2b1b2a(0x495)](_0x108e65,_0x40c129,_0x36f2b4);}async[_0x49a37e(0x48d)](_0x14b4c8,_0x272b73,_0x131cc0){const _0x4bc520=_0x49a37e;return this['_w'](_0x4bc520(0x48d),[_0x14b4c8,_0x272b73,_0x131cc0]);}async['markJobComplete'](_0xb01b20,_0x48833b,_0x34fba1){const _0x1b047c=_0x49a37e;return this['_w'](_0x1b047c(0x48e),[_0xb01b20,_0x48833b,_0x34fba1]);}async['completeJob'](_0x1cb2ce,_0x571cbe,_0x4178d9){const _0x364f89=_0x49a37e;return this[_0x364f89(0x48e)](_0x1cb2ce,_0x571cbe,_0x4178d9);}async[_0x49a37e(0x74f)](_0x2ec884,_0xf33dd4,_0x673fdc,_0x1c775a){const _0x47d014=_0x49a37e,_0x211939=_0x673fdc instanceof Error?{'message':_0x673fdc[_0x47d014(0x3f1)],'stack':_0x673fdc[_0x47d014(0x2b9)]}:_0x673fdc;return this['_w'](_0x47d014(0x74f),[_0x2ec884,_0xf33dd4,_0x211939,_0x1c775a]);}async['failJob'](_0x592b04,_0x490872,_0x19752b,_0x26a98f){return this['markJobFail'](_0x592b04,_0x490872,_0x19752b,_0x26a98f);}async[_0x49a37e(0x4b5)](_0x1359aa,_0x46afa3,_0x56e1ad={}){return this['_w']('releaseClaim',[_0x1359aa,_0x46afa3,_0x56e1ad]);}async[_0x49a37e(0x53a)](_0x452a9c){const _0x47deaf=_0x49a37e;return this['_n'](_0x47deaf(0x53a),[_0x452a9c],![]);}async[_0x49a37e(0x1dc)](_0x25245c,_0x5d2895={},_0x599faa={}){const _0x25585c=_0x49a37e,_0x3e196b=_0x599faa&&_0x599faa[_0x25585c(0x578)];if(!_0x3e196b)return this['_w'](_0x25585c(0x1dc),[_0x25245c,_0x5d2895]);const {next:_0xf8c72e,version:_0x38aaf0}=this['_n'](_0x25585c(0x2dc),[_0x25245c,_0x5d2895],![]);_0x3e196b[_0x25585c(0x47c)](_0x25585c(0x4b9),_0x25245c,_0xf8c72e,{'ifVersion':_0x38aaf0});let _0x12ecfb;if('payload'in _0x5d2895){if(_0x5d2895[_0x25585c(0x68e)]===undefined){if(this[_0x25585c(0x114)][_0x25585c(0x465)](_0x25585c(0x2a9),_0x25245c))_0x3e196b[_0x25585c(0x102)](_0x25585c(0x2a9),_0x25245c);}else _0x3e196b['put'](_0x25585c(0x2a9),_0x25245c,_0x5d2895[_0x25585c(0x68e)]);_0x12ecfb=_0x5d2895[_0x25585c(0x68e)];}else _0x12ecfb=this[_0x25585c(0x114)][_0x25585c(0x73e)]('~queue_payloads',_0x25245c);return{..._0xf8c72e,'payload':_0x12ecfb};}async[_0x49a37e(0x2cd)](_0x27bb09,_0x4f2b4d={}){const _0x2fa72a=_0x49a37e,_0x2f7d3a=_0x4f2b4d&&_0x4f2b4d[_0x2fa72a(0x578)];if(!_0x2f7d3a)return this['_w'](_0x2fa72a(0x2cd),[_0x27bb09]);if(!_0x27bb09)throw new _0x473d43(_0x2fa72a(0x125),'BAD_PARAM');if(!this['env'][_0x2fa72a(0x465)](_0x2fa72a(0x4b9),_0x27bb09))return![];_0x2f7d3a[_0x2fa72a(0x102)](_0x2fa72a(0x4b9),_0x27bb09);if(this[_0x2fa72a(0x114)][_0x2fa72a(0x465)](_0x2fa72a(0x2a9),_0x27bb09))_0x2f7d3a[_0x2fa72a(0x102)](_0x2fa72a(0x2a9),_0x27bb09);if(typeof _0x2f7d3a[_0x2fa72a(0x138)]===_0x2fa72a(0x656))_0x2f7d3a[_0x2fa72a(0x138)](()=>this['_n'](_0x2fa72a(0x30c),[_0x27bb09]));return!![];}async[_0x49a37e(0x54b)](_0x2757ac){const _0x47267a=_0x49a37e;return this['_w'](_0x47267a(0x54b),[_0x2757ac]);}async[_0x49a37e(0x6ef)](_0x3d1e55){const _0x310b92=_0x49a37e;return this['_w'](_0x310b92(0x6ef),[_0x3d1e55]);}async[_0x49a37e(0x260)](_0x9dd080,_0x1dc195,_0xaa857){const _0x2e27ad=_0x49a37e,_0x44ac32=this['_n'](_0x2e27ad(0x2bf),[_0x1dc195??null,_0xaa857??0x0,_0x9dd080]),_0x3af72e=0x1f4;for(let _0x4b1bf7=0x0;_0x4b1bf7<_0x44ac32['length'];_0x4b1bf7+=_0x3af72e){this['_n'](_0x2e27ad(0x706),[_0x44ac32[_0x2e27ad(0x49d)](_0x4b1bf7,_0x4b1bf7+_0x3af72e),_0x4b1bf7,_0x44ac32[_0x2e27ad(0x42c)],_0x1dc195??null]);if(_0x4b1bf7+_0x3af72e<_0x44ac32['length'])await new Promise(_0x5f2c02=>setImmediate(_0x5f2c02));}return this['_n'](_0x2e27ad(0x781),[_0x44ac32[_0x2e27ad(0x42c)],_0x1dc195??null]),await new Promise(_0x3f4eb8=>setImmediate(_0x3f4eb8)),_0x44ac32[_0x2e27ad(0x42c)];}async[_0x49a37e(0x23e)](_0x9dd45d,_0x59aa95){const _0xe18e90=_0x49a37e;return this[_0xe18e90(0x260)](_0xe18e90(0x320),_0x9dd45d,_0x59aa95);}async[_0x49a37e(0x32d)](_0x165048,_0x9bdac4){const _0x4ef3b6=_0x49a37e;return this[_0x4ef3b6(0x260)](_0x4ef3b6(0x74c),_0x165048,_0x9bdac4);}async['retryFailed'](_0x2bbe10,_0x5f4d82){const _0x275f13=_0x49a37e;return this['_w'](_0x275f13(0x7db),[_0x2bbe10??null,_0x5f4d82??0x0]);}async[_0x49a37e(0x24c)](_0x17ebe6,_0x4106b8){const _0x25dd47=_0x49a37e;return this['_w'](_0x25dd47(0x24c),[_0x17ebe6??null,_0x4106b8??0x0]);}async[_0x49a37e(0x325)](_0x250fa2,_0x24c20b,_0x1e1906){const _0x50955b=_0x49a37e;return this['_w'](_0x50955b(0x325),[_0x250fa2,_0x24c20b,_0x1e1906]);}async[_0x49a37e(0x59c)](_0x234cc6,_0x506896={}){const _0xcfcb32=_0x49a37e;return this['_n'](_0xcfcb32(0x59c),[_0x234cc6,_0x506896],![]);}async[_0x49a37e(0x561)](_0x5e7284,_0x4d0dcf={}){const _0x585dc2=_0x49a37e,{txn:_0x167457,..._0x451d27}=_0x4d0dcf||{};if(!_0x167457)return this['_w']('addBucket',[_0x5e7284,_0x451d27]);const _0x2fb2bf=(_0x555259,_0x97f490,_0x3fb296,_0x1d5c14)=>{const _0x4e9428=_0x5aff,_0x240ff8=Math[_0x4e9428(0x4a1)](Number(_0x555259));return Number[_0x4e9428(0x105)](_0x240ff8)?Math['min'](_0x1d5c14,Math[_0x4e9428(0x57c)](_0x3fb296,_0x240ff8)):_0x97f490;},_0x379de5=typeof _0x5e7284==='string'?_0x5e7284[_0x585dc2(0x79c)]():'';if(!_0x379de5)throw new Error(_0x585dc2(0x481));const _0x204160=_0x2fb2bf(_0x451d27[_0x585dc2(0x502)],0x0,0x0,0x3b9aca00);_0x167457['put'](_0x585dc2(0x2cf),_0x379de5,{'id':_0x379de5,'tokens':_0x2fb2bf(_0x451d27[_0x585dc2(0x55b)],_0x204160,0x0,_0x204160),'capacity':_0x204160,'refill_amount':_0x2fb2bf(_0x451d27['refill_amount'],0x0,0x0,0x3b9aca00),'refill_every':_0x2fb2bf(_0x451d27[_0x585dc2(0x232)],0x0,0x0,0x16d*0x18*0x36ee80),'updated':Date[_0x585dc2(0xcc)]()});}async[_0x49a37e(0x7aa)](_0x546d53,_0x1430cb){const _0x3fcfa8=_0x49a37e;return this['_w'](_0x3fcfa8(0x7aa),[_0x546d53,_0x1430cb]);}async[_0x49a37e(0x3c9)](_0xd202ae){return this['_w']('removeBucket',[_0xd202ae]);}[_0x49a37e(0x3a7)](_0x372808){const _0xc439a8=_0x49a37e,_0x14a91c=this['_n'](_0xc439a8(0x3a7),[_0x372808],![]);return _0x14a91c===null&&typeof _0x372808===_0xc439a8(0x48c)&&_0x372808['trim']()?undefined:_0x14a91c;}async['tryClaimTokens'](_0x3a78b1,_0x448c60){return this['_w']('tryClaimTokens',[_0x3a78b1,_0x448c60]);}async['addJobType'](_0x454a8f,_0x558d91={}){return this['_w']('addJobType',[_0x454a8f,_0x558d91]);}async['getJobType'](_0x1fb187){const _0x52c398=_0x49a37e;return this['_n'](_0x52c398(0x5b3),[_0x1fb187],![]);}async[_0x49a37e(0x1a0)](){const _0x2eee25=_0x49a37e;return this['_n'](_0x2eee25(0x1a0),[],![]);}async[_0x49a37e(0x1d7)](_0x3bc71e){const _0x1ee689=_0x49a37e;return this['_w'](_0x1ee689(0x1d7),[_0x3bc71e]);}['pauseJobType'](_0x3c9610){return this['_n']('pauseJobType',[_0x3c9610]);}['resumeJobType'](_0x58195d){const _0x143056=_0x49a37e;return this['_n'](_0x143056(0x44f),[_0x58195d]);}[_0x49a37e(0x3f8)](_0xad68df){const _0x46126b=_0x49a37e;return this['_n'](_0x46126b(0x3f8),[_0xad68df]);}async[_0x49a37e(0x39c)](_0x2aa05d,_0x4d34a1,_0x47a4d2=![]){const _0x474496=_0x49a37e;return this['_w'](_0x474496(0x39c),[_0x2aa05d,_0x4d34a1,_0x47a4d2]);}async['removeJobTypeSchema'](_0x4f9082){const _0x22bd4b=_0x49a37e;return this['_w'](_0x22bd4b(0x527),[_0x4f9082]);}async[_0x49a37e(0x238)](_0x5036bc,_0x4698c7=0x5){const _0x55a00e=_0x49a37e;return this['_n'](_0x55a00e(0x238),[_0x5036bc,_0x4698c7],![]);}async[_0x49a37e(0x568)](_0x3261f0){const _0x4317a6=_0x49a37e;return this['_n'](_0x4317a6(0x78a),[_0x3261f0]);}async[_0x49a37e(0x2fc)](_0x1d5638=0x7530){const _0x111393=_0x49a37e;await Promise['allSettled']([...this['_workers']][_0x111393(0x78f)](_0x32fae4=>_0x32fae4['stop'](_0x1d5638)));const _0x38b498=this['_n'](_0x111393(0x2fc),[0x0]);return this[_0x111393(0x61e)][_0x111393(0x5f1)](),_0x38b498;}async[_0x49a37e(0x665)](){const _0x3e4a44=_0x49a37e,_0x5a1a7a=this['_n'](_0x3e4a44(0x665),[]);return this['_workers'][_0x3e4a44(0x5f1)](),_0x5a1a7a;}[_0x49a37e(0xc6)](_0x28aff7,_0x3d73e7,_0x2c0f73){const _0x113bbd=_0x49a37e;let _0x639e7,_0x3e6d67;if(Array[_0x113bbd(0x796)](_0x28aff7)){if(typeof _0x3d73e7===_0x113bbd(0x656))throw new _0x473d43(_0x113bbd(0x53e),_0x113bbd(0x6db));_0x3e6d67=_0x3d73e7??{};if(_0x3e6d67['admission']!=null&&typeof _0x3e6d67[_0x113bbd(0x5a7)]!==_0x113bbd(0x656))throw new _0x473d43(_0x113bbd(0x17f),_0x113bbd(0x6db));if(_0x28aff7[_0x113bbd(0x42c)]===0x0)throw new _0x473d43('process(entries)\x20requires\x20at\x20least\x20one\x20entry',_0x113bbd(0x6db));_0x639e7=_0x28aff7[_0x113bbd(0x78f)](_0x487879=>{const _0xf7cea9=_0x113bbd;if(!_0x487879||typeof _0x487879['type']!==_0xf7cea9(0x48c)||!_0x487879[_0xf7cea9(0xae)])throw new _0x473d43(_0xf7cea9(0x673),_0xf7cea9(0x6db));if(typeof _0x487879[_0xf7cea9(0x6a0)]!==_0xf7cea9(0x656))throw new _0x473d43(_0xf7cea9(0xc0)+_0x487879[_0xf7cea9(0xae)]+'\x22\x20requires\x20a\x20`handler`\x20function',_0xf7cea9(0x6db));return{..._0x487879};});}else{_0x3e6d67=_0x2c0f73??{};if(typeof _0x3d73e7!=='function')throw new _0x473d43('process()\x20entry\x20\x22'+_0x28aff7+_0x113bbd(0x571),_0x113bbd(0x6db));_0x639e7=[{'type':_0x28aff7,'handler':_0x3d73e7,..._0x2c0f73??{}}];}const _0x595ff0=this[_0x113bbd(0x538)];for(const _0x4e7a59 of _0x639e7){const _0x1d399d=_0x4e7a59[_0x113bbd(0x6a0)];_0x4e7a59[_0x113bbd(0x6a0)]=function(..._0x5b0de4){const _0x10861b=_0x113bbd;return _0x595ff0['_afterDurable']()['then'](()=>_0x1d399d[_0x10861b(0x518)](this,_0x5b0de4));};}const _0x8ca3a6=this['_n'](_0x113bbd(0xc6),[_0x639e7,_0x3e6d67]),_0x2a2ca2=this,_0x4d56ca={'id':_0x8ca3a6['id'],'type':_0x8ca3a6[_0x113bbd(0xae)],get 'running'(){const _0x1e3bae=_0x113bbd;return _0x2a2ca2['_n'](_0x1e3bae(0x3fe),[_0x8ca3a6['id']],![])['running'];},'isRunning'(){const _0xef3ad0=_0x113bbd;return _0x2a2ca2['_n']('workerState',[_0x8ca3a6['id']],![])[_0xef3ad0(0x50d)];},async 'stop'(_0x241581=0x7530){const _0x24d13b=_0x113bbd;_0x2a2ca2['_n'](_0x24d13b(0x2b3),[_0x8ca3a6['id']]);const _0x508379=Date[_0x24d13b(0xcc)]()+_0x241581;while(_0x2a2ca2['_n'](_0x24d13b(0x3fe),[_0x8ca3a6['id']],![])[_0x24d13b(0x763)]>0x0&&Date[_0x24d13b(0xcc)]()<_0x508379)await new Promise(_0xd5e632=>setTimeout(_0xd5e632,0x2));_0x2a2ca2['_n'](_0x24d13b(0x2a1),[_0x8ca3a6['id']]),_0x5f0bc0['checkSignals'](),_0x2a2ca2[_0x24d13b(0x61e)][_0x24d13b(0x62a)](_0x4d56ca);},async 'kill'(){const _0xae7fbd=_0x113bbd;_0x2a2ca2['_n'](_0xae7fbd(0x413),[_0x8ca3a6['id']]),_0x2a2ca2[_0xae7fbd(0x61e)][_0xae7fbd(0x62a)](_0x4d56ca);}};return this[_0x113bbd(0x61e)][_0x113bbd(0x694)](_0x4d56ca),_0x4d56ca;}['worker'](_0x345f17){const _0x29935a=_0x49a37e;throw new _0x473d43('queue.worker(\x27'+_0x345f17+_0x29935a(0x29f)+_0x345f17+_0x29935a(0x132),_0x29935a(0x651));}['spawn'](_0x3c30de){return this['worker'](_0x3c30de);}}return queue={'OKDBQueue':_0xb01d54},queue;}var timemachine,hasRequiredTimemachine;function requireTimemachine(){const _0x26f095=_0x2dfd83;if(hasRequiredTimemachine)return timemachine;hasRequiredTimemachine=0x1;const {fromArray:_0x25758d}=requireIterable();class _0xf3d90e{constructor(_0x55b47c){const _0x319204=_0x5aff;this[_0x319204(0x114)]=_0x55b47c,this[_0x319204(0x538)]=_0x55b47c[_0x319204(0x538)];const _0x3278f8=(_0x1931f0,_0x279fbb)=>this['_n'](_0x1931f0,_0x279fbb,![]);this[_0x319204(0x534)]={'getDiffs':(_0x350fc6,_0x34f023,_0x30bb91)=>_0x3278f8(_0x319204(0x4a0),[_0x350fc6,_0x34f023,_0x30bb91||{}]),'hasDiff':(_0x2c3c73,_0x4a72a4,_0x476b0a)=>_0x3278f8(_0x319204(0x767),[_0x2c3c73,_0x4a72a4,_0x476b0a]),'getHead':(_0x299024,_0x3f457b)=>_0x3278f8(_0x319204(0x4bd),[_0x299024,_0x3f457b])??null,'getHeadCount':_0xf20258=>_0x3278f8('storeGetHeadCount',[_0xf20258]),'getTotalHeadCount':()=>_0x3278f8('storeGetTotalHeadCount',[]),'getDiffsInRange':(_0x12ba3d,_0x1e55fd,_0x1512ff)=>_0x3278f8(_0x319204(0x3d6),[_0x12ba3d??null,_0x1e55fd,_0x1512ff]),'getConfig':()=>_0x3278f8('storeGetConfig',[])??null,'getCursor':()=>this['_n'](_0x319204(0x76c),[],![])??null,get 'db'(){const _0x5e48c5=_0x319204;try{return _0x3278f8(_0x5e48c5(0x6cd),[]),{};}catch{return null;}}};}get[_0x26f095(0x727)](){const _0x241eb8=_0x26f095,_0x40cdc4=(this[_0x241eb8(0x114)][_0x241eb8(0xd6)]?.[_0x241eb8(0x46b)]?.()||[])[_0x241eb8(0xe5)](_0x5e9c8d=>String(_0x5e9c8d[_0x241eb8(0x2d7)]||'')[_0x241eb8(0x302)](_0x241eb8(0x396)))[_0x241eb8(0x42c)];return{'size':_0x40cdc4};}['_n'](_0x255dfa,_0x427413,_0x597199=!![]){const _0x1ee45e=_0x26f095;return this[_0x1ee45e(0x538)][_0x1ee45e(0x11e)]('tm',this['env']['name'],_0x255dfa,_0x427413,_0x597199);}async['enable'](_0x2d7673){const _0x1e4e06=_0x26f095;return this['_n'](_0x1e4e06(0x7b0),[_0x2d7673??null]);}async[_0x26f095(0x21a)](_0x6170fd){const _0x3fabc8=_0x26f095;return this['_n'](_0x3fabc8(0x21a),[_0x6170fd??null]);}async[_0x26f095(0x759)](){const _0x22573d=_0x26f095;return this['_n'](_0x22573d(0x759),[]);}async[_0x26f095(0x4b7)](){const _0x4db971=_0x26f095;return this['_n'](_0x4db971(0x4b7),[]);}async[_0x26f095(0xce)](_0x58838c){const _0x1d3077=_0x26f095;return this['_n'](_0x1d3077(0xce),[_0x58838c??null]);}async[_0x26f095(0x4d8)](){return this['_n']('dropAll',[]);}[_0x26f095(0x3b2)](_0x1162f8){const _0xb115bd=_0x26f095;return this['_n'](_0xb115bd(0x3b2),[_0x1162f8??null],![]);}[_0x26f095(0x46b)](){const _0x178211=_0x26f095;return this['_n'](_0x178211(0x46b),[],![]);}['status'](_0x270dd2){const _0x195fae=_0x26f095;return this['_n'](_0x195fae(0x422),[_0x270dd2??null],![]);}[_0x26f095(0x16f)](_0x36d1be){const _0x5505f4=_0x26f095;if(!_0x36d1be)return this['_n'](_0x5505f4(0x76c),[],![]);return this['_n'](_0x5505f4(0x16f),[_0x36d1be],![]);}[_0x26f095(0x76c)](){const _0x4b1afa=_0x26f095;return this['_n'](_0x4b1afa(0x76c),[],![]);}[_0x26f095(0x688)](_0x45cffa,_0x54eee2,_0x2d64ea){const _0x3bc9e6=_0x26f095;return this['_n'](_0x3bc9e6(0x688),[_0x45cffa,_0x54eee2,_0x2d64ea],![]);}['getHistory'](_0x435a2d,_0x1c4cd0,_0x117f26){const _0x4ca820=_0x26f095;return this['_n'](_0x4ca820(0x4ce),[_0x435a2d,_0x1c4cd0,_0x117f26||{}],![]);}['getChanges'](_0xd31ba4,_0x37b709,_0x14700a){const _0x5c8280=_0x26f095;return this['_n'](_0x5c8280(0x76b),[_0xd31ba4??null,_0x37b709,_0x14700a],![])[Symbol['iterator']]();}async[_0x26f095(0x38a)](_0x462968){const _0xda4807=_0x26f095;return this['_n'](_0xda4807(0x38a),[_0x462968??null]);}}return timemachine={'OKDBTimeMachine':_0xf3d90e},timemachine;}var files,hasRequiredFiles;function requireFiles(){const _0x17a9b5=_0x2dfd83;if(hasRequiredFiles)return files;hasRequiredFiles=0x1;const _0x54946a=require$$0,{Readable:_0x2a24dd}=require$$1,{OKDBError:_0x560c27,optionsArg:_0x5b9411,invalidArgument:_0x28b3e9}=requireErrors(),{RawDb:_0x4bbf73}=requireRawdb();async function _0x47040a(_0x33894f){const _0x2d704e=_0x5aff;if(Buffer[_0x2d704e(0x1b4)](_0x33894f))return _0x33894f;if(_0x33894f instanceof Uint8Array)return Buffer[_0x2d704e(0x6a2)](_0x33894f);if(typeof _0x33894f===_0x2d704e(0x48c))return Buffer[_0x2d704e(0x6a2)](_0x33894f);const _0x2d8f92=[];for await(const _0x27778c of _0x33894f)_0x2d8f92['push'](Buffer[_0x2d704e(0x1b4)](_0x27778c)?_0x27778c:Buffer['from'](_0x27778c));return Buffer[_0x2d704e(0x543)](_0x2d8f92);}class _0x590480{constructor(_0x1f15cc){const _0x32649b=_0x5aff;this[_0x32649b(0x114)]=_0x1f15cc,this[_0x32649b(0x538)]=_0x1f15cc['okdb'];}['_n'](_0x33aade,_0x576427,_0x583fbd=!![]){const _0x49cdda=_0x5aff;return this[_0x49cdda(0x538)][_0x49cdda(0x11e)](_0x49cdda(0x66f),this[_0x49cdda(0x114)][_0x49cdda(0x5d1)],_0x33aade,_0x576427,_0x583fbd);}[_0x17a9b5(0x160)](){return!![];}[_0x17a9b5(0x1ff)](){}async[_0x17a9b5(0x6ff)](){this['_n']('ensure',[]);}async['_writeBlob'](_0x49766c,_0x1dc83a){const _0x297cd6=_0x17a9b5;return this[_0x297cd6(0x538)]['_settleWrite'](this['_n']('writeBlob',[_0x49766c,await _0x47040a(_0x1dc83a)]));}get[_0x17a9b5(0x4f9)](){const _0x8cf78a=_0x17a9b5;return this[_0x8cf78a(0x24a)]||(this[_0x8cf78a(0x24a)]=new _0x4bbf73(this[_0x8cf78a(0x114)],_0x8cf78a(0xfa)));}async[_0x17a9b5(0x450)](_0x1dc8df){const _0x1c9878=_0x17a9b5;return this['_blobStatusDb'][_0x1c9878(0x2fb)](_0x1dc8df);}async[_0x17a9b5(0x62c)](_0x44e9ac){const _0x383e58=_0x17a9b5,{id:_0x5866d0,stream:_0x3ebb4b,mime:mime=_0x383e58(0x1d2),path:_0x747bf0='',txn:txn=null}=_0x5b9411(_0x44e9ac);if(!_0x5866d0)throw _0x28b3e9(_0x383e58(0x64a),_0x383e58(0xeb),_0x5866d0);if(!_0x3ebb4b)throw _0x28b3e9('files.upload:\x20stream','a\x20Buffer\x20or\x20readable\x20stream',_0x3ebb4b);const _0x3314b7=await _0x47040a(_0x3ebb4b);if(txn){const _0x7efa55=this['_n']('uploadTxn',[_0x5866d0,_0x3314b7,{'mime':mime,'path':_0x747bf0}]);return txn[_0x383e58(0x10d)](_0x383e58(0xe9),_0x5866d0,_0x7efa55[_0x383e58(0x769)]),txn[_0x383e58(0x138)](()=>this['_n']('txnDone',[_0x7efa55[_0x383e58(0xd3)]])),txn[_0x383e58(0x717)](()=>this['_n']('txnUndone',[_0x7efa55[_0x383e58(0xd3)]])),_0x7efa55[_0x383e58(0x769)];}return this[_0x383e58(0x538)][_0x383e58(0x4cf)](this['_n'](_0x383e58(0x62c),[_0x5866d0,_0x3314b7,{'mime':mime,'path':_0x747bf0}]));}['get'](_0x1f0842){const _0x107f0e=_0x17a9b5;return this['_n'](_0x107f0e(0x73e),[_0x1f0842],![])??null;}[_0x17a9b5(0xc2)](_0x32e527){const _0x500350=_0x17a9b5,_0x154b2d=this[_0x500350(0x3fc)](_0x32e527);if(!_0x54946a[_0x500350(0x6a7)](_0x154b2d))throw Object[_0x500350(0x6d5)](new Error(_0x500350(0x1ea)+_0x32e527),{'status':0x194});return this[_0x500350(0x170)](_0x32e527);}[_0x17a9b5(0x170)](_0x4fb9a7){const _0x1ef56a=0x100*0x400,_0x1bd2a4=this;let _0x244a3d=0x0;return new _0x2a24dd({'highWaterMark':_0x1ef56a,'read'(){const _0x264ae7=_0x5aff;let _0x2b6efa;try{const _0x4a4d42=_0x1bd2a4['_n']('readHashRange',[_0x4fb9a7,_0x244a3d,_0x1ef56a],![]);_0x2b6efa=Buffer[_0x264ae7(0x1b4)](_0x4a4d42)?_0x4a4d42:Buffer['from'](_0x4a4d42);}catch(_0x7ed144){this[_0x264ae7(0x1cb)](_0x7ed144);return;}_0x244a3d+=_0x2b6efa[_0x264ae7(0x42c)];if(_0x2b6efa[_0x264ae7(0x42c)])this['push'](_0x2b6efa);if(_0x2b6efa['length']<_0x1ef56a)this[_0x264ae7(0x782)](null);}});}async[_0x17a9b5(0x42d)](_0x5a1fc0){const _0x28839b=_0x17a9b5;return this[_0x28839b(0x538)][_0x28839b(0x640)](this['_n']('read',[_0x5a1fc0],![]));}async[_0x17a9b5(0x6fb)](_0x3b4221){const _0x26c7da=_0x17a9b5,_0x5a481b=this[_0x26c7da(0x73e)](_0x3b4221);if(!_0x5a481b)throw Object[_0x26c7da(0x6d5)](new Error('File\x20not\x20found:\x20'+_0x3b4221),{'status':0x194});const _0x1d6d4a=this[_0x26c7da(0x3fc)](_0x5a481b[_0x26c7da(0x17e)]);if(!_0x54946a[_0x26c7da(0x6a7)](_0x1d6d4a))throw Object[_0x26c7da(0x6d5)](new Error('Blob\x20missing\x20for\x20file:\x20'+_0x3b4221),{'status':0x194});return{'stream':this[_0x26c7da(0x170)](_0x5a481b[_0x26c7da(0x17e)]),'record':_0x5a481b};}async['remove'](_0x51e570,_0x5947c0){const _0x2ffbd5=_0x17a9b5,{txn:txn=null}=_0x5b9411(_0x5947c0);if(txn){const _0x18d274=this['_n'](_0x2ffbd5(0x58a),[_0x51e570]);txn[_0x2ffbd5(0x102)](_0x2ffbd5(0xe9),_0x51e570),txn['onDo'](()=>this['_n'](_0x2ffbd5(0x315),[_0x18d274['hook']])),txn[_0x2ffbd5(0x717)](()=>this['_n']('txnUndone',[_0x18d274[_0x2ffbd5(0xd3)]]));return;}return this[_0x2ffbd5(0x538)][_0x2ffbd5(0x4cf)](this['_n'](_0x2ffbd5(0x102),[_0x51e570]));}async['listPath'](_0x164538,_0x58f992={}){const _0x21c7f1=_0x17a9b5;return this['_n'](_0x21c7f1(0x44e),[_0x164538,_0x58f992],![]);}[_0x17a9b5(0x1a5)](_0x5a82d3){const _0x52a8bb=_0x17a9b5;return this['_n'](_0x52a8bb(0x1a5),[_0x5a82d3],![]);}['listBlobStatus'](){const _0x461aab=_0x17a9b5;return this['_n'](_0x461aab(0x794),[],![]);}[_0x17a9b5(0x505)](_0xf01c6c){const _0x3f6e92=_0x17a9b5,{minAgeMs:_0x5d4491}=_0x5b9411(_0xf01c6c);return this['_n'](_0x3f6e92(0x505),[_0x5d4491??null]);}[_0x17a9b5(0x5fd)](_0x142cc5,_0x534ed4){const _0x469766=_0x17a9b5;if(typeof _0x534ed4!=='function')throw new _0x560c27('files.registerExtractor:\x20extractor\x20must\x20be\x20a\x20function',_0x469766(0x6db));const _0x193dac=this['_n'](_0x469766(0x5fd),[_0x142cc5,_0x534ed4]);return()=>this['_n']('unregisterExtractor',[_0x193dac]);}async['indexContent'](_0x4c3bf5){const _0x125359=_0x17a9b5;return _0x4c3bf5=_0x5b9411(_0x4c3bf5),this['_n'](_0x125359(0x274),[_0x4c3bf5]);}async[_0x17a9b5(0x154)](_0x1b1b32){const _0x2a1338=_0x17a9b5,{peerIds:_0x4b1786}=_0x5b9411(_0x1b1b32);return this['_n'](_0x2a1338(0x154),[_0x4b1786??null]);}['_blobPath'](_0x201915){const _0x177ad5=_0x17a9b5;if(typeof _0x201915!==_0x177ad5(0x48c))return require$$4[_0x177ad5(0x43a)](this[_0x177ad5(0x226)],_0x201915[_0x177ad5(0x49d)](0x0,0x2),_0x201915[_0x177ad5(0x49d)](0x2));return this['_n'](_0x177ad5(0x608),[_0x201915],![]);}get[_0x17a9b5(0x226)](){const _0x43345f=_0x17a9b5;return this['_n'](_0x43345f(0x4dc),[],![]);}}return files={'OKDBFiles':_0x590480},files;}var engines,hasRequiredEngines;function requireEngines(){const _0x124556=_0x2dfd83;if(hasRequiredEngines)return engines;hasRequiredEngines=0x1;const {OKDBError:_0x24661b}=requireErrors(),_0x732347=requireBridge(),_0xed31a5=new Set([_0x124556(0x1a6),_0x124556(0x1a7),_0x124556(0x4ff),_0x124556(0x448)]),_0x118c66=new Set([_0x124556(0x432),'info',_0x124556(0x46d)]),_0x5ce94a=[_0x124556(0x1f9),'patchConfig',_0x124556(0x352),_0x124556(0x40c),_0x124556(0x500),'stop','uninstall'],_0x44f600={'embedder':new Set([_0x124556(0x46d),_0x124556(0x1bf)])},_0x121893=new Set([_0x124556(0x548),_0x124556(0xd6),_0x124556(0x627)]);class _0x2bc2e4{constructor(_0x57e0a4,_0x4b2555,_0xa88657,_0x3ea1f5){const _0x4e9b6c=_0x124556;this[_0x4e9b6c(0x18a)]=_0x57e0a4,this['key']=_0x4b2555,this[_0x4e9b6c(0xae)]=_0xa88657,this[_0x4e9b6c(0x5d1)]=_0x3ea1f5,this[_0x4e9b6c(0x25c)]=_0xa88657;}[_0x124556(0x442)](){const _0x470090=_0x124556;return this['_facade']['_n']('info',[this[_0x470090(0xae)],this[_0x470090(0x5d1)]],![]);}get[_0x124556(0x55e)](){const _0x4d8cc0=_0x124556;return this['_info']()[_0x4d8cc0(0x55e)];}get[_0x124556(0x534)](){const _0x290a30=_0x124556,_0x4d1532=this['_info']()[_0x290a30(0x2a4)];return _0x4d1532?this[_0x290a30(0x18a)][_0x290a30(0x538)][_0x290a30(0x4a8)][_0x290a30(0x73e)](_0x4d1532):undefined;}get['docEntry'](){const _0x37473e=_0x124556;return this[_0x37473e(0x442)]()[_0x37473e(0x485)];}get['enabled'](){const _0x47a0f3=_0x124556;return this[_0x47a0f3(0x442)]()['enabled'];}get['isRunning'](){const _0x5cd14c=_0x124556;return this[_0x5cd14c(0x442)]()[_0x5cd14c(0x44d)];}get[_0x124556(0x422)](){const _0x3c7c7e=_0x124556;return this[_0x3c7c7e(0x442)]()[_0x3c7c7e(0x422)];}get[_0x124556(0x52f)](){const _0x2d7bc1=_0x124556;return this[_0x2d7bc1(0x442)]()[_0x2d7bc1(0x52f)];}get[_0x124556(0x725)](){const _0x431e0b=_0x124556,_0x244728=this[_0x431e0b(0x442)]()['lastError'];return _0x244728?Object[_0x431e0b(0x6d5)](new Error(_0x244728['message']),{'code':_0x244728[_0x431e0b(0x330)]}):null;}get[_0x124556(0x2c0)](){const _0x30861c=_0x124556;return this['_info']()[_0x30861c(0x2c0)];}get[_0x124556(0x5e3)](){const _0x2f12eb=_0x124556;return this[_0x2f12eb(0x18a)]['drivers']['get'](this[_0x2f12eb(0xae)])??null;}get['api'](){const _0x143e17=_0x124556;if(!this[_0x143e17(0x442)]()[_0x143e17(0x574)])return null;const _0x47c633=this;return new Proxy({},{'get'(_0x39e280,_0x5c86ce){const _0x488760=_0x143e17;if(typeof _0x5c86ce===_0x488760(0x50c)||_0x5c86ce===_0x488760(0x447))return undefined;if(_0x44f600[_0x47c633[_0x488760(0xae)]]&&_0x44f600[_0x47c633[_0x488760(0xae)]][_0x488760(0x7d4)](_0x5c86ce))return _0x47c633[_0x488760(0x18a)]['_n'](_0x488760(0x6d6),[_0x47c633[_0x488760(0xae)],_0x47c633[_0x488760(0x5d1)],_0x5c86ce,[]],![])[_0x488760(0x1d0)];if(_0x47c633['type']===_0x488760(0x1a7)&&_0x5c86ce==='flush')return async(_0x5cc89e={})=>{const _0x594b65=_0x488760,_0x5c7b46=(_0x427b4b,..._0xc44e06)=>_0x47c633[_0x594b65(0x18a)]['_n']('apiCall',[_0x47c633['type'],_0x47c633['name'],_0x427b4b,_0xc44e06],!![])['value'],_0x68d1d9=_0x5c7b46(_0x594b65(0x663),_0x5cc89e??{}),_0x1fd09c=Date[_0x594b65(0xcc)]();for(;;){const _0x532de7=await _0x47c633[_0x594b65(0x18a)][_0x594b65(0x538)][_0x594b65(0x6e2)](()=>_0x5c7b46(_0x594b65(0x39d)));if(_0x532de7['cursor']>=_0x532de7[_0x594b65(0x40a)])return;Date[_0x594b65(0xcc)]()-_0x1fd09c>=_0x68d1d9&&_0x5c7b46('flushTimeoutError',_0x5cc89e??{},_0x532de7),await new Promise(_0xcc5578=>setTimeout(_0xcc5578,0x3));}};return(..._0x1d7dd1)=>{const _0x10b188=_0x488760,_0x517307=()=>_0x47c633[_0x10b188(0x18a)]['_n'](_0x10b188(0x6d6),[_0x47c633[_0x10b188(0xae)],_0x47c633[_0x10b188(0x5d1)],_0x5c86ce,_0x1d7dd1],!![]),_0x5243ec=_0x1ce3e0=>{const _0x215294=_0x10b188;if(_0x1ce3e0&&_0x1ce3e0[_0x215294(0x6a5)])throw new TypeError(_0x215294(0x362)+_0x5c86ce+'\x27');return _0x1ce3e0[_0x215294(0x1d0)];};if(_0xed31a5['has'](_0x47c633['type'])&&!_0x118c66[_0x10b188(0x7d4)](_0x5c86ce)){const _0x433798=_0x47c633['_facade']['okdb'];return _0x433798[_0x10b188(0x762)](()=>_0x433798[_0x10b188(0x6e2)](_0x517307))[_0x10b188(0x447)](_0x5243ec);}if(_0x121893[_0x10b188(0x7d4)](_0x47c633[_0x10b188(0xae)]))try{return Promise[_0x10b188(0x705)](_0x5243ec(_0x517307()));}catch(_0x2b7f5b){return Promise[_0x10b188(0x75e)](_0x2b7f5b);}return _0x5243ec(_0x517307());};}});}async[_0x124556(0x2e4)](_0x208158={}){const _0x3eee0e=_0x124556;return await this[_0x3eee0e(0x18a)][_0x3eee0e(0x7e5)]('load',[this[_0x3eee0e(0xae)],this[_0x3eee0e(0x5d1)],_0x208158]),this;}async['start'](){const _0x7eb9bd=_0x124556;await this[_0x7eb9bd(0x18a)][_0x7eb9bd(0x7e5)](_0x7eb9bd(0x4c8),[this[_0x7eb9bd(0xae)],this[_0x7eb9bd(0x5d1)]]);}async[_0x124556(0x1ff)](_0x2c50ca={}){const _0x559eda=_0x124556;await this[_0x559eda(0x18a)][_0x559eda(0x7e5)](_0x559eda(0x2e1),[this[_0x559eda(0xae)],this['name'],_0x2c50ca]);}async['patchDeclaration'](_0x3f5978={}){const _0x44319a=_0x124556;return await this['_facade'][_0x44319a(0x7e5)]('patchDeclaration',[this[_0x44319a(0xae)],this[_0x44319a(0x5d1)],_0x3f5978]),this;}async[_0x124556(0x62e)](){const _0x366d67=_0x124556;await this[_0x366d67(0x18a)][_0x366d67(0x7e5)](_0x366d67(0x72c),[this[_0x366d67(0xae)],this[_0x366d67(0x5d1)]]);}}class _0x54e79c{constructor(_0x38377c,_0x1a0e99=null,_0x2496b5=null){const _0x6045ea=_0x124556;this[_0x6045ea(0x538)]=_0x38377c,this[_0x6045ea(0x569)]=_0x1a0e99,this[_0x6045ea(0x37d)]=_0x1a0e99===null,this['_root']=_0x2496b5||this,this['drivers']=this[_0x6045ea(0x115)]===this?_0x2c43f0(this):this['_root'][_0x6045ea(0x5e1)],this[_0x6045ea(0x192)]=new Map();}['_n'](_0xdaf726,_0x5d0440,_0x35cc80=!![]){const _0x482696=_0x124556;return this[_0x482696(0x538)]['_call'](_0x482696(0x675),this['envName'],_0xdaf726,_0x5d0440,_0x35cc80);}[_0x124556(0x7e5)](_0x160721,_0x27d604){const _0x5aacb0=_0x124556;return this[_0x5aacb0(0x538)]['_callMacro']('engines',this['envName'],_0x160721,_0x27d604,!![]);}get[_0x124556(0x114)](){const _0x139579=_0x124556;return this[_0x139579(0x569)]?this[_0x139579(0x538)][_0x139579(0x114)](this[_0x139579(0x569)]):null;}['_wrap'](_0x6780fc){const _0x4a2075=_0x124556;if(!_0x6780fc)return null;let _0x2b6f88=this[_0x4a2075(0x192)]['get'](_0x6780fc['key']);return!_0x2b6f88&&(_0x2b6f88=new _0x2bc2e4(this,_0x6780fc[_0x4a2075(0x69e)],_0x6780fc[_0x4a2075(0xae)],_0x6780fc[_0x4a2075(0x5d1)]),this[_0x4a2075(0x192)][_0x4a2075(0x721)](_0x6780fc[_0x4a2075(0x69e)],_0x2b6f88)),_0x2b6f88;}[_0x124556(0x2c3)](_0x2493d7,_0x2786ae){const _0x3c4240=_0x124556;if(!_0x2493d7||typeof _0x2493d7!==_0x3c4240(0x48c))throw new _0x24661b(_0x3c4240(0x13a),'ENGINE_INVALID_TYPE',{'type':_0x2493d7});if(!_0x2786ae||typeof _0x2786ae!==_0x3c4240(0x788))throw new _0x24661b('Engine\x20driver\x20for\x20\x22'+_0x2493d7+_0x3c4240(0x357),_0x3c4240(0x4b4),{'type':_0x2493d7});if(typeof _0x2786ae['start']!=='function')throw new _0x24661b(_0x3c4240(0x33a)+_0x2493d7+_0x3c4240(0x266),_0x3c4240(0x6f1),{'type':_0x2493d7});const _0x2bde1d=this[_0x3c4240(0x115)];if(_0x2bde1d[_0x3c4240(0x5e1)][_0x3c4240(0x7d4)](_0x2493d7))throw new _0x24661b('Engine\x20driver\x20already\x20registered:\x20\x22'+_0x2493d7+'\x22',_0x3c4240(0x2e2),{'type':_0x2493d7});const _0x3f9397=_0x732347['regObject'](_0x2786ae,this[_0x3c4240(0x538)]),_0x2c7f9b=_0x5ce94a[_0x3c4240(0xe5)](_0x119a26=>typeof _0x2786ae[_0x119a26]===_0x3c4240(0x656)),_0x28088e=_0x2786ae[_0x3c4240(0x7cb)]&&typeof _0x2786ae[_0x3c4240(0x7cb)]===_0x3c4240(0x788)?_0x2786ae[_0x3c4240(0x7cb)]:{};this[_0x3c4240(0x538)][_0x3c4240(0x11e)](_0x3c4240(0x675),null,_0x3c4240(0x2c3),[_0x2493d7,{'$id':_0x3f9397,'has':_0x2c7f9b,'docs':_0x28088e}]),_0x2bde1d[_0x3c4240(0x5e1)][_0x3c4240(0x731)](_0x2493d7,_0x2786ae);}get[_0x124556(0x11b)](){const _0x23d428=_0x124556;return this[_0x23d428(0x538)][_0x23d428(0x11e)](_0x23d428(0x675),null,'orchestratorStarted',[],![]);}get[_0x124556(0x376)](){const _0x437191=this;return{get '_started'(){const _0x414be3=_0x5aff;return _0x437191[_0x414be3(0x11b)];}};}[_0x124556(0x2d1)](_0x40c869){const _0x4789ee=_0x124556;if(!_0x40c869||typeof _0x40c869!==_0x4789ee(0x788))throw new _0x24661b(_0x4789ee(0x31a),_0x4789ee(0x4a6));if(!_0x40c869['id']||typeof _0x40c869['id']!=='string')throw new _0x24661b(_0x4789ee(0x743),'ENGINE_INVALID_TEMPLATE');if(![_0x4789ee(0x723),_0x4789ee(0x1d9)][_0x4789ee(0x564)](_0x40c869[_0x4789ee(0x312)]))throw new _0x24661b('Engine\x20template\x20kind\x20must\x20be\x20\x22engine\x22\x20or\x20\x22pipeline\x22:\x20'+_0x40c869['id'],_0x4789ee(0x4a6));if(typeof _0x40c869[_0x4789ee(0x744)]!=='function')throw new _0x24661b(_0x4789ee(0x30e)+_0x40c869['id'],_0x4789ee(0x4a6));const _0x3d8493=this['okdb'],_0x4ae923=typeof _0x40c869[_0x4789ee(0x515)]===_0x4789ee(0x656);return this['_n']('registerTemplate',[{'id':_0x40c869['id'],'kind':_0x40c869['kind'],'family':_0x40c869[_0x4789ee(0x73a)]??null,'engineType':_0x40c869[_0x4789ee(0x25c)]??null,'pipelineFamily':_0x40c869[_0x4789ee(0x65a)]??null,'recommended':_0x40c869[_0x4789ee(0x469)]===!![],'summary':_0x40c869[_0x4789ee(0x3b1)]??null,'description':_0x40c869[_0x4789ee(0x588)]??null,'inputSchema':_0x4ae923?null:_0x40c869[_0x4789ee(0x515)]??null,'inputSchemaFn':_0x4ae923?()=>_0x40c869['inputSchema'](_0x3d8493):null,'defaults':_0x40c869[_0x4789ee(0xee)]??null,'notes':Array['isArray'](_0x40c869['notes'])?_0x40c869['notes']:[],'links':Array[_0x4789ee(0x796)](_0x40c869[_0x4789ee(0x2d8)])?_0x40c869[_0x4789ee(0x2d8)]:[],'build':(_0x5b28fd,_0x54b967)=>_0x40c869[_0x4789ee(0x744)](_0x5b28fd??{},{'okdb':_0x3d8493,'envName':_0x54b967??null})}],![]);}[_0x124556(0x2a6)](_0x4b42e1){const _0x432759=_0x124556;return this['_n'](_0x432759(0x2a6),[_0x4b42e1??null],![]);}['getTemplate'](_0x5ad628){return this['_n']('getTemplate',[_0x5ad628],![]);}[_0x124556(0x371)](_0x3ff9f4,_0x5b3349,_0x44c5a){const _0x16b3ed=_0x124556;return this['_n'](_0x16b3ed(0x371),[_0x3ff9f4,_0x5b3349,_0x44c5a??this['envName']],![]);}[_0x124556(0x2ed)](){const _0x55f0f9=_0x124556;return this['_n'](_0x55f0f9(0x2ed),[],![]);}async[_0x124556(0x160)](){return this['_nm']('start',[]);}async[_0x124556(0x1ff)](){const _0x4c0417=_0x124556;return this[_0x4c0417(0x7e5)](_0x4c0417(0x1ff),[]);}async[_0x124556(0x161)](_0x261016,_0x1002d7,_0x2eb2e5={},_0x508fad={},_0x1bc4a1={}){const _0x38bff3=_0x124556;return this[_0x38bff3(0x3d3)](await this[_0x38bff3(0x7e5)](_0x38bff3(0x161),[_0x261016,_0x1002d7,_0x2eb2e5,_0x508fad,_0x1bc4a1]));}async[_0x124556(0x4c1)](_0x5982e7,_0x2c14e5,_0x14ff78={},_0x96eab={},_0x3e0265={}){const _0x2d8089=_0x124556;return this[_0x2d8089(0x3d3)](await this['_nm']('createAndStartEngine',[_0x5982e7,_0x2c14e5,_0x14ff78,_0x96eab,_0x3e0265]));}[_0x124556(0x539)](_0x375f51,_0x183b19){const _0x4213bf=_0x124556;return this[_0x4213bf(0x3d3)](this['_n'](_0x4213bf(0x539),[_0x375f51,_0x183b19],![]));}[_0x124556(0xf2)](_0x1d9dfa,_0x54a441){return this['_wrap'](this['_n']('getRunningEngine',[_0x1d9dfa,_0x54a441],![]));}[_0x124556(0x46b)](_0x5f04ee){const _0x365160=_0x124556;return this['_n'](_0x365160(0x46b),[_0x5f04ee??null],![])[_0x365160(0x78f)](_0x17d367=>this[_0x365160(0x3d3)](_0x17d367));}async[_0x124556(0xc3)](_0x55d380,_0x25a746){const _0x49091b=_0x124556;return this[_0x49091b(0x3d3)](await this[_0x49091b(0x7e5)](_0x49091b(0xc3),[_0x55d380,_0x25a746]));}async[_0x124556(0x7ea)](_0x1eb518,_0x4dc7bc){const _0x499370=_0x124556;return this[_0x499370(0x192)][_0x499370(0x62a)](_0x1eb518+':'+_0x4dc7bc),this[_0x499370(0x7e5)](_0x499370(0x7ea),[_0x1eb518,_0x4dc7bc]);}async[_0x124556(0x136)](_0x12ba94){const _0x44b849=_0x124556;return this[_0x44b849(0x7e5)]('startNewEnginesFromSync',[_0x12ba94]);}async['bootSyncedEngines'](){const _0x28cc11=_0x124556;return this[_0x28cc11(0x7e5)](_0x28cc11(0x6d0),[]);}}function _0x2c43f0(_0x1e3e36){const _0x2b0098=_0x124556,_0x31b8e0=new Map();return{'has':_0x53e6c8=>_0x31b8e0[_0x2b0098(0x7d4)](_0x53e6c8)||_0x1e3e36['okdb']['_call'](_0x2b0098(0x675),null,_0x2b0098(0xef),[_0x53e6c8],![]),'get':_0x2432eb=>_0x31b8e0[_0x2b0098(0x73e)](_0x2432eb),'set':()=>{const _0x4358f0=_0x2b0098;throw new _0x24661b(_0x4358f0(0x76e),'BAD_PARAM');},'_set':(_0x18d644,_0x2d2a49)=>_0x31b8e0['set'](_0x18d644,_0x2d2a49),'keys':()=>_0x31b8e0[_0x2b0098(0x6e4)](),'entries':()=>_0x31b8e0[_0x2b0098(0x67c)](),'values':()=>_0x31b8e0['values'](),get 'size'(){const _0x14b187=_0x2b0098;return _0x31b8e0[_0x14b187(0x479)];},[Symbol[_0x2b0098(0x3f3)]]:()=>_0x31b8e0[Symbol['iterator']]()};}class _0x1f8dd4{constructor(_0x3e0c1e,_0x2191cd=null){const _0x12180c=_0x124556;this[_0x12180c(0x538)]=_0x3e0c1e,this[_0x12180c(0x569)]=_0x2191cd;}['_n'](_0x2b6b53,_0x102f11,_0x171e4b=!![]){const _0x3aeb98=_0x124556;return this[_0x3aeb98(0x538)][_0x3aeb98(0x11e)](_0x3aeb98(0x20c),this[_0x3aeb98(0x569)],_0x2b6b53,_0x102f11,_0x171e4b);}[_0x124556(0x7e5)](_0x285d67,_0x539207){const _0x1c1ae8=_0x124556;return this[_0x1c1ae8(0x538)][_0x1c1ae8(0x687)](_0x1c1ae8(0x20c),this[_0x1c1ae8(0x569)],_0x285d67,_0x539207,!![]);}get['isCoordinator'](){const _0x11e41b=_0x124556;return this[_0x11e41b(0x569)]===null;}async[_0x124556(0x5c8)](_0x582d25){const _0x50d74e=_0x124556;return this['_n'](_0x50d74e(0x5c8),[_0x582d25]);}async[_0x124556(0x73e)](_0x436ddb,_0x7a8842){return this['_n']('get',[_0x436ddb,_0x7a8842??null],![]);}async[_0x124556(0x614)](_0x35cd4e,_0x45aea2){const _0x17315f=_0x124556;return this['_n'](_0x17315f(0x614),[_0x35cd4e,_0x45aea2??null],![]);}async['list'](_0x9ab55b){return this['_n']('list',[_0x9ab55b??null],![]);}async[_0x124556(0x380)](_0xc9b9ab={}){const _0x2cc332=_0x124556;return this['_n'](_0x2cc332(0x380),[_0xc9b9ab?.[_0x2cc332(0x569)]??null],![]);}['validate'](_0xa244f9,_0x4d531b){const _0x40b265=_0x124556;return this['_n'](_0x40b265(0x1f9),[_0xa244f9,_0x4d531b??null],![]);}async[_0x124556(0x53b)](_0x5e6bea){const _0x2d9999=_0x124556;return this[_0x2d9999(0x7e5)]('create',[_0x5e6bea]);}async['update'](_0x577d0c,_0x5ecfef){const _0x2e1e43=_0x124556;return this[_0x2e1e43(0x7e5)](_0x2e1e43(0x47c),[_0x577d0c,_0x5ecfef]);}async['stop'](_0xb3499d){const _0x3a78e5=_0x124556;return this[_0x3a78e5(0x7e5)](_0x3a78e5(0x1ff),[_0xb3499d]);}async[_0x124556(0x749)](_0x4d06a0){const _0x32d2bd=_0x124556;if(!_0x4d06a0||typeof _0x4d06a0!==_0x32d2bd(0x788)||!_0x4d06a0[_0x32d2bd(0x5d1)]||!_0x4d06a0[_0x32d2bd(0x675)])return _0x4d06a0;for(let _0x55c1b8=0x0;_0x55c1b8<0x3;_0x55c1b8++)await new Promise(_0x3e0bab=>setImmediate(_0x3e0bab));try{const _0x5c7dbc=this[_0x32d2bd(0x569)]!==null?await this[_0x32d2bd(0x73e)](_0x4d06a0[_0x32d2bd(0x5d1)]):_0x4d06a0[_0x32d2bd(0x114)]?await this[_0x32d2bd(0x73e)](_0x4d06a0['env'],_0x4d06a0[_0x32d2bd(0x5d1)]):null;return _0x5c7dbc||_0x4d06a0;}catch{return _0x4d06a0;}}async[_0x124556(0x160)](_0x46c9f7){const _0x32001c=_0x124556;return this[_0x32001c(0x749)](await this['_nm'](_0x32001c(0x160),[_0x46c9f7]));}async[_0x124556(0xc3)](_0x91432d){const _0x42630c=_0x124556;return this[_0x42630c(0x749)](await this['_nm'](_0x42630c(0xc3),[_0x91432d]));}async[_0x124556(0x771)](_0x16410a){const _0x340754=_0x124556;return this[_0x340754(0x7e5)](_0x340754(0x771),[_0x16410a]);}async[_0x124556(0x451)](_0x31f002,_0x3e9cf2,_0x47abf9){const _0x3fe880=_0x124556;return this[_0x3fe880(0x7e5)]('replaceMember',[_0x31f002,_0x3e9cf2,_0x47abf9]);}async[_0x124556(0x102)](_0x5c33af){const _0x26ad41=_0x124556;return this[_0x26ad41(0x7e5)](_0x26ad41(0x102),[_0x5c33af]);}async[_0x124556(0x2fc)](){const _0x2e93a1=_0x124556;return this[_0x2e93a1(0x7e5)](_0x2e93a1(0x2fc),[]);}async['bootSyncedPipelines'](){const _0x4d0cb8=_0x124556;return this[_0x4d0cb8(0x7e5)](_0x4d0cb8(0x3cf),[]);}[_0x124556(0x5cc)](_0x3b6dd8,_0x599599){const _0x149e19=_0x124556;return this['_n'](_0x149e19(0x5cc),[_0x3b6dd8,_0x599599],![]);}}return engines={'OKDBEngines':_0x54e79c,'OKDBPipelines':_0x1f8dd4,'OKDBEngineHandle':_0x2bc2e4},engines;}var functions,hasRequiredFunctions;function requireFunctions(){const _0x2d39f4=_0x2dfd83;if(hasRequiredFunctions)return functions;hasRequiredFunctions=0x1;const {optionsArg:_0x58d19e}=requireErrors(),_0x106cb1=Number(process.env.OKDB_FN_POLL_MS)||0x14;class _0x230eae{constructor(_0x3469b4,_0x69b540=null){const _0x3e6814=_0x5aff;this[_0x3e6814(0x538)]=_0x3469b4,this[_0x3e6814(0x569)]=_0x69b540??'~system';}get[_0x2d39f4(0x114)](){const _0x17152f=_0x2d39f4;return this[_0x17152f(0x538)][_0x17152f(0x4a8)][_0x17152f(0x73e)](this[_0x17152f(0x569)])??null;}['_n'](_0x30222c,_0x5b05b7=[],_0x4ca982=!![]){const _0x1f002c=_0x2d39f4;try{return this[_0x1f002c(0x538)]['_call'](_0x1f002c(0x3f9),this[_0x1f002c(0x569)],_0x30222c,_0x5b05b7,_0x4ca982);}catch(_0x176939){throw _0x5d7698(_0x176939);}}async[_0x2d39f4(0x7e5)](_0x49fc09,_0x27ba2d=[]){const _0x476177=_0x2d39f4;try{return await this['okdb'][_0x476177(0x687)](_0x476177(0x3f9),this[_0x476177(0x569)],_0x49fc09,_0x27ba2d,!![]);}catch(_0x129c88){throw _0x5d7698(_0x129c88);}}async[_0x2d39f4(0x46b)](){const _0x26e19e=_0x2d39f4;return this['_n'](_0x26e19e(0x46b),[],![]);}async['get'](_0x5578cf){const _0x4131bb=_0x2d39f4;return this['_n'](_0x4131bb(0x73e),[_0x5578cf],![]);}async[_0x2d39f4(0x53b)](_0xc277dd){const _0x2c6fb1=_0x2d39f4;return this['_n'](_0x2c6fb1(0x53b),[_0xc277dd]);}async['update'](_0x10ff99,_0x45b648={}){const _0x2db549=_0x2d39f4;return this['_n'](_0x2db549(0x47c),[_0x10ff99,_0x45b648]);}async['remove'](_0x5a0028){const _0x4ba473=_0x2d39f4;return this['_n'](_0x4ba473(0x102),[_0x5a0028]);}async[_0x2d39f4(0x370)](_0x5ee8d8){const _0x4feac9=_0x2d39f4,{functionName:functionName=null}=_0x58d19e(_0x5ee8d8);return this['_n'](_0x4feac9(0x370),[{'functionName':functionName}],![]);}async[_0x2d39f4(0x603)](_0x2d1626){const _0xa9d5f1=_0x2d39f4;return this['_n'](_0xa9d5f1(0x603),[_0x2d1626],![]);}async[_0x2d39f4(0x426)](_0x321f06){const _0x18e75e=_0x2d39f4;return _0x321f06=_0x58d19e(_0x321f06,'run'),this['_n'](_0x18e75e(0x426),[_0x321f06]);}async[_0x2d39f4(0x2b0)](_0x5f228a,_0x2004f8=null,_0x431fe8={}){const _0x4ae970=_0x2d39f4,_0x4b2ce9={..._0x431fe8},_0xf974d3=_0x4b2ce9['signal'];if(_0xf974d3)_0x4b2ce9[_0x4ae970(0x798)]=!!_0xf974d3[_0x4ae970(0x798)];delete _0x4b2ce9[_0x4ae970(0x7d5)];const _0x1ade2d=await this[_0x4ae970(0x7e5)](_0x4ae970(0x713),[_0x5f228a,_0x2004f8,_0x4b2ce9]),_0x6dfe9e=this[_0x4ae970(0x538)],_0x4c8a82=()=>_0x6dfe9e[_0x4ae970(0x166)][_0x4ae970(0x7a8)]();if(_0xf974d3&&typeof _0xf974d3[_0x4ae970(0x506)]==='function')_0xf974d3[_0x4ae970(0x506)]('abort',_0x4c8a82,{'once':!![]});let _0x7e11f6=![];try{for(;;){const _0x95107b=_0x6dfe9e[_0x4ae970(0x166)]['nextTurn'](_0x106cb1);let _0x50e7f6;try{_0x50e7f6=await _0x6dfe9e['_callMacro'](_0x4ae970(0x3f9),this[_0x4ae970(0x569)],_0x4ae970(0x207),[_0x1ade2d,!!_0xf974d3?.['aborted']],![],![]);}catch(_0x1f5311){_0x7e11f6=!![];throw _0x5d7698(_0x1f5311);}if(!_0x50e7f6||_0x50e7f6[_0x4ae970(0x3ae)]!==!![])return _0x7e11f6=!![],_0x6dfe9e['_pumper']['wake'](),_0x50e7f6;if(_0x50e7f6[_0x4ae970(0x43e)])_0x6dfe9e[_0x4ae970(0x166)][_0x4ae970(0x7a8)]();await _0x95107b;}}finally{if(_0xf974d3&&typeof _0xf974d3['removeEventListener']===_0x4ae970(0x656))_0xf974d3[_0x4ae970(0x262)]('abort',_0x4c8a82);if(!_0x7e11f6)try{_0x6dfe9e[_0x4ae970(0x11e)]('functions',this['envName'],_0x4ae970(0x6a4),[_0x1ade2d],![]);}catch{}}}async[_0x2d39f4(0x206)](_0x23373c={},_0x4a8aaa=null,_0x473a01={}){const _0x544a10=_0x2d39f4;return this[_0x544a10(0x7e5)](_0x544a10(0x206),[_0x23373c,_0x4a8aaa,_0x473a01]);}async[_0x2d39f4(0x1ff)](){}}function _0x5d7698(_0x1c0c05){const _0x4aad6b=_0x2d39f4;if(_0x1c0c05&&_0x1c0c05[_0x4aad6b(0x3e8)]&&_0x1c0c05[_0x4aad6b(0x3e8)][_0x4aad6b(0x39f)])_0x1c0c05[_0x4aad6b(0x7a4)]=_0x1c0c05[_0x4aad6b(0x3e8)][_0x4aad6b(0x39f)];return _0x1c0c05;}return functions={'OKDBFunctions':_0x230eae},functions;}var processor={'exports':{}},lock,hasRequiredLock;function requireLock(){const _0x37ca04=_0x2dfd83;if(hasRequiredLock)return lock;hasRequiredLock=0x1;const {optionsArg:_0xc2bc45}=requireErrors();class _0x8be054{constructor(_0xd53c17,_0x502351){const _0x506b00=_0x5aff;this['_lock']=_0xd53c17,this[_0x506b00(0x2c2)]=_0x502351;}['_n'](_0x4bd29f,_0x248264=[]){const _0x410076=_0x5aff;return this[_0x410076(0x78d)]['_n'](_0x4bd29f,[this[_0x410076(0x2c2)],..._0x248264]);}[_0x37ca04(0x182)](){const _0x2c29be=_0x37ca04;return this['_n'](_0x2c29be(0x182));}get[_0x37ca04(0x440)](){const _0x366d62=_0x37ca04;return this['_n'](_0x366d62(0x440));}[_0x37ca04(0x4da)](){const _0x1ab9e4=_0x37ca04;return this['_n'](_0x1ab9e4(0x4da));}[_0x37ca04(0xaf)](_0x1d848f){const _0x4dc840=_0x37ca04;return this['_n'](_0x4dc840(0xaf),[_0x1d848f]);}async['release'](){const _0x26236f=_0x37ca04;return this['_n'](_0x26236f(0x4db));}}class _0x5410b9{constructor(_0x3d3deb,_0x22b7df,_0x20fb0e,_0x157276){const _0x1b6b64=_0x37ca04,{ttlMs:ttlMs=0x7530,heartbeatMs:heartbeatMs=null}=_0xc2bc45(_0x157276);this['okdb']=_0x3d3deb,this['namespace']=_0x20fb0e,this[_0x1b6b64(0x2c2)]=_0x3d3deb['_call']('lock',_0x22b7df,_0x1b6b64(0x5da),[_0x20fb0e,ttlMs,heartbeatMs],![]),this[_0x1b6b64(0x2e3)]=_0x22b7df;}['_n'](_0x481472,_0x2927d3=[]){const _0x18cd5b=_0x37ca04;return this[_0x18cd5b(0x538)][_0x18cd5b(0x11e)](_0x18cd5b(0xe0),this[_0x18cd5b(0x2e3)],_0x481472,_0x2927d3,![]);}[_0x37ca04(0xb1)](_0x411ec5){const _0x855321=_0x37ca04;return this['_n'](_0x855321(0x69e),[this[_0x855321(0x2c2)],_0x411ec5]);}async[_0x37ca04(0x72e)](_0x2ce779,_0x39411f={},_0x556013={}){const _0x397dd1=_0x37ca04,_0x485b78=this['_n']('tryAcquire',[this[_0x397dd1(0x2c2)],_0x2ce779,_0x39411f,_0x556013]);return{'acquired':_0x485b78[_0x397dd1(0x572)],'handle':_0x485b78[_0x397dd1(0x6b2)]==null?null:new _0x8be054(this,_0x485b78['handle']),'current':_0x485b78[_0x397dd1(0x7d9)]};}[_0x37ca04(0xd5)](_0x405563){const _0x3c441f=_0x37ca04;return this['_n'](_0x3c441f(0xd5),[this['_id'],_0x405563]);}[_0x37ca04(0x46b)](){const _0x517bb4=_0x37ca04;return this['_n'](_0x517bb4(0x46b),[this['_id']]);}[_0x37ca04(0x736)](_0x16405d){return this['_n']('signalWant',[this['_id'],_0x16405d]);}[_0x37ca04(0x348)](_0x1272bb,_0x568476=0x3e8){return this['_n']('isWanted',[this['_id'],_0x1272bb,_0x568476]);}}return lock={'NativeLock':_0x5410b9,'NativeLockHandle':_0x8be054},lock;}var hasRequiredProcessor;function requireProcessor(){const _0x31cd51=_0x2dfd83;if(hasRequiredProcessor)return processor[_0x31cd51(0x4ec)];hasRequiredProcessor=0x1;const _0x84a449=requireBridge(),{RawDb:_0x247698}=requireRawdb(),{NativeLock:_0xbf6c7}=requireLock();function _0x95448(_0x426386){}class _0x483b0a{constructor(_0x2df7bb){const _0x54dbb4=_0x31cd51;this[_0x54dbb4(0x114)]=_0x2df7bb,this[_0x54dbb4(0x538)]=_0x2df7bb;try{this['_n']('setLogSink',[(_0x25fd60,_0x6e3ae8)=>{const _0x202271=_0x54dbb4,_0x4b6979=this[_0x202271(0x538)][_0x202271(0x66c)],_0x9b8bce=_0x4b6979?.[_0x25fd60]??_0x4b6979?.[_0x202271(0x76d)];if(typeof _0x9b8bce===_0x202271(0x656))_0x9b8bce[_0x202271(0x772)](_0x4b6979,_0x6e3ae8);}],![]);}catch{}}['_n'](_0x5e696b,_0x33c978,_0x587140=!![]){const _0x2aca25=_0x31cd51;return this[_0x2aca25(0x114)]['okdb']['_call']('proc',this['env'][_0x2aca25(0x5d1)],_0x5e696b,_0x33c978,_0x587140);}['register'](_0x1006d0,_0x445ccc={}){const _0x26db82=_0x31cd51,_0x23c501={..._0x445ccc};if(typeof _0x23c501[_0x26db82(0x6a0)]===_0x26db82(0x656)&&_0x23c501[_0x26db82(0x7e7)]!=null)throw new Error(_0x26db82(0x4e0)+_0x26db82(0x4b0));if(typeof _0x23c501['handler']===_0x26db82(0x48c)&&_0x23c501['module']!=null)throw new Error('processor:\x20specify\x20exactly\x20one\x20of\x20handler:\x27<name>\x27\x20or\x20module:{path,export},\x20not\x20both');if(_0x23c501[_0x26db82(0x7e7)]!=null){if(!_0x23c501[_0x26db82(0x7e7)][_0x26db82(0x2fa)])throw new Error(_0x26db82(0x211));const _0xa6bfe9=_0x23c501[_0x26db82(0x7e7)][_0x26db82(0x6d2)]??_0x23c501['module'][_0x26db82(0x649)]??_0x26db82(0xc6),_0x460e37=require[_0x26db82(0x705)](_0x23c501['module'][_0x26db82(0x2fa)]),_0x22c91a=require(_0x460e37),_0x477b64=_0x22c91a[_0xa6bfe9]??_0x22c91a[_0x26db82(0x511)]??_0x22c91a;if(typeof _0x477b64!==_0x26db82(0x656))throw new Error(_0x26db82(0xfc)+_0x23c501[_0x26db82(0x7e7)][_0x26db82(0x2fa)]+_0x26db82(0x37e)+_0xa6bfe9+_0x26db82(0x28a));this[_0x26db82(0x114)]['okdb'][_0x26db82(0x701)](_0x26db82(0x1fd),_0x26db82(0x7c2),[_0x460e37,_0xa6bfe9,_0x477b64]),_0x23c501[_0x26db82(0x7e7)]={'path':_0x460e37,'export':_0xa6bfe9};}if(_0x23c501[_0x26db82(0x3d4)]!=null){if(typeof _0x23c501[_0x26db82(0x3d4)][_0x26db82(0x7e7)]!=='string')throw new Error(_0x26db82(0x6b0));const _0x166cc8=require[_0x26db82(0x705)](_0x23c501['quantum'][_0x26db82(0x7e7)]),_0x652db3=require(_0x166cc8),_0x36ba56=_0x23c501[_0x26db82(0x3d4)][_0x26db82(0x649)],_0x3c7b86=_0x36ba56?_0x652db3[_0x36ba56]:_0x652db3['default']??_0x652db3;if(typeof _0x3c7b86===_0x26db82(0x656)){const _0x24773a=_0x36ba56?_0x23c501[_0x26db82(0x3d4)]['module']+'#'+_0x36ba56:_0x23c501[_0x26db82(0x3d4)]['module'];this[_0x26db82(0x114)][_0x26db82(0x538)][_0x26db82(0x701)](_0x26db82(0x1fd),'registerQuantum',[_0x24773a,_0x3c7b86]);}_0x23c501[_0x26db82(0x3d4)]={..._0x23c501[_0x26db82(0x3d4)]};}_0x23c501['payload']!=null&&typeof _0x23c501[_0x26db82(0x68e)]===_0x26db82(0x788)&&(_0x23c501[_0x26db82(0x68e)]={'$payload':_0x84a449[_0x26db82(0x1cc)](_0x23c501[_0x26db82(0x68e)],this['env'][_0x26db82(0x538)])});if(_0x23c501[_0x26db82(0x771)]!=null&&typeof _0x23c501[_0x26db82(0x771)]!==_0x26db82(0x656))throw new Error(_0x26db82(0x5eb));const _0x3d07e7=this['_n'](_0x26db82(0x71e),[_0x1006d0??null,_0x23c501]);return this[_0x26db82(0x3da)](_0x3d07e7['id'],_0x3d07e7[_0x26db82(0x2d7)]);}[_0x31cd51(0x3da)](_0x465a17,_0x5ef1c4){const _0x275c7b=_0x31cd51,_0x24d0e3=this,_0x586cec=async()=>{_0x24d0e3['_n']('stopHandle',[_0x465a17]);};return _0x586cec['id']=_0x465a17,_0x586cec[_0x275c7b(0x2d7)]=_0x5ef1c4,_0x586cec[_0x275c7b(0x412)]=()=>_0x5ef1c4?_0x24d0e3['_n'](_0x275c7b(0x620),[_0x465a17],![]):0x0,_0x586cec[_0x275c7b(0x422)]=()=>_0x24d0e3[_0x275c7b(0x73e)](_0x465a17),_0x586cec['getStatus']=_0x586cec[_0x275c7b(0x422)],_0x586cec[_0x275c7b(0x329)]=()=>_0x24d0e3[_0x275c7b(0x329)](_0x465a17),_0x586cec[_0x275c7b(0x716)]=()=>_0x24d0e3[_0x275c7b(0x716)](_0x465a17),_0x586cec[_0x275c7b(0x36b)]=()=>_0x24d0e3[_0x275c7b(0x36b)](_0x465a17),_0x586cec[_0x275c7b(0x2ae)]=()=>_0x24d0e3[_0x275c7b(0x2ae)](_0x465a17),_0x586cec[_0x275c7b(0x256)]=_0x3bc37c=>_0x24d0e3[_0x275c7b(0x256)](_0x465a17,_0x3bc37c),_0x586cec;}get['_stops'](){const _0x5193a5=_0x31cd51;try{return this['_n'](_0x5193a5(0x46b),[],![])[_0x5193a5(0x78f)](_0x5220c5=>({'id':_0x5220c5['id']}));}catch{return[];}}async[_0x31cd51(0x6b4)](_0xb4b76c){const _0x176fd2=_0x31cd51;return new Set(this['_n'](_0x176fd2(0x6b4),[]));}[_0x31cd51(0x456)](_0x2d0af8){const _0x3e8ced=_0x31cd51;return this['_n'](_0x3e8ced(0x456),[[..._0x2d0af8??[]]]);}get['_envWide'](){const _0x379d90=_0x31cd51;return new Set(this['_n'](_0x379d90(0x46b),[],![])['filter'](_0x283d07=>_0x283d07['type']==null)[_0x379d90(0x78f)](_0xa711d0=>_0xa711d0['id']));}[_0x31cd51(0x16c)](){}get[_0x31cd51(0x78d)](){const _0x332486=_0x31cd51;if(!this[_0x332486(0x30d)]){const _0x20f239=new _0xbf6c7(this[_0x332486(0x114)][_0x332486(0x538)],this['env'][_0x332486(0x5d1)],_0x332486(0x1fd)),_0x45dedd=this[_0x332486(0x114)];_0x20f239[_0x332486(0x1d5)]=()=>new _0x247698(_0x45dedd,_0x332486(0x5a1)),this[_0x332486(0x30d)]=_0x20f239;}return this[_0x332486(0x30d)];}[_0x31cd51(0x1af)](_0x300e3f,_0x4a7c48){const _0x1a3b6e=_0x31cd51;return this['_n'](_0x1a3b6e(0x4eb),[typeof _0x300e3f===_0x1a3b6e(0x48c)?_0x300e3f:_0x300e3f['id'],_0x4a7c48?.['message']??String(_0x4a7c48??'')]);}get[_0x31cd51(0x12f)](){const _0xc22544=_0x31cd51;return this[_0xc22544(0x63f)]||(this['__stateDb']=new _0x247698(this['env'],_0xc22544(0x1f6)));}get[_0x31cd51(0x727)](){const _0x414eb4=_0x31cd51,_0x1b5b15=this,_0x3b6195=_0x55345f=>{const _0x118d31=_0x5aff,_0x1154e3=()=>_0x1b5b15['_n'](_0x118d31(0x32f),[_0x55345f],![]);if(!_0x1154e3())return undefined;const _0x3be758=_0xf9d2b2=>()=>_0x1154e3()?.[_0xf9d2b2],_0x624880={'id':_0x55345f},_0x514884=(_0x29b477,_0x1b225b,_0x2ef11f)=>Object[_0x118d31(0x4b3)](_0x624880,_0x29b477,{'get':_0x1b225b,'set':_0x2ef11f,'enumerable':!![],'configurable':!![]});return _0x514884('state',_0x3be758(_0x118d31(0x728))),_0x514884('mode',_0x3be758(_0x118d31(0x2de))),_0x514884(_0x118d31(0xe8),_0x3be758(_0x118d31(0xe8))),_0x514884('lastClock',_0x3be758('lastClock'),_0x31d0c8=>_0x1b5b15['_n'](_0x118d31(0x1e1),[_0x55345f,_0x31d0c8])),_0x514884('cursorKey',_0x3be758(_0x118d31(0x2d7))),_0x514884(_0x118d31(0x710),_0x3be758(_0x118d31(0x623)),_0x1fad19=>_0x1b5b15['_n'](_0x118d31(0x45d),[_0x55345f,!!_0x1fad19])),_0x514884(_0x118d31(0x68a),_0x3be758(_0x118d31(0x331))),_0x514884(_0x118d31(0x36c),_0x3be758(_0x118d31(0x36c))),_0x514884(_0x118d31(0x653),_0x3be758(_0x118d31(0x653))),_0x514884('_modeApplied',_0x3be758(_0x118d31(0x17d)),_0x39cf86=>_0x1b5b15['_n'](_0x118d31(0x2af),[_0x55345f,_0x39cf86])),_0x514884(_0x118d31(0xc5),()=>_0x1b5b15[_0x118d31(0x73e)](_0x55345f)?.[_0x118d31(0xc5)]),_0x514884(_0x118d31(0x488),()=>_0x1154e3()?.[_0x118d31(0x37b)]?{'isHeld':()=>!!_0x1154e3()?.[_0x118d31(0x37b)]}:null),_0x514884(_0x118d31(0x1c5),()=>_0x1154e3()?.[_0x118d31(0x757)]?()=>{}:null),_0x514884(_0x118d31(0x261),()=>_0x1154e3()?.[_0x118d31(0x6fe)]?{}:null),_0x514884(_0x118d31(0x13e),()=>_0x1154e3()?.[_0x118d31(0x4b2)]?{}:null),_0x624880;},_0x1d110d=()=>_0x1b5b15['_n']('list',[],![])[_0x414eb4(0x78f)](_0x29c02c=>_0x29c02c['id']);return{'get':_0x360ca1=>_0x3b6195(_0x360ca1),'has':_0x13cd4a=>_0x1d110d()['includes'](_0x13cd4a),get 'size'(){const _0x4bdc3a=_0x414eb4;return _0x1d110d()[_0x4bdc3a(0x42c)];},'keys':()=>_0x1d110d()[Symbol['iterator']](),'values':()=>_0x1d110d()[_0x414eb4(0x78f)](_0x3b6195)[Symbol[_0x414eb4(0x3f3)]](),'entries':()=>_0x1d110d()[_0x414eb4(0x78f)](_0x117a31=>[_0x117a31,_0x3b6195(_0x117a31)])[Symbol[_0x414eb4(0x3f3)]](),[Symbol['iterator']]:()=>_0x1d110d()['map'](_0xfd1f05=>[_0xfd1f05,_0x3b6195(_0xfd1f05)])[Symbol[_0x414eb4(0x3f3)]](),'forEach':_0x43a147=>_0x1d110d()[_0x414eb4(0x356)](_0x31e16c=>_0x43a147(_0x3b6195(_0x31e16c),_0x31e16c))};}async['stopAll'](){const _0x39a364=_0x31cd51;return this['_n'](_0x39a364(0x2fc),[]);}[_0x31cd51(0x46b)](){const _0x8c18b0=_0x31cd51,_0x564b3c=this['_n']('list',[],![]);if(!this[_0x8c18b0(0x114)][_0x8c18b0(0x5d1)][_0x8c18b0(0x302)]('~'))try{const _0x2e3722=this[_0x8c18b0(0x114)]['okdb'][_0x8c18b0(0xc5)];for(const _0x33c8d8 of _0x2e3722[_0x8c18b0(0x6c1)](this[_0x8c18b0(0x114)][_0x8c18b0(0x5d1)])){for(const _0xadbb6a of _0x2e3722[_0x8c18b0(0x345)](_0x33c8d8,this[_0x8c18b0(0x114)][_0x8c18b0(0x5d1)])){const _0x3a5bdd='index:'+_0x33c8d8+':'+_0xadbb6a;_0x564b3c[_0x8c18b0(0x782)]({'id':_0x3a5bdd,'type':_0x33c8d8,'mode':_0x8c18b0(0x25d),'state':_0x8c18b0(0x287),'paused':![],'lag':0x0,'cursorKey':_0x3a5bdd,'meta':{'name':_0x3a5bdd}});}}}catch{}return _0x564b3c;}[_0x31cd51(0x244)](){const _0x5b3bce=_0x31cd51;return this['_n'](_0x5b3bce(0x244),[],![]);}[_0x31cd51(0x5af)](){return this['_n']('durableTierLag',[],![]);}['durableCursorFloor'](){const _0x340a1f=_0x31cd51;return this['_n'](_0x340a1f(0x662),[],![]);}[_0x31cd51(0x73e)](_0x3456c2){const _0x211169=_0x31cd51;return this['_n'](_0x211169(0x73e),[_0x3456c2],![]);}['_status'](_0x542428){const _0x1a80ea=_0x31cd51;return this[_0x1a80ea(0x73e)](typeof _0x542428==='string'?_0x542428:_0x542428['id']);}[_0x31cd51(0x16f)](_0x341bda){const _0x5b1739=_0x31cd51;return this['_n'](_0x5b1739(0x16f),[_0x341bda],![]);}[_0x31cd51(0x6c2)](_0x2c6e9e){const _0xc208c5=_0x31cd51;return this['_n'](_0xc208c5(0x6c2),[_0x2c6e9e]);}[_0x31cd51(0x441)](_0x1025a6){const _0x246c72=_0x31cd51;return this['_n'](_0x246c72(0x441),[_0x1025a6]);}['isSnapshotComplete'](_0x20a7eb){return this['_n']('isSnapshotComplete',[_0x20a7eb],![]);}[_0x31cd51(0x581)](_0x149e08,_0x4a242b){const _0x2ae00e=_0x31cd51;return this['_n'](_0x2ae00e(0x581),[_0x149e08,_0x4a242b]);}async['awaitIdle'](_0x2fa03f,_0xb2bb3e){return this['_n']('awaitIdle',[_0x2fa03f,_0xb2bb3e??0x7530]);}['pause'](_0x478104){const _0x118c15=_0x31cd51;return this['_n'](_0x118c15(0x329),[_0x478104]);}['resume'](_0x4a9416){const _0xedb15=_0x31cd51;return this['_n'](_0xedb15(0x716),[_0x4a9416]);}async['setClaiming'](_0x141be6){const _0x308927=_0x31cd51;return this['_n'](_0x308927(0x402),[_0x141be6]);}[_0x31cd51(0x36b)](_0xbdb4b8){const _0x45abdb=_0x31cd51;return this['_n'](_0x45abdb(0x36b),[_0xbdb4b8]);}[_0x31cd51(0x2ae)](_0x1f7826){return this['_n']('retry',[_0x1f7826]);}[_0x31cd51(0xc3)](_0x45a2bf,_0x3dbfd1={}){const _0x593216=_0x31cd51;return this['_n'](_0x593216(0xc3),[_0x45a2bf,_0x3dbfd1]);}async['setMode'](_0xd8aae6,_0x443c18,_0x4719ae){const _0x557021=_0x31cd51,[_0x1bed2e,_0x493fcb]=this['_n'](_0x557021(0x68c),[_0xd8aae6,_0x443c18,_0x4719ae]);return{'version':_0x1bed2e,'flipClock':_0x493fcb};}async['snapshotScan'](_0x561177,_0x2c5ce8,_0x831a2d={}){return this['_n']('snapshotScan',[_0x561177,_0x2c5ce8,_0x831a2d]);}}_0x483b0a[_0x31cd51(0x2d4)]=function _0x5b21c4(_0xb93d7a,_0x21fb18){const _0x3803fa=_0x31cd51;if(typeof _0xb93d7a!=='string'||!_0xb93d7a)throw new Error(_0x3803fa(0x521));if(typeof _0x21fb18!=='function')throw new Error(_0x3803fa(0x26c));_0x1e029c(_0x3803fa(0x1fd),_0x3803fa(0x2d4),[_0xb93d7a,_0x21fb18]);},_0x483b0a['registerQuantum']=function _0x27e59c(_0x229ed0,_0x34893f){const _0x2cff30=_0x31cd51;if(typeof _0x229ed0!=='string'||!_0x229ed0)throw new Error(_0x2cff30(0x3af));if(typeof _0x34893f!==_0x2cff30(0x656))throw new Error(_0x2cff30(0x180));let _0x417155=null;_0x1e029c(_0x2cff30(0x1fd),_0x2cff30(0x5ce),[_0x229ed0,(_0x45923b,_0x458489)=>{if(!_0x417155)_0x417155=_0x34893f();return _0x417155(_0x45923b,_0x458489);}]);},_0x483b0a[_0x31cd51(0x751)]=_0x378237=>/closed|not open|released/i[_0x31cd51(0x4e9)](String(_0x378237)),_0x483b0a[_0x31cd51(0x12d)]=![];function _0x1e029c(_0x964e6a,_0x4a2246,_0x232a75){const {staticCall:_0x316cd8}=requireLib();return _0x316cd8(_0x964e6a,_0x4a2246,_0x232a75);}return processor[_0x31cd51(0x4ec)]=_0x483b0a,processor['exports']['OKDBProcessor']=_0x483b0a,processor[_0x31cd51(0x4ec)][_0x31cd51(0x7a1)]=_0x95448,processor[_0x31cd51(0x4ec)];}var okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x34a69d=_0x2dfd83;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x1a6478={'PUT':_0x34a69d(0x10d),'REMOVE':_0x34a69d(0x102),'INDEX_DROP':_0x34a69d(0x3bf),'INDEX_REGISTER':_0x34a69d(0x1fc),'INDEX_RESET':'resetIndex','TYPE_REGISTER':_0x34a69d(0x7d1),'TYPE_DROP':'dropType','FTS_REGISTER':'registerFts','FTS_DROP':'dropFts','FTS_RESET':_0x34a69d(0x104),'SCHEMA_SET':'setSchema','SCHEMA_DROP':_0x34a69d(0x152),'TTL_SET':'setTtl','TTL_CLEAR':_0x34a69d(0x26d)},_0x2946f0={'SYSTEM_READY':_0x34a69d(0x367),'FIELD_RESOLVER_REGISTERED':'field:resolver_registered','SYSTEM_STOPPED':_0x34a69d(0x1cf),'SYSTEM_CLOCK_CHANGE':_0x34a69d(0x3b0),'SYSTEM_POKE':_0x34a69d(0x1db),'SYSTEM_DRAIN':'system:drain','SYSTEM_TYPE_DROP':_0x34a69d(0x4e3),'SYSTEM_PROC':'system:proc','SYSTEM_BUS_STATE_CHANGE':_0x34a69d(0x47e),'ITEM_CREATE':'item:create','ITEM_UPDATE':'item:update','ITEM_REMOVE':'item:remove','ITEM_PENDING':'item:pending','INDEX_RESET':_0x34a69d(0x265),'INDEX_READY':'index:ready','INDEX_PROGRESS':_0x34a69d(0x437),'VIEW_PROGRESS':_0x34a69d(0x304),'INDEX_DROP':_0x34a69d(0x71a),'INDEX_REGISTERED':_0x34a69d(0x193),'FTS_REGISTERED':_0x34a69d(0x5ef),'FTS_DROP':_0x34a69d(0x7d2),'FTS_RESET':'fts:reset','SCHEMA_SET':'schema:set','SCHEMA_DROP':_0x34a69d(0x235),'UNIQUE_VIOLATION':_0x34a69d(0x323),'UNIQUE_VIOLATION_RESOLVED':_0x34a69d(0x6f4),'REF_VIOLATION':_0x34a69d(0x4f6),'REF_VIOLATION_RESOLVED':_0x34a69d(0x667),'SYNC_APPLY':_0x34a69d(0x3a3),'TXN_START':'txn:start','TXN_END':_0x34a69d(0x49c),'TXN_ROLLBACK':_0x34a69d(0x1eb),'TYPE_REGISTERED':_0x34a69d(0x5a4),'TYPE_DROP':_0x34a69d(0x650),'ENV_OPENED':_0x34a69d(0x484),'ENV_REMOVED':'env:removed','SYSTEM_ENV_RELEASE':'system:env_release','TTL_EXPIRED':_0x34a69d(0x147),'TTL_SET':_0x34a69d(0x16e),'TTL_CLEAR':_0x34a69d(0x1a8),'LICENSE_INVALID':_0x34a69d(0x44c),'LICENSE_ADDED':'license:added','LICENSE_ACTIVATED':_0x34a69d(0x7ca),'LICENSE_REMOVED':_0x34a69d(0x3d1)},_0x46dc9c={'CREATING':_0x34a69d(0x1a1),'RESETTING':_0x34a69d(0x3ac),'READY':_0x34a69d(0x298),'DROPPING':'dropping','WAITING':'waiting','ERROR':'error'},_0x381ec8={'CREATED':_0x34a69d(0x3a9),'STARTING':_0x34a69d(0xde),'STARTED':_0x34a69d(0x720),'STOPPING':_0x34a69d(0x220),'STOPPED':_0x34a69d(0x191)},_0x4238a3={'CREATING':_0x34a69d(0x1a1),'READY':'ready','HALTED':_0x34a69d(0x7c4),'STOPPED':_0x34a69d(0x191),'RESETTING':_0x34a69d(0x3ac)},_0x1ad192=Object['freeze']({'POKE':_0x34a69d(0x109),'DRAIN':_0x34a69d(0x365),'TYPE_DROP':_0x34a69d(0x20f),'PROC':'bus:proc','ENV_RELEASE':_0x34a69d(0x319)});return okdbEnums={'BUS_EVENTS':_0x1ad192,'CHANGE_ACTIONS':_0x1a6478,'EVENTS':_0x2946f0,'INDEX_STATE':_0x46dc9c,'OKDB_STATE':_0x381ec8,'VIEW_STATE':_0x4238a3},okdbEnums;}var okdbGuardedRange,hasRequiredOkdbGuardedRange;function requireOkdbGuardedRange(){const _0x202e8c=_0x2dfd83;if(hasRequiredOkdbGuardedRange)return okdbGuardedRange;hasRequiredOkdbGuardedRange=0x1;const _0x4fe70a={'SKIP':Symbol['for'](_0x202e8c(0xe2))},{OKDBError:_0x1984e5}=requireOkdbError(),_0x5e378f={'value':null,'done':!![]};class _0x148853{constructor(_0x266b43){const _0x247906=_0x202e8c;this[_0x247906(0x77b)]=_0x266b43;}get['DONE'](){return _0x5e378f;}[Symbol[_0x202e8c(0x3f3)]](){return this['_makeIterator']();}[_0x202e8c(0x78f)](_0x54cc6f){const _0x48d46f=this;return new _0x148853(()=>{const _0x3ddd38=_0x5aff,_0x13f521=_0x48d46f[Symbol[_0x3ddd38(0x3f3)]]();return{'next'(){const _0x40dd96=_0x3ddd38;for(;;){const _0x2907a0=_0x13f521['next']();if(_0x2907a0[_0x40dd96(0x320)])return{'done':!![],'value':undefined};const _0x94a98e=_0x54cc6f(_0x2907a0['value']);if(_0x94a98e===_0x4fe70a['SKIP'])continue;if(_0x94a98e===_0x5e378f)return _0x13f521[_0x40dd96(0x6a8)]?.(),{'done':!![],'value':undefined};return{'done':![],'value':_0x94a98e};}},'return'(){return _0x13f521['return']?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}[_0x202e8c(0xe5)](_0x3824ad){const _0x5ae081=_0x202e8c;return this[_0x5ae081(0x78f)](_0x45826d=>_0x3824ad(_0x45826d)?_0x45826d:_0x4fe70a['SKIP']);}[_0x202e8c(0x356)](_0x4cc7d0){for(const _0x3b6121 of this)_0x4cc7d0(_0x3b6121);}['slice'](_0x3788c0=0x0,_0x3b62bc=Infinity){const _0x5b8c1c=this;return new _0x148853(()=>{const _0x3950d0=_0x5aff,_0x45a600=_0x5b8c1c[Symbol[_0x3950d0(0x3f3)]]();let _0x167d30=0x0;return{'next'(){const _0x162758=_0x3950d0;for(;;){const _0x196795=_0x45a600[_0x162758(0x5fc)]();if(_0x196795['done'])return{'done':!![],'value':undefined};const _0x1fa968=_0x167d30++;if(_0x1fa968<_0x3788c0)continue;if(_0x1fa968>=_0x3b62bc)return _0x45a600[_0x162758(0x6a8)]?.(),{'done':!![],'value':undefined};return _0x196795;}},'return'(){const _0x37beb8=_0x3950d0;return _0x45a600[_0x37beb8(0x6a8)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x3950d0(0x3f3)]](){return this;}};});}['at'](_0x33d144){let _0x391e16=0x0;for(const _0x10785a of this)if(_0x391e16++===_0x33d144)return _0x10785a;return undefined;}['flatMap'](_0x21c6ef){const _0x3cbf33=this;return new _0x148853(()=>{const _0x32efef=_0x5aff,_0x371668=_0x3cbf33[Symbol[_0x32efef(0x3f3)]]();let _0x1925b9=[];return{'next'(){const _0x4a795f=_0x32efef;for(;;){if(_0x1925b9[_0x4a795f(0x42c)])return{'done':![],'value':_0x1925b9[_0x4a795f(0x792)]()};const _0xbf31f4=_0x371668[_0x4a795f(0x5fc)]();if(_0xbf31f4['done'])return{'done':!![],'value':undefined};const _0x51fb67=_0x21c6ef(_0xbf31f4[_0x4a795f(0x1d0)]);if(Array[_0x4a795f(0x796)](_0x51fb67))_0x1925b9=_0x1925b9[_0x4a795f(0x543)](_0x51fb67);else{if(_0x51fb67!=null&&(_0x51fb67 instanceof _0x148853||typeof _0x51fb67[Symbol['iterator']]===_0x4a795f(0x656)&&_0x4a795f(0x18f)in _0x51fb67))_0x1925b9=_0x1925b9[_0x4a795f(0x543)](Array[_0x4a795f(0x6a2)](_0x51fb67));else{if(_0x51fb67!==_0x4fe70a['SKIP'])return{'done':![],'value':_0x51fb67};}}}},'return'(){const _0x16b3a5=_0x32efef;return _0x371668[_0x16b3a5(0x6a8)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x32efef(0x3f3)]](){return this;}};});}[_0x202e8c(0x543)](_0x3e0eac){const _0x38861c=this;return new _0x148853(()=>{const _0x4d2615=_0x5aff;let _0x25ef05=_0x38861c[Symbol[_0x4d2615(0x3f3)]](),_0x31c46c=![];return{'next'(){const _0x336aec=_0x4d2615;for(;;){const _0x27ce03=_0x25ef05[_0x336aec(0x5fc)]();if(!_0x27ce03[_0x336aec(0x320)])return _0x27ce03;if(_0x31c46c)return{'done':!![],'value':undefined};_0x31c46c=!![],_0x25ef05=_0x3e0eac[Symbol[_0x336aec(0x3f3)]]();}},'return'(){return _0x25ef05['return']?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}[_0x202e8c(0x268)](_0x1d9fb2){const _0x41a039=this;return new _0x148853(()=>{const _0x503849=_0x5aff,_0x37fee0=_0x41a039[Symbol[_0x503849(0x3f3)]]();return{'next'(){const _0x2a8ed4=_0x503849;for(;;){try{return _0x37fee0['next']();}catch(_0x597471){const _0x3fe075=_0x1d9fb2(_0x597471);if(_0x3fe075===_0x4fe70a[_0x2a8ed4(0x6c3)]||_0x3fe075===undefined)continue;return{'done':![],'value':_0x3fe075};}}},'return'(){const _0x2c2557=_0x503849;return _0x37fee0[_0x2c2557(0x6a8)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x503849(0x3f3)]](){return this;}};});}[_0x202e8c(0x6c4)](){const _0x3b39cd=_0x202e8c;return Array[_0x3b39cd(0x6a2)](this);}get[_0x202e8c(0x18f)](){const _0x35efa4=_0x202e8c;return Array[_0x35efa4(0x6a2)](this);}}const _0x335fac={'total':0x0,'byLabel':{},'last':null};function _0x4ab42c(_0x21fd31){const _0x32c02b=_0x202e8c;_0x335fac[_0x32c02b(0x4d6)]++;if(_0x21fd31)_0x335fac[_0x32c02b(0xca)][_0x21fd31]=(_0x335fac[_0x32c02b(0xca)][_0x21fd31]??0x0)+0x1;_0x335fac[_0x32c02b(0x6a6)]={'label':_0x21fd31??null,'at':Date[_0x32c02b(0xcc)]()};}function _0x115e40(){const _0x4ac709=_0x202e8c;return{'total':_0x335fac['total'],'byLabel':{..._0x335fac[_0x4ac709(0xca)]},'last':_0x335fac[_0x4ac709(0x6a6)]};}function _0x1ba242(_0x3daa36,_0x291f0a={}){const {getTxnId:_0x208317,resume:_0x3dc5f9,label:_0x41ee09,baseline:_0x2672b0}=_0x291f0a;return new _0x148853(()=>{let _0x195658=null,_0x321e84=![],_0x4b071b=![],_0x3c4610=![],_0x40e23f,_0x29aed=0x0,_0x3f568d;return{'next'(){const _0x143ee9=_0x5aff;if(_0x3c4610)return{'done':!![],'value':undefined};if(_0x4b071b){let _0xddd399=![];if(_0x3dc5f9&&_0x208317)try{_0xddd399=_0x208317()===_0x3f568d;}catch{}if(!_0xddd399){_0x3c4610=!![],_0x4ab42c(_0x41ee09);throw new _0x1984e5(_0x3dc5f9?_0x143ee9(0x46c)+_0x143ee9(0x269)+'before\x20any\x20await,\x20chunk\x20with\x20{limit,\x20start,\x20exclusiveStart},\x20or\x20drop\x20snapshot:true.':'pinned\x20range\x20iterator\x20held\x20across\x20an\x20await/turn\x20boundary.\x20This\x20surface\x20cannot\x20resume\x20'+_0x143ee9(0x2e0)+'Array.from)\x20before\x20any\x20await.','READER_HELD_ACROSS_AWAIT');}_0x195658=_0x3dc5f9(_0x40e23f,_0x29aed)[Symbol[_0x143ee9(0x3f3)]](),_0x4b071b=![];}if(!_0x195658){if(_0x2672b0!==undefined)_0x3f568d=_0x2672b0;else try{_0x3f568d=_0x208317?_0x208317():undefined;}catch{_0x3f568d=undefined;}try{_0x195658=_0x3daa36()[Symbol[_0x143ee9(0x3f3)]]();}catch(_0x569817){_0x3c4610=!![];throw _0x569817;}}!_0x321e84&&(_0x321e84=!![],queueMicrotask(()=>{const _0x15bb0f=_0x143ee9;_0x321e84=![];if(_0x3c4610||_0x4b071b)return;try{_0x195658?.[_0x15bb0f(0x6a8)]?.();}catch{}_0x195658=null,_0x4b071b=!![];}));const _0x140e74=_0x195658[_0x143ee9(0x5fc)]();if(_0x140e74[_0x143ee9(0x320)])return _0x3c4610=!![],{'done':!![],'value':undefined};return _0x40e23f=_0x140e74[_0x143ee9(0x1d0)],_0x29aed++,_0x140e74;},'return'(){const _0xbcc3b4=_0x5aff;_0x3c4610=!![];try{_0x195658?.[_0xbcc3b4(0x6a8)]?.();}catch{}return{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}return okdbGuardedRange={'guardSnapshotIterable':_0x1ba242,'OKDBGuardedRange':_0x148853,'recordGuardTrip':_0x4ab42c,'getGuardTripStats':_0x115e40},okdbGuardedRange;}function _0x5aff(_0x1910be,_0xfd38eb){_0x1910be=_0x1910be-0xac;const _0x5b0a33=_0x5b0a();let _0x5aff1f=_0x5b0a33[_0x1910be];return _0x5aff1f;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0x5216d9=_0x2dfd83;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x59796d,performance:_0x35157c}=require$$0$1,_0x2a2207=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG===_0x5216d9(0x4fb),_0x31c89b=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x1d1a3f=process.env.OKDB_LOOP_LAG_ALL==='1',_0x437f7e=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0x5da4cb{constructor(){const _0x5d7625=_0x5216d9;this[_0x5d7625(0x2f6)]=_0x2a2207,this[_0x5d7625(0x2c6)]=new Map(),this['_h']=null,this['_timer']=null,this[_0x5d7625(0x11b)]=![],this[_0x5d7625(0x4c2)]=(_0x409657,_0x56c466)=>process[_0x5d7625(0x547)][_0x5d7625(0x5b4)](_0x409657+(_0x56c466?'\x20'+JSON[_0x5d7625(0x7cf)](_0x56c466):'')+'\x0a');}['now'](){const _0x1b154b=_0x5216d9;return _0x35157c[_0x1b154b(0xcc)]();}['setLogger'](_0x63f43b){const _0x569ab9=_0x5216d9;if(typeof _0x63f43b===_0x569ab9(0x656))this[_0x569ab9(0x4c2)]=_0x63f43b;}['note'](_0x42234a,_0x3799c0,_0x2184ae){const _0x269d43=_0x5216d9;if(!this[_0x269d43(0x2f6)])return;let _0x5804e1=this[_0x269d43(0x2c6)][_0x269d43(0x73e)](_0x42234a);!_0x5804e1&&(_0x5804e1={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this[_0x269d43(0x2c6)][_0x269d43(0x721)](_0x42234a,_0x5804e1)),_0x5804e1['ms']+=_0x3799c0,_0x5804e1[_0x269d43(0x432)]+=0x1,_0x3799c0>_0x5804e1[_0x269d43(0x4d3)]&&(_0x5804e1[_0x269d43(0x4d3)]=_0x3799c0,_0x5804e1[_0x269d43(0x50b)]=_0x2184ae||'');}['start'](_0x417f13){const _0x317261=_0x5216d9;if(!this[_0x317261(0x2f6)]||this[_0x317261(0x11b)])return;this[_0x317261(0x11b)]=!![];if(_0x417f13)this[_0x317261(0x4c2)]=_0x417f13;this['_h']=_0x59796d({'resolution':0xa}),this['_h'][_0x317261(0x7b0)](),this[_0x317261(0x5a8)]=setInterval(()=>this['_report'](),_0x31c89b);if(this['_timer']['unref'])this[_0x317261(0x5a8)][_0x317261(0x212)]();}[_0x5216d9(0x14d)](_0x397bee){const _0x500126=_0x5216d9;if(!this['_windowCbs'])this['_windowCbs']=new Set();this[_0x500126(0x237)]['add'](_0x397bee);if(!this[_0x500126(0x11b)])this[_0x500126(0x355)]();}[_0x5216d9(0x499)](_0x4a0933){const _0x2a251a=_0x5216d9;this[_0x2a251a(0x237)]?.[_0x2a251a(0x62a)](_0x4a0933);}[_0x5216d9(0x355)](){const _0x30b2c8=_0x5216d9;if(this[_0x30b2c8(0x6bb)])return;this[_0x30b2c8(0x6bb)]=!![];!this['_h']&&(this['_h']=_0x59796d({'resolution':0xa}),this['_h'][_0x30b2c8(0x7b0)]());const _0x3d54c9=_0x31c89b;this['_admissionTimer']=setInterval(()=>{const _0x5e98ee=_0x30b2c8,_0x5127b4=this['_h'];if(!_0x5127b4)return;const _0x35fb8d=_0x5127b4[_0x5e98ee(0x310)](0x63)/0xf4240,_0x3db190=_0x5127b4[_0x5e98ee(0x57c)]/0xf4240,_0x41028d=_0x5127b4[_0x5e98ee(0x452)]/0xf4240;_0x5127b4[_0x5e98ee(0x52e)]();if(this[_0x5e98ee(0x237)])for(const _0x16b1cf of this[_0x5e98ee(0x237)]){try{_0x16b1cf({'p99Ms':_0x35fb8d,'maxMs':_0x3db190,'meanMs':_0x41028d,'reportMs':_0x3d54c9});}catch{}}},_0x3d54c9);if(this[_0x30b2c8(0x63d)]['unref'])this[_0x30b2c8(0x63d)][_0x30b2c8(0x212)]();}['_report'](){const _0x333cb0=_0x5216d9,_0x210ac5=this['_h'],_0x2c13a2=_0x210ac5[_0x333cb0(0x57c)]/0xf4240,_0x9728d3=_0x210ac5[_0x333cb0(0x310)](0x63)/0xf4240,_0x4b10dc=_0x210ac5[_0x333cb0(0x452)]/0xf4240;_0x210ac5[_0x333cb0(0x52e)]();const _0x44e7e9=[...this['_buckets'][_0x333cb0(0x67c)]()][_0x333cb0(0x78f)](([_0x20a24b,_0x551fbd])=>({'label':_0x20a24b,..._0x551fbd}))['sort']((_0x189127,_0x169063)=>_0x169063['ms']-_0x189127['ms'])[_0x333cb0(0x49d)](0x0,0x8);this[_0x333cb0(0x2c6)]['clear']();const _0xadcf9b=_0x44e7e9[_0x333cb0(0x44a)]((_0x132274,_0x1acd86)=>_0x132274+_0x1acd86['ms'],0x0),_0x5f4a11=_0x44e7e9[_0x333cb0(0x78f)](_0x14fb64=>_0x14fb64[_0x333cb0(0x26e)]+'='+_0x14fb64['ms'][_0x333cb0(0x443)](0x0)+_0x333cb0(0xd7)+_0x14fb64['count']+(_0x14fb64[_0x333cb0(0x4d3)]>0x5?'(worst\x20'+_0x14fb64[_0x333cb0(0x4d3)][_0x333cb0(0x443)](0x0)+'ms'+(_0x14fb64['maxExtra']?'\x20'+_0x14fb64[_0x333cb0(0x50b)]:'')+')':''));(_0x1d1a3f||_0x2c13a2>=_0x437f7e)&&this[_0x333cb0(0x4c2)](_0x333cb0(0x36a)+_0x31c89b+'ms\x20max='+_0x2c13a2[_0x333cb0(0x443)](0x0)+_0x333cb0(0x6c5)+_0x9728d3[_0x333cb0(0x443)](0x0)+'ms\x20mean='+_0x4b10dc[_0x333cb0(0x443)](0x0)+_0x333cb0(0x311)+_0xadcf9b[_0x333cb0(0x443)](0x0)+'ms'+(_0x5f4a11[_0x333cb0(0x42c)]?_0x333cb0(0x567)+_0x5f4a11[_0x333cb0(0x43a)]('\x20\x20'):''),{'feature':_0x333cb0(0x7ce)});if(this[_0x333cb0(0x237)])for(const _0x523f27 of this[_0x333cb0(0x237)]){try{_0x523f27({'p99Ms':_0x9728d3,'maxMs':_0x2c13a2,'meanMs':_0x4b10dc,'reportMs':_0x31c89b});}catch{}}}[_0x5216d9(0x1ff)](){const _0x495f5b=_0x5216d9;if(this[_0x495f5b(0x5a8)])clearInterval(this['_timer']);if(this['_h'])this['_h'][_0x495f5b(0x21a)]();this[_0x495f5b(0x5a8)]=null,this['_h']=null,this['_started']=![];}}const _0xa21851=new _0x5da4cb();if(_0xa21851['enabled'])_0xa21851['start']();return okdbLoopMonitor={'LOOP':_0xa21851},okdbLoopMonitor;}var okdbTransaction,hasRequiredOkdbTransaction;function requireOkdbTransaction(){const _0x10033d=_0x2dfd83;if(hasRequiredOkdbTransaction)return okdbTransaction;hasRequiredOkdbTransaction=0x1;const _0x4e05eb={'v4':()=>require$$0$2['randomUUID']()},{EVENTS:_0x4bf3d7}=requireOkdbEnums(),{OKDBError:_0x18180d}=requireOkdbError(),{recordGuardTrip:_0x1b5220,guardSnapshotIterable:_0x2a096f}=requireOkdbGuardedRange(),{LOOP:_0x5418fe}=requireOkdbLoopMonitor();function _0x4ad688(_0x50750e){return _0x50750e['map'](_0x2270bf=>{const _0x182061=_0x5aff,[_0x4cbdd9,_0x47cfcc]=_0x2270bf[_0x182061(0x16d)]||[];return{'action':_0x2270bf['action'],'type':_0x4cbdd9,'key':_0x47cfcc};});}class _0x98a173{[_0x10033d(0x538)];[_0x10033d(0x4f0)]=[];['_doHooks']=[];['_undoHooks']=[];constructor(_0x3695ee,_0x5775bf={'useReadTransaction':![]}){const _0x59b6c5=_0x10033d;this[_0x59b6c5(0x538)]=_0x3695ee,this[_0x59b6c5(0x51c)]=_0x5775bf,this['id']=_0x4e05eb['v4']();if(this[_0x59b6c5(0x51c)][_0x59b6c5(0x595)])try{this[_0x59b6c5(0x278)]=this[_0x59b6c5(0x538)]['db'][_0x59b6c5(0x1ad)]()['lastTxnId'];}catch{this[_0x59b6c5(0x278)]=undefined;}this[_0x59b6c5(0x789)]=this[_0x59b6c5(0x51c)][_0x59b6c5(0x595)]?this[_0x59b6c5(0x538)]['db'][_0x59b6c5(0x595)]():null,this['_closed']=![],this[_0x59b6c5(0x6f2)]=![],this['readTransaction']&&queueMicrotask(()=>{const _0x793d51=_0x59b6c5;this[_0x793d51(0x789)]&&(this['_closeReadTransaction'](),this['_readViewExpired']=!![]);});}[_0x10033d(0x138)](_0x74e43d){const _0x23e819=_0x10033d;this[_0x23e819(0x50a)][_0x23e819(0x782)](_0x74e43d);}[_0x10033d(0x717)](_0xd53fe9){this['_undoHooks']['push'](_0xd53fe9);}[_0x10033d(0xb3)](){const _0x3d9df1=_0x10033d;if(!this[_0x3d9df1(0x789)])return;try{this['readTransaction'][_0x3d9df1(0x320)]();}catch(_0x41fe06){}this[_0x3d9df1(0x789)]=null;}[_0x10033d(0x273)](){const _0x1956ea=_0x10033d;if(this[_0x1956ea(0x5c7)])throw new _0x18180d(_0x1956ea(0x7e9),'TXN_CLOSED');if(this[_0x1956ea(0x6f2)]){let _0x3908b5=![];if(this[_0x1956ea(0x51c)]['useReadTransaction']==='tolerant'&&this[_0x1956ea(0x278)]!==undefined)try{_0x3908b5=this[_0x1956ea(0x538)]['db'][_0x1956ea(0x1ad)]()[_0x1956ea(0x59b)]===this[_0x1956ea(0x278)];}catch{}if(!_0x3908b5){_0x1b5220((this[_0x1956ea(0x538)]?.[_0x1956ea(0x5d1)]??'?')+_0x1956ea(0x301));throw new _0x18180d(_0x1956ea(0x70d)+_0x1956ea(0x140)+'before\x20any\x20await\x20—\x20or\x20opt\x20into\x20useReadTransaction:\x27tolerant\x27\x20to\x20keep\x20reading\x20while\x20'+_0x1956ea(0x64c),_0x1956ea(0x5c2));}}}[_0x10033d(0x73e)](_0x1e7b35,_0x43ba03){const _0x4c9fb2=_0x10033d;return this[_0x4c9fb2(0x273)](),this[_0x4c9fb2(0x538)][_0x4c9fb2(0x73e)](_0x1e7b35,_0x43ba03,{'transaction':this[_0x4c9fb2(0x789)]});}['getEntry'](_0x271067,_0x4b3c83){const _0x841017=_0x10033d;return this['_assertOpen'](),this[_0x841017(0x538)][_0x841017(0x465)](_0x271067,_0x4b3c83,{'transaction':this[_0x841017(0x789)]});}[_0x10033d(0x544)](_0x3f208d,_0x477505){const _0x4ec87c=_0x10033d;return this[_0x4ec87c(0x273)](),this[_0x4ec87c(0x538)][_0x4ec87c(0x544)](_0x3f208d,_0x477505,{'transaction':this[_0x4ec87c(0x789)]});}['_range'](_0x4b7fb3){const _0x4bcf5e=_0x10033d;if(!this[_0x4bcf5e(0x51c)][_0x4bcf5e(0x595)])return _0x4b7fb3;if(_0x4b7fb3&&typeof _0x4b7fb3['then']===_0x4bcf5e(0x656))return _0x4b7fb3;if(Array['isArray'](_0x4b7fb3))return _0x4b7fb3;const _0x280728=this,_0x2c1eab=_0x280728[_0x4bcf5e(0x51c)][_0x4bcf5e(0x595)]==='tolerant',_0x4dc939=()=>{const _0x525a00=_0x4bcf5e;if(!_0x280728[_0x525a00(0x6f2)])return![];if(!_0x2c1eab)return!![];if(_0x280728[_0x525a00(0x278)]===undefined)return!![];try{return _0x280728[_0x525a00(0x538)]['db'][_0x525a00(0x1ad)]()['lastTxnId']!==_0x280728[_0x525a00(0x278)];}catch{return!![];}};return _0x2a096f(()=>{const _0x7aead7=_0x4bcf5e;if(_0x280728[_0x7aead7(0x5c7)])throw new _0x18180d(_0x7aead7(0x7e9),'TXN_CLOSED');if(_0x4dc939()){_0x1b5220((_0x280728[_0x7aead7(0x538)]?.[_0x7aead7(0x5d1)]??'?')+_0x7aead7(0x15a));throw new _0x18180d(_0x7aead7(0x4bc)+_0x7aead7(0x68d)+_0x7aead7(0x5f6),_0x7aead7(0x5c2));}return _0x4b7fb3;},{'label':(_0x280728[_0x4bcf5e(0x538)]?.[_0x4bcf5e(0x5d1)]??'?')+_0x4bcf5e(0x15a),..._0x2c1eab?{'baseline':_0x280728['_txnIdAtSnapshot'],'getTxnId':()=>_0x280728[_0x4bcf5e(0x538)]['db']['getStats']()[_0x4bcf5e(0x59b)],'resume':(_0x6a2987,_0x3356da)=>_0x4b7fb3['slice'](_0x3356da)}:{}});}[_0x10033d(0x3bd)](_0x560482,_0xec1647={}){const _0x2ce6b9=_0x10033d;return this[_0x2ce6b9(0x273)](),this['_range'](this['okdb'][_0x2ce6b9(0x3bd)](_0x560482,{'transaction':this['readTransaction'],..._0xec1647}));}[_0x10033d(0x735)](_0x22fe74,_0x424e78={}){const _0xcd2e6=_0x10033d;return this[_0xcd2e6(0x273)](),this[_0xcd2e6(0x21d)](this['okdb']['getValues'](_0x22fe74,{'transaction':this[_0xcd2e6(0x789)],..._0x424e78}));}[_0x10033d(0x42e)](_0x282932,_0x1f90a4={}){const _0x514ef3=_0x10033d;return this['_assertOpen'](),this[_0x514ef3(0x21d)](this[_0x514ef3(0x538)][_0x514ef3(0x42e)](_0x282932,{'transaction':this[_0x514ef3(0x789)],..._0x1f90a4}));}[_0x10033d(0x26a)](_0x120807,_0x2d801e,_0x1e1d0c={}){const _0xcd4c98=_0x10033d;return this[_0xcd4c98(0x273)](),this[_0xcd4c98(0x21d)](this['okdb']['byIndex'](_0x120807,_0x2d801e,{'transaction':this[_0xcd4c98(0x789)],..._0x1e1d0c}));}[_0x10033d(0x35a)](_0x5c55c9,_0x45bcd9,_0x274fff={}){const _0x991178=_0x10033d;return this[_0x991178(0x273)](),this[_0x991178(0x21d)](this[_0x991178(0x538)][_0x991178(0x35a)](_0x5c55c9,_0x45bcd9,{'transaction':this['readTransaction'],..._0x274fff}));}['getClock'](_0x56d443=null){const _0x29e297=_0x10033d;return this[_0x29e297(0x273)](),this[_0x29e297(0x538)][_0x29e297(0x393)](_0x56d443,{'transaction':this[_0x29e297(0x789)]});}[_0x10033d(0x1e5)](_0x2d611b){const _0x526e4d=_0x10033d;return this[_0x526e4d(0x273)](),this[_0x526e4d(0x538)]['getCount'](_0x2d611b,{'transaction':this['readTransaction']});}['put'](_0x57ff3e,_0x3d4a1b,_0x5159e5,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0x10033d(0xcc)](),origin:origin=null,ttl:ttl=null}={}){const _0x5e76b0=_0x10033d;this[_0x5e76b0(0x4f0)][_0x5e76b0(0x782)]({'action':_0x5e76b0(0x10d),'args':[_0x57ff3e,_0x3d4a1b,_0x5159e5,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x10033d(0x47c)](_0x4d0c04,_0x2fb8dc,_0x302b9c,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0x10033d(0xcc)](),origin:origin=null,ttl:ttl=null}={}){const _0x2579fe=_0x10033d;this[_0x2579fe(0x4f0)]['push']({'action':_0x2579fe(0x47c),'args':[_0x4d0c04,_0x2fb8dc,_0x302b9c,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x10033d(0x1ba)](_0x266c88,_0xfaa2f6,_0x4d30ce,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0x10033d(0xcc)](),origin:origin=null,ttl:ttl=null}={}){const _0x56133a=_0x10033d;this['actions'][_0x56133a(0x782)]({'action':_0x56133a(0x1ba),'args':[_0x266c88,_0xfaa2f6,_0x4d30ce,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x10033d(0x53b)](_0x2b4bd6,_0x43321f,_0x5afe1c,{version:version=null,timestamp:timestamp=Date[_0x10033d(0xcc)](),origin:origin=null,ttl:ttl=null}={}){const _0x95f6a3=_0x10033d;this[_0x95f6a3(0x4f0)]['push']({'action':_0x95f6a3(0x53b),'args':[_0x2b4bd6,_0x43321f,_0x5afe1c,{'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}['remove'](_0x3cc13b,_0x4bdc03,{ifVersion:ifVersion=null,timestamp:timestamp=Date['now'](),origin:origin=null}={}){const _0xa0bc48=_0x10033d;this[_0xa0bc48(0x4f0)][_0xa0bc48(0x782)]({'action':_0xa0bc48(0x102),'args':[_0x3cc13b,_0x4bdc03,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin}]});}[_0x10033d(0x2ba)](_0x421c64,_0x512df0,_0x230e2a){const _0x1b27c0=_0x10033d;this[_0x1b27c0(0x4f0)][_0x1b27c0(0x782)]({'action':'setTTL','args':[_0x421c64,_0x512df0,_0x230e2a]});}[_0x10033d(0x1a4)](_0x314179,_0x5cd1f6){const _0x33006d=_0x10033d;this[_0x33006d(0x4f0)][_0x33006d(0x782)]({'action':_0x33006d(0x1a4),'args':[_0x314179,_0x5cd1f6]});}[_0x10033d(0x764)](){const _0x480484=_0x10033d;if(this[_0x480484(0x5c7)])return;for(const _0x4bbddf of this[_0x480484(0x36e)]){try{_0x4bbddf();}catch{}}this[_0x480484(0x538)][_0x480484(0xe3)][_0x480484(0x2fe)](_0x4bf3d7[_0x480484(0x632)],{'id':this['id']}),this[_0x480484(0x4f0)]=[],this['_closeReadTransaction'](),this[_0x480484(0x5c7)]=!![];}async[_0x10033d(0x53d)](){const _0x1f9f57=_0x10033d;if(this['_closed'])throw new Error(_0x1f9f57(0x7e9));const _0x23809b={'id':this['id'],'timestamp':Date[_0x1f9f57(0xcc)](),'actions':this['actions']};this[_0x1f9f57(0x538)]['events']['emit'](_0x4bf3d7[_0x1f9f57(0x267)],_0x23809b);try{const _0x5da082=_0x5418fe['enabled']?_0x5418fe[_0x1f9f57(0xcc)]():0x0;await this[_0x1f9f57(0x538)][_0x1f9f57(0x3d2)][_0x1f9f57(0x6be)](()=>{const _0x44645b=_0x1f9f57;for(const _0x368115 of this[_0x44645b(0x4f0)]){const _0x3c3a6b=this['okdb']['_'+_0x368115[_0x44645b(0x664)]];if(typeof _0x3c3a6b!==_0x44645b(0x656))throw new Error('Unknown\x20transaction\x20action:\x20'+_0x368115['action']);_0x3c3a6b['call'](this[_0x44645b(0x538)],this,..._0x368115[_0x44645b(0x16d)]);}}),_0x5418fe[_0x1f9f57(0x2f6)]&&_0x5418fe['note']('txn-commit',_0x5418fe[_0x1f9f57(0xcc)]()-_0x5da082,(this[_0x1f9f57(0x538)][_0x1f9f57(0x5d1)]??'?')+_0x1f9f57(0x416)+this['actions'][_0x1f9f57(0x42c)]);}catch(_0x377ab6){for(const _0x1b2907 of this[_0x1f9f57(0x36e)]){try{_0x1b2907();}catch{}}this[_0x1f9f57(0xb3)](),this['_closed']=!![];if(_0x377ab6 instanceof _0x18180d)throw _0x377ab6;const _0x5612c3={'cause':_0x377ab6,'env':this['okdb']?.['name'],'envPath':this[_0x1f9f57(0x538)]?.['path'],'pid':process['pid'],'txnId':this['id'],'actionCount':this[_0x1f9f57(0x4f0)][_0x1f9f57(0x42c)],'actions':_0x4ad688(this['actions']),'nativeCode':_0x377ab6?.[_0x1f9f57(0x330)],'nativeName':_0x377ab6?.[_0x1f9f57(0x5d1)]};try{this[_0x1f9f57(0x538)]?.[_0x1f9f57(0x66c)]?.[_0x1f9f57(0x606)]?.(_0x1f9f57(0x6c8),{'env':_0x5612c3[_0x1f9f57(0x114)],'envPath':_0x5612c3['envPath'],'pid':_0x5612c3[_0x1f9f57(0x69b)],'txnId':_0x5612c3[_0x1f9f57(0x491)],'actionCount':_0x5612c3['actionCount'],'actions':_0x5612c3[_0x1f9f57(0x4f0)],'nativeCode':_0x5612c3[_0x1f9f57(0x552)],'error':_0x377ab6?.[_0x1f9f57(0x3f1)],'stack':_0x377ab6?.[_0x1f9f57(0x2b9)]});}catch{}throw new _0x18180d(_0x377ab6?.[_0x1f9f57(0x3f1)]||'Unknown\x20OKDB\x20transaction\x20error',_0x1f9f57(0x754),_0x5612c3);}this[_0x1f9f57(0x538)][_0x1f9f57(0xe3)][_0x1f9f57(0x2fe)](_0x4bf3d7['TXN_END'],_0x23809b);for(const _0x558669 of this['_doHooks']){try{await _0x558669();}catch{}}this[_0x1f9f57(0x4f0)]=[],this['_closeReadTransaction'](),this[_0x1f9f57(0x5c7)]=!![];}static['createWriteFacade'](_0x3fd191){const _0x38a3dc=_0x10033d;return Object[_0x38a3dc(0x7ac)]({'id':_0x3fd191['id'],'put':_0x3fd191[_0x38a3dc(0x10d)][_0x38a3dc(0x215)](_0x3fd191),'update':_0x3fd191[_0x38a3dc(0x47c)][_0x38a3dc(0x215)](_0x3fd191),'patch':_0x3fd191['patch']['bind'](_0x3fd191),'create':_0x3fd191[_0x38a3dc(0x53b)][_0x38a3dc(0x215)](_0x3fd191),'remove':_0x3fd191['remove'][_0x38a3dc(0x215)](_0x3fd191),'setTTL':_0x3fd191[_0x38a3dc(0x2ba)][_0x38a3dc(0x215)](_0x3fd191),'clearTTL':_0x3fd191['clearTTL'][_0x38a3dc(0x215)](_0x3fd191),'commit':_0x3fd191[_0x38a3dc(0x53d)][_0x38a3dc(0x215)](_0x3fd191),'rollback':_0x3fd191[_0x38a3dc(0x764)][_0x38a3dc(0x215)](_0x3fd191),'get':_0x3fd191['get']['bind'](_0x3fd191),'getEntry':_0x3fd191[_0x38a3dc(0x465)][_0x38a3dc(0x215)](_0x3fd191),'getMany':_0x3fd191[_0x38a3dc(0x544)][_0x38a3dc(0x215)](_0x3fd191),'getRange':_0x3fd191[_0x38a3dc(0x3bd)][_0x38a3dc(0x215)](_0x3fd191),'getValues':_0x3fd191[_0x38a3dc(0x735)][_0x38a3dc(0x215)](_0x3fd191),'getKeys':_0x3fd191[_0x38a3dc(0x42e)][_0x38a3dc(0x215)](_0x3fd191),'byIndex':_0x3fd191[_0x38a3dc(0x26a)]['bind'](_0x3fd191),'query':_0x3fd191['query']['bind'](_0x3fd191),'getClock':_0x3fd191['getClock'][_0x38a3dc(0x215)](_0x3fd191),'getCount':_0x3fd191[_0x38a3dc(0x1e5)][_0x38a3dc(0x215)](_0x3fd191),'read':_0x3fd191,'raw':_0x3fd191});}static['applyOps'](_0x269dc1,_0x263c33=[]){const _0xe5fca0=_0x10033d;if(!Array[_0xe5fca0(0x796)](_0x263c33))throw new _0x18180d(_0xe5fca0(0x549),_0xe5fca0(0x2c9));for(const _0x2987a7 of _0x263c33){if(Array[_0xe5fca0(0x796)](_0x2987a7)){const [_0x38181a,..._0x29f73b]=_0x2987a7;if(typeof _0x269dc1[_0x38181a]!==_0xe5fca0(0x656))throw new _0x18180d(_0xe5fca0(0x628)+_0x38181a,_0xe5fca0(0x33f),{'action':_0x38181a});_0x269dc1[_0x38181a](..._0x29f73b);continue;}if(!_0x2987a7||typeof _0x2987a7!==_0xe5fca0(0x788))throw new _0x18180d(_0xe5fca0(0xc1),_0xe5fca0(0x386));const {action:_0x3af08d}=_0x2987a7;if(typeof _0x3af08d!==_0xe5fca0(0x48c)||typeof _0x269dc1[_0x3af08d]!==_0xe5fca0(0x656))throw new _0x18180d(_0xe5fca0(0x628)+_0x3af08d,_0xe5fca0(0x33f),{'action':_0x3af08d});switch(_0x3af08d){case _0xe5fca0(0x10d):case _0xe5fca0(0x47c):case _0xe5fca0(0x53b):_0x269dc1[_0x3af08d](_0x2987a7[_0xe5fca0(0xae)],_0x2987a7[_0xe5fca0(0x69e)],_0x2987a7[_0xe5fca0(0x1d0)],{..._0x2987a7['options'],'ttl':_0x2987a7[_0xe5fca0(0x2f8)]??_0x2987a7[_0xe5fca0(0x51c)]?.[_0xe5fca0(0x2f8)]??null});break;case _0xe5fca0(0x1ba):_0x269dc1[_0xe5fca0(0x1ba)](_0x2987a7[_0xe5fca0(0xae)],_0x2987a7['key'],_0x2987a7[_0xe5fca0(0x1ba)],{..._0x2987a7[_0xe5fca0(0x51c)],'ttl':_0x2987a7[_0xe5fca0(0x2f8)]??_0x2987a7[_0xe5fca0(0x51c)]?.[_0xe5fca0(0x2f8)]??null});break;case'remove':_0x269dc1['remove'](_0x2987a7[_0xe5fca0(0xae)],_0x2987a7[_0xe5fca0(0x69e)],_0x2987a7[_0xe5fca0(0x51c)]||{});break;case _0xe5fca0(0x2ba):_0x269dc1['setTTL'](_0x2987a7['type'],_0x2987a7[_0xe5fca0(0x69e)],_0x2987a7[_0xe5fca0(0x2f8)]);break;case _0xe5fca0(0x1a4):_0x269dc1[_0xe5fca0(0x1a4)](_0x2987a7['type'],_0x2987a7[_0xe5fca0(0x69e)]);break;default:throw new _0x18180d(_0xe5fca0(0x1df)+_0x3af08d,'TXN_INVALID_ACTION',{'action':_0x3af08d});}}}static async[_0x10033d(0x2b0)](_0x10ac67,_0x45b136,_0x546f7c={}){const _0x298185=_0x10033d,_0x431b0c=new _0x98a173(_0x10ac67,_0x546f7c),_0x170576=_0x98a173['createWriteFacade'](_0x431b0c);try{typeof _0x45b136==='function'?await _0x45b136(_0x170576):_0x98a173[_0x298185(0x53c)](_0x431b0c,_0x45b136||[]);const _0x364c87=_0x431b0c[_0x298185(0x4f0)][_0x298185(0x42c)];return await _0x431b0c[_0x298185(0x53d)](),{'id':_0x431b0c['id'],'actions':_0x364c87};}catch(_0x48e84a){try{_0x431b0c[_0x298185(0x764)]();}catch(_0x1251d7){}throw _0x48e84a;}}}return okdbTransaction=_0x98a173,okdbTransaction;}var dist={},hasRequiredDist;function requireDist(){const _0x20df97=_0x2dfd83;if(hasRequiredDist)return dist;hasRequiredDist=0x1,Object['defineProperty'](dist,_0x20df97(0x334),{'value':!![]});const _0x808144=new Float64Array(0x2),_0xc6cf46=new Int32Array(_0x808144[_0x20df97(0x174)],0x0,0x4),{lowIdx:_0xcdfaab,highIdx:_0x116d32}=((()=>{const _0x6adfe6=_0x20df97;if(new Uint8Array(new Uint32Array([0xffee1100])[_0x6adfe6(0x174)])[0x0]===0xff)return{'lowIdx':0x1,'highIdx':0x0};return{'lowIdx':0x0,'highIdx':0x1};})());let _0x386fbc=![],_0x5dbc47;try{_0x5dbc47=new TextEncoder();}catch(_0x2eb1b0){}function _0xf0e642(_0x2933b1,_0x1e7c4e,_0x29d874,_0x2879dd){const _0x2bfeff=_0x20df97;let _0x5f9891=_0x1e7c4e[_0x2bfeff(0x200)];if(!_0x5f9891)_0x5f9891=_0x1e7c4e[_0x2bfeff(0x200)]=new DataView(_0x1e7c4e[_0x2bfeff(0x174)],_0x1e7c4e[_0x2bfeff(0xb9)],_0x1e7c4e[_0x2bfeff(0x776)]+0x3>>0x2<<0x2);switch(typeof _0x2933b1){case _0x2bfeff(0x48c):let _0x36521b=_0x2933b1['length'],_0x5ee521=_0x2933b1[_0x2bfeff(0x291)](0x0);if(!(_0x5ee521>=0x1c))_0x1e7c4e[_0x29d874++]=0x1b;if(_0x36521b<0x40){let _0x29e357,_0x29fb51;for(_0x29e357=0x0;_0x29e357<_0x36521b;_0x29e357++){_0x5ee521=_0x2933b1[_0x2bfeff(0x291)](_0x29e357);if(_0x5ee521<=0x4)_0x1e7c4e[_0x29d874++]=0x4,_0x1e7c4e[_0x29d874++]=_0x5ee521;else{if(_0x5ee521<0x80)_0x1e7c4e[_0x29d874++]=_0x5ee521;else{if(_0x5ee521<0x800)_0x1e7c4e[_0x29d874++]=_0x5ee521>>0x6|0xc0,_0x1e7c4e[_0x29d874++]=_0x5ee521&0x3f|0x80;else(_0x5ee521&0xfc00)===0xd800&&((_0x29fb51=_0x2933b1[_0x2bfeff(0x291)](_0x29e357+0x1))&0xfc00)===0xdc00?(_0x5ee521=0x10000+((_0x5ee521&0x3ff)<<0xa)+(_0x29fb51&0x3ff),_0x29e357++,_0x1e7c4e[_0x29d874++]=_0x5ee521>>0x12|0xf0,_0x1e7c4e[_0x29d874++]=_0x5ee521>>0xc&0x3f|0x80,_0x1e7c4e[_0x29d874++]=_0x5ee521>>0x6&0x3f|0x80,_0x1e7c4e[_0x29d874++]=_0x5ee521&0x3f|0x80):(_0x1e7c4e[_0x29d874++]=_0x5ee521>>0xc|0xe0,_0x1e7c4e[_0x29d874++]=_0x5ee521>>0x6&0x3f|0x80,_0x1e7c4e[_0x29d874++]=_0x5ee521&0x3f|0x80);}}}}else{if(_0x1e7c4e[_0x2bfeff(0x4cc)])_0x29d874+=_0x1e7c4e[_0x2bfeff(0x4cc)](_0x2933b1,_0x29d874,_0x1e7c4e['byteLength']-_0x29d874);else _0x29d874+=_0x5dbc47['encodeInto'](_0x2933b1,_0x1e7c4e['subarray'](_0x29d874))['written'];if(_0x29d874>_0x1e7c4e[_0x2bfeff(0x42c)]-0x4)throw new RangeError(_0x2bfeff(0x594));}break;case _0x2bfeff(0x1f1):_0x808144[0x0]=_0x2933b1;let _0x2ade55=_0xc6cf46[_0xcdfaab],_0x206029=_0xc6cf46[_0x116d32],_0x2c6200;if(_0x2933b1<0x0)return _0x5f9891['setInt32'](_0x29d874+0x4,~(_0x2ade55>>>0x4|_0x206029<<0x1c)),_0x5f9891[_0x2bfeff(0x6ca)](_0x29d874+0x0,(_0x206029^0x7fffffff)>>>0x4),_0x5f9891[_0x2bfeff(0x6ca)](_0x29d874+0x8,(_0x2ade55&0xf^0xf)<<0x4,!![]),_0x29d874+0x9;else{if(_0x2ade55&0xf||_0x2879dd)_0x2c6200=0x9;else{if(_0x2ade55&0xfffff)_0x2c6200=0x8;else{if(_0x2ade55||_0x206029&0xf)_0x2c6200=0x6;else _0x2c6200=0x4;}}}_0x5f9891[_0x2bfeff(0x6ca)](_0x29d874+0x0,_0x206029>>>0x4|0x10000000),_0x5f9891[_0x2bfeff(0x6ca)](_0x29d874+0x4,_0x2ade55>>>0x4|_0x206029<<0x1c),_0x5f9891[_0x2bfeff(0x6ca)](_0x29d874+0x8,(_0x2ade55&0xf)<<0x4,!![]);return _0x29d874+_0x2c6200;case _0x2bfeff(0x788):if(_0x2933b1){if(Array[_0x2bfeff(0x796)](_0x2933b1)){for(let _0x45996b=0x0,_0x319b03=_0x2933b1['length'];_0x45996b<_0x319b03;_0x45996b++){if(_0x45996b>0x0)_0x1e7c4e[_0x29d874++]=0x0;_0x29d874=_0xf0e642(_0x2933b1[_0x45996b],_0x1e7c4e,_0x29d874,!![]);}break;}else{if(_0x2933b1 instanceof Uint8Array){_0x1e7c4e[_0x2bfeff(0x721)](_0x2933b1,_0x29d874),_0x29d874+=_0x2933b1['length'];break;}else throw new Error(_0x2bfeff(0xf4)+JSON[_0x2bfeff(0x7cf)](_0x2933b1));}}else _0x1e7c4e[_0x29d874++]=0x0;break;case'boolean':_0x5f9891[_0x2bfeff(0x464)](_0x29d874++,_0x2933b1?0x7:0x6,!![]);return _0x29d874;case'bigint':let _0x509827=Number(_0x2933b1);if(BigInt(_0x509827)>_0x2933b1){_0x808144[0x0]=_0x509827;if(_0x509827>0x0){if(_0xc6cf46[_0xcdfaab])_0xc6cf46[_0xcdfaab]--;else _0xc6cf46[_0x116d32]--,_0xc6cf46[_0xcdfaab]=0xffffffff;}else{if(_0xc6cf46[_0xcdfaab]<0xffffffff)_0xc6cf46[_0xcdfaab]++;else _0xc6cf46[_0x116d32]++,_0xc6cf46[_0xcdfaab]=0x0;}_0x509827=_0x808144[0x0];}let _0x49588=_0x2933b1-BigInt(_0x509827);if(_0x49588===0x0n)return _0xf0e642(_0x509827,_0x1e7c4e,_0x29d874,_0x2879dd);_0xf0e642(_0x509827,_0x1e7c4e,_0x29d874,_0x2879dd),_0x29d874+=0x9;let _0x521847=BigInt((_0xc6cf46[_0x116d32]>>0x14&0x7ff)-0x437),_0x117e67=_0x49588>>_0x521847;_0x1e7c4e[_0x29d874-0x1]|=Number(_0x117e67),_0x49588-=_0x117e67<<_0x521847;let _0x1dcd59=!![];while(_0x49588||_0x1dcd59){_0x1dcd59=![],_0x521847-=0x7n;let _0x2f25e0=_0x49588>>_0x521847;_0x1e7c4e[_0x29d874++]=Number(_0x2f25e0)|0x80,_0x49588-=_0x2f25e0<<_0x521847;}return _0x29d874;case _0x2bfeff(0x3a6):return _0x29d874;case _0x2bfeff(0x50c):_0x1e7c4e[_0x29d874++]=0x2;return _0xf0e642(_0x2933b1[_0x2bfeff(0x588)],_0x1e7c4e,_0x29d874,_0x2879dd);default:throw new Error(_0x2bfeff(0x7a9)+typeof _0x2933b1);}if(_0x386fbc&&!_0x2879dd)_0x5f9891[_0x2bfeff(0x464)](_0x29d874,0x0);return _0x29d874;}let _0x6e5fa0;function _0x47843a(_0x4c69b5,_0x304a48,_0x3bfac7,_0xc95097){const _0x5b834f=_0x20df97;_0x6e5fa0=_0x304a48;let _0x17e635=_0x4c69b5[_0x6e5fa0],_0x2ae0f8;if(_0x17e635<0x18){if(_0x17e635<0x8){_0x6e5fa0++;if(_0x17e635==0x6)_0x2ae0f8=![];else{if(_0x17e635==0x7)_0x2ae0f8=!![];else{if(_0x17e635==0x0)_0x2ae0f8=null;else{if(_0x17e635==0x2)_0x2ae0f8=Symbol[_0x5b834f(0x11a)](_0x4a8e6f(_0x4c69b5,_0x3bfac7));else return Uint8Array[_0x5b834f(0x175)][_0x5b834f(0x49d)][_0x5b834f(0x772)](_0x4c69b5,_0x304a48,_0x3bfac7);}}}}else{let _0x4c6dc8;try{_0x4c6dc8=_0x4c69b5[_0x5b834f(0x200)]||(_0x4c69b5[_0x5b834f(0x200)]=new DataView(_0x4c69b5['buffer'],_0x4c69b5[_0x5b834f(0xb9)],_0x4c69b5['byteLength']+0x3>>0x2<<0x2));}catch(_0x58f562){_0x4c6dc8=_0x4c69b5[_0x5b834f(0x200)]||(_0x4c69b5[_0x5b834f(0x200)]=new DataView(_0x4c69b5['buffer'],_0x4c69b5['byteOffset'],_0x4c69b5[_0x5b834f(0x174)][_0x5b834f(0x776)]-_0x4c69b5['byteOffset']));}let _0x54d65a=_0x4c6dc8[_0x5b834f(0x1f2)](_0x6e5fa0)<<0x4,_0x28ba64=_0x3bfac7-_0x6e5fa0,_0x1c05f0;if(_0x28ba64>0x4)_0x1c05f0=_0x6e5fa0+0x8<=_0x4c69b5['length']?_0x4c6dc8['getInt32'](_0x6e5fa0+0x4):_0x4c69b5[_0x6e5fa0+0x4]<<0x18|_0x4c69b5[_0x6e5fa0+0x5]<<0x10|_0x4c69b5[_0x6e5fa0+0x6]<<0x8|_0x4c69b5[_0x6e5fa0+0x7],_0x54d65a|=_0x1c05f0>>>0x1c,_0x28ba64<=0x6&&(_0x1c05f0&=-0x10000),_0x1c05f0=_0x1c05f0<<0x4,_0x28ba64>0x8&&(_0x1c05f0=_0x1c05f0|_0x4c69b5[_0x6e5fa0+0x8]>>0x4);else _0x1c05f0=0x0;_0x17e635<0x10&&(_0x54d65a=_0x54d65a^0x7fffffff,_0x1c05f0=~_0x1c05f0);_0xc6cf46[_0x116d32]=_0x54d65a,_0xc6cf46[_0xcdfaab]=_0x1c05f0,_0x2ae0f8=_0x808144[0x0],_0x6e5fa0+=0x9;if(_0x28ba64>0x9&&_0x4c69b5[_0x6e5fa0]>0x0){_0x2ae0f8=BigInt(_0x2ae0f8);let _0x274fd7=_0x54d65a>>0x14&0x7ff,_0x10179d=_0x4c69b5[_0x6e5fa0-0x1]&0xf;_0x2ae0f8+=BigInt(_0x10179d)<<BigInt(_0x274fd7-0x437);while((_0x10179d=_0x4c69b5[_0x6e5fa0])>0x0&&_0x6e5fa0++<_0x3bfac7){_0x2ae0f8+=BigInt(_0x10179d&0x7f)<<BigInt((_0x304a48-_0x6e5fa0)*0x7+_0x274fd7-0x3f8);}}}}else{_0x17e635==0x1b&&_0x6e5fa0++;_0x2ae0f8=_0x4a8e6f(_0x4c69b5,_0x3bfac7);if(_0x6e5fa0<_0x3bfac7)_0x6e5fa0--;}while(_0x6e5fa0<_0x3bfac7){if(_0x4c69b5[_0x6e5fa0]===0x0)_0x6e5fa0++;if(_0xc95097)return _0x5e5948[_0x5b834f(0x612)]=_0x6e5fa0,_0x2ae0f8;let _0x4df919=_0x47843a(_0x4c69b5,_0x6e5fa0,_0x3bfac7,!![]);if(_0x2ae0f8 instanceof Array)_0x2ae0f8[_0x5b834f(0x782)](_0x4df919);else _0x2ae0f8=[_0x2ae0f8,_0x4df919];}return _0x2ae0f8;}const _0x2c5aa5=()=>_0x386fbc=!![],_0x5e5948={'writeKey':_0xf0e642,'readKey':_0x47843a,'enableNullTermination':_0x2c5aa5};let _0x223a83=[],_0x3100d0=0x0;const _0x3db8a7=typeof Buffer!=='undefined',_0x944bf6=_0x3db8a7?Buffer['allocUnsafeSlow']:Uint8Array,_0x3a4236=_0x311eac=>{const _0x2ac2f8=_0x20df97;let _0x30e859;_0x3100d0+0x64>_0x223a83['length']&&(_0x223a83=new _0x944bf6(0x2000),_0x3100d0=0x0,_0x30e859=!![]);try{let _0x21c498=_0x223a83[_0x2ac2f8(0x49d)](_0x3100d0,_0x3100d0=_0xf0e642(_0x311eac,_0x223a83,_0x3100d0));if(_0x3100d0>_0x223a83['length']){if(_0x30e859)throw new Error(_0x2ac2f8(0x2a0));return _0x3a4236(_0x311eac);}return _0x21c498;}catch(_0x1685f7){if(_0x30e859)throw _0x1685f7;return _0x3100d0=_0x223a83[_0x2ac2f8(0x42c)],_0x3a4236(_0x311eac);}},_0x52ab32=_0x259caa=>{const _0x49580b=_0x20df97;return _0x47843a(_0x259caa,0x0,_0x259caa[_0x49580b(0x42c)]);},_0x9a586a=String[_0x20df97(0x73d)];function _0x3260d0(){const _0x13b062=_0x20df97;let _0x31e85a=_0x13b062(0x217),_0x394a31=[];for(let _0x24c496=0x0;_0x24c496<0x30;_0x24c496++){let _0x40b296=_0x9a586a((_0x24c496&0xf)+0x61)+_0x9a586a((_0x24c496>>0x4)+0x61);_0x31e85a+=_0x13b062(0x7ab)+_0x40b296+'\x20=\x20source[position++]\x0a\x09\x09if\x20('+_0x40b296+_0x13b062(0xb4)+_0x40b296+'\x20>=\x200x80)\x20'+_0x40b296+_0x13b062(0x779)+_0x40b296+',\x20source)\x0a\x09\x09}\x20else\x20{\x0a\x09\x09\x09if\x20('+_0x40b296+'\x20===\x204)\x0a\x09\x09\x09\x09'+_0x40b296+_0x13b062(0x742)+_0x394a31+_0x13b062(0x636),_0x394a31['push'](_0x40b296);}return _0x31e85a+=_0x13b062(0x66b)+_0x394a31+_0x13b062(0x314),_0x31e85a;}const _0x32ead1=typeof process!==_0x20df97(0x3a6)&&process[_0x20df97(0x467)]?function(_0x5b5738){let {setPosition:_0x5be231,getPosition:_0x1b9407,readString:_0x51e9a7}=_0x5b5738;return _0xbe665b=>{_0x5be231(_0x6e5fa0);let _0x39c916=_0x51e9a7(_0xbe665b);return _0x6e5fa0=_0x1b9407(),_0x39c916;};}(new Function(_0x20df97(0x73d),_0x20df97(0x2ee)+_0x3260d0()+_0x20df97(0x2db)+_0x20df97(0x458)+'getPosition()\x20{\x20return\x20position\x20},'+_0x20df97(0x6f9))(_0x9a586a)):eval(_0x3260d0());function _0x4a8e6f(_0x30131b,_0x46bf3a){if(_0x30131b[_0x46bf3a]>0x0){let _0x4e559c=_0x30131b[_0x46bf3a];try{return _0x30131b[_0x46bf3a]=0x0,_0x32ead1(_0x30131b);}finally{_0x30131b[_0x46bf3a]=_0x4e559c;}}else return _0x32ead1(_0x30131b);}function _0x1be740(_0x369d5e,_0x39d20f){const _0x645eb8=_0x20df97;if(typeof _0x369d5e==_0x645eb8(0x788)){if(!_0x369d5e)return _0x39d20f==null?0x0:-0x1;if(_0x369d5e[_0x645eb8(0xd1)]){if(_0x39d20f==null)return 0x1;else return _0x39d20f[_0x645eb8(0xd1)]?_0x369d5e[_0x645eb8(0xd1)](_0x39d20f):-0x1;}let _0x533f5c;if(_0x39d20f instanceof Array){let _0x2d80d4=0x0;while((_0x533f5c=_0x1be740(_0x369d5e[_0x2d80d4],_0x39d20f[_0x2d80d4]))==0x0&&_0x2d80d4<=_0x369d5e['length']){_0x2d80d4++;}return _0x533f5c;}_0x533f5c=_0x1be740(_0x369d5e[0x0],_0x39d20f);if(_0x533f5c==0x0&&_0x369d5e['length']>0x1)return 0x1;return _0x533f5c;}else{if(typeof _0x369d5e==typeof _0x39d20f)return typeof _0x369d5e===_0x645eb8(0x50c)&&(_0x369d5e=Symbol[_0x645eb8(0x689)](_0x369d5e),_0x39d20f=Symbol['keyFor'](_0x39d20f)),_0x369d5e<_0x39d20f?-0x1:_0x369d5e===_0x39d20f?0x0:0x1;else{if(typeof _0x39d20f=='object'){if(_0x39d20f instanceof Array)return-_0x1be740(_0x39d20f,_0x369d5e);return 0x1;}else return _0x3ab7fa[typeof _0x369d5e]<_0x3ab7fa[typeof _0x39d20f]?-0x1:0x1;}}}const _0x3ab7fa={'symbol':0x0,'undefined':0x1,'boolean':0x2,'number':0x3,'string':0x4},_0x121fd4=null,_0x24416d=new Uint8Array([0xff]);return dist[_0x20df97(0x49e)]=_0x24416d,dist['MINIMUM_KEY']=_0x121fd4,dist[_0x20df97(0x4ca)]=_0x1be740,dist[_0x20df97(0x2da)]=_0x2c5aa5,dist[_0x20df97(0x11d)]=_0x5e5948,dist[_0x20df97(0x639)]=_0x52ab32,dist[_0x20df97(0x2ab)]=_0x47843a,dist[_0x20df97(0x5f9)]=_0x3a4236,dist[_0x20df97(0x477)]=_0xf0e642,dist;}var keyenc,hasRequiredKeyenc;function requireKeyenc(){const _0x180dc3=_0x2dfd83;if(hasRequiredKeyenc)return keyenc;hasRequiredKeyenc=0x1;const {writeKey:_0x34bddb}=requireDist(),_0x40fd6a=0x7ba,_0x1e9927=0x1000;function _0x25de99(_0x566ff6,_0x1026a8){const _0x110643=_0x5aff;switch(typeof _0x566ff6){case _0x110643(0x48c):return _0x566ff6[_0x110643(0x42c)]<=_0x40fd6a&&_0x566ff6[_0x110643(0x344)]();case'number':case _0x110643(0x2fd):return!![];case _0x110643(0x788):if(_0x566ff6===null)return!![];if(Array[_0x110643(0x796)](_0x566ff6)){if(_0x1026a8>0x8||_0x566ff6[_0x110643(0x42c)]>_0x40fd6a)return![];for(let _0x373565=0x0;_0x373565<_0x566ff6[_0x110643(0x42c)];_0x373565++)if(!_0x25de99(_0x566ff6[_0x373565],_0x1026a8+0x1))return![];return!![];}return Buffer['isBuffer'](_0x566ff6)&&_0x566ff6[_0x110643(0x42c)]<=_0x40fd6a;default:return![];}}function _0x4c71f2(_0x2ab0d2,_0x5598b8){const _0x193004=_0x5aff,_0x30c21f=typeof _0x2ab0d2;if(_0x30c21f===_0x193004(0x48c)){if(_0x2ab0d2[_0x193004(0x42c)]>=0x40||!_0x2ab0d2['isWellFormed']()){if(!_0x25de99(_0x2ab0d2,0x0))return-0x1;}}else{if(_0x30c21f!==_0x193004(0x1f1)){if(Array[_0x193004(0x796)](_0x2ab0d2)?_0x2ab0d2[_0x193004(0x42c)]===0x0||!_0x25de99(_0x2ab0d2,0x0):!_0x25de99(_0x2ab0d2,0x0))return-0x1;}}let _0x1bd10c;try{_0x1bd10c=_0x34bddb(_0x2ab0d2,_0x5598b8,0x0);}catch{return-0x1;}return _0x1bd10c>0x0&&_0x1bd10c<=_0x40fd6a?_0x1bd10c:-0x1;}return keyenc={'encodeKey':_0x4c71f2,'KEY_BUF_SIZE':_0x1e9927,'NO_FAST':Symbol(_0x180dc3(0x240))},keyenc;}var okdbHlc,hasRequiredOkdbHlc;function requireOkdbHlc(){const _0x5a011e=_0x2dfd83;if(hasRequiredOkdbHlc)return okdbHlc;hasRequiredOkdbHlc=0x1;const _0x121832=0x400,_0x119467=_0x121832-0x1,_0x4d45fb=0xea60;function _0x53fa5a(_0x2f3fa2,_0x1e5749){const _0x2fb97b=_0x5aff;return _0x2f3fa2*_0x121832+Math[_0x2fb97b(0x57c)](0x0,Math[_0x2fb97b(0x492)](_0x1e5749,_0x119467));}function _0x48af0d(_0xe58ffa){const _0x424af2=Math['max'](0x0,Number(_0xe58ffa)||0x0),_0x16e498=_0x424af2%_0x121832,_0x25d417=(_0x424af2-_0x16e498)/_0x121832;return{'pt':_0x25d417,'l':_0x16e498};}function _0x555f5d(_0x200652,_0x28affa=Date[_0x5a011e(0xcc)]()){const _0x35ca5c=_0x5a011e,{pt:_0x1078ff,l:_0x339c4e}=_0x48af0d(_0x200652),_0x1fa662=Math[_0x35ca5c(0x57c)](_0x1078ff,_0x28affa),_0x36d3fe=_0x1fa662===_0x1078ff?Math['min'](_0x339c4e+0x1,_0x119467):0x0;return _0x53fa5a(_0x1fa662,_0x36d3fe);}function _0x9787cf(_0x1b8301,_0x3d946a,_0x5c13c2=Date[_0x5a011e(0xcc)]()){const _0x2602bc=_0x5a011e,{pt:_0x3af1f4,l:_0x3eb738}=_0x48af0d(_0x1b8301),{pt:_0x2c5c7e,l:_0x21d365}=_0x48af0d(_0x3d946a),_0x29f358=Math[_0x2602bc(0x57c)](_0x3af1f4,_0x2c5c7e,_0x5c13c2);let _0x5355f5;if(_0x29f358===_0x3af1f4&&_0x29f358===_0x2c5c7e)_0x5355f5=Math[_0x2602bc(0x492)](Math[_0x2602bc(0x57c)](_0x3eb738,_0x21d365)+0x1,_0x119467);else{if(_0x29f358===_0x3af1f4)_0x5355f5=Math[_0x2602bc(0x492)](_0x3eb738+0x1,_0x119467);else _0x29f358===_0x2c5c7e?_0x5355f5=Math['min'](_0x21d365+0x1,_0x119467):_0x5355f5=0x0;}return _0x53fa5a(_0x29f358,_0x5355f5);}function _0x101801(_0x903036,_0x4e6ff8){const _0x31924c=Number(_0x903036)||0x0,_0x2b3979=Number(_0x4e6ff8)||0x0;if(_0x31924c<_0x2b3979)return-0x1;if(_0x31924c>_0x2b3979)return 0x1;return 0x0;}function _0x427cd1(_0x5ac0a7){return _0x48af0d(_0x5ac0a7)['pt'];}return okdbHlc={'send':_0x555f5d,'recv':_0x9787cf,'compare':_0x101801,'toMs':_0x427cd1,'encode':_0x53fa5a,'decode':_0x48af0d,'SCALE':_0x121832,'L_MAX':_0x119467,'DRIFT_MAX':_0x4d45fb},okdbHlc;}var env,hasRequiredEnv;function requireEnv(){const _0x5cb9c0=_0x2dfd83;if(hasRequiredEnv)return env;hasRequiredEnv=0x1;const {fromArray:_0x41956b,chunkedRange:_0x175463,pinnedChunks:_0x37b308,claimPrefetch:_0x5322c5}=requireIterable(),{reclass:_0x5a840a,NotImplementedNative:_0x3a5163,OKDBError:_0x1af737,optionsArg:_0x499654}=requireErrors(),{OKDBViews:_0x5ac66c}=requireViews(),{OKDBQueue:_0x3c301b}=requireQueue(),{OKDBTimeMachine:_0x3a4316}=requireTimemachine(),_0x92d94e=_0x3ec492=>{const _0x575042=_0x5aff;try{return!_0x3ec492[_0x575042(0x384)]||_0x3ec492[_0x575042(0x384)]['isFeatureEnabled'](_0x575042(0x2f4));}catch{return!![];}},{OKDBFiles:_0x2db853}=requireFiles(),{OKDBEngines:_0x4cae02,OKDBPipelines:_0x4035cf}=requireEngines(),{OKDBFunctions:_0x255aba}=requireFunctions(),_0xd356f5=requireProcessor(),{RawDb:_0x56dacb}=requireRawdb(),_0x4d8d70=requireBridge();let _0x1b309d=null;const _0x21e6e1=()=>_0x1b309d||=requireOkdbTransaction(),_0x30398b=(..._0x3f3b68)=>requireOkdbGuardedRange()['guardSnapshotIterable'](..._0x3f3b68),_0x1f3b57=Buffer[_0x5cb9c0(0x6a2)]([0xff]),_0x2adb4f=process.env.OKDB_NATIVE_RAW_READS!=='0',_0x3d01c9=_0x2adb4f&&process.env.OKDB_NATIVE_FAST_GET!=='0',{NO_FAST:_0x36b3e7}=requireKeyenc(),_0x457c71=new Set(_0x2adb4f?['getRange',_0x5cb9c0(0x26a),_0x5cb9c0(0x35a),_0x5cb9c0(0x76b),'getKeys']:[]),_0xb29b0a=new Set([_0x5cb9c0(0x73e),_0x5cb9c0(0x465),'getMany',_0x5cb9c0(0x3bd),_0x5cb9c0(0x42e),'getValues',_0x5cb9c0(0x1e5),_0x5cb9c0(0x587),_0x5cb9c0(0x107),_0x5cb9c0(0x26a),'countByIndex',_0x5cb9c0(0x35a),_0x5cb9c0(0x35c),_0x5cb9c0(0x5f3),_0x5cb9c0(0x393),'getChanges',_0x5cb9c0(0x432),_0x5cb9c0(0xcc),_0x5cb9c0(0x19a),_0x5cb9c0(0x6c1),_0x5cb9c0(0x2ef),'getIndexStatus',_0x5cb9c0(0x28c),_0x5cb9c0(0x624),_0x5cb9c0(0x3a0),_0x5cb9c0(0x680),_0x5cb9c0(0x729),_0x5cb9c0(0x5f2),'getSchema','getViolation',_0x5cb9c0(0x19c),_0x5cb9c0(0x4fc),'listRefViolations',_0x5cb9c0(0x57f),_0x5cb9c0(0x321),'ttlStats',_0x5cb9c0(0x264),_0x5cb9c0(0x5d1),_0x5cb9c0(0x2fa),'id',_0x5cb9c0(0x59b),_0x5cb9c0(0x661),_0x5cb9c0(0x739),'readField',_0x5cb9c0(0x340)]),_0x519d79=new Set(['start',_0x5cb9c0(0x172),_0x5cb9c0(0x573),_0x5cb9c0(0x5d2),_0x5cb9c0(0x159),_0x5cb9c0(0x3ca),_0x5cb9c0(0x686),_0x5cb9c0(0x27e),_0x5cb9c0(0x4a4),'snapshot',_0x5cb9c0(0x6be),'key',_0x5cb9c0(0x3e4),'prefix']);function _0x3d105c(_0x390d14,_0xbbd871,_0x1f1123){const _0x4b93a1=new Map();return(_0x5b4fcc,_0x353bf3)=>{const _0x9c1003=_0x5aff,_0x52dfb3=JSON['stringify'](_0x353bf3),_0x1dbd49=_0x4b93a1[_0x9c1003(0x73e)](_0x52dfb3);if(_0x1dbd49){if(_0x1dbd49[_0x9c1003(0x728)]===_0x9c1003(0x690))throw _0x582e89();_0x4b93a1['delete'](_0x52dfb3);if(_0x1dbd49['state']==='err')throw _0x1dbd49[_0x9c1003(0x1d0)];return _0x1dbd49['value'];}const _0x9504b1=_0x5b4fcc(..._0x353bf3);if(!_0x9504b1||typeof _0x9504b1[_0x9c1003(0x447)]!=='function')return _0x9504b1;const _0x2cfaa6={'state':_0x9c1003(0x690),'value':undefined},_0xb90bc1=(_0x1d18c4,_0x200812)=>{const _0x1d72f9=_0x9c1003;_0x2cfaa6['state']=_0x1d18c4,_0x2cfaa6[_0x1d72f9(0x1d0)]=_0x200812;if(_0x4b93a1[_0x1d72f9(0x73e)](_0x52dfb3)!==_0x2cfaa6)return;setTimeout(()=>_0x4b93a1[_0x1d72f9(0x73e)](_0x52dfb3)===_0x2cfaa6&&_0x4b93a1['delete'](_0x52dfb3),0x7530)[_0x1d72f9(0x212)]();try{_0x390d14[_0x1d72f9(0x538)][_0x1d72f9(0x11e)]('events',null,_0x1d72f9(0x2fe),[_0x1d72f9(0x554),{'env':_0x390d14['name'],'type':_0xbbd871,'field':_0x1f1123}],!![]);}catch{}};_0x9504b1[_0x9c1003(0x447)](_0x37d37e=>_0xb90bc1('ok',_0x37d37e),_0x3afea9=>_0xb90bc1(_0x9c1003(0x342),_0x3afea9));for(let _0x14a7f4=0x0;_0x14a7f4<0x64&&_0x2cfaa6[_0x9c1003(0x728)]===_0x9c1003(0x690);_0x14a7f4++)process['_tickCallback']();if(_0x2cfaa6[_0x9c1003(0x728)]==='ok')return _0x2cfaa6[_0x9c1003(0x1d0)];if(_0x2cfaa6[_0x9c1003(0x728)]===_0x9c1003(0x342))throw _0x2cfaa6[_0x9c1003(0x1d0)];_0x4b93a1['set'](_0x52dfb3,_0x2cfaa6);throw _0x582e89();};}function _0x582e89(){const _0x596efa=_0x5cb9c0;return Object['assign'](new Error(_0x596efa(0x4d0)),{'code':_0x596efa(0x56a)});}class _0x1fd00b{constructor(_0x2bb1ef,_0x23de95){const _0x245b18=_0x5cb9c0;this['okdb']=_0x2bb1ef,this[_0x245b18(0x5d1)]=_0x23de95,this[_0x245b18(0xe3)]=_0x2bb1ef[_0x245b18(0xe3)],this[_0x245b18(0x66c)]=_0x2bb1ef[_0x245b18(0x66c)],this[_0x245b18(0x56b)]=!![],this[_0x245b18(0x2d5)]=null,this[_0x245b18(0x553)]=new _0x5ac66c(this),this[_0x245b18(0xd6)]=new _0xd356f5(this);if(!_0x23de95[_0x245b18(0x302)]('~')||_0x23de95['includes'](_0x245b18(0x2f2)))this[_0x245b18(0x431)]=new _0x3c301b(this);if(!_0x23de95[_0x245b18(0x302)]('~'))this[_0x245b18(0x66f)]=new _0x2db853(this);this['functions']=new _0x255aba(_0x2bb1ef,_0x23de95),this['engines']=new _0x4cae02(_0x2bb1ef,_0x23de95,_0x2bb1ef[_0x245b18(0x675)]),this[_0x245b18(0x20c)]=new _0x4035cf(_0x2bb1ef,_0x23de95);if(!_0x23de95[_0x245b18(0x302)]('~')&&_0x2bb1ef[_0x245b18(0x51c)][_0x245b18(0x2f4)]&&_0x92d94e(_0x2bb1ef))this[_0x245b18(0x2f4)]=new _0x3a4316(this);_0x4d8d70[_0x245b18(0x4e7)](this[_0x245b18(0x2fa)],this);const _0x3a5cf4=this;this['_writer']={async 'transaction'(_0x503c4f){const _0x286a93=_0x245b18,_0x39adce=[];_0x3a5cf4[_0x286a93(0x2d5)]=_0x39adce;try{_0x503c4f();}finally{_0x3a5cf4[_0x286a93(0x2d5)]=null;}return _0x3a5cf4[_0x286a93(0x538)][_0x286a93(0x65f)][_0x286a93(0xc8)](_0x286a93(0x114),_0x3a5cf4['name'],'commit',[_0x39adce]);},'drain'(){const _0x1c33c6=_0x245b18;return _0x3a5cf4[_0x1c33c6(0x538)][_0x1c33c6(0x65f)][_0x1c33c6(0xba)]();},'flushLmdb'(){const _0x30f712=_0x245b18;return _0x3a5cf4[_0x30f712(0x538)][_0x30f712(0x65f)][_0x30f712(0xba)]();},'markClosed'(){}};const _0x26ca8b=new _0x56dacb(this,'');_0x26ca8b[_0x245b18(0x1ad)]=()=>({'lastTxnId':this['_n']('lastTxnId',[])}),Object[_0x245b18(0x4b3)](_0x26ca8b,_0x245b18(0x299),{'get':()=>this[_0x245b18(0x538)][_0x245b18(0x65f)]['drain'](),'configurable':!![]}),Object['defineProperty'](_0x26ca8b,'flushed',{'get':()=>this['okdb'][_0x245b18(0x65f)]['drain'](),'configurable':!![]});const _0x3f5c01=_0x26ca8b['get'][_0x245b18(0x215)](_0x26ca8b);_0x26ca8b[_0x245b18(0x73e)]=_0x18d56c=>_0x18d56c===_0x245b18(0x4ee)?this['_n']('getClock',[null]):_0x3f5c01(_0x18d56c),this['db']=_0x26ca8b;}async['close'](){const _0x3ae03d=_0x5cb9c0;this[_0x3ae03d(0x279)]=!![];}get[_0x5cb9c0(0xc4)](){const _0x4b9175=_0x5cb9c0;return new Map(this[_0x4b9175(0x538)]['_call']('db',null,'formerOrigins',[this[_0x4b9175(0x5d1)]],![]));}get[_0x5cb9c0(0x1da)](){const _0x44475a=_0x5cb9c0;return this[_0x44475a(0x1cd)]||(this['_typesDb']=new _0x56dacb(this,_0x44475a(0x655)));}[_0x5cb9c0(0x1fe)](_0x491f2c){const _0x3ef6a7=_0x5cb9c0,_0x2d0883=this[_0x3ef6a7(0x1da)][_0x3ef6a7(0x73e)](_0x491f2c);if(_0x2d0883===undefined||String(_0x491f2c)[_0x3ef6a7(0x302)](_0x3ef6a7(0x507))||String(_0x491f2c)[_0x3ef6a7(0x302)](_0x3ef6a7(0x55c))){const {OKDBError:_0x5d8691}=requireErrors();throw new _0x5d8691(_0x3ef6a7(0x33c)+_0x491f2c+_0x3ef6a7(0x283),_0x3ef6a7(0x575),{'type':_0x491f2c});}const _0x1a7055=this,_0x5a493f=new _0x56dacb(_0x1a7055,_0x3ef6a7(0x783)+_0x491f2c+_0x3ef6a7(0x708)),_0x1a9089=new Map();for(const _0x55fc3a of _0x5a493f[_0x3ef6a7(0x42e)]()){const _0x265b17=_0x5a493f[_0x3ef6a7(0x73e)](_0x55fc3a)||{},_0x281646={'parts':_0x55fc3a[_0x3ef6a7(0x2c4)]('~'),'db':new _0x56dacb(_0x1a7055,_0x3ef6a7(0x783)+_0x491f2c+_0x3ef6a7(0x288)+_0x55fc3a,{'dupSort':!![]})};if(_0x265b17[_0x3ef6a7(0x6de)])_0x281646[_0x3ef6a7(0x6de)]=_0x265b17[_0x3ef6a7(0x6de)];if(_0x265b17[_0x3ef6a7(0x5b6)])_0x281646['unique']=!![];if(_0x265b17['sparse'])_0x281646[_0x3ef6a7(0x214)]=!![];if(_0x265b17[_0x3ef6a7(0x120)])_0x281646[_0x3ef6a7(0x120)]=_0x265b17[_0x3ef6a7(0x120)];_0x281646[_0x3ef6a7(0x69a)]=new Set((_0x265b17[_0x3ef6a7(0x69a)]??[])[_0x3ef6a7(0x78f)](_0x5990b9=>_0x5990b9[_0x3ef6a7(0x312)]+':'+_0x5990b9[_0x3ef6a7(0x5d1)])),_0x1a9089[_0x3ef6a7(0x721)](_0x55fc3a,_0x281646);}return{'root':new _0x56dacb(_0x1a7055,'type:'+_0x491f2c),'data':new _0x56dacb(_0x1a7055,_0x3ef6a7(0x783)+_0x491f2c+_0x3ef6a7(0x774),{'useVersions':!![]}),'indexes':_0x5a493f,'clockToChange':new _0x56dacb(_0x1a7055,'type:'+_0x491f2c+_0x3ef6a7(0x429)),'keyToChange':new _0x56dacb(_0x1a7055,_0x3ef6a7(0x783)+_0x491f2c+_0x3ef6a7(0x696)),'fieldSchema':new Map(Object[_0x3ef6a7(0x67c)](_0x2d0883[_0x3ef6a7(0x338)]||{})[_0x3ef6a7(0x78f)](([_0x583f84,_0x36f5a8])=>[_0x583f84,new Set(Array[_0x3ef6a7(0x796)](_0x36f5a8)?_0x36f5a8:[_0x36f5a8])])),'indexToDb':_0x1a9089,'ftsToDb':null,'schema':_0x2d0883[_0x3ef6a7(0x4cb)]||null,'defaultTTL':_0x2d0883[_0x3ef6a7(0x423)]||null};}get[_0x5cb9c0(0x652)](){const _0x2f6cd9=_0x5cb9c0,_0x34eceb=this,_0xc6e730=()=>_0x34eceb[_0x2f6cd9(0x6c1)]();return{'get':_0x4b6093=>{const _0x5817e9=_0x2f6cd9;try{return _0x34eceb[_0x5817e9(0x1fe)](_0x4b6093);}catch{return undefined;}},'has':_0x517dc3=>_0xc6e730()[_0x2f6cd9(0x564)](_0x517dc3),'keys':()=>_0xc6e730()[Symbol[_0x2f6cd9(0x3f3)]](),get 'size'(){return _0xc6e730()['length'];}};}['_typeKeys'](){const _0x2caa19=_0x5cb9c0;return this[_0x2caa19(0x6c1)]();}get['changeToClockDb'](){const _0x48ad00=_0x5cb9c0;return this[_0x48ad00(0x110)]||(this[_0x48ad00(0x110)]=new _0x56dacb(this,_0x48ad00(0x643)));}get[_0x5cb9c0(0x72d)](){const _0x1ceb62=_0x5cb9c0;return this[_0x1ceb62(0x398)]||(this['_clockToChangeDb']=new _0x56dacb(this,_0x1ceb62(0x2b7)));}[_0x5cb9c0(0x1bb)](_0x3a6dc5){const _0x215125=_0x5cb9c0;return this['_n'](_0x215125(0x501),[_0x3a6dc5]);}get[_0x5cb9c0(0x5bf)](){const _0x3b669b=_0x5cb9c0;return!this['_n'](_0x3b669b(0x400),[],![]);}get[_0x5cb9c0(0x4fa)](){const _0x19f926=_0x5cb9c0;return this[_0x19f926(0x5c1)]!==undefined?this[_0x19f926(0x5c1)]:this['_n'](_0x19f926(0x400),[],![]);}set[_0x5cb9c0(0x4fa)](_0x27c266){const _0x41542c=_0x5cb9c0;this[_0x41542c(0x5c1)]=_0x27c266;}get[_0x5cb9c0(0x17c)](){const _0x9826a7=_0x5cb9c0;return this['_compactLock']||(this[_0x9826a7(0x768)]=new(requireLock())[(_0x9826a7(0x18e))](this[_0x9826a7(0x538)],_0x9826a7(0x513),_0x9826a7(0x6b7),{'ttlMs':0xea60}));}get[_0x5cb9c0(0x2fa)](){const _0x1bee0d=_0x5cb9c0;return this[_0x1bee0d(0x216)]??(this[_0x1bee0d(0x216)]=this['_n'](_0x1bee0d(0x2fa),[]));}get['id'](){return this['_n']('id',[]);}get[_0x5cb9c0(0x7dd)](){const _0x253815=_0x5cb9c0;return this[_0x253815(0x538)][_0x253815(0x7dd)];}['_n'](_0x55ef24,_0x476308){const _0x537232=_0x5cb9c0;return this[_0x537232(0x538)][_0x537232(0x11e)](_0x537232(0x114),this['name'],_0x55ef24,_0x476308,!_0xb29b0a['has'](_0x55ef24));}[_0x5cb9c0(0x1ce)](_0x8c104){const _0x52362d=_0x5cb9c0;return this[_0x52362d(0x538)]['_settleWrite'](_0x8c104);}[_0x5cb9c0(0x79e)](_0x3a80fe,_0x369758){const _0x21e922=_0x5cb9c0;if(_0x457c71['has'](_0x3a80fe===_0x21e922(0x624)?_0x369758[0x1]:_0x3a80fe))return this[_0x21e922(0x538)]['_callRows'](this[_0x21e922(0x5d1)],_0x3a80fe,_0x369758);return this[_0x21e922(0x538)][_0x21e922(0x7e2)]('env',this[_0x21e922(0x5d1)],_0x3a80fe,_0x369758);}[_0x5cb9c0(0x6be)](_0x7ff355={'useReadTransaction':![]}){return new(_0x21e6e1())(this,_0x7ff355);}async['txn'](_0x5243a5,_0x5ad167){const _0x3835a9=_0x5cb9c0;return _0x21e6e1()[_0x3835a9(0x2b0)](this,_0x5243a5,_0x5ad167);}[_0x5cb9c0(0x497)](_0x436eb1,_0x5476ad){const _0x25bdad=_0x5cb9c0;if(this[_0x25bdad(0x2d5)])this[_0x25bdad(0x2d5)][_0x25bdad(0x782)]({'action':_0x436eb1,'args':_0x5476ad});else this['_n'](_0x436eb1,_0x5476ad);}[_0x5cb9c0(0x251)](_0x4affbf,_0x3f1520,_0x22f8af,_0x4adaea,_0x46ce1d){const _0x47f5bf=_0x5cb9c0;this[_0x47f5bf(0x497)](_0x47f5bf(0x10d),[_0x3f1520,_0x22f8af,_0x4adaea,_0x46ce1d]);}[_0x5cb9c0(0x641)](_0xf7e4ae,_0x9a957d,_0x331a2b,_0x2395be,_0x48f6ac){const _0x4e6c98=_0x5cb9c0;this[_0x4e6c98(0x497)](_0x4e6c98(0x47c),[_0x9a957d,_0x331a2b,_0x2395be,_0x48f6ac]);}[_0x5cb9c0(0x54f)](_0x3814c1,_0x5c099e,_0x5e725a,_0x55625d,_0x297439){const _0x5f4aff=_0x5cb9c0;this[_0x5f4aff(0x497)](_0x5f4aff(0x1ba),[_0x5c099e,_0x5e725a,_0x55625d,_0x297439]);}['_create'](_0x2a8ee8,_0x417b29,_0x154484,_0x12b730,_0x2b35d4){const _0x4f4538=_0x5cb9c0;this[_0x4f4538(0x497)](_0x4f4538(0x53b),[_0x417b29,_0x154484,_0x12b730,_0x2b35d4]);}['_remove'](_0x4043a9,_0x69fed8,_0x396ef4,_0x141039){const _0x4ad776=_0x5cb9c0;this['_low'](_0x4ad776(0x102),[_0x69fed8,_0x396ef4,_0x141039]);}[_0x5cb9c0(0x1b2)](_0xe6b783,_0x5e8a25,_0x282a02,_0x4b0103){const _0x40a17b=_0x5cb9c0;this[_0x40a17b(0x497)](_0x40a17b(0x2ba),[_0x5e8a25,_0x282a02,_0x4b0103]);}[_0x5cb9c0(0x276)](_0xc4f006,_0x4bf629,_0x592932){const _0x4816fb=_0x5cb9c0;this[_0x4816fb(0x497)](_0x4816fb(0x1a4),[_0x4bf629,_0x592932]);}['_w'](_0x3d35c0,_0x3e986e){const _0x1c9a8c=_0x5cb9c0;return this[_0x1c9a8c(0x538)]['_wb'][_0x1c9a8c(0xc8)](_0x1c9a8c(0x114),this[_0x1c9a8c(0x5d1)],_0x3d35c0,_0x3e986e);}[_0x5cb9c0(0x10d)](_0x1fd2f7,_0x50b5f4,_0x272a76,_0x5848c4={}){const _0x2bb29f=_0x5cb9c0;return this['_w'](_0x2bb29f(0x10d),[_0x1fd2f7,_0x50b5f4,_0x272a76,_0x5848c4]);}[_0x5cb9c0(0x47c)](_0x3bfa04,_0xd0cc68,_0x1b2ad6,_0x4fb52e={}){const _0x2eb52a=_0x5cb9c0;return this['_w'](_0x2eb52a(0x47c),[_0x3bfa04,_0xd0cc68,_0x1b2ad6,_0x4fb52e]);}[_0x5cb9c0(0x1ba)](_0x75165c,_0x210305,_0x652e40,_0x4ce66e={}){return this['_w']('patch',[_0x75165c,_0x210305,_0x652e40,_0x4ce66e]);}[_0x5cb9c0(0x53b)](_0x531de0,_0x28b377,_0x2b7254,_0x511aee={}){const _0xe68a39=_0x5cb9c0;return this['_w'](_0xe68a39(0x53b),[_0x531de0,_0x28b377,_0x2b7254,_0x511aee]);}[_0x5cb9c0(0x102)](_0x3b5176,_0x1c19f8,_0xfec7f9={}){const _0x207696=_0x5cb9c0;return this['_w'](_0x207696(0x102),[_0x3b5176,_0x1c19f8,_0xfec7f9]);}[_0x5cb9c0(0x73e)](_0xbbbef3,_0x36a09c,_0x4833e4){const _0x2a115b=_0x5cb9c0;if(_0x3d01c9&&typeof _0xbbbef3===_0x2a115b(0x48c)){const _0x340762=this[_0x2a115b(0x538)][_0x2a115b(0x39e)](this[_0x2a115b(0x5d1)],_0xbbbef3,_0x36a09c);if(_0x340762!==_0x36b3e7)return _0x340762===null?this['_n'](_0x2a115b(0x73e),[_0xbbbef3,_0x36a09c]):_0x340762;}if(_0x2adb4f&&(typeof _0x36a09c===_0x2a115b(0x48c)||typeof _0x36a09c==='number')){const _0x1bac85=this[_0x2a115b(0x538)][_0x2a115b(0x127)](this['name'],_0xbbbef3,_0x36a09c);if(_0x1bac85!==null)return _0x1bac85;}return this['_n']('get',[_0xbbbef3,typeof _0x36a09c===_0x2a115b(0x50c)?null:_0x36a09c]);}[_0x5cb9c0(0x544)](_0x1441c8,_0x40363a,_0x508add){const _0x5cc98d=_0x5cb9c0,_0xd83c41=[_0x1441c8,Array[_0x5cc98d(0x796)](_0x40363a)&&_0x40363a[_0x5cc98d(0x787)](_0x502308=>typeof _0x502308===_0x5cc98d(0x50c))?_0x40363a['map'](_0x224439=>typeof _0x224439===_0x5cc98d(0x50c)?null:_0x224439):_0x40363a];return _0x2adb4f?this['okdb'][_0x5cc98d(0x187)](this[_0x5cc98d(0x5d1)],_0x5cc98d(0x544),_0xd83c41):this['_n'](_0x5cc98d(0x544),_0xd83c41);}['getEntry'](_0x3a3d63,_0x496ddc,_0x14ed75){const _0x2a37a3=_0x5cb9c0;return this['_n']('getEntry',[_0x3a3d63,typeof _0x496ddc===_0x2a37a3(0x50c)?null:_0x496ddc]);}[_0x5cb9c0(0x1e5)](_0x20b18f,_0x1a6fb5){const _0xca81ff=_0x5cb9c0;return this['_assertRangeOptions']('getCount',_0x1a6fb5),this['_n'](_0xca81ff(0x1e5),[_0x20b18f,_0x1dec0f(_0x1a6fb5)]);}[_0x5cb9c0(0x205)](_0x2b8e45,_0x127914,_0x13baa9=[]){const _0x5c7144=_0x5cb9c0;if(!_0x127914||typeof _0x127914!==_0x5c7144(0x788))return;for(const _0x375e84 of Object[_0x5c7144(0x6e4)](_0x127914)){if(!_0x519d79['has'](_0x375e84)&&!_0x13baa9['includes'](_0x375e84))throw new _0x1af737(_0x2b8e45+_0x5c7144(0x72a)+_0x375e84+'\x27','UNKNOWN_RANGE_OPTION',{'option':_0x375e84});}}[_0x5cb9c0(0x21d)](_0x174e5e,_0x295acb,_0x1da74d,_0x6ec121,_0x13e62c,_0x4e135d){const _0x312ae1=_0x5cb9c0;this[_0x312ae1(0x205)](_0x174e5e,_0x6ec121);const _0x2555ea=_0x6ec121?.[_0x312ae1(0x3e3)],_0x126000=_0x1dec0f(_0x6ec121);if(_0x2555ea===!![]||_0x2555ea===_0x312ae1(0x577)){const _0x296df9=this['_lazyPinned'](_0x174e5e,_0x295acb,_0x4d47b2=>[_0x1da74d,{..._0x126000,..._0x4d47b2}],_0x6ec121);return _0x4e135d?_0x296df9[_0x312ae1(0x78f)](_0x4e135d):_0x296df9;}const _0x555ba6=_0x175463(_0x2e82a4=>this[_0x312ae1(0x79e)](_0x295acb,[_0x1da74d,_0x2e82a4]),_0x126000,_0x13e62c,{'rows':_0x295acb===_0x312ae1(0x3bd)});return _0x4e135d?_0x555ba6['map'](_0x4e135d):_0x555ba6;}[_0x5cb9c0(0x13d)](_0x46c29e,_0x2d1cc7,_0x414f89,_0x1fbb8b,_0xfb227c,_0x558ac0=![]){const _0xb3040a=_0x5cb9c0,{source:_0x2fd2f0,prefetch:_0x207dbc}=_0x37b308((_0x38e9d7,_0x56ff13)=>_0x38e9d7==='unpin'?this['_n'](_0x38e9d7,_0x56ff13):this[_0xb3040a(0x79e)](_0x38e9d7,_0x56ff13),_0x2d1cc7,_0x414f89,_0x1fbb8b||{},_0xfb227c),_0x1534b5=_0x207dbc(),_0x437fce=!_0x558ac0&&_0x1fbb8b&&_0x1fbb8b[_0xb3040a(0x3e3)]===_0xb3040a(0x577);let _0x5d4760=null;return _0x30398b(()=>({[Symbol[_0xb3040a(0x3f3)]]:()=>_0x5d4760=_0x2fd2f0(0x0,_0x5322c5(_0x1534b5))}),{'label':this['name']+':'+_0x46c29e,..._0x437fce?{'getTxnId':()=>this['db'][_0xb3040a(0x1ad)]()[_0xb3040a(0x59b)],'resume':()=>({[Symbol[_0xb3040a(0x3f3)]]:()=>_0x5d4760=_0x5d4760[_0xb3040a(0x5c4)]()})}:{}});}['getRange'](_0x4e9cd6,_0x41c17e){const _0x86bf7a=_0x5cb9c0;return this[_0x86bf7a(0x21d)]('getRange',_0x86bf7a(0x3bd),_0x4e9cd6,_0x41c17e,_0x4d0cd4=>_0x4d0cd4[_0x86bf7a(0x69e)]);}['getKeys'](_0x2a6c0f,_0x22ccf4){const _0x4ce3e2=_0x5cb9c0;return this['_range'](_0x4ce3e2(0x42e),_0x4ce3e2(0x42e),_0x2a6c0f,_0x22ccf4,_0x5a6413=>_0x5a6413);}[_0x5cb9c0(0x735)](_0x105bfb,_0xaff161){const _0x250d0b=_0x5cb9c0;return this['_range'](_0x250d0b(0x735),_0x250d0b(0x3bd),_0x105bfb,_0xaff161,_0x4be64e=>_0x4be64e[_0x250d0b(0x69e)],_0x1a09f7=>_0x1a09f7[_0x250d0b(0x1d0)]);}[_0x5cb9c0(0x587)](_0x1bf6d9,_0x3213c2,_0x445634={}){return this['getRange'](_0x1bf6d9,{'start':_0x3213c2,'end':_0x3213c2+'￿',..._0x445634});}[_0x5cb9c0(0x107)](_0x44b3cc,_0x344e17,_0x39e2c1={}){const _0x4e752d=_0x5cb9c0;this['_assertRangeOptions'](_0x4e752d(0x107),_0x39e2c1,['prefix']);const _0x1ae94d=_0x1dec0f(_0x39e2c1);if(_0x39e2c1&&_0x39e2c1[_0x4e752d(0x6be)])return _0x41956b(this['_n'](_0x4e752d(0x107),[_0x44b3cc,_0x344e17,_0x1ae94d]));return this[_0x4e752d(0x13d)](_0x4e752d(0x107),_0x4e752d(0x107),_0x39d39d=>[_0x44b3cc,_0x344e17,{..._0x1ae94d,..._0x39d39d}],_0x39e2c1,undefined,!![]);}[_0x5cb9c0(0x26a)](_0x54ab49,_0x2dd856,_0xdc4d41){const _0x27b4e1=_0x5cb9c0;this[_0x27b4e1(0x205)]('byIndex',_0xdc4d41,[_0x27b4e1(0x65e),_0x27b4e1(0x47b)]);const _0x58a82e=_0x1dec0f(_0xdc4d41);if(_0xdc4d41&&_0xdc4d41[_0x27b4e1(0x6be)])return _0x41956b(this['_n'](_0x27b4e1(0x26a),[_0x54ab49,_0x2dd856,_0x58a82e]));return this['_lazyPinned']('byIndex','byIndex',_0x3ac289=>[_0x54ab49,_0x2dd856,{..._0x58a82e,..._0x3ac289}],_0xdc4d41,undefined,!![]);}['countByIndex'](_0x16c967,_0xb4767f,_0x4c7b55={}){const _0x34fbcf=_0x5cb9c0;return this['_n'](_0x34fbcf(0x3d8),[_0x16c967,_0xb4767f,_0x1dec0f(_0x4c7b55)]);}[_0x5cb9c0(0x35a)](_0x2db1c9,_0x49cc89={},_0x2e81a9={}){const _0x401054=_0x5cb9c0,_0x2a381d=_0x4162c8(_0x2e81a9);if(_0x2e81a9){for(const _0x212e9e of Object[_0x401054(0x6e4)](_0x2e81a9))if(_0x212e9e!==_0x401054(0x12a)&&typeof _0x2e81a9[_0x212e9e]===_0x401054(0x656))_0x2a381d[_0x212e9e]=null;}if(_0x2e81a9&&(_0x2e81a9[_0x401054(0x131)]||_0x2e81a9[_0x401054(0x2f9)]))return this['_n'](_0x401054(0x35c),[_0x2a381d]),this['_hybridQuery'](_0x2db1c9,_0x49cc89,_0x2e81a9);const _0x5b8af9=typeof _0x2e81a9['select']==='function'?_0x2e81a9[_0x401054(0x12a)]:null;if(_0x2e81a9[_0x401054(0x369)]||_0x23e7de(_0x49cc89)||_0x2e81a9[_0x401054(0x6be)]!==undefined){let _0x5be989=this['_n'](_0x401054(0x35a),[_0x2db1c9,_0x49cc89,_0x2a381d]);if(_0x5b8af9)_0x5be989=_0x5be989[_0x401054(0x78f)](_0x5b8af9);if(_0x2e81a9[_0x401054(0x369)]||_0x23e7de(_0x49cc89))return _0x5be989;return _0x41956b(_0x5be989);}const _0x437f30=_0x10d449=>typeof _0x10d449==='number'&&Number[_0x401054(0x61c)](_0x10d449)?Math[_0x401054(0x57c)](0x0,_0x10d449):Infinity;let _0x454757;if(_0x2e81a9[_0x401054(0x6ec)]){const _0x5df4e4=_0x597410=>typeof _0x597410===_0x401054(0x1f1)&&_0x597410>0x0?Math[_0x401054(0xfd)](_0x597410):0x0;_0x454757=this['_lazyPinned'](_0x401054(0x35a),'query',_0x1bd649=>[_0x2db1c9,_0x49cc89,{..._0x2a381d,..._0x1bd649}],null,{'limitOf':()=>_0x437f30(_0x2a381d[_0x401054(0x5d2)]),'offsetOf':()=>_0x5df4e4(_0x2a381d[_0x401054(0x159)])});}else _0x454757=_0x175463(_0x2d95f4=>{const _0x38fc9f=_0x401054,{__after:_0x1d6fa9,..._0x12f174}=_0x2d95f4;return this[_0x38fc9f(0x79e)](_0x38fc9f(0x35a),_0x1d6fa9===undefined?[_0x2db1c9,_0x49cc89,_0x12f174]:[_0x2db1c9,_0x49cc89,_0x12f174,_0x1d6fa9]);},_0x2a381d,_0x236b7f=>_0x236b7f['key'],{'limitOf':_0x437f30,'rows':!![],'prefetch':!![],'resumeOpts':(_0xa13f41,_0x2d1f58)=>{const _0x2e6f72=_0x401054;_0xa13f41['offset']=0x0,_0xa13f41[_0x2e6f72(0x537)]=_0x2d1f58;}});return _0x5b8af9?_0x454757['map'](_0x5b8af9):_0x454757;}async['_hybridQuery'](_0x535093,_0x289895,_0x52b1c7){const _0x1ea148=_0x5cb9c0,{select:_0x5883e5,..._0x1da24c}=_0x4162c8(_0x52b1c7);let _0x353091={..._0x1da24c};const _0x32a046=_0x353091['index'];if(_0x32a046&&!Array['isArray'](_0x32a046)&&typeof _0x32a046===_0x1ea148(0x788)&&_0x32a046[_0x1ea148(0x338)]){const {fields:_0x57622e,prefix:_0x3044e1,start:_0xe1a17f,end:_0x2e0412}=_0x32a046;_0x353091={..._0x353091,'index':_0x57622e,'prefix':_0x3044e1??_0x353091['prefix'],'startIndex':_0xe1a17f??_0x353091[_0x1ea148(0x6a3)],'endIndex':_0x2e0412??_0x353091[_0x1ea148(0x4e5)]};}const _0x1dcfca=await this[_0x1ea148(0x538)][_0x1ea148(0x687)](_0x1ea148(0x737),null,_0x1ea148(0x5c9),[this[_0x1ea148(0x5d1)],_0x535093,_0x289895,_0x353091],![]),_0x3195dc=typeof _0x52b1c7[_0x1ea148(0x12a)]===_0x1ea148(0x656)?_0x52b1c7[_0x1ea148(0x12a)]:null;if(!_0x3195dc)return _0x1dcfca;return _0x1dcfca['map'](_0x1d418e=>{const _0x3998b3=_0x1ea148,{score:_0x23343a,ftsScore:_0x2d1369,numTerms:_0x2749b5,maxScore:_0x29eb36,vectorScore:_0x5605b7,chunkHash:_0x5582af,chunk:_0x4a26ef,..._0x3786b0}=_0x1d418e,_0x179975=_0x3195dc(_0x3786b0);for(const [_0x4dd577,_0x3a775b]of Object[_0x3998b3(0x67c)]({'score':_0x23343a,'ftsScore':_0x2d1369,'numTerms':_0x2749b5,'maxScore':_0x29eb36,'vectorScore':_0x5605b7,'chunkHash':_0x5582af,'chunk':_0x4a26ef}))if(_0x3a775b!==undefined)_0x179975[_0x4dd577]=_0x3a775b;return _0x179975;});}[_0x5cb9c0(0x5f3)](_0x2265e7,_0x92af3f,_0x26b234={}){const _0x5d2742=_0x5cb9c0;let _0x22e83d=this['_n']('geoQuery',[_0x2265e7,_0x92af3f,_0x4162c8(_0x26b234)]);if(typeof _0x26b234[_0x5d2742(0x12a)]===_0x5d2742(0x656))_0x22e83d=_0x22e83d[_0x5d2742(0x78f)](_0x26b234[_0x5d2742(0x12a)]);return _0x22e83d;}[_0x5cb9c0(0x393)](_0x52561b=null,_0x2bee9b={}){return this['_n']('getClock',[_0x52561b]);}[_0x5cb9c0(0x76b)](_0x4b19dd=null,_0x2e5618=0x0,_0x6c1a4f=Number['MAX_SAFE_INTEGER'],_0x12ab57={}){const _0x3a4949=_0x5cb9c0,_0x3b2bc5=_0x1dec0f(_0x12ab57);if(_0x12ab57&&_0x12ab57[_0x3a4949(0x6be)])return _0x41956b(this['_n'](_0x3a4949(0x76b),[_0x4b19dd,_0x2e5618,_0x6c1a4f,_0x3b2bc5]));return this[_0x3a4949(0x13d)](_0x3a4949(0x76b),_0x3a4949(0x76b),_0x4a35e7=>[_0x4b19dd,_0x2e5618,_0x6c1a4f,{..._0x3b2bc5,..._0x4a35e7}],_0x12ab57);}[_0x5cb9c0(0x432)](_0xb66020){const _0x21bb1a=_0x5cb9c0;if(Array[_0x21bb1a(0x796)](_0xb66020))return _0xb66020[_0x21bb1a(0x42c)];let _0x18c1f1=0x0;for(const _0x425f9d of _0xb66020)_0x18c1f1++;return _0x18c1f1;}*[_0x5cb9c0(0x2a3)](_0x254390){yield*_0x254390;}[_0x5cb9c0(0xcc)](){const _0x2c2325=_0x5cb9c0;return requireOkdbHlc()[_0x2c2325(0x284)](this[_0x2c2325(0x25b)]);}get[_0x5cb9c0(0x700)](){const _0x52dc6f=_0x5cb9c0,_0x351c65=this[_0x52dc6f(0x538)]['_isOpen']?this[_0x52dc6f(0x538)]['_call']('db',null,_0x52dc6f(0x37a),[this[_0x52dc6f(0x5d1)]],![]):null;if(!_0x351c65)return null;if(this[_0x52dc6f(0x78c)]===_0x351c65[_0x52dc6f(0x3c3)])return null;this[_0x52dc6f(0xac)]=this[_0x52dc6f(0xac)]||new Map();let _0x1a54b0=this[_0x52dc6f(0xac)][_0x52dc6f(0x73e)](_0x351c65[_0x52dc6f(0x3c3)]);if(!_0x1a54b0){const _0x28f29b=this;_0x1a54b0={'ref'(){},'unref'(){},'hasRef':()=>![],'gen':_0x351c65[_0x52dc6f(0x3c3)],'at':_0x351c65['at'],'target':_0x351c65[_0x52dc6f(0x3c5)],get '_destroyed'(){const _0x59a021=_0x52dc6f,_0x3aa376=_0x28f29b[_0x59a021(0x538)][_0x59a021(0x56b)]?_0x28f29b[_0x59a021(0x538)][_0x59a021(0x11e)]('db',null,'ttlTimer',[_0x28f29b[_0x59a021(0x5d1)]],![]):null;return!_0x3aa376||_0x3aa376[_0x59a021(0x3c3)]!==this[_0x59a021(0x3c3)]||_0x28f29b['__ttlCancelledGen']===this[_0x59a021(0x3c3)];}},this['_timerObjs'][_0x52dc6f(0x721)](_0x351c65[_0x52dc6f(0x3c3)],_0x1a54b0);}return _0x1a54b0;}['_cancelTTLTimeout'](){const _0x4d5864=_0x5cb9c0,_0x43cf43=this[_0x4d5864(0x538)][_0x4d5864(0x11e)]('db',null,'ttlTimer',[this[_0x4d5864(0x5d1)]],![]);if(_0x43cf43)this[_0x4d5864(0x78c)]=_0x43cf43[_0x4d5864(0x3c3)];}get['_ttlTimerAt'](){const _0x4c7f75=_0x5cb9c0,_0x59acc5=this['okdb'][_0x4c7f75(0x11e)]('db',null,_0x4c7f75(0x37a),[this['name']],![]);return _0x59acc5?_0x59acc5[_0x4c7f75(0x3c5)]:null;}get['_autoCompactTimer'](){const _0x766198=_0x5cb9c0;return this[_0x766198(0x538)][_0x766198(0x11e)]('db',null,'autoCompactTimerArmed',[this['name']],![])?{'ref'(){},'unref'(){}}:null;}[_0x5cb9c0(0x401)](){const _0x5c56ee=_0x5cb9c0;this[_0x5c56ee(0x538)][_0x5c56ee(0x11e)]('db',null,'startAutoCompactCheck',[this['name']],![]);}[_0x5cb9c0(0xbf)](){this['okdb']['_call']('db',null,'stopAutoCompactCheck',[this['name']],![]);}get[_0x5cb9c0(0x1ca)](){const _0x21a22a=_0x5cb9c0,_0x10f15d=(_0x342439,_0x244c1b)=>this[_0x21a22a(0x538)][_0x21a22a(0x11e)]('db',null,_0x342439,[this[_0x21a22a(0x5d1)],..._0x244c1b],![]),_0x388811=Object[_0x21a22a(0x6e4)](_0x10f15d(_0x21a22a(0x4c5),[])||{}),_0x4d2011={};for(const _0x54da7c of _0x388811)Object['defineProperty'](_0x4d2011,_0x54da7c,{'enumerable':!![],'get':()=>_0x10f15d(_0x21a22a(0x4c5),[])?.[_0x54da7c],'set':_0x26048a=>{_0x10f15d('setAutoCompact',[_0x54da7c,_0x26048a]);}});return _0x4d2011;}get[_0x5cb9c0(0x25b)](){const _0x9ee03d=_0x5cb9c0;return this['_n'](_0x9ee03d(0x661),[]);}[_0x5cb9c0(0x770)](_0xd24aa7,_0xb1455a){return require$$16['isDeepStrictEqual'](_0xd24aa7,_0xb1455a);}async['registerType'](_0x4d367b,_0x113075){const _0x4f537e=_0x5cb9c0;return this[_0x4f537e(0x1ce)](this['_n']('registerType',[_0x4d367b]));}[_0x5cb9c0(0x19a)](_0x5450da){const _0x296350=_0x5cb9c0;return this['_n'](_0x296350(0x19a),[_0x5450da]);}[_0x5cb9c0(0x6c1)](){const _0x4b3bef=_0x5cb9c0;return this['_n'](_0x4b3bef(0x6c1),[]);}async[_0x5cb9c0(0x5f0)](_0x22ccc7,_0x3c5285){return this['_wsettle'](this['_n']('dropType',[_0x22ccc7]));}async[_0x5cb9c0(0x4af)](_0x56e1fe,_0x5389cd){const _0x7300c=_0x5cb9c0,{timestamp:_0x157e91,indexes:indexes=[]}=_0x499654(_0x5389cd);return this['_wsettle'](this['_n'](_0x7300c(0x4af),[_0x56e1fe,{'indexes':indexes}]));}async['ensure'](_0x1d39d8){const _0x2f412d=_0x5cb9c0,{type:_0xed807d,indexes:indexes=[],fts:fts=[],views:views=[],schema:schema=null}=_0x499654(_0x1d39d8,_0x2f412d(0x34f));if(!_0xed807d)throw new Error(_0x2f412d(0x28b));await this[_0x2f412d(0x4af)](_0xed807d,{'indexes':indexes});for(const _0x1e09b8 of fts){const {name:_0x449df9,fields:_0x13c61e,..._0x21688c}=_0x1e09b8;if(!_0x449df9||!_0x13c61e)throw new Error(_0x2f412d(0x1ec));await this[_0x2f412d(0x538)]['fts'][_0x2f412d(0x5c8)](_0xed807d,_0x449df9,{'fields':_0x13c61e,..._0x21688c},this);}for(const _0x402e2e of views){const {name:_0x1db1d4,definition:_0x2b1ab7}=_0x402e2e;if(!_0x1db1d4||!_0x2b1ab7)throw new Error(_0x2f412d(0x38f));if(!await this[_0x2f412d(0x553)][_0x2f412d(0x592)](_0x1db1d4))await this[_0x2f412d(0x553)][_0x2f412d(0x53b)](_0x1db1d4,_0x2b1ab7);}if(schema)await this[_0x2f412d(0x316)](_0xed807d,schema);}async[_0x5cb9c0(0x1fc)](_0x15e32b,_0x106989,_0x3cee65){const _0x3d121d=_0x5cb9c0,_0x2505f5=this['_n'](_0x3d121d(0x7c3),[_0x15e32b,_0x106989,typeof _0x3cee65===_0x3d121d(0x788)?_0x3cee65:{}]);if(!_0x2505f5)return this[_0x3d121d(0x1ce)](undefined);const _0x5df1d9=this['_n'](_0x3d121d(0x22d),[_0x15e32b,_0x106989,!![]]);if(_0x5df1d9===undefined)return this['_wsettle'](undefined);return this['_wsettle'](await this['_indexBuild'](_0x15e32b,_0x106989,_0x5df1d9));}async[_0x5cb9c0(0x454)](_0x561c68,_0x13ca11,_0x4dae15){const _0x1de5de=_0x5cb9c0,_0x27da8b=_0x561c68+'@'+[][_0x1de5de(0x543)](_0x13ca11)[_0x1de5de(0x43a)]('~');if(!this['_indexBuilds'])this[_0x1de5de(0x6cc)]=new Map();const _0x466c83=this['_indexBuilds']['get'](_0x27da8b);if(_0x466c83)return _0x466c83;const _0xc72512=((async()=>{do await new Promise(_0x461d05=>setImmediate(_0x461d05));while(!this['_n']('resetIndexFinish',[_0x561c68,_0x13ca11,_0x4dae15,!![]]));})());this['_indexBuilds'][_0x1de5de(0x721)](_0x27da8b,_0xc72512);try{return await _0xc72512;}finally{this['_indexBuilds'][_0x1de5de(0x62a)](_0x27da8b);}}async[_0x5cb9c0(0x3bf)](_0x28b428,_0x5ad70e,_0x122721){const _0xc01305=_0x5cb9c0;return this[_0xc01305(0x1ce)](this['_n'](_0xc01305(0x3bf),[_0x28b428,_0x5ad70e]));}async[_0x5cb9c0(0x646)](_0x2db0c7,_0x118b06,_0x24f760){const _0x319848=_0x5cb9c0,_0x43b93a=this[_0x319848(0x6cc)]&&this[_0x319848(0x6cc)][_0x319848(0x73e)](_0x2db0c7+'@'+[][_0x319848(0x543)](_0x118b06)['join']('~'));if(_0x43b93a)return _0x43b93a;const _0x5ec131=this['_n']('resetIndexBegin',[_0x2db0c7,_0x118b06,_0x24f760]);if(_0x5ec131===undefined)return;return await new Promise(_0x2f13d6=>setImmediate(_0x2f13d6)),this[_0x319848(0x1ce)](await this[_0x319848(0x454)](_0x2db0c7,_0x118b06,_0x5ec131));}[_0x5cb9c0(0x2ef)](_0x42a295,_0x5cf5a1){const _0x22aabe=_0x5cb9c0;return this['_n'](_0x22aabe(0x2ef),[_0x42a295,_0x5cf5a1]);}['getIndexStatus'](_0xd3d93f,_0x3933ba){const _0x5e02db=_0x5cb9c0;return this['_n'](_0x5e02db(0x2c5),[_0xd3d93f,_0x3933ba]);}async[_0x5cb9c0(0x3a8)](_0x4cef33,_0x41c603){const _0x8cee54=_0x5cb9c0;if(this['_n'](_0x8cee54(0x2c5),[_0x4cef33,_0x41c603])===_0x8cee54(0x298))return!![];let _0x4bee57=0xa;for(;;){await new Promise(_0x1bdcd0=>setTimeout(_0x1bdcd0,_0x4bee57));if(!this[_0x8cee54(0x538)][_0x8cee54(0x56b)]||this[_0x8cee54(0x279)])return![];let _0x2f38ca;try{_0x2f38ca=this['_n'](_0x8cee54(0x28c),[_0x4cef33,Array[_0x8cee54(0x796)](_0x41c603)?_0x41c603[_0x8cee54(0x43a)]('~'):String(_0x41c603)[_0x8cee54(0x2c4)](',')[_0x8cee54(0x43a)]('~')]);}catch{return![];}const _0x59a083=_0x2f38ca&&_0x2f38ca[_0x8cee54(0x422)];if(_0x59a083===_0x8cee54(0x298))return!![];if(_0x59a083===undefined)return![];_0x4bee57=Math[_0x8cee54(0x492)](_0x4bee57*0x2,0xfa);}}['getIndexMeta'](_0x2cc1de,_0x7112de){const _0x59bcc1=_0x5cb9c0;return this['_n'](_0x59bcc1(0x28c),[_0x2cc1de,_0x7112de])??null;}[_0x5cb9c0(0x680)](_0x1e0f4e,_0x2cdbb9){return this['_n']('getUniqueViolations',[_0x1e0f4e,_0x2cdbb9]);}['hasUniqueViolations'](_0x31ae3d,_0x4ed79a){const _0x496bd6=_0x5cb9c0;return this['_n'](_0x496bd6(0x729),[_0x31ae3d,_0x4ed79a]);}['getUniqueViolation'](_0x55b014,_0x4b7724,_0x174aa8){const _0x26173f=_0x5cb9c0;return this['_n'](_0x26173f(0x5f2),[_0x55b014,_0x4b7724,_0x174aa8])??null;}[_0x5cb9c0(0x671)](_0x44db9a){const _0x198b36=_0x5cb9c0;return this['_n'](_0x198b36(0x671),[_0x44db9a])??null;}async['setSchema'](_0x57bb85,_0x20a878){return this['_wsettle'](this['_n']('setSchema',[_0x57bb85,_0x20a878]));}async[_0x5cb9c0(0x152)](_0x5b9a20){const _0x2f94b7=_0x5cb9c0;return this[_0x2f94b7(0x1ce)](this['_n'](_0x2f94b7(0x152),[_0x5b9a20]));}['getViolation'](_0x32cd5f,_0x28fd27){return this['_n']('getViolation',[_0x32cd5f,_0x28fd27])??null;}[_0x5cb9c0(0x19c)](_0x4ae007){const _0x33b767=_0x5cb9c0;return this['_n'](_0x33b767(0x19c),[_0x4ae007]);}[_0x5cb9c0(0x4fc)](_0x31e4b4,_0x1b5bdd,_0xf1f622){const _0x35a550=_0x5cb9c0;return this['_n'](_0x35a550(0x4fc),[_0x31e4b4,_0x1b5bdd,_0xf1f622])??null;}[_0x5cb9c0(0x7cc)](_0x17ef5a){return this['_n']('listRefViolations',[_0x17ef5a]);}async[_0x5cb9c0(0x2ba)](_0x30734f,_0x937ec7,_0x4c764b){const _0x1e5762=_0x5cb9c0;return this[_0x1e5762(0x1ce)](this['_n'](_0x1e5762(0x2ba),[_0x30734f,_0x937ec7,_0x4c764b]));}[_0x5cb9c0(0x57f)](_0x328841,_0x44246b){const _0x3d7de1=_0x5cb9c0;return this['_n'](_0x3d7de1(0x57f),[_0x328841,_0x44246b]);}async[_0x5cb9c0(0x1a4)](_0x12f39d,_0xafae06){const _0x1c6418=_0x5cb9c0;return this['_wsettle'](this['_n'](_0x1c6418(0x1a4),[_0x12f39d,_0xafae06]));}async[_0x5cb9c0(0x1ae)](_0x18ae38){const _0x69cabd=_0x5cb9c0;return this['_n'](_0x69cabd(0x1ae),[_0x18ae38]);}[_0x5cb9c0(0x321)](_0x23ac51={}){const _0x344077=_0x5cb9c0;return this['_n'](_0x344077(0x321),[_0x23ac51]);}[_0x5cb9c0(0x5ea)](_0x4c1e3a){const _0x52fb36=_0x5cb9c0;return this['_n'](_0x52fb36(0x5ea),[_0x4c1e3a]);}async['setDefaultTTL'](_0x54b6ff,_0x479b94){const _0x13d7eb=_0x5cb9c0;return this['_wsettle'](this['_n'](_0x13d7eb(0x66d),[_0x54b6ff,_0x479b94]));}[_0x5cb9c0(0x264)](_0x84a00b){const _0x29c775=_0x5cb9c0;return this['_n'](_0x29c775(0x264),[_0x84a00b]);}async[_0x5cb9c0(0x363)](_0x1b577c){const _0xaf0976=_0x5cb9c0;return this[_0xaf0976(0x1ce)](this['_n'](_0xaf0976(0x363),[_0x1b577c]));}async[_0x5cb9c0(0x54a)](_0xb96d7f,_0x4a3667,_0xdab22b,_0xcac2b3){const _0x3df8a7=_0x5cb9c0,{batch:batch=null,batchSize:_0x1fcb98}=_0x499654(_0xcac2b3);if(typeof _0xb96d7f!==_0x3df8a7(0x48c)||!_0xb96d7f)throw new _0x1af737(_0x3df8a7(0x563),_0x3df8a7(0x6db));if(typeof _0x4a3667!==_0x3df8a7(0x48c)||!_0x4a3667)throw new _0x1af737(_0x3df8a7(0x3b5),'BAD_PARAM');if(_0xdab22b!=null&&typeof _0xdab22b!==_0x3df8a7(0x656))throw new _0x1af737('resolveField:\x20resolver\x20must\x20be\x20a\x20function',_0x3df8a7(0x6db));if(batch!=null&&typeof batch!==_0x3df8a7(0x656))throw new _0x1af737(_0x3df8a7(0x71d),_0x3df8a7(0x6db));if(!_0xdab22b&&!batch)throw new _0x1af737(_0x3df8a7(0x230),_0x3df8a7(0x6db));if(_0x1fcb98!==undefined&&!(Number[_0x3df8a7(0x61c)](_0x1fcb98)&&_0x1fcb98>0x0))throw new _0x1af737(_0x3df8a7(0x10c),'BAD_PARAM');const _0x193d0e=batch?async _0x4c6cb4=>(await batch(_0x4c6cb4))['map'](_0x4fbd93=>_0x4fbd93 instanceof Error?{'__error':!![],'message':_0x4fbd93[_0x3df8a7(0x3f1)]}:_0x4fbd93):null,_0x1848a8=_0x3d105c(this,_0xb96d7f,_0x4a3667),_0x3866f4=this['_n'](_0x3df8a7(0x54a),[_0xb96d7f,_0x4a3667,_0xdab22b?(_0x5137ba,_0x2338ed)=>_0x1848a8(_0xdab22b,[_0x5137ba,_0x2338ed]):null,{'batch':_0x193d0e?_0xbaaedf=>_0x1848a8(_0x193d0e,[_0xbaaedf]):null,'batchSize':_0x1fcb98}]);return()=>this['_n'](_0x3df8a7(0x2cc),[_0x3866f4]);}async[_0x5cb9c0(0x36d)](_0x4d5a47,_0x54717b){const _0x49a473=_0x5cb9c0;return this['_n'](_0x49a473(0x36d),[_0x4d5a47,_0x54717b]);}[_0x5cb9c0(0x739)](_0x8297ea){const _0x277fbc=_0x5cb9c0;return this['_n'](_0x277fbc(0x739),[_0x8297ea]);}async[_0x5cb9c0(0x361)](_0x560302,_0x4df022,_0x5bb560,_0x40e836){const _0x78395b=_0x5cb9c0;return this[_0x78395b(0x538)][_0x78395b(0x687)](_0x78395b(0x114),this[_0x78395b(0x5d1)],_0x78395b(0x361),[_0x560302,_0x4df022,_0x5bb560,_0x40e836],![]);}async[_0x5cb9c0(0x340)](_0x5c17,_0x4a4bd3,_0x177ab1){const _0x579c08=_0x5cb9c0;return this[_0x579c08(0x538)][_0x579c08(0x687)](_0x579c08(0x114),this['name'],_0x579c08(0x340),[_0x5c17,_0x4a4bd3,_0x177ab1],![]);}[_0x5cb9c0(0x29b)](){}[_0x5cb9c0(0x12b)](_0x145c17,_0x3aeb7b,_0x68cd17,_0x4a822c={},_0x10209a={}){const _0x4bc055=_0x5cb9c0;return this[_0x4bc055(0x538)][_0x4bc055(0x11e)](_0x4bc055(0x131),null,_0x4bc055(0x12b),[_0x145c17,_0x3aeb7b,_0x68cd17,_0x4a822c,_0x10209a,this[_0x4bc055(0x5d1)]],![]);}get[_0x5cb9c0(0x131)](){const _0x2e15dc=_0x5cb9c0;return this['okdb'][_0x2e15dc(0x131)];}[_0x5cb9c0(0x59f)](){const _0x518d4c=_0x5cb9c0;return this[_0x518d4c(0x538)][_0x518d4c(0x11e)]('env',this[_0x518d4c(0x5d1)],_0x518d4c(0x59f),[],![]);}[_0x5cb9c0(0x201)](){const _0x541145=_0x5cb9c0;return this['okdb'][_0x541145(0x201)]();}['writerStatus'](){const _0x28df13=_0x5cb9c0;return this[_0x28df13(0x538)]['_call'](_0x28df13(0x114),this[_0x28df13(0x5d1)],_0x28df13(0x415),[],![]);}['refreshReadTxn'](){}get[_0x5cb9c0(0x6e5)](){const _0xd696a=_0x5cb9c0;return this[_0xd696a(0x75b)]||(this[_0xd696a(0x75b)]=new(requireLock())[(_0xd696a(0x18e))](this[_0xd696a(0x538)],this[_0xd696a(0x5d1)],_0xd696a(0x114)));}[_0x5cb9c0(0x446)](){const _0x53eeee=_0x5cb9c0;return this[_0x53eeee(0x538)][_0x53eeee(0x11e)](_0x53eeee(0x114),this[_0x53eeee(0x5d1)],_0x53eeee(0x446),[],![]);}[_0x5cb9c0(0x6aa)](_0x157407){const _0x536cb2=_0x5cb9c0;this['_n'](_0x536cb2(0x7d1),[_0x157407]);}[_0x5cb9c0(0x631)](_0x4c492b){const _0x10f6d4=_0x5cb9c0;this['_n'](_0x10f6d4(0x54e),[_0x4c492b]);}[_0x5cb9c0(0x294)](){return this['_n']('ttlState',[]);}[_0x5cb9c0(0x562)](_0x309004,_0x51c577){return _0x309004+'\x09'+_0x51c577;}['_ttlParseComposite'](_0x2add6b){const _0x4caa76=_0x5cb9c0,_0x2c9d21=_0x2add6b[_0x4caa76(0x43c)]('\x09');return{'type':_0x2add6b['slice'](0x0,_0x2c9d21),'key':_0x2add6b[_0x4caa76(0x49d)](_0x2c9d21+0x1)};}get[_0x5cb9c0(0x775)](){const _0x179b35=_0x5cb9c0;if(!this[_0x179b35(0x294)]()[_0x179b35(0x2f6)])return null;return this['__ttlByKey']||(this[_0x179b35(0x339)]=new _0x56dacb(this,_0x179b35(0x677)));}get['_ttlByExpiry'](){const _0x2e37b8=_0x5cb9c0;if(!this['_ttlState']()[_0x2e37b8(0x2f6)])return null;return this[_0x2e37b8(0x3d5)]||(this[_0x2e37b8(0x3d5)]=new _0x56dacb(this,_0x2e37b8(0x5ac),{'dupSort':!![]}));}['_setTTLEntry'](_0x5ae158,_0x278fde,_0x10d41f){this['_n']('ttlSetEntry',[_0x5ae158,_0x278fde,_0x10d41f]);}[_0x5cb9c0(0x69d)](_0x59f281,_0x4d5e7c){const _0x29f4a2=_0x5cb9c0,_0x9e97ac=this[_0x29f4a2(0x775)]?.[_0x29f4a2(0x73e)](this[_0x29f4a2(0x562)](_0x59f281,_0x4d5e7c));return _0x9e97ac!=null&&_0x9e97ac<=Date[_0x29f4a2(0xcc)]();}get[_0x5cb9c0(0x14b)](){const _0x2f7c9d=_0x5cb9c0;return this['_ttlState']()[_0x2f7c9d(0x5d8)]??null;}get[_0x5cb9c0(0x5b0)](){return this['_ttlState']()['backoffUntil']||0x0;}get[_0x5cb9c0(0x1b1)](){return![];}['_scheduleTTLSweep'](){}async['_rebuild'](_0x4dd090,_0x58e567){const _0x521679=_0x5cb9c0;if(this[_0x521679(0x6fd)]){const {OKDBError:_0x36ae07}=requireErrors();throw new _0x36ae07(_0x521679(0x4fe),_0x521679(0x50e));}this[_0x521679(0x6fd)]=!![];try{return await this[_0x521679(0x538)][_0x521679(0x687)]('env',this['name'],_0x4dd090,[_0x58e567],!![]);}finally{this[_0x521679(0x6fd)]=![];}}async[_0x5cb9c0(0x6b7)](_0x318040={}){const _0x20beae=_0x5cb9c0;return this[_0x20beae(0x4c3)](_0x20beae(0x6b7),_0x318040);}async[_0x5cb9c0(0x6cf)](_0x30b26d={}){const _0xb45fd2=_0x5cb9c0;return this[_0xb45fd2(0x4c3)](_0xb45fd2(0x6cf),_0x30b26d);}}_0x1fd00b[_0x5cb9c0(0x10b)]=_0x1f3b57;function _0x23e7de(_0x34303f){const _0x2ec056=_0x5cb9c0;if(!_0x34303f||typeof _0x34303f!==_0x2ec056(0x788))return![];for(const _0x2fc1a0 of Object[_0x2ec056(0x6e4)](_0x34303f)){const _0x244cdb=_0x34303f[_0x2fc1a0];if(_0x244cdb&&typeof _0x244cdb===_0x2ec056(0x788)&&(_0x244cdb[_0x2ec056(0x1bc)]||_0x244cdb[_0x2ec056(0x40e)]))return!![];}return![];}function _0x1dec0f(_0x17d9d8){const _0x493279=_0x5cb9c0;if(!_0x17d9d8||typeof _0x17d9d8!=='object')return{};const _0x51e6f1={};for(const _0x44d6a9 of Object[_0x493279(0x6e4)](_0x17d9d8)){if(_0x44d6a9==='transaction'||_0x44d6a9===_0x493279(0x3e3))continue;_0x51e6f1[_0x44d6a9]=_0x17d9d8[_0x44d6a9];}return _0x51e6f1;}function _0x4162c8(_0x406e79){const _0x577ea5=_0x5cb9c0;if(!_0x406e79||typeof _0x406e79!==_0x577ea5(0x788))return{};const _0xb6d2fe={};for(const _0x3d9f97 of Object[_0x577ea5(0x6e4)](_0x406e79)){if(typeof _0x406e79[_0x3d9f97]===_0x577ea5(0x656))continue;_0xb6d2fe[_0x3d9f97]=_0x406e79[_0x3d9f97];}return _0xb6d2fe;}return env={'OKDBEnv':_0x1fd00b,'HIGH_SENTINEL':_0x1f3b57},env;}var unsupported,hasRequiredUnsupported;function requireUnsupported(){if(hasRequiredUnsupported)return unsupported;hasRequiredUnsupported=0x1;const {NotImplementedNative:_0x2787ff}=requireErrors();function _0x321381(_0xd8608f){const _0x3a78fc=_0x4a4306=>{throw new _0x2787ff(_0xd8608f,_0x4a4306);};return new Proxy(function(){},{'get'(_0x242d15,_0x245cf6){const _0x2d94f6=_0x5aff;if(typeof _0x245cf6==='symbol'||_0x245cf6===_0x2d94f6(0x447)||_0x245cf6===_0x2d94f6(0x6c4)||_0x245cf6===_0x2d94f6(0xd5))return undefined;if(_0x245cf6===_0x2d94f6(0x7d0))return _0xd8608f;return(..._0x37b30c)=>_0x3a78fc(_0xd8608f+'.'+String(_0x245cf6));},'apply'(){_0x3a78fc(_0xd8608f);},'set'(){return!![];}});}return unsupported={'notImplemented':_0x321381},unsupported;}var http,hasRequiredHttp;function requireHttp(){const _0x182438=_0x2dfd83;if(hasRequiredHttp)return http;hasRequiredHttp=0x1;function _0x10bc3c(_0x524ec2,_0x425e40={}){const _0x305b20=_0x5aff,_0x252363=[];let _0x2b0b1c=![];_0x524ec2[_0x305b20(0x225)]('/*')&&(_0x2b0b1c=!![],_0x524ec2=_0x524ec2['slice'](0x0,-0x2),_0x252363[_0x305b20(0x782)]('*'));let _0x253e66=_0x524ec2[_0x305b20(0x2e5)](/\/+$/,'')['replace'](/\[([^\]]*)\]/g,(_0x3f6e24,_0xacd9f6)=>{const _0x54b149=_0x305b20,_0x27349b=_0xacd9f6[_0x54b149(0x2e5)](/\/:(\w+)(?:=([^/\]\s]*))?/g,(_0x11a597,_0x4a792e)=>{const _0xa2199e=_0x54b149;return _0x252363[_0xa2199e(0x782)](_0x4a792e),'/([^/]+)';});return _0x54b149(0x482)+_0x27349b+')?';})[_0x305b20(0x2e5)](/\/:(\w+)/g,(_0x556783,_0x41ee85)=>{const _0x40374c=_0x305b20;return _0x252363[_0x40374c(0x782)](_0x41ee85),_0x40374c(0x529);});if(_0x253e66==='')_0x253e66='/';return{'keys':_0x252363,'defaults':_0x425e40||{},'wildcard':_0x2b0b1c,'regex':new RegExp('^'+_0x253e66+(_0x2b0b1c?'(?:/(.*))?':'')+_0x305b20(0x428))};}const _0x37ad21=require$$0$3,{PassThrough:_0x4b6edb}=require$$1;function _0x42c4f2(_0x2e8d1f){const _0x3ec3a2=_0x5aff,_0x4ef6ef=_0x2e8d1f['lastIndexOf'](':'),_0x2d3204=_0x2e8d1f[_0x3ec3a2(0x49d)](0x0,_0x4ef6ef)[_0x3ec3a2(0x2e5)](/^\[|\]$/g,'');return{'address':_0x2d3204,'family':_0x2d3204['includes'](':')?'IPv6':'IPv4','port':Number(_0x2e8d1f[_0x3ec3a2(0x49d)](_0x4ef6ef+0x1))};}class _0x4d9bdd extends _0x37ad21['Server']{constructor(_0x40ecb8,_0xbfd4f5){const _0x468114=_0x5aff;super(),this[_0x468114(0x1a3)]=_0x40ecb8,this[_0x468114(0x300)]=_0x42c4f2(_0xbfd4f5),this['listening']=!![],this[_0x468114(0x2b2)]=setInterval(()=>{},0x7fffffff);}get[_0x182438(0x785)](){const _0x479092=_0x182438;return this[_0x479092(0x7c0)];}set[_0x182438(0x785)](_0x522608){const _0x569901=_0x182438;this[_0x569901(0x7c0)]=_0x522608;}['address'](){const _0x370085=_0x182438;return this[_0x370085(0x785)]?{...this[_0x370085(0x300)]}:null;}[_0x182438(0x62b)](){const _0x389f4d=_0x182438;if(this[_0x389f4d(0x2b2)])clearInterval(this[_0x389f4d(0x2b2)]);this[_0x389f4d(0x2b2)]=null;}[_0x182438(0x3f5)](_0x24e582){const _0x3c3665=_0x182438;this[_0x3c3665(0x62b)]();const _0x21e994=this[_0x3c3665(0x1a3)]['close']();if(_0x24e582)_0x21e994['then'](()=>_0x24e582(),_0x24e582);return this;}[_0x182438(0x19b)](){const _0x78eab9=_0x182438;return this[_0x78eab9(0x2b2)]?.['ref'](),this;}['unref'](){const _0x1000e0=_0x182438;return this[_0x1000e0(0x2b2)]?.[_0x1000e0(0x212)](),this;}}class _0xbceab4{constructor(_0x5edf2e){const _0x5efcc4=_0x182438;this['okdb']=_0x5edf2e,this[_0x5efcc4(0x593)]=[],this['auth']={'cookieName':_0x5efcc4(0x684)};}get[_0x182438(0x70c)](){const _0x286420=_0x182438;return this[_0x286420(0x593)][0x0]||null;}['_n'](_0x1cf26f,_0x3a3495=[]){const _0x48870d=_0x182438;return this[_0x48870d(0x538)][_0x48870d(0x687)](_0x48870d(0x679),null,_0x1cf26f,_0x3a3495,!![]);}async[_0x182438(0x6b2)](_0xa670bb,_0x522609,_0x125fa3={},_0x115fd0={}){const _0x2cbf89=_0x182438;let _0x2a163d=await this['_n'](_0x2cbf89(0x6b2),[_0xa670bb,_0x522609,_0x125fa3,_0x115fd0]),_0xe3cdf7=0x0;return _0x2a163d=await this[_0x2cbf89(0x111)](_0x2a163d,_0xe3cdf7),_0x2a163d;}async[_0x182438(0x111)](_0x2bb49b,_0xd931f7){const _0x47d14a=_0x182438;while(_0x2bb49b&&typeof _0x2bb49b===_0x47d14a(0x788)&&_0x2bb49b[_0x47d14a(0x3ae)]!==undefined){await new Promise(_0x37ec3f=>setTimeout(_0x37ec3f,_0xd931f7<0x5?0x1:0x5)),_0xd931f7++,_0x2bb49b=await this['_n'](_0x47d14a(0x4e6),[_0x2bb49b['$pending']]);}if(_0x2bb49b&&_0x2bb49b['body']&&typeof _0x2bb49b[_0x47d14a(0x5fa)]===_0x47d14a(0x788)&&_0x2bb49b[_0x47d14a(0x5fa)][_0x47d14a(0x21f)]!==undefined)_0x2bb49b[_0x47d14a(0x5fa)]=this[_0x47d14a(0x12e)](_0x2bb49b['body'][_0x47d14a(0x21f)]);return _0x2bb49b;}[_0x182438(0x12e)](_0x2d4ea5){const _0x5f0cd3=_0x182438,_0x2c866b=new _0x4b6edb();let _0x150afc=![];const _0x3c87e8=()=>{const _0x110891=_0x5aff;if(_0x150afc)return;_0x150afc=!![],clearTimeout(_0x1a5fa1),setImmediate(()=>this[_0x110891(0x538)][_0x110891(0x56b)]&&this[_0x110891(0x538)][_0x110891(0x11e)]('http',null,_0x110891(0x1ab),[_0x2d4ea5],!![]));};let _0x1a5fa1=null;const _0x439b26=()=>{const _0x54de70=_0x5aff;if(_0x150afc)return;let _0xe43996;try{_0xe43996=this[_0x54de70(0x538)][_0x54de70(0x11e)](_0x54de70(0x679),null,_0x54de70(0x674),[_0x2d4ea5],!![]);}catch{_0xe43996={'chunks':[],'end':!![]};}for(const _0x141a5f of _0xe43996[_0x54de70(0x7bb)])_0x2c866b[_0x54de70(0x5b4)](_0x141a5f);if(_0xe43996[_0x54de70(0x172)]){_0x150afc=!![],_0x2c866b[_0x54de70(0x172)]();return;}_0x1a5fa1=setTimeout(_0x439b26,_0xe43996[_0x54de70(0x7bb)]['length']?0x0:0xa);};_0x2c866b['on'](_0x5f0cd3(0x3f5),_0x3c87e8),_0x439b26();if(!_0x150afc)_0x439b26();if(_0x150afc)_0x2c866b[_0x5f0cd3(0x1cb)]();else{if(!_0x1a5fa1)_0x1a5fa1=setTimeout(_0x439b26,0x0);}return _0x2c866b;}[_0x182438(0x694)](_0x57f855,_0x3a5289,_0x45a91c,_0x16516f={}){const _0x2087ea=_0x182438;return this[_0x2087ea(0x538)][_0x2087ea(0x11e)](_0x2087ea(0x679),null,'add',[_0x57f855,_0x3a5289,_0x45a91c,_0x16516f,![]],!![]),this;}['addRaw'](_0x4b1be6,_0x57bae3,_0x4134ff,_0x3a349a={}){const _0x9024e7=_0x182438;return this['okdb'][_0x9024e7(0x11e)]('http',null,'add',[_0x4b1be6,_0x57bae3,_0x4134ff,_0x3a349a,!![]],!![]),this;}[_0x182438(0x528)](_0x493aaa,_0xa90817){const _0x175573=_0x182438,_0x752755=async _0x58892d=>{const _0x2afd66=_0x5aff,_0x1239e0={'status':undefined,'headers':[],'hasBody':![],'body':undefined},_0x5c73a6={'status'(_0x3e5439){const _0x4b05d7=_0x5aff;return _0x1239e0[_0x4b05d7(0x422)]=_0x3e5439,_0x5c73a6;},'setHeader'(_0x30a47d,_0x38ae27){const _0x24ed81=_0x5aff;_0x1239e0[_0x24ed81(0x2eb)][_0x24ed81(0x782)]([_0x30a47d,_0x38ae27]);},'send'(_0x202f31){_0x1239e0['hasBody']=!![],_0x1239e0['body']=_0x202f31;}};_0x58892d[_0x2afd66(0x4a7)]={'remoteAddress':_0x58892d[_0x2afd66(0x4a5)]??null};const _0xac90b2=await _0xa90817(_0x58892d,_0x5c73a6);return{'allowed':_0xac90b2!==![],..._0x1239e0};};this[_0x175573(0x538)]['_call'](_0x175573(0x679),null,_0x175573(0x528),[_0x2c0863=>!!_0x493aaa(_0x2c0863),_0x752755],!![]);}[_0x182438(0x6ba)](_0x40090d){const _0x7a6145=_0x182438,_0x2207d7=async _0x448980=>{const _0x5a3066=_0x5aff,_0x4dd597={'status':undefined,'headers':[],'hasBody':![],'body':undefined};let _0x37aaa8=![];const _0x12f0ea={'status'(_0x2ac470){const _0x139c48=_0x5aff;return _0x4dd597[_0x139c48(0x422)]=_0x2ac470,_0x12f0ea;},'setHeader'(_0x2b1258,_0x3391eb){const _0x5baafb=_0x5aff;_0x4dd597[_0x5baafb(0x2eb)]['push']([_0x2b1258,_0x3391eb]);},'send'(_0x3cf5b1){const _0x3afd70=_0x5aff;_0x4dd597[_0x3afd70(0x659)]=!![],_0x4dd597[_0x3afd70(0x5fa)]=_0x3cf5b1;}};return _0x448980[_0x5a3066(0x4a7)]={'remoteAddress':_0x448980[_0x5a3066(0x4a5)]??null},await _0x40090d(_0x448980,_0x12f0ea,async()=>{_0x37aaa8=!![];}),{'allowed':_0x37aaa8,..._0x4dd597};};return this['okdb'][_0x7a6145(0x11e)](_0x7a6145(0x679),null,_0x7a6145(0x6ba),[_0x2207d7],!![]),this;}get[_0x182438(0x7bf)](){const _0x1829a7=_0x182438;return this[_0x1829a7(0x538)][_0x1829a7(0x11e)](_0x1829a7(0x679),null,'getMaxBodyBytes',[],![]);}set[_0x182438(0x7bf)](_0x2b6567){const _0x2c3097=_0x182438;this[_0x2c3097(0x538)][_0x2c3097(0x11e)](_0x2c3097(0x679),null,_0x2c3097(0x27b),[Number(_0x2b6567)],![]);}[_0x182438(0x1fa)](_0x11e2f5,_0x976989,_0x19db2d={}){const _0x45b847=_0x182438,_0x3a4948=new Map(),_0x1d52c4=(_0x280564,_0x560672)=>this[_0x45b847(0x538)][_0x45b847(0x11e)](_0x45b847(0x679),null,_0x280564,_0x560672,![]),_0x181d32=_0x526a7b=>{const _0x17ae5d=_0x45b847,{connId:_0x5c336a}=_0x526a7b;if(_0x526a7b['cleanup']){const _0x56800b=_0x3a4948[_0x17ae5d(0x73e)](_0x5c336a);_0x3a4948[_0x17ae5d(0x62a)](_0x5c336a);if(typeof _0x56800b===_0x17ae5d(0x656))_0x56800b();return;}const _0x2234fb=(_0x880658,_0x31a733,_0x23555a={})=>{const _0x45b65e=_0x17ae5d;try{_0x1d52c4(_0x45b65e(0x1e4),[_0x5c336a,_0x880658,_0x31a733,_0x23555a]);}catch{}},_0x3b5809=()=>{try{_0x1d52c4('sseClose',[_0x5c336a]);}catch{}},_0x1e6b42=(_0x2af7a2,_0x66f259)=>_0x1d52c4(_0x17ae5d(0x3ed),[_0x5c336a,String(_0x2af7a2),String(_0x66f259)]),_0x203818={'auth':{'open':_0x526a7b[_0x17ae5d(0x75d)],'isAuthenticated':_0x526a7b[_0x17ae5d(0x526)]}},_0x4448fe=_0x976989({'send':_0x2234fb,'close':_0x3b5809,'params':_0x526a7b['params']??{},'query':_0x526a7b['query']??{},'headers':_0x526a7b['headers']??{},'context':_0x203818,'setHeader':_0x1e6b42});_0x3a4948[_0x17ae5d(0x721)](_0x5c336a,_0x4448fe);};return this['okdb'][_0x45b847(0x11e)](_0x45b847(0x679),null,_0x45b847(0x1fa),[_0x11e2f5,_0x181d32,_0x19db2d],!![]),this;}get[_0x182438(0x420)](){const _0x4a0456=_0x182438;return this[_0x4a0456(0x607)]();}[_0x182438(0x607)](){const _0x489a11=_0x182438;return this['okdb'][_0x489a11(0x11e)](_0x489a11(0x679),null,_0x489a11(0x607),[],![])[_0x489a11(0x78f)](_0x1bd812=>({..._0x1bd812,'matcher':_0x10bc3c(_0x1bd812[_0x489a11(0x2fa)],_0x1bd812[_0x489a11(0xee)])}));}['validateRouteInput'](_0x14c6ed,_0x8ea836){const _0xdb694c=_0x182438;return this[_0xdb694c(0x538)][_0xdb694c(0x11e)]('http',null,_0xdb694c(0x1f3),[_0x14c6ed,_0x8ea836],![]);}[_0x182438(0x635)](_0x44bc3b,_0xbcf7be={}){const _0x2bc302=_0x182438;if(typeof _0xbcf7be===_0x2bc302(0x48c)||Array['isArray'](_0xbcf7be))_0xbcf7be={'host':_0xbcf7be};_0xbcf7be=_0xbcf7be??{};if((Number(_0xbcf7be[_0x2bc302(0x734)])||0x0)>=0x1||_0xbcf7be[_0x2bc302(0x4f2)]!=null||_0xbcf7be[_0x2bc302(0x5b8)]!=null){const _0x1e2afc=new Error('http.listen({workers/makeOkdb/primaryOkdb})\x20is\x20no\x20longer\x20supported\x20in\x20the\x20'+_0x2bc302(0x5ed)+_0x2bc302(0x22c)+_0x2bc302(0x5a5));_0x1e2afc[_0x2bc302(0x330)]=_0x2bc302(0x41f);throw _0x1e2afc;}if(this[_0x2bc302(0x593)][_0x2bc302(0x42c)])throw new Error(_0x2bc302(0x434));const _0x1e2468=_0xbcf7be['host']==null?[undefined]:[]['concat'](_0xbcf7be[_0x2bc302(0x368)]);if(!_0x1e2468['length']||_0x1e2468[_0x2bc302(0x787)](_0x539a67=>_0x539a67!==undefined&&(typeof _0x539a67!==_0x2bc302(0x48c)||!_0x539a67))){const _0x2421a9=new Error('http.listen:\x20host\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20a\x20non-empty\x20array\x20of\x20non-empty\x20strings');_0x2421a9['code']='BAD_HOST';throw _0x2421a9;}const _0x39f68c=require$$2['isWorker']?{..._0xbcf7be,'reuseport':!![]}:_0xbcf7be,_0x74273a=this['okdb'][_0x2bc302(0x11e)]('http',null,_0x2bc302(0x635),[_0x44bc3b,_0x39f68c],!![]),_0x12cf6e=_0x74273a['port']??_0x44bc3b,_0x16341a=_0xbcf7be[_0x2bc302(0x368)]==null?':'+_0x12cf6e:_0x1e2468[_0x2bc302(0x78f)](_0x11f65a=>(_0x11f65a['includes'](':')?'['+_0x11f65a+']':_0x11f65a)+':'+_0x12cf6e)[_0x2bc302(0x43a)](',\x20');try{this[_0x2bc302(0x538)]['processes']['noteListenAddr'](_0x16341a);if(!require(_0x2bc302(0x693))[_0x2bc302(0x6f3)])this[_0x2bc302(0x538)][_0x2bc302(0x38c)]['register']({'kind':_0x2bc302(0x647),'listenAddr':_0x16341a});}catch{}this[_0x2bc302(0x593)]=_0x74273a[_0x2bc302(0x4d1)][_0x2bc302(0x78f)](_0x1cb862=>new _0x4d9bdd(this,_0x1cb862));const _0x46ecdf=this[_0x2bc302(0x593)][0x0];return process['nextTick'](()=>this['servers'][_0x2bc302(0x356)](_0xbfeffb=>_0xbfeffb[_0x2bc302(0x2fe)](_0x2bc302(0x785)))),_0x46ecdf;}async[_0x182438(0x3f5)](_0x49cdaa={}){const _0x2fcc81=_0x182438,_0x230ca5=this[_0x2fcc81(0x593)];this[_0x2fcc81(0x593)]=[];if(require$$2['isWorker']&&!process['connected']&&_0x49cdaa[_0x2fcc81(0x271)]==null)_0x49cdaa={..._0x49cdaa,'forceAfterMs':Infinity};if(_0x230ca5[_0x2fcc81(0x42c)]){const _0x621ba9=_0x49cdaa['forceAfterMs']===Infinity?Infinity:Number['isFinite'](_0x49cdaa[_0x2fcc81(0x271)])?Math[_0x2fcc81(0x57c)](0x0,_0x49cdaa['forceAfterMs']):0x3e8,_0x491629=Date[_0x2fcc81(0xcc)]();while(this[_0x2fcc81(0x538)][_0x2fcc81(0x11e)]('http',null,'pendingResponses',[],!![])>0x0&&Date[_0x2fcc81(0xcc)]()-_0x491629<_0x621ba9)await new Promise(_0x447902=>setTimeout(_0x447902,0x5));_0x49cdaa={..._0x49cdaa,'forceAfterMs':_0x621ba9===Infinity?0x3e8:Math[_0x2fcc81(0x57c)](0x0,_0x621ba9-(Date[_0x2fcc81(0xcc)]()-_0x491629))};}await this['_n'](_0x2fcc81(0x3f5),[_0x49cdaa]);for(const _0x450259 of _0x230ca5){_0x450259[_0x2fcc81(0x62b)](),_0x450259[_0x2fcc81(0x785)]=![],_0x450259[_0x2fcc81(0x2fe)](_0x2fcc81(0x3f5));}}}return http={'OKDBHttp':_0xbceab4},http;}var fts,hasRequiredFts;function requireFts(){const _0x111f60=_0x2dfd83;if(hasRequiredFts)return fts;hasRequiredFts=0x1;const _0x478cf9=_0x57371a=>(_0x57371a&&typeof _0x57371a==='object'?_0x57371a['name']:_0x57371a)??_0x111f60(0x511);class _0x4bfbbc{constructor(_0x26967c){const _0xcf0d82=_0x111f60;this[_0xcf0d82(0x538)]=_0x26967c;}['_n'](_0x1ae74c,_0x436508,_0x3d3f3c=![]){const _0x2644d=_0x111f60;return this[_0x2644d(0x538)][_0x2644d(0x11e)](_0x2644d(0x131),null,_0x1ae74c,_0x436508,_0x3d3f3c);}[_0x111f60(0x7e5)](_0x536307,_0x5353ac){const _0x5214d4=_0x111f60;return this[_0x5214d4(0x538)]['_callMacro'](_0x5214d4(0x131),null,_0x536307,_0x5353ac,!![]);}get[_0x111f60(0x615)](){const _0x2a2365=this,_0x3805b2=_0x4f905b=>{const _0x35c569=_0x5aff,_0xc3c638=_0x4f905b[_0x35c569(0x43c)](':'),_0x3f2e8a=_0x4f905b[_0x35c569(0x49d)](0x0,_0xc3c638),_0x2b9496=_0x2a2365[_0x35c569(0x538)][_0x35c569(0x4a8)][_0x35c569(0x73e)](_0x3f2e8a);if(!_0x2b9496)return undefined;const _0x50b3c8=_0x2b9496[_0x35c569(0xd6)][_0x35c569(0x46b)]()[_0x35c569(0x605)](_0x58c124=>_0x58c124[_0x35c569(0x2d7)]===_0x35c569(0x189)+_0x4f905b);if(!_0x50b3c8)return undefined;return _0x2b9496['processor'][_0x35c569(0x3da)](_0x50b3c8['id'],_0x50b3c8[_0x35c569(0x2d7)]);};return{'get':_0x3805b2,'has':_0x1a459a=>!!_0x3805b2(_0x1a459a)};}get['_pendingOps'](){return[];}['_envIndexDb'](){const _0x15fd06=_0x111f60,{RawDb:_0x6c5a76}=requireRawdb();return new _0x6c5a76(this[_0x15fd06(0x538)][_0x15fd06(0x540)],'~fts:envs');}['has'](_0x2de5b0,_0x5c401a,_0x1c4707){const _0x49b4b4=_0x111f60;return this['_n'](_0x49b4b4(0x7d4),[_0x2de5b0,_0x5c401a,_0x478cf9(_0x1c4707)]);}[_0x111f60(0x422)](_0x4f44d3,_0x30c6c2,_0x123f9b){return this['_n']('status',[_0x4f44d3,_0x30c6c2,_0x478cf9(_0x123f9b)]);}[_0x111f60(0x46b)](_0x2958d0,_0x4cbea4){return this['_n']('list',[_0x2958d0,_0x478cf9(_0x4cbea4)]);}async[_0x111f60(0x4bb)](_0xf9deda,_0x9dbb69,_0x1d7344,_0x50396f,_0x35cce6){const _0x6d45e6=_0x111f60,_0x32e65e=(_0x420982,_0x37e563)=>this['okdb'][_0x6d45e6(0x687)](_0x6d45e6(0x131),null,_0x420982,_0x37e563,!![],![]),_0x905d4e=Date[_0x6d45e6(0xcc)]()+0x1d4c0;let _0x19356b=_0xf9deda,_0x5c4b6c=_0x9dbb69;for(;;){try{return await _0x32e65e(_0x19356b,_0x5c4b6c);}catch(_0xed12c5){if(_0xed12c5[_0x6d45e6(0x330)]==='FTS_BUILD_CONTINUE'){_0x19356b=_0x6d45e6(0x3cd),_0x5c4b6c=[_0x1d7344,_0x50396f,_0x478cf9(_0x35cce6)];if(_0xed12c5[_0x6d45e6(0x3e8)]&&_0xed12c5['details'][_0x6d45e6(0x47a)])await new Promise(_0x96ab4e=>setTimeout(_0x96ab4e,0x2));continue;}if(_0xed12c5['code']!==_0x6d45e6(0x56a)||Date[_0x6d45e6(0xcc)]()>=_0x905d4e)throw _0xed12c5;}await new Promise(_0x524212=>setTimeout(_0x524212,0x5)),_0x19356b=_0x6d45e6(0x52e),_0x5c4b6c=[_0x1d7344,_0x50396f,!![],_0x478cf9(_0x35cce6)];}}async[_0x111f60(0x71e)](_0x6a526b,_0x21f216,_0x4db5df,_0x517546,_0x4c4c8f){const _0x698c2d=_0x111f60;return this['_build'](_0x698c2d(0x71e),[_0x6a526b,_0x21f216,_0x4db5df,_0x517546,_0x478cf9(_0x4c4c8f)],_0x6a526b,_0x21f216,_0x4c4c8f);}async['drop'](_0x5b92b6,_0x35de4c,_0x47cd03){const _0x519544=_0x111f60;return this[_0x519544(0x7e5)](_0x519544(0xce),[_0x5b92b6,_0x35de4c,_0x478cf9(_0x47cd03)]);}async['ensure'](_0x5043c0,_0x27700c,_0x223291,_0x23af94){const _0x444dbc=_0x111f60;return this[_0x444dbc(0x4bb)](_0x444dbc(0x5c8),[_0x5043c0,_0x27700c,_0x223291,_0x478cf9(_0x23af94)],_0x5043c0,_0x27700c,_0x23af94);}async[_0x111f60(0x52e)](_0xa96abb,_0x7ef744,_0x545a0b,_0x2ddaa0){const _0x5d1eed=_0x111f60;return this[_0x5d1eed(0x4bb)](_0x5d1eed(0x52e),[_0xa96abb,_0x7ef744,_0x545a0b,_0x478cf9(_0x2ddaa0)],_0xa96abb,_0x7ef744,_0x2ddaa0);}async[_0x111f60(0x60d)](_0x9238ec,_0x578d90,_0x53ae10,_0x560d0b=0x1d4c0){const _0x1d3014=_0x111f60,_0x315eb1=Date[_0x1d3014(0xcc)]()+_0x560d0b;for(;;){try{return await this['_nm'](_0x9238ec,[..._0x578d90,0x1]);}catch(_0x1aaac6){if(_0x1aaac6[_0x1d3014(0x330)]!==_0x53ae10||Date[_0x1d3014(0xcc)]()>=_0x315eb1)throw _0x1aaac6;}await new Promise(_0x5b59d9=>setTimeout(_0x5b59d9,0x2));}}async['ready'](_0x521db8,_0x5cc02f,_0x4ec9af){const _0x2fc2b8=_0x111f60;return this[_0x2fc2b8(0x60d)](_0x2fc2b8(0x298),[_0x521db8,null,_0x478cf9(_0x4ec9af)],_0x2fc2b8(0x463));}async[_0x111f60(0x38a)](_0x43fcc1,_0x28372d){const _0x3cc436=_0x111f60;return this[_0x3cc436(0x60d)]('flush',[_0x43fcc1,_0x478cf9(_0x28372d)],_0x3cc436(0x773));}async[_0x111f60(0x6b7)](_0x113b7a,_0x37679b){const _0x28c92b=_0x111f60;return this[_0x28c92b(0x7e5)](_0x28c92b(0x6b7),[_0x113b7a,_0x478cf9(_0x37679b)]);}async[_0x111f60(0xc6)](_0x3e6140={}){const _0xdde5de=_0x111f60;return this[_0xdde5de(0x7e5)]('process',[_0x3e6140]);}async['compactStorage'](_0x4bfc31){const _0x3f742a=_0x111f60;return this[_0x3f742a(0x7e5)](_0x3f742a(0x6ce),[_0x478cf9(_0x4bfc31)]);}[_0x111f60(0x715)](_0x240dc4){const _0x4d0a0b=_0x111f60;return this['_n'](_0x4d0a0b(0x715),[_0x478cf9(_0x240dc4)]);}['search'](_0x4ecd7e,_0x5bb1f0,_0x4ced2e,_0x33794b,_0x39e5b9){const _0x474fb5=_0x111f60;return this['_n'](_0x474fb5(0x168),[_0x4ecd7e,_0x5bb1f0,_0x4ced2e,_0x33794b||{},_0x478cf9(_0x39e5b9)]);}[_0x111f60(0x39a)](_0x68a6e4,_0x47b90a,_0x559ae5,_0x1d2eaa,_0x23b6f5,_0x11126e){const _0x38111b=_0x111f60;return this['_n'](_0x38111b(0x39a),[_0x68a6e4,_0x47b90a,_0x559ae5,_0x1d2eaa||{},_0x478cf9(_0x23b6f5),_0x11126e]);}[_0x111f60(0xf6)](_0x46956b,_0x591cf3,_0x5743a0,_0x259142,_0x286aca){const _0xb7c85e=_0x111f60;return this['_n'](_0xb7c85e(0x2a8),[_0x46956b,_0x591cf3,_0x5743a0,_0x259142||{},_0x478cf9(_0x286aca)]);}[_0x111f60(0x414)](){return this['_n']('listFtsEnvs',[]);}async[_0x111f60(0xba)](){return this['_nm']('drain',[]);}}return fts={'OKDBFts':_0x4bfbbc},fts;}var embeddings,hasRequiredEmbeddings;function requireEmbeddings(){const _0xffeea2=_0x2dfd83;if(hasRequiredEmbeddings)return embeddings;hasRequiredEmbeddings=0x1;const {OKDBError:_0x57783a,invalidArgument:_0x421156}=requireErrors();requireBridge();const _0x299a44=Object[_0xffeea2(0x7ac)]({'EMBEDDER':_0xffeea2(0x1a6),'INDEXER':_0xffeea2(0x1a7),'SEARCH':_0xffeea2(0x4ff),'WORKER':_0xffeea2(0x448)}),_0x4c7020=_0x2f8d8e=>typeof _0x2f8d8e===_0xffeea2(0x48c)||_0x2f8d8e==null?_0x2f8d8e:Array[_0xffeea2(0x6a2)](_0x2f8d8e);class _0x5d8d7b{constructor(_0x175534){const _0x26e813=_0xffeea2;this[_0x26e813(0x538)]=_0x175534,this[_0x26e813(0x550)]=new Map(),this[_0x26e813(0x7c6)]=new Map(),this['_viewCache']=new Map();}['_n'](_0x4688f8,_0x137166=[],_0x3462f9=!![]){const _0x436b4a=_0xffeea2;return this['okdb'][_0x436b4a(0x11e)](_0x436b4a(0x737),null,_0x4688f8,_0x137166,_0x3462f9);}[_0xffeea2(0x7e5)](_0x949bcc,_0x312179=[]){const _0x1e560a=_0xffeea2;return this['okdb'][_0x1e560a(0x687)](_0x1e560a(0x737),null,_0x949bcc,_0x312179,!![]);}[_0xffeea2(0x3d3)](_0x563a0c){const _0x184f5e=_0xffeea2;return _0x563a0c?this[_0x184f5e(0x538)][_0x184f5e(0x675)]['_wrap'](_0x563a0c):null;}[_0xffeea2(0x307)](_0x342581,_0x1201ed,_0x243191={}){const _0x27af3c=_0xffeea2;if(typeof _0x1201ed!==_0x27af3c(0x656))throw new _0x57783a(_0x27af3c(0x388),_0x27af3c(0x6db),{'name':_0x342581});this[_0x27af3c(0x550)][_0x27af3c(0x721)](_0x342581,_0x1201ed),this['_jsSchemas'][_0x27af3c(0x721)](_0x342581,_0x243191);const _0x303c4d=this['okdb'],_0x5f3104=_0x58ae02=>_0x1201ed(_0x58ae02,_0x303c4d);_0x5f3104[_0x27af3c(0x5e9)]=_0x303c4d,this['_n'](_0x27af3c(0x307),[_0x342581,_0x5f3104,_0x243191??{}],![]);}[_0xffeea2(0x309)](_0x574c77){const _0x15c66c=_0xffeea2,_0xc5d9a0=this['_jsFactories'][_0x15c66c(0x73e)](_0x574c77);if(_0xc5d9a0)return _0xc5d9a0;if(!this['_n']('hasEmbedderFactory',[_0x574c77],![]))return null;const _0x5b600b=this;return(_0x374a40={})=>{const _0x377708=_0x15c66c,_0x509d34=_0x5b600b['_n']('embedderNew',[_0x574c77,_0x374a40],![]),_0x345e78=_0x5b600b['_n'](_0x377708(0x51b),[_0x509d34],![]),_0x541bdc=(_0x1d2ecf,_0x1f8060)=>_0x5b600b['_n'](_0x377708(0x198),[_0x509d34,_0x1d2ecf,_0x1f8060],![]),_0x57e679={'embed':async _0x3c107a=>Float32Array[_0x377708(0x6a2)](_0x541bdc(_0x377708(0x254),_0x3c107a)),'start':async()=>_0x541bdc('start'),'stop':async()=>{const _0x57334a=_0x377708;_0x541bdc(_0x57334a(0x1ff)),_0x541bdc(_0x57334a(0x3e9));}};if(_0x345e78)_0x57e679[_0x377708(0x292)]=async _0x2e6f4b=>_0x541bdc(_0x377708(0x292),_0x2e6f4b)[_0x377708(0x78f)](_0x512235=>Float32Array[_0x377708(0x6a2)](_0x512235));return _0x57e679;};}[_0xffeea2(0x56c)](_0x2b09f4){const _0x5ad070=_0xffeea2;return this['_jsSchemas']['get'](_0x2b09f4)??this['_n'](_0x5ad070(0x56c),[_0x2b09f4],![])??undefined;}[_0xffeea2(0x67e)](_0x5db8a8,_0x51b607,_0xa39266={}){const _0x1ff9b2=_0xffeea2;if(typeof _0x51b607!==_0x1ff9b2(0x656))throw new _0x57783a(_0x1ff9b2(0x1e3),'BAD_PARAM',{'name':_0x5db8a8});this['_n']('registerAlgorithmFactory',[_0x5db8a8,(_0x599ebe,_0x1f4c80)=>_0x51b607(_0x599ebe,_0x1f4c80),_0xa39266??{}],![]);}[_0xffeea2(0x157)](){const _0x1dffb3=_0xffeea2;return this['_n'](_0x1dffb3(0x157),[],![]);}[_0xffeea2(0x5bb)](_0x2f6b3f,_0x314a21){const _0x4abf3e=_0xffeea2;if(typeof _0x314a21!==_0x4abf3e(0x656))throw new _0x57783a('preparer\x20must\x20be\x20a\x20function','BAD_PARAM',{'name':_0x2f6b3f});this['_n'](_0x4abf3e(0x5bb),[_0x2f6b3f,_0x314a21]);}[_0xffeea2(0x59d)](_0x257c04,_0x523701){const _0x34271a=_0xffeea2;if(typeof _0x523701!=='function')throw new _0x57783a('chunk\x20strategy\x20must\x20be\x20a\x20function','BAD_PARAM',{'name':_0x257c04});this['_n'](_0x34271a(0x59d),[_0x257c04,_0x523701]);}[_0xffeea2(0x382)](_0x3f221d){const _0x18c4ba=_0xffeea2;if(_0x3f221d==null)return this['_n'](_0x18c4ba(0x382),[null],![]);if(typeof _0x3f221d!==_0x18c4ba(0x656))throw new _0x57783a(_0x18c4ba(0x617),_0x18c4ba(0x6db));const _0x7f9ff6=this[_0x18c4ba(0x538)];this['_n'](_0x18c4ba(0x382),[_0x1ef89e=>_0x3f221d(_0x1ef89e,_0x7f9ff6)],![]);}async['createEmbedder'](_0x28a9a8,_0x4326e7={},_0x439de4={},_0x251c9d=null){const _0x34058e=_0xffeea2;return this['_wrap'](await this[_0x34058e(0x7e5)]('createEmbedder',[_0x28a9a8,_0x4326e7,_0x439de4,_0x251c9d]));}async['createIndexer'](_0x131d06,_0x344085={},_0x18c34a={}){const _0xcfb4f=_0xffeea2;return this['_wrap'](await this[_0xcfb4f(0x7e5)](_0xcfb4f(0x75f),[_0x131d06,_0x344085,_0x18c34a]));}async[_0xffeea2(0x4e1)](_0x4ee120,_0x25dea6={},_0x5bc05f={}){const _0x3b8645=_0xffeea2;return this[_0x3b8645(0x3d3)](await this[_0x3b8645(0x7e5)](_0x3b8645(0x4e1),[_0x4ee120,_0x25dea6,_0x5bc05f]));}async[_0xffeea2(0x408)](_0x10ad4e,_0x25737c={},_0x1e863d={}){const _0x117c7e=_0xffeea2;return this[_0x117c7e(0x3d3)](await this[_0x117c7e(0x7e5)](_0x117c7e(0x408),[_0x10ad4e,_0x25737c,_0x1e863d]));}async[_0xffeea2(0x103)](_0x5d5a15,_0x5a3ef1={},_0x11352c={}){const _0x5eaf9c=_0xffeea2,_0x493fd7=await this[_0x5eaf9c(0x7e5)](_0x5eaf9c(0x103),[_0x5d5a15,_0x5a3ef1,_0x11352c]);return{'embedder':this['_wrap'](_0x493fd7['embedder']),'indexer':this['_wrap'](_0x493fd7[_0x5eaf9c(0x1a7)]),'worker':this[_0x5eaf9c(0x3d3)](_0x493fd7['worker']),'search':this[_0x5eaf9c(0x3d3)](_0x493fd7[_0x5eaf9c(0x168)]),'api':this[_0x5eaf9c(0xdf)](_0x493fd7['scopedName'],_0x493fd7[_0x5eaf9c(0x1a6)][_0x5eaf9c(0x5d1)],_0x493fd7[_0x5eaf9c(0x405)]?_0x493fd7['worker'][_0x5eaf9c(0x5d1)]:_0x493fd7['scopedName']+_0x5eaf9c(0x318))};}[_0xffeea2(0x799)](_0x44e7c7,_0x442ac5){const _0x3d3f63=_0xffeea2;return this['okdb'][_0x3d3f63(0x675)][_0x3d3f63(0xf2)](_0x44e7c7,_0x442ac5)?.['api']??null;}[_0xffeea2(0x1a6)](_0x1d6e13){const _0x251ada=_0xffeea2,_0x3d3e81=this[_0x251ada(0x799)](_0x299a44[_0x251ada(0x487)],_0x1d6e13);if(!_0x3d3e81)return null;const _0x82a53b=this,_0x5611f8=_0x52cd1d=>Array[_0x251ada(0x796)](_0x52cd1d)&&Array['isArray'](_0x52cd1d[0x0])?_0x52cd1d['map'](_0x27387f=>Float32Array['from'](_0x27387f)):Float32Array[_0x251ada(0x6a2)](_0x52cd1d);return new Proxy(_0x3d3e81,{'get'(_0x576550,_0x5b2f95){const _0x143660=_0x251ada;if(_0x5b2f95==='dims')return _0x82a53b[_0x143660(0x538)][_0x143660(0x11e)](_0x143660(0x675),null,_0x143660(0x6d6),[_0x299a44[_0x143660(0x487)],_0x1d6e13,_0x143660(0x46d),[]],![])[_0x143660(0x1d0)];if(_0x5b2f95===_0x143660(0x254))return async _0x51a26a=>_0x5611f8(await _0x3d3e81['embed'](_0x51a26a));if(_0x5b2f95===_0x143660(0x292))return async _0x232ad3=>(await _0x3d3e81[_0x143660(0x292)](_0x232ad3))[_0x143660(0x78f)](_0x403955=>Float32Array[_0x143660(0x6a2)](_0x403955));return _0x576550[_0x5b2f95];}});}[_0xffeea2(0x1a7)](_0x24c872){const _0x3fb837=_0xffeea2;return this[_0x3fb837(0x799)](_0x299a44[_0x3fb837(0x730)],_0x24c872);}[_0xffeea2(0x405)](_0x1a3f58){const _0x392f0e=_0xffeea2;return this['_running'](_0x299a44[_0x392f0e(0xc9)],_0x1a3f58);}[_0xffeea2(0x168)](_0x3fd742){const _0x5c803d=_0xffeea2,_0x56219b=this['_running'](_0x299a44[_0x5c803d(0xf7)],_0x3fd742);if(_0x56219b)return _0x56219b;return this['_localViewApi'](_0x3fd742);}[_0xffeea2(0x1b9)](_0xc780d0){const _0x5edd57=_0xffeea2,_0x23ba7d=this;return{'search':(_0x1d904a,_0x40aa13={})=>_0x23ba7d[_0x5edd57(0x538)][_0x5edd57(0x687)](_0x5edd57(0x737),null,_0x5edd57(0x168),[_0xc780d0,_0x4c7020(_0x1d904a),_0x40aa13],![]),'stats':async()=>_0x23ba7d['_n'](_0x5edd57(0x32a),[_0xc780d0],![]),'count':()=>_0x23ba7d['_n'](_0x5edd57(0x5aa),[_0xc780d0,'count'],![])};}async[_0xffeea2(0x39a)](_0x2bcfce,_0x4936f4,_0x1d4b2f={}){const _0x5551b8=_0xffeea2,{limit:limit=0xa,..._0xb5a43c}=_0x1d4b2f;return this[_0x5551b8(0x7e5)](_0x5551b8(0x39a),[_0x2bcfce,_0x4c7020(_0x4936f4),{..._0xb5a43c,'limit':limit}]);}[_0xffeea2(0x60e)](_0x13f0b7){const _0xd90cce=_0xffeea2;return this['_n'](_0xd90cce(0x60e),[_0x13f0b7],![]);}[_0xffeea2(0xb8)](_0x474e42,_0x118b61){const _0x35f55c=_0xffeea2;return this['_n'](_0x35f55c(0x609),[_0x474e42,_0x118b61],![]);}[_0xffeea2(0xcd)](_0x5adc29){return this['_n']('durableEmbedderInfo',[_0x5adc29],![]);}async['_durableIndexerStats'](_0x5b6788){const _0x466c31=_0xffeea2;return this['_n'](_0x466c31(0x35e),[_0x5b6788],![]);}async[_0xffeea2(0x79d)](_0x531bbd,_0x4216a2={}){const _0x5c9aa4=_0xffeea2;return this['_n'](_0x5c9aa4(0x480),[_0x531bbd,_0x4216a2],![]);}async['_durableIndexerDoc'](_0x45a1b2,_0x249e4a){const _0x551df4=_0xffeea2;return this['_n'](_0x551df4(0x155),[_0x45a1b2,_0x249e4a],![]);}async[_0xffeea2(0x20e)](_0x2ff0bf,_0x532f7a,_0x3bb007,_0x57dc73){const _0x41cb53=_0xffeea2;if(_0x2ff0bf!=null&&typeof _0x2ff0bf[_0x41cb53(0x564)]!==_0x41cb53(0x656))throw _0x421156(_0x41cb53(0x5d1),_0x41cb53(0x65b),_0x2ff0bf);if(!_0x2ff0bf||!_0x3bb007)return null;return this[_0x41cb53(0x538)]['_callMacro'](_0x41cb53(0x737),null,_0x41cb53(0x20e),[_0x2ff0bf,_0x532f7a,_0x3bb007,_0x57dc73??null],![]);}async[_0xffeea2(0x51a)](_0x2c65ea,_0x128386,_0x6ae396={}){const _0x49fc93=_0xffeea2,_0x116db3={..._0x6ae396};if(_0x116db3[_0x49fc93(0x2f9)])_0x116db3[_0x49fc93(0x2f9)]=Array['from'](_0x116db3['vector']);return this['_n']('durableMarkDone',[_0x2c65ea,_0x128386,_0x116db3]);}async[_0xffeea2(0x6c7)](_0x31dd09,_0x51dd18,_0xb3dd5e,_0x28f774={}){const _0x245e94=_0xffeea2;return this['_n'](_0x245e94(0x6c7),[_0x31dd09,_0x51dd18,_0xb3dd5e,_0x28f774]);}async[_0xffeea2(0x332)](_0x29f5da,_0x2dd1c7){const _0x4cd398=_0xffeea2;return this['_n'](_0x4cd398(0x332),[_0x29f5da,_0x2dd1c7]);}async[_0xffeea2(0x100)](_0x49e5fd,_0x3dbbe7){const _0x29446a=_0xffeea2;return this['_n'](_0x29446a(0x100),[_0x49e5fd,_0x3dbbe7]);}async[_0xffeea2(0x275)](_0x23b013,_0xbf39a1={}){const _0x250e1a=_0xffeea2;return this['_n'](_0x250e1a(0x275),[_0x23b013,_0xbf39a1]);}async[_0xffeea2(0x58c)](_0x399462){const _0x9e35f9=_0xffeea2;return this[_0x9e35f9(0x7e5)]('durableRebuild',[_0x399462]);}async[_0xffeea2(0xff)](_0xd8913d){return this['_n']('durableWorkerStats',[_0xd8913d],![]);}[_0xffeea2(0x672)](_0x362124){return this['_n']('vectorStoreStats',[_0x362124],![]);}[_0xffeea2(0x121)](){const _0x2d6bd0=_0xffeea2;return this['_n'](_0x2d6bd0(0x121),[],![]);}['getVector'](_0x5c6b67,_0x38e451){const _0x22587e=_0xffeea2,_0x63e438=this['_n'](_0x22587e(0x600),[_0x5c6b67,_0x38e451],![]);return _0x63e438==null?null:Float32Array[_0x22587e(0x6a2)](_0x63e438);}[_0xffeea2(0x523)](_0x22e513,_0x66eaa2){const _0x365712=_0xffeea2;return this['_n'](_0x365712(0x523),[_0x22e513,_0x66eaa2??null],![])??undefined;}async[_0xffeea2(0x576)](_0xb0efff,_0x1d64f3,_0x2a7adf,_0x1abf56=''){const _0x46bf0c=_0xffeea2;return this['_n'](_0x46bf0c(0x576),[_0xb0efff,_0x1d64f3,_0x2a7adf,_0x1abf56]);}[_0xffeea2(0x793)](_0x17c1a5=null){const _0x4f145e=_0xffeea2;return this['_n'](_0x4f145e(0x793),[_0x17c1a5],![]);}['listProviders'](){const _0x10156e=_0xffeea2;return this['_n'](_0x10156e(0x3c6),[],![]);}async[_0xffeea2(0x5a2)](_0x34af9d,_0x58c244){const _0x211b2c=_0xffeea2;return this['_n'](_0x211b2c(0x503),[_0x34af9d,_0x58c244],![]),this[_0x211b2c(0x538)][_0x211b2c(0x6eb)]('~'+_0x34af9d+_0x211b2c(0x2f2)+_0x58c244);}async[_0xffeea2(0x5d9)](_0x586d3c,_0x9b952b){return await this['_ensureTypeEnv'](_0x586d3c,_0x9b952b),{'adapter':_0x11a4af=>this['_makeLazyVectorAdapter'](_0x586d3c,_0x9b952b,_0x11a4af)};}[_0xffeea2(0x6fa)](_0x51d767,_0xdcbae5,_0x5dd451){const _0x5805c3=this;return{async 'put'(_0x4b3007,_0x192885){const _0x42392c=_0x5aff;return _0x5805c3['_n'](_0x42392c(0x483),[_0x51d767,_0xdcbae5,_0x5dd451,_0x4b3007,Array[_0x42392c(0x6a2)](_0x192885)]);},async 'remove'(_0xa058ed){const _0x3e0f7d=_0x5aff;return _0x5805c3['_n'](_0x3e0f7d(0x374),[_0x51d767,_0xdcbae5,_0x5dd451,_0xa058ed]);}};}get[_0xffeea2(0x377)](){const _0x43ee14=_0xffeea2,_0x262291=this,_0x3a97a9=()=>_0x262291['_n'](_0x43ee14(0x70f),[],![]),_0x329e41=_0x2516e1=>{const _0x57a04d=_0x43ee14,_0x971d0d=_0x32806b=>_0x262291['_n'](_0x57a04d(0x5aa),[_0x2516e1,_0x32806b],![]);return{'name':_0x2516e1,'_evict':async()=>_0x971d0d(_0x57a04d(0x2e6)),'evict':async()=>_0x971d0d('evict'),'snapshot':async()=>_0x971d0d('snapshot'),'_snapshot':async()=>_0x971d0d(_0x57a04d(0x3e3)),'rebuild':async()=>_0x971d0d(_0x57a04d(0x771)),'stats':()=>_0x971d0d(_0x57a04d(0x156)),get 'count'(){const _0x20ebb2=_0x57a04d;return _0x971d0d(_0x20ebb2(0x432));},get 'loaded'(){const _0x4fe9de=_0x57a04d;return _0x971d0d(_0x4fe9de(0x6b8));}};};return{get 'size'(){const _0x1cc905=_0x43ee14;return _0x3a97a9()[_0x1cc905(0x42c)];},'has':_0xb1d01f=>_0x3a97a9()[_0x43ee14(0x564)](_0xb1d01f),'get':_0x3af555=>_0x3a97a9()[_0x43ee14(0x564)](_0x3af555)?_0x329e41(_0x3af555):undefined,'keys':()=>_0x3a97a9()[Symbol['iterator']](),'values':()=>_0x3a97a9()['map'](_0x329e41)[Symbol[_0x43ee14(0x3f3)]](),[Symbol[_0x43ee14(0x3f3)]]:()=>_0x3a97a9()[_0x43ee14(0x78f)](_0x37df0c=>[_0x37df0c,_0x329e41(_0x37df0c)])[Symbol[_0x43ee14(0x3f3)]]()};}async[_0xffeea2(0x160)](){}async[_0xffeea2(0x1ff)](){this['_n']('stop',[]);}[_0xffeea2(0xdf)](_0x3ce5c7,_0x1f4add,_0x109844){const _0x971ce5=_0xffeea2;return{'search':(_0x3f30c1,_0x146c83={})=>{const _0x3ff388=_0x5aff,_0x29d0d9=this[_0x3ff388(0x168)](_0x3ce5c7);if(!_0x29d0d9)throw new Error('vector-search\x20engine\x20not\x20running:\x20\x22'+_0x3ce5c7+'\x22');return _0x29d0d9[_0x3ff388(0x168)](_0x3f30c1,_0x146c83);},'searchDocs':(_0x1456ce,_0x4b884b={})=>this['searchDocs'](_0x3ce5c7,_0x1456ce,_0x4b884b),'flush':_0x3c8be2=>{const _0x3dd7a3=_0x5aff,_0x19a433=this[_0x3dd7a3(0x1a7)](_0x3ce5c7);if(!_0x19a433)throw new Error('indexer\x20engine\x20not\x20running:\x20\x22'+_0x3ce5c7+'\x22');return _0x19a433[_0x3dd7a3(0x38a)](_0x3c8be2);},'stats':async()=>({'embedder':await this[_0x971ce5(0x1a6)](_0x1f4add)?.[_0x971ce5(0x7d6)]?.(),'indexer':await this['indexer'](_0x3ce5c7)?.[_0x971ce5(0x156)]?.(),'worker':await this[_0x971ce5(0x405)](_0x109844)?.[_0x971ce5(0x156)]?.(),'search':await this[_0x971ce5(0x168)](_0x3ce5c7)?.['stats']?.()})};}}return embeddings={'OKDBEmbeddings':_0x5d8d7b,'ENGINE_TYPES':_0x299a44},embeddings;}var auth,hasRequiredAuth;function requireAuth(){const _0x2a8169=_0x2dfd83;if(hasRequiredAuth)return auth;hasRequiredAuth=0x1;const {invalidArgument:_0x42e269}=requireErrors();class _0xaa4f57{constructor(_0x2ca040){const _0x7311cc=_0x5aff;this[_0x7311cc(0x538)]=_0x2ca040;}['_n'](_0x352c55,_0x32de1f=[],_0x47d2df=![]){const _0x47a60a=_0x5aff;return this[_0x47a60a(0x538)][_0x47a60a(0x11e)]('auth',null,_0x352c55,_0x32de1f,_0x47d2df);}['_nm'](_0x51cc99,_0x3ca288=[]){const _0x295f95=_0x5aff;return this[_0x295f95(0x538)]['_callMacro']('auth',null,_0x51cc99,_0x3ca288,![]);}get[_0x2a8169(0x2de)](){const _0x3391e1=_0x2a8169;return this['_n'](_0x3391e1(0x2de));}get[_0x2a8169(0x13c)](){const _0x3f6c52=_0x2a8169;return this['_n'](_0x3f6c52(0x13c));}get[_0x2a8169(0x229)](){const _0x198dbb=_0x2a8169;return this[_0x198dbb(0x538)][_0x198dbb(0x51c)][_0x198dbb(0x760)]?.[_0x198dbb(0x438)]||{};}[_0x2a8169(0x64b)](_0x5380be){const _0x95ee5f=_0x2a8169;return this['_n'](_0x95ee5f(0x64b),[_0x5380be??null]);}[_0x2a8169(0x7cd)](_0x3028ea){return this['_n']('isOpenForIp',[_0x3028ea??null]);}[_0x2a8169(0x383)](_0x3377fc){const _0x4ad1f3=_0x2a8169;return this['_n'](_0x4ad1f3(0x66a),[_0x3377fc??null]);}['_isBootstrap'](){const _0x4241ff=_0x2a8169;return this['_n'](_0x4241ff(0x699));}[_0x2a8169(0x124)](){const _0x559f5=_0x2a8169;return this['_n'](_0x559f5(0x124));}['getAuthOptions'](){const _0x275119=_0x2a8169;return this['_n'](_0x275119(0x364));}[_0x2a8169(0x1e8)](_0x1d543f){const _0x4e5bde=_0x2a8169;return this['_n'](_0x4e5bde(0x1e8),[_0x1d543f]);}[_0x2a8169(0x4c7)](_0x101539){const _0x13410e=_0x2a8169;return this['_n'](_0x13410e(0x4c7),[_0x101539]);}['parseBearer'](_0x1b20b0){const _0x12a9c5=_0x2a8169;if(_0x1b20b0!=null&&typeof _0x1b20b0!==_0x12a9c5(0x48c))throw _0x42e269(_0x12a9c5(0x3db),_0x12a9c5(0x65b),_0x1b20b0);return this['_n'](_0x12a9c5(0x41a),[_0x1b20b0??null]);}async[_0x2a8169(0xbe)](){return this['_n']('ensureTokensType',[],!![]);}async['_lookupByTokenHash'](_0xa883d2){const _0x410fcf=_0x2a8169;return this['_n'](_0x410fcf(0xed),[_0xa883d2]);}async[_0x2a8169(0x341)](_0x52c2ba){const _0x3d65b5=_0x2a8169;return this['_n'](_0x3d65b5(0x47d),[_0x52c2ba]);}async[_0x2a8169(0x204)](_0x4a7033){const _0x394065=_0x2a8169;return this['_n'](_0x394065(0x61d),[_0x4a7033]);}async['authenticateRequest'](_0x52280){const _0x26ac6b=_0x2a8169,_0x233cb3=_0x52280?.[_0x26ac6b(0x2eb)]||{};return this['_n'](_0x26ac6b(0x1b6),[{'remoteAddress':_0x52280['socket']?.[_0x26ac6b(0x4a5)]??null,'internal':_0x52280?.[_0x26ac6b(0x67b)]?.[_0x26ac6b(0x48f)]===!![],'authorization':_0x233cb3[_0x26ac6b(0x45c)]??null,'cookies':_0x52280?.['cookies']??{}}]);}async['login'](_0x58552b,_0x14e375){const _0x41d3d1=_0x2a8169;return this[_0x41d3d1(0x7e5)](_0x41d3d1(0x35b),[_0x58552b??null,_0x14e375??null]);}async['loginSelect'](_0x5e751d,_0x20f5e0,_0x5aa710){const _0x24b6a5=_0x2a8169;return this[_0x24b6a5(0x7e5)](_0x24b6a5(0x498),[_0x5e751d??null,_0x20f5e0??null,_0x5aa710??null]);}[_0x2a8169(0x445)](){const _0x4944d8=_0x2a8169;return this['_n'](_0x4944d8(0x445));}['getLoginConfig'](){const _0x443aad=_0x2a8169;return this['_n'](_0x443aad(0x48a));}['createLoginState'](_0xfad96c={},_0x268279=0x927c0){return this['_n']('createLoginState',[_0xfad96c,_0x268279]);}[_0x2a8169(0x6dc)](_0x3ec863){const _0x46a0be=_0x2a8169;return this['_n'](_0x46a0be(0x6dc),[_0x3ec863]);}async[_0x2a8169(0x439)](_0x2fb8cd,_0xdd7692={}){const _0x5c3e24=_0x2a8169;return this[_0x5c3e24(0x7e5)](_0x5c3e24(0x621),[_0x2fb8cd,_0xdd7692]);}async['_getOidcDiscovery'](_0xe3b9b7={}){const _0x351a69=_0x2a8169;return this[_0x351a69(0x7e5)](_0x351a69(0x1d4),[_0xe3b9b7]);}['_normalizeOAuthAuthResult'](_0x240930){const _0x3f6371=_0x2a8169;return this['_n'](_0x3f6371(0x18c),[_0x240930]);}}return auth={'OKDBAuth':_0xaa4f57},auth;}var sync,hasRequiredSync;function requireSync(){const _0x24118d=_0x2dfd83;if(hasRequiredSync)return sync;hasRequiredSync=0x1;const {RawDb:_0x3a83bd}=requireRawdb();class _0x396fec{constructor(_0x11bb23){this['_s']=_0x11bb23;}get['_ackDb'](){const _0x42939d=_0x5aff;return this['_ack']||(this[_0x42939d(0x75a)]=new _0x3a83bd(this['_s']['okdb'][_0x42939d(0x540)],_0x42939d(0x424)));}[_0x24118d(0x7b3)](){const _0x527651=_0x24118d;return this[_0x527651(0x148)];}['_ensureDbs'](){return this['_ackDb'];}['_n'](_0x5d3b6f,_0x138631=[]){const _0x5100fd=_0x24118d;return this['_s']['_n'](_0x5100fd(0x7ba)+_0x5d3b6f,_0x138631);}[_0x24118d(0x1f4)](_0x10da24,_0x4c5da0){return this['_n']('recordPeerAck',[_0x10da24,_0x4c5da0]);}async[_0x24118d(0x61b)](_0x439800){return this['_n']('forceResync',[_0x439800]);}[_0x24118d(0x444)](){const _0x54b986=_0x24118d;return this['_n'](_0x54b986(0x444));}[_0x24118d(0x71f)](_0xe10292){const _0x4c8932=_0x24118d;return this['_n'](_0x4c8932(0x71f),[_0xe10292]);}async[_0x24118d(0x53f)](){const _0xa62b32=_0x24118d;return this['_n'](_0xa62b32(0x53f));}['getStatus'](){const _0x47b891=_0x24118d;return this['_n'](_0x47b891(0x59e));}[_0x24118d(0x160)](){const _0x100bdb=_0x24118d;return this['_n'](_0x100bdb(0x160));}[_0x24118d(0x1ff)](){const _0x1d5a64=_0x24118d;return this['_n'](_0x1d5a64(0x1ff));}get[_0x24118d(0x1e2)](){const _0x5b28ba=_0x24118d;try{return this['_n'](_0x5b28ba(0x19e))?{}:null;}catch{return null;}}}class _0x24353f{constructor(_0x45186e){const _0x417563=_0x24118d;this['okdb']=_0x45186e,this['gc']=new _0x396fec(this);const _0x12e469=this;this[_0x417563(0x51c)]=new Proxy({},{'get':(_0x443fac,_0x208c55)=>typeof _0x208c55==='string'?_0x12e469['_n'](_0x417563(0x51c))[_0x208c55]:undefined,'set':(_0x1420e0,_0xef618b,_0x49582e)=>{const _0x11cfe0=_0x417563;if(_0xef618b===_0x11cfe0(0x6ad))_0x12e469['_n'](_0x11cfe0(0x750),[_0x49582e??null]);else{if(_0xef618b===_0x11cfe0(0x15e))_0x12e469['_n'](_0x11cfe0(0x113),[_0x49582e??null]);else{if(_0xef618b==='delta_limit')_0x12e469['_n'](_0x11cfe0(0x4ba),[_0x49582e]);}}return!![];},'ownKeys':()=>Object[_0x417563(0x6e4)](_0x12e469['_n']('options')),'getOwnPropertyDescriptor':(_0x57be0e,_0x2bc272)=>({'enumerable':!![],'configurable':!![],'value':_0x12e469['_n'](_0x417563(0x51c))[_0x2bc272]}),'has':(_0x3600eb,_0x535e78)=>_0x535e78 in _0x12e469['_n'](_0x417563(0x51c))});}['_n'](_0x1a5143,_0x464907=[],_0x4ca43c=![]){const _0x604ef7=_0x24118d;return this['okdb'][_0x604ef7(0x11e)](_0x604ef7(0x630),null,_0x1a5143,_0x464907,_0x4ca43c);}[_0x24118d(0x7e5)](_0x3d0b88,_0xd2d5cb=[]){const _0x112b29=_0x24118d;return this[_0x112b29(0x538)][_0x112b29(0x687)]('sync',null,_0x3d0b88,_0xd2d5cb,!![]);}get[_0x24118d(0x7e0)](){const _0x4601e2=_0x24118d;return this[_0x4601e2(0x6ac)]||(this[_0x4601e2(0x6ac)]=new _0x3a83bd(this['okdb'][_0x4601e2(0x540)],'__sync:peer_state'));}[_0x24118d(0xd0)](){const _0x3dfcee=_0x24118d;return this[_0x3dfcee(0x7e0)];}get['syncLock'](){const _0x15084c=_0x24118d;return this[_0x15084c(0x2ca)]||(this[_0x15084c(0x2ca)]=new(requireLock())[(_0x15084c(0x18e))](this['okdb'],_0x15084c(0x513),'sync',{'ttlMs':0x7530}));}get['address'](){const _0x5c8f65=_0x24118d;return this['_n'](_0x5c8f65(0x51c))[_0x5c8f65(0x6ad)];}get[_0x24118d(0x3e0)](){const _0x363ab0=_0x24118d;return this['okdb'][_0x363ab0(0x56b)]&&this['_n'](_0x363ab0(0x589))?{}:null;}get[_0x24118d(0x69f)](){const _0x950495=_0x24118d;return this[_0x950495(0x3e0)];}get[_0x24118d(0x49f)](){const _0x5ba1cb=_0x24118d;return this['_n'](_0x5ba1cb(0x666))?.['privateKey'];}get[_0x24118d(0x46a)](){const _0x51f285=_0x24118d;return this['_n'](_0x51f285(0x666))?.[_0x51f285(0x74a)];}[_0x24118d(0x76d)](){const _0x26736d=_0x24118d;return this['_n'](_0x26736d(0x76d));}[_0x24118d(0xbd)](){const _0x5955ba=_0x24118d;return this['_n'](_0x5955ba(0xbd));}get[_0x24118d(0x74d)](){const _0x5cb811=_0x24118d;return this[_0x5cb811(0x67f)]||(()=>this['_n'](_0x5cb811(0x74d)));}set['peers'](_0x511f98){const _0x2a683a=_0x24118d;this[_0x2a683a(0x67f)]=typeof _0x511f98===_0x2a683a(0x656)?_0x511f98:null,this['_n'](_0x2a683a(0x73f),[this[_0x2a683a(0x67f)]]);}[_0x24118d(0x52a)](){return this['_n']('listPeers');}async[_0x24118d(0x78a)](){const _0x1a0b48=_0x24118d;return this[_0x1a0b48(0x7e5)](_0x1a0b48(0x78a));}async[_0x24118d(0x407)](_0x578312){const _0x3e62cb=_0x24118d;return this[_0x3e62cb(0x7e5)](_0x3e62cb(0x407),[_0x578312]);}async[_0x24118d(0x5ff)](_0xcdc0b3,_0x3158eb={}){const _0x101ba6=_0x24118d;return this[_0x101ba6(0x7e5)](_0x101ba6(0x28f),[_0xcdc0b3,_0x3158eb]);}[_0x24118d(0x1ff)](){const _0x3b3d73=_0x24118d;return this['_n'](_0x3b3d73(0x1ff));}[_0x24118d(0xb2)](){const _0x52d6e7=_0x24118d;return this['_n'](_0x52d6e7(0xb2));}async[_0x24118d(0x516)](_0x2966ec,_0x298da1={}){const _0x97c387=_0x24118d;return this['_n'](_0x97c387(0x516),[_0x2966ec,_0x298da1],!![]);}async[_0x24118d(0x695)](_0x3eb3f7){const _0x276f2d=_0x24118d;return this['_n'](_0x276f2d(0x695),[_0x3eb3f7],!![]);}[_0x24118d(0x7de)](_0x312a20){const _0x2880e8=_0x24118d;return this['_n'](_0x2880e8(0x604),[_0x312a20]);}['_getPeerState'](_0x2c5693){const _0x6d6459=_0x24118d;return this['_n'](_0x6d6459(0x11f),[_0x2c5693]);}async[_0x24118d(0x531)](_0x371b05,_0x2853bf,_0xca47d4={}){const _0x140efe=_0x24118d;return this['_n'](_0x140efe(0x2bd),[_0x371b05,_0x2853bf,_0xca47d4]);}async['_ensurePeerState'](_0x6759a8){return this['_n']('ensurePeerState',[_0x6759a8]);}async[_0x24118d(0x6ff)](){const _0x5ccf8e=_0x24118d;return this['_n'](_0x5ccf8e(0x5c8),[],!![]);}async[_0x24118d(0x22b)](_0x15f9e2){const _0x3a793f=_0x24118d;return this['_n'](_0x3a793f(0x22b),[_0x15f9e2],!![]);}async['join'](_0x38bfd2,_0x2aba85={}){return this['_nm']('join',[_0x38bfd2,_0x2aba85]);}async[_0x24118d(0x62d)](_0x3fa6aa={},_0x142d11={}){const _0x1cbf45=_0x24118d;return void _0x3fa6aa[_0x1cbf45(0x513)],this['_n'](_0x1cbf45(0x62d),[_0x3fa6aa,_0x142d11]);}async['fetchPeer'](_0xd9adec,_0x705d91,_0x2724bc,_0x2892ff){const _0x5ae0b0=_0x24118d;return this[_0x5ae0b0(0x7e5)](_0x5ae0b0(0x4c4),[_0xd9adec,_0x705d91,_0x2724bc,_0x2892ff??null]);}async[_0x24118d(0x317)](_0x474a54,_0x4ee965,_0x5377a9={}){const _0x4d14ee=_0x24118d;return this[_0x4d14ee(0x7e5)](_0x4d14ee(0x317),[_0x474a54,_0x4ee965,_0x5377a9]);}[_0x24118d(0x3e1)](_0x15dbf4,_0x391094=null){const _0x17b88d=_0x24118d;return this['_n'](_0x17b88d(0x285),[_0x15dbf4,_0x391094?_0x391094[_0x17b88d(0x5d1)]:null]);}[_0x24118d(0x58e)](_0x210ef0,_0x25c142=null){return this['_n']('applyChange',[_0x210ef0,_0x25c142?_0x25c142['name']:null],!![]);}}return sync={'OKDBSync':_0x24353f},sync;}var migrate,hasRequiredMigrate;function requireMigrate(){const _0x3c2a2b=_0x2dfd83;if(hasRequiredMigrate)return migrate;hasRequiredMigrate=0x1;const {optionsArg:_0x1f0e61}=requireErrors(),_0x219f53=require$$0,_0xb29600=require$$4,_0xa90bf3=0x40*0x400;async function _0x160dfc(_0xc7a49e,_0x2f29f1){const _0x14fc63=_0x5aff;for(let _0x4055e2=0x0;_0x4055e2<_0x2f29f1[_0x14fc63(0x42c)];){let _0x5cb056=Math['min'](_0x2f29f1[_0x14fc63(0x42c)],_0x4055e2+_0xa90bf3);if(_0x5cb056<_0x2f29f1[_0x14fc63(0x42c)]){const _0x4b1b0b=_0x2f29f1[_0x14fc63(0x43c)](0xa,_0x5cb056-0x1);_0x5cb056=_0x4b1b0b===-0x1?_0x2f29f1['length']:_0x4b1b0b+0x1;}const _0x30d68f=_0xc7a49e[_0x14fc63(0x5b4)](_0x2f29f1[_0x14fc63(0x50f)](_0x4055e2,_0x5cb056));_0x4055e2=_0x5cb056;if(!_0x30d68f)await new Promise(_0x39a1fc=>_0xc7a49e[_0x14fc63(0x171)](_0x14fc63(0xba),_0x39a1fc));await new Promise(_0x44384a=>setImmediate(_0x44384a));}}async function _0x116e86(_0x487180){const _0x994857=_0x5aff,_0x4801e0=[];for await(const _0x5834ec of _0x487180)_0x4801e0[_0x994857(0x782)](Buffer[_0x994857(0x1b4)](_0x5834ec)?_0x5834ec:Buffer[_0x994857(0x6a2)](_0x5834ec,_0x994857(0x3be)));return Buffer['concat'](_0x4801e0);}class _0x27a85d{constructor(_0xf8ecf9){this['okdb']=_0xf8ecf9;}['_n'](_0x1ab87f,_0x25484e){const _0x2d47b6=_0x5aff;return this['okdb'][_0x2d47b6(0x11e)](_0x2d47b6(0x6e0),null,_0x1ab87f,_0x25484e,!![]);}async[_0x3c2a2b(0x64d)](_0x47c126,_0x2be323={}){const _0x277fa5=_0x3c2a2b,{data:_0x13a117,stats:_0x5a05cf}=this['_n']('exportBuf',[_0x2be323]);return await _0x160dfc(_0x47c126,Buffer[_0x277fa5(0x6a2)](_0x13a117)),_0x5a05cf;}async['exportToFile'](_0x58362e,_0x1cf940={}){const _0xcdee19=_0x3c2a2b;_0x219f53[_0xcdee19(0x790)](_0xb29600[_0xcdee19(0x702)](_0x58362e),{'recursive':!![]});const _0x4bad01=_0x219f53[_0xcdee19(0x29e)](_0x58362e),_0x166dda=await this[_0xcdee19(0x64d)](_0x4bad01,_0x1cf940);return await new Promise((_0x51b05d,_0x5c9169)=>{const _0x4bedf7=_0xcdee19;_0x4bad01['end'](),_0x4bad01['once'](_0x4bedf7(0x1c2),_0x51b05d),_0x4bad01[_0x4bedf7(0x171)](_0x4bedf7(0x606),_0x5c9169);}),{..._0x166dda,'filePath':_0x58362e};}async[_0x3c2a2b(0x61f)](_0x1da449,_0x5caa8c={}){const _0x21ced6=_0x3c2a2b,{data:_0x193271,stats:_0x56cbc6}=this['_n'](_0x21ced6(0x697),[_0x5caa8c]);return await _0x160dfc(_0x1da449,Buffer[_0x21ced6(0x6a2)](_0x193271)),_0x56cbc6;}async[_0x3c2a2b(0xf0)](_0x5a0fff,_0x1b7355={}){const _0x59a264=_0x3c2a2b,_0x188484=await _0x116e86(_0x5a0fff),{onProgress:_0xbb10a0,..._0x2ecec4}=_0x1b7355,_0x376ee1=this['_n'](_0x59a264(0x6fc),[_0x188484,_0x2ecec4]);if(typeof _0xbb10a0===_0x59a264(0x656))_0xbb10a0({'type':null,'count':_0x376ee1[_0x59a264(0x324)]});return _0x376ee1;}async[_0x3c2a2b(0x139)](_0x5e2fd0,_0x227f75={}){const _0x4b0e1d=_0x3c2a2b;return this[_0x4b0e1d(0xf0)](_0x219f53[_0x4b0e1d(0x745)](_0x5e2fd0,{'encoding':_0x4b0e1d(0x3be)}),_0x227f75);}async[_0x3c2a2b(0x162)](_0x4dca17,_0x369b2b={}){const _0x4dcfb1=_0x3c2a2b;return this['_n'](_0x4dcfb1(0x162),[_0x4dca17,_0x369b2b]);}[_0x3c2a2b(0x3f0)](){const _0x4b8210=_0x3c2a2b;return this['_n'](_0x4b8210(0x3f0),[]);}['resolveBackupDest'](_0x276b7f){return this['_n']('resolveBackupDest',[_0x276b7f??null]);}async['export'](_0x1da8c4={}){return this['_n']('export',[_0x1da8c4]);}async[_0x3c2a2b(0x6e3)](_0x5e6fe7,_0x5c7ec6={}){const _0xd3cd1f=_0x3c2a2b;return this['_n'](_0xd3cd1f(0x6e3),[_0x5e6fe7,_0x5c7ec6]);}async['exportJSON'](_0x4d788f){const _0xd0d5db=_0x3c2a2b,{pretty:pretty=![]}=_0x1f0e61(_0x4d788f);return JSON[_0xd0d5db(0x7cf)](await this[_0xd0d5db(0x6d2)](),null,pretty?0x2:0x0);}async[_0x3c2a2b(0x326)](_0x49bf16){const _0x3ace14=_0x3c2a2b;return this[_0x3ace14(0x6e3)](JSON[_0x3ace14(0x3c1)](_0x49bf16));}[_0x3c2a2b(0x176)](){const _0x3b8de3=_0x3c2a2b;if(!this[_0x3b8de3(0x538)][_0x3b8de3(0x4a8)][_0x3b8de3(0x73e)]('default')?.[_0x3b8de3(0x66f)])throw new Error(_0x3b8de3(0x60c));}async[_0x3c2a2b(0x786)](_0x198d81){const _0x35f0d9=_0x3c2a2b;return this[_0x35f0d9(0x176)](),this['_n'](_0x35f0d9(0x786),[_0x198d81]);}async[_0x3c2a2b(0x7c5)](_0x23dd6f){const _0x5b8ee3=_0x3c2a2b;return this[_0x5b8ee3(0x176)](),this['_n']('importBlobs',[_0x23dd6f]);}['_allEnvsWithFiles'](){const _0x195904=_0x3c2a2b;return this['_n']('envsWithFiles',[])[_0x195904(0x78f)](_0x1ddaaf=>this[_0x195904(0x538)][_0x195904(0x114)](_0x1ddaaf));}async[_0x3c2a2b(0x7b4)](){const _0x4a1ec0=_0x3c2a2b;return this[_0x4a1ec0(0x176)](),this['_n'](_0x4a1ec0(0x7b4),[]);}async['repairBlobRefs'](){const _0x5e5989=_0x3c2a2b;return this[_0x5e5989(0x176)](),this['_n'](_0x5e5989(0x417),[]);}}return migrate={'OKDBMigrate':_0x27a85d},migrate;}var mcp,hasRequiredMcp;function _0x5b0a(){const _0x24d79d=['version','queue:enqueued','isLoopbackIp','return\x20fromCharCode(','log','setDefaultTTL','areIndexesReady','files','_warnUnknownOptions','getSchema','vectorStoreStats','each\x20process()\x20entry\x20requires\x20a\x20non-empty\x20`type`','streamRead','engines','handleError','~ttl:key','queue:failed','http','Invalid\x20index\x20key\x20type\x20for\x20\x27','context','entries','job.priority\x20must\x20be\x20int','registerAlgorithmFactory','__peers','getUniqueViolations','_subsV2Obj','failures','$mod','okdb_session','\x20documents\x20fail\x20validation','exclusiveStart','_callMacro','getStateAt','keyFor','_handlerName','ITEM_REMOVE','setMode','released\x20at\x20the\x20first\x20await/turn\x20boundary.\x20Consume\x20ranges\x20before\x20any\x20await,\x20or\x20','payload','transactionSync','pending','INDEXER_DOC_DONE','_closeEnvLocally','node:cluster','add','removeLink',':keyToChange','exportEnvsBuf','unregisterTarget','isBootstrap','usedBy','pid','ctxHeartbeat','_isExpired','key','_pokeListener','handler','~log','from','startIndex','runDrop','__absent','last','existsSync','return','processorsParticipating','_registerType','setKick','_pdb','address','INVALID_PRIMARY_KEY','resumeOpts','processor:\x20quantum.module\x20must\x20be\x20a\x20string','ctxUpdateStatus','handle','HTTP_ERROR','pauseAllAndDrain','setKeyBuffer','bus:proc','compact','loaded','subscribe','use','_admissionStarted','isActive','refill_amount','transaction','_ts','noteListenAddr','listTypes','resetCursor','SKIP','toJSON','ms\x20p99=','\x22\x20on\x20\x22','durableMarkFail','transaction\x20commit\x20failed','_quantum','setInt32','staticCall','_indexBuilds','storeGetTotalHeadCount','compactStorage','repair','bootSyncedEngines','_busFacade','export','mcp','rowKey','assign','apiCall','createSession','\x22)\x20before\x20open()','dropped','requires','BAD_PARAM','consumeLoginState','_buildOwnRow','geoConfig','$lt','migrate','INDEX_ALREADY_REGISTERED','_macro','import','keys','locks','registerReducer','_run','openDB','$gte','done_ttl','_ensureEnv','index','sha256','reg','retryJob','throw','ENGINE_DRIVER_MISSING_START','_readViewExpired','isWorker','unique:violation_resolved','bus','okdb-node:\x20unknown\x20callback\x20id\x20','INVALID_ARGUMENT','job.','readString\x20}','_makeLazyVectorAdapter','stream','importBuf','_rebuilding','intervalTimer','_ensure','_ttlTimeout','_staticCall','dirname','_pendingLocal','getFloat64','resolve','bulkRemoveChunk','invalid\x20job.status:\x20',':index','_refIndexDb','$regex','_bootLog','server','useReadTransaction\x20read\x20view\x20expired:\x20the\x20snapshot\x20was\x20released\x20at\x20the\x20first\x20await/turn\x20','selfKey','localViewNames','_claimGated','_remove','job_type.defaults.max_tries\x20must\x20be\x20int\x20>=\x201\x20or\x20null','runStart','bootRuntimeDeclarations','envSize','resume','onUndo','ALREADY_EXISTS','OKDBNotFoundError','index:drop','randomUUID','_ensureDesired','resolveField:\x20options.batch\x20must\x20be\x20a\x20function','register','getGcHorizon','started','set','allocUnsafeSlow','engine','Error','lastError','pumping','_registrations','state','hasUniqueViolations',':\x20unknown\x20option\x20\x27','207DvYyJi','engineUninstall','clockToChangeDb','tryAcquire','embeddings:pipeline:ready','INDEXER','_set','embeddings:strategy:registered','subscriptions-store:\x20addInterest\x20on\x20unknown\x20session\x20','workers','getValues','signalWant','embeddings','callAsync','resolvedFields','family','startClaimed','abort','fromCharCode','get','setPeersFn','./native-loader.js','INDEX_HAS_CONSUMERS','\x20=\x20source[position++]\x0a\x09\x09\x09else\x0a\x09\x09\x09\x09return\x20fromCharCode(','Engine\x20template\x20id\x20must\x20be\x20a\x20non-empty\x20string','build','createReadStream','_handle','vec:','\x20references\x20','_settled','publicKey','closeSession','failed','peers','expiresAt','markJobFail','setAddress','_isClosedEnvError','Feature\x20not\x20available\x20on\x20free\x20tier:\x20','prefetch','TXN_ERROR','_adminRelay','_drainOne','pokeHandler','INDEXER_DOC_FAILED','enableAll','_ack','_locks','_uid','authOpen','reject','createIndexer','auth','checkSignals','_retryPending','inFlight','rollback','typeId','ExtendedIterable','storeHasDiff','_compactLock','record','_desired','getChanges','getLegacyCursor','info','use\x20engines.registerDriver()','job.backoff_multiplier\x20must\x20be\x20number\x20>=\x201','equal','rebuild','call','FTS_FLUSH_TIMEOUT',':data','_ttlByKey','byteLength','SCHEMA_VALIDATION_FAILED','itemsPlan','\x20=\x20finishUtf8(','enqueue\x20txn\x20belongs\x20to\x20a\x20different\x20environment','_makeIterator','addInterest','createHash','iterable','iterate','allSettled','emitClearDone','push','type:','~processes:cmd','listening','exportBlobs','some','object','readTransaction','reconcile','fieldPath','__ttlCancelledGen','_lock','_logEnv','map','mkdirSync','OKDB','shift','listModels','listBlobStatus','293376uwsiBh','isArray','tags\x20must\x20be\x20array\x20or\x20string','aborted','_running','idempotency_key','attachOKDB','trim','_durableIndexerDocs','_np','_dedupeKey','Can\x20not\x20serialize\x20async\x20iterables\x20without\x20first\x20calling\x20resolving\x20asArray','setNative','BAD_EMBEDDER_FACTORY','job.claim_id\x20must\x20be\x20string|null','_runRecord','job_type.defaults.ttl\x20must\x20be\x20int\x20>=\x200\x20or\x20null','claim','errors','wake','Can\x20not\x20serialize\x20key\x20of\x20type\x20','updateBucket','\x0a\x09\x09let\x20','freeze','WriteBatch','_setKey','OKDBAlreadyExistsError','enable','sortedDb','Referenced\x20type\x20\x27','_openAckDb','validateBlobIntegrity','job.tag\x20must\x20be\x20string|null','invalid\x20job_type.status:\x20','fetchJson','Index\x20\x27','job.status_code\x20must\x20be\x20string|null','gc.','chunks','new','limits','processorsStatus','maxBodyBytes','_listening','_markSeen','registerModule','registerIndexDeferred','halted','importBlobs','_jsSchemas','refItemsDbs','explainIndex','item','license:activated','docs','listRefViolations','_isOpenForIp','loop-lag','stringify','__notImplementedNative','registerType','fts:drop','loadedPath','has','signal','health','job.cron\x20must\x20be\x20string|null','getTypeCount','current','attachFeed','retryFailed','ONLINE','role','_getNodeRecord','$or','_peerDb','removeEnvironment','_callPacked','OKDBForeignKeyError','_sub','_nm','refreshTtl','module','incoming','Transaction\x20already\x20closed','uninstallEngine','properties','_defaultEnvObj','_timerObjs','setHostPlugins','type','extend','Cannot\x20openEnv(\x22','_key','listLinks','_closeReadTransaction','\x20>\x204)\x20{\x0a\x09\x09\x09if\x20(','ITEM_CREATE','sourceKey','HTTP\x20','_durableEngineDoc','byteOffset','drain','unknown\x20promise\x20token','~engines','getSelfNode','_ensureTokensType','_stopAutoCompactCheck','process()\x20entry\x20\x22','txn\x20op\x20must\x20be\x20an\x20object\x20or\x20tuple','streamByHash','restart','_formerOrigins','meta','process','describeType','enqueue','WORKER','byLabel','bucket','now','_durableEmbedderInfo','drop','reducer','_openLocalPeerDb','compare','$nin','hook','level','inspect','processor','ms/','T_INTEREST','announceEnqueued','child','enforced','registerBucketProjection','filterSessionsForType','starting','_makePipelineApi','lock','.\x20The\x20active\x20license\x20does\x20not\x20enable\x20\x22','@harperdb/extended-iterable:skip','events','.\x20Only\x20primitives,\x20null,\x20Buffers,\x20and\x20arrays\x20are\x20allowed.\x20Got:\x20','filter','req','envs','paused','~files','job_type.defaults.retry_delay\x20must\x20be\x20int\x20>=\x200\x20or\x20null','a\x20non-empty\x20string','$defs','lookupByTokenHash','defaults','hasDriver','importFromStream','encryptionKeys','getRunningEngine','returnRecoverableErrors','Unable\x20to\x20serialize\x20object\x20as\x20a\x20key:\x20','$size','_searchWithScores','SEARCH','$elemMatch','bootRuntime','~file:blob_status','scheduled','processor:\x20module\x20\x27','ceil','instance','_durableWorkerStats','durableRetryDoc','\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer','remove','createPipeline','resetFts','isFinite','_meta','getIndex','DONE','bus:poke','forgetDb','HIGH_SENTINEL','resolveField:\x20options.batchSize\x20must\x20be\x20a\x20positive\x20integer','put','openEnv','CHANGEFEED_QUANTUM','_changeToClockDb','_settle','_flushTimer','setToken','env','_root','data','status_message','_OPTION_HINTS','lmdb','for','_started','processor:error','encoder','_call','getPeerState','createdBy','listVectorStores','setFilter','ensureDesired','getOpenWarning','job\x20id\x20required','draining','_getRaw','recomputeFields','SYSTEM_STOPPED','select','ftsQuery','$nor','_inlineClosureWarned','_stream','_stateDb','changeEncryptionKey','fts','\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.','_isFar','ctxEmit','queue:done','startNewEnginesFromSync','OKDBInvalidValueError','onDo','importFromFile','Engine\x20driver\x20type\x20must\x20be\x20a\x20non-empty\x20string','embedder\x20is\x20gone','isSetupMode','_lazyPinned','_debounceTimer','FOREIGN_KEY_DELETE_RESTRICTED','boundary\x20(a\x20pinned\x20read\x20txn\x20blocks\x20LMDB\x20free-page\x20reuse).\x20Do\x20all\x20consistent\x20reads\x20','pressure','encryption:key-changed','_read','Invalid\x20primary\x20key\x20type:\x20','bucket.tokens\x20must\x20be\x20int\x20>=\x200','createPublicKey','ttl:expired','_ackDb','ITEM_PENDING','\x27\x20on\x20type\x20\x27','_nextExpiry','storage\x20adapter\x20has\x20no\x20method\x20','onWindow','turn','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.','pumpEnvSync','registerViewReducer','dropSchema','active','syncBlobs','durableDoc','stats','listAlgorithms','installed','offset',':txnRange','\x27\x20at\x20','setEncryptionKey','\x20which\x20does\x20not\x20exist','token','~processes','start','createEngine','backup','_subsV2','ingest','dedupeMax','_pumper','status_code','search','backoff_multiplier','writerWatchdog','admin','_ensureDbs','args','ttl:set','getCursor','_blobStream','once','end','indexStats','buffer','prototype','_assertFiles','job.retry_delay\x20must\x20be\x20int\x20>=\x200','max_tries','_tokenSecret','readerCheckIntervalMs','_asArray','compactLock','modeApplied','hash','process\x20options.admission\x20must\x20be\x20a\x20function','registerQuantum:\x20load\x20must\x20be\x20a\x20function','_statusEnv','isHeld','onDone','_refCache','feed:','definition','_callRows','3.1.2','fts:','_facade','getIndexCount','normalizeOAuthAuthResult','updated_at','NativeLock','asArray','dbs','stopped','_handles','index:registered','_readerCheckInterval','batch','_deliver','_logsDb','embedderCall','node:http','hasType','ref','listViolations','refs','timerArmed','Referenced\x20key\x20\x27','listJobTypes','creating','createEnvironment','_http','clearTTL','getBlobStatus','embedder','indexer','ttl:clear','$payload','ALL_EVENTS','streamClose','updated','getStats','sweepExpiredTTL','_fail','node:fs','_sweepInProgress','_setTTL','job.buckets[].tokens\x20must\x20be\x20int\x20>=\x201','isBuffer','itemsDb','authenticateRequest','_rootDb','__tokenSecret','_localViewApi','patch','_advanceHlcOnRecv','$near','algorithm\x20is\x20gone','encryptionKey','fingerprint','restrict','toLowerCase','finish','isIndex','algorithm\x20has\x20no\x20method\x20','_pokeHandler','Database\x20already\x20opened/closed','Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results','OKDBVersionMismatchError','_tickCallback','_autoCompact','destroy','storePayload','_typesDb','_wsettle','system:stopped','value','engine:','application/octet-stream','pin','getOidcDiscovery','_db','job_type.payload_schema.enforce\x20must\x20be\x20boolean','removeJobType','.\x20Primary\x20keys\x20must\x20be\x20string\x20or\x20number.\x20Got:\x20','pipeline','typesDb','system:poke','updateJob','_handlePoke','getBinary','Unsupported\x20transaction\x20action:\x20','dup','setLastClock','_gcTimer','Algorithm\x20factory\x20must\x20be\x20a\x20function','sseSend','getCount','applyInterestDelta','reidentify','issueToken','Query\x20operator\x20\x22','Blob\x20not\x20found:\x20','txn:rollback','ensure:\x20fts\x20entry\x20missing\x20name\x20or\x20fields','digest','\x22\x20not\x20found\x20in\x20~envs','bumpVersion','attachConsole','number','getInt32','validateRouteInput','recordPeerAck','metaDb','~proc:state','ensureFeed','1711882ZELTXJ','validate','addSSE','\x20already\x20exists','registerIndex','proc','_getType','stop','dataView','diag',':\x20key\x20[','OKDBForeignKeyDeleteError','_lookupAllByName','_assertRangeOptions','preview','runPoll','storeEnvName','_onItem','_tids','STOPPED','pipelines','processorsStart','describeChunk','bus:type_drop','491489ECbagW','processor:\x20module.path\x20is\x20required','unref','quarantined','sparse','bind','_path','(source)\x20=>\x20{','hasEnv','RangeError','disable','compression','removed','_range','_dupArg','$streamId','stopping','job_type.id\x20must\x20be\x20non-empty\x20string','prepareTxnEnqueue','job_type.defaults.buckets\x20must\x20be\x20array|null','sweepExpired','endsWith','_blobsDir','Version\x20mismatch\x20for\x20','floor','_oauthConfig','detach','patchSelf','CLI\x20(`okdb\x20listen`),\x20or\x20use\x20Node\x27s\x20built-in\x20`cluster`\x20module\x20and\x20call\x20','resetIndexBegin','api','_sinks','resolveField:\x20a\x20resolver\x20or\x20options.batch\x20is\x20required','set_null','refill_every','_baselines','_customReducers','schema:drop','dataEnv','_windowCbs','samplePayloads','bootSyncedViewsInline','an\x20environment\x20name','formerIds','Index\x20\x22','.\x20Valid:\x20','clearDone','UNIQUE_CONSTRAINT','okdb.noFast','refreshThresholdMs','effective','_changefeed','tierList','$options','dir','tags','relay','ies','__blobStatusDb','REF_VIOLATION_RESOLVED','clearStuck','__warned','claim_expires','process(filter)','isReader','_put','1627670cgrOpW','send','embed','claimed','awaitIdle','_onPending','nextTick','callBatch','node:util','_hlc','engineType','inline','clearSync','listIndexKeys','_clearChunked','_flushIntervalTimer','removeEventListener','max_concurrency','getDefaultTTL','index:reset','\x22\x20must\x20have\x20a\x20start()\x20method','TXN_START','mapError','meanwhile\x20—\x20the\x20frozen\x20view\x20cannot\x20be\x20kept.\x20Materialize\x20synchronously\x20(e.g.\x20Array.from)\x20','byIndex','non-empty\x20string','registerHandler:\x20fn\x20must\x20be\x20a\x20function','clearTtl','label','finished','ctxSignal','forceAfterMs','bucket\x20\x22','_assertOpen','indexContent','durableRetryFailed','_clearTTL','~processes:desired','_txnIdAtSnapshot','_closedHandle','log\x20entry\x20fields\x20must\x20be\x20object|null','setMaxBodyBytes','durability','-----BEGIN\x20PUBLIC\x20KEY-----\x0aMCowBQYDK2VwAyEAacrkExPrhxNVHyeQBLDwg8xfm1OwyxDAPNdGXABYS2s=\x0a-----END\x20PUBLIC\x20KEY-----','versions','must\x20be\x20an\x20object;\x20got\x20null','hasStopFn','$not','_okdbAdminAttached','\x22\x20is\x20not\x20registered','toMs','shouldApplyChange','raw','online',':index:','STOPPING','\x27\x20is\x20not\x20a\x20function','ensure:\x20type\x20is\x20required','getIndexMeta','\x20document(s)\x20reference\x20it\x20with\x20onDelete:restrict','QUERY_OPERATOR_FORBIDDEN','reconcilePeerPull','job.claim_expires\x20must\x20be\x20number|null','charCodeAt','embedBatch','fetch','_ttlState','_initialize','stateInfo','resolveData','ready','committed','system:env-sync','_enableChangelog','resetUnknownOptionsWarned','_detachLogSink','createWriteStream','\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','Key\x20is\x20too\x20large','stopWorkerAbort','encryption\x20key\x20function\x20failed:\x20','range','storeEnv','resetReadTxn','listTemplates','_native','searchWithScores','~queue_payloads','granId','readKey','features','logCap','retry','setModeApplied','run','callRows','_keepAlive','stopWorkerBegin','doesExist','bridge','_draining','clocks','retryable','stack','setTTL','inflight','fromEntries','setPeerState','resetView','clearScan','runtimeState','\x22\x20to\x20enable\x20it.','_id','registerDriver','split','getIndexStatus','_buckets','alg','getSession','TXN_INVALID_OPS','_syncLock','job_type.defaults\x20must\x20be\x20object|null','removeResolver','removeJob','config','~queue_buckets','_timerHandle','registerTemplate','json','inactive','registerHandler','_txnBuf','isType','cursorKey','links','turns','enableNullTermination',';return\x20{','planUpdateJob','PLUGIN_ALREADY_REGISTERED','mode','__adminRelay','(no\x20unambiguous\x20bookmark)\x20—\x20consume\x20it\x20in\x20one\x20synchronous\x20block:\x20materialize\x20(e.g.\x20','engineStop','ENGINE_DRIVER_ALREADY_REGISTERED','_env','load','replace','evict','log\x20entry\x20must\x20be\x20a\x20string\x20or\x20object','LICENSE_FEATURE_DISABLED','shutdownTimeout','INDEX_NOT_REGISTERED','headers','no_action','catalog','let\x20position;\x20let\x20readString\x20=\x20','hasIndex','_pressure','node:path',':emb:','reducers','timeMachine','doc_status:','enabled','\x27\x20does\x20not\x20exist','ttl','vector','path','_tx','stopAll','boolean','emit','taken','_addr',':useReadTransaction','startsWith','when','view:progress','\x20must\x20be\x20number','rows','registerEmbedderFactory','_maxConnections','getEmbedderFactory','bucket\x20too\x20long','buckets','removeJobLogsAfterCommit','__lock','Engine\x20template\x20build()\x20is\x20required:\x20','item:','percentile','ms\x20busy=','kind','__HOLD__',')\x20+\x20readString(source)}','txnDone','setSchema','fetchRemoteDelta','-worker','bus:env_release','Engine\x20template\x20must\x20be\x20a\x20plain\x20object','\x20(required\x20by\x20','_kbuf','gateQuanta','INVALID_OPTIONS','_buffer','done','listTTL','instanceTimerArmed','unique:violation','records','appendJobLog','importJSON','match','\x22\x20tokens\x20too\x20large','pause','localViewStats','settledTickets','reconcileDesired','clearFailed','queue:removed','regInfo','code','handlerName','durableMarkDelete','job_type.defaults.','__esModule','embeddings:embed:settled','_cursors','kickOwnedBy','fields','__ttlByKey','Engine\x20driver\x20for\x20\x22','offsetOf','Type\x20\x22','license','flushTicket','TXN_INVALID_ACTION','readFieldMany','_lookupByName','err','_attached','isWellFormed','listIndexes','bucket.refill_amount\x20must\x20be\x20int\x20>=\x200','readerCheck','isWanted','getUint32','job.buckets\x20entries\x20must\x20be\x20objects','busEmit','compaction','Type\x20\x27','__logsDb','spec','OKDBInvalidPrimaryKeyError','tries','assertCreateAllowed','job.id\x20must\x20be\x20string','error_stack','_startAdmission','forEach','\x22\x20must\x20be\x20a\x20plain\x20object','getMeta','ringSize','query','login','assertQueryOptions','job.idempotency_key\x20must\x20be\x20string|null','durableStats','4VQBYjq','BAD_PLUGIN','readField','engine\x20api\x20has\x20no\x20method\x20\x27','clearDefaultTTL','getAuthOptions','bus:drain','VERSION_MISMATCH','system:ready','host','near','loop-lag\x20','kick','flushQuantum','unresolveField','_undoHooks','_envSyncStop','listRuns','previewTemplate','EMBED_PENDING','OKDBNotImplementedNativeError','vecRemove','BAD_ALGORITHM_FACTORY','orchestrator','_localViews','quarantinedEnvs','_keyFns','ttlTimer','lockHeld','plugins','isOrchestrator','\x27\x20export\x20\x27','clients','listRecords','OKDBError','setStorageResolver','_isLoopbackIp','_license','targetType','TXN_INVALID_OP','job','Embedder\x20factory\x20must\x20be\x20a\x20function','\x20must\x20be\x20a\x20non-empty\x20string;\x20got\x20','flush','deleted','processes','write\x20batch:\x20missing\x20result','abs','ensure:\x20view\x20entry\x20missing\x20name\x20or\x20definition','processor:paused','view','debug','getClock','removeSync','job_type.','time-machine:','changeEncryptionKey:\x20to','_clockToChangeDb','DOC_STATUS_CHANGE','searchDocs','$and','setJobTypeSchema','flushPoll','_getFast','runRecord','unpin','node:perf_hooks','OKDBInvalidIndexKeyError','sync:apply','compiled','15TwvfUp','undefined','getBucket','indexReady','created','\x20dropped\x20(buffer\x20full)','cron','resetting','ctrl','$pending','registerQuantum:\x20name\x20must\x20be\x20a\x20non-empty\x20string','system:clock_change','summary','isEnabled','_readBuf','_push','resolveField:\x20field\x20required','OKDBIndexAlreadyRegisteredError','retry_delay','enforce','Buffer','refreshTtlBatch','mapSize','\x27\x20is\x20already\x20registered','getRange','utf8','dropIndex','\x27\x20doesn\x27t\x20exist','parse','pushEphemeral','gen','Schema\x20validation\x20failed\x20for\x20','target','listProviders','NOT_IMPLEMENTED_NATIVE','tag','removeBucket','inclusiveEnd','_rawTxnBuf','_scheduleFlush','buildStep','CREATED','bootSyncedPipelines','log\x20entry\x20fields\x20too\x20large\x20(>2KB\x20serialized)','license:removed','_writer','_wrap','quantum','__ttlByExpiry','storeGetDiffsInRange','storeEnvPath','countByIndex','job\x20type\x20must\x20be\x20object','_stopFor','header','_quantumGate','note','_ringSize','Native','_clockListener','_shouldApplyChange','detachFeed','snapshot','valuesForKey','_handleInProcess','queue:log','_dedupeMax','details','free','bucket.updated\x20must\x20be\x20number','group','_commitSessionMutation','sseSetHeader','hasOwnProperty','payload_schema','backupRoot','message','tick','iterator','_tools','close','\x27\x20did\x20not\x20return\x20a\x20valid\x20instance','connectionCount','drainJobType','functions','_writerWatchdogInterval','getPrototypeOf','_blobPath','_reconcileDesired','workerState','empty\x20string','hasChangelog','_startAutoCompactCheck','setClaiming','PLUGIN_NAME_CONFLICT','dirty','worker','inNativeCall','reconcilePeer','createWorker','timer','head','patchConfig','assertStartAllowed','continueOnRecoverableError','$within','flushDebounce','subscriptions-store:\x20open()\x20not\x20called','async','durableClock','killWorker','listFtsEnvs','writerStatus','\x20actions=','repairBlobRefs','FOREIGN_KEY_VIOLATION','groupsDb','parseBearer','_listenAddr','_rbuf','onLicenseExpired','logCap\x20must\x20be\x20null\x20or\x20integer\x20in\x20[','HTTP_CLUSTER_REMOVED','routes','_settleWaiters','status','defaultTTL','__sync:acks','busState','recordRun','$ref','/?$',':clockToChange','_handlePending','_resolveKeys','length','read','getKeys','tools','sift','queue','count','envNames','HTTP\x20server\x20already\x20running','describeTypeDetailed','bucket.capacity\x20must\x20be\x20int\x20>=\x200','index:progress','oauth','_validateOidcAccessToken','join','replaceInterests','indexOf','bucket.id\x20must\x20be\x20non-empty\x20string','progressed','_openEnvLazy','acquiredAt','markSnapshotComplete','_info','toFixed','getPeerAcks','getSecurityNotices','storageStats','then','embed-worker','_afterDurable','reduce','isDeepStrictEqual','license:invalid','isRunning','listPath','resumeJobType','_blobStatusTxn','replaceMember','mean','reencrypt:\x20env','_indexBuild','queue:clear-progress','resumeAllAfterDrain','processorHold','setPosition(p)\x20{\x20position\x20=\x20p\x20},','REF_VIOLATION','jsonrpcCode',']\x20already\x20maps\x20to\x20\x27','authorization','setClaimGated','job.bucket\x20must\x20be\x20string|null','Cannot\x20set\x20enforce\x20schema\x20on\x20','allowUnsafe','processors','prevDb','FTS_READY_TIMEOUT','setUint32','getEntry','_feed','isBun','Plugin\x20must\x20have\x20a\x20name','recommended','_nodePublicKey','list','pinned\x20range\x20iterator\x20parked\x20across\x20an\x20await/turn\x20boundary\x20and\x20the\x20env\x20was\x20written\x20','dims','tag\x20too\x20long','isWriter','asyncIterator','\x22\x20is\x20not\x20allowed\x20(it\x20evaluates\x20code);\x20use\x20declarative\x20operators\x20instead','$in','setFlushNotify','warn','claim\x20requires\x20non-empty\x20type','attach','writeKey','failed_ttl','size','wait','includeViolations','update','lookupByName','system:bus_state_change','KNOWN_OPTIONS','durableDocs','bucket\x20id\x20required','(?:','vecPut','env:opened','docEntry','typeStats','EMBEDDER','_lockHandle','_flushDebounce','getLoginConfig','__desired','string','markJobProgress','markJobComplete','internal','\x22\x20must\x20return\x20{\x20embed(input):\x20Promise<Float32Array>\x20}','txnId','min','_viewState','_onFeedChange','markJobHeartbeat','inBatch','_low','loginSelect','offWindow','_subscribeEvent','targetKey','txn:end','slice','MAXIMUM_KEY','_nodePrivateKey','storeGetDiffs','trunc','MCP_ERROR','job.buckets[].id\x20must\x20be\x20non-empty\x20string','values','remoteAddress','ENGINE_INVALID_TEMPLATE','socket','_envs','there\x20is\x20no\x20`http`\x20option\x20—\x20the\x20HTTP\x20server\x20exists\x20only\x20when\x20db.http.listen(port)\x20is\x20called','immediate','putSync','describeIndex','sessionId','job.buckets\x20must\x20be\x20array|null','ensureType','Use\x20module:{path,export}\x20alone,\x20or\x20handler:\x27<name>\x27\x20for\x20a\x20built-in.','childTransaction','debounceTimer','defineProperty','ENGINE_INVALID_DRIVER','releaseClaim','native','disableAll','continueIteration','~queue_jobs','setDeltaLimit','_build','useReadTransaction\x20range\x20consumed\x20after\x20the\x20creation\x20turn\x20—\x20the\x20consistent\x20view\x20was\x20','storeGetHead','_plugins','embeddings:doc:status_change','maxConnections','createAndStartEngine','_log','_rebuild','fetchPeer','autoCompactState','listNodes','authenticateToken','engineStart','runtimeDeclarations','compareKeys','schema','utf8Write','bucket.tokens\x20cannot\x20exceed\x20capacity','getHistory','_settleWrite','field\x20resolver\x20request\x20still\x20pending','addrs','~queue_logs','maxMs','crypto','INVALID_STATE','total','job.tries\x20must\x20be\x20non-negative\x20int','dropAll','bucket.refill_every\x20must\x20be\x20int\x20>=\x200','holder','release','blobsDir','processor:resumed','TXN_END','.\x20Add\x20a\x20license\x20that\x20includes\x20\x22','processor:\x20cannot\x20combine\x20a\x20closure\x20handler\x20with\x20module:{path,export}.\x20','createSearch','TXN_CLOSED','system:type_drop','opts','endIndex','handleResult','registerEnv','OKDBUniqueConstraintError','test','buckets\x20must\x20be\x20array\x20or\x20string','fail','exports','~sub','clock','pageSize','actions','feature','makeOkdb','Missing\x20plugin:\x20','emitWarning','Unique\x20constraint\x20violated\x20on\x20','ref:violation','created_at','Embedder\x20factory\x20for\x20\x22','_blobStatusDb','_sync','true','getRefViolation','_defaultEnv','compact/repair\x20already\x20in\x20progress\x20for\x20this\x20environment','vector-search','install','advanceHlcOnRecv','capacity','ensureTypeEnv','job_type.defaults.priority\x20must\x20be\x20int\x20or\x20null','gcOrphanedBlobs','addEventListener','~fts:','newListener','off','_doHooks','maxExtra','symbol','running','REBUILD_IN_PROGRESS','subarray','Invalid\x20onDelete\x20rule\x20\x27','default','listBuckets','~system','_resolveFilter','inputSchema','upsertLink','Symbol.asyncIterator','apply','_onStop','durableMarkDone','hasNativeBatch','options','SYSTEM_POKE','\x27\x20does\x20not\x20exist\x20in\x20type\x20\x27','processorsStop','_cmd','registerHandler:\x20name\x20must\x20be\x20a\x20non-empty\x20string','job.max_tries\x20must\x20be\x20int\x20>=\x201,\x20null\x20(unlimited)\x20or\x20Infinity','resolveModelDims','$exists','ttlMs','authenticated','removeJobTypeSchema','guard','/([^/]+)','_listPeers','createQueryTester','Plugin\x20\x27','getFast','reset','reason','OKDBIndexHasConsumersError','_setPeerState','node:crypto','Plugin\x20name\x20\x27','_store','REMOVE','ctxLog','__after','okdb','getEngine','getJob','create','applyOps','commit','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.','runGc','_systemEnv','items','SCHEMA_COLLECTION_INVALID','concat','getMany','okdb._openEnvLazy:\x20env\x20\x22','\x20does\x20not\x20exist','stderr','materializer','txn\x20ops\x20must\x20be\x20an\x20array','resolveField','cancelJob','_write','setBridge','logChange','_patch','_jsFactories','DEFAULT_EVENTS','nativeCode','views','field:resolver_registered','Cannot\x20delete\x20','735873CzSjmI','exists','DEFAULT_TTL_MS','priority','heartbeat','tokens','__fts:','_emitProc','doc','_deliverEvent','__cmd','addBucket','_ttlCompositeKey','resolveField:\x20type\x20required','includes','cascade','initialize','\x20│\x20','_reconcile','envName','FIELD_RESOLVER_PENDING','_isOpen','getEmbedderSchema','_teardownNative','setWake','$lte','_onPoke','\x22\x20requires\x20a\x20`handler`\x20function','acquired','reverse','hasApi','TYPE_NOT_REGISTERED','registerModel','tolerant','txn','clearAsync','sourceType','onDelete','max','_subscribed','okdb-node:\x20a\x20background\x20async\x20handler\x20rejected:\x20','getTTL','_emit','setCursor','unpack','WORKERS_REMOVED','ctxRelease','enqueueClaim','describeAllTypesDetailed','getByPrefix','description','drives','removeTxn','dupSort','durableRebuild','resolvedOptions','applyChange','removeInterest','_keyListener','refTrackingDbs','getDefinition','servers','String\x20does\x20not\x20fit\x20in\x20target\x20buffer','useReadTransaction','~ref_violations','node:events','OKDBTypeNotRegisteredError','stopView','job.tags\x20must\x20be\x20array','lastTxnId','getJobLogs','registerChunkStrategy','getStatus','getResolvedOptions','constructor','~lock','_ensureTypeEnv','Database\x20not\x20started','type:registered','okdb.http.listen(port)\x20in\x20each\x20worker.','callRows:\x20unexpected\x20row\x20stride\x20','admission','_timer','node','viewOp','cause','~ttl:expiry','_pending','patchDeclaration','durableTierLag','_ttlBackoffUntil','TypeError','5925570XSBExf','getJobType','write','\x22\x20not\x20found','unique','setPrototypeOf','primaryOkdb','~emb:models','OKDBTypeAlreadyRegisteredError','registerPreparer','Feature\x20not\x20licensed:\x20','captureStackTrace','job_type.payload_schema.definition\x20must\x20be\x20object','_noChangelog','embedder\x20request\x20still\x20pending','__syncOverride','READER_HELD_ACROSS_AWAIT','_isWriter','resumed','1438386BqOkEN','queue:retry','_closed','ensure','hybridQuery','getRaw','OKDBSchemaCollectionError','findOwner','flatMap','registerQuantum','closeEnvLocally','interest','name','limit','stateNames','outgoing','msgpackr','_connections','session','nextExpiry','_ensureVectorStore','open','duplicate\x20bucket:\x20','emitProc','\x20log\x20entr','references','itemsGroups','setProcessingConfig','drivers','pop','driver','useVersions','change',':\x20expected\x20','getAll','emb','__okdb','ttlStats','processor:\x20rebuild\x20must\x20be\x20a\x20function','licenses','library\x20(okdb\x20node-model\x202.0).\x20For\x20multi-process\x20HTTP\x20serving\x20use\x20the\x20okdb\x20','_features','fts:registered','dropType','clear','getUniqueViolation','geoQuery','autoCompact','subsBuilt','materialize\x20them\x20(Array.from)\x20while\x20the\x20view\x20is\x20live.','SYSTEM_CLOCK_CHANGE','catch','toBufferKey','body','bootLogMark','next','registerExtractor','bucketsDb','_reconcilePeer','getVector','\x27:\x20','grouped','getRun','getNodeRecord','find','error','listRoutes','blobPath','durableEngineDoc','embeddings:indexer:doc:done',';\x20got\x20','files\x20feature\x20not\x20available','_waitNative','vectorSpace','_syncExpiresAtField','sessionsForKey','customReducerNames','position','limitOf','getRecord','_processorStops','TXN_ENV_MISMATCH','Storage\x20resolver\x20must\x20be\x20a\x20function','_detachLog','nidFor','setMaxListeners','forceResync','isInteger','lookupAllByName','_workers','exportEnvsToStream','handleDurableClock','validateOidcAccessToken','PLUGIN_DEPENDENCY_MISSING','claimGated','pinned','clone','OKDBSchemaValidationError','queue-worker','Unknown\x20transaction\x20action:\x20','License\x20limit\x20exceeded:\x20','delete','_release','upload','calculateDelta','uninstall','uninstalled','sync','_logChange','TXN_ROLLBACK','_typeKeys','bucket\x20must\x20be\x20object','listen',')\x0a\x09\x09}\x0a\x09\x09','\x27\x20conflicts\x20with\x20existing\x20OKDB\x20property','Environment\x20\x22','fromBufferKey','_seen','origin','ENCRYPTION_KEY_REQUIRED','_admissionTimer','\x20was\x20removed\x20in\x20okdb\x202.0.\x20Use\x20processors:true\x20for\x20plain\x20lease\x20participation.\x20See\x20docs/upgrade-2.0.md.','__stateDb','_settleRead','_update','turnWaiters','changes','removes','describeAllTypes','resetIndex','standalone','job.type\x20must\x20be\x20non-empty\x20string','exportName','files.upload:\x20id','isOAuthEmailAllowed','no\x20write\x20has\x20landed.\x20Writes/commit\x20are\x20unaffected.','exportToStream','\x27\x20already\x20registered','_listeners','type:drop','QUEUE_WORKER_REMOVED','typeSubDbs','drainDeadlineMs','_detachConsole','types','function','ITEM_UPDATE','empty\x20array','hasBody','pipelineFamily','a\x20string','ctxProgress','maxDbs','prefix','_wb','encryption\x20key\x20function','hlc','durableCursorFloor','flushMaxWait','action','killAll','nodeKeys','ref:violation_resolved'];_0x5b0a=function(){return _0x24d79d;};return _0x5b0a();}function requireMcp(){const _0xaee013=_0x2dfd83;if(hasRequiredMcp)return mcp;hasRequiredMcp=0x1;class _0x694962{constructor(_0x25dbec){const _0x414146=_0x5aff;this[_0x414146(0x538)]=_0x25dbec,this[_0x414146(0x37f)]=new Map();}['_n'](_0x1691e2,_0x54f066){const _0x266f04=_0x5aff;try{return this[_0x266f04(0x538)][_0x266f04(0x11e)](_0x266f04(0x6d3),null,_0x1691e2,_0x54f066,!![]);}catch(_0xbf66e6){if(_0xbf66e6&&_0xbf66e6['code']===_0x266f04(0x4a2)&&_0xbf66e6[_0x266f04(0x3e8)]){if(_0xbf66e6[_0x266f04(0x3e8)][_0x266f04(0x45a)]!==undefined)_0xbf66e6[_0x266f04(0x45a)]=_0xbf66e6[_0x266f04(0x3e8)]['jsonrpcCode'];_0xbf66e6['details']=_0xbf66e6[_0x266f04(0x3e8)]['details'],_0xbf66e6['code']=undefined;}throw _0xbf66e6;}}[_0xaee013(0x3f4)](){const _0x4f463e=_0xaee013;return this['_n'](_0x4f463e(0x42f),[]);}async[_0xaee013(0x11e)](_0x516465,_0x21584f={}){return this['_n']('call',[_0x516465??null,_0x21584f??{}]);}async[_0xaee013(0x746)](_0x225aea,_0x53ac4e={}){const _0x163bad=_0xaee013;return this['_n'](_0x163bad(0x6b2),[_0x225aea,_0x53ac4e??{}]);}[_0xaee013(0x295)](_0xbfb959){const _0x577a3e=_0xaee013;return this['_n'](_0x577a3e(0x566),[_0xbfb959??null]);}}return mcp={'OKDBMcp':_0x694962},mcp;}var sys,hasRequiredSys;function requireSys(){const _0x194038=_0x2dfd83;if(hasRequiredSys)return sys;hasRequiredSys=0x1;function _0x554b1f(_0x1625a2,_0x2ffbdb,_0x4cbd5c){const _0x46cd6f=_0x5aff,_0x403d69={};for(const [_0x130a29,_0x2bdb4f]of Object[_0x46cd6f(0x67c)](_0x4cbd5c)){_0x403d69[_0x130a29]=_0x2bdb4f===_0x46cd6f(0x411)?async(..._0x2fa71f)=>_0x1625a2[_0x46cd6f(0x11e)](_0x2ffbdb,null,_0x130a29,_0x2fa71f):(..._0x13068a)=>_0x1625a2[_0x46cd6f(0x11e)](_0x2ffbdb,null,_0x130a29,_0x13068a,![]);}return _0x403d69;}const _0xe66e83=['listTypes',_0x194038(0x2d6),_0x194038(0xc7),_0x194038(0x645),_0x194038(0x345),_0x194038(0x1c3),'getIndexStatus',_0x194038(0x4ac),'describeIndexes',_0x194038(0x486),_0x194038(0x173),_0x194038(0x435),_0x194038(0x586),_0x194038(0xc5),_0x194038(0x7d8),_0x194038(0x18b),'isTypeEmpty',_0x194038(0x66e),_0x194038(0x7c8),'recomputeFields',_0x194038(0x25f)],_0x18410f={'add':_0x194038(0x411),'activate':_0x194038(0x411),'remove':_0x194038(0x411),'list':_0x194038(0x630),'get':_0x194038(0x630),'effective':'sync'},_0x16856c={'open':_0x194038(0x411),'register':_0x194038(0x411),'buildOwnRow':_0x194038(0x630),'_buildProcessingFacet':'sync','reportThreadStats':_0x194038(0x630),'clearThreadStats':_0x194038(0x630),'emitProc':'sync','addSupervisedChild':_0x194038(0x411),'removeSupervisedChild':_0x194038(0x630),'updateSupervisedChildStats':_0x194038(0x630),'publishChildRow':_0x194038(0x411),'putNode':_0x194038(0x411),'removeNode':_0x194038(0x411),'nodeDead':_0x194038(0x630),'listNodes':'sync','reap':'async','publishOwnRow':_0x194038(0x411),'deregisterSelf':_0x194038(0x411),'setOwnMeta':_0x194038(0x630),'noteListenAddr':'sync','hasDesired':_0x194038(0x630),'getDesired':_0x194038(0x630),'setDesired':_0x194038(0x411),'listDesired':_0x194038(0x630),'getCmd':'sync','bumpCmd':'async','processingStatusView':_0x194038(0x630),'processorsView':_0x194038(0x630),'clusterStatusView':_0x194038(0x630),'nodesView':_0x194038(0x630),'treeView':_0x194038(0x630),'getProcess':_0x194038(0x630),'runtimeProcessesView':_0x194038(0x630)};function _0x40ff98(_0x225b8a){const _0x21ab1e=_0x194038,_0x11de87={},_0x6f6e70=_0x1fe017=>_0x1fe017&&typeof _0x1fe017===_0x21ab1e(0x788)&&!Array[_0x21ab1e(0x796)](_0x1fe017)&&typeof _0x1fe017['name']==='string'?_0x1fe017['name']:_0x1fe017;for(const _0x5408e9 of _0xe66e83)_0x11de87[_0x5408e9]=_0x5408e9===_0x21ab1e(0x128)?async(..._0x24e1b2)=>_0x225b8a[_0x21ab1e(0x11e)](_0x21ab1e(0xc5),null,_0x5408e9,_0x24e1b2[_0x21ab1e(0x78f)](_0x6f6e70),!![]):(..._0x42dfb8)=>_0x225b8a['_call'](_0x21ab1e(0xc5),null,_0x5408e9,_0x42dfb8['map'](_0x6f6e70),![]);return _0x11de87;}function _0x29a907(_0x14c8d5){const _0x8ef37b=_0x194038,_0x50ae1d=_0x554b1f(_0x14c8d5,_0x8ef37b(0x5ec),_0x18410f);return _0x50ae1d;}function _0x28b905(_0x53bd3b){const _0x344a6b=_0x194038,_0x2346d4=()=>_0x53bd3b[_0x344a6b(0x5ec)][_0x344a6b(0x242)](),_0xe386d0=_0x5dd5de=>_0x5dd5de[_0x344a6b(0x3e9)]?{..._0x5dd5de,'_isFree':!![]}:_0x5dd5de;return{async 'addLicense'(_0x1abad8){const _0x29be41=_0x344a6b;return _0x53bd3b[_0x29be41(0x5ec)][_0x29be41(0x694)](_0x1abad8);},async 'reload'(){},async 'recheck'(){},get 'active'(){const _0x1f3646=_0x344a6b,_0x54b272=_0x2346d4();return _0x54b272[_0x1f3646(0x3e9)]?null:_0x54b272;},get 'effective'(){return _0xe386d0(_0x2346d4());},'hasLimit'(_0x120508){const _0x1b10ac=_0x344a6b,_0x544806=_0x2346d4();if(!_0x544806[_0x1b10ac(0xdb)])return![];const _0x50bcc1=_0x544806[_0x1b10ac(0x7bd)]?.[_0x120508];return!(_0x50bcc1===null||_0x50bcc1===undefined||_0x50bcc1===0x0);},'isFeatureEnabled'(_0x4b2db5){const _0x1929f8=_0x344a6b,_0x2a1751=_0x2346d4();return!_0x2a1751[_0x1929f8(0xdb)]||!!_0x2a1751[_0x1929f8(0x2ac)]?.[_0x4b2db5];},'assertFeature'(_0x6f0825){const _0xd0d587=_0x344a6b,_0x25bdd1=_0x2346d4();if(!_0x25bdd1['enforced']||_0x25bdd1[_0xd0d587(0x2ac)]?.[_0x6f0825])return;const {OKDBError:_0x3aca68}=requireErrors(),_0x15667b=_0x25bdd1[_0xd0d587(0x3e9)]?_0xd0d587(0x752)+_0x6f0825+_0xd0d587(0x4df)+_0x6f0825+_0xd0d587(0x2c1):_0xd0d587(0x5bc)+_0x6f0825+_0xd0d587(0xe1)+_0x6f0825+'\x22.';throw new _0x3aca68(_0x15667b,_0xd0d587(0x2e8),{'feature':_0x6f0825});},'assertLimit'(_0x1b88e7,_0x3ccb79){const _0x22410b=_0x344a6b,_0x272007=_0x2346d4();if(!_0x272007[_0x22410b(0xdb)])return;const _0x45616c=_0x272007[_0x22410b(0x7bd)]?.[_0x1b88e7];if(_0x45616c===null||_0x45616c===undefined||_0x45616c===0x0)return;if(_0x3ccb79>=_0x45616c){const {OKDBError:_0x3fcf29}=requireErrors();throw new _0x3fcf29(_0x22410b(0x629)+_0x1b88e7+'\x20('+_0x3ccb79+'/'+_0x45616c+')','LICENSE_LIMIT_EXCEEDED',{'limit':_0x1b88e7,'current':_0x3ccb79,'max':_0x45616c});}},'listLicenses'(){const _0x241788=_0x344a6b;return _0x53bd3b[_0x241788(0x5ec)][_0x241788(0x46b)]();},'getPins'(){const _0x16cf42=_0x344a6b;return _0x53bd3b[_0x16cf42(0x5ec)]['list']()[_0x16cf42(0x78f)](_0x180125=>({'licenseId':_0x180125['id'],'pin':_0x180125[_0x16cf42(0xae)]===_0x16cf42(0x5da)?null:_0x180125[_0x16cf42(0x1d3)]}));}};}function _0x5b57bf(_0x21608f){const _0x45345e=_0x194038,_0x4e0e23=_0x554b1f(_0x21608f,_0x45345e(0x38c),_0x16856c);Object[_0x45345e(0x4b3)](_0x4e0e23,_0x45345e(0x70e),{'get':()=>_0x21608f[_0x45345e(0x11e)](_0x45345e(0x38c),null,_0x45345e(0x70e),[],![])}),Object['defineProperty'](_0x4e0e23,_0x45345e(0x6d4),{'get':()=>_0x21608f[_0x45345e(0x11e)](_0x45345e(0x38c),null,'rowKey',[],![])}),_0x4e0e23[_0x45345e(0x41b)]=null;const _0x233c7a=_0x4e0e23[_0x45345e(0x6c0)];_0x4e0e23[_0x45345e(0x6c0)]=_0x2d92b3=>{return _0x4e0e23['_listenAddr']=_0x2d92b3,_0x233c7a(_0x2d92b3);};const _0x3ab9aa=()=>_0x4e0e23[_0x45345e(0x4c6)]()['map'](_0x4970fa=>({'key':_0x4970fa['nodeKey'],'value':_0x4970fa,'version':0x1})),_0x5b6c57={'name':'~processes','_sync':![],'_isOpen':!![],'isProcessStore':!![],'hasType':_0x44af64=>_0x44af64==='node','getRange':_0x8e2d86=>_0x8e2d86===_0x45345e(0x5a9)?_0x3ab9aa()[Symbol[_0x45345e(0x3f3)]]():[][Symbol[_0x45345e(0x3f3)]](),'getKeys':_0x16c23f=>_0x16c23f==='node'?_0x3ab9aa()[_0x45345e(0x78f)](_0x91d0cc=>_0x91d0cc[_0x45345e(0x69e)])[Symbol[_0x45345e(0x3f3)]]():[][Symbol[_0x45345e(0x3f3)]](),'getValues':_0x220729=>_0x220729==='node'?_0x3ab9aa()[_0x45345e(0x78f)](_0x294eda=>_0x294eda['value'])[Symbol[_0x45345e(0x3f3)]]():[][Symbol[_0x45345e(0x3f3)]](),'get':(_0x313a96,_0x2ead86)=>_0x313a96===_0x45345e(0x5a9)?_0x3ab9aa()[_0x45345e(0x605)](_0x3a2c09=>_0x3a2c09[_0x45345e(0x69e)]===_0x2ead86)?.[_0x45345e(0x1d0)]:undefined,'getCount':_0x1328b4=>_0x1328b4===_0x45345e(0x5a9)?_0x3ab9aa()['length']:0x0};Object['defineProperty'](_0x4e0e23,'_statusEnv',{'get':()=>_0x21608f['_call'](_0x45345e(0x38c),null,'statusOpen',[],![])?_0x5b6c57:null});const _0x38ff95=_0x4e0e23[_0x45345e(0x5da)];_0x4e0e23['open']=async _0x422df8=>{const _0x3194a0=_0x45345e;return await _0x38ff95(_0x422df8),_0x4e0e23[_0x3194a0(0x181)];},_0x4e0e23[_0x45345e(0x71c)]=()=>_0x21608f[_0x45345e(0x11e)](_0x45345e(0x38c),null,_0x45345e(0x123),[],!![]);const {RawDb:_0x60f2a7}=requireRawdb();return Object['defineProperty'](_0x4e0e23,_0x45345e(0x76a),{'get':()=>_0x21608f[_0x45345e(0x540)]?_0x4e0e23[_0x45345e(0x48b)]||=new _0x60f2a7(_0x21608f['_systemEnv'],_0x45345e(0x277)):undefined}),Object[_0x45345e(0x4b3)](_0x4e0e23,_0x45345e(0x520),{'get':()=>_0x21608f[_0x45345e(0x540)]?_0x4e0e23[_0x45345e(0x560)]||=new _0x60f2a7(_0x21608f[_0x45345e(0x540)],_0x45345e(0x784)):undefined}),_0x4e0e23[_0x45345e(0x6bc)]=()=>_0x21608f['_call']('processes',null,_0x45345e(0x6bc),[],![]),Object[_0x45345e(0x4b3)](_0x4e0e23,_0x45345e(0x5c3),{'get':()=>_0x21608f[_0x45345e(0x11e)]('processes',null,_0x45345e(0x46f),[],![])}),Object[_0x45345e(0x4b3)](_0x4e0e23,'_isReader',{'get':()=>_0x21608f['_call'](_0x45345e(0x38c),null,_0x45345e(0x250),[],![])}),_0x4e0e23[_0x45345e(0x6dd)]=()=>_0x21608f['_call']('processes',null,'buildOwnRow',[],![]),_0x4e0e23[_0x45345e(0x55d)]=(_0x45e0d6,_0x3cd0b2)=>_0x21608f[_0x45345e(0x11e)](_0x45345e(0x38c),null,_0x45345e(0x5dc),[_0x45e0d6,_0x3cd0b2],![]),_0x4e0e23;}return sys={'makeMeta':_0x40ff98,'makeLicenses':_0x29a907,'makeLicenseChecker':_0x28b905,'makeProcesses':_0x5b57bf},sys;}var okdbLogger,hasRequiredOkdbLogger;function requireOkdbLogger(){const _0x436ade=_0x2dfd83;if(hasRequiredOkdbLogger)return okdbLogger;hasRequiredOkdbLogger=0x1;const _0x7a0951={'debug':0xa,'info':0x14,'warn':0x1e,'error':0x28};class _0x397cd2{constructor(_0x1020b3){const _0x55499e=_0x5aff;this[_0x55499e(0x538)]=_0x1020b3,this[_0x55499e(0x22f)]=new Set(),this[_0x55499e(0x106)]={};}[_0x436ade(0xda)](_0xbbcdcf){const _0x3d9b43=_0x436ade,_0x57567e=new _0x397cd2(this[_0x3d9b43(0x538)]);return _0x57567e['_sinks']=this[_0x3d9b43(0x22f)],_0x57567e['_meta']={...this[_0x3d9b43(0x106)],..._0xbbcdcf},_0x57567e;}['attach'](_0x19b159){const _0x36ff6d=_0x436ade;return this['_sinks'][_0x36ff6d(0x694)](_0x19b159),()=>this[_0x36ff6d(0x22f)][_0x36ff6d(0x62a)](_0x19b159);}[_0x436ade(0x1f0)](){const _0x429fdb=_0x436ade,_0x42b11b=_0x7a0951[process.env.OKDB_LOG_LEVEL]??_0x7a0951[_0x429fdb(0x76d)];return this[_0x429fdb(0x654)]=this[_0x429fdb(0x476)](({level:_0x244628,msg:_0x3077b,meta:_0x5669c5,context:_0x5dd827,ts:_0x315f3a})=>{const _0x3ebb28=_0x429fdb;if((_0x7a0951[_0x244628]??_0x7a0951[_0x3ebb28(0x76d)])<_0x42b11b)return;if(_0x5669c5?.['feature']===_0x3ebb28(0x3f9)&&(_0x244628===_0x3ebb28(0x76d)||_0x244628===_0x3ebb28(0x392)))return;const _0x44e107=_0x244628===_0x3ebb28(0x606)?console['error']:_0x244628===_0x3ebb28(0x474)?console[_0x3ebb28(0x474)]:_0x244628==='info'?console[_0x3ebb28(0x76d)]:console['log'],_0x34345c=_0x5669c5&&Object[_0x3ebb28(0x6e4)](_0x5669c5)[_0x3ebb28(0x42c)]>0x0;_0x34345c||_0x5dd827!==undefined?_0x44e107(new Date(_0x315f3a)['toISOString'](),_0x3077b,..._0x34345c?[_0x5669c5]:[],..._0x5dd827!==undefined?[_0x5dd827]:[]):_0x44e107(new Date(_0x315f3a)['toISOString'](),_0x3077b);}),this[_0x429fdb(0x654)];}['detachConsole'](){const _0x556602=_0x436ade;this[_0x556602(0x654)]&&(this[_0x556602(0x654)](),this['_detachConsole']=null);}[_0x436ade(0x79b)](_0x5d463b,_0xcb5cc1){const _0x169ef4=_0x436ade,_0x2c60c3=require$$0$4,_0x322de1=0x1f4,_0x3fcd3c=Number(process.env.OKDB_LOG_FLUSH_MS)||0x3e8;let _0x4c8147=[],_0x19f49e=0x0,_0x2c1f3b=null;const _0x3998bd=()=>{const _0x30ecd3=_0x5aff;_0x2c1f3b=null;if(_0x4c8147[_0x30ecd3(0x42c)]===0x0)return;const _0x5c4529=_0x4c8147;_0x4c8147=[],_0x19f49e>0x0&&(_0x5c4529[_0x30ecd3(0x782)]({'ts':Date[_0x30ecd3(0xcc)](),'level':_0x30ecd3(0x474),'msg':'[log-sink]\x20'+_0x19f49e+_0x30ecd3(0x5dd)+(_0x19f49e===0x1?'y':_0x30ecd3(0x249))+_0x30ecd3(0x3aa),'feature':_0x30ecd3(0x66c),'node':_0xcb5cc1,'context':null}),_0x19f49e=0x0),_0x5d463b[_0x30ecd3(0x578)](_0x2ae3d4=>{const _0x486f29=_0x30ecd3;for(const _0x1e6ebf of _0x5c4529)_0x2ae3d4[_0x486f29(0x10d)]('~log_entry',_0x2c60c3[_0x486f29(0x71b)](),_0x1e6ebf);})[_0x30ecd3(0x5f8)](()=>{});},_0x7efb71=this[_0x169ef4(0x476)](({level:_0x11e046,msg:_0x3a9cc3,meta:_0x571614,context:_0xe5d022,ts:_0x2c0e82})=>{const _0x79c379=_0x169ef4;if(_0x11e046===_0x79c379(0x392))return;_0x4c8147['length']>=_0x322de1&&(_0x19f49e++,_0x4c8147[_0x79c379(0x792)]()),_0x4c8147[_0x79c379(0x782)]({'ts':_0x2c0e82,'level':_0x11e046,'msg':_0x3a9cc3,'feature':_0x571614?.[_0x79c379(0x4f1)]??_0x571614?.[_0x79c379(0x7e7)]??null,'node':_0xcb5cc1,'context':_0xe5d022??null}),!_0x2c1f3b&&(_0x2c1f3b=setTimeout(_0x3998bd,_0x3fcd3c),_0x2c1f3b[_0x79c379(0x212)]?.());});return()=>{_0x7efb71();if(_0x2c1f3b)clearTimeout(_0x2c1f3b);_0x3998bd();};}[_0x436ade(0x580)](_0x4469dc,_0x1f492c,_0x4d6086){const _0x524d5c=_0x436ade;_0x1f492c instanceof Error&&(_0x4d6086={'message':_0x1f492c['message'],'stack':_0x1f492c[_0x524d5c(0x2b9)],..._0x4d6086},_0x1f492c=_0x1f492c[_0x524d5c(0x3f1)]);const _0xf98df9={'level':_0x4469dc,'msg':_0x1f492c,'meta':{...this[_0x524d5c(0x106)]},'context':_0x4d6086,'ts':Date['now']()};try{this['okdb'][_0x524d5c(0xe3)][_0x524d5c(0x2fe)](_0x524d5c(0x66c),_0xf98df9);}catch{}for(const _0x33cc78 of this[_0x524d5c(0x22f)]){try{_0x33cc78(_0xf98df9);}catch{}}}[_0x436ade(0x164)](_0xc839e9){const _0x4ed2df=_0x436ade;try{this[_0x4ed2df(0x538)]?.[_0x4ed2df(0xe3)]?.[_0x4ed2df(0x2fe)]('log',_0xc839e9);}catch{}for(const _0x669813 of this['_sinks']){try{_0x669813(_0xc839e9);}catch{}}}[_0x436ade(0x76d)](_0xec375a,_0xc10ad8){const _0x392331=_0x436ade;this[_0x392331(0x580)](_0x392331(0x76d),_0xec375a,_0xc10ad8);}[_0x436ade(0x474)](_0x51af4e,_0x15d052){const _0x5c5524=_0x436ade;this[_0x5c5524(0x580)]('warn',_0x51af4e,_0x15d052);}[_0x436ade(0x606)](_0x3c5985,_0x2003cb){const _0x339b68=_0x436ade;this['_emit'](_0x339b68(0x606),_0x3c5985,_0x2003cb);}['debug'](_0x2641f9,_0x2238ba){const _0x454f23=_0x436ade;this[_0x454f23(0x580)](_0x454f23(0x392),_0x2641f9,_0x2238ba);}}return okdbLogger=_0x397cd2,okdbLogger;}var okdbPlugins,hasRequiredOkdbPlugins;function requireOkdbPlugins(){const _0x264c4d=_0x2dfd83;if(hasRequiredOkdbPlugins)return okdbPlugins;hasRequiredOkdbPlugins=0x1;const {OKDB_STATE:_0x25c115}=requireOkdbEnums(),{OKDBError:_0x18a74b}=requireOkdbError();class _0x417318{constructor(_0x2c5048){const _0x42fb51=_0x5aff;this[_0x42fb51(0x538)]=_0x2c5048,this['_plugins']=[];}[_0x264c4d(0x71e)](_0x4d994f,_0x24102c){const _0x360235=_0x264c4d;if(this[_0x360235(0x538)][_0x360235(0x728)]!==_0x25c115['CREATED'])throw new _0x18a74b('Cannot\x20register\x20plugins\x20after\x20start',_0x360235(0x4d5),{'state':this[_0x360235(0x538)][_0x360235(0x728)]});if(!_0x4d994f[_0x360235(0x5d1)])throw new _0x18a74b(_0x360235(0x468),_0x360235(0x360),{'plugin':_0x4d994f['name']});const _0x330fd7=_0x4d994f[_0x360235(0x6da)]??[];for(const _0x43c230 of _0x330fd7){if(!this[_0x360235(0x4be)][_0x360235(0x787)](_0x44b3fe=>_0x44b3fe[_0x360235(0x7e7)]['name']===_0x43c230))throw new _0x18a74b(_0x360235(0x4f3)+_0x43c230+_0x360235(0x31b)+_0x4d994f[_0x360235(0x5d1)]+')',_0x360235(0x622),{'required':_0x43c230});}if(this[_0x360235(0x4be)]['find'](_0x1a7480=>_0x1a7480['module'][_0x360235(0x5d1)]===_0x4d994f['name']))throw new _0x18a74b(_0x360235(0x52c)+_0x4d994f['name']+_0x360235(0x64e),_0x360235(0x2dd),{'plugin':_0x4d994f[_0x360235(0x5d1)]});if(_0x4d994f[_0x360235(0x5d1)]in this[_0x360235(0x538)])throw new _0x18a74b(_0x360235(0x533)+_0x4d994f[_0x360235(0x5d1)]+_0x360235(0x637),_0x360235(0x403));const _0x56b1d4=_0x4d994f[_0x360235(0x71e)](this[_0x360235(0x538)],_0x24102c);if(!_0x56b1d4||typeof _0x56b1d4!==_0x360235(0x788))throw new _0x18a74b('Plugin\x20\x27'+_0x4d994f['name']+_0x360235(0x3f6),'BAD_PLUGIN',{'plugin':_0x4d994f[_0x360235(0x5d1)]});this['_plugins']['push']({'module':_0x4d994f,'options':_0x24102c,'instance':_0x56b1d4});}[_0x264c4d(0x11b)]=[];async[_0x264c4d(0x160)](){const _0x591bda=_0x264c4d;try{for(const _0x9e740d of this[_0x591bda(0x4be)]){await _0x9e740d['instance']['start']?.(this[_0x591bda(0x538)]),this[_0x591bda(0x11b)][_0x591bda(0x782)](_0x9e740d);}}catch(_0x5f3054){await this[_0x591bda(0x1ff)]()[_0x591bda(0x5f8)](()=>{});throw _0x5f3054;}}async[_0x264c4d(0x1ff)](){const _0x86a54d=_0x264c4d,_0x48f13d=this[_0x86a54d(0x11b)][_0x86a54d(0x573)]();this[_0x86a54d(0x11b)]=[];let _0x19de0f=null;for(const _0x1046ab of _0x48f13d){try{await _0x1046ab[_0x86a54d(0xfe)]['stop']?.(this[_0x86a54d(0x538)]);}catch(_0x1eac16){_0x19de0f??=_0x1eac16;}}if(_0x19de0f)throw _0x19de0f;}}return okdbPlugins=_0x417318,okdbPlugins;}var statics,hasRequiredStatics;function requireStatics(){const _0x3f04ff=_0x2dfd83;if(hasRequiredStatics)return statics;hasRequiredStatics=0x1;const _0x5677bc={'maxDbs':0x400,'pageSize':0x1000,'compression':!![],'encryptionKey':undefined,'mapSize':0x100000000,'durability':'balanced'},_0x255353=new Set([_0x3f04ff(0x65d),_0x3f04ff(0x4ef),_0x3f04ff(0x21b),_0x3f04ff(0x1be),_0x3f04ff(0xf1),_0x3f04ff(0x3bb),_0x3f04ff(0x27c),_0x3f04ff(0x460),_0x3f04ff(0x119),_0x3f04ff(0x760),'sync',_0x3f04ff(0x431),'functions',_0x3f04ff(0x2f4),'mcp',_0x3f04ff(0x4c9),_0x3f04ff(0x66c),_0x3f04ff(0x2e9),_0x3f04ff(0x17a),'engines',_0x3f04ff(0x461),_0x3f04ff(0x34c),_0x3f04ff(0x38c),_0x3f04ff(0x5f4),_0x3f04ff(0x22e),_0x3f04ff(0x16b),'subscriptions',_0x3f04ff(0x392),_0x3f04ff(0x41d),'backup']),_0x1ceab1={'http':_0x3f04ff(0x4a9)};return statics={'defaults':_0x5677bc,'KNOWN_OPTIONS':_0x255353,'_OPTION_HINTS':_0x1ceab1},statics;}var licenseConfig,hasRequiredLicenseConfig;function requireLicenseConfig(){const _0x4c0874=_0x2dfd83;if(hasRequiredLicenseConfig)return licenseConfig;hasRequiredLicenseConfig=0x1;const _0x48a04f=require$$0$2,_0xfcede3=_0x4c0874(0x27d),_0x34fcce=_0x48a04f[_0x4c0874(0x77d)](_0x4c0874(0x6ed))[_0x4c0874(0x47c)](_0x48a04f[_0x4c0874(0x146)](_0xfcede3)[_0x4c0874(0x6d2)]({'type':'spki','format':'der'}))[_0x4c0874(0x1ed)]('hex')['slice'](0x0,0x10),_0x4aca87={'LICENSED_BUILD':_0x4c0874(0x4fb),'PUBLIC_KEY_PEM':_0xfcede3,'PUB_FINGERPRINT':_0x34fcce,'LICENSE_EXPIRED_ACTION':_0x4c0874(0x66c)};return licenseConfig={'_C':_0x4aca87,'PUBLIC_KEY_PEM':_0xfcede3,'PUB_FINGERPRINT':_0x34fcce},licenseConfig;}var okdbSubscriptionsStore={'exports':{}},okdbQueryFilter,hasRequiredOkdbQueryFilter;function requireOkdbQueryFilter(){const _0x47fac8=_0x2dfd83;if(hasRequiredOkdbQueryFilter)return okdbQueryFilter;hasRequiredOkdbQueryFilter=0x1;const _0x143ae1=require$$0$5,{OKDBError:_0x156dc6}=requireOkdbError(),_0x7ee9cd=['$eq','$ne','$gt',_0x47fac8(0x6e9),_0x47fac8(0x6df),_0x47fac8(0x56f),_0x47fac8(0x472),_0x47fac8(0xd2),_0x47fac8(0x524),_0x47fac8(0x70a),_0x47fac8(0x245),_0x47fac8(0x683),_0x47fac8(0xf5),'$all','$type',_0x47fac8(0xf8),_0x47fac8(0x281),_0x47fac8(0x39b),_0x47fac8(0x7df),_0x47fac8(0x12c)],_0x4d4267=['$where'];function _0x1018fc(_0x346fd5){return()=>{const _0x923897=_0x5aff,_0x2306a1=new _0x156dc6(_0x923897(0x1e9)+_0x346fd5+_0x923897(0x471),_0x923897(0x28e),{'operator':_0x346fd5});_0x2306a1[_0x923897(0x422)]=0x190;throw _0x2306a1;};}const _0x50c191=Object[_0x47fac8(0x7ac)]({...Object[_0x47fac8(0x2bc)](_0x7ee9cd['map'](_0x33ebcf=>[_0x33ebcf,_0x143ae1[_0x33ebcf]])),...Object['fromEntries'](_0x4d4267['map'](_0x50bfc8=>[_0x50bfc8,_0x1018fc(_0x50bfc8)]))});function _0x3444a4(_0x10fc02){const _0x184441=_0x47fac8;return _0x143ae1[_0x184441(0x52b)](_0x10fc02,{'operations':_0x50c191});}function _0x149550(_0x5824c5){const _0x38e75c=_0x47fac8;if(_0x5824c5==null)return;try{_0x3444a4(_0x5824c5);}catch(_0x54c616){if(_0x54c616?.[_0x38e75c(0x330)]==='QUERY_OPERATOR_FORBIDDEN')throw _0x54c616;}}return okdbQueryFilter={'compileFilter':_0x3444a4,'assertFilterAllowed':_0x149550,'ALLOWED_OPERATORS':_0x7ee9cd,'FORBIDDEN_OPERATORS':_0x4d4267},okdbQueryFilter;}var okdbEnvRefs,hasRequiredOkdbEnvRefs;function requireOkdbEnvRefs(){const _0x51a11c=_0x2dfd83;if(hasRequiredOkdbEnvRefs)return okdbEnvRefs;hasRequiredOkdbEnvRefs=0x1;const {CHANGE_ACTIONS:_0x4ed2bc,EVENTS:_0x499138}=requireOkdbEnums(),{OKDBError:_0x3385cf,OKDBForeignKeyDeleteError:_0x5b8a3d}=requireOkdbError(),_0x13b4e0=_0x51a11c(0x596),_0x81df0=new Set([_0x51a11c(0x2ec),_0x51a11c(0x565),'set_null',_0x51a11c(0x1c0)]);function _0x3c1759(_0x2d8c23,_0x3ea541){const _0xbf0643=_0x51a11c;if(_0x2d8c23==null||!_0x3ea541)return undefined;const _0x5df4be=_0x3ea541['split']('.');let _0x5bea52=_0x2d8c23;for(const _0x3e094c of _0x5df4be){if(_0x5bea52==null||typeof _0x5bea52!==_0xbf0643(0x788)||!(_0x3e094c in _0x5bea52))return undefined;_0x5bea52=_0x5bea52[_0x3e094c];}return _0x5bea52;}function _0x466bc8(_0xb4d1db,_0x21e875,_0x25c5c0){const _0x439b39=_0x51a11c,_0x4cc015=_0x21e875[_0x439b39(0x2c4)]('.'),_0x25258e={..._0xb4d1db};let _0x21be0d=_0x25258e;for(let _0x5d3e11=0x0;_0x5d3e11<_0x4cc015[_0x439b39(0x42c)]-0x1;_0x5d3e11++){_0x21be0d[_0x4cc015[_0x5d3e11]]=_0x21be0d[_0x4cc015[_0x5d3e11]]!=null?{..._0x21be0d[_0x4cc015[_0x5d3e11]]}:{},_0x21be0d=_0x21be0d[_0x4cc015[_0x5d3e11]];}return _0x21be0d[_0x4cc015[_0x4cc015['length']-0x1]]=_0x25c5c0,_0x25258e;}function _0x4e5792(_0xa3fd6e,_0x4c1fce,_0x2eff83,_0x2b05a1,_0x23f2d6){return[_0xa3fd6e,_0x4c1fce,_0x2eff83,_0x2b05a1,_0x23f2d6];}function _0x4c1da8(_0x31a7dc){const _0x40ebda=_0x51a11c;return typeof _0x31a7dc==='string'||typeof _0x31a7dc===_0x40ebda(0x1f1);}function _0xc54d81(_0x22cea2,_0x4ca2b5){const _0x1561ba=_0x51a11c;return JSON[_0x1561ba(0x7cf)]([_0x22cea2,_0x4ca2b5]);}function*_0x8abbd0(_0x40a9f4,_0x546614,_0x8c2db){const _0x4aa3fc=_0x51a11c,_0x1510bc=_0x8c2db!==undefined;for(const {key:_0x5eff0a}of _0x40a9f4[_0x4aa3fc(0x3bd)]({'start':_0x1510bc?[_0x546614,_0x8c2db]:[_0x546614]})){if(!Array[_0x4aa3fc(0x796)](_0x5eff0a))continue;if(_0x5eff0a[0x0]!==_0x546614||_0x1510bc&&_0x5eff0a[0x1]!==_0x8c2db)break;yield _0x5eff0a;}}function _0x2b5a0d(_0x16ea11,_0x4fdb99='',_0x54b59e=null){const _0x26ad6c=_0x51a11c,_0x1536b1=[];if(!_0x16ea11||typeof _0x16ea11!==_0x26ad6c(0x788))return _0x1536b1;if(!_0x54b59e)_0x54b59e=_0x16ea11;if(_0x16ea11['$ref']){const _0x3bd9a2=_0x16ea11[_0x26ad6c(0x427)][_0x26ad6c(0x327)](/^#\/\$defs\/(.+)$/);if(_0x3bd9a2&&_0x54b59e?.['$defs']?.[_0x3bd9a2[0x1]])return _0x2b5a0d(_0x54b59e[_0x26ad6c(0xec)][_0x3bd9a2[0x1]],_0x4fdb99,_0x54b59e);return _0x1536b1;}if(_0x16ea11[_0x26ad6c(0x19b)]&&typeof _0x16ea11[_0x26ad6c(0x19b)]===_0x26ad6c(0x788)&&_0x16ea11[_0x26ad6c(0x19b)][_0x26ad6c(0xae)]){const _0xc9d6c9=_0x16ea11['ref'][_0x26ad6c(0x57b)]||_0x26ad6c(0x2ec);if(!_0x81df0['has'](_0xc9d6c9))throw new _0x3385cf(_0x26ad6c(0x510)+_0xc9d6c9+_0x26ad6c(0x15b)+(_0x4fdb99||'root')+_0x26ad6c(0x23d)+[..._0x81df0]['join'](',\x20'),'INVALID_SCHEMA');_0x1536b1[_0x26ad6c(0x782)]({'fieldPath':_0x4fdb99,'targetType':_0x16ea11['ref'][_0x26ad6c(0xae)],'onDelete':_0xc9d6c9});}if(_0x16ea11[_0x26ad6c(0x7eb)])for(const [_0x1af367,_0x246992]of Object[_0x26ad6c(0x67c)](_0x16ea11['properties'])){const _0x5c695d=_0x4fdb99?_0x4fdb99+'.'+_0x1af367:_0x1af367;_0x1536b1['push'](..._0x2b5a0d(_0x246992,_0x5c695d,_0x54b59e));}return _0x1536b1;}function _0x2bcb8b(_0xbdcd5f){const _0x48bc53=_0x51a11c,_0xb85763=new Map(),_0x283001=new Map();for(const _0x421e73 of _0xbdcd5f[_0x48bc53(0x633)]()){if(_0x421e73['startsWith']('~'))continue;const _0x30e03f=_0xbdcd5f[_0x48bc53(0x1da)][_0x48bc53(0x73e)](_0x421e73);if(!_0x30e03f?.[_0x48bc53(0x4cb)]?.[_0x48bc53(0x186)])continue;let _0x4d1682;try{_0x4d1682=_0x2b5a0d(_0x30e03f[_0x48bc53(0x4cb)][_0x48bc53(0x186)]);}catch{continue;}if(_0x4d1682[_0x48bc53(0x42c)]>0x0){_0xb85763[_0x48bc53(0x721)](_0x421e73,_0x4d1682);for(const _0x43974d of _0x4d1682){if(!_0x283001[_0x48bc53(0x7d4)](_0x43974d[_0x48bc53(0x385)]))_0x283001[_0x48bc53(0x721)](_0x43974d[_0x48bc53(0x385)],[]);_0x283001['get'](_0x43974d[_0x48bc53(0x385)])[_0x48bc53(0x782)]({'sourceType':_0x421e73,'fieldPath':_0x43974d[_0x48bc53(0x78b)],'onDelete':_0x43974d[_0x48bc53(0x57b)]});}}}_0xbdcd5f[_0x48bc53(0x184)]={'outgoing':_0xb85763,'incoming':_0x283001};if(_0xb85763[_0x48bc53(0x479)]>0x0)_0x20c661(_0xbdcd5f);}function _0x28561c(_0x255204,_0x1cfa1d){const _0x555c3a=_0x51a11c;return _0x255204[_0x555c3a(0x184)][_0x555c3a(0x5d4)][_0x555c3a(0x73e)](_0x1cfa1d)||[];}function _0x1d18e3(_0x4225db,_0x6d3e7c){const _0x2c63ff=_0x51a11c;return _0x4225db['_refCache'][_0x2c63ff(0x7e8)][_0x2c63ff(0x73e)](_0x6d3e7c)||[];}function _0x20c661(_0x1583b2){const _0xfcf730=_0x51a11c;if(_0x1583b2[_0xfcf730(0x709)])return _0x1583b2[_0xfcf730(0x709)];return _0x1583b2['_refIndexDb']=_0x1583b2['db'][_0xfcf730(0x6e8)]('__ref_index',{'dupSort':![]}),_0x1583b2['_refIndexDb'];}function _0x44a2d7(_0x153fde,_0xfe4501,_0x45cdaf,_0x26abc5,_0x3d877f){const _0x422ca7=_0x51a11c,_0x504eb4=_0x28561c(_0x153fde,_0xfe4501);if(_0x504eb4[_0x422ca7(0x42c)]===0x0)return;const _0x460bfe=_0x20c661(_0x153fde);for(const _0x1f0828 of _0x504eb4){const _0x336629=_0x3d877f!=null?_0x3c1759(_0x3d877f,_0x1f0828['fieldPath']):undefined,_0x51f42b=_0x26abc5!=null?_0x3c1759(_0x26abc5,_0x1f0828[_0x422ca7(0x78b)]):undefined;if(_0x336629===_0x51f42b)continue;_0x4c1da8(_0x336629)&&_0x460bfe[_0x422ca7(0x394)](_0x4e5792(_0x1f0828[_0x422ca7(0x385)],_0x336629,_0xfe4501,_0x45cdaf,_0x1f0828[_0x422ca7(0x78b)])),_0x4c1da8(_0x51f42b)&&_0x460bfe[_0x422ca7(0x4ab)](_0x4e5792(_0x1f0828['targetType'],_0x51f42b,_0xfe4501,_0x45cdaf,_0x1f0828[_0x422ca7(0x78b)]),0x1);}}function _0x3fe8d5(_0x2b9307,_0x7b33b6,_0x4de0fb,_0x44567b){const _0x3cf96a=_0x51a11c,_0x25e845=_0x28561c(_0x2b9307,_0x7b33b6);if(_0x25e845[_0x3cf96a(0x42c)]===0x0)return;const _0x59a433=_0x20c661(_0x2b9307);for(const _0x12a517 of _0x25e845){const _0x50676c=_0x44567b!=null?_0x3c1759(_0x44567b,_0x12a517[_0x3cf96a(0x78b)]):undefined;_0x4c1da8(_0x50676c)&&_0x59a433[_0x3cf96a(0x394)](_0x4e5792(_0x12a517[_0x3cf96a(0x385)],_0x50676c,_0x7b33b6,_0x4de0fb,_0x12a517[_0x3cf96a(0x78b)]));}}function _0x422dcd(_0x765228,_0x27d31e,_0x449c41,_0x6bc51f){const _0x3bdaf7=_0x51a11c,_0x186251=_0x28561c(_0x765228,_0x27d31e);if(_0x186251[_0x3bdaf7(0x42c)]===0x0)return[];const _0x52ec02=[];for(const _0x175ca1 of _0x186251){const _0x4621f9=_0x3c1759(_0x6bc51f,_0x175ca1[_0x3bdaf7(0x78b)]);if(_0x4621f9==null)continue;if(!_0x765228['hasType'](_0x175ca1['targetType'])){_0x52ec02['push']({'fieldPath':_0x175ca1['fieldPath'],'targetType':_0x175ca1[_0x3bdaf7(0x385)],'targetKey':_0x4621f9,'message':_0x3bdaf7(0x7b2)+_0x175ca1[_0x3bdaf7(0x385)]+_0x3bdaf7(0x2f7)});continue;}const _0x421251=_0x765228[_0x3bdaf7(0x1fe)](_0x175ca1['targetType'])[_0x3bdaf7(0x116)];!_0x421251[_0x3bdaf7(0x2b4)](_0x4621f9)&&_0x52ec02[_0x3bdaf7(0x782)]({'fieldPath':_0x175ca1[_0x3bdaf7(0x78b)],'targetType':_0x175ca1[_0x3bdaf7(0x385)],'targetKey':_0x4621f9,'message':_0x3bdaf7(0x19f)+_0x4621f9+_0x3bdaf7(0x51e)+_0x175ca1[_0x3bdaf7(0x385)]+'\x27'});}return _0x52ec02;}function _0x1a51e1(_0xcfb9f5,_0x180b9d,_0x3486f4,_0x409bbe,_0x45e92f,{timestamp:_0x4099b0,origin:_0x362320,_cascadeVisited:_0x308f9c}){const _0x2234f1=_0x51a11c,_0x542e8a=_0x1d18e3(_0xcfb9f5,_0x3486f4);if(_0x542e8a[_0x2234f1(0x42c)]===0x0)return;const _0x7bf18d=_0x20c661(_0xcfb9f5),_0xa52975=[];for(const [,,_0x4dd313,_0x27fd62,_0x1c001a]of _0x8abbd0(_0x7bf18d,_0x3486f4,_0x409bbe)){_0xa52975[_0x2234f1(0x782)]({'sourceType':_0x4dd313,'sourceKey':_0x27fd62,'fieldPath':_0x1c001a});}if(_0xa52975[_0x2234f1(0x42c)]===0x0)return;for(const _0x24cdc0 of _0xa52975){const _0x564b42=_0x542e8a['find'](_0x84dc98=>_0x84dc98[_0x2234f1(0x57a)]===_0x24cdc0[_0x2234f1(0x57a)]&&_0x84dc98[_0x2234f1(0x78b)]===_0x24cdc0[_0x2234f1(0x78b)]),_0x1b9cfb=_0x564b42?.[_0x2234f1(0x57b)]||_0x2234f1(0x2ec);switch(_0x1b9cfb){case _0x2234f1(0x1c0):{if(_0x362320===null)throw new _0x5b8a3d(_0x3486f4,_0x409bbe,_0xa52975[_0x2234f1(0xe5)](_0x53c0f8=>{const _0x484be3=_0x2234f1,_0x146902=_0x542e8a['find'](_0x4cfb0b=>_0x4cfb0b[_0x484be3(0x57a)]===_0x53c0f8[_0x484be3(0x57a)]&&_0x4cfb0b[_0x484be3(0x78b)]===_0x53c0f8[_0x484be3(0x78b)]);return(_0x146902?.[_0x484be3(0x57b)]||_0x484be3(0x2ec))===_0x484be3(0x1c0);}));break;}case _0x2234f1(0x565):{const _0x122ac1=_0xc54d81(_0x24cdc0[_0x2234f1(0x57a)],_0x24cdc0['sourceKey']);if(_0x308f9c[_0x2234f1(0x7d4)](_0x122ac1))continue;_0xcfb9f5['_getType'](_0x24cdc0[_0x2234f1(0x57a)])[_0x2234f1(0x116)]['doesExist'](_0x24cdc0[_0x2234f1(0xb6)])&&_0xcfb9f5[_0x2234f1(0x711)](_0x180b9d,_0x24cdc0[_0x2234f1(0x57a)],_0x24cdc0[_0x2234f1(0xb6)],{'timestamp':_0x4099b0,'origin':_0x362320,'_cascadeVisited':_0x308f9c});break;}case _0x2234f1(0x231):{const _0xbf3379=_0xcfb9f5[_0x2234f1(0x1fe)](_0x24cdc0[_0x2234f1(0x57a)])['data'],_0x473355=_0xbf3379[_0x2234f1(0x465)](_0x24cdc0[_0x2234f1(0xb6)]);if(_0x473355){const _0x1743b3=_0x466bc8(_0x473355['value'],_0x24cdc0[_0x2234f1(0x78b)],null);_0xcfb9f5[_0x2234f1(0x54c)](_0x180b9d,_0x2234f1(0x10d),_0x24cdc0[_0x2234f1(0x57a)],_0x24cdc0[_0x2234f1(0xb6)],_0x1743b3,{'timestamp':_0x4099b0,'origin':_0x362320,'_cascading':!![]});}break;}}}}function _0x49129c(_0x863ef){const _0x543a9f=_0x51a11c;!_0x863ef[_0x543a9f(0x19a)](_0x13b4e0)&&_0x863ef[_0x543a9f(0x6aa)](_0x13b4e0);}function _0x80554f(_0x1f6a19,_0x3f5256,_0x5c7e34,_0xb8e561,_0x2a420c,_0x3846bc,_0x4b2a3d,{timestamp:timestamp=Date[_0x51a11c(0xcc)](),origin:origin=null}={}){const _0x43dc5f=_0x51a11c;_0x49129c(_0x1f6a19);const _0x33132f=_0x5c7e34+'@'+_0xb8e561+'@'+_0x2a420c,_0x37b017={'sourceType':_0x5c7e34,'sourceKey':_0xb8e561,'fieldPath':_0x2a420c,'targetType':_0x3846bc,'targetKey':_0x4b2a3d,'timestamp':timestamp,'origin':origin},_0x52067b=_0x1f6a19[_0x43dc5f(0x1fe)](_0x13b4e0)[_0x43dc5f(0x116)],_0x62e618=_0x52067b[_0x43dc5f(0x465)](_0x33132f),_0x3c6bd7=_0x62e618?_0x62e618[_0x43dc5f(0x668)]+0x1:0x1;_0x52067b['putSync'](_0x33132f,_0x37b017,_0x3c6bd7),_0x1f6a19[_0x43dc5f(0x631)]({'id':_0x43dc5f(0x30f)+_0x13b4e0+'@'+_0x33132f,'type':_0x13b4e0,'key':_0x33132f,'action':_0x4ed2bc['PUT'],'timestamp':timestamp,'txnId':_0x3f5256?.['id'],'origin':origin},_0x62e618?.[_0x43dc5f(0x1d0)],_0x37b017),_0x1f6a19[_0x43dc5f(0xe3)][_0x43dc5f(0x2fe)](_0x499138[_0x43dc5f(0x459)],{'sourceType':_0x5c7e34,'sourceKey':_0xb8e561,'fieldPath':_0x2a420c,'targetType':_0x3846bc,'targetKey':_0x4b2a3d,'env':_0x1f6a19[_0x43dc5f(0x5d1)]});}function _0x1a79ab(_0x498a16,_0x3afaf6,_0x323058,_0x3d572d,_0x16f0cd,{timestamp:timestamp=Date[_0x51a11c(0xcc)](),origin:origin=null}={}){const _0x599900=_0x51a11c;if(!_0x498a16[_0x599900(0x19a)](_0x13b4e0))return;const _0x474a47=_0x323058+'@'+_0x3d572d+'@'+_0x16f0cd,_0x39851f=_0x498a16['_getType'](_0x13b4e0)['data'],_0x2fd6fa=_0x39851f[_0x599900(0x465)](_0x474a47);if(!_0x2fd6fa)return;_0x39851f['removeSync'](_0x474a47),_0x498a16[_0x599900(0x631)]({'id':_0x599900(0x30f)+_0x13b4e0+'@'+_0x474a47,'type':_0x13b4e0,'key':_0x474a47,'action':_0x4ed2bc['REMOVE'],'timestamp':timestamp,'txnId':_0x3afaf6?.['id'],'origin':origin},_0x2fd6fa[_0x599900(0x1d0)],undefined),_0x498a16[_0x599900(0xe3)][_0x599900(0x2fe)](_0x499138[_0x599900(0x24b)],{'sourceType':_0x323058,'sourceKey':_0x3d572d,'fieldPath':_0x16f0cd,'env':_0x498a16[_0x599900(0x5d1)]});}function _0x54d98f(_0x139280,_0x5f4aa2,_0x385a8e,_0x52d41d,_0x53b640={}){const _0x40e842=_0x51a11c;if(!_0x139280['hasType'](_0x13b4e0))return;const _0x5daf11=_0x139280[_0x40e842(0x1fe)](_0x13b4e0)[_0x40e842(0x116)],_0x3bd93b=_0x385a8e+'@'+_0x52d41d+'@',_0x1bdff6=[];for(const {key:_0x4ee526,value:_0x39cb31}of _0x5daf11[_0x40e842(0x3bd)]({'start':_0x3bd93b,'end':_0x3bd93b+'\uffff'})){if(_0x39cb31?.[_0x40e842(0x57a)]===_0x385a8e&&_0x39cb31?.[_0x40e842(0xb6)]===_0x52d41d)_0x1bdff6[_0x40e842(0x782)](_0x4ee526);}for(const _0x32770c of _0x1bdff6){const _0x4e7f4a=_0x5daf11[_0x40e842(0x465)](_0x32770c);if(!_0x4e7f4a)continue;_0x5daf11[_0x40e842(0x394)](_0x32770c),_0x139280['_logChange']({'id':_0x40e842(0x30f)+_0x13b4e0+'@'+_0x32770c,'type':_0x13b4e0,'key':_0x32770c,'action':_0x4ed2bc['REMOVE'],'timestamp':_0x53b640['timestamp']||Date[_0x40e842(0xcc)](),'txnId':_0x5f4aa2?.['id'],'origin':_0x53b640[_0x40e842(0x63b)]},_0x4e7f4a[_0x40e842(0x1d0)],undefined);}}function _0x18d895(_0x5c0745,_0x41a4f5){const _0x379340=_0x51a11c;if(!_0x5c0745[_0x379340(0x19a)](_0x13b4e0))return;const _0x29088d=_0x5c0745[_0x379340(0x1fe)](_0x13b4e0)['data'],_0x2f89ad=_0x41a4f5+'@',_0x33db15=[];for(const {key:_0x118e5a,value:_0x1c85d8}of _0x29088d[_0x379340(0x3bd)]({'start':_0x2f89ad,'end':_0x2f89ad+'\uffff'})){if(_0x1c85d8?.['sourceType']===_0x41a4f5)_0x33db15[_0x379340(0x782)](_0x118e5a);}for(const _0x297f41 of _0x33db15)_0x29088d['removeSync'](_0x297f41);}async function _0x372e73(_0x53bba3,_0x28c119){const _0xe8db58=_0x51a11c,_0x3a84d3=_0x28561c(_0x53bba3,_0x28c119);if(_0x3a84d3[_0xe8db58(0x42c)]===0x0)return;await _0x53bba3[_0xe8db58(0x3d2)][_0xe8db58(0x6be)](()=>{const _0x3e8bcb=_0xe8db58;for(const {key:_0x1f9eae,value:_0x14dfa2}of _0x53bba3[_0x3e8bcb(0x3bd)](_0x28c119)){_0x44a2d7(_0x53bba3,_0x28c119,_0x1f9eae,_0x14dfa2,null);const _0x50daf6=_0x422dcd(_0x53bba3,_0x28c119,_0x1f9eae,_0x14dfa2);for(const _0x57d136 of _0x50daf6){_0x80554f(_0x53bba3,null,_0x28c119,_0x1f9eae,_0x57d136['fieldPath'],_0x57d136[_0x3e8bcb(0x385)],_0x57d136[_0x3e8bcb(0x49b)]);}}});}const _0x41afc8=0x1388;async function _0xd1f816(_0x2250ab){const _0x4fa13b=_0x51a11c,_0x1220a0=_0x2250ab['_refCache']?.['outgoing']?.[_0x4fa13b(0x479)]>0x0;if(!_0x1220a0&&!_0x2250ab['_refIndexDb'])return{'dropped':0x0,'written':0x0};const _0x3b3925=_0x20c661(_0x2250ab);let _0x23e0c4=0x0;for(;;){const _0x2c71da=Array[_0x4fa13b(0x6a2)](_0x3b3925[_0x4fa13b(0x42e)]({'limit':_0x41afc8}));if(_0x2c71da[_0x4fa13b(0x42c)]===0x0)break;let _0x4345c1=0x0;await _0x2250ab[_0x4fa13b(0x3d2)][_0x4fa13b(0x6be)](()=>{const _0x58f7a4=_0x4fa13b;for(const _0x2c781d of _0x2c71da)if(_0x3b3925[_0x58f7a4(0x394)](_0x2c781d))_0x4345c1++;});if(_0x4345c1===0x0)break;_0x23e0c4+=_0x4345c1;}let _0x5c1b43=0x0;for(const _0x212937 of _0x2250ab[_0x4fa13b(0x184)][_0x4fa13b(0x5d4)]['keys']()){if(_0x212937[_0x4fa13b(0x302)]('~')||!_0x2250ab['hasType'](_0x212937))continue;const _0x2fc393=_0x28561c(_0x2250ab,_0x212937);await _0x2250ab[_0x4fa13b(0x3d2)][_0x4fa13b(0x6be)](()=>{const _0x2b6a1c=_0x4fa13b;for(const {key:_0x1e5365,value:_0x4032c9}of _0x2250ab['getRange'](_0x212937)){for(const _0x56c085 of _0x2fc393){const _0x427375=_0x3c1759(_0x4032c9,_0x56c085[_0x2b6a1c(0x78b)]);if(!_0x4c1da8(_0x427375))continue;_0x3b3925['putSync'](_0x4e5792(_0x56c085[_0x2b6a1c(0x385)],_0x427375,_0x212937,_0x1e5365,_0x56c085[_0x2b6a1c(0x78b)]),0x1),_0x5c1b43++;}}});}return{'dropped':_0x23e0c4,'written':_0x5c1b43};}return okdbEnvRefs={'getFieldValue':_0x3c1759,'setFieldValue':_0x466bc8,'refIndexKey':_0x4e5792,'isRefTarget':_0x4c1da8,'cascadeVisitKey':_0xc54d81,'extractRefs':_0x2b5a0d,'rebuildRefCache':_0x2bcb8b,'getTypeRefs':_0x28561c,'getIncomingRefs':_0x1d18e3,'getRefIndexDb':_0x20c661,'updateRefIndex':_0x44a2d7,'removeRefIndexEntries':_0x3fe8d5,'refIndexRowsFor':_0x8abbd0,'rebuildRefIndex':_0xd1f816,'checkForeignKeys':_0x422dcd,'processDeleteCascade':_0x1a51e1,'setRefViolation':_0x80554f,'clearRefViolation':_0x1a79ab,'clearRefViolationsForKey':_0x54d98f,'clearRefViolationsForType':_0x18d895,'syncRefIndex':_0x372e73},okdbEnvRefs;}var hasRequiredOkdbSubscriptionsStore;function requireOkdbSubscriptionsStore(){const _0x11385f=_0x2dfd83;if(hasRequiredOkdbSubscriptionsStore)return okdbSubscriptionsStore[_0x11385f(0x4ec)];hasRequiredOkdbSubscriptionsStore=0x1;const _0x26f115=require$$0$4,{assertFilterAllowed:_0x3f765c}=requireOkdbQueryFilter(),{rebuildRefCache:_0x3cdb4}=requireOkdbEnvRefs(),_0x4fd081='~sub',_0xa0dea8=_0x11385f(0x5d7),_0x403b37=_0x11385f(0x5d0),_0x126a80=[_0x11385f(0x236),'type',_0x11385f(0x69e)],_0x52a2a8=[_0x11385f(0x236),_0x11385f(0xae)],_0x33afb2=0x5a*0x3e8,_0x15e32e=Math[_0x11385f(0x228)](_0x33afb2/0x2);class _0x12043f{constructor(_0x58d1bb,_0x316d91={}){const _0x4ba2cb=_0x11385f;this['okdb']=_0x58d1bb,this[_0x4ba2cb(0x525)]=Number[_0x4ba2cb(0x105)](_0x316d91['ttlMs'])&&_0x316d91[_0x4ba2cb(0x525)]>0x0?_0x316d91[_0x4ba2cb(0x525)]:_0x33afb2,this[_0x4ba2cb(0x241)]=Number['isFinite'](_0x316d91['refreshThresholdMs'])?_0x316d91[_0x4ba2cb(0x241)]:_0x15e32e,this['_sub']=null;}async[_0x11385f(0x5da)](){const _0x3a130c=_0x11385f;if(this[_0x3a130c(0x7e4)])return this[_0x3a130c(0x7e4)];const _0x5b7e80=await this['okdb'][_0x3a130c(0x1a2)](_0x4fd081,{'sync':![]});return await _0x5b7e80[_0x3a130c(0x4af)](_0xa0dea8,{'indexes':[_0x52a2a8]}),await _0x5b7e80['ensureType'](_0x403b37),_0x5b7e80['getSchema'](_0x403b37)?_0x3cdb4(_0x5b7e80):await _0x5b7e80['setSchema'](_0x403b37,{'definition':{'type':_0x3a130c(0x788),'properties':{'sessionId':{'type':_0x3a130c(0x48c),'ref':{'type':_0xa0dea8,'onDelete':_0x3a130c(0x565)}},'dataEnv':{'type':_0x3a130c(0x48c)},'type':{'type':_0x3a130c(0x48c)},'key':{'type':_0x3a130c(0x48c)}},'required':['sessionId',_0x3a130c(0x236),_0x3a130c(0xae),_0x3a130c(0x69e)]},'enforce':!![]}),await _0x5b7e80['ensureType'](_0x403b37,{'indexes':[_0x126a80]}),await _0x5b7e80['indexReady'](_0x403b37,_0x126a80),await _0x5b7e80[_0x3a130c(0x3a8)](_0xa0dea8,_0x52a2a8),this[_0x3a130c(0x7e4)]=_0x5b7e80,_0x5b7e80;}[_0x11385f(0x2e3)](){const _0x1effa7=_0x11385f;if(!this[_0x1effa7(0x7e4)])throw new Error(_0x1effa7(0x410));return this['_sub'];}async[_0x11385f(0x6d7)]({sessionId:_0x3fb83b,dataEnv:_0x59dc01,type:_0x51d819,filter:filter=null,ttlMs:_0x96bc40}={}){const _0x10f80d=_0x11385f,_0x2a1088=this[_0x10f80d(0x2e3)]();_0x3f765c(filter);const _0x4e44aa=_0x3fb83b!=null&&String(_0x3fb83b)[_0x10f80d(0x42c)]>0x0?String(_0x3fb83b):_0x26f115[_0x10f80d(0x71b)](),_0x12ae86=Number[_0x10f80d(0x105)](_0x96bc40)&&_0x96bc40>0x0?_0x96bc40:this['ttlMs'],_0x20bcca=Date[_0x10f80d(0xcc)](),_0x98e353={'sessionId':_0x4e44aa,'dataEnv':_0x59dc01,'type':_0x51d819,'filter':filter??null,'version':0x0,'createdAt':_0x20bcca,'expiresAt':_0x20bcca+_0x12ae86};return await _0x2a1088[_0x10f80d(0x10d)](_0xa0dea8,_0x4e44aa,_0x98e353,{'ttl':_0x12ae86}),{'sessionId':_0x4e44aa,'version':0x0};}[_0x11385f(0x2c8)](_0x55cc8c){const _0x4e16a1=_0x11385f;if(!_0x55cc8c)return null;return this[_0x4e16a1(0x2e3)]()['get'](_0xa0dea8,String(_0x55cc8c))??null;}async[_0x11385f(0x74b)](_0x4133a7){const _0x2ad9e5=_0x11385f,_0x160812=this[_0x2ad9e5(0x2e3)](),_0x24760c=String(_0x4133a7);if(!_0x160812['get'](_0xa0dea8,_0x24760c))return![];return await _0x160812['remove'](_0xa0dea8,_0x24760c),!![];}async[_0x11385f(0x1ef)](_0x59bd5a){const _0x3375f7=_0x11385f,_0x2f38bc=this['_env'](),_0xfe3b58=String(_0x59bd5a),_0xec3ae=_0x2f38bc[_0x3375f7(0x73e)](_0xa0dea8,_0xfe3b58);if(!_0xec3ae)return null;const _0x3be091=(Number[_0x3375f7(0x105)](_0xec3ae[_0x3375f7(0x668)])?_0xec3ae['version']:0x0)+0x1;return await _0x2f38bc[_0x3375f7(0x10d)](_0xa0dea8,_0xfe3b58,{..._0xec3ae,'version':_0x3be091}),_0x3be091;}async[_0x11385f(0x7e6)](_0x3a9ba9,_0x12c697){const _0x371eec=_0x11385f,_0x94d231=this['_env'](),_0x27546b=String(_0x3a9ba9);if(!_0x94d231['get'](_0xa0dea8,_0x27546b))return![];const _0x4b6510=Number['isFinite'](_0x12c697)&&_0x12c697>0x0?_0x12c697:this[_0x371eec(0x525)];if(this[_0x371eec(0x133)](_0x27546b))return![];return await _0x94d231[_0x371eec(0x2ba)](_0xa0dea8,_0x27546b,_0x4b6510),await this[_0x371eec(0x60f)](_0x27546b,_0x4b6510),!![];}async[_0x11385f(0x3ba)](_0x5257ff,_0x143cae){const _0x432ffd=_0x11385f,_0x4ed315=this[_0x432ffd(0x2e3)](),_0x19f467=Number['isFinite'](_0x143cae)&&_0x143cae>0x0?_0x143cae:this[_0x432ffd(0x525)],_0x4221b3=Date[_0x432ffd(0xcc)](),_0x43351c=[];for(const _0x4b05c1 of _0x5257ff||[]){const _0x54c2c4=String(_0x4b05c1),_0x4f660c=_0x4ed315[_0x432ffd(0x73e)](_0xa0dea8,_0x54c2c4);if(!_0x4f660c)continue;if(this[_0x432ffd(0x133)](_0x54c2c4,_0x4221b3))continue;_0x43351c[_0x432ffd(0x782)]({'id':_0x54c2c4,'cur':_0x4f660c});}if(_0x43351c[_0x432ffd(0x42c)]===0x0)return[];return await _0x4ed315['txn'](async _0x50da50=>{const _0x45dacc=_0x432ffd;for(const {id:_0x580211,cur:_0x5efbef}of _0x43351c){_0x50da50[_0x45dacc(0x10d)](_0xa0dea8,_0x580211,{..._0x5efbef,'expiresAt':_0x4221b3+_0x19f467}),_0x50da50['setTTL'](_0xa0dea8,_0x580211,_0x19f467);}}),_0x43351c[_0x432ffd(0x78f)](_0x6a1dd4=>_0x6a1dd4['id']);}['_isFar'](_0xb3447b,_0xccd537=Date[_0x11385f(0xcc)]()){const _0x2d2eb1=_0x11385f,_0x18d02b=this[_0x2d2eb1(0x2e3)]()[_0x2d2eb1(0x57f)](_0xa0dea8,String(_0xb3447b));if(!_0x18d02b)return![];return _0x18d02b[_0x2d2eb1(0x74e)]-_0xccd537>this['refreshThresholdMs'];}async[_0x11385f(0x60f)](_0x44b937,_0x3716b8){const _0x271e67=_0x11385f,_0x9e5ee8=this[_0x271e67(0x2e3)](),_0x2bd3d4=_0x9e5ee8['get'](_0xa0dea8,_0x44b937);if(!_0x2bd3d4)return;await _0x9e5ee8[_0x271e67(0x10d)](_0xa0dea8,_0x44b937,{..._0x2bd3d4,'expiresAt':Date[_0x271e67(0xcc)]()+_0x3716b8});}async[_0x11385f(0x77c)](_0x5849ee,_0x28d98c,_0x45ab00){const _0x547592=_0x11385f,_0x58d572=this[_0x547592(0x2e3)](),_0x2ea791=String(_0x5849ee),_0x6f7a64=_0x58d572[_0x547592(0x73e)](_0xa0dea8,_0x2ea791);if(!_0x6f7a64)throw new Error(_0x547592(0x733)+_0x2ea791);const _0x6d6638=_0x26f115['randomUUID']();return await _0x58d572[_0x547592(0x10d)](_0x403b37,_0x6d6638,{'sessionId':_0x2ea791,'dataEnv':String(_0x6f7a64[_0x547592(0x236)]),'type':String(_0x28d98c),'key':String(_0x45ab00)}),_0x6d6638;}async[_0x11385f(0x3ec)](_0x55b7c5,_0x3acbbf,{retries:retries=0x8}={}){const _0x1328ce=_0x11385f,_0x38bfbd=this[_0x1328ce(0x2e3)]();for(let _0x122676=0x0;;_0x122676++){const _0x33d237=_0x38bfbd[_0x1328ce(0x465)](_0xa0dea8,_0x55b7c5);if(!_0x33d237)return null;const _0x381b71=_0x33d237[_0x1328ce(0x1d0)],_0x31bed0=(Number['isFinite'](_0x381b71[_0x1328ce(0x668)])?_0x381b71[_0x1328ce(0x668)]:0x0)+0x1,{sessionPatch:sessionPatch={},applyInterests:applyInterests=null}=_0x3acbbf(_0x381b71,_0x38bfbd)||{};try{return await _0x38bfbd[_0x1328ce(0x578)](async _0x35a0ca=>{const _0x50c073=_0x1328ce;applyInterests?.(_0x35a0ca),_0x35a0ca['put'](_0xa0dea8,_0x55b7c5,{..._0x381b71,...sessionPatch,'version':_0x31bed0},{'ifVersion':_0x33d237[_0x50c073(0x668)]});}),_0x31bed0;}catch(_0x3c99a1){if(_0x3c99a1?.[_0x1328ce(0x330)]===_0x1328ce(0x366)&&_0x122676<retries)continue;throw _0x3c99a1;}}}async[_0x11385f(0x1e6)](_0x1749c6,{add:add=[],remove:remove=[]}={}){const _0x5509d3=_0x11385f,_0x46d81c=String(_0x1749c6);return this[_0x5509d3(0x3ec)](_0x46d81c,(_0x57df8e,_0x30365b)=>{const _0x4092bb=_0x5509d3,_0x3b07d3=String(_0x57df8e[_0x4092bb(0x236)]),_0x232e66=new Set((remove||[])[_0x4092bb(0x78f)](_0x1df7b8=>String(_0x1df7b8['type'])+'\x00'+String(_0x1df7b8[_0x4092bb(0x69e)]))),_0x288b50=[];if(_0x232e66['size']>0x0)for(const {key:_0x19b137,value:_0x7795a0}of _0x30365b['getRange'](_0x403b37,{})){if(!_0x7795a0||_0x7795a0['sessionId']!==_0x46d81c)continue;if(_0x232e66['has'](_0x7795a0[_0x4092bb(0xae)]+'\x00'+_0x7795a0[_0x4092bb(0x69e)]))_0x288b50['push'](_0x19b137);}const _0x2fe3a9=(add||[])[_0x4092bb(0x78f)](_0xd33eb1=>({'id':_0x26f115[_0x4092bb(0x71b)](),'type':String(_0xd33eb1[_0x4092bb(0xae)]),'key':String(_0xd33eb1['key'])}));return{'applyInterests':_0x427a21=>{const _0x201e19=_0x4092bb;for(const _0x28fb2d of _0x288b50)_0x427a21[_0x201e19(0x102)](_0x403b37,_0x28fb2d);for(const _0x21d5fd of _0x2fe3a9)_0x427a21[_0x201e19(0x10d)](_0x403b37,_0x21d5fd['id'],{'sessionId':_0x46d81c,'dataEnv':_0x3b07d3,'type':_0x21d5fd[_0x201e19(0xae)],'key':_0x21d5fd[_0x201e19(0x69e)]});}};});}async[_0x11385f(0x122)](_0x53fddf,_0x4950de){_0x3f765c(_0x4950de);const _0x41e6e0=String(_0x53fddf);return this['_commitSessionMutation'](_0x41e6e0,()=>({'sessionPatch':{'filter':_0x4950de??null}}));}async[_0x11385f(0x58f)](_0x172bd0,_0x4fef8d,_0x4f7aa9){const _0x321597=_0x11385f,_0x8e33ce=this[_0x321597(0x2e3)](),_0x4df6cf=String(_0x172bd0),_0x217468=String(_0x4fef8d),_0x48882d=String(_0x4f7aa9),_0x2d7757=[];for(const {key:_0x322bae,value:_0x2b38f7}of _0x8e33ce[_0x321597(0x3bd)](_0x403b37,{})){if(_0x2b38f7&&_0x2b38f7['sessionId']===_0x4df6cf&&_0x2b38f7['type']===_0x217468&&_0x2b38f7['key']===_0x48882d)_0x2d7757[_0x321597(0x782)](_0x322bae);}for(const _0x143918 of _0x2d7757)await _0x8e33ce['remove'](_0x403b37,_0x143918);return _0x2d7757[_0x321597(0x42c)];}async[_0x11385f(0x43b)](_0x2d6259,_0x181a90){const _0x1e84c6=_0x11385f,_0x1e1c8f=String(_0x2d6259);return this[_0x1e84c6(0x3ec)](_0x1e1c8f,(_0x38076e,_0xbd3423)=>{const _0x55a736=_0x1e84c6,_0x25a4fc=String(_0x38076e['dataEnv']),_0x425a33=[];for(const {key:_0x4bcec8,value:_0x455921}of _0xbd3423[_0x55a736(0x3bd)](_0x403b37,{})){if(_0x455921&&_0x455921[_0x55a736(0x4ad)]===_0x1e1c8f)_0x425a33[_0x55a736(0x782)](_0x4bcec8);}const _0x35326f=(_0x181a90||[])[_0x55a736(0x78f)](_0x50d109=>({'id':_0x26f115[_0x55a736(0x71b)](),'type':String(_0x50d109[_0x55a736(0xae)]),'key':String(_0x50d109['key'])}));return{'applyInterests':_0x48ef0f=>{const _0x49d2d9=_0x55a736;for(const _0x318bd4 of _0x425a33)_0x48ef0f[_0x49d2d9(0x102)](_0x403b37,_0x318bd4);for(const _0x65019b of _0x35326f)_0x48ef0f[_0x49d2d9(0x10d)](_0x403b37,_0x65019b['id'],{'sessionId':_0x1e1c8f,'dataEnv':_0x25a4fc,'type':_0x65019b[_0x49d2d9(0xae)],'key':_0x65019b['key']});}};});}[_0x11385f(0x610)](_0x5231b1,_0x31c696,_0x1b64d3){const _0x399ea3=_0x11385f,_0x2f3ee5=this[_0x399ea3(0x2e3)](),_0x5994d7=String(_0x5231b1),_0xf9ac46=String(_0x31c696),_0x42ecb2=String(_0x1b64d3),_0x16c096=new Set();for(const {value:_0x448597}of _0x2f3ee5[_0x399ea3(0x26a)](_0x403b37,_0x126a80,{'start':[_0x5994d7,_0xf9ac46,_0x42ecb2],'end':[_0x5994d7,_0xf9ac46,_0x42ecb2,'￿']})){if(_0x448597&&_0x448597[_0x399ea3(0x4ad)])_0x16c096[_0x399ea3(0x694)](_0x448597[_0x399ea3(0x4ad)]);}return[..._0x16c096];}[_0x11385f(0xdd)](_0x58f66c,_0x24bffc){const _0x48bdd7=_0x11385f,_0x448e35=this[_0x48bdd7(0x2e3)](),_0x57e8e7=String(_0x58f66c),_0x1505ca=String(_0x24bffc),_0x236035=[];for(const {value:_0x2e5a3c}of _0x448e35[_0x48bdd7(0x26a)](_0xa0dea8,_0x52a2a8,{'start':[_0x57e8e7,_0x1505ca],'end':[_0x57e8e7,_0x1505ca,'\uffff']})){if(!_0x2e5a3c||_0x2e5a3c['dataEnv']!==_0x57e8e7||_0x2e5a3c[_0x48bdd7(0xae)]!==_0x1505ca)continue;if(_0x2e5a3c[_0x48bdd7(0xe5)]==null)continue;_0x236035['push']({'sessionId':_0x2e5a3c['sessionId'],'filter':_0x2e5a3c[_0x48bdd7(0xe5)],'version':Number[_0x48bdd7(0x105)](_0x2e5a3c[_0x48bdd7(0x668)])?_0x2e5a3c[_0x48bdd7(0x668)]:0x0});}return _0x236035;}async[_0x11385f(0x224)](){const _0x504805=_0x11385f;return this[_0x504805(0x2e3)]()[_0x504805(0x1ae)]();}}return okdbSubscriptionsStore['exports']=_0x12043f,okdbSubscriptionsStore[_0x11385f(0x4ec)]['SUB_ENV']=_0x4fd081,okdbSubscriptionsStore[_0x11385f(0x4ec)]['T_SESSION']=_0xa0dea8,okdbSubscriptionsStore['exports'][_0x11385f(0xd8)]=_0x403b37,okdbSubscriptionsStore[_0x11385f(0x4ec)]['REVERSE_INDEX']=_0x126a80,okdbSubscriptionsStore[_0x11385f(0x4ec)]['SESSION_TYPE_INDEX']=_0x52a2a8,okdbSubscriptionsStore[_0x11385f(0x4ec)][_0x11385f(0x558)]=_0x33afb2,okdbSubscriptionsStore[_0x11385f(0x4ec)];}var version=_0x2dfd83(0x188),require$$29={'version':version},okdbEnginesEnums,hasRequiredOkdbEnginesEnums;function requireOkdbEnginesEnums(){const _0x3b2047=_0x2dfd83;if(hasRequiredOkdbEnginesEnums)return okdbEnginesEnums;hasRequiredOkdbEnginesEnums=0x1;const _0xb75b24=_0x3b2047(0xbc),_0x39ce81=0xa,_0x2f479c=Object[_0x3b2047(0x7ac)]({'CREATED':_0x3b2047(0x3a9),'ONLINE':_0x3b2047(0x287),'STOPPED':_0x3b2047(0x191),'INACTIVE':_0x3b2047(0x2d3),'ERROR':'error','REMOVED':_0x3b2047(0x21c)}),_0x662150=Object[_0x3b2047(0x7ac)]({'STARTED':_0x3b2047(0x720),'STOPPED':_0x3b2047(0x191),'ERROR':_0x3b2047(0x606),'INSTALLED':_0x3b2047(0x158),'UNINSTALLED':_0x3b2047(0x62f)}),_0x306d95=Object[_0x3b2047(0x7ac)](new Set([_0x2f479c[_0x3b2047(0x7dc)],_0x2f479c[_0x3b2047(0x20b)],_0x2f479c['INACTIVE'],_0x2f479c['ERROR']]));function _0x2d6162(_0x3fda94){return _0x3fda94?.['enabled']===![]?_0x2f479c['STOPPED']:'remote';}return okdbEnginesEnums={'TYPE_ENGINES':_0xb75b24,'MAX_UPDATE_RETRIES':_0x39ce81,'ENGINE_STATUS':_0x2f479c,'ENGINE_EVENTS':_0x662150,'UPDATABLE_STATUSES':_0x306d95,'durableOnlyEngineState':_0x2d6162},okdbEnginesEnums;}var enums,hasRequiredEnums;function requireEnums(){const _0x38d1ae=_0x2dfd83;if(hasRequiredEnums)return enums;hasRequiredEnums=0x1;const _0x315263=Object[_0x38d1ae(0x7ac)]({'EMBEDDER':_0x38d1ae(0x1a6),'INDEXER':_0x38d1ae(0x1a7),'SEARCH':'vector-search','WORKER':_0x38d1ae(0x448)}),_0x1f9318=Object['freeze']({'PENDING':_0x38d1ae(0x690),'DONE':_0x38d1ae(0x320),'FAILED':_0x38d1ae(0x74c),'DELETED':_0x38d1ae(0x38b)}),_0x5a6422=Object[_0x38d1ae(0x7ac)]({'INDEXER_READY':'embeddings:indexer:ready','INDEXER_FLUSHED':'embeddings:indexer:flushed','INDEXER_DOC_DONE':_0x38d1ae(0x60a),'INDEXER_DOC_FAILED':'embeddings:indexer:doc:failed','INDEXER_DOC_QUEUED':'embeddings:indexer:doc:queued','STRATEGY_REGISTERED':_0x38d1ae(0x732),'DOC_STATUS_CHANGE':_0x38d1ae(0x4bf),'PIPELINE_READY':_0x38d1ae(0x72f)}),_0x5b500e=Object[_0x38d1ae(0x7ac)]({'MODELS':_0x38d1ae(0x5b9),'DOC_STATUS_PREFIX':_0x38d1ae(0x2f5),'VEC_PREFIX':_0x38d1ae(0x747)});return enums={'ENGINE_TYPES':_0x315263,'INDEXER_DOC_STATUS':_0x1f9318,'EMBEDDINGS_EVENTS':_0x5a6422,'INTERNAL_TYPES':_0x5b500e},enums;}var okdbQueueValidate,hasRequiredOkdbQueueValidate;function requireOkdbQueueValidate(){const _0x12d4ea=_0x2dfd83;if(hasRequiredOkdbQueueValidate)return okdbQueueValidate;hasRequiredOkdbQueueValidate=0x1;const _0x5f2285=Object[_0x12d4ea(0x7ac)]({'PENDING':_0x12d4ea(0x690),'RUNNING':_0x12d4ea(0x50d),'DONE':_0x12d4ea(0x320),'FAILED':_0x12d4ea(0x74c)}),_0xcc5a0a=Object['freeze']({'ACTIVE':_0x12d4ea(0x153),'PAUSED':_0x12d4ea(0xe8),'DRAINING':_0x12d4ea(0x126)}),_0x3a2e63=Object[_0x12d4ea(0x7ac)]({'ENQUEUED':_0x12d4ea(0x669),'DONE':_0x12d4ea(0x135),'FAILED':_0x12d4ea(0x678),'RETRY':_0x12d4ea(0x5c6),'RESCHEDULED':'queue:rescheduled','REMOVED':_0x12d4ea(0x32e),'RECONCILED':'queue:reconciled','CLEAR_PROGRESS':_0x12d4ea(0x455),'CLEAR_DONE':'queue:clear-done','LOG':_0x12d4ea(0x3e6)}),_0x560bb2=Object[_0x12d4ea(0x7ac)]([_0x12d4ea(0x392),_0x12d4ea(0x76d),_0x12d4ea(0x474),_0x12d4ea(0x606)]),_0x4da5e8=0x1,_0x35c8a9=0xc350,_0x24075e=0x400,_0x3645be=0x800;function _0x3da7d0(_0x585e28){const _0x48e070=_0x12d4ea;return _0x585e28!=null&&typeof _0x585e28==='object'&&(_0x585e28['constructor']===Object||Object[_0x48e070(0x3fb)](_0x585e28)===null);}function _0x1b21f3(_0x5e2bc9,_0x4cc8ca,_0x377c2c,_0x1eeb8c){const _0x1394bf=_0x12d4ea;if(_0x5e2bc9==null)return _0x4cc8ca;const _0x5e1e80=Number(_0x5e2bc9);if(!Number[_0x1394bf(0x105)](_0x5e1e80))return _0x4cc8ca;const _0x4a7097=Math[_0x1394bf(0x4a1)](_0x5e1e80);if(_0x4a7097<_0x377c2c)return _0x377c2c;if(_0x4a7097>_0x1eeb8c)return _0x1eeb8c;return _0x4a7097;}function _0x3345ef(_0x537c63){const _0x377a76=_0x12d4ea;if(!_0x537c63)return[];if(typeof _0x537c63===_0x377a76(0x48c))_0x537c63=[_0x537c63];if(!Array[_0x377a76(0x796)](_0x537c63))throw new Error(_0x377a76(0x797));const _0xf3a749=[],_0x8510b7=new Set();for(const _0x15853e of _0x537c63){if(_0x15853e==null)continue;const _0x4c9f92=String(_0x15853e)['trim']();if(!_0x4c9f92)continue;if(_0x4c9f92['length']>0x80)throw new Error(_0x377a76(0x46e));if(_0x8510b7[_0x377a76(0x7d4)](_0x4c9f92))continue;_0x8510b7[_0x377a76(0x694)](_0x4c9f92),_0xf3a749['push'](_0x4c9f92);if(_0xf3a749['length']>=0x20)break;}return _0xf3a749;}function _0x236aa5(_0x400c7a){const _0x59aec2=_0x12d4ea;if(_0x400c7a==null)return null;const _0x1580ca=String(_0x400c7a)[_0x59aec2(0x79c)]();if(!_0x1580ca)return null;if(_0x1580ca[_0x59aec2(0x42c)]>0x80)throw new Error(_0x59aec2(0x30a));return _0x1580ca;}function _0x1e9cbe(_0x1cb507,_0x2b07c1=0x1){const _0x1c55a0=_0x12d4ea;if(_0x1cb507==null)return[];if(typeof _0x1cb507===_0x1c55a0(0x48c)){const _0x4a47f1=_0x236aa5(_0x1cb507);if(!_0x4a47f1)return[];return[{'id':_0x4a47f1,'tokens':_0x2b07c1}];}if(!Array[_0x1c55a0(0x796)](_0x1cb507))throw new Error(_0x1c55a0(0x4ea));const _0x5f2046=[],_0x10d4b3=new Set();for(const _0x763e0d of _0x1cb507){let _0x478d62,_0x22350a;if(Array[_0x1c55a0(0x796)](_0x763e0d))[_0x478d62,_0x22350a]=_0x763e0d;else{if(_0x763e0d&&typeof _0x763e0d==='object')({id:_0x478d62,tokens:_0x22350a}=_0x763e0d);else{if(typeof _0x763e0d==='string')_0x478d62=_0x763e0d,_0x22350a=_0x2b07c1;else continue;}}_0x478d62=_0x236aa5(_0x478d62);if(!_0x478d62)continue;const _0x51a2c0=_0x22350a==null?_0x2b07c1:Math[_0x1c55a0(0x4a1)](Number(_0x22350a));if(!Number['isFinite'](_0x51a2c0)||_0x51a2c0<0x1)throw new Error(_0x1c55a0(0x272)+_0x478d62+'\x22\x20tokens\x20must\x20be\x20>=\x201');if(_0x51a2c0>0xf4240)throw new Error(_0x1c55a0(0x272)+_0x478d62+_0x1c55a0(0x328));if(_0x10d4b3[_0x1c55a0(0x7d4)](_0x478d62))throw new Error(_0x1c55a0(0x5db)+_0x478d62);_0x10d4b3[_0x1c55a0(0x694)](_0x478d62),_0x5f2046[_0x1c55a0(0x782)]({'id':_0x478d62,'tokens':_0x51a2c0});}return _0x5f2046;}function _0x32db08(_0x1a24d5,_0x591d69=0x400){const _0x3d57a0=_0x12d4ea;if(_0x1a24d5==null)return null;const _0x521de7=String(_0x1a24d5)[_0x3d57a0(0x49d)](0x0,_0x591d69);return _0x521de7||null;}function _0x1c5737(_0x173a99){const _0x4dcfc9=_0x12d4ea;if(_0x173a99==null)return null;if(_0x173a99[_0x4dcfc9(0x69e)]!==undefined&&_0x173a99[_0x4dcfc9(0x1d0)]!==undefined)return _0x173a99;return{'key':_0x173a99['id']??null,'value':_0x173a99};}function _0x151c72(_0x2bea15){const _0x53faec=_0x12d4ea;let _0x55b220=_0x2bea15;if(typeof _0x2bea15===_0x53faec(0x48c))_0x55b220={'message':_0x2bea15};if(!_0x3da7d0(_0x55b220))throw new Error(_0x53faec(0x2e7));const _0x79bf97=_0x55b220[_0x53faec(0xd4)]==null?_0x53faec(0x76d):String(_0x55b220['level'])[_0x53faec(0x1c1)]();if(!_0x560bb2[_0x53faec(0x564)](_0x79bf97))throw new Error('invalid\x20log\x20level:\x20'+_0x79bf97);if(_0x55b220['message']==null)throw new Error('log\x20entry\x20message\x20required');const _0x42c408=String(_0x55b220['message'])[_0x53faec(0x49d)](0x0,_0x24075e);let _0x10f095=null;if(_0x55b220[_0x53faec(0x338)]!=null){if(!_0x3da7d0(_0x55b220[_0x53faec(0x338)]))throw new Error(_0x53faec(0x27a));if(JSON[_0x53faec(0x7cf)](_0x55b220[_0x53faec(0x338)])['length']>_0x3645be)throw new Error(_0x53faec(0x3d0));_0x10f095=_0x55b220[_0x53faec(0x338)];}return{'level':_0x79bf97,'message':_0x42c408,'fields':_0x10f095,'ts':Date[_0x53faec(0xcc)]()};}function _0x32e2f9(_0x451c16){const _0x267f02=_0x12d4ea;if(_0x451c16==null)return;if(!Number['isInteger'](_0x451c16)||_0x451c16<_0x4da5e8||_0x451c16>_0x35c8a9)throw new Error(_0x267f02(0x41e)+_0x4da5e8+',\x20'+_0x35c8a9+']');}function _0x52465f(_0x15eaa7){const _0x622e40=_0x12d4ea;if(!_0x3da7d0(_0x15eaa7))throw new Error('job\x20must\x20be\x20object');if(typeof _0x15eaa7['id']!==_0x622e40(0x48c)||_0x15eaa7['id'][_0x622e40(0x42c)]<0x8)throw new Error(_0x622e40(0x353));if(typeof _0x15eaa7['type']!==_0x622e40(0x48c)||!_0x15eaa7[_0x622e40(0xae)])throw new Error(_0x622e40(0x648));if(!Object[_0x622e40(0x4a4)](_0x5f2285)[_0x622e40(0x564)](_0x15eaa7[_0x622e40(0x422)]))throw new Error(_0x622e40(0x707)+_0x15eaa7[_0x622e40(0x422)]);for(const _0x129000 of[_0x622e40(0x303),'created','updated']){if(typeof _0x15eaa7[_0x129000]!==_0x622e40(0x1f1)||!Number[_0x622e40(0x105)](_0x15eaa7[_0x129000]))throw new Error('job.'+_0x129000+'\x20must\x20be\x20number');}if(_0x15eaa7[_0x622e40(0x26f)]!=null&&(typeof _0x15eaa7['finished']!==_0x622e40(0x1f1)||!Number[_0x622e40(0x105)](_0x15eaa7[_0x622e40(0x26f)])))throw new Error('job.finished\x20must\x20be\x20number|null');if(!Number[_0x622e40(0x61c)](_0x15eaa7[_0x622e40(0x351)])||_0x15eaa7[_0x622e40(0x351)]<0x0)throw new Error(_0x622e40(0x4d7));if(!Number[_0x622e40(0x61c)](_0x15eaa7['priority']))throw new Error(_0x622e40(0x67d));if(_0x15eaa7[_0x622e40(0x178)]!==null&&_0x15eaa7[_0x622e40(0x178)]!==Infinity&&(!Number[_0x622e40(0x61c)](_0x15eaa7[_0x622e40(0x178)])||_0x15eaa7[_0x622e40(0x178)]<0x1))throw new Error(_0x622e40(0x522));if(_0x15eaa7[_0x622e40(0x3b7)]!=null&&(!Number['isInteger'](_0x15eaa7['retry_delay'])||_0x15eaa7[_0x622e40(0x3b7)]<0x0))throw new Error(_0x622e40(0x177));if(_0x15eaa7[_0x622e40(0x169)]!=null&&(typeof _0x15eaa7['backoff_multiplier']!=='number'||_0x15eaa7['backoff_multiplier']<0x1))throw new Error(_0x622e40(0x76f));if(_0x15eaa7['claim_id']!=null&&typeof _0x15eaa7['claim_id']!==_0x622e40(0x48c))throw new Error(_0x622e40(0x7a3));if(_0x15eaa7[_0x622e40(0x24e)]!=null&&(typeof _0x15eaa7['claim_expires']!==_0x622e40(0x1f1)||!Number[_0x622e40(0x105)](_0x15eaa7['claim_expires'])))throw new Error(_0x622e40(0x290));if(_0x15eaa7[_0x622e40(0xcb)]!=null&&typeof _0x15eaa7[_0x622e40(0xcb)]!=='string')throw new Error(_0x622e40(0x45e));if(_0x15eaa7['bucket_tokens']!=null&&(!Number[_0x622e40(0x61c)](_0x15eaa7['bucket_tokens'])||_0x15eaa7['bucket_tokens']<0x1))throw new Error('job.bucket_tokens\x20must\x20be\x20int\x20>=1');if(_0x15eaa7[_0x622e40(0x30b)]!=null){if(!Array[_0x622e40(0x796)](_0x15eaa7[_0x622e40(0x30b)]))throw new Error(_0x622e40(0x4ae));for(const _0x5e4524 of _0x15eaa7[_0x622e40(0x30b)]){if(!_0x5e4524||typeof _0x5e4524!==_0x622e40(0x788))throw new Error(_0x622e40(0x34a));if(typeof _0x5e4524['id']!=='string'||!_0x5e4524['id'][_0x622e40(0x79c)]())throw new Error(_0x622e40(0x4a3));if(!Number[_0x622e40(0x61c)](_0x5e4524[_0x622e40(0x55b)])||_0x5e4524['tokens']<0x1)throw new Error(_0x622e40(0x1b3));}}if(_0x15eaa7[_0x622e40(0x3ab)]!=null&&typeof _0x15eaa7[_0x622e40(0x3ab)]!==_0x622e40(0x48c))throw new Error(_0x622e40(0x7d7));if(_0x15eaa7[_0x622e40(0x79a)]!=null&&typeof _0x15eaa7[_0x622e40(0x79a)]!==_0x622e40(0x48c))throw new Error(_0x622e40(0x35d));if(!Array[_0x622e40(0x796)](_0x15eaa7[_0x622e40(0x247)]))throw new Error(_0x622e40(0x59a));if(_0x15eaa7[_0x622e40(0x3c8)]!=null&&typeof _0x15eaa7[_0x622e40(0x3c8)]!==_0x622e40(0x48c))throw new Error(_0x622e40(0x7b5));if(_0x15eaa7[_0x622e40(0x167)]!=null&&typeof _0x15eaa7[_0x622e40(0x167)]!==_0x622e40(0x48c))throw new Error(_0x622e40(0x7b9));if(_0x15eaa7[_0x622e40(0x117)]!=null&&typeof _0x15eaa7[_0x622e40(0x117)]!=='string')throw new Error('job.status_message\x20must\x20be\x20string|null');if(_0x15eaa7[_0x622e40(0x354)]!=null&&typeof _0x15eaa7[_0x622e40(0x354)]!==_0x622e40(0x48c))throw new Error('job.error_stack\x20must\x20be\x20string|null');for(const _0x31dfb6 of['done_ttl','failed_ttl']){const _0x4233e9=_0x15eaa7[_0x31dfb6];if(_0x4233e9!=null&&(!Number['isInteger'](_0x4233e9)||_0x4233e9<0x0))throw new Error(_0x622e40(0x6f8)+_0x31dfb6+_0x622e40(0x101));}_0x32e2f9(_0x15eaa7[_0x622e40(0x2ad)]);}function _0x2dbe6b(_0x28d159){const _0x2e0765=_0x12d4ea;if(!_0x3da7d0(_0x28d159))throw new Error(_0x2e0765(0x3d9));if(typeof _0x28d159['id']!==_0x2e0765(0x48c)||!_0x28d159['id']['trim']())throw new Error(_0x2e0765(0x221));if(!Object[_0x2e0765(0x4a4)](_0xcc5a0a)[_0x2e0765(0x564)](_0x28d159[_0x2e0765(0x422)]))throw new Error(_0x2e0765(0x7b6)+_0x28d159[_0x2e0765(0x422)]);if(_0x28d159['max_concurrency']!=null&&(!Number[_0x2e0765(0x61c)](_0x28d159[_0x2e0765(0x263)])||_0x28d159[_0x2e0765(0x263)]<0x1))throw new Error('job_type.max_concurrency\x20must\x20be\x20int\x20>=\x201\x20or\x20null');if(_0x28d159[_0x2e0765(0xee)]!=null){if(!_0x3da7d0(_0x28d159[_0x2e0765(0xee)]))throw new Error(_0x2e0765(0x2cb));const _0x556ea8=_0x28d159['defaults'];if(_0x556ea8[_0x2e0765(0x178)]!=null&&(!Number['isInteger'](_0x556ea8['max_tries'])||_0x556ea8[_0x2e0765(0x178)]<0x1))throw new Error(_0x2e0765(0x712));if(_0x556ea8[_0x2e0765(0x3b7)]!=null&&(!Number['isInteger'](_0x556ea8[_0x2e0765(0x3b7)])||_0x556ea8[_0x2e0765(0x3b7)]<0x0))throw new Error(_0x2e0765(0xea));if(_0x556ea8[_0x2e0765(0x169)]!=null&&(typeof _0x556ea8[_0x2e0765(0x169)]!=='number'||_0x556ea8[_0x2e0765(0x169)]<0x1))throw new Error('job_type.defaults.backoff_multiplier\x20must\x20be\x20number\x20>=\x201\x20or\x20null');if(_0x556ea8[_0x2e0765(0x559)]!=null&&!Number[_0x2e0765(0x61c)](_0x556ea8[_0x2e0765(0x559)]))throw new Error(_0x2e0765(0x504));if(_0x556ea8[_0x2e0765(0x2f8)]!=null&&(!Number['isInteger'](_0x556ea8['ttl'])||_0x556ea8['ttl']<0x0))throw new Error(_0x2e0765(0x7a5));for(const _0x310786 of[_0x2e0765(0x6ea),_0x2e0765(0x478)]){if(_0x556ea8[_0x310786]!=null&&(!Number['isInteger'](_0x556ea8[_0x310786])||_0x556ea8[_0x310786]<0x0))throw new Error(_0x2e0765(0x333)+_0x310786+_0x2e0765(0x101));}if(_0x556ea8[_0x2e0765(0x30b)]!=null&&!Array['isArray'](_0x556ea8[_0x2e0765(0x30b)]))throw new Error(_0x2e0765(0x223));_0x32e2f9(_0x556ea8['logCap']);}if(_0x28d159['payload_schema']!=null){if(!_0x3da7d0(_0x28d159[_0x2e0765(0x3ef)]))throw new Error('job_type.payload_schema\x20must\x20be\x20object|null');if(!_0x3da7d0(_0x28d159[_0x2e0765(0x3ef)][_0x2e0765(0x186)]))throw new Error(_0x2e0765(0x5be));if(typeof _0x28d159[_0x2e0765(0x3ef)][_0x2e0765(0x3b8)]!==_0x2e0765(0x2fd))throw new Error(_0x2e0765(0x1d6));}for(const _0x2837e1 of[_0x2e0765(0x4f7),_0x2e0765(0x18d)]){if(typeof _0x28d159[_0x2837e1]!=='number'||!Number[_0x2e0765(0x105)](_0x28d159[_0x2837e1]))throw new Error(_0x2e0765(0x395)+_0x2837e1+_0x2e0765(0x305));}}function _0x379509(_0x1f2879){const _0xaece93=_0x12d4ea;if(!_0x3da7d0(_0x1f2879))throw new Error(_0xaece93(0x634));if(typeof _0x1f2879['id']!==_0xaece93(0x48c)||!_0x1f2879['id']['trim']())throw new Error(_0xaece93(0x43d));if(!Number['isInteger'](_0x1f2879['tokens'])||_0x1f2879['tokens']<0x0)throw new Error(_0xaece93(0x145));if(!Number['isInteger'](_0x1f2879[_0xaece93(0x502)])||_0x1f2879[_0xaece93(0x502)]<0x0)throw new Error(_0xaece93(0x436));if(_0x1f2879[_0xaece93(0x55b)]>_0x1f2879['capacity'])throw new Error(_0xaece93(0x4cd));if(!Number[_0xaece93(0x61c)](_0x1f2879[_0xaece93(0x6bd)])||_0x1f2879['refill_amount']<0x0)throw new Error(_0xaece93(0x346));if(!Number['isInteger'](_0x1f2879[_0xaece93(0x232)])||_0x1f2879['refill_every']<0x0)throw new Error(_0xaece93(0x4d9));if(typeof _0x1f2879[_0xaece93(0x1ac)]!==_0xaece93(0x1f1)||!Number[_0xaece93(0x105)](_0x1f2879['updated']))throw new Error(_0xaece93(0x3ea));}return okdbQueueValidate={'STATUS':_0x5f2285,'JOB_TYPE_STATUS':_0xcc5a0a,'QUEUE_EVENTS':_0x3a2e63,'LOG_LEVELS':_0x560bb2,'LOG_CAP_MIN':_0x4da5e8,'LOG_CAP_MAX':_0x35c8a9,'clampInt':_0x1b21f3,'asNullableString':_0x32db08,'normalizeResult':_0x1c5737,'normalizeTags':_0x3345ef,'normalizeBucket':_0x236aa5,'normalizeBuckets':_0x1e9cbe,'normalizeLogEntry':_0x151c72,'validateJobShape':_0x52465f,'validateJobTypeShape':_0x2dbe6b,'validateBucketShape':_0x379509},okdbQueueValidate;}var okdbTimers,hasRequiredOkdbTimers;function requireOkdbTimers(){if(hasRequiredOkdbTimers)return okdbTimers;hasRequiredOkdbTimers=0x1;const _0x3adb00=0x2**0x1f-0x1;function _0x3f4c84(_0x34cffc){if(!(_0x34cffc>0x0))return 0x0;return _0x34cffc>_0x3adb00?_0x3adb00:_0x34cffc;}function _0x4bd7a7(_0x4cfe7d){return _0x4cfe7d===Infinity;}return okdbTimers={'MAX_TIMER_DELAY':_0x3adb00,'clampTimerDelay':_0x3f4c84,'isNeverDelay':_0x4bd7a7},okdbTimers;}var okdbChangefeed,hasRequiredOkdbChangefeed;function requireOkdbChangefeed(){const _0x55a828=_0x2dfd83;if(hasRequiredOkdbChangefeed)return okdbChangefeed;hasRequiredOkdbChangefeed=0x1;const _0x2eeab4=require$$0$6,{clampTimerDelay:_0xdc27d0}=requireOkdbTimers(),{EVENTS:_0x5cbd45,CHANGE_ACTIONS:_0x3a0b40}=requireOkdbEnums(),{LOOP:_0x3f2db4}=requireOkdbLoopMonitor(),_0x4eea98=Number(process.env.OKDB_CHANGEFEED_QUANTUM)||0x3e8,_0x51ad57=0x5,_0x44ca6c=0x2710;class _0x2adf8f extends _0x2eeab4{constructor(_0x5a8533,_0x147ba5={}){const _0xe5a05f=_0x5aff;super(),this[_0xe5a05f(0x538)]=_0x5a8533,this[_0xe5a05f(0x6c9)]=_0x147ba5[_0xe5a05f(0x3d4)]??_0x4eea98,this['_flushDebounce']=_0x147ba5[_0xe5a05f(0x40f)]??_0x51ad57,this['_dedupeMax']=_0x147ba5[_0xe5a05f(0x165)]??_0x44ca6c,this['_started']=![],this[_0xe5a05f(0x336)]=new Map(),this[_0xe5a05f(0x233)]=new Map(),this[_0xe5a05f(0x5ad)]=new Map(),this['_flushTimer']=null,this['_draining']=![],this[_0xe5a05f(0x63a)]=new Set(),this[_0xe5a05f(0x703)]=new Set(),this['_onItem']=_0x580f26=>this[_0xe5a05f(0x3e5)](_0x580f26),this[_0xe5a05f(0x257)]=_0x192386=>this[_0xe5a05f(0x42a)](_0x192386),this[_0xe5a05f(0x570)]=_0x1a5b92=>this[_0xe5a05f(0x1dd)](_0x1a5b92),this[_0xe5a05f(0x519)]=()=>this[_0xe5a05f(0x1ff)]();}[_0x55a828(0x160)](){const _0x2dbd7a=_0x55a828;if(this[_0x2dbd7a(0x11b)])return;this[_0x2dbd7a(0x11b)]=!![];for(const [_0xf1a174,_0x32bbad]of this[_0x2dbd7a(0x538)][_0x2dbd7a(0x4a8)]){if(_0xf1a174[_0x2dbd7a(0x302)]('~'))continue;try{_0x32bbad[_0x2dbd7a(0x29b)]();}catch{}}for(const [_0x37cc47,_0x2129c4]of this['okdb'][_0x2dbd7a(0x4a8)]){if(_0x37cc47[_0x2dbd7a(0x302)]('~'))continue;try{this['_baselines'][_0x2dbd7a(0x721)](_0x37cc47,_0x2129c4[_0x2dbd7a(0x393)]()||0x0);}catch{}}const {events:_0x3cef9c}=this['okdb'];_0x3cef9c['on'](_0x5cbd45['ITEM_PENDING'],this[_0x2dbd7a(0x257)]),_0x3cef9c['on'](_0x5cbd45['ITEM_CREATE'],this[_0x2dbd7a(0x209)]),_0x3cef9c['on'](_0x5cbd45[_0x2dbd7a(0x657)],this['_onItem']),_0x3cef9c['on'](_0x5cbd45[_0x2dbd7a(0x68b)],this[_0x2dbd7a(0x209)]),_0x3cef9c['on'](_0x5cbd45[_0x2dbd7a(0x51d)],this[_0x2dbd7a(0x570)]),_0x3cef9c[_0x2dbd7a(0x171)](_0x5cbd45['SYSTEM_STOPPED'],this[_0x2dbd7a(0x519)]);}[_0x55a828(0x1ff)](){const _0xea6590=_0x55a828;if(!this['_started'])return;this[_0xea6590(0x11b)]=![];const {events:_0x5ad4a2}=this[_0xea6590(0x538)];_0x5ad4a2['off'](_0x5cbd45[_0xea6590(0x149)],this[_0xea6590(0x257)]),_0x5ad4a2['off'](_0x5cbd45[_0xea6590(0xb5)],this[_0xea6590(0x209)]),_0x5ad4a2[_0xea6590(0x509)](_0x5cbd45['ITEM_UPDATE'],this[_0xea6590(0x209)]),_0x5ad4a2[_0xea6590(0x509)](_0x5cbd45[_0xea6590(0x68b)],this[_0xea6590(0x209)]),_0x5ad4a2[_0xea6590(0x509)](_0x5cbd45[_0xea6590(0x51d)],this[_0xea6590(0x570)]);try{_0x5ad4a2[_0xea6590(0x509)](_0x5cbd45[_0xea6590(0x129)],this[_0xea6590(0x519)]);}catch{}this[_0xea6590(0x112)]&&(clearTimeout(this[_0xea6590(0x112)]),this['_flushTimer']=null),this[_0xea6590(0x5ad)][_0xea6590(0x5f1)](),this[_0xea6590(0x336)][_0xea6590(0x5f1)](),this[_0xea6590(0x233)][_0xea6590(0x5f1)](),this[_0xea6590(0x63a)][_0xea6590(0x5f1)](),this[_0xea6590(0x703)][_0xea6590(0x5f1)]();}[_0x55a828(0x79f)](_0x41d4a0,_0x5c2a2b,_0x1ddbbf,_0x26df7f){return _0x41d4a0+'\x00'+_0x5c2a2b+'\x00'+_0x1ddbbf+'\x00'+_0x26df7f;}[_0x55a828(0x7c1)](_0x56eecb,_0x33f3bb,_0x5a65e3,_0x14d559){const _0x5284cf=_0x55a828,_0x297087=this[_0x5284cf(0x79f)](_0x56eecb,_0x33f3bb,_0x5a65e3,_0x14d559);if(this[_0x5284cf(0x63a)]['has'](_0x297087))return![];this['_seen'][_0x5284cf(0x694)](_0x297087);if(this[_0x5284cf(0x63a)][_0x5284cf(0x479)]>this[_0x5284cf(0x3e7)]){const _0x3374a5=this['_seen'][_0x5284cf(0x4a4)]()[_0x5284cf(0x5fc)]()[_0x5284cf(0x1d0)];this[_0x5284cf(0x63a)][_0x5284cf(0x62a)](_0x3374a5);}return!![];}[_0x55a828(0x42a)](_0x2fdab6){const _0x40454b=_0x55a828;if(!this[_0x40454b(0x11b)]||!_0x2fdab6)return;const {env:_0xacc3f4,type:_0x5ead7d,key:_0x5288d3,clock:_0x335a7a}=_0x2fdab6;if(_0xacc3f4==null||_0x5ead7d==null||_0x5288d3==null)return;if(typeof _0xacc3f4===_0x40454b(0x48c)&&_0xacc3f4[_0x40454b(0x302)]('~'))return;if(typeof _0x5ead7d===_0x40454b(0x48c)&&_0x5ead7d['startsWith']('~'))return;this[_0x40454b(0x703)][_0x40454b(0x694)](this[_0x40454b(0x79f)](_0xacc3f4,_0x5ead7d,_0x5288d3,_0x335a7a)),this[_0x40454b(0x703)][_0x40454b(0x479)]>this['_dedupeMax']&&this[_0x40454b(0x703)][_0x40454b(0x62a)](this[_0x40454b(0x703)][_0x40454b(0x4a4)]()[_0x40454b(0x5fc)]()[_0x40454b(0x1d0)]);}[_0x55a828(0x3e5)](_0x4b2196){const _0x23bfe6=_0x55a828;if(!this[_0x23bfe6(0x11b)]||!_0x4b2196)return;const {env:_0x45f12b,type:_0x18caa8,key:_0x479fb9,clock:_0x519d36,origin:_0x28a084,action:_0x4fe324,newValue:_0xa712c8,oldValue:_0x36fd03}=_0x4b2196;if(_0x45f12b==null||_0x18caa8==null||_0x479fb9==null)return;if(typeof _0x45f12b==='string'&&_0x45f12b[_0x23bfe6(0x302)]('~'))return;if(typeof _0x18caa8===_0x23bfe6(0x48c)&&_0x18caa8['startsWith']('~'))return;this[_0x23bfe6(0x703)][_0x23bfe6(0x62a)](this[_0x23bfe6(0x79f)](_0x45f12b,_0x18caa8,_0x479fb9,_0x519d36));if(!this['_markSeen'](_0x45f12b,_0x18caa8,_0x479fb9,_0x519d36))return;const _0x26ecea=_0x4fe324===_0x3a0b40[_0x23bfe6(0x535)]?_0x23bfe6(0x102):_0x23bfe6(0x10d);this[_0x23bfe6(0x2fe)](_0x23bfe6(0x5e5),{'env':_0x45f12b,'type':_0x18caa8,'key':_0x479fb9,'op':_0x26ecea,'clock':_0x519d36,'origin':_0x28a084,'value':_0x26ecea==='remove'?null:_0xa712c8,'prevValue':_0x36fd03});}['_handlePoke'](_0x264024){const _0x41110a=_0x55a828;if(!this[_0x41110a(0x11b)])return;if(!_0x264024||typeof _0x264024[_0x41110a(0x114)]!==_0x41110a(0x48c)||typeof _0x264024[_0x41110a(0xae)]!=='string')return;const {env:_0x9811e,type:_0x46f5ea}=_0x264024;if(_0x9811e['startsWith']('~')||_0x46f5ea['startsWith']('~'))return;this[_0x41110a(0x5ad)][_0x41110a(0x721)](_0x9811e+'\x00'+_0x46f5ea,{'env':_0x9811e,'type':_0x46f5ea}),this[_0x41110a(0x3cc)]();}[_0x55a828(0x3cc)](){const _0x22cbec=_0x55a828;if(this[_0x22cbec(0x112)])return;const _0x3a1711=()=>{const _0x32ba84=_0x22cbec;this[_0x32ba84(0x112)]=null,this['_drain']()[_0x32ba84(0x5f8)](()=>{});};this[_0x22cbec(0x112)]=setTimeout(_0x3a1711,_0xdc27d0(this[_0x22cbec(0x489)]));}async['_drain'](){const _0x1419e8=_0x55a828;if(this[_0x1419e8(0x2b6)]){this[_0x1419e8(0x3cc)]();return;}this[_0x1419e8(0x2b6)]=!![];try{const _0x2929a7=[...this['_pending'][_0x1419e8(0x4a4)]()];this[_0x1419e8(0x5ad)][_0x1419e8(0x5f1)]();let _0x168d6c=![];for(const {env:_0x440926,type:_0xb37e64}of _0x2929a7){try{const _0x17d928=await this[_0x1419e8(0x756)](_0x440926,_0xb37e64);if(_0x17d928)_0x168d6c=!![];}catch{this[_0x1419e8(0x5ad)]['set'](_0x440926+'\x00'+_0xb37e64,{'env':_0x440926,'type':_0xb37e64}),_0x168d6c=!![];}}if(_0x168d6c||this['_pending'][_0x1419e8(0x479)]>0x0)this[_0x1419e8(0x3cc)]();}finally{this['_draining']=![];}}async['_drainOne'](_0x1ae703,_0x1bbe5a){const _0x38a852=_0x55a828,_0x1276fc=await this[_0x38a852(0x538)][_0x38a852(0x43f)](_0x1ae703),_0x10727b=_0x1ae703+'\x00'+_0x1bbe5a;!this['_cursors']['has'](_0x10727b)&&(!this[_0x38a852(0x233)][_0x38a852(0x7d4)](_0x1ae703)&&(_0x1276fc[_0x38a852(0x29b)](),this[_0x38a852(0x233)][_0x38a852(0x721)](_0x1ae703,_0x1276fc[_0x38a852(0x393)]()||0x0)),this['_cursors']['set'](_0x10727b,this[_0x38a852(0x233)][_0x38a852(0x73e)](_0x1ae703)));const _0x5f80bf=this[_0x38a852(0x336)][_0x38a852(0x73e)](_0x10727b),_0x56aefc=_0x1276fc['getClock'](_0x1bbe5a)||0x0;if(_0x56aefc<=_0x5f80bf)return![];const _0x251ff9=_0x5f80bf+this[_0x38a852(0x6c9)],_0x1a3a69=Math['min'](_0x56aefc,_0x251ff9),_0x1ab9f9=_0x3f2db4[_0x38a852(0x2f6)]?_0x3f2db4[_0x38a852(0xcc)]():0x0,_0x384304=Array[_0x38a852(0x6a2)](_0x1276fc[_0x38a852(0x76b)](_0x1bbe5a,_0x5f80bf+0x1,_0x1a3a69));let _0x1c3d09=_0x5f80bf;for(const _0x347780 of _0x384304){const {clock:_0x32e03d,key:_0x31029a,action:_0x3375cb,origin:_0x5231a3}=_0x347780;if(_0x32e03d>_0x1c3d09)_0x1c3d09=_0x32e03d;if(_0x31029a==null)continue;if(this[_0x38a852(0x703)]['has'](this['_dedupeKey'](_0x1ae703,_0x1bbe5a,_0x31029a,_0x32e03d)))continue;if(!this[_0x38a852(0x7c1)](_0x1ae703,_0x1bbe5a,_0x31029a,_0x32e03d))continue;let _0x3ada49,_0x470d72;if(_0x3375cb===_0x3a0b40[_0x38a852(0x535)])_0x3ada49=_0x38a852(0x102),_0x470d72=null;else{const _0x32e4e2=_0x1276fc[_0x38a852(0x73e)](_0x1bbe5a,_0x31029a);_0x32e4e2==null?(_0x3ada49=_0x38a852(0x102),_0x470d72=null):(_0x3ada49=_0x38a852(0x10d),_0x470d72=_0x32e4e2);}this[_0x38a852(0x2fe)](_0x38a852(0x5e5),{'env':_0x1ae703,'type':_0x1bbe5a,'key':_0x31029a,'op':_0x3ada49,'clock':_0x32e03d,'origin':_0x5231a3,'value':_0x470d72});}if(_0x3f2db4[_0x38a852(0x2f6)])_0x3f2db4[_0x38a852(0x3dd)](_0x38a852(0x185)+_0x1ae703+':'+_0x1bbe5a,_0x3f2db4[_0x38a852(0xcc)]()-_0x1ab9f9,'n='+_0x384304[_0x38a852(0x42c)]);return this[_0x38a852(0x336)][_0x38a852(0x721)](_0x10727b,Math[_0x38a852(0x57c)](_0x1c3d09,_0x1a3a69)),_0x1276fc[_0x38a852(0x393)](_0x1bbe5a)>_0x1a3a69;}[_0x55a828(0x422)](){const _0x30e609=_0x55a828;return{'started':this[_0x30e609(0x11b)],'quantum':this[_0x30e609(0x6c9)],'flushDebounce':this[_0x30e609(0x489)],'cursors':Object[_0x30e609(0x2bc)]([...this[_0x30e609(0x336)][_0x30e609(0x67c)]()][_0x30e609(0x78f)](([_0x2cc438,_0x217dd3])=>[_0x2cc438[_0x30e609(0x2e5)]('\x00',':'),_0x217dd3])),'pending':this[_0x30e609(0x5ad)][_0x30e609(0x479)],'seen':this[_0x30e609(0x63a)][_0x30e609(0x479)]};}}return _0x2adf8f[_0x55a828(0x10f)]=_0x4eea98,okdbChangefeed={'OKDBChangefeed':_0x2adf8f},okdbChangefeed;}var okdbRelay,hasRequiredOkdbRelay;function requireOkdbRelay(){const _0x5c45d3=_0x2dfd83;if(hasRequiredOkdbRelay)return okdbRelay;hasRequiredOkdbRelay=0x1;const {EVENTS:_0x43cef9}=requireOkdbEnums(),_0x3f7d60=new Set([_0x43cef9['ITEM_CREATE'],_0x43cef9['ITEM_UPDATE'],_0x43cef9[_0x5c45d3(0x68b)]]),{ENGINE_EVENTS:_0x18e0d4}=requireOkdbEnginesEnums(),{EMBEDDINGS_EVENTS:_0x2fa31d}=requireEnums(),{QUEUE_EVENTS:_0xff933d}=requireOkdbQueueValidate(),_0x5997c9=Object[_0x5c45d3(0x4a4)](_0x43cef9),_0x4ce455=Object['values'](_0x18e0d4)['map'](_0xc1b4a1=>_0x5c45d3(0x1d1)+_0xc1b4a1),_0x1abd5a=Object[_0x5c45d3(0x4a4)](_0x2fa31d),_0x5138f3=Object[_0x5c45d3(0x4a4)](_0xff933d),_0x49f987=['processor:ready','processor:progress',_0x5c45d3(0x11c),_0x5c45d3(0x390),_0x5c45d3(0x4dd),'processor:retry'],_0x216181=[..._0x5997c9,..._0x4ce455,..._0x1abd5a,..._0x5138f3,..._0x49f987,_0x5c45d3(0x66c)],_0x427f18=new Set(_0x216181),_0x1bce75=new Set([_0x43cef9[_0x5c45d3(0xb5)],_0x43cef9[_0x5c45d3(0x657)],_0x43cef9[_0x5c45d3(0x68b)],_0x43cef9[_0x5c45d3(0x267)],_0x43cef9[_0x5c45d3(0x4de)],_0x43cef9[_0x5c45d3(0x632)],_0x43cef9[_0x5c45d3(0x5f7)],_0x43cef9['INDEX_PROGRESS'],_0x2fa31d[_0x5c45d3(0x691)],_0x2fa31d[_0x5c45d3(0x758)],_0x2fa31d['INDEXER_DOC_QUEUED'],_0x2fa31d[_0x5c45d3(0x399)],'processor:progress']),_0x8b5b=_0x216181[_0x5c45d3(0xe5)](_0x21ba91=>_0x21ba91===_0x5c45d3(0x66c)||!_0x1bce75[_0x5c45d3(0x7d4)](_0x21ba91)),_0x50da6c=0x14,_0x2e89e3=0xc8;class _0x13ea42{constructor(_0x17deca,_0x1372d6={}){const _0x12e876=_0x5c45d3;this[_0x12e876(0x538)]=_0x17deca,this['_maxConnections']=_0x1372d6[_0x12e876(0x4c0)]??_0x50da6c,this[_0x12e876(0x3de)]=_0x1372d6[_0x12e876(0x359)]??_0x2e89e3,this['_connections']=new Set(),this[_0x12e876(0x31f)]=[],this[_0x12e876(0x64f)]=[],this[_0x12e876(0x618)]=null,this[_0x12e876(0x343)]=![],this[_0x12e876(0x466)]=null,this[_0x12e876(0x494)]=null;}[_0x5c45d3(0x476)](){const _0x296685=_0x5c45d3;if(this[_0x296685(0x343)])return;this[_0x296685(0x343)]=!![];const {okdb:_0x25f657}=this;this[_0x296685(0x618)]=_0x25f657[_0x296685(0x66c)][_0x296685(0x476)](_0xfa9b23=>this[_0x296685(0x3b4)](_0x296685(0x66c),_0xfa9b23));for(const _0x1f6245 of _0x216181){if(_0x1f6245==='log')continue;const _0x102fa8=_0x3f7d60[_0x296685(0x7d4)](_0x1f6245),_0x43a782=_0x29c225=>{const _0x36a661=_0x296685;if(_0x102fa8&&this[_0x36a661(0x466)])return;this[_0x36a661(0x3b4)](_0x1f6245,_0x29c225??{});};_0x25f657[_0x296685(0xe3)]['on'](_0x1f6245,_0x43a782),this[_0x296685(0x64f)]['push']({'event':_0x1f6245,'handler':_0x43a782});}this['_onStop']=()=>this[_0x296685(0x22a)](),_0x25f657[_0x296685(0xe3)]['once'](_0x43cef9[_0x296685(0x129)],this['_onStop']);}[_0x5c45d3(0x22a)](){const _0x470d00=_0x5c45d3;if(!this[_0x470d00(0x343)])return;if(this[_0x470d00(0x519)]){try{this[_0x470d00(0x538)][_0x470d00(0xe3)][_0x470d00(0x509)](_0x43cef9[_0x470d00(0x129)],this[_0x470d00(0x519)]);}catch{}this['_onStop']=null;}this[_0x470d00(0x618)]?.(),this[_0x470d00(0x618)]=null;for(const {event:_0x41d1d7,handler:_0x383668}of this[_0x470d00(0x64f)]){try{this['okdb'][_0x470d00(0xe3)]['off'](_0x41d1d7,_0x383668);}catch{}}this[_0x470d00(0x64f)]=[];for(const _0x333692 of this['_connections']){try{_0x333692[_0x470d00(0x3f5)]?.();}catch{}}this[_0x470d00(0x5d6)][_0x470d00(0x5f1)](),this['detachFeed'](),this[_0x470d00(0x343)]=![];}[_0x5c45d3(0x7da)](_0x580541){const _0x282735=_0x5c45d3;if(!_0x580541||this['_feed']===_0x580541)return;this[_0x282735(0x3e2)](),this[_0x282735(0x466)]=_0x580541,this['_onFeedChange']=_0xdc44a8=>{const _0x4c883a=_0x282735;if(!_0xdc44a8)return;const _0x118873=_0xdc44a8['op']==='remove'?_0x43cef9[_0x4c883a(0x68b)]:_0x43cef9['ITEM_UPDATE'];this[_0x4c883a(0x3b4)](_0x118873,_0xdc44a8);},_0x580541['on'](_0x282735(0x5e5),this[_0x282735(0x494)]);}['detachFeed'](){const _0x10bfae=_0x5c45d3;if(this[_0x10bfae(0x466)]&&this['_onFeedChange'])try{this[_0x10bfae(0x466)][_0x10bfae(0x509)](_0x10bfae(0x5e5),this[_0x10bfae(0x494)]);}catch{}this[_0x10bfae(0x466)]=null,this[_0x10bfae(0x494)]=null;}[_0x5c45d3(0x3c2)](_0x38074a,_0x186f71){const _0x1973e7=_0x5c45d3;if(!_0x427f18[_0x1973e7(0x7d4)](_0x38074a))return;this[_0x1973e7(0x3b4)](_0x38074a,_0x186f71??{});}['subscribe'](_0x40fcc5,_0x2e08fb,_0x1c8161){const _0x209d6d=_0x5c45d3;if(this[_0x209d6d(0x5d6)][_0x209d6d(0x479)]>=this[_0x209d6d(0x308)])return _0x2e08fb('relay:error',{'message':'Too\x20many\x20concurrent\x20connections','code':'RELAY_FULL'}),()=>{};const _0x3f8e59=this[_0x209d6d(0x514)](_0x40fcc5),_0x32211e={'send':_0x2e08fb,'filter':_0x3f8e59,'close':_0x1c8161??null};this['_connections']['add'](_0x32211e);for(const {event:_0x4de487,data:_0x458159}of this['_buffer']){if(_0x3f8e59[_0x209d6d(0x7d4)](_0x4de487))try{_0x2e08fb(_0x4de487,_0x458159);}catch{}}return()=>this[_0x209d6d(0x5d6)][_0x209d6d(0x62a)](_0x32211e);}[_0x5c45d3(0x1f7)](){const _0x1d7cd4=_0x5c45d3;if(this[_0x1d7cd4(0x466)])return this[_0x1d7cd4(0x466)];const {OKDBChangefeed:_0x1ff549}=requireOkdbChangefeed(),_0x185fa=new _0x1ff549(this[_0x1d7cd4(0x538)]);_0x185fa[_0x1d7cd4(0x160)](),this['attachFeed'](_0x185fa);if(this[_0x1d7cd4(0x538)]&&!this[_0x1d7cd4(0x538)][_0x1d7cd4(0x243)])this['okdb'][_0x1d7cd4(0x243)]=_0x185fa;return this['_feed'];}get[_0x5c45d3(0x3f7)](){const _0x330f30=_0x5c45d3;return this[_0x330f30(0x5d6)][_0x330f30(0x479)];}[_0x5c45d3(0x156)](){const _0x2df128=_0x5c45d3;return{'connections':this[_0x2df128(0x3f7)],'bufferSize':this[_0x2df128(0x31f)][_0x2df128(0x42c)],'attached':this[_0x2df128(0x343)],'allEvents':_0x216181[_0x2df128(0x42c)],'defaultEvents':_0x8b5b['length']};}static get[_0x5c45d3(0x1aa)](){return _0x216181;}static get[_0x5c45d3(0x551)](){return _0x8b5b;}static get['HIGH_FREQ_EVENTS'](){return[..._0x1bce75];}[_0x5c45d3(0x514)](_0x1f717c){const _0x28708e=_0x5c45d3;if(!_0x1f717c||!_0x1f717c[_0x28708e(0x42c)])return new Set(_0x8b5b);const _0xc26c2b=_0x1f717c[_0x28708e(0xe5)](_0x15ac57=>_0x427f18[_0x28708e(0x7d4)](_0x15ac57));return new Set(_0xc26c2b[_0x28708e(0x42c)]?_0xc26c2b:_0x8b5b);}[_0x5c45d3(0x3b4)](_0x52b61a,_0x453bbd){const _0x2fb1e0=_0x5c45d3,_0xe56cb1={..._0x453bbd,'_ts':_0x453bbd?.[_0x2fb1e0(0x6bf)]??_0x453bbd?.['ts']??Date[_0x2fb1e0(0xcc)]()};this[_0x2fb1e0(0x31f)][_0x2fb1e0(0x782)]({'event':_0x52b61a,'data':_0xe56cb1});if(this['_buffer'][_0x2fb1e0(0x42c)]>this[_0x2fb1e0(0x3de)])this[_0x2fb1e0(0x31f)][_0x2fb1e0(0x792)]();for(const _0x405ece of this['_connections']){if(_0x405ece[_0x2fb1e0(0xe5)][_0x2fb1e0(0x7d4)](_0x52b61a))try{_0x405ece[_0x2fb1e0(0x253)](_0x52b61a,_0xe56cb1);}catch{}}}}return okdbRelay=_0x13ea42,okdbRelay;}var hasRequiredLib;function requireLib(){const _0x473979=_0x2dfd83;if(hasRequiredLib)return lib[_0x473979(0x4ec)];return hasRequiredLib=0x1,function(_0x196de7){const _0x3094f4=_0x473979,_0x3b472c=require$$0$6,{load:_0x2449b1}=require$$1$1,_0x4749c7=requireBridge(),_0xcfe706=requireWritebatch(),{Pumper:_0x3c1f12}=requirePump(),{OKDBEnv:_0x27399c,HIGH_SENTINEL:_0x4dbb5d}=requireEnv(),{reclass:_0x16215f,NotImplementedNative:_0x5a8fd8,OKDBError:_0x189190,optionsArg:_0x349968,invalidArgument:_0x193d25}=requireErrors(),{notImplemented:_0xf6c8e1}=requireUnsupported(),{OKDBHttp:_0x27f35c}=requireHttp(),{OKDBFts:_0x4f20e2}=requireFts(),{OKDBEmbeddings:_0x14c516}=requireEmbeddings(),{OKDBAuth:_0x26d481}=requireAuth(),{OKDBSync:_0x17a7e4}=requireSync(),{OKDBMigrate:_0x2498a9}=requireMigrate(),{OKDBFunctions:_0x48122b}=requireFunctions(),{OKDBMcp:_0x37b725}=requireMcp(),{OKDBEngines:_0x4ae637,OKDBPipelines:_0x162576}=requireEngines(),{makeMeta:_0x402b23,makeLicenses:_0xc27fbf,makeLicenseChecker:_0x376e9a,makeProcesses:_0x57634d}=requireSys();let _0xb3c1ea=null;function _0x46cb98(_0x1c992e){const _0x2814ca=_0x5aff;if(!_0xb3c1ea){const {Unpackr:_0x18b4f}=require$$18;_0xb3c1ea=new _0x18b4f({'useRecords':![],'mapsAsObjects':!![],'copyBuffers':!![]});}return _0xb3c1ea[_0x2814ca(0x582)](_0x1c992e);}let _0x37bd4a=null;function _0xb19d3e(_0x156ef4,_0x5149c5){if(!_0x37bd4a){const {Unpackr:_0x5976c0}=require$$18;_0x37bd4a=new _0x5976c0({'copyBuffers':!![]});}return _0x37bd4a['unpack'](_0x156ef4,_0x5149c5);}const {encodeKey:_0x4b3d8c,KEY_BUF_SIZE:_0xaa5092,NO_FAST:_0x14afb6}=requireKeyenc(),_0x46c5c8=0x40*0x400,_0x4574fe=0x4*0x400*0x400;function _0xbe85e3(_0x5a0149,_0x555bc2){const _0xfd8e32=_0x5aff,_0x4870c0=_0x5a0149[0x2],_0x54ad4b=_0x4870c0?(_0x5a0149['length']-0x3)/Math[_0xfd8e32(0x38e)](_0x4870c0):0x0,_0x44417c=new Array(_0x54ad4b);let _0x4842f3=0x3;if(_0x4870c0===0x2){for(let _0x2ddd9e=0x0;_0x2ddd9e<_0x54ad4b;_0x2ddd9e++,_0x4842f3+=0x2)_0x44417c[_0x2ddd9e]={'key':_0x5a0149[_0x4842f3],'value':_0x5a0149[_0x4842f3+0x1]};}else{if(_0x4870c0===0x3){for(let _0x42eed2=0x0;_0x42eed2<_0x54ad4b;_0x42eed2++,_0x4842f3+=0x3)_0x44417c[_0x42eed2]={'key':_0x5a0149[_0x4842f3],'value':_0x5a0149[_0x4842f3+0x1],'version':_0x5a0149[_0x4842f3+0x2]};}else{if(_0x4870c0===-0x2){for(let _0x5deae1=0x0;_0x5deae1<_0x54ad4b;_0x5deae1++,_0x4842f3+=0x2)_0x44417c[_0x5deae1]={'clock':_0x5a0149[_0x4842f3],..._0x5a0149[_0x4842f3+0x1]};}else{if(_0x4870c0===0x4){for(let _0x35f006=0x0;_0x35f006<_0x54ad4b;_0x35f006++,_0x4842f3+=0x4)_0x44417c[_0x35f006]={'key':_0x5a0149[_0x4842f3],'value':_0x5a0149[_0x4842f3+0x1],'version':_0x5a0149[_0x4842f3+0x2],'indexKey':_0x5a0149[_0x4842f3+0x3]};}else{if(_0x54ad4b)throw new Error(_0xfd8e32(0x5a6)+_0x4870c0);}}}}return _0x555bc2?[_0x5a0149[0x0],_0x44417c,_0x5a0149[0x1]]:_0x44417c;}let _0x3d90f2=null;function _0x51ff2a(_0x10f3bc,_0x3a370b,_0x525fbe){const _0xee57fe=_0x5aff;if(!_0x3d90f2)_0x3d90f2=requireDist()[_0xee57fe(0x2ab)];const _0x585dd0=new DataView(_0x10f3bc[_0xee57fe(0x174)],_0x10f3bc[_0xee57fe(0xb9)],_0x3a370b),_0x43646f=_0x585dd0[_0xee57fe(0x349)](0x10,!![]),_0x2f4881=new Array(_0x43646f);let _0x1e34ed=0x14;for(let _0x152ced=0x0;_0x152ced<_0x43646f;_0x152ced++){const _0x15b830=_0x10f3bc[_0x1e34ed]|_0x10f3bc[_0x1e34ed+0x1]<<0x8;_0x1e34ed+=0x2,_0x2f4881[_0x152ced]=_0x3d90f2(_0x10f3bc,_0x1e34ed,_0x1e34ed+_0x15b830),_0x1e34ed+=_0x15b830;}return _0x525fbe?[_0x585dd0[_0xee57fe(0x704)](0x0,!![]),_0x2f4881,_0x585dd0[_0xee57fe(0x704)](0x8,!![])]:_0x2f4881;}const _0xdcad31=requireOkdbLogger(),_0x4687a6=requireOkdbPlugins(),{OKDB_STATE:_0x378851,EVENTS:_0x1dd2cb}=requireOkdbEnums(),_0x1a4ec9=requireStatics();let _0x1874d6=null,_0x2da8b7=![],_0x22121a=0x1;const _0x3a5ef3=new Map(),_0x508686=new Set([_0x3094f4(0x56a),_0x3094f4(0x372)]),_0x4c7c96=_0x428019=>!!_0x428019&&_0x508686[_0x3094f4(0x7d4)](_0x428019[_0x3094f4(0x330)]),_0x53dd70=Number(process.env.OKDB_PENDING_RETRY_MS)>0x0?Number(process.env.OKDB_PENDING_RETRY_MS):0x1d4c0;function _0x56a6ff(){const _0x3b415b=_0x3094f4;!_0x2da8b7&&(_0x461966()[_0x3b415b(0x54d)](_0x4749c7[_0x3b415b(0x2b5)]),_0xcfe706[_0x3b415b(0x500)](_0x461966()),_0x2da8b7=!![]);}function _0x461966(){if(!_0x1874d6)_0x1874d6=_0x2449b1();return _0x1874d6;}class _0x25aed3 extends Map{constructor(_0x2571db){super(),this['_db']=_0x2571db;}[_0x3094f4(0x4fa)](){const _0x1593c2=_0x3094f4,_0x7b8dbe=this[_0x1593c2(0x1d5)];if(!_0x7b8dbe['_isOpen'])return;let _0x279309;try{_0x279309=_0x7b8dbe[_0x1593c2(0x11e)]('db',null,_0x1593c2(0x433),[],![]);}catch{return;}for(const _0x389988 of _0x279309)if(!super['has'](_0x389988)&&_0x7b8dbe[_0x1593c2(0x11e)]('db',null,_0x1593c2(0x218),[_0x389988],![]))_0x7b8dbe[_0x1593c2(0x6eb)](_0x389988);}[_0x3094f4(0x73e)](_0x5dd44e){const _0x5cbe90=_0x3094f4,_0x1dec40=super[_0x5cbe90(0x73e)](_0x5dd44e);if(_0x1dec40!==undefined||typeof _0x5dd44e!==_0x5cbe90(0x48c))return _0x1dec40;const _0x21302c=this[_0x5cbe90(0x1d5)];if(_0x5dd44e===_0x5cbe90(0x15f))return _0x21302c['_isOpen']?_0x21302c[_0x5cbe90(0x38c)][_0x5cbe90(0x181)]??undefined:undefined;if(_0x21302c[_0x5cbe90(0x56b)]&&_0x21302c[_0x5cbe90(0x11e)]('db',null,_0x5cbe90(0x218),[_0x5dd44e],![]))return _0x21302c['_ensureEnv'](_0x5dd44e);if(_0x21302c['_isOpen']&&typeof _0x5dd44e===_0x5cbe90(0x48c)&&!_0x5dd44e[_0x5cbe90(0x302)]('~')){_0x21302c[_0x5cbe90(0x11e)]('db',null,_0x5cbe90(0x150),[],![]);if(_0x21302c[_0x5cbe90(0x11e)]('db',null,'hasEnv',[_0x5dd44e],![]))return _0x21302c[_0x5cbe90(0x6eb)](_0x5dd44e);}return undefined;}[_0x3094f4(0x7d4)](_0x6c8093){const _0x394b2d=_0x3094f4;return this[_0x394b2d(0x73e)](_0x6c8093)!==undefined;}get[_0x3094f4(0x479)](){const _0x55f78d=_0x3094f4;return this[_0x55f78d(0x4fa)](),super['size'];}[_0x3094f4(0x6e4)](){const _0x54a560=_0x3094f4;return this[_0x54a560(0x4fa)](),super[_0x54a560(0x6e4)]();}[_0x3094f4(0x4a4)](){const _0x12dae5=_0x3094f4;return this[_0x12dae5(0x4fa)](),super['values']();}[_0x3094f4(0x67c)](){const _0x15cd1d=_0x3094f4;return this[_0x15cd1d(0x4fa)](),super['entries']();}['forEach'](_0x52bfe1,_0x2b949a){const _0x89e0a3=_0x3094f4;return this['_sync'](),super[_0x89e0a3(0x356)](_0x52bfe1,_0x2b949a);}[Symbol[_0x3094f4(0x3f3)]](){const _0x4b73c3=_0x3094f4;return this[_0x4b73c3(0x4fa)](),super[Symbol[_0x4b73c3(0x3f3)]]();}}class _0x2b588c{constructor(_0x25fae5,_0x1223cc={}){const _0x4015b0=_0x3094f4,_0x2484bb=_0x461966();this['path']=_0x25fae5,this[_0x4015b0(0x75c)]=_0x22121a++,this['_key']='db'+this['_uid'],this[_0x4015b0(0x51c)]={..._0x1a4ec9[_0x4015b0(0xee)],..._0x1223cc,'auth':_0x1223cc[_0x4015b0(0x760)]?{..._0x1223cc['auth']}:undefined,'lmdb':{..._0x1223cc['lmdb']||{}}},this[_0x4015b0(0xe3)]=new _0x3b472c(),this['events'][_0x4015b0(0x61a)](0x0),this[_0x4015b0(0x57d)]=new Set(),this[_0x4015b0(0xe3)]['on'](_0x4015b0(0x508),_0x176c38=>this[_0x4015b0(0x49a)](_0x176c38)),this[_0x4015b0(0x66c)]=new _0xdcad31(this),this['log'][_0x4015b0(0x1f0)](),_0x4749c7['registerTarget'](this[_0x4015b0(0xb1)],{'_deliver':(_0x536536,_0x540b7a)=>this[_0x4015b0(0x55f)](_0x536536,_0x540b7a),'_log':_0x2fb815=>{const _0x25a5c0=_0x4015b0;if(this[_0x25a5c0(0x70b)])this[_0x25a5c0(0x70b)][_0x25a5c0(0x782)](_0x2fb815);const _0x8638cf=_0x2fb815&&_0x2fb815['level'];if(_0x8638cf&&Object[_0x25a5c0(0x175)][_0x25a5c0(0x3ee)][_0x25a5c0(0x772)](this[_0x25a5c0(0x66c)],_0x8638cf)&&typeof this[_0x25a5c0(0x66c)][_0x8638cf]===_0x25a5c0(0x656)){const _0x5350a3=_0x2fb815[_0x25a5c0(0x67b)];return this['log'][_0x8638cf](_0x2fb815['msg'],{..._0x2fb815[_0x25a5c0(0xc5)]||{},..._0x5350a3&&typeof _0x5350a3===_0x25a5c0(0x788)?_0x5350a3:{}});}return this[_0x25a5c0(0x66c)][_0x25a5c0(0x164)](_0x2fb815);}}),_0x56a6ff();try{const _0x282c5c={};if(typeof _0x4015b0(0x4fb)==='undefined'||_0x4015b0(0x4fb)!==_0x4015b0(0x4fb));const _0xd3a1bd={..._0x1223cc,'_clusterWorker':require(_0x4015b0(0x693))[_0x4015b0(0x6f3)],..._0x282c5c};this['_keyFns']={'instance':null,'envs':new Map()};typeof _0x1223cc[_0x4015b0(0x1be)]==='function'&&(this[_0x4015b0(0x379)]['instance']=_0x1223cc[_0x4015b0(0x1be)],delete _0xd3a1bd[_0x4015b0(0x1be)]);if(_0x1223cc[_0x4015b0(0xf1)]&&typeof _0x1223cc[_0x4015b0(0xf1)]===_0x4015b0(0x788)){for(const [_0x2cf4aa,_0x13dca5]of Object[_0x4015b0(0x67c)](_0x1223cc[_0x4015b0(0xf1)]))this['_keyFns']['envs'][_0x4015b0(0x721)](_0x2cf4aa,_0x13dca5);}delete _0xd3a1bd['encryptionKeys'],this[_0x4015b0(0x2a7)]=new _0x2484bb[(_0x4015b0(0x3df))](_0x25fae5,_0xd3a1bd,this['_key']);}catch(_0x3ec0d9){_0x4749c7[_0x4015b0(0x698)](this[_0x4015b0(0xb1)]);throw _0x16215f(_0x3ec0d9);}this[_0x4015b0(0x728)]=_0x378851[_0x4015b0(0x3ce)],this[_0x4015b0(0x56b)]=![],this['_envs']=new _0x25aed3(this),this['_pumper']=new _0x3c1f12({'pump':()=>this['_native']['pump']()}),this[_0x4015b0(0x65f)]=new _0xcfe706[(_0x4015b0(0x7ad))](this),this['_pumper']['afterTurn']=()=>_0x4749c7[_0x4015b0(0x761)](),_0x4749c7['setKick'](()=>this[_0x4015b0(0x166)][_0x4015b0(0x7a8)](),this),_0x3a5ef3[_0x4015b0(0x721)](this['_uid'],this),this[_0x4015b0(0x5ee)]={},_0x4749c7['setCurrentDb'](this),this[_0x4015b0(0x131)]=new _0x4f20e2(this),this[_0x4015b0(0x737)]=new _0x14c516(this),this[_0x4015b0(0x675)]=new _0x4ae637(this,null,null),this['pipelines']=new _0x162576(this,null),this[_0x4015b0(0xc5)]=_0x402b23(this),this[_0x4015b0(0x5ec)]=_0xc27fbf(this),this[_0x4015b0(0x384)]=_0x376e9a(this),this[_0x4015b0(0x38c)]=_0x57634d(this),this[_0x4015b0(0x461)]=_0x126664(this),this[_0x4015b0(0x37c)]=new _0x4687a6(this),this[_0x4015b0(0x679)]=new _0x27f35c(this),this[_0x4015b0(0x630)]=new _0x17a7e4(this),this['auth']=new _0x26d481(this),this[_0x4015b0(0x3f9)]=new _0x48122b(this,null),this['mcp']=new _0x37b725(this),this['admin']=_0x1223cc&&_0x1223cc['admin']===![]?null:_0xf6c8e1(_0x4015b0(0x16b)),this[_0x4015b0(0x22e)]=_0xf6c8e1(_0x4015b0(0x22e)),this['migrate']=new _0x2498a9(this);}[_0x3094f4(0x11e)](_0x592c95,_0xba5a93,_0x9310fc,_0x2e29c7,_0x23b0d4=!![]){const _0x226a34=_0x3094f4;if(_0x23b0d4&&this[_0x226a34(0x65f)]&&this[_0x226a34(0x65f)]['queue'][_0x226a34(0x42c)])this[_0x226a34(0x65f)][_0x226a34(0x53d)]();try{return this[_0x226a34(0x2a7)][_0x226a34(0x772)](_0x592c95,_0xba5a93,_0x9310fc,_0x2e29c7);}catch(_0xafbebc){throw _0x16215f(_0xafbebc);}finally{if(_0x23b0d4)this[_0x226a34(0x166)][_0x226a34(0x7a8)]();}}['_callPacked'](_0x230357,_0x56dd56,_0x2f43ff,_0x2999fe){const _0xa5d6b4=_0x3094f4;let _0x392fde;try{_0x392fde=this[_0xa5d6b4(0x2a7)]['callPacked'](_0x230357,_0x56dd56,_0x2f43ff,_0x2999fe);}catch(_0x190d22){throw _0x16215f(_0x190d22);}return _0x392fde instanceof Uint8Array?_0x46cb98(_0x392fde):_0x392fde[0x0];}[_0x3094f4(0x3b3)](_0x415380){const _0x245f58=_0x3094f4;let _0x29cf04=this['_rbuf'];if(_0x29cf04&&_0x415380<=_0x29cf04['length'])return _0x29cf04;let _0x4b169e=_0x29cf04?_0x29cf04['length']:_0x46c5c8;while(_0x4b169e<_0x415380)_0x4b169e*=0x2;if(_0x4b169e>_0x4574fe)return _0x29cf04;return _0x29cf04=this['_rbuf']=Buffer[_0x245f58(0x722)](_0x4b169e),this['_native']['setReadBuffer'](_0x29cf04),_0x29cf04;}['_getRaw'](_0x4e7a1c,_0x2780e9,_0x13d94f){const _0x3c811f=_0x3094f4;if(!this[_0x3c811f(0x41c)])this[_0x3c811f(0x3b3)](0x0);const _0x11df02=this[_0x3c811f(0x2a7)][_0x3c811f(0x5ca)](_0x4e7a1c,_0x2780e9,_0x13d94f);if(typeof _0x11df02==='number')return _0xb19d3e(this[_0x3c811f(0x41c)],_0x11df02);if(_0x11df02===undefined||_0x11df02===null)return _0x11df02;return this[_0x3c811f(0x3b3)](_0x11df02[_0x3c811f(0x42c)]),_0xb19d3e(_0x11df02);}[_0x3094f4(0x39e)](_0x20de0e,_0x31a44e,_0x4bbddc){const _0x4e644e=_0x3094f4;let _0xd5b91d=this['_kbuf'];if(!_0xd5b91d){_0xd5b91d=this[_0x4e644e(0x31c)]=Buffer['allocUnsafeSlow'](_0xaa5092),this[_0x4e644e(0x2a7)][_0x4e644e(0x6b5)](_0xd5b91d),this[_0x4e644e(0x20a)]=new Map();if(!this[_0x4e644e(0x41c)])this[_0x4e644e(0x3b3)](0x0);}const _0x39f774=_0x4b3d8c(_0x4bbddc,_0xd5b91d);if(_0x39f774<0x0)return _0x14afb6;let _0x526478=this[_0x4e644e(0x20a)]['get'](_0x20de0e);if(_0x526478===undefined)this[_0x4e644e(0x20a)][_0x4e644e(0x721)](_0x20de0e,_0x526478=new Map());let _0x57cd9f=_0x526478[_0x4e644e(0x73e)](_0x31a44e);if(_0x57cd9f===undefined)_0x526478['set'](_0x31a44e,_0x57cd9f=this[_0x4e644e(0x2a7)][_0x4e644e(0x765)](_0x20de0e,_0x31a44e));if(_0x57cd9f<0x0)return _0x14afb6;const _0x5910a7=this[_0x4e644e(0x2a7)][_0x4e644e(0x52d)](_0x57cd9f,_0x39f774);if(typeof _0x5910a7===_0x4e644e(0x1f1))return _0xb19d3e(this[_0x4e644e(0x41c)],_0x5910a7);if(_0x5910a7===undefined||_0x5910a7===null)return _0x5910a7;return this['_readBuf'](_0x5910a7[_0x4e644e(0x42c)]),_0xb19d3e(_0x5910a7);}[_0x3094f4(0x187)](_0x3ed346,_0x5df68a,_0x5acba3){const _0xcec701=_0x3094f4;if(!this[_0xcec701(0x41c)])this[_0xcec701(0x3b3)](0x0);let _0xd2a096;try{_0xd2a096=this['_native'][_0xcec701(0x2b1)](_0x3ed346,_0x5df68a,_0x5acba3);}catch(_0x217f9c){throw _0x16215f(_0x217f9c);}const _0x5f0999=_0x5df68a===_0xcec701(0x624),_0x20e443=_0x5f0999?_0x5acba3[0x1]:_0x5df68a;let _0x21a92a=this['_rbuf'],_0x2cdee6=_0xd2a096;if(_0xd2a096 instanceof Uint8Array)this[_0xcec701(0x3b3)](_0xd2a096['length']),_0x21a92a=_0xd2a096,_0x2cdee6=_0xd2a096[_0xcec701(0x42c)];else{if(typeof _0xd2a096!==_0xcec701(0x1f1))return _0xd2a096[0x0];}if(_0x20e443==='getKeys')return _0x51ff2a(_0x21a92a,_0x2cdee6,_0x5f0999);if(_0x20e443==='getMany')return _0xb19d3e(_0x21a92a,_0x2cdee6);return _0xbe85e3(_0xb19d3e(_0x21a92a,_0x2cdee6),_0x5f0999);}['_callMacro'](_0xece863,_0x5d5b0b,_0x21145d,_0x68331f,_0x3ee197=!![],_0x4bebe9=!![]){const _0x321bc6=_0x3094f4,_0x226642=()=>this[_0x321bc6(0x6e2)](()=>this[_0x321bc6(0x11e)](_0xece863,_0x5d5b0b,_0x21145d,_0x68331f,_0x3ee197));if(!_0x4bebe9)return _0x226642();return this[_0x321bc6(0x762)](_0x226642);}[_0x3094f4(0x762)](_0x46c46f){return _0x46c46f()['catch'](async _0x456ea4=>{const _0x1a0bac=_0x5aff;if(!_0x4c7c96(_0x456ea4))throw _0x456ea4;const _0x3cbe69=Date['now']()+_0x53dd70;let _0x79cfb0=0x1;while(_0x4c7c96(_0x456ea4)&&Date[_0x1a0bac(0xcc)]()<_0x3cbe69){await new Promise(_0x4908a4=>setTimeout(_0x4908a4,_0x79cfb0)),_0x79cfb0=Math['min'](_0x79cfb0*0x2,0x14);try{return await _0x46c46f();}catch(_0x24d7c3){_0x456ea4=_0x24d7c3;}}throw _0x456ea4;});}[_0x3094f4(0x640)](_0x24fb99){const _0x2d8272=_0x3094f4;if(_0x4749c7[_0x2d8272(0x406)]())return Promise['resolve'](_0x24fb99);return new Promise(_0x5780f7=>setImmediate(()=>_0x5780f7(_0x24fb99)));}[_0x3094f4(0x4cf)](_0x22a09d){const _0x48b585=_0x3094f4;if(_0x4749c7[_0x48b585(0x406)]())return Promise[_0x48b585(0x705)](_0x22a09d);return this[_0x48b585(0x449)]()['then'](()=>_0x22a09d);}[_0x3094f4(0x449)](){return new Promise(_0x164cfe=>setImmediate(()=>{const _0x3120fd=_0x5aff;let _0x3b8e6e;try{_0x3b8e6e=this[_0x3120fd(0x2a7)][_0x3120fd(0x33e)]();}catch{return _0x164cfe();}_0xcfe706['whenSettled'](_0x3b8e6e,_0x164cfe);}));}[_0x3094f4(0x6e2)](_0x1385e2){return new Promise((_0x24f4be,_0x394087)=>setImmediate(()=>{try{_0x24f4be(_0x1385e2());}catch(_0xe83308){_0x394087(_0xe83308);}}));}[_0x3094f4(0x701)](_0x55fdbf,_0x1930de,_0x363be1){return _0x1b9797(_0x55fdbf,_0x1930de,_0x363be1);}['_subscribeEvent'](_0x23db9f){const _0x1175d4=_0x3094f4;if(typeof _0x23db9f!==_0x1175d4(0x48c)||this['_subscribed'][_0x1175d4(0x7d4)](_0x23db9f)||_0x23db9f===_0x1175d4(0x508)||_0x23db9f==='removeListener')return;this['_subscribed'][_0x1175d4(0x694)](_0x23db9f);try{this[_0x1175d4(0x2a7)][_0x1175d4(0x772)](_0x1175d4(0xe3),null,_0x1175d4(0x6b9),[this[_0x1175d4(0xb1)],_0x23db9f]);}catch{}}['_deliverEvent'](_0x31037a,_0x479c08){const _0x230c61=_0x3094f4;this['events'][_0x230c61(0x2fe)](_0x31037a,_0x479c08);}async['_resolveKeys'](){const _0x510206=_0x3094f4,_0x5c0b01=this['_keyFns'];if(_0x5c0b01[_0x510206(0xfe)])this[_0x510206(0x7ae)](null,await _0x5c0b01[_0x510206(0xfe)](null),!![]);for(const [_0x39f564,_0x2e56ec]of _0x5c0b01['envs'])this[_0x510206(0x7ae)](_0x39f564,typeof _0x2e56ec===_0x510206(0x656)?await _0x2e56ec(_0x39f564):_0x2e56ec,typeof _0x2e56ec==='function');(_0x5c0b01[_0x510206(0xfe)]||[..._0x5c0b01[_0x510206(0xe7)][_0x510206(0x4a4)]()][_0x510206(0x787)](_0x2c4de8=>typeof _0x2c4de8==='function'))&&!this['_keyListener']&&(this['_keyListener']=_0xe542ff=>{const _0x3e07c7=_0x510206,_0xa408a=_0xe542ff&&_0xe542ff[_0x3e07c7(0x114)]!=null?_0xe542ff[_0x3e07c7(0x114)]:null,_0x51c931=_0xa408a==null?_0x5c0b01[_0x3e07c7(0xfe)]:_0x5c0b01[_0x3e07c7(0xe7)][_0x3e07c7(0x73e)](_0xa408a);if(typeof _0x51c931!==_0x3e07c7(0x656))return;Promise['resolve']()[_0x3e07c7(0x447)](()=>_0x51c931(_0xa408a))[_0x3e07c7(0x447)](_0x3af437=>this[_0x3e07c7(0x7ae)](_0xa408a,_0x3af437,!![]))[_0x3e07c7(0x5f8)](_0x158690=>this['log']['error'](_0x3e07c7(0x2a2)+(_0x158690&&_0x158690[_0x3e07c7(0x3f1)]),{'env':_0xa408a}));},this[_0x510206(0xe3)]['on'](_0x510206(0x142),this[_0x510206(0x590)]));}['_setKey'](_0x345396,_0x4ae14e,_0x2e2e52){const _0x28fe51=_0x3094f4;if(_0x4ae14e==null)throw new _0x189190(_0x28fe51(0x660)+(_0x345396?'\x20of\x20env\x20\x22'+_0x345396+'\x22':'')+'\x20returned\x20no\x20key',_0x28fe51(0x63c));this[_0x28fe51(0x2a7)]['call']('db',null,_0x28fe51(0x15c),[_0x345396,_0x4ae14e,!!_0x2e2e52]);}async[_0x3094f4(0x130)](_0x1d66cb){const _0x3f336c=_0x3094f4;this[_0x3f336c(0x273)]();const {env:env=null,to:_0x6b6678}=_0x349968(_0x1d66cb),_0x2e9869=typeof _0x6b6678==='function',_0x50258d=_0x2e9869?await _0x6b6678(env):_0x6b6678;if(_0x50258d==null)throw _0x193d25(_0x3f336c(0x397),'a\x2032-character\x20key\x20or\x20a\x20function\x20returning\x20one',_0x50258d);const _0xa653=this[_0x3f336c(0x11e)]('db',null,_0x3f336c(0x130),[env,_0x50258d,_0x2e9869]);if(_0x2e9869){if(env==null)this[_0x3f336c(0x379)]['instance']=_0x6b6678;else this[_0x3f336c(0x379)]['envs'][_0x3f336c(0x721)](env,_0x6b6678);}return _0xa653;}async['reencrypt'](_0x239005){const _0x27ec21=_0x3094f4;this[_0x27ec21(0x273)]();const _0x624df=_0x349968(_0x239005);if(!_0x624df[_0x27ec21(0x114)])throw _0x193d25(_0x27ec21(0x453),_0x27ec21(0x23a),_0x624df[_0x27ec21(0x114)]);let _0x39699e=_0x624df['to'];const _0x4701ab=typeof _0x39699e===_0x27ec21(0x656);if(_0x4701ab)_0x39699e=await _0x624df['to'](_0x624df[_0x27ec21(0x114)]);const _0x106d7c=await this['_macro'](()=>this[_0x27ec21(0x11e)]('db',null,'reencrypt',[_0x624df[_0x27ec21(0x114)],'to'in _0x624df?_0x39699e:undefined,_0x4701ab]));if(_0x4701ab)this[_0x27ec21(0x379)][_0x27ec21(0xe7)]['set'](_0x624df[_0x27ec21(0x114)],_0x624df['to']);return _0x106d7c;}async[_0x3094f4(0x5da)](){const _0x4c9a7e=_0x3094f4;if(this[_0x4c9a7e(0x728)]===_0x378851['STARTED'])return;if(this['state']!==_0x378851[_0x4c9a7e(0x3ce)])throw new _0x189190(_0x4c9a7e(0x1c6),'INVALID_STATE',{'state':this[_0x4c9a7e(0x728)]});this[_0x4c9a7e(0x728)]=_0x378851['STARTING'],this[_0x4c9a7e(0x70b)]=[];try{try{await this[_0x4c9a7e(0x42b)](),await this[_0x4c9a7e(0x6e2)](()=>this[_0x4c9a7e(0x2a7)]['open']());}catch(_0x42eccc){throw _0x16215f(_0x42eccc);}}catch(_0x409984){this['state']=_0x378851['STOPPED'],this[_0x4c9a7e(0x70b)]=null,this[_0x4c9a7e(0x56d)]();throw _0x409984;}this[_0x4c9a7e(0x56b)]=!![],this[_0x4c9a7e(0x728)]=_0x378851['STARTED'];try{this[_0x4c9a7e(0x11e)]('db',null,_0x4c9a7e(0xad),[this[_0x4c9a7e(0x37c)][_0x4c9a7e(0x4be)][_0x4c9a7e(0x78f)](_0x27bda5=>_0x27bda5[_0x4c9a7e(0x7e7)]?.[_0x4c9a7e(0x5d1)])[_0x4c9a7e(0xe5)](Boolean)],![]),await this[_0x4c9a7e(0x37c)][_0x4c9a7e(0x160)]();}catch(_0x571aee){this[_0x4c9a7e(0x728)]=_0x378851[_0x4c9a7e(0x289)];try{this[_0x4c9a7e(0x2a7)][_0x4c9a7e(0x3f5)]();}catch{}this[_0x4c9a7e(0x728)]=_0x378851[_0x4c9a7e(0x20b)],this['_isOpen']=![],this[_0x4c9a7e(0x56d)]();throw _0x571aee;}for(const _0x4ab0ea of this[_0x4c9a7e(0x11e)]('db',null,'envNames',[],![]))if(!_0x4ab0ea[_0x4c9a7e(0x302)]('~'))this['_ensureEnv'](_0x4ab0ea);try{if(this[_0x4c9a7e(0x11e)]('db',null,'hasEnv',[_0x4c9a7e(0x6a1)],![])){this[_0x4c9a7e(0x78e)]=this[_0x4c9a7e(0x6eb)](_0x4c9a7e(0x6a1));const _0x48d555=new Set(this[_0x4c9a7e(0x66c)][_0x4c9a7e(0x22f)]);this[_0x4c9a7e(0x29d)]=this[_0x4c9a7e(0x66c)][_0x4c9a7e(0x79b)](this['_logEnv'],this['id']);const _0x1bb9c8=[...this[_0x4c9a7e(0x66c)][_0x4c9a7e(0x22f)]][_0x4c9a7e(0x605)](_0x50325d=>!_0x48d555['has'](_0x50325d)),_0x45d487=this[_0x4c9a7e(0x11e)]('db',null,_0x4c9a7e(0x5fb),[],![]);for(const _0x49200c of(this[_0x4c9a7e(0x70b)]??[])['slice'](_0x45d487))_0x1bb9c8?.(_0x49200c);}}catch{}this[_0x4c9a7e(0x70b)]=null,this['_native'][_0x4c9a7e(0x56e)](()=>this[_0x4c9a7e(0x166)][_0x4c9a7e(0x7a8)]()),this[_0x4c9a7e(0x166)][_0x4c9a7e(0x160)]();}async[_0x3094f4(0x714)](){const _0x409587=_0x3094f4;return this[_0x409587(0x687)]('db',null,_0x409587(0xf9),[]);}async[_0x3094f4(0x3f5)](){const _0x1dd463=_0x3094f4;if(this[_0x1dd463(0x728)]===_0x378851['STOPPED'])return;if(this[_0x1dd463(0x728)]!==_0x378851['STARTED'])throw new _0x189190(_0x1dd463(0x5a3),_0x1dd463(0x4d5),{'state':this[_0x1dd463(0x728)]});this[_0x1dd463(0x728)]=_0x378851[_0x1dd463(0x289)],this[_0x1dd463(0x56b)]=![];let _0x2e6582=null;if(this[_0x1dd463(0x679)]['servers'][_0x1dd463(0x42c)])try{await this['http'][_0x1dd463(0x3f5)]();}catch(_0x46a3ac){_0x2e6582=_0x46a3ac;}if(this[_0x1dd463(0x2df)]){try{this['__adminRelay']['detachFeed'](),this[_0x1dd463(0x2df)]['detach']();}catch{}this[_0x1dd463(0x2df)]=null;}try{this[_0x1dd463(0x243)]?.[_0x1dd463(0x1ff)]?.();}catch{}try{await this[_0x1dd463(0x37c)]['stop']();}catch(_0x1e134c){_0x2e6582=_0x1e134c;}for(const _0x55f076 of[...Map[_0x1dd463(0x175)][_0x1dd463(0x4a4)][_0x1dd463(0x772)](this[_0x1dd463(0x4a8)])]){try{await _0x55f076[_0x1dd463(0xd6)][_0x1dd463(0x2fc)]();}catch{}try{await _0x55f076[_0x1dd463(0x675)][_0x1dd463(0x1ff)]();}catch{}}for(const _0x195de9 of[()=>this[_0x1dd463(0x630)][_0x1dd463(0x1ff)](),()=>this[_0x1dd463(0x737)][_0x1dd463(0x1ff)](),()=>this['fts']&&this[_0x1dd463(0x131)][_0x1dd463(0x1ff)]?.()]){try{await _0x195de9();}catch{}}const _0x42e838=this[_0x1dd463(0x51c)][_0x1dd463(0x2e9)]??0x7530,_0x541d02=[];for(const _0x2dcb93 of[...Map['prototype'][_0x1dd463(0x4a4)][_0x1dd463(0x772)](this['_envs'])]){if(_0x2dcb93[_0x1dd463(0x431)]?.[_0x1dd463(0x61e)]?.[_0x1dd463(0x479)]>0x0)_0x541d02[_0x1dd463(0x782)](_0x2dcb93[_0x1dd463(0x431)][_0x1dd463(0x2fc)](_0x42e838));}if(_0x541d02[_0x1dd463(0x42c)]>0x0)await Promise['allSettled'](_0x541d02);try{this[_0x1dd463(0x29d)]?.();}catch{}this[_0x1dd463(0x29d)]=null;try{await this[_0x1dd463(0x65f)][_0x1dd463(0xba)]();}catch{}this[_0x1dd463(0x166)]['stop']();try{await this['_macro'](()=>this['_native'][_0x1dd463(0x3f5)]());}catch(_0x52a831){_0x2e6582=_0x2e6582||_0x16215f(_0x52a831);}this['state']=_0x378851['STOPPED'],this['_teardownNative'](),Map[_0x1dd463(0x175)]['clear'][_0x1dd463(0x772)](this['_envs']);if(_0x2e6582)throw _0x2e6582;}['_teardownNative'](){const _0xbf22f=_0x3094f4;this[_0xbf22f(0x166)]['stop']();try{this[_0xbf22f(0x2a7)][_0xbf22f(0x56e)](null);}catch{}try{this[_0xbf22f(0x2a7)][_0xbf22f(0x4db)]();}catch{}this[_0xbf22f(0x41c)]=null,this['_kbuf']=null,this[_0xbf22f(0x20a)]=null,_0x4749c7['unregisterTarget'](this['_key']),_0x4749c7[_0xbf22f(0x10a)](this),_0x3a5ef3[_0xbf22f(0x62a)](this[_0xbf22f(0x75c)]);if(_0x4749c7[_0xbf22f(0x337)](this)){const _0x46745e=[..._0x3a5ef3['values']()][_0xbf22f(0x5e2)]();if(_0x46745e)_0x4749c7[_0xbf22f(0x6ab)](()=>_0x46745e[_0xbf22f(0x166)][_0xbf22f(0x7a8)](),_0x46745e);else _0x4749c7[_0xbf22f(0x6ab)](()=>{},null);}}get['id'](){const _0x2d169a=_0x3094f4;return this[_0x2d169a(0x11e)]('db',null,'id',[],![]);}[_0x3094f4(0x1bb)](_0x31ed6d){const _0xacc65c=_0x3094f4;return this[_0xacc65c(0x114)](_0xacc65c(0x511))[_0xacc65c(0x1bb)](_0x31ed6d);}get[_0x3094f4(0x179)](){const _0x175f40=_0x3094f4;return this[_0x175f40(0x1b7)][_0x175f40(0x73e)](_0x175f40(0x1b8));}get['_nodePrivateKey'](){const _0x1e17ec=_0x3094f4;return this[_0x1e17ec(0x630)][_0x1e17ec(0x49f)];}get[_0x3094f4(0x46a)](){const _0x329c5a=_0x3094f4;return this[_0x329c5a(0x630)][_0x329c5a(0x46a)];}get[_0x3094f4(0x163)](){const _0x1399c8=_0x3094f4;if(!this[_0x1399c8(0x56b)]||!this[_0x1399c8(0x11e)]('db',null,_0x1399c8(0x5f5),[],![]))return undefined;if(!this[_0x1399c8(0x681)]){const _0x19ecbe=requireOkdbSubscriptionsStore(),_0xfe4b2e=new _0x19ecbe(this,this[_0x1399c8(0x51c)]&&this[_0x1399c8(0x51c)]['subscriptions']);_0xfe4b2e[_0x1399c8(0x7e4)]=this[_0x1399c8(0x114)](_0x1399c8(0x4ed));const {compileFilter:_0xb0861e}=requireOkdbQueryFilter(),_0x2bb5b0=(_0x203368,_0x2b3d7f)=>{if(_0x203368==null)return![];try{return _0xb0861e(_0x203368)(_0x2b3d7f);}catch{return![];}};this['_subsV2Obj']={'store':_0xfe4b2e,'router':{'_matches':_0x2bb5b0}};}return this[_0x1399c8(0x681)];}get['_role'](){const _0x4b3af8=_0x3094f4;return this[_0x4b3af8(0x7dd)];}get[_0x3094f4(0x23b)](){const _0x43cc33=_0x3094f4;return this[_0x43cc33(0x11e)]('db',null,_0x43cc33(0x23b),[],![]);}get[_0x3094f4(0x7dd)](){const _0xe30527=_0x3094f4;return{...this[_0xe30527(0x11e)]('db',null,_0xe30527(0x7dd),[],![])};}get[_0x3094f4(0x668)](){const _0x406905=_0x3094f4;return require$$29[_0x406905(0x668)];}get[_0x3094f4(0x378)](){const _0x4fc3e2=_0x3094f4;return this[_0x4fc3e2(0x11e)]('db',null,_0x4fc3e2(0x213),[],![]);}get['info'](){const _0x1ba97a=_0x3094f4;return this['_call']('db',null,_0x1ba97a(0x76d),[],![]);}['getResolvedOptions'](){const _0x1a6abd=_0x3094f4;return this[_0x1a6abd(0x11e)]('db',null,_0x1a6abd(0x58d),[],![]);}[_0x3094f4(0x201)](){return this['_call']('db',null,'diag',[],![]);}async['setProcessingConfig'](_0x9d738){const _0x27bd36=_0x3094f4;this[_0x27bd36(0x273)](),this[_0x27bd36(0x11e)]('db',null,_0x27bd36(0x5e0),[_0x9d738],![]);}[_0x3094f4(0x141)](){const _0x16e198=_0x3094f4,_0x28b9b1=Date[_0x16e198(0xcc)]();if(this[_0x16e198(0x2f0)]&&_0x28b9b1-this[_0x16e198(0x2f0)]['at']<0xfa)return this[_0x16e198(0x2f0)][_0x16e198(0x1d0)];const _0x4932ae=this['_call']('db',null,'pressure',[],![]);return this[_0x16e198(0x2f0)]={'at':_0x28b9b1,'value':_0x4932ae},_0x4932ae;}[_0x3094f4(0x273)](){const _0x274140=_0x3094f4;if(!this[_0x274140(0x56b)])throw new _0x189190(_0x274140(0x5a3),_0x274140(0x4d5),{'state':this[_0x274140(0x728)]});}get[_0x3094f4(0x6f5)](){const _0x31e6e8=_0x3094f4;if(this[_0x31e6e8(0x728)]===_0x378851[_0x31e6e8(0x20b)]||!this[_0x31e6e8(0x56b)])return null;if(this[_0x31e6e8(0x11e)]('db',null,_0x31e6e8(0x425),[],![])==null)return null;if(!this[_0x31e6e8(0x6d1)]){const _0x50c2eb=this;this['_busFacade']={get 'state'(){const _0x129548=_0x31e6e8;return _0x50c2eb[_0x129548(0x11e)]('db',null,_0x129548(0x425),[],![]);},get 'magic'(){const _0x56e71e=_0x31e6e8;return Buffer[_0x56e71e(0x6a2)]('okdb-'+_0x50c2eb['id']);},get 'isRunning'(){const _0x25fe25=_0x31e6e8;return _0x50c2eb[_0x25fe25(0x11e)]('db',null,_0x25fe25(0x425),[],![])===_0x25fe25(0x720);},'emit'(_0x456c7d,_0xa77eae=''){const _0x22baa4=_0x31e6e8;_0x50c2eb[_0x22baa4(0x11e)]('db',null,_0x22baa4(0x34b),[_0x456c7d,String(_0xa77eae)],![]);}};}return this[_0x31e6e8(0x6d1)];}[_0x3094f4(0x55d)](_0xc76278,_0x389d11){const _0xb00e64=_0x3094f4;this['bus']?.[_0xb00e64(0x2fe)](_0xb00e64(0x6b6),JSON['stringify']({'kind':_0xb00e64(0x78a),'scope':_0xc76278,'key':_0x389d11}));}get[_0x3094f4(0x6e5)](){const _0x1b8f1d=_0x3094f4;return this[_0x1b8f1d(0x75b)]||(this[_0x1b8f1d(0x75b)]=new(requireLock())['NativeLock'](this,_0x1b8f1d(0x513),'system'));}get[_0x3094f4(0x1b7)](){const _0xbf0d76=_0x3094f4;return this[_0xbf0d76(0x540)]?this[_0xbf0d76(0x540)]['db']:undefined;}get[_0x3094f4(0x36f)](){const _0x29e07c=_0x3094f4,_0x470690=this[_0x29e07c(0x540)]?.['processor'];if(!_0x470690)return null;const _0x3988ee=_0x470690[_0x29e07c(0x46b)]()[_0x29e07c(0x605)](_0x5e441f=>_0x5e441f['meta']?.[_0x29e07c(0x5d1)]===_0x29e07c(0x29a));return _0x3988ee?_0x470690[_0x29e07c(0x3da)](_0x3988ee['id'],_0x3988ee['cursorKey']):null;}get[_0x3094f4(0x540)](){const _0x547d30=_0x3094f4;return this[_0x547d30(0x56b)]?this[_0x547d30(0x4a8)][_0x547d30(0x73e)](_0x547d30(0x513)):undefined;}[_0x3094f4(0x6eb)](_0x47e0af){const _0x245cb5=_0x3094f4;let _0x266b91=Map[_0x245cb5(0x175)]['get'][_0x245cb5(0x772)](this['_envs'],_0x47e0af);if(!_0x266b91){_0x266b91=new _0x27399c(this,_0x47e0af),Map['prototype'][_0x245cb5(0x721)]['call'](this[_0x245cb5(0x4a8)],_0x47e0af,_0x266b91);if(_0x47e0af===_0x245cb5(0x511))this[_0x245cb5(0x7ec)]=_0x266b91;}return _0x266b91;}['env'](_0x19c04e=_0x3094f4(0x511)){const _0x3e305e=_0x3094f4,_0x4b652b=this[_0x3e305e(0x4a8)][_0x3e305e(0x73e)](_0x19c04e);if(_0x4b652b)return _0x4b652b;if(this[_0x3e305e(0x56b)]&&this[_0x3e305e(0x11e)]('db',null,'hasEnv',[_0x19c04e],![]))return this[_0x3e305e(0x6eb)](_0x19c04e);throw new _0x189190(_0x3e305e(0x638)+_0x19c04e+_0x3e305e(0x5b5),'ENV_NOT_FOUND');}get['default'](){const _0x5d33fd=_0x3094f4;return this[_0x5d33fd(0x114)](_0x5d33fd(0x511));}get[_0x3094f4(0x4fd)](){const _0x4e5089=_0x3094f4;return this[_0x4e5089(0x4a8)][_0x4e5089(0x73e)]('default')??this['_defaultEnvObj'];}get['files'](){const _0x1c8b2d=_0x3094f4;return this['_defaultEnv'][_0x1c8b2d(0x66f)];}get[_0x3094f4(0x431)](){return this['_defaultEnv']['queue'];}['_timerHandle'](_0x591f5e){const _0x27227a=_0x3094f4;if(!this['_isOpen'])return null;return this[_0x27227a(0x11e)]('db',null,_0x27227a(0x322),[_0x591f5e],![])?{'ref'(){},'unref'(){}}:null;}get[_0x3094f4(0x194)](){const _0xd41454=_0x3094f4;return this[_0xd41454(0x2d0)](_0xd41454(0x347));}[_0x3094f4(0x3fd)](){const _0x27bd67=_0x3094f4;return this['_call']('db',null,_0x27bd67(0x32c),[],!![]);}get['_licenseInterval'](){const _0x1f341c=_0x3094f4;return this['_timerHandle'](_0x1f341c(0x33d));}get[_0x3094f4(0x3fa)](){const _0x463fde=_0x3094f4;return this[_0x463fde(0x2d0)](_0x463fde(0x16a));}get[_0x3094f4(0x25b)](){const _0x6f8c6=_0x3094f4;return this[_0x6f8c6(0x114)](_0x6f8c6(0x511))['_hlc'];}get[_0x3094f4(0x734)](){const _0x5b5a8c=_0x3094f4;throw new _0x189190(_0x5b5a8c(0x14f),_0x5b5a8c(0x583));}get['processor'](){const _0x8a48d6=_0x3094f4;return this[_0x8a48d6(0x4fd)][_0x8a48d6(0xd6)];}get[_0x3094f4(0x553)](){const _0x26f9f3=_0x3094f4;return this[_0x26f9f3(0x4fd)][_0x26f9f3(0x553)];}async['createEnvironment'](_0x1364fb,_0x12e779={}){const _0x1bb9b0=_0x3094f4;this[_0x1bb9b0(0x273)]();if(_0x12e779&&typeof _0x12e779[_0x1bb9b0(0x1be)]==='function'){const _0x4ba60c=_0x12e779['encryptionKey'];this[_0x1bb9b0(0x7ae)](_0x1364fb,await _0x4ba60c(_0x1364fb),!![]),this[_0x1bb9b0(0x379)]['envs'][_0x1bb9b0(0x721)](_0x1364fb,_0x4ba60c),_0x12e779={..._0x12e779,'encryptionKey':!![]};}return this['_call']('db',null,'createEnvironment',[_0x1364fb,_0x12e779]),this[_0x1bb9b0(0x6eb)](_0x1364fb);}async[_0x3094f4(0x10e)](_0x1e3b2a){const _0x4c705f=_0x3094f4;if(!this[_0x4c705f(0x56b)])throw new _0x189190(_0x4c705f(0xb0)+_0x1e3b2a+_0x4c705f(0x6d8),_0x4c705f(0x4d5));return this[_0x4c705f(0x11e)]('db',null,'openEnv',[_0x1e3b2a]),this['_ensureEnv'](_0x1e3b2a);}get[_0x3094f4(0x755)](){const _0x28b065=_0x3094f4;if(!this['__adminRelay']&&this[_0x28b065(0x56b)]){const _0x4c653c=requireOkdbRelay(),_0x3c8f1e=new _0x4c653c(this,this[_0x28b065(0x51c)]?.[_0x28b065(0x16b)]?.[_0x28b065(0x248)]??{});_0x3c8f1e[_0x28b065(0x476)](),_0x3c8f1e[_0x28b065(0x282)]=!![],this['__adminRelay']=_0x3c8f1e;}return this['__adminRelay']??null;}set[_0x3094f4(0x755)](_0x5fcbda){const _0x2a5f11=_0x3094f4;this[_0x2a5f11(0x2df)]=_0x5fcbda;}get[_0x3094f4(0x3dc)](){const _0x7c4a78=_0x3094f4;let _0x54d522=0x0;if(this[_0x7c4a78(0x56b)])for(const [_0x516820]of Map['prototype'][_0x7c4a78(0x67c)][_0x7c4a78(0x772)](this[_0x7c4a78(0x4a8)])){try{_0x54d522+=this['_call'](_0x7c4a78(0x1fd),_0x516820,_0x7c4a78(0x31d),[],![])||0x0;}catch{}}return{'total':_0x54d522,'maxObserved':_0x54d522>0x0?0x1:0x0,'inFlight':0x0};}async[_0x3094f4(0x43f)](_0x282cec){const _0x1f9f4c=_0x3094f4,_0x4420ed=this[_0x1f9f4c(0x4a8)][_0x1f9f4c(0x73e)](_0x282cec);if(_0x4420ed)return _0x4420ed;if(!this['_call']('db',null,_0x1f9f4c(0x218),[_0x282cec],![]))throw new Error(_0x1f9f4c(0x545)+_0x282cec+_0x1f9f4c(0x1ee));return this['openEnv'](_0x282cec);}async[_0x3094f4(0x692)](_0x9dea59){const _0x3464f1=_0x3094f4,_0x4adce9=this[_0x3464f1(0x11e)]('db',null,_0x3464f1(0x5cf),[_0x9dea59]);return this[_0x3464f1(0x4a8)][_0x3464f1(0x62a)](_0x9dea59),_0x4adce9;}async[_0x3094f4(0x7e1)](_0x5d361c,_0x293075={}){const _0x5803ca=_0x3094f4;this[_0x5803ca(0x273)]();const _0x1e5efe=this[_0x5803ca(0x11e)]('db',null,_0x5803ca(0x7e1),[_0x5d361c,_0x293075]);return this['_envs']['delete'](_0x5d361c),_0x1e5efe;}static get[_0x3094f4(0xee)](){return _0x1a4ec9['defaults'];}static get[_0x3094f4(0x47f)](){return _0x1a4ec9['KNOWN_OPTIONS'];}static get[_0x3094f4(0x118)](){return _0x1a4ec9['_OPTION_HINTS'];}static async[_0x3094f4(0x625)](_0x5e933c,_0xc0b9ce){const _0x4803f8=_0x3094f4;return _0x1b9797('db',_0x4803f8(0x625),[_0x5e933c,_0xc0b9ce]);}static[_0x3094f4(0x1e7)](_0xf8a17b){const _0x50ca60=_0x3094f4;return _0x1b9797('db',_0x50ca60(0x1e7),[_0xf8a17b]);}static[_0x3094f4(0xdc)](_0x111480,_0x20fdbc){const _0x23de85=_0x3094f4;_0x1b9797('views',_0x23de85(0xdc),[_0x111480,_0x20fdbc]);}static[_0x3094f4(0x151)](_0x1a1b65,_0x38ebf8){const _0x3daa6e=_0x3094f4;_0x1b9797(_0x3daa6e(0x553),_0x3daa6e(0x151),[_0x1a1b65,_0x38ebf8]);}static[_0x3094f4(0x670)](){}['equal'](_0x585236,_0x16b2ee){const _0x4df8d7=_0x3094f4;return require$$16[_0x4df8d7(0x44b)](_0x585236,_0x16b2ee);}}_0x2b588c[_0x3094f4(0x10b)]=_0x4dbb5d,Object[_0x3094f4(0x4b3)](_0x2b588c,'_unknownOptionsWarned',{'get'(){const _0x4aac2b=_0x3094f4;return _0x2b588c[_0x4aac2b(0x24d)]||(_0x2b588c[_0x4aac2b(0x24d)]=new Set());},'set'(_0x220044){const _0x359f24=_0x3094f4;_0x2b588c[_0x359f24(0x24d)]=_0x220044;try{_0x1b9797('db',_0x359f24(0x29c),[]);}catch{}},'configurable':!![]});for(const _0xda9a4b of['transaction',_0x3094f4(0x578),'put','update',_0x3094f4(0x1ba),_0x3094f4(0x53b),_0x3094f4(0x102),_0x3094f4(0x73e),'getMany',_0x3094f4(0x465),_0x3094f4(0x3bd),_0x3094f4(0x735),_0x3094f4(0x42e),_0x3094f4(0x1e5),_0x3094f4(0x587),_0x3094f4(0x107),_0x3094f4(0x26a),_0x3094f4(0x3d8),_0x3094f4(0x35a),_0x3094f4(0x5f3),_0x3094f4(0x12b),_0x3094f4(0x7d1),'ensureType',_0x3094f4(0x5c8),_0x3094f4(0x671),'hasType',_0x3094f4(0x5f0),_0x3094f4(0x1fc),_0x3094f4(0x2ef),_0x3094f4(0x3bf),'resetIndex',_0x3094f4(0x3a8),_0x3094f4(0x2c5),_0x3094f4(0x680),'hasUniqueViolations',_0x3094f4(0x5f2),_0x3094f4(0x393),'getChanges',_0x3094f4(0x2ba),_0x3094f4(0x57f),'clearTTL',_0x3094f4(0x1ae),_0x3094f4(0x321),'ttlStats',_0x3094f4(0x66d),_0x3094f4(0x264),_0x3094f4(0x363),_0x3094f4(0x432),'range','now']){_0x2b588c[_0x3094f4(0x175)][_0xda9a4b]=function(..._0x10c2bc){const _0x278aa9=_0x3094f4,_0x532b2=this[_0x278aa9(0x114)](_0x278aa9(0x511));return _0x532b2[_0xda9a4b](..._0x10c2bc);};}function _0x126664(_0x11ba68){const _0x520cbb=_0x3094f4,_0x1fb3e9=_0x45a9ba=>()=>{const _0x35dcc8=_0x5aff;throw new Error('db.processors.'+_0x45a9ba+_0x35dcc8(0x63e));};return{'process':_0x1fb3e9(_0x520cbb(0x24f)),'processRest':_0x1fb3e9('processRest()'),'processEverything':_0x1fb3e9('processEverything()'),async 'start'(){const _0xae4c3f=_0x520cbb;return _0x11ba68['_call']('db',null,_0xae4c3f(0x20d),[]);},async 'stop'(){const _0x17f7e7=_0x520cbb;return _0x11ba68[_0x17f7e7(0x11e)]('db',null,_0x17f7e7(0x51f),[]);},'status'(){const _0x39189a=_0x520cbb;return _0x11ba68[_0x39189a(0x11e)]('db',null,_0x39189a(0x7be),[],![]);},get 'participating'(){const _0x50c887=_0x520cbb;return _0x11ba68[_0x50c887(0x11e)]('db',null,'processorsParticipating',[],![]);},get '_participate'(){const _0x1f8332=_0x520cbb;return _0x11ba68[_0x1f8332(0x11e)]('db',null,_0x1f8332(0x6a9),[],![]);}};}function _0x1b9797(_0x492342,_0x4b13d5,_0xcadb80){_0x56a6ff();try{return _0x461966()['callStatic'](_0x492342,_0x4b13d5,_0xcadb80);}catch(_0x5db7c6){throw _0x16215f(_0x5db7c6);}}_0x196de7[_0x3094f4(0x4ec)]=_0x2b588c,_0x196de7['exports'][_0x3094f4(0x6cb)]=_0x1b9797,_0x196de7[_0x3094f4(0x4ec)][_0x3094f4(0x791)]=_0x2b588c,_0x196de7[_0x3094f4(0x4ec)][_0x3094f4(0x10b)]=_0x4dbb5d,_0x196de7[_0x3094f4(0x4ec)][_0x3094f4(0x511)]=_0x2b588c,Object[_0x3094f4(0x4b3)](_0x196de7[_0x3094f4(0x4ec)],'nativeBinaryPath',{'get':()=>require$$1$1[_0x3094f4(0x7d3)]?.()??null,'enumerable':![],'configurable':!![]});}(lib),lib['exports'];}var libExports=requireLib(),index=getDefaultExportFromCjs(libExports);module[_0x2dfd83(0x4ec)]=index;
1
+ 'use strict';const _0x2ec26e=_0x3ebb;(function(_0x2d30ab,_0x572eb5){const _0x278fc5=_0x3ebb,_0x88fac0=_0x2d30ab();while(!![]){try{const _0x205662=-parseInt(_0x278fc5(0x1f8))/0x1+-parseInt(_0x278fc5(0x24e))/0x2+parseInt(_0x278fc5(0x241))/0x3+parseInt(_0x278fc5(0x2cb))/0x4*(parseInt(_0x278fc5(0x4a9))/0x5)+-parseInt(_0x278fc5(0x6a7))/0x6*(-parseInt(_0x278fc5(0x61c))/0x7)+-parseInt(_0x278fc5(0x6ab))/0x8+parseInt(_0x278fc5(0x800))/0x9;if(_0x205662===_0x572eb5)break;else _0x88fac0['push'](_0x88fac0['shift']());}catch(_0x49d254){_0x88fac0['push'](_0x88fac0['shift']());}}}(_0x1561,0xf3dd2));var require$$0$6=require(_0x2ec26e(0x5a0)),require$$1$1=require('./native-loader.js'),require$$0=require(_0x2ec26e(0x68a)),require$$1=require(_0x2ec26e(0x5c2)),require$$4=require('node:path'),require$$0$2=require(_0x2ec26e(0x5d6)),require$$0$1=require(_0x2ec26e(0x46f)),require$$16=require(_0x2ec26e(0x488)),require$$0$3=require('node:http'),require$$2=require('node:cluster'),require$$18=require(_0x2ec26e(0x668)),require$$0$4=require(_0x2ec26e(0x83d)),require$$0$5=require('sift');function getDefaultExportFromCjs(_0x29af9a){const _0x545d95=_0x2ec26e;return _0x29af9a&&_0x29af9a['__esModule']&&Object[_0x545d95(0x455)][_0x545d95(0x5a6)][_0x545d95(0x853)](_0x29af9a,_0x545d95(0x822))?_0x29af9a['default']:_0x29af9a;}var lib={'exports':{}},okdbError,hasRequiredOkdbError;function requireOkdbError(){if(hasRequiredOkdbError)return okdbError;hasRequiredOkdbError=0x1;class _0x2bcdaa extends Error{constructor(_0x4ad01f,_0x175492,_0x29083f={}){const _0x10f21b=_0x3ebb;super(_0x4ad01f),this[_0x10f21b(0x6fe)]=_0x10f21b(0x420),this[_0x10f21b(0x748)]=_0x175492,this[_0x10f21b(0x79f)]=_0x29083f,_0x29083f['cause']&&(this['cause']=_0x29083f[_0x10f21b(0x35c)]),Error[_0x10f21b(0x299)](this,this[_0x10f21b(0x609)]);}}class _0x39e557 extends _0x2bcdaa{constructor(_0x363e16,_0x439eec,_0x1e3e5b,_0x45d5a4){const _0x4cc011=_0x3ebb;super('Version\x20mismatch\x20for\x20'+_0x363e16+'@'+_0x439eec+_0x4cc011(0x43e)+_0x1e3e5b+_0x4cc011(0x464)+_0x45d5a4,_0x4cc011(0x17b),{'type':_0x363e16,'key':_0x439eec,'expectedVersion':_0x1e3e5b,'actualVersion':_0x45d5a4}),this[_0x4cc011(0x6fe)]=_0x4cc011(0x26e);}}class _0x4b94b2 extends _0x2bcdaa{constructor(_0x1c5bdf,_0x33b3b9){const _0x51968e=_0x3ebb;super(_0x1c5bdf+'@'+_0x33b3b9+_0x51968e(0x7e6),_0x51968e(0x4cd),{'type':_0x1c5bdf,'key':_0x33b3b9}),this[_0x51968e(0x6fe)]=_0x51968e(0x19c);}}class _0x85077d extends _0x2bcdaa{constructor(_0x3c44a2,_0x4a662){const _0x45fa17=_0x3ebb;super(_0x3c44a2+'@'+_0x4a662+_0x45fa17(0x634),'ALREADY_EXISTS',{'type':_0x3c44a2,'key':_0x4a662}),this['name']='OKDBAlreadyExistsError';}}class _0x1845f2 extends _0x2bcdaa{constructor(_0x1f26d0,_0x3af53c){const _0x471a97=_0x3ebb,_0x268dca=typeof _0x3af53c;super('Invalid\x20index\x20key\x20type\x20for\x20\x27'+_0x1f26d0+_0x471a97(0x7ed)+_0x268dca+_0x471a97(0x260)+_0x3af53c,_0x471a97(0x7bf),{'index':_0x1f26d0,'key':_0x3af53c,'keyType':_0x268dca}),this['name']='OKDBInvalidIndexKeyError';}}class _0x3abb9d extends _0x2bcdaa{constructor(_0x284046){const _0x525064=_0x3ebb,_0x488e43=typeof _0x284046;super('Invalid\x20primary\x20key\x20type:\x20'+_0x488e43+'.\x20Primary\x20keys\x20must\x20be\x20string\x20or\x20number.\x20Got:\x20'+_0x284046,_0x525064(0x787),{'key':_0x284046,'keyType':_0x488e43}),this[_0x525064(0x6fe)]=_0x525064(0x889);}}class _0x3d8088 extends _0x2bcdaa{constructor(_0x3c386f){const _0x340827=_0x3ebb;super('Type\x20\x27'+_0x3c386f+_0x340827(0x1df),_0x340827(0x249),{'type':_0x3c386f}),this[_0x340827(0x6fe)]=_0x340827(0x5b2);}}class _0x376efd extends _0x2bcdaa{constructor(_0x596b10){const _0x8e2a6e=_0x3ebb;super(_0x8e2a6e(0x5a7)+_0x596b10+_0x8e2a6e(0x6d5),_0x8e2a6e(0x693),{'type':_0x596b10}),this[_0x8e2a6e(0x6fe)]='OKDBTypeAlreadyRegisteredError';}}class _0x4e67be extends _0x2bcdaa{constructor(_0x33b047,_0x9091a5){const _0x40557d=_0x3ebb;super(_0x40557d(0x4c3)+_0x9091a5+_0x40557d(0x22f)+_0x33b047+_0x40557d(0x1df),_0x40557d(0x841),{'type':_0x33b047,'index':_0x9091a5}),this[_0x40557d(0x6fe)]=_0x40557d(0x71b);}}class _0x326be2 extends _0x2bcdaa{constructor(_0xcdb2d2,_0x2282ef){const _0x3b2c1b=_0x3ebb;super(_0x3b2c1b(0x4c3)+_0x2282ef+_0x3b2c1b(0x22f)+_0xcdb2d2+_0x3b2c1b(0x192),_0x3b2c1b(0x850),{'type':_0xcdb2d2,'index':_0x2282ef}),this['name']=_0x3b2c1b(0x670);}}class _0x176cef extends _0x2bcdaa{constructor(_0x4d3e7a,_0x39de21={}){const _0x4104fe=_0x3ebb;super(_0x4d3e7a,_0x4104fe(0x716),_0x39de21),this['name']=_0x4104fe(0x62d);}}class _0x20f7a8 extends _0x2bcdaa{constructor(_0x2c9e40,_0x26f097,_0x1bde76,_0x460e39,_0x41fb29){const _0x2c90ef=_0x3ebb;super(_0x2c90ef(0x3e9)+_0x2c9e40+'@'+_0x26f097+_0x2c90ef(0x411)+_0x1bde76+_0x2c90ef(0x899)+_0x460e39+_0x2c90ef(0x3de)+_0x41fb29+'\x27','UNIQUE_CONSTRAINT',{'type':_0x2c9e40,'index':_0x26f097,'indexKey':_0x1bde76,'existingKey':_0x460e39,'conflictingKey':_0x41fb29}),this[_0x2c90ef(0x6fe)]=_0x2c90ef(0x418);}}class _0x46237f extends _0x2bcdaa{constructor(_0x294fef,_0x506446,_0x2d5b15){const _0x1c03fe=_0x3ebb;super('Schema\x20validation\x20failed\x20for\x20'+_0x294fef+'@'+_0x506446,'SCHEMA_VALIDATION_FAILED',{'type':_0x294fef,'key':_0x506446,'errors':_0x2d5b15}),this[_0x1c03fe(0x6fe)]=_0x1c03fe(0x323),this[_0x1c03fe(0x673)]=_0x294fef,this['key']=_0x506446,this[_0x1c03fe(0x278)]=_0x2d5b15;}}class _0x3e91b9 extends _0x2bcdaa{constructor(_0x2610c4,_0x3c9f95){const _0x5a8dd3=_0x3ebb;super(_0x5a8dd3(0x6ff)+_0x2610c4+':\x20'+_0x3c9f95[_0x5a8dd3(0x6cf)]+_0x5a8dd3(0x85e),_0x5a8dd3(0x1aa),{'type':_0x2610c4,'failures':_0x3c9f95}),this['name']='OKDBSchemaCollectionError',this['type']=_0x2610c4,this['failures']=_0x3c9f95;}}class _0x242e51 extends _0x2bcdaa{constructor(_0x1910ab,_0x49d85b,_0x52609c,_0x3693c4,_0x402ff5){const _0x504ef4=_0x3ebb;super('Foreign\x20key\x20violation:\x20'+_0x1910ab+'@'+_0x49d85b+'.'+_0x52609c+_0x504ef4(0x4d6)+_0x3693c4+'@'+_0x402ff5+_0x504ef4(0x70b),_0x504ef4(0x3d6),{'sourceType':_0x1910ab,'sourceKey':_0x49d85b,'fieldPath':_0x52609c,'targetType':_0x3693c4,'targetKey':_0x402ff5}),this[_0x504ef4(0x6fe)]=_0x504ef4(0x57f),this[_0x504ef4(0x4ab)]=_0x1910ab,this[_0x504ef4(0x514)]=_0x49d85b,this['fieldPath']=_0x52609c,this['targetType']=_0x3693c4,this[_0x504ef4(0x768)]=_0x402ff5;}}class _0x469012 extends _0x2bcdaa{constructor(_0x27f6b4,_0x5db2dc,_0x4685ea){const _0x533b97=_0x3ebb;super(_0x533b97(0x198)+_0x27f6b4+'@'+_0x5db2dc+':\x20'+_0x4685ea['length']+_0x533b97(0x774),_0x533b97(0x5d7),{'targetType':_0x27f6b4,'targetKey':_0x5db2dc,'references':_0x4685ea}),this[_0x533b97(0x6fe)]=_0x533b97(0x7cc),this[_0x533b97(0x749)]=_0x27f6b4,this[_0x533b97(0x768)]=_0x5db2dc,this[_0x533b97(0x54c)]=_0x4685ea;}}class _0x5f4ed7 extends _0x2bcdaa{constructor(_0x3ebc1,_0x1d8d21,_0x167aa8){const _0x1ebb2a=_0x3ebb;super(_0x1ebb2a(0x7dd)+_0x1d8d21+_0x1ebb2a(0x5ba)+_0x3ebc1+_0x1ebb2a(0x564)+_0x167aa8[_0x1ebb2a(0x1a7)](_0x3eeeb1=>_0x3eeeb1[_0x1ebb2a(0x233)]+':'+_0x3eeeb1[_0x1ebb2a(0x6fe)])[_0x1ebb2a(0x3d2)](',\x20'),'INDEX_HAS_CONSUMERS',{'type':_0x3ebc1,'index':_0x1d8d21,'usedBy':_0x167aa8}),this[_0x1ebb2a(0x6fe)]='OKDBIndexHasConsumersError';}}return okdbError={'OKDBError':_0x2bcdaa,'OKDBVersionMismatchError':_0x39e557,'OKDBNotFoundError':_0x4b94b2,'OKDBAlreadyExistsError':_0x85077d,'OKDBInvalidIndexKeyError':_0x1845f2,'OKDBInvalidPrimaryKeyError':_0x3abb9d,'OKDBTypeNotRegisteredError':_0x3d8088,'OKDBTypeAlreadyRegisteredError':_0x376efd,'OKDBIndexNotRegisteredError':_0x4e67be,'OKDBIndexAlreadyRegisteredError':_0x326be2,'OKDBInvalidValueError':_0x176cef,'OKDBUniqueConstraintError':_0x20f7a8,'OKDBSchemaValidationError':_0x46237f,'OKDBSchemaCollectionError':_0x3e91b9,'OKDBForeignKeyError':_0x242e51,'OKDBForeignKeyDeleteError':_0x469012,'OKDBIndexHasConsumersError':_0x5f4ed7},okdbError;}var errors,hasRequiredErrors;function requireErrors(){const _0x1bac9f=_0x2ec26e;if(hasRequiredErrors)return errors;hasRequiredErrors=0x1;const _0x3aec48=requireOkdbError(),_0x1d34ee={'VERSION_MISMATCH':_0x3aec48['OKDBVersionMismatchError'],'NOT_FOUND':_0x3aec48[_0x1bac9f(0x19c)],'ALREADY_EXISTS':_0x3aec48[_0x1bac9f(0x848)],'INVALID_INDEX_KEY':_0x3aec48[_0x1bac9f(0x570)],'INVALID_PRIMARY_KEY':_0x3aec48[_0x1bac9f(0x889)],'TYPE_NOT_REGISTERED':_0x3aec48[_0x1bac9f(0x5b2)],'TYPE_ALREADY_REGISTERED':_0x3aec48[_0x1bac9f(0x2a5)],'INDEX_NOT_REGISTERED':_0x3aec48['OKDBIndexNotRegisteredError'],'INDEX_ALREADY_REGISTERED':_0x3aec48['OKDBIndexAlreadyRegisteredError'],'INVALID_VALUE':_0x3aec48[_0x1bac9f(0x62d)],'UNIQUE_CONSTRAINT':_0x3aec48[_0x1bac9f(0x418)],'SCHEMA_VALIDATION_FAILED':_0x3aec48[_0x1bac9f(0x323)],'SCHEMA_COLLECTION_INVALID':_0x3aec48['OKDBSchemaCollectionError'],'FOREIGN_KEY_VIOLATION':_0x3aec48[_0x1bac9f(0x57f)],'FOREIGN_KEY_DELETE_RESTRICTED':_0x3aec48[_0x1bac9f(0x7cc)],'INDEX_HAS_CONSUMERS':_0x3aec48['OKDBIndexHasConsumersError']};class _0x5aba61 extends _0x3aec48[_0x1bac9f(0x420)]{constructor(_0x4a5e46,_0x336bb1){const _0x2be105=_0x1bac9f;super(_0x4a5e46+_0x2be105(0x365)+(_0x336bb1?'\x20('+_0x336bb1+')':''),'NOT_IMPLEMENTED_NATIVE',{'feature':_0x4a5e46}),this[_0x2be105(0x6fe)]=_0x2be105(0x61f);}}function _0x37cc83(_0x250bb2){const _0x2f662d=_0x1bac9f;if(!_0x250bb2||typeof _0x250bb2!=='object'||!_0x250bb2['__okdb'])return _0x250bb2;delete _0x250bb2[_0x2f662d(0x45c)];const _0x4065b7=_0x250bb2[_0x2f662d(0x748)];if(_0x4065b7===_0x2f662d(0x538)||_0x4065b7===_0x2f662d(0x4a4)||_0x4065b7===_0x2f662d(0x2ff)){const _0x5f0d52=_0x4065b7===_0x2f662d(0x4a4)?TypeError['prototype']:_0x4065b7===_0x2f662d(0x2ff)?RangeError[_0x2f662d(0x455)]:Error[_0x2f662d(0x455)];Object[_0x2f662d(0x698)](_0x250bb2,_0x5f0d52),_0x250bb2[_0x2f662d(0x6fe)]=_0x4065b7;if(_0x250bb2[_0x2f662d(0x79f)]&&_0x250bb2[_0x2f662d(0x79f)][_0x2f662d(0x1c9)]!==undefined)_0x250bb2[_0x2f662d(0x1c9)]=_0x250bb2['details'][_0x2f662d(0x1c9)];return delete _0x250bb2[_0x2f662d(0x748)],delete _0x250bb2[_0x2f662d(0x79f)],_0x250bb2;}const _0x56f42e=_0x1d34ee[_0x4065b7];Object[_0x2f662d(0x698)](_0x250bb2,(_0x56f42e||_0x3aec48['OKDBError'])[_0x2f662d(0x455)]),_0x250bb2[_0x2f662d(0x6fe)]=_0x56f42e?_0x56f42e['name']['replace'](/^OKDB/,_0x2f662d(0x511)):_0x2f662d(0x420);const _0x44a7ff=_0x250bb2[_0x2f662d(0x79f)]||{};_0x4065b7===_0x2f662d(0x31a)&&(_0x250bb2[_0x2f662d(0x673)]=_0x44a7ff[_0x2f662d(0x673)],_0x250bb2[_0x2f662d(0x366)]=_0x44a7ff[_0x2f662d(0x366)],_0x250bb2[_0x2f662d(0x278)]=_0x44a7ff[_0x2f662d(0x278)]);_0x4065b7===_0x2f662d(0x1aa)&&(_0x250bb2[_0x2f662d(0x673)]=_0x44a7ff[_0x2f662d(0x673)],_0x250bb2['failures']=_0x44a7ff[_0x2f662d(0x543)]);if(_0x4065b7==='FOREIGN_KEY_VIOLATION'){for(const _0x509c93 of[_0x2f662d(0x4ab),_0x2f662d(0x514),_0x2f662d(0x5c7),_0x2f662d(0x749),_0x2f662d(0x768)])_0x250bb2[_0x509c93]=_0x44a7ff[_0x509c93];}if(_0x4065b7==='FOREIGN_KEY_DELETE_RESTRICTED'){for(const _0x30b7a0 of[_0x2f662d(0x749),_0x2f662d(0x768),_0x2f662d(0x54c)])_0x250bb2[_0x30b7a0]=_0x44a7ff[_0x30b7a0];}if(_0x44a7ff['cause'])_0x250bb2[_0x2f662d(0x35c)]=_0x44a7ff[_0x2f662d(0x35c)];if(_0x44a7ff[_0x2f662d(0x1c9)]!==undefined)_0x250bb2[_0x2f662d(0x1c9)]=_0x44a7ff['status'];if(_0x44a7ff[_0x2f662d(0x172)]!==undefined)_0x250bb2[_0x2f662d(0x172)]=_0x44a7ff['retryable'];return _0x250bb2;}function _0x89b48d(_0x11be88){const _0x27dac3=_0x1bac9f;if(_0x11be88===undefined)return _0x27dac3(0x809);if(_0x11be88===null)return _0x27dac3(0x69b);if(typeof _0x11be88==='string')return _0x11be88?_0x27dac3(0x4bb):_0x27dac3(0x4c4);if(typeof _0x11be88===_0x27dac3(0x6d8))return'function';if(typeof _0x11be88!==_0x27dac3(0x1be))return typeof _0x11be88;if(Array[_0x27dac3(0x69e)](_0x11be88))return _0x11be88[_0x27dac3(0x6cf)]?_0x27dac3(0x3c1):'empty\x20array';if(_0x11be88 instanceof Date)return _0x27dac3(0x223);if(_0x11be88 instanceof Map)return _0x27dac3(0x7d4);if(Buffer[_0x27dac3(0x292)](_0x11be88))return _0x27dac3(0x8a2);return _0x27dac3(0x1be);}const _0x46f0e1=(_0x42f45c,_0x56b5d6,_0x478c9c)=>new _0x3aec48[(_0x1bac9f(0x420))](_0x56b5d6,_0x42f45c,_0x478c9c),_0x17cd55=(_0x2266fe,_0x4692b0,_0x19ed6a)=>_0x46f0e1(_0x1bac9f(0x7d5),_0x2266fe+_0x1bac9f(0x1a0)+_0x4692b0+_0x1bac9f(0x508)+_0x89b48d(_0x19ed6a),{'argument':_0x2266fe,'expected':_0x4692b0,'got':_0x89b48d(_0x19ed6a)}),_0x1e0263=(_0xfc40e2,_0x2b402d)=>_0x46f0e1('INVALID_TYPE_NAME',_0xfc40e2+'\x20must\x20be\x20a\x20non-empty\x20string;\x20got\x20'+_0x89b48d(_0x2b402d),{'argument':_0xfc40e2,'expected':'non-empty\x20string','got':_0x89b48d(_0x2b402d)}),_0x384609=(_0x45ba5a,_0x2b4a65)=>_0x46f0e1('INVALID_OPTIONS',_0x45ba5a+':\x20'+_0x2b4a65,{'argument':_0x45ba5a,'problem':_0x2b4a65});function _0x1339a6(_0x20f569,_0xb86b62=_0x1bac9f(0x66a)){const _0x334dc6=_0x1bac9f;if(_0x20f569===undefined)return{};if(_0x20f569===null)throw _0x384609(_0xb86b62,_0x334dc6(0x498));return _0x20f569;}return errors={'reclass':_0x37cc83,'NotImplementedNative':_0x5aba61,'BY_CODE':_0x1d34ee,'describe':_0x89b48d,'invalidArgument':_0x17cd55,'invalidTypeName':_0x1e0263,'invalidOptions':_0x384609,'optionsArg':_0x1339a6,..._0x3aec48},errors;}var bridge_1,hasRequiredBridge;function requireBridge(){if(hasRequiredBridge)return bridge_1;hasRequiredBridge=0x1;const _0x2d91ae=new Map(),_0x92625b=new Map();let _0x4eabaa=0x1;const _0x4a6b7c=new Map(),_0x270701=new Map();let _0xae3cd2=0x1;const _0x2ce973=new Map();let _0x39ed61=0x1;const _0x41aea3=new Map();function _0x5bc300(_0x52c773,_0x10fe87=null){const _0x2fc005=_0x3ebb,_0x1d92b6=_0x39ed61++;_0x2ce973[_0x2fc005(0x328)](_0x1d92b6,_0x52c773);if(_0x10fe87)_0x41aea3[_0x2fc005(0x328)](_0x1d92b6,_0x10fe87);return _0x1d92b6;}function _0x42fd53(_0xac0ab0,_0x318147){const _0x129e7a=_0x3ebb,_0x3c8806=_0x2ce973[_0x129e7a(0x63c)](_0xac0ab0),_0x3cf50c=Array[_0x129e7a(0x455)][_0x129e7a(0x5ca)]['call'](arguments,0x2),_0x25b07d=_0x11b593=>_0x416b41(_0x11b593,_0x41aea3[_0x129e7a(0x63c)](_0xac0ab0));let _0x3e63d7=_0x3cf50c;if(_0x318147==='start'||_0x318147==='stop'||_0x318147===_0x129e7a(0x55a)||_0x318147===_0x129e7a(0x686)||_0x318147==='assertStartAllowed')_0x3e63d7=[_0x25b07d(_0x3cf50c[0x0])];else{if(_0x318147===_0x129e7a(0x5b6))_0x3e63d7=[_0x3cf50c[0x0],_0x3cf50c[0x1],_0x25b07d(_0x3cf50c[0x2])];else{if(_0x318147===_0x129e7a(0x5f2))_0x3e63d7=[_0x25b07d(_0x3cf50c[0x0])];}}let _0x50643f=_0x3c8806[_0x318147](..._0x3e63d7);if(_0x50643f&&typeof _0x50643f['then']===_0x129e7a(0x6d8))_0x50643f=_0x1df578(_0x50643f);if(_0x318147===_0x129e7a(0x898)){const _0x24c7cc=_0x50643f&&typeof _0x50643f===_0x129e7a(0x1be)?_0x5bc300(_0x50643f):_0x5bc300({});return{'$api':_0x24c7cc};}return _0x50643f===undefined?null:_0x50643f;}function _0x416b41(_0x4a7e0b,_0x2b5ac7){const _0x5d3e2f=_0x3ebb;let _0x3059d1=_0x278c0b[_0x5d3e2f(0x63c)](_0x4a7e0b[_0x5d3e2f(0x5f9)]);const _0x43a1e2=_0x3059d1&&_0x3059d1[_0x5d3e2f(0x21e)]||_0x2b5ac7||_0x402fed,_0x550d98=(_0x4a8083,..._0x5e8f01)=>_0x43a1e2[_0x5d3e2f(0x49e)](_0x5d3e2f(0x1a5),null,_0x4a8083,[_0x4a7e0b[_0x5d3e2f(0x673)],_0x4a7e0b[_0x5d3e2f(0x6fe)],..._0x5e8f01],!![]);return{'okdb':_0x43a1e2,'key':_0x4a7e0b[_0x5d3e2f(0x366)],'type':_0x4a7e0b[_0x5d3e2f(0x673)],'name':_0x4a7e0b[_0x5d3e2f(0x6fe)],get 'storeEnv'(){const _0x2ff0f2=_0x5d3e2f;if(!_0x3059d1&&_0x43a1e2&&_0x43a1e2[_0x2ff0f2(0x60a)]&&_0x4a7e0b['storeEnvName'])_0x3059d1=_0x43a1e2[_0x2ff0f2(0x8a5)][_0x2ff0f2(0x63c)](_0x4a7e0b[_0x2ff0f2(0x31d)]);return _0x3059d1;},'storeEnvName':_0x4a7e0b[_0x5d3e2f(0x31d)],'config':_0x4a7e0b['config'],'meta':_0x4a7e0b[_0x5d3e2f(0x47b)],'options':_0x4a7e0b[_0x5d3e2f(0x66a)],'emit':(_0x3c0c71,_0xf9a5e0)=>_0x550d98(_0x5d3e2f(0x545),_0x3c0c71,_0xf9a5e0),'updateStatus':async(_0x1f2e08,_0x1c1650)=>_0x550d98('ctxUpdateStatus',_0x1f2e08,_0x1c1650==null?null:String(_0x1c1650&&_0x1c1650[_0x5d3e2f(0x2d2)]?_0x1c1650[_0x5d3e2f(0x2d2)]:_0x1c1650)),'updateMeta':async _0x273a1c=>_0x550d98(_0x5d3e2f(0x20a),{'meta':_0x273a1c}),'updateConfig':async _0x1b87e7=>_0x550d98(_0x5d3e2f(0x20a),{'config':_0x1b87e7})};}function _0x27c48d(_0x31b942,_0x2c615e,_0x2f8c3f){const _0x5aa177=_0x3ebb;if(_0x31b942===_0x5aa177(0x264)){const _0x57539d=_0x17d024(_0x2c615e);let _0x3dbfe1=_0x57539d(_0x2f8c3f);if(_0x3dbfe1&&typeof _0x3dbfe1[_0x5aa177(0x2b0)]===_0x5aa177(0x6d8))_0x3dbfe1=_0x1df578(_0x3dbfe1);if(!_0x3dbfe1||typeof _0x3dbfe1['embed']!==_0x5aa177(0x6d8)){const {OKDBError:_0x343456}=requireErrors();throw new _0x343456(_0x5aa177(0x478)+(_0x2f8c3f&&_0x2f8c3f[_0x5aa177(0x673)])+_0x5aa177(0x866),_0x5aa177(0x86f));}return _0x3dbfe1[_0x5aa177(0x45c)]=_0x57539d[_0x5aa177(0x45c)],{'$id':_0x5bc300(_0x3dbfe1),'batch':typeof _0x3dbfe1[_0x5aa177(0x4ce)]===_0x5aa177(0x6d8)};}const _0x5c9243=_0x2ce973['get'](_0x2c615e);if(_0x31b942===_0x5aa177(0x209))return _0x2ce973['delete'](_0x2c615e),_0xa858b3[_0x5aa177(0x82f)](_0x2c615e),null;if(!_0x5c9243)throw new Error(_0x5aa177(0x41e));if(typeof _0x5c9243[_0x31b942]!==_0x5aa177(0x6d8))return null;if(_0x31b942===_0x5aa177(0x22c)||_0x31b942===_0x5aa177(0x4ce)){const _0x300a8a=_0x31b942==='embedBatch'?_0x355b0e(_0x2c615e,_0x5c9243,_0x2f8c3f):_0x42073e(_0x2c615e,_0x5c9243,_0x31b942,_0x2f8c3f);return _0x31b942===_0x5aa177(0x22c)?Array['from'](_0x300a8a):_0x300a8a[_0x5aa177(0x1a7)](_0x451a07=>Array[_0x5aa177(0x170)](_0x451a07));}let _0x363710=_0x5c9243[_0x31b942]();if(_0x363710&&typeof _0x363710[_0x5aa177(0x2b0)]===_0x5aa177(0x6d8))_0x363710=_0x1df578(_0x363710);return _0x363710===undefined?null:_0x363710;}function _0x9c9ea8(_0xfe8d41,_0x41688d,_0x3219d7){const _0x53bce1=_0x3ebb;if(_0xfe8d41===_0x53bce1(0x264)){const _0x1cb170=_0x17d024(_0x41688d);let _0x5d70bc=_0x1cb170(_0x3219d7[_0x53bce1(0x1dc)]??{},{'dims':_0x3219d7[_0x53bce1(0x4c6)],'dir':_0x3219d7[_0x53bce1(0x6ec)]});if(_0x5d70bc&&typeof _0x5d70bc['then']==='function')_0x5d70bc=_0x1df578(_0x5d70bc);for(const _0x10012e of[_0x53bce1(0x724),_0x53bce1(0x7df),_0x53bce1(0x42f),_0x53bce1(0x58c),_0x53bce1(0x3c2)]){if(!_0x5d70bc||typeof _0x5d70bc[_0x10012e]!==_0x53bce1(0x6d8)){const {OKDBError:_0x3ef780}=requireErrors();throw new _0x3ef780('Algorithm\x20factory\x20must\x20return\x20an\x20object\x20with\x20'+_0x10012e+'()',_0x53bce1(0x3d8),{'method':_0x10012e});}}return{'$id':_0x5bc300(_0x5d70bc)};}const _0x19168a=_0x2ce973[_0x53bce1(0x63c)](_0x41688d);if(_0xfe8d41===_0x53bce1(0x209))return _0x2ce973[_0x53bce1(0x82f)](_0x41688d),null;if(!_0x19168a)throw new Error(_0x53bce1(0x7e5));const _0x39a60a=_0x3d4229=>_0x3d4229?_0x3d4229[_0x53bce1(0x1a7)](_0x560d8b=>({'key':_0x560d8b[_0x53bce1(0x366)],'vector':Float32Array[_0x53bce1(0x170)](_0x560d8b[_0x53bce1(0x6c5)])})):null;let _0x4d9c39;switch(_0xfe8d41){case'load':case _0x53bce1(0x574):{const _0x1bf092=_0x39a60a(_0x3219d7);_0x4d9c39=_0x19168a[_0xfe8d41](_0x1bf092?async()=>_0x1bf092:undefined);break;}case'add':_0x4d9c39=_0x19168a['add'](_0x3219d7[0x0],Float32Array[_0x53bce1(0x170)](_0x3219d7[0x1]),_0x3219d7[0x2]??undefined);break;case _0x53bce1(0x42f):_0x4d9c39=_0x19168a['remove'](_0x3219d7);break;case'search':_0x4d9c39=_0x19168a['search'](Float32Array[_0x53bce1(0x170)](_0x3219d7[_0x53bce1(0x665)]),_0x3219d7['opts']??{});break;case _0x53bce1(0x175):_0x4d9c39=typeof _0x19168a[_0x53bce1(0x175)]==='function'?_0x19168a[_0x53bce1(0x175)](_0x3219d7??undefined):![];break;case _0x53bce1(0x893):_0x4d9c39=typeof _0x19168a[_0x53bce1(0x893)]===_0x53bce1(0x6d8)?_0x19168a[_0x53bce1(0x893)]():undefined;break;case'tick':_0x4d9c39=typeof _0x19168a['tick']===_0x53bce1(0x6d8)?_0x19168a[_0x53bce1(0x2b4)]():undefined;break;case'count':return Number(_0x19168a[_0x53bce1(0x3c2)]());case _0x53bce1(0x7c6):return(typeof _0x19168a[_0x53bce1(0x7c6)]===_0x53bce1(0x6d8)?_0x19168a[_0x53bce1(0x7c6)]():null)??{};default:throw new Error(_0x53bce1(0x2af)+_0xfe8d41);}if(_0x4d9c39&&typeof _0x4d9c39['then']===_0x53bce1(0x6d8))_0x4d9c39=_0x1df578(_0x4d9c39);return _0x4d9c39===undefined?null:_0x4d9c39;}function _0x44b07a(_0x14065f,_0x2336fa,_0x504bed){const _0x1996d0=_0x3ebb;if(_0x14065f===_0x1996d0(0x264)){const _0x48a17e=_0x17d024(_0x2336fa);let _0x4a5537=_0x48a17e(_0x504bed);if(_0x4a5537&&typeof _0x4a5537[_0x1996d0(0x2b0)]==='function')_0x4a5537=_0x1df578(_0x4a5537);if(!_0x4a5537)return null;const _0x2bc7a0=[_0x1996d0(0x4ca),_0x1996d0(0x1d5),_0x1996d0(0x63c),_0x1996d0(0x3c2),_0x1996d0(0x481),'stats'][_0x1996d0(0x852)](_0x34db33=>typeof _0x4a5537[_0x34db33]===_0x1996d0(0x6d8));return{'$id':_0x5bc300(_0x4a5537),'has':_0x2bc7a0};}const _0x5cc44f=_0x2ce973['get'](_0x2336fa);if(_0x14065f==='free')return _0x2ce973[_0x1996d0(0x82f)](_0x2336fa),null;if(!_0x5cc44f)throw new Error(_0x1996d0(0x472));const _0x364dc0=_0x4739b8=>Float32Array[_0x1996d0(0x170)](_0x4739b8);let _0x2fd55f;switch(_0x14065f){case _0x1996d0(0x27f):_0x2fd55f=_0x5cc44f['put'](_0x504bed[0x0],_0x364dc0(_0x504bed[0x1]));break;case'remove':_0x2fd55f=_0x5cc44f[_0x1996d0(0x42f)](_0x504bed);break;case _0x1996d0(0x868):{_0x2fd55f=typeof _0x5cc44f[_0x1996d0(0x868)]===_0x1996d0(0x6d8)?_0x5cc44f[_0x1996d0(0x868)]():[];if(_0x2fd55f&&typeof _0x2fd55f[_0x1996d0(0x2b0)]===_0x1996d0(0x6d8))_0x2fd55f=_0x1df578(_0x2fd55f);return Array[_0x1996d0(0x170)](_0x2fd55f??[],_0x528b6e=>({'key':_0x528b6e[_0x1996d0(0x366)],'vector':Array[_0x1996d0(0x170)](_0x528b6e[_0x1996d0(0x6c5)])}));}case _0x1996d0(0x4ca):_0x2fd55f=_0x5cc44f['write'](_0x504bed[_0x1996d0(0x33b)][_0x1996d0(0x1a7)](_0x1521e5=>({'key':_0x1521e5[_0x1996d0(0x366)],'vector':_0x364dc0(_0x1521e5[_0x1996d0(0x6c5)])})),_0x504bed[_0x1996d0(0x179)]);break;case _0x1996d0(0x1d5):_0x2fd55f=_0x5cc44f[_0x1996d0(0x1d5)](_0x504bed??undefined);if(_0x2fd55f&&typeof _0x2fd55f[_0x1996d0(0x2b0)]===_0x1996d0(0x6d8))_0x2fd55f=_0x1df578(_0x2fd55f);return Array[_0x1996d0(0x170)](_0x2fd55f??[]);case _0x1996d0(0x63c):{_0x2fd55f=_0x5cc44f[_0x1996d0(0x63c)](_0x504bed);if(_0x2fd55f&&typeof _0x2fd55f[_0x1996d0(0x2b0)]==='function')_0x2fd55f=_0x1df578(_0x2fd55f);return _0x2fd55f==null?null:Array[_0x1996d0(0x170)](_0x2fd55f);}case _0x1996d0(0x3c2):return Number(_0x5cc44f['count']());case _0x1996d0(0x481):_0x2fd55f=_0x5cc44f[_0x1996d0(0x481)]();break;case _0x1996d0(0x5e6):return _0x5cc44f[_0x1996d0(0x5e6)]()??null;default:throw new Error('storage\x20adapter\x20has\x20no\x20method\x20'+_0x14065f);}if(_0x2fd55f&&typeof _0x2fd55f[_0x1996d0(0x2b0)]===_0x1996d0(0x6d8))_0x2fd55f=_0x1df578(_0x2fd55f);return _0x2fd55f===undefined?null:_0x2fd55f;}const _0xe87166=new Map();function _0x42073e(_0xdf9f52,_0xff8a67,_0x722afd,_0x387ded){const _0x176a1d=_0x3ebb,_0x576953=_0xdf9f52+'\x00'+_0x722afd+'\x00'+JSON['stringify'](_0x387ded),_0xfa575d=_0xe87166[_0x176a1d(0x63c)](_0x576953);if(_0xfa575d){if(_0xfa575d[_0x176a1d(0x41c)]==='pending')throw _0x20e4ae();_0xe87166[_0x176a1d(0x82f)](_0x576953);if(_0xfa575d[_0x176a1d(0x41c)]===_0x176a1d(0x391))throw _0xfa575d[_0x176a1d(0x820)];return _0xfa575d[_0x176a1d(0x820)];}const _0x492fe4=_0xff8a67[_0x722afd](_0x387ded);if(!_0x492fe4||typeof _0x492fe4[_0x176a1d(0x2b0)]!=='function')return _0x492fe4;const _0xe3dd8a={'state':_0x176a1d(0x35d),'value':undefined};_0x492fe4['then'](_0x5e8cb7=>{const _0x55d60d=_0x176a1d;_0xe3dd8a[_0x55d60d(0x41c)]='ok',_0xe3dd8a[_0x55d60d(0x820)]=_0x5e8cb7;if(_0xe87166[_0x55d60d(0x63c)](_0x576953)===_0xe3dd8a)_0xbae1bb(_0xff8a67);},_0x2e494e=>{const _0x294c8a=_0x176a1d;_0xe3dd8a[_0x294c8a(0x41c)]=_0x294c8a(0x391),_0xe3dd8a[_0x294c8a(0x820)]=_0x2e494e;if(_0xe87166['get'](_0x576953)===_0xe3dd8a)_0xbae1bb(_0xff8a67);});for(let _0x1637d6=0x0;_0x1637d6<0x64&&_0xe3dd8a[_0x176a1d(0x41c)]===_0x176a1d(0x35d);_0x1637d6++)process[_0x176a1d(0x67c)]();if(_0xe3dd8a['state']==='ok')return _0xe3dd8a[_0x176a1d(0x820)];if(_0xe3dd8a[_0x176a1d(0x41c)]===_0x176a1d(0x391))throw _0xe3dd8a['value'];_0xe87166[_0x176a1d(0x328)](_0x576953,_0xe3dd8a);throw _0x20e4ae();}const _0xa858b3=new Map(),_0x14d8fe=0xa*0x3c*0x3e8;function _0x355b0e(_0x504c3c,_0x275b20,_0x498cb1){const _0x17c24e=_0x3ebb,_0x26e4bc=Array[_0x17c24e(0x69e)](_0x498cb1)?_0x498cb1:Array['from'](_0x498cb1??[]);let _0x2bf831=_0xa858b3[_0x17c24e(0x63c)](_0x504c3c);if(!_0x2bf831)_0xa858b3[_0x17c24e(0x328)](_0x504c3c,_0x2bf831=new Map());const _0x151b16=Date[_0x17c24e(0x89e)]();for(const [_0x297f0b,_0xc148bb]of _0x2bf831)if(_0xc148bb[_0x17c24e(0x2b5)][_0x17c24e(0x41c)]!==_0x17c24e(0x35d)&&_0x151b16-_0xc148bb['req']['at']>_0x14d8fe)_0x2bf831[_0x17c24e(0x82f)](_0x297f0b);const _0x3f17e8=_0x26e4bc[_0x17c24e(0x1a7)](_0x1a53f8=>JSON[_0x17c24e(0x4d2)](_0x1a53f8));let _0x1d97d5=![];const _0x2d6bc7=[],_0x51dd49=new Set();for(let _0xc2d7ca=0x0;_0xc2d7ca<_0x3f17e8[_0x17c24e(0x6cf)];_0xc2d7ca++){const _0x5d036c=_0x2bf831[_0x17c24e(0x63c)](_0x3f17e8[_0xc2d7ca]);if(!_0x5d036c)!_0x51dd49[_0x17c24e(0x51e)](_0x3f17e8[_0xc2d7ca])&&(_0x51dd49[_0x17c24e(0x7df)](_0x3f17e8[_0xc2d7ca]),_0x2d6bc7[_0x17c24e(0x2fb)](_0xc2d7ca));else{if(_0x5d036c[_0x17c24e(0x2b5)]['state']==='pending')_0x1d97d5=!![];else{if(_0x5d036c[_0x17c24e(0x2b5)][_0x17c24e(0x41c)]===_0x17c24e(0x391)){const _0x3386be=_0x5d036c['req']['value'];for(const [_0x9d28f9,_0x524384]of _0x2bf831)if(_0x524384[_0x17c24e(0x2b5)]===_0x5d036c[_0x17c24e(0x2b5)])_0x2bf831['delete'](_0x9d28f9);throw _0x3386be;}}}}if(_0x1d97d5)throw _0x20e4ae();if(_0x2d6bc7[_0x17c24e(0x6cf)]){const _0x34b211=_0x2d6bc7[_0x17c24e(0x1a7)](_0x20ddff=>_0x26e4bc[_0x20ddff]),_0x4ea429=_0x275b20[_0x17c24e(0x4ce)](_0x34b211),_0x985ad8={'state':'pending','value':undefined,'at':0x0},_0x12f9fb=(_0x255338,_0x296c26)=>{const _0x4f031a=_0x17c24e;_0x985ad8[_0x4f031a(0x41c)]=_0x255338,_0x985ad8[_0x4f031a(0x820)]=_0x296c26,_0x985ad8['at']=Date[_0x4f031a(0x89e)]();};if(!_0x4ea429||typeof _0x4ea429[_0x17c24e(0x2b0)]!==_0x17c24e(0x6d8))_0x12f9fb('ok',_0x4ea429);else{let _0x29659b=!![];_0x4ea429[_0x17c24e(0x2b0)](_0x24d64c=>{_0x12f9fb('ok',_0x24d64c);if(!_0x29659b)_0xbae1bb(_0x275b20);},_0x4002e3=>{const _0x32639a=_0x17c24e;_0x12f9fb(_0x32639a(0x391),_0x4002e3);if(!_0x29659b)_0xbae1bb(_0x275b20);});for(let _0x788233=0x0;_0x788233<0x64&&_0x985ad8[_0x17c24e(0x41c)]===_0x17c24e(0x35d);_0x788233++)process[_0x17c24e(0x67c)]();_0x29659b=![];}for(let _0x125087=0x0;_0x125087<_0x2d6bc7[_0x17c24e(0x6cf)];_0x125087++)_0x2bf831[_0x17c24e(0x328)](_0x3f17e8[_0x2d6bc7[_0x125087]],{'req':_0x985ad8,'index':_0x125087});if(_0x985ad8[_0x17c24e(0x41c)]===_0x17c24e(0x391)){for(const _0x4e3ce0 of _0x2d6bc7)_0x2bf831['delete'](_0x3f17e8[_0x4e3ce0]);throw _0x985ad8[_0x17c24e(0x820)];}if(_0x985ad8['state']===_0x17c24e(0x35d))throw _0x20e4ae();}const _0x5e617d=_0x3f17e8['map'](_0x16a99a=>{const _0x377b97=_0x17c24e,_0x36245f=_0x2bf831[_0x377b97(0x63c)](_0x16a99a),_0x21fad8=_0x36245f['req'][_0x377b97(0x820)];return _0x21fad8?_0x21fad8[_0x36245f[_0x377b97(0x3a9)]]:undefined;});for(const _0x1c9240 of _0x3f17e8)_0x2bf831[_0x17c24e(0x82f)](_0x1c9240);if(!_0x2bf831[_0x17c24e(0x221)])_0xa858b3['delete'](_0x504c3c);return _0x5e617d;}function _0x20e4ae(){const _0x34ae78=_0x3ebb;return Object[_0x34ae78(0x76f)](new Error('embedder\x20request\x20still\x20pending'),{'code':_0x34ae78(0x71c)});}function _0xbae1bb(_0x26b11c){const _0x59d944=_0x3ebb;_0x28fba2();try{const _0x467019=_0x26b11c[_0x59d944(0x45c)]||_0x402fed;if(_0x467019&&_0x467019[_0x59d944(0x60a)])_0x467019['_call']('events',null,_0x59d944(0x6d6),['embeddings:embed:settled',{}],!![]);}catch{}}function _0x2418f9(_0x25cc0f,_0x5e9cd0,_0x21166a){const _0x3b4fde=_0x3ebb,_0x378835=_0x2ce973[_0x3b4fde(0x63c)](_0x25cc0f);if(!_0x378835||typeof _0x378835[_0x5e9cd0]!=='function')return{'__absent':!![]};let _0x467cb9=_0x378835[_0x5e9cd0](...Array[_0x3b4fde(0x69e)](_0x21166a)?_0x21166a:[]);if(_0x467cb9&&typeof _0x467cb9[_0x3b4fde(0x2b0)]===_0x3b4fde(0x6d8))_0x467cb9=_0x1df578(_0x467cb9);return{'value':_0x467cb9===undefined?null:_0x467cb9};}const _0x4b86fc=new Map();let _0x9bd317=0x1;const _0x278c0b=new Map(),_0x168c6b=new Map();function _0x297456(_0x1c6d5f,_0x31c199=null){const _0xcaa4bd=_0x3ebb,_0x16490d=_0x9bd317++;_0x4b86fc[_0xcaa4bd(0x328)](_0x16490d,_0x1c6d5f);if(_0x31c199)_0x168c6b[_0xcaa4bd(0x328)](_0x16490d,_0x31c199);return _0x16490d;}function _0x6543be(_0x310f38){const _0x33233a=_0x3ebb;for(const [_0x72ed9b,_0x12ab08]of _0x278c0b)if(_0x12ab08&&_0x12ab08[_0x33233a(0x21e)]===_0x310f38)_0x278c0b[_0x33233a(0x82f)](_0x72ed9b);for(const [_0x2e9326,_0x1b0bba]of _0x41aea3)if(_0x1b0bba===_0x310f38)_0x41aea3[_0x33233a(0x82f)](_0x2e9326);for(const [_0x4b7520,_0x26e574]of _0x168c6b)_0x26e574===_0x310f38&&(_0x168c6b[_0x33233a(0x82f)](_0x4b7520),_0x4b86fc[_0x33233a(0x82f)](_0x4b7520));if(_0x402fed===_0x310f38)_0x402fed=null;}function _0x405316(_0xc74df,_0x5632b6){const _0x8e2845=_0x3ebb;_0x278c0b[_0x8e2845(0x328)](_0xc74df,_0x5632b6);}function _0x3dd118(_0x3468c2){const _0x15f8fe=_0x3ebb;if(_0x3468c2&&typeof _0x3468c2===_0x15f8fe(0x1be)&&Object['keys'](_0x3468c2)[_0x15f8fe(0x6cf)]===0x1&&_0x3468c2[_0x15f8fe(0x2b9)]!==undefined)return _0x4b86fc[_0x15f8fe(0x63c)](_0x3468c2[_0x15f8fe(0x2b9)]);return _0x3468c2;}function _0x1df578(_0x612e90){const _0x286198=_0x3ebb;let _0xf4102e=![],_0x480296=![],_0x401622;_0x612e90[_0x286198(0x2b0)](_0x38dd34=>{_0xf4102e=!![],_0x401622=_0x38dd34;},_0x1ff8dc=>{_0xf4102e=!![],_0x480296=!![],_0x401622=_0x1ff8dc;});for(let _0x1aec01=0x0;_0x1aec01<0x2710&&!_0xf4102e;_0x1aec01++)process[_0x286198(0x67c)]();if(!_0xf4102e)return _0x612e90[_0x286198(0x2b0)](undefined,_0x41a886=>{const _0x514e8a=_0x286198;try{process[_0x514e8a(0x59d)](_0x514e8a(0x3b6)+(_0x41a886&&_0x41a886[_0x514e8a(0x2d2)]?_0x41a886['message']:_0x41a886));}catch{}}),undefined;if(_0x480296)throw _0x401622;return _0x401622;}function _0x2be118(_0x40cf16,_0xfb1cb8,_0x41ba50){const _0x4b2b1f=_0x3ebb,_0x2eb981=_0x17d024(_0x40cf16),_0x5139a7=_0x278c0b['get'](_0xfb1cb8);try{const _0x2bff12=_0x2eb981(_0x41ba50,{'okdb':_0x5139a7&&_0x5139a7['okdb'],'env':_0x5139a7});if(_0x2bff12&&typeof _0x2bff12[_0x4b2b1f(0x2b0)]===_0x4b2b1f(0x6d8))_0x1df578(_0x2bff12);}catch(_0x2d11fa){if(_0x2d11fa&&_0x2d11fa['processorHold']===!![]&&_0x2d11fa['code']!=='__HOLD__'){const _0x37ad8b=new Error(_0x2d11fa[_0x4b2b1f(0x2d2)]);_0x37ad8b[_0x4b2b1f(0x748)]='__HOLD__';throw _0x37ad8b;}throw _0x2d11fa;}}const _0x1d7845=new Map();function _0x91efc1(_0x48a624,_0x550565,_0x57b611,_0x47ca92,_0x580528,_0x163a65){const _0x208e02=_0x3ebb,_0x3a92fd=_0x17d024(_0x48a624),_0x34038d=(_0x278c0b[_0x208e02(0x63c)](_0x163a65)||{})[_0x208e02(0x21e)]||_0x402fed,_0xff99e9=new AbortController(),_0x227669=(_0x200b28,..._0x2cccb9)=>_0x34038d[_0x208e02(0x49e)]('queue',_0x208e02(0x822),_0x200b28,_0x2cccb9,![]),_0x13a26d={'okdb':_0x34038d,'env':_0x278c0b[_0x208e02(0x63c)](_0x163a65)||null,'job':_0x47ca92,'jobId':_0x580528,'signal':_0xff99e9[_0x208e02(0x2b7)],'heartbeat':()=>_0x227669(_0x208e02(0x7c1),_0x57b611),'markProgress':_0x5ee768=>_0x227669(_0x208e02(0x7c9),_0x57b611,_0x5ee768),'log':(_0x7163d9,_0x404652)=>_0x227669(_0x208e02(0x203),_0x57b611,_0x7163d9,_0x404652)};_0x1d7845['set'](_0x57b611,{'ctrl':_0xff99e9,'call':_0x227669});const _0x35d575=()=>{const _0x345086=_0x208e02;_0x1d7845['delete'](_0x57b611);try{_0x227669(_0x345086(0x6e1),_0x57b611);}catch{}};let _0x8e8b2a;try{_0x8e8b2a=_0x3a92fd(_0x550565,_0x13a26d);}catch(_0xceee26){_0x35d575();throw _0xceee26;}if(_0x8e8b2a&&typeof _0x8e8b2a[_0x208e02(0x2b0)]===_0x208e02(0x6d8)){const _0x1f76b9=_0x204a9a(_0x8e8b2a);return _0x8e8b2a[_0x208e02(0x2b0)](_0x35d575,_0x35d575),{'$token':_0x1f76b9};}return _0x35d575(),_0x8e8b2a;}function _0x38a9cc(){const _0x2d83db=_0x3ebb;for(const [_0x4f4de8,_0x58cf2a]of _0x1d7845){if(_0x58cf2a[_0x2d83db(0x7b0)][_0x2d83db(0x2b7)][_0x2d83db(0x43a)])continue;let _0xec9052;try{_0xec9052=_0x58cf2a[_0x2d83db(0x853)](_0x2d83db(0x556),_0x4f4de8);}catch{continue;}if(_0xec9052&&_0xec9052['aborted']){const {OKDBError:_0x30cb9b}=requireErrors();_0x58cf2a[_0x2d83db(0x7b0)][_0x2d83db(0x33a)](new _0x30cb9b(_0xec9052[_0x2d83db(0x2d2)],_0xec9052[_0x2d83db(0x748)]));}}}let _0x402fed=null;function _0x41612e(_0x1f64dc){_0x402fed=_0x1f64dc;}function _0x8b8e6e(_0x4237b1,_0x5de82f,_0x18cdb4,_0x2250f0,_0x130ce3,_0x51575d,_0x5431b0){const _0x1f8026=_0x3ebb,_0x5bfa82=_0x17d024(_0x4237b1),_0x11722e=_0x278c0b[_0x1f8026(0x63c)](_0x18cdb4);try{const _0x1cb439=_0x5de82f?_0x5bfa82(_0x130ce3,_0x51575d):_0x5bfa82({'env':_0x11722e,'okdb':_0x11722e&&_0x11722e[_0x1f8026(0x21e)],'payload':_0x3dd118(_0x2250f0)},_0x130ce3,_0x51575d);if(_0x1cb439&&typeof _0x1cb439['then']===_0x1f8026(0x6d8)){if(_0x51575d&&_0x51575d[_0x1f8026(0x182)]===_0x1f8026(0x2d7))_0x1cb439[_0x1f8026(0x2b0)](undefined,()=>{});else{if(_0x5431b0){const _0x54f428=_0x4565a2(_0x1cb439);if(_0x54f428===0x0)return null;return{'$token':_0x54f428};}else _0x1df578(_0x1cb439);}}}catch(_0x4308d0){if(_0x4308d0&&_0x4308d0[_0x1f8026(0x23a)]===!![]&&_0x4308d0['code']!==_0x1f8026(0x652)){const _0x26bfa2=new Error(_0x4308d0[_0x1f8026(0x2d2)]);_0x26bfa2[_0x1f8026(0x748)]='__HOLD__';throw _0x26bfa2;}throw _0x4308d0;}return null;}function _0x4565a2(_0x37a792){const _0x31e574=_0x3ebb;let _0x492a20='pending',_0x2e90ef;_0x37a792[_0x31e574(0x2b0)](_0x3f1d02=>{_0x492a20='ok',_0x2e90ef=_0x3f1d02;},_0x37f2a2=>{const _0x2f0b00=_0x31e574;_0x492a20=_0x2f0b00(0x391),_0x2e90ef=_0x37f2a2;});for(let _0x172673=0x0;_0x172673<0x64&&_0x492a20==='pending';_0x172673++)process[_0x31e574(0x67c)]();if(_0x492a20==='ok')return 0x0;const _0x39631d=_0xae3cd2++,_0xd610d2={'state':_0x492a20,'value':_0x2e90ef};_0x270701['set'](_0x39631d,_0xd610d2);if(_0x492a20===_0x31e574(0x35d))_0x37a792['then'](_0x4af6ee=>{const _0x5aa217=_0x31e574;_0xd610d2[_0x5aa217(0x41c)]='ok',_0xd610d2['value']=_0x4af6ee,_0x28fba2();},_0x36a371=>{const _0x43ddd8=_0x31e574;_0xd610d2[_0x43ddd8(0x41c)]='err',_0xd610d2[_0x43ddd8(0x820)]=_0x36a371,_0x28fba2();});return _0x39631d;}function _0x363804(_0x5cea51){const _0x3a1425=_0x3ebb;let _0x2da225=_0x92625b[_0x3a1425(0x63c)](_0x5cea51);return _0x2da225===undefined&&(_0x2da225=_0x4eabaa++,_0x92625b['set'](_0x5cea51,_0x2da225),_0x2d91ae[_0x3a1425(0x328)](_0x2da225,{'fn':_0x5cea51,'refs':0x0})),_0x2d91ae['get'](_0x2da225)[_0x3a1425(0x4d3)]++,_0x2da225;}function _0xa5759e(_0x274c1f){const _0x67fde3=_0x3ebb,_0x521f47=_0x2d91ae[_0x67fde3(0x63c)](_0x274c1f);if(!_0x521f47)return;--_0x521f47[_0x67fde3(0x4d3)]<=0x0&&(_0x2d91ae[_0x67fde3(0x82f)](_0x274c1f),_0x92625b[_0x67fde3(0x82f)](_0x521f47['fn']));}function _0x17d024(_0x535936){const _0x5b1a6d=_0x2d91ae['get'](_0x535936);if(!_0x5b1a6d)throw new Error('okdb-node:\x20unknown\x20callback\x20id\x20'+_0x535936);return _0x5b1a6d['fn'];}function _0x204a9a(_0x95b143){const _0x474c76=_0x3ebb;if(_0x95b143&&typeof _0x95b143[_0x474c76(0x2b0)]===_0x474c76(0x6d8)){const _0x100506=_0xae3cd2++,_0x393f90={'state':'pending','value':undefined};return _0x270701[_0x474c76(0x328)](_0x100506,_0x393f90),_0x95b143[_0x474c76(0x2b0)](_0x8a348=>{const _0x5b8d06=_0x474c76;_0x393f90[_0x5b8d06(0x41c)]='ok',_0x393f90[_0x5b8d06(0x820)]=_0x8a348,_0x28fba2();},_0x4ae524=>{const _0x1ea422=_0x474c76;_0x393f90[_0x1ea422(0x41c)]=_0x1ea422(0x391),_0x393f90[_0x1ea422(0x820)]=_0x4ae524,_0x28fba2();}),_0x100506;}return 0x0;}let _0x545dc3=()=>{},_0x47f587=null;function _0x4ea32c(_0x1af750,_0x211d63=null){_0x545dc3=_0x1af750,_0x47f587=_0x211d63;}function _0x2c9c02(_0x519f11){return _0x47f587===_0x519f11;}function _0x28fba2(){_0x545dc3();}function _0x2611c1(_0x383a43){const _0x1669b2=_0x3ebb,_0x33d391=_0x270701['get'](_0x383a43);if(!_0x33d391)return{'state':_0x1669b2(0x391),'error':{'message':_0x1669b2(0x485)}};if(_0x33d391[_0x1669b2(0x41c)]===_0x1669b2(0x35d))return{'state':'pending'};_0x270701[_0x1669b2(0x82f)](_0x383a43);if(_0x33d391[_0x1669b2(0x41c)]==='ok')return{'state':'ok','value':_0x33d391[_0x1669b2(0x820)]};const _0x4afc16=_0x33d391['value'];return{'state':_0x1669b2(0x391),'error':{'message':_0x4afc16&&_0x4afc16[_0x1669b2(0x2d2)]!=null?String(_0x4afc16['message']):String(_0x4afc16),'stack':_0x4afc16&&_0x4afc16[_0x1669b2(0x3fd)],'code':_0x4afc16&&_0x4afc16[_0x1669b2(0x748)],'status':_0x4afc16&&typeof _0x4afc16[_0x1669b2(0x1c9)]===_0x1669b2(0x5c1)?_0x4afc16[_0x1669b2(0x1c9)]:undefined,'hold':!!(_0x4afc16&&_0x4afc16['processorHold']===!![])}};}function _0x3adc0a(_0x21114b,_0x178cca){const _0x55abc2=_0x3ebb;_0x4a6b7c[_0x55abc2(0x328)](_0x21114b,_0x178cca);}function _0x35f027(_0x50aae3){_0x4a6b7c['delete'](_0x50aae3);}let _0x13e7d8=0x0;function _0x500f5e(){return _0x13e7d8>0x0;}function _0x18108c(){const _0x14471a=_0x3ebb;_0x13e7d8++;try{return _0x4b2490[_0x14471a(0x2a0)](undefined,arguments);}finally{_0x13e7d8--;}}function _0x4b2490(_0x573af3,_0x53ad6d,_0x21711d,_0x1b8893,_0x6d54bb,_0x28fd44){const _0xd07138=_0x3ebb;switch(_0x573af3){case _0xd07138(0x274):return _0x363804(_0x53ad6d);case'unreg':return _0xa5759e(_0x53ad6d);case'call':{const _0x43c6b9=Array[_0xd07138(0x455)]['slice'][_0xd07138(0x853)](arguments,0x2),_0x253263=_0x17d024(_0x53ad6d)[_0xd07138(0x2a0)](undefined,_0x43c6b9);return _0x253263&&typeof _0x253263[_0xd07138(0x2b0)]==='function'?_0x1df578(_0x253263):_0x253263;}case _0xd07138(0x79c):{const _0x270f98=Array[_0xd07138(0x455)]['slice'][_0xd07138(0x853)](arguments,0x2),_0x19e5f7=_0x17d024(_0x53ad6d)[_0xd07138(0x2a0)](undefined,_0x270f98);if(_0x19e5f7&&typeof _0x19e5f7[_0xd07138(0x2b0)]===_0xd07138(0x6d8))return{'$token':_0x204a9a(_0x19e5f7)};return{'$value':_0x19e5f7===undefined?null:_0x19e5f7,'$undef':_0x19e5f7===undefined};}case _0xd07138(0x37b):{const _0xd44507=_0x4a6b7c[_0xd07138(0x63c)](_0x53ad6d);if(_0xd44507)_0xd44507[_0xd07138(0x7b5)](_0x21711d,_0x1b8893);return undefined;}case'log':{const _0x149da5=_0x4a6b7c['get'](_0x53ad6d);if(_0x149da5)_0x149da5[_0xd07138(0x8a6)](_0x21711d);return undefined;}case'handler':return _0x8b8e6e(_0x53ad6d,_0x21711d,_0x1b8893,_0x6d54bb,_0x28fd44,arguments[0x6],arguments[0x7]);case'quantum':return _0x2be118(_0x53ad6d,_0x21711d,_0x1b8893);case _0xd07138(0x5cd):return _0x91efc1(_0x53ad6d,_0x21711d,_0x1b8893,_0x6d54bb,_0x28fd44,arguments[0x6]);case _0xd07138(0x741):return _0x42fd53[_0xd07138(0x2a0)](null,Array['prototype'][_0xd07138(0x5ca)][_0xd07138(0x853)](arguments,0x1));case _0xd07138(0x370):return _0x2418f9(_0x53ad6d,_0x21711d,_0x1b8893);case _0xd07138(0x7a9):return _0x2611c1(_0x53ad6d);case _0xd07138(0x457):{const _0x35bf68=((async()=>{const _0x5a6f64=_0xd07138,_0x4f278d=await globalThis[_0x5a6f64(0x430)](_0x53ad6d);if(!_0x4f278d['ok']){const _0x5af822=new Error('HTTP\x20'+_0x4f278d['status']);_0x5af822[_0x5a6f64(0x748)]=_0x5a6f64(0x821);throw _0x5af822;}return _0x4f278d[_0x5a6f64(0x792)]();})());return _0x1df578(_0x35bf68)??null;}case _0xd07138(0x2f6):return _0x27c48d(_0x53ad6d,_0x21711d,_0x1b8893);case _0xd07138(0x454):return _0x9c9ea8(_0x53ad6d,_0x21711d,_0x1b8893);case _0xd07138(0x1c8):return _0x44b07a(_0x53ad6d,_0x21711d,_0x1b8893);default:throw new Error(_0xd07138(0x722)+_0x573af3);}}return bridge_1={'inNativeCall':_0x500f5e,'regObject':_0x5bc300,'checkSignals':_0x38a9cc,'setCurrentDb':_0x41612e,'forgetDb':_0x6543be,'storePayload':_0x297456,'registerEnv':_0x405316,'resolvePayload':_0x3dd118,'bridge':_0x18108c,'reg':_0x363804,'unreg':_0xa5759e,'fnOf':_0x17d024,'track':_0x204a9a,'resolve':_0x2611c1,'registerTarget':_0x3adc0a,'unregisterTarget':_0x35f027,'setKick':_0x4ea32c,'kickOwnedBy':_0x2c9c02},bridge_1;}var writebatch,hasRequiredWritebatch;function requireWritebatch(){const _0x3e8400=_0x2ec26e;if(hasRequiredWritebatch)return writebatch;hasRequiredWritebatch=0x1;const {reclass:_0x31afee}=requireErrors(),_0x5e1aa3=requireBridge(),_0x130925=new Map();let _0x37e0f3=null;function _0x4ee250(_0x36549a){if(_0x37e0f3)return;_0x37e0f3=_0x36549a,_0x36549a['setFlushNotify'](_0x2dbecc);}function _0x2dbecc(){const _0x183b6a=_0x3ebb,_0x22b73e=_0x37e0f3[_0x183b6a(0x378)]();for(const _0x141ae2 of _0x22b73e){const _0x15021e=_0x130925['get'](_0x141ae2);_0x15021e&&(_0x130925['delete'](_0x141ae2),_0x15021e());}}function _0x4c8597(_0x751699,_0x201245){const _0x246834=_0x3ebb;_0x130925[_0x246834(0x328)](_0x751699,_0x201245);}class _0x316e59{constructor(_0xb42a32){this['db']=_0xb42a32,this['queue']=[],this['scheduled']=![],this['inBatch']=![],this['inflight']=new Set();}[_0x3e8400(0x414)](_0x139f2c,_0x302dae,_0x41ddaf,_0xdbe5aa){const _0x59c7ee=_0x3e8400;if(_0x5e1aa3['inNativeCall']())try{return Promise[_0x59c7ee(0x7a9)](this['db']['_call'](_0x139f2c,_0x302dae,_0x41ddaf,_0xdbe5aa));}catch(_0x4fceb3){return Promise['reject'](_0x4fceb3);}const _0x108bf7=new Promise((_0xa51933,_0x580aa9)=>{const _0x281d10=_0x59c7ee;this[_0x281d10(0x601)]['push']({'item':[_0x139f2c,_0x302dae,_0x41ddaf,_0xdbe5aa],'resolve':_0xa51933,'reject':_0x580aa9});});this['inflight'][_0x59c7ee(0x7df)](_0x108bf7);const _0x94e3c6=()=>this['inflight'][_0x59c7ee(0x82f)](_0x108bf7);return _0x108bf7[_0x59c7ee(0x2b0)](_0x94e3c6,_0x94e3c6),!this[_0x59c7ee(0x45f)]&&(this['scheduled']=!![],setImmediate(()=>{const _0x213208=_0x59c7ee;this['scheduled']=![],this[_0x213208(0x2cd)]();})),_0x108bf7;}[_0x3e8400(0x2cd)](){const _0x45b9cc=_0x3e8400;if(!this[_0x45b9cc(0x601)][_0x45b9cc(0x6cf)])return;if(this['inBatch']){!this[_0x45b9cc(0x45f)]&&(this[_0x45b9cc(0x45f)]=!![],setImmediate(()=>{const _0x17fe7d=_0x45b9cc;this[_0x17fe7d(0x45f)]=![],this[_0x17fe7d(0x2cd)]();}));return;}const _0x3645cb=this[_0x45b9cc(0x601)];this[_0x45b9cc(0x601)]=[],this[_0x45b9cc(0x826)](_0x3645cb);}[_0x3e8400(0x826)](_0x3ce5c1){const _0x115f66=_0x3e8400;let _0x394af5;this[_0x115f66(0x74d)]=!![];try{_0x394af5=this['db'][_0x115f66(0x6bd)][_0x115f66(0x550)](_0x3ce5c1[_0x115f66(0x1a7)](_0x5dfc8e=>_0x5dfc8e[_0x115f66(0x24c)]));}catch(_0x1cdb31){this['inBatch']=![];if(_0x3ce5c1['length']>0x1){for(const _0x402a9f of _0x3ce5c1)this[_0x115f66(0x826)]([_0x402a9f]);return;}const _0x2bdf42=_0x31afee(_0x1cdb31);for(const _0x171a00 of _0x3ce5c1)_0x171a00[_0x115f66(0x6f0)](_0x2bdf42);return;}finally{this[_0x115f66(0x74d)]=![];}try{this['db'][_0x115f66(0x5bc)][_0x115f66(0x536)]();}catch{}const [_0x4ef5df,_0x1d4d4f]=_0x394af5;_0x4c8597(_0x1d4d4f,()=>{const _0x366a07=_0x115f66;for(let _0x4d203a=0x0;_0x4d203a<_0x3ce5c1['length'];_0x4d203a++){const _0x4e08e8=_0x4ef5df[_0x4d203a];if(_0x4e08e8&&_0x4e08e8[0x0])_0x3ce5c1[_0x4d203a][_0x366a07(0x7a9)](_0x4e08e8[0x1]);else _0x3ce5c1[_0x4d203a][_0x366a07(0x6f0)](_0x31afee(_0x4e08e8?_0x4e08e8[0x1]:new Error(_0x366a07(0x4fe))));}});}async[_0x3e8400(0x56b)](){const _0x2c8d52=_0x3e8400;this[_0x2c8d52(0x2cd)]();while(this['inflight'][_0x2c8d52(0x221)]){await Promise[_0x2c8d52(0x795)]([...this[_0x2c8d52(0x381)]]),this['commit']();}let _0x28f69b;try{_0x28f69b=this['db'][_0x2c8d52(0x6bd)][_0x2c8d52(0x5fe)]();}catch{return;}await new Promise(_0x30e686=>_0x4c8597(_0x28f69b,_0x30e686));}}return writebatch={'install':_0x4ee250,'WriteBatch':_0x316e59,'whenSettled':_0x4c8597},writebatch;}var pump,hasRequiredPump;function requirePump(){const _0x27783f=_0x2ec26e;if(hasRequiredPump)return pump;hasRequiredPump=0x1;const _0x9c9dd1=Number(process.env.OKDB_NATIVE_IDLE_MS)||0xfa;class _0x308716{constructor(_0x28fc0e){const _0x58b9ca=_0x3ebb;this['native']=_0x28fc0e,this['timer']=null,this[_0x58b9ca(0x176)]=null,this[_0x58b9ca(0x48c)]=![],this[_0x58b9ca(0x2d9)]=![],this[_0x58b9ca(0x759)]=![],this[_0x58b9ca(0x34e)]=![],this[_0x58b9ca(0x5e3)]=0x0,this[_0x58b9ca(0x278)]=[],this[_0x58b9ca(0x316)]=[];}[_0x27783f(0x52a)](_0x11f050){return new Promise(_0x53f83d=>{const _0x504af0=_0x3ebb,_0x7250c8=setTimeout(_0x184747,_0x11f050);function _0x184747(){clearTimeout(_0x7250c8),_0x53f83d();}this[_0x504af0(0x316)][_0x504af0(0x2fb)](_0x184747);});}[_0x27783f(0x4cf)](){const _0x432468=_0x27783f;if(this[_0x432468(0x316)][_0x432468(0x6cf)]===0x0)return;const _0x1d38ba=this[_0x432468(0x316)];this['turnWaiters']=[];for(const _0x25840a of _0x1d38ba)_0x25840a();}['start'](){const _0x269c1d=_0x27783f;this[_0x269c1d(0x2d9)]=![],this[_0x269c1d(0x536)]();}['stop'](){const _0x5677e1=_0x27783f;this[_0x5677e1(0x2d9)]=!![];if(this['timer'])clearTimeout(this[_0x5677e1(0x6e6)]);if(this[_0x5677e1(0x176)])clearImmediate(this[_0x5677e1(0x176)]);this[_0x5677e1(0x6e6)]=this[_0x5677e1(0x176)]=null,this[_0x5677e1(0x4cf)]();}[_0x27783f(0x536)](){const _0x1cad52=_0x27783f;if(this['stopped']||this[_0x1cad52(0x176)])return;this[_0x1cad52(0x6e6)]&&(clearTimeout(this['timer']),this[_0x1cad52(0x6e6)]=null),this[_0x1cad52(0x176)]=setImmediate(()=>{const _0xcf993c=_0x1cad52;this[_0xcf993c(0x176)]=null,this['turn']();});}[_0x27783f(0x53f)](){const _0x55e555=_0x27783f;if(this[_0x55e555(0x2d9)]||this['pumping']){this[_0x55e555(0x34e)]=!![];return;}this[_0x55e555(0x759)]=!![];let _0x29fa22;try{this[_0x55e555(0x5e3)]++,_0x29fa22=this[_0x55e555(0x68e)][_0x55e555(0x2e6)]();if(this[_0x55e555(0x3f4)])this['afterTurn']();}catch(_0x241654){_0x29fa22=_0x9c9dd1,process['nextTick'](()=>{throw _0x241654;});}finally{this['pumping']=![],this[_0x55e555(0x4cf)]();}if(this[_0x55e555(0x2d9)]||_0x29fa22===-0x2)return;if(this[_0x55e555(0x34e)])return this['dirty']=![],this[_0x55e555(0x536)]();const _0x3fdf4e=_0x29fa22<0x0?_0x9c9dd1:Math[_0x55e555(0x3e7)](0x0,Math['min'](_0x29fa22,_0x9c9dd1));if(_0x3fdf4e<=0x0)return this[_0x55e555(0x536)]();this['timer']=setTimeout(()=>{this['timer']=null,this['turn']();},Math[_0x55e555(0x342)](_0x3fdf4e));if(this[_0x55e555(0x6e6)][_0x55e555(0x702)])this['timer'][_0x55e555(0x702)]();}}return pump={'Pumper':_0x308716},pump;}var dist$1={},hasRequiredDist$1;function requireDist$1(){const _0x1987ae=_0x2ec26e;if(hasRequiredDist$1)return dist$1;hasRequiredDist$1=0x1;const _0x5a05a1=Symbol['for']('@harperdb/extended-iterable:skip'),_0x461e90={'value':null,'done':!![]},_0x3ca1bd={'value':null,'done':!![]};!Symbol['asyncIterator']&&(Symbol[_0x1987ae(0x1d6)]=Symbol[_0x1987ae(0x401)](_0x1987ae(0x549)));const _0x39cd87={};class _0x5148f5{constructor(_0x2f32e0){const _0x453e91=_0x1987ae;_0x2f32e0&&(this['iterate']=_0x2f32e0[Symbol[_0x453e91(0x56e)]]['bind'](_0x2f32e0));}['map'](_0x1f595d){const _0x579f41=_0x1987ae;let _0x124d9f=this,_0x5c69c0=new _0x5148f5();return _0x5c69c0[_0x579f41(0x1ab)]=(_0x520035=_0x39cd87)=>{const _0xf8ab0e=_0x579f41,{async:_0xf4d854}=_0x520035;let _0x3358db=_0x124d9f[_0xf4d854?Symbol[_0xf8ab0e(0x1d6)]:Symbol[_0xf8ab0e(0x56e)]](_0x520035);if(!_0xf4d854)_0x124d9f[_0xf8ab0e(0x1b6)]=!![];let _0x28b150=-0x1;return{'next'(_0x5ca741){const _0x23a265=_0xf8ab0e;let _0x32f50c;do{let _0x1e8d61;try{if(_0x5ca741)_0x1e8d61=_0x5ca741,_0x5ca741=null;else{_0x28b150++,_0x1e8d61=_0x3358db['next']();if(_0x1e8d61['then'])return!_0xf4d854&&this[_0x23a265(0x2c5)](new Error('Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results')),_0x1e8d61[_0x23a265(0x2b0)](_0x2d76d4=>this['next'](_0x2d76d4),_0x2c1c51=>{const _0x1165f5=_0x23a265;return this[_0x1165f5(0x2c5)](_0x2c1c51);});}if(_0x1e8d61[_0x23a265(0x3b5)]===!![]){this[_0x23a265(0x3b5)]=!![];if(_0x5c69c0[_0x23a265(0x500)])_0x5c69c0[_0x23a265(0x500)]();return _0x1e8d61;}try{_0x32f50c=_0x1f595d['call'](_0x124d9f,_0x1e8d61['value'],_0x28b150);if(_0x32f50c&&_0x32f50c[_0x23a265(0x2b0)]&&_0xf4d854)return _0x32f50c[_0x23a265(0x2b0)](_0x1e2753=>_0x1e2753===_0x5a05a1?this[_0x23a265(0x788)]():{'value':_0x1e2753},_0x35ea5a=>{const _0x27f358=_0x23a265;if(_0x520035[_0x27f358(0x555)])_0x35ea5a[_0x27f358(0x1f0)]=!![];return this[_0x27f358(0x2c5)](_0x35ea5a);});}catch(_0x2d1a37){if(_0x520035[_0x23a265(0x555)])_0x2d1a37[_0x23a265(0x1f0)]=!![];throw _0x2d1a37;}}catch(_0x5f475f){if(_0x5c69c0['handleError'])try{_0x32f50c=_0x5c69c0['handleError'](_0x5f475f,_0x28b150);}catch(_0x262706){return this[_0x23a265(0x2c5)](_0x262706);}else return this[_0x23a265(0x2c5)](_0x5f475f);}}while(_0x32f50c===_0x5a05a1);if(_0x32f50c===_0x461e90)return this[_0x23a265(0x77e)]();return{'value':_0x32f50c};},'return'(_0x53095a){const _0x580376=_0xf8ab0e;if(!this[_0x580376(0x3b5)]){_0x3ca1bd[_0x580376(0x820)]=_0x53095a,this[_0x580376(0x3b5)]=!![];if(_0x5c69c0[_0x580376(0x500)])_0x5c69c0[_0x580376(0x500)]();_0x3358db['return']?.();}return _0x3ca1bd;},'throw'(_0x107675){const _0x5f2d3a=_0xf8ab0e;if(_0x107675[_0x5f2d3a(0x1f0)]){if(_0x5c69c0[_0x5f2d3a(0x2c1)])try{return{'value':_0x5c69c0['returnRecoverableErrors'](_0x107675)};}catch(_0x5cba68){this['return']();throw _0x5cba68;}if(_0x520035[_0x5f2d3a(0x555)])throw _0x107675;}this[_0x5f2d3a(0x77e)]();throw _0x107675;}};},_0x5c69c0;}[Symbol[_0x1987ae(0x1d6)]](_0x34c8df){if(_0x34c8df)_0x34c8df={..._0x34c8df,'async':!![]};else _0x34c8df={'async':!![]};return this['iterator']=this['iterate'](_0x34c8df);}[Symbol[_0x1987ae(0x56e)]](_0x26047f){const _0x323c26=_0x1987ae;return this[_0x323c26(0x56e)]=this[_0x323c26(0x1ab)](_0x26047f);}['filter'](_0x336357){const _0x2c0021=_0x1987ae;let _0x158648=this[_0x2c0021(0x1a7)](_0x55f9cc=>{const _0x45032c=_0x2c0021;let _0x4b0b9e=_0x336357(_0x55f9cc);if(_0x4b0b9e?.[_0x45032c(0x2b0)])return _0x4b0b9e[_0x45032c(0x2b0)](_0x558d52=>_0x558d52?_0x55f9cc:_0x5a05a1);else return _0x4b0b9e?_0x55f9cc:_0x5a05a1;}),_0x5af842=_0x158648[_0x2c0021(0x1ab)];return _0x158648[_0x2c0021(0x1ab)]=(_0x1afd04=_0x39cd87)=>{if(_0x1afd04['continueOnRecoverableError'])_0x1afd04={..._0x1afd04,'continueOnRecoverableError':![]};return _0x5af842(_0x1afd04);},_0x158648;}['forEach'](_0x9efbc1){const _0x3b31b2=_0x1987ae;let _0x121368=this[_0x3b31b2(0x56e)]=this[_0x3b31b2(0x1ab)](),_0x5bb4dd;while((_0x5bb4dd=_0x121368[_0x3b31b2(0x788)]())['done']!==!![]){_0x9efbc1(_0x5bb4dd[_0x3b31b2(0x820)]);}}['concat'](_0x2474e5){const _0x53609a=_0x1987ae;let _0x782ec6=new _0x5148f5();return _0x782ec6[_0x53609a(0x1ab)]=(_0x2af6d3=_0x39cd87)=>{const _0x410ca2=_0x53609a;let _0x160da4=this[_0x410ca2(0x56e)]=this[_0x410ca2(0x1ab)](_0x2af6d3),_0x4c4602=!![];function _0x38501f(_0x5b3ead){const _0x3d6e50=_0x410ca2;if(_0x4c4602)try{_0x4c4602=![],_0x160da4=_0x2474e5[_0x2af6d3[_0x3d6e50(0x887)]?Symbol[_0x3d6e50(0x1d6)]:Symbol['iterator']](),_0x5b3ead=_0x160da4[_0x3d6e50(0x788)]();if(_0x782ec6[_0x3d6e50(0x500)]){if(_0x5b3ead[_0x3d6e50(0x2b0)]){if(!_0x2af6d3[_0x3d6e50(0x887)])throw new Error('Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results');_0x5b3ead[_0x3d6e50(0x2b0)](_0x3546a5=>{const _0x13b4ce=_0x3d6e50;if(_0x3546a5[_0x13b4ce(0x3b5)]())_0x782ec6[_0x13b4ce(0x500)]();},_0x257838=>{const _0x27db0e=_0x3d6e50;this[_0x27db0e(0x77e)]();throw _0x257838;});}else{if(_0x5b3ead[_0x3d6e50(0x3b5)])_0x782ec6[_0x3d6e50(0x500)]();}}}catch(_0x27b75d){this[_0x3d6e50(0x2c5)](_0x27b75d);}else{if(_0x782ec6[_0x3d6e50(0x500)])_0x782ec6[_0x3d6e50(0x500)]();}return _0x5b3ead;}return{'next'(){const _0x1f8120=_0x410ca2;try{let _0x482873=_0x160da4['next']();if(_0x482873[_0x1f8120(0x2b0)]){if(!_0x2af6d3[_0x1f8120(0x887)])throw new Error(_0x1f8120(0x319));return _0x482873['then'](_0x187cff=>{const _0x516dfb=_0x1f8120;if(_0x187cff[_0x516dfb(0x3b5)])return _0x38501f(_0x187cff);return _0x187cff;});}if(_0x482873[_0x1f8120(0x3b5)])return _0x38501f(_0x482873);return _0x482873;}catch(_0x470a0c){this['throw'](_0x470a0c);}},'return'(_0x48ea45){const _0x1faadf=_0x410ca2;if(!this[_0x1faadf(0x3b5)]){_0x3ca1bd[_0x1faadf(0x820)]=_0x48ea45,this[_0x1faadf(0x3b5)]=!![];if(_0x782ec6[_0x1faadf(0x500)])_0x782ec6[_0x1faadf(0x500)]();_0x160da4['return']();}return _0x3ca1bd;},'throw'(_0xb95358){const _0xef1717=_0x410ca2;if(_0x2af6d3['continueOnRecoverableError'])throw _0xb95358;this[_0xef1717(0x77e)]();throw _0xb95358;}};},_0x782ec6;}[_0x1987ae(0x164)](_0x14f8bd){const _0x5e62d5=_0x1987ae;let _0x21686d=new _0x5148f5();return _0x21686d[_0x5e62d5(0x1ab)]=(_0x5e6fae=_0x39cd87)=>{const _0x218555=_0x5e62d5;let _0xc1bc18=this[_0x218555(0x56e)]=this[_0x218555(0x1ab)](_0x5e6fae),_0x8bfd5;return{'next'(_0x43f829){const _0x85affb=_0x218555;try{do{if(_0x8bfd5){let _0x15b7b8;if(_0x43f829)_0x15b7b8=_0x43f829,_0x43f829=undefined;else _0x15b7b8=_0x8bfd5['next']();if(_0x15b7b8[_0x85affb(0x2b0)]){if(!_0x5e6fae[_0x85affb(0x887)])throw new Error(_0x85affb(0x319));return _0x15b7b8[_0x85affb(0x2b0)](_0x26fd06=>this[_0x85affb(0x788)](_0x26fd06));}if(!_0x15b7b8[_0x85affb(0x3b5)])return _0x15b7b8;}let _0xfd1f91;if(_0x43f829!=undefined)_0xfd1f91=_0x43f829,_0x43f829=undefined;else _0xfd1f91=_0xc1bc18[_0x85affb(0x788)]();if(_0xfd1f91[_0x85affb(0x2b0)]){if(!_0x5e6fae[_0x85affb(0x887)])throw new Error(_0x85affb(0x319));return _0x8bfd5=undefined,_0xfd1f91[_0x85affb(0x2b0)](_0x258e48=>this['next'](_0x258e48));}if(_0xfd1f91[_0x85affb(0x3b5)]){if(_0x21686d['onDone'])_0x21686d[_0x85affb(0x500)]();return _0xfd1f91;}try{let _0x23e794=_0x14f8bd(_0xfd1f91[_0x85affb(0x820)]);if(_0x23e794?.[_0x85affb(0x2b0)]){if(!_0x5e6fae[_0x85affb(0x887)])throw new Error('Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results');return _0x23e794[_0x85affb(0x2b0)](_0x50c510=>{const _0x588a95=_0x85affb;return Array[_0x588a95(0x69e)](_0x50c510)||_0x50c510 instanceof _0x5148f5?(_0x8bfd5=_0x50c510[Symbol['iterator']](),this[_0x588a95(0x788)]()):(_0x8bfd5=null,{'value':_0x50c510});},_0x1e3496=>{const _0x533cd3=_0x85affb;if(_0x5e6fae[_0x533cd3(0x555)])_0x1e3496['continueIteration']=!![];this[_0x533cd3(0x2c5)](_0x1e3496);});}if(Array['isArray'](_0x23e794)||_0x23e794 instanceof _0x5148f5)_0x8bfd5=_0x23e794[Symbol[_0x85affb(0x56e)]]();else return _0x8bfd5=null,{'value':_0x23e794};}catch(_0x3ebe1f){if(_0x5e6fae[_0x85affb(0x555)])_0x3ebe1f[_0x85affb(0x1f0)]=!![];throw _0x3ebe1f;}}while(!![]);}catch(_0x3ff06f){this[_0x85affb(0x2c5)](_0x3ff06f);}},'return'(){if(_0x21686d['onDone'])_0x21686d['onDone']();if(_0x8bfd5)_0x8bfd5['return']();return _0xc1bc18['return']();},'throw'(_0x343826){const _0x4e64c4=_0x218555;if(_0x5e6fae['continueOnRecoverableError'])throw _0x343826;if(_0x21686d[_0x4e64c4(0x500)])_0x21686d[_0x4e64c4(0x500)]();if(_0x8bfd5)_0x8bfd5[_0x4e64c4(0x77e)]();this[_0x4e64c4(0x77e)]();throw _0x343826;}};},_0x21686d;}[_0x1987ae(0x5ca)](_0x5b9512,_0x25594f){const _0x490e95=_0x1987ae;let _0x549a68=this[_0x490e95(0x1a7)]((_0x4a0d8a,_0x12a0e2)=>{const _0x2df051=_0x490e95;if(_0x12a0e2<_0x5b9512)return _0x5a05a1;if(_0x12a0e2>=_0x25594f)return _0x461e90[_0x2df051(0x820)]=_0x4a0d8a,_0x461e90;return _0x4a0d8a;});return _0x549a68[_0x490e95(0x3ed)]=(_0x417f91,_0x3310e5)=>{if(_0x3310e5<_0x5b9512)return _0x5a05a1;if(_0x3310e5>=_0x25594f)return _0x461e90;throw _0x417f91;},_0x549a68;}[_0x1987ae(0x3ec)](_0x26dc19){const _0x23e7d1=_0x1987ae;if(typeof _0x26dc19!=='function')throw new TypeError(_0x23e7d1(0x620));let _0x186d46=this[_0x23e7d1(0x1a7)](_0x35a85b=>{return _0x35a85b;}),_0x403497=_0x186d46[_0x23e7d1(0x1ab)];return _0x186d46['iterate']=(_0x38408a=_0x39cd87)=>{return _0x403497({..._0x38408a,'continueOnRecoverableError':!![]});},_0x186d46[_0x23e7d1(0x2c1)]=_0x26dc19,_0x186d46;}[_0x1987ae(0x788)](){const _0x5787e0=_0x1987ae;if(!this[_0x5787e0(0x56e)])this[_0x5787e0(0x56e)]=this[_0x5787e0(0x1ab)]();return this[_0x5787e0(0x56e)][_0x5787e0(0x788)]();}['toJSON'](){const _0x1a8c87=_0x1987ae;if(this[_0x1a8c87(0x45b)]&&this['asArray']['forEach'])return this[_0x1a8c87(0x45b)];const _0x139743=new Error(_0x1a8c87(0x1e8));_0x139743[_0x1a8c87(0x7cd)]=this[_0x1a8c87(0x45b)];throw _0x139743;}get[_0x1987ae(0x45b)](){const _0xb0cc56=_0x1987ae;if(this['_asArray'])return this['_asArray'];let _0xd0cfe4=new Promise((_0x8280ed,_0x143eab)=>{const _0x4cf9dc=_0x3ebb;let _0x29d826=this[_0x4cf9dc(0x1ab)](!![]),_0x3f8762=[],_0x356000=this;Object[_0x4cf9dc(0x79d)](_0x3f8762,'iterable',{'value':_0x356000});function _0x1eeaba(_0x5039f2){const _0x2d9493=_0x4cf9dc;while(_0x5039f2[_0x2d9493(0x3b5)]!==!![]){if(_0x5039f2[_0x2d9493(0x2b0)])return _0x5039f2[_0x2d9493(0x2b0)](_0x1eeaba);else _0x3f8762[_0x2d9493(0x2fb)](_0x5039f2[_0x2d9493(0x820)]);_0x5039f2=_0x29d826[_0x2d9493(0x788)]();}_0x8280ed(_0x356000[_0x2d9493(0x891)]=_0x3f8762);}_0x1eeaba(_0x29d826[_0x4cf9dc(0x788)]());});return _0xd0cfe4[_0xb0cc56(0x1e6)]=this,this[_0xb0cc56(0x891)]||(this[_0xb0cc56(0x891)]=_0xd0cfe4);}[_0x1987ae(0x87a)](){const _0x36fc5d=_0x1987ae;return this[_0x36fc5d(0x45b)];}['at'](_0x2c3ea9){for(let _0x349d85 of this){if(_0x2c3ea9--===0x0)return _0x349d85;}}}return _0x5148f5[_0x1987ae(0x455)][_0x1987ae(0x2fd)]=_0x461e90,dist$1['ExtendedIterable']=_0x5148f5,dist$1['SKIP']=_0x5a05a1,dist$1;}var iterable,hasRequiredIterable;function requireIterable(){const _0xa82641=_0x2ec26e;if(hasRequiredIterable)return iterable;hasRequiredIterable=0x1;const {ExtendedIterable:_0x28c927}=requireDist$1(),_0x5e1aef=Number(process.env.OKDB_NATIVE_RANGE_CHUNK)||0x3e8,_0x194ba2=Math[_0xa82641(0x5a9)](_0x5e1aef,Number(process.env.OKDB_NATIVE_ROW_CHUNK)||0x100),_0x4947ec=new Set(['getRange',_0xa82641(0x2c0),'query','getChanges']),_0xa00acc=Math['min'](_0x194ba2,Number(process.env.OKDB_NATIVE_RANGE_FIRST)||0x1),_0x35064c=0x4,_0x488710=(_0x357318,_0x18d9b9=_0x5e1aef)=>Math['min'](_0x18d9b9,_0x357318*_0x35064c),_0x41dafc={'value':undefined,'done':!![]};function _0xa7d87f(_0x259bb1){const _0x2476a8=_0xa82641,_0x22fa97=new _0x28c927();return _0x22fa97[_0x2476a8(0x1ab)]=()=>{let _0x445b95=0x0;return{'next'(){const _0x12895a=_0x3ebb;return _0x445b95<_0x259bb1[_0x12895a(0x6cf)]?{'value':_0x259bb1[_0x445b95++],'done':![]}:{'value':undefined,'done':!![]};},'return'(){const _0x1bfc7e=_0x3ebb;return _0x445b95=_0x259bb1[_0x1bfc7e(0x6cf)],{'value':undefined,'done':!![]};},'throw'(){const _0x10784d=_0x3ebb;return _0x445b95=_0x259bb1[_0x10784d(0x6cf)],{'value':undefined,'done':!![]};}};},_0x22fa97;}const _0x239bd6=_0x27c4c1=>typeof _0x27c4c1===_0xa82641(0x5c1)&&!Number[_0xa82641(0x7bc)](_0x27c4c1)?Math[_0xa82641(0x3e7)](0x0,Math['ceil'](_0x27c4c1)):Infinity,_0x2c94cb=_0x37cb35=>typeof _0x37cb35===_0xa82641(0x5c1)?Math[_0xa82641(0x3e7)](0x0,Math[_0xa82641(0x47a)](_0x37cb35))||0x0:0x0;function _0x833593(_0x5c37c6,_0x3fed88,_0x109743,_0x124e76={}){const _0x22d4f9=_0xa82641,_0x5b4aa1=new _0x28c927(),_0x570f1e=(_0x124e76[_0x22d4f9(0x70e)]||_0x239bd6)(_0x3fed88[_0x22d4f9(0x695)]),_0x51418e=_0x124e76[_0x22d4f9(0x1bf)]?_0x194ba2:_0x5e1aef,_0x3eefd9=_0x124e76['resumeOpts']||((_0x57e7b0,_0x8832be)=>{const _0x39496c=_0x22d4f9;_0x57e7b0['start']=_0x8832be,_0x57e7b0[_0x39496c(0x7ea)]=!![],delete _0x57e7b0[_0x39496c(0x534)];});let _0xd90516=null;if(_0x124e76[_0x22d4f9(0x44b)]){const _0x4d0cd6={..._0x3fed88,'limit':Math[_0x22d4f9(0x5a9)](_0xa00acc,_0x570f1e)};_0xd90516={'rows':_0x5c37c6(_0x4d0cd6),'limit':_0x4d0cd6[_0x22d4f9(0x695)]};const _0x4aa76e=_0xd90516;queueMicrotask(()=>{const _0x5e9b43=_0x22d4f9;_0x4aa76e[_0x5e9b43(0x1af)]=!![];});}return _0x5b4aa1[_0x22d4f9(0x1ab)]=()=>{const _0x34aff3=_0x22d4f9;let _0x2f8ffc=[],_0x526880=0x0,_0x366eed=0x0,_0x497e05,_0x2bf474=![],_0x3d255b=![],_0x5e63d2=_0xa00acc;if(_0xd90516&&!_0xd90516[_0x34aff3(0x1af)]&&!_0xd90516[_0x34aff3(0x166)]){_0xd90516[_0x34aff3(0x166)]=!![],_0x2f8ffc=_0xd90516[_0x34aff3(0x1bf)],_0x2bf474=!![],_0x5e63d2=_0x488710(_0x5e63d2,_0x51418e);if(_0x2f8ffc['length']<_0xd90516[_0x34aff3(0x695)])_0x3d255b=!![];if(_0x2f8ffc['length'])_0x497e05=_0x109743(_0x2f8ffc[_0x2f8ffc[_0x34aff3(0x6cf)]-0x1]);}const _0x1f7a2e=()=>{const _0x1425eb=_0x34aff3;if(_0x3d255b)return;const _0x2bf847=_0x570f1e-_0x366eed;if(_0x2bf847<=0x0){_0x3d255b=!![],_0x2f8ffc=[];return;}const _0x1f1aa3={..._0x3fed88,'limit':Math[_0x1425eb(0x5a9)](_0x5e63d2,_0x2bf847)};if(_0x2bf474)_0x3eefd9(_0x1f1aa3,_0x497e05);_0x2bf474=!![],_0x5e63d2=_0x488710(_0x5e63d2,_0x51418e),_0x2f8ffc=_0x5c37c6(_0x1f1aa3),_0x526880=0x0;if(_0x2f8ffc[_0x1425eb(0x6cf)]<_0x1f1aa3[_0x1425eb(0x695)])_0x3d255b=!![];if(_0x2f8ffc['length'])_0x497e05=_0x109743(_0x2f8ffc[_0x2f8ffc['length']-0x1]);};return{'next'(){const _0xc30842=_0x34aff3;if(_0x526880>=_0x2f8ffc[_0xc30842(0x6cf)])_0x1f7a2e();if(_0x526880>=_0x2f8ffc[_0xc30842(0x6cf)])return{'value':undefined,'done':!![]};return _0x366eed++,{'value':_0x2f8ffc[_0x526880++],'done':![]};},'return'(){return _0x3d255b=!![],_0x2f8ffc=[],{'value':undefined,'done':!![]};},'throw'(){return _0x3d255b=!![],_0x2f8ffc=[],{'value':undefined,'done':!![]};}};},_0x5b4aa1;}function _0x5d159b(_0x54585c,_0x36f96c,_0xd1cfd0,_0x44f6ea,_0x88b3a8={}){const _0x387f45=_0xa82641,_0x3866bf=(_0x88b3a8[_0x387f45(0x70e)]||_0x239bd6)(_0x44f6ea&&_0x44f6ea[_0x387f45(0x695)]),_0x483493=_0x4947ec[_0x387f45(0x51e)](_0x36f96c)?_0x194ba2:_0x5e1aef,_0xbf9edd=(_0x88b3a8['offsetOf']||_0x2c94cb)(_0x44f6ea&&_0x44f6ea['offset']),_0x4f460d=(_0x570169,_0x3f34e2,_0x45243a)=>{const _0xbd39b8=_0x387f45,_0x172db8=_0x3866bf-_0x3f34e2,_0x3378f4=Math[_0xbd39b8(0x5a9)](_0x45243a,_0x172db8),_0xc5e71={'limit':_0x3378f4,'offset':_0xbf9edd+_0x3f34e2},_0x3c0a03=_0x54585c(_0xbd39b8(0x2dd),[_0x570169,_0x36f96c,_0x3378f4===_0x172db8?Infinity:_0x3378f4,..._0xd1cfd0(_0xc5e71)]);if(_0x3c0a03[0x0]===-0x1){const _0x29e8c1={'offset':_0xbf9edd+_0x3f34e2};if(_0x172db8!==Infinity)_0x29e8c1[_0xbd39b8(0x695)]=_0x172db8;return{'pin':0x0,'rows':_0x54585c(_0x36f96c,_0xd1cfd0(_0x29e8c1)),'raw':Infinity,'eager':!![]};}return{'pin':_0x3c0a03[0x0],'rows':_0x3c0a03[0x1],'raw':_0x3c0a03[0x2]};},_0x1b93c7=_0x54057c=>{if(_0x54057c)_0x54585c('unpin',[_0x54057c]);};function _0x5d0035(_0x5e7c96,_0x34518a,_0x12e61a){const _0x194fd2=_0x387f45;let _0x4e3e0f=0x0,_0x395ed0=[],_0x117084=0x0,_0x17e155=_0x5e7c96,_0x47f84f=_0xa00acc,_0x4d87dc=_0x3866bf-_0x5e7c96<=0x0;if(_0x12e61a)({buf:_0x395ed0,pos:_0x117084,consumed:_0x17e155,size:_0x47f84f,exhausted:_0x4d87dc}=_0x12e61a);const _0x1bb616=_0x4e8c09=>{const _0x53e374=_0x3ebb;_0x4e3e0f=_0x4e8c09[_0x53e374(0x7a7)],_0x395ed0=_0x4e8c09[_0x53e374(0x1bf)],_0x117084=0x0,_0x17e155+=_0x4e8c09[_0x53e374(0x540)],_0x47f84f=_0x488710(_0x47f84f,_0x483493);if(!_0x4e3e0f)_0x4d87dc=!![];};if(_0x34518a)_0x1bb616(_0x34518a);const _0x57a5cf=()=>{const _0x328b57=_0x4e3e0f;_0x4e3e0f=0x0,_0x1b93c7(_0x328b57);},_0x5e0bb6={'next'(){const _0x3fde35=_0x3ebb;while(_0x117084>=_0x395ed0[_0x3fde35(0x6cf)]){if(_0x4d87dc||_0x3866bf-_0x17e155<=0x0)return _0x4d87dc=!![],_0x57a5cf(),_0x41dafc;try{_0x1bb616(_0x4f460d(_0x4e3e0f,_0x17e155,_0x47f84f));}catch(_0x1454bc){_0x4e3e0f=0x0,_0x4d87dc=!![],_0x395ed0=[];throw _0x1454bc;}}return{'value':_0x395ed0[_0x117084++],'done':![]};},'return'(){return _0x57a5cf(),_0x41dafc;},'throw'(){return _0x57a5cf(),_0x41dafc;},'resumed'(){return _0x5d0035(0x0,null,{'buf':_0x395ed0,'pos':_0x117084,'consumed':_0x17e155,'size':_0x47f84f,'exhausted':_0x4d87dc});},[Symbol[_0x194fd2(0x56e)]](){return this;}};return _0x5e0bb6;}function _0xf7421b(){if(_0x3866bf<=0x0)return null;const _0x50df45=_0x4f460d(0x0,0x0,_0xa00acc);return queueMicrotask(()=>{const _0x5d19ec=_0x3ebb;!_0x50df45['taken']&&(_0x50df45[_0x5d19ec(0x1af)]=!![],_0x1b93c7(_0x50df45[_0x5d19ec(0x7a7)]));}),_0x50df45;}return{'source':_0x5d0035,'prefetch':_0xf7421b};}function _0x2a43b8(_0x4a2f13){const _0x5a0a68=_0xa82641;if(!_0x4a2f13||_0x4a2f13[_0x5a0a68(0x166)]||_0x4a2f13[_0x5a0a68(0x1af)])return null;return _0x4a2f13[_0x5a0a68(0x166)]=!![],_0x4a2f13;}return iterable={'fromArray':_0xa7d87f,'chunkedRange':_0x833593,'pinnedChunks':_0x5d159b,'claimPrefetch':_0x2a43b8,'lmdbLimit':_0x239bd6,'lmdbOffset':_0x2c94cb,'CHUNK':_0x5e1aef,'ROW_CHUNK':_0x194ba2,'FIRST':_0xa00acc},iterable;}var rawdb,hasRequiredRawdb;function requireRawdb(){const _0x35423b=_0x2ec26e;if(hasRequiredRawdb)return rawdb;hasRequiredRawdb=0x1;const {fromArray:_0x18c071}=requireIterable();class _0x1e0359{constructor(_0x4f71b5,_0x1dff7d='',_0x86d33f={},_0x3f248b=null){const _0x2ba8a2=_0x3ebb;this['_env']=_0x4f71b5,this[_0x2ba8a2(0x6fe)]=_0x1dff7d,this['dupSort']=!!(_0x86d33f&&_0x86d33f[_0x2ba8a2(0x691)]),this['useVersions']=!!(_0x86d33f&&_0x86d33f[_0x2ba8a2(0x1f9)]),this[_0x2ba8a2(0x231)]=_0x3f248b||this,this[_0x2ba8a2(0x7c7)]=null;}get[_0x35423b(0x1a4)](){const _0x3b75bc=_0x35423b;return this[_0x3b75bc(0x691)]?!![]:this['useVersions']?'v':![];}['_n'](_0x255745,_0x43e615){const _0x502d04=_0x35423b;return this[_0x502d04(0x51f)][_0x502d04(0x21e)][_0x502d04(0x49e)](_0x502d04(0x540),this['_env'][_0x502d04(0x6fe)],_0x255745,[this['name'],this[_0x502d04(0x1a4)],..._0x43e615],!![]);}['_read'](_0x157456,_0x444263){const _0x541e6f=_0x35423b;return this[_0x541e6f(0x51f)][_0x541e6f(0x21e)][_0x541e6f(0x49e)](_0x541e6f(0x540),this['_env'][_0x541e6f(0x6fe)],_0x157456,[this[_0x541e6f(0x6fe)],this[_0x541e6f(0x1a4)],..._0x444263],![]);}['_write'](_0x119722){const _0x1f1644=_0x35423b,_0x2b220a=this[_0x1f1644(0x51f)][_0x1f1644(0x7bb)];if(_0x2b220a)_0x2b220a[_0x1f1644(0x2fb)]({'sub':this[_0x1f1644(0x6fe)],'dup':this[_0x1f1644(0x1a4)],..._0x119722});else this['_env'][_0x1f1644(0x21e)][_0x1f1644(0x49e)](_0x1f1644(0x540),this[_0x1f1644(0x51f)][_0x1f1644(0x6fe)],_0x1f1644(0x26f),[[{'sub':this[_0x1f1644(0x6fe)],'dup':this[_0x1f1644(0x1a4)],..._0x119722}]],!![]);}['get'](_0x205e08){const _0x14f1ef=_0x35423b;return this['_read'](_0x14f1ef(0x63c),[_0x205e08]);}['getEntry'](_0x1b66b7){const _0x1b8953=_0x35423b;if(this['useVersions'])return this[_0x1b8953(0x3f7)](_0x1b8953(0x2ec),[_0x1b66b7]);const _0x3071ca=this[_0x1b8953(0x63c)](_0x1b66b7);return _0x3071ca===undefined?undefined:{'value':_0x3071ca};}['doesExist'](_0x4b5545){const _0x1868f4=_0x35423b;return this[_0x1868f4(0x3f7)](_0x1868f4(0x3bf),[_0x4b5545]);}[_0x35423b(0x4a2)](_0x5bc229){return this['get'](_0x5bc229);}[_0x35423b(0x3fa)](_0x333817={}){const _0x4bb7cc=_0x35423b,_0xbf0348=this[_0x4bb7cc(0x3f7)]('getRange',[_0x333817]),_0x134628=_0x333817[_0x4bb7cc(0x89c)]===![],_0x1140dd=_0x333817[_0x4bb7cc(0x1d5)]===![];return _0x18c071(_0xbf0348[_0x4bb7cc(0x1a7)](([_0x3ede5f,_0x16c185,_0x5f49ba])=>{if(_0x134628)return _0x3ede5f;if(_0x1140dd)return _0x16c185;return _0x5f49ba===undefined?{'key':_0x3ede5f,'value':_0x16c185}:{'key':_0x3ede5f,'value':_0x16c185,'version':_0x5f49ba};}));}[_0x35423b(0x7d2)](_0x29b295={}){const _0x22cee0=_0x35423b;return _0x18c071(this[_0x22cee0(0x3f7)](_0x22cee0(0x3fa),[_0x29b295])[_0x22cee0(0x1a7)](([_0x2afc7b])=>_0x2afc7b));}['getValues'](_0x3343ab,_0x4381d6={}){const _0x53a8fa=_0x35423b,_0x1e58b9=this[_0x53a8fa(0x3f7)]('getRange',[{..._0x4381d6,'start':_0x3343ab,'end':_0x3343ab,'inclusiveEnd':!![]}]);return _0x18c071(_0x1e58b9[_0x53a8fa(0x1a7)](([,_0x1a0e10])=>_0x1a0e10));}['getCount'](_0x374f3a={}){const _0x4ef855=_0x35423b;return this['_read'](_0x4ef855(0x3c2),[_0x374f3a]);}[_0x35423b(0x7fd)](){const _0x5aa917=_0x35423b;return{'entryCount':this[_0x5aa917(0x436)]()};}['put'](_0x276ef4,_0x2adbd2,_0xbf4116){const _0xb35d03=_0x35423b;return this[_0xb35d03(0x75c)]({'op':_0xb35d03(0x27f),'key':_0x276ef4,'value':_0x2adbd2,'version':_0xbf4116}),Promise['resolve'](!![]);}[_0x35423b(0x225)](_0x5c0275,_0x25b8d1,_0x12f181){const _0x55e1b0=_0x35423b;return this[_0x55e1b0(0x75c)]({'op':_0x55e1b0(0x27f),'key':_0x5c0275,'value':_0x25b8d1,'version':_0x12f181}),!![];}[_0x35423b(0x42f)](_0x26ef76,_0x696c07){const _0x3aaee8=_0x35423b;return this[_0x3aaee8(0x75c)]({'op':'remove','key':_0x26ef76,'value':_0x696c07}),Promise[_0x3aaee8(0x7a9)](!![]);}[_0x35423b(0x76e)](_0x34cb12,_0x2aebb2){const _0x75b941=_0x35423b;return this[_0x75b941(0x75c)]({'op':_0x75b941(0x42f),'key':_0x34cb12,'value':_0x2aebb2}),!![];}[_0x35423b(0x1f7)](){const _0x3c0772=_0x35423b;this[_0x3c0772(0x75c)]({'op':_0x3c0772(0x871)});}[_0x35423b(0x660)](){const _0xc20b57=_0x35423b;return this[_0xc20b57(0x75c)]({'op':_0xc20b57(0x871)}),Promise['resolve']();}[_0x35423b(0x303)](){const _0x4e10e0=_0x35423b;this[_0x4e10e0(0x1f7)]();}[_0x35423b(0x840)](_0x4877fc,_0x34129e={}){const _0x836566=_0x35423b,_0xa1eeb6=typeof _0x4877fc==='object'?_0x4877fc:_0x34129e,_0x105db4=typeof _0x4877fc===_0x836566(0x1be)?_0x4877fc[_0x836566(0x6fe)]:_0x4877fc,_0x17b910=new _0x1e0359(this[_0x836566(0x51f)],_0x105db4,_0xa1eeb6);return _0x17b910[_0x836566(0x75c)]({'op':_0x836566(0x766)}),_0x17b910;}[_0x35423b(0x5a1)](){}['transactionSync'](_0x9dd73c){const _0x544d94=_0x35423b;return this[_0x544d94(0x24d)](_0x9dd73c);}async[_0x35423b(0x7f7)](_0x34359d){return this['_tx'](_0x34359d);}[_0x35423b(0x55d)](_0x10eab1){const _0x5ba257=_0x35423b;return this[_0x5ba257(0x24d)](_0x10eab1);}['_tx'](_0x154c11){const _0x5522cc=_0x35423b,_0x21c445=this['_env'];if(_0x21c445[_0x5522cc(0x7bb)])return _0x154c11();_0x21c445[_0x5522cc(0x7bb)]=[];let _0x5cf05d;try{_0x5cf05d=_0x154c11();}catch(_0x3d9e83){_0x21c445[_0x5522cc(0x7bb)]=null;throw _0x3d9e83;}const _0x3dca63=_0x21c445[_0x5522cc(0x7bb)];_0x21c445[_0x5522cc(0x7bb)]=null;if(_0x3dca63['length'])_0x21c445[_0x5522cc(0x21e)][_0x5522cc(0x49e)](_0x5522cc(0x540),_0x21c445[_0x5522cc(0x6fe)],_0x5522cc(0x26f),[_0x3dca63],!![]);return _0x5cf05d;}[_0x35423b(0x271)](){return{'done'(){}};}[_0x35423b(0x173)](){}}return rawdb={'RawDb':_0x1e0359},rawdb;}var views,hasRequiredViews;function requireViews(){const _0x5b9bac=_0x2ec26e;if(hasRequiredViews)return views;hasRequiredViews=0x1;const {RawDb:_0x122f6f}=requireRawdb();class _0x479a26{constructor(_0x4a8caf){const _0x41480e=_0x3ebb;this[_0x41480e(0x30b)]=_0x4a8caf,this['_n']=(_0x3ef18f,_0x187cc6,_0xf0ec03=!![])=>_0x4a8caf[_0x41480e(0x21e)][_0x41480e(0x49e)](_0x41480e(0x62a),_0x4a8caf[_0x41480e(0x6fe)],_0x3ef18f,_0x187cc6,_0xf0ec03);}get[_0x5b9bac(0x7f0)](){const _0x54f673=_0x5b9bac,_0x1426a8=this,_0x2e97e1=this[_0x54f673(0x30b)],_0x35a1ab=_0x37aa02=>_0x37aa02?new _0x122f6f(_0x2e97e1,_0x37aa02[_0x54f673(0x6fe)],{'dupSort':_0x37aa02[_0x54f673(0x876)]}):undefined,_0x2a815d=_0x450fce=>{const _0x50d0df=_0x54f673,_0x102376=_0x1426a8['_n'](_0x50d0df(0x742),[_0x450fce],![]);if(!_0x102376)return undefined;const _0x249df1=_0x102376[_0x50d0df(0x4d1)],_0x13ec90=new Map(Object[_0x50d0df(0x72a)](_0x249df1[_0x50d0df(0x4d3)])),_0x4a119a=new Map(Object['entries'](_0x102376[_0x50d0df(0x368)])[_0x50d0df(0x1a7)](([_0x5d2661,_0x59409d])=>[_0x5d2661,_0x35a1ab(_0x59409d)]));return{'name':_0x450fce,'compiled':{'T':_0x249df1['T'],'reducers':_0x249df1[_0x50d0df(0x412)],'refs':_0x13ec90,'granId':_0x249df1[_0x50d0df(0x6a9)],'type':_0x249df1[_0x50d0df(0x673)],'_nidFor':_0x4df682=>_0x1426a8['_n'](_0x50d0df(0x64a),[_0x450fce,_0x4df682],![])},'viewDb':_0x35a1ab(_0x102376[_0x50d0df(0x318)][_0x50d0df(0x320)]),'metaDb':_0x35a1ab(_0x102376['dbs'][_0x50d0df(0x3e3)]),'itemsDb':_0x35a1ab(_0x102376[_0x50d0df(0x318)][_0x50d0df(0x51b)]),'bucketsDb':_0x35a1ab(_0x102376[_0x50d0df(0x318)][_0x50d0df(0x262)]),'sortedDb':_0x35a1ab(_0x102376[_0x50d0df(0x318)][_0x50d0df(0x510)]),'groupsDb':_0x35a1ab(_0x102376[_0x50d0df(0x318)][_0x50d0df(0x78a)]),'prevDb':_0x35a1ab(_0x102376[_0x50d0df(0x318)]['prevDb']),'refItemsDbs':_0x4a119a,'refTrackingDbs':new Map(Object[_0x50d0df(0x72a)](_0x102376['refTrackingDbs']||{})[_0x50d0df(0x1a7)](([_0x1cab2d,_0x32c320])=>[_0x1cab2d,_0x35a1ab(_0x32c320)])),'stopFn':_0x102376['hasStopFn']?async()=>_0x1426a8['_n'](_0x50d0df(0x6d3),[_0x450fce]):null,'bootstrapWorker':null};};return{'get':_0x482eed=>_0x2a815d(_0x482eed),'has':_0x166159=>_0x1426a8['_n'](_0x54f673(0x879),[],![])[_0x54f673(0x1ac)](_0x166159),'keys':()=>_0x1426a8['_n'](_0x54f673(0x879),[],![])[Symbol[_0x54f673(0x56e)]](),get 'size'(){return _0x1426a8['_n']('stateNames',[],![])['length'];},[Symbol[_0x54f673(0x56e)]]:()=>_0x1426a8['_n'](_0x54f673(0x879),[],![])[_0x54f673(0x1a7)](_0x430226=>[_0x430226,_0x2a815d(_0x430226)])[Symbol[_0x54f673(0x56e)]]()};}get[_0x5b9bac(0x4c0)](){const _0x478be2=_0x5b9bac,_0x4ef5e7=this;return{'has':_0x15fcc9=>_0x4ef5e7['_n'](_0x478be2(0x83b),[],![])[_0x478be2(0x1ac)](_0x15fcc9),get 'size'(){const _0x30535a=_0x478be2;return _0x4ef5e7['_n'](_0x30535a(0x83b),[],![])[_0x30535a(0x6cf)];},'keys':()=>_0x4ef5e7['_n']('customReducerNames',[],![])[Symbol[_0x478be2(0x56e)]]()};}async[_0x5b9bac(0x522)](){const _0x38b7ee=_0x5b9bac;return this['_n'](_0x38b7ee(0x522),[]);}async[_0x5b9bac(0x696)](_0x253c9e={}){const _0x2eaf70=_0x5b9bac;return this['_n'](_0x2eaf70(0x696),[_0x253c9e]);}async[_0x5b9bac(0x740)](_0x288426,_0x173584){const _0x29cf72=_0x5b9bac;return this['_n'](_0x29cf72(0x740),[_0x288426,_0x173584]),{'name':_0x288426};}['get'](_0x5332cb,_0x36465d={}){const _0x49038b=_0x5b9bac,_0x2de072=this['_n'](_0x49038b(0x63c),[_0x5332cb,{'preview':_0x36465d?.[_0x49038b(0x84c)]??{}}],![]);if(_0x2de072==null)return null;const _0x409252=this['_n'](_0x49038b(0x309),[_0x5332cb],![]);if(!_0x409252)return _0x2de072;const _0x3c9fe9=_0x1ea6eb=>(_0x548e24={})=>this['_n'](_0x49038b(0x4a5),[_0x5332cb,_0x1ea6eb,_0x548e24],![]);if(_0x409252[_0x49038b(0x4e3)]){_0x2de072['items']=_0x3c9fe9({'kind':_0x49038b(0x4e3)});for(const _0x4bbe69 of _0x409252['reducers']){if(!_0x4bbe69['items'])continue;if(_0x4bbe69['grouped']){const _0x3833dc=_0x2de072[_0x4bbe69[_0x49038b(0x6fe)]];if(_0x3833dc?.[_0x49038b(0x84c)]&&Array[_0x49038b(0x69e)](_0x3833dc[_0x49038b(0x84c)])){for(const _0x2d1f95 of _0x3833dc['preview'])_0x2d1f95[_0x49038b(0x4a5)]=_0x3c9fe9({'kind':'group','reducer':_0x4bbe69[_0x49038b(0x6fe)],'key':_0x2d1f95[_0x49038b(0x366)]});}}else _0x2de072[_0x4bbe69[_0x49038b(0x6fe)]]&&(_0x2de072[_0x4bbe69[_0x49038b(0x6fe)]][_0x49038b(0x4a5)]=_0x3c9fe9({'kind':_0x49038b(0x2c2),'reducer':_0x4bbe69[_0x49038b(0x6fe)]}));}}for(const _0x5b078a of _0x409252[_0x49038b(0x4d3)]){if(!_0x5b078a[_0x49038b(0x4e3)])continue;const _0x345b24=_0x2de072[_0x5b078a['name']];if(!_0x345b24||typeof _0x345b24!=='object')continue;_0x345b24[_0x49038b(0x4a5)]=_0x3c9fe9({'kind':'view','ref':_0x5b078a[_0x49038b(0x6fe)]});for(const _0xa69530 of _0x5b078a['reducers']){if(!_0xa69530['items'])continue;if(_0xa69530['grouped']){const _0x30dc98=_0x345b24[_0xa69530[_0x49038b(0x6fe)]];if(_0x30dc98?.[_0x49038b(0x84c)]&&Array[_0x49038b(0x69e)](_0x30dc98[_0x49038b(0x84c)])){for(const _0xa3cddc of _0x30dc98[_0x49038b(0x84c)])_0xa3cddc[_0x49038b(0x4a5)]=_0x3c9fe9({'kind':_0x49038b(0x6ba),'ref':_0x5b078a[_0x49038b(0x6fe)],'reducer':_0xa69530[_0x49038b(0x6fe)],'key':_0xa3cddc[_0x49038b(0x366)]});}}else _0x345b24[_0xa69530[_0x49038b(0x6fe)]]&&(_0x345b24[_0xa69530[_0x49038b(0x6fe)]][_0x49038b(0x4a5)]=_0x3c9fe9({'kind':_0x49038b(0x2c2),'ref':_0x5b078a[_0x49038b(0x6fe)],'reducer':_0xa69530[_0x49038b(0x6fe)]}));}}return _0x2de072;}[_0x5b9bac(0x466)](_0x397dcf){const _0x4bcbfd=_0x5b9bac;return this['_n'](_0x4bcbfd(0x466),[_0x397dcf],![]);}['itemsGroups'](_0x308463,_0xb1b997={}){const _0x35d4a8=_0x5b9bac;return this['_n'](_0x35d4a8(0x547),[_0x308463,_0xb1b997],![]);}[_0x5b9bac(0x380)](_0x5cc720,_0x3e886a={}){const _0x592366=_0x5b9bac;return this['_n'](_0x592366(0x380),[_0x5cc720,_0x3e886a],![]);}[_0x5b9bac(0x459)](_0x42a1f1,_0x417e3e={}){const _0x26c056=_0x5b9bac;return this['_n'](_0x26c056(0x459),[_0x42a1f1,_0x417e3e],![]);}async['list'](){const _0x163a83=_0x5b9bac;return this['_n'](_0x163a83(0x338),[],![]);}async[_0x5b9bac(0x261)](_0x253757){const _0x274a16=_0x5b9bac;return this['_n'](_0x274a16(0x261),[_0x253757],![])??null;}async['remove'](_0x41e972,_0x1f6981={}){const _0x565fb0=_0x5b9bac;return this['_n'](_0x565fb0(0x42f),[_0x41e972,_0x1f6981]);}async['stop'](_0x2be049){return this['_n']('stop',[_0x2be049]);}async[_0x5b9bac(0x898)](_0x1bdf00){const _0x1b4bc4=_0x5b9bac;return this['_n'](_0x1b4bc4(0x898),[_0x1bdf00]);}async['rebuild'](_0x887f4e){const _0xe4908=_0x5b9bac;return this['_n'](_0xe4908(0x574),[_0x887f4e]);}async[_0x5b9bac(0x3aa)](_0x3cf988){return this['_n']('resetView',[_0x3cf988]);}[_0x5b9bac(0x542)](_0x3bbf38,_0x5174c9={}){const _0x376c40=_0x5b9bac;return this['_n'](_0x376c40(0x542),[_0x3bbf38,{'apply':_0x5174c9&&_0x5174c9[_0x376c40(0x2a0)]}]);}}return views={'OKDBViews':_0x479a26},views;}var queue,hasRequiredQueue;function requireQueue(){const _0x5f167b=_0x2ec26e;if(hasRequiredQueue)return queue;hasRequiredQueue=0x1;const {OKDBError:_0x456343}=requireErrors(),_0x3bdc0e=requireBridge();class _0x165e3b{constructor(_0x10e7cb){const _0x5b5101=_0x3ebb;this[_0x5b5101(0x30b)]=_0x10e7cb,this['okdb']=_0x10e7cb['okdb'],this['log']=_0x10e7cb[_0x5b5101(0x21e)]['log'][_0x5b5101(0x675)]({'feature':'queue'}),this['_workers']=new Set();}['_n'](_0x293991,_0x235525,_0x237794=!![]){const _0x280399=_0x3ebb;return this[_0x280399(0x21e)][_0x280399(0x49e)](_0x280399(0x601),this[_0x280399(0x30b)][_0x280399(0x6fe)],_0x293991,_0x235525,_0x237794);}['_w'](_0xcb0b46,_0x4df2b1){const _0x460825=_0x3ebb;return this[_0x460825(0x21e)][_0x460825(0x55c)](this['_n'](_0xcb0b46,_0x4df2b1));}async['_ensure'](){const _0x18d665=_0x3ebb;return this['_n'](_0x18d665(0x766),[]);}async['list'](_0x4507a8={}){const _0x389845=_0x3ebb;return this['_n'](_0x389845(0x338),[_0x4507a8],![]);}get[_0x5f167b(0x3ae)](){const _0x5d1f3a=_0x5f167b,{RawDb:_0x4f7d63}=requireRawdb();return this[_0x5d1f3a(0x6d1)]||(this['__logsDb']=new _0x4f7d63(this[_0x5d1f3a(0x30b)],_0x5d1f3a(0x736)));}async['_sweepOrphanLogs'](){const _0xdffc7d=_0x5f167b;return this['_w'](_0xdffc7d(0x3cd),[]);}async[_0x5f167b(0x414)](_0xe8b47d,_0x409d3d,_0x248785={}){const _0xa03f36=_0x5f167b,{txn:_0x209350,..._0x62be91}=_0x248785||{};if(_0x209350)return this[_0xa03f36(0x6eb)](_0x209350,_0xe8b47d,_0x409d3d,_0x62be91);const _0x559261=this[_0xa03f36(0x21e)][_0xa03f36(0x53b)];if(_0x559261&&_0x559261['queue'][_0xa03f36(0x6cf)])_0x559261[_0xa03f36(0x2cd)]();const _0x7b1b67=this['_n']('enqueueClaim',[_0xe8b47d,_0x409d3d,_0x62be91],![]);return this[_0xa03f36(0x21e)]['_settleWrite'](_0x7b1b67['id'])[_0xa03f36(0x2b0)](_0x564b94=>{const _0x32b037=_0xa03f36;if(_0x7b1b67[_0x32b037(0x657)])this[_0x32b037(0x24a)](_0xe8b47d);else try{this[_0x32b037(0x21e)][_0x32b037(0x5bc)]['wake']();}catch{}return _0x564b94;});}[_0x5f167b(0x24a)](_0x33700f){queueMicrotask(()=>{const _0x3b1cc5=_0x3ebb;try{this['_n'](_0x3b1cc5(0x32a),[_0x33700f]);}catch{}});}[_0x5f167b(0x6eb)](_0x21cc64,_0x3fbd77,_0x1eab7a,_0x5bcf68){const _0x4a62cf=_0x5f167b,_0x43bee5=_0x21cc64[_0x4a62cf(0x540)]??_0x21cc64;if(_0x43bee5[_0x4a62cf(0x208)])throw new _0x456343(_0x4a62cf(0x527),_0x4a62cf(0x1f6));if(_0x43bee5[_0x4a62cf(0x21e)]&&_0x43bee5[_0x4a62cf(0x21e)]!==this[_0x4a62cf(0x30b)]&&_0x43bee5[_0x4a62cf(0x21e)][_0x4a62cf(0x6fe)]!==this[_0x4a62cf(0x30b)][_0x4a62cf(0x6fe)])throw new _0x456343(_0x4a62cf(0x287),_0x4a62cf(0x878),{'txnEnv':_0x43bee5[_0x4a62cf(0x21e)]['name'],'queueEnv':this['env'][_0x4a62cf(0x6fe)]});const _0x1d33e1=this['_n'](_0x4a62cf(0x76b),[_0x3fbd77,_0x1eab7a,_0x5bcf68],![]);if(_0x1d33e1[_0x4a62cf(0x5f4)])return _0x1d33e1['id'];if(_0x1d33e1[_0x4a62cf(0x70c)])_0x21cc64['update'](_0x4a62cf(0x425),_0x1d33e1[_0x4a62cf(0x70c)]['key'],_0x1d33e1[_0x4a62cf(0x70c)]['value'],{'ifVersion':_0x1d33e1[_0x4a62cf(0x70c)][_0x4a62cf(0x280)]});if(_0x1eab7a!==undefined)_0x21cc64['put'](_0x4a62cf(0x345),_0x1d33e1['id'],_0x1eab7a);_0x21cc64[_0x4a62cf(0x27f)](_0x4a62cf(0x425),_0x1d33e1['id'],_0x1d33e1[_0x4a62cf(0x5cd)]);if(typeof _0x43bee5['onDo']===_0x4a62cf(0x6d8))_0x43bee5[_0x4a62cf(0x576)](()=>{const _0x2858a6=_0x4a62cf;if(this['_n'](_0x2858a6(0x551),[_0x1d33e1['id'],_0x3fbd77,_0x1d33e1[_0x2858a6(0x80b)],_0x1d33e1[_0x2858a6(0x689)]]))this[_0x2858a6(0x24a)](_0x3fbd77);});return _0x1d33e1['id'];}async['claim'](_0x15b363,_0x26f837={}){const _0x4e4e98=_0x5f167b;if(typeof _0x15b363!==_0x4e4e98(0x4bb)||!_0x15b363)throw new _0x456343(_0x4e4e98(0x23c),_0x4e4e98(0x694));return this['_w'](_0x4e4e98(0x27a),[_0x15b363,_0x26f837]);}async[_0x5f167b(0x385)](_0x52d253,_0x31ee4e,_0x211b43=null){return this['_w']('markJobHeartbeat',[_0x52d253,_0x31ee4e,_0x211b43]);}async[_0x5f167b(0x2de)](_0x2c7791,_0x5aae67,_0x390259=null){const _0x24111d=_0x5f167b;return this[_0x24111d(0x385)](_0x2c7791,_0x5aae67,_0x390259);}async[_0x5f167b(0x21d)](_0x308503,_0x350597,_0x4ca53c){const _0x2c487c=_0x5f167b;return this['_w'](_0x2c487c(0x21d),[_0x308503,_0x350597,_0x4ca53c]);}async[_0x5f167b(0x1e1)](_0x193a7f,_0x2383e4,_0x53072a){const _0x130439=_0x5f167b;return this['_w'](_0x130439(0x1e1),[_0x193a7f,_0x2383e4,_0x53072a]);}async[_0x5f167b(0x684)](_0x3cfb38,_0x36766c,_0x535e0e){const _0x54dfce=_0x5f167b;return this[_0x54dfce(0x1e1)](_0x3cfb38,_0x36766c,_0x535e0e);}async[_0x5f167b(0x83c)](_0x5889f8,_0x182fd2,_0x36754a,_0x8717dd){const _0x24c594=_0x5f167b,_0x325636=_0x36754a instanceof Error?{'message':_0x36754a[_0x24c594(0x2d2)],'stack':_0x36754a[_0x24c594(0x3fd)]}:_0x36754a;return this['_w'](_0x24c594(0x83c),[_0x5889f8,_0x182fd2,_0x325636,_0x8717dd]);}async[_0x5f167b(0x61b)](_0x286df9,_0x4a512b,_0xcb100d,_0x18695f){const _0x48955d=_0x5f167b;return this[_0x48955d(0x83c)](_0x286df9,_0x4a512b,_0xcb100d,_0x18695f);}async['releaseClaim'](_0x31c027,_0x4e2d70,_0x456eaa={}){const _0x519955=_0x5f167b;return this['_w'](_0x519955(0x509),[_0x31c027,_0x4e2d70,_0x456eaa]);}async[_0x5f167b(0x64d)](_0x4e566b){const _0xf3e14f=_0x5f167b;return this['_n'](_0xf3e14f(0x64d),[_0x4e566b],![]);}async[_0x5f167b(0x5ea)](_0xe5adf0,_0x79e811={},_0x508992={}){const _0x5ad4e6=_0x5f167b,_0x283a38=_0x508992&&_0x508992[_0x5ad4e6(0x27c)];if(!_0x283a38)return this['_w'](_0x5ad4e6(0x5ea),[_0xe5adf0,_0x79e811]);const {next:_0x3072b1,version:_0x1af718}=this['_n'](_0x5ad4e6(0x362),[_0xe5adf0,_0x79e811],![]);_0x283a38['update'](_0x5ad4e6(0x425),_0xe5adf0,_0x3072b1,{'ifVersion':_0x1af718});let _0x4cac8b;if(_0x5ad4e6(0x3f6)in _0x79e811){if(_0x79e811['payload']===undefined){if(this[_0x5ad4e6(0x30b)][_0x5ad4e6(0x2ec)]('~queue_payloads',_0xe5adf0))_0x283a38['remove']('~queue_payloads',_0xe5adf0);}else _0x283a38[_0x5ad4e6(0x27f)](_0x5ad4e6(0x345),_0xe5adf0,_0x79e811['payload']);_0x4cac8b=_0x79e811[_0x5ad4e6(0x3f6)];}else _0x4cac8b=this[_0x5ad4e6(0x30b)][_0x5ad4e6(0x63c)]('~queue_payloads',_0xe5adf0);return{..._0x3072b1,'payload':_0x4cac8b};}async[_0x5f167b(0x55e)](_0x2e04fd,_0x3eaf6d={}){const _0xae12f=_0x5f167b,_0x25caf9=_0x3eaf6d&&_0x3eaf6d[_0xae12f(0x27c)];if(!_0x25caf9)return this['_w'](_0xae12f(0x55e),[_0x2e04fd]);if(!_0x2e04fd)throw new _0x456343(_0xae12f(0x17c),_0xae12f(0x694));if(!this[_0xae12f(0x30b)][_0xae12f(0x2ec)](_0xae12f(0x425),_0x2e04fd))return![];_0x25caf9[_0xae12f(0x42f)]('~queue_jobs',_0x2e04fd);if(this[_0xae12f(0x30b)][_0xae12f(0x2ec)](_0xae12f(0x345),_0x2e04fd))_0x25caf9[_0xae12f(0x42f)](_0xae12f(0x345),_0x2e04fd);if(typeof _0x25caf9[_0xae12f(0x576)]===_0xae12f(0x6d8))_0x25caf9['onDo'](()=>this['_n'](_0xae12f(0x2d3),[_0x2e04fd]));return!![];}async['cancelJob'](_0x303982){const _0x303d53=_0x5f167b;return this['_w'](_0x303d53(0x51a),[_0x303982]);}async[_0x5f167b(0x836)](_0x2257b6){const _0x2bdb08=_0x5f167b;return this['_w'](_0x2bdb08(0x836),[_0x2257b6]);}async['_clearChunked'](_0xa8c34d,_0x5e7149,_0x67899e){const _0x234528=_0x5f167b,_0x598d34=this['_n'](_0x234528(0x46d),[_0x5e7149??null,_0x67899e??0x0,_0xa8c34d]),_0x335115=0x1f4;for(let _0x5ca9dc=0x0;_0x5ca9dc<_0x598d34['length'];_0x5ca9dc+=_0x335115){this['_n']('bulkRemoveChunk',[_0x598d34[_0x234528(0x5ca)](_0x5ca9dc,_0x5ca9dc+_0x335115),_0x5ca9dc,_0x598d34['length'],_0x5e7149??null]);if(_0x5ca9dc+_0x335115<_0x598d34['length'])await new Promise(_0x397e67=>setImmediate(_0x397e67));}return this['_n'](_0x234528(0x3b3),[_0x598d34[_0x234528(0x6cf)],_0x5e7149??null]),await new Promise(_0xb3593b=>setImmediate(_0xb3593b)),_0x598d34['length'];}async[_0x5f167b(0x699)](_0x178a25,_0x4a322d){return this['_clearChunked']('done',_0x178a25,_0x4a322d);}async['clearFailed'](_0x5ca29e,_0x832783){const _0x27acfc=_0x5f167b;return this['_clearChunked'](_0x27acfc(0x719),_0x5ca29e,_0x832783);}async['retryFailed'](_0x283c7e,_0x36e9f2){const _0xdbb590=_0x5f167b;return this['_w'](_0xdbb590(0x3c6),[_0x283c7e??null,_0x36e9f2??0x0]);}async[_0x5f167b(0x85b)](_0x599d1e,_0x2c4d99){const _0x3e7fda=_0x5f167b;return this['_w'](_0x3e7fda(0x85b),[_0x599d1e??null,_0x2c4d99??0x0]);}async[_0x5f167b(0x640)](_0x1f8670,_0x2ada03,_0x148f71){const _0x4e4bf6=_0x5f167b;return this['_w'](_0x4e4bf6(0x640),[_0x1f8670,_0x2ada03,_0x148f71]);}async[_0x5f167b(0x50e)](_0x276714,_0x462b4d={}){const _0x51c99c=_0x5f167b;return this['_n'](_0x51c99c(0x50e),[_0x276714,_0x462b4d],![]);}async[_0x5f167b(0x67d)](_0x2e24c1,_0x54ef3d={}){const _0x541533=_0x5f167b,{txn:_0x5c5846,..._0xf3b5aa}=_0x54ef3d||{};if(!_0x5c5846)return this['_w'](_0x541533(0x67d),[_0x2e24c1,_0xf3b5aa]);const _0x35506c=(_0x56c2d3,_0xb860fc,_0x10132d,_0xb3348e)=>{const _0x14b8b6=_0x541533,_0x7e2339=Math[_0x14b8b6(0x47a)](Number(_0x56c2d3));return Number[_0x14b8b6(0x5ef)](_0x7e2339)?Math['min'](_0xb3348e,Math['max'](_0x10132d,_0x7e2339)):_0xb860fc;},_0x1fe6b4=typeof _0x2e24c1==='string'?_0x2e24c1[_0x541533(0x78c)]():'';if(!_0x1fe6b4)throw new Error(_0x541533(0x467));const _0x276720=_0x35506c(_0xf3b5aa[_0x541533(0x658)],0x0,0x0,0x3b9aca00);_0x5c5846[_0x541533(0x27f)](_0x541533(0x5f6),_0x1fe6b4,{'id':_0x1fe6b4,'tokens':_0x35506c(_0xf3b5aa['tokens'],_0x276720,0x0,_0x276720),'capacity':_0x276720,'refill_amount':_0x35506c(_0xf3b5aa[_0x541533(0x6e4)],0x0,0x0,0x3b9aca00),'refill_every':_0x35506c(_0xf3b5aa['refill_every'],0x0,0x0,0x16d*0x18*0x36ee80),'updated':Date[_0x541533(0x89e)]()});}async[_0x5f167b(0x5ae)](_0x1116a3,_0xb69148){const _0x3ccd2c=_0x5f167b;return this['_w'](_0x3ccd2c(0x5ae),[_0x1116a3,_0xb69148]);}async[_0x5f167b(0x603)](_0x3a3039){const _0x129840=_0x5f167b;return this['_w'](_0x129840(0x603),[_0x3a3039]);}[_0x5f167b(0x758)](_0x5e183c){const _0x5abe8f=_0x5f167b,_0x3edb78=this['_n'](_0x5abe8f(0x758),[_0x5e183c],![]);return _0x3edb78===null&&typeof _0x5e183c===_0x5abe8f(0x4bb)&&_0x5e183c[_0x5abe8f(0x78c)]()?undefined:_0x3edb78;}async[_0x5f167b(0x864)](_0x384890,_0x4ae31f){const _0x480791=_0x5f167b;return this['_w'](_0x480791(0x864),[_0x384890,_0x4ae31f]);}async[_0x5f167b(0x598)](_0xa8f726,_0x21309d={}){const _0x3e7b5b=_0x5f167b;return this['_w'](_0x3e7b5b(0x598),[_0xa8f726,_0x21309d]);}async[_0x5f167b(0x242)](_0x5ebf93){const _0x48ba9e=_0x5f167b;return this['_n'](_0x48ba9e(0x242),[_0x5ebf93],![]);}async['listJobTypes'](){const _0x2ef641=_0x5f167b;return this['_n'](_0x2ef641(0x4a6),[],![]);}async['removeJobType'](_0x4cf4aa){const _0x51f15e=_0x5f167b;return this['_w'](_0x51f15e(0x608),[_0x4cf4aa]);}[_0x5f167b(0x453)](_0x7b5739){const _0x1cab3a=_0x5f167b;return this['_n'](_0x1cab3a(0x453),[_0x7b5739]);}[_0x5f167b(0x295)](_0x7c1b44){return this['_n']('resumeJobType',[_0x7c1b44]);}[_0x5f167b(0x68b)](_0x16fd39){const _0x27a953=_0x5f167b;return this['_n'](_0x27a953(0x68b),[_0x16fd39]);}async[_0x5f167b(0x75f)](_0x4f218a,_0x3dbcbb,_0x5ab69d=![]){const _0x4abb7a=_0x5f167b;return this['_w'](_0x4abb7a(0x75f),[_0x4f218a,_0x3dbcbb,_0x5ab69d]);}async[_0x5f167b(0x360)](_0x5b3811){const _0x49c574=_0x5f167b;return this['_w'](_0x49c574(0x360),[_0x5b3811]);}async[_0x5f167b(0x746)](_0x68bf6e,_0x5ec67a=0x5){const _0x29c1fb=_0x5f167b;return this['_n'](_0x29c1fb(0x746),[_0x68bf6e,_0x5ec67a],![]);}async[_0x5f167b(0x703)](_0x2405c7){const _0x983e4f=_0x5f167b;return this['_n'](_0x983e4f(0x460),[_0x2405c7]);}async[_0x5f167b(0x3fe)](_0x236d8e=0x7530){const _0x2fc41a=_0x5f167b;await Promise[_0x2fc41a(0x795)]([...this[_0x2fc41a(0x561)]]['map'](_0x411171=>_0x411171[_0x2fc41a(0x893)](_0x236d8e)));const _0x47ed79=this['_n']('stopAll',[0x0]);return this[_0x2fc41a(0x561)]['clear'](),_0x47ed79;}async[_0x5f167b(0x7f9)](){const _0x119d50=_0x5f167b,_0x10ba8d=this['_n'](_0x119d50(0x7f9),[]);return this[_0x119d50(0x561)][_0x119d50(0x871)](),_0x10ba8d;}['process'](_0x433d6e,_0x3b118e,_0x557dfa){const _0x4d4838=_0x5f167b;let _0x137893,_0x26e6c3;if(Array[_0x4d4838(0x69e)](_0x433d6e)){if(typeof _0x3b118e===_0x4d4838(0x6d8))throw new _0x456343(_0x4d4838(0x273),'BAD_PARAM');_0x26e6c3=_0x3b118e??{};if(_0x26e6c3[_0x4d4838(0x357)]!=null&&typeof _0x26e6c3['admission']!==_0x4d4838(0x6d8))throw new _0x456343(_0x4d4838(0x7fc),_0x4d4838(0x694));if(_0x433d6e[_0x4d4838(0x6cf)]===0x0)throw new _0x456343('process(entries)\x20requires\x20at\x20least\x20one\x20entry','BAD_PARAM');_0x137893=_0x433d6e['map'](_0x50e966=>{const _0x130048=_0x4d4838;if(!_0x50e966||typeof _0x50e966['type']!==_0x130048(0x4bb)||!_0x50e966[_0x130048(0x673)])throw new _0x456343('each\x20process()\x20entry\x20requires\x20a\x20non-empty\x20`type`',_0x130048(0x694));if(typeof _0x50e966[_0x130048(0x5af)]!=='function')throw new _0x456343('process()\x20entry\x20\x22'+_0x50e966[_0x130048(0x673)]+_0x130048(0x245),_0x130048(0x694));return{..._0x50e966};});}else{_0x26e6c3=_0x557dfa??{};if(typeof _0x3b118e!==_0x4d4838(0x6d8))throw new _0x456343('process()\x20entry\x20\x22'+_0x433d6e+_0x4d4838(0x245),_0x4d4838(0x694));_0x137893=[{'type':_0x433d6e,'handler':_0x3b118e,..._0x557dfa??{}}];}const _0x10ee4b=this[_0x4d4838(0x21e)];for(const _0x2c1850 of _0x137893){const _0x2b2e4f=_0x2c1850[_0x4d4838(0x5af)];_0x2c1850[_0x4d4838(0x5af)]=function(..._0x51dbc1){const _0x107a44=_0x4d4838;return _0x10ee4b[_0x107a44(0x3bc)]()['then'](()=>_0x2b2e4f['apply'](this,_0x51dbc1));};}const _0x120050=this['_n'](_0x4d4838(0x595),[_0x137893,_0x26e6c3]),_0x44f030=this,_0x54f8a2={'id':_0x120050['id'],'type':_0x120050['type'],get 'running'(){const _0x524c3a=_0x4d4838;return _0x44f030['_n'](_0x524c3a(0x479),[_0x120050['id']],![])[_0x524c3a(0x48c)];},'isRunning'(){const _0x268249=_0x4d4838;return _0x44f030['_n']('workerState',[_0x120050['id']],![])[_0x268249(0x48c)];},async 'stop'(_0x37c15c=0x7530){const _0x552593=_0x4d4838;_0x44f030['_n'](_0x552593(0x1ed),[_0x120050['id']]);const _0x317265=Date[_0x552593(0x89e)]()+_0x37c15c;while(_0x44f030['_n'](_0x552593(0x479),[_0x120050['id']],![])[_0x552593(0x600)]>0x0&&Date[_0x552593(0x89e)]()<_0x317265)await new Promise(_0x3d5319=>setTimeout(_0x3d5319,0x2));_0x44f030['_n']('stopWorkerAbort',[_0x120050['id']]),_0x3bdc0e[_0x552593(0x6da)](),_0x44f030['_workers'][_0x552593(0x82f)](_0x54f8a2);},async 'kill'(){const _0x16b583=_0x4d4838;_0x44f030['_n'](_0x16b583(0x4f6),[_0x120050['id']]),_0x44f030[_0x16b583(0x561)][_0x16b583(0x82f)](_0x54f8a2);}};return this[_0x4d4838(0x561)][_0x4d4838(0x7df)](_0x54f8a2),_0x54f8a2;}[_0x5f167b(0x217)](_0x100b8c){const _0xf3a2b1=_0x5f167b;throw new _0x456343(_0xf3a2b1(0x507)+_0x100b8c+_0xf3a2b1(0x18f)+_0x100b8c+_0xf3a2b1(0x3d9),_0xf3a2b1(0x431));}['spawn'](_0x3df9b6){const _0x4028f6=_0x5f167b;return this[_0x4028f6(0x217)](_0x3df9b6);}}return queue={'OKDBQueue':_0x165e3b},queue;}function _0x3ebb(_0x593157,_0x213824){_0x593157=_0x593157-0x162;const _0x156166=_0x1561();let _0x3ebb64=_0x156166[_0x593157];return _0x3ebb64;}var timemachine,hasRequiredTimemachine;function requireTimemachine(){const _0x16903f=_0x2ec26e;if(hasRequiredTimemachine)return timemachine;hasRequiredTimemachine=0x1;const {fromArray:_0x201b10}=requireIterable();class _0x28b613{constructor(_0x3da73d){const _0x20f200=_0x3ebb;this[_0x20f200(0x30b)]=_0x3da73d,this[_0x20f200(0x21e)]=_0x3da73d[_0x20f200(0x21e)];const _0x47fd23=(_0x1f4d13,_0x274d46)=>this['_n'](_0x1f4d13,_0x274d46,![]);this[_0x20f200(0x733)]={'getDiffs':(_0x641d38,_0x44a487,_0x125295)=>_0x47fd23(_0x20f200(0x57d),[_0x641d38,_0x44a487,_0x125295||{}]),'hasDiff':(_0x547067,_0x296e1d,_0x1ebbcd)=>_0x47fd23(_0x20f200(0x4cb),[_0x547067,_0x296e1d,_0x1ebbcd]),'getHead':(_0x56ec82,_0x3e3487)=>_0x47fd23('storeGetHead',[_0x56ec82,_0x3e3487])??null,'getHeadCount':_0x564dfb=>_0x47fd23(_0x20f200(0x3c8),[_0x564dfb]),'getTotalHeadCount':()=>_0x47fd23(_0x20f200(0x2f5),[]),'getDiffsInRange':(_0x1cac32,_0x2f1d10,_0x5d873a)=>_0x47fd23(_0x20f200(0x1b2),[_0x1cac32??null,_0x2f1d10,_0x5d873a]),'getConfig':()=>_0x47fd23(_0x20f200(0x518),[])??null,'getCursor':()=>this['_n'](_0x20f200(0x5ac),[],![])??null,get 'db'(){const _0x20ada6=_0x20f200;try{return _0x47fd23(_0x20ada6(0x2f5),[]),{};}catch{return null;}}};}get['_registrations'](){const _0x13de25=_0x3ebb,_0x467db9=(this['env'][_0x13de25(0x3e8)]?.['list']?.()||[])['filter'](_0x1ff572=>String(_0x1ff572[_0x13de25(0x4bd)]||'')[_0x13de25(0x6c8)]('time-machine:'))[_0x13de25(0x6cf)];return{'size':_0x467db9};}['_n'](_0x57d4a9,_0x5b13c6,_0x381e98=!![]){const _0x9c6978=_0x3ebb;return this[_0x9c6978(0x21e)]['_call']('tm',this['env'][_0x9c6978(0x6fe)],_0x57d4a9,_0x5b13c6,_0x381e98);}async[_0x16903f(0x1cf)](_0x3d4f9a){return this['_n']('enable',[_0x3d4f9a??null]);}async[_0x16903f(0x48e)](_0x348888){const _0x22dc23=_0x16903f;return this['_n'](_0x22dc23(0x48e),[_0x348888??null]);}async['enableAll'](){const _0x156ddb=_0x16903f;return this['_n'](_0x156ddb(0x857),[]);}async[_0x16903f(0x705)](){const _0x19a5f1=_0x16903f;return this['_n'](_0x19a5f1(0x705),[]);}async['drop'](_0xdc401c){const _0x7d477e=_0x16903f;return this['_n'](_0x7d477e(0x303),[_0xdc401c??null]);}async[_0x16903f(0x481)](){const _0x292ee6=_0x16903f;return this['_n'](_0x292ee6(0x481),[]);}[_0x16903f(0x86d)](_0x220a63){return this['_n']('isEnabled',[_0x220a63??null],![]);}[_0x16903f(0x338)](){const _0x27130e=_0x16903f;return this['_n'](_0x27130e(0x338),[],![]);}[_0x16903f(0x1c9)](_0x41ac48){const _0x231190=_0x16903f;return this['_n'](_0x231190(0x1c9),[_0x41ac48??null],![]);}[_0x16903f(0x71f)](_0x381c2f){const _0x338fba=_0x16903f;if(!_0x381c2f)return this['_n'](_0x338fba(0x5ac),[],![]);return this['_n'](_0x338fba(0x71f),[_0x381c2f],![]);}[_0x16903f(0x5ac)](){const _0x538605=_0x16903f;return this['_n'](_0x538605(0x5ac),[],![]);}[_0x16903f(0x583)](_0x312183,_0x3364d6,_0xfdead1){const _0xb5b6ac=_0x16903f;return this['_n'](_0xb5b6ac(0x583),[_0x312183,_0x3364d6,_0xfdead1],![]);}[_0x16903f(0x729)](_0x200f85,_0x42ffc9,_0xada6d7){const _0x32334c=_0x16903f;return this['_n'](_0x32334c(0x729),[_0x200f85,_0x42ffc9,_0xada6d7||{}],![]);}[_0x16903f(0x267)](_0x4d7698,_0x481f1f,_0x49600e){const _0x356c8a=_0x16903f;return this['_n'](_0x356c8a(0x267),[_0x4d7698??null,_0x481f1f,_0x49600e],![])[Symbol[_0x356c8a(0x56e)]]();}async['flush'](_0x3085d7){const _0x11a2f2=_0x16903f;return this['_n'](_0x11a2f2(0x42c),[_0x3085d7??null]);}}return timemachine={'OKDBTimeMachine':_0x28b613},timemachine;}var files,hasRequiredFiles;function requireFiles(){const _0x3b3674=_0x2ec26e;if(hasRequiredFiles)return files;hasRequiredFiles=0x1;const _0x1c8f45=require$$0,{Readable:_0x2e41bf}=require$$1,{OKDBError:_0x3871f2,optionsArg:_0x3c08c5,invalidArgument:_0x5073dc}=requireErrors(),{RawDb:_0x7a3118}=requireRawdb();async function _0x39c257(_0x1e445f){const _0x1064c9=_0x3ebb;if(Buffer[_0x1064c9(0x292)](_0x1e445f))return _0x1e445f;if(_0x1e445f instanceof Uint8Array)return Buffer[_0x1064c9(0x170)](_0x1e445f);if(typeof _0x1e445f===_0x1064c9(0x4bb))return Buffer[_0x1064c9(0x170)](_0x1e445f);const _0x2ba8cc=[];for await(const _0x450e84 of _0x1e445f)_0x2ba8cc[_0x1064c9(0x2fb)](Buffer['isBuffer'](_0x450e84)?_0x450e84:Buffer[_0x1064c9(0x170)](_0x450e84));return Buffer[_0x1064c9(0x79b)](_0x2ba8cc);}class _0x51b971{constructor(_0x5208f8){const _0x5b12c0=_0x3ebb;this['env']=_0x5208f8,this[_0x5b12c0(0x21e)]=_0x5208f8[_0x5b12c0(0x21e)];}['_n'](_0x13ebcb,_0x591844,_0x4177b7=!![]){const _0x32ef3f=_0x3ebb;return this['okdb']['_call'](_0x32ef3f(0x6be),this['env'][_0x32ef3f(0x6fe)],_0x13ebcb,_0x591844,_0x4177b7);}['start'](){return!![];}[_0x3b3674(0x893)](){}async[_0x3b3674(0x5f5)](){const _0x195f0d=_0x3b3674;this['_n'](_0x195f0d(0x766),[]);}async[_0x3b3674(0x37a)](_0x514fa3,_0x316557){const _0x5c5170=_0x3b3674;return this['okdb'][_0x5c5170(0x55c)](this['_n'](_0x5c5170(0x5d8),[_0x514fa3,await _0x39c257(_0x316557)]));}get[_0x3b3674(0x258)](){const _0x29a2eb=_0x3b3674;return this[_0x29a2eb(0x38f)]||(this['__blobStatusDb']=new _0x7a3118(this[_0x29a2eb(0x30b)],_0x29a2eb(0x48b)));}async[_0x3b3674(0x5a5)](_0x275ae1){const _0x4fb5e0=_0x3b3674;return this[_0x4fb5e0(0x258)][_0x4fb5e0(0x24d)](_0x275ae1);}async[_0x3b3674(0x484)](_0x600cfd){const _0x38df7c=_0x3b3674,{id:_0x1dd1df,stream:_0xade944,mime:mime=_0x38df7c(0x2b8),path:_0x188dc0='',txn:txn=null}=_0x3c08c5(_0x600cfd);if(!_0x1dd1df)throw _0x5073dc(_0x38df7c(0x206),_0x38df7c(0x16c),_0x1dd1df);if(!_0xade944)throw _0x5073dc('files.upload:\x20stream','a\x20Buffer\x20or\x20readable\x20stream',_0xade944);const _0x5e7fe6=await _0x39c257(_0xade944);if(txn){const _0x4a5bf0=this['_n'](_0x38df7c(0x18e),[_0x1dd1df,_0x5e7fe6,{'mime':mime,'path':_0x188dc0}]);return txn[_0x38df7c(0x27f)](_0x38df7c(0x6d9),_0x1dd1df,_0x4a5bf0[_0x38df7c(0x812)]),txn['onDo'](()=>this['_n']('txnDone',[_0x4a5bf0[_0x38df7c(0x872)]])),txn[_0x38df7c(0x213)](()=>this['_n']('txnUndone',[_0x4a5bf0['hook']])),_0x4a5bf0['record'];}return this[_0x38df7c(0x21e)][_0x38df7c(0x55c)](this['_n'](_0x38df7c(0x484),[_0x1dd1df,_0x5e7fe6,{'mime':mime,'path':_0x188dc0}]));}[_0x3b3674(0x63c)](_0x42be71){return this['_n']('get',[_0x42be71],![])??null;}['streamByHash'](_0x58ba6a){const _0x47472e=_0x3b3674,_0xb23585=this[_0x47472e(0x379)](_0x58ba6a);if(!_0x1c8f45[_0x47472e(0x2fa)](_0xb23585))throw Object[_0x47472e(0x76f)](new Error(_0x47472e(0x305)+_0x58ba6a),{'status':0x194});return this['_blobStream'](_0x58ba6a);}[_0x3b3674(0x3c9)](_0x480403){const _0x216c85=0x100*0x400,_0x48f355=this;let _0x1bf208=0x0;return new _0x2e41bf({'highWaterMark':_0x216c85,'read'(){const _0x417e29=_0x3ebb;let _0x535891;try{const _0x5368e0=_0x48f355['_n'](_0x417e29(0x47c),[_0x480403,_0x1bf208,_0x216c85],![]);_0x535891=Buffer[_0x417e29(0x292)](_0x5368e0)?_0x5368e0:Buffer[_0x417e29(0x170)](_0x5368e0);}catch(_0x230047){this[_0x417e29(0x87d)](_0x230047);return;}_0x1bf208+=_0x535891[_0x417e29(0x6cf)];if(_0x535891[_0x417e29(0x6cf)])this['push'](_0x535891);if(_0x535891[_0x417e29(0x6cf)]<_0x216c85)this[_0x417e29(0x2fb)](null);}});}async[_0x3b3674(0x2c9)](_0x34c52a){const _0x4b9acd=_0x3b3674;return this[_0x4b9acd(0x21e)][_0x4b9acd(0x29c)](this['_n']('read',[_0x34c52a],![]));}async[_0x3b3674(0x302)](_0x224a20){const _0x5c9d61=_0x3b3674,_0x4099a9=this[_0x5c9d61(0x63c)](_0x224a20);if(!_0x4099a9)throw Object[_0x5c9d61(0x76f)](new Error('File\x20not\x20found:\x20'+_0x224a20),{'status':0x194});const _0x1bf72e=this[_0x5c9d61(0x379)](_0x4099a9['hash']);if(!_0x1c8f45[_0x5c9d61(0x2fa)](_0x1bf72e))throw Object[_0x5c9d61(0x76f)](new Error('Blob\x20missing\x20for\x20file:\x20'+_0x224a20),{'status':0x194});return{'stream':this[_0x5c9d61(0x3c9)](_0x4099a9[_0x5c9d61(0x326)]),'record':_0x4099a9};}async['remove'](_0x4dd0cf,_0x24c042){const _0x3951a1=_0x3b3674,{txn:txn=null}=_0x3c08c5(_0x24c042);if(txn){const _0x4740ef=this['_n'](_0x3951a1(0x394),[_0x4dd0cf]);txn['remove']('~files',_0x4dd0cf),txn[_0x3951a1(0x576)](()=>this['_n'](_0x3951a1(0x4ac),[_0x4740ef[_0x3951a1(0x872)]])),txn[_0x3951a1(0x213)](()=>this['_n'](_0x3951a1(0x823),[_0x4740ef['hook']]));return;}return this['okdb'][_0x3951a1(0x55c)](this['_n'](_0x3951a1(0x42f),[_0x4dd0cf]));}async[_0x3b3674(0x7fa)](_0x9a99fa,_0x4b30a8={}){return this['_n']('listPath',[_0x9a99fa,_0x4b30a8],![]);}['getBlobStatus'](_0x5978e7){const _0x40e466=_0x3b3674;return this['_n'](_0x40e466(0x327),[_0x5978e7],![]);}[_0x3b3674(0x55b)](){const _0xa6713a=_0x3b3674;return this['_n'](_0xa6713a(0x55b),[],![]);}[_0x3b3674(0x2b2)](_0x37852c){const _0x1aa33e=_0x3b3674,{minAgeMs:_0x17c51b}=_0x3c08c5(_0x37852c);return this['_n'](_0x1aa33e(0x2b2),[_0x17c51b??null]);}[_0x3b3674(0x63d)](_0x512c49,_0x720021){const _0x2e99d5=_0x3b3674;if(typeof _0x720021!==_0x2e99d5(0x6d8))throw new _0x3871f2(_0x2e99d5(0x3e6),'BAD_PARAM');const _0x229358=this['_n']('registerExtractor',[_0x512c49,_0x720021]);return()=>this['_n']('unregisterExtractor',[_0x229358]);}async[_0x3b3674(0x445)](_0x462d07){const _0x4806a7=_0x3b3674;return _0x462d07=_0x3c08c5(_0x462d07),this['_n'](_0x4806a7(0x445),[_0x462d07]);}async['syncBlobs'](_0x25c38d){const _0xcc3482=_0x3b3674,{peerIds:_0x3db58c}=_0x3c08c5(_0x25c38d);return this['_n'](_0xcc3482(0x405),[_0x3db58c??null]);}['_blobPath'](_0x30df94){const _0x9eb618=_0x3b3674;if(typeof _0x30df94!==_0x9eb618(0x4bb))return require$$4[_0x9eb618(0x3d2)](this[_0x9eb618(0x1ad)],_0x30df94[_0x9eb618(0x5ca)](0x0,0x2),_0x30df94[_0x9eb618(0x5ca)](0x2));return this['_n'](_0x9eb618(0x74b),[_0x30df94],![]);}get[_0x3b3674(0x1ad)](){const _0x493f8b=_0x3b3674;return this['_n'](_0x493f8b(0x36b),[],![]);}}return files={'OKDBFiles':_0x51b971},files;}var engines,hasRequiredEngines;function requireEngines(){const _0x4d5f92=_0x2ec26e;if(hasRequiredEngines)return engines;hasRequiredEngines=0x1;const {OKDBError:_0x27a441}=requireErrors(),_0x1cffeb=requireBridge(),_0xaad2fb=new Set([_0x4d5f92(0x7b6),'indexer',_0x4d5f92(0x395),'embed-worker']),_0xd2535c=new Set([_0x4d5f92(0x3c2),_0x4d5f92(0x7c6),_0x4d5f92(0x4c6)]),_0x5827ad=[_0x4d5f92(0x1b5),_0x4d5f92(0x5b6),_0x4d5f92(0x5f2),_0x4d5f92(0x569),'install',_0x4d5f92(0x893),_0x4d5f92(0x55a)],_0xd17283={'embedder':new Set([_0x4d5f92(0x4c6),_0x4d5f92(0x6c2)])},_0x19b765=new Set([_0x4d5f92(0x6a3),_0x4d5f92(0x3e8),'queue-worker']);class _0x5596f7{constructor(_0x47544f,_0x275033,_0x1a1ae7,_0x104854){const _0x4ec7e0=_0x4d5f92;this[_0x4ec7e0(0x1f4)]=_0x47544f,this[_0x4ec7e0(0x366)]=_0x275033,this['type']=_0x1a1ae7,this[_0x4ec7e0(0x6fe)]=_0x104854,this['engineType']=_0x1a1ae7;}[_0x4d5f92(0x41a)](){const _0x5846a3=_0x4d5f92;return this['_facade']['_n'](_0x5846a3(0x7c6),[this['type'],this['name']],![]);}get[_0x4d5f92(0x799)](){const _0x473d5a=_0x4d5f92;return this[_0x473d5a(0x41a)]()[_0x473d5a(0x799)];}get['_store'](){const _0x4eb4cc=_0x4d5f92,_0x5bc6d4=this[_0x4eb4cc(0x41a)]()[_0x4eb4cc(0x228)];return _0x5bc6d4?this['_facade'][_0x4eb4cc(0x21e)][_0x4eb4cc(0x8a5)][_0x4eb4cc(0x63c)](_0x5bc6d4):undefined;}get[_0x4d5f92(0x2fe)](){const _0x55bebf=_0x4d5f92;return this[_0x55bebf(0x41a)]()['docEntry'];}get['enabled'](){const _0x1a2ec9=_0x4d5f92;return this[_0x1a2ec9(0x41a)]()[_0x1a2ec9(0x580)];}get['isRunning'](){const _0x5c6c79=_0x4d5f92;return this[_0x5c6c79(0x41a)]()[_0x5c6c79(0x82b)];}get[_0x4d5f92(0x1c9)](){const _0x2aaca1=_0x4d5f92;return this[_0x2aaca1(0x41a)]()[_0x2aaca1(0x1c9)];}get[_0x4d5f92(0x5d0)](){const _0x59e75d=_0x4d5f92;return this[_0x59e75d(0x41a)]()['reason'];}get[_0x4d5f92(0x604)](){const _0x5af6ee=_0x4d5f92,_0x194e07=this['_info']()[_0x5af6ee(0x604)];return _0x194e07?Object[_0x5af6ee(0x76f)](new Error(_0x194e07[_0x5af6ee(0x2d2)]),{'code':_0x194e07[_0x5af6ee(0x748)]}):null;}get['runtimeState'](){const _0x424223=_0x4d5f92;return this[_0x424223(0x41a)]()[_0x424223(0x46c)];}get[_0x4d5f92(0x741)](){const _0x583858=_0x4d5f92;return this['_facade'][_0x583858(0x557)]['get'](this['type'])??null;}get[_0x4d5f92(0x370)](){const _0x393f9b=_0x4d5f92;if(!this[_0x393f9b(0x41a)]()[_0x393f9b(0x5cb)])return null;const _0x37bba8=this;return new Proxy({},{'get'(_0x1f6c61,_0x1e6bd6){const _0x12ef8d=_0x393f9b;if(typeof _0x1e6bd6===_0x12ef8d(0x856)||_0x1e6bd6===_0x12ef8d(0x2b0))return undefined;if(_0xd17283[_0x37bba8['type']]&&_0xd17283[_0x37bba8[_0x12ef8d(0x673)]][_0x12ef8d(0x51e)](_0x1e6bd6))return _0x37bba8['_facade']['_n'](_0x12ef8d(0x5a8),[_0x37bba8[_0x12ef8d(0x673)],_0x37bba8[_0x12ef8d(0x6fe)],_0x1e6bd6,[]],![])['value'];if(_0x37bba8['type']==='indexer'&&_0x1e6bd6===_0x12ef8d(0x42c))return async(_0x24bdcc={})=>{const _0x3b3aa2=_0x12ef8d,_0x38ec8f=(_0x44cbd1,..._0x10067f)=>_0x37bba8[_0x3b3aa2(0x1f4)]['_n'](_0x3b3aa2(0x5a8),[_0x37bba8[_0x3b3aa2(0x673)],_0x37bba8['name'],_0x44cbd1,_0x10067f],!![])[_0x3b3aa2(0x820)],_0x10f0d7=_0x38ec8f(_0x3b3aa2(0x54b),_0x24bdcc??{}),_0x5611c9=Date[_0x3b3aa2(0x89e)]();for(;;){const _0x1f7cd1=await _0x37bba8[_0x3b3aa2(0x1f4)][_0x3b3aa2(0x21e)]['_macro'](()=>_0x38ec8f(_0x3b3aa2(0x1bc)));if(_0x1f7cd1[_0x3b3aa2(0x79a)]>=_0x1f7cd1[_0x3b3aa2(0x1b4)])return;Date[_0x3b3aa2(0x89e)]()-_0x5611c9>=_0x10f0d7&&_0x38ec8f('flushTimeoutError',_0x24bdcc??{},_0x1f7cd1),await new Promise(_0x58d1ff=>setTimeout(_0x58d1ff,0x3));}};return(..._0x1c9e1e)=>{const _0x88779b=_0x12ef8d,_0x44f906=()=>_0x37bba8[_0x88779b(0x1f4)]['_n'](_0x88779b(0x5a8),[_0x37bba8[_0x88779b(0x673)],_0x37bba8[_0x88779b(0x6fe)],_0x1e6bd6,_0x1c9e1e],!![]),_0x101737=_0x5b89b2=>{const _0x55ea13=_0x88779b;if(_0x5b89b2&&_0x5b89b2[_0x55ea13(0x252)])throw new TypeError(_0x55ea13(0x471)+_0x1e6bd6+'\x27');return _0x5b89b2[_0x55ea13(0x820)];};if(_0xaad2fb['has'](_0x37bba8['type'])&&!_0xd2535c[_0x88779b(0x51e)](_0x1e6bd6)){const _0x237351=_0x37bba8[_0x88779b(0x1f4)][_0x88779b(0x21e)];return _0x237351[_0x88779b(0x56c)](()=>_0x237351[_0x88779b(0x199)](_0x44f906))[_0x88779b(0x2b0)](_0x101737);}if(_0x19b765[_0x88779b(0x51e)](_0x37bba8[_0x88779b(0x673)]))try{return Promise['resolve'](_0x101737(_0x44f906()));}catch(_0x40e25b){return Promise[_0x88779b(0x6f0)](_0x40e25b);}return _0x101737(_0x44f906());};}});}async[_0x4d5f92(0x724)](_0x37fb0d={}){const _0x35477f=_0x4d5f92;return await this[_0x35477f(0x1f4)][_0x35477f(0x321)](_0x35477f(0x724),[this[_0x35477f(0x673)],this['name'],_0x37fb0d]),this;}async['start'](){const _0x358648=_0x4d5f92;await this[_0x358648(0x1f4)][_0x358648(0x321)](_0x358648(0x220),[this[_0x358648(0x673)],this[_0x358648(0x6fe)]]);}async['stop'](_0x5cb870={}){const _0x5611a1=_0x4d5f92;await this[_0x5611a1(0x1f4)][_0x5611a1(0x321)](_0x5611a1(0x4b5),[this['type'],this[_0x5611a1(0x6fe)],_0x5cb870]);}async[_0x4d5f92(0x20a)](_0x327234={}){const _0x2e046=_0x4d5f92;return await this[_0x2e046(0x1f4)][_0x2e046(0x321)](_0x2e046(0x20a),[this[_0x2e046(0x673)],this[_0x2e046(0x6fe)],_0x327234]),this;}async[_0x4d5f92(0x55a)](){const _0x1ff08d=_0x4d5f92;await this[_0x1ff08d(0x1f4)]['_nm']('engineUninstall',[this[_0x1ff08d(0x673)],this[_0x1ff08d(0x6fe)]]);}}class _0x59fb36{constructor(_0x3e3984,_0x536ae4=null,_0x699440=null){const _0x4d666b=_0x4d5f92;this[_0x4d666b(0x21e)]=_0x3e3984,this[_0x4d666b(0x17f)]=_0x536ae4,this[_0x4d666b(0x80d)]=_0x536ae4===null,this[_0x4d666b(0x231)]=_0x699440||this,this[_0x4d666b(0x557)]=this['_root']===this?_0xb417bf(this):this[_0x4d666b(0x231)][_0x4d666b(0x557)],this['_handles']=new Map();}['_n'](_0xf2ca72,_0x5943d5,_0xec877a=!![]){const _0x3f1665=_0x4d5f92;return this[_0x3f1665(0x21e)][_0x3f1665(0x49e)]('engines',this[_0x3f1665(0x17f)],_0xf2ca72,_0x5943d5,_0xec877a);}[_0x4d5f92(0x321)](_0x4a52ff,_0x418bef){const _0x5c1a37=_0x4d5f92;return this['okdb'][_0x5c1a37(0x406)](_0x5c1a37(0x1a5),this[_0x5c1a37(0x17f)],_0x4a52ff,_0x418bef,!![]);}get[_0x4d5f92(0x30b)](){const _0x2fd855=_0x4d5f92;return this[_0x2fd855(0x17f)]?this[_0x2fd855(0x21e)][_0x2fd855(0x30b)](this['envName']):null;}[_0x4d5f92(0x4f3)](_0x474119){const _0x46fb2f=_0x4d5f92;if(!_0x474119)return null;let _0x31954f=this['_handles'][_0x46fb2f(0x63c)](_0x474119[_0x46fb2f(0x366)]);return!_0x31954f&&(_0x31954f=new _0x5596f7(this,_0x474119[_0x46fb2f(0x366)],_0x474119['type'],_0x474119[_0x46fb2f(0x6fe)]),this[_0x46fb2f(0x88f)]['set'](_0x474119[_0x46fb2f(0x366)],_0x31954f)),_0x31954f;}[_0x4d5f92(0x4de)](_0x2bd0fd,_0x4175cf){const _0x4bdbb4=_0x4d5f92;if(!_0x2bd0fd||typeof _0x2bd0fd!==_0x4bdbb4(0x4bb))throw new _0x27a441(_0x4bdbb4(0x86b),_0x4bdbb4(0x882),{'type':_0x2bd0fd});if(!_0x4175cf||typeof _0x4175cf!==_0x4bdbb4(0x1be))throw new _0x27a441(_0x4bdbb4(0x5e1)+_0x2bd0fd+_0x4bdbb4(0x5ff),'ENGINE_INVALID_DRIVER',{'type':_0x2bd0fd});if(typeof _0x4175cf['start']!=='function')throw new _0x27a441(_0x4bdbb4(0x5e1)+_0x2bd0fd+_0x4bdbb4(0x27b),_0x4bdbb4(0x1ca),{'type':_0x2bd0fd});const _0x24c1df=this[_0x4bdbb4(0x231)];if(_0x24c1df[_0x4bdbb4(0x557)][_0x4bdbb4(0x51e)](_0x2bd0fd))throw new _0x27a441(_0x4bdbb4(0x283)+_0x2bd0fd+'\x22','ENGINE_DRIVER_ALREADY_REGISTERED',{'type':_0x2bd0fd});const _0x286782=_0x1cffeb[_0x4bdbb4(0x830)](_0x4175cf,this[_0x4bdbb4(0x21e)]),_0x462e37=_0x5827ad[_0x4bdbb4(0x852)](_0x411236=>typeof _0x4175cf[_0x411236]===_0x4bdbb4(0x6d8)),_0x16c67e=_0x4175cf[_0x4bdbb4(0x2df)]&&typeof _0x4175cf[_0x4bdbb4(0x2df)]==='object'?_0x4175cf[_0x4bdbb4(0x2df)]:{};this[_0x4bdbb4(0x21e)]['_call']('engines',null,'registerDriver',[_0x2bd0fd,{'$id':_0x286782,'has':_0x462e37,'docs':_0x16c67e}]),_0x24c1df[_0x4bdbb4(0x557)][_0x4bdbb4(0x835)](_0x2bd0fd,_0x4175cf);}get[_0x4d5f92(0x3cb)](){const _0x40ac8d=_0x4d5f92;return this['okdb']['_call'](_0x40ac8d(0x1a5),null,_0x40ac8d(0x6c6),[],![]);}get[_0x4d5f92(0x5bd)](){const _0x574430=this;return{get '_started'(){const _0x5c7859=_0x3ebb;return _0x574430[_0x5c7859(0x3cb)];}};}[_0x4d5f92(0x351)](_0x5dc802){const _0x558493=_0x4d5f92;if(!_0x5dc802||typeof _0x5dc802!==_0x558493(0x1be))throw new _0x27a441(_0x558493(0x4e6),'ENGINE_INVALID_TEMPLATE');if(!_0x5dc802['id']||typeof _0x5dc802['id']!==_0x558493(0x4bb))throw new _0x27a441(_0x558493(0x88d),_0x558493(0x3ea));if(!['engine','pipeline'][_0x558493(0x1ac)](_0x5dc802['kind']))throw new _0x27a441(_0x558493(0x474)+_0x5dc802['id'],_0x558493(0x3ea));if(typeof _0x5dc802['build']!==_0x558493(0x6d8))throw new _0x27a441(_0x558493(0x844)+_0x5dc802['id'],_0x558493(0x3ea));const _0x3932ee=this[_0x558493(0x21e)],_0x3c979c=typeof _0x5dc802[_0x558493(0x22b)]==='function';return this['_n'](_0x558493(0x351),[{'id':_0x5dc802['id'],'kind':_0x5dc802['kind'],'family':_0x5dc802[_0x558493(0x743)]??null,'engineType':_0x5dc802['engineType']??null,'pipelineFamily':_0x5dc802[_0x558493(0x65f)]??null,'recommended':_0x5dc802['recommended']===!![],'summary':_0x5dc802[_0x558493(0x6a1)]??null,'description':_0x5dc802[_0x558493(0x34c)]??null,'inputSchema':_0x3c979c?null:_0x5dc802['inputSchema']??null,'inputSchemaFn':_0x3c979c?()=>_0x5dc802[_0x558493(0x22b)](_0x3932ee):null,'defaults':_0x5dc802[_0x558493(0x6fd)]??null,'notes':Array[_0x558493(0x69e)](_0x5dc802['notes'])?_0x5dc802[_0x558493(0x1c7)]:[],'links':Array[_0x558493(0x69e)](_0x5dc802[_0x558493(0x300)])?_0x5dc802['links']:[],'build':(_0x49d027,_0x3d43ef)=>_0x5dc802[_0x558493(0x1dd)](_0x49d027??{},{'okdb':_0x3932ee,'envName':_0x3d43ef??null})}],![]);}[_0x4d5f92(0x735)](_0x3b36e5){const _0x161697=_0x4d5f92;return this['_n'](_0x161697(0x735),[_0x3b36e5??null],![]);}[_0x4d5f92(0x78e)](_0x1f5720){const _0x5ea854=_0x4d5f92;return this['_n'](_0x5ea854(0x78e),[_0x1f5720],![]);}['previewTemplate'](_0x298fa0,_0x1cf7a0,_0x18cb8a){const _0x34580a=_0x4d5f92;return this['_n'](_0x34580a(0x2bc),[_0x298fa0,_0x1cf7a0,_0x18cb8a??this[_0x34580a(0x17f)]],![]);}[_0x4d5f92(0x2f4)](){const _0x5498d0=_0x4d5f92;return this['_n'](_0x5498d0(0x2f4),[],![]);}async[_0x4d5f92(0x898)](){const _0x2fbda9=_0x4d5f92;return this[_0x2fbda9(0x321)](_0x2fbda9(0x898),[]);}async['stop'](){const _0x4fc240=_0x4d5f92;return this[_0x4fc240(0x321)](_0x4fc240(0x893),[]);}async[_0x4d5f92(0x704)](_0x44937c,_0x32e655,_0x2c817b={},_0x225114={},_0x437349={}){const _0x29abd3=_0x4d5f92;return this['_wrap'](await this[_0x29abd3(0x321)]('createEngine',[_0x44937c,_0x32e655,_0x2c817b,_0x225114,_0x437349]));}async[_0x4d5f92(0x751)](_0xac0798,_0x16c278,_0x803551={},_0x56fde5={},_0x5d0de7={}){const _0x1280a2=_0x4d5f92;return this[_0x1280a2(0x4f3)](await this['_nm'](_0x1280a2(0x751),[_0xac0798,_0x16c278,_0x803551,_0x56fde5,_0x5d0de7]));}['getEngine'](_0x105f25,_0x2c41d2){const _0xe2f720=_0x4d5f92;return this[_0xe2f720(0x4f3)](this['_n']('getEngine',[_0x105f25,_0x2c41d2],![]));}[_0x4d5f92(0x23b)](_0x54b224,_0x5d833e){return this['_wrap'](this['_n']('getRunningEngine',[_0x54b224,_0x5d833e],![]));}[_0x4d5f92(0x338)](_0x1a8308){const _0x5b5c1d=_0x4d5f92;return this['_n'](_0x5b5c1d(0x338),[_0x1a8308??null],![])['map'](_0x1b793b=>this[_0x5b5c1d(0x4f3)](_0x1b793b));}async['restart'](_0x5c73a6,_0x1ac59e){const _0x807a9e=_0x4d5f92;return this[_0x807a9e(0x4f3)](await this[_0x807a9e(0x321)](_0x807a9e(0x2f1),[_0x5c73a6,_0x1ac59e]));}async[_0x4d5f92(0x552)](_0x33a99c,_0x4b03a4){const _0x576088=_0x4d5f92;return this['_handles'][_0x576088(0x82f)](_0x33a99c+':'+_0x4b03a4),this[_0x576088(0x321)](_0x576088(0x552),[_0x33a99c,_0x4b03a4]);}async[_0x4d5f92(0x7b1)](_0x2d7204){const _0x4d0d8e=_0x4d5f92;return this[_0x4d0d8e(0x321)](_0x4d0d8e(0x7b1),[_0x2d7204]);}async[_0x4d5f92(0x523)](){const _0x42c49b=_0x4d5f92;return this[_0x42c49b(0x321)](_0x42c49b(0x523),[]);}}function _0xb417bf(_0x2d852e){const _0x141411=_0x4d5f92,_0x1a9c35=new Map();return{'has':_0x4ff523=>_0x1a9c35[_0x141411(0x51e)](_0x4ff523)||_0x2d852e['okdb']['_call'](_0x141411(0x1a5),null,_0x141411(0x80a),[_0x4ff523],![]),'get':_0x470567=>_0x1a9c35[_0x141411(0x63c)](_0x470567),'set':()=>{const _0x3e3e70=_0x141411;throw new _0x27a441(_0x3e3e70(0x664),_0x3e3e70(0x694));},'_set':(_0x2c116e,_0x5aaadd)=>_0x1a9c35['set'](_0x2c116e,_0x5aaadd),'keys':()=>_0x1a9c35[_0x141411(0x1d5)](),'entries':()=>_0x1a9c35[_0x141411(0x72a)](),'values':()=>_0x1a9c35['values'](),get 'size'(){return _0x1a9c35['size'];},[Symbol['iterator']]:()=>_0x1a9c35[Symbol[_0x141411(0x56e)]]()};}class _0x4061a0{constructor(_0x4857f2,_0x4aadf1=null){const _0x3aebb7=_0x4d5f92;this[_0x3aebb7(0x21e)]=_0x4857f2,this[_0x3aebb7(0x17f)]=_0x4aadf1;}['_n'](_0x114c33,_0x25f711,_0x1ab37d=!![]){const _0x28dc2c=_0x4d5f92;return this[_0x28dc2c(0x21e)][_0x28dc2c(0x49e)](_0x28dc2c(0x805),this[_0x28dc2c(0x17f)],_0x114c33,_0x25f711,_0x1ab37d);}[_0x4d5f92(0x321)](_0x5251d9,_0xca8203){const _0x1cece9=_0x4d5f92;return this[_0x1cece9(0x21e)][_0x1cece9(0x406)](_0x1cece9(0x805),this[_0x1cece9(0x17f)],_0x5251d9,_0xca8203,!![]);}get[_0x4d5f92(0x60c)](){const _0x217ea8=_0x4d5f92;return this[_0x217ea8(0x17f)]===null;}async[_0x4d5f92(0x766)](_0x12839f){return this['_n']('ensure',[_0x12839f]);}async[_0x4d5f92(0x63c)](_0x732dae,_0x2a6419){const _0x381a0c=_0x4d5f92;return this['_n'](_0x381a0c(0x63c),[_0x732dae,_0x2a6419??null],![]);}async['getRecord'](_0x300350,_0x8cbea9){const _0x53c5b8=_0x4d5f92;return this['_n'](_0x53c5b8(0x5bb),[_0x300350,_0x8cbea9??null],![]);}async[_0x4d5f92(0x338)](_0x58f1a8){const _0x46dc15=_0x4d5f92;return this['_n'](_0x46dc15(0x338),[_0x58f1a8??null],![]);}async['listRecords'](_0x321d1a={}){const _0x1756ed=_0x4d5f92;return this['_n'](_0x1756ed(0x6b2),[_0x321d1a?.[_0x1756ed(0x17f)]??null],![]);}[_0x4d5f92(0x1b5)](_0x1b880e,_0x4b7cff){const _0x5c7746=_0x4d5f92;return this['_n'](_0x5c7746(0x1b5),[_0x1b880e,_0x4b7cff??null],![]);}async['create'](_0x4991d7){const _0x1ec0df=_0x4d5f92;return this['_nm'](_0x1ec0df(0x740),[_0x4991d7]);}async[_0x4d5f92(0x88e)](_0x4d0679,_0x347892){const _0x1afd28=_0x4d5f92;return this[_0x1afd28(0x321)](_0x1afd28(0x88e),[_0x4d0679,_0x347892]);}async['stop'](_0x53e2f3){const _0x17b4af=_0x4d5f92;return this[_0x17b4af(0x321)](_0x17b4af(0x893),[_0x53e2f3]);}async[_0x4d5f92(0x77b)](_0x5d01d5){const _0x492228=_0x4d5f92;if(!_0x5d01d5||typeof _0x5d01d5!=='object'||!_0x5d01d5[_0x492228(0x6fe)]||!_0x5d01d5[_0x492228(0x1a5)])return _0x5d01d5;for(let _0xdd8d9a=0x0;_0xdd8d9a<0x3;_0xdd8d9a++)await new Promise(_0x7653a8=>setImmediate(_0x7653a8));try{const _0xc39927=this[_0x492228(0x17f)]!==null?await this[_0x492228(0x63c)](_0x5d01d5[_0x492228(0x6fe)]):_0x5d01d5[_0x492228(0x30b)]?await this['get'](_0x5d01d5[_0x492228(0x30b)],_0x5d01d5[_0x492228(0x6fe)]):null;return _0xc39927||_0x5d01d5;}catch{return _0x5d01d5;}}async['start'](_0x398379){const _0x4cf549=_0x4d5f92;return this[_0x4cf549(0x77b)](await this[_0x4cf549(0x321)](_0x4cf549(0x898),[_0x398379]));}async['restart'](_0x5b5be6){const _0x2bfc15=_0x4d5f92;return this[_0x2bfc15(0x77b)](await this[_0x2bfc15(0x321)](_0x2bfc15(0x2f1),[_0x5b5be6]));}async[_0x4d5f92(0x574)](_0x170aa1){const _0x29d75b=_0x4d5f92;return this[_0x29d75b(0x321)](_0x29d75b(0x574),[_0x170aa1]);}async[_0x4d5f92(0x81f)](_0x2b766f,_0x2034be,_0xcbbf80){const _0x5c27ab=_0x4d5f92;return this[_0x5c27ab(0x321)](_0x5c27ab(0x81f),[_0x2b766f,_0x2034be,_0xcbbf80]);}async[_0x4d5f92(0x42f)](_0x489a8e){const _0x5bed69=_0x4d5f92;return this[_0x5bed69(0x321)](_0x5bed69(0x42f),[_0x489a8e]);}async['stopAll'](){const _0x4b9488=_0x4d5f92;return this[_0x4b9488(0x321)](_0x4b9488(0x3fe),[]);}async['bootSyncedPipelines'](){const _0x1bdc13=_0x4d5f92;return this[_0x1bdc13(0x321)](_0x1bdc13(0x649),[]);}['findOwner'](_0x2281ae,_0x10dc42){return this['_n']('findOwner',[_0x2281ae,_0x10dc42],![]);}}return engines={'OKDBEngines':_0x59fb36,'OKDBPipelines':_0x4061a0,'OKDBEngineHandle':_0x5596f7},engines;}var functions,hasRequiredFunctions;function requireFunctions(){const _0x4c64e0=_0x2ec26e;if(hasRequiredFunctions)return functions;hasRequiredFunctions=0x1;const {optionsArg:_0x1bc75e}=requireErrors(),_0x407b16=Number(process.env.OKDB_FN_POLL_MS)||0x14;class _0x3d1486{constructor(_0x5b0214,_0x10f2b5=null){const _0x33b952=_0x3ebb;this[_0x33b952(0x21e)]=_0x5b0214,this[_0x33b952(0x17f)]=_0x10f2b5??_0x33b952(0x8a3);}get[_0x4c64e0(0x30b)](){const _0x492d8f=_0x4c64e0;return this[_0x492d8f(0x21e)]['_envs']['get'](this['envName'])??null;}['_n'](_0x364e61,_0x67c719=[],_0x19fe6c=!![]){const _0xf67377=_0x4c64e0;try{return this[_0xf67377(0x21e)][_0xf67377(0x49e)](_0xf67377(0x762),this[_0xf67377(0x17f)],_0x364e61,_0x67c719,_0x19fe6c);}catch(_0x3bd9e5){throw _0x4a0b48(_0x3bd9e5);}}async[_0x4c64e0(0x321)](_0x4b019c,_0x3cbe3a=[]){const _0x365789=_0x4c64e0;try{return await this[_0x365789(0x21e)][_0x365789(0x406)](_0x365789(0x762),this[_0x365789(0x17f)],_0x4b019c,_0x3cbe3a,!![]);}catch(_0xc37d48){throw _0x4a0b48(_0xc37d48);}}async[_0x4c64e0(0x338)](){const _0xe0d239=_0x4c64e0;return this['_n'](_0xe0d239(0x338),[],![]);}async[_0x4c64e0(0x63c)](_0x53f53b){const _0x219712=_0x4c64e0;return this['_n'](_0x219712(0x63c),[_0x53f53b],![]);}async[_0x4c64e0(0x740)](_0x50bd67){return this['_n']('create',[_0x50bd67]);}async['update'](_0x59715e,_0x276fed={}){const _0x189618=_0x4c64e0;return this['_n'](_0x189618(0x88e),[_0x59715e,_0x276fed]);}async[_0x4c64e0(0x42f)](_0x254a4b){const _0x77edee=_0x4c64e0;return this['_n'](_0x77edee(0x42f),[_0x254a4b]);}async[_0x4c64e0(0x49d)](_0x5359dd){const _0x404231=_0x4c64e0,{functionName:functionName=null}=_0x1bc75e(_0x5359dd);return this['_n'](_0x404231(0x49d),[{'functionName':functionName}],![]);}async[_0x4c64e0(0x27e)](_0x48edc2){const _0x1bb277=_0x4c64e0;return this['_n'](_0x1bb277(0x27e),[_0x48edc2],![]);}async[_0x4c64e0(0x708)](_0x33128c){const _0x460844=_0x4c64e0;return _0x33128c=_0x1bc75e(_0x33128c,_0x460844(0x22e)),this['_n'](_0x460844(0x708),[_0x33128c]);}async['run'](_0x2d68ad,_0x37198f=null,_0xcd1b05={}){const _0x203858=_0x4c64e0,_0x4f3948={..._0xcd1b05},_0x57f004=_0x4f3948[_0x203858(0x2b7)];if(_0x57f004)_0x4f3948[_0x203858(0x43a)]=!!_0x57f004['aborted'];delete _0x4f3948[_0x203858(0x2b7)];const _0x389698=await this['_nm'](_0x203858(0x1d1),[_0x2d68ad,_0x37198f,_0x4f3948]),_0x6392=this[_0x203858(0x21e)],_0xbbe868=()=>_0x6392[_0x203858(0x5bc)][_0x203858(0x536)]();if(_0x57f004&&typeof _0x57f004[_0x203858(0x4fb)]===_0x203858(0x6d8))_0x57f004['addEventListener'](_0x203858(0x33a),_0xbbe868,{'once':!![]});let _0x3a53a9=![];try{for(;;){const _0x2db099=_0x6392[_0x203858(0x5bc)][_0x203858(0x52a)](_0x407b16);let _0x44fca9;try{_0x44fca9=await _0x6392['_callMacro'](_0x203858(0x762),this['envName'],'runPoll',[_0x389698,!!_0x57f004?.['aborted']],![],![]);}catch(_0x241b1b){_0x3a53a9=!![];throw _0x4a0b48(_0x241b1b);}if(!_0x44fca9||_0x44fca9[_0x203858(0x448)]!==!![])return _0x3a53a9=!![],_0x6392[_0x203858(0x5bc)]['wake'](),_0x44fca9;if(_0x44fca9['progressed'])_0x6392[_0x203858(0x5bc)][_0x203858(0x536)]();await _0x2db099;}}finally{if(_0x57f004&&typeof _0x57f004[_0x203858(0x393)]===_0x203858(0x6d8))_0x57f004[_0x203858(0x393)](_0x203858(0x33a),_0xbbe868);if(!_0x3a53a9)try{_0x6392['_call']('functions',this[_0x203858(0x17f)],_0x203858(0x476),[_0x389698],![]);}catch{}}}async[_0x4c64e0(0x84c)](_0x5af630={},_0x3d1ea8=null,_0x4fcbf2={}){return this['_nm']('preview',[_0x5af630,_0x3d1ea8,_0x4fcbf2]);}async[_0x4c64e0(0x893)](){}}function _0x4a0b48(_0x465612){const _0x6cf006=_0x4c64e0;if(_0x465612&&_0x465612[_0x6cf006(0x79f)]&&_0x465612[_0x6cf006(0x79f)]['runRecord'])_0x465612['_runRecord']=_0x465612['details'][_0x6cf006(0x5d5)];return _0x465612;}return functions={'OKDBFunctions':_0x3d1486},functions;}var processor={'exports':{}},lock,hasRequiredLock;function requireLock(){const _0x123973=_0x2ec26e;if(hasRequiredLock)return lock;hasRequiredLock=0x1;const {optionsArg:_0x5f5a74}=requireErrors();class _0x5ec622{constructor(_0x510a8f,_0x127a72){const _0x23f6b5=_0x3ebb;this[_0x23f6b5(0x337)]=_0x510a8f,this[_0x23f6b5(0x444)]=_0x127a72;}['_n'](_0x242d03,_0x437e46=[]){const _0x1dca48=_0x3ebb;return this['_lock']['_n'](_0x242d03,[this[_0x1dca48(0x444)],..._0x437e46]);}[_0x123973(0x5f7)](){const _0x2ac884=_0x123973;return this['_n'](_0x2ac884(0x5f7));}get[_0x123973(0x72e)](){return this['_n']('acquiredAt');}[_0x123973(0x72d)](){const _0x5e27a2=_0x123973;return this['_n'](_0x5e27a2(0x72d));}[_0x123973(0x3c4)](_0x297817){return this['_n']('extend',[_0x297817]);}async[_0x123973(0x70c)](){const _0x1e613b=_0x123973;return this['_n'](_0x1e613b(0x70c));}}class _0x54afa{constructor(_0x39bf9d,_0x6888ed,_0x2c63ca,_0x3410d8){const _0x1cddb3=_0x123973,{ttlMs:ttlMs=0x7530,heartbeatMs:heartbeatMs=null}=_0x5f5a74(_0x3410d8);this[_0x1cddb3(0x21e)]=_0x39bf9d,this[_0x1cddb3(0x26b)]=_0x2c63ca,this[_0x1cddb3(0x444)]=_0x39bf9d[_0x1cddb3(0x49e)]('lock',_0x6888ed,_0x1cddb3(0x626),[_0x2c63ca,ttlMs,heartbeatMs],![]),this[_0x1cddb3(0x51f)]=_0x6888ed;}['_n'](_0x5c0e24,_0x31b5b7=[]){const _0x2142d9=_0x123973;return this[_0x2142d9(0x21e)][_0x2142d9(0x49e)](_0x2142d9(0x777),this[_0x2142d9(0x51f)],_0x5c0e24,_0x31b5b7,![]);}['_key'](_0x2ffbaa){const _0x5d0c42=_0x123973;return this['_n'](_0x5d0c42(0x366),[this[_0x5d0c42(0x444)],_0x2ffbaa]);}async[_0x123973(0x423)](_0x4738ed,_0x28c1a5={},_0x322277={}){const _0x2b39d5=_0x123973,_0x575331=this['_n']('tryAcquire',[this[_0x2b39d5(0x444)],_0x4738ed,_0x28c1a5,_0x322277]);return{'acquired':_0x575331[_0x2b39d5(0x232)],'handle':_0x575331[_0x2b39d5(0x4aa)]==null?null:new _0x5ec622(this,_0x575331[_0x2b39d5(0x4aa)]),'current':_0x575331['current']};}[_0x123973(0x89a)](_0x5594ba){return this['_n']('inspect',[this['_id'],_0x5594ba]);}['list'](){const _0x2697cc=_0x123973;return this['_n'](_0x2697cc(0x338),[this['_id']]);}['signalWant'](_0x4201bc){const _0x583735=_0x123973;return this['_n'](_0x583735(0x516),[this['_id'],_0x4201bc]);}[_0x123973(0x30c)](_0x486833,_0x43d9b8=0x3e8){const _0x28ddae=_0x123973;return this['_n'](_0x28ddae(0x30c),[this[_0x28ddae(0x444)],_0x486833,_0x43d9b8]);}}return lock={'NativeLock':_0x54afa,'NativeLockHandle':_0x5ec622},lock;}var hasRequiredProcessor;function requireProcessor(){const _0xd261d3=_0x2ec26e;if(hasRequiredProcessor)return processor[_0xd261d3(0x3be)];hasRequiredProcessor=0x1;const _0xbcaac8=requireBridge(),{RawDb:_0x1b5976}=requireRawdb(),{NativeLock:_0x167fdc}=requireLock();function _0x4407f4(_0x18ada2){}class _0x5acc46{constructor(_0x2fbcf8){const _0x4c7c65=_0xd261d3;this[_0x4c7c65(0x30b)]=_0x2fbcf8,this[_0x4c7c65(0x21e)]=_0x2fbcf8;try{this['_n'](_0x4c7c65(0x2ac),[(_0xbe270d,_0x2aae43)=>{const _0x1b5a21=_0x4c7c65,_0x226149=this[_0x1b5a21(0x21e)][_0x1b5a21(0x793)],_0x44dffb=_0x226149?.[_0xbe270d]??_0x226149?.[_0x1b5a21(0x7c6)];if(typeof _0x44dffb===_0x1b5a21(0x6d8))_0x44dffb['call'](_0x226149,_0x2aae43);}],![]);}catch{}}['_n'](_0x5ab969,_0x2be8f8,_0x337411=!![]){const _0x23acd6=_0xd261d3;return this[_0x23acd6(0x30b)][_0x23acd6(0x21e)][_0x23acd6(0x49e)]('proc',this[_0x23acd6(0x30b)][_0x23acd6(0x6fe)],_0x5ab969,_0x2be8f8,_0x337411);}['register'](_0x3ccdc0,_0x3f0393={}){const _0x2c0f51=_0xd261d3,_0x3034c8={..._0x3f0393};if(typeof _0x3034c8[_0x2c0f51(0x5af)]===_0x2c0f51(0x6d8)&&_0x3034c8[_0x2c0f51(0x277)]!=null)throw new Error(_0x2c0f51(0x7cf)+_0x2c0f51(0x37e));if(typeof _0x3034c8[_0x2c0f51(0x5af)]===_0x2c0f51(0x4bb)&&_0x3034c8['module']!=null)throw new Error(_0x2c0f51(0x1b7));if(_0x3034c8[_0x2c0f51(0x277)]!=null){if(!_0x3034c8[_0x2c0f51(0x277)][_0x2c0f51(0x39d)])throw new Error(_0x2c0f51(0x881));const _0x55a2d0=_0x3034c8['module']['export']??_0x3034c8['module']['exportName']??_0x2c0f51(0x595),_0x32febe=require[_0x2c0f51(0x7a9)](_0x3034c8[_0x2c0f51(0x277)][_0x2c0f51(0x39d)]),_0x2ede7d=require(_0x32febe),_0x4dd47e=_0x2ede7d[_0x55a2d0]??_0x2ede7d[_0x2c0f51(0x822)]??_0x2ede7d;if(typeof _0x4dd47e!==_0x2c0f51(0x6d8))throw new Error('processor:\x20module\x20\x27'+_0x3034c8[_0x2c0f51(0x277)]['path']+_0x2c0f51(0x4ec)+_0x55a2d0+_0x2c0f51(0x22d));this[_0x2c0f51(0x30b)]['okdb'][_0x2c0f51(0x646)](_0x2c0f51(0x7c0),_0x2c0f51(0x382),[_0x32febe,_0x55a2d0,_0x4dd47e]),_0x3034c8[_0x2c0f51(0x277)]={'path':_0x32febe,'export':_0x55a2d0};}if(_0x3034c8['quantum']!=null){if(typeof _0x3034c8[_0x2c0f51(0x74a)][_0x2c0f51(0x277)]!==_0x2c0f51(0x4bb))throw new Error(_0x2c0f51(0x824));const _0x20aa4b=require[_0x2c0f51(0x7a9)](_0x3034c8[_0x2c0f51(0x74a)][_0x2c0f51(0x277)]),_0x5aa78c=require(_0x20aa4b),_0x36f47e=_0x3034c8[_0x2c0f51(0x74a)][_0x2c0f51(0x838)],_0x45b60f=_0x36f47e?_0x5aa78c[_0x36f47e]:_0x5aa78c['default']??_0x5aa78c;if(typeof _0x45b60f===_0x2c0f51(0x6d8)){const _0x5d4d0d=_0x36f47e?_0x3034c8[_0x2c0f51(0x74a)][_0x2c0f51(0x277)]+'#'+_0x36f47e:_0x3034c8[_0x2c0f51(0x74a)]['module'];this[_0x2c0f51(0x30b)][_0x2c0f51(0x21e)][_0x2c0f51(0x646)]('proc',_0x2c0f51(0x3d7),[_0x5d4d0d,_0x45b60f]);}_0x3034c8[_0x2c0f51(0x74a)]={..._0x3034c8[_0x2c0f51(0x74a)]};}_0x3034c8[_0x2c0f51(0x3f6)]!=null&&typeof _0x3034c8[_0x2c0f51(0x3f6)]===_0x2c0f51(0x1be)&&(_0x3034c8[_0x2c0f51(0x3f6)]={'$payload':_0xbcaac8['storePayload'](_0x3034c8['payload'],this['env'][_0x2c0f51(0x21e)])});if(_0x3034c8[_0x2c0f51(0x574)]!=null&&typeof _0x3034c8['rebuild']!==_0x2c0f51(0x6d8))throw new Error('processor:\x20rebuild\x20must\x20be\x20a\x20function');const _0x4e25da=this['_n']('register',[_0x3ccdc0??null,_0x3034c8]);return this[_0x2c0f51(0x1c1)](_0x4e25da['id'],_0x4e25da['cursorKey']);}[_0xd261d3(0x1c1)](_0x2a93d2,_0x55aa0a){const _0x3f5569=_0xd261d3,_0x5489fe=this,_0x1f2681=async()=>{const _0x1d6388=_0x3ebb;_0x5489fe['_n'](_0x1d6388(0x610),[_0x2a93d2]);};return _0x1f2681['id']=_0x2a93d2,_0x1f2681[_0x3f5569(0x4bd)]=_0x55aa0a,_0x1f2681['durableClock']=()=>_0x55aa0a?_0x5489fe['_n'](_0x3f5569(0x3df),[_0x2a93d2],![]):0x0,_0x1f2681[_0x3f5569(0x1c9)]=()=>_0x5489fe[_0x3f5569(0x63c)](_0x2a93d2),_0x1f2681['getStatus']=_0x1f2681['status'],_0x1f2681['pause']=()=>_0x5489fe[_0x3f5569(0x8ab)](_0x2a93d2),_0x1f2681[_0x3f5569(0x5ed)]=()=>_0x5489fe[_0x3f5569(0x5ed)](_0x2a93d2),_0x1f2681['kick']=()=>_0x5489fe[_0x3f5569(0x2c7)](_0x2a93d2),_0x1f2681[_0x3f5569(0x282)]=()=>_0x5489fe[_0x3f5569(0x282)](_0x2a93d2),_0x1f2681['awaitIdle']=_0x43c01f=>_0x5489fe[_0x3f5569(0x73f)](_0x2a93d2,_0x43c01f),_0x1f2681;}get['_stops'](){const _0x3a35db=_0xd261d3;try{return this['_n'](_0x3a35db(0x338),[],![])[_0x3a35db(0x1a7)](_0x40999f=>({'id':_0x40999f['id']}));}catch{return[];}}async[_0xd261d3(0x521)](_0x3baf33){const _0x4b262d=_0xd261d3;return new Set(this['_n'](_0x4b262d(0x521),[]));}['resumeAllAfterDrain'](_0x97c24a){const _0x2dbdfc=_0xd261d3;return this['_n'](_0x2dbdfc(0x544),[[..._0x97c24a??[]]]);}get[_0xd261d3(0x28a)](){const _0x2ab853=_0xd261d3;return new Set(this['_n']('list',[],![])[_0x2ab853(0x852)](_0xf90656=>_0xf90656[_0x2ab853(0x673)]==null)[_0x2ab853(0x1a7)](_0x5ee481=>_0x5ee481['id']));}[_0xd261d3(0x8a7)](){}get[_0xd261d3(0x337)](){const _0x47737d=_0xd261d3;if(!this[_0x47737d(0x74e)]){const _0x45d32a=new _0x167fdc(this[_0x47737d(0x30b)]['okdb'],this[_0x47737d(0x30b)][_0x47737d(0x6fe)],_0x47737d(0x7c0)),_0x1d033a=this[_0x47737d(0x30b)];_0x45d32a[_0x47737d(0x1bb)]=()=>new _0x1b5976(_0x1d033a,_0x47737d(0x4f1)),this[_0x47737d(0x74e)]=_0x45d32a;}return this[_0x47737d(0x74e)];}[_0xd261d3(0x3a6)](_0x10ef44,_0x4387f0){const _0x5793de=_0xd261d3;return this['_n'](_0x5793de(0x4ef),[typeof _0x10ef44===_0x5793de(0x4bb)?_0x10ef44:_0x10ef44['id'],_0x4387f0?.[_0x5793de(0x2d2)]??String(_0x4387f0??'')]);}get['_stateDb'](){const _0x183e28=_0xd261d3;return this[_0x183e28(0x5fa)]||(this[_0x183e28(0x5fa)]=new _0x1b5976(this['env'],_0x183e28(0x3d5)));}get[_0xd261d3(0x3ab)](){const _0x460f4c=_0xd261d3,_0x3dec89=this,_0x561103=_0xfcc405=>{const _0x2ff01b=_0x3ebb,_0x51e7a0=()=>_0x3dec89['_n']('regInfo',[_0xfcc405],![]);if(!_0x51e7a0())return undefined;const _0x2afed5=_0x46850f=>()=>_0x51e7a0()?.[_0x46850f],_0xe2341b={'id':_0xfcc405},_0x4c702d=(_0x3d09a3,_0x25feb7,_0x2d7d2b)=>Object[_0x2ff01b(0x79d)](_0xe2341b,_0x3d09a3,{'get':_0x25feb7,'set':_0x2d7d2b,'enumerable':!![],'configurable':!![]});return _0x4c702d(_0x2ff01b(0x41c),_0x2afed5('state')),_0x4c702d('mode',_0x2afed5(_0x2ff01b(0x182))),_0x4c702d(_0x2ff01b(0x281),_0x2afed5(_0x2ff01b(0x281))),_0x4c702d('lastClock',_0x2afed5('lastClock'),_0x23b697=>_0x3dec89['_n']('setLastClock',[_0xfcc405,_0x23b697])),_0x4c702d('cursorKey',_0x2afed5(_0x2ff01b(0x4bd))),_0x4c702d(_0x2ff01b(0x377),_0x2afed5(_0x2ff01b(0x7d1)),_0x2183a2=>_0x3dec89['_n'](_0x2ff01b(0x7a0),[_0xfcc405,!!_0x2183a2])),_0x4c702d(_0x2ff01b(0x532),_0x2afed5('handlerName')),_0x4c702d(_0x2ff01b(0x339),_0x2afed5(_0x2ff01b(0x339))),_0x4c702d(_0x2ff01b(0x632),_0x2afed5('drainDeadlineMs')),_0x4c702d(_0x2ff01b(0x3f1),_0x2afed5(_0x2ff01b(0x1b0)),_0x492349=>_0x3dec89['_n'](_0x2ff01b(0x655),[_0xfcc405,_0x492349])),_0x4c702d('meta',()=>_0x3dec89[_0x2ff01b(0x63c)](_0xfcc405)?.['meta']),_0x4c702d('_lockHandle',()=>_0x51e7a0()?.[_0x2ff01b(0x682)]?{'isHeld':()=>!!_0x51e7a0()?.[_0x2ff01b(0x682)]}:null),_0x4c702d(_0x2ff01b(0x4d7),()=>_0x51e7a0()?.[_0x2ff01b(0x3a1)]?()=>{}:null),_0x4c702d('_flushIntervalTimer',()=>_0x51e7a0()?.[_0x2ff01b(0x6a8)]?{}:null),_0x4c702d(_0x2ff01b(0x193),()=>_0x51e7a0()?.[_0x2ff01b(0x3cc)]?{}:null),_0xe2341b;},_0x29e1da=()=>_0x3dec89['_n']('list',[],![])[_0x460f4c(0x1a7)](_0x3d67f8=>_0x3d67f8['id']);return{'get':_0x22565c=>_0x561103(_0x22565c),'has':_0x7a35e7=>_0x29e1da()[_0x460f4c(0x1ac)](_0x7a35e7),get 'size'(){const _0x4d8a19=_0x460f4c;return _0x29e1da()[_0x4d8a19(0x6cf)];},'keys':()=>_0x29e1da()[Symbol[_0x460f4c(0x56e)]](),'values':()=>_0x29e1da()[_0x460f4c(0x1a7)](_0x561103)[Symbol['iterator']](),'entries':()=>_0x29e1da()[_0x460f4c(0x1a7)](_0x3ab3a9=>[_0x3ab3a9,_0x561103(_0x3ab3a9)])[Symbol['iterator']](),[Symbol[_0x460f4c(0x56e)]]:()=>_0x29e1da()['map'](_0x14afca=>[_0x14afca,_0x561103(_0x14afca)])[Symbol['iterator']](),'forEach':_0xed6e62=>_0x29e1da()[_0x460f4c(0x169)](_0x3b84b8=>_0xed6e62(_0x561103(_0x3b84b8),_0x3b84b8))};}async[_0xd261d3(0x3fe)](){const _0x24ee9b=_0xd261d3;return this['_n'](_0x24ee9b(0x3fe),[]);}[_0xd261d3(0x338)](){const _0x5ba726=_0xd261d3,_0x422a53=this['_n'](_0x5ba726(0x338),[],![]);if(!this[_0x5ba726(0x30b)][_0x5ba726(0x6fe)][_0x5ba726(0x6c8)]('~'))try{const _0xa01230=this[_0x5ba726(0x30b)][_0x5ba726(0x21e)][_0x5ba726(0x47b)];for(const _0x349391 of _0xa01230[_0x5ba726(0x6a4)](this[_0x5ba726(0x30b)][_0x5ba726(0x6fe)])){for(const _0x50b599 of _0xa01230['listIndexes'](_0x349391,this[_0x5ba726(0x30b)][_0x5ba726(0x6fe)])){const _0x1b8bea=_0x5ba726(0x1d9)+_0x349391+':'+_0x50b599;_0x422a53[_0x5ba726(0x2fb)]({'id':_0x1b8bea,'type':_0x349391,'mode':_0x5ba726(0x2d7),'state':_0x5ba726(0x714),'paused':![],'lag':0x0,'cursorKey':_0x1b8bea,'meta':{'name':_0x1b8bea}});}}}catch{}return _0x422a53;}[_0xd261d3(0x6e0)](){const _0x5d18b4=_0xd261d3;return this['_n'](_0x5d18b4(0x6e0),[],![]);}['durableTierLag'](){const _0x3b9861=_0xd261d3;return this['_n'](_0x3b9861(0x495),[],![]);}[_0xd261d3(0x559)](){const _0x3cd00e=_0xd261d3;return this['_n'](_0x3cd00e(0x559),[],![]);}['get'](_0x33c095){const _0x447507=_0xd261d3;return this['_n'](_0x447507(0x63c),[_0x33c095],![]);}[_0xd261d3(0x298)](_0x8d6ce0){const _0x348396=_0xd261d3;return this[_0x348396(0x63c)](typeof _0x8d6ce0===_0x348396(0x4bb)?_0x8d6ce0:_0x8d6ce0['id']);}[_0xd261d3(0x71f)](_0x51c55d){const _0x3b04ea=_0xd261d3;return this['_n'](_0x3b04ea(0x71f),[_0x51c55d],![]);}['resetCursor'](_0x139c3d){const _0x48cb73=_0xd261d3;return this['_n'](_0x48cb73(0x4fc),[_0x139c3d]);}[_0xd261d3(0x243)](_0x5ddcb2){const _0x314f3a=_0xd261d3;return this['_n'](_0x314f3a(0x243),[_0x5ddcb2]);}[_0xd261d3(0x407)](_0x558830){return this['_n']('isSnapshotComplete',[_0x558830],![]);}[_0xd261d3(0x1a6)](_0x3de4d5,_0xcd55b8){const _0x3b7843=_0xd261d3;return this['_n'](_0x3b7843(0x1a6),[_0x3de4d5,_0xcd55b8]);}async[_0xd261d3(0x73f)](_0x43dfab,_0x3dcb74){const _0x50f577=_0xd261d3;return this['_n'](_0x50f577(0x73f),[_0x43dfab,_0x3dcb74??0x7530]);}[_0xd261d3(0x8ab)](_0x5c0a20){const _0x32824d=_0xd261d3;return this['_n'](_0x32824d(0x8ab),[_0x5c0a20]);}['resume'](_0x30df18){return this['_n']('resume',[_0x30df18]);}async['setClaiming'](_0x4de793){return this['_n']('setClaiming',[_0x4de793]);}[_0xd261d3(0x2c7)](_0x3419b7){const _0x2141c5=_0xd261d3;return this['_n'](_0x2141c5(0x2c7),[_0x3419b7]);}[_0xd261d3(0x282)](_0x5b3705){return this['_n']('retry',[_0x5b3705]);}[_0xd261d3(0x2f1)](_0x288a9b,_0x11d28f={}){const _0x3b643e=_0xd261d3;return this['_n'](_0x3b643e(0x2f1),[_0x288a9b,_0x11d28f]);}async[_0xd261d3(0x832)](_0xe3f20b,_0xb2606c,_0x36e1f4){const [_0x5dd84a,_0x36d21c]=this['_n']('setMode',[_0xe3f20b,_0xb2606c,_0x36e1f4]);return{'version':_0x5dd84a,'flipClock':_0x36d21c};}async[_0xd261d3(0x7ae)](_0x5e10f7,_0x5e5154,_0x453acb={}){const _0x16ed7d=_0xd261d3;return this['_n'](_0x16ed7d(0x7ae),[_0x5e10f7,_0x5e5154,_0x453acb]);}}_0x5acc46['registerHandler']=function _0x257cae(_0x5b81b4,_0x100544){const _0x48cbed=_0xd261d3;if(typeof _0x5b81b4!==_0x48cbed(0x4bb)||!_0x5b81b4)throw new Error(_0x48cbed(0x1b8));if(typeof _0x100544!=='function')throw new Error(_0x48cbed(0x88a));_0xda72b4(_0x48cbed(0x7c0),'registerHandler',[_0x5b81b4,_0x100544]);},_0x5acc46['registerQuantum']=function _0x16d2cb(_0x5eef8,_0x1293e3){const _0x358c8d=_0xd261d3;if(typeof _0x5eef8!=='string'||!_0x5eef8)throw new Error(_0x358c8d(0x3af));if(typeof _0x1293e3!==_0x358c8d(0x6d8))throw new Error(_0x358c8d(0x341));let _0x4c803e=null;_0xda72b4(_0x358c8d(0x7c0),_0x358c8d(0x3d7),[_0x5eef8,(_0x322c75,_0xb2dba7)=>{if(!_0x4c803e)_0x4c803e=_0x1293e3();return _0x4c803e(_0x322c75,_0xb2dba7);}]);},_0x5acc46[_0xd261d3(0x256)]=_0x4eaba4=>/closed|not open|released/i[_0xd261d3(0x306)](String(_0x4eaba4)),_0x5acc46[_0xd261d3(0x2fc)]=![];function _0xda72b4(_0x3422dc,_0x44360c,_0x5779f5){const {staticCall:_0x217c1a}=requireLib();return _0x217c1a(_0x3422dc,_0x44360c,_0x5779f5);}return processor[_0xd261d3(0x3be)]=_0x5acc46,processor[_0xd261d3(0x3be)][_0xd261d3(0x4e0)]=_0x5acc46,processor[_0xd261d3(0x3be)]['setNative']=_0x4407f4,processor[_0xd261d3(0x3be)];}var okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0xde272=_0x2ec26e;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x109675={'PUT':'put','REMOVE':_0xde272(0x42f),'INDEX_DROP':_0xde272(0x764),'INDEX_REGISTER':_0xde272(0x7b7),'INDEX_RESET':_0xde272(0x219),'TYPE_REGISTER':_0xde272(0x754),'TYPE_DROP':_0xde272(0x195),'FTS_REGISTER':_0xde272(0x7b2),'FTS_DROP':'dropFts','FTS_RESET':_0xde272(0x73d),'SCHEMA_SET':_0xde272(0x573),'SCHEMA_DROP':_0xde272(0x389),'TTL_SET':_0xde272(0x364),'TTL_CLEAR':_0xde272(0x184)},_0x385c32={'SYSTEM_READY':_0xde272(0x586),'FIELD_RESOLVER_REGISTERED':_0xde272(0x251),'SYSTEM_STOPPED':_0xde272(0x1d7),'SYSTEM_CLOCK_CHANGE':_0xde272(0x301),'SYSTEM_POKE':'system:poke','SYSTEM_DRAIN':_0xde272(0x539),'SYSTEM_TYPE_DROP':_0xde272(0x4b0),'SYSTEM_PROC':_0xde272(0x798),'SYSTEM_BUS_STATE_CHANGE':_0xde272(0x2e3),'ITEM_CREATE':'item:create','ITEM_UPDATE':_0xde272(0x2b3),'ITEM_REMOVE':_0xde272(0x5de),'ITEM_PENDING':_0xde272(0x5e7),'INDEX_RESET':_0xde272(0x3fb),'INDEX_READY':_0xde272(0x85c),'INDEX_PROGRESS':_0xde272(0x8a0),'VIEW_PROGRESS':_0xde272(0x6dd),'INDEX_DROP':_0xde272(0x585),'INDEX_REGISTERED':_0xde272(0x2a1),'FTS_REGISTERED':_0xde272(0x4e5),'FTS_DROP':_0xde272(0x2be),'FTS_RESET':_0xde272(0x229),'SCHEMA_SET':_0xde272(0x247),'SCHEMA_DROP':_0xde272(0x7a2),'UNIQUE_VIOLATION':_0xde272(0x31e),'UNIQUE_VIOLATION_RESOLVED':_0xde272(0x3dd),'REF_VIOLATION':_0xde272(0x517),'REF_VIOLATION_RESOLVED':_0xde272(0x1b3),'SYNC_APPLY':_0xde272(0x40c),'TXN_START':_0xde272(0x75d),'TXN_END':'txn:end','TXN_ROLLBACK':_0xde272(0x3a4),'TYPE_REGISTERED':_0xde272(0x839),'TYPE_DROP':'type:drop','ENV_OPENED':'env:opened','ENV_REMOVED':'env:removed','SYSTEM_ENV_RELEASE':_0xde272(0x70a),'TTL_EXPIRED':_0xde272(0x568),'TTL_SET':_0xde272(0x439),'TTL_CLEAR':_0xde272(0x5e2),'LICENSE_INVALID':'license:invalid','LICENSE_ADDED':_0xde272(0x5f1),'LICENSE_ACTIVATED':_0xde272(0x35f),'LICENSE_REMOVED':'license:removed'},_0x4b7b5f={'CREATING':_0xde272(0x578),'RESETTING':'resetting','READY':'ready','DROPPING':_0xde272(0x324),'WAITING':_0xde272(0x56a),'ERROR':'error'},_0x5c30da={'CREATED':_0xde272(0x244),'STARTING':_0xde272(0x88c),'STARTED':_0xde272(0x1ce),'STOPPING':_0xde272(0x64f),'STOPPED':_0xde272(0x2d9)},_0x1ad3ce={'CREATING':_0xde272(0x578),'READY':_0xde272(0x288),'HALTED':_0xde272(0x614),'STOPPED':_0xde272(0x2d9),'RESETTING':_0xde272(0x7e0)},_0x36ada8=Object['freeze']({'POKE':_0xde272(0x60d),'DRAIN':_0xde272(0x24f),'TYPE_DROP':_0xde272(0x611),'PROC':_0xde272(0x1d3),'ENV_RELEASE':_0xde272(0x67a)});return okdbEnums={'BUS_EVENTS':_0x36ada8,'CHANGE_ACTIONS':_0x109675,'EVENTS':_0x385c32,'INDEX_STATE':_0x4b7b5f,'OKDB_STATE':_0x5c30da,'VIEW_STATE':_0x1ad3ce},okdbEnums;}var okdbGuardedRange,hasRequiredOkdbGuardedRange;function requireOkdbGuardedRange(){const _0x3e4544=_0x2ec26e;if(hasRequiredOkdbGuardedRange)return okdbGuardedRange;hasRequiredOkdbGuardedRange=0x1;const _0x18759d={'SKIP':Symbol[_0x3e4544(0x401)](_0x3e4544(0x633))},{OKDBError:_0x1f23fb}=requireOkdbError(),_0x16133d={'value':null,'done':!![]};class _0x3709ea{constructor(_0x36f860){this['_makeIterator']=_0x36f860;}get[_0x3e4544(0x2fd)](){return _0x16133d;}[Symbol['iterator']](){return this['_makeIterator']();}[_0x3e4544(0x1a7)](_0x43df33){const _0x511825=this;return new _0x3709ea(()=>{const _0x1ce5b4=_0x3ebb,_0x4cd76c=_0x511825[Symbol[_0x1ce5b4(0x56e)]]();return{'next'(){const _0x576e53=_0x1ce5b4;for(;;){const _0x39d3ad=_0x4cd76c[_0x576e53(0x788)]();if(_0x39d3ad['done'])return{'done':!![],'value':undefined};const _0x26285f=_0x43df33(_0x39d3ad['value']);if(_0x26285f===_0x18759d[_0x576e53(0x57b)])continue;if(_0x26285f===_0x16133d)return _0x4cd76c[_0x576e53(0x77e)]?.(),{'done':!![],'value':undefined};return{'done':![],'value':_0x26285f};}},'return'(){return _0x4cd76c['return']?.(),{'done':!![],'value':undefined};},[Symbol[_0x1ce5b4(0x56e)]](){return this;}};});}[_0x3e4544(0x852)](_0x219b61){const _0x4333b4=_0x3e4544;return this[_0x4333b4(0x1a7)](_0x2d7619=>_0x219b61(_0x2d7619)?_0x2d7619:_0x18759d[_0x4333b4(0x57b)]);}[_0x3e4544(0x169)](_0x1d328c){for(const _0x537d1f of this)_0x1d328c(_0x537d1f);}[_0x3e4544(0x5ca)](_0x37e5b8=0x0,_0x40fe45=Infinity){const _0x5b6d19=this;return new _0x3709ea(()=>{const _0x28b9a9=_0x3ebb,_0x2d464e=_0x5b6d19[Symbol['iterator']]();let _0x5bbe16=0x0;return{'next'(){const _0x59c9e1=_0x3ebb;for(;;){const _0x18df94=_0x2d464e[_0x59c9e1(0x788)]();if(_0x18df94[_0x59c9e1(0x3b5)])return{'done':!![],'value':undefined};const _0x3c38f1=_0x5bbe16++;if(_0x3c38f1<_0x37e5b8)continue;if(_0x3c38f1>=_0x40fe45)return _0x2d464e[_0x59c9e1(0x77e)]?.(),{'done':!![],'value':undefined};return _0x18df94;}},'return'(){const _0x5e685a=_0x3ebb;return _0x2d464e[_0x5e685a(0x77e)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x28b9a9(0x56e)]](){return this;}};});}['at'](_0x54e7ad){let _0x3a1b04=0x0;for(const _0x3eb526 of this)if(_0x3a1b04++===_0x54e7ad)return _0x3eb526;return undefined;}[_0x3e4544(0x164)](_0x1f7a88){const _0xe9b56f=this;return new _0x3709ea(()=>{const _0x25b566=_0x3ebb,_0x1b5721=_0xe9b56f[Symbol[_0x25b566(0x56e)]]();let _0x47db45=[];return{'next'(){const _0x279d07=_0x25b566;for(;;){if(_0x47db45[_0x279d07(0x6cf)])return{'done':![],'value':_0x47db45['shift']()};const _0x4d2000=_0x1b5721[_0x279d07(0x788)]();if(_0x4d2000[_0x279d07(0x3b5)])return{'done':!![],'value':undefined};const _0x3faf2f=_0x1f7a88(_0x4d2000[_0x279d07(0x820)]);if(Array[_0x279d07(0x69e)](_0x3faf2f))_0x47db45=_0x47db45[_0x279d07(0x79b)](_0x3faf2f);else{if(_0x3faf2f!=null&&(_0x3faf2f instanceof _0x3709ea||typeof _0x3faf2f[Symbol['iterator']]===_0x279d07(0x6d8)&&_0x279d07(0x45b)in _0x3faf2f))_0x47db45=_0x47db45['concat'](Array[_0x279d07(0x170)](_0x3faf2f));else{if(_0x3faf2f!==_0x18759d[_0x279d07(0x57b)])return{'done':![],'value':_0x3faf2f};}}}},'return'(){const _0x5832ba=_0x25b566;return _0x1b5721[_0x5832ba(0x77e)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x25b566(0x56e)]](){return this;}};});}[_0x3e4544(0x79b)](_0x300fa2){const _0x25fa27=this;return new _0x3709ea(()=>{const _0x2a62e9=_0x3ebb;let _0x21cf7b=_0x25fa27[Symbol[_0x2a62e9(0x56e)]](),_0x17616a=![];return{'next'(){const _0x497a96=_0x2a62e9;for(;;){const _0x270e27=_0x21cf7b[_0x497a96(0x788)]();if(!_0x270e27[_0x497a96(0x3b5)])return _0x270e27;if(_0x17616a)return{'done':!![],'value':undefined};_0x17616a=!![],_0x21cf7b=_0x300fa2[Symbol[_0x497a96(0x56e)]]();}},'return'(){const _0x45f143=_0x2a62e9;return _0x21cf7b[_0x45f143(0x77e)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x2a62e9(0x56e)]](){return this;}};});}[_0x3e4544(0x3ec)](_0x373524){const _0x282843=this;return new _0x3709ea(()=>{const _0x2cf99d=_0x282843[Symbol['iterator']]();return{'next'(){const _0x5ed0e5=_0x3ebb;for(;;){try{return _0x2cf99d[_0x5ed0e5(0x788)]();}catch(_0x1351df){const _0x175516=_0x373524(_0x1351df);if(_0x175516===_0x18759d[_0x5ed0e5(0x57b)]||_0x175516===undefined)continue;return{'done':![],'value':_0x175516};}}},'return'(){return _0x2cf99d['return']?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}[_0x3e4544(0x40d)](){const _0x3ec886=_0x3e4544;return Array[_0x3ec886(0x170)](this);}get[_0x3e4544(0x45b)](){const _0x2133c2=_0x3e4544;return Array[_0x2133c2(0x170)](this);}}const _0x180cc0={'total':0x0,'byLabel':{},'last':null};function _0x4f25c0(_0x14ab19){const _0x6dda0f=_0x3e4544;_0x180cc0['total']++;if(_0x14ab19)_0x180cc0['byLabel'][_0x14ab19]=(_0x180cc0['byLabel'][_0x14ab19]??0x0)+0x1;_0x180cc0['last']={'label':_0x14ab19??null,'at':Date[_0x6dda0f(0x89e)]()};}function _0x11276e(){const _0x512cd9=_0x3e4544;return{'total':_0x180cc0['total'],'byLabel':{..._0x180cc0[_0x512cd9(0x2e2)]},'last':_0x180cc0['last']};}function _0x2a2215(_0x2b9a64,_0x52b733={}){const {getTxnId:_0x4ad90d,resume:_0x2f0ea3,label:_0x3440c6,baseline:_0x5dc7fe}=_0x52b733;return new _0x3709ea(()=>{const _0x42dd84=_0x3ebb;let _0x3cc389=null,_0x48607a=![],_0x8e0de2=![],_0x50416b=![],_0xaa1cca,_0x4a1df1=0x0,_0x30e038;return{'next'(){const _0x3ff852=_0x3ebb;if(_0x50416b)return{'done':!![],'value':undefined};if(_0x8e0de2){let _0x454d07=![];if(_0x2f0ea3&&_0x4ad90d)try{_0x454d07=_0x4ad90d()===_0x30e038;}catch{}if(!_0x454d07){_0x50416b=!![],_0x4f25c0(_0x3440c6);throw new _0x1f23fb(_0x2f0ea3?_0x3ff852(0x1eb)+_0x3ff852(0x17d)+_0x3ff852(0x486):_0x3ff852(0x47e)+_0x3ff852(0x4bc)+'Array.from)\x20before\x20any\x20await.',_0x3ff852(0x643));}_0x3cc389=_0x2f0ea3(_0xaa1cca,_0x4a1df1)[Symbol[_0x3ff852(0x56e)]](),_0x8e0de2=![];}if(!_0x3cc389){if(_0x5dc7fe!==undefined)_0x30e038=_0x5dc7fe;else try{_0x30e038=_0x4ad90d?_0x4ad90d():undefined;}catch{_0x30e038=undefined;}try{_0x3cc389=_0x2b9a64()[Symbol[_0x3ff852(0x56e)]]();}catch(_0x49d0f2){_0x50416b=!![];throw _0x49d0f2;}}!_0x48607a&&(_0x48607a=!![],queueMicrotask(()=>{const _0x3d7514=_0x3ff852;_0x48607a=![];if(_0x50416b||_0x8e0de2)return;try{_0x3cc389?.[_0x3d7514(0x77e)]?.();}catch{}_0x3cc389=null,_0x8e0de2=!![];}));const _0x2b5ff8=_0x3cc389['next']();if(_0x2b5ff8[_0x3ff852(0x3b5)])return _0x50416b=!![],{'done':!![],'value':undefined};return _0xaa1cca=_0x2b5ff8[_0x3ff852(0x820)],_0x4a1df1++,_0x2b5ff8;},'return'(){const _0x576414=_0x3ebb;_0x50416b=!![];try{_0x3cc389?.[_0x576414(0x77e)]?.();}catch{}return{'done':!![],'value':undefined};},[Symbol[_0x42dd84(0x56e)]](){return this;}};});}return okdbGuardedRange={'guardSnapshotIterable':_0x2a2215,'OKDBGuardedRange':_0x3709ea,'recordGuardTrip':_0x4f25c0,'getGuardTripStats':_0x11276e},okdbGuardedRange;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0x546df3=_0x2ec26e;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x138b8b,performance:_0x5bf479}=require$$0$1,_0x4e96ca=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG===_0x546df3(0x3ee),_0x2f618e=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x47394f=process.env.OKDB_LOOP_LAG_ALL==='1',_0x2058ba=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0x5109fe{constructor(){const _0x30de8e=_0x546df3;this[_0x30de8e(0x580)]=_0x4e96ca,this[_0x30de8e(0x2c6)]=new Map(),this['_h']=null,this[_0x30de8e(0x25f)]=null,this['_started']=![],this['_log']=(_0x5b524a,_0x54da7f)=>process[_0x30de8e(0x1a3)][_0x30de8e(0x4ca)](_0x5b524a+(_0x54da7f?'\x20'+JSON['stringify'](_0x54da7f):'')+'\x0a');}[_0x546df3(0x89e)](){const _0x4e41da=_0x546df3;return _0x5bf479[_0x4e41da(0x89e)]();}[_0x546df3(0x31b)](_0x48f40e){const _0x3e8905=_0x546df3;if(typeof _0x48f40e===_0x3e8905(0x6d8))this[_0x3e8905(0x8a6)]=_0x48f40e;}[_0x546df3(0x3a5)](_0x3c0f2b,_0x2ad97c,_0x8dfd9d){const _0x5848ee=_0x546df3;if(!this[_0x5848ee(0x580)])return;let _0x599d4c=this[_0x5848ee(0x2c6)][_0x5848ee(0x63c)](_0x3c0f2b);!_0x599d4c&&(_0x599d4c={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this['_buckets']['set'](_0x3c0f2b,_0x599d4c)),_0x599d4c['ms']+=_0x2ad97c,_0x599d4c[_0x5848ee(0x3c2)]+=0x1,_0x2ad97c>_0x599d4c[_0x5848ee(0x371)]&&(_0x599d4c[_0x5848ee(0x371)]=_0x2ad97c,_0x599d4c[_0x5848ee(0x325)]=_0x8dfd9d||'');}[_0x546df3(0x898)](_0x2e086a){const _0x5c78c6=_0x546df3;if(!this[_0x5c78c6(0x580)]||this[_0x5c78c6(0x3cb)])return;this[_0x5c78c6(0x3cb)]=!![];if(_0x2e086a)this['_log']=_0x2e086a;this['_h']=_0x138b8b({'resolution':0xa}),this['_h'][_0x5c78c6(0x1cf)](),this['_timer']=setInterval(()=>this['_report'](),_0x2f618e);if(this[_0x5c78c6(0x25f)][_0x5c78c6(0x702)])this['_timer'][_0x5c78c6(0x702)]();}[_0x546df3(0x23d)](_0x561632){const _0x1d2cd1=_0x546df3;if(!this[_0x1d2cd1(0x877)])this[_0x1d2cd1(0x877)]=new Set();this[_0x1d2cd1(0x877)][_0x1d2cd1(0x7df)](_0x561632);if(!this[_0x1d2cd1(0x3cb)])this[_0x1d2cd1(0x359)]();}[_0x546df3(0x33d)](_0x5d6bfa){const _0x43429f=_0x546df3;this['_windowCbs']?.[_0x43429f(0x82f)](_0x5d6bfa);}[_0x546df3(0x359)](){const _0x2e323c=_0x546df3;if(this[_0x2e323c(0x77c)])return;this['_admissionStarted']=!![];!this['_h']&&(this['_h']=_0x138b8b({'resolution':0xa}),this['_h']['enable']());const _0x221b95=_0x2f618e;this[_0x2e323c(0x4b2)]=setInterval(()=>{const _0x9532b6=_0x2e323c,_0x4323db=this['_h'];if(!_0x4323db)return;const _0x16f15a=_0x4323db[_0x9532b6(0x710)](0x63)/0xf4240,_0x20fae0=_0x4323db[_0x9532b6(0x3e7)]/0xf4240,_0x17d19a=_0x4323db[_0x9532b6(0x349)]/0xf4240;_0x4323db['reset']();if(this['_windowCbs'])for(const _0x58620e of this[_0x9532b6(0x877)]){try{_0x58620e({'p99Ms':_0x16f15a,'maxMs':_0x20fae0,'meanMs':_0x17d19a,'reportMs':_0x221b95});}catch{}}},_0x221b95);if(this[_0x2e323c(0x4b2)][_0x2e323c(0x702)])this[_0x2e323c(0x4b2)][_0x2e323c(0x702)]();}[_0x546df3(0x813)](){const _0x2ba42c=_0x546df3,_0x194a49=this['_h'],_0x1f6950=_0x194a49[_0x2ba42c(0x3e7)]/0xf4240,_0x425ffa=_0x194a49[_0x2ba42c(0x710)](0x63)/0xf4240,_0x3c2fc5=_0x194a49['mean']/0xf4240;_0x194a49['reset']();const _0x509354=[...this[_0x2ba42c(0x2c6)][_0x2ba42c(0x72a)]()][_0x2ba42c(0x1a7)](([_0x3e5a15,_0x1f2937])=>({'label':_0x3e5a15,..._0x1f2937}))['sort']((_0x26a13a,_0x12efb8)=>_0x12efb8['ms']-_0x26a13a['ms'])[_0x2ba42c(0x5ca)](0x0,0x8);this[_0x2ba42c(0x2c6)][_0x2ba42c(0x871)]();const _0x357687=_0x509354[_0x2ba42c(0x7f8)]((_0x1ed55a,_0x155d86)=>_0x1ed55a+_0x155d86['ms'],0x0),_0x23d826=_0x509354[_0x2ba42c(0x1a7)](_0x4a5424=>_0x4a5424[_0x2ba42c(0x7c8)]+'='+_0x4a5424['ms']['toFixed'](0x0)+_0x2ba42c(0x6d7)+_0x4a5424['count']+(_0x4a5424[_0x2ba42c(0x371)]>0x5?'(worst\x20'+_0x4a5424[_0x2ba42c(0x371)][_0x2ba42c(0x5d9)](0x0)+'ms'+(_0x4a5424[_0x2ba42c(0x325)]?'\x20'+_0x4a5424[_0x2ba42c(0x325)]:'')+')':''));(_0x47394f||_0x1f6950>=_0x2058ba)&&this['_log']('loop-lag\x20'+_0x2f618e+_0x2ba42c(0x3a8)+_0x1f6950[_0x2ba42c(0x5d9)](0x0)+_0x2ba42c(0x7d0)+_0x425ffa['toFixed'](0x0)+_0x2ba42c(0x5c8)+_0x3c2fc5[_0x2ba42c(0x5d9)](0x0)+_0x2ba42c(0x6bb)+_0x357687[_0x2ba42c(0x5d9)](0x0)+'ms'+(_0x23d826['length']?_0x2ba42c(0x833)+_0x23d826[_0x2ba42c(0x3d2)]('\x20\x20'):''),{'feature':_0x2ba42c(0x2f8)});if(this['_windowCbs'])for(const _0x532227 of this[_0x2ba42c(0x877)]){try{_0x532227({'p99Ms':_0x425ffa,'maxMs':_0x1f6950,'meanMs':_0x3c2fc5,'reportMs':_0x2f618e});}catch{}}}[_0x546df3(0x893)](){const _0x3dc217=_0x546df3;if(this[_0x3dc217(0x25f)])clearInterval(this[_0x3dc217(0x25f)]);if(this['_h'])this['_h'][_0x3dc217(0x48e)]();this[_0x3dc217(0x25f)]=null,this['_h']=null,this[_0x3dc217(0x3cb)]=![];}}const _0x2543c5=new _0x5109fe();if(_0x2543c5[_0x546df3(0x580)])_0x2543c5['start']();return okdbLoopMonitor={'LOOP':_0x2543c5},okdbLoopMonitor;}var okdbTransaction,hasRequiredOkdbTransaction;function requireOkdbTransaction(){const _0xe7c62d=_0x2ec26e;if(hasRequiredOkdbTransaction)return okdbTransaction;hasRequiredOkdbTransaction=0x1;const _0x422f5c={'v4':()=>require$$0$2['randomUUID']()},{EVENTS:_0x3e0136}=requireOkdbEnums(),{OKDBError:_0x5caa13}=requireOkdbError(),{recordGuardTrip:_0x18d3a7,guardSnapshotIterable:_0x490b66}=requireOkdbGuardedRange(),{LOOP:_0x339ef9}=requireOkdbLoopMonitor();function _0x1821c4(_0x1b623d){return _0x1b623d['map'](_0x24fddc=>{const _0xdb4b47=_0x3ebb,[_0x45e586,_0x465c44]=_0x24fddc[_0xdb4b47(0x1fa)]||[];return{'action':_0x24fddc[_0xdb4b47(0x730)],'type':_0x45e586,'key':_0x465c44};});}class _0x416fef{[_0xe7c62d(0x21e)];[_0xe7c62d(0x858)]=[];[_0xe7c62d(0x18d)]=[];[_0xe7c62d(0x3a0)]=[];constructor(_0x30c9bd,_0x40047c={'useReadTransaction':![]}){const _0x1f767c=_0xe7c62d;this['okdb']=_0x30c9bd,this[_0x1f767c(0x66a)]=_0x40047c,this['id']=_0x422f5c['v4']();if(this[_0x1f767c(0x66a)][_0x1f767c(0x271)])try{this['_txnIdAtSnapshot']=this[_0x1f767c(0x21e)]['db'][_0x1f767c(0x7fd)]()[_0x1f767c(0x497)];}catch{this[_0x1f767c(0x427)]=undefined;}this[_0x1f767c(0x6b0)]=this['options'][_0x1f767c(0x271)]?this[_0x1f767c(0x21e)]['db'][_0x1f767c(0x271)]():null,this[_0x1f767c(0x208)]=![],this['_readViewExpired']=![],this['readTransaction']&&queueMicrotask(()=>{const _0x36d67a=_0x1f767c;this[_0x36d67a(0x6b0)]&&(this[_0x36d67a(0x408)](),this[_0x36d67a(0x4e8)]=!![]);});}[_0xe7c62d(0x576)](_0x534849){const _0x4e7a9b=_0xe7c62d;this[_0x4e7a9b(0x18d)][_0x4e7a9b(0x2fb)](_0x534849);}['onUndo'](_0x2d82e4){const _0x4c5e23=_0xe7c62d;this[_0x4c5e23(0x3a0)][_0x4c5e23(0x2fb)](_0x2d82e4);}['_closeReadTransaction'](){const _0x49e4a7=_0xe7c62d;if(!this[_0x49e4a7(0x6b0)])return;try{this['readTransaction'][_0x49e4a7(0x3b5)]();}catch(_0x15b959){}this[_0x49e4a7(0x6b0)]=null;}[_0xe7c62d(0x29b)](){const _0x422773=_0xe7c62d;if(this['_closed'])throw new _0x5caa13(_0x422773(0x527),_0x422773(0x1f6));if(this[_0x422773(0x4e8)]){let _0x2aba15=![];if(this['options']['useReadTransaction']===_0x422773(0x888)&&this[_0x422773(0x427)]!==undefined)try{_0x2aba15=this[_0x422773(0x21e)]['db'][_0x422773(0x7fd)]()[_0x422773(0x497)]===this['_txnIdAtSnapshot'];}catch{}if(!_0x2aba15){_0x18d3a7((this[_0x422773(0x21e)]?.['name']??'?')+_0x422773(0x725));throw new _0x5caa13(_0x422773(0x1ef)+_0x422773(0x369)+'before\x20any\x20await\x20—\x20or\x20opt\x20into\x20useReadTransaction:\x27tolerant\x27\x20to\x20keep\x20reading\x20while\x20'+_0x422773(0x68d),_0x422773(0x643));}}}[_0xe7c62d(0x63c)](_0x529ec1,_0x4ee4c0){const _0x2d5dc9=_0xe7c62d;return this[_0x2d5dc9(0x29b)](),this[_0x2d5dc9(0x21e)]['get'](_0x529ec1,_0x4ee4c0,{'transaction':this['readTransaction']});}[_0xe7c62d(0x2ec)](_0x15463a,_0x170dba){const _0x574f58=_0xe7c62d;return this[_0x574f58(0x29b)](),this[_0x574f58(0x21e)][_0x574f58(0x2ec)](_0x15463a,_0x170dba,{'transaction':this['readTransaction']});}['getMany'](_0x2a57da,_0x32b4ce){const _0x2f7a6a=_0xe7c62d;return this[_0x2f7a6a(0x29b)](),this['okdb'][_0x2f7a6a(0x791)](_0x2a57da,_0x32b4ce,{'transaction':this[_0x2f7a6a(0x6b0)]});}[_0xe7c62d(0x3b1)](_0x55ba14){const _0x3c1af0=_0xe7c62d;if(!this['options'][_0x3c1af0(0x271)])return _0x55ba14;if(_0x55ba14&&typeof _0x55ba14['then']===_0x3c1af0(0x6d8))return _0x55ba14;if(Array['isArray'](_0x55ba14))return _0x55ba14;const _0x18e72f=this,_0x1b50d3=_0x18e72f[_0x3c1af0(0x66a)][_0x3c1af0(0x271)]===_0x3c1af0(0x888),_0xa3e538=()=>{const _0x2a4f81=_0x3c1af0;if(!_0x18e72f['_readViewExpired'])return![];if(!_0x1b50d3)return!![];if(_0x18e72f[_0x2a4f81(0x427)]===undefined)return!![];try{return _0x18e72f[_0x2a4f81(0x21e)]['db'][_0x2a4f81(0x7fd)]()[_0x2a4f81(0x497)]!==_0x18e72f[_0x2a4f81(0x427)];}catch{return!![];}};return _0x490b66(()=>{const _0x171655=_0x3c1af0;if(_0x18e72f['_closed'])throw new _0x5caa13(_0x171655(0x527),_0x171655(0x1f6));if(_0xa3e538()){_0x18d3a7((_0x18e72f[_0x171655(0x21e)]?.[_0x171655(0x6fe)]??'?')+_0x171655(0x7c2));throw new _0x5caa13(_0x171655(0x4f0)+_0x171655(0x6a6)+_0x171655(0x35b),_0x171655(0x643));}return _0x55ba14;},{'label':(_0x18e72f[_0x3c1af0(0x21e)]?.[_0x3c1af0(0x6fe)]??'?')+_0x3c1af0(0x7c2),..._0x1b50d3?{'baseline':_0x18e72f[_0x3c1af0(0x427)],'getTxnId':()=>_0x18e72f[_0x3c1af0(0x21e)]['db'][_0x3c1af0(0x7fd)]()[_0x3c1af0(0x497)],'resume':(_0x56397c,_0xb34fa3)=>_0x55ba14['slice'](_0xb34fa3)}:{}});}['getRange'](_0x422349,_0x4ef4da={}){const _0x1dd774=_0xe7c62d;return this['_assertOpen'](),this[_0x1dd774(0x3b1)](this[_0x1dd774(0x21e)][_0x1dd774(0x3fa)](_0x422349,{'transaction':this[_0x1dd774(0x6b0)],..._0x4ef4da}));}[_0xe7c62d(0x618)](_0x41fb45,_0x206db2={}){const _0x396257=_0xe7c62d;return this['_assertOpen'](),this[_0x396257(0x3b1)](this[_0x396257(0x21e)][_0x396257(0x618)](_0x41fb45,{'transaction':this[_0x396257(0x6b0)],..._0x206db2}));}[_0xe7c62d(0x7d2)](_0x1d56d5,_0x1f1fb4={}){const _0xeaf03=_0xe7c62d;return this[_0xeaf03(0x29b)](),this['_range'](this['okdb'][_0xeaf03(0x7d2)](_0x1d56d5,{'transaction':this[_0xeaf03(0x6b0)],..._0x1f1fb4}));}[_0xe7c62d(0x2c0)](_0x5023f4,_0x4f2fbd,_0xfcab76={}){const _0x55c155=_0xe7c62d;return this[_0x55c155(0x29b)](),this[_0x55c155(0x3b1)](this[_0x55c155(0x21e)][_0x55c155(0x2c0)](_0x5023f4,_0x4f2fbd,{'transaction':this[_0x55c155(0x6b0)],..._0xfcab76}));}[_0xe7c62d(0x665)](_0x22dffd,_0x2ad212,_0x4cc4f6={}){const _0x57ec10=_0xe7c62d;return this['_assertOpen'](),this[_0x57ec10(0x3b1)](this[_0x57ec10(0x21e)][_0x57ec10(0x665)](_0x22dffd,_0x2ad212,{'transaction':this[_0x57ec10(0x6b0)],..._0x4cc4f6}));}['getClock'](_0x1ccc6c=null){const _0x34bf78=_0xe7c62d;return this[_0x34bf78(0x29b)](),this['okdb'][_0x34bf78(0x45e)](_0x1ccc6c,{'transaction':this[_0x34bf78(0x6b0)]});}[_0xe7c62d(0x436)](_0x195ee1){const _0x147de0=_0xe7c62d;return this[_0x147de0(0x29b)](),this['okdb']['getCount'](_0x195ee1,{'transaction':this['readTransaction']});}[_0xe7c62d(0x27f)](_0x7aa74d,_0x6a4049,_0x219f5f,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0xe7c62d(0x89e)](),origin:origin=null,ttl:ttl=null}={}){const _0x3cae94=_0xe7c62d;this[_0x3cae94(0x858)][_0x3cae94(0x2fb)]({'action':'put','args':[_0x7aa74d,_0x6a4049,_0x219f5f,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0xe7c62d(0x88e)](_0x138a3f,_0x14a2d8,_0x31710d,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0xe7c62d(0x89e)](),origin:origin=null,ttl:ttl=null}={}){const _0x4c2858=_0xe7c62d;this['actions'][_0x4c2858(0x2fb)]({'action':_0x4c2858(0x88e),'args':[_0x138a3f,_0x14a2d8,_0x31710d,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}['patch'](_0x5b2707,_0x3ed3e2,_0x32883b,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0xe7c62d(0x89e)](),origin:origin=null,ttl:ttl=null}={}){const _0x566877=_0xe7c62d;this[_0x566877(0x858)]['push']({'action':_0x566877(0x747),'args':[_0x5b2707,_0x3ed3e2,_0x32883b,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0xe7c62d(0x740)](_0x2acb4e,_0x33fb48,_0x121be5,{version:version=null,timestamp:timestamp=Date[_0xe7c62d(0x89e)](),origin:origin=null,ttl:ttl=null}={}){const _0x19dd25=_0xe7c62d;this[_0x19dd25(0x858)][_0x19dd25(0x2fb)]({'action':_0x19dd25(0x740),'args':[_0x2acb4e,_0x33fb48,_0x121be5,{'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0xe7c62d(0x42f)](_0x5785ea,_0x31be7d,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0xe7c62d(0x89e)](),origin:origin=null}={}){const _0x4dc67a=_0xe7c62d;this[_0x4dc67a(0x858)][_0x4dc67a(0x2fb)]({'action':_0x4dc67a(0x42f),'args':[_0x5785ea,_0x31be7d,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin}]});}[_0xe7c62d(0x397)](_0x50ada8,_0x3c9aa6,_0x18a372){const _0x398742=_0xe7c62d;this[_0x398742(0x858)][_0x398742(0x2fb)]({'action':'setTTL','args':[_0x50ada8,_0x3c9aa6,_0x18a372]});}['clearTTL'](_0x22b697,_0x2f9ea6){const _0x59a120=_0xe7c62d;this[_0x59a120(0x858)]['push']({'action':_0x59a120(0x483),'args':[_0x22b697,_0x2f9ea6]});}[_0xe7c62d(0x36e)](){const _0x2407ef=_0xe7c62d;if(this[_0x2407ef(0x208)])return;for(const _0x15445c of this[_0x2407ef(0x3a0)]){try{_0x15445c();}catch{}}this[_0x2407ef(0x21e)][_0x2407ef(0x29a)]['emit'](_0x3e0136[_0x2407ef(0x3b4)],{'id':this['id']}),this['actions']=[],this['_closeReadTransaction'](),this['_closed']=!![];}async[_0xe7c62d(0x2cd)](){const _0x4df007=_0xe7c62d;if(this[_0x4df007(0x208)])throw new Error(_0x4df007(0x527));const _0x15b7cc={'id':this['id'],'timestamp':Date[_0x4df007(0x89e)](),'actions':this[_0x4df007(0x858)]};this['okdb'][_0x4df007(0x29a)]['emit'](_0x3e0136['TXN_START'],_0x15b7cc);try{const _0x4baf6a=_0x339ef9[_0x4df007(0x580)]?_0x339ef9[_0x4df007(0x89e)]():0x0;await this[_0x4df007(0x21e)][_0x4df007(0x291)]['transaction'](()=>{const _0x413a63=_0x4df007;for(const _0x1b3444 of this['actions']){const _0x21154b=this[_0x413a63(0x21e)]['_'+_0x1b3444[_0x413a63(0x730)]];if(typeof _0x21154b!==_0x413a63(0x6d8))throw new Error(_0x413a63(0x77a)+_0x1b3444[_0x413a63(0x730)]);_0x21154b['call'](this[_0x413a63(0x21e)],this,..._0x1b3444['args']);}}),_0x339ef9[_0x4df007(0x580)]&&_0x339ef9['note']('txn-commit',_0x339ef9[_0x4df007(0x89e)]()-_0x4baf6a,(this['okdb'][_0x4df007(0x6fe)]??'?')+_0x4df007(0x212)+this[_0x4df007(0x858)]['length']);}catch(_0x270e7f){for(const _0x15563d of this[_0x4df007(0x3a0)]){try{_0x15563d();}catch{}}this[_0x4df007(0x408)](),this['_closed']=!![];if(_0x270e7f instanceof _0x5caa13)throw _0x270e7f;const _0x249be9={'cause':_0x270e7f,'env':this[_0x4df007(0x21e)]?.[_0x4df007(0x6fe)],'envPath':this['okdb']?.[_0x4df007(0x39d)],'pid':process[_0x4df007(0x7a5)],'txnId':this['id'],'actionCount':this['actions'][_0x4df007(0x6cf)],'actions':_0x1821c4(this[_0x4df007(0x858)]),'nativeCode':_0x270e7f?.['code'],'nativeName':_0x270e7f?.['name']};try{this[_0x4df007(0x21e)]?.[_0x4df007(0x793)]?.[_0x4df007(0x254)]?.('transaction\x20commit\x20failed',{'env':_0x249be9[_0x4df007(0x30b)],'envPath':_0x249be9[_0x4df007(0x537)],'pid':_0x249be9[_0x4df007(0x7a5)],'txnId':_0x249be9[_0x4df007(0x582)],'actionCount':_0x249be9['actionCount'],'actions':_0x249be9[_0x4df007(0x858)],'nativeCode':_0x249be9[_0x4df007(0x332)],'error':_0x270e7f?.[_0x4df007(0x2d2)],'stack':_0x270e7f?.['stack']});}catch{}throw new _0x5caa13(_0x270e7f?.['message']||_0x4df007(0x731),_0x4df007(0x7e4),_0x249be9);}this[_0x4df007(0x21e)]['events'][_0x4df007(0x6d6)](_0x3e0136[_0x4df007(0x63e)],_0x15b7cc);for(const _0x2dae05 of this[_0x4df007(0x18d)]){try{await _0x2dae05();}catch{}}this[_0x4df007(0x858)]=[],this[_0x4df007(0x408)](),this[_0x4df007(0x208)]=!![];}static['createWriteFacade'](_0x669532){const _0x44d6f1=_0xe7c62d;return Object[_0x44d6f1(0x62b)]({'id':_0x669532['id'],'put':_0x669532[_0x44d6f1(0x27f)][_0x44d6f1(0x202)](_0x669532),'update':_0x669532[_0x44d6f1(0x88e)][_0x44d6f1(0x202)](_0x669532),'patch':_0x669532['patch'][_0x44d6f1(0x202)](_0x669532),'create':_0x669532[_0x44d6f1(0x740)][_0x44d6f1(0x202)](_0x669532),'remove':_0x669532[_0x44d6f1(0x42f)][_0x44d6f1(0x202)](_0x669532),'setTTL':_0x669532['setTTL'][_0x44d6f1(0x202)](_0x669532),'clearTTL':_0x669532[_0x44d6f1(0x483)]['bind'](_0x669532),'commit':_0x669532[_0x44d6f1(0x2cd)][_0x44d6f1(0x202)](_0x669532),'rollback':_0x669532['rollback'][_0x44d6f1(0x202)](_0x669532),'get':_0x669532[_0x44d6f1(0x63c)]['bind'](_0x669532),'getEntry':_0x669532[_0x44d6f1(0x2ec)][_0x44d6f1(0x202)](_0x669532),'getMany':_0x669532[_0x44d6f1(0x791)][_0x44d6f1(0x202)](_0x669532),'getRange':_0x669532[_0x44d6f1(0x3fa)][_0x44d6f1(0x202)](_0x669532),'getValues':_0x669532[_0x44d6f1(0x618)][_0x44d6f1(0x202)](_0x669532),'getKeys':_0x669532[_0x44d6f1(0x7d2)]['bind'](_0x669532),'byIndex':_0x669532['byIndex']['bind'](_0x669532),'query':_0x669532[_0x44d6f1(0x665)][_0x44d6f1(0x202)](_0x669532),'getClock':_0x669532[_0x44d6f1(0x45e)][_0x44d6f1(0x202)](_0x669532),'getCount':_0x669532[_0x44d6f1(0x436)][_0x44d6f1(0x202)](_0x669532),'read':_0x669532,'raw':_0x669532});}static[_0xe7c62d(0x36f)](_0x13ffa6,_0x28e536=[]){const _0x1b7ead=_0xe7c62d;if(!Array[_0x1b7ead(0x69e)](_0x28e536))throw new _0x5caa13('txn\x20ops\x20must\x20be\x20an\x20array',_0x1b7ead(0x84b));for(const _0x17c37d of _0x28e536){if(Array['isArray'](_0x17c37d)){const [_0x50b164,..._0x2fef48]=_0x17c37d;if(typeof _0x13ffa6[_0x50b164]!==_0x1b7ead(0x6d8))throw new _0x5caa13('Unknown\x20transaction\x20action:\x20'+_0x50b164,_0x1b7ead(0x700),{'action':_0x50b164});_0x13ffa6[_0x50b164](..._0x2fef48);continue;}if(!_0x17c37d||typeof _0x17c37d!==_0x1b7ead(0x1be))throw new _0x5caa13(_0x1b7ead(0x57c),_0x1b7ead(0x591));const {action:_0x36f7cb}=_0x17c37d;if(typeof _0x36f7cb!=='string'||typeof _0x13ffa6[_0x36f7cb]!==_0x1b7ead(0x6d8))throw new _0x5caa13('Unknown\x20transaction\x20action:\x20'+_0x36f7cb,_0x1b7ead(0x700),{'action':_0x36f7cb});switch(_0x36f7cb){case _0x1b7ead(0x27f):case _0x1b7ead(0x88e):case'create':_0x13ffa6[_0x36f7cb](_0x17c37d[_0x1b7ead(0x673)],_0x17c37d[_0x1b7ead(0x366)],_0x17c37d[_0x1b7ead(0x820)],{..._0x17c37d[_0x1b7ead(0x66a)],'ttl':_0x17c37d[_0x1b7ead(0x463)]??_0x17c37d[_0x1b7ead(0x66a)]?.[_0x1b7ead(0x463)]??null});break;case _0x1b7ead(0x747):_0x13ffa6[_0x1b7ead(0x747)](_0x17c37d[_0x1b7ead(0x673)],_0x17c37d['key'],_0x17c37d[_0x1b7ead(0x747)],{..._0x17c37d['options'],'ttl':_0x17c37d['ttl']??_0x17c37d['options']?.[_0x1b7ead(0x463)]??null});break;case'remove':_0x13ffa6['remove'](_0x17c37d['type'],_0x17c37d[_0x1b7ead(0x366)],_0x17c37d[_0x1b7ead(0x66a)]||{});break;case _0x1b7ead(0x397):_0x13ffa6[_0x1b7ead(0x397)](_0x17c37d[_0x1b7ead(0x673)],_0x17c37d[_0x1b7ead(0x366)],_0x17c37d[_0x1b7ead(0x463)]);break;case _0x1b7ead(0x483):_0x13ffa6[_0x1b7ead(0x483)](_0x17c37d[_0x1b7ead(0x673)],_0x17c37d[_0x1b7ead(0x366)]);break;default:throw new _0x5caa13(_0x1b7ead(0x473)+_0x36f7cb,_0x1b7ead(0x700),{'action':_0x36f7cb});}}}static async[_0xe7c62d(0x22e)](_0x3cfd05,_0x1e519e,_0x48bb6c={}){const _0x276fb5=_0xe7c62d,_0xc72818=new _0x416fef(_0x3cfd05,_0x48bb6c),_0x5a3cf3=_0x416fef['createWriteFacade'](_0xc72818);try{typeof _0x1e519e===_0x276fb5(0x6d8)?await _0x1e519e(_0x5a3cf3):_0x416fef[_0x276fb5(0x36f)](_0xc72818,_0x1e519e||[]);const _0x169945=_0xc72818[_0x276fb5(0x858)][_0x276fb5(0x6cf)];return await _0xc72818[_0x276fb5(0x2cd)](),{'id':_0xc72818['id'],'actions':_0x169945};}catch(_0x29b0a2){try{_0xc72818['rollback']();}catch(_0x52537f){}throw _0x29b0a2;}}}return okdbTransaction=_0x416fef,okdbTransaction;}var dist={},hasRequiredDist;function requireDist(){const _0x2c9387=_0x2ec26e;if(hasRequiredDist)return dist;hasRequiredDist=0x1,Object[_0x2c9387(0x79d)](dist,'__esModule',{'value':!![]});const _0x56c99a=new Float64Array(0x2),_0x2be1b5=new Int32Array(_0x56c99a[_0x2c9387(0x6b6)],0x0,0x4),{lowIdx:_0x31cd05,highIdx:_0x4ea96e}=((()=>{const _0x2b066d=_0x2c9387;if(new Uint8Array(new Uint32Array([0xffee1100])[_0x2b066d(0x6b6)])[0x0]===0xff)return{'lowIdx':0x1,'highIdx':0x0};return{'lowIdx':0x0,'highIdx':0x1};})());let _0x5cec42=![],_0x4ee094;try{_0x4ee094=new TextEncoder();}catch(_0x4084bd){}function _0x34dcc5(_0x274d99,_0x4971b6,position,_0x2781f1){const _0x18259f=_0x2c9387;let _0x1f7273=_0x4971b6['dataView'];if(!_0x1f7273)_0x1f7273=_0x4971b6[_0x18259f(0x2a8)]=new DataView(_0x4971b6[_0x18259f(0x6b6)],_0x4971b6[_0x18259f(0x67f)],_0x4971b6['byteLength']+0x3>>0x2<<0x2);switch(typeof _0x274d99){case _0x18259f(0x4bb):let _0x4cc129=_0x274d99['length'],_0x2e370b=_0x274d99[_0x18259f(0x167)](0x0);if(!(_0x2e370b>=0x1c))_0x4971b6[position++]=0x1b;if(_0x4cc129<0x40){let _0xef5199,_0x154636;for(_0xef5199=0x0;_0xef5199<_0x4cc129;_0xef5199++){_0x2e370b=_0x274d99[_0x18259f(0x167)](_0xef5199);if(_0x2e370b<=0x4)_0x4971b6[position++]=0x4,_0x4971b6[position++]=_0x2e370b;else{if(_0x2e370b<0x80)_0x4971b6[position++]=_0x2e370b;else{if(_0x2e370b<0x800)_0x4971b6[position++]=_0x2e370b>>0x6|0xc0,_0x4971b6[position++]=_0x2e370b&0x3f|0x80;else(_0x2e370b&0xfc00)===0xd800&&((_0x154636=_0x274d99[_0x18259f(0x167)](_0xef5199+0x1))&0xfc00)===0xdc00?(_0x2e370b=0x10000+((_0x2e370b&0x3ff)<<0xa)+(_0x154636&0x3ff),_0xef5199++,_0x4971b6[position++]=_0x2e370b>>0x12|0xf0,_0x4971b6[position++]=_0x2e370b>>0xc&0x3f|0x80,_0x4971b6[position++]=_0x2e370b>>0x6&0x3f|0x80,_0x4971b6[position++]=_0x2e370b&0x3f|0x80):(_0x4971b6[position++]=_0x2e370b>>0xc|0xe0,_0x4971b6[position++]=_0x2e370b>>0x6&0x3f|0x80,_0x4971b6[position++]=_0x2e370b&0x3f|0x80);}}}}else{if(_0x4971b6[_0x18259f(0x581)])position+=_0x4971b6['utf8Write'](_0x274d99,position,_0x4971b6[_0x18259f(0x39c)]-position);else position+=_0x4ee094[_0x18259f(0x6af)](_0x274d99,_0x4971b6[_0x18259f(0x5df)](position))['written'];if(position>_0x4971b6['length']-0x4)throw new RangeError('String\x20does\x20not\x20fit\x20in\x20target\x20buffer');}break;case _0x18259f(0x5c1):_0x56c99a[0x0]=_0x274d99;let _0x1451d0=_0x2be1b5[_0x31cd05],_0x2f436d=_0x2be1b5[_0x4ea96e],_0x38684e;if(_0x274d99<0x0)return _0x1f7273['setInt32'](position+0x4,~(_0x1451d0>>>0x4|_0x2f436d<<0x1c)),_0x1f7273[_0x18259f(0x27d)](position+0x0,(_0x2f436d^0x7fffffff)>>>0x4),_0x1f7273['setInt32'](position+0x8,(_0x1451d0&0xf^0xf)<<0x4,!![]),position+0x9;else{if(_0x1451d0&0xf||_0x2781f1)_0x38684e=0x9;else{if(_0x1451d0&0xfffff)_0x38684e=0x8;else{if(_0x1451d0||_0x2f436d&0xf)_0x38684e=0x6;else _0x38684e=0x4;}}}_0x1f7273[_0x18259f(0x27d)](position+0x0,_0x2f436d>>>0x4|0x10000000),_0x1f7273[_0x18259f(0x27d)](position+0x4,_0x1451d0>>>0x4|_0x2f436d<<0x1c),_0x1f7273['setInt32'](position+0x8,(_0x1451d0&0xf)<<0x4,!![]);return position+_0x38684e;case'object':if(_0x274d99){if(Array[_0x18259f(0x69e)](_0x274d99)){for(let _0x353061=0x0,_0x404505=_0x274d99[_0x18259f(0x6cf)];_0x353061<_0x404505;_0x353061++){if(_0x353061>0x0)_0x4971b6[position++]=0x0;position=_0x34dcc5(_0x274d99[_0x353061],_0x4971b6,position,!![]);}break;}else{if(_0x274d99 instanceof Uint8Array){_0x4971b6[_0x18259f(0x328)](_0x274d99,position),position+=_0x274d99[_0x18259f(0x6cf)];break;}else throw new Error(_0x18259f(0x782)+JSON[_0x18259f(0x4d2)](_0x274d99));}}else _0x4971b6[position++]=0x0;break;case'boolean':_0x1f7273[_0x18259f(0x592)](position++,_0x274d99?0x7:0x6,!![]);return position;case _0x18259f(0x347):let _0x467c5=Number(_0x274d99);if(BigInt(_0x467c5)>_0x274d99){_0x56c99a[0x0]=_0x467c5;if(_0x467c5>0x0){if(_0x2be1b5[_0x31cd05])_0x2be1b5[_0x31cd05]--;else _0x2be1b5[_0x4ea96e]--,_0x2be1b5[_0x31cd05]=0xffffffff;}else{if(_0x2be1b5[_0x31cd05]<0xffffffff)_0x2be1b5[_0x31cd05]++;else _0x2be1b5[_0x4ea96e]++,_0x2be1b5[_0x31cd05]=0x0;}_0x467c5=_0x56c99a[0x0];}let _0x561dcf=_0x274d99-BigInt(_0x467c5);if(_0x561dcf===0x0n)return _0x34dcc5(_0x467c5,_0x4971b6,position,_0x2781f1);_0x34dcc5(_0x467c5,_0x4971b6,position,_0x2781f1),position+=0x9;let _0x57d31b=BigInt((_0x2be1b5[_0x4ea96e]>>0x14&0x7ff)-0x437),_0x29961b=_0x561dcf>>_0x57d31b;_0x4971b6[position-0x1]|=Number(_0x29961b),_0x561dcf-=_0x29961b<<_0x57d31b;let _0x3b148e=!![];while(_0x561dcf||_0x3b148e){_0x3b148e=![],_0x57d31b-=0x7n;let _0x286728=_0x561dcf>>_0x57d31b;_0x4971b6[position++]=Number(_0x286728)|0x80,_0x561dcf-=_0x286728<<_0x57d31b;}return position;case _0x18259f(0x809):return position;case _0x18259f(0x856):_0x4971b6[position++]=0x2;return _0x34dcc5(_0x274d99['description'],_0x4971b6,position,_0x2781f1);default:throw new Error(_0x18259f(0x862)+typeof _0x274d99);}if(_0x5cec42&&!_0x2781f1)_0x1f7273[_0x18259f(0x592)](position,0x0);return position;}let position;function _0x4cd41b(_0x27b416,_0x5e6b64,_0x287532,_0x3a1059){const _0x2486e7=_0x2c9387;position=_0x5e6b64;let _0x556cef=_0x27b416[position],_0x5a59f6;if(_0x556cef<0x18){if(_0x556cef<0x8){position++;if(_0x556cef==0x6)_0x5a59f6=![];else{if(_0x556cef==0x7)_0x5a59f6=!![];else{if(_0x556cef==0x0)_0x5a59f6=null;else{if(_0x556cef==0x2)_0x5a59f6=Symbol['for'](_0x3a3bec(_0x27b416,_0x287532));else return Uint8Array['prototype']['slice'][_0x2486e7(0x853)](_0x27b416,_0x5e6b64,_0x287532);}}}}else{let _0x369a53;try{_0x369a53=_0x27b416[_0x2486e7(0x2a8)]||(_0x27b416[_0x2486e7(0x2a8)]=new DataView(_0x27b416['buffer'],_0x27b416[_0x2486e7(0x67f)],_0x27b416[_0x2486e7(0x39c)]+0x3>>0x2<<0x2));}catch(_0x5d6785){_0x369a53=_0x27b416[_0x2486e7(0x2a8)]||(_0x27b416[_0x2486e7(0x2a8)]=new DataView(_0x27b416[_0x2486e7(0x6b6)],_0x27b416[_0x2486e7(0x67f)],_0x27b416[_0x2486e7(0x6b6)]['byteLength']-_0x27b416[_0x2486e7(0x67f)]));}let _0x583548=_0x369a53[_0x2486e7(0x46a)](position)<<0x4,_0x1b65aa=_0x287532-position,_0x5e7c54;if(_0x1b65aa>0x4)_0x5e7c54=position+0x8<=_0x27b416[_0x2486e7(0x6cf)]?_0x369a53[_0x2486e7(0x46a)](position+0x4):_0x27b416[position+0x4]<<0x18|_0x27b416[position+0x5]<<0x10|_0x27b416[position+0x6]<<0x8|_0x27b416[position+0x7],_0x583548|=_0x5e7c54>>>0x1c,_0x1b65aa<=0x6&&(_0x5e7c54&=-0x10000),_0x5e7c54=_0x5e7c54<<0x4,_0x1b65aa>0x8&&(_0x5e7c54=_0x5e7c54|_0x27b416[position+0x8]>>0x4);else _0x5e7c54=0x0;_0x556cef<0x10&&(_0x583548=_0x583548^0x7fffffff,_0x5e7c54=~_0x5e7c54);_0x2be1b5[_0x4ea96e]=_0x583548,_0x2be1b5[_0x31cd05]=_0x5e7c54,_0x5a59f6=_0x56c99a[0x0],position+=0x9;if(_0x1b65aa>0x9&&_0x27b416[position]>0x0){_0x5a59f6=BigInt(_0x5a59f6);let _0x5e83de=_0x583548>>0x14&0x7ff,_0x33b36e=_0x27b416[position-0x1]&0xf;_0x5a59f6+=BigInt(_0x33b36e)<<BigInt(_0x5e83de-0x437);while((_0x33b36e=_0x27b416[position])>0x0&&position++<_0x287532){_0x5a59f6+=BigInt(_0x33b36e&0x7f)<<BigInt((_0x5e6b64-position)*0x7+_0x5e83de-0x3f8);}}}}else{_0x556cef==0x1b&&position++;_0x5a59f6=_0x3a3bec(_0x27b416,_0x287532);if(position<_0x287532)position--;}while(position<_0x287532){if(_0x27b416[position]===0x0)position++;if(_0x3a1059)return _0x3fa388['position']=position,_0x5a59f6;let _0x9fd8f1=_0x4cd41b(_0x27b416,position,_0x287532,!![]);if(_0x5a59f6 instanceof Array)_0x5a59f6['push'](_0x9fd8f1);else _0x5a59f6=[_0x5a59f6,_0x9fd8f1];}return _0x5a59f6;}const _0x5819fe=()=>_0x5cec42=!![],_0x3fa388={'writeKey':_0x34dcc5,'readKey':_0x4cd41b,'enableNullTermination':_0x5819fe};let _0xb00fbc=[],_0x16e628=0x0;const _0x44d3c6=typeof Buffer!==_0x2c9387(0x809),_0x1862cb=_0x44d3c6?Buffer[_0x2c9387(0x73c)]:Uint8Array,_0x163de0=_0x2c7ff0=>{const _0x1fd247=_0x2c9387;let _0xb64b81;_0x16e628+0x64>_0xb00fbc[_0x1fd247(0x6cf)]&&(_0xb00fbc=new _0x1862cb(0x2000),_0x16e628=0x0,_0xb64b81=!![]);try{let _0x3cc355=_0xb00fbc[_0x1fd247(0x5ca)](_0x16e628,_0x16e628=_0x34dcc5(_0x2c7ff0,_0xb00fbc,_0x16e628));if(_0x16e628>_0xb00fbc[_0x1fd247(0x6cf)]){if(_0xb64b81)throw new Error(_0x1fd247(0x5fc));return _0x163de0(_0x2c7ff0);}return _0x3cc355;}catch(_0x33fda3){if(_0xb64b81)throw _0x33fda3;return _0x16e628=_0xb00fbc['length'],_0x163de0(_0x2c7ff0);}},_0x2130e7=_0x366e8a=>{const _0x4b9d96=_0x2c9387;return _0x4cd41b(_0x366e8a,0x0,_0x366e8a[_0x4b9d96(0x6cf)]);},fromCharCode=String[_0x2c9387(0x71e)];function _0x4e1d0d(){const _0x1310d9=_0x2c9387;let _0x3320cd=_0x1310d9(0x726),_0x36f201=[];for(let _0x454fa7=0x0;_0x454fa7<0x30;_0x454fa7++){let _0x1ec098=fromCharCode((_0x454fa7&0xf)+0x61)+fromCharCode((_0x454fa7>>0x4)+0x61);_0x3320cd+=_0x1310d9(0x246)+_0x1ec098+_0x1310d9(0x524)+_0x1ec098+_0x1310d9(0x40a)+_0x1ec098+_0x1310d9(0x30f)+_0x1ec098+_0x1310d9(0x2db)+_0x1ec098+_0x1310d9(0x765)+_0x1ec098+_0x1310d9(0x3bb)+_0x1ec098+_0x1310d9(0x4ae)+_0x36f201+_0x1310d9(0x43d),_0x36f201[_0x1310d9(0x2fb)](_0x1ec098);}return _0x3320cd+=_0x1310d9(0x72f)+_0x36f201+_0x1310d9(0x7f1),_0x3320cd;}const readString=typeof process!==_0x2c9387(0x809)&&process[_0x2c9387(0x4f5)]?function(_0xeb9957){let {setPosition:_0x4bba18,getPosition:_0x4865d5,readString:readString}=_0xeb9957;return _0x539ba9=>{_0x4bba18(position);let _0x20665d=readString(_0x539ba9);return position=_0x4865d5(),_0x20665d;};}(new Function(_0x2c9387(0x71e),'let\x20position;\x20let\x20readString\x20=\x20'+_0x4e1d0d()+_0x2c9387(0x701)+_0x2c9387(0x434)+_0x2c9387(0x2a2)+_0x2c9387(0x85a))(fromCharCode)):eval(_0x4e1d0d());function _0x3a3bec(_0x3d1967,_0x4fefcf){if(_0x3d1967[_0x4fefcf]>0x0){let _0xa50deb=_0x3d1967[_0x4fefcf];try{return _0x3d1967[_0x4fefcf]=0x0,readString(_0x3d1967);}finally{_0x3d1967[_0x4fefcf]=_0xa50deb;}}else return readString(_0x3d1967);}function _0x571fb4(_0x123d6f,_0x5249a1){const _0x583eda=_0x2c9387;if(typeof _0x123d6f=='object'){if(!_0x123d6f)return _0x5249a1==null?0x0:-0x1;if(_0x123d6f[_0x583eda(0x3f5)]){if(_0x5249a1==null)return 0x1;else return _0x5249a1[_0x583eda(0x3f5)]?_0x123d6f['compare'](_0x5249a1):-0x1;}let _0x2d4dfc;if(_0x5249a1 instanceof Array){let _0x5a5c1e=0x0;while((_0x2d4dfc=_0x571fb4(_0x123d6f[_0x5a5c1e],_0x5249a1[_0x5a5c1e]))==0x0&&_0x5a5c1e<=_0x123d6f[_0x583eda(0x6cf)]){_0x5a5c1e++;}return _0x2d4dfc;}_0x2d4dfc=_0x571fb4(_0x123d6f[0x0],_0x5249a1);if(_0x2d4dfc==0x0&&_0x123d6f[_0x583eda(0x6cf)]>0x1)return 0x1;return _0x2d4dfc;}else{if(typeof _0x123d6f==typeof _0x5249a1)return typeof _0x123d6f===_0x583eda(0x856)&&(_0x123d6f=Symbol['keyFor'](_0x123d6f),_0x5249a1=Symbol[_0x583eda(0x72c)](_0x5249a1)),_0x123d6f<_0x5249a1?-0x1:_0x123d6f===_0x5249a1?0x0:0x1;else{if(typeof _0x5249a1==_0x583eda(0x1be)){if(_0x5249a1 instanceof Array)return-_0x571fb4(_0x5249a1,_0x123d6f);return 0x1;}else return _0x5524a9[typeof _0x123d6f]<_0x5524a9[typeof _0x5249a1]?-0x1:0x1;}}}const _0x5524a9={'symbol':0x0,'undefined':0x1,'boolean':0x2,'number':0x3,'string':0x4},_0x38c910=null,_0x4a60e6=new Uint8Array([0xff]);return dist[_0x2c9387(0x1e9)]=_0x4a60e6,dist[_0x2c9387(0x6f1)]=_0x38c910,dist[_0x2c9387(0x4ad)]=_0x571fb4,dist[_0x2c9387(0x3c3)]=_0x5819fe,dist[_0x2c9387(0x227)]=_0x3fa388,dist[_0x2c9387(0x187)]=_0x2130e7,dist[_0x2c9387(0x5ad)]=_0x4cd41b,dist[_0x2c9387(0x310)]=_0x163de0,dist[_0x2c9387(0x417)]=_0x34dcc5,dist;}var keyenc,hasRequiredKeyenc;function requireKeyenc(){const _0x1ddc9d=_0x2ec26e;if(hasRequiredKeyenc)return keyenc;hasRequiredKeyenc=0x1;const {writeKey:_0x4a8e3b}=requireDist(),_0x23a82d=0x7ba,_0x1f378a=0x1000;function _0x3a6073(_0x42060c,_0x1ce593){const _0x340139=_0x3ebb;switch(typeof _0x42060c){case'string':return _0x42060c[_0x340139(0x6cf)]<=_0x23a82d&&_0x42060c[_0x340139(0x4c7)]();case _0x340139(0x5c1):case _0x340139(0x84f):return!![];case _0x340139(0x1be):if(_0x42060c===null)return!![];if(Array['isArray'](_0x42060c)){if(_0x1ce593>0x8||_0x42060c[_0x340139(0x6cf)]>_0x23a82d)return![];for(let _0x13232f=0x0;_0x13232f<_0x42060c[_0x340139(0x6cf)];_0x13232f++)if(!_0x3a6073(_0x42060c[_0x13232f],_0x1ce593+0x1))return![];return!![];}return Buffer[_0x340139(0x292)](_0x42060c)&&_0x42060c[_0x340139(0x6cf)]<=_0x23a82d;default:return![];}}function _0x2f508a(_0x3b21f6,_0xb8bab6){const _0x51afc7=_0x3ebb,_0x25235a=typeof _0x3b21f6;if(_0x25235a===_0x51afc7(0x4bb)){if(_0x3b21f6[_0x51afc7(0x6cf)]>=0x40||!_0x3b21f6[_0x51afc7(0x4c7)]()){if(!_0x3a6073(_0x3b21f6,0x0))return-0x1;}}else{if(_0x25235a!==_0x51afc7(0x5c1)){if(Array[_0x51afc7(0x69e)](_0x3b21f6)?_0x3b21f6[_0x51afc7(0x6cf)]===0x0||!_0x3a6073(_0x3b21f6,0x0):!_0x3a6073(_0x3b21f6,0x0))return-0x1;}}let _0x3ec85a;try{_0x3ec85a=_0x4a8e3b(_0x3b21f6,_0xb8bab6,0x0);}catch{return-0x1;}return _0x3ec85a>0x0&&_0x3ec85a<=_0x23a82d?_0x3ec85a:-0x1;}return keyenc={'encodeKey':_0x2f508a,'KEY_BUF_SIZE':_0x1f378a,'NO_FAST':Symbol(_0x1ddc9d(0x20d))},keyenc;}var okdbHlc,hasRequiredOkdbHlc;function requireOkdbHlc(){const _0x4fefc7=_0x2ec26e;if(hasRequiredOkdbHlc)return okdbHlc;hasRequiredOkdbHlc=0x1;const _0x3d9d4c=0x400,_0x2587d4=_0x3d9d4c-0x1,_0x3356e=0xea60;function _0x5e5568(_0xc27d7e,_0x4af709){const _0x4f3370=_0x3ebb;return _0xc27d7e*_0x3d9d4c+Math[_0x4f3370(0x3e7)](0x0,Math[_0x4f3370(0x5a9)](_0x4af709,_0x2587d4));}function _0x36a9eb(_0x111d09){const _0x17ddb7=_0x3ebb,_0x182a56=Math[_0x17ddb7(0x3e7)](0x0,Number(_0x111d09)||0x0),_0x39be75=_0x182a56%_0x3d9d4c,_0x172343=(_0x182a56-_0x39be75)/_0x3d9d4c;return{'pt':_0x172343,'l':_0x39be75};}function _0x32783b(_0x171dbd,_0x324aae=Date['now']()){const _0x457dba=_0x3ebb,{pt:_0x1471b1,l:_0x5252e3}=_0x36a9eb(_0x171dbd),_0x2d4a73=Math[_0x457dba(0x3e7)](_0x1471b1,_0x324aae),_0x311ac9=_0x2d4a73===_0x1471b1?Math[_0x457dba(0x5a9)](_0x5252e3+0x1,_0x2587d4):0x0;return _0x5e5568(_0x2d4a73,_0x311ac9);}function _0x4574e0(_0x427bc7,_0x3ec9af,_0x59a8ac=Date[_0x4fefc7(0x89e)]()){const _0x398912=_0x4fefc7,{pt:_0x4af231,l:_0x4a4636}=_0x36a9eb(_0x427bc7),{pt:_0x2de5ac,l:_0x2befa9}=_0x36a9eb(_0x3ec9af),_0x5ab046=Math[_0x398912(0x3e7)](_0x4af231,_0x2de5ac,_0x59a8ac);let _0x384f87;if(_0x5ab046===_0x4af231&&_0x5ab046===_0x2de5ac)_0x384f87=Math['min'](Math[_0x398912(0x3e7)](_0x4a4636,_0x2befa9)+0x1,_0x2587d4);else{if(_0x5ab046===_0x4af231)_0x384f87=Math[_0x398912(0x5a9)](_0x4a4636+0x1,_0x2587d4);else _0x5ab046===_0x2de5ac?_0x384f87=Math['min'](_0x2befa9+0x1,_0x2587d4):_0x384f87=0x0;}return _0x5e5568(_0x5ab046,_0x384f87);}function _0x4951a9(_0x555372,_0x245dc3){const _0x390b94=Number(_0x555372)||0x0,_0x548036=Number(_0x245dc3)||0x0;if(_0x390b94<_0x548036)return-0x1;if(_0x390b94>_0x548036)return 0x1;return 0x0;}function _0x51d68f(_0x3472b6){return _0x36a9eb(_0x3472b6)['pt'];}return okdbHlc={'send':_0x32783b,'recv':_0x4574e0,'compare':_0x4951a9,'toMs':_0x51d68f,'encode':_0x5e5568,'decode':_0x36a9eb,'SCALE':_0x3d9d4c,'L_MAX':_0x2587d4,'DRIFT_MAX':_0x3356e},okdbHlc;}var env,hasRequiredEnv;function requireEnv(){const _0x1b2b60=_0x2ec26e;if(hasRequiredEnv)return env;hasRequiredEnv=0x1;const {fromArray:_0x1a3ff7,chunkedRange:_0x5b4174,pinnedChunks:_0x247861,claimPrefetch:_0x3c513c}=requireIterable(),{reclass:_0x5c76fc,NotImplementedNative:_0xcec407,OKDBError:_0x45c9f2,optionsArg:_0x4ad11c}=requireErrors(),{OKDBViews:_0x333950}=requireViews(),{OKDBQueue:_0xe65900}=requireQueue(),{OKDBTimeMachine:_0x678cf4}=requireTimemachine(),_0x5a43a6=_0x16a7e5=>{const _0x8a959c=_0x3ebb;try{return!_0x16a7e5[_0x8a959c(0x89d)]||_0x16a7e5['_license']['isFeatureEnabled'](_0x8a959c(0x54d));}catch{return!![];}},{OKDBFiles:_0x163ded}=requireFiles(),{OKDBEngines:_0x34352e,OKDBPipelines:_0x4ed038}=requireEngines(),{OKDBFunctions:_0x268fb7}=requireFunctions(),_0x129065=requireProcessor(),{RawDb:_0x27cb06}=requireRawdb(),_0x5bf56f=requireBridge();let _0x5c983d=null;const _0x571000=()=>_0x5c983d||=requireOkdbTransaction(),_0x37b436=(..._0x54b7ac)=>requireOkdbGuardedRange()[_0x1b2b60(0x7ef)](..._0x54b7ac),_0x594408=Buffer[_0x1b2b60(0x170)]([0xff]),_0x3232f1=process.env.OKDB_NATIVE_RAW_READS!=='0',_0x59bda7=_0x3232f1&&process.env.OKDB_NATIVE_FAST_GET!=='0',{NO_FAST:_0x14ec1a}=requireKeyenc(),_0x15ed6c=new Set(_0x3232f1?['getRange',_0x1b2b60(0x2c0),_0x1b2b60(0x665),_0x1b2b60(0x267),_0x1b2b60(0x7d2)]:[]),_0x13a945=new Set(['get','getEntry',_0x1b2b60(0x791),_0x1b2b60(0x3fa),_0x1b2b60(0x7d2),_0x1b2b60(0x618),_0x1b2b60(0x436),_0x1b2b60(0x587),_0x1b2b60(0x606),_0x1b2b60(0x2c0),_0x1b2b60(0x490),'query',_0x1b2b60(0x32d),_0x1b2b60(0x181),_0x1b2b60(0x45e),_0x1b2b60(0x267),_0x1b2b60(0x3c2),'now','hasType',_0x1b2b60(0x6a4),_0x1b2b60(0x2d8),_0x1b2b60(0x2ef),_0x1b2b60(0x7ec),_0x1b2b60(0x2dd),_0x1b2b60(0x58d),'getUniqueViolations',_0x1b2b60(0x7e9),_0x1b2b60(0x4ee),_0x1b2b60(0x2d0),_0x1b2b60(0x2e7),_0x1b2b60(0x210),'getRefViolation','listRefViolations',_0x1b2b60(0x329),_0x1b2b60(0x5cc),_0x1b2b60(0x81b),'getDefaultTTL',_0x1b2b60(0x6fe),'path','id',_0x1b2b60(0x497),'hlc','resolvedFields',_0x1b2b60(0x513),_0x1b2b60(0x89f)]),_0x38aec6=new Set([_0x1b2b60(0x898),_0x1b2b60(0x330),_0x1b2b60(0x718),_0x1b2b60(0x695),_0x1b2b60(0x534),_0x1b2b60(0x6cd),_0x1b2b60(0x7ea),'versions','values','snapshot',_0x1b2b60(0x7f7),_0x1b2b60(0x366),_0x1b2b60(0x6b9),_0x1b2b60(0x575)]);function _0x23abb4(_0x4b51af,_0x49f6c7,_0xdbc404){const _0x439d2e=new Map();return(_0x58a694,_0x208b78)=>{const _0x22ebae=_0x3ebb,_0x2eee5d=JSON['stringify'](_0x208b78),_0x40224f=_0x439d2e[_0x22ebae(0x63c)](_0x2eee5d);if(_0x40224f){if(_0x40224f[_0x22ebae(0x41c)]===_0x22ebae(0x35d))throw _0x3ba523();_0x439d2e[_0x22ebae(0x82f)](_0x2eee5d);if(_0x40224f[_0x22ebae(0x41c)]==='err')throw _0x40224f[_0x22ebae(0x820)];return _0x40224f[_0x22ebae(0x820)];}const _0x58074f=_0x58a694(..._0x208b78);if(!_0x58074f||typeof _0x58074f[_0x22ebae(0x2b0)]!=='function')return _0x58074f;const _0x23d408={'state':_0x22ebae(0x35d),'value':undefined},_0x5f0be8=(_0x3f1832,_0x50141a)=>{const _0x1c33e2=_0x22ebae;_0x23d408[_0x1c33e2(0x41c)]=_0x3f1832,_0x23d408[_0x1c33e2(0x820)]=_0x50141a;if(_0x439d2e[_0x1c33e2(0x63c)](_0x2eee5d)!==_0x23d408)return;setTimeout(()=>_0x439d2e[_0x1c33e2(0x63c)](_0x2eee5d)===_0x23d408&&_0x439d2e[_0x1c33e2(0x82f)](_0x2eee5d),0x7530)[_0x1c33e2(0x702)]();try{_0x4b51af[_0x1c33e2(0x21e)]['_call'](_0x1c33e2(0x29a),null,'emit',[_0x1c33e2(0x251),{'env':_0x4b51af['name'],'type':_0x49f6c7,'field':_0xdbc404}],!![]);}catch{}};_0x58074f['then'](_0x4473ac=>_0x5f0be8('ok',_0x4473ac),_0x71c2da=>_0x5f0be8('err',_0x71c2da));for(let _0x12c2cb=0x0;_0x12c2cb<0x64&&_0x23d408[_0x22ebae(0x41c)]===_0x22ebae(0x35d);_0x12c2cb++)process['_tickCallback']();if(_0x23d408[_0x22ebae(0x41c)]==='ok')return _0x23d408[_0x22ebae(0x820)];if(_0x23d408[_0x22ebae(0x41c)]==='err')throw _0x23d408['value'];_0x439d2e['set'](_0x2eee5d,_0x23d408);throw _0x3ba523();};}function _0x3ba523(){const _0x1954be=_0x1b2b60;return Object[_0x1954be(0x76f)](new Error(_0x1954be(0x65a)),{'code':_0x1954be(0x1ea)});}class _0x4dc0fd{constructor(_0x51b8ff,_0x57f95b){const _0x964c4d=_0x1b2b60;this[_0x964c4d(0x21e)]=_0x51b8ff,this['name']=_0x57f95b,this['events']=_0x51b8ff['events'],this[_0x964c4d(0x793)]=_0x51b8ff[_0x964c4d(0x793)],this[_0x964c4d(0x60a)]=!![],this[_0x964c4d(0x62f)]=null,this[_0x964c4d(0x62a)]=new _0x333950(this),this['processor']=new _0x129065(this);if(!_0x57f95b[_0x964c4d(0x6c8)]('~')||_0x57f95b[_0x964c4d(0x1ac)](':emb:'))this[_0x964c4d(0x601)]=new _0xe65900(this);if(!_0x57f95b['startsWith']('~'))this[_0x964c4d(0x6be)]=new _0x163ded(this);this[_0x964c4d(0x762)]=new _0x268fb7(_0x51b8ff,_0x57f95b),this[_0x964c4d(0x1a5)]=new _0x34352e(_0x51b8ff,_0x57f95b,_0x51b8ff[_0x964c4d(0x1a5)]),this['pipelines']=new _0x4ed038(_0x51b8ff,_0x57f95b);if(!_0x57f95b[_0x964c4d(0x6c8)]('~')&&_0x51b8ff[_0x964c4d(0x66a)]['timeMachine']&&_0x5a43a6(_0x51b8ff))this['timeMachine']=new _0x678cf4(this);_0x5bf56f['registerEnv'](this[_0x964c4d(0x39d)],this);const _0x409b54=this;this[_0x964c4d(0x291)]={async 'transaction'(_0x26606c){const _0x20ac3f=_0x964c4d,_0x38e50c=[];_0x409b54['_txnBuf']=_0x38e50c;try{_0x26606c();}finally{_0x409b54[_0x20ac3f(0x62f)]=null;}return _0x409b54[_0x20ac3f(0x21e)]['_wb']['enqueue'](_0x20ac3f(0x30b),_0x409b54[_0x20ac3f(0x6fe)],_0x20ac3f(0x2cd),[_0x38e50c]);},'drain'(){const _0x2140a2=_0x964c4d;return _0x409b54[_0x2140a2(0x21e)][_0x2140a2(0x53b)]['drain']();},'flushLmdb'(){const _0x2affad=_0x964c4d;return _0x409b54[_0x2affad(0x21e)][_0x2affad(0x53b)][_0x2affad(0x56b)]();},'markClosed'(){}};const _0x627aa1=new _0x27cb06(this,'');_0x627aa1[_0x964c4d(0x7fd)]=()=>({'lastTxnId':this['_n'](_0x964c4d(0x497),[])}),Object[_0x964c4d(0x79d)](_0x627aa1,_0x964c4d(0x3ce),{'get':()=>this[_0x964c4d(0x21e)][_0x964c4d(0x53b)][_0x964c4d(0x56b)](),'configurable':!![]}),Object[_0x964c4d(0x79d)](_0x627aa1,_0x964c4d(0x624),{'get':()=>this[_0x964c4d(0x21e)][_0x964c4d(0x53b)][_0x964c4d(0x56b)](),'configurable':!![]});const _0x432565=_0x627aa1[_0x964c4d(0x63c)]['bind'](_0x627aa1);_0x627aa1[_0x964c4d(0x63c)]=_0x1c3b49=>_0x1c3b49===_0x964c4d(0x4d8)?this['_n'](_0x964c4d(0x45e),[null]):_0x432565(_0x1c3b49),this['db']=_0x627aa1;}async['close'](){const _0x507128=_0x1b2b60;this[_0x507128(0x7ba)]=!![];}get[_0x1b2b60(0x789)](){const _0x4b9841=_0x1b2b60;return new Map(this[_0x4b9841(0x21e)][_0x4b9841(0x49e)]('db',null,'formerOrigins',[this[_0x4b9841(0x6fe)]],![]));}get['typesDb'](){const _0x2d0133=_0x1b2b60;return this[_0x2d0133(0x884)]||(this['_typesDb']=new _0x27cb06(this,_0x2d0133(0x50b)));}[_0x1b2b60(0x4e7)](_0x182ccc){const _0x3832e6=_0x1b2b60,_0x3abe12=this[_0x3832e6(0x779)][_0x3832e6(0x63c)](_0x182ccc);if(_0x3abe12===undefined||String(_0x182ccc)[_0x3832e6(0x6c8)]('~fts:')||String(_0x182ccc)[_0x3832e6(0x6c8)](_0x3832e6(0x491))){const {OKDBError:_0x3f53a3}=requireErrors();throw new _0x3f53a3('Type\x20\x22'+_0x182ccc+_0x3832e6(0x63a),_0x3832e6(0x249),{'type':_0x182ccc});}const _0x397fbb=this,_0x3b09d6=new _0x27cb06(_0x397fbb,_0x3832e6(0x257)+_0x182ccc+_0x3832e6(0x7bd)),_0x3a9b2c=new Map();for(const _0x1f1508 of _0x3b09d6[_0x3832e6(0x7d2)]()){const _0x150c33=_0x3b09d6['get'](_0x1f1508)||{},_0x26fb39={'parts':_0x1f1508['split']('~'),'db':new _0x27cb06(_0x397fbb,'type:'+_0x182ccc+':index:'+_0x1f1508,{'dupSort':!![]})};if(_0x150c33[_0x3832e6(0x1e4)])_0x26fb39[_0x3832e6(0x1e4)]=_0x150c33[_0x3832e6(0x1e4)];if(_0x150c33['unique'])_0x26fb39[_0x3832e6(0x234)]=!![];if(_0x150c33['sparse'])_0x26fb39[_0x3832e6(0x7b3)]=!![];if(_0x150c33[_0x3832e6(0x28d)])_0x26fb39[_0x3832e6(0x28d)]=_0x150c33[_0x3832e6(0x28d)];_0x26fb39[_0x3832e6(0x875)]=new Set((_0x150c33[_0x3832e6(0x875)]??[])['map'](_0x576718=>_0x576718[_0x3832e6(0x233)]+':'+_0x576718[_0x3832e6(0x6fe)])),_0x3a9b2c[_0x3832e6(0x328)](_0x1f1508,_0x26fb39);}return{'root':new _0x27cb06(_0x397fbb,'type:'+_0x182ccc),'data':new _0x27cb06(_0x397fbb,'type:'+_0x182ccc+_0x3832e6(0x5eb),{'useVersions':!![]}),'indexes':_0x3b09d6,'clockToChange':new _0x27cb06(_0x397fbb,'type:'+_0x182ccc+':clockToChange'),'keyToChange':new _0x27cb06(_0x397fbb,_0x3832e6(0x257)+_0x182ccc+_0x3832e6(0x4b6)),'fieldSchema':new Map(Object[_0x3832e6(0x72a)](_0x3abe12['fields']||{})['map'](([_0x510b60,_0x47c9e9])=>[_0x510b60,new Set(Array['isArray'](_0x47c9e9)?_0x47c9e9:[_0x47c9e9])])),'indexToDb':_0x3a9b2c,'ftsToDb':null,'schema':_0x3abe12[_0x3832e6(0x2d4)]||null,'defaultTTL':_0x3abe12['defaultTTL']||null};}get[_0x1b2b60(0x775)](){const _0x6e4b90=_0x1b2b60,_0x32eada=this,_0x47c0c7=()=>_0x32eada['listTypes']();return{'get':_0x4453d5=>{const _0x423e3f=_0x3ebb;try{return _0x32eada[_0x423e3f(0x4e7)](_0x4453d5);}catch{return undefined;}},'has':_0x3485ac=>_0x47c0c7()[_0x6e4b90(0x1ac)](_0x3485ac),'keys':()=>_0x47c0c7()[Symbol['iterator']](),get 'size'(){const _0x910eb8=_0x6e4b90;return _0x47c0c7()[_0x910eb8(0x6cf)];}};}['_typeKeys'](){return this['listTypes']();}get[_0x1b2b60(0x6e9)](){const _0x55206e=_0x1b2b60;return this[_0x55206e(0x375)]||(this[_0x55206e(0x375)]=new _0x27cb06(this,_0x55206e(0x36a)));}get[_0x1b2b60(0x399)](){return this['_clockToChangeDb']||(this['_clockToChangeDb']=new _0x27cb06(this,'clocks'));}[_0x1b2b60(0x58f)](_0x1b3faa){const _0x56e3d1=_0x1b2b60;return this['_n'](_0x56e3d1(0x76c),[_0x1b3faa]);}get[_0x1b2b60(0x79e)](){const _0x5db1e3=_0x1b2b60;return!this['_n'](_0x5db1e3(0x5a3),[],![]);}get['_sync'](){const _0x4d46c4=_0x1b2b60;return this[_0x4d46c4(0x25a)]!==undefined?this[_0x4d46c4(0x25a)]:this['_n']('hasChangelog',[],![]);}set[_0x1b2b60(0x845)](_0x1c304d){const _0x4c10b6=_0x1b2b60;this[_0x4c10b6(0x25a)]=_0x1c304d;}get[_0x1b2b60(0x7b4)](){const _0x49ecb3=_0x1b2b60;return this[_0x49ecb3(0x28f)]||(this[_0x49ecb3(0x28f)]=new(requireLock())[(_0x49ecb3(0x828))](this[_0x49ecb3(0x21e)],_0x49ecb3(0x8a3),_0x49ecb3(0x2ab),{'ttlMs':0xea60}));}get[_0x1b2b60(0x39d)](){const _0x4ccf9d=_0x1b2b60;return this[_0x4ccf9d(0x5bf)]??(this[_0x4ccf9d(0x5bf)]=this['_n'](_0x4ccf9d(0x39d),[]));}get['id'](){return this['_n']('id',[]);}get['role'](){const _0x196ac0=_0x1b2b60;return this[_0x196ac0(0x21e)][_0x196ac0(0x437)];}['_n'](_0x110764,_0x1d5730){const _0x39e3e7=_0x1b2b60;return this['okdb']['_call'](_0x39e3e7(0x30b),this[_0x39e3e7(0x6fe)],_0x110764,_0x1d5730,!_0x13a945['has'](_0x110764));}[_0x1b2b60(0x7d8)](_0x1a497c){const _0x438439=_0x1b2b60;return this[_0x438439(0x21e)][_0x438439(0x55c)](_0x1a497c);}[_0x1b2b60(0x6f8)](_0x5a1dda,_0x4591c2){const _0x1dc1fe=_0x1b2b60;if(_0x15ed6c[_0x1dc1fe(0x51e)](_0x5a1dda==='pinned'?_0x4591c2[0x1]:_0x5a1dda))return this[_0x1dc1fe(0x21e)][_0x1dc1fe(0x39e)](this[_0x1dc1fe(0x6fe)],_0x5a1dda,_0x4591c2);return this['okdb'][_0x1dc1fe(0x270)]('env',this[_0x1dc1fe(0x6fe)],_0x5a1dda,_0x4591c2);}[_0x1b2b60(0x7f7)](_0x252b2c={'useReadTransaction':![]}){return new(_0x571000())(this,_0x252b2c);}async[_0x1b2b60(0x27c)](_0x133659,_0x513b1d){return _0x571000()['run'](this,_0x133659,_0x513b1d);}['_low'](_0x4180b,_0x367b53){const _0x3460f0=_0x1b2b60;if(this[_0x3460f0(0x62f)])this['_txnBuf'][_0x3460f0(0x2fb)]({'action':_0x4180b,'args':_0x367b53});else this['_n'](_0x4180b,_0x367b53);}[_0x1b2b60(0x386)](_0x57db04,_0x52fb20,_0x3ea2a3,_0x38584c,_0x52b0b7){const _0xc8380e=_0x1b2b60;this['_low'](_0xc8380e(0x27f),[_0x52fb20,_0x3ea2a3,_0x38584c,_0x52b0b7]);}[_0x1b2b60(0x7a6)](_0x53aa8f,_0x139b08,_0xe4b0e,_0x56f0bc,_0x428c18){const _0x14eb87=_0x1b2b60;this[_0x14eb87(0x335)](_0x14eb87(0x88e),[_0x139b08,_0xe4b0e,_0x56f0bc,_0x428c18]);}[_0x1b2b60(0x7d7)](_0x50cbcd,_0x173c9c,_0x12a9cd,_0x229147,_0x4e4b80){const _0x155534=_0x1b2b60;this[_0x155534(0x335)](_0x155534(0x747),[_0x173c9c,_0x12a9cd,_0x229147,_0x4e4b80]);}[_0x1b2b60(0x739)](_0x18f33c,_0x3ec0be,_0x1c3191,_0x31f808,_0x48476c){const _0x59bfdb=_0x1b2b60;this[_0x59bfdb(0x335)]('create',[_0x3ec0be,_0x1c3191,_0x31f808,_0x48476c]);}[_0x1b2b60(0x28e)](_0x5077fe,_0x50e23b,_0x125517,_0x49a1d7){const _0x253375=_0x1b2b60;this[_0x253375(0x335)]('remove',[_0x50e23b,_0x125517,_0x49a1d7]);}[_0x1b2b60(0x7da)](_0x284b3d,_0x292e3d,_0x535c6e,_0x382780){const _0x3e0121=_0x1b2b60;this[_0x3e0121(0x335)](_0x3e0121(0x397),[_0x292e3d,_0x535c6e,_0x382780]);}[_0x1b2b60(0x16a)](_0x3815ef,_0x1bd361,_0x2c3db6){const _0x421b7f=_0x1b2b60;this['_low'](_0x421b7f(0x483),[_0x1bd361,_0x2c3db6]);}['_w'](_0x529713,_0x720ca9){const _0x4010a9=_0x1b2b60;return this[_0x4010a9(0x21e)][_0x4010a9(0x53b)][_0x4010a9(0x414)](_0x4010a9(0x30b),this[_0x4010a9(0x6fe)],_0x529713,_0x720ca9);}[_0x1b2b60(0x27f)](_0x26e917,_0x3f7e65,_0x1ba2dc,_0xa52784={}){const _0x2d3f77=_0x1b2b60;return this['_w'](_0x2d3f77(0x27f),[_0x26e917,_0x3f7e65,_0x1ba2dc,_0xa52784]);}['update'](_0x3d0ee9,_0x52c58a,_0x5e75aa,_0x462757={}){return this['_w']('update',[_0x3d0ee9,_0x52c58a,_0x5e75aa,_0x462757]);}[_0x1b2b60(0x747)](_0x27f533,_0x1b8329,_0x374176,_0x293def={}){const _0x4c23b5=_0x1b2b60;return this['_w'](_0x4c23b5(0x747),[_0x27f533,_0x1b8329,_0x374176,_0x293def]);}[_0x1b2b60(0x740)](_0x27a866,_0x1a2e41,_0xdd64c8,_0x1faff5={}){const _0x10feb1=_0x1b2b60;return this['_w'](_0x10feb1(0x740),[_0x27a866,_0x1a2e41,_0xdd64c8,_0x1faff5]);}[_0x1b2b60(0x42f)](_0x2f70c9,_0x1acf56,_0x4ff63={}){return this['_w']('remove',[_0x2f70c9,_0x1acf56,_0x4ff63]);}['get'](_0x5d1d74,_0x58ab0d,_0x2eea8e){const _0x223c66=_0x1b2b60;if(_0x59bda7&&typeof _0x5d1d74==='string'){const _0x4ca043=this['okdb'][_0x223c66(0x721)](this[_0x223c66(0x6fe)],_0x5d1d74,_0x58ab0d);if(_0x4ca043!==_0x14ec1a)return _0x4ca043===null?this['_n'](_0x223c66(0x63c),[_0x5d1d74,_0x58ab0d]):_0x4ca043;}if(_0x3232f1&&(typeof _0x58ab0d===_0x223c66(0x4bb)||typeof _0x58ab0d===_0x223c66(0x5c1))){const _0xff17ec=this[_0x223c66(0x21e)]['_getRaw'](this[_0x223c66(0x6fe)],_0x5d1d74,_0x58ab0d);if(_0xff17ec!==null)return _0xff17ec;}return this['_n'](_0x223c66(0x63c),[_0x5d1d74,typeof _0x58ab0d===_0x223c66(0x856)?null:_0x58ab0d]);}[_0x1b2b60(0x791)](_0x3dba90,_0x47f669,_0x3b5ba6){const _0x2561d0=_0x1b2b60,_0x13dbdc=[_0x3dba90,Array[_0x2561d0(0x69e)](_0x47f669)&&_0x47f669[_0x2561d0(0x786)](_0xc209fe=>typeof _0xc209fe===_0x2561d0(0x856))?_0x47f669[_0x2561d0(0x1a7)](_0x50af2f=>typeof _0x50af2f===_0x2561d0(0x856)?null:_0x50af2f):_0x47f669];return _0x3232f1?this[_0x2561d0(0x21e)][_0x2561d0(0x39e)](this[_0x2561d0(0x6fe)],'getMany',_0x13dbdc):this['_n'](_0x2561d0(0x791),_0x13dbdc);}[_0x1b2b60(0x2ec)](_0x3e330b,_0x2c70cb,_0x3ffc59){const _0x4ee9d1=_0x1b2b60;return this['_n']('getEntry',[_0x3e330b,typeof _0x2c70cb===_0x4ee9d1(0x856)?null:_0x2c70cb]);}[_0x1b2b60(0x436)](_0x559b2d,_0x34d04a){const _0x399083=_0x1b2b60;return this[_0x399083(0x636)](_0x399083(0x436),_0x34d04a),this['_n'](_0x399083(0x436),[_0x559b2d,_0x3495e8(_0x34d04a)]);}[_0x1b2b60(0x636)](_0x28143a,_0xb5e452,_0x834014=[]){const _0x233510=_0x1b2b60;if(!_0xb5e452||typeof _0xb5e452!==_0x233510(0x1be))return;for(const _0x4f4b7e of Object[_0x233510(0x1d5)](_0xb5e452)){if(!_0x38aec6[_0x233510(0x51e)](_0x4f4b7e)&&!_0x834014[_0x233510(0x1ac)](_0x4f4b7e))throw new _0x45c9f2(_0x28143a+':\x20unknown\x20option\x20\x27'+_0x4f4b7e+'\x27',_0x233510(0x35e),{'option':_0x4f4b7e});}}[_0x1b2b60(0x3b1)](_0xfbac7c,_0x9a6f98,_0x51d838,_0x69c0d0,_0x2b4f99,_0x1c7080){const _0x1fd929=_0x1b2b60;this[_0x1fd929(0x636)](_0xfbac7c,_0x69c0d0);const _0x1f7927=_0x69c0d0?.['snapshot'],_0x43bf3d=_0x3495e8(_0x69c0d0);if(_0x1f7927===!![]||_0x1f7927===_0x1fd929(0x888)){const _0x50b555=this[_0x1fd929(0x53a)](_0xfbac7c,_0x9a6f98,_0x128e28=>[_0x51d838,{..._0x43bf3d,..._0x128e28}],_0x69c0d0);return _0x1c7080?_0x50b555['map'](_0x1c7080):_0x50b555;}const _0x1c887c=_0x5b4174(_0x32d9fd=>this['_np'](_0x9a6f98,[_0x51d838,_0x32d9fd]),_0x43bf3d,_0x2b4f99,{'rows':_0x9a6f98==='getRange'});return _0x1c7080?_0x1c887c[_0x1fd929(0x1a7)](_0x1c7080):_0x1c887c;}['_lazyPinned'](_0x2b9727,_0x44a92b,_0x192b52,_0x54d1aa,_0x1d82aa,_0x5eb977=![]){const _0x1c7aec=_0x1b2b60,{source:_0x205e36,prefetch:_0xc2d699}=_0x247861((_0x33154a,_0x4980f3)=>_0x33154a==='unpin'?this['_n'](_0x33154a,_0x4980f3):this[_0x1c7aec(0x6f8)](_0x33154a,_0x4980f3),_0x44a92b,_0x192b52,_0x54d1aa||{},_0x1d82aa),_0x47c3c8=_0xc2d699(),_0x56b84f=!_0x5eb977&&_0x54d1aa&&_0x54d1aa[_0x1c7aec(0x175)]===_0x1c7aec(0x888);let _0x310fda=null;return _0x37b436(()=>({[Symbol[_0x1c7aec(0x56e)]]:()=>_0x310fda=_0x205e36(0x0,_0x3c513c(_0x47c3c8))}),{'label':this[_0x1c7aec(0x6fe)]+':'+_0x2b9727,..._0x56b84f?{'getTxnId':()=>this['db'][_0x1c7aec(0x7fd)]()['lastTxnId'],'resume':()=>({[Symbol[_0x1c7aec(0x56e)]]:()=>_0x310fda=_0x310fda['resumed']()})}:{}});}[_0x1b2b60(0x3fa)](_0x29fe50,_0x4dbf6e){const _0x21dc8a=_0x1b2b60;return this[_0x21dc8a(0x3b1)](_0x21dc8a(0x3fa),_0x21dc8a(0x3fa),_0x29fe50,_0x4dbf6e,_0x4a6996=>_0x4a6996['key']);}[_0x1b2b60(0x7d2)](_0x1862e5,_0x4f896a){const _0x3b6bf2=_0x1b2b60;return this['_range'](_0x3b6bf2(0x7d2),'getKeys',_0x1862e5,_0x4f896a,_0x4e0760=>_0x4e0760);}[_0x1b2b60(0x618)](_0x3a2385,_0x47122f){const _0x505bb4=_0x1b2b60;return this[_0x505bb4(0x3b1)](_0x505bb4(0x618),'getRange',_0x3a2385,_0x47122f,_0x2d894e=>_0x2d894e[_0x505bb4(0x366)],_0x3ead75=>_0x3ead75[_0x505bb4(0x820)]);}[_0x1b2b60(0x587)](_0x4b8c9e,_0x23a2cc,_0x5f15f1={}){const _0x3ae089=_0x1b2b60;return this[_0x3ae089(0x3fa)](_0x4b8c9e,{'start':_0x23a2cc,'end':_0x23a2cc+'￿',..._0x5f15f1});}['getIndex'](_0x31dcb4,_0x2c14f2,_0xc827b4={}){const _0x4c2381=_0x1b2b60;this[_0x4c2381(0x636)]('getIndex',_0xc827b4,[_0x4c2381(0x575)]);const _0x357d12=_0x3495e8(_0xc827b4);if(_0xc827b4&&_0xc827b4['transaction'])return _0x1a3ff7(this['_n'](_0x4c2381(0x606),[_0x31dcb4,_0x2c14f2,_0x357d12]));return this[_0x4c2381(0x53a)](_0x4c2381(0x606),_0x4c2381(0x606),_0x285f64=>[_0x31dcb4,_0x2c14f2,{..._0x357d12,..._0x285f64}],_0xc827b4,undefined,!![]);}[_0x1b2b60(0x2c0)](_0x953faf,_0x3d7e4a,_0x222989){const _0x36ea8f=_0x1b2b60;this[_0x36ea8f(0x636)](_0x36ea8f(0x2c0),_0x222989,[_0x36ea8f(0x575),_0x36ea8f(0x7c4)]);const _0x5e2cb5=_0x3495e8(_0x222989);if(_0x222989&&_0x222989[_0x36ea8f(0x7f7)])return _0x1a3ff7(this['_n'](_0x36ea8f(0x2c0),[_0x953faf,_0x3d7e4a,_0x5e2cb5]));return this[_0x36ea8f(0x53a)](_0x36ea8f(0x2c0),'byIndex',_0x3a1538=>[_0x953faf,_0x3d7e4a,{..._0x5e2cb5,..._0x3a1538}],_0x222989,undefined,!![]);}[_0x1b2b60(0x490)](_0x3cfe31,_0x270bcc,_0x4957d8={}){const _0x1f44cd=_0x1b2b60;return this['_n'](_0x1f44cd(0x490),[_0x3cfe31,_0x270bcc,_0x3495e8(_0x4957d8)]);}[_0x1b2b60(0x665)](_0x243176,_0x1f4605={},_0x2c7a54={}){const _0x5572dc=_0x1b2b60,_0x26cbde=_0x52d9b9(_0x2c7a54);if(_0x2c7a54){for(const _0x4d439e of Object[_0x5572dc(0x1d5)](_0x2c7a54))if(_0x4d439e!==_0x5572dc(0x6ea)&&typeof _0x2c7a54[_0x4d439e]===_0x5572dc(0x6d8))_0x26cbde[_0x4d439e]=null;}if(_0x2c7a54&&(_0x2c7a54[_0x5572dc(0x492)]||_0x2c7a54[_0x5572dc(0x6c5)]))return this['_n'](_0x5572dc(0x32d),[_0x26cbde]),this[_0x5572dc(0x627)](_0x243176,_0x1f4605,_0x2c7a54);const _0x3354dd=typeof _0x2c7a54[_0x5572dc(0x6ea)]==='function'?_0x2c7a54[_0x5572dc(0x6ea)]:null;if(_0x2c7a54[_0x5572dc(0x842)]||_0x4cbb2e(_0x1f4605)||_0x2c7a54[_0x5572dc(0x7f7)]!==undefined){let _0x247363=this['_n'](_0x5572dc(0x665),[_0x243176,_0x1f4605,_0x26cbde]);if(_0x3354dd)_0x247363=_0x247363[_0x5572dc(0x1a7)](_0x3354dd);if(_0x2c7a54[_0x5572dc(0x842)]||_0x4cbb2e(_0x1f4605))return _0x247363;return _0x1a3ff7(_0x247363);}const _0x593a91=_0x91b10b=>typeof _0x91b10b==='number'&&Number[_0x5572dc(0x40f)](_0x91b10b)?Math[_0x5572dc(0x3e7)](0x0,_0x91b10b):Infinity;let _0x57ba5c;if(_0x2c7a54[_0x5572dc(0x3a9)]){const _0x333855=_0x30a253=>typeof _0x30a253===_0x5572dc(0x5c1)&&_0x30a253>0x0?Math[_0x5572dc(0x342)](_0x30a253):0x0;_0x57ba5c=this[_0x5572dc(0x53a)](_0x5572dc(0x665),'query',_0x521713=>[_0x243176,_0x1f4605,{..._0x26cbde,..._0x521713}],null,{'limitOf':()=>_0x593a91(_0x26cbde[_0x5572dc(0x695)]),'offsetOf':()=>_0x333855(_0x26cbde[_0x5572dc(0x534)])});}else _0x57ba5c=_0x5b4174(_0xbd939d=>{const _0x22f97e=_0x5572dc,{__after:_0x387510,..._0x104091}=_0xbd939d;return this[_0x22f97e(0x6f8)](_0x22f97e(0x665),_0x387510===undefined?[_0x243176,_0x1f4605,_0x104091]:[_0x243176,_0x1f4605,_0x104091,_0x387510]);},_0x26cbde,_0xa58118=>_0xa58118[_0x5572dc(0x366)],{'limitOf':_0x593a91,'rows':!![],'prefetch':!![],'resumeOpts':(_0x51ee97,_0x3dae5d)=>{const _0x345b69=_0x5572dc;_0x51ee97[_0x345b69(0x534)]=0x0,_0x51ee97['__after']=_0x3dae5d;}});return _0x3354dd?_0x57ba5c[_0x5572dc(0x1a7)](_0x3354dd):_0x57ba5c;}async[_0x1b2b60(0x627)](_0x5eb6ff,_0x95f122,_0xec90e4){const _0x2450a5=_0x1b2b60,{select:_0x5e0e02,..._0x5351af}=_0x52d9b9(_0xec90e4);let _0x2fcddb={..._0x5351af};const _0x177703=_0x2fcddb[_0x2450a5(0x3a9)];if(_0x177703&&!Array[_0x2450a5(0x69e)](_0x177703)&&typeof _0x177703==='object'&&_0x177703[_0x2450a5(0x613)]){const {fields:_0x138a56,prefix:_0x5b3d05,start:_0x4830ae,end:_0x50153e}=_0x177703;_0x2fcddb={..._0x2fcddb,'index':_0x138a56,'prefix':_0x5b3d05??_0x2fcddb[_0x2450a5(0x575)],'startIndex':_0x4830ae??_0x2fcddb['startIndex'],'endIndex':_0x50153e??_0x2fcddb[_0x2450a5(0x3db)]};}const _0x1eeb89=await this[_0x2450a5(0x21e)][_0x2450a5(0x406)](_0x2450a5(0x422),null,_0x2450a5(0x52d),[this['name'],_0x5eb6ff,_0x95f122,_0x2fcddb],![]),_0x2303ef=typeof _0xec90e4[_0x2450a5(0x6ea)]===_0x2450a5(0x6d8)?_0xec90e4[_0x2450a5(0x6ea)]:null;if(!_0x2303ef)return _0x1eeb89;return _0x1eeb89[_0x2450a5(0x1a7)](_0x2f5ea7=>{const {score:_0x54f41c,ftsScore:_0x522d25,numTerms:_0x3f9f24,maxScore:_0x1057d7,vectorScore:_0x55d28b,chunkHash:_0x1a5fa8,chunk:_0x56f0ea,..._0x5ca588}=_0x2f5ea7,_0x131c21=_0x2303ef(_0x5ca588);for(const [_0x1612c0,_0x5a1db2]of Object['entries']({'score':_0x54f41c,'ftsScore':_0x522d25,'numTerms':_0x3f9f24,'maxScore':_0x1057d7,'vectorScore':_0x55d28b,'chunkHash':_0x1a5fa8,'chunk':_0x56f0ea}))if(_0x5a1db2!==undefined)_0x131c21[_0x1612c0]=_0x5a1db2;return _0x131c21;});}[_0x1b2b60(0x181)](_0x2394ef,_0x2bdca5,_0xea4a23={}){const _0x5d9472=_0x1b2b60;let _0x4dea79=this['_n'](_0x5d9472(0x181),[_0x2394ef,_0x2bdca5,_0x52d9b9(_0xea4a23)]);if(typeof _0xea4a23['select']===_0x5d9472(0x6d8))_0x4dea79=_0x4dea79['map'](_0xea4a23[_0x5d9472(0x6ea)]);return _0x4dea79;}[_0x1b2b60(0x45e)](_0x3e2a84=null,_0x3ee4f0={}){return this['_n']('getClock',[_0x3e2a84]);}['getChanges'](_0xfad2b7=null,_0x5586cc=0x0,_0x2427b5=Number[_0x1b2b60(0x7eb)],_0x320995={}){const _0x18eb52=_0x1b2b60,_0x1526d3=_0x3495e8(_0x320995);if(_0x320995&&_0x320995['transaction'])return _0x1a3ff7(this['_n'](_0x18eb52(0x267),[_0xfad2b7,_0x5586cc,_0x2427b5,_0x1526d3]));return this['_lazyPinned'](_0x18eb52(0x267),_0x18eb52(0x267),_0x5a5b8b=>[_0xfad2b7,_0x5586cc,_0x2427b5,{..._0x1526d3,..._0x5a5b8b}],_0x320995);}[_0x1b2b60(0x3c2)](_0x52c1dc){const _0x23ecc3=_0x1b2b60;if(Array[_0x23ecc3(0x69e)](_0x52c1dc))return _0x52c1dc[_0x23ecc3(0x6cf)];let _0x237867=0x0;for(const _0x3cf32e of _0x52c1dc)_0x237867++;return _0x237867;}*[_0x1b2b60(0x380)](_0x762314){yield*_0x762314;}[_0x1b2b60(0x89e)](){return requireOkdbHlc()['toMs'](this['_hlc']);}get[_0x1b2b60(0x194)](){const _0x58795e=_0x1b2b60,_0x250eaf=this[_0x58795e(0x21e)][_0x58795e(0x60a)]?this[_0x58795e(0x21e)][_0x58795e(0x49e)]('db',null,_0x58795e(0x84e),[this[_0x58795e(0x6fe)]],![]):null;if(!_0x250eaf)return null;if(this[_0x58795e(0x6aa)]===_0x250eaf['gen'])return null;this[_0x58795e(0x2bb)]=this['_timerObjs']||new Map();let _0x23d4e1=this[_0x58795e(0x2bb)]['get'](_0x250eaf['gen']);if(!_0x23d4e1){const _0x18d528=this;_0x23d4e1={'ref'(){},'unref'(){},'hasRef':()=>![],'gen':_0x250eaf[_0x58795e(0x630)],'at':_0x250eaf['at'],'target':_0x250eaf[_0x58795e(0x5b4)],get '_destroyed'(){const _0x2a216a=_0x58795e,_0x248c34=_0x18d528[_0x2a216a(0x21e)][_0x2a216a(0x60a)]?_0x18d528[_0x2a216a(0x21e)][_0x2a216a(0x49e)]('db',null,_0x2a216a(0x84e),[_0x18d528[_0x2a216a(0x6fe)]],![]):null;return!_0x248c34||_0x248c34[_0x2a216a(0x630)]!==this[_0x2a216a(0x630)]||_0x18d528[_0x2a216a(0x6aa)]===this[_0x2a216a(0x630)];}},this[_0x58795e(0x2bb)][_0x58795e(0x328)](_0x250eaf[_0x58795e(0x630)],_0x23d4e1);}return _0x23d4e1;}[_0x1b2b60(0x20b)](){const _0x4f5610=_0x1b2b60,_0x1ce824=this['okdb']['_call']('db',null,_0x4f5610(0x84e),[this[_0x4f5610(0x6fe)]],![]);if(_0x1ce824)this[_0x4f5610(0x6aa)]=_0x1ce824[_0x4f5610(0x630)];}get[_0x1b2b60(0x82a)](){const _0x5f449d=_0x1b2b60,_0x1a3cdc=this[_0x5f449d(0x21e)][_0x5f449d(0x49e)]('db',null,_0x5f449d(0x84e),[this['name']],![]);return _0x1a3cdc?_0x1a3cdc[_0x5f449d(0x5b4)]:null;}get['_autoCompactTimer'](){const _0x57c67d=_0x1b2b60;return this[_0x57c67d(0x21e)][_0x57c67d(0x49e)]('db',null,_0x57c67d(0x546),[this['name']],![])?{'ref'(){},'unref'(){}}:null;}['_startAutoCompactCheck'](){const _0x38f4dd=_0x1b2b60;this[_0x38f4dd(0x21e)]['_call']('db',null,_0x38f4dd(0x3a2),[this['name']],![]);}['_stopAutoCompactCheck'](){const _0x1f7e99=_0x1b2b60;this['okdb'][_0x1f7e99(0x49e)]('db',null,_0x1f7e99(0x2d1),[this[_0x1f7e99(0x6fe)]],![]);}get[_0x1b2b60(0x340)](){const _0x154965=_0x1b2b60,_0x39ebd6=(_0x4e31d5,_0x3e7849)=>this[_0x154965(0x21e)][_0x154965(0x49e)]('db',null,_0x4e31d5,[this[_0x154965(0x6fe)],..._0x3e7849],![]),_0x38315e=Object['keys'](_0x39ebd6(_0x154965(0x3e2),[])||{}),_0x4abedb={};for(const _0x4f3fff of _0x38315e)Object[_0x154965(0x79d)](_0x4abedb,_0x4f3fff,{'enumerable':!![],'get':()=>_0x39ebd6(_0x154965(0x3e2),[])?.[_0x4f3fff],'set':_0x4fed1b=>{_0x39ebd6('setAutoCompact',[_0x4f3fff,_0x4fed1b]);}});return _0x4abedb;}get['_hlc'](){const _0x5d1c81=_0x1b2b60;return this['_n'](_0x5d1c81(0x48f),[]);}['equal'](_0x1a2327,_0x8faf9){const _0x567e7b=_0x1b2b60;return require$$16[_0x567e7b(0x757)](_0x1a2327,_0x8faf9);}async[_0x1b2b60(0x754)](_0x44791f,_0x49c698){const _0x46b0ee=_0x1b2b60;return this[_0x46b0ee(0x7d8)](this['_n'](_0x46b0ee(0x754),[_0x44791f]));}['hasType'](_0x1e2977){const _0x5a953f=_0x1b2b60;return this['_n'](_0x5a953f(0x3c7),[_0x1e2977]);}[_0x1b2b60(0x6a4)](){const _0x4beccc=_0x1b2b60;return this['_n'](_0x4beccc(0x6a4),[]);}async[_0x1b2b60(0x195)](_0xc81452,_0x3f21b8){const _0x35bbb1=_0x1b2b60;return this[_0x35bbb1(0x7d8)](this['_n']('dropType',[_0xc81452]));}async[_0x1b2b60(0x5cf)](_0x9eb792,_0x690a2){const _0x498180=_0x1b2b60,{timestamp:_0x28437b,indexes:indexes=[]}=_0x4ad11c(_0x690a2);return this[_0x498180(0x7d8)](this['_n'](_0x498180(0x5cf),[_0x9eb792,{'indexes':indexes}]));}async[_0x1b2b60(0x766)](_0x4dfcca){const _0x53b1a5=_0x1b2b60,{type:_0x296203,indexes:indexes=[],fts:fts=[],views:views=[],schema:schema=null}=_0x4ad11c(_0x4dfcca,_0x53b1a5(0x61a));if(!_0x296203)throw new Error(_0x53b1a5(0x2bf));await this['ensureType'](_0x296203,{'indexes':indexes});for(const _0x279256 of fts){const {name:_0x1cfcbd,fields:_0x43716f,..._0x1b009f}=_0x279256;if(!_0x1cfcbd||!_0x43716f)throw new Error(_0x53b1a5(0x3ac));await this[_0x53b1a5(0x21e)][_0x53b1a5(0x492)][_0x53b1a5(0x766)](_0x296203,_0x1cfcbd,{'fields':_0x43716f,..._0x1b009f},this);}for(const _0x3d1a9d of views){const {name:_0xdd1427,definition:_0x122aaf}=_0x3d1a9d;if(!_0xdd1427||!_0x122aaf)throw new Error(_0x53b1a5(0x388));if(!await this[_0x53b1a5(0x62a)][_0x53b1a5(0x261)](_0xdd1427))await this[_0x53b1a5(0x62a)][_0x53b1a5(0x740)](_0xdd1427,_0x122aaf);}if(schema)await this[_0x53b1a5(0x573)](_0x296203,schema);}async['registerIndex'](_0x13f16c,_0x19a509,_0x4a9d31){const _0x263207=_0x1b2b60,_0x230f29=this['_n']('registerIndexDeferred',[_0x13f16c,_0x19a509,typeof _0x4a9d31===_0x263207(0x1be)?_0x4a9d31:{}]);if(!_0x230f29)return this['_wsettle'](undefined);const _0xe6b3b7=this['_n']('resetIndexBegin',[_0x13f16c,_0x19a509,!![]]);if(_0xe6b3b7===undefined)return this[_0x263207(0x7d8)](undefined);return this[_0x263207(0x7d8)](await this[_0x263207(0x1e3)](_0x13f16c,_0x19a509,_0xe6b3b7));}async[_0x1b2b60(0x1e3)](_0x59a67b,_0x5825b3,_0x33a8c9){const _0x42717c=_0x1b2b60,_0x4b91d7=_0x59a67b+'@'+[][_0x42717c(0x79b)](_0x5825b3)[_0x42717c(0x3d2)]('~');if(!this[_0x42717c(0x1cb)])this[_0x42717c(0x1cb)]=new Map();const _0x59a9a9=this[_0x42717c(0x1cb)][_0x42717c(0x63c)](_0x4b91d7);if(_0x59a9a9)return _0x59a9a9;const _0x3f18b9=((async()=>{const _0x1c36f0=_0x42717c;do await new Promise(_0x52d45f=>setImmediate(_0x52d45f));while(!this['_n'](_0x1c36f0(0x216),[_0x59a67b,_0x5825b3,_0x33a8c9,!![]]));})());this[_0x42717c(0x1cb)][_0x42717c(0x328)](_0x4b91d7,_0x3f18b9);try{return await _0x3f18b9;}finally{this['_indexBuilds'][_0x42717c(0x82f)](_0x4b91d7);}}async[_0x1b2b60(0x764)](_0x46f585,_0x1386a1,_0x2fd6aa){const _0x2ed79e=_0x1b2b60;return this['_wsettle'](this['_n'](_0x2ed79e(0x764),[_0x46f585,_0x1386a1]));}async['resetIndex'](_0x529177,_0x2f1311,_0x7ad987){const _0x3eadbf=_0x1b2b60,_0x34193b=this['_indexBuilds']&&this['_indexBuilds'][_0x3eadbf(0x63c)](_0x529177+'@'+[][_0x3eadbf(0x79b)](_0x2f1311)[_0x3eadbf(0x3d2)]('~'));if(_0x34193b)return _0x34193b;const _0x149825=this['_n'](_0x3eadbf(0x7e3),[_0x529177,_0x2f1311,_0x7ad987]);if(_0x149825===undefined)return;return await new Promise(_0x4b3a93=>setImmediate(_0x4b3a93)),this['_wsettle'](await this[_0x3eadbf(0x1e3)](_0x529177,_0x2f1311,_0x149825));}[_0x1b2b60(0x2d8)](_0x2d66cb,_0x3844c5){const _0x1836be=_0x1b2b60;return this['_n'](_0x1836be(0x2d8),[_0x2d66cb,_0x3844c5]);}[_0x1b2b60(0x2ef)](_0x153e7e,_0x299c97){const _0x232a7d=_0x1b2b60;return this['_n'](_0x232a7d(0x2ef),[_0x153e7e,_0x299c97]);}async[_0x1b2b60(0x76a)](_0x73081e,_0xf1d261){const _0x30e57d=_0x1b2b60;if(this['_n']('getIndexStatus',[_0x73081e,_0xf1d261])===_0x30e57d(0x288))return!![];let _0x231dff=0xa;for(;;){await new Promise(_0xea3419=>setTimeout(_0xea3419,_0x231dff));if(!this['okdb'][_0x30e57d(0x60a)]||this[_0x30e57d(0x7ba)])return![];let _0x57b94e;try{_0x57b94e=this['_n'](_0x30e57d(0x7ec),[_0x73081e,Array[_0x30e57d(0x69e)](_0xf1d261)?_0xf1d261[_0x30e57d(0x3d2)]('~'):String(_0xf1d261)[_0x30e57d(0x3f8)](',')[_0x30e57d(0x3d2)]('~')]);}catch{return![];}const _0x36745e=_0x57b94e&&_0x57b94e[_0x30e57d(0x1c9)];if(_0x36745e===_0x30e57d(0x288))return!![];if(_0x36745e===undefined)return![];_0x231dff=Math[_0x30e57d(0x5a9)](_0x231dff*0x2,0xfa);}}[_0x1b2b60(0x7ec)](_0x233cc5,_0x3f706c){const _0x4f82d2=_0x1b2b60;return this['_n'](_0x4f82d2(0x7ec),[_0x233cc5,_0x3f706c])??null;}[_0x1b2b60(0x43b)](_0x5b57f4,_0x21ed67){const _0x5ef898=_0x1b2b60;return this['_n'](_0x5ef898(0x43b),[_0x5b57f4,_0x21ed67]);}[_0x1b2b60(0x7e9)](_0xc1172d,_0x3dc385){const _0x3d65cc=_0x1b2b60;return this['_n'](_0x3d65cc(0x7e9),[_0xc1172d,_0x3dc385]);}[_0x1b2b60(0x4ee)](_0x33a01f,_0x3598c1,_0x570d13){const _0x58bfe9=_0x1b2b60;return this['_n'](_0x58bfe9(0x4ee),[_0x33a01f,_0x3598c1,_0x570d13])??null;}['getSchema'](_0x1c8460){const _0x22da4e=_0x1b2b60;return this['_n'](_0x22da4e(0x2d0),[_0x1c8460])??null;}async['setSchema'](_0x2b2664,_0xdb15e9){const _0x518010=_0x1b2b60;return this[_0x518010(0x7d8)](this['_n'](_0x518010(0x573),[_0x2b2664,_0xdb15e9]));}async[_0x1b2b60(0x389)](_0x7c3096){const _0x5ba51c=_0x1b2b60;return this['_wsettle'](this['_n'](_0x5ba51c(0x389),[_0x7c3096]));}[_0x1b2b60(0x2e7)](_0x22d45d,_0x3c8818){return this['_n']('getViolation',[_0x22d45d,_0x3c8818])??null;}[_0x1b2b60(0x210)](_0x1ab790){const _0x556a55=_0x1b2b60;return this['_n'](_0x556a55(0x210),[_0x1ab790]);}[_0x1b2b60(0x45a)](_0x5cb24f,_0x307c66,_0x2a4bbb){const _0x1878ec=_0x1b2b60;return this['_n'](_0x1878ec(0x45a),[_0x5cb24f,_0x307c66,_0x2a4bbb])??null;}[_0x1b2b60(0x82d)](_0x3c93cd){const _0x173837=_0x1b2b60;return this['_n'](_0x173837(0x82d),[_0x3c93cd]);}async[_0x1b2b60(0x397)](_0x5bc65f,_0x2d028d,_0x2aa598){return this['_wsettle'](this['_n']('setTTL',[_0x5bc65f,_0x2d028d,_0x2aa598]));}[_0x1b2b60(0x329)](_0x472a22,_0x346cf8){const _0x12ad3b=_0x1b2b60;return this['_n'](_0x12ad3b(0x329),[_0x472a22,_0x346cf8]);}async['clearTTL'](_0x5d3722,_0xb99bb2){const _0xc8047d=_0x1b2b60;return this[_0xc8047d(0x7d8)](this['_n']('clearTTL',[_0x5d3722,_0xb99bb2]));}async[_0x1b2b60(0x6f7)](_0x387302){const _0x3affb2=_0x1b2b60;return this['_n'](_0x3affb2(0x6f7),[_0x387302]);}['listTTL'](_0x4d6671={}){const _0xe231ed=_0x1b2b60;return this['_n'](_0xe231ed(0x5cc),[_0x4d6671]);}['ttlStats'](_0x141fa8){return this['_n']('ttlStats',[_0x141fa8]);}async[_0x1b2b60(0x669)](_0x130926,_0x1f776d){const _0x37f8cd=_0x1b2b60;return this[_0x37f8cd(0x7d8)](this['_n'](_0x37f8cd(0x669),[_0x130926,_0x1f776d]));}[_0x1b2b60(0x60f)](_0xde3320){return this['_n']('getDefaultTTL',[_0xde3320]);}async[_0x1b2b60(0x8a4)](_0x14e3b2){const _0x3c7a21=_0x1b2b60;return this[_0x3c7a21(0x7d8)](this['_n']('clearDefaultTTL',[_0x14e3b2]));}async['resolveField'](_0x525550,_0x167d64,_0x3484f4,_0xcf044f){const _0x395e06=_0x1b2b60,{batch:batch=null,batchSize:_0x3a462e}=_0x4ad11c(_0xcf044f);if(typeof _0x525550!==_0x395e06(0x4bb)||!_0x525550)throw new _0x45c9f2('resolveField:\x20type\x20required',_0x395e06(0x694));if(typeof _0x167d64!==_0x395e06(0x4bb)||!_0x167d64)throw new _0x45c9f2(_0x395e06(0x168),'BAD_PARAM');if(_0x3484f4!=null&&typeof _0x3484f4!==_0x395e06(0x6d8))throw new _0x45c9f2('resolveField:\x20resolver\x20must\x20be\x20a\x20function','BAD_PARAM');if(batch!=null&&typeof batch!=='function')throw new _0x45c9f2(_0x395e06(0x39a),_0x395e06(0x694));if(!_0x3484f4&&!batch)throw new _0x45c9f2(_0x395e06(0x74c),_0x395e06(0x694));if(_0x3a462e!==undefined&&!(Number[_0x395e06(0x40f)](_0x3a462e)&&_0x3a462e>0x0))throw new _0x45c9f2(_0x395e06(0x1e7),'BAD_PARAM');const _0x337279=batch?async _0x1f5dd1=>(await batch(_0x1f5dd1))[_0x395e06(0x1a7)](_0x577ff6=>_0x577ff6 instanceof Error?{'__error':!![],'message':_0x577ff6['message']}:_0x577ff6):null,_0x229e5d=_0x23abb4(this,_0x525550,_0x167d64),_0x211a5c=this['_n']('resolveField',[_0x525550,_0x167d64,_0x3484f4?(_0xfeada,_0x750d63)=>_0x229e5d(_0x3484f4,[_0xfeada,_0x750d63]):null,{'batch':_0x337279?_0x182981=>_0x229e5d(_0x337279,[_0x182981]):null,'batchSize':_0x3a462e}]);return()=>this['_n'](_0x395e06(0x7db),[_0x211a5c]);}async['unresolveField'](_0x116862,_0x3bb459){const _0xefbede=_0x1b2b60;return this['_n'](_0xefbede(0x6db),[_0x116862,_0x3bb459]);}[_0x1b2b60(0x1e0)](_0x8ed6b){return this['_n']('resolvedFields',[_0x8ed6b]);}async['readField'](_0x2b6ea6,_0x46231f,_0x528d8a,_0x2318a8){const _0x6cbc3c=_0x1b2b60;return this[_0x6cbc3c(0x21e)]['_callMacro'](_0x6cbc3c(0x30b),this[_0x6cbc3c(0x6fe)],_0x6cbc3c(0x513),[_0x2b6ea6,_0x46231f,_0x528d8a,_0x2318a8],![]);}async[_0x1b2b60(0x89f)](_0x340b32,_0x530804,_0x52d808){const _0x4158be=_0x1b2b60;return this[_0x4158be(0x21e)][_0x4158be(0x406)](_0x4158be(0x30b),this['name'],_0x4158be(0x89f),[_0x340b32,_0x530804,_0x52d808],![]);}[_0x1b2b60(0x29e)](){}[_0x1b2b60(0x629)](_0x581651,_0x2c2522,_0x4dc880,_0x29d46c={},_0x15072f={}){const _0x18afbf=_0x1b2b60;return this['okdb'][_0x18afbf(0x49e)](_0x18afbf(0x492),null,'ftsQuery',[_0x581651,_0x2c2522,_0x4dc880,_0x29d46c,_0x15072f,this[_0x18afbf(0x6fe)]],![]);}get['fts'](){const _0x29bed6=_0x1b2b60;return this['okdb'][_0x29bed6(0x492)];}[_0x1b2b60(0x53e)](){const _0x183941=_0x1b2b60;return this[_0x183941(0x21e)][_0x183941(0x49e)](_0x183941(0x30b),this['name'],_0x183941(0x53e),[],![]);}[_0x1b2b60(0x837)](){const _0x32cf71=_0x1b2b60;return this[_0x32cf71(0x21e)][_0x32cf71(0x837)]();}[_0x1b2b60(0x1d2)](){const _0x32e9fe=_0x1b2b60;return this[_0x32e9fe(0x21e)][_0x32e9fe(0x49e)](_0x32e9fe(0x30b),this['name'],_0x32e9fe(0x1d2),[],![]);}[_0x1b2b60(0x348)](){}get[_0x1b2b60(0x238)](){const _0x376d29=_0x1b2b60;return this[_0x376d29(0x6dc)]||(this[_0x376d29(0x6dc)]=new(requireLock())[(_0x376d29(0x828))](this[_0x376d29(0x21e)],this[_0x376d29(0x6fe)],_0x376d29(0x30b)));}[_0x1b2b60(0x2ba)](){const _0x197071=_0x1b2b60;return this[_0x197071(0x21e)]['_call']('env',this[_0x197071(0x6fe)],'storageStats',[],![]);}['_registerType'](_0x312765){const _0x1dd78f=_0x1b2b60;this['_n'](_0x1dd78f(0x754),[_0x312765]);}['_logChange'](_0x3e4d6c){const _0x16ff5b=_0x1b2b60;this['_n'](_0x16ff5b(0x493),[_0x3e4d6c]);}['_ttlState'](){const _0x41cf5a=_0x1b2b60;return this['_n'](_0x41cf5a(0x599),[]);}['_ttlCompositeKey'](_0x4a40d6,_0x5e8c4e){return _0x4a40d6+'\x09'+_0x5e8c4e;}[_0x1b2b60(0x39f)](_0x2425d8){const _0x506401=_0x1b2b60,_0x525c00=_0x2425d8['indexOf']('\x09');return{'type':_0x2425d8[_0x506401(0x5ca)](0x0,_0x525c00),'key':_0x2425d8[_0x506401(0x5ca)](_0x525c00+0x1)};}get[_0x1b2b60(0x87f)](){const _0x22154b=_0x1b2b60;if(!this[_0x22154b(0x2e8)]()['enabled'])return null;return this['__ttlByKey']||(this[_0x22154b(0x71a)]=new _0x27cb06(this,_0x22154b(0x461)));}get[_0x1b2b60(0x44f)](){const _0x52c3fe=_0x1b2b60;if(!this[_0x52c3fe(0x2e8)]()[_0x52c3fe(0x580)])return null;return this[_0x52c3fe(0x572)]||(this[_0x52c3fe(0x572)]=new _0x27cb06(this,_0x52c3fe(0x6f2),{'dupSort':!![]}));}[_0x1b2b60(0x73b)](_0x2f4460,_0x1d1873,_0x53c4f3){const _0x43cb8b=_0x1b2b60;this['_n'](_0x43cb8b(0x81a),[_0x2f4460,_0x1d1873,_0x53c4f3]);}[_0x1b2b60(0x5aa)](_0x34e35e,_0x4532c4){const _0x1247c5=_0x1b2b60,_0x3d5967=this[_0x1247c5(0x87f)]?.[_0x1247c5(0x63c)](this[_0x1247c5(0x34a)](_0x34e35e,_0x4532c4));return _0x3d5967!=null&&_0x3d5967<=Date['now']();}get[_0x1b2b60(0x61e)](){const _0x38db77=_0x1b2b60;return this['_ttlState']()[_0x38db77(0x1d8)]??null;}get[_0x1b2b60(0x40b)](){const _0x647a9a=_0x1b2b60;return this['_ttlState']()[_0x647a9a(0x886)]||0x0;}get[_0x1b2b60(0x451)](){return![];}[_0x1b2b60(0x87b)](){}async[_0x1b2b60(0x5be)](_0x3c6d2a,_0x4085d7){const _0x2b12d0=_0x1b2b60;if(this[_0x2b12d0(0x19a)]){const {OKDBError:_0x2dec40}=requireErrors();throw new _0x2dec40(_0x2b12d0(0x4fa),'REBUILD_IN_PROGRESS');}this[_0x2b12d0(0x19a)]=!![];try{return await this[_0x2b12d0(0x21e)][_0x2b12d0(0x406)]('env',this[_0x2b12d0(0x6fe)],_0x3c6d2a,[_0x4085d7],!![]);}finally{this[_0x2b12d0(0x19a)]=![];}}async[_0x1b2b60(0x2ab)](_0x24b3e5={}){const _0x296a39=_0x1b2b60;return this[_0x296a39(0x5be)](_0x296a39(0x2ab),_0x24b3e5);}async[_0x1b2b60(0x1c6)](_0x2df695={}){const _0x13ebf4=_0x1b2b60;return this[_0x13ebf4(0x5be)](_0x13ebf4(0x1c6),_0x2df695);}}_0x4dc0fd[_0x1b2b60(0x477)]=_0x594408;function _0x4cbb2e(_0x234f9a){const _0x1c9644=_0x1b2b60;if(!_0x234f9a||typeof _0x234f9a!==_0x1c9644(0x1be))return![];for(const _0x34de73 of Object[_0x1c9644(0x1d5)](_0x234f9a)){const _0x5c0b92=_0x234f9a[_0x34de73];if(_0x5c0b92&&typeof _0x5c0b92===_0x1c9644(0x1be)&&(_0x5c0b92[_0x1c9644(0x3d0)]||_0x5c0b92[_0x1c9644(0x650)]))return!![];}return![];}function _0x3495e8(_0x2357f7){const _0x10f5f4=_0x1b2b60;if(!_0x2357f7||typeof _0x2357f7!==_0x10f5f4(0x1be))return{};const _0x5c33dd={};for(const _0x54f0f7 of Object['keys'](_0x2357f7)){if(_0x54f0f7===_0x10f5f4(0x7f7)||_0x54f0f7===_0x10f5f4(0x175))continue;_0x5c33dd[_0x54f0f7]=_0x2357f7[_0x54f0f7];}return _0x5c33dd;}function _0x52d9b9(_0x392415){const _0x151b5a=_0x1b2b60;if(!_0x392415||typeof _0x392415!=='object')return{};const _0x3219cb={};for(const _0x271b8d of Object['keys'](_0x392415)){if(typeof _0x392415[_0x271b8d]===_0x151b5a(0x6d8))continue;_0x3219cb[_0x271b8d]=_0x392415[_0x271b8d];}return _0x3219cb;}return env={'OKDBEnv':_0x4dc0fd,'HIGH_SENTINEL':_0x594408},env;}var unsupported,hasRequiredUnsupported;function requireUnsupported(){if(hasRequiredUnsupported)return unsupported;hasRequiredUnsupported=0x1;const {NotImplementedNative:_0x5897c0}=requireErrors();function _0xa6aecb(_0x4aec3d){const _0x5e4f5b=_0x338cea=>{throw new _0x5897c0(_0x4aec3d,_0x338cea);};return new Proxy(function(){},{'get'(_0x3eaecb,_0x4b30af){const _0x538b36=_0x3ebb;if(typeof _0x4b30af===_0x538b36(0x856)||_0x4b30af===_0x538b36(0x2b0)||_0x4b30af==='toJSON'||_0x4b30af===_0x538b36(0x89a))return undefined;if(_0x4b30af===_0x538b36(0x715))return _0x4aec3d;return(..._0x2a54eb)=>_0x5e4f5b(_0x4aec3d+'.'+String(_0x4b30af));},'apply'(){_0x5e4f5b(_0x4aec3d);},'set'(){return!![];}});}return unsupported={'notImplemented':_0xa6aecb},unsupported;}var http,hasRequiredHttp;function requireHttp(){const _0x111a97=_0x2ec26e;if(hasRequiredHttp)return http;hasRequiredHttp=0x1;function _0x4eef5b(_0x590fe0,_0x112af9={}){const _0x238bb5=_0x3ebb,_0x3f2045=[];let _0x5728d7=![];_0x590fe0[_0x238bb5(0x66c)]('/*')&&(_0x5728d7=!![],_0x590fe0=_0x590fe0[_0x238bb5(0x5ca)](0x0,-0x2),_0x3f2045[_0x238bb5(0x2fb)]('*'));let _0x5d0c89=_0x590fe0['replace'](/\/+$/,'')[_0x238bb5(0x861)](/\[([^\]]*)\]/g,(_0x5ce064,_0x3a1a16)=>{const _0x3c9115=_0x3a1a16['replace'](/\/:(\w+)(?:=([^/\]\s]*))?/g,(_0x37f041,_0x5c7975)=>{const _0x46c0b0=_0x3ebb;return _0x3f2045['push'](_0x5c7975),_0x46c0b0(0x512);});return'(?:'+_0x3c9115+')?';})[_0x238bb5(0x861)](/\/:(\w+)/g,(_0x4c3d19,_0x1c56af)=>{const _0x14f3ee=_0x238bb5;return _0x3f2045[_0x14f3ee(0x2fb)](_0x1c56af),_0x14f3ee(0x512);});if(_0x5d0c89==='')_0x5d0c89='/';return{'keys':_0x3f2045,'defaults':_0x112af9||{},'wildcard':_0x5728d7,'regex':new RegExp('^'+_0x5d0c89+(_0x5728d7?_0x238bb5(0x81d):'')+'/?$')};}const _0x121e3e=require$$0$3,{PassThrough:_0x1f378f}=require$$1;function _0x3b4d03(_0x34b3a4){const _0x2a2f4e=_0x3ebb,_0x3b76ea=_0x34b3a4[_0x2a2f4e(0x697)](':'),_0x13b825=_0x34b3a4['slice'](0x0,_0x3b76ea)[_0x2a2f4e(0x861)](/^\[|\]$/g,'');return{'address':_0x13b825,'family':_0x13b825[_0x2a2f4e(0x1ac)](':')?_0x2a2f4e(0x442):_0x2a2f4e(0x596),'port':Number(_0x34b3a4['slice'](_0x3b76ea+0x1))};}class _0x5226bd extends _0x121e3e[_0x111a97(0x605)]{constructor(_0x507543,_0x3e296b){const _0x804520=_0x111a97;super(),this[_0x804520(0x322)]=_0x507543,this['_addr']=_0x3b4d03(_0x3e296b),this[_0x804520(0x558)]=!![],this[_0x804520(0x290)]=setInterval(()=>{},0x7fffffff);}get[_0x111a97(0x558)](){const _0x3b4f4f=_0x111a97;return this[_0x3b4f4f(0x1ec)];}set[_0x111a97(0x558)](_0x52fb5d){const _0x526db5=_0x111a97;this[_0x526db5(0x1ec)]=_0x52fb5d;}[_0x111a97(0x78f)](){const _0x50091b=_0x111a97;return this['listening']?{...this[_0x50091b(0x432)]}:null;}[_0x111a97(0x41f)](){const _0x41d71c=_0x111a97;if(this[_0x41d71c(0x290)])clearInterval(this[_0x41d71c(0x290)]);this[_0x41d71c(0x290)]=null;}[_0x111a97(0x5a1)](_0x50e646){const _0x191b7a=_0x111a97;this[_0x191b7a(0x41f)]();const _0x5ae4a2=this[_0x191b7a(0x322)][_0x191b7a(0x5a1)]();if(_0x50e646)_0x5ae4a2[_0x191b7a(0x2b0)](()=>_0x50e646(),_0x50e646);return this;}['ref'](){const _0x3ca1b4=_0x111a97;return this[_0x3ca1b4(0x290)]?.[_0x3ca1b4(0x8a8)](),this;}['unref'](){const _0x27b643=_0x111a97;return this[_0x27b643(0x290)]?.[_0x27b643(0x702)](),this;}}class _0x2bda8b{constructor(_0x88a4e9){const _0x23dcc4=_0x111a97;this['okdb']=_0x88a4e9,this['servers']=[],this[_0x23dcc4(0x1e2)]={'cookieName':_0x23dcc4(0x7d6)};}get[_0x111a97(0x7e7)](){const _0x3337f2=_0x111a97;return this[_0x3337f2(0x597)][0x0]||null;}['_n'](_0x24e896,_0x4d455b=[]){const _0x865326=_0x111a97;return this['okdb'][_0x865326(0x406)]('http',null,_0x24e896,_0x4d455b,!![]);}async[_0x111a97(0x4aa)](_0x4c75d6,_0x4c4072,_0x1281ce={},_0x5ed609={}){const _0x5b5ee4=_0x111a97;let _0x1973cb=await this['_n'](_0x5b5ee4(0x4aa),[_0x4c75d6,_0x4c4072,_0x1281ce,_0x5ed609]),_0x2d8629=0x0;return _0x1973cb=await this[_0x5b5ee4(0x6f5)](_0x1973cb,_0x2d8629),_0x1973cb;}async[_0x111a97(0x6f5)](_0x5abfe2,_0x240a43){const _0x10dea7=_0x111a97;while(_0x5abfe2&&typeof _0x5abfe2===_0x10dea7(0x1be)&&_0x5abfe2[_0x10dea7(0x448)]!==undefined){await new Promise(_0x261e39=>setTimeout(_0x261e39,_0x240a43<0x5?0x1:0x5)),_0x240a43++,_0x5abfe2=await this['_n'](_0x10dea7(0x19f),[_0x5abfe2[_0x10dea7(0x448)]]);}if(_0x5abfe2&&_0x5abfe2[_0x10dea7(0x2d5)]&&typeof _0x5abfe2[_0x10dea7(0x2d5)]===_0x10dea7(0x1be)&&_0x5abfe2[_0x10dea7(0x2d5)][_0x10dea7(0x49f)]!==undefined)_0x5abfe2['body']=this['_stream'](_0x5abfe2[_0x10dea7(0x2d5)][_0x10dea7(0x49f)]);return _0x5abfe2;}[_0x111a97(0x52b)](_0x220b81){const _0xf368d6=_0x111a97,_0x2d9a9d=new _0x1f378f();let _0x445d1d=![];const _0x8a8f19=()=>{const _0x332d13=_0x3ebb;if(_0x445d1d)return;_0x445d1d=!![],clearTimeout(_0x5c8553),setImmediate(()=>this[_0x332d13(0x21e)]['_isOpen']&&this['okdb'][_0x332d13(0x49e)](_0x332d13(0x449),null,'streamClose',[_0x220b81],!![]));};let _0x5c8553=null;const _0x3432ad=()=>{const _0xe011db=_0x3ebb;if(_0x445d1d)return;let _0x431dab;try{_0x431dab=this['okdb'][_0xe011db(0x49e)](_0xe011db(0x449),null,_0xe011db(0x86e),[_0x220b81],!![]);}catch{_0x431dab={'chunks':[],'end':!![]};}for(const _0x57c99c of _0x431dab['chunks'])_0x2d9a9d['write'](_0x57c99c);if(_0x431dab[_0xe011db(0x330)]){_0x445d1d=!![],_0x2d9a9d[_0xe011db(0x330)]();return;}_0x5c8553=setTimeout(_0x3432ad,_0x431dab[_0xe011db(0x4e1)][_0xe011db(0x6cf)]?0x0:0xa);};_0x2d9a9d['on'](_0xf368d6(0x5a1),_0x8a8f19),_0x3432ad();if(!_0x445d1d)_0x3432ad();if(_0x445d1d)_0x2d9a9d['destroy']();else{if(!_0x5c8553)_0x5c8553=setTimeout(_0x3432ad,0x0);}return _0x2d9a9d;}['add'](_0x3d9b6a,_0x363c78,_0x3c9d87,_0x2f790e={}){const _0x8a5a43=_0x111a97;return this[_0x8a5a43(0x21e)][_0x8a5a43(0x49e)](_0x8a5a43(0x449),null,_0x8a5a43(0x7df),[_0x3d9b6a,_0x363c78,_0x3c9d87,_0x2f790e,![]],!![]),this;}['addRaw'](_0x26e1ab,_0x8c76aa,_0x1d9802,_0x1652e5={}){const _0x4abb12=_0x111a97;return this[_0x4abb12(0x21e)][_0x4abb12(0x49e)](_0x4abb12(0x449),null,_0x4abb12(0x7df),[_0x26e1ab,_0x8c76aa,_0x1d9802,_0x1652e5,!![]],!![]),this;}[_0x111a97(0x784)](_0x1531dc,_0x562f7a){const _0x59333f=_0x111a97,_0x18981d=async _0x4fb158=>{const _0x5ddd0a=_0x3ebb,_0xbe69a1={'status':undefined,'headers':[],'hasBody':![],'body':undefined},_0x22a94a={'status'(_0x481e3a){const _0x3ec432=_0x3ebb;return _0xbe69a1[_0x3ec432(0x1c9)]=_0x481e3a,_0x22a94a;},'setHeader'(_0x4f602e,_0x37358d){const _0x4ca9f8=_0x3ebb;_0xbe69a1[_0x4ca9f8(0x594)][_0x4ca9f8(0x2fb)]([_0x4f602e,_0x37358d]);},'send'(_0x2fc296){const _0x554fd3=_0x3ebb;_0xbe69a1[_0x554fd3(0x353)]=!![],_0xbe69a1[_0x554fd3(0x2d5)]=_0x2fc296;}};_0x4fb158[_0x5ddd0a(0x3f9)]={'remoteAddress':_0x4fb158[_0x5ddd0a(0x32e)]??null};const _0x192c2c=await _0x562f7a(_0x4fb158,_0x22a94a);return{'allowed':_0x192c2c!==![],..._0xbe69a1};};this[_0x59333f(0x21e)]['_call']('http',null,_0x59333f(0x784),[_0x4e27b5=>!!_0x1531dc(_0x4e27b5),_0x18981d],!![]);}[_0x111a97(0x69a)](_0xae1ca1){const _0x1b7c5b=_0x111a97,_0x11976e=async _0x27fe11=>{const _0x1cdc30=_0x3ebb,_0x53a6d9={'status':undefined,'headers':[],'hasBody':![],'body':undefined};let _0x59b4e6=![];const _0x5606f2={'status'(_0x4ee8a2){return _0x53a6d9['status']=_0x4ee8a2,_0x5606f2;},'setHeader'(_0x21105b,_0x391047){const _0x31a344=_0x3ebb;_0x53a6d9['headers'][_0x31a344(0x2fb)]([_0x21105b,_0x391047]);},'send'(_0x3c7117){const _0x358b62=_0x3ebb;_0x53a6d9[_0x358b62(0x353)]=!![],_0x53a6d9[_0x358b62(0x2d5)]=_0x3c7117;}};return _0x27fe11[_0x1cdc30(0x3f9)]={'remoteAddress':_0x27fe11['remoteAddress']??null},await _0xae1ca1(_0x27fe11,_0x5606f2,async()=>{_0x59b4e6=!![];}),{'allowed':_0x59b4e6,..._0x53a6d9};};return this[_0x1b7c5b(0x21e)][_0x1b7c5b(0x49e)](_0x1b7c5b(0x449),null,'use',[_0x11976e],!![]),this;}get[_0x111a97(0x269)](){const _0x24fa14=_0x111a97;return this['okdb'][_0x24fa14(0x49e)](_0x24fa14(0x449),null,_0x24fa14(0x767),[],![]);}set[_0x111a97(0x269)](_0x20d4cf){const _0x8d0ba3=_0x111a97;this[_0x8d0ba3(0x21e)][_0x8d0ba3(0x49e)](_0x8d0ba3(0x449),null,_0x8d0ba3(0x16f),[Number(_0x20d4cf)],![]);}[_0x111a97(0x5dd)](_0x2e9391,_0x23ad58,_0x14b3ff={}){const _0x19ba09=_0x111a97,_0x53d136=new Map(),_0x441930=(_0x37a83e,_0x351689)=>this['okdb']['_call'](_0x19ba09(0x449),null,_0x37a83e,_0x351689,![]),_0x579458=_0x24fffa=>{const _0x5974f9=_0x19ba09,{connId:_0x1ba2f1}=_0x24fffa;if(_0x24fffa[_0x5974f9(0x54a)]){const _0x5d1d9a=_0x53d136['get'](_0x1ba2f1);_0x53d136[_0x5974f9(0x82f)](_0x1ba2f1);if(typeof _0x5d1d9a===_0x5974f9(0x6d8))_0x5d1d9a();return;}const _0x3202c4=(_0x2db2e9,_0x22250f,_0x52179b={})=>{const _0x2d5d85=_0x5974f9;try{_0x441930(_0x2d5d85(0x679),[_0x1ba2f1,_0x2db2e9,_0x22250f,_0x52179b]);}catch{}},_0x8b5f9a=()=>{const _0x557687=_0x5974f9;try{_0x441930(_0x557687(0x3dc),[_0x1ba2f1]);}catch{}},_0x47cd6c=(_0x4eed39,_0x1c7f18)=>_0x441930(_0x5974f9(0x7dc),[_0x1ba2f1,String(_0x4eed39),String(_0x1c7f18)]),_0x35827d={'auth':{'open':_0x24fffa[_0x5974f9(0x38e)],'isAuthenticated':_0x24fffa[_0x5974f9(0x501)]}},_0x1c09ca=_0x23ad58({'send':_0x3202c4,'close':_0x8b5f9a,'params':_0x24fffa[_0x5974f9(0x55f)]??{},'query':_0x24fffa['query']??{},'headers':_0x24fffa['headers']??{},'context':_0x35827d,'setHeader':_0x47cd6c});_0x53d136['set'](_0x1ba2f1,_0x1c09ca);};return this[_0x19ba09(0x21e)][_0x19ba09(0x49e)](_0x19ba09(0x449),null,_0x19ba09(0x5dd),[_0x2e9391,_0x579458,_0x14b3ff],!![]),this;}get[_0x111a97(0x843)](){return this['listRoutes']();}[_0x111a97(0x7a4)](){const _0x408c08=_0x111a97;return this[_0x408c08(0x21e)][_0x408c08(0x49e)](_0x408c08(0x449),null,_0x408c08(0x7a4),[],![])[_0x408c08(0x1a7)](_0x5b5800=>({..._0x5b5800,'matcher':_0x4eef5b(_0x5b5800[_0x408c08(0x39d)],_0x5b5800[_0x408c08(0x6fd)])}));}[_0x111a97(0x1c0)](_0x39290c,_0x120b74){const _0x3d1f66=_0x111a97;return this[_0x3d1f66(0x21e)][_0x3d1f66(0x49e)](_0x3d1f66(0x449),null,_0x3d1f66(0x1c0),[_0x39290c,_0x120b74],![]);}[_0x111a97(0x3da)](_0x461f3d,_0x1436fe={}){const _0x233717=_0x111a97;if(typeof _0x1436fe===_0x233717(0x4bb)||Array[_0x233717(0x69e)](_0x1436fe))_0x1436fe={'host':_0x1436fe};_0x1436fe=_0x1436fe??{};if((Number(_0x1436fe[_0x233717(0x268)])||0x0)>=0x1||_0x1436fe['makeOkdb']!=null||_0x1436fe[_0x233717(0x1f3)]!=null){const _0x4925a1=new Error('http.listen({workers/makeOkdb/primaryOkdb})\x20is\x20no\x20longer\x20supported\x20in\x20the\x20'+_0x233717(0x201)+_0x233717(0x392)+_0x233717(0x31f));_0x4925a1['code']=_0x233717(0x421);throw _0x4925a1;}if(this[_0x233717(0x597)][_0x233717(0x6cf)])throw new Error(_0x233717(0x69d));const _0x5b9464=_0x1436fe[_0x233717(0x2f9)]==null?[undefined]:[][_0x233717(0x79b)](_0x1436fe[_0x233717(0x2f9)]);if(!_0x5b9464['length']||_0x5b9464[_0x233717(0x786)](_0x579840=>_0x579840!==undefined&&(typeof _0x579840!==_0x233717(0x4bb)||!_0x579840))){const _0x5b19b5=new Error(_0x233717(0x7ad));_0x5b19b5['code']=_0x233717(0x275);throw _0x5b19b5;}const _0x32c96d=require$$2[_0x233717(0x1fd)]?{..._0x1436fe,'reuseport':!![]}:_0x1436fe,_0x4ba405=this[_0x233717(0x21e)][_0x233717(0x49e)](_0x233717(0x449),null,_0x233717(0x3da),[_0x461f3d,_0x32c96d],!![]),_0x1be03b=_0x4ba405[_0x233717(0x548)]??_0x461f3d,_0x280a6d=_0x1436fe[_0x233717(0x2f9)]==null?':'+_0x1be03b:_0x5b9464[_0x233717(0x1a7)](_0x3217f9=>(_0x3217f9['includes'](':')?'['+_0x3217f9+']':_0x3217f9)+':'+_0x1be03b)[_0x233717(0x3d2)](',\x20');try{this[_0x233717(0x21e)][_0x233717(0x196)][_0x233717(0x84a)](_0x280a6d);if(!require(_0x233717(0x4c2))[_0x233717(0x1fd)])this[_0x233717(0x21e)]['processes']['register']({'kind':'standalone','listenAddr':_0x280a6d});}catch{}this['servers']=_0x4ba405['addrs'][_0x233717(0x1a7)](_0x358078=>new _0x5226bd(this,_0x358078));const _0xe0729f=this[_0x233717(0x597)][0x0];return process[_0x233717(0x343)](()=>this[_0x233717(0x597)][_0x233717(0x169)](_0x4b2d2d=>_0x4b2d2d[_0x233717(0x6d6)]('listening'))),_0xe0729f;}async['close'](_0xe777e1={}){const _0x98691b=_0x111a97,_0x1af50f=this[_0x98691b(0x597)];this[_0x98691b(0x597)]=[];if(require$$2['isWorker']&&!process[_0x98691b(0x276)]&&_0xe777e1[_0x98691b(0x825)]==null)_0xe777e1={..._0xe777e1,'forceAfterMs':Infinity};if(_0x1af50f[_0x98691b(0x6cf)]){const _0x1c7621=_0xe777e1[_0x98691b(0x825)]===Infinity?Infinity:Number[_0x98691b(0x5ef)](_0xe777e1[_0x98691b(0x825)])?Math[_0x98691b(0x3e7)](0x0,_0xe777e1[_0x98691b(0x825)]):0x3e8,_0x533edb=Date['now']();while(this[_0x98691b(0x21e)][_0x98691b(0x49e)](_0x98691b(0x449),null,'pendingResponses',[],!![])>0x0&&Date[_0x98691b(0x89e)]()-_0x533edb<_0x1c7621)await new Promise(_0x38f55a=>setTimeout(_0x38f55a,0x5));_0xe777e1={..._0xe777e1,'forceAfterMs':_0x1c7621===Infinity?0x3e8:Math[_0x98691b(0x3e7)](0x0,_0x1c7621-(Date[_0x98691b(0x89e)]()-_0x533edb))};}await this['_n'](_0x98691b(0x5a1),[_0xe777e1]);for(const _0x4a03bc of _0x1af50f){_0x4a03bc[_0x98691b(0x41f)](),_0x4a03bc[_0x98691b(0x558)]=![],_0x4a03bc[_0x98691b(0x6d6)](_0x98691b(0x5a1));}}}return http={'OKDBHttp':_0x2bda8b},http;}var fts,hasRequiredFts;function requireFts(){const _0xfa9883=_0x2ec26e;if(hasRequiredFts)return fts;hasRequiredFts=0x1;const _0x5c6369=_0x77f962=>(_0x77f962&&typeof _0x77f962===_0xfa9883(0x1be)?_0x77f962[_0xfa9883(0x6fe)]:_0x77f962)??_0xfa9883(0x822);class _0xfc9bef{constructor(_0x8dbe7){this['okdb']=_0x8dbe7;}['_n'](_0x15fac2,_0x25859d,_0x4e4d74=![]){const _0x14b37a=_0xfa9883;return this[_0x14b37a(0x21e)][_0x14b37a(0x49e)](_0x14b37a(0x492),null,_0x15fac2,_0x25859d,_0x4e4d74);}[_0xfa9883(0x321)](_0x1c066b,_0x22f1c7){const _0x25013a=_0xfa9883;return this[_0x25013a(0x21e)][_0x25013a(0x406)]('fts',null,_0x1c066b,_0x22f1c7,!![]);}get[_0xfa9883(0x50f)](){const _0x145e83=this,_0x58c59e=_0x560059=>{const _0x5e00cc=_0x3ebb,_0x39d8e9=_0x560059['indexOf'](':'),_0x299db2=_0x560059[_0x5e00cc(0x5ca)](0x0,_0x39d8e9),_0x43978b=_0x145e83[_0x5e00cc(0x21e)][_0x5e00cc(0x8a5)][_0x5e00cc(0x63c)](_0x299db2);if(!_0x43978b)return undefined;const _0x2c78b5=_0x43978b[_0x5e00cc(0x3e8)][_0x5e00cc(0x338)]()[_0x5e00cc(0x21c)](_0xc0ecc9=>_0xc0ecc9['cursorKey']===_0x5e00cc(0x21f)+_0x560059);if(!_0x2c78b5)return undefined;return _0x43978b[_0x5e00cc(0x3e8)][_0x5e00cc(0x1c1)](_0x2c78b5['id'],_0x2c78b5['cursorKey']);};return{'get':_0x58c59e,'has':_0x273ce2=>!!_0x58c59e(_0x273ce2)};}get[_0xfa9883(0x2ea)](){return[];}[_0xfa9883(0x4f9)](){const _0x3f2d40=_0xfa9883,{RawDb:_0x424121}=requireRawdb();return new _0x424121(this[_0x3f2d40(0x21e)][_0x3f2d40(0x851)],_0x3f2d40(0x5ec));}['has'](_0x225fa3,_0x376560,_0x1c1691){const _0x281030=_0xfa9883;return this['_n'](_0x281030(0x51e),[_0x225fa3,_0x376560,_0x5c6369(_0x1c1691)]);}[_0xfa9883(0x1c9)](_0x1604a6,_0x40ab79,_0xa2e191){return this['_n']('status',[_0x1604a6,_0x40ab79,_0x5c6369(_0xa2e191)]);}['list'](_0x11484a,_0x46321f){const _0x1f9243=_0xfa9883;return this['_n'](_0x1f9243(0x338),[_0x11484a,_0x5c6369(_0x46321f)]);}async[_0xfa9883(0x4cc)](_0x4589c8,_0x580975,_0x249843,_0x279eab,_0x3a2c9f){const _0x3fb5cc=_0xfa9883,_0x237989=(_0x3d1cf3,_0x1f756f)=>this[_0x3fb5cc(0x21e)][_0x3fb5cc(0x406)](_0x3fb5cc(0x492),null,_0x3d1cf3,_0x1f756f,!![],![]),_0x47c596=Date['now']()+0x1d4c0;let _0x558bf4=_0x4589c8,_0x183a57=_0x580975;for(;;){try{return await _0x237989(_0x558bf4,_0x183a57);}catch(_0x249808){if(_0x249808[_0x3fb5cc(0x748)]==='FTS_BUILD_CONTINUE'){_0x558bf4=_0x3fb5cc(0x67b),_0x183a57=[_0x249843,_0x279eab,_0x5c6369(_0x3a2c9f)];if(_0x249808['details']&&_0x249808[_0x3fb5cc(0x79f)]['wait'])await new Promise(_0x5eee99=>setTimeout(_0x5eee99,0x2));continue;}if(_0x249808[_0x3fb5cc(0x748)]!==_0x3fb5cc(0x1ea)||Date[_0x3fb5cc(0x89e)]()>=_0x47c596)throw _0x249808;}await new Promise(_0x55232c=>setTimeout(_0x55232c,0x5)),_0x558bf4=_0x3fb5cc(0x4df),_0x183a57=[_0x249843,_0x279eab,!![],_0x5c6369(_0x3a2c9f)];}}async[_0xfa9883(0x690)](_0x24cf41,_0x4ad5e6,_0x36314f,_0x39f75f,_0x25d407){const _0x29615b=_0xfa9883;return this['_build'](_0x29615b(0x690),[_0x24cf41,_0x4ad5e6,_0x36314f,_0x39f75f,_0x5c6369(_0x25d407)],_0x24cf41,_0x4ad5e6,_0x25d407);}async[_0xfa9883(0x303)](_0x21d055,_0xcd9d4e,_0xb96b0c){const _0x4805df=_0xfa9883;return this[_0x4805df(0x321)]('drop',[_0x21d055,_0xcd9d4e,_0x5c6369(_0xb96b0c)]);}async[_0xfa9883(0x766)](_0x43ae5c,_0x184a3b,_0x3cf7df,_0x2f1dba){const _0xfe0a8=_0xfa9883;return this['_build'](_0xfe0a8(0x766),[_0x43ae5c,_0x184a3b,_0x3cf7df,_0x5c6369(_0x2f1dba)],_0x43ae5c,_0x184a3b,_0x2f1dba);}async[_0xfa9883(0x4df)](_0x1f85c9,_0x5517d9,_0x555582,_0x345578){const _0x38c00b=_0xfa9883;return this[_0x38c00b(0x4cc)]('reset',[_0x1f85c9,_0x5517d9,_0x555582,_0x5c6369(_0x345578)],_0x1f85c9,_0x5517d9,_0x345578);}async[_0xfa9883(0x25b)](_0x1a9552,_0xaac99b,_0x4996c4,_0x319d97=0x1d4c0){const _0x3cd7e6=_0xfa9883,_0x457b2a=Date[_0x3cd7e6(0x89e)]()+_0x319d97;for(;;){try{return await this[_0x3cd7e6(0x321)](_0x1a9552,[..._0xaac99b,0x1]);}catch(_0x52847d){if(_0x52847d[_0x3cd7e6(0x748)]!==_0x4996c4||Date[_0x3cd7e6(0x89e)]()>=_0x457b2a)throw _0x52847d;}await new Promise(_0xb06a9b=>setTimeout(_0xb06a9b,0x2));}}async[_0xfa9883(0x288)](_0x43c961,_0x3f6988,_0xf82a8){const _0xaa5c15=_0xfa9883;return this[_0xaa5c15(0x25b)]('ready',[_0x43c961,null,_0x5c6369(_0xf82a8)],_0xaa5c15(0x4dc));}async[_0xfa9883(0x42c)](_0x2c4a33,_0x29652){const _0x239f2d=_0xfa9883;return this[_0x239f2d(0x25b)](_0x239f2d(0x42c),[_0x2c4a33,_0x5c6369(_0x29652)],_0x239f2d(0x6bc));}async['compact'](_0x4f27a0,_0x3d3371){const _0x4f28bc=_0xfa9883;return this[_0x4f28bc(0x321)](_0x4f28bc(0x2ab),[_0x4f27a0,_0x5c6369(_0x3d3371)]);}async['process'](_0x3ec93c={}){const _0x489640=_0xfa9883;return this[_0x489640(0x321)]('process',[_0x3ec93c]);}async['compactStorage'](_0x1f1ac5){const _0x54e5a3=_0xfa9883;return this[_0x54e5a3(0x321)](_0x54e5a3(0x64c),[_0x5c6369(_0x1f1ac5)]);}['envSize'](_0x457aa1){const _0x305b6d=_0xfa9883;return this['_n'](_0x305b6d(0x317),[_0x5c6369(_0x457aa1)]);}[_0xfa9883(0x58c)](_0x1f8351,_0x4edee4,_0x36138f,_0x22a20d,_0x2771cf){const _0x4b7e0e=_0xfa9883;return this['_n'](_0x4b7e0e(0x58c),[_0x1f8351,_0x4edee4,_0x36138f,_0x22a20d||{},_0x5c6369(_0x2771cf)]);}[_0xfa9883(0x191)](_0x5546d7,_0x1afdc8,_0x1fd244,_0x281d66,_0x4b7f20,_0x4a4835){const _0x2d7835=_0xfa9883;return this['_n'](_0x2d7835(0x191),[_0x5546d7,_0x1afdc8,_0x1fd244,_0x281d66||{},_0x5c6369(_0x4b7f20),_0x4a4835]);}['_searchWithScores'](_0x234d5a,_0x46094e,_0x50f03a,_0x3e3a1e,_0x1c95a7){return this['_n']('searchWithScores',[_0x234d5a,_0x46094e,_0x50f03a,_0x3e3a1e||{},_0x5c6369(_0x1c95a7)]);}[_0xfa9883(0x6e3)](){return this['_n']('listFtsEnvs',[]);}async[_0xfa9883(0x56b)](){const _0x26b274=_0xfa9883;return this[_0x26b274(0x321)](_0x26b274(0x56b),[]);}}return fts={'OKDBFts':_0xfc9bef},fts;}var embeddings,hasRequiredEmbeddings;function requireEmbeddings(){const _0x5086bf=_0x2ec26e;if(hasRequiredEmbeddings)return embeddings;hasRequiredEmbeddings=0x1;const {OKDBError:_0x12dbfc,invalidArgument:_0x47e8e4}=requireErrors();requireBridge();const _0x59b008=Object[_0x5086bf(0x62b)]({'EMBEDDER':'embedder','INDEXER':'indexer','SEARCH':_0x5086bf(0x395),'WORKER':'embed-worker'}),_0xbb6cff=_0x71a329=>typeof _0x71a329===_0x5086bf(0x4bb)||_0x71a329==null?_0x71a329:Array[_0x5086bf(0x170)](_0x71a329);class _0x5b6221{constructor(_0x170fc9){const _0xfea435=_0x5086bf;this[_0xfea435(0x21e)]=_0x170fc9,this[_0xfea435(0x4e4)]=new Map(),this[_0xfea435(0x424)]=new Map(),this[_0xfea435(0x5ce)]=new Map();}['_n'](_0x21a875,_0x5da881=[],_0x34eec0=!![]){const _0x3b8e83=_0x5086bf;return this[_0x3b8e83(0x21e)][_0x3b8e83(0x49e)](_0x3b8e83(0x422),null,_0x21a875,_0x5da881,_0x34eec0);}[_0x5086bf(0x321)](_0x2fc8ae,_0x1766be=[]){const _0x26e45a=_0x5086bf;return this[_0x26e45a(0x21e)][_0x26e45a(0x406)](_0x26e45a(0x422),null,_0x2fc8ae,_0x1766be,!![]);}[_0x5086bf(0x4f3)](_0x368d22){const _0x29961d=_0x5086bf;return _0x368d22?this[_0x29961d(0x21e)][_0x29961d(0x1a5)][_0x29961d(0x4f3)](_0x368d22):null;}[_0x5086bf(0x416)](_0x29e1d3,_0x55f7c7,_0x16643c={}){const _0x5bd781=_0x5086bf;if(typeof _0x55f7c7!==_0x5bd781(0x6d8))throw new _0x12dbfc(_0x5bd781(0x4d4),_0x5bd781(0x694),{'name':_0x29e1d3});this[_0x5bd781(0x4e4)][_0x5bd781(0x328)](_0x29e1d3,_0x55f7c7),this[_0x5bd781(0x424)][_0x5bd781(0x328)](_0x29e1d3,_0x16643c);const _0x6936db=this[_0x5bd781(0x21e)],_0x36828d=_0x21cfd4=>_0x55f7c7(_0x21cfd4,_0x6936db);_0x36828d['__okdb']=_0x6936db,this['_n']('registerEmbedderFactory',[_0x29e1d3,_0x36828d,_0x16643c??{}],![]);}[_0x5086bf(0x529)](_0x12f5f7){const _0x3733c2=_0x5086bf,_0x1434c7=this[_0x3733c2(0x4e4)][_0x3733c2(0x63c)](_0x12f5f7);if(_0x1434c7)return _0x1434c7;if(!this['_n']('hasEmbedderFactory',[_0x12f5f7],![]))return null;const _0x19b773=this;return(_0x3c9518={})=>{const _0x462d64=_0x3733c2,_0x2ae69a=_0x19b773['_n']('embedderNew',[_0x12f5f7,_0x3c9518],![]),_0x385a9e=_0x19b773['_n'](_0x462d64(0x29d),[_0x2ae69a],![]),_0x2cbcd9=(_0x3cd5c1,_0x1773d2)=>_0x19b773['_n'](_0x462d64(0x781),[_0x2ae69a,_0x3cd5c1,_0x1773d2],![]),_0x364ce3={'embed':async _0x28d703=>Float32Array[_0x462d64(0x170)](_0x2cbcd9('embed',_0x28d703)),'start':async()=>_0x2cbcd9(_0x462d64(0x898)),'stop':async()=>{const _0x5f273a=_0x462d64;_0x2cbcd9(_0x5f273a(0x893)),_0x2cbcd9(_0x5f273a(0x209));}};if(_0x385a9e)_0x364ce3[_0x462d64(0x4ce)]=async _0x211900=>_0x2cbcd9(_0x462d64(0x4ce),_0x211900)[_0x462d64(0x1a7)](_0x3699b6=>Float32Array['from'](_0x3699b6));return _0x364ce3;};}[_0x5086bf(0x637)](_0x193cfb){const _0xe63f68=_0x5086bf;return this[_0xe63f68(0x424)][_0xe63f68(0x63c)](_0x193cfb)??this['_n'](_0xe63f68(0x637),[_0x193cfb],![])??undefined;}[_0x5086bf(0x4c5)](_0x154f4e,_0x80f50b,_0x3832d4={}){const _0x5377f4=_0x5086bf;if(typeof _0x80f50b!==_0x5377f4(0x6d8))throw new _0x12dbfc(_0x5377f4(0x272),_0x5377f4(0x694),{'name':_0x154f4e});this['_n'](_0x5377f4(0x4c5),[_0x154f4e,(_0x3083ac,_0x24d5fa)=>_0x80f50b(_0x3083ac,_0x24d5fa),_0x3832d4??{}],![]);}[_0x5086bf(0x616)](){const _0x11f5bd=_0x5086bf;return this['_n'](_0x11f5bd(0x616),[],![]);}['registerPreparer'](_0x3277c3,_0x2bddf8){const _0x4ab309=_0x5086bf;if(typeof _0x2bddf8!==_0x4ab309(0x6d8))throw new _0x12dbfc(_0x4ab309(0x6d4),_0x4ab309(0x694),{'name':_0x3277c3});this['_n']('registerPreparer',[_0x3277c3,_0x2bddf8]);}[_0x5086bf(0x2a9)](_0x1dd00b,_0x3c69a8){const _0x5eea12=_0x5086bf;if(typeof _0x3c69a8!==_0x5eea12(0x6d8))throw new _0x12dbfc(_0x5eea12(0x711),_0x5eea12(0x694),{'name':_0x1dd00b});this['_n'](_0x5eea12(0x2a9),[_0x1dd00b,_0x3c69a8]);}['setStorageResolver'](_0x50e132){const _0xca8729=_0x5086bf;if(_0x50e132==null)return this['_n'](_0xca8729(0x2aa),[null],![]);if(typeof _0x50e132!=='function')throw new _0x12dbfc('Storage\x20resolver\x20must\x20be\x20a\x20function',_0xca8729(0x694));const _0x560169=this[_0xca8729(0x21e)];this['_n'](_0xca8729(0x2aa),[_0x35ab55=>_0x50e132(_0x35ab55,_0x560169)],![]);}async[_0x5086bf(0x487)](_0x14a9c7,_0x34508a={},_0x293436={},_0x59fe89=null){const _0x1c2264=_0x5086bf;return this['_wrap'](await this['_nm'](_0x1c2264(0x487),[_0x14a9c7,_0x34508a,_0x293436,_0x59fe89]));}async['createIndexer'](_0x591a35,_0x37a3a4={},_0x1c496c={}){const _0x5c20f5=_0x5086bf;return this[_0x5c20f5(0x4f3)](await this[_0x5c20f5(0x321)](_0x5c20f5(0x683),[_0x591a35,_0x37a3a4,_0x1c496c]));}async[_0x5086bf(0x678)](_0x254713,_0x50bd14={},_0x393afb={}){const _0x260a5c=_0x5086bf;return this[_0x260a5c(0x4f3)](await this[_0x260a5c(0x321)](_0x260a5c(0x678),[_0x254713,_0x50bd14,_0x393afb]));}async['createWorker'](_0x1aeca0,_0x52510f={},_0xa6aedc={}){const _0x182dbd=_0x5086bf;return this[_0x182dbd(0x4f3)](await this['_nm'](_0x182dbd(0x230),[_0x1aeca0,_0x52510f,_0xa6aedc]));}async[_0x5086bf(0x869)](_0x327d82,_0xf1a2f0={},_0x1bd98b={}){const _0x481e99=_0x5086bf,_0x409d0d=await this[_0x481e99(0x321)](_0x481e99(0x869),[_0x327d82,_0xf1a2f0,_0x1bd98b]);return{'embedder':this[_0x481e99(0x4f3)](_0x409d0d[_0x481e99(0x7b6)]),'indexer':this[_0x481e99(0x4f3)](_0x409d0d[_0x481e99(0x25c)]),'worker':this[_0x481e99(0x4f3)](_0x409d0d[_0x481e99(0x217)]),'search':this[_0x481e99(0x4f3)](_0x409d0d['search']),'api':this['_makePipelineApi'](_0x409d0d[_0x481e99(0x72b)],_0x409d0d[_0x481e99(0x7b6)][_0x481e99(0x6fe)],_0x409d0d[_0x481e99(0x217)]?_0x409d0d[_0x481e99(0x217)][_0x481e99(0x6fe)]:_0x409d0d[_0x481e99(0x72b)]+'-worker')};}[_0x5086bf(0x34d)](_0xa23f1d,_0x316ecf){const _0x2e5845=_0x5086bf;return this[_0x2e5845(0x21e)]['engines']['getRunningEngine'](_0xa23f1d,_0x316ecf)?.[_0x2e5845(0x370)]??null;}[_0x5086bf(0x7b6)](_0x18eb9a){const _0x31c3d3=_0x5086bf,_0x5099f3=this[_0x31c3d3(0x34d)](_0x59b008['EMBEDDER'],_0x18eb9a);if(!_0x5099f3)return null;const _0x49e9b8=this,_0x524b15=_0xcb6a22=>Array[_0x31c3d3(0x69e)](_0xcb6a22)&&Array[_0x31c3d3(0x69e)](_0xcb6a22[0x0])?_0xcb6a22[_0x31c3d3(0x1a7)](_0x5380d6=>Float32Array[_0x31c3d3(0x170)](_0x5380d6)):Float32Array[_0x31c3d3(0x170)](_0xcb6a22);return new Proxy(_0x5099f3,{'get'(_0x377fb6,_0x362594){const _0x799d9d=_0x31c3d3;if(_0x362594===_0x799d9d(0x4c6))return _0x49e9b8[_0x799d9d(0x21e)]['_call'](_0x799d9d(0x1a5),null,_0x799d9d(0x5a8),[_0x59b008[_0x799d9d(0x727)],_0x18eb9a,_0x799d9d(0x4c6),[]],![])[_0x799d9d(0x820)];if(_0x362594===_0x799d9d(0x22c))return async _0x355ae5=>_0x524b15(await _0x5099f3[_0x799d9d(0x22c)](_0x355ae5));if(_0x362594===_0x799d9d(0x4ce))return async _0x4f5edc=>(await _0x5099f3[_0x799d9d(0x4ce)](_0x4f5edc))['map'](_0x3eed59=>Float32Array['from'](_0x3eed59));return _0x377fb6[_0x362594];}});}[_0x5086bf(0x25c)](_0x1d0441){const _0x53fe69=_0x5086bf;return this[_0x53fe69(0x34d)](_0x59b008[_0x53fe69(0x363)],_0x1d0441);}[_0x5086bf(0x217)](_0x188eb0){const _0x459d43=_0x5086bf;return this[_0x459d43(0x34d)](_0x59b008['WORKER'],_0x188eb0);}[_0x5086bf(0x58c)](_0x2f5abd){const _0x13d95f=_0x5086bf,_0x37afb8=this[_0x13d95f(0x34d)](_0x59b008[_0x13d95f(0x880)],_0x2f5abd);if(_0x37afb8)return _0x37afb8;return this['_localViewApi'](_0x2f5abd);}['_localViewApi'](_0x2d35c7){const _0x17f2ee=_0x5086bf,_0x5d3067=this;return{'search':(_0x604462,_0x468b15={})=>_0x5d3067[_0x17f2ee(0x21e)][_0x17f2ee(0x406)]('embeddings',null,_0x17f2ee(0x58c),[_0x2d35c7,_0xbb6cff(_0x604462),_0x468b15],![]),'stats':async()=>_0x5d3067['_n'](_0x17f2ee(0x5f0),[_0x2d35c7],![]),'count':()=>_0x5d3067['_n']('viewOp',[_0x2d35c7,'count'],![])};}async[_0x5086bf(0x191)](_0x4ff43f,_0x24e780,_0x55e598={}){const _0x58cdcf=_0x5086bf,{limit:limit=0xa,..._0x260ddb}=_0x55e598;return this[_0x58cdcf(0x321)](_0x58cdcf(0x191),[_0x4ff43f,_0xbb6cff(_0x24e780),{..._0x260ddb,'limit':limit}]);}[_0x5086bf(0x896)](_0x4d6600){const _0x2e37f0=_0x5086bf;return this['_n'](_0x2e37f0(0x896),[_0x4d6600],![]);}[_0x5086bf(0x293)](_0x177a18,_0x3458b7){const _0x4e2814=_0x5086bf;return this['_n'](_0x4e2814(0x6e2),[_0x177a18,_0x3458b7],![]);}[_0x5086bf(0x778)](_0x3fcb1d){const _0x1b44de=_0x5086bf;return this['_n'](_0x1b44de(0x456),[_0x3fcb1d],![]);}async[_0x5086bf(0x4af)](_0x2c90b0){const _0x599b83=_0x5086bf;return this['_n'](_0x599b83(0x354),[_0x2c90b0],![]);}async[_0x5086bf(0x22a)](_0x29b9c8,_0x2e9815={}){const _0x5b3ce5=_0x5086bf;return this['_n'](_0x5b3ce5(0x1bd),[_0x29b9c8,_0x2e9815],![]);}async[_0x5086bf(0x163)](_0x4a6ca3,_0x5b6054){const _0x21d5c0=_0x5086bf;return this['_n'](_0x21d5c0(0x58e),[_0x4a6ca3,_0x5b6054],![]);}async['describeChunk'](_0x4150dc,_0x1ac021,_0x5704b8,_0x2a8824){const _0x5c4ebf=_0x5086bf;if(_0x4150dc!=null&&typeof _0x4150dc[_0x5c4ebf(0x1ac)]!=='function')throw _0x47e8e4(_0x5c4ebf(0x6fe),'a\x20string',_0x4150dc);if(!_0x4150dc||!_0x5704b8)return null;return this['okdb'][_0x5c4ebf(0x406)](_0x5c4ebf(0x422),null,'describeChunk',[_0x4150dc,_0x1ac021,_0x5704b8,_0x2a8824??null],![]);}async[_0x5086bf(0x692)](_0x21dbad,_0x4a5bf4,_0x9b0af8={}){const _0x1fb330=_0x5086bf,_0x51926f={..._0x9b0af8};if(_0x51926f[_0x1fb330(0x6c5)])_0x51926f[_0x1fb330(0x6c5)]=Array[_0x1fb330(0x170)](_0x51926f[_0x1fb330(0x6c5)]);return this['_n']('durableMarkDone',[_0x21dbad,_0x4a5bf4,_0x51926f]);}async[_0x5086bf(0x180)](_0x36ad6b,_0x33b492,_0x3dae4f,_0x3eb855={}){return this['_n']('durableMarkFail',[_0x36ad6b,_0x33b492,_0x3dae4f,_0x3eb855]);}async[_0x5086bf(0x506)](_0x134297,_0x10ecf9){const _0x1f3fee=_0x5086bf;return this['_n'](_0x1f3fee(0x506),[_0x134297,_0x10ecf9]);}async[_0x5086bf(0x62e)](_0x40c781,_0x11b392){return this['_n']('durableRetryDoc',[_0x40c781,_0x11b392]);}async[_0x5086bf(0x250)](_0x254844,_0x434a4f={}){const _0x193381=_0x5086bf;return this['_n'](_0x193381(0x250),[_0x254844,_0x434a4f]);}async[_0x5086bf(0x662)](_0x549b1e){const _0x22b7a2=_0x5086bf;return this[_0x22b7a2(0x321)]('durableRebuild',[_0x549b1e]);}async[_0x5086bf(0x687)](_0x8d2a9e){const _0x3044a6=_0x5086bf;return this['_n'](_0x3044a6(0x6c7),[_0x8d2a9e],![]);}[_0x5086bf(0x18c)](_0x32effb){const _0x30b263=_0x5086bf;return this['_n'](_0x30b263(0x18c),[_0x32effb],![]);}[_0x5086bf(0x415)](){const _0x4543db=_0x5086bf;return this['_n'](_0x4543db(0x415),[],![]);}[_0x5086bf(0x73e)](_0xc83e0a,_0x348215){const _0x52a289=_0x5086bf,_0xe15869=this['_n'](_0x52a289(0x73e),[_0xc83e0a,_0x348215],![]);return _0xe15869==null?null:Float32Array[_0x52a289(0x170)](_0xe15869);}[_0x5086bf(0x32c)](_0x4d8f9d,_0x2f238f){return this['_n']('resolveModelDims',[_0x4d8f9d,_0x2f238f??null],![])??undefined;}async['registerModel'](_0x355c8d,_0x148afa,_0x1c3ec0,_0x42f34c=''){return this['_n']('registerModel',[_0x355c8d,_0x148afa,_0x1c3ec0,_0x42f34c]);}[_0x5086bf(0x5db)](_0x405792=null){const _0x127b80=_0x5086bf;return this['_n'](_0x127b80(0x5db),[_0x405792],![]);}['listProviders'](){const _0x187e7f=_0x5086bf;return this['_n'](_0x187e7f(0x7a1),[],![]);}async[_0x5086bf(0x62c)](_0xb4d34c,_0x195567){const _0x32f4cb=_0x5086bf;return this['_n'](_0x32f4cb(0x728),[_0xb4d34c,_0x195567],![]),this[_0x32f4cb(0x21e)][_0x32f4cb(0x248)]('~'+_0xb4d34c+':emb:'+_0x195567);}async[_0x5086bf(0x18a)](_0x4521ec,_0x3bf9a4){const _0x1e6749=_0x5086bf;return await this[_0x1e6749(0x62c)](_0x4521ec,_0x3bf9a4),{'adapter':_0x118d04=>this['_makeLazyVectorAdapter'](_0x4521ec,_0x3bf9a4,_0x118d04)};}[_0x5086bf(0x6e5)](_0x1b88bf,_0x527d65,_0x3d53c6){const _0x56c523=this;return{async 'put'(_0x1e9aba,_0x31ed18){const _0x11e018=_0x3ebb;return _0x56c523['_n'](_0x11e018(0x5c6),[_0x1b88bf,_0x527d65,_0x3d53c6,_0x1e9aba,Array[_0x11e018(0x170)](_0x31ed18)]);},async 'remove'(_0x5485da){const _0x264259=_0x3ebb;return _0x56c523['_n'](_0x264259(0x41b),[_0x1b88bf,_0x527d65,_0x3d53c6,_0x5485da]);}};}get[_0x5086bf(0x818)](){const _0x12ae81=_0x5086bf,_0x44101a=this,_0x3ba801=()=>_0x44101a['_n'](_0x12ae81(0x43c),[],![]),_0x1f50c6=_0x552f3e=>{const _0x4cdfb6=_0x12ae81,_0x3a8acc=_0x2480b9=>_0x44101a['_n'](_0x4cdfb6(0x676),[_0x552f3e,_0x2480b9],![]);return{'name':_0x552f3e,'_evict':async()=>_0x3a8acc('evict'),'evict':async()=>_0x3a8acc(_0x4cdfb6(0x6fa)),'snapshot':async()=>_0x3a8acc(_0x4cdfb6(0x175)),'_snapshot':async()=>_0x3a8acc(_0x4cdfb6(0x175)),'rebuild':async()=>_0x3a8acc(_0x4cdfb6(0x574)),'stats':()=>_0x3a8acc('stats'),get 'count'(){return _0x3a8acc('count');},get 'loaded'(){return _0x3a8acc('loaded');}};};return{get 'size'(){const _0x1b825f=_0x12ae81;return _0x3ba801()[_0x1b825f(0x6cf)];},'has':_0x249ee2=>_0x3ba801()[_0x12ae81(0x1ac)](_0x249ee2),'get':_0x42f711=>_0x3ba801()[_0x12ae81(0x1ac)](_0x42f711)?_0x1f50c6(_0x42f711):undefined,'keys':()=>_0x3ba801()[Symbol[_0x12ae81(0x56e)]](),'values':()=>_0x3ba801()[_0x12ae81(0x1a7)](_0x1f50c6)[Symbol['iterator']](),[Symbol[_0x12ae81(0x56e)]]:()=>_0x3ba801()[_0x12ae81(0x1a7)](_0x577d07=>[_0x577d07,_0x1f50c6(_0x577d07)])[Symbol[_0x12ae81(0x56e)]]()};}async[_0x5086bf(0x898)](){}async['stop'](){const _0x41fc55=_0x5086bf;this['_n'](_0x41fc55(0x893),[]);}['_makePipelineApi'](_0x13f795,_0xc8d1a6,_0x5c5b56){const _0x33528c=_0x5086bf;return{'search':(_0x4e919f,_0x33774c={})=>{const _0x267e96=_0x3ebb,_0x9fcc49=this['search'](_0x13f795);if(!_0x9fcc49)throw new Error(_0x267e96(0x801)+_0x13f795+'\x22');return _0x9fcc49[_0x267e96(0x58c)](_0x4e919f,_0x33774c);},'searchDocs':(_0x2ea6aa,_0x2c8e02={})=>this[_0x33528c(0x191)](_0x13f795,_0x2ea6aa,_0x2c8e02),'flush':_0x1590fb=>{const _0x48563a=this['indexer'](_0x13f795);if(!_0x48563a)throw new Error('indexer\x20engine\x20not\x20running:\x20\x22'+_0x13f795+'\x22');return _0x48563a['flush'](_0x1590fb);},'stats':async()=>({'embedder':await this[_0x33528c(0x7b6)](_0xc8d1a6)?.['health']?.(),'indexer':await this['indexer'](_0x13f795)?.['stats']?.(),'worker':await this[_0x33528c(0x217)](_0x5c5b56)?.[_0x33528c(0x5e6)]?.(),'search':await this[_0x33528c(0x58c)](_0x13f795)?.[_0x33528c(0x5e6)]?.()})};}}return embeddings={'OKDBEmbeddings':_0x5b6221,'ENGINE_TYPES':_0x59b008},embeddings;}var auth,hasRequiredAuth;function requireAuth(){const _0x58b32b=_0x2ec26e;if(hasRequiredAuth)return auth;hasRequiredAuth=0x1;const {invalidArgument:_0x148aba}=requireErrors();class _0x5c82b0{constructor(_0x5f0eee){this['okdb']=_0x5f0eee;}['_n'](_0x5b16e1,_0x106da4=[],_0x18a8d9=![]){const _0x4dd7e8=_0x3ebb;return this[_0x4dd7e8(0x21e)][_0x4dd7e8(0x49e)](_0x4dd7e8(0x1e2),null,_0x5b16e1,_0x106da4,_0x18a8d9);}['_nm'](_0x27410e,_0xb27ad0=[]){const _0x27499e=_0x3ebb;return this[_0x27499e(0x21e)][_0x27499e(0x406)](_0x27499e(0x1e2),null,_0x27410e,_0xb27ad0,![]);}get[_0x58b32b(0x182)](){return this['_n']('mode');}get[_0x58b32b(0x361)](){return this['_n']('isSetupMode');}get[_0x58b32b(0x807)](){const _0x19432c=_0x58b32b;return this[_0x19432c(0x21e)][_0x19432c(0x66a)][_0x19432c(0x1e2)]?.[_0x19432c(0x745)]||{};}['isOAuthEmailAllowed'](_0x26b8fe){const _0x241491=_0x58b32b;return this['_n'](_0x241491(0x7b9),[_0x26b8fe??null]);}[_0x58b32b(0x723)](_0x1e9555){const _0x35518d=_0x58b32b;return this['_n'](_0x35518d(0x58a),[_0x1e9555??null]);}[_0x58b32b(0x802)](_0x168620){const _0x3d418a=_0x58b32b;return this['_n'](_0x3d418a(0x65b),[_0x168620??null]);}['_isBootstrap'](){const _0x4bef82=_0x58b32b;return this['_n'](_0x4bef82(0x352));}[_0x58b32b(0x71d)](){const _0x53361a=_0x58b32b;return this['_n'](_0x53361a(0x71d));}['getAuthOptions'](){const _0x52f76b=_0x58b32b;return this['_n'](_0x52f76b(0x49b));}['issueToken'](_0x81b706){const _0x1f7ff9=_0x58b32b;return this['_n'](_0x1f7ff9(0x396),[_0x81b706]);}[_0x58b32b(0x4a3)](_0x41bd64){const _0x1b70b7=_0x58b32b;return this['_n'](_0x1b70b7(0x4a3),[_0x41bd64]);}[_0x58b32b(0x3e4)](_0x2b1e66){const _0x1309c2=_0x58b32b;if(_0x2b1e66!=null&&typeof _0x2b1e66!==_0x1309c2(0x4bb))throw _0x148aba(_0x1309c2(0x334),_0x1309c2(0x6f3),_0x2b1e66);return this['_n'](_0x1309c2(0x3e4),[_0x2b1e66??null]);}async[_0x58b32b(0x82c)](){const _0x21e97f=_0x58b32b;return this['_n'](_0x21e97f(0x602),[],!![]);}async[_0x58b32b(0x419)](_0x5182f0){const _0x23fbce=_0x58b32b;return this['_n'](_0x23fbce(0x639),[_0x5182f0]);}async[_0x58b32b(0x19e)](_0x5a035e){const _0x70e3fa=_0x58b32b;return this['_n'](_0x70e3fa(0x846),[_0x5a035e]);}async[_0x58b32b(0x475)](_0x1cd8e8){const _0x53d820=_0x58b32b;return this['_n'](_0x53d820(0x183),[_0x1cd8e8]);}async[_0x58b32b(0x47f)](_0x98178b){const _0x1ce0b0=_0x58b32b,_0x36f6b7=_0x98178b?.[_0x1ce0b0(0x594)]||{};return this['_n'](_0x1ce0b0(0x47f),[{'remoteAddress':_0x98178b[_0x1ce0b0(0x3f9)]?.['remoteAddress']??null,'internal':_0x98178b?.[_0x1ce0b0(0x162)]?.['internal']===!![],'authorization':_0x36f6b7[_0x1ce0b0(0x5a4)]??null,'cookies':_0x98178b?.[_0x1ce0b0(0x57a)]??{}}]);}async[_0x58b32b(0x6ac)](_0x2e71e3,_0x81423d){const _0x371efa=_0x58b32b;return this[_0x371efa(0x321)](_0x371efa(0x6ac),[_0x2e71e3??null,_0x81423d??null]);}async['loginSelect'](_0x46a0ab,_0x287232,_0x3e745e){return this['_nm']('loginSelect',[_0x46a0ab??null,_0x287232??null,_0x3e745e??null]);}[_0x58b32b(0x69f)](){const _0xec7d23=_0x58b32b;return this['_n'](_0xec7d23(0x69f));}[_0x58b32b(0x6f6)](){const _0x5dec77=_0x58b32b;return this['_n'](_0x5dec77(0x6f6));}['createLoginState'](_0x2fc8d5={},_0x8ca27c=0x927c0){const _0x10b854=_0x58b32b;return this['_n'](_0x10b854(0x36c),[_0x2fc8d5,_0x8ca27c]);}[_0x58b32b(0x750)](_0x516f0e){const _0x243534=_0x58b32b;return this['_n'](_0x243534(0x750),[_0x516f0e]);}async[_0x58b32b(0x2ad)](_0x1ae3a0,_0x26ec20={}){const _0x329f0d=_0x58b32b;return this['_nm'](_0x329f0d(0x59c),[_0x1ae3a0,_0x26ec20]);}async[_0x58b32b(0x3a3)](_0x1ef473={}){const _0x2a068f=_0x58b32b;return this['_nm'](_0x2a068f(0x638),[_0x1ef473]);}[_0x58b32b(0x307)](_0x553f52){const _0x41415f=_0x58b32b;return this['_n'](_0x41415f(0x36d),[_0x553f52]);}}return auth={'OKDBAuth':_0x5c82b0},auth;}var sync,hasRequiredSync;function requireSync(){const _0x583d15=_0x2ec26e;if(hasRequiredSync)return sync;hasRequiredSync=0x1;const {RawDb:_0x57a270}=requireRawdb();class _0x556ae0{constructor(_0x4847ca){this['_s']=_0x4847ca;}get[_0x583d15(0x7de)](){const _0x47c9ec=_0x583d15;return this[_0x47c9ec(0x34b)]||(this[_0x47c9ec(0x34b)]=new _0x57a270(this['_s'][_0x47c9ec(0x21e)]['_systemEnv'],'__sync:acks'));}[_0x583d15(0x7c5)](){const _0x330962=_0x583d15;return this[_0x330962(0x7de)];}['_ensureDbs'](){const _0x41e865=_0x583d15;return this[_0x41e865(0x7de)];}['_n'](_0x509113,_0x43e343=[]){const _0xe38bd=_0x583d15;return this['_s']['_n'](_0xe38bd(0x1a1)+_0x509113,_0x43e343);}[_0x583d15(0x44c)](_0x9e4d4a,_0x1ec5c4){const _0x223cd9=_0x583d15;return this['_n'](_0x223cd9(0x44c),[_0x9e4d4a,_0x1ec5c4]);}async['forceResync'](_0x56ae61){const _0x3394ac=_0x583d15;return this['_n'](_0x3394ac(0x5d2),[_0x56ae61]);}[_0x583d15(0x4bf)](){const _0x4f2d52=_0x583d15;return this['_n'](_0x4f2d52(0x4bf));}[_0x583d15(0x528)](_0x21c410){const _0x3f0aed=_0x583d15;return this['_n'](_0x3f0aed(0x528),[_0x21c410]);}async['runGc'](){const _0x43324b=_0x583d15;return this['_n'](_0x43324b(0x4a8));}[_0x583d15(0x1c2)](){return this['_n']('getStatus');}[_0x583d15(0x898)](){return this['_n']('start');}['stop'](){return this['_n']('stop');}get['_gcTimer'](){try{return this['_n']('timerArmed')?{}:null;}catch{return null;}}}class _0x41c7e7{constructor(_0x2c4dc1){const _0xa8c2b0=_0x583d15;this[_0xa8c2b0(0x21e)]=_0x2c4dc1,this['gc']=new _0x556ae0(this);const _0x32f059=this;this[_0xa8c2b0(0x66a)]=new Proxy({},{'get':(_0x56d787,_0x7deb83)=>typeof _0x7deb83===_0xa8c2b0(0x4bb)?_0x32f059['_n'](_0xa8c2b0(0x66a))[_0x7deb83]:undefined,'set':(_0x530ab2,_0x403e97,_0x459b82)=>{const _0x43a0a5=_0xa8c2b0;if(_0x403e97==='address')_0x32f059['_n'](_0x43a0a5(0x2c8),[_0x459b82??null]);else{if(_0x403e97===_0x43a0a5(0x35a))_0x32f059['_n'](_0x43a0a5(0x6ee),[_0x459b82??null]);else{if(_0x403e97==='delta_limit')_0x32f059['_n'](_0x43a0a5(0x38b),[_0x459b82]);}}return!![];},'ownKeys':()=>Object[_0xa8c2b0(0x1d5)](_0x32f059['_n'](_0xa8c2b0(0x66a))),'getOwnPropertyDescriptor':(_0x175c8a,_0x57004c)=>({'enumerable':!![],'configurable':!![],'value':_0x32f059['_n'](_0xa8c2b0(0x66a))[_0x57004c]}),'has':(_0x4013dd,_0x21a38f)=>_0x21a38f in _0x32f059['_n'](_0xa8c2b0(0x66a))});}['_n'](_0x56f2aa,_0x426c89=[],_0x290397=![]){const _0xb0025a=_0x583d15;return this[_0xb0025a(0x21e)][_0xb0025a(0x49e)]('sync',null,_0x56f2aa,_0x426c89,_0x290397);}[_0x583d15(0x321)](_0x5948a6,_0x435680=[]){const _0xe4797c=_0x583d15;return this[_0xe4797c(0x21e)][_0xe4797c(0x406)]('sync',null,_0x5948a6,_0x435680,!![]);}get[_0x583d15(0x8aa)](){const _0x3ea788=_0x583d15;return this['_pdb']||(this[_0x3ea788(0x1d4)]=new _0x57a270(this[_0x3ea788(0x21e)][_0x3ea788(0x851)],'__sync:peer_state'));}[_0x583d15(0x5ab)](){const _0x371c51=_0x583d15;return this[_0x371c51(0x8aa)];}get['syncLock'](){const _0x205f63=_0x583d15;return this[_0x205f63(0x772)]||(this[_0x205f63(0x772)]=new(requireLock())[(_0x205f63(0x828))](this[_0x205f63(0x21e)],_0x205f63(0x8a3),_0x205f63(0x5f3),{'ttlMs':0x7530}));}get[_0x583d15(0x78f)](){const _0x357072=_0x583d15;return this['_n'](_0x357072(0x66a))['address'];}get['_clockListener'](){const _0x99f624=_0x583d15;return this[_0x99f624(0x21e)][_0x99f624(0x60a)]&&this['_n']('drives')?{}:null;}get[_0x583d15(0x672)](){return this['_clockListener'];}get[_0x583d15(0x38a)](){const _0x17e397=_0x583d15;return this['_n'](_0x17e397(0x849))?.[_0x17e397(0x4be)];}get[_0x583d15(0x628)](){const _0x3fdabe=_0x583d15;return this['_n'](_0x3fdabe(0x849))?.[_0x3fdabe(0x7ce)];}['info'](){const _0x194456=_0x583d15;return this['_n'](_0x194456(0x7c6));}[_0x583d15(0x433)](){const _0x25a27f=_0x583d15;return this['_n'](_0x25a27f(0x433));}get[_0x583d15(0x1a8)](){const _0x150f06=_0x583d15;return this[_0x150f06(0x6cc)]||(()=>this['_n']('peers'));}set[_0x583d15(0x1a8)](_0x42e870){const _0x15a0a2=_0x583d15;this[_0x15a0a2(0x6cc)]=typeof _0x42e870===_0x15a0a2(0x6d8)?_0x42e870:null,this['_n'](_0x15a0a2(0x4f7),[this['__peers']]);}[_0x583d15(0x4ff)](){return this['_n']('listPeers');}async[_0x583d15(0x460)](){const _0x492632=_0x583d15;return this[_0x492632(0x321)](_0x492632(0x460));}async[_0x583d15(0x4b3)](_0x175850){const _0x3af779=_0x583d15;return this[_0x3af779(0x321)](_0x3af779(0x4b3),[_0x175850]);}async[_0x583d15(0x40e)](_0x2d1fdc,_0x5ce206={}){const _0x5dc626=_0x583d15;return this['_nm'](_0x5dc626(0x171),[_0x2d1fdc,_0x5ce206]);}[_0x583d15(0x893)](){return this['_n']('stop');}[_0x583d15(0x6c4)](){const _0x20be0c=_0x583d15;return this['_n'](_0x20be0c(0x6c4));}async[_0x583d15(0x6c3)](_0x8caa55,_0x426789={}){const _0x5555f3=_0x583d15;return this['_n'](_0x5555f3(0x6c3),[_0x8caa55,_0x426789],!![]);}async[_0x583d15(0x5e9)](_0x35fb29){return this['_n']('removeLink',[_0x35fb29],!![]);}[_0x583d15(0x174)](_0x25f2b8){const _0x59f52b=_0x583d15;return this['_n'](_0x59f52b(0x811),[_0x25f2b8]);}[_0x583d15(0x3b9)](_0x44eaef){const _0x512518=_0x583d15;return this['_n'](_0x512518(0x30d),[_0x44eaef]);}async[_0x583d15(0x671)](_0x323af2,_0x3fb314,_0x318132={}){return this['_n']('setPeerState',[_0x323af2,_0x3fb314,_0x318132]);}async['_ensurePeerState'](_0x1c9178){const _0x19d040=_0x583d15;return this['_n'](_0x19d040(0x28c),[_0x1c9178]);}async['_ensure'](){return this['_n']('ensure',[],!![]);}async[_0x583d15(0x615)](_0x8c357){const _0x1d08a4=_0x583d15;return this['_n'](_0x1d08a4(0x615),[_0x8c357],!![]);}async[_0x583d15(0x3d2)](_0x220308,_0x1fa691={}){const _0x5bb876=_0x583d15;return this[_0x5bb876(0x321)]('join',[_0x220308,_0x1fa691]);}async[_0x583d15(0x89b)](_0x1c6ae1={},_0x558139={}){return void _0x1c6ae1['~system'],this['_n']('calculateDelta',[_0x1c6ae1,_0x558139]);}async[_0x583d15(0x817)](_0x472ce6,_0x27dcef,_0xd03737,_0x37e889){const _0x11e1e9=_0x583d15;return this['_nm'](_0x11e1e9(0x817),[_0x472ce6,_0x27dcef,_0xd03737,_0x37e889??null]);}async[_0x583d15(0x446)](_0x244852,_0x3663c1,_0xaccda3={}){const _0x18f0d3=_0x583d15;return this[_0x18f0d3(0x321)](_0x18f0d3(0x446),[_0x244852,_0x3663c1,_0xaccda3]);}[_0x583d15(0x3d1)](_0x2155d0,_0x112818=null){const _0x250d65=_0x583d15;return this['_n'](_0x250d65(0x185),[_0x2155d0,_0x112818?_0x112818['name']:null]);}[_0x583d15(0x6b4)](_0x5d6c84,_0x3cc081=null){const _0x35db8d=_0x583d15;return this['_n'](_0x35db8d(0x6b4),[_0x5d6c84,_0x3cc081?_0x3cc081[_0x35db8d(0x6fe)]:null],!![]);}}return sync={'OKDBSync':_0x41c7e7},sync;}var migrate,hasRequiredMigrate;function requireMigrate(){const _0x35fb94=_0x2ec26e;if(hasRequiredMigrate)return migrate;hasRequiredMigrate=0x1;const {optionsArg:_0x3cc182}=requireErrors(),_0x3f5f4c=require$$0,_0x1ed096=require$$4,_0x49a99d=0x40*0x400;async function _0x30a5c9(_0x551aff,_0x4e9a3b){const _0x490951=_0x3ebb;for(let _0x13572b=0x0;_0x13572b<_0x4e9a3b[_0x490951(0x6cf)];){let _0x248e69=Math[_0x490951(0x5a9)](_0x4e9a3b['length'],_0x13572b+_0x49a99d);if(_0x248e69<_0x4e9a3b[_0x490951(0x6cf)]){const _0x1c1238=_0x4e9a3b['indexOf'](0xa,_0x248e69-0x1);_0x248e69=_0x1c1238===-0x1?_0x4e9a3b['length']:_0x1c1238+0x1;}const _0x42f174=_0x551aff['write'](_0x4e9a3b[_0x490951(0x5df)](_0x13572b,_0x248e69));_0x13572b=_0x248e69;if(!_0x42f174)await new Promise(_0x24a3f9=>_0x551aff[_0x490951(0x874)]('drain',_0x24a3f9));await new Promise(_0x315cc9=>setImmediate(_0x315cc9));}}async function _0x29ebc5(_0x47a8c2){const _0xcb20b=_0x3ebb,_0x33fc05=[];for await(const _0x5929cf of _0x47a8c2)_0x33fc05[_0xcb20b(0x2fb)](Buffer[_0xcb20b(0x292)](_0x5929cf)?_0x5929cf:Buffer[_0xcb20b(0x170)](_0x5929cf,_0xcb20b(0x496)));return Buffer['concat'](_0x33fc05);}class _0x23b375{constructor(_0x2a78c7){this['okdb']=_0x2a78c7;}['_n'](_0x3c70aa,_0x24246d){const _0x15424d=_0x3ebb;return this[_0x15424d(0x21e)]['_call'](_0x15424d(0x622),null,_0x3c70aa,_0x24246d,!![]);}async[_0x35fb94(0x656)](_0x9680d9,_0x4d0fc6={}){const _0x196c00=_0x35fb94,{data:_0x2dcad1,stats:_0x1dca99}=this['_n']('exportBuf',[_0x4d0fc6]);return await _0x30a5c9(_0x9680d9,Buffer[_0x196c00(0x170)](_0x2dcad1)),_0x1dca99;}async[_0x35fb94(0x441)](_0x55df16,_0x2e5594={}){const _0xe6119d=_0x35fb94;_0x3f5f4c[_0xe6119d(0x756)](_0x1ed096[_0xe6119d(0x19d)](_0x55df16),{'recursive':!![]});const _0x2d142c=_0x3f5f4c[_0xe6119d(0x752)](_0x55df16),_0xfb3bee=await this[_0xe6119d(0x656)](_0x2d142c,_0x2e5594);return await new Promise((_0x3c4f00,_0x2d02c8)=>{const _0x76e107=_0xe6119d;_0x2d142c[_0x76e107(0x330)](),_0x2d142c[_0x76e107(0x874)](_0x76e107(0x7ee),_0x3c4f00),_0x2d142c[_0x76e107(0x874)](_0x76e107(0x254),_0x2d02c8);}),{..._0xfb3bee,'filePath':_0x55df16};}async[_0x35fb94(0x88b)](_0x585892,_0x356398={}){const _0x269152=_0x35fb94,{data:_0x19e0ae,stats:_0x54f0fa}=this['_n'](_0x269152(0x541),[_0x356398]);return await _0x30a5c9(_0x585892,Buffer['from'](_0x19e0ae)),_0x54f0fa;}async['importFromStream'](_0x408476,_0x1e9cd4={}){const _0x355af4=_0x35fb94,_0x634b67=await _0x29ebc5(_0x408476),{onProgress:_0x42deb0,..._0x564f90}=_0x1e9cd4,_0x5e011a=this['_n'](_0x355af4(0x3e1),[_0x634b67,_0x564f90]);if(typeof _0x42deb0==='function')_0x42deb0({'type':null,'count':_0x5e011a[_0x355af4(0x53d)]});return _0x5e011a;}async[_0x35fb94(0x43f)](_0x4dc137,_0x2b8119={}){const _0x3dd756=_0x35fb94;return this['importFromStream'](_0x3f5f4c[_0x3dd756(0x717)](_0x4dc137,{'encoding':_0x3dd756(0x496)}),_0x2b8119);}async['backup'](_0x53da41,_0x33e45f={}){const _0x2bdbbb=_0x35fb94;return this['_n'](_0x2bdbbb(0x6ce),[_0x53da41,_0x33e45f]);}['backupRoot'](){return this['_n']('backupRoot',[]);}[_0x35fb94(0x443)](_0x8e2560){return this['_n']('resolveBackupDest',[_0x8e2560??null]);}async['export'](_0x40b977={}){return this['_n']('export',[_0x40b977]);}async[_0x35fb94(0x226)](_0x4429cf,_0x39c43a={}){const _0x57bbbd=_0x35fb94;return this['_n'](_0x57bbbd(0x226),[_0x4429cf,_0x39c43a]);}async[_0x35fb94(0x78b)](_0x13f3fe){const _0x4d37f5=_0x35fb94,{pretty:pretty=![]}=_0x3cc182(_0x13f3fe);return JSON[_0x4d37f5(0x4d2)](await this[_0x4d37f5(0x56d)](),null,pretty?0x2:0x0);}async[_0x35fb94(0x503)](_0x1335b5){const _0x402b8f=_0x35fb94;return this[_0x402b8f(0x226)](JSON['parse'](_0x1335b5));}[_0x35fb94(0x413)](){const _0x587128=_0x35fb94;if(!this[_0x587128(0x21e)][_0x587128(0x8a5)][_0x587128(0x63c)]('default')?.[_0x587128(0x6be)])throw new Error(_0x587128(0x489));}async[_0x35fb94(0x7cb)](_0x22b277){const _0x13e837=_0x35fb94;return this[_0x13e837(0x413)](),this['_n']('exportBlobs',[_0x22b277]);}async[_0x35fb94(0x2c4)](_0x29d18d){const _0x1fe636=_0x35fb94;return this[_0x1fe636(0x413)](),this['_n'](_0x1fe636(0x2c4),[_0x29d18d]);}[_0x35fb94(0x204)](){const _0x546b9a=_0x35fb94;return this['_n'](_0x546b9a(0x607),[])[_0x546b9a(0x1a7)](_0x3bb787=>this[_0x546b9a(0x21e)][_0x546b9a(0x30b)](_0x3bb787));}async['validateBlobIntegrity'](){const _0x93b31b=_0x35fb94;return this[_0x93b31b(0x413)](),this['_n']('validateBlobIntegrity',[]);}async[_0x35fb94(0x37d)](){const _0x27348f=_0x35fb94;return this[_0x27348f(0x413)](),this['_n']('repairBlobRefs',[]);}}return migrate={'OKDBMigrate':_0x23b375},migrate;}function _0x1561(){const _0x195a9c=['length','queue:clear-progress','__logsDb','pushEphemeral','stopView','preparer\x20must\x20be\x20a\x20function','\x27\x20already\x20registered','emit','ms/','function','~files','checkSignals','unresolveField','_locks','view:progress','bucket\x20too\x20long','__tokenSecret','tierList','ctxRelease','durableEngineDoc','listFtsEnvs','refill_amount','_makeLazyVectorAdapter','timer','invalid\x20job.status:\x20','describeTypeDetailed','changeToClockDb','select','_enqueueInTxn','dir','logCap\x20must\x20be\x20null\x20or\x20integer\x20in\x20[','setToken','quarantinedEnvs','reject','MINIMUM_KEY','~ttl:expiry','a\x20string','Too\x20many\x20concurrent\x20connections','_settle','getLoginConfig','sweepExpiredTTL','_np','cron','evict','registerBucketProjection','~sub','defaults','name','Cannot\x20set\x20enforce\x20schema\x20on\x20','TXN_INVALID_ACTION',';return\x20{','unref','_reconcile','createEngine','disableAll','SYSTEM_CLOCK_CHANGE','PLUGIN_ALREADY_REGISTERED','recordRun','_resolveKeys','system:env_release','\x20which\x20does\x20not\x20exist','release','applyInterestDelta','limitOf','_meta','percentile','chunk\x20strategy\x20must\x20be\x20a\x20function','Query\x20operator\x20\x22','_syncExpiresAtField','online','__notImplementedNative','INVALID_VALUE','createReadStream','reverse','failed','__ttlByKey','OKDBIndexNotRegisteredError','EMBED_PENDING','getOpenWarning','fromCharCode','getCursor','ensureFeed','_getFast','okdb-node:\x20unknown\x20bridge\x20op\x20','_isOpenForIp','load',':useReadTransaction','(source)\x20=>\x20{','EMBEDDER','ensureTypeEnv','getHistory','entries','scopedName','keyFor','holder','acquiredAt','return\x20fromCharCode(','action','Unknown\x20OKDB\x20transaction\x20error','Feature\x20not\x20licensed:\x20','_store','data','listTemplates','~queue_logs','job.claim_expires\x20must\x20be\x20number|null','\x22\x20not\x20found','_create','nativeBinaryPath','_setTTLEntry','allocUnsafeSlow','resetFts','getVector','awaitIdle','create','driver','stateInfo','family','bucket','oauth','samplePayloads','patch','code','targetType','quantum','blobPath','resolveField:\x20a\x20resolver\x20or\x20options.batch\x20is\x20required','inBatch','__lock','job.status_message\x20must\x20be\x20string|null','consumeLoginState','createAndStartEngine','createWriteStream','queue:reconciled','registerType','setCurrentDb','mkdirSync','isDeepStrictEqual','getBucket','pumping','queue:removed','okdb-','_write','txn:start','jsonrpcCode','setJobTypeSchema','\x20must\x20be\x20number','closeEnvLocally','functions','_sinks','dropIndex',',\x20source)\x0a\x09\x09}\x20else\x20{\x0a\x09\x09\x09if\x20(','ensure','getMaxBodyBytes','targetKey','_baselines','indexReady','prepareTxnEnqueue','advanceHlcOnRecv','DOC_STATUS_CHANGE','removeSync','assign','randomUUID','\x22)\x20before\x20open()','_syncLock','job_type.defaults.buckets\x20must\x20be\x20array|null','\x20document(s)\x20reference\x20it\x20with\x20onDelete:restrict','typeSubDbs','explainIndex','lock','_durableEmbedderInfo','typesDb','Unknown\x20transaction\x20action:\x20','_settled','_admissionStarted','session','return','encryption\x20key\x20function','encryption:key-changed','embedderCall','Unable\x20to\x20serialize\x20object\x20as\x20a\x20key:\x20','embeddings:indexer:doc:failed','guard','_onFeedChange','some','INVALID_PRIMARY_KEY','next','_formerOrigins','groupsDb','exportJSON','trim','INDEXER_DOC_QUEUED','getTemplate','address','_subsV2Obj','getMany','json','log','_adminRelay','allSettled','reencrypt:\x20env','_quantumGate','system:proc','doc','cursor','concat','callAsync','defineProperty','_noChangelog','details','setClaimGated','listProviders','schema:drop','~processes','listRoutes','pid','_update','pin','\x22\x20to\x20enable\x20it.','resolve','~ref_violations','_registerType','bucket.refill_amount\x20must\x20be\x20int\x20>=\x200','http.listen:\x20host\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20a\x20non-empty\x20array\x20of\x20non-empty\x20strings','snapshotScan','_typeKeys','ctrl','startNewEnginesFromSync','registerFts','sparse','compactLock','_deliver','embedder','registerIndex','log\x20entry\x20message\x20required','isOAuthEmailAllowed','_closedHandle','_rawTxnBuf','isNaN',':index','shift','INVALID_INDEX_KEY','proc','ctxHeartbeat',':txnRange','process(filter)','includeViolations','_openAckDb','info','_buf','label','ctxProgress','embeddings:indexer:ready','exportBlobs','OKDBForeignKeyDeleteError','resolution','publicKey','processor:\x20cannot\x20combine\x20a\x20closure\x20handler\x20with\x20module:{path,export}.\x20','ms\x20p99=','claimGated','getKeys','buildOwnRow','Map','INVALID_ARGUMENT','okdb_session','_patch','_wsettle','sessionId','_setTTL','removeResolver','sseSetHeader','Index\x20\x22','_ackDb','add','resetting','warn','_openEnvLazy','resetIndexBegin','TXN_ERROR','algorithm\x20is\x20gone','\x20does\x20not\x20exist','server','processRest()','hasUniqueViolations','exclusiveStart','MAX_SAFE_INTEGER','getIndexMeta','\x27:\x20','finish','guardSnapshotIterable','_viewState',')\x20+\x20readString(source)}','der','subscribe','node','_dedupeKey','setReadBuffer','transaction','reduce','killAll','listPath','kickOwnedBy','process\x20options.admission\x20must\x20be\x20a\x20function','getStats','clone','_onItem','14491881CmldNZ','vector-search\x20engine\x20not\x20running:\x20\x22','_isLoopbackIp','areIndexesReady','fromEntries','pipelines','allowUnsafe','_oauthConfig','job.','undefined','hasDriver','when','$all','isOrchestrator','claim_id','_rbuf','match','getNodeRecord','record','_report','definition','status_code','_statusEnv','fetchPeer','_localViews','compaction','ttlSetEntry','ttlStats','listNodes','(?:/(.*))?','$nin','replaceMember','value','HTTP_ERROR','default','txnUndone','processor:\x20quantum.module\x20must\x20be\x20a\x20string','forceAfterMs','_run','bus','NativeLock','_handlePoke','_ttlTimerAt','isRunning','_ensureTokensType','listRefViolations','_plugins','delete','regObject','\x20returned\x20no\x20key','setMode','\x20│\x20','job_type.payload_schema.definition\x20must\x20be\x20object','_set','retryJob','diag','exportName','type:registered','retry_delay','customReducerNames','markJobFail','crypto','getRaw','there\x20is\x20no\x20`http`\x20option\x20—\x20the\x20HTTP\x20server\x20exists\x20only\x20when\x20db.http.listen(port)\x20is\x20called','openDB','INDEX_NOT_REGISTERED','near','routes','Engine\x20template\x20build()\x20is\x20required:\x20','_sync','lookupByName','incoming','OKDBAlreadyExistsError','nodeKeys','noteListenAddr','TXN_INVALID_OPS','preview','interest','ttlTimer','boolean','INDEX_ALREADY_REGISTERED','_systemEnv','filter','call','\x22\x20not\x20found\x20in\x20~envs','\x27\x20did\x20not\x20return\x20a\x20valid\x20instance','symbol','enableAll','actions','queue:retry','readString\x20}','clearStuck','index:ready','_listenAddr','\x20documents\x20fail\x20validation','unregisterTarget','ies','replace','Can\x20not\x20serialize\x20key\x20of\x20type\x20','Cannot\x20register\x20plugins\x20after\x20start','tryClaimTokens','Database\x20already\x20opened/closed','\x22\x20must\x20return\x20{\x20embed(input):\x20Promise<Float32Array>\x20}','forgetDb','getAll','createPipeline','detachFeed','Engine\x20driver\x20type\x20must\x20be\x20a\x20non-empty\x20string','level','isEnabled','streamRead','BAD_EMBEDDER_FACTORY','loadedPath','clear','hook','_draining','once','usedBy','dup','_windowCbs','TXN_ENV_MISMATCH','stateNames','resolveData','_scheduleTTLSweep','_maxConnections','destroy','SYSTEM_STOPPED','_ttlByKey','SEARCH','processor:\x20module.path\x20is\x20required','ENGINE_INVALID_TYPE','job.max_tries\x20must\x20be\x20int\x20>=\x201,\x20null\x20(unlimited)\x20or\x20Infinity','_typesDb','changeEncryptionKey:\x20to','backoffUntil','async','tolerant','OKDBInvalidPrimaryKeyError','registerHandler:\x20fn\x20must\x20be\x20a\x20function','exportEnvsToStream','starting','Engine\x20template\x20id\x20must\x20be\x20a\x20non-empty\x20string','update','_handles','_defaultEnvObj','_asArray','created_at','stop','connectionCount','_rootDb','vectorSpace','\x22\x20tokens\x20must\x20be\x20>=\x201','start',']\x20already\x20maps\x20to\x20\x27','inspect','calculateDelta','values','_license','now','readFieldMany','index:progress','getFloat64','Buffer','~system','clearDefaultTTL','_envs','_log','_ensureDbs','ref','formerIds','_peerDb','pause','context','_durableIndexerDoc','flatMap','_flushDebounce','taken','charCodeAt','resolveField:\x20field\x20required','forEach','_clearTTL','_emitProc','a\x20non-empty\x20string','INACTIVE','_logEnv','setMaxBodyBytes','from','reconcilePeerPull','retryable','resetReadTxn','_getNodeRecord','snapshot','immediate','$defs','busState','removes','$lte','VERSION_MISMATCH','job\x20id\x20required','meanwhile\x20—\x20the\x20frozen\x20view\x20cannot\x20be\x20kept.\x20Materialize\x20synchronously\x20(e.g.\x20Array.from)\x20','Plugin\x20\x27','envName','durableMarkFail','geoQuery','mode','lookupAllByName','clearTtl','shouldApplyChange','setEncryptionKey','fromBufferKey','_quantum','catch','_ensureVectorStore','~log','vectorStoreStats','_doHooks','uploadTxn','\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','describeAllTypesDetailed','searchDocs','\x27\x20is\x20already\x20registered','_debounceTimer','_ttlTimeout','dropType','processes','job.priority\x20must\x20be\x20int','Cannot\x20delete\x20','_macro','_rebuilding','logCap','OKDBNotFoundError','dirname','_lookupByName','handleResult','\x20must\x20be\x20','gc.','reidentify','stderr','_dupArg','engines','setCursor','map','peers','_features','SCHEMA_COLLECTION_INVALID','iterate','includes','_blobsDir','job.cron\x20must\x20be\x20string|null','dropped','modeApplied','$mod','storeGetDiffsInRange','ref:violation_resolved','head','validate','isSync','processor:\x20specify\x20exactly\x20one\x20of\x20handler:\x27<name>\x27\x20or\x20module:{path,export},\x20not\x20both','registerHandler:\x20name\x20must\x20be\x20a\x20non-empty\x20string','ALL_EVENTS','durability','_db','flushPoll','durableDocs','object','rows','validateRouteInput','_stopFor','getStatus','$gt','~processes:desired','detach','repair','notes','stor','status','ENGINE_DRIVER_MISSING_START','_indexBuilds','deleted','tries','started','enable','removeEnvironment','runStart','writerStatus','bus:proc','_pdb','keys','asyncIterator','system:stopped','nextExpiry','index:','$regex','failed_ttl','config','build','refreshThresholdMs','\x27\x20doesn\x27t\x20exist','resolvedFields','markJobComplete','auth','_indexBuild','geoConfig','STARTING','iterable','resolveField:\x20options.batchSize\x20must\x20be\x20a\x20positive\x20integer','Can\x20not\x20serialize\x20async\x20iterables\x20without\x20first\x20calling\x20resolving\x20asArray','MAXIMUM_KEY','FIELD_RESOLVER_PENDING','pinned\x20range\x20iterator\x20parked\x20across\x20an\x20await/turn\x20boundary\x20and\x20the\x20env\x20was\x20written\x20','_listening','stopWorkerBegin','initialize','useReadTransaction\x20read\x20view\x20expired:\x20the\x20snapshot\x20was\x20released\x20at\x20the\x20first\x20await/turn\x20','continueIteration','remote','$size','primaryOkdb','_facade','~log_entry','TXN_CLOSED','clearSync','1503427kodVXO','useVersions','args','outgoing','Database\x20not\x20started','isWorker','_closeEnvLocally','pumpEnvSync','job.finished\x20must\x20be\x20number|null','library\x20(okdb\x20node-model\x202.0).\x20For\x20multi-process\x20HTTP\x20serving\x20use\x20the\x20okdb\x20','bind','ctxLog','_allEnvsWithFiles','_buildOwnRow','files.upload:\x20id','onDelete','_closed','free','patchDeclaration','_cancelTTLTimeout','set_null','okdb.noFast','toISOString','_key','listViolations','\x20dropped\x20(buffer\x20full)','\x20actions=','onUndo','describeType','dataEnv','resetIndexFinish','worker','autoCompact','resetIndex','STOPPING','getPrototypeOf','find','markJobProgress','okdb','fts:','engineStart','size','attachFeed','Date','encryptionKeys','putSync','import','encoder','storeEnv','fts:reset','_durableIndexerDocs','inputSchema','embed','\x27\x20is\x20not\x20a\x20function','run','\x27\x20on\x20type\x20\x27','createWorker','_root','acquired','kind','unique','bucket.id\x20must\x20be\x20non-empty\x20string','hasEnv','no_action','locks','queue:clear-done','processorHold','getRunningEngine','claim\x20requires\x20non-empty\x20type','onWindow','callRows','max_concurrency','PLUGIN_DEPENDENCY_MISSING','2359998yMlklg','getJobType','markSnapshotComplete','created','\x22\x20requires\x20a\x20`handler`\x20function','\x0a\x09\x09let\x20','schema:set','_ensureEnv','TYPE_NOT_REGISTERED','_startClaimedSoon','job.tries\x20must\x20be\x20non-negative\x20int','item','_tx','1451620OKSYOT','bus:drain','durableRetryFailed','field:resolver_registered','__absent','typeStats','error','ITEM_REMOVE','_isClosedEnvError','type:','_blobStatusDb','_connections','__syncOverride','_waitNative','indexer','buckets','job.status_code\x20must\x20be\x20string|null','_timer','.\x20Only\x20primitives,\x20null,\x20Buffers,\x20and\x20arrays\x20are\x20allowed.\x20Got:\x20','getDefinition','bucketsDb','pressure','new','floor','ITEM_PENDING','getChanges','workers','maxBodyBytes','system','namespace','item:','QUERY_OPERATOR_FORBIDDEN','OKDBVersionMismatchError','batch','_callPacked','useReadTransaction','Algorithm\x20factory\x20must\x20be\x20a\x20function','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.','reg','BAD_HOST','connected','module','errors','DEFAULT_TTL_MS','claim','\x22\x20must\x20have\x20a\x20start()\x20method','txn','setInt32','getRun','put','version','paused','retry','Engine\x20driver\x20already\x20registered:\x20\x22','\x20was\x20removed\x20in\x20okdb\x202.0.\x20Use\x20processors:true\x20for\x20plain\x20lease\x20participation.\x20See\x20docs/upgrade-2.0.md.','job_type.payload_schema.enforce\x20must\x20be\x20boolean','_logChange','enqueue\x20txn\x20belongs\x20to\x20a\x20different\x20environment','ready','setFilter','_envWide','emitProc','ensurePeerState','createdBy','_remove','_compactLock','_keepAlive','_writer','isBuffer','_durableEngineDoc','_warnUnknownOptions','resumeJobType','busEmit','INDEXER_DOC_FAILED','_status','captureStackTrace','events','_assertOpen','_settleRead','hasNativeBatch','_enableChangelog','log\x20entry\x20fields\x20must\x20be\x20object|null','apply','index:registered','getPosition()\x20{\x20return\x20position\x20},','instance','tags\x20must\x20be\x20array\x20or\x20string','OKDBTypeAlreadyRegisteredError','_timerHandle','subscriptions','dataView','registerChunkStrategy','setStorageResolver','compact','setLogSink','_validateOidcAccessToken','_refIndexDb','algorithm\x20has\x20no\x20method\x20','then','job.error_stack\x20must\x20be\x20string|null','gcOrphanedBlobs','item:update','tick','req','finished','signal','application/octet-stream','$payload','storageStats','_timerObjs','previewTemplate','_pending','fts:drop','ensure:\x20type\x20is\x20required','byIndex','returnRecoverableErrors','reducer','job_type.defaults.ttl\x20must\x20be\x20int\x20>=\x200\x20or\x20null','importBlobs','throw','_buckets','kick','setAddress','read','subscriptions-store:\x20addInterest\x20on\x20unknown\x20session\x20','8jQLJqn','isIndex','commit','bucket.tokens\x20cannot\x20exceed\x20capacity','job_type.defaults.','getSchema','stopAutoCompactCheck','message','removeJobLogsAfterCommit','schema','body','INVALID_SCHEMA','inline','hasIndex','stopped','_drain','\x20=\x20finishUtf8(','__warned','pinned','heartbeat','docs','changeEncryptionKey','resetUnknownOptionsWarned','byLabel','system:bus_state_change','setProcessingConfig','job_type.defaults.backoff_multiplier\x20must\x20be\x20number\x20>=\x201\x20or\x20null','pump','getViolation','_ttlState','$not','_pendingOps','onLicenseExpired','getEntry','_push','root','getIndexStatus','job.buckets\x20must\x20be\x20array|null','restart','ingest','Environment\x20\x22','catalog','storeGetTotalHeadCount','emb','_changefeed','loop-lag','host','existsSync','push','_inlineClosureWarned','DONE','docEntry','RangeError','links','system:clock_change','stream','drop','off','Blob\x20not\x20found:\x20','test','_normalizeOAuthAuthResult','shutdownTimeout','itemsPlan','_cmd','env','isWanted','getPeerState','_resolveFilter','\x20>=\x200x80)\x20','toBufferKey','_role','setWake','_subscribed','max_tries','job_type.defaults.max_tries\x20must\x20be\x20int\x20>=\x201\x20or\x20null','turnWaiters','envSize','dbs','Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results','SCHEMA_VALIDATION_FAILED','setLogger','job.buckets[].tokens\x20must\x20be\x20int\x20>=\x201','storeEnvName','unique:violation','okdb.http.listen(port)\x20in\x20each\x20worker.','viewDb','_nm','_http','OKDBSchemaValidationError','dropping','maxExtra','hash','getBlobStatus','set','getTTL','startClaimed','newListener','resolveModelDims','assertQueryOptions','remoteAddress','refreshTtl','end','refill_every','nativeCode','$exists','header','_low','MCP_ERROR','_lock','list','flushQuantum','abort','puts','attachOKDB','offWindow','job_type.max_concurrency\x20must\x20be\x20int\x20>=\x201\x20or\x20null','WORKERS_REMOVED','_autoCompact','registerQuantum:\x20load\x20must\x20be\x20a\x20function','ceil','nextTick','feature','~queue_payloads','queue:log','bigint','refreshReadTxn','mean','_ttlCompositeKey','_ack','description','_running','dirty','Referenced\x20type\x20\x27','_kbuf','registerTemplate','isBootstrap','hasBody','durableStats','\x27\x20does\x20not\x20exist','maxConnections','admission','maxDbs','_startAdmission','token','materialize\x20them\x20(Array.from)\x20while\x20the\x20view\x20is\x20live.','cause','pending','UNKNOWN_RANGE_OPTION','license:activated','removeJobTypeSchema','isSetupMode','planUpdateJob','INDEXER','setTtl',':\x20not\x20implemented\x20in\x20the\x20native\x20build\x20yet','key','getTypeCount','refItemsDbs','boundary\x20(a\x20pinned\x20read\x20txn\x20blocks\x20LMDB\x20free-page\x20reuse).\x20Do\x20all\x20consistent\x20reads\x20','changes','blobsDir','createLoginState','normalizeOAuthAuthResult','rollback','applyOps','api','maxMs','active','_cursors','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.','_changeToClockDb','_pendingLocal','_claimGated','settledTickets','_blobPath','_writeBlob','event','inNativeCall','repairBlobRefs','Use\x20module:{path,export}\x20alone,\x20or\x20handler:\x27<name>\x27\x20for\x20a\x20built-in.','embeddings:indexer:doc:done','range','inflight','registerModule','rowKey','removed','markJobHeartbeat','_put','subscriptions-store:\x20open()\x20not\x20called','ensure:\x20view\x20entry\x20missing\x20name\x20or\x20definition','dropSchema','_nodePrivateKey','setDeltaLimit','INDEXER_DOC_DONE','_dedupeMax','authOpen','__blobStatusDb','bucket.refill_every\x20must\x20be\x20int\x20>=\x200','err','CLI\x20(`okdb\x20listen`),\x20or\x20use\x20Node\x27s\x20built-in\x20`cluster`\x20module\x20and\x20call\x20','removeEventListener','removeTxn','vector-search','issueToken','setTTL','job.backoff_multiplier\x20must\x20be\x20number\x20>=\x201','clockToChangeDb','resolveField:\x20options.batch\x20must\x20be\x20a\x20function','properties','byteLength','path','_callRows','_ttlParseComposite','_undoHooks','pokeHandler','startAutoCompactCheck','_getOidcDiscovery','txn:rollback','note','_fail','job.tag\x20must\x20be\x20string|null','ms\x20max=','index','resetView','_registrations','ensure:\x20fts\x20entry\x20missing\x20name\x20or\x20fields','_readerCheckInterval','_logsDb','registerQuantum:\x20name\x20must\x20be\x20a\x20non-empty\x20string','an\x20environment\x20name','_range','enforce','emitClearDone','TXN_ROLLBACK','done','okdb-node:\x20a\x20background\x20async\x20handler\x20rejected:\x20','processorsStop','recomputeFields','_getPeerState','_flushTimer','\x20===\x204)\x0a\x09\x09\x09\x09','_afterDurable','invalid\x20job_type.status:\x20','exports','exists','_desired','array','count','enableNullTermination','extend','$in','retryFailed','hasType','storeGetHeadCount','_blobStream','job\x20type\x20must\x20be\x20object','_started','debounceTimer','sweepOrphanLogs','committed','DEFAULT_EVENTS','$near','_shouldApplyChange','join','runtimeDeclarations','ITEM_UPDATE','~proc:state','FOREIGN_KEY_VIOLATION','registerQuantum','BAD_ALGORITHM_FACTORY','\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.','listen','endIndex','sseClose','unique:violation_resolved','\x27,\x20cannot\x20map\x20to\x20\x27','handleDurableClock','REVERSE_INDEX','importBuf','autoCompactState','metaDb','parseBearer','removeListener','files.registerExtractor:\x20extractor\x20must\x20be\x20a\x20function','max','processor','Unique\x20constraint\x20violated\x20on\x20','ENGINE_INVALID_TEMPLATE','describeIndexes','mapError','handleError','true','REF_VIOLATION_RESOLVED','attach','_modeApplied','compression','_pressure','afterTurn','compare','payload','_read','split','socket','getRange','index:reset','_isFar','stack','stopAll','balanced','ONLINE','for','relay:error','mcp','setKick','syncBlobs','_callMacro','isSnapshotComplete','_closeReadTransaction','processors','\x20>\x204)\x20{\x0a\x09\x09\x09if\x20(','_ttlBackoffUntil','sync:apply','toJSON','_reconcilePeer','isInteger','msg',':\x20key\x20[','reducers','_assertFiles','enqueue','listVectorStores','registerEmbedderFactory','writeKey','OKDBUniqueConstraintError','_lookupByTokenHash','_info','vecRemove','state','processorsParticipating','embedder\x20is\x20gone','_release','OKDBError','HTTP_CLUSTER_REMOVED','embeddings','tryAcquire','_jsSchemas','~queue_jobs','isReader','_txnIdAtSnapshot','processor:progress','_buffer','tags','_writerWatchdogInterval','flush','createQueryTester','SESSION_TYPE_INDEX','remove','fetch','QUEUE_WORKER_REMOVED','_addr','getSelfNode','setPosition(p)\x20{\x20position\x20=\x20p\x20},','attachConsole','getCount','role','listIndexKeys','ttl:set','aborted','getUniqueViolations','localViewNames',')\x0a\x09\x09}\x0a\x09\x09',':\x20expected\x20','importFromFile','job\x20must\x20be\x20object','exportToFile','IPv6','resolveBackupDest','_id','indexContent','fetchRemoteDelta','\x20(required\x20by\x20','$pending','http','done_ttl','prefetch','recordPeerAck','_attached','timestamp','_ttlByExpiry','LICENSE_FEATURE_DISABLED','_sweepInProgress','bucket.capacity\x20must\x20be\x20int\x20>=\x200','pauseJobType','alg','prototype','durableEmbedderInfo','fetchJson','\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer','listBuckets','getRefViolation','asArray','__okdb','_ringSize','getClock','scheduled','reconcile','~ttl:key','effective','ttl',',\x20got\x20','updated_at','getMeta','bucket\x20id\x20required','reencrypt','queue:enqueued','getInt32','system:env-sync','runtimeState','clearScan','SYSTEM_POKE','node:perf_hooks','bucket\x20must\x20be\x20object','engine\x20api\x20has\x20no\x20method\x20\x27','storage\x20adapter\x20is\x20gone','Unsupported\x20transaction\x20action:\x20','Engine\x20template\x20kind\x20must\x20be\x20\x22engine\x22\x20or\x20\x22pipeline\x22:\x20','_lookupAllByName','runDrop','HIGH_SENTINEL','Embedder\x20factory\x20for\x20\x22','workerState','trunc','meta','readHashRange','sha256','pinned\x20range\x20iterator\x20held\x20across\x20an\x20await/turn\x20boundary.\x20This\x20surface\x20cannot\x20resume\x20','authenticateRequest','addInterest','dropAll','ERROR','clearTTL','upload','unknown\x20promise\x20token','before\x20any\x20await,\x20chunk\x20with\x20{limit,\x20start,\x20exclusiveStart},\x20or\x20drop\x20snapshot:true.','createEmbedder','node:util','files\x20feature\x20not\x20available','resolvedOptions','~file:blob_status','running','_getRaw','disable','hlc','countByIndex','__fts:','fts','logChange','typeId','durableTierLag','utf8','lastTxnId','must\x20be\x20an\x20object;\x20got\x20null','$eq','whenSettled','getAuthOptions','_markSeen','listRuns','_call','$streamId','Invalid\x20onDelete\x20rule\x20\x27','_isReader','getBinary','authenticateToken','TypeError','items','listJobTypes','cascade','runGc','2320235SYOxRm','handle','sourceType','txnDone','compareKeys','\x20=\x20source[position++]\x0a\x09\x09\x09else\x0a\x09\x09\x09\x09return\x20fromCharCode(','_durableIndexerStats','system:type_drop','_refCache','_admissionTimer','reconcilePeer','flushDebounce','engineStop',':keyToChange','_seen','_uid','_onPending','quarantined','string','(no\x20unambiguous\x20bookmark)\x20—\x20consume\x20it\x20in\x20one\x20synchronous\x20block:\x20materialize\x20(e.g.\x20','cursorKey','privateKey','getPeerAcks','_customReducers','_tids','node:cluster','Index\x20\x27','empty\x20string','registerAlgorithmFactory','dims','isWellFormed','\x22\x20tokens\x20too\x20large','_onStop','write','storeHasDiff','_build','NOT_FOUND','embedBatch','_settleWaiters','closeSession','compiled','stringify','refs','Embedder\x20factory\x20must\x20be\x20a\x20function','_busFacade','\x20references\x20','_pokeHandler','clock','claim_expires','job.type\x20must\x20be\x20non-empty\x20string','status_message','FTS_READY_TIMEOUT','_envSyncStop','registerDriver','reset','OKDBProcessor','chunks','embeddings:doc:status_change','view','_jsFactories','fts:registered','Engine\x20template\x20must\x20be\x20a\x20plain\x20object','_getType','_readViewExpired','encryptionKey','getFast','_unknownOptionsWarned','\x27\x20export\x20\x27','_detachConsole','getUniqueViolation','fail','useReadTransaction\x20range\x20consumed\x20after\x20the\x20creation\x20turn\x20—\x20the\x20consistent\x20view\x20was\x20','~lock','_setKey','_wrap','getUint32','isBun','killWorker','setPeersFn','License\x20limit\x20exceeded:\x20','_envIndexDb','compact/repair\x20already\x20in\x20progress\x20for\x20this\x20environment','addEventListener','resetCursor','_defaultEnv','write\x20batch:\x20missing\x20result','_listPeers','onDone','authenticated','setMaxListeners','importJSON','_okdbAdminAttached','_drainOne','durableMarkDelete','queue.worker(\x27',';\x20got\x20','releaseClaim','[log-sink]\x20','types','$gte','invalid\x20log\x20level:\x20','getJobLogs','_processorStops','sortedDb','OKDB','/([^/]+)','readField','sourceKey','_detachLogSink','signalWant','ref:violation','storeGetConfig','__cmd','cancelJob','itemsDb','_handlePending','_subscribeEvent','has','_env','indexStats','pauseAllAndDrain','bootSyncedViewsInline','bootSyncedEngines','\x20=\x20source[position++]\x0a\x09\x09if\x20(','__desired','_keyListener','Transaction\x20already\x20closed','getGcHorizon','getEmbedderFactory','nextTurn','_stream','bucket.updated\x20must\x20be\x20number','hybridQuery','$ref','_keyFns','_tokenSecret','processor:retry','_handlerName','instanceTimerArmed','offset','job_type.defaults\x20must\x20be\x20object|null','wake','envPath','Error','system:drain','_lazyPinned','_wb','RELAY_FULL','records','getResolvedOptions','turn','raw','exportEnvsBuf','registerReducer','failures','resumeAllAfterDrain','ctxEmit','autoCompactTimerArmed','itemsGroups','port','Symbol.asyncIterator','cleanup','flushMaxWait','references','timeMachine','isActive','bucket\x20\x22','callBatch','announceEnqueued','uninstallEngine','replaceInterests','PUT','continueOnRecoverableError','ctxSignal','drivers','listening','durableCursorFloor','uninstall','listBlobStatus','_settleWrite','childTransaction','removeJob','params','_bootLog','_workers','$type','job_type.id\x20must\x20be\x20non-empty\x20string','\x22\x20is\x20used\x20by:\x20','isTypeEmpty','bootRuntime','envNames','ttl:expired','assertStartAllowed','waiting','drain','_retryPending','export','iterator','restrict','OKDBInvalidIndexKeyError','ENCRYPTION_KEY_REQUIRED','__ttlByExpiry','setSchema','rebuild','prefix','onDo','_commitSessionMutation','creating','bootLogMark','cookies','SKIP','txn\x20op\x20must\x20be\x20an\x20object\x20or\x20tuple','storeGetDiffs','updated','OKDBForeignKeyError','enabled','utf8Write','txnId','getStateAt','$and','index:drop','system:ready','getByPrefix','_sub','error_stack','isOpenForIp','__ref_index','search','unpin','durableDoc','_advanceHlcOnRecv','payload_schema','TXN_INVALID_OP','setUint32','admin','headers','process','IPv4','servers','addJobType','ttlState','PLUGIN_NAME_CONFLICT','_listeners','validateOidcAccessToken','emitWarning','_feed','CREATED','node:events','close','job.bucket_tokens\x20must\x20be\x20int\x20>=1','hasChangelog','authorization','_blobStatusTxn','hasOwnProperty','Type\x20\x27','apiCall','min','_isExpired','_openLocalPeerDb','getLegacyCursor','readKey','updateBucket','handler','sweepExpired','unpack','OKDBTypeNotRegisteredError','ttlMs','target','job_type.defaults.priority\x20must\x20be\x20int\x20or\x20null','patchConfig','queue:failed','_detachLog','envs','\x22\x20on\x20\x22','getRecord','_pumper','orchestrator','_rebuild','_path','\x22\x20is\x20not\x20allowed\x20(it\x20evaluates\x20code);\x20use\x20declarative\x20operators\x20instead','number','node:stream','ensureDesired','SUB_ENV','_ensureDesired','vecPut','fieldPath','ms\x20mean=','job_type.defaults.retry_delay\x20must\x20be\x20int\x20>=\x200\x20or\x20null','slice','hasApi','listTTL','job','_viewCache','ensureType','reason','_emit','forceResync','processor:resumed','backoff_multiplier','runRecord','node:crypto','FOREIGN_KEY_DELETE_RESTRICTED','writeBlob','toFixed','tag','listModels','$or','addSSE','item:remove','subarray','embeddings:indexer:flushed','Engine\x20driver\x20for\x20\x22','ttl:clear','turns','bumpVersion','detachConsole','stats','item:pending','digest','removeLink','updateJob',':data','~fts:envs','resume','STOPPED','isFinite','localViewStats','license:added','assertCreateAllowed','sync','existing','_ensure','~queue_buckets','isHeld','duplicate\x20bucket:\x20','storeEnvPath','__stateDb','reconcileDesired','Key\x20is\x20too\x20large','dedupeMax','flushTicket','\x22\x20must\x20be\x20a\x20plain\x20object','inFlight','queue','ensureTokensType','removeBucket','lastError','Server','getIndex','envsWithFiles','removeJobType','constructor','_isOpen','_onPoke','isCoordinator','bus:poke','licenses','getDefaultTTL','stopHandle','bus:type_drop','vec:','fields','halted','patchSelf','listAlgorithms','selfKey','getValues','registerTarget','spec','failJob','371OKWpAT','license','_nextExpiry','OKDBNotImplementedNativeError','Expected\x20catch\x20callback\x20to\x20be\x20a\x20function','ITEM_CREATE','migrate','embeddings:strategy:registered','flushed','_reconcileDesired','open','_hybridQuery','_nodePublicKey','ftsQuery','views','freeze','_ensureTypeEnv','OKDBInvalidValueError','durableRetryDoc','_txnBuf','gen','job.tags\x20must\x20be\x20array','drainDeadlineMs','@harperdb/extended-iterable:skip','\x20already\x20exists','limits','_assertRangeOptions','getEmbedderSchema','getOidcDiscovery','lookupByTokenHash','\x22\x20is\x20not\x20registered','__adminRelay','get','registerExtractor','TXN_END','processor:ready','appendJobLog','CHANGEFEED_QUANTUM','processor:paused','READER_HELD_ACROSS_AWAIT','pop','INVALID_STATE','_staticCall','_OPTION_HINTS','_handle','bootSyncedPipelines','nidFor','tokens','compactStorage','getJob','\x20of\x20env\x20\x22','stopping','$within','ringSize','__HOLD__','~engines','openEnv','setModeApplied','exportToStream','claimed','capacity','Referenced\x20key\x20\x27','field\x20resolver\x20request\x20still\x20pending','isLoopbackIp','_teardownNative','debug','REF_VIOLATION','pipelineFamily','clearAsync','queue:done','durableRebuild','job_type.payload_schema\x20must\x20be\x20object|null','use\x20engines.registerDriver()','query','_subsV2','\x27\x20does\x20not\x20exist\x20in\x20type\x20\x27','msgpackr','setDefaultTTL','options','processorsStatus','endsWith','lmdb','idempotency_key','_readBuf','OKDBIndexAlreadyRegisteredError','_setPeerState','_pokeListener','type','uninstalled','child','viewOp','~emb:models','createSearch','sseSend','bus:env_release','buildStep','_tickCallback','addBucket','TXN_START','byteOffset','embeddings:indexer:doc:queued','log\x20entry\x20fields\x20too\x20large\x20(>2KB\x20serialized)','lockHeld','createIndexer','completeJob','engine:','install','_durableWorkerStats','change','priority','node:fs','drainJobType','registerViewReducer','no\x20write\x20has\x20landed.\x20Writes/commit\x20are\x20unaffected.','native','nodeKey','register','dupSort','durableMarkDone','TYPE_ALREADY_REGISTERED','BAD_PARAM','limit','bootSyncedViews','lastIndexOf','setPrototypeOf','clearDone','use','null','STARTED','HTTP\x20server\x20already\x20running','isArray','getSecurityNotices','T_SESSION','summary','REMOVE','materializer','listTypes','doesExist','released\x20at\x20the\x20first\x20await/turn\x20boundary.\x20Consume\x20ranges\x20before\x20any\x20await,\x20or\x20','144984gfLzfL','intervalTimer','granId','__ttlCancelledGen','11020464vkohHT','login','createEnvironment','log\x20entry\x20must\x20be\x20a\x20string\x20or\x20object','encodeInto','readTransaction','_handleInProcess','listRecords','relay','applyChange','enforced','buffer','queue:rescheduled','_scheduleFlush','valuesForKey','group','ms\x20busy=','FTS_FLUSH_TIMEOUT','_native','files','$lt','WriteBatch','.\x20Valid:\x20','fingerprint','upsertLink','listLinks','vector','orchestratorStarted','durableWorkerStats','startsWith','bucket_tokens','embed-worker','embeddings:pipeline:ready','__peers','inclusiveEnd','backup'];_0x1561=function(){return _0x195a9c;};return _0x1561();}var mcp,hasRequiredMcp;function requireMcp(){const _0x4262e8=_0x2ec26e;if(hasRequiredMcp)return mcp;hasRequiredMcp=0x1;class _0x484d52{constructor(_0x5d5772){this['okdb']=_0x5d5772,this['clients']=new Map();}['_n'](_0x29f30b,_0x4b3552){const _0x44b425=_0x3ebb;try{return this[_0x44b425(0x21e)][_0x44b425(0x49e)](_0x44b425(0x403),null,_0x29f30b,_0x4b3552,!![]);}catch(_0x5b4866){if(_0x5b4866&&_0x5b4866[_0x44b425(0x748)]===_0x44b425(0x336)&&_0x5b4866[_0x44b425(0x79f)]){if(_0x5b4866[_0x44b425(0x79f)][_0x44b425(0x75e)]!==undefined)_0x5b4866[_0x44b425(0x75e)]=_0x5b4866['details']['jsonrpcCode'];_0x5b4866['details']=_0x5b4866[_0x44b425(0x79f)]['details'],_0x5b4866[_0x44b425(0x748)]=undefined;}throw _0x5b4866;}}['_tools'](){return this['_n']('tools',[]);}async[_0x4262e8(0x49e)](_0x16129d,_0x2373ce={}){const _0x3f972e=_0x4262e8;return this['_n'](_0x3f972e(0x853),[_0x16129d??null,_0x2373ce??{}]);}async[_0x4262e8(0x648)](_0x581ca6,_0x385009={}){const _0x2f8738=_0x4262e8;return this['_n'](_0x2f8738(0x4aa),[_0x581ca6,_0x385009??{}]);}['_initialize'](_0x3685a8){const _0xe22795=_0x4262e8;return this['_n'](_0xe22795(0x1ee),[_0x3685a8??null]);}}return mcp={'OKDBMcp':_0x484d52},mcp;}var sys,hasRequiredSys;function requireSys(){const _0x273bb8=_0x2ec26e;if(hasRequiredSys)return sys;hasRequiredSys=0x1;function _0x22d7a5(_0x50edfd,_0x1065a7,_0x606e87){const _0x2d92dd=_0x3ebb,_0x280ca5={};for(const [_0x3364a1,_0x568aa0]of Object[_0x2d92dd(0x72a)](_0x606e87)){_0x280ca5[_0x3364a1]=_0x568aa0===_0x2d92dd(0x887)?async(..._0x26b9d9)=>_0x50edfd['_call'](_0x1065a7,null,_0x3364a1,_0x26b9d9):(..._0x2f5f2f)=>_0x50edfd[_0x2d92dd(0x49e)](_0x1065a7,null,_0x3364a1,_0x2f5f2f,![]);}return _0x280ca5;}const _0x28c8b7=['listTypes','isType',_0x273bb8(0x214),'describeAllTypes','listIndexes',_0x273bb8(0x2cc),_0x273bb8(0x2ef),'describeIndex',_0x273bb8(0x3eb),_0x273bb8(0x253),_0x273bb8(0x520),_0x273bb8(0x6e8),_0x273bb8(0x190),'meta',_0x273bb8(0x367),'getIndexCount',_0x273bb8(0x565),_0x273bb8(0x803),_0x273bb8(0x776),_0x273bb8(0x3b8),_0x273bb8(0x438)],_0x96e58e={'add':'async','activate':_0x273bb8(0x887),'remove':_0x273bb8(0x887),'list':'sync','get':_0x273bb8(0x5f3),'effective':_0x273bb8(0x5f3)},_0x39b10f={'open':_0x273bb8(0x887),'register':'async','buildOwnRow':_0x273bb8(0x5f3),'_buildProcessingFacet':_0x273bb8(0x5f3),'reportThreadStats':_0x273bb8(0x5f3),'clearThreadStats':_0x273bb8(0x5f3),'emitProc':'sync','addSupervisedChild':'async','removeSupervisedChild':'sync','updateSupervisedChildStats':_0x273bb8(0x5f3),'publishChildRow':_0x273bb8(0x887),'putNode':'async','removeNode':_0x273bb8(0x887),'nodeDead':_0x273bb8(0x5f3),'listNodes':_0x273bb8(0x5f3),'reap':_0x273bb8(0x887),'publishOwnRow':_0x273bb8(0x887),'deregisterSelf':'async','setOwnMeta':_0x273bb8(0x5f3),'noteListenAddr':'sync','hasDesired':_0x273bb8(0x5f3),'getDesired':'sync','setDesired':_0x273bb8(0x887),'listDesired':'sync','getCmd':_0x273bb8(0x5f3),'bumpCmd':'async','processingStatusView':_0x273bb8(0x5f3),'processorsView':_0x273bb8(0x5f3),'clusterStatusView':_0x273bb8(0x5f3),'nodesView':_0x273bb8(0x5f3),'treeView':'sync','getProcess':_0x273bb8(0x5f3),'runtimeProcessesView':_0x273bb8(0x5f3)};function _0x109b3a(_0x36ea56){const _0x3af01a=_0x273bb8,_0x290fda={},_0x40d886=_0x19668d=>_0x19668d&&typeof _0x19668d===_0x3af01a(0x1be)&&!Array[_0x3af01a(0x69e)](_0x19668d)&&typeof _0x19668d[_0x3af01a(0x6fe)]===_0x3af01a(0x4bb)?_0x19668d[_0x3af01a(0x6fe)]:_0x19668d;for(const _0x40d9f2 of _0x28c8b7)_0x290fda[_0x40d9f2]=_0x40d9f2===_0x3af01a(0x3b8)?async(..._0x24c712)=>_0x36ea56['_call'](_0x3af01a(0x47b),null,_0x40d9f2,_0x24c712[_0x3af01a(0x1a7)](_0x40d886),!![]):(..._0x5a14ee)=>_0x36ea56['_call'](_0x3af01a(0x47b),null,_0x40d9f2,_0x5a14ee['map'](_0x40d886),![]);return _0x290fda;}function _0xcd0419(_0x27c69b){const _0x22ff6c=_0x22d7a5(_0x27c69b,'licenses',_0x96e58e);return _0x22ff6c;}function _0x55d214(_0xfbac20){const _0x1f0a89=_0x273bb8,_0x576a7b=()=>_0xfbac20[_0x1f0a89(0x60e)][_0x1f0a89(0x462)](),_0xff0ae4=_0x596aaf=>_0x596aaf[_0x1f0a89(0x209)]?{..._0x596aaf,'_isFree':!![]}:_0x596aaf;return{async 'addLicense'(_0x52de77){const _0x4235c9=_0x1f0a89;return _0xfbac20[_0x4235c9(0x60e)][_0x4235c9(0x7df)](_0x52de77);},async 'reload'(){},async 'recheck'(){},get 'active'(){const _0x4ac83b=_0x1f0a89,_0x15c2ef=_0x576a7b();return _0x15c2ef[_0x4ac83b(0x209)]?null:_0x15c2ef;},get 'effective'(){return _0xff0ae4(_0x576a7b());},'hasLimit'(_0x8cc3b0){const _0x32cceb=_0x1f0a89,_0x1846a9=_0x576a7b();if(!_0x1846a9[_0x32cceb(0x6b5)])return![];const _0x220ac2=_0x1846a9[_0x32cceb(0x635)]?.[_0x8cc3b0];return!(_0x220ac2===null||_0x220ac2===undefined||_0x220ac2===0x0);},'isFeatureEnabled'(_0xeb724e){const _0x4cee44=_0x576a7b();return!_0x4cee44['enforced']||!!_0x4cee44['features']?.[_0xeb724e];},'assertFeature'(_0xca05ea){const _0x2e0411=_0x1f0a89,_0x578e54=_0x576a7b();if(!_0x578e54[_0x2e0411(0x6b5)]||_0x578e54['features']?.[_0xca05ea])return;const {OKDBError:_0x22f67d}=requireErrors(),_0x3096e2=_0x578e54[_0x2e0411(0x209)]?'Feature\x20not\x20available\x20on\x20free\x20tier:\x20'+_0xca05ea+'.\x20Add\x20a\x20license\x20that\x20includes\x20\x22'+_0xca05ea+_0x2e0411(0x7a8):_0x2e0411(0x732)+_0xca05ea+'.\x20The\x20active\x20license\x20does\x20not\x20enable\x20\x22'+_0xca05ea+'\x22.';throw new _0x22f67d(_0x3096e2,_0x2e0411(0x450),{'feature':_0xca05ea});},'assertLimit'(_0x5e2827,_0x358635){const _0x157486=_0x1f0a89,_0x40c3d9=_0x576a7b();if(!_0x40c3d9[_0x157486(0x6b5)])return;const _0x8c9984=_0x40c3d9[_0x157486(0x635)]?.[_0x5e2827];if(_0x8c9984===null||_0x8c9984===undefined||_0x8c9984===0x0)return;if(_0x358635>=_0x8c9984){const {OKDBError:_0x296ea6}=requireErrors();throw new _0x296ea6(_0x157486(0x4f8)+_0x5e2827+'\x20('+_0x358635+'/'+_0x8c9984+')','LICENSE_LIMIT_EXCEEDED',{'limit':_0x5e2827,'current':_0x358635,'max':_0x8c9984});}},'listLicenses'(){const _0x5de828=_0x1f0a89;return _0xfbac20[_0x5de828(0x60e)][_0x5de828(0x338)]();},'getPins'(){const _0x2581d3=_0x1f0a89;return _0xfbac20[_0x2581d3(0x60e)]['list']()[_0x2581d3(0x1a7)](_0x55131f=>({'licenseId':_0x55131f['id'],'pin':_0x55131f[_0x2581d3(0x673)]===_0x2581d3(0x626)?null:_0x55131f[_0x2581d3(0x7a7)]}));}};}function _0x50018a(_0x13d3b6){const _0x58d459=_0x273bb8,_0x210d85=_0x22d7a5(_0x13d3b6,'processes',_0x39b10f);Object[_0x58d459(0x79d)](_0x210d85,_0x58d459(0x617),{'get':()=>_0x13d3b6[_0x58d459(0x49e)](_0x58d459(0x196),null,_0x58d459(0x617),[],![])}),Object[_0x58d459(0x79d)](_0x210d85,_0x58d459(0x383),{'get':()=>_0x13d3b6[_0x58d459(0x49e)](_0x58d459(0x196),null,_0x58d459(0x383),[],![])}),_0x210d85[_0x58d459(0x85d)]=null;const _0x55fa6c=_0x210d85['noteListenAddr'];_0x210d85[_0x58d459(0x84a)]=_0x383f47=>{const _0x64bf5c=_0x58d459;return _0x210d85[_0x64bf5c(0x85d)]=_0x383f47,_0x55fa6c(_0x383f47);};const _0x410d4e=()=>_0x210d85[_0x58d459(0x81c)]()[_0x58d459(0x1a7)](_0x2d921e=>({'key':_0x2d921e[_0x58d459(0x68f)],'value':_0x2d921e,'version':0x1})),_0x22189a={'name':_0x58d459(0x7a3),'_sync':![],'_isOpen':!![],'isProcessStore':!![],'hasType':_0x507745=>_0x507745===_0x58d459(0x7f4),'getRange':_0x500739=>_0x500739===_0x58d459(0x7f4)?_0x410d4e()[Symbol[_0x58d459(0x56e)]]():[][Symbol['iterator']](),'getKeys':_0x9b6ef7=>_0x9b6ef7===_0x58d459(0x7f4)?_0x410d4e()['map'](_0x2830cd=>_0x2830cd[_0x58d459(0x366)])[Symbol[_0x58d459(0x56e)]]():[][Symbol[_0x58d459(0x56e)]](),'getValues':_0x3634d3=>_0x3634d3===_0x58d459(0x7f4)?_0x410d4e()[_0x58d459(0x1a7)](_0x445c5c=>_0x445c5c[_0x58d459(0x820)])[Symbol['iterator']]():[][Symbol[_0x58d459(0x56e)]](),'get':(_0x43ce1f,_0x5a26e8)=>_0x43ce1f===_0x58d459(0x7f4)?_0x410d4e()[_0x58d459(0x21c)](_0x2ebbc2=>_0x2ebbc2[_0x58d459(0x366)]===_0x5a26e8)?.[_0x58d459(0x820)]:undefined,'getCount':_0x162d08=>_0x162d08===_0x58d459(0x7f4)?_0x410d4e()['length']:0x0};Object[_0x58d459(0x79d)](_0x210d85,_0x58d459(0x816),{'get':()=>_0x13d3b6[_0x58d459(0x49e)](_0x58d459(0x196),null,'statusOpen',[],![])?_0x22189a:null});const _0x3c8026=_0x210d85[_0x58d459(0x626)];_0x210d85[_0x58d459(0x626)]=async _0x3eb1f6=>{const _0xd1c632=_0x58d459;return await _0x3c8026(_0x3eb1f6),_0x210d85[_0xd1c632(0x816)];},_0x210d85[_0x58d459(0x5c5)]=()=>_0x13d3b6[_0x58d459(0x49e)]('processes',null,_0x58d459(0x5c3),[],!![]);const {RawDb:_0x2173a2}=requireRawdb();return Object['defineProperty'](_0x210d85,_0x58d459(0x3c0),{'get':()=>_0x13d3b6[_0x58d459(0x851)]?_0x210d85[_0x58d459(0x525)]||=new _0x2173a2(_0x13d3b6[_0x58d459(0x851)],_0x58d459(0x1c4)):undefined}),Object[_0x58d459(0x79d)](_0x210d85,_0x58d459(0x30a),{'get':()=>_0x13d3b6[_0x58d459(0x851)]?_0x210d85[_0x58d459(0x519)]||=new _0x2173a2(_0x13d3b6[_0x58d459(0x851)],'~processes:cmd'):undefined}),_0x210d85[_0x58d459(0x54e)]=()=>_0x13d3b6[_0x58d459(0x49e)](_0x58d459(0x196),null,_0x58d459(0x54e),[],![]),Object[_0x58d459(0x79d)](_0x210d85,'_isWriter',{'get':()=>_0x13d3b6['_call'](_0x58d459(0x196),null,'isWriter',[],![])}),Object[_0x58d459(0x79d)](_0x210d85,_0x58d459(0x4a1),{'get':()=>_0x13d3b6[_0x58d459(0x49e)](_0x58d459(0x196),null,_0x58d459(0x426),[],![])}),_0x210d85[_0x58d459(0x205)]=()=>_0x13d3b6['_call']('processes',null,_0x58d459(0x7d3),[],![]),_0x210d85[_0x58d459(0x16b)]=(_0x2f36dc,_0x9a87fc)=>_0x13d3b6[_0x58d459(0x49e)]('processes',null,_0x58d459(0x28b),[_0x2f36dc,_0x9a87fc],![]),_0x210d85;}return sys={'makeMeta':_0x109b3a,'makeLicenses':_0xcd0419,'makeLicenseChecker':_0x55d214,'makeProcesses':_0x50018a},sys;}var okdbLogger,hasRequiredOkdbLogger;function requireOkdbLogger(){const _0x4c2366=_0x2ec26e;if(hasRequiredOkdbLogger)return okdbLogger;hasRequiredOkdbLogger=0x1;const _0x35db1a={'debug':0xa,'info':0x14,'warn':0x1e,'error':0x28};class _0x5834c0{constructor(_0x152133){const _0xb1de71=_0x3ebb;this['okdb']=_0x152133,this[_0xb1de71(0x763)]=new Set(),this['_meta']={};}[_0x4c2366(0x675)](_0x2829c2){const _0x18ed2b=_0x4c2366,_0x583e18=new _0x5834c0(this['okdb']);return _0x583e18[_0x18ed2b(0x763)]=this[_0x18ed2b(0x763)],_0x583e18['_meta']={...this[_0x18ed2b(0x70f)],..._0x2829c2},_0x583e18;}[_0x4c2366(0x3f0)](_0x17abf3){const _0xdf6b9d=_0x4c2366;return this[_0xdf6b9d(0x763)][_0xdf6b9d(0x7df)](_0x17abf3),()=>this[_0xdf6b9d(0x763)][_0xdf6b9d(0x82f)](_0x17abf3);}['attachConsole'](){const _0x222c04=_0x4c2366,_0x6755d2=_0x35db1a[process.env.OKDB_LOG_LEVEL]??_0x35db1a[_0x222c04(0x7c6)];return this[_0x222c04(0x4ed)]=this[_0x222c04(0x3f0)](({level:_0x580ff3,msg:_0x15b28c,meta:_0x255e05,context:_0x5b757b,ts:_0x2666f2})=>{const _0x4890f6=_0x222c04;if((_0x35db1a[_0x580ff3]??_0x35db1a['info'])<_0x6755d2)return;if(_0x255e05?.[_0x4890f6(0x344)]===_0x4890f6(0x762)&&(_0x580ff3===_0x4890f6(0x7c6)||_0x580ff3===_0x4890f6(0x65d)))return;const _0x2bb351=_0x580ff3==='error'?console[_0x4890f6(0x254)]:_0x580ff3===_0x4890f6(0x7e1)?console[_0x4890f6(0x7e1)]:_0x580ff3===_0x4890f6(0x7c6)?console[_0x4890f6(0x7c6)]:console[_0x4890f6(0x793)],_0x4fddf6=_0x255e05&&Object[_0x4890f6(0x1d5)](_0x255e05)['length']>0x0;_0x4fddf6||_0x5b757b!==undefined?_0x2bb351(new Date(_0x2666f2)['toISOString'](),_0x15b28c,..._0x4fddf6?[_0x255e05]:[],..._0x5b757b!==undefined?[_0x5b757b]:[]):_0x2bb351(new Date(_0x2666f2)[_0x4890f6(0x20e)](),_0x15b28c);}),this[_0x222c04(0x4ed)];}[_0x4c2366(0x5e5)](){const _0xf83cef=_0x4c2366;this[_0xf83cef(0x4ed)]&&(this[_0xf83cef(0x4ed)](),this[_0xf83cef(0x4ed)]=null);}[_0x4c2366(0x33c)](_0x227f41,_0x276780){const _0x18fd15=_0x4c2366,_0x11d731=require$$0$4,_0xd558d6=0x1f4,_0x376709=Number(process.env.OKDB_LOG_FLUSH_MS)||0x3e8;let _0x22a447=[],_0x407ee0=0x0,_0x4b9f7c=null;const _0x518758=()=>{const _0x42ea50=_0x3ebb;_0x4b9f7c=null;if(_0x22a447[_0x42ea50(0x6cf)]===0x0)return;const _0x5b35d4=_0x22a447;_0x22a447=[],_0x407ee0>0x0&&(_0x5b35d4['push']({'ts':Date[_0x42ea50(0x89e)](),'level':_0x42ea50(0x7e1),'msg':_0x42ea50(0x50a)+_0x407ee0+'\x20log\x20entr'+(_0x407ee0===0x1?'y':_0x42ea50(0x860))+_0x42ea50(0x211),'feature':'log','node':_0x276780,'context':null}),_0x407ee0=0x0),_0x227f41[_0x42ea50(0x27c)](_0x3476c5=>{const _0x45d799=_0x42ea50;for(const _0x355ab5 of _0x5b35d4)_0x3476c5[_0x45d799(0x27f)](_0x45d799(0x1f5),_0x11d731[_0x45d799(0x770)](),_0x355ab5);})[_0x42ea50(0x189)](()=>{});},_0x1b928a=this[_0x18fd15(0x3f0)](({level:_0x832a98,msg:_0x350dc7,meta:_0xc2ae3f,context:_0x403ed2,ts:_0x29f1a1})=>{const _0x301d89=_0x18fd15;if(_0x832a98==='debug')return;_0x22a447['length']>=_0xd558d6&&(_0x407ee0++,_0x22a447[_0x301d89(0x7be)]()),_0x22a447[_0x301d89(0x2fb)]({'ts':_0x29f1a1,'level':_0x832a98,'msg':_0x350dc7,'feature':_0xc2ae3f?.[_0x301d89(0x344)]??_0xc2ae3f?.[_0x301d89(0x277)]??null,'node':_0x276780,'context':_0x403ed2??null}),!_0x4b9f7c&&(_0x4b9f7c=setTimeout(_0x518758,_0x376709),_0x4b9f7c[_0x301d89(0x702)]?.());});return()=>{_0x1b928a();if(_0x4b9f7c)clearTimeout(_0x4b9f7c);_0x518758();};}[_0x4c2366(0x5d1)](_0x1ee779,_0x5c6195,_0x2c1254){const _0x595993=_0x4c2366;_0x5c6195 instanceof Error&&(_0x2c1254={'message':_0x5c6195[_0x595993(0x2d2)],'stack':_0x5c6195['stack'],..._0x2c1254},_0x5c6195=_0x5c6195[_0x595993(0x2d2)]);const _0x17aa03={'level':_0x1ee779,'msg':_0x5c6195,'meta':{...this[_0x595993(0x70f)]},'context':_0x2c1254,'ts':Date['now']()};try{this['okdb']['events'][_0x595993(0x6d6)](_0x595993(0x793),_0x17aa03);}catch{}for(const _0x4e88fe of this[_0x595993(0x763)]){try{_0x4e88fe(_0x17aa03);}catch{}}}[_0x4c2366(0x2f2)](_0x2006d3){const _0x15cbfb=_0x4c2366;try{this[_0x15cbfb(0x21e)]?.['events']?.[_0x15cbfb(0x6d6)](_0x15cbfb(0x793),_0x2006d3);}catch{}for(const _0xc771a1 of this[_0x15cbfb(0x763)]){try{_0xc771a1(_0x2006d3);}catch{}}}[_0x4c2366(0x7c6)](_0x2af69b,_0xeb0619){const _0x3e7bf3=_0x4c2366;this[_0x3e7bf3(0x5d1)](_0x3e7bf3(0x7c6),_0x2af69b,_0xeb0619);}[_0x4c2366(0x7e1)](_0x7ca106,_0x28b89a){const _0x250dcc=_0x4c2366;this[_0x250dcc(0x5d1)](_0x250dcc(0x7e1),_0x7ca106,_0x28b89a);}[_0x4c2366(0x254)](_0x3d830f,_0x325175){this['_emit']('error',_0x3d830f,_0x325175);}['debug'](_0x33f2c5,_0x4e2f60){const _0x2b2050=_0x4c2366;this[_0x2b2050(0x5d1)]('debug',_0x33f2c5,_0x4e2f60);}}return okdbLogger=_0x5834c0,okdbLogger;}var okdbPlugins,hasRequiredOkdbPlugins;function requireOkdbPlugins(){const _0x396868=_0x2ec26e;if(hasRequiredOkdbPlugins)return okdbPlugins;hasRequiredOkdbPlugins=0x1;const {OKDB_STATE:_0x13533c}=requireOkdbEnums(),{OKDBError:_0x1da66b}=requireOkdbError();class _0x5ea929{constructor(_0x2b3386){const _0x946978=_0x3ebb;this[_0x946978(0x21e)]=_0x2b3386,this['_plugins']=[];}[_0x396868(0x690)](_0x47861b,_0x45ff36){const _0x3e875e=_0x396868;if(this[_0x3e875e(0x21e)]['state']!==_0x13533c[_0x3e875e(0x59f)])throw new _0x1da66b(_0x3e875e(0x863),_0x3e875e(0x645),{'state':this[_0x3e875e(0x21e)][_0x3e875e(0x41c)]});if(!_0x47861b[_0x3e875e(0x6fe)])throw new _0x1da66b('Plugin\x20must\x20have\x20a\x20name','BAD_PLUGIN',{'plugin':_0x47861b[_0x3e875e(0x6fe)]});const _0x4a3ed5=_0x47861b['requires']??[];for(const _0x1caa85 of _0x4a3ed5){if(!this[_0x3e875e(0x82e)][_0x3e875e(0x786)](_0x337c19=>_0x337c19['module'][_0x3e875e(0x6fe)]===_0x1caa85))throw new _0x1da66b('Missing\x20plugin:\x20'+_0x1caa85+_0x3e875e(0x447)+_0x47861b[_0x3e875e(0x6fe)]+')',_0x3e875e(0x240),{'required':_0x1caa85});}if(this[_0x3e875e(0x82e)][_0x3e875e(0x21c)](_0x57cfb5=>_0x57cfb5[_0x3e875e(0x277)][_0x3e875e(0x6fe)]===_0x47861b[_0x3e875e(0x6fe)]))throw new _0x1da66b(_0x3e875e(0x17e)+_0x47861b[_0x3e875e(0x6fe)]+_0x3e875e(0x6d5),_0x3e875e(0x707),{'plugin':_0x47861b['name']});if(_0x47861b['name']in this[_0x3e875e(0x21e)])throw new _0x1da66b('Plugin\x20name\x20\x27'+_0x47861b[_0x3e875e(0x6fe)]+'\x27\x20conflicts\x20with\x20existing\x20OKDB\x20property',_0x3e875e(0x59a));const _0x51154f=_0x47861b[_0x3e875e(0x690)](this[_0x3e875e(0x21e)],_0x45ff36);if(!_0x51154f||typeof _0x51154f!==_0x3e875e(0x1be))throw new _0x1da66b(_0x3e875e(0x17e)+_0x47861b[_0x3e875e(0x6fe)]+_0x3e875e(0x855),'BAD_PLUGIN',{'plugin':_0x47861b[_0x3e875e(0x6fe)]});this[_0x3e875e(0x82e)][_0x3e875e(0x2fb)]({'module':_0x47861b,'options':_0x45ff36,'instance':_0x51154f});}['_started']=[];async[_0x396868(0x898)](){const _0x6aa174=_0x396868;try{for(const _0x48319c of this[_0x6aa174(0x82e)]){await _0x48319c['instance'][_0x6aa174(0x898)]?.(this[_0x6aa174(0x21e)]),this[_0x6aa174(0x3cb)]['push'](_0x48319c);}}catch(_0x5c93b7){await this[_0x6aa174(0x893)]()[_0x6aa174(0x189)](()=>{});throw _0x5c93b7;}}async['stop'](){const _0x3c4260=_0x396868,_0x9a8785=this['_started']['reverse']();this['_started']=[];let _0x1a5db4=null;for(const _0x27151d of _0x9a8785){try{await _0x27151d['instance'][_0x3c4260(0x893)]?.(this[_0x3c4260(0x21e)]);}catch(_0x2ce5ae){_0x1a5db4??=_0x2ce5ae;}}if(_0x1a5db4)throw _0x1a5db4;}}return okdbPlugins=_0x5ea929,okdbPlugins;}var statics,hasRequiredStatics;function requireStatics(){const _0x4d72f3=_0x2ec26e;if(hasRequiredStatics)return statics;hasRequiredStatics=0x1;const _0x57ca69={'maxDbs':0x400,'pageSize':0x1000,'compression':!![],'encryptionKey':undefined,'mapSize':0x100000000,'durability':_0x4d72f3(0x3ff)},_0x1c1bd8=new Set([_0x4d72f3(0x358),'pageSize',_0x4d72f3(0x3f2),_0x4d72f3(0x4e9),_0x4d72f3(0x224),'mapSize',_0x4d72f3(0x1ba),_0x4d72f3(0x806),_0x4d72f3(0x66d),'auth',_0x4d72f3(0x5f3),'queue','functions',_0x4d72f3(0x54d),_0x4d72f3(0x403),_0x4d72f3(0x3d3),_0x4d72f3(0x793),_0x4d72f3(0x308),'readerCheckIntervalMs',_0x4d72f3(0x1a5),'processors',_0x4d72f3(0x819),'processes',_0x4d72f3(0x218),_0x4d72f3(0x370),_0x4d72f3(0x593),_0x4d72f3(0x2a7),_0x4d72f3(0x65d),_0x4d72f3(0x2eb),_0x4d72f3(0x6ce)]),_0x48a8e2={'http':_0x4d72f3(0x83f)};return statics={'defaults':_0x57ca69,'KNOWN_OPTIONS':_0x1c1bd8,'_OPTION_HINTS':_0x48a8e2},statics;}var licenseConfig,hasRequiredLicenseConfig;function requireLicenseConfig(){const _0xb020e1=_0x2ec26e;if(hasRequiredLicenseConfig)return licenseConfig;hasRequiredLicenseConfig=0x1;const _0x3d010d=require$$0$2,_0x57a1fe='-----BEGIN\x20PUBLIC\x20KEY-----\x0aMCowBQYDK2VwAyEAacrkExPrhxNVHyeQBLDwg8xfm1OwyxDAPNdGXABYS2s=\x0a-----END\x20PUBLIC\x20KEY-----',_0x4c8b68=_0x3d010d['createHash'](_0xb020e1(0x47d))['update'](_0x3d010d['createPublicKey'](_0x57a1fe)[_0xb020e1(0x56d)]({'type':'spki','format':_0xb020e1(0x7f2)}))[_0xb020e1(0x5e8)]('hex')[_0xb020e1(0x5ca)](0x0,0x10),_0x3e5d0e={'LICENSED_BUILD':_0xb020e1(0x3ee),'PUBLIC_KEY_PEM':_0x57a1fe,'PUB_FINGERPRINT':_0x4c8b68,'LICENSE_EXPIRED_ACTION':_0xb020e1(0x793)};return licenseConfig={'_C':_0x3e5d0e,'PUBLIC_KEY_PEM':_0x57a1fe,'PUB_FINGERPRINT':_0x4c8b68},licenseConfig;}var okdbSubscriptionsStore={'exports':{}},okdbQueryFilter,hasRequiredOkdbQueryFilter;function requireOkdbQueryFilter(){const _0x5e2413=_0x2ec26e;if(hasRequiredOkdbQueryFilter)return okdbQueryFilter;hasRequiredOkdbQueryFilter=0x1;const _0x3b0234=require$$0$5,{OKDBError:_0x509d49}=requireOkdbError(),_0x154c5a=[_0x5e2413(0x499),'$ne',_0x5e2413(0x1c3),_0x5e2413(0x50c),_0x5e2413(0x6bf),_0x5e2413(0x17a),_0x5e2413(0x3c5),_0x5e2413(0x81e),_0x5e2413(0x333),_0x5e2413(0x1da),'$options',_0x5e2413(0x1b1),_0x5e2413(0x1f2),_0x5e2413(0x80c),_0x5e2413(0x562),'$elemMatch',_0x5e2413(0x2e9),_0x5e2413(0x584),_0x5e2413(0x5dc),'$nor'],_0x4feb2e=['$where'];function _0x4f8427(_0x1fc3ad){return()=>{const _0x41bdcb=_0x3ebb,_0x1313d9=new _0x509d49(_0x41bdcb(0x712)+_0x1fc3ad+_0x41bdcb(0x5c0),_0x41bdcb(0x26d),{'operator':_0x1fc3ad});_0x1313d9[_0x41bdcb(0x1c9)]=0x190;throw _0x1313d9;};}const _0x2ee770=Object['freeze']({...Object[_0x5e2413(0x804)](_0x154c5a[_0x5e2413(0x1a7)](_0x373e5b=>[_0x373e5b,_0x3b0234[_0x373e5b]])),...Object[_0x5e2413(0x804)](_0x4feb2e[_0x5e2413(0x1a7)](_0x3acd5e=>[_0x3acd5e,_0x4f8427(_0x3acd5e)]))});function _0x3da044(_0x4da199){const _0x52dfdd=_0x5e2413;return _0x3b0234[_0x52dfdd(0x42d)](_0x4da199,{'operations':_0x2ee770});}function _0x5c0dbf(_0x21e9a8){const _0x5bd9cf=_0x5e2413;if(_0x21e9a8==null)return;try{_0x3da044(_0x21e9a8);}catch(_0x325de1){if(_0x325de1?.[_0x5bd9cf(0x748)]==='QUERY_OPERATOR_FORBIDDEN')throw _0x325de1;}}return okdbQueryFilter={'compileFilter':_0x3da044,'assertFilterAllowed':_0x5c0dbf,'ALLOWED_OPERATORS':_0x154c5a,'FORBIDDEN_OPERATORS':_0x4feb2e},okdbQueryFilter;}var okdbEnvRefs,hasRequiredOkdbEnvRefs;function requireOkdbEnvRefs(){const _0x2086fc=_0x2ec26e;if(hasRequiredOkdbEnvRefs)return okdbEnvRefs;hasRequiredOkdbEnvRefs=0x1;const {CHANGE_ACTIONS:_0x55737b,EVENTS:_0x362466}=requireOkdbEnums(),{OKDBError:_0x4eb244,OKDBForeignKeyDeleteError:_0x5c8be5}=requireOkdbError(),_0x1ee512=_0x2086fc(0x7aa),_0x36c181=new Set([_0x2086fc(0x237),_0x2086fc(0x4a7),_0x2086fc(0x20c),'restrict']);function _0x47a122(_0x2aa913,_0x10594b){const _0x4e3d34=_0x2086fc;if(_0x2aa913==null||!_0x10594b)return undefined;const _0x198e9a=_0x10594b[_0x4e3d34(0x3f8)]('.');let _0x2af3c8=_0x2aa913;for(const _0x5644e of _0x198e9a){if(_0x2af3c8==null||typeof _0x2af3c8!==_0x4e3d34(0x1be)||!(_0x5644e in _0x2af3c8))return undefined;_0x2af3c8=_0x2af3c8[_0x5644e];}return _0x2af3c8;}function _0x895b60(_0x13260e,_0x3e6e2e,_0x16232b){const _0x4edd55=_0x2086fc,_0x53e2b9=_0x3e6e2e[_0x4edd55(0x3f8)]('.'),_0x36834e={..._0x13260e};let _0x1a7b44=_0x36834e;for(let _0x2bd775=0x0;_0x2bd775<_0x53e2b9[_0x4edd55(0x6cf)]-0x1;_0x2bd775++){_0x1a7b44[_0x53e2b9[_0x2bd775]]=_0x1a7b44[_0x53e2b9[_0x2bd775]]!=null?{..._0x1a7b44[_0x53e2b9[_0x2bd775]]}:{},_0x1a7b44=_0x1a7b44[_0x53e2b9[_0x2bd775]];}return _0x1a7b44[_0x53e2b9[_0x53e2b9[_0x4edd55(0x6cf)]-0x1]]=_0x16232b,_0x36834e;}function _0x401a8c(_0x5548fd,_0x178a35,_0x3f3ae9,_0x7d860f,_0x1b49ed){return[_0x5548fd,_0x178a35,_0x3f3ae9,_0x7d860f,_0x1b49ed];}function _0x97714d(_0x25c256){const _0x1fa250=_0x2086fc;return typeof _0x25c256==='string'||typeof _0x25c256===_0x1fa250(0x5c1);}function _0x5c31f0(_0x54c0ba,_0x195fde){const _0x17b988=_0x2086fc;return JSON[_0x17b988(0x4d2)]([_0x54c0ba,_0x195fde]);}function*_0x1799dd(_0x5b5e91,_0x17d941,_0x385331){const _0x2f588b=_0x2086fc,_0x311ed5=_0x385331!==undefined;for(const {key:_0x4f2c8e}of _0x5b5e91[_0x2f588b(0x3fa)]({'start':_0x311ed5?[_0x17d941,_0x385331]:[_0x17d941]})){if(!Array['isArray'](_0x4f2c8e))continue;if(_0x4f2c8e[0x0]!==_0x17d941||_0x311ed5&&_0x4f2c8e[0x1]!==_0x385331)break;yield _0x4f2c8e;}}function _0x5ac15a(_0xadaa8f,_0x452ce1='',_0x23ff7a=null){const _0x209eac=_0x2086fc,_0x291e5b=[];if(!_0xadaa8f||typeof _0xadaa8f!==_0x209eac(0x1be))return _0x291e5b;if(!_0x23ff7a)_0x23ff7a=_0xadaa8f;if(_0xadaa8f[_0x209eac(0x52e)]){const _0xe6b584=_0xadaa8f['$ref'][_0x209eac(0x810)](/^#\/\$defs\/(.+)$/);if(_0xe6b584&&_0x23ff7a?.[_0x209eac(0x177)]?.[_0xe6b584[0x1]])return _0x5ac15a(_0x23ff7a['$defs'][_0xe6b584[0x1]],_0x452ce1,_0x23ff7a);return _0x291e5b;}if(_0xadaa8f[_0x209eac(0x8a8)]&&typeof _0xadaa8f[_0x209eac(0x8a8)]===_0x209eac(0x1be)&&_0xadaa8f[_0x209eac(0x8a8)][_0x209eac(0x673)]){const _0x15e135=_0xadaa8f['ref'][_0x209eac(0x207)]||_0x209eac(0x237);if(!_0x36c181[_0x209eac(0x51e)](_0x15e135))throw new _0x4eb244(_0x209eac(0x4a0)+_0x15e135+'\x27\x20at\x20'+(_0x452ce1||_0x209eac(0x2ee))+_0x209eac(0x6c1)+[..._0x36c181][_0x209eac(0x3d2)](',\x20'),_0x209eac(0x2d6));_0x291e5b[_0x209eac(0x2fb)]({'fieldPath':_0x452ce1,'targetType':_0xadaa8f[_0x209eac(0x8a8)][_0x209eac(0x673)],'onDelete':_0x15e135});}if(_0xadaa8f[_0x209eac(0x39b)])for(const [_0x75fc7b,_0x1806f6]of Object['entries'](_0xadaa8f[_0x209eac(0x39b)])){const _0x5b159b=_0x452ce1?_0x452ce1+'.'+_0x75fc7b:_0x75fc7b;_0x291e5b[_0x209eac(0x2fb)](..._0x5ac15a(_0x1806f6,_0x5b159b,_0x23ff7a));}return _0x291e5b;}function _0x295007(_0x4211fd){const _0xba4d9d=_0x2086fc,_0x307cd=new Map(),_0x5a986a=new Map();for(const _0xdec901 of _0x4211fd[_0xba4d9d(0x7af)]()){if(_0xdec901[_0xba4d9d(0x6c8)]('~'))continue;const _0x48b77d=_0x4211fd[_0xba4d9d(0x779)][_0xba4d9d(0x63c)](_0xdec901);if(!_0x48b77d?.[_0xba4d9d(0x2d4)]?.[_0xba4d9d(0x814)])continue;let _0x4e3002;try{_0x4e3002=_0x5ac15a(_0x48b77d[_0xba4d9d(0x2d4)]['definition']);}catch{continue;}if(_0x4e3002[_0xba4d9d(0x6cf)]>0x0){_0x307cd[_0xba4d9d(0x328)](_0xdec901,_0x4e3002);for(const _0x257c30 of _0x4e3002){if(!_0x5a986a[_0xba4d9d(0x51e)](_0x257c30[_0xba4d9d(0x749)]))_0x5a986a[_0xba4d9d(0x328)](_0x257c30[_0xba4d9d(0x749)],[]);_0x5a986a[_0xba4d9d(0x63c)](_0x257c30[_0xba4d9d(0x749)])['push']({'sourceType':_0xdec901,'fieldPath':_0x257c30['fieldPath'],'onDelete':_0x257c30[_0xba4d9d(0x207)]});}}}_0x4211fd[_0xba4d9d(0x4b1)]={'outgoing':_0x307cd,'incoming':_0x5a986a};if(_0x307cd[_0xba4d9d(0x221)]>0x0)_0x152c11(_0x4211fd);}function _0xe7feb2(_0x458cc7,_0x364065){const _0x28d806=_0x2086fc;return _0x458cc7[_0x28d806(0x4b1)]['outgoing'][_0x28d806(0x63c)](_0x364065)||[];}function _0xec2eed(_0x502acd,_0x559af3){const _0x5f2d42=_0x2086fc;return _0x502acd[_0x5f2d42(0x4b1)][_0x5f2d42(0x847)][_0x5f2d42(0x63c)](_0x559af3)||[];}function _0x152c11(_0x3ba6c4){const _0x148f9b=_0x2086fc;if(_0x3ba6c4[_0x148f9b(0x2ae)])return _0x3ba6c4[_0x148f9b(0x2ae)];return _0x3ba6c4[_0x148f9b(0x2ae)]=_0x3ba6c4['db'][_0x148f9b(0x840)](_0x148f9b(0x58b),{'dupSort':![]}),_0x3ba6c4[_0x148f9b(0x2ae)];}function _0x23a737(_0x51ed8b,_0x26e66e,_0x2b4e4e,_0x21c337,_0x4b945b){const _0x13cfba=_0x2086fc,_0xc90f7c=_0xe7feb2(_0x51ed8b,_0x26e66e);if(_0xc90f7c[_0x13cfba(0x6cf)]===0x0)return;const _0x2f5042=_0x152c11(_0x51ed8b);for(const _0x598ed2 of _0xc90f7c){const _0x46ab6a=_0x4b945b!=null?_0x47a122(_0x4b945b,_0x598ed2[_0x13cfba(0x5c7)]):undefined,_0x1e8f85=_0x21c337!=null?_0x47a122(_0x21c337,_0x598ed2[_0x13cfba(0x5c7)]):undefined;if(_0x46ab6a===_0x1e8f85)continue;_0x97714d(_0x46ab6a)&&_0x2f5042[_0x13cfba(0x76e)](_0x401a8c(_0x598ed2[_0x13cfba(0x749)],_0x46ab6a,_0x26e66e,_0x2b4e4e,_0x598ed2[_0x13cfba(0x5c7)])),_0x97714d(_0x1e8f85)&&_0x2f5042[_0x13cfba(0x225)](_0x401a8c(_0x598ed2[_0x13cfba(0x749)],_0x1e8f85,_0x26e66e,_0x2b4e4e,_0x598ed2[_0x13cfba(0x5c7)]),0x1);}}function _0x1047ce(_0x2bb9d8,_0x1270dd,_0x53af1b,_0x5151f5){const _0x549fa1=_0x2086fc,_0x5736cb=_0xe7feb2(_0x2bb9d8,_0x1270dd);if(_0x5736cb[_0x549fa1(0x6cf)]===0x0)return;const _0x5fa318=_0x152c11(_0x2bb9d8);for(const _0x40ef14 of _0x5736cb){const _0x5658ef=_0x5151f5!=null?_0x47a122(_0x5151f5,_0x40ef14[_0x549fa1(0x5c7)]):undefined;_0x97714d(_0x5658ef)&&_0x5fa318[_0x549fa1(0x76e)](_0x401a8c(_0x40ef14[_0x549fa1(0x749)],_0x5658ef,_0x1270dd,_0x53af1b,_0x40ef14[_0x549fa1(0x5c7)]));}}function _0x53fe5c(_0x16035a,_0x2d5dd2,_0x549fca,_0x4f2fed){const _0x22f0e0=_0x2086fc,_0x5822a0=_0xe7feb2(_0x16035a,_0x2d5dd2);if(_0x5822a0[_0x22f0e0(0x6cf)]===0x0)return[];const _0x30a536=[];for(const _0x350223 of _0x5822a0){const _0x560e1e=_0x47a122(_0x4f2fed,_0x350223[_0x22f0e0(0x5c7)]);if(_0x560e1e==null)continue;if(!_0x16035a[_0x22f0e0(0x3c7)](_0x350223[_0x22f0e0(0x749)])){_0x30a536[_0x22f0e0(0x2fb)]({'fieldPath':_0x350223[_0x22f0e0(0x5c7)],'targetType':_0x350223[_0x22f0e0(0x749)],'targetKey':_0x560e1e,'message':_0x22f0e0(0x34f)+_0x350223[_0x22f0e0(0x749)]+_0x22f0e0(0x355)});continue;}const _0x2b728d=_0x16035a[_0x22f0e0(0x4e7)](_0x350223['targetType'])[_0x22f0e0(0x734)];!_0x2b728d[_0x22f0e0(0x6a5)](_0x560e1e)&&_0x30a536[_0x22f0e0(0x2fb)]({'fieldPath':_0x350223[_0x22f0e0(0x5c7)],'targetType':_0x350223[_0x22f0e0(0x749)],'targetKey':_0x560e1e,'message':_0x22f0e0(0x659)+_0x560e1e+_0x22f0e0(0x667)+_0x350223[_0x22f0e0(0x749)]+'\x27'});}return _0x30a536;}function _0x5855b0(_0x3cb271,_0x5c7e28,_0x55d1cb,_0x5bd94d,_0x18a5b4,{timestamp:_0x36e357,origin:_0x24af3f,_cascadeVisited:_0x5be62a}){const _0x526041=_0x2086fc,_0xe5803a=_0xec2eed(_0x3cb271,_0x55d1cb);if(_0xe5803a[_0x526041(0x6cf)]===0x0)return;const _0x45b47d=_0x152c11(_0x3cb271),_0x484097=[];for(const [,,_0x47c308,_0x3fd408,_0x26a7cb]of _0x1799dd(_0x45b47d,_0x55d1cb,_0x5bd94d)){_0x484097[_0x526041(0x2fb)]({'sourceType':_0x47c308,'sourceKey':_0x3fd408,'fieldPath':_0x26a7cb});}if(_0x484097[_0x526041(0x6cf)]===0x0)return;for(const _0x241c25 of _0x484097){const _0x2619f5=_0xe5803a[_0x526041(0x21c)](_0x55182c=>_0x55182c[_0x526041(0x4ab)]===_0x241c25[_0x526041(0x4ab)]&&_0x55182c[_0x526041(0x5c7)]===_0x241c25[_0x526041(0x5c7)]),_0x19d91c=_0x2619f5?.['onDelete']||_0x526041(0x237);switch(_0x19d91c){case _0x526041(0x56f):{if(_0x24af3f===null)throw new _0x5c8be5(_0x55d1cb,_0x5bd94d,_0x484097[_0x526041(0x852)](_0x12e660=>{const _0x41ba7d=_0x526041,_0x591692=_0xe5803a[_0x41ba7d(0x21c)](_0x22a5be=>_0x22a5be[_0x41ba7d(0x4ab)]===_0x12e660['sourceType']&&_0x22a5be[_0x41ba7d(0x5c7)]===_0x12e660[_0x41ba7d(0x5c7)]);return(_0x591692?.[_0x41ba7d(0x207)]||_0x41ba7d(0x237))==='restrict';}));break;}case _0x526041(0x4a7):{const _0xf5f484=_0x5c31f0(_0x241c25[_0x526041(0x4ab)],_0x241c25[_0x526041(0x514)]);if(_0x5be62a['has'](_0xf5f484))continue;_0x3cb271[_0x526041(0x4e7)](_0x241c25[_0x526041(0x4ab)])[_0x526041(0x734)][_0x526041(0x6a5)](_0x241c25[_0x526041(0x514)])&&_0x3cb271[_0x526041(0x28e)](_0x5c7e28,_0x241c25[_0x526041(0x4ab)],_0x241c25[_0x526041(0x514)],{'timestamp':_0x36e357,'origin':_0x24af3f,'_cascadeVisited':_0x5be62a});break;}case _0x526041(0x20c):{const _0x30ff94=_0x3cb271[_0x526041(0x4e7)](_0x241c25[_0x526041(0x4ab)])[_0x526041(0x734)],_0x507d76=_0x30ff94[_0x526041(0x2ec)](_0x241c25[_0x526041(0x514)]);if(_0x507d76){const _0x5891aa=_0x895b60(_0x507d76[_0x526041(0x820)],_0x241c25[_0x526041(0x5c7)],null);_0x3cb271[_0x526041(0x75c)](_0x5c7e28,'put',_0x241c25[_0x526041(0x4ab)],_0x241c25[_0x526041(0x514)],_0x5891aa,{'timestamp':_0x36e357,'origin':_0x24af3f,'_cascading':!![]});}break;}}}}function _0x349a64(_0x4b990e){const _0x4c9669=_0x2086fc;!_0x4b990e[_0x4c9669(0x3c7)](_0x1ee512)&&_0x4b990e[_0x4c9669(0x7ab)](_0x1ee512);}function _0x2ca571(_0x308671,_0x424ead,_0x3a13ab,_0x33d964,_0x4b26c1,_0x11651b,_0x4cda49,{timestamp:timestamp=Date['now'](),origin:origin=null}={}){const _0x4e008d=_0x2086fc;_0x349a64(_0x308671);const _0x346dd6=_0x3a13ab+'@'+_0x33d964+'@'+_0x4b26c1,_0x27486b={'sourceType':_0x3a13ab,'sourceKey':_0x33d964,'fieldPath':_0x4b26c1,'targetType':_0x11651b,'targetKey':_0x4cda49,'timestamp':timestamp,'origin':origin},_0x35bb77=_0x308671[_0x4e008d(0x4e7)](_0x1ee512)[_0x4e008d(0x734)],_0x3b3f97=_0x35bb77[_0x4e008d(0x2ec)](_0x346dd6),_0x2cc914=_0x3b3f97?_0x3b3f97['version']+0x1:0x1;_0x35bb77[_0x4e008d(0x225)](_0x346dd6,_0x27486b,_0x2cc914),_0x308671['_logChange']({'id':_0x4e008d(0x26c)+_0x1ee512+'@'+_0x346dd6,'type':_0x1ee512,'key':_0x346dd6,'action':_0x55737b[_0x4e008d(0x554)],'timestamp':timestamp,'txnId':_0x424ead?.['id'],'origin':origin},_0x3b3f97?.['value'],_0x27486b),_0x308671[_0x4e008d(0x29a)][_0x4e008d(0x6d6)](_0x362466[_0x4e008d(0x65e)],{'sourceType':_0x3a13ab,'sourceKey':_0x33d964,'fieldPath':_0x4b26c1,'targetType':_0x11651b,'targetKey':_0x4cda49,'env':_0x308671[_0x4e008d(0x6fe)]});}function _0x34761d(_0x49a20b,_0x44eb4d,_0x5cfd2f,_0x1ea571,_0x28cbad,{timestamp:timestamp=Date[_0x2086fc(0x89e)](),origin:origin=null}={}){const _0x2f9682=_0x2086fc;if(!_0x49a20b[_0x2f9682(0x3c7)](_0x1ee512))return;const _0x865412=_0x5cfd2f+'@'+_0x1ea571+'@'+_0x28cbad,_0x3f27a6=_0x49a20b['_getType'](_0x1ee512)[_0x2f9682(0x734)],_0xc22c0d=_0x3f27a6[_0x2f9682(0x2ec)](_0x865412);if(!_0xc22c0d)return;_0x3f27a6[_0x2f9682(0x76e)](_0x865412),_0x49a20b['_logChange']({'id':_0x2f9682(0x26c)+_0x1ee512+'@'+_0x865412,'type':_0x1ee512,'key':_0x865412,'action':_0x55737b[_0x2f9682(0x6a2)],'timestamp':timestamp,'txnId':_0x44eb4d?.['id'],'origin':origin},_0xc22c0d[_0x2f9682(0x820)],undefined),_0x49a20b[_0x2f9682(0x29a)]['emit'](_0x362466[_0x2f9682(0x3ef)],{'sourceType':_0x5cfd2f,'sourceKey':_0x1ea571,'fieldPath':_0x28cbad,'env':_0x49a20b[_0x2f9682(0x6fe)]});}function _0x1a72a3(_0x3d67fa,_0x19f624,_0x2afb5b,_0x548c35,_0x5cb087={}){const _0x3cfe6a=_0x2086fc;if(!_0x3d67fa[_0x3cfe6a(0x3c7)](_0x1ee512))return;const _0x396cc0=_0x3d67fa[_0x3cfe6a(0x4e7)](_0x1ee512)[_0x3cfe6a(0x734)],_0x565406=_0x2afb5b+'@'+_0x548c35+'@',_0x5681b2=[];for(const {key:_0x555fea,value:_0x432026}of _0x396cc0[_0x3cfe6a(0x3fa)]({'start':_0x565406,'end':_0x565406+'\uffff'})){if(_0x432026?.[_0x3cfe6a(0x4ab)]===_0x2afb5b&&_0x432026?.[_0x3cfe6a(0x514)]===_0x548c35)_0x5681b2[_0x3cfe6a(0x2fb)](_0x555fea);}for(const _0x266161 of _0x5681b2){const _0x5b6df4=_0x396cc0['getEntry'](_0x266161);if(!_0x5b6df4)continue;_0x396cc0[_0x3cfe6a(0x76e)](_0x266161),_0x3d67fa[_0x3cfe6a(0x286)]({'id':_0x3cfe6a(0x26c)+_0x1ee512+'@'+_0x266161,'type':_0x1ee512,'key':_0x266161,'action':_0x55737b['REMOVE'],'timestamp':_0x5cb087[_0x3cfe6a(0x44e)]||Date[_0x3cfe6a(0x89e)](),'txnId':_0x19f624?.['id'],'origin':_0x5cb087['origin']},_0x5b6df4[_0x3cfe6a(0x820)],undefined);}}function _0x2ea1bc(_0x1d4059,_0x3c7603){const _0x7a3c81=_0x2086fc;if(!_0x1d4059[_0x7a3c81(0x3c7)](_0x1ee512))return;const _0x37e496=_0x1d4059[_0x7a3c81(0x4e7)](_0x1ee512)[_0x7a3c81(0x734)],_0xdaec9e=_0x3c7603+'@',_0x28ae85=[];for(const {key:_0x1508ac,value:_0x139704}of _0x37e496[_0x7a3c81(0x3fa)]({'start':_0xdaec9e,'end':_0xdaec9e+'\uffff'})){if(_0x139704?.[_0x7a3c81(0x4ab)]===_0x3c7603)_0x28ae85[_0x7a3c81(0x2fb)](_0x1508ac);}for(const _0x127a95 of _0x28ae85)_0x37e496['removeSync'](_0x127a95);}async function _0x576e3e(_0x36ef33,_0x3dd0b0){const _0x2bf2f6=_0x2086fc,_0x40f589=_0xe7feb2(_0x36ef33,_0x3dd0b0);if(_0x40f589[_0x2bf2f6(0x6cf)]===0x0)return;await _0x36ef33[_0x2bf2f6(0x291)][_0x2bf2f6(0x7f7)](()=>{const _0x297467=_0x2bf2f6;for(const {key:_0x23def5,value:_0x3bf219}of _0x36ef33[_0x297467(0x3fa)](_0x3dd0b0)){_0x23a737(_0x36ef33,_0x3dd0b0,_0x23def5,_0x3bf219,null);const _0x1e0b7b=_0x53fe5c(_0x36ef33,_0x3dd0b0,_0x23def5,_0x3bf219);for(const _0x25aee3 of _0x1e0b7b){_0x2ca571(_0x36ef33,null,_0x3dd0b0,_0x23def5,_0x25aee3[_0x297467(0x5c7)],_0x25aee3[_0x297467(0x749)],_0x25aee3[_0x297467(0x768)]);}}});}const _0x589d1d=0x1388;async function _0x4db479(_0xc4cee3){const _0x506e92=_0x2086fc,_0x371d21=_0xc4cee3['_refCache']?.[_0x506e92(0x1fb)]?.[_0x506e92(0x221)]>0x0;if(!_0x371d21&&!_0xc4cee3[_0x506e92(0x2ae)])return{'dropped':0x0,'written':0x0};const _0xd7ba44=_0x152c11(_0xc4cee3);let _0x42aaca=0x0;for(;;){const _0x165206=Array['from'](_0xd7ba44[_0x506e92(0x7d2)]({'limit':_0x589d1d}));if(_0x165206[_0x506e92(0x6cf)]===0x0)break;let _0x14fafe=0x0;await _0xc4cee3[_0x506e92(0x291)]['transaction'](()=>{const _0x208b28=_0x506e92;for(const _0x168348 of _0x165206)if(_0xd7ba44[_0x208b28(0x76e)](_0x168348))_0x14fafe++;});if(_0x14fafe===0x0)break;_0x42aaca+=_0x14fafe;}let _0x20ff81=0x0;for(const _0x231927 of _0xc4cee3[_0x506e92(0x4b1)]['outgoing'][_0x506e92(0x1d5)]()){if(_0x231927[_0x506e92(0x6c8)]('~')||!_0xc4cee3[_0x506e92(0x3c7)](_0x231927))continue;const _0xe9a436=_0xe7feb2(_0xc4cee3,_0x231927);await _0xc4cee3['_writer'][_0x506e92(0x7f7)](()=>{const _0x368423=_0x506e92;for(const {key:_0x2b807a,value:_0x2bbd28}of _0xc4cee3['getRange'](_0x231927)){for(const _0x28cc6f of _0xe9a436){const _0x48c933=_0x47a122(_0x2bbd28,_0x28cc6f[_0x368423(0x5c7)]);if(!_0x97714d(_0x48c933))continue;_0xd7ba44[_0x368423(0x225)](_0x401a8c(_0x28cc6f[_0x368423(0x749)],_0x48c933,_0x231927,_0x2b807a,_0x28cc6f[_0x368423(0x5c7)]),0x1),_0x20ff81++;}}});}return{'dropped':_0x42aaca,'written':_0x20ff81};}return okdbEnvRefs={'getFieldValue':_0x47a122,'setFieldValue':_0x895b60,'refIndexKey':_0x401a8c,'isRefTarget':_0x97714d,'cascadeVisitKey':_0x5c31f0,'extractRefs':_0x5ac15a,'rebuildRefCache':_0x295007,'getTypeRefs':_0xe7feb2,'getIncomingRefs':_0xec2eed,'getRefIndexDb':_0x152c11,'updateRefIndex':_0x23a737,'removeRefIndexEntries':_0x1047ce,'refIndexRowsFor':_0x1799dd,'rebuildRefIndex':_0x4db479,'checkForeignKeys':_0x53fe5c,'processDeleteCascade':_0x5855b0,'setRefViolation':_0x2ca571,'clearRefViolation':_0x34761d,'clearRefViolationsForKey':_0x1a72a3,'clearRefViolationsForType':_0x2ea1bc,'syncRefIndex':_0x576e3e},okdbEnvRefs;}var hasRequiredOkdbSubscriptionsStore;function requireOkdbSubscriptionsStore(){const _0x226419=_0x2ec26e;if(hasRequiredOkdbSubscriptionsStore)return okdbSubscriptionsStore[_0x226419(0x3be)];hasRequiredOkdbSubscriptionsStore=0x1;const _0x4ae891=require$$0$4,{assertFilterAllowed:_0xe634b6}=requireOkdbQueryFilter(),{rebuildRefCache:_0x1920e6}=requireOkdbEnvRefs(),_0x42eb58='~sub',_0x125447=_0x226419(0x77d),_0x335c8b=_0x226419(0x84d),_0x26afe5=[_0x226419(0x215),_0x226419(0x673),_0x226419(0x366)],_0x56aef8=[_0x226419(0x215),'type'],_0x11b967=0x5a*0x3e8,_0x1e527b=Math[_0x226419(0x265)](_0x11b967/0x2);class _0x2b7974{constructor(_0x35acbf,_0x5a44f2={}){const _0x1d337e=_0x226419;this[_0x1d337e(0x21e)]=_0x35acbf,this[_0x1d337e(0x5b3)]=Number['isFinite'](_0x5a44f2[_0x1d337e(0x5b3)])&&_0x5a44f2[_0x1d337e(0x5b3)]>0x0?_0x5a44f2[_0x1d337e(0x5b3)]:_0x11b967,this[_0x1d337e(0x1de)]=Number[_0x1d337e(0x5ef)](_0x5a44f2[_0x1d337e(0x1de)])?_0x5a44f2[_0x1d337e(0x1de)]:_0x1e527b,this['_sub']=null;}async[_0x226419(0x626)](){const _0x4a8f36=_0x226419;if(this[_0x4a8f36(0x588)])return this[_0x4a8f36(0x588)];const _0x57f0a4=await this[_0x4a8f36(0x21e)]['createEnvironment'](_0x42eb58,{'sync':![]});return await _0x57f0a4['ensureType'](_0x125447,{'indexes':[_0x56aef8]}),await _0x57f0a4[_0x4a8f36(0x5cf)](_0x335c8b),_0x57f0a4[_0x4a8f36(0x2d0)](_0x335c8b)?_0x1920e6(_0x57f0a4):await _0x57f0a4[_0x4a8f36(0x573)](_0x335c8b,{'definition':{'type':_0x4a8f36(0x1be),'properties':{'sessionId':{'type':_0x4a8f36(0x4bb),'ref':{'type':_0x125447,'onDelete':_0x4a8f36(0x4a7)}},'dataEnv':{'type':'string'},'type':{'type':_0x4a8f36(0x4bb)},'key':{'type':'string'}},'required':[_0x4a8f36(0x7d9),_0x4a8f36(0x215),_0x4a8f36(0x673),_0x4a8f36(0x366)]},'enforce':!![]}),await _0x57f0a4[_0x4a8f36(0x5cf)](_0x335c8b,{'indexes':[_0x26afe5]}),await _0x57f0a4[_0x4a8f36(0x76a)](_0x335c8b,_0x26afe5),await _0x57f0a4[_0x4a8f36(0x76a)](_0x125447,_0x56aef8),this[_0x4a8f36(0x588)]=_0x57f0a4,_0x57f0a4;}['_env'](){const _0x4f7c98=_0x226419;if(!this['_sub'])throw new Error(_0x4f7c98(0x387));return this[_0x4f7c98(0x588)];}async['createSession']({sessionId:_0xbc9b11,dataEnv:_0x9124e2,type:_0x4054f3,filter:filter=null,ttlMs:_0x5dc511}={}){const _0x25b002=_0x226419,_0x3aec2c=this[_0x25b002(0x51f)]();_0xe634b6(filter);const _0x440b71=_0xbc9b11!=null&&String(_0xbc9b11)[_0x25b002(0x6cf)]>0x0?String(_0xbc9b11):_0x4ae891[_0x25b002(0x770)](),_0x1692ad=Number[_0x25b002(0x5ef)](_0x5dc511)&&_0x5dc511>0x0?_0x5dc511:this[_0x25b002(0x5b3)],_0x2f3092=Date[_0x25b002(0x89e)](),_0x2c96bb={'sessionId':_0x440b71,'dataEnv':_0x9124e2,'type':_0x4054f3,'filter':filter??null,'version':0x0,'createdAt':_0x2f3092,'expiresAt':_0x2f3092+_0x1692ad};return await _0x3aec2c[_0x25b002(0x27f)](_0x125447,_0x440b71,_0x2c96bb,{'ttl':_0x1692ad}),{'sessionId':_0x440b71,'version':0x0};}['getSession'](_0x16de25){const _0x1d1cc7=_0x226419;if(!_0x16de25)return null;return this[_0x1d1cc7(0x51f)]()[_0x1d1cc7(0x63c)](_0x125447,String(_0x16de25))??null;}async[_0x226419(0x4d0)](_0x40ff97){const _0x34b576=_0x226419,_0x41b0cb=this['_env'](),_0x5c42f9=String(_0x40ff97);if(!_0x41b0cb[_0x34b576(0x63c)](_0x125447,_0x5c42f9))return![];return await _0x41b0cb[_0x34b576(0x42f)](_0x125447,_0x5c42f9),!![];}async[_0x226419(0x5e4)](_0x3d4387){const _0x588296=_0x226419,_0x1fcd44=this['_env'](),_0x2b8051=String(_0x3d4387),_0x31b81e=_0x1fcd44[_0x588296(0x63c)](_0x125447,_0x2b8051);if(!_0x31b81e)return null;const _0x3eb3f4=(Number[_0x588296(0x5ef)](_0x31b81e['version'])?_0x31b81e['version']:0x0)+0x1;return await _0x1fcd44['put'](_0x125447,_0x2b8051,{..._0x31b81e,'version':_0x3eb3f4}),_0x3eb3f4;}async[_0x226419(0x32f)](_0x4d8116,_0x4701b){const _0x32ace3=_0x226419,_0x34b8ce=this[_0x32ace3(0x51f)](),_0x592dde=String(_0x4d8116);if(!_0x34b8ce[_0x32ace3(0x63c)](_0x125447,_0x592dde))return![];const _0x57a9d5=Number['isFinite'](_0x4701b)&&_0x4701b>0x0?_0x4701b:this[_0x32ace3(0x5b3)];if(this[_0x32ace3(0x3fc)](_0x592dde))return![];return await _0x34b8ce[_0x32ace3(0x397)](_0x125447,_0x592dde,_0x57a9d5),await this[_0x32ace3(0x713)](_0x592dde,_0x57a9d5),!![];}async['refreshTtlBatch'](_0x1e0634,_0x1ad902){const _0x472f35=_0x226419,_0x523689=this['_env'](),_0x388d72=Number[_0x472f35(0x5ef)](_0x1ad902)&&_0x1ad902>0x0?_0x1ad902:this[_0x472f35(0x5b3)],_0x2d8101=Date[_0x472f35(0x89e)](),_0x287a4e=[];for(const _0x43d9c1 of _0x1e0634||[]){const _0x12290c=String(_0x43d9c1),_0x4be073=_0x523689['get'](_0x125447,_0x12290c);if(!_0x4be073)continue;if(this[_0x472f35(0x3fc)](_0x12290c,_0x2d8101))continue;_0x287a4e[_0x472f35(0x2fb)]({'id':_0x12290c,'cur':_0x4be073});}if(_0x287a4e[_0x472f35(0x6cf)]===0x0)return[];return await _0x523689[_0x472f35(0x27c)](async _0x21445c=>{const _0x3a43ee=_0x472f35;for(const {id:_0x2d32b7,cur:_0x350249}of _0x287a4e){_0x21445c['put'](_0x125447,_0x2d32b7,{..._0x350249,'expiresAt':_0x2d8101+_0x388d72}),_0x21445c[_0x3a43ee(0x397)](_0x125447,_0x2d32b7,_0x388d72);}}),_0x287a4e[_0x472f35(0x1a7)](_0x47201e=>_0x47201e['id']);}[_0x226419(0x3fc)](_0x445dad,_0x513f24=Date[_0x226419(0x89e)]()){const _0x1b78bf=_0x226419,_0x35687e=this[_0x1b78bf(0x51f)]()[_0x1b78bf(0x329)](_0x125447,String(_0x445dad));if(!_0x35687e)return![];return _0x35687e['expiresAt']-_0x513f24>this[_0x1b78bf(0x1de)];}async['_syncExpiresAtField'](_0x58ff4e,_0x2c2bed){const _0x42b0b8=_0x226419,_0x26a5c0=this['_env'](),_0x5154cf=_0x26a5c0['get'](_0x125447,_0x58ff4e);if(!_0x5154cf)return;await _0x26a5c0[_0x42b0b8(0x27f)](_0x125447,_0x58ff4e,{..._0x5154cf,'expiresAt':Date[_0x42b0b8(0x89e)]()+_0x2c2bed});}async[_0x226419(0x480)](_0x7377c1,_0x465c0e,_0x209ce0){const _0x14f74a=_0x226419,_0x27ca40=this[_0x14f74a(0x51f)](),_0x4f60f7=String(_0x7377c1),_0x11b8c0=_0x27ca40[_0x14f74a(0x63c)](_0x125447,_0x4f60f7);if(!_0x11b8c0)throw new Error(_0x14f74a(0x2ca)+_0x4f60f7);const _0x3d5403=_0x4ae891[_0x14f74a(0x770)]();return await _0x27ca40[_0x14f74a(0x27f)](_0x335c8b,_0x3d5403,{'sessionId':_0x4f60f7,'dataEnv':String(_0x11b8c0[_0x14f74a(0x215)]),'type':String(_0x465c0e),'key':String(_0x209ce0)}),_0x3d5403;}async['_commitSessionMutation'](_0x5dd4bf,_0x3b4971,{retries:retries=0x8}={}){const _0x25275a=_0x226419,_0x3f818c=this['_env']();for(let _0x305382=0x0;;_0x305382++){const _0x267030=_0x3f818c[_0x25275a(0x2ec)](_0x125447,_0x5dd4bf);if(!_0x267030)return null;const _0x2cd356=_0x267030[_0x25275a(0x820)],_0x4cfbc8=(Number[_0x25275a(0x5ef)](_0x2cd356[_0x25275a(0x280)])?_0x2cd356[_0x25275a(0x280)]:0x0)+0x1,{sessionPatch:sessionPatch={},applyInterests:applyInterests=null}=_0x3b4971(_0x2cd356,_0x3f818c)||{};try{return await _0x3f818c[_0x25275a(0x27c)](async _0x371cd5=>{const _0x10fc69=_0x25275a;applyInterests?.(_0x371cd5),_0x371cd5[_0x10fc69(0x27f)](_0x125447,_0x5dd4bf,{..._0x2cd356,...sessionPatch,'version':_0x4cfbc8},{'ifVersion':_0x267030['version']});}),_0x4cfbc8;}catch(_0x1c86d1){if(_0x1c86d1?.['code']===_0x25275a(0x17b)&&_0x305382<retries)continue;throw _0x1c86d1;}}}async[_0x226419(0x70d)](_0x50beae,{add:add=[],remove:remove=[]}={}){const _0x345f7a=_0x226419,_0x14498=String(_0x50beae);return this[_0x345f7a(0x577)](_0x14498,(_0x31cd52,_0x66d33f)=>{const _0x48e113=_0x345f7a,_0xcefce4=String(_0x31cd52['dataEnv']),_0x49e621=new Set((remove||[])[_0x48e113(0x1a7)](_0x5cf671=>String(_0x5cf671[_0x48e113(0x673)])+'\x00'+String(_0x5cf671[_0x48e113(0x366)]))),_0x24cd44=[];if(_0x49e621[_0x48e113(0x221)]>0x0)for(const {key:_0x3b82ae,value:_0x1b8f63}of _0x66d33f['getRange'](_0x335c8b,{})){if(!_0x1b8f63||_0x1b8f63['sessionId']!==_0x14498)continue;if(_0x49e621['has'](_0x1b8f63[_0x48e113(0x673)]+'\x00'+_0x1b8f63[_0x48e113(0x366)]))_0x24cd44[_0x48e113(0x2fb)](_0x3b82ae);}const _0x371fcc=(add||[])[_0x48e113(0x1a7)](_0x4485a0=>({'id':_0x4ae891['randomUUID'](),'type':String(_0x4485a0[_0x48e113(0x673)]),'key':String(_0x4485a0[_0x48e113(0x366)])}));return{'applyInterests':_0x25ac70=>{const _0x1355fe=_0x48e113;for(const _0x3fb8a7 of _0x24cd44)_0x25ac70[_0x1355fe(0x42f)](_0x335c8b,_0x3fb8a7);for(const _0x22cf64 of _0x371fcc)_0x25ac70['put'](_0x335c8b,_0x22cf64['id'],{'sessionId':_0x14498,'dataEnv':_0xcefce4,'type':_0x22cf64[_0x1355fe(0x673)],'key':_0x22cf64[_0x1355fe(0x366)]});}};});}async[_0x226419(0x289)](_0x3024a7,_0x30edf6){const _0x574dd5=_0x226419;_0xe634b6(_0x30edf6);const _0x495f22=String(_0x3024a7);return this[_0x574dd5(0x577)](_0x495f22,()=>({'sessionPatch':{'filter':_0x30edf6??null}}));}async['removeInterest'](_0x37b2d8,_0x577666,_0x46dd71){const _0x87f778=_0x226419,_0x52ae87=this[_0x87f778(0x51f)](),_0x576643=String(_0x37b2d8),_0x3de39c=String(_0x577666),_0x1bd99f=String(_0x46dd71),_0x9d9099=[];for(const {key:_0x1ccf41,value:_0x207880}of _0x52ae87[_0x87f778(0x3fa)](_0x335c8b,{})){if(_0x207880&&_0x207880['sessionId']===_0x576643&&_0x207880['type']===_0x3de39c&&_0x207880[_0x87f778(0x366)]===_0x1bd99f)_0x9d9099[_0x87f778(0x2fb)](_0x1ccf41);}for(const _0x215014 of _0x9d9099)await _0x52ae87[_0x87f778(0x42f)](_0x335c8b,_0x215014);return _0x9d9099[_0x87f778(0x6cf)];}async[_0x226419(0x553)](_0x1df4d8,_0x3109ed){const _0x5cbeac=_0x226419,_0xa97979=String(_0x1df4d8);return this[_0x5cbeac(0x577)](_0xa97979,(_0x44728e,_0x47da52)=>{const _0x38ac54=_0x5cbeac,_0xd4cbf9=String(_0x44728e[_0x38ac54(0x215)]),_0x537024=[];for(const {key:_0x74a81f,value:_0x5f0b41}of _0x47da52[_0x38ac54(0x3fa)](_0x335c8b,{})){if(_0x5f0b41&&_0x5f0b41[_0x38ac54(0x7d9)]===_0xa97979)_0x537024[_0x38ac54(0x2fb)](_0x74a81f);}const _0x577239=(_0x3109ed||[])['map'](_0x293685=>({'id':_0x4ae891[_0x38ac54(0x770)](),'type':String(_0x293685['type']),'key':String(_0x293685[_0x38ac54(0x366)])}));return{'applyInterests':_0x5422ff=>{const _0x1f6b77=_0x38ac54;for(const _0x184e37 of _0x537024)_0x5422ff['remove'](_0x335c8b,_0x184e37);for(const _0x532ffa of _0x577239)_0x5422ff[_0x1f6b77(0x27f)](_0x335c8b,_0x532ffa['id'],{'sessionId':_0xa97979,'dataEnv':_0xd4cbf9,'type':_0x532ffa[_0x1f6b77(0x673)],'key':_0x532ffa['key']});}};});}['sessionsForKey'](_0x4c6b83,_0xf291c7,_0x419f89){const _0x187401=_0x226419,_0x1b0d74=this[_0x187401(0x51f)](),_0x160f25=String(_0x4c6b83),_0x36263a=String(_0xf291c7),_0x35f0dd=String(_0x419f89),_0x3065fa=new Set();for(const {value:_0x5427e3}of _0x1b0d74[_0x187401(0x2c0)](_0x335c8b,_0x26afe5,{'start':[_0x160f25,_0x36263a,_0x35f0dd],'end':[_0x160f25,_0x36263a,_0x35f0dd,'￿']})){if(_0x5427e3&&_0x5427e3[_0x187401(0x7d9)])_0x3065fa[_0x187401(0x7df)](_0x5427e3['sessionId']);}return[..._0x3065fa];}['filterSessionsForType'](_0x52f0dc,_0x1a0af3){const _0x325d01=_0x226419,_0x17df6e=this[_0x325d01(0x51f)](),_0xc42732=String(_0x52f0dc),_0x252f78=String(_0x1a0af3),_0x2f1f54=[];for(const {value:_0x3139c8}of _0x17df6e[_0x325d01(0x2c0)](_0x125447,_0x56aef8,{'start':[_0xc42732,_0x252f78],'end':[_0xc42732,_0x252f78,'\uffff']})){if(!_0x3139c8||_0x3139c8['dataEnv']!==_0xc42732||_0x3139c8[_0x325d01(0x673)]!==_0x252f78)continue;if(_0x3139c8['filter']==null)continue;_0x2f1f54[_0x325d01(0x2fb)]({'sessionId':_0x3139c8['sessionId'],'filter':_0x3139c8['filter'],'version':Number[_0x325d01(0x5ef)](_0x3139c8[_0x325d01(0x280)])?_0x3139c8[_0x325d01(0x280)]:0x0});}return _0x2f1f54;}async[_0x226419(0x5b0)](){const _0x17a929=_0x226419;return this[_0x17a929(0x51f)]()[_0x17a929(0x6f7)]();}}return okdbSubscriptionsStore['exports']=_0x2b7974,okdbSubscriptionsStore[_0x226419(0x3be)][_0x226419(0x5c4)]=_0x42eb58,okdbSubscriptionsStore['exports'][_0x226419(0x6a0)]=_0x125447,okdbSubscriptionsStore[_0x226419(0x3be)]['T_INTEREST']=_0x335c8b,okdbSubscriptionsStore['exports'][_0x226419(0x3e0)]=_0x26afe5,okdbSubscriptionsStore[_0x226419(0x3be)][_0x226419(0x42e)]=_0x56aef8,okdbSubscriptionsStore['exports'][_0x226419(0x279)]=_0x11b967,okdbSubscriptionsStore[_0x226419(0x3be)];}var version='3.1.4',require$$29={'version':version},okdbEnginesEnums,hasRequiredOkdbEnginesEnums;function requireOkdbEnginesEnums(){const _0x2e8299=_0x2ec26e;if(hasRequiredOkdbEnginesEnums)return okdbEnginesEnums;hasRequiredOkdbEnginesEnums=0x1;const _0x31e6bf=_0x2e8299(0x653),_0x2471ad=0xa,_0xa6d147=Object[_0x2e8299(0x62b)]({'CREATED':_0x2e8299(0x244),'ONLINE':_0x2e8299(0x714),'STOPPED':_0x2e8299(0x2d9),'INACTIVE':'inactive','ERROR':_0x2e8299(0x254),'REMOVED':_0x2e8299(0x384)}),_0x115f47=Object[_0x2e8299(0x62b)]({'STARTED':_0x2e8299(0x1ce),'STOPPED':'stopped','ERROR':'error','INSTALLED':'installed','UNINSTALLED':_0x2e8299(0x674)}),_0x27b8f3=Object[_0x2e8299(0x62b)](new Set([_0xa6d147[_0x2e8299(0x400)],_0xa6d147[_0x2e8299(0x5ee)],_0xa6d147[_0x2e8299(0x16d)],_0xa6d147[_0x2e8299(0x482)]]));function _0x40b3de(_0x34512c){const _0x1a66e1=_0x2e8299;return _0x34512c?.[_0x1a66e1(0x580)]===![]?_0xa6d147[_0x1a66e1(0x5ee)]:_0x1a66e1(0x1f1);}return okdbEnginesEnums={'TYPE_ENGINES':_0x31e6bf,'MAX_UPDATE_RETRIES':_0x2471ad,'ENGINE_STATUS':_0xa6d147,'ENGINE_EVENTS':_0x115f47,'UPDATABLE_STATUSES':_0x27b8f3,'durableOnlyEngineState':_0x40b3de},okdbEnginesEnums;}var enums,hasRequiredEnums;function requireEnums(){const _0x38b358=_0x2ec26e;if(hasRequiredEnums)return enums;hasRequiredEnums=0x1;const _0xa7421a=Object[_0x38b358(0x62b)]({'EMBEDDER':'embedder','INDEXER':_0x38b358(0x25c),'SEARCH':'vector-search','WORKER':_0x38b358(0x6ca)}),_0x4224e9=Object[_0x38b358(0x62b)]({'PENDING':_0x38b358(0x35d),'DONE':_0x38b358(0x3b5),'FAILED':_0x38b358(0x719),'DELETED':_0x38b358(0x1cc)}),_0x3c9d13=Object['freeze']({'INDEXER_READY':_0x38b358(0x7ca),'INDEXER_FLUSHED':_0x38b358(0x5e0),'INDEXER_DOC_DONE':_0x38b358(0x37f),'INDEXER_DOC_FAILED':_0x38b358(0x783),'INDEXER_DOC_QUEUED':_0x38b358(0x680),'STRATEGY_REGISTERED':_0x38b358(0x623),'DOC_STATUS_CHANGE':_0x38b358(0x4e2),'PIPELINE_READY':_0x38b358(0x6cb)}),_0x5f0c5d=Object[_0x38b358(0x62b)]({'MODELS':_0x38b358(0x677),'DOC_STATUS_PREFIX':'doc_status:','VEC_PREFIX':_0x38b358(0x612)});return enums={'ENGINE_TYPES':_0xa7421a,'INDEXER_DOC_STATUS':_0x4224e9,'EMBEDDINGS_EVENTS':_0x3c9d13,'INTERNAL_TYPES':_0x5f0c5d},enums;}var okdbQueueValidate,hasRequiredOkdbQueueValidate;function requireOkdbQueueValidate(){const _0xaaefe=_0x2ec26e;if(hasRequiredOkdbQueueValidate)return okdbQueueValidate;hasRequiredOkdbQueueValidate=0x1;const _0xbc8159=Object[_0xaaefe(0x62b)]({'PENDING':'pending','RUNNING':'running','DONE':_0xaaefe(0x3b5),'FAILED':_0xaaefe(0x719)}),_0x3fd6ea=Object['freeze']({'ACTIVE':_0xaaefe(0x372),'PAUSED':_0xaaefe(0x281),'DRAINING':'draining'}),_0x389bcd=Object[_0xaaefe(0x62b)]({'ENQUEUED':_0xaaefe(0x469),'DONE':_0xaaefe(0x661),'FAILED':_0xaaefe(0x5b7),'RETRY':_0xaaefe(0x859),'RESCHEDULED':_0xaaefe(0x6b7),'REMOVED':_0xaaefe(0x75a),'RECONCILED':_0xaaefe(0x753),'CLEAR_PROGRESS':_0xaaefe(0x6d0),'CLEAR_DONE':_0xaaefe(0x239),'LOG':_0xaaefe(0x346)}),_0x26f7ff=Object[_0xaaefe(0x62b)]([_0xaaefe(0x65d),'info','warn','error']),_0x17d9e9=0x1,_0x10d0a4=0xc350,_0x569193=0x400,_0x45e521=0x800;function _0x4ecb35(_0xcd50c4){const _0x1ab16a=_0xaaefe;return _0xcd50c4!=null&&typeof _0xcd50c4===_0x1ab16a(0x1be)&&(_0xcd50c4[_0x1ab16a(0x609)]===Object||Object[_0x1ab16a(0x21b)](_0xcd50c4)===null);}function _0x1a66c3(_0x54d441,_0x3cbfef,_0x5b63f5,_0x95c302){if(_0x54d441==null)return _0x3cbfef;const _0x370329=Number(_0x54d441);if(!Number['isFinite'](_0x370329))return _0x3cbfef;const _0x1790b5=Math['trunc'](_0x370329);if(_0x1790b5<_0x5b63f5)return _0x5b63f5;if(_0x1790b5>_0x95c302)return _0x95c302;return _0x1790b5;}function _0xdb187c(_0x594c94){const _0x6a39f0=_0xaaefe;if(!_0x594c94)return[];if(typeof _0x594c94===_0x6a39f0(0x4bb))_0x594c94=[_0x594c94];if(!Array[_0x6a39f0(0x69e)](_0x594c94))throw new Error(_0x6a39f0(0x2a4));const _0xff8393=[],_0x14bdc8=new Set();for(const _0x2f96dc of _0x594c94){if(_0x2f96dc==null)continue;const _0x3f1a70=String(_0x2f96dc)[_0x6a39f0(0x78c)]();if(!_0x3f1a70)continue;if(_0x3f1a70[_0x6a39f0(0x6cf)]>0x80)throw new Error('tag\x20too\x20long');if(_0x14bdc8[_0x6a39f0(0x51e)](_0x3f1a70))continue;_0x14bdc8[_0x6a39f0(0x7df)](_0x3f1a70),_0xff8393[_0x6a39f0(0x2fb)](_0x3f1a70);if(_0xff8393[_0x6a39f0(0x6cf)]>=0x20)break;}return _0xff8393;}function _0x1cd00f(_0x347e26){const _0x3e5c86=_0xaaefe;if(_0x347e26==null)return null;const _0x297616=String(_0x347e26)[_0x3e5c86(0x78c)]();if(!_0x297616)return null;if(_0x297616[_0x3e5c86(0x6cf)]>0x80)throw new Error(_0x3e5c86(0x6de));return _0x297616;}function _0x456c9e(_0xcde9f7,_0xf304e4=0x1){const _0xe2350d=_0xaaefe;if(_0xcde9f7==null)return[];if(typeof _0xcde9f7===_0xe2350d(0x4bb)){const _0x3acf54=_0x1cd00f(_0xcde9f7);if(!_0x3acf54)return[];return[{'id':_0x3acf54,'tokens':_0xf304e4}];}if(!Array['isArray'](_0xcde9f7))throw new Error('buckets\x20must\x20be\x20array\x20or\x20string');const _0x283b0a=[],_0xe46080=new Set();for(const _0x20fbda of _0xcde9f7){let _0x47d7c4,_0x2ba92e;if(Array[_0xe2350d(0x69e)](_0x20fbda))[_0x47d7c4,_0x2ba92e]=_0x20fbda;else{if(_0x20fbda&&typeof _0x20fbda===_0xe2350d(0x1be))({id:_0x47d7c4,tokens:_0x2ba92e}=_0x20fbda);else{if(typeof _0x20fbda===_0xe2350d(0x4bb))_0x47d7c4=_0x20fbda,_0x2ba92e=_0xf304e4;else continue;}}_0x47d7c4=_0x1cd00f(_0x47d7c4);if(!_0x47d7c4)continue;const _0x4ac0d5=_0x2ba92e==null?_0xf304e4:Math[_0xe2350d(0x47a)](Number(_0x2ba92e));if(!Number['isFinite'](_0x4ac0d5)||_0x4ac0d5<0x1)throw new Error(_0xe2350d(0x54f)+_0x47d7c4+_0xe2350d(0x897));if(_0x4ac0d5>0xf4240)throw new Error('bucket\x20\x22'+_0x47d7c4+_0xe2350d(0x4c8));if(_0xe46080['has'](_0x47d7c4))throw new Error(_0xe2350d(0x5f8)+_0x47d7c4);_0xe46080[_0xe2350d(0x7df)](_0x47d7c4),_0x283b0a[_0xe2350d(0x2fb)]({'id':_0x47d7c4,'tokens':_0x4ac0d5});}return _0x283b0a;}function _0xa3471d(_0x1fa1c4,_0x5b580c=0x400){const _0x5e92b6=_0xaaefe;if(_0x1fa1c4==null)return null;const _0x41ce8b=String(_0x1fa1c4)[_0x5e92b6(0x5ca)](0x0,_0x5b580c);return _0x41ce8b||null;}function _0x295463(_0x5e1875){const _0x28c649=_0xaaefe;if(_0x5e1875==null)return null;if(_0x5e1875['key']!==undefined&&_0x5e1875[_0x28c649(0x820)]!==undefined)return _0x5e1875;return{'key':_0x5e1875['id']??null,'value':_0x5e1875};}function _0x2ce976(_0x4a6c82){const _0x53e500=_0xaaefe;let _0x14212d=_0x4a6c82;if(typeof _0x4a6c82===_0x53e500(0x4bb))_0x14212d={'message':_0x4a6c82};if(!_0x4ecb35(_0x14212d))throw new Error(_0x53e500(0x6ae));const _0x3a6e6f=_0x14212d[_0x53e500(0x86c)]==null?'info':String(_0x14212d[_0x53e500(0x86c)])['toLowerCase']();if(!_0x26f7ff[_0x53e500(0x1ac)](_0x3a6e6f))throw new Error(_0x53e500(0x50d)+_0x3a6e6f);if(_0x14212d['message']==null)throw new Error(_0x53e500(0x7b8));const _0x10675b=String(_0x14212d['message'])['slice'](0x0,_0x569193);let _0x5e3f95=null;if(_0x14212d[_0x53e500(0x613)]!=null){if(!_0x4ecb35(_0x14212d[_0x53e500(0x613)]))throw new Error(_0x53e500(0x29f));if(JSON[_0x53e500(0x4d2)](_0x14212d[_0x53e500(0x613)])[_0x53e500(0x6cf)]>_0x45e521)throw new Error(_0x53e500(0x681));_0x5e3f95=_0x14212d[_0x53e500(0x613)];}return{'level':_0x3a6e6f,'message':_0x10675b,'fields':_0x5e3f95,'ts':Date[_0x53e500(0x89e)]()};}function _0x52cb8e(_0x5f1147){const _0x5757da=_0xaaefe;if(_0x5f1147==null)return;if(!Number[_0x5757da(0x40f)](_0x5f1147)||_0x5f1147<_0x17d9e9||_0x5f1147>_0x10d0a4)throw new Error(_0x5757da(0x6ed)+_0x17d9e9+',\x20'+_0x10d0a4+']');}function _0x927530(_0x382341){const _0x43e561=_0xaaefe;if(!_0x4ecb35(_0x382341))throw new Error(_0x43e561(0x440));if(typeof _0x382341['id']!==_0x43e561(0x4bb)||_0x382341['id'][_0x43e561(0x6cf)]<0x8)throw new Error('job.id\x20must\x20be\x20string');if(typeof _0x382341['type']!==_0x43e561(0x4bb)||!_0x382341[_0x43e561(0x673)])throw new Error(_0x43e561(0x4da));if(!Object[_0x43e561(0x89c)](_0xbc8159)[_0x43e561(0x1ac)](_0x382341[_0x43e561(0x1c9)]))throw new Error(_0x43e561(0x6e7)+_0x382341[_0x43e561(0x1c9)]);for(const _0x40f4f9 of[_0x43e561(0x80b),_0x43e561(0x244),_0x43e561(0x57e)]){if(typeof _0x382341[_0x40f4f9]!==_0x43e561(0x5c1)||!Number[_0x43e561(0x5ef)](_0x382341[_0x40f4f9]))throw new Error(_0x43e561(0x808)+_0x40f4f9+'\x20must\x20be\x20number');}if(_0x382341['finished']!=null&&(typeof _0x382341['finished']!==_0x43e561(0x5c1)||!Number[_0x43e561(0x5ef)](_0x382341[_0x43e561(0x2b6)])))throw new Error(_0x43e561(0x200));if(!Number['isInteger'](_0x382341['tries'])||_0x382341[_0x43e561(0x1cd)]<0x0)throw new Error(_0x43e561(0x24b));if(!Number[_0x43e561(0x40f)](_0x382341[_0x43e561(0x689)]))throw new Error(_0x43e561(0x197));if(_0x382341['max_tries']!==null&&_0x382341[_0x43e561(0x314)]!==Infinity&&(!Number[_0x43e561(0x40f)](_0x382341[_0x43e561(0x314)])||_0x382341[_0x43e561(0x314)]<0x1))throw new Error(_0x43e561(0x883));if(_0x382341[_0x43e561(0x83a)]!=null&&(!Number['isInteger'](_0x382341['retry_delay'])||_0x382341[_0x43e561(0x83a)]<0x0))throw new Error('job.retry_delay\x20must\x20be\x20int\x20>=\x200');if(_0x382341[_0x43e561(0x5d4)]!=null&&(typeof _0x382341[_0x43e561(0x5d4)]!=='number'||_0x382341[_0x43e561(0x5d4)]<0x1))throw new Error(_0x43e561(0x398));if(_0x382341[_0x43e561(0x80e)]!=null&&typeof _0x382341['claim_id']!==_0x43e561(0x4bb))throw new Error('job.claim_id\x20must\x20be\x20string|null');if(_0x382341[_0x43e561(0x4d9)]!=null&&(typeof _0x382341['claim_expires']!==_0x43e561(0x5c1)||!Number[_0x43e561(0x5ef)](_0x382341[_0x43e561(0x4d9)])))throw new Error(_0x43e561(0x737));if(_0x382341[_0x43e561(0x744)]!=null&&typeof _0x382341[_0x43e561(0x744)]!=='string')throw new Error('job.bucket\x20must\x20be\x20string|null');if(_0x382341[_0x43e561(0x6c9)]!=null&&(!Number[_0x43e561(0x40f)](_0x382341[_0x43e561(0x6c9)])||_0x382341[_0x43e561(0x6c9)]<0x1))throw new Error(_0x43e561(0x5a2));if(_0x382341[_0x43e561(0x25d)]!=null){if(!Array['isArray'](_0x382341['buckets']))throw new Error(_0x43e561(0x2f0));for(const _0x5271c5 of _0x382341[_0x43e561(0x25d)]){if(!_0x5271c5||typeof _0x5271c5!==_0x43e561(0x1be))throw new Error('job.buckets\x20entries\x20must\x20be\x20objects');if(typeof _0x5271c5['id']!=='string'||!_0x5271c5['id']['trim']())throw new Error('job.buckets[].id\x20must\x20be\x20non-empty\x20string');if(!Number['isInteger'](_0x5271c5[_0x43e561(0x64b)])||_0x5271c5[_0x43e561(0x64b)]<0x1)throw new Error(_0x43e561(0x31c));}}if(_0x382341[_0x43e561(0x6f9)]!=null&&typeof _0x382341['cron']!==_0x43e561(0x4bb))throw new Error(_0x43e561(0x1ae));if(_0x382341[_0x43e561(0x66e)]!=null&&typeof _0x382341[_0x43e561(0x66e)]!==_0x43e561(0x4bb))throw new Error('job.idempotency_key\x20must\x20be\x20string|null');if(!Array[_0x43e561(0x69e)](_0x382341[_0x43e561(0x42a)]))throw new Error(_0x43e561(0x631));if(_0x382341[_0x43e561(0x5da)]!=null&&typeof _0x382341['tag']!==_0x43e561(0x4bb))throw new Error(_0x43e561(0x3a7));if(_0x382341[_0x43e561(0x815)]!=null&&typeof _0x382341[_0x43e561(0x815)]!==_0x43e561(0x4bb))throw new Error(_0x43e561(0x25e));if(_0x382341[_0x43e561(0x4db)]!=null&&typeof _0x382341[_0x43e561(0x4db)]!==_0x43e561(0x4bb))throw new Error(_0x43e561(0x74f));if(_0x382341[_0x43e561(0x589)]!=null&&typeof _0x382341[_0x43e561(0x589)]!==_0x43e561(0x4bb))throw new Error(_0x43e561(0x2b1));for(const _0x41b677 of['done_ttl',_0x43e561(0x1db)]){const _0x56cdcb=_0x382341[_0x41b677];if(_0x56cdcb!=null&&(!Number['isInteger'](_0x56cdcb)||_0x56cdcb<0x0))throw new Error('job.'+_0x41b677+'\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer');}_0x52cb8e(_0x382341[_0x43e561(0x19b)]);}function _0x57908a(_0x36d8b0){const _0x5bccbb=_0xaaefe;if(!_0x4ecb35(_0x36d8b0))throw new Error(_0x5bccbb(0x3ca));if(typeof _0x36d8b0['id']!==_0x5bccbb(0x4bb)||!_0x36d8b0['id'][_0x5bccbb(0x78c)]())throw new Error(_0x5bccbb(0x563));if(!Object['values'](_0x3fd6ea)['includes'](_0x36d8b0['status']))throw new Error(_0x5bccbb(0x3bd)+_0x36d8b0[_0x5bccbb(0x1c9)]);if(_0x36d8b0[_0x5bccbb(0x23f)]!=null&&(!Number['isInteger'](_0x36d8b0['max_concurrency'])||_0x36d8b0['max_concurrency']<0x1))throw new Error(_0x5bccbb(0x33e));if(_0x36d8b0[_0x5bccbb(0x6fd)]!=null){if(!_0x4ecb35(_0x36d8b0[_0x5bccbb(0x6fd)]))throw new Error(_0x5bccbb(0x535));const _0x13c90e=_0x36d8b0[_0x5bccbb(0x6fd)];if(_0x13c90e[_0x5bccbb(0x314)]!=null&&(!Number['isInteger'](_0x13c90e['max_tries'])||_0x13c90e[_0x5bccbb(0x314)]<0x1))throw new Error(_0x5bccbb(0x315));if(_0x13c90e[_0x5bccbb(0x83a)]!=null&&(!Number['isInteger'](_0x13c90e[_0x5bccbb(0x83a)])||_0x13c90e['retry_delay']<0x0))throw new Error(_0x5bccbb(0x5c9));if(_0x13c90e['backoff_multiplier']!=null&&(typeof _0x13c90e[_0x5bccbb(0x5d4)]!=='number'||_0x13c90e[_0x5bccbb(0x5d4)]<0x1))throw new Error(_0x5bccbb(0x2e5));if(_0x13c90e[_0x5bccbb(0x689)]!=null&&!Number['isInteger'](_0x13c90e[_0x5bccbb(0x689)]))throw new Error(_0x5bccbb(0x5b5));if(_0x13c90e[_0x5bccbb(0x463)]!=null&&(!Number[_0x5bccbb(0x40f)](_0x13c90e[_0x5bccbb(0x463)])||_0x13c90e[_0x5bccbb(0x463)]<0x0))throw new Error(_0x5bccbb(0x2c3));for(const _0xc3f0c0 of[_0x5bccbb(0x44a),_0x5bccbb(0x1db)]){if(_0x13c90e[_0xc3f0c0]!=null&&(!Number['isInteger'](_0x13c90e[_0xc3f0c0])||_0x13c90e[_0xc3f0c0]<0x0))throw new Error(_0x5bccbb(0x2cf)+_0xc3f0c0+_0x5bccbb(0x458));}if(_0x13c90e[_0x5bccbb(0x25d)]!=null&&!Array[_0x5bccbb(0x69e)](_0x13c90e[_0x5bccbb(0x25d)]))throw new Error(_0x5bccbb(0x773));_0x52cb8e(_0x13c90e[_0x5bccbb(0x19b)]);}if(_0x36d8b0[_0x5bccbb(0x590)]!=null){if(!_0x4ecb35(_0x36d8b0[_0x5bccbb(0x590)]))throw new Error(_0x5bccbb(0x663));if(!_0x4ecb35(_0x36d8b0['payload_schema'][_0x5bccbb(0x814)]))throw new Error(_0x5bccbb(0x834));if(typeof _0x36d8b0[_0x5bccbb(0x590)][_0x5bccbb(0x3b2)]!==_0x5bccbb(0x84f))throw new Error(_0x5bccbb(0x285));}for(const _0x101ee6 of[_0x5bccbb(0x892),_0x5bccbb(0x465)]){if(typeof _0x36d8b0[_0x101ee6]!==_0x5bccbb(0x5c1)||!Number[_0x5bccbb(0x5ef)](_0x36d8b0[_0x101ee6]))throw new Error('job_type.'+_0x101ee6+_0x5bccbb(0x760));}}function _0xc281eb(_0x2f491c){const _0x133f81=_0xaaefe;if(!_0x4ecb35(_0x2f491c))throw new Error(_0x133f81(0x470));if(typeof _0x2f491c['id']!==_0x133f81(0x4bb)||!_0x2f491c['id'][_0x133f81(0x78c)]())throw new Error(_0x133f81(0x235));if(!Number[_0x133f81(0x40f)](_0x2f491c[_0x133f81(0x64b)])||_0x2f491c[_0x133f81(0x64b)]<0x0)throw new Error('bucket.tokens\x20must\x20be\x20int\x20>=\x200');if(!Number[_0x133f81(0x40f)](_0x2f491c['capacity'])||_0x2f491c[_0x133f81(0x658)]<0x0)throw new Error(_0x133f81(0x452));if(_0x2f491c[_0x133f81(0x64b)]>_0x2f491c[_0x133f81(0x658)])throw new Error(_0x133f81(0x2ce));if(!Number[_0x133f81(0x40f)](_0x2f491c[_0x133f81(0x6e4)])||_0x2f491c['refill_amount']<0x0)throw new Error(_0x133f81(0x7ac));if(!Number[_0x133f81(0x40f)](_0x2f491c['refill_every'])||_0x2f491c[_0x133f81(0x331)]<0x0)throw new Error(_0x133f81(0x390));if(typeof _0x2f491c[_0x133f81(0x57e)]!==_0x133f81(0x5c1)||!Number[_0x133f81(0x5ef)](_0x2f491c[_0x133f81(0x57e)]))throw new Error(_0x133f81(0x52c));}return okdbQueueValidate={'STATUS':_0xbc8159,'JOB_TYPE_STATUS':_0x3fd6ea,'QUEUE_EVENTS':_0x389bcd,'LOG_LEVELS':_0x26f7ff,'LOG_CAP_MIN':_0x17d9e9,'LOG_CAP_MAX':_0x10d0a4,'clampInt':_0x1a66c3,'asNullableString':_0xa3471d,'normalizeResult':_0x295463,'normalizeTags':_0xdb187c,'normalizeBucket':_0x1cd00f,'normalizeBuckets':_0x456c9e,'normalizeLogEntry':_0x2ce976,'validateJobShape':_0x927530,'validateJobTypeShape':_0x57908a,'validateBucketShape':_0xc281eb},okdbQueueValidate;}var okdbTimers,hasRequiredOkdbTimers;function requireOkdbTimers(){if(hasRequiredOkdbTimers)return okdbTimers;hasRequiredOkdbTimers=0x1;const _0x5a8ae3=0x2**0x1f-0x1;function _0x2991b2(_0x1b9cfc){if(!(_0x1b9cfc>0x0))return 0x0;return _0x1b9cfc>_0x5a8ae3?_0x5a8ae3:_0x1b9cfc;}function _0xa4907(_0x37f1cc){return _0x37f1cc===Infinity;}return okdbTimers={'MAX_TIMER_DELAY':_0x5a8ae3,'clampTimerDelay':_0x2991b2,'isNeverDelay':_0xa4907},okdbTimers;}var okdbChangefeed,hasRequiredOkdbChangefeed;function requireOkdbChangefeed(){const _0x4be527=_0x2ec26e;if(hasRequiredOkdbChangefeed)return okdbChangefeed;hasRequiredOkdbChangefeed=0x1;const _0x513ee3=require$$0$6,{clampTimerDelay:_0xa7e58c}=requireOkdbTimers(),{EVENTS:_0x4cb723,CHANGE_ACTIONS:_0x210c08}=requireOkdbEnums(),{LOOP:_0x24454c}=requireOkdbLoopMonitor(),_0x392f87=Number(process.env.OKDB_CHANGEFEED_QUANTUM)||0x3e8,_0x5ad3a6=0x5,_0x56dae1=0x2710;class _0x3f0312 extends _0x513ee3{constructor(_0x3c2558,_0x586ed1={}){const _0x67664c=_0x3ebb;super(),this[_0x67664c(0x21e)]=_0x3c2558,this['_quantum']=_0x586ed1[_0x67664c(0x74a)]??_0x392f87,this[_0x67664c(0x165)]=_0x586ed1[_0x67664c(0x4b4)]??_0x5ad3a6,this[_0x67664c(0x38d)]=_0x586ed1[_0x67664c(0x5fd)]??_0x56dae1,this['_started']=![],this[_0x67664c(0x373)]=new Map(),this[_0x67664c(0x769)]=new Map(),this[_0x67664c(0x2bd)]=new Map(),this[_0x67664c(0x3ba)]=null,this[_0x67664c(0x873)]=![],this[_0x67664c(0x4b7)]=new Set(),this[_0x67664c(0x376)]=new Set(),this[_0x67664c(0x7ff)]=_0x5e575e=>this[_0x67664c(0x6b1)](_0x5e575e),this['_onPending']=_0x28a142=>this[_0x67664c(0x51c)](_0x28a142),this[_0x67664c(0x60b)]=_0x11ea81=>this[_0x67664c(0x829)](_0x11ea81),this['_onStop']=()=>this['stop']();}[_0x4be527(0x898)](){const _0x432f0c=_0x4be527;if(this['_started'])return;this[_0x432f0c(0x3cb)]=!![];for(const [_0x379f8b,_0x195743]of this[_0x432f0c(0x21e)]['_envs']){if(_0x379f8b[_0x432f0c(0x6c8)]('~'))continue;try{_0x195743[_0x432f0c(0x29e)]();}catch{}}for(const [_0x196c28,_0x4acdda]of this['okdb']['_envs']){if(_0x196c28[_0x432f0c(0x6c8)]('~'))continue;try{this[_0x432f0c(0x769)][_0x432f0c(0x328)](_0x196c28,_0x4acdda[_0x432f0c(0x45e)]()||0x0);}catch{}}const {events:_0x4d1c9d}=this['okdb'];_0x4d1c9d['on'](_0x4cb723[_0x432f0c(0x266)],this[_0x432f0c(0x4b9)]),_0x4d1c9d['on'](_0x4cb723['ITEM_CREATE'],this['_onItem']),_0x4d1c9d['on'](_0x4cb723[_0x432f0c(0x3d4)],this[_0x432f0c(0x7ff)]),_0x4d1c9d['on'](_0x4cb723[_0x432f0c(0x255)],this[_0x432f0c(0x7ff)]),_0x4d1c9d['on'](_0x4cb723[_0x432f0c(0x46e)],this[_0x432f0c(0x60b)]),_0x4d1c9d['once'](_0x4cb723['SYSTEM_STOPPED'],this['_onStop']);}[_0x4be527(0x893)](){const _0x4339b4=_0x4be527;if(!this[_0x4339b4(0x3cb)])return;this[_0x4339b4(0x3cb)]=![];const {events:_0xa6b0a8}=this[_0x4339b4(0x21e)];_0xa6b0a8[_0x4339b4(0x304)](_0x4cb723[_0x4339b4(0x266)],this['_onPending']),_0xa6b0a8[_0x4339b4(0x304)](_0x4cb723[_0x4339b4(0x621)],this[_0x4339b4(0x7ff)]),_0xa6b0a8[_0x4339b4(0x304)](_0x4cb723['ITEM_UPDATE'],this[_0x4339b4(0x7ff)]),_0xa6b0a8['off'](_0x4cb723['ITEM_REMOVE'],this[_0x4339b4(0x7ff)]),_0xa6b0a8['off'](_0x4cb723[_0x4339b4(0x46e)],this[_0x4339b4(0x60b)]);try{_0xa6b0a8['off'](_0x4cb723['SYSTEM_STOPPED'],this[_0x4339b4(0x4c9)]);}catch{}this[_0x4339b4(0x3ba)]&&(clearTimeout(this[_0x4339b4(0x3ba)]),this[_0x4339b4(0x3ba)]=null),this[_0x4339b4(0x2bd)][_0x4339b4(0x871)](),this[_0x4339b4(0x373)][_0x4339b4(0x871)](),this[_0x4339b4(0x769)][_0x4339b4(0x871)](),this['_seen'][_0x4339b4(0x871)](),this[_0x4339b4(0x376)][_0x4339b4(0x871)]();}['_dedupeKey'](_0x48b8e1,_0x1884b0,_0x1969a6,_0x588614){return _0x48b8e1+'\x00'+_0x1884b0+'\x00'+_0x1969a6+'\x00'+_0x588614;}[_0x4be527(0x49c)](_0xca8d2d,_0x264ba2,_0xe51a6e,_0x154ba6){const _0x47e3ff=_0x4be527,_0x4b92c3=this[_0x47e3ff(0x7f5)](_0xca8d2d,_0x264ba2,_0xe51a6e,_0x154ba6);if(this[_0x47e3ff(0x4b7)][_0x47e3ff(0x51e)](_0x4b92c3))return![];this[_0x47e3ff(0x4b7)][_0x47e3ff(0x7df)](_0x4b92c3);if(this[_0x47e3ff(0x4b7)][_0x47e3ff(0x221)]>this[_0x47e3ff(0x38d)]){const _0x1082dc=this[_0x47e3ff(0x4b7)][_0x47e3ff(0x89c)]()[_0x47e3ff(0x788)]()[_0x47e3ff(0x820)];this[_0x47e3ff(0x4b7)][_0x47e3ff(0x82f)](_0x1082dc);}return!![];}[_0x4be527(0x51c)](_0x4f53dc){const _0x15f485=_0x4be527;if(!this[_0x15f485(0x3cb)]||!_0x4f53dc)return;const {env:_0x27995b,type:_0x109597,key:_0x2bcba5,clock:_0x23f6bc}=_0x4f53dc;if(_0x27995b==null||_0x109597==null||_0x2bcba5==null)return;if(typeof _0x27995b==='string'&&_0x27995b[_0x15f485(0x6c8)]('~'))return;if(typeof _0x109597===_0x15f485(0x4bb)&&_0x109597['startsWith']('~'))return;this[_0x15f485(0x376)][_0x15f485(0x7df)](this['_dedupeKey'](_0x27995b,_0x109597,_0x2bcba5,_0x23f6bc)),this[_0x15f485(0x376)][_0x15f485(0x221)]>this[_0x15f485(0x38d)]&&this['_pendingLocal'][_0x15f485(0x82f)](this['_pendingLocal'][_0x15f485(0x89c)]()[_0x15f485(0x788)]()[_0x15f485(0x820)]);}[_0x4be527(0x6b1)](_0x230387){const _0x258a56=_0x4be527;if(!this[_0x258a56(0x3cb)]||!_0x230387)return;const {env:_0x484468,type:_0xf6aab1,key:_0x30a58f,clock:_0x1a189e,origin:_0x32266f,action:_0x40cf58,newValue:_0x341bef,oldValue:_0x56e42c}=_0x230387;if(_0x484468==null||_0xf6aab1==null||_0x30a58f==null)return;if(typeof _0x484468===_0x258a56(0x4bb)&&_0x484468[_0x258a56(0x6c8)]('~'))return;if(typeof _0xf6aab1===_0x258a56(0x4bb)&&_0xf6aab1['startsWith']('~'))return;this[_0x258a56(0x376)]['delete'](this[_0x258a56(0x7f5)](_0x484468,_0xf6aab1,_0x30a58f,_0x1a189e));if(!this[_0x258a56(0x49c)](_0x484468,_0xf6aab1,_0x30a58f,_0x1a189e))return;const _0x2928a0=_0x40cf58===_0x210c08['REMOVE']?_0x258a56(0x42f):_0x258a56(0x27f);this[_0x258a56(0x6d6)](_0x258a56(0x688),{'env':_0x484468,'type':_0xf6aab1,'key':_0x30a58f,'op':_0x2928a0,'clock':_0x1a189e,'origin':_0x32266f,'value':_0x2928a0===_0x258a56(0x42f)?null:_0x341bef,'prevValue':_0x56e42c});}[_0x4be527(0x829)](_0xc0853){const _0x1c8ad7=_0x4be527;if(!this[_0x1c8ad7(0x3cb)])return;if(!_0xc0853||typeof _0xc0853[_0x1c8ad7(0x30b)]!==_0x1c8ad7(0x4bb)||typeof _0xc0853[_0x1c8ad7(0x673)]!==_0x1c8ad7(0x4bb))return;const {env:_0x2d97b8,type:_0x3ed7cc}=_0xc0853;if(_0x2d97b8[_0x1c8ad7(0x6c8)]('~')||_0x3ed7cc[_0x1c8ad7(0x6c8)]('~'))return;this[_0x1c8ad7(0x2bd)][_0x1c8ad7(0x328)](_0x2d97b8+'\x00'+_0x3ed7cc,{'env':_0x2d97b8,'type':_0x3ed7cc}),this['_scheduleFlush']();}[_0x4be527(0x6b8)](){const _0x1f6196=_0x4be527;if(this[_0x1f6196(0x3ba)])return;const _0x518f03=()=>{const _0xd6c637=_0x1f6196;this[_0xd6c637(0x3ba)]=null,this['_drain']()[_0xd6c637(0x189)](()=>{});};this[_0x1f6196(0x3ba)]=setTimeout(_0x518f03,_0xa7e58c(this[_0x1f6196(0x165)]));}async[_0x4be527(0x2da)](){const _0x42cada=_0x4be527;if(this[_0x42cada(0x873)]){this[_0x42cada(0x6b8)]();return;}this[_0x42cada(0x873)]=!![];try{const _0x4e9bd1=[...this['_pending'][_0x42cada(0x89c)]()];this[_0x42cada(0x2bd)][_0x42cada(0x871)]();let _0x28cfbb=![];for(const {env:_0x29dc46,type:_0x27d14b}of _0x4e9bd1){try{const _0x415b06=await this[_0x42cada(0x505)](_0x29dc46,_0x27d14b);if(_0x415b06)_0x28cfbb=!![];}catch{this[_0x42cada(0x2bd)]['set'](_0x29dc46+'\x00'+_0x27d14b,{'env':_0x29dc46,'type':_0x27d14b}),_0x28cfbb=!![];}}if(_0x28cfbb||this[_0x42cada(0x2bd)][_0x42cada(0x221)]>0x0)this['_scheduleFlush']();}finally{this[_0x42cada(0x873)]=![];}}async[_0x4be527(0x505)](_0x5d936b,_0x5d8821){const _0x2cb657=_0x4be527,_0x301cf7=await this[_0x2cb657(0x21e)][_0x2cb657(0x7e2)](_0x5d936b),_0x89c4e5=_0x5d936b+'\x00'+_0x5d8821;!this[_0x2cb657(0x373)][_0x2cb657(0x51e)](_0x89c4e5)&&(!this[_0x2cb657(0x769)]['has'](_0x5d936b)&&(_0x301cf7['_enableChangelog'](),this[_0x2cb657(0x769)][_0x2cb657(0x328)](_0x5d936b,_0x301cf7[_0x2cb657(0x45e)]()||0x0)),this[_0x2cb657(0x373)][_0x2cb657(0x328)](_0x89c4e5,this[_0x2cb657(0x769)]['get'](_0x5d936b)));const _0x28a986=this['_cursors'][_0x2cb657(0x63c)](_0x89c4e5),_0x3de879=_0x301cf7[_0x2cb657(0x45e)](_0x5d8821)||0x0;if(_0x3de879<=_0x28a986)return![];const _0x2487ea=_0x28a986+this[_0x2cb657(0x188)],_0x4890b5=Math[_0x2cb657(0x5a9)](_0x3de879,_0x2487ea),_0x5d3d50=_0x24454c[_0x2cb657(0x580)]?_0x24454c[_0x2cb657(0x89e)]():0x0,_0x39ff10=Array['from'](_0x301cf7[_0x2cb657(0x267)](_0x5d8821,_0x28a986+0x1,_0x4890b5));let _0x3b86ff=_0x28a986;for(const _0x4e13d2 of _0x39ff10){const {clock:_0x3ef87d,key:_0xc3aa71,action:_0x2add58,origin:_0xb12b25}=_0x4e13d2;if(_0x3ef87d>_0x3b86ff)_0x3b86ff=_0x3ef87d;if(_0xc3aa71==null)continue;if(this['_pendingLocal'][_0x2cb657(0x51e)](this['_dedupeKey'](_0x5d936b,_0x5d8821,_0xc3aa71,_0x3ef87d)))continue;if(!this[_0x2cb657(0x49c)](_0x5d936b,_0x5d8821,_0xc3aa71,_0x3ef87d))continue;let _0x3332be,_0x288080;if(_0x2add58===_0x210c08[_0x2cb657(0x6a2)])_0x3332be='remove',_0x288080=null;else{const _0x148d35=_0x301cf7[_0x2cb657(0x63c)](_0x5d8821,_0xc3aa71);_0x148d35==null?(_0x3332be=_0x2cb657(0x42f),_0x288080=null):(_0x3332be=_0x2cb657(0x27f),_0x288080=_0x148d35);}this[_0x2cb657(0x6d6)](_0x2cb657(0x688),{'env':_0x5d936b,'type':_0x5d8821,'key':_0xc3aa71,'op':_0x3332be,'clock':_0x3ef87d,'origin':_0xb12b25,'value':_0x288080});}if(_0x24454c[_0x2cb657(0x580)])_0x24454c['note']('feed:'+_0x5d936b+':'+_0x5d8821,_0x24454c[_0x2cb657(0x89e)]()-_0x5d3d50,'n='+_0x39ff10[_0x2cb657(0x6cf)]);return this['_cursors'][_0x2cb657(0x328)](_0x89c4e5,Math['max'](_0x3b86ff,_0x4890b5)),_0x301cf7[_0x2cb657(0x45e)](_0x5d8821)>_0x4890b5;}[_0x4be527(0x1c9)](){const _0x37c5ae=_0x4be527;return{'started':this[_0x37c5ae(0x3cb)],'quantum':this[_0x37c5ae(0x188)],'flushDebounce':this[_0x37c5ae(0x165)],'cursors':Object[_0x37c5ae(0x804)]([...this['_cursors'][_0x37c5ae(0x72a)]()]['map'](([_0x266bc3,_0x109219])=>[_0x266bc3[_0x37c5ae(0x861)]('\x00',':'),_0x109219])),'pending':this['_pending']['size'],'seen':this[_0x37c5ae(0x4b7)][_0x37c5ae(0x221)]};}}return _0x3f0312[_0x4be527(0x641)]=_0x392f87,okdbChangefeed={'OKDBChangefeed':_0x3f0312},okdbChangefeed;}var okdbRelay,hasRequiredOkdbRelay;function requireOkdbRelay(){const _0x588f19=_0x2ec26e;if(hasRequiredOkdbRelay)return okdbRelay;hasRequiredOkdbRelay=0x1;const {EVENTS:_0x3ab85c}=requireOkdbEnums(),_0x37252f=new Set([_0x3ab85c[_0x588f19(0x621)],_0x3ab85c['ITEM_UPDATE'],_0x3ab85c[_0x588f19(0x255)]]),{ENGINE_EVENTS:_0x500138}=requireOkdbEnginesEnums(),{EMBEDDINGS_EVENTS:_0x17d6fa}=requireEnums(),{QUEUE_EVENTS:_0x3c81d1}=requireOkdbQueueValidate(),_0xd40efb=Object['values'](_0x3ab85c),_0x301785=Object[_0x588f19(0x89c)](_0x500138)['map'](_0x287916=>_0x588f19(0x685)+_0x287916),_0x3242ca=Object[_0x588f19(0x89c)](_0x17d6fa),_0x5dfef3=Object['values'](_0x3c81d1),_0x3139db=[_0x588f19(0x63f),_0x588f19(0x428),'processor:error',_0x588f19(0x642),_0x588f19(0x5d3),_0x588f19(0x531)],_0x4354bb=[..._0xd40efb,..._0x301785,..._0x3242ca,..._0x5dfef3,..._0x3139db,_0x588f19(0x793)],_0x3e69b2=new Set(_0x4354bb),_0x39e7b6=new Set([_0x3ab85c[_0x588f19(0x621)],_0x3ab85c[_0x588f19(0x3d4)],_0x3ab85c['ITEM_REMOVE'],_0x3ab85c[_0x588f19(0x67e)],_0x3ab85c[_0x588f19(0x63e)],_0x3ab85c[_0x588f19(0x3b4)],_0x3ab85c[_0x588f19(0x706)],_0x3ab85c['INDEX_PROGRESS'],_0x17d6fa[_0x588f19(0x38c)],_0x17d6fa[_0x588f19(0x297)],_0x17d6fa[_0x588f19(0x78d)],_0x17d6fa[_0x588f19(0x76d)],_0x588f19(0x428)]),_0x1f6c05=_0x4354bb[_0x588f19(0x852)](_0x4943a2=>_0x4943a2===_0x588f19(0x793)||!_0x39e7b6[_0x588f19(0x51e)](_0x4943a2)),_0x25285a=0x14,_0x4e66af=0xc8;class _0x459529{constructor(_0x208fea,_0x23604c={}){const _0x518282=_0x588f19;this[_0x518282(0x21e)]=_0x208fea,this[_0x518282(0x87c)]=_0x23604c[_0x518282(0x356)]??_0x25285a,this['_ringSize']=_0x23604c[_0x518282(0x651)]??_0x4e66af,this[_0x518282(0x259)]=new Set(),this[_0x518282(0x429)]=[],this[_0x518282(0x59b)]=[],this[_0x518282(0x5b8)]=null,this[_0x518282(0x44d)]=![],this[_0x518282(0x59e)]=null,this[_0x518282(0x785)]=null;}[_0x588f19(0x3f0)](){const _0x1d3842=_0x588f19;if(this[_0x1d3842(0x44d)])return;this['_attached']=!![];const {okdb:_0x3c8aa1}=this;this[_0x1d3842(0x5b8)]=_0x3c8aa1[_0x1d3842(0x793)][_0x1d3842(0x3f0)](_0xcfc977=>this['_push'](_0x1d3842(0x793),_0xcfc977));for(const _0x2591b9 of _0x4354bb){if(_0x2591b9===_0x1d3842(0x793))continue;const _0xf1adda=_0x37252f[_0x1d3842(0x51e)](_0x2591b9),_0x11aee7=_0x52de7b=>{const _0x352b0e=_0x1d3842;if(_0xf1adda&&this[_0x352b0e(0x59e)])return;this[_0x352b0e(0x2ed)](_0x2591b9,_0x52de7b??{});};_0x3c8aa1[_0x1d3842(0x29a)]['on'](_0x2591b9,_0x11aee7),this[_0x1d3842(0x59b)][_0x1d3842(0x2fb)]({'event':_0x2591b9,'handler':_0x11aee7});}this[_0x1d3842(0x4c9)]=()=>this[_0x1d3842(0x1c5)](),_0x3c8aa1[_0x1d3842(0x29a)]['once'](_0x3ab85c[_0x1d3842(0x87e)],this[_0x1d3842(0x4c9)]);}[_0x588f19(0x1c5)](){const _0x31c83e=_0x588f19;if(!this[_0x31c83e(0x44d)])return;if(this['_onStop']){try{this[_0x31c83e(0x21e)]['events'][_0x31c83e(0x304)](_0x3ab85c[_0x31c83e(0x87e)],this[_0x31c83e(0x4c9)]);}catch{}this[_0x31c83e(0x4c9)]=null;}this[_0x31c83e(0x5b8)]?.(),this[_0x31c83e(0x5b8)]=null;for(const {event:_0x5f4e7c,handler:_0x2986cd}of this[_0x31c83e(0x59b)]){try{this[_0x31c83e(0x21e)][_0x31c83e(0x29a)]['off'](_0x5f4e7c,_0x2986cd);}catch{}}this['_listeners']=[];for(const _0x353759 of this['_connections']){try{_0x353759[_0x31c83e(0x5a1)]?.();}catch{}}this[_0x31c83e(0x259)][_0x31c83e(0x871)](),this['detachFeed'](),this[_0x31c83e(0x44d)]=![];}[_0x588f19(0x222)](_0x46709d){const _0x49a5d5=_0x588f19;if(!_0x46709d||this[_0x49a5d5(0x59e)]===_0x46709d)return;this[_0x49a5d5(0x86a)](),this[_0x49a5d5(0x59e)]=_0x46709d,this[_0x49a5d5(0x785)]=_0x144632=>{const _0x174710=_0x49a5d5;if(!_0x144632)return;const _0x5f1001=_0x144632['op']===_0x174710(0x42f)?_0x3ab85c['ITEM_REMOVE']:_0x3ab85c[_0x174710(0x3d4)];this[_0x174710(0x2ed)](_0x5f1001,_0x144632);},_0x46709d['on']('change',this['_onFeedChange']);}[_0x588f19(0x86a)](){const _0x3961ed=_0x588f19;if(this['_feed']&&this[_0x3961ed(0x785)])try{this[_0x3961ed(0x59e)][_0x3961ed(0x304)](_0x3961ed(0x688),this[_0x3961ed(0x785)]);}catch{}this[_0x3961ed(0x59e)]=null,this[_0x3961ed(0x785)]=null;}[_0x588f19(0x6d2)](_0x338af4,_0x22c562){const _0x14829c=_0x588f19;if(!_0x3e69b2[_0x14829c(0x51e)](_0x338af4))return;this[_0x14829c(0x2ed)](_0x338af4,_0x22c562??{});}[_0x588f19(0x7f3)](_0x2d9e8b,_0x264d21,_0x7b51d1){const _0x265f72=_0x588f19;if(this[_0x265f72(0x259)]['size']>=this['_maxConnections'])return _0x264d21(_0x265f72(0x402),{'message':_0x265f72(0x6f4),'code':_0x265f72(0x53c)}),()=>{};const _0x5311d0=this['_resolveFilter'](_0x2d9e8b),_0x7511c1={'send':_0x264d21,'filter':_0x5311d0,'close':_0x7b51d1??null};this['_connections'][_0x265f72(0x7df)](_0x7511c1);for(const {event:_0x1ba2ea,data:_0x539c51}of this[_0x265f72(0x429)]){if(_0x5311d0[_0x265f72(0x51e)](_0x1ba2ea))try{_0x264d21(_0x1ba2ea,_0x539c51);}catch{}}return()=>this[_0x265f72(0x259)][_0x265f72(0x82f)](_0x7511c1);}[_0x588f19(0x720)](){const _0x368622=_0x588f19;if(this['_feed'])return this[_0x368622(0x59e)];const {OKDBChangefeed:_0x51bcb2}=requireOkdbChangefeed(),_0x4a80a1=new _0x51bcb2(this[_0x368622(0x21e)]);_0x4a80a1['start'](),this[_0x368622(0x222)](_0x4a80a1);if(this[_0x368622(0x21e)]&&!this[_0x368622(0x21e)][_0x368622(0x2f7)])this[_0x368622(0x21e)][_0x368622(0x2f7)]=_0x4a80a1;return this[_0x368622(0x59e)];}get[_0x588f19(0x894)](){const _0x2c2fb7=_0x588f19;return this[_0x2c2fb7(0x259)][_0x2c2fb7(0x221)];}[_0x588f19(0x5e6)](){const _0x2f4aac=_0x588f19;return{'connections':this[_0x2f4aac(0x894)],'bufferSize':this[_0x2f4aac(0x429)]['length'],'attached':this['_attached'],'allEvents':_0x4354bb[_0x2f4aac(0x6cf)],'defaultEvents':_0x1f6c05[_0x2f4aac(0x6cf)]};}static get[_0x588f19(0x1b9)](){return _0x4354bb;}static get[_0x588f19(0x3cf)](){return _0x1f6c05;}static get['HIGH_FREQ_EVENTS'](){return[..._0x39e7b6];}[_0x588f19(0x30e)](_0xcda530){const _0x101bfe=_0x588f19;if(!_0xcda530||!_0xcda530[_0x101bfe(0x6cf)])return new Set(_0x1f6c05);const _0x15523f=_0xcda530[_0x101bfe(0x852)](_0x458e4b=>_0x3e69b2[_0x101bfe(0x51e)](_0x458e4b));return new Set(_0x15523f[_0x101bfe(0x6cf)]?_0x15523f:_0x1f6c05);}[_0x588f19(0x2ed)](_0x4bc1c5,_0x5ec3a7){const _0x419abf=_0x588f19,_0x26fe4a={..._0x5ec3a7,'_ts':_0x5ec3a7?.['_ts']??_0x5ec3a7?.['ts']??Date[_0x419abf(0x89e)]()};this['_buffer'][_0x419abf(0x2fb)]({'event':_0x4bc1c5,'data':_0x26fe4a});if(this[_0x419abf(0x429)][_0x419abf(0x6cf)]>this[_0x419abf(0x45d)])this[_0x419abf(0x429)][_0x419abf(0x7be)]();for(const _0xd0c6b8 of this['_connections']){if(_0xd0c6b8[_0x419abf(0x852)][_0x419abf(0x51e)](_0x4bc1c5))try{_0xd0c6b8['send'](_0x4bc1c5,_0x26fe4a);}catch{}}}}return okdbRelay=_0x459529,okdbRelay;}var hasRequiredLib;function requireLib(){const _0x566dfe=_0x2ec26e;if(hasRequiredLib)return lib['exports'];return hasRequiredLib=0x1,function(_0x590e4f){const _0x4b066e=_0x3ebb,_0x39c370=require$$0$6,{load:_0x5d34c8}=require$$1$1,_0x485c28=requireBridge(),_0x2683a8=requireWritebatch(),{Pumper:_0x4d6866}=requirePump(),{OKDBEnv:_0x2f4b08,HIGH_SENTINEL:_0x30e045}=requireEnv(),{reclass:_0x2354a9,NotImplementedNative:_0x564778,OKDBError:_0x2c63fb,optionsArg:_0x4b8cd1,invalidArgument:_0x5b2ba6}=requireErrors(),{notImplemented:_0x421ba5}=requireUnsupported(),{OKDBHttp:_0x2ba623}=requireHttp(),{OKDBFts:_0x2299f9}=requireFts(),{OKDBEmbeddings:_0x412149}=requireEmbeddings(),{OKDBAuth:_0x13e34f}=requireAuth(),{OKDBSync:_0x1a39e6}=requireSync(),{OKDBMigrate:_0x26ecee}=requireMigrate(),{OKDBFunctions:_0x3040ad}=requireFunctions(),{OKDBMcp:_0x3fda4d}=requireMcp(),{OKDBEngines:_0x5bda5e,OKDBPipelines:_0x580702}=requireEngines(),{makeMeta:_0x4301be,makeLicenses:_0x8682cd,makeLicenseChecker:_0x371cf1,makeProcesses:_0x185664}=requireSys();let _0x1fd7ea=null;function _0xa3379(_0x425d7d){const _0x24ab97=_0x3ebb;if(!_0x1fd7ea){const {Unpackr:_0x35d400}=require$$18;_0x1fd7ea=new _0x35d400({'useRecords':![],'mapsAsObjects':!![],'copyBuffers':!![]});}return _0x1fd7ea[_0x24ab97(0x5b1)](_0x425d7d);}let _0x4474cf=null;function _0xb90e29(_0x5ef426,_0x2a980f){const _0x3aa32d=_0x3ebb;if(!_0x4474cf){const {Unpackr:_0x2cab69}=require$$18;_0x4474cf=new _0x2cab69({'copyBuffers':!![]});}return _0x4474cf[_0x3aa32d(0x5b1)](_0x5ef426,_0x2a980f);}const {encodeKey:_0x646b7,KEY_BUF_SIZE:_0x5a5ac8,NO_FAST:_0x3dbf7f}=requireKeyenc(),_0x1a9e02=0x40*0x400,_0x58400d=0x4*0x400*0x400;function _0x41b4ab(_0x2e84d2,_0x5c1714){const _0x24ebf0=_0x3ebb,_0x20d7c=_0x2e84d2[0x2],_0xc48e42=_0x20d7c?(_0x2e84d2[_0x24ebf0(0x6cf)]-0x3)/Math['abs'](_0x20d7c):0x0,_0x27cab1=new Array(_0xc48e42);let _0x73a47c=0x3;if(_0x20d7c===0x2){for(let _0x53b50e=0x0;_0x53b50e<_0xc48e42;_0x53b50e++,_0x73a47c+=0x2)_0x27cab1[_0x53b50e]={'key':_0x2e84d2[_0x73a47c],'value':_0x2e84d2[_0x73a47c+0x1]};}else{if(_0x20d7c===0x3){for(let _0x5465c9=0x0;_0x5465c9<_0xc48e42;_0x5465c9++,_0x73a47c+=0x3)_0x27cab1[_0x5465c9]={'key':_0x2e84d2[_0x73a47c],'value':_0x2e84d2[_0x73a47c+0x1],'version':_0x2e84d2[_0x73a47c+0x2]};}else{if(_0x20d7c===-0x2){for(let _0xb64c70=0x0;_0xb64c70<_0xc48e42;_0xb64c70++,_0x73a47c+=0x2)_0x27cab1[_0xb64c70]={'clock':_0x2e84d2[_0x73a47c],..._0x2e84d2[_0x73a47c+0x1]};}else{if(_0x20d7c===0x4){for(let _0x1f248a=0x0;_0x1f248a<_0xc48e42;_0x1f248a++,_0x73a47c+=0x4)_0x27cab1[_0x1f248a]={'key':_0x2e84d2[_0x73a47c],'value':_0x2e84d2[_0x73a47c+0x1],'version':_0x2e84d2[_0x73a47c+0x2],'indexKey':_0x2e84d2[_0x73a47c+0x3]};}else{if(_0xc48e42)throw new Error('callRows:\x20unexpected\x20row\x20stride\x20'+_0x20d7c);}}}}return _0x5c1714?[_0x2e84d2[0x0],_0x27cab1,_0x2e84d2[0x1]]:_0x27cab1;}let _0xd7861b=null;function _0x1f4931(_0x4ef25c,_0x354ca4,_0x52e310){const _0x398efc=_0x3ebb;if(!_0xd7861b)_0xd7861b=requireDist()[_0x398efc(0x5ad)];const _0x17a2d3=new DataView(_0x4ef25c[_0x398efc(0x6b6)],_0x4ef25c[_0x398efc(0x67f)],_0x354ca4),_0x5ce178=_0x17a2d3[_0x398efc(0x4f4)](0x10,!![]),_0x485247=new Array(_0x5ce178);let _0x728ad=0x14;for(let _0x3e1a7d=0x0;_0x3e1a7d<_0x5ce178;_0x3e1a7d++){const _0x111913=_0x4ef25c[_0x728ad]|_0x4ef25c[_0x728ad+0x1]<<0x8;_0x728ad+=0x2,_0x485247[_0x3e1a7d]=_0xd7861b(_0x4ef25c,_0x728ad,_0x728ad+_0x111913),_0x728ad+=_0x111913;}return _0x52e310?[_0x17a2d3[_0x398efc(0x8a1)](0x0,!![]),_0x485247,_0x17a2d3['getFloat64'](0x8,!![])]:_0x485247;}const _0x413630=requireOkdbLogger(),_0x367631=requireOkdbPlugins(),{OKDB_STATE:_0x58409e,EVENTS:_0x2ec25f}=requireOkdbEnums(),_0x30c87e=requireStatics();let _0x491599=null,_0x2a733d=![],_0x5b8164=0x1;const _0x4eb66f=new Map(),_0x5f4030=new Set(['FIELD_RESOLVER_PENDING',_0x4b066e(0x71c)]),_0x46ab9b=_0x110066=>!!_0x110066&&_0x5f4030['has'](_0x110066[_0x4b066e(0x748)]),_0x2df47d=Number(process.env.OKDB_PENDING_RETRY_MS)>0x0?Number(process.env.OKDB_PENDING_RETRY_MS):0x1d4c0;function _0x46d76c(){!_0x2a733d&&(_0x24f469()['setBridge'](_0x485c28['bridge']),_0x2683a8['install'](_0x24f469()),_0x2a733d=!![]);}function _0x24f469(){if(!_0x491599)_0x491599=_0x5d34c8();return _0x491599;}class _0x353085 extends Map{constructor(_0x3f3518){const _0x3aa6f7=_0x4b066e;super(),this[_0x3aa6f7(0x1bb)]=_0x3f3518;}[_0x4b066e(0x845)](){const _0x3840b3=_0x4b066e,_0x16a7b8=this[_0x3840b3(0x1bb)];if(!_0x16a7b8[_0x3840b3(0x60a)])return;let _0x3f1741;try{_0x3f1741=_0x16a7b8[_0x3840b3(0x49e)]('db',null,_0x3840b3(0x567),[],![]);}catch{return;}for(const _0x25da93 of _0x3f1741)if(!super[_0x3840b3(0x51e)](_0x25da93)&&_0x16a7b8[_0x3840b3(0x49e)]('db',null,_0x3840b3(0x236),[_0x25da93],![]))_0x16a7b8[_0x3840b3(0x248)](_0x25da93);}['get'](_0x490468){const _0x1d50e8=_0x4b066e,_0x16a5f8=super['get'](_0x490468);if(_0x16a5f8!==undefined||typeof _0x490468!==_0x1d50e8(0x4bb))return _0x16a5f8;const _0x16e45d=this[_0x1d50e8(0x1bb)];if(_0x490468===_0x1d50e8(0x7a3))return _0x16e45d['_isOpen']?_0x16e45d[_0x1d50e8(0x196)][_0x1d50e8(0x816)]??undefined:undefined;if(_0x16e45d[_0x1d50e8(0x60a)]&&_0x16e45d['_call']('db',null,_0x1d50e8(0x236),[_0x490468],![]))return _0x16e45d[_0x1d50e8(0x248)](_0x490468);if(_0x16e45d['_isOpen']&&typeof _0x490468==='string'&&!_0x490468[_0x1d50e8(0x6c8)]('~')){_0x16e45d[_0x1d50e8(0x49e)]('db',null,_0x1d50e8(0x1ff),[],![]);if(_0x16e45d['_call']('db',null,_0x1d50e8(0x236),[_0x490468],![]))return _0x16e45d[_0x1d50e8(0x248)](_0x490468);}return undefined;}[_0x4b066e(0x51e)](_0x5cd532){return this['get'](_0x5cd532)!==undefined;}get[_0x4b066e(0x221)](){const _0x53537c=_0x4b066e;return this[_0x53537c(0x845)](),super['size'];}[_0x4b066e(0x1d5)](){return this['_sync'](),super['keys']();}[_0x4b066e(0x89c)](){const _0x1f9329=_0x4b066e;return this['_sync'](),super[_0x1f9329(0x89c)]();}[_0x4b066e(0x72a)](){return this['_sync'](),super['entries']();}[_0x4b066e(0x169)](_0xd1a1b4,_0x3f32dc){const _0x2dc375=_0x4b066e;return this[_0x2dc375(0x845)](),super['forEach'](_0xd1a1b4,_0x3f32dc);}[Symbol['iterator']](){const _0x57dac5=_0x4b066e;return this[_0x57dac5(0x845)](),super[Symbol[_0x57dac5(0x56e)]]();}}class _0x40c6a4{constructor(_0x105270,_0x441552={}){const _0x3958ae=_0x4b066e,_0x468531=_0x24f469();this[_0x3958ae(0x39d)]=_0x105270,this[_0x3958ae(0x4b8)]=_0x5b8164++,this[_0x3958ae(0x20f)]='db'+this[_0x3958ae(0x4b8)],this[_0x3958ae(0x66a)]={..._0x30c87e['defaults'],..._0x441552,'auth':_0x441552[_0x3958ae(0x1e2)]?{..._0x441552[_0x3958ae(0x1e2)]}:undefined,'lmdb':{..._0x441552[_0x3958ae(0x66d)]||{}}},this[_0x3958ae(0x29a)]=new _0x39c370(),this['events'][_0x3958ae(0x502)](0x0),this[_0x3958ae(0x313)]=new Set(),this['events']['on'](_0x3958ae(0x32b),_0x9d3d85=>this['_subscribeEvent'](_0x9d3d85)),this[_0x3958ae(0x793)]=new _0x413630(this),this[_0x3958ae(0x793)][_0x3958ae(0x435)](),_0x485c28[_0x3958ae(0x619)](this['_key'],{'_deliver':(_0x30a6c9,_0x5ca8c4)=>this['_deliverEvent'](_0x30a6c9,_0x5ca8c4),'_log':_0x2e974a=>{const _0x4ac119=_0x3958ae;if(this[_0x4ac119(0x560)])this[_0x4ac119(0x560)][_0x4ac119(0x2fb)](_0x2e974a);const _0x3a4e75=_0x2e974a&&_0x2e974a[_0x4ac119(0x86c)];if(_0x3a4e75&&Object[_0x4ac119(0x455)]['hasOwnProperty'][_0x4ac119(0x853)](this[_0x4ac119(0x793)],_0x3a4e75)&&typeof this[_0x4ac119(0x793)][_0x3a4e75]===_0x4ac119(0x6d8)){const _0x5f3fcc=_0x2e974a[_0x4ac119(0x162)];return this[_0x4ac119(0x793)][_0x3a4e75](_0x2e974a[_0x4ac119(0x410)],{..._0x2e974a[_0x4ac119(0x47b)]||{},..._0x5f3fcc&&typeof _0x5f3fcc==='object'?_0x5f3fcc:{}});}return this[_0x4ac119(0x793)]['ingest'](_0x2e974a);}}),_0x46d76c();try{const _0x8626a9={};if(typeof _0x3958ae(0x3ee)===_0x3958ae(0x809)||_0x3958ae(0x3ee)!==_0x3958ae(0x3ee));const _0x42b781={..._0x441552,'_clusterWorker':require('node:cluster')[_0x3958ae(0x1fd)],..._0x8626a9};this[_0x3958ae(0x52f)]={'instance':null,'envs':new Map()};typeof _0x441552[_0x3958ae(0x4e9)]===_0x3958ae(0x6d8)&&(this[_0x3958ae(0x52f)]['instance']=_0x441552[_0x3958ae(0x4e9)],delete _0x42b781[_0x3958ae(0x4e9)]);if(_0x441552['encryptionKeys']&&typeof _0x441552[_0x3958ae(0x224)]===_0x3958ae(0x1be)){for(const [_0x3a7a11,_0xcb05a2]of Object[_0x3958ae(0x72a)](_0x441552[_0x3958ae(0x224)]))this[_0x3958ae(0x52f)][_0x3958ae(0x5b9)][_0x3958ae(0x328)](_0x3a7a11,_0xcb05a2);}delete _0x42b781['encryptionKeys'],this[_0x3958ae(0x6bd)]=new _0x468531['Native'](_0x105270,_0x42b781,this[_0x3958ae(0x20f)]);}catch(_0x4f1062){_0x485c28[_0x3958ae(0x85f)](this[_0x3958ae(0x20f)]);throw _0x2354a9(_0x4f1062);}this['state']=_0x58409e['CREATED'],this[_0x3958ae(0x60a)]=![],this[_0x3958ae(0x8a5)]=new _0x353085(this),this['_pumper']=new _0x4d6866({'pump':()=>this[_0x3958ae(0x6bd)]['pump']()}),this[_0x3958ae(0x53b)]=new _0x2683a8[(_0x3958ae(0x6c0))](this),this[_0x3958ae(0x5bc)][_0x3958ae(0x3f4)]=()=>_0x485c28[_0x3958ae(0x6da)](),_0x485c28[_0x3958ae(0x404)](()=>this[_0x3958ae(0x5bc)][_0x3958ae(0x536)](),this),_0x4eb66f[_0x3958ae(0x328)](this[_0x3958ae(0x4b8)],this),this[_0x3958ae(0x1a9)]={},_0x485c28[_0x3958ae(0x755)](this),this[_0x3958ae(0x492)]=new _0x2299f9(this),this[_0x3958ae(0x422)]=new _0x412149(this),this[_0x3958ae(0x1a5)]=new _0x5bda5e(this,null,null),this['pipelines']=new _0x580702(this,null),this[_0x3958ae(0x47b)]=_0x4301be(this),this[_0x3958ae(0x60e)]=_0x8682cd(this),this[_0x3958ae(0x89d)]=_0x371cf1(this),this['processes']=_0x185664(this),this[_0x3958ae(0x409)]=_0x104dd6(this),this['plugins']=new _0x367631(this),this[_0x3958ae(0x449)]=new _0x2ba623(this),this[_0x3958ae(0x5f3)]=new _0x1a39e6(this),this[_0x3958ae(0x1e2)]=new _0x13e34f(this),this[_0x3958ae(0x762)]=new _0x3040ad(this,null),this[_0x3958ae(0x403)]=new _0x3fda4d(this),this[_0x3958ae(0x593)]=_0x441552&&_0x441552[_0x3958ae(0x593)]===![]?null:_0x421ba5(_0x3958ae(0x593)),this[_0x3958ae(0x370)]=_0x421ba5(_0x3958ae(0x370)),this['migrate']=new _0x26ecee(this);}[_0x4b066e(0x49e)](_0x4e9cde,_0x26fe59,_0x3eef7b,_0x4820e6,_0x1f7f9d=!![]){const _0x5f3b7e=_0x4b066e;if(_0x1f7f9d&&this['_wb']&&this[_0x5f3b7e(0x53b)][_0x5f3b7e(0x601)]['length'])this['_wb'][_0x5f3b7e(0x2cd)]();try{return this['_native'][_0x5f3b7e(0x853)](_0x4e9cde,_0x26fe59,_0x3eef7b,_0x4820e6);}catch(_0x35a918){throw _0x2354a9(_0x35a918);}finally{if(_0x1f7f9d)this[_0x5f3b7e(0x5bc)][_0x5f3b7e(0x536)]();}}[_0x4b066e(0x270)](_0x253053,_0x19dd7a,_0x467b74,_0x406910){const _0x59aa95=_0x4b066e;let _0x56b2fe;try{_0x56b2fe=this[_0x59aa95(0x6bd)]['callPacked'](_0x253053,_0x19dd7a,_0x467b74,_0x406910);}catch(_0x1fae7a){throw _0x2354a9(_0x1fae7a);}return _0x56b2fe instanceof Uint8Array?_0xa3379(_0x56b2fe):_0x56b2fe[0x0];}['_readBuf'](_0x14bf77){const _0x1615b0=_0x4b066e;let _0x4732de=this[_0x1615b0(0x80f)];if(_0x4732de&&_0x14bf77<=_0x4732de[_0x1615b0(0x6cf)])return _0x4732de;let _0x435beb=_0x4732de?_0x4732de['length']:_0x1a9e02;while(_0x435beb<_0x14bf77)_0x435beb*=0x2;if(_0x435beb>_0x58400d)return _0x4732de;return _0x4732de=this['_rbuf']=Buffer[_0x1615b0(0x73c)](_0x435beb),this[_0x1615b0(0x6bd)][_0x1615b0(0x7f6)](_0x4732de),_0x4732de;}[_0x4b066e(0x48d)](_0x429731,_0x5139ee,_0x2a6579){const _0x3021f6=_0x4b066e;if(!this[_0x3021f6(0x80f)])this[_0x3021f6(0x66f)](0x0);const _0x535f57=this['_native'][_0x3021f6(0x83e)](_0x429731,_0x5139ee,_0x2a6579);if(typeof _0x535f57===_0x3021f6(0x5c1))return _0xb90e29(this[_0x3021f6(0x80f)],_0x535f57);if(_0x535f57===undefined||_0x535f57===null)return _0x535f57;return this[_0x3021f6(0x66f)](_0x535f57['length']),_0xb90e29(_0x535f57);}[_0x4b066e(0x721)](_0x4e1f83,_0x18341a,_0x24650e){const _0x3ff242=_0x4b066e;let _0x54f595=this['_kbuf'];if(!_0x54f595){_0x54f595=this[_0x3ff242(0x350)]=Buffer[_0x3ff242(0x73c)](_0x5a5ac8),this['_native']['setKeyBuffer'](_0x54f595),this[_0x3ff242(0x4c1)]=new Map();if(!this[_0x3ff242(0x80f)])this[_0x3ff242(0x66f)](0x0);}const _0x303185=_0x646b7(_0x24650e,_0x54f595);if(_0x303185<0x0)return _0x3dbf7f;let _0x27e701=this[_0x3ff242(0x4c1)][_0x3ff242(0x63c)](_0x4e1f83);if(_0x27e701===undefined)this['_tids']['set'](_0x4e1f83,_0x27e701=new Map());let _0x5a5d18=_0x27e701[_0x3ff242(0x63c)](_0x18341a);if(_0x5a5d18===undefined)_0x27e701[_0x3ff242(0x328)](_0x18341a,_0x5a5d18=this['_native'][_0x3ff242(0x494)](_0x4e1f83,_0x18341a));if(_0x5a5d18<0x0)return _0x3dbf7f;const _0x592d18=this['_native'][_0x3ff242(0x4ea)](_0x5a5d18,_0x303185);if(typeof _0x592d18==='number')return _0xb90e29(this['_rbuf'],_0x592d18);if(_0x592d18===undefined||_0x592d18===null)return _0x592d18;return this['_readBuf'](_0x592d18[_0x3ff242(0x6cf)]),_0xb90e29(_0x592d18);}[_0x4b066e(0x39e)](_0x10057a,_0x174ead,_0x174536){const _0x39a2b7=_0x4b066e;if(!this['_rbuf'])this['_readBuf'](0x0);let _0x40ce16;try{_0x40ce16=this[_0x39a2b7(0x6bd)][_0x39a2b7(0x23e)](_0x10057a,_0x174ead,_0x174536);}catch(_0x141bad){throw _0x2354a9(_0x141bad);}const _0x56cd52=_0x174ead===_0x39a2b7(0x2dd),_0x298ea7=_0x56cd52?_0x174536[0x1]:_0x174ead;let _0x5c98be=this[_0x39a2b7(0x80f)],_0xeca787=_0x40ce16;if(_0x40ce16 instanceof Uint8Array)this[_0x39a2b7(0x66f)](_0x40ce16[_0x39a2b7(0x6cf)]),_0x5c98be=_0x40ce16,_0xeca787=_0x40ce16[_0x39a2b7(0x6cf)];else{if(typeof _0x40ce16!==_0x39a2b7(0x5c1))return _0x40ce16[0x0];}if(_0x298ea7===_0x39a2b7(0x7d2))return _0x1f4931(_0x5c98be,_0xeca787,_0x56cd52);if(_0x298ea7===_0x39a2b7(0x791))return _0xb90e29(_0x5c98be,_0xeca787);return _0x41b4ab(_0xb90e29(_0x5c98be,_0xeca787),_0x56cd52);}[_0x4b066e(0x406)](_0x52a249,_0x526143,_0x5b8f22,_0x2fab65,_0x3505d7=!![],_0x23beae=!![]){const _0x5bf42c=_0x4b066e,_0x66a0c4=()=>this[_0x5bf42c(0x199)](()=>this['_call'](_0x52a249,_0x526143,_0x5b8f22,_0x2fab65,_0x3505d7));if(!_0x23beae)return _0x66a0c4();return this[_0x5bf42c(0x56c)](_0x66a0c4);}[_0x4b066e(0x56c)](_0x227528){const _0x496077=_0x4b066e;return _0x227528()[_0x496077(0x189)](async _0x4888d5=>{const _0x171cb4=_0x496077;if(!_0x46ab9b(_0x4888d5))throw _0x4888d5;const _0x33852d=Date[_0x171cb4(0x89e)]()+_0x2df47d;let _0x321086=0x1;while(_0x46ab9b(_0x4888d5)&&Date[_0x171cb4(0x89e)]()<_0x33852d){await new Promise(_0x58d4bd=>setTimeout(_0x58d4bd,_0x321086)),_0x321086=Math['min'](_0x321086*0x2,0x14);try{return await _0x227528();}catch(_0x4e2f66){_0x4888d5=_0x4e2f66;}}throw _0x4888d5;});}[_0x4b066e(0x29c)](_0x505c5b){const _0x11ebd5=_0x4b066e;if(_0x485c28[_0x11ebd5(0x37c)]())return Promise[_0x11ebd5(0x7a9)](_0x505c5b);return new Promise(_0x252fb0=>setImmediate(()=>_0x252fb0(_0x505c5b)));}[_0x4b066e(0x55c)](_0x4a384a){const _0x373a30=_0x4b066e;if(_0x485c28[_0x373a30(0x37c)]())return Promise['resolve'](_0x4a384a);return this[_0x373a30(0x3bc)]()[_0x373a30(0x2b0)](()=>_0x4a384a);}[_0x4b066e(0x3bc)](){return new Promise(_0x2c1334=>setImmediate(()=>{const _0x1e4647=_0x3ebb;let _0x2b6724;try{_0x2b6724=this[_0x1e4647(0x6bd)][_0x1e4647(0x5fe)]();}catch{return _0x2c1334();}_0x2683a8[_0x1e4647(0x49a)](_0x2b6724,_0x2c1334);}));}['_macro'](_0x463669){return new Promise((_0x139bad,_0x5d3589)=>setImmediate(()=>{try{_0x139bad(_0x463669());}catch(_0x52dd8){_0x5d3589(_0x52dd8);}}));}['_staticCall'](_0x5acc30,_0x205871,_0x120f1d){return _0x12e39f(_0x5acc30,_0x205871,_0x120f1d);}[_0x4b066e(0x51d)](_0x2b3e93){const _0x13d2e5=_0x4b066e;if(typeof _0x2b3e93!==_0x13d2e5(0x4bb)||this[_0x13d2e5(0x313)][_0x13d2e5(0x51e)](_0x2b3e93)||_0x2b3e93===_0x13d2e5(0x32b)||_0x2b3e93===_0x13d2e5(0x3e5))return;this[_0x13d2e5(0x313)][_0x13d2e5(0x7df)](_0x2b3e93);try{this['_native'][_0x13d2e5(0x853)](_0x13d2e5(0x29a),null,_0x13d2e5(0x7f3),[this[_0x13d2e5(0x20f)],_0x2b3e93]);}catch{}}['_deliverEvent'](_0x58aa88,_0x3d191d){const _0x1bde11=_0x4b066e;this[_0x1bde11(0x29a)][_0x1bde11(0x6d6)](_0x58aa88,_0x3d191d);}async[_0x4b066e(0x709)](){const _0x380235=_0x4b066e,_0x28530a=this[_0x380235(0x52f)];if(_0x28530a[_0x380235(0x2a3)])this[_0x380235(0x4f2)](null,await _0x28530a[_0x380235(0x2a3)](null),!![]);for(const [_0x2009e9,_0x129a90]of _0x28530a['envs'])this['_setKey'](_0x2009e9,typeof _0x129a90===_0x380235(0x6d8)?await _0x129a90(_0x2009e9):_0x129a90,typeof _0x129a90===_0x380235(0x6d8));(_0x28530a['instance']||[..._0x28530a[_0x380235(0x5b9)][_0x380235(0x89c)]()][_0x380235(0x786)](_0x546376=>typeof _0x546376===_0x380235(0x6d8)))&&!this[_0x380235(0x526)]&&(this[_0x380235(0x526)]=_0x44ad81=>{const _0x5f30a4=_0x380235,_0x5b46f0=_0x44ad81&&_0x44ad81['env']!=null?_0x44ad81[_0x5f30a4(0x30b)]:null,_0x5cb5e2=_0x5b46f0==null?_0x28530a['instance']:_0x28530a['envs'][_0x5f30a4(0x63c)](_0x5b46f0);if(typeof _0x5cb5e2!==_0x5f30a4(0x6d8))return;Promise[_0x5f30a4(0x7a9)]()[_0x5f30a4(0x2b0)](()=>_0x5cb5e2(_0x5b46f0))[_0x5f30a4(0x2b0)](_0x418fdf=>this[_0x5f30a4(0x4f2)](_0x5b46f0,_0x418fdf,!![]))[_0x5f30a4(0x189)](_0x4d2183=>this[_0x5f30a4(0x793)][_0x5f30a4(0x254)]('encryption\x20key\x20function\x20failed:\x20'+(_0x4d2183&&_0x4d2183[_0x5f30a4(0x2d2)]),{'env':_0x5b46f0}));},this[_0x380235(0x29a)]['on'](_0x380235(0x780),this[_0x380235(0x526)]));}[_0x4b066e(0x4f2)](_0x3c763d,_0x2e568c,_0x4a5064){const _0x29a18a=_0x4b066e;if(_0x2e568c==null)throw new _0x2c63fb(_0x29a18a(0x77f)+(_0x3c763d?_0x29a18a(0x64e)+_0x3c763d+'\x22':'')+_0x29a18a(0x831),_0x29a18a(0x571));this['_native']['call']('db',null,_0x29a18a(0x186),[_0x3c763d,_0x2e568c,!!_0x4a5064]);}async['changeEncryptionKey'](_0x58f007){const _0x16fabf=_0x4b066e;this[_0x16fabf(0x29b)]();const {env:env=null,to:_0xe51490}=_0x4b8cd1(_0x58f007),_0x3085c5=typeof _0xe51490===_0x16fabf(0x6d8),_0x2bcd57=_0x3085c5?await _0xe51490(env):_0xe51490;if(_0x2bcd57==null)throw _0x5b2ba6(_0x16fabf(0x885),'a\x2032-character\x20key\x20or\x20a\x20function\x20returning\x20one',_0x2bcd57);const _0x23d28c=this['_call']('db',null,_0x16fabf(0x2e0),[env,_0x2bcd57,_0x3085c5]);if(_0x3085c5){if(env==null)this[_0x16fabf(0x52f)][_0x16fabf(0x2a3)]=_0xe51490;else this[_0x16fabf(0x52f)][_0x16fabf(0x5b9)][_0x16fabf(0x328)](env,_0xe51490);}return _0x23d28c;}async['reencrypt'](_0x1ee8e7){const _0x3bb72e=_0x4b066e;this[_0x3bb72e(0x29b)]();const _0x585c29=_0x4b8cd1(_0x1ee8e7);if(!_0x585c29[_0x3bb72e(0x30b)])throw _0x5b2ba6(_0x3bb72e(0x796),_0x3bb72e(0x3b0),_0x585c29[_0x3bb72e(0x30b)]);let _0x2adf1f=_0x585c29['to'];const _0x514821=typeof _0x2adf1f===_0x3bb72e(0x6d8);if(_0x514821)_0x2adf1f=await _0x585c29['to'](_0x585c29[_0x3bb72e(0x30b)]);const _0x3c2ff7=await this[_0x3bb72e(0x199)](()=>this[_0x3bb72e(0x49e)]('db',null,_0x3bb72e(0x468),[_0x585c29['env'],'to'in _0x585c29?_0x2adf1f:undefined,_0x514821]));if(_0x514821)this[_0x3bb72e(0x52f)][_0x3bb72e(0x5b9)][_0x3bb72e(0x328)](_0x585c29[_0x3bb72e(0x30b)],_0x585c29['to']);return _0x3c2ff7;}async['open'](){const _0x6fb70a=_0x4b066e;if(this['state']===_0x58409e[_0x6fb70a(0x69c)])return;if(this[_0x6fb70a(0x41c)]!==_0x58409e[_0x6fb70a(0x59f)])throw new _0x2c63fb(_0x6fb70a(0x865),_0x6fb70a(0x645),{'state':this[_0x6fb70a(0x41c)]});this[_0x6fb70a(0x41c)]=_0x58409e[_0x6fb70a(0x1e5)],this['_bootLog']=[];try{try{await this[_0x6fb70a(0x709)](),await this[_0x6fb70a(0x199)](()=>this[_0x6fb70a(0x6bd)]['open']());}catch(_0x23c140){throw _0x2354a9(_0x23c140);}}catch(_0x43d4e8){this[_0x6fb70a(0x41c)]=_0x58409e[_0x6fb70a(0x5ee)],this[_0x6fb70a(0x560)]=null,this[_0x6fb70a(0x65c)]();throw _0x43d4e8;}this[_0x6fb70a(0x60a)]=!![],this[_0x6fb70a(0x41c)]=_0x58409e['STARTED'];try{this[_0x6fb70a(0x49e)]('db',null,'setHostPlugins',[this['plugins'][_0x6fb70a(0x82e)][_0x6fb70a(0x1a7)](_0x569e73=>_0x569e73[_0x6fb70a(0x277)]?.[_0x6fb70a(0x6fe)])[_0x6fb70a(0x852)](Boolean)],![]),await this['plugins'][_0x6fb70a(0x898)]();}catch(_0x21e72c){this[_0x6fb70a(0x41c)]=_0x58409e[_0x6fb70a(0x21a)];try{this[_0x6fb70a(0x6bd)][_0x6fb70a(0x5a1)]();}catch{}this['state']=_0x58409e['STOPPED'],this[_0x6fb70a(0x60a)]=![],this[_0x6fb70a(0x65c)]();throw _0x21e72c;}for(const _0x4ef352 of this[_0x6fb70a(0x49e)]('db',null,'envNames',[],![]))if(!_0x4ef352[_0x6fb70a(0x6c8)]('~'))this[_0x6fb70a(0x248)](_0x4ef352);try{if(this[_0x6fb70a(0x49e)]('db',null,_0x6fb70a(0x236),[_0x6fb70a(0x18b)],![])){this[_0x6fb70a(0x16e)]=this[_0x6fb70a(0x248)]('~log');const _0x57c337=new Set(this[_0x6fb70a(0x793)][_0x6fb70a(0x763)]);this[_0x6fb70a(0x515)]=this[_0x6fb70a(0x793)][_0x6fb70a(0x33c)](this['_logEnv'],this['id']);const _0x198d0b=[...this[_0x6fb70a(0x793)][_0x6fb70a(0x763)]]['find'](_0x3ba959=>!_0x57c337['has'](_0x3ba959)),_0x1e6ea2=this[_0x6fb70a(0x49e)]('db',null,_0x6fb70a(0x579),[],![]);for(const _0x370678 of(this['_bootLog']??[])['slice'](_0x1e6ea2))_0x198d0b?.(_0x370678);}}catch{}this[_0x6fb70a(0x560)]=null,this[_0x6fb70a(0x6bd)][_0x6fb70a(0x312)](()=>this[_0x6fb70a(0x5bc)][_0x6fb70a(0x536)]()),this[_0x6fb70a(0x5bc)][_0x6fb70a(0x898)]();}async['bootRuntimeDeclarations'](){const _0x44b449=_0x4b066e;return this[_0x44b449(0x406)]('db',null,_0x44b449(0x566),[]);}async[_0x4b066e(0x5a1)](){const _0x1f7d81=_0x4b066e;if(this[_0x1f7d81(0x41c)]===_0x58409e['STOPPED'])return;if(this[_0x1f7d81(0x41c)]!==_0x58409e[_0x1f7d81(0x69c)])throw new _0x2c63fb(_0x1f7d81(0x1fc),'INVALID_STATE',{'state':this[_0x1f7d81(0x41c)]});this['state']=_0x58409e[_0x1f7d81(0x21a)],this[_0x1f7d81(0x60a)]=![];let _0x1a2e08=null;if(this[_0x1f7d81(0x449)][_0x1f7d81(0x597)]['length'])try{await this[_0x1f7d81(0x449)]['close']();}catch(_0x32d85d){_0x1a2e08=_0x32d85d;}if(this[_0x1f7d81(0x63b)]){try{this['__adminRelay'][_0x1f7d81(0x86a)](),this[_0x1f7d81(0x63b)][_0x1f7d81(0x1c5)]();}catch{}this[_0x1f7d81(0x63b)]=null;}try{this[_0x1f7d81(0x2f7)]?.[_0x1f7d81(0x893)]?.();}catch{}try{await this['plugins']['stop']();}catch(_0xf1a1af){_0x1a2e08=_0xf1a1af;}for(const _0x14d773 of[...Map['prototype']['values'][_0x1f7d81(0x853)](this[_0x1f7d81(0x8a5)])]){try{await _0x14d773[_0x1f7d81(0x3e8)][_0x1f7d81(0x3fe)]();}catch{}try{await _0x14d773['engines'][_0x1f7d81(0x893)]();}catch{}}for(const _0x27c2bb of[()=>this[_0x1f7d81(0x5f3)]['stop'](),()=>this[_0x1f7d81(0x422)]['stop'](),()=>this[_0x1f7d81(0x492)]&&this[_0x1f7d81(0x492)]['stop']?.()]){try{await _0x27c2bb();}catch{}}const _0x339cc9=this[_0x1f7d81(0x66a)][_0x1f7d81(0x308)]??0x7530,_0x431028=[];for(const _0x3ed1cb of[...Map['prototype']['values'][_0x1f7d81(0x853)](this['_envs'])]){if(_0x3ed1cb[_0x1f7d81(0x601)]?.[_0x1f7d81(0x561)]?.[_0x1f7d81(0x221)]>0x0)_0x431028[_0x1f7d81(0x2fb)](_0x3ed1cb['queue']['stopAll'](_0x339cc9));}if(_0x431028[_0x1f7d81(0x6cf)]>0x0)await Promise[_0x1f7d81(0x795)](_0x431028);try{this[_0x1f7d81(0x515)]?.();}catch{}this['_detachLogSink']=null;try{await this[_0x1f7d81(0x53b)]['drain']();}catch{}this[_0x1f7d81(0x5bc)][_0x1f7d81(0x893)]();try{await this['_macro'](()=>this[_0x1f7d81(0x6bd)][_0x1f7d81(0x5a1)]());}catch(_0x4221de){_0x1a2e08=_0x1a2e08||_0x2354a9(_0x4221de);}this['state']=_0x58409e['STOPPED'],this[_0x1f7d81(0x65c)](),Map[_0x1f7d81(0x455)][_0x1f7d81(0x871)]['call'](this[_0x1f7d81(0x8a5)]);if(_0x1a2e08)throw _0x1a2e08;}['_teardownNative'](){const _0x4224cf=_0x4b066e;this[_0x4224cf(0x5bc)]['stop']();try{this['_native'][_0x4224cf(0x312)](null);}catch{}try{this[_0x4224cf(0x6bd)][_0x4224cf(0x70c)]();}catch{}this[_0x4224cf(0x80f)]=null,this[_0x4224cf(0x350)]=null,this[_0x4224cf(0x4c1)]=null,_0x485c28[_0x4224cf(0x85f)](this['_key']),_0x485c28[_0x4224cf(0x867)](this),_0x4eb66f['delete'](this[_0x4224cf(0x4b8)]);if(_0x485c28[_0x4224cf(0x7fb)](this)){const _0x22f7b4=[..._0x4eb66f[_0x4224cf(0x89c)]()][_0x4224cf(0x644)]();if(_0x22f7b4)_0x485c28['setKick'](()=>_0x22f7b4[_0x4224cf(0x5bc)][_0x4224cf(0x536)](),_0x22f7b4);else _0x485c28[_0x4224cf(0x404)](()=>{},null);}}get['id'](){return this['_call']('db',null,'id',[],![]);}[_0x4b066e(0x58f)](_0x4d4b4d){const _0x1ad61e=_0x4b066e;return this[_0x1ad61e(0x30b)]('default')[_0x1ad61e(0x58f)](_0x4d4b4d);}get[_0x4b066e(0x530)](){const _0x518b04=_0x4b066e;return this['_rootDb']['get'](_0x518b04(0x6df));}get[_0x4b066e(0x38a)](){const _0x477661=_0x4b066e;return this[_0x477661(0x5f3)][_0x477661(0x38a)];}get[_0x4b066e(0x628)](){const _0x2e4bf2=_0x4b066e;return this[_0x2e4bf2(0x5f3)][_0x2e4bf2(0x628)];}get[_0x4b066e(0x666)](){const _0xbfd9e=_0x4b066e;if(!this['_isOpen']||!this['_call']('db',null,'subsBuilt',[],![]))return undefined;if(!this['_subsV2Obj']){const _0x45ee4c=requireOkdbSubscriptionsStore(),_0x49411c=new _0x45ee4c(this,this[_0xbfd9e(0x66a)]&&this['options'][_0xbfd9e(0x2a7)]);_0x49411c['_sub']=this[_0xbfd9e(0x30b)](_0xbfd9e(0x6fc));const {compileFilter:_0x42054c}=requireOkdbQueryFilter(),_0xa68a56=(_0x1ecff0,_0x2bad1d)=>{if(_0x1ecff0==null)return![];try{return _0x42054c(_0x1ecff0)(_0x2bad1d);}catch{return![];}};this[_0xbfd9e(0x790)]={'store':_0x49411c,'router':{'_matches':_0xa68a56}};}return this['_subsV2Obj'];}get[_0x4b066e(0x311)](){const _0x1ff368=_0x4b066e;return this[_0x1ff368(0x437)];}get['formerIds'](){const _0x42189d=_0x4b066e;return this[_0x42189d(0x49e)]('db',null,_0x42189d(0x8a9),[],![]);}get['role'](){const _0xc09bae=_0x4b066e;return{...this[_0xc09bae(0x49e)]('db',null,'role',[],![])};}get[_0x4b066e(0x280)](){const _0x1ff382=_0x4b066e;return require$$29[_0x1ff382(0x280)];}get[_0x4b066e(0x6ef)](){const _0x4a4bde=_0x4b066e;return this[_0x4a4bde(0x49e)]('db',null,_0x4a4bde(0x4ba),[],![]);}get['info'](){const _0x5ef461=_0x4b066e;return this[_0x5ef461(0x49e)]('db',null,_0x5ef461(0x7c6),[],![]);}['getResolvedOptions'](){const _0x3dfd82=_0x4b066e;return this[_0x3dfd82(0x49e)]('db',null,_0x3dfd82(0x48a),[],![]);}[_0x4b066e(0x837)](){const _0x166691=_0x4b066e;return this[_0x166691(0x49e)]('db',null,_0x166691(0x837),[],![]);}async[_0x4b066e(0x2e4)](_0x2db429){const _0x39033e=_0x4b066e;this[_0x39033e(0x29b)](),this['_call']('db',null,_0x39033e(0x2e4),[_0x2db429],![]);}[_0x4b066e(0x263)](){const _0x2a940d=_0x4b066e,_0x508454=Date[_0x2a940d(0x89e)]();if(this[_0x2a940d(0x3f3)]&&_0x508454-this[_0x2a940d(0x3f3)]['at']<0xfa)return this[_0x2a940d(0x3f3)][_0x2a940d(0x820)];const _0x291c75=this['_call']('db',null,'pressure',[],![]);return this[_0x2a940d(0x3f3)]={'at':_0x508454,'value':_0x291c75},_0x291c75;}['_assertOpen'](){const _0x2159cf=_0x4b066e;if(!this[_0x2159cf(0x60a)])throw new _0x2c63fb(_0x2159cf(0x1fc),_0x2159cf(0x645),{'state':this[_0x2159cf(0x41c)]});}get[_0x4b066e(0x827)](){const _0x5329c8=_0x4b066e;if(this[_0x5329c8(0x41c)]===_0x58409e['STOPPED']||!this[_0x5329c8(0x60a)])return null;if(this[_0x5329c8(0x49e)]('db',null,_0x5329c8(0x178),[],![])==null)return null;if(!this['_busFacade']){const _0x4c20f4=this;this['_busFacade']={get 'state'(){const _0x4a3f66=_0x5329c8;return _0x4c20f4[_0x4a3f66(0x49e)]('db',null,'busState',[],![]);},get 'magic'(){const _0x279ec2=_0x5329c8;return Buffer[_0x279ec2(0x170)](_0x279ec2(0x75b)+_0x4c20f4['id']);},get 'isRunning'(){const _0x396e69=_0x5329c8;return _0x4c20f4[_0x396e69(0x49e)]('db',null,_0x396e69(0x178),[],![])==='started';},'emit'(_0x2ddee1,_0xc065ab=''){const _0x4e60bf=_0x5329c8;_0x4c20f4[_0x4e60bf(0x49e)]('db',null,_0x4e60bf(0x296),[_0x2ddee1,String(_0xc065ab)],![]);}};}return this[_0x5329c8(0x4d5)];}[_0x4b066e(0x16b)](_0xffa8d4,_0x262321){const _0x2634db=_0x4b066e;this[_0x2634db(0x827)]?.[_0x2634db(0x6d6)](_0x2634db(0x1d3),JSON[_0x2634db(0x4d2)]({'kind':'reconcile','scope':_0xffa8d4,'key':_0x262321}));}get[_0x4b066e(0x238)](){const _0x2fce07=_0x4b066e;return this[_0x2fce07(0x6dc)]||(this['_locks']=new(requireLock())[(_0x2fce07(0x828))](this,_0x2fce07(0x8a3),_0x2fce07(0x26a)));}get[_0x4b066e(0x895)](){const _0x4e694b=_0x4b066e;return this[_0x4e694b(0x851)]?this[_0x4e694b(0x851)]['db']:undefined;}get[_0x4b066e(0x4dd)](){const _0x1ea827=_0x4b066e,_0xe1ba02=this[_0x1ea827(0x851)]?.[_0x1ea827(0x3e8)];if(!_0xe1ba02)return null;const _0x7940dd=_0xe1ba02['list']()[_0x1ea827(0x21c)](_0x412b0b=>_0x412b0b['meta']?.[_0x1ea827(0x6fe)]===_0x1ea827(0x46b));return _0x7940dd?_0xe1ba02[_0x1ea827(0x1c1)](_0x7940dd['id'],_0x7940dd[_0x1ea827(0x4bd)]):null;}get[_0x4b066e(0x851)](){const _0x1b4ba4=_0x4b066e;return this[_0x1b4ba4(0x60a)]?this[_0x1b4ba4(0x8a5)]['get'](_0x1b4ba4(0x8a3)):undefined;}[_0x4b066e(0x248)](_0x158cc0){const _0x48761b=_0x4b066e;let _0x379107=Map[_0x48761b(0x455)][_0x48761b(0x63c)][_0x48761b(0x853)](this[_0x48761b(0x8a5)],_0x158cc0);if(!_0x379107){_0x379107=new _0x2f4b08(this,_0x158cc0),Map[_0x48761b(0x455)]['set'][_0x48761b(0x853)](this[_0x48761b(0x8a5)],_0x158cc0,_0x379107);if(_0x158cc0===_0x48761b(0x822))this[_0x48761b(0x890)]=_0x379107;}return _0x379107;}[_0x4b066e(0x30b)](_0x15e703=_0x4b066e(0x822)){const _0x46bf23=_0x4b066e,_0x3e5906=this[_0x46bf23(0x8a5)][_0x46bf23(0x63c)](_0x15e703);if(_0x3e5906)return _0x3e5906;if(this['_isOpen']&&this['_call']('db',null,'hasEnv',[_0x15e703],![]))return this[_0x46bf23(0x248)](_0x15e703);throw new _0x2c63fb(_0x46bf23(0x2f3)+_0x15e703+_0x46bf23(0x738),'ENV_NOT_FOUND');}get['default'](){const _0x49de7e=_0x4b066e;return this[_0x49de7e(0x30b)](_0x49de7e(0x822));}get[_0x4b066e(0x4fd)](){const _0x295e24=_0x4b066e;return this[_0x295e24(0x8a5)][_0x295e24(0x63c)](_0x295e24(0x822))??this[_0x295e24(0x890)];}get[_0x4b066e(0x6be)](){const _0x3fee0d=_0x4b066e;return this[_0x3fee0d(0x4fd)][_0x3fee0d(0x6be)];}get[_0x4b066e(0x601)](){const _0x22f797=_0x4b066e;return this[_0x22f797(0x4fd)][_0x22f797(0x601)];}[_0x4b066e(0x2a6)](_0x106f3a){const _0x46a2bd=_0x4b066e;if(!this[_0x46a2bd(0x60a)])return null;return this[_0x46a2bd(0x49e)]('db',null,_0x46a2bd(0x533),[_0x106f3a],![])?{'ref'(){},'unref'(){}}:null;}get[_0x4b066e(0x3ad)](){return this['_timerHandle']('readerCheck');}[_0x4b066e(0x625)](){const _0x32cfde=_0x4b066e;return this[_0x32cfde(0x49e)]('db',null,_0x32cfde(0x5fb),[],!![]);}get['_licenseInterval'](){const _0x35e543=_0x4b066e;return this[_0x35e543(0x2a6)](_0x35e543(0x61d));}get[_0x4b066e(0x42b)](){const _0x454e2c=_0x4b066e;return this[_0x454e2c(0x2a6)]('writerWatchdog');}get['_hlc'](){const _0x22c33a=_0x4b066e;return this[_0x22c33a(0x30b)](_0x22c33a(0x822))['_hlc'];}get[_0x4b066e(0x268)](){const _0x2e452f=_0x4b066e;throw new _0x2c63fb(_0x2e452f(0x374),_0x2e452f(0x33f));}get['processor'](){const _0x18c577=_0x4b066e;return this[_0x18c577(0x4fd)][_0x18c577(0x3e8)];}get['views'](){const _0x1eabb9=_0x4b066e;return this[_0x1eabb9(0x4fd)][_0x1eabb9(0x62a)];}async['createEnvironment'](_0x23c085,_0x36a4d3={}){const _0x9476b2=_0x4b066e;this[_0x9476b2(0x29b)]();if(_0x36a4d3&&typeof _0x36a4d3['encryptionKey']==='function'){const _0x4f6cad=_0x36a4d3[_0x9476b2(0x4e9)];this['_setKey'](_0x23c085,await _0x4f6cad(_0x23c085),!![]),this[_0x9476b2(0x52f)][_0x9476b2(0x5b9)]['set'](_0x23c085,_0x4f6cad),_0x36a4d3={..._0x36a4d3,'encryptionKey':!![]};}return this[_0x9476b2(0x49e)]('db',null,_0x9476b2(0x6ad),[_0x23c085,_0x36a4d3]),this[_0x9476b2(0x248)](_0x23c085);}async[_0x4b066e(0x654)](_0x3cf8f2){const _0x34e365=_0x4b066e;if(!this[_0x34e365(0x60a)])throw new _0x2c63fb('Cannot\x20openEnv(\x22'+_0x3cf8f2+_0x34e365(0x771),_0x34e365(0x645));return this[_0x34e365(0x49e)]('db',null,_0x34e365(0x654),[_0x3cf8f2]),this[_0x34e365(0x248)](_0x3cf8f2);}get[_0x4b066e(0x794)](){const _0x1da724=_0x4b066e;if(!this['__adminRelay']&&this[_0x1da724(0x60a)]){const _0x48941b=requireOkdbRelay(),_0x4c3da6=new _0x48941b(this,this[_0x1da724(0x66a)]?.[_0x1da724(0x593)]?.[_0x1da724(0x6b3)]??{});_0x4c3da6['attach'](),_0x4c3da6[_0x1da724(0x504)]=!![],this[_0x1da724(0x63b)]=_0x4c3da6;}return this[_0x1da724(0x63b)]??null;}set[_0x4b066e(0x794)](_0x208e63){const _0x115ce8=_0x4b066e;this[_0x115ce8(0x63b)]=_0x208e63;}get[_0x4b066e(0x797)](){const _0x117da9=_0x4b066e;let _0x2de399=0x0;if(this[_0x117da9(0x60a)])for(const [_0x22f62b]of Map[_0x117da9(0x455)][_0x117da9(0x72a)]['call'](this[_0x117da9(0x8a5)])){try{_0x2de399+=this[_0x117da9(0x49e)](_0x117da9(0x7c0),_0x22f62b,'gateQuanta',[],![])||0x0;}catch{}}return{'total':_0x2de399,'maxObserved':_0x2de399>0x0?0x1:0x0,'inFlight':0x0};}async[_0x4b066e(0x7e2)](_0xd803f7){const _0x5d340b=_0x4b066e,_0x561835=this[_0x5d340b(0x8a5)][_0x5d340b(0x63c)](_0xd803f7);if(_0x561835)return _0x561835;if(!this['_call']('db',null,_0x5d340b(0x236),[_0xd803f7],![]))throw new Error('okdb._openEnvLazy:\x20env\x20\x22'+_0xd803f7+_0x5d340b(0x854));return this[_0x5d340b(0x654)](_0xd803f7);}async[_0x4b066e(0x1fe)](_0x511c4b){const _0x59fa26=_0x4b066e,_0x33d7da=this[_0x59fa26(0x49e)]('db',null,_0x59fa26(0x761),[_0x511c4b]);return this[_0x59fa26(0x8a5)][_0x59fa26(0x82f)](_0x511c4b),_0x33d7da;}async[_0x4b066e(0x1d0)](_0x15b17c,_0x1acd37={}){const _0x1371e4=_0x4b066e;this[_0x1371e4(0x29b)]();const _0x5b5d06=this[_0x1371e4(0x49e)]('db',null,_0x1371e4(0x1d0),[_0x15b17c,_0x1acd37]);return this[_0x1371e4(0x8a5)][_0x1371e4(0x82f)](_0x15b17c),_0x5b5d06;}static get[_0x4b066e(0x6fd)](){const _0x12c0ef=_0x4b066e;return _0x30c87e[_0x12c0ef(0x6fd)];}static get['KNOWN_OPTIONS'](){return _0x30c87e['KNOWN_OPTIONS'];}static get['_OPTION_HINTS'](){const _0x9a524a=_0x4b066e;return _0x30c87e[_0x9a524a(0x647)];}static async[_0x4b066e(0x7fe)](_0x50250e,_0x78fc1f){const _0x4bd33f=_0x4b066e;return _0x12e39f('db',_0x4bd33f(0x7fe),[_0x50250e,_0x78fc1f]);}static[_0x4b066e(0x1a2)](_0x49b56e){return _0x12e39f('db','reidentify',[_0x49b56e]);}static[_0x4b066e(0x6fb)](_0x730034,_0x317a8c){const _0xac7827=_0x4b066e;_0x12e39f('views',_0xac7827(0x6fb),[_0x730034,_0x317a8c]);}static[_0x4b066e(0x68c)](_0x53e2ee,_0xd2ed42){const _0x3187cf=_0x4b066e;_0x12e39f(_0x3187cf(0x62a),_0x3187cf(0x68c),[_0x53e2ee,_0xd2ed42]);}static[_0x4b066e(0x294)](){}['equal'](_0x3baf04,_0x935d94){const _0x2e33d6=_0x4b066e;return require$$16[_0x2e33d6(0x757)](_0x3baf04,_0x935d94);}}_0x40c6a4[_0x4b066e(0x477)]=_0x30e045,Object[_0x4b066e(0x79d)](_0x40c6a4,_0x4b066e(0x4eb),{'get'(){const _0x4e8fb7=_0x4b066e;return _0x40c6a4[_0x4e8fb7(0x2dc)]||(_0x40c6a4[_0x4e8fb7(0x2dc)]=new Set());},'set'(_0x64e622){const _0x16de87=_0x4b066e;_0x40c6a4[_0x16de87(0x2dc)]=_0x64e622;try{_0x12e39f('db',_0x16de87(0x2e1),[]);}catch{}},'configurable':!![]});for(const _0x3a0dc2 of[_0x4b066e(0x7f7),'txn',_0x4b066e(0x27f),_0x4b066e(0x88e),'patch',_0x4b066e(0x740),_0x4b066e(0x42f),'get',_0x4b066e(0x791),_0x4b066e(0x2ec),_0x4b066e(0x3fa),_0x4b066e(0x618),_0x4b066e(0x7d2),_0x4b066e(0x436),_0x4b066e(0x587),'getIndex',_0x4b066e(0x2c0),_0x4b066e(0x490),_0x4b066e(0x665),_0x4b066e(0x181),_0x4b066e(0x629),'registerType','ensureType','ensure',_0x4b066e(0x2d0),_0x4b066e(0x3c7),_0x4b066e(0x195),_0x4b066e(0x7b7),_0x4b066e(0x2d8),_0x4b066e(0x764),_0x4b066e(0x219),'indexReady',_0x4b066e(0x2ef),_0x4b066e(0x43b),_0x4b066e(0x7e9),_0x4b066e(0x4ee),'getClock',_0x4b066e(0x267),_0x4b066e(0x397),'getTTL',_0x4b066e(0x483),_0x4b066e(0x6f7),_0x4b066e(0x5cc),_0x4b066e(0x81b),_0x4b066e(0x669),_0x4b066e(0x60f),_0x4b066e(0x8a4),_0x4b066e(0x3c2),_0x4b066e(0x380),'now']){_0x40c6a4[_0x4b066e(0x455)][_0x3a0dc2]=function(..._0x1e7eb0){const _0x3cc9ba=_0x4b066e,_0x50de71=this['env'](_0x3cc9ba(0x822));return _0x50de71[_0x3a0dc2](..._0x1e7eb0);};}function _0x104dd6(_0x335a2f){const _0x4be3e0=_0x4b066e,_0xe8d035=_0x5df7e7=>()=>{const _0x4b3c3e=_0x3ebb;throw new Error('db.processors.'+_0x5df7e7+_0x4b3c3e(0x284));};return{'process':_0xe8d035(_0x4be3e0(0x7c3)),'processRest':_0xe8d035(_0x4be3e0(0x7e8)),'processEverything':_0xe8d035('processEverything()'),async 'start'(){const _0x3c7e89=_0x4be3e0;return _0x335a2f[_0x3c7e89(0x49e)]('db',null,'processorsStart',[]);},async 'stop'(){const _0x15366c=_0x4be3e0;return _0x335a2f[_0x15366c(0x49e)]('db',null,_0x15366c(0x3b7),[]);},'status'(){const _0x5af15e=_0x4be3e0;return _0x335a2f[_0x5af15e(0x49e)]('db',null,_0x5af15e(0x66b),[],![]);},get 'participating'(){const _0x3519aa=_0x4be3e0;return _0x335a2f[_0x3519aa(0x49e)]('db',null,_0x3519aa(0x41d),[],![]);},get '_participate'(){const _0x1a3edb=_0x4be3e0;return _0x335a2f[_0x1a3edb(0x49e)]('db',null,'processorsParticipating',[],![]);}};}function _0x12e39f(_0x415fbc,_0xfcc5d6,_0x4e8a8a){_0x46d76c();try{return _0x24f469()['callStatic'](_0x415fbc,_0xfcc5d6,_0x4e8a8a);}catch(_0x27b89f){throw _0x2354a9(_0x27b89f);}}_0x590e4f[_0x4b066e(0x3be)]=_0x40c6a4,_0x590e4f[_0x4b066e(0x3be)]['staticCall']=_0x12e39f,_0x590e4f['exports'][_0x4b066e(0x511)]=_0x40c6a4,_0x590e4f['exports'][_0x4b066e(0x477)]=_0x30e045,_0x590e4f[_0x4b066e(0x3be)][_0x4b066e(0x822)]=_0x40c6a4,Object[_0x4b066e(0x79d)](_0x590e4f[_0x4b066e(0x3be)],_0x4b066e(0x73a),{'get':()=>require$$1$1[_0x4b066e(0x870)]?.()??null,'enumerable':![],'configurable':!![]});}(lib),lib[_0x566dfe(0x3be)];}var libExports=requireLib(),index=getDefaultExportFromCjs(libExports);module[_0x2ec26e(0x3be)]=index;