@kedem/okdb 3.0.1 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +76 -0
- package/README.md +9 -5
- package/docs/auth-and-sync.md +1 -1
- package/docs/change-log.md +1 -1
- package/docs/data-model.md +3 -1
- package/docs/encryption.md +132 -0
- package/docs/files.md +11 -9
- package/docs/functions.md +5 -3
- package/docs/getting-started.md +0 -4
- package/docs/http-api.md +0 -2
- package/docs/licensing.md +2 -2
- package/docs/manifest.json +2 -1
- package/docs/migration.md +1 -1
- package/docs/pipelines.md +21 -20
- package/docs/queue.md +0 -2
- package/docs/sync.md +2 -2
- package/docs/time-machine.md +19 -10
- package/docs/upgrade-2.0.md +1 -1
- package/docs/views.md +47 -32
- package/native/linux-x64-gnu/okdb-node.linux-x64-gnu.node +0 -0
- package/okdb-native.js +1 -1
- package/package.json +1 -1
- package/public/features/files/parts/files-blob-status.ok.js +1 -1
package/okdb-native.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x36292f=_0x303e;(function(_0x28740d,_0x272819){const _0x51bd0a=_0x303e,_0x16b061=_0x28740d();while(!![]){try{const _0x47a981=parseInt(_0x51bd0a(0x5fe))/0x1*(parseInt(_0x51bd0a(0x190))/0x2)+-parseInt(_0x51bd0a(0x1d4))/0x3+parseInt(_0x51bd0a(0x632))/0x4+-parseInt(_0x51bd0a(0x680))/0x5*(parseInt(_0x51bd0a(0x1d0))/0x6)+parseInt(_0x51bd0a(0x3fe))/0x7*(-parseInt(_0x51bd0a(0x39c))/0x8)+parseInt(_0x51bd0a(0x39d))/0x9*(parseInt(_0x51bd0a(0x62c))/0xa)+parseInt(_0x51bd0a(0x2fd))/0xb*(parseInt(_0x51bd0a(0x3b3))/0xc);if(_0x47a981===_0x272819)break;else _0x16b061['push'](_0x16b061['shift']());}catch(_0x3f7fc5){_0x16b061['push'](_0x16b061['shift']());}}}(_0x250b,0xd4416));var require$$0$6=require('node:events'),require$$1$1=require('./native-loader.js'),require$$0=require(_0x36292f(0x269)),require$$3=require('node:path'),require$$0$2=require('node:crypto'),require$$0$1=require('node:perf_hooks'),require$$16=require('node:util'),require$$0$3=require('node:http'),require$$1=require('node:stream'),require$$2=require('node:cluster'),require$$18=require(_0x36292f(0x5b0)),require$$0$4=require(_0x36292f(0x7e7)),require$$0$5=require('sift');function getDefaultExportFromCjs(_0x750dbb){const _0x2e18f4=_0x36292f;return _0x750dbb&&_0x750dbb[_0x2e18f4(0x571)]&&Object[_0x2e18f4(0x556)]['hasOwnProperty'][_0x2e18f4(0x54b)](_0x750dbb,_0x2e18f4(0x478))?_0x750dbb['default']:_0x750dbb;}var lib={'exports':{}},okdbError,hasRequiredOkdbError;function requireOkdbError(){if(hasRequiredOkdbError)return okdbError;hasRequiredOkdbError=0x1;class _0x3da9d9 extends Error{constructor(_0x5083c1,_0x5db191,_0x5146fb={}){const _0x1ff7d0=_0x303e;super(_0x5083c1),this['name']='OKDBError',this['code']=_0x5db191,this[_0x1ff7d0(0x184)]=_0x5146fb,_0x5146fb[_0x1ff7d0(0x6c9)]&&(this[_0x1ff7d0(0x6c9)]=_0x5146fb[_0x1ff7d0(0x6c9)]),Error[_0x1ff7d0(0x14f)](this,this[_0x1ff7d0(0x203)]);}}class _0x159c69 extends _0x3da9d9{constructor(_0x33a541,_0x2f4e21,_0x2bc548,_0x2093df){const _0x457528=_0x303e;super('Version\x20mismatch\x20for\x20'+_0x33a541+'@'+_0x2f4e21+_0x457528(0x356)+_0x2bc548+_0x457528(0x7a4)+_0x2093df,'VERSION_MISMATCH',{'type':_0x33a541,'key':_0x2f4e21,'expectedVersion':_0x2bc548,'actualVersion':_0x2093df}),this['name']=_0x457528(0x52f);}}class _0x372587 extends _0x3da9d9{constructor(_0x531716,_0x53b988){const _0x538d10=_0x303e;super(_0x531716+'@'+_0x53b988+_0x538d10(0x21c),_0x538d10(0x371),{'type':_0x531716,'key':_0x53b988}),this[_0x538d10(0x6bb)]=_0x538d10(0x10e);}}class _0x450cc3 extends _0x3da9d9{constructor(_0x455051,_0x27144d){const _0x76cd99=_0x303e;super(_0x455051+'@'+_0x27144d+_0x76cd99(0x5e9),'ALREADY_EXISTS',{'type':_0x455051,'key':_0x27144d}),this[_0x76cd99(0x6bb)]='OKDBAlreadyExistsError';}}class _0x3a4c0b extends _0x3da9d9{constructor(_0x2dd7a4,_0x3189b0){const _0xbed5a5=_0x303e,_0x2a7bf6=typeof _0x3189b0;super(_0xbed5a5(0x7c2)+_0x2dd7a4+_0xbed5a5(0x7ae)+_0x2a7bf6+'.\x20Only\x20primitives,\x20null,\x20Buffers,\x20and\x20arrays\x20are\x20allowed.\x20Got:\x20'+_0x3189b0,_0xbed5a5(0x3db),{'index':_0x2dd7a4,'key':_0x3189b0,'keyType':_0x2a7bf6}),this[_0xbed5a5(0x6bb)]=_0xbed5a5(0x7f1);}}class _0xb128cc extends _0x3da9d9{constructor(_0x97b86c){const _0x4f1866=_0x303e,_0x358412=typeof _0x97b86c;super('Invalid\x20primary\x20key\x20type:\x20'+_0x358412+_0x4f1866(0x246)+_0x97b86c,_0x4f1866(0x3f5),{'key':_0x97b86c,'keyType':_0x358412}),this[_0x4f1866(0x6bb)]=_0x4f1866(0x481);}}class _0x4acd72 extends _0x3da9d9{constructor(_0x3da585){const _0x21f275=_0x303e;super('Type\x20\x27'+_0x3da585+_0x21f275(0x72c),_0x21f275(0x1ce),{'type':_0x3da585}),this[_0x21f275(0x6bb)]='OKDBTypeNotRegisteredError';}}class _0x40c8d0 extends _0x3da9d9{constructor(_0x4394c2){const _0x4d4d55=_0x303e;super(_0x4d4d55(0x5b6)+_0x4394c2+_0x4d4d55(0x1f3),_0x4d4d55(0x5bf),{'type':_0x4394c2}),this[_0x4d4d55(0x6bb)]='OKDBTypeAlreadyRegisteredError';}}class _0x181656 extends _0x3da9d9{constructor(_0x6c5f43,_0x5e5c06){const _0xe5a739=_0x303e;super(_0xe5a739(0x498)+_0x5e5c06+_0xe5a739(0x4b3)+_0x6c5f43+_0xe5a739(0x72c),_0xe5a739(0x5d0),{'type':_0x6c5f43,'index':_0x5e5c06}),this[_0xe5a739(0x6bb)]=_0xe5a739(0x421);}}class _0x44c799 extends _0x3da9d9{constructor(_0x52437f,_0xf5b91e){const _0x49ed3d=_0x303e;super(_0x49ed3d(0x498)+_0xf5b91e+_0x49ed3d(0x4b3)+_0x52437f+'\x27\x20is\x20already\x20registered','INDEX_ALREADY_REGISTERED',{'type':_0x52437f,'index':_0xf5b91e}),this[_0x49ed3d(0x6bb)]='OKDBIndexAlreadyRegisteredError';}}class _0x1e296b extends _0x3da9d9{constructor(_0x368ce7,_0x131314={}){const _0x751825=_0x303e;super(_0x368ce7,'INVALID_VALUE',_0x131314),this['name']=_0x751825(0x397);}}class _0x2d5ff5 extends _0x3da9d9{constructor(_0x16a737,_0x2bff1e,_0x3054bd,_0x2655cf,_0x531bac){const _0x1b2a7a=_0x303e;super('Unique\x20constraint\x20violated\x20on\x20'+_0x16a737+'@'+_0x2bff1e+':\x20key\x20['+_0x3054bd+_0x1b2a7a(0x14d)+_0x2655cf+_0x1b2a7a(0x39a)+_0x531bac+'\x27',_0x1b2a7a(0x70f),{'type':_0x16a737,'index':_0x2bff1e,'indexKey':_0x3054bd,'existingKey':_0x2655cf,'conflictingKey':_0x531bac}),this[_0x1b2a7a(0x6bb)]=_0x1b2a7a(0x339);}}class _0x34504b extends _0x3da9d9{constructor(_0xa10a6f,_0x4d2e61,_0x5cacc4){const _0x3cda5f=_0x303e;super(_0x3cda5f(0x58d)+_0xa10a6f+'@'+_0x4d2e61,_0x3cda5f(0x4d8),{'type':_0xa10a6f,'key':_0x4d2e61,'errors':_0x5cacc4}),this['name']=_0x3cda5f(0x7fe),this[_0x3cda5f(0x74e)]=_0xa10a6f,this['key']=_0x4d2e61,this[_0x3cda5f(0x472)]=_0x5cacc4;}}class _0x4e6df5 extends _0x3da9d9{constructor(_0x2d5b84,_0x5484c7){const _0x41d662=_0x303e;super(_0x41d662(0x657)+_0x2d5b84+':\x20'+_0x5484c7[_0x41d662(0x1e1)]+'\x20documents\x20fail\x20validation','SCHEMA_COLLECTION_INVALID',{'type':_0x2d5b84,'failures':_0x5484c7}),this[_0x41d662(0x6bb)]=_0x41d662(0x175),this[_0x41d662(0x74e)]=_0x2d5b84,this[_0x41d662(0x170)]=_0x5484c7;}}class _0x2cee14 extends _0x3da9d9{constructor(_0x1760ca,_0x34081a,_0x27e43a,_0x3baffe,_0x3560d1){const _0x3ec448=_0x303e;super(_0x3ec448(0x569)+_0x1760ca+'@'+_0x34081a+'.'+_0x27e43a+'\x20references\x20'+_0x3baffe+'@'+_0x3560d1+_0x3ec448(0x59f),_0x3ec448(0x21a),{'sourceType':_0x1760ca,'sourceKey':_0x34081a,'fieldPath':_0x27e43a,'targetType':_0x3baffe,'targetKey':_0x3560d1}),this[_0x3ec448(0x6bb)]=_0x3ec448(0x342),this[_0x3ec448(0x52c)]=_0x1760ca,this[_0x3ec448(0x7bb)]=_0x34081a,this['fieldPath']=_0x27e43a,this['targetType']=_0x3baffe,this[_0x3ec448(0x58f)]=_0x3560d1;}}class _0x1cb207 extends _0x3da9d9{constructor(_0x6a4c24,_0x24e4c7,_0x3ba4fb){const _0x2631c4=_0x303e;super(_0x2631c4(0x136)+_0x6a4c24+'@'+_0x24e4c7+':\x20'+_0x3ba4fb[_0x2631c4(0x1e1)]+'\x20document(s)\x20reference\x20it\x20with\x20onDelete:restrict',_0x2631c4(0x3f0),{'targetType':_0x6a4c24,'targetKey':_0x24e4c7,'references':_0x3ba4fb}),this[_0x2631c4(0x6bb)]=_0x2631c4(0x49a),this[_0x2631c4(0x1e4)]=_0x6a4c24,this[_0x2631c4(0x58f)]=_0x24e4c7,this[_0x2631c4(0x524)]=_0x3ba4fb;}}class _0x10faa3 extends _0x3da9d9{constructor(_0x22141a,_0x595ef3,_0x3b4827){const _0x1d056e=_0x303e;super(_0x1d056e(0x1ad)+_0x595ef3+_0x1d056e(0x5d3)+_0x22141a+'\x22\x20is\x20used\x20by:\x20'+_0x3b4827[_0x1d056e(0x2fe)](_0x3d99c2=>_0x3d99c2[_0x1d056e(0x560)]+':'+_0x3d99c2[_0x1d056e(0x6bb)])['join'](',\x20'),_0x1d056e(0x7e4),{'type':_0x22141a,'index':_0x595ef3,'usedBy':_0x3b4827}),this['name']=_0x1d056e(0x6ae);}}return okdbError={'OKDBError':_0x3da9d9,'OKDBVersionMismatchError':_0x159c69,'OKDBNotFoundError':_0x372587,'OKDBAlreadyExistsError':_0x450cc3,'OKDBInvalidIndexKeyError':_0x3a4c0b,'OKDBInvalidPrimaryKeyError':_0xb128cc,'OKDBTypeNotRegisteredError':_0x4acd72,'OKDBTypeAlreadyRegisteredError':_0x40c8d0,'OKDBIndexNotRegisteredError':_0x181656,'OKDBIndexAlreadyRegisteredError':_0x44c799,'OKDBInvalidValueError':_0x1e296b,'OKDBUniqueConstraintError':_0x2d5ff5,'OKDBSchemaValidationError':_0x34504b,'OKDBSchemaCollectionError':_0x4e6df5,'OKDBForeignKeyError':_0x2cee14,'OKDBForeignKeyDeleteError':_0x1cb207,'OKDBIndexHasConsumersError':_0x10faa3},okdbError;}var errors,hasRequiredErrors;function requireErrors(){const _0x905e55=_0x36292f;if(hasRequiredErrors)return errors;hasRequiredErrors=0x1;const _0xbc6d1d=requireOkdbError(),_0x5d05b2={'VERSION_MISMATCH':_0xbc6d1d[_0x905e55(0x52f)],'NOT_FOUND':_0xbc6d1d['OKDBNotFoundError'],'ALREADY_EXISTS':_0xbc6d1d['OKDBAlreadyExistsError'],'INVALID_INDEX_KEY':_0xbc6d1d['OKDBInvalidIndexKeyError'],'INVALID_PRIMARY_KEY':_0xbc6d1d[_0x905e55(0x481)],'TYPE_NOT_REGISTERED':_0xbc6d1d['OKDBTypeNotRegisteredError'],'TYPE_ALREADY_REGISTERED':_0xbc6d1d[_0x905e55(0x731)],'INDEX_NOT_REGISTERED':_0xbc6d1d[_0x905e55(0x421)],'INDEX_ALREADY_REGISTERED':_0xbc6d1d[_0x905e55(0x457)],'INVALID_VALUE':_0xbc6d1d['OKDBInvalidValueError'],'UNIQUE_CONSTRAINT':_0xbc6d1d[_0x905e55(0x339)],'SCHEMA_VALIDATION_FAILED':_0xbc6d1d['OKDBSchemaValidationError'],'SCHEMA_COLLECTION_INVALID':_0xbc6d1d['OKDBSchemaCollectionError'],'FOREIGN_KEY_VIOLATION':_0xbc6d1d[_0x905e55(0x342)],'FOREIGN_KEY_DELETE_RESTRICTED':_0xbc6d1d['OKDBForeignKeyDeleteError'],'INDEX_HAS_CONSUMERS':_0xbc6d1d['OKDBIndexHasConsumersError']};class _0x533da7 extends _0xbc6d1d[_0x905e55(0x3b7)]{constructor(_0x4550a0,_0x25648f){const _0xe34225=_0x905e55;super(_0x4550a0+_0xe34225(0x4e3)+(_0x25648f?'\x20('+_0x25648f+')':''),_0xe34225(0x324),{'feature':_0x4550a0}),this['name']=_0xe34225(0x63d);}}function _0x23e253(_0x22df90){const _0x25300f=_0x905e55;if(!_0x22df90||typeof _0x22df90!=='object'||!_0x22df90[_0x25300f(0x122)])return _0x22df90;delete _0x22df90[_0x25300f(0x122)];const _0x2accad=_0x22df90[_0x25300f(0x6cb)];if(_0x2accad===_0x25300f(0x3b0)||_0x2accad===_0x25300f(0x700)||_0x2accad==='RangeError'){const _0x5da523=_0x2accad===_0x25300f(0x700)?TypeError[_0x25300f(0x556)]:_0x2accad===_0x25300f(0x51e)?RangeError[_0x25300f(0x556)]:Error[_0x25300f(0x556)];Object['setPrototypeOf'](_0x22df90,_0x5da523),_0x22df90['name']=_0x2accad;if(_0x22df90[_0x25300f(0x184)]&&_0x22df90[_0x25300f(0x184)][_0x25300f(0x327)]!==undefined)_0x22df90[_0x25300f(0x327)]=_0x22df90[_0x25300f(0x184)][_0x25300f(0x327)];return delete _0x22df90[_0x25300f(0x6cb)],delete _0x22df90['details'],_0x22df90;}const _0x1fd9da=_0x5d05b2[_0x2accad];Object[_0x25300f(0x1dc)](_0x22df90,(_0x1fd9da||_0xbc6d1d[_0x25300f(0x3b7)])[_0x25300f(0x556)]),_0x22df90['name']=_0x1fd9da?_0x1fd9da[_0x25300f(0x6bb)][_0x25300f(0x620)](/^OKDB/,'OKDB'):_0x25300f(0x3b7);const _0x23f856=_0x22df90['details']||{};_0x2accad==='SCHEMA_VALIDATION_FAILED'&&(_0x22df90['type']=_0x23f856[_0x25300f(0x74e)],_0x22df90[_0x25300f(0x119)]=_0x23f856['key'],_0x22df90[_0x25300f(0x472)]=_0x23f856['errors']);_0x2accad===_0x25300f(0x7b3)&&(_0x22df90[_0x25300f(0x74e)]=_0x23f856[_0x25300f(0x74e)],_0x22df90[_0x25300f(0x170)]=_0x23f856[_0x25300f(0x170)]);if(_0x2accad==='FOREIGN_KEY_VIOLATION'){for(const _0x22b59b of[_0x25300f(0x52c),'sourceKey',_0x25300f(0x641),_0x25300f(0x1e4),_0x25300f(0x58f)])_0x22df90[_0x22b59b]=_0x23f856[_0x22b59b];}if(_0x2accad===_0x25300f(0x3f0)){for(const _0xf8bdad of[_0x25300f(0x1e4),'targetKey',_0x25300f(0x524)])_0x22df90[_0xf8bdad]=_0x23f856[_0xf8bdad];}if(_0x23f856['cause'])_0x22df90[_0x25300f(0x6c9)]=_0x23f856[_0x25300f(0x6c9)];if(_0x23f856[_0x25300f(0x327)]!==undefined)_0x22df90[_0x25300f(0x327)]=_0x23f856[_0x25300f(0x327)];if(_0x23f856[_0x25300f(0x55d)]!==undefined)_0x22df90[_0x25300f(0x55d)]=_0x23f856['retryable'];return _0x22df90;}function _0x3c296d(_0x35cc53){const _0x5bffdc=_0x905e55;if(_0x35cc53===undefined)return _0x5bffdc(0x7ef);if(_0x35cc53===null)return _0x5bffdc(0x7b8);if(typeof _0x35cc53===_0x5bffdc(0x635))return _0x35cc53?_0x5bffdc(0x635):_0x5bffdc(0x4a7);if(typeof _0x35cc53===_0x5bffdc(0x7e3))return _0x5bffdc(0x7e3);if(typeof _0x35cc53!==_0x5bffdc(0x304))return typeof _0x35cc53;if(Array[_0x5bffdc(0x486)](_0x35cc53))return _0x35cc53[_0x5bffdc(0x1e1)]?_0x5bffdc(0x550):'empty\x20array';if(_0x35cc53 instanceof Date)return _0x5bffdc(0x5de);if(_0x35cc53 instanceof Map)return _0x5bffdc(0x73c);if(Buffer[_0x5bffdc(0x231)](_0x35cc53))return _0x5bffdc(0x49b);return'object';}const _0x42f32b=(_0x485970,_0x2b219f,_0x31e428)=>new _0xbc6d1d[(_0x905e55(0x3b7))](_0x2b219f,_0x485970,_0x31e428),_0x172942=(_0x6b9ba7,_0x45dfa3,_0x2978c4)=>_0x42f32b(_0x905e55(0x1c0),_0x6b9ba7+_0x905e55(0x744)+_0x45dfa3+';\x20got\x20'+_0x3c296d(_0x2978c4),{'argument':_0x6b9ba7,'expected':_0x45dfa3,'got':_0x3c296d(_0x2978c4)}),_0x4ba3ff=(_0xe896e4,_0x1718bb)=>_0x42f32b(_0x905e55(0x3c8),_0xe896e4+_0x905e55(0x2be)+_0x3c296d(_0x1718bb),{'argument':_0xe896e4,'expected':_0x905e55(0x32b),'got':_0x3c296d(_0x1718bb)}),_0x3417a1=(_0x61199a,_0x169786)=>_0x42f32b(_0x905e55(0x2db),_0x61199a+':\x20'+_0x169786,{'argument':_0x61199a,'problem':_0x169786});function _0x127cf4(_0x11040f,_0x5d045e=_0x905e55(0x204)){if(_0x11040f===undefined)return{};if(_0x11040f===null)throw _0x3417a1(_0x5d045e,'must\x20be\x20an\x20object;\x20got\x20null');return _0x11040f;}return errors={'reclass':_0x23e253,'NotImplementedNative':_0x533da7,'BY_CODE':_0x5d05b2,'describe':_0x3c296d,'invalidArgument':_0x172942,'invalidTypeName':_0x4ba3ff,'invalidOptions':_0x3417a1,'optionsArg':_0x127cf4,..._0xbc6d1d},errors;}var bridge_1,hasRequiredBridge;function requireBridge(){if(hasRequiredBridge)return bridge_1;hasRequiredBridge=0x1;const _0x14fada=new Map(),_0x3512be=new Map();let _0x6a1bf3=0x1;const _0x3153c8=new Map(),_0x528a19=new Map();let _0xa4ce15=0x1;const _0x92e4de=new Map();let _0x85f7e1=0x1;const _0xd6f6ee=new Map();function _0x2594da(_0x23647a,_0x25578c=null){const _0x482a53=_0x303e,_0x390edf=_0x85f7e1++;_0x92e4de[_0x482a53(0x31f)](_0x390edf,_0x23647a);if(_0x25578c)_0xd6f6ee[_0x482a53(0x31f)](_0x390edf,_0x25578c);return _0x390edf;}function _0x49d889(_0x466924,_0x4f9662){const _0x1d9b55=_0x303e,_0x1d1300=_0x92e4de['get'](_0x466924),_0x50c057=Array[_0x1d9b55(0x556)][_0x1d9b55(0x6ea)][_0x1d9b55(0x54b)](arguments,0x2),_0x73613e=_0x1504d4=>_0x3d8f45(_0x1504d4,_0xd6f6ee[_0x1d9b55(0x1d2)](_0x466924));let _0x59bc3f=_0x50c057;if(_0x4f9662===_0x1d9b55(0x73d)||_0x4f9662===_0x1d9b55(0x209)||_0x4f9662==='uninstall'||_0x4f9662==='install'||_0x4f9662==='assertStartAllowed')_0x59bc3f=[_0x73613e(_0x50c057[0x0])];else{if(_0x4f9662===_0x1d9b55(0x26a))_0x59bc3f=[_0x50c057[0x0],_0x50c057[0x1],_0x73613e(_0x50c057[0x2])];else{if(_0x4f9662==='assertCreateAllowed')_0x59bc3f=[_0x73613e(_0x50c057[0x0])];}}let _0x433fc2=_0x1d1300[_0x4f9662](..._0x59bc3f);if(_0x433fc2&&typeof _0x433fc2['then']===_0x1d9b55(0x7e3))_0x433fc2=_0x2e77d8(_0x433fc2);if(_0x4f9662===_0x1d9b55(0x73d)){const _0x53b147=_0x433fc2&&typeof _0x433fc2==='object'?_0x2594da(_0x433fc2):_0x2594da({});return{'$api':_0x53b147};}return _0x433fc2===undefined?null:_0x433fc2;}function _0x3d8f45(_0x302c0a,_0x1bb5c6){const _0x5ef9f9=_0x303e;let _0x2db332=_0x20f3a2[_0x5ef9f9(0x1d2)](_0x302c0a[_0x5ef9f9(0x16c)]);const _0x3a59bb=_0x2db332&&_0x2db332['okdb']||_0x1bb5c6||_0x578ec8,_0x24e2a6=(_0x1d7572,..._0x5f239e)=>_0x3a59bb[_0x5ef9f9(0x6eb)](_0x5ef9f9(0x262),null,_0x1d7572,[_0x302c0a[_0x5ef9f9(0x74e)],_0x302c0a[_0x5ef9f9(0x6bb)],..._0x5f239e],!![]);return{'okdb':_0x3a59bb,'key':_0x302c0a['key'],'type':_0x302c0a[_0x5ef9f9(0x74e)],'name':_0x302c0a[_0x5ef9f9(0x6bb)],get 'storeEnv'(){const _0x5796cc=_0x5ef9f9;if(!_0x2db332&&_0x3a59bb&&_0x3a59bb['_isOpen']&&_0x302c0a['storeEnvName'])_0x2db332=_0x3a59bb['_envs'][_0x5796cc(0x1d2)](_0x302c0a[_0x5796cc(0x801)]);return _0x2db332;},'storeEnvName':_0x302c0a[_0x5ef9f9(0x801)],'config':_0x302c0a[_0x5ef9f9(0x255)],'meta':_0x302c0a[_0x5ef9f9(0x295)],'options':_0x302c0a[_0x5ef9f9(0x204)],'emit':(_0x3decdf,_0x5bfdc7)=>_0x24e2a6(_0x5ef9f9(0x117),_0x3decdf,_0x5bfdc7),'updateStatus':async(_0x180afe,_0x2ae16d)=>_0x24e2a6(_0x5ef9f9(0x1ee),_0x180afe,_0x2ae16d==null?null:String(_0x2ae16d&&_0x2ae16d[_0x5ef9f9(0x79d)]?_0x2ae16d[_0x5ef9f9(0x79d)]:_0x2ae16d)),'updateMeta':async _0x5929fe=>_0x24e2a6('patchDeclaration',{'meta':_0x5929fe}),'updateConfig':async _0x2a276c=>_0x24e2a6(_0x5ef9f9(0x729),{'config':_0x2a276c})};}function _0x2d66b7(_0x10d07a,_0xf834ff,_0x4976d4){const _0x3d4391=_0x303e;if(_0x10d07a===_0x3d4391(0x4f4)){const _0x5356c3=_0x59bd96(_0xf834ff);let _0x59a485=_0x5356c3(_0x4976d4);if(_0x59a485&&typeof _0x59a485[_0x3d4391(0x179)]===_0x3d4391(0x7e3))_0x59a485=_0x2e77d8(_0x59a485);if(!_0x59a485||typeof _0x59a485[_0x3d4391(0x627)]!==_0x3d4391(0x7e3)){const {OKDBError:_0x1b867e}=requireErrors();throw new _0x1b867e(_0x3d4391(0x6f0)+(_0x4976d4&&_0x4976d4[_0x3d4391(0x74e)])+'\x22\x20must\x20return\x20{\x20embed(input):\x20Promise<Float32Array>\x20}',_0x3d4391(0x706));}return _0x59a485[_0x3d4391(0x122)]=_0x5356c3['__okdb'],{'$id':_0x2594da(_0x59a485),'batch':typeof _0x59a485[_0x3d4391(0x2cb)]===_0x3d4391(0x7e3)};}const _0x37d01e=_0x92e4de[_0x3d4391(0x1d2)](_0xf834ff);if(_0x10d07a===_0x3d4391(0x407))return _0x92e4de[_0x3d4391(0x17d)](_0xf834ff),_0x10fe14[_0x3d4391(0x17d)](_0xf834ff),null;if(!_0x37d01e)throw new Error('embedder\x20is\x20gone');if(typeof _0x37d01e[_0x10d07a]!=='function')return null;if(_0x10d07a===_0x3d4391(0x627)||_0x10d07a===_0x3d4391(0x2cb)){const _0x3b2776=_0x10d07a==='embedBatch'?_0xaae487(_0xf834ff,_0x37d01e,_0x4976d4):_0x2e158a(_0xf834ff,_0x37d01e,_0x10d07a,_0x4976d4);return _0x10d07a===_0x3d4391(0x627)?Array[_0x3d4391(0x17b)](_0x3b2776):_0x3b2776[_0x3d4391(0x2fe)](_0x2c05c2=>Array[_0x3d4391(0x17b)](_0x2c05c2));}let _0x391512=_0x37d01e[_0x10d07a]();if(_0x391512&&typeof _0x391512[_0x3d4391(0x179)]===_0x3d4391(0x7e3))_0x391512=_0x2e77d8(_0x391512);return _0x391512===undefined?null:_0x391512;}function _0x3c8596(_0x49c7ba,_0xa67751,_0x3ed90e){const _0x2b0948=_0x303e;if(_0x49c7ba===_0x2b0948(0x4f4)){const _0x5fd03c=_0x59bd96(_0xa67751);let _0x2beacf=_0x5fd03c(_0x3ed90e[_0x2b0948(0x255)]??{},{'dims':_0x3ed90e[_0x2b0948(0x61e)],'dir':_0x3ed90e[_0x2b0948(0x3de)]});if(_0x2beacf&&typeof _0x2beacf['then']===_0x2b0948(0x7e3))_0x2beacf=_0x2e77d8(_0x2beacf);for(const _0x45a286 of['load','add',_0x2b0948(0x4ec),'search','count']){if(!_0x2beacf||typeof _0x2beacf[_0x45a286]!==_0x2b0948(0x7e3)){const {OKDBError:_0x4594cd}=requireErrors();throw new _0x4594cd(_0x2b0948(0x5cf)+_0x45a286+'()',_0x2b0948(0x7e2),{'method':_0x45a286});}}return{'$id':_0x2594da(_0x2beacf)};}const _0x454ec1=_0x92e4de['get'](_0xa67751);if(_0x49c7ba==='free')return _0x92e4de['delete'](_0xa67751),null;if(!_0x454ec1)throw new Error('algorithm\x20is\x20gone');const _0x1c7edb=_0x4a7602=>_0x4a7602?_0x4a7602['map'](_0x3e5758=>({'key':_0x3e5758[_0x2b0948(0x119)],'vector':Float32Array['from'](_0x3e5758[_0x2b0948(0x23d)])})):null;let _0x2a53c0;switch(_0x49c7ba){case'load':case _0x2b0948(0x512):{const _0x1f1614=_0x1c7edb(_0x3ed90e);_0x2a53c0=_0x454ec1[_0x49c7ba](_0x1f1614?async()=>_0x1f1614:undefined);break;}case _0x2b0948(0x181):_0x2a53c0=_0x454ec1['add'](_0x3ed90e[0x0],Float32Array['from'](_0x3ed90e[0x1]),_0x3ed90e[0x2]??undefined);break;case _0x2b0948(0x4ec):_0x2a53c0=_0x454ec1[_0x2b0948(0x4ec)](_0x3ed90e);break;case _0x2b0948(0x668):_0x2a53c0=_0x454ec1[_0x2b0948(0x668)](Float32Array[_0x2b0948(0x17b)](_0x3ed90e[_0x2b0948(0x311)]),_0x3ed90e[_0x2b0948(0x637)]??{});break;case _0x2b0948(0x6f9):_0x2a53c0=typeof _0x454ec1[_0x2b0948(0x6f9)]===_0x2b0948(0x7e3)?_0x454ec1[_0x2b0948(0x6f9)](_0x3ed90e??undefined):![];break;case'stop':_0x2a53c0=typeof _0x454ec1['stop']===_0x2b0948(0x7e3)?_0x454ec1[_0x2b0948(0x209)]():undefined;break;case _0x2b0948(0x471):_0x2a53c0=typeof _0x454ec1[_0x2b0948(0x471)]===_0x2b0948(0x7e3)?_0x454ec1[_0x2b0948(0x471)]():undefined;break;case _0x2b0948(0x1cd):return Number(_0x454ec1[_0x2b0948(0x1cd)]());case _0x2b0948(0x7ba):return(typeof _0x454ec1['info']===_0x2b0948(0x7e3)?_0x454ec1['info']():null)??{};default:throw new Error(_0x2b0948(0x709)+_0x49c7ba);}if(_0x2a53c0&&typeof _0x2a53c0[_0x2b0948(0x179)]==='function')_0x2a53c0=_0x2e77d8(_0x2a53c0);return _0x2a53c0===undefined?null:_0x2a53c0;}function _0x25f13f(_0x47cb1b,_0x6521ff,_0x4c29ff){const _0x3720e0=_0x303e;if(_0x47cb1b==='new'){const _0x4e8385=_0x59bd96(_0x6521ff);let _0xc6e275=_0x4e8385(_0x4c29ff);if(_0xc6e275&&typeof _0xc6e275['then']===_0x3720e0(0x7e3))_0xc6e275=_0x2e77d8(_0xc6e275);if(!_0xc6e275)return null;const _0x39d2b7=[_0x3720e0(0x309),_0x3720e0(0x3ad),_0x3720e0(0x1d2),_0x3720e0(0x1cd),'dropAll','stats'][_0x3720e0(0x4b0)](_0x38b00c=>typeof _0xc6e275[_0x38b00c]===_0x3720e0(0x7e3));return{'$id':_0x2594da(_0xc6e275),'has':_0x39d2b7};}const _0x144e05=_0x92e4de['get'](_0x6521ff);if(_0x47cb1b===_0x3720e0(0x407))return _0x92e4de['delete'](_0x6521ff),null;if(!_0x144e05)throw new Error(_0x3720e0(0x247));const _0x2ad165=_0x145afd=>Float32Array['from'](_0x145afd);let _0x5d104a;switch(_0x47cb1b){case _0x3720e0(0x4f8):_0x5d104a=_0x144e05['put'](_0x4c29ff[0x0],_0x2ad165(_0x4c29ff[0x1]));break;case'remove':_0x5d104a=_0x144e05[_0x3720e0(0x4ec)](_0x4c29ff);break;case _0x3720e0(0x5ae):{_0x5d104a=typeof _0x144e05['getAll']===_0x3720e0(0x7e3)?_0x144e05[_0x3720e0(0x5ae)]():[];if(_0x5d104a&&typeof _0x5d104a[_0x3720e0(0x179)]===_0x3720e0(0x7e3))_0x5d104a=_0x2e77d8(_0x5d104a);return Array[_0x3720e0(0x17b)](_0x5d104a??[],_0x30606e=>({'key':_0x30606e[_0x3720e0(0x119)],'vector':Array[_0x3720e0(0x17b)](_0x30606e[_0x3720e0(0x23d)])}));}case'write':_0x5d104a=_0x144e05[_0x3720e0(0x309)](_0x4c29ff[_0x3720e0(0x7eb)]['map'](_0x32ec8e=>({'key':_0x32ec8e[_0x3720e0(0x119)],'vector':_0x2ad165(_0x32ec8e[_0x3720e0(0x23d)])})),_0x4c29ff[_0x3720e0(0x2e2)]);break;case _0x3720e0(0x3ad):_0x5d104a=_0x144e05[_0x3720e0(0x3ad)](_0x4c29ff??undefined);if(_0x5d104a&&typeof _0x5d104a[_0x3720e0(0x179)]===_0x3720e0(0x7e3))_0x5d104a=_0x2e77d8(_0x5d104a);return Array['from'](_0x5d104a??[]);case _0x3720e0(0x1d2):{_0x5d104a=_0x144e05['get'](_0x4c29ff);if(_0x5d104a&&typeof _0x5d104a[_0x3720e0(0x179)]===_0x3720e0(0x7e3))_0x5d104a=_0x2e77d8(_0x5d104a);return _0x5d104a==null?null:Array['from'](_0x5d104a);}case _0x3720e0(0x1cd):return Number(_0x144e05[_0x3720e0(0x1cd)]());case _0x3720e0(0x15a):_0x5d104a=_0x144e05['dropAll']();break;case'stats':return _0x144e05[_0x3720e0(0x5d6)]()??null;default:throw new Error(_0x3720e0(0x4e1)+_0x47cb1b);}if(_0x5d104a&&typeof _0x5d104a[_0x3720e0(0x179)]===_0x3720e0(0x7e3))_0x5d104a=_0x2e77d8(_0x5d104a);return _0x5d104a===undefined?null:_0x5d104a;}const _0x41da30=new Map();function _0x2e158a(_0x51fbcd,_0x46e13e,_0x5baaf4,_0x4f3a12){const _0x16ef85=_0x303e,_0x172c0b=_0x51fbcd+'\x00'+_0x5baaf4+'\x00'+JSON[_0x16ef85(0x74c)](_0x4f3a12),_0x5b8c6a=_0x41da30[_0x16ef85(0x1d2)](_0x172c0b);if(_0x5b8c6a){if(_0x5b8c6a[_0x16ef85(0x41a)]==='pending')throw _0x5abd67();_0x41da30['delete'](_0x172c0b);if(_0x5b8c6a[_0x16ef85(0x41a)]===_0x16ef85(0x392))throw _0x5b8c6a[_0x16ef85(0x1be)];return _0x5b8c6a[_0x16ef85(0x1be)];}const _0x48bc87=_0x46e13e[_0x5baaf4](_0x4f3a12);if(!_0x48bc87||typeof _0x48bc87[_0x16ef85(0x179)]!==_0x16ef85(0x7e3))return _0x48bc87;const _0x46066f={'state':_0x16ef85(0x59e),'value':undefined};_0x48bc87[_0x16ef85(0x179)](_0x2e4fa5=>{const _0xf2f3c=_0x16ef85;_0x46066f[_0xf2f3c(0x41a)]='ok',_0x46066f[_0xf2f3c(0x1be)]=_0x2e4fa5;if(_0x41da30[_0xf2f3c(0x1d2)](_0x172c0b)===_0x46066f)_0xac07ff(_0x46e13e);},_0xa19585=>{const _0xe0cf2b=_0x16ef85;_0x46066f[_0xe0cf2b(0x41a)]='err',_0x46066f[_0xe0cf2b(0x1be)]=_0xa19585;if(_0x41da30[_0xe0cf2b(0x1d2)](_0x172c0b)===_0x46066f)_0xac07ff(_0x46e13e);});for(let _0x2e83a3=0x0;_0x2e83a3<0x64&&_0x46066f['state']==='pending';_0x2e83a3++)process[_0x16ef85(0x690)]();if(_0x46066f[_0x16ef85(0x41a)]==='ok')return _0x46066f[_0x16ef85(0x1be)];if(_0x46066f[_0x16ef85(0x41a)]===_0x16ef85(0x392))throw _0x46066f[_0x16ef85(0x1be)];_0x41da30['set'](_0x172c0b,_0x46066f);throw _0x5abd67();}const _0x10fe14=new Map(),_0x3d108f=0xa*0x3c*0x3e8;function _0xaae487(_0x500e11,_0x496dc9,_0x5c5964){const _0x3242f4=_0x303e,_0x3b1465=Array[_0x3242f4(0x486)](_0x5c5964)?_0x5c5964:Array['from'](_0x5c5964??[]);let _0x368ccf=_0x10fe14[_0x3242f4(0x1d2)](_0x500e11);if(!_0x368ccf)_0x10fe14[_0x3242f4(0x31f)](_0x500e11,_0x368ccf=new Map());const _0x20a376=Date[_0x3242f4(0x1b5)]();for(const [_0x26b828,_0x9c42f0]of _0x368ccf)if(_0x9c42f0['req'][_0x3242f4(0x41a)]!==_0x3242f4(0x59e)&&_0x20a376-_0x9c42f0['req']['at']>_0x3d108f)_0x368ccf[_0x3242f4(0x17d)](_0x26b828);const _0x36ad36=_0x3b1465[_0x3242f4(0x2fe)](_0x3c957d=>JSON[_0x3242f4(0x74c)](_0x3c957d));let _0x2c5f44=![];const _0xc89388=[],_0x114344=new Set();for(let _0x5bdec7=0x0;_0x5bdec7<_0x36ad36[_0x3242f4(0x1e1)];_0x5bdec7++){const _0x39329c=_0x368ccf[_0x3242f4(0x1d2)](_0x36ad36[_0x5bdec7]);if(!_0x39329c)!_0x114344[_0x3242f4(0x3a9)](_0x36ad36[_0x5bdec7])&&(_0x114344[_0x3242f4(0x181)](_0x36ad36[_0x5bdec7]),_0xc89388[_0x3242f4(0x460)](_0x5bdec7));else{if(_0x39329c[_0x3242f4(0x108)][_0x3242f4(0x41a)]===_0x3242f4(0x59e))_0x2c5f44=!![];else{if(_0x39329c[_0x3242f4(0x108)][_0x3242f4(0x41a)]==='err'){const _0x401bf9=_0x39329c[_0x3242f4(0x108)][_0x3242f4(0x1be)];for(const [_0x27f185,_0x4dce0a]of _0x368ccf)if(_0x4dce0a[_0x3242f4(0x108)]===_0x39329c[_0x3242f4(0x108)])_0x368ccf[_0x3242f4(0x17d)](_0x27f185);throw _0x401bf9;}}}}if(_0x2c5f44)throw _0x5abd67();if(_0xc89388['length']){const _0x33ebf6=_0xc89388[_0x3242f4(0x2fe)](_0xa7809b=>_0x3b1465[_0xa7809b]),_0x5e03da=_0x496dc9[_0x3242f4(0x2cb)](_0x33ebf6),_0x1b89f0={'state':_0x3242f4(0x59e),'value':undefined,'at':0x0},_0x363e99=(_0x4f7168,_0x163b67)=>{const _0x12342f=_0x3242f4;_0x1b89f0[_0x12342f(0x41a)]=_0x4f7168,_0x1b89f0[_0x12342f(0x1be)]=_0x163b67,_0x1b89f0['at']=Date[_0x12342f(0x1b5)]();};if(!_0x5e03da||typeof _0x5e03da['then']!==_0x3242f4(0x7e3))_0x363e99('ok',_0x5e03da);else{let _0x19e6e8=!![];_0x5e03da[_0x3242f4(0x179)](_0x66826e=>{_0x363e99('ok',_0x66826e);if(!_0x19e6e8)_0xac07ff(_0x496dc9);},_0x4ecff0=>{const _0x1fd1f0=_0x3242f4;_0x363e99(_0x1fd1f0(0x392),_0x4ecff0);if(!_0x19e6e8)_0xac07ff(_0x496dc9);});for(let _0x1364aa=0x0;_0x1364aa<0x64&&_0x1b89f0[_0x3242f4(0x41a)]===_0x3242f4(0x59e);_0x1364aa++)process[_0x3242f4(0x690)]();_0x19e6e8=![];}for(let _0x1707c2=0x0;_0x1707c2<_0xc89388[_0x3242f4(0x1e1)];_0x1707c2++)_0x368ccf[_0x3242f4(0x31f)](_0x36ad36[_0xc89388[_0x1707c2]],{'req':_0x1b89f0,'index':_0x1707c2});if(_0x1b89f0[_0x3242f4(0x41a)]===_0x3242f4(0x392)){for(const _0x105c60 of _0xc89388)_0x368ccf[_0x3242f4(0x17d)](_0x36ad36[_0x105c60]);throw _0x1b89f0[_0x3242f4(0x1be)];}if(_0x1b89f0[_0x3242f4(0x41a)]==='pending')throw _0x5abd67();}const _0x4d430a=_0x36ad36[_0x3242f4(0x2fe)](_0x3b583f=>{const _0x353b41=_0x3242f4,_0x2a7806=_0x368ccf[_0x353b41(0x1d2)](_0x3b583f),_0x1f5f85=_0x2a7806[_0x353b41(0x108)][_0x353b41(0x1be)];return _0x1f5f85?_0x1f5f85[_0x2a7806[_0x353b41(0x53f)]]:undefined;});for(const _0x4e34a0 of _0x36ad36)_0x368ccf[_0x3242f4(0x17d)](_0x4e34a0);if(!_0x368ccf[_0x3242f4(0x16f)])_0x10fe14[_0x3242f4(0x17d)](_0x500e11);return _0x4d430a;}function _0x5abd67(){const _0xa79348=_0x303e;return Object['assign'](new Error(_0xa79348(0x5f4)),{'code':_0xa79348(0x703)});}function _0xac07ff(_0x293461){const _0x58e28b=_0x303e;_0x8233b5();try{const _0x5db9b6=_0x293461[_0x58e28b(0x122)]||_0x578ec8;if(_0x5db9b6&&_0x5db9b6[_0x58e28b(0x546)])_0x5db9b6[_0x58e28b(0x6eb)]('events',null,'emit',['embeddings:embed:settled',{}],!![]);}catch{}}function _0x747345(_0x468097,_0xf99992,_0x545d87){const _0x44ccd6=_0x303e,_0x24c643=_0x92e4de['get'](_0x468097);if(!_0x24c643||typeof _0x24c643[_0xf99992]!==_0x44ccd6(0x7e3))return{'__absent':!![]};let _0x349971=_0x24c643[_0xf99992](...Array[_0x44ccd6(0x486)](_0x545d87)?_0x545d87:[]);if(_0x349971&&typeof _0x349971['then']===_0x44ccd6(0x7e3))_0x349971=_0x2e77d8(_0x349971);return{'value':_0x349971===undefined?null:_0x349971};}const _0x71dd2e=new Map();let _0x1d07bc=0x1;const _0x20f3a2=new Map(),_0x48f0c8=new Map();function _0x2c6ae9(_0x28bb67,_0x25f90d=null){const _0x1d2f4a=_0x303e,_0x4fb074=_0x1d07bc++;_0x71dd2e[_0x1d2f4a(0x31f)](_0x4fb074,_0x28bb67);if(_0x25f90d)_0x48f0c8[_0x1d2f4a(0x31f)](_0x4fb074,_0x25f90d);return _0x4fb074;}function _0x19311b(_0x4268fb){const _0x365115=_0x303e;for(const [_0x121f76,_0x173dbd]of _0x20f3a2)if(_0x173dbd&&_0x173dbd[_0x365115(0x229)]===_0x4268fb)_0x20f3a2['delete'](_0x121f76);for(const [_0x11ad1e,_0x1d2f13]of _0xd6f6ee)if(_0x1d2f13===_0x4268fb)_0xd6f6ee['delete'](_0x11ad1e);for(const [_0xe118f6,_0x3f3ff6]of _0x48f0c8)_0x3f3ff6===_0x4268fb&&(_0x48f0c8[_0x365115(0x17d)](_0xe118f6),_0x71dd2e['delete'](_0xe118f6));if(_0x578ec8===_0x4268fb)_0x578ec8=null;}function _0x55e792(_0x253107,_0xcbde7b){const _0x5d07ec=_0x303e;_0x20f3a2[_0x5d07ec(0x31f)](_0x253107,_0xcbde7b);}function _0x5ad2c9(_0x401fc6){const _0x1545e7=_0x303e;if(_0x401fc6&&typeof _0x401fc6===_0x1545e7(0x304)&&Object[_0x1545e7(0x3ad)](_0x401fc6)['length']===0x1&&_0x401fc6[_0x1545e7(0x4fb)]!==undefined)return _0x71dd2e[_0x1545e7(0x1d2)](_0x401fc6['$payload']);return _0x401fc6;}function _0x2e77d8(_0x530a53){const _0x478b1f=_0x303e;let _0x121ff1=![],_0x29861=![],_0x7b98d2;_0x530a53[_0x478b1f(0x179)](_0x3cf7c8=>{_0x121ff1=!![],_0x7b98d2=_0x3cf7c8;},_0x26c11b=>{_0x121ff1=!![],_0x29861=!![],_0x7b98d2=_0x26c11b;});for(let _0x224360=0x0;_0x224360<0x2710&&!_0x121ff1;_0x224360++)process[_0x478b1f(0x690)]();if(!_0x121ff1)return _0x530a53[_0x478b1f(0x179)](undefined,_0x4f661c=>{const _0x6e300d=_0x478b1f;try{process[_0x6e300d(0x18e)](_0x6e300d(0x815)+(_0x4f661c&&_0x4f661c[_0x6e300d(0x79d)]?_0x4f661c[_0x6e300d(0x79d)]:_0x4f661c));}catch{}}),undefined;if(_0x29861)throw _0x7b98d2;return _0x7b98d2;}function _0x23bbb0(_0x3de1e5,_0x654162,_0x2f1236){const _0x4dd3f0=_0x303e,_0x4299a5=_0x59bd96(_0x3de1e5),_0x17aee2=_0x20f3a2[_0x4dd3f0(0x1d2)](_0x654162);try{const _0x489988=_0x4299a5(_0x2f1236,{'okdb':_0x17aee2&&_0x17aee2[_0x4dd3f0(0x229)],'env':_0x17aee2});if(_0x489988&&typeof _0x489988[_0x4dd3f0(0x179)]===_0x4dd3f0(0x7e3))_0x2e77d8(_0x489988);}catch(_0x9413c6){if(_0x9413c6&&_0x9413c6[_0x4dd3f0(0x741)]===!![]&&_0x9413c6[_0x4dd3f0(0x6cb)]!==_0x4dd3f0(0x237)){const _0x3e38bb=new Error(_0x9413c6[_0x4dd3f0(0x79d)]);_0x3e38bb['code']=_0x4dd3f0(0x237);throw _0x3e38bb;}throw _0x9413c6;}}const _0x1517f8=new Map();function _0x127637(_0x3f117a,_0x14f0f4,_0x4e18b4,_0x55614b,_0x3e879c,_0xafb385){const _0x1c86cc=_0x303e,_0x3c23e2=_0x59bd96(_0x3f117a),_0x5d6e4f=(_0x20f3a2[_0x1c86cc(0x1d2)](_0xafb385)||{})[_0x1c86cc(0x229)]||_0x578ec8,_0x37320c=new AbortController(),_0xe06da3=(_0x4c1a0a,..._0x1679ed)=>_0x5d6e4f['_call'](_0x1c86cc(0x679),_0x1c86cc(0x478),_0x4c1a0a,_0x1679ed,![]),_0x301acf={'okdb':_0x5d6e4f,'env':_0x20f3a2['get'](_0xafb385)||null,'job':_0x55614b,'jobId':_0x3e879c,'signal':_0x37320c['signal'],'heartbeat':()=>_0xe06da3(_0x1c86cc(0x458),_0x4e18b4),'markProgress':_0x17d8df=>_0xe06da3(_0x1c86cc(0x490),_0x4e18b4,_0x17d8df),'log':(_0xc1d021,_0x26b3e0)=>_0xe06da3(_0x1c86cc(0x24e),_0x4e18b4,_0xc1d021,_0x26b3e0)};_0x1517f8[_0x1c86cc(0x31f)](_0x4e18b4,{'ctrl':_0x37320c,'call':_0xe06da3});const _0x4766f8=()=>{const _0xce6b60=_0x1c86cc;_0x1517f8[_0xce6b60(0x17d)](_0x4e18b4);try{_0xe06da3('ctxRelease',_0x4e18b4);}catch{}};let _0x2d4dc1;try{_0x2d4dc1=_0x3c23e2(_0x14f0f4,_0x301acf);}catch(_0x384220){_0x4766f8();throw _0x384220;}if(_0x2d4dc1&&typeof _0x2d4dc1[_0x1c86cc(0x179)]==='function'){const _0x1d9de4=_0x2cf335(_0x2d4dc1);return _0x2d4dc1[_0x1c86cc(0x179)](_0x4766f8,_0x4766f8),{'$token':_0x1d9de4};}return _0x4766f8(),_0x2d4dc1;}function _0x5816c1(){const _0x1d903f=_0x303e;for(const [_0x285ed8,_0x2d6e24]of _0x1517f8){if(_0x2d6e24['ctrl'][_0x1d903f(0x315)][_0x1d903f(0x506)])continue;let _0x39fb1c;try{_0x39fb1c=_0x2d6e24[_0x1d903f(0x54b)](_0x1d903f(0x3a8),_0x285ed8);}catch{continue;}if(_0x39fb1c&&_0x39fb1c[_0x1d903f(0x506)]){const {OKDBError:_0x1e509a}=requireErrors();_0x2d6e24['ctrl'][_0x1d903f(0x47f)](new _0x1e509a(_0x39fb1c[_0x1d903f(0x79d)],_0x39fb1c[_0x1d903f(0x6cb)]));}}}let _0x578ec8=null;function _0x7b25f1(_0x2a9a7b){_0x578ec8=_0x2a9a7b;}function _0x464e2e(_0x5ec60a,_0x304ad0,_0xd62dd4,_0x2c9d15,_0x23f81d,_0x2057e6,_0x33d5f8){const _0x5e101c=_0x303e,_0xa1d261=_0x59bd96(_0x5ec60a),_0x3da111=_0x20f3a2[_0x5e101c(0x1d2)](_0xd62dd4);try{const _0x3aab72=_0x304ad0?_0xa1d261(_0x23f81d,_0x2057e6):_0xa1d261({'env':_0x3da111,'okdb':_0x3da111&&_0x3da111[_0x5e101c(0x229)],'payload':_0x5ad2c9(_0x2c9d15)},_0x23f81d,_0x2057e6);if(_0x3aab72&&typeof _0x3aab72['then']===_0x5e101c(0x7e3)){if(_0x2057e6&&_0x2057e6[_0x5e101c(0x259)]===_0x5e101c(0x589))_0x3aab72[_0x5e101c(0x179)](undefined,()=>{});else{if(_0x33d5f8){const _0x366a9d=_0x1591ad(_0x3aab72);if(_0x366a9d===0x0)return null;return{'$token':_0x366a9d};}else _0x2e77d8(_0x3aab72);}}}catch(_0x1f510e){if(_0x1f510e&&_0x1f510e[_0x5e101c(0x741)]===!![]&&_0x1f510e[_0x5e101c(0x6cb)]!==_0x5e101c(0x237)){const _0x2582e5=new Error(_0x1f510e[_0x5e101c(0x79d)]);_0x2582e5[_0x5e101c(0x6cb)]='__HOLD__';throw _0x2582e5;}throw _0x1f510e;}return null;}function _0x1591ad(_0x4e0442){const _0x5ba363=_0x303e;let _0x3e97b7=_0x5ba363(0x59e),_0x1d2d67;_0x4e0442[_0x5ba363(0x179)](_0x466669=>{_0x3e97b7='ok',_0x1d2d67=_0x466669;},_0xe18119=>{const _0x10ce8d=_0x5ba363;_0x3e97b7=_0x10ce8d(0x392),_0x1d2d67=_0xe18119;});for(let _0x26e246=0x0;_0x26e246<0x64&&_0x3e97b7==='pending';_0x26e246++)process[_0x5ba363(0x690)]();if(_0x3e97b7==='ok')return 0x0;const _0x220143=_0xa4ce15++,_0x24e8cb={'state':_0x3e97b7,'value':_0x1d2d67};_0x528a19[_0x5ba363(0x31f)](_0x220143,_0x24e8cb);if(_0x3e97b7===_0x5ba363(0x59e))_0x4e0442[_0x5ba363(0x179)](_0x2a7298=>{const _0x13d431=_0x5ba363;_0x24e8cb[_0x13d431(0x41a)]='ok',_0x24e8cb['value']=_0x2a7298,_0x8233b5();},_0x38f452=>{const _0x390095=_0x5ba363;_0x24e8cb[_0x390095(0x41a)]=_0x390095(0x392),_0x24e8cb[_0x390095(0x1be)]=_0x38f452,_0x8233b5();});return _0x220143;}function _0x31ed4d(_0x2214c7){const _0x3fa752=_0x303e;let _0x541e88=_0x3512be[_0x3fa752(0x1d2)](_0x2214c7);return _0x541e88===undefined&&(_0x541e88=_0x6a1bf3++,_0x3512be[_0x3fa752(0x31f)](_0x2214c7,_0x541e88),_0x14fada[_0x3fa752(0x31f)](_0x541e88,{'fn':_0x2214c7,'refs':0x0})),_0x14fada[_0x3fa752(0x1d2)](_0x541e88)['refs']++,_0x541e88;}function _0x40e520(_0x1c5561){const _0x2587c7=_0x303e,_0x35464c=_0x14fada[_0x2587c7(0x1d2)](_0x1c5561);if(!_0x35464c)return;--_0x35464c[_0x2587c7(0x137)]<=0x0&&(_0x14fada[_0x2587c7(0x17d)](_0x1c5561),_0x3512be[_0x2587c7(0x17d)](_0x35464c['fn']));}function _0x59bd96(_0x27aadd){const _0x5bf04f=_0x303e,_0x307998=_0x14fada[_0x5bf04f(0x1d2)](_0x27aadd);if(!_0x307998)throw new Error(_0x5bf04f(0x452)+_0x27aadd);return _0x307998['fn'];}function _0x2cf335(_0x1497f4){const _0x7bee64=_0x303e;if(_0x1497f4&&typeof _0x1497f4[_0x7bee64(0x179)]===_0x7bee64(0x7e3)){const _0x1baa69=_0xa4ce15++,_0x3e6671={'state':_0x7bee64(0x59e),'value':undefined};return _0x528a19[_0x7bee64(0x31f)](_0x1baa69,_0x3e6671),_0x1497f4[_0x7bee64(0x179)](_0x21d44e=>{const _0x54a88f=_0x7bee64;_0x3e6671[_0x54a88f(0x41a)]='ok',_0x3e6671['value']=_0x21d44e,_0x8233b5();},_0x1f8a33=>{const _0x52d8c9=_0x7bee64;_0x3e6671[_0x52d8c9(0x41a)]=_0x52d8c9(0x392),_0x3e6671[_0x52d8c9(0x1be)]=_0x1f8a33,_0x8233b5();}),_0x1baa69;}return 0x0;}let _0xe0f4a8=()=>{},_0x5bc6c6=null;function _0x51bee0(_0x1bc556,_0xa859f9=null){_0xe0f4a8=_0x1bc556,_0x5bc6c6=_0xa859f9;}function _0x569627(_0x5e5fdc){return _0x5bc6c6===_0x5e5fdc;}function _0x8233b5(){_0xe0f4a8();}function _0x26c298(_0x30cfb6){const _0xe4645e=_0x303e,_0x15b4dd=_0x528a19[_0xe4645e(0x1d2)](_0x30cfb6);if(!_0x15b4dd)return{'state':_0xe4645e(0x392),'error':{'message':_0xe4645e(0x6d4)}};if(_0x15b4dd[_0xe4645e(0x41a)]===_0xe4645e(0x59e))return{'state':_0xe4645e(0x59e)};_0x528a19[_0xe4645e(0x17d)](_0x30cfb6);if(_0x15b4dd[_0xe4645e(0x41a)]==='ok')return{'state':'ok','value':_0x15b4dd[_0xe4645e(0x1be)]};const _0x347467=_0x15b4dd[_0xe4645e(0x1be)];return{'state':_0xe4645e(0x392),'error':{'message':_0x347467&&_0x347467[_0xe4645e(0x79d)]!=null?String(_0x347467['message']):String(_0x347467),'stack':_0x347467&&_0x347467[_0xe4645e(0x4b6)],'code':_0x347467&&_0x347467[_0xe4645e(0x6cb)],'status':_0x347467&&typeof _0x347467['status']===_0xe4645e(0x2d3)?_0x347467['status']:undefined,'hold':!!(_0x347467&&_0x347467[_0xe4645e(0x741)]===!![])}};}function _0xe7ce50(_0x2813d3,_0x4a52c7){const _0x114e13=_0x303e;_0x3153c8[_0x114e13(0x31f)](_0x2813d3,_0x4a52c7);}function _0x253440(_0x18c58d){const _0x5f481a=_0x303e;_0x3153c8[_0x5f481a(0x17d)](_0x18c58d);}let _0x231c75=0x0;function _0x55cf24(){return _0x231c75>0x0;}function _0x325bfb(){const _0x39bffc=_0x303e;_0x231c75++;try{return _0x59ebad[_0x39bffc(0x195)](undefined,arguments);}finally{_0x231c75--;}}function _0x59ebad(_0x152f51,_0x53f1a1,_0x46c70a,_0x56efb3,_0x3c5b69,_0x43f1fb){const _0x251325=_0x303e;switch(_0x152f51){case _0x251325(0x27b):return _0x31ed4d(_0x53f1a1);case'unreg':return _0x40e520(_0x53f1a1);case _0x251325(0x54b):{const _0x161590=Array['prototype']['slice'][_0x251325(0x54b)](arguments,0x2),_0x1b1c57=_0x59bd96(_0x53f1a1)[_0x251325(0x195)](undefined,_0x161590);return _0x1b1c57&&typeof _0x1b1c57[_0x251325(0x179)]==='function'?_0x2e77d8(_0x1b1c57):_0x1b1c57;}case _0x251325(0x48f):{const _0x4a50ac=Array['prototype'][_0x251325(0x6ea)][_0x251325(0x54b)](arguments,0x2),_0x2d5e26=_0x59bd96(_0x53f1a1)['apply'](undefined,_0x4a50ac);if(_0x2d5e26&&typeof _0x2d5e26[_0x251325(0x179)]===_0x251325(0x7e3))return{'$token':_0x2cf335(_0x2d5e26)};return{'$value':_0x2d5e26===undefined?null:_0x2d5e26,'$undef':_0x2d5e26===undefined};}case _0x251325(0x1b1):{const _0x5dea3d=_0x3153c8[_0x251325(0x1d2)](_0x53f1a1);if(_0x5dea3d)_0x5dea3d[_0x251325(0x245)](_0x46c70a,_0x56efb3);return undefined;}case _0x251325(0x282):{const _0x55079c=_0x3153c8[_0x251325(0x1d2)](_0x53f1a1);if(_0x55079c)_0x55079c[_0x251325(0x53b)](_0x46c70a);return undefined;}case'handler':return _0x464e2e(_0x53f1a1,_0x46c70a,_0x56efb3,_0x3c5b69,_0x43f1fb,arguments[0x6],arguments[0x7]);case'quantum':return _0x23bbb0(_0x53f1a1,_0x46c70a,_0x56efb3);case _0x251325(0x2f5):return _0x127637(_0x53f1a1,_0x46c70a,_0x56efb3,_0x3c5b69,_0x43f1fb,arguments[0x6]);case _0x251325(0x454):return _0x49d889[_0x251325(0x195)](null,Array[_0x251325(0x556)][_0x251325(0x6ea)][_0x251325(0x54b)](arguments,0x1));case _0x251325(0x619):return _0x747345(_0x53f1a1,_0x46c70a,_0x56efb3);case _0x251325(0x809):return _0x26c298(_0x53f1a1);case _0x251325(0x6d2):{const _0x48b20d=((async()=>{const _0x1d2952=_0x251325,_0x5f3aea=await globalThis[_0x1d2952(0x633)](_0x53f1a1);if(!_0x5f3aea['ok']){const _0x197762=new Error(_0x1d2952(0x7d5)+_0x5f3aea[_0x1d2952(0x327)]);_0x197762['code']='HTTP_ERROR';throw _0x197762;}return _0x5f3aea['json']();})());return _0x2e77d8(_0x48b20d)??null;}case _0x251325(0x45e):return _0x2d66b7(_0x53f1a1,_0x46c70a,_0x56efb3);case _0x251325(0x318):return _0x3c8596(_0x53f1a1,_0x46c70a,_0x56efb3);case'stor':return _0x25f13f(_0x53f1a1,_0x46c70a,_0x56efb3);default:throw new Error(_0x251325(0x673)+_0x152f51);}}return bridge_1={'inNativeCall':_0x55cf24,'regObject':_0x2594da,'checkSignals':_0x5816c1,'setCurrentDb':_0x7b25f1,'forgetDb':_0x19311b,'storePayload':_0x2c6ae9,'registerEnv':_0x55e792,'resolvePayload':_0x5ad2c9,'bridge':_0x325bfb,'reg':_0x31ed4d,'unreg':_0x40e520,'fnOf':_0x59bd96,'track':_0x2cf335,'resolve':_0x26c298,'registerTarget':_0xe7ce50,'unregisterTarget':_0x253440,'setKick':_0x51bee0,'kickOwnedBy':_0x569627},bridge_1;}var writebatch,hasRequiredWritebatch;function requireWritebatch(){const _0x4a5c26=_0x36292f;if(hasRequiredWritebatch)return writebatch;hasRequiredWritebatch=0x1;const {reclass:_0x5b1432}=requireErrors(),_0x2a26f2=requireBridge(),_0x505957=new Map();let _0x3570f1=null;function _0x317c6a(_0x5ce628){const _0xae434a=_0x303e;if(_0x3570f1)return;_0x3570f1=_0x5ce628,_0x5ce628[_0xae434a(0x4a6)](_0x5e89fb);}function _0x5e89fb(){const _0x427eb5=_0x303e,_0x248c19=_0x3570f1[_0x427eb5(0x62b)]();for(const _0x5d2259 of _0x248c19){const _0x4ace9c=_0x505957[_0x427eb5(0x1d2)](_0x5d2259);_0x4ace9c&&(_0x505957['delete'](_0x5d2259),_0x4ace9c());}}function _0xf08448(_0x28abc2,_0x46de4c){_0x505957['set'](_0x28abc2,_0x46de4c);}class _0xc01375{constructor(_0x2f6426){const _0x2c6c3c=_0x303e;this['db']=_0x2f6426,this[_0x2c6c3c(0x679)]=[],this['scheduled']=![],this[_0x2c6c3c(0x399)]=![],this[_0x2c6c3c(0x2af)]=new Set();}[_0x4a5c26(0x43a)](_0x39b4d0,_0x40cce6,_0x73c604,_0x15bd54){const _0x2bc63e=_0x4a5c26;if(_0x2a26f2[_0x2bc63e(0x3b8)]())try{return Promise[_0x2bc63e(0x809)](this['db']['_call'](_0x39b4d0,_0x40cce6,_0x73c604,_0x15bd54));}catch(_0x4fde07){return Promise[_0x2bc63e(0x565)](_0x4fde07);}const _0x244ccd=new Promise((_0x3c8b00,_0x45af32)=>{const _0x2687fb=_0x2bc63e;this[_0x2687fb(0x679)]['push']({'item':[_0x39b4d0,_0x40cce6,_0x73c604,_0x15bd54],'resolve':_0x3c8b00,'reject':_0x45af32});});this[_0x2bc63e(0x2af)][_0x2bc63e(0x181)](_0x244ccd);const _0x2dda0e=()=>this[_0x2bc63e(0x2af)]['delete'](_0x244ccd);return _0x244ccd[_0x2bc63e(0x179)](_0x2dda0e,_0x2dda0e),!this[_0x2bc63e(0x1a3)]&&(this['scheduled']=!![],setImmediate(()=>{const _0x2b2b88=_0x2bc63e;this[_0x2b2b88(0x1a3)]=![],this[_0x2b2b88(0x373)]();})),_0x244ccd;}[_0x4a5c26(0x373)](){const _0x19812f=_0x4a5c26;if(!this[_0x19812f(0x679)][_0x19812f(0x1e1)])return;if(this[_0x19812f(0x399)]){!this[_0x19812f(0x1a3)]&&(this['scheduled']=!![],setImmediate(()=>{const _0x482ba8=_0x19812f;this[_0x482ba8(0x1a3)]=![],this[_0x482ba8(0x373)]();}));return;}const _0xa863d0=this['queue'];this[_0x19812f(0x679)]=[],this['_run'](_0xa863d0);}['_run'](_0x41bd60){const _0x2b2a1=_0x4a5c26;let _0x18fc1c;this[_0x2b2a1(0x399)]=!![];try{_0x18fc1c=this['db']['_native'][_0x2b2a1(0x7db)](_0x41bd60[_0x2b2a1(0x2fe)](_0x46674f=>_0x46674f['item']));}catch(_0x7be741){this[_0x2b2a1(0x399)]=![];if(_0x41bd60['length']>0x1){for(const _0xe7be79 of _0x41bd60)this[_0x2b2a1(0x299)]([_0xe7be79]);return;}const _0x3309fa=_0x5b1432(_0x7be741);for(const _0x461be3 of _0x41bd60)_0x461be3[_0x2b2a1(0x565)](_0x3309fa);return;}finally{this['inBatch']=![];}try{this['db']['_pumper'][_0x2b2a1(0x7c7)]();}catch{}const [_0x452a83,_0x6ec43c]=_0x18fc1c;_0xf08448(_0x6ec43c,()=>{const _0x4d09f2=_0x2b2a1;for(let _0xa98153=0x0;_0xa98153<_0x41bd60['length'];_0xa98153++){const _0x282813=_0x452a83[_0xa98153];if(_0x282813&&_0x282813[0x0])_0x41bd60[_0xa98153]['resolve'](_0x282813[0x1]);else _0x41bd60[_0xa98153]['reject'](_0x5b1432(_0x282813?_0x282813[0x1]:new Error(_0x4d09f2(0x797))));}});}async[_0x4a5c26(0x6ff)](){const _0x19ce15=_0x4a5c26;this[_0x19ce15(0x373)]();while(this[_0x19ce15(0x2af)][_0x19ce15(0x16f)]){await Promise['allSettled']([...this[_0x19ce15(0x2af)]]),this[_0x19ce15(0x373)]();}let _0x154bef;try{_0x154bef=this['db'][_0x19ce15(0x3ca)][_0x19ce15(0x3d4)]();}catch{return;}await new Promise(_0x3ebd25=>_0xf08448(_0x154bef,_0x3ebd25));}}return writebatch={'install':_0x317c6a,'WriteBatch':_0xc01375,'whenSettled':_0xf08448},writebatch;}var pump,hasRequiredPump;function requirePump(){const _0x304b79=_0x36292f;if(hasRequiredPump)return pump;hasRequiredPump=0x1;const _0x2280b3=Number(process.env.OKDB_NATIVE_IDLE_MS)||0xfa;class _0x135cef{constructor(_0x403c20){const _0x3ed277=_0x303e;this[_0x3ed277(0x739)]=_0x403c20,this[_0x3ed277(0x4dc)]=null,this['immediate']=null,this[_0x3ed277(0x36b)]=![],this[_0x3ed277(0x63f)]=![],this[_0x3ed277(0x653)]=![],this['dirty']=![],this['turns']=0x0,this[_0x3ed277(0x472)]=[],this[_0x3ed277(0x2d4)]=[];}[_0x304b79(0x2a9)](_0x512485){return new Promise(_0x3d80e7=>{const _0xac112b=setTimeout(_0xe8e6e0,_0x512485);function _0xe8e6e0(){clearTimeout(_0xac112b),_0x3d80e7();}this['turnWaiters']['push'](_0xe8e6e0);});}['_settleWaiters'](){const _0x928b2c=_0x304b79;if(this['turnWaiters'][_0x928b2c(0x1e1)]===0x0)return;const _0x3bfb96=this[_0x928b2c(0x2d4)];this[_0x928b2c(0x2d4)]=[];for(const _0x398028 of _0x3bfb96)_0x398028();}[_0x304b79(0x73d)](){const _0xb4c2d8=_0x304b79;this[_0xb4c2d8(0x63f)]=![],this[_0xb4c2d8(0x7c7)]();}[_0x304b79(0x209)](){const _0x320e42=_0x304b79;this[_0x320e42(0x63f)]=!![];if(this[_0x320e42(0x4dc)])clearTimeout(this[_0x320e42(0x4dc)]);if(this['immediate'])clearImmediate(this[_0x320e42(0x495)]);this[_0x320e42(0x4dc)]=this['immediate']=null,this[_0x320e42(0x1a0)]();}[_0x304b79(0x7c7)](){const _0x449386=_0x304b79;if(this[_0x449386(0x63f)]||this[_0x449386(0x495)])return;this['timer']&&(clearTimeout(this[_0x449386(0x4dc)]),this['timer']=null),this[_0x449386(0x495)]=setImmediate(()=>{const _0x529e41=_0x449386;this[_0x529e41(0x495)]=null,this[_0x529e41(0x740)]();});}['turn'](){const _0x511ee9=_0x304b79;if(this[_0x511ee9(0x63f)]||this[_0x511ee9(0x653)]){this[_0x511ee9(0x563)]=!![];return;}this[_0x511ee9(0x653)]=!![];let _0x229c91;try{this[_0x511ee9(0x743)]++,_0x229c91=this['native'][_0x511ee9(0x4db)]();if(this[_0x511ee9(0x765)])this[_0x511ee9(0x765)]();}catch(_0x3906b4){_0x229c91=_0x2280b3,process['nextTick'](()=>{throw _0x3906b4;});}finally{this[_0x511ee9(0x653)]=![],this[_0x511ee9(0x1a0)]();}if(this[_0x511ee9(0x63f)]||_0x229c91===-0x2)return;if(this[_0x511ee9(0x563)])return this['dirty']=![],this['wake']();const _0x4b875e=_0x229c91<0x0?_0x2280b3:Math[_0x511ee9(0x372)](0x0,Math[_0x511ee9(0x2f2)](_0x229c91,_0x2280b3));if(_0x4b875e<=0x0)return this['wake']();this['timer']=setTimeout(()=>{const _0xb9eb71=_0x511ee9;this['timer']=null,this[_0xb9eb71(0x740)]();},Math[_0x511ee9(0x614)](_0x4b875e));if(this[_0x511ee9(0x4dc)][_0x511ee9(0x35b)])this[_0x511ee9(0x4dc)]['unref']();}}return pump={'Pumper':_0x135cef},pump;}var dist$1={},hasRequiredDist$1;function requireDist$1(){const _0x475551=_0x36292f;if(hasRequiredDist$1)return dist$1;hasRequiredDist$1=0x1;const _0x5c64ac=Symbol[_0x475551(0x7e8)](_0x475551(0x5f1)),_0x2d4cc6={'value':null,'done':!![]},_0x2bf305={'value':null,'done':!![]};!Symbol[_0x475551(0x672)]&&(Symbol[_0x475551(0x672)]=Symbol[_0x475551(0x7e8)]('Symbol.asyncIterator'));const _0x58d2e3={};class _0x5e221a{constructor(_0x511591){const _0x5e6e2c=_0x475551;_0x511591&&(this[_0x5e6e2c(0x7c3)]=_0x511591[Symbol[_0x5e6e2c(0x21f)]][_0x5e6e2c(0x6b5)](_0x511591));}[_0x475551(0x2fe)](_0x4e7873){const _0x256180=_0x475551;let _0x3a1562=this,_0x2d630f=new _0x5e221a();return _0x2d630f[_0x256180(0x7c3)]=(_0x376009=_0x58d2e3)=>{const _0x1658e6=_0x256180,{async:_0x1da180}=_0x376009;let _0x26d3a6=_0x3a1562[_0x1da180?Symbol[_0x1658e6(0x672)]:Symbol['iterator']](_0x376009);if(!_0x1da180)_0x3a1562[_0x1658e6(0x1d9)]=!![];let _0x4e4bc9=-0x1;return{'next'(_0x333708){const _0x27b857=_0x1658e6;let _0x3920e7;do{let _0x4fe9c2;try{if(_0x333708)_0x4fe9c2=_0x333708,_0x333708=null;else{_0x4e4bc9++,_0x4fe9c2=_0x26d3a6[_0x27b857(0x2ee)]();if(_0x4fe9c2[_0x27b857(0x179)])return!_0x1da180&&this[_0x27b857(0x5bb)](new Error('Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results')),_0x4fe9c2['then'](_0x1c2329=>this[_0x27b857(0x2ee)](_0x1c2329),_0x41fc18=>{const _0x1885bc=_0x27b857;return this[_0x1885bc(0x5bb)](_0x41fc18);});}if(_0x4fe9c2['done']===!![]){this['done']=!![];if(_0x2d630f[_0x27b857(0x216)])_0x2d630f[_0x27b857(0x216)]();return _0x4fe9c2;}try{_0x3920e7=_0x4e7873[_0x27b857(0x54b)](_0x3a1562,_0x4fe9c2[_0x27b857(0x1be)],_0x4e4bc9);if(_0x3920e7&&_0x3920e7['then']&&_0x1da180)return _0x3920e7[_0x27b857(0x179)](_0x1bbc4b=>_0x1bbc4b===_0x5c64ac?this['next']():{'value':_0x1bbc4b},_0x567506=>{const _0x459725=_0x27b857;if(_0x376009[_0x459725(0x261)])_0x567506[_0x459725(0x7ac)]=!![];return this[_0x459725(0x5bb)](_0x567506);});}catch(_0x99ff8e){if(_0x376009[_0x27b857(0x261)])_0x99ff8e[_0x27b857(0x7ac)]=!![];throw _0x99ff8e;}}catch(_0x568b29){if(_0x2d630f[_0x27b857(0x13c)])try{_0x3920e7=_0x2d630f[_0x27b857(0x13c)](_0x568b29,_0x4e4bc9);}catch(_0x825664){return this[_0x27b857(0x5bb)](_0x825664);}else return this[_0x27b857(0x5bb)](_0x568b29);}}while(_0x3920e7===_0x5c64ac);if(_0x3920e7===_0x2d4cc6)return this[_0x27b857(0x4ab)]();return{'value':_0x3920e7};},'return'(_0xf3e2a3){const _0x328b2f=_0x1658e6;if(!this[_0x328b2f(0x707)]){_0x2bf305['value']=_0xf3e2a3,this[_0x328b2f(0x707)]=!![];if(_0x2d630f[_0x328b2f(0x216)])_0x2d630f[_0x328b2f(0x216)]();_0x26d3a6[_0x328b2f(0x4ab)]?.();}return _0x2bf305;},'throw'(_0x13b240){const _0x43e9cf=_0x1658e6;if(_0x13b240['continueIteration']){if(_0x2d630f[_0x43e9cf(0x68e)])try{return{'value':_0x2d630f[_0x43e9cf(0x68e)](_0x13b240)};}catch(_0x533105){this['return']();throw _0x533105;}if(_0x376009[_0x43e9cf(0x261)])throw _0x13b240;}this['return']();throw _0x13b240;}};},_0x2d630f;}[Symbol[_0x475551(0x672)]](_0xafd961){if(_0xafd961)_0xafd961={..._0xafd961,'async':!![]};else _0xafd961={'async':!![]};return this['iterator']=this['iterate'](_0xafd961);}[Symbol[_0x475551(0x21f)]](_0x3f081f){const _0xb7f05d=_0x475551;return this['iterator']=this[_0xb7f05d(0x7c3)](_0x3f081f);}['filter'](_0x3b8be6){const _0x568d97=_0x475551;let _0x14c8ab=this[_0x568d97(0x2fe)](_0x54e983=>{let _0x468bb6=_0x3b8be6(_0x54e983);if(_0x468bb6?.['then'])return _0x468bb6['then'](_0x304ee1=>_0x304ee1?_0x54e983:_0x5c64ac);else return _0x468bb6?_0x54e983:_0x5c64ac;}),_0x1f588c=_0x14c8ab[_0x568d97(0x7c3)];return _0x14c8ab[_0x568d97(0x7c3)]=(_0x3265a1=_0x58d2e3)=>{const _0x326741=_0x568d97;if(_0x3265a1[_0x326741(0x261)])_0x3265a1={..._0x3265a1,'continueOnRecoverableError':![]};return _0x1f588c(_0x3265a1);},_0x14c8ab;}[_0x475551(0x55b)](_0x30d71b){const _0x470b12=_0x475551;let _0x374643=this[_0x470b12(0x21f)]=this[_0x470b12(0x7c3)](),_0xc06e14;while((_0xc06e14=_0x374643[_0x470b12(0x2ee)]())[_0x470b12(0x707)]!==!![]){_0x30d71b(_0xc06e14[_0x470b12(0x1be)]);}}[_0x475551(0x354)](_0x435578){const _0x5698a6=_0x475551;let _0x50eee2=new _0x5e221a();return _0x50eee2[_0x5698a6(0x7c3)]=(_0x61f437=_0x58d2e3)=>{const _0xdb676c=_0x5698a6;let _0x585c15=this[_0xdb676c(0x21f)]=this[_0xdb676c(0x7c3)](_0x61f437),_0x138a13=!![];function _0x5d025c(_0x3dcbf6){const _0x430752=_0xdb676c;if(_0x138a13)try{_0x138a13=![],_0x585c15=_0x435578[_0x61f437[_0x430752(0x645)]?Symbol['asyncIterator']:Symbol[_0x430752(0x21f)]](),_0x3dcbf6=_0x585c15['next']();if(_0x50eee2['onDone']){if(_0x3dcbf6['then']){if(!_0x61f437[_0x430752(0x645)])throw new Error(_0x430752(0x107));_0x3dcbf6['then'](_0x10612b=>{const _0x4ddb02=_0x430752;if(_0x10612b[_0x4ddb02(0x707)]())_0x50eee2[_0x4ddb02(0x216)]();},_0x269c84=>{const _0x230852=_0x430752;this[_0x230852(0x4ab)]();throw _0x269c84;});}else{if(_0x3dcbf6[_0x430752(0x707)])_0x50eee2['onDone']();}}}catch(_0x5c3c40){this['throw'](_0x5c3c40);}else{if(_0x50eee2[_0x430752(0x216)])_0x50eee2[_0x430752(0x216)]();}return _0x3dcbf6;}return{'next'(){const _0xbb8b10=_0xdb676c;try{let _0x22a491=_0x585c15[_0xbb8b10(0x2ee)]();if(_0x22a491[_0xbb8b10(0x179)]){if(!_0x61f437[_0xbb8b10(0x645)])throw new Error(_0xbb8b10(0x107));return _0x22a491['then'](_0x148759=>{if(_0x148759['done'])return _0x5d025c(_0x148759);return _0x148759;});}if(_0x22a491['done'])return _0x5d025c(_0x22a491);return _0x22a491;}catch(_0xc0327){this[_0xbb8b10(0x5bb)](_0xc0327);}},'return'(_0x575078){const _0x4bcb97=_0xdb676c;if(!this[_0x4bcb97(0x707)]){_0x2bf305[_0x4bcb97(0x1be)]=_0x575078,this[_0x4bcb97(0x707)]=!![];if(_0x50eee2[_0x4bcb97(0x216)])_0x50eee2['onDone']();_0x585c15[_0x4bcb97(0x4ab)]();}return _0x2bf305;},'throw'(_0x2b5ebf){const _0x40d805=_0xdb676c;if(_0x61f437[_0x40d805(0x261)])throw _0x2b5ebf;this[_0x40d805(0x4ab)]();throw _0x2b5ebf;}};},_0x50eee2;}[_0x475551(0x467)](_0xc85fe5){let _0x3daace=new _0x5e221a();return _0x3daace['iterate']=(_0x25c4e2=_0x58d2e3)=>{const _0x10f6b4=_0x303e;let _0x46b0df=this[_0x10f6b4(0x21f)]=this[_0x10f6b4(0x7c3)](_0x25c4e2),_0x2cfc56;return{'next'(_0x15a9dc){const _0x5ce14a=_0x10f6b4;try{do{if(_0x2cfc56){let _0x32cf0b;if(_0x15a9dc)_0x32cf0b=_0x15a9dc,_0x15a9dc=undefined;else _0x32cf0b=_0x2cfc56[_0x5ce14a(0x2ee)]();if(_0x32cf0b[_0x5ce14a(0x179)]){if(!_0x25c4e2[_0x5ce14a(0x645)])throw new Error(_0x5ce14a(0x107));return _0x32cf0b[_0x5ce14a(0x179)](_0x4b51a9=>this[_0x5ce14a(0x2ee)](_0x4b51a9));}if(!_0x32cf0b['done'])return _0x32cf0b;}let _0x5cb67d;if(_0x15a9dc!=undefined)_0x5cb67d=_0x15a9dc,_0x15a9dc=undefined;else _0x5cb67d=_0x46b0df[_0x5ce14a(0x2ee)]();if(_0x5cb67d[_0x5ce14a(0x179)]){if(!_0x25c4e2['async'])throw new Error(_0x5ce14a(0x107));return _0x2cfc56=undefined,_0x5cb67d[_0x5ce14a(0x179)](_0x378082=>this[_0x5ce14a(0x2ee)](_0x378082));}if(_0x5cb67d[_0x5ce14a(0x707)]){if(_0x3daace[_0x5ce14a(0x216)])_0x3daace[_0x5ce14a(0x216)]();return _0x5cb67d;}try{let _0x91f995=_0xc85fe5(_0x5cb67d[_0x5ce14a(0x1be)]);if(_0x91f995?.[_0x5ce14a(0x179)]){if(!_0x25c4e2[_0x5ce14a(0x645)])throw new Error('Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results');return _0x91f995[_0x5ce14a(0x179)](_0x3d0bf0=>{const _0x3fe735=_0x5ce14a;return Array[_0x3fe735(0x486)](_0x3d0bf0)||_0x3d0bf0 instanceof _0x5e221a?(_0x2cfc56=_0x3d0bf0[Symbol[_0x3fe735(0x21f)]](),this[_0x3fe735(0x2ee)]()):(_0x2cfc56=null,{'value':_0x3d0bf0});},_0x3bbc35=>{const _0x2e60da=_0x5ce14a;if(_0x25c4e2['continueOnRecoverableError'])_0x3bbc35[_0x2e60da(0x7ac)]=!![];this['throw'](_0x3bbc35);});}if(Array['isArray'](_0x91f995)||_0x91f995 instanceof _0x5e221a)_0x2cfc56=_0x91f995[Symbol[_0x5ce14a(0x21f)]]();else return _0x2cfc56=null,{'value':_0x91f995};}catch(_0x3159ad){if(_0x25c4e2[_0x5ce14a(0x261)])_0x3159ad[_0x5ce14a(0x7ac)]=!![];throw _0x3159ad;}}while(!![]);}catch(_0x5cbd98){this['throw'](_0x5cbd98);}},'return'(){const _0x59b652=_0x10f6b4;if(_0x3daace[_0x59b652(0x216)])_0x3daace[_0x59b652(0x216)]();if(_0x2cfc56)_0x2cfc56['return']();return _0x46b0df['return']();},'throw'(_0x11c4ce){const _0x5732c1=_0x10f6b4;if(_0x25c4e2[_0x5732c1(0x261)])throw _0x11c4ce;if(_0x3daace[_0x5732c1(0x216)])_0x3daace[_0x5732c1(0x216)]();if(_0x2cfc56)_0x2cfc56[_0x5732c1(0x4ab)]();this[_0x5732c1(0x4ab)]();throw _0x11c4ce;}};},_0x3daace;}[_0x475551(0x6ea)](_0x1e0989,_0xf668b3){const _0x5b4f61=_0x475551;let _0x26f3c9=this['map']((_0x29a5ca,_0x4acebf)=>{const _0x159ea5=_0x303e;if(_0x4acebf<_0x1e0989)return _0x5c64ac;if(_0x4acebf>=_0xf668b3)return _0x2d4cc6[_0x159ea5(0x1be)]=_0x29a5ca,_0x2d4cc6;return _0x29a5ca;});return _0x26f3c9[_0x5b4f61(0x13c)]=(_0x28b78a,_0x2eb650)=>{if(_0x2eb650<_0x1e0989)return _0x5c64ac;if(_0x2eb650>=_0xf668b3)return _0x2d4cc6;throw _0x28b78a;},_0x26f3c9;}[_0x475551(0x813)](_0x442034){const _0x561dbb=_0x475551;if(typeof _0x442034!=='function')throw new TypeError(_0x561dbb(0x7c4));let _0x5490c9=this[_0x561dbb(0x2fe)](_0x100b08=>{return _0x100b08;}),_0x57f418=_0x5490c9[_0x561dbb(0x7c3)];return _0x5490c9[_0x561dbb(0x7c3)]=(_0x1805a9=_0x58d2e3)=>{return _0x57f418({..._0x1805a9,'continueOnRecoverableError':!![]});},_0x5490c9[_0x561dbb(0x68e)]=_0x442034,_0x5490c9;}[_0x475551(0x2ee)](){const _0x4f7305=_0x475551;if(!this[_0x4f7305(0x21f)])this[_0x4f7305(0x21f)]=this[_0x4f7305(0x7c3)]();return this[_0x4f7305(0x21f)][_0x4f7305(0x2ee)]();}[_0x475551(0x1a5)](){const _0x55cb98=_0x475551;if(this[_0x55cb98(0x58a)]&&this[_0x55cb98(0x58a)][_0x55cb98(0x55b)])return this['asArray'];const _0x2013c5=new Error('Can\x20not\x20serialize\x20async\x20iterables\x20without\x20first\x20calling\x20resolving\x20asArray');_0x2013c5[_0x55cb98(0x4c5)]=this[_0x55cb98(0x58a)];throw _0x2013c5;}get['asArray'](){const _0x1da87d=_0x475551;if(this[_0x1da87d(0x5fd)])return this[_0x1da87d(0x5fd)];let _0x3d8fbb=new Promise((_0x5e8d99,_0x36a3d4)=>{const _0x4aa4c8=_0x1da87d;let _0x5a57aa=this['iterate'](!![]),_0x10d3a4=[],_0x2b14d0=this;Object[_0x4aa4c8(0x629)](_0x10d3a4,_0x4aa4c8(0x217),{'value':_0x2b14d0});function _0x2dcb86(_0x3ec8f0){const _0x42dddd=_0x4aa4c8;while(_0x3ec8f0[_0x42dddd(0x707)]!==!![]){if(_0x3ec8f0[_0x42dddd(0x179)])return _0x3ec8f0[_0x42dddd(0x179)](_0x2dcb86);else _0x10d3a4[_0x42dddd(0x460)](_0x3ec8f0[_0x42dddd(0x1be)]);_0x3ec8f0=_0x5a57aa[_0x42dddd(0x2ee)]();}_0x5e8d99(_0x2b14d0[_0x42dddd(0x5fd)]=_0x10d3a4);}_0x2dcb86(_0x5a57aa['next']());});return _0x3d8fbb[_0x1da87d(0x217)]=this,this['_asArray']||(this[_0x1da87d(0x5fd)]=_0x3d8fbb);}['resolveData'](){const _0x24df92=_0x475551;return this[_0x24df92(0x58a)];}['at'](_0x295569){for(let _0x49dda2 of this){if(_0x295569--===0x0)return _0x49dda2;}}}return _0x5e221a[_0x475551(0x556)][_0x475551(0x7a7)]=_0x2d4cc6,dist$1[_0x475551(0x6a3)]=_0x5e221a,dist$1[_0x475551(0x36f)]=_0x5c64ac,dist$1;}var iterable,hasRequiredIterable;function requireIterable(){const _0x29c20f=_0x36292f;if(hasRequiredIterable)return iterable;hasRequiredIterable=0x1;const {ExtendedIterable:_0x44ba9c}=requireDist$1(),_0x4911f5=Number(process.env.OKDB_NATIVE_RANGE_CHUNK)||0x3e8,_0x57ed7c=Math['min'](_0x4911f5,Number(process.env.OKDB_NATIVE_ROW_CHUNK)||0x100),_0x5c0b79=new Set([_0x29c20f(0x32f),_0x29c20f(0x4de),_0x29c20f(0x311),'getChanges']),_0x3d507e=Math[_0x29c20f(0x2f2)](_0x57ed7c,Number(process.env.OKDB_NATIVE_RANGE_FIRST)||0x1),_0x50be8c=0x4,_0x59df2a=(_0x5a6292,_0x48a03a=_0x4911f5)=>Math[_0x29c20f(0x2f2)](_0x48a03a,_0x5a6292*_0x50be8c),_0x38cd7b={'value':undefined,'done':!![]};function _0xf35be4(_0x2d69b1){const _0x3e6db8=_0x29c20f,_0x19f756=new _0x44ba9c();return _0x19f756[_0x3e6db8(0x7c3)]=()=>{let _0x52fb33=0x0;return{'next'(){const _0x3d5828=_0x303e;return _0x52fb33<_0x2d69b1[_0x3d5828(0x1e1)]?{'value':_0x2d69b1[_0x52fb33++],'done':![]}:{'value':undefined,'done':!![]};},'return'(){const _0x64bb77=_0x303e;return _0x52fb33=_0x2d69b1[_0x64bb77(0x1e1)],{'value':undefined,'done':!![]};},'throw'(){const _0x20280d=_0x303e;return _0x52fb33=_0x2d69b1[_0x20280d(0x1e1)],{'value':undefined,'done':!![]};}};},_0x19f756;}const _0x559d6f=_0x56d88e=>typeof _0x56d88e==='number'&&!Number['isNaN'](_0x56d88e)?Math['max'](0x0,Math[_0x29c20f(0x614)](_0x56d88e)):Infinity,_0x517cd5=_0x522d08=>typeof _0x522d08===_0x29c20f(0x2d3)?Math['max'](0x0,Math[_0x29c20f(0x104)](_0x522d08))||0x0:0x0;function _0x2f43d6(_0x303947,_0x1d9418,_0xfec9c5,_0x2a9e3d={}){const _0x4a4193=_0x29c20f,_0x4e52c2=new _0x44ba9c(),_0x24edec=(_0x2a9e3d[_0x4a4193(0x363)]||_0x559d6f)(_0x1d9418[_0x4a4193(0x601)]),_0x4bff2b=_0x2a9e3d[_0x4a4193(0x290)]?_0x57ed7c:_0x4911f5,_0x48363d=_0x2a9e3d[_0x4a4193(0x75f)]||((_0x38f26c,_0x3181b5)=>{const _0x5c5560=_0x4a4193;_0x38f26c[_0x5c5560(0x73d)]=_0x3181b5,_0x38f26c['exclusiveStart']=!![],delete _0x38f26c[_0x5c5560(0x4f9)];});let _0x102068=null;if(_0x2a9e3d[_0x4a4193(0x4b5)]){const _0x55ee56={..._0x1d9418,'limit':Math[_0x4a4193(0x2f2)](_0x3d507e,_0x24edec)};_0x102068={'rows':_0x303947(_0x55ee56),'limit':_0x55ee56[_0x4a4193(0x601)]};const _0x4ba0d8=_0x102068;queueMicrotask(()=>{const _0x4fba21=_0x4a4193;_0x4ba0d8[_0x4fba21(0x334)]=!![];});}return _0x4e52c2[_0x4a4193(0x7c3)]=()=>{const _0x3f801a=_0x4a4193;let _0x485d62=[],_0x4ccf3e=0x0,_0x4a3b3d=0x0,_0x3d4d86,_0x136c8d=![],_0x4c2d29=![],_0x35eeb4=_0x3d507e;if(_0x102068&&!_0x102068['dropped']&&!_0x102068['taken']){_0x102068['taken']=!![],_0x485d62=_0x102068[_0x3f801a(0x290)],_0x136c8d=!![],_0x35eeb4=_0x59df2a(_0x35eeb4,_0x4bff2b);if(_0x485d62['length']<_0x102068[_0x3f801a(0x601)])_0x4c2d29=!![];if(_0x485d62[_0x3f801a(0x1e1)])_0x3d4d86=_0xfec9c5(_0x485d62[_0x485d62[_0x3f801a(0x1e1)]-0x1]);}const _0x3af41b=()=>{const _0x38f7f6=_0x3f801a;if(_0x4c2d29)return;const _0x3b226f=_0x24edec-_0x4a3b3d;if(_0x3b226f<=0x0){_0x4c2d29=!![],_0x485d62=[];return;}const _0x4ab734={..._0x1d9418,'limit':Math['min'](_0x35eeb4,_0x3b226f)};if(_0x136c8d)_0x48363d(_0x4ab734,_0x3d4d86);_0x136c8d=!![],_0x35eeb4=_0x59df2a(_0x35eeb4,_0x4bff2b),_0x485d62=_0x303947(_0x4ab734),_0x4ccf3e=0x0;if(_0x485d62[_0x38f7f6(0x1e1)]<_0x4ab734[_0x38f7f6(0x601)])_0x4c2d29=!![];if(_0x485d62[_0x38f7f6(0x1e1)])_0x3d4d86=_0xfec9c5(_0x485d62[_0x485d62[_0x38f7f6(0x1e1)]-0x1]);};return{'next'(){const _0x538d91=_0x3f801a;if(_0x4ccf3e>=_0x485d62['length'])_0x3af41b();if(_0x4ccf3e>=_0x485d62[_0x538d91(0x1e1)])return{'value':undefined,'done':!![]};return _0x4a3b3d++,{'value':_0x485d62[_0x4ccf3e++],'done':![]};},'return'(){return _0x4c2d29=!![],_0x485d62=[],{'value':undefined,'done':!![]};},'throw'(){return _0x4c2d29=!![],_0x485d62=[],{'value':undefined,'done':!![]};}};},_0x4e52c2;}function _0x10bdcf(_0x1ce466,_0x49cecc,_0x259301,_0x4c163a,_0x239e2e={}){const _0x3bed79=_0x29c20f,_0x60f4a7=(_0x239e2e[_0x3bed79(0x363)]||_0x559d6f)(_0x4c163a&&_0x4c163a[_0x3bed79(0x601)]),_0x35b0de=_0x5c0b79[_0x3bed79(0x3a9)](_0x49cecc)?_0x57ed7c:_0x4911f5,_0x985368=(_0x239e2e[_0x3bed79(0x113)]||_0x517cd5)(_0x4c163a&&_0x4c163a['offset']),_0x377e92=(_0x18bd25,_0x15516a,_0x3ac7f3)=>{const _0x215ea0=_0x3bed79,_0x2a8d68=_0x60f4a7-_0x15516a,_0x72fc27=Math[_0x215ea0(0x2f2)](_0x3ac7f3,_0x2a8d68),_0x44b7df={'limit':_0x72fc27,'offset':_0x985368+_0x15516a},_0x4d2469=_0x1ce466('pinned',[_0x18bd25,_0x49cecc,_0x72fc27===_0x2a8d68?Infinity:_0x72fc27,..._0x259301(_0x44b7df)]);if(_0x4d2469[0x0]===-0x1){const _0x509807={'offset':_0x985368+_0x15516a};if(_0x2a8d68!==Infinity)_0x509807['limit']=_0x2a8d68;return{'pin':0x0,'rows':_0x1ce466(_0x49cecc,_0x259301(_0x509807)),'raw':Infinity,'eager':!![]};}return{'pin':_0x4d2469[0x0],'rows':_0x4d2469[0x1],'raw':_0x4d2469[0x2]};},_0x420636=_0x568788=>{const _0x78be81=_0x3bed79;if(_0x568788)_0x1ce466(_0x78be81(0x50c),[_0x568788]);};function _0x4cc213(_0x435333,_0x14567e,_0x2c2003){const _0x4ee4ce=_0x3bed79;let _0x3c7a57=0x0,_0x283afe=[],_0x1644bd=0x0,_0x15369a=_0x435333,_0x2e32a2=_0x3d507e,_0x3a3a94=_0x60f4a7-_0x435333<=0x0;if(_0x2c2003)({buf:_0x283afe,pos:_0x1644bd,consumed:_0x15369a,size:_0x2e32a2,exhausted:_0x3a3a94}=_0x2c2003);const _0x5cd307=_0x4d496d=>{const _0x1e1946=_0x303e;_0x3c7a57=_0x4d496d[_0x1e1946(0x417)],_0x283afe=_0x4d496d[_0x1e1946(0x290)],_0x1644bd=0x0,_0x15369a+=_0x4d496d[_0x1e1946(0x463)],_0x2e32a2=_0x59df2a(_0x2e32a2,_0x35b0de);if(!_0x3c7a57)_0x3a3a94=!![];};if(_0x14567e)_0x5cd307(_0x14567e);const _0x398cad=()=>{const _0x29122a=_0x3c7a57;_0x3c7a57=0x0,_0x420636(_0x29122a);},_0x542dcb={'next'(){const _0x355951=_0x303e;while(_0x1644bd>=_0x283afe[_0x355951(0x1e1)]){if(_0x3a3a94||_0x60f4a7-_0x15369a<=0x0)return _0x3a3a94=!![],_0x398cad(),_0x38cd7b;try{_0x5cd307(_0x377e92(_0x3c7a57,_0x15369a,_0x2e32a2));}catch(_0x1b3d3d){_0x3c7a57=0x0,_0x3a3a94=!![],_0x283afe=[];throw _0x1b3d3d;}}return{'value':_0x283afe[_0x1644bd++],'done':![]};},'return'(){return _0x398cad(),_0x38cd7b;},'throw'(){return _0x398cad(),_0x38cd7b;},'resumed'(){return _0x4cc213(0x0,null,{'buf':_0x283afe,'pos':_0x1644bd,'consumed':_0x15369a,'size':_0x2e32a2,'exhausted':_0x3a3a94});},[Symbol[_0x4ee4ce(0x21f)]](){return this;}};return _0x542dcb;}function _0x5483f7(){if(_0x60f4a7<=0x0)return null;const _0x3abec5=_0x377e92(0x0,0x0,_0x3d507e);return queueMicrotask(()=>{const _0x4b6b3c=_0x303e;!_0x3abec5[_0x4b6b3c(0x5b8)]&&(_0x3abec5[_0x4b6b3c(0x334)]=!![],_0x420636(_0x3abec5['pin']));}),_0x3abec5;}return{'source':_0x4cc213,'prefetch':_0x5483f7};}function _0x3ade9a(_0x575360){const _0x18acd0=_0x29c20f;if(!_0x575360||_0x575360[_0x18acd0(0x5b8)]||_0x575360[_0x18acd0(0x334)])return null;return _0x575360[_0x18acd0(0x5b8)]=!![],_0x575360;}return iterable={'fromArray':_0xf35be4,'chunkedRange':_0x2f43d6,'pinnedChunks':_0x10bdcf,'claimPrefetch':_0x3ade9a,'lmdbLimit':_0x559d6f,'lmdbOffset':_0x517cd5,'CHUNK':_0x4911f5,'ROW_CHUNK':_0x57ed7c,'FIRST':_0x3d507e},iterable;}var rawdb,hasRequiredRawdb;function requireRawdb(){const _0x33bd04=_0x36292f;if(hasRequiredRawdb)return rawdb;hasRequiredRawdb=0x1;const {fromArray:_0x2cb593}=requireIterable();class _0x59acd0{constructor(_0x373578,_0x36c64f='',_0x24d455={},_0x309274=null){const _0x2ffdae=_0x303e;this['_env']=_0x373578,this[_0x2ffdae(0x6bb)]=_0x36c64f,this[_0x2ffdae(0x71e)]=!!(_0x24d455&&_0x24d455[_0x2ffdae(0x71e)]),this[_0x2ffdae(0x128)]=!!(_0x24d455&&_0x24d455[_0x2ffdae(0x128)]),this[_0x2ffdae(0x368)]=_0x309274||this,this[_0x2ffdae(0x3ff)]=null;}get['_dupArg'](){const _0x41d47d=_0x303e;return this[_0x41d47d(0x71e)]?!![]:this[_0x41d47d(0x128)]?'v':![];}['_n'](_0x5d7f51,_0x37c447){const _0x5ebb08=_0x303e;return this[_0x5ebb08(0x3b4)][_0x5ebb08(0x229)][_0x5ebb08(0x6eb)]('raw',this[_0x5ebb08(0x3b4)][_0x5ebb08(0x6bb)],_0x5d7f51,[this[_0x5ebb08(0x6bb)],this[_0x5ebb08(0x726)],..._0x37c447],!![]);}[_0x33bd04(0x604)](_0x2a92f4,_0x5e404d){const _0x465d2b=_0x33bd04;return this['_env'][_0x465d2b(0x229)][_0x465d2b(0x6eb)](_0x465d2b(0x463),this['_env']['name'],_0x2a92f4,[this[_0x465d2b(0x6bb)],this[_0x465d2b(0x726)],..._0x5e404d],![]);}[_0x33bd04(0x516)](_0x262ecd){const _0x239c89=_0x33bd04,_0x14a265=this[_0x239c89(0x3b4)][_0x239c89(0x606)];if(_0x14a265)_0x14a265[_0x239c89(0x460)]({'sub':this['name'],'dup':this[_0x239c89(0x726)],..._0x262ecd});else this['_env'][_0x239c89(0x229)][_0x239c89(0x6eb)](_0x239c89(0x463),this[_0x239c89(0x3b4)]['name'],_0x239c89(0x29b),[[{'sub':this[_0x239c89(0x6bb)],'dup':this['_dupArg'],..._0x262ecd}]],!![]);}[_0x33bd04(0x1d2)](_0x4c3a95){return this['_read']('get',[_0x4c3a95]);}[_0x33bd04(0x186)](_0x28d344){const _0x3372ab=_0x33bd04;if(this['useVersions'])return this[_0x3372ab(0x604)](_0x3372ab(0x186),[_0x28d344]);const _0x254f17=this[_0x3372ab(0x1d2)](_0x28d344);return _0x254f17===undefined?undefined:{'value':_0x254f17};}[_0x33bd04(0x628)](_0x165eb0){const _0x1a5290=_0x33bd04;return this[_0x1a5290(0x604)](_0x1a5290(0x811),[_0x165eb0]);}[_0x33bd04(0x7e9)](_0xcd14f8){const _0x51c8e3=_0x33bd04;return this[_0x51c8e3(0x1d2)](_0xcd14f8);}['getRange'](_0xe87392={}){const _0x44b83b=_0x33bd04,_0x3b2bdf=this[_0x44b83b(0x604)](_0x44b83b(0x32f),[_0xe87392]),_0x50b31c=_0xe87392[_0x44b83b(0x5ab)]===![],_0xc61f9=_0xe87392[_0x44b83b(0x3ad)]===![];return _0x2cb593(_0x3b2bdf[_0x44b83b(0x2fe)](([_0x2c7b7c,_0x23a448,_0x44c2aa])=>{if(_0x50b31c)return _0x2c7b7c;if(_0xc61f9)return _0x23a448;return _0x44c2aa===undefined?{'key':_0x2c7b7c,'value':_0x23a448}:{'key':_0x2c7b7c,'value':_0x23a448,'version':_0x44c2aa};}));}[_0x33bd04(0x808)](_0x2a9573={}){const _0x39d824=_0x33bd04;return _0x2cb593(this[_0x39d824(0x604)](_0x39d824(0x32f),[_0x2a9573])[_0x39d824(0x2fe)](([_0x25731b])=>_0x25731b));}['getValues'](_0x2c5601,_0x1b2b01={}){const _0x34e63b=_0x33bd04,_0x4a339f=this[_0x34e63b(0x604)](_0x34e63b(0x32f),[{..._0x1b2b01,'start':_0x2c5601,'end':_0x2c5601,'inclusiveEnd':!![]}]);return _0x2cb593(_0x4a339f[_0x34e63b(0x2fe)](([,_0x1d13ea])=>_0x1d13ea));}['getCount'](_0x5ab189={}){const _0x3fe8a6=_0x33bd04;return this['_read'](_0x3fe8a6(0x1cd),[_0x5ab189]);}[_0x33bd04(0x5a5)](){return{'entryCount':this['getCount']()};}['put'](_0x2bd360,_0x4f0c82,_0x1c00f5){const _0x13439a=_0x33bd04;return this['_write']({'op':'put','key':_0x2bd360,'value':_0x4f0c82,'version':_0x1c00f5}),Promise[_0x13439a(0x809)](!![]);}[_0x33bd04(0x4fe)](_0x347b8d,_0x39aab8,_0x2b8534){const _0x799ff4=_0x33bd04;return this[_0x799ff4(0x516)]({'op':_0x799ff4(0x4f8),'key':_0x347b8d,'value':_0x39aab8,'version':_0x2b8534}),!![];}[_0x33bd04(0x4ec)](_0x134ec6,_0x3b3225){const _0x2bf0ac=_0x33bd04;return this[_0x2bf0ac(0x516)]({'op':'remove','key':_0x134ec6,'value':_0x3b3225}),Promise[_0x2bf0ac(0x809)](!![]);}[_0x33bd04(0x696)](_0x1ae64d,_0x197590){const _0x21c5af=_0x33bd04;return this[_0x21c5af(0x516)]({'op':'remove','key':_0x1ae64d,'value':_0x197590}),!![];}[_0x33bd04(0x1d1)](){const _0x12997a=_0x33bd04;this['_write']({'op':_0x12997a(0x352)});}[_0x33bd04(0x2c2)](){const _0x595bef=_0x33bd04;return this[_0x595bef(0x516)]({'op':_0x595bef(0x352)}),Promise['resolve']();}[_0x33bd04(0x51f)](){const _0xafcea4=_0x33bd04;this[_0xafcea4(0x1d1)]();}['openDB'](_0x2b0ade,_0x2b19b5={}){const _0x276860=_0x33bd04,_0x1b0d79=typeof _0x2b0ade===_0x276860(0x304)?_0x2b0ade:_0x2b19b5,_0x3de47e=typeof _0x2b0ade===_0x276860(0x304)?_0x2b0ade['name']:_0x2b0ade,_0x459253=new _0x59acd0(this['_env'],_0x3de47e,_0x1b0d79);return _0x459253[_0x276860(0x516)]({'op':_0x276860(0x1f5)}),_0x459253;}[_0x33bd04(0x379)](){}[_0x33bd04(0x5a4)](_0xada47){const _0x40adf9=_0x33bd04;return this[_0x40adf9(0x6a4)](_0xada47);}async['transaction'](_0x413775){const _0x4e3c5d=_0x33bd04;return this[_0x4e3c5d(0x6a4)](_0x413775);}[_0x33bd04(0x168)](_0x25e06e){const _0x23a1dd=_0x33bd04;return this[_0x23a1dd(0x6a4)](_0x25e06e);}[_0x33bd04(0x6a4)](_0x58b0b4){const _0x55afb1=_0x33bd04,_0x2de4b8=this[_0x55afb1(0x3b4)];if(_0x2de4b8['_rawTxnBuf'])return _0x58b0b4();_0x2de4b8[_0x55afb1(0x606)]=[];let _0x450451;try{_0x450451=_0x58b0b4();}catch(_0x3e353e){_0x2de4b8[_0x55afb1(0x606)]=null;throw _0x3e353e;}const _0x50e6e9=_0x2de4b8['_rawTxnBuf'];_0x2de4b8[_0x55afb1(0x606)]=null;if(_0x50e6e9['length'])_0x2de4b8['okdb']['_call'](_0x55afb1(0x463),_0x2de4b8[_0x55afb1(0x6bb)],_0x55afb1(0x29b),[_0x50e6e9],!![]);return _0x450451;}[_0x33bd04(0x66c)](){return{'done'(){}};}[_0x33bd04(0x7de)](){}}return rawdb={'RawDb':_0x59acd0},rawdb;}var views,hasRequiredViews;function requireViews(){const _0x15fbab=_0x36292f;if(hasRequiredViews)return views;hasRequiredViews=0x1;const {RawDb:_0x1c57b2}=requireRawdb();class _0x22a4ce{constructor(_0x17f21e){const _0x1bc87a=_0x303e;this['env']=_0x17f21e,this['_n']=(_0x23d808,_0x5cdfd8,_0x595c4c=!![])=>_0x17f21e[_0x1bc87a(0x229)][_0x1bc87a(0x6eb)](_0x1bc87a(0x2d6),_0x17f21e[_0x1bc87a(0x6bb)],_0x23d808,_0x5cdfd8,_0x595c4c);}get[_0x15fbab(0x172)](){const _0xded155=_0x15fbab,_0x322ecc=this,_0x3b8741=this[_0xded155(0x586)],_0x1a2699=_0x5d60fb=>_0x5d60fb?new _0x1c57b2(_0x3b8741,_0x5d60fb[_0xded155(0x6bb)],{'dupSort':_0x5d60fb[_0xded155(0x545)]}):undefined,_0x4959f3=_0x5d31fa=>{const _0x11c319=_0xded155,_0x242ef9=_0x322ecc['_n']('stateInfo',[_0x5d31fa],![]);if(!_0x242ef9)return undefined;const _0x397354=_0x242ef9[_0x11c319(0x5bc)],_0xa8af39=new Map(Object['entries'](_0x397354[_0x11c319(0x137)])),_0x405e72=new Map(Object[_0x11c319(0x111)](_0x242ef9[_0x11c319(0x18d)])[_0x11c319(0x2fe)](([_0x18aca2,_0x520254])=>[_0x18aca2,_0x1a2699(_0x520254)]));return{'name':_0x5d31fa,'compiled':{'T':_0x397354['T'],'reducers':_0x397354[_0x11c319(0x423)],'refs':_0xa8af39,'granId':_0x397354[_0x11c319(0x385)],'type':_0x397354[_0x11c319(0x74e)],'_nidFor':_0x49275d=>_0x322ecc['_n'](_0x11c319(0x2de),[_0x5d31fa,_0x49275d],![])},'viewDb':_0x1a2699(_0x242ef9[_0x11c319(0x21b)][_0x11c319(0x265)]),'metaDb':_0x1a2699(_0x242ef9[_0x11c319(0x21b)][_0x11c319(0x6b3)]),'itemsDb':_0x1a2699(_0x242ef9['dbs'][_0x11c319(0x43f)]),'bucketsDb':_0x1a2699(_0x242ef9[_0x11c319(0x21b)][_0x11c319(0x42c)]),'sortedDb':_0x1a2699(_0x242ef9[_0x11c319(0x21b)][_0x11c319(0x6fc)]),'groupsDb':_0x1a2699(_0x242ef9[_0x11c319(0x21b)][_0x11c319(0x325)]),'prevDb':_0x1a2699(_0x242ef9[_0x11c319(0x21b)][_0x11c319(0x37c)]),'refItemsDbs':_0x405e72,'refTrackingDbs':new Map(Object['entries'](_0x242ef9[_0x11c319(0x6fb)]||{})[_0x11c319(0x2fe)](([_0x3c2840,_0x29325d])=>[_0x3c2840,_0x1a2699(_0x29325d)])),'stopFn':_0x242ef9[_0x11c319(0x59c)]?async()=>_0x322ecc['_n'](_0x11c319(0x530),[_0x5d31fa]):null,'bootstrapWorker':null};};return{'get':_0x3e7e60=>_0x4959f3(_0x3e7e60),'has':_0x501040=>_0x322ecc['_n'](_0xded155(0x573),[],![])[_0xded155(0x459)](_0x501040),'keys':()=>_0x322ecc['_n'](_0xded155(0x573),[],![])[Symbol[_0xded155(0x21f)]](),get 'size'(){const _0x1e2567=_0xded155;return _0x322ecc['_n'](_0x1e2567(0x573),[],![])[_0x1e2567(0x1e1)];},[Symbol[_0xded155(0x21f)]]:()=>_0x322ecc['_n'](_0xded155(0x573),[],![])[_0xded155(0x2fe)](_0x5411d=>[_0x5411d,_0x4959f3(_0x5411d)])[Symbol['iterator']]()};}get['_customReducers'](){const _0x4121e5=_0x15fbab,_0x25d2e2=this;return{'has':_0x210cad=>_0x25d2e2['_n'](_0x4121e5(0x7d7),[],![])[_0x4121e5(0x459)](_0x210cad),get 'size'(){const _0x301549=_0x4121e5;return _0x25d2e2['_n'](_0x301549(0x7d7),[],![])[_0x301549(0x1e1)];},'keys':()=>_0x25d2e2['_n'](_0x4121e5(0x7d7),[],![])[Symbol[_0x4121e5(0x21f)]]()};}async['bootSyncedViewsInline'](){const _0x2895b1=_0x15fbab;return this['_n'](_0x2895b1(0x5e1),[]);}async['bootSyncedViews'](_0x342b14={}){const _0x395d41=_0x15fbab;return this['_n'](_0x395d41(0x721),[_0x342b14]);}async[_0x15fbab(0x717)](_0x377a66,_0x263379){const _0x96ff02=_0x15fbab;return this['_n'](_0x96ff02(0x717),[_0x377a66,_0x263379]),{'name':_0x377a66};}[_0x15fbab(0x1d2)](_0x20ab57,_0xd077d4={}){const _0x47aaea=_0x15fbab,_0x16b523=this['_n']('get',[_0x20ab57,{'preview':_0xd077d4?.[_0x47aaea(0x1bf)]??{}}],![]);if(_0x16b523==null)return null;const _0x5ae39c=this['_n'](_0x47aaea(0x791),[_0x20ab57],![]);if(!_0x5ae39c)return _0x16b523;const _0x39288d=_0x25ec6e=>(_0x3170df={})=>this['_n'](_0x47aaea(0x254),[_0x20ab57,_0x25ec6e,_0x3170df],![]);if(_0x5ae39c[_0x47aaea(0x129)]){_0x16b523['items']=_0x39288d({'kind':_0x47aaea(0x129)});for(const _0x5dfed0 of _0x5ae39c[_0x47aaea(0x423)]){if(!_0x5dfed0['items'])continue;if(_0x5dfed0[_0x47aaea(0x1e8)]){const _0x409153=_0x16b523[_0x5dfed0[_0x47aaea(0x6bb)]];if(_0x409153?.[_0x47aaea(0x1bf)]&&Array['isArray'](_0x409153[_0x47aaea(0x1bf)])){for(const _0x1681d6 of _0x409153[_0x47aaea(0x1bf)])_0x1681d6[_0x47aaea(0x254)]=_0x39288d({'kind':'group','reducer':_0x5dfed0['name'],'key':_0x1681d6[_0x47aaea(0x119)]});}}else _0x16b523[_0x5dfed0['name']]&&(_0x16b523[_0x5dfed0[_0x47aaea(0x6bb)]][_0x47aaea(0x254)]=_0x39288d({'kind':_0x47aaea(0x763),'reducer':_0x5dfed0[_0x47aaea(0x6bb)]}));}}for(const _0x2a7a4d of _0x5ae39c['refs']){if(!_0x2a7a4d[_0x47aaea(0x129)])continue;const _0x1ca15f=_0x16b523[_0x2a7a4d[_0x47aaea(0x6bb)]];if(!_0x1ca15f||typeof _0x1ca15f!=='object')continue;_0x1ca15f[_0x47aaea(0x254)]=_0x39288d({'kind':'view','ref':_0x2a7a4d[_0x47aaea(0x6bb)]});for(const _0x2673ca of _0x2a7a4d[_0x47aaea(0x423)]){if(!_0x2673ca[_0x47aaea(0x254)])continue;if(_0x2673ca[_0x47aaea(0x1e8)]){const _0x74a412=_0x1ca15f[_0x2673ca[_0x47aaea(0x6bb)]];if(_0x74a412?.[_0x47aaea(0x1bf)]&&Array[_0x47aaea(0x486)](_0x74a412[_0x47aaea(0x1bf)])){for(const _0x19105b of _0x74a412[_0x47aaea(0x1bf)])_0x19105b[_0x47aaea(0x254)]=_0x39288d({'kind':_0x47aaea(0x32e),'ref':_0x2a7a4d[_0x47aaea(0x6bb)],'reducer':_0x2673ca[_0x47aaea(0x6bb)],'key':_0x19105b[_0x47aaea(0x119)]});}}else _0x1ca15f[_0x2673ca[_0x47aaea(0x6bb)]]&&(_0x1ca15f[_0x2673ca[_0x47aaea(0x6bb)]][_0x47aaea(0x254)]=_0x39288d({'kind':_0x47aaea(0x763),'ref':_0x2a7a4d[_0x47aaea(0x6bb)],'reducer':_0x2673ca['name']}));}}return _0x16b523;}['getMeta'](_0x235ec0){const _0x47e710=_0x15fbab;return this['_n'](_0x47e710(0x4c8),[_0x235ec0],![]);}['itemsGroups'](_0x205091,_0x3ffcba={}){const _0x5ab660=_0x15fbab;return this['_n'](_0x5ab660(0x3d9),[_0x205091,_0x3ffcba],![]);}['range'](_0x5b05e2,_0x5fdef8={}){const _0x3c7d46=_0x15fbab;return this['_n'](_0x3c7d46(0x331),[_0x5b05e2,_0x5fdef8],![]);}[_0x15fbab(0x1ff)](_0x28663c,_0xb5366f={}){const _0x5a7a82=_0x15fbab;return this['_n'](_0x5a7a82(0x1ff),[_0x28663c,_0xb5366f],![]);}async[_0x15fbab(0x646)](){const _0x4ffe57=_0x15fbab;return this['_n'](_0x4ffe57(0x646),[],![]);}async[_0x15fbab(0x5af)](_0x4942b8){return this['_n']('getDefinition',[_0x4942b8],![])??null;}async[_0x15fbab(0x4ec)](_0x5411ad,_0x71af46={}){const _0x31bef4=_0x15fbab;return this['_n'](_0x31bef4(0x4ec),[_0x5411ad,_0x71af46]);}async['stop'](_0x230860){const _0x1ffddf=_0x15fbab;return this['_n'](_0x1ffddf(0x209),[_0x230860]);}async[_0x15fbab(0x73d)](_0x346d21){return this['_n']('start',[_0x346d21]);}async['rebuild'](_0xeb1c1e){const _0x165658=_0x15fbab;return this['_n'](_0x165658(0x512),[_0xeb1c1e]);}async[_0x15fbab(0x389)](_0x45463b){const _0x42fbe1=_0x15fbab;return this['_n'](_0x42fbe1(0x389),[_0x45463b]);}[_0x15fbab(0x362)](_0x1f104a,_0x538faf={}){const _0x5a4ca4=_0x15fbab;return this['_n'](_0x5a4ca4(0x362),[_0x1f104a,{'apply':_0x538faf&&_0x538faf[_0x5a4ca4(0x195)]}]);}}return views={'OKDBViews':_0x22a4ce},views;}var queue,hasRequiredQueue;function requireQueue(){const _0x2aa3e3=_0x36292f;if(hasRequiredQueue)return queue;hasRequiredQueue=0x1;const {OKDBError:_0x112b88}=requireErrors(),_0x59d735=requireBridge();class _0x384514{constructor(_0x4ec2e1){const _0x1f708b=_0x303e;this['env']=_0x4ec2e1,this[_0x1f708b(0x229)]=_0x4ec2e1[_0x1f708b(0x229)],this[_0x1f708b(0x282)]=_0x4ec2e1[_0x1f708b(0x229)][_0x1f708b(0x282)][_0x1f708b(0x77b)]({'feature':_0x1f708b(0x679)}),this[_0x1f708b(0x26f)]=new Set();}['_n'](_0x7214e7,_0x4ebd6d,_0x2d4d1f=!![]){const _0x13ed73=_0x303e;return this[_0x13ed73(0x229)][_0x13ed73(0x6eb)](_0x13ed73(0x679),this[_0x13ed73(0x586)][_0x13ed73(0x6bb)],_0x7214e7,_0x4ebd6d,_0x2d4d1f);}['_w'](_0x417868,_0x23ff7a){const _0x2e535b=_0x303e;return this[_0x2e535b(0x229)]['_settleWrite'](this['_n'](_0x417868,_0x23ff7a));}async['_ensure'](){const _0x302dd5=_0x303e;return this['_n'](_0x302dd5(0x1f5),[]);}async['list'](_0x1ed07a={}){const _0xc005f3=_0x303e;return this['_n'](_0xc005f3(0x646),[_0x1ed07a],![]);}get['_logsDb'](){const _0xb00ea2=_0x303e,{RawDb:_0x2c2f7}=requireRawdb();return this[_0xb00ea2(0x60d)]||(this[_0xb00ea2(0x60d)]=new _0x2c2f7(this['env'],'~queue_logs'));}async[_0x2aa3e3(0x44c)](){return this['_w']('sweepOrphanLogs',[]);}async[_0x2aa3e3(0x43a)](_0x4dc9da,_0x448683,_0x377723={}){const _0x3b4f05=_0x2aa3e3,{txn:_0x3c5554,..._0x298582}=_0x377723||{};if(_0x3c5554)return this[_0x3b4f05(0x59a)](_0x3c5554,_0x4dc9da,_0x448683,_0x298582);const _0x422306=this[_0x3b4f05(0x229)][_0x3b4f05(0x6cc)];if(_0x422306&&_0x422306['queue']['length'])_0x422306[_0x3b4f05(0x373)]();const _0x4fb14f=this['_n'](_0x3b4f05(0x698),[_0x4dc9da,_0x448683,_0x298582],![]);return this[_0x3b4f05(0x229)]['_settleWrite'](_0x4fb14f['id'])[_0x3b4f05(0x179)](_0x3e6a7f=>{const _0x464d3f=_0x3b4f05;if(_0x4fb14f[_0x464d3f(0x6e4)])this['_startClaimedSoon'](_0x4dc9da);else try{this[_0x464d3f(0x229)][_0x464d3f(0x2ba)][_0x464d3f(0x7c7)]();}catch{}return _0x3e6a7f;});}['_startClaimedSoon'](_0x82303c){queueMicrotask(()=>{const _0x3dab00=_0x303e;try{this['_n'](_0x3dab00(0x6aa),[_0x82303c]);}catch{}});}[_0x2aa3e3(0x59a)](_0x5e7f9a,_0x558cda,_0x33b93,_0x3d38e8){const _0x3b2b2d=_0x2aa3e3,_0x1118a3=_0x5e7f9a[_0x3b2b2d(0x463)]??_0x5e7f9a;if(_0x1118a3['_closed'])throw new _0x112b88(_0x3b2b2d(0x5e3),'TXN_CLOSED');if(_0x1118a3[_0x3b2b2d(0x229)]&&_0x1118a3['okdb']!==this[_0x3b2b2d(0x586)]&&_0x1118a3['okdb'][_0x3b2b2d(0x6bb)]!==this[_0x3b2b2d(0x586)]['name'])throw new _0x112b88('enqueue\x20txn\x20belongs\x20to\x20a\x20different\x20environment',_0x3b2b2d(0x3f4),{'txnEnv':_0x1118a3[_0x3b2b2d(0x229)][_0x3b2b2d(0x6bb)],'queueEnv':this[_0x3b2b2d(0x586)][_0x3b2b2d(0x6bb)]});const _0x5c1f80=this['_n'](_0x3b2b2d(0x428),[_0x558cda,_0x33b93,_0x3d38e8],![]);if(_0x5c1f80[_0x3b2b2d(0x683)])return _0x5c1f80['id'];if(_0x5c1f80[_0x3b2b2d(0x37f)])_0x5e7f9a['update'](_0x3b2b2d(0x56e),_0x5c1f80[_0x3b2b2d(0x37f)][_0x3b2b2d(0x119)],_0x5c1f80[_0x3b2b2d(0x37f)][_0x3b2b2d(0x1be)],{'ifVersion':_0x5c1f80['release'][_0x3b2b2d(0x297)]});if(_0x33b93!==undefined)_0x5e7f9a['put'](_0x3b2b2d(0x16b),_0x5c1f80['id'],_0x33b93);_0x5e7f9a[_0x3b2b2d(0x4f8)]('~queue_jobs',_0x5c1f80['id'],_0x5c1f80[_0x3b2b2d(0x2f5)]);if(typeof _0x1118a3[_0x3b2b2d(0x330)]==='function')_0x1118a3['onDo'](()=>{const _0x5a6fea=_0x3b2b2d;if(this['_n']('announceEnqueued',[_0x5c1f80['id'],_0x558cda,_0x5c1f80[_0x5a6fea(0x1b4)],_0x5c1f80['priority']]))this[_0x5a6fea(0x807)](_0x558cda);});return _0x5c1f80['id'];}async['claim'](_0x4401c1,_0x11c8a9={}){const _0x1f5cf9=_0x2aa3e3;if(typeof _0x4401c1!==_0x1f5cf9(0x635)||!_0x4401c1)throw new _0x112b88(_0x1f5cf9(0x7c5),_0x1f5cf9(0x78a));return this['_w'](_0x1f5cf9(0x7dc),[_0x4401c1,_0x11c8a9]);}async[_0x2aa3e3(0x321)](_0x5367f4,_0x44bcd4,_0x318ecb=null){const _0x4e6324=_0x2aa3e3;return this['_w'](_0x4e6324(0x321),[_0x5367f4,_0x44bcd4,_0x318ecb]);}async[_0x2aa3e3(0x1d7)](_0x5b8cf7,_0x47d68a,_0x4ad8cb=null){const _0x9be15=_0x2aa3e3;return this[_0x9be15(0x321)](_0x5b8cf7,_0x47d68a,_0x4ad8cb);}async[_0x2aa3e3(0x34f)](_0x548a15,_0x276b88,_0x39ad34){const _0x458ec5=_0x2aa3e3;return this['_w'](_0x458ec5(0x34f),[_0x548a15,_0x276b88,_0x39ad34]);}async[_0x2aa3e3(0x598)](_0xd71800,_0x5f4cce,_0x151754){const _0x4ae8bc=_0x2aa3e3;return this['_w'](_0x4ae8bc(0x598),[_0xd71800,_0x5f4cce,_0x151754]);}async[_0x2aa3e3(0x253)](_0xf358e9,_0x5e9584,_0x33711d){const _0x41c646=_0x2aa3e3;return this[_0x41c646(0x598)](_0xf358e9,_0x5e9584,_0x33711d);}async[_0x2aa3e3(0x1a2)](_0x44552b,_0x39b1d7,_0x5b25f3,_0x1a75de){const _0x1e50e7=_0x2aa3e3,_0x326e4b=_0x5b25f3 instanceof Error?{'message':_0x5b25f3['message'],'stack':_0x5b25f3['stack']}:_0x5b25f3;return this['_w'](_0x1e50e7(0x1a2),[_0x44552b,_0x39b1d7,_0x326e4b,_0x1a75de]);}async[_0x2aa3e3(0x7cb)](_0x9fc6da,_0x36e951,_0x53fd9b,_0x1d56e2){const _0x3194c6=_0x2aa3e3;return this[_0x3194c6(0x1a2)](_0x9fc6da,_0x36e951,_0x53fd9b,_0x1d56e2);}async['releaseClaim'](_0x1020e8,_0x4fd605,_0x6de14a={}){return this['_w']('releaseClaim',[_0x1020e8,_0x4fd605,_0x6de14a]);}async[_0x2aa3e3(0x1dd)](_0x505e7){const _0xd2c22f=_0x2aa3e3;return this['_n'](_0xd2c22f(0x1dd),[_0x505e7],![]);}async[_0x2aa3e3(0x810)](_0x43c9ee,_0x452ddb={},_0x269b6e={}){const _0x1568d3=_0x2aa3e3,_0x3bfca4=_0x269b6e&&_0x269b6e[_0x1568d3(0x1c2)];if(!_0x3bfca4)return this['_w']('updateJob',[_0x43c9ee,_0x452ddb]);const {next:_0x7f2205,version:_0x3ee156}=this['_n'](_0x1568d3(0x745),[_0x43c9ee,_0x452ddb],![]);_0x3bfca4[_0x1568d3(0x323)](_0x1568d3(0x56e),_0x43c9ee,_0x7f2205,{'ifVersion':_0x3ee156});let _0x4c454f;if(_0x1568d3(0x45f)in _0x452ddb){if(_0x452ddb[_0x1568d3(0x45f)]===undefined){if(this[_0x1568d3(0x586)][_0x1568d3(0x186)](_0x1568d3(0x16b),_0x43c9ee))_0x3bfca4[_0x1568d3(0x4ec)](_0x1568d3(0x16b),_0x43c9ee);}else _0x3bfca4[_0x1568d3(0x4f8)](_0x1568d3(0x16b),_0x43c9ee,_0x452ddb[_0x1568d3(0x45f)]);_0x4c454f=_0x452ddb[_0x1568d3(0x45f)];}else _0x4c454f=this['env']['get'](_0x1568d3(0x16b),_0x43c9ee);return{..._0x7f2205,'payload':_0x4c454f};}async[_0x2aa3e3(0x4f7)](_0x120eaa,_0x20c1c9={}){const _0xba97b0=_0x2aa3e3,_0x536811=_0x20c1c9&&_0x20c1c9['txn'];if(!_0x536811)return this['_w'](_0xba97b0(0x4f7),[_0x120eaa]);if(!_0x120eaa)throw new _0x112b88(_0xba97b0(0x30e),_0xba97b0(0x78a));if(!this[_0xba97b0(0x586)][_0xba97b0(0x186)](_0xba97b0(0x56e),_0x120eaa))return![];_0x536811['remove']('~queue_jobs',_0x120eaa);if(this[_0xba97b0(0x586)]['getEntry']('~queue_payloads',_0x120eaa))_0x536811[_0xba97b0(0x4ec)](_0xba97b0(0x16b),_0x120eaa);if(typeof _0x536811[_0xba97b0(0x330)]===_0xba97b0(0x7e3))_0x536811[_0xba97b0(0x330)](()=>this['_n'](_0xba97b0(0x701),[_0x120eaa]));return!![];}async[_0x2aa3e3(0x66e)](_0x570024){return this['_w']('cancelJob',[_0x570024]);}async['retryJob'](_0x481776){const _0x5aba3f=_0x2aa3e3;return this['_w'](_0x5aba3f(0x10a),[_0x481776]);}async['_clearChunked'](_0x5010a0,_0x42fa0d,_0x20cde0){const _0x423b2f=_0x2aa3e3,_0x3d669c=this['_n']('clearScan',[_0x42fa0d??null,_0x20cde0??0x0,_0x5010a0]),_0x345911=0x1f4;for(let _0x5ddbe9=0x0;_0x5ddbe9<_0x3d669c[_0x423b2f(0x1e1)];_0x5ddbe9+=_0x345911){this['_n']('bulkRemoveChunk',[_0x3d669c['slice'](_0x5ddbe9,_0x5ddbe9+_0x345911),_0x5ddbe9,_0x3d669c[_0x423b2f(0x1e1)],_0x42fa0d??null]);if(_0x5ddbe9+_0x345911<_0x3d669c[_0x423b2f(0x1e1)])await new Promise(_0x2da2b5=>setImmediate(_0x2da2b5));}return this['_n'](_0x423b2f(0x80c),[_0x3d669c[_0x423b2f(0x1e1)],_0x42fa0d??null]),await new Promise(_0x266878=>setImmediate(_0x266878)),_0x3d669c[_0x423b2f(0x1e1)];}async[_0x2aa3e3(0x583)](_0x4a10fc,_0x455243){const _0x4a6c65=_0x2aa3e3;return this[_0x4a6c65(0x4b8)](_0x4a6c65(0x707),_0x4a10fc,_0x455243);}async['clearFailed'](_0x175158,_0x4cf470){const _0x5cad0f=_0x2aa3e3;return this[_0x5cad0f(0x4b8)](_0x5cad0f(0x54c),_0x175158,_0x4cf470);}async[_0x2aa3e3(0x2e7)](_0x5eb0c4,_0x10aa77){const _0x1688b8=_0x2aa3e3;return this['_w'](_0x1688b8(0x2e7),[_0x5eb0c4??null,_0x10aa77??0x0]);}async[_0x2aa3e3(0x322)](_0x252c97,_0x5e87db){return this['_w']('clearStuck',[_0x252c97??null,_0x5e87db??0x0]);}async['appendJobLog'](_0x1c2263,_0x2db7ca,_0xb3cef3){const _0x4d819e=_0x2aa3e3;return this['_w'](_0x4d819e(0x72a),[_0x1c2263,_0x2db7ca,_0xb3cef3]);}async['getJobLogs'](_0x2b8152,_0x18e77b={}){return this['_n']('getJobLogs',[_0x2b8152,_0x18e77b],![]);}async[_0x2aa3e3(0x4f0)](_0x416fb3,_0x25b79f={}){const _0x3f095b=_0x2aa3e3,{txn:_0x1686f1,..._0x56b03b}=_0x25b79f||{};if(!_0x1686f1)return this['_w']('addBucket',[_0x416fb3,_0x56b03b]);const _0x3200a5=(_0x453082,_0x1a2690,_0x966fb1,_0x4b048a)=>{const _0x2d1b34=_0x303e,_0x3b4a4b=Math[_0x2d1b34(0x104)](Number(_0x453082));return Number[_0x2d1b34(0x27f)](_0x3b4a4b)?Math[_0x2d1b34(0x2f2)](_0x4b048a,Math[_0x2d1b34(0x372)](_0x966fb1,_0x3b4a4b)):_0x1a2690;},_0x5c7cde=typeof _0x416fb3==='string'?_0x416fb3[_0x3f095b(0x31b)]():'';if(!_0x5c7cde)throw new Error(_0x3f095b(0x588));const _0x4af118=_0x3200a5(_0x56b03b[_0x3f095b(0x1a6)],0x0,0x0,0x3b9aca00);_0x1686f1[_0x3f095b(0x4f8)](_0x3f095b(0x25f),_0x5c7cde,{'id':_0x5c7cde,'tokens':_0x3200a5(_0x56b03b[_0x3f095b(0x7ec)],_0x4af118,0x0,_0x4af118),'capacity':_0x4af118,'refill_amount':_0x3200a5(_0x56b03b[_0x3f095b(0x47c)],0x0,0x0,0x3b9aca00),'refill_every':_0x3200a5(_0x56b03b[_0x3f095b(0x214)],0x0,0x0,0x16d*0x18*0x36ee80),'updated':Date[_0x3f095b(0x1b5)]()});}async[_0x2aa3e3(0x3aa)](_0x21addb,_0x939899){const _0x56b2eb=_0x2aa3e3;return this['_w'](_0x56b2eb(0x3aa),[_0x21addb,_0x939899]);}async[_0x2aa3e3(0x199)](_0x11476b){const _0x330b75=_0x2aa3e3;return this['_w'](_0x330b75(0x199),[_0x11476b]);}[_0x2aa3e3(0x4a5)](_0x1429b0){const _0x27bdc2=_0x2aa3e3,_0x3a1c64=this['_n'](_0x27bdc2(0x4a5),[_0x1429b0],![]);return _0x3a1c64===null&&typeof _0x1429b0===_0x27bdc2(0x635)&&_0x1429b0[_0x27bdc2(0x31b)]()?undefined:_0x3a1c64;}async[_0x2aa3e3(0x2d2)](_0x29ea36,_0xad908c){const _0xd263d4=_0x2aa3e3;return this['_w'](_0xd263d4(0x2d2),[_0x29ea36,_0xad908c]);}async[_0x2aa3e3(0x7f6)](_0x4de93e,_0x2aa422={}){const _0x22ff7c=_0x2aa3e3;return this['_w'](_0x22ff7c(0x7f6),[_0x4de93e,_0x2aa422]);}async['getJobType'](_0x19fb37){const _0x7de19=_0x2aa3e3;return this['_n'](_0x7de19(0x7aa),[_0x19fb37],![]);}async[_0x2aa3e3(0x445)](){return this['_n']('listJobTypes',[],![]);}async[_0x2aa3e3(0x689)](_0x425caf){const _0x5e35e3=_0x2aa3e3;return this['_w'](_0x5e35e3(0x689),[_0x425caf]);}[_0x2aa3e3(0x677)](_0x3393c7){const _0x755912=_0x2aa3e3;return this['_n'](_0x755912(0x677),[_0x3393c7]);}[_0x2aa3e3(0x37b)](_0xb5ae5c){const _0x1f3053=_0x2aa3e3;return this['_n'](_0x1f3053(0x37b),[_0xb5ae5c]);}[_0x2aa3e3(0x6f2)](_0xc42c63){const _0x40408b=_0x2aa3e3;return this['_n'](_0x40408b(0x6f2),[_0xc42c63]);}async[_0x2aa3e3(0x69a)](_0x2f8aee,_0x292982,_0x680cd0=![]){const _0x5edff5=_0x2aa3e3;return this['_w'](_0x5edff5(0x69a),[_0x2f8aee,_0x292982,_0x680cd0]);}async[_0x2aa3e3(0x206)](_0x2a5d30){const _0x4bcc53=_0x2aa3e3;return this['_w'](_0x4bcc53(0x206),[_0x2a5d30]);}async['samplePayloads'](_0x1e6e24,_0x4c7b63=0x5){const _0x20af19=_0x2aa3e3;return this['_n'](_0x20af19(0x57f),[_0x1e6e24,_0x4c7b63],![]);}async[_0x2aa3e3(0x114)](_0xa8e849){const _0x3d0224=_0x2aa3e3;return this['_n'](_0x3d0224(0x55e),[_0xa8e849]);}async[_0x2aa3e3(0x49f)](_0x5024fb=0x7530){const _0x5821ab=_0x2aa3e3;await Promise[_0x5821ab(0x3e7)]([...this[_0x5821ab(0x26f)]][_0x5821ab(0x2fe)](_0x405726=>_0x405726[_0x5821ab(0x209)](_0x5024fb)));const _0x247ab0=this['_n'](_0x5821ab(0x49f),[0x0]);return this[_0x5821ab(0x26f)][_0x5821ab(0x352)](),_0x247ab0;}async[_0x2aa3e3(0x446)](){const _0x2cee55=_0x2aa3e3,_0x5b5bfd=this['_n'](_0x2cee55(0x446),[]);return this[_0x2cee55(0x26f)]['clear'](),_0x5b5bfd;}[_0x2aa3e3(0x4df)](_0x3d8236,_0x4ceba2,_0x4a508b){const _0x21054b=_0x2aa3e3;let _0x5bcab6,_0x3eac19;if(Array[_0x21054b(0x486)](_0x3d8236)){if(typeof _0x4ceba2===_0x21054b(0x7e3))throw new _0x112b88(_0x21054b(0x52e),_0x21054b(0x78a));_0x3eac19=_0x4ceba2??{};if(_0x3eac19[_0x21054b(0x71d)]!=null&&typeof _0x3eac19[_0x21054b(0x71d)]!=='function')throw new _0x112b88(_0x21054b(0x73b),_0x21054b(0x78a));if(_0x3d8236[_0x21054b(0x1e1)]===0x0)throw new _0x112b88(_0x21054b(0x43d),_0x21054b(0x78a));_0x5bcab6=_0x3d8236[_0x21054b(0x2fe)](_0x23d176=>{const _0x7c6e80=_0x21054b;if(!_0x23d176||typeof _0x23d176[_0x7c6e80(0x74e)]!==_0x7c6e80(0x635)||!_0x23d176[_0x7c6e80(0x74e)])throw new _0x112b88(_0x7c6e80(0x68a),'BAD_PARAM');if(typeof _0x23d176[_0x7c6e80(0x634)]!=='function')throw new _0x112b88('process()\x20entry\x20\x22'+_0x23d176[_0x7c6e80(0x74e)]+'\x22\x20requires\x20a\x20`handler`\x20function',_0x7c6e80(0x78a));return{..._0x23d176};});}else{_0x3eac19=_0x4a508b??{};if(typeof _0x4ceba2!==_0x21054b(0x7e3))throw new _0x112b88(_0x21054b(0x424)+_0x3d8236+_0x21054b(0x3fa),_0x21054b(0x78a));_0x5bcab6=[{'type':_0x3d8236,'handler':_0x4ceba2,..._0x4a508b??{}}];}const _0x5da358=this['okdb'];for(const _0x35deba of _0x5bcab6){const _0x1ac539=_0x35deba['handler'];_0x35deba[_0x21054b(0x634)]=function(..._0x6afac8){const _0x4f3b9c=_0x21054b;return _0x5da358[_0x4f3b9c(0x3ec)]()[_0x4f3b9c(0x179)](()=>_0x1ac539['apply'](this,_0x6afac8));};}const _0x5c47aa=this['_n'](_0x21054b(0x4df),[_0x5bcab6,_0x3eac19]),_0x381801=this,_0x44d452={'id':_0x5c47aa['id'],'type':_0x5c47aa[_0x21054b(0x74e)],get 'running'(){return _0x381801['_n']('workerState',[_0x5c47aa['id']],![])['running'];},'isRunning'(){const _0x5983bc=_0x21054b;return _0x381801['_n'](_0x5983bc(0x212),[_0x5c47aa['id']],![])[_0x5983bc(0x36b)];},async 'stop'(_0x557bfa=0x7530){const _0x43b1e3=_0x21054b;_0x381801['_n'](_0x43b1e3(0x5e5),[_0x5c47aa['id']]);const _0x183ce3=Date[_0x43b1e3(0x1b5)]()+_0x557bfa;while(_0x381801['_n'](_0x43b1e3(0x212),[_0x5c47aa['id']],![])['inFlight']>0x0&&Date[_0x43b1e3(0x1b5)]()<_0x183ce3)await new Promise(_0x3efef7=>setTimeout(_0x3efef7,0x2));_0x381801['_n'](_0x43b1e3(0x5eb),[_0x5c47aa['id']]),_0x59d735[_0x43b1e3(0x74f)](),_0x381801['_workers'][_0x43b1e3(0x17d)](_0x44d452);},async 'kill'(){const _0x18cf87=_0x21054b;_0x381801['_n'](_0x18cf87(0x642),[_0x5c47aa['id']]),_0x381801['_workers'][_0x18cf87(0x17d)](_0x44d452);}};return this['_workers'][_0x21054b(0x181)](_0x44d452),_0x44d452;}['worker'](_0x4fff9e){const _0x2f5953=_0x2aa3e3;throw new _0x112b88(_0x2f5953(0x415)+_0x4fff9e+_0x2f5953(0x786)+_0x4fff9e+'\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.',_0x2f5953(0x394));}[_0x2aa3e3(0x3ee)](_0x5d9129){const _0x29cc0a=_0x2aa3e3;return this[_0x29cc0a(0x2eb)](_0x5d9129);}}return queue={'OKDBQueue':_0x384514},queue;}var timemachine,hasRequiredTimemachine;function requireTimemachine(){const _0x47b80e=_0x36292f;if(hasRequiredTimemachine)return timemachine;hasRequiredTimemachine=0x1;const {fromArray:_0x5d2b8a}=requireIterable();class _0x4528f2{constructor(_0x488a51){const _0x1f82ea=_0x303e;this[_0x1f82ea(0x586)]=_0x488a51,this[_0x1f82ea(0x229)]=_0x488a51[_0x1f82ea(0x229)];const _0x454033=(_0x463880,_0x3c79b0)=>this['_n'](_0x463880,_0x3c79b0,![]);this[_0x1f82ea(0x279)]={'getDiffs':(_0x509631,_0x3f6bfb,_0x30449e)=>_0x454033(_0x1f82ea(0x425),[_0x509631,_0x3f6bfb,_0x30449e||{}]),'hasDiff':(_0x32e068,_0x1478ee,_0x1c71f8)=>_0x454033(_0x1f82ea(0x1b7),[_0x32e068,_0x1478ee,_0x1c71f8]),'getHead':(_0x2f38ac,_0x2e75b2)=>_0x454033(_0x1f82ea(0x796),[_0x2f38ac,_0x2e75b2])??null,'getHeadCount':_0x56f554=>_0x454033(_0x1f82ea(0x33b),[_0x56f554]),'getTotalHeadCount':()=>_0x454033(_0x1f82ea(0x1b2),[]),'getDiffsInRange':(_0xddd845,_0x20d3c5,_0x2a7107)=>_0x454033('storeGetDiffsInRange',[_0xddd845??null,_0x20d3c5,_0x2a7107]),'getConfig':()=>_0x454033(_0x1f82ea(0x151),[])??null,'getCursor':()=>this['_n'](_0x1f82ea(0x7f2),[],![])??null,get 'db'(){const _0x5232df=_0x1f82ea;try{return _0x454033(_0x5232df(0x1b2),[]),{};}catch{return null;}}};}get['_registrations'](){const _0x55586e=_0x303e,_0x2e09cb=(this[_0x55586e(0x586)][_0x55586e(0x42b)]?.[_0x55586e(0x646)]?.()||[])[_0x55586e(0x4b0)](_0x411bd9=>String(_0x411bd9[_0x55586e(0x5a1)]||'')['startsWith'](_0x55586e(0x41f)))[_0x55586e(0x1e1)];return{'size':_0x2e09cb};}['_n'](_0x589e06,_0x37909d,_0x1a0afd=!![]){return this['okdb']['_call']('tm',this['env']['name'],_0x589e06,_0x37909d,_0x1a0afd);}async[_0x47b80e(0x48b)](_0x2e5738){const _0x399dc2=_0x47b80e;return this['_n'](_0x399dc2(0x48b),[_0x2e5738??null]);}async[_0x47b80e(0x5f8)](_0x1d0487){const _0x143b22=_0x47b80e;return this['_n'](_0x143b22(0x5f8),[_0x1d0487??null]);}async[_0x47b80e(0x404)](){const _0x5e2603=_0x47b80e;return this['_n'](_0x5e2603(0x404),[]);}async['disableAll'](){return this['_n']('disableAll',[]);}async[_0x47b80e(0x51f)](_0x4ebae6){const _0x362977=_0x47b80e;return this['_n'](_0x362977(0x51f),[_0x4ebae6??null]);}async[_0x47b80e(0x15a)](){return this['_n']('dropAll',[]);}[_0x47b80e(0x300)](_0xc0590){const _0x2484fa=_0x47b80e;return this['_n'](_0x2484fa(0x300),[_0xc0590??null],![]);}['list'](){const _0x2907cd=_0x47b80e;return this['_n'](_0x2907cd(0x646),[],![]);}[_0x47b80e(0x327)](_0xbfdd5e){const _0x4fb88b=_0x47b80e;return this['_n'](_0x4fb88b(0x327),[_0xbfdd5e??null],![]);}[_0x47b80e(0x758)](_0x2766eb){const _0x40cfb3=_0x47b80e;if(!_0x2766eb)return this['_n'](_0x40cfb3(0x7f2),[],![]);return this['_n'](_0x40cfb3(0x758),[_0x2766eb],![]);}[_0x47b80e(0x7f2)](){const _0x5c5d8c=_0x47b80e;return this['_n'](_0x5c5d8c(0x7f2),[],![]);}[_0x47b80e(0x12c)](_0x42b667,_0x12acb1,_0x219636){const _0x1ce1a6=_0x47b80e;return this['_n'](_0x1ce1a6(0x12c),[_0x42b667,_0x12acb1,_0x219636],![]);}[_0x47b80e(0x733)](_0x1f55fb,_0x485bce,_0x3f086b){const _0x47f306=_0x47b80e;return this['_n'](_0x47f306(0x733),[_0x1f55fb,_0x485bce,_0x3f086b||{}],![]);}[_0x47b80e(0x19b)](_0x48908a,_0x85bc39,_0x1e8b13){const _0x2bedba=_0x47b80e;return this['_n'](_0x2bedba(0x19b),[_0x48908a??null,_0x85bc39,_0x1e8b13],![])[Symbol[_0x2bedba(0x21f)]]();}async[_0x47b80e(0x78d)](_0x28a6f1){const _0x44f4aa=_0x47b80e;return this['_n'](_0x44f4aa(0x78d),[_0x28a6f1??null]);}}return timemachine={'OKDBTimeMachine':_0x4528f2},timemachine;}var files,hasRequiredFiles;function requireFiles(){const _0x315c1c=_0x36292f;if(hasRequiredFiles)return files;hasRequiredFiles=0x1;const _0x14d5d8=require$$0,{OKDBError:_0x4c907e,optionsArg:_0x5d65ff,invalidArgument:_0x18c206}=requireErrors(),{RawDb:_0x2231b8}=requireRawdb();async function _0x1ac72f(_0x33d560){const _0x292d77=_0x303e;if(Buffer['isBuffer'](_0x33d560))return _0x33d560;if(_0x33d560 instanceof Uint8Array)return Buffer[_0x292d77(0x17b)](_0x33d560);if(typeof _0x33d560===_0x292d77(0x635))return Buffer['from'](_0x33d560);const _0x15a2b8=[];for await(const _0x2187b4 of _0x33d560)_0x15a2b8[_0x292d77(0x460)](Buffer[_0x292d77(0x231)](_0x2187b4)?_0x2187b4:Buffer[_0x292d77(0x17b)](_0x2187b4));return Buffer[_0x292d77(0x354)](_0x15a2b8);}class _0x2d949c{constructor(_0x961913){const _0x2b009b=_0x303e;this[_0x2b009b(0x586)]=_0x961913,this[_0x2b009b(0x229)]=_0x961913[_0x2b009b(0x229)];}['_n'](_0x47f6d8,_0x25ab40,_0x59ff10=!![]){const _0x1dda60=_0x303e;return this[_0x1dda60(0x229)]['_call'](_0x1dda60(0x44b),this[_0x1dda60(0x586)]['name'],_0x47f6d8,_0x25ab40,_0x59ff10);}[_0x315c1c(0x73d)](){return!![];}[_0x315c1c(0x209)](){}async[_0x315c1c(0x6d7)](){const _0x14a699=_0x315c1c;this['_n'](_0x14a699(0x1f5),[]);}async['_writeBlob'](_0x4771ba,_0x3a11ed){const _0x326e76=_0x315c1c;return this[_0x326e76(0x229)][_0x326e76(0x3b2)](this['_n'](_0x326e76(0x36a),[_0x4771ba,await _0x1ac72f(_0x3a11ed)]));}get[_0x315c1c(0x25a)](){const _0x284c04=_0x315c1c;return this[_0x284c04(0x5aa)]||(this[_0x284c04(0x5aa)]=new _0x2231b8(this[_0x284c04(0x229)][_0x284c04(0x586)]('default'),'~file:blob_status'));}async['_blobStatusTxn'](_0x5a575d){const _0x6a4540=_0x315c1c;return this['_blobStatusDb'][_0x6a4540(0x6a4)](_0x5a575d);}async[_0x315c1c(0x2f7)](_0x269663){const _0xba2993=_0x315c1c,{id:_0x37691a,stream:_0x1315b7,mime:mime=_0xba2993(0x5cc),path:_0x180400='',txn:txn=null}=_0x5d65ff(_0x269663);if(!_0x37691a)throw _0x18c206(_0xba2993(0x5ac),_0xba2993(0x22f),_0x37691a);if(!_0x1315b7)throw _0x18c206(_0xba2993(0x235),_0xba2993(0x6ed),_0x1315b7);const _0x519154=await _0x1ac72f(_0x1315b7);if(txn){const _0x11d727=this['_n'](_0xba2993(0x149),[_0x37691a,_0x519154,{'mime':mime,'path':_0x180400}]);return txn[_0xba2993(0x4f8)](_0xba2993(0x2ab),_0x37691a,_0x11d727[_0xba2993(0x78f)]),txn[_0xba2993(0x330)](()=>this['_n']('txnDone',[_0x11d727[_0xba2993(0x4ba)]])),txn[_0xba2993(0x6d1)](()=>this['_n'](_0xba2993(0x768),[_0x11d727['hook']])),_0x11d727['record'];}return this[_0xba2993(0x229)][_0xba2993(0x3b2)](this['_n'](_0xba2993(0x2f7),[_0x37691a,_0x519154,{'mime':mime,'path':_0x180400}]));}[_0x315c1c(0x1d2)](_0x2f12e5){const _0x4171b9=_0x315c1c;return this['_n'](_0x4171b9(0x1d2),[_0x2f12e5],![])??null;}[_0x315c1c(0x795)](_0xbe957a){const _0x4e1e18=_0x315c1c,_0x257b26=this[_0x4e1e18(0x5d5)](_0xbe957a);if(!_0x14d5d8['existsSync'](_0x257b26))throw Object[_0x4e1e18(0x38f)](new Error('Blob\x20not\x20found:\x20'+_0xbe957a),{'status':0x194});return _0x14d5d8[_0x4e1e18(0x285)](_0x257b26);}async['read'](_0x116f43){const _0x58d603=_0x315c1c;return this[_0x58d603(0x229)][_0x58d603(0x7c0)](this['_n']('read',[_0x116f43],![]));}async['stream'](_0x5e6d54){const _0x33810f=_0x315c1c,_0x55a6a7=this['get'](_0x5e6d54);if(!_0x55a6a7)throw Object[_0x33810f(0x38f)](new Error(_0x33810f(0x271)+_0x5e6d54),{'status':0x194});const _0x27cf02=this['_blobPath'](_0x55a6a7['hash']);if(!_0x14d5d8[_0x33810f(0x3e9)](_0x27cf02))throw Object[_0x33810f(0x38f)](new Error('Blob\x20missing\x20for\x20file:\x20'+_0x5e6d54),{'status':0x194});return{'stream':_0x14d5d8['createReadStream'](_0x27cf02),'record':_0x55a6a7};}async['remove'](_0x19d403,_0x37ca39){const _0x3b23d7=_0x315c1c,{txn:txn=null}=_0x5d65ff(_0x37ca39);if(txn){const _0x355357=this['_n']('removeTxn',[_0x19d403]);txn[_0x3b23d7(0x4ec)](_0x3b23d7(0x2ab),_0x19d403),txn[_0x3b23d7(0x330)](()=>this['_n']('txnDone',[_0x355357[_0x3b23d7(0x4ba)]])),txn[_0x3b23d7(0x6d1)](()=>this['_n'](_0x3b23d7(0x768),[_0x355357['hook']]));return;}return this['okdb'][_0x3b23d7(0x3b2)](this['_n'](_0x3b23d7(0x4ec),[_0x19d403]));}async[_0x315c1c(0x78c)](_0xa297bd,_0x30ac5f={}){const _0xc9f87a=_0x315c1c;return this['_n'](_0xc9f87a(0x78c),[_0xa297bd,_0x30ac5f],![]);}[_0x315c1c(0x787)](_0x216c16){const _0x52d1ae=_0x315c1c;return this['_n'](_0x52d1ae(0x787),[_0x216c16],![]);}['listBlobStatus'](){const _0x576479=_0x315c1c;return this['_n'](_0x576479(0x713),[],![]);}[_0x315c1c(0x412)](_0x386488){const {minAgeMs:_0x1a4407}=_0x5d65ff(_0x386488);return this['_n']('gcOrphanedBlobs',[_0x1a4407??null]);}[_0x315c1c(0x7bf)](_0x871144,_0xb279f6){const _0x5de812=_0x315c1c;if(typeof _0xb279f6!==_0x5de812(0x7e3))throw new _0x4c907e(_0x5de812(0x7b7),'BAD_PARAM');const _0x369f2c=this['_n'](_0x5de812(0x7bf),[_0x871144,_0xb279f6]);return()=>this['_n'](_0x5de812(0x2d5),[_0x369f2c]);}async[_0x315c1c(0x3d8)](_0x462cab){const _0x750112=_0x315c1c;return _0x462cab=_0x5d65ff(_0x462cab),this['_n'](_0x750112(0x3d8),[_0x462cab]);}async[_0x315c1c(0x38e)](_0x27e862){const _0x8d5517=_0x315c1c,{peerIds:_0x4b0768}=_0x5d65ff(_0x27e862);return this['_n'](_0x8d5517(0x38e),[_0x4b0768??null]);}[_0x315c1c(0x5d5)](_0x6cd106){const _0x662661=_0x315c1c;if(typeof _0x6cd106!==_0x662661(0x635))return require$$3[_0x662661(0x6ee)](this[_0x662661(0x5ff)],_0x6cd106[_0x662661(0x6ea)](0x0,0x2),_0x6cd106[_0x662661(0x6ea)](0x2));return this['_n'](_0x662661(0x302),[_0x6cd106],![]);}get[_0x315c1c(0x5ff)](){return this['_n']('blobsDir',[],![]);}}return files={'OKDBFiles':_0x2d949c},files;}var engines,hasRequiredEngines;function requireEngines(){const _0x1f03f4=_0x36292f;if(hasRequiredEngines)return engines;hasRequiredEngines=0x1;const {OKDBError:_0x60c8c1}=requireErrors(),_0x31146a=requireBridge(),_0xb50bc7=new Set([_0x1f03f4(0x53e),_0x1f03f4(0x597),_0x1f03f4(0x35c),'embed-worker']),_0x567450=new Set([_0x1f03f4(0x1cd),_0x1f03f4(0x7ba),'dims']),_0x18019f=[_0x1f03f4(0x802),_0x1f03f4(0x26a),_0x1f03f4(0x201),_0x1f03f4(0x65b),_0x1f03f4(0x284),_0x1f03f4(0x209),'uninstall'],_0x3671aa={'embedder':new Set(['dims','fingerprint'])},_0x909940=new Set([_0x1f03f4(0x2c3),_0x1f03f4(0x42b),_0x1f03f4(0x540)]);class _0x4fbd62{constructor(_0x5d728d,_0x44284c,_0x5e647a,_0x6e710b){const _0x1cfb25=_0x1f03f4;this[_0x1cfb25(0x803)]=_0x5d728d,this[_0x1cfb25(0x119)]=_0x44284c,this[_0x1cfb25(0x74e)]=_0x5e647a,this[_0x1cfb25(0x6bb)]=_0x6e710b,this[_0x1cfb25(0x39e)]=_0x5e647a;}[_0x1f03f4(0x3a4)](){const _0x2fb93a=_0x1f03f4;return this['_facade']['_n'](_0x2fb93a(0x7ba),[this[_0x2fb93a(0x74e)],this['name']],![]);}get[_0x1f03f4(0x5d4)](){const _0x10cf7f=_0x1f03f4;return this[_0x10cf7f(0x3a4)]()['doc'];}get['_store'](){const _0x5a3b98=_0x1f03f4,_0x118bb4=this[_0x5a3b98(0x3a4)]()[_0x5a3b98(0x5c8)];return _0x118bb4?this[_0x5a3b98(0x803)][_0x5a3b98(0x229)][_0x5a3b98(0x748)][_0x5a3b98(0x1d2)](_0x118bb4):undefined;}get['docEntry'](){const _0x1a00db=_0x1f03f4;return this[_0x1a00db(0x3a4)]()[_0x1a00db(0x6d6)];}get['enabled'](){const _0x1562b1=_0x1f03f4;return this[_0x1562b1(0x3a4)]()['enabled'];}get[_0x1f03f4(0x46e)](){const _0x5aa962=_0x1f03f4;return this[_0x5aa962(0x3a4)]()['isRunning'];}get['status'](){const _0x48076e=_0x1f03f4;return this[_0x48076e(0x3a4)]()[_0x48076e(0x327)];}get[_0x1f03f4(0x40d)](){const _0x4aa08f=_0x1f03f4;return this['_info']()[_0x4aa08f(0x40d)];}get['lastError'](){const _0x5f4800=_0x1f03f4,_0x45b0a6=this[_0x5f4800(0x3a4)]()['lastError'];return _0x45b0a6?Object[_0x5f4800(0x38f)](new Error(_0x45b0a6[_0x5f4800(0x79d)]),{'code':_0x45b0a6[_0x5f4800(0x6cb)]}):null;}get[_0x1f03f4(0x6a9)](){const _0x3f0ed7=_0x1f03f4;return this[_0x3f0ed7(0x3a4)]()[_0x3f0ed7(0x6a9)];}get[_0x1f03f4(0x454)](){const _0x322c33=_0x1f03f4;return this[_0x322c33(0x803)][_0x322c33(0x2b1)][_0x322c33(0x1d2)](this[_0x322c33(0x74e)])??null;}get['api'](){const _0x34a2ea=_0x1f03f4;if(!this[_0x34a2ea(0x3a4)]()[_0x34a2ea(0x580)])return null;const _0x81138e=this;return new Proxy({},{'get'(_0x593d25,_0x23c728){const _0x4b1a22=_0x34a2ea;if(typeof _0x23c728===_0x4b1a22(0x54e)||_0x23c728===_0x4b1a22(0x179))return undefined;if(_0x3671aa[_0x81138e[_0x4b1a22(0x74e)]]&&_0x3671aa[_0x81138e[_0x4b1a22(0x74e)]]['has'](_0x23c728))return _0x81138e[_0x4b1a22(0x803)]['_n'](_0x4b1a22(0x200),[_0x81138e['type'],_0x81138e['name'],_0x23c728,[]],![])[_0x4b1a22(0x1be)];if(_0x81138e[_0x4b1a22(0x74e)]==='indexer'&&_0x23c728===_0x4b1a22(0x78d))return async(_0x40382e={})=>{const _0x330a99=_0x4b1a22,_0x24d33d=(_0x422680,..._0x38f4bf)=>_0x81138e[_0x330a99(0x803)]['_n'](_0x330a99(0x200),[_0x81138e['type'],_0x81138e['name'],_0x422680,_0x38f4bf],!![])[_0x330a99(0x1be)],_0x184baa=_0x24d33d('flushMaxWait',_0x40382e??{}),_0x21f057=Date[_0x330a99(0x1b5)]();for(;;){const _0x2a1bdd=await _0x81138e[_0x330a99(0x803)]['okdb']['_macro'](()=>_0x24d33d(_0x330a99(0x79f)));if(_0x2a1bdd[_0x330a99(0x508)]>=_0x2a1bdd[_0x330a99(0x20d)])return;Date[_0x330a99(0x1b5)]()-_0x21f057>=_0x184baa&&_0x24d33d('flushTimeoutError',_0x40382e??{},_0x2a1bdd),await new Promise(_0x589fb7=>setTimeout(_0x589fb7,0x3));}};return(..._0x231a2b)=>{const _0x28e8e5=_0x4b1a22,_0x28c30b=()=>_0x81138e['_facade']['_n'](_0x28e8e5(0x200),[_0x81138e[_0x28e8e5(0x74e)],_0x81138e[_0x28e8e5(0x6bb)],_0x23c728,_0x231a2b],!![]),_0x25f36e=_0x57c9ac=>{const _0x5c32a5=_0x28e8e5;if(_0x57c9ac&&_0x57c9ac['__absent'])throw new TypeError('engine\x20api\x20has\x20no\x20method\x20\x27'+_0x23c728+'\x27');return _0x57c9ac[_0x5c32a5(0x1be)];};if(_0xb50bc7['has'](_0x81138e[_0x28e8e5(0x74e)])&&!_0x567450[_0x28e8e5(0x3a9)](_0x23c728)){const _0x247269=_0x81138e[_0x28e8e5(0x803)][_0x28e8e5(0x229)];return _0x247269[_0x28e8e5(0x438)](()=>_0x247269[_0x28e8e5(0x66f)](_0x28c30b))['then'](_0x25f36e);}if(_0x909940[_0x28e8e5(0x3a9)](_0x81138e['type']))try{return Promise[_0x28e8e5(0x809)](_0x25f36e(_0x28c30b()));}catch(_0xb6794b){return Promise[_0x28e8e5(0x565)](_0xb6794b);}return _0x25f36e(_0x28c30b());};}});}async[_0x1f03f4(0x7cc)](_0x3570af={}){const _0x5c3351=_0x1f03f4;return await this['_facade'][_0x5c3351(0x351)](_0x5c3351(0x7cc),[this[_0x5c3351(0x74e)],this[_0x5c3351(0x6bb)],_0x3570af]),this;}async['start'](){const _0x316d09=_0x1f03f4;await this[_0x316d09(0x803)][_0x316d09(0x351)]('engineStart',[this[_0x316d09(0x74e)],this[_0x316d09(0x6bb)]]);}async['stop'](_0x3f8d8b={}){const _0x361ceb=_0x1f03f4;await this['_facade']['_nm']('engineStop',[this[_0x361ceb(0x74e)],this[_0x361ceb(0x6bb)],_0x3f8d8b]);}async[_0x1f03f4(0x729)](_0x12823c={}){const _0x558ec1=_0x1f03f4;return await this[_0x558ec1(0x803)][_0x558ec1(0x351)](_0x558ec1(0x729),[this['type'],this[_0x558ec1(0x6bb)],_0x12823c]),this;}async['uninstall'](){const _0x16e7c5=_0x1f03f4;await this[_0x16e7c5(0x803)][_0x16e7c5(0x351)](_0x16e7c5(0x4be),[this[_0x16e7c5(0x74e)],this[_0x16e7c5(0x6bb)]]);}}class _0x5ff89b{constructor(_0x58b6d7,_0x203267=null,_0xda3600=null){const _0x1c0042=_0x1f03f4;this[_0x1c0042(0x229)]=_0x58b6d7,this[_0x1c0042(0x570)]=_0x203267,this[_0x1c0042(0x41b)]=_0x203267===null,this[_0x1c0042(0x368)]=_0xda3600||this,this['drivers']=this[_0x1c0042(0x368)]===this?_0x40cac0(this):this['_root'][_0x1c0042(0x2b1)],this[_0x1c0042(0x7f3)]=new Map();}['_n'](_0x4778e9,_0xc3cb6e,_0x4c86fc=!![]){const _0x4a1443=_0x1f03f4;return this['okdb']['_call']('engines',this[_0x4a1443(0x570)],_0x4778e9,_0xc3cb6e,_0x4c86fc);}[_0x1f03f4(0x351)](_0x5282b4,_0x329379){const _0xd50f89=_0x1f03f4;return this[_0xd50f89(0x229)]['_callMacro'](_0xd50f89(0x262),this[_0xd50f89(0x570)],_0x5282b4,_0x329379,!![]);}get[_0x1f03f4(0x586)](){const _0x5a8aa0=_0x1f03f4;return this[_0x5a8aa0(0x570)]?this[_0x5a8aa0(0x229)][_0x5a8aa0(0x586)](this[_0x5a8aa0(0x570)]):null;}[_0x1f03f4(0x213)](_0x4b5689){const _0x50d8ae=_0x1f03f4;if(!_0x4b5689)return null;let _0x2f37c9=this['_handles']['get'](_0x4b5689[_0x50d8ae(0x119)]);return!_0x2f37c9&&(_0x2f37c9=new _0x4fbd62(this,_0x4b5689[_0x50d8ae(0x119)],_0x4b5689[_0x50d8ae(0x74e)],_0x4b5689[_0x50d8ae(0x6bb)]),this['_handles'][_0x50d8ae(0x31f)](_0x4b5689['key'],_0x2f37c9)),_0x2f37c9;}[_0x1f03f4(0x674)](_0xd4b3c1,_0x10750f){const _0x237b14=_0x1f03f4;if(!_0xd4b3c1||typeof _0xd4b3c1!=='string')throw new _0x60c8c1(_0x237b14(0x12a),'ENGINE_INVALID_TYPE',{'type':_0xd4b3c1});if(!_0x10750f||typeof _0x10750f!==_0x237b14(0x304))throw new _0x60c8c1(_0x237b14(0x429)+_0xd4b3c1+'\x22\x20must\x20be\x20a\x20plain\x20object','ENGINE_INVALID_DRIVER',{'type':_0xd4b3c1});if(typeof _0x10750f['start']!==_0x237b14(0x7e3))throw new _0x60c8c1(_0x237b14(0x429)+_0xd4b3c1+'\x22\x20must\x20have\x20a\x20start()\x20method',_0x237b14(0x5f7),{'type':_0xd4b3c1});const _0x160c12=this[_0x237b14(0x368)];if(_0x160c12['drivers'][_0x237b14(0x3a9)](_0xd4b3c1))throw new _0x60c8c1('Engine\x20driver\x20already\x20registered:\x20\x22'+_0xd4b3c1+'\x22','ENGINE_DRIVER_ALREADY_REGISTERED',{'type':_0xd4b3c1});const _0x141bf2=_0x31146a[_0x237b14(0x536)](_0x10750f,this[_0x237b14(0x229)]),_0xe2765a=_0x18019f[_0x237b14(0x4b0)](_0x24b273=>typeof _0x10750f[_0x24b273]==='function'),_0x5d0b62=_0x10750f['docs']&&typeof _0x10750f[_0x237b14(0x584)]==='object'?_0x10750f[_0x237b14(0x584)]:{};this[_0x237b14(0x229)]['_call']('engines',null,'registerDriver',[_0xd4b3c1,{'$id':_0x141bf2,'has':_0xe2765a,'docs':_0x5d0b62}]),_0x160c12['drivers'][_0x237b14(0x493)](_0xd4b3c1,_0x10750f);}get[_0x1f03f4(0x7af)](){const _0x43cca2=_0x1f03f4;return this[_0x43cca2(0x229)][_0x43cca2(0x6eb)]('engines',null,_0x43cca2(0x618),[],![]);}get[_0x1f03f4(0x558)](){const _0x112518=this;return{get '_started'(){const _0x45df82=_0x303e;return _0x112518[_0x45df82(0x7af)];}};}[_0x1f03f4(0x3e0)](_0x4d64d4){const _0x54ce92=_0x1f03f4;if(!_0x4d64d4||typeof _0x4d64d4!==_0x54ce92(0x304))throw new _0x60c8c1('Engine\x20template\x20must\x20be\x20a\x20plain\x20object',_0x54ce92(0x720));if(!_0x4d64d4['id']||typeof _0x4d64d4['id']!==_0x54ce92(0x635))throw new _0x60c8c1('Engine\x20template\x20id\x20must\x20be\x20a\x20non-empty\x20string',_0x54ce92(0x720));if(![_0x54ce92(0x116),_0x54ce92(0x734)][_0x54ce92(0x459)](_0x4d64d4[_0x54ce92(0x560)]))throw new _0x60c8c1(_0x54ce92(0x764)+_0x4d64d4['id'],_0x54ce92(0x720));if(typeof _0x4d64d4['build']!=='function')throw new _0x60c8c1(_0x54ce92(0x1e3)+_0x4d64d4['id'],_0x54ce92(0x720));const _0x12e65d=this[_0x54ce92(0x229)],_0x2d3118=typeof _0x4d64d4[_0x54ce92(0x636)]===_0x54ce92(0x7e3);return this['_n'](_0x54ce92(0x3e0),[{'id':_0x4d64d4['id'],'kind':_0x4d64d4[_0x54ce92(0x560)],'family':_0x4d64d4[_0x54ce92(0x65c)]??null,'engineType':_0x4d64d4[_0x54ce92(0x39e)]??null,'pipelineFamily':_0x4d64d4[_0x54ce92(0x38d)]??null,'recommended':_0x4d64d4[_0x54ce92(0x4c3)]===!![],'summary':_0x4d64d4[_0x54ce92(0x3f8)]??null,'description':_0x4d64d4['description']??null,'inputSchema':_0x2d3118?null:_0x4d64d4[_0x54ce92(0x636)]??null,'inputSchemaFn':_0x2d3118?()=>_0x4d64d4[_0x54ce92(0x636)](_0x12e65d):null,'defaults':_0x4d64d4[_0x54ce92(0x13d)]??null,'notes':Array[_0x54ce92(0x486)](_0x4d64d4[_0x54ce92(0x71a)])?_0x4d64d4['notes']:[],'links':Array[_0x54ce92(0x486)](_0x4d64d4[_0x54ce92(0x3a1)])?_0x4d64d4['links']:[],'build':(_0x4720e4,_0x26e1ae)=>_0x4d64d4[_0x54ce92(0x433)](_0x4720e4??{},{'okdb':_0x12e65d,'envName':_0x26e1ae??null})}],![]);}[_0x1f03f4(0x112)](_0x27eb17){const _0x513134=_0x1f03f4;return this['_n'](_0x513134(0x112),[_0x27eb17??null],![]);}[_0x1f03f4(0x725)](_0xbc1163){const _0x8961b7=_0x1f03f4;return this['_n'](_0x8961b7(0x725),[_0xbc1163],![]);}[_0x1f03f4(0x23b)](_0x53d082,_0x3fe80f,_0x12a685){const _0x5d937e=_0x1f03f4;return this['_n'](_0x5d937e(0x23b),[_0x53d082,_0x3fe80f,_0x12a685??this[_0x5d937e(0x570)]],![]);}[_0x1f03f4(0x440)](){return this['_n']('catalog',[],![]);}async['start'](){const _0x2121c3=_0x1f03f4;return this[_0x2121c3(0x351)](_0x2121c3(0x73d),[]);}async[_0x1f03f4(0x209)](){const _0x37abcb=_0x1f03f4;return this[_0x37abcb(0x351)](_0x37abcb(0x209),[]);}async[_0x1f03f4(0x383)](_0x92f11b,_0x30418e,_0x414fa1={},_0x57d52c={},_0x4fba1c={}){const _0x7e881=_0x1f03f4;return this[_0x7e881(0x213)](await this[_0x7e881(0x351)](_0x7e881(0x383),[_0x92f11b,_0x30418e,_0x414fa1,_0x57d52c,_0x4fba1c]));}async[_0x1f03f4(0x4e8)](_0x384971,_0x1f0941,_0x5232be={},_0x21c62d={},_0x4edb19={}){const _0x2503d5=_0x1f03f4;return this['_wrap'](await this[_0x2503d5(0x351)]('createAndStartEngine',[_0x384971,_0x1f0941,_0x5232be,_0x21c62d,_0x4edb19]));}[_0x1f03f4(0x46f)](_0x47e4f0,_0x4dff6b){return this['_wrap'](this['_n']('getEngine',[_0x47e4f0,_0x4dff6b],![]));}['getRunningEngine'](_0x491511,_0x16d957){const _0x1d6016=_0x1f03f4;return this[_0x1d6016(0x213)](this['_n']('getRunningEngine',[_0x491511,_0x16d957],![]));}['list'](_0x8ee020){const _0x3d2027=_0x1f03f4;return this['_n'](_0x3d2027(0x646),[_0x8ee020??null],![])['map'](_0xafd669=>this['_wrap'](_0xafd669));}async[_0x1f03f4(0x716)](_0x108aa0,_0x9d1681){const _0x14aa9d=_0x1f03f4;return this[_0x14aa9d(0x213)](await this[_0x14aa9d(0x351)](_0x14aa9d(0x716),[_0x108aa0,_0x9d1681]));}async[_0x1f03f4(0x60e)](_0x15dc79,_0x3cc896){const _0x1ff0ca=_0x1f03f4;return this[_0x1ff0ca(0x7f3)][_0x1ff0ca(0x17d)](_0x15dc79+':'+_0x3cc896),this['_nm']('uninstallEngine',[_0x15dc79,_0x3cc896]);}async[_0x1f03f4(0x1c3)](_0x43f6ca){const _0x511ad9=_0x1f03f4;return this[_0x511ad9(0x351)](_0x511ad9(0x1c3),[_0x43f6ca]);}async[_0x1f03f4(0x497)](){const _0x37ff8c=_0x1f03f4;return this[_0x37ff8c(0x351)]('bootSyncedEngines',[]);}}function _0x40cac0(_0x51bd02){const _0x138cb9=_0x1f03f4,_0x3162b4=new Map();return{'has':_0x5a1afb=>_0x3162b4['has'](_0x5a1afb)||_0x51bd02[_0x138cb9(0x229)][_0x138cb9(0x6eb)]('engines',null,_0x138cb9(0x507),[_0x5a1afb],![]),'get':_0x1358ca=>_0x3162b4['get'](_0x1358ca),'set':()=>{const _0x44913a=_0x138cb9;throw new _0x60c8c1(_0x44913a(0x72e),_0x44913a(0x78a));},'_set':(_0x3be889,_0x3bb96c)=>_0x3162b4['set'](_0x3be889,_0x3bb96c),'keys':()=>_0x3162b4['keys'](),'entries':()=>_0x3162b4['entries'](),'values':()=>_0x3162b4[_0x138cb9(0x5ab)](),get 'size'(){const _0x10490a=_0x138cb9;return _0x3162b4[_0x10490a(0x16f)];},[Symbol['iterator']]:()=>_0x3162b4[Symbol[_0x138cb9(0x21f)]]()};}class _0x3b5041{constructor(_0x1c4040,_0x23617b=null){const _0x5c2938=_0x1f03f4;this[_0x5c2938(0x229)]=_0x1c4040,this[_0x5c2938(0x570)]=_0x23617b;}['_n'](_0x5c99da,_0xb8ddaa,_0xbe413d=!![]){const _0x2ae43f=_0x1f03f4;return this[_0x2ae43f(0x229)][_0x2ae43f(0x6eb)](_0x2ae43f(0x800),this[_0x2ae43f(0x570)],_0x5c99da,_0xb8ddaa,_0xbe413d);}['_nm'](_0x32be88,_0x5eef17){const _0x9fa778=_0x1f03f4;return this[_0x9fa778(0x229)][_0x9fa778(0x7a1)](_0x9fa778(0x800),this['envName'],_0x32be88,_0x5eef17,!![]);}get['isCoordinator'](){const _0x5892c1=_0x1f03f4;return this[_0x5892c1(0x570)]===null;}async[_0x1f03f4(0x1f5)](_0x566900){const _0x3f6505=_0x1f03f4;return this['_n'](_0x3f6505(0x1f5),[_0x566900]);}async[_0x1f03f4(0x1d2)](_0x3b96f8,_0x1df48f){const _0x122832=_0x1f03f4;return this['_n'](_0x122832(0x1d2),[_0x3b96f8,_0x1df48f??null],![]);}async[_0x1f03f4(0x656)](_0x38e33f,_0x319e67){return this['_n']('getRecord',[_0x38e33f,_0x319e67??null],![]);}async[_0x1f03f4(0x646)](_0x2ea18a){const _0x4dbe39=_0x1f03f4;return this['_n'](_0x4dbe39(0x646),[_0x2ea18a??null],![]);}async[_0x1f03f4(0x74d)](_0x438a3b={}){const _0x2381ee=_0x1f03f4;return this['_n'](_0x2381ee(0x74d),[_0x438a3b?.['envName']??null],![]);}[_0x1f03f4(0x802)](_0x2ed260,_0x3c4ff5){const _0x44f761=_0x1f03f4;return this['_n'](_0x44f761(0x802),[_0x2ed260,_0x3c4ff5??null],![]);}async['create'](_0x55086e){const _0x4c2b3c=_0x1f03f4;return this[_0x4c2b3c(0x351)](_0x4c2b3c(0x717),[_0x55086e]);}async['update'](_0x3de541,_0x3d8172){const _0x4081f2=_0x1f03f4;return this[_0x4081f2(0x351)]('update',[_0x3de541,_0x3d8172]);}async[_0x1f03f4(0x209)](_0x3531c4){return this['_nm']('stop',[_0x3531c4]);}async[_0x1f03f4(0x695)](_0x28d0af){const _0x323e48=_0x1f03f4;if(!_0x28d0af||typeof _0x28d0af!==_0x323e48(0x304)||!_0x28d0af[_0x323e48(0x6bb)]||!_0x28d0af[_0x323e48(0x262)])return _0x28d0af;for(let _0xfa6fe0=0x0;_0xfa6fe0<0x3;_0xfa6fe0++)await new Promise(_0x22c8e5=>setImmediate(_0x22c8e5));try{const _0x566eee=this['envName']!==null?await this[_0x323e48(0x1d2)](_0x28d0af[_0x323e48(0x6bb)]):_0x28d0af[_0x323e48(0x586)]?await this['get'](_0x28d0af[_0x323e48(0x586)],_0x28d0af['name']):null;return _0x566eee||_0x28d0af;}catch{return _0x28d0af;}}async[_0x1f03f4(0x73d)](_0x40e044){const _0x432d8c=_0x1f03f4;return this[_0x432d8c(0x695)](await this[_0x432d8c(0x351)](_0x432d8c(0x73d),[_0x40e044]));}async[_0x1f03f4(0x716)](_0xbbfeec){const _0x45de2e=_0x1f03f4;return this[_0x45de2e(0x695)](await this[_0x45de2e(0x351)](_0x45de2e(0x716),[_0xbbfeec]));}async[_0x1f03f4(0x512)](_0x141ef9){const _0x43367d=_0x1f03f4;return this[_0x43367d(0x351)](_0x43367d(0x512),[_0x141ef9]);}async[_0x1f03f4(0x46c)](_0x2544ae,_0xdfd15,_0x39157f){const _0x2953cc=_0x1f03f4;return this[_0x2953cc(0x351)](_0x2953cc(0x46c),[_0x2544ae,_0xdfd15,_0x39157f]);}async[_0x1f03f4(0x4ec)](_0x3278d5){const _0x4b3f5f=_0x1f03f4;return this[_0x4b3f5f(0x351)](_0x4b3f5f(0x4ec),[_0x3278d5]);}async[_0x1f03f4(0x49f)](){const _0x40f616=_0x1f03f4;return this[_0x40f616(0x351)](_0x40f616(0x49f),[]);}async['bootSyncedPipelines'](){const _0x483a51=_0x1f03f4;return this[_0x483a51(0x351)](_0x483a51(0x699),[]);}[_0x1f03f4(0x5f2)](_0x2a5026,_0x496c02){const _0x3f52ac=_0x1f03f4;return this['_n'](_0x3f52ac(0x5f2),[_0x2a5026,_0x496c02],![]);}}return engines={'OKDBEngines':_0x5ff89b,'OKDBPipelines':_0x3b5041,'OKDBEngineHandle':_0x4fbd62},engines;}var functions,hasRequiredFunctions;function requireFunctions(){const _0x423e0c=_0x36292f;if(hasRequiredFunctions)return functions;hasRequiredFunctions=0x1;const {optionsArg:_0x24945e}=requireErrors(),_0x343ba9=Number(process.env.OKDB_FN_POLL_MS)||0x14;class _0x137d4a{constructor(_0x3a620d,_0x20e4f9=null){const _0x55a9ab=_0x303e;this['okdb']=_0x3a620d,this[_0x55a9ab(0x570)]=_0x20e4f9??_0x55a9ab(0x4da);}get[_0x423e0c(0x586)](){const _0x23e1d8=_0x423e0c;return this[_0x23e1d8(0x229)][_0x23e1d8(0x748)][_0x23e1d8(0x1d2)](this['envName'])??null;}['_n'](_0x282540,_0x44522c=[],_0x441ac1=!![]){const _0x497ec0=_0x423e0c;try{return this[_0x497ec0(0x229)]['_call'](_0x497ec0(0x1f2),this[_0x497ec0(0x570)],_0x282540,_0x44522c,_0x441ac1);}catch(_0x5d7891){throw _0x5d1b4b(_0x5d7891);}}async[_0x423e0c(0x351)](_0x4f63f2,_0x1b98fb=[]){const _0x33097e=_0x423e0c;try{return await this['okdb'][_0x33097e(0x7a1)](_0x33097e(0x1f2),this[_0x33097e(0x570)],_0x4f63f2,_0x1b98fb,!![]);}catch(_0x310f1e){throw _0x5d1b4b(_0x310f1e);}}async[_0x423e0c(0x646)](){const _0x296d47=_0x423e0c;return this['_n'](_0x296d47(0x646),[],![]);}async[_0x423e0c(0x1d2)](_0x315e26){const _0x59ec53=_0x423e0c;return this['_n'](_0x59ec53(0x1d2),[_0x315e26],![]);}async[_0x423e0c(0x717)](_0x594e55){const _0x5008ca=_0x423e0c;return this['_n'](_0x5008ca(0x717),[_0x594e55]);}async[_0x423e0c(0x323)](_0x2670b1,_0x4c35bb={}){return this['_n']('update',[_0x2670b1,_0x4c35bb]);}async[_0x423e0c(0x4ec)](_0x4aa932){const _0x146364=_0x423e0c;return this['_n'](_0x146364(0x4ec),[_0x4aa932]);}async[_0x423e0c(0x30f)](_0x533c5e){const {functionName:functionName=null}=_0x24945e(_0x533c5e);return this['_n']('listRuns',[{'functionName':functionName}],![]);}async[_0x423e0c(0x631)](_0x309691){const _0xefce9=_0x423e0c;return this['_n'](_0xefce9(0x631),[_0x309691],![]);}async[_0x423e0c(0x7ed)](_0x21f7d9){const _0x36ae70=_0x423e0c;return _0x21f7d9=_0x24945e(_0x21f7d9,_0x36ae70(0x15c)),this['_n'](_0x36ae70(0x7ed),[_0x21f7d9]);}async[_0x423e0c(0x15c)](_0x7b61f9,_0x26b496=null,_0x309edb={}){const _0x31c817=_0x423e0c,_0x2a96d8={..._0x309edb},_0x3d2e64=_0x2a96d8['signal'];if(_0x3d2e64)_0x2a96d8['aborted']=!!_0x3d2e64[_0x31c817(0x506)];delete _0x2a96d8[_0x31c817(0x315)];const _0x3ccc0c=await this[_0x31c817(0x351)](_0x31c817(0x3fc),[_0x7b61f9,_0x26b496,_0x2a96d8]),_0xbe81a7=this[_0x31c817(0x229)],_0x4fc6a3=()=>_0xbe81a7[_0x31c817(0x2ba)][_0x31c817(0x7c7)]();if(_0x3d2e64&&typeof _0x3d2e64[_0x31c817(0x7d3)]===_0x31c817(0x7e3))_0x3d2e64[_0x31c817(0x7d3)](_0x31c817(0x47f),_0x4fc6a3,{'once':!![]});let _0x530377=![];try{for(;;){const _0x1376d7=_0xbe81a7[_0x31c817(0x2ba)][_0x31c817(0x2a9)](_0x343ba9);let _0x2ab53d;try{_0x2ab53d=await _0xbe81a7[_0x31c817(0x7a1)](_0x31c817(0x1f2),this[_0x31c817(0x570)],'runPoll',[_0x3ccc0c,!!_0x3d2e64?.['aborted']],![],![]);}catch(_0xf1cf84){_0x530377=!![];throw _0x5d1b4b(_0xf1cf84);}if(!_0x2ab53d||_0x2ab53d['$pending']!==!![])return _0x530377=!![],_0xbe81a7['_pumper'][_0x31c817(0x7c7)](),_0x2ab53d;if(_0x2ab53d['progressed'])_0xbe81a7[_0x31c817(0x2ba)][_0x31c817(0x7c7)]();await _0x1376d7;}}finally{if(_0x3d2e64&&typeof _0x3d2e64[_0x31c817(0x5f9)]===_0x31c817(0x7e3))_0x3d2e64[_0x31c817(0x5f9)](_0x31c817(0x47f),_0x4fc6a3);if(!_0x530377)try{_0xbe81a7['_call'](_0x31c817(0x1f2),this[_0x31c817(0x570)],'runDrop',[_0x3ccc0c],![]);}catch{}}}async[_0x423e0c(0x1bf)](_0x48d3d2={},_0x5ad379=null,_0x39cc1e={}){const _0x353fd1=_0x423e0c;return this['_nm'](_0x353fd1(0x1bf),[_0x48d3d2,_0x5ad379,_0x39cc1e]);}async[_0x423e0c(0x209)](){}}function _0x5d1b4b(_0x8f5d6e){const _0x160e4d=_0x423e0c;if(_0x8f5d6e&&_0x8f5d6e[_0x160e4d(0x184)]&&_0x8f5d6e[_0x160e4d(0x184)][_0x160e4d(0x6e1)])_0x8f5d6e[_0x160e4d(0x17e)]=_0x8f5d6e[_0x160e4d(0x184)][_0x160e4d(0x6e1)];return _0x8f5d6e;}return functions={'OKDBFunctions':_0x137d4a},functions;}var processor={'exports':{}},lock,hasRequiredLock;function requireLock(){const _0x9395eb=_0x36292f;if(hasRequiredLock)return lock;hasRequiredLock=0x1;const {optionsArg:_0x1e44ab}=requireErrors();class _0x58d3f6{constructor(_0xf78b60,_0x1e2957){const _0x504bdf=_0x303e;this[_0x504bdf(0x6c4)]=_0xf78b60,this[_0x504bdf(0x3f6)]=_0x1e2957;}['_n'](_0x16fd3f,_0x5bd211=[]){const _0x12a634=_0x303e;return this[_0x12a634(0x6c4)]['_n'](_0x16fd3f,[this[_0x12a634(0x3f6)],..._0x5bd211]);}['isHeld'](){const _0x58b26c=_0x303e;return this['_n'](_0x58b26c(0x12d));}get[_0x9395eb(0x131)](){return this['_n']('acquiredAt');}[_0x9395eb(0x4b1)](){const _0x3588c9=_0x9395eb;return this['_n'](_0x3588c9(0x4b1));}[_0x9395eb(0x2c4)](_0x13d2f5){const _0x240e37=_0x9395eb;return this['_n'](_0x240e37(0x2c4),[_0x13d2f5]);}async[_0x9395eb(0x37f)](){return this['_n']('release');}}class _0x2fe24d{constructor(_0x5b24bb,_0x22534c,_0x3e3767,_0x1bab33){const _0x5b1e7b=_0x9395eb,{ttlMs:ttlMs=0x7530,heartbeatMs:heartbeatMs=null}=_0x1e44ab(_0x1bab33);this[_0x5b1e7b(0x229)]=_0x5b24bb,this['namespace']=_0x3e3767,this[_0x5b1e7b(0x3f6)]=_0x5b24bb[_0x5b1e7b(0x6eb)](_0x5b1e7b(0x29c),_0x22534c,_0x5b1e7b(0x7dd),[_0x3e3767,ttlMs,heartbeatMs],![]),this[_0x5b1e7b(0x3b4)]=_0x22534c;}['_n'](_0x1c7800,_0x584b10=[]){const _0x1860ff=_0x9395eb;return this[_0x1860ff(0x229)]['_call']('lock',this[_0x1860ff(0x3b4)],_0x1c7800,_0x584b10,![]);}[_0x9395eb(0x240)](_0x90fb33){const _0x4fed2f=_0x9395eb;return this['_n'](_0x4fed2f(0x119),[this['_id'],_0x90fb33]);}async[_0x9395eb(0x727)](_0x4a4400,_0x223bf6={},_0x383f80={}){const _0x446a75=_0x9395eb,_0x56953e=this['_n']('tryAcquire',[this[_0x446a75(0x3f6)],_0x4a4400,_0x223bf6,_0x383f80]);return{'acquired':_0x56953e['acquired'],'handle':_0x56953e['handle']==null?null:new _0x58d3f6(this,_0x56953e['handle']),'current':_0x56953e[_0x446a75(0x6e9)]};}[_0x9395eb(0x759)](_0x1fa190){const _0x16ded6=_0x9395eb;return this['_n']('inspect',[this[_0x16ded6(0x3f6)],_0x1fa190]);}[_0x9395eb(0x646)](){const _0x28a89b=_0x9395eb;return this['_n'](_0x28a89b(0x646),[this[_0x28a89b(0x3f6)]]);}['signalWant'](_0x5148a9){const _0x541499=_0x9395eb;return this['_n'](_0x541499(0x6a2),[this[_0x541499(0x3f6)],_0x5148a9]);}[_0x9395eb(0x396)](_0x3b7706,_0xf0730a=0x3e8){const _0x29c0ad=_0x9395eb;return this['_n'](_0x29c0ad(0x396),[this[_0x29c0ad(0x3f6)],_0x3b7706,_0xf0730a]);}}return lock={'NativeLock':_0x2fe24d,'NativeLockHandle':_0x58d3f6},lock;}var hasRequiredProcessor;function requireProcessor(){const _0x49872f=_0x36292f;if(hasRequiredProcessor)return processor['exports'];hasRequiredProcessor=0x1;const _0x42f378=requireBridge(),{RawDb:_0x3739ab}=requireRawdb(),{NativeLock:_0x1d9272}=requireLock();function _0x1beb48(_0x491ff7){}class _0x44a555{constructor(_0x5d8937){const _0x333546=_0x303e;this[_0x333546(0x586)]=_0x5d8937,this['okdb']=_0x5d8937;try{this['_n'](_0x333546(0x3e1),[(_0x423331,_0xe3dc35)=>{const _0x1e7062=_0x333546,_0x343a0c=this[_0x1e7062(0x229)][_0x1e7062(0x282)],_0x5e12a8=_0x343a0c?.[_0x423331]??_0x343a0c?.[_0x1e7062(0x7ba)];if(typeof _0x5e12a8==='function')_0x5e12a8[_0x1e7062(0x54b)](_0x343a0c,_0xe3dc35);}],![]);}catch{}}['_n'](_0x239f79,_0x1b4eaf,_0x296a48=!![]){const _0x1fa045=_0x303e;return this['env'][_0x1fa045(0x229)][_0x1fa045(0x6eb)](_0x1fa045(0x22b),this[_0x1fa045(0x586)][_0x1fa045(0x6bb)],_0x239f79,_0x1b4eaf,_0x296a48);}[_0x49872f(0x2f3)](_0x3d17c7,_0x45c746={}){const _0x12772b=_0x49872f,_0x457c63={..._0x45c746};if(typeof _0x457c63['handler']==='function'&&_0x457c63[_0x12772b(0x387)]!=null)throw new Error(_0x12772b(0x4f5)+'Use\x20module:{path,export}\x20alone,\x20or\x20handler:\x27<name>\x27\x20for\x20a\x20built-in.');if(typeof _0x457c63[_0x12772b(0x634)]===_0x12772b(0x635)&&_0x457c63['module']!=null)throw new Error(_0x12772b(0x2d8));if(_0x457c63[_0x12772b(0x387)]!=null){if(!_0x457c63[_0x12772b(0x387)][_0x12772b(0x6dc)])throw new Error('processor:\x20module.path\x20is\x20required');const _0x19b659=_0x457c63[_0x12772b(0x387)][_0x12772b(0x77e)]??_0x457c63[_0x12772b(0x387)][_0x12772b(0x4ea)]??_0x12772b(0x4df),_0x54167b=require[_0x12772b(0x809)](_0x457c63[_0x12772b(0x387)][_0x12772b(0x6dc)]),_0x28906e=require(_0x54167b),_0x470a8e=_0x28906e[_0x19b659]??_0x28906e[_0x12772b(0x478)]??_0x28906e;if(typeof _0x470a8e!==_0x12772b(0x7e3))throw new Error('processor:\x20module\x20\x27'+_0x457c63['module'][_0x12772b(0x6dc)]+_0x12772b(0x80b)+_0x19b659+_0x12772b(0x1c9));this[_0x12772b(0x586)][_0x12772b(0x229)][_0x12772b(0x7cd)](_0x12772b(0x22b),_0x12772b(0x50a),[_0x54167b,_0x19b659,_0x470a8e]),_0x457c63['module']={'path':_0x54167b,'export':_0x19b659};}if(_0x457c63['quantum']!=null){if(typeof _0x457c63[_0x12772b(0x6de)][_0x12772b(0x387)]!==_0x12772b(0x635))throw new Error(_0x12772b(0x2b8));const _0x5123a7=require[_0x12772b(0x809)](_0x457c63[_0x12772b(0x6de)][_0x12772b(0x387)]),_0x37a6db=require(_0x5123a7),_0x4063ba=_0x457c63['quantum']['exportName'],_0x5c793b=_0x4063ba?_0x37a6db[_0x4063ba]:_0x37a6db[_0x12772b(0x478)]??_0x37a6db;if(typeof _0x5c793b===_0x12772b(0x7e3)){const _0x10d2af=_0x4063ba?_0x457c63['quantum'][_0x12772b(0x387)]+'#'+_0x4063ba:_0x457c63['quantum'][_0x12772b(0x387)];this['env'][_0x12772b(0x229)][_0x12772b(0x7cd)](_0x12772b(0x22b),_0x12772b(0x5d9),[_0x10d2af,_0x5c793b]);}_0x457c63['quantum']={..._0x457c63['quantum']};}_0x457c63[_0x12772b(0x45f)]!=null&&typeof _0x457c63[_0x12772b(0x45f)]===_0x12772b(0x304)&&(_0x457c63[_0x12772b(0x45f)]={'$payload':_0x42f378[_0x12772b(0x4f6)](_0x457c63['payload'],this[_0x12772b(0x586)]['okdb'])});if(_0x457c63[_0x12772b(0x512)]!=null&&typeof _0x457c63[_0x12772b(0x512)]!=='function')throw new Error(_0x12772b(0x414));const _0x5b8ec3=this['_n'](_0x12772b(0x2f3),[_0x3d17c7??null,_0x457c63]);return this['_stopFor'](_0x5b8ec3['id'],_0x5b8ec3[_0x12772b(0x5a1)]);}[_0x49872f(0x590)](_0x58581c,_0x27b1f7){const _0x17ca74=_0x49872f,_0xac5088=this,_0xc28d3=async()=>{const _0x392b5b=_0x303e;_0xac5088['_n'](_0x392b5b(0x56f),[_0x58581c]);};return _0xc28d3['id']=_0x58581c,_0xc28d3[_0x17ca74(0x5a1)]=_0x27b1f7,_0xc28d3['durableClock']=()=>_0x27b1f7?_0xac5088['_n'](_0x17ca74(0x7df),[_0x58581c],![]):0x0,_0xc28d3[_0x17ca74(0x327)]=()=>_0xac5088['get'](_0x58581c),_0xc28d3[_0x17ca74(0x7d2)]=_0xc28d3[_0x17ca74(0x327)],_0xc28d3[_0x17ca74(0x1bd)]=()=>_0xac5088[_0x17ca74(0x1bd)](_0x58581c),_0xc28d3['resume']=()=>_0xac5088[_0x17ca74(0x435)](_0x58581c),_0xc28d3['kick']=()=>_0xac5088[_0x17ca74(0x7d1)](_0x58581c),_0xc28d3[_0x17ca74(0x2df)]=()=>_0xac5088['retry'](_0x58581c),_0xc28d3[_0x17ca74(0x43c)]=_0x413f7a=>_0xac5088[_0x17ca74(0x43c)](_0x58581c,_0x413f7a),_0xc28d3;}get[_0x49872f(0x37d)](){const _0x5b6198=_0x49872f;try{return this['_n'](_0x5b6198(0x646),[],![])[_0x5b6198(0x2fe)](_0xc4548b=>({'id':_0xc4548b['id']}));}catch{return[];}}async['pauseAllAndDrain'](_0x321c5f){const _0x5e5144=_0x49872f;return new Set(this['_n'](_0x5e5144(0x205),[]));}['resumeAllAfterDrain'](_0x1bbb4f){return this['_n']('resumeAllAfterDrain',[[..._0x1bbb4f??[]]]);}get['_envWide'](){const _0x4bfb42=_0x49872f;return new Set(this['_n'](_0x4bfb42(0x646),[],![])[_0x4bfb42(0x4b0)](_0x675c2e=>_0x675c2e['type']==null)[_0x4bfb42(0x2fe)](_0x406aa5=>_0x406aa5['id']));}[_0x49872f(0x6a7)](){}get[_0x49872f(0x6c4)](){const _0x492628=_0x49872f;if(!this[_0x492628(0x7ee)]){const _0x5bb155=new _0x1d9272(this[_0x492628(0x586)]['okdb'],this['env'][_0x492628(0x6bb)],'proc'),_0x3d4f0e=this[_0x492628(0x586)];_0x5bb155['_db']=()=>new _0x3739ab(_0x3d4f0e,_0x492628(0x473)),this['__lock']=_0x5bb155;}return this[_0x492628(0x7ee)];}[_0x49872f(0x14a)](_0x1f2331,_0x91c845){return this['_n']('fail',[typeof _0x1f2331==='string'?_0x1f2331:_0x1f2331['id'],_0x91c845?.['message']??String(_0x91c845??'')]);}get[_0x49872f(0x345)](){const _0x255961=_0x49872f;return this[_0x255961(0x33e)]||(this[_0x255961(0x33e)]=new _0x3739ab(this[_0x255961(0x586)],_0x255961(0x11e)));}get['_registrations'](){const _0x5e37a6=_0x49872f,_0x1c3872=this,_0x87032a=_0x2e75f5=>{const _0x34e8ba=_0x303e,_0x3d946f=()=>_0x1c3872['_n'](_0x34e8ba(0x444),[_0x2e75f5],![]);if(!_0x3d946f())return undefined;const _0x7c1fd9=_0x3bb900=>()=>_0x3d946f()?.[_0x3bb900],_0x5b68c4={'id':_0x2e75f5},_0x4b6e40=(_0x3d1655,_0x1d3a27,_0x16a4d5)=>Object['defineProperty'](_0x5b68c4,_0x3d1655,{'get':_0x1d3a27,'set':_0x16a4d5,'enumerable':!![],'configurable':!![]});return _0x4b6e40(_0x34e8ba(0x41a),_0x7c1fd9(_0x34e8ba(0x41a))),_0x4b6e40(_0x34e8ba(0x259),_0x7c1fd9(_0x34e8ba(0x259))),_0x4b6e40(_0x34e8ba(0x488),_0x7c1fd9(_0x34e8ba(0x488))),_0x4b6e40(_0x34e8ba(0x2c6),_0x7c1fd9(_0x34e8ba(0x2c6)),_0x574859=>_0x1c3872['_n'](_0x34e8ba(0x274),[_0x2e75f5,_0x574859])),_0x4b6e40(_0x34e8ba(0x5a1),_0x7c1fd9(_0x34e8ba(0x5a1))),_0x4b6e40(_0x34e8ba(0x502),_0x7c1fd9(_0x34e8ba(0x80a)),_0x2bbb86=>_0x1c3872['_n'](_0x34e8ba(0x5ed),[_0x2e75f5,!!_0x2bbb86])),_0x4b6e40(_0x34e8ba(0x69f),_0x7c1fd9('handlerName')),_0x4b6e40(_0x34e8ba(0x6da),_0x7c1fd9(_0x34e8ba(0x6da))),_0x4b6e40(_0x34e8ba(0x64e),_0x7c1fd9(_0x34e8ba(0x64e))),_0x4b6e40(_0x34e8ba(0x6e0),_0x7c1fd9(_0x34e8ba(0x785)),_0x3283d5=>_0x1c3872['_n'](_0x34e8ba(0x3d1),[_0x2e75f5,_0x3283d5])),_0x4b6e40(_0x34e8ba(0x295),()=>_0x1c3872[_0x34e8ba(0x1d2)](_0x2e75f5)?.[_0x34e8ba(0x295)]),_0x4b6e40(_0x34e8ba(0x651),()=>_0x3d946f()?.[_0x34e8ba(0x19e)]?{'isHeld':()=>!!_0x3d946f()?.[_0x34e8ba(0x19e)]}:null),_0x4b6e40('_pokeHandler',()=>_0x3d946f()?.[_0x34e8ba(0x3a2)]?()=>{}:null),_0x4b6e40(_0x34e8ba(0x27c),()=>_0x3d946f()?.['intervalTimer']?{}:null),_0x4b6e40(_0x34e8ba(0x5cb),()=>_0x3d946f()?.['debounceTimer']?{}:null),_0x5b68c4;},_0x249b77=()=>_0x1c3872['_n'](_0x5e37a6(0x646),[],![])['map'](_0x1b64ae=>_0x1b64ae['id']);return{'get':_0x441759=>_0x87032a(_0x441759),'has':_0x25480b=>_0x249b77()['includes'](_0x25480b),get 'size'(){const _0x43449a=_0x5e37a6;return _0x249b77()[_0x43449a(0x1e1)];},'keys':()=>_0x249b77()[Symbol[_0x5e37a6(0x21f)]](),'values':()=>_0x249b77()['map'](_0x87032a)[Symbol['iterator']](),'entries':()=>_0x249b77()['map'](_0x12b940=>[_0x12b940,_0x87032a(_0x12b940)])[Symbol['iterator']](),[Symbol['iterator']]:()=>_0x249b77()[_0x5e37a6(0x2fe)](_0x34f561=>[_0x34f561,_0x87032a(_0x34f561)])[Symbol[_0x5e37a6(0x21f)]](),'forEach':_0xf9e6cd=>_0x249b77()['forEach'](_0x341103=>_0xf9e6cd(_0x87032a(_0x341103),_0x341103))};}async[_0x49872f(0x49f)](){const _0x2d893c=_0x49872f;return this['_n'](_0x2d893c(0x49f),[]);}[_0x49872f(0x646)](){const _0x19d556=_0x49872f,_0x1edd0c=this['_n']('list',[],![]);if(!this['env'][_0x19d556(0x6bb)][_0x19d556(0x169)]('~'))try{const _0xebc271=this[_0x19d556(0x586)][_0x19d556(0x229)]['meta'];for(const _0x5435c8 of _0xebc271[_0x19d556(0x5b9)](this[_0x19d556(0x586)]['name'])){for(const _0x11b695 of _0xebc271['listIndexes'](_0x5435c8,this[_0x19d556(0x586)][_0x19d556(0x6bb)])){const _0x1b6430=_0x19d556(0x4ce)+_0x5435c8+':'+_0x11b695;_0x1edd0c[_0x19d556(0x460)]({'id':_0x1b6430,'type':_0x5435c8,'mode':_0x19d556(0x589),'state':_0x19d556(0x2aa),'paused':![],'lag':0x0,'cursorKey':_0x1b6430,'meta':{'name':_0x1b6430}});}}}catch{}return _0x1edd0c;}[_0x49872f(0x4aa)](){const _0x253a56=_0x49872f;return this['_n'](_0x253a56(0x4aa),[],![]);}[_0x49872f(0x50f)](){const _0x2043ec=_0x49872f;return this['_n'](_0x2043ec(0x50f),[],![]);}[_0x49872f(0x3e5)](){return this['_n']('durableCursorFloor',[],![]);}[_0x49872f(0x1d2)](_0x38c7f1){return this['_n']('get',[_0x38c7f1],![]);}[_0x49872f(0x72f)](_0x42286c){const _0x109457=_0x49872f;return this[_0x109457(0x1d2)](typeof _0x42286c==='string'?_0x42286c:_0x42286c['id']);}[_0x49872f(0x758)](_0x4a1848){const _0x6165f2=_0x49872f;return this['_n'](_0x6165f2(0x758),[_0x4a1848],![]);}['resetCursor'](_0x2a8d2a){return this['_n']('resetCursor',[_0x2a8d2a]);}[_0x49872f(0x180)](_0x5640bb){return this['_n']('markSnapshotComplete',[_0x5640bb]);}[_0x49872f(0x1cb)](_0xc5c137){const _0x5c3f17=_0x49872f;return this['_n'](_0x5c3f17(0x1cb),[_0xc5c137],![]);}[_0x49872f(0x183)](_0x463486,_0x435699){const _0x111760=_0x49872f;return this['_n'](_0x111760(0x183),[_0x463486,_0x435699]);}async[_0x49872f(0x43c)](_0x368fca,_0x583262){const _0x2f4408=_0x49872f;return this['_n'](_0x2f4408(0x43c),[_0x368fca,_0x583262??0x7530]);}['pause'](_0x475d7c){return this['_n']('pause',[_0x475d7c]);}['resume'](_0x466c33){const _0x495965=_0x49872f;return this['_n'](_0x495965(0x435),[_0x466c33]);}async[_0x49872f(0x61b)](_0x59048d){const _0x34dfb5=_0x49872f;return this['_n'](_0x34dfb5(0x61b),[_0x59048d]);}[_0x49872f(0x7d1)](_0x76dffa){return this['_n']('kick',[_0x76dffa]);}['retry'](_0x309fc5){return this['_n']('retry',[_0x309fc5]);}['restart'](_0x10e1ce,_0x1ca7a4={}){const _0x308a51=_0x49872f;return this['_n'](_0x308a51(0x716),[_0x10e1ce,_0x1ca7a4]);}async['setMode'](_0x13a8fa,_0x2b2f8e,_0x23c935){const _0x43095d=_0x49872f,[_0x248ecc,_0x70ae4]=this['_n'](_0x43095d(0x702),[_0x13a8fa,_0x2b2f8e,_0x23c935]);return{'version':_0x248ecc,'flipClock':_0x70ae4};}async[_0x49872f(0x466)](_0x3d3ca4,_0x1c24d2,_0x4e6d01={}){return this['_n']('snapshotScan',[_0x3d3ca4,_0x1c24d2,_0x4e6d01]);}}_0x44a555[_0x49872f(0x314)]=function _0x3cd557(_0x326f0e,_0x14c9b5){const _0x45e301=_0x49872f;if(typeof _0x326f0e!==_0x45e301(0x635)||!_0x326f0e)throw new Error(_0x45e301(0x669));if(typeof _0x14c9b5!==_0x45e301(0x7e3))throw new Error(_0x45e301(0x6ec));_0xdfd066(_0x45e301(0x22b),_0x45e301(0x314),[_0x326f0e,_0x14c9b5]);},_0x44a555['registerQuantum']=function _0x362e7e(_0x5c60e0,_0x4010c4){const _0x45f5d6=_0x49872f;if(typeof _0x5c60e0!==_0x45f5d6(0x635)||!_0x5c60e0)throw new Error(_0x45f5d6(0x1af));if(typeof _0x4010c4!==_0x45f5d6(0x7e3))throw new Error(_0x45f5d6(0x480));let _0x247fb7=null;_0xdfd066('proc',_0x45f5d6(0x5d9),[_0x5c60e0,(_0x4b143c,_0x1a2fe9)=>{if(!_0x247fb7)_0x247fb7=_0x4010c4();return _0x247fb7(_0x4b143c,_0x1a2fe9);}]);},_0x44a555[_0x49872f(0x658)]=_0x662bde=>/closed|not open|released/i[_0x49872f(0x349)](String(_0x662bde)),_0x44a555[_0x49872f(0x760)]=![];function _0xdfd066(_0x3045e7,_0x4910e2,_0x1868ec){const {staticCall:_0x201666}=requireLib();return _0x201666(_0x3045e7,_0x4910e2,_0x1868ec);}return processor['exports']=_0x44a555,processor[_0x49872f(0x6bd)]['OKDBProcessor']=_0x44a555,processor[_0x49872f(0x6bd)][_0x49872f(0x10f)]=_0x1beb48,processor[_0x49872f(0x6bd)];}var okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x1ce8aa=_0x36292f;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x51a13e={'PUT':_0x1ce8aa(0x4f8),'REMOVE':'remove','INDEX_DROP':_0x1ce8aa(0x2a6),'INDEX_REGISTER':_0x1ce8aa(0x18f),'INDEX_RESET':_0x1ce8aa(0x105),'TYPE_REGISTER':_0x1ce8aa(0x227),'TYPE_DROP':'dropType','FTS_REGISTER':'registerFts','FTS_DROP':'dropFts','FTS_RESET':'resetFts','SCHEMA_SET':_0x1ce8aa(0x411),'SCHEMA_DROP':_0x1ce8aa(0x30b),'TTL_SET':_0x1ce8aa(0x51b),'TTL_CLEAR':_0x1ce8aa(0x526)},_0x40774b={'SYSTEM_READY':'system:ready','FIELD_RESOLVER_REGISTERED':_0x1ce8aa(0x42d),'SYSTEM_STOPPED':_0x1ce8aa(0x2f4),'SYSTEM_CLOCK_CHANGE':'system:clock_change','SYSTEM_POKE':_0x1ce8aa(0x56c),'SYSTEM_DRAIN':_0x1ce8aa(0x109),'SYSTEM_TYPE_DROP':_0x1ce8aa(0x135),'SYSTEM_PROC':_0x1ce8aa(0x222),'SYSTEM_BUS_STATE_CHANGE':_0x1ce8aa(0x398),'ITEM_CREATE':_0x1ce8aa(0x6fe),'ITEM_UPDATE':_0x1ce8aa(0x27d),'ITEM_REMOVE':_0x1ce8aa(0x1e7),'ITEM_PENDING':'item:pending','INDEX_RESET':_0x1ce8aa(0x647),'INDEX_READY':'index:ready','INDEX_PROGRESS':'index:progress','VIEW_PROGRESS':_0x1ce8aa(0x3c1),'INDEX_DROP':_0x1ce8aa(0x45c),'INDEX_REGISTERED':_0x1ce8aa(0x39f),'FTS_REGISTERED':_0x1ce8aa(0x2fb),'FTS_DROP':'fts:drop','FTS_RESET':'fts:reset','SCHEMA_SET':_0x1ce8aa(0x219),'SCHEMA_DROP':_0x1ce8aa(0x737),'UNIQUE_VIOLATION':_0x1ce8aa(0x153),'UNIQUE_VIOLATION_RESOLVED':_0x1ce8aa(0x2c0),'REF_VIOLATION':'ref:violation','REF_VIOLATION_RESOLVED':_0x1ce8aa(0x5f0),'SYNC_APPLY':_0x1ce8aa(0x4bb),'TXN_START':_0x1ce8aa(0x7ad),'TXN_END':'txn:end','TXN_ROLLBACK':'txn:rollback','TYPE_REGISTERED':'type:registered','TYPE_DROP':_0x1ce8aa(0x3ea),'ENV_OPENED':_0x1ce8aa(0x3e3),'ENV_REMOVED':'env:removed','SYSTEM_ENV_RELEASE':_0x1ce8aa(0x336),'TTL_EXPIRED':'ttl:expired','TTL_SET':'ttl:set','TTL_CLEAR':_0x1ce8aa(0x762),'LICENSE_INVALID':_0x1ce8aa(0x12e),'LICENSE_ADDED':'license:added','LICENSE_ACTIVATED':_0x1ce8aa(0x2c1),'LICENSE_REMOVED':_0x1ce8aa(0x2ef)},_0x2a40e5={'CREATING':_0x1ce8aa(0x2b2),'RESETTING':'resetting','READY':_0x1ce8aa(0x420),'DROPPING':'dropping','WAITING':'waiting','ERROR':_0x1ce8aa(0x19f)},_0x3d5a75={'CREATED':_0x1ce8aa(0x34c),'STARTING':_0x1ce8aa(0x258),'STARTED':_0x1ce8aa(0x28f),'STOPPING':_0x1ce8aa(0x6b7),'STOPPED':_0x1ce8aa(0x63f)},_0x45e728={'CREATING':_0x1ce8aa(0x2b2),'READY':_0x1ce8aa(0x420),'HALTED':'halted','STOPPED':_0x1ce8aa(0x63f),'RESETTING':'resetting'},_0x40d778=Object['freeze']({'POKE':_0x1ce8aa(0x391),'DRAIN':_0x1ce8aa(0x145),'TYPE_DROP':_0x1ce8aa(0x4e5),'PROC':_0x1ce8aa(0x755),'ENV_RELEASE':_0x1ce8aa(0x57c)});return okdbEnums={'BUS_EVENTS':_0x40d778,'CHANGE_ACTIONS':_0x51a13e,'EVENTS':_0x40774b,'INDEX_STATE':_0x2a40e5,'OKDB_STATE':_0x3d5a75,'VIEW_STATE':_0x45e728},okdbEnums;}var okdbGuardedRange,hasRequiredOkdbGuardedRange;function requireOkdbGuardedRange(){const _0x42e936=_0x36292f;if(hasRequiredOkdbGuardedRange)return okdbGuardedRange;hasRequiredOkdbGuardedRange=0x1;const _0x4768a9={'SKIP':Symbol['for']('@harperdb/extended-iterable:skip')},{OKDBError:_0x12dc66}=requireOkdbError(),_0x47f5da={'value':null,'done':!![]};class _0x34f3db{constructor(_0x2b3ce3){const _0x350d86=_0x303e;this[_0x350d86(0x685)]=_0x2b3ce3;}get[_0x42e936(0x7a7)](){return _0x47f5da;}[Symbol[_0x42e936(0x21f)]](){const _0x26d83c=_0x42e936;return this[_0x26d83c(0x685)]();}[_0x42e936(0x2fe)](_0x1a2631){const _0x1eb995=this;return new _0x34f3db(()=>{const _0x13c772=_0x303e,_0x5ad81a=_0x1eb995[Symbol['iterator']]();return{'next'(){const _0x13b539=_0x303e;for(;;){const _0x386ce8=_0x5ad81a[_0x13b539(0x2ee)]();if(_0x386ce8[_0x13b539(0x707)])return{'done':!![],'value':undefined};const _0x159084=_0x1a2631(_0x386ce8['value']);if(_0x159084===_0x4768a9['SKIP'])continue;if(_0x159084===_0x47f5da)return _0x5ad81a[_0x13b539(0x4ab)]?.(),{'done':!![],'value':undefined};return{'done':![],'value':_0x159084};}},'return'(){const _0x2bf73e=_0x303e;return _0x5ad81a[_0x2bf73e(0x4ab)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x13c772(0x21f)]](){return this;}};});}[_0x42e936(0x4b0)](_0xa41431){const _0x31a067=_0x42e936;return this[_0x31a067(0x2fe)](_0x95654d=>_0xa41431(_0x95654d)?_0x95654d:_0x4768a9[_0x31a067(0x36f)]);}[_0x42e936(0x55b)](_0xf1f99f){for(const _0x2353bb of this)_0xf1f99f(_0x2353bb);}[_0x42e936(0x6ea)](_0xeb8df1=0x0,_0x463067=Infinity){const _0x47ff65=this;return new _0x34f3db(()=>{const _0x33c88c=_0x303e,_0xf9e8ad=_0x47ff65[Symbol[_0x33c88c(0x21f)]]();let _0x3fd5ca=0x0;return{'next'(){const _0x57eabc=_0x33c88c;for(;;){const _0x3e3139=_0xf9e8ad[_0x57eabc(0x2ee)]();if(_0x3e3139[_0x57eabc(0x707)])return{'done':!![],'value':undefined};const _0x23ae7e=_0x3fd5ca++;if(_0x23ae7e<_0xeb8df1)continue;if(_0x23ae7e>=_0x463067)return _0xf9e8ad['return']?.(),{'done':!![],'value':undefined};return _0x3e3139;}},'return'(){const _0x33cd54=_0x33c88c;return _0xf9e8ad[_0x33cd54(0x4ab)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x33c88c(0x21f)]](){return this;}};});}['at'](_0x1e6d40){let _0xa12392=0x0;for(const _0x340af4 of this)if(_0xa12392++===_0x1e6d40)return _0x340af4;return undefined;}[_0x42e936(0x467)](_0x5b045d){const _0x3e1c3c=this;return new _0x34f3db(()=>{const _0x2bc64d=_0x303e,_0x345823=_0x3e1c3c[Symbol[_0x2bc64d(0x21f)]]();let _0x465a2a=[];return{'next'(){const _0x52861f=_0x2bc64d;for(;;){if(_0x465a2a[_0x52861f(0x1e1)])return{'done':![],'value':_0x465a2a[_0x52861f(0x14c)]()};const _0x51bb9a=_0x345823[_0x52861f(0x2ee)]();if(_0x51bb9a[_0x52861f(0x707)])return{'done':!![],'value':undefined};const _0x4fe8d3=_0x5b045d(_0x51bb9a[_0x52861f(0x1be)]);if(Array[_0x52861f(0x486)](_0x4fe8d3))_0x465a2a=_0x465a2a[_0x52861f(0x354)](_0x4fe8d3);else{if(_0x4fe8d3!=null&&(_0x4fe8d3 instanceof _0x34f3db||typeof _0x4fe8d3[Symbol[_0x52861f(0x21f)]]===_0x52861f(0x7e3)&&_0x52861f(0x58a)in _0x4fe8d3))_0x465a2a=_0x465a2a[_0x52861f(0x354)](Array[_0x52861f(0x17b)](_0x4fe8d3));else{if(_0x4fe8d3!==_0x4768a9[_0x52861f(0x36f)])return{'done':![],'value':_0x4fe8d3};}}}},'return'(){const _0x29c372=_0x2bc64d;return _0x345823[_0x29c372(0x4ab)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x2bc64d(0x21f)]](){return this;}};});}[_0x42e936(0x354)](_0x63aa0e){const _0x416d90=this;return new _0x34f3db(()=>{const _0x516e35=_0x303e;let _0xedf0b1=_0x416d90[Symbol[_0x516e35(0x21f)]](),_0x1f8127=![];return{'next'(){const _0x4ca9aa=_0x516e35;for(;;){const _0x1dace5=_0xedf0b1[_0x4ca9aa(0x2ee)]();if(!_0x1dace5[_0x4ca9aa(0x707)])return _0x1dace5;if(_0x1f8127)return{'done':!![],'value':undefined};_0x1f8127=!![],_0xedf0b1=_0x63aa0e[Symbol[_0x4ca9aa(0x21f)]]();}},'return'(){return _0xedf0b1['return']?.(),{'done':!![],'value':undefined};},[Symbol[_0x516e35(0x21f)]](){return this;}};});}[_0x42e936(0x813)](_0x1305fd){const _0x221ac3=this;return new _0x34f3db(()=>{const _0x182032=_0x303e,_0x568450=_0x221ac3[Symbol[_0x182032(0x21f)]]();return{'next'(){const _0x14362b=_0x182032;for(;;){try{return _0x568450[_0x14362b(0x2ee)]();}catch(_0x57d698){const _0x372cfa=_0x1305fd(_0x57d698);if(_0x372cfa===_0x4768a9['SKIP']||_0x372cfa===undefined)continue;return{'done':![],'value':_0x372cfa};}}},'return'(){return _0x568450['return']?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}[_0x42e936(0x1a5)](){const _0x46c13c=_0x42e936;return Array[_0x46c13c(0x17b)](this);}get[_0x42e936(0x58a)](){return Array['from'](this);}}const _0x36d28f={'total':0x0,'byLabel':{},'last':null};function _0x5daf2a(_0x10a7c8){const _0x575bbd=_0x42e936;_0x36d28f['total']++;if(_0x10a7c8)_0x36d28f['byLabel'][_0x10a7c8]=(_0x36d28f[_0x575bbd(0x2b7)][_0x10a7c8]??0x0)+0x1;_0x36d28f[_0x575bbd(0x244)]={'label':_0x10a7c8??null,'at':Date[_0x575bbd(0x1b5)]()};}function _0x5d62f9(){const _0x3b03b0=_0x42e936;return{'total':_0x36d28f[_0x3b03b0(0x419)],'byLabel':{..._0x36d28f[_0x3b03b0(0x2b7)]},'last':_0x36d28f['last']};}function _0xc89742(_0x460728,_0x36ae1a={}){const {getTxnId:_0x143160,resume:_0x484b5c,label:_0x9207bf,baseline:_0x187bf2}=_0x36ae1a;return new _0x34f3db(()=>{const _0x482d93=_0x303e;let _0x18a429=null,_0x2250d4=![],_0x3c74d4=![],_0x590535=![],_0x16224a,_0x2b7b8e=0x0,_0x539047;return{'next'(){const _0x5c8528=_0x303e;if(_0x590535)return{'done':!![],'value':undefined};if(_0x3c74d4){let _0x4cd154=![];if(_0x484b5c&&_0x143160)try{_0x4cd154=_0x143160()===_0x539047;}catch{}if(!_0x4cd154){_0x590535=!![],_0x5daf2a(_0x9207bf);throw new _0x12dc66(_0x484b5c?_0x5c8528(0x3fb)+'meanwhile\x20—\x20the\x20frozen\x20view\x20cannot\x20be\x20kept.\x20Materialize\x20synchronously\x20(e.g.\x20Array.from)\x20'+_0x5c8528(0x485):_0x5c8528(0x31d)+'(no\x20unambiguous\x20bookmark)\x20—\x20consume\x20it\x20in\x20one\x20synchronous\x20block:\x20materialize\x20(e.g.\x20'+_0x5c8528(0x2a1),_0x5c8528(0x544));}_0x18a429=_0x484b5c(_0x16224a,_0x2b7b8e)[Symbol[_0x5c8528(0x21f)]](),_0x3c74d4=![];}if(!_0x18a429){if(_0x187bf2!==undefined)_0x539047=_0x187bf2;else try{_0x539047=_0x143160?_0x143160():undefined;}catch{_0x539047=undefined;}try{_0x18a429=_0x460728()[Symbol['iterator']]();}catch(_0xdfb35c){_0x590535=!![];throw _0xdfb35c;}}!_0x2250d4&&(_0x2250d4=!![],queueMicrotask(()=>{const _0x560fba=_0x5c8528;_0x2250d4=![];if(_0x590535||_0x3c74d4)return;try{_0x18a429?.[_0x560fba(0x4ab)]?.();}catch{}_0x18a429=null,_0x3c74d4=!![];}));const _0x347220=_0x18a429[_0x5c8528(0x2ee)]();if(_0x347220['done'])return _0x590535=!![],{'done':!![],'value':undefined};return _0x16224a=_0x347220[_0x5c8528(0x1be)],_0x2b7b8e++,_0x347220;},'return'(){_0x590535=!![];try{_0x18a429?.['return']?.();}catch{}return{'done':!![],'value':undefined};},[Symbol[_0x482d93(0x21f)]](){return this;}};});}return okdbGuardedRange={'guardSnapshotIterable':_0xc89742,'OKDBGuardedRange':_0x34f3db,'recordGuardTrip':_0x5daf2a,'getGuardTripStats':_0x5d62f9},okdbGuardedRange;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0x382a42=_0x36292f;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x194d2e,performance:_0x5c4833}=require$$0$1,_0x51d391=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG===_0x382a42(0x29f),_0x3001c0=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x424c23=process.env.OKDB_LOOP_LAG_ALL==='1',_0x1c23e3=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0x1d605f{constructor(){const _0x233757=_0x382a42;this['enabled']=_0x51d391,this['_buckets']=new Map(),this['_h']=null,this['_timer']=null,this[_0x233757(0x7af)]=![],this[_0x233757(0x53b)]=(_0xc7d0a6,_0x1bc401)=>process[_0x233757(0x784)][_0x233757(0x309)](_0xc7d0a6+(_0x1bc401?'\x20'+JSON[_0x233757(0x74c)](_0x1bc401):'')+'\x0a');}[_0x382a42(0x1b5)](){const _0x436f6c=_0x382a42;return _0x5c4833[_0x436f6c(0x1b5)]();}[_0x382a42(0x561)](_0x5c9dc6){const _0x46f1ab=_0x382a42;if(typeof _0x5c9dc6==='function')this[_0x46f1ab(0x53b)]=_0x5c9dc6;}[_0x382a42(0x4c9)](_0xce5efa,_0x205e85,_0x5a9962){const _0x3f381e=_0x382a42;if(!this[_0x3f381e(0x1e0)])return;let _0x59f88d=this[_0x3f381e(0x551)][_0x3f381e(0x1d2)](_0xce5efa);!_0x59f88d&&(_0x59f88d={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this[_0x3f381e(0x551)][_0x3f381e(0x31f)](_0xce5efa,_0x59f88d)),_0x59f88d['ms']+=_0x205e85,_0x59f88d[_0x3f381e(0x1cd)]+=0x1,_0x205e85>_0x59f88d[_0x3f381e(0x3c3)]&&(_0x59f88d[_0x3f381e(0x3c3)]=_0x205e85,_0x59f88d['maxExtra']=_0x5a9962||'');}['start'](_0x2c209d){const _0x5e020c=_0x382a42;if(!this[_0x5e020c(0x1e0)]||this['_started'])return;this['_started']=!![];if(_0x2c209d)this[_0x5e020c(0x53b)]=_0x2c209d;this['_h']=_0x194d2e({'resolution':0xa}),this['_h']['enable'](),this[_0x5e020c(0x4c4)]=setInterval(()=>this[_0x5e020c(0x432)](),_0x3001c0);if(this[_0x5e020c(0x4c4)][_0x5e020c(0x35b)])this[_0x5e020c(0x4c4)][_0x5e020c(0x35b)]();}['onWindow'](_0x51e771){const _0x2ece43=_0x382a42;if(!this['_windowCbs'])this[_0x2ece43(0x557)]=new Set();this['_windowCbs'][_0x2ece43(0x181)](_0x51e771);if(!this['_started'])this[_0x2ece43(0x348)]();}[_0x382a42(0x3ab)](_0x493fcb){const _0x4a81ad=_0x382a42;this[_0x4a81ad(0x557)]?.[_0x4a81ad(0x17d)](_0x493fcb);}['_startAdmission'](){const _0x2b2431=_0x382a42;if(this[_0x2b2431(0x4af)])return;this[_0x2b2431(0x4af)]=!![];!this['_h']&&(this['_h']=_0x194d2e({'resolution':0xa}),this['_h'][_0x2b2431(0x48b)]());const _0x162077=_0x3001c0;this[_0x2b2431(0x6ef)]=setInterval(()=>{const _0x3c611b=_0x2b2431,_0x593cfd=this['_h'];if(!_0x593cfd)return;const _0x1cbd6e=_0x593cfd[_0x3c611b(0x2e3)](0x63)/0xf4240,_0x411962=_0x593cfd[_0x3c611b(0x372)]/0xf4240,_0x536791=_0x593cfd['mean']/0xf4240;_0x593cfd['reset']();if(this[_0x3c611b(0x557)])for(const _0x3b716e of this['_windowCbs']){try{_0x3b716e({'p99Ms':_0x1cbd6e,'maxMs':_0x411962,'meanMs':_0x536791,'reportMs':_0x162077});}catch{}}},_0x162077);if(this['_admissionTimer'][_0x2b2431(0x35b)])this[_0x2b2431(0x6ef)]['unref']();}[_0x382a42(0x432)](){const _0x22efd3=_0x382a42,_0x42d226=this['_h'],_0x21e222=_0x42d226['max']/0xf4240,_0x3a1c06=_0x42d226[_0x22efd3(0x2e3)](0x63)/0xf4240,_0x208651=_0x42d226[_0x22efd3(0x38a)]/0xf4240;_0x42d226[_0x22efd3(0x464)]();const _0x5dc36f=[...this[_0x22efd3(0x551)][_0x22efd3(0x111)]()]['map'](([_0x3fb935,_0x5e1603])=>({'label':_0x3fb935,..._0x5e1603}))[_0x22efd3(0x559)]((_0x4e3050,_0x8d25e8)=>_0x8d25e8['ms']-_0x4e3050['ms'])['slice'](0x0,0x8);this[_0x22efd3(0x551)][_0x22efd3(0x352)]();const _0x5d882b=_0x5dc36f[_0x22efd3(0x483)]((_0x1c2a9a,_0x523492)=>_0x1c2a9a+_0x523492['ms'],0x0),_0x18f3fd=_0x5dc36f[_0x22efd3(0x2fe)](_0x4a674d=>_0x4a674d['label']+'='+_0x4a674d['ms'][_0x22efd3(0x492)](0x0)+_0x22efd3(0x11b)+_0x4a674d['count']+(_0x4a674d['maxMs']>0x5?'(worst\x20'+_0x4a674d[_0x22efd3(0x3c3)]['toFixed'](0x0)+'ms'+(_0x4a674d[_0x22efd3(0x582)]?'\x20'+_0x4a674d[_0x22efd3(0x582)]:'')+')':''));(_0x424c23||_0x21e222>=_0x1c23e3)&&this[_0x22efd3(0x53b)](_0x22efd3(0x3bf)+_0x3001c0+_0x22efd3(0x6ab)+_0x21e222[_0x22efd3(0x492)](0x0)+_0x22efd3(0x5b4)+_0x3a1c06[_0x22efd3(0x492)](0x0)+_0x22efd3(0x441)+_0x208651[_0x22efd3(0x492)](0x0)+_0x22efd3(0x1c1)+_0x5d882b['toFixed'](0x0)+'ms'+(_0x18f3fd[_0x22efd3(0x1e1)]?_0x22efd3(0x511)+_0x18f3fd[_0x22efd3(0x6ee)]('\x20\x20'):''),{'feature':_0x22efd3(0x7a3)});if(this['_windowCbs'])for(const _0x111e59 of this[_0x22efd3(0x557)]){try{_0x111e59({'p99Ms':_0x3a1c06,'maxMs':_0x21e222,'meanMs':_0x208651,'reportMs':_0x3001c0});}catch{}}}[_0x382a42(0x209)](){const _0x4a5298=_0x382a42;if(this[_0x4a5298(0x4c4)])clearInterval(this[_0x4a5298(0x4c4)]);if(this['_h'])this['_h']['disable']();this[_0x4a5298(0x4c4)]=null,this['_h']=null,this['_started']=![];}}const _0x4725f4=new _0x1d605f();if(_0x4725f4[_0x382a42(0x1e0)])_0x4725f4[_0x382a42(0x73d)]();return okdbLoopMonitor={'LOOP':_0x4725f4},okdbLoopMonitor;}var okdbTransaction,hasRequiredOkdbTransaction;function requireOkdbTransaction(){const _0x336a14=_0x36292f;if(hasRequiredOkdbTransaction)return okdbTransaction;hasRequiredOkdbTransaction=0x1;const _0x11872a={'v4':()=>require$$0$2['randomUUID']()},{EVENTS:_0x426751}=requireOkdbEnums(),{OKDBError:_0x37f60f}=requireOkdbError(),{recordGuardTrip:_0x3a5fc0,guardSnapshotIterable:_0x4cd0b5}=requireOkdbGuardedRange(),{LOOP:_0x2871a1}=requireOkdbLoopMonitor();function _0x51eeec(_0x507940){const _0x324e9a=_0x303e;return _0x507940[_0x324e9a(0x2fe)](_0x1e29e0=>{const _0x518e6d=_0x324e9a,[_0x382ecf,_0x4625a0]=_0x1e29e0[_0x518e6d(0x594)]||[];return{'action':_0x1e29e0['action'],'type':_0x382ecf,'key':_0x4625a0};});}class _0x29f19f{[_0x336a14(0x229)];[_0x336a14(0x6bc)]=[];[_0x336a14(0x350)]=[];[_0x336a14(0x4eb)]=[];constructor(_0xcae8ac,_0x5b90f7={'useReadTransaction':![]}){const _0x12b60d=_0x336a14;this[_0x12b60d(0x229)]=_0xcae8ac,this['options']=_0x5b90f7,this['id']=_0x11872a['v4']();if(this[_0x12b60d(0x204)]['useReadTransaction'])try{this[_0x12b60d(0x7c9)]=this[_0x12b60d(0x229)]['db'][_0x12b60d(0x5a5)]()[_0x12b60d(0x67b)];}catch{this[_0x12b60d(0x7c9)]=undefined;}this[_0x12b60d(0x28d)]=this[_0x12b60d(0x204)][_0x12b60d(0x66c)]?this['okdb']['db'][_0x12b60d(0x66c)]():null,this['_closed']=![],this['_readViewExpired']=![],this[_0x12b60d(0x28d)]&&queueMicrotask(()=>{const _0x171c86=_0x12b60d;this['readTransaction']&&(this['_closeReadTransaction'](),this[_0x171c86(0x57e)]=!![]);});}[_0x336a14(0x330)](_0x2e23cd){const _0x3407a6=_0x336a14;this[_0x3407a6(0x350)]['push'](_0x2e23cd);}[_0x336a14(0x6d1)](_0x2cb676){const _0x46bb06=_0x336a14;this[_0x46bb06(0x4eb)][_0x46bb06(0x460)](_0x2cb676);}[_0x336a14(0x4e2)](){const _0x11536b=_0x336a14;if(!this[_0x11536b(0x28d)])return;try{this[_0x11536b(0x28d)]['done']();}catch(_0x1b1edd){}this['readTransaction']=null;}['_assertOpen'](){const _0x649f04=_0x336a14;if(this[_0x649f04(0x1b9)])throw new _0x37f60f('Transaction\x20already\x20closed',_0x649f04(0x2cd));if(this['_readViewExpired']){let _0x324112=![];if(this[_0x649f04(0x204)]['useReadTransaction']==='tolerant'&&this[_0x649f04(0x7c9)]!==undefined)try{_0x324112=this[_0x649f04(0x229)]['db']['getStats']()['lastTxnId']===this[_0x649f04(0x7c9)];}catch{}if(!_0x324112){_0x3a5fc0((this['okdb']?.[_0x649f04(0x6bb)]??'?')+_0x649f04(0x4e0));throw new _0x37f60f(_0x649f04(0x77a)+_0x649f04(0x603)+_0x649f04(0x665)+_0x649f04(0x5e4),_0x649f04(0x544));}}}[_0x336a14(0x1d2)](_0x73f812,_0x43e49f){const _0x5db1a4=_0x336a14;return this['_assertOpen'](),this[_0x5db1a4(0x229)][_0x5db1a4(0x1d2)](_0x73f812,_0x43e49f,{'transaction':this[_0x5db1a4(0x28d)]});}[_0x336a14(0x186)](_0x479897,_0x47dee7){const _0x2be298=_0x336a14;return this[_0x2be298(0x666)](),this['okdb'][_0x2be298(0x186)](_0x479897,_0x47dee7,{'transaction':this[_0x2be298(0x28d)]});}[_0x336a14(0x416)](_0xc9c2eb,_0x364b4b){const _0x3aa9e5=_0x336a14;return this[_0x3aa9e5(0x666)](),this['okdb'][_0x3aa9e5(0x416)](_0xc9c2eb,_0x364b4b,{'transaction':this[_0x3aa9e5(0x28d)]});}['_range'](_0x3494db){const _0x5f3af8=_0x336a14;if(!this[_0x5f3af8(0x204)]['useReadTransaction'])return _0x3494db;if(_0x3494db&&typeof _0x3494db['then']===_0x5f3af8(0x7e3))return _0x3494db;if(Array[_0x5f3af8(0x486)](_0x3494db))return _0x3494db;const _0x54aba0=this,_0x321e48=_0x54aba0['options'][_0x5f3af8(0x66c)]===_0x5f3af8(0x4cc),_0x3b2c9d=()=>{const _0x42a444=_0x5f3af8;if(!_0x54aba0[_0x42a444(0x57e)])return![];if(!_0x321e48)return!![];if(_0x54aba0[_0x42a444(0x7c9)]===undefined)return!![];try{return _0x54aba0['okdb']['db'][_0x42a444(0x5a5)]()[_0x42a444(0x67b)]!==_0x54aba0[_0x42a444(0x7c9)];}catch{return!![];}};return _0x4cd0b5(()=>{const _0x47eb38=_0x5f3af8;if(_0x54aba0[_0x47eb38(0x1b9)])throw new _0x37f60f(_0x47eb38(0x5e3),_0x47eb38(0x2cd));if(_0x3b2c9d()){_0x3a5fc0((_0x54aba0[_0x47eb38(0x229)]?.[_0x47eb38(0x6bb)]??'?')+_0x47eb38(0x73f));throw new _0x37f60f('useReadTransaction\x20range\x20consumed\x20after\x20the\x20creation\x20turn\x20—\x20the\x20consistent\x20view\x20was\x20'+_0x47eb38(0x28e)+_0x47eb38(0x67a),_0x47eb38(0x544));}return _0x3494db;},{'label':(_0x54aba0[_0x5f3af8(0x229)]?.[_0x5f3af8(0x6bb)]??'?')+_0x5f3af8(0x73f),..._0x321e48?{'baseline':_0x54aba0[_0x5f3af8(0x7c9)],'getTxnId':()=>_0x54aba0[_0x5f3af8(0x229)]['db']['getStats']()[_0x5f3af8(0x67b)],'resume':(_0x20df2c,_0x4c8f40)=>_0x3494db[_0x5f3af8(0x6ea)](_0x4c8f40)}:{}});}['getRange'](_0x4c28e0,_0x4c93be={}){const _0x242c2b=_0x336a14;return this[_0x242c2b(0x666)](),this[_0x242c2b(0x124)](this[_0x242c2b(0x229)][_0x242c2b(0x32f)](_0x4c28e0,{'transaction':this[_0x242c2b(0x28d)],..._0x4c93be}));}[_0x336a14(0x13b)](_0x463cf4,_0x346653={}){const _0x1c1556=_0x336a14;return this[_0x1c1556(0x666)](),this['_range'](this[_0x1c1556(0x229)][_0x1c1556(0x13b)](_0x463cf4,{'transaction':this[_0x1c1556(0x28d)],..._0x346653}));}[_0x336a14(0x808)](_0x462a56,_0x9e7d56={}){const _0x3c1dec=_0x336a14;return this['_assertOpen'](),this[_0x3c1dec(0x124)](this[_0x3c1dec(0x229)][_0x3c1dec(0x808)](_0x462a56,{'transaction':this['readTransaction'],..._0x9e7d56}));}[_0x336a14(0x4de)](_0x96d812,_0x1e307b,_0x1c5e5a={}){const _0x5e8805=_0x336a14;return this[_0x5e8805(0x666)](),this['_range'](this[_0x5e8805(0x229)][_0x5e8805(0x4de)](_0x96d812,_0x1e307b,{'transaction':this[_0x5e8805(0x28d)],..._0x1c5e5a}));}[_0x336a14(0x311)](_0x420a8d,_0x3a1f65,_0x5e8f7e={}){const _0x592509=_0x336a14;return this[_0x592509(0x666)](),this[_0x592509(0x124)](this[_0x592509(0x229)][_0x592509(0x311)](_0x420a8d,_0x3a1f65,{'transaction':this[_0x592509(0x28d)],..._0x5e8f7e}));}[_0x336a14(0x19d)](_0x970b4e=null){const _0x4ae8ef=_0x336a14;return this[_0x4ae8ef(0x666)](),this[_0x4ae8ef(0x229)][_0x4ae8ef(0x19d)](_0x970b4e,{'transaction':this[_0x4ae8ef(0x28d)]});}[_0x336a14(0x28a)](_0xf20cbb){const _0x8d1303=_0x336a14;return this['_assertOpen'](),this[_0x8d1303(0x229)][_0x8d1303(0x28a)](_0xf20cbb,{'transaction':this[_0x8d1303(0x28d)]});}[_0x336a14(0x4f8)](_0x1205fb,_0x8c9f6b,_0x44b4d8,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0x336a14(0x1b5)](),origin:origin=null,ttl:ttl=null}={}){const _0x43798a=_0x336a14;this[_0x43798a(0x6bc)]['push']({'action':'put','args':[_0x1205fb,_0x8c9f6b,_0x44b4d8,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}['update'](_0x5d48ac,_0x296e84,_0x145698,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0x336a14(0x1b5)](),origin:origin=null,ttl:ttl=null}={}){const _0x53a108=_0x336a14;this[_0x53a108(0x6bc)]['push']({'action':_0x53a108(0x323),'args':[_0x5d48ac,_0x296e84,_0x145698,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}['patch'](_0x3111d0,_0x20b2b7,_0x415674,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0x336a14(0x1b5)](),origin:origin=null,ttl:ttl=null}={}){const _0x1fc8fe=_0x336a14;this[_0x1fc8fe(0x6bc)][_0x1fc8fe(0x460)]({'action':_0x1fc8fe(0x443),'args':[_0x3111d0,_0x20b2b7,_0x415674,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x336a14(0x717)](_0x515a5e,_0xb6881a,_0x1e5d7a,{version:version=null,timestamp:timestamp=Date[_0x336a14(0x1b5)](),origin:origin=null,ttl:ttl=null}={}){const _0x1937a5=_0x336a14;this[_0x1937a5(0x6bc)]['push']({'action':_0x1937a5(0x717),'args':[_0x515a5e,_0xb6881a,_0x1e5d7a,{'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x336a14(0x4ec)](_0x459e2c,_0x533404,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0x336a14(0x1b5)](),origin:origin=null}={}){const _0x7a9698=_0x336a14;this[_0x7a9698(0x6bc)][_0x7a9698(0x460)]({'action':_0x7a9698(0x4ec),'args':[_0x459e2c,_0x533404,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin}]});}[_0x336a14(0x625)](_0x2252f1,_0x597842,_0xa61e14){const _0x35c3e8=_0x336a14;this[_0x35c3e8(0x6bc)][_0x35c3e8(0x460)]({'action':_0x35c3e8(0x625),'args':[_0x2252f1,_0x597842,_0xa61e14]});}['clearTTL'](_0x1aac8f,_0x36c894){const _0x5f717c=_0x336a14;this[_0x5f717c(0x6bc)][_0x5f717c(0x460)]({'action':_0x5f717c(0x1a4),'args':[_0x1aac8f,_0x36c894]});}[_0x336a14(0x378)](){const _0x26747e=_0x336a14;if(this[_0x26747e(0x1b9)])return;for(const _0x5ba669 of this['_undoHooks']){try{_0x5ba669();}catch{}}this['okdb']['events'][_0x26747e(0x3a7)](_0x426751['TXN_ROLLBACK'],{'id':this['id']}),this[_0x26747e(0x6bc)]=[],this[_0x26747e(0x4e2)](),this[_0x26747e(0x1b9)]=!![];}async[_0x336a14(0x373)](){const _0x221231=_0x336a14;if(this[_0x221231(0x1b9)])throw new Error(_0x221231(0x5e3));const _0x2aed34={'id':this['id'],'timestamp':Date[_0x221231(0x1b5)](),'actions':this[_0x221231(0x6bc)]};this['okdb'][_0x221231(0x6f3)][_0x221231(0x3a7)](_0x426751[_0x221231(0x75c)],_0x2aed34);try{const _0x29ff3c=_0x2871a1['enabled']?_0x2871a1[_0x221231(0x1b5)]():0x0;await this[_0x221231(0x229)][_0x221231(0x5e0)][_0x221231(0x273)](()=>{const _0x21da7a=_0x221231;for(const _0x5e8bd5 of this[_0x21da7a(0x6bc)]){const _0x5110d3=this['okdb']['_'+_0x5e8bd5['action']];if(typeof _0x5110d3!==_0x21da7a(0x7e3))throw new Error('Unknown\x20transaction\x20action:\x20'+_0x5e8bd5[_0x21da7a(0x1fa)]);_0x5110d3['call'](this[_0x21da7a(0x229)],this,..._0x5e8bd5[_0x21da7a(0x594)]);}}),_0x2871a1[_0x221231(0x1e0)]&&_0x2871a1['note'](_0x221231(0x1d3),_0x2871a1[_0x221231(0x1b5)]()-_0x29ff3c,(this[_0x221231(0x229)][_0x221231(0x6bb)]??'?')+_0x221231(0x390)+this[_0x221231(0x6bc)][_0x221231(0x1e1)]);}catch(_0xc43004){for(const _0x143e05 of this[_0x221231(0x4eb)]){try{_0x143e05();}catch{}}this[_0x221231(0x4e2)](),this['_closed']=!![];if(_0xc43004 instanceof _0x37f60f)throw _0xc43004;const _0x1f4982={'cause':_0xc43004,'env':this[_0x221231(0x229)]?.[_0x221231(0x6bb)],'envPath':this[_0x221231(0x229)]?.[_0x221231(0x6dc)],'pid':process['pid'],'txnId':this['id'],'actionCount':this[_0x221231(0x6bc)][_0x221231(0x1e1)],'actions':_0x51eeec(this['actions']),'nativeCode':_0xc43004?.['code'],'nativeName':_0xc43004?.[_0x221231(0x6bb)]};try{this['okdb']?.[_0x221231(0x282)]?.[_0x221231(0x19f)]?.(_0x221231(0x518),{'env':_0x1f4982[_0x221231(0x586)],'envPath':_0x1f4982[_0x221231(0x455)],'pid':_0x1f4982[_0x221231(0x7d4)],'txnId':_0x1f4982['txnId'],'actionCount':_0x1f4982[_0x221231(0x574)],'actions':_0x1f4982['actions'],'nativeCode':_0x1f4982['nativeCode'],'error':_0xc43004?.[_0x221231(0x79d)],'stack':_0xc43004?.[_0x221231(0x4b6)]});}catch{}throw new _0x37f60f(_0xc43004?.[_0x221231(0x79d)]||_0x221231(0x659),_0x221231(0x542),_0x1f4982);}this[_0x221231(0x229)][_0x221231(0x6f3)][_0x221231(0x3a7)](_0x426751[_0x221231(0x2cc)],_0x2aed34);for(const _0x57b228 of this['_doHooks']){try{await _0x57b228();}catch{}}this['actions']=[],this[_0x221231(0x4e2)](),this['_closed']=!![];}static[_0x336a14(0x257)](_0x11d761){const _0x503903=_0x336a14;return Object[_0x503903(0x191)]({'id':_0x11d761['id'],'put':_0x11d761[_0x503903(0x4f8)][_0x503903(0x6b5)](_0x11d761),'update':_0x11d761[_0x503903(0x323)]['bind'](_0x11d761),'patch':_0x11d761[_0x503903(0x443)][_0x503903(0x6b5)](_0x11d761),'create':_0x11d761['create'][_0x503903(0x6b5)](_0x11d761),'remove':_0x11d761[_0x503903(0x4ec)]['bind'](_0x11d761),'setTTL':_0x11d761[_0x503903(0x625)][_0x503903(0x6b5)](_0x11d761),'clearTTL':_0x11d761[_0x503903(0x1a4)][_0x503903(0x6b5)](_0x11d761),'commit':_0x11d761[_0x503903(0x373)][_0x503903(0x6b5)](_0x11d761),'rollback':_0x11d761[_0x503903(0x378)][_0x503903(0x6b5)](_0x11d761),'get':_0x11d761['get']['bind'](_0x11d761),'getEntry':_0x11d761[_0x503903(0x186)][_0x503903(0x6b5)](_0x11d761),'getMany':_0x11d761[_0x503903(0x416)][_0x503903(0x6b5)](_0x11d761),'getRange':_0x11d761[_0x503903(0x32f)][_0x503903(0x6b5)](_0x11d761),'getValues':_0x11d761[_0x503903(0x13b)][_0x503903(0x6b5)](_0x11d761),'getKeys':_0x11d761[_0x503903(0x808)][_0x503903(0x6b5)](_0x11d761),'byIndex':_0x11d761[_0x503903(0x4de)]['bind'](_0x11d761),'query':_0x11d761[_0x503903(0x311)]['bind'](_0x11d761),'getClock':_0x11d761[_0x503903(0x19d)][_0x503903(0x6b5)](_0x11d761),'getCount':_0x11d761[_0x503903(0x28a)][_0x503903(0x6b5)](_0x11d761),'read':_0x11d761,'raw':_0x11d761});}static[_0x336a14(0x232)](_0x3e5520,_0xcb5460=[]){const _0x3fbd58=_0x336a14;if(!Array[_0x3fbd58(0x486)](_0xcb5460))throw new _0x37f60f(_0x3fbd58(0x3c7),_0x3fbd58(0x523));for(const _0xb43a21 of _0xcb5460){if(Array[_0x3fbd58(0x486)](_0xb43a21)){const [_0x1432cb,..._0x40d0b7]=_0xb43a21;if(typeof _0x3e5520[_0x1432cb]!==_0x3fbd58(0x7e3))throw new _0x37f60f(_0x3fbd58(0x422)+_0x1432cb,_0x3fbd58(0x357),{'action':_0x1432cb});_0x3e5520[_0x1432cb](..._0x40d0b7);continue;}if(!_0xb43a21||typeof _0xb43a21!==_0x3fbd58(0x304))throw new _0x37f60f('txn\x20op\x20must\x20be\x20an\x20object\x20or\x20tuple','TXN_INVALID_OP');const {action:_0x14a3a2}=_0xb43a21;if(typeof _0x14a3a2!==_0x3fbd58(0x635)||typeof _0x3e5520[_0x14a3a2]!==_0x3fbd58(0x7e3))throw new _0x37f60f(_0x3fbd58(0x422)+_0x14a3a2,'TXN_INVALID_ACTION',{'action':_0x14a3a2});switch(_0x14a3a2){case'put':case _0x3fbd58(0x323):case _0x3fbd58(0x717):_0x3e5520[_0x14a3a2](_0xb43a21[_0x3fbd58(0x74e)],_0xb43a21['key'],_0xb43a21[_0x3fbd58(0x1be)],{..._0xb43a21['options'],'ttl':_0xb43a21[_0x3fbd58(0x33c)]??_0xb43a21['options']?.[_0x3fbd58(0x33c)]??null});break;case _0x3fbd58(0x443):_0x3e5520[_0x3fbd58(0x443)](_0xb43a21[_0x3fbd58(0x74e)],_0xb43a21[_0x3fbd58(0x119)],_0xb43a21[_0x3fbd58(0x443)],{..._0xb43a21[_0x3fbd58(0x204)],'ttl':_0xb43a21[_0x3fbd58(0x33c)]??_0xb43a21[_0x3fbd58(0x204)]?.[_0x3fbd58(0x33c)]??null});break;case _0x3fbd58(0x4ec):_0x3e5520[_0x3fbd58(0x4ec)](_0xb43a21['type'],_0xb43a21[_0x3fbd58(0x119)],_0xb43a21['options']||{});break;case _0x3fbd58(0x625):_0x3e5520[_0x3fbd58(0x625)](_0xb43a21['type'],_0xb43a21[_0x3fbd58(0x119)],_0xb43a21[_0x3fbd58(0x33c)]);break;case'clearTTL':_0x3e5520[_0x3fbd58(0x1a4)](_0xb43a21[_0x3fbd58(0x74e)],_0xb43a21[_0x3fbd58(0x119)]);break;default:throw new _0x37f60f('Unsupported\x20transaction\x20action:\x20'+_0x14a3a2,_0x3fbd58(0x357),{'action':_0x14a3a2});}}}static async[_0x336a14(0x15c)](_0x2a593e,_0x1aa59b,_0x73792a={}){const _0x4cb006=_0x336a14,_0x460fe3=new _0x29f19f(_0x2a593e,_0x73792a),_0x5ec657=_0x29f19f[_0x4cb006(0x257)](_0x460fe3);try{typeof _0x1aa59b===_0x4cb006(0x7e3)?await _0x1aa59b(_0x5ec657):_0x29f19f[_0x4cb006(0x232)](_0x460fe3,_0x1aa59b||[]);const _0x2eb228=_0x460fe3[_0x4cb006(0x6bc)][_0x4cb006(0x1e1)];return await _0x460fe3[_0x4cb006(0x373)](),{'id':_0x460fe3['id'],'actions':_0x2eb228};}catch(_0x15219e){try{_0x460fe3[_0x4cb006(0x378)]();}catch(_0xecdd17){}throw _0x15219e;}}}return okdbTransaction=_0x29f19f,okdbTransaction;}var dist={},hasRequiredDist;function requireDist(){const _0x242799=_0x36292f;if(hasRequiredDist)return dist;hasRequiredDist=0x1,Object['defineProperty'](dist,_0x242799(0x571),{'value':!![]});const _0xd37ca5=new Float64Array(0x2),_0x6207c0=new Int32Array(_0xd37ca5[_0x242799(0x67f)],0x0,0x4),{lowIdx:_0x260ce7,highIdx:_0xb53f72}=((()=>{const _0x534681=_0x242799;if(new Uint8Array(new Uint32Array([0xffee1100])[_0x534681(0x67f)])[0x0]===0xff)return{'lowIdx':0x1,'highIdx':0x0};return{'lowIdx':0x0,'highIdx':0x1};})());let _0x3545a5=![],_0x5f384c;try{_0x5f384c=new TextEncoder();}catch(_0x43e189){}function _0x413d2a(_0x40c120,_0x44a7ae,_0x255b91,_0x54f54b){const _0x333ee9=_0x242799;let _0x5c541d=_0x44a7ae['dataView'];if(!_0x5c541d)_0x5c541d=_0x44a7ae[_0x333ee9(0x754)]=new DataView(_0x44a7ae[_0x333ee9(0x67f)],_0x44a7ae[_0x333ee9(0x19a)],_0x44a7ae[_0x333ee9(0x30c)]+0x3>>0x2<<0x2);switch(typeof _0x40c120){case'string':let _0xd8eec7=_0x40c120['length'],_0x208aef=_0x40c120[_0x333ee9(0x525)](0x0);if(!(_0x208aef>=0x1c))_0x44a7ae[_0x255b91++]=0x1b;if(_0xd8eec7<0x40){let _0x1dbe4b,_0x3a7754;for(_0x1dbe4b=0x0;_0x1dbe4b<_0xd8eec7;_0x1dbe4b++){_0x208aef=_0x40c120[_0x333ee9(0x525)](_0x1dbe4b);if(_0x208aef<=0x4)_0x44a7ae[_0x255b91++]=0x4,_0x44a7ae[_0x255b91++]=_0x208aef;else{if(_0x208aef<0x80)_0x44a7ae[_0x255b91++]=_0x208aef;else{if(_0x208aef<0x800)_0x44a7ae[_0x255b91++]=_0x208aef>>0x6|0xc0,_0x44a7ae[_0x255b91++]=_0x208aef&0x3f|0x80;else(_0x208aef&0xfc00)===0xd800&&((_0x3a7754=_0x40c120[_0x333ee9(0x525)](_0x1dbe4b+0x1))&0xfc00)===0xdc00?(_0x208aef=0x10000+((_0x208aef&0x3ff)<<0xa)+(_0x3a7754&0x3ff),_0x1dbe4b++,_0x44a7ae[_0x255b91++]=_0x208aef>>0x12|0xf0,_0x44a7ae[_0x255b91++]=_0x208aef>>0xc&0x3f|0x80,_0x44a7ae[_0x255b91++]=_0x208aef>>0x6&0x3f|0x80,_0x44a7ae[_0x255b91++]=_0x208aef&0x3f|0x80):(_0x44a7ae[_0x255b91++]=_0x208aef>>0xc|0xe0,_0x44a7ae[_0x255b91++]=_0x208aef>>0x6&0x3f|0x80,_0x44a7ae[_0x255b91++]=_0x208aef&0x3f|0x80);}}}}else{if(_0x44a7ae['utf8Write'])_0x255b91+=_0x44a7ae[_0x333ee9(0x611)](_0x40c120,_0x255b91,_0x44a7ae[_0x333ee9(0x30c)]-_0x255b91);else _0x255b91+=_0x5f384c[_0x333ee9(0x307)](_0x40c120,_0x44a7ae[_0x333ee9(0x49d)](_0x255b91))[_0x333ee9(0x34d)];if(_0x255b91>_0x44a7ae[_0x333ee9(0x1e1)]-0x4)throw new RangeError('String\x20does\x20not\x20fit\x20in\x20target\x20buffer');}break;case _0x333ee9(0x2d3):_0xd37ca5[0x0]=_0x40c120;let _0x2c2aad=_0x6207c0[_0x260ce7],_0xd03dee=_0x6207c0[_0xb53f72],_0x4bcd99;if(_0x40c120<0x0)return _0x5c541d[_0x333ee9(0x344)](_0x255b91+0x4,~(_0x2c2aad>>>0x4|_0xd03dee<<0x1c)),_0x5c541d['setInt32'](_0x255b91+0x0,(_0xd03dee^0x7fffffff)>>>0x4),_0x5c541d[_0x333ee9(0x344)](_0x255b91+0x8,(_0x2c2aad&0xf^0xf)<<0x4,!![]),_0x255b91+0x9;else{if(_0x2c2aad&0xf||_0x54f54b)_0x4bcd99=0x9;else{if(_0x2c2aad&0xfffff)_0x4bcd99=0x8;else{if(_0x2c2aad||_0xd03dee&0xf)_0x4bcd99=0x6;else _0x4bcd99=0x4;}}}_0x5c541d[_0x333ee9(0x344)](_0x255b91+0x0,_0xd03dee>>>0x4|0x10000000),_0x5c541d['setInt32'](_0x255b91+0x4,_0x2c2aad>>>0x4|_0xd03dee<<0x1c),_0x5c541d[_0x333ee9(0x344)](_0x255b91+0x8,(_0x2c2aad&0xf)<<0x4,!![]);return _0x255b91+_0x4bcd99;case _0x333ee9(0x304):if(_0x40c120){if(Array[_0x333ee9(0x486)](_0x40c120)){for(let _0x3420a6=0x0,_0x50122e=_0x40c120[_0x333ee9(0x1e1)];_0x3420a6<_0x50122e;_0x3420a6++){if(_0x3420a6>0x0)_0x44a7ae[_0x255b91++]=0x0;_0x255b91=_0x413d2a(_0x40c120[_0x3420a6],_0x44a7ae,_0x255b91,!![]);}break;}else{if(_0x40c120 instanceof Uint8Array){_0x44a7ae[_0x333ee9(0x31f)](_0x40c120,_0x255b91),_0x255b91+=_0x40c120[_0x333ee9(0x1e1)];break;}else throw new Error(_0x333ee9(0x7a8)+JSON[_0x333ee9(0x74c)](_0x40c120));}}else _0x44a7ae[_0x255b91++]=0x0;break;case _0x333ee9(0x608):_0x5c541d[_0x333ee9(0x57b)](_0x255b91++,_0x40c120?0x7:0x6,!![]);return _0x255b91;case _0x333ee9(0x735):let _0x1c4be0=Number(_0x40c120);if(BigInt(_0x1c4be0)>_0x40c120){_0xd37ca5[0x0]=_0x1c4be0;if(_0x1c4be0>0x0){if(_0x6207c0[_0x260ce7])_0x6207c0[_0x260ce7]--;else _0x6207c0[_0xb53f72]--,_0x6207c0[_0x260ce7]=0xffffffff;}else{if(_0x6207c0[_0x260ce7]<0xffffffff)_0x6207c0[_0x260ce7]++;else _0x6207c0[_0xb53f72]++,_0x6207c0[_0x260ce7]=0x0;}_0x1c4be0=_0xd37ca5[0x0];}let _0x26f599=_0x40c120-BigInt(_0x1c4be0);if(_0x26f599===0x0n)return _0x413d2a(_0x1c4be0,_0x44a7ae,_0x255b91,_0x54f54b);_0x413d2a(_0x1c4be0,_0x44a7ae,_0x255b91,_0x54f54b),_0x255b91+=0x9;let _0x6e9685=BigInt((_0x6207c0[_0xb53f72]>>0x14&0x7ff)-0x437),_0x19b501=_0x26f599>>_0x6e9685;_0x44a7ae[_0x255b91-0x1]|=Number(_0x19b501),_0x26f599-=_0x19b501<<_0x6e9685;let _0x2ae654=!![];while(_0x26f599||_0x2ae654){_0x2ae654=![],_0x6e9685-=0x7n;let _0x23cc73=_0x26f599>>_0x6e9685;_0x44a7ae[_0x255b91++]=Number(_0x23cc73)|0x80,_0x26f599-=_0x23cc73<<_0x6e9685;}return _0x255b91;case _0x333ee9(0x7ef):return _0x255b91;case _0x333ee9(0x54e):_0x44a7ae[_0x255b91++]=0x2;return _0x413d2a(_0x40c120['description'],_0x44a7ae,_0x255b91,_0x54f54b);default:throw new Error(_0x333ee9(0x3e2)+typeof _0x40c120);}if(_0x3545a5&&!_0x54f54b)_0x5c541d[_0x333ee9(0x57b)](_0x255b91,0x0);return _0x255b91;}let _0x1bcc61;function _0x442691(_0x1a73f2,_0x50c1ff,_0x31c2b2,_0x46b614){const _0x35568e=_0x242799;_0x1bcc61=_0x50c1ff;let _0x5256d9=_0x1a73f2[_0x1bcc61],_0x2f1895;if(_0x5256d9<0x18){if(_0x5256d9<0x8){_0x1bcc61++;if(_0x5256d9==0x6)_0x2f1895=![];else{if(_0x5256d9==0x7)_0x2f1895=!![];else{if(_0x5256d9==0x0)_0x2f1895=null;else{if(_0x5256d9==0x2)_0x2f1895=Symbol[_0x35568e(0x7e8)](_0x30854b(_0x1a73f2,_0x31c2b2));else return Uint8Array[_0x35568e(0x556)][_0x35568e(0x6ea)][_0x35568e(0x54b)](_0x1a73f2,_0x50c1ff,_0x31c2b2);}}}}else{let _0x3f7ab7;try{_0x3f7ab7=_0x1a73f2[_0x35568e(0x754)]||(_0x1a73f2['dataView']=new DataView(_0x1a73f2[_0x35568e(0x67f)],_0x1a73f2[_0x35568e(0x19a)],_0x1a73f2[_0x35568e(0x30c)]+0x3>>0x2<<0x2));}catch(_0x4fae0e){_0x3f7ab7=_0x1a73f2['dataView']||(_0x1a73f2['dataView']=new DataView(_0x1a73f2[_0x35568e(0x67f)],_0x1a73f2[_0x35568e(0x19a)],_0x1a73f2[_0x35568e(0x67f)][_0x35568e(0x30c)]-_0x1a73f2[_0x35568e(0x19a)]));}let _0x4aae35=_0x3f7ab7[_0x35568e(0x5f6)](_0x1bcc61)<<0x4,_0xf6cdeb=_0x31c2b2-_0x1bcc61,_0x1166e2;if(_0xf6cdeb>0x4)_0x1166e2=_0x1bcc61+0x8<=_0x1a73f2[_0x35568e(0x1e1)]?_0x3f7ab7[_0x35568e(0x5f6)](_0x1bcc61+0x4):_0x1a73f2[_0x1bcc61+0x4]<<0x18|_0x1a73f2[_0x1bcc61+0x5]<<0x10|_0x1a73f2[_0x1bcc61+0x6]<<0x8|_0x1a73f2[_0x1bcc61+0x7],_0x4aae35|=_0x1166e2>>>0x1c,_0xf6cdeb<=0x6&&(_0x1166e2&=-0x10000),_0x1166e2=_0x1166e2<<0x4,_0xf6cdeb>0x8&&(_0x1166e2=_0x1166e2|_0x1a73f2[_0x1bcc61+0x8]>>0x4);else _0x1166e2=0x0;_0x5256d9<0x10&&(_0x4aae35=_0x4aae35^0x7fffffff,_0x1166e2=~_0x1166e2);_0x6207c0[_0xb53f72]=_0x4aae35,_0x6207c0[_0x260ce7]=_0x1166e2,_0x2f1895=_0xd37ca5[0x0],_0x1bcc61+=0x9;if(_0xf6cdeb>0x9&&_0x1a73f2[_0x1bcc61]>0x0){_0x2f1895=BigInt(_0x2f1895);let _0x1816db=_0x4aae35>>0x14&0x7ff,_0x37f8ac=_0x1a73f2[_0x1bcc61-0x1]&0xf;_0x2f1895+=BigInt(_0x37f8ac)<<BigInt(_0x1816db-0x437);while((_0x37f8ac=_0x1a73f2[_0x1bcc61])>0x0&&_0x1bcc61++<_0x31c2b2){_0x2f1895+=BigInt(_0x37f8ac&0x7f)<<BigInt((_0x50c1ff-_0x1bcc61)*0x7+_0x1816db-0x3f8);}}}}else{_0x5256d9==0x1b&&_0x1bcc61++;_0x2f1895=_0x30854b(_0x1a73f2,_0x31c2b2);if(_0x1bcc61<_0x31c2b2)_0x1bcc61--;}while(_0x1bcc61<_0x31c2b2){if(_0x1a73f2[_0x1bcc61]===0x0)_0x1bcc61++;if(_0x46b614)return _0x3e4edb[_0x35568e(0x5c2)]=_0x1bcc61,_0x2f1895;let _0x160861=_0x442691(_0x1a73f2,_0x1bcc61,_0x31c2b2,!![]);if(_0x2f1895 instanceof Array)_0x2f1895[_0x35568e(0x460)](_0x160861);else _0x2f1895=[_0x2f1895,_0x160861];}return _0x2f1895;}const _0x10bfb0=()=>_0x3545a5=!![],_0x3e4edb={'writeKey':_0x413d2a,'readKey':_0x442691,'enableNullTermination':_0x10bfb0};let _0x51872c=[],_0x2a2124=0x0;const _0x32fa32=typeof Buffer!==_0x242799(0x7ef),_0x276f26=_0x32fa32?Buffer['allocUnsafeSlow']:Uint8Array,_0x463358=_0x544306=>{const _0x4bae72=_0x242799;let _0x1ea828;_0x2a2124+0x64>_0x51872c[_0x4bae72(0x1e1)]&&(_0x51872c=new _0x276f26(0x2000),_0x2a2124=0x0,_0x1ea828=!![]);try{let _0x1ee4f8=_0x51872c['slice'](_0x2a2124,_0x2a2124=_0x413d2a(_0x544306,_0x51872c,_0x2a2124));if(_0x2a2124>_0x51872c[_0x4bae72(0x1e1)]){if(_0x1ea828)throw new Error('Key\x20is\x20too\x20large');return _0x463358(_0x544306);}return _0x1ee4f8;}catch(_0x517c8f){if(_0x1ea828)throw _0x517c8f;return _0x2a2124=_0x51872c[_0x4bae72(0x1e1)],_0x463358(_0x544306);}},_0x5450a1=_0x30701a=>{const _0x5971a5=_0x242799;return _0x442691(_0x30701a,0x0,_0x30701a[_0x5971a5(0x1e1)]);},_0x257ff5=String[_0x242799(0x6c2)];function _0x24a86c(){const _0x35747d=_0x242799;let _0x98dd35=_0x35747d(0x77f),_0x2e5801=[];for(let _0x5e5013=0x0;_0x5e5013<0x30;_0x5e5013++){let _0x22889a=_0x257ff5((_0x5e5013&0xf)+0x61)+_0x257ff5((_0x5e5013>>0x4)+0x61);_0x98dd35+=_0x35747d(0x70c)+_0x22889a+_0x35747d(0x410)+_0x22889a+_0x35747d(0x4c6)+_0x22889a+_0x35747d(0x377)+_0x22889a+_0x35747d(0x1fb)+_0x22889a+_0x35747d(0x14e)+_0x22889a+_0x35747d(0x226)+_0x22889a+_0x35747d(0x430)+_0x2e5801+_0x35747d(0x52a),_0x2e5801[_0x35747d(0x460)](_0x22889a);}return _0x98dd35+=_0x35747d(0x337)+_0x2e5801+_0x35747d(0x11d),_0x98dd35;}const _0x56cb65=typeof process!==_0x242799(0x7ef)&&process[_0x242799(0x55a)]?function(_0x11fa5a){let {setPosition:_0x6ad4b3,getPosition:_0x12caaa,readString:_0x15eb13}=_0x11fa5a;return _0x16bbda=>{_0x6ad4b3(_0x1bcc61);let _0x3144e2=_0x15eb13(_0x16bbda);return _0x1bcc61=_0x12caaa(),_0x3144e2;};}(new Function('fromCharCode',_0x242799(0x173)+_0x24a86c()+_0x242799(0x30a)+'setPosition(p)\x20{\x20position\x20=\x20p\x20},'+_0x242799(0x484)+_0x242799(0x193))(_0x257ff5)):eval(_0x24a86c());function _0x30854b(_0xe7bb00,_0x1e20c8){if(_0xe7bb00[_0x1e20c8]>0x0){let _0x19c66f=_0xe7bb00[_0x1e20c8];try{return _0xe7bb00[_0x1e20c8]=0x0,_0x56cb65(_0xe7bb00);}finally{_0xe7bb00[_0x1e20c8]=_0x19c66f;}}else return _0x56cb65(_0xe7bb00);}function _0x57ff7a(_0x52928e,_0x139f3a){const _0x3925c1=_0x242799;if(typeof _0x52928e==_0x3925c1(0x304)){if(!_0x52928e)return _0x139f3a==null?0x0:-0x1;if(_0x52928e['compare']){if(_0x139f3a==null)return 0x1;else return _0x139f3a['compare']?_0x52928e[_0x3925c1(0x671)](_0x139f3a):-0x1;}let _0x1395ba;if(_0x139f3a instanceof Array){let _0x2befda=0x0;while((_0x1395ba=_0x57ff7a(_0x52928e[_0x2befda],_0x139f3a[_0x2befda]))==0x0&&_0x2befda<=_0x52928e[_0x3925c1(0x1e1)]){_0x2befda++;}return _0x1395ba;}_0x1395ba=_0x57ff7a(_0x52928e[0x0],_0x139f3a);if(_0x1395ba==0x0&&_0x52928e[_0x3925c1(0x1e1)]>0x1)return 0x1;return _0x1395ba;}else{if(typeof _0x52928e==typeof _0x139f3a)return typeof _0x52928e==='symbol'&&(_0x52928e=Symbol[_0x3925c1(0x260)](_0x52928e),_0x139f3a=Symbol[_0x3925c1(0x260)](_0x139f3a)),_0x52928e<_0x139f3a?-0x1:_0x52928e===_0x139f3a?0x0:0x1;else{if(typeof _0x139f3a==_0x3925c1(0x304)){if(_0x139f3a instanceof Array)return-_0x57ff7a(_0x139f3a,_0x52928e);return 0x1;}else return _0x176c50[typeof _0x52928e]<_0x176c50[typeof _0x139f3a]?-0x1:0x1;}}}const _0x176c50={'symbol':0x0,'undefined':0x1,'boolean':0x2,'number':0x3,'string':0x4},_0x22cd18=null,_0x4417b9=new Uint8Array([0xff]);return dist[_0x242799(0x384)]=_0x4417b9,dist[_0x242799(0x18a)]=_0x22cd18,dist[_0x242799(0x3dd)]=_0x57ff7a,dist['enableNullTermination']=_0x10bfb0,dist['encoder']=_0x3e4edb,dist[_0x242799(0x2a0)]=_0x5450a1,dist[_0x242799(0x1e5)]=_0x442691,dist['toBufferKey']=_0x463358,dist[_0x242799(0x1a9)]=_0x413d2a,dist;}var keyenc,hasRequiredKeyenc;function requireKeyenc(){const _0x314596=_0x36292f;if(hasRequiredKeyenc)return keyenc;hasRequiredKeyenc=0x1;const {writeKey:_0x26ecfa}=requireDist(),_0x849225=0x7ba,_0x2635cb=0x1000;function _0x1049c8(_0x64dcb8,_0x34939b){const _0x3bd312=_0x303e;switch(typeof _0x64dcb8){case _0x3bd312(0x635):return _0x64dcb8[_0x3bd312(0x1e1)]<=_0x849225&&_0x64dcb8[_0x3bd312(0x1f7)]();case _0x3bd312(0x2d3):case _0x3bd312(0x608):return!![];case _0x3bd312(0x304):if(_0x64dcb8===null)return!![];if(Array['isArray'](_0x64dcb8)){if(_0x34939b>0x8||_0x64dcb8['length']>_0x849225)return![];for(let _0x201fc=0x0;_0x201fc<_0x64dcb8[_0x3bd312(0x1e1)];_0x201fc++)if(!_0x1049c8(_0x64dcb8[_0x201fc],_0x34939b+0x1))return![];return!![];}return Buffer[_0x3bd312(0x231)](_0x64dcb8)&&_0x64dcb8[_0x3bd312(0x1e1)]<=_0x849225;default:return![];}}function _0xa74d7b(_0x16d114,_0x161bc4){const _0x5b0faf=_0x303e,_0x38deef=typeof _0x16d114;if(_0x38deef==='string'){if(_0x16d114['length']>=0x40||!_0x16d114[_0x5b0faf(0x1f7)]()){if(!_0x1049c8(_0x16d114,0x0))return-0x1;}}else{if(_0x38deef!==_0x5b0faf(0x2d3)){if(Array[_0x5b0faf(0x486)](_0x16d114)?_0x16d114[_0x5b0faf(0x1e1)]===0x0||!_0x1049c8(_0x16d114,0x0):!_0x1049c8(_0x16d114,0x0))return-0x1;}}let _0x53cd75;try{_0x53cd75=_0x26ecfa(_0x16d114,_0x161bc4,0x0);}catch{return-0x1;}return _0x53cd75>0x0&&_0x53cd75<=_0x849225?_0x53cd75:-0x1;}return keyenc={'encodeKey':_0xa74d7b,'KEY_BUF_SIZE':_0x2635cb,'NO_FAST':Symbol(_0x314596(0x7ff))},keyenc;}var okdbHlc,hasRequiredOkdbHlc;function requireOkdbHlc(){const _0x5a7ee6=_0x36292f;if(hasRequiredOkdbHlc)return okdbHlc;hasRequiredOkdbHlc=0x1;const _0x9128cb=0x400,_0x425338=_0x9128cb-0x1,_0x3915bd=0xea60;function _0x3ec9ef(_0x5560f2,_0x21d3b1){const _0x1e3443=_0x303e;return _0x5560f2*_0x9128cb+Math['max'](0x0,Math[_0x1e3443(0x2f2)](_0x21d3b1,_0x425338));}function _0x3fe452(_0x29a798){const _0x370387=_0x303e,_0x505ef2=Math[_0x370387(0x372)](0x0,Number(_0x29a798)||0x0),_0x1927a6=_0x505ef2%_0x9128cb,_0x1e26a9=(_0x505ef2-_0x1927a6)/_0x9128cb;return{'pt':_0x1e26a9,'l':_0x1927a6};}function _0x19e496(_0x1f3985,_0x212575=Date['now']()){const _0x42215e=_0x303e,{pt:_0x35b849,l:_0x2ec34a}=_0x3fe452(_0x1f3985),_0x2f1a96=Math[_0x42215e(0x372)](_0x35b849,_0x212575),_0x3f72d6=_0x2f1a96===_0x35b849?Math[_0x42215e(0x2f2)](_0x2ec34a+0x1,_0x425338):0x0;return _0x3ec9ef(_0x2f1a96,_0x3f72d6);}function _0x585e47(_0x151886,_0x13b186,_0x5ef870=Date[_0x5a7ee6(0x1b5)]()){const _0x5c9bdd=_0x5a7ee6,{pt:_0x37515a,l:_0x5d82d6}=_0x3fe452(_0x151886),{pt:_0x11165e,l:_0x4e6b26}=_0x3fe452(_0x13b186),_0xf692cb=Math[_0x5c9bdd(0x372)](_0x37515a,_0x11165e,_0x5ef870);let _0x3292ac;if(_0xf692cb===_0x37515a&&_0xf692cb===_0x11165e)_0x3292ac=Math[_0x5c9bdd(0x2f2)](Math[_0x5c9bdd(0x372)](_0x5d82d6,_0x4e6b26)+0x1,_0x425338);else{if(_0xf692cb===_0x37515a)_0x3292ac=Math[_0x5c9bdd(0x2f2)](_0x5d82d6+0x1,_0x425338);else _0xf692cb===_0x11165e?_0x3292ac=Math[_0x5c9bdd(0x2f2)](_0x4e6b26+0x1,_0x425338):_0x3292ac=0x0;}return _0x3ec9ef(_0xf692cb,_0x3292ac);}function _0x5df17a(_0xc4200a,_0x288c1b){const _0x14b84e=Number(_0xc4200a)||0x0,_0x40ac98=Number(_0x288c1b)||0x0;if(_0x14b84e<_0x40ac98)return-0x1;if(_0x14b84e>_0x40ac98)return 0x1;return 0x0;}function _0x2df1e8(_0xb251ae){return _0x3fe452(_0xb251ae)['pt'];}return okdbHlc={'send':_0x19e496,'recv':_0x585e47,'compare':_0x5df17a,'toMs':_0x2df1e8,'encode':_0x3ec9ef,'decode':_0x3fe452,'SCALE':_0x9128cb,'L_MAX':_0x425338,'DRIFT_MAX':_0x3915bd},okdbHlc;}function _0x250b(){const _0x5b8b6a=['_macro','_np','compare','asyncIterator','okdb-node:\x20unknown\x20bridge\x20op\x20','registerDriver','hasBody','HIGH_SENTINEL','pauseJobType','find','queue','materialize\x20them\x20(Array.from)\x20while\x20the\x20view\x20is\x20live.','lastTxnId','pinned','remoteAddress','_waitNative','buffer','10NKZJGW','split','_hybridQuery','existing','setFilter','_makeIterator','processorsStop','_drainOne','resolveField:\x20field\x20required','removeJobType','each\x20process()\x20entry\x20requires\x20a\x20non-empty\x20`type`','lookupAllByName','_ttlParseComposite','utf8','returnRecoverableErrors','embed-worker','_tickCallback','job.buckets\x20entries\x20must\x20be\x20objects','idempotency_key','registerChunkStrategy','pop','_settled','removeSync','bucket\x20\x22','enqueueClaim','bootSyncedPipelines','setJobTypeSchema','queue:log','_role','health','Storage\x20resolver\x20must\x20be\x20a\x20function','_handlerName','address','busState','signalWant','ExtendedIterable','_tx','_isBootstrap','authenticated','_ensureDbs','onLicenseExpired','runtimeState','startClaimed','ms\x20max=','ONLINE','setCurrentDb','OKDBIndexHasConsumersError','__adminRelay','\x20was\x20removed\x20in\x20okdb\x202.0.\x20Use\x20processors:true\x20for\x20plain\x20lease\x20participation.\x20See\x20docs/upgrade-2.0.md.','_gcTimer','registerEmbedderFactory','metaDb','hasUniqueViolations','bind','setKick','stopping','_sub','headers','KNOWN_OPTIONS','name','actions','exports','~fts:envs','\x20(required\x20by\x20','resolveField:\x20resolver\x20must\x20be\x20a\x20function','ies','fromCharCode','queue:retry','_lock','okdb-','_scheduleFlush','_isOpenForIp','_clockToChangeDb','cause','__warned','code','_wb','getOpenWarning','bootLogMark','origin','_ensureEnv','onUndo','fetchJson','vec:','unknown\x20promise\x20token','resolveField:\x20options.batch\x20must\x20be\x20a\x20function','docEntry','_ensure','reconcilePeerPull','_lookupByTokenHash','flushQuantum','getIndexCount','path','job.','quantum','RELAY_FULL','_modeApplied','runRecord','\x22\x20tokens\x20too\x20large','node','claimed','ttlMs','getSecurityNotices','license','processor:retry','current','slice','_call','registerHandler:\x20fn\x20must\x20be\x20a\x20function','a\x20Buffer\x20or\x20readable\x20stream','join','_admissionTimer','Embedder\x20factory\x20for\x20\x22','pushEphemeral','drainJobType','events','process(filter)','getIndexStatus','shouldApplyChange','_isReader','subscriptions','snapshot','readFieldMany','refTrackingDbs','sortedDb','_maxConnections','item:create','drain','TypeError','removeJobLogsAfterCommit','setMode','EMBED_PENDING','setDeltaLimit','dirname','BAD_EMBEDDER_FACTORY','done','_rbuf','algorithm\x20has\x20no\x20method\x20','envsWithFiles','resolveField:\x20type\x20required','\x0a\x09\x09let\x20','_statusEnv','lookupByTokenHash','UNIQUE_CONSTRAINT','getRunningEngine','isWorker','rowKey','listBlobStatus','_busFacade','processor:resumed','restart','create','_processorStops','getRaw','notes','msg','auth','admission','dupSort','_teardownNative','ENGINE_INVALID_TEMPLATE','bootSyncedViews','resetIndexBegin','Too\x20many\x20concurrent\x20connections','describeIndexes','getTemplate','_dupArg','tryAcquire','_logChange','patchDeclaration','appendJobLog','addRaw','\x27\x20doesn\x27t\x20exist','_nodePrivateKey','use\x20engines.registerDriver()','_status','_push','OKDBTypeAlreadyRegisteredError','\x22\x20not\x20found\x20in\x20~envs','getHistory','pipeline','bigint','licenses','schema:drop','lmdb','native','$exists','process\x20options.admission\x20must\x20be\x20a\x20function','Map','start','connected',':txnRange','turn','processorHold','$mod','turns','\x20must\x20be\x20','planUpdateJob','_validateOidcAccessToken','compactLock','_envs','_isLoopbackIp','validateBlobIntegrity','change','stringify','listRecords','type','checkSignals','_closedHandle','SYSTEM_CLOCK_CHANGE','_readerCheckInterval','\x22)\x20before\x20open()','dataView','bus:proc','records','INACTIVE','getCursor','inspect','invalid\x20job.status:\x20','$gte','TXN_START','resolveField:\x20a\x20resolver\x20or\x20options.batch\x20is\x20required','timestamp','resumeOpts','_inlineClosureWarned','admin','ttl:clear','reducer','Engine\x20template\x20kind\x20must\x20be\x20\x22engine\x22\x20or\x20\x22pipeline\x22:\x20','afterTurn','_durableWorkerStats','queue:clear-progress','txnUndone','REF_VIOLATION','parse','_license','_uid','isTypeEmpty','delta_limit','_makeLazyVectorAdapter','resolvedFields','setMaxListeners','__ttlCancelledGen','off','primaryOkdb','_advanceHlcOnRecv','_dedupeKey','Referenced\x20type\x20\x27','ttlTimer','_typeKeys','useReadTransaction\x20read\x20view\x20expired:\x20the\x20snapshot\x20was\x20released\x20at\x20the\x20first\x20await/turn\x20','child','_nextExpiry','listFtsEnvs','export','(source)\x20=>\x20{','status_message','__notImplementedNative','processEverything()','_desired','stderr','modeApplied','\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','getBlobStatus','/([^/]+)','autoCompactTimerArmed','BAD_PARAM','bucket\x20too\x20long','listPath','flush','_autoCompact','record','job.backoff_multiplier\x20must\x20be\x20number\x20>=\x201','itemsPlan','workers','~ttl:key','registerBucketProjection','streamByHash','storeGetHead','write\x20batch:\x20missing\x20result','processor:progress','bootRuntimeDeclarations','bucket_tokens','~log_entry','setPeerState','message','body','flushPoll','end','_callMacro','WORKER','loop-lag',',\x20got\x20','_refCache','typeId','DONE','Unable\x20to\x20serialize\x20object\x20as\x20a\x20key:\x20','_getFast','getJobType','toISOString','continueIteration','txn:start','\x27:\x20','_started','getIndexMeta','hasIndex','unpack','SCHEMA_COLLECTION_INVALID','removeEnvironment','inactive','handleResult','files.registerExtractor:\x20extractor\x20must\x20be\x20a\x20function','null','detach','info','sourceKey','ITEM_CREATE','getGcHorizon','$streamId','registerExtractor','_settleRead','selfKey','Invalid\x20index\x20key\x20type\x20for\x20\x27','iterate','Expected\x20catch\x20callback\x20to\x20be\x20a\x20function','claim\x20requires\x20non-empty\x20type','_db','wake','diag','_txnIdAtSnapshot','exportToStream','failJob','load','_staticCall','_rebuilding','hasEmbedderFactory','resolvedOptions','kick','getStatus','addEventListener','pid','HTTP\x20','_ttlByKey','customReducerNames','_assertFiles','/?$','\x22\x20to\x20enable\x20it.','callBatch','claim','open','resetReadTxn','handleDurableClock','setStorageResolver','exportJSON','BAD_ALGORITHM_FACTORY','function','INDEX_HAS_CONSUMERS','durableMarkDelete','oauth','crypto','for','getBinary','FTS_FLUSH_TIMEOUT','puts','tokens','recordRun','__lock','undefined','REVERSE_INDEX','OKDBInvalidIndexKeyError','getLegacyCursor','_handles','some','logChange','addJobType','authorization','setAddress','Plugin\x20\x27','bucket\x20must\x20be\x20object','tries','processor:paused','WORKERS_REMOVED','OKDBSchemaValidationError','okdb.noFast','pipelines','storeEnvName','validate','_facade','migrate','\x22\x20not\x20found','_subsV2Obj','_startClaimedSoon','getKeys','resolve','claimGated','\x27\x20export\x20\x27','emitClearDone','send','isReader','_build','updateJob','exists','job.buckets[].id\x20must\x20be\x20non-empty\x20string','mapError','closeEnvLocally','okdb-node:\x20a\x20background\x20async\x20handler\x20rejected:\x20','includeViolations','callPacked','TXN_ROLLBACK','_sync','trunc','resetIndex','~emb:models','Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results','req','system:drain','retryJob','lookupByName','_hlc','unregisterTarget','OKDBNotFoundError','setNative','ensureType','entries','listTemplates','offsetOf','_reconcile','peers','engine','ctxEmit','REBUILD_IN_PROGRESS','key','_pokeListener','ms/','randomUUID',')\x20+\x20readString(source)}','~proc:state','connectionCount','_kbuf','forceAfterMs','__okdb','backup','_range','maxDbs','context','[log-sink]\x20','useVersions','view','Engine\x20driver\x20type\x20must\x20be\x20a\x20non-empty\x20string','getMaxBodyBytes','getStateAt','isHeld','license:invalid','_baselines','STOPPED','acquiredAt','setKeyBuffer','removeInterest','import','system:type_drop','Cannot\x20delete\x20','refs','SYSTEM_POKE','importJSON','_oauthConfig','getValues','handleError','defaults','listRoutes','getRefViolation','$ne','_noChangelog','ENV_NOT_FOUND','$not','_subsV2','bus:drain','_durableIndexerStats','ITEM_REMOVE','embeddings:indexer:flushed','uploadTxn','_fail','viewOp','shift',']\x20already\x20maps\x20to\x20\x27',',\x20source)\x0a\x09\x09}\x20else\x20{\x0a\x09\x09\x09if\x20(','captureStackTrace','~engines','storeGetConfig','durableRetryFailed','unique:violation','no_action','readerCheck','_openLocalPeerDb','pumpEnvSync','\x22\x20is\x20not\x20allowed\x20(it\x20evaluates\x20code);\x20use\x20declarative\x20operators\x20instead',':data','dropAll','_ack','run','clockToChangeDb','job\x20must\x20be\x20object','ensurePeerState','definition','removed','flushed','attachOKDB','_markSeen','~sub','staticCall','startAutoCompactCheck','childTransaction','startsWith','makeOkdb','~queue_payloads','storeEnvPath','versions','Database\x20not\x20started','size','failures','backoff_multiplier','_viewState','let\x20position;\x20let\x20readString\x20=\x20','recomputeFields','OKDBSchemaCollectionError','_nodePublicKey','reconcilePeer','lastIndexOf','then','sync','from','getSchema','delete','_runRecord','backupRoot','markSnapshotComplete','add','__peers','setCursor','details','exclusiveStart','getEntry','status_code','_detachLog','invalid\x20job_type.status:\x20','MINIMUM_KEY','embeddings:pipeline:ready','countByIndex','refItemsDbs','emitWarning','registerIndex','34806TTQgkC','freeze','\x27\x20did\x20not\x20return\x20a\x20valid\x20instance','readString\x20}','types','apply','_getPeerState','job_type.defaults.','log\x20entry\x20must\x20be\x20a\x20string\x20or\x20object','removeBucket','byteOffset','getChanges','envNames','getClock','lockHeld','error','_settleWaiters','okdb.http.listen(port)\x20in\x20each\x20worker.','markJobFail','scheduled','clearTTL','toJSON','capacity','detachFeed','maxBodyBytes','writeKey','job.tries\x20must\x20be\x20non-negative\x20int','port','resolveField','Index\x20\x22','VERSION_MISMATCH','registerQuantum:\x20name\x20must\x20be\x20a\x20non-empty\x20string','_changefeed','event','storeGetTotalHeadCount','_meta','when','now','__fts:','storeHasDiff','noteListenAddr','_closed','active','embeddings:indexer:doc:failed','STARTING','pause','value','preview','INVALID_ARGUMENT','ms\x20busy=','txn','startNewEnginesFromSync','_handlePoke','PUT','_detachLogSink','describeAllTypes','BAD_HOST','\x27\x20is\x20not\x20a\x20function','createdBy','isSnapshotComplete','_ensurePeerState','count','TYPE_NOT_REGISTERED','describeType','5090412kDouwe','clearSync','get','txn-commit','1712838iKAFoO','WriteBatch','compact','heartbeat','Cannot\x20openEnv(\x22','isSync','BAD_PLUGIN','describeTypeDetailed','setPrototypeOf','getJob','_quantum','_closeEnvLocally','enabled','length','$or','Engine\x20template\x20build()\x20is\x20required:\x20','targetType','readKey','unique','item:remove','grouped','_openAckDb','readerCheckIntervalMs','describeAllTypesDetailed','_cursors','job_type.defaults.max_tries\x20must\x20be\x20int\x20>=\x201\x20or\x20null','ctxUpdateStatus','_wsettle','_readBuf','createSearch','functions','\x27\x20already\x20registered','changes','ensure','_jsSchemas','isWellFormed','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.','nodeKey','action','\x20=\x20finishUtf8(','registerTarget','createQueryTester','_plugins','listBuckets','apiCall','assertCreateAllowed','$options','constructor','options','pauseAllAndDrain','removeJobTypeSchema','tags','syncLock','stop','-worker','formerOrigins','IPv6','head','upsertLink','sha256','bucket.updated\x20must\x20be\x20number','_defaultEnv','workerState','_wrap','refill_every','listModels','onDone','iterable','_cancelTTLTimeout','schema:set','FOREIGN_KEY_VIOLATION','dbs','\x20does\x20not\x20exist','_sinks','__ttlByKey','iterator','~ref_violations','~fts:','system:proc','Plugin\x20must\x20have\x20a\x20name','set_null','localViewStats','\x20===\x204)\x0a\x09\x09\x09\x09','registerType','cleanup','okdb','refreshTtl','proc','exportToFile','(?:','callRows','a\x20non-empty\x20string','MAX_SAFE_INTEGER','isBuffer','applyOps','statusOpen','attachConsole','files.upload:\x20stream','listIndexes','__HOLD__','durableRebuild','_indexBuild','envSize','previewTemplate','destroy','vector','INDEX_PROGRESS','UNKNOWN_RANGE_OPTION','_key','_emitProc','listLinks','queue:rescheduled','last','_deliver','.\x20Primary\x20keys\x20must\x20be\x20string\x20or\x20number.\x20Got:\x20','storage\x20adapter\x20is\x20gone','listening','getIndex','fromEntries','_pressure','_timerObjs','job_type.payload_schema.definition\x20must\x20be\x20object','ctxLog','createEnvironment','use','_dedupeMax','refreshTtlBatch','completeJob','items','config','field\x20resolver\x20request\x20still\x20pending','createWriteFacade','starting','mode','_blobStatusDb','applyChange','bucket.capacity\x20must\x20be\x20int\x20>=\x200','guard','ensureDesired','~queue_buckets','keyFor','continueOnRecoverableError','engines','_feed','getFloat64','viewDb','isLoopbackIp','PLUGIN_ALREADY_REGISTERED','ftsQuery','node:fs','patchConfig','Server',':clockToChange','isDeepStrictEqual','job.tags\x20must\x20be\x20array','_workers','select','File\x20not\x20found:\x20','EMBEDDER','transaction','setLastClock','onDelete','_licenseInterval','DEFAULT_TTL_MS','buildOwnRow','_store','durableMarkFail','reg','_flushIntervalTimer','item:update','privateKey','isFinite','processorsParticipating','INDEXER_DOC_DONE','log','PLUGIN_NAME_CONFLICT','install','createReadStream','busEmit','_ensureDesired','bus','system','getCount','job.max_tries\x20must\x20be\x20int\x20>=\x201,\x20null\x20(unlimited)\x20or\x20Infinity','setWake','readTransaction','released\x20at\x20the\x20first\x20await/turn\x20boundary.\x20Consume\x20ranges\x20before\x20any\x20await,\x20or\x20','started','rows','job_type.defaults.ttl\x20must\x20be\x20int\x20>=\x200\x20or\x20null','_clearTTL','createHash','writerWatchdog','meta','_callPacked','version','allocUnsafeSlow','_run','_listening','batch','lock','wait','LICENSE_FEATURE_DISABLED','true','fromBufferKey','Array.from)\x20before\x20any\x20await.','engine:','sseSend','getLoginConfig','max_tries','dropIndex','writerStatus','_low','nextTurn','online','~files','_localViews','streamClose','_getRaw','inflight','listIndexKeys','drivers','creating','$pending','.\x20Valid:\x20','_patch','$where','byLabel','processor:\x20quantum.module\x20must\x20be\x20a\x20string','indexReady','_pumper','maxConnections','_cmd','_tools','\x20must\x20be\x20a\x20non-empty\x20string;\x20got\x20','consumeLoginState','unique:violation_resolved','license:activated','clearAsync','materializer','extend','listen','lastClock','exportEnvsToStream','finished','refreshThresholdMs','_draining','embedBatch','TXN_END','TXN_CLOSED','prefix','isIndex','durableEmbedderInfo','_ttlTimeout','tryClaimTokens','number','turnWaiters','unregisterExtractor','views','registerAlgorithmFactory','processor:\x20specify\x20exactly\x20one\x20of\x20handler:\x27<name>\x27\x20or\x20module:{path,export},\x20not\x20both','instanceTimerArmed','_assertRangeOptions','INVALID_OPTIONS','MCP_ERROR','_ttlByExpiry','nidFor','retry','_tokenSecret','removeLink','removes','percentile','toLowerCase','getByPrefix','\x20dropped\x20(buffer\x20full)','retryFailed','job.bucket_tokens\x20must\x20be\x20int\x20>=1','addSSE','PLUGIN_DEPENDENCY_MISSING','worker','processorsStatus','$lte','next','license:removed','embeddings','forceResync','min','register','system:stopped','job','relay:error','upload','balanced','$nin','__sync:acks','fts:registered','flushDebounce','24772CPWqPJ','map','_durableIndexerDoc','isEnabled','_detachConsole','blobPath','_pendingLocal','object','timeMachine','instance','encodeInto','deleted','write',';return\x20{','dropSchema','byteLength','_flushDebounce','job\x20id\x20required','listRuns','gen','query','$nor','done_ttl','registerHandler','signal','_compactLock','valuesForKey','alg','restrict','runGc','trim','FIELD_RESOLVER_PENDING','pinned\x20range\x20iterator\x20held\x20across\x20an\x20await/turn\x20boundary.\x20This\x20surface\x20cannot\x20resume\x20','priority','set','job.claim_id\x20must\x20be\x20string|null','markJobHeartbeat','clearStuck','update','NOT_IMPLEMENTED_NATIVE','groupsDb','loaded','status','embeddings:indexer:doc:queued','createPublicKey','_rebuild','non-empty\x20string','removeListener','clone','group','getRange','onDo','range','_ensureTypeEnv','dropType','dropped','Feature\x20not\x20licensed:\x20','system:env_release','return\x20fromCharCode(','_OPTION_HINTS','OKDBUniqueConstraintError','refreshReadTxn','storeGetHeadCount','ttl','_buffer','__stateDb','ensure:\x20view\x20entry\x20missing\x20name\x20or\x20definition','typesDb','token','OKDBForeignKeyError','job.finished\x20must\x20be\x20number|null','setInt32','_stateDb','calculateDelta','formerIds','_startAdmission','test','CLI\x20(`okdb\x20listen`),\x20or\x20use\x20Node\x27s\x20built-in\x20`cluster`\x20module\x20and\x20call\x20','_handleInProcess','created','written','INVALID_STATE','markJobProgress','_doHooks','_nm','clear','job_type.payload_schema\x20must\x20be\x20object|null','concat','SYSTEM_STOPPED',':\x20expected\x20','TXN_INVALID_ACTION','advanceHlcOnRecv','authenticateToken','_listenAddr','unref','vector-search','QUERY_OPERATOR_FORBIDDEN','ttlStats','retry_delay','outgoing','_txnBuf','registerReducer','limitOf','tag\x20too\x20long','registerPreparer','fts','authenticateRequest','_root','loginSelect','writeBlob','running','_getOidcDiscovery','listAlgorithms','enforced','SKIP','_onPending','NOT_FOUND','max','commit','_listeners','queue:failed','streamRead','\x20>=\x200x80)\x20','rollback','close','session','resumeJobType','prevDb','_stops','LICENSE_LIMIT_EXCEEDED','release','isSetupMode','features','_lookupByName','createEngine','MAXIMUM_KEY','granId','defaultTTL','module','_rootDb','resetView','mean','registerIndexDeferred','_drain','pipelineFamily','syncBlobs','assign','\x20actions=','bus:poke','err',':index:','QUEUE_WORKER_REMOVED','Invalid\x20onDelete\x20rule\x20\x27','isWanted','OKDBInvalidValueError','system:bus_state_change','inBatch','\x27,\x20cannot\x20map\x20to\x20\x27','mapSize','40wsxnYM','1854pvYsze','engineType','index:registered','repair','links','pokeHandler','\x20must\x20be\x20number','_info','unresolveField','geoConfig','emit','ctxSignal','has','updateBucket','offWindow','ensureTokensType','keys','_flushTimer','inclusiveEnd','Error','getPeerState','_settleWrite','14772jvMCgS','_env','vectorSpace','listProviders','OKDBError','inNativeCall','ingest','3.0.1','_stream','log\x20entry\x20message\x20required','isType','a\x20string','loop-lag\x20','data','view:progress','_syncExpiresAtField','maxMs','dataEnv','job.tag\x20must\x20be\x20string|null','compactStorage','txn\x20ops\x20must\x20be\x20an\x20array','INVALID_TYPE_NAME','INDEXER_DOC_QUEUED','_native','chunk\x20strategy\x20must\x20be\x20a\x20function','INDEXER_DOC_FAILED','searchWithScores','pressure','bumpVersion','durability','setModeApplied','nextTick','subscribe','flushTicket','durableStats','remote','parseBearer','indexContent','itemsGroups','installed','INVALID_INDEX_KEY','draining','compareKeys','dir','quarantined','registerTemplate','setLogSink','Can\x20not\x20serialize\x20key\x20of\x20type\x20','env:opened','$defs','durableCursorFloor','library\x20(okdb\x20node-model\x202.0).\x20For\x20multi-process\x20HTTP\x20serving\x20use\x20the\x20okdb\x20','allSettled','server','existsSync','type:drop','_path','_afterDurable','assertQueryOptions','spawn','failed_ttl','FOREIGN_KEY_DELETE_RESTRICTED','_systemEnv','setHostPlugins','job_type.defaults.priority\x20must\x20be\x20int\x20or\x20null','TXN_ENV_MISMATCH','INVALID_PRIMARY_KEY','_id','effective','summary','debug','\x22\x20requires\x20a\x20`handler`\x20function','pinned\x20range\x20iterator\x20parked\x20across\x20an\x20await/turn\x20boundary\x20and\x20the\x20env\x20was\x20written\x20','runStart','job_type.max_concurrency\x20must\x20be\x20int\x20>=\x201\x20or\x20null','1175650PkgvPx','_buf','cookies','_normalizeOAuthAuthResult','claim_expires','ensure:\x20fts\x20entry\x20missing\x20name\x20or\x20fields','enableAll','embeddings:indexer:ready','_ttlCompositeKey','free','_ttlState','FTS_READY_TIMEOUT','_tids','getOidcDiscovery','STARTED','reason','job\x20type\x20must\x20be\x20object','_indexBuilds','\x20=\x20source[position++]\x0a\x09\x09if\x20(','setSchema','gcOrphanedBlobs','abs','processor:\x20rebuild\x20must\x20be\x20a\x20function','queue.worker(\x27','getMany','pin','socket','total','state','isOrchestrator','_onFeedChange','job.idempotency_key\x20must\x20be\x20string|null','_timerHandle','time-machine:','ready','OKDBIndexNotRegisteredError','Unknown\x20transaction\x20action:\x20','reducers','process()\x20entry\x20\x22','storeGetDiffs','ensureTypeEnv','OKDB','prepareTxnEnqueue','Engine\x20driver\x20for\x20\x22','Native','processor','bucketsDb','field:resolver_registered','mcp','vector-search\x20engine\x20not\x20running:\x20\x22','\x20=\x20source[position++]\x0a\x09\x09\x09else\x0a\x09\x09\x09\x09return\x20fromCharCode(','bucket.refill_every\x20must\x20be\x20int\x20>=\x200','_report','build','_addr','resume','listPeers','Referenced\x20key\x20\x27','_retryPending','ref','enqueue','callRows:\x20unexpected\x20row\x20stride\x20','awaitIdle','process(entries)\x20requires\x20at\x20least\x20one\x20entry','durableEngineDoc','itemsDb','catalog','ms\x20mean=','hasType','patch','regInfo','listJobTypes','killAll','_searchWithScores','_isExpired','Type\x20\x22','nextExpiry','files','_sweepOrphanLogs','_ensureVectorStore','fetchRemoteDelta','drives','_shouldApplyChange','equal','okdb-node:\x20unknown\x20callback\x20id\x20','bucket.tokens\x20cannot\x20exceed\x20capacity','driver','envPath','getEmbedderSchema','OKDBIndexAlreadyRegisteredError','ctxHeartbeat','includes','getVector','_isFar','index:drop','resolveModelDims','emb','payload','push','nodeKeys','$regex','raw','reset','_onPoke','snapshotScan','flatMap','_ringSize','job.retry_delay\x20must\x20be\x20int\x20>=\x200','$within',':emb:','replaceMember','sweepExpired','isRunning','getEngine','_subscribeEvent','tick','errors','~lock','geoQuery','getPeerAcks','buckets\x20must\x20be\x20array\x20or\x20string','_openEnvLazy','default','hasOwnProperty','_defaultEnvObj','_autoCompactTimer','refill_amount','login','_viewCache','abort','registerQuantum:\x20load\x20must\x20be\x20a\x20function','OKDBInvalidPrimaryKeyError','listTTL','reduce','getPosition()\x20{\x20return\x20position\x20},','before\x20any\x20await,\x20chunk\x20with\x20{limit,\x20start,\x20exclusiveStart},\x20or\x20drop\x20snapshot:true.','isArray','servers','paused','internal','level','enable','createWorker','_adminRelay','setDefaultTTL','callAsync','ctxProgress','resetUnknownOptionsWarned','toFixed','_set','issueToken','immediate','_attached','bootSyncedEngines','Index\x20\x27','replaceInterests','OKDBForeignKeyDeleteError','Buffer','setProcessingConfig','subarray','kickOwnedBy','stopAll','compact/repair\x20already\x20in\x20progress\x20for\x20this\x20environment','clearDefaultTTL','$lt','_setTTL','processRest()','getBucket','setFlushNotify','empty\x20string','storageStats','updated','tierList','return','getPrototypeOf','invalid\x20log\x20level:\x20','~processes:cmd','_admissionStarted','filter','holder','okdb_session','\x27\x20on\x20type\x20\x27','_typesDb','prefetch','stack','_running','_clearChunked','header','hook','sync:apply','REF_VIOLATION_RESOLVED','_features','engineUninstall','setPeersFn','attachFeed','__syncOverride','isBootstrap','recommended','_timer','resolution','\x20>\x204)\x20{\x0a\x09\x09\x09if\x20(','indexOf','getMeta','note','_bootLog','hasNativeBatch','tolerant','job_type.defaults\x20must\x20be\x20object|null','index:','addInterest','locks','_connections','$elemMatch','subscriptions-store:\x20open()\x20not\x20called','_pending','http','ensure:\x20type\x20is\x20required','createPipeline','SCHEMA_VALIDATION_FAILED','-----BEGIN\x20PUBLIC\x20KEY-----\x0aMCowBQYDK2VwAyEAacrkExPrhxNVHyeQBLDwg8xfm1OwyxDAPNdGXABYS2s=\x0a-----END\x20PUBLIC\x20KEY-----','~system','pump','timer','IPv4','byIndex','process',':useReadTransaction','storage\x20adapter\x20has\x20no\x20method\x20','_closeReadTransaction',':\x20not\x20implemented\x20in\x20the\x20native\x20build\x20yet','processes','bus:type_drop','openEnv','listRefViolations','createAndStartEngine','forgetDb','exportName','_undoHooks','remove','hasEnv','finish','getUint32','addBucket','plugins','_jsFactories','node:cluster','new','processor:\x20cannot\x20combine\x20a\x20closure\x20handler\x20with\x20module:{path,export}.\x20','storePayload','removeJob','put','offset','listVectorStores','$payload','getDefaultTTL','cascade','putSync','_localViewApi','job.bucket\x20must\x20be\x20string|null','enforce','_claimGated','catch','bridge','_ackDb','aborted','hasDriver','cursor','once','registerModule','newListener','unpin','getTTL','embedderCall','durableTierLag','_setPeerState','\x20│\x20','rebuild','ITEM_PENDING','initialize','getResolvedOptions','_write','_create','transaction\x20commit\x20failed','_writerWatchdogInterval','_locks','setTtl','getEmbedderFactory','log\x20entry\x20fields\x20must\x20be\x20object|null','RangeError','drop','__sync:peer_state','warn','processorsStart','TXN_INVALID_OPS','references','charCodeAt','clearTtl','tools','fts:',':index',')\x0a\x09\x09}\x0a\x09\x09','importFromStream','sourceType','STOPPING','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.','OKDBVersionMismatchError','stopView','job.type\x20must\x20be\x20non-empty\x20string','Embedder\x20factory\x20must\x20be\x20a\x20function','$all','(?:/(.*))?','doc_status:','regObject','_reconcilePeer','hex','_quantumGate','_envIndexDb','_log','_durableEmbedderInfo','_logEnv','embedder','index','queue-worker','compression','TXN_ERROR','role','READER_HELD_ACROSS_AWAIT','dup','_isOpen','handle','_put','_unknownOptionsWarned','_emit','call','failed','FTS_BUILD_CONTINUE','symbol','_isWriter','array','_buckets','feature','embedderNew','durableRetryDoc','isOAuthEmailAllowed','prototype','_windowCbs','orchestrator','sort','isBun','forEach','_enableChangelog','retryable','reconcile','floor','kind','setLogger','_registerType','dirty','guardSnapshotIterable','reject','Database\x20already\x20opened/closed','target','setMaxBodyBytes','Foreign\x20key\x20violation:\x20','sessionId','indexStats','system:poke','max_concurrency','~queue_jobs','stopHandle','envName','__esModule','validateRouteInput','stateNames','actionCount','host','jsonrpcCode','durableWorkerStats','HIGH_FREQ_EVENTS','isActive','SEARCH','setUint32','bus:env_release','_handlePending','_readViewExpired','samplePayloads','hasApi','embeddings:indexer:doc:done','maxExtra','clearDone','docs','_durableIndexerDocs','env','applyInterestDelta','bucket\x20id\x20required','inline','asArray','nativeBinaryPath','_commitSessionMutation','Schema\x20validation\x20failed\x20for\x20','areIndexesReady','targetKey','_stopFor','changeToClockDb','listViolations','hybridQuery','args','ITEM_UPDATE','processors','indexer','markJobComplete','__ref_index','_enqueueInTxn','autoCompactState','hasStopFn','interest','pending','\x20which\x20does\x20not\x20exist','filterSessionsForType','cursorKey','_lookupAllByName','updated_at','transactionSync','getStats','item:','evict','createEmbedder','_seen','__blobStatusDb','values','files.upload:\x20id','_scheduleTTLSweep','getAll','getDefinition','msgpackr','embeddings:strategy:registered','buildStep','_release','ms\x20p99=','schema','Type\x20\x27','$ref','taken','listTypes','.\x20Add\x20a\x20license\x20that\x20includes\x20\x22','throw','compiled','_setTTLEntry','shutdownTimeout','TYPE_ALREADY_REGISTERED','bucket','job_type.defaults.backoff_multiplier\x20must\x20be\x20number\x20>=\x201\x20or\x20null','position','getUniqueViolations','~processes:desired','ensureFeed','_resolveFilter','importBlobs','storeEnv','_subscribed','typeStats','_debounceTimer','application/octet-stream','isInteger','\x22\x20tokens\x20must\x20be\x20>=\x201','Algorithm\x20factory\x20must\x20return\x20an\x20object\x20with\x20','INDEX_NOT_REGISTERED','getUniqueViolation','_onStop','\x22\x20on\x20\x22','doc','_blobPath','stats','\x20log\x20entr','scopedName','registerQuantum','~log','__ttlByExpiry','DEFAULT_EVENTS','INVALID_SCHEMA','Date','recordPeerAck','_writer','bootSyncedViewsInline','REMOVE','Transaction\x20already\x20closed','no\x20write\x20has\x20landed.\x20Writes/commit\x20are\x20unaffected.','stopWorkerBegin','payload_schema','http.listen({workers/makeOkdb/primaryOkdb})\x20is\x20no\x20longer\x20supported\x20in\x20the\x20','fetchPeer','\x20already\x20exists','resumed','stopWorkerAbort','_clockListener','setClaimGated','isWriter','publicKey','ref:violation_resolved','@harperdb/extended-iterable:skip','findOwner','job.claim_expires\x20must\x20be\x20number|null','embedder\x20request\x20still\x20pending','allowUnsafe','getInt32','ENGINE_DRIVER_MISSING_START','disable','removeEventListener','_startAutoCompactCheck','encryptionKey','exportBuf','_asArray','22fidbfT','_blobsDir','getViolation','limit','cron','boundary\x20(a\x20pinned\x20read\x20txn\x20blocks\x20LMDB\x20free-page\x20reuse).\x20Do\x20all\x20consistent\x20reads\x20','_read','limits','_rawTxnBuf','\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer','boolean','_syncLock','Plugin\x20name\x20\x27','getNodeRecord','durableDoc','__logsDb','uninstallEngine','_lazyPinned','createIndexer','utf8Write','job_type.payload_schema.enforce\x20must\x20be\x20boolean','_changeToClockDb','ceil','~processes','_onItem','authOpen','orchestratorStarted','api','chunks','setClaiming','type:','_stopAutoCompactCheck','dims','buckets','replace','createLoginState','_ts','readField','_peerDb','setTTL','reverse','embed','doesExist','defineProperty','\x27\x20does\x20not\x20exist\x20in\x20type\x20\x27','settledTickets','6500YVzfyM','sweepExpiredTTL',':keyToChange','incoming','validateOidcAccessToken','getRun','2751680xQNkWr','fetch','handler','string','inputSchema','opts','$in','spki','attach','Query\x20operator\x20\x22','vecRemove','OKDBNotImplementedNativeError','subsBuilt','stopped','_keepAlive','fieldPath','killWorker','usedBy','tag','async','list','index:reset',':\x20unknown\x20option\x20\x27','patchSelf','routes','_warnUnknownOptions','__cmd','fields','drainDeadlineMs','loadedPath','_http','_lockHandle','_getType','pumping','$type','vectorStoreStats','getRecord','Cannot\x20set\x20enforce\x20schema\x20on\x20','_isClosedEnvError','Unknown\x20OKDB\x20transaction\x20error','getSelfNode','assertStartAllowed','family','NativeLock','_callRows','createWriteStream','.\x20The\x20active\x20license\x20does\x20not\x20enable\x20\x22','indexer\x20engine\x20not\x20running:\x20\x22','searchDocs','_refIndexDb','job.error_stack\x20must\x20be\x20string|null','before\x20any\x20await\x20—\x20or\x20opt\x20into\x20useReadTransaction:\x27tolerant\x27\x20to\x20keep\x20reading\x20while\x20','_assertOpen','registerModel','search','registerHandler:\x20name\x20must\x20be\x20a\x20non-empty\x20string','reidentify','properties','useReadTransaction','job.status_code\x20must\x20be\x20string|null','cancelJob'];_0x250b=function(){return _0x5b8b6a;};return _0x250b();}var env,hasRequiredEnv;function requireEnv(){const _0x26f010=_0x36292f;if(hasRequiredEnv)return env;hasRequiredEnv=0x1;const {fromArray:_0x1165f2,chunkedRange:_0x375c42,pinnedChunks:_0x4e126f,claimPrefetch:_0x35c47a}=requireIterable(),{reclass:_0x3db04d,NotImplementedNative:_0x89a036,OKDBError:_0x5aa2aa,optionsArg:_0x33d9b1}=requireErrors(),{OKDBViews:_0x5d2f11}=requireViews(),{OKDBQueue:_0x12e1e7}=requireQueue(),{OKDBTimeMachine:_0x20899b}=requireTimemachine(),_0x120fcb=_0xea0ec5=>{const _0x21349f=_0x303e;try{return!_0xea0ec5[_0x21349f(0x76b)]||_0xea0ec5[_0x21349f(0x76b)]['isFeatureEnabled'](_0x21349f(0x305));}catch{return!![];}},{OKDBFiles:_0x715efe}=requireFiles(),{OKDBEngines:_0xbe2168,OKDBPipelines:_0x394218}=requireEngines(),{OKDBFunctions:_0x48acee}=requireFunctions(),_0x1c7950=requireProcessor(),{RawDb:_0x1d4544}=requireRawdb(),_0x47beb4=requireBridge();let _0x3e1722=null;const _0x54bd6c=()=>_0x3e1722||=requireOkdbTransaction(),_0x385e81=(..._0x455b63)=>requireOkdbGuardedRange()[_0x26f010(0x564)](..._0x455b63),_0x9a0285=Buffer[_0x26f010(0x17b)]([0xff]),_0x2e4895=process.env.OKDB_NATIVE_RAW_READS!=='0',_0x190e35=_0x2e4895&&process.env.OKDB_NATIVE_FAST_GET!=='0',{NO_FAST:_0x47e45d}=requireKeyenc(),_0x261c2d=new Set(_0x2e4895?[_0x26f010(0x32f),_0x26f010(0x4de),_0x26f010(0x311),_0x26f010(0x19b),_0x26f010(0x808)]:[]),_0x279daf=new Set([_0x26f010(0x1d2),_0x26f010(0x186),'getMany','getRange',_0x26f010(0x808),_0x26f010(0x13b),_0x26f010(0x28a),_0x26f010(0x2e5),'getIndex',_0x26f010(0x4de),_0x26f010(0x18c),_0x26f010(0x311),_0x26f010(0x3ed),_0x26f010(0x474),_0x26f010(0x19d),_0x26f010(0x19b),_0x26f010(0x1cd),_0x26f010(0x1b5),'hasType','listTypes',_0x26f010(0x7b1),'getIndexStatus',_0x26f010(0x7b0),_0x26f010(0x67c),_0x26f010(0x50c),_0x26f010(0x5c3),_0x26f010(0x6b4),_0x26f010(0x5d1),_0x26f010(0x17c),_0x26f010(0x600),'listViolations','getRefViolation',_0x26f010(0x4e7),'getTTL',_0x26f010(0x482),'ttlStats',_0x26f010(0x4fc),_0x26f010(0x6bb),_0x26f010(0x6dc),'id','lastTxnId','hlc','resolvedFields',_0x26f010(0x623),_0x26f010(0x6fa)]),_0x3ab439=new Set(['start','end','reverse',_0x26f010(0x601),_0x26f010(0x4f9),_0x26f010(0x3af),_0x26f010(0x185),_0x26f010(0x16d),_0x26f010(0x5ab),_0x26f010(0x6f9),'transaction',_0x26f010(0x119),_0x26f010(0x317),_0x26f010(0x2ce)]);function _0x1085b1(_0x30deff,_0x425af9,_0xc04ff7){const _0xb49ddb=new Map();return(_0x257f5e,_0x1194ff)=>{const _0x72c19b=_0x303e,_0x555ab1=JSON[_0x72c19b(0x74c)](_0x1194ff),_0x1c1907=_0xb49ddb[_0x72c19b(0x1d2)](_0x555ab1);if(_0x1c1907){if(_0x1c1907['state']===_0x72c19b(0x59e))throw _0x7388ce();_0xb49ddb[_0x72c19b(0x17d)](_0x555ab1);if(_0x1c1907[_0x72c19b(0x41a)]===_0x72c19b(0x392))throw _0x1c1907[_0x72c19b(0x1be)];return _0x1c1907['value'];}const _0x58390b=_0x257f5e(..._0x1194ff);if(!_0x58390b||typeof _0x58390b[_0x72c19b(0x179)]!=='function')return _0x58390b;const _0x1feb12={'state':_0x72c19b(0x59e),'value':undefined},_0x2d1f76=(_0x23b4f5,_0x3a80e3)=>{const _0x232e9b=_0x72c19b;_0x1feb12[_0x232e9b(0x41a)]=_0x23b4f5,_0x1feb12[_0x232e9b(0x1be)]=_0x3a80e3;if(_0xb49ddb[_0x232e9b(0x1d2)](_0x555ab1)!==_0x1feb12)return;setTimeout(()=>_0xb49ddb['get'](_0x555ab1)===_0x1feb12&&_0xb49ddb[_0x232e9b(0x17d)](_0x555ab1),0x7530)[_0x232e9b(0x35b)]();try{_0x30deff[_0x232e9b(0x229)][_0x232e9b(0x6eb)](_0x232e9b(0x6f3),null,_0x232e9b(0x3a7),[_0x232e9b(0x42d),{'env':_0x30deff[_0x232e9b(0x6bb)],'type':_0x425af9,'field':_0xc04ff7}],!![]);}catch{}};_0x58390b['then'](_0xf210d4=>_0x2d1f76('ok',_0xf210d4),_0x3215bd=>_0x2d1f76(_0x72c19b(0x392),_0x3215bd));for(let _0x2ee059=0x0;_0x2ee059<0x64&&_0x1feb12[_0x72c19b(0x41a)]===_0x72c19b(0x59e);_0x2ee059++)process[_0x72c19b(0x690)]();if(_0x1feb12['state']==='ok')return _0x1feb12['value'];if(_0x1feb12[_0x72c19b(0x41a)]==='err')throw _0x1feb12[_0x72c19b(0x1be)];_0xb49ddb['set'](_0x555ab1,_0x1feb12);throw _0x7388ce();};}function _0x7388ce(){const _0xd0ccc7=_0x26f010;return Object[_0xd0ccc7(0x38f)](new Error(_0xd0ccc7(0x256)),{'code':_0xd0ccc7(0x31c)});}class _0x2c5fc9{constructor(_0x1deb2f,_0x3628b1){const _0x2b5de3=_0x26f010;this[_0x2b5de3(0x229)]=_0x1deb2f,this[_0x2b5de3(0x6bb)]=_0x3628b1,this['events']=_0x1deb2f['events'],this['log']=_0x1deb2f['log'],this['_isOpen']=!![],this[_0x2b5de3(0x361)]=null,this[_0x2b5de3(0x2d6)]=new _0x5d2f11(this),this[_0x2b5de3(0x42b)]=new _0x1c7950(this);if(!_0x3628b1[_0x2b5de3(0x169)]('~')||_0x3628b1[_0x2b5de3(0x459)](_0x2b5de3(0x46b)))this[_0x2b5de3(0x679)]=new _0x12e1e7(this);if(!_0x3628b1['startsWith']('~'))this[_0x2b5de3(0x44b)]=new _0x715efe(this);this[_0x2b5de3(0x1f2)]=new _0x48acee(_0x1deb2f,_0x3628b1),this[_0x2b5de3(0x262)]=new _0xbe2168(_0x1deb2f,_0x3628b1,_0x1deb2f[_0x2b5de3(0x262)]),this[_0x2b5de3(0x800)]=new _0x394218(_0x1deb2f,_0x3628b1);if(!_0x3628b1[_0x2b5de3(0x169)]('~')&&_0x1deb2f['options'][_0x2b5de3(0x305)]&&_0x120fcb(_0x1deb2f))this[_0x2b5de3(0x305)]=new _0x20899b(this);_0x47beb4['registerEnv'](this[_0x2b5de3(0x6dc)],this);const _0x104953=this;this[_0x2b5de3(0x5e0)]={async 'transaction'(_0x3cbd69){const _0x50d6e8=_0x2b5de3,_0xd81d1e=[];_0x104953['_txnBuf']=_0xd81d1e;try{_0x3cbd69();}finally{_0x104953[_0x50d6e8(0x361)]=null;}return _0x104953[_0x50d6e8(0x229)]['_wb'][_0x50d6e8(0x43a)](_0x50d6e8(0x586),_0x104953[_0x50d6e8(0x6bb)],_0x50d6e8(0x373),[_0xd81d1e]);},'drain'(){const _0xd7e0f8=_0x2b5de3;return _0x104953[_0xd7e0f8(0x229)]['_wb'][_0xd7e0f8(0x6ff)]();},'flushLmdb'(){const _0x5c7de4=_0x2b5de3;return _0x104953[_0x5c7de4(0x229)]['_wb']['drain']();},'markClosed'(){}};const _0x11d4fa=new _0x1d4544(this,'');_0x11d4fa[_0x2b5de3(0x5a5)]=()=>({'lastTxnId':this['_n'](_0x2b5de3(0x67b),[])}),Object[_0x2b5de3(0x629)](_0x11d4fa,'committed',{'get':()=>this[_0x2b5de3(0x229)]['_wb'][_0x2b5de3(0x6ff)](),'configurable':!![]}),Object[_0x2b5de3(0x629)](_0x11d4fa,_0x2b5de3(0x162),{'get':()=>this[_0x2b5de3(0x229)]['_wb']['drain'](),'configurable':!![]});const _0x2c4fb7=_0x11d4fa[_0x2b5de3(0x1d2)][_0x2b5de3(0x6b5)](_0x11d4fa);_0x11d4fa[_0x2b5de3(0x1d2)]=_0x3e3cee=>_0x3e3cee==='clock'?this['_n'](_0x2b5de3(0x19d),[null]):_0x2c4fb7(_0x3e3cee),this['db']=_0x11d4fa;}async[_0x26f010(0x379)](){const _0x4a75a8=_0x26f010;this[_0x4a75a8(0x750)]=!![];}get['_formerOrigins'](){const _0x5d6637=_0x26f010;return new Map(this[_0x5d6637(0x229)][_0x5d6637(0x6eb)]('db',null,_0x5d6637(0x20b),[this[_0x5d6637(0x6bb)]],![]));}get[_0x26f010(0x340)](){const _0x558e11=_0x26f010;return this[_0x558e11(0x4b4)]||(this[_0x558e11(0x4b4)]=new _0x1d4544(this,_0x558e11(0x194)));}['_getType'](_0x4e47e1){const _0x56dd64=_0x26f010,_0x2d1d8a=this[_0x56dd64(0x340)]['get'](_0x4e47e1);if(_0x2d1d8a===undefined||String(_0x4e47e1)['startsWith'](_0x56dd64(0x221))||String(_0x4e47e1)[_0x56dd64(0x169)](_0x56dd64(0x1b6))){const {OKDBError:_0x36c4e1}=requireErrors();throw new _0x36c4e1(_0x56dd64(0x449)+_0x4e47e1+'\x22\x20is\x20not\x20registered',_0x56dd64(0x1ce),{'type':_0x4e47e1});}const _0x529f9b=this,_0x21d9ee=new _0x1d4544(_0x529f9b,_0x56dd64(0x61c)+_0x4e47e1+_0x56dd64(0x529)),_0x31d217=new Map();for(const _0x2e55a4 of _0x21d9ee['getKeys']()){const _0x10aab7=_0x21d9ee['get'](_0x2e55a4)||{},_0x4afbfe={'parts':_0x2e55a4[_0x56dd64(0x681)]('~'),'db':new _0x1d4544(_0x529f9b,_0x56dd64(0x61c)+_0x4e47e1+_0x56dd64(0x393)+_0x2e55a4,{'dupSort':!![]})};if(_0x10aab7[_0x56dd64(0x3a6)])_0x4afbfe[_0x56dd64(0x3a6)]=_0x10aab7[_0x56dd64(0x3a6)];if(_0x10aab7[_0x56dd64(0x1e6)])_0x4afbfe[_0x56dd64(0x1e6)]=!![];if(_0x10aab7['createdBy'])_0x4afbfe[_0x56dd64(0x1ca)]=_0x10aab7[_0x56dd64(0x1ca)];_0x4afbfe[_0x56dd64(0x643)]=new Set((_0x10aab7[_0x56dd64(0x643)]??[])[_0x56dd64(0x2fe)](_0x5cb706=>_0x5cb706[_0x56dd64(0x560)]+':'+_0x5cb706['name'])),_0x31d217[_0x56dd64(0x31f)](_0x2e55a4,_0x4afbfe);}return{'root':new _0x1d4544(_0x529f9b,_0x56dd64(0x61c)+_0x4e47e1),'data':new _0x1d4544(_0x529f9b,_0x56dd64(0x61c)+_0x4e47e1+_0x56dd64(0x159),{'useVersions':!![]}),'indexes':_0x21d9ee,'clockToChange':new _0x1d4544(_0x529f9b,_0x56dd64(0x61c)+_0x4e47e1+_0x56dd64(0x26c)),'keyToChange':new _0x1d4544(_0x529f9b,'type:'+_0x4e47e1+_0x56dd64(0x62e)),'fieldSchema':new Map(Object[_0x56dd64(0x111)](_0x2d1d8a[_0x56dd64(0x64d)]||{})['map'](([_0x23b581,_0x1932bb])=>[_0x23b581,new Set(Array['isArray'](_0x1932bb)?_0x1932bb:[_0x1932bb])])),'indexToDb':_0x31d217,'ftsToDb':null,'schema':_0x2d1d8a[_0x56dd64(0x5b5)]||null,'defaultTTL':_0x2d1d8a[_0x56dd64(0x386)]||null};}get['typeSubDbs'](){const _0x5e873a=_0x26f010,_0x2dd8ca=this,_0x35513f=()=>_0x2dd8ca['listTypes']();return{'get':_0x1ce3e8=>{const _0xee7da1=_0x303e;try{return _0x2dd8ca[_0xee7da1(0x652)](_0x1ce3e8);}catch{return undefined;}},'has':_0x3f94e3=>_0x35513f()[_0x5e873a(0x459)](_0x3f94e3),'keys':()=>_0x35513f()[Symbol[_0x5e873a(0x21f)]](),get 'size'(){return _0x35513f()['length'];}};}[_0x26f010(0x779)](){const _0x501db8=_0x26f010;return this[_0x501db8(0x5b9)]();}get[_0x26f010(0x591)](){const _0x34fc91=_0x26f010;return this[_0x34fc91(0x613)]||(this[_0x34fc91(0x613)]=new _0x1d4544(this,_0x34fc91(0x1f4)));}get[_0x26f010(0x15d)](){const _0x7633e5=_0x26f010;return this[_0x7633e5(0x6c8)]||(this['_clockToChangeDb']=new _0x1d4544(this,'clocks'));}[_0x26f010(0x775)](_0x4738f6){const _0x16b05b=_0x26f010;return this['_n'](_0x16b05b(0x358),[_0x4738f6]);}get[_0x26f010(0x141)](){return!this['_n']('hasChangelog',[],![]);}get[_0x26f010(0x103)](){const _0x324b03=_0x26f010;return this[_0x324b03(0x4c1)]!==undefined?this[_0x324b03(0x4c1)]:this['_n']('hasChangelog',[],![]);}set[_0x26f010(0x103)](_0x46b1d8){const _0x4a236a=_0x26f010;this[_0x4a236a(0x4c1)]=_0x46b1d8;}get[_0x26f010(0x747)](){const _0xd0c696=_0x26f010;return this[_0xd0c696(0x316)]||(this[_0xd0c696(0x316)]=new(requireLock())[(_0xd0c696(0x65d))](this['okdb'],_0xd0c696(0x4da),'compact',{'ttlMs':0xea60}));}get[_0x26f010(0x6dc)](){const _0x5de61b=_0x26f010;return this['_path']??(this[_0x5de61b(0x3eb)]=this['_n'](_0x5de61b(0x6dc),[]));}get['id'](){return this['_n']('id',[]);}get['role'](){const _0x29b044=_0x26f010;return this[_0x29b044(0x229)][_0x29b044(0x543)];}['_n'](_0x5646bb,_0x41608f){const _0xe4dd15=_0x26f010;return this[_0xe4dd15(0x229)][_0xe4dd15(0x6eb)](_0xe4dd15(0x586),this[_0xe4dd15(0x6bb)],_0x5646bb,_0x41608f,!_0x279daf['has'](_0x5646bb));}[_0x26f010(0x1ef)](_0x45b6a4){const _0x4626bd=_0x26f010;return this[_0x4626bd(0x229)]['_settleWrite'](_0x45b6a4);}[_0x26f010(0x670)](_0xb63f65,_0x1ea220){const _0x225dd8=_0x26f010;if(_0x261c2d[_0x225dd8(0x3a9)](_0xb63f65===_0x225dd8(0x67c)?_0x1ea220[0x1]:_0xb63f65))return this[_0x225dd8(0x229)][_0x225dd8(0x65e)](this['name'],_0xb63f65,_0x1ea220);return this[_0x225dd8(0x229)][_0x225dd8(0x296)]('env',this[_0x225dd8(0x6bb)],_0xb63f65,_0x1ea220);}['transaction'](_0x2f9f64={'useReadTransaction':![]}){return new(_0x54bd6c())(this,_0x2f9f64);}async[_0x26f010(0x1c2)](_0x210109,_0x15f9bf){const _0xb038d0=_0x26f010;return _0x54bd6c()[_0xb038d0(0x15c)](this,_0x210109,_0x15f9bf);}['_low'](_0x3718f6,_0x31de54){const _0x1a3b0a=_0x26f010;if(this[_0x1a3b0a(0x361)])this['_txnBuf'][_0x1a3b0a(0x460)]({'action':_0x3718f6,'args':_0x31de54});else this['_n'](_0x3718f6,_0x31de54);}[_0x26f010(0x548)](_0x4cee7f,_0x447700,_0x4addaf,_0x2255b7,_0x393ac4){this['_low']('put',[_0x447700,_0x4addaf,_0x2255b7,_0x393ac4]);}['_update'](_0x3eb64d,_0x36de85,_0x4b56fa,_0x11ced5,_0x3ca3f1){const _0x1752f2=_0x26f010;this[_0x1752f2(0x2a8)]('update',[_0x36de85,_0x4b56fa,_0x11ced5,_0x3ca3f1]);}[_0x26f010(0x2b5)](_0x529f57,_0x3b2550,_0x24ac30,_0x2bd868,_0x49046e){const _0xd4de16=_0x26f010;this[_0xd4de16(0x2a8)](_0xd4de16(0x443),[_0x3b2550,_0x24ac30,_0x2bd868,_0x49046e]);}[_0x26f010(0x517)](_0x3064fe,_0x2f9603,_0x53d9b8,_0x152423,_0x451580){const _0x18e583=_0x26f010;this[_0x18e583(0x2a8)](_0x18e583(0x717),[_0x2f9603,_0x53d9b8,_0x152423,_0x451580]);}['_remove'](_0x5e5230,_0x2237b1,_0xce1f93,_0x5cf17e){const _0x38ee45=_0x26f010;this[_0x38ee45(0x2a8)](_0x38ee45(0x4ec),[_0x2237b1,_0xce1f93,_0x5cf17e]);}[_0x26f010(0x4a3)](_0x39d90a,_0x294610,_0x2a126a,_0x3e3233){const _0x37794d=_0x26f010;this['_low'](_0x37794d(0x625),[_0x294610,_0x2a126a,_0x3e3233]);}[_0x26f010(0x292)](_0x5873d1,_0x1887b0,_0x425fa5){const _0x5e3b05=_0x26f010;this[_0x5e3b05(0x2a8)](_0x5e3b05(0x1a4),[_0x1887b0,_0x425fa5]);}['_w'](_0x405b03,_0xbfd20){const _0x5ea47c=_0x26f010;return this[_0x5ea47c(0x229)][_0x5ea47c(0x6cc)][_0x5ea47c(0x43a)](_0x5ea47c(0x586),this[_0x5ea47c(0x6bb)],_0x405b03,_0xbfd20);}[_0x26f010(0x4f8)](_0xd042be,_0x27cb28,_0x1c63b8,_0x3adb99={}){return this['_w']('put',[_0xd042be,_0x27cb28,_0x1c63b8,_0x3adb99]);}[_0x26f010(0x323)](_0x13313c,_0x268b8c,_0x46871f,_0x46dc61={}){const _0x212870=_0x26f010;return this['_w'](_0x212870(0x323),[_0x13313c,_0x268b8c,_0x46871f,_0x46dc61]);}[_0x26f010(0x443)](_0xa0e707,_0x53634a,_0x2242c4,_0x28e37d={}){const _0x316abc=_0x26f010;return this['_w'](_0x316abc(0x443),[_0xa0e707,_0x53634a,_0x2242c4,_0x28e37d]);}[_0x26f010(0x717)](_0x4eae78,_0x2975e0,_0x3bc398,_0x3ce33d={}){const _0x36e0a4=_0x26f010;return this['_w'](_0x36e0a4(0x717),[_0x4eae78,_0x2975e0,_0x3bc398,_0x3ce33d]);}[_0x26f010(0x4ec)](_0x494932,_0x2628c4,_0x2d8b98={}){return this['_w']('remove',[_0x494932,_0x2628c4,_0x2d8b98]);}[_0x26f010(0x1d2)](_0x5149d9,_0x52ad44,_0x17c3c2){const _0x1cc921=_0x26f010;if(_0x190e35&&typeof _0x5149d9===_0x1cc921(0x635)){const _0x4de6d3=this[_0x1cc921(0x229)]['_getFast'](this[_0x1cc921(0x6bb)],_0x5149d9,_0x52ad44);if(_0x4de6d3!==_0x47e45d)return _0x4de6d3===null?this['_n'](_0x1cc921(0x1d2),[_0x5149d9,_0x52ad44]):_0x4de6d3;}if(_0x2e4895&&(typeof _0x52ad44===_0x1cc921(0x635)||typeof _0x52ad44===_0x1cc921(0x2d3))){const _0xcf06ae=this[_0x1cc921(0x229)][_0x1cc921(0x2ae)](this[_0x1cc921(0x6bb)],_0x5149d9,_0x52ad44);if(_0xcf06ae!==null)return _0xcf06ae;}return this['_n'](_0x1cc921(0x1d2),[_0x5149d9,typeof _0x52ad44===_0x1cc921(0x54e)?null:_0x52ad44]);}[_0x26f010(0x416)](_0x5a4c40,_0x4db7cb,_0x3e5755){const _0x323fa4=_0x26f010,_0x2b4af4=[_0x5a4c40,Array[_0x323fa4(0x486)](_0x4db7cb)&&_0x4db7cb[_0x323fa4(0x7f4)](_0xc40da7=>typeof _0xc40da7===_0x323fa4(0x54e))?_0x4db7cb[_0x323fa4(0x2fe)](_0x1af7f0=>typeof _0x1af7f0==='symbol'?null:_0x1af7f0):_0x4db7cb];return _0x2e4895?this['okdb'][_0x323fa4(0x65e)](this[_0x323fa4(0x6bb)],_0x323fa4(0x416),_0x2b4af4):this['_n']('getMany',_0x2b4af4);}['getEntry'](_0x3798db,_0x53bdbb,_0x4c262b){const _0x14cc5b=_0x26f010;return this['_n'](_0x14cc5b(0x186),[_0x3798db,typeof _0x53bdbb===_0x14cc5b(0x54e)?null:_0x53bdbb]);}[_0x26f010(0x28a)](_0x4b938f,_0x52452d){const _0x507d9d=_0x26f010;return this['_assertRangeOptions'](_0x507d9d(0x28a),_0x52452d),this['_n']('getCount',[_0x4b938f,_0x583195(_0x52452d)]);}['_assertRangeOptions'](_0x23216f,_0xb4d88e,_0x52fe0a=[]){const _0x29a08f=_0x26f010;if(!_0xb4d88e||typeof _0xb4d88e!==_0x29a08f(0x304))return;for(const _0x8e45c2 of Object['keys'](_0xb4d88e)){if(!_0x3ab439[_0x29a08f(0x3a9)](_0x8e45c2)&&!_0x52fe0a[_0x29a08f(0x459)](_0x8e45c2))throw new _0x5aa2aa(_0x23216f+_0x29a08f(0x648)+_0x8e45c2+'\x27',_0x29a08f(0x23f),{'option':_0x8e45c2});}}[_0x26f010(0x124)](_0x3f9cdd,_0x33b8e8,_0x21a590,_0x11713a,_0x52a5d4,_0x1a251f){const _0x748b97=_0x26f010;this[_0x748b97(0x2da)](_0x3f9cdd,_0x11713a);const _0x1f5550=_0x11713a?.['snapshot'],_0x3d0b7c=_0x583195(_0x11713a);if(_0x1f5550===!![]||_0x1f5550==='tolerant'){const _0x214687=this['_lazyPinned'](_0x3f9cdd,_0x33b8e8,_0x5d8126=>[_0x21a590,{..._0x3d0b7c,..._0x5d8126}],_0x11713a);return _0x1a251f?_0x214687['map'](_0x1a251f):_0x214687;}const _0x50c87f=_0x375c42(_0x2f0f1e=>this[_0x748b97(0x670)](_0x33b8e8,[_0x21a590,_0x2f0f1e]),_0x3d0b7c,_0x52a5d4,{'rows':_0x33b8e8===_0x748b97(0x32f)});return _0x1a251f?_0x50c87f[_0x748b97(0x2fe)](_0x1a251f):_0x50c87f;}[_0x26f010(0x60f)](_0x1fdf09,_0x598d03,_0x23feac,_0x5f6774,_0x184b4b,_0x5bdeb8=![]){const _0x1e2399=_0x26f010,{source:_0x2c53bf,prefetch:_0x9bcba0}=_0x4e126f((_0x5aa5cc,_0x2e62f7)=>_0x5aa5cc===_0x1e2399(0x50c)?this['_n'](_0x5aa5cc,_0x2e62f7):this[_0x1e2399(0x670)](_0x5aa5cc,_0x2e62f7),_0x598d03,_0x23feac,_0x5f6774||{},_0x184b4b),_0x42872b=_0x9bcba0(),_0x2ebd23=!_0x5bdeb8&&_0x5f6774&&_0x5f6774[_0x1e2399(0x6f9)]===_0x1e2399(0x4cc);let _0x597067=null;return _0x385e81(()=>({[Symbol[_0x1e2399(0x21f)]]:()=>_0x597067=_0x2c53bf(0x0,_0x35c47a(_0x42872b))}),{'label':this['name']+':'+_0x1fdf09,..._0x2ebd23?{'getTxnId':()=>this['db'][_0x1e2399(0x5a5)]()['lastTxnId'],'resume':()=>({[Symbol[_0x1e2399(0x21f)]]:()=>_0x597067=_0x597067[_0x1e2399(0x5ea)]()})}:{}});}[_0x26f010(0x32f)](_0x132953,_0x10367e){const _0x2463aa=_0x26f010;return this[_0x2463aa(0x124)](_0x2463aa(0x32f),_0x2463aa(0x32f),_0x132953,_0x10367e,_0x256373=>_0x256373['key']);}[_0x26f010(0x808)](_0x9b1db1,_0x4a7c93){const _0x5e7c77=_0x26f010;return this[_0x5e7c77(0x124)](_0x5e7c77(0x808),_0x5e7c77(0x808),_0x9b1db1,_0x4a7c93,_0x53f90c=>_0x53f90c);}[_0x26f010(0x13b)](_0x42e449,_0x29c18a){const _0x497f2c=_0x26f010;return this[_0x497f2c(0x124)](_0x497f2c(0x13b),_0x497f2c(0x32f),_0x42e449,_0x29c18a,_0x2a11be=>_0x2a11be[_0x497f2c(0x119)],_0x124a9d=>_0x124a9d[_0x497f2c(0x1be)]);}[_0x26f010(0x2e5)](_0x42e1b8,_0x42e109,_0x4cf291={}){const _0x1d00ae=_0x26f010;return this[_0x1d00ae(0x32f)](_0x42e1b8,{'start':_0x42e109,'end':_0x42e109+'',..._0x4cf291});}[_0x26f010(0x249)](_0x29f686,_0x22808d,_0x5f5dae={}){const _0x332450=_0x26f010;this[_0x332450(0x2da)](_0x332450(0x249),_0x5f5dae,[_0x332450(0x2ce)]);const _0x1628fb=_0x583195(_0x5f5dae);if(_0x5f5dae&&_0x5f5dae[_0x332450(0x273)])return _0x1165f2(this['_n'](_0x332450(0x249),[_0x29f686,_0x22808d,_0x1628fb]));return this['_lazyPinned'](_0x332450(0x249),_0x332450(0x249),_0x29a994=>[_0x29f686,_0x22808d,{..._0x1628fb,..._0x29a994}],_0x5f5dae,undefined,!![]);}['byIndex'](_0x510d67,_0x5945a5,_0x171500){const _0x3452f8=_0x26f010;this[_0x3452f8(0x2da)]('byIndex',_0x171500,[_0x3452f8(0x2ce),_0x3452f8(0x816)]);const _0x370f9a=_0x583195(_0x171500);if(_0x171500&&_0x171500[_0x3452f8(0x273)])return _0x1165f2(this['_n'](_0x3452f8(0x4de),[_0x510d67,_0x5945a5,_0x370f9a]));return this[_0x3452f8(0x60f)](_0x3452f8(0x4de),'byIndex',_0x1d2b5c=>[_0x510d67,_0x5945a5,{..._0x370f9a,..._0x1d2b5c}],_0x171500,undefined,!![]);}['countByIndex'](_0x1ef809,_0x1caa78,_0x53f913={}){const _0x5e7c96=_0x26f010;return this['_n'](_0x5e7c96(0x18c),[_0x1ef809,_0x1caa78,_0x583195(_0x53f913)]);}[_0x26f010(0x311)](_0x4dd5cf,_0x40cfed={},_0x1814af={}){const _0x4ac417=_0x26f010,_0x2eeb5c=_0x10a2d2(_0x1814af);if(_0x1814af){for(const _0x3a8e51 of Object[_0x4ac417(0x3ad)](_0x1814af))if(_0x3a8e51!==_0x4ac417(0x270)&&typeof _0x1814af[_0x3a8e51]===_0x4ac417(0x7e3))_0x2eeb5c[_0x3a8e51]=null;}if(_0x1814af&&(_0x1814af[_0x4ac417(0x366)]||_0x1814af['vector']))return this['_n'](_0x4ac417(0x3ed),[_0x2eeb5c]),this[_0x4ac417(0x682)](_0x4dd5cf,_0x40cfed,_0x1814af);const _0x28676a=typeof _0x1814af[_0x4ac417(0x270)]===_0x4ac417(0x7e3)?_0x1814af['select']:null;if(_0x1814af['near']||_0xb3a3a(_0x40cfed)||_0x1814af[_0x4ac417(0x273)]!==undefined){let _0x56ea12=this['_n'](_0x4ac417(0x311),[_0x4dd5cf,_0x40cfed,_0x2eeb5c]);if(_0x28676a)_0x56ea12=_0x56ea12['map'](_0x28676a);if(_0x1814af['near']||_0xb3a3a(_0x40cfed))return _0x56ea12;return _0x1165f2(_0x56ea12);}const _0x500df1=_0x3f4590=>typeof _0x3f4590===_0x4ac417(0x2d3)&&Number[_0x4ac417(0x5cd)](_0x3f4590)?Math[_0x4ac417(0x372)](0x0,_0x3f4590):Infinity;let _0x26d980;if(_0x1814af['index']){const _0x460ca1=_0x15f8a1=>typeof _0x15f8a1===_0x4ac417(0x2d3)&&_0x15f8a1>0x0?Math[_0x4ac417(0x614)](_0x15f8a1):0x0;_0x26d980=this[_0x4ac417(0x60f)](_0x4ac417(0x311),'query',_0xf0a419=>[_0x4dd5cf,_0x40cfed,{..._0x2eeb5c,..._0xf0a419}],null,{'limitOf':()=>_0x500df1(_0x2eeb5c['limit']),'offsetOf':()=>_0x460ca1(_0x2eeb5c['offset'])});}else _0x26d980=_0x375c42(_0x250b9c=>{const _0x1fd382=_0x4ac417,{__after:_0x4e9c85,..._0x32fab6}=_0x250b9c;return this[_0x1fd382(0x670)](_0x1fd382(0x311),_0x4e9c85===undefined?[_0x4dd5cf,_0x40cfed,_0x32fab6]:[_0x4dd5cf,_0x40cfed,_0x32fab6,_0x4e9c85]);},_0x2eeb5c,_0x15d65b=>_0x15d65b[_0x4ac417(0x119)],{'limitOf':_0x500df1,'rows':!![],'prefetch':!![],'resumeOpts':(_0x5abc57,_0x181ef9)=>{_0x5abc57['offset']=0x0,_0x5abc57['__after']=_0x181ef9;}});return _0x28676a?_0x26d980[_0x4ac417(0x2fe)](_0x28676a):_0x26d980;}async[_0x26f010(0x682)](_0x144a52,_0x48f0e7,_0x1cfee8){const _0x54a8a1=_0x26f010,{select:_0x188dfa,..._0x1c824d}=_0x10a2d2(_0x1cfee8);let _0x2eb964={..._0x1c824d};const _0x20c50d=_0x2eb964[_0x54a8a1(0x53f)];if(_0x20c50d&&!Array[_0x54a8a1(0x486)](_0x20c50d)&&typeof _0x20c50d==='object'&&_0x20c50d[_0x54a8a1(0x64d)]){const {fields:_0x25a95d,prefix:_0x1b0a2a,start:_0x5a1c8f,end:_0x227da2}=_0x20c50d;_0x2eb964={..._0x2eb964,'index':_0x25a95d,'prefix':_0x1b0a2a??_0x2eb964[_0x54a8a1(0x2ce)],'startIndex':_0x5a1c8f??_0x2eb964['startIndex'],'endIndex':_0x227da2??_0x2eb964['endIndex']};}const _0x4c933b=await this[_0x54a8a1(0x229)][_0x54a8a1(0x7a1)](_0x54a8a1(0x2f0),null,_0x54a8a1(0x593),[this[_0x54a8a1(0x6bb)],_0x144a52,_0x48f0e7,_0x2eb964],![]),_0x54df81=typeof _0x1cfee8['select']===_0x54a8a1(0x7e3)?_0x1cfee8[_0x54a8a1(0x270)]:null;if(!_0x54df81)return _0x4c933b;return _0x4c933b[_0x54a8a1(0x2fe)](_0x1f6cd7=>{const _0x555be6=_0x54a8a1,{score:_0x11f9ad,ftsScore:_0x160950,numTerms:_0x5ec0cd,maxScore:_0x464a76,vectorScore:_0x3f99a0,chunkHash:_0x2632fe,chunk:_0x42b8c6,..._0x3f6f45}=_0x1f6cd7,_0x3dd7ad=_0x54df81(_0x3f6f45);for(const [_0xeca479,_0x1b23c1]of Object[_0x555be6(0x111)]({'score':_0x11f9ad,'ftsScore':_0x160950,'numTerms':_0x5ec0cd,'maxScore':_0x464a76,'vectorScore':_0x3f99a0,'chunkHash':_0x2632fe,'chunk':_0x42b8c6}))if(_0x1b23c1!==undefined)_0x3dd7ad[_0xeca479]=_0x1b23c1;return _0x3dd7ad;});}[_0x26f010(0x474)](_0x55e4b7,_0x3fc013,_0x21490b={}){const _0x572376=_0x26f010;let _0x52a9f8=this['_n'](_0x572376(0x474),[_0x55e4b7,_0x3fc013,_0x10a2d2(_0x21490b)]);if(typeof _0x21490b[_0x572376(0x270)]==='function')_0x52a9f8=_0x52a9f8['map'](_0x21490b[_0x572376(0x270)]);return _0x52a9f8;}[_0x26f010(0x19d)](_0x298a3a=null,_0x19837d={}){const _0xdf5cb9=_0x26f010;return this['_n'](_0xdf5cb9(0x19d),[_0x298a3a]);}[_0x26f010(0x19b)](_0x15ad58=null,_0x1223d8=0x0,_0x5528c7=Number[_0x26f010(0x230)],_0x4be63a={}){const _0x323ec9=_0x26f010,_0x7e0fef=_0x583195(_0x4be63a);if(_0x4be63a&&_0x4be63a['transaction'])return _0x1165f2(this['_n'](_0x323ec9(0x19b),[_0x15ad58,_0x1223d8,_0x5528c7,_0x7e0fef]));return this[_0x323ec9(0x60f)](_0x323ec9(0x19b),_0x323ec9(0x19b),_0x390ecd=>[_0x15ad58,_0x1223d8,_0x5528c7,{..._0x7e0fef,..._0x390ecd}],_0x4be63a);}['count'](_0x10731d){const _0x30a8fd=_0x26f010;if(Array[_0x30a8fd(0x486)](_0x10731d))return _0x10731d[_0x30a8fd(0x1e1)];let _0x41189d=0x0;for(const _0x3eaacd of _0x10731d)_0x41189d++;return _0x41189d;}*['range'](_0x953564){yield*_0x953564;}['now'](){const _0xbde2cb=_0x26f010;return requireOkdbHlc()['toMs'](this[_0xbde2cb(0x10c)]);}get[_0x26f010(0x2d1)](){const _0x435d51=_0x26f010,_0x4f6ec8=this[_0x435d51(0x229)][_0x435d51(0x546)]?this['okdb']['_call']('db',null,_0x435d51(0x778),[this[_0x435d51(0x6bb)]],![]):null;if(!_0x4f6ec8)return null;if(this[_0x435d51(0x772)]===_0x4f6ec8[_0x435d51(0x310)])return null;this[_0x435d51(0x24c)]=this['_timerObjs']||new Map();let _0x3a3491=this[_0x435d51(0x24c)]['get'](_0x4f6ec8[_0x435d51(0x310)]);if(!_0x3a3491){const _0x40f9a2=this;_0x3a3491={'ref'(){},'unref'(){},'hasRef':()=>![],'gen':_0x4f6ec8[_0x435d51(0x310)],'at':_0x4f6ec8['at'],'target':_0x4f6ec8[_0x435d51(0x567)],get '_destroyed'(){const _0x55c9a7=_0x435d51,_0x489962=_0x40f9a2[_0x55c9a7(0x229)][_0x55c9a7(0x546)]?_0x40f9a2[_0x55c9a7(0x229)]['_call']('db',null,_0x55c9a7(0x778),[_0x40f9a2[_0x55c9a7(0x6bb)]],![]):null;return!_0x489962||_0x489962[_0x55c9a7(0x310)]!==this[_0x55c9a7(0x310)]||_0x40f9a2[_0x55c9a7(0x772)]===this[_0x55c9a7(0x310)];}},this[_0x435d51(0x24c)][_0x435d51(0x31f)](_0x4f6ec8[_0x435d51(0x310)],_0x3a3491);}return _0x3a3491;}[_0x26f010(0x218)](){const _0x105b17=_0x26f010,_0x1e2200=this['okdb'][_0x105b17(0x6eb)]('db',null,_0x105b17(0x778),[this[_0x105b17(0x6bb)]],![]);if(_0x1e2200)this[_0x105b17(0x772)]=_0x1e2200['gen'];}get['_ttlTimerAt'](){const _0x49954d=_0x26f010,_0x2a6c64=this['okdb']['_call']('db',null,_0x49954d(0x778),[this[_0x49954d(0x6bb)]],![]);return _0x2a6c64?_0x2a6c64[_0x49954d(0x567)]:null;}get[_0x26f010(0x47b)](){const _0x584f56=_0x26f010;return this['okdb'][_0x584f56(0x6eb)]('db',null,_0x584f56(0x789),[this[_0x584f56(0x6bb)]],![])?{'ref'(){},'unref'(){}}:null;}[_0x26f010(0x5fa)](){const _0x1bfacc=_0x26f010;this[_0x1bfacc(0x229)][_0x1bfacc(0x6eb)]('db',null,_0x1bfacc(0x167),[this[_0x1bfacc(0x6bb)]],![]);}[_0x26f010(0x61d)](){const _0x567aa2=_0x26f010;this[_0x567aa2(0x229)][_0x567aa2(0x6eb)]('db',null,'stopAutoCompactCheck',[this['name']],![]);}get[_0x26f010(0x78e)](){const _0x5160d5=_0x26f010,_0x23707e=(_0x3517c1,_0x200a83)=>this[_0x5160d5(0x229)]['_call']('db',null,_0x3517c1,[this[_0x5160d5(0x6bb)],..._0x200a83],![]),_0x45133a=Object[_0x5160d5(0x3ad)](_0x23707e(_0x5160d5(0x59b),[])||{}),_0x5ad489={};for(const _0x285f42 of _0x45133a)Object[_0x5160d5(0x629)](_0x5ad489,_0x285f42,{'enumerable':!![],'get':()=>_0x23707e('autoCompactState',[])?.[_0x285f42],'set':_0x79366e=>{_0x23707e('setAutoCompact',[_0x285f42,_0x79366e]);}});return _0x5ad489;}get[_0x26f010(0x10c)](){return this['_n']('hlc',[]);}[_0x26f010(0x451)](_0x3f978c,_0x4f47b6){const _0x1070a8=_0x26f010;return require$$16[_0x1070a8(0x26d)](_0x3f978c,_0x4f47b6);}async[_0x26f010(0x227)](_0xda710c,_0x3a22ec){const _0x280bbc=_0x26f010;return this[_0x280bbc(0x1ef)](this['_n'](_0x280bbc(0x227),[_0xda710c]));}['hasType'](_0x4c479e){return this['_n']('hasType',[_0x4c479e]);}[_0x26f010(0x5b9)](){const _0x3354c3=_0x26f010;return this['_n'](_0x3354c3(0x5b9),[]);}async[_0x26f010(0x333)](_0x1589ec,_0x4a2c87){return this['_wsettle'](this['_n']('dropType',[_0x1589ec]));}async[_0x26f010(0x110)](_0x3060b5,_0x16f997){const _0xdde135=_0x26f010,{timestamp:_0xd56fb2,indexes:indexes=[]}=_0x33d9b1(_0x16f997);return this[_0xdde135(0x1ef)](this['_n']('ensureType',[_0x3060b5,{'indexes':indexes}]));}async[_0x26f010(0x1f5)](_0x547501){const _0x3c9bdd=_0x26f010,{type:_0x565269,indexes:indexes=[],fts:fts=[],views:views=[],schema:schema=null}=_0x33d9b1(_0x547501,'spec');if(!_0x565269)throw new Error(_0x3c9bdd(0x4d6));await this[_0x3c9bdd(0x110)](_0x565269,{'indexes':indexes});for(const _0x2ebab8 of fts){const {name:_0x5658a8,fields:_0x25a70f,..._0x34abeb}=_0x2ebab8;if(!_0x5658a8||!_0x25a70f)throw new Error(_0x3c9bdd(0x403));await this[_0x3c9bdd(0x229)]['fts'][_0x3c9bdd(0x1f5)](_0x565269,_0x5658a8,{'fields':_0x25a70f,..._0x34abeb},this);}for(const _0x971db1 of views){const {name:_0x1f2bce,definition:_0x4247d4}=_0x971db1;if(!_0x1f2bce||!_0x4247d4)throw new Error(_0x3c9bdd(0x33f));if(!await this[_0x3c9bdd(0x2d6)][_0x3c9bdd(0x5af)](_0x1f2bce))await this[_0x3c9bdd(0x2d6)][_0x3c9bdd(0x717)](_0x1f2bce,_0x4247d4);}if(schema)await this['setSchema'](_0x565269,schema);}async[_0x26f010(0x18f)](_0xc55923,_0x413a70,_0xcef714){const _0xdcdeaa=_0x26f010,_0xfab109=this['_n'](_0xdcdeaa(0x38b),[_0xc55923,_0x413a70,typeof _0xcef714===_0xdcdeaa(0x304)?_0xcef714:{}]);if(!_0xfab109)return this['_wsettle'](undefined);const _0x1a49fe=this['_n'](_0xdcdeaa(0x722),[_0xc55923,_0x413a70,!![]]);if(_0x1a49fe===undefined)return this[_0xdcdeaa(0x1ef)](undefined);return this['_wsettle'](await this[_0xdcdeaa(0x239)](_0xc55923,_0x413a70,_0x1a49fe));}async[_0x26f010(0x239)](_0x55ca06,_0x453c77,_0x7caf90){const _0x5b3081=_0x26f010,_0x5203bf=_0x55ca06+'@'+[][_0x5b3081(0x354)](_0x453c77)[_0x5b3081(0x6ee)]('~');if(!this[_0x5b3081(0x40f)])this[_0x5b3081(0x40f)]=new Map();const _0xc910b4=this[_0x5b3081(0x40f)][_0x5b3081(0x1d2)](_0x5203bf);if(_0xc910b4)return _0xc910b4;const _0x5a5fee=((async()=>{do await new Promise(_0x29ba9c=>setImmediate(_0x29ba9c));while(!this['_n']('resetIndexFinish',[_0x55ca06,_0x453c77,_0x7caf90,!![]]));})());this[_0x5b3081(0x40f)][_0x5b3081(0x31f)](_0x5203bf,_0x5a5fee);try{return await _0x5a5fee;}finally{this[_0x5b3081(0x40f)][_0x5b3081(0x17d)](_0x5203bf);}}async[_0x26f010(0x2a6)](_0x29bd7c,_0x4f7fc9,_0x4f2bc8){const _0x127690=_0x26f010;return this[_0x127690(0x1ef)](this['_n'](_0x127690(0x2a6),[_0x29bd7c,_0x4f7fc9]));}async[_0x26f010(0x105)](_0x139184,_0x13fa00,_0x3b9cd9){const _0x597681=_0x26f010,_0x3a02c6=this[_0x597681(0x40f)]&&this['_indexBuilds'][_0x597681(0x1d2)](_0x139184+'@'+[][_0x597681(0x354)](_0x13fa00)[_0x597681(0x6ee)]('~'));if(_0x3a02c6)return _0x3a02c6;const _0x24026b=this['_n'](_0x597681(0x722),[_0x139184,_0x13fa00,_0x3b9cd9]);if(_0x24026b===undefined)return;return await new Promise(_0x266777=>setImmediate(_0x266777)),this[_0x597681(0x1ef)](await this[_0x597681(0x239)](_0x139184,_0x13fa00,_0x24026b));}[_0x26f010(0x7b1)](_0x2033db,_0x46b884){const _0x52d024=_0x26f010;return this['_n'](_0x52d024(0x7b1),[_0x2033db,_0x46b884]);}[_0x26f010(0x6f5)](_0x3d0b5f,_0x3a8073){const _0x1e98b4=_0x26f010;return this['_n'](_0x1e98b4(0x6f5),[_0x3d0b5f,_0x3a8073]);}async[_0x26f010(0x2b9)](_0x590ece,_0x491526){const _0x10a766=_0x26f010;if(this['_n'](_0x10a766(0x6f5),[_0x590ece,_0x491526])===_0x10a766(0x420))return!![];let _0x2cb8f4=0xa;for(;;){await new Promise(_0x31cfd9=>setTimeout(_0x31cfd9,_0x2cb8f4));if(!this[_0x10a766(0x229)][_0x10a766(0x546)]||this[_0x10a766(0x750)])return![];let _0x765104;try{_0x765104=this['_n'](_0x10a766(0x7b0),[_0x590ece,Array[_0x10a766(0x486)](_0x491526)?_0x491526[_0x10a766(0x6ee)]('~'):String(_0x491526)[_0x10a766(0x681)](',')[_0x10a766(0x6ee)]('~')]);}catch{return![];}const _0x3a198f=_0x765104&&_0x765104['status'];if(_0x3a198f===_0x10a766(0x420))return!![];if(_0x3a198f===undefined)return![];_0x2cb8f4=Math[_0x10a766(0x2f2)](_0x2cb8f4*0x2,0xfa);}}['getIndexMeta'](_0x3da627,_0x37ff90){return this['_n']('getIndexMeta',[_0x3da627,_0x37ff90])??null;}['getUniqueViolations'](_0x192d95,_0x199c41){const _0x10cc1c=_0x26f010;return this['_n'](_0x10cc1c(0x5c3),[_0x192d95,_0x199c41]);}['hasUniqueViolations'](_0x3c9c3a,_0x5ea86f){const _0x1598a4=_0x26f010;return this['_n'](_0x1598a4(0x6b4),[_0x3c9c3a,_0x5ea86f]);}[_0x26f010(0x5d1)](_0x4cc971,_0x1030a0,_0x2f9657){const _0x4cab43=_0x26f010;return this['_n'](_0x4cab43(0x5d1),[_0x4cc971,_0x1030a0,_0x2f9657])??null;}[_0x26f010(0x17c)](_0x2ae4ad){const _0x115903=_0x26f010;return this['_n'](_0x115903(0x17c),[_0x2ae4ad])??null;}async['setSchema'](_0x419cfa,_0x24e9c0){const _0x59fd55=_0x26f010;return this[_0x59fd55(0x1ef)](this['_n'](_0x59fd55(0x411),[_0x419cfa,_0x24e9c0]));}async[_0x26f010(0x30b)](_0xa5cbdf){const _0x24a720=_0x26f010;return this[_0x24a720(0x1ef)](this['_n']('dropSchema',[_0xa5cbdf]));}[_0x26f010(0x600)](_0x3ae628,_0x34d544){return this['_n']('getViolation',[_0x3ae628,_0x34d544])??null;}[_0x26f010(0x592)](_0x2e2638){return this['_n']('listViolations',[_0x2e2638]);}[_0x26f010(0x13f)](_0x22a138,_0x163df6,_0x672a7c){const _0x15ddb5=_0x26f010;return this['_n'](_0x15ddb5(0x13f),[_0x22a138,_0x163df6,_0x672a7c])??null;}['listRefViolations'](_0x517289){return this['_n']('listRefViolations',[_0x517289]);}async[_0x26f010(0x625)](_0x1f033e,_0x310f75,_0x36b1aa){const _0x213f58=_0x26f010;return this[_0x213f58(0x1ef)](this['_n'](_0x213f58(0x625),[_0x1f033e,_0x310f75,_0x36b1aa]));}[_0x26f010(0x50d)](_0x426cd1,_0x596ad9){const _0x5ba324=_0x26f010;return this['_n'](_0x5ba324(0x50d),[_0x426cd1,_0x596ad9]);}async[_0x26f010(0x1a4)](_0x520531,_0x1c3ad6){const _0x320ca2=_0x26f010;return this[_0x320ca2(0x1ef)](this['_n'](_0x320ca2(0x1a4),[_0x520531,_0x1c3ad6]));}async[_0x26f010(0x62d)](_0x490803){const _0x346007=_0x26f010;return this['_n'](_0x346007(0x62d),[_0x490803]);}[_0x26f010(0x482)](_0xeb5298={}){return this['_n']('listTTL',[_0xeb5298]);}[_0x26f010(0x35e)](_0x3694e3){const _0x13e8b2=_0x26f010;return this['_n'](_0x13e8b2(0x35e),[_0x3694e3]);}async[_0x26f010(0x48e)](_0x12b8eb,_0x957780){const _0x1fae3f=_0x26f010;return this[_0x1fae3f(0x1ef)](this['_n']('setDefaultTTL',[_0x12b8eb,_0x957780]));}[_0x26f010(0x4fc)](_0x119d56){const _0x159d4b=_0x26f010;return this['_n'](_0x159d4b(0x4fc),[_0x119d56]);}async[_0x26f010(0x4a1)](_0x4c803a){const _0x1a71c0=_0x26f010;return this[_0x1a71c0(0x1ef)](this['_n']('clearDefaultTTL',[_0x4c803a]));}async['resolveField'](_0x380aef,_0x5e79af,_0x4ec76f,_0x2a0e19){const _0x56a781=_0x26f010,{batch:batch=null,batchSize:_0xa16b84}=_0x33d9b1(_0x2a0e19);if(typeof _0x380aef!=='string'||!_0x380aef)throw new _0x5aa2aa(_0x56a781(0x70b),_0x56a781(0x78a));if(typeof _0x5e79af!==_0x56a781(0x635)||!_0x5e79af)throw new _0x5aa2aa(_0x56a781(0x688),'BAD_PARAM');if(_0x4ec76f!=null&&typeof _0x4ec76f!==_0x56a781(0x7e3))throw new _0x5aa2aa(_0x56a781(0x6c0),_0x56a781(0x78a));if(batch!=null&&typeof batch!==_0x56a781(0x7e3))throw new _0x5aa2aa(_0x56a781(0x6d5),_0x56a781(0x78a));if(!_0x4ec76f&&!batch)throw new _0x5aa2aa(_0x56a781(0x75d),_0x56a781(0x78a));if(_0xa16b84!==undefined&&!(Number[_0x56a781(0x5cd)](_0xa16b84)&&_0xa16b84>0x0))throw new _0x5aa2aa('resolveField:\x20options.batchSize\x20must\x20be\x20a\x20positive\x20integer',_0x56a781(0x78a));const _0xea849f=batch?async _0x3ec3a1=>(await batch(_0x3ec3a1))[_0x56a781(0x2fe)](_0xa91b1a=>_0xa91b1a instanceof Error?{'__error':!![],'message':_0xa91b1a[_0x56a781(0x79d)]}:_0xa91b1a):null,_0x1a5fc4=_0x1085b1(this,_0x380aef,_0x5e79af),_0x46cd57=this['_n'](_0x56a781(0x1ac),[_0x380aef,_0x5e79af,_0x4ec76f?(_0x3c7368,_0x3cfa0d)=>_0x1a5fc4(_0x4ec76f,[_0x3c7368,_0x3cfa0d]):null,{'batch':_0xea849f?_0x1ff700=>_0x1a5fc4(_0xea849f,[_0x1ff700]):null,'batchSize':_0xa16b84}]);return()=>this['_n']('removeResolver',[_0x46cd57]);}async[_0x26f010(0x3a5)](_0x231139,_0xc44134){const _0x18f8db=_0x26f010;return this['_n'](_0x18f8db(0x3a5),[_0x231139,_0xc44134]);}[_0x26f010(0x770)](_0x2ae486){return this['_n']('resolvedFields',[_0x2ae486]);}async[_0x26f010(0x623)](_0x1d6aa3,_0x393618,_0x472808,_0xf5e9bc){const _0x32ae7c=_0x26f010;return this['okdb'][_0x32ae7c(0x7a1)](_0x32ae7c(0x586),this[_0x32ae7c(0x6bb)],_0x32ae7c(0x623),[_0x1d6aa3,_0x393618,_0x472808,_0xf5e9bc],![]);}async[_0x26f010(0x6fa)](_0xabf168,_0x43f2b2,_0x39925d){const _0xe9a73a=_0x26f010;return this['okdb']['_callMacro'](_0xe9a73a(0x586),this[_0xe9a73a(0x6bb)],_0xe9a73a(0x6fa),[_0xabf168,_0x43f2b2,_0x39925d],![]);}['_enableChangelog'](){}[_0x26f010(0x268)](_0x20fb93,_0x3ea0f4,_0x32a186,_0x1a0b78={},_0x4a02f5={}){const _0x336d24=_0x26f010;return this[_0x336d24(0x229)][_0x336d24(0x6eb)](_0x336d24(0x366),null,_0x336d24(0x268),[_0x20fb93,_0x3ea0f4,_0x32a186,_0x1a0b78,_0x4a02f5,this['name']],![]);}get[_0x26f010(0x366)](){const _0x3617a6=_0x26f010;return this['okdb'][_0x3617a6(0x366)];}['getResolvedOptions'](){const _0x53d8e8=_0x26f010;return this[_0x53d8e8(0x229)][_0x53d8e8(0x6eb)](_0x53d8e8(0x586),this['name'],'getResolvedOptions',[],![]);}[_0x26f010(0x7c8)](){const _0x117675=_0x26f010;return this[_0x117675(0x229)][_0x117675(0x7c8)]();}[_0x26f010(0x2a7)](){const _0x5500a3=_0x26f010;return this[_0x5500a3(0x229)][_0x5500a3(0x6eb)](_0x5500a3(0x586),this[_0x5500a3(0x6bb)],_0x5500a3(0x2a7),[],![]);}[_0x26f010(0x33a)](){}get['locks'](){const _0x38b0a7=_0x26f010;return this[_0x38b0a7(0x51a)]||(this[_0x38b0a7(0x51a)]=new(requireLock())[(_0x38b0a7(0x65d))](this[_0x38b0a7(0x229)],this[_0x38b0a7(0x6bb)],_0x38b0a7(0x586)));}[_0x26f010(0x4a8)](){const _0xc06130=_0x26f010;return this[_0xc06130(0x229)][_0xc06130(0x6eb)]('env',this[_0xc06130(0x6bb)],_0xc06130(0x4a8),[],![]);}[_0x26f010(0x562)](_0x5ad1b5){this['_n']('registerType',[_0x5ad1b5]);}[_0x26f010(0x728)](_0x28f943){const _0x1ae035=_0x26f010;this['_n'](_0x1ae035(0x7f5),[_0x28f943]);}[_0x26f010(0x408)](){return this['_n']('ttlState',[]);}[_0x26f010(0x406)](_0x16a46b,_0x30e9dc){return _0x16a46b+'\x09'+_0x30e9dc;}[_0x26f010(0x68c)](_0x1d4d29){const _0x48dbbc=_0x26f010,_0x19c8ef=_0x1d4d29[_0x48dbbc(0x4c7)]('\x09');return{'type':_0x1d4d29[_0x48dbbc(0x6ea)](0x0,_0x19c8ef),'key':_0x1d4d29[_0x48dbbc(0x6ea)](_0x19c8ef+0x1)};}get[_0x26f010(0x7d6)](){const _0x5c5b66=_0x26f010;if(!this[_0x5c5b66(0x408)]()[_0x5c5b66(0x1e0)])return null;return this[_0x5c5b66(0x21e)]||(this[_0x5c5b66(0x21e)]=new _0x1d4544(this,_0x5c5b66(0x793)));}get[_0x26f010(0x2dd)](){const _0x3d221d=_0x26f010;if(!this[_0x3d221d(0x408)]()[_0x3d221d(0x1e0)])return null;return this['__ttlByExpiry']||(this[_0x3d221d(0x5db)]=new _0x1d4544(this,'~ttl:expiry',{'dupSort':!![]}));}[_0x26f010(0x5bd)](_0x567f80,_0x25bd4b,_0x528a99){this['_n']('ttlSetEntry',[_0x567f80,_0x25bd4b,_0x528a99]);}[_0x26f010(0x448)](_0x2a885c,_0x1e51c5){const _0x17ac7d=_0x26f010,_0x3fe5fa=this[_0x17ac7d(0x7d6)]?.[_0x17ac7d(0x1d2)](this[_0x17ac7d(0x406)](_0x2a885c,_0x1e51c5));return _0x3fe5fa!=null&&_0x3fe5fa<=Date['now']();}get[_0x26f010(0x77c)](){const _0x2cf676=_0x26f010;return this['_ttlState']()[_0x2cf676(0x44a)]??null;}get['_ttlBackoffUntil'](){const _0x5ce8d1=_0x26f010;return this[_0x5ce8d1(0x408)]()['backoffUntil']||0x0;}get['_sweepInProgress'](){return![];}[_0x26f010(0x5ad)](){}async[_0x26f010(0x32a)](_0xfb66c,_0x2c3c26){const _0x5ab4bd=_0x26f010;if(this[_0x5ab4bd(0x7ce)]){const {OKDBError:_0x4d3ddd}=requireErrors();throw new _0x4d3ddd(_0x5ab4bd(0x4a0),_0x5ab4bd(0x118));}this[_0x5ab4bd(0x7ce)]=!![];try{return await this['okdb']['_callMacro']('env',this[_0x5ab4bd(0x6bb)],_0xfb66c,[_0x2c3c26],!![]);}finally{this[_0x5ab4bd(0x7ce)]=![];}}async[_0x26f010(0x1d6)](_0x4e29a0={}){const _0x391902=_0x26f010;return this['_rebuild'](_0x391902(0x1d6),_0x4e29a0);}async[_0x26f010(0x3a0)](_0x36f0cc={}){const _0xdc22d9=_0x26f010;return this[_0xdc22d9(0x32a)](_0xdc22d9(0x3a0),_0x36f0cc);}}_0x2c5fc9[_0x26f010(0x676)]=_0x9a0285;function _0xb3a3a(_0x25eda3){const _0x1c1771=_0x26f010;if(!_0x25eda3||typeof _0x25eda3!=='object')return![];for(const _0x3ebca1 of Object['keys'](_0x25eda3)){const _0x384c1e=_0x25eda3[_0x3ebca1];if(_0x384c1e&&typeof _0x384c1e===_0x1c1771(0x304)&&(_0x384c1e['$near']||_0x384c1e[_0x1c1771(0x46a)]))return!![];}return![];}function _0x583195(_0x2fc935){const _0x2f5986=_0x26f010;if(!_0x2fc935||typeof _0x2fc935!==_0x2f5986(0x304))return{};const _0x4da5ea={};for(const _0x4b86dc of Object['keys'](_0x2fc935)){if(_0x4b86dc===_0x2f5986(0x273)||_0x4b86dc===_0x2f5986(0x6f9))continue;_0x4da5ea[_0x4b86dc]=_0x2fc935[_0x4b86dc];}return _0x4da5ea;}function _0x10a2d2(_0xe75f8f){const _0x268f4c=_0x26f010;if(!_0xe75f8f||typeof _0xe75f8f!==_0x268f4c(0x304))return{};const _0x48b2c5={};for(const _0x240262 of Object[_0x268f4c(0x3ad)](_0xe75f8f)){if(typeof _0xe75f8f[_0x240262]==='function')continue;_0x48b2c5[_0x240262]=_0xe75f8f[_0x240262];}return _0x48b2c5;}return env={'OKDBEnv':_0x2c5fc9,'HIGH_SENTINEL':_0x9a0285},env;}var unsupported,hasRequiredUnsupported;function requireUnsupported(){if(hasRequiredUnsupported)return unsupported;hasRequiredUnsupported=0x1;const {NotImplementedNative:_0x1caae8}=requireErrors();function _0x5b9579(_0x368da5){const _0x1ec485=_0x1539a=>{throw new _0x1caae8(_0x368da5,_0x1539a);};return new Proxy(function(){},{'get'(_0x6dbb4a,_0x557303){const _0x15d926=_0x303e;if(typeof _0x557303===_0x15d926(0x54e)||_0x557303==='then'||_0x557303===_0x15d926(0x1a5)||_0x557303===_0x15d926(0x759))return undefined;if(_0x557303===_0x15d926(0x781))return _0x368da5;return(..._0x5da236)=>_0x1ec485(_0x368da5+'.'+String(_0x557303));},'apply'(){_0x1ec485(_0x368da5);},'set'(){return!![];}});}return unsupported={'notImplemented':_0x5b9579},unsupported;}var http,hasRequiredHttp;function requireHttp(){const _0x3fdd75=_0x36292f;if(hasRequiredHttp)return http;hasRequiredHttp=0x1;function _0x3d3e5a(_0xdedb00,_0x2b514d={}){const _0x544e78=_0x303e,_0x13e34e=[];let _0x42a3de=![];_0xdedb00['endsWith']('/*')&&(_0x42a3de=!![],_0xdedb00=_0xdedb00['slice'](0x0,-0x2),_0x13e34e[_0x544e78(0x460)]('*'));let _0x577c28=_0xdedb00[_0x544e78(0x620)](/\/+$/,'')[_0x544e78(0x620)](/\[([^\]]*)\]/g,(_0x1bfb57,_0x2afb24)=>{const _0x490b44=_0x544e78,_0x5b33c1=_0x2afb24[_0x490b44(0x620)](/\/:(\w+)(?:=([^/\]\s]*))?/g,(_0x705597,_0x3ebd35)=>{const _0x4e7812=_0x490b44;return _0x13e34e['push'](_0x3ebd35),_0x4e7812(0x788);});return _0x490b44(0x22d)+_0x5b33c1+')?';})[_0x544e78(0x620)](/\/:(\w+)/g,(_0xff5f57,_0x28509f)=>{const _0x54da45=_0x544e78;return _0x13e34e[_0x54da45(0x460)](_0x28509f),_0x54da45(0x788);});if(_0x577c28==='')_0x577c28='/';return{'keys':_0x13e34e,'defaults':_0x2b514d||{},'wildcard':_0x42a3de,'regex':new RegExp('^'+_0x577c28+(_0x42a3de?_0x544e78(0x534):'')+_0x544e78(0x7d9))};}const _0x1c6b4b=require$$0$3,{PassThrough:_0xad9105}=require$$1;function _0x225c6c(_0x5374a1){const _0x4dbfa2=_0x303e,_0x3a7718=_0x5374a1[_0x4dbfa2(0x178)](':'),_0x59473d=_0x5374a1[_0x4dbfa2(0x6ea)](0x0,_0x3a7718)[_0x4dbfa2(0x620)](/^\[|\]$/g,'');return{'address':_0x59473d,'family':_0x59473d[_0x4dbfa2(0x459)](':')?_0x4dbfa2(0x20c):_0x4dbfa2(0x4dd),'port':Number(_0x5374a1[_0x4dbfa2(0x6ea)](_0x3a7718+0x1))};}class _0x26c7ff extends _0x1c6b4b[_0x3fdd75(0x26b)]{constructor(_0x47e257,_0x5a1094){const _0x18c130=_0x3fdd75;super(),this[_0x18c130(0x650)]=_0x47e257,this[_0x18c130(0x434)]=_0x225c6c(_0x5a1094),this['listening']=!![],this[_0x18c130(0x640)]=setInterval(()=>{},0x7fffffff);}get[_0x3fdd75(0x248)](){return this['_listening'];}set['listening'](_0x576d29){const _0x795d0a=_0x3fdd75;this[_0x795d0a(0x29a)]=_0x576d29;}[_0x3fdd75(0x6a0)](){const _0x5cb43b=_0x3fdd75;return this[_0x5cb43b(0x248)]?{...this[_0x5cb43b(0x434)]}:null;}[_0x3fdd75(0x5b3)](){const _0x54e810=_0x3fdd75;if(this['_keepAlive'])clearInterval(this['_keepAlive']);this[_0x54e810(0x640)]=null;}[_0x3fdd75(0x379)](_0x38ca0d){const _0x5343f9=_0x3fdd75;this[_0x5343f9(0x5b3)]();const _0x1a871b=this[_0x5343f9(0x650)][_0x5343f9(0x379)]();if(_0x38ca0d)_0x1a871b[_0x5343f9(0x179)](()=>_0x38ca0d(),_0x38ca0d);return this;}[_0x3fdd75(0x439)](){const _0x13e587=_0x3fdd75;return this[_0x13e587(0x640)]?.['ref'](),this;}[_0x3fdd75(0x35b)](){const _0x3b5d0f=_0x3fdd75;return this[_0x3b5d0f(0x640)]?.[_0x3b5d0f(0x35b)](),this;}}class _0xb80b39{constructor(_0x112aef){const _0x35041b=_0x3fdd75;this[_0x35041b(0x229)]=_0x112aef,this[_0x35041b(0x487)]=[],this[_0x35041b(0x71c)]={'cookieName':_0x35041b(0x4b2)};}get[_0x3fdd75(0x3e8)](){const _0x27a5ee=_0x3fdd75;return this[_0x27a5ee(0x487)][0x0]||null;}['_n'](_0x10358d,_0x3774c4=[]){const _0xb62862=_0x3fdd75;return this[_0xb62862(0x229)][_0xb62862(0x7a1)](_0xb62862(0x4d5),null,_0x10358d,_0x3774c4,!![]);}async[_0x3fdd75(0x547)](_0x3d292d,_0x33f115,_0x5f4dfe={},_0x5e7328={}){let _0x51042e=await this['_n']('handle',[_0x3d292d,_0x33f115,_0x5f4dfe,_0x5e7328]),_0x4e2efb=0x0;return _0x51042e=await this['_settle'](_0x51042e,_0x4e2efb),_0x51042e;}async['_settle'](_0x4bf4ae,_0x28a087){const _0x5b66c8=_0x3fdd75;while(_0x4bf4ae&&typeof _0x4bf4ae===_0x5b66c8(0x304)&&_0x4bf4ae[_0x5b66c8(0x2b3)]!==undefined){await new Promise(_0x25037e=>setTimeout(_0x25037e,_0x28a087<0x5?0x1:0x5)),_0x28a087++,_0x4bf4ae=await this['_n'](_0x5b66c8(0x7b6),[_0x4bf4ae['$pending']]);}if(_0x4bf4ae&&_0x4bf4ae[_0x5b66c8(0x79e)]&&typeof _0x4bf4ae[_0x5b66c8(0x79e)]===_0x5b66c8(0x304)&&_0x4bf4ae['body'][_0x5b66c8(0x7be)]!==undefined)_0x4bf4ae[_0x5b66c8(0x79e)]=this[_0x5b66c8(0x3bb)](_0x4bf4ae[_0x5b66c8(0x79e)][_0x5b66c8(0x7be)]);return _0x4bf4ae;}[_0x3fdd75(0x3bb)](_0x4a9c76){const _0x39efdc=_0x3fdd75,_0x2c0565=new _0xad9105();let _0x4d4fd0=![];const _0x56ac12=()=>{const _0x3a1ea0=_0x303e;if(_0x4d4fd0)return;_0x4d4fd0=!![],clearTimeout(_0x47c962),setImmediate(()=>this[_0x3a1ea0(0x229)][_0x3a1ea0(0x546)]&&this[_0x3a1ea0(0x229)][_0x3a1ea0(0x6eb)](_0x3a1ea0(0x4d5),null,_0x3a1ea0(0x2ad),[_0x4a9c76],!![]));};let _0x47c962=null;const _0x2f4518=()=>{const _0x225a0d=_0x303e;if(_0x4d4fd0)return;let _0x32fada;try{_0x32fada=this[_0x225a0d(0x229)][_0x225a0d(0x6eb)](_0x225a0d(0x4d5),null,_0x225a0d(0x376),[_0x4a9c76],!![]);}catch{_0x32fada={'chunks':[],'end':!![]};}for(const _0x24724a of _0x32fada[_0x225a0d(0x61a)])_0x2c0565[_0x225a0d(0x309)](_0x24724a);if(_0x32fada['end']){_0x4d4fd0=!![],_0x2c0565[_0x225a0d(0x7a0)]();return;}_0x47c962=setTimeout(_0x2f4518,_0x32fada['chunks'][_0x225a0d(0x1e1)]?0x0:0xa);};_0x2c0565['on']('close',_0x56ac12),_0x2f4518();if(!_0x4d4fd0)_0x2f4518();if(_0x4d4fd0)_0x2c0565[_0x39efdc(0x23c)]();else{if(!_0x47c962)_0x47c962=setTimeout(_0x2f4518,0x0);}return _0x2c0565;}[_0x3fdd75(0x181)](_0x13bff4,_0xf06ae7,_0x17eea2,_0x154977={}){const _0x3d2ea4=_0x3fdd75;return this['okdb'][_0x3d2ea4(0x6eb)](_0x3d2ea4(0x4d5),null,_0x3d2ea4(0x181),[_0x13bff4,_0xf06ae7,_0x17eea2,_0x154977,![]],!![]),this;}[_0x3fdd75(0x72b)](_0x49b20d,_0x111cfe,_0x1d62ef,_0x41d1d7={}){const _0x32b3c7=_0x3fdd75;return this[_0x32b3c7(0x229)][_0x32b3c7(0x6eb)](_0x32b3c7(0x4d5),null,_0x32b3c7(0x181),[_0x49b20d,_0x111cfe,_0x1d62ef,_0x41d1d7,!![]],!![]),this;}[_0x3fdd75(0x25d)](_0x39e32f,_0x48d1d9){const _0x485dc5=_0x3fdd75,_0x395738=async _0x5d29cc=>{const _0x43a481=_0x303e,_0xffe2bb={'status':undefined,'headers':[],'hasBody':![],'body':undefined},_0x171d95={'status'(_0x387691){const _0x3f95b3=_0x303e;return _0xffe2bb[_0x3f95b3(0x327)]=_0x387691,_0x171d95;},'setHeader'(_0x3454e4,_0x5c9986){const _0x9b1f9=_0x303e;_0xffe2bb[_0x9b1f9(0x6b9)][_0x9b1f9(0x460)]([_0x3454e4,_0x5c9986]);},'send'(_0x45e02b){const _0x437d07=_0x303e;_0xffe2bb[_0x437d07(0x675)]=!![],_0xffe2bb[_0x437d07(0x79e)]=_0x45e02b;}};_0x5d29cc[_0x43a481(0x418)]={'remoteAddress':_0x5d29cc[_0x43a481(0x67d)]??null};const _0x6e941a=await _0x48d1d9(_0x5d29cc,_0x171d95);return{'allowed':_0x6e941a!==![],..._0xffe2bb};};this[_0x485dc5(0x229)]['_call']('http',null,_0x485dc5(0x25d),[_0x4648cb=>!!_0x39e32f(_0x4648cb),_0x395738],!![]);}[_0x3fdd75(0x250)](_0x136ecc){const _0x32c4c3=_0x3fdd75,_0x35becd=async _0x41c243=>{const _0x4d473f=_0x303e,_0x18836f={'status':undefined,'headers':[],'hasBody':![],'body':undefined};let _0x565a7e=![];const _0x472a22={'status'(_0x40d9b5){return _0x18836f['status']=_0x40d9b5,_0x472a22;},'setHeader'(_0x19e2ff,_0x1dba33){const _0x206d90=_0x303e;_0x18836f['headers'][_0x206d90(0x460)]([_0x19e2ff,_0x1dba33]);},'send'(_0x21a8b9){const _0x4bfa86=_0x303e;_0x18836f['hasBody']=!![],_0x18836f[_0x4bfa86(0x79e)]=_0x21a8b9;}};return _0x41c243[_0x4d473f(0x418)]={'remoteAddress':_0x41c243['remoteAddress']??null},await _0x136ecc(_0x41c243,_0x472a22,async()=>{_0x565a7e=!![];}),{'allowed':_0x565a7e,..._0x18836f};};return this['okdb']['_call'](_0x32c4c3(0x4d5),null,_0x32c4c3(0x250),[_0x35becd],!![]),this;}get[_0x3fdd75(0x1a8)](){const _0xbc1160=_0x3fdd75;return this[_0xbc1160(0x229)][_0xbc1160(0x6eb)](_0xbc1160(0x4d5),null,_0xbc1160(0x12b),[],![]);}set[_0x3fdd75(0x1a8)](_0x18b4c6){const _0x362b18=_0x3fdd75;this[_0x362b18(0x229)][_0x362b18(0x6eb)](_0x362b18(0x4d5),null,_0x362b18(0x568),[Number(_0x18b4c6)],![]);}[_0x3fdd75(0x2e9)](_0x59d6cf,_0x306325,_0x121294={}){const _0x3ca4e9=_0x3fdd75,_0x5a40ca=new Map(),_0x4ff4f8=(_0x35a32c,_0x378c1c)=>this['okdb'][_0x3ca4e9(0x6eb)]('http',null,_0x35a32c,_0x378c1c,![]),_0x12d97d=_0x2db748=>{const _0x4eb4bb=_0x3ca4e9,{connId:_0x37160f}=_0x2db748;if(_0x2db748[_0x4eb4bb(0x228)]){const _0x479203=_0x5a40ca[_0x4eb4bb(0x1d2)](_0x37160f);_0x5a40ca[_0x4eb4bb(0x17d)](_0x37160f);if(typeof _0x479203===_0x4eb4bb(0x7e3))_0x479203();return;}const _0x2c22f4=(_0x33d684,_0x280b70,_0x47966a={})=>{const _0x4c17f9=_0x4eb4bb;try{_0x4ff4f8(_0x4c17f9(0x2a3),[_0x37160f,_0x33d684,_0x280b70,_0x47966a]);}catch{}},_0xf5d2b1=()=>{try{_0x4ff4f8('sseClose',[_0x37160f]);}catch{}},_0x36e138=(_0xf40488,_0x2dd7b5)=>_0x4ff4f8('sseSetHeader',[_0x37160f,String(_0xf40488),String(_0x2dd7b5)]),_0x2aa26f={'auth':{'open':_0x2db748[_0x4eb4bb(0x617)],'isAuthenticated':_0x2db748[_0x4eb4bb(0x6a6)]}},_0x1ddce3=_0x306325({'send':_0x2c22f4,'close':_0xf5d2b1,'params':_0x2db748['params']??{},'query':_0x2db748[_0x4eb4bb(0x311)]??{},'headers':_0x2db748['headers']??{},'context':_0x2aa26f,'setHeader':_0x36e138});_0x5a40ca[_0x4eb4bb(0x31f)](_0x37160f,_0x1ddce3);};return this[_0x3ca4e9(0x229)]['_call'](_0x3ca4e9(0x4d5),null,_0x3ca4e9(0x2e9),[_0x59d6cf,_0x12d97d,_0x121294],!![]),this;}get[_0x3fdd75(0x64a)](){const _0x58c2f1=_0x3fdd75;return this[_0x58c2f1(0x13e)]();}[_0x3fdd75(0x13e)](){const _0xd40e15=_0x3fdd75;return this['okdb'][_0xd40e15(0x6eb)](_0xd40e15(0x4d5),null,_0xd40e15(0x13e),[],![])[_0xd40e15(0x2fe)](_0x1c9d20=>({..._0x1c9d20,'matcher':_0x3d3e5a(_0x1c9d20[_0xd40e15(0x6dc)],_0x1c9d20['defaults'])}));}['validateRouteInput'](_0x2740ed,_0x54afa0){const _0x4029d5=_0x3fdd75;return this[_0x4029d5(0x229)][_0x4029d5(0x6eb)](_0x4029d5(0x4d5),null,_0x4029d5(0x572),[_0x2740ed,_0x54afa0],![]);}[_0x3fdd75(0x2c5)](_0x33cb20,_0x240beb={}){const _0x31ce2e=_0x3fdd75;if(typeof _0x240beb===_0x31ce2e(0x635)||Array[_0x31ce2e(0x486)](_0x240beb))_0x240beb={'host':_0x240beb};_0x240beb=_0x240beb??{};if((Number(_0x240beb[_0x31ce2e(0x792)])||0x0)>=0x1||_0x240beb[_0x31ce2e(0x16a)]!=null||_0x240beb[_0x31ce2e(0x774)]!=null){const _0x266a72=new Error(_0x31ce2e(0x5e7)+_0x31ce2e(0x3e6)+_0x31ce2e(0x34a)+_0x31ce2e(0x1a1));_0x266a72['code']='HTTP_CLUSTER_REMOVED';throw _0x266a72;}if(this['servers']['length'])throw new Error('HTTP\x20server\x20already\x20running');const _0x2f1a67=_0x240beb[_0x31ce2e(0x575)]==null?[undefined]:[][_0x31ce2e(0x354)](_0x240beb[_0x31ce2e(0x575)]);if(!_0x2f1a67['length']||_0x2f1a67[_0x31ce2e(0x7f4)](_0x478027=>_0x478027!==undefined&&(typeof _0x478027!==_0x31ce2e(0x635)||!_0x478027))){const _0x244b6b=new Error('http.listen:\x20host\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20a\x20non-empty\x20array\x20of\x20non-empty\x20strings');_0x244b6b[_0x31ce2e(0x6cb)]=_0x31ce2e(0x1c8);throw _0x244b6b;}const _0x37b798=require$$2[_0x31ce2e(0x711)]?{..._0x240beb,'reuseport':!![]}:_0x240beb,_0x1eb260=this[_0x31ce2e(0x229)][_0x31ce2e(0x6eb)](_0x31ce2e(0x4d5),null,_0x31ce2e(0x2c5),[_0x33cb20,_0x37b798],!![]),_0x322d25=_0x1eb260[_0x31ce2e(0x1ab)]??_0x33cb20,_0x3baaf5=_0x240beb[_0x31ce2e(0x575)]==null?':'+_0x322d25:_0x2f1a67['map'](_0x4f9928=>(_0x4f9928[_0x31ce2e(0x459)](':')?'['+_0x4f9928+']':_0x4f9928)+':'+_0x322d25)[_0x31ce2e(0x6ee)](',\x20');try{this[_0x31ce2e(0x229)][_0x31ce2e(0x4e4)][_0x31ce2e(0x1b8)](_0x3baaf5);if(!require(_0x31ce2e(0x4f3))['isWorker'])this[_0x31ce2e(0x229)][_0x31ce2e(0x4e4)]['register']({'kind':'standalone','listenAddr':_0x3baaf5});}catch{}this[_0x31ce2e(0x487)]=_0x1eb260['addrs'][_0x31ce2e(0x2fe)](_0x2145bb=>new _0x26c7ff(this,_0x2145bb));const _0x545613=this['servers'][0x0];return process[_0x31ce2e(0x3d2)](()=>this[_0x31ce2e(0x487)][_0x31ce2e(0x55b)](_0x4526b3=>_0x4526b3['emit']('listening'))),_0x545613;}async[_0x3fdd75(0x379)](_0x553e75={}){const _0x221dbb=_0x3fdd75,_0x45832d=this[_0x221dbb(0x487)];this['servers']=[];if(require$$2[_0x221dbb(0x711)]&&!process[_0x221dbb(0x73e)]&&_0x553e75[_0x221dbb(0x121)]==null)_0x553e75={..._0x553e75,'forceAfterMs':Infinity};if(_0x45832d[_0x221dbb(0x1e1)]){const _0x22c238=_0x553e75[_0x221dbb(0x121)]===Infinity?Infinity:Number[_0x221dbb(0x27f)](_0x553e75[_0x221dbb(0x121)])?Math[_0x221dbb(0x372)](0x0,_0x553e75[_0x221dbb(0x121)]):0x3e8,_0x38ca69=Date[_0x221dbb(0x1b5)]();while(this['okdb']['_call'](_0x221dbb(0x4d5),null,'pendingResponses',[],!![])>0x0&&Date[_0x221dbb(0x1b5)]()-_0x38ca69<_0x22c238)await new Promise(_0x15b273=>setTimeout(_0x15b273,0x5));_0x553e75={..._0x553e75,'forceAfterMs':_0x22c238===Infinity?0x3e8:Math[_0x221dbb(0x372)](0x0,_0x22c238-(Date[_0x221dbb(0x1b5)]()-_0x38ca69))};}await this['_n'](_0x221dbb(0x379),[_0x553e75]);for(const _0x1f5cac of _0x45832d){_0x1f5cac['_release'](),_0x1f5cac[_0x221dbb(0x248)]=![],_0x1f5cac['emit'](_0x221dbb(0x379));}}}return http={'OKDBHttp':_0xb80b39},http;}var fts,hasRequiredFts;function requireFts(){const _0x2699cd=_0x36292f;if(hasRequiredFts)return fts;hasRequiredFts=0x1;const _0x255c81=_0x36afe0=>(_0x36afe0&&typeof _0x36afe0===_0x2699cd(0x304)?_0x36afe0[_0x2699cd(0x6bb)]:_0x36afe0)??_0x2699cd(0x478);class _0x2a9932{constructor(_0x4e13a6){const _0x2e36fc=_0x2699cd;this[_0x2e36fc(0x229)]=_0x4e13a6;}['_n'](_0x397002,_0x3d5d81,_0x529ca1=![]){const _0x56a872=_0x2699cd;return this['okdb']['_call'](_0x56a872(0x366),null,_0x397002,_0x3d5d81,_0x529ca1);}[_0x2699cd(0x351)](_0x471708,_0x4e151a){const _0x13ed80=_0x2699cd;return this[_0x13ed80(0x229)][_0x13ed80(0x7a1)](_0x13ed80(0x366),null,_0x471708,_0x4e151a,!![]);}get[_0x2699cd(0x718)](){const _0x3d892a=this,_0x2292e9=_0x484264=>{const _0xf8274f=_0x303e,_0x19e5c3=_0x484264[_0xf8274f(0x4c7)](':'),_0x3108dc=_0x484264['slice'](0x0,_0x19e5c3),_0x41b265=_0x3d892a[_0xf8274f(0x229)][_0xf8274f(0x748)][_0xf8274f(0x1d2)](_0x3108dc);if(!_0x41b265)return undefined;const _0xef9200=_0x41b265[_0xf8274f(0x42b)][_0xf8274f(0x646)]()[_0xf8274f(0x678)](_0x18a35f=>_0x18a35f[_0xf8274f(0x5a1)]===_0xf8274f(0x528)+_0x484264);if(!_0xef9200)return undefined;return _0x41b265['processor'][_0xf8274f(0x590)](_0xef9200['id'],_0xef9200['cursorKey']);};return{'get':_0x2292e9,'has':_0x37236f=>!!_0x2292e9(_0x37236f)};}get['_pendingOps'](){return[];}[_0x2699cd(0x53a)](){const _0x5a9329=_0x2699cd,{RawDb:_0x2a5f74}=requireRawdb();return new _0x2a5f74(this['okdb'][_0x5a9329(0x3f1)],_0x5a9329(0x6be));}[_0x2699cd(0x3a9)](_0x2eff43,_0x22ae13,_0x1b74d5){const _0x4835c1=_0x2699cd;return this['_n'](_0x4835c1(0x3a9),[_0x2eff43,_0x22ae13,_0x255c81(_0x1b74d5)]);}[_0x2699cd(0x327)](_0x13ba99,_0x3d62da,_0x20b4fe){return this['_n']('status',[_0x13ba99,_0x3d62da,_0x255c81(_0x20b4fe)]);}['list'](_0x304abf,_0x4a559d){const _0x4c4094=_0x2699cd;return this['_n'](_0x4c4094(0x646),[_0x304abf,_0x255c81(_0x4a559d)]);}async[_0x2699cd(0x80f)](_0x44086d,_0xcff46e,_0x221982,_0x4d402e,_0x566d6b){const _0x1c01b3=_0x2699cd,_0x32cf28=(_0x9b71ad,_0x32dfee)=>this[_0x1c01b3(0x229)]['_callMacro']('fts',null,_0x9b71ad,_0x32dfee,!![],![]),_0x3b9a31=Date[_0x1c01b3(0x1b5)]()+0x1d4c0;let _0x57fb28=_0x44086d,_0x2b5137=_0xcff46e;for(;;){try{return await _0x32cf28(_0x57fb28,_0x2b5137);}catch(_0x25ab85){if(_0x25ab85['code']===_0x1c01b3(0x54d)){_0x57fb28=_0x1c01b3(0x5b2),_0x2b5137=[_0x221982,_0x4d402e,_0x255c81(_0x566d6b)];if(_0x25ab85['details']&&_0x25ab85['details'][_0x1c01b3(0x29d)])await new Promise(_0x465a72=>setTimeout(_0x465a72,0x2));continue;}if(_0x25ab85['code']!==_0x1c01b3(0x31c)||Date['now']()>=_0x3b9a31)throw _0x25ab85;}await new Promise(_0x44b788=>setTimeout(_0x44b788,0x5)),_0x57fb28=_0x1c01b3(0x464),_0x2b5137=[_0x221982,_0x4d402e,!![],_0x255c81(_0x566d6b)];}}async[_0x2699cd(0x2f3)](_0x21db6a,_0x594140,_0x3bc501,_0xb956c5,_0x4b0154){const _0x52ec92=_0x2699cd;return this['_build'](_0x52ec92(0x2f3),[_0x21db6a,_0x594140,_0x3bc501,_0xb956c5,_0x255c81(_0x4b0154)],_0x21db6a,_0x594140,_0x4b0154);}async[_0x2699cd(0x51f)](_0xe6caa,_0x3d09e4,_0x274ee8){const _0x521315=_0x2699cd;return this[_0x521315(0x351)]('drop',[_0xe6caa,_0x3d09e4,_0x255c81(_0x274ee8)]);}async[_0x2699cd(0x1f5)](_0x595bbf,_0x58e6dd,_0x185320,_0x155a9f){const _0x4e3267=_0x2699cd;return this[_0x4e3267(0x80f)](_0x4e3267(0x1f5),[_0x595bbf,_0x58e6dd,_0x185320,_0x255c81(_0x155a9f)],_0x595bbf,_0x58e6dd,_0x155a9f);}async[_0x2699cd(0x464)](_0x1f71f1,_0x1551e8,_0x5cc3b0,_0x1789b1){const _0x276604=_0x2699cd;return this[_0x276604(0x80f)](_0x276604(0x464),[_0x1f71f1,_0x1551e8,_0x5cc3b0,_0x255c81(_0x1789b1)],_0x1f71f1,_0x1551e8,_0x1789b1);}async[_0x2699cd(0x67e)](_0x5665aa,_0x16ae17,_0x118887,_0x2eca7c=0x1d4c0){const _0x43fd79=_0x2699cd,_0x5f1042=Date[_0x43fd79(0x1b5)]()+_0x2eca7c;for(;;){try{return await this[_0x43fd79(0x351)](_0x5665aa,[..._0x16ae17,0x1]);}catch(_0xae7fd3){if(_0xae7fd3[_0x43fd79(0x6cb)]!==_0x118887||Date['now']()>=_0x5f1042)throw _0xae7fd3;}await new Promise(_0x486012=>setTimeout(_0x486012,0x2));}}async[_0x2699cd(0x420)](_0x5b6553,_0x29c53d,_0x40053f){const _0x5c38fd=_0x2699cd;return this[_0x5c38fd(0x67e)](_0x5c38fd(0x420),[_0x5b6553,null,_0x255c81(_0x40053f)],_0x5c38fd(0x409));}async[_0x2699cd(0x78d)](_0x2e555b,_0x2b1e8c){const _0x523725=_0x2699cd;return this['_waitNative'](_0x523725(0x78d),[_0x2e555b,_0x255c81(_0x2b1e8c)],_0x523725(0x7ea));}async['compact'](_0x328625,_0x26d73a){const _0x1df3f8=_0x2699cd;return this[_0x1df3f8(0x351)](_0x1df3f8(0x1d6),[_0x328625,_0x255c81(_0x26d73a)]);}async[_0x2699cd(0x4df)](_0x983415={}){const _0x2aee6b=_0x2699cd;return this['_nm'](_0x2aee6b(0x4df),[_0x983415]);}async[_0x2699cd(0x3c6)](_0x49aa8e){const _0x2e7541=_0x2699cd;return this[_0x2e7541(0x351)](_0x2e7541(0x3c6),[_0x255c81(_0x49aa8e)]);}[_0x2699cd(0x23a)](_0xc8dff0){const _0x4c7cc1=_0x2699cd;return this['_n'](_0x4c7cc1(0x23a),[_0x255c81(_0xc8dff0)]);}[_0x2699cd(0x668)](_0x2490cd,_0x2b15ab,_0x12c17e,_0x1cab69,_0x1448b){const _0x31ee55=_0x2699cd;return this['_n'](_0x31ee55(0x668),[_0x2490cd,_0x2b15ab,_0x12c17e,_0x1cab69||{},_0x255c81(_0x1448b)]);}[_0x2699cd(0x662)](_0x4a6b34,_0x481cc5,_0x5a4b16,_0x52d159,_0x46386b,_0x50368a){return this['_n']('searchDocs',[_0x4a6b34,_0x481cc5,_0x5a4b16,_0x52d159||{},_0x255c81(_0x46386b),_0x50368a]);}[_0x2699cd(0x447)](_0x2d0433,_0x4976cd,_0x413d73,_0x35a157,_0x30f3d0){const _0x3f5d11=_0x2699cd;return this['_n'](_0x3f5d11(0x3cd),[_0x2d0433,_0x4976cd,_0x413d73,_0x35a157||{},_0x255c81(_0x30f3d0)]);}[_0x2699cd(0x77d)](){const _0x3cc22d=_0x2699cd;return this['_n'](_0x3cc22d(0x77d),[]);}async[_0x2699cd(0x6ff)](){return this['_nm']('drain',[]);}}return fts={'OKDBFts':_0x2a9932},fts;}var embeddings,hasRequiredEmbeddings;function requireEmbeddings(){const _0x19245e=_0x36292f;if(hasRequiredEmbeddings)return embeddings;hasRequiredEmbeddings=0x1;const {OKDBError:_0xb60d1c,invalidArgument:_0x1460aa}=requireErrors();requireBridge();const _0x25300d=Object[_0x19245e(0x191)]({'EMBEDDER':_0x19245e(0x53e),'INDEXER':'indexer','SEARCH':_0x19245e(0x35c),'WORKER':'embed-worker'}),_0x5d1e4a=_0x6eece1=>typeof _0x6eece1===_0x19245e(0x635)||_0x6eece1==null?_0x6eece1:Array[_0x19245e(0x17b)](_0x6eece1);class _0x50e95a{constructor(_0x2f58ea){const _0x361562=_0x19245e;this['okdb']=_0x2f58ea,this[_0x361562(0x4f2)]=new Map(),this[_0x361562(0x1f6)]=new Map(),this[_0x361562(0x47e)]=new Map();}['_n'](_0x1c3de3,_0x41517c=[],_0x2cf2aa=!![]){const _0x6f9df7=_0x19245e;return this[_0x6f9df7(0x229)]['_call'](_0x6f9df7(0x2f0),null,_0x1c3de3,_0x41517c,_0x2cf2aa);}[_0x19245e(0x351)](_0x159192,_0x3d3689=[]){const _0x4b4ef4=_0x19245e;return this[_0x4b4ef4(0x229)]['_callMacro'](_0x4b4ef4(0x2f0),null,_0x159192,_0x3d3689,!![]);}[_0x19245e(0x213)](_0x1de170){const _0x38b232=_0x19245e;return _0x1de170?this[_0x38b232(0x229)][_0x38b232(0x262)][_0x38b232(0x213)](_0x1de170):null;}[_0x19245e(0x6b2)](_0x5d4810,_0x467b49,_0x5de441={}){const _0x5d734a=_0x19245e;if(typeof _0x467b49!==_0x5d734a(0x7e3))throw new _0xb60d1c(_0x5d734a(0x532),'BAD_PARAM',{'name':_0x5d4810});this[_0x5d734a(0x4f2)]['set'](_0x5d4810,_0x467b49),this['_jsSchemas']['set'](_0x5d4810,_0x5de441);const _0x360568=this['okdb'],_0x3807de=_0x18f218=>_0x467b49(_0x18f218,_0x360568);_0x3807de[_0x5d734a(0x122)]=_0x360568,this['_n'](_0x5d734a(0x6b2),[_0x5d4810,_0x3807de,_0x5de441??{}],![]);}[_0x19245e(0x51c)](_0x46fcd0){const _0x5c0050=_0x19245e,_0x550277=this[_0x5c0050(0x4f2)][_0x5c0050(0x1d2)](_0x46fcd0);if(_0x550277)return _0x550277;if(!this['_n'](_0x5c0050(0x7cf),[_0x46fcd0],![]))return null;const _0x1af586=this;return(_0x2e297f={})=>{const _0x2de226=_0x5c0050,_0x1998ee=_0x1af586['_n'](_0x2de226(0x553),[_0x46fcd0,_0x2e297f],![]),_0x24d8fb=_0x1af586['_n'](_0x2de226(0x4cb),[_0x1998ee],![]),_0x30dd07=(_0x3f7d6e,_0x24039d)=>_0x1af586['_n'](_0x2de226(0x50e),[_0x1998ee,_0x3f7d6e,_0x24039d],![]),_0x44c3e0={'embed':async _0x9e62b5=>Float32Array['from'](_0x30dd07(_0x2de226(0x627),_0x9e62b5)),'start':async()=>_0x30dd07('start'),'stop':async()=>{_0x30dd07('stop'),_0x30dd07('free');}};if(_0x24d8fb)_0x44c3e0['embedBatch']=async _0x4dba14=>_0x30dd07(_0x2de226(0x2cb),_0x4dba14)['map'](_0xc7c45a=>Float32Array[_0x2de226(0x17b)](_0xc7c45a));return _0x44c3e0;};}[_0x19245e(0x456)](_0x276960){const _0x153d48=_0x19245e;return this[_0x153d48(0x1f6)][_0x153d48(0x1d2)](_0x276960)??this['_n'](_0x153d48(0x456),[_0x276960],![])??undefined;}[_0x19245e(0x2d7)](_0x1124c3,_0x4c0fb6,_0xbab3f2={}){const _0x30ec4c=_0x19245e;if(typeof _0x4c0fb6!==_0x30ec4c(0x7e3))throw new _0xb60d1c('Algorithm\x20factory\x20must\x20be\x20a\x20function','BAD_PARAM',{'name':_0x1124c3});this['_n'](_0x30ec4c(0x2d7),[_0x1124c3,(_0x496190,_0x40b2fa)=>_0x4c0fb6(_0x496190,_0x40b2fa),_0xbab3f2??{}],![]);}[_0x19245e(0x36d)](){const _0xd04c8e=_0x19245e;return this['_n'](_0xd04c8e(0x36d),[],![]);}[_0x19245e(0x365)](_0x1e5bc7,_0x35b9c3){const _0x2457f0=_0x19245e;if(typeof _0x35b9c3!==_0x2457f0(0x7e3))throw new _0xb60d1c('preparer\x20must\x20be\x20a\x20function',_0x2457f0(0x78a),{'name':_0x1e5bc7});this['_n'](_0x2457f0(0x365),[_0x1e5bc7,_0x35b9c3]);}['registerChunkStrategy'](_0x125c07,_0x802c2e){const _0x31a7f9=_0x19245e;if(typeof _0x802c2e!==_0x31a7f9(0x7e3))throw new _0xb60d1c(_0x31a7f9(0x3cb),_0x31a7f9(0x78a),{'name':_0x125c07});this['_n'](_0x31a7f9(0x693),[_0x125c07,_0x802c2e]);}[_0x19245e(0x7e0)](_0x5697b4){const _0x30b9c8=_0x19245e;if(_0x5697b4==null)return this['_n'](_0x30b9c8(0x7e0),[null],![]);if(typeof _0x5697b4!==_0x30b9c8(0x7e3))throw new _0xb60d1c(_0x30b9c8(0x69e),_0x30b9c8(0x78a));const _0x4589ef=this['okdb'];this['_n'](_0x30b9c8(0x7e0),[_0x5d9dff=>_0x5697b4(_0x5d9dff,_0x4589ef)],![]);}async['createEmbedder'](_0x5a2280,_0x33897c={},_0x9e311d={},_0x345532=null){const _0x3fb743=_0x19245e;return this['_wrap'](await this[_0x3fb743(0x351)](_0x3fb743(0x5a8),[_0x5a2280,_0x33897c,_0x9e311d,_0x345532]));}async[_0x19245e(0x610)](_0x523cb1,_0x247ac2={},_0x42e55f={}){const _0x23d3bf=_0x19245e;return this[_0x23d3bf(0x213)](await this['_nm']('createIndexer',[_0x523cb1,_0x247ac2,_0x42e55f]));}async[_0x19245e(0x1f1)](_0x4298f7,_0x199768={},_0x549a6c={}){const _0x22456f=_0x19245e;return this[_0x22456f(0x213)](await this['_nm']('createSearch',[_0x4298f7,_0x199768,_0x549a6c]));}async[_0x19245e(0x48c)](_0xeb50b3,_0x171b9e={},_0x16223c={}){const _0x3df0d2=_0x19245e;return this[_0x3df0d2(0x213)](await this[_0x3df0d2(0x351)](_0x3df0d2(0x48c),[_0xeb50b3,_0x171b9e,_0x16223c]));}async[_0x19245e(0x4d7)](_0x1e90a4,_0xfd02a9={},_0x3cc82a={}){const _0x53c143=_0x19245e,_0x29079e=await this[_0x53c143(0x351)](_0x53c143(0x4d7),[_0x1e90a4,_0xfd02a9,_0x3cc82a]);return{'embedder':this[_0x53c143(0x213)](_0x29079e[_0x53c143(0x53e)]),'indexer':this[_0x53c143(0x213)](_0x29079e['indexer']),'worker':this[_0x53c143(0x213)](_0x29079e['worker']),'search':this[_0x53c143(0x213)](_0x29079e[_0x53c143(0x668)]),'api':this['_makePipelineApi'](_0x29079e[_0x53c143(0x5d8)],_0x29079e['embedder']['name'],_0x29079e[_0x53c143(0x2eb)]?_0x29079e['worker'][_0x53c143(0x6bb)]:_0x29079e[_0x53c143(0x5d8)]+_0x53c143(0x20a))};}['_running'](_0x55b62c,_0x235a80){const _0xbec175=_0x19245e;return this['okdb'][_0xbec175(0x262)][_0xbec175(0x710)](_0x55b62c,_0x235a80)?.['api']??null;}['embedder'](_0x42c235){const _0x413ec0=_0x19245e,_0x58771b=this[_0x413ec0(0x4b7)](_0x25300d[_0x413ec0(0x272)],_0x42c235);if(!_0x58771b)return null;const _0x56c92a=this,_0x50f4fd=_0xf7dedf=>Array[_0x413ec0(0x486)](_0xf7dedf)&&Array[_0x413ec0(0x486)](_0xf7dedf[0x0])?_0xf7dedf['map'](_0x335597=>Float32Array[_0x413ec0(0x17b)](_0x335597)):Float32Array['from'](_0xf7dedf);return new Proxy(_0x58771b,{'get'(_0x470165,_0x3083ac){const _0xa789cc=_0x413ec0;if(_0x3083ac===_0xa789cc(0x61e))return _0x56c92a['okdb']['_call'](_0xa789cc(0x262),null,'apiCall',[_0x25300d[_0xa789cc(0x272)],_0x42c235,_0xa789cc(0x61e),[]],![])['value'];if(_0x3083ac===_0xa789cc(0x627))return async _0x32c8b4=>_0x50f4fd(await _0x58771b[_0xa789cc(0x627)](_0x32c8b4));if(_0x3083ac==='embedBatch')return async _0x335565=>(await _0x58771b['embedBatch'](_0x335565))['map'](_0x45414d=>Float32Array['from'](_0x45414d));return _0x470165[_0x3083ac];}});}[_0x19245e(0x597)](_0x4d014d){const _0x1e4134=_0x19245e;return this[_0x1e4134(0x4b7)](_0x25300d['INDEXER'],_0x4d014d);}[_0x19245e(0x2eb)](_0x356386){const _0x543e27=_0x19245e;return this[_0x543e27(0x4b7)](_0x25300d[_0x543e27(0x7a2)],_0x356386);}[_0x19245e(0x668)](_0x53bbb7){const _0x538a28=_0x19245e,_0x19a863=this['_running'](_0x25300d[_0x538a28(0x57a)],_0x53bbb7);if(_0x19a863)return _0x19a863;return this[_0x538a28(0x4ff)](_0x53bbb7);}[_0x19245e(0x4ff)](_0x364b93){const _0x123cea=_0x19245e,_0x1e7e21=this;return{'search':(_0x3a4ace,_0x3b484d={})=>_0x1e7e21[_0x123cea(0x229)][_0x123cea(0x7a1)](_0x123cea(0x2f0),null,'search',[_0x364b93,_0x5d1e4a(_0x3a4ace),_0x3b484d],![]),'stats':async()=>_0x1e7e21['_n'](_0x123cea(0x225),[_0x364b93],![]),'count':()=>_0x1e7e21['_n'](_0x123cea(0x14b),[_0x364b93,_0x123cea(0x1cd)],![])};}async[_0x19245e(0x662)](_0x1aaf0f,_0x2ca4f6,_0x4de132={}){const _0x358866=_0x19245e,{limit:limit=0xa,..._0x384eb3}=_0x4de132;return this['_nm'](_0x358866(0x662),[_0x1aaf0f,_0x5d1e4a(_0x2ca4f6),{..._0x384eb3,'limit':limit}]);}[_0x19245e(0x3b5)](_0x36a1c1){const _0x1ac8b7=_0x19245e;return this['_n'](_0x1ac8b7(0x3b5),[_0x36a1c1],![]);}['_durableEngineDoc'](_0x3e8524,_0x1686c8){const _0x25c6b3=_0x19245e;return this['_n'](_0x25c6b3(0x43e),[_0x3e8524,_0x1686c8],![]);}[_0x19245e(0x53c)](_0x56edbb){const _0x2f921f=_0x19245e;return this['_n'](_0x2f921f(0x2d0),[_0x56edbb],![]);}async[_0x19245e(0x146)](_0x245f40){const _0x56ab65=_0x19245e;return this['_n'](_0x56ab65(0x3d5),[_0x245f40],![]);}async[_0x19245e(0x585)](_0x3a32b7,_0x53fba3={}){return this['_n']('durableDocs',[_0x3a32b7,_0x53fba3],![]);}async[_0x19245e(0x2ff)](_0xf60978,_0xdf1e15){const _0x28c589=_0x19245e;return this['_n'](_0x28c589(0x60c),[_0xf60978,_0xdf1e15],![]);}async['describeChunk'](_0x2833e7,_0x571bee,_0x24bc20,_0x5f2af1){const _0x313bc9=_0x19245e;if(_0x2833e7!=null&&typeof _0x2833e7[_0x313bc9(0x459)]!=='function')throw _0x1460aa(_0x313bc9(0x6bb),_0x313bc9(0x3be),_0x2833e7);if(!_0x2833e7||!_0x24bc20)return null;return this[_0x313bc9(0x229)][_0x313bc9(0x7a1)](_0x313bc9(0x2f0),null,'describeChunk',[_0x2833e7,_0x571bee,_0x24bc20,_0x5f2af1??null],![]);}async['durableMarkDone'](_0x207ff5,_0x16d22b,_0x2664b1={}){const _0x98e649=_0x19245e,_0xddddad={..._0x2664b1};if(_0xddddad['vector'])_0xddddad[_0x98e649(0x23d)]=Array[_0x98e649(0x17b)](_0xddddad[_0x98e649(0x23d)]);return this['_n']('durableMarkDone',[_0x207ff5,_0x16d22b,_0xddddad]);}async[_0x19245e(0x27a)](_0x56d566,_0x35f5ae,_0x150301,_0x4cc114={}){const _0xc2992e=_0x19245e;return this['_n'](_0xc2992e(0x27a),[_0x56d566,_0x35f5ae,_0x150301,_0x4cc114]);}async[_0x19245e(0x7e5)](_0x3382dd,_0x149e26){const _0x40b0ed=_0x19245e;return this['_n'](_0x40b0ed(0x7e5),[_0x3382dd,_0x149e26]);}async[_0x19245e(0x554)](_0x361e21,_0x3264c9){const _0x2f9970=_0x19245e;return this['_n'](_0x2f9970(0x554),[_0x361e21,_0x3264c9]);}async[_0x19245e(0x152)](_0x30af70,_0x44cd7a={}){const _0x31b331=_0x19245e;return this['_n'](_0x31b331(0x152),[_0x30af70,_0x44cd7a]);}async[_0x19245e(0x238)](_0x1901ad){return this['_nm']('durableRebuild',[_0x1901ad]);}async[_0x19245e(0x766)](_0x37f567){const _0x20fa05=_0x19245e;return this['_n'](_0x20fa05(0x577),[_0x37f567],![]);}['vectorStoreStats'](_0x4bc25d){const _0x51f1a5=_0x19245e;return this['_n'](_0x51f1a5(0x655),[_0x4bc25d],![]);}[_0x19245e(0x4fa)](){const _0x27b387=_0x19245e;return this['_n'](_0x27b387(0x4fa),[],![]);}[_0x19245e(0x45a)](_0x122f8d,_0x4b3d1a){const _0x3c3206=_0x19245e,_0x342191=this['_n']('getVector',[_0x122f8d,_0x4b3d1a],![]);return _0x342191==null?null:Float32Array[_0x3c3206(0x17b)](_0x342191);}['resolveModelDims'](_0x2ff21e,_0x3867da){const _0x30a46c=_0x19245e;return this['_n'](_0x30a46c(0x45d),[_0x2ff21e,_0x3867da??null],![])??undefined;}async[_0x19245e(0x667)](_0xe52244,_0x3818ac,_0x2b8654,_0x505101=''){const _0x210be3=_0x19245e;return this['_n'](_0x210be3(0x667),[_0xe52244,_0x3818ac,_0x2b8654,_0x505101]);}[_0x19245e(0x215)](_0x12895a=null){const _0x5a9b6f=_0x19245e;return this['_n'](_0x5a9b6f(0x215),[_0x12895a],![]);}[_0x19245e(0x3b6)](){const _0x175dff=_0x19245e;return this['_n'](_0x175dff(0x3b6),[],![]);}async[_0x19245e(0x332)](_0x4b250a,_0x39e9da){const _0x39c614=_0x19245e;return this['_n'](_0x39c614(0x426),[_0x4b250a,_0x39e9da],![]),this[_0x39c614(0x229)]['_ensureEnv']('~'+_0x4b250a+_0x39c614(0x46b)+_0x39e9da);}async[_0x19245e(0x44d)](_0x1cf687,_0x354411){const _0x1b7f9d=_0x19245e;return await this[_0x1b7f9d(0x332)](_0x1cf687,_0x354411),{'adapter':_0x57002e=>this[_0x1b7f9d(0x76f)](_0x1cf687,_0x354411,_0x57002e)};}[_0x19245e(0x76f)](_0x4d047d,_0x478fce,_0x30a13d){const _0x195191=this;return{async 'put'(_0x38deac,_0x4e2b38){const _0x1469df=_0x303e;return _0x195191['_n']('vecPut',[_0x4d047d,_0x478fce,_0x30a13d,_0x38deac,Array[_0x1469df(0x17b)](_0x4e2b38)]);},async 'remove'(_0x19235b){const _0x424e71=_0x303e;return _0x195191['_n'](_0x424e71(0x63c),[_0x4d047d,_0x478fce,_0x30a13d,_0x19235b]);}};}get[_0x19245e(0x2ac)](){const _0x3648f2=_0x19245e,_0x50732c=this,_0x113ffc=()=>_0x50732c['_n']('localViewNames',[],![]),_0x2e4c96=_0x5d7d22=>{const _0x5580f3=_0x303e,_0x282c16=_0x2002fb=>_0x50732c['_n'](_0x5580f3(0x14b),[_0x5d7d22,_0x2002fb],![]);return{'name':_0x5d7d22,'_evict':async()=>_0x282c16(_0x5580f3(0x5a7)),'evict':async()=>_0x282c16(_0x5580f3(0x5a7)),'snapshot':async()=>_0x282c16(_0x5580f3(0x6f9)),'_snapshot':async()=>_0x282c16(_0x5580f3(0x6f9)),'rebuild':async()=>_0x282c16('rebuild'),'stats':()=>_0x282c16('stats'),get 'count'(){return _0x282c16('count');},get 'loaded'(){const _0x478b0b=_0x5580f3;return _0x282c16(_0x478b0b(0x326));}};};return{get 'size'(){const _0x533262=_0x303e;return _0x113ffc()[_0x533262(0x1e1)];},'has':_0x387ec0=>_0x113ffc()[_0x3648f2(0x459)](_0x387ec0),'get':_0x275b6e=>_0x113ffc()[_0x3648f2(0x459)](_0x275b6e)?_0x2e4c96(_0x275b6e):undefined,'keys':()=>_0x113ffc()[Symbol[_0x3648f2(0x21f)]](),'values':()=>_0x113ffc()[_0x3648f2(0x2fe)](_0x2e4c96)[Symbol['iterator']](),[Symbol['iterator']]:()=>_0x113ffc()['map'](_0x219ae8=>[_0x219ae8,_0x2e4c96(_0x219ae8)])[Symbol[_0x3648f2(0x21f)]]()};}async[_0x19245e(0x73d)](){}async[_0x19245e(0x209)](){this['_n']('stop',[]);}['_makePipelineApi'](_0x1a2cb4,_0x246fed,_0x335f01){const _0x15c73f=_0x19245e;return{'search':(_0x457c54,_0xad98d4={})=>{const _0x1362bd=_0x303e,_0xe3fb50=this[_0x1362bd(0x668)](_0x1a2cb4);if(!_0xe3fb50)throw new Error(_0x1362bd(0x42f)+_0x1a2cb4+'\x22');return _0xe3fb50[_0x1362bd(0x668)](_0x457c54,_0xad98d4);},'searchDocs':(_0x5b73eb,_0x47faf8={})=>this[_0x15c73f(0x662)](_0x1a2cb4,_0x5b73eb,_0x47faf8),'flush':_0x3acf07=>{const _0x42cdf1=_0x15c73f,_0x518354=this[_0x42cdf1(0x597)](_0x1a2cb4);if(!_0x518354)throw new Error(_0x42cdf1(0x661)+_0x1a2cb4+'\x22');return _0x518354[_0x42cdf1(0x78d)](_0x3acf07);},'stats':async()=>({'embedder':await this['embedder'](_0x246fed)?.[_0x15c73f(0x69d)]?.(),'indexer':await this[_0x15c73f(0x597)](_0x1a2cb4)?.['stats']?.(),'worker':await this[_0x15c73f(0x2eb)](_0x335f01)?.[_0x15c73f(0x5d6)]?.(),'search':await this[_0x15c73f(0x668)](_0x1a2cb4)?.[_0x15c73f(0x5d6)]?.()})};}}return embeddings={'OKDBEmbeddings':_0x50e95a,'ENGINE_TYPES':_0x25300d},embeddings;}var auth,hasRequiredAuth;function requireAuth(){const _0x5794fb=_0x36292f;if(hasRequiredAuth)return auth;hasRequiredAuth=0x1;const {invalidArgument:_0x1ca129}=requireErrors();class _0x57f1eb{constructor(_0x58d20d){this['okdb']=_0x58d20d;}['_n'](_0x4bdd05,_0x5c5834=[],_0x17f948=![]){const _0x39c10a=_0x303e;return this[_0x39c10a(0x229)][_0x39c10a(0x6eb)](_0x39c10a(0x71c),null,_0x4bdd05,_0x5c5834,_0x17f948);}[_0x5794fb(0x351)](_0x244106,_0x45b99b=[]){const _0x416cde=_0x5794fb;return this['okdb'][_0x416cde(0x7a1)](_0x416cde(0x71c),null,_0x244106,_0x45b99b,![]);}get['mode'](){const _0x58c45f=_0x5794fb;return this['_n'](_0x58c45f(0x259));}get[_0x5794fb(0x380)](){const _0x1b4c1c=_0x5794fb;return this['_n'](_0x1b4c1c(0x380));}get[_0x5794fb(0x13a)](){const _0x1f4b7f=_0x5794fb;return this[_0x1f4b7f(0x229)][_0x1f4b7f(0x204)][_0x1f4b7f(0x71c)]?.[_0x1f4b7f(0x7e6)]||{};}[_0x5794fb(0x555)](_0x112126){return this['_n']('isOAuthEmailAllowed',[_0x112126??null]);}[_0x5794fb(0x6c7)](_0x587904){return this['_n']('isOpenForIp',[_0x587904??null]);}[_0x5794fb(0x749)](_0x57ef9f){const _0x22d4ad=_0x5794fb;return this['_n'](_0x22d4ad(0x266),[_0x57ef9f??null]);}[_0x5794fb(0x6a5)](){const _0x420f68=_0x5794fb;return this['_n'](_0x420f68(0x4c2));}[_0x5794fb(0x6cd)](){const _0x1e52a0=_0x5794fb;return this['_n'](_0x1e52a0(0x6cd));}['getAuthOptions'](){return this['_n']('getAuthOptions');}[_0x5794fb(0x494)](_0x36500e){const _0x295f7d=_0x5794fb;return this['_n'](_0x295f7d(0x494),[_0x36500e]);}[_0x5794fb(0x359)](_0x2b4021){const _0x4e2f30=_0x5794fb;return this['_n'](_0x4e2f30(0x359),[_0x2b4021]);}[_0x5794fb(0x3d7)](_0x5ddd3c){const _0x6292dc=_0x5794fb;if(_0x5ddd3c!=null&&typeof _0x5ddd3c!==_0x6292dc(0x635))throw _0x1ca129(_0x6292dc(0x4b9),'a\x20string',_0x5ddd3c);return this['_n'](_0x6292dc(0x3d7),[_0x5ddd3c??null]);}async['_ensureTokensType'](){const _0x4a5e5b=_0x5794fb;return this['_n'](_0x4a5e5b(0x3ac),[],!![]);}async[_0x5794fb(0x6d9)](_0x35bb38){const _0x2753c2=_0x5794fb;return this['_n'](_0x2753c2(0x70e),[_0x35bb38]);}async[_0x5794fb(0x382)](_0x5be501){const _0xdbab8d=_0x5794fb;return this['_n'](_0xdbab8d(0x10b),[_0x5be501]);}async[_0x5794fb(0x5a2)](_0xaa1e6c){const _0x2da47e=_0x5794fb;return this['_n'](_0x2da47e(0x68b),[_0xaa1e6c]);}async[_0x5794fb(0x367)](_0x3abbe5){const _0x513944=_0x5794fb,_0x3e8264=_0x3abbe5?.['headers']||{};return this['_n']('authenticateRequest',[{'remoteAddress':_0x3abbe5[_0x513944(0x418)]?.[_0x513944(0x67d)]??null,'internal':_0x3abbe5?.[_0x513944(0x126)]?.[_0x513944(0x489)]===!![],'authorization':_0x3e8264[_0x513944(0x7f7)]??null,'cookies':_0x3abbe5?.[_0x513944(0x400)]??{}}]);}async[_0x5794fb(0x47d)](_0x51dec1,_0x1a0dc5){const _0x710677=_0x5794fb;return this[_0x710677(0x351)](_0x710677(0x47d),[_0x51dec1??null,_0x1a0dc5??null]);}async[_0x5794fb(0x369)](_0x594775,_0x42a28c,_0x260ddb){const _0xa93c8=_0x5794fb;return this[_0xa93c8(0x351)](_0xa93c8(0x369),[_0x594775??null,_0x42a28c??null,_0x260ddb??null]);}[_0x5794fb(0x6e6)](){const _0x3a88f5=_0x5794fb;return this['_n'](_0x3a88f5(0x6e6));}[_0x5794fb(0x2a4)](){const _0x54fdf1=_0x5794fb;return this['_n'](_0x54fdf1(0x2a4));}[_0x5794fb(0x621)](_0x21c9e0={},_0x51f0d5=0x927c0){const _0x564d33=_0x5794fb;return this['_n'](_0x564d33(0x621),[_0x21c9e0,_0x51f0d5]);}[_0x5794fb(0x2bf)](_0x1211e3){const _0x4004b0=_0x5794fb;return this['_n'](_0x4004b0(0x2bf),[_0x1211e3]);}async[_0x5794fb(0x746)](_0x4d3bb0,_0x3d4c17={}){const _0x574fa2=_0x5794fb;return this[_0x574fa2(0x351)](_0x574fa2(0x630),[_0x4d3bb0,_0x3d4c17]);}async[_0x5794fb(0x36c)](_0x166dc3={}){const _0x601972=_0x5794fb;return this[_0x601972(0x351)](_0x601972(0x40b),[_0x166dc3]);}[_0x5794fb(0x401)](_0x18a3c5){return this['_n']('normalizeOAuthAuthResult',[_0x18a3c5]);}}return auth={'OKDBAuth':_0x57f1eb},auth;}var sync,hasRequiredSync;function requireSync(){const _0x238b5d=_0x36292f;if(hasRequiredSync)return sync;hasRequiredSync=0x1;const {RawDb:_0x4fc313}=requireRawdb();class _0x422982{constructor(_0x1a209c){this['_s']=_0x1a209c;}get[_0x238b5d(0x505)](){const _0x69aeae=_0x238b5d;return this['_ack']||(this[_0x69aeae(0x15b)]=new _0x4fc313(this['_s']['okdb']['_systemEnv'],_0x69aeae(0x2fa)));}[_0x238b5d(0x1e9)](){const _0x1c14fc=_0x238b5d;return this[_0x1c14fc(0x505)];}['_ensureDbs'](){const _0x49125d=_0x238b5d;return this[_0x49125d(0x505)];}['_n'](_0x59d0bf,_0x310b6b=[]){return this['_s']['_n']('gc.'+_0x59d0bf,_0x310b6b);}[_0x238b5d(0x5df)](_0x497d7c,_0x3be7b9){const _0x4a2809=_0x238b5d;return this['_n'](_0x4a2809(0x5df),[_0x497d7c,_0x3be7b9]);}async[_0x238b5d(0x2f1)](_0x1eee3d){return this['_n']('forceResync',[_0x1eee3d]);}[_0x238b5d(0x475)](){return this['_n']('getPeerAcks');}['getGcHorizon'](_0x30ae4a){const _0x42c6d1=_0x238b5d;return this['_n'](_0x42c6d1(0x7bd),[_0x30ae4a]);}async[_0x238b5d(0x31a)](){const _0x22b917=_0x238b5d;return this['_n'](_0x22b917(0x31a));}[_0x238b5d(0x7d2)](){return this['_n']('getStatus');}[_0x238b5d(0x73d)](){const _0x406420=_0x238b5d;return this['_n'](_0x406420(0x73d));}[_0x238b5d(0x209)](){const _0x49fb6f=_0x238b5d;return this['_n'](_0x49fb6f(0x209));}get[_0x238b5d(0x6b1)](){try{return this['_n']('timerArmed')?{}:null;}catch{return null;}}}class _0x37e9e7{constructor(_0x4fa8dc){const _0x1c80ae=_0x238b5d;this[_0x1c80ae(0x229)]=_0x4fa8dc,this['gc']=new _0x422982(this);const _0x11c565=this;this['options']=new Proxy({},{'get':(_0x524f48,_0x2e870e)=>typeof _0x2e870e===_0x1c80ae(0x635)?_0x11c565['_n']('options')[_0x2e870e]:undefined,'set':(_0x16b8aa,_0x2c686e,_0x78380b)=>{const _0x182a4a=_0x1c80ae;if(_0x2c686e===_0x182a4a(0x6a0))_0x11c565['_n'](_0x182a4a(0x7f8),[_0x78380b??null]);else{if(_0x2c686e===_0x182a4a(0x341))_0x11c565['_n']('setToken',[_0x78380b??null]);else{if(_0x2c686e===_0x182a4a(0x76e))_0x11c565['_n'](_0x182a4a(0x704),[_0x78380b]);}}return!![];},'ownKeys':()=>Object['keys'](_0x11c565['_n']('options')),'getOwnPropertyDescriptor':(_0x354232,_0x1e5f5a)=>({'enumerable':!![],'configurable':!![],'value':_0x11c565['_n'](_0x1c80ae(0x204))[_0x1e5f5a]}),'has':(_0x5f4b04,_0x1d4e3f)=>_0x1d4e3f in _0x11c565['_n'](_0x1c80ae(0x204))});}['_n'](_0xa775b3,_0x3d0721=[],_0x48b76f=![]){const _0x53aa76=_0x238b5d;return this[_0x53aa76(0x229)][_0x53aa76(0x6eb)]('sync',null,_0xa775b3,_0x3d0721,_0x48b76f);}['_nm'](_0x467a2a,_0x5193b5=[]){const _0x33a2e0=_0x238b5d;return this[_0x33a2e0(0x229)][_0x33a2e0(0x7a1)]('sync',null,_0x467a2a,_0x5193b5,!![]);}get[_0x238b5d(0x624)](){const _0x2d7088=_0x238b5d;return this['_pdb']||(this['_pdb']=new _0x4fc313(this[_0x2d7088(0x229)][_0x2d7088(0x3f1)],_0x2d7088(0x520)));}[_0x238b5d(0x156)](){return this['_peerDb'];}get[_0x238b5d(0x208)](){const _0x2a0ddd=_0x238b5d;return this[_0x2a0ddd(0x609)]||(this[_0x2a0ddd(0x609)]=new(requireLock())[(_0x2a0ddd(0x65d))](this[_0x2a0ddd(0x229)],_0x2a0ddd(0x4da),_0x2a0ddd(0x17a),{'ttlMs':0x7530}));}get[_0x238b5d(0x6a0)](){const _0x108247=_0x238b5d;return this['_n'](_0x108247(0x204))[_0x108247(0x6a0)];}get[_0x238b5d(0x5ec)](){const _0x248a8f=_0x238b5d;return this['okdb'][_0x248a8f(0x546)]&&this['_n'](_0x248a8f(0x44f))?{}:null;}get[_0x238b5d(0x11a)](){const _0x1c6bc7=_0x238b5d;return this[_0x1c6bc7(0x5ec)];}get[_0x238b5d(0x72d)](){const _0x22f483=_0x238b5d;return this['_n'](_0x22f483(0x461))?.[_0x22f483(0x27e)];}get[_0x238b5d(0x176)](){const _0x21ffd9=_0x238b5d;return this['_n']('nodeKeys')?.[_0x21ffd9(0x5ef)];}['info'](){const _0x36b9c0=_0x238b5d;return this['_n'](_0x36b9c0(0x7ba));}[_0x238b5d(0x65a)](){const _0x3c0bd4=_0x238b5d;return this['_n'](_0x3c0bd4(0x65a));}get[_0x238b5d(0x115)](){const _0x15c52f=_0x238b5d;return this['__peers']||(()=>this['_n'](_0x15c52f(0x115)));}set[_0x238b5d(0x115)](_0x59516e){const _0x56950d=_0x238b5d;this[_0x56950d(0x182)]=typeof _0x59516e===_0x56950d(0x7e3)?_0x59516e:null,this['_n'](_0x56950d(0x4bf),[this[_0x56950d(0x182)]]);}['_listPeers'](){const _0x91c478=_0x238b5d;return this['_n'](_0x91c478(0x436));}async[_0x238b5d(0x55e)](){const _0x5e5df3=_0x238b5d;return this[_0x5e5df3(0x351)]('reconcile');}async[_0x238b5d(0x177)](_0x2e43ad){return this['_nm']('reconcilePeer',[_0x2e43ad]);}async[_0x238b5d(0x537)](_0x2fa917,_0x14b680={}){const _0x513327=_0x238b5d;return this[_0x513327(0x351)](_0x513327(0x6d8),[_0x2fa917,_0x14b680]);}['stop'](){const _0x1f6e69=_0x238b5d;return this['_n'](_0x1f6e69(0x209));}[_0x238b5d(0x242)](){const _0x101316=_0x238b5d;return this['_n'](_0x101316(0x242));}async[_0x238b5d(0x20e)](_0x3a00dc,_0x195f31={}){const _0x2e4c7f=_0x238b5d;return this['_n'](_0x2e4c7f(0x20e),[_0x3a00dc,_0x195f31],!![]);}async['removeLink'](_0x55be37){const _0x27b466=_0x238b5d;return this['_n'](_0x27b466(0x2e1),[_0x55be37],!![]);}['_getNodeRecord'](_0x2fe77a){const _0x249278=_0x238b5d;return this['_n'](_0x249278(0x60b),[_0x2fe77a]);}[_0x238b5d(0x196)](_0x238e1c){const _0x1937fe=_0x238b5d;return this['_n'](_0x1937fe(0x3b1),[_0x238e1c]);}async[_0x238b5d(0x510)](_0x2e3638,_0x25de21,_0x11de8c={}){const _0xca859c=_0x238b5d;return this['_n'](_0xca859c(0x79c),[_0x2e3638,_0x25de21,_0x11de8c]);}async[_0x238b5d(0x1cc)](_0x51f4bb){const _0x18b0a8=_0x238b5d;return this['_n'](_0x18b0a8(0x15f),[_0x51f4bb]);}async[_0x238b5d(0x6d7)](){const _0x247b7d=_0x238b5d;return this['_n'](_0x247b7d(0x1f5),[],!![]);}async[_0x238b5d(0x649)](_0x36b14e){const _0x1a98e5=_0x238b5d;return this['_n'](_0x1a98e5(0x649),[_0x36b14e],!![]);}async[_0x238b5d(0x6ee)](_0x1ff8c4,_0x4d737e={}){const _0x52d806=_0x238b5d;return this[_0x52d806(0x351)](_0x52d806(0x6ee),[_0x1ff8c4,_0x4d737e]);}async[_0x238b5d(0x346)](_0x29e944={},_0x103a73={}){const _0x4d6e0c=_0x238b5d;return void _0x29e944[_0x4d6e0c(0x4da)],this['_n'](_0x4d6e0c(0x346),[_0x29e944,_0x103a73]);}async[_0x238b5d(0x5e8)](_0x2af20c,_0x2728bd,_0x5b651c,_0x3ace68){const _0x23afbe=_0x238b5d;return this[_0x23afbe(0x351)](_0x23afbe(0x5e8),[_0x2af20c,_0x2728bd,_0x5b651c,_0x3ace68??null]);}async[_0x238b5d(0x44e)](_0x47845d,_0x2b77a8,_0x1a7bf9={}){const _0x36b5c9=_0x238b5d;return this[_0x36b5c9(0x351)]('fetchRemoteDelta',[_0x47845d,_0x2b77a8,_0x1a7bf9]);}[_0x238b5d(0x450)](_0x233ae5,_0x1e4049=null){const _0x18610d=_0x238b5d;return this['_n'](_0x18610d(0x6f6),[_0x233ae5,_0x1e4049?_0x1e4049[_0x18610d(0x6bb)]:null]);}[_0x238b5d(0x25b)](_0xbf0530,_0x2ee945=null){const _0x594999=_0x238b5d;return this['_n'](_0x594999(0x25b),[_0xbf0530,_0x2ee945?_0x2ee945['name']:null],!![]);}}return sync={'OKDBSync':_0x37e9e7},sync;}var migrate,hasRequiredMigrate;function requireMigrate(){const _0x3350af=_0x36292f;if(hasRequiredMigrate)return migrate;hasRequiredMigrate=0x1;const {optionsArg:_0x5e2d5c}=requireErrors(),_0x451181=require$$0,_0x457dd0=require$$3,_0x2e1118=0x40*0x400;async function _0x5de06e(_0x557ca8,_0x5eb889){const _0x1e6361=_0x303e;for(let _0x4156e8=0x0;_0x4156e8<_0x5eb889[_0x1e6361(0x1e1)];){let _0x8ed7ba=Math[_0x1e6361(0x2f2)](_0x5eb889['length'],_0x4156e8+_0x2e1118);if(_0x8ed7ba<_0x5eb889[_0x1e6361(0x1e1)]){const _0x5588f7=_0x5eb889[_0x1e6361(0x4c7)](0xa,_0x8ed7ba-0x1);_0x8ed7ba=_0x5588f7===-0x1?_0x5eb889[_0x1e6361(0x1e1)]:_0x5588f7+0x1;}const _0x108244=_0x557ca8['write'](_0x5eb889[_0x1e6361(0x49d)](_0x4156e8,_0x8ed7ba));_0x4156e8=_0x8ed7ba;if(!_0x108244)await new Promise(_0x5f028d=>_0x557ca8[_0x1e6361(0x509)](_0x1e6361(0x6ff),_0x5f028d));await new Promise(_0x56913f=>setImmediate(_0x56913f));}}async function _0x160303(_0x5d0037){const _0x3d87cf=_0x303e,_0x1f266a=[];for await(const _0x51c0b7 of _0x5d0037)_0x1f266a[_0x3d87cf(0x460)](Buffer[_0x3d87cf(0x231)](_0x51c0b7)?_0x51c0b7:Buffer[_0x3d87cf(0x17b)](_0x51c0b7,_0x3d87cf(0x68d)));return Buffer[_0x3d87cf(0x354)](_0x1f266a);}class _0x13798b{constructor(_0x2a1668){const _0x48a296=_0x303e;this[_0x48a296(0x229)]=_0x2a1668;}['_n'](_0x155cf1,_0x4151da){const _0x5b9a18=_0x303e;return this[_0x5b9a18(0x229)][_0x5b9a18(0x6eb)](_0x5b9a18(0x804),null,_0x155cf1,_0x4151da,!![]);}async[_0x3350af(0x7ca)](_0x1b5b95,_0xd192a6={}){const _0x55b78b=_0x3350af,{data:_0x329ba9,stats:_0x6c2c52}=this['_n'](_0x55b78b(0x5fc),[_0xd192a6]);return await _0x5de06e(_0x1b5b95,Buffer[_0x55b78b(0x17b)](_0x329ba9)),_0x6c2c52;}async[_0x3350af(0x22c)](_0x577253,_0x4227b1={}){const _0x28c56e=_0x3350af;_0x451181['mkdirSync'](_0x457dd0[_0x28c56e(0x705)](_0x577253),{'recursive':!![]});const _0x2d8568=_0x451181[_0x28c56e(0x65f)](_0x577253),_0x4eb6ae=await this['exportToStream'](_0x2d8568,_0x4227b1);return await new Promise((_0x2ced1c,_0xe9f9a4)=>{const _0xf00fff=_0x28c56e;_0x2d8568['end'](),_0x2d8568[_0xf00fff(0x509)](_0xf00fff(0x4ee),_0x2ced1c),_0x2d8568[_0xf00fff(0x509)](_0xf00fff(0x19f),_0xe9f9a4);}),{..._0x4eb6ae,'filePath':_0x577253};}async[_0x3350af(0x2c7)](_0x4c36df,_0x2b3f50={}){const _0x5a24a8=_0x3350af,{data:_0x3c7918,stats:_0x2e6547}=this['_n']('exportEnvsBuf',[_0x2b3f50]);return await _0x5de06e(_0x4c36df,Buffer[_0x5a24a8(0x17b)](_0x3c7918)),_0x2e6547;}async[_0x3350af(0x52b)](_0x4d7582,_0x14ef7d={}){const _0x2b4d58=_0x3350af,_0x4186a8=await _0x160303(_0x4d7582),{onProgress:_0xa01d79,..._0x1e5572}=_0x14ef7d,_0x1eecc=this['_n']('importBuf',[_0x4186a8,_0x1e5572]);if(typeof _0xa01d79===_0x2b4d58(0x7e3))_0xa01d79({'type':null,'count':_0x1eecc[_0x2b4d58(0x756)]});return _0x1eecc;}async['importFromFile'](_0x5b4925,_0x1566e3={}){const _0x5c6522=_0x3350af;return this['importFromStream'](_0x451181[_0x5c6522(0x285)](_0x5b4925,{'encoding':_0x5c6522(0x68d)}),_0x1566e3);}async[_0x3350af(0x123)](_0x5ea9e0,_0x238dfa={}){const _0x28007c=_0x3350af;return this['_n'](_0x28007c(0x123),[_0x5ea9e0,_0x238dfa]);}[_0x3350af(0x17f)](){const _0xe4dac3=_0x3350af;return this['_n'](_0xe4dac3(0x17f),[]);}['resolveBackupDest'](_0x33a25c){return this['_n']('resolveBackupDest',[_0x33a25c??null]);}async['export'](_0x3c84c9={}){const _0x9b0928=_0x3350af;return this['_n'](_0x9b0928(0x77e),[_0x3c84c9]);}async['import'](_0x48c536,_0x1cf7c4={}){const _0x9f215f=_0x3350af;return this['_n'](_0x9f215f(0x134),[_0x48c536,_0x1cf7c4]);}async[_0x3350af(0x7e1)](_0x343095){const _0x6866e4=_0x3350af,{pretty:pretty=![]}=_0x5e2d5c(_0x343095);return JSON[_0x6866e4(0x74c)](await this[_0x6866e4(0x77e)](),null,pretty?0x2:0x0);}async[_0x3350af(0x139)](_0x1c7695){const _0x130e01=_0x3350af;return this[_0x130e01(0x134)](JSON[_0x130e01(0x76a)](_0x1c7695));}[_0x3350af(0x7d8)](){const _0x569d15=_0x3350af;if(!this[_0x569d15(0x229)][_0x569d15(0x748)]['get']('default')?.['files'])throw new Error('files\x20feature\x20not\x20available');}async['exportBlobs'](_0x56c864){const _0x1b68d3=_0x3350af;return this[_0x1b68d3(0x7d8)](),this['_n']('exportBlobs',[_0x56c864]);}async['importBlobs'](_0x1d7c04){const _0x57e634=_0x3350af;return this['_assertFiles'](),this['_n'](_0x57e634(0x5c7),[_0x1d7c04]);}['_allEnvsWithFiles'](){const _0x2d34d6=_0x3350af;return this['_n'](_0x2d34d6(0x70a),[])[_0x2d34d6(0x2fe)](_0x4e3f14=>this[_0x2d34d6(0x229)][_0x2d34d6(0x586)](_0x4e3f14));}async[_0x3350af(0x74a)](){const _0x39a4e5=_0x3350af;return this[_0x39a4e5(0x7d8)](),this['_n'](_0x39a4e5(0x74a),[]);}async['repairBlobRefs'](){return this['_assertFiles'](),this['_n']('repairBlobRefs',[]);}}return migrate={'OKDBMigrate':_0x13798b},migrate;}var mcp,hasRequiredMcp;function requireMcp(){const _0x5befaa=_0x36292f;if(hasRequiredMcp)return mcp;hasRequiredMcp=0x1;class _0x41d7fe{constructor(_0x15a9c4){const _0x2d8b85=_0x303e;this[_0x2d8b85(0x229)]=_0x15a9c4,this['clients']=new Map();}['_n'](_0x15914f,_0x123d50){const _0x1ac782=_0x303e;try{return this[_0x1ac782(0x229)][_0x1ac782(0x6eb)](_0x1ac782(0x42e),null,_0x15914f,_0x123d50,!![]);}catch(_0x42403c){if(_0x42403c&&_0x42403c[_0x1ac782(0x6cb)]===_0x1ac782(0x2dc)&&_0x42403c[_0x1ac782(0x184)]){if(_0x42403c[_0x1ac782(0x184)]['jsonrpcCode']!==undefined)_0x42403c[_0x1ac782(0x576)]=_0x42403c[_0x1ac782(0x184)][_0x1ac782(0x576)];_0x42403c[_0x1ac782(0x184)]=_0x42403c[_0x1ac782(0x184)][_0x1ac782(0x184)],_0x42403c['code']=undefined;}throw _0x42403c;}}[_0x5befaa(0x2bd)](){const _0x3fc9ca=_0x5befaa;return this['_n'](_0x3fc9ca(0x527),[]);}async[_0x5befaa(0x6eb)](_0x6a2bcd,_0x4f6f79={}){return this['_n']('call',[_0x6a2bcd??null,_0x4f6f79??{}]);}async['_handle'](_0x1534bc,_0x5bd718={}){const _0x25dc75=_0x5befaa;return this['_n'](_0x25dc75(0x547),[_0x1534bc,_0x5bd718??{}]);}['_initialize'](_0x29d3be){const _0x2f7558=_0x5befaa;return this['_n'](_0x2f7558(0x514),[_0x29d3be??null]);}}return mcp={'OKDBMcp':_0x41d7fe},mcp;}var sys,hasRequiredSys;function requireSys(){const _0x5b44a9=_0x36292f;if(hasRequiredSys)return sys;hasRequiredSys=0x1;function _0x31050b(_0x4b066d,_0x31ff57,_0x1fe96d){const _0xdb4083=_0x303e,_0x8c7e83={};for(const [_0x37e272,_0x55c2b7]of Object[_0xdb4083(0x111)](_0x1fe96d)){_0x8c7e83[_0x37e272]=_0x55c2b7===_0xdb4083(0x645)?async(..._0x1f0b9c)=>_0x4b066d['_call'](_0x31ff57,null,_0x37e272,_0x1f0b9c):(..._0x3a5595)=>_0x4b066d[_0xdb4083(0x6eb)](_0x31ff57,null,_0x37e272,_0x3a5595,![]);}return _0x8c7e83;}const _0x1871df=[_0x5b44a9(0x5b9),_0x5b44a9(0x3bd),_0x5b44a9(0x1cf),_0x5b44a9(0x1c7),_0x5b44a9(0x236),_0x5b44a9(0x2cf),_0x5b44a9(0x6f5),'describeIndex',_0x5b44a9(0x724),_0x5b44a9(0x5ca),_0x5b44a9(0x56b),_0x5b44a9(0x1db),_0x5b44a9(0x1eb),_0x5b44a9(0x295),'getTypeCount',_0x5b44a9(0x6db),_0x5b44a9(0x76d),_0x5b44a9(0x58e),'explainIndex',_0x5b44a9(0x174),_0x5b44a9(0x2b0)],_0x528f6b={'add':'async','activate':_0x5b44a9(0x645),'remove':_0x5b44a9(0x645),'list':'sync','get':_0x5b44a9(0x17a),'effective':'sync'},_0x47887c={'open':_0x5b44a9(0x645),'register':_0x5b44a9(0x645),'buildOwnRow':_0x5b44a9(0x17a),'_buildProcessingFacet':_0x5b44a9(0x17a),'reportThreadStats':_0x5b44a9(0x17a),'clearThreadStats':_0x5b44a9(0x17a),'emitProc':'sync','addSupervisedChild':'async','removeSupervisedChild':_0x5b44a9(0x17a),'updateSupervisedChildStats':_0x5b44a9(0x17a),'publishChildRow':_0x5b44a9(0x645),'putNode':_0x5b44a9(0x645),'removeNode':_0x5b44a9(0x645),'nodeDead':_0x5b44a9(0x17a),'listNodes':_0x5b44a9(0x17a),'reap':_0x5b44a9(0x645),'publishOwnRow':_0x5b44a9(0x645),'deregisterSelf':_0x5b44a9(0x645),'setOwnMeta':_0x5b44a9(0x17a),'noteListenAddr':_0x5b44a9(0x17a),'hasDesired':'sync','getDesired':_0x5b44a9(0x17a),'setDesired':_0x5b44a9(0x645),'listDesired':_0x5b44a9(0x17a),'getCmd':_0x5b44a9(0x17a),'bumpCmd':_0x5b44a9(0x645),'processingStatusView':_0x5b44a9(0x17a),'processorsView':_0x5b44a9(0x17a),'clusterStatusView':_0x5b44a9(0x17a),'nodesView':_0x5b44a9(0x17a),'treeView':_0x5b44a9(0x17a),'getProcess':_0x5b44a9(0x17a),'runtimeProcessesView':_0x5b44a9(0x17a)};function _0x3bb96b(_0xa2797e){const _0x23d105=_0x5b44a9,_0x471e0a={},_0x5e2a07=_0x13ae89=>_0x13ae89&&typeof _0x13ae89===_0x23d105(0x304)&&!Array[_0x23d105(0x486)](_0x13ae89)&&typeof _0x13ae89[_0x23d105(0x6bb)]===_0x23d105(0x635)?_0x13ae89[_0x23d105(0x6bb)]:_0x13ae89;for(const _0x73124 of _0x1871df)_0x471e0a[_0x73124]=_0x73124===_0x23d105(0x174)?async(..._0x2a7615)=>_0xa2797e[_0x23d105(0x6eb)](_0x23d105(0x295),null,_0x73124,_0x2a7615[_0x23d105(0x2fe)](_0x5e2a07),!![]):(..._0x28fd4e)=>_0xa2797e[_0x23d105(0x6eb)](_0x23d105(0x295),null,_0x73124,_0x28fd4e[_0x23d105(0x2fe)](_0x5e2a07),![]);return _0x471e0a;}function _0x22ff7d(_0x13b033){const _0x4c095f=_0x31050b(_0x13b033,'licenses',_0x528f6b);return _0x4c095f;}function _0x8257ba(_0x243072){const _0x21e711=_0x5b44a9,_0x1c99c6=()=>_0x243072[_0x21e711(0x736)][_0x21e711(0x3f7)](),_0x38be8d=_0x4f75ca=>_0x4f75ca[_0x21e711(0x407)]?{..._0x4f75ca,'_isFree':!![]}:_0x4f75ca;return{async 'addLicense'(_0x28d425){const _0xb54299=_0x21e711;return _0x243072['licenses'][_0xb54299(0x181)](_0x28d425);},async 'reload'(){},async 'recheck'(){},get 'active'(){const _0x152e11=_0x21e711,_0x2c18a8=_0x1c99c6();return _0x2c18a8[_0x152e11(0x407)]?null:_0x2c18a8;},get 'effective'(){return _0x38be8d(_0x1c99c6());},'hasLimit'(_0x5bf8a6){const _0x3a7ad8=_0x21e711,_0x31e737=_0x1c99c6();if(!_0x31e737[_0x3a7ad8(0x36e)])return![];const _0x3fcd66=_0x31e737[_0x3a7ad8(0x605)]?.[_0x5bf8a6];return!(_0x3fcd66===null||_0x3fcd66===undefined||_0x3fcd66===0x0);},'isFeatureEnabled'(_0x1b5524){const _0x2a523e=_0x21e711,_0x2e8c31=_0x1c99c6();return!_0x2e8c31[_0x2a523e(0x36e)]||!!_0x2e8c31[_0x2a523e(0x381)]?.[_0x1b5524];},'assertFeature'(_0x1a4e55){const _0x509cab=_0x21e711,_0x2b8b18=_0x1c99c6();if(!_0x2b8b18[_0x509cab(0x36e)]||_0x2b8b18[_0x509cab(0x381)]?.[_0x1a4e55])return;const {OKDBError:_0x100cc8}=requireErrors(),_0x4201c8=_0x2b8b18[_0x509cab(0x407)]?'Feature\x20not\x20available\x20on\x20free\x20tier:\x20'+_0x1a4e55+_0x509cab(0x5ba)+_0x1a4e55+_0x509cab(0x7da):_0x509cab(0x335)+_0x1a4e55+_0x509cab(0x660)+_0x1a4e55+'\x22.';throw new _0x100cc8(_0x4201c8,_0x509cab(0x29e),{'feature':_0x1a4e55});},'assertLimit'(_0x42885b,_0x1b99b4){const _0xacbebd=_0x21e711,_0x40289d=_0x1c99c6();if(!_0x40289d['enforced'])return;const _0x399891=_0x40289d[_0xacbebd(0x605)]?.[_0x42885b];if(_0x399891===null||_0x399891===undefined||_0x399891===0x0)return;if(_0x1b99b4>=_0x399891){const {OKDBError:_0x2e3410}=requireErrors();throw new _0x2e3410('License\x20limit\x20exceeded:\x20'+_0x42885b+'\x20('+_0x1b99b4+'/'+_0x399891+')',_0xacbebd(0x37e),{'limit':_0x42885b,'current':_0x1b99b4,'max':_0x399891});}},'listLicenses'(){const _0x4e70f0=_0x21e711;return _0x243072['licenses'][_0x4e70f0(0x646)]();},'getPins'(){const _0x1ed860=_0x21e711;return _0x243072['licenses']['list']()[_0x1ed860(0x2fe)](_0x5d9fd0=>({'licenseId':_0x5d9fd0['id'],'pin':_0x5d9fd0[_0x1ed860(0x74e)]===_0x1ed860(0x7dd)?null:_0x5d9fd0[_0x1ed860(0x417)]}));}};}function _0x5a7ce1(_0x49fe25){const _0xb7245b=_0x5b44a9,_0x1d9146=_0x31050b(_0x49fe25,_0xb7245b(0x4e4),_0x47887c);Object[_0xb7245b(0x629)](_0x1d9146,_0xb7245b(0x7c1),{'get':()=>_0x49fe25[_0xb7245b(0x6eb)](_0xb7245b(0x4e4),null,_0xb7245b(0x7c1),[],![])}),Object[_0xb7245b(0x629)](_0x1d9146,_0xb7245b(0x712),{'get':()=>_0x49fe25[_0xb7245b(0x6eb)](_0xb7245b(0x4e4),null,_0xb7245b(0x712),[],![])}),_0x1d9146['_listenAddr']=null;const _0x1f8c36=_0x1d9146[_0xb7245b(0x1b8)];_0x1d9146['noteListenAddr']=_0x47448d=>{const _0x248cc2=_0xb7245b;return _0x1d9146[_0x248cc2(0x35a)]=_0x47448d,_0x1f8c36(_0x47448d);};const _0x2fd86d=()=>_0x1d9146['listNodes']()['map'](_0x33261c=>({'key':_0x33261c[_0xb7245b(0x1f9)],'value':_0x33261c,'version':0x1})),_0x278b5a={'name':_0xb7245b(0x615),'_sync':![],'_isOpen':!![],'isProcessStore':!![],'hasType':_0x28be5d=>_0x28be5d==='node','getRange':_0x542d75=>_0x542d75===_0xb7245b(0x6e3)?_0x2fd86d()[Symbol[_0xb7245b(0x21f)]]():[][Symbol[_0xb7245b(0x21f)]](),'getKeys':_0x4d9ab9=>_0x4d9ab9===_0xb7245b(0x6e3)?_0x2fd86d()[_0xb7245b(0x2fe)](_0x1c64f2=>_0x1c64f2['key'])[Symbol['iterator']]():[][Symbol['iterator']](),'getValues':_0x53e553=>_0x53e553===_0xb7245b(0x6e3)?_0x2fd86d()[_0xb7245b(0x2fe)](_0x50ea11=>_0x50ea11[_0xb7245b(0x1be)])[Symbol[_0xb7245b(0x21f)]]():[][Symbol[_0xb7245b(0x21f)]](),'get':(_0x4bb972,_0x5ab6dc)=>_0x4bb972===_0xb7245b(0x6e3)?_0x2fd86d()[_0xb7245b(0x678)](_0x807ca=>_0x807ca[_0xb7245b(0x119)]===_0x5ab6dc)?.[_0xb7245b(0x1be)]:undefined,'getCount':_0x10025c=>_0x10025c===_0xb7245b(0x6e3)?_0x2fd86d()[_0xb7245b(0x1e1)]:0x0};Object[_0xb7245b(0x629)](_0x1d9146,_0xb7245b(0x70d),{'get':()=>_0x49fe25[_0xb7245b(0x6eb)]('processes',null,_0xb7245b(0x233),[],![])?_0x278b5a:null});const _0xc70b42=_0x1d9146['open'];_0x1d9146['open']=async _0x2d2102=>{const _0x568685=_0xb7245b;return await _0xc70b42(_0x2d2102),_0x1d9146[_0x568685(0x70d)];},_0x1d9146[_0xb7245b(0x287)]=()=>_0x49fe25['_call'](_0xb7245b(0x4e4),null,_0xb7245b(0x25e),[],!![]);const {RawDb:_0x31195a}=requireRawdb();return Object['defineProperty'](_0x1d9146,_0xb7245b(0x783),{'get':()=>_0x49fe25[_0xb7245b(0x3f1)]?_0x1d9146['__desired']||=new _0x31195a(_0x49fe25['_systemEnv'],_0xb7245b(0x5c4)):undefined}),Object[_0xb7245b(0x629)](_0x1d9146,_0xb7245b(0x2bc),{'get':()=>_0x49fe25['_systemEnv']?_0x1d9146[_0xb7245b(0x64c)]||=new _0x31195a(_0x49fe25['_systemEnv'],_0xb7245b(0x4ae)):undefined}),_0x1d9146[_0xb7245b(0x579)]=()=>_0x49fe25[_0xb7245b(0x6eb)](_0xb7245b(0x4e4),null,_0xb7245b(0x579),[],![]),Object[_0xb7245b(0x629)](_0x1d9146,_0xb7245b(0x54f),{'get':()=>_0x49fe25[_0xb7245b(0x6eb)](_0xb7245b(0x4e4),null,_0xb7245b(0x5ee),[],![])}),Object[_0xb7245b(0x629)](_0x1d9146,_0xb7245b(0x6f7),{'get':()=>_0x49fe25['_call'](_0xb7245b(0x4e4),null,_0xb7245b(0x80e),[],![])}),_0x1d9146['_buildOwnRow']=()=>_0x49fe25[_0xb7245b(0x6eb)]('processes',null,_0xb7245b(0x278),[],![]),_0x1d9146[_0xb7245b(0x241)]=(_0x5e5d90,_0xf2e067)=>_0x49fe25[_0xb7245b(0x6eb)](_0xb7245b(0x4e4),null,'emitProc',[_0x5e5d90,_0xf2e067],![]),_0x1d9146;}return sys={'makeMeta':_0x3bb96b,'makeLicenses':_0x22ff7d,'makeLicenseChecker':_0x8257ba,'makeProcesses':_0x5a7ce1},sys;}var okdbLogger,hasRequiredOkdbLogger;function requireOkdbLogger(){const _0x16462c=_0x36292f;if(hasRequiredOkdbLogger)return okdbLogger;hasRequiredOkdbLogger=0x1;const _0x3063a7={'debug':0xa,'info':0x14,'warn':0x1e,'error':0x28};class _0x3fdb1e{constructor(_0x38092f){const _0x4907d2=_0x303e;this['okdb']=_0x38092f,this['_sinks']=new Set(),this[_0x4907d2(0x1b3)]={};}[_0x16462c(0x77b)](_0x22d2f5){const _0x2e58da=_0x16462c,_0x5605e9=new _0x3fdb1e(this[_0x2e58da(0x229)]);return _0x5605e9['_sinks']=this[_0x2e58da(0x21d)],_0x5605e9[_0x2e58da(0x1b3)]={...this[_0x2e58da(0x1b3)],..._0x22d2f5},_0x5605e9;}['attach'](_0x37c6fe){const _0xc60e52=_0x16462c;return this[_0xc60e52(0x21d)][_0xc60e52(0x181)](_0x37c6fe),()=>this[_0xc60e52(0x21d)]['delete'](_0x37c6fe);}[_0x16462c(0x234)](){const _0x3ff67e=_0x16462c,_0x30b0f9=_0x3063a7[process.env.OKDB_LOG_LEVEL]??_0x3063a7['info'];return this[_0x3ff67e(0x301)]=this[_0x3ff67e(0x63a)](({level:_0x30653a,msg:_0xc0ea75,meta:_0x475237,context:_0x5668c5,ts:_0x286e4b})=>{const _0x300e11=_0x3ff67e;if((_0x3063a7[_0x30653a]??_0x3063a7[_0x300e11(0x7ba)])<_0x30b0f9)return;if(_0x475237?.['feature']==='functions'&&(_0x30653a==='info'||_0x30653a==='debug'))return;const _0x17d200=_0x30653a===_0x300e11(0x19f)?console[_0x300e11(0x19f)]:_0x30653a===_0x300e11(0x521)?console[_0x300e11(0x521)]:_0x30653a===_0x300e11(0x7ba)?console['info']:console[_0x300e11(0x282)],_0x7a963d=_0x475237&&Object[_0x300e11(0x3ad)](_0x475237)[_0x300e11(0x1e1)]>0x0;_0x7a963d||_0x5668c5!==undefined?_0x17d200(new Date(_0x286e4b)[_0x300e11(0x7ab)](),_0xc0ea75,..._0x7a963d?[_0x475237]:[],..._0x5668c5!==undefined?[_0x5668c5]:[]):_0x17d200(new Date(_0x286e4b)['toISOString'](),_0xc0ea75);}),this[_0x3ff67e(0x301)];}['detachConsole'](){const _0x34890b=_0x16462c;this[_0x34890b(0x301)]&&(this[_0x34890b(0x301)](),this[_0x34890b(0x301)]=null);}[_0x16462c(0x163)](_0x5a4555,_0x6fe90c){const _0x22f2f3=require$$0$4,_0x28e70d=0x1f4,_0x2d1664=Number(process.env.OKDB_LOG_FLUSH_MS)||0x3e8;let _0x45dc0d=[],_0x2a9dbb=0x0,_0x5a3701=null;const _0x4afc2e=()=>{const _0x1f7454=_0x303e;_0x5a3701=null;if(_0x45dc0d['length']===0x0)return;const _0x31fd08=_0x45dc0d;_0x45dc0d=[],_0x2a9dbb>0x0&&(_0x31fd08[_0x1f7454(0x460)]({'ts':Date[_0x1f7454(0x1b5)](),'level':'warn','msg':_0x1f7454(0x127)+_0x2a9dbb+_0x1f7454(0x5d7)+(_0x2a9dbb===0x1?'y':_0x1f7454(0x6c1))+_0x1f7454(0x2e6),'feature':'log','node':_0x6fe90c,'context':null}),_0x2a9dbb=0x0),_0x5a4555['txn'](_0x5e188f=>{const _0x40823f=_0x1f7454;for(const _0x10ff78 of _0x31fd08)_0x5e188f['put'](_0x40823f(0x79b),_0x22f2f3[_0x40823f(0x11c)](),_0x10ff78);})['catch'](()=>{});},_0x4614f9=this['attach'](({level:_0xc7da7a,msg:_0x48c0c1,meta:_0x23dadf,context:_0x297102,ts:_0x4a3e5e})=>{const _0x2c7b8c=_0x303e;if(_0xc7da7a===_0x2c7b8c(0x3f9))return;_0x45dc0d[_0x2c7b8c(0x1e1)]>=_0x28e70d&&(_0x2a9dbb++,_0x45dc0d[_0x2c7b8c(0x14c)]()),_0x45dc0d[_0x2c7b8c(0x460)]({'ts':_0x4a3e5e,'level':_0xc7da7a,'msg':_0x48c0c1,'feature':_0x23dadf?.[_0x2c7b8c(0x552)]??_0x23dadf?.[_0x2c7b8c(0x387)]??null,'node':_0x6fe90c,'context':_0x297102??null}),!_0x5a3701&&(_0x5a3701=setTimeout(_0x4afc2e,_0x2d1664),_0x5a3701['unref']?.());});return()=>{_0x4614f9();if(_0x5a3701)clearTimeout(_0x5a3701);_0x4afc2e();};}['_emit'](_0x3f9613,_0x45edb6,_0x5a6125){const _0x59a950=_0x16462c;_0x45edb6 instanceof Error&&(_0x5a6125={'message':_0x45edb6['message'],'stack':_0x45edb6[_0x59a950(0x4b6)],..._0x5a6125},_0x45edb6=_0x45edb6['message']);const _0x55cc53={'level':_0x3f9613,'msg':_0x45edb6,'meta':{...this[_0x59a950(0x1b3)]},'context':_0x5a6125,'ts':Date[_0x59a950(0x1b5)]()};try{this[_0x59a950(0x229)][_0x59a950(0x6f3)][_0x59a950(0x3a7)](_0x59a950(0x282),_0x55cc53);}catch{}for(const _0x126b7c of this[_0x59a950(0x21d)]){try{_0x126b7c(_0x55cc53);}catch{}}}['ingest'](_0x1fb570){const _0xc5cdff=_0x16462c;try{this['okdb']?.[_0xc5cdff(0x6f3)]?.['emit'](_0xc5cdff(0x282),_0x1fb570);}catch{}for(const _0x4a0bfa of this[_0xc5cdff(0x21d)]){try{_0x4a0bfa(_0x1fb570);}catch{}}}[_0x16462c(0x7ba)](_0x51d1df,_0x385310){const _0x35d678=_0x16462c;this[_0x35d678(0x54a)](_0x35d678(0x7ba),_0x51d1df,_0x385310);}[_0x16462c(0x521)](_0x393796,_0x86880b){const _0x34f6d7=_0x16462c;this[_0x34f6d7(0x54a)](_0x34f6d7(0x521),_0x393796,_0x86880b);}[_0x16462c(0x19f)](_0x5c7b68,_0xe1a98){const _0x465156=_0x16462c;this[_0x465156(0x54a)](_0x465156(0x19f),_0x5c7b68,_0xe1a98);}['debug'](_0x4e46d9,_0x21b7c1){this['_emit']('debug',_0x4e46d9,_0x21b7c1);}}return okdbLogger=_0x3fdb1e,okdbLogger;}var okdbPlugins,hasRequiredOkdbPlugins;function requireOkdbPlugins(){const _0x45e2bb=_0x36292f;if(hasRequiredOkdbPlugins)return okdbPlugins;hasRequiredOkdbPlugins=0x1;const {OKDB_STATE:_0x372eaa}=requireOkdbEnums(),{OKDBError:_0x1420ac}=requireOkdbError();class _0x905c4e{constructor(_0x3bd367){const _0x3e7c6b=_0x303e;this[_0x3e7c6b(0x229)]=_0x3bd367,this[_0x3e7c6b(0x1fe)]=[];}[_0x45e2bb(0x2f3)](_0x39a0dc,_0x54ba93){const _0xfd4fc1=_0x45e2bb;if(this[_0xfd4fc1(0x229)][_0xfd4fc1(0x41a)]!==_0x372eaa['CREATED'])throw new _0x1420ac('Cannot\x20register\x20plugins\x20after\x20start',_0xfd4fc1(0x34e),{'state':this[_0xfd4fc1(0x229)][_0xfd4fc1(0x41a)]});if(!_0x39a0dc[_0xfd4fc1(0x6bb)])throw new _0x1420ac(_0xfd4fc1(0x223),_0xfd4fc1(0x1da),{'plugin':_0x39a0dc[_0xfd4fc1(0x6bb)]});const _0x228c7c=_0x39a0dc['requires']??[];for(const _0x455137 of _0x228c7c){if(!this[_0xfd4fc1(0x1fe)][_0xfd4fc1(0x7f4)](_0x1c4fd=>_0x1c4fd[_0xfd4fc1(0x387)][_0xfd4fc1(0x6bb)]===_0x455137))throw new _0x1420ac('Missing\x20plugin:\x20'+_0x455137+_0xfd4fc1(0x6bf)+_0x39a0dc['name']+')',_0xfd4fc1(0x2ea),{'required':_0x455137});}if(this[_0xfd4fc1(0x1fe)][_0xfd4fc1(0x678)](_0x5c5086=>_0x5c5086[_0xfd4fc1(0x387)][_0xfd4fc1(0x6bb)]===_0x39a0dc[_0xfd4fc1(0x6bb)]))throw new _0x1420ac(_0xfd4fc1(0x7f9)+_0x39a0dc['name']+'\x27\x20already\x20registered',_0xfd4fc1(0x267),{'plugin':_0x39a0dc[_0xfd4fc1(0x6bb)]});if(_0x39a0dc['name']in this['okdb'])throw new _0x1420ac(_0xfd4fc1(0x60a)+_0x39a0dc[_0xfd4fc1(0x6bb)]+'\x27\x20conflicts\x20with\x20existing\x20OKDB\x20property',_0xfd4fc1(0x283));const _0x19143e=_0x39a0dc[_0xfd4fc1(0x2f3)](this[_0xfd4fc1(0x229)],_0x54ba93);if(!_0x19143e||typeof _0x19143e!==_0xfd4fc1(0x304))throw new _0x1420ac(_0xfd4fc1(0x7f9)+_0x39a0dc['name']+_0xfd4fc1(0x192),_0xfd4fc1(0x1da),{'plugin':_0x39a0dc[_0xfd4fc1(0x6bb)]});this['_plugins'][_0xfd4fc1(0x460)]({'module':_0x39a0dc,'options':_0x54ba93,'instance':_0x19143e});}[_0x45e2bb(0x7af)]=[];async['start'](){const _0x88238f=_0x45e2bb;try{for(const _0x177f03 of this[_0x88238f(0x1fe)]){await _0x177f03[_0x88238f(0x306)][_0x88238f(0x73d)]?.(this['okdb']),this[_0x88238f(0x7af)][_0x88238f(0x460)](_0x177f03);}}catch(_0x31e275){await this['stop']()[_0x88238f(0x503)](()=>{});throw _0x31e275;}}async['stop'](){const _0x1c95cf=_0x45e2bb,_0x1e35e0=this[_0x1c95cf(0x7af)][_0x1c95cf(0x626)]();this[_0x1c95cf(0x7af)]=[];let _0x35ce6b=null;for(const _0xcfc2 of _0x1e35e0){try{await _0xcfc2[_0x1c95cf(0x306)][_0x1c95cf(0x209)]?.(this[_0x1c95cf(0x229)]);}catch(_0x4df48f){_0x35ce6b??=_0x4df48f;}}if(_0x35ce6b)throw _0x35ce6b;}}return okdbPlugins=_0x905c4e,okdbPlugins;}var statics,hasRequiredStatics;function requireStatics(){const _0x119c32=_0x36292f;if(hasRequiredStatics)return statics;hasRequiredStatics=0x1;const _0x584119={'maxDbs':0x400,'pageSize':0x1000,'compression':!![],'encryptionKey':undefined,'mapSize':0x100000000,'durability':_0x119c32(0x2f8)},_0xc372e5=new Set([_0x119c32(0x125),'pageSize',_0x119c32(0x541),_0x119c32(0x5fb),_0x119c32(0x39b),_0x119c32(0x3d0),_0x119c32(0x5f5),_0x119c32(0x738),'auth','sync','queue',_0x119c32(0x1f2),_0x119c32(0x305),_0x119c32(0x42e),'runtimeDeclarations','log','shutdownTimeout',_0x119c32(0x1ea),_0x119c32(0x262),_0x119c32(0x596),'compaction',_0x119c32(0x4e4),'autoCompact',_0x119c32(0x619),'admin',_0x119c32(0x6f8),_0x119c32(0x3f9),_0x119c32(0x6a8),_0x119c32(0x123)]),_0x51f6f9={'http':'there\x20is\x20no\x20`http`\x20option\x20—\x20the\x20HTTP\x20server\x20exists\x20only\x20when\x20db.http.listen(port)\x20is\x20called'};return statics={'defaults':_0x584119,'KNOWN_OPTIONS':_0xc372e5,'_OPTION_HINTS':_0x51f6f9},statics;}var licenseConfig,hasRequiredLicenseConfig;function requireLicenseConfig(){const _0x8aca01=_0x36292f;if(hasRequiredLicenseConfig)return licenseConfig;hasRequiredLicenseConfig=0x1;const _0x2cbf79=require$$0$2,_0xbda119=_0x8aca01(0x4d9),_0x5c54f6=_0x2cbf79[_0x8aca01(0x293)](_0x8aca01(0x20f))[_0x8aca01(0x323)](_0x2cbf79[_0x8aca01(0x329)](_0xbda119)[_0x8aca01(0x77e)]({'type':_0x8aca01(0x639),'format':'der'}))['digest'](_0x8aca01(0x538))[_0x8aca01(0x6ea)](0x0,0x10),_0x245b7a={'LICENSED_BUILD':_0x8aca01(0x29f),'PUBLIC_KEY_PEM':_0xbda119,'PUB_FINGERPRINT':_0x5c54f6,'LICENSE_EXPIRED_ACTION':_0x8aca01(0x282)};return licenseConfig={'_C':_0x245b7a,'PUBLIC_KEY_PEM':_0xbda119,'PUB_FINGERPRINT':_0x5c54f6},licenseConfig;}var okdbSubscriptionsStore={'exports':{}},okdbQueryFilter,hasRequiredOkdbQueryFilter;function requireOkdbQueryFilter(){const _0x44d1ca=_0x36292f;if(hasRequiredOkdbQueryFilter)return okdbQueryFilter;hasRequiredOkdbQueryFilter=0x1;const _0x16622e=require$$0$5,{OKDBError:_0x3a9713}=requireOkdbError(),_0xa7dfe3=['$eq',_0x44d1ca(0x140),'$gt',_0x44d1ca(0x75b),_0x44d1ca(0x4a2),_0x44d1ca(0x2ed),_0x44d1ca(0x638),_0x44d1ca(0x2f9),_0x44d1ca(0x73a),_0x44d1ca(0x462),_0x44d1ca(0x202),_0x44d1ca(0x742),'$size',_0x44d1ca(0x533),_0x44d1ca(0x654),_0x44d1ca(0x4d2),_0x44d1ca(0x143),'$and',_0x44d1ca(0x1e2),_0x44d1ca(0x312)],_0xe71dcd=[_0x44d1ca(0x2b6)];function _0x52d183(_0x2f37aa){return()=>{const _0x533b49=_0x303e,_0x5430fe=new _0x3a9713(_0x533b49(0x63b)+_0x2f37aa+_0x533b49(0x158),'QUERY_OPERATOR_FORBIDDEN',{'operator':_0x2f37aa});_0x5430fe['status']=0x190;throw _0x5430fe;};}const _0x391cb0=Object[_0x44d1ca(0x191)]({...Object[_0x44d1ca(0x24a)](_0xa7dfe3['map'](_0x3a8f04=>[_0x3a8f04,_0x16622e[_0x3a8f04]])),...Object[_0x44d1ca(0x24a)](_0xe71dcd[_0x44d1ca(0x2fe)](_0x39e3dd=>[_0x39e3dd,_0x52d183(_0x39e3dd)]))});function _0x2b84a7(_0x1bbec0){const _0x590c97=_0x44d1ca;return _0x16622e[_0x590c97(0x1fd)](_0x1bbec0,{'operations':_0x391cb0});}function _0x3b381c(_0x4a685e){const _0x496340=_0x44d1ca;if(_0x4a685e==null)return;try{_0x2b84a7(_0x4a685e);}catch(_0x25e535){if(_0x25e535?.['code']===_0x496340(0x35d))throw _0x25e535;}}return okdbQueryFilter={'compileFilter':_0x2b84a7,'assertFilterAllowed':_0x3b381c,'ALLOWED_OPERATORS':_0xa7dfe3,'FORBIDDEN_OPERATORS':_0xe71dcd},okdbQueryFilter;}var okdbEnvRefs,hasRequiredOkdbEnvRefs;function requireOkdbEnvRefs(){const _0x55df4b=_0x36292f;if(hasRequiredOkdbEnvRefs)return okdbEnvRefs;hasRequiredOkdbEnvRefs=0x1;const {CHANGE_ACTIONS:_0x247f7d,EVENTS:_0x88d121}=requireOkdbEnums(),{OKDBError:_0x12cf2e,OKDBForeignKeyDeleteError:_0x339dc5}=requireOkdbError(),_0x740f4f=_0x55df4b(0x220),_0x427f3f=new Set([_0x55df4b(0x154),_0x55df4b(0x4fd),_0x55df4b(0x224),_0x55df4b(0x319)]);function _0x465b58(_0x199e75,_0x225258){const _0x33a704=_0x55df4b;if(_0x199e75==null||!_0x225258)return undefined;const _0x5de3f2=_0x225258[_0x33a704(0x681)]('.');let _0x1a4267=_0x199e75;for(const _0x24c19d of _0x5de3f2){if(_0x1a4267==null||typeof _0x1a4267!==_0x33a704(0x304)||!(_0x24c19d in _0x1a4267))return undefined;_0x1a4267=_0x1a4267[_0x24c19d];}return _0x1a4267;}function _0x55159a(_0x35ae64,_0x44f460,_0x43bb77){const _0x5ab81c=_0x55df4b,_0x1eb27f=_0x44f460[_0x5ab81c(0x681)]('.'),_0x5c8dbf={..._0x35ae64};let _0x5990fa=_0x5c8dbf;for(let _0x5d628d=0x0;_0x5d628d<_0x1eb27f[_0x5ab81c(0x1e1)]-0x1;_0x5d628d++){_0x5990fa[_0x1eb27f[_0x5d628d]]=_0x5990fa[_0x1eb27f[_0x5d628d]]!=null?{..._0x5990fa[_0x1eb27f[_0x5d628d]]}:{},_0x5990fa=_0x5990fa[_0x1eb27f[_0x5d628d]];}return _0x5990fa[_0x1eb27f[_0x1eb27f[_0x5ab81c(0x1e1)]-0x1]]=_0x43bb77,_0x5c8dbf;}function _0x4fc330(_0x7723d3,_0xf251b6,_0x1dfe36,_0x223299,_0x5c1b16){return[_0x7723d3,_0xf251b6,_0x1dfe36,_0x223299,_0x5c1b16];}function _0x76b8f(_0x584cac){const _0x4d0b6d=_0x55df4b;return typeof _0x584cac===_0x4d0b6d(0x635)||typeof _0x584cac===_0x4d0b6d(0x2d3);}function _0x1340c4(_0x4b2098,_0x1664e0){return JSON['stringify']([_0x4b2098,_0x1664e0]);}function*_0x216b58(_0x50b668,_0x144616,_0x364e81){const _0x54b994=_0x364e81!==undefined;for(const {key:_0x4c96b0}of _0x50b668['getRange']({'start':_0x54b994?[_0x144616,_0x364e81]:[_0x144616]})){if(!Array['isArray'](_0x4c96b0))continue;if(_0x4c96b0[0x0]!==_0x144616||_0x54b994&&_0x4c96b0[0x1]!==_0x364e81)break;yield _0x4c96b0;}}function _0x2fdb79(_0x3fb553,_0xea10cc='',_0x3d42c7=null){const _0x1d3e9e=_0x55df4b,_0x45922b=[];if(!_0x3fb553||typeof _0x3fb553!==_0x1d3e9e(0x304))return _0x45922b;if(!_0x3d42c7)_0x3d42c7=_0x3fb553;if(_0x3fb553['$ref']){const _0x52a813=_0x3fb553[_0x1d3e9e(0x5b7)]['match'](/^#\/\$defs\/(.+)$/);if(_0x52a813&&_0x3d42c7?.[_0x1d3e9e(0x3e4)]?.[_0x52a813[0x1]])return _0x2fdb79(_0x3d42c7[_0x1d3e9e(0x3e4)][_0x52a813[0x1]],_0xea10cc,_0x3d42c7);return _0x45922b;}if(_0x3fb553[_0x1d3e9e(0x439)]&&typeof _0x3fb553[_0x1d3e9e(0x439)]===_0x1d3e9e(0x304)&&_0x3fb553[_0x1d3e9e(0x439)][_0x1d3e9e(0x74e)]){const _0x274ab8=_0x3fb553[_0x1d3e9e(0x439)][_0x1d3e9e(0x275)]||_0x1d3e9e(0x154);if(!_0x427f3f[_0x1d3e9e(0x3a9)](_0x274ab8))throw new _0x12cf2e(_0x1d3e9e(0x395)+_0x274ab8+'\x27\x20at\x20'+(_0xea10cc||'root')+_0x1d3e9e(0x2b4)+[..._0x427f3f][_0x1d3e9e(0x6ee)](',\x20'),_0x1d3e9e(0x5dd));_0x45922b[_0x1d3e9e(0x460)]({'fieldPath':_0xea10cc,'targetType':_0x3fb553[_0x1d3e9e(0x439)][_0x1d3e9e(0x74e)],'onDelete':_0x274ab8});}if(_0x3fb553[_0x1d3e9e(0x66b)])for(const [_0x3cd19d,_0x1a9855]of Object['entries'](_0x3fb553[_0x1d3e9e(0x66b)])){const _0x196cff=_0xea10cc?_0xea10cc+'.'+_0x3cd19d:_0x3cd19d;_0x45922b['push'](..._0x2fdb79(_0x1a9855,_0x196cff,_0x3d42c7));}return _0x45922b;}function _0x54effa(_0x2633ac){const _0x3142d6=_0x55df4b,_0x39da49=new Map(),_0xb376f9=new Map();for(const _0x574d25 of _0x2633ac[_0x3142d6(0x779)]()){if(_0x574d25[_0x3142d6(0x169)]('~'))continue;const _0x443d8a=_0x2633ac[_0x3142d6(0x340)][_0x3142d6(0x1d2)](_0x574d25);if(!_0x443d8a?.[_0x3142d6(0x5b5)]?.[_0x3142d6(0x160)])continue;let _0x41ee37;try{_0x41ee37=_0x2fdb79(_0x443d8a[_0x3142d6(0x5b5)][_0x3142d6(0x160)]);}catch{continue;}if(_0x41ee37[_0x3142d6(0x1e1)]>0x0){_0x39da49['set'](_0x574d25,_0x41ee37);for(const _0x23dd9d of _0x41ee37){if(!_0xb376f9[_0x3142d6(0x3a9)](_0x23dd9d[_0x3142d6(0x1e4)]))_0xb376f9[_0x3142d6(0x31f)](_0x23dd9d[_0x3142d6(0x1e4)],[]);_0xb376f9[_0x3142d6(0x1d2)](_0x23dd9d[_0x3142d6(0x1e4)])['push']({'sourceType':_0x574d25,'fieldPath':_0x23dd9d[_0x3142d6(0x641)],'onDelete':_0x23dd9d[_0x3142d6(0x275)]});}}}_0x2633ac[_0x3142d6(0x7a5)]={'outgoing':_0x39da49,'incoming':_0xb376f9};if(_0x39da49['size']>0x0)_0x169952(_0x2633ac);}function _0x35d246(_0x4095d0,_0xd79c8d){const _0x3f6977=_0x55df4b;return _0x4095d0[_0x3f6977(0x7a5)][_0x3f6977(0x360)][_0x3f6977(0x1d2)](_0xd79c8d)||[];}function _0x58e5ab(_0x28e448,_0x4ea90a){const _0x5444ff=_0x55df4b;return _0x28e448['_refCache'][_0x5444ff(0x62f)][_0x5444ff(0x1d2)](_0x4ea90a)||[];}function _0x169952(_0x556711){const _0x589d78=_0x55df4b;if(_0x556711['_refIndexDb'])return _0x556711['_refIndexDb'];return _0x556711['_refIndexDb']=_0x556711['db']['openDB'](_0x589d78(0x599),{'dupSort':![]}),_0x556711[_0x589d78(0x663)];}function _0x296938(_0x3f3fba,_0x5d2f50,_0x3a46a4,_0x819718,_0x27d73c){const _0xbcf20b=_0x55df4b,_0x5ef25d=_0x35d246(_0x3f3fba,_0x5d2f50);if(_0x5ef25d['length']===0x0)return;const _0x279e75=_0x169952(_0x3f3fba);for(const _0x1871aa of _0x5ef25d){const _0x376e0a=_0x27d73c!=null?_0x465b58(_0x27d73c,_0x1871aa[_0xbcf20b(0x641)]):undefined,_0x5e897b=_0x819718!=null?_0x465b58(_0x819718,_0x1871aa['fieldPath']):undefined;if(_0x376e0a===_0x5e897b)continue;_0x76b8f(_0x376e0a)&&_0x279e75['removeSync'](_0x4fc330(_0x1871aa[_0xbcf20b(0x1e4)],_0x376e0a,_0x5d2f50,_0x3a46a4,_0x1871aa['fieldPath'])),_0x76b8f(_0x5e897b)&&_0x279e75[_0xbcf20b(0x4fe)](_0x4fc330(_0x1871aa[_0xbcf20b(0x1e4)],_0x5e897b,_0x5d2f50,_0x3a46a4,_0x1871aa[_0xbcf20b(0x641)]),0x1);}}function _0x49ad95(_0x476bb2,_0x46bb0f,_0x5efb5c,_0x4aef1a){const _0x4a7f7a=_0x55df4b,_0x273334=_0x35d246(_0x476bb2,_0x46bb0f);if(_0x273334[_0x4a7f7a(0x1e1)]===0x0)return;const _0x2ced5e=_0x169952(_0x476bb2);for(const _0x5731e0 of _0x273334){const _0x5d9845=_0x4aef1a!=null?_0x465b58(_0x4aef1a,_0x5731e0[_0x4a7f7a(0x641)]):undefined;_0x76b8f(_0x5d9845)&&_0x2ced5e[_0x4a7f7a(0x696)](_0x4fc330(_0x5731e0[_0x4a7f7a(0x1e4)],_0x5d9845,_0x46bb0f,_0x5efb5c,_0x5731e0[_0x4a7f7a(0x641)]));}}function _0x26905e(_0x2b2988,_0x3eae42,_0x3ff9eb,_0x218704){const _0x2ca0cb=_0x55df4b,_0x4aa764=_0x35d246(_0x2b2988,_0x3eae42);if(_0x4aa764[_0x2ca0cb(0x1e1)]===0x0)return[];const _0x578e2c=[];for(const _0x48eb42 of _0x4aa764){const _0x353cf2=_0x465b58(_0x218704,_0x48eb42[_0x2ca0cb(0x641)]);if(_0x353cf2==null)continue;if(!_0x2b2988[_0x2ca0cb(0x442)](_0x48eb42[_0x2ca0cb(0x1e4)])){_0x578e2c[_0x2ca0cb(0x460)]({'fieldPath':_0x48eb42[_0x2ca0cb(0x641)],'targetType':_0x48eb42[_0x2ca0cb(0x1e4)],'targetKey':_0x353cf2,'message':_0x2ca0cb(0x777)+_0x48eb42[_0x2ca0cb(0x1e4)]+'\x27\x20does\x20not\x20exist'});continue;}const _0x277939=_0x2b2988[_0x2ca0cb(0x652)](_0x48eb42[_0x2ca0cb(0x1e4)])[_0x2ca0cb(0x3c0)];!_0x277939[_0x2ca0cb(0x628)](_0x353cf2)&&_0x578e2c[_0x2ca0cb(0x460)]({'fieldPath':_0x48eb42[_0x2ca0cb(0x641)],'targetType':_0x48eb42[_0x2ca0cb(0x1e4)],'targetKey':_0x353cf2,'message':_0x2ca0cb(0x437)+_0x353cf2+_0x2ca0cb(0x62a)+_0x48eb42[_0x2ca0cb(0x1e4)]+'\x27'});}return _0x578e2c;}function _0x325340(_0x3a5ba1,_0x37245e,_0x217105,_0x152869,_0x2e0d1c,{timestamp:_0x13b005,origin:_0x2f55d8,_cascadeVisited:_0x3cf0cd}){const _0x573bdd=_0x55df4b,_0x1517ef=_0x58e5ab(_0x3a5ba1,_0x217105);if(_0x1517ef['length']===0x0)return;const _0x47268e=_0x169952(_0x3a5ba1),_0x17bffa=[];for(const [,,_0x1f9ef3,_0x3279f5,_0x4b7f31]of _0x216b58(_0x47268e,_0x217105,_0x152869)){_0x17bffa[_0x573bdd(0x460)]({'sourceType':_0x1f9ef3,'sourceKey':_0x3279f5,'fieldPath':_0x4b7f31});}if(_0x17bffa[_0x573bdd(0x1e1)]===0x0)return;for(const _0x4826c8 of _0x17bffa){const _0x3df0ce=_0x1517ef[_0x573bdd(0x678)](_0x5cfbe2=>_0x5cfbe2['sourceType']===_0x4826c8[_0x573bdd(0x52c)]&&_0x5cfbe2[_0x573bdd(0x641)]===_0x4826c8[_0x573bdd(0x641)]),_0x60b41d=_0x3df0ce?.[_0x573bdd(0x275)]||_0x573bdd(0x154);switch(_0x60b41d){case'restrict':{if(_0x2f55d8===null)throw new _0x339dc5(_0x217105,_0x152869,_0x17bffa[_0x573bdd(0x4b0)](_0x91ce99=>{const _0x4808e8=_0x573bdd,_0x2a70ca=_0x1517ef[_0x4808e8(0x678)](_0x17b0ca=>_0x17b0ca['sourceType']===_0x91ce99[_0x4808e8(0x52c)]&&_0x17b0ca[_0x4808e8(0x641)]===_0x91ce99['fieldPath']);return(_0x2a70ca?.[_0x4808e8(0x275)]||_0x4808e8(0x154))===_0x4808e8(0x319);}));break;}case _0x573bdd(0x4fd):{const _0x5cd7c7=_0x1340c4(_0x4826c8[_0x573bdd(0x52c)],_0x4826c8[_0x573bdd(0x7bb)]);if(_0x3cf0cd['has'](_0x5cd7c7))continue;_0x3a5ba1['_getType'](_0x4826c8[_0x573bdd(0x52c)])[_0x573bdd(0x3c0)][_0x573bdd(0x628)](_0x4826c8[_0x573bdd(0x7bb)])&&_0x3a5ba1['_remove'](_0x37245e,_0x4826c8[_0x573bdd(0x52c)],_0x4826c8['sourceKey'],{'timestamp':_0x13b005,'origin':_0x2f55d8,'_cascadeVisited':_0x3cf0cd});break;}case'set_null':{const _0x3cc218=_0x3a5ba1[_0x573bdd(0x652)](_0x4826c8[_0x573bdd(0x52c)])['data'],_0x489e05=_0x3cc218[_0x573bdd(0x186)](_0x4826c8[_0x573bdd(0x7bb)]);if(_0x489e05){const _0x3c55cf=_0x55159a(_0x489e05['value'],_0x4826c8[_0x573bdd(0x641)],null);_0x3a5ba1['_write'](_0x37245e,'put',_0x4826c8['sourceType'],_0x4826c8[_0x573bdd(0x7bb)],_0x3c55cf,{'timestamp':_0x13b005,'origin':_0x2f55d8,'_cascading':!![]});}break;}}}}function _0x1d9049(_0x2b8b6b){const _0x2bd43d=_0x55df4b;!_0x2b8b6b['hasType'](_0x740f4f)&&_0x2b8b6b[_0x2bd43d(0x562)](_0x740f4f);}function _0x2b3628(_0x5e0a99,_0x46ecaa,_0x1c1e7a,_0x4c5a2c,_0x4961ae,_0x458e04,_0x209d02,{timestamp:timestamp=Date[_0x55df4b(0x1b5)](),origin:origin=null}={}){const _0x2f06de=_0x55df4b;_0x1d9049(_0x5e0a99);const _0x55b561=_0x1c1e7a+'@'+_0x4c5a2c+'@'+_0x4961ae,_0x73851e={'sourceType':_0x1c1e7a,'sourceKey':_0x4c5a2c,'fieldPath':_0x4961ae,'targetType':_0x458e04,'targetKey':_0x209d02,'timestamp':timestamp,'origin':origin},_0x4b7425=_0x5e0a99['_getType'](_0x740f4f)[_0x2f06de(0x3c0)],_0xced8ac=_0x4b7425[_0x2f06de(0x186)](_0x55b561),_0x2b44f8=_0xced8ac?_0xced8ac[_0x2f06de(0x297)]+0x1:0x1;_0x4b7425[_0x2f06de(0x4fe)](_0x55b561,_0x73851e,_0x2b44f8),_0x5e0a99[_0x2f06de(0x728)]({'id':_0x2f06de(0x5a6)+_0x740f4f+'@'+_0x55b561,'type':_0x740f4f,'key':_0x55b561,'action':_0x247f7d[_0x2f06de(0x1c5)],'timestamp':timestamp,'txnId':_0x46ecaa?.['id'],'origin':origin},_0xced8ac?.['value'],_0x73851e),_0x5e0a99[_0x2f06de(0x6f3)][_0x2f06de(0x3a7)](_0x88d121[_0x2f06de(0x769)],{'sourceType':_0x1c1e7a,'sourceKey':_0x4c5a2c,'fieldPath':_0x4961ae,'targetType':_0x458e04,'targetKey':_0x209d02,'env':_0x5e0a99['name']});}function _0x535607(_0x3e22b9,_0x4cf4e9,_0xa67f07,_0x354c81,_0x3ab2f8,{timestamp:timestamp=Date[_0x55df4b(0x1b5)](),origin:origin=null}={}){const _0x27b07d=_0x55df4b;if(!_0x3e22b9['hasType'](_0x740f4f))return;const _0x135da8=_0xa67f07+'@'+_0x354c81+'@'+_0x3ab2f8,_0x121578=_0x3e22b9['_getType'](_0x740f4f)['data'],_0x4d86ef=_0x121578[_0x27b07d(0x186)](_0x135da8);if(!_0x4d86ef)return;_0x121578[_0x27b07d(0x696)](_0x135da8),_0x3e22b9[_0x27b07d(0x728)]({'id':'item:'+_0x740f4f+'@'+_0x135da8,'type':_0x740f4f,'key':_0x135da8,'action':_0x247f7d[_0x27b07d(0x5e2)],'timestamp':timestamp,'txnId':_0x4cf4e9?.['id'],'origin':origin},_0x4d86ef[_0x27b07d(0x1be)],undefined),_0x3e22b9['events'][_0x27b07d(0x3a7)](_0x88d121[_0x27b07d(0x4bc)],{'sourceType':_0xa67f07,'sourceKey':_0x354c81,'fieldPath':_0x3ab2f8,'env':_0x3e22b9[_0x27b07d(0x6bb)]});}function _0x530117(_0x3aa47b,_0x287441,_0x592a0a,_0x11f697,_0x33b2f6={}){const _0x1d0d18=_0x55df4b;if(!_0x3aa47b[_0x1d0d18(0x442)](_0x740f4f))return;const _0x43e1e4=_0x3aa47b[_0x1d0d18(0x652)](_0x740f4f)[_0x1d0d18(0x3c0)],_0x5e6df0=_0x592a0a+'@'+_0x11f697+'@',_0x7dc897=[];for(const {key:_0x5ae71a,value:_0x53a09a}of _0x43e1e4[_0x1d0d18(0x32f)]({'start':_0x5e6df0,'end':_0x5e6df0+'\uffff'})){if(_0x53a09a?.[_0x1d0d18(0x52c)]===_0x592a0a&&_0x53a09a?.[_0x1d0d18(0x7bb)]===_0x11f697)_0x7dc897[_0x1d0d18(0x460)](_0x5ae71a);}for(const _0x3dfdae of _0x7dc897){const _0x13982e=_0x43e1e4[_0x1d0d18(0x186)](_0x3dfdae);if(!_0x13982e)continue;_0x43e1e4['removeSync'](_0x3dfdae),_0x3aa47b[_0x1d0d18(0x728)]({'id':_0x1d0d18(0x5a6)+_0x740f4f+'@'+_0x3dfdae,'type':_0x740f4f,'key':_0x3dfdae,'action':_0x247f7d[_0x1d0d18(0x5e2)],'timestamp':_0x33b2f6[_0x1d0d18(0x75e)]||Date[_0x1d0d18(0x1b5)](),'txnId':_0x287441?.['id'],'origin':_0x33b2f6[_0x1d0d18(0x6cf)]},_0x13982e[_0x1d0d18(0x1be)],undefined);}}function _0x5e8b4b(_0x2f757d,_0x4d3393){const _0x2bcfcf=_0x55df4b;if(!_0x2f757d[_0x2bcfcf(0x442)](_0x740f4f))return;const _0x68ec4=_0x2f757d[_0x2bcfcf(0x652)](_0x740f4f)[_0x2bcfcf(0x3c0)],_0x42b656=_0x4d3393+'@',_0x38618b=[];for(const {key:_0x5d159d,value:_0x4b1d46}of _0x68ec4['getRange']({'start':_0x42b656,'end':_0x42b656+'\uffff'})){if(_0x4b1d46?.['sourceType']===_0x4d3393)_0x38618b[_0x2bcfcf(0x460)](_0x5d159d);}for(const _0x56d751 of _0x38618b)_0x68ec4[_0x2bcfcf(0x696)](_0x56d751);}async function _0x3a61b7(_0x5e9c5b,_0x15a568){const _0x3042cb=_0x55df4b,_0x32ca16=_0x35d246(_0x5e9c5b,_0x15a568);if(_0x32ca16['length']===0x0)return;await _0x5e9c5b[_0x3042cb(0x5e0)][_0x3042cb(0x273)](()=>{const _0x4a7d1c=_0x3042cb;for(const {key:_0x30f22b,value:_0x2d859b}of _0x5e9c5b['getRange'](_0x15a568)){_0x296938(_0x5e9c5b,_0x15a568,_0x30f22b,_0x2d859b,null);const _0xe7b490=_0x26905e(_0x5e9c5b,_0x15a568,_0x30f22b,_0x2d859b);for(const _0x7b16b of _0xe7b490){_0x2b3628(_0x5e9c5b,null,_0x15a568,_0x30f22b,_0x7b16b['fieldPath'],_0x7b16b[_0x4a7d1c(0x1e4)],_0x7b16b['targetKey']);}}});}const _0x64eb93=0x1388;async function _0x200ce6(_0x1a7d63){const _0x14f077=_0x55df4b,_0x243d6e=_0x1a7d63[_0x14f077(0x7a5)]?.['outgoing']?.[_0x14f077(0x16f)]>0x0;if(!_0x243d6e&&!_0x1a7d63[_0x14f077(0x663)])return{'dropped':0x0,'written':0x0};const _0xebb2d0=_0x169952(_0x1a7d63);let _0x5a38a8=0x0;for(;;){const _0x2d5415=Array[_0x14f077(0x17b)](_0xebb2d0[_0x14f077(0x808)]({'limit':_0x64eb93}));if(_0x2d5415[_0x14f077(0x1e1)]===0x0)break;let _0x5e6b7a=0x0;await _0x1a7d63[_0x14f077(0x5e0)]['transaction'](()=>{const _0x1d5ed1=_0x14f077;for(const _0xe569a2 of _0x2d5415)if(_0xebb2d0[_0x1d5ed1(0x696)](_0xe569a2))_0x5e6b7a++;});if(_0x5e6b7a===0x0)break;_0x5a38a8+=_0x5e6b7a;}let _0x503e08=0x0;for(const _0x39bd21 of _0x1a7d63[_0x14f077(0x7a5)][_0x14f077(0x360)][_0x14f077(0x3ad)]()){if(_0x39bd21[_0x14f077(0x169)]('~')||!_0x1a7d63['hasType'](_0x39bd21))continue;const _0x93e1aa=_0x35d246(_0x1a7d63,_0x39bd21);await _0x1a7d63[_0x14f077(0x5e0)][_0x14f077(0x273)](()=>{const _0x2e2ac2=_0x14f077;for(const {key:_0x57e86f,value:_0x4eab40}of _0x1a7d63[_0x2e2ac2(0x32f)](_0x39bd21)){for(const _0xc9d571 of _0x93e1aa){const _0xaad1b1=_0x465b58(_0x4eab40,_0xc9d571['fieldPath']);if(!_0x76b8f(_0xaad1b1))continue;_0xebb2d0['putSync'](_0x4fc330(_0xc9d571[_0x2e2ac2(0x1e4)],_0xaad1b1,_0x39bd21,_0x57e86f,_0xc9d571[_0x2e2ac2(0x641)]),0x1),_0x503e08++;}}});}return{'dropped':_0x5a38a8,'written':_0x503e08};}return okdbEnvRefs={'getFieldValue':_0x465b58,'setFieldValue':_0x55159a,'refIndexKey':_0x4fc330,'isRefTarget':_0x76b8f,'cascadeVisitKey':_0x1340c4,'extractRefs':_0x2fdb79,'rebuildRefCache':_0x54effa,'getTypeRefs':_0x35d246,'getIncomingRefs':_0x58e5ab,'getRefIndexDb':_0x169952,'updateRefIndex':_0x296938,'removeRefIndexEntries':_0x49ad95,'refIndexRowsFor':_0x216b58,'rebuildRefIndex':_0x200ce6,'checkForeignKeys':_0x26905e,'processDeleteCascade':_0x325340,'setRefViolation':_0x2b3628,'clearRefViolation':_0x535607,'clearRefViolationsForKey':_0x530117,'clearRefViolationsForType':_0x5e8b4b,'syncRefIndex':_0x3a61b7},okdbEnvRefs;}var hasRequiredOkdbSubscriptionsStore;function requireOkdbSubscriptionsStore(){const _0x4636bb=_0x36292f;if(hasRequiredOkdbSubscriptionsStore)return okdbSubscriptionsStore[_0x4636bb(0x6bd)];hasRequiredOkdbSubscriptionsStore=0x1;const _0x59ccb7=require$$0$4,{assertFilterAllowed:_0x1bff5e}=requireOkdbQueryFilter(),{rebuildRefCache:_0x4733fb}=requireOkdbEnvRefs(),_0x4a3d6a=_0x4636bb(0x165),_0x81093d=_0x4636bb(0x37a),_0x3d8b00=_0x4636bb(0x59d),_0x3a8aa5=[_0x4636bb(0x3c4),_0x4636bb(0x74e),'key'],_0x1e55da=[_0x4636bb(0x3c4),_0x4636bb(0x74e)],_0x3e87bf=0x5a*0x3e8,_0x2d323b=Math[_0x4636bb(0x55f)](_0x3e87bf/0x2);class _0x3d4309{constructor(_0x503d60,_0x573b8c={}){const _0x524351=_0x4636bb;this['okdb']=_0x503d60,this[_0x524351(0x6e5)]=Number[_0x524351(0x27f)](_0x573b8c[_0x524351(0x6e5)])&&_0x573b8c[_0x524351(0x6e5)]>0x0?_0x573b8c[_0x524351(0x6e5)]:_0x3e87bf,this['refreshThresholdMs']=Number['isFinite'](_0x573b8c[_0x524351(0x2c9)])?_0x573b8c[_0x524351(0x2c9)]:_0x2d323b,this['_sub']=null;}async[_0x4636bb(0x7dd)](){const _0x57a16c=_0x4636bb;if(this[_0x57a16c(0x6b8)])return this['_sub'];const _0x62296b=await this[_0x57a16c(0x229)][_0x57a16c(0x24f)](_0x4a3d6a,{'sync':![]});return await _0x62296b[_0x57a16c(0x110)](_0x81093d,{'indexes':[_0x1e55da]}),await _0x62296b[_0x57a16c(0x110)](_0x3d8b00),_0x62296b[_0x57a16c(0x17c)](_0x3d8b00)?_0x4733fb(_0x62296b):await _0x62296b[_0x57a16c(0x411)](_0x3d8b00,{'definition':{'type':'object','properties':{'sessionId':{'type':_0x57a16c(0x635),'ref':{'type':_0x81093d,'onDelete':_0x57a16c(0x4fd)}},'dataEnv':{'type':'string'},'type':{'type':_0x57a16c(0x635)},'key':{'type':_0x57a16c(0x635)}},'required':[_0x57a16c(0x56a),'dataEnv',_0x57a16c(0x74e),'key']},'enforce':!![]}),await _0x62296b[_0x57a16c(0x110)](_0x3d8b00,{'indexes':[_0x3a8aa5]}),await _0x62296b[_0x57a16c(0x2b9)](_0x3d8b00,_0x3a8aa5),await _0x62296b['indexReady'](_0x81093d,_0x1e55da),this[_0x57a16c(0x6b8)]=_0x62296b,_0x62296b;}['_env'](){const _0x363e12=_0x4636bb;if(!this[_0x363e12(0x6b8)])throw new Error(_0x363e12(0x4d3));return this['_sub'];}async['createSession']({sessionId:_0x44a295,dataEnv:_0x46fda4,type:_0x1ebb33,filter:filter=null,ttlMs:_0x3996d1}={}){const _0x2ae1d9=_0x4636bb,_0x52b212=this[_0x2ae1d9(0x3b4)]();_0x1bff5e(filter);const _0x2e83e3=_0x44a295!=null&&String(_0x44a295)['length']>0x0?String(_0x44a295):_0x59ccb7[_0x2ae1d9(0x11c)](),_0x151c3b=Number[_0x2ae1d9(0x27f)](_0x3996d1)&&_0x3996d1>0x0?_0x3996d1:this['ttlMs'],_0x5576a1=Date[_0x2ae1d9(0x1b5)](),_0x543329={'sessionId':_0x2e83e3,'dataEnv':_0x46fda4,'type':_0x1ebb33,'filter':filter??null,'version':0x0,'createdAt':_0x5576a1,'expiresAt':_0x5576a1+_0x151c3b};return await _0x52b212[_0x2ae1d9(0x4f8)](_0x81093d,_0x2e83e3,_0x543329,{'ttl':_0x151c3b}),{'sessionId':_0x2e83e3,'version':0x0};}['getSession'](_0x54ebce){const _0x402b32=_0x4636bb;if(!_0x54ebce)return null;return this['_env']()[_0x402b32(0x1d2)](_0x81093d,String(_0x54ebce))??null;}async['closeSession'](_0x16a3b4){const _0x458198=_0x4636bb,_0x419d37=this[_0x458198(0x3b4)](),_0x203808=String(_0x16a3b4);if(!_0x419d37[_0x458198(0x1d2)](_0x81093d,_0x203808))return![];return await _0x419d37[_0x458198(0x4ec)](_0x81093d,_0x203808),!![];}async[_0x4636bb(0x3cf)](_0x327e79){const _0x52d1e2=_0x4636bb,_0x434330=this[_0x52d1e2(0x3b4)](),_0x514d2f=String(_0x327e79),_0x1a8436=_0x434330[_0x52d1e2(0x1d2)](_0x81093d,_0x514d2f);if(!_0x1a8436)return null;const _0x300c73=(Number[_0x52d1e2(0x27f)](_0x1a8436[_0x52d1e2(0x297)])?_0x1a8436[_0x52d1e2(0x297)]:0x0)+0x1;return await _0x434330[_0x52d1e2(0x4f8)](_0x81093d,_0x514d2f,{..._0x1a8436,'version':_0x300c73}),_0x300c73;}async[_0x4636bb(0x22a)](_0x5b35a9,_0x190b5d){const _0x276483=_0x4636bb,_0x31382c=this[_0x276483(0x3b4)](),_0x3ae532=String(_0x5b35a9);if(!_0x31382c[_0x276483(0x1d2)](_0x81093d,_0x3ae532))return![];const _0x38e56a=Number[_0x276483(0x27f)](_0x190b5d)&&_0x190b5d>0x0?_0x190b5d:this['ttlMs'];if(this['_isFar'](_0x3ae532))return![];return await _0x31382c[_0x276483(0x625)](_0x81093d,_0x3ae532,_0x38e56a),await this[_0x276483(0x3c2)](_0x3ae532,_0x38e56a),!![];}async[_0x4636bb(0x252)](_0x3cace9,_0x484e24){const _0xef8ab1=_0x4636bb,_0x5a3ba=this['_env'](),_0x3d0351=Number['isFinite'](_0x484e24)&&_0x484e24>0x0?_0x484e24:this[_0xef8ab1(0x6e5)],_0x4caa70=Date[_0xef8ab1(0x1b5)](),_0x29208a=[];for(const _0x172935 of _0x3cace9||[]){const _0x456e7e=String(_0x172935),_0x436154=_0x5a3ba[_0xef8ab1(0x1d2)](_0x81093d,_0x456e7e);if(!_0x436154)continue;if(this[_0xef8ab1(0x45b)](_0x456e7e,_0x4caa70))continue;_0x29208a[_0xef8ab1(0x460)]({'id':_0x456e7e,'cur':_0x436154});}if(_0x29208a[_0xef8ab1(0x1e1)]===0x0)return[];return await _0x5a3ba[_0xef8ab1(0x1c2)](async _0x558a9e=>{const _0x535023=_0xef8ab1;for(const {id:_0x3e70c4,cur:_0xd58c73}of _0x29208a){_0x558a9e['put'](_0x81093d,_0x3e70c4,{..._0xd58c73,'expiresAt':_0x4caa70+_0x3d0351}),_0x558a9e[_0x535023(0x625)](_0x81093d,_0x3e70c4,_0x3d0351);}}),_0x29208a[_0xef8ab1(0x2fe)](_0x228b34=>_0x228b34['id']);}['_isFar'](_0x13e36f,_0xb7f62=Date['now']()){const _0x5a7a1f=_0x4636bb,_0x4ea4f1=this[_0x5a7a1f(0x3b4)]()[_0x5a7a1f(0x50d)](_0x81093d,String(_0x13e36f));if(!_0x4ea4f1)return![];return _0x4ea4f1['expiresAt']-_0xb7f62>this['refreshThresholdMs'];}async['_syncExpiresAtField'](_0x49639b,_0x168bb3){const _0x5aa327=_0x4636bb,_0x5a26a5=this[_0x5aa327(0x3b4)](),_0x35a0cb=_0x5a26a5['get'](_0x81093d,_0x49639b);if(!_0x35a0cb)return;await _0x5a26a5[_0x5aa327(0x4f8)](_0x81093d,_0x49639b,{..._0x35a0cb,'expiresAt':Date[_0x5aa327(0x1b5)]()+_0x168bb3});}async[_0x4636bb(0x4cf)](_0x1fed1e,_0x75356c,_0x5a0d0b){const _0x5bea59=_0x4636bb,_0x1e934a=this[_0x5bea59(0x3b4)](),_0x216743=String(_0x1fed1e),_0x3b4448=_0x1e934a[_0x5bea59(0x1d2)](_0x81093d,_0x216743);if(!_0x3b4448)throw new Error('subscriptions-store:\x20addInterest\x20on\x20unknown\x20session\x20'+_0x216743);const _0x5ed915=_0x59ccb7[_0x5bea59(0x11c)]();return await _0x1e934a[_0x5bea59(0x4f8)](_0x3d8b00,_0x5ed915,{'sessionId':_0x216743,'dataEnv':String(_0x3b4448[_0x5bea59(0x3c4)]),'type':String(_0x75356c),'key':String(_0x5a0d0b)}),_0x5ed915;}async[_0x4636bb(0x58c)](_0x3077f3,_0x15af83,{retries:retries=0x8}={}){const _0x31b104=_0x4636bb,_0x566f2d=this[_0x31b104(0x3b4)]();for(let _0x274777=0x0;;_0x274777++){const _0x1c075f=_0x566f2d['getEntry'](_0x81093d,_0x3077f3);if(!_0x1c075f)return null;const _0x44be7a=_0x1c075f['value'],_0x44e395=(Number['isFinite'](_0x44be7a[_0x31b104(0x297)])?_0x44be7a[_0x31b104(0x297)]:0x0)+0x1,{sessionPatch:sessionPatch={},applyInterests:applyInterests=null}=_0x15af83(_0x44be7a,_0x566f2d)||{};try{return await _0x566f2d[_0x31b104(0x1c2)](async _0x47d31b=>{const _0xd37c80=_0x31b104;applyInterests?.(_0x47d31b),_0x47d31b['put'](_0x81093d,_0x3077f3,{..._0x44be7a,...sessionPatch,'version':_0x44e395},{'ifVersion':_0x1c075f[_0xd37c80(0x297)]});}),_0x44e395;}catch(_0x1a110e){if(_0x1a110e?.[_0x31b104(0x6cb)]===_0x31b104(0x1ae)&&_0x274777<retries)continue;throw _0x1a110e;}}}async[_0x4636bb(0x587)](_0x3ba58d,{add:add=[],remove:remove=[]}={}){const _0x2b00b7=_0x4636bb,_0x15f814=String(_0x3ba58d);return this[_0x2b00b7(0x58c)](_0x15f814,(_0x246738,_0x43a318)=>{const _0x46abd3=_0x2b00b7,_0x420304=String(_0x246738[_0x46abd3(0x3c4)]),_0x2f0e10=new Set((remove||[])[_0x46abd3(0x2fe)](_0x3b6741=>String(_0x3b6741[_0x46abd3(0x74e)])+'\x00'+String(_0x3b6741['key']))),_0x5b68f4=[];if(_0x2f0e10['size']>0x0)for(const {key:_0x138038,value:_0x22dae6}of _0x43a318[_0x46abd3(0x32f)](_0x3d8b00,{})){if(!_0x22dae6||_0x22dae6[_0x46abd3(0x56a)]!==_0x15f814)continue;if(_0x2f0e10[_0x46abd3(0x3a9)](_0x22dae6['type']+'\x00'+_0x22dae6[_0x46abd3(0x119)]))_0x5b68f4[_0x46abd3(0x460)](_0x138038);}const _0x1c2c86=(add||[])[_0x46abd3(0x2fe)](_0x789928=>({'id':_0x59ccb7[_0x46abd3(0x11c)](),'type':String(_0x789928[_0x46abd3(0x74e)]),'key':String(_0x789928[_0x46abd3(0x119)])}));return{'applyInterests':_0x16c832=>{const _0xe65db5=_0x46abd3;for(const _0x5c10bb of _0x5b68f4)_0x16c832[_0xe65db5(0x4ec)](_0x3d8b00,_0x5c10bb);for(const _0x57c7f2 of _0x1c2c86)_0x16c832[_0xe65db5(0x4f8)](_0x3d8b00,_0x57c7f2['id'],{'sessionId':_0x15f814,'dataEnv':_0x420304,'type':_0x57c7f2[_0xe65db5(0x74e)],'key':_0x57c7f2[_0xe65db5(0x119)]});}};});}async[_0x4636bb(0x684)](_0x501433,_0x50be29){const _0x4898af=_0x4636bb;_0x1bff5e(_0x50be29);const _0x4aaf06=String(_0x501433);return this[_0x4898af(0x58c)](_0x4aaf06,()=>({'sessionPatch':{'filter':_0x50be29??null}}));}async[_0x4636bb(0x133)](_0x385c7e,_0x4699eb,_0x427145){const _0x15a132=_0x4636bb,_0x5a1710=this[_0x15a132(0x3b4)](),_0x3d4756=String(_0x385c7e),_0x2a2afd=String(_0x4699eb),_0x98075f=String(_0x427145),_0x267770=[];for(const {key:_0x3b1e1f,value:_0x336afd}of _0x5a1710[_0x15a132(0x32f)](_0x3d8b00,{})){if(_0x336afd&&_0x336afd[_0x15a132(0x56a)]===_0x3d4756&&_0x336afd['type']===_0x2a2afd&&_0x336afd[_0x15a132(0x119)]===_0x98075f)_0x267770['push'](_0x3b1e1f);}for(const _0x145038 of _0x267770)await _0x5a1710[_0x15a132(0x4ec)](_0x3d8b00,_0x145038);return _0x267770[_0x15a132(0x1e1)];}async[_0x4636bb(0x499)](_0x129ba5,_0x4d2e53){const _0x3813f0=_0x4636bb,_0x5b2267=String(_0x129ba5);return this[_0x3813f0(0x58c)](_0x5b2267,(_0x2e9132,_0x5a9514)=>{const _0x515b5b=_0x3813f0,_0x52dd6f=String(_0x2e9132['dataEnv']),_0x272108=[];for(const {key:_0x348522,value:_0x4ef98d}of _0x5a9514[_0x515b5b(0x32f)](_0x3d8b00,{})){if(_0x4ef98d&&_0x4ef98d['sessionId']===_0x5b2267)_0x272108[_0x515b5b(0x460)](_0x348522);}const _0x233d8c=(_0x4d2e53||[])[_0x515b5b(0x2fe)](_0x30bf21=>({'id':_0x59ccb7[_0x515b5b(0x11c)](),'type':String(_0x30bf21[_0x515b5b(0x74e)]),'key':String(_0x30bf21[_0x515b5b(0x119)])}));return{'applyInterests':_0x19f858=>{const _0x44ab0e=_0x515b5b;for(const _0x385ebc of _0x272108)_0x19f858[_0x44ab0e(0x4ec)](_0x3d8b00,_0x385ebc);for(const _0x18538a of _0x233d8c)_0x19f858[_0x44ab0e(0x4f8)](_0x3d8b00,_0x18538a['id'],{'sessionId':_0x5b2267,'dataEnv':_0x52dd6f,'type':_0x18538a[_0x44ab0e(0x74e)],'key':_0x18538a[_0x44ab0e(0x119)]});}};});}['sessionsForKey'](_0x42e2be,_0xc93bd1,_0x12bbb6){const _0x10b814=_0x4636bb,_0x4c9c4a=this[_0x10b814(0x3b4)](),_0x5d043e=String(_0x42e2be),_0x36f573=String(_0xc93bd1),_0xac118f=String(_0x12bbb6),_0x23f050=new Set();for(const {value:_0x82713d}of _0x4c9c4a[_0x10b814(0x4de)](_0x3d8b00,_0x3a8aa5,{'start':[_0x5d043e,_0x36f573,_0xac118f],'end':[_0x5d043e,_0x36f573,_0xac118f,'']})){if(_0x82713d&&_0x82713d[_0x10b814(0x56a)])_0x23f050[_0x10b814(0x181)](_0x82713d[_0x10b814(0x56a)]);}return[..._0x23f050];}[_0x4636bb(0x5a0)](_0x4164fd,_0x2833c9){const _0x497dba=_0x4636bb,_0x5ee00e=this[_0x497dba(0x3b4)](),_0x3b3323=String(_0x4164fd),_0x12dd96=String(_0x2833c9),_0x20a77d=[];for(const {value:_0x2c45fb}of _0x5ee00e['byIndex'](_0x81093d,_0x1e55da,{'start':[_0x3b3323,_0x12dd96],'end':[_0x3b3323,_0x12dd96,'\uffff']})){if(!_0x2c45fb||_0x2c45fb['dataEnv']!==_0x3b3323||_0x2c45fb[_0x497dba(0x74e)]!==_0x12dd96)continue;if(_0x2c45fb[_0x497dba(0x4b0)]==null)continue;_0x20a77d[_0x497dba(0x460)]({'sessionId':_0x2c45fb[_0x497dba(0x56a)],'filter':_0x2c45fb[_0x497dba(0x4b0)],'version':Number[_0x497dba(0x27f)](_0x2c45fb[_0x497dba(0x297)])?_0x2c45fb[_0x497dba(0x297)]:0x0});}return _0x20a77d;}async[_0x4636bb(0x46d)](){const _0x18e754=_0x4636bb;return this['_env']()[_0x18e754(0x62d)]();}}return okdbSubscriptionsStore[_0x4636bb(0x6bd)]=_0x3d4309,okdbSubscriptionsStore[_0x4636bb(0x6bd)]['SUB_ENV']=_0x4a3d6a,okdbSubscriptionsStore[_0x4636bb(0x6bd)]['T_SESSION']=_0x81093d,okdbSubscriptionsStore[_0x4636bb(0x6bd)]['T_INTEREST']=_0x3d8b00,okdbSubscriptionsStore['exports'][_0x4636bb(0x7f0)]=_0x3a8aa5,okdbSubscriptionsStore['exports']['SESSION_TYPE_INDEX']=_0x1e55da,okdbSubscriptionsStore[_0x4636bb(0x6bd)][_0x4636bb(0x277)]=_0x3e87bf,okdbSubscriptionsStore[_0x4636bb(0x6bd)];}var version=_0x36292f(0x3ba),require$$29={'version':version},okdbEnginesEnums,hasRequiredOkdbEnginesEnums;function requireOkdbEnginesEnums(){const _0x436c32=_0x36292f;if(hasRequiredOkdbEnginesEnums)return okdbEnginesEnums;hasRequiredOkdbEnginesEnums=0x1;const _0xcc207c=_0x436c32(0x150),_0x5b6281=0xa,_0x555d98=Object[_0x436c32(0x191)]({'CREATED':'created','ONLINE':'online','STOPPED':'stopped','INACTIVE':_0x436c32(0x7b5),'ERROR':'error','REMOVED':_0x436c32(0x161)}),_0x5d32e3=Object[_0x436c32(0x191)]({'STARTED':_0x436c32(0x28f),'STOPPED':_0x436c32(0x63f),'ERROR':'error','INSTALLED':_0x436c32(0x3da),'UNINSTALLED':'uninstalled'}),_0x11cfc3=Object[_0x436c32(0x191)](new Set([_0x555d98[_0x436c32(0x6ac)],_0x555d98['STOPPED'],_0x555d98[_0x436c32(0x757)],_0x555d98['ERROR']]));function _0x5d7054(_0x22bdcd){const _0xa2b7e3=_0x436c32;return _0x22bdcd?.[_0xa2b7e3(0x1e0)]===![]?_0x555d98['STOPPED']:_0xa2b7e3(0x3d6);}return okdbEnginesEnums={'TYPE_ENGINES':_0xcc207c,'MAX_UPDATE_RETRIES':_0x5b6281,'ENGINE_STATUS':_0x555d98,'ENGINE_EVENTS':_0x5d32e3,'UPDATABLE_STATUSES':_0x11cfc3,'durableOnlyEngineState':_0x5d7054},okdbEnginesEnums;}var enums,hasRequiredEnums;function requireEnums(){const _0xc28a00=_0x36292f;if(hasRequiredEnums)return enums;hasRequiredEnums=0x1;const _0x573d84=Object[_0xc28a00(0x191)]({'EMBEDDER':_0xc28a00(0x53e),'INDEXER':_0xc28a00(0x597),'SEARCH':_0xc28a00(0x35c),'WORKER':_0xc28a00(0x68f)}),_0x384c42=Object[_0xc28a00(0x191)]({'PENDING':'pending','DONE':'done','FAILED':'failed','DELETED':_0xc28a00(0x308)}),_0x13383e=Object[_0xc28a00(0x191)]({'INDEXER_READY':_0xc28a00(0x405),'INDEXER_FLUSHED':_0xc28a00(0x148),'INDEXER_DOC_DONE':_0xc28a00(0x581),'INDEXER_DOC_FAILED':_0xc28a00(0x1bb),'INDEXER_DOC_QUEUED':_0xc28a00(0x328),'STRATEGY_REGISTERED':_0xc28a00(0x5b1),'DOC_STATUS_CHANGE':'embeddings:doc:status_change','PIPELINE_READY':_0xc28a00(0x18b)}),_0x49f486=Object[_0xc28a00(0x191)]({'MODELS':_0xc28a00(0x106),'DOC_STATUS_PREFIX':_0xc28a00(0x535),'VEC_PREFIX':_0xc28a00(0x6d3)});return enums={'ENGINE_TYPES':_0x573d84,'INDEXER_DOC_STATUS':_0x384c42,'EMBEDDINGS_EVENTS':_0x13383e,'INTERNAL_TYPES':_0x49f486},enums;}var okdbQueueValidate,hasRequiredOkdbQueueValidate;function requireOkdbQueueValidate(){const _0x30fa9a=_0x36292f;if(hasRequiredOkdbQueueValidate)return okdbQueueValidate;hasRequiredOkdbQueueValidate=0x1;const _0x26a8ae=Object[_0x30fa9a(0x191)]({'PENDING':_0x30fa9a(0x59e),'RUNNING':'running','DONE':_0x30fa9a(0x707),'FAILED':_0x30fa9a(0x54c)}),_0x201a5e=Object[_0x30fa9a(0x191)]({'ACTIVE':_0x30fa9a(0x1ba),'PAUSED':_0x30fa9a(0x488),'DRAINING':_0x30fa9a(0x3dc)}),_0x28e506=Object[_0x30fa9a(0x191)]({'ENQUEUED':'queue:enqueued','DONE':'queue:done','FAILED':_0x30fa9a(0x375),'RETRY':_0x30fa9a(0x6c3),'RESCHEDULED':_0x30fa9a(0x243),'REMOVED':'queue:removed','RECONCILED':'queue:reconciled','CLEAR_PROGRESS':_0x30fa9a(0x767),'CLEAR_DONE':'queue:clear-done','LOG':_0x30fa9a(0x69b)}),_0x58cc49=Object[_0x30fa9a(0x191)]([_0x30fa9a(0x3f9),_0x30fa9a(0x7ba),_0x30fa9a(0x521),_0x30fa9a(0x19f)]),_0x4a347d=0x1,_0x4b0b5f=0xc350,_0x54fe15=0x400,_0x260126=0x800;function _0xc45a2c(_0x8e595b){const _0x33dd4e=_0x30fa9a;return _0x8e595b!=null&&typeof _0x8e595b===_0x33dd4e(0x304)&&(_0x8e595b[_0x33dd4e(0x203)]===Object||Object[_0x33dd4e(0x4ac)](_0x8e595b)===null);}function _0x46bc4a(_0x482d62,_0x5f2d62,_0x6511d7,_0x48239c){const _0x24fc7e=_0x30fa9a;if(_0x482d62==null)return _0x5f2d62;const _0x4f38e4=Number(_0x482d62);if(!Number['isFinite'](_0x4f38e4))return _0x5f2d62;const _0x2958ec=Math[_0x24fc7e(0x104)](_0x4f38e4);if(_0x2958ec<_0x6511d7)return _0x6511d7;if(_0x2958ec>_0x48239c)return _0x48239c;return _0x2958ec;}function _0x13c7c9(_0x4f127f){const _0xbd7c3c=_0x30fa9a;if(!_0x4f127f)return[];if(typeof _0x4f127f==='string')_0x4f127f=[_0x4f127f];if(!Array['isArray'](_0x4f127f))throw new Error('tags\x20must\x20be\x20array\x20or\x20string');const _0xe4e253=[],_0x43d07d=new Set();for(const _0x576db8 of _0x4f127f){if(_0x576db8==null)continue;const _0x25c6c6=String(_0x576db8)['trim']();if(!_0x25c6c6)continue;if(_0x25c6c6[_0xbd7c3c(0x1e1)]>0x80)throw new Error(_0xbd7c3c(0x364));if(_0x43d07d['has'](_0x25c6c6))continue;_0x43d07d[_0xbd7c3c(0x181)](_0x25c6c6),_0xe4e253['push'](_0x25c6c6);if(_0xe4e253['length']>=0x20)break;}return _0xe4e253;}function _0x5cb795(_0x496351){const _0x335ece=_0x30fa9a;if(_0x496351==null)return null;const _0x5d9f50=String(_0x496351)[_0x335ece(0x31b)]();if(!_0x5d9f50)return null;if(_0x5d9f50[_0x335ece(0x1e1)]>0x80)throw new Error(_0x335ece(0x78b));return _0x5d9f50;}function _0x473f4b(_0x25adff,_0x374000=0x1){const _0x3c99ef=_0x30fa9a;if(_0x25adff==null)return[];if(typeof _0x25adff===_0x3c99ef(0x635)){const _0x551f7f=_0x5cb795(_0x25adff);if(!_0x551f7f)return[];return[{'id':_0x551f7f,'tokens':_0x374000}];}if(!Array['isArray'](_0x25adff))throw new Error(_0x3c99ef(0x476));const _0x255f3a=[],_0x2d25cf=new Set();for(const _0x42222b of _0x25adff){let _0x39b4ab,_0x255586;if(Array[_0x3c99ef(0x486)](_0x42222b))[_0x39b4ab,_0x255586]=_0x42222b;else{if(_0x42222b&&typeof _0x42222b===_0x3c99ef(0x304))({id:_0x39b4ab,tokens:_0x255586}=_0x42222b);else{if(typeof _0x42222b===_0x3c99ef(0x635))_0x39b4ab=_0x42222b,_0x255586=_0x374000;else continue;}}_0x39b4ab=_0x5cb795(_0x39b4ab);if(!_0x39b4ab)continue;const _0x1382e5=_0x255586==null?_0x374000:Math['trunc'](Number(_0x255586));if(!Number[_0x3c99ef(0x27f)](_0x1382e5)||_0x1382e5<0x1)throw new Error(_0x3c99ef(0x697)+_0x39b4ab+_0x3c99ef(0x5ce));if(_0x1382e5>0xf4240)throw new Error(_0x3c99ef(0x697)+_0x39b4ab+_0x3c99ef(0x6e2));if(_0x2d25cf['has'](_0x39b4ab))throw new Error('duplicate\x20bucket:\x20'+_0x39b4ab);_0x2d25cf[_0x3c99ef(0x181)](_0x39b4ab),_0x255f3a[_0x3c99ef(0x460)]({'id':_0x39b4ab,'tokens':_0x1382e5});}return _0x255f3a;}function _0xd7881b(_0x2d27a7,_0x36aa24=0x400){if(_0x2d27a7==null)return null;const _0x26dc0f=String(_0x2d27a7)['slice'](0x0,_0x36aa24);return _0x26dc0f||null;}function _0x23ea0b(_0x827e13){const _0x5ec8bb=_0x30fa9a;if(_0x827e13==null)return null;if(_0x827e13[_0x5ec8bb(0x119)]!==undefined&&_0x827e13['value']!==undefined)return _0x827e13;return{'key':_0x827e13['id']??null,'value':_0x827e13};}function _0x133a67(_0x2975ca){const _0x517a8c=_0x30fa9a;let _0x52bde5=_0x2975ca;if(typeof _0x2975ca==='string')_0x52bde5={'message':_0x2975ca};if(!_0xc45a2c(_0x52bde5))throw new Error(_0x517a8c(0x198));const _0x59a8bf=_0x52bde5[_0x517a8c(0x48a)]==null?'info':String(_0x52bde5[_0x517a8c(0x48a)])[_0x517a8c(0x2e4)]();if(!_0x58cc49['includes'](_0x59a8bf))throw new Error(_0x517a8c(0x4ad)+_0x59a8bf);if(_0x52bde5[_0x517a8c(0x79d)]==null)throw new Error(_0x517a8c(0x3bc));const _0x12896a=String(_0x52bde5[_0x517a8c(0x79d)])[_0x517a8c(0x6ea)](0x0,_0x54fe15);let _0x191a03=null;if(_0x52bde5[_0x517a8c(0x64d)]!=null){if(!_0xc45a2c(_0x52bde5[_0x517a8c(0x64d)]))throw new Error(_0x517a8c(0x51d));if(JSON[_0x517a8c(0x74c)](_0x52bde5[_0x517a8c(0x64d)])[_0x517a8c(0x1e1)]>_0x260126)throw new Error('log\x20entry\x20fields\x20too\x20large\x20(>2KB\x20serialized)');_0x191a03=_0x52bde5[_0x517a8c(0x64d)];}return{'level':_0x59a8bf,'message':_0x12896a,'fields':_0x191a03,'ts':Date[_0x517a8c(0x1b5)]()};}function _0x3d88b4(_0x1c33cb){if(_0x1c33cb==null)return;if(!Number['isInteger'](_0x1c33cb)||_0x1c33cb<_0x4a347d||_0x1c33cb>_0x4b0b5f)throw new Error('logCap\x20must\x20be\x20null\x20or\x20integer\x20in\x20['+_0x4a347d+',\x20'+_0x4b0b5f+']');}function _0x4adfe5(_0x3cfea2){const _0x4d963f=_0x30fa9a;if(!_0xc45a2c(_0x3cfea2))throw new Error(_0x4d963f(0x15e));if(typeof _0x3cfea2['id']!=='string'||_0x3cfea2['id'][_0x4d963f(0x1e1)]<0x8)throw new Error('job.id\x20must\x20be\x20string');if(typeof _0x3cfea2[_0x4d963f(0x74e)]!=='string'||!_0x3cfea2[_0x4d963f(0x74e)])throw new Error(_0x4d963f(0x531));if(!Object[_0x4d963f(0x5ab)](_0x26a8ae)[_0x4d963f(0x459)](_0x3cfea2[_0x4d963f(0x327)]))throw new Error(_0x4d963f(0x75a)+_0x3cfea2[_0x4d963f(0x327)]);for(const _0x3c4f3f of[_0x4d963f(0x1b4),_0x4d963f(0x34c),'updated']){if(typeof _0x3cfea2[_0x3c4f3f]!==_0x4d963f(0x2d3)||!Number[_0x4d963f(0x27f)](_0x3cfea2[_0x3c4f3f]))throw new Error(_0x4d963f(0x6dd)+_0x3c4f3f+_0x4d963f(0x3a3));}if(_0x3cfea2[_0x4d963f(0x2c8)]!=null&&(typeof _0x3cfea2['finished']!==_0x4d963f(0x2d3)||!Number['isFinite'](_0x3cfea2[_0x4d963f(0x2c8)])))throw new Error(_0x4d963f(0x343));if(!Number['isInteger'](_0x3cfea2[_0x4d963f(0x7fb)])||_0x3cfea2[_0x4d963f(0x7fb)]<0x0)throw new Error(_0x4d963f(0x1aa));if(!Number[_0x4d963f(0x5cd)](_0x3cfea2[_0x4d963f(0x31e)]))throw new Error('job.priority\x20must\x20be\x20int');if(_0x3cfea2[_0x4d963f(0x2a5)]!==null&&_0x3cfea2[_0x4d963f(0x2a5)]!==Infinity&&(!Number[_0x4d963f(0x5cd)](_0x3cfea2[_0x4d963f(0x2a5)])||_0x3cfea2[_0x4d963f(0x2a5)]<0x1))throw new Error(_0x4d963f(0x28b));if(_0x3cfea2[_0x4d963f(0x35f)]!=null&&(!Number[_0x4d963f(0x5cd)](_0x3cfea2[_0x4d963f(0x35f)])||_0x3cfea2[_0x4d963f(0x35f)]<0x0))throw new Error(_0x4d963f(0x469));if(_0x3cfea2[_0x4d963f(0x171)]!=null&&(typeof _0x3cfea2[_0x4d963f(0x171)]!=='number'||_0x3cfea2[_0x4d963f(0x171)]<0x1))throw new Error(_0x4d963f(0x790));if(_0x3cfea2['claim_id']!=null&&typeof _0x3cfea2['claim_id']!==_0x4d963f(0x635))throw new Error(_0x4d963f(0x320));if(_0x3cfea2['claim_expires']!=null&&(typeof _0x3cfea2['claim_expires']!==_0x4d963f(0x2d3)||!Number[_0x4d963f(0x27f)](_0x3cfea2[_0x4d963f(0x402)])))throw new Error(_0x4d963f(0x5f3));if(_0x3cfea2[_0x4d963f(0x5c0)]!=null&&typeof _0x3cfea2[_0x4d963f(0x5c0)]!==_0x4d963f(0x635))throw new Error(_0x4d963f(0x500));if(_0x3cfea2[_0x4d963f(0x79a)]!=null&&(!Number[_0x4d963f(0x5cd)](_0x3cfea2[_0x4d963f(0x79a)])||_0x3cfea2[_0x4d963f(0x79a)]<0x1))throw new Error(_0x4d963f(0x2e8));if(_0x3cfea2[_0x4d963f(0x61f)]!=null){if(!Array[_0x4d963f(0x486)](_0x3cfea2['buckets']))throw new Error('job.buckets\x20must\x20be\x20array|null');for(const _0x620e78 of _0x3cfea2['buckets']){if(!_0x620e78||typeof _0x620e78!==_0x4d963f(0x304))throw new Error(_0x4d963f(0x691));if(typeof _0x620e78['id']!==_0x4d963f(0x635)||!_0x620e78['id'][_0x4d963f(0x31b)]())throw new Error(_0x4d963f(0x812));if(!Number[_0x4d963f(0x5cd)](_0x620e78[_0x4d963f(0x7ec)])||_0x620e78[_0x4d963f(0x7ec)]<0x1)throw new Error('job.buckets[].tokens\x20must\x20be\x20int\x20>=\x201');}}if(_0x3cfea2[_0x4d963f(0x602)]!=null&&typeof _0x3cfea2[_0x4d963f(0x602)]!==_0x4d963f(0x635))throw new Error('job.cron\x20must\x20be\x20string|null');if(_0x3cfea2[_0x4d963f(0x692)]!=null&&typeof _0x3cfea2['idempotency_key']!==_0x4d963f(0x635))throw new Error(_0x4d963f(0x41d));if(!Array[_0x4d963f(0x486)](_0x3cfea2[_0x4d963f(0x207)]))throw new Error(_0x4d963f(0x26e));if(_0x3cfea2[_0x4d963f(0x644)]!=null&&typeof _0x3cfea2[_0x4d963f(0x644)]!==_0x4d963f(0x635))throw new Error(_0x4d963f(0x3c5));if(_0x3cfea2[_0x4d963f(0x187)]!=null&&typeof _0x3cfea2[_0x4d963f(0x187)]!==_0x4d963f(0x635))throw new Error(_0x4d963f(0x66d));if(_0x3cfea2[_0x4d963f(0x780)]!=null&&typeof _0x3cfea2[_0x4d963f(0x780)]!=='string')throw new Error('job.status_message\x20must\x20be\x20string|null');if(_0x3cfea2['error_stack']!=null&&typeof _0x3cfea2['error_stack']!==_0x4d963f(0x635))throw new Error(_0x4d963f(0x664));for(const _0x35ec3e of[_0x4d963f(0x313),_0x4d963f(0x3ef)]){const _0x4fd84c=_0x3cfea2[_0x35ec3e];if(_0x4fd84c!=null&&(!Number[_0x4d963f(0x5cd)](_0x4fd84c)||_0x4fd84c<0x0))throw new Error('job.'+_0x35ec3e+_0x4d963f(0x607));}_0x3d88b4(_0x3cfea2['logCap']);}function _0xa8c11b(_0x1253c0){const _0x54e1d6=_0x30fa9a;if(!_0xc45a2c(_0x1253c0))throw new Error(_0x54e1d6(0x40e));if(typeof _0x1253c0['id']!==_0x54e1d6(0x635)||!_0x1253c0['id']['trim']())throw new Error('job_type.id\x20must\x20be\x20non-empty\x20string');if(!Object[_0x54e1d6(0x5ab)](_0x201a5e)[_0x54e1d6(0x459)](_0x1253c0[_0x54e1d6(0x327)]))throw new Error(_0x54e1d6(0x189)+_0x1253c0[_0x54e1d6(0x327)]);if(_0x1253c0['max_concurrency']!=null&&(!Number['isInteger'](_0x1253c0[_0x54e1d6(0x56d)])||_0x1253c0['max_concurrency']<0x1))throw new Error(_0x54e1d6(0x3fd));if(_0x1253c0[_0x54e1d6(0x13d)]!=null){if(!_0xc45a2c(_0x1253c0[_0x54e1d6(0x13d)]))throw new Error(_0x54e1d6(0x4cd));const _0x184cd2=_0x1253c0[_0x54e1d6(0x13d)];if(_0x184cd2[_0x54e1d6(0x2a5)]!=null&&(!Number['isInteger'](_0x184cd2[_0x54e1d6(0x2a5)])||_0x184cd2['max_tries']<0x1))throw new Error(_0x54e1d6(0x1ed));if(_0x184cd2[_0x54e1d6(0x35f)]!=null&&(!Number[_0x54e1d6(0x5cd)](_0x184cd2['retry_delay'])||_0x184cd2['retry_delay']<0x0))throw new Error('job_type.defaults.retry_delay\x20must\x20be\x20int\x20>=\x200\x20or\x20null');if(_0x184cd2[_0x54e1d6(0x171)]!=null&&(typeof _0x184cd2['backoff_multiplier']!==_0x54e1d6(0x2d3)||_0x184cd2['backoff_multiplier']<0x1))throw new Error(_0x54e1d6(0x5c1));if(_0x184cd2[_0x54e1d6(0x31e)]!=null&&!Number[_0x54e1d6(0x5cd)](_0x184cd2[_0x54e1d6(0x31e)]))throw new Error(_0x54e1d6(0x3f3));if(_0x184cd2[_0x54e1d6(0x33c)]!=null&&(!Number['isInteger'](_0x184cd2[_0x54e1d6(0x33c)])||_0x184cd2[_0x54e1d6(0x33c)]<0x0))throw new Error(_0x54e1d6(0x291));for(const _0x277f5f of[_0x54e1d6(0x313),_0x54e1d6(0x3ef)]){if(_0x184cd2[_0x277f5f]!=null&&(!Number[_0x54e1d6(0x5cd)](_0x184cd2[_0x277f5f])||_0x184cd2[_0x277f5f]<0x0))throw new Error(_0x54e1d6(0x197)+_0x277f5f+'\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer');}if(_0x184cd2[_0x54e1d6(0x61f)]!=null&&!Array['isArray'](_0x184cd2[_0x54e1d6(0x61f)]))throw new Error('job_type.defaults.buckets\x20must\x20be\x20array|null');_0x3d88b4(_0x184cd2['logCap']);}if(_0x1253c0[_0x54e1d6(0x5e6)]!=null){if(!_0xc45a2c(_0x1253c0[_0x54e1d6(0x5e6)]))throw new Error(_0x54e1d6(0x353));if(!_0xc45a2c(_0x1253c0[_0x54e1d6(0x5e6)][_0x54e1d6(0x160)]))throw new Error(_0x54e1d6(0x24d));if(typeof _0x1253c0[_0x54e1d6(0x5e6)][_0x54e1d6(0x501)]!==_0x54e1d6(0x608))throw new Error(_0x54e1d6(0x612));}for(const _0x3b4191 of['created_at',_0x54e1d6(0x5a3)]){if(typeof _0x1253c0[_0x3b4191]!==_0x54e1d6(0x2d3)||!Number['isFinite'](_0x1253c0[_0x3b4191]))throw new Error('job_type.'+_0x3b4191+_0x54e1d6(0x3a3));}}function _0x1aeb1c(_0x1c23e5){const _0x47e747=_0x30fa9a;if(!_0xc45a2c(_0x1c23e5))throw new Error(_0x47e747(0x7fa));if(typeof _0x1c23e5['id']!==_0x47e747(0x635)||!_0x1c23e5['id'][_0x47e747(0x31b)]())throw new Error('bucket.id\x20must\x20be\x20non-empty\x20string');if(!Number[_0x47e747(0x5cd)](_0x1c23e5[_0x47e747(0x7ec)])||_0x1c23e5[_0x47e747(0x7ec)]<0x0)throw new Error('bucket.tokens\x20must\x20be\x20int\x20>=\x200');if(!Number[_0x47e747(0x5cd)](_0x1c23e5[_0x47e747(0x1a6)])||_0x1c23e5['capacity']<0x0)throw new Error(_0x47e747(0x25c));if(_0x1c23e5[_0x47e747(0x7ec)]>_0x1c23e5[_0x47e747(0x1a6)])throw new Error(_0x47e747(0x453));if(!Number[_0x47e747(0x5cd)](_0x1c23e5[_0x47e747(0x47c)])||_0x1c23e5[_0x47e747(0x47c)]<0x0)throw new Error('bucket.refill_amount\x20must\x20be\x20int\x20>=\x200');if(!Number[_0x47e747(0x5cd)](_0x1c23e5[_0x47e747(0x214)])||_0x1c23e5['refill_every']<0x0)throw new Error(_0x47e747(0x431));if(typeof _0x1c23e5[_0x47e747(0x4a9)]!==_0x47e747(0x2d3)||!Number[_0x47e747(0x27f)](_0x1c23e5[_0x47e747(0x4a9)]))throw new Error(_0x47e747(0x210));}return okdbQueueValidate={'STATUS':_0x26a8ae,'JOB_TYPE_STATUS':_0x201a5e,'QUEUE_EVENTS':_0x28e506,'LOG_LEVELS':_0x58cc49,'LOG_CAP_MIN':_0x4a347d,'LOG_CAP_MAX':_0x4b0b5f,'clampInt':_0x46bc4a,'asNullableString':_0xd7881b,'normalizeResult':_0x23ea0b,'normalizeTags':_0x13c7c9,'normalizeBucket':_0x5cb795,'normalizeBuckets':_0x473f4b,'normalizeLogEntry':_0x133a67,'validateJobShape':_0x4adfe5,'validateJobTypeShape':_0xa8c11b,'validateBucketShape':_0x1aeb1c},okdbQueueValidate;}var okdbTimers,hasRequiredOkdbTimers;function requireOkdbTimers(){if(hasRequiredOkdbTimers)return okdbTimers;hasRequiredOkdbTimers=0x1;const _0xb1b095=0x2**0x1f-0x1;function _0x591bfd(_0x3bf8df){if(!(_0x3bf8df>0x0))return 0x0;return _0x3bf8df>_0xb1b095?_0xb1b095:_0x3bf8df;}function _0x25eda8(_0x1e1a12){return _0x1e1a12===Infinity;}return okdbTimers={'MAX_TIMER_DELAY':_0xb1b095,'clampTimerDelay':_0x591bfd,'isNeverDelay':_0x25eda8},okdbTimers;}var okdbChangefeed,hasRequiredOkdbChangefeed;function requireOkdbChangefeed(){const _0x209052=_0x36292f;if(hasRequiredOkdbChangefeed)return okdbChangefeed;hasRequiredOkdbChangefeed=0x1;const _0x2f6999=require$$0$6,{clampTimerDelay:_0x4735f6}=requireOkdbTimers(),{EVENTS:_0x25c2c5,CHANGE_ACTIONS:_0x1a28fb}=requireOkdbEnums(),{LOOP:_0xd80a40}=requireOkdbLoopMonitor(),_0x2ab984=Number(process.env.OKDB_CHANGEFEED_QUANTUM)||0x3e8,_0x31fa4e=0x5,_0x3f127e=0x2710;class _0x553b13 extends _0x2f6999{constructor(_0x4ede95,_0x3883e1={}){const _0x13b40c=_0x303e;super(),this[_0x13b40c(0x229)]=_0x4ede95,this[_0x13b40c(0x1de)]=_0x3883e1[_0x13b40c(0x6de)]??_0x2ab984,this[_0x13b40c(0x30d)]=_0x3883e1[_0x13b40c(0x2fc)]??_0x31fa4e,this[_0x13b40c(0x251)]=_0x3883e1['dedupeMax']??_0x3f127e,this[_0x13b40c(0x7af)]=![],this[_0x13b40c(0x1ec)]=new Map(),this[_0x13b40c(0x12f)]=new Map(),this[_0x13b40c(0x4d4)]=new Map(),this[_0x13b40c(0x3ae)]=null,this[_0x13b40c(0x2ca)]=![],this[_0x13b40c(0x5a9)]=new Set(),this['_pendingLocal']=new Set(),this['_onItem']=_0xf142e9=>this['_handleInProcess'](_0xf142e9),this[_0x13b40c(0x370)]=_0x40a386=>this[_0x13b40c(0x57d)](_0x40a386),this['_onPoke']=_0x5330e7=>this[_0x13b40c(0x1c4)](_0x5330e7),this[_0x13b40c(0x5d2)]=()=>this[_0x13b40c(0x209)]();}[_0x209052(0x73d)](){const _0x3f5ccd=_0x209052;if(this[_0x3f5ccd(0x7af)])return;this[_0x3f5ccd(0x7af)]=!![];for(const [_0x3aef6b,_0xa003ee]of this[_0x3f5ccd(0x229)][_0x3f5ccd(0x748)]){if(_0x3aef6b[_0x3f5ccd(0x169)]('~'))continue;try{_0xa003ee[_0x3f5ccd(0x55c)]();}catch{}}for(const [_0x569a8f,_0x258e4d]of this[_0x3f5ccd(0x229)][_0x3f5ccd(0x748)]){if(_0x569a8f[_0x3f5ccd(0x169)]('~'))continue;try{this[_0x3f5ccd(0x12f)]['set'](_0x569a8f,_0x258e4d['getClock']()||0x0);}catch{}}const {events:_0x4d2954}=this[_0x3f5ccd(0x229)];_0x4d2954['on'](_0x25c2c5[_0x3f5ccd(0x513)],this[_0x3f5ccd(0x370)]),_0x4d2954['on'](_0x25c2c5[_0x3f5ccd(0x7bc)],this['_onItem']),_0x4d2954['on'](_0x25c2c5[_0x3f5ccd(0x595)],this[_0x3f5ccd(0x616)]),_0x4d2954['on'](_0x25c2c5[_0x3f5ccd(0x147)],this[_0x3f5ccd(0x616)]),_0x4d2954['on'](_0x25c2c5[_0x3f5ccd(0x138)],this[_0x3f5ccd(0x465)]),_0x4d2954[_0x3f5ccd(0x509)](_0x25c2c5[_0x3f5ccd(0x355)],this['_onStop']);}['stop'](){const _0x37e51b=_0x209052;if(!this['_started'])return;this[_0x37e51b(0x7af)]=![];const {events:_0xf6d50a}=this[_0x37e51b(0x229)];_0xf6d50a[_0x37e51b(0x773)](_0x25c2c5['ITEM_PENDING'],this['_onPending']),_0xf6d50a[_0x37e51b(0x773)](_0x25c2c5['ITEM_CREATE'],this[_0x37e51b(0x616)]),_0xf6d50a['off'](_0x25c2c5[_0x37e51b(0x595)],this[_0x37e51b(0x616)]),_0xf6d50a[_0x37e51b(0x773)](_0x25c2c5[_0x37e51b(0x147)],this[_0x37e51b(0x616)]),_0xf6d50a['off'](_0x25c2c5[_0x37e51b(0x138)],this[_0x37e51b(0x465)]);try{_0xf6d50a[_0x37e51b(0x773)](_0x25c2c5[_0x37e51b(0x355)],this[_0x37e51b(0x5d2)]);}catch{}this[_0x37e51b(0x3ae)]&&(clearTimeout(this[_0x37e51b(0x3ae)]),this['_flushTimer']=null),this[_0x37e51b(0x4d4)][_0x37e51b(0x352)](),this[_0x37e51b(0x1ec)][_0x37e51b(0x352)](),this[_0x37e51b(0x12f)][_0x37e51b(0x352)](),this[_0x37e51b(0x5a9)][_0x37e51b(0x352)](),this[_0x37e51b(0x303)][_0x37e51b(0x352)]();}[_0x209052(0x776)](_0x219d5d,_0xe74408,_0x2133e0,_0xbfb55c){return _0x219d5d+'\x00'+_0xe74408+'\x00'+_0x2133e0+'\x00'+_0xbfb55c;}[_0x209052(0x164)](_0x147cb5,_0xf529d8,_0x2e0d9c,_0x1eb296){const _0x2f1594=_0x209052,_0x273f38=this[_0x2f1594(0x776)](_0x147cb5,_0xf529d8,_0x2e0d9c,_0x1eb296);if(this[_0x2f1594(0x5a9)][_0x2f1594(0x3a9)](_0x273f38))return![];this[_0x2f1594(0x5a9)]['add'](_0x273f38);if(this[_0x2f1594(0x5a9)][_0x2f1594(0x16f)]>this[_0x2f1594(0x251)]){const _0x164024=this['_seen'][_0x2f1594(0x5ab)]()['next']()['value'];this[_0x2f1594(0x5a9)][_0x2f1594(0x17d)](_0x164024);}return!![];}[_0x209052(0x57d)](_0x3d7646){const _0x5bd4e6=_0x209052;if(!this[_0x5bd4e6(0x7af)]||!_0x3d7646)return;const {env:_0x406c04,type:_0xa8d8fe,key:_0x2b2ce4,clock:_0x30df1b}=_0x3d7646;if(_0x406c04==null||_0xa8d8fe==null||_0x2b2ce4==null)return;if(typeof _0x406c04==='string'&&_0x406c04[_0x5bd4e6(0x169)]('~'))return;if(typeof _0xa8d8fe===_0x5bd4e6(0x635)&&_0xa8d8fe['startsWith']('~'))return;this['_pendingLocal'][_0x5bd4e6(0x181)](this[_0x5bd4e6(0x776)](_0x406c04,_0xa8d8fe,_0x2b2ce4,_0x30df1b)),this['_pendingLocal']['size']>this[_0x5bd4e6(0x251)]&&this[_0x5bd4e6(0x303)][_0x5bd4e6(0x17d)](this[_0x5bd4e6(0x303)][_0x5bd4e6(0x5ab)]()[_0x5bd4e6(0x2ee)]()['value']);}[_0x209052(0x34b)](_0x508504){const _0x331dfd=_0x209052;if(!this[_0x331dfd(0x7af)]||!_0x508504)return;const {env:_0x4970a0,type:_0xe004d0,key:_0x19dc31,clock:_0x1e3649,origin:_0x793367,action:_0x8b6c39,newValue:_0x612edc,oldValue:_0x502d15}=_0x508504;if(_0x4970a0==null||_0xe004d0==null||_0x19dc31==null)return;if(typeof _0x4970a0===_0x331dfd(0x635)&&_0x4970a0[_0x331dfd(0x169)]('~'))return;if(typeof _0xe004d0===_0x331dfd(0x635)&&_0xe004d0[_0x331dfd(0x169)]('~'))return;this['_pendingLocal']['delete'](this['_dedupeKey'](_0x4970a0,_0xe004d0,_0x19dc31,_0x1e3649));if(!this[_0x331dfd(0x164)](_0x4970a0,_0xe004d0,_0x19dc31,_0x1e3649))return;const _0x1bd517=_0x8b6c39===_0x1a28fb[_0x331dfd(0x5e2)]?_0x331dfd(0x4ec):_0x331dfd(0x4f8);this['emit']('change',{'env':_0x4970a0,'type':_0xe004d0,'key':_0x19dc31,'op':_0x1bd517,'clock':_0x1e3649,'origin':_0x793367,'value':_0x1bd517===_0x331dfd(0x4ec)?null:_0x612edc,'prevValue':_0x502d15});}[_0x209052(0x1c4)](_0x545be9){const _0x351623=_0x209052;if(!this[_0x351623(0x7af)])return;if(!_0x545be9||typeof _0x545be9[_0x351623(0x586)]!==_0x351623(0x635)||typeof _0x545be9[_0x351623(0x74e)]!=='string')return;const {env:_0x261eda,type:_0x58cf0b}=_0x545be9;if(_0x261eda[_0x351623(0x169)]('~')||_0x58cf0b[_0x351623(0x169)]('~'))return;this[_0x351623(0x4d4)][_0x351623(0x31f)](_0x261eda+'\x00'+_0x58cf0b,{'env':_0x261eda,'type':_0x58cf0b}),this[_0x351623(0x6c6)]();}[_0x209052(0x6c6)](){const _0x40f4fd=_0x209052;if(this[_0x40f4fd(0x3ae)])return;const _0x4599a7=()=>{const _0x1dd5f9=_0x40f4fd;this[_0x1dd5f9(0x3ae)]=null,this[_0x1dd5f9(0x38c)]()[_0x1dd5f9(0x503)](()=>{});};this['_flushTimer']=setTimeout(_0x4599a7,_0x4735f6(this[_0x40f4fd(0x30d)]));}async[_0x209052(0x38c)](){const _0x45dda4=_0x209052;if(this[_0x45dda4(0x2ca)]){this[_0x45dda4(0x6c6)]();return;}this[_0x45dda4(0x2ca)]=!![];try{const _0x2739fd=[...this['_pending'][_0x45dda4(0x5ab)]()];this[_0x45dda4(0x4d4)][_0x45dda4(0x352)]();let _0x12ba8d=![];for(const {env:_0x31bc54,type:_0x119e46}of _0x2739fd){try{const _0x56e803=await this[_0x45dda4(0x687)](_0x31bc54,_0x119e46);if(_0x56e803)_0x12ba8d=!![];}catch{this[_0x45dda4(0x4d4)][_0x45dda4(0x31f)](_0x31bc54+'\x00'+_0x119e46,{'env':_0x31bc54,'type':_0x119e46}),_0x12ba8d=!![];}}if(_0x12ba8d||this[_0x45dda4(0x4d4)][_0x45dda4(0x16f)]>0x0)this[_0x45dda4(0x6c6)]();}finally{this['_draining']=![];}}async[_0x209052(0x687)](_0xbaffe4,_0x3e4c7c){const _0x1e8d22=_0x209052,_0x586bfd=await this[_0x1e8d22(0x229)][_0x1e8d22(0x477)](_0xbaffe4),_0x1c5d2a=_0xbaffe4+'\x00'+_0x3e4c7c;!this[_0x1e8d22(0x1ec)][_0x1e8d22(0x3a9)](_0x1c5d2a)&&(!this[_0x1e8d22(0x12f)][_0x1e8d22(0x3a9)](_0xbaffe4)&&(_0x586bfd['_enableChangelog'](),this[_0x1e8d22(0x12f)][_0x1e8d22(0x31f)](_0xbaffe4,_0x586bfd[_0x1e8d22(0x19d)]()||0x0)),this[_0x1e8d22(0x1ec)][_0x1e8d22(0x31f)](_0x1c5d2a,this[_0x1e8d22(0x12f)][_0x1e8d22(0x1d2)](_0xbaffe4)));const _0x10bdb5=this[_0x1e8d22(0x1ec)]['get'](_0x1c5d2a),_0x23afba=_0x586bfd[_0x1e8d22(0x19d)](_0x3e4c7c)||0x0;if(_0x23afba<=_0x10bdb5)return![];const _0xe17105=_0x10bdb5+this[_0x1e8d22(0x1de)],_0x2f1925=Math[_0x1e8d22(0x2f2)](_0x23afba,_0xe17105),_0x1fd43d=_0xd80a40[_0x1e8d22(0x1e0)]?_0xd80a40[_0x1e8d22(0x1b5)]():0x0,_0x5c1913=Array[_0x1e8d22(0x17b)](_0x586bfd[_0x1e8d22(0x19b)](_0x3e4c7c,_0x10bdb5+0x1,_0x2f1925));let _0x23cb70=_0x10bdb5;for(const _0x316bf2 of _0x5c1913){const {clock:_0x13d7a1,key:_0x285f99,action:_0x2788a0,origin:_0x567104}=_0x316bf2;if(_0x13d7a1>_0x23cb70)_0x23cb70=_0x13d7a1;if(_0x285f99==null)continue;if(this['_pendingLocal']['has'](this[_0x1e8d22(0x776)](_0xbaffe4,_0x3e4c7c,_0x285f99,_0x13d7a1)))continue;if(!this['_markSeen'](_0xbaffe4,_0x3e4c7c,_0x285f99,_0x13d7a1))continue;let _0x459468,_0x41fa7d;if(_0x2788a0===_0x1a28fb[_0x1e8d22(0x5e2)])_0x459468=_0x1e8d22(0x4ec),_0x41fa7d=null;else{const _0x1eb8e2=_0x586bfd['get'](_0x3e4c7c,_0x285f99);_0x1eb8e2==null?(_0x459468=_0x1e8d22(0x4ec),_0x41fa7d=null):(_0x459468=_0x1e8d22(0x4f8),_0x41fa7d=_0x1eb8e2);}this['emit']('change',{'env':_0xbaffe4,'type':_0x3e4c7c,'key':_0x285f99,'op':_0x459468,'clock':_0x13d7a1,'origin':_0x567104,'value':_0x41fa7d});}if(_0xd80a40[_0x1e8d22(0x1e0)])_0xd80a40[_0x1e8d22(0x4c9)]('feed:'+_0xbaffe4+':'+_0x3e4c7c,_0xd80a40['now']()-_0x1fd43d,'n='+_0x5c1913[_0x1e8d22(0x1e1)]);return this['_cursors'][_0x1e8d22(0x31f)](_0x1c5d2a,Math['max'](_0x23cb70,_0x2f1925)),_0x586bfd[_0x1e8d22(0x19d)](_0x3e4c7c)>_0x2f1925;}['status'](){const _0x2ae6b4=_0x209052;return{'started':this['_started'],'quantum':this[_0x2ae6b4(0x1de)],'flushDebounce':this[_0x2ae6b4(0x30d)],'cursors':Object[_0x2ae6b4(0x24a)]([...this[_0x2ae6b4(0x1ec)][_0x2ae6b4(0x111)]()][_0x2ae6b4(0x2fe)](([_0x3adbfd,_0x44bf53])=>[_0x3adbfd['replace']('\x00',':'),_0x44bf53])),'pending':this['_pending'][_0x2ae6b4(0x16f)],'seen':this[_0x2ae6b4(0x5a9)][_0x2ae6b4(0x16f)]};}}return _0x553b13['CHANGEFEED_QUANTUM']=_0x2ab984,okdbChangefeed={'OKDBChangefeed':_0x553b13},okdbChangefeed;}var okdbRelay,hasRequiredOkdbRelay;function requireOkdbRelay(){const _0x2ea175=_0x36292f;if(hasRequiredOkdbRelay)return okdbRelay;hasRequiredOkdbRelay=0x1;const {EVENTS:_0x2e0a78}=requireOkdbEnums(),_0x1b3247=new Set([_0x2e0a78['ITEM_CREATE'],_0x2e0a78[_0x2ea175(0x595)],_0x2e0a78['ITEM_REMOVE']]),{ENGINE_EVENTS:_0x5f1236}=requireOkdbEnginesEnums(),{EMBEDDINGS_EVENTS:_0x5332fd}=requireEnums(),{QUEUE_EVENTS:_0xe1023c}=requireOkdbQueueValidate(),_0xa711e4=Object[_0x2ea175(0x5ab)](_0x2e0a78),_0xc90966=Object['values'](_0x5f1236)[_0x2ea175(0x2fe)](_0x41bed0=>_0x2ea175(0x2a2)+_0x41bed0),_0x34903f=Object[_0x2ea175(0x5ab)](_0x5332fd),_0x1c3d17=Object[_0x2ea175(0x5ab)](_0xe1023c),_0xe6f7b5=['processor:ready','processor:progress','processor:error',_0x2ea175(0x7fc),_0x2ea175(0x715),_0x2ea175(0x6e8)],_0x4c2037=[..._0xa711e4,..._0xc90966,..._0x34903f,..._0x1c3d17,..._0xe6f7b5,_0x2ea175(0x282)],_0x1029de=new Set(_0x4c2037),_0x29f3ae=new Set([_0x2e0a78['ITEM_CREATE'],_0x2e0a78['ITEM_UPDATE'],_0x2e0a78['ITEM_REMOVE'],_0x2e0a78[_0x2ea175(0x75c)],_0x2e0a78[_0x2ea175(0x2cc)],_0x2e0a78[_0x2ea175(0x102)],_0x2e0a78[_0x2ea175(0x751)],_0x2e0a78[_0x2ea175(0x23e)],_0x5332fd[_0x2ea175(0x281)],_0x5332fd[_0x2ea175(0x3cc)],_0x5332fd[_0x2ea175(0x3c9)],_0x5332fd['DOC_STATUS_CHANGE'],_0x2ea175(0x798)]),_0x4caefa=_0x4c2037['filter'](_0x18f503=>_0x18f503===_0x2ea175(0x282)||!_0x29f3ae[_0x2ea175(0x3a9)](_0x18f503)),_0x82d1db=0x14,_0x3e0b62=0xc8;class _0x15363a{constructor(_0x587057,_0x1f6aa5={}){const _0x384333=_0x2ea175;this['okdb']=_0x587057,this[_0x384333(0x6fd)]=_0x1f6aa5[_0x384333(0x2bb)]??_0x82d1db,this[_0x384333(0x468)]=_0x1f6aa5['ringSize']??_0x3e0b62,this[_0x384333(0x4d1)]=new Set(),this[_0x384333(0x33d)]=[],this[_0x384333(0x374)]=[],this[_0x384333(0x188)]=null,this[_0x384333(0x496)]=![],this[_0x384333(0x263)]=null,this[_0x384333(0x41c)]=null;}[_0x2ea175(0x63a)](){const _0x517109=_0x2ea175;if(this['_attached'])return;this[_0x517109(0x496)]=!![];const {okdb:_0x374e20}=this;this['_detachLog']=_0x374e20[_0x517109(0x282)][_0x517109(0x63a)](_0x28a905=>this[_0x517109(0x730)](_0x517109(0x282),_0x28a905));for(const _0x2d4827 of _0x4c2037){if(_0x2d4827===_0x517109(0x282))continue;const _0x484682=_0x1b3247[_0x517109(0x3a9)](_0x2d4827),_0x508051=_0x4c3e22=>{const _0x672a1c=_0x517109;if(_0x484682&&this[_0x672a1c(0x263)])return;this[_0x672a1c(0x730)](_0x2d4827,_0x4c3e22??{});};_0x374e20[_0x517109(0x6f3)]['on'](_0x2d4827,_0x508051),this[_0x517109(0x374)][_0x517109(0x460)]({'event':_0x2d4827,'handler':_0x508051});}this['_onStop']=()=>this[_0x517109(0x7b9)](),_0x374e20['events'][_0x517109(0x509)](_0x2e0a78[_0x517109(0x355)],this['_onStop']);}[_0x2ea175(0x7b9)](){const _0x2cf6cb=_0x2ea175;if(!this[_0x2cf6cb(0x496)])return;if(this[_0x2cf6cb(0x5d2)]){try{this[_0x2cf6cb(0x229)][_0x2cf6cb(0x6f3)][_0x2cf6cb(0x773)](_0x2e0a78[_0x2cf6cb(0x355)],this[_0x2cf6cb(0x5d2)]);}catch{}this[_0x2cf6cb(0x5d2)]=null;}this[_0x2cf6cb(0x188)]?.(),this[_0x2cf6cb(0x188)]=null;for(const {event:_0x3feae0,handler:_0x1f784f}of this['_listeners']){try{this[_0x2cf6cb(0x229)][_0x2cf6cb(0x6f3)][_0x2cf6cb(0x773)](_0x3feae0,_0x1f784f);}catch{}}this[_0x2cf6cb(0x374)]=[];for(const _0x17d27c of this[_0x2cf6cb(0x4d1)]){try{_0x17d27c['close']?.();}catch{}}this[_0x2cf6cb(0x4d1)][_0x2cf6cb(0x352)](),this[_0x2cf6cb(0x1a7)](),this[_0x2cf6cb(0x496)]=![];}['attachFeed'](_0x279d39){const _0x5ef5bb=_0x2ea175;if(!_0x279d39||this[_0x5ef5bb(0x263)]===_0x279d39)return;this[_0x5ef5bb(0x1a7)](),this[_0x5ef5bb(0x263)]=_0x279d39,this[_0x5ef5bb(0x41c)]=_0x12adcb=>{const _0xb0f7ff=_0x5ef5bb;if(!_0x12adcb)return;const _0x354ddd=_0x12adcb['op']==='remove'?_0x2e0a78[_0xb0f7ff(0x147)]:_0x2e0a78['ITEM_UPDATE'];this[_0xb0f7ff(0x730)](_0x354ddd,_0x12adcb);},_0x279d39['on'](_0x5ef5bb(0x74b),this[_0x5ef5bb(0x41c)]);}[_0x2ea175(0x1a7)](){const _0x1d55f0=_0x2ea175;if(this[_0x1d55f0(0x263)]&&this[_0x1d55f0(0x41c)])try{this[_0x1d55f0(0x263)][_0x1d55f0(0x773)](_0x1d55f0(0x74b),this[_0x1d55f0(0x41c)]);}catch{}this[_0x1d55f0(0x263)]=null,this[_0x1d55f0(0x41c)]=null;}[_0x2ea175(0x6f1)](_0x472fea,_0x15676d){const _0x38016c=_0x2ea175;if(!_0x1029de['has'](_0x472fea))return;this[_0x38016c(0x730)](_0x472fea,_0x15676d??{});}[_0x2ea175(0x3d3)](_0x458e0b,_0x21c2ae,_0xf08ec5){const _0x2be982=_0x2ea175;if(this[_0x2be982(0x4d1)][_0x2be982(0x16f)]>=this['_maxConnections'])return _0x21c2ae(_0x2be982(0x2f6),{'message':_0x2be982(0x723),'code':_0x2be982(0x6df)}),()=>{};const _0x2089cf=this[_0x2be982(0x5c6)](_0x458e0b),_0x3cf368={'send':_0x21c2ae,'filter':_0x2089cf,'close':_0xf08ec5??null};this[_0x2be982(0x4d1)][_0x2be982(0x181)](_0x3cf368);for(const {event:_0x46407e,data:_0xf64e12}of this[_0x2be982(0x33d)]){if(_0x2089cf['has'](_0x46407e))try{_0x21c2ae(_0x46407e,_0xf64e12);}catch{}}return()=>this['_connections'][_0x2be982(0x17d)](_0x3cf368);}[_0x2ea175(0x5c5)](){const _0x206a39=_0x2ea175;if(this[_0x206a39(0x263)])return this[_0x206a39(0x263)];const {OKDBChangefeed:_0x42aa08}=requireOkdbChangefeed(),_0x550a11=new _0x42aa08(this[_0x206a39(0x229)]);_0x550a11[_0x206a39(0x73d)](),this[_0x206a39(0x4c0)](_0x550a11);if(this[_0x206a39(0x229)]&&!this[_0x206a39(0x229)]['_changefeed'])this['okdb']['_changefeed']=_0x550a11;return this['_feed'];}get[_0x2ea175(0x11f)](){const _0x1bf9d1=_0x2ea175;return this['_connections'][_0x1bf9d1(0x16f)];}[_0x2ea175(0x5d6)](){const _0x42bcd8=_0x2ea175;return{'connections':this[_0x42bcd8(0x11f)],'bufferSize':this[_0x42bcd8(0x33d)][_0x42bcd8(0x1e1)],'attached':this[_0x42bcd8(0x496)],'allEvents':_0x4c2037[_0x42bcd8(0x1e1)],'defaultEvents':_0x4caefa[_0x42bcd8(0x1e1)]};}static get['ALL_EVENTS'](){return _0x4c2037;}static get[_0x2ea175(0x5dc)](){return _0x4caefa;}static get[_0x2ea175(0x578)](){return[..._0x29f3ae];}[_0x2ea175(0x5c6)](_0x46eae6){const _0x5c6b4c=_0x2ea175;if(!_0x46eae6||!_0x46eae6['length'])return new Set(_0x4caefa);const _0x23ff60=_0x46eae6[_0x5c6b4c(0x4b0)](_0x4ca842=>_0x1029de[_0x5c6b4c(0x3a9)](_0x4ca842));return new Set(_0x23ff60[_0x5c6b4c(0x1e1)]?_0x23ff60:_0x4caefa);}[_0x2ea175(0x730)](_0x1b2b8f,_0x4717e9){const _0x4e0b31=_0x2ea175,_0x89316d={..._0x4717e9,'_ts':_0x4717e9?.[_0x4e0b31(0x622)]??_0x4717e9?.['ts']??Date[_0x4e0b31(0x1b5)]()};this['_buffer'][_0x4e0b31(0x460)]({'event':_0x1b2b8f,'data':_0x89316d});if(this[_0x4e0b31(0x33d)][_0x4e0b31(0x1e1)]>this[_0x4e0b31(0x468)])this[_0x4e0b31(0x33d)][_0x4e0b31(0x14c)]();for(const _0x479cef of this['_connections']){if(_0x479cef[_0x4e0b31(0x4b0)]['has'](_0x1b2b8f))try{_0x479cef[_0x4e0b31(0x80d)](_0x1b2b8f,_0x89316d);}catch{}}}}return okdbRelay=_0x15363a,okdbRelay;}var hasRequiredLib;function _0x303e(_0x469317,_0x407ea1){_0x469317=_0x469317-0x101;const _0x250be4=_0x250b();let _0x303ef5=_0x250be4[_0x469317];return _0x303ef5;}function requireLib(){const _0x4d28eb=_0x36292f;if(hasRequiredLib)return lib[_0x4d28eb(0x6bd)];return hasRequiredLib=0x1,function(_0x242c05){const _0x2c6624=_0x4d28eb,_0x45fd52=require$$0$6,{load:_0x6ca47d}=require$$1$1,_0x5c299a=requireBridge(),_0x133a84=requireWritebatch(),{Pumper:_0x9711ca}=requirePump(),{OKDBEnv:_0x3af918,HIGH_SENTINEL:_0x275d5c}=requireEnv(),{reclass:_0x4d46d2,NotImplementedNative:_0x44c586,OKDBError:_0x53445e}=requireErrors(),{notImplemented:_0x4b9adb}=requireUnsupported(),{OKDBHttp:_0x49bbcd}=requireHttp(),{OKDBFts:_0x2da5d}=requireFts(),{OKDBEmbeddings:_0x5ceb07}=requireEmbeddings(),{OKDBAuth:_0x3acea3}=requireAuth(),{OKDBSync:_0x58eb08}=requireSync(),{OKDBMigrate:_0x1783ea}=requireMigrate(),{OKDBFunctions:_0x22cb73}=requireFunctions(),{OKDBMcp:_0x3ddd5e}=requireMcp(),{OKDBEngines:_0x587528,OKDBPipelines:_0x47c33c}=requireEngines(),{makeMeta:_0x423b13,makeLicenses:_0x27bb08,makeLicenseChecker:_0x2b85a2,makeProcesses:_0x128ee2}=requireSys();let _0x348b66=null;function _0x2d3a39(_0x4121cf){if(!_0x348b66){const {Unpackr:_0x2a4cc3}=require$$18;_0x348b66=new _0x2a4cc3({'useRecords':![],'mapsAsObjects':!![],'copyBuffers':!![]});}return _0x348b66['unpack'](_0x4121cf);}let _0x4ce3d2=null;function _0x445a85(_0x47f7e5,_0x52ac14){const _0x2cb397=_0x303e;if(!_0x4ce3d2){const {Unpackr:_0x120653}=require$$18;_0x4ce3d2=new _0x120653({'copyBuffers':!![]});}return _0x4ce3d2[_0x2cb397(0x7b2)](_0x47f7e5,_0x52ac14);}const {encodeKey:_0x45f7e9,KEY_BUF_SIZE:_0x5e84e0,NO_FAST:_0x479eb6}=requireKeyenc(),_0x2366a1=0x40*0x400,_0x277a33=0x4*0x400*0x400;function _0x199553(_0x5696d5,_0x3356e7){const _0x5a5f22=_0x303e,_0x29aa93=_0x5696d5[0x2],_0x59d534=_0x29aa93?(_0x5696d5[_0x5a5f22(0x1e1)]-0x3)/Math[_0x5a5f22(0x413)](_0x29aa93):0x0,_0x4c6053=new Array(_0x59d534);let _0x4de3f0=0x3;if(_0x29aa93===0x2){for(let _0x4e4d00=0x0;_0x4e4d00<_0x59d534;_0x4e4d00++,_0x4de3f0+=0x2)_0x4c6053[_0x4e4d00]={'key':_0x5696d5[_0x4de3f0],'value':_0x5696d5[_0x4de3f0+0x1]};}else{if(_0x29aa93===0x3){for(let _0x2d8f22=0x0;_0x2d8f22<_0x59d534;_0x2d8f22++,_0x4de3f0+=0x3)_0x4c6053[_0x2d8f22]={'key':_0x5696d5[_0x4de3f0],'value':_0x5696d5[_0x4de3f0+0x1],'version':_0x5696d5[_0x4de3f0+0x2]};}else{if(_0x29aa93===-0x2){for(let _0x55059c=0x0;_0x55059c<_0x59d534;_0x55059c++,_0x4de3f0+=0x2)_0x4c6053[_0x55059c]={'clock':_0x5696d5[_0x4de3f0],..._0x5696d5[_0x4de3f0+0x1]};}else{if(_0x29aa93===0x4){for(let _0x581ba5=0x0;_0x581ba5<_0x59d534;_0x581ba5++,_0x4de3f0+=0x4)_0x4c6053[_0x581ba5]={'key':_0x5696d5[_0x4de3f0],'value':_0x5696d5[_0x4de3f0+0x1],'version':_0x5696d5[_0x4de3f0+0x2],'indexKey':_0x5696d5[_0x4de3f0+0x3]};}else{if(_0x59d534)throw new Error(_0x5a5f22(0x43b)+_0x29aa93);}}}}return _0x3356e7?[_0x5696d5[0x0],_0x4c6053,_0x5696d5[0x1]]:_0x4c6053;}let _0x51df3f=null;function _0x14e60e(_0x304ad9,_0x4a56b7,_0x41bafb){const _0x3449fb=_0x303e;if(!_0x51df3f)_0x51df3f=requireDist()['readKey'];const _0x3bc0d5=new DataView(_0x304ad9[_0x3449fb(0x67f)],_0x304ad9[_0x3449fb(0x19a)],_0x4a56b7),_0x90a095=_0x3bc0d5[_0x3449fb(0x4ef)](0x10,!![]),_0x52623b=new Array(_0x90a095);let _0x2e8651=0x14;for(let _0x426697=0x0;_0x426697<_0x90a095;_0x426697++){const _0x121d8c=_0x304ad9[_0x2e8651]|_0x304ad9[_0x2e8651+0x1]<<0x8;_0x2e8651+=0x2,_0x52623b[_0x426697]=_0x51df3f(_0x304ad9,_0x2e8651,_0x2e8651+_0x121d8c),_0x2e8651+=_0x121d8c;}return _0x41bafb?[_0x3bc0d5[_0x3449fb(0x264)](0x0,!![]),_0x52623b,_0x3bc0d5['getFloat64'](0x8,!![])]:_0x52623b;}const _0x46ae6c=requireOkdbLogger(),_0x4c61b7=requireOkdbPlugins(),{OKDB_STATE:_0x15786c,EVENTS:_0xbc30e4}=requireOkdbEnums(),_0x29c118=requireStatics();let _0x57254d=null,_0x2d180a=![],_0x24a3ec=0x1;const _0xb1e5a3=new Map(),_0x53d435=new Set([_0x2c6624(0x31c),_0x2c6624(0x703)]),_0x33c5ff=_0x545357=>!!_0x545357&&_0x53d435['has'](_0x545357[_0x2c6624(0x6cb)]),_0x3bf3b6=Number(process.env.OKDB_PENDING_RETRY_MS)>0x0?Number(process.env.OKDB_PENDING_RETRY_MS):0x1d4c0;function _0x21c819(){const _0x114f33=_0x2c6624;!_0x2d180a&&(_0x406729()['setBridge'](_0x5c299a[_0x114f33(0x504)]),_0x133a84[_0x114f33(0x284)](_0x406729()),_0x2d180a=!![]);}function _0x406729(){if(!_0x57254d)_0x57254d=_0x6ca47d();return _0x57254d;}class _0x58beeb extends Map{constructor(_0x2d2594){super(),this['_db']=_0x2d2594;}[_0x2c6624(0x103)](){const _0x2deabe=_0x2c6624,_0x21c7b7=this[_0x2deabe(0x7c6)];if(!_0x21c7b7['_isOpen'])return;let _0xbfbb9b;try{_0xbfbb9b=_0x21c7b7[_0x2deabe(0x6eb)]('db',null,_0x2deabe(0x19c),[],![]);}catch{return;}for(const _0x38e40b of _0xbfbb9b)if(!super[_0x2deabe(0x3a9)](_0x38e40b)&&_0x21c7b7[_0x2deabe(0x6eb)]('db',null,_0x2deabe(0x4ed),[_0x38e40b],![]))_0x21c7b7[_0x2deabe(0x6d0)](_0x38e40b);}[_0x2c6624(0x1d2)](_0x404a4f){const _0x4afad4=_0x2c6624,_0xc2b4fb=super[_0x4afad4(0x1d2)](_0x404a4f);if(_0xc2b4fb!==undefined||typeof _0x404a4f!==_0x4afad4(0x635))return _0xc2b4fb;const _0x33d362=this[_0x4afad4(0x7c6)];if(_0x404a4f===_0x4afad4(0x615))return _0x33d362[_0x4afad4(0x546)]?_0x33d362[_0x4afad4(0x4e4)][_0x4afad4(0x70d)]??undefined:undefined;if(_0x33d362[_0x4afad4(0x546)]&&_0x33d362[_0x4afad4(0x6eb)]('db',null,_0x4afad4(0x4ed),[_0x404a4f],![]))return _0x33d362['_ensureEnv'](_0x404a4f);if(_0x33d362['_isOpen']&&typeof _0x404a4f===_0x4afad4(0x635)&&!_0x404a4f[_0x4afad4(0x169)]('~')){_0x33d362[_0x4afad4(0x6eb)]('db',null,_0x4afad4(0x157),[],![]);if(_0x33d362[_0x4afad4(0x6eb)]('db',null,'hasEnv',[_0x404a4f],![]))return _0x33d362[_0x4afad4(0x6d0)](_0x404a4f);}return undefined;}[_0x2c6624(0x3a9)](_0x49fe55){const _0x4c953a=_0x2c6624;return this[_0x4c953a(0x1d2)](_0x49fe55)!==undefined;}get[_0x2c6624(0x16f)](){const _0x29c113=_0x2c6624;return this[_0x29c113(0x103)](),super[_0x29c113(0x16f)];}[_0x2c6624(0x3ad)](){const _0x39ee5d=_0x2c6624;return this[_0x39ee5d(0x103)](),super[_0x39ee5d(0x3ad)]();}['values'](){const _0x26cc00=_0x2c6624;return this[_0x26cc00(0x103)](),super[_0x26cc00(0x5ab)]();}[_0x2c6624(0x111)](){const _0x1cd372=_0x2c6624;return this[_0x1cd372(0x103)](),super['entries']();}['forEach'](_0x29cccb,_0x526ee2){const _0x3aa084=_0x2c6624;return this[_0x3aa084(0x103)](),super[_0x3aa084(0x55b)](_0x29cccb,_0x526ee2);}[Symbol[_0x2c6624(0x21f)]](){const _0x28f517=_0x2c6624;return this[_0x28f517(0x103)](),super[Symbol['iterator']]();}}class _0x2f9cba{constructor(_0x1eda31,_0x3424cc={}){const _0x52536e=_0x2c6624,_0xb56c26=_0x406729();this[_0x52536e(0x6dc)]=_0x1eda31,this['_uid']=_0x24a3ec++,this[_0x52536e(0x240)]='db'+this['_uid'],this[_0x52536e(0x204)]={..._0x29c118[_0x52536e(0x13d)],..._0x3424cc,'auth':_0x3424cc[_0x52536e(0x71c)]?{..._0x3424cc[_0x52536e(0x71c)]}:undefined,'lmdb':{..._0x3424cc[_0x52536e(0x738)]||{}}},this[_0x52536e(0x6f3)]=new _0x45fd52(),this[_0x52536e(0x6f3)][_0x52536e(0x771)](0x0),this[_0x52536e(0x5c9)]=new Set(),this[_0x52536e(0x6f3)]['on'](_0x52536e(0x50b),_0x24dcb1=>this[_0x52536e(0x470)](_0x24dcb1)),this[_0x52536e(0x282)]=new _0x46ae6c(this),this['log'][_0x52536e(0x234)](),_0x5c299a[_0x52536e(0x1fc)](this[_0x52536e(0x240)],{'_deliver':(_0x1309ea,_0x22ad4e)=>this['_deliverEvent'](_0x1309ea,_0x22ad4e),'_log':_0x235efd=>{const _0x4ec4cd=_0x52536e;if(this['_bootLog'])this[_0x4ec4cd(0x4ca)]['push'](_0x235efd);const _0x1b630e=_0x235efd&&_0x235efd[_0x4ec4cd(0x48a)];if(_0x1b630e&&Object[_0x4ec4cd(0x556)][_0x4ec4cd(0x479)][_0x4ec4cd(0x54b)](this[_0x4ec4cd(0x282)],_0x1b630e)&&typeof this[_0x4ec4cd(0x282)][_0x1b630e]===_0x4ec4cd(0x7e3)){const _0x147050=_0x235efd[_0x4ec4cd(0x126)];return this[_0x4ec4cd(0x282)][_0x1b630e](_0x235efd[_0x4ec4cd(0x71b)],{..._0x235efd[_0x4ec4cd(0x295)]||{},..._0x147050&&typeof _0x147050==='object'?_0x147050:{}});}return this[_0x4ec4cd(0x282)][_0x4ec4cd(0x3b9)](_0x235efd);}}),_0x21c819();try{const _0x7a41dd={};if(typeof'true'==='undefined'||_0x52536e(0x29f)!=='true');this[_0x52536e(0x3ca)]=new _0xb56c26[(_0x52536e(0x42a))](_0x1eda31,{..._0x3424cc,'_clusterWorker':require(_0x52536e(0x4f3))[_0x52536e(0x711)],..._0x7a41dd},this[_0x52536e(0x240)]);}catch(_0x7c900b){_0x5c299a[_0x52536e(0x10d)](this[_0x52536e(0x240)]);throw _0x4d46d2(_0x7c900b);}this[_0x52536e(0x41a)]=_0x15786c['CREATED'],this[_0x52536e(0x546)]=![],this['_envs']=new _0x58beeb(this),this[_0x52536e(0x2ba)]=new _0x9711ca({'pump':()=>this[_0x52536e(0x3ca)][_0x52536e(0x4db)]()}),this[_0x52536e(0x6cc)]=new _0x133a84[(_0x52536e(0x1d5))](this),this[_0x52536e(0x2ba)][_0x52536e(0x765)]=()=>_0x5c299a[_0x52536e(0x74f)](),_0x5c299a[_0x52536e(0x6b6)](()=>this[_0x52536e(0x2ba)][_0x52536e(0x7c7)](),this),_0xb1e5a3['set'](this[_0x52536e(0x76c)],this),this[_0x52536e(0x4bd)]={},_0x5c299a[_0x52536e(0x6ad)](this),this['fts']=new _0x2da5d(this),this[_0x52536e(0x2f0)]=new _0x5ceb07(this),this['engines']=new _0x587528(this,null,null),this[_0x52536e(0x800)]=new _0x47c33c(this,null),this[_0x52536e(0x295)]=_0x423b13(this),this[_0x52536e(0x736)]=_0x27bb08(this),this[_0x52536e(0x76b)]=_0x2b85a2(this),this['processes']=_0x128ee2(this),this[_0x52536e(0x596)]=_0x1b030d(this),this['plugins']=new _0x4c61b7(this),this[_0x52536e(0x4d5)]=new _0x49bbcd(this),this['sync']=new _0x58eb08(this),this[_0x52536e(0x71c)]=new _0x3acea3(this),this[_0x52536e(0x1f2)]=new _0x22cb73(this,null),this[_0x52536e(0x42e)]=new _0x3ddd5e(this),this['admin']=_0x3424cc&&_0x3424cc[_0x52536e(0x761)]===![]?null:_0x4b9adb(_0x52536e(0x761)),this[_0x52536e(0x619)]=_0x4b9adb('api'),this[_0x52536e(0x804)]=new _0x1783ea(this);}['_call'](_0x2ad24c,_0x5126b4,_0x1dfad2,_0x4045e7,_0x19d108=!![]){const _0x51dfea=_0x2c6624;if(_0x19d108&&this[_0x51dfea(0x6cc)]&&this['_wb'][_0x51dfea(0x679)][_0x51dfea(0x1e1)])this[_0x51dfea(0x6cc)][_0x51dfea(0x373)]();try{return this['_native'][_0x51dfea(0x54b)](_0x2ad24c,_0x5126b4,_0x1dfad2,_0x4045e7);}catch(_0x2903a7){throw _0x4d46d2(_0x2903a7);}finally{if(_0x19d108)this[_0x51dfea(0x2ba)][_0x51dfea(0x7c7)]();}}[_0x2c6624(0x296)](_0x5689c7,_0x657050,_0x4cc870,_0x5b7496){const _0x52ff65=_0x2c6624;let _0x33ec9d;try{_0x33ec9d=this[_0x52ff65(0x3ca)][_0x52ff65(0x101)](_0x5689c7,_0x657050,_0x4cc870,_0x5b7496);}catch(_0x4e47d1){throw _0x4d46d2(_0x4e47d1);}return _0x33ec9d instanceof Uint8Array?_0x2d3a39(_0x33ec9d):_0x33ec9d[0x0];}[_0x2c6624(0x1f0)](_0x2a8f80){const _0x374de3=_0x2c6624;let _0x803c5b=this['_rbuf'];if(_0x803c5b&&_0x2a8f80<=_0x803c5b[_0x374de3(0x1e1)])return _0x803c5b;let _0x3ef053=_0x803c5b?_0x803c5b[_0x374de3(0x1e1)]:_0x2366a1;while(_0x3ef053<_0x2a8f80)_0x3ef053*=0x2;if(_0x3ef053>_0x277a33)return _0x803c5b;return _0x803c5b=this['_rbuf']=Buffer[_0x374de3(0x298)](_0x3ef053),this['_native']['setReadBuffer'](_0x803c5b),_0x803c5b;}[_0x2c6624(0x2ae)](_0x5a8c5a,_0x4d5f22,_0x57bbda){const _0x19280a=_0x2c6624;if(!this[_0x19280a(0x708)])this[_0x19280a(0x1f0)](0x0);const _0x500140=this[_0x19280a(0x3ca)][_0x19280a(0x719)](_0x5a8c5a,_0x4d5f22,_0x57bbda);if(typeof _0x500140===_0x19280a(0x2d3))return _0x445a85(this['_rbuf'],_0x500140);if(_0x500140===undefined||_0x500140===null)return _0x500140;return this['_readBuf'](_0x500140[_0x19280a(0x1e1)]),_0x445a85(_0x500140);}[_0x2c6624(0x7a9)](_0x5e85b6,_0x12366b,_0x452fd6){const _0x51407d=_0x2c6624;let _0x1992ae=this[_0x51407d(0x120)];if(!_0x1992ae){_0x1992ae=this['_kbuf']=Buffer[_0x51407d(0x298)](_0x5e84e0),this[_0x51407d(0x3ca)][_0x51407d(0x132)](_0x1992ae),this[_0x51407d(0x40a)]=new Map();if(!this['_rbuf'])this[_0x51407d(0x1f0)](0x0);}const _0x40ba61=_0x45f7e9(_0x452fd6,_0x1992ae);if(_0x40ba61<0x0)return _0x479eb6;let _0x5b232b=this[_0x51407d(0x40a)][_0x51407d(0x1d2)](_0x5e85b6);if(_0x5b232b===undefined)this[_0x51407d(0x40a)]['set'](_0x5e85b6,_0x5b232b=new Map());let _0x493091=_0x5b232b[_0x51407d(0x1d2)](_0x12366b);if(_0x493091===undefined)_0x5b232b[_0x51407d(0x31f)](_0x12366b,_0x493091=this[_0x51407d(0x3ca)][_0x51407d(0x7a6)](_0x5e85b6,_0x12366b));if(_0x493091<0x0)return _0x479eb6;const _0x188421=this[_0x51407d(0x3ca)]['getFast'](_0x493091,_0x40ba61);if(typeof _0x188421===_0x51407d(0x2d3))return _0x445a85(this[_0x51407d(0x708)],_0x188421);if(_0x188421===undefined||_0x188421===null)return _0x188421;return this['_readBuf'](_0x188421[_0x51407d(0x1e1)]),_0x445a85(_0x188421);}[_0x2c6624(0x65e)](_0x2af7a1,_0xca821f,_0x59269b){const _0x2dcb15=_0x2c6624;if(!this[_0x2dcb15(0x708)])this['_readBuf'](0x0);let _0x2c2509;try{_0x2c2509=this[_0x2dcb15(0x3ca)][_0x2dcb15(0x22e)](_0x2af7a1,_0xca821f,_0x59269b);}catch(_0x286363){throw _0x4d46d2(_0x286363);}const _0xf7fb8c=_0xca821f===_0x2dcb15(0x67c),_0x42d070=_0xf7fb8c?_0x59269b[0x1]:_0xca821f;let _0x14c8f2=this[_0x2dcb15(0x708)],_0x50cc4a=_0x2c2509;if(_0x2c2509 instanceof Uint8Array)this[_0x2dcb15(0x1f0)](_0x2c2509[_0x2dcb15(0x1e1)]),_0x14c8f2=_0x2c2509,_0x50cc4a=_0x2c2509[_0x2dcb15(0x1e1)];else{if(typeof _0x2c2509!==_0x2dcb15(0x2d3))return _0x2c2509[0x0];}if(_0x42d070===_0x2dcb15(0x808))return _0x14e60e(_0x14c8f2,_0x50cc4a,_0xf7fb8c);if(_0x42d070===_0x2dcb15(0x416))return _0x445a85(_0x14c8f2,_0x50cc4a);return _0x199553(_0x445a85(_0x14c8f2,_0x50cc4a),_0xf7fb8c);}[_0x2c6624(0x7a1)](_0x4ddf59,_0x3bc088,_0xd920c3,_0x1b2973,_0x9ace62=!![],_0x23eb14=!![]){const _0x1df81c=_0x2c6624,_0x33711a=()=>this['_macro'](()=>this[_0x1df81c(0x6eb)](_0x4ddf59,_0x3bc088,_0xd920c3,_0x1b2973,_0x9ace62));if(!_0x23eb14)return _0x33711a();return this[_0x1df81c(0x438)](_0x33711a);}['_retryPending'](_0x17cff4){const _0x115d29=_0x2c6624;return _0x17cff4()[_0x115d29(0x503)](async _0x77536c=>{const _0x14694f=_0x115d29;if(!_0x33c5ff(_0x77536c))throw _0x77536c;const _0x1a2f8e=Date['now']()+_0x3bf3b6;let _0x22089f=0x1;while(_0x33c5ff(_0x77536c)&&Date['now']()<_0x1a2f8e){await new Promise(_0x29efd7=>setTimeout(_0x29efd7,_0x22089f)),_0x22089f=Math[_0x14694f(0x2f2)](_0x22089f*0x2,0x14);try{return await _0x17cff4();}catch(_0x5e1f22){_0x77536c=_0x5e1f22;}}throw _0x77536c;});}[_0x2c6624(0x7c0)](_0x281052){const _0x5dd5a0=_0x2c6624;if(_0x5c299a[_0x5dd5a0(0x3b8)]())return Promise[_0x5dd5a0(0x809)](_0x281052);return new Promise(_0x1ceb0b=>setImmediate(()=>_0x1ceb0b(_0x281052)));}[_0x2c6624(0x3b2)](_0x363dbe){const _0x642a1a=_0x2c6624;if(_0x5c299a[_0x642a1a(0x3b8)]())return Promise[_0x642a1a(0x809)](_0x363dbe);return this[_0x642a1a(0x3ec)]()['then'](()=>_0x363dbe);}[_0x2c6624(0x3ec)](){return new Promise(_0x1c700e=>setImmediate(()=>{const _0xdda759=_0x303e;let _0x264e00;try{_0x264e00=this[_0xdda759(0x3ca)][_0xdda759(0x3d4)]();}catch{return _0x1c700e();}_0x133a84['whenSettled'](_0x264e00,_0x1c700e);}));}[_0x2c6624(0x66f)](_0x3d82ac){return new Promise((_0x2b57bc,_0x1dd57c)=>setImmediate(()=>{try{_0x2b57bc(_0x3d82ac());}catch(_0x1e6628){_0x1dd57c(_0x1e6628);}}));}[_0x2c6624(0x7cd)](_0x6bbeaa,_0x831d8a,_0x571d05){return _0x482a80(_0x6bbeaa,_0x831d8a,_0x571d05);}[_0x2c6624(0x470)](_0x4f6d4d){const _0x5b19f9=_0x2c6624;if(typeof _0x4f6d4d!==_0x5b19f9(0x635)||this[_0x5b19f9(0x5c9)][_0x5b19f9(0x3a9)](_0x4f6d4d)||_0x4f6d4d===_0x5b19f9(0x50b)||_0x4f6d4d===_0x5b19f9(0x32c))return;this[_0x5b19f9(0x5c9)][_0x5b19f9(0x181)](_0x4f6d4d);try{this['_native'][_0x5b19f9(0x54b)]('events',null,_0x5b19f9(0x3d3),[this[_0x5b19f9(0x240)],_0x4f6d4d]);}catch{}}['_deliverEvent'](_0x2b92fc,_0x2707e7){this['events']['emit'](_0x2b92fc,_0x2707e7);}async[_0x2c6624(0x7dd)](){const _0x3c2c4f=_0x2c6624;if(this[_0x3c2c4f(0x41a)]===_0x15786c[_0x3c2c4f(0x40c)])return;if(this[_0x3c2c4f(0x41a)]!==_0x15786c['CREATED'])throw new _0x53445e(_0x3c2c4f(0x566),_0x3c2c4f(0x34e),{'state':this[_0x3c2c4f(0x41a)]});this[_0x3c2c4f(0x41a)]=_0x15786c[_0x3c2c4f(0x1bc)],this[_0x3c2c4f(0x4ca)]=[];try{try{await this[_0x3c2c4f(0x66f)](()=>this['_native']['open']());}catch(_0x10f387){throw _0x4d46d2(_0x10f387);}}catch(_0x3ea903){this[_0x3c2c4f(0x41a)]=_0x15786c[_0x3c2c4f(0x130)],this[_0x3c2c4f(0x4ca)]=null,this[_0x3c2c4f(0x71f)]();throw _0x3ea903;}this['_isOpen']=!![],this['state']=_0x15786c[_0x3c2c4f(0x40c)];try{this[_0x3c2c4f(0x6eb)]('db',null,_0x3c2c4f(0x3f2),[this['plugins'][_0x3c2c4f(0x1fe)][_0x3c2c4f(0x2fe)](_0x5946ba=>_0x5946ba[_0x3c2c4f(0x387)]?.[_0x3c2c4f(0x6bb)])[_0x3c2c4f(0x4b0)](Boolean)],![]),await this['plugins'][_0x3c2c4f(0x73d)]();}catch(_0x4cd8c6){this[_0x3c2c4f(0x41a)]=_0x15786c['STOPPING'];try{this[_0x3c2c4f(0x3ca)]['close']();}catch{}this[_0x3c2c4f(0x41a)]=_0x15786c[_0x3c2c4f(0x130)],this[_0x3c2c4f(0x546)]=![],this[_0x3c2c4f(0x71f)]();throw _0x4cd8c6;}for(const _0x19240a of this['_call']('db',null,'envNames',[],![]))if(!_0x19240a[_0x3c2c4f(0x169)]('~'))this[_0x3c2c4f(0x6d0)](_0x19240a);try{if(this['_call']('db',null,_0x3c2c4f(0x4ed),['~log'],![])){this[_0x3c2c4f(0x53d)]=this[_0x3c2c4f(0x6d0)](_0x3c2c4f(0x5da));const _0x367b38=new Set(this[_0x3c2c4f(0x282)]['_sinks']);this[_0x3c2c4f(0x1c6)]=this['log']['attachOKDB'](this[_0x3c2c4f(0x53d)],this['id']);const _0x580c71=[...this[_0x3c2c4f(0x282)][_0x3c2c4f(0x21d)]]['find'](_0x2e58a9=>!_0x367b38[_0x3c2c4f(0x3a9)](_0x2e58a9)),_0x2706f0=this[_0x3c2c4f(0x6eb)]('db',null,_0x3c2c4f(0x6ce),[],![]);for(const _0x32f1be of(this[_0x3c2c4f(0x4ca)]??[])[_0x3c2c4f(0x6ea)](_0x2706f0))_0x580c71?.(_0x32f1be);}}catch{}this['_bootLog']=null,this[_0x3c2c4f(0x3ca)][_0x3c2c4f(0x28c)](()=>this['_pumper'][_0x3c2c4f(0x7c7)]()),this[_0x3c2c4f(0x2ba)]['start']();}async[_0x2c6624(0x799)](){const _0x23bb16=_0x2c6624;return this[_0x23bb16(0x7a1)]('db',null,'bootRuntime',[]);}async[_0x2c6624(0x379)](){const _0x20470b=_0x2c6624;if(this[_0x20470b(0x41a)]===_0x15786c[_0x20470b(0x130)])return;if(this[_0x20470b(0x41a)]!==_0x15786c[_0x20470b(0x40c)])throw new _0x53445e('Database\x20not\x20started',_0x20470b(0x34e),{'state':this[_0x20470b(0x41a)]});this[_0x20470b(0x41a)]=_0x15786c[_0x20470b(0x52d)],this['_isOpen']=![];let _0x32fded=null;if(this[_0x20470b(0x4d5)]['servers'][_0x20470b(0x1e1)])try{await this[_0x20470b(0x4d5)][_0x20470b(0x379)]();}catch(_0x54ddc3){_0x32fded=_0x54ddc3;}if(this['__adminRelay']){try{this[_0x20470b(0x6af)][_0x20470b(0x1a7)](),this[_0x20470b(0x6af)]['detach']();}catch{}this[_0x20470b(0x6af)]=null;}try{this[_0x20470b(0x1b0)]?.[_0x20470b(0x209)]?.();}catch{}try{await this[_0x20470b(0x4f1)][_0x20470b(0x209)]();}catch(_0x29bba2){_0x32fded=_0x29bba2;}for(const _0x4cb30f of[...Map[_0x20470b(0x556)][_0x20470b(0x5ab)]['call'](this['_envs'])]){try{await _0x4cb30f[_0x20470b(0x42b)][_0x20470b(0x49f)]();}catch{}try{await _0x4cb30f['engines'][_0x20470b(0x209)]();}catch{}}for(const _0x137609 of[()=>this[_0x20470b(0x17a)][_0x20470b(0x209)](),()=>this['embeddings']['stop'](),()=>this[_0x20470b(0x366)]&&this[_0x20470b(0x366)][_0x20470b(0x209)]?.()]){try{await _0x137609();}catch{}}const _0x2fb0db=this['options'][_0x20470b(0x5be)]??0x7530,_0x1d1119=[];for(const _0x4983ed of[...Map[_0x20470b(0x556)][_0x20470b(0x5ab)]['call'](this[_0x20470b(0x748)])]){if(_0x4983ed[_0x20470b(0x679)]?.[_0x20470b(0x26f)]?.[_0x20470b(0x16f)]>0x0)_0x1d1119[_0x20470b(0x460)](_0x4983ed[_0x20470b(0x679)][_0x20470b(0x49f)](_0x2fb0db));}if(_0x1d1119[_0x20470b(0x1e1)]>0x0)await Promise[_0x20470b(0x3e7)](_0x1d1119);try{this[_0x20470b(0x1c6)]?.();}catch{}this[_0x20470b(0x1c6)]=null;try{await this[_0x20470b(0x6cc)]['drain']();}catch{}this[_0x20470b(0x2ba)][_0x20470b(0x209)]();try{await this[_0x20470b(0x66f)](()=>this['_native'][_0x20470b(0x379)]());}catch(_0xbdaea1){_0x32fded=_0x32fded||_0x4d46d2(_0xbdaea1);}this[_0x20470b(0x41a)]=_0x15786c[_0x20470b(0x130)],this['_teardownNative'](),Map['prototype']['clear']['call'](this[_0x20470b(0x748)]);if(_0x32fded)throw _0x32fded;}[_0x2c6624(0x71f)](){const _0x53d788=_0x2c6624;this['_pumper'][_0x53d788(0x209)]();try{this[_0x53d788(0x3ca)][_0x53d788(0x28c)](null);}catch{}try{this['_native']['release']();}catch{}this[_0x53d788(0x708)]=null,this[_0x53d788(0x120)]=null,this[_0x53d788(0x40a)]=null,_0x5c299a[_0x53d788(0x10d)](this['_key']),_0x5c299a[_0x53d788(0x4e9)](this),_0xb1e5a3['delete'](this['_uid']);if(_0x5c299a[_0x53d788(0x49e)](this)){const _0x4ce608=[..._0xb1e5a3['values']()][_0x53d788(0x694)]();if(_0x4ce608)_0x5c299a[_0x53d788(0x6b6)](()=>_0x4ce608['_pumper'][_0x53d788(0x7c7)](),_0x4ce608);else _0x5c299a[_0x53d788(0x6b6)](()=>{},null);}}get['id'](){const _0x2aa677=_0x2c6624;return this[_0x2aa677(0x6eb)]('db',null,'id',[],![]);}[_0x2c6624(0x775)](_0x519d1c){const _0x305d9b=_0x2c6624;return this[_0x305d9b(0x586)](_0x305d9b(0x478))['_advanceHlcOnRecv'](_0x519d1c);}get[_0x2c6624(0x2e0)](){return this['_rootDb']['get']('__tokenSecret');}get['_nodePrivateKey'](){const _0x28a393=_0x2c6624;return this[_0x28a393(0x17a)][_0x28a393(0x72d)];}get[_0x2c6624(0x176)](){const _0x14df1c=_0x2c6624;return this['sync'][_0x14df1c(0x176)];}get[_0x2c6624(0x144)](){const _0x16bbb0=_0x2c6624;if(!this['_isOpen']||!this[_0x16bbb0(0x6eb)]('db',null,_0x16bbb0(0x63e),[],![]))return undefined;if(!this[_0x16bbb0(0x806)]){const _0x56f4a7=requireOkdbSubscriptionsStore(),_0x15820d=new _0x56f4a7(this,this[_0x16bbb0(0x204)]&&this[_0x16bbb0(0x204)][_0x16bbb0(0x6f8)]);_0x15820d['_sub']=this[_0x16bbb0(0x586)](_0x16bbb0(0x165));const {compileFilter:_0x54928b}=requireOkdbQueryFilter(),_0x2a9d0e=(_0x16f503,_0x573bf5)=>{if(_0x16f503==null)return![];try{return _0x54928b(_0x16f503)(_0x573bf5);}catch{return![];}};this['_subsV2Obj']={'store':_0x15820d,'router':{'_matches':_0x2a9d0e}};}return this[_0x16bbb0(0x806)];}get[_0x2c6624(0x69c)](){const _0x4a3faf=_0x2c6624;return this[_0x4a3faf(0x543)];}get['formerIds'](){const _0x1795f1=_0x2c6624;return this[_0x1795f1(0x6eb)]('db',null,_0x1795f1(0x347),[],![]);}get[_0x2c6624(0x543)](){const _0x9f13ed=_0x2c6624;return{...this[_0x9f13ed(0x6eb)]('db',null,'role',[],![])};}get[_0x2c6624(0x297)](){return require$$29['version'];}get['quarantinedEnvs'](){const _0x5a848d=_0x2c6624;return this['_call']('db',null,_0x5a848d(0x3df),[],![]);}get[_0x2c6624(0x7ba)](){const _0x544993=_0x2c6624;return this[_0x544993(0x6eb)]('db',null,_0x544993(0x7ba),[],![]);}[_0x2c6624(0x515)](){const _0x4d5f41=_0x2c6624;return this[_0x4d5f41(0x6eb)]('db',null,_0x4d5f41(0x7d0),[],![]);}[_0x2c6624(0x7c8)](){const _0x3b99b8=_0x2c6624;return this[_0x3b99b8(0x6eb)]('db',null,'diag',[],![]);}async[_0x2c6624(0x49c)](_0x5e0fd4){const _0x12ba13=_0x2c6624;this['_assertOpen'](),this[_0x12ba13(0x6eb)]('db',null,'setProcessingConfig',[_0x5e0fd4],![]);}[_0x2c6624(0x3ce)](){const _0x3391dc=_0x2c6624,_0x3d298e=Date[_0x3391dc(0x1b5)]();if(this[_0x3391dc(0x24b)]&&_0x3d298e-this[_0x3391dc(0x24b)]['at']<0xfa)return this['_pressure'][_0x3391dc(0x1be)];const _0x121911=this[_0x3391dc(0x6eb)]('db',null,_0x3391dc(0x3ce),[],![]);return this[_0x3391dc(0x24b)]={'at':_0x3d298e,'value':_0x121911},_0x121911;}[_0x2c6624(0x666)](){const _0x25add9=_0x2c6624;if(!this[_0x25add9(0x546)])throw new _0x53445e(_0x25add9(0x16e),_0x25add9(0x34e),{'state':this[_0x25add9(0x41a)]});}get[_0x2c6624(0x288)](){const _0x41aa22=_0x2c6624;if(this['state']===_0x15786c[_0x41aa22(0x130)]||!this[_0x41aa22(0x546)])return null;if(this[_0x41aa22(0x6eb)]('db',null,_0x41aa22(0x6a1),[],![])==null)return null;if(!this[_0x41aa22(0x714)]){const _0x293686=this;this[_0x41aa22(0x714)]={get 'state'(){return _0x293686['_call']('db',null,'busState',[],![]);},get 'magic'(){const _0x45e523=_0x41aa22;return Buffer[_0x45e523(0x17b)](_0x45e523(0x6c5)+_0x293686['id']);},get 'isRunning'(){const _0x5f1f17=_0x41aa22;return _0x293686[_0x5f1f17(0x6eb)]('db',null,_0x5f1f17(0x6a1),[],![])===_0x5f1f17(0x28f);},'emit'(_0x3a846a,_0x418ad6=''){const _0x34b615=_0x41aa22;_0x293686[_0x34b615(0x6eb)]('db',null,_0x34b615(0x286),[_0x3a846a,String(_0x418ad6)],![]);}};}return this[_0x41aa22(0x714)];}[_0x2c6624(0x241)](_0x1ae239,_0x3c3ecd){const _0x3b524f=_0x2c6624;this[_0x3b524f(0x288)]?.[_0x3b524f(0x3a7)](_0x3b524f(0x755),JSON[_0x3b524f(0x74c)]({'kind':_0x3b524f(0x55e),'scope':_0x1ae239,'key':_0x3c3ecd}));}get[_0x2c6624(0x4d0)](){const _0x4d2994=_0x2c6624;return this[_0x4d2994(0x51a)]||(this[_0x4d2994(0x51a)]=new(requireLock())['NativeLock'](this,_0x4d2994(0x4da),_0x4d2994(0x289)));}get[_0x2c6624(0x388)](){const _0xecdb0=_0x2c6624;return this['_systemEnv']?this[_0xecdb0(0x3f1)]['db']:undefined;}get['_envSyncStop'](){const _0x175c6c=_0x2c6624,_0x4d0f07=this['_systemEnv']?.[_0x175c6c(0x42b)];if(!_0x4d0f07)return null;const _0x19e915=_0x4d0f07['list']()[_0x175c6c(0x678)](_0x15794f=>_0x15794f[_0x175c6c(0x295)]?.[_0x175c6c(0x6bb)]==='system:env-sync');return _0x19e915?_0x4d0f07[_0x175c6c(0x590)](_0x19e915['id'],_0x19e915[_0x175c6c(0x5a1)]):null;}get[_0x2c6624(0x3f1)](){const _0x5acf6d=_0x2c6624;return this[_0x5acf6d(0x546)]?this[_0x5acf6d(0x748)][_0x5acf6d(0x1d2)](_0x5acf6d(0x4da)):undefined;}[_0x2c6624(0x6d0)](_0x9b416){const _0x426c07=_0x2c6624;let _0x3a5722=Map['prototype'][_0x426c07(0x1d2)][_0x426c07(0x54b)](this[_0x426c07(0x748)],_0x9b416);if(!_0x3a5722){_0x3a5722=new _0x3af918(this,_0x9b416),Map[_0x426c07(0x556)][_0x426c07(0x31f)]['call'](this[_0x426c07(0x748)],_0x9b416,_0x3a5722);if(_0x9b416===_0x426c07(0x478))this['_defaultEnvObj']=_0x3a5722;}return _0x3a5722;}[_0x2c6624(0x586)](_0x271408=_0x2c6624(0x478)){const _0x1f7bcc=_0x2c6624,_0x4e2b0f=this[_0x1f7bcc(0x748)]['get'](_0x271408);if(_0x4e2b0f)return _0x4e2b0f;if(this[_0x1f7bcc(0x546)]&&this['_call']('db',null,_0x1f7bcc(0x4ed),[_0x271408],![]))return this[_0x1f7bcc(0x6d0)](_0x271408);throw new _0x53445e('Environment\x20\x22'+_0x271408+_0x1f7bcc(0x805),_0x1f7bcc(0x142));}get[_0x2c6624(0x478)](){const _0x25703c=_0x2c6624;return this['env'](_0x25703c(0x478));}get[_0x2c6624(0x211)](){const _0x517caf=_0x2c6624;return this[_0x517caf(0x748)][_0x517caf(0x1d2)](_0x517caf(0x478))??this[_0x517caf(0x47a)];}get[_0x2c6624(0x44b)](){const _0x5503cc=_0x2c6624;return this[_0x5503cc(0x211)]['files'];}get[_0x2c6624(0x679)](){const _0x56efa2=_0x2c6624;return this[_0x56efa2(0x211)][_0x56efa2(0x679)];}[_0x2c6624(0x41e)](_0x2904ec){const _0x50de4f=_0x2c6624;if(!this[_0x50de4f(0x546)])return null;return this[_0x50de4f(0x6eb)]('db',null,_0x50de4f(0x2d9),[_0x2904ec],![])?{'ref'(){},'unref'(){}}:null;}get[_0x2c6624(0x752)](){const _0x29d71d=_0x2c6624;return this[_0x29d71d(0x41e)](_0x29d71d(0x155));}['_reconcileDesired'](){const _0x2cc54c=_0x2c6624;return this[_0x2cc54c(0x6eb)]('db',null,'reconcileDesired',[],!![]);}get[_0x2c6624(0x276)](){const _0x4b45c7=_0x2c6624;return this[_0x4b45c7(0x41e)](_0x4b45c7(0x6e7));}get[_0x2c6624(0x519)](){const _0x5dadce=_0x2c6624;return this[_0x5dadce(0x41e)](_0x5dadce(0x294));}get['_hlc'](){const _0x5ec46e=_0x2c6624;return this['env']('default')[_0x5ec46e(0x10c)];}get[_0x2c6624(0x792)](){const _0xce288f=_0x2c6624;throw new _0x53445e(_0xce288f(0x1f8),_0xce288f(0x7fd));}get[_0x2c6624(0x42b)](){const _0x454365=_0x2c6624;return this[_0x454365(0x211)][_0x454365(0x42b)];}get['views'](){const _0x5e1054=_0x2c6624;return this[_0x5e1054(0x211)][_0x5e1054(0x2d6)];}async[_0x2c6624(0x24f)](_0x67e084,_0x2d2b6d={}){const _0x13960d=_0x2c6624;return this[_0x13960d(0x666)](),this[_0x13960d(0x6eb)]('db',null,_0x13960d(0x24f),[_0x67e084,_0x2d2b6d]),this[_0x13960d(0x6d0)](_0x67e084);}async[_0x2c6624(0x4e6)](_0x24ec2f){const _0x52635b=_0x2c6624;if(!this[_0x52635b(0x546)])throw new _0x53445e(_0x52635b(0x1d8)+_0x24ec2f+_0x52635b(0x753),_0x52635b(0x34e));return this[_0x52635b(0x6eb)]('db',null,_0x52635b(0x4e6),[_0x24ec2f]),this[_0x52635b(0x6d0)](_0x24ec2f);}get['_adminRelay'](){const _0x439bfc=_0x2c6624;if(!this[_0x439bfc(0x6af)]&&this[_0x439bfc(0x546)]){const _0x204488=requireOkdbRelay(),_0x44dc84=new _0x204488(this,this[_0x439bfc(0x204)]?.[_0x439bfc(0x761)]?.['relay']??{});_0x44dc84[_0x439bfc(0x63a)](),_0x44dc84['_okdbAdminAttached']=!![],this[_0x439bfc(0x6af)]=_0x44dc84;}return this[_0x439bfc(0x6af)]??null;}set[_0x2c6624(0x48d)](_0x563af3){const _0x477d8c=_0x2c6624;this[_0x477d8c(0x6af)]=_0x563af3;}get[_0x2c6624(0x539)](){const _0x33cf60=_0x2c6624;let _0x4c8131=0x0;if(this['_isOpen'])for(const [_0x45864f]of Map[_0x33cf60(0x556)][_0x33cf60(0x111)][_0x33cf60(0x54b)](this[_0x33cf60(0x748)])){try{_0x4c8131+=this[_0x33cf60(0x6eb)](_0x33cf60(0x22b),_0x45864f,'gateQuanta',[],![])||0x0;}catch{}}return{'total':_0x4c8131,'maxObserved':_0x4c8131>0x0?0x1:0x0,'inFlight':0x0};}async[_0x2c6624(0x477)](_0x564275){const _0x3fb2dd=_0x2c6624,_0x255bce=this['_envs'][_0x3fb2dd(0x1d2)](_0x564275);if(_0x255bce)return _0x255bce;if(!this[_0x3fb2dd(0x6eb)]('db',null,_0x3fb2dd(0x4ed),[_0x564275],![]))throw new Error('okdb._openEnvLazy:\x20env\x20\x22'+_0x564275+_0x3fb2dd(0x732));return this[_0x3fb2dd(0x4e6)](_0x564275);}async[_0x2c6624(0x1df)](_0x50b755){const _0x1984a8=_0x2c6624,_0xddd9a2=this[_0x1984a8(0x6eb)]('db',null,_0x1984a8(0x814),[_0x50b755]);return this[_0x1984a8(0x748)][_0x1984a8(0x17d)](_0x50b755),_0xddd9a2;}async['removeEnvironment'](_0x11af6d,_0x2df904={}){const _0x50b624=_0x2c6624;this['_assertOpen']();const _0x3b0419=this[_0x50b624(0x6eb)]('db',null,_0x50b624(0x7b4),[_0x11af6d,_0x2df904]);return this[_0x50b624(0x748)][_0x50b624(0x17d)](_0x11af6d),_0x3b0419;}static get[_0x2c6624(0x13d)](){const _0x295841=_0x2c6624;return _0x29c118[_0x295841(0x13d)];}static get[_0x2c6624(0x6ba)](){const _0xd514ce=_0x2c6624;return _0x29c118[_0xd514ce(0x6ba)];}static get[_0x2c6624(0x338)](){const _0x87f392=_0x2c6624;return _0x29c118[_0x87f392(0x338)];}static async[_0x2c6624(0x32d)](_0x1e1068,_0x5639e5){const _0x13aaaa=_0x2c6624;return _0x482a80('db',_0x13aaaa(0x32d),[_0x1e1068,_0x5639e5]);}static[_0x2c6624(0x66a)](_0x1e7432){const _0x55b36c=_0x2c6624;return _0x482a80('db',_0x55b36c(0x66a),[_0x1e7432]);}static[_0x2c6624(0x794)](_0x6603c8,_0x3d1c8e){const _0x194f4f=_0x2c6624;_0x482a80('views',_0x194f4f(0x794),[_0x6603c8,_0x3d1c8e]);}static['registerViewReducer'](_0x1b15ce,_0x434a57){_0x482a80('views','registerViewReducer',[_0x1b15ce,_0x434a57]);}static[_0x2c6624(0x64b)](){}[_0x2c6624(0x451)](_0x2b19f0,_0x3b0652){const _0x2ad0d5=_0x2c6624;return require$$16[_0x2ad0d5(0x26d)](_0x2b19f0,_0x3b0652);}}_0x2f9cba['HIGH_SENTINEL']=_0x275d5c,Object['defineProperty'](_0x2f9cba,_0x2c6624(0x549),{'get'(){const _0x26ee80=_0x2c6624;return _0x2f9cba[_0x26ee80(0x6ca)]||(_0x2f9cba[_0x26ee80(0x6ca)]=new Set());},'set'(_0xc49f22){const _0x4429b0=_0x2c6624;_0x2f9cba[_0x4429b0(0x6ca)]=_0xc49f22;try{_0x482a80('db',_0x4429b0(0x491),[]);}catch{}},'configurable':!![]});for(const _0x29f9b8 of[_0x2c6624(0x273),_0x2c6624(0x1c2),_0x2c6624(0x4f8),_0x2c6624(0x323),_0x2c6624(0x443),_0x2c6624(0x717),'remove',_0x2c6624(0x1d2),'getMany',_0x2c6624(0x186),'getRange',_0x2c6624(0x13b),_0x2c6624(0x808),_0x2c6624(0x28a),_0x2c6624(0x2e5),'getIndex','byIndex',_0x2c6624(0x18c),'query',_0x2c6624(0x474),_0x2c6624(0x268),'registerType',_0x2c6624(0x110),_0x2c6624(0x1f5),_0x2c6624(0x17c),_0x2c6624(0x442),_0x2c6624(0x333),_0x2c6624(0x18f),'hasIndex',_0x2c6624(0x2a6),'resetIndex',_0x2c6624(0x2b9),_0x2c6624(0x6f5),_0x2c6624(0x5c3),_0x2c6624(0x6b4),'getUniqueViolation',_0x2c6624(0x19d),'getChanges',_0x2c6624(0x625),_0x2c6624(0x50d),_0x2c6624(0x1a4),_0x2c6624(0x62d),_0x2c6624(0x482),_0x2c6624(0x35e),_0x2c6624(0x48e),_0x2c6624(0x4fc),_0x2c6624(0x4a1),_0x2c6624(0x1cd),_0x2c6624(0x331),'now']){_0x2f9cba[_0x2c6624(0x556)][_0x29f9b8]=function(..._0x2098df){const _0x1a28ec=_0x2c6624,_0x1575bd=this[_0x1a28ec(0x586)](_0x1a28ec(0x478));return _0x1575bd[_0x29f9b8](..._0x2098df);};}function _0x1b030d(_0x672487){const _0x4600c2=_0x2c6624,_0x5c7ba4=_0x1c0634=>()=>{const _0x20236d=_0x303e;throw new Error('db.processors.'+_0x1c0634+_0x20236d(0x6b0));};return{'process':_0x5c7ba4(_0x4600c2(0x6f4)),'processRest':_0x5c7ba4(_0x4600c2(0x4a4)),'processEverything':_0x5c7ba4(_0x4600c2(0x782)),async 'start'(){const _0x3ecaac=_0x4600c2;return _0x672487[_0x3ecaac(0x6eb)]('db',null,_0x3ecaac(0x522),[]);},async 'stop'(){const _0x388922=_0x4600c2;return _0x672487[_0x388922(0x6eb)]('db',null,_0x388922(0x686),[]);},'status'(){const _0x5e3ce1=_0x4600c2;return _0x672487[_0x5e3ce1(0x6eb)]('db',null,_0x5e3ce1(0x2ec),[],![]);},get 'participating'(){const _0x12eab1=_0x4600c2;return _0x672487[_0x12eab1(0x6eb)]('db',null,_0x12eab1(0x280),[],![]);},get '_participate'(){const _0x35c52c=_0x4600c2;return _0x672487['_call']('db',null,_0x35c52c(0x280),[],![]);}};}function _0x482a80(_0x5aa50c,_0x55cac2,_0x4b901e){_0x21c819();try{return _0x406729()['callStatic'](_0x5aa50c,_0x55cac2,_0x4b901e);}catch(_0x387fb0){throw _0x4d46d2(_0x387fb0);}}_0x242c05[_0x2c6624(0x6bd)]=_0x2f9cba,_0x242c05['exports'][_0x2c6624(0x166)]=_0x482a80,_0x242c05[_0x2c6624(0x6bd)][_0x2c6624(0x427)]=_0x2f9cba,_0x242c05[_0x2c6624(0x6bd)][_0x2c6624(0x676)]=_0x275d5c,_0x242c05[_0x2c6624(0x6bd)]['default']=_0x2f9cba,Object[_0x2c6624(0x629)](_0x242c05[_0x2c6624(0x6bd)],_0x2c6624(0x58b),{'get':()=>require$$1$1[_0x2c6624(0x64f)]?.()??null,'enumerable':![],'configurable':!![]});}(lib),lib['exports'];}var libExports=requireLib(),index=getDefaultExportFromCjs(libExports);module[_0x36292f(0x6bd)]=index;
|
|
1
|
+
'use strict';const _0x1c5fdf=_0x20ac;(function(_0xb68dff,_0x536a2c){const _0x40a11f=_0x20ac,_0x51287e=_0xb68dff();while(!![]){try{const _0x4af3e8=-parseInt(_0x40a11f(0x578))/0x1+-parseInt(_0x40a11f(0x7f0))/0x2*(parseInt(_0x40a11f(0x76d))/0x3)+parseInt(_0x40a11f(0x3d0))/0x4+-parseInt(_0x40a11f(0x889))/0x5+-parseInt(_0x40a11f(0x3dd))/0x6+-parseInt(_0x40a11f(0x1e9))/0x7*(parseInt(_0x40a11f(0x475))/0x8)+parseInt(_0x40a11f(0x3a5))/0x9*(parseInt(_0x40a11f(0x839))/0xa);if(_0x4af3e8===_0x536a2c)break;else _0x51287e['push'](_0x51287e['shift']());}catch(_0x3d3b69){_0x51287e['push'](_0x51287e['shift']());}}}(_0x2854,0x47f37));var require$$0$6=require(_0x1c5fdf(0x3cb)),require$$1$1=require(_0x1c5fdf(0x820)),require$$0=require('node:fs'),require$$1=require(_0x1c5fdf(0x489)),require$$4=require(_0x1c5fdf(0x63a)),require$$0$2=require('node:crypto'),require$$0$1=require('node:perf_hooks'),require$$16=require(_0x1c5fdf(0x509)),require$$0$3=require(_0x1c5fdf(0x740)),require$$2=require(_0x1c5fdf(0x539)),require$$18=require(_0x1c5fdf(0x49e)),require$$0$4=require('crypto'),require$$0$5=require('sift');function getDefaultExportFromCjs(_0x5e67d9){const _0x1afbf7=_0x1c5fdf;return _0x5e67d9&&_0x5e67d9['__esModule']&&Object['prototype'][_0x1afbf7(0x713)][_0x1afbf7(0x765)](_0x5e67d9,'default')?_0x5e67d9[_0x1afbf7(0x3e4)]:_0x5e67d9;}var lib={'exports':{}},okdbError,hasRequiredOkdbError;function requireOkdbError(){if(hasRequiredOkdbError)return okdbError;hasRequiredOkdbError=0x1;class _0x5e6e38 extends Error{constructor(_0x5df3c6,_0x3dd54d,_0x2d578c={}){const _0x3ba61b=_0x20ac;super(_0x5df3c6),this[_0x3ba61b(0x80a)]='OKDBError',this[_0x3ba61b(0x22a)]=_0x3dd54d,this[_0x3ba61b(0x2f7)]=_0x2d578c,_0x2d578c['cause']&&(this['cause']=_0x2d578c['cause']),Error[_0x3ba61b(0x753)](this,this['constructor']);}}class _0x2f48d9 extends _0x5e6e38{constructor(_0x4c4c50,_0x5de330,_0x164e74,_0x7d725d){const _0x5f5cbf=_0x20ac;super('Version\x20mismatch\x20for\x20'+_0x4c4c50+'@'+_0x5de330+':\x20expected\x20'+_0x164e74+_0x5f5cbf(0x3c7)+_0x7d725d,_0x5f5cbf(0x711),{'type':_0x4c4c50,'key':_0x5de330,'expectedVersion':_0x164e74,'actualVersion':_0x7d725d}),this[_0x5f5cbf(0x80a)]=_0x5f5cbf(0x382);}}class _0x40375a extends _0x5e6e38{constructor(_0x400c78,_0x1633ee){const _0x449b69=_0x20ac;super(_0x400c78+'@'+_0x1633ee+'\x20does\x20not\x20exist','NOT_FOUND',{'type':_0x400c78,'key':_0x1633ee}),this[_0x449b69(0x80a)]='OKDBNotFoundError';}}class _0x235000 extends _0x5e6e38{constructor(_0x1d9e80,_0x2b0856){const _0x4ecac4=_0x20ac;super(_0x1d9e80+'@'+_0x2b0856+_0x4ecac4(0x885),_0x4ecac4(0x193),{'type':_0x1d9e80,'key':_0x2b0856}),this[_0x4ecac4(0x80a)]=_0x4ecac4(0x405);}}class _0x2ff251 extends _0x5e6e38{constructor(_0x3d31e6,_0x4868b1){const _0x55eff0=_0x20ac,_0x334d44=typeof _0x4868b1;super(_0x55eff0(0x60d)+_0x3d31e6+_0x55eff0(0x7fb)+_0x334d44+'.\x20Only\x20primitives,\x20null,\x20Buffers,\x20and\x20arrays\x20are\x20allowed.\x20Got:\x20'+_0x4868b1,_0x55eff0(0x4be),{'index':_0x3d31e6,'key':_0x4868b1,'keyType':_0x334d44}),this[_0x55eff0(0x80a)]=_0x55eff0(0x277);}}class _0x1dcf89 extends _0x5e6e38{constructor(_0x4e788e){const _0x28ecee=_0x20ac,_0x21aae8=typeof _0x4e788e;super(_0x28ecee(0x3db)+_0x21aae8+_0x28ecee(0x59d)+_0x4e788e,_0x28ecee(0x365),{'key':_0x4e788e,'keyType':_0x21aae8}),this['name']=_0x28ecee(0x4c7);}}class _0x1ceccc extends _0x5e6e38{constructor(_0x4d37ac){const _0x18bcd5=_0x20ac;super('Type\x20\x27'+_0x4d37ac+_0x18bcd5(0x722),_0x18bcd5(0x1c6),{'type':_0x4d37ac}),this[_0x18bcd5(0x80a)]=_0x18bcd5(0x42d);}}class _0x37efff extends _0x5e6e38{constructor(_0x36a98c){const _0x1cd676=_0x20ac;super(_0x1cd676(0x2d2)+_0x36a98c+_0x1cd676(0x825),_0x1cd676(0x40a),{'type':_0x36a98c}),this['name']=_0x1cd676(0x472);}}class _0x383d7d extends _0x5e6e38{constructor(_0x405e48,_0x28c265){const _0x7ea38f=_0x20ac;super(_0x7ea38f(0x702)+_0x28c265+_0x7ea38f(0x793)+_0x405e48+_0x7ea38f(0x722),'INDEX_NOT_REGISTERED',{'type':_0x405e48,'index':_0x28c265}),this[_0x7ea38f(0x80a)]=_0x7ea38f(0x5e2);}}class _0x89c07c extends _0x5e6e38{constructor(_0x3ec396,_0x5254a6){const _0x2f97be=_0x20ac;super(_0x2f97be(0x702)+_0x5254a6+_0x2f97be(0x793)+_0x3ec396+_0x2f97be(0x37d),_0x2f97be(0x51e),{'type':_0x3ec396,'index':_0x5254a6}),this['name']=_0x2f97be(0x278);}}class _0x235123 extends _0x5e6e38{constructor(_0x390f08,_0xbdb85f={}){const _0x203931=_0x20ac;super(_0x390f08,_0x203931(0x890),_0xbdb85f),this[_0x203931(0x80a)]=_0x203931(0x824);}}class _0x4fe1f0 extends _0x5e6e38{constructor(_0x1bf819,_0x20b7fd,_0xee7404,_0x1596f1,_0x49c548){const _0x26a47c=_0x20ac;super(_0x26a47c(0x1fb)+_0x1bf819+'@'+_0x20b7fd+':\x20key\x20['+_0xee7404+_0x26a47c(0x36b)+_0x1596f1+'\x27,\x20cannot\x20map\x20to\x20\x27'+_0x49c548+'\x27','UNIQUE_CONSTRAINT',{'type':_0x1bf819,'index':_0x20b7fd,'indexKey':_0xee7404,'existingKey':_0x1596f1,'conflictingKey':_0x49c548}),this[_0x26a47c(0x80a)]=_0x26a47c(0x4de);}}class _0x54d4e6 extends _0x5e6e38{constructor(_0x33dc65,_0x5b1b78,_0x2d3718){const _0x2a80ff=_0x20ac;super(_0x2a80ff(0x33e)+_0x33dc65+'@'+_0x5b1b78,'SCHEMA_VALIDATION_FAILED',{'type':_0x33dc65,'key':_0x5b1b78,'errors':_0x2d3718}),this[_0x2a80ff(0x80a)]='OKDBSchemaValidationError',this['type']=_0x33dc65,this[_0x2a80ff(0x7e4)]=_0x5b1b78,this['errors']=_0x2d3718;}}class _0x25aa28 extends _0x5e6e38{constructor(_0x327989,_0xad356c){const _0x4a327b=_0x20ac;super(_0x4a327b(0x189)+_0x327989+':\x20'+_0xad356c[_0x4a327b(0x2f6)]+_0x4a327b(0x46c),_0x4a327b(0x871),{'type':_0x327989,'failures':_0xad356c}),this['name']=_0x4a327b(0x237),this[_0x4a327b(0x359)]=_0x327989,this['failures']=_0xad356c;}}class _0x2a61c7 extends _0x5e6e38{constructor(_0x194d98,_0x47bb57,_0x53f060,_0x402e3f,_0x4dfdbd){const _0x14b25d=_0x20ac;super(_0x14b25d(0x62e)+_0x194d98+'@'+_0x47bb57+'.'+_0x53f060+_0x14b25d(0x7d1)+_0x402e3f+'@'+_0x4dfdbd+_0x14b25d(0x51f),_0x14b25d(0x19b),{'sourceType':_0x194d98,'sourceKey':_0x47bb57,'fieldPath':_0x53f060,'targetType':_0x402e3f,'targetKey':_0x4dfdbd}),this[_0x14b25d(0x80a)]=_0x14b25d(0x35a),this['sourceType']=_0x194d98,this[_0x14b25d(0x7f2)]=_0x47bb57,this[_0x14b25d(0x5d6)]=_0x53f060,this[_0x14b25d(0x6da)]=_0x402e3f,this[_0x14b25d(0x264)]=_0x4dfdbd;}}class _0x2cd57e extends _0x5e6e38{constructor(_0x3a6cb8,_0x461f47,_0x10166f){const _0x49270a=_0x20ac;super(_0x49270a(0x425)+_0x3a6cb8+'@'+_0x461f47+':\x20'+_0x10166f['length']+'\x20document(s)\x20reference\x20it\x20with\x20onDelete:restrict',_0x49270a(0x3e2),{'targetType':_0x3a6cb8,'targetKey':_0x461f47,'references':_0x10166f}),this[_0x49270a(0x80a)]='OKDBForeignKeyDeleteError',this[_0x49270a(0x6da)]=_0x3a6cb8,this[_0x49270a(0x264)]=_0x461f47,this['references']=_0x10166f;}}class _0x5dd6ea extends _0x5e6e38{constructor(_0x2dcc90,_0x36a1eb,_0x14c719){const _0x1aa6c7=_0x20ac;super(_0x1aa6c7(0x325)+_0x36a1eb+_0x1aa6c7(0x393)+_0x2dcc90+_0x1aa6c7(0x6e1)+_0x14c719['map'](_0x9f564a=>_0x9f564a[_0x1aa6c7(0x5f2)]+':'+_0x9f564a['name'])[_0x1aa6c7(0x486)](',\x20'),_0x1aa6c7(0x454),{'type':_0x2dcc90,'index':_0x36a1eb,'usedBy':_0x14c719}),this[_0x1aa6c7(0x80a)]=_0x1aa6c7(0x562);}}return okdbError={'OKDBError':_0x5e6e38,'OKDBVersionMismatchError':_0x2f48d9,'OKDBNotFoundError':_0x40375a,'OKDBAlreadyExistsError':_0x235000,'OKDBInvalidIndexKeyError':_0x2ff251,'OKDBInvalidPrimaryKeyError':_0x1dcf89,'OKDBTypeNotRegisteredError':_0x1ceccc,'OKDBTypeAlreadyRegisteredError':_0x37efff,'OKDBIndexNotRegisteredError':_0x383d7d,'OKDBIndexAlreadyRegisteredError':_0x89c07c,'OKDBInvalidValueError':_0x235123,'OKDBUniqueConstraintError':_0x4fe1f0,'OKDBSchemaValidationError':_0x54d4e6,'OKDBSchemaCollectionError':_0x25aa28,'OKDBForeignKeyError':_0x2a61c7,'OKDBForeignKeyDeleteError':_0x2cd57e,'OKDBIndexHasConsumersError':_0x5dd6ea},okdbError;}var errors,hasRequiredErrors;function requireErrors(){const _0x158419=_0x1c5fdf;if(hasRequiredErrors)return errors;hasRequiredErrors=0x1;const _0x28c9b6=requireOkdbError(),_0x87ada={'VERSION_MISMATCH':_0x28c9b6['OKDBVersionMismatchError'],'NOT_FOUND':_0x28c9b6[_0x158419(0x43c)],'ALREADY_EXISTS':_0x28c9b6[_0x158419(0x405)],'INVALID_INDEX_KEY':_0x28c9b6[_0x158419(0x277)],'INVALID_PRIMARY_KEY':_0x28c9b6['OKDBInvalidPrimaryKeyError'],'TYPE_NOT_REGISTERED':_0x28c9b6[_0x158419(0x42d)],'TYPE_ALREADY_REGISTERED':_0x28c9b6[_0x158419(0x472)],'INDEX_NOT_REGISTERED':_0x28c9b6[_0x158419(0x5e2)],'INDEX_ALREADY_REGISTERED':_0x28c9b6[_0x158419(0x278)],'INVALID_VALUE':_0x28c9b6[_0x158419(0x824)],'UNIQUE_CONSTRAINT':_0x28c9b6[_0x158419(0x4de)],'SCHEMA_VALIDATION_FAILED':_0x28c9b6[_0x158419(0x1c2)],'SCHEMA_COLLECTION_INVALID':_0x28c9b6[_0x158419(0x237)],'FOREIGN_KEY_VIOLATION':_0x28c9b6[_0x158419(0x35a)],'FOREIGN_KEY_DELETE_RESTRICTED':_0x28c9b6['OKDBForeignKeyDeleteError'],'INDEX_HAS_CONSUMERS':_0x28c9b6[_0x158419(0x562)]};class _0x467228 extends _0x28c9b6[_0x158419(0x856)]{constructor(_0x27a554,_0x4a44e2){const _0x5fa4c0=_0x158419;super(_0x27a554+_0x5fa4c0(0x1a2)+(_0x4a44e2?'\x20('+_0x4a44e2+')':''),'NOT_IMPLEMENTED_NATIVE',{'feature':_0x27a554}),this['name']='OKDBNotImplementedNativeError';}}function _0x343dcf(_0x43d71e){const _0x492201=_0x158419;if(!_0x43d71e||typeof _0x43d71e!=='object'||!_0x43d71e[_0x492201(0x729)])return _0x43d71e;delete _0x43d71e['__okdb'];const _0x10cd13=_0x43d71e[_0x492201(0x22a)];if(_0x10cd13==='Error'||_0x10cd13==='TypeError'||_0x10cd13===_0x492201(0x548)){const _0x412915=_0x10cd13===_0x492201(0x645)?TypeError[_0x492201(0x3c3)]:_0x10cd13==='RangeError'?RangeError[_0x492201(0x3c3)]:Error['prototype'];Object['setPrototypeOf'](_0x43d71e,_0x412915),_0x43d71e['name']=_0x10cd13;if(_0x43d71e[_0x492201(0x2f7)]&&_0x43d71e['details'][_0x492201(0x392)]!==undefined)_0x43d71e[_0x492201(0x392)]=_0x43d71e[_0x492201(0x2f7)][_0x492201(0x392)];return delete _0x43d71e[_0x492201(0x22a)],delete _0x43d71e['details'],_0x43d71e;}const _0x11c965=_0x87ada[_0x10cd13];Object[_0x492201(0x2f1)](_0x43d71e,(_0x11c965||_0x28c9b6['OKDBError'])['prototype']),_0x43d71e[_0x492201(0x80a)]=_0x11c965?_0x11c965[_0x492201(0x80a)][_0x492201(0x756)](/^OKDB/,_0x492201(0x683)):_0x492201(0x856);const _0x4f819e=_0x43d71e[_0x492201(0x2f7)]||{};_0x10cd13===_0x492201(0x5a0)&&(_0x43d71e[_0x492201(0x359)]=_0x4f819e[_0x492201(0x359)],_0x43d71e[_0x492201(0x7e4)]=_0x4f819e[_0x492201(0x7e4)],_0x43d71e[_0x492201(0x559)]=_0x4f819e[_0x492201(0x559)]);_0x10cd13===_0x492201(0x871)&&(_0x43d71e[_0x492201(0x359)]=_0x4f819e[_0x492201(0x359)],_0x43d71e[_0x492201(0x39f)]=_0x4f819e[_0x492201(0x39f)]);if(_0x10cd13==='FOREIGN_KEY_VIOLATION'){for(const _0x1429a6 of[_0x492201(0x203),_0x492201(0x7f2),_0x492201(0x5d6),_0x492201(0x6da),_0x492201(0x264)])_0x43d71e[_0x1429a6]=_0x4f819e[_0x1429a6];}if(_0x10cd13==='FOREIGN_KEY_DELETE_RESTRICTED'){for(const _0x433e02 of[_0x492201(0x6da),_0x492201(0x264),_0x492201(0x236)])_0x43d71e[_0x433e02]=_0x4f819e[_0x433e02];}if(_0x4f819e[_0x492201(0x3b8)])_0x43d71e[_0x492201(0x3b8)]=_0x4f819e['cause'];if(_0x4f819e['status']!==undefined)_0x43d71e['status']=_0x4f819e[_0x492201(0x392)];if(_0x4f819e['retryable']!==undefined)_0x43d71e[_0x492201(0x38f)]=_0x4f819e[_0x492201(0x38f)];return _0x43d71e;}function _0x21d3c6(_0x2a042e){const _0x3a077f=_0x158419;if(_0x2a042e===undefined)return _0x3a077f(0x777);if(_0x2a042e===null)return _0x3a077f(0x1e0);if(typeof _0x2a042e===_0x3a077f(0x460))return _0x2a042e?_0x3a077f(0x460):_0x3a077f(0x2df);if(typeof _0x2a042e===_0x3a077f(0x5c4))return _0x3a077f(0x5c4);if(typeof _0x2a042e!==_0x3a077f(0x86d))return typeof _0x2a042e;if(Array[_0x3a077f(0x55b)](_0x2a042e))return _0x2a042e[_0x3a077f(0x2f6)]?'array':'empty\x20array';if(_0x2a042e instanceof Date)return _0x3a077f(0x4a7);if(_0x2a042e instanceof Map)return _0x3a077f(0x2b6);if(Buffer[_0x3a077f(0x531)](_0x2a042e))return _0x3a077f(0x238);return _0x3a077f(0x86d);}const _0xece168=(_0x53d9e2,_0x3854a0,_0xd0e6e5)=>new _0x28c9b6[(_0x158419(0x856))](_0x3854a0,_0x53d9e2,_0xd0e6e5),_0x872446=(_0x3748b6,_0x2f5fe1,_0x3addcf)=>_0xece168('INVALID_ARGUMENT',_0x3748b6+_0x158419(0x55e)+_0x2f5fe1+_0x158419(0x44f)+_0x21d3c6(_0x3addcf),{'argument':_0x3748b6,'expected':_0x2f5fe1,'got':_0x21d3c6(_0x3addcf)}),_0x78299b=(_0x295152,_0x249bc5)=>_0xece168(_0x158419(0x3e9),_0x295152+_0x158419(0x4a4)+_0x21d3c6(_0x249bc5),{'argument':_0x295152,'expected':'non-empty\x20string','got':_0x21d3c6(_0x249bc5)}),_0x3a4bfe=(_0x7359c,_0x29b0cd)=>_0xece168('INVALID_OPTIONS',_0x7359c+':\x20'+_0x29b0cd,{'argument':_0x7359c,'problem':_0x29b0cd});function _0x4a82c6(_0x4f89f7,_0x2128ef='options'){const _0x1db4c6=_0x158419;if(_0x4f89f7===undefined)return{};if(_0x4f89f7===null)throw _0x3a4bfe(_0x2128ef,_0x1db4c6(0x6a5));return _0x4f89f7;}return errors={'reclass':_0x343dcf,'NotImplementedNative':_0x467228,'BY_CODE':_0x87ada,'describe':_0x21d3c6,'invalidArgument':_0x872446,'invalidTypeName':_0x78299b,'invalidOptions':_0x3a4bfe,'optionsArg':_0x4a82c6,..._0x28c9b6},errors;}var bridge_1,hasRequiredBridge;function requireBridge(){if(hasRequiredBridge)return bridge_1;hasRequiredBridge=0x1;const _0x24e4e9=new Map(),_0x572b11=new Map();let _0xa4dc89=0x1;const _0x51dfc7=new Map(),_0x112063=new Map();let _0x489f72=0x1;const _0x3ae2ee=new Map();let _0x23bd6b=0x1;const _0x213668=new Map();function _0x52940b(_0x12d184,_0x259ff7=null){const _0x4a13e5=_0x20ac,_0x54a1a9=_0x23bd6b++;_0x3ae2ee['set'](_0x54a1a9,_0x12d184);if(_0x259ff7)_0x213668[_0x4a13e5(0x398)](_0x54a1a9,_0x259ff7);return _0x54a1a9;}function _0x78eb7e(_0x41df8a,_0x26f273){const _0x272818=_0x20ac,_0x253f49=_0x3ae2ee[_0x272818(0x4ff)](_0x41df8a),_0x4572e6=Array[_0x272818(0x3c3)][_0x272818(0x5d1)][_0x272818(0x765)](arguments,0x2),_0x2abe18=_0x162c9c=>_0x2ce359(_0x162c9c,_0x213668['get'](_0x41df8a));let _0x2732c2=_0x4572e6;if(_0x26f273===_0x272818(0x84e)||_0x26f273===_0x272818(0x584)||_0x26f273===_0x272818(0x466)||_0x26f273===_0x272818(0x47a)||_0x26f273==='assertStartAllowed')_0x2732c2=[_0x2abe18(_0x4572e6[0x0])];else{if(_0x26f273==='patchConfig')_0x2732c2=[_0x4572e6[0x0],_0x4572e6[0x1],_0x2abe18(_0x4572e6[0x2])];else{if(_0x26f273===_0x272818(0x44c))_0x2732c2=[_0x2abe18(_0x4572e6[0x0])];}}let _0x56a3df=_0x253f49[_0x26f273](..._0x2732c2);if(_0x56a3df&&typeof _0x56a3df[_0x272818(0x8a9)]===_0x272818(0x5c4))_0x56a3df=_0x57e881(_0x56a3df);if(_0x26f273==='start'){const _0x32659f=_0x56a3df&&typeof _0x56a3df===_0x272818(0x86d)?_0x52940b(_0x56a3df):_0x52940b({});return{'$api':_0x32659f};}return _0x56a3df===undefined?null:_0x56a3df;}function _0x2ce359(_0x2facb6,_0x11b1c0){const _0x49e4bd=_0x20ac;let _0xad8efc=_0x252d7a[_0x49e4bd(0x4ff)](_0x2facb6[_0x49e4bd(0x67d)]);const _0xa45ab=_0xad8efc&&_0xad8efc[_0x49e4bd(0x263)]||_0x11b1c0||_0x58b375,_0x9ff06e=(_0x32565a,..._0x5eb3e0)=>_0xa45ab[_0x49e4bd(0x7b0)]('engines',null,_0x32565a,[_0x2facb6[_0x49e4bd(0x359)],_0x2facb6[_0x49e4bd(0x80a)],..._0x5eb3e0],!![]);return{'okdb':_0xa45ab,'key':_0x2facb6[_0x49e4bd(0x7e4)],'type':_0x2facb6[_0x49e4bd(0x359)],'name':_0x2facb6['name'],get 'storeEnv'(){const _0x2dfd2a=_0x49e4bd;if(!_0xad8efc&&_0xa45ab&&_0xa45ab['_isOpen']&&_0x2facb6['storeEnvName'])_0xad8efc=_0xa45ab['_envs'][_0x2dfd2a(0x4ff)](_0x2facb6[_0x2dfd2a(0x413)]);return _0xad8efc;},'storeEnvName':_0x2facb6[_0x49e4bd(0x413)],'config':_0x2facb6[_0x49e4bd(0x561)],'meta':_0x2facb6['meta'],'options':_0x2facb6[_0x49e4bd(0x667)],'emit':(_0x3f5f21,_0x4a09ea)=>_0x9ff06e(_0x49e4bd(0x3ce),_0x3f5f21,_0x4a09ea),'updateStatus':async(_0x50361f,_0x502704)=>_0x9ff06e(_0x49e4bd(0x833),_0x50361f,_0x502704==null?null:String(_0x502704&&_0x502704[_0x49e4bd(0x5e1)]?_0x502704['message']:_0x502704)),'updateMeta':async _0x283c87=>_0x9ff06e(_0x49e4bd(0x5cd),{'meta':_0x283c87}),'updateConfig':async _0x93b316=>_0x9ff06e(_0x49e4bd(0x5cd),{'config':_0x93b316})};}function _0x345655(_0x1a8969,_0x40a6e3,_0x14cd4d){const _0x2bdced=_0x20ac;if(_0x1a8969===_0x2bdced(0x2cf)){const _0xd5f1cc=_0x2f25df(_0x40a6e3);let _0x2e116f=_0xd5f1cc(_0x14cd4d);if(_0x2e116f&&typeof _0x2e116f[_0x2bdced(0x8a9)]==='function')_0x2e116f=_0x57e881(_0x2e116f);if(!_0x2e116f||typeof _0x2e116f[_0x2bdced(0x778)]!=='function'){const {OKDBError:_0x6dcfb}=requireErrors();throw new _0x6dcfb(_0x2bdced(0x220)+(_0x14cd4d&&_0x14cd4d[_0x2bdced(0x359)])+'\x22\x20must\x20return\x20{\x20embed(input):\x20Promise<Float32Array>\x20}',_0x2bdced(0x186));}return _0x2e116f[_0x2bdced(0x729)]=_0xd5f1cc['__okdb'],{'$id':_0x52940b(_0x2e116f),'batch':typeof _0x2e116f[_0x2bdced(0x18a)]==='function'};}const _0x5954e6=_0x3ae2ee[_0x2bdced(0x4ff)](_0x40a6e3);if(_0x1a8969==='free')return _0x3ae2ee[_0x2bdced(0x6f8)](_0x40a6e3),_0x9a9ca6['delete'](_0x40a6e3),null;if(!_0x5954e6)throw new Error('embedder\x20is\x20gone');if(typeof _0x5954e6[_0x1a8969]!=='function')return null;if(_0x1a8969===_0x2bdced(0x778)||_0x1a8969===_0x2bdced(0x18a)){const _0x443f1d=_0x1a8969===_0x2bdced(0x18a)?_0x351b72(_0x40a6e3,_0x5954e6,_0x14cd4d):_0x21a002(_0x40a6e3,_0x5954e6,_0x1a8969,_0x14cd4d);return _0x1a8969===_0x2bdced(0x778)?Array['from'](_0x443f1d):_0x443f1d[_0x2bdced(0x4ba)](_0x5374ec=>Array[_0x2bdced(0x6a7)](_0x5374ec));}let _0x75c22d=_0x5954e6[_0x1a8969]();if(_0x75c22d&&typeof _0x75c22d[_0x2bdced(0x8a9)]===_0x2bdced(0x5c4))_0x75c22d=_0x57e881(_0x75c22d);return _0x75c22d===undefined?null:_0x75c22d;}function _0x5d3bae(_0x592338,_0x341328,_0x51d139){const _0x14dbac=_0x20ac;if(_0x592338===_0x14dbac(0x2cf)){const _0x42aba2=_0x2f25df(_0x341328);let _0x368591=_0x42aba2(_0x51d139[_0x14dbac(0x561)]??{},{'dims':_0x51d139[_0x14dbac(0x62b)],'dir':_0x51d139['dir']});if(_0x368591&&typeof _0x368591[_0x14dbac(0x8a9)]===_0x14dbac(0x5c4))_0x368591=_0x57e881(_0x368591);for(const _0x1160c1 of[_0x14dbac(0x4b9),_0x14dbac(0x3cc),_0x14dbac(0x7e6),'search',_0x14dbac(0x768)]){if(!_0x368591||typeof _0x368591[_0x1160c1]!==_0x14dbac(0x5c4)){const {OKDBError:_0x16029f}=requireErrors();throw new _0x16029f(_0x14dbac(0x1d0)+_0x1160c1+'()',_0x14dbac(0x436),{'method':_0x1160c1});}}return{'$id':_0x52940b(_0x368591)};}const _0x11de92=_0x3ae2ee['get'](_0x341328);if(_0x592338===_0x14dbac(0x5a1))return _0x3ae2ee['delete'](_0x341328),null;if(!_0x11de92)throw new Error(_0x14dbac(0x550));const _0x1c9002=_0x33569e=>_0x33569e?_0x33569e[_0x14dbac(0x4ba)](_0x102ebc=>({'key':_0x102ebc[_0x14dbac(0x7e4)],'vector':Float32Array['from'](_0x102ebc[_0x14dbac(0x4f6)])})):null;let _0x40eb89;switch(_0x592338){case _0x14dbac(0x4b9):case'rebuild':{const _0x590b8e=_0x1c9002(_0x51d139);_0x40eb89=_0x11de92[_0x592338](_0x590b8e?async()=>_0x590b8e:undefined);break;}case _0x14dbac(0x3cc):_0x40eb89=_0x11de92['add'](_0x51d139[0x0],Float32Array[_0x14dbac(0x6a7)](_0x51d139[0x1]),_0x51d139[0x2]??undefined);break;case _0x14dbac(0x7e6):_0x40eb89=_0x11de92[_0x14dbac(0x7e6)](_0x51d139);break;case'search':_0x40eb89=_0x11de92['search'](Float32Array[_0x14dbac(0x6a7)](_0x51d139[_0x14dbac(0x71e)]),_0x51d139[_0x14dbac(0x1f7)]??{});break;case _0x14dbac(0x870):_0x40eb89=typeof _0x11de92['snapshot']==='function'?_0x11de92[_0x14dbac(0x870)](_0x51d139??undefined):![];break;case _0x14dbac(0x584):_0x40eb89=typeof _0x11de92[_0x14dbac(0x584)]===_0x14dbac(0x5c4)?_0x11de92['stop']():undefined;break;case'tick':_0x40eb89=typeof _0x11de92[_0x14dbac(0x73d)]===_0x14dbac(0x5c4)?_0x11de92[_0x14dbac(0x73d)]():undefined;break;case _0x14dbac(0x768):return Number(_0x11de92['count']());case _0x14dbac(0x427):return(typeof _0x11de92['info']===_0x14dbac(0x5c4)?_0x11de92[_0x14dbac(0x427)]():null)??{};default:throw new Error(_0x14dbac(0x718)+_0x592338);}if(_0x40eb89&&typeof _0x40eb89[_0x14dbac(0x8a9)]===_0x14dbac(0x5c4))_0x40eb89=_0x57e881(_0x40eb89);return _0x40eb89===undefined?null:_0x40eb89;}function _0x507d90(_0x549db9,_0x4f655f,_0x26fdec){const _0x14bfb3=_0x20ac;if(_0x549db9==='new'){const _0x29e5a8=_0x2f25df(_0x4f655f);let _0x552446=_0x29e5a8(_0x26fdec);if(_0x552446&&typeof _0x552446['then']==='function')_0x552446=_0x57e881(_0x552446);if(!_0x552446)return null;const _0x14f866=[_0x14bfb3(0x5a6),_0x14bfb3(0x542),'get',_0x14bfb3(0x768),'dropAll',_0x14bfb3(0x234)][_0x14bfb3(0x7f8)](_0x170852=>typeof _0x552446[_0x170852]==='function');return{'$id':_0x52940b(_0x552446),'has':_0x14f866};}const _0x4befc6=_0x3ae2ee[_0x14bfb3(0x4ff)](_0x4f655f);if(_0x549db9===_0x14bfb3(0x5a1))return _0x3ae2ee['delete'](_0x4f655f),null;if(!_0x4befc6)throw new Error(_0x14bfb3(0x219));const _0x21e5c5=_0x1e4a3a=>Float32Array['from'](_0x1e4a3a);let _0x525a08;switch(_0x549db9){case'put':_0x525a08=_0x4befc6[_0x14bfb3(0x77c)](_0x26fdec[0x0],_0x21e5c5(_0x26fdec[0x1]));break;case _0x14bfb3(0x7e6):_0x525a08=_0x4befc6[_0x14bfb3(0x7e6)](_0x26fdec);break;case'getAll':{_0x525a08=typeof _0x4befc6[_0x14bfb3(0x76c)]==='function'?_0x4befc6['getAll']():[];if(_0x525a08&&typeof _0x525a08[_0x14bfb3(0x8a9)]===_0x14bfb3(0x5c4))_0x525a08=_0x57e881(_0x525a08);return Array['from'](_0x525a08??[],_0x12e3d9=>({'key':_0x12e3d9[_0x14bfb3(0x7e4)],'vector':Array[_0x14bfb3(0x6a7)](_0x12e3d9[_0x14bfb3(0x4f6)])}));}case _0x14bfb3(0x5a6):_0x525a08=_0x4befc6[_0x14bfb3(0x5a6)](_0x26fdec[_0x14bfb3(0x52f)]['map'](_0x42d268=>({'key':_0x42d268[_0x14bfb3(0x7e4)],'vector':_0x21e5c5(_0x42d268[_0x14bfb3(0x4f6)])})),_0x26fdec[_0x14bfb3(0x721)]);break;case _0x14bfb3(0x542):_0x525a08=_0x4befc6[_0x14bfb3(0x542)](_0x26fdec??undefined);if(_0x525a08&&typeof _0x525a08['then']==='function')_0x525a08=_0x57e881(_0x525a08);return Array[_0x14bfb3(0x6a7)](_0x525a08??[]);case _0x14bfb3(0x4ff):{_0x525a08=_0x4befc6[_0x14bfb3(0x4ff)](_0x26fdec);if(_0x525a08&&typeof _0x525a08['then']===_0x14bfb3(0x5c4))_0x525a08=_0x57e881(_0x525a08);return _0x525a08==null?null:Array[_0x14bfb3(0x6a7)](_0x525a08);}case'count':return Number(_0x4befc6[_0x14bfb3(0x768)]());case _0x14bfb3(0x687):_0x525a08=_0x4befc6[_0x14bfb3(0x687)]();break;case _0x14bfb3(0x234):return _0x4befc6[_0x14bfb3(0x234)]()??null;default:throw new Error('storage\x20adapter\x20has\x20no\x20method\x20'+_0x549db9);}if(_0x525a08&&typeof _0x525a08[_0x14bfb3(0x8a9)]===_0x14bfb3(0x5c4))_0x525a08=_0x57e881(_0x525a08);return _0x525a08===undefined?null:_0x525a08;}const _0x4c94b7=new Map();function _0x21a002(_0x1dca3f,_0x415b27,_0x125338,_0x3fb184){const _0x3ce434=_0x20ac,_0x16c873=_0x1dca3f+'\x00'+_0x125338+'\x00'+JSON[_0x3ce434(0x34d)](_0x3fb184),_0x415fe0=_0x4c94b7[_0x3ce434(0x4ff)](_0x16c873);if(_0x415fe0){if(_0x415fe0[_0x3ce434(0x827)]==='pending')throw _0x5c8dc7();_0x4c94b7['delete'](_0x16c873);if(_0x415fe0[_0x3ce434(0x827)]==='err')throw _0x415fe0[_0x3ce434(0x658)];return _0x415fe0['value'];}const _0x169963=_0x415b27[_0x125338](_0x3fb184);if(!_0x169963||typeof _0x169963[_0x3ce434(0x8a9)]!==_0x3ce434(0x5c4))return _0x169963;const _0x334fb0={'state':'pending','value':undefined};_0x169963[_0x3ce434(0x8a9)](_0x395126=>{const _0xaf1993=_0x3ce434;_0x334fb0[_0xaf1993(0x827)]='ok',_0x334fb0[_0xaf1993(0x658)]=_0x395126;if(_0x4c94b7['get'](_0x16c873)===_0x334fb0)_0x54aeba(_0x415b27);},_0x5c7b4f=>{const _0x5ed6c7=_0x3ce434;_0x334fb0[_0x5ed6c7(0x827)]='err',_0x334fb0[_0x5ed6c7(0x658)]=_0x5c7b4f;if(_0x4c94b7[_0x5ed6c7(0x4ff)](_0x16c873)===_0x334fb0)_0x54aeba(_0x415b27);});for(let _0x4e970e=0x0;_0x4e970e<0x64&&_0x334fb0[_0x3ce434(0x827)]===_0x3ce434(0x73b);_0x4e970e++)process[_0x3ce434(0x71f)]();if(_0x334fb0['state']==='ok')return _0x334fb0[_0x3ce434(0x658)];if(_0x334fb0[_0x3ce434(0x827)]===_0x3ce434(0x582))throw _0x334fb0['value'];_0x4c94b7['set'](_0x16c873,_0x334fb0);throw _0x5c8dc7();}const _0x9a9ca6=new Map(),_0x16dd13=0xa*0x3c*0x3e8;function _0x351b72(_0x59813b,_0x1f3d37,_0x59e459){const _0x8bdd0=_0x20ac,_0x49d080=Array[_0x8bdd0(0x55b)](_0x59e459)?_0x59e459:Array[_0x8bdd0(0x6a7)](_0x59e459??[]);let _0x4f8d72=_0x9a9ca6['get'](_0x59813b);if(!_0x4f8d72)_0x9a9ca6[_0x8bdd0(0x398)](_0x59813b,_0x4f8d72=new Map());const _0xbcc78d=Date[_0x8bdd0(0x785)]();for(const [_0x13eb65,_0x48f6a9]of _0x4f8d72)if(_0x48f6a9['req']['state']!==_0x8bdd0(0x73b)&&_0xbcc78d-_0x48f6a9[_0x8bdd0(0x6f4)]['at']>_0x16dd13)_0x4f8d72[_0x8bdd0(0x6f8)](_0x13eb65);const _0x3ad8d8=_0x49d080[_0x8bdd0(0x4ba)](_0x4b6429=>JSON[_0x8bdd0(0x34d)](_0x4b6429));let _0x42d332=![];const _0xe88858=[],_0x23949a=new Set();for(let _0x18baf2=0x0;_0x18baf2<_0x3ad8d8[_0x8bdd0(0x2f6)];_0x18baf2++){const _0x2f3b1b=_0x4f8d72[_0x8bdd0(0x4ff)](_0x3ad8d8[_0x18baf2]);if(!_0x2f3b1b)!_0x23949a['has'](_0x3ad8d8[_0x18baf2])&&(_0x23949a[_0x8bdd0(0x3cc)](_0x3ad8d8[_0x18baf2]),_0xe88858['push'](_0x18baf2));else{if(_0x2f3b1b['req'][_0x8bdd0(0x827)]===_0x8bdd0(0x73b))_0x42d332=!![];else{if(_0x2f3b1b[_0x8bdd0(0x6f4)][_0x8bdd0(0x827)]===_0x8bdd0(0x582)){const _0x4b26aa=_0x2f3b1b[_0x8bdd0(0x6f4)][_0x8bdd0(0x658)];for(const [_0x522cc7,_0x57357c]of _0x4f8d72)if(_0x57357c[_0x8bdd0(0x6f4)]===_0x2f3b1b['req'])_0x4f8d72[_0x8bdd0(0x6f8)](_0x522cc7);throw _0x4b26aa;}}}}if(_0x42d332)throw _0x5c8dc7();if(_0xe88858[_0x8bdd0(0x2f6)]){const _0x2b68b9=_0xe88858['map'](_0x3ca96f=>_0x49d080[_0x3ca96f]),_0xcc0289=_0x1f3d37[_0x8bdd0(0x18a)](_0x2b68b9),_0x1014d9={'state':'pending','value':undefined,'at':0x0},_0x2b0341=(_0x21f49f,_0x299bf3)=>{const _0x49dd7b=_0x8bdd0;_0x1014d9[_0x49dd7b(0x827)]=_0x21f49f,_0x1014d9[_0x49dd7b(0x658)]=_0x299bf3,_0x1014d9['at']=Date[_0x49dd7b(0x785)]();};if(!_0xcc0289||typeof _0xcc0289['then']!==_0x8bdd0(0x5c4))_0x2b0341('ok',_0xcc0289);else{let _0x1b93f6=!![];_0xcc0289['then'](_0x1f0827=>{_0x2b0341('ok',_0x1f0827);if(!_0x1b93f6)_0x54aeba(_0x1f3d37);},_0x2090a1=>{const _0x26a225=_0x8bdd0;_0x2b0341(_0x26a225(0x582),_0x2090a1);if(!_0x1b93f6)_0x54aeba(_0x1f3d37);});for(let _0x7fb8f5=0x0;_0x7fb8f5<0x64&&_0x1014d9['state']==='pending';_0x7fb8f5++)process[_0x8bdd0(0x71f)]();_0x1b93f6=![];}for(let _0x14f741=0x0;_0x14f741<_0xe88858[_0x8bdd0(0x2f6)];_0x14f741++)_0x4f8d72[_0x8bdd0(0x398)](_0x3ad8d8[_0xe88858[_0x14f741]],{'req':_0x1014d9,'index':_0x14f741});if(_0x1014d9[_0x8bdd0(0x827)]===_0x8bdd0(0x582)){for(const _0x20bcb1 of _0xe88858)_0x4f8d72['delete'](_0x3ad8d8[_0x20bcb1]);throw _0x1014d9['value'];}if(_0x1014d9[_0x8bdd0(0x827)]===_0x8bdd0(0x73b))throw _0x5c8dc7();}const _0x3cec7f=_0x3ad8d8[_0x8bdd0(0x4ba)](_0x127508=>{const _0x22ed3b=_0x8bdd0,_0x9c1629=_0x4f8d72[_0x22ed3b(0x4ff)](_0x127508),_0x3bb2d0=_0x9c1629[_0x22ed3b(0x6f4)][_0x22ed3b(0x658)];return _0x3bb2d0?_0x3bb2d0[_0x9c1629['index']]:undefined;});for(const _0x10a5f9 of _0x3ad8d8)_0x4f8d72[_0x8bdd0(0x6f8)](_0x10a5f9);if(!_0x4f8d72['size'])_0x9a9ca6['delete'](_0x59813b);return _0x3cec7f;}function _0x5c8dc7(){const _0x5da2ab=_0x20ac;return Object[_0x5da2ab(0x60e)](new Error(_0x5da2ab(0x7fa)),{'code':'EMBED_PENDING'});}function _0x54aeba(_0x4a1b60){const _0x113a01=_0x20ac;_0x5c2b3e();try{const _0x2e77c1=_0x4a1b60[_0x113a01(0x729)]||_0x58b375;if(_0x2e77c1&&_0x2e77c1[_0x113a01(0x7df)])_0x2e77c1[_0x113a01(0x7b0)](_0x113a01(0x230),null,_0x113a01(0x380),[_0x113a01(0x177),{}],!![]);}catch{}}function _0x17ede7(_0x83b114,_0x1d3da3,_0x5df41f){const _0x258737=_0x20ac,_0x4c6334=_0x3ae2ee[_0x258737(0x4ff)](_0x83b114);if(!_0x4c6334||typeof _0x4c6334[_0x1d3da3]!=='function')return{'__absent':!![]};let _0x15ecec=_0x4c6334[_0x1d3da3](...Array[_0x258737(0x55b)](_0x5df41f)?_0x5df41f:[]);if(_0x15ecec&&typeof _0x15ecec['then']===_0x258737(0x5c4))_0x15ecec=_0x57e881(_0x15ecec);return{'value':_0x15ecec===undefined?null:_0x15ecec};}const _0x358ecb=new Map();let _0x128d68=0x1;const _0x252d7a=new Map(),_0x393185=new Map();function _0x2ef744(_0x29b1e2,_0x5abe33=null){const _0x13f98d=_0x20ac,_0x4b88ea=_0x128d68++;_0x358ecb[_0x13f98d(0x398)](_0x4b88ea,_0x29b1e2);if(_0x5abe33)_0x393185['set'](_0x4b88ea,_0x5abe33);return _0x4b88ea;}function _0x301460(_0x5cccac){const _0x482464=_0x20ac;for(const [_0x15be40,_0x1fb964]of _0x252d7a)if(_0x1fb964&&_0x1fb964[_0x482464(0x263)]===_0x5cccac)_0x252d7a[_0x482464(0x6f8)](_0x15be40);for(const [_0x52c095,_0x1922dc]of _0x213668)if(_0x1922dc===_0x5cccac)_0x213668[_0x482464(0x6f8)](_0x52c095);for(const [_0x3425fe,_0x39c08a]of _0x393185)_0x39c08a===_0x5cccac&&(_0x393185[_0x482464(0x6f8)](_0x3425fe),_0x358ecb[_0x482464(0x6f8)](_0x3425fe));if(_0x58b375===_0x5cccac)_0x58b375=null;}function _0x537a0c(_0xebc9d0,_0x1b8f70){const _0x28a609=_0x20ac;_0x252d7a[_0x28a609(0x398)](_0xebc9d0,_0x1b8f70);}function _0xcbb255(_0x2be5cd){const _0x26e4ee=_0x20ac;if(_0x2be5cd&&typeof _0x2be5cd===_0x26e4ee(0x86d)&&Object['keys'](_0x2be5cd)[_0x26e4ee(0x2f6)]===0x1&&_0x2be5cd[_0x26e4ee(0x3fa)]!==undefined)return _0x358ecb['get'](_0x2be5cd[_0x26e4ee(0x3fa)]);return _0x2be5cd;}function _0x57e881(_0x26b312){const _0x5e793a=_0x20ac;let _0x319553=![],_0x23f8b5=![],_0x54547a;_0x26b312[_0x5e793a(0x8a9)](_0x129618=>{_0x319553=!![],_0x54547a=_0x129618;},_0x3f8991=>{_0x319553=!![],_0x23f8b5=!![],_0x54547a=_0x3f8991;});for(let _0x31c64f=0x0;_0x31c64f<0x2710&&!_0x319553;_0x31c64f++)process[_0x5e793a(0x71f)]();if(!_0x319553)return _0x26b312['then'](undefined,_0x2daa51=>{const _0x3571c8=_0x5e793a;try{process['emitWarning'](_0x3571c8(0x2cc)+(_0x2daa51&&_0x2daa51['message']?_0x2daa51[_0x3571c8(0x5e1)]:_0x2daa51));}catch{}}),undefined;if(_0x23f8b5)throw _0x54547a;return _0x54547a;}function _0x352410(_0x181ff0,_0xfc63e8,_0x9744ad){const _0x335280=_0x20ac,_0x521e45=_0x2f25df(_0x181ff0),_0x17f0a7=_0x252d7a[_0x335280(0x4ff)](_0xfc63e8);try{const _0x498663=_0x521e45(_0x9744ad,{'okdb':_0x17f0a7&&_0x17f0a7[_0x335280(0x263)],'env':_0x17f0a7});if(_0x498663&&typeof _0x498663['then']===_0x335280(0x5c4))_0x57e881(_0x498663);}catch(_0x2858bf){if(_0x2858bf&&_0x2858bf[_0x335280(0x7a7)]===!![]&&_0x2858bf[_0x335280(0x22a)]!==_0x335280(0x8a2)){const _0x4153a2=new Error(_0x2858bf[_0x335280(0x5e1)]);_0x4153a2['code']=_0x335280(0x8a2);throw _0x4153a2;}throw _0x2858bf;}}const _0x1db911=new Map();function _0xfd303e(_0x3bc264,_0xcfb42a,_0x108b6a,_0xf61a28,_0x40f2cb,_0x553575){const _0x384c17=_0x20ac,_0x3cc5ee=_0x2f25df(_0x3bc264),_0x3556db=(_0x252d7a['get'](_0x553575)||{})[_0x384c17(0x263)]||_0x58b375,_0x19933c=new AbortController(),_0x5ed1a8=(_0x25158d,..._0x6b8caf)=>_0x3556db[_0x384c17(0x7b0)](_0x384c17(0x44d),_0x384c17(0x3e4),_0x25158d,_0x6b8caf,![]),_0x238956={'okdb':_0x3556db,'env':_0x252d7a['get'](_0x553575)||null,'job':_0xf61a28,'jobId':_0x40f2cb,'signal':_0x19933c[_0x384c17(0x205)],'heartbeat':()=>_0x5ed1a8(_0x384c17(0x53b),_0x108b6a),'markProgress':_0x41088b=>_0x5ed1a8(_0x384c17(0x4f4),_0x108b6a,_0x41088b),'log':(_0x2292a4,_0x4fc249)=>_0x5ed1a8(_0x384c17(0x481),_0x108b6a,_0x2292a4,_0x4fc249)};_0x1db911['set'](_0x108b6a,{'ctrl':_0x19933c,'call':_0x5ed1a8});const _0x19db41=()=>{const _0x1e779d=_0x384c17;_0x1db911[_0x1e779d(0x6f8)](_0x108b6a);try{_0x5ed1a8(_0x1e779d(0x1c9),_0x108b6a);}catch{}};let _0x15a8cf;try{_0x15a8cf=_0x3cc5ee(_0xcfb42a,_0x238956);}catch(_0x15e60f){_0x19db41();throw _0x15e60f;}if(_0x15a8cf&&typeof _0x15a8cf['then']===_0x384c17(0x5c4)){const _0x1c8a16=_0x3540a8(_0x15a8cf);return _0x15a8cf['then'](_0x19db41,_0x19db41),{'$token':_0x1c8a16};}return _0x19db41(),_0x15a8cf;}function _0x1d2a76(){const _0x398b14=_0x20ac;for(const [_0x5f09de,_0x1bfe9b]of _0x1db911){if(_0x1bfe9b['ctrl'][_0x398b14(0x205)]['aborted'])continue;let _0x1dbb31;try{_0x1dbb31=_0x1bfe9b['call']('ctxSignal',_0x5f09de);}catch{continue;}if(_0x1dbb31&&_0x1dbb31['aborted']){const {OKDBError:_0x899617}=requireErrors();_0x1bfe9b[_0x398b14(0x70a)]['abort'](new _0x899617(_0x1dbb31[_0x398b14(0x5e1)],_0x1dbb31[_0x398b14(0x22a)]));}}}let _0x58b375=null;function _0x2385e8(_0x58ea62){_0x58b375=_0x58ea62;}function _0x215ee0(_0x343ce9,_0xf52dc1,_0x45b1e5,_0x313ef1,_0x42f8e5,_0x1cacc6,_0x177c5a){const _0x34d0cd=_0x20ac,_0x2bee3c=_0x2f25df(_0x343ce9),_0x5d2578=_0x252d7a['get'](_0x45b1e5);try{const _0x1e5510=_0xf52dc1?_0x2bee3c(_0x42f8e5,_0x1cacc6):_0x2bee3c({'env':_0x5d2578,'okdb':_0x5d2578&&_0x5d2578[_0x34d0cd(0x263)],'payload':_0xcbb255(_0x313ef1)},_0x42f8e5,_0x1cacc6);if(_0x1e5510&&typeof _0x1e5510[_0x34d0cd(0x8a9)]===_0x34d0cd(0x5c4)){if(_0x1cacc6&&_0x1cacc6[_0x34d0cd(0x851)]===_0x34d0cd(0x2c7))_0x1e5510['then'](undefined,()=>{});else{if(_0x177c5a){const _0x2832ff=_0x4f2e77(_0x1e5510);if(_0x2832ff===0x0)return null;return{'$token':_0x2832ff};}else _0x57e881(_0x1e5510);}}}catch(_0x49e44e){if(_0x49e44e&&_0x49e44e[_0x34d0cd(0x7a7)]===!![]&&_0x49e44e[_0x34d0cd(0x22a)]!==_0x34d0cd(0x8a2)){const _0x526606=new Error(_0x49e44e[_0x34d0cd(0x5e1)]);_0x526606[_0x34d0cd(0x22a)]=_0x34d0cd(0x8a2);throw _0x526606;}throw _0x49e44e;}return null;}function _0x4f2e77(_0x3fdc72){const _0x3b1f0f=_0x20ac;let _0x3aadd3=_0x3b1f0f(0x73b),_0x25c608;_0x3fdc72[_0x3b1f0f(0x8a9)](_0x42064f=>{_0x3aadd3='ok',_0x25c608=_0x42064f;},_0x155ee6=>{_0x3aadd3='err',_0x25c608=_0x155ee6;});for(let _0x1d3b2c=0x0;_0x1d3b2c<0x64&&_0x3aadd3===_0x3b1f0f(0x73b);_0x1d3b2c++)process[_0x3b1f0f(0x71f)]();if(_0x3aadd3==='ok')return 0x0;const _0x186bd5=_0x489f72++,_0x1d7e57={'state':_0x3aadd3,'value':_0x25c608};_0x112063[_0x3b1f0f(0x398)](_0x186bd5,_0x1d7e57);if(_0x3aadd3===_0x3b1f0f(0x73b))_0x3fdc72[_0x3b1f0f(0x8a9)](_0x543066=>{const _0x4e90ff=_0x3b1f0f;_0x1d7e57[_0x4e90ff(0x827)]='ok',_0x1d7e57[_0x4e90ff(0x658)]=_0x543066,_0x5c2b3e();},_0x52addb=>{const _0x1cf0a2=_0x3b1f0f;_0x1d7e57[_0x1cf0a2(0x827)]='err',_0x1d7e57[_0x1cf0a2(0x658)]=_0x52addb,_0x5c2b3e();});return _0x186bd5;}function _0x35e51f(_0x3951c8){const _0x38aed2=_0x20ac;let _0x51b3a3=_0x572b11['get'](_0x3951c8);return _0x51b3a3===undefined&&(_0x51b3a3=_0xa4dc89++,_0x572b11[_0x38aed2(0x398)](_0x3951c8,_0x51b3a3),_0x24e4e9[_0x38aed2(0x398)](_0x51b3a3,{'fn':_0x3951c8,'refs':0x0})),_0x24e4e9[_0x38aed2(0x4ff)](_0x51b3a3)[_0x38aed2(0x613)]++,_0x51b3a3;}function _0x1a087f(_0x1f6033){const _0x11a523=_0x20ac,_0x5521e3=_0x24e4e9['get'](_0x1f6033);if(!_0x5521e3)return;--_0x5521e3[_0x11a523(0x613)]<=0x0&&(_0x24e4e9[_0x11a523(0x6f8)](_0x1f6033),_0x572b11[_0x11a523(0x6f8)](_0x5521e3['fn']));}function _0x2f25df(_0x5453c5){const _0x34ac43=_0x20ac,_0x51642c=_0x24e4e9[_0x34ac43(0x4ff)](_0x5453c5);if(!_0x51642c)throw new Error(_0x34ac43(0x46e)+_0x5453c5);return _0x51642c['fn'];}function _0x3540a8(_0x34e414){const _0x3aa6ac=_0x20ac;if(_0x34e414&&typeof _0x34e414['then']===_0x3aa6ac(0x5c4)){const _0x28c5f6=_0x489f72++,_0x8883a3={'state':_0x3aa6ac(0x73b),'value':undefined};return _0x112063[_0x3aa6ac(0x398)](_0x28c5f6,_0x8883a3),_0x34e414[_0x3aa6ac(0x8a9)](_0x48313e=>{const _0x129227=_0x3aa6ac;_0x8883a3['state']='ok',_0x8883a3[_0x129227(0x658)]=_0x48313e,_0x5c2b3e();},_0x2bb6df=>{const _0x14d8e0=_0x3aa6ac;_0x8883a3['state']=_0x14d8e0(0x582),_0x8883a3[_0x14d8e0(0x658)]=_0x2bb6df,_0x5c2b3e();}),_0x28c5f6;}return 0x0;}let _0x3fa2ab=()=>{},_0x4d7c27=null;function _0x1ac1f4(_0x5a579d,_0x7b0689=null){_0x3fa2ab=_0x5a579d,_0x4d7c27=_0x7b0689;}function _0xe1eeff(_0x25ff53){return _0x4d7c27===_0x25ff53;}function _0x5c2b3e(){_0x3fa2ab();}function _0x1c8fa3(_0x1ca238){const _0x46fcbc=_0x20ac,_0x2d10fc=_0x112063['get'](_0x1ca238);if(!_0x2d10fc)return{'state':_0x46fcbc(0x582),'error':{'message':'unknown\x20promise\x20token'}};if(_0x2d10fc['state']===_0x46fcbc(0x73b))return{'state':_0x46fcbc(0x73b)};_0x112063[_0x46fcbc(0x6f8)](_0x1ca238);if(_0x2d10fc['state']==='ok')return{'state':'ok','value':_0x2d10fc[_0x46fcbc(0x658)]};const _0x182955=_0x2d10fc[_0x46fcbc(0x658)];return{'state':'err','error':{'message':_0x182955&&_0x182955[_0x46fcbc(0x5e1)]!=null?String(_0x182955[_0x46fcbc(0x5e1)]):String(_0x182955),'stack':_0x182955&&_0x182955[_0x46fcbc(0x762)],'code':_0x182955&&_0x182955[_0x46fcbc(0x22a)],'status':_0x182955&&typeof _0x182955[_0x46fcbc(0x392)]===_0x46fcbc(0x46d)?_0x182955[_0x46fcbc(0x392)]:undefined,'hold':!!(_0x182955&&_0x182955[_0x46fcbc(0x7a7)]===!![])}};}function _0x5d5134(_0x4ff2ae,_0x5c4940){const _0x132bfe=_0x20ac;_0x51dfc7[_0x132bfe(0x398)](_0x4ff2ae,_0x5c4940);}function _0x3075c7(_0x53c3a0){const _0x5c63bf=_0x20ac;_0x51dfc7[_0x5c63bf(0x6f8)](_0x53c3a0);}let _0x428d6d=0x0;function _0x5483f6(){return _0x428d6d>0x0;}function _0x351bcc(){const _0x437803=_0x20ac;_0x428d6d++;try{return _0x36f53c[_0x437803(0x2d6)](undefined,arguments);}finally{_0x428d6d--;}}function _0x36f53c(_0x341742,_0x59fe1b,_0x26cb05,_0x104885,_0x1b07d4,_0x3257ec){const _0x347e36=_0x20ac;switch(_0x341742){case _0x347e36(0x318):return _0x35e51f(_0x59fe1b);case'unreg':return _0x1a087f(_0x59fe1b);case'call':{const _0x1e1f38=Array['prototype'][_0x347e36(0x5d1)][_0x347e36(0x765)](arguments,0x2),_0x5aa8e5=_0x2f25df(_0x59fe1b)[_0x347e36(0x2d6)](undefined,_0x1e1f38);return _0x5aa8e5&&typeof _0x5aa8e5[_0x347e36(0x8a9)]===_0x347e36(0x5c4)?_0x57e881(_0x5aa8e5):_0x5aa8e5;}case _0x347e36(0x688):{const _0x21f380=Array[_0x347e36(0x3c3)][_0x347e36(0x5d1)][_0x347e36(0x765)](arguments,0x2),_0x5b4028=_0x2f25df(_0x59fe1b)[_0x347e36(0x2d6)](undefined,_0x21f380);if(_0x5b4028&&typeof _0x5b4028[_0x347e36(0x8a9)]==='function')return{'$token':_0x3540a8(_0x5b4028)};return{'$value':_0x5b4028===undefined?null:_0x5b4028,'$undef':_0x5b4028===undefined};}case'event':{const _0x4dc00e=_0x51dfc7[_0x347e36(0x4ff)](_0x59fe1b);if(_0x4dc00e)_0x4dc00e[_0x347e36(0x5e0)](_0x26cb05,_0x104885);return undefined;}case'log':{const _0x1b786d=_0x51dfc7[_0x347e36(0x4ff)](_0x59fe1b);if(_0x1b786d)_0x1b786d[_0x347e36(0x601)](_0x26cb05);return undefined;}case'handler':return _0x215ee0(_0x59fe1b,_0x26cb05,_0x104885,_0x1b07d4,_0x3257ec,arguments[0x6],arguments[0x7]);case _0x347e36(0x27e):return _0x352410(_0x59fe1b,_0x26cb05,_0x104885);case _0x347e36(0x87b):return _0xfd303e(_0x59fe1b,_0x26cb05,_0x104885,_0x1b07d4,_0x3257ec,arguments[0x6]);case'driver':return _0x78eb7e['apply'](null,Array[_0x347e36(0x3c3)][_0x347e36(0x5d1)][_0x347e36(0x765)](arguments,0x1));case'api':return _0x17ede7(_0x59fe1b,_0x26cb05,_0x104885);case'resolve':return _0x1c8fa3(_0x59fe1b);case _0x347e36(0x57e):{const _0x581921=((async()=>{const _0x403a9b=_0x347e36,_0x1d7c8f=await globalThis['fetch'](_0x59fe1b);if(!_0x1d7c8f['ok']){const _0x458241=new Error(_0x403a9b(0x4ab)+_0x1d7c8f[_0x403a9b(0x392)]);_0x458241[_0x403a9b(0x22a)]=_0x403a9b(0x88a);throw _0x458241;}return _0x1d7c8f[_0x403a9b(0x7c1)]();})());return _0x57e881(_0x581921)??null;}case _0x347e36(0x5ab):return _0x345655(_0x59fe1b,_0x26cb05,_0x104885);case _0x347e36(0x7d6):return _0x5d3bae(_0x59fe1b,_0x26cb05,_0x104885);case _0x347e36(0x501):return _0x507d90(_0x59fe1b,_0x26cb05,_0x104885);default:throw new Error(_0x347e36(0x5c9)+_0x341742);}}return bridge_1={'inNativeCall':_0x5483f6,'regObject':_0x52940b,'checkSignals':_0x1d2a76,'setCurrentDb':_0x2385e8,'forgetDb':_0x301460,'storePayload':_0x2ef744,'registerEnv':_0x537a0c,'resolvePayload':_0xcbb255,'bridge':_0x351bcc,'reg':_0x35e51f,'unreg':_0x1a087f,'fnOf':_0x2f25df,'track':_0x3540a8,'resolve':_0x1c8fa3,'registerTarget':_0x5d5134,'unregisterTarget':_0x3075c7,'setKick':_0x1ac1f4,'kickOwnedBy':_0xe1eeff},bridge_1;}var writebatch,hasRequiredWritebatch;function requireWritebatch(){const _0x1b372e=_0x1c5fdf;if(hasRequiredWritebatch)return writebatch;hasRequiredWritebatch=0x1;const {reclass:_0x2324cf}=requireErrors(),_0x15f392=requireBridge(),_0x29c8af=new Map();let _0x405357=null;function _0x5cf675(_0x2c0f85){if(_0x405357)return;_0x405357=_0x2c0f85,_0x2c0f85['setFlushNotify'](_0x24debe);}function _0x24debe(){const _0xf75b0d=_0x20ac,_0x2679da=_0x405357['settledTickets']();for(const _0x3bf9fe of _0x2679da){const _0x2b4a7a=_0x29c8af[_0xf75b0d(0x4ff)](_0x3bf9fe);_0x2b4a7a&&(_0x29c8af['delete'](_0x3bf9fe),_0x2b4a7a());}}function _0x5d614d(_0xdafd92,_0x31776c){const _0x5727eb=_0x20ac;_0x29c8af[_0x5727eb(0x398)](_0xdafd92,_0x31776c);}class _0x265a45{constructor(_0x27cf81){const _0x3481a6=_0x20ac;this['db']=_0x27cf81,this['queue']=[],this['scheduled']=![],this[_0x3481a6(0x837)]=![],this['inflight']=new Set();}[_0x1b372e(0x65c)](_0x5850ba,_0x127b47,_0xf501d8,_0x32ca7d){const _0x5bdfe4=_0x1b372e;if(_0x15f392[_0x5bdfe4(0x30c)]())try{return Promise[_0x5bdfe4(0x4a2)](this['db'][_0x5bdfe4(0x7b0)](_0x5850ba,_0x127b47,_0xf501d8,_0x32ca7d));}catch(_0x4ab4aa){return Promise['reject'](_0x4ab4aa);}const _0x544369=new Promise((_0x173a01,_0x535302)=>{const _0x56eb84=_0x5bdfe4;this['queue'][_0x56eb84(0x3c0)]({'item':[_0x5850ba,_0x127b47,_0xf501d8,_0x32ca7d],'resolve':_0x173a01,'reject':_0x535302});});this[_0x5bdfe4(0x676)][_0x5bdfe4(0x3cc)](_0x544369);const _0xb1e7f3=()=>this['inflight']['delete'](_0x544369);return _0x544369[_0x5bdfe4(0x8a9)](_0xb1e7f3,_0xb1e7f3),!this['scheduled']&&(this[_0x5bdfe4(0x179)]=!![],setImmediate(()=>{const _0x1a39b4=_0x5bdfe4;this[_0x1a39b4(0x179)]=![],this['commit']();})),_0x544369;}[_0x1b372e(0x715)](){const _0x228dda=_0x1b372e;if(!this[_0x228dda(0x44d)][_0x228dda(0x2f6)])return;if(this[_0x228dda(0x837)]){!this[_0x228dda(0x179)]&&(this[_0x228dda(0x179)]=!![],setImmediate(()=>{const _0x4019e0=_0x228dda;this['scheduled']=![],this[_0x4019e0(0x715)]();}));return;}const _0x5b9e01=this['queue'];this[_0x228dda(0x44d)]=[],this[_0x228dda(0x4e3)](_0x5b9e01);}['_run'](_0x4cfc76){const _0x5db233=_0x1b372e;let _0x32dd8a;this['inBatch']=!![];try{_0x32dd8a=this['db'][_0x5db233(0x487)][_0x5db233(0x1f0)](_0x4cfc76[_0x5db233(0x4ba)](_0x3911fc=>_0x3911fc[_0x5db233(0x420)]));}catch(_0x29a8e1){this[_0x5db233(0x837)]=![];if(_0x4cfc76[_0x5db233(0x2f6)]>0x1){for(const _0x25094d of _0x4cfc76)this['_run']([_0x25094d]);return;}const _0x33eac6=_0x2324cf(_0x29a8e1);for(const _0x22332b of _0x4cfc76)_0x22332b['reject'](_0x33eac6);return;}finally{this[_0x5db233(0x837)]=![];}try{this['db'][_0x5db233(0x51b)][_0x5db233(0x577)]();}catch{}const [_0x8611be,_0x626992]=_0x32dd8a;_0x5d614d(_0x626992,()=>{const _0x48e878=_0x5db233;for(let _0x31864b=0x0;_0x31864b<_0x4cfc76[_0x48e878(0x2f6)];_0x31864b++){const _0x7f4d71=_0x8611be[_0x31864b];if(_0x7f4d71&&_0x7f4d71[0x0])_0x4cfc76[_0x31864b]['resolve'](_0x7f4d71[0x1]);else _0x4cfc76[_0x31864b][_0x48e878(0x87c)](_0x2324cf(_0x7f4d71?_0x7f4d71[0x1]:new Error(_0x48e878(0x1be))));}});}async['drain'](){const _0x465460=_0x1b372e;this[_0x465460(0x715)]();while(this[_0x465460(0x676)][_0x465460(0x4ad)]){await Promise[_0x465460(0x30f)]([...this[_0x465460(0x676)]]),this[_0x465460(0x715)]();}let _0x4c0e50;try{_0x4c0e50=this['db'][_0x465460(0x487)]['flushTicket']();}catch{return;}await new Promise(_0x3a25fc=>_0x5d614d(_0x4c0e50,_0x3a25fc));}}return writebatch={'install':_0x5cf675,'WriteBatch':_0x265a45,'whenSettled':_0x5d614d},writebatch;}var pump,hasRequiredPump;function requirePump(){const _0xe2cabb=_0x1c5fdf;if(hasRequiredPump)return pump;hasRequiredPump=0x1;const _0x268787=Number(process.env.OKDB_NATIVE_IDLE_MS)||0xfa;class _0x5be983{constructor(_0x8c9dc7){const _0x2d6c34=_0x20ac;this[_0x2d6c34(0x638)]=_0x8c9dc7,this[_0x2d6c34(0x6f5)]=null,this[_0x2d6c34(0x49b)]=null,this[_0x2d6c34(0x843)]=![],this[_0x2d6c34(0x35c)]=![],this['pumping']=![],this[_0x2d6c34(0x5ae)]=![],this[_0x2d6c34(0x271)]=0x0,this[_0x2d6c34(0x559)]=[],this[_0x2d6c34(0x1f5)]=[];}[_0xe2cabb(0x323)](_0x3f71e){return new Promise(_0x16f87e=>{const _0x42ddcb=setTimeout(_0x3e5122,_0x3f71e);function _0x3e5122(){clearTimeout(_0x42ddcb),_0x16f87e();}this['turnWaiters']['push'](_0x3e5122);});}[_0xe2cabb(0x293)](){const _0x1053d2=_0xe2cabb;if(this[_0x1053d2(0x1f5)]['length']===0x0)return;const _0x1d6ce5=this[_0x1053d2(0x1f5)];this[_0x1053d2(0x1f5)]=[];for(const _0x2ee953 of _0x1d6ce5)_0x2ee953();}[_0xe2cabb(0x84e)](){const _0xe2bd5=_0xe2cabb;this[_0xe2bd5(0x35c)]=![],this[_0xe2bd5(0x577)]();}[_0xe2cabb(0x584)](){const _0x1aa9e2=_0xe2cabb;this[_0x1aa9e2(0x35c)]=!![];if(this[_0x1aa9e2(0x6f5)])clearTimeout(this[_0x1aa9e2(0x6f5)]);if(this[_0x1aa9e2(0x49b)])clearImmediate(this[_0x1aa9e2(0x49b)]);this[_0x1aa9e2(0x6f5)]=this[_0x1aa9e2(0x49b)]=null,this['_settleWaiters']();}[_0xe2cabb(0x577)](){const _0x2324c0=_0xe2cabb;if(this[_0x2324c0(0x35c)]||this[_0x2324c0(0x49b)])return;this['timer']&&(clearTimeout(this[_0x2324c0(0x6f5)]),this['timer']=null),this['immediate']=setImmediate(()=>{const _0x1b9ff8=_0x2324c0;this[_0x1b9ff8(0x49b)]=null,this[_0x1b9ff8(0x45e)]();});}[_0xe2cabb(0x45e)](){const _0x2b970a=_0xe2cabb;if(this[_0x2b970a(0x35c)]||this[_0x2b970a(0x7dd)]){this['dirty']=!![];return;}this[_0x2b970a(0x7dd)]=!![];let _0x56b4d8;try{this['turns']++,_0x56b4d8=this[_0x2b970a(0x638)][_0x2b970a(0x440)]();if(this[_0x2b970a(0x4c8)])this[_0x2b970a(0x4c8)]();}catch(_0x3bd9ac){_0x56b4d8=_0x268787,process[_0x2b970a(0x4a3)](()=>{throw _0x3bd9ac;});}finally{this[_0x2b970a(0x7dd)]=![],this[_0x2b970a(0x293)]();}if(this['stopped']||_0x56b4d8===-0x2)return;if(this[_0x2b970a(0x5ae)])return this['dirty']=![],this[_0x2b970a(0x577)]();const _0x24d597=_0x56b4d8<0x0?_0x268787:Math['max'](0x0,Math[_0x2b970a(0x3d2)](_0x56b4d8,_0x268787));if(_0x24d597<=0x0)return this[_0x2b970a(0x577)]();this[_0x2b970a(0x6f5)]=setTimeout(()=>{const _0x51628e=_0x2b970a;this[_0x51628e(0x6f5)]=null,this['turn']();},Math[_0x2b970a(0x6c1)](_0x24d597));if(this[_0x2b970a(0x6f5)][_0x2b970a(0x54c)])this[_0x2b970a(0x6f5)]['unref']();}}return pump={'Pumper':_0x5be983},pump;}var dist$1={},hasRequiredDist$1;function requireDist$1(){const _0x28fe76=_0x1c5fdf;if(hasRequiredDist$1)return dist$1;hasRequiredDist$1=0x1;const _0x150518=Symbol[_0x28fe76(0x22d)](_0x28fe76(0x757)),_0x1aac74={'value':null,'done':!![]},_0x139e5f={'value':null,'done':!![]};!Symbol[_0x28fe76(0x6a4)]&&(Symbol[_0x28fe76(0x6a4)]=Symbol[_0x28fe76(0x22d)](_0x28fe76(0x540)));const _0x4d51f1={};class _0x47cd3f{constructor(_0xa8b09a){const _0x2858c0=_0x28fe76;_0xa8b09a&&(this['iterate']=_0xa8b09a[Symbol[_0x2858c0(0x84c)]][_0x2858c0(0x818)](_0xa8b09a));}[_0x28fe76(0x4ba)](_0x47ed49){const _0xca4412=_0x28fe76;let _0x1827fc=this,_0x17e7ac=new _0x47cd3f();return _0x17e7ac[_0xca4412(0x7b7)]=(_0x4d3796=_0x4d51f1)=>{const _0x4cb47b=_0xca4412,{async:_0x204d05}=_0x4d3796;let _0x4f942b=_0x1827fc[_0x204d05?Symbol['asyncIterator']:Symbol['iterator']](_0x4d3796);if(!_0x204d05)_0x1827fc[_0x4cb47b(0x317)]=!![];let _0x3ee321=-0x1;return{'next'(_0x232e1c){const _0x423adb=_0x4cb47b;let _0x472228;do{let _0x27bb47;try{if(_0x232e1c)_0x27bb47=_0x232e1c,_0x232e1c=null;else{_0x3ee321++,_0x27bb47=_0x4f942b['next']();if(_0x27bb47[_0x423adb(0x8a9)])return!_0x204d05&&this[_0x423adb(0x6d9)](new Error(_0x423adb(0x40b))),_0x27bb47[_0x423adb(0x8a9)](_0x392222=>this[_0x423adb(0x60b)](_0x392222),_0xf5de30=>{return this['throw'](_0xf5de30);});}if(_0x27bb47['done']===!![]){this[_0x423adb(0x1e2)]=!![];if(_0x17e7ac[_0x423adb(0x369)])_0x17e7ac[_0x423adb(0x369)]();return _0x27bb47;}try{_0x472228=_0x47ed49['call'](_0x1827fc,_0x27bb47[_0x423adb(0x658)],_0x3ee321);if(_0x472228&&_0x472228[_0x423adb(0x8a9)]&&_0x204d05)return _0x472228[_0x423adb(0x8a9)](_0x70cbb8=>_0x70cbb8===_0x150518?this[_0x423adb(0x60b)]():{'value':_0x70cbb8},_0x41f2a6=>{const _0x588d00=_0x423adb;if(_0x4d3796['continueOnRecoverableError'])_0x41f2a6[_0x588d00(0x3ee)]=!![];return this['throw'](_0x41f2a6);});}catch(_0x80c142){if(_0x4d3796[_0x423adb(0x5c0)])_0x80c142[_0x423adb(0x3ee)]=!![];throw _0x80c142;}}catch(_0x4ae7c1){if(_0x17e7ac[_0x423adb(0x1c4)])try{_0x472228=_0x17e7ac['handleError'](_0x4ae7c1,_0x3ee321);}catch(_0x3014f3){return this['throw'](_0x3014f3);}else return this['throw'](_0x4ae7c1);}}while(_0x472228===_0x150518);if(_0x472228===_0x1aac74)return this[_0x423adb(0x523)]();return{'value':_0x472228};},'return'(_0x8ed0f1){const _0x3736af=_0x4cb47b;if(!this[_0x3736af(0x1e2)]){_0x139e5f[_0x3736af(0x658)]=_0x8ed0f1,this[_0x3736af(0x1e2)]=!![];if(_0x17e7ac[_0x3736af(0x369)])_0x17e7ac[_0x3736af(0x369)]();_0x4f942b[_0x3736af(0x523)]?.();}return _0x139e5f;},'throw'(_0x43a17e){const _0xb53d7c=_0x4cb47b;if(_0x43a17e[_0xb53d7c(0x3ee)]){if(_0x17e7ac[_0xb53d7c(0x22e)])try{return{'value':_0x17e7ac[_0xb53d7c(0x22e)](_0x43a17e)};}catch(_0x1e34e4){this[_0xb53d7c(0x523)]();throw _0x1e34e4;}if(_0x4d3796[_0xb53d7c(0x5c0)])throw _0x43a17e;}this[_0xb53d7c(0x523)]();throw _0x43a17e;}};},_0x17e7ac;}[Symbol[_0x28fe76(0x6a4)]](_0x812fd5){const _0x202853=_0x28fe76;if(_0x812fd5)_0x812fd5={..._0x812fd5,'async':!![]};else _0x812fd5={'async':!![]};return this[_0x202853(0x84c)]=this['iterate'](_0x812fd5);}[Symbol['iterator']](_0x5e8407){const _0x589172=_0x28fe76;return this[_0x589172(0x84c)]=this['iterate'](_0x5e8407);}[_0x28fe76(0x7f8)](_0x2f9d33){const _0x4824c0=_0x28fe76;let _0x34bc60=this[_0x4824c0(0x4ba)](_0x53a9c8=>{const _0x217851=_0x4824c0;let _0x2f533c=_0x2f9d33(_0x53a9c8);if(_0x2f533c?.['then'])return _0x2f533c[_0x217851(0x8a9)](_0x4edf3d=>_0x4edf3d?_0x53a9c8:_0x150518);else return _0x2f533c?_0x53a9c8:_0x150518;}),_0x2061d2=_0x34bc60[_0x4824c0(0x7b7)];return _0x34bc60[_0x4824c0(0x7b7)]=(_0x32918a=_0x4d51f1)=>{const _0x2c9bbd=_0x4824c0;if(_0x32918a[_0x2c9bbd(0x5c0)])_0x32918a={..._0x32918a,'continueOnRecoverableError':![]};return _0x2061d2(_0x32918a);},_0x34bc60;}['forEach'](_0x58dd08){const _0x5c61a6=_0x28fe76;let _0xfd2a6c=this[_0x5c61a6(0x84c)]=this[_0x5c61a6(0x7b7)](),_0x951cbb;while((_0x951cbb=_0xfd2a6c[_0x5c61a6(0x60b)]())[_0x5c61a6(0x1e2)]!==!![]){_0x58dd08(_0x951cbb[_0x5c61a6(0x658)]);}}[_0x28fe76(0x18e)](_0x5f2cd7){let _0x4d07db=new _0x47cd3f();return _0x4d07db['iterate']=(_0x5142a5=_0x4d51f1)=>{const _0x4da4e2=_0x20ac;let _0x453791=this['iterator']=this[_0x4da4e2(0x7b7)](_0x5142a5),_0x87f2bc=!![];function _0x4ee287(_0x710d4a){const _0xec8eba=_0x4da4e2;if(_0x87f2bc)try{_0x87f2bc=![],_0x453791=_0x5f2cd7[_0x5142a5[_0xec8eba(0x3e5)]?Symbol['asyncIterator']:Symbol['iterator']](),_0x710d4a=_0x453791[_0xec8eba(0x60b)]();if(_0x4d07db[_0xec8eba(0x369)]){if(_0x710d4a[_0xec8eba(0x8a9)]){if(!_0x5142a5[_0xec8eba(0x3e5)])throw new Error(_0xec8eba(0x40b));_0x710d4a[_0xec8eba(0x8a9)](_0x1f9a53=>{const _0xb9208b=_0xec8eba;if(_0x1f9a53['done']())_0x4d07db[_0xb9208b(0x369)]();},_0x1baf12=>{const _0x539db9=_0xec8eba;this[_0x539db9(0x523)]();throw _0x1baf12;});}else{if(_0x710d4a[_0xec8eba(0x1e2)])_0x4d07db['onDone']();}}}catch(_0x255ffa){this['throw'](_0x255ffa);}else{if(_0x4d07db[_0xec8eba(0x369)])_0x4d07db[_0xec8eba(0x369)]();}return _0x710d4a;}return{'next'(){const _0x56e065=_0x4da4e2;try{let _0x3e5a2c=_0x453791[_0x56e065(0x60b)]();if(_0x3e5a2c['then']){if(!_0x5142a5[_0x56e065(0x3e5)])throw new Error(_0x56e065(0x40b));return _0x3e5a2c[_0x56e065(0x8a9)](_0x10f3b8=>{const _0x27e300=_0x56e065;if(_0x10f3b8[_0x27e300(0x1e2)])return _0x4ee287(_0x10f3b8);return _0x10f3b8;});}if(_0x3e5a2c[_0x56e065(0x1e2)])return _0x4ee287(_0x3e5a2c);return _0x3e5a2c;}catch(_0x3381ec){this[_0x56e065(0x6d9)](_0x3381ec);}},'return'(_0x277cd7){const _0x44a3d3=_0x4da4e2;if(!this['done']){_0x139e5f[_0x44a3d3(0x658)]=_0x277cd7,this[_0x44a3d3(0x1e2)]=!![];if(_0x4d07db[_0x44a3d3(0x369)])_0x4d07db[_0x44a3d3(0x369)]();_0x453791[_0x44a3d3(0x523)]();}return _0x139e5f;},'throw'(_0x1311e0){const _0x1bddbc=_0x4da4e2;if(_0x5142a5['continueOnRecoverableError'])throw _0x1311e0;this[_0x1bddbc(0x523)]();throw _0x1311e0;}};},_0x4d07db;}['flatMap'](_0x127ea3){let _0x15b4e4=new _0x47cd3f();return _0x15b4e4['iterate']=(_0x1bf852=_0x4d51f1)=>{const _0x4eb14d=_0x20ac;let _0xe896b4=this[_0x4eb14d(0x84c)]=this[_0x4eb14d(0x7b7)](_0x1bf852),_0x52c832;return{'next'(_0x20d07a){const _0x597d5b=_0x4eb14d;try{do{if(_0x52c832){let _0x2ea251;if(_0x20d07a)_0x2ea251=_0x20d07a,_0x20d07a=undefined;else _0x2ea251=_0x52c832['next']();if(_0x2ea251[_0x597d5b(0x8a9)]){if(!_0x1bf852['async'])throw new Error(_0x597d5b(0x40b));return _0x2ea251['then'](_0xdd2031=>this[_0x597d5b(0x60b)](_0xdd2031));}if(!_0x2ea251['done'])return _0x2ea251;}let _0xfdee24;if(_0x20d07a!=undefined)_0xfdee24=_0x20d07a,_0x20d07a=undefined;else _0xfdee24=_0xe896b4[_0x597d5b(0x60b)]();if(_0xfdee24[_0x597d5b(0x8a9)]){if(!_0x1bf852[_0x597d5b(0x3e5)])throw new Error('Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results');return _0x52c832=undefined,_0xfdee24[_0x597d5b(0x8a9)](_0x415cc8=>this[_0x597d5b(0x60b)](_0x415cc8));}if(_0xfdee24[_0x597d5b(0x1e2)]){if(_0x15b4e4[_0x597d5b(0x369)])_0x15b4e4['onDone']();return _0xfdee24;}try{let _0x4bb39a=_0x127ea3(_0xfdee24[_0x597d5b(0x658)]);if(_0x4bb39a?.['then']){if(!_0x1bf852[_0x597d5b(0x3e5)])throw new Error(_0x597d5b(0x40b));return _0x4bb39a[_0x597d5b(0x8a9)](_0x4cde84=>{const _0x582a2d=_0x597d5b;return Array['isArray'](_0x4cde84)||_0x4cde84 instanceof _0x47cd3f?(_0x52c832=_0x4cde84[Symbol[_0x582a2d(0x84c)]](),this[_0x582a2d(0x60b)]()):(_0x52c832=null,{'value':_0x4cde84});},_0x230a96=>{const _0x9f6234=_0x597d5b;if(_0x1bf852[_0x9f6234(0x5c0)])_0x230a96[_0x9f6234(0x3ee)]=!![];this[_0x9f6234(0x6d9)](_0x230a96);});}if(Array[_0x597d5b(0x55b)](_0x4bb39a)||_0x4bb39a instanceof _0x47cd3f)_0x52c832=_0x4bb39a[Symbol[_0x597d5b(0x84c)]]();else return _0x52c832=null,{'value':_0x4bb39a};}catch(_0x836420){if(_0x1bf852[_0x597d5b(0x5c0)])_0x836420[_0x597d5b(0x3ee)]=!![];throw _0x836420;}}while(!![]);}catch(_0x5a0985){this[_0x597d5b(0x6d9)](_0x5a0985);}},'return'(){const _0x3117ad=_0x4eb14d;if(_0x15b4e4[_0x3117ad(0x369)])_0x15b4e4[_0x3117ad(0x369)]();if(_0x52c832)_0x52c832[_0x3117ad(0x523)]();return _0xe896b4[_0x3117ad(0x523)]();},'throw'(_0x3bedfe){const _0x480413=_0x4eb14d;if(_0x1bf852['continueOnRecoverableError'])throw _0x3bedfe;if(_0x15b4e4['onDone'])_0x15b4e4['onDone']();if(_0x52c832)_0x52c832[_0x480413(0x523)]();this[_0x480413(0x523)]();throw _0x3bedfe;}};},_0x15b4e4;}[_0x28fe76(0x5d1)](_0x152bee,_0x4f3a71){const _0xc064c6=_0x28fe76;let _0x3558ec=this[_0xc064c6(0x4ba)]((_0x53b94d,_0x52365d)=>{const _0x2d738b=_0xc064c6;if(_0x52365d<_0x152bee)return _0x150518;if(_0x52365d>=_0x4f3a71)return _0x1aac74[_0x2d738b(0x658)]=_0x53b94d,_0x1aac74;return _0x53b94d;});return _0x3558ec['handleError']=(_0x29d98b,_0x278b66)=>{if(_0x278b66<_0x152bee)return _0x150518;if(_0x278b66>=_0x4f3a71)return _0x1aac74;throw _0x29d98b;},_0x3558ec;}[_0x28fe76(0x37a)](_0x5ca8a1){const _0x3abc2d=_0x28fe76;if(typeof _0x5ca8a1!==_0x3abc2d(0x5c4))throw new TypeError(_0x3abc2d(0x75f));let _0x3a2711=this[_0x3abc2d(0x4ba)](_0x33b921=>{return _0x33b921;}),_0x369427=_0x3a2711['iterate'];return _0x3a2711['iterate']=(_0x1cfaac=_0x4d51f1)=>{return _0x369427({..._0x1cfaac,'continueOnRecoverableError':!![]});},_0x3a2711[_0x3abc2d(0x22e)]=_0x5ca8a1,_0x3a2711;}[_0x28fe76(0x60b)](){const _0x541eb5=_0x28fe76;if(!this[_0x541eb5(0x84c)])this[_0x541eb5(0x84c)]=this['iterate']();return this[_0x541eb5(0x84c)]['next']();}[_0x28fe76(0x7bc)](){const _0x11cbe7=_0x28fe76;if(this['asArray']&&this[_0x11cbe7(0x6d3)][_0x11cbe7(0x175)])return this[_0x11cbe7(0x6d3)];const _0x469e8f=new Error(_0x11cbe7(0x334));_0x469e8f[_0x11cbe7(0x761)]=this[_0x11cbe7(0x6d3)];throw _0x469e8f;}get[_0x28fe76(0x6d3)](){const _0x289e7c=_0x28fe76;if(this[_0x289e7c(0x467)])return this[_0x289e7c(0x467)];let _0x4d3249=new Promise((_0x2209d5,_0x1b1889)=>{const _0x5219d6=_0x289e7c;let _0x3ae73e=this[_0x5219d6(0x7b7)](!![]),_0x5f59aa=[],_0x2a9c42=this;Object['defineProperty'](_0x5f59aa,'iterable',{'value':_0x2a9c42});function _0x86e6c6(_0x11fb21){const _0x1650a4=_0x5219d6;while(_0x11fb21['done']!==!![]){if(_0x11fb21[_0x1650a4(0x8a9)])return _0x11fb21[_0x1650a4(0x8a9)](_0x86e6c6);else _0x5f59aa[_0x1650a4(0x3c0)](_0x11fb21[_0x1650a4(0x658)]);_0x11fb21=_0x3ae73e[_0x1650a4(0x60b)]();}_0x2209d5(_0x2a9c42[_0x1650a4(0x467)]=_0x5f59aa);}_0x86e6c6(_0x3ae73e[_0x5219d6(0x60b)]());});return _0x4d3249['iterable']=this,this[_0x289e7c(0x467)]||(this[_0x289e7c(0x467)]=_0x4d3249);}['resolveData'](){const _0xc57e29=_0x28fe76;return this[_0xc57e29(0x6d3)];}['at'](_0x47f883){for(let _0xfe7d5b of this){if(_0x47f883--===0x0)return _0xfe7d5b;}}}return _0x47cd3f[_0x28fe76(0x3c3)]['DONE']=_0x1aac74,dist$1[_0x28fe76(0x2f8)]=_0x47cd3f,dist$1[_0x28fe76(0x7d4)]=_0x150518,dist$1;}var iterable,hasRequiredIterable;function requireIterable(){const _0x3159ad=_0x1c5fdf;if(hasRequiredIterable)return iterable;hasRequiredIterable=0x1;const {ExtendedIterable:_0x21ad10}=requireDist$1(),_0x5397fc=Number(process.env.OKDB_NATIVE_RANGE_CHUNK)||0x3e8,_0x36ed62=Math[_0x3159ad(0x3d2)](_0x5397fc,Number(process.env.OKDB_NATIVE_ROW_CHUNK)||0x100),_0x4f9041=new Set([_0x3159ad(0x655),_0x3159ad(0x807),_0x3159ad(0x71e),_0x3159ad(0x356)]),_0x21c817=Math[_0x3159ad(0x3d2)](_0x36ed62,Number(process.env.OKDB_NATIVE_RANGE_FIRST)||0x1),_0x58c240=0x4,_0x216579=(_0x2cbaeb,_0x32d54f=_0x5397fc)=>Math['min'](_0x32d54f,_0x2cbaeb*_0x58c240),_0x4ac623={'value':undefined,'done':!![]};function _0x5ba502(_0x90dcea){const _0x46cddd=_0x3159ad,_0x4ef77b=new _0x21ad10();return _0x4ef77b[_0x46cddd(0x7b7)]=()=>{let _0x31fe30=0x0;return{'next'(){const _0x7d3cc9=_0x20ac;return _0x31fe30<_0x90dcea[_0x7d3cc9(0x2f6)]?{'value':_0x90dcea[_0x31fe30++],'done':![]}:{'value':undefined,'done':!![]};},'return'(){const _0x4fb954=_0x20ac;return _0x31fe30=_0x90dcea[_0x4fb954(0x2f6)],{'value':undefined,'done':!![]};},'throw'(){const _0x3e2cc2=_0x20ac;return _0x31fe30=_0x90dcea[_0x3e2cc2(0x2f6)],{'value':undefined,'done':!![]};}};},_0x4ef77b;}const _0x293a52=_0x4a5c7f=>typeof _0x4a5c7f===_0x3159ad(0x46d)&&!Number['isNaN'](_0x4a5c7f)?Math[_0x3159ad(0x6c5)](0x0,Math[_0x3159ad(0x6c1)](_0x4a5c7f)):Infinity,_0x22c18f=_0x3cd47d=>typeof _0x3cd47d===_0x3159ad(0x46d)?Math[_0x3159ad(0x6c5)](0x0,Math['trunc'](_0x3cd47d))||0x0:0x0;function _0x57e32e(_0x183b75,_0x324013,_0x5e2932,_0x541743={}){const _0x161e5f=_0x3159ad,_0x2eee7a=new _0x21ad10(),_0x5099db=(_0x541743[_0x161e5f(0x1ba)]||_0x293a52)(_0x324013[_0x161e5f(0x5ba)]),_0x1ab3de=_0x541743[_0x161e5f(0x671)]?_0x36ed62:_0x5397fc,_0x21f227=_0x541743[_0x161e5f(0x704)]||((_0x450d4c,_0x922aec)=>{const _0x1219f2=_0x161e5f;_0x450d4c[_0x1219f2(0x84e)]=_0x922aec,_0x450d4c[_0x1219f2(0x5ec)]=!![],delete _0x450d4c[_0x1219f2(0x7cb)];});let _0x2ab265=null;if(_0x541743['prefetch']){const _0x30624a={..._0x324013,'limit':Math[_0x161e5f(0x3d2)](_0x21c817,_0x5099db)};_0x2ab265={'rows':_0x183b75(_0x30624a),'limit':_0x30624a[_0x161e5f(0x5ba)]};const _0x575e16=_0x2ab265;queueMicrotask(()=>{const _0x32aead=_0x161e5f;_0x575e16[_0x32aead(0x83b)]=!![];});}return _0x2eee7a[_0x161e5f(0x7b7)]=()=>{const _0x2ef1e3=_0x161e5f;let _0x98bdea=[],_0x4a19bd=0x0,_0x31e944=0x0,_0x472ec9,_0x2e66e3=![],_0x52e5d9=![],_0x5d0e3d=_0x21c817;if(_0x2ab265&&!_0x2ab265[_0x2ef1e3(0x83b)]&&!_0x2ab265[_0x2ef1e3(0x40c)]){_0x2ab265[_0x2ef1e3(0x40c)]=!![],_0x98bdea=_0x2ab265[_0x2ef1e3(0x671)],_0x2e66e3=!![],_0x5d0e3d=_0x216579(_0x5d0e3d,_0x1ab3de);if(_0x98bdea[_0x2ef1e3(0x2f6)]<_0x2ab265[_0x2ef1e3(0x5ba)])_0x52e5d9=!![];if(_0x98bdea[_0x2ef1e3(0x2f6)])_0x472ec9=_0x5e2932(_0x98bdea[_0x98bdea[_0x2ef1e3(0x2f6)]-0x1]);}const _0x566976=()=>{const _0x5289c5=_0x2ef1e3;if(_0x52e5d9)return;const _0x78deda=_0x5099db-_0x31e944;if(_0x78deda<=0x0){_0x52e5d9=!![],_0x98bdea=[];return;}const _0x3e20f5={..._0x324013,'limit':Math[_0x5289c5(0x3d2)](_0x5d0e3d,_0x78deda)};if(_0x2e66e3)_0x21f227(_0x3e20f5,_0x472ec9);_0x2e66e3=!![],_0x5d0e3d=_0x216579(_0x5d0e3d,_0x1ab3de),_0x98bdea=_0x183b75(_0x3e20f5),_0x4a19bd=0x0;if(_0x98bdea['length']<_0x3e20f5[_0x5289c5(0x5ba)])_0x52e5d9=!![];if(_0x98bdea[_0x5289c5(0x2f6)])_0x472ec9=_0x5e2932(_0x98bdea[_0x98bdea[_0x5289c5(0x2f6)]-0x1]);};return{'next'(){const _0x4bcbd1=_0x2ef1e3;if(_0x4a19bd>=_0x98bdea[_0x4bcbd1(0x2f6)])_0x566976();if(_0x4a19bd>=_0x98bdea[_0x4bcbd1(0x2f6)])return{'value':undefined,'done':!![]};return _0x31e944++,{'value':_0x98bdea[_0x4a19bd++],'done':![]};},'return'(){return _0x52e5d9=!![],_0x98bdea=[],{'value':undefined,'done':!![]};},'throw'(){return _0x52e5d9=!![],_0x98bdea=[],{'value':undefined,'done':!![]};}};},_0x2eee7a;}function _0x3fc432(_0x2be0cd,_0x585dd2,_0x38ac35,_0x144201,_0x59138a={}){const _0x3e01e0=_0x3159ad,_0x68f42=(_0x59138a[_0x3e01e0(0x1ba)]||_0x293a52)(_0x144201&&_0x144201[_0x3e01e0(0x5ba)]),_0x8cd43f=_0x4f9041['has'](_0x585dd2)?_0x36ed62:_0x5397fc,_0x4bd078=(_0x59138a[_0x3e01e0(0x1de)]||_0x22c18f)(_0x144201&&_0x144201[_0x3e01e0(0x7cb)]),_0x56965a=(_0x130296,_0x44a784,_0x56e12d)=>{const _0x51806c=_0x3e01e0,_0x4565e7=_0x68f42-_0x44a784,_0xa04b00=Math[_0x51806c(0x3d2)](_0x56e12d,_0x4565e7),_0x2c3ada={'limit':_0xa04b00,'offset':_0x4bd078+_0x44a784},_0x232f11=_0x2be0cd(_0x51806c(0x59e),[_0x130296,_0x585dd2,_0xa04b00===_0x4565e7?Infinity:_0xa04b00,..._0x38ac35(_0x2c3ada)]);if(_0x232f11[0x0]===-0x1){const _0x52026a={'offset':_0x4bd078+_0x44a784};if(_0x4565e7!==Infinity)_0x52026a[_0x51806c(0x5ba)]=_0x4565e7;return{'pin':0x0,'rows':_0x2be0cd(_0x585dd2,_0x38ac35(_0x52026a)),'raw':Infinity,'eager':!![]};}return{'pin':_0x232f11[0x0],'rows':_0x232f11[0x1],'raw':_0x232f11[0x2]};},_0x3f95ee=_0x3cd215=>{const _0x289d16=_0x3e01e0;if(_0x3cd215)_0x2be0cd(_0x289d16(0x679),[_0x3cd215]);};function _0x12968f(_0x470e7d,_0x4b0714,_0x36fdf2){const _0x1733d5=_0x3e01e0;let _0x598822=0x0,_0x1f0b9c=[],_0xa25e8a=0x0,_0x32335a=_0x470e7d,_0x324447=_0x21c817,_0x2c3a13=_0x68f42-_0x470e7d<=0x0;if(_0x36fdf2)({buf:_0x1f0b9c,pos:_0xa25e8a,consumed:_0x32335a,size:_0x324447,exhausted:_0x2c3a13}=_0x36fdf2);const _0x56f00b=_0x222874=>{const _0x6aff1a=_0x20ac;_0x598822=_0x222874['pin'],_0x1f0b9c=_0x222874['rows'],_0xa25e8a=0x0,_0x32335a+=_0x222874[_0x6aff1a(0x1fa)],_0x324447=_0x216579(_0x324447,_0x8cd43f);if(!_0x598822)_0x2c3a13=!![];};if(_0x4b0714)_0x56f00b(_0x4b0714);const _0x40f62f=()=>{const _0x4e06c4=_0x598822;_0x598822=0x0,_0x3f95ee(_0x4e06c4);},_0x51fce9={'next'(){while(_0xa25e8a>=_0x1f0b9c['length']){if(_0x2c3a13||_0x68f42-_0x32335a<=0x0)return _0x2c3a13=!![],_0x40f62f(),_0x4ac623;try{_0x56f00b(_0x56965a(_0x598822,_0x32335a,_0x324447));}catch(_0x5e6d64){_0x598822=0x0,_0x2c3a13=!![],_0x1f0b9c=[];throw _0x5e6d64;}}return{'value':_0x1f0b9c[_0xa25e8a++],'done':![]};},'return'(){return _0x40f62f(),_0x4ac623;},'throw'(){return _0x40f62f(),_0x4ac623;},'resumed'(){return _0x12968f(0x0,null,{'buf':_0x1f0b9c,'pos':_0xa25e8a,'consumed':_0x32335a,'size':_0x324447,'exhausted':_0x2c3a13});},[Symbol[_0x1733d5(0x84c)]](){return this;}};return _0x51fce9;}function _0x1a89d0(){if(_0x68f42<=0x0)return null;const _0x2d4d4f=_0x56965a(0x0,0x0,_0x21c817);return queueMicrotask(()=>{const _0x778b94=_0x20ac;!_0x2d4d4f['taken']&&(_0x2d4d4f[_0x778b94(0x83b)]=!![],_0x3f95ee(_0x2d4d4f[_0x778b94(0x1ee)]));}),_0x2d4d4f;}return{'source':_0x12968f,'prefetch':_0x1a89d0};}function _0xd40cfa(_0x4f7611){const _0x3267e6=_0x3159ad;if(!_0x4f7611||_0x4f7611[_0x3267e6(0x40c)]||_0x4f7611['dropped'])return null;return _0x4f7611[_0x3267e6(0x40c)]=!![],_0x4f7611;}return iterable={'fromArray':_0x5ba502,'chunkedRange':_0x57e32e,'pinnedChunks':_0x3fc432,'claimPrefetch':_0xd40cfa,'lmdbLimit':_0x293a52,'lmdbOffset':_0x22c18f,'CHUNK':_0x5397fc,'ROW_CHUNK':_0x36ed62,'FIRST':_0x21c817},iterable;}var rawdb,hasRequiredRawdb;function requireRawdb(){const _0x5e53d5=_0x1c5fdf;if(hasRequiredRawdb)return rawdb;hasRequiredRawdb=0x1;const {fromArray:_0x230422}=requireIterable();class _0xfe603b{constructor(_0x530d70,_0x28027b='',_0x187833={},_0x2e27de=null){const _0x1000b7=_0x20ac;this['_env']=_0x530d70,this[_0x1000b7(0x80a)]=_0x28027b,this[_0x1000b7(0x391)]=!!(_0x187833&&_0x187833['dupSort']),this[_0x1000b7(0x735)]=!!(_0x187833&&_0x187833[_0x1000b7(0x735)]),this['_root']=_0x2e27de||this,this[_0x1000b7(0x244)]=null;}get[_0x5e53d5(0x5f5)](){const _0x46db21=_0x5e53d5;return this[_0x46db21(0x391)]?!![]:this[_0x46db21(0x735)]?'v':![];}['_n'](_0x56bbbf,_0x1917bf){const _0x5cbac7=_0x5e53d5;return this[_0x5cbac7(0x55a)][_0x5cbac7(0x263)][_0x5cbac7(0x7b0)](_0x5cbac7(0x1fa),this[_0x5cbac7(0x55a)]['name'],_0x56bbbf,[this[_0x5cbac7(0x80a)],this[_0x5cbac7(0x5f5)],..._0x1917bf],!![]);}[_0x5e53d5(0x272)](_0x5b2fce,_0x3c6559){const _0x236340=_0x5e53d5;return this[_0x236340(0x55a)][_0x236340(0x263)]['_call'](_0x236340(0x1fa),this[_0x236340(0x55a)][_0x236340(0x80a)],_0x5b2fce,[this[_0x236340(0x80a)],this[_0x236340(0x5f5)],..._0x3c6559],![]);}[_0x5e53d5(0x56c)](_0x149f6a){const _0x640dd9=_0x5e53d5,_0x12cfe5=this[_0x640dd9(0x55a)][_0x640dd9(0x829)];if(_0x12cfe5)_0x12cfe5[_0x640dd9(0x3c0)]({'sub':this[_0x640dd9(0x80a)],'dup':this[_0x640dd9(0x5f5)],..._0x149f6a});else this[_0x640dd9(0x55a)][_0x640dd9(0x263)]['_call'](_0x640dd9(0x1fa),this[_0x640dd9(0x55a)][_0x640dd9(0x80a)],_0x640dd9(0x599),[[{'sub':this['name'],'dup':this[_0x640dd9(0x5f5)],..._0x149f6a}]],!![]);}['get'](_0xca50b1){const _0x25f02d=_0x5e53d5;return this[_0x25f02d(0x272)](_0x25f02d(0x4ff),[_0xca50b1]);}[_0x5e53d5(0x7f9)](_0xea7c13){const _0x21142e=_0x5e53d5;if(this['useVersions'])return this[_0x21142e(0x272)](_0x21142e(0x7f9),[_0xea7c13]);const _0xbc32fa=this[_0x21142e(0x4ff)](_0xea7c13);return _0xbc32fa===undefined?undefined:{'value':_0xbc32fa};}[_0x5e53d5(0x8a8)](_0xd92dd6){const _0x2f63d5=_0x5e53d5;return this[_0x2f63d5(0x272)]('exists',[_0xd92dd6]);}[_0x5e53d5(0x34a)](_0x104381){const _0x4163d3=_0x5e53d5;return this[_0x4163d3(0x4ff)](_0x104381);}[_0x5e53d5(0x655)](_0xa841ad={}){const _0x12f1c5=_0x5e53d5,_0x5cfa87=this[_0x12f1c5(0x272)]('getRange',[_0xa841ad]),_0xa49b58=_0xa841ad[_0x12f1c5(0x534)]===![],_0x2c36c3=_0xa841ad[_0x12f1c5(0x542)]===![];return _0x230422(_0x5cfa87[_0x12f1c5(0x4ba)](([_0x5069b0,_0x2ac5f7,_0x52ec1d])=>{if(_0xa49b58)return _0x5069b0;if(_0x2c36c3)return _0x2ac5f7;return _0x52ec1d===undefined?{'key':_0x5069b0,'value':_0x2ac5f7}:{'key':_0x5069b0,'value':_0x2ac5f7,'version':_0x52ec1d};}));}[_0x5e53d5(0x608)](_0x292f60={}){const _0x36ec93=_0x5e53d5;return _0x230422(this[_0x36ec93(0x272)](_0x36ec93(0x655),[_0x292f60])[_0x36ec93(0x4ba)](([_0x21f51e])=>_0x21f51e));}[_0x5e53d5(0x47c)](_0x22d56c,_0x4b4ffb={}){const _0x69b635=_0x5e53d5,_0x283f0e=this[_0x69b635(0x272)](_0x69b635(0x655),[{..._0x4b4ffb,'start':_0x22d56c,'end':_0x22d56c,'inclusiveEnd':!![]}]);return _0x230422(_0x283f0e[_0x69b635(0x4ba)](([,_0xb54960])=>_0xb54960));}[_0x5e53d5(0x34c)](_0x2d7285={}){const _0x52e216=_0x5e53d5;return this[_0x52e216(0x272)](_0x52e216(0x768),[_0x2d7285]);}[_0x5e53d5(0x5aa)](){const _0x122553=_0x5e53d5;return{'entryCount':this[_0x122553(0x34c)]()};}[_0x5e53d5(0x77c)](_0x3953eb,_0x53561a,_0x19691){const _0x34bf24=_0x5e53d5;return this[_0x34bf24(0x56c)]({'op':_0x34bf24(0x77c),'key':_0x3953eb,'value':_0x53561a,'version':_0x19691}),Promise[_0x34bf24(0x4a2)](!![]);}[_0x5e53d5(0x5d4)](_0x2e38af,_0x55dffe,_0x5f3466){const _0x3754b4=_0x5e53d5;return this[_0x3754b4(0x56c)]({'op':_0x3754b4(0x77c),'key':_0x2e38af,'value':_0x55dffe,'version':_0x5f3466}),!![];}['remove'](_0xdc7f75,_0x1b746c){const _0x43a38a=_0x5e53d5;return this['_write']({'op':_0x43a38a(0x7e6),'key':_0xdc7f75,'value':_0x1b746c}),Promise[_0x43a38a(0x4a2)](!![]);}[_0x5e53d5(0x858)](_0x1d35e3,_0x3cc803){const _0x5d9604=_0x5e53d5;return this[_0x5d9604(0x56c)]({'op':'remove','key':_0x1d35e3,'value':_0x3cc803}),!![];}[_0x5e53d5(0x53c)](){const _0x4cc82a=_0x5e53d5;this[_0x4cc82a(0x56c)]({'op':'clear'});}[_0x5e53d5(0x4c2)](){const _0x31067e=_0x5e53d5;return this[_0x31067e(0x56c)]({'op':_0x31067e(0x7be)}),Promise[_0x31067e(0x4a2)]();}[_0x5e53d5(0x68d)](){this['clearSync']();}[_0x5e53d5(0x1bd)](_0x1e8858,_0x411de2={}){const _0x5c7f50=_0x5e53d5,_0x57a031=typeof _0x1e8858===_0x5c7f50(0x86d)?_0x1e8858:_0x411de2,_0x42f28b=typeof _0x1e8858===_0x5c7f50(0x86d)?_0x1e8858[_0x5c7f50(0x80a)]:_0x1e8858,_0x10c1ac=new _0xfe603b(this['_env'],_0x42f28b,_0x57a031);return _0x10c1ac['_write']({'op':_0x5c7f50(0x4c3)}),_0x10c1ac;}[_0x5e53d5(0x508)](){}['transactionSync'](_0x2c002f){return this['_tx'](_0x2c002f);}async[_0x5e53d5(0x4b7)](_0x309258){const _0xea598c=_0x5e53d5;return this[_0xea598c(0x659)](_0x309258);}['childTransaction'](_0xd61a2e){const _0x93d553=_0x5e53d5;return this[_0x93d553(0x659)](_0xd61a2e);}[_0x5e53d5(0x659)](_0xa41ec4){const _0x1c28c5=_0x5e53d5,_0x35a633=this[_0x1c28c5(0x55a)];if(_0x35a633[_0x1c28c5(0x829)])return _0xa41ec4();_0x35a633[_0x1c28c5(0x829)]=[];let _0x1bd4bd;try{_0x1bd4bd=_0xa41ec4();}catch(_0x1ae368){_0x35a633[_0x1c28c5(0x829)]=null;throw _0x1ae368;}const _0x4c09b5=_0x35a633[_0x1c28c5(0x829)];_0x35a633[_0x1c28c5(0x829)]=null;if(_0x4c09b5[_0x1c28c5(0x2f6)])_0x35a633[_0x1c28c5(0x263)][_0x1c28c5(0x7b0)](_0x1c28c5(0x1fa),_0x35a633[_0x1c28c5(0x80a)],_0x1c28c5(0x599),[_0x4c09b5],!![]);return _0x1bd4bd;}[_0x5e53d5(0x668)](){return{'done'(){}};}['resetReadTxn'](){}}return rawdb={'RawDb':_0xfe603b},rawdb;}var views,hasRequiredViews;function requireViews(){const _0xeac3b0=_0x1c5fdf;if(hasRequiredViews)return views;hasRequiredViews=0x1;const {RawDb:_0x53a502}=requireRawdb();class _0x4859ac{constructor(_0x2e7f2a){const _0x48a011=_0x20ac;this[_0x48a011(0x81f)]=_0x2e7f2a,this['_n']=(_0x49586b,_0x3b7411,_0x4658c4=!![])=>_0x2e7f2a[_0x48a011(0x263)]['_call'](_0x48a011(0x448),_0x2e7f2a[_0x48a011(0x80a)],_0x49586b,_0x3b7411,_0x4658c4);}get['_viewState'](){const _0x50693e=_0x20ac,_0xc26c6d=this,_0x3993f0=this[_0x50693e(0x81f)],_0x4d6f76=_0x28ef5f=>_0x28ef5f?new _0x53a502(_0x3993f0,_0x28ef5f[_0x50693e(0x80a)],{'dupSort':_0x28ef5f[_0x50693e(0x6af)]}):undefined,_0x5fe50b=_0x342657=>{const _0x10faf3=_0x50693e,_0x149ceb=_0xc26c6d['_n'](_0x10faf3(0x67b),[_0x342657],![]);if(!_0x149ceb)return undefined;const _0x543a7e=_0x149ceb[_0x10faf3(0x7c9)],_0x5ca405=new Map(Object[_0x10faf3(0x207)](_0x543a7e[_0x10faf3(0x613)])),_0x2bffcf=new Map(Object['entries'](_0x149ceb[_0x10faf3(0x476)])[_0x10faf3(0x4ba)](([_0x372983,_0x36a65c])=>[_0x372983,_0x4d6f76(_0x36a65c)]));return{'name':_0x342657,'compiled':{'T':_0x543a7e['T'],'reducers':_0x543a7e['reducers'],'refs':_0x5ca405,'granId':_0x543a7e[_0x10faf3(0x530)],'type':_0x543a7e['type'],'_nidFor':_0x4a1cad=>_0xc26c6d['_n']('nidFor',[_0x342657,_0x4a1cad],![])},'viewDb':_0x4d6f76(_0x149ceb[_0x10faf3(0x480)][_0x10faf3(0x406)]),'metaDb':_0x4d6f76(_0x149ceb[_0x10faf3(0x480)][_0x10faf3(0x461)]),'itemsDb':_0x4d6f76(_0x149ceb[_0x10faf3(0x480)][_0x10faf3(0x792)]),'bucketsDb':_0x4d6f76(_0x149ceb[_0x10faf3(0x480)][_0x10faf3(0x743)]),'sortedDb':_0x4d6f76(_0x149ceb[_0x10faf3(0x480)][_0x10faf3(0x521)]),'groupsDb':_0x4d6f76(_0x149ceb[_0x10faf3(0x480)][_0x10faf3(0x474)]),'prevDb':_0x4d6f76(_0x149ceb[_0x10faf3(0x480)][_0x10faf3(0x694)]),'refItemsDbs':_0x2bffcf,'refTrackingDbs':new Map(Object['entries'](_0x149ceb[_0x10faf3(0x6fd)]||{})[_0x10faf3(0x4ba)](([_0xcae6bc,_0x4f0057])=>[_0xcae6bc,_0x4d6f76(_0x4f0057)])),'stopFn':_0x149ceb[_0x10faf3(0x216)]?async()=>_0xc26c6d['_n'](_0x10faf3(0x453),[_0x342657]):null,'bootstrapWorker':null};};return{'get':_0x42a339=>_0x5fe50b(_0x42a339),'has':_0xc9329b=>_0xc26c6d['_n'](_0x50693e(0x3e8),[],![])['includes'](_0xc9329b),'keys':()=>_0xc26c6d['_n'](_0x50693e(0x3e8),[],![])[Symbol[_0x50693e(0x84c)]](),get 'size'(){const _0x446843=_0x50693e;return _0xc26c6d['_n'](_0x446843(0x3e8),[],![])[_0x446843(0x2f6)];},[Symbol['iterator']]:()=>_0xc26c6d['_n'](_0x50693e(0x3e8),[],![])[_0x50693e(0x4ba)](_0x2842fc=>[_0x2842fc,_0x5fe50b(_0x2842fc)])[Symbol[_0x50693e(0x84c)]]()};}get[_0xeac3b0(0x670)](){const _0x4a4683=_0xeac3b0,_0x1e5a42=this;return{'has':_0x230194=>_0x1e5a42['_n']('customReducerNames',[],![])['includes'](_0x230194),get 'size'(){const _0xe9ef79=_0x20ac;return _0x1e5a42['_n']('customReducerNames',[],![])[_0xe9ef79(0x2f6)];},'keys':()=>_0x1e5a42['_n'](_0x4a4683(0x7e5),[],![])[Symbol[_0x4a4683(0x84c)]]()};}async[_0xeac3b0(0x560)](){return this['_n']('bootSyncedViewsInline',[]);}async['bootSyncedViews'](_0x1f896e={}){const _0x354d2f=_0xeac3b0;return this['_n'](_0x354d2f(0x6a2),[_0x1f896e]);}async[_0xeac3b0(0x1d9)](_0x15fe84,_0x1a442a){const _0x3c17c3=_0xeac3b0;return this['_n'](_0x3c17c3(0x1d9),[_0x15fe84,_0x1a442a]),{'name':_0x15fe84};}[_0xeac3b0(0x4ff)](_0x3613e8,_0x4f0585={}){const _0x1b07c4=_0xeac3b0,_0x5ac713=this['_n']('get',[_0x3613e8,{'preview':_0x4f0585?.['preview']??{}}],![]);if(_0x5ac713==null)return null;const _0x54cc49=this['_n'](_0x1b07c4(0x300),[_0x3613e8],![]);if(!_0x54cc49)return _0x5ac713;const _0x31cb2e=_0x24e81a=>(_0x5d5366={})=>this['_n'](_0x1b07c4(0x832),[_0x3613e8,_0x24e81a,_0x5d5366],![]);if(_0x54cc49['view']){_0x5ac713[_0x1b07c4(0x832)]=_0x31cb2e({'kind':_0x1b07c4(0x26d)});for(const _0x3bd427 of _0x54cc49[_0x1b07c4(0x28c)]){if(!_0x3bd427[_0x1b07c4(0x832)])continue;if(_0x3bd427[_0x1b07c4(0x329)]){const _0x61a98b=_0x5ac713[_0x3bd427['name']];if(_0x61a98b?.[_0x1b07c4(0x4a1)]&&Array[_0x1b07c4(0x55b)](_0x61a98b[_0x1b07c4(0x4a1)])){for(const _0x59aa6e of _0x61a98b[_0x1b07c4(0x4a1)])_0x59aa6e['items']=_0x31cb2e({'kind':_0x1b07c4(0x5bb),'reducer':_0x3bd427[_0x1b07c4(0x80a)],'key':_0x59aa6e[_0x1b07c4(0x7e4)]});}}else _0x5ac713[_0x3bd427[_0x1b07c4(0x80a)]]&&(_0x5ac713[_0x3bd427[_0x1b07c4(0x80a)]]['items']=_0x31cb2e({'kind':_0x1b07c4(0x7d5),'reducer':_0x3bd427[_0x1b07c4(0x80a)]}));}}for(const _0x1f425e of _0x54cc49['refs']){if(!_0x1f425e[_0x1b07c4(0x26d)])continue;const _0x823f5=_0x5ac713[_0x1f425e['name']];if(!_0x823f5||typeof _0x823f5!=='object')continue;_0x823f5[_0x1b07c4(0x832)]=_0x31cb2e({'kind':_0x1b07c4(0x26d),'ref':_0x1f425e[_0x1b07c4(0x80a)]});for(const _0x1da3a7 of _0x1f425e[_0x1b07c4(0x28c)]){if(!_0x1da3a7['items'])continue;if(_0x1da3a7[_0x1b07c4(0x329)]){const _0xe8a33a=_0x823f5[_0x1da3a7['name']];if(_0xe8a33a?.['preview']&&Array[_0x1b07c4(0x55b)](_0xe8a33a[_0x1b07c4(0x4a1)])){for(const _0x54fde4 of _0xe8a33a[_0x1b07c4(0x4a1)])_0x54fde4[_0x1b07c4(0x832)]=_0x31cb2e({'kind':_0x1b07c4(0x5bb),'ref':_0x1f425e[_0x1b07c4(0x80a)],'reducer':_0x1da3a7['name'],'key':_0x54fde4['key']});}}else _0x823f5[_0x1da3a7[_0x1b07c4(0x80a)]]&&(_0x823f5[_0x1da3a7[_0x1b07c4(0x80a)]][_0x1b07c4(0x832)]=_0x31cb2e({'kind':'reducer','ref':_0x1f425e[_0x1b07c4(0x80a)],'reducer':_0x1da3a7[_0x1b07c4(0x80a)]}));}}return _0x5ac713;}[_0xeac3b0(0x7e2)](_0x335774){const _0x29aec4=_0xeac3b0;return this['_n'](_0x29aec4(0x7e2),[_0x335774],![]);}[_0xeac3b0(0x745)](_0x1cd3c3,_0x57cd29={}){const _0x553799=_0xeac3b0;return this['_n'](_0x553799(0x745),[_0x1cd3c3,_0x57cd29],![]);}[_0xeac3b0(0x261)](_0x955ecc,_0x5431c0={}){return this['_n']('range',[_0x955ecc,_0x5431c0],![]);}[_0xeac3b0(0x4cc)](_0x7429f8,_0x32c254={}){const _0x1454e3=_0xeac3b0;return this['_n'](_0x1454e3(0x4cc),[_0x7429f8,_0x32c254],![]);}async['list'](){return this['_n']('list',[],![]);}async[_0xeac3b0(0x6e9)](_0xf55de){const _0x526386=_0xeac3b0;return this['_n'](_0x526386(0x6e9),[_0xf55de],![])??null;}async[_0xeac3b0(0x7e6)](_0x397986,_0x486575={}){return this['_n']('remove',[_0x397986,_0x486575]);}async[_0xeac3b0(0x584)](_0x3ef8cb){const _0x2ff7ec=_0xeac3b0;return this['_n'](_0x2ff7ec(0x584),[_0x3ef8cb]);}async['start'](_0x56ff94){return this['_n']('start',[_0x56ff94]);}async[_0xeac3b0(0x686)](_0x489b71){const _0x12cf56=_0xeac3b0;return this['_n'](_0x12cf56(0x686),[_0x489b71]);}async[_0xeac3b0(0x1cc)](_0x443d54){const _0x21f9cf=_0xeac3b0;return this['_n'](_0x21f9cf(0x1cc),[_0x443d54]);}[_0xeac3b0(0x828)](_0x1f0dc1,_0x247d84={}){const _0x53c9fa=_0xeac3b0;return this['_n']('registerReducer',[_0x1f0dc1,{'apply':_0x247d84&&_0x247d84[_0x53c9fa(0x2d6)]}]);}}return views={'OKDBViews':_0x4859ac},views;}var queue,hasRequiredQueue;function requireQueue(){const _0x1efedd=_0x1c5fdf;if(hasRequiredQueue)return queue;hasRequiredQueue=0x1;const {OKDBError:_0x571226}=requireErrors(),_0x463f2b=requireBridge();class _0x5a22f9{constructor(_0xf3f69c){const _0x36a712=_0x20ac;this[_0x36a712(0x81f)]=_0xf3f69c,this[_0x36a712(0x263)]=_0xf3f69c[_0x36a712(0x263)],this['log']=_0xf3f69c[_0x36a712(0x263)][_0x36a712(0x3de)]['child']({'feature':_0x36a712(0x44d)}),this['_workers']=new Set();}['_n'](_0x54ddaf,_0x3088ad,_0x4a7cd9=!![]){const _0xd3f16=_0x20ac;return this[_0xd3f16(0x263)]['_call'](_0xd3f16(0x44d),this[_0xd3f16(0x81f)]['name'],_0x54ddaf,_0x3088ad,_0x4a7cd9);}['_w'](_0x3fd461,_0x4b3043){const _0x2cfa31=_0x20ac;return this[_0x2cfa31(0x263)][_0x2cfa31(0x1d6)](this['_n'](_0x3fd461,_0x4b3043));}async['_ensure'](){const _0x5f14ef=_0x20ac;return this['_n'](_0x5f14ef(0x4c3),[]);}async[_0x1efedd(0x690)](_0x14cf66={}){const _0x10c9ed=_0x1efedd;return this['_n'](_0x10c9ed(0x690),[_0x14cf66],![]);}get['_logsDb'](){const _0x4ca9fe=_0x1efedd,{RawDb:_0x2283df}=requireRawdb();return this[_0x4ca9fe(0x58a)]||(this[_0x4ca9fe(0x58a)]=new _0x2283df(this['env'],_0x4ca9fe(0x306)));}async[_0x1efedd(0x8a1)](){return this['_w']('sweepOrphanLogs',[]);}async[_0x1efedd(0x65c)](_0x3d3d55,_0x2012dd,_0x2ca83d={}){const _0x243d71=_0x1efedd,{txn:_0x281b68,..._0x724870}=_0x2ca83d||{};if(_0x281b68)return this[_0x243d71(0x352)](_0x281b68,_0x3d3d55,_0x2012dd,_0x724870);const _0x48900c=this[_0x243d71(0x263)][_0x243d71(0x287)];if(_0x48900c&&_0x48900c[_0x243d71(0x44d)][_0x243d71(0x2f6)])_0x48900c[_0x243d71(0x715)]();const _0x4574a2=this['_n'](_0x243d71(0x2a9),[_0x3d3d55,_0x2012dd,_0x724870],![]);return this[_0x243d71(0x263)][_0x243d71(0x1d6)](_0x4574a2['id'])['then'](_0x21c5e3=>{const _0x1f9b8c=_0x243d71;if(_0x4574a2[_0x1f9b8c(0x4d0)])this[_0x1f9b8c(0x194)](_0x3d3d55);else try{this[_0x1f9b8c(0x263)][_0x1f9b8c(0x51b)][_0x1f9b8c(0x577)]();}catch{}return _0x21c5e3;});}[_0x1efedd(0x194)](_0x1fdf22){queueMicrotask(()=>{const _0x2b8a8f=_0x20ac;try{this['_n'](_0x2b8a8f(0x2c2),[_0x1fdf22]);}catch{}});}['_enqueueInTxn'](_0x42a097,_0x10eac3,_0x402c50,_0x2766c8){const _0x562f86=_0x1efedd,_0x4f91b2=_0x42a097[_0x562f86(0x1fa)]??_0x42a097;if(_0x4f91b2[_0x562f86(0x891)])throw new _0x571226(_0x562f86(0x876),_0x562f86(0x747));if(_0x4f91b2[_0x562f86(0x263)]&&_0x4f91b2[_0x562f86(0x263)]!==this[_0x562f86(0x81f)]&&_0x4f91b2[_0x562f86(0x263)][_0x562f86(0x80a)]!==this[_0x562f86(0x81f)][_0x562f86(0x80a)])throw new _0x571226(_0x562f86(0x7b9),_0x562f86(0x7ac),{'txnEnv':_0x4f91b2[_0x562f86(0x263)][_0x562f86(0x80a)],'queueEnv':this['env'][_0x562f86(0x80a)]});const _0x573462=this['_n'](_0x562f86(0x86c),[_0x10eac3,_0x402c50,_0x2766c8],![]);if(_0x573462[_0x562f86(0x603)])return _0x573462['id'];if(_0x573462[_0x562f86(0x600)])_0x42a097[_0x562f86(0x3dc)](_0x562f86(0x254),_0x573462[_0x562f86(0x600)][_0x562f86(0x7e4)],_0x573462[_0x562f86(0x600)][_0x562f86(0x658)],{'ifVersion':_0x573462[_0x562f86(0x600)][_0x562f86(0x75b)]});if(_0x402c50!==undefined)_0x42a097[_0x562f86(0x77c)](_0x562f86(0x3fe),_0x573462['id'],_0x402c50);_0x42a097[_0x562f86(0x77c)]('~queue_jobs',_0x573462['id'],_0x573462['job']);if(typeof _0x4f91b2['onDo']==='function')_0x4f91b2['onDo'](()=>{const _0x4a00fb=_0x562f86;if(this['_n']('announceEnqueued',[_0x573462['id'],_0x10eac3,_0x573462[_0x4a00fb(0x78d)],_0x573462[_0x4a00fb(0x5cc)]]))this[_0x4a00fb(0x194)](_0x10eac3);});return _0x573462['id'];}async['claim'](_0x542712,_0x4a5229={}){const _0x25a4f0=_0x1efedd;if(typeof _0x542712!==_0x25a4f0(0x460)||!_0x542712)throw new _0x571226(_0x25a4f0(0x44e),_0x25a4f0(0x185));return this['_w']('claim',[_0x542712,_0x4a5229]);}async[_0x1efedd(0x33a)](_0x24814d,_0x47e538,_0x4b6837=null){const _0x1ce895=_0x1efedd;return this['_w'](_0x1ce895(0x33a),[_0x24814d,_0x47e538,_0x4b6837]);}async[_0x1efedd(0x2e9)](_0x80e1aa,_0x224a05,_0x151d41=null){const _0x59ca7d=_0x1efedd;return this[_0x59ca7d(0x33a)](_0x80e1aa,_0x224a05,_0x151d41);}async[_0x1efedd(0x265)](_0x5423d5,_0x30eed7,_0x5d78a7){return this['_w']('markJobProgress',[_0x5423d5,_0x30eed7,_0x5d78a7]);}async[_0x1efedd(0x301)](_0x428a51,_0x14f8dc,_0x1c25d6){const _0x2c8964=_0x1efedd;return this['_w'](_0x2c8964(0x301),[_0x428a51,_0x14f8dc,_0x1c25d6]);}async['completeJob'](_0x3d19cb,_0x4681bb,_0x4dda4a){return this['markJobComplete'](_0x3d19cb,_0x4681bb,_0x4dda4a);}async[_0x1efedd(0x4af)](_0x2fcaaf,_0xacbfb5,_0x13cf8a,_0x399ce4){const _0xe7bc14=_0x1efedd,_0x103321=_0x13cf8a instanceof Error?{'message':_0x13cf8a[_0xe7bc14(0x5e1)],'stack':_0x13cf8a[_0xe7bc14(0x762)]}:_0x13cf8a;return this['_w'](_0xe7bc14(0x4af),[_0x2fcaaf,_0xacbfb5,_0x103321,_0x399ce4]);}async[_0x1efedd(0x58d)](_0x13255b,_0x2c6b2a,_0x1eecf1,_0x131898){const _0x266fd6=_0x1efedd;return this[_0x266fd6(0x4af)](_0x13255b,_0x2c6b2a,_0x1eecf1,_0x131898);}async[_0x1efedd(0x529)](_0x3b8648,_0x59fad8,_0x32bf17={}){const _0x4970e4=_0x1efedd;return this['_w'](_0x4970e4(0x529),[_0x3b8648,_0x59fad8,_0x32bf17]);}async[_0x1efedd(0x744)](_0x5aefe2){const _0x705ca7=_0x1efedd;return this['_n'](_0x705ca7(0x744),[_0x5aefe2],![]);}async[_0x1efedd(0x78b)](_0x1fad93,_0xfe5a12={},_0x5a645d={}){const _0x1924d0=_0x1efedd,_0x295d87=_0x5a645d&&_0x5a645d[_0x1924d0(0x2ff)];if(!_0x295d87)return this['_w'](_0x1924d0(0x78b),[_0x1fad93,_0xfe5a12]);const {next:_0x485c7b,version:_0xab45bb}=this['_n']('planUpdateJob',[_0x1fad93,_0xfe5a12],![]);_0x295d87['update'](_0x1924d0(0x254),_0x1fad93,_0x485c7b,{'ifVersion':_0xab45bb});let _0x1ff6ca;if(_0x1924d0(0x653)in _0xfe5a12){if(_0xfe5a12['payload']===undefined){if(this[_0x1924d0(0x81f)][_0x1924d0(0x7f9)](_0x1924d0(0x3fe),_0x1fad93))_0x295d87[_0x1924d0(0x7e6)](_0x1924d0(0x3fe),_0x1fad93);}else _0x295d87['put'](_0x1924d0(0x3fe),_0x1fad93,_0xfe5a12['payload']);_0x1ff6ca=_0xfe5a12[_0x1924d0(0x653)];}else _0x1ff6ca=this[_0x1924d0(0x81f)][_0x1924d0(0x4ff)](_0x1924d0(0x3fe),_0x1fad93);return{..._0x485c7b,'payload':_0x1ff6ca};}async[_0x1efedd(0x89e)](_0x360d02,_0x55e92d={}){const _0x282fb4=_0x1efedd,_0x5bac8d=_0x55e92d&&_0x55e92d[_0x282fb4(0x2ff)];if(!_0x5bac8d)return this['_w'](_0x282fb4(0x89e),[_0x360d02]);if(!_0x360d02)throw new _0x571226(_0x282fb4(0x5e3),_0x282fb4(0x185));if(!this[_0x282fb4(0x81f)]['getEntry'](_0x282fb4(0x254),_0x360d02))return![];_0x5bac8d[_0x282fb4(0x7e6)](_0x282fb4(0x254),_0x360d02);if(this[_0x282fb4(0x81f)]['getEntry']('~queue_payloads',_0x360d02))_0x5bac8d[_0x282fb4(0x7e6)]('~queue_payloads',_0x360d02);if(typeof _0x5bac8d[_0x282fb4(0x814)]===_0x282fb4(0x5c4))_0x5bac8d[_0x282fb4(0x814)](()=>this['_n'](_0x282fb4(0x635),[_0x360d02]));return!![];}async[_0x1efedd(0x60c)](_0x5e41b9){const _0x2ef288=_0x1efedd;return this['_w'](_0x2ef288(0x60c),[_0x5e41b9]);}async['retryJob'](_0x48668f){const _0x55c780=_0x1efedd;return this['_w'](_0x55c780(0x18c),[_0x48668f]);}async[_0x1efedd(0x5af)](_0x23ea0a,_0x4f2183,_0x381a00){const _0x45dcd7=_0x1efedd,_0x5c675a=this['_n'](_0x45dcd7(0x255),[_0x4f2183??null,_0x381a00??0x0,_0x23ea0a]),_0x312808=0x1f4;for(let _0x32c70d=0x0;_0x32c70d<_0x5c675a['length'];_0x32c70d+=_0x312808){this['_n'](_0x45dcd7(0x2a5),[_0x5c675a[_0x45dcd7(0x5d1)](_0x32c70d,_0x32c70d+_0x312808),_0x32c70d,_0x5c675a[_0x45dcd7(0x2f6)],_0x4f2183??null]);if(_0x32c70d+_0x312808<_0x5c675a[_0x45dcd7(0x2f6)])await new Promise(_0x2c9337=>setImmediate(_0x2c9337));}return this['_n'](_0x45dcd7(0x87d),[_0x5c675a[_0x45dcd7(0x2f6)],_0x4f2183??null]),await new Promise(_0x2bc1ee=>setImmediate(_0x2bc1ee)),_0x5c675a['length'];}async[_0x1efedd(0x48e)](_0x481bc8,_0x163213){const _0x1599c6=_0x1efedd;return this['_clearChunked'](_0x1599c6(0x1e2),_0x481bc8,_0x163213);}async[_0x1efedd(0x727)](_0x5c9d98,_0x1ea28c){const _0x468123=_0x1efedd;return this[_0x468123(0x5af)]('failed',_0x5c9d98,_0x1ea28c);}async['retryFailed'](_0x11afaf,_0xd039da){return this['_w']('retryFailed',[_0x11afaf??null,_0xd039da??0x0]);}async[_0x1efedd(0x2b1)](_0x56cea7,_0x6523b8){const _0x392c95=_0x1efedd;return this['_w'](_0x392c95(0x2b1),[_0x56cea7??null,_0x6523b8??0x0]);}async[_0x1efedd(0x527)](_0x1c0d98,_0x18cf56,_0x266623){const _0xed30eb=_0x1efedd;return this['_w'](_0xed30eb(0x527),[_0x1c0d98,_0x18cf56,_0x266623]);}async[_0x1efedd(0x77b)](_0x62e4ca,_0x3acae7={}){const _0x2abccd=_0x1efedd;return this['_n'](_0x2abccd(0x77b),[_0x62e4ca,_0x3acae7],![]);}async[_0x1efedd(0x388)](_0x4de1ac,_0x2841c1={}){const _0x36e967=_0x1efedd,{txn:_0x709585,..._0x1fe927}=_0x2841c1||{};if(!_0x709585)return this['_w']('addBucket',[_0x4de1ac,_0x1fe927]);const _0x1ea10c=(_0x47f90e,_0x3ccf6a,_0x388754,_0x4af45f)=>{const _0x504150=_0x20ac,_0x205e73=Math[_0x504150(0x616)](Number(_0x47f90e));return Number['isFinite'](_0x205e73)?Math[_0x504150(0x3d2)](_0x4af45f,Math[_0x504150(0x6c5)](_0x388754,_0x205e73)):_0x3ccf6a;},_0x4bf83f=typeof _0x4de1ac===_0x36e967(0x460)?_0x4de1ac[_0x36e967(0x51d)]():'';if(!_0x4bf83f)throw new Error(_0x36e967(0x346));const _0x4ae3b7=_0x1ea10c(_0x1fe927[_0x36e967(0x1bf)],0x0,0x0,0x3b9aca00);_0x709585['put'](_0x36e967(0x395),_0x4bf83f,{'id':_0x4bf83f,'tokens':_0x1ea10c(_0x1fe927[_0x36e967(0x2d0)],_0x4ae3b7,0x0,_0x4ae3b7),'capacity':_0x4ae3b7,'refill_amount':_0x1ea10c(_0x1fe927['refill_amount'],0x0,0x0,0x3b9aca00),'refill_every':_0x1ea10c(_0x1fe927[_0x36e967(0x312)],0x0,0x0,0x16d*0x18*0x36ee80),'updated':Date[_0x36e967(0x785)]()});}async[_0x1efedd(0x624)](_0x2278f8,_0x4105a6){const _0x1c3f2b=_0x1efedd;return this['_w'](_0x1c3f2b(0x624),[_0x2278f8,_0x4105a6]);}async[_0x1efedd(0x73a)](_0x3c06cc){const _0x2ec599=_0x1efedd;return this['_w'](_0x2ec599(0x73a),[_0x3c06cc]);}['getBucket'](_0x2660fe){const _0x27c8c2=_0x1efedd,_0x235ee1=this['_n'](_0x27c8c2(0x892),[_0x2660fe],![]);return _0x235ee1===null&&typeof _0x2660fe==='string'&&_0x2660fe[_0x27c8c2(0x51d)]()?undefined:_0x235ee1;}async[_0x1efedd(0x607)](_0x2ea6bb,_0x2ee3b3){const _0x124428=_0x1efedd;return this['_w'](_0x124428(0x607),[_0x2ea6bb,_0x2ee3b3]);}async[_0x1efedd(0x511)](_0x3e3205,_0x46cd6c={}){const _0x89056f=_0x1efedd;return this['_w'](_0x89056f(0x511),[_0x3e3205,_0x46cd6c]);}async[_0x1efedd(0x707)](_0x3ef4c7){const _0x510f28=_0x1efedd;return this['_n'](_0x510f28(0x707),[_0x3ef4c7],![]);}async[_0x1efedd(0x4e7)](){const _0xe9862c=_0x1efedd;return this['_n'](_0xe9862c(0x4e7),[],![]);}async[_0x1efedd(0x6b4)](_0x4cbf5a){const _0x3f7000=_0x1efedd;return this['_w'](_0x3f7000(0x6b4),[_0x4cbf5a]);}[_0x1efedd(0x525)](_0x5ea68c){return this['_n']('pauseJobType',[_0x5ea68c]);}['resumeJobType'](_0x1d4683){const _0x131b64=_0x1efedd;return this['_n'](_0x131b64(0x3a9),[_0x1d4683]);}[_0x1efedd(0x7a4)](_0x62d364){const _0x3c7457=_0x1efedd;return this['_n'](_0x3c7457(0x7a4),[_0x62d364]);}async[_0x1efedd(0x6fe)](_0x18da62,_0x29c82d,_0x3ddf3d=![]){return this['_w']('setJobTypeSchema',[_0x18da62,_0x29c82d,_0x3ddf3d]);}async[_0x1efedd(0x6b0)](_0x4d1646){const _0x5e8c8b=_0x1efedd;return this['_w'](_0x5e8c8b(0x6b0),[_0x4d1646]);}async[_0x1efedd(0x47e)](_0xbced32,_0x2032a1=0x5){const _0x50cc3f=_0x1efedd;return this['_n'](_0x50cc3f(0x47e),[_0xbced32,_0x2032a1],![]);}async[_0x1efedd(0x878)](_0x1dea59){const _0x2ade37=_0x1efedd;return this['_n'](_0x2ade37(0x583),[_0x1dea59]);}async[_0x1efedd(0x201)](_0x589774=0x7530){const _0x9cd9a3=_0x1efedd;await Promise[_0x9cd9a3(0x30f)]([...this[_0x9cd9a3(0x251)]][_0x9cd9a3(0x4ba)](_0x2f7763=>_0x2f7763[_0x9cd9a3(0x584)](_0x589774)));const _0x3d49d0=this['_n'](_0x9cd9a3(0x201),[0x0]);return this[_0x9cd9a3(0x251)][_0x9cd9a3(0x7be)](),_0x3d49d0;}async[_0x1efedd(0x344)](){const _0x308130=_0x1efedd,_0x21845b=this['_n'](_0x308130(0x344),[]);return this[_0x308130(0x251)][_0x308130(0x7be)](),_0x21845b;}[_0x1efedd(0x7de)](_0x10565d,_0x4feb6d,_0x181428){const _0x1bfe87=_0x1efedd;let _0x1f0fd5,_0x562d7b;if(Array['isArray'](_0x10565d)){if(typeof _0x4feb6d===_0x1bfe87(0x5c4))throw new _0x571226(_0x1bfe87(0x74a),_0x1bfe87(0x185));_0x562d7b=_0x4feb6d??{};if(_0x562d7b[_0x1bfe87(0x863)]!=null&&typeof _0x562d7b[_0x1bfe87(0x863)]!==_0x1bfe87(0x5c4))throw new _0x571226(_0x1bfe87(0x434),_0x1bfe87(0x185));if(_0x10565d[_0x1bfe87(0x2f6)]===0x0)throw new _0x571226('process(entries)\x20requires\x20at\x20least\x20one\x20entry',_0x1bfe87(0x185));_0x1f0fd5=_0x10565d[_0x1bfe87(0x4ba)](_0x3ebf47=>{const _0x29e5a2=_0x1bfe87;if(!_0x3ebf47||typeof _0x3ebf47[_0x29e5a2(0x359)]!==_0x29e5a2(0x460)||!_0x3ebf47[_0x29e5a2(0x359)])throw new _0x571226(_0x29e5a2(0x307),'BAD_PARAM');if(typeof _0x3ebf47[_0x29e5a2(0x2d8)]!=='function')throw new _0x571226(_0x29e5a2(0x5f7)+_0x3ebf47[_0x29e5a2(0x359)]+'\x22\x20requires\x20a\x20`handler`\x20function',_0x29e5a2(0x185));return{..._0x3ebf47};});}else{_0x562d7b=_0x181428??{};if(typeof _0x4feb6d!==_0x1bfe87(0x5c4))throw new _0x571226(_0x1bfe87(0x5f7)+_0x10565d+_0x1bfe87(0x31a),_0x1bfe87(0x185));_0x1f0fd5=[{'type':_0x10565d,'handler':_0x4feb6d,..._0x181428??{}}];}const _0x2ff530=this[_0x1bfe87(0x263)];for(const _0x20d5c1 of _0x1f0fd5){const _0x126a5c=_0x20d5c1[_0x1bfe87(0x2d8)];_0x20d5c1['handler']=function(..._0x1612c5){const _0x4aaaf7=_0x1bfe87;return _0x2ff530['_afterDurable']()[_0x4aaaf7(0x8a9)](()=>_0x126a5c[_0x4aaaf7(0x2d6)](this,_0x1612c5));};}const _0x3764d6=this['_n'](_0x1bfe87(0x7de),[_0x1f0fd5,_0x562d7b]),_0x5acce7=this,_0x3aaced={'id':_0x3764d6['id'],'type':_0x3764d6[_0x1bfe87(0x359)],get 'running'(){const _0x191a68=_0x1bfe87;return _0x5acce7['_n']('workerState',[_0x3764d6['id']],![])[_0x191a68(0x843)];},'isRunning'(){const _0x5d6c55=_0x1bfe87;return _0x5acce7['_n'](_0x5d6c55(0x1dd),[_0x3764d6['id']],![])[_0x5d6c55(0x843)];},async 'stop'(_0x777313=0x7530){const _0x4a0c6a=_0x1bfe87;_0x5acce7['_n'](_0x4a0c6a(0x800),[_0x3764d6['id']]);const _0x4adb34=Date['now']()+_0x777313;while(_0x5acce7['_n'](_0x4a0c6a(0x1dd),[_0x3764d6['id']],![])['inFlight']>0x0&&Date[_0x4a0c6a(0x785)]()<_0x4adb34)await new Promise(_0x53231d=>setTimeout(_0x53231d,0x2));_0x5acce7['_n']('stopWorkerAbort',[_0x3764d6['id']]),_0x463f2b[_0x4a0c6a(0x554)](),_0x5acce7['_workers'][_0x4a0c6a(0x6f8)](_0x3aaced);},async 'kill'(){const _0x128ea8=_0x1bfe87;_0x5acce7['_n'](_0x128ea8(0x2b5),[_0x3764d6['id']]),_0x5acce7[_0x128ea8(0x251)][_0x128ea8(0x6f8)](_0x3aaced);}};return this[_0x1bfe87(0x251)]['add'](_0x3aaced),_0x3aaced;}[_0x1efedd(0x4e0)](_0x1ce3fb){const _0x2acefc=_0x1efedd;throw new _0x571226(_0x2acefc(0x821)+_0x1ce3fb+'\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'+_0x1ce3fb+_0x2acefc(0x240),_0x2acefc(0x490));}[_0x1efedd(0x576)](_0x4f0ed0){const _0x99de54=_0x1efedd;return this[_0x99de54(0x4e0)](_0x4f0ed0);}}return queue={'OKDBQueue':_0x5a22f9},queue;}var timemachine,hasRequiredTimemachine;function requireTimemachine(){const _0x576709=_0x1c5fdf;if(hasRequiredTimemachine)return timemachine;hasRequiredTimemachine=0x1;const {fromArray:_0x1826d4}=requireIterable();class _0x2e3c2f{constructor(_0x2ef227){const _0x1dfa95=_0x20ac;this[_0x1dfa95(0x81f)]=_0x2ef227,this[_0x1dfa95(0x263)]=_0x2ef227[_0x1dfa95(0x263)];const _0x2600ec=(_0x2fc884,_0xea44e0)=>this['_n'](_0x2fc884,_0xea44e0,![]);this[_0x1dfa95(0x862)]={'getDiffs':(_0x3e3d36,_0x39d946,_0x14d8f9)=>_0x2600ec(_0x1dfa95(0x412),[_0x3e3d36,_0x39d946,_0x14d8f9||{}]),'hasDiff':(_0xd61281,_0x4b1d7d,_0x10998f)=>_0x2600ec(_0x1dfa95(0x2b2),[_0xd61281,_0x4b1d7d,_0x10998f]),'getHead':(_0x14682e,_0x5ea0c3)=>_0x2600ec('storeGetHead',[_0x14682e,_0x5ea0c3])??null,'getHeadCount':_0x5bd5fe=>_0x2600ec('storeGetHeadCount',[_0x5bd5fe]),'getTotalHeadCount':()=>_0x2600ec(_0x1dfa95(0x4f8),[]),'getDiffsInRange':(_0x2be07d,_0x1f57c0,_0x3d1e8d)=>_0x2600ec('storeGetDiffsInRange',[_0x2be07d??null,_0x1f57c0,_0x3d1e8d]),'getConfig':()=>_0x2600ec(_0x1dfa95(0x442),[])??null,'getCursor':()=>this['_n'](_0x1dfa95(0x755),[],![])??null,get 'db'(){try{return _0x2600ec('storeGetTotalHeadCount',[]),{};}catch{return null;}}};}get[_0x576709(0x76b)](){const _0x2fa17b=_0x576709,_0x4ac343=(this[_0x2fa17b(0x81f)][_0x2fa17b(0x6e4)]?.[_0x2fa17b(0x690)]?.()||[])[_0x2fa17b(0x7f8)](_0x234cc8=>String(_0x234cc8[_0x2fa17b(0x5b6)]||'')['startsWith']('time-machine:'))[_0x2fa17b(0x2f6)];return{'size':_0x4ac343};}['_n'](_0x326665,_0x2e7e96,_0x5a36a3=!![]){const _0x330e79=_0x576709;return this[_0x330e79(0x263)][_0x330e79(0x7b0)]('tm',this[_0x330e79(0x81f)][_0x330e79(0x80a)],_0x326665,_0x2e7e96,_0x5a36a3);}async[_0x576709(0x894)](_0x3ef830){const _0x408fdb=_0x576709;return this['_n'](_0x408fdb(0x894),[_0x3ef830??null]);}async[_0x576709(0x510)](_0x9654a9){const _0x549949=_0x576709;return this['_n'](_0x549949(0x510),[_0x9654a9??null]);}async['enableAll'](){const _0x5255c3=_0x576709;return this['_n'](_0x5255c3(0x1a6),[]);}async[_0x576709(0x641)](){const _0x5b1a53=_0x576709;return this['_n'](_0x5b1a53(0x641),[]);}async[_0x576709(0x68d)](_0x336bc1){const _0x4e29c4=_0x576709;return this['_n'](_0x4e29c4(0x68d),[_0x336bc1??null]);}async[_0x576709(0x687)](){const _0xfa067b=_0x576709;return this['_n'](_0xfa067b(0x687),[]);}['isEnabled'](_0x5eca6d){const _0x40c97b=_0x576709;return this['_n'](_0x40c97b(0x2a4),[_0x5eca6d??null],![]);}[_0x576709(0x690)](){return this['_n']('list',[],![]);}[_0x576709(0x392)](_0x1af709){const _0x1cedb4=_0x576709;return this['_n'](_0x1cedb4(0x392),[_0x1af709??null],![]);}[_0x576709(0x364)](_0x30c2c4){const _0x5e6964=_0x576709;if(!_0x30c2c4)return this['_n'](_0x5e6964(0x755),[],![]);return this['_n'](_0x5e6964(0x364),[_0x30c2c4],![]);}[_0x576709(0x755)](){return this['_n']('getLegacyCursor',[],![]);}[_0x576709(0x1cf)](_0x1479e9,_0x179050,_0x1d1318){const _0x1fc56e=_0x576709;return this['_n'](_0x1fc56e(0x1cf),[_0x1479e9,_0x179050,_0x1d1318],![]);}['getHistory'](_0x5246b0,_0x39a099,_0x2a4474){const _0x398e18=_0x576709;return this['_n'](_0x398e18(0x6bc),[_0x5246b0,_0x39a099,_0x2a4474||{}],![]);}[_0x576709(0x356)](_0x115b8a,_0x406bcf,_0x41001d){const _0x269ab8=_0x576709;return this['_n'](_0x269ab8(0x356),[_0x115b8a??null,_0x406bcf,_0x41001d],![])[Symbol[_0x269ab8(0x84c)]]();}async['flush'](_0x250dca){const _0x7da1dc=_0x576709;return this['_n'](_0x7da1dc(0x803),[_0x250dca??null]);}}return timemachine={'OKDBTimeMachine':_0x2e3c2f},timemachine;}var files,hasRequiredFiles;function requireFiles(){const _0x311809=_0x1c5fdf;if(hasRequiredFiles)return files;hasRequiredFiles=0x1;const _0x62d064=require$$0,{Readable:_0x18f6ca}=require$$1,{OKDBError:_0x4ee7ad,optionsArg:_0x171dd0,invalidArgument:_0x50702b}=requireErrors(),{RawDb:_0x887769}=requireRawdb();async function _0x2db2d3(_0x5e2847){const _0x1225e8=_0x20ac;if(Buffer['isBuffer'](_0x5e2847))return _0x5e2847;if(_0x5e2847 instanceof Uint8Array)return Buffer[_0x1225e8(0x6a7)](_0x5e2847);if(typeof _0x5e2847===_0x1225e8(0x460))return Buffer[_0x1225e8(0x6a7)](_0x5e2847);const _0x504b92=[];for await(const _0x255352 of _0x5e2847)_0x504b92[_0x1225e8(0x3c0)](Buffer['isBuffer'](_0x255352)?_0x255352:Buffer[_0x1225e8(0x6a7)](_0x255352));return Buffer[_0x1225e8(0x18e)](_0x504b92);}class _0x51fad5{constructor(_0x56ebbc){const _0x3550c0=_0x20ac;this[_0x3550c0(0x81f)]=_0x56ebbc,this[_0x3550c0(0x263)]=_0x56ebbc[_0x3550c0(0x263)];}['_n'](_0x11d956,_0x97e906,_0x55fbc5=!![]){const _0x1e5fb1=_0x20ac;return this['okdb'][_0x1e5fb1(0x7b0)]('files',this['env'][_0x1e5fb1(0x80a)],_0x11d956,_0x97e906,_0x55fbc5);}[_0x311809(0x84e)](){return!![];}['stop'](){}async['_ensure'](){const _0x81aec5=_0x311809;this['_n'](_0x81aec5(0x4c3),[]);}async[_0x311809(0x6c6)](_0x1040f9,_0x54e7d1){const _0x1c7028=_0x311809;return this['okdb'][_0x1c7028(0x1d6)](this['_n'](_0x1c7028(0x794),[_0x1040f9,await _0x2db2d3(_0x54e7d1)]));}get[_0x311809(0x4e5)](){const _0x823182=_0x311809;return this[_0x823182(0x544)]||(this['__blobStatusDb']=new _0x887769(this[_0x823182(0x81f)],_0x823182(0x5bc)));}async[_0x311809(0x218)](_0x5ecc0a){const _0x307f1f=_0x311809;return this['_blobStatusDb'][_0x307f1f(0x659)](_0x5ecc0a);}async[_0x311809(0x4ce)](_0xfe58e3){const _0x1c2fdc=_0x311809,{id:_0x3d3b11,stream:_0x4c75a0,mime:mime='application/octet-stream',path:_0x244929='',txn:txn=null}=_0x171dd0(_0xfe58e3);if(!_0x3d3b11)throw _0x50702b(_0x1c2fdc(0x847),_0x1c2fdc(0x204),_0x3d3b11);if(!_0x4c75a0)throw _0x50702b(_0x1c2fdc(0x664),_0x1c2fdc(0x6c2),_0x4c75a0);const _0x3d96b6=await _0x2db2d3(_0x4c75a0);if(txn){const _0x41f28a=this['_n'](_0x1c2fdc(0x4ef),[_0x3d3b11,_0x3d96b6,{'mime':mime,'path':_0x244929}]);return txn[_0x1c2fdc(0x77c)](_0x1c2fdc(0x452),_0x3d3b11,_0x41f28a[_0x1c2fdc(0x74d)]),txn[_0x1c2fdc(0x814)](()=>this['_n']('txnDone',[_0x41f28a[_0x1c2fdc(0x74f)]])),txn[_0x1c2fdc(0x1c1)](()=>this['_n'](_0x1c2fdc(0x1df),[_0x41f28a[_0x1c2fdc(0x74f)]])),_0x41f28a['record'];}return this[_0x1c2fdc(0x263)][_0x1c2fdc(0x1d6)](this['_n'](_0x1c2fdc(0x4ce),[_0x3d3b11,_0x3d96b6,{'mime':mime,'path':_0x244929}]));}[_0x311809(0x4ff)](_0x15f942){const _0x100aaf=_0x311809;return this['_n'](_0x100aaf(0x4ff),[_0x15f942],![])??null;}[_0x311809(0x67a)](_0x8fcac7){const _0x38c553=_0x311809,_0x4f542c=this[_0x38c553(0x846)](_0x8fcac7);if(!_0x62d064['existsSync'](_0x4f542c))throw Object['assign'](new Error(_0x38c553(0x754)+_0x8fcac7),{'status':0x194});return this[_0x38c553(0x3c1)](_0x8fcac7);}[_0x311809(0x3c1)](_0x9724e2){const _0x377ea1=0x100*0x400,_0x1b8bf0=this;let _0x5c4e4b=0x0;return new _0x18f6ca({'highWaterMark':_0x377ea1,'read'(){const _0x387586=_0x20ac;let _0x1422c8;try{const _0x1b2c28=_0x1b8bf0['_n'](_0x387586(0x5dc),[_0x9724e2,_0x5c4e4b,_0x377ea1],![]);_0x1422c8=Buffer[_0x387586(0x531)](_0x1b2c28)?_0x1b2c28:Buffer[_0x387586(0x6a7)](_0x1b2c28);}catch(_0x5d156b){this['destroy'](_0x5d156b);return;}_0x5c4e4b+=_0x1422c8['length'];if(_0x1422c8[_0x387586(0x2f6)])this[_0x387586(0x3c0)](_0x1422c8);if(_0x1422c8[_0x387586(0x2f6)]<_0x377ea1)this[_0x387586(0x3c0)](null);}});}async[_0x311809(0x5ed)](_0x4971d2){const _0x522438=_0x311809;return this[_0x522438(0x263)][_0x522438(0x7b5)](this['_n'](_0x522438(0x5ed),[_0x4971d2],![]));}async[_0x311809(0x4cd)](_0x5c52a1){const _0x145931=_0x311809,_0x212d3d=this[_0x145931(0x4ff)](_0x5c52a1);if(!_0x212d3d)throw Object[_0x145931(0x60e)](new Error(_0x145931(0x3be)+_0x5c52a1),{'status':0x194});const _0x5750fe=this[_0x145931(0x846)](_0x212d3d[_0x145931(0x7aa)]);if(!_0x62d064[_0x145931(0x477)](_0x5750fe))throw Object['assign'](new Error(_0x145931(0x299)+_0x5c52a1),{'status':0x194});return{'stream':this[_0x145931(0x3c1)](_0x212d3d['hash']),'record':_0x212d3d};}async[_0x311809(0x7e6)](_0x294128,_0x4fb7b4){const _0x1d2fd8=_0x311809,{txn:txn=null}=_0x171dd0(_0x4fb7b4);if(txn){const _0x51fba9=this['_n'](_0x1d2fd8(0x26c),[_0x294128]);txn[_0x1d2fd8(0x7e6)](_0x1d2fd8(0x452),_0x294128),txn[_0x1d2fd8(0x814)](()=>this['_n'](_0x1d2fd8(0x2a2),[_0x51fba9[_0x1d2fd8(0x74f)]])),txn[_0x1d2fd8(0x1c1)](()=>this['_n'](_0x1d2fd8(0x1df),[_0x51fba9['hook']]));return;}return this[_0x1d2fd8(0x263)][_0x1d2fd8(0x1d6)](this['_n'](_0x1d2fd8(0x7e6),[_0x294128]));}async[_0x311809(0x518)](_0x46e6c0,_0x5346e8={}){const _0x14ca2c=_0x311809;return this['_n'](_0x14ca2c(0x518),[_0x46e6c0,_0x5346e8],![]);}['getBlobStatus'](_0x12016a){const _0x4a066f=_0x311809;return this['_n'](_0x4a066f(0x3b3),[_0x12016a],![]);}['listBlobStatus'](){const _0x41ed74=_0x311809;return this['_n'](_0x41ed74(0x6b8),[],![]);}[_0x311809(0x50d)](_0x11f4ac){const {minAgeMs:_0x1dec3f}=_0x171dd0(_0x11f4ac);return this['_n']('gcOrphanedBlobs',[_0x1dec3f??null]);}[_0x311809(0x3d8)](_0x35922a,_0x1bac56){const _0x40c087=_0x311809;if(typeof _0x1bac56!==_0x40c087(0x5c4))throw new _0x4ee7ad(_0x40c087(0x513),_0x40c087(0x185));const _0x4f95ee=this['_n'](_0x40c087(0x3d8),[_0x35922a,_0x1bac56]);return()=>this['_n'](_0x40c087(0x396),[_0x4f95ee]);}async['indexContent'](_0x39dd1c){const _0x17aa56=_0x311809;return _0x39dd1c=_0x171dd0(_0x39dd1c),this['_n'](_0x17aa56(0x387),[_0x39dd1c]);}async['syncBlobs'](_0x13d88d){const {peerIds:_0x5d17d8}=_0x171dd0(_0x13d88d);return this['_n']('syncBlobs',[_0x5d17d8??null]);}[_0x311809(0x846)](_0x298995){const _0x282de3=_0x311809;if(typeof _0x298995!==_0x282de3(0x460))return require$$4['join'](this['_blobsDir'],_0x298995['slice'](0x0,0x2),_0x298995[_0x282de3(0x5d1)](0x2));return this['_n'](_0x282de3(0x74e),[_0x298995],![]);}get['_blobsDir'](){const _0x56a8cc=_0x311809;return this['_n'](_0x56a8cc(0x61d),[],![]);}}return files={'OKDBFiles':_0x51fad5},files;}var engines,hasRequiredEngines;function requireEngines(){const _0x465458=_0x1c5fdf;if(hasRequiredEngines)return engines;hasRequiredEngines=0x1;const {OKDBError:_0x10f50f}=requireErrors(),_0x37bf08=requireBridge(),_0x21974b=new Set(['embedder',_0x465458(0x2dc),_0x465458(0x648),_0x465458(0x81d)]),_0x2995c0=new Set([_0x465458(0x768),_0x465458(0x427),'dims']),_0x58f349=[_0x465458(0x4b6),_0x465458(0x782),'assertCreateAllowed','assertStartAllowed',_0x465458(0x47a),'stop',_0x465458(0x466)],_0x2ceef4={'embedder':new Set([_0x465458(0x62b),_0x465458(0x6b3)])},_0x411001=new Set([_0x465458(0x6bb),_0x465458(0x6e4),_0x465458(0x50e)]);class _0x557a6f{constructor(_0x5d79f5,_0x2390dc,_0x178996,_0x327b5e){const _0x20f335=_0x465458;this[_0x20f335(0x657)]=_0x5d79f5,this[_0x20f335(0x7e4)]=_0x2390dc,this[_0x20f335(0x359)]=_0x178996,this[_0x20f335(0x80a)]=_0x327b5e,this[_0x20f335(0x372)]=_0x178996;}['_info'](){const _0x28c939=_0x465458;return this[_0x28c939(0x657)]['_n'](_0x28c939(0x427),[this[_0x28c939(0x359)],this[_0x28c939(0x80a)]],![]);}get['doc'](){const _0x30a535=_0x465458;return this[_0x30a535(0x215)]()[_0x30a535(0x17c)];}get[_0x465458(0x862)](){const _0xae2c02=_0x465458,_0x2e5236=this[_0xae2c02(0x215)]()[_0xae2c02(0x32c)];return _0x2e5236?this[_0xae2c02(0x657)]['okdb'][_0xae2c02(0x33b)][_0xae2c02(0x4ff)](_0x2e5236):undefined;}get[_0x465458(0x397)](){const _0x3fd7b7=_0x465458;return this[_0x3fd7b7(0x215)]()[_0x3fd7b7(0x397)];}get[_0x465458(0x28f)](){const _0x5ed815=_0x465458;return this[_0x5ed815(0x215)]()[_0x5ed815(0x28f)];}get[_0x465458(0x87f)](){const _0x3b24b6=_0x465458;return this[_0x3b24b6(0x215)]()[_0x3b24b6(0x87f)];}get[_0x465458(0x392)](){const _0x26f712=_0x465458;return this[_0x26f712(0x215)]()[_0x26f712(0x392)];}get[_0x465458(0x5e7)](){const _0x31a76a=_0x465458;return this[_0x31a76a(0x215)]()[_0x31a76a(0x5e7)];}get['lastError'](){const _0xd87e13=_0x465458,_0x5d95ab=this[_0xd87e13(0x215)]()['lastError'];return _0x5d95ab?Object[_0xd87e13(0x60e)](new Error(_0x5d95ab[_0xd87e13(0x5e1)]),{'code':_0x5d95ab[_0xd87e13(0x22a)]}):null;}get[_0x465458(0x48a)](){const _0x3d184f=_0x465458;return this[_0x3d184f(0x215)]()['runtimeState'];}get[_0x465458(0x630)](){const _0x59120f=_0x465458;return this[_0x59120f(0x657)][_0x59120f(0x1c5)]['get'](this[_0x59120f(0x359)])??null;}get[_0x465458(0x68c)](){const _0x5e6baf=_0x465458;if(!this[_0x5e6baf(0x215)]()[_0x5e6baf(0x259)])return null;const _0x309ee5=this;return new Proxy({},{'get'(_0x39096d,_0x34cb48){const _0x5c76a3=_0x5e6baf;if(typeof _0x34cb48==='symbol'||_0x34cb48===_0x5c76a3(0x8a9))return undefined;if(_0x2ceef4[_0x309ee5['type']]&&_0x2ceef4[_0x309ee5[_0x5c76a3(0x359)]]['has'](_0x34cb48))return _0x309ee5[_0x5c76a3(0x657)]['_n']('apiCall',[_0x309ee5[_0x5c76a3(0x359)],_0x309ee5[_0x5c76a3(0x80a)],_0x34cb48,[]],![])['value'];if(_0x309ee5[_0x5c76a3(0x359)]==='indexer'&&_0x34cb48===_0x5c76a3(0x803))return async(_0x5c22ba={})=>{const _0x367632=_0x5c76a3,_0x42759f=(_0x7b02fe,..._0x8a5e55)=>_0x309ee5[_0x367632(0x657)]['_n']('apiCall',[_0x309ee5[_0x367632(0x359)],_0x309ee5['name'],_0x7b02fe,_0x8a5e55],!![])[_0x367632(0x658)],_0x3f7d31=_0x42759f(_0x367632(0x1a4),_0x5c22ba??{}),_0x557f91=Date['now']();for(;;){const _0x22b7b6=await _0x309ee5[_0x367632(0x657)][_0x367632(0x263)][_0x367632(0x580)](()=>_0x42759f(_0x367632(0x6c4)));if(_0x22b7b6[_0x367632(0x270)]>=_0x22b7b6['head'])return;Date[_0x367632(0x785)]()-_0x557f91>=_0x3f7d31&&_0x42759f('flushTimeoutError',_0x5c22ba??{},_0x22b7b6),await new Promise(_0x564db4=>setTimeout(_0x564db4,0x3));}};return(..._0x47fcb8)=>{const _0x413679=_0x5c76a3,_0xbba28e=()=>_0x309ee5[_0x413679(0x657)]['_n'](_0x413679(0x198),[_0x309ee5[_0x413679(0x359)],_0x309ee5['name'],_0x34cb48,_0x47fcb8],!![]),_0xdf29b5=_0x437689=>{const _0x26f48f=_0x413679;if(_0x437689&&_0x437689['__absent'])throw new TypeError('engine\x20api\x20has\x20no\x20method\x20\x27'+_0x34cb48+'\x27');return _0x437689[_0x26f48f(0x658)];};if(_0x21974b[_0x413679(0x868)](_0x309ee5[_0x413679(0x359)])&&!_0x2995c0['has'](_0x34cb48)){const _0x5eaa4a=_0x309ee5[_0x413679(0x657)][_0x413679(0x263)];return _0x5eaa4a['_retryPending'](()=>_0x5eaa4a[_0x413679(0x580)](_0xbba28e))[_0x413679(0x8a9)](_0xdf29b5);}if(_0x411001[_0x413679(0x868)](_0x309ee5[_0x413679(0x359)]))try{return Promise[_0x413679(0x4a2)](_0xdf29b5(_0xbba28e()));}catch(_0x51fc3e){return Promise[_0x413679(0x87c)](_0x51fc3e);}return _0xdf29b5(_0xbba28e());};}});}async['load'](_0x33bdb2={}){const _0x1cd09c=_0x465458;return await this[_0x1cd09c(0x657)]['_nm'](_0x1cd09c(0x4b9),[this[_0x1cd09c(0x359)],this[_0x1cd09c(0x80a)],_0x33bdb2]),this;}async['start'](){const _0x4589ca=_0x465458;await this[_0x4589ca(0x657)][_0x4589ca(0x581)](_0x4589ca(0x316),[this[_0x4589ca(0x359)],this[_0x4589ca(0x80a)]]);}async['stop'](_0x32d97b={}){const _0x556721=_0x465458;await this[_0x556721(0x657)][_0x556721(0x581)](_0x556721(0x212),[this[_0x556721(0x359)],this[_0x556721(0x80a)],_0x32d97b]);}async[_0x465458(0x5cd)](_0x1cdc9d={}){const _0x107524=_0x465458;return await this[_0x107524(0x657)][_0x107524(0x581)](_0x107524(0x5cd),[this[_0x107524(0x359)],this[_0x107524(0x80a)],_0x1cdc9d]),this;}async[_0x465458(0x466)](){const _0x411bc0=_0x465458;await this[_0x411bc0(0x657)][_0x411bc0(0x581)](_0x411bc0(0x7e0),[this[_0x411bc0(0x359)],this[_0x411bc0(0x80a)]]);}}class _0xe6d9{constructor(_0x28ff26,_0x33f654=null,_0x110ee4=null){const _0x5b20b5=_0x465458;this[_0x5b20b5(0x263)]=_0x28ff26,this[_0x5b20b5(0x7fe)]=_0x33f654,this[_0x5b20b5(0x1cb)]=_0x33f654===null,this[_0x5b20b5(0x1d7)]=_0x110ee4||this,this[_0x5b20b5(0x1c5)]=this['_root']===this?_0x30274d(this):this[_0x5b20b5(0x1d7)][_0x5b20b5(0x1c5)],this[_0x5b20b5(0x456)]=new Map();}['_n'](_0x2bdae6,_0xc34245,_0x41a666=!![]){const _0xb33534=_0x465458;return this[_0xb33534(0x263)][_0xb33534(0x7b0)](_0xb33534(0x41f),this[_0xb33534(0x7fe)],_0x2bdae6,_0xc34245,_0x41a666);}[_0x465458(0x581)](_0x197ced,_0x1437e1){const _0x5297bd=_0x465458;return this[_0x5297bd(0x263)]['_callMacro'](_0x5297bd(0x41f),this[_0x5297bd(0x7fe)],_0x197ced,_0x1437e1,!![]);}get[_0x465458(0x81f)](){const _0x302cb9=_0x465458;return this['envName']?this[_0x302cb9(0x263)]['env'](this[_0x302cb9(0x7fe)]):null;}['_wrap'](_0x203dc4){const _0x2cb09f=_0x465458;if(!_0x203dc4)return null;let _0x476060=this[_0x2cb09f(0x456)][_0x2cb09f(0x4ff)](_0x203dc4[_0x2cb09f(0x7e4)]);return!_0x476060&&(_0x476060=new _0x557a6f(this,_0x203dc4[_0x2cb09f(0x7e4)],_0x203dc4[_0x2cb09f(0x359)],_0x203dc4[_0x2cb09f(0x80a)]),this[_0x2cb09f(0x456)]['set'](_0x203dc4[_0x2cb09f(0x7e4)],_0x476060)),_0x476060;}['registerDriver'](_0x7a05c1,_0x369f04){const _0x2651eb=_0x465458;if(!_0x7a05c1||typeof _0x7a05c1!=='string')throw new _0x10f50f(_0x2651eb(0x857),_0x2651eb(0x4fd),{'type':_0x7a05c1});if(!_0x369f04||typeof _0x369f04!=='object')throw new _0x10f50f('Engine\x20driver\x20for\x20\x22'+_0x7a05c1+_0x2651eb(0x1ea),_0x2651eb(0x7ab),{'type':_0x7a05c1});if(typeof _0x369f04[_0x2651eb(0x84e)]!==_0x2651eb(0x5c4))throw new _0x10f50f('Engine\x20driver\x20for\x20\x22'+_0x7a05c1+_0x2651eb(0x29d),_0x2651eb(0x399),{'type':_0x7a05c1});const _0x12c2ae=this[_0x2651eb(0x1d7)];if(_0x12c2ae[_0x2651eb(0x1c5)][_0x2651eb(0x868)](_0x7a05c1))throw new _0x10f50f(_0x2651eb(0x414)+_0x7a05c1+'\x22',_0x2651eb(0x724),{'type':_0x7a05c1});const _0x54e9eb=_0x37bf08['regObject'](_0x369f04,this[_0x2651eb(0x263)]),_0x4f6500=_0x58f349[_0x2651eb(0x7f8)](_0x11dd90=>typeof _0x369f04[_0x11dd90]===_0x2651eb(0x5c4)),_0xdb4991=_0x369f04['docs']&&typeof _0x369f04[_0x2651eb(0x360)]==='object'?_0x369f04[_0x2651eb(0x360)]:{};this[_0x2651eb(0x263)]['_call']('engines',null,_0x2651eb(0x4d9),[_0x7a05c1,{'$id':_0x54e9eb,'has':_0x4f6500,'docs':_0xdb4991}]),_0x12c2ae[_0x2651eb(0x1c5)][_0x2651eb(0x822)](_0x7a05c1,_0x369f04);}get['_started'](){const _0x510c3f=_0x465458;return this[_0x510c3f(0x263)][_0x510c3f(0x7b0)](_0x510c3f(0x41f),null,_0x510c3f(0x30b),[],![]);}get[_0x465458(0x730)](){const _0x48a808=this;return{get '_started'(){const _0x12807d=_0x20ac;return _0x48a808[_0x12807d(0x17f)];}};}[_0x465458(0x77f)](_0x2bd826){const _0x57aa6a=_0x465458;if(!_0x2bd826||typeof _0x2bd826!==_0x57aa6a(0x86d))throw new _0x10f50f('Engine\x20template\x20must\x20be\x20a\x20plain\x20object',_0x57aa6a(0x43a));if(!_0x2bd826['id']||typeof _0x2bd826['id']!=='string')throw new _0x10f50f(_0x57aa6a(0x4ac),_0x57aa6a(0x43a));if(![_0x57aa6a(0x1f8),'pipeline']['includes'](_0x2bd826[_0x57aa6a(0x5f2)]))throw new _0x10f50f(_0x57aa6a(0x4e6)+_0x2bd826['id'],'ENGINE_INVALID_TEMPLATE');if(typeof _0x2bd826[_0x57aa6a(0x6f3)]!==_0x57aa6a(0x5c4))throw new _0x10f50f(_0x57aa6a(0x35f)+_0x2bd826['id'],'ENGINE_INVALID_TEMPLATE');const _0x5c5b70=this[_0x57aa6a(0x263)],_0x552ec5=typeof _0x2bd826['inputSchema']===_0x57aa6a(0x5c4);return this['_n']('registerTemplate',[{'id':_0x2bd826['id'],'kind':_0x2bd826[_0x57aa6a(0x5f2)],'family':_0x2bd826['family']??null,'engineType':_0x2bd826[_0x57aa6a(0x372)]??null,'pipelineFamily':_0x2bd826[_0x57aa6a(0x5fe)]??null,'recommended':_0x2bd826[_0x57aa6a(0x23d)]===!![],'summary':_0x2bd826[_0x57aa6a(0x64c)]??null,'description':_0x2bd826['description']??null,'inputSchema':_0x552ec5?null:_0x2bd826[_0x57aa6a(0x1ca)]??null,'inputSchemaFn':_0x552ec5?()=>_0x2bd826[_0x57aa6a(0x1ca)](_0x5c5b70):null,'defaults':_0x2bd826[_0x57aa6a(0x619)]??null,'notes':Array[_0x57aa6a(0x55b)](_0x2bd826[_0x57aa6a(0x62a)])?_0x2bd826['notes']:[],'links':Array['isArray'](_0x2bd826[_0x57aa6a(0x7d0)])?_0x2bd826[_0x57aa6a(0x7d0)]:[],'build':(_0x50e212,_0x1a5c1d)=>_0x2bd826['build'](_0x50e212??{},{'okdb':_0x5c5b70,'envName':_0x1a5c1d??null})}],![]);}[_0x465458(0x6eb)](_0x2c916a){const _0x2373f3=_0x465458;return this['_n'](_0x2373f3(0x6eb),[_0x2c916a??null],![]);}['getTemplate'](_0xe7d804){const _0x541897=_0x465458;return this['_n'](_0x541897(0x72d),[_0xe7d804],![]);}[_0x465458(0x654)](_0x282e4d,_0x5acaf8,_0xdde24f){const _0xf1e341=_0x465458;return this['_n']('previewTemplate',[_0x282e4d,_0x5acaf8,_0xdde24f??this[_0xf1e341(0x7fe)]],![]);}[_0x465458(0x2aa)](){const _0x17affa=_0x465458;return this['_n'](_0x17affa(0x2aa),[],![]);}async[_0x465458(0x84e)](){const _0x2f0084=_0x465458;return this[_0x2f0084(0x581)]('start',[]);}async['stop'](){const _0x373d4c=_0x465458;return this[_0x373d4c(0x581)](_0x373d4c(0x584),[]);}async[_0x465458(0x8a5)](_0x2acb8c,_0x1533b3,_0x206310={},_0x4b84d6={},_0x4afa31={}){const _0x100d3b=_0x465458;return this[_0x100d3b(0x35d)](await this[_0x100d3b(0x581)](_0x100d3b(0x8a5),[_0x2acb8c,_0x1533b3,_0x206310,_0x4b84d6,_0x4afa31]));}async[_0x465458(0x283)](_0x915e2e,_0x3478ef,_0x310aad={},_0x14b366={},_0x4d27f7={}){const _0x4fde0c=_0x465458;return this[_0x4fde0c(0x35d)](await this[_0x4fde0c(0x581)](_0x4fde0c(0x283),[_0x915e2e,_0x3478ef,_0x310aad,_0x14b366,_0x4d27f7]));}['getEngine'](_0x42d5e7,_0x291794){const _0x33c1d1=_0x465458;return this['_wrap'](this['_n'](_0x33c1d1(0x2e8),[_0x42d5e7,_0x291794],![]));}[_0x465458(0x210)](_0x1c9a53,_0x3680ab){const _0x28286f=_0x465458;return this['_wrap'](this['_n'](_0x28286f(0x210),[_0x1c9a53,_0x3680ab],![]));}[_0x465458(0x690)](_0x16570e){const _0x7b0c32=_0x465458;return this['_n']('list',[_0x16570e??null],![])[_0x7b0c32(0x4ba)](_0x5ae96d=>this[_0x7b0c32(0x35d)](_0x5ae96d));}async[_0x465458(0x52a)](_0x1356ea,_0x571b84){const _0x760103=_0x465458;return this[_0x760103(0x35d)](await this['_nm'](_0x760103(0x52a),[_0x1356ea,_0x571b84]));}async[_0x465458(0x897)](_0x4ced0d,_0x227a86){const _0x1ad627=_0x465458;return this[_0x1ad627(0x456)][_0x1ad627(0x6f8)](_0x4ced0d+':'+_0x227a86),this[_0x1ad627(0x581)](_0x1ad627(0x897),[_0x4ced0d,_0x227a86]);}async[_0x465458(0x33c)](_0xf92f04){const _0x3ac860=_0x465458;return this[_0x3ac860(0x581)](_0x3ac860(0x33c),[_0xf92f04]);}async[_0x465458(0x67f)](){const _0x3a2afc=_0x465458;return this[_0x3a2afc(0x581)](_0x3a2afc(0x67f),[]);}}function _0x30274d(_0x1ed870){const _0x2630c8=_0x465458,_0x57a4dc=new Map();return{'has':_0x35feaf=>_0x57a4dc[_0x2630c8(0x868)](_0x35feaf)||_0x1ed870[_0x2630c8(0x263)][_0x2630c8(0x7b0)](_0x2630c8(0x41f),null,'hasDriver',[_0x35feaf],![]),'get':_0x1c7b6f=>_0x57a4dc[_0x2630c8(0x4ff)](_0x1c7b6f),'set':()=>{const _0x2f79de=_0x2630c8;throw new _0x10f50f(_0x2f79de(0x72c),_0x2f79de(0x185));},'_set':(_0x299da6,_0x16c13e)=>_0x57a4dc[_0x2630c8(0x398)](_0x299da6,_0x16c13e),'keys':()=>_0x57a4dc[_0x2630c8(0x542)](),'entries':()=>_0x57a4dc[_0x2630c8(0x207)](),'values':()=>_0x57a4dc['values'](),get 'size'(){const _0x4b73e1=_0x2630c8;return _0x57a4dc[_0x4b73e1(0x4ad)];},[Symbol['iterator']]:()=>_0x57a4dc[Symbol['iterator']]()};}class _0x211a8a{constructor(_0x4b5017,_0x47e2af=null){const _0x15671d=_0x465458;this[_0x15671d(0x263)]=_0x4b5017,this[_0x15671d(0x7fe)]=_0x47e2af;}['_n'](_0x15e12a,_0x12d7c8,_0x1a57ee=!![]){const _0x3dc685=_0x465458;return this[_0x3dc685(0x263)][_0x3dc685(0x7b0)](_0x3dc685(0x5fc),this[_0x3dc685(0x7fe)],_0x15e12a,_0x12d7c8,_0x1a57ee);}['_nm'](_0x45bcc1,_0x12a09a){const _0x491e54=_0x465458;return this[_0x491e54(0x263)][_0x491e54(0x217)](_0x491e54(0x5fc),this['envName'],_0x45bcc1,_0x12a09a,!![]);}get[_0x465458(0x241)](){return this['envName']===null;}async[_0x465458(0x4c3)](_0x435a48){return this['_n']('ensure',[_0x435a48]);}async[_0x465458(0x4ff)](_0x1e14b0,_0x3cc564){const _0x42b542=_0x465458;return this['_n'](_0x42b542(0x4ff),[_0x1e14b0,_0x3cc564??null],![]);}async[_0x465458(0x341)](_0x1a5cb9,_0x7dec3b){const _0x6e2d4d=_0x465458;return this['_n'](_0x6e2d4d(0x341),[_0x1a5cb9,_0x7dec3b??null],![]);}async[_0x465458(0x690)](_0xb87fac){const _0x1d6687=_0x465458;return this['_n'](_0x1d6687(0x690),[_0xb87fac??null],![]);}async['listRecords'](_0x44de6c={}){const _0x2e1d0d=_0x465458;return this['_n'](_0x2e1d0d(0x1ff),[_0x44de6c?.[_0x2e1d0d(0x7fe)]??null],![]);}[_0x465458(0x4b6)](_0x3d0c84,_0x3b29f6){const _0x53c9ba=_0x465458;return this['_n'](_0x53c9ba(0x4b6),[_0x3d0c84,_0x3b29f6??null],![]);}async[_0x465458(0x1d9)](_0x446eff){const _0xd57ab5=_0x465458;return this[_0xd57ab5(0x581)]('create',[_0x446eff]);}async['update'](_0x13a5f4,_0x3f1835){const _0x50f5c2=_0x465458;return this[_0x50f5c2(0x581)](_0x50f5c2(0x3dc),[_0x13a5f4,_0x3f1835]);}async['stop'](_0x562e42){const _0x43ba46=_0x465458;return this[_0x43ba46(0x581)](_0x43ba46(0x584),[_0x562e42]);}async[_0x465458(0x708)](_0x4f2a0e){const _0x33ab41=_0x465458;if(!_0x4f2a0e||typeof _0x4f2a0e!==_0x33ab41(0x86d)||!_0x4f2a0e['name']||!_0x4f2a0e['engines'])return _0x4f2a0e;for(let _0x27bce2=0x0;_0x27bce2<0x3;_0x27bce2++)await new Promise(_0x12af8f=>setImmediate(_0x12af8f));try{const _0x287c90=this[_0x33ab41(0x7fe)]!==null?await this[_0x33ab41(0x4ff)](_0x4f2a0e['name']):_0x4f2a0e[_0x33ab41(0x81f)]?await this['get'](_0x4f2a0e[_0x33ab41(0x81f)],_0x4f2a0e['name']):null;return _0x287c90||_0x4f2a0e;}catch{return _0x4f2a0e;}}async[_0x465458(0x84e)](_0x5e59f7){const _0x5b3126=_0x465458;return this[_0x5b3126(0x708)](await this['_nm'](_0x5b3126(0x84e),[_0x5e59f7]));}async['restart'](_0x563c83){const _0x123600=_0x465458;return this[_0x123600(0x708)](await this['_nm'](_0x123600(0x52a),[_0x563c83]));}async[_0x465458(0x686)](_0x3e558a){const _0x569975=_0x465458;return this[_0x569975(0x581)](_0x569975(0x686),[_0x3e558a]);}async[_0x465458(0x493)](_0x38a8ef,_0x5f4c9a,_0x226f3f){const _0x31f91b=_0x465458;return this['_nm'](_0x31f91b(0x493),[_0x38a8ef,_0x5f4c9a,_0x226f3f]);}async[_0x465458(0x7e6)](_0x467990){const _0x26ab2b=_0x465458;return this[_0x26ab2b(0x581)](_0x26ab2b(0x7e6),[_0x467990]);}async[_0x465458(0x201)](){const _0x1d48fd=_0x465458;return this['_nm'](_0x1d48fd(0x201),[]);}async[_0x465458(0x3f9)](){const _0x4139b8=_0x465458;return this[_0x4139b8(0x581)](_0x4139b8(0x3f9),[]);}[_0x465458(0x1bc)](_0x34f229,_0x4930d9){return this['_n']('findOwner',[_0x34f229,_0x4930d9],![]);}}return engines={'OKDBEngines':_0xe6d9,'OKDBPipelines':_0x211a8a,'OKDBEngineHandle':_0x557a6f},engines;}var functions,hasRequiredFunctions;function requireFunctions(){const _0x320381=_0x1c5fdf;if(hasRequiredFunctions)return functions;hasRequiredFunctions=0x1;const {optionsArg:_0x7cf096}=requireErrors(),_0x565a02=Number(process.env.OKDB_FN_POLL_MS)||0x14;class _0x10c688{constructor(_0x115e74,_0x2e21ed=null){const _0x40d506=_0x20ac;this[_0x40d506(0x263)]=_0x115e74,this[_0x40d506(0x7fe)]=_0x2e21ed??_0x40d506(0x199);}get['env'](){const _0x2100e3=_0x20ac;return this[_0x2100e3(0x263)][_0x2100e3(0x33b)][_0x2100e3(0x4ff)](this[_0x2100e3(0x7fe)])??null;}['_n'](_0x202907,_0x26b730=[],_0x1fd648=!![]){const _0x271780=_0x20ac;try{return this[_0x271780(0x263)][_0x271780(0x7b0)]('functions',this[_0x271780(0x7fe)],_0x202907,_0x26b730,_0x1fd648);}catch(_0x47a363){throw _0x28c916(_0x47a363);}}async[_0x320381(0x581)](_0x4e50a9,_0x447adf=[]){const _0x59b356=_0x320381;try{return await this['okdb'][_0x59b356(0x217)]('functions',this[_0x59b356(0x7fe)],_0x4e50a9,_0x447adf,!![]);}catch(_0xf46726){throw _0x28c916(_0xf46726);}}async['list'](){const _0x41f809=_0x320381;return this['_n'](_0x41f809(0x690),[],![]);}async['get'](_0x24e9e6){const _0x24cf5a=_0x320381;return this['_n'](_0x24cf5a(0x4ff),[_0x24e9e6],![]);}async[_0x320381(0x1d9)](_0x505ae4){const _0x3e3606=_0x320381;return this['_n'](_0x3e3606(0x1d9),[_0x505ae4]);}async['update'](_0x18005d,_0x37145f={}){const _0xf2b05b=_0x320381;return this['_n'](_0xf2b05b(0x3dc),[_0x18005d,_0x37145f]);}async[_0x320381(0x7e6)](_0x1916c8){const _0x15960e=_0x320381;return this['_n'](_0x15960e(0x7e6),[_0x1916c8]);}async[_0x320381(0x5ef)](_0x1db5ab){const _0x16ec82=_0x320381,{functionName:functionName=null}=_0x7cf096(_0x1db5ab);return this['_n'](_0x16ec82(0x5ef),[{'functionName':functionName}],![]);}async[_0x320381(0x3ff)](_0x131400){const _0x4c0401=_0x320381;return this['_n'](_0x4c0401(0x3ff),[_0x131400],![]);}async[_0x320381(0x28e)](_0x3e2ea4){const _0x4a9cfb=_0x320381;return _0x3e2ea4=_0x7cf096(_0x3e2ea4,_0x4a9cfb(0x373)),this['_n']('recordRun',[_0x3e2ea4]);}async[_0x320381(0x373)](_0x44e48b,_0x324414=null,_0x387235={}){const _0x2b7c71=_0x320381,_0x1f64db={..._0x387235},_0x45cd60=_0x1f64db[_0x2b7c71(0x205)];if(_0x45cd60)_0x1f64db['aborted']=!!_0x45cd60[_0x2b7c71(0x4cb)];delete _0x1f64db[_0x2b7c71(0x205)];const _0x15b562=await this['_nm']('runStart',[_0x44e48b,_0x324414,_0x1f64db]),_0x550e44=this[_0x2b7c71(0x263)],_0x1f1ca6=()=>_0x550e44[_0x2b7c71(0x51b)][_0x2b7c71(0x577)]();if(_0x45cd60&&typeof _0x45cd60[_0x2b7c71(0x2ba)]==='function')_0x45cd60[_0x2b7c71(0x2ba)](_0x2b7c71(0x5b1),_0x1f1ca6,{'once':!![]});let _0x57964e=![];try{for(;;){const _0x26040e=_0x550e44[_0x2b7c71(0x51b)][_0x2b7c71(0x323)](_0x565a02);let _0x42c183;try{_0x42c183=await _0x550e44[_0x2b7c71(0x217)](_0x2b7c71(0x2fd),this[_0x2b7c71(0x7fe)],_0x2b7c71(0x1bb),[_0x15b562,!!_0x45cd60?.[_0x2b7c71(0x4cb)]],![],![]);}catch(_0x1fa91e){_0x57964e=!![];throw _0x28c916(_0x1fa91e);}if(!_0x42c183||_0x42c183[_0x2b7c71(0x181)]!==!![])return _0x57964e=!![],_0x550e44[_0x2b7c71(0x51b)][_0x2b7c71(0x577)](),_0x42c183;if(_0x42c183['progressed'])_0x550e44[_0x2b7c71(0x51b)][_0x2b7c71(0x577)]();await _0x26040e;}}finally{if(_0x45cd60&&typeof _0x45cd60[_0x2b7c71(0x469)]==='function')_0x45cd60['removeEventListener']('abort',_0x1f1ca6);if(!_0x57964e)try{_0x550e44['_call'](_0x2b7c71(0x2fd),this[_0x2b7c71(0x7fe)],_0x2b7c71(0x67e),[_0x15b562],![]);}catch{}}}async[_0x320381(0x4a1)](_0x17b5e4={},_0x2e5a05=null,_0x3f2c84={}){const _0x1b8037=_0x320381;return this[_0x1b8037(0x581)]('preview',[_0x17b5e4,_0x2e5a05,_0x3f2c84]);}async['stop'](){}}function _0x28c916(_0x1656d8){const _0x153185=_0x320381;if(_0x1656d8&&_0x1656d8[_0x153185(0x2f7)]&&_0x1656d8[_0x153185(0x2f7)][_0x153185(0x7f1)])_0x1656d8[_0x153185(0x43b)]=_0x1656d8[_0x153185(0x2f7)][_0x153185(0x7f1)];return _0x1656d8;}return functions={'OKDBFunctions':_0x10c688},functions;}var processor={'exports':{}},lock,hasRequiredLock;function requireLock(){const _0x374f58=_0x1c5fdf;if(hasRequiredLock)return lock;hasRequiredLock=0x1;const {optionsArg:_0x2cea3d}=requireErrors();class _0x545b9f{constructor(_0x4f492c,_0x440491){const _0x428f23=_0x20ac;this[_0x428f23(0x813)]=_0x4f492c,this['_id']=_0x440491;}['_n'](_0x5563a8,_0x1f4498=[]){const _0x2bf592=_0x20ac;return this[_0x2bf592(0x813)]['_n'](_0x5563a8,[this[_0x2bf592(0x840)],..._0x1f4498]);}[_0x374f58(0x6ea)](){const _0x36f6c1=_0x374f58;return this['_n'](_0x36f6c1(0x6ea));}get[_0x374f58(0x673)](){return this['_n']('acquiredAt');}[_0x374f58(0x737)](){return this['_n']('holder');}[_0x374f58(0x4ae)](_0x5473b1){const _0x3b646f=_0x374f58;return this['_n'](_0x3b646f(0x4ae),[_0x5473b1]);}async[_0x374f58(0x600)](){return this['_n']('release');}}class _0x4649f9{constructor(_0xbbee10,_0x82d057,_0x4ef648,_0x475acc){const _0x2e5bbe=_0x374f58,{ttlMs:ttlMs=0x7530,heartbeatMs:heartbeatMs=null}=_0x2cea3d(_0x475acc);this[_0x2e5bbe(0x263)]=_0xbbee10,this['namespace']=_0x4ef648,this['_id']=_0xbbee10[_0x2e5bbe(0x7b0)](_0x2e5bbe(0x7cd),_0x82d057,_0x2e5bbe(0x3ca),[_0x4ef648,ttlMs,heartbeatMs],![]),this['_env']=_0x82d057;}['_n'](_0x49bd85,_0x4a3378=[]){const _0x3df0a9=_0x374f58;return this[_0x3df0a9(0x263)][_0x3df0a9(0x7b0)](_0x3df0a9(0x7cd),this[_0x3df0a9(0x55a)],_0x49bd85,_0x4a3378,![]);}[_0x374f58(0x6f1)](_0x1c11a9){const _0x40f7db=_0x374f58;return this['_n'](_0x40f7db(0x7e4),[this[_0x40f7db(0x840)],_0x1c11a9]);}async[_0x374f58(0x47b)](_0x5835c7,_0x339eae={},_0x2cb9ce={}){const _0x41c4f0=_0x374f58,_0x3976d0=this['_n']('tryAcquire',[this[_0x41c4f0(0x840)],_0x5835c7,_0x339eae,_0x2cb9ce]);return{'acquired':_0x3976d0[_0x41c4f0(0x1e4)],'handle':_0x3976d0[_0x41c4f0(0x76f)]==null?null:new _0x545b9f(this,_0x3976d0[_0x41c4f0(0x76f)]),'current':_0x3976d0['current']};}[_0x374f58(0x731)](_0x22b51d){const _0x375c1c=_0x374f58;return this['_n'](_0x375c1c(0x731),[this[_0x375c1c(0x840)],_0x22b51d]);}[_0x374f58(0x690)](){const _0x19d732=_0x374f58;return this['_n'](_0x19d732(0x690),[this[_0x19d732(0x840)]]);}[_0x374f58(0x3cf)](_0x4d90db){const _0x5e967b=_0x374f58;return this['_n'](_0x5e967b(0x3cf),[this[_0x5e967b(0x840)],_0x4d90db]);}[_0x374f58(0x491)](_0x48edb8,_0x45f138=0x3e8){const _0x2e7ea3=_0x374f58;return this['_n'](_0x2e7ea3(0x491),[this['_id'],_0x48edb8,_0x45f138]);}}return lock={'NativeLock':_0x4649f9,'NativeLockHandle':_0x545b9f},lock;}var hasRequiredProcessor;function requireProcessor(){const _0x55ee12=_0x1c5fdf;if(hasRequiredProcessor)return processor[_0x55ee12(0x3f6)];hasRequiredProcessor=0x1;const _0x450f74=requireBridge(),{RawDb:_0x3ac81b}=requireRawdb(),{NativeLock:_0x46d3cd}=requireLock();function _0x42969d(_0x2d3ad5){}class _0x2f0d4f{constructor(_0x500891){const _0x16e093=_0x55ee12;this['env']=_0x500891,this['okdb']=_0x500891;try{this['_n'](_0x16e093(0x5b2),[(_0x57c9b9,_0x5acf9e)=>{const _0x2dcfcc=_0x16e093,_0x38c307=this[_0x2dcfcc(0x263)][_0x2dcfcc(0x3de)],_0x181505=_0x38c307?.[_0x57c9b9]??_0x38c307?.[_0x2dcfcc(0x427)];if(typeof _0x181505===_0x2dcfcc(0x5c4))_0x181505[_0x2dcfcc(0x765)](_0x38c307,_0x5acf9e);}],![]);}catch{}}['_n'](_0x466c57,_0x56cf7b,_0x575e61=!![]){const _0x4cc63e=_0x55ee12;return this[_0x4cc63e(0x81f)]['okdb'][_0x4cc63e(0x7b0)]('proc',this[_0x4cc63e(0x81f)]['name'],_0x466c57,_0x56cf7b,_0x575e61);}['register'](_0x5011b6,_0x3cdc78={}){const _0x9979e8=_0x55ee12,_0x58e318={..._0x3cdc78};if(typeof _0x58e318[_0x9979e8(0x2d8)]==='function'&&_0x58e318[_0x9979e8(0x522)]!=null)throw new Error(_0x9979e8(0x896)+'Use\x20module:{path,export}\x20alone,\x20or\x20handler:\x27<name>\x27\x20for\x20a\x20built-in.');if(typeof _0x58e318['handler']==='string'&&_0x58e318[_0x9979e8(0x522)]!=null)throw new Error('processor:\x20specify\x20exactly\x20one\x20of\x20handler:\x27<name>\x27\x20or\x20module:{path,export},\x20not\x20both');if(_0x58e318[_0x9979e8(0x522)]!=null){if(!_0x58e318['module'][_0x9979e8(0x1aa)])throw new Error(_0x9979e8(0x433));const _0x1a8db0=_0x58e318[_0x9979e8(0x522)]['export']??_0x58e318[_0x9979e8(0x522)][_0x9979e8(0x7f5)]??_0x9979e8(0x7de),_0x595bad=require[_0x9979e8(0x4a2)](_0x58e318['module'][_0x9979e8(0x1aa)]),_0x3f64b3=require(_0x595bad),_0x351fa1=_0x3f64b3[_0x1a8db0]??_0x3f64b3[_0x9979e8(0x3e4)]??_0x3f64b3;if(typeof _0x351fa1!==_0x9979e8(0x5c4))throw new Error(_0x9979e8(0x415)+_0x58e318[_0x9979e8(0x522)][_0x9979e8(0x1aa)]+_0x9979e8(0x31d)+_0x1a8db0+_0x9979e8(0x627));this['env']['okdb']['_staticCall'](_0x9979e8(0x71c),'registerModule',[_0x595bad,_0x1a8db0,_0x351fa1]),_0x58e318[_0x9979e8(0x522)]={'path':_0x595bad,'export':_0x1a8db0};}if(_0x58e318['quantum']!=null){if(typeof _0x58e318[_0x9979e8(0x27e)]['module']!==_0x9979e8(0x460))throw new Error(_0x9979e8(0x2ad));const _0x1f5866=require['resolve'](_0x58e318[_0x9979e8(0x27e)]['module']),_0x2c744e=require(_0x1f5866),_0x1f9d9f=_0x58e318['quantum'][_0x9979e8(0x7f5)],_0x53bd5e=_0x1f9d9f?_0x2c744e[_0x1f9d9f]:_0x2c744e[_0x9979e8(0x3e4)]??_0x2c744e;if(typeof _0x53bd5e===_0x9979e8(0x5c4)){const _0x24cb5b=_0x1f9d9f?_0x58e318['quantum'][_0x9979e8(0x522)]+'#'+_0x1f9d9f:_0x58e318[_0x9979e8(0x27e)][_0x9979e8(0x522)];this[_0x9979e8(0x81f)][_0x9979e8(0x263)][_0x9979e8(0x451)](_0x9979e8(0x71c),'registerQuantum',[_0x24cb5b,_0x53bd5e]);}_0x58e318['quantum']={..._0x58e318[_0x9979e8(0x27e)]};}_0x58e318[_0x9979e8(0x653)]!=null&&typeof _0x58e318[_0x9979e8(0x653)]===_0x9979e8(0x86d)&&(_0x58e318['payload']={'$payload':_0x450f74[_0x9979e8(0x566)](_0x58e318[_0x9979e8(0x653)],this[_0x9979e8(0x81f)]['okdb'])});if(_0x58e318[_0x9979e8(0x686)]!=null&&typeof _0x58e318[_0x9979e8(0x686)]!==_0x9979e8(0x5c4))throw new Error(_0x9979e8(0x6c8));const _0x5e7617=this['_n'](_0x9979e8(0x58b),[_0x5011b6??null,_0x58e318]);return this[_0x9979e8(0x260)](_0x5e7617['id'],_0x5e7617[_0x9979e8(0x5b6)]);}[_0x55ee12(0x260)](_0x52086a,_0x29ff14){const _0x58b7e7=_0x55ee12,_0x3cb0c4=this,_0x1f39bd=async()=>{const _0x49cc6f=_0x20ac;_0x3cb0c4['_n'](_0x49cc6f(0x5a3),[_0x52086a]);};return _0x1f39bd['id']=_0x52086a,_0x1f39bd[_0x58b7e7(0x5b6)]=_0x29ff14,_0x1f39bd[_0x58b7e7(0x536)]=()=>_0x29ff14?_0x3cb0c4['_n'](_0x58b7e7(0x78f),[_0x52086a],![]):0x0,_0x1f39bd[_0x58b7e7(0x392)]=()=>_0x3cb0c4[_0x58b7e7(0x4ff)](_0x52086a),_0x1f39bd[_0x58b7e7(0x6dd)]=_0x1f39bd[_0x58b7e7(0x392)],_0x1f39bd[_0x58b7e7(0x444)]=()=>_0x3cb0c4['pause'](_0x52086a),_0x1f39bd[_0x58b7e7(0x6f9)]=()=>_0x3cb0c4[_0x58b7e7(0x6f9)](_0x52086a),_0x1f39bd[_0x58b7e7(0x75a)]=()=>_0x3cb0c4[_0x58b7e7(0x75a)](_0x52086a),_0x1f39bd[_0x58b7e7(0x764)]=()=>_0x3cb0c4[_0x58b7e7(0x764)](_0x52086a),_0x1f39bd[_0x58b7e7(0x4fe)]=_0x8f0ce4=>_0x3cb0c4[_0x58b7e7(0x4fe)](_0x52086a,_0x8f0ce4),_0x1f39bd;}get[_0x55ee12(0x7a2)](){const _0x5f373f=_0x55ee12;try{return this['_n'](_0x5f373f(0x690),[],![])[_0x5f373f(0x4ba)](_0x4d56d3=>({'id':_0x4d56d3['id']}));}catch{return[];}}async[_0x55ee12(0x2cb)](_0x3cbf58){const _0x109d61=_0x55ee12;return new Set(this['_n'](_0x109d61(0x2cb),[]));}[_0x55ee12(0x7ad)](_0x3bad35){const _0x367e9f=_0x55ee12;return this['_n'](_0x367e9f(0x7ad),[[..._0x3bad35??[]]]);}get['_envWide'](){const _0xff214b=_0x55ee12;return new Set(this['_n'](_0xff214b(0x690),[],![])[_0xff214b(0x7f8)](_0x1f79fc=>_0x1f79fc[_0xff214b(0x359)]==null)[_0xff214b(0x4ba)](_0x5c8bf1=>_0x5c8bf1['id']));}[_0x55ee12(0x32d)](){}get[_0x55ee12(0x813)](){const _0xb2cba9=_0x55ee12;if(!this[_0xb2cba9(0x696)]){const _0x489a0a=new _0x46d3cd(this[_0xb2cba9(0x81f)][_0xb2cba9(0x263)],this['env'][_0xb2cba9(0x80a)],_0xb2cba9(0x71c)),_0x55ed47=this[_0xb2cba9(0x81f)];_0x489a0a[_0xb2cba9(0x567)]=()=>new _0x3ac81b(_0x55ed47,'~lock'),this[_0xb2cba9(0x696)]=_0x489a0a;}return this[_0xb2cba9(0x696)];}[_0x55ee12(0x88d)](_0x44deeb,_0x149380){const _0x54240c=_0x55ee12;return this['_n'](_0x54240c(0x3fd),[typeof _0x44deeb===_0x54240c(0x460)?_0x44deeb:_0x44deeb['id'],_0x149380?.[_0x54240c(0x5e1)]??String(_0x149380??'')]);}get[_0x55ee12(0x82a)](){const _0x45bd08=_0x55ee12;return this[_0x45bd08(0x643)]||(this[_0x45bd08(0x643)]=new _0x3ac81b(this[_0x45bd08(0x81f)],_0x45bd08(0x473)));}get[_0x55ee12(0x76b)](){const _0x150f42=_0x55ee12,_0x4009dd=this,_0x26fddb=_0x33ce21=>{const _0x25ea4b=_0x20ac,_0x8e2c59=()=>_0x4009dd['_n'](_0x25ea4b(0x29a),[_0x33ce21],![]);if(!_0x8e2c59())return undefined;const _0x1ab7be=_0x1608da=>()=>_0x8e2c59()?.[_0x1608da],_0x1cfd20={'id':_0x33ce21},_0xa2a57a=(_0x56148e,_0x5a6f3f,_0x25b11e)=>Object[_0x25ea4b(0x834)](_0x1cfd20,_0x56148e,{'get':_0x5a6f3f,'set':_0x25b11e,'enumerable':!![],'configurable':!![]});return _0xa2a57a(_0x25ea4b(0x827),_0x1ab7be(_0x25ea4b(0x827))),_0xa2a57a(_0x25ea4b(0x851),_0x1ab7be(_0x25ea4b(0x851))),_0xa2a57a('paused',_0x1ab7be('paused')),_0xa2a57a('lastClock',_0x1ab7be(_0x25ea4b(0x1c3)),_0x5a28f8=>_0x4009dd['_n'](_0x25ea4b(0x4d1),[_0x33ce21,_0x5a28f8])),_0xa2a57a('cursorKey',_0x1ab7be(_0x25ea4b(0x5b6))),_0xa2a57a(_0x25ea4b(0x213),_0x1ab7be(_0x25ea4b(0x4c1)),_0x2218ac=>_0x4009dd['_n']('setClaimGated',[_0x33ce21,!!_0x2218ac])),_0xa2a57a(_0x25ea4b(0x739),_0x1ab7be(_0x25ea4b(0x783))),_0xa2a57a(_0x25ea4b(0x2fb),_0x1ab7be(_0x25ea4b(0x2fb))),_0xa2a57a(_0x25ea4b(0x297),_0x1ab7be(_0x25ea4b(0x297))),_0xa2a57a(_0x25ea4b(0x79a),_0x1ab7be(_0x25ea4b(0x4c6)),_0x372f93=>_0x4009dd['_n'](_0x25ea4b(0x6a6),[_0x33ce21,_0x372f93])),_0xa2a57a('meta',()=>_0x4009dd[_0x25ea4b(0x4ff)](_0x33ce21)?.[_0x25ea4b(0x29e)]),_0xa2a57a(_0x25ea4b(0x5b4),()=>_0x8e2c59()?.[_0x25ea4b(0x7b1)]?{'isHeld':()=>!!_0x8e2c59()?.['lockHeld']}:null),_0xa2a57a('_pokeHandler',()=>_0x8e2c59()?.[_0x25ea4b(0x73c)]?()=>{}:null),_0xa2a57a(_0x25ea4b(0x6c3),()=>_0x8e2c59()?.[_0x25ea4b(0x538)]?{}:null),_0xa2a57a(_0x25ea4b(0x232),()=>_0x8e2c59()?.[_0x25ea4b(0x8aa)]?{}:null),_0x1cfd20;},_0x293fe0=()=>_0x4009dd['_n']('list',[],![])[_0x150f42(0x4ba)](_0xdc73f7=>_0xdc73f7['id']);return{'get':_0x3dafec=>_0x26fddb(_0x3dafec),'has':_0x54c132=>_0x293fe0()[_0x150f42(0x75e)](_0x54c132),get 'size'(){const _0x43cd01=_0x150f42;return _0x293fe0()[_0x43cd01(0x2f6)];},'keys':()=>_0x293fe0()[Symbol[_0x150f42(0x84c)]](),'values':()=>_0x293fe0()['map'](_0x26fddb)[Symbol[_0x150f42(0x84c)]](),'entries':()=>_0x293fe0()['map'](_0x9dba50=>[_0x9dba50,_0x26fddb(_0x9dba50)])[Symbol[_0x150f42(0x84c)]](),[Symbol[_0x150f42(0x84c)]]:()=>_0x293fe0()['map'](_0x169441=>[_0x169441,_0x26fddb(_0x169441)])[Symbol['iterator']](),'forEach':_0x46b2de=>_0x293fe0()[_0x150f42(0x175)](_0x590091=>_0x46b2de(_0x26fddb(_0x590091),_0x590091))};}async[_0x55ee12(0x201)](){return this['_n']('stopAll',[]);}[_0x55ee12(0x690)](){const _0x212fb6=_0x55ee12,_0x48d38f=this['_n'](_0x212fb6(0x690),[],![]);if(!this[_0x212fb6(0x81f)]['name']['startsWith']('~'))try{const _0x2fee7d=this[_0x212fb6(0x81f)][_0x212fb6(0x263)][_0x212fb6(0x29e)];for(const _0xd537c2 of _0x2fee7d[_0x212fb6(0x17d)](this[_0x212fb6(0x81f)]['name'])){for(const _0x3b10c4 of _0x2fee7d[_0x212fb6(0x22f)](_0xd537c2,this[_0x212fb6(0x81f)][_0x212fb6(0x80a)])){const _0x1e8de8=_0x212fb6(0x57d)+_0xd537c2+':'+_0x3b10c4;_0x48d38f[_0x212fb6(0x3c0)]({'id':_0x1e8de8,'type':_0xd537c2,'mode':_0x212fb6(0x2c7),'state':'online','paused':![],'lag':0x0,'cursorKey':_0x1e8de8,'meta':{'name':_0x1e8de8}});}}}catch{}return _0x48d38f;}[_0x55ee12(0x766)](){const _0x3d4bba=_0x55ee12;return this['_n'](_0x3d4bba(0x766),[],![]);}[_0x55ee12(0x844)](){const _0xc9f897=_0x55ee12;return this['_n'](_0xc9f897(0x844),[],![]);}[_0x55ee12(0x37c)](){const _0xfaff4e=_0x55ee12;return this['_n'](_0xfaff4e(0x37c),[],![]);}['get'](_0xc04e99){const _0x4e7dc7=_0x55ee12;return this['_n'](_0x4e7dc7(0x4ff),[_0xc04e99],![]);}[_0x55ee12(0x660)](_0x12f81d){const _0x4f5a54=_0x55ee12;return this[_0x4f5a54(0x4ff)](typeof _0x12f81d==='string'?_0x12f81d:_0x12f81d['id']);}[_0x55ee12(0x364)](_0x1e9301){return this['_n']('getCursor',[_0x1e9301],![]);}[_0x55ee12(0x899)](_0x37336e){const _0x23259a=_0x55ee12;return this['_n'](_0x23259a(0x899),[_0x37336e]);}[_0x55ee12(0x88c)](_0x46b955){const _0x3f5814=_0x55ee12;return this['_n'](_0x3f5814(0x88c),[_0x46b955]);}[_0x55ee12(0x19d)](_0x389e5c){const _0x181d5b=_0x55ee12;return this['_n'](_0x181d5b(0x19d),[_0x389e5c],![]);}[_0x55ee12(0x363)](_0xfc224b,_0x12111e){const _0x1eac5b=_0x55ee12;return this['_n'](_0x1eac5b(0x363),[_0xfc224b,_0x12111e]);}async[_0x55ee12(0x4fe)](_0x403aa7,_0x4763ad){const _0x287ead=_0x55ee12;return this['_n'](_0x287ead(0x4fe),[_0x403aa7,_0x4763ad??0x7530]);}['pause'](_0x190b0b){const _0x11b039=_0x55ee12;return this['_n'](_0x11b039(0x444),[_0x190b0b]);}['resume'](_0x25afe4){const _0x936c66=_0x55ee12;return this['_n'](_0x936c66(0x6f9),[_0x25afe4]);}async[_0x55ee12(0x7a1)](_0x285333){const _0xba4774=_0x55ee12;return this['_n'](_0xba4774(0x7a1),[_0x285333]);}[_0x55ee12(0x75a)](_0x898c20){const _0x5b5267=_0x55ee12;return this['_n'](_0x5b5267(0x75a),[_0x898c20]);}[_0x55ee12(0x764)](_0x2108c0){const _0x48fe97=_0x55ee12;return this['_n'](_0x48fe97(0x764),[_0x2108c0]);}[_0x55ee12(0x52a)](_0x226c0b,_0x549a4b={}){const _0x58b972=_0x55ee12;return this['_n'](_0x58b972(0x52a),[_0x226c0b,_0x549a4b]);}async[_0x55ee12(0x564)](_0x5bdd52,_0x4bd4cc,_0x5611d9){const _0x4c188f=_0x55ee12,[_0x168303,_0x55d3b7]=this['_n'](_0x4c188f(0x564),[_0x5bdd52,_0x4bd4cc,_0x5611d9]);return{'version':_0x168303,'flipClock':_0x55d3b7};}async[_0x55ee12(0x4cf)](_0x1498c2,_0x48b5a9,_0x10418a={}){const _0x25e234=_0x55ee12;return this['_n'](_0x25e234(0x4cf),[_0x1498c2,_0x48b5a9,_0x10418a]);}}_0x2f0d4f[_0x55ee12(0x772)]=function _0x4568bc(_0xa4ac88,_0x574bf2){const _0x3d5783=_0x55ee12;if(typeof _0xa4ac88!==_0x3d5783(0x460)||!_0xa4ac88)throw new Error('registerHandler:\x20name\x20must\x20be\x20a\x20non-empty\x20string');if(typeof _0x574bf2!==_0x3d5783(0x5c4))throw new Error(_0x3d5783(0x5be));_0x95f07('proc','registerHandler',[_0xa4ac88,_0x574bf2]);},_0x2f0d4f[_0x55ee12(0x3a6)]=function _0xd55eeb(_0x1a438a,_0x4d4057){const _0x40a029=_0x55ee12;if(typeof _0x1a438a!==_0x40a029(0x460)||!_0x1a438a)throw new Error(_0x40a029(0x69f));if(typeof _0x4d4057!==_0x40a029(0x5c4))throw new Error(_0x40a029(0x6b6));let _0xbd5b44=null;_0x95f07('proc',_0x40a029(0x3a6),[_0x1a438a,(_0x234bfb,_0x258744)=>{if(!_0xbd5b44)_0xbd5b44=_0x4d4057();return _0xbd5b44(_0x234bfb,_0x258744);}]);},_0x2f0d4f[_0x55ee12(0x7ba)]=_0x43e4bd=>/closed|not open|released/i[_0x55ee12(0x738)](String(_0x43e4bd)),_0x2f0d4f[_0x55ee12(0x842)]=![];function _0x95f07(_0x53484e,_0x48ae02,_0x525408){const {staticCall:_0x5b163e}=requireLib();return _0x5b163e(_0x53484e,_0x48ae02,_0x525408);}return processor[_0x55ee12(0x3f6)]=_0x2f0d4f,processor['exports'][_0x55ee12(0x458)]=_0x2f0d4f,processor[_0x55ee12(0x3f6)][_0x55ee12(0x553)]=_0x42969d,processor[_0x55ee12(0x3f6)];}var okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x4b5457=_0x1c5fdf;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x2d435e={'PUT':_0x4b5457(0x77c),'REMOVE':_0x4b5457(0x7e6),'INDEX_DROP':'dropIndex','INDEX_REGISTER':'registerIndex','INDEX_RESET':'resetIndex','TYPE_REGISTER':_0x4b5457(0x2db),'TYPE_DROP':_0x4b5457(0x716),'FTS_REGISTER':_0x4b5457(0x37f),'FTS_DROP':_0x4b5457(0x83f),'FTS_RESET':_0x4b5457(0x3d6),'SCHEMA_SET':_0x4b5457(0x266),'SCHEMA_DROP':'dropSchema','TTL_SET':'setTtl','TTL_CLEAR':_0x4b5457(0x5b3)},_0x406cae={'SYSTEM_READY':_0x4b5457(0x6b1),'FIELD_RESOLVER_REGISTERED':'field:resolver_registered','SYSTEM_STOPPED':_0x4b5457(0x1d2),'SYSTEM_CLOCK_CHANGE':'system:clock_change','SYSTEM_POKE':_0x4b5457(0x4bd),'SYSTEM_DRAIN':'system:drain','SYSTEM_TYPE_DROP':'system:type_drop','SYSTEM_PROC':_0x4b5457(0x27d),'SYSTEM_BUS_STATE_CHANGE':'system:bus_state_change','ITEM_CREATE':'item:create','ITEM_UPDATE':_0x4b5457(0x58c),'ITEM_REMOVE':_0x4b5457(0x574),'ITEM_PENDING':'item:pending','INDEX_RESET':_0x4b5457(0x809),'INDEX_READY':_0x4b5457(0x495),'INDEX_PROGRESS':_0x4b5457(0x6ce),'VIEW_PROGRESS':_0x4b5457(0x781),'INDEX_DROP':_0x4b5457(0x1d5),'INDEX_REGISTERED':'index:registered','FTS_REGISTERED':'fts:registered','FTS_DROP':_0x4b5457(0x423),'FTS_RESET':_0x4b5457(0x75d),'SCHEMA_SET':'schema:set','SCHEMA_DROP':_0x4b5457(0x8a4),'UNIQUE_VIOLATION':_0x4b5457(0x348),'UNIQUE_VIOLATION_RESOLVED':_0x4b5457(0x4d2),'REF_VIOLATION':'ref:violation','REF_VIOLATION_RESOLVED':_0x4b5457(0x6e8),'SYNC_APPLY':'sync:apply','TXN_START':_0x4b5457(0x1a8),'TXN_END':_0x4b5457(0x4f7),'TXN_ROLLBACK':_0x4b5457(0x44b),'TYPE_REGISTERED':'type:registered','TYPE_DROP':_0x4b5457(0x58e),'ENV_OPENED':_0x4b5457(0x2bb),'ENV_REMOVED':_0x4b5457(0x41e),'SYSTEM_ENV_RELEASE':_0x4b5457(0x6d7),'TTL_EXPIRED':_0x4b5457(0x826),'TTL_SET':_0x4b5457(0x38b),'TTL_CLEAR':_0x4b5457(0x6ad),'LICENSE_INVALID':_0x4b5457(0x4d7),'LICENSE_ADDED':_0x4b5457(0x5ff),'LICENSE_ACTIVATED':_0x4b5457(0x734),'LICENSE_REMOVED':_0x4b5457(0x86a)},_0x4ad119={'CREATING':_0x4b5457(0x3ab),'RESETTING':_0x4b5457(0x3e1),'READY':_0x4b5457(0x37b),'DROPPING':'dropping','WAITING':_0x4b5457(0x2d1),'ERROR':_0x4b5457(0x1f1)},_0x96d3dd={'CREATED':_0x4b5457(0x609),'STARTING':_0x4b5457(0x42f),'STARTED':'started','STOPPING':_0x4b5457(0x74c),'STOPPED':_0x4b5457(0x35c)},_0x39aa5e={'CREATING':'creating','READY':_0x4b5457(0x37b),'HALTED':_0x4b5457(0x2d7),'STOPPED':_0x4b5457(0x35c),'RESETTING':_0x4b5457(0x3e1)},_0x551481=Object[_0x4b5457(0x7ff)]({'POKE':_0x4b5457(0x7a6),'DRAIN':'bus:drain','TYPE_DROP':'bus:type_drop','PROC':_0x4b5457(0x2f9),'ENV_RELEASE':_0x4b5457(0x404)});return okdbEnums={'BUS_EVENTS':_0x551481,'CHANGE_ACTIONS':_0x2d435e,'EVENTS':_0x406cae,'INDEX_STATE':_0x4ad119,'OKDB_STATE':_0x96d3dd,'VIEW_STATE':_0x39aa5e},okdbEnums;}var okdbGuardedRange,hasRequiredOkdbGuardedRange;function requireOkdbGuardedRange(){const _0x34b1de=_0x1c5fdf;if(hasRequiredOkdbGuardedRange)return okdbGuardedRange;hasRequiredOkdbGuardedRange=0x1;const _0x5aaca8={'SKIP':Symbol['for'](_0x34b1de(0x757))},{OKDBError:_0x386d4c}=requireOkdbError(),_0x490286={'value':null,'done':!![]};class _0x3964ef{constructor(_0x594751){const _0x2a2715=_0x34b1de;this[_0x2a2715(0x623)]=_0x594751;}get['DONE'](){return _0x490286;}[Symbol[_0x34b1de(0x84c)]](){const _0x46fea0=_0x34b1de;return this[_0x46fea0(0x623)]();}[_0x34b1de(0x4ba)](_0x591361){const _0x2322d3=this;return new _0x3964ef(()=>{const _0x24fd88=_0x20ac,_0x284d78=_0x2322d3[Symbol[_0x24fd88(0x84c)]]();return{'next'(){const _0x3db355=_0x24fd88;for(;;){const _0x293914=_0x284d78[_0x3db355(0x60b)]();if(_0x293914['done'])return{'done':!![],'value':undefined};const _0x536da1=_0x591361(_0x293914[_0x3db355(0x658)]);if(_0x536da1===_0x5aaca8[_0x3db355(0x7d4)])continue;if(_0x536da1===_0x490286)return _0x284d78[_0x3db355(0x523)]?.(),{'done':!![],'value':undefined};return{'done':![],'value':_0x536da1};}},'return'(){const _0x30f630=_0x24fd88;return _0x284d78[_0x30f630(0x523)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x24fd88(0x84c)]](){return this;}};});}[_0x34b1de(0x7f8)](_0x6d2d1e){const _0x57fe88=_0x34b1de;return this[_0x57fe88(0x4ba)](_0x1a7d06=>_0x6d2d1e(_0x1a7d06)?_0x1a7d06:_0x5aaca8[_0x57fe88(0x7d4)]);}['forEach'](_0x5bd827){for(const _0x5f1de2 of this)_0x5bd827(_0x5f1de2);}[_0x34b1de(0x5d1)](_0x575ac1=0x0,_0x105762=Infinity){const _0xdd6e40=this;return new _0x3964ef(()=>{const _0x231d41=_0x20ac,_0x57fb7b=_0xdd6e40[Symbol['iterator']]();let _0x543f51=0x0;return{'next'(){const _0x5cc7e2=_0x20ac;for(;;){const _0x105e76=_0x57fb7b[_0x5cc7e2(0x60b)]();if(_0x105e76[_0x5cc7e2(0x1e2)])return{'done':!![],'value':undefined};const _0x569922=_0x543f51++;if(_0x569922<_0x575ac1)continue;if(_0x569922>=_0x105762)return _0x57fb7b[_0x5cc7e2(0x523)]?.(),{'done':!![],'value':undefined};return _0x105e76;}},'return'(){const _0x48aa1f=_0x20ac;return _0x57fb7b[_0x48aa1f(0x523)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x231d41(0x84c)]](){return this;}};});}['at'](_0x1be224){let _0x5ba4c7=0x0;for(const _0x1ec66c of this)if(_0x5ba4c7++===_0x1be224)return _0x1ec66c;return undefined;}[_0x34b1de(0x703)](_0x1b4d4f){const _0x193554=this;return new _0x3964ef(()=>{const _0x569e1e=_0x20ac,_0x6973fe=_0x193554[Symbol[_0x569e1e(0x84c)]]();let _0x5c650f=[];return{'next'(){const _0x4dc666=_0x569e1e;for(;;){if(_0x5c650f['length'])return{'done':![],'value':_0x5c650f[_0x4dc666(0x4eb)]()};const _0x11b531=_0x6973fe['next']();if(_0x11b531['done'])return{'done':!![],'value':undefined};const _0x91350d=_0x1b4d4f(_0x11b531['value']);if(Array[_0x4dc666(0x55b)](_0x91350d))_0x5c650f=_0x5c650f[_0x4dc666(0x18e)](_0x91350d);else{if(_0x91350d!=null&&(_0x91350d instanceof _0x3964ef||typeof _0x91350d[Symbol[_0x4dc666(0x84c)]]===_0x4dc666(0x5c4)&&_0x4dc666(0x6d3)in _0x91350d))_0x5c650f=_0x5c650f[_0x4dc666(0x18e)](Array[_0x4dc666(0x6a7)](_0x91350d));else{if(_0x91350d!==_0x5aaca8[_0x4dc666(0x7d4)])return{'done':![],'value':_0x91350d};}}}},'return'(){const _0x32bd5a=_0x569e1e;return _0x6973fe[_0x32bd5a(0x523)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x569e1e(0x84c)]](){return this;}};});}[_0x34b1de(0x18e)](_0xef8be7){const _0x547919=this;return new _0x3964ef(()=>{const _0xc7650d=_0x20ac;let _0x1b200b=_0x547919[Symbol['iterator']](),_0x23cbeb=![];return{'next'(){const _0x43ad6d=_0x20ac;for(;;){const _0x2b0b7f=_0x1b200b['next']();if(!_0x2b0b7f[_0x43ad6d(0x1e2)])return _0x2b0b7f;if(_0x23cbeb)return{'done':!![],'value':undefined};_0x23cbeb=!![],_0x1b200b=_0xef8be7[Symbol[_0x43ad6d(0x84c)]]();}},'return'(){const _0x39c89e=_0x20ac;return _0x1b200b[_0x39c89e(0x523)]?.(),{'done':!![],'value':undefined};},[Symbol[_0xc7650d(0x84c)]](){return this;}};});}[_0x34b1de(0x37a)](_0x3edf06){const _0x90e04e=this;return new _0x3964ef(()=>{const _0x1353c4=_0x20ac,_0x2b48e4=_0x90e04e[Symbol[_0x1353c4(0x84c)]]();return{'next'(){const _0x2552f2=_0x1353c4;for(;;){try{return _0x2b48e4[_0x2552f2(0x60b)]();}catch(_0x3b29e5){const _0x380688=_0x3edf06(_0x3b29e5);if(_0x380688===_0x5aaca8[_0x2552f2(0x7d4)]||_0x380688===undefined)continue;return{'done':![],'value':_0x380688};}}},'return'(){return _0x2b48e4['return']?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}[_0x34b1de(0x7bc)](){const _0x977945=_0x34b1de;return Array[_0x977945(0x6a7)](this);}get[_0x34b1de(0x6d3)](){return Array['from'](this);}}const _0x160c44={'total':0x0,'byLabel':{},'last':null};function _0x52c880(_0x17b1e8){const _0x1472b7=_0x34b1de;_0x160c44['total']++;if(_0x17b1e8)_0x160c44[_0x1472b7(0x7dc)][_0x17b1e8]=(_0x160c44[_0x1472b7(0x7dc)][_0x17b1e8]??0x0)+0x1;_0x160c44[_0x1472b7(0x3ea)]={'label':_0x17b1e8??null,'at':Date[_0x1472b7(0x785)]()};}function _0xde8b98(){const _0x287127=_0x34b1de;return{'total':_0x160c44[_0x287127(0x471)],'byLabel':{..._0x160c44['byLabel']},'last':_0x160c44[_0x287127(0x3ea)]};}function _0x3b86df(_0x1a5311,_0x27b5d8={}){const {getTxnId:_0x2950c1,resume:_0x962f77,label:_0x15522f,baseline:_0x314c1a}=_0x27b5d8;return new _0x3964ef(()=>{const _0xb088cf=_0x20ac;let _0x20fff0=null,_0x1362c3=![],_0x2200a7=![],_0x232987=![],_0x2ff8fe,_0x26c9cb=0x0,_0x38fd15;return{'next'(){const _0x52c63d=_0x20ac;if(_0x232987)return{'done':!![],'value':undefined};if(_0x2200a7){let _0x166afa=![];if(_0x962f77&&_0x2950c1)try{_0x166afa=_0x2950c1()===_0x38fd15;}catch{}if(!_0x166afa){_0x232987=!![],_0x52c880(_0x15522f);throw new _0x386d4c(_0x962f77?'pinned\x20range\x20iterator\x20parked\x20across\x20an\x20await/turn\x20boundary\x20and\x20the\x20env\x20was\x20written\x20'+_0x52c63d(0x19a)+_0x52c63d(0x445):_0x52c63d(0x18d)+'(no\x20unambiguous\x20bookmark)\x20—\x20consume\x20it\x20in\x20one\x20synchronous\x20block:\x20materialize\x20(e.g.\x20'+_0x52c63d(0x2fe),_0x52c63d(0x498));}_0x20fff0=_0x962f77(_0x2ff8fe,_0x26c9cb)[Symbol['iterator']](),_0x2200a7=![];}if(!_0x20fff0){if(_0x314c1a!==undefined)_0x38fd15=_0x314c1a;else try{_0x38fd15=_0x2950c1?_0x2950c1():undefined;}catch{_0x38fd15=undefined;}try{_0x20fff0=_0x1a5311()[Symbol[_0x52c63d(0x84c)]]();}catch(_0x2427ed){_0x232987=!![];throw _0x2427ed;}}!_0x1362c3&&(_0x1362c3=!![],queueMicrotask(()=>{const _0x587805=_0x52c63d;_0x1362c3=![];if(_0x232987||_0x2200a7)return;try{_0x20fff0?.[_0x587805(0x523)]?.();}catch{}_0x20fff0=null,_0x2200a7=!![];}));const _0x41f76c=_0x20fff0[_0x52c63d(0x60b)]();if(_0x41f76c['done'])return _0x232987=!![],{'done':!![],'value':undefined};return _0x2ff8fe=_0x41f76c[_0x52c63d(0x658)],_0x26c9cb++,_0x41f76c;},'return'(){const _0x3bce90=_0x20ac;_0x232987=!![];try{_0x20fff0?.[_0x3bce90(0x523)]?.();}catch{}return{'done':!![],'value':undefined};},[Symbol[_0xb088cf(0x84c)]](){return this;}};});}return okdbGuardedRange={'guardSnapshotIterable':_0x3b86df,'OKDBGuardedRange':_0x3964ef,'recordGuardTrip':_0x52c880,'getGuardTripStats':_0xde8b98},okdbGuardedRange;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0x5e352b=_0x1c5fdf;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x2c21cd,performance:_0x58dbb2}=require$$0$1,_0x4aee49=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG==='true',_0x5360c2=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x27a400=process.env.OKDB_LOOP_LAG_ALL==='1',_0x27999b=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0xaff596{constructor(){const _0x1102a1=_0x20ac;this[_0x1102a1(0x28f)]=_0x4aee49,this[_0x1102a1(0x88b)]=new Map(),this['_h']=null,this['_timer']=null,this['_started']=![],this[_0x1102a1(0x601)]=(_0x5413f8,_0x36e00a)=>process['stderr']['write'](_0x5413f8+(_0x36e00a?'\x20'+JSON[_0x1102a1(0x34d)](_0x36e00a):'')+'\x0a');}[_0x5e352b(0x785)](){const _0x3b9b4e=_0x5e352b;return _0x58dbb2[_0x3b9b4e(0x785)]();}[_0x5e352b(0x725)](_0x124889){const _0x58a225=_0x5e352b;if(typeof _0x124889===_0x58a225(0x5c4))this[_0x58a225(0x601)]=_0x124889;}[_0x5e352b(0x190)](_0x36ac14,_0xf3dd0f,_0x24cce7){const _0x1ac80b=_0x5e352b;if(!this[_0x1ac80b(0x28f)])return;let _0x5337bc=this[_0x1ac80b(0x88b)]['get'](_0x36ac14);!_0x5337bc&&(_0x5337bc={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this['_buckets'][_0x1ac80b(0x398)](_0x36ac14,_0x5337bc)),_0x5337bc['ms']+=_0xf3dd0f,_0x5337bc[_0x1ac80b(0x768)]+=0x1,_0xf3dd0f>_0x5337bc[_0x1ac80b(0x303)]&&(_0x5337bc[_0x1ac80b(0x303)]=_0xf3dd0f,_0x5337bc[_0x1ac80b(0x3d9)]=_0x24cce7||'');}['start'](_0x58e0e7){const _0x7e4b2d=_0x5e352b;if(!this[_0x7e4b2d(0x28f)]||this['_started'])return;this[_0x7e4b2d(0x17f)]=!![];if(_0x58e0e7)this[_0x7e4b2d(0x601)]=_0x58e0e7;this['_h']=_0x2c21cd({'resolution':0xa}),this['_h'][_0x7e4b2d(0x894)](),this['_timer']=setInterval(()=>this[_0x7e4b2d(0x342)](),_0x5360c2);if(this[_0x7e4b2d(0x463)][_0x7e4b2d(0x54c)])this[_0x7e4b2d(0x463)][_0x7e4b2d(0x54c)]();}[_0x5e352b(0x381)](_0x51ecb8){const _0x17a532=_0x5e352b;if(!this[_0x17a532(0x2e7)])this[_0x17a532(0x2e7)]=new Set();this[_0x17a532(0x2e7)][_0x17a532(0x3cc)](_0x51ecb8);if(!this[_0x17a532(0x17f)])this['_startAdmission']();}['offWindow'](_0x50d3f3){const _0x34e7c8=_0x5e352b;this[_0x34e7c8(0x2e7)]?.[_0x34e7c8(0x6f8)](_0x50d3f3);}[_0x5e352b(0x36f)](){const _0x32fe83=_0x5e352b;if(this[_0x32fe83(0x235)])return;this[_0x32fe83(0x235)]=!![];!this['_h']&&(this['_h']=_0x2c21cd({'resolution':0xa}),this['_h']['enable']());const _0x552685=_0x5360c2;this[_0x32fe83(0x3bb)]=setInterval(()=>{const _0x3911d4=_0x32fe83,_0x1579ee=this['_h'];if(!_0x1579ee)return;const _0x11cf83=_0x1579ee[_0x3911d4(0x17b)](0x63)/0xf4240,_0x281bc3=_0x1579ee['max']/0xf4240,_0x550d51=_0x1579ee[_0x3911d4(0x849)]/0xf4240;_0x1579ee[_0x3911d4(0x3b4)]();if(this[_0x3911d4(0x2e7)])for(const _0x1e6acb of this[_0x3911d4(0x2e7)]){try{_0x1e6acb({'p99Ms':_0x11cf83,'maxMs':_0x281bc3,'meanMs':_0x550d51,'reportMs':_0x552685});}catch{}}},_0x552685);if(this['_admissionTimer'][_0x32fe83(0x54c)])this[_0x32fe83(0x3bb)]['unref']();}[_0x5e352b(0x342)](){const _0x3ee131=_0x5e352b,_0x4a72c8=this['_h'],_0x567183=_0x4a72c8[_0x3ee131(0x6c5)]/0xf4240,_0x51afe0=_0x4a72c8[_0x3ee131(0x17b)](0x63)/0xf4240,_0x28e2c8=_0x4a72c8[_0x3ee131(0x849)]/0xf4240;_0x4a72c8[_0x3ee131(0x3b4)]();const _0xf3dc7=[...this[_0x3ee131(0x88b)]['entries']()][_0x3ee131(0x4ba)](([_0x3f0887,_0x2a402e])=>({'label':_0x3f0887,..._0x2a402e}))[_0x3ee131(0x1ab)]((_0x66441d,_0x17211d)=>_0x17211d['ms']-_0x66441d['ms'])[_0x3ee131(0x5d1)](0x0,0x8);this[_0x3ee131(0x88b)][_0x3ee131(0x7be)]();const _0x9c3592=_0xf3dc7['reduce']((_0x3b78d6,_0x681aa0)=>_0x3b78d6+_0x681aa0['ms'],0x0),_0x230898=_0xf3dc7[_0x3ee131(0x4ba)](_0x522f49=>_0x522f49['label']+'='+_0x522f49['ms'][_0x3ee131(0x72a)](0x0)+_0x3ee131(0x59b)+_0x522f49[_0x3ee131(0x768)]+(_0x522f49[_0x3ee131(0x303)]>0x5?'(worst\x20'+_0x522f49[_0x3ee131(0x303)][_0x3ee131(0x72a)](0x0)+'ms'+(_0x522f49[_0x3ee131(0x3d9)]?'\x20'+_0x522f49[_0x3ee131(0x3d9)]:'')+')':''));(_0x27a400||_0x567183>=_0x27999b)&&this['_log'](_0x3ee131(0x788)+_0x5360c2+_0x3ee131(0x5c5)+_0x567183['toFixed'](0x0)+'ms\x20p99='+_0x51afe0[_0x3ee131(0x72a)](0x0)+_0x3ee131(0x636)+_0x28e2c8['toFixed'](0x0)+_0x3ee131(0x3aa)+_0x9c3592[_0x3ee131(0x72a)](0x0)+'ms'+(_0x230898[_0x3ee131(0x2f6)]?_0x3ee131(0x6b9)+_0x230898[_0x3ee131(0x486)]('\x20\x20'):''),{'feature':_0x3ee131(0x4bc)});if(this[_0x3ee131(0x2e7)])for(const _0x59494a of this['_windowCbs']){try{_0x59494a({'p99Ms':_0x51afe0,'maxMs':_0x567183,'meanMs':_0x28e2c8,'reportMs':_0x5360c2});}catch{}}}[_0x5e352b(0x584)](){const _0x604fdc=_0x5e352b;if(this['_timer'])clearInterval(this[_0x604fdc(0x463)]);if(this['_h'])this['_h'][_0x604fdc(0x510)]();this[_0x604fdc(0x463)]=null,this['_h']=null,this[_0x604fdc(0x17f)]=![];}}const _0x282826=new _0xaff596();if(_0x282826['enabled'])_0x282826[_0x5e352b(0x84e)]();return okdbLoopMonitor={'LOOP':_0x282826},okdbLoopMonitor;}var okdbTransaction,hasRequiredOkdbTransaction;function requireOkdbTransaction(){const _0x924e8e=_0x1c5fdf;if(hasRequiredOkdbTransaction)return okdbTransaction;hasRequiredOkdbTransaction=0x1;const _0xe948ab={'v4':()=>require$$0$2['randomUUID']()},{EVENTS:_0x1fed23}=requireOkdbEnums(),{OKDBError:_0x276ec0}=requireOkdbError(),{recordGuardTrip:_0x4c8184,guardSnapshotIterable:_0x4e5509}=requireOkdbGuardedRange(),{LOOP:_0x572360}=requireOkdbLoopMonitor();function _0x12ee47(_0x13b9ff){return _0x13b9ff['map'](_0x3db1bb=>{const _0x5ed6f0=_0x20ac,[_0x57359d,_0x12d06e]=_0x3db1bb[_0x5ed6f0(0x588)]||[];return{'action':_0x3db1bb[_0x5ed6f0(0x7b4)],'type':_0x57359d,'key':_0x12d06e};});}class _0x210b20{[_0x924e8e(0x263)];['actions']=[];[_0x924e8e(0x322)]=[];[_0x924e8e(0x568)]=[];constructor(_0x392d77,_0x35365b={'useReadTransaction':![]}){const _0x349c22=_0x924e8e;this[_0x349c22(0x263)]=_0x392d77,this['options']=_0x35365b,this['id']=_0xe948ab['v4']();if(this[_0x349c22(0x667)][_0x349c22(0x668)])try{this[_0x349c22(0x2da)]=this[_0x349c22(0x263)]['db'][_0x349c22(0x5aa)]()[_0x349c22(0x3a4)];}catch{this['_txnIdAtSnapshot']=undefined;}this[_0x349c22(0x602)]=this[_0x349c22(0x667)][_0x349c22(0x668)]?this[_0x349c22(0x263)]['db'][_0x349c22(0x668)]():null,this[_0x349c22(0x891)]=![],this[_0x349c22(0x1ef)]=![],this[_0x349c22(0x602)]&&queueMicrotask(()=>{const _0x3a5122=_0x349c22;this[_0x3a5122(0x602)]&&(this[_0x3a5122(0x5f0)](),this[_0x3a5122(0x1ef)]=!![]);});}[_0x924e8e(0x814)](_0x585e59){const _0x12ba74=_0x924e8e;this[_0x12ba74(0x322)]['push'](_0x585e59);}[_0x924e8e(0x1c1)](_0x36d976){const _0x5ae766=_0x924e8e;this[_0x5ae766(0x568)]['push'](_0x36d976);}[_0x924e8e(0x5f0)](){const _0x17ca19=_0x924e8e;if(!this['readTransaction'])return;try{this[_0x17ca19(0x602)][_0x17ca19(0x1e2)]();}catch(_0x511fca){}this[_0x17ca19(0x602)]=null;}[_0x924e8e(0x7a9)](){const _0x4dce40=_0x924e8e;if(this[_0x4dce40(0x891)])throw new _0x276ec0(_0x4dce40(0x876),_0x4dce40(0x747));if(this[_0x4dce40(0x1ef)]){let _0x2fbb7e=![];if(this[_0x4dce40(0x667)]['useReadTransaction']===_0x4dce40(0x229)&&this['_txnIdAtSnapshot']!==undefined)try{_0x2fbb7e=this[_0x4dce40(0x263)]['db'][_0x4dce40(0x5aa)]()[_0x4dce40(0x3a4)]===this[_0x4dce40(0x2da)];}catch{}if(!_0x2fbb7e){_0x4c8184((this[_0x4dce40(0x263)]?.['name']??'?')+':useReadTransaction');throw new _0x276ec0(_0x4dce40(0x5e8)+_0x4dce40(0x41d)+_0x4dce40(0x3bd)+_0x4dce40(0x304),_0x4dce40(0x498));}}}[_0x924e8e(0x4ff)](_0x59e374,_0x9d6adf){const _0x16e311=_0x924e8e;return this[_0x16e311(0x7a9)](),this['okdb'][_0x16e311(0x4ff)](_0x59e374,_0x9d6adf,{'transaction':this[_0x16e311(0x602)]});}[_0x924e8e(0x7f9)](_0x4b6fc6,_0x473fd5){const _0x52750d=_0x924e8e;return this['_assertOpen'](),this['okdb'][_0x52750d(0x7f9)](_0x4b6fc6,_0x473fd5,{'transaction':this[_0x52750d(0x602)]});}[_0x924e8e(0x7ae)](_0x3179cd,_0x194e8a){const _0x50178e=_0x924e8e;return this[_0x50178e(0x7a9)](),this['okdb'][_0x50178e(0x7ae)](_0x3179cd,_0x194e8a,{'transaction':this[_0x50178e(0x602)]});}[_0x924e8e(0x223)](_0x3af0b4){const _0x27220d=_0x924e8e;if(!this[_0x27220d(0x667)][_0x27220d(0x668)])return _0x3af0b4;if(_0x3af0b4&&typeof _0x3af0b4[_0x27220d(0x8a9)]===_0x27220d(0x5c4))return _0x3af0b4;if(Array['isArray'](_0x3af0b4))return _0x3af0b4;const _0x48026a=this,_0x1d6854=_0x48026a[_0x27220d(0x667)][_0x27220d(0x668)]===_0x27220d(0x229),_0x328aff=()=>{const _0x3dea1f=_0x27220d;if(!_0x48026a[_0x3dea1f(0x1ef)])return![];if(!_0x1d6854)return!![];if(_0x48026a[_0x3dea1f(0x2da)]===undefined)return!![];try{return _0x48026a[_0x3dea1f(0x263)]['db'][_0x3dea1f(0x5aa)]()[_0x3dea1f(0x3a4)]!==_0x48026a['_txnIdAtSnapshot'];}catch{return!![];}};return _0x4e5509(()=>{const _0x450027=_0x27220d;if(_0x48026a['_closed'])throw new _0x276ec0(_0x450027(0x876),'TXN_CLOSED');if(_0x328aff()){_0x4c8184((_0x48026a[_0x450027(0x263)]?.[_0x450027(0x80a)]??'?')+_0x450027(0x343));throw new _0x276ec0(_0x450027(0x1f4)+_0x450027(0x49d)+_0x450027(0x1e5),_0x450027(0x498));}return _0x3af0b4;},{'label':(_0x48026a['okdb']?.[_0x27220d(0x80a)]??'?')+_0x27220d(0x343),..._0x1d6854?{'baseline':_0x48026a[_0x27220d(0x2da)],'getTxnId':()=>_0x48026a[_0x27220d(0x263)]['db'][_0x27220d(0x5aa)]()[_0x27220d(0x3a4)],'resume':(_0x5c97eb,_0x148e94)=>_0x3af0b4['slice'](_0x148e94)}:{}});}[_0x924e8e(0x655)](_0x1cb52e,_0x1300f1={}){const _0x31362b=_0x924e8e;return this['_assertOpen'](),this[_0x31362b(0x223)](this[_0x31362b(0x263)][_0x31362b(0x655)](_0x1cb52e,{'transaction':this[_0x31362b(0x602)],..._0x1300f1}));}['getValues'](_0x436e8b,_0xdcd759={}){const _0x34c7c5=_0x924e8e;return this[_0x34c7c5(0x7a9)](),this[_0x34c7c5(0x223)](this[_0x34c7c5(0x263)]['getValues'](_0x436e8b,{'transaction':this['readTransaction'],..._0xdcd759}));}[_0x924e8e(0x608)](_0x781aac,_0x7f9a74={}){const _0x23dd3b=_0x924e8e;return this[_0x23dd3b(0x7a9)](),this[_0x23dd3b(0x223)](this[_0x23dd3b(0x263)][_0x23dd3b(0x608)](_0x781aac,{'transaction':this[_0x23dd3b(0x602)],..._0x7f9a74}));}[_0x924e8e(0x807)](_0x1522fa,_0x3c1450,_0x2a0443={}){const _0x83a822=_0x924e8e;return this['_assertOpen'](),this[_0x83a822(0x223)](this[_0x83a822(0x263)][_0x83a822(0x807)](_0x1522fa,_0x3c1450,{'transaction':this[_0x83a822(0x602)],..._0x2a0443}));}[_0x924e8e(0x71e)](_0x2f757b,_0x3c1cc3,_0x499cb4={}){const _0x561c6e=_0x924e8e;return this[_0x561c6e(0x7a9)](),this[_0x561c6e(0x223)](this[_0x561c6e(0x263)][_0x561c6e(0x71e)](_0x2f757b,_0x3c1cc3,{'transaction':this[_0x561c6e(0x602)],..._0x499cb4}));}[_0x924e8e(0x7da)](_0x1550f4=null){const _0x3ed120=_0x924e8e;return this[_0x3ed120(0x7a9)](),this[_0x3ed120(0x263)][_0x3ed120(0x7da)](_0x1550f4,{'transaction':this['readTransaction']});}[_0x924e8e(0x34c)](_0x33a8be){const _0x1ee096=_0x924e8e;return this['_assertOpen'](),this[_0x1ee096(0x263)][_0x1ee096(0x34c)](_0x33a8be,{'transaction':this[_0x1ee096(0x602)]});}[_0x924e8e(0x77c)](_0x16516a,_0x16d926,_0x4d7eea,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0x924e8e(0x785)](),origin:origin=null,ttl:ttl=null}={}){const _0x4ccaef=_0x924e8e;this[_0x4ccaef(0x24d)][_0x4ccaef(0x3c0)]({'action':'put','args':[_0x16516a,_0x16d926,_0x4d7eea,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x924e8e(0x3dc)](_0x2de8f6,_0x215637,_0x39eb7b,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0x924e8e(0x785)](),origin:origin=null,ttl:ttl=null}={}){const _0x310920=_0x924e8e;this['actions'][_0x310920(0x3c0)]({'action':_0x310920(0x3dc),'args':[_0x2de8f6,_0x215637,_0x39eb7b,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x924e8e(0x296)](_0x370ac6,_0x3d38be,_0x290ad2,{ifVersion:ifVersion=null,timestamp:timestamp=Date['now'](),origin:origin=null,ttl:ttl=null}={}){const _0x4818ec=_0x924e8e;this[_0x4818ec(0x24d)][_0x4818ec(0x3c0)]({'action':'patch','args':[_0x370ac6,_0x3d38be,_0x290ad2,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x924e8e(0x1d9)](_0x5db82a,_0x4413ce,_0x2ee76b,{version:version=null,timestamp:timestamp=Date[_0x924e8e(0x785)](),origin:origin=null,ttl:ttl=null}={}){const _0x1f3edb=_0x924e8e;this[_0x1f3edb(0x24d)][_0x1f3edb(0x3c0)]({'action':'create','args':[_0x5db82a,_0x4413ce,_0x2ee76b,{'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x924e8e(0x7e6)](_0x2aecdd,_0x2d3ce4,{ifVersion:ifVersion=null,timestamp:timestamp=Date['now'](),origin:origin=null}={}){const _0x3ca3ad=_0x924e8e;this[_0x3ca3ad(0x24d)][_0x3ca3ad(0x3c0)]({'action':_0x3ca3ad(0x7e6),'args':[_0x2aecdd,_0x2d3ce4,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin}]});}[_0x924e8e(0x83e)](_0x1bdcd5,_0x88772d,_0x3cc6b2){const _0x4914f7=_0x924e8e;this['actions'][_0x4914f7(0x3c0)]({'action':_0x4914f7(0x83e),'args':[_0x1bdcd5,_0x88772d,_0x3cc6b2]});}['clearTTL'](_0x1974e5,_0x622507){const _0x57977e=_0x924e8e;this['actions'][_0x57977e(0x3c0)]({'action':'clearTTL','args':[_0x1974e5,_0x622507]});}[_0x924e8e(0x63f)](){const _0x3c3881=_0x924e8e;if(this[_0x3c3881(0x891)])return;for(const _0x417986 of this['_undoHooks']){try{_0x417986();}catch{}}this[_0x3c3881(0x263)][_0x3c3881(0x230)][_0x3c3881(0x380)](_0x1fed23[_0x3c3881(0x464)],{'id':this['id']}),this['actions']=[],this[_0x3c3881(0x5f0)](),this['_closed']=!![];}async[_0x924e8e(0x715)](){const _0x23fa74=_0x924e8e;if(this[_0x23fa74(0x891)])throw new Error(_0x23fa74(0x876));const _0x350677={'id':this['id'],'timestamp':Date['now'](),'actions':this[_0x23fa74(0x24d)]};this[_0x23fa74(0x263)][_0x23fa74(0x230)]['emit'](_0x1fed23[_0x23fa74(0x5de)],_0x350677);try{const _0x271747=_0x572360[_0x23fa74(0x28f)]?_0x572360[_0x23fa74(0x785)]():0x0;await this[_0x23fa74(0x263)][_0x23fa74(0x337)][_0x23fa74(0x4b7)](()=>{const _0x4ae215=_0x23fa74;for(const _0x2e044d of this['actions']){const _0x22a71b=this[_0x4ae215(0x263)]['_'+_0x2e044d['action']];if(typeof _0x22a71b!==_0x4ae215(0x5c4))throw new Error('Unknown\x20transaction\x20action:\x20'+_0x2e044d[_0x4ae215(0x7b4)]);_0x22a71b[_0x4ae215(0x765)](this['okdb'],this,..._0x2e044d[_0x4ae215(0x588)]);}}),_0x572360['enabled']&&_0x572360[_0x23fa74(0x190)]('txn-commit',_0x572360[_0x23fa74(0x785)]()-_0x271747,(this[_0x23fa74(0x263)][_0x23fa74(0x80a)]??'?')+'\x20actions='+this['actions'][_0x23fa74(0x2f6)]);}catch(_0x5643d5){for(const _0x570ff9 of this[_0x23fa74(0x568)]){try{_0x570ff9();}catch{}}this[_0x23fa74(0x5f0)](),this[_0x23fa74(0x891)]=!![];if(_0x5643d5 instanceof _0x276ec0)throw _0x5643d5;const _0x46576a={'cause':_0x5643d5,'env':this[_0x23fa74(0x263)]?.[_0x23fa74(0x80a)],'envPath':this[_0x23fa74(0x263)]?.[_0x23fa74(0x1aa)],'pid':process[_0x23fa74(0x327)],'txnId':this['id'],'actionCount':this[_0x23fa74(0x24d)]['length'],'actions':_0x12ee47(this[_0x23fa74(0x24d)]),'nativeCode':_0x5643d5?.[_0x23fa74(0x22a)],'nativeName':_0x5643d5?.[_0x23fa74(0x80a)]};try{this['okdb']?.['log']?.[_0x23fa74(0x1f1)]?.(_0x23fa74(0x1f2),{'env':_0x46576a[_0x23fa74(0x81f)],'envPath':_0x46576a[_0x23fa74(0x4e2)],'pid':_0x46576a[_0x23fa74(0x327)],'txnId':_0x46576a[_0x23fa74(0x180)],'actionCount':_0x46576a['actionCount'],'actions':_0x46576a[_0x23fa74(0x24d)],'nativeCode':_0x46576a['nativeCode'],'error':_0x5643d5?.['message'],'stack':_0x5643d5?.['stack']});}catch{}throw new _0x276ec0(_0x5643d5?.['message']||_0x23fa74(0x7db),_0x23fa74(0x45f),_0x46576a);}this[_0x23fa74(0x263)][_0x23fa74(0x230)][_0x23fa74(0x380)](_0x1fed23[_0x23fa74(0x5d5)],_0x350677);for(const _0x97087e of this[_0x23fa74(0x322)]){try{await _0x97087e();}catch{}}this['actions']=[],this[_0x23fa74(0x5f0)](),this[_0x23fa74(0x891)]=!![];}static[_0x924e8e(0x81e)](_0x1e51aa){const _0x237f89=_0x924e8e;return Object[_0x237f89(0x7ff)]({'id':_0x1e51aa['id'],'put':_0x1e51aa['put'][_0x237f89(0x818)](_0x1e51aa),'update':_0x1e51aa['update']['bind'](_0x1e51aa),'patch':_0x1e51aa[_0x237f89(0x296)][_0x237f89(0x818)](_0x1e51aa),'create':_0x1e51aa['create']['bind'](_0x1e51aa),'remove':_0x1e51aa['remove'][_0x237f89(0x818)](_0x1e51aa),'setTTL':_0x1e51aa[_0x237f89(0x83e)][_0x237f89(0x818)](_0x1e51aa),'clearTTL':_0x1e51aa['clearTTL']['bind'](_0x1e51aa),'commit':_0x1e51aa[_0x237f89(0x715)][_0x237f89(0x818)](_0x1e51aa),'rollback':_0x1e51aa[_0x237f89(0x63f)][_0x237f89(0x818)](_0x1e51aa),'get':_0x1e51aa[_0x237f89(0x4ff)]['bind'](_0x1e51aa),'getEntry':_0x1e51aa['getEntry'][_0x237f89(0x818)](_0x1e51aa),'getMany':_0x1e51aa[_0x237f89(0x7ae)][_0x237f89(0x818)](_0x1e51aa),'getRange':_0x1e51aa[_0x237f89(0x655)][_0x237f89(0x818)](_0x1e51aa),'getValues':_0x1e51aa[_0x237f89(0x47c)][_0x237f89(0x818)](_0x1e51aa),'getKeys':_0x1e51aa[_0x237f89(0x608)][_0x237f89(0x818)](_0x1e51aa),'byIndex':_0x1e51aa[_0x237f89(0x807)][_0x237f89(0x818)](_0x1e51aa),'query':_0x1e51aa[_0x237f89(0x71e)][_0x237f89(0x818)](_0x1e51aa),'getClock':_0x1e51aa[_0x237f89(0x7da)][_0x237f89(0x818)](_0x1e51aa),'getCount':_0x1e51aa[_0x237f89(0x34c)]['bind'](_0x1e51aa),'read':_0x1e51aa,'raw':_0x1e51aa});}static[_0x924e8e(0x872)](_0x381321,_0x37f9a3=[]){const _0x48a5a5=_0x924e8e;if(!Array['isArray'](_0x37f9a3))throw new _0x276ec0(_0x48a5a5(0x771),_0x48a5a5(0x320));for(const _0x1684ac of _0x37f9a3){if(Array[_0x48a5a5(0x55b)](_0x1684ac)){const [_0x57f4a7,..._0x55ada1]=_0x1684ac;if(typeof _0x381321[_0x57f4a7]!==_0x48a5a5(0x5c4))throw new _0x276ec0('Unknown\x20transaction\x20action:\x20'+_0x57f4a7,_0x48a5a5(0x84b),{'action':_0x57f4a7});_0x381321[_0x57f4a7](..._0x55ada1);continue;}if(!_0x1684ac||typeof _0x1684ac!==_0x48a5a5(0x86d))throw new _0x276ec0(_0x48a5a5(0x575),_0x48a5a5(0x62f));const {action:_0x1e49ad}=_0x1684ac;if(typeof _0x1e49ad!==_0x48a5a5(0x460)||typeof _0x381321[_0x1e49ad]!=='function')throw new _0x276ec0('Unknown\x20transaction\x20action:\x20'+_0x1e49ad,_0x48a5a5(0x84b),{'action':_0x1e49ad});switch(_0x1e49ad){case _0x48a5a5(0x77c):case _0x48a5a5(0x3dc):case'create':_0x381321[_0x1e49ad](_0x1684ac[_0x48a5a5(0x359)],_0x1684ac[_0x48a5a5(0x7e4)],_0x1684ac[_0x48a5a5(0x658)],{..._0x1684ac[_0x48a5a5(0x667)],'ttl':_0x1684ac[_0x48a5a5(0x7e1)]??_0x1684ac['options']?.[_0x48a5a5(0x7e1)]??null});break;case _0x48a5a5(0x296):_0x381321[_0x48a5a5(0x296)](_0x1684ac[_0x48a5a5(0x359)],_0x1684ac[_0x48a5a5(0x7e4)],_0x1684ac[_0x48a5a5(0x296)],{..._0x1684ac[_0x48a5a5(0x667)],'ttl':_0x1684ac[_0x48a5a5(0x7e1)]??_0x1684ac['options']?.[_0x48a5a5(0x7e1)]??null});break;case'remove':_0x381321[_0x48a5a5(0x7e6)](_0x1684ac[_0x48a5a5(0x359)],_0x1684ac['key'],_0x1684ac[_0x48a5a5(0x667)]||{});break;case _0x48a5a5(0x83e):_0x381321[_0x48a5a5(0x83e)](_0x1684ac['type'],_0x1684ac[_0x48a5a5(0x7e4)],_0x1684ac[_0x48a5a5(0x7e1)]);break;case _0x48a5a5(0x188):_0x381321[_0x48a5a5(0x188)](_0x1684ac[_0x48a5a5(0x359)],_0x1684ac['key']);break;default:throw new _0x276ec0('Unsupported\x20transaction\x20action:\x20'+_0x1e49ad,_0x48a5a5(0x84b),{'action':_0x1e49ad});}}}static async[_0x924e8e(0x373)](_0x588478,_0x55a681,_0x3d6b5a={}){const _0x2ac58d=_0x924e8e,_0x19e784=new _0x210b20(_0x588478,_0x3d6b5a),_0x4323d4=_0x210b20[_0x2ac58d(0x81e)](_0x19e784);try{typeof _0x55a681===_0x2ac58d(0x5c4)?await _0x55a681(_0x4323d4):_0x210b20[_0x2ac58d(0x872)](_0x19e784,_0x55a681||[]);const _0xee31c3=_0x19e784['actions'][_0x2ac58d(0x2f6)];return await _0x19e784['commit'](),{'id':_0x19e784['id'],'actions':_0xee31c3};}catch(_0x8d4b9e){try{_0x19e784['rollback']();}catch(_0x31634c){}throw _0x8d4b9e;}}}return okdbTransaction=_0x210b20,okdbTransaction;}var dist={},hasRequiredDist;function requireDist(){const _0x578bd0=_0x1c5fdf;if(hasRequiredDist)return dist;hasRequiredDist=0x1,Object[_0x578bd0(0x834)](dist,_0x578bd0(0x1b7),{'value':!![]});const _0x477efa=new Float64Array(0x2),_0x41c2c6=new Int32Array(_0x477efa[_0x578bd0(0x672)],0x0,0x4),{lowIdx:_0x5a0f52,highIdx:_0x1b633f}=((()=>{if(new Uint8Array(new Uint32Array([0xffee1100])['buffer'])[0x0]===0xff)return{'lowIdx':0x1,'highIdx':0x0};return{'lowIdx':0x0,'highIdx':0x1};})());let _0x310f38=![],_0x55bbbe;try{_0x55bbbe=new TextEncoder();}catch(_0x1c34f8){}function _0x5b28db(_0x4b06c5,_0x433954,_0x500c31,_0xae0f2a){const _0x364057=_0x578bd0;let _0x257600=_0x433954[_0x364057(0x2dd)];if(!_0x257600)_0x257600=_0x433954['dataView']=new DataView(_0x433954['buffer'],_0x433954[_0x364057(0x46b)],_0x433954['byteLength']+0x3>>0x2<<0x2);switch(typeof _0x4b06c5){case _0x364057(0x460):let _0x3f41a9=_0x4b06c5[_0x364057(0x2f6)],_0x2870f7=_0x4b06c5['charCodeAt'](0x0);if(!(_0x2870f7>=0x1c))_0x433954[_0x500c31++]=0x1b;if(_0x3f41a9<0x40){let _0x20f27b,_0x466b23;for(_0x20f27b=0x0;_0x20f27b<_0x3f41a9;_0x20f27b++){_0x2870f7=_0x4b06c5[_0x364057(0x7cc)](_0x20f27b);if(_0x2870f7<=0x4)_0x433954[_0x500c31++]=0x4,_0x433954[_0x500c31++]=_0x2870f7;else{if(_0x2870f7<0x80)_0x433954[_0x500c31++]=_0x2870f7;else{if(_0x2870f7<0x800)_0x433954[_0x500c31++]=_0x2870f7>>0x6|0xc0,_0x433954[_0x500c31++]=_0x2870f7&0x3f|0x80;else(_0x2870f7&0xfc00)===0xd800&&((_0x466b23=_0x4b06c5['charCodeAt'](_0x20f27b+0x1))&0xfc00)===0xdc00?(_0x2870f7=0x10000+((_0x2870f7&0x3ff)<<0xa)+(_0x466b23&0x3ff),_0x20f27b++,_0x433954[_0x500c31++]=_0x2870f7>>0x12|0xf0,_0x433954[_0x500c31++]=_0x2870f7>>0xc&0x3f|0x80,_0x433954[_0x500c31++]=_0x2870f7>>0x6&0x3f|0x80,_0x433954[_0x500c31++]=_0x2870f7&0x3f|0x80):(_0x433954[_0x500c31++]=_0x2870f7>>0xc|0xe0,_0x433954[_0x500c31++]=_0x2870f7>>0x6&0x3f|0x80,_0x433954[_0x500c31++]=_0x2870f7&0x3f|0x80);}}}}else{if(_0x433954[_0x364057(0x80b)])_0x500c31+=_0x433954[_0x364057(0x80b)](_0x4b06c5,_0x500c31,_0x433954['byteLength']-_0x500c31);else _0x500c31+=_0x55bbbe['encodeInto'](_0x4b06c5,_0x433954[_0x364057(0x289)](_0x500c31))[_0x364057(0x4d5)];if(_0x500c31>_0x433954['length']-0x4)throw new RangeError(_0x364057(0x898));}break;case _0x364057(0x46d):_0x477efa[0x0]=_0x4b06c5;let _0x54f958=_0x41c2c6[_0x5a0f52],_0x2730a9=_0x41c2c6[_0x1b633f],_0x5af3da;if(_0x4b06c5<0x0)return _0x257600[_0x364057(0x7d3)](_0x500c31+0x4,~(_0x54f958>>>0x4|_0x2730a9<<0x1c)),_0x257600['setInt32'](_0x500c31+0x0,(_0x2730a9^0x7fffffff)>>>0x4),_0x257600['setInt32'](_0x500c31+0x8,(_0x54f958&0xf^0xf)<<0x4,!![]),_0x500c31+0x9;else{if(_0x54f958&0xf||_0xae0f2a)_0x5af3da=0x9;else{if(_0x54f958&0xfffff)_0x5af3da=0x8;else{if(_0x54f958||_0x2730a9&0xf)_0x5af3da=0x6;else _0x5af3da=0x4;}}}_0x257600['setInt32'](_0x500c31+0x0,_0x2730a9>>>0x4|0x10000000),_0x257600['setInt32'](_0x500c31+0x4,_0x54f958>>>0x4|_0x2730a9<<0x1c),_0x257600[_0x364057(0x7d3)](_0x500c31+0x8,(_0x54f958&0xf)<<0x4,!![]);return _0x500c31+_0x5af3da;case _0x364057(0x86d):if(_0x4b06c5){if(Array[_0x364057(0x55b)](_0x4b06c5)){for(let _0xe06485=0x0,_0x3b3171=_0x4b06c5[_0x364057(0x2f6)];_0xe06485<_0x3b3171;_0xe06485++){if(_0xe06485>0x0)_0x433954[_0x500c31++]=0x0;_0x500c31=_0x5b28db(_0x4b06c5[_0xe06485],_0x433954,_0x500c31,!![]);}break;}else{if(_0x4b06c5 instanceof Uint8Array){_0x433954[_0x364057(0x398)](_0x4b06c5,_0x500c31),_0x500c31+=_0x4b06c5[_0x364057(0x2f6)];break;}else throw new Error(_0x364057(0x375)+JSON[_0x364057(0x34d)](_0x4b06c5));}}else _0x433954[_0x500c31++]=0x0;break;case _0x364057(0x6d6):_0x257600[_0x364057(0x17a)](_0x500c31++,_0x4b06c5?0x7:0x6,!![]);return _0x500c31;case _0x364057(0x4e8):let _0xabe48=Number(_0x4b06c5);if(BigInt(_0xabe48)>_0x4b06c5){_0x477efa[0x0]=_0xabe48;if(_0xabe48>0x0){if(_0x41c2c6[_0x5a0f52])_0x41c2c6[_0x5a0f52]--;else _0x41c2c6[_0x1b633f]--,_0x41c2c6[_0x5a0f52]=0xffffffff;}else{if(_0x41c2c6[_0x5a0f52]<0xffffffff)_0x41c2c6[_0x5a0f52]++;else _0x41c2c6[_0x1b633f]++,_0x41c2c6[_0x5a0f52]=0x0;}_0xabe48=_0x477efa[0x0];}let _0x551aa9=_0x4b06c5-BigInt(_0xabe48);if(_0x551aa9===0x0n)return _0x5b28db(_0xabe48,_0x433954,_0x500c31,_0xae0f2a);_0x5b28db(_0xabe48,_0x433954,_0x500c31,_0xae0f2a),_0x500c31+=0x9;let _0x2bd122=BigInt((_0x41c2c6[_0x1b633f]>>0x14&0x7ff)-0x437),_0x2f46a8=_0x551aa9>>_0x2bd122;_0x433954[_0x500c31-0x1]|=Number(_0x2f46a8),_0x551aa9-=_0x2f46a8<<_0x2bd122;let _0xf8360b=!![];while(_0x551aa9||_0xf8360b){_0xf8360b=![],_0x2bd122-=0x7n;let _0x432ee4=_0x551aa9>>_0x2bd122;_0x433954[_0x500c31++]=Number(_0x432ee4)|0x80,_0x551aa9-=_0x432ee4<<_0x2bd122;}return _0x500c31;case _0x364057(0x777):return _0x500c31;case'symbol':_0x433954[_0x500c31++]=0x2;return _0x5b28db(_0x4b06c5['description'],_0x433954,_0x500c31,_0xae0f2a);default:throw new Error('Can\x20not\x20serialize\x20key\x20of\x20type\x20'+typeof _0x4b06c5);}if(_0x310f38&&!_0xae0f2a)_0x257600[_0x364057(0x17a)](_0x500c31,0x0);return _0x500c31;}let _0x17057b;function _0x107e5b(_0x2d2d75,_0x5ab64a,_0xd1c87d,_0x112930){const _0x1fcf22=_0x578bd0;_0x17057b=_0x5ab64a;let _0x143ea3=_0x2d2d75[_0x17057b],_0x5cb7b1;if(_0x143ea3<0x18){if(_0x143ea3<0x8){_0x17057b++;if(_0x143ea3==0x6)_0x5cb7b1=![];else{if(_0x143ea3==0x7)_0x5cb7b1=!![];else{if(_0x143ea3==0x0)_0x5cb7b1=null;else{if(_0x143ea3==0x2)_0x5cb7b1=Symbol['for'](_0x56a34d(_0x2d2d75,_0xd1c87d));else return Uint8Array[_0x1fcf22(0x3c3)][_0x1fcf22(0x5d1)]['call'](_0x2d2d75,_0x5ab64a,_0xd1c87d);}}}}else{let _0x3e2f05;try{_0x3e2f05=_0x2d2d75['dataView']||(_0x2d2d75[_0x1fcf22(0x2dd)]=new DataView(_0x2d2d75[_0x1fcf22(0x672)],_0x2d2d75['byteOffset'],_0x2d2d75[_0x1fcf22(0x6ed)]+0x3>>0x2<<0x2));}catch(_0x487f45){_0x3e2f05=_0x2d2d75[_0x1fcf22(0x2dd)]||(_0x2d2d75[_0x1fcf22(0x2dd)]=new DataView(_0x2d2d75[_0x1fcf22(0x672)],_0x2d2d75[_0x1fcf22(0x46b)],_0x2d2d75[_0x1fcf22(0x672)]['byteLength']-_0x2d2d75[_0x1fcf22(0x46b)]));}let _0xc38015=_0x3e2f05[_0x1fcf22(0x7c7)](_0x17057b)<<0x4,_0x24dfdd=_0xd1c87d-_0x17057b,_0x691df;if(_0x24dfdd>0x4)_0x691df=_0x17057b+0x8<=_0x2d2d75[_0x1fcf22(0x2f6)]?_0x3e2f05[_0x1fcf22(0x7c7)](_0x17057b+0x4):_0x2d2d75[_0x17057b+0x4]<<0x18|_0x2d2d75[_0x17057b+0x5]<<0x10|_0x2d2d75[_0x17057b+0x6]<<0x8|_0x2d2d75[_0x17057b+0x7],_0xc38015|=_0x691df>>>0x1c,_0x24dfdd<=0x6&&(_0x691df&=-0x10000),_0x691df=_0x691df<<0x4,_0x24dfdd>0x8&&(_0x691df=_0x691df|_0x2d2d75[_0x17057b+0x8]>>0x4);else _0x691df=0x0;_0x143ea3<0x10&&(_0xc38015=_0xc38015^0x7fffffff,_0x691df=~_0x691df);_0x41c2c6[_0x1b633f]=_0xc38015,_0x41c2c6[_0x5a0f52]=_0x691df,_0x5cb7b1=_0x477efa[0x0],_0x17057b+=0x9;if(_0x24dfdd>0x9&&_0x2d2d75[_0x17057b]>0x0){_0x5cb7b1=BigInt(_0x5cb7b1);let _0x1e4eac=_0xc38015>>0x14&0x7ff,_0xdb371d=_0x2d2d75[_0x17057b-0x1]&0xf;_0x5cb7b1+=BigInt(_0xdb371d)<<BigInt(_0x1e4eac-0x437);while((_0xdb371d=_0x2d2d75[_0x17057b])>0x0&&_0x17057b++<_0xd1c87d){_0x5cb7b1+=BigInt(_0xdb371d&0x7f)<<BigInt((_0x5ab64a-_0x17057b)*0x7+_0x1e4eac-0x3f8);}}}}else{_0x143ea3==0x1b&&_0x17057b++;_0x5cb7b1=_0x56a34d(_0x2d2d75,_0xd1c87d);if(_0x17057b<_0xd1c87d)_0x17057b--;}while(_0x17057b<_0xd1c87d){if(_0x2d2d75[_0x17057b]===0x0)_0x17057b++;if(_0x112930)return _0x5d9038[_0x1fcf22(0x324)]=_0x17057b,_0x5cb7b1;let _0x4f0b56=_0x107e5b(_0x2d2d75,_0x17057b,_0xd1c87d,!![]);if(_0x5cb7b1 instanceof Array)_0x5cb7b1[_0x1fcf22(0x3c0)](_0x4f0b56);else _0x5cb7b1=[_0x5cb7b1,_0x4f0b56];}return _0x5cb7b1;}const _0x1a01b0=()=>_0x310f38=!![],_0x5d9038={'writeKey':_0x5b28db,'readKey':_0x107e5b,'enableNullTermination':_0x1a01b0};let _0x2100e6=[],_0x89943f=0x0;const _0x39e3b1=typeof Buffer!==_0x578bd0(0x777),_0x352042=_0x39e3b1?Buffer[_0x578bd0(0x394)]:Uint8Array,_0x173121=_0x308345=>{const _0x330811=_0x578bd0;let _0x265578;_0x89943f+0x64>_0x2100e6['length']&&(_0x2100e6=new _0x352042(0x2000),_0x89943f=0x0,_0x265578=!![]);try{let _0xdaafce=_0x2100e6[_0x330811(0x5d1)](_0x89943f,_0x89943f=_0x5b28db(_0x308345,_0x2100e6,_0x89943f));if(_0x89943f>_0x2100e6[_0x330811(0x2f6)]){if(_0x265578)throw new Error(_0x330811(0x728));return _0x173121(_0x308345);}return _0xdaafce;}catch(_0xd38b94){if(_0x265578)throw _0xd38b94;return _0x89943f=_0x2100e6[_0x330811(0x2f6)],_0x173121(_0x308345);}},_0x79ec44=_0x1d094e=>{const _0x29ed40=_0x578bd0;return _0x107e5b(_0x1d094e,0x0,_0x1d094e[_0x29ed40(0x2f6)]);},_0x40e0ce=String[_0x578bd0(0x1e7)];function _0x9b3bba(){const _0x4c910b=_0x578bd0;let _0x15635a=_0x4c910b(0x3d7),_0x185319=[];for(let _0xd79404=0x0;_0xd79404<0x30;_0xd79404++){let _0x167b5a=_0x40e0ce((_0xd79404&0xf)+0x61)+_0x40e0ce((_0xd79404>>0x4)+0x61);_0x15635a+=_0x4c910b(0x841)+_0x167b5a+'\x20=\x20source[position++]\x0a\x09\x09if\x20('+_0x167b5a+_0x4c910b(0x1d4)+_0x167b5a+_0x4c910b(0x424)+_0x167b5a+'\x20=\x20finishUtf8('+_0x167b5a+_0x4c910b(0x605)+_0x167b5a+_0x4c910b(0x774)+_0x167b5a+_0x4c910b(0x7a8)+_0x185319+')\x0a\x09\x09}\x0a\x09\x09',_0x185319['push'](_0x167b5a);}return _0x15635a+=_0x4c910b(0x786)+_0x185319+_0x4c910b(0x56f),_0x15635a;}const _0x48c149=typeof process!==_0x578bd0(0x777)&&process[_0x578bd0(0x706)]?function(_0x57d503){let {setPosition:_0x4f9526,getPosition:_0x4640a9,readString:_0x5afa0f}=_0x57d503;return _0x8b22b1=>{_0x4f9526(_0x17057b);let _0xd4ca37=_0x5afa0f(_0x8b22b1);return _0x17057b=_0x4640a9(),_0xd4ca37;};}(new Function(_0x578bd0(0x1e7),'let\x20position;\x20let\x20readString\x20=\x20'+_0x9b3bba()+_0x578bd0(0x242)+'setPosition(p)\x20{\x20position\x20=\x20p\x20},'+'getPosition()\x20{\x20return\x20position\x20},'+_0x578bd0(0x7ca))(_0x40e0ce)):eval(_0x9b3bba());function _0x56a34d(_0x10808e,_0x16d77f){if(_0x10808e[_0x16d77f]>0x0){let _0x38a138=_0x10808e[_0x16d77f];try{return _0x10808e[_0x16d77f]=0x0,_0x48c149(_0x10808e);}finally{_0x10808e[_0x16d77f]=_0x38a138;}}else return _0x48c149(_0x10808e);}function _0x1b2e29(_0x9d61c5,_0x12c53b){const _0xfd8a48=_0x578bd0;if(typeof _0x9d61c5==_0xfd8a48(0x86d)){if(!_0x9d61c5)return _0x12c53b==null?0x0:-0x1;if(_0x9d61c5[_0xfd8a48(0x4f1)]){if(_0x12c53b==null)return 0x1;else return _0x12c53b['compare']?_0x9d61c5['compare'](_0x12c53b):-0x1;}let _0x5049f7;if(_0x12c53b instanceof Array){let _0x358edd=0x0;while((_0x5049f7=_0x1b2e29(_0x9d61c5[_0x358edd],_0x12c53b[_0x358edd]))==0x0&&_0x358edd<=_0x9d61c5['length']){_0x358edd++;}return _0x5049f7;}_0x5049f7=_0x1b2e29(_0x9d61c5[0x0],_0x12c53b);if(_0x5049f7==0x0&&_0x9d61c5[_0xfd8a48(0x2f6)]>0x1)return 0x1;return _0x5049f7;}else{if(typeof _0x9d61c5==typeof _0x12c53b)return typeof _0x9d61c5===_0xfd8a48(0x552)&&(_0x9d61c5=Symbol[_0xfd8a48(0x691)](_0x9d61c5),_0x12c53b=Symbol[_0xfd8a48(0x691)](_0x12c53b)),_0x9d61c5<_0x12c53b?-0x1:_0x9d61c5===_0x12c53b?0x0:0x1;else{if(typeof _0x12c53b=='object'){if(_0x12c53b instanceof Array)return-_0x1b2e29(_0x12c53b,_0x9d61c5);return 0x1;}else return _0x35f67c[typeof _0x9d61c5]<_0x35f67c[typeof _0x12c53b]?-0x1:0x1;}}}const _0x35f67c={'symbol':0x0,'undefined':0x1,'boolean':0x2,'number':0x3,'string':0x4},_0x30303f=null,_0x1cb3b5=new Uint8Array([0xff]);return dist[_0x578bd0(0x27f)]=_0x1cb3b5,dist[_0x578bd0(0x253)]=_0x30303f,dist[_0x578bd0(0x7b6)]=_0x1b2e29,dist[_0x578bd0(0x1a1)]=_0x1a01b0,dist[_0x578bd0(0x2bd)]=_0x5d9038,dist['fromBufferKey']=_0x79ec44,dist[_0x578bd0(0x723)]=_0x107e5b,dist[_0x578bd0(0x7c8)]=_0x173121,dist[_0x578bd0(0x866)]=_0x5b28db,dist;}var keyenc,hasRequiredKeyenc;function requireKeyenc(){const _0xcf0a6b=_0x1c5fdf;if(hasRequiredKeyenc)return keyenc;hasRequiredKeyenc=0x1;const {writeKey:_0x3e0995}=requireDist(),_0x343611=0x7ba,_0x1973d9=0x1000;function _0x432388(_0x2172b4,_0x2d943f){const _0x2efa27=_0x20ac;switch(typeof _0x2172b4){case _0x2efa27(0x460):return _0x2172b4[_0x2efa27(0x2f6)]<=_0x343611&&_0x2172b4['isWellFormed']();case _0x2efa27(0x46d):case _0x2efa27(0x6d6):return!![];case'object':if(_0x2172b4===null)return!![];if(Array[_0x2efa27(0x55b)](_0x2172b4)){if(_0x2d943f>0x8||_0x2172b4[_0x2efa27(0x2f6)]>_0x343611)return![];for(let _0x3ac7b6=0x0;_0x3ac7b6<_0x2172b4['length'];_0x3ac7b6++)if(!_0x432388(_0x2172b4[_0x3ac7b6],_0x2d943f+0x1))return![];return!![];}return Buffer[_0x2efa27(0x531)](_0x2172b4)&&_0x2172b4['length']<=_0x343611;default:return![];}}function _0x401c4b(_0x49e113,_0x17ce86){const _0x12ad69=_0x20ac,_0x6f5242=typeof _0x49e113;if(_0x6f5242===_0x12ad69(0x460)){if(_0x49e113['length']>=0x40||!_0x49e113['isWellFormed']()){if(!_0x432388(_0x49e113,0x0))return-0x1;}}else{if(_0x6f5242!=='number'){if(Array[_0x12ad69(0x55b)](_0x49e113)?_0x49e113[_0x12ad69(0x2f6)]===0x0||!_0x432388(_0x49e113,0x0):!_0x432388(_0x49e113,0x0))return-0x1;}}let _0x139b75;try{_0x139b75=_0x3e0995(_0x49e113,_0x17ce86,0x0);}catch{return-0x1;}return _0x139b75>0x0&&_0x139b75<=_0x343611?_0x139b75:-0x1;}return keyenc={'encodeKey':_0x401c4b,'KEY_BUF_SIZE':_0x1973d9,'NO_FAST':Symbol(_0xcf0a6b(0x5d2))},keyenc;}var okdbHlc,hasRequiredOkdbHlc;function requireOkdbHlc(){const _0x5086ed=_0x1c5fdf;if(hasRequiredOkdbHlc)return okdbHlc;hasRequiredOkdbHlc=0x1;const _0x3a68d9=0x400,_0x31295d=_0x3a68d9-0x1,_0x5a8c90=0xea60;function _0x13d13d(_0x2d34b3,_0x2b2802){const _0x1f2115=_0x20ac;return _0x2d34b3*_0x3a68d9+Math[_0x1f2115(0x6c5)](0x0,Math['min'](_0x2b2802,_0x31295d));}function _0x542b2f(_0xef5c63){const _0x54ad02=Math['max'](0x0,Number(_0xef5c63)||0x0),_0x2631fc=_0x54ad02%_0x3a68d9,_0x4a1159=(_0x54ad02-_0x2631fc)/_0x3a68d9;return{'pt':_0x4a1159,'l':_0x2631fc};}function _0x417008(_0x82195a,_0x37a445=Date['now']()){const _0x205815=_0x20ac,{pt:_0x4253c6,l:_0x2b3bbd}=_0x542b2f(_0x82195a),_0xefe34e=Math['max'](_0x4253c6,_0x37a445),_0x174ed9=_0xefe34e===_0x4253c6?Math[_0x205815(0x3d2)](_0x2b3bbd+0x1,_0x31295d):0x0;return _0x13d13d(_0xefe34e,_0x174ed9);}function _0x35666e(_0x101477,_0x28add2,_0x3a258a=Date[_0x5086ed(0x785)]()){const _0xedc812=_0x5086ed,{pt:_0x494678,l:_0x37062e}=_0x542b2f(_0x101477),{pt:_0x22613c,l:_0x3f8b7d}=_0x542b2f(_0x28add2),_0x4d7751=Math[_0xedc812(0x6c5)](_0x494678,_0x22613c,_0x3a258a);let _0x3dd70b;if(_0x4d7751===_0x494678&&_0x4d7751===_0x22613c)_0x3dd70b=Math['min'](Math[_0xedc812(0x6c5)](_0x37062e,_0x3f8b7d)+0x1,_0x31295d);else{if(_0x4d7751===_0x494678)_0x3dd70b=Math['min'](_0x37062e+0x1,_0x31295d);else _0x4d7751===_0x22613c?_0x3dd70b=Math[_0xedc812(0x3d2)](_0x3f8b7d+0x1,_0x31295d):_0x3dd70b=0x0;}return _0x13d13d(_0x4d7751,_0x3dd70b);}function _0x1254d2(_0x226c62,_0x5a3103){const _0x597380=Number(_0x226c62)||0x0,_0xe76e14=Number(_0x5a3103)||0x0;if(_0x597380<_0xe76e14)return-0x1;if(_0x597380>_0xe76e14)return 0x1;return 0x0;}function _0x5f4d85(_0x3fc6f2){return _0x542b2f(_0x3fc6f2)['pt'];}return okdbHlc={'send':_0x417008,'recv':_0x35666e,'compare':_0x1254d2,'toMs':_0x5f4d85,'encode':_0x13d13d,'decode':_0x542b2f,'SCALE':_0x3a68d9,'L_MAX':_0x31295d,'DRIFT_MAX':_0x5a8c90},okdbHlc;}var env,hasRequiredEnv;function requireEnv(){const _0x43ff90=_0x1c5fdf;if(hasRequiredEnv)return env;hasRequiredEnv=0x1;const {fromArray:_0xb66a58,chunkedRange:_0x2d9cfc,pinnedChunks:_0x1b1c3b,claimPrefetch:_0xf4f1cc}=requireIterable(),{reclass:_0x548003,NotImplementedNative:_0x414f01,OKDBError:_0x103cf7,optionsArg:_0x3ef8ed}=requireErrors(),{OKDBViews:_0x3e31a3}=requireViews(),{OKDBQueue:_0x5a87b7}=requireQueue(),{OKDBTimeMachine:_0x5ec99e}=requireTimemachine(),_0x5ae2d3=_0x26bdd1=>{const _0x1a4864=_0x20ac;try{return!_0x26bdd1[_0x1a4864(0x5fd)]||_0x26bdd1[_0x1a4864(0x5fd)][_0x1a4864(0x246)](_0x1a4864(0x579));}catch{return!![];}},{OKDBFiles:_0x483c25}=requireFiles(),{OKDBEngines:_0x1fd849,OKDBPipelines:_0x22940e}=requireEngines(),{OKDBFunctions:_0x2513b8}=requireFunctions(),_0xb54acb=requireProcessor(),{RawDb:_0x2aa967}=requireRawdb(),_0x48a9fe=requireBridge();let _0x32cc14=null;const _0x53555a=()=>_0x32cc14||=requireOkdbTransaction(),_0x441cd1=(..._0x5ef429)=>requireOkdbGuardedRange()[_0x43ff90(0x36a)](..._0x5ef429),_0x25f607=Buffer[_0x43ff90(0x6a7)]([0xff]),_0x362b4b=process.env.OKDB_NATIVE_RAW_READS!=='0',_0x2782b1=_0x362b4b&&process.env.OKDB_NATIVE_FAST_GET!=='0',{NO_FAST:_0x30287e}=requireKeyenc(),_0x5e3901=new Set(_0x362b4b?['getRange',_0x43ff90(0x807),_0x43ff90(0x71e),_0x43ff90(0x356),_0x43ff90(0x608)]:[]),_0x40e086=new Set(['get',_0x43ff90(0x7f9),_0x43ff90(0x7ae),_0x43ff90(0x655),_0x43ff90(0x608),_0x43ff90(0x47c),_0x43ff90(0x34c),_0x43ff90(0x70c),_0x43ff90(0x43e),_0x43ff90(0x807),'countByIndex',_0x43ff90(0x71e),'assertQueryOptions',_0x43ff90(0x789),_0x43ff90(0x7da),'getChanges',_0x43ff90(0x768),_0x43ff90(0x785),_0x43ff90(0x637),_0x43ff90(0x17d),_0x43ff90(0x88e),'getIndexStatus',_0x43ff90(0x571),_0x43ff90(0x59e),_0x43ff90(0x679),_0x43ff90(0x431),_0x43ff90(0x4f9),_0x43ff90(0x32b),_0x43ff90(0x620),_0x43ff90(0x7f4),_0x43ff90(0x439),_0x43ff90(0x18b),_0x43ff90(0x6e0),_0x43ff90(0x7ee),_0x43ff90(0x759),_0x43ff90(0x54b),'getDefaultTTL',_0x43ff90(0x80a),_0x43ff90(0x1aa),'id','lastTxnId',_0x43ff90(0x465),_0x43ff90(0x1f6),_0x43ff90(0x1b3),_0x43ff90(0x4c9)]),_0xdf5a46=new Set(['start',_0x43ff90(0x3ae),_0x43ff90(0x2be),_0x43ff90(0x5ba),_0x43ff90(0x7cb),_0x43ff90(0x3a3),_0x43ff90(0x5ec),_0x43ff90(0x70f),_0x43ff90(0x534),_0x43ff90(0x870),_0x43ff90(0x4b7),_0x43ff90(0x7e4),_0x43ff90(0x5d7),'prefix']);function _0x2bd2c9(_0x469fe4,_0x3a71e2,_0x5a979b){const _0x18e356=new Map();return(_0x2a5fad,_0x5dec1c)=>{const _0x256e2b=_0x20ac,_0x8ecddc=JSON[_0x256e2b(0x34d)](_0x5dec1c),_0x2698cb=_0x18e356['get'](_0x8ecddc);if(_0x2698cb){if(_0x2698cb['state']===_0x256e2b(0x73b))throw _0x2565bb();_0x18e356[_0x256e2b(0x6f8)](_0x8ecddc);if(_0x2698cb[_0x256e2b(0x827)]===_0x256e2b(0x582))throw _0x2698cb['value'];return _0x2698cb['value'];}const _0x4d4bde=_0x2a5fad(..._0x5dec1c);if(!_0x4d4bde||typeof _0x4d4bde[_0x256e2b(0x8a9)]!==_0x256e2b(0x5c4))return _0x4d4bde;const _0x45a4f2={'state':_0x256e2b(0x73b),'value':undefined},_0x5a0d07=(_0x21c5df,_0x326948)=>{const _0x4327c4=_0x256e2b;_0x45a4f2['state']=_0x21c5df,_0x45a4f2['value']=_0x326948;if(_0x18e356[_0x4327c4(0x4ff)](_0x8ecddc)!==_0x45a4f2)return;setTimeout(()=>_0x18e356[_0x4327c4(0x4ff)](_0x8ecddc)===_0x45a4f2&&_0x18e356['delete'](_0x8ecddc),0x7530)[_0x4327c4(0x54c)]();try{_0x469fe4['okdb'][_0x4327c4(0x7b0)](_0x4327c4(0x230),null,_0x4327c4(0x380),[_0x4327c4(0x1b8),{'env':_0x469fe4['name'],'type':_0x3a71e2,'field':_0x5a979b}],!![]);}catch{}};_0x4d4bde[_0x256e2b(0x8a9)](_0xe7f954=>_0x5a0d07('ok',_0xe7f954),_0x4300bf=>_0x5a0d07(_0x256e2b(0x582),_0x4300bf));for(let _0x539bf4=0x0;_0x539bf4<0x64&&_0x45a4f2[_0x256e2b(0x827)]===_0x256e2b(0x73b);_0x539bf4++)process[_0x256e2b(0x71f)]();if(_0x45a4f2[_0x256e2b(0x827)]==='ok')return _0x45a4f2[_0x256e2b(0x658)];if(_0x45a4f2[_0x256e2b(0x827)]===_0x256e2b(0x582))throw _0x45a4f2[_0x256e2b(0x658)];_0x18e356['set'](_0x8ecddc,_0x45a4f2);throw _0x2565bb();};}function _0x2565bb(){const _0x354dd0=_0x43ff90;return Object[_0x354dd0(0x60e)](new Error(_0x354dd0(0x5a4)),{'code':_0x354dd0(0x699)});}class _0x1de694{constructor(_0x439d43,_0x1797c7){const _0xbb8bb8=_0x43ff90;this[_0xbb8bb8(0x263)]=_0x439d43,this[_0xbb8bb8(0x80a)]=_0x1797c7,this[_0xbb8bb8(0x230)]=_0x439d43[_0xbb8bb8(0x230)],this[_0xbb8bb8(0x3de)]=_0x439d43[_0xbb8bb8(0x3de)],this['_isOpen']=!![],this['_txnBuf']=null,this[_0xbb8bb8(0x448)]=new _0x3e31a3(this),this[_0xbb8bb8(0x6e4)]=new _0xb54acb(this);if(!_0x1797c7[_0xbb8bb8(0x245)]('~')||_0x1797c7[_0xbb8bb8(0x75e)](_0xbb8bb8(0x2ab)))this['queue']=new _0x5a87b7(this);if(!_0x1797c7[_0xbb8bb8(0x245)]('~'))this[_0xbb8bb8(0x3a1)]=new _0x483c25(this);this[_0xbb8bb8(0x2fd)]=new _0x2513b8(_0x439d43,_0x1797c7),this[_0xbb8bb8(0x41f)]=new _0x1fd849(_0x439d43,_0x1797c7,_0x439d43[_0xbb8bb8(0x41f)]),this[_0xbb8bb8(0x5fc)]=new _0x22940e(_0x439d43,_0x1797c7);if(!_0x1797c7[_0xbb8bb8(0x245)]('~')&&_0x439d43[_0xbb8bb8(0x667)][_0xbb8bb8(0x579)]&&_0x5ae2d3(_0x439d43))this[_0xbb8bb8(0x579)]=new _0x5ec99e(this);_0x48a9fe['registerEnv'](this[_0xbb8bb8(0x1aa)],this);const _0x2974c3=this;this[_0xbb8bb8(0x337)]={async 'transaction'(_0x14ce5d){const _0x4122d4=_0xbb8bb8,_0x372b35=[];_0x2974c3[_0x4122d4(0x305)]=_0x372b35;try{_0x14ce5d();}finally{_0x2974c3[_0x4122d4(0x305)]=null;}return _0x2974c3[_0x4122d4(0x263)][_0x4122d4(0x287)][_0x4122d4(0x65c)](_0x4122d4(0x81f),_0x2974c3['name'],'commit',[_0x372b35]);},'drain'(){const _0x20a92e=_0xbb8bb8;return _0x2974c3[_0x20a92e(0x263)][_0x20a92e(0x287)][_0x20a92e(0x61a)]();},'flushLmdb'(){const _0x417187=_0xbb8bb8;return _0x2974c3[_0x417187(0x263)]['_wb'][_0x417187(0x61a)]();},'markClosed'(){}};const _0x277bb5=new _0x2aa967(this,'');_0x277bb5['getStats']=()=>({'lastTxnId':this['_n']('lastTxnId',[])}),Object[_0xbb8bb8(0x834)](_0x277bb5,_0xbb8bb8(0x252),{'get':()=>this[_0xbb8bb8(0x263)]['_wb'][_0xbb8bb8(0x61a)](),'configurable':!![]}),Object[_0xbb8bb8(0x834)](_0x277bb5,_0xbb8bb8(0x2f4),{'get':()=>this[_0xbb8bb8(0x263)][_0xbb8bb8(0x287)]['drain'](),'configurable':!![]});const _0x93800b=_0x277bb5[_0xbb8bb8(0x4ff)][_0xbb8bb8(0x818)](_0x277bb5);_0x277bb5[_0xbb8bb8(0x4ff)]=_0x50a58f=>_0x50a58f===_0xbb8bb8(0x79d)?this['_n'](_0xbb8bb8(0x7da),[null]):_0x93800b(_0x50a58f),this['db']=_0x277bb5;}async[_0x43ff90(0x508)](){const _0x32b564=_0x43ff90;this[_0x32b564(0x632)]=!![];}get[_0x43ff90(0x7ea)](){const _0x5cf15f=_0x43ff90;return new Map(this[_0x5cf15f(0x263)]['_call']('db',null,_0x5cf15f(0x5b9),[this[_0x5cf15f(0x80a)]],![]));}get[_0x43ff90(0x3c8)](){const _0x2b7681=_0x43ff90;return this[_0x2b7681(0x888)]||(this[_0x2b7681(0x888)]=new _0x2aa967(this,_0x2b7681(0x63d)));}[_0x43ff90(0x2d4)](_0x470cc2){const _0x3a782e=_0x43ff90,_0x314354=this[_0x3a782e(0x3c8)][_0x3a782e(0x4ff)](_0x470cc2);if(_0x314354===undefined||String(_0x470cc2)[_0x3a782e(0x245)](_0x3a782e(0x684))||String(_0x470cc2)['startsWith'](_0x3a782e(0x563))){const {OKDBError:_0x2934fc}=requireErrors();throw new _0x2934fc(_0x3a782e(0x20a)+_0x470cc2+'\x22\x20is\x20not\x20registered',_0x3a782e(0x1c6),{'type':_0x470cc2});}const _0x246a6d=this,_0x5ba460=new _0x2aa967(_0x246a6d,_0x3a782e(0x76a)+_0x470cc2+_0x3a782e(0x53f)),_0x20dbee=new Map();for(const _0x37e2b6 of _0x5ba460[_0x3a782e(0x608)]()){const _0x121a39=_0x5ba460['get'](_0x37e2b6)||{},_0x246385={'parts':_0x37e2b6[_0x3a782e(0x2ee)]('~'),'db':new _0x2aa967(_0x246a6d,'type:'+_0x470cc2+_0x3a782e(0x379)+_0x37e2b6,{'dupSort':!![]})};if(_0x121a39[_0x3a782e(0x389)])_0x246385[_0x3a782e(0x389)]=_0x121a39['geoConfig'];if(_0x121a39[_0x3a782e(0x516)])_0x246385['unique']=!![];if(_0x121a39[_0x3a782e(0x66c)])_0x246385[_0x3a782e(0x66c)]=_0x121a39[_0x3a782e(0x66c)];_0x246385[_0x3a782e(0x60f)]=new Set((_0x121a39[_0x3a782e(0x60f)]??[])[_0x3a782e(0x4ba)](_0x4f05fc=>_0x4f05fc[_0x3a782e(0x5f2)]+':'+_0x4f05fc[_0x3a782e(0x80a)])),_0x20dbee[_0x3a782e(0x398)](_0x37e2b6,_0x246385);}return{'root':new _0x2aa967(_0x246a6d,_0x3a782e(0x76a)+_0x470cc2),'data':new _0x2aa967(_0x246a6d,_0x3a782e(0x76a)+_0x470cc2+_0x3a782e(0x286),{'useVersions':!![]}),'indexes':_0x5ba460,'clockToChange':new _0x2aa967(_0x246a6d,_0x3a782e(0x76a)+_0x470cc2+_0x3a782e(0x881)),'keyToChange':new _0x2aa967(_0x246a6d,'type:'+_0x470cc2+_0x3a782e(0x1f3)),'fieldSchema':new Map(Object[_0x3a782e(0x207)](_0x314354[_0x3a782e(0x861)]||{})[_0x3a782e(0x4ba)](([_0x5801c2,_0x209358])=>[_0x5801c2,new Set(Array[_0x3a782e(0x55b)](_0x209358)?_0x209358:[_0x209358])])),'indexToDb':_0x20dbee,'ftsToDb':null,'schema':_0x314354[_0x3a782e(0x545)]||null,'defaultTTL':_0x314354[_0x3a782e(0x82d)]||null};}get[_0x43ff90(0x57c)](){const _0x52fad5=_0x43ff90,_0x36c77e=this,_0x56bdd5=()=>_0x36c77e[_0x52fad5(0x17d)]();return{'get':_0x17627a=>{const _0x183c1a=_0x52fad5;try{return _0x36c77e[_0x183c1a(0x2d4)](_0x17627a);}catch{return undefined;}},'has':_0x5c63a9=>_0x56bdd5()[_0x52fad5(0x75e)](_0x5c63a9),'keys':()=>_0x56bdd5()[Symbol[_0x52fad5(0x84c)]](),get 'size'(){const _0x2852b7=_0x52fad5;return _0x56bdd5()[_0x2852b7(0x2f6)];}};}[_0x43ff90(0x796)](){const _0x17873f=_0x43ff90;return this[_0x17873f(0x17d)]();}get[_0x43ff90(0x86f)](){const _0x11dd82=_0x43ff90;return this[_0x11dd82(0x7bb)]||(this[_0x11dd82(0x7bb)]=new _0x2aa967(this,'changes'));}get['clockToChangeDb'](){const _0xa11d35=_0x43ff90;return this[_0xa11d35(0x85d)]||(this[_0xa11d35(0x85d)]=new _0x2aa967(this,'clocks'));}['_advanceHlcOnRecv'](_0x4f75e7){const _0x4002b0=_0x43ff90;return this['_n'](_0x4002b0(0x797),[_0x4f75e7]);}get['_noChangelog'](){const _0x5981ab=_0x43ff90;return!this['_n'](_0x5981ab(0x5fb),[],![]);}get[_0x43ff90(0x591)](){const _0x4a2f7e=_0x43ff90;return this[_0x4a2f7e(0x3b0)]!==undefined?this[_0x4a2f7e(0x3b0)]:this['_n'](_0x4a2f7e(0x5fb),[],![]);}set[_0x43ff90(0x591)](_0x5d3776){const _0x4f4683=_0x43ff90;this[_0x4f4683(0x3b0)]=_0x5d3776;}get[_0x43ff90(0x612)](){const _0xecc452=_0x43ff90;return this['_compactLock']||(this['_compactLock']=new(requireLock())[(_0xecc452(0x390))](this[_0xecc452(0x263)],_0xecc452(0x199),'compact',{'ttlMs':0xea60}));}get[_0x43ff90(0x1aa)](){const _0x355d8f=_0x43ff90;return this[_0x355d8f(0x438)]??(this[_0x355d8f(0x438)]=this['_n'](_0x355d8f(0x1aa),[]));}get['id'](){return this['_n']('id',[]);}get[_0x43ff90(0x302)](){const _0x237c53=_0x43ff90;return this['okdb'][_0x237c53(0x302)];}['_n'](_0x258750,_0x37f071){const _0x36c3d4=_0x43ff90;return this[_0x36c3d4(0x263)][_0x36c3d4(0x7b0)]('env',this[_0x36c3d4(0x80a)],_0x258750,_0x37f071,!_0x40e086[_0x36c3d4(0x868)](_0x258750));}[_0x43ff90(0x309)](_0x2794e4){const _0x1c4a09=_0x43ff90;return this[_0x1c4a09(0x263)][_0x1c4a09(0x1d6)](_0x2794e4);}['_np'](_0x55aa36,_0x3636bb){const _0x43c8c7=_0x43ff90;if(_0x5e3901[_0x43c8c7(0x868)](_0x55aa36===_0x43c8c7(0x59e)?_0x3636bb[0x1]:_0x55aa36))return this[_0x43c8c7(0x263)]['_callRows'](this[_0x43c8c7(0x80a)],_0x55aa36,_0x3636bb);return this['okdb'][_0x43c8c7(0x52c)](_0x43c8c7(0x81f),this[_0x43c8c7(0x80a)],_0x55aa36,_0x3636bb);}[_0x43ff90(0x4b7)](_0x21790e={'useReadTransaction':![]}){return new(_0x53555a())(this,_0x21790e);}async['txn'](_0x485247,_0x1965b7){return _0x53555a()['run'](this,_0x485247,_0x1965b7);}[_0x43ff90(0x18f)](_0x3ed2c5,_0x2088aa){const _0x3c45b4=_0x43ff90;if(this[_0x3c45b4(0x305)])this[_0x3c45b4(0x305)][_0x3c45b4(0x3c0)]({'action':_0x3ed2c5,'args':_0x2088aa});else this['_n'](_0x3ed2c5,_0x2088aa);}['_put'](_0x27d7a8,_0x277423,_0x2e7d6b,_0x3c5196,_0x1c8298){const _0x1f2b67=_0x43ff90;this['_low'](_0x1f2b67(0x77c),[_0x277423,_0x2e7d6b,_0x3c5196,_0x1c8298]);}[_0x43ff90(0x4d8)](_0x82d9ba,_0x344e6c,_0x281ebb,_0x1f6753,_0x11ce7e){const _0x4f6e67=_0x43ff90;this[_0x4f6e67(0x18f)]('update',[_0x344e6c,_0x281ebb,_0x1f6753,_0x11ce7e]);}[_0x43ff90(0x422)](_0xa0449a,_0x36729a,_0x3eb59e,_0x529825,_0x518583){const _0x48092f=_0x43ff90;this['_low'](_0x48092f(0x296),[_0x36729a,_0x3eb59e,_0x529825,_0x518583]);}['_create'](_0x11b73a,_0x57f9b4,_0x5ab042,_0x37f39f,_0x26e4fe){const _0x1711f2=_0x43ff90;this[_0x1711f2(0x18f)](_0x1711f2(0x1d9),[_0x57f9b4,_0x5ab042,_0x37f39f,_0x26e4fe]);}['_remove'](_0x335983,_0x297305,_0x20667e,_0x4a4bab){this['_low']('remove',[_0x297305,_0x20667e,_0x4a4bab]);}['_setTTL'](_0x788aa7,_0x52af1e,_0x4d6d98,_0x4da485){const _0x3fc2fe=_0x43ff90;this[_0x3fc2fe(0x18f)](_0x3fc2fe(0x83e),[_0x52af1e,_0x4d6d98,_0x4da485]);}[_0x43ff90(0x61b)](_0x422e30,_0x4cf26d,_0x55ad02){const _0x8eaac=_0x43ff90;this['_low'](_0x8eaac(0x188),[_0x4cf26d,_0x55ad02]);}['_w'](_0x4e27f8,_0x23cbd7){const _0xcae6d=_0x43ff90;return this['okdb'][_0xcae6d(0x287)][_0xcae6d(0x65c)](_0xcae6d(0x81f),this['name'],_0x4e27f8,_0x23cbd7);}[_0x43ff90(0x77c)](_0x5f9c75,_0x244af0,_0x23cf9a,_0x24ced6={}){const _0x4cef07=_0x43ff90;return this['_w'](_0x4cef07(0x77c),[_0x5f9c75,_0x244af0,_0x23cf9a,_0x24ced6]);}['update'](_0x3b6007,_0x2b378f,_0x50ce24,_0x4a4122={}){return this['_w']('update',[_0x3b6007,_0x2b378f,_0x50ce24,_0x4a4122]);}['patch'](_0x4bf005,_0x1677a4,_0x3569d3,_0x35dbab={}){const _0x4c3fb5=_0x43ff90;return this['_w'](_0x4c3fb5(0x296),[_0x4bf005,_0x1677a4,_0x3569d3,_0x35dbab]);}[_0x43ff90(0x1d9)](_0x278a29,_0x391885,_0x31215c,_0x1b181e={}){const _0x1f9166=_0x43ff90;return this['_w'](_0x1f9166(0x1d9),[_0x278a29,_0x391885,_0x31215c,_0x1b181e]);}['remove'](_0x5dde1c,_0xef0f2b,_0xf41e5c={}){const _0x33c5bc=_0x43ff90;return this['_w'](_0x33c5bc(0x7e6),[_0x5dde1c,_0xef0f2b,_0xf41e5c]);}[_0x43ff90(0x4ff)](_0x4f009c,_0x5c7530,_0x38778b){const _0x1f391a=_0x43ff90;if(_0x2782b1&&typeof _0x4f009c==='string'){const _0x154020=this[_0x1f391a(0x263)][_0x1f391a(0x61c)](this[_0x1f391a(0x80a)],_0x4f009c,_0x5c7530);if(_0x154020!==_0x30287e)return _0x154020===null?this['_n'](_0x1f391a(0x4ff),[_0x4f009c,_0x5c7530]):_0x154020;}if(_0x362b4b&&(typeof _0x5c7530==='string'||typeof _0x5c7530==='number')){const _0x19c8d3=this[_0x1f391a(0x263)]['_getRaw'](this[_0x1f391a(0x80a)],_0x4f009c,_0x5c7530);if(_0x19c8d3!==null)return _0x19c8d3;}return this['_n'](_0x1f391a(0x4ff),[_0x4f009c,typeof _0x5c7530===_0x1f391a(0x552)?null:_0x5c7530]);}[_0x43ff90(0x7ae)](_0xd2ce00,_0x135997,_0x304c02){const _0x517ab7=_0x43ff90,_0x23d935=[_0xd2ce00,Array[_0x517ab7(0x55b)](_0x135997)&&_0x135997['some'](_0x4ddc17=>typeof _0x4ddc17===_0x517ab7(0x552))?_0x135997[_0x517ab7(0x4ba)](_0x450ae6=>typeof _0x450ae6==='symbol'?null:_0x450ae6):_0x135997];return _0x362b4b?this['okdb']['_callRows'](this[_0x517ab7(0x80a)],'getMany',_0x23d935):this['_n']('getMany',_0x23d935);}['getEntry'](_0x4a8ce3,_0x932944,_0x223012){const _0x5ba102=_0x43ff90;return this['_n']('getEntry',[_0x4a8ce3,typeof _0x932944===_0x5ba102(0x552)?null:_0x932944]);}['getCount'](_0x19d8f5,_0x5d7b45){const _0x2bf86a=_0x43ff90;return this['_assertRangeOptions'](_0x2bf86a(0x34c),_0x5d7b45),this['_n'](_0x2bf86a(0x34c),[_0x19d8f5,_0x1f0333(_0x5d7b45)]);}[_0x43ff90(0x488)](_0x37600f,_0x7b753c,_0x2b8e46=[]){const _0x46ce9f=_0x43ff90;if(!_0x7b753c||typeof _0x7b753c!=='object')return;for(const _0x33fd77 of Object[_0x46ce9f(0x542)](_0x7b753c)){if(!_0xdf5a46[_0x46ce9f(0x868)](_0x33fd77)&&!_0x2b8e46[_0x46ce9f(0x75e)](_0x33fd77))throw new _0x103cf7(_0x37600f+_0x46ce9f(0x386)+_0x33fd77+'\x27','UNKNOWN_RANGE_OPTION',{'option':_0x33fd77});}}['_range'](_0x3432a5,_0x2a7fef,_0x11bb8e,_0x191b49,_0x412a8c,_0x4367e7){const _0x4929d2=_0x43ff90;this[_0x4929d2(0x488)](_0x3432a5,_0x191b49);const _0x5cf465=_0x191b49?.[_0x4929d2(0x870)],_0x43fa4d=_0x1f0333(_0x191b49);if(_0x5cf465===!![]||_0x5cf465===_0x4929d2(0x229)){const _0x3ccd23=this[_0x4929d2(0x626)](_0x3432a5,_0x2a7fef,_0x59441c=>[_0x11bb8e,{..._0x43fa4d,..._0x59441c}],_0x191b49);return _0x4367e7?_0x3ccd23[_0x4929d2(0x4ba)](_0x4367e7):_0x3ccd23;}const _0x448373=_0x2d9cfc(_0x11c5b5=>this['_np'](_0x2a7fef,[_0x11bb8e,_0x11c5b5]),_0x43fa4d,_0x412a8c,{'rows':_0x2a7fef===_0x4929d2(0x655)});return _0x4367e7?_0x448373['map'](_0x4367e7):_0x448373;}[_0x43ff90(0x626)](_0x415395,_0x4b9d3a,_0x596d17,_0xdd26fa,_0x4679fb,_0x5cdd38=![]){const _0x45a8e5=_0x43ff90,{source:_0x153609,prefetch:_0x1953a2}=_0x1b1c3b((_0x28c83f,_0x390b9b)=>_0x28c83f===_0x45a8e5(0x679)?this['_n'](_0x28c83f,_0x390b9b):this['_np'](_0x28c83f,_0x390b9b),_0x4b9d3a,_0x596d17,_0xdd26fa||{},_0x4679fb),_0x13a60f=_0x1953a2(),_0x117b64=!_0x5cdd38&&_0xdd26fa&&_0xdd26fa[_0x45a8e5(0x870)]==='tolerant';let _0x5f5267=null;return _0x441cd1(()=>({[Symbol[_0x45a8e5(0x84c)]]:()=>_0x5f5267=_0x153609(0x0,_0xf4f1cc(_0x13a60f))}),{'label':this[_0x45a8e5(0x80a)]+':'+_0x415395,..._0x117b64?{'getTxnId':()=>this['db']['getStats']()[_0x45a8e5(0x3a4)],'resume':()=>({[Symbol[_0x45a8e5(0x84c)]]:()=>_0x5f5267=_0x5f5267[_0x45a8e5(0x191)]()})}:{}});}[_0x43ff90(0x655)](_0x38a421,_0x30f49a){const _0x38b9e6=_0x43ff90;return this[_0x38b9e6(0x223)](_0x38b9e6(0x655),'getRange',_0x38a421,_0x30f49a,_0x23bee9=>_0x23bee9[_0x38b9e6(0x7e4)]);}[_0x43ff90(0x608)](_0x3effc1,_0x4788aa){const _0x1ae0c2=_0x43ff90;return this['_range']('getKeys',_0x1ae0c2(0x608),_0x3effc1,_0x4788aa,_0xd35d6d=>_0xd35d6d);}[_0x43ff90(0x47c)](_0x31fe2c,_0xdd591f){const _0x3fe2a8=_0x43ff90;return this[_0x3fe2a8(0x223)]('getValues',_0x3fe2a8(0x655),_0x31fe2c,_0xdd591f,_0x7f50ac=>_0x7f50ac[_0x3fe2a8(0x7e4)],_0x52d720=>_0x52d720['value']);}[_0x43ff90(0x70c)](_0x40a0c6,_0x198318,_0xe93643={}){const _0x8a3164=_0x43ff90;return this[_0x8a3164(0x655)](_0x40a0c6,{'start':_0x198318,'end':_0x198318+'',..._0xe93643});}[_0x43ff90(0x43e)](_0x3ed589,_0x19a1c6,_0x2af00b={}){const _0x3eab29=_0x43ff90;this[_0x3eab29(0x488)]('getIndex',_0x2af00b,['prefix']);const _0x3e00e3=_0x1f0333(_0x2af00b);if(_0x2af00b&&_0x2af00b[_0x3eab29(0x4b7)])return _0xb66a58(this['_n']('getIndex',[_0x3ed589,_0x19a1c6,_0x3e00e3]));return this[_0x3eab29(0x626)](_0x3eab29(0x43e),'getIndex',_0x423fd7=>[_0x3ed589,_0x19a1c6,{..._0x3e00e3,..._0x423fd7}],_0x2af00b,undefined,!![]);}[_0x43ff90(0x807)](_0x2161c5,_0x306fe7,_0x1ffc19){const _0x36efb2=_0x43ff90;this[_0x36efb2(0x488)](_0x36efb2(0x807),_0x1ffc19,['prefix','includeViolations']);const _0x1f356b=_0x1f0333(_0x1ffc19);if(_0x1ffc19&&_0x1ffc19[_0x36efb2(0x4b7)])return _0xb66a58(this['_n'](_0x36efb2(0x807),[_0x2161c5,_0x306fe7,_0x1f356b]));return this[_0x36efb2(0x626)](_0x36efb2(0x807),_0x36efb2(0x807),_0x22521c=>[_0x2161c5,_0x306fe7,{..._0x1f356b,..._0x22521c}],_0x1ffc19,undefined,!![]);}[_0x43ff90(0x407)](_0x2af347,_0x3544d3,_0x1aea73={}){return this['_n']('countByIndex',[_0x2af347,_0x3544d3,_0x1f0333(_0x1aea73)]);}[_0x43ff90(0x71e)](_0x1b6871,_0x4ee69a={},_0x341c9b={}){const _0x33ac90=_0x43ff90,_0x39fc12=_0x1971b7(_0x341c9b);if(_0x341c9b){for(const _0x3ac096 of Object[_0x33ac90(0x542)](_0x341c9b))if(_0x3ac096!==_0x33ac90(0x3b5)&&typeof _0x341c9b[_0x3ac096]==='function')_0x39fc12[_0x3ac096]=null;}if(_0x341c9b&&(_0x341c9b[_0x33ac90(0x6bf)]||_0x341c9b[_0x33ac90(0x4f6)]))return this['_n'](_0x33ac90(0x537),[_0x39fc12]),this[_0x33ac90(0x84f)](_0x1b6871,_0x4ee69a,_0x341c9b);const _0x28aecb=typeof _0x341c9b['select']==='function'?_0x341c9b[_0x33ac90(0x3b5)]:null;if(_0x341c9b['near']||_0x3642e6(_0x4ee69a)||_0x341c9b[_0x33ac90(0x4b7)]!==undefined){let _0xd3b32a=this['_n'](_0x33ac90(0x71e),[_0x1b6871,_0x4ee69a,_0x39fc12]);if(_0x28aecb)_0xd3b32a=_0xd3b32a[_0x33ac90(0x4ba)](_0x28aecb);if(_0x341c9b['near']||_0x3642e6(_0x4ee69a))return _0xd3b32a;return _0xb66a58(_0xd3b32a);}const _0x24c606=_0x18d620=>typeof _0x18d620==='number'&&Number[_0x33ac90(0x887)](_0x18d620)?Math[_0x33ac90(0x6c5)](0x0,_0x18d620):Infinity;let _0x3c0309;if(_0x341c9b[_0x33ac90(0x74b)]){const _0x41b376=_0x2fd96c=>typeof _0x2fd96c==='number'&&_0x2fd96c>0x0?Math[_0x33ac90(0x6c1)](_0x2fd96c):0x0;_0x3c0309=this[_0x33ac90(0x626)](_0x33ac90(0x71e),_0x33ac90(0x71e),_0x2b5e88=>[_0x1b6871,_0x4ee69a,{..._0x39fc12,..._0x2b5e88}],null,{'limitOf':()=>_0x24c606(_0x39fc12['limit']),'offsetOf':()=>_0x41b376(_0x39fc12[_0x33ac90(0x7cb)])});}else _0x3c0309=_0x2d9cfc(_0x53541a=>{const _0x452791=_0x33ac90,{__after:_0xbef0af,..._0x1d9c15}=_0x53541a;return this[_0x452791(0x526)](_0x452791(0x71e),_0xbef0af===undefined?[_0x1b6871,_0x4ee69a,_0x1d9c15]:[_0x1b6871,_0x4ee69a,_0x1d9c15,_0xbef0af]);},_0x39fc12,_0x12af9a=>_0x12af9a[_0x33ac90(0x7e4)],{'limitOf':_0x24c606,'rows':!![],'prefetch':!![],'resumeOpts':(_0xa03f42,_0x237d0d)=>{const _0x3fb306=_0x33ac90;_0xa03f42[_0x3fb306(0x7cb)]=0x0,_0xa03f42['__after']=_0x237d0d;}});return _0x28aecb?_0x3c0309[_0x33ac90(0x4ba)](_0x28aecb):_0x3c0309;}async[_0x43ff90(0x84f)](_0x4e7886,_0x2796d0,_0xec83e8){const _0x29f6f4=_0x43ff90,{select:_0x4679a6,..._0x4d14d2}=_0x1971b7(_0xec83e8);let _0x250f97={..._0x4d14d2};const _0x563584=_0x250f97[_0x29f6f4(0x74b)];if(_0x563584&&!Array[_0x29f6f4(0x55b)](_0x563584)&&typeof _0x563584==='object'&&_0x563584[_0x29f6f4(0x861)]){const {fields:_0x15b954,prefix:_0x435805,start:_0x3f3e81,end:_0x79e11c}=_0x563584;_0x250f97={..._0x250f97,'index':_0x15b954,'prefix':_0x435805??_0x250f97['prefix'],'startIndex':_0x3f3e81??_0x250f97[_0x29f6f4(0x2c3)],'endIndex':_0x79e11c??_0x250f97['endIndex']};}const _0x5d625b=await this[_0x29f6f4(0x263)][_0x29f6f4(0x217)]('embeddings',null,'hybridQuery',[this['name'],_0x4e7886,_0x2796d0,_0x250f97],![]),_0x15ad2c=typeof _0xec83e8[_0x29f6f4(0x3b5)]===_0x29f6f4(0x5c4)?_0xec83e8[_0x29f6f4(0x3b5)]:null;if(!_0x15ad2c)return _0x5d625b;return _0x5d625b[_0x29f6f4(0x4ba)](_0x4347ff=>{const {score:_0x1ff29d,ftsScore:_0x4a2c75,numTerms:_0x53d75b,maxScore:_0x46d10b,vectorScore:_0x15586f,chunkHash:_0x183e55,chunk:_0x303311,..._0x2c226e}=_0x4347ff,_0x5c4f99=_0x15ad2c(_0x2c226e);for(const [_0xf62919,_0x5874e6]of Object['entries']({'score':_0x1ff29d,'ftsScore':_0x4a2c75,'numTerms':_0x53d75b,'maxScore':_0x46d10b,'vectorScore':_0x15586f,'chunkHash':_0x183e55,'chunk':_0x303311}))if(_0x5874e6!==undefined)_0x5c4f99[_0xf62919]=_0x5874e6;return _0x5c4f99;});}[_0x43ff90(0x789)](_0x52e45a,_0x49b7eb,_0x2e5004={}){const _0x5a2cfe=_0x43ff90;let _0xffef45=this['_n']('geoQuery',[_0x52e45a,_0x49b7eb,_0x1971b7(_0x2e5004)]);if(typeof _0x2e5004[_0x5a2cfe(0x3b5)]==='function')_0xffef45=_0xffef45[_0x5a2cfe(0x4ba)](_0x2e5004['select']);return _0xffef45;}[_0x43ff90(0x7da)](_0x447286=null,_0xa77f8a={}){const _0x479c34=_0x43ff90;return this['_n'](_0x479c34(0x7da),[_0x447286]);}['getChanges'](_0x26d5c2=null,_0x5e2837=0x0,_0x3b152b=Number['MAX_SAFE_INTEGER'],_0x2e2340={}){const _0x14f88d=_0x43ff90,_0x1e6476=_0x1f0333(_0x2e2340);if(_0x2e2340&&_0x2e2340[_0x14f88d(0x4b7)])return _0xb66a58(this['_n']('getChanges',[_0x26d5c2,_0x5e2837,_0x3b152b,_0x1e6476]));return this[_0x14f88d(0x626)]('getChanges',_0x14f88d(0x356),_0x553da0=>[_0x26d5c2,_0x5e2837,_0x3b152b,{..._0x1e6476,..._0x553da0}],_0x2e2340);}[_0x43ff90(0x768)](_0xf2522f){const _0x1bbeb8=_0x43ff90;if(Array[_0x1bbeb8(0x55b)](_0xf2522f))return _0xf2522f['length'];let _0xfcf734=0x0;for(const _0xfff0f0 of _0xf2522f)_0xfcf734++;return _0xfcf734;}*[_0x43ff90(0x261)](_0x1e92d4){yield*_0x1e92d4;}[_0x43ff90(0x785)](){const _0x4a244a=_0x43ff90;return requireOkdbHlc()[_0x4a244a(0x78e)](this[_0x4a244a(0x4b2)]);}get['_ttlTimeout'](){const _0x2b1cf0=_0x43ff90,_0x1159d3=this['okdb'][_0x2b1cf0(0x7df)]?this[_0x2b1cf0(0x263)]['_call']('db',null,_0x2b1cf0(0x321),[this[_0x2b1cf0(0x80a)]],![]):null;if(!_0x1159d3)return null;if(this['__ttlCancelledGen']===_0x1159d3[_0x2b1cf0(0x2a3)])return null;this['_timerObjs']=this[_0x2b1cf0(0x224)]||new Map();let _0x11aae4=this[_0x2b1cf0(0x224)][_0x2b1cf0(0x4ff)](_0x1159d3[_0x2b1cf0(0x2a3)]);if(!_0x11aae4){const _0x326a88=this;_0x11aae4={'ref'(){},'unref'(){},'hasRef':()=>![],'gen':_0x1159d3[_0x2b1cf0(0x2a3)],'at':_0x1159d3['at'],'target':_0x1159d3[_0x2b1cf0(0x248)],get '_destroyed'(){const _0x5d2507=_0x2b1cf0,_0x41aa5a=_0x326a88[_0x5d2507(0x263)][_0x5d2507(0x7df)]?_0x326a88[_0x5d2507(0x263)][_0x5d2507(0x7b0)]('db',null,_0x5d2507(0x321),[_0x326a88[_0x5d2507(0x80a)]],![]):null;return!_0x41aa5a||_0x41aa5a['gen']!==this[_0x5d2507(0x2a3)]||_0x326a88[_0x5d2507(0x3e3)]===this[_0x5d2507(0x2a3)];}},this[_0x2b1cf0(0x224)][_0x2b1cf0(0x398)](_0x1159d3[_0x2b1cf0(0x2a3)],_0x11aae4);}return _0x11aae4;}['_cancelTTLTimeout'](){const _0x267969=_0x43ff90,_0x5de761=this[_0x267969(0x263)][_0x267969(0x7b0)]('db',null,'ttlTimer',[this[_0x267969(0x80a)]],![]);if(_0x5de761)this[_0x267969(0x3e3)]=_0x5de761[_0x267969(0x2a3)];}get[_0x43ff90(0x586)](){const _0x5199e3=_0x43ff90,_0x2aecae=this['okdb'][_0x5199e3(0x7b0)]('db',null,'ttlTimer',[this[_0x5199e3(0x80a)]],![]);return _0x2aecae?_0x2aecae[_0x5199e3(0x248)]:null;}get['_autoCompactTimer'](){const _0x64340e=_0x43ff90;return this['okdb'][_0x64340e(0x7b0)]('db',null,_0x64340e(0x709),[this[_0x64340e(0x80a)]],![])?{'ref'(){},'unref'(){}}:null;}[_0x43ff90(0x25b)](){const _0x5611e7=_0x43ff90;this['okdb'][_0x5611e7(0x7b0)]('db',null,_0x5611e7(0x276),[this[_0x5611e7(0x80a)]],![]);}[_0x43ff90(0x195)](){const _0x41ea6b=_0x43ff90;this['okdb'][_0x41ea6b(0x7b0)]('db',null,'stopAutoCompactCheck',[this[_0x41ea6b(0x80a)]],![]);}get['_autoCompact'](){const _0x40e2d5=_0x43ff90,_0x39ad26=(_0x3dbc4e,_0x252d89)=>this[_0x40e2d5(0x263)][_0x40e2d5(0x7b0)]('db',null,_0x3dbc4e,[this[_0x40e2d5(0x80a)],..._0x252d89],![]),_0x82a588=Object[_0x40e2d5(0x542)](_0x39ad26('autoCompactState',[])||{}),_0x1b54d4={};for(const _0x2de74b of _0x82a588)Object[_0x40e2d5(0x834)](_0x1b54d4,_0x2de74b,{'enumerable':!![],'get':()=>_0x39ad26(_0x40e2d5(0x89d),[])?.[_0x2de74b],'set':_0x524b25=>{const _0x2684bf=_0x40e2d5;_0x39ad26(_0x2684bf(0x485),[_0x2de74b,_0x524b25]);}});return _0x1b54d4;}get['_hlc'](){const _0x51ac21=_0x43ff90;return this['_n'](_0x51ac21(0x465),[]);}[_0x43ff90(0x483)](_0x345f4e,_0xdec2c4){return require$$16['isDeepStrictEqual'](_0x345f4e,_0xdec2c4);}async[_0x43ff90(0x2db)](_0x3290b9,_0x2a0094){const _0x3b8300=_0x43ff90;return this['_wsettle'](this['_n'](_0x3b8300(0x2db),[_0x3290b9]));}[_0x43ff90(0x637)](_0x205886){const _0x1e93c5=_0x43ff90;return this['_n'](_0x1e93c5(0x637),[_0x205886]);}[_0x43ff90(0x17d)](){const _0x44e7d5=_0x43ff90;return this['_n'](_0x44e7d5(0x17d),[]);}async[_0x43ff90(0x716)](_0x10ce35,_0x26e4ed){const _0x4a7b58=_0x43ff90;return this['_wsettle'](this['_n'](_0x4a7b58(0x716),[_0x10ce35]));}async[_0x43ff90(0x816)](_0x31f734,_0x2db739){const _0x2e789d=_0x43ff90,{timestamp:_0x335af4,indexes:indexes=[]}=_0x3ef8ed(_0x2db739);return this[_0x2e789d(0x309)](this['_n']('ensureType',[_0x31f734,{'indexes':indexes}]));}async['ensure'](_0x287aaf){const _0x33e125=_0x43ff90,{type:_0x22f72a,indexes:indexes=[],fts:fts=[],views:views=[],schema:schema=null}=_0x3ef8ed(_0x287aaf,'spec');if(!_0x22f72a)throw new Error(_0x33e125(0x7f7));await this[_0x33e125(0x816)](_0x22f72a,{'indexes':indexes});for(const _0x239d27 of fts){const {name:_0x4096ab,fields:_0x264222,..._0x137880}=_0x239d27;if(!_0x4096ab||!_0x264222)throw new Error(_0x33e125(0x860));await this[_0x33e125(0x263)][_0x33e125(0x6bf)]['ensure'](_0x22f72a,_0x4096ab,{'fields':_0x264222,..._0x137880},this);}for(const _0x48cefb of views){const {name:_0x2d2b76,definition:_0x2e225d}=_0x48cefb;if(!_0x2d2b76||!_0x2e225d)throw new Error(_0x33e125(0x7f6));if(!await this[_0x33e125(0x448)][_0x33e125(0x6e9)](_0x2d2b76))await this[_0x33e125(0x448)]['create'](_0x2d2b76,_0x2e225d);}if(schema)await this[_0x33e125(0x266)](_0x22f72a,schema);}async['registerIndex'](_0x55b69c,_0xb5f05d,_0x42adf9){const _0x238161=_0x43ff90,_0x36d1f8=this['_n']('registerIndexDeferred',[_0x55b69c,_0xb5f05d,typeof _0x42adf9===_0x238161(0x86d)?_0x42adf9:{}]);if(!_0x36d1f8)return this[_0x238161(0x309)](undefined);const _0x197ec0=this['_n'](_0x238161(0x2d9),[_0x55b69c,_0xb5f05d,!![]]);if(_0x197ec0===undefined)return this[_0x238161(0x309)](undefined);return this[_0x238161(0x309)](await this[_0x238161(0x3f0)](_0x55b69c,_0xb5f05d,_0x197ec0));}async[_0x43ff90(0x3f0)](_0x4d6af0,_0x11f9e6,_0x364e8){const _0x4f68a2=_0x43ff90,_0x1c3abe=_0x4d6af0+'@'+[][_0x4f68a2(0x18e)](_0x11f9e6)['join']('~');if(!this[_0x4f68a2(0x290)])this['_indexBuilds']=new Map();const _0x214dc0=this[_0x4f68a2(0x290)][_0x4f68a2(0x4ff)](_0x1c3abe);if(_0x214dc0)return _0x214dc0;const _0x3c4450=((async()=>{const _0x11516d=_0x4f68a2;do await new Promise(_0x502277=>setImmediate(_0x502277));while(!this['_n'](_0x11516d(0x57f),[_0x4d6af0,_0x11f9e6,_0x364e8,!![]]));})());this['_indexBuilds'][_0x4f68a2(0x398)](_0x1c3abe,_0x3c4450);try{return await _0x3c4450;}finally{this[_0x4f68a2(0x290)]['delete'](_0x1c3abe);}}async[_0x43ff90(0x663)](_0x15a549,_0x3b65e7,_0x4d0726){return this['_wsettle'](this['_n']('dropIndex',[_0x15a549,_0x3b65e7]));}async[_0x43ff90(0x449)](_0x4d127d,_0x26060b,_0x4d5b52){const _0x217a60=_0x43ff90,_0x1de188=this[_0x217a60(0x290)]&&this[_0x217a60(0x290)][_0x217a60(0x4ff)](_0x4d127d+'@'+[][_0x217a60(0x18e)](_0x26060b)[_0x217a60(0x486)]('~'));if(_0x1de188)return _0x1de188;const _0x4257bc=this['_n'](_0x217a60(0x2d9),[_0x4d127d,_0x26060b,_0x4d5b52]);if(_0x4257bc===undefined)return;return await new Promise(_0x3f624f=>setImmediate(_0x3f624f)),this[_0x217a60(0x309)](await this[_0x217a60(0x3f0)](_0x4d127d,_0x26060b,_0x4257bc));}[_0x43ff90(0x88e)](_0x4ade63,_0xa121f1){const _0x54295c=_0x43ff90;return this['_n'](_0x54295c(0x88e),[_0x4ade63,_0xa121f1]);}['getIndexStatus'](_0x5a9b9d,_0x30c8ee){const _0x5e6f76=_0x43ff90;return this['_n'](_0x5e6f76(0x5b0),[_0x5a9b9d,_0x30c8ee]);}async[_0x43ff90(0x3eb)](_0x1a881c,_0xf806e5){const _0x1d5d11=_0x43ff90;if(this['_n'](_0x1d5d11(0x5b0),[_0x1a881c,_0xf806e5])==='ready')return!![];let _0xd9555a=0xa;for(;;){await new Promise(_0x4cdc27=>setTimeout(_0x4cdc27,_0xd9555a));if(!this['okdb'][_0x1d5d11(0x7df)]||this['_closedHandle'])return![];let _0x5c749b;try{_0x5c749b=this['_n'](_0x1d5d11(0x571),[_0x1a881c,Array[_0x1d5d11(0x55b)](_0xf806e5)?_0xf806e5[_0x1d5d11(0x486)]('~'):String(_0xf806e5)['split'](',')['join']('~')]);}catch{return![];}const _0xa73d17=_0x5c749b&&_0x5c749b['status'];if(_0xa73d17===_0x1d5d11(0x37b))return!![];if(_0xa73d17===undefined)return![];_0xd9555a=Math[_0x1d5d11(0x3d2)](_0xd9555a*0x2,0xfa);}}[_0x43ff90(0x571)](_0x3d365f,_0x12f9e2){return this['_n']('getIndexMeta',[_0x3d365f,_0x12f9e2])??null;}[_0x43ff90(0x431)](_0x599eb8,_0x17a16c){const _0x574dfc=_0x43ff90;return this['_n'](_0x574dfc(0x431),[_0x599eb8,_0x17a16c]);}[_0x43ff90(0x4f9)](_0x58bf91,_0x1ab7ad){const _0x3f38eb=_0x43ff90;return this['_n'](_0x3f38eb(0x4f9),[_0x58bf91,_0x1ab7ad]);}['getUniqueViolation'](_0x41b1dc,_0x2b7e2d,_0x1f9c8c){return this['_n']('getUniqueViolation',[_0x41b1dc,_0x2b7e2d,_0x1f9c8c])??null;}[_0x43ff90(0x620)](_0x21470f){const _0x3f47cd=_0x43ff90;return this['_n'](_0x3f47cd(0x620),[_0x21470f])??null;}async[_0x43ff90(0x266)](_0x25046a,_0x9721de){const _0x3406ab=_0x43ff90;return this[_0x3406ab(0x309)](this['_n'](_0x3406ab(0x266),[_0x25046a,_0x9721de]));}async[_0x43ff90(0x2c9)](_0x1f8a82){const _0x1e1ce6=_0x43ff90;return this[_0x1e1ce6(0x309)](this['_n'](_0x1e1ce6(0x2c9),[_0x1f8a82]));}[_0x43ff90(0x7f4)](_0x489e85,_0x4bcb45){const _0x27c350=_0x43ff90;return this['_n'](_0x27c350(0x7f4),[_0x489e85,_0x4bcb45])??null;}['listViolations'](_0x54ebac){return this['_n']('listViolations',[_0x54ebac]);}[_0x43ff90(0x18b)](_0xd80f04,_0x3c9edf,_0x21f798){const _0x512210=_0x43ff90;return this['_n'](_0x512210(0x18b),[_0xd80f04,_0x3c9edf,_0x21f798])??null;}[_0x43ff90(0x6e0)](_0x164d37){return this['_n']('listRefViolations',[_0x164d37]);}async[_0x43ff90(0x83e)](_0x1d6081,_0x2d017a,_0x28809b){const _0x3c9d0a=_0x43ff90;return this['_wsettle'](this['_n'](_0x3c9d0a(0x83e),[_0x1d6081,_0x2d017a,_0x28809b]));}[_0x43ff90(0x7ee)](_0x4447e3,_0x3d985c){const _0x127e53=_0x43ff90;return this['_n'](_0x127e53(0x7ee),[_0x4447e3,_0x3d985c]);}async[_0x43ff90(0x188)](_0x536322,_0x2d34b8){const _0x215253=_0x43ff90;return this[_0x215253(0x309)](this['_n']('clearTTL',[_0x536322,_0x2d34b8]));}async[_0x43ff90(0x7a5)](_0xa0c2dc){const _0x27ef98=_0x43ff90;return this['_n'](_0x27ef98(0x7a5),[_0xa0c2dc]);}[_0x43ff90(0x759)](_0x5e9fd4={}){return this['_n']('listTTL',[_0x5e9fd4]);}[_0x43ff90(0x54b)](_0x32aa73){const _0x17d0a3=_0x43ff90;return this['_n'](_0x17d0a3(0x54b),[_0x32aa73]);}async[_0x43ff90(0x4dc)](_0x280d53,_0x1e3cd5){const _0x5a8f6f=_0x43ff90;return this[_0x5a8f6f(0x309)](this['_n'](_0x5a8f6f(0x4dc),[_0x280d53,_0x1e3cd5]));}[_0x43ff90(0x3d1)](_0x54ced1){const _0x5c5a95=_0x43ff90;return this['_n'](_0x5c5a95(0x3d1),[_0x54ced1]);}async[_0x43ff90(0x6a1)](_0x49eb17){const _0x4b48f8=_0x43ff90;return this[_0x4b48f8(0x309)](this['_n']('clearDefaultTTL',[_0x49eb17]));}async[_0x43ff90(0x2bc)](_0x32d7cd,_0x1eab7d,_0x31bbfe,_0x183ba4){const _0x466f45=_0x43ff90,{batch:batch=null,batchSize:_0x96dec2}=_0x3ef8ed(_0x183ba4);if(typeof _0x32d7cd!==_0x466f45(0x460)||!_0x32d7cd)throw new _0x103cf7(_0x466f45(0x84a),_0x466f45(0x185));if(typeof _0x1eab7d!==_0x466f45(0x460)||!_0x1eab7d)throw new _0x103cf7('resolveField:\x20field\x20required',_0x466f45(0x185));if(_0x31bbfe!=null&&typeof _0x31bbfe!==_0x466f45(0x5c4))throw new _0x103cf7(_0x466f45(0x377),_0x466f45(0x185));if(batch!=null&&typeof batch!==_0x466f45(0x5c4))throw new _0x103cf7('resolveField:\x20options.batch\x20must\x20be\x20a\x20function','BAD_PARAM');if(!_0x31bbfe&&!batch)throw new _0x103cf7(_0x466f45(0x555),_0x466f45(0x185));if(_0x96dec2!==undefined&&!(Number[_0x466f45(0x887)](_0x96dec2)&&_0x96dec2>0x0))throw new _0x103cf7('resolveField:\x20options.batchSize\x20must\x20be\x20a\x20positive\x20integer',_0x466f45(0x185));const _0x24e90e=batch?async _0x114add=>(await batch(_0x114add))[_0x466f45(0x4ba)](_0x1729cc=>_0x1729cc instanceof Error?{'__error':!![],'message':_0x1729cc[_0x466f45(0x5e1)]}:_0x1729cc):null,_0x170d73=_0x2bd2c9(this,_0x32d7cd,_0x1eab7d),_0x47e21e=this['_n'](_0x466f45(0x2bc),[_0x32d7cd,_0x1eab7d,_0x31bbfe?(_0x40556b,_0x136ae0)=>_0x170d73(_0x31bbfe,[_0x40556b,_0x136ae0]):null,{'batch':_0x24e90e?_0x49f7a6=>_0x170d73(_0x24e90e,[_0x49f7a6]):null,'batchSize':_0x96dec2}]);return()=>this['_n']('removeResolver',[_0x47e21e]);}async[_0x43ff90(0x49a)](_0x545760,_0x54bcb9){const _0x4ce0c2=_0x43ff90;return this['_n'](_0x4ce0c2(0x49a),[_0x545760,_0x54bcb9]);}[_0x43ff90(0x1f6)](_0x61063c){const _0x2e2a90=_0x43ff90;return this['_n'](_0x2e2a90(0x1f6),[_0x61063c]);}async[_0x43ff90(0x1b3)](_0x2dd411,_0x48bec5,_0x151421,_0x12870e){const _0x3bab65=_0x43ff90;return this[_0x3bab65(0x263)][_0x3bab65(0x217)]('env',this['name'],_0x3bab65(0x1b3),[_0x2dd411,_0x48bec5,_0x151421,_0x12870e],![]);}async[_0x43ff90(0x4c9)](_0x1ba55d,_0x2c9796,_0x4eb56f){const _0x5e18fa=_0x43ff90;return this[_0x5e18fa(0x263)][_0x5e18fa(0x217)](_0x5e18fa(0x81f),this[_0x5e18fa(0x80a)],'readFieldMany',[_0x1ba55d,_0x2c9796,_0x4eb56f],![]);}[_0x43ff90(0x26f)](){}[_0x43ff90(0x42c)](_0x1dac9d,_0x5ea976,_0x130418,_0x18536f={},_0x317d74={}){const _0x2db16a=_0x43ff90;return this[_0x2db16a(0x263)][_0x2db16a(0x7b0)](_0x2db16a(0x6bf),null,'ftsQuery',[_0x1dac9d,_0x5ea976,_0x130418,_0x18536f,_0x317d74,this[_0x2db16a(0x80a)]],![]);}get[_0x43ff90(0x6bf)](){const _0x28c8d8=_0x43ff90;return this['okdb'][_0x28c8d8(0x6bf)];}[_0x43ff90(0x79f)](){const _0xa54198=_0x43ff90;return this[_0xa54198(0x263)][_0xa54198(0x7b0)]('env',this[_0xa54198(0x80a)],'getResolvedOptions',[],![]);}['diag'](){const _0x24ef44=_0x43ff90;return this['okdb'][_0x24ef44(0x371)]();}[_0x43ff90(0x1a0)](){const _0x21c273=_0x43ff90;return this[_0x21c273(0x263)][_0x21c273(0x7b0)]('env',this[_0x21c273(0x80a)],_0x21c273(0x1a0),[],![]);}[_0x43ff90(0x5ca)](){}get[_0x43ff90(0x5db)](){const _0x15619f=_0x43ff90;return this[_0x15619f(0x455)]||(this[_0x15619f(0x455)]=new(requireLock())['NativeLock'](this['okdb'],this['name'],_0x15619f(0x81f)));}[_0x43ff90(0x682)](){const _0x466581=_0x43ff90;return this[_0x466581(0x263)]['_call'](_0x466581(0x81f),this[_0x466581(0x80a)],_0x466581(0x682),[],![]);}['_registerType'](_0x4c2a8a){const _0x51eb87=_0x43ff90;this['_n'](_0x51eb87(0x2db),[_0x4c2a8a]);}[_0x43ff90(0x817)](_0x897b96){const _0x5c33da=_0x43ff90;this['_n'](_0x5c33da(0x769),[_0x897b96]);}[_0x43ff90(0x27b)](){const _0x30fbc9=_0x43ff90;return this['_n'](_0x30fbc9(0x787),[]);}[_0x43ff90(0x70b)](_0x5a9ce0,_0xe048d2){return _0x5a9ce0+'\x09'+_0xe048d2;}[_0x43ff90(0x66f)](_0x3249b2){const _0x2b9194=_0x43ff90,_0x16762b=_0x3249b2[_0x2b9194(0x374)]('\x09');return{'type':_0x3249b2[_0x2b9194(0x5d1)](0x0,_0x16762b),'key':_0x3249b2['slice'](_0x16762b+0x1)};}get[_0x43ff90(0x2af)](){const _0x11547a=_0x43ff90;if(!this['_ttlState']()[_0x11547a(0x28f)])return null;return this['__ttlByKey']||(this[_0x11547a(0x2b3)]=new _0x2aa967(this,_0x11547a(0x4d4)));}get[_0x43ff90(0x2ef)](){const _0x3f3595=_0x43ff90;if(!this[_0x3f3595(0x27b)]()['enabled'])return null;return this[_0x3f3595(0x347)]||(this[_0x3f3595(0x347)]=new _0x2aa967(this,_0x3f3595(0x3d5),{'dupSort':!![]}));}['_setTTLEntry'](_0x1e975b,_0x4f81f7,_0x2a3273){const _0x201700=_0x43ff90;this['_n'](_0x201700(0x1cd),[_0x1e975b,_0x4f81f7,_0x2a3273]);}['_isExpired'](_0x2ac156,_0x4221db){const _0x122f3a=_0x43ff90,_0x22b268=this[_0x122f3a(0x2af)]?.['get'](this[_0x122f3a(0x70b)](_0x2ac156,_0x4221db));return _0x22b268!=null&&_0x22b268<=Date['now']();}get[_0x43ff90(0x528)](){const _0x3513d5=_0x43ff90;return this[_0x3513d5(0x27b)]()[_0x3513d5(0x2e6)]??null;}get[_0x43ff90(0x700)](){const _0x39a3e8=_0x43ff90;return this[_0x39a3e8(0x27b)]()[_0x39a3e8(0x231)]||0x0;}get[_0x43ff90(0x3e0)](){return![];}[_0x43ff90(0x257)](){}async[_0x43ff90(0x595)](_0x4f64ab,_0x2e5834){const _0x38d080=_0x43ff90;if(this['_rebuilding']){const {OKDBError:_0x4e4938}=requireErrors();throw new _0x4e4938(_0x38d080(0x247),'REBUILD_IN_PROGRESS');}this[_0x38d080(0x2e0)]=!![];try{return await this['okdb'][_0x38d080(0x217)](_0x38d080(0x81f),this[_0x38d080(0x80a)],_0x4f64ab,[_0x2e5834],!![]);}finally{this[_0x38d080(0x2e0)]=![];}}async[_0x43ff90(0x88f)](_0x1e99f4={}){const _0x5a6dff=_0x43ff90;return this[_0x5a6dff(0x595)]('compact',_0x1e99f4);}async['repair'](_0xb2bd89={}){const _0x54110c=_0x43ff90;return this[_0x54110c(0x595)](_0x54110c(0x1d3),_0xb2bd89);}}_0x1de694[_0x43ff90(0x54e)]=_0x25f607;function _0x3642e6(_0x928b7d){const _0x5aebb4=_0x43ff90;if(!_0x928b7d||typeof _0x928b7d!=='object')return![];for(const _0x3ea63f of Object[_0x5aebb4(0x542)](_0x928b7d)){const _0x51f055=_0x928b7d[_0x3ea63f];if(_0x51f055&&typeof _0x51f055==='object'&&(_0x51f055[_0x5aebb4(0x1af)]||_0x51f055[_0x5aebb4(0x353)]))return!![];}return![];}function _0x1f0333(_0x240bff){const _0x303e91=_0x43ff90;if(!_0x240bff||typeof _0x240bff!==_0x303e91(0x86d))return{};const _0x4b5797={};for(const _0x4b6831 of Object[_0x303e91(0x542)](_0x240bff)){if(_0x4b6831===_0x303e91(0x4b7)||_0x4b6831===_0x303e91(0x870))continue;_0x4b5797[_0x4b6831]=_0x240bff[_0x4b6831];}return _0x4b5797;}function _0x1971b7(_0x2329a4){const _0x21e84d=_0x43ff90;if(!_0x2329a4||typeof _0x2329a4!=='object')return{};const _0x1b5ff6={};for(const _0x1e8f21 of Object['keys'](_0x2329a4)){if(typeof _0x2329a4[_0x1e8f21]===_0x21e84d(0x5c4))continue;_0x1b5ff6[_0x1e8f21]=_0x2329a4[_0x1e8f21];}return _0x1b5ff6;}return env={'OKDBEnv':_0x1de694,'HIGH_SENTINEL':_0x25f607},env;}var unsupported,hasRequiredUnsupported;function requireUnsupported(){if(hasRequiredUnsupported)return unsupported;hasRequiredUnsupported=0x1;const {NotImplementedNative:_0x3a8041}=requireErrors();function _0x293bb4(_0x1d52b8){const _0x26f8a0=_0x4d81c5=>{throw new _0x3a8041(_0x1d52b8,_0x4d81c5);};return new Proxy(function(){},{'get'(_0x56ca7c,_0x9e992c){const _0x49562d=_0x20ac;if(typeof _0x9e992c===_0x49562d(0x552)||_0x9e992c===_0x49562d(0x8a9)||_0x9e992c===_0x49562d(0x7bc)||_0x9e992c===_0x49562d(0x731))return undefined;if(_0x9e992c===_0x49562d(0x184))return _0x1d52b8;return(..._0x270800)=>_0x26f8a0(_0x1d52b8+'.'+String(_0x9e992c));},'apply'(){_0x26f8a0(_0x1d52b8);},'set'(){return!![];}});}return unsupported={'notImplemented':_0x293bb4},unsupported;}var http,hasRequiredHttp;function requireHttp(){const _0x59ae48=_0x1c5fdf;if(hasRequiredHttp)return http;hasRequiredHttp=0x1;function _0x130bde(_0x1e5486,_0x5c1444={}){const _0x1dc4fd=_0x20ac,_0x197851=[];let _0x304f80=![];_0x1e5486['endsWith']('/*')&&(_0x304f80=!![],_0x1e5486=_0x1e5486[_0x1dc4fd(0x5d1)](0x0,-0x2),_0x197851['push']('*'));let _0x42db2a=_0x1e5486[_0x1dc4fd(0x756)](/\/+$/,'')[_0x1dc4fd(0x756)](/\[([^\]]*)\]/g,(_0x4137ed,_0x4d43f2)=>{const _0x1e2c1f=_0x1dc4fd,_0x46b1a7=_0x4d43f2[_0x1e2c1f(0x756)](/\/:(\w+)(?:=([^/\]\s]*))?/g,(_0x4082ed,_0x74002a)=>{const _0x330976=_0x1e2c1f;return _0x197851[_0x330976(0x3c0)](_0x74002a),_0x330976(0x884);});return _0x1e2c1f(0x795)+_0x46b1a7+')?';})[_0x1dc4fd(0x756)](/\/:(\w+)/g,(_0x1b09e5,_0x4cdeda)=>{const _0x5a5f97=_0x1dc4fd;return _0x197851[_0x5a5f97(0x3c0)](_0x4cdeda),_0x5a5f97(0x884);});if(_0x42db2a==='')_0x42db2a='/';return{'keys':_0x197851,'defaults':_0x5c1444||{},'wildcard':_0x304f80,'regex':new RegExp('^'+_0x42db2a+(_0x304f80?_0x1dc4fd(0x883):'')+_0x1dc4fd(0x354))};}const _0x272019=require$$0$3,{PassThrough:_0x2c04c0}=require$$1;function _0xdf3eaa(_0x35b046){const _0x46a552=_0x20ac,_0x327217=_0x35b046['lastIndexOf'](':'),_0x20ca61=_0x35b046[_0x46a552(0x5d1)](0x0,_0x327217)[_0x46a552(0x756)](/^\[|\]$/g,'');return{'address':_0x20ca61,'family':_0x20ca61[_0x46a552(0x75e)](':')?'IPv6':'IPv4','port':Number(_0x35b046[_0x46a552(0x5d1)](_0x327217+0x1))};}class _0x50b0c5 extends _0x272019['Server']{constructor(_0x16744e,_0x550596){const _0x214f1b=_0x20ac;super(),this[_0x214f1b(0x274)]=_0x16744e,this[_0x214f1b(0x3e7)]=_0xdf3eaa(_0x550596),this['listening']=!![],this[_0x214f1b(0x714)]=setInterval(()=>{},0x7fffffff);}get['listening'](){return this['_listening'];}set[_0x59ae48(0x85b)](_0x269b1f){const _0x5e751e=_0x59ae48;this[_0x5e751e(0x701)]=_0x269b1f;}[_0x59ae48(0x675)](){const _0x3163e6=_0x59ae48;return this[_0x3163e6(0x85b)]?{...this[_0x3163e6(0x3e7)]}:null;}['_release'](){const _0x24f892=_0x59ae48;if(this[_0x24f892(0x714)])clearInterval(this[_0x24f892(0x714)]);this[_0x24f892(0x714)]=null;}[_0x59ae48(0x508)](_0x1b76e7){const _0x13c0e1=_0x59ae48;this[_0x13c0e1(0x82b)]();const _0x4e8283=this[_0x13c0e1(0x274)][_0x13c0e1(0x508)]();if(_0x1b76e7)_0x4e8283[_0x13c0e1(0x8a9)](()=>_0x1b76e7(),_0x1b76e7);return this;}[_0x59ae48(0x56d)](){const _0x416e06=_0x59ae48;return this[_0x416e06(0x714)]?.[_0x416e06(0x56d)](),this;}[_0x59ae48(0x54c)](){const _0x16b5fa=_0x59ae48;return this['_keepAlive']?.[_0x16b5fa(0x54c)](),this;}}class _0x497b8d{constructor(_0x7311a8){const _0x4aea72=_0x59ae48;this['okdb']=_0x7311a8,this[_0x4aea72(0x55f)]=[],this['auth']={'cookieName':_0x4aea72(0x66a)};}get[_0x59ae48(0x284)](){const _0x2300ab=_0x59ae48;return this[_0x2300ab(0x55f)][0x0]||null;}['_n'](_0x5337ee,_0x31f114=[]){const _0x2fc080=_0x59ae48;return this['okdb'][_0x2fc080(0x217)](_0x2fc080(0x367),null,_0x5337ee,_0x31f114,!![]);}async[_0x59ae48(0x76f)](_0x3e412f,_0xb5e965,_0xf3d6d1={},_0x3cf140={}){const _0x3d1bb6=_0x59ae48;let _0x1fbd0a=await this['_n']('handle',[_0x3e412f,_0xb5e965,_0xf3d6d1,_0x3cf140]),_0x493b34=0x0;return _0x1fbd0a=await this[_0x3d1bb6(0x313)](_0x1fbd0a,_0x493b34),_0x1fbd0a;}async[_0x59ae48(0x313)](_0x52745e,_0x129e67){const _0x4c3871=_0x59ae48;while(_0x52745e&&typeof _0x52745e===_0x4c3871(0x86d)&&_0x52745e[_0x4c3871(0x181)]!==undefined){await new Promise(_0xdc8f6c=>setTimeout(_0xdc8f6c,_0x129e67<0x5?0x1:0x5)),_0x129e67++,_0x52745e=await this['_n'](_0x4c3871(0x349),[_0x52745e[_0x4c3871(0x181)]]);}if(_0x52745e&&_0x52745e['body']&&typeof _0x52745e['body']===_0x4c3871(0x86d)&&_0x52745e[_0x4c3871(0x5c8)][_0x4c3871(0x57b)]!==undefined)_0x52745e[_0x4c3871(0x5c8)]=this['_stream'](_0x52745e['body'][_0x4c3871(0x57b)]);return _0x52745e;}[_0x59ae48(0x78a)](_0x14fa06){const _0x31c961=_0x59ae48,_0x3ae314=new _0x2c04c0();let _0x44e9d4=![];const _0x43ee83=()=>{const _0x178f81=_0x20ac;if(_0x44e9d4)return;_0x44e9d4=!![],clearTimeout(_0x6b3e7e),setImmediate(()=>this[_0x178f81(0x263)][_0x178f81(0x7df)]&&this[_0x178f81(0x263)][_0x178f81(0x7b0)](_0x178f81(0x367),null,_0x178f81(0x72b),[_0x14fa06],!![]));};let _0x6b3e7e=null;const _0x58df74=()=>{const _0x3f7199=_0x20ac;if(_0x44e9d4)return;let _0xe9adc3;try{_0xe9adc3=this[_0x3f7199(0x263)][_0x3f7199(0x7b0)](_0x3f7199(0x367),null,_0x3f7199(0x1b6),[_0x14fa06],!![]);}catch{_0xe9adc3={'chunks':[],'end':!![]};}for(const _0xf32bdb of _0xe9adc3[_0x3f7199(0x479)])_0x3ae314['write'](_0xf32bdb);if(_0xe9adc3['end']){_0x44e9d4=!![],_0x3ae314[_0x3f7199(0x3ae)]();return;}_0x6b3e7e=setTimeout(_0x58df74,_0xe9adc3[_0x3f7199(0x479)][_0x3f7199(0x2f6)]?0x0:0xa);};_0x3ae314['on'](_0x31c961(0x508),_0x43ee83),_0x58df74();if(!_0x44e9d4)_0x58df74();if(_0x44e9d4)_0x3ae314[_0x31c961(0x864)]();else{if(!_0x6b3e7e)_0x6b3e7e=setTimeout(_0x58df74,0x0);}return _0x3ae314;}[_0x59ae48(0x3cc)](_0x207440,_0x2f8fe8,_0x3b5efd,_0x117b1a={}){const _0xe9475c=_0x59ae48;return this[_0xe9475c(0x263)]['_call'](_0xe9475c(0x367),null,_0xe9475c(0x3cc),[_0x207440,_0x2f8fe8,_0x3b5efd,_0x117b1a,![]],!![]),this;}['addRaw'](_0x4269e6,_0x472d01,_0x5a229c,_0x52e4ea={}){const _0x2c8fde=_0x59ae48;return this[_0x2c8fde(0x263)][_0x2c8fde(0x7b0)](_0x2c8fde(0x367),null,_0x2c8fde(0x3cc),[_0x4269e6,_0x472d01,_0x5a229c,_0x52e4ea,!![]],!![]),this;}[_0x59ae48(0x82f)](_0x1e4685,_0x59c0a4){const _0x9dca8c=_0x59ae48,_0x32f2e1=async _0x2bedf8=>{const _0xee8222=_0x20ac,_0x794c78={'status':undefined,'headers':[],'hasBody':![],'body':undefined},_0x4afc2c={'status'(_0x24ad2f){const _0x120560=_0x20ac;return _0x794c78[_0x120560(0x392)]=_0x24ad2f,_0x4afc2c;},'setHeader'(_0x4eb71e,_0x338897){const _0x84e2ec=_0x20ac;_0x794c78[_0x84e2ec(0x1e1)]['push']([_0x4eb71e,_0x338897]);},'send'(_0x30f036){const _0x41150b=_0x20ac;_0x794c78['hasBody']=!![],_0x794c78[_0x41150b(0x5c8)]=_0x30f036;}};_0x2bedf8[_0xee8222(0x1a9)]={'remoteAddress':_0x2bedf8['remoteAddress']??null};const _0x405ae6=await _0x59c0a4(_0x2bedf8,_0x4afc2c);return{'allowed':_0x405ae6!==![],..._0x794c78};};this[_0x9dca8c(0x263)][_0x9dca8c(0x7b0)](_0x9dca8c(0x367),null,'guard',[_0x2c652c=>!!_0x1e4685(_0x2c652c),_0x32f2e1],!![]);}[_0x59ae48(0x622)](_0x358fdf){const _0x2d5815=_0x59ae48,_0x422f2b=async _0x5f044f=>{const _0x2897bd={'status':undefined,'headers':[],'hasBody':![],'body':undefined};let _0x185c82=![];const _0x1bfd6f={'status'(_0x1d5fa3){const _0xddc525=_0x20ac;return _0x2897bd[_0xddc525(0x392)]=_0x1d5fa3,_0x1bfd6f;},'setHeader'(_0x4534f4,_0x41baa4){const _0x2b298f=_0x20ac;_0x2897bd[_0x2b298f(0x1e1)][_0x2b298f(0x3c0)]([_0x4534f4,_0x41baa4]);},'send'(_0x5ba4ab){const _0x47cf8c=_0x20ac;_0x2897bd[_0x47cf8c(0x23a)]=!![],_0x2897bd[_0x47cf8c(0x5c8)]=_0x5ba4ab;}};return _0x5f044f['socket']={'remoteAddress':_0x5f044f['remoteAddress']??null},await _0x358fdf(_0x5f044f,_0x1bfd6f,async()=>{_0x185c82=!![];}),{'allowed':_0x185c82,..._0x2897bd};};return this[_0x2d5815(0x263)]['_call'](_0x2d5815(0x367),null,'use',[_0x422f2b],!![]),this;}get['maxBodyBytes'](){const _0x5a8828=_0x59ae48;return this[_0x5a8828(0x263)][_0x5a8828(0x7b0)](_0x5a8828(0x367),null,_0x5a8828(0x38d),[],![]);}set[_0x59ae48(0x719)](_0x1feb10){const _0x1046f6=_0x59ae48;this['okdb'][_0x1046f6(0x7b0)]('http',null,'setMaxBodyBytes',[Number(_0x1feb10)],![]);}[_0x59ae48(0x328)](_0x7afaa1,_0x4fb612,_0x52ed4f={}){const _0x4ebd39=_0x59ae48,_0xd8de36=new Map(),_0x3e1549=(_0x4ee81a,_0x1bf224)=>this[_0x4ebd39(0x263)][_0x4ebd39(0x7b0)](_0x4ebd39(0x367),null,_0x4ee81a,_0x1bf224,![]),_0x3c0ece=_0x48d000=>{const _0x3809b2=_0x4ebd39,{connId:_0x1a433a}=_0x48d000;if(_0x48d000[_0x3809b2(0x854)]){const _0x1a5ef3=_0xd8de36[_0x3809b2(0x4ff)](_0x1a433a);_0xd8de36[_0x3809b2(0x6f8)](_0x1a433a);if(typeof _0x1a5ef3===_0x3809b2(0x5c4))_0x1a5ef3();return;}const _0x1cd323=(_0x2d5d21,_0x304e08,_0x4a531b={})=>{const _0x46690e=_0x3809b2;try{_0x3e1549(_0x46690e(0x462),[_0x1a433a,_0x2d5d21,_0x304e08,_0x4a531b]);}catch{}},_0xffd2fa=()=>{const _0x248f93=_0x3809b2;try{_0x3e1549(_0x248f93(0x5b5),[_0x1a433a]);}catch{}},_0x1b43da=(_0x47e854,_0x54a6ee)=>_0x3e1549(_0x3809b2(0x3f2),[_0x1a433a,String(_0x47e854),String(_0x54a6ee)]),_0x38de8b={'auth':{'open':_0x48d000[_0x3809b2(0x400)],'isAuthenticated':_0x48d000['authenticated']}},_0x32ac37=_0x4fb612({'send':_0x1cd323,'close':_0xffd2fa,'params':_0x48d000[_0x3809b2(0x275)]??{},'query':_0x48d000['query']??{},'headers':_0x48d000['headers']??{},'context':_0x38de8b,'setHeader':_0x1b43da});_0xd8de36['set'](_0x1a433a,_0x32ac37);};return this['okdb'][_0x4ebd39(0x7b0)](_0x4ebd39(0x367),null,_0x4ebd39(0x328),[_0x7afaa1,_0x3c0ece,_0x52ed4f],!![]),this;}get[_0x59ae48(0x366)](){const _0x34ee37=_0x59ae48;return this[_0x34ee37(0x5ee)]();}[_0x59ae48(0x5ee)](){const _0x496b5d=_0x59ae48;return this[_0x496b5d(0x263)][_0x496b5d(0x7b0)]('http',null,'listRoutes',[],![])[_0x496b5d(0x4ba)](_0x380296=>({..._0x380296,'matcher':_0x130bde(_0x380296[_0x496b5d(0x1aa)],_0x380296[_0x496b5d(0x619)])}));}[_0x59ae48(0x869)](_0x42bb80,_0x492e36){const _0x54bcf2=_0x59ae48;return this[_0x54bcf2(0x263)][_0x54bcf2(0x7b0)](_0x54bcf2(0x367),null,_0x54bcf2(0x869),[_0x42bb80,_0x492e36],![]);}[_0x59ae48(0x5c6)](_0xe5bf39,_0x23f8dc={}){const _0x56ab01=_0x59ae48;if(typeof _0x23f8dc==='string'||Array[_0x56ab01(0x55b)](_0x23f8dc))_0x23f8dc={'host':_0x23f8dc};_0x23f8dc=_0x23f8dc??{};if((Number(_0x23f8dc['workers'])||0x0)>=0x1||_0x23f8dc[_0x56ab01(0x775)]!=null||_0x23f8dc['primaryOkdb']!=null){const _0x339a8b=new Error(_0x56ab01(0x292)+_0x56ab01(0x409)+_0x56ab01(0x269)+_0x56ab01(0x298));_0x339a8b['code']=_0x56ab01(0x587);throw _0x339a8b;}if(this[_0x56ab01(0x55f)][_0x56ab01(0x2f6)])throw new Error('HTTP\x20server\x20already\x20running');const _0x1e866f=_0x23f8dc['host']==null?[undefined]:[][_0x56ab01(0x18e)](_0x23f8dc[_0x56ab01(0x1c7)]);if(!_0x1e866f[_0x56ab01(0x2f6)]||_0x1e866f[_0x56ab01(0x7ce)](_0x306f54=>_0x306f54!==undefined&&(typeof _0x306f54!==_0x56ab01(0x460)||!_0x306f54))){const _0x3c52bb=new Error(_0x56ab01(0x651));_0x3c52bb[_0x56ab01(0x22a)]=_0x56ab01(0x519);throw _0x3c52bb;}const _0x494e51=require$$2[_0x56ab01(0x598)]?{..._0x23f8dc,'reuseport':!![]}:_0x23f8dc,_0x862243=this[_0x56ab01(0x263)]['_call']('http',null,'listen',[_0xe5bf39,_0x494e51],!![]),_0x44b9e6=_0x862243[_0x56ab01(0x402)]??_0xe5bf39,_0x27ab7f=_0x23f8dc['host']==null?':'+_0x44b9e6:_0x1e866f[_0x56ab01(0x4ba)](_0x3501a5=>(_0x3501a5[_0x56ab01(0x75e)](':')?'['+_0x3501a5+']':_0x3501a5)+':'+_0x44b9e6)[_0x56ab01(0x486)](',\x20');try{this['okdb'][_0x56ab01(0x4a5)][_0x56ab01(0x767)](_0x27ab7f);if(!require('node:cluster')[_0x56ab01(0x598)])this['okdb'][_0x56ab01(0x4a5)]['register']({'kind':_0x56ab01(0x384),'listenAddr':_0x27ab7f});}catch{}this['servers']=_0x862243[_0x56ab01(0x1f9)][_0x56ab01(0x4ba)](_0x5d7001=>new _0x50b0c5(this,_0x5d7001));const _0x2b09c9=this['servers'][0x0];return process[_0x56ab01(0x4a3)](()=>this['servers'][_0x56ab01(0x175)](_0x5062c0=>_0x5062c0[_0x56ab01(0x380)](_0x56ab01(0x85b)))),_0x2b09c9;}async[_0x59ae48(0x508)](_0x3974f8={}){const _0x150533=_0x59ae48,_0x2f1f25=this[_0x150533(0x55f)];this[_0x150533(0x55f)]=[];if(require$$2['isWorker']&&!process['connected']&&_0x3974f8[_0x150533(0x3c6)]==null)_0x3974f8={..._0x3974f8,'forceAfterMs':Infinity};if(_0x2f1f25[_0x150533(0x2f6)]){const _0x406a99=_0x3974f8['forceAfterMs']===Infinity?Infinity:Number[_0x150533(0x6ef)](_0x3974f8[_0x150533(0x3c6)])?Math[_0x150533(0x6c5)](0x0,_0x3974f8[_0x150533(0x3c6)]):0x3e8,_0x59d28e=Date[_0x150533(0x785)]();while(this[_0x150533(0x263)][_0x150533(0x7b0)]('http',null,_0x150533(0x69c),[],!![])>0x0&&Date[_0x150533(0x785)]()-_0x59d28e<_0x406a99)await new Promise(_0x393603=>setTimeout(_0x393603,0x5));_0x3974f8={..._0x3974f8,'forceAfterMs':_0x406a99===Infinity?0x3e8:Math[_0x150533(0x6c5)](0x0,_0x406a99-(Date['now']()-_0x59d28e))};}await this['_n'](_0x150533(0x508),[_0x3974f8]);for(const _0x70a24b of _0x2f1f25){_0x70a24b[_0x150533(0x82b)](),_0x70a24b[_0x150533(0x85b)]=![],_0x70a24b['emit'](_0x150533(0x508));}}}return http={'OKDBHttp':_0x497b8d},http;}var fts,hasRequiredFts;function requireFts(){const _0x3ef1e3=_0x1c5fdf;if(hasRequiredFts)return fts;hasRequiredFts=0x1;const _0x5a1308=_0x47a274=>(_0x47a274&&typeof _0x47a274===_0x3ef1e3(0x86d)?_0x47a274['name']:_0x47a274)??_0x3ef1e3(0x3e4);class _0x5bbaee{constructor(_0x4f7f27){this['okdb']=_0x4f7f27;}['_n'](_0x5bfee3,_0x3e8435,_0x253cb8=![]){const _0x5c6783=_0x3ef1e3;return this[_0x5c6783(0x263)][_0x5c6783(0x7b0)](_0x5c6783(0x6bf),null,_0x5bfee3,_0x3e8435,_0x253cb8);}[_0x3ef1e3(0x581)](_0x2c8171,_0x10930a){const _0x49f606=_0x3ef1e3;return this[_0x49f606(0x263)][_0x49f606(0x217)](_0x49f606(0x6bf),null,_0x2c8171,_0x10930a,!![]);}get[_0x3ef1e3(0x66e)](){const _0x3f7039=this,_0x344b99=_0x1b6085=>{const _0x23d6c9=_0x20ac,_0x46bd8a=_0x1b6085[_0x23d6c9(0x374)](':'),_0x936838=_0x1b6085[_0x23d6c9(0x5d1)](0x0,_0x46bd8a),_0x50eebf=_0x3f7039[_0x23d6c9(0x263)]['_envs'][_0x23d6c9(0x4ff)](_0x936838);if(!_0x50eebf)return undefined;const _0x4505b4=_0x50eebf['processor']['list']()[_0x23d6c9(0x5a2)](_0x306815=>_0x306815[_0x23d6c9(0x5b6)]==='fts:'+_0x1b6085);if(!_0x4505b4)return undefined;return _0x50eebf['processor']['_stopFor'](_0x4505b4['id'],_0x4505b4[_0x23d6c9(0x5b6)]);};return{'get':_0x344b99,'has':_0x41d7f7=>!!_0x344b99(_0x41d7f7)};}get[_0x3ef1e3(0x39a)](){return[];}[_0x3ef1e3(0x3f8)](){const _0x44e7a4=_0x3ef1e3,{RawDb:_0x383601}=requireRawdb();return new _0x383601(this[_0x44e7a4(0x263)][_0x44e7a4(0x25d)],_0x44e7a4(0x3ec));}[_0x3ef1e3(0x868)](_0x689aaa,_0x50f3a6,_0x4faf1b){const _0x3bf0c9=_0x3ef1e3;return this['_n'](_0x3bf0c9(0x868),[_0x689aaa,_0x50f3a6,_0x5a1308(_0x4faf1b)]);}['status'](_0x4def7b,_0x3d878c,_0x2063ba){const _0x4162e6=_0x3ef1e3;return this['_n'](_0x4162e6(0x392),[_0x4def7b,_0x3d878c,_0x5a1308(_0x2063ba)]);}[_0x3ef1e3(0x690)](_0x40f7ed,_0x38568b){const _0x3a72d2=_0x3ef1e3;return this['_n'](_0x3a72d2(0x690),[_0x40f7ed,_0x5a1308(_0x38568b)]);}async[_0x3ef1e3(0x20c)](_0x224568,_0x6f5c78,_0x48d886,_0x42650b,_0x371f50){const _0x1b4a72=_0x3ef1e3,_0x417d51=(_0x4bece4,_0x2dd260)=>this[_0x1b4a72(0x263)][_0x1b4a72(0x217)](_0x1b4a72(0x6bf),null,_0x4bece4,_0x2dd260,!![],![]),_0x1ca8c3=Date[_0x1b4a72(0x785)]()+0x1d4c0;let _0x38df24=_0x224568,_0x55e8a4=_0x6f5c78;for(;;){try{return await _0x417d51(_0x38df24,_0x55e8a4);}catch(_0x2897bb){if(_0x2897bb[_0x1b4a72(0x22a)]===_0x1b4a72(0x5c7)){_0x38df24=_0x1b4a72(0x87a),_0x55e8a4=[_0x48d886,_0x42650b,_0x5a1308(_0x371f50)];if(_0x2897bb[_0x1b4a72(0x2f7)]&&_0x2897bb[_0x1b4a72(0x2f7)]['wait'])await new Promise(_0x35efbd=>setTimeout(_0x35efbd,0x2));continue;}if(_0x2897bb[_0x1b4a72(0x22a)]!==_0x1b4a72(0x699)||Date['now']()>=_0x1ca8c3)throw _0x2897bb;}await new Promise(_0x1f4431=>setTimeout(_0x1f4431,0x5)),_0x38df24='reset',_0x55e8a4=[_0x48d886,_0x42650b,!![],_0x5a1308(_0x371f50)];}}async['register'](_0x35d286,_0xe43ea3,_0x573482,_0x57d533,_0x792dfd){return this['_build']('register',[_0x35d286,_0xe43ea3,_0x573482,_0x57d533,_0x5a1308(_0x792dfd)],_0x35d286,_0xe43ea3,_0x792dfd);}async[_0x3ef1e3(0x68d)](_0x4498c8,_0x4ac3cf,_0x2186a5){const _0x53e25c=_0x3ef1e3;return this[_0x53e25c(0x581)]('drop',[_0x4498c8,_0x4ac3cf,_0x5a1308(_0x2186a5)]);}async[_0x3ef1e3(0x4c3)](_0x2188f1,_0x1513e0,_0x3b6126,_0x158570){const _0x2a937f=_0x3ef1e3;return this[_0x2a937f(0x20c)](_0x2a937f(0x4c3),[_0x2188f1,_0x1513e0,_0x3b6126,_0x5a1308(_0x158570)],_0x2188f1,_0x1513e0,_0x158570);}async['reset'](_0x1df346,_0x1bb3f2,_0x1f579e,_0x9febdb){const _0x16d1cc=_0x3ef1e3;return this[_0x16d1cc(0x20c)](_0x16d1cc(0x3b4),[_0x1df346,_0x1bb3f2,_0x1f579e,_0x5a1308(_0x9febdb)],_0x1df346,_0x1bb3f2,_0x9febdb);}async[_0x3ef1e3(0x2c5)](_0x38b6a7,_0x1e89fe,_0x33f2a6,_0x2fc38a=0x1d4c0){const _0x37f661=_0x3ef1e3,_0x1c49f3=Date['now']()+_0x2fc38a;for(;;){try{return await this['_nm'](_0x38b6a7,[..._0x1e89fe,0x1]);}catch(_0x39f2d8){if(_0x39f2d8[_0x37f661(0x22a)]!==_0x33f2a6||Date[_0x37f661(0x785)]()>=_0x1c49f3)throw _0x39f2d8;}await new Promise(_0x1bb7b8=>setTimeout(_0x1bb7b8,0x2));}}async[_0x3ef1e3(0x37b)](_0x43922d,_0x1533b0,_0x26d371){const _0x5bd0f7=_0x3ef1e3;return this[_0x5bd0f7(0x2c5)]('ready',[_0x43922d,null,_0x5a1308(_0x26d371)],_0x5bd0f7(0x5dd));}async[_0x3ef1e3(0x803)](_0x5cb743,_0x247a38){const _0x575550=_0x3ef1e3;return this[_0x575550(0x2c5)](_0x575550(0x803),[_0x5cb743,_0x5a1308(_0x247a38)],_0x575550(0x178));}async[_0x3ef1e3(0x88f)](_0x261a31,_0x1ad544){const _0x2d6256=_0x3ef1e3;return this['_nm'](_0x2d6256(0x88f),[_0x261a31,_0x5a1308(_0x1ad544)]);}async[_0x3ef1e3(0x7de)](_0x1b2766={}){const _0x109856=_0x3ef1e3;return this[_0x109856(0x581)](_0x109856(0x7de),[_0x1b2766]);}async[_0x3ef1e3(0x7d9)](_0x8f62db){const _0x44e1d9=_0x3ef1e3;return this[_0x44e1d9(0x581)](_0x44e1d9(0x7d9),[_0x5a1308(_0x8f62db)]);}[_0x3ef1e3(0x1ec)](_0x227294){const _0x1e56d0=_0x3ef1e3;return this['_n'](_0x1e56d0(0x1ec),[_0x5a1308(_0x227294)]);}['search'](_0x396434,_0x3cb08d,_0x56ba62,_0x1c6d39,_0x34d8f5){const _0x23893b=_0x3ef1e3;return this['_n'](_0x23893b(0x64e),[_0x396434,_0x3cb08d,_0x56ba62,_0x1c6d39||{},_0x5a1308(_0x34d8f5)]);}['searchDocs'](_0x4994cf,_0x557b82,_0x305138,_0x6fe6bf,_0x790f84,_0x445e5c){const _0x3507ea=_0x3ef1e3;return this['_n'](_0x3507ea(0x82c),[_0x4994cf,_0x557b82,_0x305138,_0x6fe6bf||{},_0x5a1308(_0x790f84),_0x445e5c]);}['_searchWithScores'](_0x382ca3,_0xc9c74f,_0x146512,_0x4bbb44,_0x34fd9c){const _0x193297=_0x3ef1e3;return this['_n'](_0x193297(0x640),[_0x382ca3,_0xc9c74f,_0x146512,_0x4bbb44||{},_0x5a1308(_0x34fd9c)]);}[_0x3ef1e3(0x2ce)](){const _0x5744d9=_0x3ef1e3;return this['_n'](_0x5744d9(0x2ce),[]);}async[_0x3ef1e3(0x61a)](){const _0x4c76b0=_0x3ef1e3;return this[_0x4c76b0(0x581)]('drain',[]);}}return fts={'OKDBFts':_0x5bbaee},fts;}function _0x2854(){const _0x3f2570=['queue.worker(\x27','_set','\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer','OKDBInvalidValueError','\x27\x20already\x20registered','ttl:expired','state','registerReducer','_rawTxnBuf','_stateDb','_release','searchDocs','defaultTTL','_ensureTokensType','guard','Missing\x20plugin:\x20','_logEnv','items','ctxUpdateStatus','defineProperty','job.claim_expires\x20must\x20be\x20number|null','status_code','inBatch','sync','20wmrFAP','sessionId','dropped','_advanceHlcOnRecv','log\x20entry\x20fields\x20must\x20be\x20object|null','setTTL','dropFts','_id','\x0a\x09\x09let\x20','_inlineClosureWarned','running','durableTierLag','_cmd','_blobPath','files.upload:\x20id','LICENSE_FEATURE_DISABLED','mean','resolveField:\x20type\x20required','TXN_INVALID_ACTION','iterator','bucket\x20too\x20long','start','_hybridQuery','~ref_violations','mode','import','REF_VIOLATION','cleanup','\x27\x20does\x20not\x20exist\x20in\x20type\x20\x27','OKDBError','Engine\x20driver\x20type\x20must\x20be\x20a\x20non-empty\x20string','removeSync','SYSTEM_POKE','toLowerCase','listening','durableRetryDoc','_clockToChangeDb','_flushTimer','job_type.defaults.max_tries\x20must\x20be\x20int\x20>=\x201\x20or\x20null','ensure:\x20fts\x20entry\x20missing\x20name\x20or\x20fields','fields','_store','admission','destroy','$type','writeKey','compaction','has','validateRouteInput','license:removed','areIndexesReady','prepareTxnEnqueue','object','job.backoff_multiplier\x20must\x20be\x20number\x20>=\x201','changeToClockDb','snapshot','SCHEMA_COLLECTION_INVALID','applyOps','T_SESSION','_setPeerState','$options','Transaction\x20already\x20closed','_quantumGate','_reconcile','preparer\x20must\x20be\x20a\x20function','buildStep','job','reject','emitClearDone','INVALID_STATE','isRunning','\x20of\x20env\x20\x22',':clockToChange','validateBlobIntegrity','(?:/(.*))?','/([^/]+)','\x20already\x20exists','$where','isInteger','_typesDb','489160RXrZCW','HTTP_ERROR','_buckets','markSnapshotComplete','_fail','hasIndex','compact','INVALID_VALUE','_closed','getBucket','hasEmbedderFactory','enable','_buildOwnRow','processor:\x20cannot\x20combine\x20a\x20closure\x20handler\x20with\x20module:{path,export}.\x20','uninstallEngine','String\x20does\x20not\x20fit\x20in\x20target\x20buffer','resetCursor','job.bucket_tokens\x20must\x20be\x20int\x20>=1','_ts','ENCRYPTION_KEY_REQUIRED','autoCompactState','removeJob','durableWorkerStats','processRest()','_sweepOrphanLogs','__HOLD__','_connections','schema:drop','createEngine','attachFeed','importBlobs','doesExist','then','debounceTimer','_busFacade','Query\x20operator\x20\x22','forEach','_durableEmbedderInfo','embeddings:embed:settled','FTS_FLUSH_TIMEOUT','scheduled','setUint32','percentile','doc','listTypes','relay:error','_started','txnId','$pending','timestamp','_nodePrivateKey','__notImplementedNative','BAD_PARAM','BAD_EMBEDDER_FACTORY','_statusEnv','clearTTL','Cannot\x20set\x20enforce\x20schema\x20on\x20','embedBatch','getRefViolation','retryJob','pinned\x20range\x20iterator\x20held\x20across\x20an\x20await/turn\x20boundary.\x20This\x20surface\x20cannot\x20resume\x20','concat','_low','note','resumed','~log','ALREADY_EXISTS','_startClaimedSoon','_stopAutoCompactCheck','removeEnvironment','interest','apiCall','~system','meanwhile\x20—\x20the\x20frozen\x20view\x20cannot\x20be\x20kept.\x20Materialize\x20synchronously\x20(e.g.\x20Array.from)\x20','FOREIGN_KEY_VIOLATION','readerCheckIntervalMs','isSnapshotComplete','node','describeType','writerStatus','enableNullTermination',':\x20not\x20implemented\x20in\x20the\x20native\x20build\x20yet','_getOidcDiscovery','flushMaxWait','ringSize','enableAll','db.processors.','txn:start','socket','path','sort','isDeepStrictEqual','PLUGIN_ALREADY_REGISTERED','viewOp','$near','backoff_multiplier','.\x20The\x20active\x20license\x20does\x20not\x20enable\x20\x22','refreshThresholdMs','readField','hasNativeBatch','shutdownTimeout','streamRead','__esModule','field:resolver_registered','_rbuf','limitOf','runPoll','findOwner','openDB','write\x20batch:\x20missing\x20result','capacity','[log-sink]\x20','onUndo','OKDBSchemaValidationError','lastClock','handleError','drivers','TYPE_NOT_REGISTERED','host','_emit','ctxRelease','inputSchema','isOrchestrator','resetView','ttlSetEntry','$lte','getStateAt','Algorithm\x20factory\x20must\x20return\x20an\x20object\x20with\x20','backup','system:stopped','repair','\x20>\x204)\x20{\x0a\x09\x09\x09if\x20(','index:drop','_settleWrite','_root','_dedupeKey','create','subscriptions-store:\x20addInterest\x20on\x20unknown\x20session\x20','loginSelect','_jsSchemas','workerState','offsetOf','txnUndone','null','headers','done','_handlePoke','acquired','materialize\x20them\x20(Array.from)\x20while\x20the\x20view\x20is\x20live.','queue:removed','fromCharCode','invalid\x20log\x20level:\x20','1285550RwdSFJ','\x22\x20must\x20be\x20a\x20plain\x20object','registerBucketProjection','envSize','warn','pin','_readViewExpired','callBatch','error','transaction\x20commit\x20failed',':keyToChange','useReadTransaction\x20range\x20consumed\x20after\x20the\x20creation\x20turn\x20—\x20the\x20consistent\x20view\x20was\x20','turnWaiters','resolvedFields','opts','engine','addrs','raw','Unique\x20constraint\x20violated\x20on\x20','isIndex','changeEncryptionKey:\x20to','_lookupAllByName','listRecords','max_concurrency','stopAll','setStorageResolver','sourceType','a\x20non-empty\x20string','signal','_licenseInterval','entries','embeddings:indexer:doc:queued','forgetDb','Type\x20\x22','fromEntries','_build','isType','vec:','buildOwnRow','getRunningEngine','_desired','engineStop','_claimGated','setHostPlugins','_info','hasStopFn','_callMacro','_blobStatusTxn','storage\x20adapter\x20is\x20gone','registerChunkStrategy','upsertLink','_setKey','job.buckets[].id\x20must\x20be\x20non-empty\x20string','pop','\x20returned\x20no\x20key','Embedder\x20factory\x20for\x20\x22','attachOKDB','nativeBinaryPath','_range','_timerObjs','shouldApplyChange','bucket.capacity\x20must\x20be\x20int\x20>=\x200','exportBlobs','getPrototypeOf','tolerant','code','_openLocalPeerDb','MCP_ERROR','for','returnRecoverableErrors','listIndexes','events','backoffUntil','_debounceTimer','_readBuf','stats','_admissionStarted','references','OKDBSchemaCollectionError','Buffer','chunk\x20strategy\x20must\x20be\x20a\x20function','hasBody','job.tag\x20must\x20be\x20string|null','remoteAddress','recommended','claim_expires','_buffer','\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.','isCoordinator',';return\x20{','durableRebuild','_buf','startsWith','isFeatureEnabled','compact/repair\x20already\x20in\x20progress\x20for\x20this\x20environment','target','\x20must\x20be\x20number','tries','reidentify','durableEmbedderInfo','actions','failed_ttl','queue:reconciled','bucket\x20\x22','_workers','committed','MINIMUM_KEY','~queue_jobs','clearScan','_detachLog','_scheduleTTLSweep','runtimeDeclarations','hasApi','floor','_startAutoCompactCheck','STOPPED','_systemEnv','_handleInProcess','resolveBackupDest','_stopFor','range','INDEXER','okdb','targetKey','markJobProgress','setSchema','token','registerAlgorithmFactory','CLI\x20(`okdb\x20listen`),\x20or\x20use\x20Node\x27s\x20built-in\x20`cluster`\x20module\x20and\x20call\x20','_kbuf','true','removeTxn','view','applyInterestDelta','_enableChangelog','cursor','turns','_read','reconcilePeerPull','_http','params','startAutoCompactCheck','OKDBInvalidIndexKeyError','OKDBIndexAlreadyRegisteredError','_dedupeMax','_ensureDesired','_ttlState','_baselines','system:proc','quantum','MAXIMUM_KEY','change','_envSyncStop','started','createAndStartEngine','server','listProviders',':data','_wb','_markSeen','subarray','system','relay','reducers','_getPeerState','recordRun','enabled','_indexBuilds','_reconcilePeer','http.listen({workers/makeOkdb/primaryOkdb})\x20is\x20no\x20longer\x20supported\x20in\x20the\x20','_settleWaiters','getOidcDiscovery','properties','patch','drainDeadlineMs','okdb.http.listen(port)\x20in\x20each\x20worker.','Blob\x20missing\x20for\x20file:\x20','regInfo','PUT','setKick','\x22\x20must\x20have\x20a\x20start()\x20method','meta','bus','flushDebounce','lookupByTokenHash','txnDone','gen','isEnabled','bulkRemoveChunk','a\x20string','_peerDb','privateKey','enqueueClaim','catalog',':emb:','files\x20feature\x20not\x20available','processor:\x20quantum.module\x20must\x20be\x20a\x20string','online','_ttlByKey','_syncLock','clearStuck','storeHasDiff','__ttlByKey','msg','killWorker','Map','validateOidcAccessToken','bucket.id\x20must\x20be\x20non-empty\x20string','tags\x20must\x20be\x20array\x20or\x20string','addEventListener','env:opened','resolveField','encoder','reverse','_resolveFilter','.\x20Valid:\x20','reencrypt:\x20env','startClaimed','startIndex','isBootstrap','_waitNative','job.bucket\x20must\x20be\x20string|null','inline','REMOVE','dropSchema','_onStop','pauseAllAndDrain','okdb-node:\x20a\x20background\x20async\x20handler\x20rejected:\x20','claim_id','listFtsEnvs','new','tokens','waiting','Type\x20\x27','indexer\x20engine\x20not\x20running:\x20\x22','_getType','exportEnvsBuf','apply','halted','handler','resetIndexBegin','_txnIdAtSnapshot','registerType','indexer','dataView','lmdb','empty\x20string','_rebuilding','exportEnvsToStream','consumeLoginState','registerViewReducer','_deliverEvent','changeEncryptionKey','nextExpiry','_windowCbs','getEngine','heartbeat','uninstalled','delta_limit','CREATED','formerIds','split','_ttlByExpiry','mcp','setPrototypeOf','a\x2032-character\x20key\x20or\x20a\x20function\x20returning\x20one','createPublicKey','flushed','~log_entry','length','details','ExtendedIterable','bus:proc','logCap','flushQuantum','Plugin\x20must\x20have\x20a\x20name','functions','Array.from)\x20before\x20any\x20await.','txn','itemsPlan','markJobComplete','role','maxMs','no\x20write\x20has\x20landed.\x20Writes/commit\x20are\x20unaffected.','_txnBuf','~queue_logs','each\x20process()\x20entry\x20requires\x20a\x20non-empty\x20`type`','~emb:models','_wsettle','licenses','orchestratorStarted','inNativeCall','closeSession','~processes','allSettled','embeddings:indexer:doc:done','connectionCount','refill_every','_settle','job_type.payload_schema.definition\x20must\x20be\x20object','_defaultEnv','engineStart','isSync','reg','_onPoke','\x22\x20requires\x20a\x20`handler`\x20function','ingest','_isOpenForIp','\x27\x20export\x20\x27','$mod','setPeersFn','TXN_INVALID_OPS','ttlTimer','_doHooks','nextTurn','position','Index\x20\x22','rowKey','pid','addSSE','grouped','level','getUniqueViolation','storeEnv','_ensureDbs','processor:paused','ONLINE','PLUGIN_NAME_CONFLICT','closeEnvLocally','_openEnvLazy','RELAY_FULL','Can\x20not\x20serialize\x20async\x20iterables\x20without\x20first\x20calling\x20resolving\x20asArray','mkdirSync','REVERSE_INDEX','_writer','sweepExpired','importBuf','markJobHeartbeat','_envs','startNewEnginesFromSync','item:','Schema\x20validation\x20failed\x20for\x20','setAddress','_isBootstrap','getRecord','_report',':txnRange','killAll','_clockListener','bucket\x20id\x20required','__ttlByExpiry','unique:violation','handleResult','getBinary','durableDoc','getCount','stringify','login','onDelete','_cursors','_refCache','_enqueueInTxn','$within','/?$','_ensureEnv','getChanges','describeTypeDetailed','createQueryTester','type','OKDBForeignKeyError','clone','stopped','_wrap','reencrypt','Engine\x20template\x20build()\x20is\x20required:\x20','docs','_subscribeEvent','_ensureTypeEnv','setCursor','getCursor','INVALID_PRIMARY_KEY','routes','http','status_message','onDone','guardSnapshotIterable',']\x20already\x20maps\x20to\x20\x27','debug','dedupeMax','ITEM_REMOVE','_startAdmission','once','diag','engineType','run','indexOf','Unable\x20to\x20serialize\x20object\x20as\x20a\x20key:\x20','syncLock','resolveField:\x20resolver\x20must\x20be\x20a\x20function','autoCompact',':index:','mapError','ready','durableCursorFloor','\x27\x20is\x20already\x20registered','_push','registerFts','emit','onWindow','OKDBVersionMismatchError','ies','standalone','doc_status:',':\x20unknown\x20option\x20\x27','indexContent','addBucket','geoConfig','_lookupByName','ttl:set','updated','getMaxBodyBytes','_writerWatchdogInterval','retryable','NativeLock','dupSort','status','\x22\x20on\x20\x22','allocUnsafeSlow','~queue_buckets','unregisterExtractor','docEntry','set','ENGINE_DRIVER_MISSING_START','_pendingOps','processor:ready','__desired','STARTED','job_type.defaults.priority\x20must\x20be\x20int\x20or\x20null','failures','_features','files','setMaxListeners','inclusiveEnd','lastTxnId','5714019MVkvWk','registerQuantum','\x20log\x20entr','__tokenSecret','resumeJobType','ms\x20busy=','creating','setWake','an\x20environment\x20name','end','_pendingLocal','__syncOverride','durableStats','removed','getBlobStatus','reset','select','drives','authorization','cause','getTypeCount','_makeLazyVectorAdapter','_admissionTimer','_ackDb','before\x20any\x20await\x20—\x20or\x20opt\x20into\x20useReadTransaction:\x27tolerant\x27\x20to\x20keep\x20reading\x20while\x20','File\x20not\x20found:\x20','embeddings:indexer:doc:failed','push','_blobStream','resetUnknownOptionsWarned','prototype','restrict','getFloat64','forceAfterMs',',\x20got\x20','typesDb','_teardownNative','open','node:events','add','Algorithm\x20factory\x20must\x20be\x20a\x20function','ctxEmit','signalWant','752372VATJMl','getDefaultTTL','min','repairBlobRefs','bucket.tokens\x20cannot\x20exceed\x20capacity','~ttl:expiry','resetFts','(source)\x20=>\x20{','registerExtractor','maxExtra','_uid','Invalid\x20primary\x20key\x20type:\x20','update','1396008RRzmlV','log','_resolveKeys','_sweepInProgress','resetting','FOREIGN_KEY_DELETE_RESTRICTED','__ttlCancelledGen','default','async','isTypeEmpty','_addr','stateNames','INVALID_TYPE_NAME','last','indexReady','~fts:envs','$exists','continueIteration','WORKER','_indexBuild','_feed','sseSetHeader','_readerCheckInterval','describeIndex','cookies','exports','no_action','_envIndexDb','bootSyncedPipelines','$payload','processor:resumed','job_type.defaults\x20must\x20be\x20object|null','fail','~queue_payloads','getRun','authOpen','pushEphemeral','port','setProcessingConfig','bus:env_release','OKDBAlreadyExistsError','viewDb','countByIndex','job.max_tries\x20must\x20be\x20int\x20>=\x201,\x20null\x20(unlimited)\x20or\x20Infinity','library\x20(okdb\x20node-model\x202.0).\x20For\x20multi-process\x20HTTP\x20serving\x20use\x20the\x20okdb\x20','TYPE_ALREADY_REGISTERED','Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results','taken','_localViews','parseBearer','createLoginState','job_type.id\x20must\x20be\x20non-empty\x20string','job_type.defaults.','storeGetDiffs','storeEnvName','Engine\x20driver\x20already\x20registered:\x20\x22','processor:\x20module\x20\x27','max_tries','processor:error','encryption\x20key\x20function','patchSelf','failed','listLinks','hasEnv','boundary\x20(a\x20pinned\x20read\x20txn\x20blocks\x20LMDB\x20free-page\x20reuse).\x20Do\x20all\x20consistent\x20reads\x20','env:removed','engines','item','export','_patch','fts:drop','\x20>=\x200x80)\x20','Cannot\x20delete\x20','QUERY_OPERATOR_FORBIDDEN','info','_assertFiles','LICENSE_LIMIT_EXCEEDED','_isFar','selfKey','ftsQuery','OKDBTypeNotRegisteredError','ensureTokensType','starting','detachFeed','getUniqueViolations','_refIndexDb','processor:\x20module.path\x20is\x20required','process\x20options.admission\x20must\x20be\x20a\x20function','_allEnvsWithFiles','BAD_ALGORITHM_FACTORY','process(filter)','_path','listViolations','ENGINE_INVALID_TEMPLATE','_runRecord','OKDBNotFoundError','_durableWorkerStats','getIndex','setPeerState','pump','data','storeGetConfig','clients','pause','before\x20any\x20await,\x20chunk\x20with\x20{limit,\x20start,\x20exclusiveStart},\x20or\x20drop\x20snapshot:true.','_plugins','_jsFactories','views','resetIndex','Environment\x20\x22','txn:rollback','assertCreateAllowed','queue','claim\x20requires\x20non-empty\x20type',';\x20got\x20','Plugin\x20\x27','_staticCall','~files','stopView','INDEX_HAS_CONSUMERS','_locks','_handles','license','OKDBProcessor','~processes:desired','isOpenForIp','requires','readerCheck','job.type\x20must\x20be\x20non-empty\x20string','turn','TXN_ERROR','string','metaDb','sseSend','_timer','TXN_ROLLBACK','hlc','uninstall','_asArray','_getNodeRecord','removeEventListener','queue:clear-progress','byteOffset','\x20documents\x20fail\x20validation','number','okdb-node:\x20unknown\x20callback\x20id\x20','KNOWN_OPTIONS','getOpenWarning','total','OKDBTypeAlreadyRegisteredError','~proc:state','groupsDb','16uXdxej','refItemsDbs','existsSync','_ack','chunks','install','tryAcquire','getValues','finished','samplePayloads','backupRoot','dbs','ctxLog','3.1.0','equal','ITEM_PENDING','setAutoCompact','join','_native','_assertRangeOptions','node:stream','runtimeState','INDEXER_DOC_DONE','envNames','createWriteStream','clearDone','_changefeed','QUEUE_WORKER_REMOVED','isWanted','recordPeerAck','replaceMember','embedderNew','index:ready','createEnvironment','subscriptions','READER_HELD_ACROSS_AWAIT','scopedName','unresolveField','immediate','quarantined','released\x20at\x20the\x20first\x20await/turn\x20boundary.\x20Consume\x20ranges\x20before\x20any\x20await,\x20or\x20','msgpackr','balanced','_localViewApi','preview','resolve','nextTick','\x20must\x20be\x20a\x20non-empty\x20string;\x20got\x20','processes','__adminRelay','Date','_tokenSecret','T_INTEREST','recomputeFields','HTTP\x20','Engine\x20template\x20id\x20must\x20be\x20a\x20non-empty\x20string','size','extend','markJobFail','child','Embedder\x20factory\x20must\x20be\x20a\x20function','_hlc','calculateDelta','ITEM_CREATE','bootRuntimeDeclarations','validate','transaction','processor:progress','load','map','embeddings','loop-lag','system:poke','INVALID_INDEX_KEY','listModels','~sub','claimGated','clearAsync','ensure','okdb._openEnvLazy:\x20env\x20\x22','_keyFns','modeApplied','OKDBInvalidPrimaryKeyError','afterTurn','readFieldMany','constructor','aborted','listBuckets','stream','upload','snapshotScan','claimed','setLastClock','unique:violation_resolved','-----BEGIN\x20PUBLIC\x20KEY-----\x0aMCowBQYDK2VwAyEAacrkExPrhxNVHyeQBLDwg8xfm1OwyxDAPNdGXABYS2s=\x0a-----END\x20PUBLIC\x20KEY-----','~ttl:key','written','durableMarkFail','license:invalid','_update','registerDriver','invalid\x20job_type.status:\x20','plugins','setDefaultTTL','INDEX_PROGRESS','OKDBUniqueConstraintError','detachConsole','worker','PLUGIN_DEPENDENCY_MISSING','envPath','_run','getGcHorizon','_blobStatusDb','Engine\x20template\x20kind\x20must\x20be\x20\x22engine\x22\x20or\x20\x22pipeline\x22:\x20','listJobTypes','bigint','createHash','_pdb','shift','isWriter','done_ttl','bucket\x20must\x20be\x20object','uploadTxn','Referenced\x20key\x20\x27','compare','.\x20Add\x20a\x20license\x20that\x20includes\x20\x22','_initialize','ctxProgress','Native','vector','txn:end','storeGetTotalHeadCount','hasUniqueViolations','_reconcileDesired','tag','records','ENGINE_INVALID_TYPE','awaitIdle','get','createSearch','stor','$regex','_drainOne','_detachConsole','processorsStop','getSecurityNotices','admin','close','node:util','sha256','digest','context','gcOrphanedBlobs','queue-worker','job_type.defaults.retry_delay\x20must\x20be\x20int\x20>=\x200\x20or\x20null','disable','addJobType','getFast','files.registerExtractor:\x20extractor\x20must\x20be\x20a\x20function','bucket.refill_every\x20must\x20be\x20int\x20>=\x200','_keyListener','unique','removeLink','listPath','BAD_HOST','DOC_STATUS_CHANGE','_pumper','_onPending','trim','INDEX_ALREADY_REGISTERED','\x20which\x20does\x20not\x20exist','_openAckDb','sortedDb','module','return','$nor','pauseJobType','_np','appendJobLog','_nextExpiry','releaseClaim','restart','addInterest','_callPacked','createEmbedder','describeAllTypes','puts','granId','isBuffer','registerModel','listIndexKeys','values','durableMarkDone','durableClock','assertQueryOptions','intervalTimer','node:cluster','_durableIndexerStats','ctxHeartbeat','clearSync','_handlePending','$size',':index','Symbol.asyncIterator','nodeKeys','keys','log\x20entry\x20must\x20be\x20a\x20string\x20or\x20object','__blobStatusDb','schema','authenticateRequest','\x22\x20tokens\x20too\x20large','RangeError','_draining','INDEXER_DOC_FAILED','ttlStats','unref','__cmd','HIGH_SENTINEL','ALL_EVENTS','algorithm\x20is\x20gone','_nodePublicKey','symbol','setNative','checkSignals','resolveField:\x20a\x20resolver\x20or\x20options.batch\x20is\x20required','\x22\x20not\x20found\x20in\x20~envs','getEmbedderSchema','_onItem','errors','_env','isArray','_commitSessionMutation','randomUUID','\x20must\x20be\x20','servers','bootSyncedViewsInline','config','OKDBIndexHasConsumersError','__fts:','setMode','createIndexer','storePayload','_db','_undoHooks','$not','durableDocs','jsonrpcCode','_write','ref','processorsParticipating',')\x20+\x20readString(source)}','job.id\x20must\x20be\x20string','getIndexMeta','origin','EMBED_PENDING','item:remove','txn\x20op\x20must\x20be\x20an\x20object\x20or\x20tuple','spawn','wake','229360kwfiyZ','timeMachine','$and','$streamId','typeSubDbs','index:','fetchJson','resetIndexFinish','_macro','_nm','err','reconcile','stop','runGc','_ttlTimerAt','HTTP_CLUSTER_REMOVED','args','getNodeRecord','__logsDb','register','item:update','failJob','type:drop','encryptionKeys','attachConsole','_sync','resolveModelDims','limits','typeId','_rebuild','describeChunk','_pending','isWorker','batch','SUB_ENV','ms/','_getRaw','.\x20Primary\x20keys\x20must\x20be\x20string\x20or\x20number.\x20Got:\x20','pinned','setReadBuffer','SCHEMA_VALIDATION_FAILED','free','find','stopHandle','field\x20resolver\x20request\x20still\x20pending','exportToFile','write','_tids','job.tries\x20must\x20be\x20non-negative\x20int','getPeerState','getStats','emb','fetchRemoteDelta','_seen','dirty','_clearChunked','getIndexStatus','abort','setLogSink','clearTtl','_lockHandle','sseClose','cursorKey','_remove','ERROR','formerOrigins','limit','group','~file:blob_status','importFromStream','registerHandler:\x20fn\x20must\x20be\x20a\x20function','utf8','continueOnRecoverableError','ensureTypeEnv','send','_sinks','function','ms\x20max=','listen','FTS_BUILD_CONTINUE','body','okdb-node:\x20unknown\x20bridge\x20op\x20','refreshReadTxn','listVectorStores','priority','patchDeclaration','_OPTION_HINTS','\x22\x20to\x20enable\x20it.','Database\x20already\x20opened/closed','slice','okdb.noFast','createWorker','putSync','TXN_END','fieldPath','valuesForKey','queue:failed','_isReader','_rootDb','locks','readHashRange','FTS_READY_TIMEOUT','TXN_START','_ensureVectorStore','_deliver','message','OKDBIndexNotRegisteredError','job\x20id\x20required','setCurrentDb','_okdbAdminAttached','getRaw','reason','useReadTransaction\x20read\x20view\x20expired:\x20the\x20snapshot\x20was\x20released\x20at\x20the\x20first\x20await/turn\x20','__peers','features','STARTING','exclusiveStart','read','listRoutes','listRuns','_closeReadTransaction','getPeerAcks','kind','logCap\x20must\x20be\x20null\x20or\x20integer\x20in\x20[','session','_dupArg','engine:','process()\x20entry\x20\x22','\x20dropped\x20(buffer\x20full)','SYSTEM_STOPPED','isReader','hasChangelog','pipelines','_license','pipelineFamily','license:added','release','_log','readTransaction','existing','\x22)\x20before\x20open()',',\x20source)\x0a\x09\x09}\x20else\x20{\x0a\x09\x09\x09if\x20(','quarantinedEnvs','tryClaimTokens','getKeys','created','_pressure','next','cancelJob','Invalid\x20index\x20key\x20type\x20for\x20\x27','assign','usedBy','exportBuf','_adminRelay','compactLock','refs','okdb-','STOPPING','trunc','lookupAllByName','bucket','defaults','drain','_clearTTL','_getFast','blobsDir','registerEmbedderFactory','feed:','getSchema','_running','use','_makeIterator','updateBucket','queue:log','_lazyPinned','\x27\x20is\x20not\x20a\x20function','maxDbs','busEmit','notes','dims','catch','encryption\x20key\x20function\x20failed:\x20','Foreign\x20key\x20violation:\x20','TXN_INVALID_OP','driver','instanceTimerArmed','_closedHandle','\x22\x20is\x20not\x20allowed\x20(it\x20evaluates\x20code);\x20use\x20declarative\x20operators\x20instead','flushTicket','removeJobLogsAfterCommit','ms\x20mean=','hasType','native','buckets','node:path','exportToStream','allowUnsafe','types','listPeers','rollback','searchWithScores','disableAll','bootLogMark','__stateDb','_attached','TypeError','BAD_PLUGIN','removeListener','vector-search','envs','queue:retry','timerArmed','summary','mapSize','search','lookupByName','Referenced\x20type\x20\x27','http.listen:\x20host\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20a\x20non-empty\x20array\x20of\x20non-empty\x20strings','WORKERS_REMOVED','payload','previewTemplate','getRange','_ensurePeerState','_facade','value','_tx','job_type.max_concurrency\x20must\x20be\x20int\x20>=\x201\x20or\x20null','peers','enqueue','INDEXER_DOC_QUEUED','job_type.defaults.buckets\x20must\x20be\x20array|null','health','_status','_subscribed','job.finished\x20must\x20be\x20number|null','dropIndex','files.upload:\x20stream','durableEngineDoc','migrate','options','useReadTransaction','remote','okdb_session','processors','createdBy','header','_processorStops','_ttlParseComposite','_customReducers','rows','buffer','acquiredAt','CHANGEFEED_QUANTUM','address','inflight','setKeyBuffer','~processes:cmd','unpin','streamByHash','stateInfo','durableMarkDelete','storeEnvPath','runDrop','bootSyncedEngines','vecRemove','initialize','storageStats','OKDB','~fts:','isSetupMode','rebuild','dropAll','callAsync','dataEnv','_timerHandle','pressure','api','drop','getSelfNode','idempotency_key','list','keyFor','payload_schema','outgoing','prevDb','openEnv','__lock','Storage\x20resolver\x20must\x20be\x20a\x20function','ITEM_UPDATE','FIELD_RESOLVER_PENDING','registerPreparer','_meta','pendingResponses','log\x20entry\x20fields\x20too\x20large\x20(>2KB\x20serialized)','queue:enqueued','registerQuantum:\x20name\x20must\x20be\x20a\x20non-empty\x20string','subscribe','clearDefaultTTL','bootSyncedViews','resolvedOptions','asyncIterator','must\x20be\x20an\x20object;\x20got\x20null','setModeApplied','from','embedderCall','created_at','$gte','createPipeline','loaded','ttl:clear','callRows:\x20unexpected\x20row\x20stride\x20','dup','removeJobTypeSchema','system:ready','_validateOidcAccessToken','fingerprint','removeJobType','encryptionKey','registerQuantum:\x20load\x20must\x20be\x20a\x20function','definition','listBlobStatus','\x20│\x20','_retryPending','materializer','getHistory','DEFAULT_EVENTS','_sub','fts','bootRuntime','ceil','a\x20Buffer\x20or\x20readable\x20stream','_flushIntervalTimer','flushPoll','max','_writeBlob','$or','processor:\x20rebuild\x20must\x20be\x20a\x20function','cascade','oauth','_durableIndexerDocs','isLoopbackIp','embeddings:indexer:flushed','index:progress','job.priority\x20must\x20be\x20int','_syncExpiresAtField','retry_delay','isActive','asArray','_viewCache','job_type.payload_schema.enforce\x20must\x20be\x20boolean','boolean','system:env_release','-worker','throw','targetType','_registerType','bucket_tokens','getStatus','$gt','processorsStatus','listRefViolations','\x22\x20is\x20used\x20by:\x20','setToken','vectorSpace','processor','\x22\x20tokens\x20must\x20be\x20>=\x201','$ne','registerTarget','ref:violation_resolved','getDefinition','isHeld','listTemplates','DEFAULT_TTL_MS','byteLength','_callRows','isFinite','License\x20limit\x20exceeded:\x20','_key','callPacked','build','req','timer','\x27\x20at\x20','typeStats','delete','resume','reconcilePeer','enforced','match','refTrackingDbs','setJobTypeSchema','tag\x20too\x20long','_ttlBackoffUntil','_listening','Index\x20\x27','flatMap','resumeOpts','_oauthConfig','isBun','getJobType','_settled','autoCompactTimerArmed','ctrl','_ttlCompositeKey','getByPrefix','job.buckets[].tokens\x20must\x20be\x20int\x20>=\x201','SEARCH','versions','newListener','VERSION_MISMATCH','auth','hasOwnProperty','_keepAlive','commit','dropType','_maxConnections','algorithm\x20has\x20no\x20method\x20','maxBodyBytes','$ref','root','proc','_durableIndexerDoc','query','_tickCallback','vectorStoreStats','removes','\x27\x20doesn\x27t\x20exist','readKey','ENGINE_DRIVER_ALREADY_REGISTERED','setLogger','embedder','clearFailed','Key\x20is\x20too\x20large','__okdb','toFixed','streamClose','use\x20engines.registerDriver()','getTemplate','_subsV2Obj','describeAllTypesDetailed','orchestrator','inspect','setBridge','\x27\x20did\x20not\x20return\x20a\x20valid\x20instance','license:activated','useVersions','toISOString','holder','test','_handlerName','removeBucket','pending','pokeHandler','tick','__warned','nodeKey','node:http','_durableEngineDoc','queue:rescheduled','bucketsDb','getJob','itemsGroups','\x20(required\x20by\x20','TXN_CLOSED','getEmbedderFactory','gateQuanta','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.','index','stopping','record','blobPath','hook','encryption:key-changed','Feature\x20not\x20licensed:\x20','forceResync','captureStackTrace','Blob\x20not\x20found:\x20','getLegacyCursor','replace','@harperdb/extended-iterable:skip','callStatic','listTTL','kick','version','subsBuilt','fts:reset','includes','Expected\x20catch\x20callback\x20to\x20be\x20a\x20function','ttlMs','resolution','stack','job.retry_delay\x20must\x20be\x20int\x20>=\x200','retry','call','tierList','noteListenAddr','count','logChange','type:','_registrations','getAll','4986GMJnrB','off','handle','paused','txn\x20ops\x20must\x20be\x20an\x20array','registerHandler','bucket.refill_amount\x20must\x20be\x20int\x20>=\x200','\x20===\x204)\x0a\x09\x09\x09\x09','makeOkdb','_makePipelineApi','undefined','embed','Invalid\x20onDelete\x20rule\x20\x27','evict','getJobLogs','put','Cannot\x20register\x20plugins\x20after\x20start','installed','registerTemplate','spki','view:progress','patchConfig','handlerName','onLicenseExpired','now','return\x20fromCharCode(','ttlState','loop-lag\x20','geoQuery','_stream','updateJob','_quantum','when','toMs','handleDurableClock','bucket.tokens\x20must\x20be\x20int\x20>=\x200','setDeltaLimit','itemsDb','\x27\x20on\x20type\x20\x27','writeBlob','(?:','_typeKeys','advanceHlcOnRecv','embeddings:strategy:registered','unregisterTarget','_modeApplied','error_stack','_unknownOptionsWarned','clock','_afterDurable','getResolvedOptions','detach','setClaiming','_stops','effective','drainJobType','sweepExpiredTTL','bus:poke','processorHold','\x20=\x20source[position++]\x0a\x09\x09\x09else\x0a\x09\x09\x09\x09return\x20fromCharCode(','_assertOpen','hash','ENGINE_INVALID_DRIVER','TXN_ENV_MISMATCH','resumeAllAfterDrain','getMany','__sync:peer_state','_call','lockHeld','instance','emitProc','action','_settleRead','compareKeys','iterate','_flushDebounce','enqueue\x20txn\x20belongs\x20to\x20a\x20different\x20environment','_isClosedEnvError','_changeToClockDb','toJSON','_scheduleFlush','clear','listAlgorithms','_defaultEnvObj','json','job.','_warnUnknownOptions','embeddings:indexer:ready','_ringSize','refreshTtlBatch','getInt32','toBufferKey','compiled','readString\x20}','offset','charCodeAt','lock','some','_pokeListener','links','\x20references\x20','log\x20entry\x20message\x20required','setInt32','SKIP','reducer','alg','issueToken','$in','compactStorage','getClock','Unknown\x20OKDB\x20transaction\x20error','byLabel','pumping','process','_isOpen','engineUninstall','ttl','getMeta','_bootLog','key','customReducerNames','remove','_listenAddr','there\x20is\x20no\x20`http`\x20option\x20—\x20the\x20HTTP\x20server\x20exists\x20only\x20when\x20db.http.listen(port)\x20is\x20called','getAuthOptions','_formerOrigins','$defs','applyChange','_emitProc','getTTL','unpack','284DAZqDJ','runRecord','sourceKey','bucket.updated\x20must\x20be\x20number','getViolation','exportName','ensure:\x20view\x20entry\x20missing\x20name\x20or\x20definition','ensure:\x20type\x20is\x20required','filter','getEntry','embedder\x20request\x20still\x20pending','\x27:\x20','cron','EMBEDDER','envName','freeze','stopWorkerBegin','Database\x20not\x20started','ENV_NOT_FOUND','flush','_onFeedChange','refill_amount','localViewStats','byIndex','~engines','index:reset','name','utf8Write','_tools','embeddings:pipeline:ready','bumpVersion','job_type.defaults.ttl\x20must\x20be\x20int\x20>=\x200\x20or\x20null','_listeners','job\x20type\x20must\x20be\x20object','\x27\x20conflicts\x20with\x20existing\x20OKDB\x20property','_lock','onDo','authenticateToken','ensureType','_logChange','bind','_closeEnvLocally','_detachLogSink','isOAuthEmailAllowed','attach','embed-worker','createWriteFacade','env','./native-loader.js'];_0x2854=function(){return _0x3f2570;};return _0x2854();}var embeddings,hasRequiredEmbeddings;function requireEmbeddings(){const _0x4aa2e4=_0x1c5fdf;if(hasRequiredEmbeddings)return embeddings;hasRequiredEmbeddings=0x1;const {OKDBError:_0x47bd1c,invalidArgument:_0x20ecff}=requireErrors();requireBridge();const _0x40af1e=Object[_0x4aa2e4(0x7ff)]({'EMBEDDER':_0x4aa2e4(0x726),'INDEXER':_0x4aa2e4(0x2dc),'SEARCH':_0x4aa2e4(0x648),'WORKER':_0x4aa2e4(0x81d)}),_0x589568=_0x2b6835=>typeof _0x2b6835==='string'||_0x2b6835==null?_0x2b6835:Array['from'](_0x2b6835);class _0x121a23{constructor(_0x230aa7){const _0x34a43c=_0x4aa2e4;this['okdb']=_0x230aa7,this[_0x34a43c(0x447)]=new Map(),this[_0x34a43c(0x1dc)]=new Map(),this[_0x34a43c(0x6d4)]=new Map();}['_n'](_0x4ff9d0,_0x195b14=[],_0x1f71b4=!![]){const _0x16f27f=_0x4aa2e4;return this[_0x16f27f(0x263)][_0x16f27f(0x7b0)](_0x16f27f(0x4bb),null,_0x4ff9d0,_0x195b14,_0x1f71b4);}[_0x4aa2e4(0x581)](_0x23cd78,_0x2b443a=[]){const _0x451ac3=_0x4aa2e4;return this[_0x451ac3(0x263)][_0x451ac3(0x217)](_0x451ac3(0x4bb),null,_0x23cd78,_0x2b443a,!![]);}[_0x4aa2e4(0x35d)](_0x589dfa){const _0x5b1029=_0x4aa2e4;return _0x589dfa?this[_0x5b1029(0x263)]['engines'][_0x5b1029(0x35d)](_0x589dfa):null;}[_0x4aa2e4(0x61e)](_0x23a316,_0x1f7142,_0x15893e={}){const _0x215bed=_0x4aa2e4;if(typeof _0x1f7142!==_0x215bed(0x5c4))throw new _0x47bd1c(_0x215bed(0x4b1),'BAD_PARAM',{'name':_0x23a316});this[_0x215bed(0x447)][_0x215bed(0x398)](_0x23a316,_0x1f7142),this['_jsSchemas'][_0x215bed(0x398)](_0x23a316,_0x15893e);const _0x5cd861=this['okdb'],_0x3fcc73=_0x589f80=>_0x1f7142(_0x589f80,_0x5cd861);_0x3fcc73['__okdb']=_0x5cd861,this['_n'](_0x215bed(0x61e),[_0x23a316,_0x3fcc73,_0x15893e??{}],![]);}[_0x4aa2e4(0x748)](_0xe2416f){const _0x422f9f=_0x4aa2e4,_0x2c37ee=this[_0x422f9f(0x447)][_0x422f9f(0x4ff)](_0xe2416f);if(_0x2c37ee)return _0x2c37ee;if(!this['_n'](_0x422f9f(0x893),[_0xe2416f],![]))return null;const _0x52424f=this;return(_0x67c47e={})=>{const _0x13c69d=_0x422f9f,_0x3cafc1=_0x52424f['_n'](_0x13c69d(0x494),[_0xe2416f,_0x67c47e],![]),_0x57bf6d=_0x52424f['_n'](_0x13c69d(0x1b4),[_0x3cafc1],![]),_0x26ca6f=(_0x27bdea,_0x39f187)=>_0x52424f['_n'](_0x13c69d(0x6a8),[_0x3cafc1,_0x27bdea,_0x39f187],![]),_0x548dcd={'embed':async _0x49417a=>Float32Array[_0x13c69d(0x6a7)](_0x26ca6f(_0x13c69d(0x778),_0x49417a)),'start':async()=>_0x26ca6f(_0x13c69d(0x84e)),'stop':async()=>{const _0x418971=_0x13c69d;_0x26ca6f('stop'),_0x26ca6f(_0x418971(0x5a1));}};if(_0x57bf6d)_0x548dcd['embedBatch']=async _0xcb0e32=>_0x26ca6f(_0x13c69d(0x18a),_0xcb0e32)[_0x13c69d(0x4ba)](_0x22cad2=>Float32Array[_0x13c69d(0x6a7)](_0x22cad2));return _0x548dcd;};}[_0x4aa2e4(0x557)](_0x3a6ab3){const _0x222ca9=_0x4aa2e4;return this[_0x222ca9(0x1dc)][_0x222ca9(0x4ff)](_0x3a6ab3)??this['_n'](_0x222ca9(0x557),[_0x3a6ab3],![])??undefined;}[_0x4aa2e4(0x268)](_0x2da466,_0x488b4b,_0x317062={}){const _0x475d8a=_0x4aa2e4;if(typeof _0x488b4b!=='function')throw new _0x47bd1c(_0x475d8a(0x3cd),_0x475d8a(0x185),{'name':_0x2da466});this['_n'](_0x475d8a(0x268),[_0x2da466,(_0x263e8d,_0x1c868c)=>_0x488b4b(_0x263e8d,_0x1c868c),_0x317062??{}],![]);}[_0x4aa2e4(0x7bf)](){const _0x2594f9=_0x4aa2e4;return this['_n'](_0x2594f9(0x7bf),[],![]);}[_0x4aa2e4(0x69a)](_0xe0407a,_0x1caa10){const _0xfa2f06=_0x4aa2e4;if(typeof _0x1caa10!=='function')throw new _0x47bd1c(_0xfa2f06(0x879),_0xfa2f06(0x185),{'name':_0xe0407a});this['_n'](_0xfa2f06(0x69a),[_0xe0407a,_0x1caa10]);}[_0x4aa2e4(0x21a)](_0xb1d7c2,_0x3be2b8){const _0x3ac360=_0x4aa2e4;if(typeof _0x3be2b8!=='function')throw new _0x47bd1c(_0x3ac360(0x239),_0x3ac360(0x185),{'name':_0xb1d7c2});this['_n'](_0x3ac360(0x21a),[_0xb1d7c2,_0x3be2b8]);}['setStorageResolver'](_0x4af9a6){const _0x522fa6=_0x4aa2e4;if(_0x4af9a6==null)return this['_n'](_0x522fa6(0x202),[null],![]);if(typeof _0x4af9a6!=='function')throw new _0x47bd1c(_0x522fa6(0x697),'BAD_PARAM');const _0x5c1e29=this[_0x522fa6(0x263)];this['_n'](_0x522fa6(0x202),[_0x56417b=>_0x4af9a6(_0x56417b,_0x5c1e29)],![]);}async[_0x4aa2e4(0x52d)](_0x32c6b2,_0x45af04={},_0x203731={},_0x126e14=null){const _0x3979dd=_0x4aa2e4;return this[_0x3979dd(0x35d)](await this[_0x3979dd(0x581)](_0x3979dd(0x52d),[_0x32c6b2,_0x45af04,_0x203731,_0x126e14]));}async[_0x4aa2e4(0x565)](_0x2deeea,_0x240461={},_0x230583={}){const _0x30060d=_0x4aa2e4;return this[_0x30060d(0x35d)](await this[_0x30060d(0x581)](_0x30060d(0x565),[_0x2deeea,_0x240461,_0x230583]));}async[_0x4aa2e4(0x500)](_0x412309,_0x211433={},_0x44df87={}){const _0x23d766=_0x4aa2e4;return this[_0x23d766(0x35d)](await this[_0x23d766(0x581)](_0x23d766(0x500),[_0x412309,_0x211433,_0x44df87]));}async[_0x4aa2e4(0x5d3)](_0x459569,_0x520271={},_0x59d9cf={}){const _0x432703=_0x4aa2e4;return this[_0x432703(0x35d)](await this['_nm'](_0x432703(0x5d3),[_0x459569,_0x520271,_0x59d9cf]));}async[_0x4aa2e4(0x6ab)](_0x2d300e,_0x290324={},_0x5ec2df={}){const _0x4498da=_0x4aa2e4,_0x23fc59=await this[_0x4498da(0x581)](_0x4498da(0x6ab),[_0x2d300e,_0x290324,_0x5ec2df]);return{'embedder':this[_0x4498da(0x35d)](_0x23fc59[_0x4498da(0x726)]),'indexer':this['_wrap'](_0x23fc59['indexer']),'worker':this['_wrap'](_0x23fc59['worker']),'search':this[_0x4498da(0x35d)](_0x23fc59['search']),'api':this[_0x4498da(0x776)](_0x23fc59[_0x4498da(0x499)],_0x23fc59[_0x4498da(0x726)][_0x4498da(0x80a)],_0x23fc59[_0x4498da(0x4e0)]?_0x23fc59[_0x4498da(0x4e0)][_0x4498da(0x80a)]:_0x23fc59[_0x4498da(0x499)]+_0x4498da(0x6d8))};}[_0x4aa2e4(0x621)](_0x395656,_0xd2dde9){const _0x31352d=_0x4aa2e4;return this[_0x31352d(0x263)][_0x31352d(0x41f)][_0x31352d(0x210)](_0x395656,_0xd2dde9)?.[_0x31352d(0x68c)]??null;}[_0x4aa2e4(0x726)](_0x11e798){const _0x352d57=_0x4aa2e4,_0x5bcf87=this[_0x352d57(0x621)](_0x40af1e['EMBEDDER'],_0x11e798);if(!_0x5bcf87)return null;const _0x59f2e1=this,_0x446d6d=_0x42693f=>Array[_0x352d57(0x55b)](_0x42693f)&&Array['isArray'](_0x42693f[0x0])?_0x42693f['map'](_0x23819e=>Float32Array[_0x352d57(0x6a7)](_0x23819e)):Float32Array[_0x352d57(0x6a7)](_0x42693f);return new Proxy(_0x5bcf87,{'get'(_0x1869a3,_0x9ecea0){const _0x5b5dee=_0x352d57;if(_0x9ecea0===_0x5b5dee(0x62b))return _0x59f2e1[_0x5b5dee(0x263)][_0x5b5dee(0x7b0)](_0x5b5dee(0x41f),null,_0x5b5dee(0x198),[_0x40af1e[_0x5b5dee(0x7fd)],_0x11e798,_0x5b5dee(0x62b),[]],![])['value'];if(_0x9ecea0===_0x5b5dee(0x778))return async _0x48d09c=>_0x446d6d(await _0x5bcf87[_0x5b5dee(0x778)](_0x48d09c));if(_0x9ecea0==='embedBatch')return async _0x2ea452=>(await _0x5bcf87[_0x5b5dee(0x18a)](_0x2ea452))[_0x5b5dee(0x4ba)](_0x552a29=>Float32Array[_0x5b5dee(0x6a7)](_0x552a29));return _0x1869a3[_0x9ecea0];}});}[_0x4aa2e4(0x2dc)](_0x4a9188){const _0x5317f5=_0x4aa2e4;return this[_0x5317f5(0x621)](_0x40af1e[_0x5317f5(0x262)],_0x4a9188);}[_0x4aa2e4(0x4e0)](_0x3f06c4){const _0xf3a3e5=_0x4aa2e4;return this[_0xf3a3e5(0x621)](_0x40af1e[_0xf3a3e5(0x3ef)],_0x3f06c4);}[_0x4aa2e4(0x64e)](_0x4f1275){const _0x4f2205=_0x4aa2e4,_0x82ee8e=this[_0x4f2205(0x621)](_0x40af1e[_0x4f2205(0x70e)],_0x4f1275);if(_0x82ee8e)return _0x82ee8e;return this['_localViewApi'](_0x4f1275);}[_0x4aa2e4(0x4a0)](_0xfc5718){const _0xd5682e=_0x4aa2e4,_0x499680=this;return{'search':(_0x2d79b4,_0x219910={})=>_0x499680[_0xd5682e(0x263)][_0xd5682e(0x217)](_0xd5682e(0x4bb),null,_0xd5682e(0x64e),[_0xfc5718,_0x589568(_0x2d79b4),_0x219910],![]),'stats':async()=>_0x499680['_n'](_0xd5682e(0x806),[_0xfc5718],![]),'count':()=>_0x499680['_n'](_0xd5682e(0x1ae),[_0xfc5718,_0xd5682e(0x768)],![])};}async[_0x4aa2e4(0x82c)](_0x3bca3a,_0x7b16a1,_0x23e33b={}){const _0x56d5a5=_0x4aa2e4,{limit:limit=0xa,..._0x16cdb4}=_0x23e33b;return this['_nm'](_0x56d5a5(0x82c),[_0x3bca3a,_0x589568(_0x7b16a1),{..._0x16cdb4,'limit':limit}]);}[_0x4aa2e4(0x6e3)](_0x5cc7f2){const _0x5dc54b=_0x4aa2e4;return this['_n'](_0x5dc54b(0x6e3),[_0x5cc7f2],![]);}[_0x4aa2e4(0x741)](_0x5709a9,_0x56a122){const _0x3a0335=_0x4aa2e4;return this['_n'](_0x3a0335(0x665),[_0x5709a9,_0x56a122],![]);}[_0x4aa2e4(0x176)](_0x4dd817){const _0x59c233=_0x4aa2e4;return this['_n'](_0x59c233(0x24c),[_0x4dd817],![]);}async[_0x4aa2e4(0x53a)](_0x16a203){const _0x48b703=_0x4aa2e4;return this['_n'](_0x48b703(0x3b1),[_0x16a203],![]);}async[_0x4aa2e4(0x6cb)](_0x2d94b6,_0x1975c7={}){const _0x42f6d7=_0x4aa2e4;return this['_n'](_0x42f6d7(0x56a),[_0x2d94b6,_0x1975c7],![]);}async[_0x4aa2e4(0x71d)](_0x2a5489,_0x1bf50e){const _0x40c930=_0x4aa2e4;return this['_n'](_0x40c930(0x34b),[_0x2a5489,_0x1bf50e],![]);}async[_0x4aa2e4(0x596)](_0x41a93b,_0x58af6f,_0x5aea35,_0x670073){const _0x36f68d=_0x4aa2e4;if(_0x41a93b!=null&&typeof _0x41a93b['includes']!==_0x36f68d(0x5c4))throw _0x20ecff(_0x36f68d(0x80a),_0x36f68d(0x2a6),_0x41a93b);if(!_0x41a93b||!_0x5aea35)return null;return this[_0x36f68d(0x263)][_0x36f68d(0x217)](_0x36f68d(0x4bb),null,_0x36f68d(0x596),[_0x41a93b,_0x58af6f,_0x5aea35,_0x670073??null],![]);}async['durableMarkDone'](_0x4f7fa5,_0x29c86a,_0x1d5d73={}){const _0x2d3fb2=_0x4aa2e4,_0x5ae67a={..._0x1d5d73};if(_0x5ae67a[_0x2d3fb2(0x4f6)])_0x5ae67a[_0x2d3fb2(0x4f6)]=Array[_0x2d3fb2(0x6a7)](_0x5ae67a[_0x2d3fb2(0x4f6)]);return this['_n'](_0x2d3fb2(0x535),[_0x4f7fa5,_0x29c86a,_0x5ae67a]);}async[_0x4aa2e4(0x4d6)](_0x4e6320,_0x1e7bce,_0x4ea095,_0x453af5={}){const _0x5ec4c4=_0x4aa2e4;return this['_n'](_0x5ec4c4(0x4d6),[_0x4e6320,_0x1e7bce,_0x4ea095,_0x453af5]);}async[_0x4aa2e4(0x67c)](_0x2f87f4,_0x41fa0e){const _0x189917=_0x4aa2e4;return this['_n'](_0x189917(0x67c),[_0x2f87f4,_0x41fa0e]);}async[_0x4aa2e4(0x85c)](_0x2fafe0,_0x2c8d45){const _0x42ec62=_0x4aa2e4;return this['_n'](_0x42ec62(0x85c),[_0x2fafe0,_0x2c8d45]);}async['durableRetryFailed'](_0x251974,_0x27bf4d={}){return this['_n']('durableRetryFailed',[_0x251974,_0x27bf4d]);}async['durableRebuild'](_0x171979){const _0x161116=_0x4aa2e4;return this[_0x161116(0x581)](_0x161116(0x243),[_0x171979]);}async[_0x4aa2e4(0x43d)](_0x3dcb08){const _0x5878ec=_0x4aa2e4;return this['_n'](_0x5878ec(0x89f),[_0x3dcb08],![]);}[_0x4aa2e4(0x720)](_0x4c74ae){const _0x165178=_0x4aa2e4;return this['_n'](_0x165178(0x720),[_0x4c74ae],![]);}[_0x4aa2e4(0x5cb)](){const _0x5d92f8=_0x4aa2e4;return this['_n'](_0x5d92f8(0x5cb),[],![]);}['getVector'](_0x5ee5a5,_0x3516e9){const _0x575201=_0x4aa2e4,_0x530b1b=this['_n']('getVector',[_0x5ee5a5,_0x3516e9],![]);return _0x530b1b==null?null:Float32Array[_0x575201(0x6a7)](_0x530b1b);}[_0x4aa2e4(0x592)](_0x39d580,_0xc5b8f5){const _0x30277c=_0x4aa2e4;return this['_n'](_0x30277c(0x592),[_0x39d580,_0xc5b8f5??null],![])??undefined;}async['registerModel'](_0x28b710,_0x4088bf,_0x5e4394,_0x2fc3e0=''){const _0x4982e9=_0x4aa2e4;return this['_n'](_0x4982e9(0x532),[_0x28b710,_0x4088bf,_0x5e4394,_0x2fc3e0]);}[_0x4aa2e4(0x4bf)](_0x15064b=null){const _0x52da7=_0x4aa2e4;return this['_n'](_0x52da7(0x4bf),[_0x15064b],![]);}[_0x4aa2e4(0x285)](){const _0x1114b8=_0x4aa2e4;return this['_n'](_0x1114b8(0x285),[],![]);}async[_0x4aa2e4(0x362)](_0x70de66,_0x5c1f2f){const _0x1132e9=_0x4aa2e4;return this['_n'](_0x1132e9(0x5c1),[_0x70de66,_0x5c1f2f],![]),this[_0x1132e9(0x263)][_0x1132e9(0x355)]('~'+_0x70de66+':emb:'+_0x5c1f2f);}async[_0x4aa2e4(0x5df)](_0x2952ca,_0x447ff0){const _0x2d126e=_0x4aa2e4;return await this[_0x2d126e(0x362)](_0x2952ca,_0x447ff0),{'adapter':_0x3f499c=>this[_0x2d126e(0x3ba)](_0x2952ca,_0x447ff0,_0x3f499c)};}['_makeLazyVectorAdapter'](_0x3d897f,_0xdad229,_0x1bc1b2){const _0x1dcb6e=this;return{async 'put'(_0xfe7c08,_0x1ec0e4){return _0x1dcb6e['_n']('vecPut',[_0x3d897f,_0xdad229,_0x1bc1b2,_0xfe7c08,Array['from'](_0x1ec0e4)]);},async 'remove'(_0x438e72){const _0x39d13a=_0x20ac;return _0x1dcb6e['_n'](_0x39d13a(0x680),[_0x3d897f,_0xdad229,_0x1bc1b2,_0x438e72]);}};}get[_0x4aa2e4(0x40d)](){const _0x48636f=_0x4aa2e4,_0x3118bd=this,_0x2a5652=()=>_0x3118bd['_n']('localViewNames',[],![]),_0x3fec30=_0x5d5bea=>{const _0xce2914=_0x20ac,_0xc76ac4=_0x1dcdc9=>_0x3118bd['_n'](_0xce2914(0x1ae),[_0x5d5bea,_0x1dcdc9],![]);return{'name':_0x5d5bea,'_evict':async()=>_0xc76ac4('evict'),'evict':async()=>_0xc76ac4(_0xce2914(0x77a)),'snapshot':async()=>_0xc76ac4(_0xce2914(0x870)),'_snapshot':async()=>_0xc76ac4(_0xce2914(0x870)),'rebuild':async()=>_0xc76ac4(_0xce2914(0x686)),'stats':()=>_0xc76ac4(_0xce2914(0x234)),get 'count'(){const _0x2dafca=_0xce2914;return _0xc76ac4(_0x2dafca(0x768));},get 'loaded'(){const _0x2fcafa=_0xce2914;return _0xc76ac4(_0x2fcafa(0x6ac));}};};return{get 'size'(){const _0x8960fb=_0x20ac;return _0x2a5652()[_0x8960fb(0x2f6)];},'has':_0x1c4577=>_0x2a5652()[_0x48636f(0x75e)](_0x1c4577),'get':_0x1d8e5a=>_0x2a5652()[_0x48636f(0x75e)](_0x1d8e5a)?_0x3fec30(_0x1d8e5a):undefined,'keys':()=>_0x2a5652()[Symbol[_0x48636f(0x84c)]](),'values':()=>_0x2a5652()[_0x48636f(0x4ba)](_0x3fec30)[Symbol[_0x48636f(0x84c)]](),[Symbol[_0x48636f(0x84c)]]:()=>_0x2a5652()['map'](_0x1e5d6a=>[_0x1e5d6a,_0x3fec30(_0x1e5d6a)])[Symbol[_0x48636f(0x84c)]]()};}async[_0x4aa2e4(0x84e)](){}async[_0x4aa2e4(0x584)](){const _0x3d7aaa=_0x4aa2e4;this['_n'](_0x3d7aaa(0x584),[]);}['_makePipelineApi'](_0x94799d,_0x3ab39b,_0x35d37d){const _0x2c5580=_0x4aa2e4;return{'search':(_0x43ec6f,_0x35c3a4={})=>{const _0x6dcb2c=_0x20ac,_0x433392=this[_0x6dcb2c(0x64e)](_0x94799d);if(!_0x433392)throw new Error('vector-search\x20engine\x20not\x20running:\x20\x22'+_0x94799d+'\x22');return _0x433392['search'](_0x43ec6f,_0x35c3a4);},'searchDocs':(_0xff3854,_0x3614f0={})=>this[_0x2c5580(0x82c)](_0x94799d,_0xff3854,_0x3614f0),'flush':_0xf7a55d=>{const _0x58bae9=_0x2c5580,_0x1b5898=this[_0x58bae9(0x2dc)](_0x94799d);if(!_0x1b5898)throw new Error(_0x58bae9(0x2d3)+_0x94799d+'\x22');return _0x1b5898['flush'](_0xf7a55d);},'stats':async()=>({'embedder':await this[_0x2c5580(0x726)](_0x3ab39b)?.[_0x2c5580(0x65f)]?.(),'indexer':await this[_0x2c5580(0x2dc)](_0x94799d)?.[_0x2c5580(0x234)]?.(),'worker':await this[_0x2c5580(0x4e0)](_0x35d37d)?.[_0x2c5580(0x234)]?.(),'search':await this[_0x2c5580(0x64e)](_0x94799d)?.['stats']?.()})};}}return embeddings={'OKDBEmbeddings':_0x121a23,'ENGINE_TYPES':_0x40af1e},embeddings;}var auth,hasRequiredAuth;function requireAuth(){const _0x1505a0=_0x1c5fdf;if(hasRequiredAuth)return auth;hasRequiredAuth=0x1;const {invalidArgument:_0x2b1ddd}=requireErrors();class _0x57ac1b{constructor(_0x313beb){const _0x25b948=_0x20ac;this[_0x25b948(0x263)]=_0x313beb;}['_n'](_0x1db1a5,_0x410111=[],_0x29d901=![]){const _0x3b611e=_0x20ac;return this[_0x3b611e(0x263)][_0x3b611e(0x7b0)]('auth',null,_0x1db1a5,_0x410111,_0x29d901);}[_0x1505a0(0x581)](_0x3a8cc1,_0xe92610=[]){const _0x42f688=_0x1505a0;return this[_0x42f688(0x263)][_0x42f688(0x217)]('auth',null,_0x3a8cc1,_0xe92610,![]);}get[_0x1505a0(0x851)](){const _0x392039=_0x1505a0;return this['_n'](_0x392039(0x851));}get[_0x1505a0(0x685)](){const _0xd6ea2a=_0x1505a0;return this['_n'](_0xd6ea2a(0x685));}get[_0x1505a0(0x705)](){const _0x579590=_0x1505a0;return this[_0x579590(0x263)][_0x579590(0x667)][_0x579590(0x712)]?.[_0x579590(0x6ca)]||{};}[_0x1505a0(0x81b)](_0x47b1fc){const _0x64863a=_0x1505a0;return this['_n'](_0x64863a(0x81b),[_0x47b1fc??null]);}[_0x1505a0(0x31c)](_0x1f704e){const _0x5827da=_0x1505a0;return this['_n'](_0x5827da(0x45a),[_0x1f704e??null]);}['_isLoopbackIp'](_0x1ac045){const _0x351e88=_0x1505a0;return this['_n'](_0x351e88(0x6cc),[_0x1ac045??null]);}[_0x1505a0(0x340)](){const _0x3da03c=_0x1505a0;return this['_n'](_0x3da03c(0x2c4));}[_0x1505a0(0x470)](){const _0x116a24=_0x1505a0;return this['_n'](_0x116a24(0x470));}[_0x1505a0(0x7e9)](){const _0x2807dd=_0x1505a0;return this['_n'](_0x2807dd(0x7e9));}['issueToken'](_0x2a866a){const _0x3aec71=_0x1505a0;return this['_n'](_0x3aec71(0x7d7),[_0x2a866a]);}['authenticateToken'](_0x431b36){const _0x450fd6=_0x1505a0;return this['_n'](_0x450fd6(0x815),[_0x431b36]);}[_0x1505a0(0x40e)](_0x156ee6){const _0xcdf081=_0x1505a0;if(_0x156ee6!=null&&typeof _0x156ee6!=='string')throw _0x2b1ddd(_0xcdf081(0x66d),_0xcdf081(0x2a6),_0x156ee6);return this['_n']('parseBearer',[_0x156ee6??null]);}async[_0x1505a0(0x82e)](){const _0x21237b=_0x1505a0;return this['_n'](_0x21237b(0x42e),[],!![]);}async['_lookupByTokenHash'](_0x40dc28){const _0x44426c=_0x1505a0;return this['_n'](_0x44426c(0x2a1),[_0x40dc28]);}async[_0x1505a0(0x38a)](_0x32774b){const _0x417644=_0x1505a0;return this['_n'](_0x417644(0x64f),[_0x32774b]);}async[_0x1505a0(0x1fe)](_0x2a985a){const _0x403587=_0x1505a0;return this['_n'](_0x403587(0x617),[_0x2a985a]);}async['authenticateRequest'](_0x1740f3){const _0x310c88=_0x1505a0,_0x534eb0=_0x1740f3?.[_0x310c88(0x1e1)]||{};return this['_n'](_0x310c88(0x546),[{'remoteAddress':_0x1740f3[_0x310c88(0x1a9)]?.[_0x310c88(0x23c)]??null,'internal':_0x1740f3?.[_0x310c88(0x50c)]?.['internal']===!![],'authorization':_0x534eb0[_0x310c88(0x3b7)]??null,'cookies':_0x1740f3?.[_0x310c88(0x3f5)]??{}}]);}async[_0x1505a0(0x34e)](_0x2ca8d7,_0x5ddda3){const _0x56a079=_0x1505a0;return this[_0x56a079(0x581)](_0x56a079(0x34e),[_0x2ca8d7??null,_0x5ddda3??null]);}async[_0x1505a0(0x1db)](_0x31c1ee,_0x50d813,_0x20942c){return this['_nm']('loginSelect',[_0x31c1ee??null,_0x50d813??null,_0x20942c??null]);}[_0x1505a0(0x506)](){const _0x46954e=_0x1505a0;return this['_n'](_0x46954e(0x506));}['getLoginConfig'](){return this['_n']('getLoginConfig');}[_0x1505a0(0x40f)](_0x55cf83={},_0x471273=0x927c0){const _0x4b1653=_0x1505a0;return this['_n'](_0x4b1653(0x40f),[_0x55cf83,_0x471273]);}[_0x1505a0(0x2e2)](_0x1e3b52){const _0x4cb509=_0x1505a0;return this['_n'](_0x4cb509(0x2e2),[_0x1e3b52]);}async[_0x1505a0(0x6b2)](_0x1ced69,_0x53e1bf={}){const _0x5862ad=_0x1505a0;return this[_0x5862ad(0x581)](_0x5862ad(0x2b7),[_0x1ced69,_0x53e1bf]);}async[_0x1505a0(0x1a3)](_0x2a7a6a={}){const _0x23332b=_0x1505a0;return this[_0x23332b(0x581)](_0x23332b(0x294),[_0x2a7a6a]);}['_normalizeOAuthAuthResult'](_0x570ede){return this['_n']('normalizeOAuthAuthResult',[_0x570ede]);}}return auth={'OKDBAuth':_0x57ac1b},auth;}var sync,hasRequiredSync;function requireSync(){const _0x5d5af0=_0x1c5fdf;if(hasRequiredSync)return sync;hasRequiredSync=0x1;const {RawDb:_0x4039bf}=requireRawdb();class _0xd86d9f{constructor(_0x2c71de){this['_s']=_0x2c71de;}get[_0x5d5af0(0x3bc)](){const _0x1ed874=_0x5d5af0;return this['_ack']||(this[_0x1ed874(0x478)]=new _0x4039bf(this['_s'][_0x1ed874(0x263)][_0x1ed874(0x25d)],'__sync:acks'));}[_0x5d5af0(0x520)](){return this['_ackDb'];}[_0x5d5af0(0x32d)](){const _0x2854a0=_0x5d5af0;return this[_0x2854a0(0x3bc)];}['_n'](_0xace36e,_0x34a406=[]){return this['_s']['_n']('gc.'+_0xace36e,_0x34a406);}[_0x5d5af0(0x492)](_0x458f59,_0x5bd974){return this['_n']('recordPeerAck',[_0x458f59,_0x5bd974]);}async['forceResync'](_0x298116){const _0x6e80c5=_0x5d5af0;return this['_n'](_0x6e80c5(0x752),[_0x298116]);}[_0x5d5af0(0x5f1)](){const _0x11137e=_0x5d5af0;return this['_n'](_0x11137e(0x5f1));}[_0x5d5af0(0x4e4)](_0x5a80a5){const _0xa0661a=_0x5d5af0;return this['_n'](_0xa0661a(0x4e4),[_0x5a80a5]);}async['runGc'](){const _0x11e8d0=_0x5d5af0;return this['_n'](_0x11e8d0(0x585));}[_0x5d5af0(0x6dd)](){const _0x288eb7=_0x5d5af0;return this['_n'](_0x288eb7(0x6dd));}[_0x5d5af0(0x84e)](){const _0x1cdab4=_0x5d5af0;return this['_n'](_0x1cdab4(0x84e));}[_0x5d5af0(0x584)](){const _0x4ddd98=_0x5d5af0;return this['_n'](_0x4ddd98(0x584));}get['_gcTimer'](){const _0x1ce2a0=_0x5d5af0;try{return this['_n'](_0x1ce2a0(0x64b))?{}:null;}catch{return null;}}}class _0x4e5590{constructor(_0x494f2f){const _0x232d89=_0x5d5af0;this[_0x232d89(0x263)]=_0x494f2f,this['gc']=new _0xd86d9f(this);const _0x42557b=this;this[_0x232d89(0x667)]=new Proxy({},{'get':(_0x1fcc2a,_0x6134a0)=>typeof _0x6134a0==='string'?_0x42557b['_n']('options')[_0x6134a0]:undefined,'set':(_0x624a2f,_0x24b6ac,_0x34da5a)=>{const _0x4b5c1e=_0x232d89;if(_0x24b6ac===_0x4b5c1e(0x675))_0x42557b['_n'](_0x4b5c1e(0x33f),[_0x34da5a??null]);else{if(_0x24b6ac===_0x4b5c1e(0x267))_0x42557b['_n'](_0x4b5c1e(0x6e2),[_0x34da5a??null]);else{if(_0x24b6ac===_0x4b5c1e(0x2eb))_0x42557b['_n'](_0x4b5c1e(0x791),[_0x34da5a]);}}return!![];},'ownKeys':()=>Object[_0x232d89(0x542)](_0x42557b['_n'](_0x232d89(0x667))),'getOwnPropertyDescriptor':(_0x25008e,_0x1048d4)=>({'enumerable':!![],'configurable':!![],'value':_0x42557b['_n'](_0x232d89(0x667))[_0x1048d4]}),'has':(_0x5034b4,_0x14b57c)=>_0x14b57c in _0x42557b['_n'](_0x232d89(0x667))});}['_n'](_0x53977f,_0x53ef4e=[],_0x27dfd9=![]){const _0x4415fb=_0x5d5af0;return this[_0x4415fb(0x263)][_0x4415fb(0x7b0)](_0x4415fb(0x838),null,_0x53977f,_0x53ef4e,_0x27dfd9);}[_0x5d5af0(0x581)](_0x288bac,_0x124863=[]){const _0x2a1044=_0x5d5af0;return this[_0x2a1044(0x263)][_0x2a1044(0x217)](_0x2a1044(0x838),null,_0x288bac,_0x124863,!![]);}get[_0x5d5af0(0x2a7)](){const _0x10bffe=_0x5d5af0;return this['_pdb']||(this[_0x10bffe(0x4ea)]=new _0x4039bf(this[_0x10bffe(0x263)][_0x10bffe(0x25d)],_0x10bffe(0x7af)));}[_0x5d5af0(0x22b)](){const _0x377060=_0x5d5af0;return this[_0x377060(0x2a7)];}get[_0x5d5af0(0x376)](){const _0xfd0bd4=_0x5d5af0;return this[_0xfd0bd4(0x2b0)]||(this['_syncLock']=new(requireLock())[(_0xfd0bd4(0x390))](this[_0xfd0bd4(0x263)],_0xfd0bd4(0x199),_0xfd0bd4(0x838),{'ttlMs':0x7530}));}get['address'](){const _0x2f58ed=_0x5d5af0;return this['_n'](_0x2f58ed(0x667))[_0x2f58ed(0x675)];}get[_0x5d5af0(0x345)](){const _0x4395e5=_0x5d5af0;return this['okdb'][_0x4395e5(0x7df)]&&this['_n'](_0x4395e5(0x3b6))?{}:null;}get[_0x5d5af0(0x7cf)](){const _0x58d118=_0x5d5af0;return this[_0x58d118(0x345)];}get[_0x5d5af0(0x183)](){const _0x179c10=_0x5d5af0;return this['_n']('nodeKeys')?.[_0x179c10(0x2a8)];}get['_nodePublicKey'](){const _0x4af08b=_0x5d5af0;return this['_n'](_0x4af08b(0x541))?.['publicKey'];}['info'](){const _0x1be064=_0x5d5af0;return this['_n'](_0x1be064(0x427));}['getSelfNode'](){const _0x2b01ec=_0x5d5af0;return this['_n'](_0x2b01ec(0x68e));}get[_0x5d5af0(0x65b)](){const _0x2b820=_0x5d5af0;return this['__peers']||(()=>this['_n'](_0x2b820(0x65b)));}set[_0x5d5af0(0x65b)](_0x4aa253){const _0x43d57a=_0x5d5af0;this[_0x43d57a(0x5e9)]=typeof _0x4aa253===_0x43d57a(0x5c4)?_0x4aa253:null,this['_n'](_0x43d57a(0x31f),[this['__peers']]);}['_listPeers'](){const _0x3270c8=_0x5d5af0;return this['_n'](_0x3270c8(0x63e));}async['reconcile'](){const _0x37cd5f=_0x5d5af0;return this[_0x37cd5f(0x581)]('reconcile');}async['reconcilePeer'](_0x28f2ab){const _0x37240a=_0x5d5af0;return this[_0x37240a(0x581)](_0x37240a(0x6fa),[_0x28f2ab]);}async[_0x5d5af0(0x291)](_0x45ced5,_0x3cd89d={}){const _0x2e8c7b=_0x5d5af0;return this[_0x2e8c7b(0x581)](_0x2e8c7b(0x273),[_0x45ced5,_0x3cd89d]);}[_0x5d5af0(0x584)](){return this['_n']('stop');}[_0x5d5af0(0x41b)](){const _0x37fabb=_0x5d5af0;return this['_n'](_0x37fabb(0x41b));}async[_0x5d5af0(0x21b)](_0x131c69,_0x5c82d6={}){const _0xa92a10=_0x5d5af0;return this['_n'](_0xa92a10(0x21b),[_0x131c69,_0x5c82d6],!![]);}async[_0x5d5af0(0x517)](_0x2eaddf){const _0x2bb02e=_0x5d5af0;return this['_n'](_0x2bb02e(0x517),[_0x2eaddf],!![]);}[_0x5d5af0(0x468)](_0x5b34e4){const _0x204fd8=_0x5d5af0;return this['_n'](_0x204fd8(0x589),[_0x5b34e4]);}[_0x5d5af0(0x28d)](_0x4a8c21){const _0x1596d9=_0x5d5af0;return this['_n'](_0x1596d9(0x5a9),[_0x4a8c21]);}async[_0x5d5af0(0x874)](_0x42a29a,_0x58af46,_0x183531={}){const _0x3039db=_0x5d5af0;return this['_n'](_0x3039db(0x43f),[_0x42a29a,_0x58af46,_0x183531]);}async[_0x5d5af0(0x656)](_0x237aad){return this['_n']('ensurePeerState',[_0x237aad]);}async['_ensure'](){const _0x21be05=_0x5d5af0;return this['_n'](_0x21be05(0x4c3),[],!![]);}async[_0x5d5af0(0x419)](_0x218bb9){return this['_n']('patchSelf',[_0x218bb9],!![]);}async['join'](_0x23135a,_0x27ad84={}){const _0x5d8c13=_0x5d5af0;return this[_0x5d8c13(0x581)](_0x5d8c13(0x486),[_0x23135a,_0x27ad84]);}async[_0x5d5af0(0x4b3)](_0x43b9af={},_0x543906={}){return void _0x43b9af['~system'],this['_n']('calculateDelta',[_0x43b9af,_0x543906]);}async['fetchPeer'](_0x4af620,_0x51a0dc,_0x2630f7,_0x2f238f){const _0x20f88b=_0x5d5af0;return this[_0x20f88b(0x581)]('fetchPeer',[_0x4af620,_0x51a0dc,_0x2630f7,_0x2f238f??null]);}async[_0x5d5af0(0x5ac)](_0x2e2a4e,_0x544c5b,_0x109043={}){const _0x5ca9af=_0x5d5af0;return this['_nm'](_0x5ca9af(0x5ac),[_0x2e2a4e,_0x544c5b,_0x109043]);}['_shouldApplyChange'](_0x464fb7,_0x2d0f8d=null){const _0x476ab7=_0x5d5af0;return this['_n'](_0x476ab7(0x225),[_0x464fb7,_0x2d0f8d?_0x2d0f8d['name']:null]);}[_0x5d5af0(0x7ec)](_0x42daff,_0x635b33=null){const _0x25b31a=_0x5d5af0;return this['_n'](_0x25b31a(0x7ec),[_0x42daff,_0x635b33?_0x635b33['name']:null],!![]);}}return sync={'OKDBSync':_0x4e5590},sync;}var migrate,hasRequiredMigrate;function requireMigrate(){const _0x3118f2=_0x1c5fdf;if(hasRequiredMigrate)return migrate;hasRequiredMigrate=0x1;const {optionsArg:_0x445205}=requireErrors(),_0x150099=require$$0,_0x4aafb0=require$$4,_0x1533f4=0x40*0x400;async function _0x374c86(_0x311c9d,_0x4eb339){const _0x4ec28e=_0x20ac;for(let _0x11c0f4=0x0;_0x11c0f4<_0x4eb339[_0x4ec28e(0x2f6)];){let _0x28f836=Math[_0x4ec28e(0x3d2)](_0x4eb339[_0x4ec28e(0x2f6)],_0x11c0f4+_0x1533f4);if(_0x28f836<_0x4eb339['length']){const _0x5b173b=_0x4eb339[_0x4ec28e(0x374)](0xa,_0x28f836-0x1);_0x28f836=_0x5b173b===-0x1?_0x4eb339['length']:_0x5b173b+0x1;}const _0x19ff54=_0x311c9d[_0x4ec28e(0x5a6)](_0x4eb339[_0x4ec28e(0x289)](_0x11c0f4,_0x28f836));_0x11c0f4=_0x28f836;if(!_0x19ff54)await new Promise(_0x376af3=>_0x311c9d[_0x4ec28e(0x370)](_0x4ec28e(0x61a),_0x376af3));await new Promise(_0x2916e3=>setImmediate(_0x2916e3));}}async function _0x5053d6(_0x293732){const _0x5b4c54=_0x20ac,_0x1465a5=[];for await(const _0x596e88 of _0x293732)_0x1465a5[_0x5b4c54(0x3c0)](Buffer['isBuffer'](_0x596e88)?_0x596e88:Buffer[_0x5b4c54(0x6a7)](_0x596e88,_0x5b4c54(0x5bf)));return Buffer[_0x5b4c54(0x18e)](_0x1465a5);}class _0x477e3c{constructor(_0x14a242){const _0x1d6c65=_0x20ac;this[_0x1d6c65(0x263)]=_0x14a242;}['_n'](_0xb95583,_0x293423){const _0x4b84e8=_0x20ac;return this[_0x4b84e8(0x263)]['_call'](_0x4b84e8(0x666),null,_0xb95583,_0x293423,!![]);}async[_0x3118f2(0x63b)](_0x231c9e,_0x154176={}){const _0x63a6f0=_0x3118f2,{data:_0x751763,stats:_0x559722}=this['_n'](_0x63a6f0(0x610),[_0x154176]);return await _0x374c86(_0x231c9e,Buffer[_0x63a6f0(0x6a7)](_0x751763)),_0x559722;}async[_0x3118f2(0x5a5)](_0x3bc278,_0x109090={}){const _0x5e2f29=_0x3118f2;_0x150099[_0x5e2f29(0x335)](_0x4aafb0['dirname'](_0x3bc278),{'recursive':!![]});const _0x2f31b9=_0x150099[_0x5e2f29(0x48d)](_0x3bc278),_0x391b2c=await this['exportToStream'](_0x2f31b9,_0x109090);return await new Promise((_0x4a4c47,_0x129e10)=>{const _0x557448=_0x5e2f29;_0x2f31b9['end'](),_0x2f31b9[_0x557448(0x370)]('finish',_0x4a4c47),_0x2f31b9[_0x557448(0x370)](_0x557448(0x1f1),_0x129e10);}),{..._0x391b2c,'filePath':_0x3bc278};}async[_0x3118f2(0x2e1)](_0x57b3cc,_0x20e2ef={}){const _0x5b3ea5=_0x3118f2,{data:_0x31265c,stats:_0x41f750}=this['_n'](_0x5b3ea5(0x2d5),[_0x20e2ef]);return await _0x374c86(_0x57b3cc,Buffer[_0x5b3ea5(0x6a7)](_0x31265c)),_0x41f750;}async[_0x3118f2(0x5bd)](_0x17ef9b,_0x93a90e={}){const _0x4b9f92=_0x3118f2,_0x18e31b=await _0x5053d6(_0x17ef9b),{onProgress:_0x3f6421,..._0x119e80}=_0x93a90e,_0x2889a9=this['_n'](_0x4b9f92(0x339),[_0x18e31b,_0x119e80]);if(typeof _0x3f6421===_0x4b9f92(0x5c4))_0x3f6421({'type':null,'count':_0x2889a9[_0x4b9f92(0x4fc)]});return _0x2889a9;}async['importFromFile'](_0x4ed17f,_0x149cbd={}){const _0x1746a6=_0x3118f2;return this[_0x1746a6(0x5bd)](_0x150099['createReadStream'](_0x4ed17f,{'encoding':'utf8'}),_0x149cbd);}async[_0x3118f2(0x1d1)](_0x1ed346,_0x3c8339={}){const _0x5e66ec=_0x3118f2;return this['_n'](_0x5e66ec(0x1d1),[_0x1ed346,_0x3c8339]);}[_0x3118f2(0x47f)](){const _0x243ee8=_0x3118f2;return this['_n'](_0x243ee8(0x47f),[]);}[_0x3118f2(0x25f)](_0x2ae101){const _0xb0912a=_0x3118f2;return this['_n'](_0xb0912a(0x25f),[_0x2ae101??null]);}async[_0x3118f2(0x421)](_0x6aa5e9={}){const _0x2a16a6=_0x3118f2;return this['_n'](_0x2a16a6(0x421),[_0x6aa5e9]);}async[_0x3118f2(0x852)](_0x53e188,_0x256bd6={}){return this['_n']('import',[_0x53e188,_0x256bd6]);}async['exportJSON'](_0x213621){const {pretty:pretty=![]}=_0x445205(_0x213621);return JSON['stringify'](await this['export'](),null,pretty?0x2:0x0);}async['importJSON'](_0x2cf0b3){const _0x34d8c0=_0x3118f2;return this[_0x34d8c0(0x852)](JSON['parse'](_0x2cf0b3));}[_0x3118f2(0x428)](){const _0x535b10=_0x3118f2;if(!this['okdb'][_0x535b10(0x33b)][_0x535b10(0x4ff)](_0x535b10(0x3e4))?.[_0x535b10(0x3a1)])throw new Error(_0x535b10(0x2ac));}async[_0x3118f2(0x227)](_0x1c6bae){const _0x17d817=_0x3118f2;return this[_0x17d817(0x428)](),this['_n'](_0x17d817(0x227),[_0x1c6bae]);}async['importBlobs'](_0x535ab3){const _0x44037e=_0x3118f2;return this[_0x44037e(0x428)](),this['_n'](_0x44037e(0x8a7),[_0x535ab3]);}[_0x3118f2(0x435)](){const _0x331117=_0x3118f2;return this['_n']('envsWithFiles',[])['map'](_0x1f0f6e=>this['okdb'][_0x331117(0x81f)](_0x1f0f6e));}async[_0x3118f2(0x882)](){const _0x2320c4=_0x3118f2;return this[_0x2320c4(0x428)](),this['_n']('validateBlobIntegrity',[]);}async[_0x3118f2(0x3d3)](){const _0x47140a=_0x3118f2;return this[_0x47140a(0x428)](),this['_n'](_0x47140a(0x3d3),[]);}}return migrate={'OKDBMigrate':_0x477e3c},migrate;}var mcp,hasRequiredMcp;function requireMcp(){const _0x2c2c62=_0x1c5fdf;if(hasRequiredMcp)return mcp;hasRequiredMcp=0x1;class _0x2bf8de{constructor(_0x2aff3a){const _0x70b89a=_0x20ac;this[_0x70b89a(0x263)]=_0x2aff3a,this[_0x70b89a(0x443)]=new Map();}['_n'](_0x4714b8,_0x49d852){const _0x13b7f9=_0x20ac;try{return this['okdb'][_0x13b7f9(0x7b0)]('mcp',null,_0x4714b8,_0x49d852,!![]);}catch(_0x257d44){if(_0x257d44&&_0x257d44[_0x13b7f9(0x22a)]===_0x13b7f9(0x22c)&&_0x257d44['details']){if(_0x257d44['details']['jsonrpcCode']!==undefined)_0x257d44[_0x13b7f9(0x56b)]=_0x257d44[_0x13b7f9(0x2f7)][_0x13b7f9(0x56b)];_0x257d44[_0x13b7f9(0x2f7)]=_0x257d44[_0x13b7f9(0x2f7)][_0x13b7f9(0x2f7)],_0x257d44[_0x13b7f9(0x22a)]=undefined;}throw _0x257d44;}}[_0x2c2c62(0x80c)](){return this['_n']('tools',[]);}async['_call'](_0x1a6a84,_0x3e1f9a={}){const _0x3d93a2=_0x2c2c62;return this['_n'](_0x3d93a2(0x765),[_0x1a6a84??null,_0x3e1f9a??{}]);}async['_handle'](_0x2fc591,_0x4815dd={}){return this['_n']('handle',[_0x2fc591,_0x4815dd??{}]);}[_0x2c2c62(0x4f3)](_0x2e00ef){const _0x44ba94=_0x2c2c62;return this['_n'](_0x44ba94(0x681),[_0x2e00ef??null]);}}return mcp={'OKDBMcp':_0x2bf8de},mcp;}var sys,hasRequiredSys;function _0x20ac(_0x517298,_0x11ea0d){_0x517298=_0x517298-0x175;const _0x28548e=_0x2854();let _0x20ac43=_0x28548e[_0x517298];return _0x20ac43;}function requireSys(){const _0x1122fb=_0x1c5fdf;if(hasRequiredSys)return sys;hasRequiredSys=0x1;function _0x50d7d3(_0x22d8d2,_0x450c7e,_0x5aa21d){const _0x2f5fee=_0x20ac,_0x2cf35c={};for(const [_0x51623d,_0x3720c2]of Object[_0x2f5fee(0x207)](_0x5aa21d)){_0x2cf35c[_0x51623d]=_0x3720c2===_0x2f5fee(0x3e5)?async(..._0x1de3be)=>_0x22d8d2[_0x2f5fee(0x7b0)](_0x450c7e,null,_0x51623d,_0x1de3be):(..._0x168b31)=>_0x22d8d2[_0x2f5fee(0x7b0)](_0x450c7e,null,_0x51623d,_0x168b31,![]);}return _0x2cf35c;}const _0x4f722b=['listTypes',_0x1122fb(0x20d),_0x1122fb(0x19f),_0x1122fb(0x52e),_0x1122fb(0x22f),_0x1122fb(0x1fc),'getIndexStatus',_0x1122fb(0x3f4),'describeIndexes',_0x1122fb(0x6f7),'indexStats',_0x1122fb(0x357),_0x1122fb(0x72f),'meta',_0x1122fb(0x3b9),'getIndexCount',_0x1122fb(0x3e6),_0x1122fb(0x86b),'explainIndex','recomputeFields',_0x1122fb(0x533)],_0x3523d1={'add':_0x1122fb(0x3e5),'activate':_0x1122fb(0x3e5),'remove':'async','list':_0x1122fb(0x838),'get':_0x1122fb(0x838),'effective':'sync'},_0x471554={'open':_0x1122fb(0x3e5),'register':_0x1122fb(0x3e5),'buildOwnRow':_0x1122fb(0x838),'_buildProcessingFacet':_0x1122fb(0x838),'reportThreadStats':_0x1122fb(0x838),'clearThreadStats':_0x1122fb(0x838),'emitProc':'sync','addSupervisedChild':_0x1122fb(0x3e5),'removeSupervisedChild':'sync','updateSupervisedChildStats':'sync','publishChildRow':_0x1122fb(0x3e5),'putNode':_0x1122fb(0x3e5),'removeNode':_0x1122fb(0x3e5),'nodeDead':_0x1122fb(0x838),'listNodes':_0x1122fb(0x838),'reap':_0x1122fb(0x3e5),'publishOwnRow':'async','deregisterSelf':_0x1122fb(0x3e5),'setOwnMeta':'sync','noteListenAddr':_0x1122fb(0x838),'hasDesired':_0x1122fb(0x838),'getDesired':_0x1122fb(0x838),'setDesired':_0x1122fb(0x3e5),'listDesired':'sync','getCmd':_0x1122fb(0x838),'bumpCmd':'async','processingStatusView':'sync','processorsView':'sync','clusterStatusView':_0x1122fb(0x838),'nodesView':'sync','treeView':_0x1122fb(0x838),'getProcess':_0x1122fb(0x838),'runtimeProcessesView':_0x1122fb(0x838)};function _0xb29c7d(_0x3d4a82){const _0x4f2eb0=_0x1122fb,_0x1505be={},_0x2e21d8=_0x186201=>_0x186201&&typeof _0x186201===_0x4f2eb0(0x86d)&&!Array[_0x4f2eb0(0x55b)](_0x186201)&&typeof _0x186201[_0x4f2eb0(0x80a)]===_0x4f2eb0(0x460)?_0x186201[_0x4f2eb0(0x80a)]:_0x186201;for(const _0x39b0da of _0x4f722b)_0x1505be[_0x39b0da]=_0x39b0da===_0x4f2eb0(0x4aa)?async(..._0x327cbb)=>_0x3d4a82[_0x4f2eb0(0x7b0)](_0x4f2eb0(0x29e),null,_0x39b0da,_0x327cbb[_0x4f2eb0(0x4ba)](_0x2e21d8),!![]):(..._0x49cffb)=>_0x3d4a82['_call']('meta',null,_0x39b0da,_0x49cffb['map'](_0x2e21d8),![]);return _0x1505be;}function _0x388252(_0xa8a897){const _0x1121f3=_0x1122fb,_0x137417=_0x50d7d3(_0xa8a897,_0x1121f3(0x30a),_0x3523d1);return _0x137417;}function _0x22631f(_0x24179a){const _0x30d011=_0x1122fb,_0x2ddb0f=()=>_0x24179a[_0x30d011(0x30a)][_0x30d011(0x7a3)](),_0x5696a5=_0xbf7d42=>_0xbf7d42[_0x30d011(0x5a1)]?{..._0xbf7d42,'_isFree':!![]}:_0xbf7d42;return{async 'addLicense'(_0x292c6d){const _0x35b972=_0x30d011;return _0x24179a[_0x35b972(0x30a)][_0x35b972(0x3cc)](_0x292c6d);},async 'reload'(){},async 'recheck'(){},get 'active'(){const _0x4a3e99=_0x30d011,_0x182543=_0x2ddb0f();return _0x182543[_0x4a3e99(0x5a1)]?null:_0x182543;},get 'effective'(){return _0x5696a5(_0x2ddb0f());},'hasLimit'(_0x1b3aef){const _0x5c85ac=_0x2ddb0f();if(!_0x5c85ac['enforced'])return![];const _0x13d2aa=_0x5c85ac['limits']?.[_0x1b3aef];return!(_0x13d2aa===null||_0x13d2aa===undefined||_0x13d2aa===0x0);},'isFeatureEnabled'(_0x3cc620){const _0x3618a7=_0x30d011,_0x30ad80=_0x2ddb0f();return!_0x30ad80[_0x3618a7(0x6fb)]||!!_0x30ad80[_0x3618a7(0x5ea)]?.[_0x3cc620];},'assertFeature'(_0x2dc92c){const _0x305db1=_0x30d011,_0x5de730=_0x2ddb0f();if(!_0x5de730[_0x305db1(0x6fb)]||_0x5de730[_0x305db1(0x5ea)]?.[_0x2dc92c])return;const {OKDBError:_0x5c9446}=requireErrors(),_0x1466a8=_0x5de730[_0x305db1(0x5a1)]?'Feature\x20not\x20available\x20on\x20free\x20tier:\x20'+_0x2dc92c+_0x305db1(0x4f2)+_0x2dc92c+_0x305db1(0x5cf):_0x305db1(0x751)+_0x2dc92c+_0x305db1(0x1b1)+_0x2dc92c+'\x22.';throw new _0x5c9446(_0x1466a8,_0x305db1(0x848),{'feature':_0x2dc92c});},'assertLimit'(_0x3a2f1c,_0x1f4a53){const _0x421389=_0x30d011,_0x336b6b=_0x2ddb0f();if(!_0x336b6b['enforced'])return;const _0x18bec5=_0x336b6b[_0x421389(0x593)]?.[_0x3a2f1c];if(_0x18bec5===null||_0x18bec5===undefined||_0x18bec5===0x0)return;if(_0x1f4a53>=_0x18bec5){const {OKDBError:_0x543c95}=requireErrors();throw new _0x543c95(_0x421389(0x6f0)+_0x3a2f1c+'\x20('+_0x1f4a53+'/'+_0x18bec5+')',_0x421389(0x429),{'limit':_0x3a2f1c,'current':_0x1f4a53,'max':_0x18bec5});}},'listLicenses'(){const _0x27440a=_0x30d011;return _0x24179a[_0x27440a(0x30a)][_0x27440a(0x690)]();},'getPins'(){const _0x2eaf6d=_0x30d011;return _0x24179a[_0x2eaf6d(0x30a)][_0x2eaf6d(0x690)]()[_0x2eaf6d(0x4ba)](_0x1fd721=>({'licenseId':_0x1fd721['id'],'pin':_0x1fd721[_0x2eaf6d(0x359)]===_0x2eaf6d(0x3ca)?null:_0x1fd721[_0x2eaf6d(0x1ee)]}));}};}function _0x412298(_0x3137d7){const _0x2657ab=_0x1122fb,_0x1be9c0=_0x50d7d3(_0x3137d7,_0x2657ab(0x4a5),_0x471554);Object[_0x2657ab(0x834)](_0x1be9c0,_0x2657ab(0x42b),{'get':()=>_0x3137d7[_0x2657ab(0x7b0)]('processes',null,_0x2657ab(0x42b),[],![])}),Object['defineProperty'](_0x1be9c0,_0x2657ab(0x326),{'get':()=>_0x3137d7['_call']('processes',null,_0x2657ab(0x326),[],![])}),_0x1be9c0[_0x2657ab(0x7e7)]=null;const _0x5ba3db=_0x1be9c0[_0x2657ab(0x767)];_0x1be9c0[_0x2657ab(0x767)]=_0x3ab61f=>{const _0x5c6da6=_0x2657ab;return _0x1be9c0[_0x5c6da6(0x7e7)]=_0x3ab61f,_0x5ba3db(_0x3ab61f);};const _0x54eec9=()=>_0x1be9c0['listNodes']()['map'](_0x21e039=>({'key':_0x21e039[_0x2657ab(0x73f)],'value':_0x21e039,'version':0x1})),_0x51f06a={'name':_0x2657ab(0x30e),'_sync':![],'_isOpen':!![],'isProcessStore':!![],'hasType':_0x25fbe5=>_0x25fbe5===_0x2657ab(0x19e),'getRange':_0x224990=>_0x224990===_0x2657ab(0x19e)?_0x54eec9()[Symbol[_0x2657ab(0x84c)]]():[][Symbol[_0x2657ab(0x84c)]](),'getKeys':_0x1b66f2=>_0x1b66f2==='node'?_0x54eec9()['map'](_0x58b186=>_0x58b186[_0x2657ab(0x7e4)])[Symbol[_0x2657ab(0x84c)]]():[][Symbol[_0x2657ab(0x84c)]](),'getValues':_0x6bd499=>_0x6bd499===_0x2657ab(0x19e)?_0x54eec9()[_0x2657ab(0x4ba)](_0x3876eb=>_0x3876eb[_0x2657ab(0x658)])[Symbol['iterator']]():[][Symbol[_0x2657ab(0x84c)]](),'get':(_0x2945db,_0x16f268)=>_0x2945db===_0x2657ab(0x19e)?_0x54eec9()[_0x2657ab(0x5a2)](_0x5814fd=>_0x5814fd[_0x2657ab(0x7e4)]===_0x16f268)?.[_0x2657ab(0x658)]:undefined,'getCount':_0x14172b=>_0x14172b===_0x2657ab(0x19e)?_0x54eec9()['length']:0x0};Object[_0x2657ab(0x834)](_0x1be9c0,'_statusEnv',{'get':()=>_0x3137d7['_call'](_0x2657ab(0x4a5),null,'statusOpen',[],![])?_0x51f06a:null});const _0x54bb1f=_0x1be9c0['open'];_0x1be9c0[_0x2657ab(0x3ca)]=async _0x10f922=>{const _0x371b42=_0x2657ab;return await _0x54bb1f(_0x10f922),_0x1be9c0[_0x371b42(0x187)];},_0x1be9c0[_0x2657ab(0x27a)]=()=>_0x3137d7[_0x2657ab(0x7b0)](_0x2657ab(0x4a5),null,'ensureDesired',[],!![]);const {RawDb:_0x25f1aa}=requireRawdb();return Object[_0x2657ab(0x834)](_0x1be9c0,_0x2657ab(0x211),{'get':()=>_0x3137d7[_0x2657ab(0x25d)]?_0x1be9c0[_0x2657ab(0x39c)]||=new _0x25f1aa(_0x3137d7[_0x2657ab(0x25d)],_0x2657ab(0x459)):undefined}),Object[_0x2657ab(0x834)](_0x1be9c0,_0x2657ab(0x845),{'get':()=>_0x3137d7['_systemEnv']?_0x1be9c0[_0x2657ab(0x54d)]||=new _0x25f1aa(_0x3137d7[_0x2657ab(0x25d)],_0x2657ab(0x678)):undefined}),_0x1be9c0[_0x2657ab(0x6d2)]=()=>_0x3137d7[_0x2657ab(0x7b0)]('processes',null,_0x2657ab(0x6d2),[],![]),Object[_0x2657ab(0x834)](_0x1be9c0,'_isWriter',{'get':()=>_0x3137d7[_0x2657ab(0x7b0)]('processes',null,_0x2657ab(0x4ec),[],![])}),Object[_0x2657ab(0x834)](_0x1be9c0,_0x2657ab(0x5d9),{'get':()=>_0x3137d7[_0x2657ab(0x7b0)](_0x2657ab(0x4a5),null,_0x2657ab(0x5fa),[],![])}),_0x1be9c0[_0x2657ab(0x895)]=()=>_0x3137d7['_call']('processes',null,_0x2657ab(0x20f),[],![]),_0x1be9c0['_emitProc']=(_0x12d08a,_0x8ecb5e)=>_0x3137d7['_call']('processes',null,_0x2657ab(0x7b3),[_0x12d08a,_0x8ecb5e],![]),_0x1be9c0;}return sys={'makeMeta':_0xb29c7d,'makeLicenses':_0x388252,'makeLicenseChecker':_0x22631f,'makeProcesses':_0x412298},sys;}var okdbLogger,hasRequiredOkdbLogger;function requireOkdbLogger(){const _0x2227bd=_0x1c5fdf;if(hasRequiredOkdbLogger)return okdbLogger;hasRequiredOkdbLogger=0x1;const _0xfca594={'debug':0xa,'info':0x14,'warn':0x1e,'error':0x28};class _0x337eeb{constructor(_0x2fbf09){const _0x4cedba=_0x20ac;this[_0x4cedba(0x263)]=_0x2fbf09,this[_0x4cedba(0x5c3)]=new Set(),this[_0x4cedba(0x69b)]={};}[_0x2227bd(0x4b0)](_0x2c794b){const _0x515394=_0x2227bd,_0x2a382b=new _0x337eeb(this[_0x515394(0x263)]);return _0x2a382b[_0x515394(0x5c3)]=this[_0x515394(0x5c3)],_0x2a382b[_0x515394(0x69b)]={...this[_0x515394(0x69b)],..._0x2c794b},_0x2a382b;}['attach'](_0x4b9072){const _0x2c693d=_0x2227bd;return this[_0x2c693d(0x5c3)]['add'](_0x4b9072),()=>this[_0x2c693d(0x5c3)]['delete'](_0x4b9072);}[_0x2227bd(0x590)](){const _0x5026bc=_0x2227bd,_0x2a8593=_0xfca594[process.env.OKDB_LOG_LEVEL]??_0xfca594[_0x5026bc(0x427)];return this[_0x5026bc(0x504)]=this['attach'](({level:_0x14ec90,msg:_0x3b857f,meta:_0x301462,context:_0xb3bdcb,ts:_0x53fe99})=>{const _0x39a9b2=_0x5026bc;if((_0xfca594[_0x14ec90]??_0xfca594[_0x39a9b2(0x427)])<_0x2a8593)return;if(_0x301462?.['feature']===_0x39a9b2(0x2fd)&&(_0x14ec90===_0x39a9b2(0x427)||_0x14ec90===_0x39a9b2(0x36c)))return;const _0x1f0169=_0x14ec90===_0x39a9b2(0x1f1)?console[_0x39a9b2(0x1f1)]:_0x14ec90===_0x39a9b2(0x1ed)?console[_0x39a9b2(0x1ed)]:_0x14ec90===_0x39a9b2(0x427)?console[_0x39a9b2(0x427)]:console[_0x39a9b2(0x3de)],_0x1effb1=_0x301462&&Object[_0x39a9b2(0x542)](_0x301462)[_0x39a9b2(0x2f6)]>0x0;_0x1effb1||_0xb3bdcb!==undefined?_0x1f0169(new Date(_0x53fe99)[_0x39a9b2(0x736)](),_0x3b857f,..._0x1effb1?[_0x301462]:[],..._0xb3bdcb!==undefined?[_0xb3bdcb]:[]):_0x1f0169(new Date(_0x53fe99)[_0x39a9b2(0x736)](),_0x3b857f);}),this[_0x5026bc(0x504)];}[_0x2227bd(0x4df)](){const _0x51e6a7=_0x2227bd;this[_0x51e6a7(0x504)]&&(this['_detachConsole'](),this[_0x51e6a7(0x504)]=null);}[_0x2227bd(0x221)](_0x224df6,_0x46dba0){const _0x18bfaa=require$$0$4,_0x3759f7=0x1f4,_0x21b593=Number(process.env.OKDB_LOG_FLUSH_MS)||0x3e8;let _0x40be9c=[],_0x164cc5=0x0,_0x204005=null;const _0x22c77d=()=>{const _0x16acce=_0x20ac;_0x204005=null;if(_0x40be9c[_0x16acce(0x2f6)]===0x0)return;const _0x2b415c=_0x40be9c;_0x40be9c=[],_0x164cc5>0x0&&(_0x2b415c[_0x16acce(0x3c0)]({'ts':Date[_0x16acce(0x785)](),'level':_0x16acce(0x1ed),'msg':_0x16acce(0x1c0)+_0x164cc5+_0x16acce(0x3a7)+(_0x164cc5===0x1?'y':_0x16acce(0x383))+_0x16acce(0x5f8),'feature':_0x16acce(0x3de),'node':_0x46dba0,'context':null}),_0x164cc5=0x0),_0x224df6['txn'](_0x3a18c2=>{const _0x4b7531=_0x16acce;for(const _0x31e9b3 of _0x2b415c)_0x3a18c2['put'](_0x4b7531(0x2f5),_0x18bfaa['randomUUID'](),_0x31e9b3);})[_0x16acce(0x62c)](()=>{});},_0x4853fa=this['attach'](({level:_0x115979,msg:_0x121643,meta:_0x31f5bc,context:_0xbc019a,ts:_0x1b1211})=>{const _0x105faf=_0x20ac;if(_0x115979===_0x105faf(0x36c))return;_0x40be9c[_0x105faf(0x2f6)]>=_0x3759f7&&(_0x164cc5++,_0x40be9c[_0x105faf(0x4eb)]()),_0x40be9c['push']({'ts':_0x1b1211,'level':_0x115979,'msg':_0x121643,'feature':_0x31f5bc?.['feature']??_0x31f5bc?.['module']??null,'node':_0x46dba0,'context':_0xbc019a??null}),!_0x204005&&(_0x204005=setTimeout(_0x22c77d,_0x21b593),_0x204005[_0x105faf(0x54c)]?.());});return()=>{_0x4853fa();if(_0x204005)clearTimeout(_0x204005);_0x22c77d();};}[_0x2227bd(0x1c8)](_0x1fd6d4,_0x18bca7,_0x456f74){const _0x35eb41=_0x2227bd;_0x18bca7 instanceof Error&&(_0x456f74={'message':_0x18bca7[_0x35eb41(0x5e1)],'stack':_0x18bca7['stack'],..._0x456f74},_0x18bca7=_0x18bca7[_0x35eb41(0x5e1)]);const _0x6405b0={'level':_0x1fd6d4,'msg':_0x18bca7,'meta':{...this[_0x35eb41(0x69b)]},'context':_0x456f74,'ts':Date[_0x35eb41(0x785)]()};try{this[_0x35eb41(0x263)]['events']['emit']('log',_0x6405b0);}catch{}for(const _0x560f64 of this[_0x35eb41(0x5c3)]){try{_0x560f64(_0x6405b0);}catch{}}}[_0x2227bd(0x31b)](_0x4f383b){const _0x2bd5b4=_0x2227bd;try{this[_0x2bd5b4(0x263)]?.['events']?.['emit']('log',_0x4f383b);}catch{}for(const _0x5c7139 of this[_0x2bd5b4(0x5c3)]){try{_0x5c7139(_0x4f383b);}catch{}}}[_0x2227bd(0x427)](_0x4cbf9d,_0x4c2a44){const _0x8659aa=_0x2227bd;this[_0x8659aa(0x1c8)](_0x8659aa(0x427),_0x4cbf9d,_0x4c2a44);}[_0x2227bd(0x1ed)](_0x310146,_0x2176ef){const _0xc5f3b1=_0x2227bd;this[_0xc5f3b1(0x1c8)](_0xc5f3b1(0x1ed),_0x310146,_0x2176ef);}['error'](_0x16ba1d,_0x4961e5){const _0x4cf984=_0x2227bd;this[_0x4cf984(0x1c8)](_0x4cf984(0x1f1),_0x16ba1d,_0x4961e5);}['debug'](_0x194852,_0x50950f){const _0x403788=_0x2227bd;this['_emit'](_0x403788(0x36c),_0x194852,_0x50950f);}}return okdbLogger=_0x337eeb,okdbLogger;}var okdbPlugins,hasRequiredOkdbPlugins;function requireOkdbPlugins(){const _0xe56fce=_0x1c5fdf;if(hasRequiredOkdbPlugins)return okdbPlugins;hasRequiredOkdbPlugins=0x1;const {OKDB_STATE:_0x15e981}=requireOkdbEnums(),{OKDBError:_0x557f55}=requireOkdbError();class _0x5e22c8{constructor(_0x36a46a){const _0x1181ae=_0x20ac;this[_0x1181ae(0x263)]=_0x36a46a,this[_0x1181ae(0x446)]=[];}['register'](_0x423c2e,_0x1ef732){const _0x48b6a0=_0x20ac;if(this[_0x48b6a0(0x263)]['state']!==_0x15e981[_0x48b6a0(0x2ec)])throw new _0x557f55(_0x48b6a0(0x77d),_0x48b6a0(0x87e),{'state':this[_0x48b6a0(0x263)][_0x48b6a0(0x827)]});if(!_0x423c2e[_0x48b6a0(0x80a)])throw new _0x557f55(_0x48b6a0(0x2fc),'BAD_PLUGIN',{'plugin':_0x423c2e['name']});const _0x2cdcc0=_0x423c2e[_0x48b6a0(0x45b)]??[];for(const _0x52640c of _0x2cdcc0){if(!this['_plugins'][_0x48b6a0(0x7ce)](_0x3bb1d=>_0x3bb1d[_0x48b6a0(0x522)][_0x48b6a0(0x80a)]===_0x52640c))throw new _0x557f55(_0x48b6a0(0x830)+_0x52640c+_0x48b6a0(0x746)+_0x423c2e[_0x48b6a0(0x80a)]+')',_0x48b6a0(0x4e1),{'required':_0x52640c});}if(this[_0x48b6a0(0x446)][_0x48b6a0(0x5a2)](_0x4ad630=>_0x4ad630[_0x48b6a0(0x522)]['name']===_0x423c2e[_0x48b6a0(0x80a)]))throw new _0x557f55(_0x48b6a0(0x450)+_0x423c2e[_0x48b6a0(0x80a)]+'\x27\x20already\x20registered',_0x48b6a0(0x1ad),{'plugin':_0x423c2e[_0x48b6a0(0x80a)]});if(_0x423c2e[_0x48b6a0(0x80a)]in this[_0x48b6a0(0x263)])throw new _0x557f55('Plugin\x20name\x20\x27'+_0x423c2e['name']+_0x48b6a0(0x812),_0x48b6a0(0x330));const _0x1f7b12=_0x423c2e['register'](this[_0x48b6a0(0x263)],_0x1ef732);if(!_0x1f7b12||typeof _0x1f7b12!=='object')throw new _0x557f55(_0x48b6a0(0x450)+_0x423c2e[_0x48b6a0(0x80a)]+_0x48b6a0(0x733),_0x48b6a0(0x646),{'plugin':_0x423c2e[_0x48b6a0(0x80a)]});this[_0x48b6a0(0x446)]['push']({'module':_0x423c2e,'options':_0x1ef732,'instance':_0x1f7b12});}[_0xe56fce(0x17f)]=[];async[_0xe56fce(0x84e)](){const _0x585bcc=_0xe56fce;try{for(const _0x454b6e of this[_0x585bcc(0x446)]){await _0x454b6e[_0x585bcc(0x7b2)][_0x585bcc(0x84e)]?.(this['okdb']),this[_0x585bcc(0x17f)]['push'](_0x454b6e);}}catch(_0x39a3f8){await this[_0x585bcc(0x584)]()[_0x585bcc(0x62c)](()=>{});throw _0x39a3f8;}}async[_0xe56fce(0x584)](){const _0x4579e6=_0xe56fce,_0x4f01a1=this[_0x4579e6(0x17f)][_0x4579e6(0x2be)]();this['_started']=[];let _0x1423d6=null;for(const _0x1b05a0 of _0x4f01a1){try{await _0x1b05a0[_0x4579e6(0x7b2)][_0x4579e6(0x584)]?.(this[_0x4579e6(0x263)]);}catch(_0x30268d){_0x1423d6??=_0x30268d;}}if(_0x1423d6)throw _0x1423d6;}}return okdbPlugins=_0x5e22c8,okdbPlugins;}var statics,hasRequiredStatics;function requireStatics(){const _0x160ad5=_0x1c5fdf;if(hasRequiredStatics)return statics;hasRequiredStatics=0x1;const _0x3effab={'maxDbs':0x400,'pageSize':0x1000,'compression':!![],'encryptionKey':undefined,'mapSize':0x100000000,'durability':_0x160ad5(0x49f)},_0x3675b5=new Set([_0x160ad5(0x628),'pageSize','compression',_0x160ad5(0x6b5),_0x160ad5(0x58f),_0x160ad5(0x64d),'durability',_0x160ad5(0x63c),_0x160ad5(0x2de),_0x160ad5(0x712),_0x160ad5(0x838),_0x160ad5(0x44d),_0x160ad5(0x2fd),_0x160ad5(0x579),_0x160ad5(0x2f0),_0x160ad5(0x258),'log',_0x160ad5(0x1b5),_0x160ad5(0x19c),_0x160ad5(0x41f),_0x160ad5(0x66b),_0x160ad5(0x867),_0x160ad5(0x4a5),_0x160ad5(0x378),_0x160ad5(0x68c),_0x160ad5(0x507),_0x160ad5(0x497),_0x160ad5(0x36c),_0x160ad5(0x784),_0x160ad5(0x1d1)]),_0x45dd95={'http':_0x160ad5(0x7e8)};return statics={'defaults':_0x3effab,'KNOWN_OPTIONS':_0x3675b5,'_OPTION_HINTS':_0x45dd95},statics;}var licenseConfig,hasRequiredLicenseConfig;function requireLicenseConfig(){const _0x337703=_0x1c5fdf;if(hasRequiredLicenseConfig)return licenseConfig;hasRequiredLicenseConfig=0x1;const _0xd8846=require$$0$2,_0xa9a494=_0x337703(0x4d3),_0x2ec847=_0xd8846[_0x337703(0x4e9)](_0x337703(0x50a))[_0x337703(0x3dc)](_0xd8846[_0x337703(0x2f3)](_0xa9a494)['export']({'type':_0x337703(0x780),'format':'der'}))[_0x337703(0x50b)]('hex')[_0x337703(0x5d1)](0x0,0x10),_0x585d27={'LICENSED_BUILD':_0x337703(0x26b),'PUBLIC_KEY_PEM':_0xa9a494,'PUB_FINGERPRINT':_0x2ec847,'LICENSE_EXPIRED_ACTION':_0x337703(0x3de)};return licenseConfig={'_C':_0x585d27,'PUBLIC_KEY_PEM':_0xa9a494,'PUB_FINGERPRINT':_0x2ec847},licenseConfig;}var okdbSubscriptionsStore={'exports':{}},okdbQueryFilter,hasRequiredOkdbQueryFilter;function requireOkdbQueryFilter(){const _0xef25a2=_0x1c5fdf;if(hasRequiredOkdbQueryFilter)return okdbQueryFilter;hasRequiredOkdbQueryFilter=0x1;const _0x4970a2=require$$0$5,{OKDBError:_0x17669b}=requireOkdbError(),_0x2f3397=['$eq',_0xef25a2(0x6e6),_0xef25a2(0x6de),_0xef25a2(0x6aa),'$lt',_0xef25a2(0x1ce),_0xef25a2(0x7d8),'$nin',_0xef25a2(0x3ed),_0xef25a2(0x502),_0xef25a2(0x875),_0xef25a2(0x31e),_0xef25a2(0x53e),'$all',_0xef25a2(0x865),'$elemMatch',_0xef25a2(0x569),_0xef25a2(0x57a),_0xef25a2(0x6c7),_0xef25a2(0x524)],_0x1f31d8=[_0xef25a2(0x886)];function _0x5f5dc9(_0x1da5a6){return()=>{const _0x17197b=_0x20ac,_0x58bce3=new _0x17669b(_0x17197b(0x8ac)+_0x1da5a6+_0x17197b(0x633),_0x17197b(0x426),{'operator':_0x1da5a6});_0x58bce3[_0x17197b(0x392)]=0x190;throw _0x58bce3;};}const _0x4d1720=Object['freeze']({...Object[_0xef25a2(0x20b)](_0x2f3397[_0xef25a2(0x4ba)](_0x3e153c=>[_0x3e153c,_0x4970a2[_0x3e153c]])),...Object[_0xef25a2(0x20b)](_0x1f31d8[_0xef25a2(0x4ba)](_0x32945b=>[_0x32945b,_0x5f5dc9(_0x32945b)]))});function _0x2aa615(_0x362d64){const _0x301082=_0xef25a2;return _0x4970a2[_0x301082(0x358)](_0x362d64,{'operations':_0x4d1720});}function _0x44e62a(_0x5121fb){const _0x1cb034=_0xef25a2;if(_0x5121fb==null)return;try{_0x2aa615(_0x5121fb);}catch(_0x176939){if(_0x176939?.[_0x1cb034(0x22a)]===_0x1cb034(0x426))throw _0x176939;}}return okdbQueryFilter={'compileFilter':_0x2aa615,'assertFilterAllowed':_0x44e62a,'ALLOWED_OPERATORS':_0x2f3397,'FORBIDDEN_OPERATORS':_0x1f31d8},okdbQueryFilter;}var okdbEnvRefs,hasRequiredOkdbEnvRefs;function requireOkdbEnvRefs(){const _0x50864b=_0x1c5fdf;if(hasRequiredOkdbEnvRefs)return okdbEnvRefs;hasRequiredOkdbEnvRefs=0x1;const {CHANGE_ACTIONS:_0x20199a,EVENTS:_0x4ed1db}=requireOkdbEnums(),{OKDBError:_0x8902a4,OKDBForeignKeyDeleteError:_0xd389}=requireOkdbError(),_0xa20bf1=_0x50864b(0x850),_0x367266=new Set([_0x50864b(0x3f7),'cascade','set_null','restrict']);function _0x54736d(_0x2c8226,_0x39687d){if(_0x2c8226==null||!_0x39687d)return undefined;const _0xf85c19=_0x39687d['split']('.');let _0x1d7809=_0x2c8226;for(const _0x2b17b4 of _0xf85c19){if(_0x1d7809==null||typeof _0x1d7809!=='object'||!(_0x2b17b4 in _0x1d7809))return undefined;_0x1d7809=_0x1d7809[_0x2b17b4];}return _0x1d7809;}function _0x202313(_0x34bd80,_0x2449b4,_0x3b9f90){const _0x159997=_0x50864b,_0x5a5450=_0x2449b4['split']('.'),_0xad0f9f={..._0x34bd80};let _0x4a075b=_0xad0f9f;for(let _0x5cd576=0x0;_0x5cd576<_0x5a5450['length']-0x1;_0x5cd576++){_0x4a075b[_0x5a5450[_0x5cd576]]=_0x4a075b[_0x5a5450[_0x5cd576]]!=null?{..._0x4a075b[_0x5a5450[_0x5cd576]]}:{},_0x4a075b=_0x4a075b[_0x5a5450[_0x5cd576]];}return _0x4a075b[_0x5a5450[_0x5a5450[_0x159997(0x2f6)]-0x1]]=_0x3b9f90,_0xad0f9f;}function _0x167a51(_0x5b1da9,_0x1c89d2,_0x8f7541,_0xb2894c,_0x4d28af){return[_0x5b1da9,_0x1c89d2,_0x8f7541,_0xb2894c,_0x4d28af];}function _0x2dbf8d(_0x2cc2d9){const _0x11b826=_0x50864b;return typeof _0x2cc2d9===_0x11b826(0x460)||typeof _0x2cc2d9===_0x11b826(0x46d);}function _0x2e45d5(_0x478608,_0x1c44d0){const _0x4a22d6=_0x50864b;return JSON[_0x4a22d6(0x34d)]([_0x478608,_0x1c44d0]);}function*_0x4d6692(_0x2dd5f6,_0x47a4eb,_0x242da5){const _0x5d43fc=_0x50864b,_0x2ffeb1=_0x242da5!==undefined;for(const {key:_0x3f2c9b}of _0x2dd5f6[_0x5d43fc(0x655)]({'start':_0x2ffeb1?[_0x47a4eb,_0x242da5]:[_0x47a4eb]})){if(!Array['isArray'](_0x3f2c9b))continue;if(_0x3f2c9b[0x0]!==_0x47a4eb||_0x2ffeb1&&_0x3f2c9b[0x1]!==_0x242da5)break;yield _0x3f2c9b;}}function _0x138550(_0x5d9b5d,_0x529637='',_0x213723=null){const _0x4d7729=_0x50864b,_0xe2699f=[];if(!_0x5d9b5d||typeof _0x5d9b5d!=='object')return _0xe2699f;if(!_0x213723)_0x213723=_0x5d9b5d;if(_0x5d9b5d['$ref']){const _0x2cab93=_0x5d9b5d[_0x4d7729(0x71a)][_0x4d7729(0x6fc)](/^#\/\$defs\/(.+)$/);if(_0x2cab93&&_0x213723?.['$defs']?.[_0x2cab93[0x1]])return _0x138550(_0x213723[_0x4d7729(0x7eb)][_0x2cab93[0x1]],_0x529637,_0x213723);return _0xe2699f;}if(_0x5d9b5d[_0x4d7729(0x56d)]&&typeof _0x5d9b5d[_0x4d7729(0x56d)]==='object'&&_0x5d9b5d[_0x4d7729(0x56d)][_0x4d7729(0x359)]){const _0x5701a0=_0x5d9b5d[_0x4d7729(0x56d)][_0x4d7729(0x34f)]||'no_action';if(!_0x367266[_0x4d7729(0x868)](_0x5701a0))throw new _0x8902a4(_0x4d7729(0x779)+_0x5701a0+_0x4d7729(0x6f6)+(_0x529637||_0x4d7729(0x71b))+_0x4d7729(0x2c0)+[..._0x367266][_0x4d7729(0x486)](',\x20'),'INVALID_SCHEMA');_0xe2699f[_0x4d7729(0x3c0)]({'fieldPath':_0x529637,'targetType':_0x5d9b5d[_0x4d7729(0x56d)][_0x4d7729(0x359)],'onDelete':_0x5701a0});}if(_0x5d9b5d[_0x4d7729(0x295)])for(const [_0x154dda,_0x434d19]of Object['entries'](_0x5d9b5d['properties'])){const _0x2a6999=_0x529637?_0x529637+'.'+_0x154dda:_0x154dda;_0xe2699f['push'](..._0x138550(_0x434d19,_0x2a6999,_0x213723));}return _0xe2699f;}function _0x2e6bcf(_0x3f63ef){const _0x381d27=_0x50864b,_0x453122=new Map(),_0x559e20=new Map();for(const _0x156cb8 of _0x3f63ef['_typeKeys']()){if(_0x156cb8[_0x381d27(0x245)]('~'))continue;const _0x5b8494=_0x3f63ef[_0x381d27(0x3c8)][_0x381d27(0x4ff)](_0x156cb8);if(!_0x5b8494?.[_0x381d27(0x545)]?.[_0x381d27(0x6b7)])continue;let _0x4b95ab;try{_0x4b95ab=_0x138550(_0x5b8494['schema'][_0x381d27(0x6b7)]);}catch{continue;}if(_0x4b95ab[_0x381d27(0x2f6)]>0x0){_0x453122['set'](_0x156cb8,_0x4b95ab);for(const _0x1ee255 of _0x4b95ab){if(!_0x559e20[_0x381d27(0x868)](_0x1ee255[_0x381d27(0x6da)]))_0x559e20['set'](_0x1ee255[_0x381d27(0x6da)],[]);_0x559e20[_0x381d27(0x4ff)](_0x1ee255[_0x381d27(0x6da)])['push']({'sourceType':_0x156cb8,'fieldPath':_0x1ee255[_0x381d27(0x5d6)],'onDelete':_0x1ee255[_0x381d27(0x34f)]});}}}_0x3f63ef[_0x381d27(0x351)]={'outgoing':_0x453122,'incoming':_0x559e20};if(_0x453122['size']>0x0)_0x3375df(_0x3f63ef);}function _0x17a1f0(_0x5e3682,_0x567df0){const _0x5d8ed6=_0x50864b;return _0x5e3682[_0x5d8ed6(0x351)][_0x5d8ed6(0x693)][_0x5d8ed6(0x4ff)](_0x567df0)||[];}function _0x353e5e(_0x181831,_0x4e67ef){const _0x1a7d79=_0x50864b;return _0x181831[_0x1a7d79(0x351)]['incoming'][_0x1a7d79(0x4ff)](_0x4e67ef)||[];}function _0x3375df(_0x21e6dd){const _0x1f0e6e=_0x50864b;if(_0x21e6dd[_0x1f0e6e(0x432)])return _0x21e6dd[_0x1f0e6e(0x432)];return _0x21e6dd[_0x1f0e6e(0x432)]=_0x21e6dd['db'][_0x1f0e6e(0x1bd)]('__ref_index',{'dupSort':![]}),_0x21e6dd[_0x1f0e6e(0x432)];}function _0x13dcae(_0x3cfa04,_0x4bdf95,_0x3b3eb9,_0x336b2f,_0x310456){const _0x20a6e7=_0x50864b,_0x2b7713=_0x17a1f0(_0x3cfa04,_0x4bdf95);if(_0x2b7713[_0x20a6e7(0x2f6)]===0x0)return;const _0x2a5a28=_0x3375df(_0x3cfa04);for(const _0x5515db of _0x2b7713){const _0x19a199=_0x310456!=null?_0x54736d(_0x310456,_0x5515db[_0x20a6e7(0x5d6)]):undefined,_0x322f49=_0x336b2f!=null?_0x54736d(_0x336b2f,_0x5515db[_0x20a6e7(0x5d6)]):undefined;if(_0x19a199===_0x322f49)continue;_0x2dbf8d(_0x19a199)&&_0x2a5a28[_0x20a6e7(0x858)](_0x167a51(_0x5515db[_0x20a6e7(0x6da)],_0x19a199,_0x4bdf95,_0x3b3eb9,_0x5515db[_0x20a6e7(0x5d6)])),_0x2dbf8d(_0x322f49)&&_0x2a5a28[_0x20a6e7(0x5d4)](_0x167a51(_0x5515db[_0x20a6e7(0x6da)],_0x322f49,_0x4bdf95,_0x3b3eb9,_0x5515db[_0x20a6e7(0x5d6)]),0x1);}}function _0x4ea085(_0x4efd64,_0x4ca7b8,_0x10c2e2,_0x40d2aa){const _0x305cd8=_0x50864b,_0x42f085=_0x17a1f0(_0x4efd64,_0x4ca7b8);if(_0x42f085[_0x305cd8(0x2f6)]===0x0)return;const _0x2d410c=_0x3375df(_0x4efd64);for(const _0x3d317b of _0x42f085){const _0x232005=_0x40d2aa!=null?_0x54736d(_0x40d2aa,_0x3d317b[_0x305cd8(0x5d6)]):undefined;_0x2dbf8d(_0x232005)&&_0x2d410c[_0x305cd8(0x858)](_0x167a51(_0x3d317b[_0x305cd8(0x6da)],_0x232005,_0x4ca7b8,_0x10c2e2,_0x3d317b['fieldPath']));}}function _0x17e7cb(_0x455401,_0x578341,_0x17e1ce,_0x479648){const _0x372527=_0x50864b,_0x53dc01=_0x17a1f0(_0x455401,_0x578341);if(_0x53dc01[_0x372527(0x2f6)]===0x0)return[];const _0x32a238=[];for(const _0x1d44d2 of _0x53dc01){const _0x2c5820=_0x54736d(_0x479648,_0x1d44d2[_0x372527(0x5d6)]);if(_0x2c5820==null)continue;if(!_0x455401[_0x372527(0x637)](_0x1d44d2[_0x372527(0x6da)])){_0x32a238[_0x372527(0x3c0)]({'fieldPath':_0x1d44d2[_0x372527(0x5d6)],'targetType':_0x1d44d2[_0x372527(0x6da)],'targetKey':_0x2c5820,'message':_0x372527(0x650)+_0x1d44d2[_0x372527(0x6da)]+'\x27\x20does\x20not\x20exist'});continue;}const _0x2ff9cf=_0x455401[_0x372527(0x2d4)](_0x1d44d2[_0x372527(0x6da)])[_0x372527(0x441)];!_0x2ff9cf[_0x372527(0x8a8)](_0x2c5820)&&_0x32a238[_0x372527(0x3c0)]({'fieldPath':_0x1d44d2[_0x372527(0x5d6)],'targetType':_0x1d44d2[_0x372527(0x6da)],'targetKey':_0x2c5820,'message':_0x372527(0x4f0)+_0x2c5820+_0x372527(0x855)+_0x1d44d2['targetType']+'\x27'});}return _0x32a238;}function _0x285f33(_0x445594,_0x26d9cf,_0x12d245,_0xe64eb3,_0x18a343,{timestamp:_0x517bd5,origin:_0x52fb85,_cascadeVisited:_0x46f97f}){const _0xaad149=_0x50864b,_0x240536=_0x353e5e(_0x445594,_0x12d245);if(_0x240536[_0xaad149(0x2f6)]===0x0)return;const _0x3d6d6=_0x3375df(_0x445594),_0x1ada68=[];for(const [,,_0xa4a01e,_0x315a7f,_0x5e6e25]of _0x4d6692(_0x3d6d6,_0x12d245,_0xe64eb3)){_0x1ada68[_0xaad149(0x3c0)]({'sourceType':_0xa4a01e,'sourceKey':_0x315a7f,'fieldPath':_0x5e6e25});}if(_0x1ada68['length']===0x0)return;for(const _0x35c4f5 of _0x1ada68){const _0x22ecf6=_0x240536[_0xaad149(0x5a2)](_0x497b05=>_0x497b05[_0xaad149(0x203)]===_0x35c4f5[_0xaad149(0x203)]&&_0x497b05['fieldPath']===_0x35c4f5['fieldPath']),_0x33566c=_0x22ecf6?.[_0xaad149(0x34f)]||_0xaad149(0x3f7);switch(_0x33566c){case'restrict':{if(_0x52fb85===null)throw new _0xd389(_0x12d245,_0xe64eb3,_0x1ada68[_0xaad149(0x7f8)](_0x1c4808=>{const _0x1cfd04=_0xaad149,_0x17e24f=_0x240536[_0x1cfd04(0x5a2)](_0xc3df21=>_0xc3df21[_0x1cfd04(0x203)]===_0x1c4808[_0x1cfd04(0x203)]&&_0xc3df21[_0x1cfd04(0x5d6)]===_0x1c4808[_0x1cfd04(0x5d6)]);return(_0x17e24f?.[_0x1cfd04(0x34f)]||_0x1cfd04(0x3f7))===_0x1cfd04(0x3c4);}));break;}case'cascade':{const _0x3b3595=_0x2e45d5(_0x35c4f5['sourceType'],_0x35c4f5[_0xaad149(0x7f2)]);if(_0x46f97f[_0xaad149(0x868)](_0x3b3595))continue;_0x445594['_getType'](_0x35c4f5[_0xaad149(0x203)])['data'][_0xaad149(0x8a8)](_0x35c4f5[_0xaad149(0x7f2)])&&_0x445594[_0xaad149(0x5b7)](_0x26d9cf,_0x35c4f5['sourceType'],_0x35c4f5['sourceKey'],{'timestamp':_0x517bd5,'origin':_0x52fb85,'_cascadeVisited':_0x46f97f});break;}case'set_null':{const _0x2bbb3f=_0x445594[_0xaad149(0x2d4)](_0x35c4f5['sourceType'])[_0xaad149(0x441)],_0x3f92dc=_0x2bbb3f[_0xaad149(0x7f9)](_0x35c4f5[_0xaad149(0x7f2)]);if(_0x3f92dc){const _0x2bb593=_0x202313(_0x3f92dc[_0xaad149(0x658)],_0x35c4f5[_0xaad149(0x5d6)],null);_0x445594[_0xaad149(0x56c)](_0x26d9cf,_0xaad149(0x77c),_0x35c4f5['sourceType'],_0x35c4f5['sourceKey'],_0x2bb593,{'timestamp':_0x517bd5,'origin':_0x52fb85,'_cascading':!![]});}break;}}}}function _0x2e4cb3(_0x158dcd){const _0x4dbbdb=_0x50864b;!_0x158dcd['hasType'](_0xa20bf1)&&_0x158dcd[_0x4dbbdb(0x6db)](_0xa20bf1);}function _0x106577(_0x23cf6e,_0x11db0e,_0x2a107b,_0x288335,_0x42b39b,_0x53225c,_0x1d3efb,{timestamp:timestamp=Date[_0x50864b(0x785)](),origin:origin=null}={}){const _0x47a024=_0x50864b;_0x2e4cb3(_0x23cf6e);const _0x14eada=_0x2a107b+'@'+_0x288335+'@'+_0x42b39b,_0x2da27f={'sourceType':_0x2a107b,'sourceKey':_0x288335,'fieldPath':_0x42b39b,'targetType':_0x53225c,'targetKey':_0x1d3efb,'timestamp':timestamp,'origin':origin},_0x462682=_0x23cf6e[_0x47a024(0x2d4)](_0xa20bf1)['data'],_0x4603ee=_0x462682[_0x47a024(0x7f9)](_0x14eada),_0x1c2d83=_0x4603ee?_0x4603ee[_0x47a024(0x75b)]+0x1:0x1;_0x462682[_0x47a024(0x5d4)](_0x14eada,_0x2da27f,_0x1c2d83),_0x23cf6e[_0x47a024(0x817)]({'id':_0x47a024(0x33d)+_0xa20bf1+'@'+_0x14eada,'type':_0xa20bf1,'key':_0x14eada,'action':_0x20199a[_0x47a024(0x29b)],'timestamp':timestamp,'txnId':_0x11db0e?.['id'],'origin':origin},_0x4603ee?.['value'],_0x2da27f),_0x23cf6e[_0x47a024(0x230)][_0x47a024(0x380)](_0x4ed1db[_0x47a024(0x853)],{'sourceType':_0x2a107b,'sourceKey':_0x288335,'fieldPath':_0x42b39b,'targetType':_0x53225c,'targetKey':_0x1d3efb,'env':_0x23cf6e[_0x47a024(0x80a)]});}function _0x3ac61d(_0xc01ae3,_0x192f77,_0x490330,_0x59330a,_0x5438f5,{timestamp:timestamp=Date['now'](),origin:origin=null}={}){const _0x1b7e8e=_0x50864b;if(!_0xc01ae3['hasType'](_0xa20bf1))return;const _0x5098c1=_0x490330+'@'+_0x59330a+'@'+_0x5438f5,_0x1d363a=_0xc01ae3['_getType'](_0xa20bf1)[_0x1b7e8e(0x441)],_0x1fa3f2=_0x1d363a[_0x1b7e8e(0x7f9)](_0x5098c1);if(!_0x1fa3f2)return;_0x1d363a['removeSync'](_0x5098c1),_0xc01ae3['_logChange']({'id':_0x1b7e8e(0x33d)+_0xa20bf1+'@'+_0x5098c1,'type':_0xa20bf1,'key':_0x5098c1,'action':_0x20199a[_0x1b7e8e(0x2c8)],'timestamp':timestamp,'txnId':_0x192f77?.['id'],'origin':origin},_0x1fa3f2['value'],undefined),_0xc01ae3[_0x1b7e8e(0x230)][_0x1b7e8e(0x380)](_0x4ed1db['REF_VIOLATION_RESOLVED'],{'sourceType':_0x490330,'sourceKey':_0x59330a,'fieldPath':_0x5438f5,'env':_0xc01ae3[_0x1b7e8e(0x80a)]});}function _0xf65995(_0x3c9a9d,_0x1c4bf4,_0x2c499a,_0x414d70,_0x375e98={}){const _0x23cdaf=_0x50864b;if(!_0x3c9a9d[_0x23cdaf(0x637)](_0xa20bf1))return;const _0x6acbd8=_0x3c9a9d[_0x23cdaf(0x2d4)](_0xa20bf1)[_0x23cdaf(0x441)],_0x14abd6=_0x2c499a+'@'+_0x414d70+'@',_0xdada31=[];for(const {key:_0x506118,value:_0xbd66ca}of _0x6acbd8['getRange']({'start':_0x14abd6,'end':_0x14abd6+'\uffff'})){if(_0xbd66ca?.[_0x23cdaf(0x203)]===_0x2c499a&&_0xbd66ca?.[_0x23cdaf(0x7f2)]===_0x414d70)_0xdada31[_0x23cdaf(0x3c0)](_0x506118);}for(const _0x397f98 of _0xdada31){const _0x10dcd7=_0x6acbd8[_0x23cdaf(0x7f9)](_0x397f98);if(!_0x10dcd7)continue;_0x6acbd8['removeSync'](_0x397f98),_0x3c9a9d[_0x23cdaf(0x817)]({'id':'item:'+_0xa20bf1+'@'+_0x397f98,'type':_0xa20bf1,'key':_0x397f98,'action':_0x20199a[_0x23cdaf(0x2c8)],'timestamp':_0x375e98[_0x23cdaf(0x182)]||Date[_0x23cdaf(0x785)](),'txnId':_0x1c4bf4?.['id'],'origin':_0x375e98[_0x23cdaf(0x572)]},_0x10dcd7[_0x23cdaf(0x658)],undefined);}}function _0x4b125e(_0x666a0b,_0x3ee794){const _0x35384f=_0x50864b;if(!_0x666a0b[_0x35384f(0x637)](_0xa20bf1))return;const _0x55a309=_0x666a0b[_0x35384f(0x2d4)](_0xa20bf1)[_0x35384f(0x441)],_0x11c839=_0x3ee794+'@',_0x50fb8b=[];for(const {key:_0x5645a9,value:_0x4b6665}of _0x55a309['getRange']({'start':_0x11c839,'end':_0x11c839+'\uffff'})){if(_0x4b6665?.[_0x35384f(0x203)]===_0x3ee794)_0x50fb8b[_0x35384f(0x3c0)](_0x5645a9);}for(const _0x103e8f of _0x50fb8b)_0x55a309[_0x35384f(0x858)](_0x103e8f);}async function _0x653f59(_0xafe055,_0x2a019c){const _0x3b56db=_0x50864b,_0x2b3f44=_0x17a1f0(_0xafe055,_0x2a019c);if(_0x2b3f44[_0x3b56db(0x2f6)]===0x0)return;await _0xafe055[_0x3b56db(0x337)][_0x3b56db(0x4b7)](()=>{const _0x51ec9d=_0x3b56db;for(const {key:_0xf800f6,value:_0x360e74}of _0xafe055[_0x51ec9d(0x655)](_0x2a019c)){_0x13dcae(_0xafe055,_0x2a019c,_0xf800f6,_0x360e74,null);const _0xc0d505=_0x17e7cb(_0xafe055,_0x2a019c,_0xf800f6,_0x360e74);for(const _0x13f3a7 of _0xc0d505){_0x106577(_0xafe055,null,_0x2a019c,_0xf800f6,_0x13f3a7[_0x51ec9d(0x5d6)],_0x13f3a7[_0x51ec9d(0x6da)],_0x13f3a7['targetKey']);}}});}const _0x5f0f29=0x1388;async function _0x32af6d(_0x183bc7){const _0x37e315=_0x50864b,_0xba76f5=_0x183bc7[_0x37e315(0x351)]?.[_0x37e315(0x693)]?.[_0x37e315(0x4ad)]>0x0;if(!_0xba76f5&&!_0x183bc7[_0x37e315(0x432)])return{'dropped':0x0,'written':0x0};const _0x4fed7d=_0x3375df(_0x183bc7);let _0x3fbb61=0x0;for(;;){const _0x3acea9=Array[_0x37e315(0x6a7)](_0x4fed7d[_0x37e315(0x608)]({'limit':_0x5f0f29}));if(_0x3acea9[_0x37e315(0x2f6)]===0x0)break;let _0x57fa84=0x0;await _0x183bc7['_writer'][_0x37e315(0x4b7)](()=>{const _0x44ae49=_0x37e315;for(const _0x2d262f of _0x3acea9)if(_0x4fed7d[_0x44ae49(0x858)](_0x2d262f))_0x57fa84++;});if(_0x57fa84===0x0)break;_0x3fbb61+=_0x57fa84;}let _0x523781=0x0;for(const _0x580b0b of _0x183bc7['_refCache'][_0x37e315(0x693)][_0x37e315(0x542)]()){if(_0x580b0b['startsWith']('~')||!_0x183bc7['hasType'](_0x580b0b))continue;const _0x2b785a=_0x17a1f0(_0x183bc7,_0x580b0b);await _0x183bc7[_0x37e315(0x337)][_0x37e315(0x4b7)](()=>{const _0x519869=_0x37e315;for(const {key:_0x481718,value:_0x4ca660}of _0x183bc7[_0x519869(0x655)](_0x580b0b)){for(const _0x402634 of _0x2b785a){const _0x272bd9=_0x54736d(_0x4ca660,_0x402634[_0x519869(0x5d6)]);if(!_0x2dbf8d(_0x272bd9))continue;_0x4fed7d[_0x519869(0x5d4)](_0x167a51(_0x402634['targetType'],_0x272bd9,_0x580b0b,_0x481718,_0x402634[_0x519869(0x5d6)]),0x1),_0x523781++;}}});}return{'dropped':_0x3fbb61,'written':_0x523781};}return okdbEnvRefs={'getFieldValue':_0x54736d,'setFieldValue':_0x202313,'refIndexKey':_0x167a51,'isRefTarget':_0x2dbf8d,'cascadeVisitKey':_0x2e45d5,'extractRefs':_0x138550,'rebuildRefCache':_0x2e6bcf,'getTypeRefs':_0x17a1f0,'getIncomingRefs':_0x353e5e,'getRefIndexDb':_0x3375df,'updateRefIndex':_0x13dcae,'removeRefIndexEntries':_0x4ea085,'refIndexRowsFor':_0x4d6692,'rebuildRefIndex':_0x32af6d,'checkForeignKeys':_0x17e7cb,'processDeleteCascade':_0x285f33,'setRefViolation':_0x106577,'clearRefViolation':_0x3ac61d,'clearRefViolationsForKey':_0xf65995,'clearRefViolationsForType':_0x4b125e,'syncRefIndex':_0x653f59},okdbEnvRefs;}var hasRequiredOkdbSubscriptionsStore;function requireOkdbSubscriptionsStore(){const _0x20414a=_0x1c5fdf;if(hasRequiredOkdbSubscriptionsStore)return okdbSubscriptionsStore[_0x20414a(0x3f6)];hasRequiredOkdbSubscriptionsStore=0x1;const _0x4ac699=require$$0$4,{assertFilterAllowed:_0x89c449}=requireOkdbQueryFilter(),{rebuildRefCache:_0x35718d}=requireOkdbEnvRefs(),_0x64781d=_0x20414a(0x4c0),_0x7555e8=_0x20414a(0x5f4),_0x933d4c=_0x20414a(0x197),_0x2e97fd=[_0x20414a(0x689),_0x20414a(0x359),_0x20414a(0x7e4)],_0x372026=[_0x20414a(0x689),'type'],_0xcbc107=0x5a*0x3e8,_0x44bc68=Math[_0x20414a(0x25a)](_0xcbc107/0x2);class _0x39c391{constructor(_0xd63b4f,_0x26c372={}){const _0x567217=_0x20414a;this[_0x567217(0x263)]=_0xd63b4f,this[_0x567217(0x760)]=Number['isFinite'](_0x26c372[_0x567217(0x760)])&&_0x26c372[_0x567217(0x760)]>0x0?_0x26c372[_0x567217(0x760)]:_0xcbc107,this['refreshThresholdMs']=Number[_0x567217(0x6ef)](_0x26c372['refreshThresholdMs'])?_0x26c372[_0x567217(0x1b2)]:_0x44bc68,this[_0x567217(0x6be)]=null;}async[_0x20414a(0x3ca)](){const _0x760fcc=_0x20414a;if(this[_0x760fcc(0x6be)])return this[_0x760fcc(0x6be)];const _0x52f15c=await this[_0x760fcc(0x263)][_0x760fcc(0x496)](_0x64781d,{'sync':![]});return await _0x52f15c[_0x760fcc(0x816)](_0x7555e8,{'indexes':[_0x372026]}),await _0x52f15c[_0x760fcc(0x816)](_0x933d4c),_0x52f15c[_0x760fcc(0x620)](_0x933d4c)?_0x35718d(_0x52f15c):await _0x52f15c[_0x760fcc(0x266)](_0x933d4c,{'definition':{'type':'object','properties':{'sessionId':{'type':_0x760fcc(0x460),'ref':{'type':_0x7555e8,'onDelete':_0x760fcc(0x6c9)}},'dataEnv':{'type':_0x760fcc(0x460)},'type':{'type':_0x760fcc(0x460)},'key':{'type':_0x760fcc(0x460)}},'required':['sessionId','dataEnv',_0x760fcc(0x359),'key']},'enforce':!![]}),await _0x52f15c[_0x760fcc(0x816)](_0x933d4c,{'indexes':[_0x2e97fd]}),await _0x52f15c[_0x760fcc(0x3eb)](_0x933d4c,_0x2e97fd),await _0x52f15c[_0x760fcc(0x3eb)](_0x7555e8,_0x372026),this[_0x760fcc(0x6be)]=_0x52f15c,_0x52f15c;}[_0x20414a(0x55a)](){const _0x2fa287=_0x20414a;if(!this['_sub'])throw new Error('subscriptions-store:\x20open()\x20not\x20called');return this[_0x2fa287(0x6be)];}async['createSession']({sessionId:_0x3bf6de,dataEnv:_0x50eef5,type:_0x1bcd41,filter:filter=null,ttlMs:_0x5a330e}={}){const _0x2ccc09=_0x20414a,_0x475af3=this[_0x2ccc09(0x55a)]();_0x89c449(filter);const _0xf23452=_0x3bf6de!=null&&String(_0x3bf6de)['length']>0x0?String(_0x3bf6de):_0x4ac699[_0x2ccc09(0x55d)](),_0x55d058=Number[_0x2ccc09(0x6ef)](_0x5a330e)&&_0x5a330e>0x0?_0x5a330e:this[_0x2ccc09(0x760)],_0x3c5b9f=Date[_0x2ccc09(0x785)](),_0x252f12={'sessionId':_0xf23452,'dataEnv':_0x50eef5,'type':_0x1bcd41,'filter':filter??null,'version':0x0,'createdAt':_0x3c5b9f,'expiresAt':_0x3c5b9f+_0x55d058};return await _0x475af3[_0x2ccc09(0x77c)](_0x7555e8,_0xf23452,_0x252f12,{'ttl':_0x55d058}),{'sessionId':_0xf23452,'version':0x0};}['getSession'](_0x529400){const _0x4a27d6=_0x20414a;if(!_0x529400)return null;return this[_0x4a27d6(0x55a)]()['get'](_0x7555e8,String(_0x529400))??null;}async[_0x20414a(0x30d)](_0x2c1c84){const _0x1ff5fd=_0x20414a,_0x18fb0d=this[_0x1ff5fd(0x55a)](),_0x36f7be=String(_0x2c1c84);if(!_0x18fb0d[_0x1ff5fd(0x4ff)](_0x7555e8,_0x36f7be))return![];return await _0x18fb0d[_0x1ff5fd(0x7e6)](_0x7555e8,_0x36f7be),!![];}async[_0x20414a(0x80e)](_0x5e3dea){const _0xda2696=_0x20414a,_0x2a4e7c=this[_0xda2696(0x55a)](),_0x7f5e3=String(_0x5e3dea),_0x4c2abf=_0x2a4e7c[_0xda2696(0x4ff)](_0x7555e8,_0x7f5e3);if(!_0x4c2abf)return null;const _0x5dc5dc=(Number['isFinite'](_0x4c2abf[_0xda2696(0x75b)])?_0x4c2abf[_0xda2696(0x75b)]:0x0)+0x1;return await _0x2a4e7c[_0xda2696(0x77c)](_0x7555e8,_0x7f5e3,{..._0x4c2abf,'version':_0x5dc5dc}),_0x5dc5dc;}async['refreshTtl'](_0x49926c,_0x563202){const _0x510b84=_0x20414a,_0x255191=this[_0x510b84(0x55a)](),_0x3afc83=String(_0x49926c);if(!_0x255191[_0x510b84(0x4ff)](_0x7555e8,_0x3afc83))return![];const _0x1e2edf=Number[_0x510b84(0x6ef)](_0x563202)&&_0x563202>0x0?_0x563202:this['ttlMs'];if(this[_0x510b84(0x42a)](_0x3afc83))return![];return await _0x255191[_0x510b84(0x83e)](_0x7555e8,_0x3afc83,_0x1e2edf),await this[_0x510b84(0x6d0)](_0x3afc83,_0x1e2edf),!![];}async[_0x20414a(0x7c6)](_0x55f3bd,_0x24064b){const _0x415b1a=_0x20414a,_0x266c9e=this[_0x415b1a(0x55a)](),_0x33b672=Number['isFinite'](_0x24064b)&&_0x24064b>0x0?_0x24064b:this[_0x415b1a(0x760)],_0x20113b=Date['now'](),_0x162411=[];for(const _0x3755b2 of _0x55f3bd||[]){const _0x33048e=String(_0x3755b2),_0x5caa0a=_0x266c9e['get'](_0x7555e8,_0x33048e);if(!_0x5caa0a)continue;if(this[_0x415b1a(0x42a)](_0x33048e,_0x20113b))continue;_0x162411[_0x415b1a(0x3c0)]({'id':_0x33048e,'cur':_0x5caa0a});}if(_0x162411[_0x415b1a(0x2f6)]===0x0)return[];return await _0x266c9e[_0x415b1a(0x2ff)](async _0x27648e=>{const _0x1e0173=_0x415b1a;for(const {id:_0x4b8d1a,cur:_0x2dbd16}of _0x162411){_0x27648e[_0x1e0173(0x77c)](_0x7555e8,_0x4b8d1a,{..._0x2dbd16,'expiresAt':_0x20113b+_0x33b672}),_0x27648e[_0x1e0173(0x83e)](_0x7555e8,_0x4b8d1a,_0x33b672);}}),_0x162411[_0x415b1a(0x4ba)](_0x4a04b9=>_0x4a04b9['id']);}[_0x20414a(0x42a)](_0x5b66eb,_0x4c0514=Date[_0x20414a(0x785)]()){const _0x4f5647=_0x20414a,_0x513240=this[_0x4f5647(0x55a)]()[_0x4f5647(0x7ee)](_0x7555e8,String(_0x5b66eb));if(!_0x513240)return![];return _0x513240['expiresAt']-_0x4c0514>this[_0x4f5647(0x1b2)];}async[_0x20414a(0x6d0)](_0x495b82,_0x1edd30){const _0x274788=_0x20414a,_0x378093=this[_0x274788(0x55a)](),_0x4e7e69=_0x378093[_0x274788(0x4ff)](_0x7555e8,_0x495b82);if(!_0x4e7e69)return;await _0x378093['put'](_0x7555e8,_0x495b82,{..._0x4e7e69,'expiresAt':Date[_0x274788(0x785)]()+_0x1edd30});}async[_0x20414a(0x52b)](_0x316578,_0x2643fd,_0x51f470){const _0x1249ab=_0x20414a,_0x35f0c1=this[_0x1249ab(0x55a)](),_0x435bf7=String(_0x316578),_0x58aebb=_0x35f0c1[_0x1249ab(0x4ff)](_0x7555e8,_0x435bf7);if(!_0x58aebb)throw new Error(_0x1249ab(0x1da)+_0x435bf7);const _0x157dd8=_0x4ac699[_0x1249ab(0x55d)]();return await _0x35f0c1['put'](_0x933d4c,_0x157dd8,{'sessionId':_0x435bf7,'dataEnv':String(_0x58aebb[_0x1249ab(0x689)]),'type':String(_0x2643fd),'key':String(_0x51f470)}),_0x157dd8;}async[_0x20414a(0x55c)](_0x420946,_0x41cdc9,{retries:retries=0x8}={}){const _0x2b3fe0=_0x20414a,_0xdd8753=this[_0x2b3fe0(0x55a)]();for(let _0x3f7b99=0x0;;_0x3f7b99++){const _0x5b0b76=_0xdd8753[_0x2b3fe0(0x7f9)](_0x7555e8,_0x420946);if(!_0x5b0b76)return null;const _0x320901=_0x5b0b76['value'],_0x7b12c7=(Number['isFinite'](_0x320901[_0x2b3fe0(0x75b)])?_0x320901['version']:0x0)+0x1,{sessionPatch:sessionPatch={},applyInterests:applyInterests=null}=_0x41cdc9(_0x320901,_0xdd8753)||{};try{return await _0xdd8753['txn'](async _0x206253=>{const _0x1cf3c1=_0x2b3fe0;applyInterests?.(_0x206253),_0x206253[_0x1cf3c1(0x77c)](_0x7555e8,_0x420946,{..._0x320901,...sessionPatch,'version':_0x7b12c7},{'ifVersion':_0x5b0b76[_0x1cf3c1(0x75b)]});}),_0x7b12c7;}catch(_0x481aaa){if(_0x481aaa?.[_0x2b3fe0(0x22a)]===_0x2b3fe0(0x711)&&_0x3f7b99<retries)continue;throw _0x481aaa;}}}async[_0x20414a(0x26e)](_0x10ecae,{add:add=[],remove:remove=[]}={}){const _0x1050d3=_0x20414a,_0xc8ed72=String(_0x10ecae);return this[_0x1050d3(0x55c)](_0xc8ed72,(_0x4f1f5e,_0x1efae9)=>{const _0x4aa1c1=_0x1050d3,_0x242a4a=String(_0x4f1f5e[_0x4aa1c1(0x689)]),_0x2b2a96=new Set((remove||[])['map'](_0x3b7be3=>String(_0x3b7be3[_0x4aa1c1(0x359)])+'\x00'+String(_0x3b7be3[_0x4aa1c1(0x7e4)]))),_0x51d3a0=[];if(_0x2b2a96[_0x4aa1c1(0x4ad)]>0x0)for(const {key:_0x21508b,value:_0x1ab804}of _0x1efae9['getRange'](_0x933d4c,{})){if(!_0x1ab804||_0x1ab804[_0x4aa1c1(0x83a)]!==_0xc8ed72)continue;if(_0x2b2a96[_0x4aa1c1(0x868)](_0x1ab804[_0x4aa1c1(0x359)]+'\x00'+_0x1ab804[_0x4aa1c1(0x7e4)]))_0x51d3a0[_0x4aa1c1(0x3c0)](_0x21508b);}const _0x3090c7=(add||[])[_0x4aa1c1(0x4ba)](_0x378d7c=>({'id':_0x4ac699['randomUUID'](),'type':String(_0x378d7c['type']),'key':String(_0x378d7c[_0x4aa1c1(0x7e4)])}));return{'applyInterests':_0x5b17c9=>{const _0x3edee7=_0x4aa1c1;for(const _0x3bb013 of _0x51d3a0)_0x5b17c9[_0x3edee7(0x7e6)](_0x933d4c,_0x3bb013);for(const _0x35ca84 of _0x3090c7)_0x5b17c9[_0x3edee7(0x77c)](_0x933d4c,_0x35ca84['id'],{'sessionId':_0xc8ed72,'dataEnv':_0x242a4a,'type':_0x35ca84[_0x3edee7(0x359)],'key':_0x35ca84['key']});}};});}async['setFilter'](_0xdd1cb2,_0x29f09d){_0x89c449(_0x29f09d);const _0x51f23e=String(_0xdd1cb2);return this['_commitSessionMutation'](_0x51f23e,()=>({'sessionPatch':{'filter':_0x29f09d??null}}));}async['removeInterest'](_0x355bc6,_0x10e56f,_0x426f2d){const _0x335469=_0x20414a,_0x36ebb8=this[_0x335469(0x55a)](),_0x2d5e7f=String(_0x355bc6),_0x4ae23e=String(_0x10e56f),_0x1f9eba=String(_0x426f2d),_0x4a499d=[];for(const {key:_0x292936,value:_0x7e289}of _0x36ebb8['getRange'](_0x933d4c,{})){if(_0x7e289&&_0x7e289[_0x335469(0x83a)]===_0x2d5e7f&&_0x7e289[_0x335469(0x359)]===_0x4ae23e&&_0x7e289[_0x335469(0x7e4)]===_0x1f9eba)_0x4a499d[_0x335469(0x3c0)](_0x292936);}for(const _0x301b51 of _0x4a499d)await _0x36ebb8['remove'](_0x933d4c,_0x301b51);return _0x4a499d[_0x335469(0x2f6)];}async['replaceInterests'](_0x28d69d,_0x19f128){const _0x4dd4e2=_0x20414a,_0xbeb902=String(_0x28d69d);return this[_0x4dd4e2(0x55c)](_0xbeb902,(_0x19f19f,_0xfd9b18)=>{const _0x93b60e=_0x4dd4e2,_0x485685=String(_0x19f19f[_0x93b60e(0x689)]),_0x1e1bc8=[];for(const {key:_0x5f1832,value:_0x53a97b}of _0xfd9b18[_0x93b60e(0x655)](_0x933d4c,{})){if(_0x53a97b&&_0x53a97b['sessionId']===_0xbeb902)_0x1e1bc8['push'](_0x5f1832);}const _0x187b1c=(_0x19f128||[])['map'](_0x4e2092=>({'id':_0x4ac699[_0x93b60e(0x55d)](),'type':String(_0x4e2092['type']),'key':String(_0x4e2092[_0x93b60e(0x7e4)])}));return{'applyInterests':_0x318a2e=>{const _0x334d7e=_0x93b60e;for(const _0x2da0f9 of _0x1e1bc8)_0x318a2e[_0x334d7e(0x7e6)](_0x933d4c,_0x2da0f9);for(const _0x3d97d8 of _0x187b1c)_0x318a2e['put'](_0x933d4c,_0x3d97d8['id'],{'sessionId':_0xbeb902,'dataEnv':_0x485685,'type':_0x3d97d8['type'],'key':_0x3d97d8['key']});}};});}['sessionsForKey'](_0x3eeedf,_0x1aa76a,_0x484247){const _0x543fdc=_0x20414a,_0x474e22=this[_0x543fdc(0x55a)](),_0x534e30=String(_0x3eeedf),_0x424fee=String(_0x1aa76a),_0x525f70=String(_0x484247),_0x5706a4=new Set();for(const {value:_0x294578}of _0x474e22[_0x543fdc(0x807)](_0x933d4c,_0x2e97fd,{'start':[_0x534e30,_0x424fee,_0x525f70],'end':[_0x534e30,_0x424fee,_0x525f70,'']})){if(_0x294578&&_0x294578[_0x543fdc(0x83a)])_0x5706a4[_0x543fdc(0x3cc)](_0x294578[_0x543fdc(0x83a)]);}return[..._0x5706a4];}['filterSessionsForType'](_0xa484f0,_0x1a4fbc){const _0x3ad993=_0x20414a,_0x585dda=this[_0x3ad993(0x55a)](),_0x3fc85b=String(_0xa484f0),_0x15004f=String(_0x1a4fbc),_0x39400a=[];for(const {value:_0x2c6e75}of _0x585dda['byIndex'](_0x7555e8,_0x372026,{'start':[_0x3fc85b,_0x15004f],'end':[_0x3fc85b,_0x15004f,'\uffff']})){if(!_0x2c6e75||_0x2c6e75['dataEnv']!==_0x3fc85b||_0x2c6e75[_0x3ad993(0x359)]!==_0x15004f)continue;if(_0x2c6e75[_0x3ad993(0x7f8)]==null)continue;_0x39400a[_0x3ad993(0x3c0)]({'sessionId':_0x2c6e75[_0x3ad993(0x83a)],'filter':_0x2c6e75[_0x3ad993(0x7f8)],'version':Number[_0x3ad993(0x6ef)](_0x2c6e75['version'])?_0x2c6e75[_0x3ad993(0x75b)]:0x0});}return _0x39400a;}async[_0x20414a(0x338)](){const _0x1058c4=_0x20414a;return this[_0x1058c4(0x55a)]()[_0x1058c4(0x7a5)]();}}return okdbSubscriptionsStore[_0x20414a(0x3f6)]=_0x39c391,okdbSubscriptionsStore[_0x20414a(0x3f6)][_0x20414a(0x59a)]=_0x64781d,okdbSubscriptionsStore[_0x20414a(0x3f6)][_0x20414a(0x873)]=_0x7555e8,okdbSubscriptionsStore[_0x20414a(0x3f6)][_0x20414a(0x4a9)]=_0x933d4c,okdbSubscriptionsStore[_0x20414a(0x3f6)][_0x20414a(0x336)]=_0x2e97fd,okdbSubscriptionsStore[_0x20414a(0x3f6)]['SESSION_TYPE_INDEX']=_0x372026,okdbSubscriptionsStore[_0x20414a(0x3f6)][_0x20414a(0x6ec)]=_0xcbc107,okdbSubscriptionsStore[_0x20414a(0x3f6)];}var version=_0x1c5fdf(0x482),require$$29={'version':version},okdbEnginesEnums,hasRequiredOkdbEnginesEnums;function requireOkdbEnginesEnums(){const _0x401885=_0x1c5fdf;if(hasRequiredOkdbEnginesEnums)return okdbEnginesEnums;hasRequiredOkdbEnginesEnums=0x1;const _0x48d90b=_0x401885(0x808),_0x2ad28e=0xa,_0x5610be=Object[_0x401885(0x7ff)]({'CREATED':_0x401885(0x609),'ONLINE':_0x401885(0x2ae),'STOPPED':'stopped','INACTIVE':'inactive','ERROR':'error','REMOVED':_0x401885(0x3b2)}),_0x34511f=Object['freeze']({'STARTED':'started','STOPPED':_0x401885(0x35c),'ERROR':_0x401885(0x1f1),'INSTALLED':_0x401885(0x77e),'UNINSTALLED':_0x401885(0x2ea)}),_0x39e74f=Object[_0x401885(0x7ff)](new Set([_0x5610be[_0x401885(0x32f)],_0x5610be[_0x401885(0x25c)],_0x5610be['INACTIVE'],_0x5610be[_0x401885(0x5b8)]]));function _0x42339c(_0x5589cc){const _0x1765bf=_0x401885;return _0x5589cc?.[_0x1765bf(0x28f)]===![]?_0x5610be[_0x1765bf(0x25c)]:_0x1765bf(0x669);}return okdbEnginesEnums={'TYPE_ENGINES':_0x48d90b,'MAX_UPDATE_RETRIES':_0x2ad28e,'ENGINE_STATUS':_0x5610be,'ENGINE_EVENTS':_0x34511f,'UPDATABLE_STATUSES':_0x39e74f,'durableOnlyEngineState':_0x42339c},okdbEnginesEnums;}var enums,hasRequiredEnums;function requireEnums(){const _0x3c79de=_0x1c5fdf;if(hasRequiredEnums)return enums;hasRequiredEnums=0x1;const _0x56583b=Object['freeze']({'EMBEDDER':_0x3c79de(0x726),'INDEXER':_0x3c79de(0x2dc),'SEARCH':'vector-search','WORKER':'embed-worker'}),_0x539ecd=Object[_0x3c79de(0x7ff)]({'PENDING':_0x3c79de(0x73b),'DONE':_0x3c79de(0x1e2),'FAILED':_0x3c79de(0x41a),'DELETED':'deleted'}),_0x5ac849=Object[_0x3c79de(0x7ff)]({'INDEXER_READY':_0x3c79de(0x7c4),'INDEXER_FLUSHED':_0x3c79de(0x6cd),'INDEXER_DOC_DONE':_0x3c79de(0x310),'INDEXER_DOC_FAILED':_0x3c79de(0x3bf),'INDEXER_DOC_QUEUED':_0x3c79de(0x208),'STRATEGY_REGISTERED':_0x3c79de(0x798),'DOC_STATUS_CHANGE':'embeddings:doc:status_change','PIPELINE_READY':_0x3c79de(0x80d)}),_0x134e26=Object['freeze']({'MODELS':_0x3c79de(0x308),'DOC_STATUS_PREFIX':_0x3c79de(0x385),'VEC_PREFIX':_0x3c79de(0x20e)});return enums={'ENGINE_TYPES':_0x56583b,'INDEXER_DOC_STATUS':_0x539ecd,'EMBEDDINGS_EVENTS':_0x5ac849,'INTERNAL_TYPES':_0x134e26},enums;}var okdbQueueValidate,hasRequiredOkdbQueueValidate;function requireOkdbQueueValidate(){const _0x4c8f3d=_0x1c5fdf;if(hasRequiredOkdbQueueValidate)return okdbQueueValidate;hasRequiredOkdbQueueValidate=0x1;const _0xf4eb62=Object[_0x4c8f3d(0x7ff)]({'PENDING':_0x4c8f3d(0x73b),'RUNNING':_0x4c8f3d(0x843),'DONE':'done','FAILED':_0x4c8f3d(0x41a)}),_0x31acf4=Object[_0x4c8f3d(0x7ff)]({'ACTIVE':'active','PAUSED':_0x4c8f3d(0x770),'DRAINING':'draining'}),_0x20373d=Object[_0x4c8f3d(0x7ff)]({'ENQUEUED':_0x4c8f3d(0x69e),'DONE':'queue:done','FAILED':_0x4c8f3d(0x5d8),'RETRY':_0x4c8f3d(0x64a),'RESCHEDULED':_0x4c8f3d(0x742),'REMOVED':_0x4c8f3d(0x1e6),'RECONCILED':_0x4c8f3d(0x24f),'CLEAR_PROGRESS':_0x4c8f3d(0x46a),'CLEAR_DONE':'queue:clear-done','LOG':_0x4c8f3d(0x625)}),_0x1e2713=Object[_0x4c8f3d(0x7ff)]([_0x4c8f3d(0x36c),_0x4c8f3d(0x427),'warn',_0x4c8f3d(0x1f1)]),_0x2a476b=0x1,_0x390edd=0xc350,_0x353958=0x400,_0x565b11=0x800;function _0x1c51fb(_0x43ee1c){const _0x35873b=_0x4c8f3d;return _0x43ee1c!=null&&typeof _0x43ee1c===_0x35873b(0x86d)&&(_0x43ee1c[_0x35873b(0x4ca)]===Object||Object[_0x35873b(0x228)](_0x43ee1c)===null);}function _0x3a13ba(_0x5c7efd,_0x45fde5,_0x325217,_0x4872fe){const _0x1ced31=_0x4c8f3d;if(_0x5c7efd==null)return _0x45fde5;const _0x4332dc=Number(_0x5c7efd);if(!Number[_0x1ced31(0x6ef)](_0x4332dc))return _0x45fde5;const _0x3f323f=Math['trunc'](_0x4332dc);if(_0x3f323f<_0x325217)return _0x325217;if(_0x3f323f>_0x4872fe)return _0x4872fe;return _0x3f323f;}function _0x3d02a9(_0x4586e5){const _0x448c60=_0x4c8f3d;if(!_0x4586e5)return[];if(typeof _0x4586e5===_0x448c60(0x460))_0x4586e5=[_0x4586e5];if(!Array[_0x448c60(0x55b)](_0x4586e5))throw new Error(_0x448c60(0x2b9));const _0x386e99=[],_0x311b16=new Set();for(const _0x17437c of _0x4586e5){if(_0x17437c==null)continue;const _0x581e06=String(_0x17437c)[_0x448c60(0x51d)]();if(!_0x581e06)continue;if(_0x581e06[_0x448c60(0x2f6)]>0x80)throw new Error(_0x448c60(0x6ff));if(_0x311b16[_0x448c60(0x868)](_0x581e06))continue;_0x311b16[_0x448c60(0x3cc)](_0x581e06),_0x386e99['push'](_0x581e06);if(_0x386e99[_0x448c60(0x2f6)]>=0x20)break;}return _0x386e99;}function _0x45bde9(_0x379dca){const _0x4dae1d=_0x4c8f3d;if(_0x379dca==null)return null;const _0xb762ad=String(_0x379dca)[_0x4dae1d(0x51d)]();if(!_0xb762ad)return null;if(_0xb762ad[_0x4dae1d(0x2f6)]>0x80)throw new Error(_0x4dae1d(0x84d));return _0xb762ad;}function _0x326a8b(_0x513bcf,_0x31cb15=0x1){const _0x48c5bf=_0x4c8f3d;if(_0x513bcf==null)return[];if(typeof _0x513bcf===_0x48c5bf(0x460)){const _0x3b7bf2=_0x45bde9(_0x513bcf);if(!_0x3b7bf2)return[];return[{'id':_0x3b7bf2,'tokens':_0x31cb15}];}if(!Array[_0x48c5bf(0x55b)](_0x513bcf))throw new Error('buckets\x20must\x20be\x20array\x20or\x20string');const _0x5c61c=[],_0x416769=new Set();for(const _0x27db66 of _0x513bcf){let _0x184aa8,_0x1718c2;if(Array[_0x48c5bf(0x55b)](_0x27db66))[_0x184aa8,_0x1718c2]=_0x27db66;else{if(_0x27db66&&typeof _0x27db66==='object')({id:_0x184aa8,tokens:_0x1718c2}=_0x27db66);else{if(typeof _0x27db66===_0x48c5bf(0x460))_0x184aa8=_0x27db66,_0x1718c2=_0x31cb15;else continue;}}_0x184aa8=_0x45bde9(_0x184aa8);if(!_0x184aa8)continue;const _0x13ab80=_0x1718c2==null?_0x31cb15:Math[_0x48c5bf(0x616)](Number(_0x1718c2));if(!Number[_0x48c5bf(0x6ef)](_0x13ab80)||_0x13ab80<0x1)throw new Error(_0x48c5bf(0x250)+_0x184aa8+_0x48c5bf(0x6e5));if(_0x13ab80>0xf4240)throw new Error('bucket\x20\x22'+_0x184aa8+_0x48c5bf(0x547));if(_0x416769['has'](_0x184aa8))throw new Error('duplicate\x20bucket:\x20'+_0x184aa8);_0x416769[_0x48c5bf(0x3cc)](_0x184aa8),_0x5c61c['push']({'id':_0x184aa8,'tokens':_0x13ab80});}return _0x5c61c;}function _0x23517c(_0x4c42aa,_0x30914c=0x400){const _0x2a6c4c=_0x4c8f3d;if(_0x4c42aa==null)return null;const _0x13068e=String(_0x4c42aa)[_0x2a6c4c(0x5d1)](0x0,_0x30914c);return _0x13068e||null;}function _0x74d27c(_0x35810d){const _0x57853c=_0x4c8f3d;if(_0x35810d==null)return null;if(_0x35810d[_0x57853c(0x7e4)]!==undefined&&_0x35810d[_0x57853c(0x658)]!==undefined)return _0x35810d;return{'key':_0x35810d['id']??null,'value':_0x35810d};}function _0x2af8ab(_0x55679e){const _0x5a9871=_0x4c8f3d;let _0x29cfdf=_0x55679e;if(typeof _0x55679e==='string')_0x29cfdf={'message':_0x55679e};if(!_0x1c51fb(_0x29cfdf))throw new Error(_0x5a9871(0x543));const _0x12b5af=_0x29cfdf[_0x5a9871(0x32a)]==null?_0x5a9871(0x427):String(_0x29cfdf[_0x5a9871(0x32a)])[_0x5a9871(0x85a)]();if(!_0x1e2713[_0x5a9871(0x75e)](_0x12b5af))throw new Error(_0x5a9871(0x1e8)+_0x12b5af);if(_0x29cfdf[_0x5a9871(0x5e1)]==null)throw new Error(_0x5a9871(0x7d2));const _0x223ef2=String(_0x29cfdf[_0x5a9871(0x5e1)])[_0x5a9871(0x5d1)](0x0,_0x353958);let _0x23afbd=null;if(_0x29cfdf[_0x5a9871(0x861)]!=null){if(!_0x1c51fb(_0x29cfdf[_0x5a9871(0x861)]))throw new Error(_0x5a9871(0x83d));if(JSON[_0x5a9871(0x34d)](_0x29cfdf[_0x5a9871(0x861)])['length']>_0x565b11)throw new Error(_0x5a9871(0x69d));_0x23afbd=_0x29cfdf[_0x5a9871(0x861)];}return{'level':_0x12b5af,'message':_0x223ef2,'fields':_0x23afbd,'ts':Date[_0x5a9871(0x785)]()};}function _0x1afe89(_0x7df256){const _0x39d587=_0x4c8f3d;if(_0x7df256==null)return;if(!Number[_0x39d587(0x887)](_0x7df256)||_0x7df256<_0x2a476b||_0x7df256>_0x390edd)throw new Error(_0x39d587(0x5f3)+_0x2a476b+',\x20'+_0x390edd+']');}function _0x413b51(_0x3e4b64){const _0x1e40b6=_0x4c8f3d;if(!_0x1c51fb(_0x3e4b64))throw new Error('job\x20must\x20be\x20object');if(typeof _0x3e4b64['id']!==_0x1e40b6(0x460)||_0x3e4b64['id']['length']<0x8)throw new Error(_0x1e40b6(0x570));if(typeof _0x3e4b64[_0x1e40b6(0x359)]!==_0x1e40b6(0x460)||!_0x3e4b64[_0x1e40b6(0x359)])throw new Error(_0x1e40b6(0x45d));if(!Object[_0x1e40b6(0x534)](_0xf4eb62)[_0x1e40b6(0x75e)](_0x3e4b64[_0x1e40b6(0x392)]))throw new Error('invalid\x20job.status:\x20'+_0x3e4b64[_0x1e40b6(0x392)]);for(const _0x3a18d8 of[_0x1e40b6(0x78d),'created',_0x1e40b6(0x38c)]){if(typeof _0x3e4b64[_0x3a18d8]!=='number'||!Number[_0x1e40b6(0x6ef)](_0x3e4b64[_0x3a18d8]))throw new Error('job.'+_0x3a18d8+_0x1e40b6(0x249));}if(_0x3e4b64[_0x1e40b6(0x47d)]!=null&&(typeof _0x3e4b64[_0x1e40b6(0x47d)]!==_0x1e40b6(0x46d)||!Number[_0x1e40b6(0x6ef)](_0x3e4b64['finished'])))throw new Error(_0x1e40b6(0x662));if(!Number[_0x1e40b6(0x887)](_0x3e4b64['tries'])||_0x3e4b64[_0x1e40b6(0x24a)]<0x0)throw new Error(_0x1e40b6(0x5a8));if(!Number['isInteger'](_0x3e4b64['priority']))throw new Error(_0x1e40b6(0x6cf));if(_0x3e4b64['max_tries']!==null&&_0x3e4b64[_0x1e40b6(0x416)]!==Infinity&&(!Number[_0x1e40b6(0x887)](_0x3e4b64[_0x1e40b6(0x416)])||_0x3e4b64[_0x1e40b6(0x416)]<0x1))throw new Error(_0x1e40b6(0x408));if(_0x3e4b64[_0x1e40b6(0x6d1)]!=null&&(!Number[_0x1e40b6(0x887)](_0x3e4b64[_0x1e40b6(0x6d1)])||_0x3e4b64[_0x1e40b6(0x6d1)]<0x0))throw new Error(_0x1e40b6(0x763));if(_0x3e4b64['backoff_multiplier']!=null&&(typeof _0x3e4b64[_0x1e40b6(0x1b0)]!==_0x1e40b6(0x46d)||_0x3e4b64[_0x1e40b6(0x1b0)]<0x1))throw new Error(_0x1e40b6(0x86e));if(_0x3e4b64[_0x1e40b6(0x2cd)]!=null&&typeof _0x3e4b64[_0x1e40b6(0x2cd)]!==_0x1e40b6(0x460))throw new Error('job.claim_id\x20must\x20be\x20string|null');if(_0x3e4b64[_0x1e40b6(0x23e)]!=null&&(typeof _0x3e4b64[_0x1e40b6(0x23e)]!==_0x1e40b6(0x46d)||!Number[_0x1e40b6(0x6ef)](_0x3e4b64['claim_expires'])))throw new Error(_0x1e40b6(0x835));if(_0x3e4b64[_0x1e40b6(0x618)]!=null&&typeof _0x3e4b64[_0x1e40b6(0x618)]!==_0x1e40b6(0x460))throw new Error(_0x1e40b6(0x2c6));if(_0x3e4b64[_0x1e40b6(0x6dc)]!=null&&(!Number[_0x1e40b6(0x887)](_0x3e4b64[_0x1e40b6(0x6dc)])||_0x3e4b64[_0x1e40b6(0x6dc)]<0x1))throw new Error(_0x1e40b6(0x89a));if(_0x3e4b64[_0x1e40b6(0x639)]!=null){if(!Array['isArray'](_0x3e4b64[_0x1e40b6(0x639)]))throw new Error('job.buckets\x20must\x20be\x20array|null');for(const _0x45719f of _0x3e4b64[_0x1e40b6(0x639)]){if(!_0x45719f||typeof _0x45719f!==_0x1e40b6(0x86d))throw new Error('job.buckets\x20entries\x20must\x20be\x20objects');if(typeof _0x45719f['id']!==_0x1e40b6(0x460)||!_0x45719f['id'][_0x1e40b6(0x51d)]())throw new Error(_0x1e40b6(0x21d));if(!Number[_0x1e40b6(0x887)](_0x45719f[_0x1e40b6(0x2d0)])||_0x45719f[_0x1e40b6(0x2d0)]<0x1)throw new Error(_0x1e40b6(0x70d));}}if(_0x3e4b64[_0x1e40b6(0x7fc)]!=null&&typeof _0x3e4b64['cron']!==_0x1e40b6(0x460))throw new Error('job.cron\x20must\x20be\x20string|null');if(_0x3e4b64[_0x1e40b6(0x68f)]!=null&&typeof _0x3e4b64[_0x1e40b6(0x68f)]!==_0x1e40b6(0x460))throw new Error('job.idempotency_key\x20must\x20be\x20string|null');if(!Array['isArray'](_0x3e4b64['tags']))throw new Error('job.tags\x20must\x20be\x20array');if(_0x3e4b64[_0x1e40b6(0x4fb)]!=null&&typeof _0x3e4b64[_0x1e40b6(0x4fb)]!==_0x1e40b6(0x460))throw new Error(_0x1e40b6(0x23b));if(_0x3e4b64[_0x1e40b6(0x836)]!=null&&typeof _0x3e4b64['status_code']!==_0x1e40b6(0x460))throw new Error('job.status_code\x20must\x20be\x20string|null');if(_0x3e4b64[_0x1e40b6(0x368)]!=null&&typeof _0x3e4b64[_0x1e40b6(0x368)]!==_0x1e40b6(0x460))throw new Error('job.status_message\x20must\x20be\x20string|null');if(_0x3e4b64[_0x1e40b6(0x79b)]!=null&&typeof _0x3e4b64['error_stack']!==_0x1e40b6(0x460))throw new Error('job.error_stack\x20must\x20be\x20string|null');for(const _0x2da584 of[_0x1e40b6(0x4ed),_0x1e40b6(0x24e)]){const _0x124b97=_0x3e4b64[_0x2da584];if(_0x124b97!=null&&(!Number[_0x1e40b6(0x887)](_0x124b97)||_0x124b97<0x0))throw new Error(_0x1e40b6(0x7c2)+_0x2da584+_0x1e40b6(0x823));}_0x1afe89(_0x3e4b64[_0x1e40b6(0x2fa)]);}function _0x3d51df(_0x548d16){const _0x2f503a=_0x4c8f3d;if(!_0x1c51fb(_0x548d16))throw new Error(_0x2f503a(0x811));if(typeof _0x548d16['id']!==_0x2f503a(0x460)||!_0x548d16['id'][_0x2f503a(0x51d)]())throw new Error(_0x2f503a(0x410));if(!Object[_0x2f503a(0x534)](_0x31acf4)[_0x2f503a(0x75e)](_0x548d16[_0x2f503a(0x392)]))throw new Error(_0x2f503a(0x4da)+_0x548d16[_0x2f503a(0x392)]);if(_0x548d16[_0x2f503a(0x200)]!=null&&(!Number[_0x2f503a(0x887)](_0x548d16[_0x2f503a(0x200)])||_0x548d16[_0x2f503a(0x200)]<0x1))throw new Error(_0x2f503a(0x65a));if(_0x548d16['defaults']!=null){if(!_0x1c51fb(_0x548d16[_0x2f503a(0x619)]))throw new Error(_0x2f503a(0x3fc));const _0x4b315c=_0x548d16['defaults'];if(_0x4b315c[_0x2f503a(0x416)]!=null&&(!Number[_0x2f503a(0x887)](_0x4b315c[_0x2f503a(0x416)])||_0x4b315c['max_tries']<0x1))throw new Error(_0x2f503a(0x85f));if(_0x4b315c[_0x2f503a(0x6d1)]!=null&&(!Number[_0x2f503a(0x887)](_0x4b315c[_0x2f503a(0x6d1)])||_0x4b315c[_0x2f503a(0x6d1)]<0x0))throw new Error(_0x2f503a(0x50f));if(_0x4b315c[_0x2f503a(0x1b0)]!=null&&(typeof _0x4b315c[_0x2f503a(0x1b0)]!==_0x2f503a(0x46d)||_0x4b315c[_0x2f503a(0x1b0)]<0x1))throw new Error('job_type.defaults.backoff_multiplier\x20must\x20be\x20number\x20>=\x201\x20or\x20null');if(_0x4b315c[_0x2f503a(0x5cc)]!=null&&!Number['isInteger'](_0x4b315c[_0x2f503a(0x5cc)]))throw new Error(_0x2f503a(0x39e));if(_0x4b315c[_0x2f503a(0x7e1)]!=null&&(!Number[_0x2f503a(0x887)](_0x4b315c[_0x2f503a(0x7e1)])||_0x4b315c['ttl']<0x0))throw new Error(_0x2f503a(0x80f));for(const _0x520b60 of[_0x2f503a(0x4ed),_0x2f503a(0x24e)]){if(_0x4b315c[_0x520b60]!=null&&(!Number[_0x2f503a(0x887)](_0x4b315c[_0x520b60])||_0x4b315c[_0x520b60]<0x0))throw new Error(_0x2f503a(0x411)+_0x520b60+'\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer');}if(_0x4b315c[_0x2f503a(0x639)]!=null&&!Array[_0x2f503a(0x55b)](_0x4b315c[_0x2f503a(0x639)]))throw new Error(_0x2f503a(0x65e));_0x1afe89(_0x4b315c[_0x2f503a(0x2fa)]);}if(_0x548d16[_0x2f503a(0x692)]!=null){if(!_0x1c51fb(_0x548d16[_0x2f503a(0x692)]))throw new Error('job_type.payload_schema\x20must\x20be\x20object|null');if(!_0x1c51fb(_0x548d16[_0x2f503a(0x692)]['definition']))throw new Error(_0x2f503a(0x314));if(typeof _0x548d16[_0x2f503a(0x692)]['enforce']!=='boolean')throw new Error(_0x2f503a(0x6d5));}for(const _0x3dde79 of[_0x2f503a(0x6a9),'updated_at']){if(typeof _0x548d16[_0x3dde79]!=='number'||!Number[_0x2f503a(0x6ef)](_0x548d16[_0x3dde79]))throw new Error('job_type.'+_0x3dde79+_0x2f503a(0x249));}}function _0x51c083(_0x3ae177){const _0x2a5093=_0x4c8f3d;if(!_0x1c51fb(_0x3ae177))throw new Error(_0x2a5093(0x4ee));if(typeof _0x3ae177['id']!==_0x2a5093(0x460)||!_0x3ae177['id']['trim']())throw new Error(_0x2a5093(0x2b8));if(!Number[_0x2a5093(0x887)](_0x3ae177[_0x2a5093(0x2d0)])||_0x3ae177[_0x2a5093(0x2d0)]<0x0)throw new Error(_0x2a5093(0x790));if(!Number[_0x2a5093(0x887)](_0x3ae177['capacity'])||_0x3ae177[_0x2a5093(0x1bf)]<0x0)throw new Error(_0x2a5093(0x226));if(_0x3ae177[_0x2a5093(0x2d0)]>_0x3ae177['capacity'])throw new Error(_0x2a5093(0x3d4));if(!Number[_0x2a5093(0x887)](_0x3ae177['refill_amount'])||_0x3ae177[_0x2a5093(0x805)]<0x0)throw new Error(_0x2a5093(0x773));if(!Number['isInteger'](_0x3ae177[_0x2a5093(0x312)])||_0x3ae177[_0x2a5093(0x312)]<0x0)throw new Error(_0x2a5093(0x514));if(typeof _0x3ae177[_0x2a5093(0x38c)]!==_0x2a5093(0x46d)||!Number[_0x2a5093(0x6ef)](_0x3ae177[_0x2a5093(0x38c)]))throw new Error(_0x2a5093(0x7f3));}return okdbQueueValidate={'STATUS':_0xf4eb62,'JOB_TYPE_STATUS':_0x31acf4,'QUEUE_EVENTS':_0x20373d,'LOG_LEVELS':_0x1e2713,'LOG_CAP_MIN':_0x2a476b,'LOG_CAP_MAX':_0x390edd,'clampInt':_0x3a13ba,'asNullableString':_0x23517c,'normalizeResult':_0x74d27c,'normalizeTags':_0x3d02a9,'normalizeBucket':_0x45bde9,'normalizeBuckets':_0x326a8b,'normalizeLogEntry':_0x2af8ab,'validateJobShape':_0x413b51,'validateJobTypeShape':_0x3d51df,'validateBucketShape':_0x51c083},okdbQueueValidate;}var okdbTimers,hasRequiredOkdbTimers;function requireOkdbTimers(){if(hasRequiredOkdbTimers)return okdbTimers;hasRequiredOkdbTimers=0x1;const _0x3073c1=0x2**0x1f-0x1;function _0x177e07(_0x3a0f73){if(!(_0x3a0f73>0x0))return 0x0;return _0x3a0f73>_0x3073c1?_0x3073c1:_0x3a0f73;}function _0x40d1b9(_0x472176){return _0x472176===Infinity;}return okdbTimers={'MAX_TIMER_DELAY':_0x3073c1,'clampTimerDelay':_0x177e07,'isNeverDelay':_0x40d1b9},okdbTimers;}var okdbChangefeed,hasRequiredOkdbChangefeed;function requireOkdbChangefeed(){const _0x3fdff4=_0x1c5fdf;if(hasRequiredOkdbChangefeed)return okdbChangefeed;hasRequiredOkdbChangefeed=0x1;const _0x520884=require$$0$6,{clampTimerDelay:_0x36b1db}=requireOkdbTimers(),{EVENTS:_0xe26131,CHANGE_ACTIONS:_0x36de2c}=requireOkdbEnums(),{LOOP:_0x90d8b7}=requireOkdbLoopMonitor(),_0x5bcac0=Number(process.env.OKDB_CHANGEFEED_QUANTUM)||0x3e8,_0x1b48e3=0x5,_0x42d25d=0x2710;class _0x41a54d extends _0x520884{constructor(_0x38d2f9,_0x5f39e2={}){const _0x2f1554=_0x20ac;super(),this[_0x2f1554(0x263)]=_0x38d2f9,this[_0x2f1554(0x78c)]=_0x5f39e2[_0x2f1554(0x27e)]??_0x5bcac0,this[_0x2f1554(0x7b8)]=_0x5f39e2[_0x2f1554(0x2a0)]??_0x1b48e3,this[_0x2f1554(0x279)]=_0x5f39e2[_0x2f1554(0x36d)]??_0x42d25d,this['_started']=![],this[_0x2f1554(0x350)]=new Map(),this['_baselines']=new Map(),this[_0x2f1554(0x597)]=new Map(),this['_flushTimer']=null,this[_0x2f1554(0x549)]=![],this[_0x2f1554(0x5ad)]=new Set(),this['_pendingLocal']=new Set(),this[_0x2f1554(0x558)]=_0x37c5fc=>this[_0x2f1554(0x25e)](_0x37c5fc),this[_0x2f1554(0x51c)]=_0x1eb51b=>this[_0x2f1554(0x53d)](_0x1eb51b),this[_0x2f1554(0x319)]=_0x568286=>this[_0x2f1554(0x1e3)](_0x568286),this[_0x2f1554(0x2ca)]=()=>this[_0x2f1554(0x584)]();}[_0x3fdff4(0x84e)](){const _0x2152d6=_0x3fdff4;if(this[_0x2152d6(0x17f)])return;this['_started']=!![];for(const [_0x3c1a7f,_0x5edc19]of this[_0x2152d6(0x263)][_0x2152d6(0x33b)]){if(_0x3c1a7f[_0x2152d6(0x245)]('~'))continue;try{_0x5edc19['_enableChangelog']();}catch{}}for(const [_0x69d166,_0x1b3464]of this[_0x2152d6(0x263)][_0x2152d6(0x33b)]){if(_0x69d166['startsWith']('~'))continue;try{this[_0x2152d6(0x27c)][_0x2152d6(0x398)](_0x69d166,_0x1b3464['getClock']()||0x0);}catch{}}const {events:_0x5520c2}=this[_0x2152d6(0x263)];_0x5520c2['on'](_0xe26131[_0x2152d6(0x484)],this['_onPending']),_0x5520c2['on'](_0xe26131[_0x2152d6(0x4b4)],this['_onItem']),_0x5520c2['on'](_0xe26131[_0x2152d6(0x698)],this['_onItem']),_0x5520c2['on'](_0xe26131[_0x2152d6(0x36e)],this[_0x2152d6(0x558)]),_0x5520c2['on'](_0xe26131[_0x2152d6(0x859)],this[_0x2152d6(0x319)]),_0x5520c2['once'](_0xe26131[_0x2152d6(0x5f9)],this['_onStop']);}[_0x3fdff4(0x584)](){const _0x2597d4=_0x3fdff4;if(!this[_0x2597d4(0x17f)])return;this[_0x2597d4(0x17f)]=![];const {events:_0x413e7f}=this[_0x2597d4(0x263)];_0x413e7f[_0x2597d4(0x76e)](_0xe26131['ITEM_PENDING'],this[_0x2597d4(0x51c)]),_0x413e7f['off'](_0xe26131[_0x2597d4(0x4b4)],this[_0x2597d4(0x558)]),_0x413e7f[_0x2597d4(0x76e)](_0xe26131[_0x2597d4(0x698)],this[_0x2597d4(0x558)]),_0x413e7f[_0x2597d4(0x76e)](_0xe26131['ITEM_REMOVE'],this[_0x2597d4(0x558)]),_0x413e7f[_0x2597d4(0x76e)](_0xe26131[_0x2597d4(0x859)],this[_0x2597d4(0x319)]);try{_0x413e7f[_0x2597d4(0x76e)](_0xe26131['SYSTEM_STOPPED'],this['_onStop']);}catch{}this['_flushTimer']&&(clearTimeout(this[_0x2597d4(0x85e)]),this[_0x2597d4(0x85e)]=null),this[_0x2597d4(0x597)]['clear'](),this[_0x2597d4(0x350)][_0x2597d4(0x7be)](),this['_baselines'][_0x2597d4(0x7be)](),this[_0x2597d4(0x5ad)][_0x2597d4(0x7be)](),this[_0x2597d4(0x3af)][_0x2597d4(0x7be)]();}[_0x3fdff4(0x1d8)](_0x3e267f,_0x5c863e,_0x15b311,_0x5ec1e4){return _0x3e267f+'\x00'+_0x5c863e+'\x00'+_0x15b311+'\x00'+_0x5ec1e4;}[_0x3fdff4(0x288)](_0x2aa5be,_0x37e3da,_0x4eef54,_0x2e9599){const _0x4a27c4=_0x3fdff4,_0x4bca4a=this['_dedupeKey'](_0x2aa5be,_0x37e3da,_0x4eef54,_0x2e9599);if(this[_0x4a27c4(0x5ad)][_0x4a27c4(0x868)](_0x4bca4a))return![];this[_0x4a27c4(0x5ad)][_0x4a27c4(0x3cc)](_0x4bca4a);if(this[_0x4a27c4(0x5ad)][_0x4a27c4(0x4ad)]>this[_0x4a27c4(0x279)]){const _0x416f11=this[_0x4a27c4(0x5ad)][_0x4a27c4(0x534)]()[_0x4a27c4(0x60b)]()[_0x4a27c4(0x658)];this[_0x4a27c4(0x5ad)][_0x4a27c4(0x6f8)](_0x416f11);}return!![];}[_0x3fdff4(0x53d)](_0x1b72b5){const _0x8cab2=_0x3fdff4;if(!this[_0x8cab2(0x17f)]||!_0x1b72b5)return;const {env:_0x55e725,type:_0x164786,key:_0x25744c,clock:_0x16adb7}=_0x1b72b5;if(_0x55e725==null||_0x164786==null||_0x25744c==null)return;if(typeof _0x55e725===_0x8cab2(0x460)&&_0x55e725[_0x8cab2(0x245)]('~'))return;if(typeof _0x164786==='string'&&_0x164786[_0x8cab2(0x245)]('~'))return;this[_0x8cab2(0x3af)][_0x8cab2(0x3cc)](this[_0x8cab2(0x1d8)](_0x55e725,_0x164786,_0x25744c,_0x16adb7)),this[_0x8cab2(0x3af)][_0x8cab2(0x4ad)]>this[_0x8cab2(0x279)]&&this['_pendingLocal'][_0x8cab2(0x6f8)](this[_0x8cab2(0x3af)][_0x8cab2(0x534)]()['next']()[_0x8cab2(0x658)]);}[_0x3fdff4(0x25e)](_0x6ee173){const _0x364781=_0x3fdff4;if(!this['_started']||!_0x6ee173)return;const {env:_0x2bbded,type:_0x1d8258,key:_0x12e136,clock:_0x27698f,origin:_0x5ae503,action:_0x13f57b,newValue:_0x4adcdf,oldValue:_0x7ef0af}=_0x6ee173;if(_0x2bbded==null||_0x1d8258==null||_0x12e136==null)return;if(typeof _0x2bbded===_0x364781(0x460)&&_0x2bbded['startsWith']('~'))return;if(typeof _0x1d8258==='string'&&_0x1d8258['startsWith']('~'))return;this[_0x364781(0x3af)][_0x364781(0x6f8)](this[_0x364781(0x1d8)](_0x2bbded,_0x1d8258,_0x12e136,_0x27698f));if(!this[_0x364781(0x288)](_0x2bbded,_0x1d8258,_0x12e136,_0x27698f))return;const _0x1ce47e=_0x13f57b===_0x36de2c[_0x364781(0x2c8)]?'remove':_0x364781(0x77c);this[_0x364781(0x380)]('change',{'env':_0x2bbded,'type':_0x1d8258,'key':_0x12e136,'op':_0x1ce47e,'clock':_0x27698f,'origin':_0x5ae503,'value':_0x1ce47e===_0x364781(0x7e6)?null:_0x4adcdf,'prevValue':_0x7ef0af});}['_handlePoke'](_0x26a0da){const _0x2a6623=_0x3fdff4;if(!this[_0x2a6623(0x17f)])return;if(!_0x26a0da||typeof _0x26a0da[_0x2a6623(0x81f)]!==_0x2a6623(0x460)||typeof _0x26a0da['type']!=='string')return;const {env:_0x36049c,type:_0x27cd4d}=_0x26a0da;if(_0x36049c[_0x2a6623(0x245)]('~')||_0x27cd4d[_0x2a6623(0x245)]('~'))return;this[_0x2a6623(0x597)][_0x2a6623(0x398)](_0x36049c+'\x00'+_0x27cd4d,{'env':_0x36049c,'type':_0x27cd4d}),this[_0x2a6623(0x7bd)]();}[_0x3fdff4(0x7bd)](){const _0x1cd26e=_0x3fdff4;if(this[_0x1cd26e(0x85e)])return;const _0x72d7e=()=>{const _0x51e4ff=_0x1cd26e;this[_0x51e4ff(0x85e)]=null,this['_drain']()[_0x51e4ff(0x62c)](()=>{});};this[_0x1cd26e(0x85e)]=setTimeout(_0x72d7e,_0x36b1db(this[_0x1cd26e(0x7b8)]));}async['_drain'](){const _0x5cbe58=_0x3fdff4;if(this[_0x5cbe58(0x549)]){this[_0x5cbe58(0x7bd)]();return;}this[_0x5cbe58(0x549)]=!![];try{const _0x3bf279=[...this[_0x5cbe58(0x597)]['values']()];this['_pending'][_0x5cbe58(0x7be)]();let _0x1ecd0a=![];for(const {env:_0x54e8bc,type:_0x59fb34}of _0x3bf279){try{const _0x822e16=await this[_0x5cbe58(0x503)](_0x54e8bc,_0x59fb34);if(_0x822e16)_0x1ecd0a=!![];}catch{this[_0x5cbe58(0x597)][_0x5cbe58(0x398)](_0x54e8bc+'\x00'+_0x59fb34,{'env':_0x54e8bc,'type':_0x59fb34}),_0x1ecd0a=!![];}}if(_0x1ecd0a||this[_0x5cbe58(0x597)][_0x5cbe58(0x4ad)]>0x0)this[_0x5cbe58(0x7bd)]();}finally{this[_0x5cbe58(0x549)]=![];}}async[_0x3fdff4(0x503)](_0x40b8c4,_0x5f1783){const _0x3429c8=_0x3fdff4,_0x17f2f7=await this[_0x3429c8(0x263)]['_openEnvLazy'](_0x40b8c4),_0x4057f6=_0x40b8c4+'\x00'+_0x5f1783;!this[_0x3429c8(0x350)][_0x3429c8(0x868)](_0x4057f6)&&(!this[_0x3429c8(0x27c)]['has'](_0x40b8c4)&&(_0x17f2f7['_enableChangelog'](),this[_0x3429c8(0x27c)][_0x3429c8(0x398)](_0x40b8c4,_0x17f2f7[_0x3429c8(0x7da)]()||0x0)),this[_0x3429c8(0x350)][_0x3429c8(0x398)](_0x4057f6,this['_baselines'][_0x3429c8(0x4ff)](_0x40b8c4)));const _0x4f8478=this[_0x3429c8(0x350)][_0x3429c8(0x4ff)](_0x4057f6),_0x4fd253=_0x17f2f7[_0x3429c8(0x7da)](_0x5f1783)||0x0;if(_0x4fd253<=_0x4f8478)return![];const _0x2fa6a2=_0x4f8478+this['_quantum'],_0xaa4155=Math['min'](_0x4fd253,_0x2fa6a2),_0x264aae=_0x90d8b7['enabled']?_0x90d8b7[_0x3429c8(0x785)]():0x0,_0x4c3af8=Array['from'](_0x17f2f7[_0x3429c8(0x356)](_0x5f1783,_0x4f8478+0x1,_0xaa4155));let _0x5c8c77=_0x4f8478;for(const _0x46b8da of _0x4c3af8){const {clock:_0x3eaf20,key:_0x523ab1,action:_0x2c803e,origin:_0x45e474}=_0x46b8da;if(_0x3eaf20>_0x5c8c77)_0x5c8c77=_0x3eaf20;if(_0x523ab1==null)continue;if(this[_0x3429c8(0x3af)][_0x3429c8(0x868)](this[_0x3429c8(0x1d8)](_0x40b8c4,_0x5f1783,_0x523ab1,_0x3eaf20)))continue;if(!this[_0x3429c8(0x288)](_0x40b8c4,_0x5f1783,_0x523ab1,_0x3eaf20))continue;let _0x42a9e0,_0x7136c5;if(_0x2c803e===_0x36de2c['REMOVE'])_0x42a9e0=_0x3429c8(0x7e6),_0x7136c5=null;else{const _0x339b7a=_0x17f2f7['get'](_0x5f1783,_0x523ab1);_0x339b7a==null?(_0x42a9e0=_0x3429c8(0x7e6),_0x7136c5=null):(_0x42a9e0=_0x3429c8(0x77c),_0x7136c5=_0x339b7a);}this[_0x3429c8(0x380)](_0x3429c8(0x280),{'env':_0x40b8c4,'type':_0x5f1783,'key':_0x523ab1,'op':_0x42a9e0,'clock':_0x3eaf20,'origin':_0x45e474,'value':_0x7136c5});}if(_0x90d8b7[_0x3429c8(0x28f)])_0x90d8b7[_0x3429c8(0x190)](_0x3429c8(0x61f)+_0x40b8c4+':'+_0x5f1783,_0x90d8b7[_0x3429c8(0x785)]()-_0x264aae,'n='+_0x4c3af8[_0x3429c8(0x2f6)]);return this[_0x3429c8(0x350)][_0x3429c8(0x398)](_0x4057f6,Math[_0x3429c8(0x6c5)](_0x5c8c77,_0xaa4155)),_0x17f2f7[_0x3429c8(0x7da)](_0x5f1783)>_0xaa4155;}[_0x3fdff4(0x392)](){const _0x2b12a5=_0x3fdff4;return{'started':this[_0x2b12a5(0x17f)],'quantum':this[_0x2b12a5(0x78c)],'flushDebounce':this[_0x2b12a5(0x7b8)],'cursors':Object['fromEntries']([...this[_0x2b12a5(0x350)][_0x2b12a5(0x207)]()][_0x2b12a5(0x4ba)](([_0x57d558,_0x3c2e33])=>[_0x57d558[_0x2b12a5(0x756)]('\x00',':'),_0x3c2e33])),'pending':this[_0x2b12a5(0x597)]['size'],'seen':this[_0x2b12a5(0x5ad)][_0x2b12a5(0x4ad)]};}}return _0x41a54d[_0x3fdff4(0x674)]=_0x5bcac0,okdbChangefeed={'OKDBChangefeed':_0x41a54d},okdbChangefeed;}var okdbRelay,hasRequiredOkdbRelay;function requireOkdbRelay(){const _0x1f60c2=_0x1c5fdf;if(hasRequiredOkdbRelay)return okdbRelay;hasRequiredOkdbRelay=0x1;const {EVENTS:_0x1bef1c}=requireOkdbEnums(),_0x277e15=new Set([_0x1bef1c[_0x1f60c2(0x4b4)],_0x1bef1c[_0x1f60c2(0x698)],_0x1bef1c['ITEM_REMOVE']]),{ENGINE_EVENTS:_0x516de4}=requireOkdbEnginesEnums(),{EMBEDDINGS_EVENTS:_0x6147fd}=requireEnums(),{QUEUE_EVENTS:_0x203c73}=requireOkdbQueueValidate(),_0xcae92=Object[_0x1f60c2(0x534)](_0x1bef1c),_0xa31c33=Object[_0x1f60c2(0x534)](_0x516de4)['map'](_0x2247bf=>_0x1f60c2(0x5f6)+_0x2247bf),_0x1a6414=Object[_0x1f60c2(0x534)](_0x6147fd),_0xac4c8c=Object[_0x1f60c2(0x534)](_0x203c73),_0x215f73=[_0x1f60c2(0x39b),_0x1f60c2(0x4b8),_0x1f60c2(0x417),_0x1f60c2(0x32e),_0x1f60c2(0x3fb),'processor:retry'],_0x31ad8e=[..._0xcae92,..._0xa31c33,..._0x1a6414,..._0xac4c8c,..._0x215f73,_0x1f60c2(0x3de)],_0x390d08=new Set(_0x31ad8e),_0x21d7bb=new Set([_0x1bef1c[_0x1f60c2(0x4b4)],_0x1bef1c[_0x1f60c2(0x698)],_0x1bef1c[_0x1f60c2(0x36e)],_0x1bef1c[_0x1f60c2(0x5de)],_0x1bef1c[_0x1f60c2(0x5d5)],_0x1bef1c[_0x1f60c2(0x464)],_0x1bef1c['SYSTEM_CLOCK_CHANGE'],_0x1bef1c[_0x1f60c2(0x4dd)],_0x6147fd[_0x1f60c2(0x48b)],_0x6147fd[_0x1f60c2(0x54a)],_0x6147fd[_0x1f60c2(0x65d)],_0x6147fd[_0x1f60c2(0x51a)],'processor:progress']),_0x3807d1=_0x31ad8e[_0x1f60c2(0x7f8)](_0x439181=>_0x439181===_0x1f60c2(0x3de)||!_0x21d7bb[_0x1f60c2(0x868)](_0x439181)),_0x4c1966=0x14,_0x1851ba=0xc8;class _0x4776a1{constructor(_0x23449e,_0x16ca7b={}){const _0x4eb116=_0x1f60c2;this['okdb']=_0x23449e,this[_0x4eb116(0x717)]=_0x16ca7b['maxConnections']??_0x4c1966,this[_0x4eb116(0x7c5)]=_0x16ca7b[_0x4eb116(0x1a5)]??_0x1851ba,this[_0x4eb116(0x8a3)]=new Set(),this[_0x4eb116(0x23f)]=[],this[_0x4eb116(0x810)]=[],this[_0x4eb116(0x256)]=null,this['_attached']=![],this['_feed']=null,this[_0x4eb116(0x804)]=null;}['attach'](){const _0x29adea=_0x1f60c2;if(this[_0x29adea(0x644)])return;this[_0x29adea(0x644)]=!![];const {okdb:_0x365a9b}=this;this[_0x29adea(0x256)]=_0x365a9b[_0x29adea(0x3de)][_0x29adea(0x81c)](_0xd2b5b6=>this[_0x29adea(0x37e)]('log',_0xd2b5b6));for(const _0x2f297a of _0x31ad8e){if(_0x2f297a===_0x29adea(0x3de))continue;const _0x52e7ce=_0x277e15[_0x29adea(0x868)](_0x2f297a),_0x4183b2=_0x308a0e=>{const _0x15ef7b=_0x29adea;if(_0x52e7ce&&this['_feed'])return;this[_0x15ef7b(0x37e)](_0x2f297a,_0x308a0e??{});};_0x365a9b[_0x29adea(0x230)]['on'](_0x2f297a,_0x4183b2),this[_0x29adea(0x810)][_0x29adea(0x3c0)]({'event':_0x2f297a,'handler':_0x4183b2});}this[_0x29adea(0x2ca)]=()=>this['detach'](),_0x365a9b[_0x29adea(0x230)][_0x29adea(0x370)](_0x1bef1c[_0x29adea(0x5f9)],this[_0x29adea(0x2ca)]);}[_0x1f60c2(0x7a0)](){const _0x14aedf=_0x1f60c2;if(!this['_attached'])return;if(this[_0x14aedf(0x2ca)]){try{this[_0x14aedf(0x263)]['events']['off'](_0x1bef1c[_0x14aedf(0x5f9)],this['_onStop']);}catch{}this[_0x14aedf(0x2ca)]=null;}this[_0x14aedf(0x256)]?.(),this[_0x14aedf(0x256)]=null;for(const {event:_0x40b566,handler:_0x139453}of this[_0x14aedf(0x810)]){try{this[_0x14aedf(0x263)][_0x14aedf(0x230)][_0x14aedf(0x76e)](_0x40b566,_0x139453);}catch{}}this[_0x14aedf(0x810)]=[];for(const _0x1fe4a5 of this[_0x14aedf(0x8a3)]){try{_0x1fe4a5[_0x14aedf(0x508)]?.();}catch{}}this[_0x14aedf(0x8a3)][_0x14aedf(0x7be)](),this[_0x14aedf(0x430)](),this[_0x14aedf(0x644)]=![];}[_0x1f60c2(0x8a6)](_0x53b912){const _0x1e1d87=_0x1f60c2;if(!_0x53b912||this[_0x1e1d87(0x3f1)]===_0x53b912)return;this[_0x1e1d87(0x430)](),this[_0x1e1d87(0x3f1)]=_0x53b912,this[_0x1e1d87(0x804)]=_0x190122=>{const _0x216645=_0x1e1d87;if(!_0x190122)return;const _0x587a2e=_0x190122['op']===_0x216645(0x7e6)?_0x1bef1c[_0x216645(0x36e)]:_0x1bef1c[_0x216645(0x698)];this['_push'](_0x587a2e,_0x190122);},_0x53b912['on']('change',this['_onFeedChange']);}['detachFeed'](){const _0x5414b2=_0x1f60c2;if(this[_0x5414b2(0x3f1)]&&this[_0x5414b2(0x804)])try{this['_feed'][_0x5414b2(0x76e)]('change',this[_0x5414b2(0x804)]);}catch{}this[_0x5414b2(0x3f1)]=null,this[_0x5414b2(0x804)]=null;}[_0x1f60c2(0x401)](_0x548ef8,_0x33a9bd){const _0x53e07e=_0x1f60c2;if(!_0x390d08[_0x53e07e(0x868)](_0x548ef8))return;this['_push'](_0x548ef8,_0x33a9bd??{});}['subscribe'](_0x48b622,_0x4c6339,_0x5e4428){const _0x274c2e=_0x1f60c2;if(this[_0x274c2e(0x8a3)]['size']>=this['_maxConnections'])return _0x4c6339(_0x274c2e(0x17e),{'message':'Too\x20many\x20concurrent\x20connections','code':_0x274c2e(0x333)}),()=>{};const _0xea1b86=this[_0x274c2e(0x2bf)](_0x48b622),_0x2ddbb5={'send':_0x4c6339,'filter':_0xea1b86,'close':_0x5e4428??null};this[_0x274c2e(0x8a3)][_0x274c2e(0x3cc)](_0x2ddbb5);for(const {event:_0x556365,data:_0x22ea33}of this[_0x274c2e(0x23f)]){if(_0xea1b86['has'](_0x556365))try{_0x4c6339(_0x556365,_0x22ea33);}catch{}}return()=>this[_0x274c2e(0x8a3)][_0x274c2e(0x6f8)](_0x2ddbb5);}['ensureFeed'](){const _0x2691ba=_0x1f60c2;if(this[_0x2691ba(0x3f1)])return this[_0x2691ba(0x3f1)];const {OKDBChangefeed:_0x2e6d6b}=requireOkdbChangefeed(),_0xfcb7dc=new _0x2e6d6b(this['okdb']);_0xfcb7dc[_0x2691ba(0x84e)](),this[_0x2691ba(0x8a6)](_0xfcb7dc);if(this[_0x2691ba(0x263)]&&!this['okdb']['_changefeed'])this[_0x2691ba(0x263)][_0x2691ba(0x48f)]=_0xfcb7dc;return this[_0x2691ba(0x3f1)];}get[_0x1f60c2(0x311)](){const _0xcfb5be=_0x1f60c2;return this[_0xcfb5be(0x8a3)]['size'];}[_0x1f60c2(0x234)](){const _0x4e2724=_0x1f60c2;return{'connections':this['connectionCount'],'bufferSize':this[_0x4e2724(0x23f)][_0x4e2724(0x2f6)],'attached':this['_attached'],'allEvents':_0x31ad8e[_0x4e2724(0x2f6)],'defaultEvents':_0x3807d1[_0x4e2724(0x2f6)]};}static get[_0x1f60c2(0x54f)](){return _0x31ad8e;}static get[_0x1f60c2(0x6bd)](){return _0x3807d1;}static get['HIGH_FREQ_EVENTS'](){return[..._0x21d7bb];}[_0x1f60c2(0x2bf)](_0x35bad0){const _0x55e339=_0x1f60c2;if(!_0x35bad0||!_0x35bad0[_0x55e339(0x2f6)])return new Set(_0x3807d1);const _0x2aa275=_0x35bad0[_0x55e339(0x7f8)](_0x187733=>_0x390d08['has'](_0x187733));return new Set(_0x2aa275[_0x55e339(0x2f6)]?_0x2aa275:_0x3807d1);}[_0x1f60c2(0x37e)](_0x49b0a1,_0x2771a8){const _0x4bcc2f=_0x1f60c2,_0x3b9842={..._0x2771a8,'_ts':_0x2771a8?.[_0x4bcc2f(0x89b)]??_0x2771a8?.['ts']??Date['now']()};this['_buffer'][_0x4bcc2f(0x3c0)]({'event':_0x49b0a1,'data':_0x3b9842});if(this[_0x4bcc2f(0x23f)][_0x4bcc2f(0x2f6)]>this[_0x4bcc2f(0x7c5)])this[_0x4bcc2f(0x23f)][_0x4bcc2f(0x4eb)]();for(const _0x5766a6 of this['_connections']){if(_0x5766a6['filter'][_0x4bcc2f(0x868)](_0x49b0a1))try{_0x5766a6[_0x4bcc2f(0x5c2)](_0x49b0a1,_0x3b9842);}catch{}}}}return okdbRelay=_0x4776a1,okdbRelay;}var hasRequiredLib;function requireLib(){const _0xaa4a0d=_0x1c5fdf;if(hasRequiredLib)return lib[_0xaa4a0d(0x3f6)];return hasRequiredLib=0x1,function(_0x180229){const _0x19d64d=_0xaa4a0d,_0x2cc411=require$$0$6,{load:_0x345f3d}=require$$1$1,_0x536048=requireBridge(),_0x125cdb=requireWritebatch(),{Pumper:_0xb3f12d}=requirePump(),{OKDBEnv:_0x3aa86b,HIGH_SENTINEL:_0x39307f}=requireEnv(),{reclass:_0xf898ca,NotImplementedNative:_0x48fdcc,OKDBError:_0x679bea,optionsArg:_0x5399fb,invalidArgument:_0xbe6c5b}=requireErrors(),{notImplemented:_0x82074}=requireUnsupported(),{OKDBHttp:_0xd59f88}=requireHttp(),{OKDBFts:_0x561dce}=requireFts(),{OKDBEmbeddings:_0x47fe5}=requireEmbeddings(),{OKDBAuth:_0x38a874}=requireAuth(),{OKDBSync:_0x45341e}=requireSync(),{OKDBMigrate:_0x54d704}=requireMigrate(),{OKDBFunctions:_0x1bc938}=requireFunctions(),{OKDBMcp:_0x4ba654}=requireMcp(),{OKDBEngines:_0x118a8f,OKDBPipelines:_0x5da8aa}=requireEngines(),{makeMeta:_0x464a89,makeLicenses:_0x4198a3,makeLicenseChecker:_0x5027f1,makeProcesses:_0x4e0c5c}=requireSys();let _0x14a727=null;function _0x4d1143(_0x50aecf){const _0xcd8bec=_0x20ac;if(!_0x14a727){const {Unpackr:_0x3ccdaf}=require$$18;_0x14a727=new _0x3ccdaf({'useRecords':![],'mapsAsObjects':!![],'copyBuffers':!![]});}return _0x14a727[_0xcd8bec(0x7ef)](_0x50aecf);}let _0x389a7b=null;function _0xacd253(_0x1a4422,_0x2e02eb){if(!_0x389a7b){const {Unpackr:_0x3ecbd1}=require$$18;_0x389a7b=new _0x3ecbd1({'copyBuffers':!![]});}return _0x389a7b['unpack'](_0x1a4422,_0x2e02eb);}const {encodeKey:_0x3bdd98,KEY_BUF_SIZE:_0x28e787,NO_FAST:_0x3a2891}=requireKeyenc(),_0x2e12dd=0x40*0x400,_0x483905=0x4*0x400*0x400;function _0x15760c(_0x128b33,_0x58d2ad){const _0x3bf915=_0x20ac,_0x26555a=_0x128b33[0x2],_0x1b675a=_0x26555a?(_0x128b33[_0x3bf915(0x2f6)]-0x3)/Math['abs'](_0x26555a):0x0,_0x1bd5bf=new Array(_0x1b675a);let _0x1490a2=0x3;if(_0x26555a===0x2){for(let _0xdd0e29=0x0;_0xdd0e29<_0x1b675a;_0xdd0e29++,_0x1490a2+=0x2)_0x1bd5bf[_0xdd0e29]={'key':_0x128b33[_0x1490a2],'value':_0x128b33[_0x1490a2+0x1]};}else{if(_0x26555a===0x3){for(let _0x234b39=0x0;_0x234b39<_0x1b675a;_0x234b39++,_0x1490a2+=0x3)_0x1bd5bf[_0x234b39]={'key':_0x128b33[_0x1490a2],'value':_0x128b33[_0x1490a2+0x1],'version':_0x128b33[_0x1490a2+0x2]};}else{if(_0x26555a===-0x2){for(let _0x42ddda=0x0;_0x42ddda<_0x1b675a;_0x42ddda++,_0x1490a2+=0x2)_0x1bd5bf[_0x42ddda]={'clock':_0x128b33[_0x1490a2],..._0x128b33[_0x1490a2+0x1]};}else{if(_0x26555a===0x4){for(let _0x6c39f0=0x0;_0x6c39f0<_0x1b675a;_0x6c39f0++,_0x1490a2+=0x4)_0x1bd5bf[_0x6c39f0]={'key':_0x128b33[_0x1490a2],'value':_0x128b33[_0x1490a2+0x1],'version':_0x128b33[_0x1490a2+0x2],'indexKey':_0x128b33[_0x1490a2+0x3]};}else{if(_0x1b675a)throw new Error(_0x3bf915(0x6ae)+_0x26555a);}}}}return _0x58d2ad?[_0x128b33[0x0],_0x1bd5bf,_0x128b33[0x1]]:_0x1bd5bf;}let _0x25a2f6=null;function _0x42e4d0(_0x24ddf8,_0x2276e,_0x3f20e1){const _0x1e492d=_0x20ac;if(!_0x25a2f6)_0x25a2f6=requireDist()[_0x1e492d(0x723)];const _0x5f3329=new DataView(_0x24ddf8[_0x1e492d(0x672)],_0x24ddf8['byteOffset'],_0x2276e),_0x790d1a=_0x5f3329['getUint32'](0x10,!![]),_0x477e8f=new Array(_0x790d1a);let _0x1477c=0x14;for(let _0x5d5c01=0x0;_0x5d5c01<_0x790d1a;_0x5d5c01++){const _0x1326f2=_0x24ddf8[_0x1477c]|_0x24ddf8[_0x1477c+0x1]<<0x8;_0x1477c+=0x2,_0x477e8f[_0x5d5c01]=_0x25a2f6(_0x24ddf8,_0x1477c,_0x1477c+_0x1326f2),_0x1477c+=_0x1326f2;}return _0x3f20e1?[_0x5f3329[_0x1e492d(0x3c5)](0x0,!![]),_0x477e8f,_0x5f3329[_0x1e492d(0x3c5)](0x8,!![])]:_0x477e8f;}const _0x1c28f7=requireOkdbLogger(),_0x21dfb6=requireOkdbPlugins(),{OKDB_STATE:_0xb41bd6,EVENTS:_0x310cf0}=requireOkdbEnums(),_0x1dc527=requireStatics();let _0x294caa=null,_0x1aa536=![],_0x5041e1=0x1;const _0x1160a7=new Map(),_0x2da8f4=new Set(['FIELD_RESOLVER_PENDING',_0x19d64d(0x573)]),_0xcfc934=_0x48fea0=>!!_0x48fea0&&_0x2da8f4[_0x19d64d(0x868)](_0x48fea0['code']),_0x397ddb=Number(process.env.OKDB_PENDING_RETRY_MS)>0x0?Number(process.env.OKDB_PENDING_RETRY_MS):0x1d4c0;function _0x1dbdb4(){const _0x90441b=_0x19d64d;!_0x1aa536&&(_0x3e4a0d()[_0x90441b(0x732)](_0x536048['bridge']),_0x125cdb['install'](_0x3e4a0d()),_0x1aa536=!![]);}function _0x3e4a0d(){if(!_0x294caa)_0x294caa=_0x345f3d();return _0x294caa;}class _0xb670ed extends Map{constructor(_0x254447){super(),this['_db']=_0x254447;}['_sync'](){const _0x52cf61=_0x19d64d,_0x4977d8=this[_0x52cf61(0x567)];if(!_0x4977d8['_isOpen'])return;let _0x21f805;try{_0x21f805=_0x4977d8[_0x52cf61(0x7b0)]('db',null,_0x52cf61(0x48c),[],![]);}catch{return;}for(const _0x30aa11 of _0x21f805)if(!super[_0x52cf61(0x868)](_0x30aa11)&&_0x4977d8[_0x52cf61(0x7b0)]('db',null,_0x52cf61(0x41c),[_0x30aa11],![]))_0x4977d8[_0x52cf61(0x355)](_0x30aa11);}[_0x19d64d(0x4ff)](_0x4a90ec){const _0x5e778f=_0x19d64d,_0x468628=super[_0x5e778f(0x4ff)](_0x4a90ec);if(_0x468628!==undefined||typeof _0x4a90ec!=='string')return _0x468628;const _0x217c4a=this[_0x5e778f(0x567)];if(_0x4a90ec==='~processes')return _0x217c4a['_isOpen']?_0x217c4a[_0x5e778f(0x4a5)][_0x5e778f(0x187)]??undefined:undefined;if(_0x217c4a[_0x5e778f(0x7df)]&&_0x217c4a['_call']('db',null,_0x5e778f(0x41c),[_0x4a90ec],![]))return _0x217c4a[_0x5e778f(0x355)](_0x4a90ec);if(_0x217c4a[_0x5e778f(0x7df)]&&typeof _0x4a90ec===_0x5e778f(0x460)&&!_0x4a90ec[_0x5e778f(0x245)]('~')){_0x217c4a['_call']('db',null,'pumpEnvSync',[],![]);if(_0x217c4a[_0x5e778f(0x7b0)]('db',null,_0x5e778f(0x41c),[_0x4a90ec],![]))return _0x217c4a['_ensureEnv'](_0x4a90ec);}return undefined;}[_0x19d64d(0x868)](_0x5eedde){const _0x16685d=_0x19d64d;return this[_0x16685d(0x4ff)](_0x5eedde)!==undefined;}get[_0x19d64d(0x4ad)](){return this['_sync'](),super['size'];}[_0x19d64d(0x542)](){const _0x5a34bd=_0x19d64d;return this[_0x5a34bd(0x591)](),super[_0x5a34bd(0x542)]();}['values'](){const _0x40297d=_0x19d64d;return this[_0x40297d(0x591)](),super[_0x40297d(0x534)]();}['entries'](){const _0x464142=_0x19d64d;return this[_0x464142(0x591)](),super['entries']();}[_0x19d64d(0x175)](_0x18ff8d,_0x156419){const _0x18e305=_0x19d64d;return this['_sync'](),super[_0x18e305(0x175)](_0x18ff8d,_0x156419);}[Symbol['iterator']](){const _0x2504f0=_0x19d64d;return this[_0x2504f0(0x591)](),super[Symbol[_0x2504f0(0x84c)]]();}}class _0x4b5211{constructor(_0x50dc3a,_0x437d37={}){const _0x12f8e5=_0x19d64d,_0x153507=_0x3e4a0d();this[_0x12f8e5(0x1aa)]=_0x50dc3a,this[_0x12f8e5(0x3da)]=_0x5041e1++,this[_0x12f8e5(0x6f1)]='db'+this[_0x12f8e5(0x3da)],this[_0x12f8e5(0x667)]={..._0x1dc527[_0x12f8e5(0x619)],..._0x437d37,'auth':_0x437d37[_0x12f8e5(0x712)]?{..._0x437d37[_0x12f8e5(0x712)]}:undefined,'lmdb':{..._0x437d37[_0x12f8e5(0x2de)]||{}}},this[_0x12f8e5(0x230)]=new _0x2cc411(),this[_0x12f8e5(0x230)][_0x12f8e5(0x3a2)](0x0),this[_0x12f8e5(0x661)]=new Set(),this['events']['on'](_0x12f8e5(0x710),_0xb13e1a=>this[_0x12f8e5(0x361)](_0xb13e1a)),this[_0x12f8e5(0x3de)]=new _0x1c28f7(this),this[_0x12f8e5(0x3de)][_0x12f8e5(0x590)](),_0x536048[_0x12f8e5(0x6e7)](this['_key'],{'_deliver':(_0x43ab86,_0xca1702)=>this['_deliverEvent'](_0x43ab86,_0xca1702),'_log':_0x65b927=>{const _0x3db4d8=_0x12f8e5;if(this[_0x3db4d8(0x7e3)])this['_bootLog']['push'](_0x65b927);const _0x1118cf=_0x65b927&&_0x65b927['level'];if(_0x1118cf&&Object[_0x3db4d8(0x3c3)]['hasOwnProperty']['call'](this[_0x3db4d8(0x3de)],_0x1118cf)&&typeof this[_0x3db4d8(0x3de)][_0x1118cf]==='function'){const _0x579088=_0x65b927[_0x3db4d8(0x50c)];return this[_0x3db4d8(0x3de)][_0x1118cf](_0x65b927[_0x3db4d8(0x2b4)],{..._0x65b927[_0x3db4d8(0x29e)]||{},..._0x579088&&typeof _0x579088===_0x3db4d8(0x86d)?_0x579088:{}});}return this[_0x3db4d8(0x3de)][_0x3db4d8(0x31b)](_0x65b927);}}),_0x1dbdb4();try{const _0x463049={};if(typeof _0x12f8e5(0x26b)===_0x12f8e5(0x777)||_0x12f8e5(0x26b)!==_0x12f8e5(0x26b));const _0x3e3980={..._0x437d37,'_clusterWorker':require('node:cluster')[_0x12f8e5(0x598)],..._0x463049};this['_keyFns']={'instance':null,'envs':new Map()};typeof _0x437d37[_0x12f8e5(0x6b5)]==='function'&&(this[_0x12f8e5(0x4c5)][_0x12f8e5(0x7b2)]=_0x437d37[_0x12f8e5(0x6b5)],delete _0x3e3980[_0x12f8e5(0x6b5)]);if(_0x437d37['encryptionKeys']&&typeof _0x437d37[_0x12f8e5(0x58f)]===_0x12f8e5(0x86d)){for(const [_0x3cd83e,_0x44136f]of Object[_0x12f8e5(0x207)](_0x437d37[_0x12f8e5(0x58f)]))this['_keyFns'][_0x12f8e5(0x649)][_0x12f8e5(0x398)](_0x3cd83e,_0x44136f);}delete _0x3e3980[_0x12f8e5(0x58f)],this[_0x12f8e5(0x487)]=new _0x153507[(_0x12f8e5(0x4f5))](_0x50dc3a,_0x3e3980,this[_0x12f8e5(0x6f1)]);}catch(_0x333b8a){_0x536048[_0x12f8e5(0x799)](this[_0x12f8e5(0x6f1)]);throw _0xf898ca(_0x333b8a);}this['state']=_0xb41bd6['CREATED'],this[_0x12f8e5(0x7df)]=![],this[_0x12f8e5(0x33b)]=new _0xb670ed(this),this[_0x12f8e5(0x51b)]=new _0xb3f12d({'pump':()=>this[_0x12f8e5(0x487)][_0x12f8e5(0x440)]()}),this['_wb']=new _0x125cdb['WriteBatch'](this),this[_0x12f8e5(0x51b)][_0x12f8e5(0x4c8)]=()=>_0x536048[_0x12f8e5(0x554)](),_0x536048['setKick'](()=>this[_0x12f8e5(0x51b)]['wake'](),this),_0x1160a7[_0x12f8e5(0x398)](this[_0x12f8e5(0x3da)],this),this[_0x12f8e5(0x3a0)]={},_0x536048[_0x12f8e5(0x5e4)](this),this['fts']=new _0x561dce(this),this[_0x12f8e5(0x4bb)]=new _0x47fe5(this),this['engines']=new _0x118a8f(this,null,null),this['pipelines']=new _0x5da8aa(this,null),this[_0x12f8e5(0x29e)]=_0x464a89(this),this[_0x12f8e5(0x30a)]=_0x4198a3(this),this['_license']=_0x5027f1(this),this[_0x12f8e5(0x4a5)]=_0x4e0c5c(this),this[_0x12f8e5(0x66b)]=_0xad9a84(this),this[_0x12f8e5(0x4db)]=new _0x21dfb6(this),this['http']=new _0xd59f88(this),this[_0x12f8e5(0x838)]=new _0x45341e(this),this[_0x12f8e5(0x712)]=new _0x38a874(this),this[_0x12f8e5(0x2fd)]=new _0x1bc938(this,null),this[_0x12f8e5(0x2f0)]=new _0x4ba654(this),this[_0x12f8e5(0x507)]=_0x437d37&&_0x437d37[_0x12f8e5(0x507)]===![]?null:_0x82074(_0x12f8e5(0x507)),this['api']=_0x82074(_0x12f8e5(0x68c)),this[_0x12f8e5(0x666)]=new _0x54d704(this);}[_0x19d64d(0x7b0)](_0x1fa238,_0x5b6989,_0x3002f5,_0x726398,_0x3fc9ae=!![]){const _0x21b211=_0x19d64d;if(_0x3fc9ae&&this[_0x21b211(0x287)]&&this['_wb'][_0x21b211(0x44d)][_0x21b211(0x2f6)])this[_0x21b211(0x287)][_0x21b211(0x715)]();try{return this[_0x21b211(0x487)]['call'](_0x1fa238,_0x5b6989,_0x3002f5,_0x726398);}catch(_0x3408be){throw _0xf898ca(_0x3408be);}finally{if(_0x3fc9ae)this['_pumper']['wake']();}}[_0x19d64d(0x52c)](_0x548ae5,_0x1cfb9,_0x310f6b,_0x37383f){const _0x718dcd=_0x19d64d;let _0x332d11;try{_0x332d11=this[_0x718dcd(0x487)][_0x718dcd(0x6f2)](_0x548ae5,_0x1cfb9,_0x310f6b,_0x37383f);}catch(_0x185532){throw _0xf898ca(_0x185532);}return _0x332d11 instanceof Uint8Array?_0x4d1143(_0x332d11):_0x332d11[0x0];}[_0x19d64d(0x233)](_0x39b785){const _0x309dd3=_0x19d64d;let _0x31a515=this['_rbuf'];if(_0x31a515&&_0x39b785<=_0x31a515[_0x309dd3(0x2f6)])return _0x31a515;let _0x2e8c71=_0x31a515?_0x31a515[_0x309dd3(0x2f6)]:_0x2e12dd;while(_0x2e8c71<_0x39b785)_0x2e8c71*=0x2;if(_0x2e8c71>_0x483905)return _0x31a515;return _0x31a515=this['_rbuf']=Buffer['allocUnsafeSlow'](_0x2e8c71),this[_0x309dd3(0x487)][_0x309dd3(0x59f)](_0x31a515),_0x31a515;}[_0x19d64d(0x59c)](_0xfb76f0,_0xdd3ec8,_0x4f9f0b){const _0x12bb3e=_0x19d64d;if(!this['_rbuf'])this[_0x12bb3e(0x233)](0x0);const _0x26ce5b=this[_0x12bb3e(0x487)][_0x12bb3e(0x5e6)](_0xfb76f0,_0xdd3ec8,_0x4f9f0b);if(typeof _0x26ce5b==='number')return _0xacd253(this[_0x12bb3e(0x1b9)],_0x26ce5b);if(_0x26ce5b===undefined||_0x26ce5b===null)return _0x26ce5b;return this[_0x12bb3e(0x233)](_0x26ce5b[_0x12bb3e(0x2f6)]),_0xacd253(_0x26ce5b);}[_0x19d64d(0x61c)](_0xc2f3b2,_0x2a40a4,_0x3d36ec){const _0x11e446=_0x19d64d;let _0xa8944c=this[_0x11e446(0x26a)];if(!_0xa8944c){_0xa8944c=this[_0x11e446(0x26a)]=Buffer[_0x11e446(0x394)](_0x28e787),this[_0x11e446(0x487)][_0x11e446(0x677)](_0xa8944c),this['_tids']=new Map();if(!this['_rbuf'])this[_0x11e446(0x233)](0x0);}const _0xc56c2a=_0x3bdd98(_0x3d36ec,_0xa8944c);if(_0xc56c2a<0x0)return _0x3a2891;let _0x1324af=this['_tids'][_0x11e446(0x4ff)](_0xc2f3b2);if(_0x1324af===undefined)this['_tids'][_0x11e446(0x398)](_0xc2f3b2,_0x1324af=new Map());let _0xb25564=_0x1324af[_0x11e446(0x4ff)](_0x2a40a4);if(_0xb25564===undefined)_0x1324af[_0x11e446(0x398)](_0x2a40a4,_0xb25564=this[_0x11e446(0x487)][_0x11e446(0x594)](_0xc2f3b2,_0x2a40a4));if(_0xb25564<0x0)return _0x3a2891;const _0x443f59=this[_0x11e446(0x487)][_0x11e446(0x512)](_0xb25564,_0xc56c2a);if(typeof _0x443f59===_0x11e446(0x46d))return _0xacd253(this[_0x11e446(0x1b9)],_0x443f59);if(_0x443f59===undefined||_0x443f59===null)return _0x443f59;return this['_readBuf'](_0x443f59[_0x11e446(0x2f6)]),_0xacd253(_0x443f59);}[_0x19d64d(0x6ee)](_0x113bc8,_0x1d4059,_0xafd71b){const _0x417ba0=_0x19d64d;if(!this['_rbuf'])this[_0x417ba0(0x233)](0x0);let _0xe18c2b;try{_0xe18c2b=this[_0x417ba0(0x487)]['callRows'](_0x113bc8,_0x1d4059,_0xafd71b);}catch(_0xbf564d){throw _0xf898ca(_0xbf564d);}const _0x4aab29=_0x1d4059==='pinned',_0x1e768f=_0x4aab29?_0xafd71b[0x1]:_0x1d4059;let _0x1ab97e=this[_0x417ba0(0x1b9)],_0x3badf6=_0xe18c2b;if(_0xe18c2b instanceof Uint8Array)this[_0x417ba0(0x233)](_0xe18c2b['length']),_0x1ab97e=_0xe18c2b,_0x3badf6=_0xe18c2b[_0x417ba0(0x2f6)];else{if(typeof _0xe18c2b!=='number')return _0xe18c2b[0x0];}if(_0x1e768f===_0x417ba0(0x608))return _0x42e4d0(_0x1ab97e,_0x3badf6,_0x4aab29);if(_0x1e768f===_0x417ba0(0x7ae))return _0xacd253(_0x1ab97e,_0x3badf6);return _0x15760c(_0xacd253(_0x1ab97e,_0x3badf6),_0x4aab29);}[_0x19d64d(0x217)](_0x1acb5,_0x360120,_0x2c3f6c,_0x3dcb44,_0x10501c=!![],_0x54d0a2=!![]){const _0x33540a=_0x19d64d,_0x36b598=()=>this[_0x33540a(0x580)](()=>this[_0x33540a(0x7b0)](_0x1acb5,_0x360120,_0x2c3f6c,_0x3dcb44,_0x10501c));if(!_0x54d0a2)return _0x36b598();return this['_retryPending'](_0x36b598);}[_0x19d64d(0x6ba)](_0xe45779){const _0x1f005a=_0x19d64d;return _0xe45779()[_0x1f005a(0x62c)](async _0x106ad2=>{const _0x354eb9=_0x1f005a;if(!_0xcfc934(_0x106ad2))throw _0x106ad2;const _0x50d833=Date[_0x354eb9(0x785)]()+_0x397ddb;let _0x47fe33=0x1;while(_0xcfc934(_0x106ad2)&&Date[_0x354eb9(0x785)]()<_0x50d833){await new Promise(_0x2fe951=>setTimeout(_0x2fe951,_0x47fe33)),_0x47fe33=Math['min'](_0x47fe33*0x2,0x14);try{return await _0xe45779();}catch(_0x39de7f){_0x106ad2=_0x39de7f;}}throw _0x106ad2;});}[_0x19d64d(0x7b5)](_0x4b8d9d){if(_0x536048['inNativeCall']())return Promise['resolve'](_0x4b8d9d);return new Promise(_0x2e2b25=>setImmediate(()=>_0x2e2b25(_0x4b8d9d)));}[_0x19d64d(0x1d6)](_0x3d2625){const _0x31bc40=_0x19d64d;if(_0x536048['inNativeCall']())return Promise['resolve'](_0x3d2625);return this[_0x31bc40(0x79e)]()['then'](()=>_0x3d2625);}[_0x19d64d(0x79e)](){return new Promise(_0x394b18=>setImmediate(()=>{const _0x1fd8e4=_0x20ac;let _0x43647c;try{_0x43647c=this[_0x1fd8e4(0x487)][_0x1fd8e4(0x634)]();}catch{return _0x394b18();}_0x125cdb['whenSettled'](_0x43647c,_0x394b18);}));}['_macro'](_0x243b36){return new Promise((_0x59c442,_0x3ebd57)=>setImmediate(()=>{try{_0x59c442(_0x243b36());}catch(_0x23989f){_0x3ebd57(_0x23989f);}}));}[_0x19d64d(0x451)](_0x2db1e2,_0x59d2d5,_0xc94e79){return _0x5b0d37(_0x2db1e2,_0x59d2d5,_0xc94e79);}[_0x19d64d(0x361)](_0x186016){const _0x59a7c4=_0x19d64d;if(typeof _0x186016!==_0x59a7c4(0x460)||this[_0x59a7c4(0x661)][_0x59a7c4(0x868)](_0x186016)||_0x186016===_0x59a7c4(0x710)||_0x186016===_0x59a7c4(0x647))return;this[_0x59a7c4(0x661)]['add'](_0x186016);try{this[_0x59a7c4(0x487)][_0x59a7c4(0x765)](_0x59a7c4(0x230),null,_0x59a7c4(0x6a0),[this[_0x59a7c4(0x6f1)],_0x186016]);}catch{}}[_0x19d64d(0x2e4)](_0x332d23,_0x3a73f0){const _0x2b4b8b=_0x19d64d;this[_0x2b4b8b(0x230)][_0x2b4b8b(0x380)](_0x332d23,_0x3a73f0);}async[_0x19d64d(0x3df)](){const _0x3a62f1=_0x19d64d,_0x5792ac=this[_0x3a62f1(0x4c5)];if(_0x5792ac[_0x3a62f1(0x7b2)])this[_0x3a62f1(0x21c)](null,await _0x5792ac[_0x3a62f1(0x7b2)](null),!![]);for(const [_0x54a918,_0xa758b4]of _0x5792ac['envs'])this[_0x3a62f1(0x21c)](_0x54a918,typeof _0xa758b4===_0x3a62f1(0x5c4)?await _0xa758b4(_0x54a918):_0xa758b4,typeof _0xa758b4===_0x3a62f1(0x5c4));(_0x5792ac[_0x3a62f1(0x7b2)]||[..._0x5792ac[_0x3a62f1(0x649)][_0x3a62f1(0x534)]()][_0x3a62f1(0x7ce)](_0x25c003=>typeof _0x25c003===_0x3a62f1(0x5c4)))&&!this[_0x3a62f1(0x515)]&&(this[_0x3a62f1(0x515)]=_0x15fc6b=>{const _0x1b0b77=_0x3a62f1,_0x2c714f=_0x15fc6b&&_0x15fc6b[_0x1b0b77(0x81f)]!=null?_0x15fc6b[_0x1b0b77(0x81f)]:null,_0x620864=_0x2c714f==null?_0x5792ac['instance']:_0x5792ac[_0x1b0b77(0x649)][_0x1b0b77(0x4ff)](_0x2c714f);if(typeof _0x620864!==_0x1b0b77(0x5c4))return;Promise[_0x1b0b77(0x4a2)]()[_0x1b0b77(0x8a9)](()=>_0x620864(_0x2c714f))['then'](_0x3efaca=>this['_setKey'](_0x2c714f,_0x3efaca,!![]))[_0x1b0b77(0x62c)](_0x5d79fb=>this[_0x1b0b77(0x3de)]['error'](_0x1b0b77(0x62d)+(_0x5d79fb&&_0x5d79fb[_0x1b0b77(0x5e1)]),{'env':_0x2c714f}));},this[_0x3a62f1(0x230)]['on'](_0x3a62f1(0x750),this[_0x3a62f1(0x515)]));}[_0x19d64d(0x21c)](_0x69e0a1,_0x3c2570,_0x203cdc){const _0x310096=_0x19d64d;if(_0x3c2570==null)throw new _0x679bea(_0x310096(0x418)+(_0x69e0a1?_0x310096(0x880)+_0x69e0a1+'\x22':'')+_0x310096(0x21f),_0x310096(0x89c));this[_0x310096(0x487)][_0x310096(0x765)]('db',null,'setEncryptionKey',[_0x69e0a1,_0x3c2570,!!_0x203cdc]);}async[_0x19d64d(0x2e5)](_0x4d1498){const _0x5d6bd2=_0x19d64d;this[_0x5d6bd2(0x7a9)]();const {env:env=null,to:_0x408b51}=_0x5399fb(_0x4d1498),_0x43ad96=typeof _0x408b51===_0x5d6bd2(0x5c4),_0x15d45b=_0x43ad96?await _0x408b51(env):_0x408b51;if(_0x15d45b==null)throw _0xbe6c5b(_0x5d6bd2(0x1fd),_0x5d6bd2(0x2f2),_0x15d45b);const _0x3ccd5d=this[_0x5d6bd2(0x7b0)]('db',null,'changeEncryptionKey',[env,_0x15d45b,_0x43ad96]);if(_0x43ad96){if(env==null)this[_0x5d6bd2(0x4c5)][_0x5d6bd2(0x7b2)]=_0x408b51;else this[_0x5d6bd2(0x4c5)][_0x5d6bd2(0x649)]['set'](env,_0x408b51);}return _0x3ccd5d;}async[_0x19d64d(0x35e)](_0x25ed41){const _0x1aa74d=_0x19d64d;this[_0x1aa74d(0x7a9)]();const _0x51bd27=_0x5399fb(_0x25ed41);if(!_0x51bd27[_0x1aa74d(0x81f)])throw _0xbe6c5b(_0x1aa74d(0x2c1),_0x1aa74d(0x3ad),_0x51bd27['env']);let _0x58074f=_0x51bd27['to'];const _0x438986=typeof _0x58074f===_0x1aa74d(0x5c4);if(_0x438986)_0x58074f=await _0x51bd27['to'](_0x51bd27[_0x1aa74d(0x81f)]);const _0x3454fb=await this[_0x1aa74d(0x580)](()=>this[_0x1aa74d(0x7b0)]('db',null,'reencrypt',[_0x51bd27[_0x1aa74d(0x81f)],'to'in _0x51bd27?_0x58074f:undefined,_0x438986]));if(_0x438986)this[_0x1aa74d(0x4c5)][_0x1aa74d(0x649)]['set'](_0x51bd27[_0x1aa74d(0x81f)],_0x51bd27['to']);return _0x3454fb;}async[_0x19d64d(0x3ca)](){const _0x4457bb=_0x19d64d;if(this[_0x4457bb(0x827)]===_0xb41bd6[_0x4457bb(0x39d)])return;if(this['state']!==_0xb41bd6[_0x4457bb(0x2ec)])throw new _0x679bea(_0x4457bb(0x5d0),'INVALID_STATE',{'state':this[_0x4457bb(0x827)]});this[_0x4457bb(0x827)]=_0xb41bd6[_0x4457bb(0x5eb)],this[_0x4457bb(0x7e3)]=[];try{try{await this[_0x4457bb(0x3df)](),await this[_0x4457bb(0x580)](()=>this[_0x4457bb(0x487)][_0x4457bb(0x3ca)]());}catch(_0x2b8390){throw _0xf898ca(_0x2b8390);}}catch(_0x12adbc){this[_0x4457bb(0x827)]=_0xb41bd6[_0x4457bb(0x25c)],this[_0x4457bb(0x7e3)]=null,this['_teardownNative']();throw _0x12adbc;}this[_0x4457bb(0x7df)]=!![],this[_0x4457bb(0x827)]=_0xb41bd6[_0x4457bb(0x39d)];try{this[_0x4457bb(0x7b0)]('db',null,_0x4457bb(0x214),[this[_0x4457bb(0x4db)][_0x4457bb(0x446)]['map'](_0x15024c=>_0x15024c[_0x4457bb(0x522)]?.[_0x4457bb(0x80a)])['filter'](Boolean)],![]),await this['plugins'][_0x4457bb(0x84e)]();}catch(_0x1056d9){this[_0x4457bb(0x827)]=_0xb41bd6[_0x4457bb(0x615)];try{this[_0x4457bb(0x487)][_0x4457bb(0x508)]();}catch{}this[_0x4457bb(0x827)]=_0xb41bd6[_0x4457bb(0x25c)],this['_isOpen']=![],this[_0x4457bb(0x3c9)]();throw _0x1056d9;}for(const _0x16d6e2 of this[_0x4457bb(0x7b0)]('db',null,_0x4457bb(0x48c),[],![]))if(!_0x16d6e2['startsWith']('~'))this[_0x4457bb(0x355)](_0x16d6e2);try{if(this[_0x4457bb(0x7b0)]('db',null,_0x4457bb(0x41c),[_0x4457bb(0x192)],![])){this['_logEnv']=this['_ensureEnv'](_0x4457bb(0x192));const _0x3af345=new Set(this[_0x4457bb(0x3de)][_0x4457bb(0x5c3)]);this[_0x4457bb(0x81a)]=this[_0x4457bb(0x3de)]['attachOKDB'](this[_0x4457bb(0x831)],this['id']);const _0x2aef9e=[...this[_0x4457bb(0x3de)]['_sinks']]['find'](_0x1a930a=>!_0x3af345[_0x4457bb(0x868)](_0x1a930a)),_0x42037d=this['_call']('db',null,_0x4457bb(0x642),[],![]);for(const _0x5b9cf6 of(this[_0x4457bb(0x7e3)]??[])[_0x4457bb(0x5d1)](_0x42037d))_0x2aef9e?.(_0x5b9cf6);}}catch{}this[_0x4457bb(0x7e3)]=null,this[_0x4457bb(0x487)][_0x4457bb(0x3ac)](()=>this['_pumper'][_0x4457bb(0x577)]()),this['_pumper'][_0x4457bb(0x84e)]();}async[_0x19d64d(0x4b5)](){const _0x639333=_0x19d64d;return this['_callMacro']('db',null,_0x639333(0x6c0),[]);}async['close'](){const _0x200aba=_0x19d64d;if(this[_0x200aba(0x827)]===_0xb41bd6[_0x200aba(0x25c)])return;if(this[_0x200aba(0x827)]!==_0xb41bd6['STARTED'])throw new _0x679bea(_0x200aba(0x801),'INVALID_STATE',{'state':this[_0x200aba(0x827)]});this[_0x200aba(0x827)]=_0xb41bd6['STOPPING'],this['_isOpen']=![];let _0x44acc7=null;if(this[_0x200aba(0x367)][_0x200aba(0x55f)][_0x200aba(0x2f6)])try{await this[_0x200aba(0x367)][_0x200aba(0x508)]();}catch(_0x17fd3){_0x44acc7=_0x17fd3;}if(this[_0x200aba(0x4a6)]){try{this[_0x200aba(0x4a6)][_0x200aba(0x430)](),this['__adminRelay'][_0x200aba(0x7a0)]();}catch{}this[_0x200aba(0x4a6)]=null;}try{this[_0x200aba(0x48f)]?.[_0x200aba(0x584)]?.();}catch{}try{await this['plugins'][_0x200aba(0x584)]();}catch(_0x34e57d){_0x44acc7=_0x34e57d;}for(const _0x5b1f03 of[...Map[_0x200aba(0x3c3)][_0x200aba(0x534)][_0x200aba(0x765)](this['_envs'])]){try{await _0x5b1f03[_0x200aba(0x6e4)][_0x200aba(0x201)]();}catch{}try{await _0x5b1f03[_0x200aba(0x41f)][_0x200aba(0x584)]();}catch{}}for(const _0x45413a of[()=>this[_0x200aba(0x838)][_0x200aba(0x584)](),()=>this[_0x200aba(0x4bb)][_0x200aba(0x584)](),()=>this[_0x200aba(0x6bf)]&&this[_0x200aba(0x6bf)][_0x200aba(0x584)]?.()]){try{await _0x45413a();}catch{}}const _0x2f96e=this[_0x200aba(0x667)][_0x200aba(0x1b5)]??0x7530,_0x119433=[];for(const _0x4c7598 of[...Map[_0x200aba(0x3c3)][_0x200aba(0x534)][_0x200aba(0x765)](this[_0x200aba(0x33b)])]){if(_0x4c7598['queue']?.[_0x200aba(0x251)]?.[_0x200aba(0x4ad)]>0x0)_0x119433[_0x200aba(0x3c0)](_0x4c7598[_0x200aba(0x44d)][_0x200aba(0x201)](_0x2f96e));}if(_0x119433['length']>0x0)await Promise[_0x200aba(0x30f)](_0x119433);try{this[_0x200aba(0x81a)]?.();}catch{}this[_0x200aba(0x81a)]=null;try{await this[_0x200aba(0x287)][_0x200aba(0x61a)]();}catch{}this[_0x200aba(0x51b)][_0x200aba(0x584)]();try{await this[_0x200aba(0x580)](()=>this[_0x200aba(0x487)][_0x200aba(0x508)]());}catch(_0x24a948){_0x44acc7=_0x44acc7||_0xf898ca(_0x24a948);}this['state']=_0xb41bd6[_0x200aba(0x25c)],this[_0x200aba(0x3c9)](),Map['prototype']['clear'][_0x200aba(0x765)](this[_0x200aba(0x33b)]);if(_0x44acc7)throw _0x44acc7;}[_0x19d64d(0x3c9)](){const _0xff2852=_0x19d64d;this[_0xff2852(0x51b)][_0xff2852(0x584)]();try{this[_0xff2852(0x487)][_0xff2852(0x3ac)](null);}catch{}try{this[_0xff2852(0x487)][_0xff2852(0x600)]();}catch{}this[_0xff2852(0x1b9)]=null,this[_0xff2852(0x26a)]=null,this[_0xff2852(0x5a7)]=null,_0x536048['unregisterTarget'](this[_0xff2852(0x6f1)]),_0x536048[_0xff2852(0x209)](this),_0x1160a7[_0xff2852(0x6f8)](this[_0xff2852(0x3da)]);if(_0x536048['kickOwnedBy'](this)){const _0x22b1d4=[..._0x1160a7[_0xff2852(0x534)]()][_0xff2852(0x21e)]();if(_0x22b1d4)_0x536048[_0xff2852(0x29c)](()=>_0x22b1d4[_0xff2852(0x51b)]['wake'](),_0x22b1d4);else _0x536048[_0xff2852(0x29c)](()=>{},null);}}get['id'](){const _0x52ec8b=_0x19d64d;return this[_0x52ec8b(0x7b0)]('db',null,'id',[],![]);}[_0x19d64d(0x83c)](_0x3e26e2){const _0x1eb2c4=_0x19d64d;return this[_0x1eb2c4(0x81f)]('default')[_0x1eb2c4(0x83c)](_0x3e26e2);}get[_0x19d64d(0x4a8)](){const _0x1ee2e8=_0x19d64d;return this[_0x1ee2e8(0x5da)][_0x1ee2e8(0x4ff)](_0x1ee2e8(0x3a8));}get[_0x19d64d(0x183)](){const _0x468d76=_0x19d64d;return this[_0x468d76(0x838)][_0x468d76(0x183)];}get[_0x19d64d(0x551)](){const _0x3fe3b4=_0x19d64d;return this[_0x3fe3b4(0x838)][_0x3fe3b4(0x551)];}get['_subsV2'](){const _0x5d4b4b=_0x19d64d;if(!this[_0x5d4b4b(0x7df)]||!this['_call']('db',null,_0x5d4b4b(0x75c),[],![]))return undefined;if(!this[_0x5d4b4b(0x72e)]){const _0x10ca3d=requireOkdbSubscriptionsStore(),_0x5d6fea=new _0x10ca3d(this,this[_0x5d4b4b(0x667)]&&this[_0x5d4b4b(0x667)][_0x5d4b4b(0x497)]);_0x5d6fea['_sub']=this[_0x5d4b4b(0x81f)]('~sub');const {compileFilter:_0x438e92}=requireOkdbQueryFilter(),_0x3f0d4b=(_0x5675be,_0x4ffa6b)=>{if(_0x5675be==null)return![];try{return _0x438e92(_0x5675be)(_0x4ffa6b);}catch{return![];}};this[_0x5d4b4b(0x72e)]={'store':_0x5d6fea,'router':{'_matches':_0x3f0d4b}};}return this['_subsV2Obj'];}get['_role'](){const _0x10ce57=_0x19d64d;return this[_0x10ce57(0x302)];}get[_0x19d64d(0x2ed)](){const _0x9e57ba=_0x19d64d;return this['_call']('db',null,_0x9e57ba(0x2ed),[],![]);}get[_0x19d64d(0x302)](){const _0x304673=_0x19d64d;return{...this[_0x304673(0x7b0)]('db',null,_0x304673(0x302),[],![])};}get[_0x19d64d(0x75b)](){const _0x411d45=_0x19d64d;return require$$29[_0x411d45(0x75b)];}get[_0x19d64d(0x606)](){const _0x4ba234=_0x19d64d;return this[_0x4ba234(0x7b0)]('db',null,_0x4ba234(0x49c),[],![]);}get[_0x19d64d(0x427)](){const _0x651541=_0x19d64d;return this[_0x651541(0x7b0)]('db',null,_0x651541(0x427),[],![]);}[_0x19d64d(0x79f)](){const _0x5b101e=_0x19d64d;return this[_0x5b101e(0x7b0)]('db',null,_0x5b101e(0x6a3),[],![]);}['diag'](){const _0xeeeed9=_0x19d64d;return this[_0xeeeed9(0x7b0)]('db',null,'diag',[],![]);}async[_0x19d64d(0x403)](_0x1f3614){const _0x358ffa=_0x19d64d;this[_0x358ffa(0x7a9)](),this[_0x358ffa(0x7b0)]('db',null,_0x358ffa(0x403),[_0x1f3614],![]);}['pressure'](){const _0x3edc0=_0x19d64d,_0x5e8dba=Date[_0x3edc0(0x785)]();if(this[_0x3edc0(0x60a)]&&_0x5e8dba-this[_0x3edc0(0x60a)]['at']<0xfa)return this[_0x3edc0(0x60a)][_0x3edc0(0x658)];const _0x2c2ffa=this['_call']('db',null,_0x3edc0(0x68b),[],![]);return this[_0x3edc0(0x60a)]={'at':_0x5e8dba,'value':_0x2c2ffa},_0x2c2ffa;}[_0x19d64d(0x7a9)](){const _0x3f0f5b=_0x19d64d;if(!this[_0x3f0f5b(0x7df)])throw new _0x679bea(_0x3f0f5b(0x801),_0x3f0f5b(0x87e),{'state':this['state']});}get[_0x19d64d(0x29f)](){const _0x4838fa=_0x19d64d;if(this[_0x4838fa(0x827)]===_0xb41bd6[_0x4838fa(0x25c)]||!this['_isOpen'])return null;if(this['_call']('db',null,'busState',[],![])==null)return null;if(!this['_busFacade']){const _0x4f04c2=this;this[_0x4838fa(0x8ab)]={get 'state'(){const _0x4cab13=_0x4838fa;return _0x4f04c2[_0x4cab13(0x7b0)]('db',null,'busState',[],![]);},get 'magic'(){const _0x18945d=_0x4838fa;return Buffer[_0x18945d(0x6a7)](_0x18945d(0x614)+_0x4f04c2['id']);},get 'isRunning'(){const _0x3ac01c=_0x4838fa;return _0x4f04c2['_call']('db',null,'busState',[],![])===_0x3ac01c(0x282);},'emit'(_0x26d50f,_0x5b49fb=''){const _0x271666=_0x4838fa;_0x4f04c2['_call']('db',null,_0x271666(0x629),[_0x26d50f,String(_0x5b49fb)],![]);}};}return this['_busFacade'];}[_0x19d64d(0x7ed)](_0x8b6310,_0x31aee5){const _0xf4dfdf=_0x19d64d;this['bus']?.['emit']('bus:proc',JSON['stringify']({'kind':_0xf4dfdf(0x583),'scope':_0x8b6310,'key':_0x31aee5}));}get['locks'](){const _0xb73091=_0x19d64d;return this[_0xb73091(0x455)]||(this[_0xb73091(0x455)]=new(requireLock())[(_0xb73091(0x390))](this,_0xb73091(0x199),_0xb73091(0x28a)));}get['_rootDb'](){const _0x1f804=_0x19d64d;return this['_systemEnv']?this[_0x1f804(0x25d)]['db']:undefined;}get[_0x19d64d(0x281)](){const _0x531e25=_0x19d64d,_0x715f38=this[_0x531e25(0x25d)]?.[_0x531e25(0x6e4)];if(!_0x715f38)return null;const _0x3824ec=_0x715f38[_0x531e25(0x690)]()[_0x531e25(0x5a2)](_0x4c7eb7=>_0x4c7eb7['meta']?.[_0x531e25(0x80a)]==='system:env-sync');return _0x3824ec?_0x715f38[_0x531e25(0x260)](_0x3824ec['id'],_0x3824ec['cursorKey']):null;}get[_0x19d64d(0x25d)](){const _0x3d750b=_0x19d64d;return this[_0x3d750b(0x7df)]?this[_0x3d750b(0x33b)][_0x3d750b(0x4ff)]('~system'):undefined;}[_0x19d64d(0x355)](_0xef77d2){const _0x400dd8=_0x19d64d;let _0x249f05=Map['prototype'][_0x400dd8(0x4ff)][_0x400dd8(0x765)](this['_envs'],_0xef77d2);if(!_0x249f05){_0x249f05=new _0x3aa86b(this,_0xef77d2),Map[_0x400dd8(0x3c3)][_0x400dd8(0x398)][_0x400dd8(0x765)](this[_0x400dd8(0x33b)],_0xef77d2,_0x249f05);if(_0xef77d2===_0x400dd8(0x3e4))this[_0x400dd8(0x7c0)]=_0x249f05;}return _0x249f05;}['env'](_0x55532e='default'){const _0x537e30=_0x19d64d,_0x3f7a7a=this[_0x537e30(0x33b)][_0x537e30(0x4ff)](_0x55532e);if(_0x3f7a7a)return _0x3f7a7a;if(this[_0x537e30(0x7df)]&&this[_0x537e30(0x7b0)]('db',null,_0x537e30(0x41c),[_0x55532e],![]))return this[_0x537e30(0x355)](_0x55532e);throw new _0x679bea(_0x537e30(0x44a)+_0x55532e+'\x22\x20not\x20found',_0x537e30(0x802));}get[_0x19d64d(0x3e4)](){const _0x3a3c60=_0x19d64d;return this[_0x3a3c60(0x81f)](_0x3a3c60(0x3e4));}get[_0x19d64d(0x315)](){const _0x4cc83a=_0x19d64d;return this[_0x4cc83a(0x33b)]['get'](_0x4cc83a(0x3e4))??this[_0x4cc83a(0x7c0)];}get['files'](){const _0x3b5413=_0x19d64d;return this[_0x3b5413(0x315)]['files'];}get[_0x19d64d(0x44d)](){const _0x28100f=_0x19d64d;return this[_0x28100f(0x315)][_0x28100f(0x44d)];}['_timerHandle'](_0x4e63b2){const _0x23f5d8=_0x19d64d;if(!this['_isOpen'])return null;return this['_call']('db',null,_0x23f5d8(0x631),[_0x4e63b2],![])?{'ref'(){},'unref'(){}}:null;}get[_0x19d64d(0x3f3)](){const _0x240d40=_0x19d64d;return this['_timerHandle'](_0x240d40(0x45c));}[_0x19d64d(0x4fa)](){return this['_call']('db',null,'reconcileDesired',[],!![]);}get[_0x19d64d(0x206)](){const _0x340430=_0x19d64d;return this[_0x340430(0x68a)](_0x340430(0x457));}get[_0x19d64d(0x38e)](){const _0x55d28e=_0x19d64d;return this[_0x55d28e(0x68a)]('writerWatchdog');}get[_0x19d64d(0x4b2)](){const _0x5a5a13=_0x19d64d;return this[_0x5a5a13(0x81f)]('default')['_hlc'];}get['workers'](){const _0x9d18cb=_0x19d64d;throw new _0x679bea('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.',_0x9d18cb(0x652));}get[_0x19d64d(0x6e4)](){const _0x16dcff=_0x19d64d;return this[_0x16dcff(0x315)][_0x16dcff(0x6e4)];}get[_0x19d64d(0x448)](){const _0x2bb899=_0x19d64d;return this[_0x2bb899(0x315)][_0x2bb899(0x448)];}async['createEnvironment'](_0x329d18,_0xd4a4cc={}){const _0x4a391c=_0x19d64d;this[_0x4a391c(0x7a9)]();if(_0xd4a4cc&&typeof _0xd4a4cc[_0x4a391c(0x6b5)]==='function'){const _0x547699=_0xd4a4cc[_0x4a391c(0x6b5)];this[_0x4a391c(0x21c)](_0x329d18,await _0x547699(_0x329d18),!![]),this[_0x4a391c(0x4c5)][_0x4a391c(0x649)][_0x4a391c(0x398)](_0x329d18,_0x547699),_0xd4a4cc={..._0xd4a4cc,'encryptionKey':!![]};}return this[_0x4a391c(0x7b0)]('db',null,'createEnvironment',[_0x329d18,_0xd4a4cc]),this[_0x4a391c(0x355)](_0x329d18);}async[_0x19d64d(0x695)](_0x57a0a0){const _0x2569ec=_0x19d64d;if(!this[_0x2569ec(0x7df)])throw new _0x679bea('Cannot\x20openEnv(\x22'+_0x57a0a0+_0x2569ec(0x604),_0x2569ec(0x87e));return this['_call']('db',null,_0x2569ec(0x695),[_0x57a0a0]),this[_0x2569ec(0x355)](_0x57a0a0);}get[_0x19d64d(0x611)](){const _0x2d31f6=_0x19d64d;if(!this['__adminRelay']&&this[_0x2d31f6(0x7df)]){const _0x2a6529=requireOkdbRelay(),_0xc0a4d4=new _0x2a6529(this,this['options']?.['admin']?.[_0x2d31f6(0x28b)]??{});_0xc0a4d4[_0x2d31f6(0x81c)](),_0xc0a4d4[_0x2d31f6(0x5e5)]=!![],this[_0x2d31f6(0x4a6)]=_0xc0a4d4;}return this['__adminRelay']??null;}set[_0x19d64d(0x611)](_0x3051ac){const _0x5c764a=_0x19d64d;this[_0x5c764a(0x4a6)]=_0x3051ac;}get[_0x19d64d(0x877)](){const _0x63677c=_0x19d64d;let _0x11cc47=0x0;if(this[_0x63677c(0x7df)])for(const [_0x1498d4]of Map[_0x63677c(0x3c3)][_0x63677c(0x207)][_0x63677c(0x765)](this['_envs'])){try{_0x11cc47+=this[_0x63677c(0x7b0)](_0x63677c(0x71c),_0x1498d4,_0x63677c(0x749),[],![])||0x0;}catch{}}return{'total':_0x11cc47,'maxObserved':_0x11cc47>0x0?0x1:0x0,'inFlight':0x0};}async[_0x19d64d(0x332)](_0x9a5310){const _0x2d65c8=_0x19d64d,_0x3bd6b9=this[_0x2d65c8(0x33b)]['get'](_0x9a5310);if(_0x3bd6b9)return _0x3bd6b9;if(!this[_0x2d65c8(0x7b0)]('db',null,_0x2d65c8(0x41c),[_0x9a5310],![]))throw new Error(_0x2d65c8(0x4c4)+_0x9a5310+_0x2d65c8(0x556));return this[_0x2d65c8(0x695)](_0x9a5310);}async[_0x19d64d(0x819)](_0x202d9a){const _0x2a2d28=_0x19d64d,_0x244cce=this[_0x2a2d28(0x7b0)]('db',null,_0x2a2d28(0x331),[_0x202d9a]);return this['_envs']['delete'](_0x202d9a),_0x244cce;}async[_0x19d64d(0x196)](_0x2c4b1d,_0x220c97={}){const _0x570239=_0x19d64d;this['_assertOpen']();const _0x250c97=this[_0x570239(0x7b0)]('db',null,_0x570239(0x196),[_0x2c4b1d,_0x220c97]);return this[_0x570239(0x33b)][_0x570239(0x6f8)](_0x2c4b1d),_0x250c97;}static get[_0x19d64d(0x619)](){return _0x1dc527['defaults'];}static get[_0x19d64d(0x46f)](){const _0x4df3d9=_0x19d64d;return _0x1dc527[_0x4df3d9(0x46f)];}static get[_0x19d64d(0x5ce)](){const _0x1c9589=_0x19d64d;return _0x1dc527[_0x1c9589(0x5ce)];}static async[_0x19d64d(0x35b)](_0x323464,_0x57da19){const _0x1aee7b=_0x19d64d;return _0x5b0d37('db',_0x1aee7b(0x35b),[_0x323464,_0x57da19]);}static[_0x19d64d(0x24b)](_0x503a51){const _0x8d11f=_0x19d64d;return _0x5b0d37('db',_0x8d11f(0x24b),[_0x503a51]);}static[_0x19d64d(0x1eb)](_0x248ce4,_0x39a6a2){const _0x1f9294=_0x19d64d;_0x5b0d37(_0x1f9294(0x448),_0x1f9294(0x1eb),[_0x248ce4,_0x39a6a2]);}static[_0x19d64d(0x2e3)](_0x2dccc3,_0x5c17cd){const _0x270cca=_0x19d64d;_0x5b0d37(_0x270cca(0x448),_0x270cca(0x2e3),[_0x2dccc3,_0x5c17cd]);}static[_0x19d64d(0x7c3)](){}[_0x19d64d(0x483)](_0x1d805a,_0x2e2181){const _0x22a6ba=_0x19d64d;return require$$16[_0x22a6ba(0x1ac)](_0x1d805a,_0x2e2181);}}_0x4b5211[_0x19d64d(0x54e)]=_0x39307f,Object[_0x19d64d(0x834)](_0x4b5211,_0x19d64d(0x79c),{'get'(){const _0x29ef59=_0x19d64d;return _0x4b5211[_0x29ef59(0x73e)]||(_0x4b5211[_0x29ef59(0x73e)]=new Set());},'set'(_0x4f23da){const _0x14394e=_0x19d64d;_0x4b5211[_0x14394e(0x73e)]=_0x4f23da;try{_0x5b0d37('db',_0x14394e(0x3c2),[]);}catch{}},'configurable':!![]});for(const _0x25dbab of[_0x19d64d(0x4b7),_0x19d64d(0x2ff),_0x19d64d(0x77c),'update',_0x19d64d(0x296),'create',_0x19d64d(0x7e6),'get',_0x19d64d(0x7ae),_0x19d64d(0x7f9),'getRange',_0x19d64d(0x47c),_0x19d64d(0x608),_0x19d64d(0x34c),_0x19d64d(0x70c),'getIndex',_0x19d64d(0x807),_0x19d64d(0x407),_0x19d64d(0x71e),_0x19d64d(0x789),_0x19d64d(0x42c),'registerType',_0x19d64d(0x816),_0x19d64d(0x4c3),_0x19d64d(0x620),_0x19d64d(0x637),_0x19d64d(0x716),'registerIndex',_0x19d64d(0x88e),'dropIndex','resetIndex',_0x19d64d(0x3eb),_0x19d64d(0x5b0),_0x19d64d(0x431),_0x19d64d(0x4f9),_0x19d64d(0x32b),_0x19d64d(0x7da),_0x19d64d(0x356),_0x19d64d(0x83e),_0x19d64d(0x7ee),_0x19d64d(0x188),_0x19d64d(0x7a5),_0x19d64d(0x759),_0x19d64d(0x54b),_0x19d64d(0x4dc),_0x19d64d(0x3d1),_0x19d64d(0x6a1),_0x19d64d(0x768),_0x19d64d(0x261),_0x19d64d(0x785)]){_0x4b5211['prototype'][_0x25dbab]=function(..._0x241a65){const _0x41fbef=this['env']('default');return _0x41fbef[_0x25dbab](..._0x241a65);};}function _0xad9a84(_0x30f0c7){const _0x5eb387=_0x19d64d,_0x8329c5=_0x2f4662=>()=>{const _0x1d0a1b=_0x20ac;throw new Error(_0x1d0a1b(0x1a7)+_0x2f4662+'\x20was\x20removed\x20in\x20okdb\x202.0.\x20Use\x20processors:true\x20for\x20plain\x20lease\x20participation.\x20See\x20docs/upgrade-2.0.md.');};return{'process':_0x8329c5(_0x5eb387(0x437)),'processRest':_0x8329c5(_0x5eb387(0x8a0)),'processEverything':_0x8329c5('processEverything()'),async 'start'(){return _0x30f0c7['_call']('db',null,'processorsStart',[]);},async 'stop'(){const _0xef8b53=_0x5eb387;return _0x30f0c7[_0xef8b53(0x7b0)]('db',null,_0xef8b53(0x505),[]);},'status'(){const _0x19418a=_0x5eb387;return _0x30f0c7[_0x19418a(0x7b0)]('db',null,_0x19418a(0x6df),[],![]);},get 'participating'(){const _0x3eed5a=_0x5eb387;return _0x30f0c7[_0x3eed5a(0x7b0)]('db',null,'processorsParticipating',[],![]);},get '_participate'(){const _0x247040=_0x5eb387;return _0x30f0c7[_0x247040(0x7b0)]('db',null,_0x247040(0x56e),[],![]);}};}function _0x5b0d37(_0x27065f,_0x121eb2,_0x3e73b0){const _0x1ab01b=_0x19d64d;_0x1dbdb4();try{return _0x3e4a0d()[_0x1ab01b(0x758)](_0x27065f,_0x121eb2,_0x3e73b0);}catch(_0x5b42b4){throw _0xf898ca(_0x5b42b4);}}_0x180229[_0x19d64d(0x3f6)]=_0x4b5211,_0x180229[_0x19d64d(0x3f6)]['staticCall']=_0x5b0d37,_0x180229[_0x19d64d(0x3f6)][_0x19d64d(0x683)]=_0x4b5211,_0x180229[_0x19d64d(0x3f6)][_0x19d64d(0x54e)]=_0x39307f,_0x180229[_0x19d64d(0x3f6)][_0x19d64d(0x3e4)]=_0x4b5211,Object['defineProperty'](_0x180229[_0x19d64d(0x3f6)],_0x19d64d(0x222),{'get':()=>require$$1$1['loadedPath']?.()??null,'enumerable':![],'configurable':!![]});}(lib),lib[_0xaa4a0d(0x3f6)];}var libExports=requireLib(),index=getDefaultExportFromCjs(libExports);module[_0x1c5fdf(0x3f6)]=index;
|