@kedem/okdb 3.1.7 → 3.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/okdb-native.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x1ade1a=_0x3f13;(function(_0x4c4263,_0x5647a2){const _0x2157f1=_0x3f13,_0x4af5d2=_0x4c4263();while(!![]){try{const _0x43a3da=parseInt(_0x2157f1(0x3ce))/0x1*(parseInt(_0x2157f1(0x45b))/0x2)+-parseInt(_0x2157f1(0x576))/0x3+parseInt(_0x2157f1(0x713))/0x4*(parseInt(_0x2157f1(0x6e8))/0x5)+parseInt(_0x2157f1(0x356))/0x6+parseInt(_0x2157f1(0x318))/0x7*(-parseInt(_0x2157f1(0x3a5))/0x8)+parseInt(_0x2157f1(0x17b))/0x9*(-parseInt(_0x2157f1(0x5ed))/0xa)+parseInt(_0x2157f1(0x63b))/0xb;if(_0x43a3da===_0x5647a2)break;else _0x4af5d2['push'](_0x4af5d2['shift']());}catch(_0x3be7fe){_0x4af5d2['push'](_0x4af5d2['shift']());}}}(_0x394d,0x8d943));var require$$0$6=require(_0x1ade1a(0x808)),require$$1$1=require(_0x1ade1a(0x6cf)),require$$0=require(_0x1ade1a(0x446)),require$$1=require(_0x1ade1a(0x1da)),require$$4=require(_0x1ade1a(0x5c2)),require$$0$2=require(_0x1ade1a(0x7d3)),require$$0$1=require('node:perf_hooks'),require$$16=require('node:util'),require$$0$3=require('node:http'),require$$2=require('node:cluster'),require$$18=require(_0x1ade1a(0x32f)),require$$0$4=require(_0x1ade1a(0x672)),require$$0$5=require(_0x1ade1a(0x43b));function getDefaultExportFromCjs(_0xa4780d){const _0x327489=_0x1ade1a;return _0xa4780d&&_0xa4780d[_0x327489(0x7c9)]&&Object[_0x327489(0x259)][_0x327489(0x7f8)][_0x327489(0x881)](_0xa4780d,_0x327489(0x693))?_0xa4780d[_0x327489(0x693)]:_0xa4780d;}var lib={'exports':{}},okdbError,hasRequiredOkdbError;function requireOkdbError(){if(hasRequiredOkdbError)return okdbError;hasRequiredOkdbError=0x1;class _0x66ee1 extends Error{constructor(_0x5495ad,_0x3484c0,_0x404378={}){const _0xf3f15e=_0x3f13;super(_0x5495ad),this[_0xf3f15e(0x885)]=_0xf3f15e(0x24b),this[_0xf3f15e(0x431)]=_0x3484c0,this[_0xf3f15e(0x7fa)]=_0x404378,_0x404378[_0xf3f15e(0x87a)]&&(this['cause']=_0x404378[_0xf3f15e(0x87a)]),Error[_0xf3f15e(0x29d)](this,this['constructor']);}}class _0x37506a extends _0x66ee1{constructor(_0x198c6a,_0x3b790a,_0x579233,_0x5619b5){const _0x556b90=_0x3f13;super(_0x556b90(0x382)+_0x198c6a+'@'+_0x3b790a+_0x556b90(0x651)+_0x579233+_0x556b90(0x832)+_0x5619b5,_0x556b90(0x35f),{'type':_0x198c6a,'key':_0x3b790a,'expectedVersion':_0x579233,'actualVersion':_0x5619b5}),this[_0x556b90(0x885)]=_0x556b90(0x407);}}class _0x590eb3 extends _0x66ee1{constructor(_0x5e09f2,_0x41236f){const _0x12cdd2=_0x3f13;super(_0x5e09f2+'@'+_0x41236f+_0x12cdd2(0x732),'NOT_FOUND',{'type':_0x5e09f2,'key':_0x41236f}),this[_0x12cdd2(0x885)]=_0x12cdd2(0x72f);}}class _0x59248a extends _0x66ee1{constructor(_0xce8624,_0x4ab26f){const _0xac94cd=_0x3f13;super(_0xce8624+'@'+_0x4ab26f+_0xac94cd(0x5ac),'ALREADY_EXISTS',{'type':_0xce8624,'key':_0x4ab26f}),this['name']='OKDBAlreadyExistsError';}}class _0x17757b extends _0x66ee1{constructor(_0x5741f8,_0x42cfb7){const _0x1bbb57=_0x3f13,_0x4dba67=typeof _0x42cfb7;super(_0x1bbb57(0x211)+_0x5741f8+_0x1bbb57(0x88a)+_0x4dba67+_0x1bbb57(0x4a9)+_0x42cfb7,'INVALID_INDEX_KEY',{'index':_0x5741f8,'key':_0x42cfb7,'keyType':_0x4dba67}),this[_0x1bbb57(0x885)]='OKDBInvalidIndexKeyError';}}class _0x50bf34 extends _0x66ee1{constructor(_0x4d1fa4){const _0x569507=_0x3f13,_0x7f0bd2=typeof _0x4d1fa4;super(_0x569507(0x700)+_0x7f0bd2+_0x569507(0x6eb)+_0x4d1fa4,_0x569507(0x635),{'key':_0x4d1fa4,'keyType':_0x7f0bd2}),this['name']=_0x569507(0x4e1);}}class _0x4c91ef extends _0x66ee1{constructor(_0x4ec458){const _0x13c2db=_0x3f13;super(_0x13c2db(0x316)+_0x4ec458+_0x13c2db(0x6ce),'TYPE_NOT_REGISTERED',{'type':_0x4ec458}),this[_0x13c2db(0x885)]=_0x13c2db(0x397);}}class _0x50d7d7 extends _0x66ee1{constructor(_0x361258){const _0xe4fad0=_0x3f13;super('Type\x20\x27'+_0x361258+_0xe4fad0(0x68e),_0xe4fad0(0x67c),{'type':_0x361258}),this[_0xe4fad0(0x885)]=_0xe4fad0(0x6a7);}}class _0x95f0c9 extends _0x66ee1{constructor(_0x1a1df7,_0xae12ba){const _0x492228=_0x3f13;super(_0x492228(0x381)+_0xae12ba+_0x492228(0x568)+_0x1a1df7+_0x492228(0x6ce),_0x492228(0x81c),{'type':_0x1a1df7,'index':_0xae12ba}),this['name']='OKDBIndexNotRegisteredError';}}class _0xf972f7 extends _0x66ee1{constructor(_0x5a88ff,_0x5729b1){const _0x435679=_0x3f13;super('Index\x20\x27'+_0x5729b1+_0x435679(0x568)+_0x5a88ff+'\x27\x20is\x20already\x20registered',_0x435679(0x157),{'type':_0x5a88ff,'index':_0x5729b1}),this[_0x435679(0x885)]=_0x435679(0x7ae);}}class _0x1ea6c4 extends _0x66ee1{constructor(_0x5463ec,_0x4b4fa9={}){const _0x51d0c5=_0x3f13;super(_0x5463ec,_0x51d0c5(0x441),_0x4b4fa9),this['name']=_0x51d0c5(0x3ae);}}class _0x1d1a7b extends _0x66ee1{constructor(_0x2224cf,_0x457071,_0x2aa4b5,_0x15f0af,_0x21946e){const _0x49a05b=_0x3f13;super('Unique\x20constraint\x20violated\x20on\x20'+_0x2224cf+'@'+_0x457071+_0x49a05b(0x6f9)+_0x2aa4b5+']\x20already\x20maps\x20to\x20\x27'+_0x15f0af+_0x49a05b(0x73c)+_0x21946e+'\x27','UNIQUE_CONSTRAINT',{'type':_0x2224cf,'index':_0x457071,'indexKey':_0x2aa4b5,'existingKey':_0x15f0af,'conflictingKey':_0x21946e}),this['name']=_0x49a05b(0x1cf);}}class _0x4152ca extends _0x66ee1{constructor(_0xae5367,_0x161ff2,_0x51547e){const _0x5d2cd7=_0x3f13;super('Schema\x20validation\x20failed\x20for\x20'+_0xae5367+'@'+_0x161ff2,'SCHEMA_VALIDATION_FAILED',{'type':_0xae5367,'key':_0x161ff2,'errors':_0x51547e}),this[_0x5d2cd7(0x885)]=_0x5d2cd7(0x57f),this[_0x5d2cd7(0x79c)]=_0xae5367,this[_0x5d2cd7(0x491)]=_0x161ff2,this[_0x5d2cd7(0x3d5)]=_0x51547e;}}class _0x251cd7 extends _0x66ee1{constructor(_0x33a88e,_0x2004d5){const _0x411c1d=_0x3f13;super(_0x411c1d(0x5bf)+_0x33a88e+':\x20'+_0x2004d5['length']+'\x20documents\x20fail\x20validation',_0x411c1d(0x1f5),{'type':_0x33a88e,'failures':_0x2004d5}),this[_0x411c1d(0x885)]=_0x411c1d(0x4c7),this[_0x411c1d(0x79c)]=_0x33a88e,this['failures']=_0x2004d5;}}class _0x14cacc extends _0x66ee1{constructor(_0x38cc53,_0xc9a3a3,_0x27a97a,_0x510e0a,_0x33e038){const _0x3ce1b9=_0x3f13;super(_0x3ce1b9(0x6a8)+_0x38cc53+'@'+_0xc9a3a3+'.'+_0x27a97a+_0x3ce1b9(0x731)+_0x510e0a+'@'+_0x33e038+_0x3ce1b9(0x747),_0x3ce1b9(0x5e0),{'sourceType':_0x38cc53,'sourceKey':_0xc9a3a3,'fieldPath':_0x27a97a,'targetType':_0x510e0a,'targetKey':_0x33e038}),this[_0x3ce1b9(0x885)]=_0x3ce1b9(0x540),this[_0x3ce1b9(0x327)]=_0x38cc53,this[_0x3ce1b9(0x600)]=_0xc9a3a3,this[_0x3ce1b9(0x702)]=_0x27a97a,this[_0x3ce1b9(0x4d8)]=_0x510e0a,this[_0x3ce1b9(0x734)]=_0x33e038;}}class _0x120d0d extends _0x66ee1{constructor(_0x32355a,_0x260cd0,_0x6d2a37){const _0x3eaea7=_0x3f13;super('Cannot\x20delete\x20'+_0x32355a+'@'+_0x260cd0+':\x20'+_0x6d2a37['length']+_0x3eaea7(0x174),_0x3eaea7(0x715),{'targetType':_0x32355a,'targetKey':_0x260cd0,'references':_0x6d2a37}),this[_0x3eaea7(0x885)]=_0x3eaea7(0x6c4),this[_0x3eaea7(0x4d8)]=_0x32355a,this[_0x3eaea7(0x734)]=_0x260cd0,this[_0x3eaea7(0x41c)]=_0x6d2a37;}}class _0x597499 extends _0x66ee1{constructor(_0x4ef495,_0x495075,_0x39e7f8){const _0x54a73d=_0x3f13;super(_0x54a73d(0x322)+_0x495075+_0x54a73d(0x7e3)+_0x4ef495+_0x54a73d(0x22b)+_0x39e7f8['map'](_0x1cc81f=>_0x1cc81f[_0x54a73d(0x14e)]+':'+_0x1cc81f[_0x54a73d(0x885)])['join'](',\x20'),_0x54a73d(0x262),{'type':_0x4ef495,'index':_0x495075,'usedBy':_0x39e7f8}),this[_0x54a73d(0x885)]=_0x54a73d(0x767);}}return okdbError={'OKDBError':_0x66ee1,'OKDBVersionMismatchError':_0x37506a,'OKDBNotFoundError':_0x590eb3,'OKDBAlreadyExistsError':_0x59248a,'OKDBInvalidIndexKeyError':_0x17757b,'OKDBInvalidPrimaryKeyError':_0x50bf34,'OKDBTypeNotRegisteredError':_0x4c91ef,'OKDBTypeAlreadyRegisteredError':_0x50d7d7,'OKDBIndexNotRegisteredError':_0x95f0c9,'OKDBIndexAlreadyRegisteredError':_0xf972f7,'OKDBInvalidValueError':_0x1ea6c4,'OKDBUniqueConstraintError':_0x1d1a7b,'OKDBSchemaValidationError':_0x4152ca,'OKDBSchemaCollectionError':_0x251cd7,'OKDBForeignKeyError':_0x14cacc,'OKDBForeignKeyDeleteError':_0x120d0d,'OKDBIndexHasConsumersError':_0x597499},okdbError;}var errors,hasRequiredErrors;function requireErrors(){const _0x3d1033=_0x1ade1a;if(hasRequiredErrors)return errors;hasRequiredErrors=0x1;const _0x3cceaa=requireOkdbError(),_0x5021bb={'VERSION_MISMATCH':_0x3cceaa[_0x3d1033(0x407)],'NOT_FOUND':_0x3cceaa[_0x3d1033(0x72f)],'ALREADY_EXISTS':_0x3cceaa[_0x3d1033(0x3b6)],'INVALID_INDEX_KEY':_0x3cceaa[_0x3d1033(0x250)],'INVALID_PRIMARY_KEY':_0x3cceaa[_0x3d1033(0x4e1)],'TYPE_NOT_REGISTERED':_0x3cceaa[_0x3d1033(0x397)],'TYPE_ALREADY_REGISTERED':_0x3cceaa[_0x3d1033(0x6a7)],'INDEX_NOT_REGISTERED':_0x3cceaa[_0x3d1033(0x7fb)],'INDEX_ALREADY_REGISTERED':_0x3cceaa[_0x3d1033(0x7ae)],'INVALID_VALUE':_0x3cceaa['OKDBInvalidValueError'],'UNIQUE_CONSTRAINT':_0x3cceaa[_0x3d1033(0x1cf)],'SCHEMA_VALIDATION_FAILED':_0x3cceaa[_0x3d1033(0x57f)],'SCHEMA_COLLECTION_INVALID':_0x3cceaa[_0x3d1033(0x4c7)],'FOREIGN_KEY_VIOLATION':_0x3cceaa['OKDBForeignKeyError'],'FOREIGN_KEY_DELETE_RESTRICTED':_0x3cceaa[_0x3d1033(0x6c4)],'INDEX_HAS_CONSUMERS':_0x3cceaa[_0x3d1033(0x767)]};class _0x4a0398 extends _0x3cceaa[_0x3d1033(0x24b)]{constructor(_0x34ae4e,_0x50301a){const _0xf8d855=_0x3d1033;super(_0x34ae4e+_0xf8d855(0x80c)+(_0x50301a?'\x20('+_0x50301a+')':''),_0xf8d855(0x846),{'feature':_0x34ae4e}),this['name']=_0xf8d855(0x3eb);}}function _0x14214b(_0x36100f){const _0x21b88f=_0x3d1033;if(!_0x36100f||typeof _0x36100f!==_0x21b88f(0x6f7)||!_0x36100f[_0x21b88f(0x1e3)])return _0x36100f;delete _0x36100f[_0x21b88f(0x1e3)];const _0x37faae=_0x36100f[_0x21b88f(0x431)];if(_0x37faae==='Error'||_0x37faae===_0x21b88f(0x34e)||_0x37faae===_0x21b88f(0x6c6)){const _0x3c1271=_0x37faae===_0x21b88f(0x34e)?TypeError['prototype']:_0x37faae==='RangeError'?RangeError['prototype']:Error[_0x21b88f(0x259)];Object[_0x21b88f(0x20c)](_0x36100f,_0x3c1271),_0x36100f[_0x21b88f(0x885)]=_0x37faae;if(_0x36100f[_0x21b88f(0x7fa)]&&_0x36100f['details']['status']!==undefined)_0x36100f['status']=_0x36100f[_0x21b88f(0x7fa)][_0x21b88f(0x371)];return delete _0x36100f[_0x21b88f(0x431)],delete _0x36100f[_0x21b88f(0x7fa)],_0x36100f;}const _0x391de7=_0x5021bb[_0x37faae];Object[_0x21b88f(0x20c)](_0x36100f,(_0x391de7||_0x3cceaa[_0x21b88f(0x24b)])[_0x21b88f(0x259)]),_0x36100f[_0x21b88f(0x885)]=_0x391de7?_0x391de7[_0x21b88f(0x885)]['replace'](/^OKDB/,_0x21b88f(0x152)):_0x21b88f(0x24b);const _0x2cb8de=_0x36100f[_0x21b88f(0x7fa)]||{};_0x37faae===_0x21b88f(0x52f)&&(_0x36100f[_0x21b88f(0x79c)]=_0x2cb8de['type'],_0x36100f[_0x21b88f(0x491)]=_0x2cb8de['key'],_0x36100f[_0x21b88f(0x3d5)]=_0x2cb8de[_0x21b88f(0x3d5)]);_0x37faae===_0x21b88f(0x1f5)&&(_0x36100f['type']=_0x2cb8de[_0x21b88f(0x79c)],_0x36100f[_0x21b88f(0x4fb)]=_0x2cb8de[_0x21b88f(0x4fb)]);if(_0x37faae===_0x21b88f(0x5e0)){for(const _0x38bcc1 of[_0x21b88f(0x327),_0x21b88f(0x600),'fieldPath','targetType',_0x21b88f(0x734)])_0x36100f[_0x38bcc1]=_0x2cb8de[_0x38bcc1];}if(_0x37faae===_0x21b88f(0x715)){for(const _0x5260c5 of[_0x21b88f(0x4d8),'targetKey',_0x21b88f(0x41c)])_0x36100f[_0x5260c5]=_0x2cb8de[_0x5260c5];}if(_0x2cb8de[_0x21b88f(0x87a)])_0x36100f['cause']=_0x2cb8de[_0x21b88f(0x87a)];if(_0x2cb8de[_0x21b88f(0x371)]!==undefined)_0x36100f[_0x21b88f(0x371)]=_0x2cb8de[_0x21b88f(0x371)];if(_0x2cb8de[_0x21b88f(0x68a)]!==undefined)_0x36100f[_0x21b88f(0x68a)]=_0x2cb8de['retryable'];return _0x36100f;}function _0x54505e(_0x42ed05){const _0x1bf2ed=_0x3d1033;if(_0x42ed05===undefined)return'undefined';if(_0x42ed05===null)return _0x1bf2ed(0x79d);if(typeof _0x42ed05===_0x1bf2ed(0x4c1))return _0x42ed05?_0x1bf2ed(0x4c1):_0x1bf2ed(0x324);if(typeof _0x42ed05===_0x1bf2ed(0x40e))return'function';if(typeof _0x42ed05!==_0x1bf2ed(0x6f7))return typeof _0x42ed05;if(Array[_0x1bf2ed(0x4b6)](_0x42ed05))return _0x42ed05['length']?_0x1bf2ed(0x45a):_0x1bf2ed(0x44c);if(_0x42ed05 instanceof Date)return'Date';if(_0x42ed05 instanceof Map)return _0x1bf2ed(0x4e3);if(Buffer[_0x1bf2ed(0x47d)](_0x42ed05))return'Buffer';return _0x1bf2ed(0x6f7);}const _0x58bde9=(_0x51839d,_0x17d43c,_0x12c448)=>new _0x3cceaa[(_0x3d1033(0x24b))](_0x17d43c,_0x51839d,_0x12c448),_0x46e667=(_0xdd9728,_0x4d4d79,_0x7d2e85)=>_0x58bde9('INVALID_ARGUMENT',_0xdd9728+_0x3d1033(0x3a2)+_0x4d4d79+_0x3d1033(0x7b3)+_0x54505e(_0x7d2e85),{'argument':_0xdd9728,'expected':_0x4d4d79,'got':_0x54505e(_0x7d2e85)}),_0x280728=(_0x1f1ec2,_0x50b224)=>_0x58bde9('INVALID_TYPE_NAME',_0x1f1ec2+_0x3d1033(0x215)+_0x54505e(_0x50b224),{'argument':_0x1f1ec2,'expected':_0x3d1033(0x87f),'got':_0x54505e(_0x50b224)}),_0xf5808f=(_0x293ae,_0x5c6488)=>_0x58bde9(_0x3d1033(0x839),_0x293ae+':\x20'+_0x5c6488,{'argument':_0x293ae,'problem':_0x5c6488});function _0x1ca6ee(_0x427a0d,_0x4275c2='options'){const _0x3a5cc3=_0x3d1033;if(_0x427a0d===undefined)return{};if(_0x427a0d===null)throw _0xf5808f(_0x4275c2,_0x3a5cc3(0x663));return _0x427a0d;}return errors={'reclass':_0x14214b,'NotImplementedNative':_0x4a0398,'BY_CODE':_0x5021bb,'describe':_0x54505e,'invalidArgument':_0x46e667,'invalidTypeName':_0x280728,'invalidOptions':_0xf5808f,'optionsArg':_0x1ca6ee,..._0x3cceaa},errors;}var bridge_1,hasRequiredBridge;function requireBridge(){if(hasRequiredBridge)return bridge_1;hasRequiredBridge=0x1;const _0x2aa5e6=new Map(),_0x33633a=new Map();let _0x496132=0x1;const _0x2dcc9e=new Map(),_0x242a1d=new Map();let _0x3f1548=0x1;const _0x1d8190=new Map();let _0x335aa4=0x1;const _0x398f5f=new Map();function _0x3122bb(_0x462901,_0x4d9fac=null){const _0x54d94b=_0x3f13,_0x54911=_0x335aa4++;_0x1d8190[_0x54d94b(0x488)](_0x54911,_0x462901);if(_0x4d9fac)_0x398f5f[_0x54d94b(0x488)](_0x54911,_0x4d9fac);return _0x54911;}function _0x51cd4d(_0x5140ab,_0x3d9b9e){const _0xa24968=_0x3f13,_0x2fed1c=_0x1d8190[_0xa24968(0x616)](_0x5140ab),_0x5ad02e=Array['prototype'][_0xa24968(0x4e8)][_0xa24968(0x881)](arguments,0x2),_0x56ae05=_0x219b72=>_0x4102fc(_0x219b72,_0x398f5f[_0xa24968(0x616)](_0x5140ab));let _0x22ede2=_0x5ad02e;if(_0x3d9b9e===_0xa24968(0x525)||_0x3d9b9e===_0xa24968(0x851)||_0x3d9b9e===_0xa24968(0x6e1)||_0x3d9b9e===_0xa24968(0x450)||_0x3d9b9e===_0xa24968(0x202))_0x22ede2=[_0x56ae05(_0x5ad02e[0x0])];else{if(_0x3d9b9e===_0xa24968(0x3d3))_0x22ede2=[_0x5ad02e[0x0],_0x5ad02e[0x1],_0x56ae05(_0x5ad02e[0x2])];else{if(_0x3d9b9e===_0xa24968(0x1b6))_0x22ede2=[_0x56ae05(_0x5ad02e[0x0])];}}let _0xcb7de=_0x2fed1c[_0x3d9b9e](..._0x22ede2);if(_0xcb7de&&typeof _0xcb7de[_0xa24968(0x1df)]===_0xa24968(0x40e))_0xcb7de=_0x2a08b5(_0xcb7de);if(_0x3d9b9e==='start'){const _0x4a0df1=_0xcb7de&&typeof _0xcb7de===_0xa24968(0x6f7)?_0x3122bb(_0xcb7de):_0x3122bb({});return{'$api':_0x4a0df1};}return _0xcb7de===undefined?null:_0xcb7de;}function _0x4102fc(_0x4b5613,_0x31b958){const _0x874155=_0x3f13;let _0x18d0c6=_0x46581c['get'](_0x4b5613[_0x874155(0x799)]);const _0x42064d=_0x18d0c6&&_0x18d0c6['okdb']||_0x31b958||_0x347c1f,_0x34aae4=(_0x275ad2,..._0x567728)=>_0x42064d['_call'](_0x874155(0x5a4),null,_0x275ad2,[_0x4b5613[_0x874155(0x79c)],_0x4b5613['name'],..._0x567728],!![]);return{'okdb':_0x42064d,'key':_0x4b5613[_0x874155(0x491)],'type':_0x4b5613[_0x874155(0x79c)],'name':_0x4b5613[_0x874155(0x885)],get 'storeEnv'(){const _0x19426b=_0x874155;if(!_0x18d0c6&&_0x42064d&&_0x42064d[_0x19426b(0x232)]&&_0x4b5613[_0x19426b(0x406)])_0x18d0c6=_0x42064d[_0x19426b(0x2b2)][_0x19426b(0x616)](_0x4b5613[_0x19426b(0x406)]);return _0x18d0c6;},'storeEnvName':_0x4b5613[_0x874155(0x406)],'config':_0x4b5613[_0x874155(0x794)],'meta':_0x4b5613[_0x874155(0x5c1)],'options':_0x4b5613[_0x874155(0x5c3)],'emit':(_0x1caeb9,_0x18e563)=>_0x34aae4('ctxEmit',_0x1caeb9,_0x18e563),'updateStatus':async(_0x4241ce,_0x4b1ce6)=>_0x34aae4(_0x874155(0x47e),_0x4241ce,_0x4b1ce6==null?null:String(_0x4b1ce6&&_0x4b1ce6[_0x874155(0x806)]?_0x4b1ce6[_0x874155(0x806)]:_0x4b1ce6)),'updateMeta':async _0x276ee1=>_0x34aae4('patchDeclaration',{'meta':_0x276ee1}),'updateConfig':async _0x16869f=>_0x34aae4(_0x874155(0x730),{'config':_0x16869f})};}function _0x19797b(_0x2a1239,_0x45ce60,_0x4aafa8){const _0x14369b=_0x3f13;if(_0x2a1239===_0x14369b(0x2c0)){const _0x736df1=_0x2ffd1f(_0x45ce60);let _0xed2f9f=_0x736df1(_0x4aafa8);if(_0xed2f9f&&typeof _0xed2f9f[_0x14369b(0x1df)]==='function')_0xed2f9f=_0x2a08b5(_0xed2f9f);if(!_0xed2f9f||typeof _0xed2f9f[_0x14369b(0x26d)]!==_0x14369b(0x40e)){const {OKDBError:_0x2bd69d}=requireErrors();throw new _0x2bd69d('Embedder\x20factory\x20for\x20\x22'+(_0x4aafa8&&_0x4aafa8[_0x14369b(0x79c)])+'\x22\x20must\x20return\x20{\x20embed(input):\x20Promise<Float32Array>\x20}',_0x14369b(0x1fa));}return _0xed2f9f['__okdb']=_0x736df1[_0x14369b(0x1e3)],{'$id':_0x3122bb(_0xed2f9f),'batch':typeof _0xed2f9f[_0x14369b(0x3fa)]===_0x14369b(0x40e)};}const _0x387716=_0x1d8190['get'](_0x45ce60);if(_0x2a1239===_0x14369b(0x1ff))return _0x1d8190[_0x14369b(0x727)](_0x45ce60),_0x11b1b8[_0x14369b(0x727)](_0x45ce60),null;if(!_0x387716)throw new Error(_0x14369b(0x59d));if(typeof _0x387716[_0x2a1239]!==_0x14369b(0x40e))return null;if(_0x2a1239===_0x14369b(0x26d)||_0x2a1239===_0x14369b(0x3fa)){const _0x5c058f=_0x2a1239==='embedBatch'?_0x4dd85d(_0x45ce60,_0x387716,_0x4aafa8):_0x46b73a(_0x45ce60,_0x387716,_0x2a1239,_0x4aafa8);return _0x2a1239===_0x14369b(0x26d)?_0x18df5d(_0x5c058f):_0x5c058f['map'](_0x18df5d);}let _0x365875=_0x387716[_0x2a1239]();if(_0x365875&&typeof _0x365875['then']==='function')_0x365875=_0x2a08b5(_0x365875);return _0x365875===undefined?null:_0x365875;}function _0x18df5d(_0x38bdf4){return _0x38bdf4 instanceof Float32Array?_0x38bdf4:Array['from'](_0x38bdf4);}function _0x1c70a7(_0xa552d9,_0xa5e6bb,_0x1e5130){const _0x372510=_0x3f13;if(_0xa552d9==='new'){const _0x4e1de7=_0x2ffd1f(_0xa5e6bb);let _0x1f5c48=_0x4e1de7(_0x1e5130[_0x372510(0x794)]??{},{'dims':_0x1e5130['dims'],'dir':_0x1e5130[_0x372510(0x7db)]});if(_0x1f5c48&&typeof _0x1f5c48[_0x372510(0x1df)]==='function')_0x1f5c48=_0x2a08b5(_0x1f5c48);for(const _0x2157a0 of[_0x372510(0x6c8),_0x372510(0x76e),_0x372510(0x6a9),_0x372510(0x474),_0x372510(0x5ad)]){if(!_0x1f5c48||typeof _0x1f5c48[_0x2157a0]!==_0x372510(0x40e)){const {OKDBError:_0x21774a}=requireErrors();throw new _0x21774a('Algorithm\x20factory\x20must\x20return\x20an\x20object\x20with\x20'+_0x2157a0+'()',_0x372510(0x773),{'method':_0x2157a0});}}return{'$id':_0x3122bb(_0x1f5c48)};}const _0x100383=_0x1d8190[_0x372510(0x616)](_0xa5e6bb);if(_0xa552d9===_0x372510(0x1ff))return _0x1d8190[_0x372510(0x727)](_0xa5e6bb),null;if(!_0x100383)throw new Error(_0x372510(0x81a));const _0x6ac1ef=_0x4e7636=>_0x4e7636?_0x4e7636[_0x372510(0x6f2)](_0x45c25f=>({'key':_0x45c25f[_0x372510(0x491)],'vector':Float32Array[_0x372510(0x5f7)](_0x45c25f[_0x372510(0x812)])})):null;let _0x7c9df5;switch(_0xa552d9){case'load':case'rebuild':{const _0x79e24c=_0x6ac1ef(_0x1e5130);_0x7c9df5=_0x100383[_0xa552d9](_0x79e24c?async()=>_0x79e24c:undefined);break;}case _0x372510(0x76e):_0x7c9df5=_0x100383[_0x372510(0x76e)](_0x1e5130[0x0],Float32Array[_0x372510(0x5f7)](_0x1e5130[0x1]),_0x1e5130[0x2]??undefined);break;case _0x372510(0x6a9):_0x7c9df5=_0x100383[_0x372510(0x6a9)](_0x1e5130);break;case _0x372510(0x474):_0x7c9df5=_0x100383['search'](Float32Array['from'](_0x1e5130['query']),_0x1e5130[_0x372510(0x35b)]??{});break;case _0x372510(0x7e2):_0x7c9df5=typeof _0x100383[_0x372510(0x7e2)]===_0x372510(0x40e)?_0x100383[_0x372510(0x7e2)](_0x1e5130??undefined):![];break;case _0x372510(0x851):_0x7c9df5=typeof _0x100383[_0x372510(0x851)]==='function'?_0x100383[_0x372510(0x851)]():undefined;break;case'tick':_0x7c9df5=typeof _0x100383[_0x372510(0x624)]==='function'?_0x100383[_0x372510(0x624)]():undefined;break;case _0x372510(0x5ad):return Number(_0x100383['count']());case _0x372510(0x786):return(typeof _0x100383[_0x372510(0x786)]==='function'?_0x100383[_0x372510(0x786)]():null)??{};default:throw new Error(_0x372510(0x330)+_0xa552d9);}if(_0x7c9df5&&typeof _0x7c9df5['then']===_0x372510(0x40e))_0x7c9df5=_0x2a08b5(_0x7c9df5);return _0x7c9df5===undefined?null:_0x7c9df5;}function _0x2541a0(_0x5e8373,_0x186082,_0x4364e4){const _0x116dd5=_0x3f13;if(_0x5e8373==='new'){const _0x2a6546=_0x2ffd1f(_0x186082);let _0x1abc9a=_0x2a6546(_0x4364e4);if(_0x1abc9a&&typeof _0x1abc9a[_0x116dd5(0x1df)]===_0x116dd5(0x40e))_0x1abc9a=_0x2a08b5(_0x1abc9a);if(!_0x1abc9a)return null;const _0x3e0fec=[_0x116dd5(0x465),'keys',_0x116dd5(0x616),_0x116dd5(0x5ad),_0x116dd5(0x869),'stats']['filter'](_0x1d6bb5=>typeof _0x1abc9a[_0x1d6bb5]==='function');return{'$id':_0x3122bb(_0x1abc9a),'has':_0x3e0fec};}const _0x1edb41=_0x1d8190[_0x116dd5(0x616)](_0x186082);if(_0x5e8373==='free')return _0x1d8190[_0x116dd5(0x727)](_0x186082),null;if(!_0x1edb41)throw new Error(_0x116dd5(0x85b));const _0x4b0817=_0x3d0153=>Float32Array[_0x116dd5(0x5f7)](_0x3d0153);let _0x59f339;switch(_0x5e8373){case _0x116dd5(0x7bc):_0x59f339=_0x1edb41[_0x116dd5(0x7bc)](_0x4364e4[0x0],_0x4b0817(_0x4364e4[0x1]));break;case'remove':_0x59f339=_0x1edb41[_0x116dd5(0x6a9)](_0x4364e4);break;case'getAll':{_0x59f339=typeof _0x1edb41[_0x116dd5(0x6ed)]===_0x116dd5(0x40e)?_0x1edb41[_0x116dd5(0x6ed)]():[];if(_0x59f339&&typeof _0x59f339['then']===_0x116dd5(0x40e))_0x59f339=_0x2a08b5(_0x59f339);return Array[_0x116dd5(0x5f7)](_0x59f339??[],_0x5e79f5=>({'key':_0x5e79f5[_0x116dd5(0x491)],'vector':Array[_0x116dd5(0x5f7)](_0x5e79f5[_0x116dd5(0x812)])}));}case _0x116dd5(0x465):_0x59f339=_0x1edb41[_0x116dd5(0x465)](_0x4364e4['puts'][_0x116dd5(0x6f2)](_0x497d60=>({'key':_0x497d60[_0x116dd5(0x491)],'vector':_0x4b0817(_0x497d60[_0x116dd5(0x812)])})),_0x4364e4[_0x116dd5(0x4e5)]);break;case _0x116dd5(0x23b):_0x59f339=_0x1edb41['keys'](_0x4364e4??undefined);if(_0x59f339&&typeof _0x59f339[_0x116dd5(0x1df)]===_0x116dd5(0x40e))_0x59f339=_0x2a08b5(_0x59f339);return Array['from'](_0x59f339??[]);case _0x116dd5(0x616):{_0x59f339=_0x1edb41[_0x116dd5(0x616)](_0x4364e4);if(_0x59f339&&typeof _0x59f339[_0x116dd5(0x1df)]==='function')_0x59f339=_0x2a08b5(_0x59f339);return _0x59f339==null?null:Array[_0x116dd5(0x5f7)](_0x59f339);}case _0x116dd5(0x5ad):return Number(_0x1edb41[_0x116dd5(0x5ad)]());case _0x116dd5(0x869):_0x59f339=_0x1edb41[_0x116dd5(0x869)]();break;case _0x116dd5(0x5fc):return _0x1edb41['stats']()??null;default:throw new Error(_0x116dd5(0x65a)+_0x5e8373);}if(_0x59f339&&typeof _0x59f339[_0x116dd5(0x1df)]===_0x116dd5(0x40e))_0x59f339=_0x2a08b5(_0x59f339);return _0x59f339===undefined?null:_0x59f339;}const _0x22b3b9=new Map();function _0x46b73a(_0x4e2dff,_0x5ee16c,_0x39c3af,_0x17183d){const _0x15e790=_0x3f13,_0x576a7a=_0x4e2dff+'\x00'+_0x39c3af+'\x00'+JSON[_0x15e790(0x4e6)](_0x17183d),_0xbe3160=_0x22b3b9[_0x15e790(0x616)](_0x576a7a);if(_0xbe3160){if(_0xbe3160['state']===_0x15e790(0x4ef))throw _0x191aa8();_0x22b3b9[_0x15e790(0x727)](_0x576a7a);if(_0xbe3160[_0x15e790(0x823)]===_0x15e790(0x5e2))throw _0xbe3160[_0x15e790(0x7fd)];return _0xbe3160['value'];}const _0x524aef=_0x5ee16c[_0x39c3af](_0x17183d);if(!_0x524aef||typeof _0x524aef[_0x15e790(0x1df)]!==_0x15e790(0x40e))return _0x524aef;const _0x21f418={'state':_0x15e790(0x4ef),'value':undefined};_0x524aef[_0x15e790(0x1df)](_0x2aeedf=>{const _0x4bf47c=_0x15e790;_0x21f418[_0x4bf47c(0x823)]='ok',_0x21f418[_0x4bf47c(0x7fd)]=_0x2aeedf;if(_0x22b3b9[_0x4bf47c(0x616)](_0x576a7a)===_0x21f418)_0x5a2a6a(_0x5ee16c);},_0x1aa414=>{const _0x153dc8=_0x15e790;_0x21f418['state']=_0x153dc8(0x5e2),_0x21f418[_0x153dc8(0x7fd)]=_0x1aa414;if(_0x22b3b9[_0x153dc8(0x616)](_0x576a7a)===_0x21f418)_0x5a2a6a(_0x5ee16c);});for(let _0x4335c7=0x0;_0x4335c7<0x64&&_0x21f418[_0x15e790(0x823)]==='pending';_0x4335c7++)process[_0x15e790(0x500)]();if(_0x21f418[_0x15e790(0x823)]==='ok')return _0x21f418['value'];if(_0x21f418[_0x15e790(0x823)]===_0x15e790(0x5e2))throw _0x21f418[_0x15e790(0x7fd)];_0x22b3b9['set'](_0x576a7a,_0x21f418);throw _0x191aa8();}const _0x11b1b8=new Map(),_0x195bd4=0xa*0x3c*0x3e8;function _0x4dd85d(_0x3570c8,_0x353143,_0x3033fd){const _0xcdb189=_0x3f13,_0x126449=Array['isArray'](_0x3033fd)?_0x3033fd:Array['from'](_0x3033fd??[]);let _0x15b7c4=_0x11b1b8[_0xcdb189(0x616)](_0x3570c8);if(!_0x15b7c4)_0x11b1b8['set'](_0x3570c8,_0x15b7c4=new Map());const _0x32300f=Date[_0xcdb189(0x38b)]();for(const [_0x166be9,_0xc659ad]of _0x15b7c4)if(_0xc659ad['req'][_0xcdb189(0x823)]!==_0xcdb189(0x4ef)&&_0x32300f-_0xc659ad[_0xcdb189(0x42a)]['at']>_0x195bd4)_0x15b7c4[_0xcdb189(0x727)](_0x166be9);const _0x472776=_0x126449[_0xcdb189(0x6f2)](_0x3d5696=>JSON[_0xcdb189(0x4e6)](_0x3d5696));let _0x5314e8=![];const _0x434153=[],_0x259414=new Set();for(let _0x46480b=0x0;_0x46480b<_0x472776[_0xcdb189(0x479)];_0x46480b++){const _0x15ef58=_0x15b7c4[_0xcdb189(0x616)](_0x472776[_0x46480b]);if(!_0x15ef58)!_0x259414[_0xcdb189(0x4a8)](_0x472776[_0x46480b])&&(_0x259414['add'](_0x472776[_0x46480b]),_0x434153['push'](_0x46480b));else{if(_0x15ef58[_0xcdb189(0x42a)]['state']==='pending')_0x5314e8=!![];else{if(_0x15ef58[_0xcdb189(0x42a)][_0xcdb189(0x823)]===_0xcdb189(0x5e2)){const _0x38a787=_0x15ef58[_0xcdb189(0x42a)][_0xcdb189(0x7fd)];for(const [_0x36ae14,_0x4da8b0]of _0x15b7c4)if(_0x4da8b0['req']===_0x15ef58[_0xcdb189(0x42a)])_0x15b7c4['delete'](_0x36ae14);throw _0x38a787;}}}}if(_0x5314e8)throw _0x191aa8();if(_0x434153[_0xcdb189(0x479)]){const _0xf2a78d=_0x434153[_0xcdb189(0x6f2)](_0x28ed22=>_0x126449[_0x28ed22]),_0x1e91c3=_0x353143[_0xcdb189(0x3fa)](_0xf2a78d),_0x4320f8={'state':_0xcdb189(0x4ef),'value':undefined,'at':0x0},_0x49a091=(_0x4aef2d,_0x15f3c2)=>{const _0x58338c=_0xcdb189;_0x4320f8[_0x58338c(0x823)]=_0x4aef2d,_0x4320f8['value']=_0x15f3c2,_0x4320f8['at']=Date['now']();};if(!_0x1e91c3||typeof _0x1e91c3[_0xcdb189(0x1df)]!==_0xcdb189(0x40e))_0x49a091('ok',_0x1e91c3);else{let _0x4de418=!![];_0x1e91c3[_0xcdb189(0x1df)](_0x4773cd=>{_0x49a091('ok',_0x4773cd);if(!_0x4de418)_0x5a2a6a(_0x353143);},_0x4b0b63=>{const _0x1268c7=_0xcdb189;_0x49a091(_0x1268c7(0x5e2),_0x4b0b63);if(!_0x4de418)_0x5a2a6a(_0x353143);});for(let _0x28348b=0x0;_0x28348b<0x64&&_0x4320f8[_0xcdb189(0x823)]===_0xcdb189(0x4ef);_0x28348b++)process['_tickCallback']();_0x4de418=![];}for(let _0x18e759=0x0;_0x18e759<_0x434153[_0xcdb189(0x479)];_0x18e759++)_0x15b7c4[_0xcdb189(0x488)](_0x472776[_0x434153[_0x18e759]],{'req':_0x4320f8,'index':_0x18e759});if(_0x4320f8['state']==='err'){for(const _0x39d52b of _0x434153)_0x15b7c4[_0xcdb189(0x727)](_0x472776[_0x39d52b]);throw _0x4320f8[_0xcdb189(0x7fd)];}if(_0x4320f8[_0xcdb189(0x823)]===_0xcdb189(0x4ef))throw _0x191aa8();}const _0x525fee=_0x472776[_0xcdb189(0x6f2)](_0xb2ea82=>{const _0x67621e=_0xcdb189,_0x257df7=_0x15b7c4[_0x67621e(0x616)](_0xb2ea82),_0x3a5941=_0x257df7['req'][_0x67621e(0x7fd)];return _0x3a5941?_0x3a5941[_0x257df7[_0x67621e(0x880)]]:undefined;});for(const _0x3ea3e5 of _0x472776)_0x15b7c4[_0xcdb189(0x727)](_0x3ea3e5);if(!_0x15b7c4['size'])_0x11b1b8[_0xcdb189(0x727)](_0x3570c8);return _0x525fee;}function _0x191aa8(){const _0x25912b=_0x3f13;return Object[_0x25912b(0x257)](new Error(_0x25912b(0x216)),{'code':_0x25912b(0x688)});}function _0x5a2a6a(_0x4d9724){const _0x1ec667=_0x3f13;_0x3cbd84();try{const _0x429b5d=_0x4d9724[_0x1ec667(0x1e3)]||_0x347c1f;if(_0x429b5d&&_0x429b5d[_0x1ec667(0x232)])_0x429b5d[_0x1ec667(0x82b)](_0x1ec667(0x425),null,_0x1ec667(0x7bb),['embeddings:embed:settled',{}],!![]);}catch{}}function _0x237d55(_0x282272,_0x160803,_0x448020){const _0x5840dc=_0x3f13,_0x4c2fcd=_0x1d8190[_0x5840dc(0x616)](_0x282272);if(!_0x4c2fcd||typeof _0x4c2fcd[_0x160803]!==_0x5840dc(0x40e))return{'__absent':!![]};let _0xd07403=_0x4c2fcd[_0x160803](...Array['isArray'](_0x448020)?_0x448020:[]);if(_0xd07403&&typeof _0xd07403[_0x5840dc(0x1df)]==='function')_0xd07403=_0x2a08b5(_0xd07403);return{'value':_0xd07403===undefined?null:_0xd07403};}const _0x2e7f63=new Map();let _0x393673=0x1;const _0x46581c=new Map(),_0x3be77e=new Map();function _0x14861c(_0x4a7352,_0x470b1a=null){const _0x1db17b=_0x3f13,_0xef6c2a=_0x393673++;_0x2e7f63['set'](_0xef6c2a,_0x4a7352);if(_0x470b1a)_0x3be77e[_0x1db17b(0x488)](_0xef6c2a,_0x470b1a);return _0xef6c2a;}function _0x1f16aa(_0x4517a9){const _0x480e06=_0x3f13;for(const [_0x3a0d62,_0x1df77e]of _0x46581c)if(_0x1df77e&&_0x1df77e[_0x480e06(0x555)]===_0x4517a9)_0x46581c['delete'](_0x3a0d62);for(const [_0x55fe02,_0x574d23]of _0x398f5f)if(_0x574d23===_0x4517a9)_0x398f5f[_0x480e06(0x727)](_0x55fe02);for(const [_0x32c186,_0x2fb920]of _0x3be77e)_0x2fb920===_0x4517a9&&(_0x3be77e[_0x480e06(0x727)](_0x32c186),_0x2e7f63[_0x480e06(0x727)](_0x32c186));if(_0x347c1f===_0x4517a9)_0x347c1f=null;}function _0x12e9a2(_0xeaa40d,_0x44dd72){const _0x10f9f4=_0x3f13;_0x46581c[_0x10f9f4(0x488)](_0xeaa40d,_0x44dd72);}function _0x2a7f93(_0x1303fa){const _0x2cb65e=_0x3f13;if(_0x1303fa&&typeof _0x1303fa==='object'&&Object['keys'](_0x1303fa)['length']===0x1&&_0x1303fa[_0x2cb65e(0x55b)]!==undefined)return _0x2e7f63[_0x2cb65e(0x616)](_0x1303fa[_0x2cb65e(0x55b)]);return _0x1303fa;}function _0x2a08b5(_0x3bf0a1){const _0x505ed9=_0x3f13;let _0x4a780a=![],_0x15c7f2=![],_0x462f63;_0x3bf0a1[_0x505ed9(0x1df)](_0x276af3=>{_0x4a780a=!![],_0x462f63=_0x276af3;},_0x2b5dc7=>{_0x4a780a=!![],_0x15c7f2=!![],_0x462f63=_0x2b5dc7;});for(let _0x3d15d2=0x0;_0x3d15d2<0x2710&&!_0x4a780a;_0x3d15d2++)process['_tickCallback']();if(!_0x4a780a)return _0x3bf0a1[_0x505ed9(0x1df)](undefined,_0x5845cd=>{const _0x3c1d11=_0x505ed9;try{process[_0x3c1d11(0x307)](_0x3c1d11(0x183)+(_0x5845cd&&_0x5845cd[_0x3c1d11(0x806)]?_0x5845cd[_0x3c1d11(0x806)]:_0x5845cd));}catch{}}),undefined;if(_0x15c7f2)throw _0x462f63;return _0x462f63;}function _0x597d87(_0x2699d0,_0xee2b8a,_0x39e728){const _0x40cb67=_0x3f13,_0x1fdc2b=_0x2ffd1f(_0x2699d0),_0xf1e694=_0x46581c[_0x40cb67(0x616)](_0xee2b8a);try{const _0x281a7f=_0x1fdc2b(_0x39e728,{'okdb':_0xf1e694&&_0xf1e694[_0x40cb67(0x555)],'env':_0xf1e694});if(_0x281a7f&&typeof _0x281a7f['then']===_0x40cb67(0x40e))_0x2a08b5(_0x281a7f);}catch(_0x53df6c){if(_0x53df6c&&_0x53df6c[_0x40cb67(0x623)]===!![]&&_0x53df6c[_0x40cb67(0x431)]!==_0x40cb67(0x150)){const _0x183325=new Error(_0x53df6c[_0x40cb67(0x806)]);_0x183325[_0x40cb67(0x431)]='__HOLD__';throw _0x183325;}throw _0x53df6c;}}const _0x2a5590=new Map();function _0x4b93b3(_0x1abced,_0x13dafa,_0x28a6df,_0x4c17af,_0x9ef096,_0x475f92){const _0x196e86=_0x3f13,_0x3d0014=_0x2ffd1f(_0x1abced),_0xe72497=(_0x46581c[_0x196e86(0x616)](_0x475f92)||{})['okdb']||_0x347c1f,_0x56c4d4=new AbortController(),_0x2c0b25=(_0x118c42,..._0x170f47)=>_0xe72497['_call']('queue',_0x196e86(0x693),_0x118c42,_0x170f47,![]),_0x500e96={'okdb':_0xe72497,'env':_0x46581c[_0x196e86(0x616)](_0x475f92)||null,'job':_0x4c17af,'jobId':_0x9ef096,'signal':_0x56c4d4[_0x196e86(0x4ea)],'heartbeat':()=>_0x2c0b25(_0x196e86(0x198),_0x28a6df),'markProgress':_0x1495cf=>_0x2c0b25(_0x196e86(0x389),_0x28a6df,_0x1495cf),'log':(_0x431367,_0x421d3d)=>_0x2c0b25(_0x196e86(0x6c7),_0x28a6df,_0x431367,_0x421d3d)};_0x2a5590[_0x196e86(0x488)](_0x28a6df,{'ctrl':_0x56c4d4,'call':_0x2c0b25});const _0x15ab64=()=>{const _0x57dc79=_0x196e86;_0x2a5590[_0x57dc79(0x727)](_0x28a6df);try{_0x2c0b25(_0x57dc79(0x74c),_0x28a6df);}catch{}};let _0x546878;try{_0x546878=_0x3d0014(_0x13dafa,_0x500e96);}catch(_0x2251cc){_0x15ab64();throw _0x2251cc;}if(_0x546878&&typeof _0x546878[_0x196e86(0x1df)]===_0x196e86(0x40e)){const _0x499439=_0x13efcc(_0x546878);return _0x546878['then'](_0x15ab64,_0x15ab64),{'$token':_0x499439};}return _0x15ab64(),_0x546878;}function _0x34c9a0(){const _0x5c2def=_0x3f13;for(const [_0x2479bd,_0x29c2e7]of _0x2a5590){if(_0x29c2e7[_0x5c2def(0x5ab)][_0x5c2def(0x4ea)][_0x5c2def(0x88b)])continue;let _0x4ca9fd;try{_0x4ca9fd=_0x29c2e7[_0x5c2def(0x881)](_0x5c2def(0x6ae),_0x2479bd);}catch{continue;}if(_0x4ca9fd&&_0x4ca9fd[_0x5c2def(0x88b)]){const {OKDBError:_0x5f1085}=requireErrors();_0x29c2e7[_0x5c2def(0x5ab)][_0x5c2def(0x19f)](new _0x5f1085(_0x4ca9fd[_0x5c2def(0x806)],_0x4ca9fd[_0x5c2def(0x431)]));}}}let _0x347c1f=null;function _0x3dec7b(_0x34eb46){_0x347c1f=_0x34eb46;}function _0x474cbb(_0x803653,_0x400bb3,_0x47d863,_0x11785b,_0x5a2b63,_0x269cc3,_0x68bfb4){const _0x1e13bc=_0x3f13,_0x364539=_0x2ffd1f(_0x803653),_0x3ae605=_0x46581c[_0x1e13bc(0x616)](_0x47d863);try{const _0xa9c720=_0x400bb3?_0x364539(_0x5a2b63,_0x269cc3):_0x364539({'env':_0x3ae605,'okdb':_0x3ae605&&_0x3ae605[_0x1e13bc(0x555)],'payload':_0x2a7f93(_0x11785b)},_0x5a2b63,_0x269cc3);if(_0xa9c720&&typeof _0xa9c720[_0x1e13bc(0x1df)]===_0x1e13bc(0x40e)){if(_0x269cc3&&_0x269cc3[_0x1e13bc(0x75b)]==='inline')_0xa9c720[_0x1e13bc(0x1df)](undefined,()=>{});else{if(_0x68bfb4){const _0x4ec4ed=_0x306646(_0xa9c720);if(_0x4ec4ed===0x0)return null;return{'$token':_0x4ec4ed};}else _0x2a08b5(_0xa9c720);}}}catch(_0x5efdb2){if(_0x5efdb2&&_0x5efdb2[_0x1e13bc(0x623)]===!![]&&_0x5efdb2[_0x1e13bc(0x431)]!=='__HOLD__'){const _0x10d5fc=new Error(_0x5efdb2[_0x1e13bc(0x806)]);_0x10d5fc[_0x1e13bc(0x431)]=_0x1e13bc(0x150);throw _0x10d5fc;}throw _0x5efdb2;}return null;}function _0x306646(_0x503777){const _0x1a03b2=_0x3f13;let _0x178358=_0x1a03b2(0x4ef),_0x57cbd5;_0x503777[_0x1a03b2(0x1df)](_0x2c93ad=>{_0x178358='ok',_0x57cbd5=_0x2c93ad;},_0x5e9f0a=>{const _0x3767c3=_0x1a03b2;_0x178358=_0x3767c3(0x5e2),_0x57cbd5=_0x5e9f0a;});for(let _0x515e47=0x0;_0x515e47<0x64&&_0x178358===_0x1a03b2(0x4ef);_0x515e47++)process[_0x1a03b2(0x500)]();if(_0x178358==='ok')return 0x0;const _0x5c58a4=_0x3f1548++,_0x367a1e={'state':_0x178358,'value':_0x57cbd5};_0x242a1d[_0x1a03b2(0x488)](_0x5c58a4,_0x367a1e);if(_0x178358===_0x1a03b2(0x4ef))_0x503777[_0x1a03b2(0x1df)](_0x2b8612=>{const _0x520bd4=_0x1a03b2;_0x367a1e[_0x520bd4(0x823)]='ok',_0x367a1e[_0x520bd4(0x7fd)]=_0x2b8612,_0x3cbd84();},_0xc63ccd=>{const _0x54d995=_0x1a03b2;_0x367a1e[_0x54d995(0x823)]=_0x54d995(0x5e2),_0x367a1e[_0x54d995(0x7fd)]=_0xc63ccd,_0x3cbd84();});return _0x5c58a4;}function _0x43cff5(_0x5cafbc){const _0xb0c65b=_0x3f13;let _0x4c60d6=_0x33633a[_0xb0c65b(0x616)](_0x5cafbc);return _0x4c60d6===undefined&&(_0x4c60d6=_0x496132++,_0x33633a[_0xb0c65b(0x488)](_0x5cafbc,_0x4c60d6),_0x2aa5e6[_0xb0c65b(0x488)](_0x4c60d6,{'fn':_0x5cafbc,'refs':0x0})),_0x2aa5e6[_0xb0c65b(0x616)](_0x4c60d6)[_0xb0c65b(0x3d2)]++,_0x4c60d6;}function _0x14c471(_0x349c92){const _0x532c5e=_0x3f13,_0x4a9f72=_0x2aa5e6[_0x532c5e(0x616)](_0x349c92);if(!_0x4a9f72)return;--_0x4a9f72[_0x532c5e(0x3d2)]<=0x0&&(_0x2aa5e6[_0x532c5e(0x727)](_0x349c92),_0x33633a[_0x532c5e(0x727)](_0x4a9f72['fn']));}function _0x2ffd1f(_0x195eb8){const _0xf94800=_0x3f13,_0x4014e8=_0x2aa5e6[_0xf94800(0x616)](_0x195eb8);if(!_0x4014e8)throw new Error(_0xf94800(0x376)+_0x195eb8);return _0x4014e8['fn'];}function _0x13efcc(_0x4e12f5){const _0x113d82=_0x3f13;if(_0x4e12f5&&typeof _0x4e12f5[_0x113d82(0x1df)]===_0x113d82(0x40e)){const _0x4d0ce4=_0x3f1548++,_0x245367={'state':'pending','value':undefined};return _0x242a1d[_0x113d82(0x488)](_0x4d0ce4,_0x245367),_0x4e12f5['then'](_0x343355=>{const _0x1159c4=_0x113d82;_0x245367[_0x1159c4(0x823)]='ok',_0x245367[_0x1159c4(0x7fd)]=_0x343355,_0x3cbd84();},_0x3b864a=>{const _0x314eaf=_0x113d82;_0x245367[_0x314eaf(0x823)]=_0x314eaf(0x5e2),_0x245367['value']=_0x3b864a,_0x3cbd84();}),_0x4d0ce4;}return 0x0;}let _0x34d0d8=()=>{},_0x4ef51f=null;function _0x2374a8(_0x1287fb,_0xc05943=null){_0x34d0d8=_0x1287fb,_0x4ef51f=_0xc05943;}function _0xf90fed(_0xdf981f){return _0x4ef51f===_0xdf981f;}function _0x3cbd84(){_0x34d0d8();}function _0x23a59e(_0x3d8f24){const _0x243692=_0x3f13,_0x174f2c=_0x242a1d[_0x243692(0x616)](_0x3d8f24);if(!_0x174f2c)return{'state':_0x243692(0x5e2),'error':{'message':_0x243692(0x683)}};if(_0x174f2c[_0x243692(0x823)]===_0x243692(0x4ef))return{'state':_0x243692(0x4ef)};_0x242a1d['delete'](_0x3d8f24);if(_0x174f2c[_0x243692(0x823)]==='ok')return{'state':'ok','value':_0x174f2c[_0x243692(0x7fd)]};const _0x64581=_0x174f2c[_0x243692(0x7fd)];return{'state':_0x243692(0x5e2),'error':{'message':_0x64581&&_0x64581[_0x243692(0x806)]!=null?String(_0x64581[_0x243692(0x806)]):String(_0x64581),'stack':_0x64581&&_0x64581[_0x243692(0x5e8)],'code':_0x64581&&_0x64581[_0x243692(0x431)],'status':_0x64581&&typeof _0x64581[_0x243692(0x371)]==='number'?_0x64581[_0x243692(0x371)]:undefined,'hold':!!(_0x64581&&_0x64581['processorHold']===!![])}};}function _0xbcbce(_0x251789,_0x107535){const _0x3324be=_0x3f13;_0x2dcc9e[_0x3324be(0x488)](_0x251789,_0x107535);}function _0x15c836(_0x3a8773){const _0x2d4858=_0x3f13;_0x2dcc9e[_0x2d4858(0x727)](_0x3a8773);}let _0x2cfdad=0x0;function _0x564ce3(){return _0x2cfdad>0x0;}function _0x502a0b(){_0x2cfdad++;try{return _0x5378ae['apply'](undefined,arguments);}finally{_0x2cfdad--;}}function _0x5378ae(_0x508c18,_0x33c26d,_0x4d7c04,_0x343974,_0x667e38,_0x224957){const _0x566796=_0x3f13;switch(_0x508c18){case _0x566796(0x3db):return _0x43cff5(_0x33c26d);case _0x566796(0x5e4):return _0x14c471(_0x33c26d);case _0x566796(0x881):{const _0x94fb29=Array['prototype'][_0x566796(0x4e8)][_0x566796(0x881)](arguments,0x2),_0x3621e7=_0x2ffd1f(_0x33c26d)[_0x566796(0x2ec)](undefined,_0x94fb29);return _0x3621e7&&typeof _0x3621e7['then']===_0x566796(0x40e)?_0x2a08b5(_0x3621e7):_0x3621e7;}case _0x566796(0x24d):{const _0x37fb5d=Array[_0x566796(0x259)][_0x566796(0x4e8)][_0x566796(0x881)](arguments,0x2),_0x46eb5c=_0x2ffd1f(_0x33c26d)[_0x566796(0x2ec)](undefined,_0x37fb5d);if(_0x46eb5c&&typeof _0x46eb5c['then']===_0x566796(0x40e))return{'$token':_0x13efcc(_0x46eb5c)};return{'$value':_0x46eb5c===undefined?null:_0x46eb5c,'$undef':_0x46eb5c===undefined};}case _0x566796(0x68b):{const _0x3c1a9b=_0x2dcc9e[_0x566796(0x616)](_0x33c26d);if(_0x3c1a9b)_0x3c1a9b[_0x566796(0x1ab)](_0x4d7c04,_0x343974);return undefined;}case _0x566796(0x629):{const _0x2b1614=_0x2dcc9e['get'](_0x33c26d);if(_0x2b1614)_0x2b1614[_0x566796(0x312)](_0x4d7c04);return undefined;}case _0x566796(0x54a):return _0x474cbb(_0x33c26d,_0x4d7c04,_0x343974,_0x667e38,_0x224957,arguments[0x6],arguments[0x7]);case _0x566796(0x549):return _0x597d87(_0x33c26d,_0x4d7c04,_0x343974);case _0x566796(0x7da):return _0x4b93b3(_0x33c26d,_0x4d7c04,_0x343974,_0x667e38,_0x224957,arguments[0x6]);case _0x566796(0x739):return _0x51cd4d[_0x566796(0x2ec)](null,Array[_0x566796(0x259)][_0x566796(0x4e8)][_0x566796(0x881)](arguments,0x1));case'api':return _0x237d55(_0x33c26d,_0x4d7c04,_0x343974);case _0x566796(0x816):return _0x23a59e(_0x33c26d);case _0x566796(0x742):{const _0x4dbcb5=((async()=>{const _0x3eab8e=_0x566796,_0x2068a5=await globalThis[_0x3eab8e(0x777)](_0x33c26d);if(!_0x2068a5['ok']){const _0x8a24cd=new Error(_0x3eab8e(0x18e)+_0x2068a5[_0x3eab8e(0x371)]);_0x8a24cd[_0x3eab8e(0x431)]=_0x3eab8e(0x76c);throw _0x8a24cd;}return _0x2068a5[_0x3eab8e(0x3c3)]();})());return _0x2a08b5(_0x4dbcb5)??null;}case'emb':return _0x19797b(_0x33c26d,_0x4d7c04,_0x343974);case'alg':return _0x1c70a7(_0x33c26d,_0x4d7c04,_0x343974);case _0x566796(0x35a):return _0x2541a0(_0x33c26d,_0x4d7c04,_0x343974);default:throw new Error(_0x566796(0x48f)+_0x508c18);}}return bridge_1={'inNativeCall':_0x564ce3,'regObject':_0x3122bb,'checkSignals':_0x34c9a0,'setCurrentDb':_0x3dec7b,'forgetDb':_0x1f16aa,'storePayload':_0x14861c,'registerEnv':_0x12e9a2,'resolvePayload':_0x2a7f93,'bridge':_0x502a0b,'reg':_0x43cff5,'unreg':_0x14c471,'fnOf':_0x2ffd1f,'track':_0x13efcc,'resolve':_0x23a59e,'registerTarget':_0xbcbce,'unregisterTarget':_0x15c836,'setKick':_0x2374a8,'kickOwnedBy':_0xf90fed},bridge_1;}var writebatch,hasRequiredWritebatch;function requireWritebatch(){const _0x1a1003=_0x1ade1a;if(hasRequiredWritebatch)return writebatch;hasRequiredWritebatch=0x1;const {reclass:_0x1d90d5}=requireErrors(),_0xeeca54=requireBridge(),_0x325b4f=new Map();let _0x2f6de9=null;function _0xe3b023(_0x2bec23){const _0x1cad52=_0x3f13;if(_0x2f6de9)return;_0x2f6de9=_0x2bec23,_0x2bec23[_0x1cad52(0x364)](_0x1512f3);}function _0x1512f3(){const _0x3ad93e=_0x3f13,_0x28db7e=_0x2f6de9[_0x3ad93e(0x768)]();for(const _0x174f4f of _0x28db7e){const _0x2aa0e3=_0x325b4f[_0x3ad93e(0x616)](_0x174f4f);_0x2aa0e3&&(_0x325b4f['delete'](_0x174f4f),_0x2aa0e3());}}function _0x359652(_0x50958c,_0x4cf5e7){const _0x59a9af=_0x3f13;_0x325b4f[_0x59a9af(0x488)](_0x50958c,_0x4cf5e7);}class _0x5b5a03{constructor(_0x3e4464){const _0x1cc3ab=_0x3f13;this['db']=_0x3e4464,this['queue']=[],this['scheduled']=![],this[_0x1cc3ab(0x362)]=![],this[_0x1cc3ab(0x4cf)]=new Set();}[_0x1a1003(0x281)](_0x1cead6,_0x3f8425,_0x5c1eed,_0x201404){const _0x412360=_0x1a1003;if(_0xeeca54[_0x412360(0x2d6)]())try{return Promise[_0x412360(0x816)](this['db'][_0x412360(0x82b)](_0x1cead6,_0x3f8425,_0x5c1eed,_0x201404));}catch(_0x54540a){return Promise[_0x412360(0x19a)](_0x54540a);}const _0x4130c6=new Promise((_0x1adf30,_0x15f9e3)=>{const _0x5b8f5b=_0x412360;this['queue'][_0x5b8f5b(0x2e6)]({'item':[_0x1cead6,_0x3f8425,_0x5c1eed,_0x201404],'resolve':_0x1adf30,'reject':_0x15f9e3});});this[_0x412360(0x4cf)][_0x412360(0x76e)](_0x4130c6);const _0x5170d9=()=>this[_0x412360(0x4cf)][_0x412360(0x727)](_0x4130c6);return _0x4130c6[_0x412360(0x1df)](_0x5170d9,_0x5170d9),!this[_0x412360(0x4f5)]&&(this['scheduled']=!![],setImmediate(()=>{const _0x5b2df1=_0x412360;this[_0x5b2df1(0x4f5)]=![],this[_0x5b2df1(0x346)]();})),_0x4130c6;}['commit'](){const _0x174097=_0x1a1003;if(!this[_0x174097(0x7b6)][_0x174097(0x479)])return;if(this[_0x174097(0x362)]){!this[_0x174097(0x4f5)]&&(this[_0x174097(0x4f5)]=!![],setImmediate(()=>{const _0x2163fd=_0x174097;this[_0x2163fd(0x4f5)]=![],this[_0x2163fd(0x346)]();}));return;}const _0x16b9f1=this[_0x174097(0x7b6)];this[_0x174097(0x7b6)]=[],this['_run'](_0x16b9f1);}[_0x1a1003(0x59e)](_0x570333){const _0x5f3ceb=_0x1a1003;let _0x58af40;this['inBatch']=!![];try{_0x58af40=this['db'][_0x5f3ceb(0x18f)][_0x5f3ceb(0x5d3)](_0x570333[_0x5f3ceb(0x6f2)](_0x73cdbc=>_0x73cdbc[_0x5f3ceb(0x51e)]));}catch(_0x4ad467){this[_0x5f3ceb(0x362)]=![];if(_0x570333[_0x5f3ceb(0x479)]>0x1){for(const _0x512468 of _0x570333)this[_0x5f3ceb(0x59e)]([_0x512468]);return;}const _0x2c71ac=_0x1d90d5(_0x4ad467);for(const _0x162a0f of _0x570333)_0x162a0f[_0x5f3ceb(0x19a)](_0x2c71ac);return;}finally{this[_0x5f3ceb(0x362)]=![];}try{this['db'][_0x5f3ceb(0x755)][_0x5f3ceb(0x270)]();}catch{}const [_0x109dd1,_0x5296ee]=_0x58af40;_0x359652(_0x5296ee,()=>{const _0xa73499=_0x5f3ceb;for(let _0x4e05fb=0x0;_0x4e05fb<_0x570333['length'];_0x4e05fb++){const _0x3aea7a=_0x109dd1[_0x4e05fb];if(_0x3aea7a&&_0x3aea7a[0x0])_0x570333[_0x4e05fb]['resolve'](_0x3aea7a[0x1]);else _0x570333[_0x4e05fb][_0xa73499(0x19a)](_0x1d90d5(_0x3aea7a?_0x3aea7a[0x1]:new Error(_0xa73499(0x5c9))));}});}async[_0x1a1003(0x303)](){const _0x39798c=_0x1a1003;this[_0x39798c(0x346)]();while(this[_0x39798c(0x4cf)][_0x39798c(0x1d3)]){await Promise[_0x39798c(0x82e)]([...this[_0x39798c(0x4cf)]]),this[_0x39798c(0x346)]();}let _0x4cb27d;try{_0x4cb27d=this['db'][_0x39798c(0x18f)][_0x39798c(0x865)]();}catch{return;}await new Promise(_0x205925=>_0x359652(_0x4cb27d,_0x205925));}}return writebatch={'install':_0xe3b023,'WriteBatch':_0x5b5a03,'whenSettled':_0x359652},writebatch;}var pump,hasRequiredPump;function requirePump(){const _0x533e3b=_0x1ade1a;if(hasRequiredPump)return pump;hasRequiredPump=0x1;const _0xf13299=Number(process.env.OKDB_NATIVE_IDLE_MS)||0xfa;class _0x27cd30{constructor(_0x364208){const _0x5e2311=_0x3f13;this['native']=_0x364208,this['timer']=null,this[_0x5e2311(0x4ab)]=null,this['running']=![],this[_0x5e2311(0x26b)]=![],this[_0x5e2311(0x796)]=![],this[_0x5e2311(0x1d1)]=![],this['turns']=0x0,this[_0x5e2311(0x3d5)]=[],this[_0x5e2311(0x793)]=[];}['nextTurn'](_0x519d52){return new Promise(_0xc7a45a=>{const _0x3e82a6=_0x3f13,_0x5452d0=setTimeout(_0x7cbb54,_0x519d52);function _0x7cbb54(){clearTimeout(_0x5452d0),_0xc7a45a();}this[_0x3e82a6(0x793)][_0x3e82a6(0x2e6)](_0x7cbb54);});}[_0x533e3b(0x297)](){const _0x519c5d=_0x533e3b;if(this[_0x519c5d(0x793)][_0x519c5d(0x479)]===0x0)return;const _0x1f6378=this[_0x519c5d(0x793)];this[_0x519c5d(0x793)]=[];for(const _0x2df313 of _0x1f6378)_0x2df313();}['start'](){const _0x2b8723=_0x533e3b;this[_0x2b8723(0x26b)]=![],this['wake']();}[_0x533e3b(0x851)](){const _0x21870a=_0x533e3b;this[_0x21870a(0x26b)]=!![];if(this[_0x21870a(0x855)])clearTimeout(this[_0x21870a(0x855)]);if(this[_0x21870a(0x4ab)])clearImmediate(this[_0x21870a(0x4ab)]);this[_0x21870a(0x855)]=this[_0x21870a(0x4ab)]=null,this[_0x21870a(0x297)]();}['wake'](){const _0x4d4522=_0x533e3b;if(this[_0x4d4522(0x26b)]||this[_0x4d4522(0x4ab)])return;this['timer']&&(clearTimeout(this[_0x4d4522(0x855)]),this[_0x4d4522(0x855)]=null),this['immediate']=setImmediate(()=>{const _0x381730=_0x4d4522;this['immediate']=null,this[_0x381730(0x5c8)]();});}['turn'](){const _0x32d241=_0x533e3b;if(this[_0x32d241(0x26b)]||this[_0x32d241(0x796)]){this['dirty']=!![];return;}this[_0x32d241(0x796)]=!![];let _0x25b872;try{this['turns']++,_0x25b872=this[_0x32d241(0x83c)][_0x32d241(0x167)]();if(this['afterTurn'])this[_0x32d241(0x22f)]();}catch(_0x4e012e){_0x25b872=_0xf13299,process['nextTick'](()=>{throw _0x4e012e;});}finally{this[_0x32d241(0x796)]=![],this[_0x32d241(0x297)]();}if(this['stopped']||_0x25b872===-0x2)return;if(this[_0x32d241(0x1d1)])return this[_0x32d241(0x1d1)]=![],this[_0x32d241(0x270)]();const _0x51b71f=_0x25b872<0x0?_0xf13299:Math[_0x32d241(0x3c5)](0x0,Math[_0x32d241(0x5b5)](_0x25b872,_0xf13299));if(_0x51b71f<=0x0)return this[_0x32d241(0x270)]();this['timer']=setTimeout(()=>{const _0x1116e4=_0x32d241;this[_0x1116e4(0x855)]=null,this[_0x1116e4(0x5c8)]();},Math[_0x32d241(0x475)](_0x51b71f));if(this['timer']['unref'])this[_0x32d241(0x855)]['unref']();}}return pump={'Pumper':_0x27cd30},pump;}var dist$1={},hasRequiredDist$1;function requireDist$1(){const _0x26e78a=_0x1ade1a;if(hasRequiredDist$1)return dist$1;hasRequiredDist$1=0x1;const _0x4a9c26=Symbol[_0x26e78a(0x28e)](_0x26e78a(0x703)),_0x300dd6={'value':null,'done':!![]},_0x7ed7be={'value':null,'done':!![]};!Symbol[_0x26e78a(0x269)]&&(Symbol[_0x26e78a(0x269)]=Symbol['for'](_0x26e78a(0x598)));const _0x12ca50={};class _0x3400d5{constructor(_0x57dbe3){const _0x281d71=_0x26e78a;_0x57dbe3&&(this['iterate']=_0x57dbe3[Symbol[_0x281d71(0x821)]][_0x281d71(0x2f4)](_0x57dbe3));}[_0x26e78a(0x6f2)](_0x2c74ba){const _0x204ce9=_0x26e78a;let _0x30474a=this,_0x1b8cfd=new _0x3400d5();return _0x1b8cfd[_0x204ce9(0x48b)]=(_0xb77084=_0x12ca50)=>{const _0x49c37a=_0x204ce9,{async:_0x35777c}=_0xb77084;let _0x188587=_0x30474a[_0x35777c?Symbol[_0x49c37a(0x269)]:Symbol[_0x49c37a(0x821)]](_0xb77084);if(!_0x35777c)_0x30474a[_0x49c37a(0x857)]=!![];let _0xe9973e=-0x1;return{'next'(_0x416966){const _0x5318b=_0x49c37a;let _0x30a5bb;do{let _0x243cc4;try{if(_0x416966)_0x243cc4=_0x416966,_0x416966=null;else{_0xe9973e++,_0x243cc4=_0x188587['next']();if(_0x243cc4[_0x5318b(0x1df)])return!_0x35777c&&this[_0x5318b(0x515)](new Error(_0x5318b(0x877))),_0x243cc4[_0x5318b(0x1df)](_0x645f49=>this['next'](_0x645f49),_0x3f99e8=>{const _0x139b63=_0x5318b;return this[_0x139b63(0x515)](_0x3f99e8);});}if(_0x243cc4[_0x5318b(0x45e)]===!![]){this[_0x5318b(0x45e)]=!![];if(_0x1b8cfd[_0x5318b(0x87b)])_0x1b8cfd[_0x5318b(0x87b)]();return _0x243cc4;}try{_0x30a5bb=_0x2c74ba[_0x5318b(0x881)](_0x30474a,_0x243cc4[_0x5318b(0x7fd)],_0xe9973e);if(_0x30a5bb&&_0x30a5bb[_0x5318b(0x1df)]&&_0x35777c)return _0x30a5bb[_0x5318b(0x1df)](_0x7d16e6=>_0x7d16e6===_0x4a9c26?this[_0x5318b(0x67f)]():{'value':_0x7d16e6},_0x45010b=>{const _0x55eccc=_0x5318b;if(_0xb77084[_0x55eccc(0x7c3)])_0x45010b['continueIteration']=!![];return this['throw'](_0x45010b);});}catch(_0x2f7700){if(_0xb77084[_0x5318b(0x7c3)])_0x2f7700[_0x5318b(0x7dd)]=!![];throw _0x2f7700;}}catch(_0x42e054){if(_0x1b8cfd['handleError'])try{_0x30a5bb=_0x1b8cfd[_0x5318b(0x163)](_0x42e054,_0xe9973e);}catch(_0x5d0eef){return this[_0x5318b(0x515)](_0x5d0eef);}else return this[_0x5318b(0x515)](_0x42e054);}}while(_0x30a5bb===_0x4a9c26);if(_0x30a5bb===_0x300dd6)return this[_0x5318b(0x5dc)]();return{'value':_0x30a5bb};},'return'(_0x3467c0){const _0x2cdeec=_0x49c37a;if(!this[_0x2cdeec(0x45e)]){_0x7ed7be[_0x2cdeec(0x7fd)]=_0x3467c0,this['done']=!![];if(_0x1b8cfd[_0x2cdeec(0x87b)])_0x1b8cfd[_0x2cdeec(0x87b)]();_0x188587[_0x2cdeec(0x5dc)]?.();}return _0x7ed7be;},'throw'(_0xb17a92){const _0x136e72=_0x49c37a;if(_0xb17a92[_0x136e72(0x7dd)]){if(_0x1b8cfd[_0x136e72(0x3c2)])try{return{'value':_0x1b8cfd[_0x136e72(0x3c2)](_0xb17a92)};}catch(_0x6cd12f){this[_0x136e72(0x5dc)]();throw _0x6cd12f;}if(_0xb77084[_0x136e72(0x7c3)])throw _0xb17a92;}this[_0x136e72(0x5dc)]();throw _0xb17a92;}};},_0x1b8cfd;}[Symbol[_0x26e78a(0x269)]](_0x7b0b84){const _0x193ef4=_0x26e78a;if(_0x7b0b84)_0x7b0b84={..._0x7b0b84,'async':!![]};else _0x7b0b84={'async':!![]};return this[_0x193ef4(0x821)]=this['iterate'](_0x7b0b84);}[Symbol['iterator']](_0x3a085d){const _0x1981cb=_0x26e78a;return this[_0x1981cb(0x821)]=this[_0x1981cb(0x48b)](_0x3a085d);}[_0x26e78a(0x658)](_0x16cd4c){const _0x334d97=_0x26e78a;let _0x292bf4=this[_0x334d97(0x6f2)](_0x25537c=>{const _0x3f12a5=_0x334d97;let _0xb2f75d=_0x16cd4c(_0x25537c);if(_0xb2f75d?.[_0x3f12a5(0x1df)])return _0xb2f75d['then'](_0x5790af=>_0x5790af?_0x25537c:_0x4a9c26);else return _0xb2f75d?_0x25537c:_0x4a9c26;}),_0x3cbc7e=_0x292bf4[_0x334d97(0x48b)];return _0x292bf4[_0x334d97(0x48b)]=(_0x368555=_0x12ca50)=>{const _0xca46eb=_0x334d97;if(_0x368555[_0xca46eb(0x7c3)])_0x368555={..._0x368555,'continueOnRecoverableError':![]};return _0x3cbc7e(_0x368555);},_0x292bf4;}[_0x26e78a(0x39f)](_0x3743e1){const _0x2df3bf=_0x26e78a;let _0x3d4ff2=this[_0x2df3bf(0x821)]=this[_0x2df3bf(0x48b)](),_0x32e7aa;while((_0x32e7aa=_0x3d4ff2[_0x2df3bf(0x67f)]())[_0x2df3bf(0x45e)]!==!![]){_0x3743e1(_0x32e7aa[_0x2df3bf(0x7fd)]);}}[_0x26e78a(0x45c)](_0x4d62ee){const _0xcc32c0=_0x26e78a;let _0x5bafa8=new _0x3400d5();return _0x5bafa8[_0xcc32c0(0x48b)]=(_0x5b19c9=_0x12ca50)=>{const _0x186a43=_0xcc32c0;let _0x2d7057=this[_0x186a43(0x821)]=this['iterate'](_0x5b19c9),_0x4d71c1=!![];function _0x1c9345(_0x20bb57){const _0x2eb2d5=_0x186a43;if(_0x4d71c1)try{_0x4d71c1=![],_0x2d7057=_0x4d62ee[_0x5b19c9[_0x2eb2d5(0x38a)]?Symbol[_0x2eb2d5(0x269)]:Symbol[_0x2eb2d5(0x821)]](),_0x20bb57=_0x2d7057['next']();if(_0x5bafa8[_0x2eb2d5(0x87b)]){if(_0x20bb57[_0x2eb2d5(0x1df)]){if(!_0x5b19c9['async'])throw new Error(_0x2eb2d5(0x877));_0x20bb57[_0x2eb2d5(0x1df)](_0x278b5e=>{const _0x165958=_0x2eb2d5;if(_0x278b5e[_0x165958(0x45e)]())_0x5bafa8[_0x165958(0x87b)]();},_0x2fb54d=>{const _0x4192ac=_0x2eb2d5;this[_0x4192ac(0x5dc)]();throw _0x2fb54d;});}else{if(_0x20bb57['done'])_0x5bafa8[_0x2eb2d5(0x87b)]();}}}catch(_0x54b7c4){this[_0x2eb2d5(0x515)](_0x54b7c4);}else{if(_0x5bafa8[_0x2eb2d5(0x87b)])_0x5bafa8[_0x2eb2d5(0x87b)]();}return _0x20bb57;}return{'next'(){const _0x27d25e=_0x186a43;try{let _0x5093b7=_0x2d7057[_0x27d25e(0x67f)]();if(_0x5093b7[_0x27d25e(0x1df)]){if(!_0x5b19c9['async'])throw new Error(_0x27d25e(0x877));return _0x5093b7[_0x27d25e(0x1df)](_0x291387=>{const _0x3a1a53=_0x27d25e;if(_0x291387[_0x3a1a53(0x45e)])return _0x1c9345(_0x291387);return _0x291387;});}if(_0x5093b7[_0x27d25e(0x45e)])return _0x1c9345(_0x5093b7);return _0x5093b7;}catch(_0x248950){this[_0x27d25e(0x515)](_0x248950);}},'return'(_0x216eb1){const _0x22186b=_0x186a43;if(!this[_0x22186b(0x45e)]){_0x7ed7be[_0x22186b(0x7fd)]=_0x216eb1,this[_0x22186b(0x45e)]=!![];if(_0x5bafa8[_0x22186b(0x87b)])_0x5bafa8[_0x22186b(0x87b)]();_0x2d7057['return']();}return _0x7ed7be;},'throw'(_0x25dc87){const _0x4ca374=_0x186a43;if(_0x5b19c9[_0x4ca374(0x7c3)])throw _0x25dc87;this[_0x4ca374(0x5dc)]();throw _0x25dc87;}};},_0x5bafa8;}[_0x26e78a(0x3f1)](_0x49c71e){const _0x49b21b=_0x26e78a;let _0x3a220e=new _0x3400d5();return _0x3a220e[_0x49b21b(0x48b)]=(_0x4ffe38=_0x12ca50)=>{const _0x2e51ef=_0x49b21b;let _0x5af8b3=this[_0x2e51ef(0x821)]=this[_0x2e51ef(0x48b)](_0x4ffe38),_0xb2cc25;return{'next'(_0x2b6a89){const _0x29ae6d=_0x2e51ef;try{do{if(_0xb2cc25){let _0x387e5c;if(_0x2b6a89)_0x387e5c=_0x2b6a89,_0x2b6a89=undefined;else _0x387e5c=_0xb2cc25[_0x29ae6d(0x67f)]();if(_0x387e5c[_0x29ae6d(0x1df)]){if(!_0x4ffe38[_0x29ae6d(0x38a)])throw new Error(_0x29ae6d(0x877));return _0x387e5c[_0x29ae6d(0x1df)](_0x36a66a=>this[_0x29ae6d(0x67f)](_0x36a66a));}if(!_0x387e5c[_0x29ae6d(0x45e)])return _0x387e5c;}let _0x25ae3f;if(_0x2b6a89!=undefined)_0x25ae3f=_0x2b6a89,_0x2b6a89=undefined;else _0x25ae3f=_0x5af8b3[_0x29ae6d(0x67f)]();if(_0x25ae3f[_0x29ae6d(0x1df)]){if(!_0x4ffe38[_0x29ae6d(0x38a)])throw new Error(_0x29ae6d(0x877));return _0xb2cc25=undefined,_0x25ae3f[_0x29ae6d(0x1df)](_0x10ead0=>this[_0x29ae6d(0x67f)](_0x10ead0));}if(_0x25ae3f[_0x29ae6d(0x45e)]){if(_0x3a220e[_0x29ae6d(0x87b)])_0x3a220e[_0x29ae6d(0x87b)]();return _0x25ae3f;}try{let _0x22f9ac=_0x49c71e(_0x25ae3f['value']);if(_0x22f9ac?.[_0x29ae6d(0x1df)]){if(!_0x4ffe38['async'])throw new Error('Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results');return _0x22f9ac[_0x29ae6d(0x1df)](_0x530e97=>{const _0x287e38=_0x29ae6d;return Array[_0x287e38(0x4b6)](_0x530e97)||_0x530e97 instanceof _0x3400d5?(_0xb2cc25=_0x530e97[Symbol[_0x287e38(0x821)]](),this[_0x287e38(0x67f)]()):(_0xb2cc25=null,{'value':_0x530e97});},_0x85c670=>{const _0x4ea66a=_0x29ae6d;if(_0x4ffe38['continueOnRecoverableError'])_0x85c670[_0x4ea66a(0x7dd)]=!![];this[_0x4ea66a(0x515)](_0x85c670);});}if(Array[_0x29ae6d(0x4b6)](_0x22f9ac)||_0x22f9ac instanceof _0x3400d5)_0xb2cc25=_0x22f9ac[Symbol[_0x29ae6d(0x821)]]();else return _0xb2cc25=null,{'value':_0x22f9ac};}catch(_0x2ad533){if(_0x4ffe38[_0x29ae6d(0x7c3)])_0x2ad533[_0x29ae6d(0x7dd)]=!![];throw _0x2ad533;}}while(!![]);}catch(_0x263286){this[_0x29ae6d(0x515)](_0x263286);}},'return'(){const _0x55a754=_0x2e51ef;if(_0x3a220e[_0x55a754(0x87b)])_0x3a220e[_0x55a754(0x87b)]();if(_0xb2cc25)_0xb2cc25[_0x55a754(0x5dc)]();return _0x5af8b3[_0x55a754(0x5dc)]();},'throw'(_0x3646cc){const _0x59ae8b=_0x2e51ef;if(_0x4ffe38[_0x59ae8b(0x7c3)])throw _0x3646cc;if(_0x3a220e[_0x59ae8b(0x87b)])_0x3a220e[_0x59ae8b(0x87b)]();if(_0xb2cc25)_0xb2cc25[_0x59ae8b(0x5dc)]();this[_0x59ae8b(0x5dc)]();throw _0x3646cc;}};},_0x3a220e;}[_0x26e78a(0x4e8)](_0x12a6ad,_0x42dc49){const _0x146148=_0x26e78a;let _0x2b9762=this[_0x146148(0x6f2)]((_0x588ef3,_0x2ed164)=>{const _0x4364d4=_0x146148;if(_0x2ed164<_0x12a6ad)return _0x4a9c26;if(_0x2ed164>=_0x42dc49)return _0x300dd6[_0x4364d4(0x7fd)]=_0x588ef3,_0x300dd6;return _0x588ef3;});return _0x2b9762[_0x146148(0x163)]=(_0x5056e5,_0x2bdd99)=>{if(_0x2bdd99<_0x12a6ad)return _0x4a9c26;if(_0x2bdd99>=_0x42dc49)return _0x300dd6;throw _0x5056e5;},_0x2b9762;}[_0x26e78a(0x3a4)](_0x57f6bd){const _0x28b50e=_0x26e78a;if(typeof _0x57f6bd!==_0x28b50e(0x40e))throw new TypeError('Expected\x20catch\x20callback\x20to\x20be\x20a\x20function');let _0x112f8f=this[_0x28b50e(0x6f2)](_0x1a59d7=>{return _0x1a59d7;}),_0x2e22be=_0x112f8f[_0x28b50e(0x48b)];return _0x112f8f[_0x28b50e(0x48b)]=(_0x47e359=_0x12ca50)=>{return _0x2e22be({..._0x47e359,'continueOnRecoverableError':!![]});},_0x112f8f['returnRecoverableErrors']=_0x57f6bd,_0x112f8f;}[_0x26e78a(0x67f)](){const _0x62a872=_0x26e78a;if(!this[_0x62a872(0x821)])this[_0x62a872(0x821)]=this[_0x62a872(0x48b)]();return this[_0x62a872(0x821)][_0x62a872(0x67f)]();}[_0x26e78a(0x644)](){const _0x2dda38=_0x26e78a;if(this[_0x2dda38(0x34f)]&&this['asArray'][_0x2dda38(0x39f)])return this[_0x2dda38(0x34f)];const _0x5e03ee=new Error(_0x2dda38(0x6fe));_0x5e03ee[_0x2dda38(0x6b6)]=this[_0x2dda38(0x34f)];throw _0x5e03ee;}get[_0x26e78a(0x34f)](){const _0x44bd3d=_0x26e78a;if(this['_asArray'])return this[_0x44bd3d(0x562)];let _0x3b8992=new Promise((_0x1940b1,_0x23b4bf)=>{const _0x541ba6=_0x44bd3d;let _0x4ecf83=this[_0x541ba6(0x48b)](!![]),_0x4ad8dc=[],_0x36e010=this;Object[_0x541ba6(0x882)](_0x4ad8dc,_0x541ba6(0x36a),{'value':_0x36e010});function _0x641bc2(_0x2a777a){const _0x37629b=_0x541ba6;while(_0x2a777a[_0x37629b(0x45e)]!==!![]){if(_0x2a777a[_0x37629b(0x1df)])return _0x2a777a[_0x37629b(0x1df)](_0x641bc2);else _0x4ad8dc[_0x37629b(0x2e6)](_0x2a777a[_0x37629b(0x7fd)]);_0x2a777a=_0x4ecf83['next']();}_0x1940b1(_0x36e010[_0x37629b(0x562)]=_0x4ad8dc);}_0x641bc2(_0x4ecf83[_0x541ba6(0x67f)]());});return _0x3b8992['iterable']=this,this['_asArray']||(this[_0x44bd3d(0x562)]=_0x3b8992);}[_0x26e78a(0x305)](){return this['asArray'];}['at'](_0x341b82){for(let _0x1adda3 of this){if(_0x341b82--===0x0)return _0x1adda3;}}}return _0x3400d5[_0x26e78a(0x259)][_0x26e78a(0x6c9)]=_0x300dd6,dist$1[_0x26e78a(0x14c)]=_0x3400d5,dist$1[_0x26e78a(0x564)]=_0x4a9c26,dist$1;}var iterable,hasRequiredIterable;function requireIterable(){const _0x9648e8=_0x1ade1a;if(hasRequiredIterable)return iterable;hasRequiredIterable=0x1;const {ExtendedIterable:_0x247cbb}=requireDist$1(),_0x4033cc=Number(process.env.OKDB_NATIVE_RANGE_CHUNK)||0x3e8,_0x13b591=Math[_0x9648e8(0x5b5)](_0x4033cc,Number(process.env.OKDB_NATIVE_ROW_CHUNK)||0x100),_0x5423f9=new Set(['getRange',_0x9648e8(0x1f0),_0x9648e8(0x3a1),'getChanges']),_0x1047c7=Math[_0x9648e8(0x5b5)](_0x13b591,Number(process.env.OKDB_NATIVE_RANGE_FIRST)||0x1),_0x5cea3f=0x4,_0x8634a4=(_0x131a4a,_0xac94a7=_0x4033cc)=>Math['min'](_0xac94a7,_0x131a4a*_0x5cea3f),_0x5dde11={'value':undefined,'done':!![]};function _0x1252c8(_0x458027){const _0x210b44=new _0x247cbb();return _0x210b44['iterate']=()=>{let _0x19a1fe=0x0;return{'next'(){const _0x11eec9=_0x3f13;return _0x19a1fe<_0x458027[_0x11eec9(0x479)]?{'value':_0x458027[_0x19a1fe++],'done':![]}:{'value':undefined,'done':!![]};},'return'(){return _0x19a1fe=_0x458027['length'],{'value':undefined,'done':!![]};},'throw'(){const _0x25f6a9=_0x3f13;return _0x19a1fe=_0x458027[_0x25f6a9(0x479)],{'value':undefined,'done':!![]};}};},_0x210b44;}const _0x16b521=_0x1e773a=>typeof _0x1e773a===_0x9648e8(0x729)&&!Number[_0x9648e8(0x41f)](_0x1e773a)?Math[_0x9648e8(0x3c5)](0x0,Math['ceil'](_0x1e773a)):Infinity,_0x12e089=_0x3bacb7=>typeof _0x3bacb7==='number'?Math[_0x9648e8(0x3c5)](0x0,Math['trunc'](_0x3bacb7))||0x0:0x0;function _0x206d1b(_0x9042fa,_0x4b00ab,_0x1d23b6,_0x159587={}){const _0x4a2a77=_0x9648e8,_0x382cc7=new _0x247cbb(),_0x17c6cf=(_0x159587[_0x4a2a77(0x181)]||_0x16b521)(_0x4b00ab[_0x4a2a77(0x5fd)]),_0x186828=_0x159587[_0x4a2a77(0x43a)]?_0x13b591:_0x4033cc,_0x5beee1=_0x159587['resumeOpts']||((_0x3cb613,_0x588378)=>{const _0x2aae80=_0x4a2a77;_0x3cb613[_0x2aae80(0x525)]=_0x588378,_0x3cb613[_0x2aae80(0x339)]=!![],delete _0x3cb613[_0x2aae80(0x746)];});let _0x3d9377=null;if(_0x159587[_0x4a2a77(0x5a9)]){const _0x4b1ed9={..._0x4b00ab,'limit':Math['min'](_0x1047c7,_0x17c6cf)};_0x3d9377={'rows':_0x9042fa(_0x4b1ed9),'limit':_0x4b1ed9[_0x4a2a77(0x5fd)]};const _0x52332a=_0x3d9377;queueMicrotask(()=>{const _0x1b3f7a=_0x4a2a77;_0x52332a[_0x1b3f7a(0x3d7)]=!![];});}return _0x382cc7[_0x4a2a77(0x48b)]=()=>{const _0x274e39=_0x4a2a77;let _0x3f1469=[],_0x222b18=0x0,_0x48c0a7=0x0,_0x2df89c,_0x2a35ea=![],_0x5c4110=![],_0x20e1ce=_0x1047c7;if(_0x3d9377&&!_0x3d9377[_0x274e39(0x3d7)]&&!_0x3d9377[_0x274e39(0x638)]){_0x3d9377['taken']=!![],_0x3f1469=_0x3d9377[_0x274e39(0x43a)],_0x2a35ea=!![],_0x20e1ce=_0x8634a4(_0x20e1ce,_0x186828);if(_0x3f1469[_0x274e39(0x479)]<_0x3d9377['limit'])_0x5c4110=!![];if(_0x3f1469[_0x274e39(0x479)])_0x2df89c=_0x1d23b6(_0x3f1469[_0x3f1469[_0x274e39(0x479)]-0x1]);}const _0x181ee7=()=>{const _0x36d68c=_0x274e39;if(_0x5c4110)return;const _0x437888=_0x17c6cf-_0x48c0a7;if(_0x437888<=0x0){_0x5c4110=!![],_0x3f1469=[];return;}const _0x1b3884={..._0x4b00ab,'limit':Math[_0x36d68c(0x5b5)](_0x20e1ce,_0x437888)};if(_0x2a35ea)_0x5beee1(_0x1b3884,_0x2df89c);_0x2a35ea=!![],_0x20e1ce=_0x8634a4(_0x20e1ce,_0x186828),_0x3f1469=_0x9042fa(_0x1b3884),_0x222b18=0x0;if(_0x3f1469['length']<_0x1b3884[_0x36d68c(0x5fd)])_0x5c4110=!![];if(_0x3f1469[_0x36d68c(0x479)])_0x2df89c=_0x1d23b6(_0x3f1469[_0x3f1469[_0x36d68c(0x479)]-0x1]);};return{'next'(){const _0x536bd4=_0x274e39;if(_0x222b18>=_0x3f1469[_0x536bd4(0x479)])_0x181ee7();if(_0x222b18>=_0x3f1469[_0x536bd4(0x479)])return{'value':undefined,'done':!![]};return _0x48c0a7++,{'value':_0x3f1469[_0x222b18++],'done':![]};},'return'(){return _0x5c4110=!![],_0x3f1469=[],{'value':undefined,'done':!![]};},'throw'(){return _0x5c4110=!![],_0x3f1469=[],{'value':undefined,'done':!![]};}};},_0x382cc7;}function _0x3be9ce(_0xcfa26f,_0x50f884,_0x2f96d4,_0x140e65,_0x24f36c={}){const _0x1f71e3=_0x9648e8,_0x3ed4cc=(_0x24f36c['limitOf']||_0x16b521)(_0x140e65&&_0x140e65[_0x1f71e3(0x5fd)]),_0x431d19=_0x5423f9[_0x1f71e3(0x4a8)](_0x50f884)?_0x13b591:_0x4033cc,_0x54fbdb=(_0x24f36c[_0x1f71e3(0x1f9)]||_0x12e089)(_0x140e65&&_0x140e65[_0x1f71e3(0x746)]),_0x5c6202=(_0x58aa55,_0xb728a9,_0x4ed18b)=>{const _0x57777d=_0x1f71e3,_0x322290=_0x3ed4cc-_0xb728a9,_0x2017f7=Math[_0x57777d(0x5b5)](_0x4ed18b,_0x322290),_0x16d4d2={'limit':_0x2017f7,'offset':_0x54fbdb+_0xb728a9},_0x5075d2=_0xcfa26f(_0x57777d(0x445),[_0x58aa55,_0x50f884,_0x2017f7===_0x322290?Infinity:_0x2017f7,..._0x2f96d4(_0x16d4d2)]);if(_0x5075d2[0x0]===-0x1){const _0x41aa41={'offset':_0x54fbdb+_0xb728a9};if(_0x322290!==Infinity)_0x41aa41[_0x57777d(0x5fd)]=_0x322290;return{'pin':0x0,'rows':_0xcfa26f(_0x50f884,_0x2f96d4(_0x41aa41)),'raw':Infinity,'eager':!![]};}return{'pin':_0x5075d2[0x0],'rows':_0x5075d2[0x1],'raw':_0x5075d2[0x2]};},_0x5b1843=_0x4d503b=>{const _0x2a79d1=_0x1f71e3;if(_0x4d503b)_0xcfa26f(_0x2a79d1(0x31c),[_0x4d503b]);};function _0xcd2d29(_0x367b87,_0x3b0726,_0x51726e){const _0x283ba4=_0x1f71e3;let _0x4e26d1=0x0,_0x55c232=[],_0x264231=0x0,_0x5baee7=_0x367b87,_0x5dcc42=_0x1047c7,_0x188262=_0x3ed4cc-_0x367b87<=0x0;if(_0x51726e)({buf:_0x55c232,pos:_0x264231,consumed:_0x5baee7,size:_0x5dcc42,exhausted:_0x188262}=_0x51726e);const _0x39a94b=_0x401ebb=>{const _0x176d09=_0x3f13;_0x4e26d1=_0x401ebb[_0x176d09(0x61e)],_0x55c232=_0x401ebb[_0x176d09(0x43a)],_0x264231=0x0,_0x5baee7+=_0x401ebb[_0x176d09(0x14d)],_0x5dcc42=_0x8634a4(_0x5dcc42,_0x431d19);if(!_0x4e26d1)_0x188262=!![];};if(_0x3b0726)_0x39a94b(_0x3b0726);const _0x267626=()=>{const _0x142c91=_0x4e26d1;_0x4e26d1=0x0,_0x5b1843(_0x142c91);},_0x51e2ef={'next'(){const _0x1a9bf7=_0x3f13;while(_0x264231>=_0x55c232[_0x1a9bf7(0x479)]){if(_0x188262||_0x3ed4cc-_0x5baee7<=0x0)return _0x188262=!![],_0x267626(),_0x5dde11;try{_0x39a94b(_0x5c6202(_0x4e26d1,_0x5baee7,_0x5dcc42));}catch(_0x4df834){_0x4e26d1=0x0,_0x188262=!![],_0x55c232=[];throw _0x4df834;}}return{'value':_0x55c232[_0x264231++],'done':![]};},'return'(){return _0x267626(),_0x5dde11;},'throw'(){return _0x267626(),_0x5dde11;},'resumed'(){return _0xcd2d29(0x0,null,{'buf':_0x55c232,'pos':_0x264231,'consumed':_0x5baee7,'size':_0x5dcc42,'exhausted':_0x188262});},[Symbol[_0x283ba4(0x821)]](){return this;}};return _0x51e2ef;}function _0x5d3a36(){if(_0x3ed4cc<=0x0)return null;const _0x4d312b=_0x5c6202(0x0,0x0,_0x1047c7);return queueMicrotask(()=>{const _0x40049c=_0x3f13;!_0x4d312b[_0x40049c(0x638)]&&(_0x4d312b['dropped']=!![],_0x5b1843(_0x4d312b[_0x40049c(0x61e)]));}),_0x4d312b;}return{'source':_0xcd2d29,'prefetch':_0x5d3a36};}function _0x3a5342(_0x3190d2){const _0xc209c8=_0x9648e8;if(!_0x3190d2||_0x3190d2[_0xc209c8(0x638)]||_0x3190d2[_0xc209c8(0x3d7)])return null;return _0x3190d2[_0xc209c8(0x638)]=!![],_0x3190d2;}return iterable={'fromArray':_0x1252c8,'chunkedRange':_0x206d1b,'pinnedChunks':_0x3be9ce,'claimPrefetch':_0x3a5342,'lmdbLimit':_0x16b521,'lmdbOffset':_0x12e089,'CHUNK':_0x4033cc,'ROW_CHUNK':_0x13b591,'FIRST':_0x1047c7},iterable;}var rawdb,hasRequiredRawdb;function requireRawdb(){const _0x3903cb=_0x1ade1a;if(hasRequiredRawdb)return rawdb;hasRequiredRawdb=0x1;const {fromArray:_0x57b1b0}=requireIterable();class _0x474df2{constructor(_0x49e693,_0x5319f5='',_0x58ed3c={},_0x161c95=null){const _0x2554d6=_0x3f13;this[_0x2554d6(0x6f4)]=_0x49e693,this['name']=_0x5319f5,this[_0x2554d6(0x3cf)]=!!(_0x58ed3c&&_0x58ed3c[_0x2554d6(0x3cf)]),this[_0x2554d6(0x7ce)]=!!(_0x58ed3c&&_0x58ed3c[_0x2554d6(0x7ce)]),this[_0x2554d6(0x143)]=_0x161c95||this,this['_buf']=null;}get['_dupArg'](){const _0x42cc8b=_0x3f13;return this[_0x42cc8b(0x3cf)]?!![]:this[_0x42cc8b(0x7ce)]?'v':![];}['_n'](_0x419019,_0x5361bb){const _0x71462c=_0x3f13;return this[_0x71462c(0x6f4)][_0x71462c(0x555)][_0x71462c(0x82b)](_0x71462c(0x14d),this[_0x71462c(0x6f4)][_0x71462c(0x885)],_0x419019,[this[_0x71462c(0x885)],this[_0x71462c(0x5e1)],..._0x5361bb],!![]);}[_0x3903cb(0x494)](_0x1a1635,_0x535dbf){const _0x35c906=_0x3903cb;return this[_0x35c906(0x6f4)][_0x35c906(0x555)][_0x35c906(0x82b)](_0x35c906(0x14d),this[_0x35c906(0x6f4)]['name'],_0x1a1635,[this[_0x35c906(0x885)],this[_0x35c906(0x5e1)],..._0x535dbf],![]);}[_0x3903cb(0x2da)](_0x50c4f8){const _0x13bebb=_0x3903cb,_0x3cef8c=this[_0x13bebb(0x6f4)][_0x13bebb(0x574)];if(_0x3cef8c)_0x3cef8c['push']({'sub':this['name'],'dup':this[_0x13bebb(0x5e1)],..._0x50c4f8});else this[_0x13bebb(0x6f4)][_0x13bebb(0x555)]['_call'](_0x13bebb(0x14d),this[_0x13bebb(0x6f4)][_0x13bebb(0x885)],'batch',[[{'sub':this[_0x13bebb(0x885)],'dup':this['_dupArg'],..._0x50c4f8}]],!![]);}[_0x3903cb(0x616)](_0x3fdb1f){const _0x2ca3e0=_0x3903cb;return this[_0x2ca3e0(0x494)](_0x2ca3e0(0x616),[_0x3fdb1f]);}[_0x3903cb(0x242)](_0x42b392){const _0x145047=_0x3903cb;if(this[_0x145047(0x7ce)])return this['_read'](_0x145047(0x242),[_0x42b392]);const _0x1e15d7=this['get'](_0x42b392);return _0x1e15d7===undefined?undefined:{'value':_0x1e15d7};}[_0x3903cb(0x7e9)](_0x5b40a0){const _0x26d24e=_0x3903cb;return this['_read'](_0x26d24e(0x5e7),[_0x5b40a0]);}['getBinary'](_0x1b1987){const _0x55b3ae=_0x3903cb;return this[_0x55b3ae(0x616)](_0x1b1987);}[_0x3903cb(0x805)](_0x4e55da={}){const _0x575f6e=_0x3903cb,_0x485114=this[_0x575f6e(0x494)]('getRange',[_0x4e55da]),_0x59e27f=_0x4e55da[_0x575f6e(0x3b9)]===![],_0x5905b9=_0x4e55da['keys']===![];return _0x57b1b0(_0x485114[_0x575f6e(0x6f2)](([_0x339c99,_0x25b3b8,_0x132112])=>{if(_0x59e27f)return _0x339c99;if(_0x5905b9)return _0x25b3b8;return _0x132112===undefined?{'key':_0x339c99,'value':_0x25b3b8}:{'key':_0x339c99,'value':_0x25b3b8,'version':_0x132112};}));}['getKeys'](_0x5c9945={}){const _0x6f98a8=_0x3903cb;return _0x57b1b0(this[_0x6f98a8(0x494)](_0x6f98a8(0x805),[_0x5c9945])['map'](([_0x40e49f])=>_0x40e49f));}[_0x3903cb(0x521)](_0x58108a,_0x1f0363={}){const _0x3d8e46=_0x3903cb,_0x7fe074=this[_0x3d8e46(0x494)](_0x3d8e46(0x805),[{..._0x1f0363,'start':_0x58108a,'end':_0x58108a,'inclusiveEnd':!![]}]);return _0x57b1b0(_0x7fe074[_0x3d8e46(0x6f2)](([,_0x33f7a9])=>_0x33f7a9));}[_0x3903cb(0x3b4)](_0x5e8f5d={}){return this['_read']('count',[_0x5e8f5d]);}['getStats'](){return{'entryCount':this['getCount']()};}[_0x3903cb(0x7bc)](_0xf26f90,_0x24d322,_0x1bc3fa){const _0x6b7958=_0x3903cb;return this['_write']({'op':'put','key':_0xf26f90,'value':_0x24d322,'version':_0x1bc3fa}),Promise[_0x6b7958(0x816)](!![]);}[_0x3903cb(0x3c7)](_0x5e182d,_0x209e99,_0x274cd8){return this['_write']({'op':'put','key':_0x5e182d,'value':_0x209e99,'version':_0x274cd8}),!![];}[_0x3903cb(0x6a9)](_0x43d455,_0x1234a4){const _0x5cf5f7=_0x3903cb;return this[_0x5cf5f7(0x2da)]({'op':_0x5cf5f7(0x6a9),'key':_0x43d455,'value':_0x1234a4}),Promise['resolve'](!![]);}['removeSync'](_0x5719e7,_0x4cad76){const _0x2c8463=_0x3903cb;return this[_0x2c8463(0x2da)]({'op':_0x2c8463(0x6a9),'key':_0x5719e7,'value':_0x4cad76}),!![];}[_0x3903cb(0x4d7)](){const _0x432a27=_0x3903cb;this[_0x432a27(0x2da)]({'op':_0x432a27(0x400)});}[_0x3903cb(0x3df)](){const _0x528727=_0x3903cb;return this['_write']({'op':_0x528727(0x400)}),Promise[_0x528727(0x816)]();}['drop'](){const _0x506a78=_0x3903cb;this[_0x506a78(0x4d7)]();}[_0x3903cb(0x55a)](_0x2e3544,_0x390fba={}){const _0x4fbb03=_0x3903cb,_0x399650=typeof _0x2e3544===_0x4fbb03(0x6f7)?_0x2e3544:_0x390fba,_0x1aa844=typeof _0x2e3544===_0x4fbb03(0x6f7)?_0x2e3544[_0x4fbb03(0x885)]:_0x2e3544,_0x519d3f=new _0x474df2(this[_0x4fbb03(0x6f4)],_0x1aa844,_0x399650);return _0x519d3f[_0x4fbb03(0x2da)]({'op':_0x4fbb03(0x4e2)}),_0x519d3f;}['close'](){}[_0x3903cb(0x6da)](_0xf0bb9f){const _0x5c7aaa=_0x3903cb;return this[_0x5c7aaa(0x604)](_0xf0bb9f);}async['transaction'](_0x54dcfd){return this['_tx'](_0x54dcfd);}['childTransaction'](_0x21f061){const _0xe4af1e=_0x3903cb;return this[_0xe4af1e(0x604)](_0x21f061);}[_0x3903cb(0x604)](_0x55427b){const _0x5145a0=_0x3903cb,_0x13a7dd=this[_0x5145a0(0x6f4)];if(_0x13a7dd[_0x5145a0(0x574)])return _0x55427b();_0x13a7dd['_rawTxnBuf']=[];let _0x5bdd21;try{_0x5bdd21=_0x55427b();}catch(_0x26bd1d){_0x13a7dd[_0x5145a0(0x574)]=null;throw _0x26bd1d;}const _0x5b8bc9=_0x13a7dd[_0x5145a0(0x574)];_0x13a7dd[_0x5145a0(0x574)]=null;if(_0x5b8bc9['length'])_0x13a7dd['okdb']['_call'](_0x5145a0(0x14d),_0x13a7dd[_0x5145a0(0x885)],_0x5145a0(0x480),[_0x5b8bc9],!![]);return _0x5bdd21;}[_0x3903cb(0x6cb)](){return{'done'(){}};}[_0x3903cb(0x268)](){}}return rawdb={'RawDb':_0x474df2},rawdb;}var views,hasRequiredViews;function requireViews(){const _0x41f25c=_0x1ade1a;if(hasRequiredViews)return views;hasRequiredViews=0x1;const {RawDb:_0x33a854}=requireRawdb();class _0x106c2b{constructor(_0x6d9a25){const _0x55d625=_0x3f13;this[_0x55d625(0x53c)]=_0x6d9a25,this['_n']=(_0x232c13,_0xb3c40d,_0x52bec7=!![])=>_0x6d9a25[_0x55d625(0x555)][_0x55d625(0x82b)](_0x55d625(0x4fd),_0x6d9a25[_0x55d625(0x885)],_0x232c13,_0xb3c40d,_0x52bec7);}get['_viewState'](){const _0x5d9e87=_0x3f13,_0x8734fd=this,_0x2ae091=this[_0x5d9e87(0x53c)],_0x849a5b=_0x320e92=>_0x320e92?new _0x33a854(_0x2ae091,_0x320e92[_0x5d9e87(0x885)],{'dupSort':_0x320e92[_0x5d9e87(0x4ad)]}):undefined,_0x36008c=_0x31c185=>{const _0x5e35dd=_0x5d9e87,_0x553952=_0x8734fd['_n'](_0x5e35dd(0x2b9),[_0x31c185],![]);if(!_0x553952)return undefined;const _0x48c670=_0x553952[_0x5e35dd(0x78b)],_0x4a57d9=new Map(Object['entries'](_0x48c670[_0x5e35dd(0x3d2)])),_0x3c3681=new Map(Object[_0x5e35dd(0x325)](_0x553952[_0x5e35dd(0x223)])[_0x5e35dd(0x6f2)](([_0xac292c,_0x562655])=>[_0xac292c,_0x849a5b(_0x562655)]));return{'name':_0x31c185,'compiled':{'T':_0x48c670['T'],'reducers':_0x48c670[_0x5e35dd(0x5b6)],'refs':_0x4a57d9,'granId':_0x48c670[_0x5e35dd(0x800)],'type':_0x48c670[_0x5e35dd(0x79c)],'_nidFor':_0x27e713=>_0x8734fd['_n'](_0x5e35dd(0x241),[_0x31c185,_0x27e713],![])},'viewDb':_0x849a5b(_0x553952[_0x5e35dd(0x378)][_0x5e35dd(0x2a5)]),'metaDb':_0x849a5b(_0x553952['dbs'][_0x5e35dd(0x6d2)]),'itemsDb':_0x849a5b(_0x553952['dbs'][_0x5e35dd(0x1f6)]),'bucketsDb':_0x849a5b(_0x553952['dbs'][_0x5e35dd(0x5db)]),'sortedDb':_0x849a5b(_0x553952['dbs'][_0x5e35dd(0x64b)]),'groupsDb':_0x849a5b(_0x553952[_0x5e35dd(0x378)][_0x5e35dd(0x569)]),'prevDb':_0x849a5b(_0x553952[_0x5e35dd(0x378)][_0x5e35dd(0x526)]),'refItemsDbs':_0x3c3681,'refTrackingDbs':new Map(Object[_0x5e35dd(0x325)](_0x553952[_0x5e35dd(0x7d0)]||{})[_0x5e35dd(0x6f2)](([_0x573c7d,_0x375f33])=>[_0x573c7d,_0x849a5b(_0x375f33)])),'stopFn':_0x553952[_0x5e35dd(0x320)]?async()=>_0x8734fd['_n'](_0x5e35dd(0x226),[_0x31c185]):null,'bootstrapWorker':null};};return{'get':_0x38be88=>_0x36008c(_0x38be88),'has':_0x45ef26=>_0x8734fd['_n'](_0x5d9e87(0x567),[],![])[_0x5d9e87(0x2bc)](_0x45ef26),'keys':()=>_0x8734fd['_n']('stateNames',[],![])[Symbol[_0x5d9e87(0x821)]](),get 'size'(){const _0x314f7a=_0x5d9e87;return _0x8734fd['_n'](_0x314f7a(0x567),[],![])[_0x314f7a(0x479)];},[Symbol[_0x5d9e87(0x821)]]:()=>_0x8734fd['_n'](_0x5d9e87(0x567),[],![])[_0x5d9e87(0x6f2)](_0x23543a=>[_0x23543a,_0x36008c(_0x23543a)])[Symbol[_0x5d9e87(0x821)]]()};}get[_0x41f25c(0x7a6)](){const _0x2726a4=_0x41f25c,_0x19d2f1=this;return{'has':_0x253a8a=>_0x19d2f1['_n'](_0x2726a4(0x478),[],![])[_0x2726a4(0x2bc)](_0x253a8a),get 'size'(){const _0x223bcf=_0x2726a4;return _0x19d2f1['_n']('customReducerNames',[],![])[_0x223bcf(0x479)];},'keys':()=>_0x19d2f1['_n'](_0x2726a4(0x478),[],![])[Symbol['iterator']]()};}async['bootSyncedViewsInline'](){return this['_n']('bootSyncedViewsInline',[]);}async[_0x41f25c(0x6c1)](_0x440425={}){const _0x366dc6=_0x41f25c;return this['_n'](_0x366dc6(0x6c1),[_0x440425]);}async[_0x41f25c(0x267)](_0x55f517,_0x37dd10){const _0x1d4d3f=_0x41f25c;return this['_n'](_0x1d4d3f(0x4e7),[_0x55f517,_0x37dd10]),await this[_0x1d4d3f(0x745)](_0x55f517),{'name':_0x55f517};}async[_0x41f25c(0x745)](_0x4bb379){const _0x4eae03=_0x41f25c,_0x4615a6=this[_0x4eae03(0x53c)][_0x4eae03(0x555)][_0x4eae03(0x755)];while(this['_n'](_0x4eae03(0x642),[_0x4bb379],![]))await _0x4615a6[_0x4eae03(0x690)](0xfa);this['_n'](_0x4eae03(0x708),[_0x4bb379],![]);}[_0x41f25c(0x616)](_0x1893c0,_0x1423dc={}){const _0x42458f=_0x41f25c,_0xec9879=this['_n']('get',[_0x1893c0,{'preview':_0x1423dc?.[_0x42458f(0x6fa)]??{}}],![]);if(_0xec9879==null)return null;const _0x4e0b87=this['_n'](_0x42458f(0x69c),[_0x1893c0],![]);if(!_0x4e0b87)return _0xec9879;const _0x11cd55=_0x5e4693=>(_0x2fca37={})=>this['_n'](_0x42458f(0x51f),[_0x1893c0,_0x5e4693,_0x2fca37],![]);if(_0x4e0b87['view']){_0xec9879[_0x42458f(0x51f)]=_0x11cd55({'kind':_0x42458f(0x4a6)});for(const _0x38835b of _0x4e0b87[_0x42458f(0x5b6)]){if(!_0x38835b['items'])continue;if(_0x38835b['grouped']){const _0x441925=_0xec9879[_0x38835b[_0x42458f(0x885)]];if(_0x441925?.[_0x42458f(0x6fa)]&&Array[_0x42458f(0x4b6)](_0x441925[_0x42458f(0x6fa)])){for(const _0x74dc8d of _0x441925[_0x42458f(0x6fa)])_0x74dc8d[_0x42458f(0x51f)]=_0x11cd55({'kind':'group','reducer':_0x38835b[_0x42458f(0x885)],'key':_0x74dc8d[_0x42458f(0x491)]});}}else _0xec9879[_0x38835b[_0x42458f(0x885)]]&&(_0xec9879[_0x38835b[_0x42458f(0x885)]][_0x42458f(0x51f)]=_0x11cd55({'kind':_0x42458f(0x856),'reducer':_0x38835b[_0x42458f(0x885)]}));}}for(const _0x5290d4 of _0x4e0b87['refs']){if(!_0x5290d4[_0x42458f(0x4a6)])continue;const _0x570de3=_0xec9879[_0x5290d4[_0x42458f(0x885)]];if(!_0x570de3||typeof _0x570de3!==_0x42458f(0x6f7))continue;_0x570de3[_0x42458f(0x51f)]=_0x11cd55({'kind':_0x42458f(0x4a6),'ref':_0x5290d4[_0x42458f(0x885)]});for(const _0x147ac7 of _0x5290d4[_0x42458f(0x5b6)]){if(!_0x147ac7[_0x42458f(0x51f)])continue;if(_0x147ac7[_0x42458f(0x462)]){const _0x53fa94=_0x570de3[_0x147ac7[_0x42458f(0x885)]];if(_0x53fa94?.[_0x42458f(0x6fa)]&&Array[_0x42458f(0x4b6)](_0x53fa94[_0x42458f(0x6fa)])){for(const _0x98861c of _0x53fa94[_0x42458f(0x6fa)])_0x98861c[_0x42458f(0x51f)]=_0x11cd55({'kind':_0x42458f(0x28a),'ref':_0x5290d4[_0x42458f(0x885)],'reducer':_0x147ac7[_0x42458f(0x885)],'key':_0x98861c[_0x42458f(0x491)]});}}else _0x570de3[_0x147ac7[_0x42458f(0x885)]]&&(_0x570de3[_0x147ac7[_0x42458f(0x885)]][_0x42458f(0x51f)]=_0x11cd55({'kind':'reducer','ref':_0x5290d4[_0x42458f(0x885)],'reducer':_0x147ac7[_0x42458f(0x885)]}));}}return _0xec9879;}[_0x41f25c(0x7f6)](_0x27e712){const _0x6a8dd6=_0x41f25c;return this['_n'](_0x6a8dd6(0x7f6),[_0x27e712],![]);}[_0x41f25c(0x64c)](_0x35f7ef,_0x5eb9a1={}){const _0x487477=_0x41f25c;return this['_n'](_0x487477(0x64c),[_0x35f7ef,_0x5eb9a1],![]);}[_0x41f25c(0x692)](_0x30601b,_0xa5f87b={}){const _0x543705=_0x41f25c;return this['_n'](_0x543705(0x692),[_0x30601b,_0xa5f87b],![]);}[_0x41f25c(0x46a)](_0x316617,_0x3c5fd3={}){return this['_n']('listBuckets',[_0x316617,_0x3c5fd3],![]);}async[_0x41f25c(0x3f8)](){const _0x2a9ce9=_0x41f25c;return this['_n'](_0x2a9ce9(0x3f8),[],![]);}async[_0x41f25c(0x762)](_0x3aff22){const _0x94ded0=_0x41f25c;return this['_n'](_0x94ded0(0x762),[_0x3aff22],![])??null;}async[_0x41f25c(0x6a9)](_0x24bc35,_0x2c9c7b={}){const _0x367b31=_0x41f25c;return this['_n'](_0x367b31(0x6a9),[_0x24bc35,_0x2c9c7b]);}async['stop'](_0x20600d){const _0x257c95=_0x41f25c;return this['_n'](_0x257c95(0x851),[_0x20600d]);}async[_0x41f25c(0x525)](_0x582c09){const _0x2b01bd=_0x41f25c;this['_n'](_0x2b01bd(0x317),[_0x582c09]),await this[_0x2b01bd(0x745)](_0x582c09);}async[_0x41f25c(0x429)](_0x5f28bc){this['_n']('rebuildBegin',[_0x5f28bc]),await this['_awaitBuild'](_0x5f28bc);}async[_0x41f25c(0x363)](_0x198f67){const _0x44091e=_0x41f25c;this['_n'](_0x44091e(0x4a2),[_0x198f67]),await this[_0x44091e(0x745)](_0x198f67);}[_0x41f25c(0x7a1)](_0x3c47c4,_0x4f3ab2={}){const _0x980afd=_0x41f25c;return this['_n'](_0x980afd(0x7a1),[_0x3c47c4,{'apply':_0x4f3ab2&&_0x4f3ab2['apply']}]);}}return views={'OKDBViews':_0x106c2b},views;}var queue,hasRequiredQueue;function requireQueue(){const _0x3379dd=_0x1ade1a;if(hasRequiredQueue)return queue;hasRequiredQueue=0x1;const {OKDBError:_0x4c2e1a}=requireErrors(),_0x2820a3=requireBridge();class _0x170df2{constructor(_0x1fdbee){const _0x579035=_0x3f13;this[_0x579035(0x53c)]=_0x1fdbee,this['okdb']=_0x1fdbee[_0x579035(0x555)],this['log']=_0x1fdbee[_0x579035(0x555)][_0x579035(0x629)][_0x579035(0x782)]({'feature':_0x579035(0x7b6)}),this[_0x579035(0x40a)]=new Set();}['_n'](_0x158416,_0x30bae5,_0x1ea6ea=!![]){const _0x23244f=_0x3f13;return this[_0x23244f(0x555)][_0x23244f(0x82b)](_0x23244f(0x7b6),this['env'][_0x23244f(0x885)],_0x158416,_0x30bae5,_0x1ea6ea);}['_w'](_0x37a64c,_0xc610f9){const _0x1e6c5d=_0x3f13;return this['okdb'][_0x1e6c5d(0x51a)](this['_n'](_0x37a64c,_0xc610f9));}async['_ensure'](){const _0x4131b9=_0x3f13;return this['_n'](_0x4131b9(0x4e2),[]);}async[_0x3379dd(0x3f8)](_0x1238de={}){const _0x5a1c69=_0x3379dd;return this['_n'](_0x5a1c69(0x3f8),[_0x1238de],![]);}get['_logsDb'](){const _0x1ed7e0=_0x3379dd,{RawDb:_0xf3beb8}=requireRawdb();return this[_0x1ed7e0(0x68d)]||(this[_0x1ed7e0(0x68d)]=new _0xf3beb8(this['env'],_0x1ed7e0(0x2ef)));}async[_0x3379dd(0x4d6)](){return this['_w']('sweepOrphanLogs',[]);}async[_0x3379dd(0x281)](_0x517d9c,_0x2ad28e,_0x15eb82={}){const _0x566626=_0x3379dd,{txn:_0x45172c,..._0x543892}=_0x15eb82||{};if(_0x45172c)return this[_0x566626(0x720)](_0x45172c,_0x517d9c,_0x2ad28e,_0x543892);const _0x5a0251=this[_0x566626(0x555)][_0x566626(0x630)];if(_0x5a0251&&_0x5a0251[_0x566626(0x7b6)][_0x566626(0x479)])_0x5a0251[_0x566626(0x346)]();const _0x282ece=this['_n']('enqueueClaim',[_0x517d9c,_0x2ad28e,_0x543892],![]);return this[_0x566626(0x555)]['_settleWrite'](_0x282ece['id'])[_0x566626(0x1df)](_0x564364=>{const _0x4f5b32=_0x566626;if(_0x282ece[_0x4f5b32(0x4be)])this[_0x4f5b32(0x165)](_0x517d9c);else try{this[_0x4f5b32(0x555)][_0x4f5b32(0x755)]['wake']();}catch{}return _0x564364;});}[_0x3379dd(0x165)](_0x3ae614){queueMicrotask(()=>{const _0x4ff66f=_0x3f13;try{this['_n'](_0x4ff66f(0x256),[_0x3ae614]);}catch{}});}['_enqueueInTxn'](_0x4517bc,_0xa1afe9,_0x15bfdb,_0x2ebc04){const _0x709dec=_0x3379dd,_0x5d81a8=_0x4517bc['raw']??_0x4517bc;if(_0x5d81a8[_0x709dec(0x3a3)])throw new _0x4c2e1a(_0x709dec(0x596),_0x709dec(0x1d8));if(_0x5d81a8['okdb']&&_0x5d81a8[_0x709dec(0x555)]!==this[_0x709dec(0x53c)]&&_0x5d81a8['okdb'][_0x709dec(0x885)]!==this[_0x709dec(0x53c)][_0x709dec(0x885)])throw new _0x4c2e1a(_0x709dec(0x1d4),_0x709dec(0x77e),{'txnEnv':_0x5d81a8[_0x709dec(0x555)][_0x709dec(0x885)],'queueEnv':this[_0x709dec(0x53c)][_0x709dec(0x885)]});const _0x1b0bd9=this['_n'](_0x709dec(0x3d9),[_0xa1afe9,_0x15bfdb,_0x2ebc04],![]);if(_0x1b0bd9['existing'])return _0x1b0bd9['id'];if(_0x1b0bd9[_0x709dec(0x718)])_0x4517bc[_0x709dec(0x601)](_0x709dec(0x1b9),_0x1b0bd9[_0x709dec(0x718)][_0x709dec(0x491)],_0x1b0bd9[_0x709dec(0x718)][_0x709dec(0x7fd)],{'ifVersion':_0x1b0bd9['release'][_0x709dec(0x2ce)]});if(_0x15bfdb!==undefined)_0x4517bc[_0x709dec(0x7bc)]('~queue_payloads',_0x1b0bd9['id'],_0x15bfdb);_0x4517bc[_0x709dec(0x7bc)](_0x709dec(0x1b9),_0x1b0bd9['id'],_0x1b0bd9['job']);if(typeof _0x5d81a8[_0x709dec(0x2d9)]==='function')_0x5d81a8[_0x709dec(0x2d9)](()=>{const _0x56bae6=_0x709dec;if(this['_n'](_0x56bae6(0x7c6),[_0x1b0bd9['id'],_0xa1afe9,_0x1b0bd9[_0x56bae6(0x2aa)],_0x1b0bd9[_0x56bae6(0x4d3)]]))this['_startClaimedSoon'](_0xa1afe9);});return _0x1b0bd9['id'];}async[_0x3379dd(0x2ca)](_0x1c4c22,_0x3c9488={}){const _0x108777=_0x3379dd;if(typeof _0x1c4c22!==_0x108777(0x4c1)||!_0x1c4c22)throw new _0x4c2e1a(_0x108777(0x3ea),_0x108777(0x229));return this['_w'](_0x108777(0x2ca),[_0x1c4c22,_0x3c9488]);}async['markJobHeartbeat'](_0x3102da,_0x535096,_0x1aa7a9=null){return this['_w']('markJobHeartbeat',[_0x3102da,_0x535096,_0x1aa7a9]);}async[_0x3379dd(0x227)](_0x57b032,_0x5bb21e,_0x1a38fb=null){const _0x1b9742=_0x3379dd;return this[_0x1b9742(0x19c)](_0x57b032,_0x5bb21e,_0x1a38fb);}async[_0x3379dd(0x587)](_0x4a01d2,_0x1e4201,_0x252889){const _0x1675c5=_0x3379dd;return this['_w'](_0x1675c5(0x587),[_0x4a01d2,_0x1e4201,_0x252889]);}async[_0x3379dd(0x5d5)](_0x8f06e5,_0x7a1e34,_0x12e4aa){const _0x279a8d=_0x3379dd;return this['_w'](_0x279a8d(0x5d5),[_0x8f06e5,_0x7a1e34,_0x12e4aa]);}async['completeJob'](_0x330007,_0x1cc212,_0x5d514b){const _0x4e8a4a=_0x3379dd;return this[_0x4e8a4a(0x5d5)](_0x330007,_0x1cc212,_0x5d514b);}async['markJobFail'](_0xbdc2b5,_0x2dcd15,_0x2bfd4d,_0x5e0d5f){const _0x3e0be8=_0x3379dd,_0x317cb9=_0x2bfd4d instanceof Error?{'message':_0x2bfd4d[_0x3e0be8(0x806)],'stack':_0x2bfd4d[_0x3e0be8(0x5e8)]}:_0x2bfd4d;return this['_w'](_0x3e0be8(0x209),[_0xbdc2b5,_0x2dcd15,_0x317cb9,_0x5e0d5f]);}async[_0x3379dd(0x678)](_0x37d335,_0x45cae3,_0x579d6b,_0x1e4767){const _0xb4806c=_0x3379dd;return this[_0xb4806c(0x209)](_0x37d335,_0x45cae3,_0x579d6b,_0x1e4767);}async[_0x3379dd(0x48a)](_0x24d15b,_0x6dc8c5,_0x198bea={}){return this['_w']('releaseClaim',[_0x24d15b,_0x6dc8c5,_0x198bea]);}async[_0x3379dd(0x1c8)](_0x37bdaf){const _0x31f55c=_0x3379dd;return this['_n'](_0x31f55c(0x1c8),[_0x37bdaf],![]);}async[_0x3379dd(0x6d5)](_0x876dfc,_0x479464={},_0xf7f305={}){const _0x47fbf9=_0x3379dd,_0x38ed38=_0xf7f305&&_0xf7f305['txn'];if(!_0x38ed38)return this['_w'](_0x47fbf9(0x6d5),[_0x876dfc,_0x479464]);const {next:_0x327a7b,version:_0x4cff5f}=this['_n'](_0x47fbf9(0x578),[_0x876dfc,_0x479464],![]);_0x38ed38[_0x47fbf9(0x601)](_0x47fbf9(0x1b9),_0x876dfc,_0x327a7b,{'ifVersion':_0x4cff5f});let _0x163a44;if(_0x47fbf9(0x2f3)in _0x479464){if(_0x479464[_0x47fbf9(0x2f3)]===undefined){if(this[_0x47fbf9(0x53c)][_0x47fbf9(0x242)](_0x47fbf9(0x358),_0x876dfc))_0x38ed38[_0x47fbf9(0x6a9)]('~queue_payloads',_0x876dfc);}else _0x38ed38['put'](_0x47fbf9(0x358),_0x876dfc,_0x479464[_0x47fbf9(0x2f3)]);_0x163a44=_0x479464[_0x47fbf9(0x2f3)];}else _0x163a44=this[_0x47fbf9(0x53c)][_0x47fbf9(0x616)](_0x47fbf9(0x358),_0x876dfc);return{..._0x327a7b,'payload':_0x163a44};}async[_0x3379dd(0x829)](_0x3d16b9,_0x232696={}){const _0x3ff2d8=_0x3379dd,_0x120d8f=_0x232696&&_0x232696[_0x3ff2d8(0x82f)];if(!_0x120d8f)return this['_w'](_0x3ff2d8(0x829),[_0x3d16b9]);if(!_0x3d16b9)throw new _0x4c2e1a(_0x3ff2d8(0x5c7),_0x3ff2d8(0x229));if(!this[_0x3ff2d8(0x53c)][_0x3ff2d8(0x242)](_0x3ff2d8(0x1b9),_0x3d16b9))return![];_0x120d8f['remove']('~queue_jobs',_0x3d16b9);if(this['env']['getEntry']('~queue_payloads',_0x3d16b9))_0x120d8f[_0x3ff2d8(0x6a9)]('~queue_payloads',_0x3d16b9);if(typeof _0x120d8f[_0x3ff2d8(0x2d9)]==='function')_0x120d8f[_0x3ff2d8(0x2d9)](()=>this['_n']('removeJobLogsAfterCommit',[_0x3d16b9]));return!![];}async['cancelJob'](_0xea2de6){const _0x551834=_0x3379dd;return this['_w'](_0x551834(0x6d1),[_0xea2de6]);}async[_0x3379dd(0x14a)](_0x93ae22){return this['_w']('retryJob',[_0x93ae22]);}async[_0x3379dd(0x72c)](_0x5429ed,_0x2c5fbc,_0x540427){const _0x4aebcf=_0x3379dd,_0x5be042=this['_n'](_0x4aebcf(0x80e),[_0x2c5fbc??null,_0x540427??0x0,_0x5429ed]),_0x5409c9=0x1f4;for(let _0x43a0c2=0x0;_0x43a0c2<_0x5be042[_0x4aebcf(0x479)];_0x43a0c2+=_0x5409c9){this['_n'](_0x4aebcf(0x775),[_0x5be042['slice'](_0x43a0c2,_0x43a0c2+_0x5409c9),_0x43a0c2,_0x5be042[_0x4aebcf(0x479)],_0x2c5fbc??null]);if(_0x43a0c2+_0x5409c9<_0x5be042[_0x4aebcf(0x479)])await new Promise(_0xceb23f=>setImmediate(_0xceb23f));}return this['_n'](_0x4aebcf(0x7cf),[_0x5be042[_0x4aebcf(0x479)],_0x2c5fbc??null]),await new Promise(_0x2346e9=>setImmediate(_0x2346e9)),_0x5be042[_0x4aebcf(0x479)];}async[_0x3379dd(0x2e3)](_0x4a62c7,_0x10a7a3){const _0x40e3af=_0x3379dd;return this[_0x40e3af(0x72c)](_0x40e3af(0x45e),_0x4a62c7,_0x10a7a3);}async[_0x3379dd(0x4af)](_0x91b5b8,_0x496c84){const _0x3c649a=_0x3379dd;return this[_0x3c649a(0x72c)](_0x3c649a(0x1dc),_0x91b5b8,_0x496c84);}async[_0x3379dd(0x430)](_0x3f3fa5,_0x2ceb46){return this['_w']('retryFailed',[_0x3f3fa5??null,_0x2ceb46??0x0]);}async[_0x3379dd(0x33d)](_0x5ae6dd,_0x18bc4b){return this['_w']('clearStuck',[_0x5ae6dd??null,_0x18bc4b??0x0]);}async['appendJobLog'](_0x54c199,_0x2e6856,_0x3432cf){return this['_w']('appendJobLog',[_0x54c199,_0x2e6856,_0x3432cf]);}async[_0x3379dd(0x7f5)](_0x4beded,_0x4e3e2d={}){const _0x577292=_0x3379dd;return this['_n'](_0x577292(0x7f5),[_0x4beded,_0x4e3e2d],![]);}async[_0x3379dd(0x5de)](_0x59e396,_0x2277b9={}){const _0x1b7b35=_0x3379dd,{txn:_0x5d4211,..._0x512894}=_0x2277b9||{};if(!_0x5d4211)return this['_w']('addBucket',[_0x59e396,_0x512894]);const _0x235cab=(_0x7eb3a3,_0x56c368,_0x546369,_0x233629)=>{const _0x50ec27=_0x3f13,_0x603542=Math[_0x50ec27(0x64f)](Number(_0x7eb3a3));return Number['isFinite'](_0x603542)?Math['min'](_0x233629,Math['max'](_0x546369,_0x603542)):_0x56c368;},_0x1cc9b1=typeof _0x59e396==='string'?_0x59e396[_0x1b7b35(0x4ee)]():'';if(!_0x1cc9b1)throw new Error('bucket\x20id\x20required');const _0xc68053=_0x235cab(_0x512894[_0x1b7b35(0x148)],0x0,0x0,0x3b9aca00);_0x5d4211['put'](_0x1b7b35(0x615),_0x1cc9b1,{'id':_0x1cc9b1,'tokens':_0x235cab(_0x512894[_0x1b7b35(0x319)],_0xc68053,0x0,_0xc68053),'capacity':_0xc68053,'refill_amount':_0x235cab(_0x512894[_0x1b7b35(0x80a)],0x0,0x0,0x3b9aca00),'refill_every':_0x235cab(_0x512894['refill_every'],0x0,0x0,0x16d*0x18*0x36ee80),'updated':Date[_0x1b7b35(0x38b)]()});}async[_0x3379dd(0x3ca)](_0xe5188a,_0x1a78a4){const _0x5901bc=_0x3379dd;return this['_w'](_0x5901bc(0x3ca),[_0xe5188a,_0x1a78a4]);}async[_0x3379dd(0x472)](_0x258184){return this['_w']('removeBucket',[_0x258184]);}[_0x3379dd(0x4b1)](_0x17fe14){const _0x239dbb=_0x3379dd,_0x2619e4=this['_n']('getBucket',[_0x17fe14],![]);return _0x2619e4===null&&typeof _0x17fe14===_0x239dbb(0x4c1)&&_0x17fe14[_0x239dbb(0x4ee)]()?undefined:_0x2619e4;}async['tryClaimTokens'](_0x343299,_0x107b2a){const _0x34d465=_0x3379dd;return this['_w'](_0x34d465(0x24e),[_0x343299,_0x107b2a]);}async['addJobType'](_0x72010,_0xc71873={}){const _0x37a86f=_0x3379dd;return this['_w'](_0x37a86f(0x329),[_0x72010,_0xc71873]);}async['getJobType'](_0x6e2a37){return this['_n']('getJobType',[_0x6e2a37],![]);}async[_0x3379dd(0x64d)](){const _0x337375=_0x3379dd;return this['_n'](_0x337375(0x64d),[],![]);}async[_0x3379dd(0x42f)](_0x15be4a){const _0x36998c=_0x3379dd;return this['_w'](_0x36998c(0x42f),[_0x15be4a]);}[_0x3379dd(0x4ca)](_0x393c55){const _0x23e352=_0x3379dd;return this['_n'](_0x23e352(0x4ca),[_0x393c55]);}[_0x3379dd(0x517)](_0x4d5c62){return this['_n']('resumeJobType',[_0x4d5c62]);}[_0x3379dd(0x4ff)](_0x56bfe7){const _0x4ace04=_0x3379dd;return this['_n'](_0x4ace04(0x4ff),[_0x56bfe7]);}async[_0x3379dd(0x6f0)](_0x2a4903,_0x21e79a,_0x4423d2=![]){const _0xc73bd9=_0x3379dd;return this['_w'](_0xc73bd9(0x6f0),[_0x2a4903,_0x21e79a,_0x4423d2]);}async[_0x3379dd(0x2f2)](_0x36edae){return this['_w']('removeJobTypeSchema',[_0x36edae]);}async['samplePayloads'](_0x44c895,_0x173a0f=0x5){return this['_n']('samplePayloads',[_0x44c895,_0x173a0f],![]);}async[_0x3379dd(0x29a)](_0x2aefa7){const _0x205b80=_0x3379dd;return this['_n'](_0x205b80(0x669),[_0x2aefa7]);}async[_0x3379dd(0x463)](_0x97566d=0x7530){const _0x423ba4=_0x3379dd;await Promise['allSettled']([...this[_0x423ba4(0x40a)]]['map'](_0x581e87=>_0x581e87[_0x423ba4(0x851)](_0x97566d)));const _0x35d185=this['_n'](_0x423ba4(0x463),[0x0]);return this['_workers']['clear'](),_0x35d185;}async[_0x3379dd(0x711)](){const _0x5a726a=_0x3379dd,_0x1c1190=this['_n'](_0x5a726a(0x711),[]);return this['_workers'][_0x5a726a(0x400)](),_0x1c1190;}[_0x3379dd(0x58a)](_0x4c3c69,_0x24627b,_0x73e91b){const _0x27203b=_0x3379dd;let _0x585254,_0x18c45f;if(Array[_0x27203b(0x4b6)](_0x4c3c69)){if(typeof _0x24627b==='function')throw new _0x4c2e1a(_0x27203b(0x67d),_0x27203b(0x229));_0x18c45f=_0x24627b??{};if(_0x18c45f[_0x27203b(0x43c)]!=null&&typeof _0x18c45f[_0x27203b(0x43c)]!=='function')throw new _0x4c2e1a('process\x20options.admission\x20must\x20be\x20a\x20function',_0x27203b(0x229));if(_0x4c3c69['length']===0x0)throw new _0x4c2e1a(_0x27203b(0x22d),_0x27203b(0x229));_0x585254=_0x4c3c69['map'](_0x57959=>{const _0x10698b=_0x27203b;if(!_0x57959||typeof _0x57959[_0x10698b(0x79c)]!==_0x10698b(0x4c1)||!_0x57959[_0x10698b(0x79c)])throw new _0x4c2e1a(_0x10698b(0x5aa),_0x10698b(0x229));if(typeof _0x57959[_0x10698b(0x54a)]!==_0x10698b(0x40e))throw new _0x4c2e1a(_0x10698b(0x71d)+_0x57959[_0x10698b(0x79c)]+'\x22\x20requires\x20a\x20`handler`\x20function',_0x10698b(0x229));return{..._0x57959};});}else{_0x18c45f=_0x73e91b??{};if(typeof _0x24627b!=='function')throw new _0x4c2e1a(_0x27203b(0x71d)+_0x4c3c69+_0x27203b(0x6e3),_0x27203b(0x229));_0x585254=[{'type':_0x4c3c69,'handler':_0x24627b,..._0x73e91b??{}}];}const _0x3b44bf=this[_0x27203b(0x555)];for(const _0x1ebfff of _0x585254){const _0x41c8cb=_0x1ebfff[_0x27203b(0x54a)];_0x1ebfff[_0x27203b(0x54a)]=function(..._0x1ae592){const _0x1e22a9=_0x27203b;return _0x3b44bf[_0x1e22a9(0x46b)]()['then'](()=>_0x41c8cb[_0x1e22a9(0x2ec)](this,_0x1ae592));};}const _0x1dfdf5=this['_n'](_0x27203b(0x58a),[_0x585254,_0x18c45f]),_0x3f5683=this,_0x1ba30b={'id':_0x1dfdf5['id'],'type':_0x1dfdf5[_0x27203b(0x79c)],get 'running'(){const _0x3f3b9d=_0x27203b;return _0x3f5683['_n'](_0x3f3b9d(0x7d6),[_0x1dfdf5['id']],![])[_0x3f3b9d(0x709)];},'isRunning'(){const _0x361322=_0x27203b;return _0x3f5683['_n']('workerState',[_0x1dfdf5['id']],![])[_0x361322(0x709)];},async 'stop'(_0x2c1c9a=0x7530){const _0x2c50fa=_0x27203b;_0x3f5683['_n'](_0x2c50fa(0x5fa),[_0x1dfdf5['id']]);const _0x49ffcc=Date[_0x2c50fa(0x38b)]()+_0x2c1c9a;while(_0x3f5683['_n'](_0x2c50fa(0x7d6),[_0x1dfdf5['id']],![])[_0x2c50fa(0x75c)]>0x0&&Date[_0x2c50fa(0x38b)]()<_0x49ffcc)await new Promise(_0xf15cb5=>setTimeout(_0xf15cb5,0x2));_0x3f5683['_n'](_0x2c50fa(0x495),[_0x1dfdf5['id']]),_0x2820a3[_0x2c50fa(0x20f)](),_0x3f5683[_0x2c50fa(0x40a)]['delete'](_0x1ba30b);},async 'kill'(){const _0x5153f1=_0x27203b;_0x3f5683['_n']('killWorker',[_0x1dfdf5['id']]),_0x3f5683['_workers'][_0x5153f1(0x727)](_0x1ba30b);}};return this[_0x27203b(0x40a)][_0x27203b(0x76e)](_0x1ba30b),_0x1ba30b;}['worker'](_0x31b412){const _0x23e907=_0x3379dd;throw new _0x4c2e1a(_0x23e907(0x853)+_0x31b412+_0x23e907(0x433)+_0x31b412+_0x23e907(0x609),_0x23e907(0x561));}[_0x3379dd(0x583)](_0x2b3ec6){const _0x55710c=_0x3379dd;return this[_0x55710c(0x309)](_0x2b3ec6);}}return queue={'OKDBQueue':_0x170df2},queue;}var timemachine,hasRequiredTimemachine;function requireTimemachine(){const _0x18c236=_0x1ade1a;if(hasRequiredTimemachine)return timemachine;hasRequiredTimemachine=0x1;const {fromArray:_0x2d1e54}=requireIterable();class _0x4110cf{constructor(_0xfbca31){const _0x1ade14=_0x3f13;this[_0x1ade14(0x53c)]=_0xfbca31,this[_0x1ade14(0x555)]=_0xfbca31['okdb'];const _0x2b1f37=(_0x4e927f,_0x43ded7)=>this['_n'](_0x4e927f,_0x43ded7,![]);this[_0x1ade14(0x874)]={'getDiffs':(_0x5746cc,_0x5af5e8,_0x475bac)=>_0x2b1f37('storeGetDiffs',[_0x5746cc,_0x5af5e8,_0x475bac||{}]),'hasDiff':(_0x258eab,_0x37deec,_0x519f27)=>_0x2b1f37(_0x1ade14(0x304),[_0x258eab,_0x37deec,_0x519f27]),'getHead':(_0x5d30da,_0x11470a)=>_0x2b1f37(_0x1ade14(0x5e3),[_0x5d30da,_0x11470a])??null,'getHeadCount':_0x4f3e01=>_0x2b1f37(_0x1ade14(0x16f),[_0x4f3e01]),'getTotalHeadCount':()=>_0x2b1f37(_0x1ade14(0x392),[]),'getDiffsInRange':(_0x1f84d2,_0x21f6dc,_0x143fc1)=>_0x2b1f37('storeGetDiffsInRange',[_0x1f84d2??null,_0x21f6dc,_0x143fc1]),'getConfig':()=>_0x2b1f37(_0x1ade14(0x7e4),[])??null,'getCursor':()=>this['_n'](_0x1ade14(0x3b8),[],![])??null,get 'db'(){const _0x4337c6=_0x1ade14;try{return _0x2b1f37(_0x4337c6(0x392),[]),{};}catch{return null;}}};}get[_0x18c236(0x628)](){const _0x5ebf45=_0x18c236,_0x46a48e=(this[_0x5ebf45(0x53c)][_0x5ebf45(0x548)]?.[_0x5ebf45(0x3f8)]?.()||[])['filter'](_0x1eeb24=>String(_0x1eeb24[_0x5ebf45(0x758)]||'')[_0x5ebf45(0x70d)]('time-machine:'))[_0x5ebf45(0x479)];return{'size':_0x46a48e};}['_n'](_0x289246,_0x197d31,_0x1b04aa=!![]){const _0x5d429c=_0x18c236;return this[_0x5d429c(0x555)][_0x5d429c(0x82b)]('tm',this[_0x5d429c(0x53c)][_0x5d429c(0x885)],_0x289246,_0x197d31,_0x1b04aa);}async[_0x18c236(0x716)](_0x3f3883){return this['_n']('enable',[_0x3f3883??null]);}async[_0x18c236(0x671)](_0x3a6eae){const _0x1ccb50=_0x18c236;return this['_n'](_0x1ccb50(0x671),[_0x3a6eae??null]);}async[_0x18c236(0x1e1)](){const _0x30eb1e=_0x18c236;return this['_n'](_0x30eb1e(0x1e1),[]);}async[_0x18c236(0x7aa)](){const _0x424c54=_0x18c236;return this['_n'](_0x424c54(0x7aa),[]);}async[_0x18c236(0x332)](_0x4201e4){const _0x249517=_0x18c236;return this['_n'](_0x249517(0x332),[_0x4201e4??null]);}async[_0x18c236(0x869)](){return this['_n']('dropAll',[]);}[_0x18c236(0x23d)](_0x506ba8){const _0x44412a=_0x18c236;return this['_n'](_0x44412a(0x23d),[_0x506ba8??null],![]);}[_0x18c236(0x3f8)](){const _0x2dc34f=_0x18c236;return this['_n'](_0x2dc34f(0x3f8),[],![]);}[_0x18c236(0x371)](_0x4faf2a){const _0x15c75e=_0x18c236;return this['_n'](_0x15c75e(0x371),[_0x4faf2a??null],![]);}[_0x18c236(0x859)](_0x526d15){const _0x436418=_0x18c236;if(!_0x526d15)return this['_n'](_0x436418(0x3b8),[],![]);return this['_n']('getCursor',[_0x526d15],![]);}[_0x18c236(0x3b8)](){return this['_n']('getLegacyCursor',[],![]);}[_0x18c236(0x275)](_0x2f1e93,_0x8c422e,_0x208a2c){const _0x35e48d=_0x18c236;return this['_n'](_0x35e48d(0x275),[_0x2f1e93,_0x8c422e,_0x208a2c],![]);}['getHistory'](_0x1667d8,_0x49de30,_0x4cb771){const _0x21effb=_0x18c236;return this['_n'](_0x21effb(0x3e0),[_0x1667d8,_0x49de30,_0x4cb771||{}],![]);}[_0x18c236(0x6fd)](_0x3dbfc5,_0x1996b5,_0x48c3e0){const _0x483ede=_0x18c236;return this['_n']('getChanges',[_0x3dbfc5??null,_0x1996b5,_0x48c3e0],![])[Symbol[_0x483ede(0x821)]]();}async[_0x18c236(0x5c4)](_0x487b37){const _0xc9859=_0x18c236;return this['_n'](_0xc9859(0x5c4),[_0x487b37??null]);}}return timemachine={'OKDBTimeMachine':_0x4110cf},timemachine;}function _0x3f13(_0x139502,_0x39f143){_0x139502=_0x139502-0x135;const _0x394df1=_0x394d();let _0x3f13f6=_0x394df1[_0x139502];return _0x3f13f6;}var files,hasRequiredFiles;function requireFiles(){const _0x34f8d2=_0x1ade1a;if(hasRequiredFiles)return files;hasRequiredFiles=0x1;const _0x203827=require$$0,{Readable:_0xba85ac}=require$$1,{OKDBError:_0x3f4c90,optionsArg:_0x499744,invalidArgument:_0x745187}=requireErrors(),{RawDb:_0x4cac06}=requireRawdb();async function _0x1a5133(_0x458c93){const _0x4a6b0a=_0x3f13;if(Buffer['isBuffer'](_0x458c93))return _0x458c93;if(_0x458c93 instanceof Uint8Array)return Buffer[_0x4a6b0a(0x5f7)](_0x458c93);if(typeof _0x458c93===_0x4a6b0a(0x4c1))return Buffer['from'](_0x458c93);const _0x2fb956=[];for await(const _0x178851 of _0x458c93)_0x2fb956[_0x4a6b0a(0x2e6)](Buffer['isBuffer'](_0x178851)?_0x178851:Buffer[_0x4a6b0a(0x5f7)](_0x178851));return Buffer[_0x4a6b0a(0x45c)](_0x2fb956);}class _0x4e77ca{constructor(_0x5c4aea){const _0x442d02=_0x3f13;this[_0x442d02(0x53c)]=_0x5c4aea,this[_0x442d02(0x555)]=_0x5c4aea[_0x442d02(0x555)];}['_n'](_0x35820a,_0x14fd3c,_0x2823fb=!![]){const _0x47e1b3=_0x3f13;return this[_0x47e1b3(0x555)][_0x47e1b3(0x82b)](_0x47e1b3(0x513),this[_0x47e1b3(0x53c)][_0x47e1b3(0x885)],_0x35820a,_0x14fd3c,_0x2823fb);}[_0x34f8d2(0x525)](){return!![];}['stop'](){}async[_0x34f8d2(0x222)](){const _0x593bba=_0x34f8d2;this['_n'](_0x593bba(0x4e2),[]);}async[_0x34f8d2(0x343)](_0x445e05,_0x1f247f){const _0x284b0a=_0x34f8d2;return this[_0x284b0a(0x555)][_0x284b0a(0x51a)](this['_n'](_0x284b0a(0x6f3),[_0x445e05,await _0x1a5133(_0x1f247f)]));}get[_0x34f8d2(0x1c3)](){const _0x4d8911=_0x34f8d2;return this['__blobStatusDb']||(this['__blobStatusDb']=new _0x4cac06(this[_0x4d8911(0x53c)],_0x4d8911(0x74b)));}async[_0x34f8d2(0x66c)](_0x2f5966){const _0x1b279f=_0x34f8d2;return this[_0x1b279f(0x1c3)][_0x1b279f(0x604)](_0x2f5966);}async['upload'](_0x51b298){const _0x309739=_0x34f8d2,{id:_0x251139,stream:_0x230f3d,mime:mime=_0x309739(0x137),path:_0x55f735='',txn:txn=null}=_0x499744(_0x51b298);if(!_0x251139)throw _0x745187(_0x309739(0x85f),_0x309739(0x497),_0x251139);if(!_0x230f3d)throw _0x745187(_0x309739(0x505),_0x309739(0x511),_0x230f3d);const _0x50fa76=await _0x1a5133(_0x230f3d);if(txn){const _0x1bf9a0=this['_n'](_0x309739(0x78f),[_0x251139,_0x50fa76,{'mime':mime,'path':_0x55f735}]);return txn[_0x309739(0x7bc)]('~files',_0x251139,_0x1bf9a0['record']),txn['onDo'](()=>this['_n'](_0x309739(0x172),[_0x1bf9a0[_0x309739(0x62b)]])),txn[_0x309739(0x721)](()=>this['_n'](_0x309739(0x4b4),[_0x1bf9a0[_0x309739(0x62b)]])),_0x1bf9a0[_0x309739(0x2ee)];}return this[_0x309739(0x555)]['_settleWrite'](this['_n'](_0x309739(0x85e),[_0x251139,_0x50fa76,{'mime':mime,'path':_0x55f735}]));}[_0x34f8d2(0x616)](_0x5a0b3c){return this['_n']('get',[_0x5a0b3c],![])??null;}['streamByHash'](_0x3d5985){const _0x545a83=_0x34f8d2,_0x3b202c=this[_0x545a83(0x2a7)](_0x3d5985);if(!_0x203827[_0x545a83(0x40f)](_0x3b202c))throw Object['assign'](new Error(_0x545a83(0x73f)+_0x3d5985),{'status':0x194});return this[_0x545a83(0x20e)](_0x3d5985);}[_0x34f8d2(0x20e)](_0x5134c6){const _0x9403cf=0x100*0x400,_0x42b791=this;let _0x112080=0x0;return new _0xba85ac({'highWaterMark':_0x9403cf,'read'(){const _0x1ea94b=_0x3f13;let _0x4216fa;try{const _0xbf3ae7=_0x42b791['_n']('readHashRange',[_0x5134c6,_0x112080,_0x9403cf],![]);_0x4216fa=Buffer[_0x1ea94b(0x47d)](_0xbf3ae7)?_0xbf3ae7:Buffer[_0x1ea94b(0x5f7)](_0xbf3ae7);}catch(_0x287b58){this['destroy'](_0x287b58);return;}_0x112080+=_0x4216fa[_0x1ea94b(0x479)];if(_0x4216fa['length'])this['push'](_0x4216fa);if(_0x4216fa[_0x1ea94b(0x479)]<_0x9403cf)this[_0x1ea94b(0x2e6)](null);}});}async[_0x34f8d2(0x37f)](_0x2f9c09){const _0x2b0e08=_0x34f8d2;return this['okdb']['_settleRead'](this['_n'](_0x2b0e08(0x37f),[_0x2f9c09],![]));}async[_0x34f8d2(0x265)](_0x78aa4e){const _0x14a226=_0x34f8d2,_0x431333=this[_0x14a226(0x616)](_0x78aa4e);if(!_0x431333)throw Object[_0x14a226(0x257)](new Error(_0x14a226(0x86f)+_0x78aa4e),{'status':0x194});const _0x4b52f8=this['_blobPath'](_0x431333[_0x14a226(0x1fe)]);if(!_0x203827[_0x14a226(0x40f)](_0x4b52f8))throw Object[_0x14a226(0x257)](new Error('Blob\x20missing\x20for\x20file:\x20'+_0x78aa4e),{'status':0x194});return{'stream':this[_0x14a226(0x20e)](_0x431333[_0x14a226(0x1fe)]),'record':_0x431333};}async['remove'](_0x4fe319,_0x27525e){const _0x381ef1=_0x34f8d2,{txn:txn=null}=_0x499744(_0x27525e);if(txn){const _0x1e4835=this['_n'](_0x381ef1(0x7e7),[_0x4fe319]);txn[_0x381ef1(0x6a9)](_0x381ef1(0x19d),_0x4fe319),txn[_0x381ef1(0x2d9)](()=>this['_n']('txnDone',[_0x1e4835[_0x381ef1(0x62b)]])),txn[_0x381ef1(0x721)](()=>this['_n'](_0x381ef1(0x4b4),[_0x1e4835[_0x381ef1(0x62b)]]));return;}return this[_0x381ef1(0x555)][_0x381ef1(0x51a)](this['_n'](_0x381ef1(0x6a9),[_0x4fe319]));}async[_0x34f8d2(0x530)](_0x304cb0,_0x544c32={}){const _0x129ade=_0x34f8d2;return this['_n'](_0x129ade(0x530),[_0x304cb0,_0x544c32],![]);}[_0x34f8d2(0x5fb)](_0x1b92ed){return this['_n']('getBlobStatus',[_0x1b92ed],![]);}[_0x34f8d2(0x40d)](){const _0x69f470=_0x34f8d2;return this['_n'](_0x69f470(0x40d),[],![]);}['gcOrphanedBlobs'](_0x522d2c){const _0x45cd38=_0x34f8d2,{minAgeMs:_0x474604}=_0x499744(_0x522d2c);return this['_n'](_0x45cd38(0x33b),[_0x474604??null]);}[_0x34f8d2(0x602)](_0x52d165,_0x4d5c3e){const _0xdf984f=_0x34f8d2;if(typeof _0x4d5c3e!==_0xdf984f(0x40e))throw new _0x3f4c90('files.registerExtractor:\x20extractor\x20must\x20be\x20a\x20function',_0xdf984f(0x229));const _0x4ba110=this['_n'](_0xdf984f(0x602),[_0x52d165,_0x4d5c3e]);return()=>this['_n'](_0xdf984f(0x185),[_0x4ba110]);}async[_0x34f8d2(0x2cb)](_0x24ddd6){const _0x3e0a77=_0x34f8d2;return _0x24ddd6=_0x499744(_0x24ddd6),this['_n'](_0x3e0a77(0x2cb),[_0x24ddd6]);}async[_0x34f8d2(0x51c)](_0x290469){const _0x3731d0=_0x34f8d2,{peerIds:_0x58c86d}=_0x499744(_0x290469);return this['_n'](_0x3731d0(0x51c),[_0x58c86d??null]);}[_0x34f8d2(0x2a7)](_0x59c84d){const _0x3d5116=_0x34f8d2;if(typeof _0x59c84d!==_0x3d5116(0x4c1))return require$$4['join'](this[_0x3d5116(0x653)],_0x59c84d['slice'](0x0,0x2),_0x59c84d['slice'](0x2));return this['_n']('blobPath',[_0x59c84d],![]);}get[_0x34f8d2(0x653)](){const _0x56c3e5=_0x34f8d2;return this['_n'](_0x56c3e5(0x861),[],![]);}}return files={'OKDBFiles':_0x4e77ca},files;}var engines,hasRequiredEngines;function requireEngines(){const _0x1f2be5=_0x1ade1a;if(hasRequiredEngines)return engines;hasRequiredEngines=0x1;const {OKDBError:_0x14667a}=requireErrors(),_0x14cbb3=requireBridge(),_0x3daa53=new Set([_0x1f2be5(0x6ff),_0x1f2be5(0x1e4),_0x1f2be5(0x205),_0x1f2be5(0x724)]),_0x2cbf15=new Set(['count',_0x1f2be5(0x786),_0x1f2be5(0x6df)]),_0x3aeb88=['validate','patchConfig',_0x1f2be5(0x1b6),'assertStartAllowed',_0x1f2be5(0x450),_0x1f2be5(0x851),_0x1f2be5(0x6e1)],_0xdfbef0={'embedder':new Set([_0x1f2be5(0x6df),'fingerprint'])},_0x5c81a7=new Set([_0x1f2be5(0x492),'processor','queue-worker']);class _0x4d6bfd{constructor(_0x3fde70,_0x51ea39,_0x27a6ee,_0x45753c){const _0x33e4cd=_0x1f2be5;this[_0x33e4cd(0x3e2)]=_0x3fde70,this['key']=_0x51ea39,this[_0x33e4cd(0x79c)]=_0x27a6ee,this[_0x33e4cd(0x885)]=_0x45753c,this['engineType']=_0x27a6ee;}[_0x1f2be5(0x7c0)](){const _0xdf52b1=_0x1f2be5;return this[_0xdf52b1(0x3e2)]['_n'](_0xdf52b1(0x786),[this[_0xdf52b1(0x79c)],this[_0xdf52b1(0x885)]],![]);}get[_0x1f2be5(0x49e)](){const _0x5dbd47=_0x1f2be5;return this[_0x5dbd47(0x7c0)]()['doc'];}get[_0x1f2be5(0x874)](){const _0x16d358=_0x1f2be5,_0x380cb6=this['_info']()[_0x16d358(0x888)];return _0x380cb6?this[_0x16d358(0x3e2)][_0x16d358(0x555)][_0x16d358(0x2b2)][_0x16d358(0x616)](_0x380cb6):undefined;}get[_0x1f2be5(0x509)](){const _0x3a3549=_0x1f2be5;return this[_0x3a3549(0x7c0)]()['docEntry'];}get[_0x1f2be5(0x25c)](){const _0x36b836=_0x1f2be5;return this[_0x36b836(0x7c0)]()[_0x36b836(0x25c)];}get['isRunning'](){return this['_info']()['isRunning'];}get[_0x1f2be5(0x371)](){const _0x1c51cf=_0x1f2be5;return this[_0x1c51cf(0x7c0)]()[_0x1c51cf(0x371)];}get[_0x1f2be5(0x471)](){const _0x3f7ff4=_0x1f2be5;return this[_0x3f7ff4(0x7c0)]()['reason'];}get['lastError'](){const _0x1897e8=_0x1f2be5,_0x16dd54=this[_0x1897e8(0x7c0)]()[_0x1897e8(0x415)];return _0x16dd54?Object[_0x1897e8(0x257)](new Error(_0x16dd54[_0x1897e8(0x806)]),{'code':_0x16dd54[_0x1897e8(0x431)]}):null;}get['runtimeState'](){const _0x3d7ce2=_0x1f2be5;return this[_0x3d7ce2(0x7c0)]()[_0x3d7ce2(0x854)];}get[_0x1f2be5(0x739)](){const _0x81f23b=_0x1f2be5;return this['_facade'][_0x81f23b(0x625)][_0x81f23b(0x616)](this[_0x81f23b(0x79c)])??null;}get[_0x1f2be5(0x4fc)](){const _0x54e043=_0x1f2be5;if(!this['_info']()[_0x54e043(0x405)])return null;const _0x20e341=this;return new Proxy({},{'get'(_0x2b3f41,_0x598ee1){const _0x19f408=_0x54e043;if(typeof _0x598ee1==='symbol'||_0x598ee1===_0x19f408(0x1df))return undefined;if(_0xdfbef0[_0x20e341[_0x19f408(0x79c)]]&&_0xdfbef0[_0x20e341[_0x19f408(0x79c)]]['has'](_0x598ee1))return _0x20e341[_0x19f408(0x3e2)]['_n'](_0x19f408(0x487),[_0x20e341[_0x19f408(0x79c)],_0x20e341[_0x19f408(0x885)],_0x598ee1,[]],![])[_0x19f408(0x7fd)];if(_0x20e341[_0x19f408(0x79c)]==='indexer'&&_0x598ee1===_0x19f408(0x5c4))return async(_0x212776={})=>{const _0x580063=_0x19f408,_0x2240ce=(_0x2a3bf3,..._0x42ddc4)=>_0x20e341[_0x580063(0x3e2)]['_n'](_0x580063(0x487),[_0x20e341[_0x580063(0x79c)],_0x20e341[_0x580063(0x885)],_0x2a3bf3,_0x42ddc4],!![])[_0x580063(0x7fd)],_0x2815b3=_0x2240ce('flushMaxWait',_0x212776??{}),_0x3ee9eb=Date[_0x580063(0x38b)]();for(;;){const _0x28150f=await _0x20e341[_0x580063(0x3e2)][_0x580063(0x555)][_0x580063(0x39b)](()=>_0x2240ce(_0x580063(0x140)));if(_0x28150f[_0x580063(0x84b)]>=_0x28150f[_0x580063(0x56f)])return;Date[_0x580063(0x38b)]()-_0x3ee9eb>=_0x2815b3&&_0x2240ce(_0x580063(0x2c7),_0x212776??{},_0x28150f),await new Promise(_0x387e4d=>setTimeout(_0x387e4d,0x3));}};return(..._0x49d6f1)=>{const _0x5d154c=_0x19f408,_0x18a989=()=>_0x20e341['_facade']['_n'](_0x5d154c(0x487),[_0x20e341['type'],_0x20e341[_0x5d154c(0x885)],_0x598ee1,_0x49d6f1],!![]),_0x48a8b0=_0x372e4e=>{const _0x15520e=_0x5d154c;if(_0x372e4e&&_0x372e4e['__absent'])throw new TypeError(_0x15520e(0x5f3)+_0x598ee1+'\x27');return _0x372e4e[_0x15520e(0x7fd)];};if(_0x3daa53['has'](_0x20e341[_0x5d154c(0x79c)])&&!_0x2cbf15[_0x5d154c(0x4a8)](_0x598ee1)){const _0x25051b=_0x20e341[_0x5d154c(0x3e2)][_0x5d154c(0x555)];return _0x25051b[_0x5d154c(0x6d8)](()=>_0x25051b[_0x5d154c(0x39b)](_0x18a989))[_0x5d154c(0x1df)](_0x48a8b0);}if(_0x5c81a7[_0x5d154c(0x4a8)](_0x20e341[_0x5d154c(0x79c)]))try{return Promise['resolve'](_0x48a8b0(_0x18a989()));}catch(_0x4224a3){return Promise['reject'](_0x4224a3);}return _0x48a8b0(_0x18a989());};}});}async[_0x1f2be5(0x6c8)](_0x45da36={}){const _0x4b7baf=_0x1f2be5;return await this[_0x4b7baf(0x3e2)][_0x4b7baf(0x47b)](_0x4b7baf(0x6c8),[this[_0x4b7baf(0x79c)],this[_0x4b7baf(0x885)],_0x45da36]),this;}async[_0x1f2be5(0x525)](){const _0x2b9689=_0x1f2be5;await this[_0x2b9689(0x3e2)]['_nm'](_0x2b9689(0x7bf),[this['type'],this[_0x2b9689(0x885)]]);}async[_0x1f2be5(0x851)](_0x4161fa={}){const _0x384e11=_0x1f2be5;await this['_facade'][_0x384e11(0x47b)](_0x384e11(0x1cc),[this[_0x384e11(0x79c)],this[_0x384e11(0x885)],_0x4161fa]);}async['patchDeclaration'](_0x13dee9={}){const _0x1cfd5e=_0x1f2be5;return await this[_0x1cfd5e(0x3e2)][_0x1cfd5e(0x47b)](_0x1cfd5e(0x730),[this['type'],this['name'],_0x13dee9]),this;}async[_0x1f2be5(0x6e1)](){const _0x4caa22=_0x1f2be5;await this[_0x4caa22(0x3e2)][_0x4caa22(0x47b)](_0x4caa22(0x63a),[this['type'],this[_0x4caa22(0x885)]]);}}class _0x55b5e0{constructor(_0x3c0ae4,_0x36affc=null,_0x308d4a=null){const _0x1a8a14=_0x1f2be5;this['okdb']=_0x3c0ae4,this['envName']=_0x36affc,this[_0x1a8a14(0x650)]=_0x36affc===null,this[_0x1a8a14(0x143)]=_0x308d4a||this,this[_0x1a8a14(0x625)]=this['_root']===this?_0xddf613(this):this[_0x1a8a14(0x143)][_0x1a8a14(0x625)],this[_0x1a8a14(0x340)]=new Map();}['_n'](_0x25d03d,_0x41b863,_0x50ce89=!![]){const _0x4644c3=_0x1f2be5;return this['okdb'][_0x4644c3(0x82b)]('engines',this['envName'],_0x25d03d,_0x41b863,_0x50ce89);}['_nm'](_0x29e451,_0x24e50f){const _0x10d75a=_0x1f2be5;return this[_0x10d75a(0x555)][_0x10d75a(0x421)](_0x10d75a(0x5a4),this[_0x10d75a(0x4f9)],_0x29e451,_0x24e50f,!![]);}get[_0x1f2be5(0x53c)](){const _0x10f0fb=_0x1f2be5;return this[_0x10f0fb(0x4f9)]?this[_0x10f0fb(0x555)][_0x10f0fb(0x53c)](this['envName']):null;}[_0x1f2be5(0x2ac)](_0x3afef0){const _0x1d42da=_0x1f2be5;if(!_0x3afef0)return null;let _0x57c97a=this['_handles'][_0x1d42da(0x616)](_0x3afef0[_0x1d42da(0x491)]);return!_0x57c97a&&(_0x57c97a=new _0x4d6bfd(this,_0x3afef0[_0x1d42da(0x491)],_0x3afef0[_0x1d42da(0x79c)],_0x3afef0[_0x1d42da(0x885)]),this[_0x1d42da(0x340)][_0x1d42da(0x488)](_0x3afef0[_0x1d42da(0x491)],_0x57c97a)),_0x57c97a;}[_0x1f2be5(0x496)](_0x4a00f4,_0x49aefd){const _0x4c6c6b=_0x1f2be5;if(!_0x4a00f4||typeof _0x4a00f4!==_0x4c6c6b(0x4c1))throw new _0x14667a(_0x4c6c6b(0x36f),_0x4c6c6b(0x366),{'type':_0x4a00f4});if(!_0x49aefd||typeof _0x49aefd!==_0x4c6c6b(0x6f7))throw new _0x14667a(_0x4c6c6b(0x345)+_0x4a00f4+_0x4c6c6b(0x1b3),_0x4c6c6b(0x40c),{'type':_0x4a00f4});if(typeof _0x49aefd[_0x4c6c6b(0x525)]!==_0x4c6c6b(0x40e))throw new _0x14667a(_0x4c6c6b(0x345)+_0x4a00f4+_0x4c6c6b(0x631),_0x4c6c6b(0x717),{'type':_0x4a00f4});const _0x1e3b5e=this[_0x4c6c6b(0x143)];if(_0x1e3b5e[_0x4c6c6b(0x625)]['has'](_0x4a00f4))throw new _0x14667a(_0x4c6c6b(0x684)+_0x4a00f4+'\x22',_0x4c6c6b(0x876),{'type':_0x4a00f4});const _0x31d7f3=_0x14cbb3[_0x4c6c6b(0x39c)](_0x49aefd,this[_0x4c6c6b(0x555)]),_0x2f92dc=_0x3aeb88['filter'](_0x209894=>typeof _0x49aefd[_0x209894]===_0x4c6c6b(0x40e)),_0x79412=_0x49aefd['docs']&&typeof _0x49aefd[_0x4c6c6b(0x5e9)]===_0x4c6c6b(0x6f7)?_0x49aefd[_0x4c6c6b(0x5e9)]:{};this[_0x4c6c6b(0x555)]['_call'](_0x4c6c6b(0x5a4),null,_0x4c6c6b(0x496),[_0x4a00f4,{'$id':_0x31d7f3,'has':_0x2f92dc,'docs':_0x79412}]),_0x1e3b5e['drivers']['_set'](_0x4a00f4,_0x49aefd);}get[_0x1f2be5(0x33e)](){const _0xc48533=_0x1f2be5;return this[_0xc48533(0x555)][_0xc48533(0x82b)](_0xc48533(0x5a4),null,'orchestratorStarted',[],![]);}get[_0x1f2be5(0x827)](){const _0x4bc436=this;return{get '_started'(){return _0x4bc436['_started'];}};}[_0x1f2be5(0x28c)](_0x4ecf28){const _0x2c8c3a=_0x1f2be5;if(!_0x4ecf28||typeof _0x4ecf28!=='object')throw new _0x14667a(_0x2c8c3a(0x566),_0x2c8c3a(0x4c4));if(!_0x4ecf28['id']||typeof _0x4ecf28['id']!==_0x2c8c3a(0x4c1))throw new _0x14667a('Engine\x20template\x20id\x20must\x20be\x20a\x20non-empty\x20string',_0x2c8c3a(0x4c4));if(!['engine',_0x2c8c3a(0x84e)][_0x2c8c3a(0x2bc)](_0x4ecf28['kind']))throw new _0x14667a(_0x2c8c3a(0x541)+_0x4ecf28['id'],'ENGINE_INVALID_TEMPLATE');if(typeof _0x4ecf28[_0x2c8c3a(0x13b)]!==_0x2c8c3a(0x40e))throw new _0x14667a(_0x2c8c3a(0x815)+_0x4ecf28['id'],'ENGINE_INVALID_TEMPLATE');const _0x300b2e=this[_0x2c8c3a(0x555)],_0x56f507=typeof _0x4ecf28['inputSchema']===_0x2c8c3a(0x40e);return this['_n'](_0x2c8c3a(0x28c),[{'id':_0x4ecf28['id'],'kind':_0x4ecf28['kind'],'family':_0x4ecf28[_0x2c8c3a(0x68f)]??null,'engineType':_0x4ecf28[_0x2c8c3a(0x81d)]??null,'pipelineFamily':_0x4ecf28[_0x2c8c3a(0x510)]??null,'recommended':_0x4ecf28[_0x2c8c3a(0x813)]===!![],'summary':_0x4ecf28['summary']??null,'description':_0x4ecf28[_0x2c8c3a(0x455)]??null,'inputSchema':_0x56f507?null:_0x4ecf28[_0x2c8c3a(0x306)]??null,'inputSchemaFn':_0x56f507?()=>_0x4ecf28[_0x2c8c3a(0x306)](_0x300b2e):null,'defaults':_0x4ecf28[_0x2c8c3a(0x6cc)]??null,'notes':Array[_0x2c8c3a(0x4b6)](_0x4ecf28[_0x2c8c3a(0x685)])?_0x4ecf28['notes']:[],'links':Array[_0x2c8c3a(0x4b6)](_0x4ecf28['links'])?_0x4ecf28[_0x2c8c3a(0x2c9)]:[],'build':(_0x42a112,_0x43bf77)=>_0x4ecf28[_0x2c8c3a(0x13b)](_0x42a112??{},{'okdb':_0x300b2e,'envName':_0x43bf77??null})}],![]);}['listTemplates'](_0x16577d){const _0x415152=_0x1f2be5;return this['_n'](_0x415152(0x646),[_0x16577d??null],![]);}[_0x1f2be5(0x61b)](_0x4d5fea){return this['_n']('getTemplate',[_0x4d5fea],![]);}[_0x1f2be5(0x2c6)](_0x113e74,_0x396e1b,_0x203a3e){return this['_n']('previewTemplate',[_0x113e74,_0x396e1b,_0x203a3e??this['envName']],![]);}[_0x1f2be5(0x86a)](){return this['_n']('catalog',[],![]);}async[_0x1f2be5(0x525)](){return this['_nm']('start',[]);}async['stop'](){const _0x37017c=_0x1f2be5;return this[_0x37017c(0x47b)]('stop',[]);}async[_0x1f2be5(0x359)](_0x1a7853,_0x109d7c,_0x6e634a={},_0x4ffa3b={},_0x19eebc={}){const _0x9dffc1=_0x1f2be5;return this[_0x9dffc1(0x2ac)](await this[_0x9dffc1(0x47b)]('createEngine',[_0x1a7853,_0x109d7c,_0x6e634a,_0x4ffa3b,_0x19eebc]));}async[_0x1f2be5(0x50b)](_0x16fde5,_0xd73f34,_0x42b071={},_0x46d0d7={},_0x3a7537={}){const _0x5b1d3b=_0x1f2be5;return this[_0x5b1d3b(0x2ac)](await this['_nm'](_0x5b1d3b(0x50b),[_0x16fde5,_0xd73f34,_0x42b071,_0x46d0d7,_0x3a7537]));}[_0x1f2be5(0x538)](_0x3125d0,_0xb6519f){const _0x35d432=_0x1f2be5;return this[_0x35d432(0x2ac)](this['_n'](_0x35d432(0x538),[_0x3125d0,_0xb6519f],![]));}[_0x1f2be5(0x273)](_0x4b83a9,_0x16ee32){const _0x5d8ef4=_0x1f2be5;return this[_0x5d8ef4(0x2ac)](this['_n'](_0x5d8ef4(0x273),[_0x4b83a9,_0x16ee32],![]));}[_0x1f2be5(0x3f8)](_0x2ce709){const _0xbe76b2=_0x1f2be5;return this['_n']('list',[_0x2ce709??null],![])[_0xbe76b2(0x6f2)](_0x53988a=>this['_wrap'](_0x53988a));}async[_0x1f2be5(0x579)](_0x16f969,_0x11f0cc){const _0x37f20f=_0x1f2be5;return this[_0x37f20f(0x2ac)](await this[_0x37f20f(0x47b)](_0x37f20f(0x579),[_0x16f969,_0x11f0cc]));}async[_0x1f2be5(0x30d)](_0x19697b,_0x365b0f){const _0x247475=_0x1f2be5;return this[_0x247475(0x340)][_0x247475(0x727)](_0x19697b+':'+_0x365b0f),this[_0x247475(0x47b)](_0x247475(0x30d),[_0x19697b,_0x365b0f]);}async['startNewEnginesFromSync'](_0x53bc24){const _0x30f9c1=_0x1f2be5;return this[_0x30f9c1(0x47b)](_0x30f9c1(0x2d5),[_0x53bc24]);}async['bootSyncedEngines'](){const _0x120253=_0x1f2be5;return this[_0x120253(0x47b)]('bootSyncedEngines',[]);}}function _0xddf613(_0x2668d4){const _0x52de42=_0x1f2be5,_0x7ceaf8=new Map();return{'has':_0x2809b2=>_0x7ceaf8['has'](_0x2809b2)||_0x2668d4[_0x52de42(0x555)][_0x52de42(0x82b)](_0x52de42(0x5a4),null,_0x52de42(0x754),[_0x2809b2],![]),'get':_0x23acdc=>_0x7ceaf8[_0x52de42(0x616)](_0x23acdc),'set':()=>{const _0x42f7f0=_0x52de42;throw new _0x14667a('use\x20engines.registerDriver()',_0x42f7f0(0x229));},'_set':(_0x32ebb1,_0x352e86)=>_0x7ceaf8['set'](_0x32ebb1,_0x352e86),'keys':()=>_0x7ceaf8[_0x52de42(0x23b)](),'entries':()=>_0x7ceaf8[_0x52de42(0x325)](),'values':()=>_0x7ceaf8[_0x52de42(0x3b9)](),get 'size'(){const _0x4fc046=_0x52de42;return _0x7ceaf8[_0x4fc046(0x1d3)];},[Symbol['iterator']]:()=>_0x7ceaf8[Symbol[_0x52de42(0x821)]]()};}class _0x1b5a37{constructor(_0x4febb9,_0x694f9b=null){const _0x49c1f7=_0x1f2be5;this['okdb']=_0x4febb9,this[_0x49c1f7(0x4f9)]=_0x694f9b;}['_n'](_0x3cb3ca,_0x46b908,_0x1c830c=!![]){const _0x42a715=_0x1f2be5;return this[_0x42a715(0x555)][_0x42a715(0x82b)](_0x42a715(0x35c),this[_0x42a715(0x4f9)],_0x3cb3ca,_0x46b908,_0x1c830c);}[_0x1f2be5(0x47b)](_0x3ef906,_0x4e51e8){const _0x32ede8=_0x1f2be5;return this[_0x32ede8(0x555)][_0x32ede8(0x421)](_0x32ede8(0x35c),this[_0x32ede8(0x4f9)],_0x3ef906,_0x4e51e8,!![]);}get[_0x1f2be5(0x5e5)](){const _0x532b23=_0x1f2be5;return this[_0x532b23(0x4f9)]===null;}async['ensure'](_0x21ae5c){const _0x5daa81=_0x1f2be5;return this['_n'](_0x5daa81(0x4e2),[_0x21ae5c]);}async[_0x1f2be5(0x616)](_0xb19df4,_0x2d7978){return this['_n']('get',[_0xb19df4,_0x2d7978??null],![]);}async[_0x1f2be5(0x47c)](_0x385da0,_0x42d347){const _0x437b1e=_0x1f2be5;return this['_n'](_0x437b1e(0x47c),[_0x385da0,_0x42d347??null],![]);}async[_0x1f2be5(0x3f8)](_0x9e87cc){return this['_n']('list',[_0x9e87cc??null],![]);}async[_0x1f2be5(0x3e8)](_0x4118dd={}){const _0x15aa60=_0x1f2be5;return this['_n'](_0x15aa60(0x3e8),[_0x4118dd?.[_0x15aa60(0x4f9)]??null],![]);}['validate'](_0x1fa48c,_0x24ce03){const _0xb73610=_0x1f2be5;return this['_n'](_0xb73610(0x260),[_0x1fa48c,_0x24ce03??null],![]);}async[_0x1f2be5(0x267)](_0x261703){const _0x35281e=_0x1f2be5;return this[_0x35281e(0x47b)]('create',[_0x261703]);}async[_0x1f2be5(0x601)](_0x55480a,_0x5cda1f){const _0x1bcfb5=_0x1f2be5;return this[_0x1bcfb5(0x47b)]('update',[_0x55480a,_0x5cda1f]);}async[_0x1f2be5(0x851)](_0x5aa99f){const _0xd258bb=_0x1f2be5;return this[_0xd258bb(0x47b)](_0xd258bb(0x851),[_0x5aa99f]);}async['_settled'](_0x2e3296){const _0x4f646f=_0x1f2be5;if(!_0x2e3296||typeof _0x2e3296!==_0x4f646f(0x6f7)||!_0x2e3296[_0x4f646f(0x885)]||!_0x2e3296[_0x4f646f(0x5a4)])return _0x2e3296;for(let _0x3bcf1c=0x0;_0x3bcf1c<0x3;_0x3bcf1c++)await new Promise(_0x5ae4d4=>setImmediate(_0x5ae4d4));try{const _0x129efe=this['envName']!==null?await this[_0x4f646f(0x616)](_0x2e3296[_0x4f646f(0x885)]):_0x2e3296[_0x4f646f(0x53c)]?await this[_0x4f646f(0x616)](_0x2e3296[_0x4f646f(0x53c)],_0x2e3296[_0x4f646f(0x885)]):null;return _0x129efe||_0x2e3296;}catch{return _0x2e3296;}}async[_0x1f2be5(0x525)](_0x273f81){return this['_settled'](await this['_nm']('start',[_0x273f81]));}async[_0x1f2be5(0x579)](_0x2bd938){const _0x191d40=_0x1f2be5;return this[_0x191d40(0x402)](await this[_0x191d40(0x47b)](_0x191d40(0x579),[_0x2bd938]));}async[_0x1f2be5(0x429)](_0x233d1c){const _0x5ddb82=_0x1f2be5;return this['_nm'](_0x5ddb82(0x429),[_0x233d1c]);}async[_0x1f2be5(0x632)](_0x449798,_0x2d2194,_0x38decb){const _0x2ed7e2=_0x1f2be5;return this[_0x2ed7e2(0x47b)](_0x2ed7e2(0x632),[_0x449798,_0x2d2194,_0x38decb]);}async[_0x1f2be5(0x6a9)](_0x5187ed){const _0x7961d5=_0x1f2be5;return this[_0x7961d5(0x47b)](_0x7961d5(0x6a9),[_0x5187ed]);}async[_0x1f2be5(0x463)](){return this['_nm']('stopAll',[]);}async[_0x1f2be5(0x59f)](){const _0x57640a=_0x1f2be5;return this[_0x57640a(0x47b)]('bootSyncedPipelines',[]);}['findOwner'](_0x4ee725,_0x1f1cc8){const _0x2377c3=_0x1f2be5;return this['_n'](_0x2377c3(0x7e1),[_0x4ee725,_0x1f1cc8],![]);}}return engines={'OKDBEngines':_0x55b5e0,'OKDBPipelines':_0x1b5a37,'OKDBEngineHandle':_0x4d6bfd},engines;}var functions,hasRequiredFunctions;function requireFunctions(){const _0x108e29=_0x1ade1a;if(hasRequiredFunctions)return functions;hasRequiredFunctions=0x1;const {optionsArg:_0x56ce89}=requireErrors(),_0x350622=Number(process.env.OKDB_FN_POLL_MS)||0x14;class _0x1d43cf{constructor(_0x45d473,_0x39761d=null){const _0x5b2052=_0x3f13;this[_0x5b2052(0x555)]=_0x45d473,this[_0x5b2052(0x4f9)]=_0x39761d??_0x5b2052(0x196);}get[_0x108e29(0x53c)](){const _0x1c18d7=_0x108e29;return this['okdb'][_0x1c18d7(0x2b2)][_0x1c18d7(0x616)](this[_0x1c18d7(0x4f9)])??null;}['_n'](_0x5ac0a4,_0x1fb22c=[],_0x26d2e3=!![]){const _0x23e51b=_0x108e29;try{return this['okdb']['_call'](_0x23e51b(0x4a7),this[_0x23e51b(0x4f9)],_0x5ac0a4,_0x1fb22c,_0x26d2e3);}catch(_0x4aeaf6){throw _0x53c382(_0x4aeaf6);}}async[_0x108e29(0x47b)](_0x2b2986,_0x37cd09=[]){const _0x43c07a=_0x108e29;try{return await this['okdb'][_0x43c07a(0x421)]('functions',this[_0x43c07a(0x4f9)],_0x2b2986,_0x37cd09,!![]);}catch(_0x11eb86){throw _0x53c382(_0x11eb86);}}async['list'](){const _0x3504c5=_0x108e29;return this['_n'](_0x3504c5(0x3f8),[],![]);}async[_0x108e29(0x616)](_0x28c32e){const _0x4489da=_0x108e29;return this['_n'](_0x4489da(0x616),[_0x28c32e],![]);}async[_0x108e29(0x267)](_0x2f2940){const _0xa7179a=_0x108e29;return this['_n'](_0xa7179a(0x267),[_0x2f2940]);}async[_0x108e29(0x601)](_0x598256,_0x37f978={}){return this['_n']('update',[_0x598256,_0x37f978]);}async[_0x108e29(0x6a9)](_0x476ed3){return this['_n']('remove',[_0x476ed3]);}async[_0x108e29(0x2b7)](_0x5c8ef0){const _0xe0ee54=_0x108e29,{functionName:functionName=null}=_0x56ce89(_0x5c8ef0);return this['_n'](_0xe0ee54(0x2b7),[{'functionName':functionName}],![]);}async['getRun'](_0xf86c9e){const _0x5335aa=_0x108e29;return this['_n'](_0x5335aa(0x447),[_0xf86c9e],![]);}async['recordRun'](_0x242448){const _0x98d98c=_0x108e29;return _0x242448=_0x56ce89(_0x242448,'run'),this['_n'](_0x98d98c(0x464),[_0x242448]);}async[_0x108e29(0x7be)](_0x15a3f7,_0x554102=null,_0x47ecfc={}){const _0x5304eb=_0x108e29,_0x432b38={..._0x47ecfc},_0x1f1f52=_0x432b38[_0x5304eb(0x4ea)];if(_0x1f1f52)_0x432b38[_0x5304eb(0x88b)]=!!_0x1f1f52[_0x5304eb(0x88b)];delete _0x432b38[_0x5304eb(0x4ea)];const _0x2554a5=await this['_nm'](_0x5304eb(0x25e),[_0x15a3f7,_0x554102,_0x432b38]),_0x48fe60=this[_0x5304eb(0x555)],_0x735527=()=>_0x48fe60[_0x5304eb(0x755)][_0x5304eb(0x270)]();if(_0x1f1f52&&typeof _0x1f1f52[_0x5304eb(0x7b7)]===_0x5304eb(0x40e))_0x1f1f52[_0x5304eb(0x7b7)](_0x5304eb(0x19f),_0x735527,{'once':!![]});let _0x375106=![];try{for(;;){const _0x486b60=_0x48fe60['_pumper'][_0x5304eb(0x690)](_0x350622);let _0x479d89;try{_0x479d89=await _0x48fe60[_0x5304eb(0x421)](_0x5304eb(0x4a7),this[_0x5304eb(0x4f9)],_0x5304eb(0x30b),[_0x2554a5,!!_0x1f1f52?.['aborted']],![],![]);}catch(_0x5f213c){_0x375106=!![];throw _0x53c382(_0x5f213c);}if(!_0x479d89||_0x479d89[_0x5304eb(0x177)]!==!![])return _0x375106=!![],_0x48fe60['_pumper'][_0x5304eb(0x270)](),_0x479d89;if(_0x479d89[_0x5304eb(0x3f7)])_0x48fe60[_0x5304eb(0x755)][_0x5304eb(0x270)]();await _0x486b60;}}finally{if(_0x1f1f52&&typeof _0x1f1f52['removeEventListener']===_0x5304eb(0x40e))_0x1f1f52[_0x5304eb(0x3c1)](_0x5304eb(0x19f),_0x735527);if(!_0x375106)try{_0x48fe60[_0x5304eb(0x82b)]('functions',this['envName'],_0x5304eb(0x6b7),[_0x2554a5],![]);}catch{}}}async[_0x108e29(0x6fa)](_0x53f008={},_0x23effb=null,_0x5b7d35={}){const _0x1fe4bc=_0x108e29;return this['_nm'](_0x1fe4bc(0x6fa),[_0x53f008,_0x23effb,_0x5b7d35]);}async[_0x108e29(0x851)](){}}function _0x53c382(_0x1ff295){const _0x4e2a74=_0x108e29;if(_0x1ff295&&_0x1ff295[_0x4e2a74(0x7fa)]&&_0x1ff295[_0x4e2a74(0x7fa)][_0x4e2a74(0x4ac)])_0x1ff295['_runRecord']=_0x1ff295[_0x4e2a74(0x7fa)][_0x4e2a74(0x4ac)];return _0x1ff295;}return functions={'OKDBFunctions':_0x1d43cf},functions;}var processor={'exports':{}},lock,hasRequiredLock;function requireLock(){const _0x303eac=_0x1ade1a;if(hasRequiredLock)return lock;hasRequiredLock=0x1;const {optionsArg:_0x208640}=requireErrors();class _0x3800c7{constructor(_0x58ca58,_0x5f4817){const _0x5203e7=_0x3f13;this['_lock']=_0x58ca58,this[_0x5203e7(0x245)]=_0x5f4817;}['_n'](_0x423b67,_0x34b29b=[]){const _0x52866e=_0x3f13;return this[_0x52866e(0x83d)]['_n'](_0x423b67,[this[_0x52866e(0x245)],..._0x34b29b]);}[_0x303eac(0x70c)](){const _0xc73b6a=_0x303eac;return this['_n'](_0xc73b6a(0x70c));}get[_0x303eac(0x58c)](){const _0x39c260=_0x303eac;return this['_n'](_0x39c260(0x58c));}[_0x303eac(0x6ea)](){const _0x3aa406=_0x303eac;return this['_n'](_0x3aa406(0x6ea));}['extend'](_0x51f4cf){const _0x303f7c=_0x303eac;return this['_n'](_0x303f7c(0x214),[_0x51f4cf]);}async[_0x303eac(0x718)](){const _0x5f1da4=_0x303eac;return this['_n'](_0x5f1da4(0x718));}}class _0x56961f{constructor(_0x4eb062,_0x4eb561,_0x2defb2,_0x472113){const _0x26084c=_0x303eac,{ttlMs:ttlMs=0x7530,heartbeatMs:heartbeatMs=null}=_0x208640(_0x472113);this[_0x26084c(0x555)]=_0x4eb062,this[_0x26084c(0x797)]=_0x2defb2,this[_0x26084c(0x245)]=_0x4eb062[_0x26084c(0x82b)](_0x26084c(0x785),_0x4eb561,_0x26084c(0x2fb),[_0x2defb2,ttlMs,heartbeatMs],![]),this[_0x26084c(0x6f4)]=_0x4eb561;}['_n'](_0x3ea9d1,_0xa5fedf=[]){const _0x9faaad=_0x303eac;return this[_0x9faaad(0x555)][_0x9faaad(0x82b)](_0x9faaad(0x785),this['_env'],_0x3ea9d1,_0xa5fedf,![]);}[_0x303eac(0x7f2)](_0x1f4ce4){const _0x241121=_0x303eac;return this['_n'](_0x241121(0x491),[this['_id'],_0x1f4ce4]);}async[_0x303eac(0x4d5)](_0x24c5c2,_0x4a7843={},_0x535999={}){const _0x529327=_0x303eac,_0xa412cd=this['_n'](_0x529327(0x4d5),[this[_0x529327(0x245)],_0x24c5c2,_0x4a7843,_0x535999]);return{'acquired':_0xa412cd['acquired'],'handle':_0xa412cd[_0x529327(0x1de)]==null?null:new _0x3800c7(this,_0xa412cd[_0x529327(0x1de)]),'current':_0xa412cd['current']};}['inspect'](_0x4054f0){const _0x34c559=_0x303eac;return this['_n'](_0x34c559(0x850),[this[_0x34c559(0x245)],_0x4054f0]);}[_0x303eac(0x3f8)](){const _0x3c5b67=_0x303eac;return this['_n'](_0x3c5b67(0x3f8),[this['_id']]);}[_0x303eac(0x284)](_0x579647){const _0x2e8ee6=_0x303eac;return this['_n'](_0x2e8ee6(0x284),[this[_0x2e8ee6(0x245)],_0x579647]);}[_0x303eac(0x7e6)](_0x18a072,_0xf83c1e=0x3e8){const _0x1de12d=_0x303eac;return this['_n'](_0x1de12d(0x7e6),[this['_id'],_0x18a072,_0xf83c1e]);}}return lock={'NativeLock':_0x56961f,'NativeLockHandle':_0x3800c7},lock;}var hasRequiredProcessor;function requireProcessor(){const _0x3bee25=_0x1ade1a;if(hasRequiredProcessor)return processor[_0x3bee25(0x3bf)];hasRequiredProcessor=0x1;const _0x35f7f6=requireBridge(),{RawDb:_0x3f6f24}=requireRawdb(),{NativeLock:_0x4766db}=requireLock();function _0x528e81(_0x2d787e){}class _0x44dc2c{constructor(_0x41d824){const _0xbd8616=_0x3bee25;this[_0xbd8616(0x53c)]=_0x41d824,this[_0xbd8616(0x555)]=_0x41d824;try{this['_n'](_0xbd8616(0x3fe),[(_0x1aeacb,_0x338d8a)=>{const _0x493762=_0xbd8616,_0x3d2d3c=this[_0x493762(0x555)][_0x493762(0x629)],_0x60f61a=_0x3d2d3c?.[_0x1aeacb]??_0x3d2d3c?.[_0x493762(0x786)];if(typeof _0x60f61a===_0x493762(0x40e))_0x60f61a[_0x493762(0x881)](_0x3d2d3c,_0x338d8a);}],![]);}catch{}}['_n'](_0x25a231,_0x376e63,_0x219e51=!![]){const _0x279f45=_0x3bee25;return this[_0x279f45(0x53c)][_0x279f45(0x555)][_0x279f45(0x82b)](_0x279f45(0x428),this['env']['name'],_0x25a231,_0x376e63,_0x219e51);}[_0x3bee25(0x6f8)](_0x1e6089,_0x4288a3={}){const _0x1f842f=_0x3bee25,_0x4ae213={..._0x4288a3};if(typeof _0x4ae213[_0x1f842f(0x54a)]===_0x1f842f(0x40e)&&_0x4ae213['module']!=null)throw new Error(_0x1f842f(0x1f4)+'Use\x20module:{path,export}\x20alone,\x20or\x20handler:\x27<name>\x27\x20for\x20a\x20built-in.');if(typeof _0x4ae213[_0x1f842f(0x54a)]===_0x1f842f(0x4c1)&&_0x4ae213[_0x1f842f(0x792)]!=null)throw new Error(_0x1f842f(0x453));if(_0x4ae213[_0x1f842f(0x792)]!=null){if(!_0x4ae213[_0x1f842f(0x792)]['path'])throw new Error(_0x1f842f(0x5af));const _0x2002e4=_0x4ae213['module'][_0x1f842f(0x333)]??_0x4ae213[_0x1f842f(0x792)][_0x1f842f(0x50d)]??_0x1f842f(0x58a),_0x330bd6=require['resolve'](_0x4ae213[_0x1f842f(0x792)][_0x1f842f(0x72d)]),_0x49cefb=require(_0x330bd6),_0x4f1b52=_0x49cefb[_0x2002e4]??_0x49cefb[_0x1f842f(0x693)]??_0x49cefb;if(typeof _0x4f1b52!==_0x1f842f(0x40e))throw new Error(_0x1f842f(0x74e)+_0x4ae213['module'][_0x1f842f(0x72d)]+_0x1f842f(0x4da)+_0x2002e4+_0x1f842f(0x81f));this['env']['okdb'][_0x1f842f(0x3ed)](_0x1f842f(0x428),_0x1f842f(0x3da),[_0x330bd6,_0x2002e4,_0x4f1b52]),_0x4ae213['module']={'path':_0x330bd6,'export':_0x2002e4};}if(_0x4ae213[_0x1f842f(0x549)]!=null){if(typeof _0x4ae213['quantum']['module']!==_0x1f842f(0x4c1))throw new Error('processor:\x20quantum.module\x20must\x20be\x20a\x20string');const _0xb9febf=require['resolve'](_0x4ae213[_0x1f842f(0x549)][_0x1f842f(0x792)]),_0x348b69=require(_0xb9febf),_0x3eee04=_0x4ae213[_0x1f842f(0x549)][_0x1f842f(0x50d)],_0x50e128=_0x3eee04?_0x348b69[_0x3eee04]:_0x348b69[_0x1f842f(0x693)]??_0x348b69;if(typeof _0x50e128===_0x1f842f(0x40e)){const _0x15bd99=_0x3eee04?_0x4ae213['quantum'][_0x1f842f(0x792)]+'#'+_0x3eee04:_0x4ae213['quantum']['module'];this[_0x1f842f(0x53c)][_0x1f842f(0x555)][_0x1f842f(0x3ed)](_0x1f842f(0x428),'registerQuantum',[_0x15bd99,_0x50e128]);}_0x4ae213[_0x1f842f(0x549)]={..._0x4ae213[_0x1f842f(0x549)]};}_0x4ae213[_0x1f842f(0x2f3)]!=null&&typeof _0x4ae213[_0x1f842f(0x2f3)]==='object'&&(_0x4ae213[_0x1f842f(0x2f3)]={'$payload':_0x35f7f6[_0x1f842f(0x280)](_0x4ae213['payload'],this[_0x1f842f(0x53c)][_0x1f842f(0x555)])});if(_0x4ae213[_0x1f842f(0x429)]!=null&&typeof _0x4ae213['rebuild']!==_0x1f842f(0x40e))throw new Error(_0x1f842f(0x59c));const _0x169766=this['_n'](_0x1f842f(0x6f8),[_0x1e6089??null,_0x4ae213]);return this[_0x1f842f(0x60a)](_0x169766['id'],_0x169766[_0x1f842f(0x758)]);}[_0x3bee25(0x60a)](_0x432324,_0x4494f1){const _0x3037a4=_0x3bee25,_0x43164f=this,_0x1f312c=async()=>{const _0x1e03bc=_0x3f13;_0x43164f['_n'](_0x1e03bc(0x807),[_0x432324]);};return _0x1f312c['id']=_0x432324,_0x1f312c[_0x3037a4(0x758)]=_0x4494f1,_0x1f312c[_0x3037a4(0x52c)]=()=>_0x4494f1?_0x43164f['_n']('handleDurableClock',[_0x432324],![]):0x0,_0x1f312c[_0x3037a4(0x371)]=()=>_0x43164f[_0x3037a4(0x616)](_0x432324),_0x1f312c[_0x3037a4(0x1e0)]=_0x1f312c[_0x3037a4(0x371)],_0x1f312c[_0x3037a4(0x200)]=()=>_0x43164f[_0x3037a4(0x200)](_0x432324),_0x1f312c[_0x3037a4(0x592)]=()=>_0x43164f[_0x3037a4(0x592)](_0x432324),_0x1f312c[_0x3037a4(0x4bc)]=()=>_0x43164f['kick'](_0x432324),_0x1f312c[_0x3037a4(0x4dd)]=()=>_0x43164f[_0x3037a4(0x4dd)](_0x432324),_0x1f312c[_0x3037a4(0x7eb)]=_0x4d6b60=>_0x43164f[_0x3037a4(0x7eb)](_0x432324,_0x4d6b60),_0x1f312c;}get['_stops'](){const _0x22a35a=_0x3bee25;try{return this['_n'](_0x22a35a(0x3f8),[],![])[_0x22a35a(0x6f2)](_0x4210b6=>({'id':_0x4210b6['id']}));}catch{return[];}}async[_0x3bee25(0x1b0)](_0x34efe5){return new Set(this['_n']('pauseAllAndDrain',[]));}[_0x3bee25(0x7d5)](_0x47c034){return this['_n']('resumeAllAfterDrain',[[..._0x47c034??[]]]);}get[_0x3bee25(0x7b0)](){const _0x36cd0b=_0x3bee25;return new Set(this['_n'](_0x36cd0b(0x3f8),[],![])[_0x36cd0b(0x658)](_0x129170=>_0x129170[_0x36cd0b(0x79c)]==null)[_0x36cd0b(0x6f2)](_0x215715=>_0x215715['id']));}[_0x3bee25(0x41b)](){}get[_0x3bee25(0x83d)](){const _0x34129a=_0x3bee25;if(!this[_0x34129a(0x534)]){const _0x5014b0=new _0x4766db(this['env']['okdb'],this[_0x34129a(0x53c)][_0x34129a(0x885)],'proc'),_0x1d055b=this[_0x34129a(0x53c)];_0x5014b0[_0x34129a(0x612)]=()=>new _0x3f6f24(_0x1d055b,_0x34129a(0x15c)),this[_0x34129a(0x534)]=_0x5014b0;}return this[_0x34129a(0x534)];}[_0x3bee25(0x884)](_0x57f8b3,_0x9b45c2){const _0xda68d1=_0x3bee25;return this['_n'](_0xda68d1(0x490),[typeof _0x57f8b3==='string'?_0x57f8b3:_0x57f8b3['id'],_0x9b45c2?.[_0xda68d1(0x806)]??String(_0x9b45c2??'')]);}get[_0x3bee25(0x1ce)](){const _0x5c74ee=_0x3bee25;return this[_0x5c74ee(0x3f9)]||(this[_0x5c74ee(0x3f9)]=new _0x3f6f24(this[_0x5c74ee(0x53c)],_0x5c74ee(0x512)));}get[_0x3bee25(0x628)](){const _0xfd2a1c=_0x3bee25,_0xc99c0=this,_0x2ab414=_0x3904de=>{const _0x41d5a1=_0x3f13,_0x4d1e11=()=>_0xc99c0['_n'](_0x41d5a1(0x2a4),[_0x3904de],![]);if(!_0x4d1e11())return undefined;const _0x5dd0b3=_0x50d58c=>()=>_0x4d1e11()?.[_0x50d58c],_0x428a60={'id':_0x3904de},_0x30937c=(_0x3c6148,_0x4f0331,_0x489faf)=>Object[_0x41d5a1(0x882)](_0x428a60,_0x3c6148,{'get':_0x4f0331,'set':_0x489faf,'enumerable':!![],'configurable':!![]});return _0x30937c(_0x41d5a1(0x823),_0x5dd0b3(_0x41d5a1(0x823))),_0x30937c(_0x41d5a1(0x75b),_0x5dd0b3(_0x41d5a1(0x75b))),_0x30937c('paused',_0x5dd0b3(_0x41d5a1(0x840))),_0x30937c(_0x41d5a1(0x49f),_0x5dd0b3(_0x41d5a1(0x49f)),_0x4a1d47=>_0xc99c0['_n'](_0x41d5a1(0x6dd),[_0x3904de,_0x4a1d47])),_0x30937c(_0x41d5a1(0x758),_0x5dd0b3(_0x41d5a1(0x758))),_0x30937c(_0x41d5a1(0x5c0),_0x5dd0b3('claimGated'),_0x48711e=>_0xc99c0['_n']('setClaimGated',[_0x3904de,!!_0x48711e])),_0x30937c(_0x41d5a1(0x39a),_0x5dd0b3('handlerName')),_0x30937c('flushQuantum',_0x5dd0b3(_0x41d5a1(0x23e))),_0x30937c('drainDeadlineMs',_0x5dd0b3(_0x41d5a1(0x563))),_0x30937c('_modeApplied',_0x5dd0b3(_0x41d5a1(0x6bd)),_0x16029e=>_0xc99c0['_n'](_0x41d5a1(0x53f),[_0x3904de,_0x16029e])),_0x30937c(_0x41d5a1(0x5c1),()=>_0xc99c0['get'](_0x3904de)?.[_0x41d5a1(0x5c1)]),_0x30937c(_0x41d5a1(0x5ff),()=>_0x4d1e11()?.[_0x41d5a1(0x13a)]?{'isHeld':()=>!!_0x4d1e11()?.[_0x41d5a1(0x13a)]}:null),_0x30937c(_0x41d5a1(0x594),()=>_0x4d1e11()?.[_0x41d5a1(0x866)]?()=>{}:null),_0x30937c(_0x41d5a1(0x870),()=>_0x4d1e11()?.[_0x41d5a1(0x1c0)]?{}:null),_0x30937c(_0x41d5a1(0x835),()=>_0x4d1e11()?.[_0x41d5a1(0x5bb)]?{}:null),_0x428a60;},_0x1fb02d=()=>_0xc99c0['_n'](_0xfd2a1c(0x3f8),[],![])[_0xfd2a1c(0x6f2)](_0x438964=>_0x438964['id']);return{'get':_0x17a9bf=>_0x2ab414(_0x17a9bf),'has':_0x1a1dc9=>_0x1fb02d()[_0xfd2a1c(0x2bc)](_0x1a1dc9),get 'size'(){const _0x26dee8=_0xfd2a1c;return _0x1fb02d()[_0x26dee8(0x479)];},'keys':()=>_0x1fb02d()[Symbol[_0xfd2a1c(0x821)]](),'values':()=>_0x1fb02d()[_0xfd2a1c(0x6f2)](_0x2ab414)[Symbol[_0xfd2a1c(0x821)]](),'entries':()=>_0x1fb02d()[_0xfd2a1c(0x6f2)](_0x5718f0=>[_0x5718f0,_0x2ab414(_0x5718f0)])[Symbol[_0xfd2a1c(0x821)]](),[Symbol[_0xfd2a1c(0x821)]]:()=>_0x1fb02d()[_0xfd2a1c(0x6f2)](_0x8fde34=>[_0x8fde34,_0x2ab414(_0x8fde34)])[Symbol[_0xfd2a1c(0x821)]](),'forEach':_0x5d4fdc=>_0x1fb02d()[_0xfd2a1c(0x39f)](_0x356062=>_0x5d4fdc(_0x2ab414(_0x356062),_0x356062))};}async[_0x3bee25(0x463)](){const _0x1accaa=_0x3bee25;return this['_n'](_0x1accaa(0x463),[]);}[_0x3bee25(0x3f8)](){const _0x3ccc0e=_0x3bee25,_0x4be53f=this['_n'](_0x3ccc0e(0x3f8),[],![]);if(!this['env']['name'][_0x3ccc0e(0x70d)]('~'))try{const _0x539b04=this[_0x3ccc0e(0x53c)][_0x3ccc0e(0x555)][_0x3ccc0e(0x5c1)];for(const _0x4f93e1 of _0x539b04[_0x3ccc0e(0x55e)](this[_0x3ccc0e(0x53c)][_0x3ccc0e(0x885)])){for(const _0x32fd7e of _0x539b04[_0x3ccc0e(0x300)](_0x4f93e1,this[_0x3ccc0e(0x53c)][_0x3ccc0e(0x885)])){const _0x189982=_0x3ccc0e(0x434)+_0x4f93e1+':'+_0x32fd7e;_0x4be53f['push']({'id':_0x189982,'type':_0x4f93e1,'mode':'inline','state':_0x3ccc0e(0x40b),'paused':![],'lag':0x0,'cursorKey':_0x189982,'meta':{'name':_0x189982}});}}}catch{}return _0x4be53f;}[_0x3bee25(0x546)](){const _0x41ee12=_0x3bee25;return this['_n'](_0x41ee12(0x546),[],![]);}['durableTierLag'](){return this['_n']('durableTierLag',[],![]);}['durableCursorFloor'](){return this['_n']('durableCursorFloor',[],![]);}[_0x3bee25(0x616)](_0x3a9a6c){return this['_n']('get',[_0x3a9a6c],![]);}[_0x3bee25(0x78e)](_0x298474){const _0x1c8207=_0x3bee25;return this['get'](typeof _0x298474===_0x1c8207(0x4c1)?_0x298474:_0x298474['id']);}[_0x3bee25(0x859)](_0x453c1a){const _0x7ffdf8=_0x3bee25;return this['_n'](_0x7ffdf8(0x859),[_0x453c1a],![]);}[_0x3bee25(0x252)](_0x19b418){const _0x333839=_0x3bee25;return this['_n'](_0x333839(0x252),[_0x19b418]);}['markSnapshotComplete'](_0x151b90){const _0x546d72=_0x3bee25;return this['_n'](_0x546d72(0x218),[_0x151b90]);}[_0x3bee25(0x156)](_0x4f2c52){const _0x292ef2=_0x3bee25;return this['_n'](_0x292ef2(0x156),[_0x4f2c52],![]);}[_0x3bee25(0x6ac)](_0x24d4da,_0x122904){const _0x5a78ff=_0x3bee25;return this['_n'](_0x5a78ff(0x6ac),[_0x24d4da,_0x122904]);}async['awaitIdle'](_0x46bf3c,_0x25ccbf){const _0x52ce11=_0x3bee25;return this['_n'](_0x52ce11(0x7eb),[_0x46bf3c,_0x25ccbf??0x7530]);}[_0x3bee25(0x200)](_0x210dfe){const _0x3a4aa7=_0x3bee25;return this['_n'](_0x3a4aa7(0x200),[_0x210dfe]);}[_0x3bee25(0x592)](_0x330e26){const _0x1f9a34=_0x3bee25;return this['_n'](_0x1f9a34(0x592),[_0x330e26]);}async[_0x3bee25(0x5d7)](_0x182a53){const _0x537afc=_0x3bee25;return this['_n'](_0x537afc(0x5d7),[_0x182a53]);}[_0x3bee25(0x4bc)](_0x5d025f){const _0x1f098b=_0x3bee25;return this['_n'](_0x1f098b(0x4bc),[_0x5d025f]);}['retry'](_0x21d3d7){const _0x14a6f9=_0x3bee25;return this['_n'](_0x14a6f9(0x4dd),[_0x21d3d7]);}[_0x3bee25(0x579)](_0x2b8d14,_0x37f46e={}){const _0x36ac54=_0x3bee25;return this['_n'](_0x36ac54(0x579),[_0x2b8d14,_0x37f46e]);}async[_0x3bee25(0x81b)](_0x2f2934,_0x4ef2e0,_0x13c05e){const _0x2e9fb8=_0x3bee25,[_0x45b7b4,_0x4d75d4]=this['_n'](_0x2e9fb8(0x81b),[_0x2f2934,_0x4ef2e0,_0x13c05e]);return{'version':_0x45b7b4,'flipClock':_0x4d75d4};}async[_0x3bee25(0x2d4)](_0x1093c4,_0x1de670,_0x4e3896={}){const _0x17ed82=_0x3bee25;return this['_n'](_0x17ed82(0x2d4),[_0x1093c4,_0x1de670,_0x4e3896]);}}_0x44dc2c[_0x3bee25(0x4b2)]=function _0x422f91(_0x55cde5,_0x2959ef){const _0x21b514=_0x3bee25;if(typeof _0x55cde5!==_0x21b514(0x4c1)||!_0x55cde5)throw new Error('registerHandler:\x20name\x20must\x20be\x20a\x20non-empty\x20string');if(typeof _0x2959ef!==_0x21b514(0x40e))throw new Error(_0x21b514(0x68c));_0x54c940(_0x21b514(0x428),_0x21b514(0x4b2),[_0x55cde5,_0x2959ef]);},_0x44dc2c[_0x3bee25(0x6d7)]=function _0xa26656(_0x2a9570,_0x26ebbe){const _0xda41ec=_0x3bee25;if(typeof _0x2a9570!==_0xda41ec(0x4c1)||!_0x2a9570)throw new Error('registerQuantum:\x20name\x20must\x20be\x20a\x20non-empty\x20string');if(typeof _0x26ebbe!==_0xda41ec(0x40e))throw new Error(_0xda41ec(0x6b9));let _0x574390=null;_0x54c940('proc',_0xda41ec(0x6d7),[_0x2a9570,(_0x83ab16,_0x368a11)=>{if(!_0x574390)_0x574390=_0x26ebbe();return _0x574390(_0x83ab16,_0x368a11);}]);},_0x44dc2c[_0x3bee25(0x501)]=_0x9ba347=>/closed|not open|released/i[_0x3bee25(0x787)](String(_0x9ba347)),_0x44dc2c[_0x3bee25(0x65f)]=![];function _0x54c940(_0x1aa1b2,_0x39d15b,_0x56fb20){const {staticCall:_0x1808a5}=requireLib();return _0x1808a5(_0x1aa1b2,_0x39d15b,_0x56fb20);}return processor[_0x3bee25(0x3bf)]=_0x44dc2c,processor[_0x3bee25(0x3bf)]['OKDBProcessor']=_0x44dc2c,processor[_0x3bee25(0x3bf)]['setNative']=_0x528e81,processor[_0x3bee25(0x3bf)];}var okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x1c1f1f=_0x1ade1a;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x274704={'PUT':_0x1c1f1f(0x7bc),'REMOVE':_0x1c1f1f(0x6a9),'INDEX_DROP':_0x1c1f1f(0x253),'INDEX_REGISTER':_0x1c1f1f(0x2d7),'INDEX_RESET':'resetIndex','TYPE_REGISTER':_0x1c1f1f(0x4eb),'TYPE_DROP':'dropType','FTS_REGISTER':'registerFts','FTS_DROP':_0x1c1f1f(0x3dc),'FTS_RESET':_0x1c1f1f(0x69e),'SCHEMA_SET':_0x1c1f1f(0x4e4),'SCHEMA_DROP':_0x1c1f1f(0x3c9),'TTL_SET':'setTtl','TTL_CLEAR':'clearTtl'},_0x2cc0ca={'SYSTEM_READY':'system:ready','FIELD_RESOLVER_REGISTERED':'field:resolver_registered','SYSTEM_STOPPED':_0x1c1f1f(0x772),'SYSTEM_CLOCK_CHANGE':_0x1c1f1f(0x5ae),'SYSTEM_POKE':_0x1c1f1f(0x22e),'SYSTEM_DRAIN':_0x1c1f1f(0x6d3),'SYSTEM_TYPE_DROP':_0x1c1f1f(0x299),'SYSTEM_PROC':_0x1c1f1f(0x82c),'SYSTEM_BUS_STATE_CHANGE':_0x1c1f1f(0x70e),'ITEM_CREATE':'item:create','ITEM_UPDATE':'item:update','ITEM_REMOVE':_0x1c1f1f(0x201),'ITEM_PENDING':_0x1c1f1f(0x7a5),'INDEX_RESET':'index:reset','INDEX_READY':_0x1c1f1f(0x544),'INDEX_PROGRESS':_0x1c1f1f(0x44d),'VIEW_PROGRESS':_0x1c1f1f(0x212),'INDEX_DROP':_0x1c1f1f(0x1d7),'INDEX_REGISTERED':'index:registered','FTS_REGISTERED':_0x1c1f1f(0x7fc),'FTS_DROP':'fts:drop','FTS_RESET':'fts:reset','SCHEMA_SET':'schema:set','SCHEMA_DROP':_0x1c1f1f(0x3b3),'UNIQUE_VIOLATION':_0x1c1f1f(0x7f1),'UNIQUE_VIOLATION_RESOLVED':'unique:violation_resolved','REF_VIOLATION':_0x1c1f1f(0x32a),'REF_VIOLATION_RESOLVED':'ref:violation_resolved','SYNC_APPLY':'sync:apply','TXN_START':'txn:start','TXN_END':_0x1c1f1f(0x2e4),'TXN_ROLLBACK':_0x1c1f1f(0x27f),'TYPE_REGISTERED':'type:registered','TYPE_DROP':_0x1c1f1f(0x31e),'ENV_OPENED':_0x1c1f1f(0x6fc),'ENV_REMOVED':_0x1c1f1f(0x338),'SYSTEM_ENV_RELEASE':_0x1c1f1f(0x6b5),'TTL_EXPIRED':_0x1c1f1f(0x15d),'TTL_SET':_0x1c1f1f(0x699),'TTL_CLEAR':_0x1c1f1f(0x654),'LICENSE_INVALID':_0x1c1f1f(0x531),'LICENSE_ADDED':_0x1c1f1f(0x752),'LICENSE_ACTIVATED':_0x1c1f1f(0x21f),'LICENSE_REMOVED':_0x1c1f1f(0x409)},_0x2cc2ca={'CREATING':_0x1c1f1f(0x254),'RESETTING':_0x1c1f1f(0x394),'READY':_0x1c1f1f(0x5ef),'DROPPING':_0x1c1f1f(0x78a),'WAITING':_0x1c1f1f(0x225),'ERROR':_0x1c1f1f(0x814)},_0x202177={'CREATED':_0x1c1f1f(0x249),'STARTING':'starting','STARTED':'started','STOPPING':_0x1c1f1f(0x607),'STOPPED':_0x1c1f1f(0x26b)},_0x91765b={'CREATING':_0x1c1f1f(0x254),'READY':_0x1c1f1f(0x5ef),'HALTED':'halted','STOPPED':_0x1c1f1f(0x26b),'RESETTING':_0x1c1f1f(0x394)},_0x55836a=Object[_0x1c1f1f(0x493)]({'POKE':_0x1c1f1f(0x838),'DRAIN':_0x1c1f1f(0x2a8),'TYPE_DROP':_0x1c1f1f(0x554),'PROC':_0x1c1f1f(0x5f0),'ENV_RELEASE':_0x1c1f1f(0x577)});return okdbEnums={'BUS_EVENTS':_0x55836a,'CHANGE_ACTIONS':_0x274704,'EVENTS':_0x2cc0ca,'INDEX_STATE':_0x2cc2ca,'OKDB_STATE':_0x202177,'VIEW_STATE':_0x91765b},okdbEnums;}var okdbGuardedRange,hasRequiredOkdbGuardedRange;function requireOkdbGuardedRange(){const _0x261571=_0x1ade1a;if(hasRequiredOkdbGuardedRange)return okdbGuardedRange;hasRequiredOkdbGuardedRange=0x1;const _0xd7224d={'SKIP':Symbol[_0x261571(0x28e)]('@harperdb/extended-iterable:skip')},{OKDBError:_0x12fa58}=requireOkdbError(),_0x486e67={'value':null,'done':!![]};class _0x22874c{constructor(_0x230119){const _0x3423bc=_0x261571;this[_0x3423bc(0x7ef)]=_0x230119;}get[_0x261571(0x6c9)](){return _0x486e67;}[Symbol[_0x261571(0x821)]](){const _0x25c21e=_0x261571;return this[_0x25c21e(0x7ef)]();}['map'](_0x434aec){const _0xe79e3e=this;return new _0x22874c(()=>{const _0x5bd457=_0x3f13,_0x2cd00b=_0xe79e3e[Symbol[_0x5bd457(0x821)]]();return{'next'(){const _0x1e10ff=_0x5bd457;for(;;){const _0x68390f=_0x2cd00b[_0x1e10ff(0x67f)]();if(_0x68390f[_0x1e10ff(0x45e)])return{'done':!![],'value':undefined};const _0x385f35=_0x434aec(_0x68390f[_0x1e10ff(0x7fd)]);if(_0x385f35===_0xd7224d[_0x1e10ff(0x564)])continue;if(_0x385f35===_0x486e67)return _0x2cd00b[_0x1e10ff(0x5dc)]?.(),{'done':!![],'value':undefined};return{'done':![],'value':_0x385f35};}},'return'(){const _0x3cfb19=_0x5bd457;return _0x2cd00b[_0x3cfb19(0x5dc)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x5bd457(0x821)]](){return this;}};});}[_0x261571(0x658)](_0xf5d49b){const _0x3b5723=_0x261571;return this[_0x3b5723(0x6f2)](_0xc98ec7=>_0xf5d49b(_0xc98ec7)?_0xc98ec7:_0xd7224d[_0x3b5723(0x564)]);}['forEach'](_0x397a4d){for(const _0x54d18c of this)_0x397a4d(_0x54d18c);}[_0x261571(0x4e8)](_0x16a702=0x0,_0x5c0a8a=Infinity){const _0x30d521=this;return new _0x22874c(()=>{const _0x5be142=_0x3f13,_0x15befe=_0x30d521[Symbol['iterator']]();let _0x3ee8b9=0x0;return{'next'(){const _0x56897f=_0x3f13;for(;;){const _0x3b819d=_0x15befe[_0x56897f(0x67f)]();if(_0x3b819d[_0x56897f(0x45e)])return{'done':!![],'value':undefined};const _0xbfea9d=_0x3ee8b9++;if(_0xbfea9d<_0x16a702)continue;if(_0xbfea9d>=_0x5c0a8a)return _0x15befe['return']?.(),{'done':!![],'value':undefined};return _0x3b819d;}},'return'(){const _0x4e67cd=_0x3f13;return _0x15befe[_0x4e67cd(0x5dc)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x5be142(0x821)]](){return this;}};});}['at'](_0x13ff53){let _0x5192f9=0x0;for(const _0x3a2481 of this)if(_0x5192f9++===_0x13ff53)return _0x3a2481;return undefined;}['flatMap'](_0x32ea91){const _0x5d554f=this;return new _0x22874c(()=>{const _0x24a2ea=_0x3f13,_0x22a123=_0x5d554f[Symbol[_0x24a2ea(0x821)]]();let _0x51c8fb=[];return{'next'(){const _0x19cd2c=_0x24a2ea;for(;;){if(_0x51c8fb[_0x19cd2c(0x479)])return{'done':![],'value':_0x51c8fb['shift']()};const _0x52153e=_0x22a123['next']();if(_0x52153e[_0x19cd2c(0x45e)])return{'done':!![],'value':undefined};const _0x51194d=_0x32ea91(_0x52153e[_0x19cd2c(0x7fd)]);if(Array[_0x19cd2c(0x4b6)](_0x51194d))_0x51c8fb=_0x51c8fb[_0x19cd2c(0x45c)](_0x51194d);else{if(_0x51194d!=null&&(_0x51194d instanceof _0x22874c||typeof _0x51194d[Symbol[_0x19cd2c(0x821)]]==='function'&&_0x19cd2c(0x34f)in _0x51194d))_0x51c8fb=_0x51c8fb[_0x19cd2c(0x45c)](Array[_0x19cd2c(0x5f7)](_0x51194d));else{if(_0x51194d!==_0xd7224d[_0x19cd2c(0x564)])return{'done':![],'value':_0x51194d};}}}},'return'(){return _0x22a123['return']?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}[_0x261571(0x45c)](_0x5d6f1c){const _0x52591a=this;return new _0x22874c(()=>{const _0x30b23c=_0x3f13;let _0x445cc3=_0x52591a[Symbol[_0x30b23c(0x821)]](),_0x5bf737=![];return{'next'(){const _0x5e2a43=_0x30b23c;for(;;){const _0x993853=_0x445cc3[_0x5e2a43(0x67f)]();if(!_0x993853[_0x5e2a43(0x45e)])return _0x993853;if(_0x5bf737)return{'done':!![],'value':undefined};_0x5bf737=!![],_0x445cc3=_0x5d6f1c[Symbol[_0x5e2a43(0x821)]]();}},'return'(){const _0x14915c=_0x30b23c;return _0x445cc3[_0x14915c(0x5dc)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x30b23c(0x821)]](){return this;}};});}['mapError'](_0x1e123c){const _0x552406=this;return new _0x22874c(()=>{const _0x46c6e4=_0x3f13,_0x31964a=_0x552406[Symbol['iterator']]();return{'next'(){const _0x34b98c=_0x3f13;for(;;){try{return _0x31964a[_0x34b98c(0x67f)]();}catch(_0x4a4ddb){const _0x2286b1=_0x1e123c(_0x4a4ddb);if(_0x2286b1===_0xd7224d[_0x34b98c(0x564)]||_0x2286b1===undefined)continue;return{'done':![],'value':_0x2286b1};}}},'return'(){const _0x2d6af6=_0x3f13;return _0x31964a[_0x2d6af6(0x5dc)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x46c6e4(0x821)]](){return this;}};});}[_0x261571(0x644)](){return Array['from'](this);}get[_0x261571(0x34f)](){const _0x443656=_0x261571;return Array[_0x443656(0x5f7)](this);}}const _0x294f78={'total':0x0,'byLabel':{},'last':null};function _0x30bcfd(_0x46d17d){const _0x1fd23d=_0x261571;_0x294f78['total']++;if(_0x46d17d)_0x294f78['byLabel'][_0x46d17d]=(_0x294f78[_0x1fd23d(0x57e)][_0x46d17d]??0x0)+0x1;_0x294f78['last']={'label':_0x46d17d??null,'at':Date[_0x1fd23d(0x38b)]()};}function _0x29fe52(){const _0x94c489=_0x261571;return{'total':_0x294f78[_0x94c489(0x38f)],'byLabel':{..._0x294f78[_0x94c489(0x57e)]},'last':_0x294f78[_0x94c489(0x16d)]};}function _0x184dbd(_0x1efbce,_0x240344={}){const {getTxnId:_0x5ecbe7,resume:_0x15b25e,label:_0x9535e,baseline:_0x3f114f}=_0x240344;return new _0x22874c(()=>{const _0x404011=_0x3f13;let _0x66227d=null,_0x949909=![],_0x18bce0=![],_0x55ac06=![],_0x2edbaf,_0x562495=0x0,_0x5eaf71;return{'next'(){const _0x246be0=_0x3f13;if(_0x55ac06)return{'done':!![],'value':undefined};if(_0x18bce0){let _0x5cf37a=![];if(_0x15b25e&&_0x5ecbe7)try{_0x5cf37a=_0x5ecbe7()===_0x5eaf71;}catch{}if(!_0x5cf37a){_0x55ac06=!![],_0x30bcfd(_0x9535e);throw new _0x12fa58(_0x15b25e?_0x246be0(0x74d)+'meanwhile\x20—\x20the\x20frozen\x20view\x20cannot\x20be\x20kept.\x20Materialize\x20synchronously\x20(e.g.\x20Array.from)\x20'+_0x246be0(0x291):'pinned\x20range\x20iterator\x20held\x20across\x20an\x20await/turn\x20boundary.\x20This\x20surface\x20cannot\x20resume\x20'+_0x246be0(0x7a3)+_0x246be0(0x1d2),_0x246be0(0x459));}_0x66227d=_0x15b25e(_0x2edbaf,_0x562495)[Symbol[_0x246be0(0x821)]](),_0x18bce0=![];}if(!_0x66227d){if(_0x3f114f!==undefined)_0x5eaf71=_0x3f114f;else try{_0x5eaf71=_0x5ecbe7?_0x5ecbe7():undefined;}catch{_0x5eaf71=undefined;}try{_0x66227d=_0x1efbce()[Symbol[_0x246be0(0x821)]]();}catch(_0x4e632e){_0x55ac06=!![];throw _0x4e632e;}}!_0x949909&&(_0x949909=!![],queueMicrotask(()=>{const _0x258016=_0x246be0;_0x949909=![];if(_0x55ac06||_0x18bce0)return;try{_0x66227d?.[_0x258016(0x5dc)]?.();}catch{}_0x66227d=null,_0x18bce0=!![];}));const _0x4cd66f=_0x66227d[_0x246be0(0x67f)]();if(_0x4cd66f[_0x246be0(0x45e)])return _0x55ac06=!![],{'done':!![],'value':undefined};return _0x2edbaf=_0x4cd66f[_0x246be0(0x7fd)],_0x562495++,_0x4cd66f;},'return'(){_0x55ac06=!![];try{_0x66227d?.['return']?.();}catch{}return{'done':!![],'value':undefined};},[Symbol[_0x404011(0x821)]](){return this;}};});}return okdbGuardedRange={'guardSnapshotIterable':_0x184dbd,'OKDBGuardedRange':_0x22874c,'recordGuardTrip':_0x30bcfd,'getGuardTripStats':_0x29fe52},okdbGuardedRange;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0x1ba971=_0x1ade1a;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x36d467,performance:_0x50e87f}=require$$0$1,_0x581ac5=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG===_0x1ba971(0x2fa),_0x1b9268=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x4d3b0f=process.env.OKDB_LOOP_LAG_ALL==='1',_0x392f66=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0x40f3b{constructor(){const _0x4fefcc=_0x1ba971;this[_0x4fefcc(0x25c)]=_0x581ac5,this[_0x4fefcc(0x277)]=new Map(),this['_h']=null,this[_0x4fefcc(0x79b)]=null,this[_0x4fefcc(0x33e)]=![],this[_0x4fefcc(0x312)]=(_0x9da586,_0x400d19)=>process[_0x4fefcc(0x59a)]['write'](_0x9da586+(_0x400d19?'\x20'+JSON[_0x4fefcc(0x4e6)](_0x400d19):'')+'\x0a');}[_0x1ba971(0x38b)](){const _0xa265bf=_0x1ba971;return _0x50e87f[_0xa265bf(0x38b)]();}[_0x1ba971(0x2b6)](_0x2e0c49){const _0x57e720=_0x1ba971;if(typeof _0x2e0c49===_0x57e720(0x40e))this[_0x57e720(0x312)]=_0x2e0c49;}[_0x1ba971(0x426)](_0x1ffa2c,_0xbcac83,_0x48a2b9){const _0x2a4d28=_0x1ba971;if(!this['enabled'])return;let _0x44ffa1=this['_buckets'][_0x2a4d28(0x616)](_0x1ffa2c);!_0x44ffa1&&(_0x44ffa1={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this[_0x2a4d28(0x277)][_0x2a4d28(0x488)](_0x1ffa2c,_0x44ffa1)),_0x44ffa1['ms']+=_0xbcac83,_0x44ffa1['count']+=0x1,_0xbcac83>_0x44ffa1[_0x2a4d28(0x357)]&&(_0x44ffa1[_0x2a4d28(0x357)]=_0xbcac83,_0x44ffa1[_0x2a4d28(0x714)]=_0x48a2b9||'');}[_0x1ba971(0x525)](_0x3dd1c2){const _0x43c3a2=_0x1ba971;if(!this['enabled']||this['_started'])return;this[_0x43c3a2(0x33e)]=!![];if(_0x3dd1c2)this[_0x43c3a2(0x312)]=_0x3dd1c2;this['_h']=_0x36d467({'resolution':0xa}),this['_h'][_0x43c3a2(0x716)](),this['_timer']=setInterval(()=>this[_0x43c3a2(0x707)](),_0x1b9268);if(this[_0x43c3a2(0x79b)]['unref'])this[_0x43c3a2(0x79b)][_0x43c3a2(0x7ed)]();}[_0x1ba971(0x5b3)](_0x4b5f86){const _0x33f4e8=_0x1ba971;if(!this['_windowCbs'])this[_0x33f4e8(0x440)]=new Set();this[_0x33f4e8(0x440)][_0x33f4e8(0x76e)](_0x4b5f86);if(!this[_0x33f4e8(0x33e)])this[_0x33f4e8(0x34d)]();}['offWindow'](_0x1700a){const _0x35d7e7=_0x1ba971;this[_0x35d7e7(0x440)]?.[_0x35d7e7(0x727)](_0x1700a);}[_0x1ba971(0x34d)](){const _0xfc88ed=_0x1ba971;if(this['_admissionStarted'])return;this[_0xfc88ed(0x7b9)]=!![];!this['_h']&&(this['_h']=_0x36d467({'resolution':0xa}),this['_h'][_0xfc88ed(0x716)]());const _0x32ad85=_0x1b9268;this[_0xfc88ed(0x4d1)]=setInterval(()=>{const _0x5dca9b=_0xfc88ed,_0x2c051c=this['_h'];if(!_0x2c051c)return;const _0x51ee62=_0x2c051c['percentile'](0x63)/0xf4240,_0x3c3fa1=_0x2c051c[_0x5dca9b(0x3c5)]/0xf4240,_0x210824=_0x2c051c[_0x5dca9b(0x618)]/0xf4240;_0x2c051c['reset']();if(this['_windowCbs'])for(const _0x3eb700 of this['_windowCbs']){try{_0x3eb700({'p99Ms':_0x51ee62,'maxMs':_0x3c3fa1,'meanMs':_0x210824,'reportMs':_0x32ad85});}catch{}}},_0x32ad85);if(this[_0xfc88ed(0x4d1)][_0xfc88ed(0x7ed)])this[_0xfc88ed(0x4d1)][_0xfc88ed(0x7ed)]();}[_0x1ba971(0x707)](){const _0x1db787=_0x1ba971,_0x579d38=this['_h'],_0x53cf0c=_0x579d38[_0x1db787(0x3c5)]/0xf4240,_0x4522a6=_0x579d38[_0x1db787(0x206)](0x63)/0xf4240,_0xbdbce5=_0x579d38[_0x1db787(0x618)]/0xf4240;_0x579d38['reset']();const _0x2fa861=[...this[_0x1db787(0x277)][_0x1db787(0x325)]()][_0x1db787(0x6f2)](([_0x4e48ad,_0x5c177c])=>({'label':_0x4e48ad,..._0x5c177c}))[_0x1db787(0x76f)]((_0x332e60,_0x39971f)=>_0x39971f['ms']-_0x332e60['ms'])['slice'](0x0,0x8);this[_0x1db787(0x277)]['clear']();const _0x479e55=_0x2fa861[_0x1db787(0x2f1)]((_0x1164ad,_0x665e31)=>_0x1164ad+_0x665e31['ms'],0x0),_0x1dfde3=_0x2fa861[_0x1db787(0x6f2)](_0x42a7b2=>_0x42a7b2[_0x1db787(0x473)]+'='+_0x42a7b2['ms']['toFixed'](0x0)+_0x1db787(0x442)+_0x42a7b2['count']+(_0x42a7b2[_0x1db787(0x357)]>0x5?_0x1db787(0x360)+_0x42a7b2[_0x1db787(0x357)][_0x1db787(0x69f)](0x0)+'ms'+(_0x42a7b2[_0x1db787(0x714)]?'\x20'+_0x42a7b2[_0x1db787(0x714)]:'')+')':''));(_0x4d3b0f||_0x53cf0c>=_0x392f66)&&this['_log'](_0x1db787(0x231)+_0x1b9268+_0x1db787(0x23a)+_0x53cf0c[_0x1db787(0x69f)](0x0)+_0x1db787(0x71a)+_0x4522a6[_0x1db787(0x69f)](0x0)+_0x1db787(0x1e7)+_0xbdbce5[_0x1db787(0x69f)](0x0)+'ms\x20busy='+_0x479e55['toFixed'](0x0)+'ms'+(_0x1dfde3[_0x1db787(0x479)]?'\x20│\x20'+_0x1dfde3['join']('\x20\x20'):''),{'feature':'loop-lag'});if(this[_0x1db787(0x440)])for(const _0xb6d281 of this['_windowCbs']){try{_0xb6d281({'p99Ms':_0x4522a6,'maxMs':_0x53cf0c,'meanMs':_0xbdbce5,'reportMs':_0x1b9268});}catch{}}}[_0x1ba971(0x851)](){const _0x231549=_0x1ba971;if(this['_timer'])clearInterval(this[_0x231549(0x79b)]);if(this['_h'])this['_h'][_0x231549(0x671)]();this[_0x231549(0x79b)]=null,this['_h']=null,this['_started']=![];}}const _0x581b6e=new _0x40f3b();if(_0x581b6e[_0x1ba971(0x25c)])_0x581b6e[_0x1ba971(0x525)]();return okdbLoopMonitor={'LOOP':_0x581b6e},okdbLoopMonitor;}var okdbTransaction,hasRequiredOkdbTransaction;function requireOkdbTransaction(){const _0x3b6c74=_0x1ade1a;if(hasRequiredOkdbTransaction)return okdbTransaction;hasRequiredOkdbTransaction=0x1;const _0x912529={'v4':()=>require$$0$2['randomUUID']()},{EVENTS:_0x1c60e9}=requireOkdbEnums(),{OKDBError:_0x5b733d}=requireOkdbError(),{recordGuardTrip:_0x455224,guardSnapshotIterable:_0x4d8d48}=requireOkdbGuardedRange(),{LOOP:_0x5894c5}=requireOkdbLoopMonitor();function _0x1ae1bc(_0x7b80db){const _0x447723=_0x3f13;return _0x7b80db[_0x447723(0x6f2)](_0x5877d7=>{const _0xa475e3=_0x447723,[_0x38c219,_0x5c557d]=_0x5877d7[_0xa475e3(0x643)]||[];return{'action':_0x5877d7['action'],'type':_0x38c219,'key':_0x5c557d};});}class _0x5071bb{['okdb'];[_0x3b6c74(0x77d)]=[];['_doHooks']=[];['_undoHooks']=[];constructor(_0x2454a8,_0x5b67a1={'useReadTransaction':![]}){const _0x281af8=_0x3b6c74;this['okdb']=_0x2454a8,this[_0x281af8(0x5c3)]=_0x5b67a1,this['id']=_0x912529['v4']();if(this[_0x281af8(0x5c3)][_0x281af8(0x6cb)])try{this[_0x281af8(0x2a1)]=this[_0x281af8(0x555)]['db'][_0x281af8(0x6e6)]()['lastTxnId'];}catch{this['_txnIdAtSnapshot']=undefined;}this[_0x281af8(0x3a0)]=this[_0x281af8(0x5c3)][_0x281af8(0x6cb)]?this[_0x281af8(0x555)]['db']['useReadTransaction']():null,this[_0x281af8(0x3a3)]=![],this[_0x281af8(0x6f6)]=![],this[_0x281af8(0x3a0)]&&queueMicrotask(()=>{const _0xde456=_0x281af8;this[_0xde456(0x3a0)]&&(this['_closeReadTransaction'](),this['_readViewExpired']=!![]);});}['onDo'](_0x588102){const _0x39ed3e=_0x3b6c74;this[_0x39ed3e(0x5cd)][_0x39ed3e(0x2e6)](_0x588102);}[_0x3b6c74(0x721)](_0x3dcc19){const _0x111e6e=_0x3b6c74;this[_0x111e6e(0x764)][_0x111e6e(0x2e6)](_0x3dcc19);}[_0x3b6c74(0x867)](){const _0x12bb04=_0x3b6c74;if(!this['readTransaction'])return;try{this[_0x12bb04(0x3a0)][_0x12bb04(0x45e)]();}catch(_0x20376b){}this[_0x12bb04(0x3a0)]=null;}['_assertOpen'](){const _0x28981c=_0x3b6c74;if(this[_0x28981c(0x3a3)])throw new _0x5b733d('Transaction\x20already\x20closed',_0x28981c(0x1d8));if(this[_0x28981c(0x6f6)]){let _0x3e2e85=![];if(this['options'][_0x28981c(0x6cb)]==='tolerant'&&this[_0x28981c(0x2a1)]!==undefined)try{_0x3e2e85=this['okdb']['db'][_0x28981c(0x6e6)]()[_0x28981c(0x53d)]===this[_0x28981c(0x2a1)];}catch{}if(!_0x3e2e85){_0x455224((this[_0x28981c(0x555)]?.[_0x28981c(0x885)]??'?')+_0x28981c(0x1f7));throw new _0x5b733d(_0x28981c(0x533)+_0x28981c(0x3ac)+_0x28981c(0x24a)+_0x28981c(0x87d),_0x28981c(0x459));}}}[_0x3b6c74(0x616)](_0xf7c8a3,_0x33954a){const _0x437f2e=_0x3b6c74;return this[_0x437f2e(0x4b5)](),this['okdb'][_0x437f2e(0x616)](_0xf7c8a3,_0x33954a,{'transaction':this[_0x437f2e(0x3a0)]});}[_0x3b6c74(0x242)](_0x974121,_0x5c9090){const _0x4dc2ab=_0x3b6c74;return this[_0x4dc2ab(0x4b5)](),this['okdb'][_0x4dc2ab(0x242)](_0x974121,_0x5c9090,{'transaction':this[_0x4dc2ab(0x3a0)]});}['getMany'](_0x391705,_0x41a2de){const _0x25bd29=_0x3b6c74;return this[_0x25bd29(0x4b5)](),this[_0x25bd29(0x555)][_0x25bd29(0x84f)](_0x391705,_0x41a2de,{'transaction':this[_0x25bd29(0x3a0)]});}[_0x3b6c74(0x6b3)](_0x20c9eb){const _0x294137=_0x3b6c74;if(!this['options'][_0x294137(0x6cb)])return _0x20c9eb;if(_0x20c9eb&&typeof _0x20c9eb[_0x294137(0x1df)]==='function')return _0x20c9eb;if(Array[_0x294137(0x4b6)](_0x20c9eb))return _0x20c9eb;const _0x176224=this,_0x25bc72=_0x176224['options'][_0x294137(0x6cb)]===_0x294137(0x50a),_0xb562b5=()=>{const _0xae5cf8=_0x294137;if(!_0x176224[_0xae5cf8(0x6f6)])return![];if(!_0x25bc72)return!![];if(_0x176224['_txnIdAtSnapshot']===undefined)return!![];try{return _0x176224[_0xae5cf8(0x555)]['db'][_0xae5cf8(0x6e6)]()[_0xae5cf8(0x53d)]!==_0x176224['_txnIdAtSnapshot'];}catch{return!![];}};return _0x4d8d48(()=>{const _0x1268ad=_0x294137;if(_0x176224[_0x1268ad(0x3a3)])throw new _0x5b733d(_0x1268ad(0x596),_0x1268ad(0x1d8));if(_0xb562b5()){_0x455224((_0x176224['okdb']?.[_0x1268ad(0x885)]??'?')+_0x1268ad(0x186));throw new _0x5b733d(_0x1268ad(0x836)+_0x1268ad(0x3de)+_0x1268ad(0x803),_0x1268ad(0x459));}return _0x20c9eb;},{'label':(_0x176224['okdb']?.['name']??'?')+_0x294137(0x186),..._0x25bc72?{'baseline':_0x176224['_txnIdAtSnapshot'],'getTxnId':()=>_0x176224[_0x294137(0x555)]['db'][_0x294137(0x6e6)]()[_0x294137(0x53d)],'resume':(_0x5e1a4e,_0x41f1dd)=>_0x20c9eb['slice'](_0x41f1dd)}:{}});}[_0x3b6c74(0x805)](_0x1590bf,_0x309269={}){const _0x49cc9f=_0x3b6c74;return this[_0x49cc9f(0x4b5)](),this['_range'](this[_0x49cc9f(0x555)][_0x49cc9f(0x805)](_0x1590bf,{'transaction':this['readTransaction'],..._0x309269}));}[_0x3b6c74(0x521)](_0x289b13,_0x41f21c={}){const _0x29bbe6=_0x3b6c74;return this[_0x29bbe6(0x4b5)](),this[_0x29bbe6(0x6b3)](this['okdb'][_0x29bbe6(0x521)](_0x289b13,{'transaction':this[_0x29bbe6(0x3a0)],..._0x41f21c}));}[_0x3b6c74(0x42e)](_0x1fb7e6,_0x8b3dfd={}){const _0x40cb00=_0x3b6c74;return this[_0x40cb00(0x4b5)](),this[_0x40cb00(0x6b3)](this['okdb'][_0x40cb00(0x42e)](_0x1fb7e6,{'transaction':this[_0x40cb00(0x3a0)],..._0x8b3dfd}));}[_0x3b6c74(0x1f0)](_0x232d3d,_0x2733d5,_0x332547={}){const _0x1722f3=_0x3b6c74;return this[_0x1722f3(0x4b5)](),this[_0x1722f3(0x6b3)](this['okdb'][_0x1722f3(0x1f0)](_0x232d3d,_0x2733d5,{'transaction':this['readTransaction'],..._0x332547}));}[_0x3b6c74(0x3a1)](_0x3375b9,_0x309382,_0x337414={}){const _0x17eeff=_0x3b6c74;return this['_assertOpen'](),this[_0x17eeff(0x6b3)](this[_0x17eeff(0x555)][_0x17eeff(0x3a1)](_0x3375b9,_0x309382,{'transaction':this[_0x17eeff(0x3a0)],..._0x337414}));}[_0x3b6c74(0x353)](_0x17b628=null){const _0x1993f2=_0x3b6c74;return this[_0x1993f2(0x4b5)](),this[_0x1993f2(0x555)][_0x1993f2(0x353)](_0x17b628,{'transaction':this['readTransaction']});}[_0x3b6c74(0x3b4)](_0x146669){const _0x35ee2b=_0x3b6c74;return this[_0x35ee2b(0x4b5)](),this['okdb'][_0x35ee2b(0x3b4)](_0x146669,{'transaction':this[_0x35ee2b(0x3a0)]});}[_0x3b6c74(0x7bc)](_0x4586f1,_0x30660e,_0x1ae92c,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0x3b6c74(0x38b)](),origin:origin=null,ttl:ttl=null}={}){const _0x445ec3=_0x3b6c74;this[_0x445ec3(0x77d)][_0x445ec3(0x2e6)]({'action':_0x445ec3(0x7bc),'args':[_0x4586f1,_0x30660e,_0x1ae92c,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x3b6c74(0x601)](_0x193511,_0x4f70ae,_0x8aed1b,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0x3b6c74(0x38b)](),origin:origin=null,ttl:ttl=null}={}){const _0x433769=_0x3b6c74;this[_0x433769(0x77d)]['push']({'action':_0x433769(0x601),'args':[_0x193511,_0x4f70ae,_0x8aed1b,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x3b6c74(0x369)](_0x49b056,_0x44cea6,_0x5e7a91,{ifVersion:ifVersion=null,timestamp:timestamp=Date['now'](),origin:origin=null,ttl:ttl=null}={}){const _0x42785d=_0x3b6c74;this['actions'][_0x42785d(0x2e6)]({'action':_0x42785d(0x369),'args':[_0x49b056,_0x44cea6,_0x5e7a91,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x3b6c74(0x267)](_0x1cad04,_0x29252d,_0x3613e0,{version:version=null,timestamp:timestamp=Date[_0x3b6c74(0x38b)](),origin:origin=null,ttl:ttl=null}={}){const _0x1fd87b=_0x3b6c74;this[_0x1fd87b(0x77d)]['push']({'action':_0x1fd87b(0x267),'args':[_0x1cad04,_0x29252d,_0x3613e0,{'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x3b6c74(0x6a9)](_0x211054,_0x1e6c59,{ifVersion:ifVersion=null,timestamp:timestamp=Date['now'](),origin:origin=null}={}){const _0x409c7b=_0x3b6c74;this[_0x409c7b(0x77d)]['push']({'action':_0x409c7b(0x6a9),'args':[_0x211054,_0x1e6c59,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin}]});}['setTTL'](_0x5e7dd6,_0x380de2,_0x2044cc){const _0x49383e=_0x3b6c74;this[_0x49383e(0x77d)][_0x49383e(0x2e6)]({'action':'setTTL','args':[_0x5e7dd6,_0x380de2,_0x2044cc]});}[_0x3b6c74(0x347)](_0x5d786d,_0x378f03){const _0x17c245=_0x3b6c74;this[_0x17c245(0x77d)][_0x17c245(0x2e6)]({'action':'clearTTL','args':[_0x5d786d,_0x378f03]});}[_0x3b6c74(0x784)](){const _0x17bc24=_0x3b6c74;if(this[_0x17bc24(0x3a3)])return;for(const _0x50c019 of this['_undoHooks']){try{_0x50c019();}catch{}}this[_0x17bc24(0x555)][_0x17bc24(0x425)][_0x17bc24(0x7bb)](_0x1c60e9['TXN_ROLLBACK'],{'id':this['id']}),this[_0x17bc24(0x77d)]=[],this['_closeReadTransaction'](),this[_0x17bc24(0x3a3)]=!![];}async['commit'](){const _0x259926=_0x3b6c74;if(this['_closed'])throw new Error(_0x259926(0x596));const _0x523c9f={'id':this['id'],'timestamp':Date['now'](),'actions':this[_0x259926(0x77d)]};this[_0x259926(0x555)]['events'][_0x259926(0x7bb)](_0x1c60e9['TXN_START'],_0x523c9f);try{const _0x2d9882=_0x5894c5[_0x259926(0x25c)]?_0x5894c5[_0x259926(0x38b)]():0x0;await this[_0x259926(0x555)][_0x259926(0x57b)][_0x259926(0x84d)](()=>{const _0x2615ba=_0x259926;for(const _0x400157 of this[_0x2615ba(0x77d)]){const _0x4b9dd9=this['okdb']['_'+_0x400157['action']];if(typeof _0x4b9dd9!=='function')throw new Error(_0x2615ba(0x581)+_0x400157[_0x2615ba(0x3a6)]);_0x4b9dd9[_0x2615ba(0x881)](this[_0x2615ba(0x555)],this,..._0x400157[_0x2615ba(0x643)]);}}),_0x5894c5['enabled']&&_0x5894c5['note'](_0x259926(0x2f0),_0x5894c5[_0x259926(0x38b)]()-_0x2d9882,(this[_0x259926(0x555)]['name']??'?')+'\x20actions='+this['actions'][_0x259926(0x479)]);}catch(_0x1be15d){for(const _0x43254d of this[_0x259926(0x764)]){try{_0x43254d();}catch{}}this[_0x259926(0x867)](),this[_0x259926(0x3a3)]=!![];if(_0x1be15d instanceof _0x5b733d)throw _0x1be15d;const _0x20c51e={'cause':_0x1be15d,'env':this[_0x259926(0x555)]?.['name'],'envPath':this['okdb']?.['path'],'pid':process[_0x259926(0x778)],'txnId':this['id'],'actionCount':this['actions']['length'],'actions':_0x1ae1bc(this[_0x259926(0x77d)]),'nativeCode':_0x1be15d?.[_0x259926(0x431)],'nativeName':_0x1be15d?.[_0x259926(0x885)]};try{this[_0x259926(0x555)]?.[_0x259926(0x629)]?.[_0x259926(0x814)]?.(_0x259926(0x852),{'env':_0x20c51e['env'],'envPath':_0x20c51e[_0x259926(0x77b)],'pid':_0x20c51e[_0x259926(0x778)],'txnId':_0x20c51e[_0x259926(0x599)],'actionCount':_0x20c51e['actionCount'],'actions':_0x20c51e[_0x259926(0x77d)],'nativeCode':_0x20c51e[_0x259926(0x246)],'error':_0x1be15d?.[_0x259926(0x806)],'stack':_0x1be15d?.['stack']});}catch{}throw new _0x5b733d(_0x1be15d?.['message']||'Unknown\x20OKDB\x20transaction\x20error',_0x259926(0x639),_0x20c51e);}this[_0x259926(0x555)][_0x259926(0x425)][_0x259926(0x7bb)](_0x1c60e9[_0x259926(0x26e)],_0x523c9f);for(const _0x496584 of this['_doHooks']){try{await _0x496584();}catch{}}this[_0x259926(0x77d)]=[],this['_closeReadTransaction'](),this['_closed']=!![];}static['createWriteFacade'](_0x81b454){const _0xa5e7bd=_0x3b6c74;return Object[_0xa5e7bd(0x493)]({'id':_0x81b454['id'],'put':_0x81b454[_0xa5e7bd(0x7bc)][_0xa5e7bd(0x2f4)](_0x81b454),'update':_0x81b454[_0xa5e7bd(0x601)][_0xa5e7bd(0x2f4)](_0x81b454),'patch':_0x81b454['patch'][_0xa5e7bd(0x2f4)](_0x81b454),'create':_0x81b454[_0xa5e7bd(0x267)][_0xa5e7bd(0x2f4)](_0x81b454),'remove':_0x81b454[_0xa5e7bd(0x6a9)][_0xa5e7bd(0x2f4)](_0x81b454),'setTTL':_0x81b454[_0xa5e7bd(0x24c)][_0xa5e7bd(0x2f4)](_0x81b454),'clearTTL':_0x81b454[_0xa5e7bd(0x347)]['bind'](_0x81b454),'commit':_0x81b454[_0xa5e7bd(0x346)][_0xa5e7bd(0x2f4)](_0x81b454),'rollback':_0x81b454[_0xa5e7bd(0x784)]['bind'](_0x81b454),'get':_0x81b454['get'][_0xa5e7bd(0x2f4)](_0x81b454),'getEntry':_0x81b454['getEntry']['bind'](_0x81b454),'getMany':_0x81b454[_0xa5e7bd(0x84f)][_0xa5e7bd(0x2f4)](_0x81b454),'getRange':_0x81b454[_0xa5e7bd(0x805)][_0xa5e7bd(0x2f4)](_0x81b454),'getValues':_0x81b454[_0xa5e7bd(0x521)][_0xa5e7bd(0x2f4)](_0x81b454),'getKeys':_0x81b454['getKeys'][_0xa5e7bd(0x2f4)](_0x81b454),'byIndex':_0x81b454[_0xa5e7bd(0x1f0)][_0xa5e7bd(0x2f4)](_0x81b454),'query':_0x81b454[_0xa5e7bd(0x3a1)][_0xa5e7bd(0x2f4)](_0x81b454),'getClock':_0x81b454[_0xa5e7bd(0x353)][_0xa5e7bd(0x2f4)](_0x81b454),'getCount':_0x81b454[_0xa5e7bd(0x3b4)][_0xa5e7bd(0x2f4)](_0x81b454),'read':_0x81b454,'raw':_0x81b454});}static[_0x3b6c74(0x375)](_0x5c48c4,_0x2243b3=[]){const _0x49786b=_0x3b6c74;if(!Array[_0x49786b(0x4b6)](_0x2243b3))throw new _0x5b733d('txn\x20ops\x20must\x20be\x20an\x20array',_0x49786b(0x50c));for(const _0xd5ecfd of _0x2243b3){if(Array[_0x49786b(0x4b6)](_0xd5ecfd)){const [_0x32a3b1,..._0x407bce]=_0xd5ecfd;if(typeof _0x5c48c4[_0x32a3b1]!==_0x49786b(0x40e))throw new _0x5b733d(_0x49786b(0x581)+_0x32a3b1,_0x49786b(0x733),{'action':_0x32a3b1});_0x5c48c4[_0x32a3b1](..._0x407bce);continue;}if(!_0xd5ecfd||typeof _0xd5ecfd!==_0x49786b(0x6f7))throw new _0x5b733d('txn\x20op\x20must\x20be\x20an\x20object\x20or\x20tuple',_0x49786b(0x831));const {action:_0x465020}=_0xd5ecfd;if(typeof _0x465020!==_0x49786b(0x4c1)||typeof _0x5c48c4[_0x465020]!==_0x49786b(0x40e))throw new _0x5b733d('Unknown\x20transaction\x20action:\x20'+_0x465020,_0x49786b(0x733),{'action':_0x465020});switch(_0x465020){case _0x49786b(0x7bc):case'update':case _0x49786b(0x267):_0x5c48c4[_0x465020](_0xd5ecfd['type'],_0xd5ecfd['key'],_0xd5ecfd['value'],{..._0xd5ecfd[_0x49786b(0x5c3)],'ttl':_0xd5ecfd[_0x49786b(0x192)]??_0xd5ecfd[_0x49786b(0x5c3)]?.[_0x49786b(0x192)]??null});break;case _0x49786b(0x369):_0x5c48c4['patch'](_0xd5ecfd[_0x49786b(0x79c)],_0xd5ecfd[_0x49786b(0x491)],_0xd5ecfd['patch'],{..._0xd5ecfd[_0x49786b(0x5c3)],'ttl':_0xd5ecfd['ttl']??_0xd5ecfd[_0x49786b(0x5c3)]?.[_0x49786b(0x192)]??null});break;case _0x49786b(0x6a9):_0x5c48c4[_0x49786b(0x6a9)](_0xd5ecfd[_0x49786b(0x79c)],_0xd5ecfd[_0x49786b(0x491)],_0xd5ecfd[_0x49786b(0x5c3)]||{});break;case'setTTL':_0x5c48c4[_0x49786b(0x24c)](_0xd5ecfd[_0x49786b(0x79c)],_0xd5ecfd['key'],_0xd5ecfd['ttl']);break;case'clearTTL':_0x5c48c4[_0x49786b(0x347)](_0xd5ecfd[_0x49786b(0x79c)],_0xd5ecfd[_0x49786b(0x491)]);break;default:throw new _0x5b733d(_0x49786b(0x769)+_0x465020,'TXN_INVALID_ACTION',{'action':_0x465020});}}}static async[_0x3b6c74(0x7be)](_0x55040e,_0x26fcc6,_0x41af97={}){const _0x21ba94=_0x3b6c74,_0xc0737a=new _0x5071bb(_0x55040e,_0x41af97),_0x14a1c8=_0x5071bb['createWriteFacade'](_0xc0737a);try{typeof _0x26fcc6===_0x21ba94(0x40e)?await _0x26fcc6(_0x14a1c8):_0x5071bb['applyOps'](_0xc0737a,_0x26fcc6||[]);const _0x2e7642=_0xc0737a['actions'][_0x21ba94(0x479)];return await _0xc0737a[_0x21ba94(0x346)](),{'id':_0xc0737a['id'],'actions':_0x2e7642};}catch(_0x257c64){try{_0xc0737a[_0x21ba94(0x784)]();}catch(_0x2865ea){}throw _0x257c64;}}}return okdbTransaction=_0x5071bb,okdbTransaction;}var dist={},hasRequiredDist;function requireDist(){const _0x1b0508=_0x1ade1a;if(hasRequiredDist)return dist;hasRequiredDist=0x1,Object[_0x1b0508(0x882)](dist,'__esModule',{'value':!![]});const _0x38198f=new Float64Array(0x2),_0x539866=new Int32Array(_0x38198f[_0x1b0508(0x55c)],0x0,0x4),{lowIdx:_0x298ae8,highIdx:_0x2b4e0c}=((()=>{const _0x27e187=_0x1b0508;if(new Uint8Array(new Uint32Array([0xffee1100])[_0x27e187(0x55c)])[0x0]===0xff)return{'lowIdx':0x1,'highIdx':0x0};return{'lowIdx':0x0,'highIdx':0x1};})());let _0x2a7d24=![],_0x54a1cb;try{_0x54a1cb=new TextEncoder();}catch(_0x5f5689){}function _0x39fff2(_0x47df6e,_0x1a1c5e,position,_0x561a52){const _0x2fac46=_0x1b0508;let _0x5b2a7d=_0x1a1c5e[_0x2fac46(0x4b0)];if(!_0x5b2a7d)_0x5b2a7d=_0x1a1c5e['dataView']=new DataView(_0x1a1c5e[_0x2fac46(0x55c)],_0x1a1c5e[_0x2fac46(0x4d9)],_0x1a1c5e[_0x2fac46(0x1ac)]+0x3>>0x2<<0x2);switch(typeof _0x47df6e){case _0x2fac46(0x4c1):let _0x4e7c83=_0x47df6e[_0x2fac46(0x479)],_0x225201=_0x47df6e[_0x2fac46(0x57c)](0x0);if(!(_0x225201>=0x1c))_0x1a1c5e[position++]=0x1b;if(_0x4e7c83<0x40){let _0x1fd226,_0x490735;for(_0x1fd226=0x0;_0x1fd226<_0x4e7c83;_0x1fd226++){_0x225201=_0x47df6e[_0x2fac46(0x57c)](_0x1fd226);if(_0x225201<=0x4)_0x1a1c5e[position++]=0x4,_0x1a1c5e[position++]=_0x225201;else{if(_0x225201<0x80)_0x1a1c5e[position++]=_0x225201;else{if(_0x225201<0x800)_0x1a1c5e[position++]=_0x225201>>0x6|0xc0,_0x1a1c5e[position++]=_0x225201&0x3f|0x80;else(_0x225201&0xfc00)===0xd800&&((_0x490735=_0x47df6e[_0x2fac46(0x57c)](_0x1fd226+0x1))&0xfc00)===0xdc00?(_0x225201=0x10000+((_0x225201&0x3ff)<<0xa)+(_0x490735&0x3ff),_0x1fd226++,_0x1a1c5e[position++]=_0x225201>>0x12|0xf0,_0x1a1c5e[position++]=_0x225201>>0xc&0x3f|0x80,_0x1a1c5e[position++]=_0x225201>>0x6&0x3f|0x80,_0x1a1c5e[position++]=_0x225201&0x3f|0x80):(_0x1a1c5e[position++]=_0x225201>>0xc|0xe0,_0x1a1c5e[position++]=_0x225201>>0x6&0x3f|0x80,_0x1a1c5e[position++]=_0x225201&0x3f|0x80);}}}}else{if(_0x1a1c5e[_0x2fac46(0x66b)])position+=_0x1a1c5e[_0x2fac46(0x66b)](_0x47df6e,position,_0x1a1c5e['byteLength']-position);else position+=_0x54a1cb[_0x2fac46(0x2cf)](_0x47df6e,_0x1a1c5e[_0x2fac46(0x57a)](position))['written'];if(position>_0x1a1c5e[_0x2fac46(0x479)]-0x4)throw new RangeError('String\x20does\x20not\x20fit\x20in\x20target\x20buffer');}break;case'number':_0x38198f[0x0]=_0x47df6e;let _0x22be03=_0x539866[_0x298ae8],_0x15e585=_0x539866[_0x2b4e0c],_0x171cb8;if(_0x47df6e<0x0)return _0x5b2a7d['setInt32'](position+0x4,~(_0x22be03>>>0x4|_0x15e585<<0x1c)),_0x5b2a7d['setInt32'](position+0x0,(_0x15e585^0x7fffffff)>>>0x4),_0x5b2a7d[_0x2fac46(0x4bf)](position+0x8,(_0x22be03&0xf^0xf)<<0x4,!![]),position+0x9;else{if(_0x22be03&0xf||_0x561a52)_0x171cb8=0x9;else{if(_0x22be03&0xfffff)_0x171cb8=0x8;else{if(_0x22be03||_0x15e585&0xf)_0x171cb8=0x6;else _0x171cb8=0x4;}}}_0x5b2a7d[_0x2fac46(0x4bf)](position+0x0,_0x15e585>>>0x4|0x10000000),_0x5b2a7d[_0x2fac46(0x4bf)](position+0x4,_0x22be03>>>0x4|_0x15e585<<0x1c),_0x5b2a7d[_0x2fac46(0x4bf)](position+0x8,(_0x22be03&0xf)<<0x4,!![]);return position+_0x171cb8;case'object':if(_0x47df6e){if(Array[_0x2fac46(0x4b6)](_0x47df6e)){for(let _0x1d7479=0x0,_0x21b0d8=_0x47df6e[_0x2fac46(0x479)];_0x1d7479<_0x21b0d8;_0x1d7479++){if(_0x1d7479>0x0)_0x1a1c5e[position++]=0x0;position=_0x39fff2(_0x47df6e[_0x1d7479],_0x1a1c5e,position,!![]);}break;}else{if(_0x47df6e instanceof Uint8Array){_0x1a1c5e[_0x2fac46(0x488)](_0x47df6e,position),position+=_0x47df6e['length'];break;}else throw new Error('Unable\x20to\x20serialize\x20object\x20as\x20a\x20key:\x20'+JSON['stringify'](_0x47df6e));}}else _0x1a1c5e[position++]=0x0;break;case _0x2fac46(0x3be):_0x5b2a7d[_0x2fac46(0x22a)](position++,_0x47df6e?0x7:0x6,!![]);return position;case _0x2fac46(0x4b9):let _0x4d586a=Number(_0x47df6e);if(BigInt(_0x4d586a)>_0x47df6e){_0x38198f[0x0]=_0x4d586a;if(_0x4d586a>0x0){if(_0x539866[_0x298ae8])_0x539866[_0x298ae8]--;else _0x539866[_0x2b4e0c]--,_0x539866[_0x298ae8]=0xffffffff;}else{if(_0x539866[_0x298ae8]<0xffffffff)_0x539866[_0x298ae8]++;else _0x539866[_0x2b4e0c]++,_0x539866[_0x298ae8]=0x0;}_0x4d586a=_0x38198f[0x0];}let _0x31462e=_0x47df6e-BigInt(_0x4d586a);if(_0x31462e===0x0n)return _0x39fff2(_0x4d586a,_0x1a1c5e,position,_0x561a52);_0x39fff2(_0x4d586a,_0x1a1c5e,position,_0x561a52),position+=0x9;let _0x23001d=BigInt((_0x539866[_0x2b4e0c]>>0x14&0x7ff)-0x437),_0x265b32=_0x31462e>>_0x23001d;_0x1a1c5e[position-0x1]|=Number(_0x265b32),_0x31462e-=_0x265b32<<_0x23001d;let _0x569fac=!![];while(_0x31462e||_0x569fac){_0x569fac=![],_0x23001d-=0x7n;let _0x265ed8=_0x31462e>>_0x23001d;_0x1a1c5e[position++]=Number(_0x265ed8)|0x80,_0x31462e-=_0x265ed8<<_0x23001d;}return position;case _0x2fac46(0x296):return position;case _0x2fac46(0x640):_0x1a1c5e[position++]=0x2;return _0x39fff2(_0x47df6e[_0x2fac46(0x455)],_0x1a1c5e,position,_0x561a52);default:throw new Error('Can\x20not\x20serialize\x20key\x20of\x20type\x20'+typeof _0x47df6e);}if(_0x2a7d24&&!_0x561a52)_0x5b2a7d['setUint32'](position,0x0);return position;}let position;function _0x16512c(_0x3699d9,_0x3091e5,_0x55e3dc,_0xf468bc){const _0x54c11a=_0x1b0508;position=_0x3091e5;let _0x4d710b=_0x3699d9[position],_0x1db1f3;if(_0x4d710b<0x18){if(_0x4d710b<0x8){position++;if(_0x4d710b==0x6)_0x1db1f3=![];else{if(_0x4d710b==0x7)_0x1db1f3=!![];else{if(_0x4d710b==0x0)_0x1db1f3=null;else{if(_0x4d710b==0x2)_0x1db1f3=Symbol[_0x54c11a(0x28e)](_0x20fff0(_0x3699d9,_0x55e3dc));else return Uint8Array[_0x54c11a(0x259)][_0x54c11a(0x4e8)][_0x54c11a(0x881)](_0x3699d9,_0x3091e5,_0x55e3dc);}}}}else{let _0x45c09e;try{_0x45c09e=_0x3699d9[_0x54c11a(0x4b0)]||(_0x3699d9[_0x54c11a(0x4b0)]=new DataView(_0x3699d9['buffer'],_0x3699d9[_0x54c11a(0x4d9)],_0x3699d9[_0x54c11a(0x1ac)]+0x3>>0x2<<0x2));}catch(_0xf45ffe){_0x45c09e=_0x3699d9['dataView']||(_0x3699d9[_0x54c11a(0x4b0)]=new DataView(_0x3699d9[_0x54c11a(0x55c)],_0x3699d9[_0x54c11a(0x4d9)],_0x3699d9[_0x54c11a(0x55c)]['byteLength']-_0x3699d9[_0x54c11a(0x4d9)]));}let _0x5041df=_0x45c09e[_0x54c11a(0x53a)](position)<<0x4,_0x5430f6=_0x55e3dc-position,_0x152f6c;if(_0x5430f6>0x4)_0x152f6c=position+0x8<=_0x3699d9['length']?_0x45c09e[_0x54c11a(0x53a)](position+0x4):_0x3699d9[position+0x4]<<0x18|_0x3699d9[position+0x5]<<0x10|_0x3699d9[position+0x6]<<0x8|_0x3699d9[position+0x7],_0x5041df|=_0x152f6c>>>0x1c,_0x5430f6<=0x6&&(_0x152f6c&=-0x10000),_0x152f6c=_0x152f6c<<0x4,_0x5430f6>0x8&&(_0x152f6c=_0x152f6c|_0x3699d9[position+0x8]>>0x4);else _0x152f6c=0x0;_0x4d710b<0x10&&(_0x5041df=_0x5041df^0x7fffffff,_0x152f6c=~_0x152f6c);_0x539866[_0x2b4e0c]=_0x5041df,_0x539866[_0x298ae8]=_0x152f6c,_0x1db1f3=_0x38198f[0x0],position+=0x9;if(_0x5430f6>0x9&&_0x3699d9[position]>0x0){_0x1db1f3=BigInt(_0x1db1f3);let _0x1c620c=_0x5041df>>0x14&0x7ff,_0x2e7c30=_0x3699d9[position-0x1]&0xf;_0x1db1f3+=BigInt(_0x2e7c30)<<BigInt(_0x1c620c-0x437);while((_0x2e7c30=_0x3699d9[position])>0x0&&position++<_0x55e3dc){_0x1db1f3+=BigInt(_0x2e7c30&0x7f)<<BigInt((_0x3091e5-position)*0x7+_0x1c620c-0x3f8);}}}}else{_0x4d710b==0x1b&&position++;_0x1db1f3=_0x20fff0(_0x3699d9,_0x55e3dc);if(position<_0x55e3dc)position--;}while(position<_0x55e3dc){if(_0x3699d9[position]===0x0)position++;if(_0xf468bc)return _0x3ad2e6[_0x54c11a(0x833)]=position,_0x1db1f3;let _0x4f4a69=_0x16512c(_0x3699d9,position,_0x55e3dc,!![]);if(_0x1db1f3 instanceof Array)_0x1db1f3[_0x54c11a(0x2e6)](_0x4f4a69);else _0x1db1f3=[_0x1db1f3,_0x4f4a69];}return _0x1db1f3;}const _0x36d975=()=>_0x2a7d24=!![],_0x3ad2e6={'writeKey':_0x39fff2,'readKey':_0x16512c,'enableNullTermination':_0x36d975};let _0x1cac41=[],_0x458855=0x0;const _0x5b681e=typeof Buffer!==_0x1b0508(0x296),_0x6daad0=_0x5b681e?Buffer[_0x1b0508(0x7cb)]:Uint8Array,_0x24c3ed=_0xbbdbdc=>{const _0x4d35ae=_0x1b0508;let _0x1dbc85;_0x458855+0x64>_0x1cac41[_0x4d35ae(0x479)]&&(_0x1cac41=new _0x6daad0(0x2000),_0x458855=0x0,_0x1dbc85=!![]);try{let _0x3af7c6=_0x1cac41[_0x4d35ae(0x4e8)](_0x458855,_0x458855=_0x39fff2(_0xbbdbdc,_0x1cac41,_0x458855));if(_0x458855>_0x1cac41['length']){if(_0x1dbc85)throw new Error(_0x4d35ae(0x2f7));return _0x24c3ed(_0xbbdbdc);}return _0x3af7c6;}catch(_0x16f20b){if(_0x1dbc85)throw _0x16f20b;return _0x458855=_0x1cac41['length'],_0x24c3ed(_0xbbdbdc);}},_0x381831=_0x87eefc=>{return _0x16512c(_0x87eefc,0x0,_0x87eefc['length']);},fromCharCode=String[_0x1b0508(0x484)];function _0x283093(){const _0x6ac6e7=_0x1b0508;let _0x138b51=_0x6ac6e7(0x41a),_0x212f70=[];for(let _0x35188b=0x0;_0x35188b<0x30;_0x35188b++){let _0x477edd=fromCharCode((_0x35188b&0xf)+0x61)+fromCharCode((_0x35188b>>0x4)+0x61);_0x138b51+=_0x6ac6e7(0x466)+_0x477edd+_0x6ac6e7(0x586)+_0x477edd+_0x6ac6e7(0x64e)+_0x477edd+_0x6ac6e7(0x610)+_0x477edd+_0x6ac6e7(0x32b)+_0x477edd+',\x20source)\x0a\x09\x09}\x20else\x20{\x0a\x09\x09\x09if\x20('+_0x477edd+_0x6ac6e7(0x696)+_0x477edd+_0x6ac6e7(0x886)+_0x212f70+_0x6ac6e7(0x845),_0x212f70[_0x6ac6e7(0x2e6)](_0x477edd);}return _0x138b51+=_0x6ac6e7(0x293)+_0x212f70+')\x20+\x20readString(source)}',_0x138b51;}const readString=typeof process!==_0x1b0508(0x296)&&process[_0x1b0508(0x710)]?function(_0x55c94b){let {setPosition:_0x164e0a,getPosition:_0x320552,readString:readString}=_0x55c94b;return _0x5d8b4f=>{_0x164e0a(position);let _0x5ed0bf=readString(_0x5d8b4f);return position=_0x320552(),_0x5ed0bf;};}(new Function(_0x1b0508(0x484),_0x1b0508(0x499)+_0x283093()+';return\x20{'+'setPosition(p)\x20{\x20position\x20=\x20p\x20},'+_0x1b0508(0x1a5)+_0x1b0508(0x4d2))(fromCharCode)):eval(_0x283093());function _0x20fff0(_0x5ad3eb,_0x5a33fc){if(_0x5ad3eb[_0x5a33fc]>0x0){let _0x187b63=_0x5ad3eb[_0x5a33fc];try{return _0x5ad3eb[_0x5a33fc]=0x0,readString(_0x5ad3eb);}finally{_0x5ad3eb[_0x5a33fc]=_0x187b63;}}else return readString(_0x5ad3eb);}function _0xb9c176(_0xf3f7bf,_0x35d129){const _0x3d1255=_0x1b0508;if(typeof _0xf3f7bf==_0x3d1255(0x6f7)){if(!_0xf3f7bf)return _0x35d129==null?0x0:-0x1;if(_0xf3f7bf['compare']){if(_0x35d129==null)return 0x1;else return _0x35d129[_0x3d1255(0x59b)]?_0xf3f7bf[_0x3d1255(0x59b)](_0x35d129):-0x1;}let _0x59ebb5;if(_0x35d129 instanceof Array){let _0x402040=0x0;while((_0x59ebb5=_0xb9c176(_0xf3f7bf[_0x402040],_0x35d129[_0x402040]))==0x0&&_0x402040<=_0xf3f7bf['length']){_0x402040++;}return _0x59ebb5;}_0x59ebb5=_0xb9c176(_0xf3f7bf[0x0],_0x35d129);if(_0x59ebb5==0x0&&_0xf3f7bf[_0x3d1255(0x479)]>0x1)return 0x1;return _0x59ebb5;}else{if(typeof _0xf3f7bf==typeof _0x35d129)return typeof _0xf3f7bf===_0x3d1255(0x640)&&(_0xf3f7bf=Symbol[_0x3d1255(0x1ef)](_0xf3f7bf),_0x35d129=Symbol[_0x3d1255(0x1ef)](_0x35d129)),_0xf3f7bf<_0x35d129?-0x1:_0xf3f7bf===_0x35d129?0x0:0x1;else{if(typeof _0x35d129==_0x3d1255(0x6f7)){if(_0x35d129 instanceof Array)return-_0xb9c176(_0x35d129,_0xf3f7bf);return 0x1;}else return _0x945cec[typeof _0xf3f7bf]<_0x945cec[typeof _0x35d129]?-0x1:0x1;}}}const _0x945cec={'symbol':0x0,'undefined':0x1,'boolean':0x2,'number':0x3,'string':0x4},_0x4f5baf=null,_0x4f7f9f=new Uint8Array([0xff]);return dist['MAXIMUM_KEY']=_0x4f7f9f,dist[_0x1b0508(0x49d)]=_0x4f5baf,dist[_0x1b0508(0x1d6)]=_0xb9c176,dist['enableNullTermination']=_0x36d975,dist[_0x1b0508(0x289)]=_0x3ad2e6,dist['fromBufferKey']=_0x381831,dist[_0x1b0508(0x822)]=_0x16512c,dist['toBufferKey']=_0x24c3ed,dist[_0x1b0508(0x634)]=_0x39fff2,dist;}var keyenc,hasRequiredKeyenc;function requireKeyenc(){const _0x248fe4=_0x1ade1a;if(hasRequiredKeyenc)return keyenc;hasRequiredKeyenc=0x1;const {writeKey:_0x5120c4}=requireDist(),_0x1f23e1=0x7ba,_0x2015c2=0x1000;function _0x581a40(_0x4fd5f2,_0xa1b5ff){const _0x1f825c=_0x3f13;switch(typeof _0x4fd5f2){case _0x1f825c(0x4c1):return _0x4fd5f2['length']<=_0x1f23e1&&_0x4fd5f2[_0x1f825c(0x30e)]();case _0x1f825c(0x729):case _0x1f825c(0x3be):return!![];case _0x1f825c(0x6f7):if(_0x4fd5f2===null)return!![];if(Array['isArray'](_0x4fd5f2)){if(_0xa1b5ff>0x8||_0x4fd5f2[_0x1f825c(0x479)]>_0x1f23e1)return![];for(let _0x2c5f77=0x0;_0x2c5f77<_0x4fd5f2[_0x1f825c(0x479)];_0x2c5f77++)if(!_0x581a40(_0x4fd5f2[_0x2c5f77],_0xa1b5ff+0x1))return![];return!![];}return Buffer['isBuffer'](_0x4fd5f2)&&_0x4fd5f2[_0x1f825c(0x479)]<=_0x1f23e1;default:return![];}}function _0x7f364d(_0x4932a0,_0x5cb6bc){const _0x4c43bb=_0x3f13,_0x5a4587=typeof _0x4932a0;if(_0x5a4587===_0x4c43bb(0x4c1)){if(_0x4932a0['length']>=0x40||!_0x4932a0[_0x4c43bb(0x30e)]()){if(!_0x581a40(_0x4932a0,0x0))return-0x1;}}else{if(_0x5a4587!==_0x4c43bb(0x729)){if(Array['isArray'](_0x4932a0)?_0x4932a0['length']===0x0||!_0x581a40(_0x4932a0,0x0):!_0x581a40(_0x4932a0,0x0))return-0x1;}}let _0x246f9d;try{_0x246f9d=_0x5120c4(_0x4932a0,_0x5cb6bc,0x0);}catch{return-0x1;}return _0x246f9d>0x0&&_0x246f9d<=_0x1f23e1?_0x246f9d:-0x1;}return keyenc={'encodeKey':_0x7f364d,'KEY_BUF_SIZE':_0x2015c2,'NO_FAST':Symbol(_0x248fe4(0x46f))},keyenc;}var okdbHlc,hasRequiredOkdbHlc;function requireOkdbHlc(){if(hasRequiredOkdbHlc)return okdbHlc;hasRequiredOkdbHlc=0x1;const _0x41a663=0x400,_0x35eb9a=_0x41a663-0x1,_0x55cf15=0xea60;function _0x4583a4(_0x11b757,_0x193c38){const _0x3cb034=_0x3f13;return _0x11b757*_0x41a663+Math[_0x3cb034(0x3c5)](0x0,Math[_0x3cb034(0x5b5)](_0x193c38,_0x35eb9a));}function _0x4e91cb(_0x5d48b0){const _0x42ddcd=_0x3f13,_0xffb06e=Math[_0x42ddcd(0x3c5)](0x0,Number(_0x5d48b0)||0x0),_0xe10e46=_0xffb06e%_0x41a663,_0x4c1d0e=(_0xffb06e-_0xe10e46)/_0x41a663;return{'pt':_0x4c1d0e,'l':_0xe10e46};}function _0x3f2197(_0x5f58fa,_0x33d06a=Date['now']()){const _0x14c9ea=_0x3f13,{pt:_0x14e8ad,l:_0x49b381}=_0x4e91cb(_0x5f58fa),_0x99edfd=Math['max'](_0x14e8ad,_0x33d06a),_0x298a01=_0x99edfd===_0x14e8ad?Math[_0x14c9ea(0x5b5)](_0x49b381+0x1,_0x35eb9a):0x0;return _0x4583a4(_0x99edfd,_0x298a01);}function _0x4ea141(_0x317642,_0x4a44b5,_0x2c73a6=Date['now']()){const _0x3fc380=_0x3f13,{pt:_0x52d192,l:_0x3b0221}=_0x4e91cb(_0x317642),{pt:_0x2184f9,l:_0x5b524a}=_0x4e91cb(_0x4a44b5),_0x4d430c=Math[_0x3fc380(0x3c5)](_0x52d192,_0x2184f9,_0x2c73a6);let _0x22b310;if(_0x4d430c===_0x52d192&&_0x4d430c===_0x2184f9)_0x22b310=Math['min'](Math[_0x3fc380(0x3c5)](_0x3b0221,_0x5b524a)+0x1,_0x35eb9a);else{if(_0x4d430c===_0x52d192)_0x22b310=Math[_0x3fc380(0x5b5)](_0x3b0221+0x1,_0x35eb9a);else _0x4d430c===_0x2184f9?_0x22b310=Math[_0x3fc380(0x5b5)](_0x5b524a+0x1,_0x35eb9a):_0x22b310=0x0;}return _0x4583a4(_0x4d430c,_0x22b310);}function _0x1e7ae5(_0x5c0c31,_0x584061){const _0x32594b=Number(_0x5c0c31)||0x0,_0xb1d119=Number(_0x584061)||0x0;if(_0x32594b<_0xb1d119)return-0x1;if(_0x32594b>_0xb1d119)return 0x1;return 0x0;}function _0x5de2c0(_0x2ec898){return _0x4e91cb(_0x2ec898)['pt'];}return okdbHlc={'send':_0x3f2197,'recv':_0x4ea141,'compare':_0x1e7ae5,'toMs':_0x5de2c0,'encode':_0x4583a4,'decode':_0x4e91cb,'SCALE':_0x41a663,'L_MAX':_0x35eb9a,'DRIFT_MAX':_0x55cf15},okdbHlc;}var env,hasRequiredEnv;function requireEnv(){const _0x5b0fae=_0x1ade1a;if(hasRequiredEnv)return env;hasRequiredEnv=0x1;const {fromArray:_0x42bf0f,chunkedRange:_0x3bdb9e,pinnedChunks:_0x354de5,claimPrefetch:_0x20d677}=requireIterable(),{reclass:_0x425c4a,NotImplementedNative:_0x278464,OKDBError:_0x50c0e8,optionsArg:_0x5de396}=requireErrors(),{OKDBViews:_0x565dde}=requireViews(),{OKDBQueue:_0x2390e7}=requireQueue(),{OKDBTimeMachine:_0x39ce78}=requireTimemachine(),_0x4e7a41=_0x586911=>{const _0x12d92c=_0x3f13;try{return!_0x586911[_0x12d92c(0x27b)]||_0x586911[_0x12d92c(0x27b)]['isFeatureEnabled'](_0x12d92c(0x337));}catch{return!![];}},{OKDBFiles:_0x3f31f8}=requireFiles(),{OKDBEngines:_0x1343e5,OKDBPipelines:_0x316802}=requireEngines(),{OKDBFunctions:_0x393bdb}=requireFunctions(),_0x49f8b5=requireProcessor(),{RawDb:_0x13e6a4}=requireRawdb(),_0x4860b3=requireBridge();let _0x21f4a4=null;const _0x35927d=()=>_0x21f4a4||=requireOkdbTransaction(),_0x224c76=(..._0x134034)=>requireOkdbGuardedRange()[_0x5b0fae(0x52a)](..._0x134034),_0x190aa1=Buffer[_0x5b0fae(0x5f7)]([0xff]),_0x2a802d=process.env.OKDB_NATIVE_RAW_READS!=='0',_0xe5da38=_0x2a802d&&process.env.OKDB_NATIVE_FAST_GET!=='0',{NO_FAST:_0x4ff23f}=requireKeyenc(),_0x13e67c=new Set(_0x2a802d?[_0x5b0fae(0x805),_0x5b0fae(0x1f0),_0x5b0fae(0x3a1),_0x5b0fae(0x6fd),_0x5b0fae(0x42e)]:[]),_0x5e70ae=new Set([_0x5b0fae(0x616),_0x5b0fae(0x242),'getMany',_0x5b0fae(0x805),'getKeys',_0x5b0fae(0x521),_0x5b0fae(0x3b4),_0x5b0fae(0x744),_0x5b0fae(0x676),'byIndex',_0x5b0fae(0x155),_0x5b0fae(0x3a1),_0x5b0fae(0x79e),_0x5b0fae(0x743),_0x5b0fae(0x353),_0x5b0fae(0x6fd),_0x5b0fae(0x5ad),_0x5b0fae(0x38b),_0x5b0fae(0x176),_0x5b0fae(0x55e),_0x5b0fae(0x45d),_0x5b0fae(0x224),_0x5b0fae(0x3e5),'pinned',_0x5b0fae(0x31c),_0x5b0fae(0x258),_0x5b0fae(0x182),'getUniqueViolation',_0x5b0fae(0x384),'getViolation',_0x5b0fae(0x302),'getRefViolation','listRefViolations',_0x5b0fae(0x695),_0x5b0fae(0x1c2),_0x5b0fae(0x4ec),_0x5b0fae(0x802),_0x5b0fae(0x885),'path','id',_0x5b0fae(0x53d),_0x5b0fae(0x18b),_0x5b0fae(0x4b3),_0x5b0fae(0x776),_0x5b0fae(0x20d)]),_0x891614=new Set([_0x5b0fae(0x525),'end',_0x5b0fae(0x1a8),_0x5b0fae(0x5fd),'offset',_0x5b0fae(0x7cd),_0x5b0fae(0x339),_0x5b0fae(0x790),_0x5b0fae(0x3b9),'snapshot',_0x5b0fae(0x84d),_0x5b0fae(0x491),'valuesForKey','prefix']);function _0x9ad447(_0x1563d8,_0x1668ca,_0x8eaf7b){const _0x4fe662=new Map();return(_0x85f96d,_0x20e25c)=>{const _0x47b6b4=_0x3f13,_0x363bf2=JSON[_0x47b6b4(0x4e6)](_0x20e25c),_0x4d60f6=_0x4fe662[_0x47b6b4(0x616)](_0x363bf2);if(_0x4d60f6){if(_0x4d60f6[_0x47b6b4(0x823)]===_0x47b6b4(0x4ef))throw _0x45ce9f();_0x4fe662[_0x47b6b4(0x727)](_0x363bf2);if(_0x4d60f6['state']===_0x47b6b4(0x5e2))throw _0x4d60f6[_0x47b6b4(0x7fd)];return _0x4d60f6[_0x47b6b4(0x7fd)];}const _0x3516f6=_0x85f96d(..._0x20e25c);if(!_0x3516f6||typeof _0x3516f6[_0x47b6b4(0x1df)]!==_0x47b6b4(0x40e))return _0x3516f6;const _0x5f0430={'state':_0x47b6b4(0x4ef),'value':undefined},_0x4f1bd3=(_0x167a21,_0x3cac8a)=>{const _0xe3ed4f=_0x47b6b4;_0x5f0430['state']=_0x167a21,_0x5f0430[_0xe3ed4f(0x7fd)]=_0x3cac8a;if(_0x4fe662[_0xe3ed4f(0x616)](_0x363bf2)!==_0x5f0430)return;setTimeout(()=>_0x4fe662[_0xe3ed4f(0x616)](_0x363bf2)===_0x5f0430&&_0x4fe662['delete'](_0x363bf2),0x7530)['unref']();try{_0x1563d8[_0xe3ed4f(0x555)][_0xe3ed4f(0x82b)](_0xe3ed4f(0x425),null,_0xe3ed4f(0x7bb),[_0xe3ed4f(0x3b2),{'env':_0x1563d8[_0xe3ed4f(0x885)],'type':_0x1668ca,'field':_0x8eaf7b}],!![]);}catch{}};_0x3516f6[_0x47b6b4(0x1df)](_0x168be9=>_0x4f1bd3('ok',_0x168be9),_0x2e7b19=>_0x4f1bd3('err',_0x2e7b19));for(let _0x3aba0f=0x0;_0x3aba0f<0x64&&_0x5f0430[_0x47b6b4(0x823)]===_0x47b6b4(0x4ef);_0x3aba0f++)process['_tickCallback']();if(_0x5f0430[_0x47b6b4(0x823)]==='ok')return _0x5f0430[_0x47b6b4(0x7fd)];if(_0x5f0430[_0x47b6b4(0x823)]===_0x47b6b4(0x5e2))throw _0x5f0430[_0x47b6b4(0x7fd)];_0x4fe662[_0x47b6b4(0x488)](_0x363bf2,_0x5f0430);throw _0x45ce9f();};}function _0x45ce9f(){const _0x417a7c=_0x5b0fae;return Object[_0x417a7c(0x257)](new Error(_0x417a7c(0x7ee)),{'code':_0x417a7c(0x3bc)});}class _0x3c0f75{constructor(_0x3cc71e,_0x344b6e){const _0x18b597=_0x5b0fae;this[_0x18b597(0x555)]=_0x3cc71e,this[_0x18b597(0x885)]=_0x344b6e,this[_0x18b597(0x425)]=_0x3cc71e[_0x18b597(0x425)],this['log']=_0x3cc71e[_0x18b597(0x629)],this[_0x18b597(0x232)]=!![],this[_0x18b597(0x56d)]=null,this[_0x18b597(0x4fd)]=new _0x565dde(this),this[_0x18b597(0x548)]=new _0x49f8b5(this);if(!_0x344b6e[_0x18b597(0x70d)]('~')||_0x344b6e[_0x18b597(0x2bc)](':emb:'))this[_0x18b597(0x7b6)]=new _0x2390e7(this);if(!_0x344b6e[_0x18b597(0x70d)]('~'))this[_0x18b597(0x513)]=new _0x3f31f8(this);this[_0x18b597(0x4a7)]=new _0x393bdb(_0x3cc71e,_0x344b6e),this[_0x18b597(0x5a4)]=new _0x1343e5(_0x3cc71e,_0x344b6e,_0x3cc71e[_0x18b597(0x5a4)]),this[_0x18b597(0x35c)]=new _0x316802(_0x3cc71e,_0x344b6e);if(!_0x344b6e[_0x18b597(0x70d)]('~')&&_0x3cc71e['options'][_0x18b597(0x337)]&&_0x4e7a41(_0x3cc71e))this[_0x18b597(0x337)]=new _0x39ce78(this);_0x4860b3[_0x18b597(0x849)](this[_0x18b597(0x72d)],this);const _0x5c5581=this;this[_0x18b597(0x57b)]={async 'transaction'(_0x288293){const _0x285500=_0x18b597,_0x4caafe=[];_0x5c5581['_txnBuf']=_0x4caafe;try{_0x288293();}finally{_0x5c5581['_txnBuf']=null;}return _0x5c5581['okdb'][_0x285500(0x630)][_0x285500(0x281)](_0x285500(0x53c),_0x5c5581[_0x285500(0x885)],'commit',[_0x4caafe]);},'drain'(){const _0x1095f1=_0x18b597;return _0x5c5581[_0x1095f1(0x555)][_0x1095f1(0x630)][_0x1095f1(0x303)]();},'flushLmdb'(){const _0x4c4837=_0x18b597;return _0x5c5581['okdb'][_0x4c4837(0x630)][_0x4c4837(0x303)]();},'markClosed'(){}};const _0x34ef34=new _0x13e6a4(this,'');_0x34ef34[_0x18b597(0x6e6)]=()=>({'lastTxnId':this['_n'](_0x18b597(0x53d),[])}),Object[_0x18b597(0x882)](_0x34ef34,_0x18b597(0x29b),{'get':()=>this['okdb']['_wb'][_0x18b597(0x303)](),'configurable':!![]}),Object['defineProperty'](_0x34ef34,_0x18b597(0x43f),{'get':()=>this['okdb'][_0x18b597(0x630)][_0x18b597(0x303)](),'configurable':!![]});const _0x553c6b=_0x34ef34[_0x18b597(0x616)]['bind'](_0x34ef34);_0x34ef34['get']=_0x9677fb=>_0x9677fb===_0x18b597(0x85a)?this['_n'](_0x18b597(0x353),[null]):_0x553c6b(_0x9677fb),this['db']=_0x34ef34;}async[_0x5b0fae(0x469)](){const _0x3665a2=_0x5b0fae;this[_0x3665a2(0x386)]=!![];}get[_0x5b0fae(0x2bb)](){const _0x4ebc45=_0x5b0fae;return new Map(this[_0x4ebc45(0x555)][_0x4ebc45(0x82b)]('db',null,_0x4ebc45(0x5e6),[this[_0x4ebc45(0x885)]],![]));}get['typesDb'](){const _0x184f5e=_0x5b0fae;return this[_0x184f5e(0x4e9)]||(this['_typesDb']=new _0x13e6a4(this,_0x184f5e(0x504)));}[_0x5b0fae(0x83f)](_0x3c761e){const _0x443e6=_0x5b0fae,_0x4b6145=this[_0x443e6(0x1bb)][_0x443e6(0x616)](_0x3c761e);if(_0x4b6145===undefined||String(_0x3c761e)[_0x443e6(0x70d)](_0x443e6(0x158))||String(_0x3c761e)[_0x443e6(0x70d)](_0x443e6(0x66e))){const {OKDBError:_0x46763a}=requireErrors();throw new _0x46763a('Type\x20\x22'+_0x3c761e+_0x443e6(0x7a9),'TYPE_NOT_REGISTERED',{'type':_0x3c761e});}const _0x5d02f3=this,_0x12d3aa=new _0x13e6a4(_0x5d02f3,_0x443e6(0x627)+_0x3c761e+_0x443e6(0x73d)),_0x14dfe9=new Map();for(const _0x47a2df of _0x12d3aa[_0x443e6(0x42e)]()){const _0x27946f=_0x12d3aa[_0x443e6(0x616)](_0x47a2df)||{},_0x3b9d07={'parts':_0x47a2df[_0x443e6(0x3bd)]('~'),'db':new _0x13e6a4(_0x5d02f3,'type:'+_0x3c761e+_0x443e6(0x1e6)+_0x47a2df,{'dupSort':!![]})};if(_0x27946f[_0x443e6(0x15a)])_0x3b9d07[_0x443e6(0x15a)]=_0x27946f[_0x443e6(0x15a)];if(_0x27946f['unique'])_0x3b9d07[_0x443e6(0x58e)]=!![];if(_0x27946f[_0x443e6(0x6a6)])_0x3b9d07[_0x443e6(0x6a6)]=!![];if(_0x27946f[_0x443e6(0x6b2)])_0x3b9d07[_0x443e6(0x6b2)]=_0x27946f[_0x443e6(0x6b2)];_0x3b9d07[_0x443e6(0x13d)]=new Set((_0x27946f[_0x443e6(0x13d)]??[])['map'](_0x11a366=>_0x11a366[_0x443e6(0x14e)]+':'+_0x11a366['name'])),_0x14dfe9[_0x443e6(0x488)](_0x47a2df,_0x3b9d07);}return{'root':new _0x13e6a4(_0x5d02f3,'type:'+_0x3c761e),'data':new _0x13e6a4(_0x5d02f3,_0x443e6(0x627)+_0x3c761e+_0x443e6(0x757),{'useVersions':!![]}),'indexes':_0x12d3aa,'clockToChange':new _0x13e6a4(_0x5d02f3,_0x443e6(0x627)+_0x3c761e+_0x443e6(0x35e)),'keyToChange':new _0x13e6a4(_0x5d02f3,_0x443e6(0x627)+_0x3c761e+_0x443e6(0x2e9)),'fieldSchema':new Map(Object[_0x443e6(0x325)](_0x4b6145['fields']||{})[_0x443e6(0x6f2)](([_0x801422,_0x57cac0])=>[_0x801422,new Set(Array[_0x443e6(0x4b6)](_0x57cac0)?_0x57cac0:[_0x57cac0])])),'indexToDb':_0x14dfe9,'ftsToDb':null,'schema':_0x4b6145[_0x443e6(0x17d)]||null,'defaultTTL':_0x4b6145[_0x443e6(0x571)]||null};}get[_0x5b0fae(0x847)](){const _0x60d778=_0x5b0fae,_0x1d38fc=this,_0x14fb26=()=>_0x1d38fc[_0x60d778(0x55e)]();return{'get':_0x10066c=>{const _0x3e5ee1=_0x60d778;try{return _0x1d38fc[_0x3e5ee1(0x83f)](_0x10066c);}catch{return undefined;}},'has':_0x43bec8=>_0x14fb26()[_0x60d778(0x2bc)](_0x43bec8),'keys':()=>_0x14fb26()[Symbol[_0x60d778(0x821)]](),get 'size'(){return _0x14fb26()['length'];}};}[_0x5b0fae(0x811)](){const _0x1bc389=_0x5b0fae;return this[_0x1bc389(0x55e)]();}get['changeToClockDb'](){const _0x4fe24f=_0x5b0fae;return this['_changeToClockDb']||(this[_0x4fe24f(0x828)]=new _0x13e6a4(this,_0x4fe24f(0x51b)));}get[_0x5b0fae(0x2c1)](){const _0x4a985a=_0x5b0fae;return this['_clockToChangeDb']||(this[_0x4a985a(0x2dd)]=new _0x13e6a4(this,_0x4a985a(0x80f)));}[_0x5b0fae(0x637)](_0xc0ec7d){const _0xf2c3e7=_0x5b0fae;return this['_n'](_0xf2c3e7(0x4ba),[_0xc0ec7d]);}get['_noChangelog'](){const _0x478852=_0x5b0fae;return!this['_n'](_0x478852(0x52e),[],![]);}get[_0x5b0fae(0x765)](){const _0x26212b=_0x5b0fae;return this[_0x26212b(0x30a)]!==undefined?this[_0x26212b(0x30a)]:this['_n'](_0x26212b(0x52e),[],![]);}set[_0x5b0fae(0x765)](_0x33ae6f){const _0x560878=_0x5b0fae;this[_0x560878(0x30a)]=_0x33ae6f;}get[_0x5b0fae(0x722)](){const _0x455e16=_0x5b0fae;return this[_0x455e16(0x60b)]||(this[_0x455e16(0x60b)]=new(requireLock())[(_0x455e16(0x288))](this[_0x455e16(0x555)],_0x455e16(0x196),_0x455e16(0x2b0),{'ttlMs':0xea60}));}get[_0x5b0fae(0x72d)](){const _0x115c7e=_0x5b0fae;return this[_0x115c7e(0x3ff)]??(this[_0x115c7e(0x3ff)]=this['_n'](_0x115c7e(0x72d),[]));}get['id'](){return this['_n']('id',[]);}get[_0x5b0fae(0x4fa)](){const _0x31a2d3=_0x5b0fae;return this[_0x31a2d3(0x555)][_0x31a2d3(0x4fa)];}['_n'](_0x506232,_0x34e87e){const _0x59db6e=_0x5b0fae;return this[_0x59db6e(0x555)]['_call'](_0x59db6e(0x53c),this[_0x59db6e(0x885)],_0x506232,_0x34e87e,!_0x5e70ae[_0x59db6e(0x4a8)](_0x506232));}[_0x5b0fae(0x2c8)](_0x2f6bae){const _0x63aa05=_0x5b0fae;return this[_0x63aa05(0x555)][_0x63aa05(0x51a)](_0x2f6bae);}[_0x5b0fae(0x668)](_0x2e9ced,_0x10fd0b){const _0x116327=_0x5b0fae;if(_0x13e67c[_0x116327(0x4a8)](_0x2e9ced===_0x116327(0x445)?_0x10fd0b[0x1]:_0x2e9ced))return this[_0x116327(0x555)][_0x116327(0x873)](this[_0x116327(0x885)],_0x2e9ced,_0x10fd0b);return this[_0x116327(0x555)][_0x116327(0x49c)](_0x116327(0x53c),this[_0x116327(0x885)],_0x2e9ced,_0x10fd0b);}[_0x5b0fae(0x84d)](_0x3d01a5={'useReadTransaction':![]}){return new(_0x35927d())(this,_0x3d01a5);}async[_0x5b0fae(0x82f)](_0x2dd5e8,_0x69b56d){const _0x2a1477=_0x5b0fae;return _0x35927d()[_0x2a1477(0x7be)](this,_0x2dd5e8,_0x69b56d);}[_0x5b0fae(0x6ec)](_0x2864ee,_0x14b8d6){const _0xf12d18=_0x5b0fae;if(this[_0xf12d18(0x56d)])this[_0xf12d18(0x56d)]['push']({'action':_0x2864ee,'args':_0x14b8d6});else this['_n'](_0x2864ee,_0x14b8d6);}[_0x5b0fae(0x1ea)](_0x4c0caf,_0x4888f1,_0x4d8c4e,_0x131b3e,_0x7ce1ae){const _0x4d03c4=_0x5b0fae;this[_0x4d03c4(0x6ec)]('put',[_0x4888f1,_0x4d8c4e,_0x131b3e,_0x7ce1ae]);}['_update'](_0xc7387e,_0x31206f,_0x29855a,_0x1e71e4,_0x3e8ba7){const _0x28c632=_0x5b0fae;this[_0x28c632(0x6ec)](_0x28c632(0x601),[_0x31206f,_0x29855a,_0x1e71e4,_0x3e8ba7]);}['_patch'](_0x495f6d,_0x5e903f,_0x558e17,_0x30ad81,_0x42b55c){const _0x5d7582=_0x5b0fae;this[_0x5d7582(0x6ec)](_0x5d7582(0x369),[_0x5e903f,_0x558e17,_0x30ad81,_0x42b55c]);}[_0x5b0fae(0x595)](_0x1a878d,_0x3afcd6,_0x4fd48a,_0x2c16bf,_0x20c0ce){const _0x6c2468=_0x5b0fae;this[_0x6c2468(0x6ec)](_0x6c2468(0x267),[_0x3afcd6,_0x4fd48a,_0x2c16bf,_0x20c0ce]);}[_0x5b0fae(0x498)](_0x293999,_0x27f782,_0x35c688,_0x1ca27a){const _0x1eef19=_0x5b0fae;this['_low'](_0x1eef19(0x6a9),[_0x27f782,_0x35c688,_0x1ca27a]);}['_setTTL'](_0x1448ac,_0x273fc4,_0x4c8490,_0x8062c9){const _0x671520=_0x5b0fae;this['_low'](_0x671520(0x24c),[_0x273fc4,_0x4c8490,_0x8062c9]);}[_0x5b0fae(0x4bd)](_0x4a5239,_0x15d1da,_0x5d93bd){const _0x4b8a9a=_0x5b0fae;this[_0x4b8a9a(0x6ec)]('clearTTL',[_0x15d1da,_0x5d93bd]);}['_w'](_0x594fa3,_0x1b8d3d){const _0x5aebcc=_0x5b0fae;return this['okdb']['_wb']['enqueue']('env',this[_0x5aebcc(0x885)],_0x594fa3,_0x1b8d3d);}['put'](_0x51b627,_0x3a1974,_0x24db21,_0x1b03d4={}){const _0x3741b1=_0x5b0fae;return this['_w'](_0x3741b1(0x7bc),[_0x51b627,_0x3a1974,_0x24db21,_0x1b03d4]);}[_0x5b0fae(0x601)](_0x361b39,_0x538447,_0x2643ed,_0x6e2fc7={}){const _0x445541=_0x5b0fae;return this['_w'](_0x445541(0x601),[_0x361b39,_0x538447,_0x2643ed,_0x6e2fc7]);}['patch'](_0x2b9cf2,_0xdfb468,_0x117667,_0x8ab572={}){const _0x204a7b=_0x5b0fae;return this['_w'](_0x204a7b(0x369),[_0x2b9cf2,_0xdfb468,_0x117667,_0x8ab572]);}[_0x5b0fae(0x267)](_0x5aea09,_0x4bf43a,_0x57a2e3,_0x11b615={}){const _0xb6c370=_0x5b0fae;return this['_w'](_0xb6c370(0x267),[_0x5aea09,_0x4bf43a,_0x57a2e3,_0x11b615]);}[_0x5b0fae(0x6a9)](_0x3c18b2,_0x25b280,_0x339dc4={}){const _0x44ccb4=_0x5b0fae;return this['_w'](_0x44ccb4(0x6a9),[_0x3c18b2,_0x25b280,_0x339dc4]);}['get'](_0x1a7b9d,_0x30262c,_0xa91a25){const _0x430013=_0x5b0fae;if(_0xe5da38&&typeof _0x1a7b9d===_0x430013(0x4c1)){const _0x481609=this[_0x430013(0x555)][_0x430013(0x1c9)](this['name'],_0x1a7b9d,_0x30262c);if(_0x481609!==_0x4ff23f)return _0x481609===null?this['_n'](_0x430013(0x616),[_0x1a7b9d,_0x30262c]):_0x481609;}if(_0x2a802d&&(typeof _0x30262c===_0x430013(0x4c1)||typeof _0x30262c===_0x430013(0x729))){const _0x14bca6=this[_0x430013(0x555)]['_getRaw'](this[_0x430013(0x885)],_0x1a7b9d,_0x30262c);if(_0x14bca6!==null)return _0x14bca6;}return this['_n'](_0x430013(0x616),[_0x1a7b9d,typeof _0x30262c===_0x430013(0x640)?null:_0x30262c]);}[_0x5b0fae(0x84f)](_0x596e5e,_0x5a0450,_0x14e321){const _0x325f8a=_0x5b0fae,_0x34db23=[_0x596e5e,Array['isArray'](_0x5a0450)&&_0x5a0450['some'](_0x1245fb=>typeof _0x1245fb===_0x325f8a(0x640))?_0x5a0450['map'](_0xafa920=>typeof _0xafa920===_0x325f8a(0x640)?null:_0xafa920):_0x5a0450];return _0x2a802d?this['okdb']['_callRows'](this[_0x325f8a(0x885)],_0x325f8a(0x84f),_0x34db23):this['_n'](_0x325f8a(0x84f),_0x34db23);}[_0x5b0fae(0x242)](_0x30a841,_0x5791e6,_0x2f8575){const _0xb0fd4f=_0x5b0fae;return this['_n'](_0xb0fd4f(0x242),[_0x30a841,typeof _0x5791e6===_0xb0fd4f(0x640)?null:_0x5791e6]);}['getCount'](_0x120265,_0x418012){const _0xff6ce3=_0x5b0fae;return this['_assertRangeOptions'](_0xff6ce3(0x3b4),_0x418012),this['_n'](_0xff6ce3(0x3b4),[_0x120265,_0x4e4015(_0x418012)]);}[_0x5b0fae(0x424)](_0x1288da,_0xf6a7f0,_0xe862e=[]){const _0x175852=_0x5b0fae;if(!_0xf6a7f0||typeof _0xf6a7f0!==_0x175852(0x6f7))return;for(const _0x3040d9 of Object[_0x175852(0x23b)](_0xf6a7f0)){if(!_0x891614[_0x175852(0x4a8)](_0x3040d9)&&!_0xe862e['includes'](_0x3040d9))throw new _0x50c0e8(_0x1288da+_0x175852(0x1bc)+_0x3040d9+'\x27',_0x175852(0x524),{'option':_0x3040d9});}}[_0x5b0fae(0x6b3)](_0x1948c0,_0x3f9ccd,_0x3d11c3,_0x4c7789,_0x187980,_0x43560a){const _0x36c6e4=_0x5b0fae;this[_0x36c6e4(0x424)](_0x1948c0,_0x4c7789);const _0x2a2ce9=_0x4c7789?.[_0x36c6e4(0x7e2)],_0x18eed2=_0x4e4015(_0x4c7789);if(_0x2a2ce9===!![]||_0x2a2ce9===_0x36c6e4(0x50a)){const _0x483002=this[_0x36c6e4(0x7ab)](_0x1948c0,_0x3f9ccd,_0x1f4034=>[_0x3d11c3,{..._0x18eed2,..._0x1f4034}],_0x4c7789);return _0x43560a?_0x483002[_0x36c6e4(0x6f2)](_0x43560a):_0x483002;}const _0x1fc731=_0x3bdb9e(_0x5c140f=>this[_0x36c6e4(0x668)](_0x3f9ccd,[_0x3d11c3,_0x5c140f]),_0x18eed2,_0x187980,{'rows':_0x3f9ccd===_0x36c6e4(0x805)});return _0x43560a?_0x1fc731['map'](_0x43560a):_0x1fc731;}[_0x5b0fae(0x7ab)](_0x370b5e,_0x4b70c6,_0x488c54,_0x471e0b,_0x146813,_0x57bba5=![]){const _0x1691eb=_0x5b0fae,{source:_0x29365e,prefetch:_0x175d9c}=_0x354de5((_0x2cd773,_0x1cbcb9)=>_0x2cd773===_0x1691eb(0x31c)?this['_n'](_0x2cd773,_0x1cbcb9):this[_0x1691eb(0x668)](_0x2cd773,_0x1cbcb9),_0x4b70c6,_0x488c54,_0x471e0b||{},_0x146813),_0x4041c1=_0x175d9c(),_0x3c47ff=!_0x57bba5&&_0x471e0b&&_0x471e0b[_0x1691eb(0x7e2)]===_0x1691eb(0x50a);let _0x4acf8b=null;return _0x224c76(()=>({[Symbol[_0x1691eb(0x821)]]:()=>_0x4acf8b=_0x29365e(0x0,_0x20d677(_0x4041c1))}),{'label':this[_0x1691eb(0x885)]+':'+_0x370b5e,..._0x3c47ff?{'getTxnId':()=>this['db'][_0x1691eb(0x6e6)]()[_0x1691eb(0x53d)],'resume':()=>({[Symbol[_0x1691eb(0x821)]]:()=>_0x4acf8b=_0x4acf8b[_0x1691eb(0x18d)]()})}:{}});}[_0x5b0fae(0x805)](_0x3b1e8d,_0x1b2f0c){const _0x2ce8d2=_0x5b0fae;return this[_0x2ce8d2(0x6b3)](_0x2ce8d2(0x805),_0x2ce8d2(0x805),_0x3b1e8d,_0x1b2f0c,_0x4ab98e=>_0x4ab98e[_0x2ce8d2(0x491)]);}[_0x5b0fae(0x42e)](_0x2c8900,_0x4958c1){const _0x2f163b=_0x5b0fae;return this[_0x2f163b(0x6b3)]('getKeys',_0x2f163b(0x42e),_0x2c8900,_0x4958c1,_0x384324=>_0x384324);}[_0x5b0fae(0x521)](_0x22781d,_0x3fda67){const _0x5c2ab2=_0x5b0fae;return this[_0x5c2ab2(0x6b3)](_0x5c2ab2(0x521),'getRange',_0x22781d,_0x3fda67,_0x2f1ae9=>_0x2f1ae9[_0x5c2ab2(0x491)],_0x6e378=>_0x6e378[_0x5c2ab2(0x7fd)]);}[_0x5b0fae(0x744)](_0x4aab47,_0x3fe1fa,_0x3b7014={}){return this['getRange'](_0x4aab47,{'start':_0x3fe1fa,'end':_0x3fe1fa+'￿',..._0x3b7014});}[_0x5b0fae(0x676)](_0x515d2d,_0x422401,_0x2fe52d={}){const _0xe498a0=_0x5b0fae;this[_0xe498a0(0x424)]('getIndex',_0x2fe52d,[_0xe498a0(0x1c5)]);const _0x45d8fc=_0x4e4015(_0x2fe52d);if(_0x2fe52d&&_0x2fe52d['transaction'])return _0x42bf0f(this['_n'](_0xe498a0(0x676),[_0x515d2d,_0x422401,_0x45d8fc]));return this['_lazyPinned']('getIndex','getIndex',_0x28b5b2=>[_0x515d2d,_0x422401,{..._0x45d8fc,..._0x28b5b2}],_0x2fe52d,undefined,!![]);}[_0x5b0fae(0x1f0)](_0x3080a1,_0x4c29b6,_0x47883e){const _0x446be4=_0x5b0fae;this[_0x446be4(0x424)](_0x446be4(0x1f0),_0x47883e,['prefix',_0x446be4(0x78c)]);const _0x1822cb=_0x4e4015(_0x47883e);if(_0x47883e&&_0x47883e[_0x446be4(0x84d)])return _0x42bf0f(this['_n'](_0x446be4(0x1f0),[_0x3080a1,_0x4c29b6,_0x1822cb]));return this[_0x446be4(0x7ab)](_0x446be4(0x1f0),_0x446be4(0x1f0),_0x3ad766=>[_0x3080a1,_0x4c29b6,{..._0x1822cb,..._0x3ad766}],_0x47883e,undefined,!![]);}[_0x5b0fae(0x155)](_0x57c94c,_0x51b8a2,_0x4f78ef={}){const _0x168622=_0x5b0fae;return this['_n'](_0x168622(0x155),[_0x57c94c,_0x51b8a2,_0x4e4015(_0x4f78ef)]);}[_0x5b0fae(0x3a1)](_0x1c90ed,_0x40ab38={},_0x2a8a9d={}){const _0x2651cd=_0x5b0fae,_0x2bea6e=_0x21d722(_0x2a8a9d);if(_0x2a8a9d){for(const _0x20118 of Object[_0x2651cd(0x23b)](_0x2a8a9d))if(_0x20118!==_0x2651cd(0x1b5)&&typeof _0x2a8a9d[_0x20118]===_0x2651cd(0x40e))_0x2bea6e[_0x20118]=null;}if(_0x2a8a9d&&(_0x2a8a9d[_0x2651cd(0x60e)]||_0x2a8a9d[_0x2651cd(0x812)]))return this['_n']('assertQueryOptions',[_0x2bea6e]),this[_0x2651cd(0x48d)](_0x1c90ed,_0x40ab38,_0x2a8a9d);const _0x29c6bc=typeof _0x2a8a9d[_0x2651cd(0x1b5)]===_0x2651cd(0x40e)?_0x2a8a9d[_0x2651cd(0x1b5)]:null;if(_0x2a8a9d[_0x2651cd(0x70f)]||_0x115685(_0x40ab38)||_0x2a8a9d[_0x2651cd(0x84d)]!==undefined){let _0x2b3978=this['_n'](_0x2651cd(0x3a1),[_0x1c90ed,_0x40ab38,_0x2bea6e]);if(_0x29c6bc)_0x2b3978=_0x2b3978['map'](_0x29c6bc);if(_0x2a8a9d[_0x2651cd(0x70f)]||_0x115685(_0x40ab38))return _0x2b3978;return _0x42bf0f(_0x2b3978);}const _0x2ba873=_0x1e738c=>typeof _0x1e738c===_0x2651cd(0x729)&&Number[_0x2651cd(0x32e)](_0x1e738c)?Math[_0x2651cd(0x3c5)](0x0,_0x1e738c):Infinity;let _0x55a54a;if(_0x2a8a9d[_0x2651cd(0x880)]){const _0x32432c=_0x5307a9=>typeof _0x5307a9===_0x2651cd(0x729)&&_0x5307a9>0x0?Math[_0x2651cd(0x475)](_0x5307a9):0x0;_0x55a54a=this['_lazyPinned']('query','query',_0x4deb8e=>[_0x1c90ed,_0x40ab38,{..._0x2bea6e,..._0x4deb8e}],null,{'limitOf':()=>_0x2ba873(_0x2bea6e['limit']),'offsetOf':()=>_0x32432c(_0x2bea6e[_0x2651cd(0x746)])});}else _0x55a54a=_0x3bdb9e(_0x351066=>{const _0x4c8aaf=_0x2651cd,{__after:_0x55583f,..._0x1436fa}=_0x351066;return this[_0x4c8aaf(0x668)](_0x4c8aaf(0x3a1),_0x55583f===undefined?[_0x1c90ed,_0x40ab38,_0x1436fa]:[_0x1c90ed,_0x40ab38,_0x1436fa,_0x55583f]);},_0x2bea6e,_0x368190=>_0x368190[_0x2651cd(0x491)],{'limitOf':_0x2ba873,'rows':!![],'prefetch':!![],'resumeOpts':(_0xc3e456,_0x1fa4db)=>{const _0x2688f8=_0x2651cd;_0xc3e456['offset']=0x0,_0xc3e456[_0x2688f8(0x33f)]=_0x1fa4db;}});return _0x29c6bc?_0x55a54a[_0x2651cd(0x6f2)](_0x29c6bc):_0x55a54a;}async[_0x5b0fae(0x48d)](_0x2a1c33,_0x3c1895,_0x589700){const _0x3feb77=_0x5b0fae,{select:_0x5bff6e,..._0x19efca}=_0x21d722(_0x589700);let _0x2bfed7={..._0x19efca};const _0xc6e76b=_0x2bfed7[_0x3feb77(0x880)];if(_0xc6e76b&&!Array[_0x3feb77(0x4b6)](_0xc6e76b)&&typeof _0xc6e76b==='object'&&_0xc6e76b[_0x3feb77(0x153)]){const {fields:_0x137cc5,prefix:_0x2f24da,start:_0x540965,end:_0x5bd181}=_0xc6e76b;_0x2bfed7={..._0x2bfed7,'index':_0x137cc5,'prefix':_0x2f24da??_0x2bfed7[_0x3feb77(0x1c5)],'startIndex':_0x540965??_0x2bfed7[_0x3feb77(0x77c)],'endIndex':_0x5bd181??_0x2bfed7[_0x3feb77(0x723)]};}const _0x135833=await this[_0x3feb77(0x555)]['_callMacro'](_0x3feb77(0x5cf),null,_0x3feb77(0x69a),[this[_0x3feb77(0x885)],_0x2a1c33,_0x3c1895,_0x2bfed7],![]),_0x32e2a9=typeof _0x589700[_0x3feb77(0x1b5)]===_0x3feb77(0x40e)?_0x589700[_0x3feb77(0x1b5)]:null;if(!_0x32e2a9)return _0x135833;return _0x135833[_0x3feb77(0x6f2)](_0x59106e=>{const _0x42122c=_0x3feb77,{score:_0x35723a,ftsScore:_0x53dcbb,numTerms:_0x57b126,maxScore:_0x5435f7,vectorScore:_0x1c48e0,chunkHash:_0x5e46c9,chunk:_0x4badc1,..._0x2ff510}=_0x59106e,_0x139eef=_0x32e2a9(_0x2ff510);for(const [_0x46a6ba,_0x360611]of Object[_0x42122c(0x325)]({'score':_0x35723a,'ftsScore':_0x53dcbb,'numTerms':_0x57b126,'maxScore':_0x5435f7,'vectorScore':_0x1c48e0,'chunkHash':_0x5e46c9,'chunk':_0x4badc1}))if(_0x360611!==undefined)_0x139eef[_0x46a6ba]=_0x360611;return _0x139eef;});}[_0x5b0fae(0x743)](_0x3d9af6,_0x325053,_0x5ea268={}){const _0x239e9c=_0x5b0fae;let _0x1c15c7=this['_n'](_0x239e9c(0x743),[_0x3d9af6,_0x325053,_0x21d722(_0x5ea268)]);if(typeof _0x5ea268['select']===_0x239e9c(0x40e))_0x1c15c7=_0x1c15c7[_0x239e9c(0x6f2)](_0x5ea268[_0x239e9c(0x1b5)]);return _0x1c15c7;}[_0x5b0fae(0x353)](_0x1af44e=null,_0x3f6d53={}){return this['_n']('getClock',[_0x1af44e]);}[_0x5b0fae(0x6fd)](_0x418441=null,_0x2a4d6d=0x0,_0x4ece4b=Number['MAX_SAFE_INTEGER'],_0x2701a2={}){const _0x308c57=_0x5b0fae,_0x11a076=_0x4e4015(_0x2701a2);if(_0x2701a2&&_0x2701a2[_0x308c57(0x84d)])return _0x42bf0f(this['_n'](_0x308c57(0x6fd),[_0x418441,_0x2a4d6d,_0x4ece4b,_0x11a076]));return this[_0x308c57(0x7ab)](_0x308c57(0x6fd),_0x308c57(0x6fd),_0x9bc34f=>[_0x418441,_0x2a4d6d,_0x4ece4b,{..._0x11a076,..._0x9bc34f}],_0x2701a2);}[_0x5b0fae(0x5ad)](_0x57ea1e){const _0x3b3cd3=_0x5b0fae;if(Array[_0x3b3cd3(0x4b6)](_0x57ea1e))return _0x57ea1e[_0x3b3cd3(0x479)];let _0x5dd0bf=0x0;for(const _0x58c7b1 of _0x57ea1e)_0x5dd0bf++;return _0x5dd0bf;}*[_0x5b0fae(0x692)](_0x4c5cde){yield*_0x4c5cde;}[_0x5b0fae(0x38b)](){const _0x58b310=_0x5b0fae;return requireOkdbHlc()[_0x58b310(0x677)](this[_0x58b310(0x7df)]);}get[_0x5b0fae(0x1a7)](){const _0x2fe538=_0x5b0fae,_0x406cfb=this[_0x2fe538(0x555)][_0x2fe538(0x232)]?this[_0x2fe538(0x555)][_0x2fe538(0x82b)]('db',null,_0x2fe538(0x62e),[this['name']],![]):null;if(!_0x406cfb)return null;if(this[_0x2fe538(0x410)]===_0x406cfb[_0x2fe538(0x691)])return null;this[_0x2fe538(0x53b)]=this[_0x2fe538(0x53b)]||new Map();let _0x2271d1=this[_0x2fe538(0x53b)]['get'](_0x406cfb[_0x2fe538(0x691)]);if(!_0x2271d1){const _0x128027=this;_0x2271d1={'ref'(){},'unref'(){},'hasRef':()=>![],'gen':_0x406cfb[_0x2fe538(0x691)],'at':_0x406cfb['at'],'target':_0x406cfb['target'],get '_destroyed'(){const _0x29fac8=_0x2fe538,_0x11daf6=_0x128027[_0x29fac8(0x555)][_0x29fac8(0x232)]?_0x128027[_0x29fac8(0x555)][_0x29fac8(0x82b)]('db',null,_0x29fac8(0x62e),[_0x128027[_0x29fac8(0x885)]],![]):null;return!_0x11daf6||_0x11daf6[_0x29fac8(0x691)]!==this[_0x29fac8(0x691)]||_0x128027[_0x29fac8(0x410)]===this[_0x29fac8(0x691)];}},this[_0x2fe538(0x53b)][_0x2fe538(0x488)](_0x406cfb[_0x2fe538(0x691)],_0x2271d1);}return _0x2271d1;}['_cancelTTLTimeout'](){const _0x57fe2d=_0x5b0fae,_0x97d0b0=this[_0x57fe2d(0x555)][_0x57fe2d(0x82b)]('db',null,'ttlTimer',[this[_0x57fe2d(0x885)]],![]);if(_0x97d0b0)this[_0x57fe2d(0x410)]=_0x97d0b0['gen'];}get[_0x5b0fae(0x44b)](){const _0xa80f9e=_0x5b0fae,_0x46c8ca=this[_0xa80f9e(0x555)][_0xa80f9e(0x82b)]('db',null,_0xa80f9e(0x62e),[this['name']],![]);return _0x46c8ca?_0x46c8ca[_0xa80f9e(0x771)]:null;}get[_0x5b0fae(0x367)](){const _0xb4f7cc=_0x5b0fae;return this['okdb'][_0xb4f7cc(0x82b)]('db',null,_0xb4f7cc(0x398),[this['name']],![])?{'ref'(){},'unref'(){}}:null;}['_startAutoCompactCheck'](){const _0x94df70=_0x5b0fae;this['okdb']['_call']('db',null,_0x94df70(0x2ed),[this[_0x94df70(0x885)]],![]);}[_0x5b0fae(0x290)](){this['okdb']['_call']('db',null,'stopAutoCompactCheck',[this['name']],![]);}get[_0x5b0fae(0x1af)](){const _0x3bd1=_0x5b0fae,_0x1f1114=(_0x25fa3e,_0x2cdcc2)=>this[_0x3bd1(0x555)][_0x3bd1(0x82b)]('db',null,_0x25fa3e,[this[_0x3bd1(0x885)],..._0x2cdcc2],![]),_0x2712ec=Object[_0x3bd1(0x23b)](_0x1f1114(_0x3bd1(0x507),[])||{}),_0x108071={};for(const _0x4bb928 of _0x2712ec)Object['defineProperty'](_0x108071,_0x4bb928,{'enumerable':!![],'get':()=>_0x1f1114(_0x3bd1(0x507),[])?.[_0x4bb928],'set':_0x5bc70d=>{const _0xcd2433=_0x3bd1;_0x1f1114(_0xcd2433(0x208),[_0x4bb928,_0x5bc70d]);}});return _0x108071;}get['_hlc'](){return this['_n']('hlc',[]);}['equal'](_0x4751c,_0x21cd27){const _0x50b6b9=_0x5b0fae;return require$$16[_0x50b6b9(0x6a0)](_0x4751c,_0x21cd27);}async[_0x5b0fae(0x4eb)](_0xce336e,_0x40f833){const _0x24cf7c=_0x5b0fae;return this['_wsettle'](this['_n'](_0x24cf7c(0x4eb),[_0xce336e]));}[_0x5b0fae(0x176)](_0x1f2e0d){const _0x48fb71=_0x5b0fae;return this['_n'](_0x48fb71(0x176),[_0x1f2e0d]);}['listTypes'](){const _0x28215b=_0x5b0fae;return this['_n'](_0x28215b(0x55e),[]);}async[_0x5b0fae(0x6b1)](_0x469a95,_0x157765){const _0x1ed3b5=_0x5b0fae;return this[_0x1ed3b5(0x2c8)](this['_n']('dropType',[_0x469a95]));}async[_0x5b0fae(0x85d)](_0x9cff74,_0x1f1c2c){const {timestamp:_0x4f0e91,indexes:indexes=[]}=_0x5de396(_0x1f1c2c);return this['_wsettle'](this['_n']('ensureType',[_0x9cff74,{'indexes':indexes}]));}async[_0x5b0fae(0x4e2)](_0xff385d){const _0x4cf63a=_0x5b0fae,{type:_0x18147a,indexes:indexes=[],fts:fts=[],views:views=[],schema:schema=null}=_0x5de396(_0xff385d,_0x4cf63a(0x32d));if(!_0x18147a)throw new Error(_0x4cf63a(0x53e));await this['ensureType'](_0x18147a,{'indexes':indexes});for(const _0x3a2ed8 of fts){const {name:_0x158dfa,fields:_0x455dec,..._0x345ac0}=_0x3a2ed8;if(!_0x158dfa||!_0x455dec)throw new Error(_0x4cf63a(0x3d4));await this[_0x4cf63a(0x555)][_0x4cf63a(0x60e)][_0x4cf63a(0x4e2)](_0x18147a,_0x158dfa,{'fields':_0x455dec,..._0x345ac0},this);}for(const _0x5550b4 of views){const {name:_0xd02afa,definition:_0x2eead7}=_0x5550b4;if(!_0xd02afa||!_0x2eead7)throw new Error(_0x4cf63a(0x619));if(!await this[_0x4cf63a(0x4fd)][_0x4cf63a(0x762)](_0xd02afa))await this[_0x4cf63a(0x4fd)][_0x4cf63a(0x267)](_0xd02afa,_0x2eead7);}if(schema)await this['setSchema'](_0x18147a,schema);}async['registerIndex'](_0x21aada,_0x23b870,_0x94b7d0){const _0x4f51ce=_0x5b0fae,_0x5bc176=this['_n'](_0x4f51ce(0x73e),[_0x21aada,_0x23b870,typeof _0x94b7d0===_0x4f51ce(0x6f7)?_0x94b7d0:{}]);if(!_0x5bc176)return this[_0x4f51ce(0x2c8)](undefined);const _0x50f87e=this['_n'](_0x4f51ce(0x5b4),[_0x21aada,_0x23b870,!![]]);if(_0x50f87e===undefined)return this[_0x4f51ce(0x2c8)](undefined);return this[_0x4f51ce(0x2c8)](await this[_0x4f51ce(0x7e5)](_0x21aada,_0x23b870,_0x50f87e));}async['_indexBuild'](_0x102a75,_0x160449,_0x2407b9){const _0x213cb7=_0x5b0fae,_0x179871=_0x102a75+'@'+[][_0x213cb7(0x45c)](_0x160449)[_0x213cb7(0x6a2)]('~');if(!this[_0x213cb7(0x6fb)])this[_0x213cb7(0x6fb)]=new Map();const _0x1737f9=this[_0x213cb7(0x6fb)][_0x213cb7(0x616)](_0x179871);if(_0x1737f9)return _0x1737f9;const _0x4f2dd7=((async()=>{const _0x53da18=_0x213cb7;do await new Promise(_0x4bad00=>setImmediate(_0x4bad00));while(!this['_n'](_0x53da18(0x633),[_0x102a75,_0x160449,_0x2407b9,!![]]));})());this[_0x213cb7(0x6fb)][_0x213cb7(0x488)](_0x179871,_0x4f2dd7);try{return await _0x4f2dd7;}finally{this['_indexBuilds'][_0x213cb7(0x727)](_0x179871);}}async[_0x5b0fae(0x253)](_0x351d17,_0x225793,_0x30a77c){const _0x193f3e=_0x5b0fae;return this[_0x193f3e(0x2c8)](this['_n'](_0x193f3e(0x253),[_0x351d17,_0x225793]));}async[_0x5b0fae(0x588)](_0x18fdd4,_0x140fc0,_0x2fa07b){const _0x61e9a2=_0x5b0fae,_0x2313e3=this[_0x61e9a2(0x6fb)]&&this[_0x61e9a2(0x6fb)][_0x61e9a2(0x616)](_0x18fdd4+'@'+[]['concat'](_0x140fc0)[_0x61e9a2(0x6a2)]('~'));if(_0x2313e3)return _0x2313e3;const _0x2c434f=this['_n'](_0x61e9a2(0x5b4),[_0x18fdd4,_0x140fc0,_0x2fa07b]);if(_0x2c434f===undefined)return;return await new Promise(_0x5a1f5b=>setImmediate(_0x5a1f5b)),this[_0x61e9a2(0x2c8)](await this['_indexBuild'](_0x18fdd4,_0x140fc0,_0x2c434f));}['hasIndex'](_0xb7ad20,_0x1ba8fd){const _0x550c35=_0x5b0fae;return this['_n'](_0x550c35(0x45d),[_0xb7ad20,_0x1ba8fd]);}['getIndexStatus'](_0xc046fb,_0x5057f0){const _0x68fa40=_0x5b0fae;return this['_n'](_0x68fa40(0x224),[_0xc046fb,_0x5057f0]);}async[_0x5b0fae(0x21c)](_0x45a4c5,_0x5ac66f){const _0x6020d5=_0x5b0fae;if(this['_n'](_0x6020d5(0x224),[_0x45a4c5,_0x5ac66f])==='ready')return!![];let _0xe0a2ec=0xa;for(;;){await new Promise(_0x10a36d=>setTimeout(_0x10a36d,_0xe0a2ec));if(!this[_0x6020d5(0x555)][_0x6020d5(0x232)]||this[_0x6020d5(0x386)])return![];let _0x57121a;try{_0x57121a=this['_n'](_0x6020d5(0x3e5),[_0x45a4c5,Array[_0x6020d5(0x4b6)](_0x5ac66f)?_0x5ac66f['join']('~'):String(_0x5ac66f)['split'](',')['join']('~')]);}catch{return![];}const _0x5ebbc3=_0x57121a&&_0x57121a[_0x6020d5(0x371)];if(_0x5ebbc3===_0x6020d5(0x5ef))return!![];if(_0x5ebbc3===undefined)return![];_0xe0a2ec=Math[_0x6020d5(0x5b5)](_0xe0a2ec*0x2,0xfa);}}['getIndexMeta'](_0x2671c9,_0x424396){const _0x3c054d=_0x5b0fae;return this['_n'](_0x3c054d(0x3e5),[_0x2671c9,_0x424396])??null;}['getUniqueViolations'](_0x1180d1,_0x4ae4b8){const _0x1678a0=_0x5b0fae;return this['_n'](_0x1678a0(0x258),[_0x1180d1,_0x4ae4b8]);}['hasUniqueViolations'](_0x2334ba,_0x226359){const _0x40e253=_0x5b0fae;return this['_n'](_0x40e253(0x182),[_0x2334ba,_0x226359]);}[_0x5b0fae(0x14b)](_0x34bcbc,_0x4f2a86,_0x52ee6d){const _0x2fbf91=_0x5b0fae;return this['_n'](_0x2fbf91(0x14b),[_0x34bcbc,_0x4f2a86,_0x52ee6d])??null;}[_0x5b0fae(0x384)](_0x185a0b){const _0x3b8c46=_0x5b0fae;return this['_n'](_0x3b8c46(0x384),[_0x185a0b])??null;}async['setSchema'](_0x7e17d0,_0x50039e){const _0xcb755d=_0x5b0fae;return this[_0xcb755d(0x2c8)](this['_n']('setSchema',[_0x7e17d0,_0x50039e]));}async[_0x5b0fae(0x3c9)](_0x30454d){const _0x58804d=_0x5b0fae;return this[_0x58804d(0x2c8)](this['_n'](_0x58804d(0x3c9),[_0x30454d]));}[_0x5b0fae(0x86c)](_0x1dbace,_0x3de40b){return this['_n']('getViolation',[_0x1dbace,_0x3de40b])??null;}[_0x5b0fae(0x302)](_0x5cf9f3){const _0x2cc803=_0x5b0fae;return this['_n'](_0x2cc803(0x302),[_0x5cf9f3]);}[_0x5b0fae(0x41e)](_0x57ce4d,_0x4dd452,_0x3b39c2){const _0x23b483=_0x5b0fae;return this['_n'](_0x23b483(0x41e),[_0x57ce4d,_0x4dd452,_0x3b39c2])??null;}[_0x5b0fae(0x486)](_0x3576c5){return this['_n']('listRefViolations',[_0x3576c5]);}async[_0x5b0fae(0x24c)](_0x2d5e06,_0x9dcc7e,_0x59999e){const _0x1dff10=_0x5b0fae;return this[_0x1dff10(0x2c8)](this['_n']('setTTL',[_0x2d5e06,_0x9dcc7e,_0x59999e]));}[_0x5b0fae(0x695)](_0x490f0e,_0x34b0d7){const _0x45e49e=_0x5b0fae;return this['_n'](_0x45e49e(0x695),[_0x490f0e,_0x34b0d7]);}async[_0x5b0fae(0x347)](_0x50f09e,_0x401942){const _0x2f6f7d=_0x5b0fae;return this['_wsettle'](this['_n'](_0x2f6f7d(0x347),[_0x50f09e,_0x401942]));}async[_0x5b0fae(0x56c)](_0xbf599){const _0xd5213e=_0x5b0fae;return this['_n'](_0xd5213e(0x56c),[_0xbf599]);}[_0x5b0fae(0x1c2)](_0x3f97a4={}){const _0x3fae06=_0x5b0fae;return this['_n'](_0x3fae06(0x1c2),[_0x3f97a4]);}['ttlStats'](_0x4e4db6){const _0x5148e5=_0x5b0fae;return this['_n'](_0x5148e5(0x4ec),[_0x4e4db6]);}async[_0x5b0fae(0x25b)](_0x402350,_0x37b8bd){const _0x5ab650=_0x5b0fae;return this[_0x5ab650(0x2c8)](this['_n'](_0x5ab650(0x25b),[_0x402350,_0x37b8bd]));}[_0x5b0fae(0x802)](_0x45e348){const _0x28dea9=_0x5b0fae;return this['_n'](_0x28dea9(0x802),[_0x45e348]);}async[_0x5b0fae(0x58b)](_0x11a63e){const _0x16b366=_0x5b0fae;return this[_0x16b366(0x2c8)](this['_n'](_0x16b366(0x58b),[_0x11a63e]));}async[_0x5b0fae(0x62c)](_0x31d897,_0xcfefaf,_0x280730,_0x4ed72d){const _0x4db011=_0x5b0fae,{batch:batch=null,batchSize:_0x13e478}=_0x5de396(_0x4ed72d);if(typeof _0x31d897!==_0x4db011(0x4c1)||!_0x31d897)throw new _0x50c0e8(_0x4db011(0x1c7),'BAD_PARAM');if(typeof _0xcfefaf!==_0x4db011(0x4c1)||!_0xcfefaf)throw new _0x50c0e8(_0x4db011(0x584),_0x4db011(0x229));if(_0x280730!=null&&typeof _0x280730!=='function')throw new _0x50c0e8(_0x4db011(0x6e5),'BAD_PARAM');if(batch!=null&&typeof batch!==_0x4db011(0x40e))throw new _0x50c0e8(_0x4db011(0x379),'BAD_PARAM');if(!_0x280730&&!batch)throw new _0x50c0e8(_0x4db011(0x368),_0x4db011(0x229));if(_0x13e478!==undefined&&!(Number[_0x4db011(0x32e)](_0x13e478)&&_0x13e478>0x0))throw new _0x50c0e8('resolveField:\x20options.batchSize\x20must\x20be\x20a\x20positive\x20integer',_0x4db011(0x229));const _0x277196=batch?async _0x1bda56=>(await batch(_0x1bda56))[_0x4db011(0x6f2)](_0x20151d=>_0x20151d instanceof Error?{'__error':!![],'message':_0x20151d[_0x4db011(0x806)]}:_0x20151d):null,_0x3678ae=_0x9ad447(this,_0x31d897,_0xcfefaf),_0x1912a6=this['_n'](_0x4db011(0x62c),[_0x31d897,_0xcfefaf,_0x280730?(_0x2a4bf9,_0x47f0fe)=>_0x3678ae(_0x280730,[_0x2a4bf9,_0x47f0fe]):null,{'batch':_0x277196?_0x27cbee=>_0x3678ae(_0x277196,[_0x27cbee]):null,'batchSize':_0x13e478}]);return()=>this['_n'](_0x4db011(0x27d),[_0x1912a6]);}async[_0x5b0fae(0x5a1)](_0x56b180,_0x5c21df){return this['_n']('unresolveField',[_0x56b180,_0x5c21df]);}[_0x5b0fae(0x4b3)](_0x1eabac){const _0x279396=_0x5b0fae;return this['_n'](_0x279396(0x4b3),[_0x1eabac]);}async[_0x5b0fae(0x776)](_0x13b6d0,_0x514808,_0x1e2d9c,_0x505b01){const _0x451172=_0x5b0fae;return this[_0x451172(0x555)]['_callMacro'](_0x451172(0x53c),this[_0x451172(0x885)],_0x451172(0x776),[_0x13b6d0,_0x514808,_0x1e2d9c,_0x505b01],![]);}async[_0x5b0fae(0x20d)](_0x178d3a,_0x4a8c35,_0x7513bd){const _0x54ef5d=_0x5b0fae;return this[_0x54ef5d(0x555)][_0x54ef5d(0x421)](_0x54ef5d(0x53c),this[_0x54ef5d(0x885)],'readFieldMany',[_0x178d3a,_0x4a8c35,_0x7513bd],![]);}[_0x5b0fae(0x6a4)](){}[_0x5b0fae(0x4d0)](_0x4dc33f,_0x335a7a,_0x4aa9ea,_0xca4a39={},_0x508145={}){const _0x422e27=_0x5b0fae;return this[_0x422e27(0x555)]['_call']('fts',null,_0x422e27(0x4d0),[_0x4dc33f,_0x335a7a,_0x4aa9ea,_0xca4a39,_0x508145,this['name']],![]);}get['fts'](){const _0x3f9830=_0x5b0fae;return this[_0x3f9830(0x555)]['fts'];}[_0x5b0fae(0x21d)](){const _0x1709e3=_0x5b0fae;return this[_0x1709e3(0x555)][_0x1709e3(0x82b)](_0x1709e3(0x53c),this[_0x1709e3(0x885)],_0x1709e3(0x21d),[],![]);}[_0x5b0fae(0x2f9)](){const _0x34de05=_0x5b0fae;return this[_0x34de05(0x555)][_0x34de05(0x2f9)]();}[_0x5b0fae(0x552)](){const _0x14924e=_0x5b0fae;return this[_0x14924e(0x555)][_0x14924e(0x82b)](_0x14924e(0x53c),this[_0x14924e(0x885)],_0x14924e(0x552),[],![]);}[_0x5b0fae(0x15e)](){}get['locks'](){const _0x2b9473=_0x5b0fae;return this[_0x2b9473(0x674)]||(this[_0x2b9473(0x674)]=new(requireLock())[(_0x2b9473(0x288))](this[_0x2b9473(0x555)],this['name'],'env'));}[_0x5b0fae(0x24f)](){const _0x4df152=_0x5b0fae;return this['okdb'][_0x4df152(0x82b)]('env',this[_0x4df152(0x885)],_0x4df152(0x24f),[],![]);}['_registerType'](_0x5d1c6a){const _0x510c46=_0x5b0fae;this['_n'](_0x510c46(0x4eb),[_0x5d1c6a]);}[_0x5b0fae(0x50f)](_0x4de131){const _0x2d8666=_0x5b0fae;this['_n'](_0x2d8666(0x5d0),[_0x4de131]);}['_ttlState'](){return this['_n']('ttlState',[]);}['_ttlCompositeKey'](_0x565701,_0x584bf5){return _0x565701+'\x09'+_0x584bf5;}['_ttlParseComposite'](_0x485c49){const _0x290c5a=_0x5b0fae,_0x4f134d=_0x485c49['indexOf']('\x09');return{'type':_0x485c49[_0x290c5a(0x4e8)](0x0,_0x4f134d),'key':_0x485c49[_0x290c5a(0x4e8)](_0x4f134d+0x1)};}get[_0x5b0fae(0x34b)](){const _0x1bfe4d=_0x5b0fae;if(!this[_0x1bfe4d(0x5be)]()['enabled'])return null;return this[_0x1bfe4d(0x673)]||(this[_0x1bfe4d(0x673)]=new _0x13e6a4(this,'~ttl:key'));}get[_0x5b0fae(0x295)](){const _0x585fa1=_0x5b0fae;if(!this[_0x585fa1(0x5be)]()[_0x585fa1(0x25c)])return null;return this[_0x585fa1(0x6bf)]||(this['__ttlByExpiry']=new _0x13e6a4(this,_0x585fa1(0x645),{'dupSort':!![]}));}[_0x5b0fae(0x85c)](_0x21152b,_0x28b1b2,_0x3e4dff){const _0x3352be=_0x5b0fae;this['_n'](_0x3352be(0x590),[_0x21152b,_0x28b1b2,_0x3e4dff]);}['_isExpired'](_0x4e54ad,_0x528ebc){const _0x3e7ce7=_0x5b0fae,_0x57abd7=this['_ttlByKey']?.['get'](this[_0x3e7ce7(0x42c)](_0x4e54ad,_0x528ebc));return _0x57abd7!=null&&_0x57abd7<=Date[_0x3e7ce7(0x38b)]();}get[_0x5b0fae(0x5ea)](){const _0x4e896d=_0x5b0fae;return this[_0x4e896d(0x5be)]()[_0x4e896d(0x468)]??null;}get['_ttlBackoffUntil'](){return this['_ttlState']()['backoffUntil']||0x0;}get[_0x5b0fae(0x25d)](){return![];}['_scheduleTTLSweep'](){}async[_0x5b0fae(0x263)](_0x37194c,_0x153d04){const _0x55ed46=_0x5b0fae;if(this[_0x55ed46(0x580)]){const {OKDBError:_0xfdb3f2}=requireErrors();throw new _0xfdb3f2(_0x55ed46(0x2f5),_0x55ed46(0x5b9));}this['_rebuilding']=!![];try{return await this[_0x55ed46(0x555)][_0x55ed46(0x421)](_0x55ed46(0x53c),this[_0x55ed46(0x885)],_0x37194c,[_0x153d04],!![]);}finally{this[_0x55ed46(0x580)]=![];}}async[_0x5b0fae(0x2b0)](_0x3aeddd={}){const _0x4a8471=_0x5b0fae;return this['_rebuild'](_0x4a8471(0x2b0),_0x3aeddd);}async[_0x5b0fae(0x387)](_0x28d69b={}){return this['_rebuild']('repair',_0x28d69b);}}_0x3c0f75[_0x5b0fae(0x2e0)]=_0x190aa1;function _0x115685(_0x4de8ab){const _0xfc4855=_0x5b0fae;if(!_0x4de8ab||typeof _0x4de8ab!==_0xfc4855(0x6f7))return![];for(const _0x4ed7cf of Object[_0xfc4855(0x23b)](_0x4de8ab)){const _0x18ef05=_0x4de8ab[_0x4ed7cf];if(_0x18ef05&&typeof _0x18ef05==='object'&&(_0x18ef05['$near']||_0x18ef05[_0xfc4855(0x7f0)]))return!![];}return![];}function _0x4e4015(_0x4bda71){const _0x55ee47=_0x5b0fae;if(!_0x4bda71||typeof _0x4bda71!==_0x55ee47(0x6f7))return{};const _0x50d08a={};for(const _0x39cf41 of Object[_0x55ee47(0x23b)](_0x4bda71)){if(_0x39cf41==='transaction'||_0x39cf41==='snapshot')continue;_0x50d08a[_0x39cf41]=_0x4bda71[_0x39cf41];}return _0x50d08a;}function _0x21d722(_0x21e389){const _0x43d406=_0x5b0fae;if(!_0x21e389||typeof _0x21e389!=='object')return{};const _0x12ad00={};for(const _0x1ccd25 of Object[_0x43d406(0x23b)](_0x21e389)){if(typeof _0x21e389[_0x1ccd25]===_0x43d406(0x40e))continue;_0x12ad00[_0x1ccd25]=_0x21e389[_0x1ccd25];}return _0x12ad00;}return env={'OKDBEnv':_0x3c0f75,'HIGH_SENTINEL':_0x190aa1},env;}var unsupported,hasRequiredUnsupported;function requireUnsupported(){if(hasRequiredUnsupported)return unsupported;hasRequiredUnsupported=0x1;const {NotImplementedNative:_0x5160cb}=requireErrors();function _0x42fd40(_0x184e09){const _0x5e45a0=_0x2b11f9=>{throw new _0x5160cb(_0x184e09,_0x2b11f9);};return new Proxy(function(){},{'get'(_0x58d213,_0x261685){const _0x355a88=_0x3f13;if(typeof _0x261685===_0x355a88(0x640)||_0x261685===_0x355a88(0x1df)||_0x261685===_0x355a88(0x644)||_0x261685===_0x355a88(0x850))return undefined;if(_0x261685===_0x355a88(0x679))return _0x184e09;return(..._0x5ca4c4)=>_0x5e45a0(_0x184e09+'.'+String(_0x261685));},'apply'(){_0x5e45a0(_0x184e09);},'set'(){return!![];}});}return unsupported={'notImplemented':_0x42fd40},unsupported;}var http,hasRequiredHttp;function requireHttp(){const _0x2717f7=_0x1ade1a;if(hasRequiredHttp)return http;hasRequiredHttp=0x1;function _0x2fd304(_0x1a2272,_0x1e9bc8={}){const _0x25a12a=_0x3f13,_0x6728d9=[];let _0x3c0b9a=![];_0x1a2272[_0x25a12a(0x1d9)]('/*')&&(_0x3c0b9a=!![],_0x1a2272=_0x1a2272[_0x25a12a(0x4e8)](0x0,-0x2),_0x6728d9['push']('*'));let _0x447797=_0x1a2272[_0x25a12a(0x2a6)](/\/+$/,'')['replace'](/\[([^\]]*)\]/g,(_0x1cdbb9,_0x2cecf9)=>{const _0x418a9d=_0x25a12a,_0xbb8184=_0x2cecf9[_0x418a9d(0x2a6)](/\/:(\w+)(?:=([^/\]\s]*))?/g,(_0x5a0faf,_0x3b7a33)=>{const _0xce4b5=_0x418a9d;return _0x6728d9[_0xce4b5(0x2e6)](_0x3b7a33),_0xce4b5(0x416);});return _0x418a9d(0x7d1)+_0xbb8184+')?';})[_0x25a12a(0x2a6)](/\/:(\w+)/g,(_0x431101,_0x1028ae)=>{const _0x3257d2=_0x25a12a;return _0x6728d9['push'](_0x1028ae),_0x3257d2(0x416);});if(_0x447797==='')_0x447797='/';return{'keys':_0x6728d9,'defaults':_0x1e9bc8||{},'wildcard':_0x3c0b9a,'regex':new RegExp('^'+_0x447797+(_0x3c0b9a?_0x25a12a(0x448):'')+_0x25a12a(0x670))};}const _0x52e46c=require$$0$3,{PassThrough:_0x18fa59}=require$$1;function _0x77dbe0(_0x164964){const _0x276d1c=_0x3f13,_0x2d9b52=_0x164964[_0x276d1c(0x69b)](':'),_0x2ffff7=_0x164964[_0x276d1c(0x4e8)](0x0,_0x2d9b52)[_0x276d1c(0x2a6)](/^\[|\]$/g,'');return{'address':_0x2ffff7,'family':_0x2ffff7[_0x276d1c(0x2bc)](':')?_0x276d1c(0x2ae):'IPv4','port':Number(_0x164964[_0x276d1c(0x4e8)](_0x2d9b52+0x1))};}class _0x4efedb extends _0x52e46c[_0x2717f7(0x558)]{constructor(_0x55d2a2,_0x287003){const _0x3caba2=_0x2717f7;super(),this['_http']=_0x55d2a2,this[_0x3caba2(0x178)]=_0x77dbe0(_0x287003),this['listening']=!![],this[_0x3caba2(0x770)]=setInterval(()=>{},0x7fffffff);}get[_0x2717f7(0x660)](){const _0x276927=_0x2717f7;return this[_0x276927(0x649)];}set[_0x2717f7(0x660)](_0x92d9c9){const _0x3dccfa=_0x2717f7;this[_0x3dccfa(0x649)]=_0x92d9c9;}['address'](){return this['listening']?{...this['_addr']}:null;}[_0x2717f7(0x613)](){const _0x46aa83=_0x2717f7;if(this[_0x46aa83(0x770)])clearInterval(this['_keepAlive']);this['_keepAlive']=null;}[_0x2717f7(0x469)](_0x4c45a8){const _0x429ee7=_0x2717f7;this['_release']();const _0x27dadd=this['_http'][_0x429ee7(0x469)]();if(_0x4c45a8)_0x27dadd['then'](()=>_0x4c45a8(),_0x4c45a8);return this;}[_0x2717f7(0x3e4)](){return this['_keepAlive']?.['ref'](),this;}[_0x2717f7(0x7ed)](){const _0x3ad177=_0x2717f7;return this[_0x3ad177(0x770)]?.[_0x3ad177(0x7ed)](),this;}}class _0x3f11e9{constructor(_0xe445a1){const _0x147a95=_0x2717f7;this[_0x147a95(0x555)]=_0xe445a1,this['servers']=[],this[_0x147a95(0x470)]={'cookieName':'okdb_session'};}get[_0x2717f7(0x6b8)](){const _0x30016a=_0x2717f7;return this[_0x30016a(0x67b)][0x0]||null;}['_n'](_0x177921,_0x3958b7=[]){const _0x312f2b=_0x2717f7;return this[_0x312f2b(0x555)][_0x312f2b(0x421)]('http',null,_0x177921,_0x3958b7,!![]);}async[_0x2717f7(0x1de)](_0x5d6cc8,_0x20b696,_0x2207a0={},_0x291d8b={}){const _0x37a8b2=_0x2717f7;let _0x12640a=await this['_n'](_0x37a8b2(0x1de),[_0x5d6cc8,_0x20b696,_0x2207a0,_0x291d8b]),_0x45e7f1=0x0;return _0x12640a=await this['_settle'](_0x12640a,_0x45e7f1),_0x12640a;}async[_0x2717f7(0x73a)](_0x39bebf,_0x456e23){const _0x52fe52=_0x2717f7;while(_0x39bebf&&typeof _0x39bebf===_0x52fe52(0x6f7)&&_0x39bebf[_0x52fe52(0x177)]!==undefined){await new Promise(_0x47c36a=>setTimeout(_0x47c36a,_0x456e23<0x5?0x1:0x5)),_0x456e23++,_0x39bebf=await this['_n']('handleResult',[_0x39bebf['$pending']]);}if(_0x39bebf&&_0x39bebf[_0x52fe52(0x641)]&&typeof _0x39bebf[_0x52fe52(0x641)]==='object'&&_0x39bebf[_0x52fe52(0x641)][_0x52fe52(0x35d)]!==undefined)_0x39bebf[_0x52fe52(0x641)]=this['_stream'](_0x39bebf[_0x52fe52(0x641)]['$streamId']);return _0x39bebf;}[_0x2717f7(0x1be)](_0x275e96){const _0x280bdd=_0x2717f7,_0x603035=new _0x18fa59();let _0x4e6840=![];const _0x43ca28=()=>{const _0x1abbb0=_0x3f13;if(_0x4e6840)return;_0x4e6840=!![],clearTimeout(_0x3f3ff2),setImmediate(()=>this[_0x1abbb0(0x555)][_0x1abbb0(0x232)]&&this[_0x1abbb0(0x555)][_0x1abbb0(0x82b)](_0x1abbb0(0x740),null,_0x1abbb0(0x197),[_0x275e96],!![]));};let _0x3f3ff2=null;const _0x59726e=()=>{const _0x5ddba6=_0x3f13;if(_0x4e6840)return;let _0x2cd5f6;try{_0x2cd5f6=this[_0x5ddba6(0x555)][_0x5ddba6(0x82b)](_0x5ddba6(0x740),null,_0x5ddba6(0x7a4),[_0x275e96],!![]);}catch{_0x2cd5f6={'chunks':[],'end':!![]};}for(const _0x5829ba of _0x2cd5f6[_0x5ddba6(0x31f)])_0x603035[_0x5ddba6(0x465)](_0x5829ba);if(_0x2cd5f6[_0x5ddba6(0x5a6)]){_0x4e6840=!![],_0x603035[_0x5ddba6(0x5a6)]();return;}_0x3f3ff2=setTimeout(_0x59726e,_0x2cd5f6[_0x5ddba6(0x31f)]['length']?0x0:0xa);};_0x603035['on'](_0x280bdd(0x469),_0x43ca28),_0x59726e();if(!_0x4e6840)_0x59726e();if(_0x4e6840)_0x603035[_0x280bdd(0x6bb)]();else{if(!_0x3f3ff2)_0x3f3ff2=setTimeout(_0x59726e,0x0);}return _0x603035;}[_0x2717f7(0x76e)](_0x1ae9eb,_0xc3733e,_0x2718d1,_0x2b546b={}){const _0x50d33f=_0x2717f7;return this[_0x50d33f(0x555)]['_call'](_0x50d33f(0x740),null,'add',[_0x1ae9eb,_0xc3733e,_0x2718d1,_0x2b546b,![]],!![]),this;}['addRaw'](_0x247fe5,_0x316fd8,_0x40080d,_0x25613e={}){const _0x50f44e=_0x2717f7;return this[_0x50f44e(0x555)][_0x50f44e(0x82b)](_0x50f44e(0x740),null,_0x50f44e(0x76e),[_0x247fe5,_0x316fd8,_0x40080d,_0x25613e,!![]],!![]),this;}[_0x2717f7(0x48c)](_0x4bbb78,_0x32a401){const _0x40be6e=_0x2717f7,_0x326b32=async _0x266f41=>{const _0x5c649f=_0x3f13,_0x157210={'status':undefined,'headers':[],'hasBody':![],'body':undefined},_0x93e8a8={'status'(_0x45a7ed){return _0x157210['status']=_0x45a7ed,_0x93e8a8;},'setHeader'(_0x5c1499,_0x3af9bb){const _0x2005b4=_0x3f13;_0x157210[_0x2005b4(0x238)][_0x2005b4(0x2e6)]([_0x5c1499,_0x3af9bb]);},'send'(_0x2d3482){const _0x460f34=_0x3f13;_0x157210[_0x460f34(0x748)]=!![],_0x157210[_0x460f34(0x641)]=_0x2d3482;}};_0x266f41[_0x5c649f(0x3cb)]={'remoteAddress':_0x266f41['remoteAddress']??null};const _0x12c09e=await _0x32a401(_0x266f41,_0x93e8a8);return{'allowed':_0x12c09e!==![],..._0x157210};};this[_0x40be6e(0x555)][_0x40be6e(0x82b)](_0x40be6e(0x740),null,_0x40be6e(0x48c),[_0x491600=>!!_0x4bbb78(_0x491600),_0x326b32],!![]);}[_0x2717f7(0x308)](_0x10cfa9){const _0x2be845=_0x2717f7,_0x11c501=async _0x479f53=>{const _0x258d05=_0x3f13,_0x2fa1b9={'status':undefined,'headers':[],'hasBody':![],'body':undefined};let _0x3f4d98=![];const _0x210909={'status'(_0xb21d3b){return _0x2fa1b9['status']=_0xb21d3b,_0x210909;},'setHeader'(_0x5abded,_0x2add41){const _0x144095=_0x3f13;_0x2fa1b9[_0x144095(0x238)]['push']([_0x5abded,_0x2add41]);},'send'(_0x15fb46){const _0x336620=_0x3f13;_0x2fa1b9['hasBody']=!![],_0x2fa1b9[_0x336620(0x641)]=_0x15fb46;}};return _0x479f53[_0x258d05(0x3cb)]={'remoteAddress':_0x479f53[_0x258d05(0x37c)]??null},await _0x10cfa9(_0x479f53,_0x210909,async()=>{_0x3f4d98=!![];}),{'allowed':_0x3f4d98,..._0x2fa1b9};};return this['okdb'][_0x2be845(0x82b)](_0x2be845(0x740),null,_0x2be845(0x308),[_0x11c501],!![]),this;}get[_0x2717f7(0x7f7)](){const _0x5da43c=_0x2717f7;return this[_0x5da43c(0x555)]['_call'](_0x5da43c(0x740),null,_0x5da43c(0x1c6),[],![]);}set[_0x2717f7(0x7f7)](_0x1712d3){const _0x345064=_0x2717f7;this[_0x345064(0x555)]['_call'](_0x345064(0x740),null,_0x345064(0x38e),[Number(_0x1712d3)],![]);}[_0x2717f7(0x63c)](_0x537ca1,_0x2d9a01,_0x284a75={}){const _0x28b773=_0x2717f7,_0x3ad9ad=new Map(),_0x44f620=(_0x1a3e19,_0x56f1f2)=>this[_0x28b773(0x555)][_0x28b773(0x82b)](_0x28b773(0x740),null,_0x1a3e19,_0x56f1f2,![]),_0x24b1e9=_0x1732f0=>{const _0x4df25f=_0x28b773,{connId:_0x5094ac}=_0x1732f0;if(_0x1732f0['cleanup']){const _0x5ba826=_0x3ad9ad[_0x4df25f(0x616)](_0x5094ac);_0x3ad9ad[_0x4df25f(0x727)](_0x5094ac);if(typeof _0x5ba826===_0x4df25f(0x40e))_0x5ba826();return;}const _0x11704c=(_0x3b8953,_0x3c2067,_0x26cff5={})=>{try{_0x44f620('sseSend',[_0x5094ac,_0x3b8953,_0x3c2067,_0x26cff5]);}catch{}},_0x1910c6=()=>{const _0x5b2944=_0x4df25f;try{_0x44f620(_0x5b2944(0x570),[_0x5094ac]);}catch{}},_0x36ba1b=(_0x42292a,_0x271cf8)=>_0x44f620(_0x4df25f(0x65b),[_0x5094ac,String(_0x42292a),String(_0x271cf8)]),_0x3b6b73={'auth':{'open':_0x1732f0[_0x4df25f(0x875)],'isAuthenticated':_0x1732f0[_0x4df25f(0x149)]}},_0xcd972a=_0x2d9a01({'send':_0x11704c,'close':_0x1910c6,'params':_0x1732f0[_0x4df25f(0x3a7)]??{},'query':_0x1732f0['query']??{},'headers':_0x1732f0[_0x4df25f(0x238)]??{},'context':_0x3b6b73,'setHeader':_0x36ba1b});_0x3ad9ad[_0x4df25f(0x488)](_0x5094ac,_0xcd972a);};return this['okdb'][_0x28b773(0x82b)](_0x28b773(0x740),null,_0x28b773(0x63c),[_0x537ca1,_0x24b1e9,_0x284a75],!![]),this;}get[_0x2717f7(0x19e)](){const _0xd87b21=_0x2717f7;return this[_0xd87b21(0x756)]();}[_0x2717f7(0x756)](){const _0x589262=_0x2717f7;return this['okdb']['_call'](_0x589262(0x740),null,_0x589262(0x756),[],![])[_0x589262(0x6f2)](_0x281e7a=>({..._0x281e7a,'matcher':_0x2fd304(_0x281e7a[_0x589262(0x72d)],_0x281e7a[_0x589262(0x6cc)])}));}[_0x2717f7(0x72e)](_0x8efbe2,_0x565e40){const _0x30ebf8=_0x2717f7;return this[_0x30ebf8(0x555)]['_call'](_0x30ebf8(0x740),null,'validateRouteInput',[_0x8efbe2,_0x565e40],![]);}['listen'](_0x533d4e,_0x482ded={}){const _0x517126=_0x2717f7;if(typeof _0x482ded===_0x517126(0x4c1)||Array[_0x517126(0x4b6)](_0x482ded))_0x482ded={'host':_0x482ded};_0x482ded=_0x482ded??{};if((Number(_0x482ded[_0x517126(0x543)])||0x0)>=0x1||_0x482ded[_0x517126(0x2fe)]!=null||_0x482ded['primaryOkdb']!=null){const _0x21074d=new Error('http.listen({workers/makeOkdb/primaryOkdb})\x20is\x20no\x20longer\x20supported\x20in\x20the\x20'+_0x517126(0x701)+_0x517126(0x652)+_0x517126(0x2c5));_0x21074d['code']=_0x517126(0x3f2);throw _0x21074d;}if(this['servers'][_0x517126(0x479)])throw new Error('HTTP\x20server\x20already\x20running');const _0x52b930=_0x482ded[_0x517126(0x14f)]==null?[undefined]:[][_0x517126(0x45c)](_0x482ded[_0x517126(0x14f)]);if(!_0x52b930[_0x517126(0x479)]||_0x52b930[_0x517126(0x737)](_0x3e300d=>_0x3e300d!==undefined&&(typeof _0x3e300d!==_0x517126(0x4c1)||!_0x3e300d))){const _0x4576c7=new Error(_0x517126(0x622));_0x4576c7['code']=_0x517126(0x4de);throw _0x4576c7;}const _0x551e88=require$$2[_0x517126(0x36b)]?{..._0x482ded,'reuseport':!![]}:_0x482ded,_0x5a08a7=this[_0x517126(0x555)][_0x517126(0x82b)](_0x517126(0x740),null,_0x517126(0x5d6),[_0x533d4e,_0x551e88],!![]),_0x4c9bbf=_0x5a08a7[_0x517126(0x655)]??_0x533d4e,_0x44e05f=_0x482ded['host']==null?':'+_0x4c9bbf:_0x52b930['map'](_0x1f2a25=>(_0x1f2a25[_0x517126(0x2bc)](':')?'['+_0x1f2a25+']':_0x1f2a25)+':'+_0x4c9bbf)[_0x517126(0x6a2)](',\x20');try{this[_0x517126(0x555)]['processes'][_0x517126(0x1ca)](_0x44e05f);if(!require(_0x517126(0x452))[_0x517126(0x36b)])this[_0x517126(0x555)]['processes']['register']({'kind':'standalone','listenAddr':_0x44e05f});}catch{}this[_0x517126(0x67b)]=_0x5a08a7[_0x517126(0x48e)][_0x517126(0x6f2)](_0x431a6c=>new _0x4efedb(this,_0x431a6c));const _0x47c516=this[_0x517126(0x67b)][0x0];return process[_0x517126(0x7b2)](()=>this['servers'][_0x517126(0x39f)](_0x1f7be1=>_0x1f7be1[_0x517126(0x7bb)](_0x517126(0x660)))),_0x47c516;}async['close'](_0x558c2a={}){const _0x3b1f4c=_0x2717f7,_0x110981=this['servers'];this[_0x3b1f4c(0x67b)]=[];if(require$$2[_0x3b1f4c(0x36b)]&&!process[_0x3b1f4c(0x887)]&&_0x558c2a[_0x3b1f4c(0x705)]==null)_0x558c2a={..._0x558c2a,'forceAfterMs':Infinity};if(_0x110981[_0x3b1f4c(0x479)]){const _0x59cc29=_0x558c2a['forceAfterMs']===Infinity?Infinity:Number['isFinite'](_0x558c2a[_0x3b1f4c(0x705)])?Math['max'](0x0,_0x558c2a[_0x3b1f4c(0x705)]):0x3e8,_0x226b51=Date[_0x3b1f4c(0x38b)]();while(this[_0x3b1f4c(0x555)][_0x3b1f4c(0x82b)](_0x3b1f4c(0x740),null,_0x3b1f4c(0x393),[],!![])>0x0&&Date[_0x3b1f4c(0x38b)]()-_0x226b51<_0x59cc29)await new Promise(_0x376d0f=>setTimeout(_0x376d0f,0x5));_0x558c2a={..._0x558c2a,'forceAfterMs':_0x59cc29===Infinity?0x3e8:Math[_0x3b1f4c(0x3c5)](0x0,_0x59cc29-(Date[_0x3b1f4c(0x38b)]()-_0x226b51))};}await this['_n']('close',[_0x558c2a]);for(const _0x508e64 of _0x110981){_0x508e64['_release'](),_0x508e64[_0x3b1f4c(0x660)]=![],_0x508e64[_0x3b1f4c(0x7bb)]('close');}}}return http={'OKDBHttp':_0x3f11e9},http;}var fts,hasRequiredFts;function requireFts(){const _0x44ebb5=_0x1ade1a;if(hasRequiredFts)return fts;hasRequiredFts=0x1;const _0x4dbf31=_0x465571=>(_0x465571&&typeof _0x465571===_0x44ebb5(0x6f7)?_0x465571[_0x44ebb5(0x885)]:_0x465571)??_0x44ebb5(0x693);class _0x26a0f5{constructor(_0x17eda2){this['okdb']=_0x17eda2;}['_n'](_0xe8cd30,_0x1d1572,_0x4194bd=![]){const _0x511459=_0x44ebb5;return this['okdb'][_0x511459(0x82b)](_0x511459(0x60e),null,_0xe8cd30,_0x1d1572,_0x4194bd);}[_0x44ebb5(0x47b)](_0x4c9a78,_0x1f28cf){const _0x128d02=_0x44ebb5;return this[_0x128d02(0x555)][_0x128d02(0x421)](_0x128d02(0x60e),null,_0x4c9a78,_0x1f28cf,!![]);}get[_0x44ebb5(0x47a)](){const _0x25b009=this,_0x546db7=_0x16eda6=>{const _0x347833=_0x3f13,_0x3f7bb9=_0x16eda6[_0x347833(0x789)](':'),_0x1077d8=_0x16eda6['slice'](0x0,_0x3f7bb9),_0x214cbb=_0x25b009[_0x347833(0x555)][_0x347833(0x2b2)][_0x347833(0x616)](_0x1077d8);if(!_0x214cbb)return undefined;const _0x2b35a8=_0x214cbb[_0x347833(0x548)][_0x347833(0x3f8)]()['find'](_0x163b9e=>_0x163b9e['cursorKey']===_0x347833(0x31b)+_0x16eda6);if(!_0x2b35a8)return undefined;return _0x214cbb[_0x347833(0x548)]['_stopFor'](_0x2b35a8['id'],_0x2b35a8['cursorKey']);};return{'get':_0x546db7,'has':_0x15a7a8=>!!_0x546db7(_0x15a7a8)};}get['_pendingOps'](){return[];}['_envIndexDb'](){const _0x3dd2f6=_0x44ebb5,{RawDb:_0x16e72e}=requireRawdb();return new _0x16e72e(this['okdb'][_0x3dd2f6(0x70a)],_0x3dd2f6(0x6de));}[_0x44ebb5(0x4a8)](_0x3aff2e,_0x1a9acc,_0x54b60b){const _0x4f6375=_0x44ebb5;return this['_n'](_0x4f6375(0x4a8),[_0x3aff2e,_0x1a9acc,_0x4dbf31(_0x54b60b)]);}[_0x44ebb5(0x371)](_0x9d5dd0,_0x304ebf,_0x582157){return this['_n']('status',[_0x9d5dd0,_0x304ebf,_0x4dbf31(_0x582157)]);}[_0x44ebb5(0x3f8)](_0x3be102,_0x37e105){return this['_n']('list',[_0x3be102,_0x4dbf31(_0x37e105)]);}async[_0x44ebb5(0x57d)](_0x2074cb,_0x5bf146,_0x295c05,_0xa29c72,_0x50fecf){const _0x56cd97=_0x44ebb5,_0x498129=(_0x4b901e,_0x2d401e)=>this['okdb']['_callMacro']('fts',null,_0x4b901e,_0x2d401e,!![],![]),_0x6f5ec4=Date[_0x56cd97(0x38b)]()+0x1d4c0;let _0x526ddd=_0x2074cb,_0x1f953c=_0x5bf146;for(;;){try{return await _0x498129(_0x526ddd,_0x1f953c);}catch(_0x574cd4){if(_0x574cd4[_0x56cd97(0x431)]===_0x56cd97(0x58d)){_0x526ddd=_0x56cd97(0x2b5),_0x1f953c=[_0x295c05,_0xa29c72,_0x4dbf31(_0x50fecf)];if(_0x574cd4['details']&&_0x574cd4[_0x56cd97(0x7fa)][_0x56cd97(0x56e)])await new Promise(_0x4f8d9f=>setTimeout(_0x4f8d9f,0x2));continue;}if(_0x574cd4['code']!==_0x56cd97(0x3bc)||Date['now']()>=_0x6f5ec4)throw _0x574cd4;}await new Promise(_0x1b1fbd=>setTimeout(_0x1b1fbd,0x5)),_0x526ddd=_0x56cd97(0x2d1),_0x1f953c=[_0x295c05,_0xa29c72,!![],_0x4dbf31(_0x50fecf)];}}async[_0x44ebb5(0x6f8)](_0x2cd782,_0x44b9c5,_0x302be8,_0x9cfa47,_0x47ac87){const _0x7cefe8=_0x44ebb5;return this[_0x7cefe8(0x57d)]('register',[_0x2cd782,_0x44b9c5,_0x302be8,_0x9cfa47,_0x4dbf31(_0x47ac87)],_0x2cd782,_0x44b9c5,_0x47ac87);}async['drop'](_0x2f04f2,_0x9b883b,_0x2086ef){const _0x4cf826=_0x44ebb5;return this[_0x4cf826(0x47b)](_0x4cf826(0x332),[_0x2f04f2,_0x9b883b,_0x4dbf31(_0x2086ef)]);}async[_0x44ebb5(0x4e2)](_0x88c187,_0x27d1ab,_0x33dcc7,_0x5b2625){const _0x226da4=_0x44ebb5;return this[_0x226da4(0x57d)]('ensure',[_0x88c187,_0x27d1ab,_0x33dcc7,_0x4dbf31(_0x5b2625)],_0x88c187,_0x27d1ab,_0x5b2625);}async['reset'](_0x3b4050,_0x134d11,_0x40dd7b,_0x36fab3){const _0x458df4=_0x44ebb5;return this[_0x458df4(0x57d)](_0x458df4(0x2d1),[_0x3b4050,_0x134d11,_0x40dd7b,_0x4dbf31(_0x36fab3)],_0x3b4050,_0x134d11,_0x36fab3);}async[_0x44ebb5(0x667)](_0x505ac5,_0x852ab0,_0x51b4cf,_0x38ccb3=0x1d4c0){const _0x3052be=_0x44ebb5,_0x3e795d=Date[_0x3052be(0x38b)]()+_0x38ccb3;for(;;){try{return await this[_0x3052be(0x47b)](_0x505ac5,[..._0x852ab0,0x1]);}catch(_0x4768c8){if(_0x4768c8[_0x3052be(0x431)]!==_0x51b4cf||Date[_0x3052be(0x38b)]()>=_0x3e795d)throw _0x4768c8;}await new Promise(_0xe3b6cb=>setTimeout(_0xe3b6cb,0x2));}}async[_0x44ebb5(0x5ef)](_0x589480,_0x4b391a,_0x4734ee){const _0x512cc7=_0x44ebb5;return this[_0x512cc7(0x667)](_0x512cc7(0x5ef),[_0x589480,null,_0x4dbf31(_0x4734ee)],'FTS_READY_TIMEOUT');}async[_0x44ebb5(0x5c4)](_0x7923a3,_0x9c4ae6){const _0x269ce3=_0x44ebb5;return this[_0x269ce3(0x667)](_0x269ce3(0x5c4),[_0x7923a3,_0x4dbf31(_0x9c4ae6)],_0x269ce3(0x2b1));}async['compact'](_0xca369,_0x5cd90d){const _0x7d2143=_0x44ebb5;return this['_nm'](_0x7d2143(0x2b0),[_0xca369,_0x4dbf31(_0x5cd90d)]);}async[_0x44ebb5(0x58a)](_0x743ad7={}){const _0x534fc7=_0x44ebb5;return this[_0x534fc7(0x47b)]('process',[_0x743ad7]);}async[_0x44ebb5(0x780)](_0xcc829b){const _0x4f0ed6=_0x44ebb5;return this[_0x4f0ed6(0x47b)](_0x4f0ed6(0x780),[_0x4dbf31(_0xcc829b)]);}[_0x44ebb5(0x7c5)](_0x23f0ee){const _0x15c5a8=_0x44ebb5;return this['_n'](_0x15c5a8(0x7c5),[_0x4dbf31(_0x23f0ee)]);}['search'](_0x3cd0a3,_0x48bb19,_0x2da7b7,_0x235c67,_0x2132ad){return this['_n']('search',[_0x3cd0a3,_0x48bb19,_0x2da7b7,_0x235c67||{},_0x4dbf31(_0x2132ad)]);}[_0x44ebb5(0x2cc)](_0x17ceec,_0x59082d,_0x4a5889,_0x2d5c30,_0x357a19,_0x2afda4){const _0x340b58=_0x44ebb5;return this['_n'](_0x340b58(0x2cc),[_0x17ceec,_0x59082d,_0x4a5889,_0x2d5c30||{},_0x4dbf31(_0x357a19),_0x2afda4]);}['_searchWithScores'](_0x30763d,_0x119101,_0x4d237f,_0x55d86f,_0xdbe4a1){return this['_n']('searchWithScores',[_0x30763d,_0x119101,_0x4d237f,_0x55d86f||{},_0x4dbf31(_0xdbe4a1)]);}['listFtsEnvs'](){return this['_n']('listFtsEnvs',[]);}async[_0x44ebb5(0x303)](){const _0x29248d=_0x44ebb5;return this[_0x29248d(0x47b)](_0x29248d(0x303),[]);}}return fts={'OKDBFts':_0x26a0f5},fts;}var embeddings,hasRequiredEmbeddings;function requireEmbeddings(){const _0x39df8a=_0x1ade1a;if(hasRequiredEmbeddings)return embeddings;hasRequiredEmbeddings=0x1;const {OKDBError:_0x642ead,invalidArgument:_0x20c91a}=requireErrors();requireBridge();const _0x4a9e25=Object[_0x39df8a(0x493)]({'EMBEDDER':_0x39df8a(0x6ff),'INDEXER':_0x39df8a(0x1e4),'SEARCH':_0x39df8a(0x205),'WORKER':'embed-worker'}),_0x25810b=_0x408c27=>typeof _0x408c27===_0x39df8a(0x4c1)||_0x408c27==null?_0x408c27:Array[_0x39df8a(0x5f7)](_0x408c27);class _0x94e222{constructor(_0x411741){const _0x45bb82=_0x39df8a;this[_0x45bb82(0x555)]=_0x411741,this['_jsFactories']=new Map(),this[_0x45bb82(0x818)]=new Map(),this[_0x45bb82(0x66f)]=new Map();}['_n'](_0x1b50d8,_0x3cc263=[],_0x5992c9=!![]){const _0x1a784b=_0x39df8a;return this[_0x1a784b(0x555)][_0x1a784b(0x82b)](_0x1a784b(0x5cf),null,_0x1b50d8,_0x3cc263,_0x5992c9);}['_nm'](_0x2ca4e4,_0x4c5aea=[]){const _0x183369=_0x39df8a;return this[_0x183369(0x555)][_0x183369(0x421)]('embeddings',null,_0x2ca4e4,_0x4c5aea,!![]);}[_0x39df8a(0x2ac)](_0xa67202){const _0x189e57=_0x39df8a;return _0xa67202?this[_0x189e57(0x555)][_0x189e57(0x5a4)]['_wrap'](_0xa67202):null;}['registerEmbedderFactory'](_0x345ef6,_0x4a5299,_0x26d21e={}){const _0x4404b4=_0x39df8a;if(typeof _0x4a5299!==_0x4404b4(0x40e))throw new _0x642ead(_0x4404b4(0x589),_0x4404b4(0x229),{'name':_0x345ef6});this[_0x4404b4(0x451)][_0x4404b4(0x488)](_0x345ef6,_0x4a5299),this[_0x4404b4(0x818)][_0x4404b4(0x488)](_0x345ef6,_0x26d21e);const _0x5ebad7=this['okdb'],_0x3e01d4=_0x34f8d1=>_0x4a5299(_0x34f8d1,_0x5ebad7);_0x3e01d4[_0x4404b4(0x1e3)]=_0x5ebad7,this['_n']('registerEmbedderFactory',[_0x345ef6,_0x3e01d4,_0x26d21e??{}],![]);}[_0x39df8a(0x477)](_0x37bd06){const _0x5e69ac=_0x39df8a,_0x51196f=this[_0x5e69ac(0x451)]['get'](_0x37bd06);if(_0x51196f)return _0x51196f;if(!this['_n'](_0x5e69ac(0x7ca),[_0x37bd06],![]))return null;const _0x1f78f7=this;return(_0x514dc5={})=>{const _0x4125da=_0x5e69ac,_0x1886a8=_0x1f78f7['_n'](_0x4125da(0x135),[_0x37bd06,_0x514dc5],![]),_0x39347c=_0x1f78f7['_n'](_0x4125da(0x42d),[_0x1886a8],![]),_0x2b570f=(_0x148bf8,_0x2d7841)=>_0x1f78f7['_n']('embedderCall',[_0x1886a8,_0x148bf8,_0x2d7841],![]),_0xa36f6c={'embed':async _0xe954ab=>Float32Array[_0x4125da(0x5f7)](_0x2b570f(_0x4125da(0x26d),_0xe954ab)),'start':async()=>_0x2b570f('start'),'stop':async()=>{const _0x4505e1=_0x4125da;_0x2b570f(_0x4505e1(0x851)),_0x2b570f(_0x4505e1(0x1ff));}};if(_0x39347c)_0xa36f6c['embedBatch']=async _0x277b02=>_0x2b570f(_0x4125da(0x3fa),_0x277b02)['map'](_0x173933=>Float32Array[_0x4125da(0x5f7)](_0x173933));return _0xa36f6c;};}[_0x39df8a(0x335)](_0x2652e4){const _0x1bf392=_0x39df8a;return this['_jsSchemas'][_0x1bf392(0x616)](_0x2652e4)??this['_n']('getEmbedderSchema',[_0x2652e4],![])??undefined;}[_0x39df8a(0x27c)](_0x30bc0d,_0x14d929,_0x29dd08={}){const _0x2d1c87=_0x39df8a;if(typeof _0x14d929!==_0x2d1c87(0x40e))throw new _0x642ead(_0x2d1c87(0x7af),'BAD_PARAM',{'name':_0x30bc0d});this['_n'](_0x2d1c87(0x27c),[_0x30bc0d,(_0xf04814,_0x424794)=>_0x14d929(_0xf04814,_0x424794),_0x29dd08??{}],![]);}['listAlgorithms'](){const _0x5b8b6b=_0x39df8a;return this['_n'](_0x5b8b6b(0x7ad),[],![]);}['registerPreparer'](_0x2bc4d9,_0x139569){const _0x1f7772=_0x39df8a;if(typeof _0x139569!==_0x1f7772(0x40e))throw new _0x642ead(_0x1f7772(0x84c),_0x1f7772(0x229),{'name':_0x2bc4d9});this['_n'](_0x1f7772(0x3ba),[_0x2bc4d9,_0x139569]);}[_0x39df8a(0x1ee)](_0x477723,_0x3e65e9){const _0xcbacec=_0x39df8a;if(typeof _0x3e65e9!=='function')throw new _0x642ead('chunk\x20strategy\x20must\x20be\x20a\x20function',_0xcbacec(0x229),{'name':_0x477723});this['_n']('registerChunkStrategy',[_0x477723,_0x3e65e9]);}['setStorageResolver'](_0x31a63f){const _0x2925a1=_0x39df8a;if(_0x31a63f==null)return this['_n'](_0x2925a1(0x234),[null],![]);if(typeof _0x31a63f!==_0x2925a1(0x40e))throw new _0x642ead(_0x2925a1(0x62f),_0x2925a1(0x229));const _0x51d780=this[_0x2925a1(0x555)];this['_n'](_0x2925a1(0x234),[_0x54435=>_0x31a63f(_0x54435,_0x51d780)],![]);}async[_0x39df8a(0x860)](_0x5e06b0,_0xbc1d6a={},_0x22c199={},_0x7c49f8=null){const _0x10cbe2=_0x39df8a;return this['_wrap'](await this[_0x10cbe2(0x47b)]('createEmbedder',[_0x5e06b0,_0xbc1d6a,_0x22c199,_0x7c49f8]));}async[_0x39df8a(0x5f4)](_0x23e579,_0x585b1c={},_0x5587e9={}){const _0x3ad1ef=_0x39df8a;return this['_wrap'](await this['_nm'](_0x3ad1ef(0x5f4),[_0x23e579,_0x585b1c,_0x5587e9]));}async[_0x39df8a(0x7f3)](_0x23b155,_0x30ad43={},_0x1f91fb={}){const _0xb0fb97=_0x39df8a;return this['_wrap'](await this[_0xb0fb97(0x47b)](_0xb0fb97(0x7f3),[_0x23b155,_0x30ad43,_0x1f91fb]));}async[_0x39df8a(0x1e2)](_0x186aba,_0x495142={},_0xbdd78d={}){const _0x55113b=_0x39df8a;return this['_wrap'](await this['_nm'](_0x55113b(0x1e2),[_0x186aba,_0x495142,_0xbdd78d]));}async[_0x39df8a(0x49a)](_0xbac1a0,_0x581d22={},_0x1c64ae={}){const _0x3c047c=_0x39df8a,_0x3a366a=await this['_nm']('createPipeline',[_0xbac1a0,_0x581d22,_0x1c64ae]);return{'embedder':this['_wrap'](_0x3a366a['embedder']),'indexer':this[_0x3c047c(0x2ac)](_0x3a366a[_0x3c047c(0x1e4)]),'worker':this[_0x3c047c(0x2ac)](_0x3a366a[_0x3c047c(0x309)]),'search':this['_wrap'](_0x3a366a[_0x3c047c(0x474)]),'api':this[_0x3c047c(0x1ad)](_0x3a366a['scopedName'],_0x3a366a['embedder'][_0x3c047c(0x885)],_0x3a366a[_0x3c047c(0x309)]?_0x3a366a[_0x3c047c(0x309)]['name']:_0x3a366a['scopedName']+_0x3c047c(0x365))};}[_0x39df8a(0x5ec)](_0x55bf04,_0x4087b0){const _0x458702=_0x39df8a;return this['okdb']['engines'][_0x458702(0x273)](_0x55bf04,_0x4087b0)?.['api']??null;}['embedder'](_0x11cb3a){const _0x2581f5=_0x39df8a,_0x502348=this[_0x2581f5(0x5ec)](_0x4a9e25[_0x2581f5(0x2ea)],_0x11cb3a);if(!_0x502348)return null;const _0x50b2fe=this,_0x3af453=_0x2df79b=>Array[_0x2581f5(0x4b6)](_0x2df79b)&&Array[_0x2581f5(0x4b6)](_0x2df79b[0x0])?_0x2df79b[_0x2581f5(0x6f2)](_0x2b6d22=>Float32Array[_0x2581f5(0x5f7)](_0x2b6d22)):Float32Array[_0x2581f5(0x5f7)](_0x2df79b);return new Proxy(_0x502348,{'get'(_0xaf81c1,_0xfef84e){const _0x207e5f=_0x2581f5;if(_0xfef84e===_0x207e5f(0x6df))return _0x50b2fe[_0x207e5f(0x555)]['_call'](_0x207e5f(0x5a4),null,'apiCall',[_0x4a9e25[_0x207e5f(0x2ea)],_0x11cb3a,_0x207e5f(0x6df),[]],![])[_0x207e5f(0x7fd)];if(_0xfef84e==='embed')return async _0x226aa4=>_0x3af453(await _0x502348[_0x207e5f(0x26d)](_0x226aa4));if(_0xfef84e==='embedBatch')return async _0x15d591=>(await _0x502348['embedBatch'](_0x15d591))[_0x207e5f(0x6f2)](_0xc31f3f=>Float32Array['from'](_0xc31f3f));return _0xaf81c1[_0xfef84e];}});}[_0x39df8a(0x1e4)](_0xcce6af){const _0x1cfeaa=_0x39df8a;return this[_0x1cfeaa(0x5ec)](_0x4a9e25['INDEXER'],_0xcce6af);}[_0x39df8a(0x309)](_0x35a46e){const _0x2bcae5=_0x39df8a;return this[_0x2bcae5(0x5ec)](_0x4a9e25[_0x2bcae5(0x3b1)],_0x35a46e);}['search'](_0x28230c){const _0x3fe11c=_0x39df8a,_0x340b3c=this['_running'](_0x4a9e25[_0x3fe11c(0x795)],_0x28230c);if(_0x340b3c)return _0x340b3c;return this[_0x3fe11c(0x72a)](_0x28230c);}[_0x39df8a(0x72a)](_0x3b26ef){const _0x404fa2=_0x39df8a,_0x18846d=this;return{'search':(_0x3aeac5,_0x449676={})=>_0x18846d['okdb']['_callMacro'](_0x404fa2(0x5cf),null,_0x404fa2(0x474),[_0x3b26ef,_0x25810b(_0x3aeac5),_0x449676],![]),'stats':async()=>_0x18846d['_n'](_0x404fa2(0x56b),[_0x3b26ef],![]),'count':()=>_0x18846d['_n'](_0x404fa2(0x842),[_0x3b26ef,_0x404fa2(0x5ad)],![])};}async[_0x39df8a(0x2cc)](_0x66fbf,_0x48afe9,_0x4431fb={}){const _0x44dd5f=_0x39df8a,{limit:limit=0xa,..._0x474f90}=_0x4431fb;return this[_0x44dd5f(0x47b)](_0x44dd5f(0x2cc),[_0x66fbf,_0x25810b(_0x48afe9),{..._0x474f90,'limit':limit}]);}[_0x39df8a(0x168)](_0x2244a7){const _0x4d846b=_0x39df8a;return this['_n'](_0x4d846b(0x168),[_0x2244a7],![]);}['_durableEngineDoc'](_0x32039a,_0x51ec8a){return this['_n']('durableEngineDoc',[_0x32039a,_0x51ec8a],![]);}[_0x39df8a(0x6a1)](_0x42a273){const _0x52f23e=_0x39df8a;return this['_n'](_0x52f23e(0x603),[_0x42a273],![]);}async[_0x39df8a(0x6d6)](_0x294b06){const _0xb811cb=_0x39df8a;return this['_n'](_0xb811cb(0x55f),[_0x294b06],![]);}async['_durableIndexerDocs'](_0xd44335,_0x1c09e5={}){const _0x59efab=_0x39df8a;return this['_n'](_0x59efab(0x39e),[_0xd44335,_0x1c09e5],![]);}async[_0x39df8a(0x2fc)](_0x3040f9,_0x5dbf2c){const _0x56018d=_0x39df8a;return this['_n'](_0x56018d(0x735),[_0x3040f9,_0x5dbf2c],![]);}async[_0x39df8a(0x278)](_0xf4e991,_0x512eb0,_0x3f05fc,_0x1d8c67){const _0x40465b=_0x39df8a;if(_0xf4e991!=null&&typeof _0xf4e991[_0x40465b(0x2bc)]!==_0x40465b(0x40e))throw _0x20c91a(_0x40465b(0x885),_0x40465b(0x7c7),_0xf4e991);if(!_0xf4e991||!_0x3f05fc)return null;return this[_0x40465b(0x555)]['_callMacro'](_0x40465b(0x5cf),null,_0x40465b(0x278),[_0xf4e991,_0x512eb0,_0x3f05fc,_0x1d8c67??null],![]);}async[_0x39df8a(0x680)](_0x2ddcbb,_0x49d9d9,_0x1c2d88={}){const _0x297d46=_0x39df8a,_0x4c7bc3={..._0x1c2d88};if(_0x4c7bc3['vector'])_0x4c7bc3[_0x297d46(0x812)]=Array['from'](_0x4c7bc3[_0x297d46(0x812)]);return this['_n'](_0x297d46(0x680),[_0x2ddcbb,_0x49d9d9,_0x4c7bc3]);}async['durableMarkFail'](_0x4c0352,_0x104d44,_0x401e2a,_0x5e2f12={}){const _0x8f5c56=_0x39df8a;return this['_n'](_0x8f5c56(0x66a),[_0x4c0352,_0x104d44,_0x401e2a,_0x5e2f12]);}async[_0x39df8a(0x5ee)](_0x576728,_0x43ae54){const _0x2ccfc4=_0x39df8a;return this['_n'](_0x2ccfc4(0x5ee),[_0x576728,_0x43ae54]);}async[_0x39df8a(0x485)](_0x2695bb,_0x3c682c){const _0x33e61c=_0x39df8a;return this['_n'](_0x33e61c(0x485),[_0x2695bb,_0x3c682c]);}async[_0x39df8a(0x1ec)](_0xa82f99,_0x3e11b4={}){return this['_n']('durableRetryFailed',[_0xa82f99,_0x3e11b4]);}async[_0x39df8a(0x4e0)](_0x315e60){const _0x310978=_0x39df8a;return this['_nm'](_0x310978(0x4e0),[_0x315e60]);}async[_0x39df8a(0x5d2)](_0x496bb0){const _0x4877f6=_0x39df8a;return this['_n'](_0x4877f6(0x6e9),[_0x496bb0],![]);}[_0x39df8a(0x72b)](_0x3d3c01){const _0x3b41d8=_0x39df8a;return this['_n'](_0x3b41d8(0x72b),[_0x3d3c01],![]);}['listVectorStores'](){const _0x32cc43=_0x39df8a;return this['_n'](_0x32cc43(0x5da),[],![]);}[_0x39df8a(0x4f3)](_0x1d4f16,_0x4c7eff){const _0xbb2979=_0x39df8a,_0x57c3e1=this['_n']('getVector',[_0x1d4f16,_0x4c7eff],![]);return _0x57c3e1==null?null:Float32Array[_0xbb2979(0x5f7)](_0x57c3e1);}[_0x39df8a(0x55d)](_0x11cb6b,_0x1652c2){const _0x256582=_0x39df8a;return this['_n'](_0x256582(0x55d),[_0x11cb6b,_0x1652c2??null],![])??undefined;}async[_0x39df8a(0x314)](_0x1a0732,_0xcd75bc,_0x5e648d,_0x1d0a2b=''){const _0x1067d2=_0x39df8a;return this['_n'](_0x1067d2(0x314),[_0x1a0732,_0xcd75bc,_0x5e648d,_0x1d0a2b]);}['listModels'](_0x30b0c9=null){const _0x210e8f=_0x39df8a;return this['_n'](_0x210e8f(0x435),[_0x30b0c9],![]);}[_0x39df8a(0x1a0)](){const _0x234376=_0x39df8a;return this['_n'](_0x234376(0x1a0),[],![]);}async[_0x39df8a(0x54c)](_0x10ea7b,_0x24367c){const _0x373030=_0x39df8a;return this['_n'](_0x373030(0x868),[_0x10ea7b,_0x24367c],![]),this[_0x373030(0x555)]['_ensureEnv']('~'+_0x10ea7b+_0x373030(0x6e2)+_0x24367c);}async[_0x39df8a(0x274)](_0x5d3b52,_0xa5665f){const _0x59c450=_0x39df8a;return await this[_0x59c450(0x54c)](_0x5d3b52,_0xa5665f),{'adapter':_0x189d68=>this[_0x59c450(0x36d)](_0x5d3b52,_0xa5665f,_0x189d68)};}['_makeLazyVectorAdapter'](_0x2a5775,_0x3230fa,_0x172c0a){const _0x4b5c72=this;return{async 'put'(_0x458870,_0x2b5c5f){const _0x23aad8=_0x3f13;return _0x4b5c72['_n'](_0x23aad8(0x545),[_0x2a5775,_0x3230fa,_0x172c0a,_0x458870,Array['from'](_0x2b5c5f)]);},async 'remove'(_0x5ed6b5){const _0x1ffdff=_0x3f13;return _0x4b5c72['_n'](_0x1ffdff(0x17a),[_0x2a5775,_0x3230fa,_0x172c0a,_0x5ed6b5]);}};}get[_0x39df8a(0x298)](){const _0x31bd65=_0x39df8a,_0x493543=this,_0x3d6d47=()=>_0x493543['_n'](_0x31bd65(0x4c5),[],![]),_0x49ea61=_0x11d166=>{const _0x35c146=_0x31bd65,_0x146772=_0x8bdc61=>_0x493543['_n'](_0x35c146(0x842),[_0x11d166,_0x8bdc61],![]);return{'name':_0x11d166,'_evict':async()=>_0x146772(_0x35c146(0x344)),'evict':async()=>_0x146772(_0x35c146(0x344)),'snapshot':async()=>_0x146772(_0x35c146(0x7e2)),'_snapshot':async()=>_0x146772(_0x35c146(0x7e2)),'rebuild':async()=>_0x146772(_0x35c146(0x429)),'stats':()=>_0x146772(_0x35c146(0x5fc)),get 'count'(){return _0x146772('count');},get 'loaded'(){const _0x571852=_0x35c146;return _0x146772(_0x571852(0x86d));}};};return{get 'size'(){return _0x3d6d47()['length'];},'has':_0x417286=>_0x3d6d47()['includes'](_0x417286),'get':_0x15102e=>_0x3d6d47()['includes'](_0x15102e)?_0x49ea61(_0x15102e):undefined,'keys':()=>_0x3d6d47()[Symbol[_0x31bd65(0x821)]](),'values':()=>_0x3d6d47()[_0x31bd65(0x6f2)](_0x49ea61)[Symbol[_0x31bd65(0x821)]](),[Symbol[_0x31bd65(0x821)]]:()=>_0x3d6d47()[_0x31bd65(0x6f2)](_0x4d8b57=>[_0x4d8b57,_0x49ea61(_0x4d8b57)])[Symbol['iterator']]()};}async[_0x39df8a(0x525)](){}async[_0x39df8a(0x851)](){const _0x394598=_0x39df8a;this['_n'](_0x394598(0x851),[]);}[_0x39df8a(0x1ad)](_0x220407,_0x1e3312,_0x14bbb7){const _0x22dd86=_0x39df8a;return{'search':(_0x334743,_0x59c087={})=>{const _0x79773e=_0x3f13,_0x287365=this['search'](_0x220407);if(!_0x287365)throw new Error(_0x79773e(0x184)+_0x220407+'\x22');return _0x287365[_0x79773e(0x474)](_0x334743,_0x59c087);},'searchDocs':(_0x591162,_0x2112a7={})=>this[_0x22dd86(0x2cc)](_0x220407,_0x591162,_0x2112a7),'flush':_0x157a7a=>{const _0x55cd96=_0x22dd86,_0x5db377=this[_0x55cd96(0x1e4)](_0x220407);if(!_0x5db377)throw new Error(_0x55cd96(0x7f9)+_0x220407+'\x22');return _0x5db377['flush'](_0x157a7a);},'stats':async()=>({'embedder':await this[_0x22dd86(0x6ff)](_0x1e3312)?.['health']?.(),'indexer':await this[_0x22dd86(0x1e4)](_0x220407)?.['stats']?.(),'worker':await this[_0x22dd86(0x309)](_0x14bbb7)?.[_0x22dd86(0x5fc)]?.(),'search':await this[_0x22dd86(0x474)](_0x220407)?.['stats']?.()})};}}return embeddings={'OKDBEmbeddings':_0x94e222,'ENGINE_TYPES':_0x4a9e25},embeddings;}var auth,hasRequiredAuth;function requireAuth(){const _0x53de26=_0x1ade1a;if(hasRequiredAuth)return auth;hasRequiredAuth=0x1;const {invalidArgument:_0x59e86a}=requireErrors();class _0x4bd743{constructor(_0xf2166d){const _0x205c9a=_0x3f13;this[_0x205c9a(0x555)]=_0xf2166d;}['_n'](_0xd3e6fc,_0x5128e1=[],_0x4a01fc=![]){const _0x320c4c=_0x3f13;return this[_0x320c4c(0x555)][_0x320c4c(0x82b)]('auth',null,_0xd3e6fc,_0x5128e1,_0x4a01fc);}[_0x53de26(0x47b)](_0x48920f,_0x24d358=[]){const _0x56ce52=_0x53de26;return this[_0x56ce52(0x555)][_0x56ce52(0x421)]('auth',null,_0x48920f,_0x24d358,![]);}get[_0x53de26(0x75b)](){const _0x14fcbb=_0x53de26;return this['_n'](_0x14fcbb(0x75b));}get['isSetupMode'](){const _0x567f67=_0x53de26;return this['_n'](_0x567f67(0x213));}get[_0x53de26(0x7ba)](){const _0x319c3f=_0x53de26;return this[_0x319c3f(0x555)]['options'][_0x319c3f(0x470)]?.[_0x319c3f(0x1bd)]||{};}[_0x53de26(0x7fe)](_0x4fbef8){const _0x28e34d=_0x53de26;return this['_n'](_0x28e34d(0x7fe),[_0x4fbef8??null]);}['_isOpenForIp'](_0x12170a){const _0x1ae572=_0x53de26;return this['_n'](_0x1ae572(0x4a4),[_0x12170a??null]);}[_0x53de26(0x271)](_0x31f9aa){const _0x79ef74=_0x53de26;return this['_n'](_0x79ef74(0x3af),[_0x31f9aa??null]);}[_0x53de26(0x666)](){return this['_n']('isBootstrap');}[_0x53de26(0x82d)](){const _0xf3125=_0x53de26;return this['_n'](_0xf3125(0x82d));}[_0x53de26(0x380)](){return this['_n']('getAuthOptions');}[_0x53de26(0x1fd)](_0x4d28e9){const _0x490efc=_0x53de26;return this['_n'](_0x490efc(0x1fd),[_0x4d28e9]);}['authenticateToken'](_0x38362d){const _0x1ee7f3=_0x53de26;return this['_n'](_0x1ee7f3(0x54e),[_0x38362d]);}[_0x53de26(0x388)](_0x2ad7bb){const _0x257bfc=_0x53de26;if(_0x2ad7bb!=null&&typeof _0x2ad7bb!==_0x257bfc(0x4c1))throw _0x59e86a(_0x257bfc(0x841),'a\x20string',_0x2ad7bb);return this['_n'](_0x257bfc(0x388),[_0x2ad7bb??null]);}async[_0x53de26(0x810)](){const _0x3c7e1d=_0x53de26;return this['_n'](_0x3c7e1d(0x1f1),[],!![]);}async[_0x53de26(0x2bf)](_0x13ed56){const _0x5a8c21=_0x53de26;return this['_n'](_0x5a8c21(0x13e),[_0x13ed56]);}async[_0x53de26(0x848)](_0xcce48f){const _0x20b6d5=_0x53de26;return this['_n'](_0x20b6d5(0x539),[_0xcce48f]);}async[_0x53de26(0x3d8)](_0x525fb7){const _0x362361=_0x53de26;return this['_n'](_0x362361(0x87e),[_0x525fb7]);}async[_0x53de26(0x5cc)](_0x4c33a2){const _0x30ddcb=_0x53de26,_0x4ae3e4=_0x4c33a2?.[_0x30ddcb(0x238)]||{};return this['_n']('authenticateRequest',[{'remoteAddress':_0x4c33a2[_0x30ddcb(0x3cb)]?.[_0x30ddcb(0x37c)]??null,'internal':_0x4c33a2?.['context']?.[_0x30ddcb(0x2db)]===!![],'authorization':_0x4ae3e4['authorization']??null,'cookies':_0x4c33a2?.[_0x30ddcb(0x7e8)]??{}}]);}async[_0x53de26(0x61f)](_0x34147a,_0x39aa1e){const _0x2325dd=_0x53de26;return this['_nm'](_0x2325dd(0x61f),[_0x34147a??null,_0x39aa1e??null]);}async['loginSelect'](_0x412aea,_0xb0cb52,_0x130e18){const _0x2f0e27=_0x53de26;return this[_0x2f0e27(0x47b)](_0x2f0e27(0x41d),[_0x412aea??null,_0xb0cb52??null,_0x130e18??null]);}[_0x53de26(0x5ca)](){const _0x15d3de=_0x53de26;return this['_n'](_0x15d3de(0x5ca));}[_0x53de26(0x871)](){const _0xcddb28=_0x53de26;return this['_n'](_0xcddb28(0x871));}[_0x53de26(0x1ed)](_0x32a365={},_0x5f3199=0x927c0){const _0x1a8126=_0x53de26;return this['_n'](_0x1a8126(0x1ed),[_0x32a365,_0x5f3199]);}['consumeLoginState'](_0x27175d){const _0x26d7e9=_0x53de26;return this['_n'](_0x26d7e9(0x404),[_0x27175d]);}async[_0x53de26(0x46e)](_0x4fc2be,_0x97fc7b={}){const _0x3fe991=_0x53de26;return this[_0x3fe991(0x47b)](_0x3fe991(0x33c),[_0x4fc2be,_0x97fc7b]);}async[_0x53de26(0x682)](_0x2a7c69={}){const _0xa7707c=_0x53de26;return this[_0xa7707c(0x47b)](_0xa7707c(0x71f),[_0x2a7c69]);}[_0x53de26(0x26c)](_0x4810bb){return this['_n']('normalizeOAuthAuthResult',[_0x4810bb]);}}return auth={'OKDBAuth':_0x4bd743},auth;}var sync,hasRequiredSync;function requireSync(){const _0x346445=_0x1ade1a;if(hasRequiredSync)return sync;hasRequiredSync=0x1;const {RawDb:_0x12783e}=requireRawdb();class _0x1416ff{constructor(_0xa0594e){this['_s']=_0xa0594e;}get['_ackDb'](){const _0x2de22d=_0x3f13;return this['_ack']||(this[_0x2de22d(0x272)]=new _0x12783e(this['_s']['okdb']['_systemEnv'],_0x2de22d(0x482)));}[_0x346445(0x443)](){const _0x39c0bc=_0x346445;return this[_0x39c0bc(0x47f)];}[_0x346445(0x41b)](){const _0x28bc9e=_0x346445;return this[_0x28bc9e(0x47f)];}['_n'](_0x1bb3ef,_0x2f5182=[]){return this['_s']['_n']('gc.'+_0x1bb3ef,_0x2f5182);}['recordPeerAck'](_0x6a51af,_0x50a585){const _0x1b2791=_0x346445;return this['_n'](_0x1b2791(0x481),[_0x6a51af,_0x50a585]);}async[_0x346445(0x444)](_0x11917d){return this['_n']('forceResync',[_0x11917d]);}['getPeerAcks'](){const _0x4942d8=_0x346445;return this['_n'](_0x4942d8(0x2eb));}[_0x346445(0x659)](_0x315825){const _0x53a37d=_0x346445;return this['_n'](_0x53a37d(0x659),[_0x315825]);}async[_0x346445(0x2a0)](){const _0xb964fb=_0x346445;return this['_n'](_0xb964fb(0x2a0));}['getStatus'](){return this['_n']('getStatus');}[_0x346445(0x525)](){const _0x44cf93=_0x346445;return this['_n'](_0x44cf93(0x525));}[_0x346445(0x851)](){const _0x209cc6=_0x346445;return this['_n'](_0x209cc6(0x851));}get[_0x346445(0x71b)](){const _0x1cac42=_0x346445;try{return this['_n'](_0x1cac42(0x1ae))?{}:null;}catch{return null;}}}class _0x13f5bd{constructor(_0x1f30f9){const _0x3a9763=_0x346445;this['okdb']=_0x1f30f9,this['gc']=new _0x1416ff(this);const _0x2deb95=this;this[_0x3a9763(0x5c3)]=new Proxy({},{'get':(_0xcb20db,_0x42e397)=>typeof _0x42e397===_0x3a9763(0x4c1)?_0x2deb95['_n']('options')[_0x42e397]:undefined,'set':(_0x1026eb,_0x55fedf,_0x5b097f)=>{const _0x336193=_0x3a9763;if(_0x55fedf===_0x336193(0x244))_0x2deb95['_n'](_0x336193(0x355),[_0x5b097f??null]);else{if(_0x55fedf===_0x336193(0x4c8))_0x2deb95['_n'](_0x336193(0x3fd),[_0x5b097f??null]);else{if(_0x55fedf===_0x336193(0x2a9))_0x2deb95['_n'](_0x336193(0x675),[_0x5b097f]);}}return!![];},'ownKeys':()=>Object[_0x3a9763(0x23b)](_0x2deb95['_n'](_0x3a9763(0x5c3))),'getOwnPropertyDescriptor':(_0xc0657b,_0x13827b)=>({'enumerable':!![],'configurable':!![],'value':_0x2deb95['_n']('options')[_0x13827b]}),'has':(_0x7d183d,_0x21a7a9)=>_0x21a7a9 in _0x2deb95['_n'](_0x3a9763(0x5c3))});}['_n'](_0x19267b,_0xc3bccb=[],_0xd4fd58=![]){const _0x1f048f=_0x346445;return this[_0x1f048f(0x555)][_0x1f048f(0x82b)](_0x1f048f(0x7a8),null,_0x19267b,_0xc3bccb,_0xd4fd58);}[_0x346445(0x47b)](_0x2bc2bf,_0x3a4527=[]){const _0x4319c8=_0x346445;return this['okdb'][_0x4319c8(0x421)](_0x4319c8(0x7a8),null,_0x2bc2bf,_0x3a4527,!![]);}get[_0x346445(0x417)](){const _0x1e4dc6=_0x346445;return this[_0x1e4dc6(0x518)]||(this[_0x1e4dc6(0x518)]=new _0x12783e(this[_0x1e4dc6(0x555)][_0x1e4dc6(0x70a)],_0x1e4dc6(0x16e)));}[_0x346445(0x3ef)](){const _0x2a9fc7=_0x346445;return this[_0x2a9fc7(0x417)];}get[_0x346445(0x761)](){const _0xb8adae=_0x346445;return this[_0xb8adae(0x5f5)]||(this[_0xb8adae(0x5f5)]=new(requireLock())[(_0xb8adae(0x288))](this[_0xb8adae(0x555)],_0xb8adae(0x196),_0xb8adae(0x7a8),{'ttlMs':0x7530}));}get[_0x346445(0x244)](){const _0x2df4d6=_0x346445;return this['_n'](_0x2df4d6(0x5c3))['address'];}get['_clockListener'](){const _0x670935=_0x346445;return this['okdb']['_isOpen']&&this['_n'](_0x670935(0x221))?{}:null;}get[_0x346445(0x30f)](){const _0x64848f=_0x346445;return this[_0x64848f(0x162)];}get[_0x346445(0x17c)](){const _0x5df36e=_0x346445;return this['_n'](_0x5df36e(0x179))?.[_0x5df36e(0x2f8)];}get[_0x346445(0x63e)](){const _0x600c8=_0x346445;return this['_n'](_0x600c8(0x179))?.[_0x600c8(0x837)];}[_0x346445(0x786)](){const _0x47e119=_0x346445;return this['_n'](_0x47e119(0x786));}[_0x346445(0x60f)](){const _0x977abb=_0x346445;return this['_n'](_0x977abb(0x60f));}get['peers'](){const _0x1a96ba=_0x346445;return this['__peers']||(()=>this['_n'](_0x1a96ba(0x7ff)));}set[_0x346445(0x7ff)](_0x2aee9d){const _0x1f9bec=_0x346445;this['__peers']=typeof _0x2aee9d===_0x1f9bec(0x40e)?_0x2aee9d:null,this['_n'](_0x1f9bec(0x154),[this[_0x1f9bec(0x626)]]);}[_0x346445(0x1b1)](){const _0x4f1d01=_0x346445;return this['_n'](_0x4f1d01(0x54b));}async[_0x346445(0x669)](){const _0x3f0e70=_0x346445;return this[_0x3f0e70(0x47b)](_0x3f0e70(0x669));}async['reconcilePeer'](_0xf5ccc2){const _0x14759d=_0x346445;return this['_nm'](_0x14759d(0x16b),[_0xf5ccc2]);}async[_0x346445(0x287)](_0x3f3e5c,_0x579a94={}){const _0x1324b1=_0x346445;return this['_nm'](_0x1324b1(0x414),[_0x3f3e5c,_0x579a94]);}['stop'](){return this['_n']('stop');}[_0x346445(0x7ec)](){return this['_n']('listLinks');}async[_0x346445(0x4f0)](_0x3b814f,_0x55d7db={}){const _0x39c5ca=_0x346445;return this['_n'](_0x39c5ca(0x4f0),[_0x3b814f,_0x55d7db],!![]);}async['removeLink'](_0xdb0594){const _0x1cefa8=_0x346445;return this['_n'](_0x1cefa8(0x19b),[_0xdb0594],!![]);}[_0x346445(0x45f)](_0x5215fb){const _0x1a3fea=_0x346445;return this['_n'](_0x1a3fea(0x4c6),[_0x5215fb]);}[_0x346445(0x64a)](_0x5a0c50){const _0x26b621=_0x346445;return this['_n'](_0x26b621(0x712),[_0x5a0c50]);}async[_0x346445(0x3bb)](_0x26e516,_0x1380bd,_0x3f74a1={}){return this['_n']('setPeerState',[_0x26e516,_0x1380bd,_0x3f74a1]);}async[_0x346445(0x86b)](_0x3df2f7){const _0xe1c3fa=_0x346445;return this['_n'](_0xe1c3fa(0x25f),[_0x3df2f7]);}async[_0x346445(0x222)](){const _0x227f22=_0x346445;return this['_n'](_0x227f22(0x4e2),[],!![]);}async['patchSelf'](_0x224d74){const _0x479b5b=_0x346445;return this['_n'](_0x479b5b(0x439),[_0x224d74],!![]);}async[_0x346445(0x6a2)](_0x330394,_0x17c383={}){return this['_nm']('join',[_0x330394,_0x17c383]);}async[_0x346445(0x489)](_0x81972b={},_0x14523f={}){const _0x2ca78c=_0x346445;return void _0x81972b[_0x2ca78c(0x196)],this['_n'](_0x2ca78c(0x489),[_0x81972b,_0x14523f]);}async[_0x346445(0x572)](_0x59d2c7,_0x248404,_0x1fb5ba,_0x55004b){const _0x414b29=_0x346445;return this[_0x414b29(0x47b)]('fetchPeer',[_0x59d2c7,_0x248404,_0x1fb5ba,_0x55004b??null]);}async[_0x346445(0x819)](_0x16198c,_0x1df42d,_0x156335={}){return this['_nm']('fetchRemoteDelta',[_0x16198c,_0x1df42d,_0x156335]);}[_0x346445(0x7d8)](_0x5a9737,_0x44061e=null){const _0x436881=_0x346445;return this['_n'](_0x436881(0x32c),[_0x5a9737,_0x44061e?_0x44061e[_0x436881(0x885)]:null]);}[_0x346445(0x279)](_0x188459,_0x21e829=null){const _0x2f8f2e=_0x346445;return this['_n'](_0x2f8f2e(0x279),[_0x188459,_0x21e829?_0x21e829[_0x2f8f2e(0x885)]:null],!![]);}}return sync={'OKDBSync':_0x13f5bd},sync;}var migrate,hasRequiredMigrate;function requireMigrate(){const _0x2cf47b=_0x1ade1a;if(hasRequiredMigrate)return migrate;hasRequiredMigrate=0x1;const {optionsArg:_0x49be7a}=requireErrors(),_0x5ece10=require$$0,_0x108dd8=require$$4,_0x45699d=0x40*0x400;async function _0x3f3d44(_0x597fa8,_0x4bfaf4){const _0x59f329=_0x3f13;for(let _0xb775ba=0x0;_0xb775ba<_0x4bfaf4[_0x59f329(0x479)];){let _0x2504bf=Math[_0x59f329(0x5b5)](_0x4bfaf4[_0x59f329(0x479)],_0xb775ba+_0x45699d);if(_0x2504bf<_0x4bfaf4[_0x59f329(0x479)]){const _0x3b5273=_0x4bfaf4[_0x59f329(0x789)](0xa,_0x2504bf-0x1);_0x2504bf=_0x3b5273===-0x1?_0x4bfaf4['length']:_0x3b5273+0x1;}const _0x383e4=_0x597fa8['write'](_0x4bfaf4[_0x59f329(0x57a)](_0xb775ba,_0x2504bf));_0xb775ba=_0x2504bf;if(!_0x383e4)await new Promise(_0x475772=>_0x597fa8[_0x59f329(0x38c)](_0x59f329(0x303),_0x475772));await new Promise(_0xc0d524=>setImmediate(_0xc0d524));}}async function _0x18b67b(_0x4c712c){const _0x26cab8=_0x3f13,_0x1cf16e=[];for await(const _0x2fb7a5 of _0x4c712c)_0x1cf16e[_0x26cab8(0x2e6)](Buffer['isBuffer'](_0x2fb7a5)?_0x2fb7a5:Buffer[_0x26cab8(0x5f7)](_0x2fb7a5,'utf8'));return Buffer[_0x26cab8(0x45c)](_0x1cf16e);}class _0x22f5c2{constructor(_0x43da31){const _0x4452dc=_0x3f13;this[_0x4452dc(0x555)]=_0x43da31;}['_n'](_0x47a821,_0x17e13f){const _0x133401=_0x3f13;return this['okdb']['_call'](_0x133401(0x3ee),null,_0x47a821,_0x17e13f,!![]);}async['exportToStream'](_0x17257c,_0x150cd1={}){const _0x28dbb3=_0x3f13,{data:_0x2811dd,stats:_0x36b06a}=this['_n'](_0x28dbb3(0x820),[_0x150cd1]);return await _0x3f3d44(_0x17257c,Buffer['from'](_0x2811dd)),_0x36b06a;}async[_0x2cf47b(0x86e)](_0xcf0184,_0x478636={}){const _0x3b0637=_0x2cf47b;_0x5ece10['mkdirSync'](_0x108dd8[_0x3b0637(0x741)](_0xcf0184),{'recursive':!![]});const _0x1ef8a8=_0x5ece10[_0x3b0637(0x78d)](_0xcf0184),_0x45d60d=await this[_0x3b0637(0x665)](_0x1ef8a8,_0x478636);return await new Promise((_0x43fb54,_0x704ad2)=>{const _0x50cc55=_0x3b0637;_0x1ef8a8[_0x50cc55(0x5a6)](),_0x1ef8a8[_0x50cc55(0x38c)](_0x50cc55(0x75f),_0x43fb54),_0x1ef8a8['once'](_0x50cc55(0x814),_0x704ad2);}),{..._0x45d60d,'filePath':_0xcf0184};}async[_0x2cf47b(0x58f)](_0x4dc5da,_0x31bf6d={}){const _0x1e0fec=_0x2cf47b,{data:_0x16ba37,stats:_0x17c3ee}=this['_n'](_0x1e0fec(0x736),[_0x31bf6d]);return await _0x3f3d44(_0x4dc5da,Buffer[_0x1e0fec(0x5f7)](_0x16ba37)),_0x17c3ee;}async[_0x2cf47b(0x1fc)](_0x59bd05,_0x2164da={}){const _0x1810f1=_0x2cf47b,_0x3d7fd6=await _0x18b67b(_0x59bd05),{onProgress:_0xc61677,..._0x132289}=_0x2164da,_0x4baf0c=this['_n']('importBuf',[_0x3d7fd6,_0x132289]);if(typeof _0xc61677===_0x1810f1(0x40e))_0xc61677({'type':null,'count':_0x4baf0c['records']});return _0x4baf0c;}async['importFromFile'](_0x12594b,_0x541cc8={}){const _0x1ff4a9=_0x2cf47b;return this[_0x1ff4a9(0x1fc)](_0x5ece10[_0x1ff4a9(0x193)](_0x12594b,{'encoding':_0x1ff4a9(0x2e2)}),_0x541cc8);}async[_0x2cf47b(0x7c8)](_0x495e72,_0x11f0b7={}){const _0xebcece=_0x2cf47b;return this['_n'](_0xebcece(0x7c8),[_0x495e72,_0x11f0b7]);}[_0x2cf47b(0x686)](){return this['_n']('backupRoot',[]);}[_0x2cf47b(0x2cd)](_0x3afe99){const _0x186cd7=_0x2cf47b;return this['_n'](_0x186cd7(0x2cd),[_0x3afe99??null]);}async['export'](_0x113992={}){const _0x49c973=_0x2cf47b;return this['_n'](_0x49c973(0x333),[_0x113992]);}async['import'](_0xb058ba,_0x47d0ae={}){return this['_n']('import',[_0xb058ba,_0x47d0ae]);}async[_0x2cf47b(0x161)](_0x13d105){const _0x5806e2=_0x2cf47b,{pretty:pretty=![]}=_0x49be7a(_0x13d105);return JSON[_0x5806e2(0x4e6)](await this[_0x5806e2(0x333)](),null,pretty?0x2:0x0);}async[_0x2cf47b(0x1f8)](_0x3f55bf){const _0x57fdb2=_0x2cf47b;return this[_0x57fdb2(0x3e1)](JSON['parse'](_0x3f55bf));}[_0x2cf47b(0x529)](){const _0x186e00=_0x2cf47b;if(!this[_0x186e00(0x555)][_0x186e00(0x2b2)][_0x186e00(0x616)]('default')?.[_0x186e00(0x513)])throw new Error('files\x20feature\x20not\x20available');}async[_0x2cf47b(0x698)](_0x5e1adb){const _0x453a62=_0x2cf47b;return this[_0x453a62(0x529)](),this['_n'](_0x453a62(0x698),[_0x5e1adb]);}async[_0x2cf47b(0x37e)](_0xad754e){const _0x3e0ad7=_0x2cf47b;return this[_0x3e0ad7(0x529)](),this['_n'](_0x3e0ad7(0x37e),[_0xad754e]);}['_allEnvsWithFiles'](){const _0x5026a0=_0x2cf47b;return this['_n'](_0x5026a0(0x753),[])[_0x5026a0(0x6f2)](_0x117233=>this[_0x5026a0(0x555)][_0x5026a0(0x53c)](_0x117233));}async[_0x2cf47b(0x2a2)](){const _0x5729f7=_0x2cf47b;return this[_0x5729f7(0x529)](),this['_n']('validateBlobIntegrity',[]);}async[_0x2cf47b(0x4c9)](){const _0x37ceb6=_0x2cf47b;return this[_0x37ceb6(0x529)](),this['_n'](_0x37ceb6(0x4c9),[]);}}return migrate={'OKDBMigrate':_0x22f5c2},migrate;}var mcp,hasRequiredMcp;function requireMcp(){const _0x552ec7=_0x1ade1a;if(hasRequiredMcp)return mcp;hasRequiredMcp=0x1;class _0x2cb1cd{constructor(_0x4b892c){const _0x38704a=_0x3f13;this[_0x38704a(0x555)]=_0x4b892c,this[_0x38704a(0x749)]=new Map();}['_n'](_0x506bb5,_0xaa85c3){const _0x3a71c6=_0x3f13;try{return this[_0x3a71c6(0x555)][_0x3a71c6(0x82b)]('mcp',null,_0x506bb5,_0xaa85c3,!![]);}catch(_0xebabd2){if(_0xebabd2&&_0xebabd2[_0x3a71c6(0x431)]===_0x3a71c6(0x4a3)&&_0xebabd2['details']){if(_0xebabd2[_0x3a71c6(0x7fa)][_0x3a71c6(0x536)]!==undefined)_0xebabd2['jsonrpcCode']=_0xebabd2['details'][_0x3a71c6(0x536)];_0xebabd2[_0x3a71c6(0x7fa)]=_0xebabd2['details'][_0x3a71c6(0x7fa)],_0xebabd2[_0x3a71c6(0x431)]=undefined;}throw _0xebabd2;}}[_0x552ec7(0x83a)](){const _0x5d4dda=_0x552ec7;return this['_n'](_0x5d4dda(0x7e0),[]);}async[_0x552ec7(0x82b)](_0x483d51,_0x1093e9={}){const _0x468467=_0x552ec7;return this['_n'](_0x468467(0x881),[_0x483d51??null,_0x1093e9??{}]);}async[_0x552ec7(0x503)](_0x2ebc6b,_0x514d75={}){return this['_n']('handle',[_0x2ebc6b,_0x514d75??{}]);}['_initialize'](_0xf87e84){const _0x398044=_0x552ec7;return this['_n'](_0x398044(0x5d4),[_0xf87e84??null]);}}return mcp={'OKDBMcp':_0x2cb1cd},mcp;}var sys,hasRequiredSys;function requireSys(){const _0x15f78c=_0x1ade1a;if(hasRequiredSys)return sys;hasRequiredSys=0x1;function _0x19b81c(_0x4d1842,_0x505cf3,_0x16c36a){const _0x3aeacd=_0x3f13,_0x43216d={};for(const [_0x587d17,_0x4fe0a1]of Object['entries'](_0x16c36a)){_0x43216d[_0x587d17]=_0x4fe0a1===_0x3aeacd(0x38a)?async(..._0x3d0111)=>_0x4d1842[_0x3aeacd(0x82b)](_0x505cf3,null,_0x587d17,_0x3d0111):(..._0x45cc1c)=>_0x4d1842['_call'](_0x505cf3,null,_0x587d17,_0x45cc1c,![]);}return _0x43216d;}const _0x5b7daf=[_0x15f78c(0x55e),_0x15f78c(0x664),_0x15f78c(0x3cd),_0x15f78c(0x16a),_0x15f78c(0x300),'isIndex',_0x15f78c(0x224),_0x15f78c(0x3d0),_0x15f78c(0x456),_0x15f78c(0x817),'indexStats','describeTypeDetailed',_0x15f78c(0x460),_0x15f78c(0x5c1),_0x15f78c(0x7d7),_0x15f78c(0x326),_0x15f78c(0x28f),_0x15f78c(0x2af),_0x15f78c(0x3cc),'recomputeFields',_0x15f78c(0x6dc)],_0x40ffb3={'add':_0x15f78c(0x38a),'activate':_0x15f78c(0x38a),'remove':_0x15f78c(0x38a),'list':_0x15f78c(0x7a8),'get':_0x15f78c(0x7a8),'effective':_0x15f78c(0x7a8)},_0x46c14e={'open':_0x15f78c(0x38a),'register':_0x15f78c(0x38a),'buildOwnRow':_0x15f78c(0x7a8),'_buildProcessingFacet':_0x15f78c(0x7a8),'reportThreadStats':_0x15f78c(0x7a8),'clearThreadStats':_0x15f78c(0x7a8),'emitProc':'sync','addSupervisedChild':_0x15f78c(0x38a),'removeSupervisedChild':_0x15f78c(0x7a8),'updateSupervisedChildStats':_0x15f78c(0x7a8),'publishChildRow':_0x15f78c(0x38a),'putNode':_0x15f78c(0x38a),'removeNode':_0x15f78c(0x38a),'nodeDead':_0x15f78c(0x7a8),'listNodes':_0x15f78c(0x7a8),'reap':_0x15f78c(0x38a),'publishOwnRow':_0x15f78c(0x38a),'deregisterSelf':_0x15f78c(0x38a),'setOwnMeta':_0x15f78c(0x7a8),'noteListenAddr':_0x15f78c(0x7a8),'hasDesired':'sync','getDesired':_0x15f78c(0x7a8),'setDesired':_0x15f78c(0x38a),'listDesired':_0x15f78c(0x7a8),'getCmd':_0x15f78c(0x7a8),'bumpCmd':'async','processingStatusView':'sync','processorsView':_0x15f78c(0x7a8),'clusterStatusView':_0x15f78c(0x7a8),'nodesView':_0x15f78c(0x7a8),'treeView':_0x15f78c(0x7a8),'getProcess':_0x15f78c(0x7a8),'runtimeProcessesView':'sync'};function _0x41ea7a(_0x2e45e0){const _0x359912=_0x15f78c,_0xc5f314={},_0x3e9557=_0x150642=>_0x150642&&typeof _0x150642===_0x359912(0x6f7)&&!Array[_0x359912(0x4b6)](_0x150642)&&typeof _0x150642[_0x359912(0x885)]===_0x359912(0x4c1)?_0x150642[_0x359912(0x885)]:_0x150642;for(const _0x5f165a of _0x5b7daf)_0xc5f314[_0x5f165a]=_0x5f165a==='recomputeFields'?async(..._0x390843)=>_0x2e45e0[_0x359912(0x82b)](_0x359912(0x5c1),null,_0x5f165a,_0x390843[_0x359912(0x6f2)](_0x3e9557),!![]):(..._0x1d0e4e)=>_0x2e45e0[_0x359912(0x82b)](_0x359912(0x5c1),null,_0x5f165a,_0x1d0e4e[_0x359912(0x6f2)](_0x3e9557),![]);return _0xc5f314;}function _0x15ed32(_0x5c289f){const _0x4f715b=_0x15f78c,_0x327588=_0x19b81c(_0x5c289f,_0x4f715b(0x248),_0x40ffb3);return _0x327588;}function _0x525f7f(_0x305011){const _0x5f2d28=_0x15f78c,_0x150fba=()=>_0x305011['licenses'][_0x5f2d28(0x461)](),_0x5a673d=_0x31b0e2=>_0x31b0e2[_0x5f2d28(0x1ff)]?{..._0x31b0e2,'_isFree':!![]}:_0x31b0e2;return{async 'addLicense'(_0x504698){const _0x51bc98=_0x5f2d28;return _0x305011[_0x51bc98(0x248)][_0x51bc98(0x76e)](_0x504698);},async 'reload'(){},async 'recheck'(){},get 'active'(){const _0x2e9b02=_0x150fba();return _0x2e9b02['free']?null:_0x2e9b02;},get 'effective'(){return _0x5a673d(_0x150fba());},'hasLimit'(_0x4d5b78){const _0x54b8b4=_0x5f2d28,_0x22cb38=_0x150fba();if(!_0x22cb38[_0x54b8b4(0x597)])return![];const _0x7d3f0b=_0x22cb38[_0x54b8b4(0x6d4)]?.[_0x4d5b78];return!(_0x7d3f0b===null||_0x7d3f0b===undefined||_0x7d3f0b===0x0);},'isFeatureEnabled'(_0x356670){const _0x230ca7=_0x5f2d28,_0x2ab33a=_0x150fba();return!_0x2ab33a[_0x230ca7(0x597)]||!!_0x2ab33a[_0x230ca7(0x52d)]?.[_0x356670];},'assertFeature'(_0x48bfdc){const _0x348cd8=_0x5f2d28,_0x39b7c0=_0x150fba();if(!_0x39b7c0[_0x348cd8(0x597)]||_0x39b7c0[_0x348cd8(0x52d)]?.[_0x48bfdc])return;const {OKDBError:_0x55673f}=requireErrors(),_0x55d366=_0x39b7c0[_0x348cd8(0x1ff)]?'Feature\x20not\x20available\x20on\x20free\x20tier:\x20'+_0x48bfdc+_0x348cd8(0x657)+_0x48bfdc+_0x348cd8(0x6ba):_0x348cd8(0x141)+_0x48bfdc+'.\x20The\x20active\x20license\x20does\x20not\x20enable\x20\x22'+_0x48bfdc+'\x22.';throw new _0x55673f(_0x55d366,_0x348cd8(0x4bb),{'feature':_0x48bfdc});},'assertLimit'(_0x47facf,_0x565603){const _0x3cca93=_0x5f2d28,_0x1a451d=_0x150fba();if(!_0x1a451d['enforced'])return;const _0x3b94c0=_0x1a451d[_0x3cca93(0x6d4)]?.[_0x47facf];if(_0x3b94c0===null||_0x3b94c0===undefined||_0x3b94c0===0x0)return;if(_0x565603>=_0x3b94c0){const {OKDBError:_0x25c1c2}=requireErrors();throw new _0x25c1c2(_0x3cca93(0x2fd)+_0x47facf+'\x20('+_0x565603+'/'+_0x3b94c0+')',_0x3cca93(0x422),{'limit':_0x47facf,'current':_0x565603,'max':_0x3b94c0});}},'listLicenses'(){const _0x192bbe=_0x5f2d28;return _0x305011['licenses'][_0x192bbe(0x3f8)]();},'getPins'(){const _0x46ffb5=_0x5f2d28;return _0x305011['licenses'][_0x46ffb5(0x3f8)]()[_0x46ffb5(0x6f2)](_0x1d5574=>({'licenseId':_0x1d5574['id'],'pin':_0x1d5574[_0x46ffb5(0x79c)]==='open'?null:_0x1d5574[_0x46ffb5(0x61e)]}));}};}function _0x5a1bc7(_0x33424b){const _0x48891e=_0x15f78c,_0x2d3bea=_0x19b81c(_0x33424b,_0x48891e(0x4a0),_0x46c14e);Object[_0x48891e(0x882)](_0x2d3bea,_0x48891e(0x37d),{'get':()=>_0x33424b[_0x48891e(0x82b)](_0x48891e(0x4a0),null,_0x48891e(0x37d),[],![])}),Object['defineProperty'](_0x2d3bea,_0x48891e(0x1e8),{'get':()=>_0x33424b[_0x48891e(0x82b)](_0x48891e(0x4a0),null,'rowKey',[],![])}),_0x2d3bea[_0x48891e(0x1c1)]=null;const _0x1cef25=_0x2d3bea['noteListenAddr'];_0x2d3bea[_0x48891e(0x1ca)]=_0x1097b7=>{const _0x35e9e8=_0x48891e;return _0x2d3bea[_0x35e9e8(0x1c1)]=_0x1097b7,_0x1cef25(_0x1097b7);};const _0x193eb9=()=>_0x2d3bea[_0x48891e(0x43d)]()[_0x48891e(0x6f2)](_0x2f0c77=>({'key':_0x2f0c77[_0x48891e(0x6c3)],'value':_0x2f0c77,'version':0x1})),_0x422403={'name':'~processes','_sync':![],'_isOpen':!![],'isProcessStore':!![],'hasType':_0x58fdfa=>_0x58fdfa==='node','getRange':_0x3707ab=>_0x3707ab===_0x48891e(0x66d)?_0x193eb9()[Symbol[_0x48891e(0x821)]]():[][Symbol[_0x48891e(0x821)]](),'getKeys':_0x1e03c2=>_0x1e03c2===_0x48891e(0x66d)?_0x193eb9()['map'](_0x1cd6de=>_0x1cd6de[_0x48891e(0x491)])[Symbol[_0x48891e(0x821)]]():[][Symbol[_0x48891e(0x821)]](),'getValues':_0x3c43df=>_0x3c43df==='node'?_0x193eb9()['map'](_0x3fe84e=>_0x3fe84e[_0x48891e(0x7fd)])[Symbol[_0x48891e(0x821)]]():[][Symbol[_0x48891e(0x821)]](),'get':(_0x4ccf49,_0x554774)=>_0x4ccf49===_0x48891e(0x66d)?_0x193eb9()['find'](_0x884b22=>_0x884b22[_0x48891e(0x491)]===_0x554774)?.['value']:undefined,'getCount':_0x44efa4=>_0x44efa4===_0x48891e(0x66d)?_0x193eb9()[_0x48891e(0x479)]:0x0};Object[_0x48891e(0x882)](_0x2d3bea,_0x48891e(0x164),{'get':()=>_0x33424b[_0x48891e(0x82b)]('processes',null,_0x48891e(0x4fe),[],![])?_0x422403:null});const _0x4fd7fc=_0x2d3bea[_0x48891e(0x2fb)];_0x2d3bea[_0x48891e(0x2fb)]=async _0x537765=>{const _0xc27c15=_0x48891e;return await _0x4fd7fc(_0x537765),_0x2d3bea[_0xc27c15(0x164)];},_0x2d3bea[_0x48891e(0x2be)]=()=>_0x33424b[_0x48891e(0x82b)]('processes',null,_0x48891e(0x6af),[],!![]);const {RawDb:_0x82e922}=requireRawdb();return Object[_0x48891e(0x882)](_0x2d3bea,_0x48891e(0x457),{'get':()=>_0x33424b[_0x48891e(0x70a)]?_0x2d3bea['__desired']||=new _0x82e922(_0x33424b[_0x48891e(0x70a)],_0x48891e(0x781)):undefined}),Object[_0x48891e(0x882)](_0x2d3bea,'_cmd',{'get':()=>_0x33424b[_0x48891e(0x70a)]?_0x2d3bea[_0x48891e(0x46c)]||=new _0x82e922(_0x33424b['_systemEnv'],'~processes:cmd'):undefined}),_0x2d3bea['isActive']=()=>_0x33424b[_0x48891e(0x82b)](_0x48891e(0x4a0),null,_0x48891e(0x321),[],![]),Object['defineProperty'](_0x2d3bea,_0x48891e(0x351),{'get':()=>_0x33424b[_0x48891e(0x82b)]('processes',null,_0x48891e(0x21e),[],![])}),Object[_0x48891e(0x882)](_0x2d3bea,'_isReader',{'get':()=>_0x33424b[_0x48891e(0x82b)](_0x48891e(0x4a0),null,_0x48891e(0x1b7),[],![])}),_0x2d3bea[_0x48891e(0x34c)]=()=>_0x33424b[_0x48891e(0x82b)](_0x48891e(0x4a0),null,_0x48891e(0x377),[],![]),_0x2d3bea[_0x48891e(0x5a0)]=(_0x4def22,_0x363b4b)=>_0x33424b[_0x48891e(0x82b)](_0x48891e(0x4a0),null,_0x48891e(0x39d),[_0x4def22,_0x363b4b],![]),_0x2d3bea;}return sys={'makeMeta':_0x41ea7a,'makeLicenses':_0x15ed32,'makeLicenseChecker':_0x525f7f,'makeProcesses':_0x5a1bc7},sys;}var okdbLogger,hasRequiredOkdbLogger;function requireOkdbLogger(){const _0x40fe85=_0x1ade1a;if(hasRequiredOkdbLogger)return okdbLogger;hasRequiredOkdbLogger=0x1;const _0x545a19={'debug':0xa,'info':0x14,'warn':0x1e,'error':0x28};class _0x19509a{constructor(_0x522ba6){const _0x30fd3a=_0x3f13;this[_0x30fd3a(0x555)]=_0x522ba6,this['_sinks']=new Set(),this[_0x30fd3a(0x175)]={};}[_0x40fe85(0x782)](_0x52090b){const _0x27f12c=_0x40fe85,_0x5ba151=new _0x19509a(this[_0x27f12c(0x555)]);return _0x5ba151['_sinks']=this[_0x27f12c(0x4db)],_0x5ba151['_meta']={...this[_0x27f12c(0x175)],..._0x52090b},_0x5ba151;}[_0x40fe85(0x323)](_0x63d0f4){const _0x38f8c3=_0x40fe85;return this['_sinks'][_0x38f8c3(0x76e)](_0x63d0f4),()=>this['_sinks'][_0x38f8c3(0x727)](_0x63d0f4);}[_0x40fe85(0x4f7)](){const _0x213b59=_0x40fe85,_0x310cb3=_0x545a19[process.env.OKDB_LOG_LEVEL]??_0x545a19[_0x213b59(0x786)];return this[_0x213b59(0x759)]=this['attach'](({level:_0x16a99b,msg:_0x3388f0,meta:_0x2ccd6e,context:_0x1db0f5,ts:_0x1bcddf})=>{const _0x372923=_0x213b59;if((_0x545a19[_0x16a99b]??_0x545a19[_0x372923(0x786)])<_0x310cb3)return;if(_0x2ccd6e?.[_0x372923(0x5d1)]===_0x372923(0x4a7)&&(_0x16a99b===_0x372923(0x786)||_0x16a99b==='debug'))return;const _0x46d705=_0x16a99b==='error'?console[_0x372923(0x814)]:_0x16a99b===_0x372923(0x5b0)?console[_0x372923(0x5b0)]:_0x16a99b===_0x372923(0x786)?console['info']:console[_0x372923(0x629)],_0x4e0ae0=_0x2ccd6e&&Object[_0x372923(0x23b)](_0x2ccd6e)[_0x372923(0x479)]>0x0;_0x4e0ae0||_0x1db0f5!==undefined?_0x46d705(new Date(_0x1bcddf)[_0x372923(0x74f)](),_0x3388f0,..._0x4e0ae0?[_0x2ccd6e]:[],..._0x1db0f5!==undefined?[_0x1db0f5]:[]):_0x46d705(new Date(_0x1bcddf)[_0x372923(0x74f)](),_0x3388f0);}),this['_detachConsole'];}[_0x40fe85(0x2d8)](){const _0x46313c=_0x40fe85;this[_0x46313c(0x759)]&&(this['_detachConsole'](),this[_0x46313c(0x759)]=null);}[_0x40fe85(0x728)](_0x947dcc,_0x8e5071){const _0x49f3b5=require$$0$4,_0x54d3ed=0x1f4,_0x3615c6=Number(process.env.OKDB_LOG_FLUSH_MS)||0x3e8;let _0x341ba2=[],_0x135791=0x0,_0x254c8d=null;const _0x5a68a8=()=>{const _0x166979=_0x3f13;_0x254c8d=null;if(_0x341ba2['length']===0x0)return;const _0x4f65e0=_0x341ba2;_0x341ba2=[],_0x135791>0x0&&(_0x4f65e0[_0x166979(0x2e6)]({'ts':Date['now'](),'level':_0x166979(0x5b0),'msg':'[log-sink]\x20'+_0x135791+_0x166979(0x243)+(_0x135791===0x1?'y':_0x166979(0x788))+_0x166979(0x6f5),'feature':'log','node':_0x8e5071,'context':null}),_0x135791=0x0),_0x947dcc[_0x166979(0x82f)](_0x1f63a7=>{const _0x394b31=_0x166979;for(const _0x52ae17 of _0x4f65e0)_0x1f63a7[_0x394b31(0x7bc)](_0x394b31(0x3d6),_0x49f3b5[_0x394b31(0x6f1)](),_0x52ae17);})['catch'](()=>{});},_0x258334=this['attach'](({level:_0x3ad706,msg:_0x282f85,meta:_0xe58aa6,context:_0xbb6dcc,ts:_0x5b1fd6})=>{const _0x3398a4=_0x3f13;if(_0x3ad706===_0x3398a4(0x2df))return;_0x341ba2[_0x3398a4(0x479)]>=_0x54d3ed&&(_0x135791++,_0x341ba2[_0x3398a4(0x138)]()),_0x341ba2[_0x3398a4(0x2e6)]({'ts':_0x5b1fd6,'level':_0x3ad706,'msg':_0x282f85,'feature':_0xe58aa6?.[_0x3398a4(0x5d1)]??_0xe58aa6?.[_0x3398a4(0x792)]??null,'node':_0x8e5071,'context':_0xbb6dcc??null}),!_0x254c8d&&(_0x254c8d=setTimeout(_0x5a68a8,_0x3615c6),_0x254c8d[_0x3398a4(0x7ed)]?.());});return()=>{_0x258334();if(_0x254c8d)clearTimeout(_0x254c8d);_0x5a68a8();};}[_0x40fe85(0x2b3)](_0x4bb337,_0x406901,_0x10b243){const _0x15ff56=_0x40fe85;_0x406901 instanceof Error&&(_0x10b243={'message':_0x406901[_0x15ff56(0x806)],'stack':_0x406901['stack'],..._0x10b243},_0x406901=_0x406901[_0x15ff56(0x806)]);const _0x53bbb4={'level':_0x4bb337,'msg':_0x406901,'meta':{...this[_0x15ff56(0x175)]},'context':_0x10b243,'ts':Date[_0x15ff56(0x38b)]()};try{this[_0x15ff56(0x555)][_0x15ff56(0x425)]['emit'](_0x15ff56(0x629),_0x53bbb4);}catch{}for(const _0x399604 of this[_0x15ff56(0x4db)]){try{_0x399604(_0x53bbb4);}catch{}}}['ingest'](_0xa6326){const _0x10a0ae=_0x40fe85;try{this[_0x10a0ae(0x555)]?.['events']?.[_0x10a0ae(0x7bb)]('log',_0xa6326);}catch{}for(const _0x3666b8 of this[_0x10a0ae(0x4db)]){try{_0x3666b8(_0xa6326);}catch{}}}['info'](_0x32e1ee,_0x18fba6){const _0x25fe6d=_0x40fe85;this[_0x25fe6d(0x2b3)](_0x25fe6d(0x786),_0x32e1ee,_0x18fba6);}[_0x40fe85(0x5b0)](_0x4e7110,_0x3728c6){const _0x1c09ee=_0x40fe85;this[_0x1c09ee(0x2b3)](_0x1c09ee(0x5b0),_0x4e7110,_0x3728c6);}['error'](_0x2ee591,_0x478f1c){const _0x3673db=_0x40fe85;this['_emit'](_0x3673db(0x814),_0x2ee591,_0x478f1c);}[_0x40fe85(0x2df)](_0x56ae85,_0x58bef0){const _0x1e10e5=_0x40fe85;this['_emit'](_0x1e10e5(0x2df),_0x56ae85,_0x58bef0);}}return okdbLogger=_0x19509a,okdbLogger;}var okdbPlugins,hasRequiredOkdbPlugins;function requireOkdbPlugins(){const _0x436f88=_0x1ade1a;if(hasRequiredOkdbPlugins)return okdbPlugins;hasRequiredOkdbPlugins=0x1;const {OKDB_STATE:_0x2f5b33}=requireOkdbEnums(),{OKDBError:_0x84fa8c}=requireOkdbError();class _0x5269c1{constructor(_0x16ebb7){const _0x3fb840=_0x3f13;this['okdb']=_0x16ebb7,this[_0x3fb840(0x6a5)]=[];}[_0x436f88(0x6f8)](_0x561a54,_0x4bd176){const _0x2c6763=_0x436f88;if(this[_0x2c6763(0x555)][_0x2c6763(0x823)]!==_0x2f5b33[_0x2c6763(0x13c)])throw new _0x84fa8c('Cannot\x20register\x20plugins\x20after\x20start','INVALID_STATE',{'state':this[_0x2c6763(0x555)]['state']});if(!_0x561a54[_0x2c6763(0x885)])throw new _0x84fa8c(_0x2c6763(0x3aa),_0x2c6763(0x7c2),{'plugin':_0x561a54[_0x2c6763(0x885)]});const _0x6633fa=_0x561a54[_0x2c6763(0x3c8)]??[];for(const _0xd41375 of _0x6633fa){if(!this[_0x2c6763(0x6a5)][_0x2c6763(0x737)](_0x209391=>_0x209391['module'][_0x2c6763(0x885)]===_0xd41375))throw new _0x84fa8c('Missing\x20plugin:\x20'+_0xd41375+_0x2c6763(0x4ce)+_0x561a54['name']+')','PLUGIN_DEPENDENCY_MISSING',{'required':_0xd41375});}if(this['_plugins'][_0x2c6763(0x310)](_0x174d74=>_0x174d74[_0x2c6763(0x792)][_0x2c6763(0x885)]===_0x561a54[_0x2c6763(0x885)]))throw new _0x84fa8c(_0x2c6763(0x199)+_0x561a54['name']+_0x2c6763(0x68e),_0x2c6763(0x7f4),{'plugin':_0x561a54['name']});if(_0x561a54['name']in this[_0x2c6763(0x555)])throw new _0x84fa8c(_0x2c6763(0x520)+_0x561a54[_0x2c6763(0x885)]+_0x2c6763(0x4cd),_0x2c6763(0x264));const _0x509f64=_0x561a54[_0x2c6763(0x6f8)](this[_0x2c6763(0x555)],_0x4bd176);if(!_0x509f64||typeof _0x509f64!==_0x2c6763(0x6f7))throw new _0x84fa8c(_0x2c6763(0x199)+_0x561a54[_0x2c6763(0x885)]+_0x2c6763(0x80b),_0x2c6763(0x7c2),{'plugin':_0x561a54[_0x2c6763(0x885)]});this[_0x2c6763(0x6a5)]['push']({'module':_0x561a54,'options':_0x4bd176,'instance':_0x509f64});}[_0x436f88(0x33e)]=[];async[_0x436f88(0x525)](){const _0x18ad82=_0x436f88;try{for(const _0x13cc1b of this[_0x18ad82(0x6a5)]){await _0x13cc1b[_0x18ad82(0x4dc)][_0x18ad82(0x525)]?.(this[_0x18ad82(0x555)]),this['_started'][_0x18ad82(0x2e6)](_0x13cc1b);}}catch(_0xe8bd95){await this[_0x18ad82(0x851)]()['catch'](()=>{});throw _0xe8bd95;}}async[_0x436f88(0x851)](){const _0x30bad7=_0x436f88,_0x904947=this['_started'][_0x30bad7(0x1a8)]();this['_started']=[];let _0x270964=null;for(const _0x4dab7b of _0x904947){try{await _0x4dab7b[_0x30bad7(0x4dc)][_0x30bad7(0x851)]?.(this[_0x30bad7(0x555)]);}catch(_0x451fbf){_0x270964??=_0x451fbf;}}if(_0x270964)throw _0x270964;}}return okdbPlugins=_0x5269c1,okdbPlugins;}var statics,hasRequiredStatics;function requireStatics(){const _0x5b7dd4=_0x1ade1a;if(hasRequiredStatics)return statics;hasRequiredStatics=0x1;const _0x29aae2={'maxDbs':0x400,'pageSize':0x1000,'compression':!![],'encryptionKey':undefined,'mapSize':0x100000000,'durability':'balanced'},_0x3f03c8=new Set(['maxDbs',_0x5b7dd4(0x71e),'compression',_0x5b7dd4(0x6b0),'encryptionKeys',_0x5b7dd4(0x166),_0x5b7dd4(0x467),'allowUnsafe',_0x5b7dd4(0x878),_0x5b7dd4(0x470),_0x5b7dd4(0x7a8),'queue',_0x5b7dd4(0x4a7),_0x5b7dd4(0x337),'mcp','runtimeDeclarations',_0x5b7dd4(0x629),_0x5b7dd4(0x1e9),_0x5b7dd4(0x516),'engines',_0x5b7dd4(0x1f3),'compaction','processes',_0x5b7dd4(0x5f8),_0x5b7dd4(0x4fc),_0x5b7dd4(0x879),_0x5b7dd4(0x7ea),_0x5b7dd4(0x2df),_0x5b7dd4(0x514),_0x5b7dd4(0x7c8)]),_0x2f708d={'http':'there\x20is\x20no\x20`http`\x20option\x20—\x20the\x20HTTP\x20server\x20exists\x20only\x20when\x20db.http.listen(port)\x20is\x20called'};return statics={'defaults':_0x29aae2,'KNOWN_OPTIONS':_0x3f03c8,'_OPTION_HINTS':_0x2f708d},statics;}var licenseConfig,hasRequiredLicenseConfig;function requireLicenseConfig(){const _0x2c1340=_0x1ade1a;if(hasRequiredLicenseConfig)return licenseConfig;hasRequiredLicenseConfig=0x1;const _0x942b05=require$$0$2,_0x326ec8='-----BEGIN\x20PUBLIC\x20KEY-----\x0aMCowBQYDK2VwAyEAacrkExPrhxNVHyeQBLDwg8xfm1OwyxDAPNdGXABYS2s=\x0a-----END\x20PUBLIC\x20KEY-----',_0x2ad36b=_0x942b05[_0x2c1340(0x858)](_0x2c1340(0x3d1))[_0x2c1340(0x601)](_0x942b05[_0x2c1340(0x5f9)](_0x326ec8)[_0x2c1340(0x333)]({'type':_0x2c1340(0x20a),'format':_0x2c1340(0x81e)}))[_0x2c1340(0x385)]('hex')['slice'](0x0,0x10),_0xd07f6e={'LICENSED_BUILD':_0x2c1340(0x2fa),'PUBLIC_KEY_PEM':_0x326ec8,'PUB_FINGERPRINT':_0x2ad36b,'LICENSE_EXPIRED_ACTION':_0x2c1340(0x629)};return licenseConfig={'_C':_0xd07f6e,'PUBLIC_KEY_PEM':_0x326ec8,'PUB_FINGERPRINT':_0x2ad36b},licenseConfig;}var okdbSubscriptionsStore={'exports':{}},okdbQueryFilter,hasRequiredOkdbQueryFilter;function requireOkdbQueryFilter(){const _0x49e20d=_0x1ade1a;if(hasRequiredOkdbQueryFilter)return okdbQueryFilter;hasRequiredOkdbQueryFilter=0x1;const _0x4d9b36=require$$0$5,{OKDBError:_0x43b1f1}=requireOkdbError(),_0x2b96b7=[_0x49e20d(0x396),_0x49e20d(0x6d9),_0x49e20d(0x13f),'$gte',_0x49e20d(0x73b),_0x49e20d(0x4df),'$in',_0x49e20d(0x706),_0x49e20d(0x17e),_0x49e20d(0x36e),_0x49e20d(0x3c6),_0x49e20d(0x336),_0x49e20d(0x3c0),'$all','$type','$elemMatch',_0x49e20d(0x189),_0x49e20d(0x170),_0x49e20d(0x266),_0x49e20d(0x508)],_0x250c7e=[_0x49e20d(0x5d9)];function _0x29ae00(_0x4a5b8a){return()=>{const _0x474b7e=_0x3f13,_0x41d3e9=new _0x43b1f1(_0x474b7e(0x341)+_0x4a5b8a+_0x474b7e(0x719),'QUERY_OPERATOR_FORBIDDEN',{'operator':_0x4a5b8a});_0x41d3e9[_0x474b7e(0x371)]=0x190;throw _0x41d3e9;};}const _0x3b9eb2=Object[_0x49e20d(0x493)]({...Object[_0x49e20d(0x237)](_0x2b96b7[_0x49e20d(0x6f2)](_0x307a66=>[_0x307a66,_0x4d9b36[_0x307a66]])),...Object['fromEntries'](_0x250c7e[_0x49e20d(0x6f2)](_0x4c90c2=>[_0x4c90c2,_0x29ae00(_0x4c90c2)]))});function _0x5bf1cc(_0x56b731){const _0x1e21be=_0x49e20d;return _0x4d9b36[_0x1e21be(0x614)](_0x56b731,{'operations':_0x3b9eb2});}function _0x331306(_0xd2585c){const _0x26845b=_0x49e20d;if(_0xd2585c==null)return;try{_0x5bf1cc(_0xd2585c);}catch(_0x5df0bb){if(_0x5df0bb?.['code']===_0x26845b(0x826))throw _0x5df0bb;}}return okdbQueryFilter={'compileFilter':_0x5bf1cc,'assertFilterAllowed':_0x331306,'ALLOWED_OPERATORS':_0x2b96b7,'FORBIDDEN_OPERATORS':_0x250c7e},okdbQueryFilter;}var okdbEnvRefs,hasRequiredOkdbEnvRefs;function requireOkdbEnvRefs(){const _0x28b818=_0x1ade1a;if(hasRequiredOkdbEnvRefs)return okdbEnvRefs;hasRequiredOkdbEnvRefs=0x1;const {CHANGE_ACTIONS:_0xf97d17,EVENTS:_0x5cf4d4}=requireOkdbEnums(),{OKDBError:_0x1565bb,OKDBForeignKeyDeleteError:_0x448950}=requireOkdbError(),_0x50674e=_0x28b818(0x725),_0x35567b=new Set([_0x28b818(0x3b0),_0x28b818(0x391),'set_null',_0x28b818(0x76b)]);function _0x29af23(_0x8a4716,_0x9549d2){const _0x456ed0=_0x28b818;if(_0x8a4716==null||!_0x9549d2)return undefined;const _0xcf20a6=_0x9549d2[_0x456ed0(0x3bd)]('.');let _0x2ab878=_0x8a4716;for(const _0x8dbc43 of _0xcf20a6){if(_0x2ab878==null||typeof _0x2ab878!==_0x456ed0(0x6f7)||!(_0x8dbc43 in _0x2ab878))return undefined;_0x2ab878=_0x2ab878[_0x8dbc43];}return _0x2ab878;}function _0x258f30(_0x2c2c36,_0xc82813,_0x47f052){const _0x56b3fc=_0x28b818,_0x4db36b=_0xc82813[_0x56b3fc(0x3bd)]('.'),_0x2751e8={..._0x2c2c36};let _0x280d40=_0x2751e8;for(let _0x3e84f1=0x0;_0x3e84f1<_0x4db36b[_0x56b3fc(0x479)]-0x1;_0x3e84f1++){_0x280d40[_0x4db36b[_0x3e84f1]]=_0x280d40[_0x4db36b[_0x3e84f1]]!=null?{..._0x280d40[_0x4db36b[_0x3e84f1]]}:{},_0x280d40=_0x280d40[_0x4db36b[_0x3e84f1]];}return _0x280d40[_0x4db36b[_0x4db36b[_0x56b3fc(0x479)]-0x1]]=_0x47f052,_0x2751e8;}function _0x9f620e(_0x41ebf3,_0x2c6324,_0x54c651,_0x1f512f,_0x3bb38e){return[_0x41ebf3,_0x2c6324,_0x54c651,_0x1f512f,_0x3bb38e];}function _0x237787(_0x44ec66){const _0xa49b0d=_0x28b818;return typeof _0x44ec66===_0xa49b0d(0x4c1)||typeof _0x44ec66==='number';}function _0x54296f(_0x3362e5,_0x5ae42e){return JSON['stringify']([_0x3362e5,_0x5ae42e]);}function*_0x2690e3(_0x2243b6,_0x427210,_0xc0726){const _0x4d3b17=_0x28b818,_0x2ed0ad=_0xc0726!==undefined;for(const {key:_0x17e931}of _0x2243b6[_0x4d3b17(0x805)]({'start':_0x2ed0ad?[_0x427210,_0xc0726]:[_0x427210]})){if(!Array['isArray'](_0x17e931))continue;if(_0x17e931[0x0]!==_0x427210||_0x2ed0ad&&_0x17e931[0x1]!==_0xc0726)break;yield _0x17e931;}}function _0x3742a9(_0x264117,_0x47abc2='',_0x428f02=null){const _0x36c334=_0x28b818,_0x227799=[];if(!_0x264117||typeof _0x264117!==_0x36c334(0x6f7))return _0x227799;if(!_0x428f02)_0x428f02=_0x264117;if(_0x264117[_0x36c334(0x169)]){const _0x29b2b2=_0x264117[_0x36c334(0x169)][_0x36c334(0x251)](/^#\/\$defs\/(.+)$/);if(_0x29b2b2&&_0x428f02?.[_0x36c334(0x4ae)]?.[_0x29b2b2[0x1]])return _0x3742a9(_0x428f02[_0x36c334(0x4ae)][_0x29b2b2[0x1]],_0x47abc2,_0x428f02);return _0x227799;}if(_0x264117['ref']&&typeof _0x264117['ref']===_0x36c334(0x6f7)&&_0x264117[_0x36c334(0x3e4)][_0x36c334(0x79c)]){const _0x36139d=_0x264117[_0x36c334(0x3e4)][_0x36c334(0x573)]||_0x36c334(0x3b0);if(!_0x35567b[_0x36c334(0x4a8)](_0x36139d))throw new _0x1565bb(_0x36c334(0x61c)+_0x36139d+_0x36c334(0x15f)+(_0x47abc2||_0x36c334(0x54f))+_0x36c334(0x4f6)+[..._0x35567b][_0x36c334(0x6a2)](',\x20'),_0x36c334(0x28b));_0x227799[_0x36c334(0x2e6)]({'fieldPath':_0x47abc2,'targetType':_0x264117[_0x36c334(0x3e4)][_0x36c334(0x79c)],'onDelete':_0x36139d});}if(_0x264117[_0x36c334(0x4c3)])for(const [_0x22fb15,_0x5930be]of Object['entries'](_0x264117[_0x36c334(0x4c3)])){const _0x2fc0f9=_0x47abc2?_0x47abc2+'.'+_0x22fb15:_0x22fb15;_0x227799['push'](..._0x3742a9(_0x5930be,_0x2fc0f9,_0x428f02));}return _0x227799;}function _0x4cdfa5(_0x2b7ac7){const _0x149422=_0x28b818,_0x155423=new Map(),_0xeac329=new Map();for(const _0x43172a of _0x2b7ac7['_typeKeys']()){if(_0x43172a[_0x149422(0x70d)]('~'))continue;const _0x405649=_0x2b7ac7[_0x149422(0x1bb)][_0x149422(0x616)](_0x43172a);if(!_0x405649?.[_0x149422(0x17d)]?.[_0x149422(0x56a)])continue;let _0x4aefbc;try{_0x4aefbc=_0x3742a9(_0x405649['schema'][_0x149422(0x56a)]);}catch{continue;}if(_0x4aefbc['length']>0x0){_0x155423['set'](_0x43172a,_0x4aefbc);for(const _0x4924cc of _0x4aefbc){if(!_0xeac329[_0x149422(0x4a8)](_0x4924cc[_0x149422(0x4d8)]))_0xeac329[_0x149422(0x488)](_0x4924cc[_0x149422(0x4d8)],[]);_0xeac329[_0x149422(0x616)](_0x4924cc['targetType'])[_0x149422(0x2e6)]({'sourceType':_0x43172a,'fieldPath':_0x4924cc[_0x149422(0x702)],'onDelete':_0x4924cc[_0x149422(0x573)]});}}}_0x2b7ac7[_0x149422(0x50e)]={'outgoing':_0x155423,'incoming':_0xeac329};if(_0x155423['size']>0x0)_0x11d54e(_0x2b7ac7);}function _0xd31167(_0x57f8,_0x4f8a41){const _0x59b475=_0x28b818;return _0x57f8['_refCache'][_0x59b475(0x390)][_0x59b475(0x616)](_0x4f8a41)||[];}function _0x1b47b0(_0x19436a,_0x3c117a){return _0x19436a['_refCache']['incoming']['get'](_0x3c117a)||[];}function _0x11d54e(_0x5dcf83){const _0x5482dd=_0x28b818;if(_0x5dcf83[_0x5482dd(0x38d)])return _0x5dcf83[_0x5482dd(0x38d)];return _0x5dcf83[_0x5482dd(0x38d)]=_0x5dcf83['db'][_0x5482dd(0x55a)](_0x5482dd(0x315),{'dupSort':![]}),_0x5dcf83[_0x5482dd(0x38d)];}function _0x599f8a(_0x42a65c,_0x33674b,_0x9ddc4,_0x13a4e0,_0x2f0893){const _0x207679=_0x28b818,_0x2f8606=_0xd31167(_0x42a65c,_0x33674b);if(_0x2f8606['length']===0x0)return;const _0x44a23e=_0x11d54e(_0x42a65c);for(const _0x3482e3 of _0x2f8606){const _0x23bd5f=_0x2f0893!=null?_0x29af23(_0x2f0893,_0x3482e3[_0x207679(0x702)]):undefined,_0x4b091f=_0x13a4e0!=null?_0x29af23(_0x13a4e0,_0x3482e3[_0x207679(0x702)]):undefined;if(_0x23bd5f===_0x4b091f)continue;_0x237787(_0x23bd5f)&&_0x44a23e[_0x207679(0x7b1)](_0x9f620e(_0x3482e3['targetType'],_0x23bd5f,_0x33674b,_0x9ddc4,_0x3482e3[_0x207679(0x702)])),_0x237787(_0x4b091f)&&_0x44a23e[_0x207679(0x3c7)](_0x9f620e(_0x3482e3[_0x207679(0x4d8)],_0x4b091f,_0x33674b,_0x9ddc4,_0x3482e3['fieldPath']),0x1);}}function _0x255e37(_0x368303,_0x116117,_0x10b83d,_0x32c588){const _0x5c0031=_0x28b818,_0x31ec4c=_0xd31167(_0x368303,_0x116117);if(_0x31ec4c[_0x5c0031(0x479)]===0x0)return;const _0x62da4c=_0x11d54e(_0x368303);for(const _0x3b3119 of _0x31ec4c){const _0x360319=_0x32c588!=null?_0x29af23(_0x32c588,_0x3b3119[_0x5c0031(0x702)]):undefined;_0x237787(_0x360319)&&_0x62da4c[_0x5c0031(0x7b1)](_0x9f620e(_0x3b3119[_0x5c0031(0x4d8)],_0x360319,_0x116117,_0x10b83d,_0x3b3119[_0x5c0031(0x702)]));}}function _0x375cfe(_0x723640,_0x48ca64,_0xa4226f,_0x2059bf){const _0x39edb0=_0x28b818,_0x540a1d=_0xd31167(_0x723640,_0x48ca64);if(_0x540a1d[_0x39edb0(0x479)]===0x0)return[];const _0xc5c8c7=[];for(const _0x1ac998 of _0x540a1d){const _0x57075d=_0x29af23(_0x2059bf,_0x1ac998[_0x39edb0(0x702)]);if(_0x57075d==null)continue;if(!_0x723640[_0x39edb0(0x176)](_0x1ac998[_0x39edb0(0x4d8)])){_0xc5c8c7[_0x39edb0(0x2e6)]({'fieldPath':_0x1ac998[_0x39edb0(0x702)],'targetType':_0x1ac998[_0x39edb0(0x4d8)],'targetKey':_0x57075d,'message':_0x39edb0(0x550)+_0x1ac998[_0x39edb0(0x4d8)]+_0x39edb0(0x328)});continue;}const _0x113628=_0x723640[_0x39edb0(0x83f)](_0x1ac998[_0x39edb0(0x4d8)])[_0x39edb0(0x522)];!_0x113628['doesExist'](_0x57075d)&&_0xc5c8c7[_0x39edb0(0x2e6)]({'fieldPath':_0x1ac998['fieldPath'],'targetType':_0x1ac998[_0x39edb0(0x4d8)],'targetKey':_0x57075d,'message':'Referenced\x20key\x20\x27'+_0x57075d+_0x39edb0(0x476)+_0x1ac998[_0x39edb0(0x4d8)]+'\x27'});}return _0xc5c8c7;}function _0x31d4df(_0x849cdc,_0x134dda,_0x1d0937,_0x1bb1f3,_0x9d435f,{timestamp:_0x3bba3b,origin:_0x487ada,_cascadeVisited:_0x494853}){const _0x190a43=_0x28b818,_0x125229=_0x1b47b0(_0x849cdc,_0x1d0937);if(_0x125229[_0x190a43(0x479)]===0x0)return;const _0x39c358=_0x11d54e(_0x849cdc),_0xba373d=[];for(const [,,_0x2cb6c8,_0xd3278d,_0x3a32b8]of _0x2690e3(_0x39c358,_0x1d0937,_0x1bb1f3)){_0xba373d[_0x190a43(0x2e6)]({'sourceType':_0x2cb6c8,'sourceKey':_0xd3278d,'fieldPath':_0x3a32b8});}if(_0xba373d[_0x190a43(0x479)]===0x0)return;for(const _0x4f4d0c of _0xba373d){const _0xe5b184=_0x125229['find'](_0x2f05bb=>_0x2f05bb[_0x190a43(0x327)]===_0x4f4d0c[_0x190a43(0x327)]&&_0x2f05bb['fieldPath']===_0x4f4d0c[_0x190a43(0x702)]),_0x18243c=_0xe5b184?.[_0x190a43(0x573)]||_0x190a43(0x3b0);switch(_0x18243c){case _0x190a43(0x76b):{if(_0x487ada===null)throw new _0x448950(_0x1d0937,_0x1bb1f3,_0xba373d['filter'](_0x4db671=>{const _0x1de98c=_0x190a43,_0x186ad3=_0x125229['find'](_0x1450e3=>_0x1450e3['sourceType']===_0x4db671[_0x1de98c(0x327)]&&_0x1450e3[_0x1de98c(0x702)]===_0x4db671[_0x1de98c(0x702)]);return(_0x186ad3?.[_0x1de98c(0x573)]||_0x1de98c(0x3b0))===_0x1de98c(0x76b);}));break;}case _0x190a43(0x391):{const _0x359351=_0x54296f(_0x4f4d0c[_0x190a43(0x327)],_0x4f4d0c[_0x190a43(0x600)]);if(_0x494853[_0x190a43(0x4a8)](_0x359351))continue;_0x849cdc[_0x190a43(0x83f)](_0x4f4d0c[_0x190a43(0x327)])['data'][_0x190a43(0x7e9)](_0x4f4d0c['sourceKey'])&&_0x849cdc[_0x190a43(0x498)](_0x134dda,_0x4f4d0c[_0x190a43(0x327)],_0x4f4d0c[_0x190a43(0x600)],{'timestamp':_0x3bba3b,'origin':_0x487ada,'_cascadeVisited':_0x494853});break;}case _0x190a43(0x36c):{const _0xfc96df=_0x849cdc[_0x190a43(0x83f)](_0x4f4d0c[_0x190a43(0x327)])[_0x190a43(0x522)],_0x43541d=_0xfc96df[_0x190a43(0x242)](_0x4f4d0c[_0x190a43(0x600)]);if(_0x43541d){const _0x2a5a8a=_0x258f30(_0x43541d[_0x190a43(0x7fd)],_0x4f4d0c[_0x190a43(0x702)],null);_0x849cdc[_0x190a43(0x2da)](_0x134dda,_0x190a43(0x7bc),_0x4f4d0c[_0x190a43(0x327)],_0x4f4d0c[_0x190a43(0x600)],_0x2a5a8a,{'timestamp':_0x3bba3b,'origin':_0x487ada,'_cascading':!![]});}break;}}}}function _0xff51ce(_0x99fd2c){const _0x28f66c=_0x28b818;!_0x99fd2c[_0x28f66c(0x176)](_0x50674e)&&_0x99fd2c[_0x28f66c(0x4a5)](_0x50674e);}function _0x5d4447(_0x3715c4,_0x4cd7b9,_0x482852,_0x500272,_0x3dba18,_0x3dcb77,_0x1e5a7c,{timestamp:timestamp=Date[_0x28b818(0x38b)](),origin:origin=null}={}){const _0x54eaef=_0x28b818;_0xff51ce(_0x3715c4);const _0x484ba9=_0x482852+'@'+_0x500272+'@'+_0x3dba18,_0x2ef98d={'sourceType':_0x482852,'sourceKey':_0x500272,'fieldPath':_0x3dba18,'targetType':_0x3dcb77,'targetKey':_0x1e5a7c,'timestamp':timestamp,'origin':origin},_0x4548f9=_0x3715c4['_getType'](_0x50674e)['data'],_0x1e7e4e=_0x4548f9['getEntry'](_0x484ba9),_0x2e2de0=_0x1e7e4e?_0x1e7e4e[_0x54eaef(0x2ce)]+0x1:0x1;_0x4548f9[_0x54eaef(0x3c7)](_0x484ba9,_0x2ef98d,_0x2e2de0),_0x3715c4[_0x54eaef(0x50f)]({'id':_0x54eaef(0x15b)+_0x50674e+'@'+_0x484ba9,'type':_0x50674e,'key':_0x484ba9,'action':_0xf97d17[_0x54eaef(0x7cc)],'timestamp':timestamp,'txnId':_0x4cd7b9?.['id'],'origin':origin},_0x1e7e4e?.['value'],_0x2ef98d),_0x3715c4[_0x54eaef(0x425)][_0x54eaef(0x7bb)](_0x5cf4d4[_0x54eaef(0x5bc)],{'sourceType':_0x482852,'sourceKey':_0x500272,'fieldPath':_0x3dba18,'targetType':_0x3dcb77,'targetKey':_0x1e5a7c,'env':_0x3715c4[_0x54eaef(0x885)]});}function _0x9e01d7(_0x27cd3e,_0x247ded,_0x3378fc,_0x1d501b,_0x44487e,{timestamp:timestamp=Date[_0x28b818(0x38b)](),origin:origin=null}={}){const _0x2e9301=_0x28b818;if(!_0x27cd3e[_0x2e9301(0x176)](_0x50674e))return;const _0x496ef7=_0x3378fc+'@'+_0x1d501b+'@'+_0x44487e,_0x3b11cb=_0x27cd3e[_0x2e9301(0x83f)](_0x50674e)[_0x2e9301(0x522)],_0x9a80f9=_0x3b11cb['getEntry'](_0x496ef7);if(!_0x9a80f9)return;_0x3b11cb[_0x2e9301(0x7b1)](_0x496ef7),_0x27cd3e['_logChange']({'id':_0x2e9301(0x15b)+_0x50674e+'@'+_0x496ef7,'type':_0x50674e,'key':_0x496ef7,'action':_0xf97d17['REMOVE'],'timestamp':timestamp,'txnId':_0x247ded?.['id'],'origin':origin},_0x9a80f9['value'],undefined),_0x27cd3e['events']['emit'](_0x5cf4d4[_0x2e9301(0x403)],{'sourceType':_0x3378fc,'sourceKey':_0x1d501b,'fieldPath':_0x44487e,'env':_0x27cd3e[_0x2e9301(0x885)]});}function _0x4757e9(_0x54d1b3,_0x3fa505,_0x771d15,_0x1b85c1,_0x1cff10={}){const _0x25814e=_0x28b818;if(!_0x54d1b3[_0x25814e(0x176)](_0x50674e))return;const _0xfcd5ca=_0x54d1b3['_getType'](_0x50674e)[_0x25814e(0x522)],_0x29cfe4=_0x771d15+'@'+_0x1b85c1+'@',_0x21636a=[];for(const {key:_0x28a380,value:_0x2f16ce}of _0xfcd5ca[_0x25814e(0x805)]({'start':_0x29cfe4,'end':_0x29cfe4+'\uffff'})){if(_0x2f16ce?.[_0x25814e(0x327)]===_0x771d15&&_0x2f16ce?.['sourceKey']===_0x1b85c1)_0x21636a['push'](_0x28a380);}for(const _0x569333 of _0x21636a){const _0x73f37d=_0xfcd5ca[_0x25814e(0x242)](_0x569333);if(!_0x73f37d)continue;_0xfcd5ca['removeSync'](_0x569333),_0x54d1b3[_0x25814e(0x50f)]({'id':_0x25814e(0x15b)+_0x50674e+'@'+_0x569333,'type':_0x50674e,'key':_0x569333,'action':_0xf97d17[_0x25814e(0x383)],'timestamp':_0x1cff10[_0x25814e(0x217)]||Date[_0x25814e(0x38b)](),'txnId':_0x3fa505?.['id'],'origin':_0x1cff10[_0x25814e(0x348)]},_0x73f37d[_0x25814e(0x7fd)],undefined);}}function _0x175450(_0x3bfdd3,_0x5abb45){const _0xd4dd87=_0x28b818;if(!_0x3bfdd3[_0xd4dd87(0x176)](_0x50674e))return;const _0x1f411e=_0x3bfdd3[_0xd4dd87(0x83f)](_0x50674e)['data'],_0x395607=_0x5abb45+'@',_0x4dc94e=[];for(const {key:_0xe9659a,value:_0x477b1d}of _0x1f411e[_0xd4dd87(0x805)]({'start':_0x395607,'end':_0x395607+'\uffff'})){if(_0x477b1d?.[_0xd4dd87(0x327)]===_0x5abb45)_0x4dc94e['push'](_0xe9659a);}for(const _0x44dde9 of _0x4dc94e)_0x1f411e[_0xd4dd87(0x7b1)](_0x44dde9);}async function _0x37a2f6(_0x37b6de,_0x476079){const _0x11efda=_0x28b818,_0x13b077=_0xd31167(_0x37b6de,_0x476079);if(_0x13b077[_0x11efda(0x479)]===0x0)return;await _0x37b6de[_0x11efda(0x57b)]['transaction'](()=>{const _0x30695f=_0x11efda;for(const {key:_0x322c92,value:_0x311b80}of _0x37b6de[_0x30695f(0x805)](_0x476079)){_0x599f8a(_0x37b6de,_0x476079,_0x322c92,_0x311b80,null);const _0x59d18d=_0x375cfe(_0x37b6de,_0x476079,_0x322c92,_0x311b80);for(const _0x1e876f of _0x59d18d){_0x5d4447(_0x37b6de,null,_0x476079,_0x322c92,_0x1e876f[_0x30695f(0x702)],_0x1e876f[_0x30695f(0x4d8)],_0x1e876f[_0x30695f(0x734)]);}}});}const _0x271492=0x1388;async function _0x11affb(_0x57b0d0){const _0xd2906d=_0x28b818,_0xf9a49a=_0x57b0d0['_refCache']?.['outgoing']?.[_0xd2906d(0x1d3)]>0x0;if(!_0xf9a49a&&!_0x57b0d0[_0xd2906d(0x38d)])return{'dropped':0x0,'written':0x0};const _0x2d722f=_0x11d54e(_0x57b0d0);let _0xbbe7ec=0x0;for(;;){const _0x3b5497=Array[_0xd2906d(0x5f7)](_0x2d722f[_0xd2906d(0x42e)]({'limit':_0x271492}));if(_0x3b5497['length']===0x0)break;let _0x306fda=0x0;await _0x57b0d0['_writer'][_0xd2906d(0x84d)](()=>{for(const _0x43b94a of _0x3b5497)if(_0x2d722f['removeSync'](_0x43b94a))_0x306fda++;});if(_0x306fda===0x0)break;_0xbbe7ec+=_0x306fda;}let _0x1a7e4f=0x0;for(const _0x45a5f6 of _0x57b0d0['_refCache'][_0xd2906d(0x390)][_0xd2906d(0x23b)]()){if(_0x45a5f6[_0xd2906d(0x70d)]('~')||!_0x57b0d0['hasType'](_0x45a5f6))continue;const _0x74f36e=_0xd31167(_0x57b0d0,_0x45a5f6);await _0x57b0d0[_0xd2906d(0x57b)]['transaction'](()=>{const _0x2cd9db=_0xd2906d;for(const {key:_0x39775c,value:_0x5f5276}of _0x57b0d0[_0x2cd9db(0x805)](_0x45a5f6)){for(const _0x1d6052 of _0x74f36e){const _0x314b16=_0x29af23(_0x5f5276,_0x1d6052[_0x2cd9db(0x702)]);if(!_0x237787(_0x314b16))continue;_0x2d722f['putSync'](_0x9f620e(_0x1d6052[_0x2cd9db(0x4d8)],_0x314b16,_0x45a5f6,_0x39775c,_0x1d6052[_0x2cd9db(0x702)]),0x1),_0x1a7e4f++;}}});}return{'dropped':_0xbbe7ec,'written':_0x1a7e4f};}return okdbEnvRefs={'getFieldValue':_0x29af23,'setFieldValue':_0x258f30,'refIndexKey':_0x9f620e,'isRefTarget':_0x237787,'cascadeVisitKey':_0x54296f,'extractRefs':_0x3742a9,'rebuildRefCache':_0x4cdfa5,'getTypeRefs':_0xd31167,'getIncomingRefs':_0x1b47b0,'getRefIndexDb':_0x11d54e,'updateRefIndex':_0x599f8a,'removeRefIndexEntries':_0x255e37,'refIndexRowsFor':_0x2690e3,'rebuildRefIndex':_0x11affb,'checkForeignKeys':_0x375cfe,'processDeleteCascade':_0x31d4df,'setRefViolation':_0x5d4447,'clearRefViolation':_0x9e01d7,'clearRefViolationsForKey':_0x4757e9,'clearRefViolationsForType':_0x175450,'syncRefIndex':_0x37a2f6},okdbEnvRefs;}var hasRequiredOkdbSubscriptionsStore;function requireOkdbSubscriptionsStore(){const _0x2b4efd=_0x1ade1a;if(hasRequiredOkdbSubscriptionsStore)return okdbSubscriptionsStore['exports'];hasRequiredOkdbSubscriptionsStore=0x1;const _0x2417c5=require$$0$4,{assertFilterAllowed:_0x1920d2}=requireOkdbQueryFilter(),{rebuildRefCache:_0x2550d3}=requireOkdbEnvRefs(),_0x3cddaf=_0x2b4efd(0x2e1),_0x5289ef=_0x2b4efd(0x1a4),_0xe48e51='interest',_0xb73eb5=[_0x2b4efd(0x29e),_0x2b4efd(0x79c),'key'],_0x424540=['dataEnv',_0x2b4efd(0x79c)],_0x35328f=0x5a*0x3e8,_0xa4b985=Math[_0x2b4efd(0x63f)](_0x35328f/0x2);class _0x34823c{constructor(_0x314c6c,_0x2a284b={}){const _0x48833c=_0x2b4efd;this[_0x48833c(0x555)]=_0x314c6c,this[_0x48833c(0x1a3)]=Number[_0x48833c(0x560)](_0x2a284b[_0x48833c(0x1a3)])&&_0x2a284b[_0x48833c(0x1a3)]>0x0?_0x2a284b[_0x48833c(0x1a3)]:_0x35328f,this[_0x48833c(0x6ca)]=Number[_0x48833c(0x560)](_0x2a284b[_0x48833c(0x6ca)])?_0x2a284b[_0x48833c(0x6ca)]:_0xa4b985,this[_0x48833c(0x5ba)]=null;}async['open'](){const _0x49e630=_0x2b4efd;if(this[_0x49e630(0x5ba)])return this['_sub'];const _0x378f1d=await this[_0x49e630(0x555)]['createEnvironment'](_0x3cddaf,{'sync':![]});return await _0x378f1d['ensureType'](_0x5289ef,{'indexes':[_0x424540]}),await _0x378f1d[_0x49e630(0x85d)](_0xe48e51),_0x378f1d[_0x49e630(0x384)](_0xe48e51)?_0x2550d3(_0x378f1d):await _0x378f1d[_0x49e630(0x4e4)](_0xe48e51,{'definition':{'type':_0x49e630(0x6f7),'properties':{'sessionId':{'type':_0x49e630(0x4c1),'ref':{'type':_0x5289ef,'onDelete':_0x49e630(0x391)}},'dataEnv':{'type':_0x49e630(0x4c1)},'type':{'type':_0x49e630(0x4c1)},'key':{'type':'string'}},'required':[_0x49e630(0x585),'dataEnv',_0x49e630(0x79c),_0x49e630(0x491)]},'enforce':!![]}),await _0x378f1d[_0x49e630(0x85d)](_0xe48e51,{'indexes':[_0xb73eb5]}),await _0x378f1d[_0x49e630(0x21c)](_0xe48e51,_0xb73eb5),await _0x378f1d['indexReady'](_0x5289ef,_0x424540),this[_0x49e630(0x5ba)]=_0x378f1d,_0x378f1d;}['_env'](){const _0x252acb=_0x2b4efd;if(!this['_sub'])throw new Error(_0x252acb(0x3ad));return this['_sub'];}async['createSession']({sessionId:_0x55623e,dataEnv:_0xdcd21f,type:_0x2f44a1,filter:filter=null,ttlMs:_0x16bd55}={}){const _0x94a568=_0x2b4efd,_0x1aa6e5=this[_0x94a568(0x6f4)]();_0x1920d2(filter);const _0x269137=_0x55623e!=null&&String(_0x55623e)[_0x94a568(0x479)]>0x0?String(_0x55623e):_0x2417c5[_0x94a568(0x6f1)](),_0x2a3f9c=Number[_0x94a568(0x560)](_0x16bd55)&&_0x16bd55>0x0?_0x16bd55:this[_0x94a568(0x1a3)],_0x4dca29=Date[_0x94a568(0x38b)](),_0x517e77={'sessionId':_0x269137,'dataEnv':_0xdcd21f,'type':_0x2f44a1,'filter':filter??null,'version':0x0,'createdAt':_0x4dca29,'expiresAt':_0x4dca29+_0x2a3f9c};return await _0x1aa6e5[_0x94a568(0x7bc)](_0x5289ef,_0x269137,_0x517e77,{'ttl':_0x2a3f9c}),{'sessionId':_0x269137,'version':0x0};}[_0x2b4efd(0x261)](_0x95b3f){const _0x295e53=_0x2b4efd;if(!_0x95b3f)return null;return this[_0x295e53(0x6f4)]()[_0x295e53(0x616)](_0x5289ef,String(_0x95b3f))??null;}async[_0x2b4efd(0x1dd)](_0x32eef0){const _0x53629e=this['_env'](),_0x404d8f=String(_0x32eef0);if(!_0x53629e['get'](_0x5289ef,_0x404d8f))return![];return await _0x53629e['remove'](_0x5289ef,_0x404d8f),!![];}async[_0x2b4efd(0x5a2)](_0x407c8e){const _0x1bb9b7=_0x2b4efd,_0x322884=this[_0x1bb9b7(0x6f4)](),_0x423ec9=String(_0x407c8e),_0x71a26a=_0x322884[_0x1bb9b7(0x616)](_0x5289ef,_0x423ec9);if(!_0x71a26a)return null;const _0xce13de=(Number[_0x1bb9b7(0x560)](_0x71a26a[_0x1bb9b7(0x2ce)])?_0x71a26a[_0x1bb9b7(0x2ce)]:0x0)+0x1;return await _0x322884['put'](_0x5289ef,_0x423ec9,{..._0x71a26a,'version':_0xce13de}),_0xce13de;}async[_0x2b4efd(0x704)](_0x548d62,_0x240485){const _0x182a8a=_0x2b4efd,_0x31cde0=this['_env'](),_0x536b71=String(_0x548d62);if(!_0x31cde0[_0x182a8a(0x616)](_0x5289ef,_0x536b71))return![];const _0xc8e320=Number[_0x182a8a(0x560)](_0x240485)&&_0x240485>0x0?_0x240485:this[_0x182a8a(0x1a3)];if(this['_isFar'](_0x536b71))return![];return await _0x31cde0[_0x182a8a(0x24c)](_0x5289ef,_0x536b71,_0xc8e320),await this[_0x182a8a(0x34a)](_0x536b71,_0xc8e320),!![];}async['refreshTtlBatch'](_0x240064,_0xa43bc8){const _0x37a1a7=_0x2b4efd,_0x3712bf=this[_0x37a1a7(0x6f4)](),_0x4268f=Number[_0x37a1a7(0x560)](_0xa43bc8)&&_0xa43bc8>0x0?_0xa43bc8:this[_0x37a1a7(0x1a3)],_0x4b531c=Date[_0x37a1a7(0x38b)](),_0x44cc6c=[];for(const _0x4df6b8 of _0x240064||[]){const _0x4c1ff3=String(_0x4df6b8),_0x599b90=_0x3712bf[_0x37a1a7(0x616)](_0x5289ef,_0x4c1ff3);if(!_0x599b90)continue;if(this[_0x37a1a7(0x282)](_0x4c1ff3,_0x4b531c))continue;_0x44cc6c[_0x37a1a7(0x2e6)]({'id':_0x4c1ff3,'cur':_0x599b90});}if(_0x44cc6c[_0x37a1a7(0x479)]===0x0)return[];return await _0x3712bf[_0x37a1a7(0x82f)](async _0x441ff5=>{const _0x2b962e=_0x37a1a7;for(const {id:_0x55f1ed,cur:_0x422830}of _0x44cc6c){_0x441ff5[_0x2b962e(0x7bc)](_0x5289ef,_0x55f1ed,{..._0x422830,'expiresAt':_0x4b531c+_0x4268f}),_0x441ff5[_0x2b962e(0x24c)](_0x5289ef,_0x55f1ed,_0x4268f);}}),_0x44cc6c[_0x37a1a7(0x6f2)](_0x574500=>_0x574500['id']);}[_0x2b4efd(0x282)](_0x18299d,_0xdddf2=Date[_0x2b4efd(0x38b)]()){const _0x39cd3f=_0x2b4efd,_0x5ed784=this[_0x39cd3f(0x6f4)]()[_0x39cd3f(0x695)](_0x5289ef,String(_0x18299d));if(!_0x5ed784)return![];return _0x5ed784[_0x39cd3f(0x235)]-_0xdddf2>this[_0x39cd3f(0x6ca)];}async['_syncExpiresAtField'](_0x104f3c,_0x10a790){const _0x2f8570=_0x2b4efd,_0x2bf201=this[_0x2f8570(0x6f4)](),_0x30b2f2=_0x2bf201[_0x2f8570(0x616)](_0x5289ef,_0x104f3c);if(!_0x30b2f2)return;await _0x2bf201[_0x2f8570(0x7bc)](_0x5289ef,_0x104f3c,{..._0x30b2f2,'expiresAt':Date['now']()+_0x10a790});}async[_0x2b4efd(0x79f)](_0x2bdeac,_0x108f12,_0x47d895){const _0x374fa7=_0x2b4efd,_0x1e9337=this['_env'](),_0x19869e=String(_0x2bdeac),_0x1038b5=_0x1e9337[_0x374fa7(0x616)](_0x5289ef,_0x19869e);if(!_0x1038b5)throw new Error(_0x374fa7(0x1cb)+_0x19869e);const _0x3877b0=_0x2417c5[_0x374fa7(0x6f1)]();return await _0x1e9337[_0x374fa7(0x7bc)](_0xe48e51,_0x3877b0,{'sessionId':_0x19869e,'dataEnv':String(_0x1038b5[_0x374fa7(0x29e)]),'type':String(_0x108f12),'key':String(_0x47d895)}),_0x3877b0;}async['_commitSessionMutation'](_0x54ed5e,_0x5dd825,{retries:retries=0x8}={}){const _0x133af8=_0x2b4efd,_0xacdb59=this['_env']();for(let _0x24b964=0x0;;_0x24b964++){const _0x441ab3=_0xacdb59[_0x133af8(0x242)](_0x5289ef,_0x54ed5e);if(!_0x441ab3)return null;const _0x1b1730=_0x441ab3[_0x133af8(0x7fd)],_0x5b799d=(Number[_0x133af8(0x560)](_0x1b1730[_0x133af8(0x2ce)])?_0x1b1730[_0x133af8(0x2ce)]:0x0)+0x1,{sessionPatch:sessionPatch={},applyInterests:applyInterests=null}=_0x5dd825(_0x1b1730,_0xacdb59)||{};try{return await _0xacdb59[_0x133af8(0x82f)](async _0x2579f6=>{const _0x490a6b=_0x133af8;applyInterests?.(_0x2579f6),_0x2579f6[_0x490a6b(0x7bc)](_0x5289ef,_0x54ed5e,{..._0x1b1730,...sessionPatch,'version':_0x5b799d},{'ifVersion':_0x441ab3[_0x490a6b(0x2ce)]});}),_0x5b799d;}catch(_0x32d7cb){if(_0x32d7cb?.[_0x133af8(0x431)]===_0x133af8(0x35f)&&_0x24b964<retries)continue;throw _0x32d7cb;}}}async[_0x2b4efd(0x1eb)](_0x2dc36e,{add:add=[],remove:remove=[]}={}){const _0x6f8221=_0x2b4efd,_0x1892df=String(_0x2dc36e);return this[_0x6f8221(0x70b)](_0x1892df,(_0x1b8f01,_0x52d6c1)=>{const _0xd43f24=_0x6f8221,_0x6b230a=String(_0x1b8f01[_0xd43f24(0x29e)]),_0x5bc846=new Set((remove||[])[_0xd43f24(0x6f2)](_0x46854a=>String(_0x46854a[_0xd43f24(0x79c)])+'\x00'+String(_0x46854a[_0xd43f24(0x491)]))),_0x3d227c=[];if(_0x5bc846[_0xd43f24(0x1d3)]>0x0)for(const {key:_0x33a67a,value:_0x2e13dc}of _0x52d6c1[_0xd43f24(0x805)](_0xe48e51,{})){if(!_0x2e13dc||_0x2e13dc[_0xd43f24(0x585)]!==_0x1892df)continue;if(_0x5bc846[_0xd43f24(0x4a8)](_0x2e13dc['type']+'\x00'+_0x2e13dc[_0xd43f24(0x491)]))_0x3d227c[_0xd43f24(0x2e6)](_0x33a67a);}const _0x38740=(add||[])[_0xd43f24(0x6f2)](_0x16ce42=>({'id':_0x2417c5['randomUUID'](),'type':String(_0x16ce42['type']),'key':String(_0x16ce42[_0xd43f24(0x491)])}));return{'applyInterests':_0x5879fc=>{const _0x12ecd4=_0xd43f24;for(const _0x1a857f of _0x3d227c)_0x5879fc[_0x12ecd4(0x6a9)](_0xe48e51,_0x1a857f);for(const _0x5f5615 of _0x38740)_0x5879fc[_0x12ecd4(0x7bc)](_0xe48e51,_0x5f5615['id'],{'sessionId':_0x1892df,'dataEnv':_0x6b230a,'type':_0x5f5615['type'],'key':_0x5f5615[_0x12ecd4(0x491)]});}};});}async[_0x2b4efd(0x54d)](_0x179281,_0xbca270){const _0x4b77f=_0x2b4efd;_0x1920d2(_0xbca270);const _0x4bfd83=String(_0x179281);return this[_0x4b77f(0x70b)](_0x4bfd83,()=>({'sessionPatch':{'filter':_0xbca270??null}}));}async[_0x2b4efd(0x783)](_0x16087f,_0x306118,_0x4c8ab0){const _0x40415b=_0x2b4efd,_0x4a4c0b=this['_env'](),_0x56ce1d=String(_0x16087f),_0x35e722=String(_0x306118),_0x41f88b=String(_0x4c8ab0),_0x19b0fc=[];for(const {key:_0x3ed574,value:_0x5b241c}of _0x4a4c0b[_0x40415b(0x805)](_0xe48e51,{})){if(_0x5b241c&&_0x5b241c[_0x40415b(0x585)]===_0x56ce1d&&_0x5b241c['type']===_0x35e722&&_0x5b241c['key']===_0x41f88b)_0x19b0fc[_0x40415b(0x2e6)](_0x3ed574);}for(const _0x2cca70 of _0x19b0fc)await _0x4a4c0b[_0x40415b(0x6a9)](_0xe48e51,_0x2cca70);return _0x19b0fc['length'];}async[_0x2b4efd(0x420)](_0x4342a6,_0x54b457){const _0x156d34=String(_0x4342a6);return this['_commitSessionMutation'](_0x156d34,(_0x1d82e6,_0x6f15ce)=>{const _0x2d1422=_0x3f13,_0x14cdd3=String(_0x1d82e6['dataEnv']),_0x51b06a=[];for(const {key:_0x188078,value:_0x107256}of _0x6f15ce[_0x2d1422(0x805)](_0xe48e51,{})){if(_0x107256&&_0x107256[_0x2d1422(0x585)]===_0x156d34)_0x51b06a[_0x2d1422(0x2e6)](_0x188078);}const _0x39a04f=(_0x54b457||[])[_0x2d1422(0x6f2)](_0x2d0a79=>({'id':_0x2417c5[_0x2d1422(0x6f1)](),'type':String(_0x2d0a79['type']),'key':String(_0x2d0a79[_0x2d1422(0x491)])}));return{'applyInterests':_0x5bfc80=>{const _0x58e6bb=_0x2d1422;for(const _0x1367e7 of _0x51b06a)_0x5bfc80[_0x58e6bb(0x6a9)](_0xe48e51,_0x1367e7);for(const _0x517fda of _0x39a04f)_0x5bfc80[_0x58e6bb(0x7bc)](_0xe48e51,_0x517fda['id'],{'sessionId':_0x156d34,'dataEnv':_0x14cdd3,'type':_0x517fda['type'],'key':_0x517fda[_0x58e6bb(0x491)]});}};});}[_0x2b4efd(0x4aa)](_0xee4a95,_0x5a48fd,_0x1bb6ae){const _0x4078c3=_0x2b4efd,_0x49b4fc=this[_0x4078c3(0x6f4)](),_0xe421d5=String(_0xee4a95),_0x403ed7=String(_0x5a48fd),_0x4f9cd7=String(_0x1bb6ae),_0xb92329=new Set();for(const {value:_0x24ace1}of _0x49b4fc[_0x4078c3(0x1f0)](_0xe48e51,_0xb73eb5,{'start':[_0xe421d5,_0x403ed7,_0x4f9cd7],'end':[_0xe421d5,_0x403ed7,_0x4f9cd7,'￿']})){if(_0x24ace1&&_0x24ace1[_0x4078c3(0x585)])_0xb92329[_0x4078c3(0x76e)](_0x24ace1[_0x4078c3(0x585)]);}return[..._0xb92329];}['filterSessionsForType'](_0x25f560,_0x481c94){const _0x5471a5=_0x2b4efd,_0x3c2b5e=this[_0x5471a5(0x6f4)](),_0x3b3359=String(_0x25f560),_0x4fec61=String(_0x481c94),_0x39383d=[];for(const {value:_0x3b3da0}of _0x3c2b5e[_0x5471a5(0x1f0)](_0x5289ef,_0x424540,{'start':[_0x3b3359,_0x4fec61],'end':[_0x3b3359,_0x4fec61,'\uffff']})){if(!_0x3b3da0||_0x3b3da0[_0x5471a5(0x29e)]!==_0x3b3359||_0x3b3da0['type']!==_0x4fec61)continue;if(_0x3b3da0[_0x5471a5(0x658)]==null)continue;_0x39383d['push']({'sessionId':_0x3b3da0[_0x5471a5(0x585)],'filter':_0x3b3da0['filter'],'version':Number[_0x5471a5(0x560)](_0x3b3da0[_0x5471a5(0x2ce)])?_0x3b3da0[_0x5471a5(0x2ce)]:0x0});}return _0x39383d;}async[_0x2b4efd(0x7d4)](){const _0x76f27c=_0x2b4efd;return this[_0x76f27c(0x6f4)]()[_0x76f27c(0x56c)]();}}return okdbSubscriptionsStore[_0x2b4efd(0x3bf)]=_0x34823c,okdbSubscriptionsStore[_0x2b4efd(0x3bf)][_0x2b4efd(0x559)]=_0x3cddaf,okdbSubscriptionsStore[_0x2b4efd(0x3bf)]['T_SESSION']=_0x5289ef,okdbSubscriptionsStore[_0x2b4efd(0x3bf)][_0x2b4efd(0x67a)]=_0xe48e51,okdbSubscriptionsStore['exports']['REVERSE_INDEX']=_0xb73eb5,okdbSubscriptionsStore['exports']['SESSION_TYPE_INDEX']=_0x424540,okdbSubscriptionsStore['exports'][_0x2b4efd(0x1a1)]=_0x35328f,okdbSubscriptionsStore[_0x2b4efd(0x3bf)];}var version=_0x1ade1a(0x44e),require$$29={'version':version},okdbEnginesEnums,hasRequiredOkdbEnginesEnums;function requireOkdbEnginesEnums(){const _0x583a55=_0x1ade1a;if(hasRequiredOkdbEnginesEnums)return okdbEnginesEnums;hasRequiredOkdbEnginesEnums=0x1;const _0xd2b7a6=_0x583a55(0x3dd),_0x565152=0xa,_0x660741=Object[_0x583a55(0x493)]({'CREATED':_0x583a55(0x249),'ONLINE':_0x583a55(0x40b),'STOPPED':_0x583a55(0x26b),'INACTIVE':'inactive','ERROR':'error','REMOVED':_0x583a55(0x2c2)}),_0x3b2fe5=Object['freeze']({'STARTED':_0x583a55(0x2dc),'STOPPED':_0x583a55(0x26b),'ERROR':'error','INSTALLED':_0x583a55(0x556),'UNINSTALLED':_0x583a55(0x804)}),_0x5d4c6a=Object[_0x583a55(0x493)](new Set([_0x660741[_0x583a55(0x4c0)],_0x660741[_0x583a55(0x575)],_0x660741[_0x583a55(0x611)],_0x660741['ERROR']]));function _0xa1ca05(_0x48a6a2){const _0x333e35=_0x583a55;return _0x48a6a2?.[_0x333e35(0x25c)]===![]?_0x660741['STOPPED']:_0x333e35(0x1b4);}return okdbEnginesEnums={'TYPE_ENGINES':_0xd2b7a6,'MAX_UPDATE_RETRIES':_0x565152,'ENGINE_STATUS':_0x660741,'ENGINE_EVENTS':_0x3b2fe5,'UPDATABLE_STATUSES':_0x5d4c6a,'durableOnlyEngineState':_0xa1ca05},okdbEnginesEnums;}var enums,hasRequiredEnums;function requireEnums(){const _0x981616=_0x1ade1a;if(hasRequiredEnums)return enums;hasRequiredEnums=0x1;const _0x53e126=Object[_0x981616(0x493)]({'EMBEDDER':'embedder','INDEXER':_0x981616(0x1e4),'SEARCH':_0x981616(0x205),'WORKER':_0x981616(0x724)}),_0x33d3e7=Object['freeze']({'PENDING':_0x981616(0x4ef),'DONE':_0x981616(0x45e),'FAILED':_0x981616(0x1dc),'DELETED':_0x981616(0x774)}),_0x5ac754=Object[_0x981616(0x493)]({'INDEXER_READY':'embeddings:indexer:ready','INDEXER_FLUSHED':_0x981616(0x26f),'INDEXER_DOC_DONE':_0x981616(0x4b7),'INDEXER_DOC_FAILED':_0x981616(0x60d),'INDEXER_DOC_QUEUED':_0x981616(0x18c),'STRATEGY_REGISTERED':_0x981616(0x419),'DOC_STATUS_CHANGE':_0x981616(0x63d),'PIPELINE_READY':_0x981616(0x7ac)}),_0xdefdba=Object['freeze']({'MODELS':_0x981616(0x159),'DOC_STATUS_PREFIX':'doc_status:','VEC_PREFIX':'vec:'});return enums={'ENGINE_TYPES':_0x53e126,'INDEXER_DOC_STATUS':_0x33d3e7,'EMBEDDINGS_EVENTS':_0x5ac754,'INTERNAL_TYPES':_0xdefdba},enums;}var okdbQueueValidate,hasRequiredOkdbQueueValidate;function requireOkdbQueueValidate(){const _0x13968d=_0x1ade1a;if(hasRequiredOkdbQueueValidate)return okdbQueueValidate;hasRequiredOkdbQueueValidate=0x1;const _0x5669ce=Object['freeze']({'PENDING':_0x13968d(0x4ef),'RUNNING':_0x13968d(0x709),'DONE':'done','FAILED':_0x13968d(0x1dc)}),_0x4f9ba7=Object[_0x13968d(0x493)]({'ACTIVE':'active','PAUSED':_0x13968d(0x840),'DRAINING':'draining'}),_0x4e1929=Object[_0x13968d(0x493)]({'ENQUEUED':_0x13968d(0x71c),'DONE':_0x13968d(0x537),'FAILED':'queue:failed','RETRY':_0x13968d(0x76d),'RESCHEDULED':_0x13968d(0x29c),'REMOVED':_0x13968d(0x62a),'RECONCILED':_0x13968d(0x151),'CLEAR_PROGRESS':'queue:clear-progress','CLEAR_DONE':_0x13968d(0x6c2),'LOG':_0x13968d(0x203)}),_0x4d979f=Object[_0x13968d(0x493)]([_0x13968d(0x2df),_0x13968d(0x786),_0x13968d(0x5b0),'error']),_0x3251c4=0x1,_0x53f5ab=0xc350,_0x3adb18=0x400,_0x48ff43=0x800;function _0x2fd01f(_0x542c40){const _0x23e6ce=_0x13968d;return _0x542c40!=null&&typeof _0x542c40===_0x23e6ce(0x6f7)&&(_0x542c40[_0x23e6ce(0x75d)]===Object||Object[_0x23e6ce(0x483)](_0x542c40)===null);}function _0x37ca5a(_0x532f2f,_0xb83531,_0x4eb613,_0x18b588){const _0x136f1f=_0x13968d;if(_0x532f2f==null)return _0xb83531;const _0x5234e3=Number(_0x532f2f);if(!Number[_0x136f1f(0x560)](_0x5234e3))return _0xb83531;const _0x41c677=Math[_0x136f1f(0x64f)](_0x5234e3);if(_0x41c677<_0x4eb613)return _0x4eb613;if(_0x41c677>_0x18b588)return _0x18b588;return _0x41c677;}function _0x11d767(_0x36e4ff){const _0x1fe864=_0x13968d;if(!_0x36e4ff)return[];if(typeof _0x36e4ff===_0x1fe864(0x4c1))_0x36e4ff=[_0x36e4ff];if(!Array['isArray'](_0x36e4ff))throw new Error(_0x1fe864(0x276));const _0x3d4298=[],_0x1d1574=new Set();for(const _0x22a79b of _0x36e4ff){if(_0x22a79b==null)continue;const _0x1fe33c=String(_0x22a79b)[_0x1fe864(0x4ee)]();if(!_0x1fe33c)continue;if(_0x1fe33c[_0x1fe864(0x479)]>0x80)throw new Error(_0x1fe864(0x4ed));if(_0x1d1574[_0x1fe864(0x4a8)](_0x1fe33c))continue;_0x1d1574[_0x1fe864(0x76e)](_0x1fe33c),_0x3d4298[_0x1fe864(0x2e6)](_0x1fe33c);if(_0x3d4298[_0x1fe864(0x479)]>=0x20)break;}return _0x3d4298;}function _0x3578c3(_0x548ea2){const _0x34ded7=_0x13968d;if(_0x548ea2==null)return null;const _0x11df41=String(_0x548ea2)[_0x34ded7(0x4ee)]();if(!_0x11df41)return null;if(_0x11df41[_0x34ded7(0x479)]>0x80)throw new Error(_0x34ded7(0x26a));return _0x11df41;}function _0xba4140(_0x3cf066,_0x448677=0x1){const _0x3128f3=_0x13968d;if(_0x3cf066==null)return[];if(typeof _0x3cf066===_0x3128f3(0x4c1)){const _0x517e26=_0x3578c3(_0x3cf066);if(!_0x517e26)return[];return[{'id':_0x517e26,'tokens':_0x448677}];}if(!Array[_0x3128f3(0x4b6)](_0x3cf066))throw new Error(_0x3128f3(0x5fe));const _0x211e5c=[],_0x1e9fd3=new Set();for(const _0x2f23da of _0x3cf066){let _0x4a110c,_0x3cdfcf;if(Array['isArray'](_0x2f23da))[_0x4a110c,_0x3cdfcf]=_0x2f23da;else{if(_0x2f23da&&typeof _0x2f23da===_0x3128f3(0x6f7))({id:_0x4a110c,tokens:_0x3cdfcf}=_0x2f23da);else{if(typeof _0x2f23da===_0x3128f3(0x4c1))_0x4a110c=_0x2f23da,_0x3cdfcf=_0x448677;else continue;}}_0x4a110c=_0x3578c3(_0x4a110c);if(!_0x4a110c)continue;const _0x4f76e1=_0x3cdfcf==null?_0x448677:Math[_0x3128f3(0x64f)](Number(_0x3cdfcf));if(!Number[_0x3128f3(0x560)](_0x4f76e1)||_0x4f76e1<0x1)throw new Error(_0x3128f3(0x2d0)+_0x4a110c+_0x3128f3(0x3b7));if(_0x4f76e1>0xf4240)throw new Error('bucket\x20\x22'+_0x4a110c+_0x3128f3(0x535));if(_0x1e9fd3[_0x3128f3(0x4a8)](_0x4a110c))throw new Error('duplicate\x20bucket:\x20'+_0x4a110c);_0x1e9fd3['add'](_0x4a110c),_0x211e5c['push']({'id':_0x4a110c,'tokens':_0x4f76e1});}return _0x211e5c;}function _0x1bf83c(_0x386449,_0x4b3745=0x400){if(_0x386449==null)return null;const _0x30be58=String(_0x386449)['slice'](0x0,_0x4b3745);return _0x30be58||null;}function _0x228b38(_0x2a6ec0){const _0x5b0e56=_0x13968d;if(_0x2a6ec0==null)return null;if(_0x2a6ec0[_0x5b0e56(0x491)]!==undefined&&_0x2a6ec0[_0x5b0e56(0x7fd)]!==undefined)return _0x2a6ec0;return{'key':_0x2a6ec0['id']??null,'value':_0x2a6ec0};}function _0x1eecc0(_0xd2ee18){const _0x35a938=_0x13968d;let _0x50a70c=_0xd2ee18;if(typeof _0xd2ee18===_0x35a938(0x4c1))_0x50a70c={'message':_0xd2ee18};if(!_0x2fd01f(_0x50a70c))throw new Error(_0x35a938(0x697));const _0x5a4759=_0x50a70c['level']==null?_0x35a938(0x786):String(_0x50a70c[_0x35a938(0x5cb)])['toLowerCase']();if(!_0x4d979f[_0x35a938(0x2bc)](_0x5a4759))throw new Error(_0x35a938(0x5c6)+_0x5a4759);if(_0x50a70c[_0x35a938(0x806)]==null)throw new Error('log\x20entry\x20message\x20required');const _0x21c1e1=String(_0x50a70c[_0x35a938(0x806)])[_0x35a938(0x4e8)](0x0,_0x3adb18);let _0x2a2a18=null;if(_0x50a70c[_0x35a938(0x153)]!=null){if(!_0x2fd01f(_0x50a70c['fields']))throw new Error('log\x20entry\x20fields\x20must\x20be\x20object|null');if(JSON[_0x35a938(0x4e6)](_0x50a70c['fields'])[_0x35a938(0x479)]>_0x48ff43)throw new Error(_0x35a938(0x6d0));_0x2a2a18=_0x50a70c[_0x35a938(0x153)];}return{'level':_0x5a4759,'message':_0x21c1e1,'fields':_0x2a2a18,'ts':Date['now']()};}function _0x38408d(_0x23e58a){const _0x294517=_0x13968d;if(_0x23e58a==null)return;if(!Number[_0x294517(0x32e)](_0x23e58a)||_0x23e58a<_0x3251c4||_0x23e58a>_0x53f5ab)throw new Error(_0x294517(0x44f)+_0x3251c4+',\x20'+_0x53f5ab+']');}function _0x441ea3(_0x1ae962){const _0x243244=_0x13968d;if(!_0x2fd01f(_0x1ae962))throw new Error('job\x20must\x20be\x20object');if(typeof _0x1ae962['id']!=='string'||_0x1ae962['id'][_0x243244(0x479)]<0x8)throw new Error('job.id\x20must\x20be\x20string');if(typeof _0x1ae962[_0x243244(0x79c)]!==_0x243244(0x4c1)||!_0x1ae962['type'])throw new Error(_0x243244(0x21a));if(!Object[_0x243244(0x3b9)](_0x5669ce)[_0x243244(0x2bc)](_0x1ae962[_0x243244(0x371)]))throw new Error(_0x243244(0x194)+_0x1ae962[_0x243244(0x371)]);for(const _0x21a4cd of[_0x243244(0x2aa),'created','updated']){if(typeof _0x1ae962[_0x21a4cd]!==_0x243244(0x729)||!Number[_0x243244(0x560)](_0x1ae962[_0x21a4cd]))throw new Error(_0x243244(0x565)+_0x21a4cd+'\x20must\x20be\x20number');}if(_0x1ae962[_0x243244(0x5a5)]!=null&&(typeof _0x1ae962[_0x243244(0x5a5)]!==_0x243244(0x729)||!Number[_0x243244(0x560)](_0x1ae962[_0x243244(0x5a5)])))throw new Error(_0x243244(0x423));if(!Number[_0x243244(0x32e)](_0x1ae962[_0x243244(0x1d0)])||_0x1ae962[_0x243244(0x1d0)]<0x0)throw new Error(_0x243244(0x506));if(!Number[_0x243244(0x32e)](_0x1ae962[_0x243244(0x4d3)]))throw new Error(_0x243244(0x61a));if(_0x1ae962[_0x243244(0x77a)]!==null&&_0x1ae962[_0x243244(0x77a)]!==Infinity&&(!Number[_0x243244(0x32e)](_0x1ae962[_0x243244(0x77a)])||_0x1ae962[_0x243244(0x77a)]<0x1))throw new Error('job.max_tries\x20must\x20be\x20int\x20>=\x201,\x20null\x20(unlimited)\x20or\x20Infinity');if(_0x1ae962['retry_delay']!=null&&(!Number[_0x243244(0x32e)](_0x1ae962[_0x243244(0x1e5)])||_0x1ae962[_0x243244(0x1e5)]<0x0))throw new Error(_0x243244(0x65d));if(_0x1ae962[_0x243244(0x352)]!=null&&(typeof _0x1ae962[_0x243244(0x352)]!==_0x243244(0x729)||_0x1ae962[_0x243244(0x352)]<0x1))throw new Error(_0x243244(0x239));if(_0x1ae962[_0x243244(0x7c1)]!=null&&typeof _0x1ae962[_0x243244(0x7c1)]!==_0x243244(0x4c1))throw new Error(_0x243244(0x2b4));if(_0x1ae962[_0x243244(0x220)]!=null&&(typeof _0x1ae962[_0x243244(0x220)]!=='number'||!Number[_0x243244(0x560)](_0x1ae962[_0x243244(0x220)])))throw new Error(_0x243244(0x75a));if(_0x1ae962[_0x243244(0x7dc)]!=null&&typeof _0x1ae962[_0x243244(0x7dc)]!==_0x243244(0x4c1))throw new Error(_0x243244(0x3b5));if(_0x1ae962[_0x243244(0x79a)]!=null&&(!Number[_0x243244(0x32e)](_0x1ae962[_0x243244(0x79a)])||_0x1ae962[_0x243244(0x79a)]<0x1))throw new Error(_0x243244(0x188));if(_0x1ae962[_0x243244(0x236)]!=null){if(!Array[_0x243244(0x4b6)](_0x1ae962[_0x243244(0x236)]))throw new Error(_0x243244(0x5a7));for(const _0x5742a2 of _0x1ae962['buckets']){if(!_0x5742a2||typeof _0x5742a2!==_0x243244(0x6f7))throw new Error(_0x243244(0x547));if(typeof _0x5742a2['id']!==_0x243244(0x4c1)||!_0x5742a2['id'][_0x243244(0x4ee)]())throw new Error(_0x243244(0x27e));if(!Number[_0x243244(0x32e)](_0x5742a2['tokens'])||_0x5742a2[_0x243244(0x319)]<0x1)throw new Error('job.buckets[].tokens\x20must\x20be\x20int\x20>=\x201');}}if(_0x1ae962['cron']!=null&&typeof _0x1ae962[_0x243244(0x210)]!==_0x243244(0x4c1))throw new Error(_0x243244(0x1db));if(_0x1ae962[_0x243244(0x370)]!=null&&typeof _0x1ae962[_0x243244(0x370)]!=='string')throw new Error(_0x243244(0x6db));if(!Array['isArray'](_0x1ae962[_0x243244(0x1a9)]))throw new Error('job.tags\x20must\x20be\x20array');if(_0x1ae962[_0x243244(0x766)]!=null&&typeof _0x1ae962['tag']!==_0x243244(0x4c1))throw new Error(_0x243244(0x84a));if(_0x1ae962[_0x243244(0x582)]!=null&&typeof _0x1ae962['status_code']!==_0x243244(0x4c1))throw new Error('job.status_code\x20must\x20be\x20string|null');if(_0x1ae962[_0x243244(0x83e)]!=null&&typeof _0x1ae962[_0x243244(0x83e)]!==_0x243244(0x4c1))throw new Error(_0x243244(0x636));if(_0x1ae962['error_stack']!=null&&typeof _0x1ae962[_0x243244(0x28d)]!==_0x243244(0x4c1))throw new Error(_0x243244(0x61d));for(const _0x2908ef of[_0x243244(0x779),_0x243244(0x52b)]){const _0x35193f=_0x1ae962[_0x2908ef];if(_0x35193f!=null&&(!Number[_0x243244(0x32e)](_0x35193f)||_0x35193f<0x0))throw new Error(_0x243244(0x565)+_0x2908ef+_0x243244(0x6e4));}_0x38408d(_0x1ae962[_0x243244(0x413)]);}function _0x5e3280(_0x2432f5){const _0x3266e3=_0x13968d;if(!_0x2fd01f(_0x2432f5))throw new Error(_0x3266e3(0x825));if(typeof _0x2432f5['id']!==_0x3266e3(0x4c1)||!_0x2432f5['id'][_0x3266e3(0x4ee)]())throw new Error(_0x3266e3(0x3a8));if(!Object[_0x3266e3(0x3b9)](_0x4f9ba7)['includes'](_0x2432f5[_0x3266e3(0x371)]))throw new Error(_0x3266e3(0x1c4)+_0x2432f5[_0x3266e3(0x371)]);if(_0x2432f5[_0x3266e3(0x5a8)]!=null&&(!Number['isInteger'](_0x2432f5['max_concurrency'])||_0x2432f5[_0x3266e3(0x5a8)]<0x1))throw new Error(_0x3266e3(0x2ab));if(_0x2432f5[_0x3266e3(0x6cc)]!=null){if(!_0x2fd01f(_0x2432f5[_0x3266e3(0x6cc)]))throw new Error(_0x3266e3(0x591));const _0x4cd398=_0x2432f5['defaults'];if(_0x4cd398[_0x3266e3(0x77a)]!=null&&(!Number[_0x3266e3(0x32e)](_0x4cd398[_0x3266e3(0x77a)])||_0x4cd398['max_tries']<0x1))throw new Error(_0x3266e3(0x17f));if(_0x4cd398[_0x3266e3(0x1e5)]!=null&&(!Number[_0x3266e3(0x32e)](_0x4cd398['retry_delay'])||_0x4cd398['retry_delay']<0x0))throw new Error(_0x3266e3(0x7b4));if(_0x4cd398['backoff_multiplier']!=null&&(typeof _0x4cd398['backoff_multiplier']!==_0x3266e3(0x729)||_0x4cd398[_0x3266e3(0x352)]<0x1))throw new Error(_0x3266e3(0x5f2));if(_0x4cd398[_0x3266e3(0x4d3)]!=null&&!Number[_0x3266e3(0x32e)](_0x4cd398[_0x3266e3(0x4d3)]))throw new Error(_0x3266e3(0x29f));if(_0x4cd398[_0x3266e3(0x192)]!=null&&(!Number[_0x3266e3(0x32e)](_0x4cd398[_0x3266e3(0x192)])||_0x4cd398[_0x3266e3(0x192)]<0x0))throw new Error('job_type.defaults.ttl\x20must\x20be\x20int\x20>=\x200\x20or\x20null');for(const _0x279107 of['done_ttl',_0x3266e3(0x52b)]){if(_0x4cd398[_0x279107]!=null&&(!Number[_0x3266e3(0x32e)](_0x4cd398[_0x279107])||_0x4cd398[_0x279107]<0x0))throw new Error(_0x3266e3(0x5d8)+_0x279107+'\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer');}if(_0x4cd398['buckets']!=null&&!Array[_0x3266e3(0x4b6)](_0x4cd398['buckets']))throw new Error(_0x3266e3(0x763));_0x38408d(_0x4cd398[_0x3266e3(0x413)]);}if(_0x2432f5[_0x3266e3(0x204)]!=null){if(!_0x2fd01f(_0x2432f5[_0x3266e3(0x204)]))throw new Error('job_type.payload_schema\x20must\x20be\x20object|null');if(!_0x2fd01f(_0x2432f5['payload_schema'][_0x3266e3(0x56a)]))throw new Error(_0x3266e3(0x191));if(typeof _0x2432f5[_0x3266e3(0x204)]['enforce']!==_0x3266e3(0x3be))throw new Error('job_type.payload_schema.enforce\x20must\x20be\x20boolean');}for(const _0x357691 of['created_at',_0x3266e3(0x449)]){if(typeof _0x2432f5[_0x357691]!=='number'||!Number[_0x3266e3(0x560)](_0x2432f5[_0x357691]))throw new Error('job_type.'+_0x357691+_0x3266e3(0x23c));}}function _0x4049b8(_0x355215){const _0x1857cb=_0x13968d;if(!_0x2fd01f(_0x355215))throw new Error('bucket\x20must\x20be\x20object');if(typeof _0x355215['id']!==_0x1857cb(0x4c1)||!_0x355215['id'][_0x1857cb(0x4ee)]())throw new Error(_0x1857cb(0x844));if(!Number[_0x1857cb(0x32e)](_0x355215[_0x1857cb(0x319)])||_0x355215[_0x1857cb(0x319)]<0x0)throw new Error('bucket.tokens\x20must\x20be\x20int\x20>=\x200');if(!Number[_0x1857cb(0x32e)](_0x355215[_0x1857cb(0x148)])||_0x355215[_0x1857cb(0x148)]<0x0)throw new Error(_0x1857cb(0x5bd));if(_0x355215[_0x1857cb(0x319)]>_0x355215[_0x1857cb(0x148)])throw new Error(_0x1857cb(0x292));if(!Number[_0x1857cb(0x32e)](_0x355215[_0x1857cb(0x80a)])||_0x355215[_0x1857cb(0x80a)]<0x0)throw new Error(_0x1857cb(0x190));if(!Number[_0x1857cb(0x32e)](_0x355215[_0x1857cb(0x438)])||_0x355215['refill_every']<0x0)throw new Error(_0x1857cb(0x2ff));if(typeof _0x355215[_0x1857cb(0x349)]!==_0x1857cb(0x729)||!Number['isFinite'](_0x355215[_0x1857cb(0x349)]))throw new Error(_0x1857cb(0x843));}return okdbQueueValidate={'STATUS':_0x5669ce,'JOB_TYPE_STATUS':_0x4f9ba7,'QUEUE_EVENTS':_0x4e1929,'LOG_LEVELS':_0x4d979f,'LOG_CAP_MIN':_0x3251c4,'LOG_CAP_MAX':_0x53f5ab,'clampInt':_0x37ca5a,'asNullableString':_0x1bf83c,'normalizeResult':_0x228b38,'normalizeTags':_0x11d767,'normalizeBucket':_0x3578c3,'normalizeBuckets':_0xba4140,'normalizeLogEntry':_0x1eecc0,'validateJobShape':_0x441ea3,'validateJobTypeShape':_0x5e3280,'validateBucketShape':_0x4049b8},okdbQueueValidate;}var okdbTimers,hasRequiredOkdbTimers;function requireOkdbTimers(){if(hasRequiredOkdbTimers)return okdbTimers;hasRequiredOkdbTimers=0x1;const _0x53285c=0x2**0x1f-0x1;function _0x4e3aec(_0x287f92){if(!(_0x287f92>0x0))return 0x0;return _0x287f92>_0x53285c?_0x53285c:_0x287f92;}function _0x11eaeb(_0x1e4f6d){return _0x1e4f6d===Infinity;}return okdbTimers={'MAX_TIMER_DELAY':_0x53285c,'clampTimerDelay':_0x4e3aec,'isNeverDelay':_0x11eaeb},okdbTimers;}var okdbChangefeed,hasRequiredOkdbChangefeed;function requireOkdbChangefeed(){const _0x3777e8=_0x1ade1a;if(hasRequiredOkdbChangefeed)return okdbChangefeed;hasRequiredOkdbChangefeed=0x1;const _0x55922c=require$$0$6,{clampTimerDelay:_0xc4146e}=requireOkdbTimers(),{EVENTS:_0x2a24d6,CHANGE_ACTIONS:_0xa089cf}=requireOkdbEnums(),{LOOP:_0x262288}=requireOkdbLoopMonitor(),_0x31343b=Number(process.env.OKDB_CHANGEFEED_QUANTUM)||0x3e8,_0x302b5d=0x5,_0x2ec494=0x2710;class _0x1587c3 extends _0x55922c{constructor(_0x36d267,_0x5bbb38={}){const _0x5b0d35=_0x3f13;super(),this[_0x5b0d35(0x555)]=_0x36d267,this[_0x5b0d35(0x523)]=_0x5bbb38['quantum']??_0x31343b,this[_0x5b0d35(0x2c3)]=_0x5bbb38[_0x5b0d35(0x6ab)]??_0x302b5d,this[_0x5b0d35(0x240)]=_0x5bbb38[_0x5b0d35(0x33a)]??_0x2ec494,this[_0x5b0d35(0x33e)]=![],this['_cursors']=new Map(),this[_0x5b0d35(0x656)]=new Map(),this['_pending']=new Map(),this['_flushTimer']=null,this[_0x5b0d35(0x2d2)]=![],this[_0x5b0d35(0x5b1)]=new Set(),this['_pendingLocal']=new Set(),this[_0x5b0d35(0x42b)]=_0x59c308=>this[_0x5b0d35(0x23f)](_0x59c308),this[_0x5b0d35(0x31a)]=_0x54c57a=>this['_handlePending'](_0x54c57a),this['_onPoke']=_0x38a403=>this['_handlePoke'](_0x38a403),this[_0x5b0d35(0x247)]=()=>this[_0x5b0d35(0x851)]();}['start'](){const _0x421fe9=_0x3f13;if(this['_started'])return;this[_0x421fe9(0x33e)]=!![];for(const [_0x41c36c,_0x5ee9cb]of this[_0x421fe9(0x555)][_0x421fe9(0x2b2)]){if(_0x41c36c[_0x421fe9(0x70d)]('~'))continue;try{_0x5ee9cb[_0x421fe9(0x6a4)]();}catch{}}for(const [_0x330071,_0x12ccc1]of this[_0x421fe9(0x555)]['_envs']){if(_0x330071[_0x421fe9(0x70d)]('~'))continue;try{this[_0x421fe9(0x656)][_0x421fe9(0x488)](_0x330071,_0x12ccc1[_0x421fe9(0x353)]()||0x0);}catch{}}const {events:_0x5585cd}=this[_0x421fe9(0x555)];_0x5585cd['on'](_0x2a24d6[_0x421fe9(0x6ef)],this[_0x421fe9(0x31a)]),_0x5585cd['on'](_0x2a24d6[_0x421fe9(0x412)],this[_0x421fe9(0x42b)]),_0x5585cd['on'](_0x2a24d6[_0x421fe9(0x3ec)],this[_0x421fe9(0x42b)]),_0x5585cd['on'](_0x2a24d6[_0x421fe9(0x798)],this[_0x421fe9(0x42b)]),_0x5585cd['on'](_0x2a24d6[_0x421fe9(0x283)],this[_0x421fe9(0x31d)]),_0x5585cd[_0x421fe9(0x38c)](_0x2a24d6[_0x421fe9(0x87c)],this[_0x421fe9(0x247)]);}[_0x3777e8(0x851)](){const _0x35cbc4=_0x3777e8;if(!this[_0x35cbc4(0x33e)])return;this[_0x35cbc4(0x33e)]=![];const {events:_0x27eef9}=this[_0x35cbc4(0x555)];_0x27eef9[_0x35cbc4(0x5c5)](_0x2a24d6[_0x35cbc4(0x6ef)],this['_onPending']),_0x27eef9[_0x35cbc4(0x5c5)](_0x2a24d6[_0x35cbc4(0x412)],this['_onItem']),_0x27eef9[_0x35cbc4(0x5c5)](_0x2a24d6[_0x35cbc4(0x3ec)],this[_0x35cbc4(0x42b)]),_0x27eef9[_0x35cbc4(0x5c5)](_0x2a24d6['ITEM_REMOVE'],this[_0x35cbc4(0x42b)]),_0x27eef9[_0x35cbc4(0x5c5)](_0x2a24d6[_0x35cbc4(0x283)],this['_onPoke']);try{_0x27eef9[_0x35cbc4(0x5c5)](_0x2a24d6[_0x35cbc4(0x87c)],this[_0x35cbc4(0x247)]);}catch{}this[_0x35cbc4(0x76a)]&&(clearTimeout(this['_flushTimer']),this['_flushTimer']=null),this[_0x35cbc4(0x37a)][_0x35cbc4(0x400)](),this[_0x35cbc4(0x532)][_0x35cbc4(0x400)](),this['_baselines'][_0x35cbc4(0x400)](),this['_seen'][_0x35cbc4(0x400)](),this['_pendingLocal'][_0x35cbc4(0x400)]();}[_0x3777e8(0x661)](_0x21e1ee,_0x12deff,_0x33e9bf,_0x40160d){return _0x21e1ee+'\x00'+_0x12deff+'\x00'+_0x33e9bf+'\x00'+_0x40160d;}[_0x3777e8(0x553)](_0x2b87d3,_0x363408,_0x2b8b70,_0x1d54fc){const _0x37ed2a=_0x3777e8,_0x5d9d9c=this[_0x37ed2a(0x661)](_0x2b87d3,_0x363408,_0x2b8b70,_0x1d54fc);if(this[_0x37ed2a(0x5b1)][_0x37ed2a(0x4a8)](_0x5d9d9c))return![];this['_seen']['add'](_0x5d9d9c);if(this['_seen'][_0x37ed2a(0x1d3)]>this[_0x37ed2a(0x240)]){const _0x14cbcf=this[_0x37ed2a(0x5b1)]['values']()[_0x37ed2a(0x67f)]()[_0x37ed2a(0x7fd)];this[_0x37ed2a(0x5b1)][_0x37ed2a(0x727)](_0x14cbcf);}return!![];}['_handlePending'](_0x7c0030){const _0x3ee9c9=_0x3777e8;if(!this[_0x3ee9c9(0x33e)]||!_0x7c0030)return;const {env:_0x46a86e,type:_0x17f23f,key:_0x12d406,clock:_0x442eef}=_0x7c0030;if(_0x46a86e==null||_0x17f23f==null||_0x12d406==null)return;if(typeof _0x46a86e===_0x3ee9c9(0x4c1)&&_0x46a86e[_0x3ee9c9(0x70d)]('~'))return;if(typeof _0x17f23f==='string'&&_0x17f23f[_0x3ee9c9(0x70d)]('~'))return;this['_pendingLocal'][_0x3ee9c9(0x76e)](this[_0x3ee9c9(0x661)](_0x46a86e,_0x17f23f,_0x12d406,_0x442eef)),this[_0x3ee9c9(0x883)][_0x3ee9c9(0x1d3)]>this[_0x3ee9c9(0x240)]&&this[_0x3ee9c9(0x883)][_0x3ee9c9(0x727)](this['_pendingLocal']['values']()[_0x3ee9c9(0x67f)]()[_0x3ee9c9(0x7fd)]);}[_0x3777e8(0x23f)](_0x4bb30c){const _0x145b3b=_0x3777e8;if(!this[_0x145b3b(0x33e)]||!_0x4bb30c)return;const {env:_0x5918ba,type:_0x38a99f,key:_0x4b09ba,clock:_0x4ab57c,origin:_0x7ef628,action:_0xd01155,newValue:_0x29f7b5,oldValue:_0x34388e}=_0x4bb30c;if(_0x5918ba==null||_0x38a99f==null||_0x4b09ba==null)return;if(typeof _0x5918ba===_0x145b3b(0x4c1)&&_0x5918ba[_0x145b3b(0x70d)]('~'))return;if(typeof _0x38a99f===_0x145b3b(0x4c1)&&_0x38a99f[_0x145b3b(0x70d)]('~'))return;this['_pendingLocal'][_0x145b3b(0x727)](this[_0x145b3b(0x661)](_0x5918ba,_0x38a99f,_0x4b09ba,_0x4ab57c));if(!this[_0x145b3b(0x553)](_0x5918ba,_0x38a99f,_0x4b09ba,_0x4ab57c))return;const _0x5ab37f=_0xd01155===_0xa089cf[_0x145b3b(0x383)]?_0x145b3b(0x6a9):_0x145b3b(0x7bc);this[_0x145b3b(0x7bb)](_0x145b3b(0x809),{'env':_0x5918ba,'type':_0x38a99f,'key':_0x4b09ba,'op':_0x5ab37f,'clock':_0x4ab57c,'origin':_0x7ef628,'value':_0x5ab37f===_0x145b3b(0x6a9)?null:_0x29f7b5,'prevValue':_0x34388e});}['_handlePoke'](_0x58f3ee){const _0x4aaa98=_0x3777e8;if(!this[_0x4aaa98(0x33e)])return;if(!_0x58f3ee||typeof _0x58f3ee['env']!==_0x4aaa98(0x4c1)||typeof _0x58f3ee['type']!==_0x4aaa98(0x4c1))return;const {env:_0x5948d,type:_0x4b8da8}=_0x58f3ee;if(_0x5948d[_0x4aaa98(0x70d)]('~')||_0x4b8da8[_0x4aaa98(0x70d)]('~'))return;this[_0x4aaa98(0x37a)][_0x4aaa98(0x488)](_0x5948d+'\x00'+_0x4b8da8,{'env':_0x5948d,'type':_0x4b8da8}),this[_0x4aaa98(0x862)]();}[_0x3777e8(0x862)](){const _0x44a253=_0x3777e8;if(this[_0x44a253(0x76a)])return;const _0x588935=()=>{const _0x3e8be4=_0x44a253;this[_0x3e8be4(0x76a)]=null,this[_0x3e8be4(0x687)]()['catch'](()=>{});};this[_0x44a253(0x76a)]=setTimeout(_0x588935,_0xc4146e(this['_flushDebounce']));}async[_0x3777e8(0x687)](){const _0x156dca=_0x3777e8;if(this[_0x156dca(0x2d2)]){this[_0x156dca(0x862)]();return;}this[_0x156dca(0x2d2)]=!![];try{const _0x3542a2=[...this[_0x156dca(0x37a)][_0x156dca(0x3b9)]()];this[_0x156dca(0x37a)][_0x156dca(0x400)]();let _0x8ef89e=![];for(const {env:_0x48fa7b,type:_0x23d8b6}of _0x3542a2){try{const _0x291eca=await this[_0x156dca(0x3e6)](_0x48fa7b,_0x23d8b6);if(_0x291eca)_0x8ef89e=!![];}catch{this['_pending'][_0x156dca(0x488)](_0x48fa7b+'\x00'+_0x23d8b6,{'env':_0x48fa7b,'type':_0x23d8b6}),_0x8ef89e=!![];}}if(_0x8ef89e||this[_0x156dca(0x37a)]['size']>0x0)this[_0x156dca(0x862)]();}finally{this[_0x156dca(0x2d2)]=![];}}async[_0x3777e8(0x3e6)](_0x3bed6e,_0x50d408){const _0x10e7a3=_0x3777e8,_0x514463=await this[_0x10e7a3(0x555)]['_openEnvLazy'](_0x3bed6e),_0x11018e=_0x3bed6e+'\x00'+_0x50d408;!this[_0x10e7a3(0x532)]['has'](_0x11018e)&&(!this['_baselines'][_0x10e7a3(0x4a8)](_0x3bed6e)&&(_0x514463['_enableChangelog'](),this[_0x10e7a3(0x656)][_0x10e7a3(0x488)](_0x3bed6e,_0x514463['getClock']()||0x0)),this['_cursors'][_0x10e7a3(0x488)](_0x11018e,this['_baselines'][_0x10e7a3(0x616)](_0x3bed6e)));const _0x3025ac=this['_cursors'][_0x10e7a3(0x616)](_0x11018e),_0x1eeb94=_0x514463['getClock'](_0x50d408)||0x0;if(_0x1eeb94<=_0x3025ac)return![];const _0xc4b0e3=_0x3025ac+this[_0x10e7a3(0x523)],_0x514b99=Math[_0x10e7a3(0x5b5)](_0x1eeb94,_0xc4b0e3),_0x424be7=_0x262288[_0x10e7a3(0x25c)]?_0x262288[_0x10e7a3(0x38b)]():0x0,_0x481ea9=Array[_0x10e7a3(0x5f7)](_0x514463['getChanges'](_0x50d408,_0x3025ac+0x1,_0x514b99));let _0x5c0638=_0x3025ac;for(const _0x4359b9 of _0x481ea9){const {clock:_0x20db54,key:_0x5bd9fd,action:_0x4357f9,origin:_0x4a907b}=_0x4359b9;if(_0x20db54>_0x5c0638)_0x5c0638=_0x20db54;if(_0x5bd9fd==null)continue;if(this['_pendingLocal'][_0x10e7a3(0x4a8)](this[_0x10e7a3(0x661)](_0x3bed6e,_0x50d408,_0x5bd9fd,_0x20db54)))continue;if(!this[_0x10e7a3(0x553)](_0x3bed6e,_0x50d408,_0x5bd9fd,_0x20db54))continue;let _0x56a37d,_0x56eb91;if(_0x4357f9===_0xa089cf['REMOVE'])_0x56a37d='remove',_0x56eb91=null;else{const _0x4ae1ce=_0x514463[_0x10e7a3(0x616)](_0x50d408,_0x5bd9fd);_0x4ae1ce==null?(_0x56a37d=_0x10e7a3(0x6a9),_0x56eb91=null):(_0x56a37d=_0x10e7a3(0x7bc),_0x56eb91=_0x4ae1ce);}this[_0x10e7a3(0x7bb)](_0x10e7a3(0x809),{'env':_0x3bed6e,'type':_0x50d408,'key':_0x5bd9fd,'op':_0x56a37d,'clock':_0x20db54,'origin':_0x4a907b,'value':_0x56eb91});}if(_0x262288[_0x10e7a3(0x25c)])_0x262288[_0x10e7a3(0x426)](_0x10e7a3(0x49b)+_0x3bed6e+':'+_0x50d408,_0x262288[_0x10e7a3(0x38b)]()-_0x424be7,'n='+_0x481ea9[_0x10e7a3(0x479)]);return this[_0x10e7a3(0x532)]['set'](_0x11018e,Math[_0x10e7a3(0x3c5)](_0x5c0638,_0x514b99)),_0x514463[_0x10e7a3(0x353)](_0x50d408)>_0x514b99;}[_0x3777e8(0x371)](){const _0x310f59=_0x3777e8;return{'started':this[_0x310f59(0x33e)],'quantum':this[_0x310f59(0x523)],'flushDebounce':this[_0x310f59(0x2c3)],'cursors':Object[_0x310f59(0x237)]([...this[_0x310f59(0x532)][_0x310f59(0x325)]()][_0x310f59(0x6f2)](([_0x3e9406,_0x89addd])=>[_0x3e9406[_0x310f59(0x2a6)]('\x00',':'),_0x89addd])),'pending':this['_pending'][_0x310f59(0x1d3)],'seen':this[_0x310f59(0x5b1)][_0x310f59(0x1d3)]};}}return _0x1587c3[_0x3777e8(0x5ce)]=_0x31343b,okdbChangefeed={'OKDBChangefeed':_0x1587c3},okdbChangefeed;}var okdbRelay,hasRequiredOkdbRelay;function requireOkdbRelay(){const _0x3eca4d=_0x1ade1a;if(hasRequiredOkdbRelay)return okdbRelay;hasRequiredOkdbRelay=0x1;const {EVENTS:_0x190f08}=requireOkdbEnums(),_0x3b10c8=new Set([_0x190f08[_0x3eca4d(0x412)],_0x190f08[_0x3eca4d(0x3ec)],_0x190f08[_0x3eca4d(0x798)]]),{ENGINE_EVENTS:_0x4090b1}=requireOkdbEnginesEnums(),{EMBEDDINGS_EVENTS:_0x45fa99}=requireEnums(),{QUEUE_EVENTS:_0x5c9494}=requireOkdbQueueValidate(),_0x453fd6=Object['values'](_0x190f08),_0x534622=Object[_0x3eca4d(0x3b9)](_0x4090b1)['map'](_0x2fdbb6=>_0x3eca4d(0x662)+_0x2fdbb6),_0xa0f6fb=Object[_0x3eca4d(0x3b9)](_0x45fa99),_0x446d6b=Object[_0x3eca4d(0x3b9)](_0x5c9494),_0x355a5b=[_0x3eca4d(0x6e7),'processor:progress',_0x3eca4d(0x4d4),'processor:paused',_0x3eca4d(0x3f6),_0x3eca4d(0x4f1)],_0x1f3d76=[..._0x453fd6,..._0x534622,..._0xa0f6fb,..._0x446d6b,..._0x355a5b,_0x3eca4d(0x629)],_0x3cf84f=new Set(_0x1f3d76),_0x7010f2=new Set([_0x190f08['ITEM_CREATE'],_0x190f08[_0x3eca4d(0x3ec)],_0x190f08[_0x3eca4d(0x798)],_0x190f08[_0x3eca4d(0x542)],_0x190f08['TXN_END'],_0x190f08['TXN_ROLLBACK'],_0x190f08['SYSTEM_CLOCK_CHANGE'],_0x190f08['INDEX_PROGRESS'],_0x45fa99[_0x3eca4d(0x3e3)],_0x45fa99[_0x3eca4d(0x4a1)],_0x45fa99[_0x3eca4d(0x180)],_0x45fa99[_0x3eca4d(0x2ad)],_0x3eca4d(0x689)]),_0x5e3db0=_0x1f3d76[_0x3eca4d(0x658)](_0x6e3514=>_0x6e3514===_0x3eca4d(0x629)||!_0x7010f2[_0x3eca4d(0x4a8)](_0x6e3514)),_0x56d35c=0x14,_0x2a43cf=0xc8;class _0x150118{constructor(_0x381552,_0x2faa2c={}){const _0x4e9876=_0x3eca4d;this[_0x4e9876(0x555)]=_0x381552,this[_0x4e9876(0x694)]=_0x2faa2c['maxConnections']??_0x56d35c,this[_0x4e9876(0x5df)]=_0x2faa2c[_0x4e9876(0x334)]??_0x2a43cf,this[_0x4e9876(0x75e)]=new Set(),this[_0x4e9876(0x620)]=[],this[_0x4e9876(0x2bd)]=[],this[_0x4e9876(0x527)]=null,this[_0x4e9876(0x750)]=![],this[_0x4e9876(0x502)]=null,this[_0x4e9876(0x233)]=null;}[_0x3eca4d(0x323)](){const _0x3b3ba9=_0x3eca4d;if(this['_attached'])return;this['_attached']=!![];const {okdb:_0x3dfc91}=this;this[_0x3b3ba9(0x527)]=_0x3dfc91[_0x3b3ba9(0x629)][_0x3b3ba9(0x323)](_0x4864e8=>this[_0x3b3ba9(0x69d)](_0x3b3ba9(0x629),_0x4864e8));for(const _0x5ad7f7 of _0x1f3d76){if(_0x5ad7f7===_0x3b3ba9(0x629))continue;const _0x43193e=_0x3b10c8[_0x3b3ba9(0x4a8)](_0x5ad7f7),_0x4ce476=_0x2999cd=>{const _0x3d3079=_0x3b3ba9;if(_0x43193e&&this[_0x3d3079(0x502)])return;this[_0x3d3079(0x69d)](_0x5ad7f7,_0x2999cd??{});};_0x3dfc91[_0x3b3ba9(0x425)]['on'](_0x5ad7f7,_0x4ce476),this[_0x3b3ba9(0x2bd)][_0x3b3ba9(0x2e6)]({'event':_0x5ad7f7,'handler':_0x4ce476});}this[_0x3b3ba9(0x247)]=()=>this[_0x3b3ba9(0x5eb)](),_0x3dfc91[_0x3b3ba9(0x425)][_0x3b3ba9(0x38c)](_0x190f08[_0x3b3ba9(0x87c)],this[_0x3b3ba9(0x247)]);}['detach'](){const _0x5e4afe=_0x3eca4d;if(!this[_0x5e4afe(0x750)])return;if(this[_0x5e4afe(0x247)]){try{this[_0x5e4afe(0x555)]['events'][_0x5e4afe(0x5c5)](_0x190f08['SYSTEM_STOPPED'],this[_0x5e4afe(0x247)]);}catch{}this[_0x5e4afe(0x247)]=null;}this[_0x5e4afe(0x527)]?.(),this[_0x5e4afe(0x527)]=null;for(const {event:_0x5a79b3,handler:_0xb9efa3}of this[_0x5e4afe(0x2bd)]){try{this[_0x5e4afe(0x555)][_0x5e4afe(0x425)]['off'](_0x5a79b3,_0xb9efa3);}catch{}}this[_0x5e4afe(0x2bd)]=[];for(const _0x53f481 of this[_0x5e4afe(0x75e)]){try{_0x53f481[_0x5e4afe(0x469)]?.();}catch{}}this[_0x5e4afe(0x75e)]['clear'](),this[_0x5e4afe(0x173)](),this[_0x5e4afe(0x750)]=![];}[_0x3eca4d(0x738)](_0x4babce){const _0x5cac51=_0x3eca4d;if(!_0x4babce||this['_feed']===_0x4babce)return;this[_0x5cac51(0x173)](),this['_feed']=_0x4babce,this[_0x5cac51(0x233)]=_0x221af1=>{const _0x1f98b1=_0x5cac51;if(!_0x221af1)return;const _0x2233a9=_0x221af1['op']===_0x1f98b1(0x6a9)?_0x190f08['ITEM_REMOVE']:_0x190f08[_0x1f98b1(0x3ec)];this['_push'](_0x2233a9,_0x221af1);},_0x4babce['on'](_0x5cac51(0x809),this[_0x5cac51(0x233)]);}[_0x3eca4d(0x173)](){const _0x441829=_0x3eca4d;if(this[_0x441829(0x502)]&&this[_0x441829(0x233)])try{this[_0x441829(0x502)][_0x441829(0x5c5)]('change',this['_onFeedChange']);}catch{}this[_0x441829(0x502)]=null,this[_0x441829(0x233)]=null;}[_0x3eca4d(0x7d2)](_0x3695ec,_0x595d50){const _0xb1bc04=_0x3eca4d;if(!_0x3cf84f['has'](_0x3695ec))return;this[_0xb1bc04(0x69d)](_0x3695ec,_0x595d50??{});}[_0x3eca4d(0x1aa)](_0x477ece,_0x39c36f,_0x5942f1){const _0x4935fe=_0x3eca4d;if(this[_0x4935fe(0x75e)][_0x4935fe(0x1d3)]>=this[_0x4935fe(0x694)])return _0x39c36f(_0x4935fe(0x3fc),{'message':_0x4935fe(0x1a2),'code':_0x4935fe(0x374)}),()=>{};const _0x142838=this['_resolveFilter'](_0x477ece),_0xa2acfa={'send':_0x39c36f,'filter':_0x142838,'close':_0x5942f1??null};this[_0x4935fe(0x75e)][_0x4935fe(0x76e)](_0xa2acfa);for(const {event:_0x5c6d07,data:_0x37a5b9}of this[_0x4935fe(0x620)]){if(_0x142838[_0x4935fe(0x4a8)](_0x5c6d07))try{_0x39c36f(_0x5c6d07,_0x37a5b9);}catch{}}return()=>this[_0x4935fe(0x75e)][_0x4935fe(0x727)](_0xa2acfa);}[_0x3eca4d(0x18a)](){const _0x412478=_0x3eca4d;if(this[_0x412478(0x502)])return this[_0x412478(0x502)];const {OKDBChangefeed:_0x2b082e}=requireOkdbChangefeed(),_0x4af907=new _0x2b082e(this['okdb']);_0x4af907[_0x412478(0x525)](),this[_0x412478(0x738)](_0x4af907);if(this['okdb']&&!this[_0x412478(0x555)][_0x412478(0x3e9)])this[_0x412478(0x555)][_0x412478(0x3e9)]=_0x4af907;return this[_0x412478(0x502)];}get[_0x3eca4d(0x593)](){const _0x2896c6=_0x3eca4d;return this[_0x2896c6(0x75e)][_0x2896c6(0x1d3)];}[_0x3eca4d(0x5fc)](){const _0x2efb63=_0x3eca4d;return{'connections':this[_0x2efb63(0x593)],'bufferSize':this[_0x2efb63(0x620)][_0x2efb63(0x479)],'attached':this[_0x2efb63(0x750)],'allEvents':_0x1f3d76[_0x2efb63(0x479)],'defaultEvents':_0x5e3db0['length']};}static get[_0x3eca4d(0x621)](){return _0x1f3d76;}static get[_0x3eca4d(0x44a)](){return _0x5e3db0;}static get[_0x3eca4d(0x285)](){return[..._0x7010f2];}[_0x3eca4d(0x6be)](_0x5f56ad){const _0x302126=_0x3eca4d;if(!_0x5f56ad||!_0x5f56ad[_0x302126(0x479)])return new Set(_0x5e3db0);const _0x5c0f32=_0x5f56ad[_0x302126(0x658)](_0x19c9fe=>_0x3cf84f[_0x302126(0x4a8)](_0x19c9fe));return new Set(_0x5c0f32['length']?_0x5c0f32:_0x5e3db0);}['_push'](_0x323d14,_0x4ade30){const _0x31d66d=_0x3eca4d,_0x1d7228={..._0x4ade30,'_ts':_0x4ade30?.['_ts']??_0x4ade30?.['ts']??Date[_0x31d66d(0x38b)]()};this[_0x31d66d(0x620)][_0x31d66d(0x2e6)]({'event':_0x323d14,'data':_0x1d7228});if(this['_buffer'][_0x31d66d(0x479)]>this[_0x31d66d(0x5df)])this['_buffer'][_0x31d66d(0x138)]();for(const _0x36e719 of this['_connections']){if(_0x36e719['filter'][_0x31d66d(0x4a8)](_0x323d14))try{_0x36e719[_0x31d66d(0x74a)](_0x323d14,_0x1d7228);}catch{}}}}return okdbRelay=_0x150118,okdbRelay;}var hasRequiredLib;function requireLib(){const _0x1c7c73=_0x1ade1a;if(hasRequiredLib)return lib[_0x1c7c73(0x3bf)];return hasRequiredLib=0x1,function(_0x56caa7){const _0x3c4e42=_0x1c7c73,_0x5e7ea1=require$$0$6,{load:_0x587891}=require$$1$1,_0x280c32=requireBridge(),_0x2936d0=requireWritebatch(),{Pumper:_0x5dfa1c}=requirePump(),{OKDBEnv:_0x151b4f,HIGH_SENTINEL:_0x62c0ef}=requireEnv(),{reclass:_0x456613,NotImplementedNative:_0x414ff9,OKDBError:_0x43afb7,optionsArg:_0x2d0ef4,invalidArgument:_0x30194e}=requireErrors(),{notImplemented:_0x55db66}=requireUnsupported(),{OKDBHttp:_0x1b9806}=requireHttp(),{OKDBFts:_0x181d4e}=requireFts(),{OKDBEmbeddings:_0x5c9a70}=requireEmbeddings(),{OKDBAuth:_0x355f33}=requireAuth(),{OKDBSync:_0x501da8}=requireSync(),{OKDBMigrate:_0x11fa71}=requireMigrate(),{OKDBFunctions:_0x2aff8b}=requireFunctions(),{OKDBMcp:_0x427025}=requireMcp(),{OKDBEngines:_0x3e2309,OKDBPipelines:_0x64ade2}=requireEngines(),{makeMeta:_0xa2878a,makeLicenses:_0x5e4bf2,makeLicenseChecker:_0x17b9f2,makeProcesses:_0x5f3c06}=requireSys();let _0x1ac1e2=null;function _0x57ab5a(_0x2db548){const _0xbf094e=_0x3f13;if(!_0x1ac1e2){const {Unpackr:_0x388342}=require$$18;_0x1ac1e2=new _0x388342({'useRecords':![],'mapsAsObjects':!![],'copyBuffers':!![]});}return _0x1ac1e2[_0xbf094e(0x7de)](_0x2db548);}let _0x248035=null;function _0x2b9a2f(_0x23af4b,_0x3756b4){const _0x534765=_0x3f13;if(!_0x248035){const {Unpackr:_0x21aeb2}=require$$18;_0x248035=new _0x21aeb2({'copyBuffers':!![]});}return _0x248035[_0x534765(0x7de)](_0x23af4b,_0x3756b4);}const {encodeKey:_0x7a4ba7,KEY_BUF_SIZE:_0x3ee727,NO_FAST:_0x4d030e}=requireKeyenc(),_0x5e72c1=0x40*0x400,_0x4bc92d=0x4*0x400*0x400;function _0x15b420(_0x2ae398,_0x4dd94c){const _0x5d36d4=_0x3f13,_0xe0d835=_0x2ae398[0x2],_0x46d3ce=_0xe0d835?(_0x2ae398[_0x5d36d4(0x479)]-0x3)/Math[_0x5d36d4(0x361)](_0xe0d835):0x0,_0x3d8609=new Array(_0x46d3ce);let _0x1f3163=0x3;if(_0xe0d835===0x2){for(let _0x533034=0x0;_0x533034<_0x46d3ce;_0x533034++,_0x1f3163+=0x2)_0x3d8609[_0x533034]={'key':_0x2ae398[_0x1f3163],'value':_0x2ae398[_0x1f3163+0x1]};}else{if(_0xe0d835===0x3){for(let _0x4da7d0=0x0;_0x4da7d0<_0x46d3ce;_0x4da7d0++,_0x1f3163+=0x3)_0x3d8609[_0x4da7d0]={'key':_0x2ae398[_0x1f3163],'value':_0x2ae398[_0x1f3163+0x1],'version':_0x2ae398[_0x1f3163+0x2]};}else{if(_0xe0d835===-0x2){for(let _0x4c6f7c=0x0;_0x4c6f7c<_0x46d3ce;_0x4c6f7c++,_0x1f3163+=0x2)_0x3d8609[_0x4c6f7c]={'clock':_0x2ae398[_0x1f3163],..._0x2ae398[_0x1f3163+0x1]};}else{if(_0xe0d835===0x4){for(let _0x38dd27=0x0;_0x38dd27<_0x46d3ce;_0x38dd27++,_0x1f3163+=0x4)_0x3d8609[_0x38dd27]={'key':_0x2ae398[_0x1f3163],'value':_0x2ae398[_0x1f3163+0x1],'version':_0x2ae398[_0x1f3163+0x2],'indexKey':_0x2ae398[_0x1f3163+0x3]};}else{if(_0x46d3ce)throw new Error('callRows:\x20unexpected\x20row\x20stride\x20'+_0xe0d835);}}}}return _0x4dd94c?[_0x2ae398[0x0],_0x3d8609,_0x2ae398[0x1]]:_0x3d8609;}let _0x110a56=null;function _0x19860a(_0x4ed893,_0x332b27,_0x4a14aa){const _0x5d6aa9=_0x3f13;if(!_0x110a56)_0x110a56=requireDist()[_0x5d6aa9(0x822)];const _0x43914b=new DataView(_0x4ed893[_0x5d6aa9(0x55c)],_0x4ed893[_0x5d6aa9(0x4d9)],_0x332b27),_0x267a00=_0x43914b[_0x5d6aa9(0x647)](0x10,!![]),_0x331bbb=new Array(_0x267a00);let _0x380531=0x14;for(let _0x18700e=0x0;_0x18700e<_0x267a00;_0x18700e++){const _0x4d27b6=_0x4ed893[_0x380531]|_0x4ed893[_0x380531+0x1]<<0x8;_0x380531+=0x2,_0x331bbb[_0x18700e]=_0x110a56(_0x4ed893,_0x380531,_0x380531+_0x4d27b6),_0x380531+=_0x4d27b6;}return _0x4a14aa?[_0x43914b[_0x5d6aa9(0x6ee)](0x0,!![]),_0x331bbb,_0x43914b[_0x5d6aa9(0x6ee)](0x8,!![])]:_0x331bbb;}const _0x23da5a=requireOkdbLogger(),_0x2836bc=requireOkdbPlugins(),{OKDB_STATE:_0x1bf51b,EVENTS:_0x135095}=requireOkdbEnums(),_0x4c6532=requireStatics();let _0x1da3f6=null,_0x65f908=![],_0x2727c4=0x1;const _0x2452cf=new Map(),_0x201764=new Set(['FIELD_RESOLVER_PENDING',_0x3c4e42(0x688)]),_0x36419f=_0x3f7036=>!!_0x3f7036&&_0x201764[_0x3c4e42(0x4a8)](_0x3f7036[_0x3c4e42(0x431)]),_0x1dd7f6=Number(process.env.OKDB_PENDING_RETRY_MS)>0x0?Number(process.env.OKDB_PENDING_RETRY_MS):0x1d4c0;function _0x3a3666(){const _0x3ba09f=_0x3c4e42;!_0x65f908&&(_0xd6733e()[_0x3ba09f(0x1bf)](_0x280c32[_0x3ba09f(0x3a9)]),_0x2936d0[_0x3ba09f(0x450)](_0xd6733e()),_0x65f908=!![]);}function _0xd6733e(){if(!_0x1da3f6)_0x1da3f6=_0x587891();return _0x1da3f6;}class _0x1f7da9 extends Map{constructor(_0x2218c1){const _0x57c369=_0x3c4e42;super(),this[_0x57c369(0x612)]=_0x2218c1;}[_0x3c4e42(0x765)](){const _0x4e7039=_0x3c4e42,_0x4e3d29=this[_0x4e7039(0x612)];if(!_0x4e3d29[_0x4e7039(0x232)])return;let _0x1cac6c;try{_0x1cac6c=_0x4e3d29[_0x4e7039(0x82b)]('db',null,'envNames',[],![]);}catch{return;}for(const _0x101673 of _0x1cac6c)if(!super[_0x4e7039(0x4a8)](_0x101673)&&_0x4e3d29[_0x4e7039(0x82b)]('db',null,'hasEnv',[_0x101673],![]))_0x4e3d29[_0x4e7039(0x5dd)](_0x101673);}[_0x3c4e42(0x616)](_0x264189){const _0x35f412=_0x3c4e42,_0x1bf68e=super[_0x35f412(0x616)](_0x264189);if(_0x1bf68e!==undefined||typeof _0x264189!==_0x35f412(0x4c1))return _0x1bf68e;const _0x2417d4=this[_0x35f412(0x612)];if(_0x264189===_0x35f412(0x342))return _0x2417d4[_0x35f412(0x232)]?_0x2417d4[_0x35f412(0x4a0)]['_statusEnv']??undefined:undefined;if(_0x2417d4['_isOpen']&&_0x2417d4[_0x35f412(0x82b)]('db',null,'hasEnv',[_0x264189],![]))return _0x2417d4[_0x35f412(0x5dd)](_0x264189);if(_0x2417d4[_0x35f412(0x232)]&&typeof _0x264189===_0x35f412(0x4c1)&&!_0x264189[_0x35f412(0x70d)]('~')){_0x2417d4['_call']('db',null,'pumpEnvSync',[],![]);if(_0x2417d4[_0x35f412(0x82b)]('db',null,_0x35f412(0x7bd),[_0x264189],![]))return _0x2417d4['_ensureEnv'](_0x264189);}return undefined;}[_0x3c4e42(0x4a8)](_0x5c87d1){const _0xfb7ac4=_0x3c4e42;return this[_0xfb7ac4(0x616)](_0x5c87d1)!==undefined;}get[_0x3c4e42(0x1d3)](){const _0x4642e4=_0x3c4e42;return this[_0x4642e4(0x765)](),super[_0x4642e4(0x1d3)];}[_0x3c4e42(0x23b)](){const _0x406052=_0x3c4e42;return this[_0x406052(0x765)](),super[_0x406052(0x23b)]();}['values'](){const _0x46be76=_0x3c4e42;return this['_sync'](),super[_0x46be76(0x3b9)]();}[_0x3c4e42(0x325)](){const _0xe95348=_0x3c4e42;return this['_sync'](),super[_0xe95348(0x325)]();}[_0x3c4e42(0x39f)](_0x1dd1fe,_0x20513b){const _0x203b76=_0x3c4e42;return this['_sync'](),super[_0x203b76(0x39f)](_0x1dd1fe,_0x20513b);}[Symbol[_0x3c4e42(0x821)]](){const _0x51e6c9=_0x3c4e42;return this[_0x51e6c9(0x765)](),super[Symbol[_0x51e6c9(0x821)]]();}}class _0x10248a{constructor(_0x199e7d,_0x2df7ef={}){const _0x3e91df=_0x3c4e42,_0x349674=_0xd6733e();this[_0x3e91df(0x72d)]=_0x199e7d,this[_0x3e91df(0x7a0)]=_0x2727c4++,this['_key']='db'+this['_uid'],this[_0x3e91df(0x5c3)]={..._0x4c6532[_0x3e91df(0x6cc)],..._0x2df7ef,'auth':_0x2df7ef[_0x3e91df(0x470)]?{..._0x2df7ef[_0x3e91df(0x470)]}:undefined,'lmdb':{..._0x2df7ef[_0x3e91df(0x878)]||{}}},this[_0x3e91df(0x425)]=new _0x5e7ea1(),this[_0x3e91df(0x425)][_0x3e91df(0x2de)](0x0),this[_0x3e91df(0x16c)]=new Set(),this['events']['on'](_0x3e91df(0x872),_0x11c15b=>this[_0x3e91df(0x3c4)](_0x11c15b)),this['log']=new _0x23da5a(this),this[_0x3e91df(0x629)][_0x3e91df(0x4f7)](),_0x280c32[_0x3e91df(0x65e)](this['_key'],{'_deliver':(_0x255633,_0xe32cca)=>this[_0x3e91df(0x801)](_0x255633,_0xe32cca),'_log':_0x4b672a=>{const _0x2a65e1=_0x3e91df;if(this[_0x2a65e1(0x791)])this[_0x2a65e1(0x791)]['push'](_0x4b672a);const _0x2cf684=_0x4b672a&&_0x4b672a[_0x2a65e1(0x5cb)];if(_0x2cf684&&Object[_0x2a65e1(0x259)]['hasOwnProperty'][_0x2a65e1(0x881)](this[_0x2a65e1(0x629)],_0x2cf684)&&typeof this[_0x2a65e1(0x629)][_0x2cf684]===_0x2a65e1(0x40e)){const _0x104616=_0x4b672a['context'];return this[_0x2a65e1(0x629)][_0x2cf684](_0x4b672a['msg'],{..._0x4b672a[_0x2a65e1(0x5c1)]||{},..._0x104616&&typeof _0x104616===_0x2a65e1(0x6f7)?_0x104616:{}});}return this[_0x2a65e1(0x629)][_0x2a65e1(0x43e)](_0x4b672a);}}),_0x3a3666();try{const _0x2655b1={};if(typeof _0x3e91df(0x2fa)===_0x3e91df(0x296)||'true'!==_0x3e91df(0x2fa));const _0x57ca55={..._0x2df7ef,'_clusterWorker':require(_0x3e91df(0x452))[_0x3e91df(0x36b)],..._0x2655b1};this[_0x3e91df(0x3e7)]={'instance':null,'envs':new Map()};typeof _0x2df7ef[_0x3e91df(0x6b0)]==='function'&&(this[_0x3e91df(0x3e7)][_0x3e91df(0x4dc)]=_0x2df7ef[_0x3e91df(0x6b0)],delete _0x57ca55['encryptionKey']);if(_0x2df7ef[_0x3e91df(0x350)]&&typeof _0x2df7ef[_0x3e91df(0x350)]===_0x3e91df(0x6f7)){for(const [_0xc0fe80,_0x43fd8e]of Object[_0x3e91df(0x325)](_0x2df7ef[_0x3e91df(0x350)]))this[_0x3e91df(0x3e7)][_0x3e91df(0x411)][_0x3e91df(0x488)](_0xc0fe80,_0x43fd8e);}delete _0x57ca55[_0x3e91df(0x350)],this[_0x3e91df(0x18f)]=new _0x349674['Native'](_0x199e7d,_0x57ca55,this[_0x3e91df(0x7f2)]);}catch(_0xa659d4){_0x280c32[_0x3e91df(0x4c2)](this['_key']);throw _0x456613(_0xa659d4);}this['state']=_0x1bf51b['CREATED'],this[_0x3e91df(0x232)]=![],this['_envs']=new _0x1f7da9(this),this[_0x3e91df(0x755)]=new _0x5dfa1c({'pump':()=>this[_0x3e91df(0x18f)][_0x3e91df(0x167)]()}),this[_0x3e91df(0x630)]=new _0x2936d0[(_0x3e91df(0x2ba))](this),this['_pumper'][_0x3e91df(0x22f)]=()=>_0x280c32[_0x3e91df(0x20f)](),_0x280c32[_0x3e91df(0x4cb)](()=>this['_pumper'][_0x3e91df(0x270)](),this),_0x2452cf[_0x3e91df(0x488)](this[_0x3e91df(0x7a0)],this),this[_0x3e91df(0x427)]={},_0x280c32[_0x3e91df(0x5b8)](this),this[_0x3e91df(0x60e)]=new _0x181d4e(this),this['embeddings']=new _0x5c9a70(this),this['engines']=new _0x3e2309(this,null,null),this[_0x3e91df(0x35c)]=new _0x64ade2(this,null),this[_0x3e91df(0x5c1)]=_0xa2878a(this),this[_0x3e91df(0x248)]=_0x5e4bf2(this),this[_0x3e91df(0x27b)]=_0x17b9f2(this),this['processes']=_0x5f3c06(this),this[_0x3e91df(0x1f3)]=_0x447931(this),this[_0x3e91df(0x889)]=new _0x2836bc(this),this[_0x3e91df(0x740)]=new _0x1b9806(this),this['sync']=new _0x501da8(this),this['auth']=new _0x355f33(this),this[_0x3e91df(0x4a7)]=new _0x2aff8b(this,null),this[_0x3e91df(0x863)]=new _0x427025(this),this[_0x3e91df(0x879)]=_0x2df7ef&&_0x2df7ef[_0x3e91df(0x879)]===![]?null:_0x55db66(_0x3e91df(0x879)),this[_0x3e91df(0x4fc)]=_0x55db66(_0x3e91df(0x4fc)),this[_0x3e91df(0x3ee)]=new _0x11fa71(this);}[_0x3c4e42(0x82b)](_0x33b88b,_0x459dbf,_0x8f71a8,_0x3bb4c2,_0x2da6e2=!![]){const _0x1dd760=_0x3c4e42;if(_0x2da6e2&&this[_0x1dd760(0x630)]&&this[_0x1dd760(0x630)][_0x1dd760(0x7b6)][_0x1dd760(0x479)])this[_0x1dd760(0x630)]['commit']();try{return this[_0x1dd760(0x18f)][_0x1dd760(0x881)](_0x33b88b,_0x459dbf,_0x8f71a8,_0x3bb4c2);}catch(_0xb1064c){throw _0x456613(_0xb1064c);}finally{if(_0x2da6e2)this[_0x1dd760(0x755)][_0x1dd760(0x270)]();}}['_callPacked'](_0x1d73d0,_0x557f16,_0x583dc6,_0x308d26){const _0x577bf2=_0x3c4e42;let _0x3040f2;try{_0x3040f2=this[_0x577bf2(0x18f)][_0x577bf2(0x22c)](_0x1d73d0,_0x557f16,_0x583dc6,_0x308d26);}catch(_0x263cba){throw _0x456613(_0x263cba);}return _0x3040f2 instanceof Uint8Array?_0x57ab5a(_0x3040f2):_0x3040f2[0x0];}[_0x3c4e42(0x142)](_0x440284){const _0x17990a=_0x3c4e42;let _0x3ff3ee=this[_0x17990a(0x408)];if(_0x3ff3ee&&_0x440284<=_0x3ff3ee[_0x17990a(0x479)])return _0x3ff3ee;let _0x3964c7=_0x3ff3ee?_0x3ff3ee[_0x17990a(0x479)]:_0x5e72c1;while(_0x3964c7<_0x440284)_0x3964c7*=0x2;if(_0x3964c7>_0x4bc92d)return _0x3ff3ee;return _0x3ff3ee=this[_0x17990a(0x408)]=Buffer[_0x17990a(0x7cb)](_0x3964c7),this[_0x17990a(0x18f)][_0x17990a(0x760)](_0x3ff3ee),_0x3ff3ee;}[_0x3c4e42(0x80d)](_0x3a342d,_0x17b74b,_0x5e2ad4){const _0x22750f=_0x3c4e42;if(!this['_rbuf'])this[_0x22750f(0x142)](0x0);const _0x24306a=this[_0x22750f(0x18f)][_0x22750f(0x834)](_0x3a342d,_0x17b74b,_0x5e2ad4);if(typeof _0x24306a===_0x22750f(0x729))return _0x2b9a2f(this[_0x22750f(0x408)],_0x24306a);if(_0x24306a===undefined||_0x24306a===null)return _0x24306a;return this[_0x22750f(0x142)](_0x24306a[_0x22750f(0x479)]),_0x2b9a2f(_0x24306a);}[_0x3c4e42(0x1c9)](_0x4b7170,_0x445efc,_0x5a2843){const _0x31dcb6=_0x3c4e42;let _0x139b8d=this[_0x31dcb6(0x1f2)];if(!_0x139b8d){_0x139b8d=this['_kbuf']=Buffer[_0x31dcb6(0x7cb)](_0x3ee727),this[_0x31dcb6(0x18f)][_0x31dcb6(0x6ad)](_0x139b8d),this['_tids']=new Map();if(!this['_rbuf'])this['_readBuf'](0x0);}const _0x13d1ee=_0x7a4ba7(_0x5a2843,_0x139b8d);if(_0x13d1ee<0x0)return _0x4d030e;let _0x303864=this[_0x31dcb6(0x5b7)]['get'](_0x4b7170);if(_0x303864===undefined)this[_0x31dcb6(0x5b7)][_0x31dcb6(0x488)](_0x4b7170,_0x303864=new Map());let _0xa9472c=_0x303864[_0x31dcb6(0x616)](_0x445efc);if(_0xa9472c===undefined)_0x303864[_0x31dcb6(0x488)](_0x445efc,_0xa9472c=this['_native']['typeId'](_0x4b7170,_0x445efc));if(_0xa9472c<0x0)return _0x4d030e;const _0x46ebc4=this[_0x31dcb6(0x18f)][_0x31dcb6(0x7b5)](_0xa9472c,_0x13d1ee);if(typeof _0x46ebc4===_0x31dcb6(0x729))return _0x2b9a2f(this[_0x31dcb6(0x408)],_0x46ebc4);if(_0x46ebc4===undefined||_0x46ebc4===null)return _0x46ebc4;return this['_readBuf'](_0x46ebc4[_0x31dcb6(0x479)]),_0x2b9a2f(_0x46ebc4);}['_callRows'](_0x2aa91f,_0x67e1d2,_0x3b3a76){const _0x4b05e4=_0x3c4e42;if(!this[_0x4b05e4(0x408)])this[_0x4b05e4(0x142)](0x0);let _0x3b8c3a;try{_0x3b8c3a=this[_0x4b05e4(0x18f)][_0x4b05e4(0x62d)](_0x2aa91f,_0x67e1d2,_0x3b3a76);}catch(_0x5112f1){throw _0x456613(_0x5112f1);}const _0xac430a=_0x67e1d2===_0x4b05e4(0x445),_0x1f9e28=_0xac430a?_0x3b3a76[0x1]:_0x67e1d2;let _0x340af7=this['_rbuf'],_0x4aa2a6=_0x3b8c3a;if(_0x3b8c3a instanceof Uint8Array)this['_readBuf'](_0x3b8c3a[_0x4b05e4(0x479)]),_0x340af7=_0x3b8c3a,_0x4aa2a6=_0x3b8c3a[_0x4b05e4(0x479)];else{if(typeof _0x3b8c3a!==_0x4b05e4(0x729))return _0x3b8c3a[0x0];}if(_0x1f9e28===_0x4b05e4(0x42e))return _0x19860a(_0x340af7,_0x4aa2a6,_0xac430a);if(_0x1f9e28===_0x4b05e4(0x84f))return _0x2b9a2f(_0x340af7,_0x4aa2a6);return _0x15b420(_0x2b9a2f(_0x340af7,_0x4aa2a6),_0xac430a);}[_0x3c4e42(0x421)](_0x1c98d9,_0xcd92bf,_0x7501eb,_0x28cf6c,_0x19b27a=!![],_0x37fb1a=!![]){const _0x2f96b4=_0x3c4e42,_0x16986c=()=>this[_0x2f96b4(0x39b)](()=>this[_0x2f96b4(0x82b)](_0x1c98d9,_0xcd92bf,_0x7501eb,_0x28cf6c,_0x19b27a));if(!_0x37fb1a)return _0x16986c();return this[_0x2f96b4(0x6d8)](_0x16986c);}[_0x3c4e42(0x6d8)](_0x2ce45b){return _0x2ce45b()['catch'](async _0x4e0a97=>{const _0x50236f=_0x3f13;if(!_0x36419f(_0x4e0a97))throw _0x4e0a97;const _0x1cd0e6=Date[_0x50236f(0x38b)]()+_0x1dd7f6;let _0x8595f8=0x1;while(_0x36419f(_0x4e0a97)&&Date[_0x50236f(0x38b)]()<_0x1cd0e6){await new Promise(_0x571af1=>setTimeout(_0x571af1,_0x8595f8)),_0x8595f8=Math[_0x50236f(0x5b5)](_0x8595f8*0x2,0x14);try{return await _0x2ce45b();}catch(_0x277f19){_0x4e0a97=_0x277f19;}}throw _0x4e0a97;});}[_0x3c4e42(0x751)](_0x199d18){const _0x37c84f=_0x3c4e42;if(_0x280c32[_0x37c84f(0x2d6)]())return Promise[_0x37c84f(0x816)](_0x199d18);return new Promise(_0x16f908=>setImmediate(()=>_0x16f908(_0x199d18)));}[_0x3c4e42(0x51a)](_0x2f9049){const _0x79aefd=_0x3c4e42;if(_0x280c32[_0x79aefd(0x2d6)]())return Promise[_0x79aefd(0x816)](_0x2f9049);return this[_0x79aefd(0x46b)]()[_0x79aefd(0x1df)](()=>_0x2f9049);}['_afterDurable'](){return new Promise(_0x2e413c=>setImmediate(()=>{const _0x3dde58=_0x3f13;let _0x1d5049;try{_0x1d5049=this[_0x3dde58(0x18f)][_0x3dde58(0x865)]();}catch{return _0x2e413c();}_0x2936d0[_0x3dde58(0x1d5)](_0x1d5049,_0x2e413c);}));}['_macro'](_0x107894){return new Promise((_0x59e625,_0x2d9bc9)=>setImmediate(()=>{try{_0x59e625(_0x107894());}catch(_0xc2c7b6){_0x2d9bc9(_0xc2c7b6);}}));}[_0x3c4e42(0x3ed)](_0x533ca4,_0x19b5de,_0x2f840d){return _0x3fa2cb(_0x533ca4,_0x19b5de,_0x2f840d);}[_0x3c4e42(0x3c4)](_0x245426){const _0x3e8968=_0x3c4e42;if(typeof _0x245426!==_0x3e8968(0x4c1)||this[_0x3e8968(0x16c)]['has'](_0x245426)||_0x245426===_0x3e8968(0x872)||_0x245426==='removeListener')return;this[_0x3e8968(0x16c)][_0x3e8968(0x76e)](_0x245426);try{this[_0x3e8968(0x18f)][_0x3e8968(0x881)](_0x3e8968(0x425),null,_0x3e8968(0x1aa),[this[_0x3e8968(0x7f2)],_0x245426]);}catch{}}[_0x3c4e42(0x801)](_0x4ea1d8,_0x46ae30){const _0xc2b09c=_0x3c4e42;this[_0xc2b09c(0x425)][_0xc2b09c(0x7bb)](_0x4ea1d8,_0x46ae30);}async[_0x3c4e42(0x605)](){const _0x26a5e9=_0x3c4e42,_0x3b8866=this[_0x26a5e9(0x3e7)];if(_0x3b8866['instance'])this[_0x26a5e9(0x21b)](null,await _0x3b8866['instance'](null),!![]);for(const [_0x226883,_0x589273]of _0x3b8866['envs'])this[_0x26a5e9(0x21b)](_0x226883,typeof _0x589273===_0x26a5e9(0x40e)?await _0x589273(_0x226883):_0x589273,typeof _0x589273==='function');(_0x3b8866[_0x26a5e9(0x4dc)]||[..._0x3b8866[_0x26a5e9(0x411)][_0x26a5e9(0x3b9)]()][_0x26a5e9(0x737)](_0x35500a=>typeof _0x35500a===_0x26a5e9(0x40e)))&&!this[_0x26a5e9(0x432)]&&(this[_0x26a5e9(0x432)]=_0x3e495e=>{const _0x81500f=_0x26a5e9,_0x547820=_0x3e495e&&_0x3e495e[_0x81500f(0x53c)]!=null?_0x3e495e[_0x81500f(0x53c)]:null,_0x35bce3=_0x547820==null?_0x3b8866['instance']:_0x3b8866['envs']['get'](_0x547820);if(typeof _0x35bce3!==_0x81500f(0x40e))return;Promise['resolve']()['then'](()=>_0x35bce3(_0x547820))['then'](_0x403da7=>this['_setKey'](_0x547820,_0x403da7,!![]))[_0x81500f(0x681)](_0x4cdd18=>this[_0x81500f(0x629)][_0x81500f(0x814)](_0x81500f(0x6c5)+(_0x4cdd18&&_0x4cdd18[_0x81500f(0x806)]),{'env':_0x547820}));},this[_0x26a5e9(0x425)]['on'](_0x26a5e9(0x436),this[_0x26a5e9(0x432)]));}['_setKey'](_0x39e048,_0x2ae69e,_0x52ce94){const _0xc04277=_0x3c4e42;if(_0x2ae69e==null)throw new _0x43afb7(_0xc04277(0x824)+(_0x39e048?_0xc04277(0x4b8)+_0x39e048+'\x22':'')+_0xc04277(0x311),_0xc04277(0x2c4));this['_native'][_0xc04277(0x881)]('db',null,_0xc04277(0x228),[_0x39e048,_0x2ae69e,!!_0x52ce94]);}async['changeEncryptionKey'](_0x1e8af3){const _0x211e50=_0x3c4e42;this['_assertOpen']();const {env:env=null,to:_0x31c26f}=_0x2d0ef4(_0x1e8af3),_0x652aba=typeof _0x31c26f==='function',_0x4aaa8a=_0x652aba?await _0x31c26f(env):_0x31c26f;if(_0x4aaa8a==null)throw _0x30194e(_0x211e50(0x6c0),_0x211e50(0x399),_0x4aaa8a);const _0x6293ea=this[_0x211e50(0x82b)]('db',null,'changeEncryptionKey',[env,_0x4aaa8a,_0x652aba]);if(_0x652aba){if(env==null)this[_0x211e50(0x3e7)][_0x211e50(0x4dc)]=_0x31c26f;else this[_0x211e50(0x3e7)][_0x211e50(0x411)]['set'](env,_0x31c26f);}return _0x6293ea;}async[_0x3c4e42(0x4f4)](_0x904500){const _0x4e1dfd=_0x3c4e42;this[_0x4e1dfd(0x4b5)]();const _0x123dc3=_0x2d0ef4(_0x904500);if(!_0x123dc3['env'])throw _0x30194e('reencrypt:\x20env','an\x20environment\x20name',_0x123dc3[_0x4e1dfd(0x53c)]);let _0x2a70e0=_0x123dc3['to'];const _0x340a4a=typeof _0x2a70e0===_0x4e1dfd(0x40e);if(_0x340a4a)_0x2a70e0=await _0x123dc3['to'](_0x123dc3[_0x4e1dfd(0x53c)]);const _0x4c3fce=await this['_macro'](()=>this[_0x4e1dfd(0x82b)]('db',null,'reencrypt',[_0x123dc3[_0x4e1dfd(0x53c)],'to'in _0x123dc3?_0x2a70e0:undefined,_0x340a4a]));if(_0x340a4a)this[_0x4e1dfd(0x3e7)][_0x4e1dfd(0x411)][_0x4e1dfd(0x488)](_0x123dc3[_0x4e1dfd(0x53c)],_0x123dc3['to']);return _0x4c3fce;}async[_0x3c4e42(0x2fb)](){const _0xfff00e=_0x3c4e42;if(this[_0xfff00e(0x823)]===_0x1bf51b[_0xfff00e(0x4f8)])return;if(this['state']!==_0x1bf51b[_0xfff00e(0x13c)])throw new _0x43afb7(_0xfff00e(0x171),_0xfff00e(0x6a3),{'state':this[_0xfff00e(0x823)]});this['state']=_0x1bf51b[_0xfff00e(0x219)],this[_0xfff00e(0x791)]=[];try{try{await this[_0xfff00e(0x605)](),await this[_0xfff00e(0x39b)](()=>this[_0xfff00e(0x18f)]['open']());}catch(_0x2504ec){throw _0x456613(_0x2504ec);}}catch(_0x13d2aa){this[_0xfff00e(0x823)]=_0x1bf51b[_0xfff00e(0x575)],this[_0xfff00e(0x791)]=null,this['_teardownNative']();throw _0x13d2aa;}this[_0xfff00e(0x232)]=!![],this[_0xfff00e(0x823)]=_0x1bf51b[_0xfff00e(0x4f8)];try{this[_0xfff00e(0x82b)]('db',null,_0xfff00e(0x146),[this[_0xfff00e(0x889)]['_plugins'][_0xfff00e(0x6f2)](_0x2b999f=>_0x2b999f[_0xfff00e(0x792)]?.['name'])[_0xfff00e(0x658)](Boolean)],![]),await this[_0xfff00e(0x889)][_0xfff00e(0x525)]();}catch(_0x13e467){this[_0xfff00e(0x823)]=_0x1bf51b[_0xfff00e(0x2d3)];try{this[_0xfff00e(0x18f)][_0xfff00e(0x469)]();}catch{}this[_0xfff00e(0x823)]=_0x1bf51b['STOPPED'],this[_0xfff00e(0x232)]=![],this[_0xfff00e(0x195)]();throw _0x13e467;}for(const _0x2d5a2b of this[_0xfff00e(0x82b)]('db',null,'envNames',[],![]))if(!_0x2d5a2b[_0xfff00e(0x70d)]('~'))this[_0xfff00e(0x5dd)](_0x2d5a2b);try{if(this['_call']('db',null,_0xfff00e(0x7bd),[_0xfff00e(0x5f1)],![])){this[_0xfff00e(0x557)]=this[_0xfff00e(0x5dd)](_0xfff00e(0x5f1));const _0x113463=new Set(this[_0xfff00e(0x629)][_0xfff00e(0x4db)]);this[_0xfff00e(0x830)]=this['log'][_0xfff00e(0x728)](this[_0xfff00e(0x557)],this['id']);const _0x4d6a71=[...this[_0xfff00e(0x629)][_0xfff00e(0x4db)]][_0xfff00e(0x310)](_0x270352=>!_0x113463[_0xfff00e(0x4a8)](_0x270352)),_0x100bda=this[_0xfff00e(0x82b)]('db',null,_0xfff00e(0x2e5),[],![]);for(const _0x3d3983 of(this[_0xfff00e(0x791)]??[])[_0xfff00e(0x4e8)](_0x100bda))_0x4d6a71?.(_0x3d3983);}}catch{}this[_0xfff00e(0x791)]=null,this[_0xfff00e(0x18f)][_0xfff00e(0x458)](()=>this['_pumper'][_0xfff00e(0x270)]()),this[_0xfff00e(0x755)][_0xfff00e(0x525)]();}get['_viewRebuildChain'](){const _0x19a43c=()=>{const _0x441a71=_0x3f13;if(!this[_0x441a71(0x232)])return![];for(const _0x3f82f7 of this[_0x441a71(0x82b)]('db',null,_0x441a71(0x3f3),[],![])){if(!_0x3f82f7[_0x441a71(0x70d)]('~')&&this[_0x441a71(0x82b)](_0x441a71(0x4fd),_0x3f82f7,_0x441a71(0x354),[],![]))return!![];}return![];};return((async()=>{const _0x42ef0d=_0x3f13;while(_0x19a43c())await this[_0x42ef0d(0x755)][_0x42ef0d(0x690)](0xfa);})());}async[_0x3c4e42(0x37b)](){const _0x51acee=_0x3c4e42;return this[_0x51acee(0x421)]('db',null,'bootRuntime',[]);}async[_0x3c4e42(0x469)](){const _0x42a73c=_0x3c4e42;if(this[_0x42a73c(0x823)]===_0x1bf51b[_0x42a73c(0x575)])return;if(this[_0x42a73c(0x823)]!==_0x1bf51b[_0x42a73c(0x4f8)])throw new _0x43afb7('Database\x20not\x20started','INVALID_STATE',{'state':this[_0x42a73c(0x823)]});this[_0x42a73c(0x823)]=_0x1bf51b[_0x42a73c(0x2d3)],this[_0x42a73c(0x232)]=![];let _0x3ee9e0=null;if(this[_0x42a73c(0x740)][_0x42a73c(0x67b)][_0x42a73c(0x479)])try{await this[_0x42a73c(0x740)][_0x42a73c(0x469)]();}catch(_0x43621e){_0x3ee9e0=_0x43621e;}if(this[_0x42a73c(0x60c)]){try{this[_0x42a73c(0x60c)]['detachFeed'](),this[_0x42a73c(0x60c)][_0x42a73c(0x5eb)]();}catch{}this['__adminRelay']=null;}try{this['_changefeed']?.[_0x42a73c(0x851)]?.();}catch{}try{await this['plugins'][_0x42a73c(0x851)]();}catch(_0x35116b){_0x3ee9e0=_0x35116b;}for(const _0x1b6531 of[...Map[_0x42a73c(0x259)][_0x42a73c(0x3b9)][_0x42a73c(0x881)](this['_envs'])]){try{await _0x1b6531[_0x42a73c(0x548)][_0x42a73c(0x463)]();}catch{}try{await _0x1b6531[_0x42a73c(0x5a4)][_0x42a73c(0x851)]();}catch{}}for(const _0x525b34 of[()=>this[_0x42a73c(0x7a8)][_0x42a73c(0x851)](),()=>this['embeddings']['stop'](),()=>this[_0x42a73c(0x60e)]&&this['fts'][_0x42a73c(0x851)]?.()]){try{await _0x525b34();}catch{}}const _0x467958=this[_0x42a73c(0x5c3)][_0x42a73c(0x1e9)]??0x7530,_0x5eb6a4=[];for(const _0x56e7e3 of[...Map[_0x42a73c(0x259)][_0x42a73c(0x3b9)][_0x42a73c(0x881)](this[_0x42a73c(0x2b2)])]){if(_0x56e7e3[_0x42a73c(0x7b6)]?.[_0x42a73c(0x40a)]?.['size']>0x0)_0x5eb6a4['push'](_0x56e7e3[_0x42a73c(0x7b6)][_0x42a73c(0x463)](_0x467958));}if(_0x5eb6a4['length']>0x0)await Promise['allSettled'](_0x5eb6a4);try{this[_0x42a73c(0x830)]?.();}catch{}this['_detachLogSink']=null;try{await this[_0x42a73c(0x630)][_0x42a73c(0x303)]();}catch{}this['_pumper'][_0x42a73c(0x851)]();try{await this[_0x42a73c(0x39b)](()=>this['_native']['close']());}catch(_0x524313){_0x3ee9e0=_0x3ee9e0||_0x456613(_0x524313);}this[_0x42a73c(0x823)]=_0x1bf51b[_0x42a73c(0x575)],this[_0x42a73c(0x195)](),Map['prototype'][_0x42a73c(0x400)][_0x42a73c(0x881)](this['_envs']);if(_0x3ee9e0)throw _0x3ee9e0;}[_0x3c4e42(0x195)](){const _0x2d97c0=_0x3c4e42;this[_0x2d97c0(0x755)]['stop']();try{this[_0x2d97c0(0x18f)][_0x2d97c0(0x458)](null);}catch{}try{this['_native'][_0x2d97c0(0x718)]();}catch{}this[_0x2d97c0(0x408)]=null,this[_0x2d97c0(0x1f2)]=null,this[_0x2d97c0(0x5b7)]=null,_0x280c32[_0x2d97c0(0x4c2)](this['_key']),_0x280c32['forgetDb'](this),_0x2452cf[_0x2d97c0(0x727)](this['_uid']);if(_0x280c32['kickOwnedBy'](this)){const _0x42d8cc=[..._0x2452cf[_0x2d97c0(0x3b9)]()][_0x2d97c0(0x20b)]();if(_0x42d8cc)_0x280c32[_0x2d97c0(0x4cb)](()=>_0x42d8cc[_0x2d97c0(0x755)][_0x2d97c0(0x270)](),_0x42d8cc);else _0x280c32[_0x2d97c0(0x4cb)](()=>{},null);}}get['id'](){return this['_call']('db',null,'id',[],![]);}[_0x3c4e42(0x637)](_0x153670){const _0x158b40=_0x3c4e42;return this['env'](_0x158b40(0x693))[_0x158b40(0x637)](_0x153670);}get[_0x3c4e42(0x1fb)](){const _0x175ab7=_0x3c4e42;return this['_rootDb']['get'](_0x175ab7(0x30c));}get[_0x3c4e42(0x17c)](){const _0x5452fb=_0x3c4e42;return this[_0x5452fb(0x7a8)][_0x5452fb(0x17c)];}get[_0x3c4e42(0x63e)](){const _0x32ff5f=_0x3c4e42;return this[_0x32ff5f(0x7a8)][_0x32ff5f(0x63e)];}get['_subsV2'](){const _0x47d98d=_0x3c4e42;if(!this[_0x47d98d(0x232)]||!this[_0x47d98d(0x82b)]('db',null,_0x47d98d(0x294),[],![]))return undefined;if(!this[_0x47d98d(0x7d9)]){const _0x5915db=requireOkdbSubscriptionsStore(),_0x21abc6=new _0x5915db(this,this['options']&&this[_0x47d98d(0x5c3)][_0x47d98d(0x7ea)]);_0x21abc6[_0x47d98d(0x5ba)]=this[_0x47d98d(0x53c)](_0x47d98d(0x2e1));const {compileFilter:_0x446a69}=requireOkdbQueryFilter(),_0x2db2a3=(_0x4febb8,_0x2ada38)=>{if(_0x4febb8==null)return![];try{return _0x446a69(_0x4febb8)(_0x2ada38);}catch{return![];}};this[_0x47d98d(0x7d9)]={'store':_0x21abc6,'router':{'_matches':_0x2db2a3}};}return this[_0x47d98d(0x7d9)];}get[_0x3c4e42(0x454)](){const _0x349263=_0x3c4e42;return this[_0x349263(0x4fa)];}get[_0x3c4e42(0x5f6)](){const _0x33a931=_0x3c4e42;return this[_0x33a931(0x82b)]('db',null,'formerIds',[],![]);}get[_0x3c4e42(0x4fa)](){const _0x5147d6=_0x3c4e42;return{...this[_0x5147d6(0x82b)]('db',null,_0x5147d6(0x4fa),[],![])};}get[_0x3c4e42(0x2ce)](){const _0x52eb02=_0x3c4e42;return require$$29[_0x52eb02(0x2ce)];}get[_0x3c4e42(0x528)](){const _0x192aff=_0x3c4e42;return this['_call']('db',null,_0x192aff(0x207),[],![]);}get[_0x3c4e42(0x786)](){const _0x4b43c6=_0x3c4e42;return this[_0x4b43c6(0x82b)]('db',null,_0x4b43c6(0x786),[],![]);}[_0x3c4e42(0x21d)](){const _0x737d8e=_0x3c4e42;return this['_call']('db',null,_0x737d8e(0x3f0),[],![]);}[_0x3c4e42(0x2f9)](){const _0x25287a=_0x3c4e42;return this[_0x25287a(0x82b)]('db',null,_0x25287a(0x2f9),[],![]);}async['setProcessingConfig'](_0x3c9d41){const _0x24af53=_0x3c4e42;this['_assertOpen'](),this[_0x24af53(0x82b)]('db',null,_0x24af53(0x286),[_0x3c9d41],![]);}[_0x3c4e42(0x46d)](){const _0x1fa0eb=_0x3c4e42,_0x4a43e6=Date['now']();if(this['_pressure']&&_0x4a43e6-this['_pressure']['at']<0xfa)return this['_pressure']['value'];const _0x18ba08=this[_0x1fa0eb(0x82b)]('db',null,_0x1fa0eb(0x46d),[],![]);return this[_0x1fa0eb(0x3f5)]={'at':_0x4a43e6,'value':_0x18ba08},_0x18ba08;}['_assertOpen'](){const _0x27e685=_0x3c4e42;if(!this[_0x27e685(0x232)])throw new _0x43afb7(_0x27e685(0x2a3),_0x27e685(0x6a3),{'state':this[_0x27e685(0x823)]});}get[_0x3c4e42(0x3fb)](){const _0x515c67=_0x3c4e42;if(this[_0x515c67(0x823)]===_0x1bf51b['STOPPED']||!this['_isOpen'])return null;if(this[_0x515c67(0x82b)]('db',null,_0x515c67(0x51d),[],![])==null)return null;if(!this['_busFacade']){const _0x55df6c=this;this[_0x515c67(0x5b2)]={get 'state'(){const _0x8dc28b=_0x515c67;return _0x55df6c['_call']('db',null,_0x8dc28b(0x51d),[],![]);},get 'magic'(){const _0x41df2b=_0x515c67;return Buffer[_0x41df2b(0x5f7)](_0x41df2b(0x6cd)+_0x55df6c['id']);},get 'isRunning'(){const _0x5311bf=_0x515c67;return _0x55df6c[_0x5311bf(0x82b)]('db',null,'busState',[],![])===_0x5311bf(0x2dc);},'emit'(_0x480989,_0x568e41=''){const _0x5913ed=_0x515c67;_0x55df6c[_0x5913ed(0x82b)]('db',null,_0x5913ed(0x6bc),[_0x480989,String(_0x568e41)],![]);}};}return this[_0x515c67(0x5b2)];}['_emitProc'](_0x4c24ca,_0xeb2aca){const _0x3ef0c6=_0x3c4e42;this[_0x3ef0c6(0x3fb)]?.[_0x3ef0c6(0x7bb)](_0x3ef0c6(0x5f0),JSON['stringify']({'kind':_0x3ef0c6(0x669),'scope':_0x4c24ca,'key':_0xeb2aca}));}get['locks'](){const _0x93ea6a=_0x3c4e42;return this['_locks']||(this[_0x93ea6a(0x674)]=new(requireLock())[(_0x93ea6a(0x288))](this,_0x93ea6a(0x196),_0x93ea6a(0x1b8)));}get['_rootDb'](){const _0xd21d5=_0x3c4e42;return this[_0xd21d5(0x70a)]?this[_0xd21d5(0x70a)]['db']:undefined;}get[_0x3c4e42(0x7a2)](){const _0xf4f664=_0x3c4e42,_0x50eab1=this[_0xf4f664(0x70a)]?.[_0xf4f664(0x548)];if(!_0x50eab1)return null;const _0x5612f1=_0x50eab1[_0xf4f664(0x3f8)]()['find'](_0x1b2666=>_0x1b2666[_0xf4f664(0x5c1)]?.[_0xf4f664(0x885)]===_0xf4f664(0x2f6));return _0x5612f1?_0x50eab1[_0xf4f664(0x60a)](_0x5612f1['id'],_0x5612f1[_0xf4f664(0x758)]):null;}get[_0x3c4e42(0x70a)](){const _0x2fb5b6=_0x3c4e42;return this[_0x2fb5b6(0x232)]?this[_0x2fb5b6(0x2b2)][_0x2fb5b6(0x616)](_0x2fb5b6(0x196)):undefined;}[_0x3c4e42(0x5dd)](_0x36a911){const _0x269f02=_0x3c4e42;let _0x509f21=Map['prototype'][_0x269f02(0x616)][_0x269f02(0x881)](this[_0x269f02(0x2b2)],_0x36a911);if(!_0x509f21){_0x509f21=new _0x151b4f(this,_0x36a911),Map['prototype'][_0x269f02(0x488)][_0x269f02(0x881)](this['_envs'],_0x36a911,_0x509f21);if(_0x36a911===_0x269f02(0x693))this[_0x269f02(0x372)]=_0x509f21;}return _0x509f21;}['env'](_0x4c5b23=_0x3c4e42(0x693)){const _0x44828e=_0x3c4e42,_0x2b074b=this[_0x44828e(0x2b2)][_0x44828e(0x616)](_0x4c5b23);if(_0x2b074b)return _0x2b074b;if(this[_0x44828e(0x232)]&&this['_call']('db',null,'hasEnv',[_0x4c5b23],![]))return this[_0x44828e(0x5dd)](_0x4c5b23);throw new _0x43afb7('Environment\x20\x22'+_0x4c5b23+_0x44828e(0x1ba),_0x44828e(0x77f));}get[_0x3c4e42(0x693)](){const _0x3f197f=_0x3c4e42;return this[_0x3f197f(0x53c)](_0x3f197f(0x693));}get[_0x3c4e42(0x7b8)](){const _0x3d7ec4=_0x3c4e42;return this[_0x3d7ec4(0x2b2)]['get'](_0x3d7ec4(0x693))??this[_0x3d7ec4(0x372)];}get[_0x3c4e42(0x513)](){const _0x2e0ad3=_0x3c4e42;return this['_defaultEnv'][_0x2e0ad3(0x513)];}get[_0x3c4e42(0x7b6)](){const _0x1f871f=_0x3c4e42;return this[_0x1f871f(0x7b8)][_0x1f871f(0x7b6)];}[_0x3c4e42(0x373)](_0x104918){const _0x34f47a=_0x3c4e42;if(!this[_0x34f47a(0x232)])return null;return this[_0x34f47a(0x82b)]('db',null,_0x34f47a(0x4f2),[_0x104918],![])?{'ref'(){},'unref'(){}}:null;}get[_0x3c4e42(0x395)](){const _0x2b390d=_0x3c4e42;return this[_0x2b390d(0x373)]('readerCheck');}['_reconcileDesired'](){const _0xa1085b=_0x3c4e42;return this['_call']('db',null,_0xa1085b(0x6e0),[],!![]);}get[_0x3c4e42(0x7c4)](){const _0x62dded=_0x3c4e42;return this[_0x62dded(0x373)](_0x62dded(0x136));}get[_0x3c4e42(0x147)](){const _0x3bc07f=_0x3c4e42;return this[_0x3bc07f(0x373)](_0x3bc07f(0x27a));}get[_0x3c4e42(0x7df)](){const _0x364730=_0x3c4e42;return this[_0x364730(0x53c)](_0x364730(0x693))['_hlc'];}get[_0x3c4e42(0x543)](){const _0x518345=_0x3c4e42;throw new _0x43afb7(_0x518345(0x418),_0x518345(0x83b));}get[_0x3c4e42(0x548)](){const _0xd068c9=_0x3c4e42;return this[_0xd068c9(0x7b8)][_0xd068c9(0x548)];}get[_0x3c4e42(0x4fd)](){const _0x34ddd9=_0x3c4e42;return this[_0x34ddd9(0x7b8)]['views'];}async[_0x3c4e42(0x331)](_0x52b9cd,_0x11b8a0={}){const _0x141ebb=_0x3c4e42;this[_0x141ebb(0x4b5)]();if(_0x11b8a0&&typeof _0x11b8a0[_0x141ebb(0x6b0)]===_0x141ebb(0x40e)){const _0x18f145=_0x11b8a0[_0x141ebb(0x6b0)];this[_0x141ebb(0x21b)](_0x52b9cd,await _0x18f145(_0x52b9cd),!![]),this[_0x141ebb(0x3e7)][_0x141ebb(0x411)][_0x141ebb(0x488)](_0x52b9cd,_0x18f145),_0x11b8a0={..._0x11b8a0,'encryptionKey':!![]};}return this[_0x141ebb(0x82b)]('db',null,'createEnvironment',[_0x52b9cd,_0x11b8a0]),this[_0x141ebb(0x5dd)](_0x52b9cd);}async[_0x3c4e42(0x648)](_0x39e53e){const _0x292b23=_0x3c4e42;if(!this[_0x292b23(0x232)])throw new _0x43afb7(_0x292b23(0x230)+_0x39e53e+_0x292b23(0x1cd),_0x292b23(0x6a3));return this['_call']('db',null,_0x292b23(0x648),[_0x39e53e]),this[_0x292b23(0x5dd)](_0x39e53e);}get['_adminRelay'](){const _0x864151=_0x3c4e42;if(!this[_0x864151(0x60c)]&&this['_isOpen']){const _0x846e94=requireOkdbRelay(),_0x3bdcc7=new _0x846e94(this,this[_0x864151(0x5c3)]?.[_0x864151(0x879)]?.[_0x864151(0x139)]??{});_0x3bdcc7[_0x864151(0x323)](),_0x3bdcc7[_0x864151(0x82a)]=!![],this[_0x864151(0x60c)]=_0x3bdcc7;}return this[_0x864151(0x60c)]??null;}set[_0x3c4e42(0x551)](_0x26f101){this['__adminRelay']=_0x26f101;}get[_0x3c4e42(0x25a)](){const _0x311e71=_0x3c4e42;let _0x852887=0x0;if(this['_isOpen'])for(const [_0xa83596]of Map[_0x311e71(0x259)][_0x311e71(0x325)][_0x311e71(0x881)](this[_0x311e71(0x2b2)])){try{_0x852887+=this[_0x311e71(0x82b)]('proc',_0xa83596,_0x311e71(0x3f4),[],![])||0x0;}catch{}}return{'total':_0x852887,'maxObserved':_0x852887>0x0?0x1:0x0,'inFlight':0x0};}async[_0x3c4e42(0x726)](_0x2f54ea){const _0x1b3389=_0x3c4e42,_0x2b301c=this[_0x1b3389(0x2b2)]['get'](_0x2f54ea);if(_0x2b301c)return _0x2b301c;if(!this[_0x1b3389(0x82b)]('db',null,_0x1b3389(0x7bd),[_0x2f54ea],![]))throw new Error('okdb._openEnvLazy:\x20env\x20\x22'+_0x2f54ea+_0x1b3389(0x67e));return this[_0x1b3389(0x648)](_0x2f54ea);}async[_0x3c4e42(0x864)](_0x2edeca){const _0x25217a=_0x3c4e42,_0x25692b=this[_0x25217a(0x82b)]('db',null,_0x25217a(0x144),[_0x2edeca]);return this['_envs']['delete'](_0x2edeca),_0x25692b;}async[_0x3c4e42(0x401)](_0x12f075,_0x9d08f8={}){const _0x463e83=_0x3c4e42;this[_0x463e83(0x4b5)]();const _0x295a9c=this['_call']('db',null,_0x463e83(0x401),[_0x12f075,_0x9d08f8]);return this['_envs'][_0x463e83(0x727)](_0x12f075),_0x295a9c;}static get[_0x3c4e42(0x6cc)](){const _0x4a0b5e=_0x3c4e42;return _0x4c6532[_0x4a0b5e(0x6cc)];}static get[_0x3c4e42(0x187)](){return _0x4c6532['KNOWN_OPTIONS'];}static get[_0x3c4e42(0x145)](){const _0x259496=_0x3c4e42;return _0x4c6532[_0x259496(0x145)];}static async[_0x3c4e42(0x1a6)](_0x2e9e3d,_0x46da85){const _0x440ff1=_0x3c4e42;return _0x3fa2cb('db',_0x440ff1(0x1a6),[_0x2e9e3d,_0x46da85]);}static[_0x3c4e42(0x2b8)](_0xe11093){const _0x58eca2=_0x3c4e42;return _0x3fa2cb('db',_0x58eca2(0x2b8),[_0xe11093]);}static[_0x3c4e42(0x65c)](_0x5108a5,_0x1ca418){const _0x445da8=_0x3c4e42;_0x3fa2cb(_0x445da8(0x4fd),_0x445da8(0x65c),[_0x5108a5,_0x1ca418]);}static[_0x3c4e42(0x4cc)](_0x589055,_0x3e57ee){const _0x536c0e=_0x3c4e42;_0x3fa2cb(_0x536c0e(0x4fd),_0x536c0e(0x4cc),[_0x589055,_0x3e57ee]);}static[_0x3c4e42(0x255)](){}[_0x3c4e42(0x313)](_0x586976,_0x28b1de){const _0x18df57=_0x3c4e42;return require$$16[_0x18df57(0x6a0)](_0x586976,_0x28b1de);}}_0x10248a[_0x3c4e42(0x2e0)]=_0x62c0ef,Object[_0x3c4e42(0x882)](_0x10248a,_0x3c4e42(0x7a7),{'get'(){const _0xed4908=_0x3c4e42;return _0x10248a[_0xed4908(0x2e7)]||(_0x10248a[_0xed4908(0x2e7)]=new Set());},'set'(_0x359b54){const _0x539d96=_0x3c4e42;_0x10248a[_0x539d96(0x2e7)]=_0x359b54;try{_0x3fa2cb('db',_0x539d96(0x6b4),[]);}catch{}},'configurable':!![]});for(const _0x3264af of[_0x3c4e42(0x84d),_0x3c4e42(0x82f),'put',_0x3c4e42(0x601),'patch',_0x3c4e42(0x267),_0x3c4e42(0x6a9),_0x3c4e42(0x616),'getMany','getEntry',_0x3c4e42(0x805),_0x3c4e42(0x521),_0x3c4e42(0x42e),'getCount',_0x3c4e42(0x744),_0x3c4e42(0x676),_0x3c4e42(0x1f0),_0x3c4e42(0x155),_0x3c4e42(0x3a1),_0x3c4e42(0x743),_0x3c4e42(0x4d0),'registerType',_0x3c4e42(0x85d),_0x3c4e42(0x4e2),_0x3c4e42(0x384),_0x3c4e42(0x176),_0x3c4e42(0x6b1),_0x3c4e42(0x2d7),_0x3c4e42(0x45d),_0x3c4e42(0x253),'resetIndex',_0x3c4e42(0x21c),'getIndexStatus','getUniqueViolations',_0x3c4e42(0x182),_0x3c4e42(0x14b),'getClock',_0x3c4e42(0x6fd),'setTTL','getTTL',_0x3c4e42(0x347),'sweepExpiredTTL',_0x3c4e42(0x1c2),'ttlStats','setDefaultTTL','getDefaultTTL',_0x3c4e42(0x58b),_0x3c4e42(0x5ad),_0x3c4e42(0x692),_0x3c4e42(0x38b)]){_0x10248a[_0x3c4e42(0x259)][_0x3264af]=function(..._0x34c80d){const _0x34bdb0=_0x3c4e42,_0x34d2c3=this[_0x34bdb0(0x53c)](_0x34bdb0(0x693));return _0x34d2c3[_0x3264af](..._0x34c80d);};}function _0x447931(_0x28f9ed){const _0xc1630d=_0x3c4e42,_0xf5ef8d=_0x586892=>()=>{const _0x5d14fa=_0x3f13;throw new Error(_0x5d14fa(0x1b2)+_0x586892+_0x5d14fa(0x617));};return{'process':_0xf5ef8d(_0xc1630d(0x2e8)),'processRest':_0xf5ef8d(_0xc1630d(0x606)),'processEverything':_0xf5ef8d(_0xc1630d(0x6aa)),async 'start'(){const _0x4c9cff=_0xc1630d;return _0x28f9ed[_0x4c9cff(0x82b)]('db',null,_0x4c9cff(0x3ab),[]);},async 'stop'(){const _0x2387e4=_0xc1630d;return _0x28f9ed[_0x2387e4(0x82b)]('db',null,_0x2387e4(0x301),[]);},'status'(){const _0xbb61ba=_0xc1630d;return _0x28f9ed['_call']('db',null,_0xbb61ba(0x5a3),[],![]);},get 'participating'(){return _0x28f9ed['_call']('db',null,'processorsParticipating',[],![]);},get '_participate'(){const _0x3fda11=_0xc1630d;return _0x28f9ed['_call']('db',null,_0x3fda11(0x437),[],![]);}};}function _0x3fa2cb(_0x5e8f3b,_0x457af9,_0x1a46ef){const _0x49d609=_0x3c4e42;_0x3a3666();try{return _0xd6733e()[_0x49d609(0x519)](_0x5e8f3b,_0x457af9,_0x1a46ef);}catch(_0xdcb14b){throw _0x456613(_0xdcb14b);}}_0x56caa7[_0x3c4e42(0x3bf)]=_0x10248a,_0x56caa7[_0x3c4e42(0x3bf)]['staticCall']=_0x3fa2cb,_0x56caa7[_0x3c4e42(0x3bf)][_0x3c4e42(0x152)]=_0x10248a,_0x56caa7[_0x3c4e42(0x3bf)]['HIGH_SENTINEL']=_0x62c0ef,_0x56caa7[_0x3c4e42(0x3bf)][_0x3c4e42(0x693)]=_0x10248a,Object[_0x3c4e42(0x882)](_0x56caa7['exports'],_0x3c4e42(0x160),{'get':()=>require$$1$1[_0x3c4e42(0x608)]?.()??null,'enumerable':![],'configurable':!![]});}(lib),lib[_0x1c7c73(0x3bf)];}var libExports=requireLib(),index=getDefaultExportFromCjs(libExports);function _0x394d(){const _0x3a40e5=['isHeld','startsWith','system:bus_state_change','near','isBun','killAll','getPeerState','140FBFpYY','maxExtra','FOREIGN_KEY_DELETE_RESTRICTED','enable','ENGINE_DRIVER_MISSING_START','release','\x22\x20is\x20not\x20allowed\x20(it\x20evaluates\x20code);\x20use\x20declarative\x20operators\x20instead','ms\x20p99=','_gcTimer','queue:enqueued','process()\x20entry\x20\x22','pageSize','getOidcDiscovery','_enqueueInTxn','onUndo','compactLock','endIndex','embed-worker','~ref_violations','_openEnvLazy','delete','attachOKDB','number','_localViewApi','vectorStoreStats','_clearChunked','path','validateRouteInput','OKDBNotFoundError','patchDeclaration','\x20references\x20','\x20does\x20not\x20exist','TXN_INVALID_ACTION','targetKey','durableDoc','exportEnvsBuf','some','attachFeed','driver','_settle','$lt','\x27,\x20cannot\x20map\x20to\x20\x27',':index','registerIndexDeferred','Blob\x20not\x20found:\x20','http','dirname','fetchJson','geoQuery','getByPrefix','_awaitBuild','offset','\x20which\x20does\x20not\x20exist','hasBody','clients','send','~file:blob_status','ctxRelease','pinned\x20range\x20iterator\x20parked\x20across\x20an\x20await/turn\x20boundary\x20and\x20the\x20env\x20was\x20written\x20','processor:\x20module\x20\x27','toISOString','_attached','_settleRead','license:added','envsWithFiles','hasDriver','_pumper','listRoutes',':data','cursorKey','_detachConsole','job.claim_expires\x20must\x20be\x20number|null','mode','inFlight','constructor','_connections','finish','setReadBuffer','syncLock','getDefinition','job_type.defaults.buckets\x20must\x20be\x20array|null','_undoHooks','_sync','tag','OKDBIndexHasConsumersError','settledTickets','Unsupported\x20transaction\x20action:\x20','_flushTimer','restrict','HTTP_ERROR','queue:retry','add','sort','_keepAlive','target','system:stopped','BAD_ALGORITHM_FACTORY','deleted','bulkRemoveChunk','readField','fetch','pid','done_ttl','max_tries','envPath','startIndex','actions','TXN_ENV_MISMATCH','ENV_NOT_FOUND','compactStorage','~processes:desired','child','removeInterest','rollback','lock','info','test','ies','indexOf','dropping','compiled','includeViolations','createWriteStream','_status','uploadTxn','versions','_bootLog','module','turnWaiters','config','SEARCH','pumping','namespace','ITEM_REMOVE','storeEnvPath','bucket_tokens','_timer','type','null','assertQueryOptions','addInterest','_uid','registerReducer','_envSyncStop','(no\x20unambiguous\x20bookmark)\x20—\x20consume\x20it\x20in\x20one\x20synchronous\x20block:\x20materialize\x20(e.g.\x20','streamRead','item:pending','_customReducers','_unknownOptionsWarned','sync','\x22\x20is\x20not\x20registered','disableAll','_lazyPinned','embeddings:pipeline:ready','listAlgorithms','OKDBIndexAlreadyRegisteredError','Algorithm\x20factory\x20must\x20be\x20a\x20function','_envWide','removeSync','nextTick',';\x20got\x20','job_type.defaults.retry_delay\x20must\x20be\x20int\x20>=\x200\x20or\x20null','getFast','queue','addEventListener','_defaultEnv','_admissionStarted','_oauthConfig','emit','put','hasEnv','run','engineStart','_info','claim_id','BAD_PLUGIN','continueOnRecoverableError','_licenseInterval','envSize','announceEnqueued','a\x20string','backup','__esModule','hasEmbedderFactory','allocUnsafeSlow','PUT','inclusiveEnd','useVersions','emitClearDone','refTrackingDbs','(?:','pushEphemeral','node:crypto','sweepExpired','resumeAllAfterDrain','workerState','getTypeCount','_shouldApplyChange','_subsV2Obj','job','dir','bucket','continueIteration','unpack','_hlc','tools','findOwner','snapshot','\x22\x20on\x20\x22','storeGetConfig','_indexBuild','isWanted','removeTxn','cookies','doesExist','subscriptions','awaitIdle','listLinks','unref','field\x20resolver\x20request\x20still\x20pending','_makeIterator','$within','unique:violation','_key','createSearch','PLUGIN_ALREADY_REGISTERED','getJobLogs','getMeta','maxBodyBytes','hasOwnProperty','indexer\x20engine\x20not\x20running:\x20\x22','details','OKDBIndexNotRegisteredError','fts:registered','value','isOAuthEmailAllowed','peers','granId','_deliverEvent','getDefaultTTL','materialize\x20them\x20(Array.from)\x20while\x20the\x20view\x20is\x20live.','uninstalled','getRange','message','stopHandle','node:events','change','refill_amount','\x27\x20did\x20not\x20return\x20a\x20valid\x20instance',':\x20not\x20implemented\x20in\x20the\x20native\x20build\x20yet','_getRaw','clearScan','clocks','_ensureTokensType','_typeKeys','vector','recommended','error','Engine\x20template\x20build()\x20is\x20required:\x20','resolve','typeStats','_jsSchemas','fetchRemoteDelta','algorithm\x20is\x20gone','setMode','INDEX_NOT_REGISTERED','engineType','der','\x27\x20is\x20not\x20a\x20function','exportBuf','iterator','readKey','state','encryption\x20key\x20function','job\x20type\x20must\x20be\x20object','QUERY_OPERATOR_FORBIDDEN','orchestrator','_changeToClockDb','removeJob','_okdbAdminAttached','_call','system:proc','getOpenWarning','allSettled','txn','_detachLogSink','TXN_INVALID_OP',',\x20got\x20','position','getRaw','_debounceTimer','useReadTransaction\x20range\x20consumed\x20after\x20the\x20creation\x20turn\x20—\x20the\x20consistent\x20view\x20was\x20','publicKey','bus:poke','INVALID_OPTIONS','_tools','WORKERS_REMOVED','native','_lock','status_message','_getType','paused','header','viewOp','bucket.updated\x20must\x20be\x20number','bucket.id\x20must\x20be\x20non-empty\x20string',')\x0a\x09\x09}\x0a\x09\x09','NOT_IMPLEMENTED_NATIVE','typeSubDbs','_lookupByName','registerEnv','job.tag\x20must\x20be\x20string|null','cursor','preparer\x20must\x20be\x20a\x20function','transaction','pipeline','getMany','inspect','stop','transaction\x20commit\x20failed','queue.worker(\x27','runtimeState','timer','reducer','isSync','createHash','getCursor','clock','storage\x20adapter\x20is\x20gone','_setTTLEntry','ensureType','upload','files.upload:\x20id','createEmbedder','blobsDir','_scheduleFlush','mcp','_closeEnvLocally','flushTicket','pokeHandler','_closeReadTransaction','ensureTypeEnv','dropAll','catalog','_ensurePeerState','getViolation','loaded','exportToFile','File\x20not\x20found:\x20','_flushIntervalTimer','getLoginConfig','newListener','_callRows','_store','authOpen','ENGINE_DRIVER_ALREADY_REGISTERED','Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results','lmdb','admin','cause','onDone','SYSTEM_STOPPED','no\x20write\x20has\x20landed.\x20Writes/commit\x20are\x20unaffected.','lookupAllByName','non-empty\x20string','index','call','defineProperty','_pendingLocal','_fail','name','\x20=\x20source[position++]\x0a\x09\x09\x09else\x0a\x09\x09\x09\x09return\x20fromCharCode(','connected','storeEnv','plugins','\x27:\x20','aborted','embedderNew','license','application/octet-stream','shift','relay','lockHeld','build','CREATED','usedBy','lookupByTokenHash','$gt','flushPoll','Feature\x20not\x20licensed:\x20','_readBuf','_root','closeEnvLocally','_OPTION_HINTS','setHostPlugins','_writerWatchdogInterval','capacity','authenticated','retryJob','getUniqueViolation','ExtendedIterable','raw','kind','host','__HOLD__','queue:reconciled','OKDB','fields','setPeersFn','countByIndex','isSnapshotComplete','INDEX_ALREADY_REGISTERED','~fts:','~emb:models','geoConfig','item:','~lock','ttl:expired','refreshReadTxn','\x27\x20at\x20','nativeBinaryPath','exportJSON','_clockListener','handleError','_statusEnv','_startClaimedSoon','mapSize','pump','vectorSpace','$ref','describeAllTypes','reconcilePeer','_subscribed','last','__sync:peer_state','storeGetHeadCount','$and','Database\x20already\x20opened/closed','txnDone','detachFeed','\x20document(s)\x20reference\x20it\x20with\x20onDelete:restrict','_meta','hasType','$pending','_addr','nodeKeys','vecRemove','4086OeFLpz','_nodePrivateKey','schema','$exists','job_type.defaults.max_tries\x20must\x20be\x20int\x20>=\x201\x20or\x20null','INDEXER_DOC_QUEUED','limitOf','hasUniqueViolations','okdb-node:\x20a\x20background\x20async\x20handler\x20rejected:\x20','vector-search\x20engine\x20not\x20running:\x20\x22','unregisterExtractor',':txnRange','KNOWN_OPTIONS','job.bucket_tokens\x20must\x20be\x20int\x20>=1','$not','ensureFeed','hlc','embeddings:indexer:doc:queued','resumed','HTTP\x20','_native','bucket.refill_amount\x20must\x20be\x20int\x20>=\x200','job_type.payload_schema.definition\x20must\x20be\x20object','ttl','createReadStream','invalid\x20job.status:\x20','_teardownNative','~system','streamClose','ctxHeartbeat','Plugin\x20\x27','reject','removeLink','markJobHeartbeat','~files','routes','abort','listProviders','DEFAULT_TTL_MS','Too\x20many\x20concurrent\x20connections','ttlMs','session','getPosition()\x20{\x20return\x20position\x20},','clone','_ttlTimeout','reverse','tags','subscribe','_deliver','byteLength','_makePipelineApi','timerArmed','_autoCompact','pauseAllAndDrain','_listPeers','db.processors.','\x22\x20must\x20be\x20a\x20plain\x20object','remote','select','assertCreateAllowed','isReader','system','~queue_jobs','\x22\x20not\x20found','typesDb',':\x20unknown\x20option\x20\x27','oauth','_stream','setBridge','intervalTimer','_listenAddr','listTTL','_blobStatusDb','invalid\x20job_type.status:\x20','prefix','getMaxBodyBytes','resolveField:\x20type\x20required','getJob','_getFast','noteListenAddr','subscriptions-store:\x20addInterest\x20on\x20unknown\x20session\x20','engineStop','\x22)\x20before\x20open()','_stateDb','OKDBUniqueConstraintError','tries','dirty','Array.from)\x20before\x20any\x20await.','size','enqueue\x20txn\x20belongs\x20to\x20a\x20different\x20environment','whenSettled','compareKeys','index:drop','TXN_CLOSED','endsWith','node:stream','job.cron\x20must\x20be\x20string|null','failed','closeSession','handle','then','getStatus','enableAll','createWorker','__okdb','indexer','retry_delay',':index:','ms\x20mean=','rowKey','shutdownTimeout','_put','applyInterestDelta','durableRetryFailed','createLoginState','registerChunkStrategy','keyFor','byIndex','ensureTokensType','_kbuf','processors','processor:\x20cannot\x20combine\x20a\x20closure\x20handler\x20with\x20module:{path,export}.\x20','SCHEMA_COLLECTION_INVALID','itemsDb',':useReadTransaction','importJSON','offsetOf','BAD_EMBEDDER_FACTORY','_tokenSecret','importFromStream','issueToken','hash','free','pause','item:remove','assertStartAllowed','queue:log','payload_schema','vector-search','percentile','quarantined','setAutoCompact','markJobFail','spki','pop','setPrototypeOf','readFieldMany','_blobStream','checkSignals','cron','Invalid\x20index\x20key\x20type\x20for\x20\x27','view:progress','isSetupMode','extend','\x20must\x20be\x20a\x20non-empty\x20string;\x20got\x20','embedder\x20request\x20still\x20pending','timestamp','markSnapshotComplete','STARTING','job.type\x20must\x20be\x20non-empty\x20string','_setKey','indexReady','getResolvedOptions','isWriter','license:activated','claim_expires','drives','_ensure','refItemsDbs','getIndexStatus','waiting','stopView','heartbeat','setEncryptionKey','BAD_PARAM','setUint32','\x22\x20is\x20used\x20by:\x20','callPacked','process(entries)\x20requires\x20at\x20least\x20one\x20entry','system:poke','afterTurn','Cannot\x20openEnv(\x22','loop-lag\x20','_isOpen','_onFeedChange','setStorageResolver','expiresAt','buckets','fromEntries','headers','job.backoff_multiplier\x20must\x20be\x20number\x20>=\x201','ms\x20max=','keys','\x20must\x20be\x20number','isEnabled','flushQuantum','_handleInProcess','_dedupeMax','nidFor','getEntry','\x20log\x20entr','address','_id','nativeCode','_onStop','licenses','created','before\x20any\x20await\x20—\x20or\x20opt\x20into\x20useReadTransaction:\x27tolerant\x27\x20to\x20keep\x20reading\x20while\x20','OKDBError','setTTL','callAsync','tryClaimTokens','storageStats','OKDBInvalidIndexKeyError','match','resetCursor','dropIndex','creating','_warnUnknownOptions','startClaimed','assign','getUniqueViolations','prototype','_quantumGate','setDefaultTTL','enabled','_sweepInProgress','runStart','ensurePeerState','validate','getSession','INDEX_HAS_CONSUMERS','_rebuild','PLUGIN_NAME_CONFLICT','stream','$or','create','resetReadTxn','asyncIterator','bucket\x20too\x20long','stopped','_normalizeOAuthAuthResult','embed','TXN_END','embeddings:indexer:flushed','wake','_isLoopbackIp','_ack','getRunningEngine','_ensureVectorStore','getStateAt','tags\x20must\x20be\x20array\x20or\x20string','_buckets','describeChunk','applyChange','writerWatchdog','_license','registerAlgorithmFactory','removeResolver','job.buckets[].id\x20must\x20be\x20non-empty\x20string','txn:rollback','storePayload','enqueue','_isFar','SYSTEM_POKE','signalWant','HIGH_FREQ_EVENTS','setProcessingConfig','_reconcilePeer','NativeLock','encoder','group','INVALID_SCHEMA','registerTemplate','error_stack','for','isTypeEmpty','_stopAutoCompactCheck','before\x20any\x20await,\x20chunk\x20with\x20{limit,\x20start,\x20exclusiveStart},\x20or\x20drop\x20snapshot:true.','bucket.tokens\x20cannot\x20exceed\x20capacity','return\x20fromCharCode(','subsBuilt','_ttlByExpiry','undefined','_settleWaiters','_localViews','system:type_drop','_reconcile','committed','queue:rescheduled','captureStackTrace','dataEnv','job_type.defaults.priority\x20must\x20be\x20int\x20or\x20null','runGc','_txnIdAtSnapshot','validateBlobIntegrity','Database\x20not\x20started','regInfo','viewDb','replace','_blobPath','bus:drain','delta_limit','when','job_type.max_concurrency\x20must\x20be\x20int\x20>=\x201\x20or\x20null','_wrap','DOC_STATUS_CHANGE','IPv6','areIndexesReady','compact','FTS_FLUSH_TIMEOUT','_envs','_emit','job.claim_id\x20must\x20be\x20string|null','buildStep','setLogger','listRuns','reidentify','stateInfo','WriteBatch','_formerOrigins','includes','_listeners','_ensureDesired','_lookupByTokenHash','new','clockToChangeDb','removed','_flushDebounce','ENCRYPTION_KEY_REQUIRED','okdb.http.listen(port)\x20in\x20each\x20worker.','previewTemplate','flushTimeoutError','_wsettle','links','claim','indexContent','searchDocs','resolveBackupDest','version','encodeInto','bucket\x20\x22','reset','_draining','STOPPING','snapshotScan','startNewEnginesFromSync','inNativeCall','registerIndex','detachConsole','onDo','_write','internal','started','_clockToChangeDb','setMaxListeners','debug','HIGH_SENTINEL','~sub','utf8','clearDone','txn:end','bootLogMark','push','__warned','process(filter)',':keyToChange','EMBEDDER','getPeerAcks','apply','startAutoCompactCheck','record','~queue_logs','txn-commit','reduce','removeJobTypeSchema','payload','bind','compact/repair\x20already\x20in\x20progress\x20for\x20this\x20environment','system:env-sync','Key\x20is\x20too\x20large','privateKey','diag','true','open','_durableIndexerDoc','License\x20limit\x20exceeded:\x20','makeOkdb','bucket.refill_every\x20must\x20be\x20int\x20>=\x200','listIndexes','processorsStop','listViolations','drain','storeHasDiff','resolveData','inputSchema','emitWarning','use','worker','__syncOverride','runPoll','__tokenSecret','uninstallEngine','isWellFormed','_pokeListener','find','\x20returned\x20no\x20key','_log','equal','registerModel','__ref_index','Type\x20\x27','startBegin','44695wpJrjc','tokens','_onPending','fts:','unpin','_onPoke','type:drop','chunks','hasStopFn','isActive','Index\x20\x22','attach','empty\x20string','entries','getIndexCount','sourceType','\x27\x20does\x20not\x20exist','addJobType','ref:violation','\x20=\x20finishUtf8(','shouldApplyChange','spec','isInteger','msgpackr','algorithm\x20has\x20no\x20method\x20','createEnvironment','drop','export','ringSize','getEmbedderSchema','$mod','timeMachine','env:removed','exclusiveStart','dedupeMax','gcOrphanedBlobs','validateOidcAccessToken','clearStuck','_started','__after','_handles','Query\x20operator\x20\x22','~processes','_writeBlob','evict','Engine\x20driver\x20for\x20\x22','commit','clearTTL','origin','updated','_syncExpiresAtField','_ttlByKey','_buildOwnRow','_startAdmission','TypeError','asArray','encryptionKeys','_isWriter','backoff_multiplier','getClock','buildsPending','setAddress','670314VpNyVB','maxMs','~queue_payloads','createEngine','stor','opts','pipelines','$streamId',':clockToChange','VERSION_MISMATCH','(worst\x20','abs','inBatch','resetView','setFlushNotify','-worker','ENGINE_INVALID_TYPE','_autoCompactTimer','resolveField:\x20a\x20resolver\x20or\x20options.batch\x20is\x20required','patch','iterable','isWorker','set_null','_makeLazyVectorAdapter','$regex','Engine\x20driver\x20type\x20must\x20be\x20a\x20non-empty\x20string','idempotency_key','status','_defaultEnvObj','_timerHandle','RELAY_FULL','applyOps','okdb-node:\x20unknown\x20callback\x20id\x20','buildOwnRow','dbs','resolveField:\x20options.batch\x20must\x20be\x20a\x20function','_pending','bootRuntimeDeclarations','remoteAddress','selfKey','importBlobs','read','getAuthOptions','Index\x20\x27','Version\x20mismatch\x20for\x20','REMOVE','getSchema','digest','_closedHandle','repair','parseBearer','ctxProgress','async','now','once','_refIndexDb','setMaxBodyBytes','total','outgoing','cascade','storeGetTotalHeadCount','pendingResponses','resetting','_readerCheckInterval','$eq','OKDBTypeNotRegisteredError','autoCompactTimerArmed','a\x2032-character\x20key\x20or\x20a\x20function\x20returning\x20one','_handlerName','_macro','regObject','emitProc','durableDocs','forEach','readTransaction','query','\x20must\x20be\x20','_closed','mapError','968oDEiAn','action','params','job_type.id\x20must\x20be\x20non-empty\x20string','bridge','Plugin\x20must\x20have\x20a\x20name','processorsStart','boundary\x20(a\x20pinned\x20read\x20txn\x20blocks\x20LMDB\x20free-page\x20reuse).\x20Do\x20all\x20consistent\x20reads\x20','subscriptions-store:\x20open()\x20not\x20called','OKDBInvalidValueError','isLoopbackIp','no_action','WORKER','field:resolver_registered','schema:drop','getCount','job.bucket\x20must\x20be\x20string|null','OKDBAlreadyExistsError','\x22\x20tokens\x20must\x20be\x20>=\x201','getLegacyCursor','values','registerPreparer','_setPeerState','FIELD_RESOLVER_PENDING','split','boolean','exports','$size','removeEventListener','returnRecoverableErrors','json','_subscribeEvent','max','$options','putSync','requires','dropSchema','updateBucket','socket','explainIndex','describeType','3ZeSqAz','dupSort','describeIndex','sha256','refs','patchConfig','ensure:\x20fts\x20entry\x20missing\x20name\x20or\x20fields','errors','~log_entry','dropped','_lookupAllByName','prepareTxnEnqueue','registerModule','reg','dropFts','~engines','released\x20at\x20the\x20first\x20await/turn\x20boundary.\x20Consume\x20ranges\x20before\x20any\x20await,\x20or\x20','clearAsync','getHistory','import','_facade','INDEXER_DOC_DONE','ref','getIndexMeta','_drainOne','_keyFns','listRecords','_changefeed','claim\x20requires\x20non-empty\x20type','OKDBNotImplementedNativeError','ITEM_UPDATE','_staticCall','migrate','_openLocalPeerDb','resolvedOptions','flatMap','HTTP_CLUSTER_REMOVED','envNames','gateQuanta','_pressure','processor:resumed','progressed','list','__stateDb','embedBatch','bus','relay:error','setToken','setLogSink','_path','clear','removeEnvironment','_settled','REF_VIOLATION_RESOLVED','consumeLoginState','hasApi','storeEnvName','OKDBVersionMismatchError','_rbuf','license:removed','_workers','online','ENGINE_INVALID_DRIVER','listBlobStatus','function','existsSync','__ttlCancelledGen','envs','ITEM_CREATE','logCap','reconcilePeerPull','lastError','/([^/]+)','_peerDb','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.','embeddings:strategy:registered','(source)\x20=>\x20{','_ensureDbs','references','loginSelect','getRefViolation','isNaN','replaceInterests','_callMacro','LICENSE_LIMIT_EXCEEDED','job.finished\x20must\x20be\x20number|null','_assertRangeOptions','events','note','_features','proc','rebuild','req','_onItem','_ttlCompositeKey','hasNativeBatch','getKeys','removeJobType','retryFailed','code','_keyListener','\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','index:','listModels','encryption:key-changed','processorsParticipating','refill_every','patchSelf','rows','sift','admission','listNodes','ingest','flushed','_windowCbs','INVALID_VALUE','ms/','_openAckDb','forceResync','pinned','node:fs','getRun','(?:/(.*))?','updated_at','DEFAULT_EVENTS','_ttlTimerAt','empty\x20array','index:progress','3.1.7','logCap\x20must\x20be\x20null\x20or\x20integer\x20in\x20[','install','_jsFactories','node:cluster','processor:\x20specify\x20exactly\x20one\x20of\x20handler:\x27<name>\x27\x20or\x20module:{path,export},\x20not\x20both','_role','description','describeIndexes','_desired','setWake','READER_HELD_ACROSS_AWAIT','array','716594gBdQxH','concat','hasIndex','done','_getNodeRecord','describeAllTypesDetailed','effective','grouped','stopAll','recordRun','write','\x0a\x09\x09let\x20','durability','nextExpiry','close','listBuckets','_afterDurable','__cmd','pressure','_validateOidcAccessToken','okdb.noFast','auth','reason','removeBucket','label','search','ceil','\x27\x20does\x20not\x20exist\x20in\x20type\x20\x27','getEmbedderFactory','customReducerNames','length','_processorStops','_nm','getRecord','isBuffer','ctxUpdateStatus','_ackDb','batch','recordPeerAck','__sync:acks','getPrototypeOf','fromCharCode','durableRetryDoc','listRefViolations','apiCall','set','calculateDelta','releaseClaim','iterate','guard','_hybridQuery','addrs','okdb-node:\x20unknown\x20bridge\x20op\x20','fail','key','materializer','freeze','_read','stopWorkerAbort','registerDriver','a\x20non-empty\x20string','_remove','let\x20position;\x20let\x20readString\x20=\x20','createPipeline','feed:','_callPacked','MINIMUM_KEY','doc','lastClock','processes','INDEXER_DOC_FAILED','resetViewBegin','MCP_ERROR','isOpenForIp','_registerType','view','functions','has','.\x20Only\x20primitives,\x20null,\x20Buffers,\x20and\x20arrays\x20are\x20allowed.\x20Got:\x20','sessionsForKey','immediate','runRecord','dup','$defs','clearFailed','dataView','getBucket','registerHandler','resolvedFields','txnUndone','_assertOpen','isArray','embeddings:indexer:doc:done','\x20of\x20env\x20\x22','bigint','advanceHlcOnRecv','LICENSE_FEATURE_DISABLED','kick','_clearTTL','claimed','setInt32','ONLINE','string','unregisterTarget','properties','ENGINE_INVALID_TEMPLATE','localViewNames','getNodeRecord','OKDBSchemaCollectionError','token','repairBlobRefs','pauseJobType','setKick','registerViewReducer','\x27\x20conflicts\x20with\x20existing\x20OKDB\x20property','\x20(required\x20by\x20','inflight','ftsQuery','_admissionTimer','readString\x20}','priority','processor:error','tryAcquire','_sweepOrphanLogs','clearSync','targetType','byteOffset','\x27\x20export\x20\x27','_sinks','instance','retry','BAD_HOST','$lte','durableRebuild','OKDBInvalidPrimaryKeyError','ensure','Map','setSchema','removes','stringify','createBegin','slice','_typesDb','signal','registerType','ttlStats','tag\x20too\x20long','trim','pending','upsertLink','processor:retry','instanceTimerArmed','getVector','reencrypt','scheduled','.\x20Valid:\x20','attachConsole','STARTED','envName','role','failures','api','views','statusOpen','drainJobType','_tickCallback','_isClosedEnvError','_feed','_handle','types','files.upload:\x20stream','job.tries\x20must\x20be\x20non-negative\x20int','autoCompactState','$nor','docEntry','tolerant','createAndStartEngine','TXN_INVALID_OPS','exportName','_refCache','_logChange','pipelineFamily','a\x20Buffer\x20or\x20readable\x20stream','~proc:state','files','onLicenseExpired','throw','readerCheckIntervalMs','resumeJobType','_pdb','callStatic','_settleWrite','changes','syncBlobs','busState','item','items','Plugin\x20name\x20\x27','getValues','data','_quantum','UNKNOWN_RANGE_OPTION','start','prevDb','_detachLog','quarantinedEnvs','_assertFiles','guardSnapshotIterable','failed_ttl','durableClock','features','hasChangelog','SCHEMA_VALIDATION_FAILED','listPath','license:invalid','_cursors','useReadTransaction\x20read\x20view\x20expired:\x20the\x20snapshot\x20was\x20released\x20at\x20the\x20first\x20await/turn\x20','__lock','\x22\x20tokens\x20too\x20large','jsonrpcCode','queue:done','getEngine','lookupByName','getInt32','_timerObjs','env','lastTxnId','ensure:\x20type\x20is\x20required','setModeApplied','OKDBForeignKeyError','Engine\x20template\x20kind\x20must\x20be\x20\x22engine\x22\x20or\x20\x22pipeline\x22:\x20','TXN_START','workers','index:ready','vecPut','tierList','job.buckets\x20entries\x20must\x20be\x20objects','processor','quantum','handler','listPeers','_ensureTypeEnv','setFilter','authenticateToken','root','Referenced\x20type\x20\x27','_adminRelay','writerStatus','_markSeen','bus:type_drop','okdb','installed','_logEnv','Server','SUB_ENV','openDB','$payload','buffer','resolveModelDims','listTypes','durableStats','isFinite','QUEUE_WORKER_REMOVED','_asArray','drainDeadlineMs','SKIP','job.','Engine\x20template\x20must\x20be\x20a\x20plain\x20object','stateNames','\x27\x20on\x20type\x20\x27','groupsDb','definition','localViewStats','sweepExpiredTTL','_txnBuf','wait','head','sseClose','defaultTTL','fetchPeer','onDelete','_rawTxnBuf','STOPPED','2464884JagZgZ','bus:env_release','planUpdateJob','restart','subarray','_writer','charCodeAt','_build','byLabel','OKDBSchemaValidationError','_rebuilding','Unknown\x20transaction\x20action:\x20','status_code','spawn','resolveField:\x20field\x20required','sessionId','\x20=\x20source[position++]\x0a\x09\x09if\x20(','markJobProgress','resetIndex','Embedder\x20factory\x20must\x20be\x20a\x20function','process','clearDefaultTTL','acquiredAt','FTS_BUILD_CONTINUE','unique','exportEnvsToStream','ttlSetEntry','job_type.defaults\x20must\x20be\x20object|null','resume','connectionCount','_pokeHandler','_create','Transaction\x20already\x20closed','enforced','Symbol.asyncIterator','txnId','stderr','compare','processor:\x20rebuild\x20must\x20be\x20a\x20function','embedder\x20is\x20gone','_run','bootSyncedPipelines','_emitProc','unresolveField','bumpVersion','processorsStatus','engines','finished','end','job.buckets\x20must\x20be\x20array|null','max_concurrency','prefetch','each\x20process()\x20entry\x20requires\x20a\x20non-empty\x20`type`','ctrl','\x20already\x20exists','count','system:clock_change','processor:\x20module.path\x20is\x20required','warn','_seen','_busFacade','onWindow','resetIndexBegin','min','reducers','_tids','setCurrentDb','REBUILD_IN_PROGRESS','_sub','debounceTimer','REF_VIOLATION','bucket.capacity\x20must\x20be\x20int\x20>=\x200','_ttlState','Cannot\x20set\x20enforce\x20schema\x20on\x20','_claimGated','meta','node:path','options','flush','off','invalid\x20log\x20level:\x20','job\x20id\x20required','turn','write\x20batch:\x20missing\x20result','getSecurityNotices','level','authenticateRequest','_doHooks','CHANGEFEED_QUANTUM','embeddings','logChange','feature','_durableWorkerStats','callBatch','initialize','markJobComplete','listen','setClaiming','job_type.defaults.','$where','listVectorStores','bucketsDb','return','_ensureEnv','addBucket','_ringSize','FOREIGN_KEY_VIOLATION','_dupArg','err','storeGetHead','unreg','isCoordinator','formerOrigins','exists','stack','docs','_nextExpiry','detach','_running','24660CjfnSP','durableMarkDelete','ready','bus:proc','~log','job_type.defaults.backoff_multiplier\x20must\x20be\x20number\x20>=\x201\x20or\x20null','engine\x20api\x20has\x20no\x20method\x20\x27','createIndexer','_syncLock','formerIds','from','autoCompact','createPublicKey','stopWorkerBegin','getBlobStatus','stats','limit','buckets\x20must\x20be\x20array\x20or\x20string','_lockHandle','sourceKey','update','registerExtractor','durableEmbedderInfo','_tx','_resolveKeys','processRest()','stopping','loadedPath','\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.','_stopFor','_compactLock','__adminRelay','embeddings:indexer:doc:failed','fts','getSelfNode','\x20>=\x200x80)\x20','INACTIVE','_db','_release','createQueryTester','~queue_buckets','get','\x20was\x20removed\x20in\x20okdb\x202.0.\x20Use\x20processors:true\x20for\x20plain\x20lease\x20participation.\x20See\x20docs/upgrade-2.0.md.','mean','ensure:\x20view\x20entry\x20missing\x20name\x20or\x20definition','job.priority\x20must\x20be\x20int','getTemplate','Invalid\x20onDelete\x20rule\x20\x27','job.error_stack\x20must\x20be\x20string|null','pin','login','_buffer','ALL_EVENTS','http.listen:\x20host\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20a\x20non-empty\x20array\x20of\x20non-empty\x20strings','processorHold','tick','drivers','__peers','type:','_registrations','log','queue:removed','hook','resolveField','callRows','ttlTimer','Storage\x20resolver\x20must\x20be\x20a\x20function','_wb','\x22\x20must\x20have\x20a\x20start()\x20method','replaceMember','resetIndexFinish','writeKey','INVALID_PRIMARY_KEY','job.status_message\x20must\x20be\x20string|null','_advanceHlcOnRecv','taken','TXN_ERROR','engineUninstall','17381639rlqYfq','addSSE','embeddings:doc:status_change','_nodePublicKey','floor','symbol','body','buildPending','args','toJSON','~ttl:expiry','listTemplates','getUint32','openEnv','_listening','_getPeerState','sortedDb','itemsGroups','listJobTypes','\x20>\x204)\x20{\x0a\x09\x09\x09if\x20(','trunc','isOrchestrator',':\x20expected\x20','CLI\x20(`okdb\x20listen`),\x20or\x20use\x20Node\x27s\x20built-in\x20`cluster`\x20module\x20and\x20call\x20','_blobsDir','ttl:clear','port','_baselines','.\x20Add\x20a\x20license\x20that\x20includes\x20\x22','filter','getGcHorizon','storage\x20adapter\x20has\x20no\x20method\x20','sseSetHeader','registerBucketProjection','job.retry_delay\x20must\x20be\x20int\x20>=\x200','registerTarget','_inlineClosureWarned','listening','_dedupeKey','engine:','must\x20be\x20an\x20object;\x20got\x20null','isType','exportToStream','_isBootstrap','_waitNative','_np','reconcile','durableMarkFail','utf8Write','_blobStatusTxn','node','__fts:','_viewCache','/?$','disable','crypto','__ttlByKey','_locks','setDeltaLimit','getIndex','toMs','failJob','__notImplementedNative','T_INTEREST','servers','TYPE_ALREADY_REGISTERED','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.','\x22\x20not\x20found\x20in\x20~envs','next','durableMarkDone','catch','_getOidcDiscovery','unknown\x20promise\x20token','Engine\x20driver\x20already\x20registered:\x20\x22','notes','backupRoot','_drain','EMBED_PENDING','processor:progress','retryable','event','registerHandler:\x20fn\x20must\x20be\x20a\x20function','__logsDb','\x27\x20already\x20registered','family','nextTurn','gen','range','default','_maxConnections','getTTL','\x20===\x204)\x0a\x09\x09\x09\x09','log\x20entry\x20must\x20be\x20a\x20string\x20or\x20object','exportBlobs','ttl:set','hybridQuery','lastIndexOf','itemsPlan','_push','resetFts','toFixed','isDeepStrictEqual','_durableEmbedderInfo','join','INVALID_STATE','_enableChangelog','_plugins','sparse','OKDBTypeAlreadyRegisteredError','Foreign\x20key\x20violation:\x20','remove','processEverything()','flushDebounce','setCursor','setKeyBuffer','ctxSignal','ensureDesired','encryptionKey','dropType','createdBy','_range','resetUnknownOptionsWarned','system:env_release','resolution','runDrop','server','registerQuantum:\x20load\x20must\x20be\x20a\x20function','\x22\x20to\x20enable\x20it.','destroy','busEmit','modeApplied','_resolveFilter','__ttlByExpiry','changeEncryptionKey:\x20to','bootSyncedViews','queue:clear-done','nodeKey','OKDBForeignKeyDeleteError','encryption\x20key\x20function\x20failed:\x20','RangeError','ctxLog','load','DONE','refreshThresholdMs','useReadTransaction','defaults','okdb-','\x27\x20doesn\x27t\x20exist','./native-loader.js','log\x20entry\x20fields\x20too\x20large\x20(>2KB\x20serialized)','cancelJob','metaDb','system:drain','limits','updateJob','_durableIndexerStats','registerQuantum','_retryPending','$ne','transactionSync','job.idempotency_key\x20must\x20be\x20string|null','listIndexKeys','setLastClock','~fts:envs','dims','reconcileDesired','uninstall',':emb:','\x22\x20requires\x20a\x20`handler`\x20function','\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer','resolveField:\x20resolver\x20must\x20be\x20a\x20function','getStats','processor:ready','75275lWWRvY','durableWorkerStats','holder','.\x20Primary\x20keys\x20must\x20be\x20string\x20or\x20number.\x20Got:\x20','_low','getAll','getFloat64','ITEM_PENDING','setJobTypeSchema','randomUUID','map','writeBlob','_env','\x20dropped\x20(buffer\x20full)','_readViewExpired','object','register',':\x20key\x20[','preview','_indexBuilds','env:opened','getChanges','Can\x20not\x20serialize\x20async\x20iterables\x20without\x20first\x20calling\x20resolving\x20asArray','embedder','Invalid\x20primary\x20key\x20type:\x20','library\x20(okdb\x20node-model\x202.0).\x20For\x20multi-process\x20HTTP\x20serving\x20use\x20the\x20okdb\x20','fieldPath','@harperdb/extended-iterable:skip','refreshTtl','forceAfterMs','$nin','_report','takeBuildResult','running','_systemEnv','_commitSessionMutation'];_0x394d=function(){return _0x3a40e5;};return _0x394d();}module[_0x1ade1a(0x3bf)]=index;
1
+ 'use strict';const _0x5b9a04=_0x48c6;(function(_0x18ae2c,_0xa3bfe1){const _0x40e004=_0x48c6,_0x386e90=_0x18ae2c();while(!![]){try{const _0x39b1a5=-parseInt(_0x40e004(0x658))/0x1+-parseInt(_0x40e004(0x5c8))/0x2*(parseInt(_0x40e004(0x300))/0x3)+-parseInt(_0x40e004(0x2ec))/0x4+-parseInt(_0x40e004(0x2cd))/0x5*(parseInt(_0x40e004(0x525))/0x6)+parseInt(_0x40e004(0x3b7))/0x7*(-parseInt(_0x40e004(0x238))/0x8)+parseInt(_0x40e004(0x33d))/0x9+-parseInt(_0x40e004(0x7e6))/0xa*(-parseInt(_0x40e004(0x6d9))/0xb);if(_0x39b1a5===_0xa3bfe1)break;else _0x386e90['push'](_0x386e90['shift']());}catch(_0x3477b2){_0x386e90['push'](_0x386e90['shift']());}}}(_0x3d94,0xcd2b2));var require$$0$6=require(_0x5b9a04(0x4cf)),require$$1$1=require(_0x5b9a04(0x693)),require$$0=require(_0x5b9a04(0x1a4)),require$$1=require(_0x5b9a04(0x340)),require$$4=require('node:path'),require$$0$2=require('node:crypto'),require$$0$1=require(_0x5b9a04(0x440)),require$$16=require(_0x5b9a04(0x4f7)),require$$0$3=require(_0x5b9a04(0x4c9)),require$$2=require(_0x5b9a04(0x236)),require$$18=require(_0x5b9a04(0x7cd)),require$$0$4=require(_0x5b9a04(0x895)),require$$0$5=require(_0x5b9a04(0x750));function getDefaultExportFromCjs(_0x236762){const _0xa9e86f=_0x5b9a04;return _0x236762&&_0x236762[_0xa9e86f(0x58a)]&&Object[_0xa9e86f(0x331)]['hasOwnProperty'][_0xa9e86f(0x601)](_0x236762,_0xa9e86f(0x55b))?_0x236762[_0xa9e86f(0x55b)]:_0x236762;}var lib={'exports':{}},okdbError,hasRequiredOkdbError;function requireOkdbError(){if(hasRequiredOkdbError)return okdbError;hasRequiredOkdbError=0x1;class _0x18dd66 extends Error{constructor(_0x201b90,_0x2c772f,_0x7be3aa={}){const _0x1741b6=_0x48c6;super(_0x201b90),this[_0x1741b6(0x761)]=_0x1741b6(0x285),this[_0x1741b6(0x604)]=_0x2c772f,this[_0x1741b6(0x312)]=_0x7be3aa,_0x7be3aa[_0x1741b6(0x289)]&&(this[_0x1741b6(0x289)]=_0x7be3aa[_0x1741b6(0x289)]),Error[_0x1741b6(0x4ab)](this,this[_0x1741b6(0x730)]);}}class _0x1ca4d2 extends _0x18dd66{constructor(_0x3720ce,_0x4bde57,_0x2bd3a3,_0x330e81){const _0x12abd1=_0x48c6;super('Version\x20mismatch\x20for\x20'+_0x3720ce+'@'+_0x4bde57+_0x12abd1(0x45f)+_0x2bd3a3+_0x12abd1(0x4ac)+_0x330e81,_0x12abd1(0x75b),{'type':_0x3720ce,'key':_0x4bde57,'expectedVersion':_0x2bd3a3,'actualVersion':_0x330e81}),this['name']=_0x12abd1(0x76b);}}class _0x51a8f extends _0x18dd66{constructor(_0x2e930d,_0x1a2aa4){const _0x16b2ed=_0x48c6;super(_0x2e930d+'@'+_0x1a2aa4+'\x20does\x20not\x20exist',_0x16b2ed(0x444),{'type':_0x2e930d,'key':_0x1a2aa4}),this[_0x16b2ed(0x761)]=_0x16b2ed(0x48b);}}class _0x208a9e extends _0x18dd66{constructor(_0x586483,_0x2bf124){const _0x36b9f5=_0x48c6;super(_0x586483+'@'+_0x2bf124+_0x36b9f5(0x1c6),_0x36b9f5(0x3e7),{'type':_0x586483,'key':_0x2bf124}),this[_0x36b9f5(0x761)]='OKDBAlreadyExistsError';}}class _0x3766df extends _0x18dd66{constructor(_0x2a56f4,_0x2f741c){const _0x3d6079=_0x48c6,_0x15dcf6=typeof _0x2f741c;super(_0x3d6079(0x79d)+_0x2a56f4+_0x3d6079(0x62a)+_0x15dcf6+'.\x20Only\x20primitives,\x20null,\x20Buffers,\x20and\x20arrays\x20are\x20allowed.\x20Got:\x20'+_0x2f741c,'INVALID_INDEX_KEY',{'index':_0x2a56f4,'key':_0x2f741c,'keyType':_0x15dcf6}),this[_0x3d6079(0x761)]=_0x3d6079(0x700);}}class _0x1eee83 extends _0x18dd66{constructor(_0x1ef09e){const _0x2e7415=_0x48c6,_0x3df3e0=typeof _0x1ef09e;super(_0x2e7415(0x717)+_0x3df3e0+_0x2e7415(0x4af)+_0x1ef09e,_0x2e7415(0x541),{'key':_0x1ef09e,'keyType':_0x3df3e0}),this[_0x2e7415(0x761)]=_0x2e7415(0x82d);}}class _0x4b24c6 extends _0x18dd66{constructor(_0x223b9e){const _0x805681=_0x48c6;super('Type\x20\x27'+_0x223b9e+_0x805681(0x26c),_0x805681(0x42c),{'type':_0x223b9e}),this[_0x805681(0x761)]=_0x805681(0x733);}}class _0x3efe74 extends _0x18dd66{constructor(_0x275e8e){const _0x4246af=_0x48c6;super('Type\x20\x27'+_0x275e8e+_0x4246af(0x813),_0x4246af(0x694),{'type':_0x275e8e}),this[_0x4246af(0x761)]=_0x4246af(0x419);}}class _0x53e0cd extends _0x18dd66{constructor(_0x28d971,_0x2d51d0){const _0x3754a6=_0x48c6;super(_0x3754a6(0x4fb)+_0x2d51d0+_0x3754a6(0x6c6)+_0x28d971+_0x3754a6(0x26c),_0x3754a6(0x39d),{'type':_0x28d971,'index':_0x2d51d0}),this[_0x3754a6(0x761)]=_0x3754a6(0x7b8);}}class _0x3a1c74 extends _0x18dd66{constructor(_0x1fe0a1,_0x586ff9){const _0x3b32d9=_0x48c6;super(_0x3b32d9(0x4fb)+_0x586ff9+_0x3b32d9(0x6c6)+_0x1fe0a1+_0x3b32d9(0x244),_0x3b32d9(0x75d),{'type':_0x1fe0a1,'index':_0x586ff9}),this[_0x3b32d9(0x761)]=_0x3b32d9(0x612);}}class _0x11693b extends _0x18dd66{constructor(_0x2d4010,_0x225840={}){const _0x1f1f08=_0x48c6;super(_0x2d4010,_0x1f1f08(0x738),_0x225840),this[_0x1f1f08(0x761)]='OKDBInvalidValueError';}}class _0x2ad57f extends _0x18dd66{constructor(_0xfe6144,_0x378b5d,_0x3897e0,_0x1142b1,_0x55dad1){const _0x56a210=_0x48c6;super('Unique\x20constraint\x20violated\x20on\x20'+_0xfe6144+'@'+_0x378b5d+_0x56a210(0x205)+_0x3897e0+_0x56a210(0x72d)+_0x1142b1+_0x56a210(0x579)+_0x55dad1+'\x27',_0x56a210(0x7dc),{'type':_0xfe6144,'index':_0x378b5d,'indexKey':_0x3897e0,'existingKey':_0x1142b1,'conflictingKey':_0x55dad1}),this[_0x56a210(0x761)]=_0x56a210(0x1b4);}}class _0xb04c6c extends _0x18dd66{constructor(_0x2d58a7,_0x35b08e,_0x321d30){const _0x140120=_0x48c6;super(_0x140120(0x57f)+_0x2d58a7+'@'+_0x35b08e,_0x140120(0x65d),{'type':_0x2d58a7,'key':_0x35b08e,'errors':_0x321d30}),this[_0x140120(0x761)]=_0x140120(0x8ca),this[_0x140120(0x6eb)]=_0x2d58a7,this[_0x140120(0x1e8)]=_0x35b08e,this[_0x140120(0x1fd)]=_0x321d30;}}class _0x3d186a extends _0x18dd66{constructor(_0x53ad9b,_0x49ca56){const _0x319862=_0x48c6;super(_0x319862(0x7f1)+_0x53ad9b+':\x20'+_0x49ca56['length']+_0x319862(0x2d8),_0x319862(0x459),{'type':_0x53ad9b,'failures':_0x49ca56}),this[_0x319862(0x761)]=_0x319862(0x303),this[_0x319862(0x6eb)]=_0x53ad9b,this['failures']=_0x49ca56;}}class _0x196db6 extends _0x18dd66{constructor(_0x173136,_0x420881,_0x27b86b,_0x362b99,_0x96eeb1){const _0x184098=_0x48c6;super('Foreign\x20key\x20violation:\x20'+_0x173136+'@'+_0x420881+'.'+_0x27b86b+_0x184098(0x246)+_0x362b99+'@'+_0x96eeb1+_0x184098(0x429),_0x184098(0x7c1),{'sourceType':_0x173136,'sourceKey':_0x420881,'fieldPath':_0x27b86b,'targetType':_0x362b99,'targetKey':_0x96eeb1}),this[_0x184098(0x761)]='OKDBForeignKeyError',this['sourceType']=_0x173136,this['sourceKey']=_0x420881,this[_0x184098(0x61c)]=_0x27b86b,this[_0x184098(0x3b0)]=_0x362b99,this[_0x184098(0x356)]=_0x96eeb1;}}class _0x54cf3d extends _0x18dd66{constructor(_0x5d0e96,_0x58f3f1,_0x22526e){const _0x529b9b=_0x48c6;super('Cannot\x20delete\x20'+_0x5d0e96+'@'+_0x58f3f1+':\x20'+_0x22526e[_0x529b9b(0x2ea)]+_0x529b9b(0x584),_0x529b9b(0x875),{'targetType':_0x5d0e96,'targetKey':_0x58f3f1,'references':_0x22526e}),this[_0x529b9b(0x761)]=_0x529b9b(0x651),this['targetType']=_0x5d0e96,this[_0x529b9b(0x356)]=_0x58f3f1,this['references']=_0x22526e;}}class _0x59baee extends _0x18dd66{constructor(_0x3fa33b,_0x120212,_0xde1b81){const _0x1f2430=_0x48c6;super('Index\x20\x22'+_0x120212+_0x1f2430(0x373)+_0x3fa33b+_0x1f2430(0x3b8)+_0xde1b81[_0x1f2430(0x8a1)](_0xaca36c=>_0xaca36c[_0x1f2430(0x3b9)]+':'+_0xaca36c[_0x1f2430(0x761)])[_0x1f2430(0x47b)](',\x20'),_0x1f2430(0x35a),{'type':_0x3fa33b,'index':_0x120212,'usedBy':_0xde1b81}),this[_0x1f2430(0x761)]='OKDBIndexHasConsumersError';}}return okdbError={'OKDBError':_0x18dd66,'OKDBVersionMismatchError':_0x1ca4d2,'OKDBNotFoundError':_0x51a8f,'OKDBAlreadyExistsError':_0x208a9e,'OKDBInvalidIndexKeyError':_0x3766df,'OKDBInvalidPrimaryKeyError':_0x1eee83,'OKDBTypeNotRegisteredError':_0x4b24c6,'OKDBTypeAlreadyRegisteredError':_0x3efe74,'OKDBIndexNotRegisteredError':_0x53e0cd,'OKDBIndexAlreadyRegisteredError':_0x3a1c74,'OKDBInvalidValueError':_0x11693b,'OKDBUniqueConstraintError':_0x2ad57f,'OKDBSchemaValidationError':_0xb04c6c,'OKDBSchemaCollectionError':_0x3d186a,'OKDBForeignKeyError':_0x196db6,'OKDBForeignKeyDeleteError':_0x54cf3d,'OKDBIndexHasConsumersError':_0x59baee},okdbError;}var errors,hasRequiredErrors;function requireErrors(){const _0x6679bf=_0x5b9a04;if(hasRequiredErrors)return errors;hasRequiredErrors=0x1;const _0x232c00=requireOkdbError(),_0x494d7e={'VERSION_MISMATCH':_0x232c00[_0x6679bf(0x76b)],'NOT_FOUND':_0x232c00['OKDBNotFoundError'],'ALREADY_EXISTS':_0x232c00[_0x6679bf(0x4de)],'INVALID_INDEX_KEY':_0x232c00[_0x6679bf(0x700)],'INVALID_PRIMARY_KEY':_0x232c00['OKDBInvalidPrimaryKeyError'],'TYPE_NOT_REGISTERED':_0x232c00[_0x6679bf(0x733)],'TYPE_ALREADY_REGISTERED':_0x232c00[_0x6679bf(0x419)],'INDEX_NOT_REGISTERED':_0x232c00['OKDBIndexNotRegisteredError'],'INDEX_ALREADY_REGISTERED':_0x232c00[_0x6679bf(0x612)],'INVALID_VALUE':_0x232c00['OKDBInvalidValueError'],'UNIQUE_CONSTRAINT':_0x232c00[_0x6679bf(0x1b4)],'SCHEMA_VALIDATION_FAILED':_0x232c00[_0x6679bf(0x8ca)],'SCHEMA_COLLECTION_INVALID':_0x232c00['OKDBSchemaCollectionError'],'FOREIGN_KEY_VIOLATION':_0x232c00[_0x6679bf(0x61a)],'FOREIGN_KEY_DELETE_RESTRICTED':_0x232c00[_0x6679bf(0x651)],'INDEX_HAS_CONSUMERS':_0x232c00[_0x6679bf(0x6e7)]};class _0x3bbf24 extends _0x232c00[_0x6679bf(0x285)]{constructor(_0x4211f6,_0x26719a){const _0x5260e3=_0x6679bf;super(_0x4211f6+_0x5260e3(0x7e7)+(_0x26719a?'\x20('+_0x26719a+')':''),_0x5260e3(0x5ae),{'feature':_0x4211f6}),this[_0x5260e3(0x761)]=_0x5260e3(0x62b);}}function _0x3667df(_0x41c5c5){const _0x29a731=_0x6679bf;if(!_0x41c5c5||typeof _0x41c5c5!=='object'||!_0x41c5c5[_0x29a731(0x783)])return _0x41c5c5;delete _0x41c5c5[_0x29a731(0x783)];const _0x41aa9c=_0x41c5c5[_0x29a731(0x604)];if(_0x41aa9c==='Error'||_0x41aa9c==='TypeError'||_0x41aa9c===_0x29a731(0x327)){const _0x316e58=_0x41aa9c==='TypeError'?TypeError['prototype']:_0x41aa9c==='RangeError'?RangeError[_0x29a731(0x331)]:Error[_0x29a731(0x331)];Object['setPrototypeOf'](_0x41c5c5,_0x316e58),_0x41c5c5[_0x29a731(0x761)]=_0x41aa9c;if(_0x41c5c5['details']&&_0x41c5c5[_0x29a731(0x312)][_0x29a731(0x71d)]!==undefined)_0x41c5c5[_0x29a731(0x71d)]=_0x41c5c5['details'][_0x29a731(0x71d)];return delete _0x41c5c5['code'],delete _0x41c5c5['details'],_0x41c5c5;}const _0x36045d=_0x494d7e[_0x41aa9c];Object['setPrototypeOf'](_0x41c5c5,(_0x36045d||_0x232c00[_0x29a731(0x285)])[_0x29a731(0x331)]),_0x41c5c5[_0x29a731(0x761)]=_0x36045d?_0x36045d[_0x29a731(0x761)][_0x29a731(0x1ec)](/^OKDB/,_0x29a731(0x6b8)):'OKDBError';const _0x84ddf8=_0x41c5c5[_0x29a731(0x312)]||{};_0x41aa9c===_0x29a731(0x65d)&&(_0x41c5c5['type']=_0x84ddf8[_0x29a731(0x6eb)],_0x41c5c5['key']=_0x84ddf8[_0x29a731(0x1e8)],_0x41c5c5[_0x29a731(0x1fd)]=_0x84ddf8[_0x29a731(0x1fd)]);_0x41aa9c==='SCHEMA_COLLECTION_INVALID'&&(_0x41c5c5['type']=_0x84ddf8['type'],_0x41c5c5[_0x29a731(0x228)]=_0x84ddf8[_0x29a731(0x228)]);if(_0x41aa9c===_0x29a731(0x7c1)){for(const _0xc279a4 of[_0x29a731(0x73f),'sourceKey',_0x29a731(0x61c),_0x29a731(0x3b0),'targetKey'])_0x41c5c5[_0xc279a4]=_0x84ddf8[_0xc279a4];}if(_0x41aa9c==='FOREIGN_KEY_DELETE_RESTRICTED'){for(const _0x35ea23 of[_0x29a731(0x3b0),_0x29a731(0x356),'references'])_0x41c5c5[_0x35ea23]=_0x84ddf8[_0x35ea23];}if(_0x84ddf8[_0x29a731(0x289)])_0x41c5c5[_0x29a731(0x289)]=_0x84ddf8[_0x29a731(0x289)];if(_0x84ddf8[_0x29a731(0x71d)]!==undefined)_0x41c5c5[_0x29a731(0x71d)]=_0x84ddf8[_0x29a731(0x71d)];if(_0x84ddf8['retryable']!==undefined)_0x41c5c5[_0x29a731(0x794)]=_0x84ddf8[_0x29a731(0x794)];return _0x41c5c5;}function _0x22133f(_0x5227cb){const _0x1b86a7=_0x6679bf;if(_0x5227cb===undefined)return'undefined';if(_0x5227cb===null)return'null';if(typeof _0x5227cb===_0x1b86a7(0x431))return _0x5227cb?_0x1b86a7(0x431):_0x1b86a7(0x836);if(typeof _0x5227cb===_0x1b86a7(0x4d1))return _0x1b86a7(0x4d1);if(typeof _0x5227cb!=='object')return typeof _0x5227cb;if(Array[_0x1b86a7(0x562)](_0x5227cb))return _0x5227cb['length']?'array':_0x1b86a7(0x852);if(_0x5227cb instanceof Date)return _0x1b86a7(0x50d);if(_0x5227cb instanceof Map)return _0x1b86a7(0x4c3);if(Buffer[_0x1b86a7(0x85f)](_0x5227cb))return _0x1b86a7(0x544);return _0x1b86a7(0x6ea);}const _0x2e57fa=(_0x1ec0aa,_0x3aa014,_0x1b86c3)=>new _0x232c00[(_0x6679bf(0x285))](_0x3aa014,_0x1ec0aa,_0x1b86c3),_0x4315f7=(_0x5220ef,_0x27b768,_0x587607)=>_0x2e57fa(_0x6679bf(0x536),_0x5220ef+_0x6679bf(0x8ad)+_0x27b768+_0x6679bf(0x531)+_0x22133f(_0x587607),{'argument':_0x5220ef,'expected':_0x27b768,'got':_0x22133f(_0x587607)}),_0x18750f=(_0x3b0306,_0x142616)=>_0x2e57fa(_0x6679bf(0x1e0),_0x3b0306+_0x6679bf(0x652)+_0x22133f(_0x142616),{'argument':_0x3b0306,'expected':'non-empty\x20string','got':_0x22133f(_0x142616)}),_0x365bae=(_0x113b17,_0x4f5d90)=>_0x2e57fa('INVALID_OPTIONS',_0x113b17+':\x20'+_0x4f5d90,{'argument':_0x113b17,'problem':_0x4f5d90});function _0x1d2fb8(_0x415e7f,_0x59d673='options'){const _0x320efa=_0x6679bf;if(_0x415e7f===undefined)return{};if(_0x415e7f===null)throw _0x365bae(_0x59d673,_0x320efa(0x80e));return _0x415e7f;}return errors={'reclass':_0x3667df,'NotImplementedNative':_0x3bbf24,'BY_CODE':_0x494d7e,'describe':_0x22133f,'invalidArgument':_0x4315f7,'invalidTypeName':_0x18750f,'invalidOptions':_0x365bae,'optionsArg':_0x1d2fb8,..._0x232c00},errors;}var bridge_1,hasRequiredBridge;function requireBridge(){if(hasRequiredBridge)return bridge_1;hasRequiredBridge=0x1;const _0xcdd363=new Map(),_0x52dc2c=new Map();let _0x2effb5=0x1;const _0x375522=new Map(),_0x1a6e95=new Map();let _0x1399f0=0x1;const _0x3ae580=new Map();let _0x232ccb=0x1;const _0x5e47c5=new Map();function _0x1b28d4(_0x4dc813,_0x57c88b=null){const _0x2b10c2=_0x48c6,_0x207233=_0x232ccb++;_0x3ae580[_0x2b10c2(0x5e7)](_0x207233,_0x4dc813);if(_0x57c88b)_0x5e47c5['set'](_0x207233,_0x57c88b);return _0x207233;}function _0x2d2ff0(_0xacf801,_0x17aabc){const _0x5eee74=_0x48c6,_0x161b90=_0x3ae580[_0x5eee74(0x67f)](_0xacf801),_0xef77d6=Array[_0x5eee74(0x331)][_0x5eee74(0x4bb)][_0x5eee74(0x601)](arguments,0x2),_0x54ef24=_0x576e33=>_0x15a447(_0x576e33,_0x5e47c5[_0x5eee74(0x67f)](_0xacf801));let _0x3a246e=_0xef77d6;if(_0x17aabc===_0x5eee74(0x362)||_0x17aabc===_0x5eee74(0x1b5)||_0x17aabc===_0x5eee74(0x3bc)||_0x17aabc===_0x5eee74(0x719)||_0x17aabc==='assertStartAllowed')_0x3a246e=[_0x54ef24(_0xef77d6[0x0])];else{if(_0x17aabc===_0x5eee74(0x624))_0x3a246e=[_0xef77d6[0x0],_0xef77d6[0x1],_0x54ef24(_0xef77d6[0x2])];else{if(_0x17aabc===_0x5eee74(0x474))_0x3a246e=[_0x54ef24(_0xef77d6[0x0])];}}let _0x2aac71=_0x161b90[_0x17aabc](..._0x3a246e);if(_0x2aac71&&typeof _0x2aac71[_0x5eee74(0x6f0)]==='function')_0x2aac71=_0x5223b8(_0x2aac71);if(_0x17aabc==='start'){const _0x163571=_0x2aac71&&typeof _0x2aac71==='object'?_0x1b28d4(_0x2aac71):_0x1b28d4({});return{'$api':_0x163571};}return _0x2aac71===undefined?null:_0x2aac71;}function _0x15a447(_0x31eb52,_0x1331c1){const _0x37a9cd=_0x48c6;let _0x522de6=_0x23ed0e[_0x37a9cd(0x67f)](_0x31eb52[_0x37a9cd(0x6a1)]);const _0x3efd1f=_0x522de6&&_0x522de6['okdb']||_0x1331c1||_0x11ca06,_0x226bc2=(_0x429549,..._0x481900)=>_0x3efd1f['_call'](_0x37a9cd(0x439),null,_0x429549,[_0x31eb52['type'],_0x31eb52[_0x37a9cd(0x761)],..._0x481900],!![]);return{'okdb':_0x3efd1f,'key':_0x31eb52[_0x37a9cd(0x1e8)],'type':_0x31eb52[_0x37a9cd(0x6eb)],'name':_0x31eb52[_0x37a9cd(0x761)],get 'storeEnv'(){const _0x40dd90=_0x37a9cd;if(!_0x522de6&&_0x3efd1f&&_0x3efd1f[_0x40dd90(0x70a)]&&_0x31eb52['storeEnvName'])_0x522de6=_0x3efd1f['_envs'][_0x40dd90(0x67f)](_0x31eb52[_0x40dd90(0x41b)]);return _0x522de6;},'storeEnvName':_0x31eb52[_0x37a9cd(0x41b)],'config':_0x31eb52[_0x37a9cd(0x35e)],'meta':_0x31eb52[_0x37a9cd(0x72f)],'options':_0x31eb52[_0x37a9cd(0x51c)],'emit':(_0x5b1b6d,_0xe739e8)=>_0x226bc2(_0x37a9cd(0x2e1),_0x5b1b6d,_0xe739e8),'updateStatus':async(_0x5a3f53,_0x4c5b64)=>_0x226bc2(_0x37a9cd(0x3e9),_0x5a3f53,_0x4c5b64==null?null:String(_0x4c5b64&&_0x4c5b64[_0x37a9cd(0x2b8)]?_0x4c5b64[_0x37a9cd(0x2b8)]:_0x4c5b64)),'updateMeta':async _0x534cfe=>_0x226bc2(_0x37a9cd(0x1d3),{'meta':_0x534cfe}),'updateConfig':async _0x297612=>_0x226bc2(_0x37a9cd(0x1d3),{'config':_0x297612})};}function _0x4e53cf(_0x26cfb1,_0x3622e6,_0x4c1e35){const _0x470ae8=_0x48c6;if(_0x26cfb1===_0x470ae8(0x1ba)){const _0x42f715=_0x157854(_0x3622e6);let _0x38ab77=_0x42f715(_0x4c1e35);if(_0x38ab77&&typeof _0x38ab77[_0x470ae8(0x6f0)]==='function')_0x38ab77=_0x5223b8(_0x38ab77);if(!_0x38ab77||typeof _0x38ab77[_0x470ae8(0x7e9)]!==_0x470ae8(0x4d1)){const {OKDBError:_0x522493}=requireErrors();throw new _0x522493(_0x470ae8(0x45b)+(_0x4c1e35&&_0x4c1e35[_0x470ae8(0x6eb)])+_0x470ae8(0x763),_0x470ae8(0x633));}return _0x38ab77[_0x470ae8(0x783)]=_0x42f715[_0x470ae8(0x783)],{'$id':_0x1b28d4(_0x38ab77),'batch':typeof _0x38ab77[_0x470ae8(0x6db)]===_0x470ae8(0x4d1)};}const _0x3ea57f=_0x3ae580[_0x470ae8(0x67f)](_0x3622e6);if(_0x26cfb1===_0x470ae8(0x4ff))return _0x3ae580['delete'](_0x3622e6),_0xa6a6fe[_0x470ae8(0x597)](_0x3622e6),null;if(!_0x3ea57f)throw new Error(_0x470ae8(0x3f9));if(typeof _0x3ea57f[_0x26cfb1]!==_0x470ae8(0x4d1))return null;if(_0x26cfb1===_0x470ae8(0x7e9)||_0x26cfb1===_0x470ae8(0x6db)){const _0xa4bcac=_0x26cfb1===_0x470ae8(0x6db)?_0x482288(_0x3622e6,_0x3ea57f,_0x4c1e35):_0x497c38(_0x3622e6,_0x3ea57f,_0x26cfb1,_0x4c1e35);return _0x26cfb1===_0x470ae8(0x7e9)?_0x23d666(_0xa4bcac):_0xa4bcac[_0x470ae8(0x8a1)](_0x23d666);}let _0x30e3f0=_0x3ea57f[_0x26cfb1]();if(_0x30e3f0&&typeof _0x30e3f0[_0x470ae8(0x6f0)]===_0x470ae8(0x4d1))_0x30e3f0=_0x5223b8(_0x30e3f0);return _0x30e3f0===undefined?null:_0x30e3f0;}function _0x23d666(_0x4de3c2){const _0xe6109=_0x48c6;return _0x4de3c2 instanceof Float32Array?_0x4de3c2:Array[_0xe6109(0x7f7)](_0x4de3c2);}function _0x1542dd(_0x243e10,_0x2bf864,_0x3a6317){const _0x3633ff=_0x48c6;if(_0x243e10===_0x3633ff(0x1ba)){const _0x1ce8b5=_0x157854(_0x2bf864);let _0x4ce179=_0x1ce8b5(_0x3a6317[_0x3633ff(0x35e)]??{},{'dims':_0x3a6317['dims'],'dir':_0x3a6317[_0x3633ff(0x3a9)]});if(_0x4ce179&&typeof _0x4ce179['then']==='function')_0x4ce179=_0x5223b8(_0x4ce179);for(const _0x530522 of[_0x3633ff(0x851),'add',_0x3633ff(0x467),_0x3633ff(0x1d5),'count']){if(!_0x4ce179||typeof _0x4ce179[_0x530522]!==_0x3633ff(0x4d1)){const {OKDBError:_0xc5728}=requireErrors();throw new _0xc5728(_0x3633ff(0x7db)+_0x530522+'()',_0x3633ff(0x490),{'method':_0x530522});}}return{'$id':_0x1b28d4(_0x4ce179)};}const _0x2d38f9=_0x3ae580[_0x3633ff(0x67f)](_0x2bf864);if(_0x243e10===_0x3633ff(0x4ff))return _0x3ae580[_0x3633ff(0x597)](_0x2bf864),null;if(!_0x2d38f9)throw new Error(_0x3633ff(0x830));const _0xcb2eee=_0x5a8502=>_0x5a8502?_0x5a8502['map'](_0x257d50=>({'key':_0x257d50[_0x3633ff(0x1e8)],'vector':Float32Array[_0x3633ff(0x7f7)](_0x257d50[_0x3633ff(0x2b2)])})):null;let _0x2ca761;switch(_0x243e10){case _0x3633ff(0x851):case _0x3633ff(0x535):{const _0x52ca17=_0xcb2eee(_0x3a6317);_0x2ca761=_0x2d38f9[_0x243e10](_0x52ca17?async()=>_0x52ca17:undefined);break;}case'add':_0x2ca761=_0x2d38f9['add'](_0x3a6317[0x0],Float32Array['from'](_0x3a6317[0x1]),_0x3a6317[0x2]??undefined);break;case _0x3633ff(0x467):_0x2ca761=_0x2d38f9['remove'](_0x3a6317);break;case _0x3633ff(0x1d5):_0x2ca761=_0x2d38f9[_0x3633ff(0x1d5)](Float32Array['from'](_0x3a6317[_0x3633ff(0x827)]),_0x3a6317['opts']??{});break;case _0x3633ff(0x51d):_0x2ca761=typeof _0x2d38f9['snapshot']==='function'?_0x2d38f9[_0x3633ff(0x51d)](_0x3a6317??undefined):![];break;case _0x3633ff(0x1b5):_0x2ca761=typeof _0x2d38f9[_0x3633ff(0x1b5)]==='function'?_0x2d38f9[_0x3633ff(0x1b5)]():undefined;break;case _0x3633ff(0x670):_0x2ca761=typeof _0x2d38f9[_0x3633ff(0x670)]===_0x3633ff(0x4d1)?_0x2d38f9[_0x3633ff(0x670)]():undefined;break;case _0x3633ff(0x646):return Number(_0x2d38f9[_0x3633ff(0x646)]());case'info':return(typeof _0x2d38f9[_0x3633ff(0x34f)]===_0x3633ff(0x4d1)?_0x2d38f9[_0x3633ff(0x34f)]():null)??{};default:throw new Error(_0x3633ff(0x2fc)+_0x243e10);}if(_0x2ca761&&typeof _0x2ca761[_0x3633ff(0x6f0)]==='function')_0x2ca761=_0x5223b8(_0x2ca761);return _0x2ca761===undefined?null:_0x2ca761;}function _0x3d6c2a(_0x49751c,_0x20c671,_0x5f2d84){const _0x287c42=_0x48c6;if(_0x49751c===_0x287c42(0x1ba)){const _0x14f396=_0x157854(_0x20c671);let _0x64a1ed=_0x14f396(_0x5f2d84);if(_0x64a1ed&&typeof _0x64a1ed[_0x287c42(0x6f0)]===_0x287c42(0x4d1))_0x64a1ed=_0x5223b8(_0x64a1ed);if(!_0x64a1ed)return null;const _0x2e9520=['write','keys','get','count',_0x287c42(0x801),_0x287c42(0x3fc)][_0x287c42(0x1b8)](_0x304d27=>typeof _0x64a1ed[_0x304d27]===_0x287c42(0x4d1));return{'$id':_0x1b28d4(_0x64a1ed),'has':_0x2e9520};}const _0x5c2138=_0x3ae580[_0x287c42(0x67f)](_0x20c671);if(_0x49751c===_0x287c42(0x4ff))return _0x3ae580[_0x287c42(0x597)](_0x20c671),null;if(!_0x5c2138)throw new Error('storage\x20adapter\x20is\x20gone');const _0x303328=_0x29a304=>Float32Array[_0x287c42(0x7f7)](_0x29a304);let _0x37833f;switch(_0x49751c){case'put':_0x37833f=_0x5c2138[_0x287c42(0x425)](_0x5f2d84[0x0],_0x303328(_0x5f2d84[0x1]));break;case'remove':_0x37833f=_0x5c2138[_0x287c42(0x467)](_0x5f2d84);break;case _0x287c42(0x735):{_0x37833f=typeof _0x5c2138[_0x287c42(0x735)]===_0x287c42(0x4d1)?_0x5c2138[_0x287c42(0x735)]():[];if(_0x37833f&&typeof _0x37833f[_0x287c42(0x6f0)]===_0x287c42(0x4d1))_0x37833f=_0x5223b8(_0x37833f);return Array[_0x287c42(0x7f7)](_0x37833f??[],_0xe7887c=>({'key':_0xe7887c[_0x287c42(0x1e8)],'vector':Array[_0x287c42(0x7f7)](_0xe7887c[_0x287c42(0x2b2)])}));}case'write':_0x37833f=_0x5c2138[_0x287c42(0x727)](_0x5f2d84[_0x287c42(0x3e5)][_0x287c42(0x8a1)](_0x45b189=>({'key':_0x45b189[_0x287c42(0x1e8)],'vector':_0x303328(_0x45b189[_0x287c42(0x2b2)])})),_0x5f2d84[_0x287c42(0x80f)]);break;case'keys':_0x37833f=_0x5c2138[_0x287c42(0x73c)](_0x5f2d84??undefined);if(_0x37833f&&typeof _0x37833f[_0x287c42(0x6f0)]===_0x287c42(0x4d1))_0x37833f=_0x5223b8(_0x37833f);return Array[_0x287c42(0x7f7)](_0x37833f??[]);case _0x287c42(0x67f):{_0x37833f=_0x5c2138[_0x287c42(0x67f)](_0x5f2d84);if(_0x37833f&&typeof _0x37833f[_0x287c42(0x6f0)]===_0x287c42(0x4d1))_0x37833f=_0x5223b8(_0x37833f);return _0x37833f==null?null:Array[_0x287c42(0x7f7)](_0x37833f);}case'count':return Number(_0x5c2138[_0x287c42(0x646)]());case'dropAll':_0x37833f=_0x5c2138[_0x287c42(0x801)]();break;case _0x287c42(0x3fc):return _0x5c2138['stats']()??null;default:throw new Error('storage\x20adapter\x20has\x20no\x20method\x20'+_0x49751c);}if(_0x37833f&&typeof _0x37833f[_0x287c42(0x6f0)]===_0x287c42(0x4d1))_0x37833f=_0x5223b8(_0x37833f);return _0x37833f===undefined?null:_0x37833f;}const _0x25da90=new Map();function _0x497c38(_0x49c71f,_0x466cd6,_0x26d13d,_0x5968a7){const _0x19f20d=_0x48c6,_0x5151b2=_0x49c71f+'\x00'+_0x26d13d+'\x00'+JSON[_0x19f20d(0x212)](_0x5968a7),_0x57036f=_0x25da90[_0x19f20d(0x67f)](_0x5151b2);if(_0x57036f){if(_0x57036f[_0x19f20d(0x36e)]==='pending')throw _0x3d217a();_0x25da90['delete'](_0x5151b2);if(_0x57036f[_0x19f20d(0x36e)]===_0x19f20d(0x486))throw _0x57036f[_0x19f20d(0x883)];return _0x57036f[_0x19f20d(0x883)];}const _0x2ac23d=_0x466cd6[_0x26d13d](_0x5968a7);if(!_0x2ac23d||typeof _0x2ac23d[_0x19f20d(0x6f0)]!==_0x19f20d(0x4d1))return _0x2ac23d;const _0x3c9f52={'state':'pending','value':undefined};_0x2ac23d[_0x19f20d(0x6f0)](_0x37ac66=>{const _0x2216f2=_0x19f20d;_0x3c9f52[_0x2216f2(0x36e)]='ok',_0x3c9f52[_0x2216f2(0x883)]=_0x37ac66;if(_0x25da90['get'](_0x5151b2)===_0x3c9f52)_0x3da3e1(_0x466cd6);},_0x1e8909=>{const _0x59bcf5=_0x19f20d;_0x3c9f52[_0x59bcf5(0x36e)]=_0x59bcf5(0x486),_0x3c9f52[_0x59bcf5(0x883)]=_0x1e8909;if(_0x25da90[_0x59bcf5(0x67f)](_0x5151b2)===_0x3c9f52)_0x3da3e1(_0x466cd6);});for(let _0x361c95=0x0;_0x361c95<0x64&&_0x3c9f52[_0x19f20d(0x36e)]==='pending';_0x361c95++)process[_0x19f20d(0x8c8)]();if(_0x3c9f52[_0x19f20d(0x36e)]==='ok')return _0x3c9f52[_0x19f20d(0x883)];if(_0x3c9f52['state']===_0x19f20d(0x486))throw _0x3c9f52[_0x19f20d(0x883)];_0x25da90['set'](_0x5151b2,_0x3c9f52);throw _0x3d217a();}const _0xa6a6fe=new Map(),_0x325aba=0xa*0x3c*0x3e8;function _0x482288(_0x1cd92e,_0x5f01cd,_0x827cf2){const _0x1f95a7=_0x48c6,_0x51637d=Array[_0x1f95a7(0x562)](_0x827cf2)?_0x827cf2:Array['from'](_0x827cf2??[]);let _0x315bd7=_0xa6a6fe[_0x1f95a7(0x67f)](_0x1cd92e);if(!_0x315bd7)_0xa6a6fe[_0x1f95a7(0x5e7)](_0x1cd92e,_0x315bd7=new Map());const _0x51bbcf=Date[_0x1f95a7(0x363)]();for(const [_0x8d79b1,_0x5b24b2]of _0x315bd7)if(_0x5b24b2[_0x1f95a7(0x591)]['state']!==_0x1f95a7(0x8db)&&_0x51bbcf-_0x5b24b2[_0x1f95a7(0x591)]['at']>_0x325aba)_0x315bd7['delete'](_0x8d79b1);const _0x3d463a=_0x51637d['map'](_0x40dcb8=>JSON['stringify'](_0x40dcb8));let _0x5add11=![];const _0x2c4399=[],_0xac8d22=new Set();for(let _0x1a450d=0x0;_0x1a450d<_0x3d463a[_0x1f95a7(0x2ea)];_0x1a450d++){const _0x38e4c4=_0x315bd7[_0x1f95a7(0x67f)](_0x3d463a[_0x1a450d]);if(!_0x38e4c4)!_0xac8d22['has'](_0x3d463a[_0x1a450d])&&(_0xac8d22[_0x1f95a7(0x261)](_0x3d463a[_0x1a450d]),_0x2c4399['push'](_0x1a450d));else{if(_0x38e4c4[_0x1f95a7(0x591)]['state']===_0x1f95a7(0x8db))_0x5add11=!![];else{if(_0x38e4c4[_0x1f95a7(0x591)][_0x1f95a7(0x36e)]==='err'){const _0x818879=_0x38e4c4['req'][_0x1f95a7(0x883)];for(const [_0x59f2bc,_0x5b3b5e]of _0x315bd7)if(_0x5b3b5e[_0x1f95a7(0x591)]===_0x38e4c4[_0x1f95a7(0x591)])_0x315bd7[_0x1f95a7(0x597)](_0x59f2bc);throw _0x818879;}}}}if(_0x5add11)throw _0x3d217a();if(_0x2c4399[_0x1f95a7(0x2ea)]){const _0x58b9aa=_0x2c4399[_0x1f95a7(0x8a1)](_0x1098d8=>_0x51637d[_0x1098d8]),_0x47d2e0=_0x5f01cd[_0x1f95a7(0x6db)](_0x58b9aa),_0x3f0957={'state':'pending','value':undefined,'at':0x0},_0xebb9d2=(_0x381704,_0x2096ce)=>{const _0x3da085=_0x1f95a7;_0x3f0957[_0x3da085(0x36e)]=_0x381704,_0x3f0957['value']=_0x2096ce,_0x3f0957['at']=Date[_0x3da085(0x363)]();};if(!_0x47d2e0||typeof _0x47d2e0[_0x1f95a7(0x6f0)]!==_0x1f95a7(0x4d1))_0xebb9d2('ok',_0x47d2e0);else{let _0xb9d83c=!![];_0x47d2e0[_0x1f95a7(0x6f0)](_0x455ca7=>{_0xebb9d2('ok',_0x455ca7);if(!_0xb9d83c)_0x3da3e1(_0x5f01cd);},_0x48f4d5=>{_0xebb9d2('err',_0x48f4d5);if(!_0xb9d83c)_0x3da3e1(_0x5f01cd);});for(let _0xccf375=0x0;_0xccf375<0x64&&_0x3f0957['state']===_0x1f95a7(0x8db);_0xccf375++)process[_0x1f95a7(0x8c8)]();_0xb9d83c=![];}for(let _0x3c8a72=0x0;_0x3c8a72<_0x2c4399[_0x1f95a7(0x2ea)];_0x3c8a72++)_0x315bd7['set'](_0x3d463a[_0x2c4399[_0x3c8a72]],{'req':_0x3f0957,'index':_0x3c8a72});if(_0x3f0957[_0x1f95a7(0x36e)]==='err'){for(const _0x7e37ff of _0x2c4399)_0x315bd7[_0x1f95a7(0x597)](_0x3d463a[_0x7e37ff]);throw _0x3f0957[_0x1f95a7(0x883)];}if(_0x3f0957[_0x1f95a7(0x36e)]==='pending')throw _0x3d217a();}const _0x54ce7e=_0x3d463a[_0x1f95a7(0x8a1)](_0x5b0092=>{const _0x164774=_0x1f95a7,_0x3a30bb=_0x315bd7[_0x164774(0x67f)](_0x5b0092),_0x7d458b=_0x3a30bb[_0x164774(0x591)][_0x164774(0x883)];return _0x7d458b?_0x7d458b[_0x3a30bb['index']]:undefined;});for(const _0x4e6a2c of _0x3d463a)_0x315bd7[_0x1f95a7(0x597)](_0x4e6a2c);if(!_0x315bd7[_0x1f95a7(0x5b2)])_0xa6a6fe[_0x1f95a7(0x597)](_0x1cd92e);return _0x54ce7e;}function _0x3d217a(){const _0x589826=_0x48c6;return Object['assign'](new Error(_0x589826(0x77d)),{'code':_0x589826(0x338)});}function _0x3da3e1(_0x5e477a){const _0x482812=_0x48c6;_0x200930();try{const _0x5a6ab8=_0x5e477a[_0x482812(0x783)]||_0x11ca06;if(_0x5a6ab8&&_0x5a6ab8[_0x482812(0x70a)])_0x5a6ab8['_call'](_0x482812(0x3df),null,'emit',[_0x482812(0x550),{}],!![]);}catch{}}function _0xdbcc0e(_0x140be9,_0x5c6aaf,_0x31e6c8){const _0x59bf5c=_0x48c6,_0x418eb1=_0x3ae580[_0x59bf5c(0x67f)](_0x140be9);if(!_0x418eb1||typeof _0x418eb1[_0x5c6aaf]!==_0x59bf5c(0x4d1))return{'__absent':!![]};let _0x5155a4=_0x418eb1[_0x5c6aaf](...Array[_0x59bf5c(0x562)](_0x31e6c8)?_0x31e6c8:[]);if(_0x5155a4&&typeof _0x5155a4['then']==='function')_0x5155a4=_0x5223b8(_0x5155a4);return{'value':_0x5155a4===undefined?null:_0x5155a4};}const _0x287eee=new Map();let _0x43d4e9=0x1;const _0x23ed0e=new Map(),_0x2737cf=new Map();function _0x3de9f8(_0x3e8b6e,_0x43991c=null){const _0x7d4adb=_0x48c6,_0x545e9c=_0x43d4e9++;_0x287eee[_0x7d4adb(0x5e7)](_0x545e9c,_0x3e8b6e);if(_0x43991c)_0x2737cf[_0x7d4adb(0x5e7)](_0x545e9c,_0x43991c);return _0x545e9c;}function _0x38f352(_0x330081){const _0x4a9097=_0x48c6;for(const [_0x9efa5f,_0x55ea0a]of _0x23ed0e)if(_0x55ea0a&&_0x55ea0a[_0x4a9097(0x861)]===_0x330081)_0x23ed0e[_0x4a9097(0x597)](_0x9efa5f);for(const [_0x14ff24,_0x429373]of _0x5e47c5)if(_0x429373===_0x330081)_0x5e47c5['delete'](_0x14ff24);for(const [_0x239657,_0x3cca37]of _0x2737cf)_0x3cca37===_0x330081&&(_0x2737cf['delete'](_0x239657),_0x287eee[_0x4a9097(0x597)](_0x239657));if(_0x11ca06===_0x330081)_0x11ca06=null;}function _0x5a44a2(_0x5d060c,_0x83a468){const _0x4a3efc=_0x48c6;_0x23ed0e[_0x4a3efc(0x5e7)](_0x5d060c,_0x83a468);}function _0x473039(_0x183639){const _0x270bf4=_0x48c6;if(_0x183639&&typeof _0x183639==='object'&&Object['keys'](_0x183639)['length']===0x1&&_0x183639[_0x270bf4(0x39a)]!==undefined)return _0x287eee[_0x270bf4(0x67f)](_0x183639[_0x270bf4(0x39a)]);return _0x183639;}function _0x5223b8(_0x523bcd){const _0x29b9b7=_0x48c6;let _0x368b5a=![],_0x50c62c=![],_0x53609c;_0x523bcd[_0x29b9b7(0x6f0)](_0x325665=>{_0x368b5a=!![],_0x53609c=_0x325665;},_0x2f9cd5=>{_0x368b5a=!![],_0x50c62c=!![],_0x53609c=_0x2f9cd5;});for(let _0x117af0=0x0;_0x117af0<0x2710&&!_0x368b5a;_0x117af0++)process[_0x29b9b7(0x8c8)]();if(!_0x368b5a)return _0x523bcd['then'](undefined,_0x534224=>{const _0x5e2744=_0x29b9b7;try{process['emitWarning'](_0x5e2744(0x76f)+(_0x534224&&_0x534224[_0x5e2744(0x2b8)]?_0x534224['message']:_0x534224));}catch{}}),undefined;if(_0x50c62c)throw _0x53609c;return _0x53609c;}function _0x35951f(_0x34f27f,_0x21d851,_0x1c607b){const _0x1b6fbd=_0x48c6,_0x15f593=_0x157854(_0x34f27f),_0x312bce=_0x23ed0e[_0x1b6fbd(0x67f)](_0x21d851);try{const _0x4d6f67=_0x15f593(_0x1c607b,{'okdb':_0x312bce&&_0x312bce['okdb'],'env':_0x312bce});if(_0x4d6f67&&typeof _0x4d6f67['then']===_0x1b6fbd(0x4d1))_0x5223b8(_0x4d6f67);}catch(_0x26a58b){if(_0x26a58b&&_0x26a58b[_0x1b6fbd(0x571)]===!![]&&_0x26a58b[_0x1b6fbd(0x604)]!=='__HOLD__'){const _0x1ca888=new Error(_0x26a58b[_0x1b6fbd(0x2b8)]);_0x1ca888[_0x1b6fbd(0x604)]=_0x1b6fbd(0x773);throw _0x1ca888;}throw _0x26a58b;}}const _0xcd448f=new Map();function _0x2d7261(_0x344cc2,_0x4853f2,_0x591cdd,_0x1b3bdc,_0x8fc8ab,_0x35d7cd){const _0x195adf=_0x48c6,_0x532108=_0x157854(_0x344cc2),_0x570b8d=(_0x23ed0e[_0x195adf(0x67f)](_0x35d7cd)||{})['okdb']||_0x11ca06,_0x5a636f=new AbortController(),_0x5be178=(_0x483594,..._0xf9ec8d)=>_0x570b8d['_call']('queue','default',_0x483594,_0xf9ec8d,![]),_0x16406b={'okdb':_0x570b8d,'env':_0x23ed0e[_0x195adf(0x67f)](_0x35d7cd)||null,'job':_0x1b3bdc,'jobId':_0x8fc8ab,'signal':_0x5a636f[_0x195adf(0x6e2)],'heartbeat':()=>_0x5be178(_0x195adf(0x2b4),_0x591cdd),'markProgress':_0x4403f7=>_0x5be178(_0x195adf(0x4ba),_0x591cdd,_0x4403f7),'log':(_0x2e09c1,_0x2e9018)=>_0x5be178(_0x195adf(0x818),_0x591cdd,_0x2e09c1,_0x2e9018)};_0xcd448f[_0x195adf(0x5e7)](_0x591cdd,{'ctrl':_0x5a636f,'call':_0x5be178});const _0x815d5=()=>{const _0x16dfa9=_0x195adf;_0xcd448f[_0x16dfa9(0x597)](_0x591cdd);try{_0x5be178(_0x16dfa9(0x39b),_0x591cdd);}catch{}};let _0x2fb122;try{_0x2fb122=_0x532108(_0x4853f2,_0x16406b);}catch(_0x2abd8f){_0x815d5();throw _0x2abd8f;}if(_0x2fb122&&typeof _0x2fb122['then']===_0x195adf(0x4d1)){const _0x52ff8c=_0x3eec20(_0x2fb122);return _0x2fb122[_0x195adf(0x6f0)](_0x815d5,_0x815d5),{'$token':_0x52ff8c};}return _0x815d5(),_0x2fb122;}function _0x89aa47(){const _0x1da1ad=_0x48c6;for(const [_0x4541d6,_0x4b5601]of _0xcd448f){if(_0x4b5601['ctrl'][_0x1da1ad(0x6e2)][_0x1da1ad(0x2f7)])continue;let _0x4bcbe4;try{_0x4bcbe4=_0x4b5601[_0x1da1ad(0x601)](_0x1da1ad(0x779),_0x4541d6);}catch{continue;}if(_0x4bcbe4&&_0x4bcbe4[_0x1da1ad(0x2f7)]){const {OKDBError:_0x14ce5b}=requireErrors();_0x4b5601[_0x1da1ad(0x29c)][_0x1da1ad(0x1c7)](new _0x14ce5b(_0x4bcbe4[_0x1da1ad(0x2b8)],_0x4bcbe4[_0x1da1ad(0x604)]));}}}let _0x11ca06=null;function _0x41f23a(_0x3267a0){_0x11ca06=_0x3267a0;}function _0x169d4b(_0x4559bc,_0x4afb6d,_0x263114,_0x54d11b,_0x11c856,_0x2c5413,_0x2210db){const _0x5386b0=_0x48c6,_0x30a552=_0x157854(_0x4559bc),_0x7da083=_0x23ed0e[_0x5386b0(0x67f)](_0x263114);try{const _0x40dd88=_0x4afb6d?_0x30a552(_0x11c856,_0x2c5413):_0x30a552({'env':_0x7da083,'okdb':_0x7da083&&_0x7da083[_0x5386b0(0x861)],'payload':_0x473039(_0x54d11b)},_0x11c856,_0x2c5413);if(_0x40dd88&&typeof _0x40dd88[_0x5386b0(0x6f0)]===_0x5386b0(0x4d1)){if(_0x2c5413&&_0x2c5413[_0x5386b0(0x436)]===_0x5386b0(0x41a))_0x40dd88['then'](undefined,()=>{});else{if(_0x2210db){const _0x56eed5=_0x1009a6(_0x40dd88);if(_0x56eed5===0x0)return null;return{'$token':_0x56eed5};}else _0x5223b8(_0x40dd88);}}}catch(_0x2aa93a){if(_0x2aa93a&&_0x2aa93a[_0x5386b0(0x571)]===!![]&&_0x2aa93a['code']!==_0x5386b0(0x773)){const _0x555cba=new Error(_0x2aa93a[_0x5386b0(0x2b8)]);_0x555cba[_0x5386b0(0x604)]=_0x5386b0(0x773);throw _0x555cba;}throw _0x2aa93a;}return null;}function _0x1009a6(_0x5c5449){const _0x3072da=_0x48c6;let _0x98c09=_0x3072da(0x8db),_0x533ec0;_0x5c5449[_0x3072da(0x6f0)](_0x4daed6=>{_0x98c09='ok',_0x533ec0=_0x4daed6;},_0x545905=>{const _0x50bb36=_0x3072da;_0x98c09=_0x50bb36(0x486),_0x533ec0=_0x545905;});for(let _0x47bea3=0x0;_0x47bea3<0x64&&_0x98c09==='pending';_0x47bea3++)process[_0x3072da(0x8c8)]();if(_0x98c09==='ok')return 0x0;const _0x343727=_0x1399f0++,_0x8ad839={'state':_0x98c09,'value':_0x533ec0};_0x1a6e95[_0x3072da(0x5e7)](_0x343727,_0x8ad839);if(_0x98c09==='pending')_0x5c5449['then'](_0x9cb6d6=>{const _0x282fb9=_0x3072da;_0x8ad839['state']='ok',_0x8ad839[_0x282fb9(0x883)]=_0x9cb6d6,_0x200930();},_0x48dfe2=>{const _0x4226be=_0x3072da;_0x8ad839[_0x4226be(0x36e)]=_0x4226be(0x486),_0x8ad839[_0x4226be(0x883)]=_0x48dfe2,_0x200930();});return _0x343727;}function _0xdbb403(_0x525518){const _0x536d9e=_0x48c6;let _0xeb0b13=_0x52dc2c[_0x536d9e(0x67f)](_0x525518);return _0xeb0b13===undefined&&(_0xeb0b13=_0x2effb5++,_0x52dc2c[_0x536d9e(0x5e7)](_0x525518,_0xeb0b13),_0xcdd363['set'](_0xeb0b13,{'fn':_0x525518,'refs':0x0})),_0xcdd363['get'](_0xeb0b13)[_0x536d9e(0x786)]++,_0xeb0b13;}function _0x547ae0(_0x5c932b){const _0x5cdd06=_0x48c6,_0x87a34=_0xcdd363[_0x5cdd06(0x67f)](_0x5c932b);if(!_0x87a34)return;--_0x87a34[_0x5cdd06(0x786)]<=0x0&&(_0xcdd363[_0x5cdd06(0x597)](_0x5c932b),_0x52dc2c[_0x5cdd06(0x597)](_0x87a34['fn']));}function _0x157854(_0x398585){const _0x43cc9f=_0x48c6,_0x3dfc0c=_0xcdd363[_0x43cc9f(0x67f)](_0x398585);if(!_0x3dfc0c)throw new Error(_0x43cc9f(0x70b)+_0x398585);return _0x3dfc0c['fn'];}function _0x3eec20(_0x30ad66){const _0x46ecb4=_0x48c6;if(_0x30ad66&&typeof _0x30ad66['then']==='function'){const _0xa6aa96=_0x1399f0++,_0x135f48={'state':_0x46ecb4(0x8db),'value':undefined};return _0x1a6e95['set'](_0xa6aa96,_0x135f48),_0x30ad66['then'](_0x4dc6fa=>{_0x135f48['state']='ok',_0x135f48['value']=_0x4dc6fa,_0x200930();},_0x2edcc0=>{const _0x6cafae=_0x46ecb4;_0x135f48['state']=_0x6cafae(0x486),_0x135f48[_0x6cafae(0x883)]=_0x2edcc0,_0x200930();}),_0xa6aa96;}return 0x0;}let _0x1e2d70=()=>{},_0x74973=null;function _0x557a5f(_0x7eb262,_0x53aa2f=null){_0x1e2d70=_0x7eb262,_0x74973=_0x53aa2f;}function _0x1d7cc6(_0x5ba6c6){return _0x74973===_0x5ba6c6;}function _0x200930(){_0x1e2d70();}function _0x25ad96(_0x5dcac5){const _0xe8f0cc=_0x48c6,_0xe6c7a=_0x1a6e95[_0xe8f0cc(0x67f)](_0x5dcac5);if(!_0xe6c7a)return{'state':'err','error':{'message':_0xe8f0cc(0x6bb)}};if(_0xe6c7a[_0xe8f0cc(0x36e)]==='pending')return{'state':_0xe8f0cc(0x8db)};_0x1a6e95[_0xe8f0cc(0x597)](_0x5dcac5);if(_0xe6c7a['state']==='ok')return{'state':'ok','value':_0xe6c7a[_0xe8f0cc(0x883)]};const _0x275916=_0xe6c7a[_0xe8f0cc(0x883)];return{'state':_0xe8f0cc(0x486),'error':{'message':_0x275916&&_0x275916[_0xe8f0cc(0x2b8)]!=null?String(_0x275916['message']):String(_0x275916),'stack':_0x275916&&_0x275916[_0xe8f0cc(0x7e4)],'code':_0x275916&&_0x275916[_0xe8f0cc(0x604)],'status':_0x275916&&typeof _0x275916[_0xe8f0cc(0x71d)]===_0xe8f0cc(0x216)?_0x275916[_0xe8f0cc(0x71d)]:undefined,'hold':!!(_0x275916&&_0x275916[_0xe8f0cc(0x571)]===!![])}};}function _0x2c9928(_0x1572c3,_0x20c9e9){const _0x45c5e6=_0x48c6;_0x375522[_0x45c5e6(0x5e7)](_0x1572c3,_0x20c9e9);}function _0x18f070(_0x229a4c){_0x375522['delete'](_0x229a4c);}let _0x5ec206=0x0;function _0xc5deab(){return _0x5ec206>0x0;}function _0xb6a08d(){const _0xc0a479=_0x48c6;_0x5ec206++;try{return _0x11bb42[_0xc0a479(0x79c)](undefined,arguments);}finally{_0x5ec206--;}}function _0x11bb42(_0xec4644,_0x1ea320,_0x187e01,_0x4e6bc1,_0x3dd40a,_0x5dd781){const _0x37f0d3=_0x48c6;switch(_0xec4644){case _0x37f0d3(0x3ee):return _0xdbb403(_0x1ea320);case'unreg':return _0x547ae0(_0x1ea320);case _0x37f0d3(0x601):{const _0x1e7b6a=Array[_0x37f0d3(0x331)]['slice']['call'](arguments,0x2),_0xaa534f=_0x157854(_0x1ea320)[_0x37f0d3(0x79c)](undefined,_0x1e7b6a);return _0xaa534f&&typeof _0xaa534f['then']===_0x37f0d3(0x4d1)?_0x5223b8(_0xaa534f):_0xaa534f;}case'callAsync':{const _0x466795=Array[_0x37f0d3(0x331)]['slice']['call'](arguments,0x2),_0x2b51d6=_0x157854(_0x1ea320)[_0x37f0d3(0x79c)](undefined,_0x466795);if(_0x2b51d6&&typeof _0x2b51d6[_0x37f0d3(0x6f0)]===_0x37f0d3(0x4d1))return{'$token':_0x3eec20(_0x2b51d6)};return{'$value':_0x2b51d6===undefined?null:_0x2b51d6,'$undef':_0x2b51d6===undefined};}case'event':{const _0x485e7b=_0x375522[_0x37f0d3(0x67f)](_0x1ea320);if(_0x485e7b)_0x485e7b[_0x37f0d3(0x1bb)](_0x187e01,_0x4e6bc1);return undefined;}case'log':{const _0x1ae1ae=_0x375522[_0x37f0d3(0x67f)](_0x1ea320);if(_0x1ae1ae)_0x1ae1ae['_log'](_0x187e01);return undefined;}case _0x37f0d3(0x5fc):return _0x169d4b(_0x1ea320,_0x187e01,_0x4e6bc1,_0x3dd40a,_0x5dd781,arguments[0x6],arguments[0x7]);case _0x37f0d3(0x5d7):return _0x35951f(_0x1ea320,_0x187e01,_0x4e6bc1);case _0x37f0d3(0x734):return _0x2d7261(_0x1ea320,_0x187e01,_0x4e6bc1,_0x3dd40a,_0x5dd781,arguments[0x6]);case _0x37f0d3(0x44c):return _0x2d2ff0[_0x37f0d3(0x79c)](null,Array['prototype'][_0x37f0d3(0x4bb)]['call'](arguments,0x1));case _0x37f0d3(0x533):return _0xdbcc0e(_0x1ea320,_0x187e01,_0x4e6bc1);case _0x37f0d3(0x253):return _0x25ad96(_0x1ea320);case _0x37f0d3(0x7ee):{const _0x2532d2=((async()=>{const _0x54fa3b=_0x37f0d3,_0x5e085b=await globalThis[_0x54fa3b(0x321)](_0x1ea320);if(!_0x5e085b['ok']){const _0x4653e6=new Error(_0x54fa3b(0x361)+_0x5e085b[_0x54fa3b(0x71d)]);_0x4653e6[_0x54fa3b(0x604)]=_0x54fa3b(0x3b4);throw _0x4653e6;}return _0x5e085b[_0x54fa3b(0x304)]();})());return _0x5223b8(_0x2532d2)??null;}case _0x37f0d3(0x424):return _0x4e53cf(_0x1ea320,_0x187e01,_0x4e6bc1);case _0x37f0d3(0x1cb):return _0x1542dd(_0x1ea320,_0x187e01,_0x4e6bc1);case _0x37f0d3(0x20e):return _0x3d6c2a(_0x1ea320,_0x187e01,_0x4e6bc1);default:throw new Error('okdb-node:\x20unknown\x20bridge\x20op\x20'+_0xec4644);}}return bridge_1={'inNativeCall':_0xc5deab,'regObject':_0x1b28d4,'checkSignals':_0x89aa47,'setCurrentDb':_0x41f23a,'forgetDb':_0x38f352,'storePayload':_0x3de9f8,'registerEnv':_0x5a44a2,'resolvePayload':_0x473039,'bridge':_0xb6a08d,'reg':_0xdbb403,'unreg':_0x547ae0,'fnOf':_0x157854,'track':_0x3eec20,'resolve':_0x25ad96,'registerTarget':_0x2c9928,'unregisterTarget':_0x18f070,'setKick':_0x557a5f,'kickOwnedBy':_0x1d7cc6},bridge_1;}var writebatch,hasRequiredWritebatch;function requireWritebatch(){const _0x2b62a5=_0x5b9a04;if(hasRequiredWritebatch)return writebatch;hasRequiredWritebatch=0x1;const {reclass:_0x3c83c9}=requireErrors(),_0x30adfb=requireBridge(),_0x50885b=new Map();let _0xb09945=null;function _0x26a5d4(_0x47a00a){const _0x2ec2c3=_0x48c6;if(_0xb09945)return;_0xb09945=_0x47a00a,_0x47a00a[_0x2ec2c3(0x4e4)](_0xe3143);}function _0xe3143(){const _0x3ead4f=_0x48c6,_0x48031f=_0xb09945[_0x3ead4f(0x297)]();for(const _0x156b69 of _0x48031f){const _0x56c539=_0x50885b[_0x3ead4f(0x67f)](_0x156b69);_0x56c539&&(_0x50885b[_0x3ead4f(0x597)](_0x156b69),_0x56c539());}}function _0x1f8651(_0x258352,_0x4ad8a1){const _0x42021f=_0x48c6;_0x50885b[_0x42021f(0x5e7)](_0x258352,_0x4ad8a1);}class _0x5e45f2{constructor(_0x26cf5a){const _0xa5d347=_0x48c6;this['db']=_0x26cf5a,this[_0xa5d347(0x675)]=[],this[_0xa5d347(0x6cb)]=![],this[_0xa5d347(0x319)]=![],this[_0xa5d347(0x31d)]=new Set();}[_0x2b62a5(0x343)](_0x9e4e4b,_0x4ad568,_0x21c9b9,_0x3c8859){const _0x5ca48a=_0x2b62a5;if(_0x30adfb[_0x5ca48a(0x47c)]())try{return Promise['resolve'](this['db'][_0x5ca48a(0x849)](_0x9e4e4b,_0x4ad568,_0x21c9b9,_0x3c8859));}catch(_0x2d74e5){return Promise[_0x5ca48a(0x723)](_0x2d74e5);}const _0x2315e1=new Promise((_0x2b59ca,_0x2f4650)=>{const _0x1146d2=_0x5ca48a;this[_0x1146d2(0x675)]['push']({'item':[_0x9e4e4b,_0x4ad568,_0x21c9b9,_0x3c8859],'resolve':_0x2b59ca,'reject':_0x2f4650});});this[_0x5ca48a(0x31d)][_0x5ca48a(0x261)](_0x2315e1);const _0x57a8cc=()=>this[_0x5ca48a(0x31d)][_0x5ca48a(0x597)](_0x2315e1);return _0x2315e1['then'](_0x57a8cc,_0x57a8cc),!this[_0x5ca48a(0x6cb)]&&(this[_0x5ca48a(0x6cb)]=!![],setImmediate(()=>{const _0x5a2da0=_0x5ca48a;this[_0x5a2da0(0x6cb)]=![],this[_0x5a2da0(0x250)]();})),_0x2315e1;}[_0x2b62a5(0x250)](){const _0x4f03c0=_0x2b62a5;if(!this[_0x4f03c0(0x675)]['length'])return;if(this['inBatch']){!this[_0x4f03c0(0x6cb)]&&(this[_0x4f03c0(0x6cb)]=!![],setImmediate(()=>{const _0x6640d7=_0x4f03c0;this['scheduled']=![],this[_0x6640d7(0x250)]();}));return;}const _0x5e1c01=this['queue'];this[_0x4f03c0(0x675)]=[],this[_0x4f03c0(0x894)](_0x5e1c01);}[_0x2b62a5(0x894)](_0x5aef14){const _0x381285=_0x2b62a5;let _0x31e4d6;this[_0x381285(0x319)]=!![];try{_0x31e4d6=this['db']['_native'][_0x381285(0x6fd)](_0x5aef14[_0x381285(0x8a1)](_0x5e055c=>_0x5e055c[_0x381285(0x760)]));}catch(_0x2cb2b4){this[_0x381285(0x319)]=![];if(_0x5aef14[_0x381285(0x2ea)]>0x1){for(const _0x14491d of _0x5aef14)this[_0x381285(0x894)]([_0x14491d]);return;}const _0x2f4723=_0x3c83c9(_0x2cb2b4);for(const _0x3559af of _0x5aef14)_0x3559af[_0x381285(0x723)](_0x2f4723);return;}finally{this[_0x381285(0x319)]=![];}try{this['db'][_0x381285(0x89b)][_0x381285(0x8cc)]();}catch{}const [_0xa77ec3,_0x50cbdd]=_0x31e4d6;_0x1f8651(_0x50cbdd,()=>{const _0xa32ab8=_0x381285;for(let _0x2119a0=0x0;_0x2119a0<_0x5aef14[_0xa32ab8(0x2ea)];_0x2119a0++){const _0x14adb4=_0xa77ec3[_0x2119a0];if(_0x14adb4&&_0x14adb4[0x0])_0x5aef14[_0x2119a0][_0xa32ab8(0x253)](_0x14adb4[0x1]);else _0x5aef14[_0x2119a0][_0xa32ab8(0x723)](_0x3c83c9(_0x14adb4?_0x14adb4[0x1]:new Error(_0xa32ab8(0x255))));}});}async['drain'](){const _0x272d59=_0x2b62a5;this[_0x272d59(0x250)]();while(this['inflight'][_0x272d59(0x5b2)]){await Promise['allSettled']([...this[_0x272d59(0x31d)]]),this[_0x272d59(0x250)]();}let _0x16bd88;try{_0x16bd88=this['db'][_0x272d59(0x268)][_0x272d59(0x4da)]();}catch{return;}await new Promise(_0x7ffb76=>_0x1f8651(_0x16bd88,_0x7ffb76));}}return writebatch={'install':_0x26a5d4,'WriteBatch':_0x5e45f2,'whenSettled':_0x1f8651},writebatch;}var pump,hasRequiredPump;function requirePump(){const _0x38099f=_0x5b9a04;if(hasRequiredPump)return pump;hasRequiredPump=0x1;const _0x3cabf6=Number(process.env.OKDB_NATIVE_IDLE_MS)||0xfa;class _0x4b2c81{constructor(_0x26b692){const _0x58bd26=_0x48c6;this['native']=_0x26b692,this[_0x58bd26(0x3c8)]=null,this[_0x58bd26(0x512)]=null,this[_0x58bd26(0x291)]=![],this[_0x58bd26(0x7b6)]=![],this[_0x58bd26(0x6e3)]=![],this[_0x58bd26(0x87e)]=![],this['turns']=0x0,this[_0x58bd26(0x1fd)]=[],this[_0x58bd26(0x54a)]=[];}[_0x38099f(0x63d)](_0x155b59){return new Promise(_0x4ff69f=>{const _0x458bac=_0x48c6,_0x5815a2=setTimeout(_0x2fb907,_0x155b59);function _0x2fb907(){clearTimeout(_0x5815a2),_0x4ff69f();}this[_0x458bac(0x54a)]['push'](_0x2fb907);});}[_0x38099f(0x84e)](){const _0xae4920=_0x38099f;if(this[_0xae4920(0x54a)][_0xae4920(0x2ea)]===0x0)return;const _0x499f37=this[_0xae4920(0x54a)];this[_0xae4920(0x54a)]=[];for(const _0x415e86 of _0x499f37)_0x415e86();}[_0x38099f(0x362)](){const _0x36d40a=_0x38099f;this[_0x36d40a(0x7b6)]=![],this[_0x36d40a(0x8cc)]();}['stop'](){const _0x3a2179=_0x38099f;this[_0x3a2179(0x7b6)]=!![];if(this['timer'])clearTimeout(this['timer']);if(this[_0x3a2179(0x512)])clearImmediate(this['immediate']);this['timer']=this[_0x3a2179(0x512)]=null,this['_settleWaiters']();}[_0x38099f(0x8cc)](){const _0x191068=_0x38099f;if(this[_0x191068(0x7b6)]||this[_0x191068(0x512)])return;this['timer']&&(clearTimeout(this['timer']),this[_0x191068(0x3c8)]=null),this['immediate']=setImmediate(()=>{const _0x1d3835=_0x191068;this[_0x1d3835(0x512)]=null,this['turn']();});}[_0x38099f(0x7bd)](){const _0x6bd53=_0x38099f;if(this[_0x6bd53(0x7b6)]||this[_0x6bd53(0x6e3)]){this[_0x6bd53(0x87e)]=!![];return;}this[_0x6bd53(0x6e3)]=!![];let _0x8c2aff;try{this[_0x6bd53(0x31f)]++,_0x8c2aff=this[_0x6bd53(0x66e)][_0x6bd53(0x395)]();if(this[_0x6bd53(0x690)])this['afterTurn']();}catch(_0x45d1db){_0x8c2aff=_0x3cabf6,process[_0x6bd53(0x1fc)](()=>{throw _0x45d1db;});}finally{this[_0x6bd53(0x6e3)]=![],this['_settleWaiters']();}if(this[_0x6bd53(0x7b6)]||_0x8c2aff===-0x2)return;if(this[_0x6bd53(0x87e)])return this['dirty']=![],this['wake']();const _0x4f9174=_0x8c2aff<0x0?_0x3cabf6:Math['max'](0x0,Math[_0x6bd53(0x8b1)](_0x8c2aff,_0x3cabf6));if(_0x4f9174<=0x0)return this[_0x6bd53(0x8cc)]();this[_0x6bd53(0x3c8)]=setTimeout(()=>{const _0xb1d06d=_0x6bd53;this[_0xb1d06d(0x3c8)]=null,this[_0xb1d06d(0x7bd)]();},Math[_0x6bd53(0x5f3)](_0x4f9174));if(this[_0x6bd53(0x3c8)][_0x6bd53(0x3bb)])this['timer'][_0x6bd53(0x3bb)]();}}return pump={'Pumper':_0x4b2c81},pump;}var dist$1={},hasRequiredDist$1;function requireDist$1(){const _0x315734=_0x5b9a04;if(hasRequiredDist$1)return dist$1;hasRequiredDist$1=0x1;const _0xde1d60=Symbol[_0x315734(0x5b0)]('@harperdb/extended-iterable:skip'),_0x494f4a={'value':null,'done':!![]},_0x17fd45={'value':null,'done':!![]};!Symbol['asyncIterator']&&(Symbol[_0x315734(0x3f0)]=Symbol[_0x315734(0x5b0)](_0x315734(0x458)));const _0xd9b59={};class _0x1894f9{constructor(_0x18ba2b){const _0x5ae21c=_0x315734;_0x18ba2b&&(this['iterate']=_0x18ba2b[Symbol['iterator']][_0x5ae21c(0x7a2)](_0x18ba2b));}[_0x315734(0x8a1)](_0xe05b7e){const _0x364727=_0x315734;let _0xfff0d6=this,_0x1b0bb6=new _0x1894f9();return _0x1b0bb6[_0x364727(0x705)]=(_0x117a5b=_0xd9b59)=>{const _0x2e1eb0=_0x364727,{async:_0x222d28}=_0x117a5b;let _0xaf7d00=_0xfff0d6[_0x222d28?Symbol[_0x2e1eb0(0x3f0)]:Symbol[_0x2e1eb0(0x393)]](_0x117a5b);if(!_0x222d28)_0xfff0d6[_0x2e1eb0(0x66d)]=!![];let _0x1bf9fe=-0x1;return{'next'(_0x584010){const _0x1153b1=_0x2e1eb0;let _0xf73809;do{let _0x5d77fe;try{if(_0x584010)_0x5d77fe=_0x584010,_0x584010=null;else{_0x1bf9fe++,_0x5d77fe=_0xaf7d00[_0x1153b1(0x42d)]();if(_0x5d77fe[_0x1153b1(0x6f0)])return!_0x222d28&&this[_0x1153b1(0x333)](new Error(_0x1153b1(0x570))),_0x5d77fe[_0x1153b1(0x6f0)](_0x5bb2dd=>this[_0x1153b1(0x42d)](_0x5bb2dd),_0x2a686b=>{const _0x24c601=_0x1153b1;return this[_0x24c601(0x333)](_0x2a686b);});}if(_0x5d77fe[_0x1153b1(0x650)]===!![]){this[_0x1153b1(0x650)]=!![];if(_0x1b0bb6['onDone'])_0x1b0bb6[_0x1153b1(0x8b6)]();return _0x5d77fe;}try{_0xf73809=_0xe05b7e[_0x1153b1(0x601)](_0xfff0d6,_0x5d77fe[_0x1153b1(0x883)],_0x1bf9fe);if(_0xf73809&&_0xf73809[_0x1153b1(0x6f0)]&&_0x222d28)return _0xf73809[_0x1153b1(0x6f0)](_0xc52a33=>_0xc52a33===_0xde1d60?this['next']():{'value':_0xc52a33},_0x214e37=>{const _0x512088=_0x1153b1;if(_0x117a5b[_0x512088(0x882)])_0x214e37['continueIteration']=!![];return this[_0x512088(0x333)](_0x214e37);});}catch(_0x34036d){if(_0x117a5b[_0x1153b1(0x882)])_0x34036d[_0x1153b1(0x22d)]=!![];throw _0x34036d;}}catch(_0x3801e4){if(_0x1b0bb6['handleError'])try{_0xf73809=_0x1b0bb6[_0x1153b1(0x28a)](_0x3801e4,_0x1bf9fe);}catch(_0x386a20){return this[_0x1153b1(0x333)](_0x386a20);}else return this[_0x1153b1(0x333)](_0x3801e4);}}while(_0xf73809===_0xde1d60);if(_0xf73809===_0x494f4a)return this[_0x1153b1(0x54f)]();return{'value':_0xf73809};},'return'(_0x2a0207){const _0x1580f9=_0x2e1eb0;if(!this[_0x1580f9(0x650)]){_0x17fd45[_0x1580f9(0x883)]=_0x2a0207,this[_0x1580f9(0x650)]=!![];if(_0x1b0bb6[_0x1580f9(0x8b6)])_0x1b0bb6['onDone']();_0xaf7d00[_0x1580f9(0x54f)]?.();}return _0x17fd45;},'throw'(_0x2c7543){const _0x228d64=_0x2e1eb0;if(_0x2c7543['continueIteration']){if(_0x1b0bb6[_0x228d64(0x2da)])try{return{'value':_0x1b0bb6[_0x228d64(0x2da)](_0x2c7543)};}catch(_0x50f032){this[_0x228d64(0x54f)]();throw _0x50f032;}if(_0x117a5b['continueOnRecoverableError'])throw _0x2c7543;}this[_0x228d64(0x54f)]();throw _0x2c7543;}};},_0x1b0bb6;}[Symbol[_0x315734(0x3f0)]](_0x2a3418){const _0x131156=_0x315734;if(_0x2a3418)_0x2a3418={..._0x2a3418,'async':!![]};else _0x2a3418={'async':!![]};return this[_0x131156(0x393)]=this[_0x131156(0x705)](_0x2a3418);}[Symbol[_0x315734(0x393)]](_0xf37aed){const _0x2b164c=_0x315734;return this['iterator']=this[_0x2b164c(0x705)](_0xf37aed);}['filter'](_0x424783){const _0x4faa4a=_0x315734;let _0x28f7b7=this['map'](_0xe1ebae=>{const _0x46d7d0=_0x48c6;let _0x20fd1f=_0x424783(_0xe1ebae);if(_0x20fd1f?.[_0x46d7d0(0x6f0)])return _0x20fd1f[_0x46d7d0(0x6f0)](_0x268933=>_0x268933?_0xe1ebae:_0xde1d60);else return _0x20fd1f?_0xe1ebae:_0xde1d60;}),_0x26a1e6=_0x28f7b7[_0x4faa4a(0x705)];return _0x28f7b7['iterate']=(_0x3a4b44=_0xd9b59)=>{const _0x4f17f2=_0x4faa4a;if(_0x3a4b44[_0x4f17f2(0x882)])_0x3a4b44={..._0x3a4b44,'continueOnRecoverableError':![]};return _0x26a1e6(_0x3a4b44);},_0x28f7b7;}[_0x315734(0x2a7)](_0x2bb9f3){const _0x3cb6aa=_0x315734;let _0x2396fb=this[_0x3cb6aa(0x393)]=this[_0x3cb6aa(0x705)](),_0x5c2f0b;while((_0x5c2f0b=_0x2396fb[_0x3cb6aa(0x42d)]())[_0x3cb6aa(0x650)]!==!![]){_0x2bb9f3(_0x5c2f0b[_0x3cb6aa(0x883)]);}}[_0x315734(0x4d6)](_0x51a9d4){const _0x27d2e4=_0x315734;let _0x157802=new _0x1894f9();return _0x157802[_0x27d2e4(0x705)]=(_0x91865c=_0xd9b59)=>{const _0x26af07=_0x27d2e4;let _0x35716e=this[_0x26af07(0x393)]=this[_0x26af07(0x705)](_0x91865c),_0x32ba7a=!![];function _0x55a6ce(_0x5cede0){const _0x1b17e6=_0x26af07;if(_0x32ba7a)try{_0x32ba7a=![],_0x35716e=_0x51a9d4[_0x91865c['async']?Symbol[_0x1b17e6(0x3f0)]:Symbol[_0x1b17e6(0x393)]](),_0x5cede0=_0x35716e[_0x1b17e6(0x42d)]();if(_0x157802[_0x1b17e6(0x8b6)]){if(_0x5cede0[_0x1b17e6(0x6f0)]){if(!_0x91865c[_0x1b17e6(0x2ad)])throw new Error(_0x1b17e6(0x570));_0x5cede0['then'](_0x1117f0=>{const _0x5c4521=_0x1b17e6;if(_0x1117f0['done']())_0x157802[_0x5c4521(0x8b6)]();},_0x4f615a=>{const _0x47a65f=_0x1b17e6;this[_0x47a65f(0x54f)]();throw _0x4f615a;});}else{if(_0x5cede0[_0x1b17e6(0x650)])_0x157802[_0x1b17e6(0x8b6)]();}}}catch(_0x1a0dc7){this[_0x1b17e6(0x333)](_0x1a0dc7);}else{if(_0x157802[_0x1b17e6(0x8b6)])_0x157802[_0x1b17e6(0x8b6)]();}return _0x5cede0;}return{'next'(){const _0x57ef11=_0x26af07;try{let _0x353d77=_0x35716e[_0x57ef11(0x42d)]();if(_0x353d77['then']){if(!_0x91865c[_0x57ef11(0x2ad)])throw new Error(_0x57ef11(0x570));return _0x353d77[_0x57ef11(0x6f0)](_0x5ad846=>{const _0x171488=_0x57ef11;if(_0x5ad846[_0x171488(0x650)])return _0x55a6ce(_0x5ad846);return _0x5ad846;});}if(_0x353d77[_0x57ef11(0x650)])return _0x55a6ce(_0x353d77);return _0x353d77;}catch(_0x26c38b){this['throw'](_0x26c38b);}},'return'(_0xef186e){const _0x2d3599=_0x26af07;if(!this[_0x2d3599(0x650)]){_0x17fd45[_0x2d3599(0x883)]=_0xef186e,this['done']=!![];if(_0x157802[_0x2d3599(0x8b6)])_0x157802[_0x2d3599(0x8b6)]();_0x35716e[_0x2d3599(0x54f)]();}return _0x17fd45;},'throw'(_0x23d133){const _0x2430d6=_0x26af07;if(_0x91865c[_0x2430d6(0x882)])throw _0x23d133;this[_0x2430d6(0x54f)]();throw _0x23d133;}};},_0x157802;}[_0x315734(0x87a)](_0xbc2f2a){const _0x537bcb=_0x315734;let _0x4dbcf0=new _0x1894f9();return _0x4dbcf0[_0x537bcb(0x705)]=(_0x23dd1b=_0xd9b59)=>{const _0x52161b=_0x537bcb;let _0x385395=this[_0x52161b(0x393)]=this['iterate'](_0x23dd1b),_0xf2cdd3;return{'next'(_0x289eb9){const _0x7b074e=_0x52161b;try{do{if(_0xf2cdd3){let _0x5cb2cd;if(_0x289eb9)_0x5cb2cd=_0x289eb9,_0x289eb9=undefined;else _0x5cb2cd=_0xf2cdd3[_0x7b074e(0x42d)]();if(_0x5cb2cd[_0x7b074e(0x6f0)]){if(!_0x23dd1b['async'])throw new Error(_0x7b074e(0x570));return _0x5cb2cd[_0x7b074e(0x6f0)](_0x17202e=>this[_0x7b074e(0x42d)](_0x17202e));}if(!_0x5cb2cd[_0x7b074e(0x650)])return _0x5cb2cd;}let _0x5830af;if(_0x289eb9!=undefined)_0x5830af=_0x289eb9,_0x289eb9=undefined;else _0x5830af=_0x385395[_0x7b074e(0x42d)]();if(_0x5830af[_0x7b074e(0x6f0)]){if(!_0x23dd1b['async'])throw new Error(_0x7b074e(0x570));return _0xf2cdd3=undefined,_0x5830af[_0x7b074e(0x6f0)](_0x5905f7=>this['next'](_0x5905f7));}if(_0x5830af[_0x7b074e(0x650)]){if(_0x4dbcf0[_0x7b074e(0x8b6)])_0x4dbcf0['onDone']();return _0x5830af;}try{let _0x137a4d=_0xbc2f2a(_0x5830af['value']);if(_0x137a4d?.['then']){if(!_0x23dd1b[_0x7b074e(0x2ad)])throw new Error(_0x7b074e(0x570));return _0x137a4d['then'](_0x5748cc=>{const _0x1fa67d=_0x7b074e;return Array[_0x1fa67d(0x562)](_0x5748cc)||_0x5748cc instanceof _0x1894f9?(_0xf2cdd3=_0x5748cc[Symbol[_0x1fa67d(0x393)]](),this[_0x1fa67d(0x42d)]()):(_0xf2cdd3=null,{'value':_0x5748cc});},_0x4dcc41=>{const _0x519ee4=_0x7b074e;if(_0x23dd1b[_0x519ee4(0x882)])_0x4dcc41[_0x519ee4(0x22d)]=!![];this[_0x519ee4(0x333)](_0x4dcc41);});}if(Array[_0x7b074e(0x562)](_0x137a4d)||_0x137a4d instanceof _0x1894f9)_0xf2cdd3=_0x137a4d[Symbol['iterator']]();else return _0xf2cdd3=null,{'value':_0x137a4d};}catch(_0xcff9bf){if(_0x23dd1b[_0x7b074e(0x882)])_0xcff9bf[_0x7b074e(0x22d)]=!![];throw _0xcff9bf;}}while(!![]);}catch(_0x40d162){this[_0x7b074e(0x333)](_0x40d162);}},'return'(){const _0x17e68a=_0x52161b;if(_0x4dbcf0[_0x17e68a(0x8b6)])_0x4dbcf0['onDone']();if(_0xf2cdd3)_0xf2cdd3[_0x17e68a(0x54f)]();return _0x385395[_0x17e68a(0x54f)]();},'throw'(_0x13be47){const _0x3ec970=_0x52161b;if(_0x23dd1b['continueOnRecoverableError'])throw _0x13be47;if(_0x4dbcf0[_0x3ec970(0x8b6)])_0x4dbcf0[_0x3ec970(0x8b6)]();if(_0xf2cdd3)_0xf2cdd3['return']();this[_0x3ec970(0x54f)]();throw _0x13be47;}};},_0x4dbcf0;}[_0x315734(0x4bb)](_0x461a67,_0x5dd9ef){const _0x3e3c88=_0x315734;let _0x4082cb=this[_0x3e3c88(0x8a1)]((_0x3e563a,_0x584393)=>{const _0x57d436=_0x3e3c88;if(_0x584393<_0x461a67)return _0xde1d60;if(_0x584393>=_0x5dd9ef)return _0x494f4a[_0x57d436(0x883)]=_0x3e563a,_0x494f4a;return _0x3e563a;});return _0x4082cb[_0x3e3c88(0x28a)]=(_0x516077,_0x2a5bb)=>{if(_0x2a5bb<_0x461a67)return _0xde1d60;if(_0x2a5bb>=_0x5dd9ef)return _0x494f4a;throw _0x516077;},_0x4082cb;}[_0x315734(0x77c)](_0x295695){const _0x56deaa=_0x315734;if(typeof _0x295695!=='function')throw new TypeError('Expected\x20catch\x20callback\x20to\x20be\x20a\x20function');let _0x1f2e84=this[_0x56deaa(0x8a1)](_0xabdf8=>{return _0xabdf8;}),_0x4eb1bb=_0x1f2e84[_0x56deaa(0x705)];return _0x1f2e84[_0x56deaa(0x705)]=(_0x1e12a6=_0xd9b59)=>{return _0x4eb1bb({..._0x1e12a6,'continueOnRecoverableError':!![]});},_0x1f2e84[_0x56deaa(0x2da)]=_0x295695,_0x1f2e84;}['next'](){const _0x3ce269=_0x315734;if(!this['iterator'])this[_0x3ce269(0x393)]=this['iterate']();return this[_0x3ce269(0x393)][_0x3ce269(0x42d)]();}[_0x315734(0x5d4)](){const _0x5089be=_0x315734;if(this['asArray']&&this['asArray'][_0x5089be(0x2a7)])return this[_0x5089be(0x78b)];const _0x27f4e8=new Error('Can\x20not\x20serialize\x20async\x20iterables\x20without\x20first\x20calling\x20resolving\x20asArray');_0x27f4e8[_0x5089be(0x647)]=this['asArray'];throw _0x27f4e8;}get[_0x315734(0x78b)](){const _0x4c9df1=_0x315734;if(this[_0x4c9df1(0x223)])return this[_0x4c9df1(0x223)];let _0x46c315=new Promise((_0x8cdfe0,_0x18f3bc)=>{const _0x4a1f20=_0x4c9df1;let _0x4d2d72=this[_0x4a1f20(0x705)](!![]),_0xd42741=[],_0xd69d0=this;Object[_0x4a1f20(0x245)](_0xd42741,'iterable',{'value':_0xd69d0});function _0x549000(_0x16d995){const _0x13cad2=_0x4a1f20;while(_0x16d995['done']!==!![]){if(_0x16d995[_0x13cad2(0x6f0)])return _0x16d995[_0x13cad2(0x6f0)](_0x549000);else _0xd42741[_0x13cad2(0x66a)](_0x16d995['value']);_0x16d995=_0x4d2d72[_0x13cad2(0x42d)]();}_0x8cdfe0(_0xd69d0['_asArray']=_0xd42741);}_0x549000(_0x4d2d72[_0x4a1f20(0x42d)]());});return _0x46c315[_0x4c9df1(0x78d)]=this,this[_0x4c9df1(0x223)]||(this['_asArray']=_0x46c315);}[_0x315734(0x1dd)](){const _0x109b04=_0x315734;return this[_0x109b04(0x78b)];}['at'](_0x4ccc59){for(let _0x9a64c0 of this){if(_0x4ccc59--===0x0)return _0x9a64c0;}}}return _0x1894f9[_0x315734(0x331)][_0x315734(0x2fd)]=_0x494f4a,dist$1[_0x315734(0x476)]=_0x1894f9,dist$1[_0x315734(0x25c)]=_0xde1d60,dist$1;}var iterable,hasRequiredIterable;function requireIterable(){const _0x1f6c86=_0x5b9a04;if(hasRequiredIterable)return iterable;hasRequiredIterable=0x1;const {ExtendedIterable:_0x2fafe4}=requireDist$1(),_0x4b9cd1=Number(process.env.OKDB_NATIVE_RANGE_CHUNK)||0x3e8,_0x315891=Math[_0x1f6c86(0x8b1)](_0x4b9cd1,Number(process.env.OKDB_NATIVE_ROW_CHUNK)||0x100),_0xe249b=new Set([_0x1f6c86(0x56b),_0x1f6c86(0x296),_0x1f6c86(0x827),_0x1f6c86(0x755)]),_0x454fe6=Math[_0x1f6c86(0x8b1)](_0x315891,Number(process.env.OKDB_NATIVE_RANGE_FIRST)||0x1),_0x33d73b=0x4,_0x161647=(_0x3c186f,_0xd3db5f=_0x4b9cd1)=>Math[_0x1f6c86(0x8b1)](_0xd3db5f,_0x3c186f*_0x33d73b),_0xb9ee8f={'value':undefined,'done':!![]};function _0x5a9bfa(_0x5da6d8){const _0x56411d=new _0x2fafe4();return _0x56411d['iterate']=()=>{let _0x55fd85=0x0;return{'next'(){const _0x20df2f=_0x48c6;return _0x55fd85<_0x5da6d8[_0x20df2f(0x2ea)]?{'value':_0x5da6d8[_0x55fd85++],'done':![]}:{'value':undefined,'done':!![]};},'return'(){return _0x55fd85=_0x5da6d8['length'],{'value':undefined,'done':!![]};},'throw'(){const _0xab583a=_0x48c6;return _0x55fd85=_0x5da6d8[_0xab583a(0x2ea)],{'value':undefined,'done':!![]};}};},_0x56411d;}const _0x5bd37f=_0x2a6e43=>typeof _0x2a6e43===_0x1f6c86(0x216)&&!Number[_0x1f6c86(0x5bb)](_0x2a6e43)?Math[_0x1f6c86(0x885)](0x0,Math[_0x1f6c86(0x5f3)](_0x2a6e43)):Infinity,_0x5ec9c9=_0x16ac17=>typeof _0x16ac17===_0x1f6c86(0x216)?Math[_0x1f6c86(0x885)](0x0,Math[_0x1f6c86(0x2f2)](_0x16ac17))||0x0:0x0;function _0x518283(_0x1ab41f,_0x1427cc,_0x1f9bac,_0x309413={}){const _0x12a136=_0x1f6c86,_0x70ad8a=new _0x2fafe4(),_0x421e61=(_0x309413['limitOf']||_0x5bd37f)(_0x1427cc['limit']),_0x1cbd05=_0x309413[_0x12a136(0x68a)]?_0x315891:_0x4b9cd1,_0x52997b=_0x309413[_0x12a136(0x252)]||((_0x5974a0,_0x38e0f8)=>{const _0x52a630=_0x12a136;_0x5974a0['start']=_0x38e0f8,_0x5974a0[_0x52a630(0x5f7)]=!![],delete _0x5974a0[_0x52a630(0x8aa)];});let _0x154ca9=null;if(_0x309413[_0x12a136(0x249)]){const _0x56b6e0={..._0x1427cc,'limit':Math[_0x12a136(0x8b1)](_0x454fe6,_0x421e61)};_0x154ca9={'rows':_0x1ab41f(_0x56b6e0),'limit':_0x56b6e0[_0x12a136(0x645)]};const _0x357bfd=_0x154ca9;queueMicrotask(()=>{const _0x169890=_0x12a136;_0x357bfd[_0x169890(0x288)]=!![];});}return _0x70ad8a[_0x12a136(0x705)]=()=>{const _0x22d61b=_0x12a136;let _0x4c9e73=[],_0x51bb42=0x0,_0x359fbb=0x0,_0x322dfe,_0x2f19de=![],_0x369bcd=![],_0x14a1de=_0x454fe6;if(_0x154ca9&&!_0x154ca9[_0x22d61b(0x288)]&&!_0x154ca9[_0x22d61b(0x437)]){_0x154ca9['taken']=!![],_0x4c9e73=_0x154ca9[_0x22d61b(0x68a)],_0x2f19de=!![],_0x14a1de=_0x161647(_0x14a1de,_0x1cbd05);if(_0x4c9e73[_0x22d61b(0x2ea)]<_0x154ca9['limit'])_0x369bcd=!![];if(_0x4c9e73[_0x22d61b(0x2ea)])_0x322dfe=_0x1f9bac(_0x4c9e73[_0x4c9e73[_0x22d61b(0x2ea)]-0x1]);}const _0xb68e76=()=>{const _0x10d3fd=_0x22d61b;if(_0x369bcd)return;const _0x502991=_0x421e61-_0x359fbb;if(_0x502991<=0x0){_0x369bcd=!![],_0x4c9e73=[];return;}const _0x48a741={..._0x1427cc,'limit':Math[_0x10d3fd(0x8b1)](_0x14a1de,_0x502991)};if(_0x2f19de)_0x52997b(_0x48a741,_0x322dfe);_0x2f19de=!![],_0x14a1de=_0x161647(_0x14a1de,_0x1cbd05),_0x4c9e73=_0x1ab41f(_0x48a741),_0x51bb42=0x0;if(_0x4c9e73['length']<_0x48a741[_0x10d3fd(0x645)])_0x369bcd=!![];if(_0x4c9e73[_0x10d3fd(0x2ea)])_0x322dfe=_0x1f9bac(_0x4c9e73[_0x4c9e73['length']-0x1]);};return{'next'(){const _0x36671c=_0x22d61b;if(_0x51bb42>=_0x4c9e73[_0x36671c(0x2ea)])_0xb68e76();if(_0x51bb42>=_0x4c9e73['length'])return{'value':undefined,'done':!![]};return _0x359fbb++,{'value':_0x4c9e73[_0x51bb42++],'done':![]};},'return'(){return _0x369bcd=!![],_0x4c9e73=[],{'value':undefined,'done':!![]};},'throw'(){return _0x369bcd=!![],_0x4c9e73=[],{'value':undefined,'done':!![]};}};},_0x70ad8a;}function _0x490153(_0x560625,_0x507ae3,_0x1f5245,_0x4be90a,_0xe38a65={}){const _0x34247a=_0x1f6c86,_0x44071a=(_0xe38a65[_0x34247a(0x364)]||_0x5bd37f)(_0x4be90a&&_0x4be90a['limit']),_0x364a3b=_0xe249b[_0x34247a(0x884)](_0x507ae3)?_0x315891:_0x4b9cd1,_0x22f5e2=(_0xe38a65['offsetOf']||_0x5ec9c9)(_0x4be90a&&_0x4be90a[_0x34247a(0x8aa)]),_0x1c278e=(_0xe5f122,_0x4d018a,_0x547890)=>{const _0x16beb8=_0x34247a,_0x361cde=_0x44071a-_0x4d018a,_0x47e7d7=Math[_0x16beb8(0x8b1)](_0x547890,_0x361cde),_0x50a293={'limit':_0x47e7d7,'offset':_0x22f5e2+_0x4d018a},_0x117cfb=_0x560625('pinned',[_0xe5f122,_0x507ae3,_0x47e7d7===_0x361cde?Infinity:_0x47e7d7,..._0x1f5245(_0x50a293)]);if(_0x117cfb[0x0]===-0x1){const _0x1e45cf={'offset':_0x22f5e2+_0x4d018a};if(_0x361cde!==Infinity)_0x1e45cf[_0x16beb8(0x645)]=_0x361cde;return{'pin':0x0,'rows':_0x560625(_0x507ae3,_0x1f5245(_0x1e45cf)),'raw':Infinity,'eager':!![]};}return{'pin':_0x117cfb[0x0],'rows':_0x117cfb[0x1],'raw':_0x117cfb[0x2]};},_0x1cc38f=_0x1efef4=>{if(_0x1efef4)_0x560625('unpin',[_0x1efef4]);};function _0x32649f(_0x422933,_0x23130b,_0x3ce35d){const _0x35a6a4=_0x34247a;let _0x337663=0x0,_0x2b4eb2=[],_0x32f7b5=0x0,_0x359784=_0x422933,_0x4aded3=_0x454fe6,_0x56dc41=_0x44071a-_0x422933<=0x0;if(_0x3ce35d)({buf:_0x2b4eb2,pos:_0x32f7b5,consumed:_0x359784,size:_0x4aded3,exhausted:_0x56dc41}=_0x3ce35d);const _0x4988a8=_0x5ec162=>{const _0x3d2b16=_0x48c6;_0x337663=_0x5ec162['pin'],_0x2b4eb2=_0x5ec162['rows'],_0x32f7b5=0x0,_0x359784+=_0x5ec162[_0x3d2b16(0x39f)],_0x4aded3=_0x161647(_0x4aded3,_0x364a3b);if(!_0x337663)_0x56dc41=!![];};if(_0x23130b)_0x4988a8(_0x23130b);const _0x2de357=()=>{const _0x3568b8=_0x337663;_0x337663=0x0,_0x1cc38f(_0x3568b8);},_0x4768e9={'next'(){while(_0x32f7b5>=_0x2b4eb2['length']){if(_0x56dc41||_0x44071a-_0x359784<=0x0)return _0x56dc41=!![],_0x2de357(),_0xb9ee8f;try{_0x4988a8(_0x1c278e(_0x337663,_0x359784,_0x4aded3));}catch(_0x274057){_0x337663=0x0,_0x56dc41=!![],_0x2b4eb2=[];throw _0x274057;}}return{'value':_0x2b4eb2[_0x32f7b5++],'done':![]};},'return'(){return _0x2de357(),_0xb9ee8f;},'throw'(){return _0x2de357(),_0xb9ee8f;},'resumed'(){return _0x32649f(0x0,null,{'buf':_0x2b4eb2,'pos':_0x32f7b5,'consumed':_0x359784,'size':_0x4aded3,'exhausted':_0x56dc41});},[Symbol[_0x35a6a4(0x393)]](){return this;}};return _0x4768e9;}function _0x4be096(){if(_0x44071a<=0x0)return null;const _0x33abfa=_0x1c278e(0x0,0x0,_0x454fe6);return queueMicrotask(()=>{const _0x3404c7=_0x48c6;!_0x33abfa['taken']&&(_0x33abfa[_0x3404c7(0x288)]=!![],_0x1cc38f(_0x33abfa[_0x3404c7(0x62c)]));}),_0x33abfa;}return{'source':_0x32649f,'prefetch':_0x4be096};}function _0x4a1275(_0x5322b0){const _0x3a2aa1=_0x1f6c86;if(!_0x5322b0||_0x5322b0['taken']||_0x5322b0['dropped'])return null;return _0x5322b0[_0x3a2aa1(0x437)]=!![],_0x5322b0;}return iterable={'fromArray':_0x5a9bfa,'chunkedRange':_0x518283,'pinnedChunks':_0x490153,'claimPrefetch':_0x4a1275,'lmdbLimit':_0x5bd37f,'lmdbOffset':_0x5ec9c9,'CHUNK':_0x4b9cd1,'ROW_CHUNK':_0x315891,'FIRST':_0x454fe6},iterable;}var rawdb,hasRequiredRawdb;function requireRawdb(){const _0x47b6c3=_0x5b9a04;if(hasRequiredRawdb)return rawdb;hasRequiredRawdb=0x1;const {fromArray:_0x3faa4d}=requireIterable();class _0x4f295b{constructor(_0x22bae0,_0x441411='',_0x55399b={},_0x3a0d40=null){const _0x539d85=_0x48c6;this[_0x539d85(0x3dc)]=_0x22bae0,this[_0x539d85(0x761)]=_0x441411,this[_0x539d85(0x6da)]=!!(_0x55399b&&_0x55399b[_0x539d85(0x6da)]),this[_0x539d85(0x29a)]=!!(_0x55399b&&_0x55399b[_0x539d85(0x29a)]),this[_0x539d85(0x5af)]=_0x3a0d40||this,this['_buf']=null;}get[_0x47b6c3(0x2a6)](){const _0x172cc3=_0x47b6c3;return this[_0x172cc3(0x6da)]?!![]:this['useVersions']?'v':![];}['_n'](_0x2fa76b,_0xe3b1aa){const _0x10b673=_0x47b6c3;return this['_env'][_0x10b673(0x861)][_0x10b673(0x849)]('raw',this[_0x10b673(0x3dc)][_0x10b673(0x761)],_0x2fa76b,[this[_0x10b673(0x761)],this[_0x10b673(0x2a6)],..._0xe3b1aa],!![]);}[_0x47b6c3(0x66b)](_0x2a32c0,_0xa2e3c2){const _0x21f03d=_0x47b6c3;return this[_0x21f03d(0x3dc)][_0x21f03d(0x861)][_0x21f03d(0x849)](_0x21f03d(0x39f),this[_0x21f03d(0x3dc)][_0x21f03d(0x761)],_0x2a32c0,[this[_0x21f03d(0x761)],this['_dupArg'],..._0xa2e3c2],![]);}[_0x47b6c3(0x38d)](_0x14306f){const _0x39d4ce=_0x47b6c3,_0x261a6d=this[_0x39d4ce(0x3dc)]['_rawTxnBuf'];if(_0x261a6d)_0x261a6d[_0x39d4ce(0x66a)]({'sub':this[_0x39d4ce(0x761)],'dup':this[_0x39d4ce(0x2a6)],..._0x14306f});else this[_0x39d4ce(0x3dc)]['okdb'][_0x39d4ce(0x849)](_0x39d4ce(0x39f),this[_0x39d4ce(0x3dc)][_0x39d4ce(0x761)],_0x39d4ce(0x7a3),[[{'sub':this[_0x39d4ce(0x761)],'dup':this[_0x39d4ce(0x2a6)],..._0x14306f}]],!![]);}[_0x47b6c3(0x67f)](_0x4a0e49){const _0xa2091f=_0x47b6c3;return this[_0xa2091f(0x66b)](_0xa2091f(0x67f),[_0x4a0e49]);}[_0x47b6c3(0x65c)](_0x19e63d){const _0x2d3d95=_0x47b6c3;if(this['useVersions'])return this[_0x2d3d95(0x66b)](_0x2d3d95(0x65c),[_0x19e63d]);const _0x38d696=this[_0x2d3d95(0x67f)](_0x19e63d);return _0x38d696===undefined?undefined:{'value':_0x38d696};}[_0x47b6c3(0x1bd)](_0x5a58c0){const _0x13845a=_0x47b6c3;return this[_0x13845a(0x66b)](_0x13845a(0x3a7),[_0x5a58c0]);}[_0x47b6c3(0x6d6)](_0x3e0cf3){return this['get'](_0x3e0cf3);}[_0x47b6c3(0x56b)](_0x5df4d4={}){const _0x14c64d=_0x47b6c3,_0x2fd1d8=this['_read'](_0x14c64d(0x56b),[_0x5df4d4]),_0x1aefcb=_0x5df4d4[_0x14c64d(0x387)]===![],_0x39ad8f=_0x5df4d4[_0x14c64d(0x73c)]===![];return _0x3faa4d(_0x2fd1d8['map'](([_0x19c712,_0x1a2419,_0x10cd49])=>{if(_0x1aefcb)return _0x19c712;if(_0x39ad8f)return _0x1a2419;return _0x10cd49===undefined?{'key':_0x19c712,'value':_0x1a2419}:{'key':_0x19c712,'value':_0x1a2419,'version':_0x10cd49};}));}[_0x47b6c3(0x2f5)](_0x24f4a7={}){const _0x38085e=_0x47b6c3;return _0x3faa4d(this[_0x38085e(0x66b)](_0x38085e(0x56b),[_0x24f4a7])['map'](([_0x18fad3])=>_0x18fad3));}[_0x47b6c3(0x524)](_0x201190,_0x2ba0e8={}){const _0x2f3c30=_0x47b6c3,_0x3f5573=this[_0x2f3c30(0x66b)](_0x2f3c30(0x56b),[{..._0x2ba0e8,'start':_0x201190,'end':_0x201190,'inclusiveEnd':!![]}]);return _0x3faa4d(_0x3f5573[_0x2f3c30(0x8a1)](([,_0x127d83])=>_0x127d83));}['getCount'](_0x4f6bf9={}){const _0x33b595=_0x47b6c3;return this[_0x33b595(0x66b)](_0x33b595(0x646),[_0x4f6bf9]);}[_0x47b6c3(0x53e)](){const _0x353553=_0x47b6c3;return{'entryCount':this[_0x353553(0x807)]()};}[_0x47b6c3(0x425)](_0x238b89,_0x4e4190,_0x9447d3){const _0x27f3bd=_0x47b6c3;return this[_0x27f3bd(0x38d)]({'op':_0x27f3bd(0x425),'key':_0x238b89,'value':_0x4e4190,'version':_0x9447d3}),Promise['resolve'](!![]);}[_0x47b6c3(0x7e3)](_0x380c0a,_0x2a9afc,_0x13411e){const _0x17a13e=_0x47b6c3;return this[_0x17a13e(0x38d)]({'op':_0x17a13e(0x425),'key':_0x380c0a,'value':_0x2a9afc,'version':_0x13411e}),!![];}['remove'](_0x4ef56a,_0x2666cc){const _0x3c3783=_0x47b6c3;return this['_write']({'op':_0x3c3783(0x467),'key':_0x4ef56a,'value':_0x2666cc}),Promise['resolve'](!![]);}['removeSync'](_0x24c59a,_0x50bd2a){const _0x54bf57=_0x47b6c3;return this[_0x54bf57(0x38d)]({'op':_0x54bf57(0x467),'key':_0x24c59a,'value':_0x50bd2a}),!![];}['clearSync'](){const _0x513b02=_0x47b6c3;this[_0x513b02(0x38d)]({'op':_0x513b02(0x674)});}['clearAsync'](){const _0x5cbdb3=_0x47b6c3;return this['_write']({'op':_0x5cbdb3(0x674)}),Promise[_0x5cbdb3(0x253)]();}[_0x47b6c3(0x858)](){const _0x348f58=_0x47b6c3;this[_0x348f58(0x835)]();}[_0x47b6c3(0x229)](_0x69a5b2,_0x38285c={}){const _0x2986a6=_0x47b6c3,_0x3d9daf=typeof _0x69a5b2==='object'?_0x69a5b2:_0x38285c,_0x190a2e=typeof _0x69a5b2===_0x2986a6(0x6ea)?_0x69a5b2[_0x2986a6(0x761)]:_0x69a5b2,_0x836e23=new _0x4f295b(this['_env'],_0x190a2e,_0x3d9daf);return _0x836e23[_0x2986a6(0x38d)]({'op':_0x2986a6(0x8d5)}),_0x836e23;}[_0x47b6c3(0x7ba)](){}[_0x47b6c3(0x292)](_0x3eac5c){return this['_tx'](_0x3eac5c);}async[_0x47b6c3(0x3c9)](_0x42be47){return this['_tx'](_0x42be47);}['childTransaction'](_0x33dfd8){return this['_tx'](_0x33dfd8);}[_0x47b6c3(0x52a)](_0x21a086){const _0x45e6aa=_0x47b6c3,_0x2419b8=this['_env'];if(_0x2419b8[_0x45e6aa(0x2a1)])return _0x21a086();_0x2419b8['_rawTxnBuf']=[];let _0x113ce1;try{_0x113ce1=_0x21a086();}catch(_0x1e8489){_0x2419b8[_0x45e6aa(0x2a1)]=null;throw _0x1e8489;}const _0x41a4d7=_0x2419b8[_0x45e6aa(0x2a1)];_0x2419b8[_0x45e6aa(0x2a1)]=null;if(_0x41a4d7[_0x45e6aa(0x2ea)])_0x2419b8[_0x45e6aa(0x861)][_0x45e6aa(0x849)](_0x45e6aa(0x39f),_0x2419b8['name'],_0x45e6aa(0x7a3),[_0x41a4d7],!![]);return _0x113ce1;}['useReadTransaction'](){return{'done'(){}};}[_0x47b6c3(0x672)](){}}return rawdb={'RawDb':_0x4f295b},rawdb;}var views,hasRequiredViews;function requireViews(){const _0x47d5d2=_0x5b9a04;if(hasRequiredViews)return views;hasRequiredViews=0x1;const {RawDb:_0x2027f7}=requireRawdb();class _0x51b861{constructor(_0x12ad9a){const _0x36eb2f=_0x48c6;this['env']=_0x12ad9a,this['_n']=(_0x5d309e,_0x4d3e44,_0x238e32=!![])=>_0x12ad9a[_0x36eb2f(0x861)][_0x36eb2f(0x849)](_0x36eb2f(0x487),_0x12ad9a[_0x36eb2f(0x761)],_0x5d309e,_0x4d3e44,_0x238e32);}get[_0x47d5d2(0x383)](){const _0x14e9b5=_0x47d5d2,_0x50b3ee=this,_0x4177dd=this[_0x14e9b5(0x374)],_0x402efd=_0x2150d3=>_0x2150d3?new _0x2027f7(_0x4177dd,_0x2150d3[_0x14e9b5(0x761)],{'dupSort':_0x2150d3['dup']}):undefined,_0x115417=_0x11e586=>{const _0x3e23c1=_0x14e9b5,_0x259717=_0x50b3ee['_n'](_0x3e23c1(0x8c6),[_0x11e586],![]);if(!_0x259717)return undefined;const _0x4284f9=_0x259717['compiled'],_0x52ff6a=new Map(Object[_0x3e23c1(0x453)](_0x4284f9[_0x3e23c1(0x786)])),_0x240f48=new Map(Object[_0x3e23c1(0x453)](_0x259717['refItemsDbs'])['map'](([_0x4e17ec,_0xad10])=>[_0x4e17ec,_0x402efd(_0xad10)]));return{'name':_0x11e586,'compiled':{'T':_0x4284f9['T'],'reducers':_0x4284f9[_0x3e23c1(0x2b9)],'refs':_0x52ff6a,'granId':_0x4284f9[_0x3e23c1(0x257)],'type':_0x4284f9['type'],'_nidFor':_0x28bf4b=>_0x50b3ee['_n'](_0x3e23c1(0x84b),[_0x11e586,_0x28bf4b],![])},'viewDb':_0x402efd(_0x259717[_0x3e23c1(0x53c)][_0x3e23c1(0x4b1)]),'metaDb':_0x402efd(_0x259717[_0x3e23c1(0x53c)][_0x3e23c1(0x7ac)]),'itemsDb':_0x402efd(_0x259717['dbs'][_0x3e23c1(0x842)]),'bucketsDb':_0x402efd(_0x259717[_0x3e23c1(0x53c)][_0x3e23c1(0x7fb)]),'sortedDb':_0x402efd(_0x259717[_0x3e23c1(0x53c)]['sortedDb']),'groupsDb':_0x402efd(_0x259717['dbs'][_0x3e23c1(0x75f)]),'prevDb':_0x402efd(_0x259717[_0x3e23c1(0x53c)][_0x3e23c1(0x211)]),'refItemsDbs':_0x240f48,'refTrackingDbs':new Map(Object[_0x3e23c1(0x453)](_0x259717[_0x3e23c1(0x461)]||{})[_0x3e23c1(0x8a1)](([_0x18d0ce,_0x34ebbf])=>[_0x18d0ce,_0x402efd(_0x34ebbf)])),'stopFn':_0x259717[_0x3e23c1(0x5c1)]?async()=>_0x50b3ee['_n'](_0x3e23c1(0x626),[_0x11e586]):null,'bootstrapWorker':null};};return{'get':_0x572be0=>_0x115417(_0x572be0),'has':_0x4a54ae=>_0x50b3ee['_n'](_0x14e9b5(0x6d4),[],![])[_0x14e9b5(0x42a)](_0x4a54ae),'keys':()=>_0x50b3ee['_n'](_0x14e9b5(0x6d4),[],![])[Symbol[_0x14e9b5(0x393)]](),get 'size'(){const _0x210c1a=_0x14e9b5;return _0x50b3ee['_n'](_0x210c1a(0x6d4),[],![])[_0x210c1a(0x2ea)];},[Symbol[_0x14e9b5(0x393)]]:()=>_0x50b3ee['_n'](_0x14e9b5(0x6d4),[],![])['map'](_0x1cadaa=>[_0x1cadaa,_0x115417(_0x1cadaa)])[Symbol['iterator']]()};}get[_0x47d5d2(0x53d)](){const _0x309013=_0x47d5d2,_0x124368=this;return{'has':_0x27313a=>_0x124368['_n']('customReducerNames',[],![])['includes'](_0x27313a),get 'size'(){const _0x2b9397=_0x48c6;return _0x124368['_n'](_0x2b9397(0x6cf),[],![])[_0x2b9397(0x2ea)];},'keys':()=>_0x124368['_n'](_0x309013(0x6cf),[],![])[Symbol[_0x309013(0x393)]]()};}async[_0x47d5d2(0x480)](){const _0x4776f4=_0x47d5d2;return this['_n'](_0x4776f4(0x480),[]);}async['bootSyncedViews'](_0x37008a={}){const _0x22b074=_0x47d5d2;return this['_n'](_0x22b074(0x76d),[_0x37008a]);}async[_0x47d5d2(0x812)](_0xefab4e,_0x75dc98){const _0x6d1304=_0x47d5d2;return await this[_0x6d1304(0x219)]('createBegin',[_0xefab4e,_0x75dc98]),await this[_0x6d1304(0x4c2)](_0xefab4e),{'name':_0xefab4e};}async[_0x47d5d2(0x219)](_0x5f3788,_0x51a592){const _0x56f76e=_0x47d5d2,_0x33a658=Date[_0x56f76e(0x363)]()+0x7d0;for(;;){try{return this['_n'](_0x5f3788,_0x51a592);}catch(_0x43b8){if(_0x43b8?.[_0x56f76e(0x604)]!==_0x56f76e(0x5bc)||Date['now']()>=_0x33a658)throw _0x43b8;await new Promise(_0x447130=>setTimeout(_0x447130,0x32));}}}async[_0x47d5d2(0x4c2)](_0x360e7e){const _0x395d94=_0x47d5d2,_0x459a33=this[_0x395d94(0x374)][_0x395d94(0x861)][_0x395d94(0x89b)];while(this['_n'](_0x395d94(0x4e8),[_0x360e7e],![]))await _0x459a33[_0x395d94(0x63d)](0xfa);try{this['_n'](_0x395d94(0x2ba),[_0x360e7e],![]);}catch(_0x3eb675){if(_0x3eb675?.[_0x395d94(0x604)]!==_0x395d94(0x62d)||_0x3eb675['details']?.['reason']!==_0x395d94(0x282))throw _0x3eb675;await this[_0x395d94(0x5f5)](_0x360e7e);}}async[_0x47d5d2(0x5f5)](_0x121a31){const _0x362227=_0x47d5d2,_0x538c3b=this[_0x362227(0x374)][_0x362227(0x861)][_0x362227(0x89b)];let _0x544da4=0x0,_0x488dc6='',_0x42af65=Date[_0x362227(0x363)]();for(;;){if(this['_n']('buildPending',[_0x121a31],![]))return this[_0x362227(0x4c2)](_0x121a31);const _0x4bd659=this[_0x362227(0x1be)](_0x121a31);if(!_0x4bd659)throw Object[_0x362227(0x6af)](new Error(_0x362227(0x810)+_0x121a31+_0x362227(0x2c8)),{'code':_0x362227(0x627)});const _0x563f6e=_0x4bd659['state'],_0x43808f=_0x27e342=>_0x27e342===_0x362227(0x8bb)||_0x27e342===_0x362227(0x75e),_0x38ed8e=Object[_0x362227(0x387)](_0x4bd659[_0x362227(0x1a1)]?.[_0x362227(0x786)]??{})[_0x362227(0x23b)](_0x1c03de=>_0x43808f(_0x1c03de?.['state'])),_0x413942=_0x43808f(_0x563f6e)||_0x563f6e===_0x362227(0x7d2)&&(_0x4bd659['bootstrapStartClock']!=null||_0x38ed8e);if(!_0x413942){if(_0x563f6e===_0x362227(0x60e)||_0x563f6e===_0x362227(0x7d2))return;throw Object['assign'](new Error(_0x362227(0x810)+_0x121a31+'\x22\x20build\x20by\x20another\x20process\x20ended\x20\x22'+_0x563f6e+'\x22'+(_0x4bd659['error']?':\x20'+_0x4bd659[_0x362227(0x1b2)]:'')),{'code':_0x362227(0x46f),'details':{'name':_0x121a31,'state':_0x563f6e}});}const _0x3a256f=JSON['stringify'](_0x4bd659);if(_0x3a256f!==_0x488dc6)_0x488dc6=_0x3a256f,_0x42af65=Date[_0x362227(0x363)]();else{if(!this[_0x362227(0x374)]['okdb']['role']?.[_0x362227(0x7de)]&&Date[_0x362227(0x363)]()-_0x42af65>0x927c0)throw Object[_0x362227(0x6af)](new Error(_0x362227(0x810)+_0x121a31+_0x362227(0x55a)),{'code':_0x362227(0x6de),'details':{'name':_0x121a31}});}Date[_0x362227(0x363)]()>=_0x544da4&&this[_0x362227(0x374)][_0x362227(0x861)][_0x362227(0x862)]?.['processors']&&(_0x544da4=Date[_0x362227(0x363)]()+0x3e8,await this[_0x362227(0x76d)]({'skipReadyRescan':!![]})[_0x362227(0x2aa)](()=>{})),await _0x538c3b[_0x362227(0x63d)](0xfa);}}[_0x47d5d2(0x67f)](_0xf3eafe,_0x5bb68f={}){const _0x21ebd5=_0x47d5d2,_0x474097=this['_n']('get',[_0xf3eafe,{'preview':_0x5bb68f?.[_0x21ebd5(0x784)]??{}}],![]);if(_0x474097==null)return null;const _0x2804da=this['_n'](_0x21ebd5(0x567),[_0xf3eafe],![]);if(!_0x2804da)return _0x474097;const _0x2a9897=_0x5d1b21=>(_0x25f41b={})=>this['_n']('items',[_0xf3eafe,_0x5d1b21,_0x25f41b],![]);if(_0x2804da[_0x21ebd5(0x1c5)]){_0x474097['items']=_0x2a9897({'kind':_0x21ebd5(0x1c5)});for(const _0x200f55 of _0x2804da[_0x21ebd5(0x2b9)]){if(!_0x200f55[_0x21ebd5(0x464)])continue;if(_0x200f55[_0x21ebd5(0x608)]){const _0x2513b2=_0x474097[_0x200f55[_0x21ebd5(0x761)]];if(_0x2513b2?.[_0x21ebd5(0x784)]&&Array[_0x21ebd5(0x562)](_0x2513b2[_0x21ebd5(0x784)])){for(const _0x4fabb8 of _0x2513b2[_0x21ebd5(0x784)])_0x4fabb8[_0x21ebd5(0x464)]=_0x2a9897({'kind':_0x21ebd5(0x560),'reducer':_0x200f55[_0x21ebd5(0x761)],'key':_0x4fabb8[_0x21ebd5(0x1e8)]});}}else _0x474097[_0x200f55[_0x21ebd5(0x761)]]&&(_0x474097[_0x200f55[_0x21ebd5(0x761)]][_0x21ebd5(0x464)]=_0x2a9897({'kind':_0x21ebd5(0x394),'reducer':_0x200f55[_0x21ebd5(0x761)]}));}}for(const _0x250144 of _0x2804da[_0x21ebd5(0x786)]){if(!_0x250144[_0x21ebd5(0x1c5)])continue;const _0x48789f=_0x474097[_0x250144[_0x21ebd5(0x761)]];if(!_0x48789f||typeof _0x48789f!==_0x21ebd5(0x6ea))continue;_0x48789f['items']=_0x2a9897({'kind':_0x21ebd5(0x1c5),'ref':_0x250144[_0x21ebd5(0x761)]});for(const _0x44e206 of _0x250144['reducers']){if(!_0x44e206[_0x21ebd5(0x464)])continue;if(_0x44e206[_0x21ebd5(0x608)]){const _0x340da7=_0x48789f[_0x44e206[_0x21ebd5(0x761)]];if(_0x340da7?.['preview']&&Array[_0x21ebd5(0x562)](_0x340da7[_0x21ebd5(0x784)])){for(const _0x1c07ed of _0x340da7[_0x21ebd5(0x784)])_0x1c07ed[_0x21ebd5(0x464)]=_0x2a9897({'kind':'group','ref':_0x250144[_0x21ebd5(0x761)],'reducer':_0x44e206[_0x21ebd5(0x761)],'key':_0x1c07ed[_0x21ebd5(0x1e8)]});}}else _0x48789f[_0x44e206['name']]&&(_0x48789f[_0x44e206[_0x21ebd5(0x761)]][_0x21ebd5(0x464)]=_0x2a9897({'kind':_0x21ebd5(0x394),'ref':_0x250144['name'],'reducer':_0x44e206['name']}));}}return _0x474097;}[_0x47d5d2(0x1be)](_0x54e094){const _0x449c64=_0x47d5d2;return this['_n'](_0x449c64(0x1be),[_0x54e094],![]);}[_0x47d5d2(0x5a8)](_0x5df6ce,_0x240b15={}){const _0x4a66e5=_0x47d5d2;return this['_n'](_0x4a66e5(0x5a8),[_0x5df6ce,_0x240b15],![]);}[_0x47d5d2(0x3a8)](_0x385aa2,_0x4588b7={}){const _0x378833=_0x47d5d2;return this['_n'](_0x378833(0x3a8),[_0x385aa2,_0x4588b7],![]);}[_0x47d5d2(0x37e)](_0x5ef12a,_0x3c9f2c={}){const _0x1d8f8c=_0x47d5d2;return this['_n'](_0x1d8f8c(0x37e),[_0x5ef12a,_0x3c9f2c],![]);}async[_0x47d5d2(0x4bd)](){const _0x1e3335=_0x47d5d2;return this['_n'](_0x1e3335(0x4bd),[],![]);}async['getDefinition'](_0x3b5010){return this['_n']('getDefinition',[_0x3b5010],![])??null;}async['remove'](_0x2c7c38,_0x49d812={}){return this['_n']('remove',[_0x2c7c38,_0x49d812]);}async[_0x47d5d2(0x1b5)](_0x7d56d4){const _0x279acf=_0x47d5d2;return this['_n'](_0x279acf(0x1b5),[_0x7d56d4]);}async[_0x47d5d2(0x362)](_0x1e8c93){const _0x539f43=_0x47d5d2;await this[_0x539f43(0x219)](_0x539f43(0x7ad),[_0x1e8c93]),await this['_awaitBuild'](_0x1e8c93);}async[_0x47d5d2(0x535)](_0x44b946){const _0x310382=_0x47d5d2;await this[_0x310382(0x219)]('rebuildBegin',[_0x44b946]),await this[_0x310382(0x4c2)](_0x44b946);}async[_0x47d5d2(0x2ce)](_0x1ad5ba){const _0x53ab28=_0x47d5d2;await this[_0x53ab28(0x219)]('resetViewBegin',[_0x1ad5ba]),await this[_0x53ab28(0x4c2)](_0x1ad5ba);}['registerReducer'](_0x2611d6,_0x416feb={}){const _0x498eb9=_0x47d5d2;return this['_n'](_0x498eb9(0x47e),[_0x2611d6,{'apply':_0x416feb&&_0x416feb[_0x498eb9(0x79c)]}]);}}return views={'OKDBViews':_0x51b861},views;}var queue,hasRequiredQueue;function requireQueue(){const _0xff9396=_0x5b9a04;if(hasRequiredQueue)return queue;hasRequiredQueue=0x1;const {OKDBError:_0xf28662}=requireErrors(),_0x2ae0b5=requireBridge();class _0x4d52fa{constructor(_0xc4d286){const _0x254241=_0x48c6;this[_0x254241(0x374)]=_0xc4d286,this[_0x254241(0x861)]=_0xc4d286[_0x254241(0x861)],this[_0x254241(0x746)]=_0xc4d286['okdb'][_0x254241(0x746)][_0x254241(0x1ee)]({'feature':_0x254241(0x675)}),this[_0x254241(0x4b0)]=new Set();}['_n'](_0x231776,_0x2dbccd,_0x466cbb=!![]){const _0x14ebe1=_0x48c6;return this[_0x14ebe1(0x861)][_0x14ebe1(0x849)](_0x14ebe1(0x675),this['env']['name'],_0x231776,_0x2dbccd,_0x466cbb);}['_w'](_0x4ea92a,_0x315615){const _0x499772=_0x48c6;return this[_0x499772(0x861)][_0x499772(0x6fc)](this['_n'](_0x4ea92a,_0x315615));}async[_0xff9396(0x3f3)](){return this['_n']('ensure',[]);}async[_0xff9396(0x4bd)](_0x12793c={}){const _0x44a2d9=_0xff9396;return this['_n'](_0x44a2d9(0x4bd),[_0x12793c],![]);}get[_0xff9396(0x30d)](){const _0x35bc9c=_0xff9396,{RawDb:_0x3a9b54}=requireRawdb();return this[_0x35bc9c(0x200)]||(this[_0x35bc9c(0x200)]=new _0x3a9b54(this[_0x35bc9c(0x374)],_0x35bc9c(0x382)));}async['_sweepOrphanLogs'](){const _0x19649e=_0xff9396;return this['_w'](_0x19649e(0x34c),[]);}async[_0xff9396(0x343)](_0x342c1e,_0x5ebbd3,_0x1714c7={}){const _0x11c630=_0xff9396,{txn:_0x46f700,..._0x4509e4}=_0x1714c7||{};if(_0x46f700)return this['_enqueueInTxn'](_0x46f700,_0x342c1e,_0x5ebbd3,_0x4509e4);const _0x467885=this[_0x11c630(0x861)][_0x11c630(0x603)];if(_0x467885&&_0x467885[_0x11c630(0x675)][_0x11c630(0x2ea)])_0x467885[_0x11c630(0x250)]();const _0x85d643=this['_n'](_0x11c630(0x428),[_0x342c1e,_0x5ebbd3,_0x4509e4],![]);return this[_0x11c630(0x861)]['_settleWrite'](_0x85d643['id'])[_0x11c630(0x6f0)](_0x1882c3=>{const _0x311fb1=_0x11c630;if(_0x85d643[_0x311fb1(0x222)])this[_0x311fb1(0x408)](_0x342c1e);else try{this[_0x311fb1(0x861)][_0x311fb1(0x89b)]['wake']();}catch{}return _0x1882c3;});}[_0xff9396(0x408)](_0x5aa8d1){queueMicrotask(()=>{try{this['_n']('startClaimed',[_0x5aa8d1]);}catch{}});}[_0xff9396(0x592)](_0x3263b2,_0x446c72,_0x3807e8,_0x51b87b){const _0x2f9ab2=_0xff9396,_0x1aba0c=_0x3263b2[_0x2f9ab2(0x39f)]??_0x3263b2;if(_0x1aba0c[_0x2f9ab2(0x520)])throw new _0xf28662(_0x2f9ab2(0x1c2),_0x2f9ab2(0x7f3));if(_0x1aba0c[_0x2f9ab2(0x861)]&&_0x1aba0c['okdb']!==this[_0x2f9ab2(0x374)]&&_0x1aba0c[_0x2f9ab2(0x861)][_0x2f9ab2(0x761)]!==this['env'][_0x2f9ab2(0x761)])throw new _0xf28662(_0x2f9ab2(0x775),_0x2f9ab2(0x45c),{'txnEnv':_0x1aba0c[_0x2f9ab2(0x861)][_0x2f9ab2(0x761)],'queueEnv':this[_0x2f9ab2(0x374)][_0x2f9ab2(0x761)]});const _0x4fcb1e=this['_n'](_0x2f9ab2(0x63b),[_0x446c72,_0x3807e8,_0x51b87b],![]);if(_0x4fcb1e[_0x2f9ab2(0x860)])return _0x4fcb1e['id'];if(_0x4fcb1e[_0x2f9ab2(0x38b)])_0x3263b2[_0x2f9ab2(0x5de)](_0x2f9ab2(0x22f),_0x4fcb1e[_0x2f9ab2(0x38b)][_0x2f9ab2(0x1e8)],_0x4fcb1e[_0x2f9ab2(0x38b)][_0x2f9ab2(0x883)],{'ifVersion':_0x4fcb1e[_0x2f9ab2(0x38b)][_0x2f9ab2(0x808)]});if(_0x3807e8!==undefined)_0x3263b2['put'](_0x2f9ab2(0x4c5),_0x4fcb1e['id'],_0x3807e8);_0x3263b2[_0x2f9ab2(0x425)](_0x2f9ab2(0x22f),_0x4fcb1e['id'],_0x4fcb1e['job']);if(typeof _0x1aba0c[_0x2f9ab2(0x52e)]===_0x2f9ab2(0x4d1))_0x1aba0c['onDo'](()=>{const _0x1d919a=_0x2f9ab2;if(this['_n'](_0x1d919a(0x772),[_0x4fcb1e['id'],_0x446c72,_0x4fcb1e[_0x1d919a(0x4fc)],_0x4fcb1e[_0x1d919a(0x1de)]]))this['_startClaimedSoon'](_0x446c72);});return _0x4fcb1e['id'];}async[_0xff9396(0x679)](_0x31d850,_0x26c650={}){const _0xf548a9=_0xff9396;if(typeof _0x31d850!==_0xf548a9(0x431)||!_0x31d850)throw new _0xf28662(_0xf548a9(0x3af),_0xf548a9(0x33c));return this['_w']('claim',[_0x31d850,_0x26c650]);}async[_0xff9396(0x6d3)](_0x565f2c,_0x302e3f,_0x21b55f=null){const _0x4abda9=_0xff9396;return this['_w'](_0x4abda9(0x6d3),[_0x565f2c,_0x302e3f,_0x21b55f]);}async['heartbeat'](_0xf6049c,_0x17de9b,_0x1ecbce=null){const _0x5c690e=_0xff9396;return this[_0x5c690e(0x6d3)](_0xf6049c,_0x17de9b,_0x1ecbce);}async[_0xff9396(0x58f)](_0x540a33,_0x95f957,_0x5d6d35){const _0x5c01dc=_0xff9396;return this['_w'](_0x5c01dc(0x58f),[_0x540a33,_0x95f957,_0x5d6d35]);}async['markJobComplete'](_0x3a00ff,_0x10a7b4,_0x3507d6){const _0x1be3ed=_0xff9396;return this['_w'](_0x1be3ed(0x34d),[_0x3a00ff,_0x10a7b4,_0x3507d6]);}async[_0xff9396(0x802)](_0x474176,_0x43765a,_0x427c1f){const _0x3ba7d1=_0xff9396;return this[_0x3ba7d1(0x34d)](_0x474176,_0x43765a,_0x427c1f);}async[_0xff9396(0x5b9)](_0x1d0e84,_0x36ab16,_0x50753c,_0xa7f23c){const _0x32d403=_0xff9396,_0x4a3d2b=_0x50753c instanceof Error?{'message':_0x50753c[_0x32d403(0x2b8)],'stack':_0x50753c[_0x32d403(0x7e4)]}:_0x50753c;return this['_w'](_0x32d403(0x5b9),[_0x1d0e84,_0x36ab16,_0x4a3d2b,_0xa7f23c]);}async[_0xff9396(0x3ea)](_0x1b7fa4,_0x45afa6,_0x541ae3,_0x2a6e5a){const _0x2e565e=_0xff9396;return this[_0x2e565e(0x5b9)](_0x1b7fa4,_0x45afa6,_0x541ae3,_0x2a6e5a);}async[_0xff9396(0x7ea)](_0x4cb30d,_0x54b4a6,_0x3a37bf={}){const _0x2c5140=_0xff9396;return this['_w'](_0x2c5140(0x7ea),[_0x4cb30d,_0x54b4a6,_0x3a37bf]);}async[_0xff9396(0x796)](_0x59b6a1){const _0xde3e04=_0xff9396;return this['_n'](_0xde3e04(0x796),[_0x59b6a1],![]);}async[_0xff9396(0x6f6)](_0x32eb6c,_0x37d8d9={},_0x13af0c={}){const _0x3f70aa=_0xff9396,_0x54c464=_0x13af0c&&_0x13af0c[_0x3f70aa(0x354)];if(!_0x54c464)return this['_w'](_0x3f70aa(0x6f6),[_0x32eb6c,_0x37d8d9]);const {next:_0x2c9c8e,version:_0x12ec7a}=this['_n'](_0x3f70aa(0x46c),[_0x32eb6c,_0x37d8d9],![]);_0x54c464[_0x3f70aa(0x5de)](_0x3f70aa(0x22f),_0x32eb6c,_0x2c9c8e,{'ifVersion':_0x12ec7a});let _0x830612;if(_0x3f70aa(0x81d)in _0x37d8d9){if(_0x37d8d9[_0x3f70aa(0x81d)]===undefined){if(this['env'][_0x3f70aa(0x65c)](_0x3f70aa(0x4c5),_0x32eb6c))_0x54c464['remove'](_0x3f70aa(0x4c5),_0x32eb6c);}else _0x54c464[_0x3f70aa(0x425)](_0x3f70aa(0x4c5),_0x32eb6c,_0x37d8d9['payload']);_0x830612=_0x37d8d9[_0x3f70aa(0x81d)];}else _0x830612=this['env']['get'](_0x3f70aa(0x4c5),_0x32eb6c);return{..._0x2c9c8e,'payload':_0x830612};}async[_0xff9396(0x270)](_0x449b3d,_0x110b6d={}){const _0x589f89=_0xff9396,_0x13b8be=_0x110b6d&&_0x110b6d[_0x589f89(0x354)];if(!_0x13b8be)return this['_w'](_0x589f89(0x270),[_0x449b3d]);if(!_0x449b3d)throw new _0xf28662(_0x589f89(0x501),'BAD_PARAM');if(!this[_0x589f89(0x374)][_0x589f89(0x65c)](_0x589f89(0x22f),_0x449b3d))return![];_0x13b8be['remove'](_0x589f89(0x22f),_0x449b3d);if(this[_0x589f89(0x374)][_0x589f89(0x65c)]('~queue_payloads',_0x449b3d))_0x13b8be['remove'](_0x589f89(0x4c5),_0x449b3d);if(typeof _0x13b8be[_0x589f89(0x52e)]===_0x589f89(0x4d1))_0x13b8be['onDo'](()=>this['_n'](_0x589f89(0x2b1),[_0x449b3d]));return!![];}async[_0xff9396(0x732)](_0x5da43c){const _0x216b03=_0xff9396;return this['_w'](_0x216b03(0x732),[_0x5da43c]);}async[_0xff9396(0x3c5)](_0x2d9cfb){return this['_w']('retryJob',[_0x2d9cfb]);}async['_clearChunked'](_0x18c73b,_0x24927a,_0x4e4dc8){const _0x59edba=_0xff9396,_0x754b18=this['_n'](_0x59edba(0x421),[_0x24927a??null,_0x4e4dc8??0x0,_0x18c73b]),_0x3164d2=0x1f4;for(let _0x5cf8f5=0x0;_0x5cf8f5<_0x754b18[_0x59edba(0x2ea)];_0x5cf8f5+=_0x3164d2){this['_n'](_0x59edba(0x4a9),[_0x754b18['slice'](_0x5cf8f5,_0x5cf8f5+_0x3164d2),_0x5cf8f5,_0x754b18[_0x59edba(0x2ea)],_0x24927a??null]);if(_0x5cf8f5+_0x3164d2<_0x754b18['length'])await new Promise(_0x218257=>setImmediate(_0x218257));}return this['_n'](_0x59edba(0x5e6),[_0x754b18[_0x59edba(0x2ea)],_0x24927a??null]),await new Promise(_0x568108=>setImmediate(_0x568108)),_0x754b18['length'];}async[_0xff9396(0x781)](_0xe200d1,_0x50dec6){const _0x4d3011=_0xff9396;return this['_clearChunked'](_0x4d3011(0x650),_0xe200d1,_0x50dec6);}async[_0xff9396(0x2b5)](_0x149e54,_0x8936c4){return this['_clearChunked']('failed',_0x149e54,_0x8936c4);}async[_0xff9396(0x1b1)](_0x201833,_0xf96667){const _0xbe6687=_0xff9396;return this['_w'](_0xbe6687(0x1b1),[_0x201833??null,_0xf96667??0x0]);}async[_0xff9396(0x468)](_0x3ab66d,_0x22b63f){return this['_w']('clearStuck',[_0x3ab66d??null,_0x22b63f??0x0]);}async[_0xff9396(0x32a)](_0xce3233,_0x11810f,_0x2564a3){const _0x5d863c=_0xff9396;return this['_w'](_0x5d863c(0x32a),[_0xce3233,_0x11810f,_0x2564a3]);}async[_0xff9396(0x301)](_0x42c54a,_0xa1c2fa={}){const _0x364ea8=_0xff9396;return this['_n'](_0x364ea8(0x301),[_0x42c54a,_0xa1c2fa],![]);}async[_0xff9396(0x714)](_0x17fd4f,_0x199be0={}){const _0xcbc6bb=_0xff9396,{txn:_0x4b9943,..._0x506893}=_0x199be0||{};if(!_0x4b9943)return this['_w'](_0xcbc6bb(0x714),[_0x17fd4f,_0x506893]);const _0x41f2e5=(_0x21ea89,_0x20ad41,_0x550fd8,_0x1e5985)=>{const _0x47dc39=_0xcbc6bb,_0x2e26ed=Math[_0x47dc39(0x2f2)](Number(_0x21ea89));return Number[_0x47dc39(0x545)](_0x2e26ed)?Math[_0x47dc39(0x8b1)](_0x1e5985,Math[_0x47dc39(0x885)](_0x550fd8,_0x2e26ed)):_0x20ad41;},_0x405bdc=typeof _0x17fd4f===_0xcbc6bb(0x431)?_0x17fd4f[_0xcbc6bb(0x748)]():'';if(!_0x405bdc)throw new Error('bucket\x20id\x20required');const _0x3dfcc4=_0x41f2e5(_0x506893[_0xcbc6bb(0x557)],0x0,0x0,0x3b9aca00);_0x4b9943[_0xcbc6bb(0x425)](_0xcbc6bb(0x7ab),_0x405bdc,{'id':_0x405bdc,'tokens':_0x41f2e5(_0x506893[_0xcbc6bb(0x332)],_0x3dfcc4,0x0,_0x3dfcc4),'capacity':_0x3dfcc4,'refill_amount':_0x41f2e5(_0x506893[_0xcbc6bb(0x751)],0x0,0x0,0x3b9aca00),'refill_every':_0x41f2e5(_0x506893[_0xcbc6bb(0x61e)],0x0,0x0,0x16d*0x18*0x36ee80),'updated':Date[_0xcbc6bb(0x363)]()});}async[_0xff9396(0x549)](_0x3491a5,_0x2c87e5){const _0x3cfd39=_0xff9396;return this['_w'](_0x3cfd39(0x549),[_0x3491a5,_0x2c87e5]);}async[_0xff9396(0x25f)](_0x223a96){return this['_w']('removeBucket',[_0x223a96]);}[_0xff9396(0x4c8)](_0x1a60e0){const _0x5cd610=_0xff9396,_0x1390c4=this['_n']('getBucket',[_0x1a60e0],![]);return _0x1390c4===null&&typeof _0x1a60e0===_0x5cd610(0x431)&&_0x1a60e0[_0x5cd610(0x748)]()?undefined:_0x1390c4;}async[_0xff9396(0x4aa)](_0x193703,_0x544f85){const _0x2ce86f=_0xff9396;return this['_w'](_0x2ce86f(0x4aa),[_0x193703,_0x544f85]);}async[_0xff9396(0x636)](_0x5dcefb,_0x789559={}){const _0x1eb4df=_0xff9396;return this['_w'](_0x1eb4df(0x636),[_0x5dcefb,_0x789559]);}async[_0xff9396(0x5e4)](_0x593520){return this['_n']('getJobType',[_0x593520],![]);}async[_0xff9396(0x7cb)](){const _0x372e61=_0xff9396;return this['_n'](_0x372e61(0x7cb),[],![]);}async[_0xff9396(0x63c)](_0x46ab5b){return this['_w']('removeJobType',[_0x46ab5b]);}[_0xff9396(0x2f1)](_0x350205){return this['_n']('pauseJobType',[_0x350205]);}['resumeJobType'](_0x24e4e6){const _0x5666c7=_0xff9396;return this['_n'](_0x5666c7(0x47f),[_0x24e4e6]);}[_0xff9396(0x230)](_0x48bd76){const _0xfbe386=_0xff9396;return this['_n'](_0xfbe386(0x230),[_0x48bd76]);}async['setJobTypeSchema'](_0xe6596b,_0x423edd,_0x518d45=![]){const _0x4d6337=_0xff9396;return this['_w'](_0x4d6337(0x20f),[_0xe6596b,_0x423edd,_0x518d45]);}async[_0xff9396(0x2e6)](_0x582527){return this['_w']('removeJobTypeSchema',[_0x582527]);}async[_0xff9396(0x37b)](_0x2d23d2,_0x46710e=0x5){const _0x5e31fe=_0xff9396;return this['_n'](_0x5e31fe(0x37b),[_0x2d23d2,_0x46710e],![]);}async[_0xff9396(0x256)](_0x110de9){const _0x2fce76=_0xff9396;return this['_n'](_0x2fce76(0x898),[_0x110de9]);}async[_0xff9396(0x790)](_0x3ac83e=0x7530){const _0x3e76cd=_0xff9396;await Promise[_0x3e76cd(0x2b0)]([...this[_0x3e76cd(0x4b0)]][_0x3e76cd(0x8a1)](_0x5eae48=>_0x5eae48[_0x3e76cd(0x1b5)](_0x3ac83e)));const _0x568ba7=this['_n'](_0x3e76cd(0x790),[0x0]);return this[_0x3e76cd(0x4b0)][_0x3e76cd(0x674)](),_0x568ba7;}async[_0xff9396(0x3d8)](){const _0x42fe35=_0xff9396,_0x3931a4=this['_n']('killAll',[]);return this[_0x42fe35(0x4b0)][_0x42fe35(0x674)](),_0x3931a4;}[_0xff9396(0x82a)](_0x3708fb,_0x347ee3,_0x1fa3ce){const _0x24d362=_0xff9396;let _0x576409,_0x36987e;if(Array[_0x24d362(0x562)](_0x3708fb)){if(typeof _0x347ee3===_0x24d362(0x4d1))throw new _0xf28662('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.',_0x24d362(0x33c));_0x36987e=_0x347ee3??{};if(_0x36987e[_0x24d362(0x1e5)]!=null&&typeof _0x36987e[_0x24d362(0x1e5)]!==_0x24d362(0x4d1))throw new _0xf28662(_0x24d362(0x4fa),'BAD_PARAM');if(_0x3708fb[_0x24d362(0x2ea)]===0x0)throw new _0xf28662(_0x24d362(0x35f),_0x24d362(0x33c));_0x576409=_0x3708fb[_0x24d362(0x8a1)](_0x2d5258=>{const _0x343f4c=_0x24d362;if(!_0x2d5258||typeof _0x2d5258[_0x343f4c(0x6eb)]!=='string'||!_0x2d5258[_0x343f4c(0x6eb)])throw new _0xf28662(_0x343f4c(0x27d),_0x343f4c(0x33c));if(typeof _0x2d5258[_0x343f4c(0x5fc)]!=='function')throw new _0xf28662('process()\x20entry\x20\x22'+_0x2d5258[_0x343f4c(0x6eb)]+_0x343f4c(0x398),_0x343f4c(0x33c));return{..._0x2d5258};});}else{_0x36987e=_0x1fa3ce??{};if(typeof _0x347ee3!==_0x24d362(0x4d1))throw new _0xf28662(_0x24d362(0x507)+_0x3708fb+_0x24d362(0x398),_0x24d362(0x33c));_0x576409=[{'type':_0x3708fb,'handler':_0x347ee3,..._0x1fa3ce??{}}];}const _0x12a774=this[_0x24d362(0x861)];for(const _0x2391e2 of _0x576409){const _0x27f0f9=_0x2391e2[_0x24d362(0x5fc)];_0x2391e2[_0x24d362(0x5fc)]=function(..._0x4d5a0c){const _0x3db017=_0x24d362;return _0x12a774['_afterDurable']()['then'](()=>_0x27f0f9[_0x3db017(0x79c)](this,_0x4d5a0c));};}const _0x49159a=this['_n'](_0x24d362(0x82a),[_0x576409,_0x36987e]),_0x137efb=this,_0x5b53cb={'id':_0x49159a['id'],'type':_0x49159a[_0x24d362(0x6eb)],get 'running'(){const _0x40fea4=_0x24d362;return _0x137efb['_n'](_0x40fea4(0x823),[_0x49159a['id']],![])[_0x40fea4(0x291)];},'isRunning'(){const _0x1e6b16=_0x24d362;return _0x137efb['_n'](_0x1e6b16(0x823),[_0x49159a['id']],![])[_0x1e6b16(0x291)];},async 'stop'(_0x298115=0x7530){const _0x1ef34d=_0x24d362;_0x137efb['_n']('stopWorkerBegin',[_0x49159a['id']]);const _0x4966c5=Date[_0x1ef34d(0x363)]()+_0x298115;while(_0x137efb['_n'](_0x1ef34d(0x823),[_0x49159a['id']],![])['inFlight']>0x0&&Date['now']()<_0x4966c5)await new Promise(_0x441443=>setTimeout(_0x441443,0x2));_0x137efb['_n'](_0x1ef34d(0x5ad),[_0x49159a['id']]),_0x2ae0b5['checkSignals'](),_0x137efb[_0x1ef34d(0x4b0)]['delete'](_0x5b53cb);},async 'kill'(){const _0x106e53=_0x24d362;_0x137efb['_n'](_0x106e53(0x466),[_0x49159a['id']]),_0x137efb[_0x106e53(0x4b0)][_0x106e53(0x597)](_0x5b53cb);}};return this[_0x24d362(0x4b0)][_0x24d362(0x261)](_0x5b53cb),_0x5b53cb;}[_0xff9396(0x681)](_0x3811a9){const _0x4fa8ae=_0xff9396;throw new _0xf28662(_0x4fa8ae(0x664)+_0x3811a9+_0x4fa8ae(0x809)+_0x3811a9+_0x4fa8ae(0x718),_0x4fa8ae(0x347));}[_0xff9396(0x46b)](_0x149095){const _0x4c7d7d=_0xff9396;return this[_0x4c7d7d(0x681)](_0x149095);}}return queue={'OKDBQueue':_0x4d52fa},queue;}var timemachine,hasRequiredTimemachine;function requireTimemachine(){const _0x1efc96=_0x5b9a04;if(hasRequiredTimemachine)return timemachine;hasRequiredTimemachine=0x1;const {fromArray:_0x4abfe7}=requireIterable();class _0x35c148{constructor(_0x36cded){const _0x1fe74d=_0x48c6;this[_0x1fe74d(0x374)]=_0x36cded,this[_0x1fe74d(0x861)]=_0x36cded[_0x1fe74d(0x861)];const _0x73cce5=(_0x2f086b,_0x2c722a)=>this['_n'](_0x2f086b,_0x2c722a,![]);this[_0x1fe74d(0x85c)]={'getDiffs':(_0x1a9aef,_0x213f14,_0x376fa8)=>_0x73cce5(_0x1fe74d(0x8ab),[_0x1a9aef,_0x213f14,_0x376fa8||{}]),'hasDiff':(_0x5330bf,_0x54fa75,_0x486bf6)=>_0x73cce5('storeHasDiff',[_0x5330bf,_0x54fa75,_0x486bf6]),'getHead':(_0x3880e6,_0xb4a110)=>_0x73cce5(_0x1fe74d(0x40f),[_0x3880e6,_0xb4a110])??null,'getHeadCount':_0x3c8727=>_0x73cce5(_0x1fe74d(0x5cb),[_0x3c8727]),'getTotalHeadCount':()=>_0x73cce5(_0x1fe74d(0x6ca),[]),'getDiffsInRange':(_0x462028,_0x4ebdf5,_0x2bb4ad)=>_0x73cce5(_0x1fe74d(0x3d7),[_0x462028??null,_0x4ebdf5,_0x2bb4ad]),'getConfig':()=>_0x73cce5('storeGetConfig',[])??null,'getCursor':()=>this['_n'](_0x1fe74d(0x83f),[],![])??null,get 'db'(){try{return _0x73cce5('storeGetTotalHeadCount',[]),{};}catch{return null;}}};}get[_0x1efc96(0x824)](){const _0x4a370d=_0x1efc96,_0x230670=(this[_0x4a370d(0x374)][_0x4a370d(0x893)]?.[_0x4a370d(0x4bd)]?.()||[])[_0x4a370d(0x1b8)](_0x1cf454=>String(_0x1cf454[_0x4a370d(0x5c5)]||'')[_0x4a370d(0x42e)](_0x4a370d(0x247)))[_0x4a370d(0x2ea)];return{'size':_0x230670};}['_n'](_0xc21a12,_0x5bb8aa,_0x5915a8=!![]){const _0x269610=_0x1efc96;return this[_0x269610(0x861)]['_call']('tm',this['env'][_0x269610(0x761)],_0xc21a12,_0x5bb8aa,_0x5915a8);}async[_0x1efc96(0x2be)](_0x2644fb){const _0xd362d=_0x1efc96;return this['_n'](_0xd362d(0x2be),[_0x2644fb??null]);}async[_0x1efc96(0x598)](_0x219925){const _0x2b21c8=_0x1efc96;return this['_n'](_0x2b21c8(0x598),[_0x219925??null]);}async[_0x1efc96(0x38f)](){const _0x3e7bf7=_0x1efc96;return this['_n'](_0x3e7bf7(0x38f),[]);}async[_0x1efc96(0x890)](){const _0xeb19ec=_0x1efc96;return this['_n'](_0xeb19ec(0x890),[]);}async['drop'](_0x369ef3){const _0x5052d1=_0x1efc96;return this['_n'](_0x5052d1(0x858),[_0x369ef3??null]);}async[_0x1efc96(0x801)](){const _0x1de5c5=_0x1efc96;return this['_n'](_0x1de5c5(0x801),[]);}[_0x1efc96(0x8cb)](_0x3f6313){const _0x207622=_0x1efc96;return this['_n'](_0x207622(0x8cb),[_0x3f6313??null],![]);}[_0x1efc96(0x4bd)](){const _0x20bb62=_0x1efc96;return this['_n'](_0x20bb62(0x4bd),[],![]);}[_0x1efc96(0x71d)](_0x313e3b){const _0x295e9a=_0x1efc96;return this['_n'](_0x295e9a(0x71d),[_0x313e3b??null],![]);}[_0x1efc96(0x595)](_0x248a0b){const _0x3c62c0=_0x1efc96;if(!_0x248a0b)return this['_n'](_0x3c62c0(0x83f),[],![]);return this['_n']('getCursor',[_0x248a0b],![]);}['getLegacyCursor'](){const _0x472bdb=_0x1efc96;return this['_n'](_0x472bdb(0x83f),[],![]);}['getStateAt'](_0x4e6fe8,_0x5cd554,_0x50cc4c){return this['_n']('getStateAt',[_0x4e6fe8,_0x5cd554,_0x50cc4c],![]);}[_0x1efc96(0x587)](_0x1004a4,_0x4b3e90,_0x3549c5){const _0x26fb7e=_0x1efc96;return this['_n'](_0x26fb7e(0x587),[_0x1004a4,_0x4b3e90,_0x3549c5||{}],![]);}['getChanges'](_0x36d914,_0x443dba,_0x986575){const _0x399bcc=_0x1efc96;return this['_n'](_0x399bcc(0x755),[_0x36d914??null,_0x443dba,_0x986575],![])[Symbol[_0x399bcc(0x393)]]();}async[_0x1efc96(0x465)](_0x434281){const _0x43865f=_0x1efc96;return this['_n'](_0x43865f(0x465),[_0x434281??null]);}}return timemachine={'OKDBTimeMachine':_0x35c148},timemachine;}var files,hasRequiredFiles;function requireFiles(){const _0x2416b8=_0x5b9a04;if(hasRequiredFiles)return files;hasRequiredFiles=0x1;const _0x33fd8d=require$$0,{Readable:_0x4f6293}=require$$1,{OKDBError:_0x4ffbb,optionsArg:_0x5a0a41,invalidArgument:_0x6e90a4}=requireErrors(),{RawDb:_0x220ccc}=requireRawdb();async function _0xd476f0(_0x1091d6){const _0x16e0d4=_0x48c6;if(Buffer[_0x16e0d4(0x85f)](_0x1091d6))return _0x1091d6;if(_0x1091d6 instanceof Uint8Array)return Buffer[_0x16e0d4(0x7f7)](_0x1091d6);if(typeof _0x1091d6===_0x16e0d4(0x431))return Buffer[_0x16e0d4(0x7f7)](_0x1091d6);const _0x5393a5=[];for await(const _0x1fa651 of _0x1091d6)_0x5393a5[_0x16e0d4(0x66a)](Buffer['isBuffer'](_0x1fa651)?_0x1fa651:Buffer[_0x16e0d4(0x7f7)](_0x1fa651));return Buffer[_0x16e0d4(0x4d6)](_0x5393a5);}class _0xeb0f2e{constructor(_0x156561){const _0x45dad2=_0x48c6;this['env']=_0x156561,this['okdb']=_0x156561[_0x45dad2(0x861)];}['_n'](_0x113cfd,_0x46df66,_0x1d1010=!![]){const _0x496723=_0x48c6;return this[_0x496723(0x861)]['_call'](_0x496723(0x378),this[_0x496723(0x374)]['name'],_0x113cfd,_0x46df66,_0x1d1010);}['start'](){return!![];}[_0x2416b8(0x1b5)](){}async[_0x2416b8(0x3f3)](){this['_n']('ensure',[]);}async[_0x2416b8(0x1e1)](_0x110cac,_0x594722){const _0x50f142=_0x2416b8;return this[_0x50f142(0x861)]['_settleWrite'](this['_n'](_0x50f142(0x869),[_0x110cac,await _0xd476f0(_0x594722)]));}get[_0x2416b8(0x351)](){const _0x50581a=_0x2416b8;return this[_0x50581a(0x234)]||(this['__blobStatusDb']=new _0x220ccc(this[_0x50581a(0x374)],_0x50581a(0x86d)));}async['_blobStatusTxn'](_0x39507f){const _0x1c5d31=_0x2416b8;return this[_0x1c5d31(0x351)][_0x1c5d31(0x52a)](_0x39507f);}async[_0x2416b8(0x422)](_0x51d5fa){const _0x365133=_0x2416b8,{id:_0x5ae402,stream:_0x2d558c,mime:mime=_0x365133(0x1a5),path:_0x542a8b='',txn:txn=null}=_0x5a0a41(_0x51d5fa);if(!_0x5ae402)throw _0x6e90a4(_0x365133(0x1d0),_0x365133(0x448),_0x5ae402);if(!_0x2d558c)throw _0x6e90a4(_0x365133(0x330),_0x365133(0x6d2),_0x2d558c);const _0x313980=await _0xd476f0(_0x2d558c);if(txn){const _0x463d4f=this['_n'](_0x365133(0x3f4),[_0x5ae402,_0x313980,{'mime':mime,'path':_0x542a8b}]);return txn[_0x365133(0x425)](_0x365133(0x68b),_0x5ae402,_0x463d4f[_0x365133(0x5ec)]),txn[_0x365133(0x52e)](()=>this['_n'](_0x365133(0x43a),[_0x463d4f[_0x365133(0x22c)]])),txn[_0x365133(0x1eb)](()=>this['_n'](_0x365133(0x7b9),[_0x463d4f[_0x365133(0x22c)]])),_0x463d4f[_0x365133(0x5ec)];}return this[_0x365133(0x861)]['_settleWrite'](this['_n'](_0x365133(0x422),[_0x5ae402,_0x313980,{'mime':mime,'path':_0x542a8b}]));}['get'](_0x43fc6e){const _0x519409=_0x2416b8;return this['_n'](_0x519409(0x67f),[_0x43fc6e],![])??null;}[_0x2416b8(0x8c4)](_0x52ecbd){const _0xc66f94=_0x2416b8,_0x368b60=this[_0xc66f94(0x77e)](_0x52ecbd);if(!_0x33fd8d[_0xc66f94(0x25e)](_0x368b60))throw Object['assign'](new Error(_0xc66f94(0x1f5)+_0x52ecbd),{'status':0x194});return this['_blobStream'](_0x52ecbd);}[_0x2416b8(0x641)](_0x597807){const _0x590426=0x100*0x400,_0x368c2a=this;let _0x1ea2d5=0x0;return new _0x4f6293({'highWaterMark':_0x590426,'read'(){const _0x3747c6=_0x48c6;let _0x5bc5d4;try{const _0x4e297e=_0x368c2a['_n']('readHashRange',[_0x597807,_0x1ea2d5,_0x590426],![]);_0x5bc5d4=Buffer[_0x3747c6(0x85f)](_0x4e297e)?_0x4e297e:Buffer[_0x3747c6(0x7f7)](_0x4e297e);}catch(_0xfc71e1){this[_0x3747c6(0x684)](_0xfc71e1);return;}_0x1ea2d5+=_0x5bc5d4[_0x3747c6(0x2ea)];if(_0x5bc5d4[_0x3747c6(0x2ea)])this[_0x3747c6(0x66a)](_0x5bc5d4);if(_0x5bc5d4[_0x3747c6(0x2ea)]<_0x590426)this['push'](null);}});}async['read'](_0x480fde){const _0x26feee=_0x2416b8;return this['okdb'][_0x26feee(0x2f3)](this['_n'](_0x26feee(0x659),[_0x480fde],![]));}async[_0x2416b8(0x868)](_0x50cd5c){const _0x2ba094=_0x2416b8,_0x179a7a=this[_0x2ba094(0x67f)](_0x50cd5c);if(!_0x179a7a)throw Object[_0x2ba094(0x6af)](new Error(_0x2ba094(0x671)+_0x50cd5c),{'status':0x194});const _0x21259e=this[_0x2ba094(0x77e)](_0x179a7a[_0x2ba094(0x6ef)]);if(!_0x33fd8d[_0x2ba094(0x25e)](_0x21259e))throw Object[_0x2ba094(0x6af)](new Error(_0x2ba094(0x61b)+_0x50cd5c),{'status':0x194});return{'stream':this[_0x2ba094(0x641)](_0x179a7a[_0x2ba094(0x6ef)]),'record':_0x179a7a};}async[_0x2416b8(0x467)](_0x17a20d,_0x241421){const _0x2820a4=_0x2416b8,{txn:txn=null}=_0x5a0a41(_0x241421);if(txn){const _0x16902e=this['_n']('removeTxn',[_0x17a20d]);txn[_0x2820a4(0x467)](_0x2820a4(0x68b),_0x17a20d),txn[_0x2820a4(0x52e)](()=>this['_n'](_0x2820a4(0x43a),[_0x16902e[_0x2820a4(0x22c)]])),txn['onUndo'](()=>this['_n']('txnUndone',[_0x16902e['hook']]));return;}return this['okdb'][_0x2820a4(0x6fc)](this['_n'](_0x2820a4(0x467),[_0x17a20d]));}async['listPath'](_0x14f49e,_0x25aae5={}){const _0x57fa2c=_0x2416b8;return this['_n'](_0x57fa2c(0x5d6),[_0x14f49e,_0x25aae5],![]);}[_0x2416b8(0x6dd)](_0x2b0829){const _0x3398a6=_0x2416b8;return this['_n'](_0x3398a6(0x6dd),[_0x2b0829],![]);}[_0x2416b8(0x644)](){const _0x195faa=_0x2416b8;return this['_n'](_0x195faa(0x644),[],![]);}[_0x2416b8(0x366)](_0x272155){const _0x2c6deb=_0x2416b8,{minAgeMs:_0x1c01dc}=_0x5a0a41(_0x272155);return this['_n'](_0x2c6deb(0x366),[_0x1c01dc??null]);}['registerExtractor'](_0x356f9c,_0x3607b4){const _0x179992=_0x2416b8;if(typeof _0x3607b4!=='function')throw new _0x4ffbb(_0x179992(0x5ca),_0x179992(0x33c));const _0x3cd13a=this['_n'](_0x179992(0x81a),[_0x356f9c,_0x3607b4]);return()=>this['_n']('unregisterExtractor',[_0x3cd13a]);}async[_0x2416b8(0x2f6)](_0x15ac69){return _0x15ac69=_0x5a0a41(_0x15ac69),this['_n']('indexContent',[_0x15ac69]);}async[_0x2416b8(0x2bd)](_0x2db22f){const _0x371991=_0x2416b8,{peerIds:_0x1ccc64}=_0x5a0a41(_0x2db22f);return this['_n'](_0x371991(0x2bd),[_0x1ccc64??null]);}[_0x2416b8(0x77e)](_0x5ef4f5){const _0x2b9bbc=_0x2416b8;if(typeof _0x5ef4f5!==_0x2b9bbc(0x431))return require$$4[_0x2b9bbc(0x47b)](this[_0x2b9bbc(0x5b5)],_0x5ef4f5[_0x2b9bbc(0x4bb)](0x0,0x2),_0x5ef4f5[_0x2b9bbc(0x4bb)](0x2));return this['_n'](_0x2b9bbc(0x5f8),[_0x5ef4f5],![]);}get[_0x2416b8(0x5b5)](){const _0x38d1cf=_0x2416b8;return this['_n'](_0x38d1cf(0x4f4),[],![]);}}return files={'OKDBFiles':_0xeb0f2e},files;}var engines,hasRequiredEngines;function requireEngines(){const _0x5608f5=_0x5b9a04;if(hasRequiredEngines)return engines;hasRequiredEngines=0x1;const {OKDBError:_0xe47b8}=requireErrors(),_0x1f45fd=requireBridge(),_0x4f7b34=new Set(['embedder','indexer',_0x5608f5(0x5fb),'embed-worker']),_0x4b5e92=new Set(['count',_0x5608f5(0x34f),_0x5608f5(0x83c)]),_0x606d61=[_0x5608f5(0x7c7),'patchConfig',_0x5608f5(0x474),_0x5608f5(0x637),_0x5608f5(0x719),_0x5608f5(0x1b5),_0x5608f5(0x3bc)],_0x3f035e={'embedder':new Set([_0x5608f5(0x83c),_0x5608f5(0x613)])},_0x11fe5d=new Set([_0x5608f5(0x2c7),_0x5608f5(0x893),'queue-worker']);class _0x3883b9{constructor(_0x4d3dde,_0x4efa0d,_0x9493,_0x3ff3a9){const _0x3d61f1=_0x5608f5;this[_0x3d61f1(0x65f)]=_0x4d3dde,this[_0x3d61f1(0x1e8)]=_0x4efa0d,this[_0x3d61f1(0x6eb)]=_0x9493,this[_0x3d61f1(0x761)]=_0x3ff3a9,this['engineType']=_0x9493;}[_0x5608f5(0x1e4)](){const _0x5d7980=_0x5608f5;return this[_0x5d7980(0x65f)]['_n'](_0x5d7980(0x34f),[this[_0x5d7980(0x6eb)],this[_0x5d7980(0x761)]],![]);}get['doc'](){const _0x3a5930=_0x5608f5;return this[_0x3a5930(0x1e4)]()[_0x3a5930(0x6f5)];}get[_0x5608f5(0x85c)](){const _0x732e8a=_0x5608f5,_0x3d97f7=this[_0x732e8a(0x1e4)]()['storeEnv'];return _0x3d97f7?this[_0x732e8a(0x65f)][_0x732e8a(0x861)]['_envs']['get'](_0x3d97f7):undefined;}get[_0x5608f5(0x337)](){const _0x1f3cfc=_0x5608f5;return this[_0x1f3cfc(0x1e4)]()[_0x1f3cfc(0x337)];}get[_0x5608f5(0x258)](){return this['_info']()['enabled'];}get[_0x5608f5(0x269)](){const _0x1dbf2e=_0x5608f5;return this['_info']()[_0x1dbf2e(0x269)];}get[_0x5608f5(0x71d)](){const _0x1c1e17=_0x5608f5;return this[_0x1c1e17(0x1e4)]()[_0x1c1e17(0x71d)];}get[_0x5608f5(0x3db)](){const _0x52a822=_0x5608f5;return this[_0x52a822(0x1e4)]()['reason'];}get[_0x5608f5(0x2f0)](){const _0xbe45d3=_0x5608f5,_0x4cac9f=this[_0xbe45d3(0x1e4)]()[_0xbe45d3(0x2f0)];return _0x4cac9f?Object[_0xbe45d3(0x6af)](new Error(_0x4cac9f['message']),{'code':_0x4cac9f['code']}):null;}get['runtimeState'](){const _0x169b40=_0x5608f5;return this['_info']()[_0x169b40(0x386)];}get['driver'](){const _0x581fdf=_0x5608f5;return this[_0x581fdf(0x65f)]['drivers'][_0x581fdf(0x67f)](this[_0x581fdf(0x6eb)])??null;}get[_0x5608f5(0x533)](){const _0x38ea99=_0x5608f5;if(!this[_0x38ea99(0x1e4)]()[_0x38ea99(0x60f)])return null;const _0x23a135=this;return new Proxy({},{'get'(_0x405c2a,_0xb46613){const _0x103482=_0x38ea99;if(typeof _0xb46613===_0x103482(0x1a7)||_0xb46613===_0x103482(0x6f0))return undefined;if(_0x3f035e[_0x23a135['type']]&&_0x3f035e[_0x23a135[_0x103482(0x6eb)]][_0x103482(0x884)](_0xb46613))return _0x23a135[_0x103482(0x65f)]['_n'](_0x103482(0x43b),[_0x23a135[_0x103482(0x6eb)],_0x23a135[_0x103482(0x761)],_0xb46613,[]],![])[_0x103482(0x883)];if(_0x23a135[_0x103482(0x6eb)]===_0x103482(0x4e0)&&_0xb46613===_0x103482(0x465))return async(_0x2fbf0b={})=>{const _0x2fe0d2=_0x103482,_0x368951=(_0x4eef96,..._0x5db0ab)=>_0x23a135[_0x2fe0d2(0x65f)]['_n'](_0x2fe0d2(0x43b),[_0x23a135[_0x2fe0d2(0x6eb)],_0x23a135[_0x2fe0d2(0x761)],_0x4eef96,_0x5db0ab],!![])[_0x2fe0d2(0x883)],_0x3df071=_0x368951(_0x2fe0d2(0x45e),_0x2fbf0b??{}),_0x234a63=Date[_0x2fe0d2(0x363)]();for(;;){const _0x476ae2=await _0x23a135['_facade'][_0x2fe0d2(0x861)][_0x2fe0d2(0x3ef)](()=>_0x368951(_0x2fe0d2(0x56f)));if(_0x476ae2[_0x2fe0d2(0x519)]>=_0x476ae2['head'])return;Date[_0x2fe0d2(0x363)]()-_0x234a63>=_0x3df071&&_0x368951(_0x2fe0d2(0x35b),_0x2fbf0b??{},_0x476ae2),await new Promise(_0xe2b02e=>setTimeout(_0xe2b02e,0x3));}};return(..._0x3a9fd0)=>{const _0x2d8d1b=_0x103482,_0x19d250=()=>_0x23a135['_facade']['_n'](_0x2d8d1b(0x43b),[_0x23a135[_0x2d8d1b(0x6eb)],_0x23a135[_0x2d8d1b(0x761)],_0xb46613,_0x3a9fd0],!![]),_0x557e57=_0xdf8a98=>{const _0x7f48ed=_0x2d8d1b;if(_0xdf8a98&&_0xdf8a98['__absent'])throw new TypeError('engine\x20api\x20has\x20no\x20method\x20\x27'+_0xb46613+'\x27');return _0xdf8a98[_0x7f48ed(0x883)];};if(_0x4f7b34[_0x2d8d1b(0x884)](_0x23a135['type'])&&!_0x4b5e92[_0x2d8d1b(0x884)](_0xb46613)){const _0x40029b=_0x23a135[_0x2d8d1b(0x65f)][_0x2d8d1b(0x861)];return _0x40029b['_retryPending'](()=>_0x40029b[_0x2d8d1b(0x3ef)](_0x19d250))[_0x2d8d1b(0x6f0)](_0x557e57);}if(_0x11fe5d[_0x2d8d1b(0x884)](_0x23a135[_0x2d8d1b(0x6eb)]))try{return Promise[_0x2d8d1b(0x253)](_0x557e57(_0x19d250()));}catch(_0x371a6d){return Promise[_0x2d8d1b(0x723)](_0x371a6d);}return _0x557e57(_0x19d250());};}});}async[_0x5608f5(0x851)](_0x483421={}){const _0x320109=_0x5608f5;return await this['_facade'][_0x320109(0x21b)]('load',[this[_0x320109(0x6eb)],this[_0x320109(0x761)],_0x483421]),this;}async['start'](){const _0x393693=_0x5608f5;await this[_0x393693(0x65f)][_0x393693(0x21b)]('engineStart',[this['type'],this[_0x393693(0x761)]]);}async[_0x5608f5(0x1b5)](_0x3933b8={}){const _0x4982ab=_0x5608f5;await this[_0x4982ab(0x65f)][_0x4982ab(0x21b)]('engineStop',[this['type'],this[_0x4982ab(0x761)],_0x3933b8]);}async[_0x5608f5(0x1d3)](_0x445300={}){const _0x23cbe4=_0x5608f5;return await this[_0x23cbe4(0x65f)][_0x23cbe4(0x21b)](_0x23cbe4(0x1d3),[this['type'],this[_0x23cbe4(0x761)],_0x445300]),this;}async[_0x5608f5(0x3bc)](){const _0x3c621e=_0x5608f5;await this[_0x3c621e(0x65f)][_0x3c621e(0x21b)](_0x3c621e(0x740),[this[_0x3c621e(0x6eb)],this['name']]);}}class _0x2e6818{constructor(_0x1e754f,_0x70fd23=null,_0x2b7f87=null){const _0x219ff7=_0x5608f5;this[_0x219ff7(0x861)]=_0x1e754f,this[_0x219ff7(0x4ae)]=_0x70fd23,this[_0x219ff7(0x64f)]=_0x70fd23===null,this[_0x219ff7(0x5af)]=_0x2b7f87||this,this['drivers']=this['_root']===this?_0x4cfbc8(this):this[_0x219ff7(0x5af)][_0x219ff7(0x757)],this[_0x219ff7(0x1d6)]=new Map();}['_n'](_0xd73cc0,_0xa037b,_0x726a78=!![]){const _0x55770e=_0x5608f5;return this[_0x55770e(0x861)][_0x55770e(0x849)](_0x55770e(0x439),this[_0x55770e(0x4ae)],_0xd73cc0,_0xa037b,_0x726a78);}['_nm'](_0x57198f,_0x35a08a){const _0x35a1ef=_0x5608f5;return this[_0x35a1ef(0x861)][_0x35a1ef(0x2f8)]('engines',this[_0x35a1ef(0x4ae)],_0x57198f,_0x35a08a,!![]);}get[_0x5608f5(0x374)](){const _0x363c6f=_0x5608f5;return this[_0x363c6f(0x4ae)]?this[_0x363c6f(0x861)][_0x363c6f(0x374)](this[_0x363c6f(0x4ae)]):null;}[_0x5608f5(0x71c)](_0xdcc554){const _0x1a77e6=_0x5608f5;if(!_0xdcc554)return null;let _0x15ff60=this[_0x1a77e6(0x1d6)]['get'](_0xdcc554[_0x1a77e6(0x1e8)]);return!_0x15ff60&&(_0x15ff60=new _0x3883b9(this,_0xdcc554['key'],_0xdcc554['type'],_0xdcc554[_0x1a77e6(0x761)]),this[_0x1a77e6(0x1d6)][_0x1a77e6(0x5e7)](_0xdcc554[_0x1a77e6(0x1e8)],_0x15ff60)),_0x15ff60;}[_0x5608f5(0x3a2)](_0x91e2e5,_0x202ed8){const _0x18964c=_0x5608f5;if(!_0x91e2e5||typeof _0x91e2e5!==_0x18964c(0x431))throw new _0xe47b8(_0x18964c(0x8a8),_0x18964c(0x4ee),{'type':_0x91e2e5});if(!_0x202ed8||typeof _0x202ed8!==_0x18964c(0x6ea))throw new _0xe47b8('Engine\x20driver\x20for\x20\x22'+_0x91e2e5+_0x18964c(0x46d),'ENGINE_INVALID_DRIVER',{'type':_0x91e2e5});if(typeof _0x202ed8['start']!==_0x18964c(0x4d1))throw new _0xe47b8(_0x18964c(0x4d0)+_0x91e2e5+_0x18964c(0x8a0),'ENGINE_DRIVER_MISSING_START',{'type':_0x91e2e5});const _0x47cd26=this['_root'];if(_0x47cd26[_0x18964c(0x757)][_0x18964c(0x884)](_0x91e2e5))throw new _0xe47b8(_0x18964c(0x752)+_0x91e2e5+'\x22',_0x18964c(0x1cc),{'type':_0x91e2e5});const _0x52fcad=_0x1f45fd[_0x18964c(0x74b)](_0x202ed8,this['okdb']),_0x2ac826=_0x606d61[_0x18964c(0x1b8)](_0x4c6455=>typeof _0x202ed8[_0x4c6455]===_0x18964c(0x4d1)),_0x1ea9ec=_0x202ed8['docs']&&typeof _0x202ed8[_0x18964c(0x532)]===_0x18964c(0x6ea)?_0x202ed8[_0x18964c(0x532)]:{};this[_0x18964c(0x861)][_0x18964c(0x849)]('engines',null,_0x18964c(0x3a2),[_0x91e2e5,{'$id':_0x52fcad,'has':_0x2ac826,'docs':_0x1ea9ec}]),_0x47cd26[_0x18964c(0x757)][_0x18964c(0x590)](_0x91e2e5,_0x202ed8);}get[_0x5608f5(0x859)](){const _0x2e1b7e=_0x5608f5;return this[_0x2e1b7e(0x861)][_0x2e1b7e(0x849)](_0x2e1b7e(0x439),null,_0x2e1b7e(0x46e),[],![]);}get['orchestrator'](){const _0x43ac8a=this;return{get '_started'(){const _0x148d9c=_0x48c6;return _0x43ac8a[_0x148d9c(0x859)];}};}[_0x5608f5(0x3f7)](_0x246941){const _0x4748ea=_0x5608f5;if(!_0x246941||typeof _0x246941!==_0x4748ea(0x6ea))throw new _0xe47b8('Engine\x20template\x20must\x20be\x20a\x20plain\x20object','ENGINE_INVALID_TEMPLATE');if(!_0x246941['id']||typeof _0x246941['id']!==_0x4748ea(0x431))throw new _0xe47b8('Engine\x20template\x20id\x20must\x20be\x20a\x20non-empty\x20string','ENGINE_INVALID_TEMPLATE');if(![_0x4748ea(0x21e),_0x4748ea(0x619)][_0x4748ea(0x42a)](_0x246941[_0x4748ea(0x3b9)]))throw new _0xe47b8(_0x4748ea(0x283)+_0x246941['id'],'ENGINE_INVALID_TEMPLATE');if(typeof _0x246941[_0x4748ea(0x44d)]!==_0x4748ea(0x4d1))throw new _0xe47b8('Engine\x20template\x20build()\x20is\x20required:\x20'+_0x246941['id'],_0x4748ea(0x2a0));const _0xad5c9a=this[_0x4748ea(0x861)],_0x7a0200=typeof _0x246941[_0x4748ea(0x605)]===_0x4748ea(0x4d1);return this['_n'](_0x4748ea(0x3f7),[{'id':_0x246941['id'],'kind':_0x246941[_0x4748ea(0x3b9)],'family':_0x246941['family']??null,'engineType':_0x246941[_0x4748ea(0x5f2)]??null,'pipelineFamily':_0x246941[_0x4748ea(0x481)]??null,'recommended':_0x246941[_0x4748ea(0x5d9)]===!![],'summary':_0x246941[_0x4748ea(0x805)]??null,'description':_0x246941[_0x4748ea(0x29d)]??null,'inputSchema':_0x7a0200?null:_0x246941['inputSchema']??null,'inputSchemaFn':_0x7a0200?()=>_0x246941[_0x4748ea(0x605)](_0xad5c9a):null,'defaults':_0x246941[_0x4748ea(0x666)]??null,'notes':Array[_0x4748ea(0x562)](_0x246941[_0x4748ea(0x59a)])?_0x246941[_0x4748ea(0x59a)]:[],'links':Array[_0x4748ea(0x562)](_0x246941[_0x4748ea(0x41d)])?_0x246941[_0x4748ea(0x41d)]:[],'build':(_0x59670a,_0x868486)=>_0x246941[_0x4748ea(0x44d)](_0x59670a??{},{'okdb':_0xad5c9a,'envName':_0x868486??null})}],![]);}[_0x5608f5(0x452)](_0x83b211){const _0x5aec38=_0x5608f5;return this['_n'](_0x5aec38(0x452),[_0x83b211??null],![]);}[_0x5608f5(0x23c)](_0x24c5b3){const _0x15f858=_0x5608f5;return this['_n'](_0x15f858(0x23c),[_0x24c5b3],![]);}[_0x5608f5(0x48c)](_0x4483dd,_0x316833,_0xc75c01){const _0x597ddb=_0x5608f5;return this['_n'](_0x597ddb(0x48c),[_0x4483dd,_0x316833,_0xc75c01??this[_0x597ddb(0x4ae)]],![]);}['catalog'](){const _0x150cc1=_0x5608f5;return this['_n'](_0x150cc1(0x4b5),[],![]);}async[_0x5608f5(0x362)](){const _0x490a31=_0x5608f5;return this[_0x490a31(0x21b)](_0x490a31(0x362),[]);}async[_0x5608f5(0x1b5)](){const _0x2c1943=_0x5608f5;return this[_0x2c1943(0x21b)](_0x2c1943(0x1b5),[]);}async[_0x5608f5(0x1bf)](_0xc7d016,_0x53fff5,_0x14948f={},_0x39e0dd={},_0x43dcf7={}){const _0x417a09=_0x5608f5;return this[_0x417a09(0x71c)](await this[_0x417a09(0x21b)](_0x417a09(0x1bf),[_0xc7d016,_0x53fff5,_0x14948f,_0x39e0dd,_0x43dcf7]));}async[_0x5608f5(0x8ce)](_0x4904a0,_0x4006da,_0x1c2a31={},_0x417c88={},_0xc8a4f9={}){const _0x4b45d3=_0x5608f5;return this[_0x4b45d3(0x71c)](await this[_0x4b45d3(0x21b)](_0x4b45d3(0x8ce),[_0x4904a0,_0x4006da,_0x1c2a31,_0x417c88,_0xc8a4f9]));}[_0x5608f5(0x843)](_0x51b78e,_0x2e2949){const _0x14b8b8=_0x5608f5;return this['_wrap'](this['_n'](_0x14b8b8(0x843),[_0x51b78e,_0x2e2949],![]));}[_0x5608f5(0x409)](_0xd35712,_0x167f11){const _0x55a97c=_0x5608f5;return this['_wrap'](this['_n'](_0x55a97c(0x409),[_0xd35712,_0x167f11],![]));}[_0x5608f5(0x4bd)](_0x1ffddb){const _0x2b9294=_0x5608f5;return this['_n'](_0x2b9294(0x4bd),[_0x1ffddb??null],![])[_0x2b9294(0x8a1)](_0x24e0b3=>this[_0x2b9294(0x71c)](_0x24e0b3));}async[_0x5608f5(0x2af)](_0x3b6548,_0x274370){const _0x10966a=_0x5608f5;return this[_0x10966a(0x71c)](await this[_0x10966a(0x21b)](_0x10966a(0x2af),[_0x3b6548,_0x274370]));}async[_0x5608f5(0x48f)](_0x3d11bb,_0x20eaaf){const _0x135202=_0x5608f5;return this[_0x135202(0x1d6)]['delete'](_0x3d11bb+':'+_0x20eaaf),this['_nm']('uninstallEngine',[_0x3d11bb,_0x20eaaf]);}async[_0x5608f5(0x5d2)](_0x177d7b){const _0x172eed=_0x5608f5;return this['_nm'](_0x172eed(0x5d2),[_0x177d7b]);}async[_0x5608f5(0x716)](){const _0x4cbd53=_0x5608f5;return this[_0x4cbd53(0x21b)](_0x4cbd53(0x716),[]);}}function _0x4cfbc8(_0x4eb7d7){const _0x2b0fd2=_0x5608f5,_0x2f50c4=new Map();return{'has':_0x2b900f=>_0x2f50c4[_0x2b0fd2(0x884)](_0x2b900f)||_0x4eb7d7[_0x2b0fd2(0x861)][_0x2b0fd2(0x849)](_0x2b0fd2(0x439),null,'hasDriver',[_0x2b900f],![]),'get':_0x2be790=>_0x2f50c4[_0x2b0fd2(0x67f)](_0x2be790),'set':()=>{const _0x331857=_0x2b0fd2;throw new _0xe47b8('use\x20engines.registerDriver()',_0x331857(0x33c));},'_set':(_0x42c428,_0x13797a)=>_0x2f50c4['set'](_0x42c428,_0x13797a),'keys':()=>_0x2f50c4['keys'](),'entries':()=>_0x2f50c4[_0x2b0fd2(0x453)](),'values':()=>_0x2f50c4['values'](),get 'size'(){const _0x5bbae0=_0x2b0fd2;return _0x2f50c4[_0x5bbae0(0x5b2)];},[Symbol[_0x2b0fd2(0x393)]]:()=>_0x2f50c4[Symbol[_0x2b0fd2(0x393)]]()};}class _0x45b6cb{constructor(_0xf587b1,_0x375d75=null){const _0x2aab75=_0x5608f5;this[_0x2aab75(0x861)]=_0xf587b1,this[_0x2aab75(0x4ae)]=_0x375d75;}['_n'](_0x16027f,_0x2ec47f,_0x550bcf=!![]){const _0x2ce8bd=_0x5608f5;return this[_0x2ce8bd(0x861)][_0x2ce8bd(0x849)](_0x2ce8bd(0x1a9),this[_0x2ce8bd(0x4ae)],_0x16027f,_0x2ec47f,_0x550bcf);}[_0x5608f5(0x21b)](_0x183fb2,_0x5bcf35){const _0x36f523=_0x5608f5;return this[_0x36f523(0x861)]['_callMacro'](_0x36f523(0x1a9),this[_0x36f523(0x4ae)],_0x183fb2,_0x5bcf35,!![]);}get[_0x5608f5(0x6fb)](){const _0x1f4b6a=_0x5608f5;return this[_0x1f4b6a(0x4ae)]===null;}async[_0x5608f5(0x8d5)](_0x8d4992){const _0x1868a6=_0x5608f5;return this['_n'](_0x1868a6(0x8d5),[_0x8d4992]);}async['get'](_0x46e621,_0x309f83){const _0x1ab004=_0x5608f5;return this['_n'](_0x1ab004(0x67f),[_0x46e621,_0x309f83??null],![]);}async[_0x5608f5(0x344)](_0x5bf57d,_0x2384c3){return this['_n']('getRecord',[_0x5bf57d,_0x2384c3??null],![]);}async[_0x5608f5(0x4bd)](_0x15ad47){return this['_n']('list',[_0x15ad47??null],![]);}async[_0x5608f5(0x5e8)](_0x329342={}){const _0xe5d443=_0x5608f5;return this['_n'](_0xe5d443(0x5e8),[_0x329342?.[_0xe5d443(0x4ae)]??null],![]);}[_0x5608f5(0x7c7)](_0x353903,_0x5f0f95){const _0x395a1e=_0x5608f5;return this['_n'](_0x395a1e(0x7c7),[_0x353903,_0x5f0f95??null],![]);}async['create'](_0x159b8e){const _0x14e870=_0x5608f5;return this[_0x14e870(0x21b)](_0x14e870(0x812),[_0x159b8e]);}async[_0x5608f5(0x5de)](_0x4478ed,_0x4d140e){const _0xd5b1a4=_0x5608f5;return this[_0xd5b1a4(0x21b)](_0xd5b1a4(0x5de),[_0x4478ed,_0x4d140e]);}async[_0x5608f5(0x1b5)](_0x26f53b){const _0x2e6add=_0x5608f5;return this[_0x2e6add(0x21b)]('stop',[_0x26f53b]);}async[_0x5608f5(0x56a)](_0x131bfa){const _0x34ff01=_0x5608f5;if(!_0x131bfa||typeof _0x131bfa!==_0x34ff01(0x6ea)||!_0x131bfa[_0x34ff01(0x761)]||!_0x131bfa[_0x34ff01(0x439)])return _0x131bfa;for(let _0x59248c=0x0;_0x59248c<0x3;_0x59248c++)await new Promise(_0x4c8c9b=>setImmediate(_0x4c8c9b));try{const _0x1466ee=this[_0x34ff01(0x4ae)]!==null?await this[_0x34ff01(0x67f)](_0x131bfa[_0x34ff01(0x761)]):_0x131bfa[_0x34ff01(0x374)]?await this[_0x34ff01(0x67f)](_0x131bfa[_0x34ff01(0x374)],_0x131bfa[_0x34ff01(0x761)]):null;return _0x1466ee||_0x131bfa;}catch{return _0x131bfa;}}async[_0x5608f5(0x362)](_0x9fd924){const _0x2b0389=_0x5608f5;return this['_settled'](await this[_0x2b0389(0x21b)]('start',[_0x9fd924]));}async[_0x5608f5(0x2af)](_0x4b8c94){const _0x597e9f=_0x5608f5;return this[_0x597e9f(0x56a)](await this[_0x597e9f(0x21b)](_0x597e9f(0x2af),[_0x4b8c94]));}async[_0x5608f5(0x535)](_0x2674d4){const _0x3e6851=_0x5608f5;return this[_0x3e6851(0x21b)](_0x3e6851(0x535),[_0x2674d4]);}async[_0x5608f5(0x3ad)](_0x52f15d,_0x4de3f5,_0x2809c3){const _0xd2be4b=_0x5608f5;return this[_0xd2be4b(0x21b)]('replaceMember',[_0x52f15d,_0x4de3f5,_0x2809c3]);}async[_0x5608f5(0x467)](_0x622437){const _0x1feb42=_0x5608f5;return this[_0x1feb42(0x21b)](_0x1feb42(0x467),[_0x622437]);}async[_0x5608f5(0x790)](){const _0x2c0dde=_0x5608f5;return this[_0x2c0dde(0x21b)](_0x2c0dde(0x790),[]);}async[_0x5608f5(0x7ec)](){const _0x2c6479=_0x5608f5;return this[_0x2c6479(0x21b)](_0x2c6479(0x7ec),[]);}['findOwner'](_0x59817e,_0x4fb081){const _0x4687e2=_0x5608f5;return this['_n'](_0x4687e2(0x3ae),[_0x59817e,_0x4fb081],![]);}}return engines={'OKDBEngines':_0x2e6818,'OKDBPipelines':_0x45b6cb,'OKDBEngineHandle':_0x3883b9},engines;}var functions,hasRequiredFunctions;function requireFunctions(){const _0x1429ac=_0x5b9a04;if(hasRequiredFunctions)return functions;hasRequiredFunctions=0x1;const {optionsArg:_0x36d630}=requireErrors(),_0x52593b=Number(process.env.OKDB_FN_POLL_MS)||0x14;class _0x349412{constructor(_0x5c6806,_0x2e85aa=null){const _0x5c0f2b=_0x48c6;this[_0x5c0f2b(0x861)]=_0x5c6806,this['envName']=_0x2e85aa??_0x5c0f2b(0x277);}get['env'](){const _0x40508d=_0x48c6;return this['okdb'][_0x40508d(0x86f)][_0x40508d(0x67f)](this['envName'])??null;}['_n'](_0x11d850,_0x367d3f=[],_0x53a89d=!![]){const _0xf65646=_0x48c6;try{return this['okdb'][_0xf65646(0x849)](_0xf65646(0x5b6),this[_0xf65646(0x4ae)],_0x11d850,_0x367d3f,_0x53a89d);}catch(_0x51819f){throw _0x272227(_0x51819f);}}async[_0x1429ac(0x21b)](_0x3de373,_0x2f7887=[]){const _0x3ffcd0=_0x1429ac;try{return await this[_0x3ffcd0(0x861)][_0x3ffcd0(0x2f8)](_0x3ffcd0(0x5b6),this[_0x3ffcd0(0x4ae)],_0x3de373,_0x2f7887,!![]);}catch(_0x279ba2){throw _0x272227(_0x279ba2);}}async[_0x1429ac(0x4bd)](){const _0x436cac=_0x1429ac;return this['_n'](_0x436cac(0x4bd),[],![]);}async[_0x1429ac(0x67f)](_0x188e3d){return this['_n']('get',[_0x188e3d],![]);}async[_0x1429ac(0x812)](_0x12775e){return this['_n']('create',[_0x12775e]);}async[_0x1429ac(0x5de)](_0x4e9586,_0x101320={}){return this['_n']('update',[_0x4e9586,_0x101320]);}async[_0x1429ac(0x467)](_0x559e3c){const _0x23969a=_0x1429ac;return this['_n'](_0x23969a(0x467),[_0x559e3c]);}async[_0x1429ac(0x3de)](_0x2ebdf5){const _0x3cbb3f=_0x1429ac,{functionName:functionName=null}=_0x36d630(_0x2ebdf5);return this['_n'](_0x3cbb3f(0x3de),[{'functionName':functionName}],![]);}async['getRun'](_0xefcb18){return this['_n']('getRun',[_0xefcb18],![]);}async['recordRun'](_0x5cb9f7){const _0x453b6c=_0x1429ac;return _0x5cb9f7=_0x36d630(_0x5cb9f7,'run'),this['_n'](_0x453b6c(0x656),[_0x5cb9f7]);}async[_0x1429ac(0x54e)](_0x207fbf,_0x10cc22=null,_0x55585f={}){const _0x1389e6=_0x1429ac,_0x784fef={..._0x55585f},_0x2efece=_0x784fef[_0x1389e6(0x6e2)];if(_0x2efece)_0x784fef[_0x1389e6(0x2f7)]=!!_0x2efece[_0x1389e6(0x2f7)];delete _0x784fef['signal'];const _0x2b57bf=await this['_nm']('runStart',[_0x207fbf,_0x10cc22,_0x784fef]),_0xa940c8=this['okdb'],_0x36921f=()=>_0xa940c8['_pumper'][_0x1389e6(0x8cc)]();if(_0x2efece&&typeof _0x2efece[_0x1389e6(0x3f2)]===_0x1389e6(0x4d1))_0x2efece['addEventListener'](_0x1389e6(0x1c7),_0x36921f,{'once':!![]});let _0x5a42b1=![];try{for(;;){const _0x108909=_0xa940c8[_0x1389e6(0x89b)]['nextTurn'](_0x52593b);let _0x512ca7;try{_0x512ca7=await _0xa940c8[_0x1389e6(0x2f8)]('functions',this['envName'],'runPoll',[_0x2b57bf,!!_0x2efece?.[_0x1389e6(0x2f7)]],![],![]);}catch(_0x557a68){_0x5a42b1=!![];throw _0x272227(_0x557a68);}if(!_0x512ca7||_0x512ca7[_0x1389e6(0x38a)]!==!![])return _0x5a42b1=!![],_0xa940c8[_0x1389e6(0x89b)][_0x1389e6(0x8cc)](),_0x512ca7;if(_0x512ca7[_0x1389e6(0x631)])_0xa940c8[_0x1389e6(0x89b)][_0x1389e6(0x8cc)]();await _0x108909;}}finally{if(_0x2efece&&typeof _0x2efece[_0x1389e6(0x776)]==='function')_0x2efece[_0x1389e6(0x776)]('abort',_0x36921f);if(!_0x5a42b1)try{_0xa940c8[_0x1389e6(0x849)]('functions',this[_0x1389e6(0x4ae)],_0x1389e6(0x2ed),[_0x2b57bf],![]);}catch{}}}async[_0x1429ac(0x784)](_0x12e22f={},_0x2c1c11=null,_0x249918={}){const _0x202a80=_0x1429ac;return this[_0x202a80(0x21b)](_0x202a80(0x784),[_0x12e22f,_0x2c1c11,_0x249918]);}async[_0x1429ac(0x1b5)](){}}function _0x272227(_0x5d3d6e){const _0x2c6725=_0x1429ac;if(_0x5d3d6e&&_0x5d3d6e['details']&&_0x5d3d6e[_0x2c6725(0x312)]['runRecord'])_0x5d3d6e['_runRecord']=_0x5d3d6e[_0x2c6725(0x312)][_0x2c6725(0x492)];return _0x5d3d6e;}return functions={'OKDBFunctions':_0x349412},functions;}var processor={'exports':{}},lock,hasRequiredLock;function requireLock(){const _0x4f2520=_0x5b9a04;if(hasRequiredLock)return lock;hasRequiredLock=0x1;const {optionsArg:_0x38eec4}=requireErrors();class _0x410cdf{constructor(_0x290def,_0x3d070d){const _0x49c075=_0x48c6;this[_0x49c075(0x233)]=_0x290def,this['_id']=_0x3d070d;}['_n'](_0x25c77a,_0x480acf=[]){const _0x13446d=_0x48c6;return this[_0x13446d(0x233)]['_n'](_0x25c77a,[this[_0x13446d(0x416)],..._0x480acf]);}[_0x4f2520(0x4eb)](){const _0xfcd7d8=_0x4f2520;return this['_n'](_0xfcd7d8(0x4eb));}get['acquiredAt'](){return this['_n']('acquiredAt');}[_0x4f2520(0x42f)](){const _0x28b435=_0x4f2520;return this['_n'](_0x28b435(0x42f));}[_0x4f2520(0x6df)](_0x363348){return this['_n']('extend',[_0x363348]);}async[_0x4f2520(0x38b)](){return this['_n']('release');}}class _0x5a332d{constructor(_0x2f6905,_0x4c8c90,_0x2025fa,_0x26607c){const _0x278534=_0x4f2520,{ttlMs:ttlMs=0x7530,heartbeatMs:heartbeatMs=null}=_0x38eec4(_0x26607c);this[_0x278534(0x861)]=_0x2f6905,this[_0x278534(0x3e4)]=_0x2025fa,this[_0x278534(0x416)]=_0x2f6905[_0x278534(0x849)]('lock',_0x4c8c90,_0x278534(0x7d0),[_0x2025fa,ttlMs,heartbeatMs],![]),this[_0x278534(0x3dc)]=_0x4c8c90;}['_n'](_0x1baafe,_0x3b3ec9=[]){const _0xb8c4d7=_0x4f2520;return this['okdb'][_0xb8c4d7(0x849)]('lock',this[_0xb8c4d7(0x3dc)],_0x1baafe,_0x3b3ec9,![]);}[_0x4f2520(0x4d5)](_0x1c3bc0){const _0x3b74c6=_0x4f2520;return this['_n']('key',[this[_0x3b74c6(0x416)],_0x1c3bc0]);}async['tryAcquire'](_0x2dd166,_0x227750={},_0x4394c0={}){const _0x2e3780=_0x4f2520,_0x2dfa6b=this['_n'](_0x2e3780(0x30b),[this[_0x2e3780(0x416)],_0x2dd166,_0x227750,_0x4394c0]);return{'acquired':_0x2dfa6b[_0x2e3780(0x8d4)],'handle':_0x2dfa6b['handle']==null?null:new _0x410cdf(this,_0x2dfa6b[_0x2e3780(0x451)]),'current':_0x2dfa6b['current']};}['inspect'](_0x241115){const _0xdb2192=_0x4f2520;return this['_n'](_0xdb2192(0x638),[this['_id'],_0x241115]);}[_0x4f2520(0x4bd)](){const _0x3c20f0=_0x4f2520;return this['_n']('list',[this[_0x3c20f0(0x416)]]);}[_0x4f2520(0x539)](_0x3895bd){const _0x25e524=_0x4f2520;return this['_n']('signalWant',[this[_0x25e524(0x416)],_0x3895bd]);}['isWanted'](_0x3ead29,_0x1629e6=0x3e8){const _0x2fe9f2=_0x4f2520;return this['_n'](_0x2fe9f2(0x5c4),[this[_0x2fe9f2(0x416)],_0x3ead29,_0x1629e6]);}}return lock={'NativeLock':_0x5a332d,'NativeLockHandle':_0x410cdf},lock;}var hasRequiredProcessor;function requireProcessor(){const _0x4a8dab=_0x5b9a04;if(hasRequiredProcessor)return processor[_0x4a8dab(0x4f1)];hasRequiredProcessor=0x1;const _0x3b5976=requireBridge(),{RawDb:_0x3dbdfb}=requireRawdb(),{NativeLock:_0x13aab2}=requireLock();function _0x4f71d7(_0x55d2a2){}class _0x2f2192{constructor(_0xc7f5ae){const _0x7afd7a=_0x4a8dab;this['env']=_0xc7f5ae,this[_0x7afd7a(0x861)]=_0xc7f5ae;try{this['_n'](_0x7afd7a(0x7af),[(_0x172d31,_0x390700)=>{const _0x4bb3e6=_0x7afd7a,_0x3c46d2=this[_0x4bb3e6(0x861)][_0x4bb3e6(0x746)],_0x1e5ce5=_0x3c46d2?.[_0x172d31]??_0x3c46d2?.[_0x4bb3e6(0x34f)];if(typeof _0x1e5ce5===_0x4bb3e6(0x4d1))_0x1e5ce5[_0x4bb3e6(0x601)](_0x3c46d2,_0x390700);}],![]);}catch{}}['_n'](_0x5ab9b6,_0x50b3d9,_0x12c05f=!![]){const _0x47a437=_0x4a8dab;return this[_0x47a437(0x374)]['okdb'][_0x47a437(0x849)]('proc',this[_0x47a437(0x374)]['name'],_0x5ab9b6,_0x50b3d9,_0x12c05f);}[_0x4a8dab(0x6f3)](_0x46e1ac,_0x451ef0={}){const _0x3076a5=_0x4a8dab,_0xa56a65={..._0x451ef0};if(typeof _0xa56a65['handler']===_0x3076a5(0x4d1)&&_0xa56a65[_0x3076a5(0x7e8)]!=null)throw new Error(_0x3076a5(0x49e)+_0x3076a5(0x513));if(typeof _0xa56a65[_0x3076a5(0x5fc)]==='string'&&_0xa56a65[_0x3076a5(0x7e8)]!=null)throw new Error(_0x3076a5(0x585));if(_0xa56a65['module']!=null){if(!_0xa56a65[_0x3076a5(0x7e8)][_0x3076a5(0x38c)])throw new Error('processor:\x20module.path\x20is\x20required');const _0x1fd08d=_0xa56a65[_0x3076a5(0x7e8)][_0x3076a5(0x68f)]??_0xa56a65[_0x3076a5(0x7e8)][_0x3076a5(0x36d)]??_0x3076a5(0x82a),_0x380364=require['resolve'](_0xa56a65[_0x3076a5(0x7e8)]['path']),_0x13ec11=require(_0x380364),_0x8ab564=_0x13ec11[_0x1fd08d]??_0x13ec11['default']??_0x13ec11;if(typeof _0x8ab564!=='function')throw new Error('processor:\x20module\x20\x27'+_0xa56a65[_0x3076a5(0x7e8)]['path']+'\x27\x20export\x20\x27'+_0x1fd08d+_0x3076a5(0x678));this[_0x3076a5(0x374)][_0x3076a5(0x861)][_0x3076a5(0x44f)]('proc',_0x3076a5(0x517),[_0x380364,_0x1fd08d,_0x8ab564]),_0xa56a65[_0x3076a5(0x7e8)]={'path':_0x380364,'export':_0x1fd08d};}if(_0xa56a65[_0x3076a5(0x5d7)]!=null){if(typeof _0xa56a65[_0x3076a5(0x5d7)][_0x3076a5(0x7e8)]!==_0x3076a5(0x431))throw new Error(_0x3076a5(0x5a7));const _0x5e63a3=require[_0x3076a5(0x253)](_0xa56a65[_0x3076a5(0x5d7)]['module']),_0x2b0271=require(_0x5e63a3),_0x14ea74=_0xa56a65[_0x3076a5(0x5d7)][_0x3076a5(0x36d)],_0x522c4b=_0x14ea74?_0x2b0271[_0x14ea74]:_0x2b0271['default']??_0x2b0271;if(typeof _0x522c4b===_0x3076a5(0x4d1)){const _0x3eef05=_0x14ea74?_0xa56a65[_0x3076a5(0x5d7)][_0x3076a5(0x7e8)]+'#'+_0x14ea74:_0xa56a65[_0x3076a5(0x5d7)][_0x3076a5(0x7e8)];this[_0x3076a5(0x374)]['okdb'][_0x3076a5(0x44f)](_0x3076a5(0x8d2),'registerQuantum',[_0x3eef05,_0x522c4b]);}_0xa56a65[_0x3076a5(0x5d7)]={..._0xa56a65[_0x3076a5(0x5d7)]};}_0xa56a65['payload']!=null&&typeof _0xa56a65[_0x3076a5(0x81d)]===_0x3076a5(0x6ea)&&(_0xa56a65[_0x3076a5(0x81d)]={'$payload':_0x3b5976[_0x3076a5(0x899)](_0xa56a65[_0x3076a5(0x81d)],this['env'][_0x3076a5(0x861)])});if(_0xa56a65[_0x3076a5(0x535)]!=null&&typeof _0xa56a65[_0x3076a5(0x535)]!==_0x3076a5(0x4d1))throw new Error(_0x3076a5(0x540));const _0x243856=this['_n'](_0x3076a5(0x6f3),[_0x46e1ac??null,_0xa56a65]);return this[_0x3076a5(0x816)](_0x243856['id'],_0x243856[_0x3076a5(0x5c5)]);}[_0x4a8dab(0x816)](_0x3016cd,_0x5234bf){const _0x16d337=_0x4a8dab,_0x1d3d95=this,_0x235419=async()=>{const _0x188a8d=_0x48c6;_0x1d3d95['_n'](_0x188a8d(0x3bd),[_0x3016cd]);};return _0x235419['id']=_0x3016cd,_0x235419['cursorKey']=_0x5234bf,_0x235419[_0x16d337(0x27a)]=()=>_0x5234bf?_0x1d3d95['_n'](_0x16d337(0x554),[_0x3016cd],![]):0x0,_0x235419[_0x16d337(0x71d)]=()=>_0x1d3d95[_0x16d337(0x67f)](_0x3016cd),_0x235419[_0x16d337(0x702)]=_0x235419[_0x16d337(0x71d)],_0x235419[_0x16d337(0x2cc)]=()=>_0x1d3d95[_0x16d337(0x2cc)](_0x3016cd),_0x235419[_0x16d337(0x7bf)]=()=>_0x1d3d95[_0x16d337(0x7bf)](_0x3016cd),_0x235419[_0x16d337(0x7c8)]=()=>_0x1d3d95['kick'](_0x3016cd),_0x235419[_0x16d337(0x692)]=()=>_0x1d3d95[_0x16d337(0x692)](_0x3016cd),_0x235419[_0x16d337(0x2c3)]=_0x104a74=>_0x1d3d95[_0x16d337(0x2c3)](_0x3016cd,_0x104a74),_0x235419;}get['_stops'](){const _0x1c33f4=_0x4a8dab;try{return this['_n'](_0x1c33f4(0x4bd),[],![])[_0x1c33f4(0x8a1)](_0x2fca12=>({'id':_0x2fca12['id']}));}catch{return[];}}async['pauseAllAndDrain'](_0x271dc4){const _0x2fa8cf=_0x4a8dab;return new Set(this['_n'](_0x2fa8cf(0x7dd),[]));}[_0x4a8dab(0x854)](_0x4fe9a0){const _0x2f037d=_0x4a8dab;return this['_n'](_0x2f037d(0x854),[[..._0x4fe9a0??[]]]);}get[_0x4a8dab(0x86e)](){const _0x63410b=_0x4a8dab;return new Set(this['_n']('list',[],![])[_0x63410b(0x1b8)](_0x124a49=>_0x124a49[_0x63410b(0x6eb)]==null)[_0x63410b(0x8a1)](_0x2a9be4=>_0x2a9be4['id']));}[_0x4a8dab(0x5dc)](){}get[_0x4a8dab(0x233)](){const _0xcd4e14=_0x4a8dab;if(!this['__lock']){const _0x46e1bf=new _0x13aab2(this[_0xcd4e14(0x374)]['okdb'],this[_0xcd4e14(0x374)]['name'],_0xcd4e14(0x8d2)),_0x155928=this[_0xcd4e14(0x374)];_0x46e1bf['_db']=()=>new _0x3dbdfb(_0x155928,_0xcd4e14(0x49d)),this['__lock']=_0x46e1bf;}return this['__lock'];}['_fail'](_0x1cdb70,_0x118cc2){const _0x51eb73=_0x4a8dab;return this['_n'](_0x51eb73(0x2db),[typeof _0x1cdb70===_0x51eb73(0x431)?_0x1cdb70:_0x1cdb70['id'],_0x118cc2?.[_0x51eb73(0x2b8)]??String(_0x118cc2??'')]);}get[_0x4a8dab(0x569)](){const _0x10b77c=_0x4a8dab;return this[_0x10b77c(0x7d1)]||(this[_0x10b77c(0x7d1)]=new _0x3dbdfb(this['env'],_0x10b77c(0x74a)));}get[_0x4a8dab(0x824)](){const _0x1cdf85=_0x4a8dab,_0x17e180=this,_0x54bdcf=_0x4a0fab=>{const _0x22d4ac=_0x48c6,_0x41e6d2=()=>_0x17e180['_n'](_0x22d4ac(0x226),[_0x4a0fab],![]);if(!_0x41e6d2())return undefined;const _0x58728e=_0x422355=>()=>_0x41e6d2()?.[_0x422355],_0xc36477={'id':_0x4a0fab},_0x682938=(_0x4531f0,_0xac04bb,_0x161a23)=>Object[_0x22d4ac(0x245)](_0xc36477,_0x4531f0,{'get':_0xac04bb,'set':_0x161a23,'enumerable':!![],'configurable':!![]});return _0x682938(_0x22d4ac(0x36e),_0x58728e('state')),_0x682938(_0x22d4ac(0x436),_0x58728e(_0x22d4ac(0x436))),_0x682938(_0x22d4ac(0x2fe),_0x58728e(_0x22d4ac(0x2fe))),_0x682938(_0x22d4ac(0x815),_0x58728e('lastClock'),_0x919715=>_0x17e180['_n']('setLastClock',[_0x4a0fab,_0x919715])),_0x682938(_0x22d4ac(0x5c5),_0x58728e(_0x22d4ac(0x5c5))),_0x682938(_0x22d4ac(0x20a),_0x58728e(_0x22d4ac(0x4f2)),_0x1c8519=>_0x17e180['_n'](_0x22d4ac(0x5b3),[_0x4a0fab,!!_0x1c8519])),_0x682938(_0x22d4ac(0x676),_0x58728e(_0x22d4ac(0x81c))),_0x682938(_0x22d4ac(0x29e),_0x58728e(_0x22d4ac(0x29e))),_0x682938(_0x22d4ac(0x470),_0x58728e(_0x22d4ac(0x470))),_0x682938(_0x22d4ac(0x538),_0x58728e(_0x22d4ac(0x33e)),_0x3a7528=>_0x17e180['_n'](_0x22d4ac(0x40c),[_0x4a0fab,_0x3a7528])),_0x682938(_0x22d4ac(0x72f),()=>_0x17e180[_0x22d4ac(0x67f)](_0x4a0fab)?.[_0x22d4ac(0x72f)]),_0x682938(_0x22d4ac(0x508),()=>_0x41e6d2()?.[_0x22d4ac(0x7e0)]?{'isHeld':()=>!!_0x41e6d2()?.[_0x22d4ac(0x7e0)]}:null),_0x682938(_0x22d4ac(0x358),()=>_0x41e6d2()?.[_0x22d4ac(0x69f)]?()=>{}:null),_0x682938(_0x22d4ac(0x682),()=>_0x41e6d2()?.[_0x22d4ac(0x4a6)]?{}:null),_0x682938(_0x22d4ac(0x262),()=>_0x41e6d2()?.['debounceTimer']?{}:null),_0xc36477;},_0x48dc64=()=>_0x17e180['_n'](_0x1cdf85(0x4bd),[],![])[_0x1cdf85(0x8a1)](_0xdf506=>_0xdf506['id']);return{'get':_0x4ae0e3=>_0x54bdcf(_0x4ae0e3),'has':_0x3b75d1=>_0x48dc64()['includes'](_0x3b75d1),get 'size'(){const _0x482ed2=_0x1cdf85;return _0x48dc64()[_0x482ed2(0x2ea)];},'keys':()=>_0x48dc64()[Symbol[_0x1cdf85(0x393)]](),'values':()=>_0x48dc64()[_0x1cdf85(0x8a1)](_0x54bdcf)[Symbol[_0x1cdf85(0x393)]](),'entries':()=>_0x48dc64()[_0x1cdf85(0x8a1)](_0x331eb2=>[_0x331eb2,_0x54bdcf(_0x331eb2)])[Symbol[_0x1cdf85(0x393)]](),[Symbol[_0x1cdf85(0x393)]]:()=>_0x48dc64()[_0x1cdf85(0x8a1)](_0x4dfb93=>[_0x4dfb93,_0x54bdcf(_0x4dfb93)])[Symbol[_0x1cdf85(0x393)]](),'forEach':_0x328f47=>_0x48dc64()['forEach'](_0x539883=>_0x328f47(_0x54bdcf(_0x539883),_0x539883))};}async[_0x4a8dab(0x790)](){const _0x1591b7=_0x4a8dab;return this['_n'](_0x1591b7(0x790),[]);}['list'](){const _0x1d9a28=_0x4a8dab,_0x5a812d=this['_n'](_0x1d9a28(0x4bd),[],![]);if(!this[_0x1d9a28(0x374)]['name'][_0x1d9a28(0x42e)]('~'))try{const _0x2b5db2=this[_0x1d9a28(0x374)]['okdb'][_0x1d9a28(0x72f)];for(const _0x5d0313 of _0x2b5db2[_0x1d9a28(0x32d)](this['env'][_0x1d9a28(0x761)])){for(const _0x2cfc60 of _0x2b5db2[_0x1d9a28(0x769)](_0x5d0313,this[_0x1d9a28(0x374)]['name'])){const _0x442cdd='index:'+_0x5d0313+':'+_0x2cfc60;_0x5a812d[_0x1d9a28(0x66a)]({'id':_0x442cdd,'type':_0x5d0313,'mode':_0x1d9a28(0x41a),'state':_0x1d9a28(0x523),'paused':![],'lag':0x0,'cursorKey':_0x442cdd,'meta':{'name':_0x442cdd}});}}}catch{}return _0x5a812d;}[_0x4a8dab(0x3b3)](){const _0xc79538=_0x4a8dab;return this['_n'](_0xc79538(0x3b3),[],![]);}[_0x4a8dab(0x596)](){const _0x53ca2b=_0x4a8dab;return this['_n'](_0x53ca2b(0x596),[],![]);}[_0x4a8dab(0x55f)](){const _0x2d02ac=_0x4a8dab;return this['_n'](_0x2d02ac(0x55f),[],![]);}[_0x4a8dab(0x67f)](_0x113fb7){const _0x300e15=_0x4a8dab;return this['_n'](_0x300e15(0x67f),[_0x113fb7],![]);}[_0x4a8dab(0x2bf)](_0x1d6533){const _0x5c10a7=_0x4a8dab;return this[_0x5c10a7(0x67f)](typeof _0x1d6533===_0x5c10a7(0x431)?_0x1d6533:_0x1d6533['id']);}[_0x4a8dab(0x595)](_0x42956b){const _0x1c6c9f=_0x4a8dab;return this['_n'](_0x1c6c9f(0x595),[_0x42956b],![]);}[_0x4a8dab(0x3fa)](_0x40b04e){return this['_n']('resetCursor',[_0x40b04e]);}['markSnapshotComplete'](_0x1caad7){const _0x2fead4=_0x4a8dab;return this['_n'](_0x2fead4(0x89f),[_0x1caad7]);}[_0x4a8dab(0x68e)](_0x5bb83e){const _0xd8151=_0x4a8dab;return this['_n'](_0xd8151(0x68e),[_0x5bb83e],![]);}['setCursor'](_0x38b818,_0x1ac031){return this['_n']('setCursor',[_0x38b818,_0x1ac031]);}async[_0x4a8dab(0x2c3)](_0x57f6d1,_0x5bb565){const _0x1fde10=_0x4a8dab;return this['_n'](_0x1fde10(0x2c3),[_0x57f6d1,_0x5bb565??0x7530]);}[_0x4a8dab(0x2cc)](_0x166a2c){const _0x3ed8ad=_0x4a8dab;return this['_n'](_0x3ed8ad(0x2cc),[_0x166a2c]);}[_0x4a8dab(0x7bf)](_0x1f98c1){const _0x3deb46=_0x4a8dab;return this['_n'](_0x3deb46(0x7bf),[_0x1f98c1]);}async[_0x4a8dab(0x2ca)](_0x4fe8cb){const _0x3f3349=_0x4a8dab;return this['_n'](_0x3f3349(0x2ca),[_0x4fe8cb]);}[_0x4a8dab(0x7c8)](_0x342090){return this['_n']('kick',[_0x342090]);}[_0x4a8dab(0x692)](_0x498809){return this['_n']('retry',[_0x498809]);}[_0x4a8dab(0x2af)](_0x340ea3,_0x1e06f5={}){const _0x2b22b0=_0x4a8dab;return this['_n'](_0x2b22b0(0x2af),[_0x340ea3,_0x1e06f5]);}async[_0x4a8dab(0x266)](_0x3a1cfc,_0x454706,_0x3dc9da){const _0x48f849=_0x4a8dab,[_0x22bfef,_0x366710]=this['_n'](_0x48f849(0x266),[_0x3a1cfc,_0x454706,_0x3dc9da]);return{'version':_0x22bfef,'flipClock':_0x366710};}async['snapshotScan'](_0x58ad93,_0x1ea9f0,_0x1492c1={}){const _0x115a77=_0x4a8dab;return this['_n'](_0x115a77(0x4a7),[_0x58ad93,_0x1ea9f0,_0x1492c1]);}}_0x2f2192[_0x4a8dab(0x7f4)]=function _0x4c607f(_0x25dfcf,_0x126efd){const _0x5895ef=_0x4a8dab;if(typeof _0x25dfcf!==_0x5895ef(0x431)||!_0x25dfcf)throw new Error(_0x5895ef(0x78e));if(typeof _0x126efd!==_0x5895ef(0x4d1))throw new Error(_0x5895ef(0x7d7));_0x1999b9('proc',_0x5895ef(0x7f4),[_0x25dfcf,_0x126efd]);},_0x2f2192[_0x4a8dab(0x2ef)]=function _0x500dbe(_0x584e09,_0x355011){const _0x4566f1=_0x4a8dab;if(typeof _0x584e09!==_0x4566f1(0x431)||!_0x584e09)throw new Error(_0x4566f1(0x7d6));if(typeof _0x355011!==_0x4566f1(0x4d1))throw new Error('registerQuantum:\x20load\x20must\x20be\x20a\x20function');let _0x22b9ff=null;_0x1999b9(_0x4566f1(0x8d2),'registerQuantum',[_0x584e09,(_0x44ed91,_0x4d22ba)=>{if(!_0x22b9ff)_0x22b9ff=_0x355011();return _0x22b9ff(_0x44ed91,_0x4d22ba);}]);},_0x2f2192[_0x4a8dab(0x3e2)]=_0x4393e9=>/closed|not open|released/i[_0x4a8dab(0x6dc)](String(_0x4393e9)),_0x2f2192[_0x4a8dab(0x5cf)]=![];function _0x1999b9(_0x88a019,_0x2ca2d2,_0x148c8a){const {staticCall:_0x7b8d66}=requireLib();return _0x7b8d66(_0x88a019,_0x2ca2d2,_0x148c8a);}return processor[_0x4a8dab(0x4f1)]=_0x2f2192,processor['exports'][_0x4a8dab(0x7b2)]=_0x2f2192,processor[_0x4a8dab(0x4f1)]['setNative']=_0x4f71d7,processor[_0x4a8dab(0x4f1)];}var okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x1f4be0=_0x5b9a04;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x322d3d={'PUT':_0x1f4be0(0x425),'REMOVE':_0x1f4be0(0x467),'INDEX_DROP':_0x1f4be0(0x20b),'INDEX_REGISTER':'registerIndex','INDEX_RESET':_0x1f4be0(0x8d0),'TYPE_REGISTER':_0x1f4be0(0x454),'TYPE_DROP':_0x1f4be0(0x203),'FTS_REGISTER':_0x1f4be0(0x3ce),'FTS_DROP':_0x1f4be0(0x5fe),'FTS_RESET':_0x1f4be0(0x36f),'SCHEMA_SET':_0x1f4be0(0x64a),'SCHEMA_DROP':'dropSchema','TTL_SET':_0x1f4be0(0x37d),'TTL_CLEAR':'clearTtl'},_0x1733c7={'SYSTEM_READY':'system:ready','FIELD_RESOLVER_REGISTERED':_0x1f4be0(0x410),'SYSTEM_STOPPED':'system:stopped','SYSTEM_CLOCK_CHANGE':_0x1f4be0(0x574),'SYSTEM_POKE':'system:poke','SYSTEM_DRAIN':_0x1f4be0(0x334),'SYSTEM_TYPE_DROP':_0x1f4be0(0x58e),'SYSTEM_PROC':'system:proc','SYSTEM_BUS_STATE_CHANGE':_0x1f4be0(0x82f),'ITEM_CREATE':_0x1f4be0(0x8a4),'ITEM_UPDATE':_0x1f4be0(0x2ac),'ITEM_REMOVE':'item:remove','ITEM_PENDING':_0x1f4be0(0x3aa),'INDEX_RESET':_0x1f4be0(0x51f),'INDEX_READY':_0x1f4be0(0x50a),'INDEX_PROGRESS':'index:progress','VIEW_PROGRESS':_0x1f4be0(0x353),'INDEX_DROP':_0x1f4be0(0x7be),'INDEX_REGISTERED':_0x1f4be0(0x6cc),'FTS_REGISTERED':_0x1f4be0(0x4a3),'FTS_DROP':_0x1f4be0(0x7e1),'FTS_RESET':'fts:reset','SCHEMA_SET':'schema:set','SCHEMA_DROP':_0x1f4be0(0x213),'UNIQUE_VIOLATION':_0x1f4be0(0x23f),'UNIQUE_VIOLATION_RESOLVED':'unique:violation_resolved','REF_VIOLATION':_0x1f4be0(0x80d),'REF_VIOLATION_RESOLVED':'ref:violation_resolved','SYNC_APPLY':_0x1f4be0(0x56c),'TXN_START':'txn:start','TXN_END':_0x1f4be0(0x721),'TXN_ROLLBACK':_0x1f4be0(0x389),'TYPE_REGISTERED':'type:registered','TYPE_DROP':_0x1f4be0(0x52d),'ENV_OPENED':'env:opened','ENV_REMOVED':'env:removed','SYSTEM_ENV_RELEASE':_0x1f4be0(0x655),'TTL_EXPIRED':_0x1f4be0(0x52f),'TTL_SET':_0x1f4be0(0x4b9),'TTL_CLEAR':_0x1f4be0(0x3b5),'LICENSE_INVALID':_0x1f4be0(0x770),'LICENSE_ADDED':_0x1f4be0(0x19e),'LICENSE_ACTIVATED':_0x1f4be0(0x70e),'LICENSE_REMOVED':'license:removed'},_0x4bb686={'CREATING':'creating','RESETTING':_0x1f4be0(0x75e),'READY':_0x1f4be0(0x60e),'DROPPING':_0x1f4be0(0x841),'WAITING':'waiting','ERROR':'error'},_0x55429a={'CREATED':_0x1f4be0(0x7cc),'STARTING':_0x1f4be0(0x346),'STARTED':_0x1f4be0(0x2e0),'STOPPING':_0x1f4be0(0x310),'STOPPED':_0x1f4be0(0x7b6)},_0x5aedc7={'CREATING':_0x1f4be0(0x8bb),'READY':_0x1f4be0(0x60e),'HALTED':_0x1f4be0(0x713),'STOPPED':_0x1f4be0(0x7b6),'RESETTING':_0x1f4be0(0x75e)},_0x43e4a2=Object[_0x1f4be0(0x413)]({'POKE':_0x1f4be0(0x1fa),'DRAIN':_0x1f4be0(0x7e2),'TYPE_DROP':_0x1f4be0(0x63a),'PROC':_0x1f4be0(0x392),'ENV_RELEASE':_0x1f4be0(0x745)});return okdbEnums={'BUS_EVENTS':_0x43e4a2,'CHANGE_ACTIONS':_0x322d3d,'EVENTS':_0x1733c7,'INDEX_STATE':_0x4bb686,'OKDB_STATE':_0x55429a,'VIEW_STATE':_0x5aedc7},okdbEnums;}var okdbGuardedRange,hasRequiredOkdbGuardedRange;function requireOkdbGuardedRange(){const _0x428098=_0x5b9a04;if(hasRequiredOkdbGuardedRange)return okdbGuardedRange;hasRequiredOkdbGuardedRange=0x1;const _0x9b7200={'SKIP':Symbol['for'](_0x428098(0x86a))},{OKDBError:_0x39cd09}=requireOkdbError(),_0x11f528={'value':null,'done':!![]};class _0x14777b{constructor(_0x339a31){const _0x5ce7d4=_0x428098;this[_0x5ce7d4(0x32b)]=_0x339a31;}get[_0x428098(0x2fd)](){return _0x11f528;}[Symbol[_0x428098(0x393)]](){const _0x39d573=_0x428098;return this[_0x39d573(0x32b)]();}[_0x428098(0x8a1)](_0x8a01fb){const _0x10a76f=this;return new _0x14777b(()=>{const _0x484dfa=_0x48c6,_0x36f943=_0x10a76f[Symbol[_0x484dfa(0x393)]]();return{'next'(){const _0x5204d5=_0x484dfa;for(;;){const _0xc85a0c=_0x36f943[_0x5204d5(0x42d)]();if(_0xc85a0c['done'])return{'done':!![],'value':undefined};const _0x259fdd=_0x8a01fb(_0xc85a0c[_0x5204d5(0x883)]);if(_0x259fdd===_0x9b7200[_0x5204d5(0x25c)])continue;if(_0x259fdd===_0x11f528)return _0x36f943['return']?.(),{'done':!![],'value':undefined};return{'done':![],'value':_0x259fdd};}},'return'(){const _0x5454aa=_0x484dfa;return _0x36f943[_0x5454aa(0x54f)]?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}[_0x428098(0x1b8)](_0x2dcd20){const _0x48c845=_0x428098;return this['map'](_0x2f8e2c=>_0x2dcd20(_0x2f8e2c)?_0x2f8e2c:_0x9b7200[_0x48c845(0x25c)]);}[_0x428098(0x2a7)](_0x5f2ef0){for(const _0x2ac781 of this)_0x5f2ef0(_0x2ac781);}[_0x428098(0x4bb)](_0x21cc81=0x0,_0x4869f9=Infinity){const _0x5a71cf=this;return new _0x14777b(()=>{const _0xc2ca27=_0x48c6,_0x409458=_0x5a71cf[Symbol[_0xc2ca27(0x393)]]();let _0x6bd147=0x0;return{'next'(){const _0x8cbb49=_0xc2ca27;for(;;){const _0x2bb252=_0x409458[_0x8cbb49(0x42d)]();if(_0x2bb252['done'])return{'done':!![],'value':undefined};const _0x306713=_0x6bd147++;if(_0x306713<_0x21cc81)continue;if(_0x306713>=_0x4869f9)return _0x409458[_0x8cbb49(0x54f)]?.(),{'done':!![],'value':undefined};return _0x2bb252;}},'return'(){const _0x425763=_0xc2ca27;return _0x409458[_0x425763(0x54f)]?.(),{'done':!![],'value':undefined};},[Symbol[_0xc2ca27(0x393)]](){return this;}};});}['at'](_0xf6fca8){let _0x5a7c2a=0x0;for(const _0x27317b of this)if(_0x5a7c2a++===_0xf6fca8)return _0x27317b;return undefined;}[_0x428098(0x87a)](_0x16469f){const _0x18b739=this;return new _0x14777b(()=>{const _0x15d9d0=_0x48c6,_0x452c7e=_0x18b739[Symbol['iterator']]();let _0x441c6f=[];return{'next'(){const _0x29c0c7=_0x48c6;for(;;){if(_0x441c6f[_0x29c0c7(0x2ea)])return{'done':![],'value':_0x441c6f[_0x29c0c7(0x89e)]()};const _0x4feec5=_0x452c7e['next']();if(_0x4feec5[_0x29c0c7(0x650)])return{'done':!![],'value':undefined};const _0x2c5de3=_0x16469f(_0x4feec5[_0x29c0c7(0x883)]);if(Array[_0x29c0c7(0x562)](_0x2c5de3))_0x441c6f=_0x441c6f[_0x29c0c7(0x4d6)](_0x2c5de3);else{if(_0x2c5de3!=null&&(_0x2c5de3 instanceof _0x14777b||typeof _0x2c5de3[Symbol[_0x29c0c7(0x393)]]===_0x29c0c7(0x4d1)&&'asArray'in _0x2c5de3))_0x441c6f=_0x441c6f[_0x29c0c7(0x4d6)](Array[_0x29c0c7(0x7f7)](_0x2c5de3));else{if(_0x2c5de3!==_0x9b7200[_0x29c0c7(0x25c)])return{'done':![],'value':_0x2c5de3};}}}},'return'(){const _0x248226=_0x48c6;return _0x452c7e[_0x248226(0x54f)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x15d9d0(0x393)]](){return this;}};});}[_0x428098(0x4d6)](_0x374774){const _0x540b1f=this;return new _0x14777b(()=>{const _0x4006a4=_0x48c6;let _0x58a003=_0x540b1f[Symbol[_0x4006a4(0x393)]](),_0x2830f9=![];return{'next'(){const _0x1f08b1=_0x4006a4;for(;;){const _0x3fabcd=_0x58a003['next']();if(!_0x3fabcd[_0x1f08b1(0x650)])return _0x3fabcd;if(_0x2830f9)return{'done':!![],'value':undefined};_0x2830f9=!![],_0x58a003=_0x374774[Symbol['iterator']]();}},'return'(){const _0x3cd4bf=_0x4006a4;return _0x58a003[_0x3cd4bf(0x54f)]?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}[_0x428098(0x77c)](_0x2627bb){const _0x421d8f=this;return new _0x14777b(()=>{const _0x5cbe26=_0x48c6,_0x4f7dac=_0x421d8f[Symbol[_0x5cbe26(0x393)]]();return{'next'(){const _0x53424b=_0x5cbe26;for(;;){try{return _0x4f7dac[_0x53424b(0x42d)]();}catch(_0x50f39d){const _0x22fd61=_0x2627bb(_0x50f39d);if(_0x22fd61===_0x9b7200['SKIP']||_0x22fd61===undefined)continue;return{'done':![],'value':_0x22fd61};}}},'return'(){return _0x4f7dac['return']?.(),{'done':!![],'value':undefined};},[Symbol[_0x5cbe26(0x393)]](){return this;}};});}[_0x428098(0x5d4)](){const _0x3235c8=_0x428098;return Array[_0x3235c8(0x7f7)](this);}get[_0x428098(0x78b)](){const _0x397724=_0x428098;return Array[_0x397724(0x7f7)](this);}}const _0xdb3bfe={'total':0x0,'byLabel':{},'last':null};function _0x22d3d0(_0x3ded47){const _0xc4714b=_0x428098;_0xdb3bfe[_0xc4714b(0x691)]++;if(_0x3ded47)_0xdb3bfe['byLabel'][_0x3ded47]=(_0xdb3bfe[_0xc4714b(0x4ec)][_0x3ded47]??0x0)+0x1;_0xdb3bfe[_0xc4714b(0x37a)]={'label':_0x3ded47??null,'at':Date[_0xc4714b(0x363)]()};}function _0x57be43(){const _0x2f83ac=_0x428098;return{'total':_0xdb3bfe[_0x2f83ac(0x691)],'byLabel':{..._0xdb3bfe[_0x2f83ac(0x4ec)]},'last':_0xdb3bfe[_0x2f83ac(0x37a)]};}function _0x14b55c(_0x3a5003,_0x57d05f={}){const {getTxnId:_0x55429f,resume:_0x112a5f,label:_0x2a093a,baseline:_0x5ccc70}=_0x57d05f;return new _0x14777b(()=>{let _0x27b533=null,_0x345abe=![],_0x1e14b1=![],_0xbf8aa3=![],_0x1a53c4,_0x5dd227=0x0,_0x3cfb98;return{'next'(){const _0x5a9c88=_0x48c6;if(_0xbf8aa3)return{'done':!![],'value':undefined};if(_0x1e14b1){let _0x3b53dc=![];if(_0x112a5f&&_0x55429f)try{_0x3b53dc=_0x55429f()===_0x3cfb98;}catch{}if(!_0x3b53dc){_0xbf8aa3=!![],_0x22d3d0(_0x2a093a);throw new _0x39cd09(_0x112a5f?'pinned\x20range\x20iterator\x20parked\x20across\x20an\x20await/turn\x20boundary\x20and\x20the\x20env\x20was\x20written\x20'+_0x5a9c88(0x5a2)+_0x5a9c88(0x5a4):_0x5a9c88(0x6b1)+_0x5a9c88(0x57e)+'Array.from)\x20before\x20any\x20await.',_0x5a9c88(0x7c3));}_0x27b533=_0x112a5f(_0x1a53c4,_0x5dd227)[Symbol[_0x5a9c88(0x393)]](),_0x1e14b1=![];}if(!_0x27b533){if(_0x5ccc70!==undefined)_0x3cfb98=_0x5ccc70;else try{_0x3cfb98=_0x55429f?_0x55429f():undefined;}catch{_0x3cfb98=undefined;}try{_0x27b533=_0x3a5003()[Symbol['iterator']]();}catch(_0x1c7d78){_0xbf8aa3=!![];throw _0x1c7d78;}}!_0x345abe&&(_0x345abe=!![],queueMicrotask(()=>{const _0x365dd2=_0x5a9c88;_0x345abe=![];if(_0xbf8aa3||_0x1e14b1)return;try{_0x27b533?.[_0x365dd2(0x54f)]?.();}catch{}_0x27b533=null,_0x1e14b1=!![];}));const _0x3af618=_0x27b533[_0x5a9c88(0x42d)]();if(_0x3af618[_0x5a9c88(0x650)])return _0xbf8aa3=!![],{'done':!![],'value':undefined};return _0x1a53c4=_0x3af618[_0x5a9c88(0x883)],_0x5dd227++,_0x3af618;},'return'(){const _0x385c24=_0x48c6;_0xbf8aa3=!![];try{_0x27b533?.[_0x385c24(0x54f)]?.();}catch{}return{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}return okdbGuardedRange={'guardSnapshotIterable':_0x14b55c,'OKDBGuardedRange':_0x14777b,'recordGuardTrip':_0x22d3d0,'getGuardTripStats':_0x57be43},okdbGuardedRange;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0x31f36a=_0x5b9a04;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x59eff8,performance:_0x536591}=require$$0$1,_0x13555d=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG==='true',_0x245b7e=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x3da252=process.env.OKDB_LOOP_LAG_ALL==='1',_0x4d1698=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0x382df9{constructor(){const _0x262590=_0x48c6;this[_0x262590(0x258)]=_0x13555d,this[_0x262590(0x49a)]=new Map(),this['_h']=null,this[_0x262590(0x60b)]=null,this[_0x262590(0x859)]=![],this[_0x262590(0x48a)]=(_0x30a15a,_0x1bbb6d)=>process[_0x262590(0x390)][_0x262590(0x727)](_0x30a15a+(_0x1bbb6d?'\x20'+JSON['stringify'](_0x1bbb6d):'')+'\x0a');}[_0x31f36a(0x363)](){return _0x536591['now']();}['setLogger'](_0x210293){const _0x50d88c=_0x31f36a;if(typeof _0x210293==='function')this[_0x50d88c(0x48a)]=_0x210293;}['note'](_0x37c890,_0x5347cd,_0x29e41a){const _0x388d04=_0x31f36a;if(!this[_0x388d04(0x258)])return;let _0x3c487b=this[_0x388d04(0x49a)][_0x388d04(0x67f)](_0x37c890);!_0x3c487b&&(_0x3c487b={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this[_0x388d04(0x49a)]['set'](_0x37c890,_0x3c487b)),_0x3c487b['ms']+=_0x5347cd,_0x3c487b['count']+=0x1,_0x5347cd>_0x3c487b[_0x388d04(0x5d8)]&&(_0x3c487b['maxMs']=_0x5347cd,_0x3c487b[_0x388d04(0x275)]=_0x29e41a||'');}['start'](_0x247813){const _0x38b06a=_0x31f36a;if(!this['enabled']||this['_started'])return;this[_0x38b06a(0x859)]=!![];if(_0x247813)this[_0x38b06a(0x48a)]=_0x247813;this['_h']=_0x59eff8({'resolution':0xa}),this['_h'][_0x38b06a(0x2be)](),this[_0x38b06a(0x60b)]=setInterval(()=>this[_0x38b06a(0x24a)](),_0x245b7e);if(this['_timer'][_0x38b06a(0x3bb)])this[_0x38b06a(0x60b)][_0x38b06a(0x3bb)]();}['onWindow'](_0x323ea4){const _0x34212c=_0x31f36a;if(!this[_0x34212c(0x795)])this[_0x34212c(0x795)]=new Set();this[_0x34212c(0x795)][_0x34212c(0x261)](_0x323ea4);if(!this['_started'])this[_0x34212c(0x53f)]();}[_0x31f36a(0x67a)](_0x2de486){const _0x20f1d2=_0x31f36a;this[_0x20f1d2(0x795)]?.[_0x20f1d2(0x597)](_0x2de486);}['_startAdmission'](){const _0x3a20a6=_0x31f36a;if(this[_0x3a20a6(0x6ce)])return;this[_0x3a20a6(0x6ce)]=!![];!this['_h']&&(this['_h']=_0x59eff8({'resolution':0xa}),this['_h']['enable']());const _0x6a2299=_0x245b7e;this[_0x3a20a6(0x6e1)]=setInterval(()=>{const _0x50875a=_0x3a20a6,_0x3e244f=this['_h'];if(!_0x3e244f)return;const _0x293511=_0x3e244f['percentile'](0x63)/0xf4240,_0x256eef=_0x3e244f[_0x50875a(0x885)]/0xf4240,_0x406c2e=_0x3e244f['mean']/0xf4240;_0x3e244f[_0x50875a(0x89c)]();if(this[_0x50875a(0x795)])for(const _0x4f8d5d of this['_windowCbs']){try{_0x4f8d5d({'p99Ms':_0x293511,'maxMs':_0x256eef,'meanMs':_0x406c2e,'reportMs':_0x6a2299});}catch{}}},_0x6a2299);if(this['_admissionTimer']['unref'])this[_0x3a20a6(0x6e1)]['unref']();}[_0x31f36a(0x24a)](){const _0x36420a=_0x31f36a,_0x1fab7a=this['_h'],_0x1b7e59=_0x1fab7a[_0x36420a(0x885)]/0xf4240,_0x47e54c=_0x1fab7a[_0x36420a(0x558)](0x63)/0xf4240,_0x5a6a56=_0x1fab7a[_0x36420a(0x1ca)]/0xf4240;_0x1fab7a[_0x36420a(0x89c)]();const _0x13de30=[...this[_0x36420a(0x49a)][_0x36420a(0x453)]()][_0x36420a(0x8a1)](([_0x5144b6,_0x1c618f])=>({'label':_0x5144b6,..._0x1c618f}))[_0x36420a(0x57a)]((_0x32e3e6,_0x40b113)=>_0x40b113['ms']-_0x32e3e6['ms'])[_0x36420a(0x4bb)](0x0,0x8);this[_0x36420a(0x49a)][_0x36420a(0x674)]();const _0x505af4=_0x13de30[_0x36420a(0x218)]((_0x318762,_0x3083e2)=>_0x318762+_0x3083e2['ms'],0x0),_0x33ecc7=_0x13de30[_0x36420a(0x8a1)](_0x22f2b5=>_0x22f2b5[_0x36420a(0x72e)]+'='+_0x22f2b5['ms'][_0x36420a(0x599)](0x0)+'ms/'+_0x22f2b5[_0x36420a(0x646)]+(_0x22f2b5[_0x36420a(0x5d8)]>0x5?_0x36420a(0x5e2)+_0x22f2b5[_0x36420a(0x5d8)][_0x36420a(0x599)](0x0)+'ms'+(_0x22f2b5[_0x36420a(0x275)]?'\x20'+_0x22f2b5[_0x36420a(0x275)]:'')+')':''));(_0x3da252||_0x1b7e59>=_0x4d1698)&&this['_log']('loop-lag\x20'+_0x245b7e+_0x36420a(0x785)+_0x1b7e59[_0x36420a(0x599)](0x0)+_0x36420a(0x87b)+_0x47e54c['toFixed'](0x0)+_0x36420a(0x6d5)+_0x5a6a56[_0x36420a(0x599)](0x0)+'ms\x20busy='+_0x505af4[_0x36420a(0x599)](0x0)+'ms'+(_0x33ecc7[_0x36420a(0x2ea)]?'\x20│\x20'+_0x33ecc7[_0x36420a(0x47b)]('\x20\x20'):''),{'feature':_0x36420a(0x497)});if(this['_windowCbs'])for(const _0xdc506c of this[_0x36420a(0x795)]){try{_0xdc506c({'p99Ms':_0x47e54c,'maxMs':_0x1b7e59,'meanMs':_0x5a6a56,'reportMs':_0x245b7e});}catch{}}}[_0x31f36a(0x1b5)](){const _0xa78052=_0x31f36a;if(this[_0xa78052(0x60b)])clearInterval(this[_0xa78052(0x60b)]);if(this['_h'])this['_h'][_0xa78052(0x598)]();this[_0xa78052(0x60b)]=null,this['_h']=null,this[_0xa78052(0x859)]=![];}}const _0x14dec6=new _0x382df9();if(_0x14dec6[_0x31f36a(0x258)])_0x14dec6[_0x31f36a(0x362)]();return okdbLoopMonitor={'LOOP':_0x14dec6},okdbLoopMonitor;}var okdbTransaction,hasRequiredOkdbTransaction;function requireOkdbTransaction(){const _0x4fb5ab=_0x5b9a04;if(hasRequiredOkdbTransaction)return okdbTransaction;hasRequiredOkdbTransaction=0x1;const _0x1a6775={'v4':()=>require$$0$2['randomUUID']()},{EVENTS:_0x57dda2}=requireOkdbEnums(),{OKDBError:_0x20ec21}=requireOkdbError(),{recordGuardTrip:_0x4bee5f,guardSnapshotIterable:_0x4287cc}=requireOkdbGuardedRange(),{LOOP:_0x2c382b}=requireOkdbLoopMonitor();function _0x578d98(_0x1f1e9c){const _0x14d664=_0x48c6;return _0x1f1e9c[_0x14d664(0x8a1)](_0x10edcd=>{const _0x2d19d4=_0x14d664,[_0x47145d,_0x6c9c22]=_0x10edcd[_0x2d19d4(0x21c)]||[];return{'action':_0x10edcd[_0x2d19d4(0x7f8)],'type':_0x47145d,'key':_0x6c9c22};});}class _0x536de1{['okdb'];[_0x4fb5ab(0x49f)]=[];[_0x4fb5ab(0x65b)]=[];['_undoHooks']=[];constructor(_0x2ddbe7,_0x5e4f5e={'useReadTransaction':![]}){const _0xcc6af6=_0x4fb5ab;this[_0xcc6af6(0x861)]=_0x2ddbe7,this[_0xcc6af6(0x51c)]=_0x5e4f5e,this['id']=_0x1a6775['v4']();if(this[_0xcc6af6(0x51c)][_0xcc6af6(0x711)])try{this[_0xcc6af6(0x7ca)]=this[_0xcc6af6(0x861)]['db']['getStats']()[_0xcc6af6(0x792)];}catch{this[_0xcc6af6(0x7ca)]=undefined;}this[_0xcc6af6(0x2de)]=this[_0xcc6af6(0x51c)]['useReadTransaction']?this['okdb']['db'][_0xcc6af6(0x711)]():null,this[_0xcc6af6(0x520)]=![],this[_0xcc6af6(0x741)]=![],this[_0xcc6af6(0x2de)]&&queueMicrotask(()=>{const _0xb10f3b=_0xcc6af6;this[_0xb10f3b(0x2de)]&&(this[_0xb10f3b(0x583)](),this[_0xb10f3b(0x741)]=!![]);});}[_0x4fb5ab(0x52e)](_0x160a0a){const _0x15a723=_0x4fb5ab;this[_0x15a723(0x65b)][_0x15a723(0x66a)](_0x160a0a);}[_0x4fb5ab(0x1eb)](_0x5270be){const _0x209888=_0x4fb5ab;this[_0x209888(0x5cc)][_0x209888(0x66a)](_0x5270be);}[_0x4fb5ab(0x583)](){const _0x4bcd74=_0x4fb5ab;if(!this[_0x4bcd74(0x2de)])return;try{this['readTransaction'][_0x4bcd74(0x650)]();}catch(_0x3f9a35){}this[_0x4bcd74(0x2de)]=null;}[_0x4fb5ab(0x556)](){const _0xbf5ffa=_0x4fb5ab;if(this[_0xbf5ffa(0x520)])throw new _0x20ec21(_0xbf5ffa(0x1c2),'TXN_CLOSED');if(this[_0xbf5ffa(0x741)]){let _0x2bb003=![];if(this[_0xbf5ffa(0x51c)]['useReadTransaction']===_0xbf5ffa(0x7c9)&&this[_0xbf5ffa(0x7ca)]!==undefined)try{_0x2bb003=this[_0xbf5ffa(0x861)]['db'][_0xbf5ffa(0x53e)]()[_0xbf5ffa(0x792)]===this[_0xbf5ffa(0x7ca)];}catch{}if(!_0x2bb003){_0x4bee5f((this['okdb']?.[_0xbf5ffa(0x761)]??'?')+_0xbf5ffa(0x8b5));throw new _0x20ec21(_0xbf5ffa(0x1e6)+_0xbf5ffa(0x6be)+'before\x20any\x20await\x20—\x20or\x20opt\x20into\x20useReadTransaction:\x27tolerant\x27\x20to\x20keep\x20reading\x20while\x20'+_0xbf5ffa(0x1e9),_0xbf5ffa(0x7c3));}}}['get'](_0x3c373f,_0x3d47e3){const _0x293705=_0x4fb5ab;return this['_assertOpen'](),this[_0x293705(0x861)][_0x293705(0x67f)](_0x3c373f,_0x3d47e3,{'transaction':this[_0x293705(0x2de)]});}['getEntry'](_0x495f8f,_0x1f14c9){const _0x3fa9b5=_0x4fb5ab;return this[_0x3fa9b5(0x556)](),this[_0x3fa9b5(0x861)][_0x3fa9b5(0x65c)](_0x495f8f,_0x1f14c9,{'transaction':this['readTransaction']});}['getMany'](_0x33964f,_0x1d8e57){const _0x51cdfa=_0x4fb5ab;return this[_0x51cdfa(0x556)](),this[_0x51cdfa(0x861)]['getMany'](_0x33964f,_0x1d8e57,{'transaction':this[_0x51cdfa(0x2de)]});}[_0x4fb5ab(0x78a)](_0x9a56e1){const _0x25f254=_0x4fb5ab;if(!this[_0x25f254(0x51c)][_0x25f254(0x711)])return _0x9a56e1;if(_0x9a56e1&&typeof _0x9a56e1[_0x25f254(0x6f0)]===_0x25f254(0x4d1))return _0x9a56e1;if(Array[_0x25f254(0x562)](_0x9a56e1))return _0x9a56e1;const _0x3c568d=this,_0xa56675=_0x3c568d[_0x25f254(0x51c)][_0x25f254(0x711)]===_0x25f254(0x7c9),_0x46e400=()=>{const _0xd18e24=_0x25f254;if(!_0x3c568d[_0xd18e24(0x741)])return![];if(!_0xa56675)return!![];if(_0x3c568d[_0xd18e24(0x7ca)]===undefined)return!![];try{return _0x3c568d[_0xd18e24(0x861)]['db'][_0xd18e24(0x53e)]()[_0xd18e24(0x792)]!==_0x3c568d['_txnIdAtSnapshot'];}catch{return!![];}};return _0x4287cc(()=>{const _0x2d1ea1=_0x25f254;if(_0x3c568d[_0x2d1ea1(0x520)])throw new _0x20ec21(_0x2d1ea1(0x1c2),_0x2d1ea1(0x7f3));if(_0x46e400()){_0x4bee5f((_0x3c568d[_0x2d1ea1(0x861)]?.[_0x2d1ea1(0x761)]??'?')+_0x2d1ea1(0x287));throw new _0x20ec21('useReadTransaction\x20range\x20consumed\x20after\x20the\x20creation\x20turn\x20—\x20the\x20consistent\x20view\x20was\x20'+_0x2d1ea1(0x7aa)+'materialize\x20them\x20(Array.from)\x20while\x20the\x20view\x20is\x20live.',_0x2d1ea1(0x7c3));}return _0x9a56e1;},{'label':(_0x3c568d['okdb']?.[_0x25f254(0x761)]??'?')+':txnRange',..._0xa56675?{'baseline':_0x3c568d[_0x25f254(0x7ca)],'getTxnId':()=>_0x3c568d['okdb']['db'][_0x25f254(0x53e)]()[_0x25f254(0x792)],'resume':(_0x2fabc2,_0x607197)=>_0x9a56e1[_0x25f254(0x4bb)](_0x607197)}:{}});}['getRange'](_0x318066,_0x3120ac={}){const _0x30281f=_0x4fb5ab;return this[_0x30281f(0x556)](),this[_0x30281f(0x78a)](this['okdb'][_0x30281f(0x56b)](_0x318066,{'transaction':this['readTransaction'],..._0x3120ac}));}[_0x4fb5ab(0x524)](_0x2f438c,_0x2d7677={}){const _0x5cdd4b=_0x4fb5ab;return this[_0x5cdd4b(0x556)](),this[_0x5cdd4b(0x78a)](this[_0x5cdd4b(0x861)][_0x5cdd4b(0x524)](_0x2f438c,{'transaction':this[_0x5cdd4b(0x2de)],..._0x2d7677}));}[_0x4fb5ab(0x2f5)](_0x24de41,_0x1acf41={}){const _0x17f4e1=_0x4fb5ab;return this['_assertOpen'](),this[_0x17f4e1(0x78a)](this['okdb'][_0x17f4e1(0x2f5)](_0x24de41,{'transaction':this[_0x17f4e1(0x2de)],..._0x1acf41}));}[_0x4fb5ab(0x296)](_0x15b233,_0x1889c6,_0xce256e={}){const _0x4e09e5=_0x4fb5ab;return this[_0x4e09e5(0x556)](),this[_0x4e09e5(0x78a)](this[_0x4e09e5(0x861)][_0x4e09e5(0x296)](_0x15b233,_0x1889c6,{'transaction':this[_0x4e09e5(0x2de)],..._0xce256e}));}[_0x4fb5ab(0x827)](_0x1172a5,_0x52308e,_0x236052={}){const _0x30df63=_0x4fb5ab;return this[_0x30df63(0x556)](),this[_0x30df63(0x78a)](this[_0x30df63(0x861)][_0x30df63(0x827)](_0x1172a5,_0x52308e,{'transaction':this[_0x30df63(0x2de)],..._0x236052}));}[_0x4fb5ab(0x50f)](_0x34f9e9=null){const _0x460fc=_0x4fb5ab;return this['_assertOpen'](),this['okdb']['getClock'](_0x34f9e9,{'transaction':this[_0x460fc(0x2de)]});}[_0x4fb5ab(0x807)](_0x575b1d){const _0x2abdd1=_0x4fb5ab;return this[_0x2abdd1(0x556)](),this[_0x2abdd1(0x861)]['getCount'](_0x575b1d,{'transaction':this['readTransaction']});}[_0x4fb5ab(0x425)](_0x488e82,_0x483bfc,_0x227d27,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date['now'](),origin:origin=null,ttl:ttl=null}={}){const _0x2acb17=_0x4fb5ab;this[_0x2acb17(0x49f)]['push']({'action':_0x2acb17(0x425),'args':[_0x488e82,_0x483bfc,_0x227d27,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x4fb5ab(0x5de)](_0x6fe5cb,_0x1fa5f4,_0x23686a,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0x4fb5ab(0x363)](),origin:origin=null,ttl:ttl=null}={}){const _0x45f4f1=_0x4fb5ab;this[_0x45f4f1(0x49f)][_0x45f4f1(0x66a)]({'action':'update','args':[_0x6fe5cb,_0x1fa5f4,_0x23686a,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x4fb5ab(0x2cf)](_0x338118,_0x2a2e47,_0x244ff3,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0x4fb5ab(0x363)](),origin:origin=null,ttl:ttl=null}={}){const _0x3ae549=_0x4fb5ab;this[_0x3ae549(0x49f)][_0x3ae549(0x66a)]({'action':'patch','args':[_0x338118,_0x2a2e47,_0x244ff3,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x4fb5ab(0x812)](_0x4ec147,_0x2c8432,_0x3f744a,{version:version=null,timestamp:timestamp=Date[_0x4fb5ab(0x363)](),origin:origin=null,ttl:ttl=null}={}){const _0x17612e=_0x4fb5ab;this[_0x17612e(0x49f)][_0x17612e(0x66a)]({'action':_0x17612e(0x812),'args':[_0x4ec147,_0x2c8432,_0x3f744a,{'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x4fb5ab(0x467)](_0xfe2c4a,_0x3fb283,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0x4fb5ab(0x363)](),origin:origin=null}={}){const _0x31974d=_0x4fb5ab;this[_0x31974d(0x49f)][_0x31974d(0x66a)]({'action':_0x31974d(0x467),'args':[_0xfe2c4a,_0x3fb283,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin}]});}['setTTL'](_0xe154b1,_0x1334b2,_0x4209cf){const _0x2f9b55=_0x4fb5ab;this[_0x2f9b55(0x49f)][_0x2f9b55(0x66a)]({'action':_0x2f9b55(0x8af),'args':[_0xe154b1,_0x1334b2,_0x4209cf]});}[_0x4fb5ab(0x4df)](_0x4a9d81,_0x3fcecc){const _0x3e36bc=_0x4fb5ab;this[_0x3e36bc(0x49f)][_0x3e36bc(0x66a)]({'action':_0x3e36bc(0x4df),'args':[_0x4a9d81,_0x3fcecc]});}[_0x4fb5ab(0x79b)](){const _0x51efff=_0x4fb5ab;if(this[_0x51efff(0x520)])return;for(const _0x3ba09e of this[_0x51efff(0x5cc)]){try{_0x3ba09e();}catch{}}this['okdb'][_0x51efff(0x3df)]['emit'](_0x57dda2[_0x51efff(0x73d)],{'id':this['id']}),this[_0x51efff(0x49f)]=[],this[_0x51efff(0x583)](),this['_closed']=!![];}async['commit'](){const _0x1c4170=_0x4fb5ab;if(this['_closed'])throw new Error(_0x1c4170(0x1c2));const _0x52d2e9={'id':this['id'],'timestamp':Date['now'](),'actions':this[_0x1c4170(0x49f)]};this[_0x1c4170(0x861)][_0x1c4170(0x3df)][_0x1c4170(0x88d)](_0x57dda2[_0x1c4170(0x2f9)],_0x52d2e9);try{const _0xe8c148=_0x2c382b[_0x1c4170(0x258)]?_0x2c382b[_0x1c4170(0x363)]():0x0;await this[_0x1c4170(0x861)][_0x1c4170(0x3c6)][_0x1c4170(0x3c9)](()=>{const _0x1f3a61=_0x1c4170;for(const _0x1d181a of this['actions']){const _0x55ab01=this[_0x1f3a61(0x861)]['_'+_0x1d181a[_0x1f3a61(0x7f8)]];if(typeof _0x55ab01!==_0x1f3a61(0x4d1))throw new Error(_0x1f3a61(0x5b1)+_0x1d181a[_0x1f3a61(0x7f8)]);_0x55ab01[_0x1f3a61(0x601)](this[_0x1f3a61(0x861)],this,..._0x1d181a[_0x1f3a61(0x21c)]);}}),_0x2c382b['enabled']&&_0x2c382b[_0x1c4170(0x455)](_0x1c4170(0x5ce),_0x2c382b[_0x1c4170(0x363)]()-_0xe8c148,(this['okdb']['name']??'?')+'\x20actions='+this['actions']['length']);}catch(_0x2bd543){for(const _0x3ee6e7 of this[_0x1c4170(0x5cc)]){try{_0x3ee6e7();}catch{}}this['_closeReadTransaction'](),this[_0x1c4170(0x520)]=!![];if(_0x2bd543 instanceof _0x20ec21)throw _0x2bd543;const _0x5a550f={'cause':_0x2bd543,'env':this[_0x1c4170(0x861)]?.[_0x1c4170(0x761)],'envPath':this[_0x1c4170(0x861)]?.[_0x1c4170(0x38c)],'pid':process[_0x1c4170(0x663)],'txnId':this['id'],'actionCount':this['actions'][_0x1c4170(0x2ea)],'actions':_0x578d98(this[_0x1c4170(0x49f)]),'nativeCode':_0x2bd543?.[_0x1c4170(0x604)],'nativeName':_0x2bd543?.[_0x1c4170(0x761)]};try{this[_0x1c4170(0x861)]?.['log']?.[_0x1c4170(0x1b2)]?.(_0x1c4170(0x335),{'env':_0x5a550f['env'],'envPath':_0x5a550f[_0x1c4170(0x7bc)],'pid':_0x5a550f[_0x1c4170(0x663)],'txnId':_0x5a550f['txnId'],'actionCount':_0x5a550f[_0x1c4170(0x844)],'actions':_0x5a550f[_0x1c4170(0x49f)],'nativeCode':_0x5a550f['nativeCode'],'error':_0x2bd543?.[_0x1c4170(0x2b8)],'stack':_0x2bd543?.[_0x1c4170(0x7e4)]});}catch{}throw new _0x20ec21(_0x2bd543?.['message']||_0x1c4170(0x28c),_0x1c4170(0x576),_0x5a550f);}this[_0x1c4170(0x861)][_0x1c4170(0x3df)][_0x1c4170(0x88d)](_0x57dda2[_0x1c4170(0x345)],_0x52d2e9);for(const _0x126cde of this[_0x1c4170(0x65b)]){try{await _0x126cde();}catch{}}this[_0x1c4170(0x49f)]=[],this[_0x1c4170(0x583)](),this[_0x1c4170(0x520)]=!![];}static['createWriteFacade'](_0x5587e2){const _0x24c1d9=_0x4fb5ab;return Object[_0x24c1d9(0x413)]({'id':_0x5587e2['id'],'put':_0x5587e2[_0x24c1d9(0x425)][_0x24c1d9(0x7a2)](_0x5587e2),'update':_0x5587e2['update'][_0x24c1d9(0x7a2)](_0x5587e2),'patch':_0x5587e2[_0x24c1d9(0x2cf)][_0x24c1d9(0x7a2)](_0x5587e2),'create':_0x5587e2[_0x24c1d9(0x812)]['bind'](_0x5587e2),'remove':_0x5587e2[_0x24c1d9(0x467)]['bind'](_0x5587e2),'setTTL':_0x5587e2[_0x24c1d9(0x8af)][_0x24c1d9(0x7a2)](_0x5587e2),'clearTTL':_0x5587e2[_0x24c1d9(0x4df)][_0x24c1d9(0x7a2)](_0x5587e2),'commit':_0x5587e2[_0x24c1d9(0x250)][_0x24c1d9(0x7a2)](_0x5587e2),'rollback':_0x5587e2['rollback'][_0x24c1d9(0x7a2)](_0x5587e2),'get':_0x5587e2[_0x24c1d9(0x67f)][_0x24c1d9(0x7a2)](_0x5587e2),'getEntry':_0x5587e2[_0x24c1d9(0x65c)][_0x24c1d9(0x7a2)](_0x5587e2),'getMany':_0x5587e2[_0x24c1d9(0x3c2)][_0x24c1d9(0x7a2)](_0x5587e2),'getRange':_0x5587e2[_0x24c1d9(0x56b)][_0x24c1d9(0x7a2)](_0x5587e2),'getValues':_0x5587e2[_0x24c1d9(0x524)]['bind'](_0x5587e2),'getKeys':_0x5587e2[_0x24c1d9(0x2f5)][_0x24c1d9(0x7a2)](_0x5587e2),'byIndex':_0x5587e2[_0x24c1d9(0x296)][_0x24c1d9(0x7a2)](_0x5587e2),'query':_0x5587e2['query'][_0x24c1d9(0x7a2)](_0x5587e2),'getClock':_0x5587e2[_0x24c1d9(0x50f)][_0x24c1d9(0x7a2)](_0x5587e2),'getCount':_0x5587e2[_0x24c1d9(0x807)]['bind'](_0x5587e2),'read':_0x5587e2,'raw':_0x5587e2});}static[_0x4fb5ab(0x710)](_0x51009d,_0x587997=[]){const _0x1e047f=_0x4fb5ab;if(!Array['isArray'](_0x587997))throw new _0x20ec21('txn\x20ops\x20must\x20be\x20an\x20array','TXN_INVALID_OPS');for(const _0x201e8e of _0x587997){if(Array[_0x1e047f(0x562)](_0x201e8e)){const [_0x3cd1b6,..._0x4d6bc2]=_0x201e8e;if(typeof _0x51009d[_0x3cd1b6]!==_0x1e047f(0x4d1))throw new _0x20ec21(_0x1e047f(0x5b1)+_0x3cd1b6,'TXN_INVALID_ACTION',{'action':_0x3cd1b6});_0x51009d[_0x3cd1b6](..._0x4d6bc2);continue;}if(!_0x201e8e||typeof _0x201e8e!==_0x1e047f(0x6ea))throw new _0x20ec21(_0x1e047f(0x514),'TXN_INVALID_OP');const {action:_0x1aadfb}=_0x201e8e;if(typeof _0x1aadfb!==_0x1e047f(0x431)||typeof _0x51009d[_0x1aadfb]!==_0x1e047f(0x4d1))throw new _0x20ec21(_0x1e047f(0x5b1)+_0x1aadfb,'TXN_INVALID_ACTION',{'action':_0x1aadfb});switch(_0x1aadfb){case _0x1e047f(0x425):case'update':case _0x1e047f(0x812):_0x51009d[_0x1aadfb](_0x201e8e['type'],_0x201e8e[_0x1e047f(0x1e8)],_0x201e8e['value'],{..._0x201e8e[_0x1e047f(0x51c)],'ttl':_0x201e8e[_0x1e047f(0x73b)]??_0x201e8e[_0x1e047f(0x51c)]?.[_0x1e047f(0x73b)]??null});break;case _0x1e047f(0x2cf):_0x51009d[_0x1e047f(0x2cf)](_0x201e8e[_0x1e047f(0x6eb)],_0x201e8e[_0x1e047f(0x1e8)],_0x201e8e['patch'],{..._0x201e8e['options'],'ttl':_0x201e8e['ttl']??_0x201e8e[_0x1e047f(0x51c)]?.[_0x1e047f(0x73b)]??null});break;case _0x1e047f(0x467):_0x51009d[_0x1e047f(0x467)](_0x201e8e[_0x1e047f(0x6eb)],_0x201e8e['key'],_0x201e8e[_0x1e047f(0x51c)]||{});break;case'setTTL':_0x51009d['setTTL'](_0x201e8e[_0x1e047f(0x6eb)],_0x201e8e['key'],_0x201e8e[_0x1e047f(0x73b)]);break;case _0x1e047f(0x4df):_0x51009d[_0x1e047f(0x4df)](_0x201e8e[_0x1e047f(0x6eb)],_0x201e8e[_0x1e047f(0x1e8)]);break;default:throw new _0x20ec21('Unsupported\x20transaction\x20action:\x20'+_0x1aadfb,_0x1e047f(0x54b),{'action':_0x1aadfb});}}}static async['run'](_0x8c02c3,_0x1166f8,_0x2b6eee={}){const _0x3de355=_0x4fb5ab,_0x4e3452=new _0x536de1(_0x8c02c3,_0x2b6eee),_0x162f6d=_0x536de1[_0x3de355(0x600)](_0x4e3452);try{typeof _0x1166f8===_0x3de355(0x4d1)?await _0x1166f8(_0x162f6d):_0x536de1[_0x3de355(0x710)](_0x4e3452,_0x1166f8||[]);const _0x2ad5f1=_0x4e3452['actions'][_0x3de355(0x2ea)];return await _0x4e3452[_0x3de355(0x250)](),{'id':_0x4e3452['id'],'actions':_0x2ad5f1};}catch(_0x51cd44){try{_0x4e3452[_0x3de355(0x79b)]();}catch(_0x1dd9d9){}throw _0x51cd44;}}}return okdbTransaction=_0x536de1,okdbTransaction;}var dist={},hasRequiredDist;function requireDist(){const _0x256c30=_0x5b9a04;if(hasRequiredDist)return dist;hasRequiredDist=0x1,Object[_0x256c30(0x245)](dist,_0x256c30(0x58a),{'value':!![]});const _0x58b6d9=new Float64Array(0x2),_0x126ca7=new Int32Array(_0x58b6d9[_0x256c30(0x317)],0x0,0x4),{lowIdx:_0x377abc,highIdx:_0x3a68cd}=((()=>{if(new Uint8Array(new Uint32Array([0xffee1100])['buffer'])[0x0]===0xff)return{'lowIdx':0x1,'highIdx':0x0};return{'lowIdx':0x0,'highIdx':0x1};})());let _0x14d0a8=![],_0x45f83b;try{_0x45f83b=new TextEncoder();}catch(_0x119f7b){}function _0x2e1444(_0x2184ff,_0x7ce4e6,position,_0x1af80e){const _0x591e25=_0x256c30;let _0x207b86=_0x7ce4e6[_0x591e25(0x826)];if(!_0x207b86)_0x207b86=_0x7ce4e6['dataView']=new DataView(_0x7ce4e6[_0x591e25(0x317)],_0x7ce4e6[_0x591e25(0x3f6)],_0x7ce4e6[_0x591e25(0x804)]+0x3>>0x2<<0x2);switch(typeof _0x2184ff){case _0x591e25(0x431):let _0x130f7f=_0x2184ff[_0x591e25(0x2ea)],_0x4d073=_0x2184ff[_0x591e25(0x5f0)](0x0);if(!(_0x4d073>=0x1c))_0x7ce4e6[position++]=0x1b;if(_0x130f7f<0x40){let _0x4c17dd,_0xad99a2;for(_0x4c17dd=0x0;_0x4c17dd<_0x130f7f;_0x4c17dd++){_0x4d073=_0x2184ff[_0x591e25(0x5f0)](_0x4c17dd);if(_0x4d073<=0x4)_0x7ce4e6[position++]=0x4,_0x7ce4e6[position++]=_0x4d073;else{if(_0x4d073<0x80)_0x7ce4e6[position++]=_0x4d073;else{if(_0x4d073<0x800)_0x7ce4e6[position++]=_0x4d073>>0x6|0xc0,_0x7ce4e6[position++]=_0x4d073&0x3f|0x80;else(_0x4d073&0xfc00)===0xd800&&((_0xad99a2=_0x2184ff[_0x591e25(0x5f0)](_0x4c17dd+0x1))&0xfc00)===0xdc00?(_0x4d073=0x10000+((_0x4d073&0x3ff)<<0xa)+(_0xad99a2&0x3ff),_0x4c17dd++,_0x7ce4e6[position++]=_0x4d073>>0x12|0xf0,_0x7ce4e6[position++]=_0x4d073>>0xc&0x3f|0x80,_0x7ce4e6[position++]=_0x4d073>>0x6&0x3f|0x80,_0x7ce4e6[position++]=_0x4d073&0x3f|0x80):(_0x7ce4e6[position++]=_0x4d073>>0xc|0xe0,_0x7ce4e6[position++]=_0x4d073>>0x6&0x3f|0x80,_0x7ce4e6[position++]=_0x4d073&0x3f|0x80);}}}}else{if(_0x7ce4e6[_0x591e25(0x381)])position+=_0x7ce4e6[_0x591e25(0x381)](_0x2184ff,position,_0x7ce4e6[_0x591e25(0x804)]-position);else position+=_0x45f83b['encodeInto'](_0x2184ff,_0x7ce4e6[_0x591e25(0x89a)](position))[_0x591e25(0x634)];if(position>_0x7ce4e6['length']-0x4)throw new RangeError(_0x591e25(0x4dd));}break;case _0x591e25(0x216):_0x58b6d9[0x0]=_0x2184ff;let _0x5bd6e2=_0x126ca7[_0x377abc],_0x3588c4=_0x126ca7[_0x3a68cd],_0x30971b;if(_0x2184ff<0x0)return _0x207b86[_0x591e25(0x23e)](position+0x4,~(_0x5bd6e2>>>0x4|_0x3588c4<<0x1c)),_0x207b86[_0x591e25(0x23e)](position+0x0,(_0x3588c4^0x7fffffff)>>>0x4),_0x207b86[_0x591e25(0x23e)](position+0x8,(_0x5bd6e2&0xf^0xf)<<0x4,!![]),position+0x9;else{if(_0x5bd6e2&0xf||_0x1af80e)_0x30971b=0x9;else{if(_0x5bd6e2&0xfffff)_0x30971b=0x8;else{if(_0x5bd6e2||_0x3588c4&0xf)_0x30971b=0x6;else _0x30971b=0x4;}}}_0x207b86[_0x591e25(0x23e)](position+0x0,_0x3588c4>>>0x4|0x10000000),_0x207b86[_0x591e25(0x23e)](position+0x4,_0x5bd6e2>>>0x4|_0x3588c4<<0x1c),_0x207b86['setInt32'](position+0x8,(_0x5bd6e2&0xf)<<0x4,!![]);return position+_0x30971b;case _0x591e25(0x6ea):if(_0x2184ff){if(Array['isArray'](_0x2184ff)){for(let _0x333c27=0x0,_0x4e2293=_0x2184ff[_0x591e25(0x2ea)];_0x333c27<_0x4e2293;_0x333c27++){if(_0x333c27>0x0)_0x7ce4e6[position++]=0x0;position=_0x2e1444(_0x2184ff[_0x333c27],_0x7ce4e6,position,!![]);}break;}else{if(_0x2184ff instanceof Uint8Array){_0x7ce4e6[_0x591e25(0x5e7)](_0x2184ff,position),position+=_0x2184ff[_0x591e25(0x2ea)];break;}else throw new Error(_0x591e25(0x618)+JSON[_0x591e25(0x212)](_0x2184ff));}}else _0x7ce4e6[position++]=0x0;break;case _0x591e25(0x7e5):_0x207b86[_0x591e25(0x388)](position++,_0x2184ff?0x7:0x6,!![]);return position;case _0x591e25(0x747):let _0x39044a=Number(_0x2184ff);if(BigInt(_0x39044a)>_0x2184ff){_0x58b6d9[0x0]=_0x39044a;if(_0x39044a>0x0){if(_0x126ca7[_0x377abc])_0x126ca7[_0x377abc]--;else _0x126ca7[_0x3a68cd]--,_0x126ca7[_0x377abc]=0xffffffff;}else{if(_0x126ca7[_0x377abc]<0xffffffff)_0x126ca7[_0x377abc]++;else _0x126ca7[_0x3a68cd]++,_0x126ca7[_0x377abc]=0x0;}_0x39044a=_0x58b6d9[0x0];}let _0x3cdd23=_0x2184ff-BigInt(_0x39044a);if(_0x3cdd23===0x0n)return _0x2e1444(_0x39044a,_0x7ce4e6,position,_0x1af80e);_0x2e1444(_0x39044a,_0x7ce4e6,position,_0x1af80e),position+=0x9;let _0x5db6a4=BigInt((_0x126ca7[_0x3a68cd]>>0x14&0x7ff)-0x437),_0x32bba1=_0x3cdd23>>_0x5db6a4;_0x7ce4e6[position-0x1]|=Number(_0x32bba1),_0x3cdd23-=_0x32bba1<<_0x5db6a4;let _0x5d5028=!![];while(_0x3cdd23||_0x5d5028){_0x5d5028=![],_0x5db6a4-=0x7n;let _0x57faa2=_0x3cdd23>>_0x5db6a4;_0x7ce4e6[position++]=Number(_0x57faa2)|0x80,_0x3cdd23-=_0x57faa2<<_0x5db6a4;}return position;case _0x591e25(0x6b9):return position;case _0x591e25(0x1a7):_0x7ce4e6[position++]=0x2;return _0x2e1444(_0x2184ff[_0x591e25(0x29d)],_0x7ce4e6,position,_0x1af80e);default:throw new Error(_0x591e25(0x85e)+typeof _0x2184ff);}if(_0x14d0a8&&!_0x1af80e)_0x207b86['setUint32'](position,0x0);return position;}let position;function _0x494532(_0x5c25bb,_0x928c7a,_0xfc3a7a,_0x19a286){const _0x1f6b55=_0x256c30;position=_0x928c7a;let _0x3e1bde=_0x5c25bb[position],_0x28503b;if(_0x3e1bde<0x18){if(_0x3e1bde<0x8){position++;if(_0x3e1bde==0x6)_0x28503b=![];else{if(_0x3e1bde==0x7)_0x28503b=!![];else{if(_0x3e1bde==0x0)_0x28503b=null;else{if(_0x3e1bde==0x2)_0x28503b=Symbol['for'](_0xf15cff(_0x5c25bb,_0xfc3a7a));else return Uint8Array[_0x1f6b55(0x331)][_0x1f6b55(0x4bb)][_0x1f6b55(0x601)](_0x5c25bb,_0x928c7a,_0xfc3a7a);}}}}else{let _0x41c119;try{_0x41c119=_0x5c25bb[_0x1f6b55(0x826)]||(_0x5c25bb['dataView']=new DataView(_0x5c25bb['buffer'],_0x5c25bb[_0x1f6b55(0x3f6)],_0x5c25bb[_0x1f6b55(0x804)]+0x3>>0x2<<0x2));}catch(_0x2a4e72){_0x41c119=_0x5c25bb['dataView']||(_0x5c25bb['dataView']=new DataView(_0x5c25bb['buffer'],_0x5c25bb['byteOffset'],_0x5c25bb[_0x1f6b55(0x317)]['byteLength']-_0x5c25bb['byteOffset']));}let _0x65c0a=_0x41c119[_0x1f6b55(0x3c0)](position)<<0x4,_0x319613=_0xfc3a7a-position,_0x2446e5;if(_0x319613>0x4)_0x2446e5=position+0x8<=_0x5c25bb[_0x1f6b55(0x2ea)]?_0x41c119['getInt32'](position+0x4):_0x5c25bb[position+0x4]<<0x18|_0x5c25bb[position+0x5]<<0x10|_0x5c25bb[position+0x6]<<0x8|_0x5c25bb[position+0x7],_0x65c0a|=_0x2446e5>>>0x1c,_0x319613<=0x6&&(_0x2446e5&=-0x10000),_0x2446e5=_0x2446e5<<0x4,_0x319613>0x8&&(_0x2446e5=_0x2446e5|_0x5c25bb[position+0x8]>>0x4);else _0x2446e5=0x0;_0x3e1bde<0x10&&(_0x65c0a=_0x65c0a^0x7fffffff,_0x2446e5=~_0x2446e5);_0x126ca7[_0x3a68cd]=_0x65c0a,_0x126ca7[_0x377abc]=_0x2446e5,_0x28503b=_0x58b6d9[0x0],position+=0x9;if(_0x319613>0x9&&_0x5c25bb[position]>0x0){_0x28503b=BigInt(_0x28503b);let _0x5a0825=_0x65c0a>>0x14&0x7ff,_0x1fb469=_0x5c25bb[position-0x1]&0xf;_0x28503b+=BigInt(_0x1fb469)<<BigInt(_0x5a0825-0x437);while((_0x1fb469=_0x5c25bb[position])>0x0&&position++<_0xfc3a7a){_0x28503b+=BigInt(_0x1fb469&0x7f)<<BigInt((_0x928c7a-position)*0x7+_0x5a0825-0x3f8);}}}}else{_0x3e1bde==0x1b&&position++;_0x28503b=_0xf15cff(_0x5c25bb,_0xfc3a7a);if(position<_0xfc3a7a)position--;}while(position<_0xfc3a7a){if(_0x5c25bb[position]===0x0)position++;if(_0x19a286)return _0x1c9490['position']=position,_0x28503b;let _0x4c701a=_0x494532(_0x5c25bb,position,_0xfc3a7a,!![]);if(_0x28503b instanceof Array)_0x28503b[_0x1f6b55(0x66a)](_0x4c701a);else _0x28503b=[_0x28503b,_0x4c701a];}return _0x28503b;}const _0x218159=()=>_0x14d0a8=!![],_0x1c9490={'writeKey':_0x2e1444,'readKey':_0x494532,'enableNullTermination':_0x218159};let _0x56281b=[],_0x375743=0x0;const _0x1d9e00=typeof Buffer!==_0x256c30(0x6b9),_0x28df87=_0x1d9e00?Buffer[_0x256c30(0x768)]:Uint8Array,_0x36fba7=_0x31c538=>{const _0x29c1bb=_0x256c30;let _0x566a7e;_0x375743+0x64>_0x56281b['length']&&(_0x56281b=new _0x28df87(0x2000),_0x375743=0x0,_0x566a7e=!![]);try{let _0x26ead0=_0x56281b[_0x29c1bb(0x4bb)](_0x375743,_0x375743=_0x2e1444(_0x31c538,_0x56281b,_0x375743));if(_0x375743>_0x56281b[_0x29c1bb(0x2ea)]){if(_0x566a7e)throw new Error(_0x29c1bb(0x53a));return _0x36fba7(_0x31c538);}return _0x26ead0;}catch(_0x2316d4){if(_0x566a7e)throw _0x2316d4;return _0x375743=_0x56281b['length'],_0x36fba7(_0x31c538);}},_0xe06b58=_0x3ab2e5=>{return _0x494532(_0x3ab2e5,0x0,_0x3ab2e5['length']);},fromCharCode=String[_0x256c30(0x76e)];function _0x1c67b0(){const _0x2b35d9=_0x256c30;let _0x26ccf5=_0x2b35d9(0x643),_0x8682c8=[];for(let _0x4b0e29=0x0;_0x4b0e29<0x30;_0x4b0e29++){let _0x3dc3c3=fromCharCode((_0x4b0e29&0xf)+0x61)+fromCharCode((_0x4b0e29>>0x4)+0x61);_0x26ccf5+=_0x2b35d9(0x4fd)+_0x3dc3c3+'\x20=\x20source[position++]\x0a\x09\x09if\x20('+_0x3dc3c3+_0x2b35d9(0x64b)+_0x3dc3c3+_0x2b35d9(0x889)+_0x3dc3c3+_0x2b35d9(0x6bc)+_0x3dc3c3+_0x2b35d9(0x2ab)+_0x3dc3c3+_0x2b35d9(0x867)+_0x3dc3c3+'\x20=\x20source[position++]\x0a\x09\x09\x09else\x0a\x09\x09\x09\x09return\x20fromCharCode('+_0x8682c8+_0x2b35d9(0x350),_0x8682c8[_0x2b35d9(0x66a)](_0x3dc3c3);}return _0x26ccf5+='return\x20fromCharCode('+_0x8682c8+_0x2b35d9(0x493),_0x26ccf5;}const readString=typeof process!==_0x256c30(0x6b9)&&process[_0x256c30(0x34b)]?function(_0x395443){let {setPosition:_0x430afc,getPosition:_0x488718,readString:readString}=_0x395443;return _0x2e3561=>{_0x430afc(position);let _0x1e277c=readString(_0x2e3561);return position=_0x488718(),_0x1e277c;};}(new Function(_0x256c30(0x76e),_0x256c30(0x278)+_0x1c67b0()+';return\x20{'+_0x256c30(0x8b9)+_0x256c30(0x2bc)+'readString\x20}')(fromCharCode)):eval(_0x1c67b0());function _0xf15cff(_0x1fc1cb,_0xda4c5e){if(_0x1fc1cb[_0xda4c5e]>0x0){let _0x54401b=_0x1fc1cb[_0xda4c5e];try{return _0x1fc1cb[_0xda4c5e]=0x0,readString(_0x1fc1cb);}finally{_0x1fc1cb[_0xda4c5e]=_0x54401b;}}else return readString(_0x1fc1cb);}function _0x4cac6d(_0x50db1c,_0x8eae0a){const _0x3561e7=_0x256c30;if(typeof _0x50db1c=='object'){if(!_0x50db1c)return _0x8eae0a==null?0x0:-0x1;if(_0x50db1c[_0x3561e7(0x313)]){if(_0x8eae0a==null)return 0x1;else return _0x8eae0a[_0x3561e7(0x313)]?_0x50db1c[_0x3561e7(0x313)](_0x8eae0a):-0x1;}let _0x51d5ae;if(_0x8eae0a instanceof Array){let _0x35c0e4=0x0;while((_0x51d5ae=_0x4cac6d(_0x50db1c[_0x35c0e4],_0x8eae0a[_0x35c0e4]))==0x0&&_0x35c0e4<=_0x50db1c[_0x3561e7(0x2ea)]){_0x35c0e4++;}return _0x51d5ae;}_0x51d5ae=_0x4cac6d(_0x50db1c[0x0],_0x8eae0a);if(_0x51d5ae==0x0&&_0x50db1c[_0x3561e7(0x2ea)]>0x1)return 0x1;return _0x51d5ae;}else{if(typeof _0x50db1c==typeof _0x8eae0a)return typeof _0x50db1c===_0x3561e7(0x1a7)&&(_0x50db1c=Symbol[_0x3561e7(0x506)](_0x50db1c),_0x8eae0a=Symbol[_0x3561e7(0x506)](_0x8eae0a)),_0x50db1c<_0x8eae0a?-0x1:_0x50db1c===_0x8eae0a?0x0:0x1;else{if(typeof _0x8eae0a=='object'){if(_0x8eae0a instanceof Array)return-_0x4cac6d(_0x8eae0a,_0x50db1c);return 0x1;}else return _0xc94271[typeof _0x50db1c]<_0xc94271[typeof _0x8eae0a]?-0x1:0x1;}}}const _0xc94271={'symbol':0x0,'undefined':0x1,'boolean':0x2,'number':0x3,'string':0x4},_0x1a95b4=null,_0x497682=new Uint8Array([0xff]);return dist[_0x256c30(0x47a)]=_0x497682,dist[_0x256c30(0x5d0)]=_0x1a95b4,dist['compareKeys']=_0x4cac6d,dist['enableNullTermination']=_0x218159,dist[_0x256c30(0x1f8)]=_0x1c9490,dist['fromBufferKey']=_0xe06b58,dist[_0x256c30(0x5e1)]=_0x494532,dist['toBufferKey']=_0x36fba7,dist['writeKey']=_0x2e1444,dist;}var keyenc,hasRequiredKeyenc;function requireKeyenc(){const _0x3572db=_0x5b9a04;if(hasRequiredKeyenc)return keyenc;hasRequiredKeyenc=0x1;const {writeKey:_0x1690c6}=requireDist(),_0x3c014d=0x7ba,_0x557ee8=0x1000;function _0x3fbef8(_0x24600c,_0x3dd36b){const _0x4970d2=_0x48c6;switch(typeof _0x24600c){case _0x4970d2(0x431):return _0x24600c[_0x4970d2(0x2ea)]<=_0x3c014d&&_0x24600c[_0x4970d2(0x6e6)]();case _0x4970d2(0x216):case _0x4970d2(0x7e5):return!![];case'object':if(_0x24600c===null)return!![];if(Array['isArray'](_0x24600c)){if(_0x3dd36b>0x8||_0x24600c['length']>_0x3c014d)return![];for(let _0x3eabfa=0x0;_0x3eabfa<_0x24600c['length'];_0x3eabfa++)if(!_0x3fbef8(_0x24600c[_0x3eabfa],_0x3dd36b+0x1))return![];return!![];}return Buffer[_0x4970d2(0x85f)](_0x24600c)&&_0x24600c[_0x4970d2(0x2ea)]<=_0x3c014d;default:return![];}}function _0x3b118c(_0x2fce9f,_0x223a64){const _0x1c0645=_0x48c6,_0x1383b8=typeof _0x2fce9f;if(_0x1383b8===_0x1c0645(0x431)){if(_0x2fce9f[_0x1c0645(0x2ea)]>=0x40||!_0x2fce9f[_0x1c0645(0x6e6)]()){if(!_0x3fbef8(_0x2fce9f,0x0))return-0x1;}}else{if(_0x1383b8!==_0x1c0645(0x216)){if(Array['isArray'](_0x2fce9f)?_0x2fce9f['length']===0x0||!_0x3fbef8(_0x2fce9f,0x0):!_0x3fbef8(_0x2fce9f,0x0))return-0x1;}}let _0x396f4b;try{_0x396f4b=_0x1690c6(_0x2fce9f,_0x223a64,0x0);}catch{return-0x1;}return _0x396f4b>0x0&&_0x396f4b<=_0x3c014d?_0x396f4b:-0x1;}return keyenc={'encodeKey':_0x3b118c,'KEY_BUF_SIZE':_0x557ee8,'NO_FAST':Symbol(_0x3572db(0x384))},keyenc;}var okdbHlc,hasRequiredOkdbHlc;function requireOkdbHlc(){if(hasRequiredOkdbHlc)return okdbHlc;hasRequiredOkdbHlc=0x1;const _0x6658fa=0x400,_0x3de7a7=_0x6658fa-0x1,_0x187d02=0xea60;function _0x237572(_0x8b09f4,_0x1a4862){const _0x438e77=_0x48c6;return _0x8b09f4*_0x6658fa+Math[_0x438e77(0x885)](0x0,Math[_0x438e77(0x8b1)](_0x1a4862,_0x3de7a7));}function _0x4b5b2d(_0x149565){const _0x3304a4=_0x48c6,_0x10ea6d=Math[_0x3304a4(0x885)](0x0,Number(_0x149565)||0x0),_0x1bbce2=_0x10ea6d%_0x6658fa,_0x5aed31=(_0x10ea6d-_0x1bbce2)/_0x6658fa;return{'pt':_0x5aed31,'l':_0x1bbce2};}function _0x354c4e(_0x2d741f,_0x59a7f9=Date['now']()){const _0x52e034=_0x48c6,{pt:_0x1b9230,l:_0x3ba4d3}=_0x4b5b2d(_0x2d741f),_0x36537b=Math[_0x52e034(0x885)](_0x1b9230,_0x59a7f9),_0x11c5d5=_0x36537b===_0x1b9230?Math[_0x52e034(0x8b1)](_0x3ba4d3+0x1,_0x3de7a7):0x0;return _0x237572(_0x36537b,_0x11c5d5);}function _0xedb0f(_0x54f45a,_0x4265ca,_0x25dabc=Date['now']()){const _0x3e9321=_0x48c6,{pt:_0x24e9da,l:_0x263880}=_0x4b5b2d(_0x54f45a),{pt:_0x2bb50f,l:_0x436fb8}=_0x4b5b2d(_0x4265ca),_0x4ac254=Math[_0x3e9321(0x885)](_0x24e9da,_0x2bb50f,_0x25dabc);let _0x33934b;if(_0x4ac254===_0x24e9da&&_0x4ac254===_0x2bb50f)_0x33934b=Math[_0x3e9321(0x8b1)](Math['max'](_0x263880,_0x436fb8)+0x1,_0x3de7a7);else{if(_0x4ac254===_0x24e9da)_0x33934b=Math['min'](_0x263880+0x1,_0x3de7a7);else _0x4ac254===_0x2bb50f?_0x33934b=Math[_0x3e9321(0x8b1)](_0x436fb8+0x1,_0x3de7a7):_0x33934b=0x0;}return _0x237572(_0x4ac254,_0x33934b);}function _0x46a47c(_0x128e15,_0x8bd795){const _0x18374d=Number(_0x128e15)||0x0,_0x2d1fe1=Number(_0x8bd795)||0x0;if(_0x18374d<_0x2d1fe1)return-0x1;if(_0x18374d>_0x2d1fe1)return 0x1;return 0x0;}function _0x4517f8(_0x5e85e4){return _0x4b5b2d(_0x5e85e4)['pt'];}return okdbHlc={'send':_0x354c4e,'recv':_0xedb0f,'compare':_0x46a47c,'toMs':_0x4517f8,'encode':_0x237572,'decode':_0x4b5b2d,'SCALE':_0x6658fa,'L_MAX':_0x3de7a7,'DRIFT_MAX':_0x187d02},okdbHlc;}var env,hasRequiredEnv;function requireEnv(){const _0x4eb23a=_0x5b9a04;if(hasRequiredEnv)return env;hasRequiredEnv=0x1;const {fromArray:_0x33cb3c,chunkedRange:_0x19d646,pinnedChunks:_0xc3dff2,claimPrefetch:_0x4502b6}=requireIterable(),{reclass:_0x51a2ee,NotImplementedNative:_0x21ba98,OKDBError:_0x1e4ad3,optionsArg:_0x3d50ca}=requireErrors(),{OKDBViews:_0x23fc9c}=requireViews(),{OKDBQueue:_0x478d18}=requireQueue(),{OKDBTimeMachine:_0x552bd7}=requireTimemachine(),_0x475812=_0x2bf632=>{const _0x4d975d=_0x48c6;try{return!_0x2bf632[_0x4d975d(0x7d4)]||_0x2bf632[_0x4d975d(0x7d4)][_0x4d975d(0x3a6)](_0x4d975d(0x881));}catch{return!![];}},{OKDBFiles:_0xadb553}=requireFiles(),{OKDBEngines:_0x1dfb01,OKDBPipelines:_0x264c0c}=requireEngines(),{OKDBFunctions:_0x1fba26}=requireFunctions(),_0x293595=requireProcessor(),{RawDb:_0x8fe6d5}=requireRawdb(),_0x1bc139=requireBridge();let _0x5e83d3=null;const _0x2ddd0d=()=>_0x5e83d3||=requireOkdbTransaction(),_0x1c64cf=(..._0x28f7bf)=>requireOkdbGuardedRange()['guardSnapshotIterable'](..._0x28f7bf),_0x3fcb3a=Buffer[_0x4eb23a(0x7f7)]([0xff]),_0x1916a1=process.env.OKDB_NATIVE_RAW_READS!=='0',_0x53b174=_0x1916a1&&process.env.OKDB_NATIVE_FAST_GET!=='0',{NO_FAST:_0x2c66c4}=requireKeyenc(),_0x3bbdf1=new Set(_0x1916a1?[_0x4eb23a(0x56b),_0x4eb23a(0x296),_0x4eb23a(0x827),_0x4eb23a(0x755),_0x4eb23a(0x2f5)]:[]),_0x240450=new Set(['get','getEntry',_0x4eb23a(0x3c2),_0x4eb23a(0x56b),_0x4eb23a(0x2f5),_0x4eb23a(0x524),_0x4eb23a(0x807),_0x4eb23a(0x530),_0x4eb23a(0x85d),_0x4eb23a(0x296),_0x4eb23a(0x73e),_0x4eb23a(0x827),_0x4eb23a(0x72b),_0x4eb23a(0x2e4),_0x4eb23a(0x50f),_0x4eb23a(0x755),'count',_0x4eb23a(0x363),_0x4eb23a(0x610),'listTypes',_0x4eb23a(0x2b3),'getIndexStatus',_0x4eb23a(0x2df),_0x4eb23a(0x6b0),_0x4eb23a(0x662),_0x4eb23a(0x2d0),_0x4eb23a(0x3ac),'getUniqueViolation',_0x4eb23a(0x793),_0x4eb23a(0x2a8),_0x4eb23a(0x5ed),'getRefViolation',_0x4eb23a(0x70d),_0x4eb23a(0x2d9),'listTTL',_0x4eb23a(0x611),_0x4eb23a(0x40d),_0x4eb23a(0x761),_0x4eb23a(0x38c),'id',_0x4eb23a(0x792),_0x4eb23a(0x6f7),_0x4eb23a(0x5bd),_0x4eb23a(0x3b6),_0x4eb23a(0x764)]),_0x223aab=new Set([_0x4eb23a(0x362),_0x4eb23a(0x3cb),_0x4eb23a(0x4a4),_0x4eb23a(0x645),_0x4eb23a(0x8aa),_0x4eb23a(0x829),_0x4eb23a(0x5f7),_0x4eb23a(0x357),_0x4eb23a(0x387),_0x4eb23a(0x51d),_0x4eb23a(0x3c9),_0x4eb23a(0x1e8),_0x4eb23a(0x450),_0x4eb23a(0x877)]);function _0x409838(_0xea71ef,_0x3e33a2,_0x9244a1){const _0x58d8dc=new Map();return(_0x2c0999,_0xb63318)=>{const _0x2075e9=_0x48c6,_0x578d60=JSON[_0x2075e9(0x212)](_0xb63318),_0xae956f=_0x58d8dc[_0x2075e9(0x67f)](_0x578d60);if(_0xae956f){if(_0xae956f[_0x2075e9(0x36e)]==='pending')throw _0x3bf24d();_0x58d8dc[_0x2075e9(0x597)](_0x578d60);if(_0xae956f[_0x2075e9(0x36e)]===_0x2075e9(0x486))throw _0xae956f[_0x2075e9(0x883)];return _0xae956f[_0x2075e9(0x883)];}const _0x1de934=_0x2c0999(..._0xb63318);if(!_0x1de934||typeof _0x1de934[_0x2075e9(0x6f0)]!==_0x2075e9(0x4d1))return _0x1de934;const _0x2acd52={'state':_0x2075e9(0x8db),'value':undefined},_0x105077=(_0x1136aa,_0xdd479e)=>{const _0x2344b2=_0x2075e9;_0x2acd52[_0x2344b2(0x36e)]=_0x1136aa,_0x2acd52[_0x2344b2(0x883)]=_0xdd479e;if(_0x58d8dc[_0x2344b2(0x67f)](_0x578d60)!==_0x2acd52)return;setTimeout(()=>_0x58d8dc[_0x2344b2(0x67f)](_0x578d60)===_0x2acd52&&_0x58d8dc[_0x2344b2(0x597)](_0x578d60),0x7530)[_0x2344b2(0x3bb)]();try{_0xea71ef[_0x2344b2(0x861)][_0x2344b2(0x849)](_0x2344b2(0x3df),null,_0x2344b2(0x88d),[_0x2344b2(0x410),{'env':_0xea71ef[_0x2344b2(0x761)],'type':_0x3e33a2,'field':_0x9244a1}],!![]);}catch{}};_0x1de934[_0x2075e9(0x6f0)](_0x853433=>_0x105077('ok',_0x853433),_0x4f4f08=>_0x105077('err',_0x4f4f08));for(let _0x2e516b=0x0;_0x2e516b<0x64&&_0x2acd52[_0x2075e9(0x36e)]===_0x2075e9(0x8db);_0x2e516b++)process['_tickCallback']();if(_0x2acd52[_0x2075e9(0x36e)]==='ok')return _0x2acd52[_0x2075e9(0x883)];if(_0x2acd52['state']===_0x2075e9(0x486))throw _0x2acd52[_0x2075e9(0x883)];_0x58d8dc['set'](_0x578d60,_0x2acd52);throw _0x3bf24d();};}function _0x3bf24d(){const _0x35a4c3=_0x4eb23a;return Object[_0x35a4c3(0x6af)](new Error(_0x35a4c3(0x762)),{'code':_0x35a4c3(0x4cb)});}class _0x553f3e{constructor(_0x4519a8,_0x277e83){const _0x3c1dd9=_0x4eb23a;this['okdb']=_0x4519a8,this[_0x3c1dd9(0x761)]=_0x277e83,this['events']=_0x4519a8[_0x3c1dd9(0x3df)],this['log']=_0x4519a8[_0x3c1dd9(0x746)],this['_isOpen']=!![],this[_0x3c1dd9(0x1b7)]=null,this['views']=new _0x23fc9c(this),this[_0x3c1dd9(0x893)]=new _0x293595(this);if(!_0x277e83['startsWith']('~')||_0x277e83[_0x3c1dd9(0x42a)](_0x3c1dd9(0x37c)))this[_0x3c1dd9(0x675)]=new _0x478d18(this);if(!_0x277e83['startsWith']('~'))this['files']=new _0xadb553(this);this[_0x3c1dd9(0x5b6)]=new _0x1fba26(_0x4519a8,_0x277e83),this[_0x3c1dd9(0x439)]=new _0x1dfb01(_0x4519a8,_0x277e83,_0x4519a8[_0x3c1dd9(0x439)]),this['pipelines']=new _0x264c0c(_0x4519a8,_0x277e83);if(!_0x277e83[_0x3c1dd9(0x42e)]('~')&&_0x4519a8[_0x3c1dd9(0x51c)][_0x3c1dd9(0x881)]&&_0x475812(_0x4519a8))this[_0x3c1dd9(0x881)]=new _0x552bd7(this);_0x1bc139['registerEnv'](this[_0x3c1dd9(0x38c)],this);const _0x21dedd=this;this[_0x3c1dd9(0x3c6)]={async 'transaction'(_0x590be3){const _0x14e546=_0x3c1dd9,_0x2ef315=[];_0x21dedd[_0x14e546(0x1b7)]=_0x2ef315;try{_0x590be3();}finally{_0x21dedd[_0x14e546(0x1b7)]=null;}return _0x21dedd[_0x14e546(0x861)][_0x14e546(0x603)][_0x14e546(0x343)](_0x14e546(0x374),_0x21dedd[_0x14e546(0x761)],_0x14e546(0x250),[_0x2ef315]);},'drain'(){const _0x43a9ff=_0x3c1dd9;return _0x21dedd[_0x43a9ff(0x861)][_0x43a9ff(0x603)]['drain']();},'flushLmdb'(){return _0x21dedd['okdb']['_wb']['drain']();},'markClosed'(){}};const _0x3076c3=new _0x8fe6d5(this,'');_0x3076c3['getStats']=()=>({'lastTxnId':this['_n'](_0x3c1dd9(0x792),[])}),Object['defineProperty'](_0x3076c3,_0x3c1dd9(0x7a0),{'get':()=>this[_0x3c1dd9(0x861)][_0x3c1dd9(0x603)][_0x3c1dd9(0x1a0)](),'configurable':!![]}),Object['defineProperty'](_0x3076c3,_0x3c1dd9(0x3b2),{'get':()=>this[_0x3c1dd9(0x861)][_0x3c1dd9(0x603)][_0x3c1dd9(0x1a0)](),'configurable':!![]});const _0x520e76=_0x3076c3['get'][_0x3c1dd9(0x7a2)](_0x3076c3);_0x3076c3['get']=_0x16d124=>_0x16d124===_0x3c1dd9(0x43f)?this['_n'](_0x3c1dd9(0x50f),[null]):_0x520e76(_0x16d124),this['db']=_0x3076c3;}async[_0x4eb23a(0x7ba)](){const _0x14fe29=_0x4eb23a;this[_0x14fe29(0x5ef)]=!![];}get[_0x4eb23a(0x1a8)](){const _0x25a21b=_0x4eb23a;return new Map(this[_0x25a21b(0x861)]['_call']('db',null,_0x25a21b(0x27b),[this[_0x25a21b(0x761)]],![]));}get[_0x4eb23a(0x689)](){const _0x5b1483=_0x4eb23a;return this[_0x5b1483(0x73a)]||(this[_0x5b1483(0x73a)]=new _0x8fe6d5(this,_0x5b1483(0x8d8)));}['_getType'](_0x314c8a){const _0x240c64=_0x4eb23a,_0x16793a=this[_0x240c64(0x689)][_0x240c64(0x67f)](_0x314c8a);if(_0x16793a===undefined||String(_0x314c8a)[_0x240c64(0x42e)](_0x240c64(0x788))||String(_0x314c8a)['startsWith'](_0x240c64(0x5db))){const {OKDBError:_0x5440a3}=requireErrors();throw new _0x5440a3('Type\x20\x22'+_0x314c8a+_0x240c64(0x563),'TYPE_NOT_REGISTERED',{'type':_0x314c8a});}const _0x38fdd6=this,_0x3c245d=new _0x8fe6d5(_0x38fdd6,'type:'+_0x314c8a+_0x240c64(0x4c4)),_0x5c6cb4=new Map();for(const _0x3cd80f of _0x3c245d[_0x240c64(0x2f5)]()){const _0x3df5e4=_0x3c245d[_0x240c64(0x67f)](_0x3cd80f)||{},_0x4e1bee={'parts':_0x3cd80f['split']('~'),'db':new _0x8fe6d5(_0x38fdd6,_0x240c64(0x720)+_0x314c8a+_0x240c64(0x548)+_0x3cd80f,{'dupSort':!![]})};if(_0x3df5e4[_0x240c64(0x202)])_0x4e1bee[_0x240c64(0x202)]=_0x3df5e4['geoConfig'];if(_0x3df5e4[_0x240c64(0x5a3)])_0x4e1bee[_0x240c64(0x5a3)]=!![];if(_0x3df5e4[_0x240c64(0x62e)])_0x4e1bee[_0x240c64(0x62e)]=!![];if(_0x3df5e4[_0x240c64(0x715)])_0x4e1bee['createdBy']=_0x3df5e4[_0x240c64(0x715)];_0x4e1bee[_0x240c64(0x4e5)]=new Set((_0x3df5e4['usedBy']??[])[_0x240c64(0x8a1)](_0x4d65a0=>_0x4d65a0[_0x240c64(0x3b9)]+':'+_0x4d65a0['name'])),_0x5c6cb4[_0x240c64(0x5e7)](_0x3cd80f,_0x4e1bee);}return{'root':new _0x8fe6d5(_0x38fdd6,_0x240c64(0x720)+_0x314c8a),'data':new _0x8fe6d5(_0x38fdd6,_0x240c64(0x720)+_0x314c8a+_0x240c64(0x6c5),{'useVersions':!![]}),'indexes':_0x3c245d,'clockToChange':new _0x8fe6d5(_0x38fdd6,_0x240c64(0x720)+_0x314c8a+_0x240c64(0x820)),'keyToChange':new _0x8fe6d5(_0x38fdd6,'type:'+_0x314c8a+_0x240c64(0x309)),'fieldSchema':new Map(Object[_0x240c64(0x453)](_0x16793a[_0x240c64(0x1c0)]||{})[_0x240c64(0x8a1)](([_0x487853,_0x16c435])=>[_0x487853,new Set(Array[_0x240c64(0x562)](_0x16c435)?_0x16c435:[_0x16c435])])),'indexToDb':_0x5c6cb4,'ftsToDb':null,'schema':_0x16793a[_0x240c64(0x49b)]||null,'defaultTTL':_0x16793a[_0x240c64(0x878)]||null};}get[_0x4eb23a(0x68c)](){const _0x54ae38=_0x4eb23a,_0x30d0b2=this,_0x19434e=()=>_0x30d0b2[_0x54ae38(0x32d)]();return{'get':_0x1cdfa5=>{const _0x597574=_0x54ae38;try{return _0x30d0b2[_0x597574(0x68d)](_0x1cdfa5);}catch{return undefined;}},'has':_0x589829=>_0x19434e()[_0x54ae38(0x42a)](_0x589829),'keys':()=>_0x19434e()[Symbol[_0x54ae38(0x393)]](),get 'size'(){const _0x54ad09=_0x54ae38;return _0x19434e()[_0x54ad09(0x2ea)];}};}['_typeKeys'](){const _0x390cda=_0x4eb23a;return this[_0x390cda(0x32d)]();}get['changeToClockDb'](){const _0x5de940=_0x4eb23a;return this['_changeToClockDb']||(this['_changeToClockDb']=new _0x8fe6d5(this,_0x5de940(0x69d)));}get['clockToChangeDb'](){const _0x5b3a7a=_0x4eb23a;return this[_0x5b3a7a(0x739)]||(this[_0x5b3a7a(0x739)]=new _0x8fe6d5(this,_0x5b3a7a(0x866)));}['_advanceHlcOnRecv'](_0x109b65){const _0x442750=_0x4eb23a;return this['_n'](_0x442750(0x606),[_0x109b65]);}get[_0x4eb23a(0x375)](){const _0x5a4af4=_0x4eb23a;return!this['_n'](_0x5a4af4(0x50e),[],![]);}get[_0x4eb23a(0x1c1)](){const _0x206a66=_0x4eb23a;return this[_0x206a66(0x65e)]!==undefined?this[_0x206a66(0x65e)]:this['_n'](_0x206a66(0x50e),[],![]);}set[_0x4eb23a(0x1c1)](_0x765ba0){const _0x4fedc8=_0x4eb23a;this[_0x4fedc8(0x65e)]=_0x765ba0;}get[_0x4eb23a(0x3be)](){const _0x1ea3c2=_0x4eb23a;return this['_compactLock']||(this[_0x1ea3c2(0x360)]=new(requireLock())['NativeLock'](this[_0x1ea3c2(0x861)],_0x1ea3c2(0x277),_0x1ea3c2(0x7a6),{'ttlMs':0xea60}));}get[_0x4eb23a(0x38c)](){const _0x2e8e74=_0x4eb23a;return this[_0x2e8e74(0x5c2)]??(this[_0x2e8e74(0x5c2)]=this['_n']('path',[]));}get['id'](){return this['_n']('id',[]);}get['role'](){const _0x55af3d=_0x4eb23a;return this[_0x55af3d(0x861)][_0x55af3d(0x862)];}['_n'](_0x253ea9,_0x20b316){const _0x264f7b=_0x4eb23a;return this[_0x264f7b(0x861)][_0x264f7b(0x849)]('env',this[_0x264f7b(0x761)],_0x253ea9,_0x20b316,!_0x240450['has'](_0x253ea9));}[_0x4eb23a(0x865)](_0x11dadc){const _0x1a2985=_0x4eb23a;return this[_0x1a2985(0x861)][_0x1a2985(0x6fc)](_0x11dadc);}['_np'](_0x4a028e,_0x53c8bb){const _0x314c50=_0x4eb23a;if(_0x3bbdf1[_0x314c50(0x884)](_0x4a028e===_0x314c50(0x6b0)?_0x53c8bb[0x1]:_0x4a028e))return this['okdb'][_0x314c50(0x434)](this[_0x314c50(0x761)],_0x4a028e,_0x53c8bb);return this['okdb']['_callPacked'](_0x314c50(0x374),this[_0x314c50(0x761)],_0x4a028e,_0x53c8bb);}[_0x4eb23a(0x3c9)](_0x2efb73={'useReadTransaction':![]}){return new(_0x2ddd0d())(this,_0x2efb73);}async[_0x4eb23a(0x354)](_0x17f276,_0x3b7024){const _0x76d436=_0x4eb23a;return _0x2ddd0d()[_0x76d436(0x54e)](this,_0x17f276,_0x3b7024);}[_0x4eb23a(0x2b6)](_0x19c84f,_0x2f574c){const _0x5a5fcf=_0x4eb23a;if(this[_0x5a5fcf(0x1b7)])this[_0x5a5fcf(0x1b7)][_0x5a5fcf(0x66a)]({'action':_0x19c84f,'args':_0x2f574c});else this['_n'](_0x19c84f,_0x2f574c);}[_0x4eb23a(0x32c)](_0x381687,_0x3ee5f3,_0x29576,_0x461bbf,_0x1ca70c){const _0x4893a5=_0x4eb23a;this[_0x4893a5(0x2b6)](_0x4893a5(0x425),[_0x3ee5f3,_0x29576,_0x461bbf,_0x1ca70c]);}[_0x4eb23a(0x8b3)](_0x54ac0f,_0x3692a5,_0x4d3c12,_0xce5e1,_0x2bca68){const _0x40aa0d=_0x4eb23a;this[_0x40aa0d(0x2b6)](_0x40aa0d(0x5de),[_0x3692a5,_0x4d3c12,_0xce5e1,_0x2bca68]);}[_0x4eb23a(0x494)](_0x450fd7,_0x3a0e7e,_0xbb5060,_0x3def69,_0x2a7677){const _0x1727b4=_0x4eb23a;this[_0x1727b4(0x2b6)](_0x1727b4(0x2cf),[_0x3a0e7e,_0xbb5060,_0x3def69,_0x2a7677]);}[_0x4eb23a(0x1cd)](_0x5e6721,_0x97922c,_0x42b8b7,_0x75bb34,_0x7d7417){const _0x12eddd=_0x4eb23a;this[_0x12eddd(0x2b6)]('create',[_0x97922c,_0x42b8b7,_0x75bb34,_0x7d7417]);}[_0x4eb23a(0x8d9)](_0x14b8ab,_0x5c16bd,_0x308f20,_0x2e84de){const _0x54ccd6=_0x4eb23a;this[_0x54ccd6(0x2b6)]('remove',[_0x5c16bd,_0x308f20,_0x2e84de]);}[_0x4eb23a(0x4f3)](_0x190466,_0x112c20,_0x194f4f,_0x2042c4){const _0x2d9d09=_0x4eb23a;this[_0x2d9d09(0x2b6)](_0x2d9d09(0x8af),[_0x112c20,_0x194f4f,_0x2042c4]);}[_0x4eb23a(0x27e)](_0x2ff01d,_0x1e17ed,_0x1c9c5d){const _0x239ded=_0x4eb23a;this[_0x239ded(0x2b6)]('clearTTL',[_0x1e17ed,_0x1c9c5d]);}['_w'](_0x5546d9,_0x1b4070){const _0x153eee=_0x4eb23a;return this[_0x153eee(0x861)][_0x153eee(0x603)][_0x153eee(0x343)](_0x153eee(0x374),this['name'],_0x5546d9,_0x1b4070);}[_0x4eb23a(0x425)](_0x38cbc5,_0x6cdd7a,_0x5ba1ea,_0x265f1c={}){const _0x2e53ee=_0x4eb23a;return this['_w'](_0x2e53ee(0x425),[_0x38cbc5,_0x6cdd7a,_0x5ba1ea,_0x265f1c]);}[_0x4eb23a(0x5de)](_0x281f5e,_0x2a0176,_0x5a9105,_0x1f59ec={}){return this['_w']('update',[_0x281f5e,_0x2a0176,_0x5a9105,_0x1f59ec]);}[_0x4eb23a(0x2cf)](_0xd03f81,_0x5a9b50,_0x3365a9,_0x5b55da={}){return this['_w']('patch',[_0xd03f81,_0x5a9b50,_0x3365a9,_0x5b55da]);}[_0x4eb23a(0x812)](_0x15ff8f,_0x22834a,_0x3f29ce,_0x23a7e0={}){const _0x4cd71d=_0x4eb23a;return this['_w'](_0x4cd71d(0x812),[_0x15ff8f,_0x22834a,_0x3f29ce,_0x23a7e0]);}[_0x4eb23a(0x467)](_0x3ac7d5,_0x3bb668,_0xa95e59={}){return this['_w']('remove',[_0x3ac7d5,_0x3bb668,_0xa95e59]);}[_0x4eb23a(0x67f)](_0x174c7c,_0x3db5fc,_0x39a246){const _0x3c048c=_0x4eb23a;if(_0x53b174&&typeof _0x174c7c===_0x3c048c(0x431)){const _0x12d055=this[_0x3c048c(0x861)][_0x3c048c(0x3cc)](this['name'],_0x174c7c,_0x3db5fc);if(_0x12d055!==_0x2c66c4)return _0x12d055===null?this['_n'](_0x3c048c(0x67f),[_0x174c7c,_0x3db5fc]):_0x12d055;}if(_0x1916a1&&(typeof _0x3db5fc===_0x3c048c(0x431)||typeof _0x3db5fc===_0x3c048c(0x216))){const _0x12bf16=this[_0x3c048c(0x861)]['_getRaw'](this['name'],_0x174c7c,_0x3db5fc);if(_0x12bf16!==null)return _0x12bf16;}return this['_n'](_0x3c048c(0x67f),[_0x174c7c,typeof _0x3db5fc==='symbol'?null:_0x3db5fc]);}['getMany'](_0x3301fd,_0xd01bac,_0xddf697){const _0x644473=_0x4eb23a,_0x44c5a3=[_0x3301fd,Array[_0x644473(0x562)](_0xd01bac)&&_0xd01bac['some'](_0x1f80ae=>typeof _0x1f80ae==='symbol')?_0xd01bac[_0x644473(0x8a1)](_0x219ff8=>typeof _0x219ff8===_0x644473(0x1a7)?null:_0x219ff8):_0xd01bac];return _0x1916a1?this['okdb'][_0x644473(0x434)](this[_0x644473(0x761)],'getMany',_0x44c5a3):this['_n']('getMany',_0x44c5a3);}[_0x4eb23a(0x65c)](_0x52bd59,_0x355df3,_0x5630eb){const _0x161875=_0x4eb23a;return this['_n'](_0x161875(0x65c),[_0x52bd59,typeof _0x355df3==='symbol'?null:_0x355df3]);}['getCount'](_0x255d22,_0x2d82d5){const _0x2e8430=_0x4eb23a;return this['_assertRangeOptions']('getCount',_0x2d82d5),this['_n'](_0x2e8430(0x807),[_0x255d22,_0x311f25(_0x2d82d5)]);}[_0x4eb23a(0x348)](_0x57b7a5,_0x4ba6fb,_0x1139fa=[]){const _0x124047=_0x4eb23a;if(!_0x4ba6fb||typeof _0x4ba6fb!==_0x124047(0x6ea))return;for(const _0x428bdf of Object[_0x124047(0x73c)](_0x4ba6fb)){if(!_0x223aab[_0x124047(0x884)](_0x428bdf)&&!_0x1139fa[_0x124047(0x42a)](_0x428bdf))throw new _0x1e4ad3(_0x57b7a5+':\x20unknown\x20option\x20\x27'+_0x428bdf+'\x27',_0x124047(0x5a1),{'option':_0x428bdf});}}[_0x4eb23a(0x78a)](_0x37a22f,_0x32d3e3,_0x29a818,_0x43092e,_0x1763ab,_0x2c331a){const _0x34fff1=_0x4eb23a;this[_0x34fff1(0x348)](_0x37a22f,_0x43092e);const _0x2180aa=_0x43092e?.[_0x34fff1(0x51d)],_0x149d82=_0x311f25(_0x43092e);if(_0x2180aa===!![]||_0x2180aa==='tolerant'){const _0xc4e6e4=this[_0x34fff1(0x2c6)](_0x37a22f,_0x32d3e3,_0x1b1390=>[_0x29a818,{..._0x149d82,..._0x1b1390}],_0x43092e);return _0x2c331a?_0xc4e6e4[_0x34fff1(0x8a1)](_0x2c331a):_0xc4e6e4;}const _0x4830a0=_0x19d646(_0x608b36=>this[_0x34fff1(0x1f4)](_0x32d3e3,[_0x29a818,_0x608b36]),_0x149d82,_0x1763ab,{'rows':_0x32d3e3===_0x34fff1(0x56b)});return _0x2c331a?_0x4830a0[_0x34fff1(0x8a1)](_0x2c331a):_0x4830a0;}['_lazyPinned'](_0x3b450d,_0x2f5f1b,_0x38619d,_0x18de44,_0x48ba4f,_0x538925=![]){const _0x2e9be7=_0x4eb23a,{source:_0x4732e1,prefetch:_0x28ce59}=_0xc3dff2((_0x26ca05,_0x223d8e)=>_0x26ca05===_0x2e9be7(0x662)?this['_n'](_0x26ca05,_0x223d8e):this[_0x2e9be7(0x1f4)](_0x26ca05,_0x223d8e),_0x2f5f1b,_0x38619d,_0x18de44||{},_0x48ba4f),_0x289df0=_0x28ce59(),_0x359aa0=!_0x538925&&_0x18de44&&_0x18de44['snapshot']==='tolerant';let _0x2a2b66=null;return _0x1c64cf(()=>({[Symbol[_0x2e9be7(0x393)]]:()=>_0x2a2b66=_0x4732e1(0x0,_0x4502b6(_0x289df0))}),{'label':this[_0x2e9be7(0x761)]+':'+_0x3b450d,..._0x359aa0?{'getTxnId':()=>this['db'][_0x2e9be7(0x53e)]()['lastTxnId'],'resume':()=>({[Symbol[_0x2e9be7(0x393)]]:()=>_0x2a2b66=_0x2a2b66[_0x2e9be7(0x6c4)]()})}:{}});}['getRange'](_0x4a17c0,_0x210150){const _0x4afd47=_0x4eb23a;return this[_0x4afd47(0x78a)](_0x4afd47(0x56b),_0x4afd47(0x56b),_0x4a17c0,_0x210150,_0x57f71a=>_0x57f71a[_0x4afd47(0x1e8)]);}[_0x4eb23a(0x2f5)](_0x1dd651,_0x199c22){const _0x348d5b=_0x4eb23a;return this[_0x348d5b(0x78a)]('getKeys',_0x348d5b(0x2f5),_0x1dd651,_0x199c22,_0x2c1137=>_0x2c1137);}['getValues'](_0xdcacd0,_0x2a6bf0){const _0x54a8c1=_0x4eb23a;return this[_0x54a8c1(0x78a)](_0x54a8c1(0x524),'getRange',_0xdcacd0,_0x2a6bf0,_0x2efbd4=>_0x2efbd4[_0x54a8c1(0x1e8)],_0x39f098=>_0x39f098[_0x54a8c1(0x883)]);}[_0x4eb23a(0x530)](_0x16e315,_0x82c4f0,_0x4f7b6f={}){const _0x2b32a8=_0x4eb23a;return this[_0x2b32a8(0x56b)](_0x16e315,{'start':_0x82c4f0,'end':_0x82c4f0+'￿',..._0x4f7b6f});}[_0x4eb23a(0x85d)](_0x51a67f,_0x4757f5,_0x425d56={}){const _0x2f6b16=_0x4eb23a;this[_0x2f6b16(0x348)](_0x2f6b16(0x85d),_0x425d56,['prefix']);const _0x1ca683=_0x311f25(_0x425d56);if(_0x425d56&&_0x425d56[_0x2f6b16(0x3c9)])return _0x33cb3c(this['_n'](_0x2f6b16(0x85d),[_0x51a67f,_0x4757f5,_0x1ca683]));return this['_lazyPinned'](_0x2f6b16(0x85d),_0x2f6b16(0x85d),_0x1398b1=>[_0x51a67f,_0x4757f5,{..._0x1ca683,..._0x1398b1}],_0x425d56,undefined,!![]);}[_0x4eb23a(0x296)](_0x15fc42,_0x1171b7,_0x1eb20a){const _0x27bbc7=_0x4eb23a;this['_assertRangeOptions'](_0x27bbc7(0x296),_0x1eb20a,['prefix',_0x27bbc7(0x726)]);const _0x5390c9=_0x311f25(_0x1eb20a);if(_0x1eb20a&&_0x1eb20a[_0x27bbc7(0x3c9)])return _0x33cb3c(this['_n'](_0x27bbc7(0x296),[_0x15fc42,_0x1171b7,_0x5390c9]));return this[_0x27bbc7(0x2c6)](_0x27bbc7(0x296),_0x27bbc7(0x296),_0x545f14=>[_0x15fc42,_0x1171b7,{..._0x5390c9,..._0x545f14}],_0x1eb20a,undefined,!![]);}[_0x4eb23a(0x73e)](_0x5c28e1,_0x1d266b,_0x526ca4={}){const _0x4763f9=_0x4eb23a;return this['_n'](_0x4763f9(0x73e),[_0x5c28e1,_0x1d266b,_0x311f25(_0x526ca4)]);}[_0x4eb23a(0x827)](_0x13b259,_0x2305c1={},_0x14d2dd={}){const _0x8c20ee=_0x4eb23a,_0x188caf=_0x411874(_0x14d2dd);if(_0x14d2dd){for(const _0x17828e of Object[_0x8c20ee(0x73c)](_0x14d2dd))if(_0x17828e!==_0x8c20ee(0x484)&&typeof _0x14d2dd[_0x17828e]===_0x8c20ee(0x4d1))_0x188caf[_0x17828e]=null;}if(_0x14d2dd&&(_0x14d2dd[_0x8c20ee(0x370)]||_0x14d2dd[_0x8c20ee(0x2b2)]))return this['_n'](_0x8c20ee(0x72b),[_0x188caf]),this['_hybridQuery'](_0x13b259,_0x2305c1,_0x14d2dd);const _0x78f8b6=typeof _0x14d2dd[_0x8c20ee(0x484)]===_0x8c20ee(0x4d1)?_0x14d2dd[_0x8c20ee(0x484)]:null;if(_0x14d2dd['near']||_0x2a40b5(_0x2305c1)||_0x14d2dd['transaction']!==undefined){let _0x5a916b=this['_n'](_0x8c20ee(0x827),[_0x13b259,_0x2305c1,_0x188caf]);if(_0x78f8b6)_0x5a916b=_0x5a916b[_0x8c20ee(0x8a1)](_0x78f8b6);if(_0x14d2dd[_0x8c20ee(0x2dc)]||_0x2a40b5(_0x2305c1))return _0x5a916b;return _0x33cb3c(_0x5a916b);}const _0x23190d=_0x515d25=>typeof _0x515d25===_0x8c20ee(0x216)&&Number[_0x8c20ee(0x209)](_0x515d25)?Math['max'](0x0,_0x515d25):Infinity;let _0x39f5ec;if(_0x14d2dd[_0x8c20ee(0x290)]){const _0x4f364d=_0x2a76a1=>typeof _0x2a76a1===_0x8c20ee(0x216)&&_0x2a76a1>0x0?Math[_0x8c20ee(0x5f3)](_0x2a76a1):0x0;_0x39f5ec=this['_lazyPinned'](_0x8c20ee(0x827),'query',_0xdeec1a=>[_0x13b259,_0x2305c1,{..._0x188caf,..._0xdeec1a}],null,{'limitOf':()=>_0x23190d(_0x188caf['limit']),'offsetOf':()=>_0x4f364d(_0x188caf[_0x8c20ee(0x8aa)])});}else _0x39f5ec=_0x19d646(_0x41fbbc=>{const _0x192d98=_0x8c20ee,{__after:_0x328d77,..._0x4618e0}=_0x41fbbc;return this[_0x192d98(0x1f4)](_0x192d98(0x827),_0x328d77===undefined?[_0x13b259,_0x2305c1,_0x4618e0]:[_0x13b259,_0x2305c1,_0x4618e0,_0x328d77]);},_0x188caf,_0x3e62be=>_0x3e62be[_0x8c20ee(0x1e8)],{'limitOf':_0x23190d,'rows':!![],'prefetch':!![],'resumeOpts':(_0x4a6832,_0x5ea28a)=>{_0x4a6832['offset']=0x0,_0x4a6832['__after']=_0x5ea28a;}});return _0x78f8b6?_0x39f5ec['map'](_0x78f8b6):_0x39f5ec;}async[_0x4eb23a(0x432)](_0x20337d,_0x23cc93,_0x1e5225){const _0x42d044=_0x4eb23a,{select:_0x4a498a,..._0x19c026}=_0x411874(_0x1e5225);let _0x1f0173={..._0x19c026};const _0xf1f09a=_0x1f0173[_0x42d044(0x290)];if(_0xf1f09a&&!Array[_0x42d044(0x562)](_0xf1f09a)&&typeof _0xf1f09a==='object'&&_0xf1f09a[_0x42d044(0x1c0)]){const {fields:_0x57df8e,prefix:_0x1b69d4,start:_0x286fdd,end:_0x59512d}=_0xf1f09a;_0x1f0173={..._0x1f0173,'index':_0x57df8e,'prefix':_0x1b69d4??_0x1f0173['prefix'],'startIndex':_0x286fdd??_0x1f0173[_0x42d044(0x26e)],'endIndex':_0x59512d??_0x1f0173['endIndex']};}const _0x462266=await this[_0x42d044(0x861)][_0x42d044(0x2f8)](_0x42d044(0x242),null,_0x42d044(0x864),[this[_0x42d044(0x761)],_0x20337d,_0x23cc93,_0x1f0173],![]),_0x121731=typeof _0x1e5225[_0x42d044(0x484)]==='function'?_0x1e5225[_0x42d044(0x484)]:null;if(!_0x121731)return _0x462266;return _0x462266[_0x42d044(0x8a1)](_0x5e91ee=>{const {score:_0x49eec7,ftsScore:_0xe227aa,numTerms:_0x1233ad,maxScore:_0x1afd63,vectorScore:_0x26689f,chunkHash:_0x253c7f,chunk:_0xd24cb5,..._0x4c89e1}=_0x5e91ee,_0x5421f3=_0x121731(_0x4c89e1);for(const [_0x2652dc,_0x17b05f]of Object['entries']({'score':_0x49eec7,'ftsScore':_0xe227aa,'numTerms':_0x1233ad,'maxScore':_0x1afd63,'vectorScore':_0x26689f,'chunkHash':_0x253c7f,'chunk':_0xd24cb5}))if(_0x17b05f!==undefined)_0x5421f3[_0x2652dc]=_0x17b05f;return _0x5421f3;});}[_0x4eb23a(0x2e4)](_0x4d491e,_0x4b890c,_0x13ac2b={}){const _0xa62bae=_0x4eb23a;let _0x15b90c=this['_n'](_0xa62bae(0x2e4),[_0x4d491e,_0x4b890c,_0x411874(_0x13ac2b)]);if(typeof _0x13ac2b['select']==='function')_0x15b90c=_0x15b90c['map'](_0x13ac2b['select']);return _0x15b90c;}[_0x4eb23a(0x50f)](_0xed779d=null,_0x1c651b={}){const _0x3a0172=_0x4eb23a;return this['_n'](_0x3a0172(0x50f),[_0xed779d]);}[_0x4eb23a(0x755)](_0x17a7ad=null,_0x383329=0x0,_0x41c4df=Number[_0x4eb23a(0x4db)],_0x3d50a3={}){const _0x598f00=_0x4eb23a,_0x328898=_0x311f25(_0x3d50a3);if(_0x3d50a3&&_0x3d50a3[_0x598f00(0x3c9)])return _0x33cb3c(this['_n'](_0x598f00(0x755),[_0x17a7ad,_0x383329,_0x41c4df,_0x328898]));return this[_0x598f00(0x2c6)](_0x598f00(0x755),'getChanges',_0x159bc4=>[_0x17a7ad,_0x383329,_0x41c4df,{..._0x328898,..._0x159bc4}],_0x3d50a3);}['count'](_0x2c66cd){const _0x3b1840=_0x4eb23a;if(Array[_0x3b1840(0x562)](_0x2c66cd))return _0x2c66cd[_0x3b1840(0x2ea)];let _0x47b93c=0x0;for(const _0x1bf1e1 of _0x2c66cd)_0x47b93c++;return _0x47b93c;}*[_0x4eb23a(0x3a8)](_0x77dcac){yield*_0x77dcac;}[_0x4eb23a(0x363)](){const _0x280846=_0x4eb23a;return requireOkdbHlc()[_0x280846(0x3d9)](this[_0x280846(0x4ed)]);}get[_0x4eb23a(0x460)](){const _0x564874=_0x4eb23a,_0x266805=this[_0x564874(0x861)]['_isOpen']?this['okdb'][_0x564874(0x849)]('db',null,_0x564874(0x5e3),[this[_0x564874(0x761)]],![]):null;if(!_0x266805)return null;if(this[_0x564874(0x411)]===_0x266805[_0x564874(0x53b)])return null;this[_0x564874(0x84f)]=this[_0x564874(0x84f)]||new Map();let _0x21e4cb=this['_timerObjs'][_0x564874(0x67f)](_0x266805[_0x564874(0x53b)]);if(!_0x21e4cb){const _0x457cd7=this;_0x21e4cb={'ref'(){},'unref'(){},'hasRef':()=>![],'gen':_0x266805[_0x564874(0x53b)],'at':_0x266805['at'],'target':_0x266805['target'],get '_destroyed'(){const _0x523771=_0x564874,_0x2a5cf3=_0x457cd7[_0x523771(0x861)]['_isOpen']?_0x457cd7[_0x523771(0x861)][_0x523771(0x849)]('db',null,_0x523771(0x5e3),[_0x457cd7['name']],![]):null;return!_0x2a5cf3||_0x2a5cf3[_0x523771(0x53b)]!==this[_0x523771(0x53b)]||_0x457cd7[_0x523771(0x411)]===this[_0x523771(0x53b)];}},this[_0x564874(0x84f)][_0x564874(0x5e7)](_0x266805[_0x564874(0x53b)],_0x21e4cb);}return _0x21e4cb;}[_0x4eb23a(0x749)](){const _0x184d67=_0x4eb23a,_0x34e708=this[_0x184d67(0x861)][_0x184d67(0x849)]('db',null,_0x184d67(0x5e3),[this[_0x184d67(0x761)]],![]);if(_0x34e708)this[_0x184d67(0x411)]=_0x34e708[_0x184d67(0x53b)];}get[_0x4eb23a(0x48d)](){const _0x4f157c=_0x4eb23a,_0xf3d739=this[_0x4f157c(0x861)][_0x4f157c(0x849)]('db',null,_0x4f157c(0x5e3),[this[_0x4f157c(0x761)]],![]);return _0xf3d739?_0xf3d739[_0x4f157c(0x744)]:null;}get[_0x4eb23a(0x542)](){const _0x59ee42=_0x4eb23a;return this[_0x59ee42(0x861)][_0x59ee42(0x849)]('db',null,_0x59ee42(0x26d),[this[_0x59ee42(0x761)]],![])?{'ref'(){},'unref'(){}}:null;}[_0x4eb23a(0x71a)](){const _0x2f3df5=_0x4eb23a;this[_0x2f3df5(0x861)][_0x2f3df5(0x849)]('db',null,_0x2f3df5(0x320),[this[_0x2f3df5(0x761)]],![]);}[_0x4eb23a(0x3dd)](){const _0x4a7ea8=_0x4eb23a;this['okdb'][_0x4a7ea8(0x849)]('db',null,_0x4a7ea8(0x704),[this[_0x4a7ea8(0x761)]],![]);}get['_autoCompact'](){const _0x45f08d=_0x4eb23a,_0x59a0fd=(_0x2ef02b,_0x2e8b2d)=>this[_0x45f08d(0x861)][_0x45f08d(0x849)]('db',null,_0x2ef02b,[this[_0x45f08d(0x761)],..._0x2e8b2d],![]),_0x2ce1dd=Object[_0x45f08d(0x73c)](_0x59a0fd(_0x45f08d(0x1ce),[])||{}),_0x294b51={};for(const _0xbedb88 of _0x2ce1dd)Object[_0x45f08d(0x245)](_0x294b51,_0xbedb88,{'enumerable':!![],'get':()=>_0x59a0fd(_0x45f08d(0x1ce),[])?.[_0xbedb88],'set':_0x1b0fa8=>{const _0x9115b0=_0x45f08d;_0x59a0fd(_0x9115b0(0x59f),[_0xbedb88,_0x1b0fa8]);}});return _0x294b51;}get['_hlc'](){const _0x175c89=_0x4eb23a;return this['_n'](_0x175c89(0x6f7),[]);}[_0x4eb23a(0x534)](_0x5cc18f,_0x1417c3){const _0x452665=_0x4eb23a;return require$$16[_0x452665(0x51b)](_0x5cc18f,_0x1417c3);}async[_0x4eb23a(0x454)](_0x2387e2,_0x25a11c){const _0x14bcc4=_0x4eb23a;return this[_0x14bcc4(0x865)](this['_n'](_0x14bcc4(0x454),[_0x2387e2]));}['hasType'](_0x39cb5f){const _0x16e016=_0x4eb23a;return this['_n'](_0x16e016(0x610),[_0x39cb5f]);}['listTypes'](){const _0x594cd4=_0x4eb23a;return this['_n'](_0x594cd4(0x32d),[]);}async['dropType'](_0x34ac12,_0xfe5eb2){const _0x2aadf0=_0x4eb23a;return this[_0x2aadf0(0x865)](this['_n'](_0x2aadf0(0x203),[_0x34ac12]));}async[_0x4eb23a(0x6b3)](_0xe5ce59,_0x5a7511){const _0x27b79a=_0x4eb23a,{timestamp:_0x2187df,indexes:indexes=[]}=_0x3d50ca(_0x5a7511);return this['_wsettle'](this['_n'](_0x27b79a(0x6b3),[_0xe5ce59,{'indexes':indexes}]));}async['ensure'](_0x1eae54){const _0x12408d=_0x4eb23a,{type:_0x3976b9,indexes:indexes=[],fts:fts=[],views:views=[],schema:schema=null}=_0x3d50ca(_0x1eae54,_0x12408d(0x669));if(!_0x3976b9)throw new Error(_0x12408d(0x6a0));await this[_0x12408d(0x6b3)](_0x3976b9,{'indexes':indexes});for(const _0x512fa8 of fts){const {name:_0x5a58c8,fields:_0x41cf71,..._0x3ee44c}=_0x512fa8;if(!_0x5a58c8||!_0x41cf71)throw new Error(_0x12408d(0x75c));await this[_0x12408d(0x861)][_0x12408d(0x370)][_0x12408d(0x8d5)](_0x3976b9,_0x5a58c8,{'fields':_0x41cf71,..._0x3ee44c},this);}for(const _0x75c809 of views){const {name:_0x4e4d60,definition:_0xc47cb7}=_0x75c809;if(!_0x4e4d60||!_0xc47cb7)throw new Error('ensure:\x20view\x20entry\x20missing\x20name\x20or\x20definition');if(!await this[_0x12408d(0x487)]['getDefinition'](_0x4e4d60))await this[_0x12408d(0x487)][_0x12408d(0x812)](_0x4e4d60,_0xc47cb7);}if(schema)await this[_0x12408d(0x64a)](_0x3976b9,schema);}async[_0x4eb23a(0x673)](_0x2e854c,_0x4c87ad,_0x14c09e){const _0x4c544c=_0x4eb23a,_0x2d4b14=this['_n']('registerIndexDeferred',[_0x2e854c,_0x4c87ad,typeof _0x14c09e===_0x4c544c(0x6ea)?_0x14c09e:{}]);if(!_0x2d4b14)return this['_wsettle'](undefined);const _0x33bcc0=this['_n']('resetIndexBegin',[_0x2e854c,_0x4c87ad,!![]]);if(_0x33bcc0===undefined)return this[_0x4c544c(0x865)](undefined);return this[_0x4c544c(0x865)](await this['_indexBuild'](_0x2e854c,_0x4c87ad,_0x33bcc0));}async[_0x4eb23a(0x7a1)](_0x5b6e59,_0x3254fb,_0x5201e6){const _0x3c997c=_0x4eb23a,_0x12d786=_0x5b6e59+'@'+[][_0x3c997c(0x4d6)](_0x3254fb)[_0x3c997c(0x47b)]('~');if(!this[_0x3c997c(0x254)])this[_0x3c997c(0x254)]=new Map();const _0x1c1e91=this['_indexBuilds'][_0x3c997c(0x67f)](_0x12d786);if(_0x1c1e91)return _0x1c1e91;const _0x4896d3=((async()=>{const _0x1802a9=_0x3c997c;do await new Promise(_0x2eb24c=>setImmediate(_0x2eb24c));while(!this['_n'](_0x1802a9(0x798),[_0x5b6e59,_0x3254fb,_0x5201e6,!![]]));})());this[_0x3c997c(0x254)][_0x3c997c(0x5e7)](_0x12d786,_0x4896d3);try{return await _0x4896d3;}finally{this[_0x3c997c(0x254)][_0x3c997c(0x597)](_0x12d786);}}async[_0x4eb23a(0x20b)](_0xdf1b84,_0xf0329e,_0x5c26ca){const _0xa3af80=_0x4eb23a;return this[_0xa3af80(0x865)](this['_n'](_0xa3af80(0x20b),[_0xdf1b84,_0xf0329e]));}async[_0x4eb23a(0x8d0)](_0x4e96d7,_0x1086b7,_0x365821){const _0x25e684=_0x4eb23a,_0x114f40=this[_0x25e684(0x254)]&&this[_0x25e684(0x254)][_0x25e684(0x67f)](_0x4e96d7+'@'+[][_0x25e684(0x4d6)](_0x1086b7)[_0x25e684(0x47b)]('~'));if(_0x114f40)return _0x114f40;const _0x4150a1=this['_n'](_0x25e684(0x6b4),[_0x4e96d7,_0x1086b7,_0x365821]);if(_0x4150a1===undefined)return;return await new Promise(_0x262e3a=>setImmediate(_0x262e3a)),this[_0x25e684(0x865)](await this['_indexBuild'](_0x4e96d7,_0x1086b7,_0x4150a1));}['hasIndex'](_0x46890a,_0x46129f){const _0x5f2634=_0x4eb23a;return this['_n'](_0x5f2634(0x2b3),[_0x46890a,_0x46129f]);}[_0x4eb23a(0x79f)](_0x5e24f4,_0x3804d9){const _0x122325=_0x4eb23a;return this['_n'](_0x122325(0x79f),[_0x5e24f4,_0x3804d9]);}async[_0x4eb23a(0x380)](_0x32bbc9,_0x227151){const _0x5058ff=_0x4eb23a;if(this['_n'](_0x5058ff(0x79f),[_0x32bbc9,_0x227151])===_0x5058ff(0x60e))return!![];let _0x3a2f8d=0xa;for(;;){await new Promise(_0x401f27=>setTimeout(_0x401f27,_0x3a2f8d));if(!this[_0x5058ff(0x861)][_0x5058ff(0x70a)]||this[_0x5058ff(0x5ef)])return![];let _0x3346a8;try{_0x3346a8=this['_n'](_0x5058ff(0x2df),[_0x32bbc9,Array[_0x5058ff(0x562)](_0x227151)?_0x227151[_0x5058ff(0x47b)]('~'):String(_0x227151)[_0x5058ff(0x6b5)](',')[_0x5058ff(0x47b)]('~')]);}catch{return![];}const _0x323074=_0x3346a8&&_0x3346a8[_0x5058ff(0x71d)];if(_0x323074==='ready')return!![];if(_0x323074===undefined)return![];_0x3a2f8d=Math[_0x5058ff(0x8b1)](_0x3a2f8d*0x2,0xfa);}}['getIndexMeta'](_0x2b81c7,_0x45dfa2){const _0x394eab=_0x4eb23a;return this['_n'](_0x394eab(0x2df),[_0x2b81c7,_0x45dfa2])??null;}[_0x4eb23a(0x2d0)](_0x5e2bf7,_0x179dea){const _0x54486b=_0x4eb23a;return this['_n'](_0x54486b(0x2d0),[_0x5e2bf7,_0x179dea]);}[_0x4eb23a(0x3ac)](_0xe9a761,_0x4339a3){const _0x2a1462=_0x4eb23a;return this['_n'](_0x2a1462(0x3ac),[_0xe9a761,_0x4339a3]);}[_0x4eb23a(0x725)](_0x27e610,_0x16f522,_0x558e2e){return this['_n']('getUniqueViolation',[_0x27e610,_0x16f522,_0x558e2e])??null;}[_0x4eb23a(0x793)](_0x237072){const _0x2de759=_0x4eb23a;return this['_n'](_0x2de759(0x793),[_0x237072])??null;}async['setSchema'](_0x4a7a1b,_0x309e60){const _0x45f724=_0x4eb23a;return this['_wsettle'](this['_n'](_0x45f724(0x64a),[_0x4a7a1b,_0x309e60]));}async[_0x4eb23a(0x40a)](_0x4ddf0d){const _0x2c6b81=_0x4eb23a;return this[_0x2c6b81(0x865)](this['_n'](_0x2c6b81(0x40a),[_0x4ddf0d]));}[_0x4eb23a(0x2a8)](_0x141357,_0x20fe2e){const _0x220243=_0x4eb23a;return this['_n'](_0x220243(0x2a8),[_0x141357,_0x20fe2e])??null;}[_0x4eb23a(0x5ed)](_0x5b34da){const _0x32c767=_0x4eb23a;return this['_n'](_0x32c767(0x5ed),[_0x5b34da]);}[_0x4eb23a(0x1c3)](_0x17438a,_0xd1059f,_0x573295){const _0x248756=_0x4eb23a;return this['_n'](_0x248756(0x1c3),[_0x17438a,_0xd1059f,_0x573295])??null;}[_0x4eb23a(0x70d)](_0x329981){const _0x4e547f=_0x4eb23a;return this['_n'](_0x4e547f(0x70d),[_0x329981]);}async[_0x4eb23a(0x8af)](_0x408830,_0x4b21ff,_0x276ec2){const _0x244461=_0x4eb23a;return this[_0x244461(0x865)](this['_n']('setTTL',[_0x408830,_0x4b21ff,_0x276ec2]));}[_0x4eb23a(0x2d9)](_0x5df13c,_0x3b15b5){const _0x494531=_0x4eb23a;return this['_n'](_0x494531(0x2d9),[_0x5df13c,_0x3b15b5]);}async[_0x4eb23a(0x4df)](_0x32e059,_0x263d34){const _0x355129=_0x4eb23a;return this[_0x355129(0x865)](this['_n'](_0x355129(0x4df),[_0x32e059,_0x263d34]));}async[_0x4eb23a(0x391)](_0x4027d5){const _0x28e5bd=_0x4eb23a;return this['_n'](_0x28e5bd(0x391),[_0x4027d5]);}['listTTL'](_0x440e19={}){const _0x25b1cd=_0x4eb23a;return this['_n'](_0x25b1cd(0x1a6),[_0x440e19]);}[_0x4eb23a(0x611)](_0x1706cd){const _0x54622c=_0x4eb23a;return this['_n'](_0x54622c(0x611),[_0x1706cd]);}async[_0x4eb23a(0x870)](_0x432c6b,_0xa6cbdd){const _0x555818=_0x4eb23a;return this[_0x555818(0x865)](this['_n'](_0x555818(0x870),[_0x432c6b,_0xa6cbdd]));}[_0x4eb23a(0x40d)](_0x43677c){const _0xcd5a0=_0x4eb23a;return this['_n'](_0xcd5a0(0x40d),[_0x43677c]);}async['clearDefaultTTL'](_0x4db0d5){const _0xd70a4=_0x4eb23a;return this[_0xd70a4(0x865)](this['_n']('clearDefaultTTL',[_0x4db0d5]));}async['resolveField'](_0x543fa1,_0x34bf16,_0xa00cac,_0x2f8aa8){const _0x4bd92b=_0x4eb23a,{batch:batch=null,batchSize:_0x364ade}=_0x3d50ca(_0x2f8aa8);if(typeof _0x543fa1!==_0x4bd92b(0x431)||!_0x543fa1)throw new _0x1e4ad3(_0x4bd92b(0x7ce),_0x4bd92b(0x33c));if(typeof _0x34bf16!==_0x4bd92b(0x431)||!_0x34bf16)throw new _0x1e4ad3(_0x4bd92b(0x267),_0x4bd92b(0x33c));if(_0xa00cac!=null&&typeof _0xa00cac!==_0x4bd92b(0x4d1))throw new _0x1e4ad3(_0x4bd92b(0x485),'BAD_PARAM');if(batch!=null&&typeof batch!==_0x4bd92b(0x4d1))throw new _0x1e4ad3(_0x4bd92b(0x7c6),_0x4bd92b(0x33c));if(!_0xa00cac&&!batch)throw new _0x1e4ad3('resolveField:\x20a\x20resolver\x20or\x20options.batch\x20is\x20required','BAD_PARAM');if(_0x364ade!==undefined&&!(Number[_0x4bd92b(0x209)](_0x364ade)&&_0x364ade>0x0))throw new _0x1e4ad3('resolveField:\x20options.batchSize\x20must\x20be\x20a\x20positive\x20integer',_0x4bd92b(0x33c));const _0xace0d1=batch?async _0xd5a864=>(await batch(_0xd5a864))['map'](_0x284c09=>_0x284c09 instanceof Error?{'__error':!![],'message':_0x284c09[_0x4bd92b(0x2b8)]}:_0x284c09):null,_0x57df4b=_0x409838(this,_0x543fa1,_0x34bf16),_0x4f9cc0=this['_n'](_0x4bd92b(0x2cb),[_0x543fa1,_0x34bf16,_0xa00cac?(_0x3b51fa,_0x2e5c09)=>_0x57df4b(_0xa00cac,[_0x3b51fa,_0x2e5c09]):null,{'batch':_0xace0d1?_0xcc78bf=>_0x57df4b(_0xace0d1,[_0xcc78bf]):null,'batchSize':_0x364ade}]);return()=>this['_n']('removeResolver',[_0x4f9cc0]);}async[_0x4eb23a(0x2c2)](_0x4b5495,_0x5e56a4){return this['_n']('unresolveField',[_0x4b5495,_0x5e56a4]);}['resolvedFields'](_0x2397cf){return this['_n']('resolvedFields',[_0x2397cf]);}async[_0x4eb23a(0x3b6)](_0x3100d7,_0x5532bc,_0x422a0a,_0x346459){const _0xd32594=_0x4eb23a;return this[_0xd32594(0x861)][_0xd32594(0x2f8)](_0xd32594(0x374),this[_0xd32594(0x761)],_0xd32594(0x3b6),[_0x3100d7,_0x5532bc,_0x422a0a,_0x346459],![]);}async['readFieldMany'](_0x3358f4,_0x2a4706,_0x513a75){const _0x67e5aa=_0x4eb23a;return this[_0x67e5aa(0x861)][_0x67e5aa(0x2f8)]('env',this[_0x67e5aa(0x761)],_0x67e5aa(0x764),[_0x3358f4,_0x2a4706,_0x513a75],![]);}[_0x4eb23a(0x48e)](){}['ftsQuery'](_0x14104e,_0x22432f,_0x520847,_0x18058a={},_0x27f47f={}){const _0x416005=_0x4eb23a;return this[_0x416005(0x861)][_0x416005(0x849)](_0x416005(0x370),null,'ftsQuery',[_0x14104e,_0x22432f,_0x520847,_0x18058a,_0x27f47f,this[_0x416005(0x761)]],![]);}get['fts'](){const _0x4cf0ff=_0x4eb23a;return this[_0x4cf0ff(0x861)][_0x4cf0ff(0x370)];}[_0x4eb23a(0x8ac)](){const _0x1a4a2e=_0x4eb23a;return this['okdb']['_call'](_0x1a4a2e(0x374),this[_0x1a4a2e(0x761)],'getResolvedOptions',[],![]);}['diag'](){const _0x8fc3ee=_0x4eb23a;return this[_0x8fc3ee(0x861)][_0x8fc3ee(0x2e2)]();}[_0x4eb23a(0x463)](){const _0x2a778b=_0x4eb23a;return this[_0x2a778b(0x861)][_0x2a778b(0x849)](_0x2a778b(0x374),this['name'],_0x2a778b(0x463),[],![]);}[_0x4eb23a(0x1f3)](){}get[_0x4eb23a(0x88b)](){const _0x10e0c1=_0x4eb23a;return this[_0x10e0c1(0x371)]||(this[_0x10e0c1(0x371)]=new(requireLock())[(_0x10e0c1(0x8b7))](this[_0x10e0c1(0x861)],this[_0x10e0c1(0x761)],_0x10e0c1(0x374)));}['storageStats'](){const _0x3884ca=_0x4eb23a;return this[_0x3884ca(0x861)][_0x3884ca(0x849)](_0x3884ca(0x374),this[_0x3884ca(0x761)],_0x3884ca(0x29b),[],![]);}[_0x4eb23a(0x821)](_0x536fbf){this['_n']('registerType',[_0x536fbf]);}['_logChange'](_0x383629){this['_n']('logChange',[_0x383629]);}[_0x4eb23a(0x886)](){const _0x44021d=_0x4eb23a;return this['_n'](_0x44021d(0x8a9),[]);}['_ttlCompositeKey'](_0x397d9,_0x40c477){return _0x397d9+'\x09'+_0x40c477;}[_0x4eb23a(0x88e)](_0x527656){const _0x27cc03=_0x4eb23a,_0x5376b5=_0x527656[_0x27cc03(0x2e7)]('\x09');return{'type':_0x527656['slice'](0x0,_0x5376b5),'key':_0x527656['slice'](_0x5376b5+0x1)};}get[_0x4eb23a(0x396)](){const _0x373b48=_0x4eb23a;if(!this['_ttlState']()[_0x373b48(0x258)])return null;return this[_0x373b48(0x5c3)]||(this[_0x373b48(0x5c3)]=new _0x8fe6d5(this,_0x373b48(0x649)));}get[_0x4eb23a(0x6b6)](){const _0x27ee98=_0x4eb23a;if(!this['_ttlState']()[_0x27ee98(0x258)])return null;return this[_0x27ee98(0x5e5)]||(this['__ttlByExpiry']=new _0x8fe6d5(this,'~ttl:expiry',{'dupSort':!![]}));}['_setTTLEntry'](_0x40ff35,_0x3453dd,_0x51d87a){this['_n']('ttlSetEntry',[_0x40ff35,_0x3453dd,_0x51d87a]);}[_0x4eb23a(0x712)](_0x511fe3,_0x2f3ee7){const _0x1f409c=_0x4eb23a,_0x414eff=this[_0x1f409c(0x396)]?.['get'](this[_0x1f409c(0x6f1)](_0x511fe3,_0x2f3ee7));return _0x414eff!=null&&_0x414eff<=Date[_0x1f409c(0x363)]();}get[_0x4eb23a(0x8c3)](){const _0x2fb6f8=_0x4eb23a;return this['_ttlState']()[_0x2fb6f8(0x789)]??null;}get['_ttlBackoffUntil'](){const _0x43e4ed=_0x4eb23a;return this['_ttlState']()[_0x43e4ed(0x1f2)]||0x0;}get[_0x4eb23a(0x767)](){return![];}['_scheduleTTLSweep'](){}async['_rebuild'](_0x1f1167,_0x1d77e0){const _0x3189d4=_0x4eb23a;if(this[_0x3189d4(0x30a)]){const {OKDBError:_0x257903}=requireErrors();throw new _0x257903(_0x3189d4(0x614),_0x3189d4(0x273));}this[_0x3189d4(0x30a)]=!![];try{const _0x2def09={..._0x1d77e0||{},'repair':_0x1f1167===_0x3189d4(0x897)};this[_0x3189d4(0x861)][_0x3189d4(0x849)]('env',this[_0x3189d4(0x761)],_0x3189d4(0x853),[_0x2def09]);const _0x3cbbdf=this['okdb'][_0x3189d4(0x89b)];while(this[_0x3189d4(0x861)][_0x3189d4(0x849)](_0x3189d4(0x374),this[_0x3189d4(0x761)],_0x3189d4(0x696),[],![]))await _0x3cbbdf[_0x3189d4(0x63d)](0xfa);return this[_0x3189d4(0x861)][_0x3189d4(0x849)](_0x3189d4(0x374),this[_0x3189d4(0x761)],'takeCompactResult',[],![]);}finally{this[_0x3189d4(0x30a)]=![];}}async[_0x4eb23a(0x7a6)](_0x229b10={}){const _0x1c93da=_0x4eb23a;return this[_0x1c93da(0x806)](_0x1c93da(0x7a6),_0x229b10);}async[_0x4eb23a(0x897)](_0x10d99d={}){const _0x89485e=_0x4eb23a;return this['_rebuild'](_0x89485e(0x897),_0x10d99d);}}_0x553f3e[_0x4eb23a(0x6fe)]=_0x3fcb3a;function _0x2a40b5(_0x5b9c4d){const _0x2a97a4=_0x4eb23a;if(!_0x5b9c4d||typeof _0x5b9c4d!==_0x2a97a4(0x6ea))return![];for(const _0x5db41e of Object[_0x2a97a4(0x73c)](_0x5b9c4d)){const _0x38776f=_0x5b9c4d[_0x5db41e];if(_0x38776f&&typeof _0x38776f===_0x2a97a4(0x6ea)&&(_0x38776f[_0x2a97a4(0x6bf)]||_0x38776f[_0x2a97a4(0x5b7)]))return!![];}return![];}function _0x311f25(_0x57b33a){const _0x4d441b=_0x4eb23a;if(!_0x57b33a||typeof _0x57b33a!==_0x4d441b(0x6ea))return{};const _0x456dd3={};for(const _0xed6be1 of Object[_0x4d441b(0x73c)](_0x57b33a)){if(_0xed6be1===_0x4d441b(0x3c9)||_0xed6be1===_0x4d441b(0x51d))continue;_0x456dd3[_0xed6be1]=_0x57b33a[_0xed6be1];}return _0x456dd3;}function _0x411874(_0x4a1fb3){if(!_0x4a1fb3||typeof _0x4a1fb3!=='object')return{};const _0x576984={};for(const _0x44cd11 of Object['keys'](_0x4a1fb3)){if(typeof _0x4a1fb3[_0x44cd11]==='function')continue;_0x576984[_0x44cd11]=_0x4a1fb3[_0x44cd11];}return _0x576984;}return env={'OKDBEnv':_0x553f3e,'HIGH_SENTINEL':_0x3fcb3a},env;}var unsupported,hasRequiredUnsupported;function requireUnsupported(){if(hasRequiredUnsupported)return unsupported;hasRequiredUnsupported=0x1;const {NotImplementedNative:_0xdaf2ec}=requireErrors();function _0x26596f(_0x347747){const _0x3864be=_0x425da9=>{throw new _0xdaf2ec(_0x347747,_0x425da9);};return new Proxy(function(){},{'get'(_0x1a2d43,_0x25ec11){const _0x561534=_0x48c6;if(typeof _0x25ec11===_0x561534(0x1a7)||_0x25ec11===_0x561534(0x6f0)||_0x25ec11===_0x561534(0x5d4)||_0x25ec11===_0x561534(0x638))return undefined;if(_0x25ec11===_0x561534(0x3ba))return _0x347747;return(..._0x51361b)=>_0x3864be(_0x347747+'.'+String(_0x25ec11));},'apply'(){_0x3864be(_0x347747);},'set'(){return!![];}});}return unsupported={'notImplemented':_0x26596f},unsupported;}var http,hasRequiredHttp;function requireHttp(){const _0x41b3b8=_0x5b9a04;if(hasRequiredHttp)return http;hasRequiredHttp=0x1;function _0x176ebc(_0x1f02df,_0x31aea1={}){const _0x16905d=_0x48c6,_0x5d07d1=[];let _0x3352a9=![];_0x1f02df['endsWith']('/*')&&(_0x3352a9=!![],_0x1f02df=_0x1f02df[_0x16905d(0x4bb)](0x0,-0x2),_0x5d07d1[_0x16905d(0x66a)]('*'));let _0x6801f=_0x1f02df[_0x16905d(0x1ec)](/\/+$/,'')[_0x16905d(0x1ec)](/\[([^\]]*)\]/g,(_0x2d74ca,_0x462b84)=>{const _0x2f0acb=_0x16905d,_0x34cbfc=_0x462b84[_0x2f0acb(0x1ec)](/\/:(\w+)(?:=([^/\]\s]*))?/g,(_0x5b70f6,_0x1a57ea)=>{const _0x4ff319=_0x2f0acb;return _0x5d07d1[_0x4ff319(0x66a)](_0x1a57ea),_0x4ff319(0x64c);});return'(?:'+_0x34cbfc+')?';})['replace'](/\/:(\w+)/g,(_0x12fd08,_0x4d27a4)=>{const _0x4510b4=_0x16905d;return _0x5d07d1[_0x4510b4(0x66a)](_0x4d27a4),_0x4510b4(0x64c);});if(_0x6801f==='')_0x6801f='/';return{'keys':_0x5d07d1,'defaults':_0x31aea1||{},'wildcard':_0x3352a9,'regex':new RegExp('^'+_0x6801f+(_0x3352a9?_0x16905d(0x847):'')+'/?$')};}const _0x265f60=require$$0$3,{PassThrough:_0x2c35b5}=require$$1;function _0x259d59(_0x1dec6b){const _0x114a5e=_0x48c6,_0x4e91f0=_0x1dec6b[_0x114a5e(0x831)](':'),_0x5f30ec=_0x1dec6b['slice'](0x0,_0x4e91f0)[_0x114a5e(0x1ec)](/^\[|\]$/g,'');return{'address':_0x5f30ec,'family':_0x5f30ec[_0x114a5e(0x42a)](':')?'IPv6':_0x114a5e(0x6b7),'port':Number(_0x1dec6b['slice'](_0x4e91f0+0x1))};}class _0x4ee92d extends _0x265f60[_0x41b3b8(0x87f)]{constructor(_0x4dd9fb,_0x183175){const _0x496ee6=_0x41b3b8;super(),this[_0x496ee6(0x7d5)]=_0x4dd9fb,this[_0x496ee6(0x402)]=_0x259d59(_0x183175),this[_0x496ee6(0x871)]=!![],this[_0x496ee6(0x2a9)]=setInterval(()=>{},0x7fffffff);}get['listening'](){const _0x290067=_0x41b3b8;return this[_0x290067(0x3a3)];}set[_0x41b3b8(0x871)](_0x4d4403){const _0x2970f3=_0x41b3b8;this[_0x2970f3(0x3a3)]=_0x4d4403;}[_0x41b3b8(0x414)](){const _0x411ff5=_0x41b3b8;return this[_0x411ff5(0x871)]?{...this[_0x411ff5(0x402)]}:null;}[_0x41b3b8(0x478)](){const _0x461450=_0x41b3b8;if(this['_keepAlive'])clearInterval(this['_keepAlive']);this[_0x461450(0x2a9)]=null;}[_0x41b3b8(0x7ba)](_0x44aace){const _0x31451c=_0x41b3b8;this[_0x31451c(0x478)]();const _0x59650b=this[_0x31451c(0x7d5)][_0x31451c(0x7ba)]();if(_0x44aace)_0x59650b[_0x31451c(0x6f0)](()=>_0x44aace(),_0x44aace);return this;}[_0x41b3b8(0x621)](){const _0x21807f=_0x41b3b8;return this[_0x21807f(0x2a9)]?.['ref'](),this;}[_0x41b3b8(0x3bb)](){const _0x492dcf=_0x41b3b8;return this[_0x492dcf(0x2a9)]?.[_0x492dcf(0x3bb)](),this;}}class _0xd3d9ab{constructor(_0x1c07da){const _0x464cd3=_0x41b3b8;this[_0x464cd3(0x861)]=_0x1c07da,this[_0x464cd3(0x58b)]=[],this[_0x464cd3(0x45d)]={'cookieName':_0x464cd3(0x874)};}get[_0x41b3b8(0x8a5)](){return this['servers'][0x0]||null;}['_n'](_0x505b76,_0xd1b0fc=[]){const _0x154e87=_0x41b3b8;return this['okdb'][_0x154e87(0x2f8)](_0x154e87(0x64d),null,_0x505b76,_0xd1b0fc,!![]);}async[_0x41b3b8(0x451)](_0x3c3ebd,_0x14fc38,_0x58a1ad={},_0x34f352={}){let _0x4d4dd2=await this['_n']('handle',[_0x3c3ebd,_0x14fc38,_0x58a1ad,_0x34f352]),_0x4aa058=0x0;return _0x4d4dd2=await this['_settle'](_0x4d4dd2,_0x4aa058),_0x4d4dd2;}async[_0x41b3b8(0x280)](_0x40fecb,_0x6a8ea6){const _0x3c54e5=_0x41b3b8;while(_0x40fecb&&typeof _0x40fecb===_0x3c54e5(0x6ea)&&_0x40fecb[_0x3c54e5(0x38a)]!==undefined){await new Promise(_0x1f7b5f=>setTimeout(_0x1f7b5f,_0x6a8ea6<0x5?0x1:0x5)),_0x6a8ea6++,_0x40fecb=await this['_n'](_0x3c54e5(0x2e5),[_0x40fecb[_0x3c54e5(0x38a)]]);}if(_0x40fecb&&_0x40fecb['body']&&typeof _0x40fecb[_0x3c54e5(0x504)]==='object'&&_0x40fecb[_0x3c54e5(0x504)][_0x3c54e5(0x72c)]!==undefined)_0x40fecb[_0x3c54e5(0x504)]=this[_0x3c54e5(0x7d8)](_0x40fecb[_0x3c54e5(0x504)][_0x3c54e5(0x72c)]);return _0x40fecb;}[_0x41b3b8(0x7d8)](_0xe8c41c){const _0x1570fc=_0x41b3b8,_0x375714=new _0x2c35b5();let _0xdd3876=![];const _0x2a1fa6=()=>{const _0x552ab5=_0x48c6;if(_0xdd3876)return;_0xdd3876=!![],clearTimeout(_0x145a2b),setImmediate(()=>this[_0x552ab5(0x861)][_0x552ab5(0x70a)]&&this['okdb'][_0x552ab5(0x849)](_0x552ab5(0x64d),null,_0x552ab5(0x1fb),[_0xe8c41c],!![]));};let _0x145a2b=null;const _0x5b7ebc=()=>{const _0x5ab0a8=_0x48c6;if(_0xdd3876)return;let _0x341250;try{_0x341250=this[_0x5ab0a8(0x861)][_0x5ab0a8(0x849)](_0x5ab0a8(0x64d),null,_0x5ab0a8(0x83b),[_0xe8c41c],!![]);}catch{_0x341250={'chunks':[],'end':!![]};}for(const _0x14af32 of _0x341250['chunks'])_0x375714[_0x5ab0a8(0x727)](_0x14af32);if(_0x341250[_0x5ab0a8(0x3cb)]){_0xdd3876=!![],_0x375714[_0x5ab0a8(0x3cb)]();return;}_0x145a2b=setTimeout(_0x5b7ebc,_0x341250['chunks']['length']?0x0:0xa);};_0x375714['on'](_0x1570fc(0x7ba),_0x2a1fa6),_0x5b7ebc();if(!_0xdd3876)_0x5b7ebc();if(_0xdd3876)_0x375714[_0x1570fc(0x684)]();else{if(!_0x145a2b)_0x145a2b=setTimeout(_0x5b7ebc,0x0);}return _0x375714;}[_0x41b3b8(0x261)](_0x59ca3e,_0x48a0e3,_0x9fa996,_0x13b519={}){const _0x230ecf=_0x41b3b8;return this[_0x230ecf(0x861)]['_call']('http',null,'add',[_0x59ca3e,_0x48a0e3,_0x9fa996,_0x13b519,![]],!![]),this;}[_0x41b3b8(0x654)](_0x484c65,_0x3024e6,_0x588246,_0x960501={}){const _0x39c2d1=_0x41b3b8;return this['okdb']['_call'](_0x39c2d1(0x64d),null,'add',[_0x484c65,_0x3024e6,_0x588246,_0x960501,!![]],!![]),this;}[_0x41b3b8(0x6cd)](_0x549300,_0x575661){const _0x2cb3d7=_0x41b3b8,_0x1c2425=async _0x136dc5=>{const _0xcbf7a5=_0x48c6,_0x56be7f={'status':undefined,'headers':[],'hasBody':![],'body':undefined},_0x1205d6={'status'(_0x3b7a11){const _0x138e02=_0x48c6;return _0x56be7f[_0x138e02(0x71d)]=_0x3b7a11,_0x1205d6;},'setHeader'(_0x3b71af,_0x1c3ca1){const _0x5325b9=_0x48c6;_0x56be7f[_0x5325b9(0x5c0)][_0x5325b9(0x66a)]([_0x3b71af,_0x1c3ca1]);},'send'(_0x1a8c4b){const _0x12d063=_0x48c6;_0x56be7f['hasBody']=!![],_0x56be7f[_0x12d063(0x504)]=_0x1a8c4b;}};_0x136dc5[_0xcbf7a5(0x4d2)]={'remoteAddress':_0x136dc5[_0xcbf7a5(0x33a)]??null};const _0x1c1dc8=await _0x575661(_0x136dc5,_0x1205d6);return{'allowed':_0x1c1dc8!==![],..._0x56be7f};};this[_0x2cb3d7(0x861)][_0x2cb3d7(0x849)](_0x2cb3d7(0x64d),null,_0x2cb3d7(0x6cd),[_0x2a6110=>!!_0x549300(_0x2a6110),_0x1c2425],!![]);}[_0x41b3b8(0x577)](_0x1c2d3c){const _0x42a0d4=_0x41b3b8,_0x5a7a6d=async _0x5618de=>{const _0x28469a=_0x48c6,_0x3d2967={'status':undefined,'headers':[],'hasBody':![],'body':undefined};let _0x45e96f=![];const _0x363b0c={'status'(_0x3619d0){const _0x54abdb=_0x48c6;return _0x3d2967[_0x54abdb(0x71d)]=_0x3619d0,_0x363b0c;},'setHeader'(_0x3ae7c8,_0x108ca3){const _0x12c68e=_0x48c6;_0x3d2967[_0x12c68e(0x5c0)][_0x12c68e(0x66a)]([_0x3ae7c8,_0x108ca3]);},'send'(_0x175aab){const _0xd7e9d1=_0x48c6;_0x3d2967[_0xd7e9d1(0x397)]=!![],_0x3d2967[_0xd7e9d1(0x504)]=_0x175aab;}};return _0x5618de[_0x28469a(0x4d2)]={'remoteAddress':_0x5618de[_0x28469a(0x33a)]??null},await _0x1c2d3c(_0x5618de,_0x363b0c,async()=>{_0x45e96f=!![];}),{'allowed':_0x45e96f,..._0x3d2967};};return this['okdb'][_0x42a0d4(0x849)]('http',null,'use',[_0x5a7a6d],!![]),this;}get[_0x41b3b8(0x71e)](){const _0x3b619c=_0x41b3b8;return this[_0x3b619c(0x861)][_0x3b619c(0x849)](_0x3b619c(0x64d),null,'getMaxBodyBytes',[],![]);}set[_0x41b3b8(0x71e)](_0x42cbaa){const _0x67216d=_0x41b3b8;this[_0x67216d(0x861)][_0x67216d(0x849)](_0x67216d(0x64d),null,_0x67216d(0x515),[Number(_0x42cbaa)],![]);}['addSSE'](_0x582cc2,_0x2d1849,_0x2fdbff={}){const _0x2dddcc=_0x41b3b8,_0xf5ee54=new Map(),_0x45c82f=(_0x24b55c,_0x17de24)=>this[_0x2dddcc(0x861)][_0x2dddcc(0x849)](_0x2dddcc(0x64d),null,_0x24b55c,_0x17de24,![]),_0x303fea=_0x132b74=>{const _0x163229=_0x2dddcc,{connId:_0x97cc11}=_0x132b74;if(_0x132b74['cleanup']){const _0x5e6b4b=_0xf5ee54[_0x163229(0x67f)](_0x97cc11);_0xf5ee54[_0x163229(0x597)](_0x97cc11);if(typeof _0x5e6b4b===_0x163229(0x4d1))_0x5e6b4b();return;}const _0x551b91=(_0x4ca870,_0x3f44c5,_0x2f9f5c={})=>{try{_0x45c82f('sseSend',[_0x97cc11,_0x4ca870,_0x3f44c5,_0x2f9f5c]);}catch{}},_0x415e23=()=>{try{_0x45c82f('sseClose',[_0x97cc11]);}catch{}},_0x140485=(_0x2ab2a3,_0x3199b0)=>_0x45c82f('sseSetHeader',[_0x97cc11,String(_0x2ab2a3),String(_0x3199b0)]),_0x5aefc7={'auth':{'open':_0x132b74[_0x163229(0x8b0)],'isAuthenticated':_0x132b74[_0x163229(0x339)]}},_0x56e099=_0x2d1849({'send':_0x551b91,'close':_0x415e23,'params':_0x132b74[_0x163229(0x67c)]??{},'query':_0x132b74[_0x163229(0x827)]??{},'headers':_0x132b74[_0x163229(0x5c0)]??{},'context':_0x5aefc7,'setHeader':_0x140485});_0xf5ee54[_0x163229(0x5e7)](_0x97cc11,_0x56e099);};return this[_0x2dddcc(0x861)]['_call'](_0x2dddcc(0x64d),null,'addSSE',[_0x582cc2,_0x303fea,_0x2fdbff],!![]),this;}get[_0x41b3b8(0x295)](){return this['listRoutes']();}[_0x41b3b8(0x376)](){const _0x209239=_0x41b3b8;return this[_0x209239(0x861)][_0x209239(0x849)]('http',null,'listRoutes',[],![])['map'](_0x5772fc=>({..._0x5772fc,'matcher':_0x176ebc(_0x5772fc[_0x209239(0x38c)],_0x5772fc[_0x209239(0x666)])}));}[_0x41b3b8(0x1dc)](_0x2eb9df,_0x4d8209){const _0x2142d5=_0x41b3b8;return this[_0x2142d5(0x861)][_0x2142d5(0x849)](_0x2142d5(0x64d),null,_0x2142d5(0x1dc),[_0x2eb9df,_0x4d8209],![]);}[_0x41b3b8(0x38e)](_0x24beb5,_0x322de8={}){const _0x373514=_0x41b3b8;if(typeof _0x322de8===_0x373514(0x431)||Array[_0x373514(0x562)](_0x322de8))_0x322de8={'host':_0x322de8};_0x322de8=_0x322de8??{};if((Number(_0x322de8[_0x373514(0x5a6)])||0x0)>=0x1||_0x322de8[_0x373514(0x491)]!=null||_0x322de8[_0x373514(0x40e)]!=null){const _0x400f0f=new Error(_0x373514(0x529)+_0x373514(0x1c8)+_0x373514(0x6f2)+_0x373514(0x876));_0x400f0f['code']='HTTP_CLUSTER_REMOVED';throw _0x400f0f;}if(this[_0x373514(0x58b)][_0x373514(0x2ea)])throw new Error(_0x373514(0x8bf));const _0x28c0d4=_0x322de8[_0x373514(0x677)]==null?[undefined]:[][_0x373514(0x4d6)](_0x322de8[_0x373514(0x677)]);if(!_0x28c0d4[_0x373514(0x2ea)]||_0x28c0d4[_0x373514(0x23b)](_0x4407b2=>_0x4407b2!==undefined&&(typeof _0x4407b2!=='string'||!_0x4407b2))){const _0x32cbcf=new Error(_0x373514(0x4cd));_0x32cbcf['code']='BAD_HOST';throw _0x32cbcf;}const _0x4e1c08=require$$2[_0x373514(0x83a)]?{..._0x322de8,'reuseport':!![]}:_0x322de8,_0x55a5cc=this[_0x373514(0x861)]['_call'](_0x373514(0x64d),null,_0x373514(0x38e),[_0x24beb5,_0x4e1c08],!![]),_0xd22d8=_0x55a5cc[_0x373514(0x67e)]??_0x24beb5,_0x3498be=_0x322de8['host']==null?':'+_0xd22d8:_0x28c0d4[_0x373514(0x8a1)](_0x500612=>(_0x500612[_0x373514(0x42a)](':')?'['+_0x500612+']':_0x500612)+':'+_0xd22d8)[_0x373514(0x47b)](',\x20');try{this['okdb'][_0x373514(0x36b)][_0x373514(0x4a5)](_0x3498be);if(!require(_0x373514(0x236))[_0x373514(0x83a)])this['okdb'][_0x373514(0x36b)][_0x373514(0x6f3)]({'kind':_0x373514(0x88a),'listenAddr':_0x3498be});}catch{}this[_0x373514(0x58b)]=_0x55a5cc['addrs'][_0x373514(0x8a1)](_0x5425b6=>new _0x4ee92d(this,_0x5425b6));const _0x1182d6=this[_0x373514(0x58b)][0x0];return process[_0x373514(0x1fc)](()=>this[_0x373514(0x58b)][_0x373514(0x2a7)](_0x467623=>_0x467623[_0x373514(0x88d)]('listening'))),_0x1182d6;}async[_0x41b3b8(0x7ba)](_0x44f18f={}){const _0x10bc93=_0x41b3b8,_0x1d924b=this['servers'];this[_0x10bc93(0x58b)]=[];if(require$$2[_0x10bc93(0x83a)]&&!process[_0x10bc93(0x32f)]&&_0x44f18f[_0x10bc93(0x1f0)]==null)_0x44f18f={..._0x44f18f,'forceAfterMs':Infinity};if(_0x1d924b[_0x10bc93(0x2ea)]){const _0x611f15=_0x44f18f['forceAfterMs']===Infinity?Infinity:Number[_0x10bc93(0x545)](_0x44f18f[_0x10bc93(0x1f0)])?Math[_0x10bc93(0x885)](0x0,_0x44f18f['forceAfterMs']):0x3e8,_0x391e3a=Date['now']();while(this[_0x10bc93(0x861)]['_call'](_0x10bc93(0x64d),null,_0x10bc93(0x34a),[],!![])>0x0&&Date[_0x10bc93(0x363)]()-_0x391e3a<_0x611f15)await new Promise(_0xe39853=>setTimeout(_0xe39853,0x5));_0x44f18f={..._0x44f18f,'forceAfterMs':_0x611f15===Infinity?0x3e8:Math[_0x10bc93(0x885)](0x0,_0x611f15-(Date[_0x10bc93(0x363)]()-_0x391e3a))};}await this['_n'](_0x10bc93(0x7ba),[_0x44f18f]);for(const _0x4ae2dc of _0x1d924b){_0x4ae2dc[_0x10bc93(0x478)](),_0x4ae2dc[_0x10bc93(0x871)]=![],_0x4ae2dc[_0x10bc93(0x88d)](_0x10bc93(0x7ba));}}}return http={'OKDBHttp':_0xd3d9ab},http;}function _0x3d94(){const _0x25da8b=['_sub','resolveBackupDest','Algorithm\x20factory\x20must\x20return\x20an\x20object\x20with\x20','UNIQUE_CONSTRAINT','pauseAllAndDrain','processors','_subsV2','lockHeld','fts:drop','bus:drain','putSync','stack','boolean','3365590nKxmVS',':\x20not\x20implemented\x20in\x20the\x20native\x20build\x20yet','module','embed','releaseClaim','_makeLazyVectorAdapter','bootSyncedPipelines','parse','fetchJson','removeLink','SYSTEM_CLOCK_CHANGE','Cannot\x20set\x20enforce\x20schema\x20on\x20','_lookupAllByName','TXN_CLOSED','registerHandler','refreshThresholdMs','job_type.defaults.backoff_multiplier\x20must\x20be\x20number\x20>=\x201\x20or\x20null','from','action','getPeerAcks','durableMarkDone','bucketsDb','authorization','_afterDurable','ies','_reconcilePeer','createEmbedder','dropAll','completeJob','_resolveFilter','byteLength','summary','_rebuild','getCount','version','\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','nodeKey','Referenced\x20key\x20\x27','Invalid\x20onDelete\x20rule\x20\x27','ref:violation','must\x20be\x20an\x20object;\x20got\x20null','removes','view\x20\x22','__tokenSecret','create','\x27\x20already\x20registered','getFloat64','lastClock','_stopFor','isBootstrap','ctxLog','Plugin\x20\x27','registerExtractor','lmdb','handlerName','payload','isSetupMode','setDeltaLimit',':clockToChange','_registerType','detachConsole','workerState','_registrations','spki','dataView','query','__sync:peer_state','inclusiveEnd','process','_pokeListener','importFromFile','OKDBInvalidPrimaryKeyError','incoming','system:bus_state_change','algorithm\x20is\x20gone','lastIndexOf','pushEphemeral','pop','change','clearSync','empty\x20string','_feed','buildOwnRow','listLinks','isWorker','streamRead','dims','set_null','resetUnknownOptionsWarned','getLegacyCursor','job_type.defaults.max_tries\x20must\x20be\x20int\x20>=\x201\x20or\x20null','dropping','itemsDb','getEngine','actionCount','duplicate\x20bucket:\x20','INVALID_SCHEMA','(?:/(.*))?','$nin','_call','\x22\x20to\x20enable\x20it.','nidFor','processor:paused','cookies','_settleWaiters','_timerObjs','_tids','load','empty\x20array','compactBegin','resumeAllAfterDrain','find','registerAlgorithmFactory','setMaxListeners','drop','_started','exportToStream','\x27\x20does\x20not\x20exist\x20in\x20type\x20\x27','_store','getIndex','Can\x20not\x20serialize\x20key\x20of\x20type\x20','isBuffer','existing','okdb','role','encryption:key-changed','hybridQuery','_wsettle','clocks','\x20===\x204)\x0a\x09\x09\x09\x09','stream','writeBlob','@harperdb/extended-iterable:skip','backupRoot','_tokenSecret','~file:blob_status','_envWide','_envs','setDefaultTTL','listening','_push','__warned','okdb_session','FOREIGN_KEY_DELETE_RESTRICTED','okdb.http.listen(port)\x20in\x20each\x20worker.','prefix','defaultTTL','calculateDelta','flatMap','ms\x20p99=','\x20log\x20entr','bucket.refill_every\x20must\x20be\x20int\x20>=\x200','dirty','Server','filterSessionsForType','timeMachine','continueOnRecoverableError','value','has','max','_ttlState','payload_schema','_getPeerState','\x20>=\x200x80)\x20','standalone','locks','removed','emit','_ttlParseComposite','job_type.defaults.ttl\x20must\x20be\x20int\x20>=\x200\x20or\x20null','disableAll','_bootLog','ingest','processor','_run','crypto','job_type.defaults.buckets\x20must\x20be\x20array|null','repair','reconcile','storePayload','subarray','_pumper','reset','fromEntries','shift','markSnapshotComplete','\x22\x20must\x20have\x20a\x20start()\x20method','map','_writerWatchdogInterval','getSecurityNotices','item:create','server','_shouldApplyChange','_envSyncStop','Engine\x20driver\x20type\x20must\x20be\x20a\x20non-empty\x20string','ttlState','offset','storeGetDiffs','getResolvedOptions','\x20must\x20be\x20','relay:error','setTTL','authOpen','min','patchSelf','_update','SUB_ENV',':useReadTransaction','onDone','NativeLock','\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer','setPosition(p)\x20{\x20position\x20=\x20p\x20},','.\x20Add\x20a\x20license\x20that\x20includes\x20\x22','creating','okdb._openEnvLazy:\x20env\x20\x22','updated_at','FTS_READY_TIMEOUT','HTTP\x20server\x20already\x20running','attachFeed','mcp','loginSelect','_nextExpiry','streamByHash','$and','stateInfo','busEmit','_tickCallback','sha256','OKDBSchemaValidationError','isEnabled','wake','job_type.payload_schema.definition\x20must\x20be\x20object','createAndStartEngine','\x20must\x20be\x20number','resetIndex','changeEncryptionKey','proc','listAlgorithms','acquired','ensure','system:env-sync','isReader','types','_remove','INDEXER','pending','durability','feature','license:added','queue:done','drain','sections','STOPPING','ITEM_UPDATE','node:fs','application/octet-stream','listTTL','symbol','_formerOrigins','pipelines','~processes:cmd','_dedupeKey','autoCompact','backoff_multiplier','createSession','timerArmed','Feature\x20not\x20available\x20on\x20free\x20tier:\x20','retryFailed','error','_seen','OKDBUniqueConstraintError','stop','$elemMatch','_txnBuf','filter','sync','new','_deliver','\x22\x20is\x20not\x20allowed\x20(it\x20evaluates\x20code);\x20use\x20declarative\x20operators\x20instead','doesExist','getMeta','createEngine','fields','_sync','Transaction\x20already\x20closed','getRefViolation','embeddings:strategy:registered','view','\x20already\x20exists','abort','library\x20(okdb\x20node-model\x202.0).\x20For\x20multi-process\x20HTTP\x20serving\x20use\x20the\x20okdb\x20','lookupAllByName','mean','alg','ENGINE_DRIVER_ALREADY_REGISTERED','_create','autoCompactState','gc.','files.upload:\x20id','embeddings:indexer:flushed','data','patchDeclaration','queue:clear-done','search','_handles','applyChange','_handlePoke','localViewNames','describeAllTypesDetailed','repairBlobRefs','validateRouteInput','resolveData','priority','okdb-','INVALID_TYPE_NAME','_writeBlob','job.','job.bucket_tokens\x20must\x20be\x20int\x20>=1','_info','admission','useReadTransaction\x20read\x20view\x20expired:\x20the\x20snapshot\x20was\x20released\x20at\x20the\x20first\x20await/turn\x20','createSearch','key','no\x20write\x20has\x20landed.\x20Writes/commit\x20are\x20unaffected.','processor:ready','onUndo','replace','_quantum','child','_detachConsole','forceAfterMs','_features','backoffUntil','refreshReadTxn','_np','Blob\x20not\x20found:\x20','bucket\x20must\x20be\x20object','_rootDb','encoder','_ackDb','bus:poke','streamClose','nextTick','errors','REMOVE','node','__logsDb','.\x20Valid:\x20','geoConfig','dropType','~emb:models',':\x20key\x20[','INDEXER_DOC_FAILED','_nodePrivateKey','vecRemove','isInteger','_claimGated','dropIndex','records','_lookupByTokenHash','stor','setJobTypeSchema','queue:clear-progress','prevDb','stringify','schema:drop','job.idempotency_key\x20must\x20be\x20string|null','debug','number','_reconcileDesired','reduce','_begin','reconcilePeer','_nm','args','checkSignals','engine','getGcHorizon','job.priority\x20must\x20be\x20int','_ensureEnv','claimed','_asArray','registerTarget','vectorStoreStats','regInfo','_baselines','failures','openDB','createWriteStream','vector-search\x20engine\x20not\x20running:\x20\x22','hook','continueIteration','context','~queue_jobs','drainJobType','job_type.defaults\x20must\x20be\x20object|null','_OPTION_HINTS','_lock','__blobStatusDb','encryptionKey','node:cluster','_cmd','1036648ziiHKi','Native','job_type.defaults.retry_delay\x20must\x20be\x20int\x20>=\x200\x20or\x20null','some','getTemplate','exportBuf','setInt32','unique:violation','_durableIndexerStats','SEARCH','embeddings','sweepExpired','\x27\x20is\x20already\x20registered','defineProperty','\x20references\x20','time-machine:','~processes','prefetch','_report','logCap','_listPeers','$options','durableDocs','durableMarkFail','commit','EMBEDDER','resumeOpts','resolve','_indexBuilds','write\x20batch:\x20missing\x20result','_reconcile','granId','enabled','importBlobs','setKick','_handlePending','SKIP','isTypeEmpty','existsSync','removeBucket','embedder','add','_debounceTimer','job_type.defaults.priority\x20must\x20be\x20int\x20or\x20null','_initialize','processRest()','setMode','resolveField:\x20field\x20required','_native','isRunning','$not','upsertLink','\x27\x20doesn\x27t\x20exist','autoCompactTimerArmed','startIndex','job.tag\x20must\x20be\x20string|null','removeJob','nodeKeys','there\x20is\x20no\x20`http`\x20option\x20—\x20the\x20HTTP\x20server\x20exists\x20only\x20when\x20db.http.listen(port)\x20is\x20called','REBUILD_IN_PROGRESS','job_type.payload_schema.enforce\x20must\x20be\x20boolean','maxExtra','cascade','~system','let\x20position;\x20let\x20readString\x20=\x20','_meta','durableClock','formerOrigins','_searchWithScores','each\x20process()\x20entry\x20requires\x20a\x20non-empty\x20`type`','_clearTTL','processor:resumed','_settle','fetchRemoteDelta','taken-over','Engine\x20template\x20kind\x20must\x20be\x20\x22engine\x22\x20or\x20\x22pipeline\x22:\x20','_subsV2Obj','OKDBError','areIndexesReady',':txnRange','dropped','cause','handleError','createWorker','Unknown\x20OKDB\x20transaction\x20error','interest','searchDocs','\x22\x20tokens\x20must\x20be\x20>=\x201','index','running','transactionSync','_isLoopbackIp','T_INTEREST','routes','byIndex','settledTickets','isWriter','_localViews','useVersions','storageStats','ctrl','description','flushQuantum','removeEnvironment','ENGINE_INVALID_TEMPLATE','_rawTxnBuf','syncLock','registerEmbedderFactory','bucket.id\x20must\x20be\x20non-empty\x20string','ONLINE','_dupArg','forEach','getViolation','_keepAlive','catch',',\x20source)\x0a\x09\x09}\x20else\x20{\x0a\x09\x09\x09if\x20(','item:update','async','_rbuf','restart','allSettled','removeJobLogsAfterCommit','vector','hasIndex','ctxHeartbeat','clearFailed','_low','subsBuilt','message','reducers','takeBuildResult','_waitNative','getPosition()\x20{\x20return\x20position\x20},','syncBlobs','enable','_status','origin','_durableEngineDoc','unresolveField','awaitIdle','_refIndexDb','Plugin\x20name\x20\x27','_lazyPinned','materializer','\x22\x20was\x20removed\x20while\x20it\x20was\x20being\x20built','_isFar','setClaiming','resolveField','pause','6545ldDvVz','resetView','patch','getUniqueViolations','claim_id','$or','job.status_message\x20must\x20be\x20string|null','timestamp','_ts','\x20was\x20removed\x20in\x20okdb\x202.0.\x20Use\x20processors:true\x20for\x20plain\x20lease\x20participation.\x20See\x20docs/upgrade-2.0.md.','createPipeline','\x20documents\x20fail\x20validation','getTTL','returnRecoverableErrors','fail','near','$gt','readTransaction','getIndexMeta','started','ctxEmit','diag','queue:retry','geoQuery','handleResult','removeJobTypeSchema','indexOf','closeSession','peers','length','_build','1449732nGCHBQ','runDrop','issueToken','registerQuantum','lastError','pauseJobType','trunc','_settleRead','initialize','getKeys','indexContent','aborted','_callMacro','TXN_START','backup','requires','algorithm\x20has\x20no\x20method\x20','DONE','paused','writerWatchdog','111FFPuVr','getJobLogs','processorsStatus','OKDBSchemaCollectionError','json','_setKey','subscribe','ensureDesired','db.processors.',':keyToChange','_rebuilding','tryAcquire','once','_logsDb','durableEmbedderInfo','tools','stopping','FTS_BUILD_CONTINUE','details','compare','isActive','ITEM_PENDING','License\x20limit\x20exceeded:\x20','buffer','runtimeDeclarations','inBatch','durableStats','removeInterest','_isReader','inflight','_kbuf','turns','startAutoCompactCheck','fetch','$gte','durableDoc','bucket.refill_amount\x20must\x20be\x20int\x20>=\x200','durableRebuild','job_type.','RangeError','_deliverEvent','true','appendJobLog','_makeIterator','_put','listTypes','_onFeedChange','connected','files.upload:\x20stream','prototype','tokens','throw','system:drain','transaction\x20commit\x20failed','_jsSchemas','docEntry','EMBED_PENDING','authenticated','remoteAddress','reidentify','BAD_PARAM','2600379uKJomt','modeApplied','_clockListener','node:stream','no_action','embeddings:indexer:ready','enqueue','getRecord','TXN_END','starting','QUEUE_WORKER_REMOVED','_assertRangeOptions','setProcessingConfig','pendingResponses','isBun','sweepOrphanLogs','markJobComplete','definition','info',')\x0a\x09\x09}\x0a\x09\x09','_blobStatusDb','refreshTtlBatch','view:progress','txn','system','targetKey','versions','_pokeHandler','_assertFiles','INDEX_HAS_CONSUMERS','flushTimeoutError','idempotency_key','buckets','config','process(entries)\x20requires\x20at\x20least\x20one\x20entry','_compactLock','HTTP\x20','start','now','limitOf','getPrototypeOf','gcOrphanedBlobs','searchWithScores','_keyFns','importFromStream','INDEX_PROGRESS','processes','createReadStream','exportName','state','resetFts','fts','_locks','level','\x22\x20on\x20\x22','env','_noChangelog','listRoutes','compression','files','\x22\x20not\x20found','last','samplePayloads',':emb:','setTtl','listBuckets','uninstalled','indexReady','utf8Write','~queue_logs','_viewState','okdb.noFast','INACTIVE','runtimeState','values','setUint32','txn:rollback','$pending','release','path','_write','listen','enableAll','stderr','sweepExpiredTTL','bus:proc','iterator','reducer','pump','_ttlByKey','hasBody','\x22\x20requires\x20a\x20`handler`\x20function','job.bucket\x20must\x20be\x20string|null','$payload','ctxRelease','Database\x20not\x20started','INDEX_NOT_REGISTERED','isType','raw','DEFAULT_TTL_MS','fts:','registerDriver','_listening','getIndexCount','$ref','isFeatureEnabled','exists','range','dir','item:pending','_drainOne','hasUniqueViolations','replaceMember','findOwner','claim\x20requires\x20non-empty\x20type','targetType','_draining','flushed','tierList','HTTP_ERROR','ttl:clear','readField','7ERwlgl','\x22\x20is\x20used\x20by:\x20','kind','__notImplementedNative','unref','uninstall','stopHandle','compactLock','finished','getInt32','job.status_code\x20must\x20be\x20string|null','getMany','emitProc','tries','retryJob','_writer','_refCache','timer','transaction','job.finished\x20must\x20be\x20number|null','end','_getFast','exportEnvsToStream','registerFts','wait','job_type.max_concurrency\x20must\x20be\x20int\x20>=\x201\x20or\x20null','cron','_subscribed','__cmd','import','_maxConnections','a\x2032-character\x20key\x20or\x20a\x20function\x20returning\x20one','storeGetDiffsInRange','killAll','toMs','logCap\x20must\x20be\x20null\x20or\x20integer\x20in\x20[','reason','_env','_stopAutoCompactCheck','listRuns','events','toLowerCase','_defaultEnv','_isClosedEnvError','dataEnv','namespace','puts','changeEncryptionKey:\x20to','ALREADY_EXISTS','_durableEmbedderInfo','ctxUpdateStatus','failJob','processorsParticipating','jsonrpcCode','getLoginConfig','reg','_macro','asyncIterator','evict','addEventListener','_ensure','uploadTxn','queue:removed','byteOffset','registerTemplate','ALL_EVENTS','embedder\x20is\x20gone','resetCursor','created_at','stats','\x20returned\x20no\x20key','_commitSessionMutation','KNOWN_OPTIONS','consumeLoginState','error_stack','_addr','detachFeed','describeAllTypes','_pressure','licenses','$lt','_startClaimedSoon','getRunningEngine','dropSchema','_pending','setModeApplied','getDefaultTTL','primaryOkdb','storeGetHead','field:resolver_registered','__ttlCancelledGen','floor','freeze','address','ENCRYPTION_KEY_REQUIRED','_id','job.tries\x20must\x20be\x20non-negative\x20int','describeChunk','OKDBTypeAlreadyRegisteredError','inline','storeEnvName','_isBootstrap','links','_getRaw','T_SESSION','queue:enqueued','clearScan','upload','plugins','emb','put','_ensureTokensType','sessionId','enqueueClaim','\x20which\x20does\x20not\x20exist','includes','drives','TYPE_NOT_REGISTERED','next','startsWith','holder','getSelfNode','string','_hybridQuery','__adminRelay','_callRows','_flushDebounce','mode','taken','utf8','engines','txnDone','apiCall','_openAckDb','processor:progress','setReadBuffer','clock','node:perf_hooks','queue:failed','shouldApplyChange','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.','NOT_FOUND','staticCall','explainIndex','$mod','a\x20non-empty\x20string','_drain','_attached','createHash','driver','build','invalid\x20log\x20level:\x20','_staticCall','valuesForKey','handle','listTemplates','entries','registerType','note','statusOpen','_keyListener','Symbol.asyncIterator','SCHEMA_COLLECTION_INVALID','WORKER','Embedder\x20factory\x20for\x20\x22','TXN_ENV_MISMATCH','auth','flushMaxWait',':\x20expected\x20','_ttlTimeout','refTrackingDbs','~log','writerStatus','items','flush','killWorker','remove','clearStuck','\x27\x20did\x20not\x20return\x20a\x20valid\x20instance','PLUGIN_ALREADY_REGISTERED','spawn','planUpdateJob','\x22\x20must\x20be\x20a\x20plain\x20object','orchestratorStarted','VIEW_BUILD_FAILED','drainDeadlineMs','_listeners','Cannot\x20register\x20plugins\x20after\x20start','status_message','assertCreateAllowed','bucket\x20\x22','ExtendedIterable','$lte','_release','STARTED','MAXIMUM_KEY','join','inNativeCall','unpack','registerReducer','resumeJobType','bootSyncedViewsInline','pipelineFamily','connectionCount','_ensureTypeEnv','select','resolveField:\x20resolver\x20must\x20be\x20a\x20function','err','views','_normalizeOAuthAuthResult','FTS_FLUSH_TIMEOUT','_log','OKDBNotFoundError','previewTemplate','_ttlTimerAt','_enableChangelog','uninstallEngine','BAD_ALGORITHM_FACTORY','makeOkdb','runRecord',')\x20+\x20readString(source)}','_patch','log\x20entry\x20fields\x20must\x20be\x20object|null','encryption\x20key\x20function\x20failed:\x20','loop-lag','busState','_db','_buckets','schema','createLoginState','~lock','processor:\x20cannot\x20combine\x20a\x20closure\x20handler\x20with\x20module:{path,export}.\x20','actions','newListener','attachConsole','setCurrentDb','fts:registered','reverse','noteListenAddr','intervalTimer','snapshotScan','installed','bulkRemoveChunk','tryClaimTokens','captureStackTrace',',\x20got\x20','validateBlobIntegrity','envName','.\x20Primary\x20keys\x20must\x20be\x20string\x20or\x20number.\x20Got:\x20','_workers','viewDb','compactStorage','Environment\x20\x22','getFast','catalog','recordPeerAck','clearDefaultTTL','callRows:\x20unexpected\x20row\x20stride\x20','ttl:set','ctxProgress','slice','_onStop','list','QUERY_OPERATOR_FORBIDDEN','HIGH_FREQ_EVENTS','.\x20The\x20active\x20license\x20does\x20not\x20enable\x20\x22','_viewCache','_awaitBuild','Map',':index','~queue_payloads','status_code','_ringSize','getBucket','node:http','_connections','FIELD_RESOLVER_PENDING','\x22\x20tokens\x20too\x20large','http.listen:\x20host\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20a\x20non-empty\x20array\x20of\x20non-empty\x20strings','exportJSON','node:events','Engine\x20driver\x20for\x20\x22','function','socket','buildsPending','header','_key','concat','recomputeFields','_dedupeMax','_setPeerState','flushTicket','MAX_SAFE_INTEGER','authenticateToken','String\x20does\x20not\x20fit\x20in\x20target\x20buffer','OKDBAlreadyExistsError','clearTTL','indexer','_timerHandle','files\x20feature\x20not\x20available','tag\x20too\x20long','setFlushNotify','usedBy','bucket.tokens\x20must\x20be\x20int\x20>=\x200','getTypeCount','buildPending','_getNodeRecord','setWake','isHeld','byLabel','_hlc','ENGINE_INVALID_TYPE','_onPoke','$ne','exports','claimGated','_setTTL','blobsDir','resolvedOptions','__ref_index','node:util','msg','MCP_ERROR','process\x20options.admission\x20must\x20be\x20a\x20function','Index\x20\x27','when','\x0a\x09\x09let\x20','setAddress','free','runGc','job\x20id\x20required','_scheduleFlush','authenticateRequest','body','forgetDb','keyFor','process()\x20entry\x20\x22','_lockHandle','createIndexer','index:ready','tag','listVectorStores','Date','hasChangelog','getClock','_advanceHlcOnRecv','job.error_stack\x20must\x20be\x20string|null','immediate','Use\x20module:{path,export}\x20alone,\x20or\x20handler:\x27<name>\x27\x20for\x20a\x20built-in.','txn\x20op\x20must\x20be\x20an\x20object\x20or\x20tuple','setMaxBodyBytes','draining','registerModule','doc_status:','cursor','_okdbAdminAttached','isDeepStrictEqual','options','snapshot','_readBuf','index:reset','_closed','queue:log','refreshTtl','online','getValues','1386ZtvuXv','processor:retry','relay','setToken','http.listen({workers/makeOkdb/primaryOkdb})\x20is\x20no\x20longer\x20supported\x20in\x20the\x20','_tx','bucket.tokens\x20cannot\x20exceed\x20capacity','describeType','type:drop','onDo','ttl:expired','getByPrefix',';\x20got\x20','docs','api','equal','rebuild','INVALID_ARGUMENT','mapSize','_modeApplied','signalWant','Key\x20is\x20too\x20large','gen','dbs','_customReducers','getStats','_startAdmission','processor:\x20rebuild\x20must\x20be\x20a\x20function','INVALID_PRIMARY_KEY','_autoCompactTimer','an\x20environment\x20name','Buffer','isFinite','_onItem','limits',':index:','updateBucket','turnWaiters','TXN_INVALID_ACTION','-worker','registerBucketProjection','run','return','embeddings:embed:settled','migrate','dedupeMax','setHostPlugins','handleDurableClock','_syncLock','_assertOpen','capacity','percentile','_subscribeEvent','\x22:\x20the\x20build\x20another\x20process\x20took\x20over\x20made\x20no\x20progress\x20for\x2010\x20min','default','_openLocalPeerDb','normalizeOAuthAuthResult','token','durableCursorFloor','group','active','isArray','\x22\x20is\x20not\x20registered','bridge','describeIndexes','$where','itemsPlan','_typeKeys','_stateDb','_settled','getRange','sync:apply','Database\x20already\x20opened/closed','Feature\x20not\x20licensed:\x20','flushPoll','Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results','processorHold','_handle','engine:','system:clock_change','getEmbedderSchema','TXN_ERROR','use','exportToFile','\x27,\x20cannot\x20map\x20to\x20\x27','sort','embeddings:doc:status_change','_licenseInterval','_resolveKeys','(no\x20unambiguous\x20bookmark)\x20—\x20consume\x20it\x20in\x20one\x20synchronous\x20block:\x20materialize\x20(e.g.\x20','Schema\x20validation\x20failed\x20for\x20','job.id\x20must\x20be\x20string','CREATED','toISOString','_closeReadTransaction','\x20document(s)\x20reference\x20it\x20with\x20onDelete:restrict','processor:\x20specify\x20exactly\x20one\x20of\x20handler:\x27<name>\x27\x20or\x20module:{path,export},\x20not\x20both','durableMarkDelete','getHistory','_role','REF_VIOLATION','__esModule','servers','_buffer','lookupByName','system:type_drop','markJobProgress','_set','req','_enqueueInTxn','attach','subscriptions','getCursor','durableTierLag','delete','disable','toFixed','notes','Cannot\x20openEnv(\x22','ensureTypeEnv','createPublicKey','setPeerState','setAutoCompact','_logEnv','UNKNOWN_RANGE_OPTION','meanwhile\x20—\x20the\x20frozen\x20view\x20cannot\x20be\x20kept.\x20Materialize\x20synchronously\x20(e.g.\x20Array.from)\x20','unique','before\x20any\x20await,\x20chunk\x20with\x20{limit,\x20start,\x20exclusiveStart},\x20or\x20drop\x20snapshot:true.','_logChange','workers','processor:\x20quantum.module\x20must\x20be\x20a\x20string','itemsGroups','_isOpenForIp','delta_limit','_systemEnv','setStorageResolver','stopWorkerAbort','NOT_IMPLEMENTED_NATIVE','_root','for','Unknown\x20transaction\x20action:\x20','size','setClaimGated','allowUnsafe','_blobsDir','functions','$within','invalid\x20job.status:\x20','markJobFail','getPeerState','isNaN','VIEW_REBUILD_IN_PROGRESS','resolvedFields','_validateOidcAccessToken','isOpenForIp','headers','hasStopFn','_path','__ttlByKey','isWanted','cursorKey','preparer\x20must\x20be\x20a\x20function','_handleInProcess','64702PCYjvd','viewOp','files.registerExtractor:\x20extractor\x20must\x20be\x20a\x20function','storeGetHeadCount','_undoHooks','processorsStop','txn-commit','_inlineClosureWarned','MINIMUM_KEY','_nodePublicKey','startNewEnginesFromSync','encryptionKeys','toJSON','__desired','listPath','quantum','maxMs','recommended','_tools','__fts:','_ensureDbs','$size','update','_plugins','selfKey','readKey','(worst\x20','ttlTimer','getJobType','__ttlByExpiry','emitClearDone','set','listRecords','_gcTimer','mkdirSync','envSize','record','listViolations','processEverything()','_closedHandle','charCodeAt','durableRetryDoc','engineType','ceil','_makePipelineApi','_awaitPeerBuild','bootRuntime','exclusiveStart','blobPath','off','onDelete','vector-search','handler','job_type.payload_schema\x20must\x20be\x20object|null','dropFts','job_type.defaults.','createWriteFacade','call','bucket','_wb','code','inputSchema','advanceHlcOnRecv','embedderCall','grouped','removeListener','\x22\x20not\x20found\x20in\x20~envs','_timer','reencrypt:\x20env','pumpEnvSync','ready','hasApi','hasType','ttlStats','OKDBIndexAlreadyRegisteredError','fingerprint','compact/repair\x20already\x20in\x20progress\x20for\x20this\x20environment','DOC_STATUS_CHANGE','_detachLog','deleted','Unable\x20to\x20serialize\x20object\x20as\x20a\x20key:\x20','pipeline','OKDBForeignKeyError','Blob\x20missing\x20for\x20file:\x20','fieldPath','importJSON','refill_every','getUint32','typeId','ref','REF_VIOLATION_RESOLVED','_callPacked','patchConfig','enforced','stopView','VIEW_NOT_FOUND','SYSTEM_POKE','createEnvironment','\x27:\x20','OKDBNotImplementedNativeError','pin','VIEW_BOOTSTRAP_CANCELLED','sparse','_running','ttlMs','progressed','_pendingLocal','BAD_EMBEDDER_FACTORY','written','max_tries','addJobType','assertStartAllowed','inspect','login','bus:type_drop','prepareTxnEnqueue','removeJobType','nextTurn','~sub','license','health','_blobStream','retry_delay','(source)\x20=>\x20{','listBlobStatus','limit','count','resolution','embed-worker','~ttl:key','setSchema','\x20>\x204)\x20{\x0a\x09\x09\x09if\x20(','/([^/]+)','http','envs','isOrchestrator','done','OKDBForeignKeyDeleteError','\x20must\x20be\x20a\x20non-empty\x20string;\x20got\x20','item:','addRaw','system:env_release','recordRun','pageSize','1159330cvmGJy','read','listProviders','_doHooks','getEntry','SCHEMA_VALIDATION_FAILED','__syncOverride','_facade','_emit','getAuthOptions','unpin','pid','queue.worker(\x27','tags\x20must\x20be\x20array\x20or\x20string','defaults','_peerDb','admin','spec','push','_read','hasOwnProperty','isSync','native','detach','tick','File\x20not\x20found:\x20','resetReadTxn','registerIndex','clear','queue','_handlerName','host','\x27\x20is\x20not\x20a\x20function','claim','offWindow','oauth','params','_defaultEnvObj','port','get','instanceTimerArmed','worker','_flushIntervalTimer','SYSTEM_STOPPED','destroy','bus','_listenAddr','REVERSE_INDEX','~engines','typesDb','rows','~files','typeSubDbs','_getType','isSnapshotComplete','export','afterTurn','total','retry','./native-loader.js','TYPE_ALREADY_REGISTERED','expiresAt','compactPending','ERROR','properties','[log-sink]\x20','embeddings:indexer:doc:queued','_uid','Too\x20many\x20concurrent\x20connections','changes','remote','pokeHandler','ensure:\x20type\x20is\x20required','storeEnvPath','importBuf','forceResync','registerChunkStrategy','ITEM_CREATE','$eq','log\x20entry\x20must\x20be\x20a\x20string\x20or\x20object','scopedName','rowKey','setKeyBuffer','_flushTimer','STOPPED','getOpenWarning','job.max_tries\x20must\x20be\x20int\x20>=\x201,\x20null\x20(unlimited)\x20or\x20Infinity','assign','pinned','pinned\x20range\x20iterator\x20held\x20across\x20an\x20await/turn\x20boundary.\x20This\x20surface\x20cannot\x20resume\x20','~fts:envs','ensureType','resetIndexBegin','split','_ttlByExpiry','IPv4','OKDB','undefined','bumpVersion','unknown\x20promise\x20token','\x20=\x20finishUtf8(','CHANGEFEED_QUANTUM','boundary\x20(a\x20pinned\x20read\x20txn\x20blocks\x20LMDB\x20free-page\x20reuse).\x20Do\x20all\x20consistent\x20reads\x20','$near','warn','$in','_syncExpiresAtField','job.tags\x20must\x20be\x20array','resumed',':data','\x27\x20on\x20type\x20\x27','compaction','~log_entry','setFilter','storeGetTotalHeadCount','scheduled','index:registered','guard','_admissionStarted','customReducerNames','_teardownNative','hasEmbedderFactory','a\x20Buffer\x20or\x20readable\x20stream','markJobHeartbeat','stateNames','ms\x20mean=','getBinary','failed_ttl','updated','121zNaGtz','dupSort','embedBatch','test','getBlobStatus','VIEW_BUILD_STALLED','extend','$all','_admissionTimer','signal','pumping','\x20dropped\x20(buffer\x20full)','durableWorkerStats','isWellFormed','OKDBIndexHasConsumersError','_durableIndexerDoc','_cursors','object','type','_changefeed','bootLogMark','a\x20string','hash','then','_ttlCompositeKey','CLI\x20(`okdb\x20listen`),\x20or\x20use\x20Node\x27s\x20built-in\x20`cluster`\x20module\x20and\x20call\x20','register','sourceKey','doc','updateJob','hlc','effective','_statusEnv','hasEnv','isCoordinator','_settleWrite','callBatch','HIGH_SENTINEL','_ensureVectorStore','OKDBInvalidIndexKeyError','pressure','getStatus','done_ttl','stopAutoCompactCheck','iterate','openEnv','__peers','$defs','parseBearer','_isOpen','okdb-node:\x20unknown\x20callback\x20id\x20','_pdb','listRefViolations','license:activated','send','applyOps','useReadTransaction','_isExpired','halted','addBucket','createdBy','bootSyncedEngines','Invalid\x20primary\x20key\x20type:\x20','\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.','install','_startAutoCompactCheck','instance','_wrap','status','maxBodyBytes','exportBlobs','type:','txn:end','restrict','reject','DEFAULT_EVENTS','getUniqueViolation','includeViolations','write','~processes:desired','max_concurrency','claim_expires','assertQueryOptions','$streamId',']\x20already\x20maps\x20to\x20\x27','label','meta','constructor','getRaw','cancelJob','OKDBTypeNotRegisteredError','job','getAll','setEncryptionKey','getVector','INVALID_VALUE','_clockToChangeDb','_typesDb','ttl','keys','TXN_ROLLBACK','countByIndex','sourceType','engineUninstall','_readViewExpired','clients','abs','target','bus:env_release','log','bigint','trim','_cancelTTLTimeout','~proc:state','regObject','hasNativeBatch','attachOKDB','embeddings:pipeline:ready','der','sift','refill_amount','Engine\x20driver\x20already\x20registered:\x20\x22','_lookupByName','job.retry_delay\x20must\x20be\x20int\x20>=\x200','getChanges','createQueryTester','drivers','_jsFactories','dirname','\x27\x20conflicts\x20with\x20existing\x20OKDB\x20property','VERSION_MISMATCH','ensure:\x20fts\x20entry\x20missing\x20name\x20or\x20fields','INDEX_ALREADY_REGISTERED','resetting','groupsDb','item','name','field\x20resolver\x20request\x20still\x20pending','\x22\x20must\x20return\x20{\x20embed(input):\x20Promise<Float32Array>\x20}','readFieldMany','clone','invalid\x20job_type.status:\x20','_sweepInProgress','allocUnsafeSlow','listIndexes','WORKERS_REMOVED','OKDBVersionMismatchError','features','bootSyncedViews','fromCharCode','okdb-node:\x20a\x20background\x20async\x20handler\x20rejected:\x20','license:invalid','unregisterTarget','announceEnqueued','__HOLD__','envsWithFiles','enqueue\x20txn\x20belongs\x20to\x20a\x20different\x20environment','removeEventListener','_localViewApi','isOAuthEmailAllowed','ctxSignal','vec:','applyInterestDelta','mapError','embedder\x20request\x20still\x20pending','_blobPath','randomUUID','registerViewReducer','clearDone','setPeersFn','__okdb','preview','ms\x20max=','refs','durableRetryFailed','~fts:','nextExpiry','_range','asArray','_ensurePeerState','iterable','registerHandler:\x20name\x20must\x20be\x20a\x20non-empty\x20string','chunk\x20strategy\x20must\x20be\x20a\x20function','stopAll','session','lastTxnId','getSchema','retryable','_windowCbs','getJob','INVALID_STATE','resetIndexFinish','outgoing','shutdownTimeout','rollback','apply','Invalid\x20index\x20key\x20type\x20for\x20\x27','lookupByTokenHash','getIndexStatus','committed','_indexBuild','bind','batch','getEmbedderFactory','_markSeen','compact','_detachLogSink','registerModel','envNames','released\x20at\x20the\x20first\x20await/turn\x20boundary.\x20Consume\x20ranges\x20before\x20any\x20await,\x20or\x20','~queue_buckets','metaDb','startBegin','_pendingOps','setLogSink','feed:','localViewStats','OKDBProcessor','_desired','ITEM_REMOVE','_onPending','stopped','$type','OKDBIndexNotRegisteredError','txnUndone','close','bucket_tokens','envPath','turn','index:drop','resume','removeSync','FOREIGN_KEY_VIOLATION','match','READER_HELD_ACROSS_AWAIT','_sinks','addInterest','resolveField:\x20options.batch\x20must\x20be\x20a\x20function','validate','kick','tolerant','_txnIdAtSnapshot','listJobTypes','created','msgpackr','resolveField:\x20type\x20required','formerIds','open','__stateDb','partially-ready','ringSize','_license','_http','registerQuantum:\x20name\x20must\x20be\x20a\x20non-empty\x20string','registerHandler:\x20fn\x20must\x20be\x20a\x20function','_stream'];_0x3d94=function(){return _0x25da8b;};return _0x3d94();}var fts,hasRequiredFts;function requireFts(){const _0x2de040=_0x5b9a04;if(hasRequiredFts)return fts;hasRequiredFts=0x1;const _0x22ce2b=_0x19a6bc=>(_0x19a6bc&&typeof _0x19a6bc===_0x2de040(0x6ea)?_0x19a6bc[_0x2de040(0x761)]:_0x19a6bc)??_0x2de040(0x55b);class _0x3fdd63{constructor(_0x57ef58){const _0x4286e3=_0x2de040;this[_0x4286e3(0x861)]=_0x57ef58;}['_n'](_0x14a76b,_0x223803,_0x2b42e7=![]){const _0x4cba74=_0x2de040;return this[_0x4cba74(0x861)]['_call']('fts',null,_0x14a76b,_0x223803,_0x2b42e7);}[_0x2de040(0x21b)](_0x42b03d,_0x4b5c71){const _0x2e38a9=_0x2de040;return this['okdb'][_0x2e38a9(0x2f8)]('fts',null,_0x42b03d,_0x4b5c71,!![]);}get['_processorStops'](){const _0x1afa86=this,_0x150bcb=_0x2ed8d7=>{const _0x54126d=_0x48c6,_0x26c512=_0x2ed8d7[_0x54126d(0x2e7)](':'),_0xc3203c=_0x2ed8d7[_0x54126d(0x4bb)](0x0,_0x26c512),_0x58c0e9=_0x1afa86[_0x54126d(0x861)][_0x54126d(0x86f)][_0x54126d(0x67f)](_0xc3203c);if(!_0x58c0e9)return undefined;const _0x201ec9=_0x58c0e9[_0x54126d(0x893)][_0x54126d(0x4bd)]()[_0x54126d(0x855)](_0x413246=>_0x413246[_0x54126d(0x5c5)]===_0x54126d(0x3a1)+_0x2ed8d7);if(!_0x201ec9)return undefined;return _0x58c0e9[_0x54126d(0x893)][_0x54126d(0x816)](_0x201ec9['id'],_0x201ec9['cursorKey']);};return{'get':_0x150bcb,'has':_0x8ddd07=>!!_0x150bcb(_0x8ddd07)};}get[_0x2de040(0x7ae)](){return[];}['_envIndexDb'](){const _0x4189b7=_0x2de040,{RawDb:_0x207f9b}=requireRawdb();return new _0x207f9b(this['okdb'][_0x4189b7(0x5ab)],_0x4189b7(0x6b2));}[_0x2de040(0x884)](_0x1b80fb,_0x1bd353,_0x3cba8){const _0x20fa97=_0x2de040;return this['_n'](_0x20fa97(0x884),[_0x1b80fb,_0x1bd353,_0x22ce2b(_0x3cba8)]);}[_0x2de040(0x71d)](_0x10f2bb,_0x19e187,_0xa96e94){const _0x9a71b5=_0x2de040;return this['_n'](_0x9a71b5(0x71d),[_0x10f2bb,_0x19e187,_0x22ce2b(_0xa96e94)]);}[_0x2de040(0x4bd)](_0x22cfce,_0x28fd92){return this['_n']('list',[_0x22cfce,_0x22ce2b(_0x28fd92)]);}async[_0x2de040(0x2eb)](_0x3745e7,_0x287494,_0x4e2766,_0x27035b,_0x40f700){const _0x41b078=_0x2de040,_0x2439cd=(_0xa9cda6,_0x37bd80)=>this[_0x41b078(0x861)][_0x41b078(0x2f8)](_0x41b078(0x370),null,_0xa9cda6,_0x37bd80,!![],![]),_0x11efc9=Date[_0x41b078(0x363)]()+0x1d4c0;let _0x26daea=_0x3745e7,_0x277bd7=_0x287494;for(;;){try{return await _0x2439cd(_0x26daea,_0x277bd7);}catch(_0x5b1dcd){if(_0x5b1dcd[_0x41b078(0x604)]===_0x41b078(0x311)){_0x26daea='buildStep',_0x277bd7=[_0x4e2766,_0x27035b,_0x22ce2b(_0x40f700)];if(_0x5b1dcd[_0x41b078(0x312)]&&_0x5b1dcd['details'][_0x41b078(0x3cf)])await new Promise(_0x122c9f=>setTimeout(_0x122c9f,0x2));continue;}if(_0x5b1dcd[_0x41b078(0x604)]!==_0x41b078(0x4cb)||Date[_0x41b078(0x363)]()>=_0x11efc9)throw _0x5b1dcd;}await new Promise(_0x216eeb=>setTimeout(_0x216eeb,0x5)),_0x26daea=_0x41b078(0x89c),_0x277bd7=[_0x4e2766,_0x27035b,!![],_0x22ce2b(_0x40f700)];}}async[_0x2de040(0x6f3)](_0x2a4935,_0x3ba515,_0x379c02,_0x50626b,_0x193a02){return this['_build']('register',[_0x2a4935,_0x3ba515,_0x379c02,_0x50626b,_0x22ce2b(_0x193a02)],_0x2a4935,_0x3ba515,_0x193a02);}async[_0x2de040(0x858)](_0x5c626f,_0x508b7d,_0x151891){const _0x44f332=_0x2de040;return this[_0x44f332(0x21b)](_0x44f332(0x858),[_0x5c626f,_0x508b7d,_0x22ce2b(_0x151891)]);}async[_0x2de040(0x8d5)](_0x300e9d,_0x1e89c1,_0x41ad21,_0x4074a4){const _0x3078a1=_0x2de040;return this[_0x3078a1(0x2eb)](_0x3078a1(0x8d5),[_0x300e9d,_0x1e89c1,_0x41ad21,_0x22ce2b(_0x4074a4)],_0x300e9d,_0x1e89c1,_0x4074a4);}async[_0x2de040(0x89c)](_0x1aa406,_0x1ea285,_0x37b503,_0x1fb88e){const _0x3eb686=_0x2de040;return this[_0x3eb686(0x2eb)](_0x3eb686(0x89c),[_0x1aa406,_0x1ea285,_0x37b503,_0x22ce2b(_0x1fb88e)],_0x1aa406,_0x1ea285,_0x1fb88e);}async['_waitNative'](_0x30932,_0x493712,_0x36c76d,_0x4f3fc5=0x1d4c0){const _0x4649ae=_0x2de040,_0x490264=Date[_0x4649ae(0x363)]()+_0x4f3fc5;for(;;){try{return await this[_0x4649ae(0x21b)](_0x30932,[..._0x493712,0x1]);}catch(_0x1df528){if(_0x1df528['code']!==_0x36c76d||Date[_0x4649ae(0x363)]()>=_0x490264)throw _0x1df528;}await new Promise(_0x5453c1=>setTimeout(_0x5453c1,0x2));}}async['ready'](_0x11012f,_0x3be34b,_0x13d925){const _0x24f686=_0x2de040;return this[_0x24f686(0x2bb)](_0x24f686(0x60e),[_0x11012f,null,_0x22ce2b(_0x13d925)],_0x24f686(0x8be));}async[_0x2de040(0x465)](_0x465cfb,_0xb0d82b){const _0x53e723=_0x2de040;return this[_0x53e723(0x2bb)](_0x53e723(0x465),[_0x465cfb,_0x22ce2b(_0xb0d82b)],_0x53e723(0x489));}async[_0x2de040(0x7a6)](_0x3769cd,_0x25862a){const _0x591269=_0x2de040;return this[_0x591269(0x21b)]('compact',[_0x3769cd,_0x22ce2b(_0x25862a)]);}async['process'](_0xbd4cd9={}){const _0x2fe01c=_0x2de040;return this['_nm'](_0x2fe01c(0x82a),[_0xbd4cd9]);}async[_0x2de040(0x4b2)](_0x5cc7f3){const _0x35f397=_0x2de040;return this[_0x35f397(0x21b)](_0x35f397(0x4b2),[_0x22ce2b(_0x5cc7f3)]);}[_0x2de040(0x5eb)](_0x1bc719){const _0x28e8f8=_0x2de040;return this['_n'](_0x28e8f8(0x5eb),[_0x22ce2b(_0x1bc719)]);}[_0x2de040(0x1d5)](_0x29f1e0,_0x3ecb99,_0x5091a7,_0x2280da,_0x318535){const _0x5bb334=_0x2de040;return this['_n'](_0x5bb334(0x1d5),[_0x29f1e0,_0x3ecb99,_0x5091a7,_0x2280da||{},_0x22ce2b(_0x318535)]);}[_0x2de040(0x28e)](_0x3796ca,_0x33b614,_0x36d1b2,_0x20dfdd,_0x500498,_0x43b9a4){return this['_n']('searchDocs',[_0x3796ca,_0x33b614,_0x36d1b2,_0x20dfdd||{},_0x22ce2b(_0x500498),_0x43b9a4]);}[_0x2de040(0x27c)](_0x573b33,_0x548b13,_0x118869,_0x7e550c,_0x471069){const _0xb450b6=_0x2de040;return this['_n'](_0xb450b6(0x367),[_0x573b33,_0x548b13,_0x118869,_0x7e550c||{},_0x22ce2b(_0x471069)]);}['listFtsEnvs'](){return this['_n']('listFtsEnvs',[]);}async['drain'](){const _0x3a3abd=_0x2de040;return this[_0x3a3abd(0x21b)](_0x3a3abd(0x1a0),[]);}}return fts={'OKDBFts':_0x3fdd63},fts;}var embeddings,hasRequiredEmbeddings;function requireEmbeddings(){const _0x335280=_0x5b9a04;if(hasRequiredEmbeddings)return embeddings;hasRequiredEmbeddings=0x1;const {OKDBError:_0x437db9,invalidArgument:_0x10daaf}=requireErrors();requireBridge();const _0x327a77=Object[_0x335280(0x413)]({'EMBEDDER':_0x335280(0x260),'INDEXER':_0x335280(0x4e0),'SEARCH':_0x335280(0x5fb),'WORKER':_0x335280(0x648)}),_0x520532=_0x48acf7=>typeof _0x48acf7===_0x335280(0x431)||_0x48acf7==null?_0x48acf7:Array['from'](_0x48acf7);class _0x5c5ce1{constructor(_0x47f2d5){const _0x3f4c31=_0x335280;this[_0x3f4c31(0x861)]=_0x47f2d5,this[_0x3f4c31(0x758)]=new Map(),this[_0x3f4c31(0x336)]=new Map(),this[_0x3f4c31(0x4c1)]=new Map();}['_n'](_0x5b34b9,_0x5a48e2=[],_0x1f1b1e=!![]){const _0x380413=_0x335280;return this[_0x380413(0x861)][_0x380413(0x849)](_0x380413(0x242),null,_0x5b34b9,_0x5a48e2,_0x1f1b1e);}['_nm'](_0x1486c7,_0x4c2ad3=[]){const _0x449f51=_0x335280;return this[_0x449f51(0x861)]['_callMacro'](_0x449f51(0x242),null,_0x1486c7,_0x4c2ad3,!![]);}[_0x335280(0x71c)](_0x551ed1){const _0x578136=_0x335280;return _0x551ed1?this['okdb'][_0x578136(0x439)]['_wrap'](_0x551ed1):null;}['registerEmbedderFactory'](_0x513b99,_0x28aaca,_0xc83b19={}){const _0x1c108b=_0x335280;if(typeof _0x28aaca!=='function')throw new _0x437db9('Embedder\x20factory\x20must\x20be\x20a\x20function',_0x1c108b(0x33c),{'name':_0x513b99});this[_0x1c108b(0x758)][_0x1c108b(0x5e7)](_0x513b99,_0x28aaca),this[_0x1c108b(0x336)]['set'](_0x513b99,_0xc83b19);const _0x31e1c2=this[_0x1c108b(0x861)],_0x10f2de=_0x46d255=>_0x28aaca(_0x46d255,_0x31e1c2);_0x10f2de[_0x1c108b(0x783)]=_0x31e1c2,this['_n'](_0x1c108b(0x2a3),[_0x513b99,_0x10f2de,_0xc83b19??{}],![]);}[_0x335280(0x7a4)](_0x3bb9b4){const _0x1a281f=_0x335280,_0x58a115=this['_jsFactories'][_0x1a281f(0x67f)](_0x3bb9b4);if(_0x58a115)return _0x58a115;if(!this['_n'](_0x1a281f(0x6d1),[_0x3bb9b4],![]))return null;const _0x5895ea=this;return(_0x455301={})=>{const _0x4b85ed=_0x1a281f,_0x232de4=_0x5895ea['_n']('embedderNew',[_0x3bb9b4,_0x455301],![]),_0x4fce3e=_0x5895ea['_n'](_0x4b85ed(0x74c),[_0x232de4],![]),_0x1172c4=(_0x413b34,_0x40baf2)=>_0x5895ea['_n'](_0x4b85ed(0x607),[_0x232de4,_0x413b34,_0x40baf2],![]),_0xcb8c67={'embed':async _0x2a055=>Float32Array['from'](_0x1172c4('embed',_0x2a055)),'start':async()=>_0x1172c4('start'),'stop':async()=>{const _0x4ea171=_0x4b85ed;_0x1172c4(_0x4ea171(0x1b5)),_0x1172c4(_0x4ea171(0x4ff));}};if(_0x4fce3e)_0xcb8c67['embedBatch']=async _0x433dc1=>_0x1172c4(_0x4b85ed(0x6db),_0x433dc1)[_0x4b85ed(0x8a1)](_0x35a5cc=>Float32Array[_0x4b85ed(0x7f7)](_0x35a5cc));return _0xcb8c67;};}[_0x335280(0x575)](_0x5d8274){const _0x581912=_0x335280;return this[_0x581912(0x336)][_0x581912(0x67f)](_0x5d8274)??this['_n'](_0x581912(0x575),[_0x5d8274],![])??undefined;}['registerAlgorithmFactory'](_0x570a88,_0x6b700a,_0x382090={}){const _0x4f757d=_0x335280;if(typeof _0x6b700a!=='function')throw new _0x437db9('Algorithm\x20factory\x20must\x20be\x20a\x20function',_0x4f757d(0x33c),{'name':_0x570a88});this['_n'](_0x4f757d(0x856),[_0x570a88,(_0x5edea2,_0x31f199)=>_0x6b700a(_0x5edea2,_0x31f199),_0x382090??{}],![]);}[_0x335280(0x8d3)](){const _0x39f003=_0x335280;return this['_n'](_0x39f003(0x8d3),[],![]);}['registerPreparer'](_0x252e58,_0x22fb28){const _0x3c049f=_0x335280;if(typeof _0x22fb28!==_0x3c049f(0x4d1))throw new _0x437db9(_0x3c049f(0x5c6),_0x3c049f(0x33c),{'name':_0x252e58});this['_n']('registerPreparer',[_0x252e58,_0x22fb28]);}['registerChunkStrategy'](_0x2b29a0,_0x3b9a6b){const _0xc330a7=_0x335280;if(typeof _0x3b9a6b!=='function')throw new _0x437db9(_0xc330a7(0x78f),_0xc330a7(0x33c),{'name':_0x2b29a0});this['_n'](_0xc330a7(0x6a4),[_0x2b29a0,_0x3b9a6b]);}[_0x335280(0x5ac)](_0x38ade3){const _0x55eb21=_0x335280;if(_0x38ade3==null)return this['_n'](_0x55eb21(0x5ac),[null],![]);if(typeof _0x38ade3!==_0x55eb21(0x4d1))throw new _0x437db9('Storage\x20resolver\x20must\x20be\x20a\x20function',_0x55eb21(0x33c));const _0x5242ce=this[_0x55eb21(0x861)];this['_n'](_0x55eb21(0x5ac),[_0x51b7d9=>_0x38ade3(_0x51b7d9,_0x5242ce)],![]);}async[_0x335280(0x800)](_0x1d4012,_0x15fdc0={},_0x346765={},_0x51f90c=null){const _0x264e22=_0x335280;return this[_0x264e22(0x71c)](await this[_0x264e22(0x21b)](_0x264e22(0x800),[_0x1d4012,_0x15fdc0,_0x346765,_0x51f90c]));}async[_0x335280(0x509)](_0x3fc6a6,_0x5ce3={},_0x19b84b={}){const _0x3d434f=_0x335280;return this[_0x3d434f(0x71c)](await this['_nm'](_0x3d434f(0x509),[_0x3fc6a6,_0x5ce3,_0x19b84b]));}async[_0x335280(0x1e7)](_0x1140bf,_0x4a55ed={},_0x24af67={}){const _0x2d6ff0=_0x335280;return this['_wrap'](await this[_0x2d6ff0(0x21b)](_0x2d6ff0(0x1e7),[_0x1140bf,_0x4a55ed,_0x24af67]));}async[_0x335280(0x28b)](_0x3b00e3,_0x51e212={},_0x10ad04={}){const _0x22b000=_0x335280;return this[_0x22b000(0x71c)](await this[_0x22b000(0x21b)]('createWorker',[_0x3b00e3,_0x51e212,_0x10ad04]));}async[_0x335280(0x2d7)](_0x49b8da,_0x4300c7={},_0x2a460d={}){const _0xa62088=_0x335280,_0x37f41d=await this[_0xa62088(0x21b)](_0xa62088(0x2d7),[_0x49b8da,_0x4300c7,_0x2a460d]);return{'embedder':this[_0xa62088(0x71c)](_0x37f41d['embedder']),'indexer':this[_0xa62088(0x71c)](_0x37f41d['indexer']),'worker':this['_wrap'](_0x37f41d[_0xa62088(0x681)]),'search':this['_wrap'](_0x37f41d['search']),'api':this[_0xa62088(0x5f4)](_0x37f41d[_0xa62088(0x6a8)],_0x37f41d[_0xa62088(0x260)][_0xa62088(0x761)],_0x37f41d[_0xa62088(0x681)]?_0x37f41d[_0xa62088(0x681)]['name']:_0x37f41d[_0xa62088(0x6a8)]+_0xa62088(0x54c))};}[_0x335280(0x62f)](_0x25e16b,_0x21f29e){const _0x20395c=_0x335280;return this[_0x20395c(0x861)][_0x20395c(0x439)][_0x20395c(0x409)](_0x25e16b,_0x21f29e)?.[_0x20395c(0x533)]??null;}[_0x335280(0x260)](_0x40c77a){const _0x31fb81=_0x335280,_0x8f2679=this[_0x31fb81(0x62f)](_0x327a77[_0x31fb81(0x251)],_0x40c77a);if(!_0x8f2679)return null;const _0x5d864c=this,_0x2b5692=_0xbd9ebb=>Array[_0x31fb81(0x562)](_0xbd9ebb)&&Array[_0x31fb81(0x562)](_0xbd9ebb[0x0])?_0xbd9ebb[_0x31fb81(0x8a1)](_0x4d33db=>Float32Array['from'](_0x4d33db)):Float32Array['from'](_0xbd9ebb);return new Proxy(_0x8f2679,{'get'(_0x499815,_0x263445){const _0x30f8f6=_0x31fb81;if(_0x263445==='dims')return _0x5d864c['okdb'][_0x30f8f6(0x849)](_0x30f8f6(0x439),null,_0x30f8f6(0x43b),[_0x327a77[_0x30f8f6(0x251)],_0x40c77a,_0x30f8f6(0x83c),[]],![])[_0x30f8f6(0x883)];if(_0x263445===_0x30f8f6(0x7e9))return async _0x510850=>_0x2b5692(await _0x8f2679['embed'](_0x510850));if(_0x263445==='embedBatch')return async _0x5c7bd6=>(await _0x8f2679[_0x30f8f6(0x6db)](_0x5c7bd6))[_0x30f8f6(0x8a1)](_0x42cf9e=>Float32Array[_0x30f8f6(0x7f7)](_0x42cf9e));return _0x499815[_0x263445];}});}['indexer'](_0x20f0a2){const _0x371953=_0x335280;return this[_0x371953(0x62f)](_0x327a77[_0x371953(0x8da)],_0x20f0a2);}['worker'](_0x2131c7){const _0xe7de44=_0x335280;return this['_running'](_0x327a77[_0xe7de44(0x45a)],_0x2131c7);}[_0x335280(0x1d5)](_0x5d7ac9){const _0x116cbf=_0x335280,_0x584609=this[_0x116cbf(0x62f)](_0x327a77[_0x116cbf(0x241)],_0x5d7ac9);if(_0x584609)return _0x584609;return this[_0x116cbf(0x777)](_0x5d7ac9);}['_localViewApi'](_0x3799c7){const _0x5b392b=_0x335280,_0x10a5bc=this;return{'search':(_0x36f72e,_0x391647={})=>_0x10a5bc[_0x5b392b(0x861)][_0x5b392b(0x2f8)](_0x5b392b(0x242),null,_0x5b392b(0x1d5),[_0x3799c7,_0x520532(_0x36f72e),_0x391647],![]),'stats':async()=>_0x10a5bc['_n'](_0x5b392b(0x7b1),[_0x3799c7],![]),'count':()=>_0x10a5bc['_n'](_0x5b392b(0x5c9),[_0x3799c7,_0x5b392b(0x646)],![])};}async[_0x335280(0x28e)](_0x3d75f1,_0xb2e444,_0x413587={}){const _0x3d3215=_0x335280,{limit:limit=0xa,..._0xe6f7ef}=_0x413587;return this[_0x3d3215(0x21b)](_0x3d3215(0x28e),[_0x3d75f1,_0x520532(_0xb2e444),{..._0xe6f7ef,'limit':limit}]);}['vectorSpace'](_0x2c1cf8){return this['_n']('vectorSpace',[_0x2c1cf8],![]);}[_0x335280(0x2c1)](_0x3e8ab6,_0x26891d){return this['_n']('durableEngineDoc',[_0x3e8ab6,_0x26891d],![]);}[_0x335280(0x3e8)](_0x4bc66e){const _0x2f1719=_0x335280;return this['_n'](_0x2f1719(0x30e),[_0x4bc66e],![]);}async[_0x335280(0x240)](_0x395c92){const _0x4e8953=_0x335280;return this['_n'](_0x4e8953(0x31a),[_0x395c92],![]);}async['_durableIndexerDocs'](_0x3cca12,_0x23bf08={}){const _0x1d7469=_0x335280;return this['_n'](_0x1d7469(0x24e),[_0x3cca12,_0x23bf08],![]);}async[_0x335280(0x6e8)](_0xf8848e,_0x1ee4bd){const _0x1eda4e=_0x335280;return this['_n'](_0x1eda4e(0x323),[_0xf8848e,_0x1ee4bd],![]);}async[_0x335280(0x418)](_0x2ed9c5,_0x2c9536,_0x3a2f13,_0x2a2b3b){const _0x15dc71=_0x335280;if(_0x2ed9c5!=null&&typeof _0x2ed9c5[_0x15dc71(0x42a)]!==_0x15dc71(0x4d1))throw _0x10daaf(_0x15dc71(0x761),_0x15dc71(0x6ee),_0x2ed9c5);if(!_0x2ed9c5||!_0x3a2f13)return null;return this[_0x15dc71(0x861)][_0x15dc71(0x2f8)](_0x15dc71(0x242),null,'describeChunk',[_0x2ed9c5,_0x2c9536,_0x3a2f13,_0x2a2b3b??null],![]);}async['durableMarkDone'](_0x1281f1,_0x3e467f,_0x1de82e={}){const _0x402686=_0x335280,_0x2209e7={..._0x1de82e};if(_0x2209e7['vector'])_0x2209e7[_0x402686(0x2b2)]=Array[_0x402686(0x7f7)](_0x2209e7[_0x402686(0x2b2)]);return this['_n'](_0x402686(0x7fa),[_0x1281f1,_0x3e467f,_0x2209e7]);}async[_0x335280(0x24f)](_0x4401b8,_0x334578,_0x6dac93,_0x640cfc={}){const _0x4a1b1e=_0x335280;return this['_n'](_0x4a1b1e(0x24f),[_0x4401b8,_0x334578,_0x6dac93,_0x640cfc]);}async[_0x335280(0x586)](_0x8dedb7,_0x491fe8){return this['_n']('durableMarkDelete',[_0x8dedb7,_0x491fe8]);}async[_0x335280(0x5f1)](_0x2bde36,_0x24b324){const _0xacf118=_0x335280;return this['_n'](_0xacf118(0x5f1),[_0x2bde36,_0x24b324]);}async['durableRetryFailed'](_0xae5359,_0x66211e={}){const _0x2b131b=_0x335280;return this['_n'](_0x2b131b(0x787),[_0xae5359,_0x66211e]);}async[_0x335280(0x325)](_0x24d766){const _0x546c30=_0x335280;return this[_0x546c30(0x21b)](_0x546c30(0x325),[_0x24d766]);}async['_durableWorkerStats'](_0x5c763a){const _0x1e9563=_0x335280;return this['_n'](_0x1e9563(0x6e5),[_0x5c763a],![]);}[_0x335280(0x225)](_0x293d7c){const _0xc98baa=_0x335280;return this['_n'](_0xc98baa(0x225),[_0x293d7c],![]);}['listVectorStores'](){const _0x14ff9a=_0x335280;return this['_n'](_0x14ff9a(0x50c),[],![]);}[_0x335280(0x737)](_0x431042,_0x1477fc){const _0x28775c=_0x335280,_0x2b0147=this['_n'](_0x28775c(0x737),[_0x431042,_0x1477fc],![]);return _0x2b0147==null?null:Float32Array[_0x28775c(0x7f7)](_0x2b0147);}['resolveModelDims'](_0xa0badc,_0x5a9335){return this['_n']('resolveModelDims',[_0xa0badc,_0x5a9335??null],![])??undefined;}async[_0x335280(0x7a8)](_0x3d1cc7,_0x548e6c,_0x1f1f5c,_0x3c4aa5=''){const _0x28b8b8=_0x335280;return this['_n'](_0x28b8b8(0x7a8),[_0x3d1cc7,_0x548e6c,_0x1f1f5c,_0x3c4aa5]);}['listModels'](_0x209ecd=null){return this['_n']('listModels',[_0x209ecd],![]);}[_0x335280(0x65a)](){const _0x203a39=_0x335280;return this['_n'](_0x203a39(0x65a),[],![]);}async['_ensureTypeEnv'](_0x5f4f78,_0x13b4ab){const _0x52d86d=_0x335280;return this['_n'](_0x52d86d(0x59c),[_0x5f4f78,_0x13b4ab],![]),this[_0x52d86d(0x861)][_0x52d86d(0x221)]('~'+_0x5f4f78+':emb:'+_0x13b4ab);}async[_0x335280(0x6ff)](_0x55ecca,_0x23e15f){const _0x3596cc=_0x335280;return await this[_0x3596cc(0x483)](_0x55ecca,_0x23e15f),{'adapter':_0x5d4e53=>this[_0x3596cc(0x7eb)](_0x55ecca,_0x23e15f,_0x5d4e53)};}['_makeLazyVectorAdapter'](_0x3e7edc,_0x281db2,_0x2a04bb){const _0x12d921=this;return{async 'put'(_0x52616c,_0x343869){return _0x12d921['_n']('vecPut',[_0x3e7edc,_0x281db2,_0x2a04bb,_0x52616c,Array['from'](_0x343869)]);},async 'remove'(_0xb4965f){const _0x5c4e51=_0x48c6;return _0x12d921['_n'](_0x5c4e51(0x208),[_0x3e7edc,_0x281db2,_0x2a04bb,_0xb4965f]);}};}get[_0x335280(0x299)](){const _0x476bb7=_0x335280,_0x1b81fb=this,_0x238cff=()=>_0x1b81fb['_n'](_0x476bb7(0x1d9),[],![]),_0x24d5e1=_0x30dd77=>{const _0x4a62fd=_0x476bb7,_0x46c7c6=_0x37cb09=>_0x1b81fb['_n'](_0x4a62fd(0x5c9),[_0x30dd77,_0x37cb09],![]);return{'name':_0x30dd77,'_evict':async()=>_0x46c7c6(_0x4a62fd(0x3f1)),'evict':async()=>_0x46c7c6('evict'),'snapshot':async()=>_0x46c7c6(_0x4a62fd(0x51d)),'_snapshot':async()=>_0x46c7c6('snapshot'),'rebuild':async()=>_0x46c7c6('rebuild'),'stats':()=>_0x46c7c6(_0x4a62fd(0x3fc)),get 'count'(){const _0x3b6125=_0x4a62fd;return _0x46c7c6(_0x3b6125(0x646));},get 'loaded'(){return _0x46c7c6('loaded');}};};return{get 'size'(){const _0x29fa89=_0x476bb7;return _0x238cff()[_0x29fa89(0x2ea)];},'has':_0x2a342c=>_0x238cff()[_0x476bb7(0x42a)](_0x2a342c),'get':_0x5d5a2c=>_0x238cff()[_0x476bb7(0x42a)](_0x5d5a2c)?_0x24d5e1(_0x5d5a2c):undefined,'keys':()=>_0x238cff()[Symbol[_0x476bb7(0x393)]](),'values':()=>_0x238cff()['map'](_0x24d5e1)[Symbol[_0x476bb7(0x393)]](),[Symbol['iterator']]:()=>_0x238cff()[_0x476bb7(0x8a1)](_0x5ebefc=>[_0x5ebefc,_0x24d5e1(_0x5ebefc)])[Symbol[_0x476bb7(0x393)]]()};}async[_0x335280(0x362)](){}async[_0x335280(0x1b5)](){const _0x49f47e=_0x335280;this['_n'](_0x49f47e(0x1b5),[]);}[_0x335280(0x5f4)](_0x1922b9,_0x179595,_0x1de863){const _0x4ac695=_0x335280;return{'search':(_0x40dc43,_0x4683ab={})=>{const _0x1f74af=_0x48c6,_0x37c8dc=this[_0x1f74af(0x1d5)](_0x1922b9);if(!_0x37c8dc)throw new Error(_0x1f74af(0x22b)+_0x1922b9+'\x22');return _0x37c8dc[_0x1f74af(0x1d5)](_0x40dc43,_0x4683ab);},'searchDocs':(_0x506be4,_0x44a73b={})=>this['searchDocs'](_0x1922b9,_0x506be4,_0x44a73b),'flush':_0x4a0f10=>{const _0x5a8ef3=_0x48c6,_0x476ff4=this['indexer'](_0x1922b9);if(!_0x476ff4)throw new Error('indexer\x20engine\x20not\x20running:\x20\x22'+_0x1922b9+'\x22');return _0x476ff4[_0x5a8ef3(0x465)](_0x4a0f10);},'stats':async()=>({'embedder':await this[_0x4ac695(0x260)](_0x179595)?.[_0x4ac695(0x640)]?.(),'indexer':await this[_0x4ac695(0x4e0)](_0x1922b9)?.[_0x4ac695(0x3fc)]?.(),'worker':await this['worker'](_0x1de863)?.[_0x4ac695(0x3fc)]?.(),'search':await this[_0x4ac695(0x1d5)](_0x1922b9)?.['stats']?.()})};}}return embeddings={'OKDBEmbeddings':_0x5c5ce1,'ENGINE_TYPES':_0x327a77},embeddings;}var auth,hasRequiredAuth;function requireAuth(){const _0x251ba0=_0x5b9a04;if(hasRequiredAuth)return auth;hasRequiredAuth=0x1;const {invalidArgument:_0x11e124}=requireErrors();class _0x2eb263{constructor(_0x3b2560){const _0x1c51aa=_0x48c6;this[_0x1c51aa(0x861)]=_0x3b2560;}['_n'](_0x326184,_0x4b0677=[],_0x28bba5=![]){const _0x4748aa=_0x48c6;return this[_0x4748aa(0x861)][_0x4748aa(0x849)](_0x4748aa(0x45d),null,_0x326184,_0x4b0677,_0x28bba5);}[_0x251ba0(0x21b)](_0x476801,_0x2008d0=[]){const _0xa2df6b=_0x251ba0;return this[_0xa2df6b(0x861)][_0xa2df6b(0x2f8)](_0xa2df6b(0x45d),null,_0x476801,_0x2008d0,![]);}get[_0x251ba0(0x436)](){const _0x174aa2=_0x251ba0;return this['_n'](_0x174aa2(0x436));}get[_0x251ba0(0x81e)](){return this['_n']('isSetupMode');}get['_oauthConfig'](){const _0x20f804=_0x251ba0;return this[_0x20f804(0x861)][_0x20f804(0x51c)][_0x20f804(0x45d)]?.[_0x20f804(0x67b)]||{};}[_0x251ba0(0x778)](_0x198464){const _0x533d93=_0x251ba0;return this['_n'](_0x533d93(0x778),[_0x198464??null]);}[_0x251ba0(0x5a9)](_0x5f104c){const _0x1364ea=_0x251ba0;return this['_n'](_0x1364ea(0x5bf),[_0x5f104c??null]);}[_0x251ba0(0x293)](_0x54e15e){return this['_n']('isLoopbackIp',[_0x54e15e??null]);}[_0x251ba0(0x41c)](){const _0x1c3f27=_0x251ba0;return this['_n'](_0x1c3f27(0x817));}[_0x251ba0(0x6ad)](){const _0xbc6ceb=_0x251ba0;return this['_n'](_0xbc6ceb(0x6ad));}[_0x251ba0(0x661)](){return this['_n']('getAuthOptions');}[_0x251ba0(0x2ee)](_0x5ec541){const _0x4f068c=_0x251ba0;return this['_n'](_0x4f068c(0x2ee),[_0x5ec541]);}['authenticateToken'](_0x3d48c3){const _0x1a3b29=_0x251ba0;return this['_n'](_0x1a3b29(0x4dc),[_0x3d48c3]);}['parseBearer'](_0x57fa0b){const _0x2c8cdc=_0x251ba0;if(_0x57fa0b!=null&&typeof _0x57fa0b!=='string')throw _0x11e124(_0x2c8cdc(0x4d4),_0x2c8cdc(0x6ee),_0x57fa0b);return this['_n'](_0x2c8cdc(0x709),[_0x57fa0b??null]);}async[_0x251ba0(0x426)](){return this['_n']('ensureTokensType',[],!![]);}async[_0x251ba0(0x20d)](_0x36881b){const _0x9f388d=_0x251ba0;return this['_n'](_0x9f388d(0x79e),[_0x36881b]);}async[_0x251ba0(0x753)](_0xb34db3){const _0x32ab1c=_0x251ba0;return this['_n'](_0x32ab1c(0x58d),[_0xb34db3]);}async[_0x251ba0(0x7f2)](_0x439b1a){const _0x384103=_0x251ba0;return this['_n'](_0x384103(0x1c9),[_0x439b1a]);}async['authenticateRequest'](_0x3e0767){const _0x3ed59b=_0x251ba0,_0x3a9ad1=_0x3e0767?.[_0x3ed59b(0x5c0)]||{};return this['_n'](_0x3ed59b(0x503),[{'remoteAddress':_0x3e0767[_0x3ed59b(0x4d2)]?.[_0x3ed59b(0x33a)]??null,'internal':_0x3e0767?.[_0x3ed59b(0x22e)]?.['internal']===!![],'authorization':_0x3a9ad1[_0x3ed59b(0x7fc)]??null,'cookies':_0x3e0767?.[_0x3ed59b(0x84d)]??{}}]);}async[_0x251ba0(0x639)](_0x236b26,_0x47bec8){const _0x58d75c=_0x251ba0;return this[_0x58d75c(0x21b)](_0x58d75c(0x639),[_0x236b26??null,_0x47bec8??null]);}async['loginSelect'](_0x4a1696,_0x30e9d7,_0x40a720){const _0x5b5838=_0x251ba0;return this[_0x5b5838(0x21b)](_0x5b5838(0x8c2),[_0x4a1696??null,_0x30e9d7??null,_0x40a720??null]);}[_0x251ba0(0x8a3)](){const _0x24699f=_0x251ba0;return this['_n'](_0x24699f(0x8a3));}[_0x251ba0(0x3ed)](){const _0x53b0ee=_0x251ba0;return this['_n'](_0x53b0ee(0x3ed));}[_0x251ba0(0x49c)](_0x1700b6={},_0x25c753=0x927c0){const _0xd68336=_0x251ba0;return this['_n'](_0xd68336(0x49c),[_0x1700b6,_0x25c753]);}[_0x251ba0(0x400)](_0x4383d9){const _0x101b6a=_0x251ba0;return this['_n'](_0x101b6a(0x400),[_0x4383d9]);}async[_0x251ba0(0x5be)](_0xe7188,_0x140312={}){const _0x5cbfa2=_0x251ba0;return this[_0x5cbfa2(0x21b)]('validateOidcAccessToken',[_0xe7188,_0x140312]);}async['_getOidcDiscovery'](_0x3f3c39={}){const _0x3c7828=_0x251ba0;return this[_0x3c7828(0x21b)]('getOidcDiscovery',[_0x3f3c39]);}[_0x251ba0(0x488)](_0x249adf){const _0x54073e=_0x251ba0;return this['_n'](_0x54073e(0x55d),[_0x249adf]);}}return auth={'OKDBAuth':_0x2eb263},auth;}var sync,hasRequiredSync;function requireSync(){const _0x2bf9c7=_0x5b9a04;if(hasRequiredSync)return sync;hasRequiredSync=0x1;const {RawDb:_0x1c0413}=requireRawdb();class _0x47bd06{constructor(_0x199975){this['_s']=_0x199975;}get['_ackDb'](){const _0x3b3023=_0x48c6;return this['_ack']||(this['_ack']=new _0x1c0413(this['_s'][_0x3b3023(0x861)]['_systemEnv'],'__sync:acks'));}[_0x2bf9c7(0x43c)](){const _0x4560fb=_0x2bf9c7;return this[_0x4560fb(0x1f9)];}['_ensureDbs'](){return this['_ackDb'];}['_n'](_0x3d7656,_0x2948aa=[]){const _0x3931ed=_0x2bf9c7;return this['_s']['_n'](_0x3931ed(0x1cf)+_0x3d7656,_0x2948aa);}[_0x2bf9c7(0x4b6)](_0x3c662c,_0x41a81b){const _0x56457e=_0x2bf9c7;return this['_n'](_0x56457e(0x4b6),[_0x3c662c,_0x41a81b]);}async[_0x2bf9c7(0x6a3)](_0x2ff8e3){return this['_n']('forceResync',[_0x2ff8e3]);}[_0x2bf9c7(0x7f9)](){const _0x46c9c1=_0x2bf9c7;return this['_n'](_0x46c9c1(0x7f9));}[_0x2bf9c7(0x21f)](_0x1303ba){return this['_n']('getGcHorizon',[_0x1303ba]);}async[_0x2bf9c7(0x500)](){return this['_n']('runGc');}['getStatus'](){const _0x2585a7=_0x2bf9c7;return this['_n'](_0x2585a7(0x702));}['start'](){const _0x240b55=_0x2bf9c7;return this['_n'](_0x240b55(0x362));}[_0x2bf9c7(0x1b5)](){return this['_n']('stop');}get[_0x2bf9c7(0x5e9)](){const _0x36acd4=_0x2bf9c7;try{return this['_n'](_0x36acd4(0x1af))?{}:null;}catch{return null;}}}class _0x226001{constructor(_0x49ad28){const _0x4bda01=_0x2bf9c7;this[_0x4bda01(0x861)]=_0x49ad28,this['gc']=new _0x47bd06(this);const _0x564559=this;this['options']=new Proxy({},{'get':(_0x1a3051,_0x4c8a29)=>typeof _0x4c8a29===_0x4bda01(0x431)?_0x564559['_n'](_0x4bda01(0x51c))[_0x4c8a29]:undefined,'set':(_0x148b40,_0x5625a0,_0x88f43d)=>{const _0x27b2f0=_0x4bda01;if(_0x5625a0===_0x27b2f0(0x414))_0x564559['_n'](_0x27b2f0(0x4fe),[_0x88f43d??null]);else{if(_0x5625a0===_0x27b2f0(0x55e))_0x564559['_n'](_0x27b2f0(0x528),[_0x88f43d??null]);else{if(_0x5625a0===_0x27b2f0(0x5aa))_0x564559['_n'](_0x27b2f0(0x81f),[_0x88f43d]);}}return!![];},'ownKeys':()=>Object[_0x4bda01(0x73c)](_0x564559['_n'](_0x4bda01(0x51c))),'getOwnPropertyDescriptor':(_0x5a4140,_0x326892)=>({'enumerable':!![],'configurable':!![],'value':_0x564559['_n']('options')[_0x326892]}),'has':(_0x5eb1bc,_0x50e00d)=>_0x50e00d in _0x564559['_n']('options')});}['_n'](_0x10d88c,_0xe560b6=[],_0x541ba4=![]){const _0x34405a=_0x2bf9c7;return this['okdb'][_0x34405a(0x849)](_0x34405a(0x1b9),null,_0x10d88c,_0xe560b6,_0x541ba4);}[_0x2bf9c7(0x21b)](_0x6b49ec,_0x2cea5e=[]){const _0x268eec=_0x2bf9c7;return this[_0x268eec(0x861)][_0x268eec(0x2f8)](_0x268eec(0x1b9),null,_0x6b49ec,_0x2cea5e,!![]);}get['_peerDb'](){const _0x26d48f=_0x2bf9c7;return this[_0x26d48f(0x70c)]||(this[_0x26d48f(0x70c)]=new _0x1c0413(this[_0x26d48f(0x861)][_0x26d48f(0x5ab)],_0x26d48f(0x828)));}[_0x2bf9c7(0x55c)](){const _0x4f4005=_0x2bf9c7;return this[_0x4f4005(0x667)];}get[_0x2bf9c7(0x2a2)](){const _0x1cfc82=_0x2bf9c7;return this[_0x1cfc82(0x555)]||(this[_0x1cfc82(0x555)]=new(requireLock())[(_0x1cfc82(0x8b7))](this[_0x1cfc82(0x861)],_0x1cfc82(0x277),_0x1cfc82(0x1b9),{'ttlMs':0x7530}));}get['address'](){const _0x31b3cd=_0x2bf9c7;return this['_n'](_0x31b3cd(0x51c))[_0x31b3cd(0x414)];}get[_0x2bf9c7(0x33f)](){const _0x3eae97=_0x2bf9c7;return this[_0x3eae97(0x861)]['_isOpen']&&this['_n'](_0x3eae97(0x42b))?{}:null;}get[_0x2bf9c7(0x82b)](){const _0x372f24=_0x2bf9c7;return this[_0x372f24(0x33f)];}get[_0x2bf9c7(0x207)](){const _0x5b746c=_0x2bf9c7;return this['_n'](_0x5b746c(0x271))?.['privateKey'];}get[_0x2bf9c7(0x5d1)](){const _0x4d40df=_0x2bf9c7;return this['_n'](_0x4d40df(0x271))?.['publicKey'];}['info'](){return this['_n']('info');}[_0x2bf9c7(0x430)](){return this['_n']('getSelfNode');}get[_0x2bf9c7(0x2e9)](){const _0x3fa47f=_0x2bf9c7;return this[_0x3fa47f(0x707)]||(()=>this['_n'](_0x3fa47f(0x2e9)));}set[_0x2bf9c7(0x2e9)](_0x29dc80){const _0x5de63c=_0x2bf9c7;this[_0x5de63c(0x707)]=typeof _0x29dc80===_0x5de63c(0x4d1)?_0x29dc80:null,this['_n'](_0x5de63c(0x782),[this['__peers']]);}[_0x2bf9c7(0x24c)](){return this['_n']('listPeers');}async[_0x2bf9c7(0x898)](){const _0x1bf1bd=_0x2bf9c7;return this[_0x1bf1bd(0x21b)](_0x1bf1bd(0x898));}async[_0x2bf9c7(0x21a)](_0x27dd48){const _0x4a3cf7=_0x2bf9c7;return this[_0x4a3cf7(0x21b)](_0x4a3cf7(0x21a),[_0x27dd48]);}async[_0x2bf9c7(0x7ff)](_0x4a73eb,_0x243395={}){const _0x532838=_0x2bf9c7;return this[_0x532838(0x21b)]('reconcilePeerPull',[_0x4a73eb,_0x243395]);}[_0x2bf9c7(0x1b5)](){const _0x22eac4=_0x2bf9c7;return this['_n'](_0x22eac4(0x1b5));}[_0x2bf9c7(0x839)](){const _0xc91500=_0x2bf9c7;return this['_n'](_0xc91500(0x839));}async[_0x2bf9c7(0x26b)](_0x350854,_0x5cebc={}){const _0x4452ec=_0x2bf9c7;return this['_n'](_0x4452ec(0x26b),[_0x350854,_0x5cebc],!![]);}async[_0x2bf9c7(0x7ef)](_0x2a4846){const _0x2dbd06=_0x2bf9c7;return this['_n'](_0x2dbd06(0x7ef),[_0x2a4846],!![]);}[_0x2bf9c7(0x4e9)](_0x12a0c6){return this['_n']('getNodeRecord',[_0x12a0c6]);}[_0x2bf9c7(0x888)](_0x3bc975){const _0x377db5=_0x2bf9c7;return this['_n'](_0x377db5(0x5ba),[_0x3bc975]);}async[_0x2bf9c7(0x4d9)](_0xcdf271,_0x3bbc99,_0x1fea1={}){const _0x26f169=_0x2bf9c7;return this['_n'](_0x26f169(0x59e),[_0xcdf271,_0x3bbc99,_0x1fea1]);}async[_0x2bf9c7(0x78c)](_0x5d5944){return this['_n']('ensurePeerState',[_0x5d5944]);}async[_0x2bf9c7(0x3f3)](){return this['_n']('ensure',[],!![]);}async[_0x2bf9c7(0x8b2)](_0x3e963b){const _0x53b22a=_0x2bf9c7;return this['_n'](_0x53b22a(0x8b2),[_0x3e963b],!![]);}async[_0x2bf9c7(0x47b)](_0x5472e8,_0x2f26a1={}){const _0x3b0b8c=_0x2bf9c7;return this[_0x3b0b8c(0x21b)](_0x3b0b8c(0x47b),[_0x5472e8,_0x2f26a1]);}async[_0x2bf9c7(0x879)](_0x23c65b={},_0x340661={}){const _0x66b73=_0x2bf9c7;return void _0x23c65b[_0x66b73(0x277)],this['_n']('calculateDelta',[_0x23c65b,_0x340661]);}async['fetchPeer'](_0x96e5cb,_0x10c837,_0x4c1afd,_0x4f3897){const _0x5a8fff=_0x2bf9c7;return this[_0x5a8fff(0x21b)]('fetchPeer',[_0x96e5cb,_0x10c837,_0x4c1afd,_0x4f3897??null]);}async[_0x2bf9c7(0x281)](_0x3edd00,_0x4aed8c,_0x30120a={}){const _0x1009e2=_0x2bf9c7;return this[_0x1009e2(0x21b)](_0x1009e2(0x281),[_0x3edd00,_0x4aed8c,_0x30120a]);}[_0x2bf9c7(0x8a6)](_0x2ca231,_0x1af8d0=null){const _0x384736=_0x2bf9c7;return this['_n'](_0x384736(0x442),[_0x2ca231,_0x1af8d0?_0x1af8d0[_0x384736(0x761)]:null]);}[_0x2bf9c7(0x1d7)](_0x20bba8,_0x538e43=null){const _0x19f414=_0x2bf9c7;return this['_n'](_0x19f414(0x1d7),[_0x20bba8,_0x538e43?_0x538e43[_0x19f414(0x761)]:null],!![]);}}return sync={'OKDBSync':_0x226001},sync;}var migrate,hasRequiredMigrate;function requireMigrate(){const _0x9e54b5=_0x5b9a04;if(hasRequiredMigrate)return migrate;hasRequiredMigrate=0x1;const {optionsArg:_0x31e25f}=requireErrors(),_0x8c318f=require$$0,_0x4477a7=require$$4,_0xeac384=0x40*0x400;async function _0xb1c9c(_0x5c66fb,_0x107b67){const _0x43e40f=_0x48c6;for(let _0x1023a8=0x0;_0x1023a8<_0x107b67[_0x43e40f(0x2ea)];){let _0x1f9567=Math[_0x43e40f(0x8b1)](_0x107b67[_0x43e40f(0x2ea)],_0x1023a8+_0xeac384);if(_0x1f9567<_0x107b67[_0x43e40f(0x2ea)]){const _0x8eb2=_0x107b67['indexOf'](0xa,_0x1f9567-0x1);_0x1f9567=_0x8eb2===-0x1?_0x107b67[_0x43e40f(0x2ea)]:_0x8eb2+0x1;}const _0xecc457=_0x5c66fb['write'](_0x107b67[_0x43e40f(0x89a)](_0x1023a8,_0x1f9567));_0x1023a8=_0x1f9567;if(!_0xecc457)await new Promise(_0xe03004=>_0x5c66fb[_0x43e40f(0x30c)](_0x43e40f(0x1a0),_0xe03004));await new Promise(_0x3d53cf=>setImmediate(_0x3d53cf));}}async function _0x4f4950(_0x180f03){const _0x5a333d=_0x48c6,_0x498b42=[];for await(const _0x58c820 of _0x180f03)_0x498b42[_0x5a333d(0x66a)](Buffer['isBuffer'](_0x58c820)?_0x58c820:Buffer[_0x5a333d(0x7f7)](_0x58c820,_0x5a333d(0x438)));return Buffer[_0x5a333d(0x4d6)](_0x498b42);}class _0x5cd2b7{constructor(_0x10aa0e){const _0x2fae5e=_0x48c6;this[_0x2fae5e(0x861)]=_0x10aa0e;}['_n'](_0x5077a1,_0x53af51){const _0x1354a1=_0x48c6;return this[_0x1354a1(0x861)][_0x1354a1(0x849)]('migrate',null,_0x5077a1,_0x53af51,!![]);}async[_0x9e54b5(0x85a)](_0x54cb22,_0xf7d643={}){const _0x3e0546=_0x9e54b5,{data:_0xc72b75,stats:_0x41d585}=this['_n'](_0x3e0546(0x23d),[_0xf7d643]);return await _0xb1c9c(_0x54cb22,Buffer[_0x3e0546(0x7f7)](_0xc72b75)),_0x41d585;}async[_0x9e54b5(0x578)](_0x284fd8,_0x2db9da={}){const _0x11709f=_0x9e54b5;_0x8c318f[_0x11709f(0x5ea)](_0x4477a7[_0x11709f(0x759)](_0x284fd8),{'recursive':!![]});const _0x3c8e85=_0x8c318f[_0x11709f(0x22a)](_0x284fd8),_0x5ec20e=await this[_0x11709f(0x85a)](_0x3c8e85,_0x2db9da);return await new Promise((_0x3edc4d,_0x436053)=>{const _0x4f6629=_0x11709f;_0x3c8e85[_0x4f6629(0x3cb)](),_0x3c8e85[_0x4f6629(0x30c)]('finish',_0x3edc4d),_0x3c8e85['once']('error',_0x436053);}),{..._0x5ec20e,'filePath':_0x284fd8};}async[_0x9e54b5(0x3cd)](_0x2c6942,_0x1afbbb={}){const {data:_0x5d9377,stats:_0x56b7ca}=this['_n']('exportEnvsBuf',[_0x1afbbb]);return await _0xb1c9c(_0x2c6942,Buffer['from'](_0x5d9377)),_0x56b7ca;}async[_0x9e54b5(0x369)](_0x39a0ad,_0x11aba5={}){const _0xe89971=_0x9e54b5,_0x15208f=await _0x4f4950(_0x39a0ad),{onProgress:_0x5390a7,..._0x3f59f8}=_0x11aba5,_0xcbc617=this['_n'](_0xe89971(0x6a2),[_0x15208f,_0x3f59f8]);if(typeof _0x5390a7===_0xe89971(0x4d1))_0x5390a7({'type':null,'count':_0xcbc617[_0xe89971(0x20c)]});return _0xcbc617;}async[_0x9e54b5(0x82c)](_0x442ae1,_0x40462b={}){const _0x648ec7=_0x9e54b5;return this[_0x648ec7(0x369)](_0x8c318f[_0x648ec7(0x36c)](_0x442ae1,{'encoding':_0x648ec7(0x438)}),_0x40462b);}async[_0x9e54b5(0x2fa)](_0x1316b3,_0x1234b5={}){const _0x3806b8=_0x9e54b5;return this['_n'](_0x3806b8(0x2fa),[_0x1316b3,_0x1234b5]);}['backupRoot'](){const _0x26007b=_0x9e54b5;return this['_n'](_0x26007b(0x86b),[]);}[_0x9e54b5(0x7da)](_0x322738){const _0x3459fd=_0x9e54b5;return this['_n'](_0x3459fd(0x7da),[_0x322738??null]);}async['export'](_0x6e00e1={}){const _0x322309=_0x9e54b5;return this['_n'](_0x322309(0x68f),[_0x6e00e1]);}async[_0x9e54b5(0x3d4)](_0x683c86,_0x329373={}){const _0xd7a0f=_0x9e54b5;return this['_n'](_0xd7a0f(0x3d4),[_0x683c86,_0x329373]);}async[_0x9e54b5(0x4ce)](_0x32a489){const {pretty:pretty=![]}=_0x31e25f(_0x32a489);return JSON['stringify'](await this['export'](),null,pretty?0x2:0x0);}async[_0x9e54b5(0x61d)](_0x3b9d5c){const _0x4361c5=_0x9e54b5;return this[_0x4361c5(0x3d4)](JSON[_0x4361c5(0x7ed)](_0x3b9d5c));}[_0x9e54b5(0x359)](){const _0x227d5b=_0x9e54b5;if(!this[_0x227d5b(0x861)][_0x227d5b(0x86f)][_0x227d5b(0x67f)]('default')?.[_0x227d5b(0x378)])throw new Error(_0x227d5b(0x4e2));}async[_0x9e54b5(0x71f)](_0x3878de){const _0x50277f=_0x9e54b5;return this[_0x50277f(0x359)](),this['_n'](_0x50277f(0x71f),[_0x3878de]);}async[_0x9e54b5(0x259)](_0x22e82c){const _0x1ef6ed=_0x9e54b5;return this[_0x1ef6ed(0x359)](),this['_n'](_0x1ef6ed(0x259),[_0x22e82c]);}['_allEnvsWithFiles'](){const _0x4f5513=_0x9e54b5;return this['_n'](_0x4f5513(0x774),[])[_0x4f5513(0x8a1)](_0x12851f=>this[_0x4f5513(0x861)][_0x4f5513(0x374)](_0x12851f));}async[_0x9e54b5(0x4ad)](){const _0x2be96d=_0x9e54b5;return this[_0x2be96d(0x359)](),this['_n'](_0x2be96d(0x4ad),[]);}async[_0x9e54b5(0x1db)](){const _0x3a5fb0=_0x9e54b5;return this[_0x3a5fb0(0x359)](),this['_n']('repairBlobRefs',[]);}}return migrate={'OKDBMigrate':_0x5cd2b7},migrate;}var mcp,hasRequiredMcp;function requireMcp(){const _0x4a859a=_0x5b9a04;if(hasRequiredMcp)return mcp;hasRequiredMcp=0x1;class _0x49fece{constructor(_0x42f36b){const _0x199879=_0x48c6;this[_0x199879(0x861)]=_0x42f36b,this[_0x199879(0x742)]=new Map();}['_n'](_0xc2c5f7,_0x569ef5){const _0x1dbde8=_0x48c6;try{return this[_0x1dbde8(0x861)]['_call'](_0x1dbde8(0x8c1),null,_0xc2c5f7,_0x569ef5,!![]);}catch(_0x20a3ba){if(_0x20a3ba&&_0x20a3ba[_0x1dbde8(0x604)]===_0x1dbde8(0x4f9)&&_0x20a3ba['details']){if(_0x20a3ba['details'][_0x1dbde8(0x3ec)]!==undefined)_0x20a3ba[_0x1dbde8(0x3ec)]=_0x20a3ba['details'][_0x1dbde8(0x3ec)];_0x20a3ba['details']=_0x20a3ba['details'][_0x1dbde8(0x312)],_0x20a3ba[_0x1dbde8(0x604)]=undefined;}throw _0x20a3ba;}}[_0x4a859a(0x5da)](){const _0x1dfbbb=_0x4a859a;return this['_n'](_0x1dfbbb(0x30f),[]);}async[_0x4a859a(0x849)](_0x187023,_0x3d4d42={}){const _0x38bed7=_0x4a859a;return this['_n'](_0x38bed7(0x601),[_0x187023??null,_0x3d4d42??{}]);}async[_0x4a859a(0x572)](_0x45666c,_0x1fc883={}){const _0xbd5eb4=_0x4a859a;return this['_n'](_0xbd5eb4(0x451),[_0x45666c,_0x1fc883??{}]);}[_0x4a859a(0x264)](_0x3d3312){const _0x5971c5=_0x4a859a;return this['_n'](_0x5971c5(0x2f4),[_0x3d3312??null]);}}return mcp={'OKDBMcp':_0x49fece},mcp;}function _0x48c6(_0x331625,_0x2970d3){_0x331625=_0x331625-0x19c;const _0x3d94ab=_0x3d94();let _0x48c6aa=_0x3d94ab[_0x331625];return _0x48c6aa;}var sys,hasRequiredSys;function requireSys(){const _0x187b3f=_0x5b9a04;if(hasRequiredSys)return sys;hasRequiredSys=0x1;function _0x81eb6f(_0x141076,_0x134af8,_0x38e544){const _0xe3b60d=_0x48c6,_0x21ed3a={};for(const [_0x144be2,_0x58ad14]of Object['entries'](_0x38e544)){_0x21ed3a[_0x144be2]=_0x58ad14===_0xe3b60d(0x2ad)?async(..._0x28a756)=>_0x141076[_0xe3b60d(0x849)](_0x134af8,null,_0x144be2,_0x28a756):(..._0x30ded0)=>_0x141076[_0xe3b60d(0x849)](_0x134af8,null,_0x144be2,_0x30ded0,![]);}return _0x21ed3a;}const _0x355de5=[_0x187b3f(0x32d),_0x187b3f(0x39e),_0x187b3f(0x52c),_0x187b3f(0x404),_0x187b3f(0x769),'isIndex',_0x187b3f(0x79f),'describeIndex',_0x187b3f(0x565),'typeStats','indexStats','describeTypeDetailed',_0x187b3f(0x1da),_0x187b3f(0x72f),_0x187b3f(0x4e7),_0x187b3f(0x3a4),_0x187b3f(0x25d),_0x187b3f(0x286),_0x187b3f(0x446),'recomputeFields','listIndexKeys'],_0x39f161={'add':_0x187b3f(0x2ad),'activate':'async','remove':_0x187b3f(0x2ad),'list':_0x187b3f(0x1b9),'get':'sync','effective':'sync'},_0x426b0a={'open':_0x187b3f(0x2ad),'register':_0x187b3f(0x2ad),'buildOwnRow':_0x187b3f(0x1b9),'_buildProcessingFacet':_0x187b3f(0x1b9),'reportThreadStats':_0x187b3f(0x1b9),'clearThreadStats':_0x187b3f(0x1b9),'emitProc':_0x187b3f(0x1b9),'addSupervisedChild':'async','removeSupervisedChild':_0x187b3f(0x1b9),'updateSupervisedChildStats':'sync','publishChildRow':_0x187b3f(0x2ad),'putNode':_0x187b3f(0x2ad),'removeNode':_0x187b3f(0x2ad),'nodeDead':_0x187b3f(0x1b9),'listNodes':'sync','reap':_0x187b3f(0x2ad),'publishOwnRow':_0x187b3f(0x2ad),'deregisterSelf':_0x187b3f(0x2ad),'setOwnMeta':'sync','noteListenAddr':_0x187b3f(0x1b9),'hasDesired':_0x187b3f(0x1b9),'getDesired':_0x187b3f(0x1b9),'setDesired':_0x187b3f(0x2ad),'listDesired':_0x187b3f(0x1b9),'getCmd':'sync','bumpCmd':'async','processingStatusView':_0x187b3f(0x1b9),'processorsView':_0x187b3f(0x1b9),'clusterStatusView':'sync','nodesView':_0x187b3f(0x1b9),'treeView':_0x187b3f(0x1b9),'getProcess':_0x187b3f(0x1b9),'runtimeProcessesView':'sync'};function _0x1351db(_0x2c1845){const _0x452eb5=_0x187b3f,_0x5dd028={},_0xdbd7ca=_0x1c8420=>_0x1c8420&&typeof _0x1c8420==='object'&&!Array[_0x452eb5(0x562)](_0x1c8420)&&typeof _0x1c8420['name']===_0x452eb5(0x431)?_0x1c8420[_0x452eb5(0x761)]:_0x1c8420;for(const _0xf68a1f of _0x355de5)_0x5dd028[_0xf68a1f]=_0xf68a1f===_0x452eb5(0x4d7)?async(..._0x1f8fd3)=>_0x2c1845[_0x452eb5(0x849)](_0x452eb5(0x72f),null,_0xf68a1f,_0x1f8fd3[_0x452eb5(0x8a1)](_0xdbd7ca),!![]):(..._0xb1f6c3)=>_0x2c1845[_0x452eb5(0x849)](_0x452eb5(0x72f),null,_0xf68a1f,_0xb1f6c3[_0x452eb5(0x8a1)](_0xdbd7ca),![]);return _0x5dd028;}function _0x3804f3(_0x34ae8d){const _0x2374c1=_0x187b3f,_0x537d84=_0x81eb6f(_0x34ae8d,_0x2374c1(0x406),_0x39f161);return _0x537d84;}function _0x4c8261(_0x940380){const _0x40c943=_0x187b3f,_0x3c0826=()=>_0x940380[_0x40c943(0x406)][_0x40c943(0x6f8)](),_0x3015a7=_0x15e1f2=>_0x15e1f2[_0x40c943(0x4ff)]?{..._0x15e1f2,'_isFree':!![]}:_0x15e1f2;return{async 'addLicense'(_0x48def9){const _0x108a10=_0x40c943;return _0x940380[_0x108a10(0x406)][_0x108a10(0x261)](_0x48def9);},async 'reload'(){},async 'recheck'(){},get 'active'(){const _0x2953d7=_0x3c0826();return _0x2953d7['free']?null:_0x2953d7;},get 'effective'(){return _0x3015a7(_0x3c0826());},'hasLimit'(_0x5e26cc){const _0x59bac2=_0x40c943,_0x34a2b5=_0x3c0826();if(!_0x34a2b5[_0x59bac2(0x625)])return![];const _0x25571d=_0x34a2b5[_0x59bac2(0x547)]?.[_0x5e26cc];return!(_0x25571d===null||_0x25571d===undefined||_0x25571d===0x0);},'isFeatureEnabled'(_0x24cbce){const _0xd26be7=_0x40c943,_0x36c462=_0x3c0826();return!_0x36c462[_0xd26be7(0x625)]||!!_0x36c462[_0xd26be7(0x76c)]?.[_0x24cbce];},'assertFeature'(_0x16cd0f){const _0x44e104=_0x40c943,_0x50f25b=_0x3c0826();if(!_0x50f25b[_0x44e104(0x625)]||_0x50f25b[_0x44e104(0x76c)]?.[_0x16cd0f])return;const {OKDBError:_0x50e2e0}=requireErrors(),_0x27b24e=_0x50f25b[_0x44e104(0x4ff)]?_0x44e104(0x1b0)+_0x16cd0f+_0x44e104(0x8ba)+_0x16cd0f+_0x44e104(0x84a):_0x44e104(0x56e)+_0x16cd0f+_0x44e104(0x4c0)+_0x16cd0f+'\x22.';throw new _0x50e2e0(_0x27b24e,'LICENSE_FEATURE_DISABLED',{'feature':_0x16cd0f});},'assertLimit'(_0x16d41f,_0xcfa0d0){const _0x38dff7=_0x40c943,_0x5eae65=_0x3c0826();if(!_0x5eae65[_0x38dff7(0x625)])return;const _0x265838=_0x5eae65[_0x38dff7(0x547)]?.[_0x16d41f];if(_0x265838===null||_0x265838===undefined||_0x265838===0x0)return;if(_0xcfa0d0>=_0x265838){const {OKDBError:_0x186403}=requireErrors();throw new _0x186403(_0x38dff7(0x316)+_0x16d41f+'\x20('+_0xcfa0d0+'/'+_0x265838+')','LICENSE_LIMIT_EXCEEDED',{'limit':_0x16d41f,'current':_0xcfa0d0,'max':_0x265838});}},'listLicenses'(){const _0x517d54=_0x40c943;return _0x940380[_0x517d54(0x406)][_0x517d54(0x4bd)]();},'getPins'(){const _0x45a432=_0x40c943;return _0x940380[_0x45a432(0x406)][_0x45a432(0x4bd)]()[_0x45a432(0x8a1)](_0x187b65=>({'licenseId':_0x187b65['id'],'pin':_0x187b65['type']===_0x45a432(0x7d0)?null:_0x187b65[_0x45a432(0x62c)]}));}};}function _0xd453cf(_0x2b03ba){const _0xca022e=_0x187b3f,_0x4903d6=_0x81eb6f(_0x2b03ba,'processes',_0x426b0a);Object[_0xca022e(0x245)](_0x4903d6,_0xca022e(0x5e0),{'get':()=>_0x2b03ba[_0xca022e(0x849)](_0xca022e(0x36b),null,_0xca022e(0x5e0),[],![])}),Object[_0xca022e(0x245)](_0x4903d6,_0xca022e(0x6a9),{'get':()=>_0x2b03ba[_0xca022e(0x849)](_0xca022e(0x36b),null,_0xca022e(0x6a9),[],![])}),_0x4903d6[_0xca022e(0x686)]=null;const _0x2ba006=_0x4903d6[_0xca022e(0x4a5)];_0x4903d6['noteListenAddr']=_0x557f72=>{const _0x20068f=_0xca022e;return _0x4903d6[_0x20068f(0x686)]=_0x557f72,_0x2ba006(_0x557f72);};const _0xd7f68b=()=>_0x4903d6['listNodes']()['map'](_0x2b019e=>({'key':_0x2b019e[_0xca022e(0x80a)],'value':_0x2b019e,'version':0x1})),_0x27de7f={'name':_0xca022e(0x248),'_sync':![],'_isOpen':!![],'isProcessStore':!![],'hasType':_0x4ca056=>_0x4ca056==='node','getRange':_0x4985a3=>_0x4985a3===_0xca022e(0x1ff)?_0xd7f68b()[Symbol[_0xca022e(0x393)]]():[][Symbol['iterator']](),'getKeys':_0x459270=>_0x459270===_0xca022e(0x1ff)?_0xd7f68b()['map'](_0x506279=>_0x506279[_0xca022e(0x1e8)])[Symbol[_0xca022e(0x393)]]():[][Symbol['iterator']](),'getValues':_0xd31a15=>_0xd31a15===_0xca022e(0x1ff)?_0xd7f68b()[_0xca022e(0x8a1)](_0x23c937=>_0x23c937[_0xca022e(0x883)])[Symbol[_0xca022e(0x393)]]():[][Symbol[_0xca022e(0x393)]](),'get':(_0x512c27,_0x5cdee5)=>_0x512c27==='node'?_0xd7f68b()[_0xca022e(0x855)](_0x298146=>_0x298146[_0xca022e(0x1e8)]===_0x5cdee5)?.[_0xca022e(0x883)]:undefined,'getCount':_0xd131f8=>_0xd131f8===_0xca022e(0x1ff)?_0xd7f68b()['length']:0x0};Object[_0xca022e(0x245)](_0x4903d6,'_statusEnv',{'get':()=>_0x2b03ba['_call'](_0xca022e(0x36b),null,_0xca022e(0x456),[],![])?_0x27de7f:null});const _0x445b3c=_0x4903d6[_0xca022e(0x7d0)];_0x4903d6[_0xca022e(0x7d0)]=async _0x2b2d3d=>{const _0x37b31b=_0xca022e;return await _0x445b3c(_0x2b2d3d),_0x4903d6[_0x37b31b(0x6f9)];},_0x4903d6['_ensureDesired']=()=>_0x2b03ba[_0xca022e(0x849)]('processes',null,_0xca022e(0x307),[],!![]);const {RawDb:_0x33d1da}=requireRawdb();return Object[_0xca022e(0x245)](_0x4903d6,_0xca022e(0x7b3),{'get':()=>_0x2b03ba[_0xca022e(0x5ab)]?_0x4903d6[_0xca022e(0x5d5)]||=new _0x33d1da(_0x2b03ba['_systemEnv'],_0xca022e(0x728)):undefined}),Object[_0xca022e(0x245)](_0x4903d6,_0xca022e(0x237),{'get':()=>_0x2b03ba[_0xca022e(0x5ab)]?_0x4903d6[_0xca022e(0x3d3)]||=new _0x33d1da(_0x2b03ba[_0xca022e(0x5ab)],_0xca022e(0x1aa)):undefined}),_0x4903d6['isActive']=()=>_0x2b03ba['_call'](_0xca022e(0x36b),null,_0xca022e(0x314),[],![]),Object[_0xca022e(0x245)](_0x4903d6,'_isWriter',{'get':()=>_0x2b03ba[_0xca022e(0x849)](_0xca022e(0x36b),null,_0xca022e(0x298),[],![])}),Object[_0xca022e(0x245)](_0x4903d6,_0xca022e(0x31c),{'get':()=>_0x2b03ba[_0xca022e(0x849)](_0xca022e(0x36b),null,_0xca022e(0x8d7),[],![])}),_0x4903d6['_buildOwnRow']=()=>_0x2b03ba[_0xca022e(0x849)]('processes',null,_0xca022e(0x838),[],![]),_0x4903d6['_emitProc']=(_0x2516ee,_0x2fdf06)=>_0x2b03ba[_0xca022e(0x849)](_0xca022e(0x36b),null,_0xca022e(0x3c3),[_0x2516ee,_0x2fdf06],![]),_0x4903d6;}return sys={'makeMeta':_0x1351db,'makeLicenses':_0x3804f3,'makeLicenseChecker':_0x4c8261,'makeProcesses':_0xd453cf},sys;}var okdbLogger,hasRequiredOkdbLogger;function requireOkdbLogger(){const _0x4145c1=_0x5b9a04;if(hasRequiredOkdbLogger)return okdbLogger;hasRequiredOkdbLogger=0x1;const _0x2233cb={'debug':0xa,'info':0x14,'warn':0x1e,'error':0x28};class _0x50d6d2{constructor(_0x1bf8c4){const _0x1aa38a=_0x48c6;this[_0x1aa38a(0x861)]=_0x1bf8c4,this[_0x1aa38a(0x7c4)]=new Set(),this[_0x1aa38a(0x279)]={};}[_0x4145c1(0x1ee)](_0xac20d8){const _0x8f408e=_0x4145c1,_0x274e97=new _0x50d6d2(this['okdb']);return _0x274e97[_0x8f408e(0x7c4)]=this[_0x8f408e(0x7c4)],_0x274e97['_meta']={...this[_0x8f408e(0x279)],..._0xac20d8},_0x274e97;}['attach'](_0x3fc4e2){const _0x28831d=_0x4145c1;return this[_0x28831d(0x7c4)][_0x28831d(0x261)](_0x3fc4e2),()=>this[_0x28831d(0x7c4)][_0x28831d(0x597)](_0x3fc4e2);}[_0x4145c1(0x4a1)](){const _0xb8a32d=_0x4145c1,_0x3b058d=_0x2233cb[process.env.OKDB_LOG_LEVEL]??_0x2233cb[_0xb8a32d(0x34f)];return this[_0xb8a32d(0x1ef)]=this['attach'](({level:_0x237539,msg:_0x11ef40,meta:_0x3d6032,context:_0x358fb4,ts:_0x561bc7})=>{const _0x3c325f=_0xb8a32d;if((_0x2233cb[_0x237539]??_0x2233cb[_0x3c325f(0x34f)])<_0x3b058d)return;if(_0x3d6032?.[_0x3c325f(0x19d)]==='functions'&&(_0x237539===_0x3c325f(0x34f)||_0x237539===_0x3c325f(0x215)))return;const _0x34058a=_0x237539===_0x3c325f(0x1b2)?console[_0x3c325f(0x1b2)]:_0x237539===_0x3c325f(0x6c0)?console[_0x3c325f(0x6c0)]:_0x237539===_0x3c325f(0x34f)?console[_0x3c325f(0x34f)]:console[_0x3c325f(0x746)],_0x310e7b=_0x3d6032&&Object[_0x3c325f(0x73c)](_0x3d6032)[_0x3c325f(0x2ea)]>0x0;_0x310e7b||_0x358fb4!==undefined?_0x34058a(new Date(_0x561bc7)[_0x3c325f(0x582)](),_0x11ef40,..._0x310e7b?[_0x3d6032]:[],..._0x358fb4!==undefined?[_0x358fb4]:[]):_0x34058a(new Date(_0x561bc7)[_0x3c325f(0x582)](),_0x11ef40);}),this[_0xb8a32d(0x1ef)];}[_0x4145c1(0x822)](){const _0x3af449=_0x4145c1;this[_0x3af449(0x1ef)]&&(this[_0x3af449(0x1ef)](),this[_0x3af449(0x1ef)]=null);}[_0x4145c1(0x74d)](_0x4595b3,_0x3ca0a9){const _0x5abab1=_0x4145c1,_0x297b99=require$$0$4,_0x5e56d7=0x1f4,_0x21014b=Number(process.env.OKDB_LOG_FLUSH_MS)||0x3e8;let _0x372cb2=[],_0x413696=0x0,_0x5a0947=null;const _0x207474=()=>{const _0x4cbf0=_0x48c6;_0x5a0947=null;if(_0x372cb2[_0x4cbf0(0x2ea)]===0x0)return;const _0x122ec1=_0x372cb2;_0x372cb2=[],_0x413696>0x0&&(_0x122ec1[_0x4cbf0(0x66a)]({'ts':Date['now'](),'level':_0x4cbf0(0x6c0),'msg':_0x4cbf0(0x699)+_0x413696+_0x4cbf0(0x87c)+(_0x413696===0x1?'y':_0x4cbf0(0x7fe))+_0x4cbf0(0x6e4),'feature':_0x4cbf0(0x746),'node':_0x3ca0a9,'context':null}),_0x413696=0x0),_0x4595b3[_0x4cbf0(0x354)](_0x4f628e=>{const _0x246719=_0x4cbf0;for(const _0x484e42 of _0x122ec1)_0x4f628e[_0x246719(0x425)](_0x246719(0x6c8),_0x297b99['randomUUID'](),_0x484e42);})[_0x4cbf0(0x2aa)](()=>{});},_0x4af32e=this[_0x5abab1(0x593)](({level:_0x13b0d9,msg:_0x40037f,meta:_0x270d1b,context:_0x119500,ts:_0xa2b8d6})=>{const _0x5e9e8b=_0x5abab1;if(_0x13b0d9===_0x5e9e8b(0x215))return;_0x372cb2[_0x5e9e8b(0x2ea)]>=_0x5e56d7&&(_0x413696++,_0x372cb2[_0x5e9e8b(0x89e)]()),_0x372cb2[_0x5e9e8b(0x66a)]({'ts':_0xa2b8d6,'level':_0x13b0d9,'msg':_0x40037f,'feature':_0x270d1b?.[_0x5e9e8b(0x19d)]??_0x270d1b?.[_0x5e9e8b(0x7e8)]??null,'node':_0x3ca0a9,'context':_0x119500??null}),!_0x5a0947&&(_0x5a0947=setTimeout(_0x207474,_0x21014b),_0x5a0947[_0x5e9e8b(0x3bb)]?.());});return()=>{_0x4af32e();if(_0x5a0947)clearTimeout(_0x5a0947);_0x207474();};}[_0x4145c1(0x660)](_0x22960e,_0x56eaf4,_0x7629f6){const _0x41926d=_0x4145c1;_0x56eaf4 instanceof Error&&(_0x7629f6={'message':_0x56eaf4[_0x41926d(0x2b8)],'stack':_0x56eaf4[_0x41926d(0x7e4)],..._0x7629f6},_0x56eaf4=_0x56eaf4['message']);const _0x9a2c00={'level':_0x22960e,'msg':_0x56eaf4,'meta':{...this[_0x41926d(0x279)]},'context':_0x7629f6,'ts':Date[_0x41926d(0x363)]()};try{this[_0x41926d(0x861)][_0x41926d(0x3df)][_0x41926d(0x88d)]('log',_0x9a2c00);}catch{}for(const _0x4caa14 of this[_0x41926d(0x7c4)]){try{_0x4caa14(_0x9a2c00);}catch{}}}[_0x4145c1(0x892)](_0x5d6aee){const _0x2ce9dd=_0x4145c1;try{this[_0x2ce9dd(0x861)]?.[_0x2ce9dd(0x3df)]?.['emit'](_0x2ce9dd(0x746),_0x5d6aee);}catch{}for(const _0x403dfd of this[_0x2ce9dd(0x7c4)]){try{_0x403dfd(_0x5d6aee);}catch{}}}[_0x4145c1(0x34f)](_0x5301df,_0x2c8463){const _0x5e40cf=_0x4145c1;this[_0x5e40cf(0x660)](_0x5e40cf(0x34f),_0x5301df,_0x2c8463);}[_0x4145c1(0x6c0)](_0x4353f6,_0x2c695f){const _0x1aaa26=_0x4145c1;this[_0x1aaa26(0x660)](_0x1aaa26(0x6c0),_0x4353f6,_0x2c695f);}['error'](_0x2b5d6f,_0x59e945){const _0x13d11d=_0x4145c1;this['_emit'](_0x13d11d(0x1b2),_0x2b5d6f,_0x59e945);}[_0x4145c1(0x215)](_0x1a1ac8,_0x2744cf){const _0x57f31e=_0x4145c1;this[_0x57f31e(0x660)]('debug',_0x1a1ac8,_0x2744cf);}}return okdbLogger=_0x50d6d2,okdbLogger;}var okdbPlugins,hasRequiredOkdbPlugins;function requireOkdbPlugins(){const _0x32005a=_0x5b9a04;if(hasRequiredOkdbPlugins)return okdbPlugins;hasRequiredOkdbPlugins=0x1;const {OKDB_STATE:_0x3396e1}=requireOkdbEnums(),{OKDBError:_0x266cfa}=requireOkdbError();class _0x2c662e{constructor(_0x15a362){this['okdb']=_0x15a362,this['_plugins']=[];}[_0x32005a(0x6f3)](_0x49f125,_0x4c3409){const _0x2d026a=_0x32005a;if(this[_0x2d026a(0x861)]['state']!==_0x3396e1[_0x2d026a(0x581)])throw new _0x266cfa(_0x2d026a(0x472),'INVALID_STATE',{'state':this[_0x2d026a(0x861)][_0x2d026a(0x36e)]});if(!_0x49f125[_0x2d026a(0x761)])throw new _0x266cfa('Plugin\x20must\x20have\x20a\x20name','BAD_PLUGIN',{'plugin':_0x49f125[_0x2d026a(0x761)]});const _0x4302d3=_0x49f125[_0x2d026a(0x2fb)]??[];for(const _0x3019ed of _0x4302d3){if(!this[_0x2d026a(0x5df)][_0x2d026a(0x23b)](_0x5d9c74=>_0x5d9c74[_0x2d026a(0x7e8)][_0x2d026a(0x761)]===_0x3019ed))throw new _0x266cfa('Missing\x20plugin:\x20'+_0x3019ed+'\x20(required\x20by\x20'+_0x49f125[_0x2d026a(0x761)]+')','PLUGIN_DEPENDENCY_MISSING',{'required':_0x3019ed});}if(this[_0x2d026a(0x5df)][_0x2d026a(0x855)](_0x104066=>_0x104066['module']['name']===_0x49f125[_0x2d026a(0x761)]))throw new _0x266cfa('Plugin\x20\x27'+_0x49f125[_0x2d026a(0x761)]+'\x27\x20already\x20registered',_0x2d026a(0x46a),{'plugin':_0x49f125['name']});if(_0x49f125['name']in this[_0x2d026a(0x861)])throw new _0x266cfa(_0x2d026a(0x2c5)+_0x49f125[_0x2d026a(0x761)]+_0x2d026a(0x75a),'PLUGIN_NAME_CONFLICT');const _0x4cdf74=_0x49f125['register'](this[_0x2d026a(0x861)],_0x4c3409);if(!_0x4cdf74||typeof _0x4cdf74!=='object')throw new _0x266cfa(_0x2d026a(0x819)+_0x49f125[_0x2d026a(0x761)]+_0x2d026a(0x469),'BAD_PLUGIN',{'plugin':_0x49f125[_0x2d026a(0x761)]});this[_0x2d026a(0x5df)][_0x2d026a(0x66a)]({'module':_0x49f125,'options':_0x4c3409,'instance':_0x4cdf74});}['_started']=[];async[_0x32005a(0x362)](){const _0x531645=_0x32005a;try{for(const _0x598299 of this['_plugins']){await _0x598299[_0x531645(0x71b)][_0x531645(0x362)]?.(this[_0x531645(0x861)]),this['_started']['push'](_0x598299);}}catch(_0x26a29b){await this[_0x531645(0x1b5)]()[_0x531645(0x2aa)](()=>{});throw _0x26a29b;}}async[_0x32005a(0x1b5)](){const _0x3191af=_0x32005a,_0xc482aa=this[_0x3191af(0x859)][_0x3191af(0x4a4)]();this[_0x3191af(0x859)]=[];let _0x330059=null;for(const _0x326f6d of _0xc482aa){try{await _0x326f6d[_0x3191af(0x71b)]['stop']?.(this[_0x3191af(0x861)]);}catch(_0x4442e3){_0x330059??=_0x4442e3;}}if(_0x330059)throw _0x330059;}}return okdbPlugins=_0x2c662e,okdbPlugins;}var statics,hasRequiredStatics;function requireStatics(){const _0xa10863=_0x5b9a04;if(hasRequiredStatics)return statics;hasRequiredStatics=0x1;const _0x31544e={'maxDbs':0x400,'pageSize':0x1000,'compression':!![],'encryptionKey':undefined,'mapSize':0x100000000,'durability':'balanced'},_0x1bb8a3=new Set(['maxDbs',_0xa10863(0x657),_0xa10863(0x377),'encryptionKey',_0xa10863(0x5d3),_0xa10863(0x537),_0xa10863(0x19c),_0xa10863(0x5b4),_0xa10863(0x81b),_0xa10863(0x45d),_0xa10863(0x1b9),'queue','functions',_0xa10863(0x881),_0xa10863(0x8c1),_0xa10863(0x318),_0xa10863(0x746),_0xa10863(0x79a),'readerCheckIntervalMs',_0xa10863(0x439),_0xa10863(0x7de),_0xa10863(0x6c7),_0xa10863(0x36b),_0xa10863(0x1ac),_0xa10863(0x533),_0xa10863(0x668),'subscriptions','debug','onLicenseExpired',_0xa10863(0x2fa)]),_0x2f6638={'http':_0xa10863(0x272)};return statics={'defaults':_0x31544e,'KNOWN_OPTIONS':_0x1bb8a3,'_OPTION_HINTS':_0x2f6638},statics;}var licenseConfig,hasRequiredLicenseConfig;function requireLicenseConfig(){const _0x149e0f=_0x5b9a04;if(hasRequiredLicenseConfig)return licenseConfig;hasRequiredLicenseConfig=0x1;const _0x36b6c5=require$$0$2,_0x13c689='-----BEGIN\x20PUBLIC\x20KEY-----\x0aMCowBQYDK2VwAyEAacrkExPrhxNVHyeQBLDwg8xfm1OwyxDAPNdGXABYS2s=\x0a-----END\x20PUBLIC\x20KEY-----',_0x56ac69=_0x36b6c5[_0x149e0f(0x44b)](_0x149e0f(0x8c9))['update'](_0x36b6c5[_0x149e0f(0x59d)](_0x13c689)[_0x149e0f(0x68f)]({'type':_0x149e0f(0x825),'format':_0x149e0f(0x74f)}))['digest']('hex')[_0x149e0f(0x4bb)](0x0,0x10),_0x12e6f0={'LICENSED_BUILD':_0x149e0f(0x329),'PUBLIC_KEY_PEM':_0x13c689,'PUB_FINGERPRINT':_0x56ac69,'LICENSE_EXPIRED_ACTION':_0x149e0f(0x746)};return licenseConfig={'_C':_0x12e6f0,'PUBLIC_KEY_PEM':_0x13c689,'PUB_FINGERPRINT':_0x56ac69},licenseConfig;}var okdbSubscriptionsStore={'exports':{}},okdbQueryFilter,hasRequiredOkdbQueryFilter;function requireOkdbQueryFilter(){const _0xca3494=_0x5b9a04;if(hasRequiredOkdbQueryFilter)return okdbQueryFilter;hasRequiredOkdbQueryFilter=0x1;const _0x36ba6e=require$$0$5,{OKDBError:_0x16bb2d}=requireOkdbError(),_0x1661ef=[_0xca3494(0x6a6),_0xca3494(0x4f0),_0xca3494(0x2dd),_0xca3494(0x322),_0xca3494(0x407),_0xca3494(0x477),_0xca3494(0x6c1),_0xca3494(0x848),'$exists','$regex',_0xca3494(0x24d),_0xca3494(0x447),_0xca3494(0x5dd),_0xca3494(0x6e0),_0xca3494(0x7b7),_0xca3494(0x1b6),_0xca3494(0x26a),_0xca3494(0x8c5),_0xca3494(0x2d2),'$nor'],_0x197ee4=[_0xca3494(0x566)];function _0x334c96(_0x4ca58f){return()=>{const _0x381c24=_0x48c6,_0x4bbd55=new _0x16bb2d('Query\x20operator\x20\x22'+_0x4ca58f+_0x381c24(0x1bc),_0x381c24(0x4be),{'operator':_0x4ca58f});_0x4bbd55[_0x381c24(0x71d)]=0x190;throw _0x4bbd55;};}const _0x53071b=Object[_0xca3494(0x413)]({...Object['fromEntries'](_0x1661ef[_0xca3494(0x8a1)](_0xeb8b6d=>[_0xeb8b6d,_0x36ba6e[_0xeb8b6d]])),...Object[_0xca3494(0x89d)](_0x197ee4[_0xca3494(0x8a1)](_0x5017a6=>[_0x5017a6,_0x334c96(_0x5017a6)]))});function _0x1132da(_0x43d3fe){const _0x20cf43=_0xca3494;return _0x36ba6e[_0x20cf43(0x756)](_0x43d3fe,{'operations':_0x53071b});}function _0x4af574(_0x320396){const _0x46ff8e=_0xca3494;if(_0x320396==null)return;try{_0x1132da(_0x320396);}catch(_0x31c0be){if(_0x31c0be?.[_0x46ff8e(0x604)]===_0x46ff8e(0x4be))throw _0x31c0be;}}return okdbQueryFilter={'compileFilter':_0x1132da,'assertFilterAllowed':_0x4af574,'ALLOWED_OPERATORS':_0x1661ef,'FORBIDDEN_OPERATORS':_0x197ee4},okdbQueryFilter;}var okdbEnvRefs,hasRequiredOkdbEnvRefs;function requireOkdbEnvRefs(){const _0x2abf1b=_0x5b9a04;if(hasRequiredOkdbEnvRefs)return okdbEnvRefs;hasRequiredOkdbEnvRefs=0x1;const {CHANGE_ACTIONS:_0x285c54,EVENTS:_0x4f256b}=requireOkdbEnums(),{OKDBError:_0x526d05,OKDBForeignKeyDeleteError:_0xb6ba61}=requireOkdbError(),_0x330df3='~ref_violations',_0xc449f=new Set([_0x2abf1b(0x341),_0x2abf1b(0x276),_0x2abf1b(0x83d),_0x2abf1b(0x722)]);function _0x104a58(_0x12012a,_0xb98682){const _0x3c0546=_0x2abf1b;if(_0x12012a==null||!_0xb98682)return undefined;const _0x3142cd=_0xb98682[_0x3c0546(0x6b5)]('.');let _0x1a9759=_0x12012a;for(const _0x5bc629 of _0x3142cd){if(_0x1a9759==null||typeof _0x1a9759!=='object'||!(_0x5bc629 in _0x1a9759))return undefined;_0x1a9759=_0x1a9759[_0x5bc629];}return _0x1a9759;}function _0xd94b8(_0x2ad2ec,_0x1797e0,_0x9278a3){const _0x10dc16=_0x2abf1b,_0x116384=_0x1797e0[_0x10dc16(0x6b5)]('.'),_0x1f54bd={..._0x2ad2ec};let _0x301b4d=_0x1f54bd;for(let _0x8d05e3=0x0;_0x8d05e3<_0x116384['length']-0x1;_0x8d05e3++){_0x301b4d[_0x116384[_0x8d05e3]]=_0x301b4d[_0x116384[_0x8d05e3]]!=null?{..._0x301b4d[_0x116384[_0x8d05e3]]}:{},_0x301b4d=_0x301b4d[_0x116384[_0x8d05e3]];}return _0x301b4d[_0x116384[_0x116384[_0x10dc16(0x2ea)]-0x1]]=_0x9278a3,_0x1f54bd;}function _0xa1ee24(_0x3461e4,_0x244707,_0x42f254,_0xf7acc1,_0x34723b){return[_0x3461e4,_0x244707,_0x42f254,_0xf7acc1,_0x34723b];}function _0x465d3a(_0x135e3c){const _0x359b7b=_0x2abf1b;return typeof _0x135e3c===_0x359b7b(0x431)||typeof _0x135e3c===_0x359b7b(0x216);}function _0x1fd9c4(_0x10836c,_0x47b0f6){return JSON['stringify']([_0x10836c,_0x47b0f6]);}function*_0x118af8(_0xef76a9,_0xf7392e,_0x431304){const _0x5420db=_0x2abf1b,_0x4835bd=_0x431304!==undefined;for(const {key:_0x52676f}of _0xef76a9['getRange']({'start':_0x4835bd?[_0xf7392e,_0x431304]:[_0xf7392e]})){if(!Array[_0x5420db(0x562)](_0x52676f))continue;if(_0x52676f[0x0]!==_0xf7392e||_0x4835bd&&_0x52676f[0x1]!==_0x431304)break;yield _0x52676f;}}function _0x167bde(_0x24b4da,_0x2f0cdb='',_0x58519a=null){const _0x34ad89=_0x2abf1b,_0x29bd04=[];if(!_0x24b4da||typeof _0x24b4da!==_0x34ad89(0x6ea))return _0x29bd04;if(!_0x58519a)_0x58519a=_0x24b4da;if(_0x24b4da[_0x34ad89(0x3a5)]){const _0x214d97=_0x24b4da[_0x34ad89(0x3a5)][_0x34ad89(0x7c2)](/^#\/\$defs\/(.+)$/);if(_0x214d97&&_0x58519a?.[_0x34ad89(0x708)]?.[_0x214d97[0x1]])return _0x167bde(_0x58519a[_0x34ad89(0x708)][_0x214d97[0x1]],_0x2f0cdb,_0x58519a);return _0x29bd04;}if(_0x24b4da[_0x34ad89(0x621)]&&typeof _0x24b4da[_0x34ad89(0x621)]===_0x34ad89(0x6ea)&&_0x24b4da[_0x34ad89(0x621)][_0x34ad89(0x6eb)]){const _0x1658df=_0x24b4da['ref']['onDelete']||_0x34ad89(0x341);if(!_0xc449f[_0x34ad89(0x884)](_0x1658df))throw new _0x526d05(_0x34ad89(0x80c)+_0x1658df+'\x27\x20at\x20'+(_0x2f0cdb||'root')+_0x34ad89(0x201)+[..._0xc449f][_0x34ad89(0x47b)](',\x20'),_0x34ad89(0x846));_0x29bd04[_0x34ad89(0x66a)]({'fieldPath':_0x2f0cdb,'targetType':_0x24b4da[_0x34ad89(0x621)][_0x34ad89(0x6eb)],'onDelete':_0x1658df});}if(_0x24b4da[_0x34ad89(0x698)])for(const [_0x483e64,_0x5009ff]of Object['entries'](_0x24b4da['properties'])){const _0x13a4f4=_0x2f0cdb?_0x2f0cdb+'.'+_0x483e64:_0x483e64;_0x29bd04[_0x34ad89(0x66a)](..._0x167bde(_0x5009ff,_0x13a4f4,_0x58519a));}return _0x29bd04;}function _0x12ebe0(_0x42bd12){const _0x28e595=_0x2abf1b,_0x25d144=new Map(),_0x20fcff=new Map();for(const _0x1dadd5 of _0x42bd12[_0x28e595(0x568)]()){if(_0x1dadd5[_0x28e595(0x42e)]('~'))continue;const _0x43d800=_0x42bd12[_0x28e595(0x689)][_0x28e595(0x67f)](_0x1dadd5);if(!_0x43d800?.[_0x28e595(0x49b)]?.[_0x28e595(0x34e)])continue;let _0x172551;try{_0x172551=_0x167bde(_0x43d800[_0x28e595(0x49b)][_0x28e595(0x34e)]);}catch{continue;}if(_0x172551[_0x28e595(0x2ea)]>0x0){_0x25d144[_0x28e595(0x5e7)](_0x1dadd5,_0x172551);for(const _0x2b9c9d of _0x172551){if(!_0x20fcff[_0x28e595(0x884)](_0x2b9c9d[_0x28e595(0x3b0)]))_0x20fcff['set'](_0x2b9c9d[_0x28e595(0x3b0)],[]);_0x20fcff['get'](_0x2b9c9d[_0x28e595(0x3b0)])['push']({'sourceType':_0x1dadd5,'fieldPath':_0x2b9c9d['fieldPath'],'onDelete':_0x2b9c9d[_0x28e595(0x5fa)]});}}}_0x42bd12[_0x28e595(0x3c7)]={'outgoing':_0x25d144,'incoming':_0x20fcff};if(_0x25d144[_0x28e595(0x5b2)]>0x0)_0x50db0d(_0x42bd12);}function _0x28c433(_0x121c49,_0xb6cbef){const _0x24dd14=_0x2abf1b;return _0x121c49['_refCache'][_0x24dd14(0x799)]['get'](_0xb6cbef)||[];}function _0x27e6d1(_0x3b8770,_0x3b54bc){const _0x37b9e6=_0x2abf1b;return _0x3b8770[_0x37b9e6(0x3c7)][_0x37b9e6(0x82e)][_0x37b9e6(0x67f)](_0x3b54bc)||[];}function _0x50db0d(_0x39aca0){const _0x3e7ed8=_0x2abf1b;if(_0x39aca0[_0x3e7ed8(0x2c4)])return _0x39aca0[_0x3e7ed8(0x2c4)];return _0x39aca0[_0x3e7ed8(0x2c4)]=_0x39aca0['db'][_0x3e7ed8(0x229)](_0x3e7ed8(0x4f6),{'dupSort':![]}),_0x39aca0[_0x3e7ed8(0x2c4)];}function _0x3eb7a3(_0x10c008,_0x17a555,_0x2d53a7,_0x1cf413,_0x8c0aeb){const _0x32e27c=_0x2abf1b,_0x55a7b3=_0x28c433(_0x10c008,_0x17a555);if(_0x55a7b3[_0x32e27c(0x2ea)]===0x0)return;const _0x2062bd=_0x50db0d(_0x10c008);for(const _0x5b1899 of _0x55a7b3){const _0x5b4d2a=_0x8c0aeb!=null?_0x104a58(_0x8c0aeb,_0x5b1899[_0x32e27c(0x61c)]):undefined,_0xac1c85=_0x1cf413!=null?_0x104a58(_0x1cf413,_0x5b1899[_0x32e27c(0x61c)]):undefined;if(_0x5b4d2a===_0xac1c85)continue;_0x465d3a(_0x5b4d2a)&&_0x2062bd[_0x32e27c(0x7c0)](_0xa1ee24(_0x5b1899['targetType'],_0x5b4d2a,_0x17a555,_0x2d53a7,_0x5b1899[_0x32e27c(0x61c)])),_0x465d3a(_0xac1c85)&&_0x2062bd[_0x32e27c(0x7e3)](_0xa1ee24(_0x5b1899['targetType'],_0xac1c85,_0x17a555,_0x2d53a7,_0x5b1899['fieldPath']),0x1);}}function _0x4c2d02(_0xd7ffcb,_0x505e2,_0x444977,_0x2e5574){const _0x911944=_0x2abf1b,_0x4f4acd=_0x28c433(_0xd7ffcb,_0x505e2);if(_0x4f4acd[_0x911944(0x2ea)]===0x0)return;const _0x5d2ccd=_0x50db0d(_0xd7ffcb);for(const _0x1d4a00 of _0x4f4acd){const _0x32f3fe=_0x2e5574!=null?_0x104a58(_0x2e5574,_0x1d4a00[_0x911944(0x61c)]):undefined;_0x465d3a(_0x32f3fe)&&_0x5d2ccd['removeSync'](_0xa1ee24(_0x1d4a00[_0x911944(0x3b0)],_0x32f3fe,_0x505e2,_0x444977,_0x1d4a00[_0x911944(0x61c)]));}}function _0x316165(_0x17eee6,_0x22e347,_0x5ed39b,_0x51878f){const _0x59c1a6=_0x2abf1b,_0x28ad12=_0x28c433(_0x17eee6,_0x22e347);if(_0x28ad12[_0x59c1a6(0x2ea)]===0x0)return[];const _0x156738=[];for(const _0x8eda27 of _0x28ad12){const _0x547e84=_0x104a58(_0x51878f,_0x8eda27['fieldPath']);if(_0x547e84==null)continue;if(!_0x17eee6[_0x59c1a6(0x610)](_0x8eda27['targetType'])){_0x156738[_0x59c1a6(0x66a)]({'fieldPath':_0x8eda27[_0x59c1a6(0x61c)],'targetType':_0x8eda27[_0x59c1a6(0x3b0)],'targetKey':_0x547e84,'message':'Referenced\x20type\x20\x27'+_0x8eda27[_0x59c1a6(0x3b0)]+'\x27\x20does\x20not\x20exist'});continue;}const _0x39fcf2=_0x17eee6[_0x59c1a6(0x68d)](_0x8eda27['targetType'])[_0x59c1a6(0x1d2)];!_0x39fcf2[_0x59c1a6(0x1bd)](_0x547e84)&&_0x156738[_0x59c1a6(0x66a)]({'fieldPath':_0x8eda27[_0x59c1a6(0x61c)],'targetType':_0x8eda27[_0x59c1a6(0x3b0)],'targetKey':_0x547e84,'message':_0x59c1a6(0x80b)+_0x547e84+_0x59c1a6(0x85b)+_0x8eda27[_0x59c1a6(0x3b0)]+'\x27'});}return _0x156738;}function _0x4d9f1d(_0x15fb12,_0x269487,_0xc795b7,_0x43cae1,_0x27dad7,{timestamp:_0x476af5,origin:_0x4cea47,_cascadeVisited:_0x3ed048}){const _0x3ed530=_0x2abf1b,_0x6f8121=_0x27e6d1(_0x15fb12,_0xc795b7);if(_0x6f8121[_0x3ed530(0x2ea)]===0x0)return;const _0x1bf80a=_0x50db0d(_0x15fb12),_0x4b7caa=[];for(const [,,_0x30ddf5,_0x3806c3,_0x233100]of _0x118af8(_0x1bf80a,_0xc795b7,_0x43cae1)){_0x4b7caa[_0x3ed530(0x66a)]({'sourceType':_0x30ddf5,'sourceKey':_0x3806c3,'fieldPath':_0x233100});}if(_0x4b7caa['length']===0x0)return;for(const _0x31f79f of _0x4b7caa){const _0x19acd9=_0x6f8121[_0x3ed530(0x855)](_0xb3283b=>_0xb3283b[_0x3ed530(0x73f)]===_0x31f79f[_0x3ed530(0x73f)]&&_0xb3283b['fieldPath']===_0x31f79f[_0x3ed530(0x61c)]),_0x2b6da3=_0x19acd9?.[_0x3ed530(0x5fa)]||_0x3ed530(0x341);switch(_0x2b6da3){case'restrict':{if(_0x4cea47===null)throw new _0xb6ba61(_0xc795b7,_0x43cae1,_0x4b7caa[_0x3ed530(0x1b8)](_0x35041c=>{const _0x667988=_0x3ed530,_0x3ab674=_0x6f8121[_0x667988(0x855)](_0x330b32=>_0x330b32[_0x667988(0x73f)]===_0x35041c[_0x667988(0x73f)]&&_0x330b32[_0x667988(0x61c)]===_0x35041c[_0x667988(0x61c)]);return(_0x3ab674?.[_0x667988(0x5fa)]||'no_action')===_0x667988(0x722);}));break;}case _0x3ed530(0x276):{const _0x4087a7=_0x1fd9c4(_0x31f79f[_0x3ed530(0x73f)],_0x31f79f['sourceKey']);if(_0x3ed048['has'](_0x4087a7))continue;_0x15fb12[_0x3ed530(0x68d)](_0x31f79f[_0x3ed530(0x73f)])['data'][_0x3ed530(0x1bd)](_0x31f79f[_0x3ed530(0x6f4)])&&_0x15fb12[_0x3ed530(0x8d9)](_0x269487,_0x31f79f[_0x3ed530(0x73f)],_0x31f79f[_0x3ed530(0x6f4)],{'timestamp':_0x476af5,'origin':_0x4cea47,'_cascadeVisited':_0x3ed048});break;}case _0x3ed530(0x83d):{const _0x532a11=_0x15fb12[_0x3ed530(0x68d)](_0x31f79f['sourceType'])[_0x3ed530(0x1d2)],_0x43d6f9=_0x532a11[_0x3ed530(0x65c)](_0x31f79f[_0x3ed530(0x6f4)]);if(_0x43d6f9){const _0x90a81f=_0xd94b8(_0x43d6f9[_0x3ed530(0x883)],_0x31f79f[_0x3ed530(0x61c)],null);_0x15fb12[_0x3ed530(0x38d)](_0x269487,_0x3ed530(0x425),_0x31f79f['sourceType'],_0x31f79f[_0x3ed530(0x6f4)],_0x90a81f,{'timestamp':_0x476af5,'origin':_0x4cea47,'_cascading':!![]});}break;}}}}function _0x13a089(_0x29d585){const _0x7262fc=_0x2abf1b;!_0x29d585[_0x7262fc(0x610)](_0x330df3)&&_0x29d585[_0x7262fc(0x821)](_0x330df3);}function _0x15813a(_0xa04034,_0x3f1678,_0x474f9b,_0x44d181,_0x7986d4,_0x1cd0de,_0x316848,{timestamp:timestamp=Date[_0x2abf1b(0x363)](),origin:origin=null}={}){const _0x1fea29=_0x2abf1b;_0x13a089(_0xa04034);const _0x26b7d2=_0x474f9b+'@'+_0x44d181+'@'+_0x7986d4,_0x596774={'sourceType':_0x474f9b,'sourceKey':_0x44d181,'fieldPath':_0x7986d4,'targetType':_0x1cd0de,'targetKey':_0x316848,'timestamp':timestamp,'origin':origin},_0x147d45=_0xa04034[_0x1fea29(0x68d)](_0x330df3)[_0x1fea29(0x1d2)],_0x4f575d=_0x147d45[_0x1fea29(0x65c)](_0x26b7d2),_0x200ac8=_0x4f575d?_0x4f575d[_0x1fea29(0x808)]+0x1:0x1;_0x147d45[_0x1fea29(0x7e3)](_0x26b7d2,_0x596774,_0x200ac8),_0xa04034[_0x1fea29(0x5a5)]({'id':_0x1fea29(0x653)+_0x330df3+'@'+_0x26b7d2,'type':_0x330df3,'key':_0x26b7d2,'action':_0x285c54['PUT'],'timestamp':timestamp,'txnId':_0x3f1678?.['id'],'origin':origin},_0x4f575d?.['value'],_0x596774),_0xa04034['events'][_0x1fea29(0x88d)](_0x4f256b[_0x1fea29(0x589)],{'sourceType':_0x474f9b,'sourceKey':_0x44d181,'fieldPath':_0x7986d4,'targetType':_0x1cd0de,'targetKey':_0x316848,'env':_0xa04034[_0x1fea29(0x761)]});}function _0x53c39b(_0x407900,_0x45db32,_0x410566,_0x138ea6,_0x6f1034,{timestamp:timestamp=Date['now'](),origin:origin=null}={}){const _0x48ffef=_0x2abf1b;if(!_0x407900['hasType'](_0x330df3))return;const _0x8dcfeb=_0x410566+'@'+_0x138ea6+'@'+_0x6f1034,_0x498d7e=_0x407900[_0x48ffef(0x68d)](_0x330df3)[_0x48ffef(0x1d2)],_0x3d184e=_0x498d7e['getEntry'](_0x8dcfeb);if(!_0x3d184e)return;_0x498d7e[_0x48ffef(0x7c0)](_0x8dcfeb),_0x407900[_0x48ffef(0x5a5)]({'id':_0x48ffef(0x653)+_0x330df3+'@'+_0x8dcfeb,'type':_0x330df3,'key':_0x8dcfeb,'action':_0x285c54[_0x48ffef(0x1fe)],'timestamp':timestamp,'txnId':_0x45db32?.['id'],'origin':origin},_0x3d184e[_0x48ffef(0x883)],undefined),_0x407900[_0x48ffef(0x3df)][_0x48ffef(0x88d)](_0x4f256b[_0x48ffef(0x622)],{'sourceType':_0x410566,'sourceKey':_0x138ea6,'fieldPath':_0x6f1034,'env':_0x407900[_0x48ffef(0x761)]});}function _0x1592cc(_0x10b256,_0x2c8523,_0x21e0d8,_0x198632,_0x17c348={}){const _0x5b3d91=_0x2abf1b;if(!_0x10b256['hasType'](_0x330df3))return;const _0x14e60f=_0x10b256[_0x5b3d91(0x68d)](_0x330df3)[_0x5b3d91(0x1d2)],_0x4276d0=_0x21e0d8+'@'+_0x198632+'@',_0x183d6e=[];for(const {key:_0x19c82b,value:_0x4e837c}of _0x14e60f[_0x5b3d91(0x56b)]({'start':_0x4276d0,'end':_0x4276d0+'\uffff'})){if(_0x4e837c?.['sourceType']===_0x21e0d8&&_0x4e837c?.['sourceKey']===_0x198632)_0x183d6e[_0x5b3d91(0x66a)](_0x19c82b);}for(const _0x134c92 of _0x183d6e){const _0xff92e8=_0x14e60f[_0x5b3d91(0x65c)](_0x134c92);if(!_0xff92e8)continue;_0x14e60f[_0x5b3d91(0x7c0)](_0x134c92),_0x10b256['_logChange']({'id':_0x5b3d91(0x653)+_0x330df3+'@'+_0x134c92,'type':_0x330df3,'key':_0x134c92,'action':_0x285c54[_0x5b3d91(0x1fe)],'timestamp':_0x17c348[_0x5b3d91(0x2d4)]||Date[_0x5b3d91(0x363)](),'txnId':_0x2c8523?.['id'],'origin':_0x17c348[_0x5b3d91(0x2c0)]},_0xff92e8[_0x5b3d91(0x883)],undefined);}}function _0x113cca(_0x3f3297,_0x407b2d){const _0x47258e=_0x2abf1b;if(!_0x3f3297[_0x47258e(0x610)](_0x330df3))return;const _0x5cc7f6=_0x3f3297[_0x47258e(0x68d)](_0x330df3)['data'],_0x4e6a75=_0x407b2d+'@',_0x3807d4=[];for(const {key:_0x282bab,value:_0x2f2516}of _0x5cc7f6['getRange']({'start':_0x4e6a75,'end':_0x4e6a75+'\uffff'})){if(_0x2f2516?.[_0x47258e(0x73f)]===_0x407b2d)_0x3807d4[_0x47258e(0x66a)](_0x282bab);}for(const _0x444102 of _0x3807d4)_0x5cc7f6[_0x47258e(0x7c0)](_0x444102);}async function _0x3a9d3b(_0x1c33d1,_0x464154){const _0x308723=_0x2abf1b,_0x1817a8=_0x28c433(_0x1c33d1,_0x464154);if(_0x1817a8['length']===0x0)return;await _0x1c33d1[_0x308723(0x3c6)][_0x308723(0x3c9)](()=>{const _0x2d60b5=_0x308723;for(const {key:_0x5bbaac,value:_0x12e58c}of _0x1c33d1[_0x2d60b5(0x56b)](_0x464154)){_0x3eb7a3(_0x1c33d1,_0x464154,_0x5bbaac,_0x12e58c,null);const _0xed0e19=_0x316165(_0x1c33d1,_0x464154,_0x5bbaac,_0x12e58c);for(const _0x31e86b of _0xed0e19){_0x15813a(_0x1c33d1,null,_0x464154,_0x5bbaac,_0x31e86b[_0x2d60b5(0x61c)],_0x31e86b['targetType'],_0x31e86b[_0x2d60b5(0x356)]);}}});}const _0x578eaf=0x1388;async function _0x37df33(_0x2f9656){const _0xee661f=_0x2abf1b,_0x44cbbc=_0x2f9656[_0xee661f(0x3c7)]?.[_0xee661f(0x799)]?.['size']>0x0;if(!_0x44cbbc&&!_0x2f9656[_0xee661f(0x2c4)])return{'dropped':0x0,'written':0x0};const _0x2a4cf7=_0x50db0d(_0x2f9656);let _0x23e8b6=0x0;for(;;){const _0x2b4552=Array[_0xee661f(0x7f7)](_0x2a4cf7['getKeys']({'limit':_0x578eaf}));if(_0x2b4552[_0xee661f(0x2ea)]===0x0)break;let _0x177d2d=0x0;await _0x2f9656[_0xee661f(0x3c6)][_0xee661f(0x3c9)](()=>{for(const _0x51ff3b of _0x2b4552)if(_0x2a4cf7['removeSync'](_0x51ff3b))_0x177d2d++;});if(_0x177d2d===0x0)break;_0x23e8b6+=_0x177d2d;}let _0x49976c=0x0;for(const _0x3e6520 of _0x2f9656['_refCache']['outgoing'][_0xee661f(0x73c)]()){if(_0x3e6520[_0xee661f(0x42e)]('~')||!_0x2f9656[_0xee661f(0x610)](_0x3e6520))continue;const _0x4cfc2c=_0x28c433(_0x2f9656,_0x3e6520);await _0x2f9656[_0xee661f(0x3c6)][_0xee661f(0x3c9)](()=>{const _0x203f17=_0xee661f;for(const {key:_0xc661b4,value:_0x4070a7}of _0x2f9656[_0x203f17(0x56b)](_0x3e6520)){for(const _0x285e21 of _0x4cfc2c){const _0xf3a8f8=_0x104a58(_0x4070a7,_0x285e21[_0x203f17(0x61c)]);if(!_0x465d3a(_0xf3a8f8))continue;_0x2a4cf7['putSync'](_0xa1ee24(_0x285e21[_0x203f17(0x3b0)],_0xf3a8f8,_0x3e6520,_0xc661b4,_0x285e21['fieldPath']),0x1),_0x49976c++;}}});}return{'dropped':_0x23e8b6,'written':_0x49976c};}return okdbEnvRefs={'getFieldValue':_0x104a58,'setFieldValue':_0xd94b8,'refIndexKey':_0xa1ee24,'isRefTarget':_0x465d3a,'cascadeVisitKey':_0x1fd9c4,'extractRefs':_0x167bde,'rebuildRefCache':_0x12ebe0,'getTypeRefs':_0x28c433,'getIncomingRefs':_0x27e6d1,'getRefIndexDb':_0x50db0d,'updateRefIndex':_0x3eb7a3,'removeRefIndexEntries':_0x4c2d02,'refIndexRowsFor':_0x118af8,'rebuildRefIndex':_0x37df33,'checkForeignKeys':_0x316165,'processDeleteCascade':_0x4d9f1d,'setRefViolation':_0x15813a,'clearRefViolation':_0x53c39b,'clearRefViolationsForKey':_0x1592cc,'clearRefViolationsForType':_0x113cca,'syncRefIndex':_0x3a9d3b},okdbEnvRefs;}var hasRequiredOkdbSubscriptionsStore;function requireOkdbSubscriptionsStore(){const _0x950cf0=_0x5b9a04;if(hasRequiredOkdbSubscriptionsStore)return okdbSubscriptionsStore[_0x950cf0(0x4f1)];hasRequiredOkdbSubscriptionsStore=0x1;const _0x11995b=require$$0$4,{assertFilterAllowed:_0x23ec88}=requireOkdbQueryFilter(),{rebuildRefCache:_0x6f0141}=requireOkdbEnvRefs(),_0x4f716c=_0x950cf0(0x63e),_0x3fac9c=_0x950cf0(0x791),_0x1a4ac2=_0x950cf0(0x28d),_0x1ab6fe=[_0x950cf0(0x3e3),_0x950cf0(0x6eb),_0x950cf0(0x1e8)],_0x545c74=[_0x950cf0(0x3e3),'type'],_0x1a4ec7=0x5a*0x3e8,_0x5e1678=Math[_0x950cf0(0x412)](_0x1a4ec7/0x2);class _0x482dd3{constructor(_0x3c8a87,_0x535c8e={}){const _0x4b2dec=_0x950cf0;this[_0x4b2dec(0x861)]=_0x3c8a87,this[_0x4b2dec(0x630)]=Number[_0x4b2dec(0x545)](_0x535c8e[_0x4b2dec(0x630)])&&_0x535c8e['ttlMs']>0x0?_0x535c8e['ttlMs']:_0x1a4ec7,this[_0x4b2dec(0x7f5)]=Number[_0x4b2dec(0x545)](_0x535c8e[_0x4b2dec(0x7f5)])?_0x535c8e[_0x4b2dec(0x7f5)]:_0x5e1678,this[_0x4b2dec(0x7d9)]=null;}async[_0x950cf0(0x7d0)](){const _0x4c01e4=_0x950cf0;if(this[_0x4c01e4(0x7d9)])return this['_sub'];const _0x424b30=await this['okdb'][_0x4c01e4(0x629)](_0x4f716c,{'sync':![]});return await _0x424b30[_0x4c01e4(0x6b3)](_0x3fac9c,{'indexes':[_0x545c74]}),await _0x424b30[_0x4c01e4(0x6b3)](_0x1a4ac2),_0x424b30[_0x4c01e4(0x793)](_0x1a4ac2)?_0x6f0141(_0x424b30):await _0x424b30[_0x4c01e4(0x64a)](_0x1a4ac2,{'definition':{'type':_0x4c01e4(0x6ea),'properties':{'sessionId':{'type':_0x4c01e4(0x431),'ref':{'type':_0x3fac9c,'onDelete':_0x4c01e4(0x276)}},'dataEnv':{'type':_0x4c01e4(0x431)},'type':{'type':_0x4c01e4(0x431)},'key':{'type':_0x4c01e4(0x431)}},'required':['sessionId','dataEnv','type',_0x4c01e4(0x1e8)]},'enforce':!![]}),await _0x424b30['ensureType'](_0x1a4ac2,{'indexes':[_0x1ab6fe]}),await _0x424b30[_0x4c01e4(0x380)](_0x1a4ac2,_0x1ab6fe),await _0x424b30[_0x4c01e4(0x380)](_0x3fac9c,_0x545c74),this[_0x4c01e4(0x7d9)]=_0x424b30,_0x424b30;}[_0x950cf0(0x3dc)](){const _0x2d6f97=_0x950cf0;if(!this[_0x2d6f97(0x7d9)])throw new Error('subscriptions-store:\x20open()\x20not\x20called');return this[_0x2d6f97(0x7d9)];}async[_0x950cf0(0x1ae)]({sessionId:_0x3e7062,dataEnv:_0x322027,type:_0x403f67,filter:filter=null,ttlMs:_0xed4a18}={}){const _0x14cb5c=_0x950cf0,_0x8b738a=this[_0x14cb5c(0x3dc)]();_0x23ec88(filter);const _0x15e630=_0x3e7062!=null&&String(_0x3e7062)[_0x14cb5c(0x2ea)]>0x0?String(_0x3e7062):_0x11995b[_0x14cb5c(0x77f)](),_0x10a838=Number[_0x14cb5c(0x545)](_0xed4a18)&&_0xed4a18>0x0?_0xed4a18:this[_0x14cb5c(0x630)],_0xf46670=Date[_0x14cb5c(0x363)](),_0x539356={'sessionId':_0x15e630,'dataEnv':_0x322027,'type':_0x403f67,'filter':filter??null,'version':0x0,'createdAt':_0xf46670,'expiresAt':_0xf46670+_0x10a838};return await _0x8b738a[_0x14cb5c(0x425)](_0x3fac9c,_0x15e630,_0x539356,{'ttl':_0x10a838}),{'sessionId':_0x15e630,'version':0x0};}['getSession'](_0x5b2b51){const _0x1b34e0=_0x950cf0;if(!_0x5b2b51)return null;return this[_0x1b34e0(0x3dc)]()[_0x1b34e0(0x67f)](_0x3fac9c,String(_0x5b2b51))??null;}async[_0x950cf0(0x2e8)](_0x1e9921){const _0x7ca3f=_0x950cf0,_0xe6fc4a=this[_0x7ca3f(0x3dc)](),_0x2c85aa=String(_0x1e9921);if(!_0xe6fc4a[_0x7ca3f(0x67f)](_0x3fac9c,_0x2c85aa))return![];return await _0xe6fc4a['remove'](_0x3fac9c,_0x2c85aa),!![];}async[_0x950cf0(0x6ba)](_0x5a59f6){const _0x360947=_0x950cf0,_0x2e7867=this[_0x360947(0x3dc)](),_0x24f877=String(_0x5a59f6),_0x13ac88=_0x2e7867[_0x360947(0x67f)](_0x3fac9c,_0x24f877);if(!_0x13ac88)return null;const _0x44f9d0=(Number[_0x360947(0x545)](_0x13ac88[_0x360947(0x808)])?_0x13ac88[_0x360947(0x808)]:0x0)+0x1;return await _0x2e7867[_0x360947(0x425)](_0x3fac9c,_0x24f877,{..._0x13ac88,'version':_0x44f9d0}),_0x44f9d0;}async[_0x950cf0(0x522)](_0x53f9f,_0x5334fa){const _0x48bdd4=_0x950cf0,_0x34c13f=this[_0x48bdd4(0x3dc)](),_0x12a8ca=String(_0x53f9f);if(!_0x34c13f[_0x48bdd4(0x67f)](_0x3fac9c,_0x12a8ca))return![];const _0x1d1f27=Number[_0x48bdd4(0x545)](_0x5334fa)&&_0x5334fa>0x0?_0x5334fa:this[_0x48bdd4(0x630)];if(this[_0x48bdd4(0x2c9)](_0x12a8ca))return![];return await _0x34c13f[_0x48bdd4(0x8af)](_0x3fac9c,_0x12a8ca,_0x1d1f27),await this[_0x48bdd4(0x6c2)](_0x12a8ca,_0x1d1f27),!![];}async[_0x950cf0(0x352)](_0x5bdb89,_0x15afe8){const _0x2befbb=_0x950cf0,_0x4bb657=this['_env'](),_0x4f36e6=Number['isFinite'](_0x15afe8)&&_0x15afe8>0x0?_0x15afe8:this['ttlMs'],_0x460935=Date[_0x2befbb(0x363)](),_0x291d0d=[];for(const _0x3c3141 of _0x5bdb89||[]){const _0x2daecd=String(_0x3c3141),_0x49d28a=_0x4bb657['get'](_0x3fac9c,_0x2daecd);if(!_0x49d28a)continue;if(this['_isFar'](_0x2daecd,_0x460935))continue;_0x291d0d[_0x2befbb(0x66a)]({'id':_0x2daecd,'cur':_0x49d28a});}if(_0x291d0d[_0x2befbb(0x2ea)]===0x0)return[];return await _0x4bb657[_0x2befbb(0x354)](async _0x182de2=>{const _0x466922=_0x2befbb;for(const {id:_0x4d6a07,cur:_0x465331}of _0x291d0d){_0x182de2[_0x466922(0x425)](_0x3fac9c,_0x4d6a07,{..._0x465331,'expiresAt':_0x460935+_0x4f36e6}),_0x182de2[_0x466922(0x8af)](_0x3fac9c,_0x4d6a07,_0x4f36e6);}}),_0x291d0d[_0x2befbb(0x8a1)](_0x57f43e=>_0x57f43e['id']);}[_0x950cf0(0x2c9)](_0x5f1ba6,_0x1e98c4=Date['now']()){const _0x3644b6=_0x950cf0,_0x45923a=this[_0x3644b6(0x3dc)]()['getTTL'](_0x3fac9c,String(_0x5f1ba6));if(!_0x45923a)return![];return _0x45923a[_0x3644b6(0x695)]-_0x1e98c4>this[_0x3644b6(0x7f5)];}async[_0x950cf0(0x6c2)](_0x34624a,_0x388fea){const _0x26b179=_0x950cf0,_0x3faa3d=this[_0x26b179(0x3dc)](),_0x1e7e7e=_0x3faa3d[_0x26b179(0x67f)](_0x3fac9c,_0x34624a);if(!_0x1e7e7e)return;await _0x3faa3d[_0x26b179(0x425)](_0x3fac9c,_0x34624a,{..._0x1e7e7e,'expiresAt':Date[_0x26b179(0x363)]()+_0x388fea});}async[_0x950cf0(0x7c5)](_0x121be9,_0x2065b7,_0x1ca9dc){const _0x3202=_0x950cf0,_0x413c47=this[_0x3202(0x3dc)](),_0x2699f0=String(_0x121be9),_0x4c3ff2=_0x413c47['get'](_0x3fac9c,_0x2699f0);if(!_0x4c3ff2)throw new Error('subscriptions-store:\x20addInterest\x20on\x20unknown\x20session\x20'+_0x2699f0);const _0x2f06bf=_0x11995b['randomUUID']();return await _0x413c47[_0x3202(0x425)](_0x1a4ac2,_0x2f06bf,{'sessionId':_0x2699f0,'dataEnv':String(_0x4c3ff2[_0x3202(0x3e3)]),'type':String(_0x2065b7),'key':String(_0x1ca9dc)}),_0x2f06bf;}async['_commitSessionMutation'](_0x30243a,_0x41b51e,{retries:retries=0x8}={}){const _0x2b2a96=_0x950cf0,_0x3de63d=this[_0x2b2a96(0x3dc)]();for(let _0x29d144=0x0;;_0x29d144++){const _0x28f441=_0x3de63d[_0x2b2a96(0x65c)](_0x3fac9c,_0x30243a);if(!_0x28f441)return null;const _0x2868d6=_0x28f441['value'],_0x291a58=(Number[_0x2b2a96(0x545)](_0x2868d6['version'])?_0x2868d6[_0x2b2a96(0x808)]:0x0)+0x1,{sessionPatch:sessionPatch={},applyInterests:applyInterests=null}=_0x41b51e(_0x2868d6,_0x3de63d)||{};try{return await _0x3de63d[_0x2b2a96(0x354)](async _0x319ad4=>{const _0x203184=_0x2b2a96;applyInterests?.(_0x319ad4),_0x319ad4[_0x203184(0x425)](_0x3fac9c,_0x30243a,{..._0x2868d6,...sessionPatch,'version':_0x291a58},{'ifVersion':_0x28f441[_0x203184(0x808)]});}),_0x291a58;}catch(_0x374029){if(_0x374029?.[_0x2b2a96(0x604)]===_0x2b2a96(0x75b)&&_0x29d144<retries)continue;throw _0x374029;}}}async[_0x950cf0(0x77b)](_0x2bd74b,{add:add=[],remove:remove=[]}={}){const _0x29ffe1=_0x950cf0,_0x42e628=String(_0x2bd74b);return this[_0x29ffe1(0x3fe)](_0x42e628,(_0x14ac32,_0x25835a)=>{const _0x20df9f=_0x29ffe1,_0xc1dd60=String(_0x14ac32[_0x20df9f(0x3e3)]),_0x15b159=new Set((remove||[])['map'](_0x425238=>String(_0x425238[_0x20df9f(0x6eb)])+'\x00'+String(_0x425238[_0x20df9f(0x1e8)]))),_0x572a44=[];if(_0x15b159[_0x20df9f(0x5b2)]>0x0)for(const {key:_0x29de19,value:_0x5b2c0a}of _0x25835a[_0x20df9f(0x56b)](_0x1a4ac2,{})){if(!_0x5b2c0a||_0x5b2c0a[_0x20df9f(0x427)]!==_0x42e628)continue;if(_0x15b159[_0x20df9f(0x884)](_0x5b2c0a['type']+'\x00'+_0x5b2c0a['key']))_0x572a44[_0x20df9f(0x66a)](_0x29de19);}const _0x6f30f7=(add||[])[_0x20df9f(0x8a1)](_0x4ad0dc=>({'id':_0x11995b['randomUUID'](),'type':String(_0x4ad0dc[_0x20df9f(0x6eb)]),'key':String(_0x4ad0dc[_0x20df9f(0x1e8)])}));return{'applyInterests':_0x30019d=>{const _0x1bb6de=_0x20df9f;for(const _0x3cceb8 of _0x572a44)_0x30019d[_0x1bb6de(0x467)](_0x1a4ac2,_0x3cceb8);for(const _0x374339 of _0x6f30f7)_0x30019d[_0x1bb6de(0x425)](_0x1a4ac2,_0x374339['id'],{'sessionId':_0x42e628,'dataEnv':_0xc1dd60,'type':_0x374339[_0x1bb6de(0x6eb)],'key':_0x374339[_0x1bb6de(0x1e8)]});}};});}async[_0x950cf0(0x6c9)](_0x4d8795,_0xedf061){const _0x3c4f88=_0x950cf0;_0x23ec88(_0xedf061);const _0x536b16=String(_0x4d8795);return this[_0x3c4f88(0x3fe)](_0x536b16,()=>({'sessionPatch':{'filter':_0xedf061??null}}));}async[_0x950cf0(0x31b)](_0x5016c8,_0x58cfb1,_0x2c49c0){const _0x483447=_0x950cf0,_0x2d2edb=this[_0x483447(0x3dc)](),_0x5f13c5=String(_0x5016c8),_0x39be69=String(_0x58cfb1),_0x5cfc56=String(_0x2c49c0),_0x3ff8e3=[];for(const {key:_0x44611c,value:_0x10ca82}of _0x2d2edb[_0x483447(0x56b)](_0x1a4ac2,{})){if(_0x10ca82&&_0x10ca82[_0x483447(0x427)]===_0x5f13c5&&_0x10ca82[_0x483447(0x6eb)]===_0x39be69&&_0x10ca82['key']===_0x5cfc56)_0x3ff8e3['push'](_0x44611c);}for(const _0xf63117 of _0x3ff8e3)await _0x2d2edb[_0x483447(0x467)](_0x1a4ac2,_0xf63117);return _0x3ff8e3[_0x483447(0x2ea)];}async['replaceInterests'](_0x1aec09,_0x11acf7){const _0x2004bf=_0x950cf0,_0x3005aa=String(_0x1aec09);return this[_0x2004bf(0x3fe)](_0x3005aa,(_0x10b5f1,_0x2feadb)=>{const _0x502a1c=_0x2004bf,_0x1d4c92=String(_0x10b5f1[_0x502a1c(0x3e3)]),_0x37ab02=[];for(const {key:_0x2ad64b,value:_0x198a62}of _0x2feadb[_0x502a1c(0x56b)](_0x1a4ac2,{})){if(_0x198a62&&_0x198a62[_0x502a1c(0x427)]===_0x3005aa)_0x37ab02[_0x502a1c(0x66a)](_0x2ad64b);}const _0x57fafb=(_0x11acf7||[])['map'](_0xd967ad=>({'id':_0x11995b[_0x502a1c(0x77f)](),'type':String(_0xd967ad[_0x502a1c(0x6eb)]),'key':String(_0xd967ad['key'])}));return{'applyInterests':_0xfd4866=>{const _0x54b709=_0x502a1c;for(const _0x2c4b84 of _0x37ab02)_0xfd4866[_0x54b709(0x467)](_0x1a4ac2,_0x2c4b84);for(const _0x4b1aa2 of _0x57fafb)_0xfd4866[_0x54b709(0x425)](_0x1a4ac2,_0x4b1aa2['id'],{'sessionId':_0x3005aa,'dataEnv':_0x1d4c92,'type':_0x4b1aa2[_0x54b709(0x6eb)],'key':_0x4b1aa2['key']});}};});}['sessionsForKey'](_0x3bfa1a,_0x2584a7,_0x244cf9){const _0x5eeeb3=_0x950cf0,_0x17d918=this[_0x5eeeb3(0x3dc)](),_0x35924c=String(_0x3bfa1a),_0x126daa=String(_0x2584a7),_0x379279=String(_0x244cf9),_0x130b5a=new Set();for(const {value:_0x36553e}of _0x17d918['byIndex'](_0x1a4ac2,_0x1ab6fe,{'start':[_0x35924c,_0x126daa,_0x379279],'end':[_0x35924c,_0x126daa,_0x379279,'￿']})){if(_0x36553e&&_0x36553e[_0x5eeeb3(0x427)])_0x130b5a[_0x5eeeb3(0x261)](_0x36553e[_0x5eeeb3(0x427)]);}return[..._0x130b5a];}[_0x950cf0(0x880)](_0x40b7d5,_0x5d1797){const _0x1ddf84=_0x950cf0,_0x341084=this[_0x1ddf84(0x3dc)](),_0x112e67=String(_0x40b7d5),_0x4d53b9=String(_0x5d1797),_0x28c5db=[];for(const {value:_0x177733}of _0x341084[_0x1ddf84(0x296)](_0x3fac9c,_0x545c74,{'start':[_0x112e67,_0x4d53b9],'end':[_0x112e67,_0x4d53b9,'\uffff']})){if(!_0x177733||_0x177733[_0x1ddf84(0x3e3)]!==_0x112e67||_0x177733[_0x1ddf84(0x6eb)]!==_0x4d53b9)continue;if(_0x177733[_0x1ddf84(0x1b8)]==null)continue;_0x28c5db[_0x1ddf84(0x66a)]({'sessionId':_0x177733['sessionId'],'filter':_0x177733[_0x1ddf84(0x1b8)],'version':Number[_0x1ddf84(0x545)](_0x177733[_0x1ddf84(0x808)])?_0x177733[_0x1ddf84(0x808)]:0x0});}return _0x28c5db;}async[_0x950cf0(0x243)](){const _0x4777c5=_0x950cf0;return this[_0x4777c5(0x3dc)]()[_0x4777c5(0x391)]();}}return okdbSubscriptionsStore[_0x950cf0(0x4f1)]=_0x482dd3,okdbSubscriptionsStore['exports'][_0x950cf0(0x8b4)]=_0x4f716c,okdbSubscriptionsStore[_0x950cf0(0x4f1)][_0x950cf0(0x41f)]=_0x3fac9c,okdbSubscriptionsStore['exports'][_0x950cf0(0x294)]=_0x1a4ac2,okdbSubscriptionsStore[_0x950cf0(0x4f1)][_0x950cf0(0x687)]=_0x1ab6fe,okdbSubscriptionsStore[_0x950cf0(0x4f1)]['SESSION_TYPE_INDEX']=_0x545c74,okdbSubscriptionsStore[_0x950cf0(0x4f1)][_0x950cf0(0x3a0)]=_0x1a4ec7,okdbSubscriptionsStore[_0x950cf0(0x4f1)];}var version='3.1.9',require$$29={'version':version},okdbEnginesEnums,hasRequiredOkdbEnginesEnums;function requireOkdbEnginesEnums(){const _0x1b36ae=_0x5b9a04;if(hasRequiredOkdbEnginesEnums)return okdbEnginesEnums;hasRequiredOkdbEnginesEnums=0x1;const _0x5d57ea=_0x1b36ae(0x688),_0xdefb8b=0xa,_0xc0a244=Object['freeze']({'CREATED':_0x1b36ae(0x7cc),'ONLINE':_0x1b36ae(0x523),'STOPPED':'stopped','INACTIVE':'inactive','ERROR':_0x1b36ae(0x1b2),'REMOVED':_0x1b36ae(0x88c)}),_0x1d154b=Object[_0x1b36ae(0x413)]({'STARTED':_0x1b36ae(0x2e0),'STOPPED':_0x1b36ae(0x7b6),'ERROR':_0x1b36ae(0x1b2),'INSTALLED':_0x1b36ae(0x4a8),'UNINSTALLED':_0x1b36ae(0x37f)}),_0x21daec=Object[_0x1b36ae(0x413)](new Set([_0xc0a244[_0x1b36ae(0x2a5)],_0xc0a244['STOPPED'],_0xc0a244[_0x1b36ae(0x385)],_0xc0a244[_0x1b36ae(0x697)]]));function _0x417abc(_0x12aa56){const _0x5994cf=_0x1b36ae;return _0x12aa56?.[_0x5994cf(0x258)]===![]?_0xc0a244['STOPPED']:_0x5994cf(0x69e);}return okdbEnginesEnums={'TYPE_ENGINES':_0x5d57ea,'MAX_UPDATE_RETRIES':_0xdefb8b,'ENGINE_STATUS':_0xc0a244,'ENGINE_EVENTS':_0x1d154b,'UPDATABLE_STATUSES':_0x21daec,'durableOnlyEngineState':_0x417abc},okdbEnginesEnums;}var enums,hasRequiredEnums;function requireEnums(){const _0x4e3352=_0x5b9a04;if(hasRequiredEnums)return enums;hasRequiredEnums=0x1;const _0x42fd7a=Object[_0x4e3352(0x413)]({'EMBEDDER':_0x4e3352(0x260),'INDEXER':_0x4e3352(0x4e0),'SEARCH':_0x4e3352(0x5fb),'WORKER':'embed-worker'}),_0x207db6=Object[_0x4e3352(0x413)]({'PENDING':_0x4e3352(0x8db),'DONE':_0x4e3352(0x650),'FAILED':'failed','DELETED':_0x4e3352(0x617)}),_0x551c4d=Object[_0x4e3352(0x413)]({'INDEXER_READY':_0x4e3352(0x342),'INDEXER_FLUSHED':_0x4e3352(0x1d1),'INDEXER_DOC_DONE':'embeddings:indexer:doc:done','INDEXER_DOC_FAILED':'embeddings:indexer:doc:failed','INDEXER_DOC_QUEUED':_0x4e3352(0x69a),'STRATEGY_REGISTERED':_0x4e3352(0x1c4),'DOC_STATUS_CHANGE':_0x4e3352(0x57b),'PIPELINE_READY':_0x4e3352(0x74e)}),_0x44aebb=Object[_0x4e3352(0x413)]({'MODELS':_0x4e3352(0x204),'DOC_STATUS_PREFIX':_0x4e3352(0x518),'VEC_PREFIX':_0x4e3352(0x77a)});return enums={'ENGINE_TYPES':_0x42fd7a,'INDEXER_DOC_STATUS':_0x207db6,'EMBEDDINGS_EVENTS':_0x551c4d,'INTERNAL_TYPES':_0x44aebb},enums;}var okdbQueueValidate,hasRequiredOkdbQueueValidate;function requireOkdbQueueValidate(){const _0x552560=_0x5b9a04;if(hasRequiredOkdbQueueValidate)return okdbQueueValidate;hasRequiredOkdbQueueValidate=0x1;const _0xe449ca=Object[_0x552560(0x413)]({'PENDING':_0x552560(0x8db),'RUNNING':_0x552560(0x291),'DONE':_0x552560(0x650),'FAILED':'failed'}),_0x577474=Object['freeze']({'ACTIVE':_0x552560(0x561),'PAUSED':_0x552560(0x2fe),'DRAINING':_0x552560(0x516)}),_0x4886f4=Object['freeze']({'ENQUEUED':_0x552560(0x420),'DONE':_0x552560(0x19f),'FAILED':_0x552560(0x441),'RETRY':_0x552560(0x2e3),'RESCHEDULED':'queue:rescheduled','REMOVED':_0x552560(0x3f5),'RECONCILED':'queue:reconciled','CLEAR_PROGRESS':_0x552560(0x210),'CLEAR_DONE':_0x552560(0x1d4),'LOG':_0x552560(0x521)}),_0x334e1e=Object[_0x552560(0x413)]([_0x552560(0x215),_0x552560(0x34f),_0x552560(0x6c0),_0x552560(0x1b2)]),_0x1daf4e=0x1,_0x4548d9=0xc350,_0x8b32cf=0x400,_0x47a1e=0x800;function _0x241f19(_0xcea042){const _0x39f09e=_0x552560;return _0xcea042!=null&&typeof _0xcea042===_0x39f09e(0x6ea)&&(_0xcea042['constructor']===Object||Object[_0x39f09e(0x365)](_0xcea042)===null);}function _0x41a6b0(_0x38ae10,_0x2ff3d1,_0xcfd6a5,_0x2a1183){const _0x15e8a5=_0x552560;if(_0x38ae10==null)return _0x2ff3d1;const _0x20d34f=Number(_0x38ae10);if(!Number[_0x15e8a5(0x545)](_0x20d34f))return _0x2ff3d1;const _0xd69bfb=Math[_0x15e8a5(0x2f2)](_0x20d34f);if(_0xd69bfb<_0xcfd6a5)return _0xcfd6a5;if(_0xd69bfb>_0x2a1183)return _0x2a1183;return _0xd69bfb;}function _0x3ddf15(_0x188656){const _0x235f94=_0x552560;if(!_0x188656)return[];if(typeof _0x188656===_0x235f94(0x431))_0x188656=[_0x188656];if(!Array[_0x235f94(0x562)](_0x188656))throw new Error(_0x235f94(0x665));const _0x2b71cd=[],_0x2d9066=new Set();for(const _0x2962da of _0x188656){if(_0x2962da==null)continue;const _0x1c0532=String(_0x2962da)[_0x235f94(0x748)]();if(!_0x1c0532)continue;if(_0x1c0532['length']>0x80)throw new Error(_0x235f94(0x4e3));if(_0x2d9066[_0x235f94(0x884)](_0x1c0532))continue;_0x2d9066['add'](_0x1c0532),_0x2b71cd[_0x235f94(0x66a)](_0x1c0532);if(_0x2b71cd[_0x235f94(0x2ea)]>=0x20)break;}return _0x2b71cd;}function _0x3e6784(_0x359a52){const _0x1ef855=_0x552560;if(_0x359a52==null)return null;const _0x9b41bb=String(_0x359a52)[_0x1ef855(0x748)]();if(!_0x9b41bb)return null;if(_0x9b41bb[_0x1ef855(0x2ea)]>0x80)throw new Error('bucket\x20too\x20long');return _0x9b41bb;}function _0x2fbf0c(_0x44fd15,_0x10297b=0x1){const _0x29a50d=_0x552560;if(_0x44fd15==null)return[];if(typeof _0x44fd15==='string'){const _0x431f52=_0x3e6784(_0x44fd15);if(!_0x431f52)return[];return[{'id':_0x431f52,'tokens':_0x10297b}];}if(!Array[_0x29a50d(0x562)](_0x44fd15))throw new Error('buckets\x20must\x20be\x20array\x20or\x20string');const _0x2900d3=[],_0x3b619a=new Set();for(const _0x289673 of _0x44fd15){let _0x203151,_0x529c91;if(Array['isArray'](_0x289673))[_0x203151,_0x529c91]=_0x289673;else{if(_0x289673&&typeof _0x289673===_0x29a50d(0x6ea))({id:_0x203151,tokens:_0x529c91}=_0x289673);else{if(typeof _0x289673==='string')_0x203151=_0x289673,_0x529c91=_0x10297b;else continue;}}_0x203151=_0x3e6784(_0x203151);if(!_0x203151)continue;const _0x361b41=_0x529c91==null?_0x10297b:Math[_0x29a50d(0x2f2)](Number(_0x529c91));if(!Number[_0x29a50d(0x545)](_0x361b41)||_0x361b41<0x1)throw new Error(_0x29a50d(0x475)+_0x203151+_0x29a50d(0x28f));if(_0x361b41>0xf4240)throw new Error(_0x29a50d(0x475)+_0x203151+_0x29a50d(0x4cc));if(_0x3b619a[_0x29a50d(0x884)](_0x203151))throw new Error(_0x29a50d(0x845)+_0x203151);_0x3b619a[_0x29a50d(0x261)](_0x203151),_0x2900d3[_0x29a50d(0x66a)]({'id':_0x203151,'tokens':_0x361b41});}return _0x2900d3;}function _0x550ec4(_0xf568bf,_0x29578e=0x400){const _0x1b38c4=_0x552560;if(_0xf568bf==null)return null;const _0x2f3371=String(_0xf568bf)[_0x1b38c4(0x4bb)](0x0,_0x29578e);return _0x2f3371||null;}function _0x20ff99(_0x4c67d4){const _0x2e72b4=_0x552560;if(_0x4c67d4==null)return null;if(_0x4c67d4[_0x2e72b4(0x1e8)]!==undefined&&_0x4c67d4[_0x2e72b4(0x883)]!==undefined)return _0x4c67d4;return{'key':_0x4c67d4['id']??null,'value':_0x4c67d4};}function _0x313f70(_0x51e715){const _0x4bc652=_0x552560;let _0xbd80a7=_0x51e715;if(typeof _0x51e715==='string')_0xbd80a7={'message':_0x51e715};if(!_0x241f19(_0xbd80a7))throw new Error(_0x4bc652(0x6a7));const _0x458870=_0xbd80a7[_0x4bc652(0x372)]==null?_0x4bc652(0x34f):String(_0xbd80a7[_0x4bc652(0x372)])[_0x4bc652(0x3e0)]();if(!_0x334e1e['includes'](_0x458870))throw new Error(_0x4bc652(0x44e)+_0x458870);if(_0xbd80a7['message']==null)throw new Error('log\x20entry\x20message\x20required');const _0xf23d27=String(_0xbd80a7[_0x4bc652(0x2b8)])[_0x4bc652(0x4bb)](0x0,_0x8b32cf);let _0x56c05a=null;if(_0xbd80a7[_0x4bc652(0x1c0)]!=null){if(!_0x241f19(_0xbd80a7['fields']))throw new Error(_0x4bc652(0x495));if(JSON[_0x4bc652(0x212)](_0xbd80a7['fields'])[_0x4bc652(0x2ea)]>_0x47a1e)throw new Error('log\x20entry\x20fields\x20too\x20large\x20(>2KB\x20serialized)');_0x56c05a=_0xbd80a7[_0x4bc652(0x1c0)];}return{'level':_0x458870,'message':_0xf23d27,'fields':_0x56c05a,'ts':Date[_0x4bc652(0x363)]()};}function _0x15f7e0(_0x5f2b59){const _0x368be5=_0x552560;if(_0x5f2b59==null)return;if(!Number[_0x368be5(0x209)](_0x5f2b59)||_0x5f2b59<_0x1daf4e||_0x5f2b59>_0x4548d9)throw new Error(_0x368be5(0x3da)+_0x1daf4e+',\x20'+_0x4548d9+']');}function _0x2cc21d(_0x45dd78){const _0x160b3a=_0x552560;if(!_0x241f19(_0x45dd78))throw new Error('job\x20must\x20be\x20object');if(typeof _0x45dd78['id']!=='string'||_0x45dd78['id'][_0x160b3a(0x2ea)]<0x8)throw new Error(_0x160b3a(0x580));if(typeof _0x45dd78[_0x160b3a(0x6eb)]!=='string'||!_0x45dd78[_0x160b3a(0x6eb)])throw new Error('job.type\x20must\x20be\x20non-empty\x20string');if(!Object['values'](_0xe449ca)['includes'](_0x45dd78[_0x160b3a(0x71d)]))throw new Error(_0x160b3a(0x5b8)+_0x45dd78[_0x160b3a(0x71d)]);for(const _0x43a5d4 of['when',_0x160b3a(0x7cc),_0x160b3a(0x6d8)]){if(typeof _0x45dd78[_0x43a5d4]!=='number'||!Number[_0x160b3a(0x545)](_0x45dd78[_0x43a5d4]))throw new Error(_0x160b3a(0x1e2)+_0x43a5d4+_0x160b3a(0x8cf));}if(_0x45dd78[_0x160b3a(0x3bf)]!=null&&(typeof _0x45dd78[_0x160b3a(0x3bf)]!==_0x160b3a(0x216)||!Number['isFinite'](_0x45dd78[_0x160b3a(0x3bf)])))throw new Error(_0x160b3a(0x3ca));if(!Number['isInteger'](_0x45dd78[_0x160b3a(0x3c4)])||_0x45dd78[_0x160b3a(0x3c4)]<0x0)throw new Error(_0x160b3a(0x417));if(!Number[_0x160b3a(0x209)](_0x45dd78[_0x160b3a(0x1de)]))throw new Error(_0x160b3a(0x220));if(_0x45dd78[_0x160b3a(0x635)]!==null&&_0x45dd78['max_tries']!==Infinity&&(!Number['isInteger'](_0x45dd78[_0x160b3a(0x635)])||_0x45dd78[_0x160b3a(0x635)]<0x1))throw new Error(_0x160b3a(0x6ae));if(_0x45dd78['retry_delay']!=null&&(!Number[_0x160b3a(0x209)](_0x45dd78['retry_delay'])||_0x45dd78[_0x160b3a(0x642)]<0x0))throw new Error(_0x160b3a(0x754));if(_0x45dd78[_0x160b3a(0x1ad)]!=null&&(typeof _0x45dd78[_0x160b3a(0x1ad)]!==_0x160b3a(0x216)||_0x45dd78[_0x160b3a(0x1ad)]<0x1))throw new Error('job.backoff_multiplier\x20must\x20be\x20number\x20>=\x201');if(_0x45dd78[_0x160b3a(0x2d1)]!=null&&typeof _0x45dd78[_0x160b3a(0x2d1)]!==_0x160b3a(0x431))throw new Error('job.claim_id\x20must\x20be\x20string|null');if(_0x45dd78['claim_expires']!=null&&(typeof _0x45dd78[_0x160b3a(0x72a)]!==_0x160b3a(0x216)||!Number['isFinite'](_0x45dd78[_0x160b3a(0x72a)])))throw new Error('job.claim_expires\x20must\x20be\x20number|null');if(_0x45dd78[_0x160b3a(0x602)]!=null&&typeof _0x45dd78[_0x160b3a(0x602)]!==_0x160b3a(0x431))throw new Error(_0x160b3a(0x399));if(_0x45dd78[_0x160b3a(0x7bb)]!=null&&(!Number[_0x160b3a(0x209)](_0x45dd78[_0x160b3a(0x7bb)])||_0x45dd78[_0x160b3a(0x7bb)]<0x1))throw new Error(_0x160b3a(0x1e3));if(_0x45dd78[_0x160b3a(0x35d)]!=null){if(!Array[_0x160b3a(0x562)](_0x45dd78[_0x160b3a(0x35d)]))throw new Error('job.buckets\x20must\x20be\x20array|null');for(const _0xde53fb of _0x45dd78[_0x160b3a(0x35d)]){if(!_0xde53fb||typeof _0xde53fb!==_0x160b3a(0x6ea))throw new Error('job.buckets\x20entries\x20must\x20be\x20objects');if(typeof _0xde53fb['id']!==_0x160b3a(0x431)||!_0xde53fb['id']['trim']())throw new Error('job.buckets[].id\x20must\x20be\x20non-empty\x20string');if(!Number[_0x160b3a(0x209)](_0xde53fb[_0x160b3a(0x332)])||_0xde53fb[_0x160b3a(0x332)]<0x1)throw new Error('job.buckets[].tokens\x20must\x20be\x20int\x20>=\x201');}}if(_0x45dd78[_0x160b3a(0x3d1)]!=null&&typeof _0x45dd78['cron']!==_0x160b3a(0x431))throw new Error('job.cron\x20must\x20be\x20string|null');if(_0x45dd78[_0x160b3a(0x35c)]!=null&&typeof _0x45dd78['idempotency_key']!==_0x160b3a(0x431))throw new Error(_0x160b3a(0x214));if(!Array['isArray'](_0x45dd78['tags']))throw new Error(_0x160b3a(0x6c3));if(_0x45dd78[_0x160b3a(0x50b)]!=null&&typeof _0x45dd78[_0x160b3a(0x50b)]!==_0x160b3a(0x431))throw new Error(_0x160b3a(0x26f));if(_0x45dd78[_0x160b3a(0x4c6)]!=null&&typeof _0x45dd78[_0x160b3a(0x4c6)]!==_0x160b3a(0x431))throw new Error(_0x160b3a(0x3c1));if(_0x45dd78['status_message']!=null&&typeof _0x45dd78[_0x160b3a(0x473)]!==_0x160b3a(0x431))throw new Error(_0x160b3a(0x2d3));if(_0x45dd78[_0x160b3a(0x401)]!=null&&typeof _0x45dd78['error_stack']!=='string')throw new Error(_0x160b3a(0x511));for(const _0xfb19cf of[_0x160b3a(0x703),_0x160b3a(0x6d7)]){const _0xc4575=_0x45dd78[_0xfb19cf];if(_0xc4575!=null&&(!Number[_0x160b3a(0x209)](_0xc4575)||_0xc4575<0x0))throw new Error(_0x160b3a(0x1e2)+_0xfb19cf+'\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer');}_0x15f7e0(_0x45dd78[_0x160b3a(0x24b)]);}function _0x2f8498(_0x2919e7){const _0xcb3578=_0x552560;if(!_0x241f19(_0x2919e7))throw new Error('job\x20type\x20must\x20be\x20object');if(typeof _0x2919e7['id']!=='string'||!_0x2919e7['id']['trim']())throw new Error('job_type.id\x20must\x20be\x20non-empty\x20string');if(!Object[_0xcb3578(0x387)](_0x577474)['includes'](_0x2919e7[_0xcb3578(0x71d)]))throw new Error(_0xcb3578(0x766)+_0x2919e7[_0xcb3578(0x71d)]);if(_0x2919e7['max_concurrency']!=null&&(!Number['isInteger'](_0x2919e7[_0xcb3578(0x729)])||_0x2919e7[_0xcb3578(0x729)]<0x1))throw new Error(_0xcb3578(0x3d0));if(_0x2919e7[_0xcb3578(0x666)]!=null){if(!_0x241f19(_0x2919e7[_0xcb3578(0x666)]))throw new Error(_0xcb3578(0x231));const _0x284ea5=_0x2919e7[_0xcb3578(0x666)];if(_0x284ea5['max_tries']!=null&&(!Number[_0xcb3578(0x209)](_0x284ea5['max_tries'])||_0x284ea5['max_tries']<0x1))throw new Error(_0xcb3578(0x840));if(_0x284ea5['retry_delay']!=null&&(!Number[_0xcb3578(0x209)](_0x284ea5['retry_delay'])||_0x284ea5['retry_delay']<0x0))throw new Error(_0xcb3578(0x23a));if(_0x284ea5['backoff_multiplier']!=null&&(typeof _0x284ea5[_0xcb3578(0x1ad)]!==_0xcb3578(0x216)||_0x284ea5['backoff_multiplier']<0x1))throw new Error(_0xcb3578(0x7f6));if(_0x284ea5[_0xcb3578(0x1de)]!=null&&!Number['isInteger'](_0x284ea5['priority']))throw new Error(_0xcb3578(0x263));if(_0x284ea5['ttl']!=null&&(!Number[_0xcb3578(0x209)](_0x284ea5[_0xcb3578(0x73b)])||_0x284ea5[_0xcb3578(0x73b)]<0x0))throw new Error(_0xcb3578(0x88f));for(const _0x600dab of['done_ttl',_0xcb3578(0x6d7)]){if(_0x284ea5[_0x600dab]!=null&&(!Number['isInteger'](_0x284ea5[_0x600dab])||_0x284ea5[_0x600dab]<0x0))throw new Error(_0xcb3578(0x5ff)+_0x600dab+_0xcb3578(0x8b8));}if(_0x284ea5['buckets']!=null&&!Array[_0xcb3578(0x562)](_0x284ea5['buckets']))throw new Error(_0xcb3578(0x896));_0x15f7e0(_0x284ea5['logCap']);}if(_0x2919e7[_0xcb3578(0x887)]!=null){if(!_0x241f19(_0x2919e7[_0xcb3578(0x887)]))throw new Error(_0xcb3578(0x5fd));if(!_0x241f19(_0x2919e7['payload_schema'][_0xcb3578(0x34e)]))throw new Error(_0xcb3578(0x8cd));if(typeof _0x2919e7[_0xcb3578(0x887)]['enforce']!=='boolean')throw new Error(_0xcb3578(0x274));}for(const _0x59d8f8 of[_0xcb3578(0x3fb),_0xcb3578(0x8bd)]){if(typeof _0x2919e7[_0x59d8f8]!=='number'||!Number[_0xcb3578(0x545)](_0x2919e7[_0x59d8f8]))throw new Error(_0xcb3578(0x326)+_0x59d8f8+'\x20must\x20be\x20number');}}function _0x1c7669(_0x509b31){const _0x368480=_0x552560;if(!_0x241f19(_0x509b31))throw new Error(_0x368480(0x1f6));if(typeof _0x509b31['id']!=='string'||!_0x509b31['id'][_0x368480(0x748)]())throw new Error(_0x368480(0x2a4));if(!Number[_0x368480(0x209)](_0x509b31['tokens'])||_0x509b31[_0x368480(0x332)]<0x0)throw new Error(_0x368480(0x4e6));if(!Number[_0x368480(0x209)](_0x509b31[_0x368480(0x557)])||_0x509b31[_0x368480(0x557)]<0x0)throw new Error('bucket.capacity\x20must\x20be\x20int\x20>=\x200');if(_0x509b31[_0x368480(0x332)]>_0x509b31[_0x368480(0x557)])throw new Error(_0x368480(0x52b));if(!Number[_0x368480(0x209)](_0x509b31[_0x368480(0x751)])||_0x509b31[_0x368480(0x751)]<0x0)throw new Error(_0x368480(0x324));if(!Number[_0x368480(0x209)](_0x509b31[_0x368480(0x61e)])||_0x509b31[_0x368480(0x61e)]<0x0)throw new Error(_0x368480(0x87d));if(typeof _0x509b31['updated']!==_0x368480(0x216)||!Number['isFinite'](_0x509b31[_0x368480(0x6d8)]))throw new Error('bucket.updated\x20must\x20be\x20number');}return okdbQueueValidate={'STATUS':_0xe449ca,'JOB_TYPE_STATUS':_0x577474,'QUEUE_EVENTS':_0x4886f4,'LOG_LEVELS':_0x334e1e,'LOG_CAP_MIN':_0x1daf4e,'LOG_CAP_MAX':_0x4548d9,'clampInt':_0x41a6b0,'asNullableString':_0x550ec4,'normalizeResult':_0x20ff99,'normalizeTags':_0x3ddf15,'normalizeBucket':_0x3e6784,'normalizeBuckets':_0x2fbf0c,'normalizeLogEntry':_0x313f70,'validateJobShape':_0x2cc21d,'validateJobTypeShape':_0x2f8498,'validateBucketShape':_0x1c7669},okdbQueueValidate;}var okdbTimers,hasRequiredOkdbTimers;function requireOkdbTimers(){if(hasRequiredOkdbTimers)return okdbTimers;hasRequiredOkdbTimers=0x1;const _0x2a479a=0x2**0x1f-0x1;function _0x5216ad(_0x1cf336){if(!(_0x1cf336>0x0))return 0x0;return _0x1cf336>_0x2a479a?_0x2a479a:_0x1cf336;}function _0x4b8e25(_0x1bf218){return _0x1bf218===Infinity;}return okdbTimers={'MAX_TIMER_DELAY':_0x2a479a,'clampTimerDelay':_0x5216ad,'isNeverDelay':_0x4b8e25},okdbTimers;}var okdbChangefeed,hasRequiredOkdbChangefeed;function requireOkdbChangefeed(){const _0x149586=_0x5b9a04;if(hasRequiredOkdbChangefeed)return okdbChangefeed;hasRequiredOkdbChangefeed=0x1;const _0x2d1b59=require$$0$6,{clampTimerDelay:_0x4050ad}=requireOkdbTimers(),{EVENTS:_0x1b48af,CHANGE_ACTIONS:_0x3e0e10}=requireOkdbEnums(),{LOOP:_0x674e6f}=requireOkdbLoopMonitor(),_0x2aa411=Number(process.env.OKDB_CHANGEFEED_QUANTUM)||0x3e8,_0x1bf6e3=0x5,_0x4372af=0x2710;class _0x5c96b7 extends _0x2d1b59{constructor(_0x34d338,_0x465f73={}){const _0x519ef7=_0x48c6;super(),this[_0x519ef7(0x861)]=_0x34d338,this[_0x519ef7(0x1ed)]=_0x465f73[_0x519ef7(0x5d7)]??_0x2aa411,this['_flushDebounce']=_0x465f73['flushDebounce']??_0x1bf6e3,this[_0x519ef7(0x4d8)]=_0x465f73[_0x519ef7(0x552)]??_0x4372af,this['_started']=![],this[_0x519ef7(0x6e9)]=new Map(),this[_0x519ef7(0x227)]=new Map(),this[_0x519ef7(0x40b)]=new Map(),this[_0x519ef7(0x6ab)]=null,this[_0x519ef7(0x3b1)]=![],this[_0x519ef7(0x1b3)]=new Set(),this[_0x519ef7(0x632)]=new Set(),this[_0x519ef7(0x546)]=_0x1c2f9a=>this[_0x519ef7(0x5c7)](_0x1c2f9a),this[_0x519ef7(0x7b5)]=_0x4473e0=>this[_0x519ef7(0x25b)](_0x4473e0),this[_0x519ef7(0x4ef)]=_0x11127e=>this[_0x519ef7(0x1d8)](_0x11127e),this['_onStop']=()=>this[_0x519ef7(0x1b5)]();}[_0x149586(0x362)](){const _0x17f59c=_0x149586;if(this[_0x17f59c(0x859)])return;this[_0x17f59c(0x859)]=!![];for(const [_0x1092d7,_0x22105b]of this[_0x17f59c(0x861)][_0x17f59c(0x86f)]){if(_0x1092d7[_0x17f59c(0x42e)]('~'))continue;try{_0x22105b[_0x17f59c(0x48e)]();}catch{}}for(const [_0x41a602,_0x231308]of this['okdb']['_envs']){if(_0x41a602[_0x17f59c(0x42e)]('~'))continue;try{this[_0x17f59c(0x227)][_0x17f59c(0x5e7)](_0x41a602,_0x231308['getClock']()||0x0);}catch{}}const {events:_0x2b9da0}=this[_0x17f59c(0x861)];_0x2b9da0['on'](_0x1b48af[_0x17f59c(0x315)],this[_0x17f59c(0x7b5)]),_0x2b9da0['on'](_0x1b48af[_0x17f59c(0x6a5)],this[_0x17f59c(0x546)]),_0x2b9da0['on'](_0x1b48af[_0x17f59c(0x1a3)],this['_onItem']),_0x2b9da0['on'](_0x1b48af[_0x17f59c(0x7b4)],this[_0x17f59c(0x546)]),_0x2b9da0['on'](_0x1b48af[_0x17f59c(0x628)],this['_onPoke']),_0x2b9da0['once'](_0x1b48af[_0x17f59c(0x683)],this['_onStop']);}[_0x149586(0x1b5)](){const _0x2a641c=_0x149586;if(!this[_0x2a641c(0x859)])return;this[_0x2a641c(0x859)]=![];const {events:_0x237854}=this[_0x2a641c(0x861)];_0x237854[_0x2a641c(0x5f9)](_0x1b48af[_0x2a641c(0x315)],this[_0x2a641c(0x7b5)]),_0x237854[_0x2a641c(0x5f9)](_0x1b48af[_0x2a641c(0x6a5)],this[_0x2a641c(0x546)]),_0x237854[_0x2a641c(0x5f9)](_0x1b48af[_0x2a641c(0x1a3)],this[_0x2a641c(0x546)]),_0x237854[_0x2a641c(0x5f9)](_0x1b48af[_0x2a641c(0x7b4)],this[_0x2a641c(0x546)]),_0x237854[_0x2a641c(0x5f9)](_0x1b48af[_0x2a641c(0x628)],this['_onPoke']);try{_0x237854[_0x2a641c(0x5f9)](_0x1b48af['SYSTEM_STOPPED'],this[_0x2a641c(0x4bc)]);}catch{}this[_0x2a641c(0x6ab)]&&(clearTimeout(this[_0x2a641c(0x6ab)]),this[_0x2a641c(0x6ab)]=null),this[_0x2a641c(0x40b)][_0x2a641c(0x674)](),this[_0x2a641c(0x6e9)][_0x2a641c(0x674)](),this[_0x2a641c(0x227)][_0x2a641c(0x674)](),this[_0x2a641c(0x1b3)][_0x2a641c(0x674)](),this[_0x2a641c(0x632)]['clear']();}[_0x149586(0x1ab)](_0x51c441,_0x510d42,_0x1cada8,_0x362807){return _0x51c441+'\x00'+_0x510d42+'\x00'+_0x1cada8+'\x00'+_0x362807;}[_0x149586(0x7a5)](_0x299670,_0x7d4c18,_0x1abf57,_0x289793){const _0x3fac03=_0x149586,_0x5c7334=this[_0x3fac03(0x1ab)](_0x299670,_0x7d4c18,_0x1abf57,_0x289793);if(this['_seen']['has'](_0x5c7334))return![];this['_seen'][_0x3fac03(0x261)](_0x5c7334);if(this['_seen'][_0x3fac03(0x5b2)]>this[_0x3fac03(0x4d8)]){const _0x400acc=this['_seen'][_0x3fac03(0x387)]()[_0x3fac03(0x42d)]()[_0x3fac03(0x883)];this[_0x3fac03(0x1b3)]['delete'](_0x400acc);}return!![];}[_0x149586(0x25b)](_0x1efd18){const _0x76eec1=_0x149586;if(!this[_0x76eec1(0x859)]||!_0x1efd18)return;const {env:_0x349a8c,type:_0x47397b,key:_0xb4c3ee,clock:_0x1bfab1}=_0x1efd18;if(_0x349a8c==null||_0x47397b==null||_0xb4c3ee==null)return;if(typeof _0x349a8c===_0x76eec1(0x431)&&_0x349a8c[_0x76eec1(0x42e)]('~'))return;if(typeof _0x47397b===_0x76eec1(0x431)&&_0x47397b[_0x76eec1(0x42e)]('~'))return;this[_0x76eec1(0x632)][_0x76eec1(0x261)](this[_0x76eec1(0x1ab)](_0x349a8c,_0x47397b,_0xb4c3ee,_0x1bfab1)),this[_0x76eec1(0x632)]['size']>this['_dedupeMax']&&this['_pendingLocal'][_0x76eec1(0x597)](this[_0x76eec1(0x632)][_0x76eec1(0x387)]()[_0x76eec1(0x42d)]()['value']);}['_handleInProcess'](_0xa215c9){const _0x17f678=_0x149586;if(!this[_0x17f678(0x859)]||!_0xa215c9)return;const {env:_0x52cca4,type:_0x10019c,key:_0x470be6,clock:_0x2560bc,origin:_0x3ff750,action:_0x3b9fde,newValue:_0x55cd3a,oldValue:_0x66a917}=_0xa215c9;if(_0x52cca4==null||_0x10019c==null||_0x470be6==null)return;if(typeof _0x52cca4===_0x17f678(0x431)&&_0x52cca4['startsWith']('~'))return;if(typeof _0x10019c===_0x17f678(0x431)&&_0x10019c[_0x17f678(0x42e)]('~'))return;this[_0x17f678(0x632)]['delete'](this[_0x17f678(0x1ab)](_0x52cca4,_0x10019c,_0x470be6,_0x2560bc));if(!this[_0x17f678(0x7a5)](_0x52cca4,_0x10019c,_0x470be6,_0x2560bc))return;const _0x2f6a76=_0x3b9fde===_0x3e0e10['REMOVE']?'remove':_0x17f678(0x425);this[_0x17f678(0x88d)](_0x17f678(0x834),{'env':_0x52cca4,'type':_0x10019c,'key':_0x470be6,'op':_0x2f6a76,'clock':_0x2560bc,'origin':_0x3ff750,'value':_0x2f6a76==='remove'?null:_0x55cd3a,'prevValue':_0x66a917});}[_0x149586(0x1d8)](_0xd6f2b8){const _0x55b664=_0x149586;if(!this['_started'])return;if(!_0xd6f2b8||typeof _0xd6f2b8[_0x55b664(0x374)]!=='string'||typeof _0xd6f2b8[_0x55b664(0x6eb)]!=='string')return;const {env:_0x27ebdc,type:_0x5d19c0}=_0xd6f2b8;if(_0x27ebdc[_0x55b664(0x42e)]('~')||_0x5d19c0['startsWith']('~'))return;this[_0x55b664(0x40b)][_0x55b664(0x5e7)](_0x27ebdc+'\x00'+_0x5d19c0,{'env':_0x27ebdc,'type':_0x5d19c0}),this[_0x55b664(0x502)]();}[_0x149586(0x502)](){const _0x366217=_0x149586;if(this[_0x366217(0x6ab)])return;const _0x40c3ed=()=>{const _0x443776=_0x366217;this['_flushTimer']=null,this[_0x443776(0x449)]()['catch'](()=>{});};this['_flushTimer']=setTimeout(_0x40c3ed,_0x4050ad(this[_0x366217(0x435)]));}async[_0x149586(0x449)](){const _0x3f53ba=_0x149586;if(this[_0x3f53ba(0x3b1)]){this[_0x3f53ba(0x502)]();return;}this[_0x3f53ba(0x3b1)]=!![];try{const _0x2b3ebb=[...this['_pending'][_0x3f53ba(0x387)]()];this['_pending']['clear']();let _0x2afad3=![];for(const {env:_0x28ae9f,type:_0x16fd20}of _0x2b3ebb){try{const _0x317a45=await this[_0x3f53ba(0x3ab)](_0x28ae9f,_0x16fd20);if(_0x317a45)_0x2afad3=!![];}catch{this[_0x3f53ba(0x40b)][_0x3f53ba(0x5e7)](_0x28ae9f+'\x00'+_0x16fd20,{'env':_0x28ae9f,'type':_0x16fd20}),_0x2afad3=!![];}}if(_0x2afad3||this['_pending'][_0x3f53ba(0x5b2)]>0x0)this[_0x3f53ba(0x502)]();}finally{this[_0x3f53ba(0x3b1)]=![];}}async['_drainOne'](_0x3be0da,_0x3fcaa8){const _0x1435bd=_0x149586,_0x55b9d6=await this[_0x1435bd(0x861)]['_openEnvLazy'](_0x3be0da),_0x5186c3=_0x3be0da+'\x00'+_0x3fcaa8;!this[_0x1435bd(0x6e9)]['has'](_0x5186c3)&&(!this[_0x1435bd(0x227)][_0x1435bd(0x884)](_0x3be0da)&&(_0x55b9d6['_enableChangelog'](),this[_0x1435bd(0x227)][_0x1435bd(0x5e7)](_0x3be0da,_0x55b9d6['getClock']()||0x0)),this[_0x1435bd(0x6e9)][_0x1435bd(0x5e7)](_0x5186c3,this[_0x1435bd(0x227)][_0x1435bd(0x67f)](_0x3be0da)));const _0x10766e=this[_0x1435bd(0x6e9)]['get'](_0x5186c3),_0x2e963f=_0x55b9d6[_0x1435bd(0x50f)](_0x3fcaa8)||0x0;if(_0x2e963f<=_0x10766e)return![];const _0x4046f1=_0x10766e+this[_0x1435bd(0x1ed)],_0x2d9f34=Math['min'](_0x2e963f,_0x4046f1),_0x6c63bf=_0x674e6f[_0x1435bd(0x258)]?_0x674e6f[_0x1435bd(0x363)]():0x0,_0xb5ccce=Array[_0x1435bd(0x7f7)](_0x55b9d6['getChanges'](_0x3fcaa8,_0x10766e+0x1,_0x2d9f34));let _0x50f781=_0x10766e;for(const _0xd0c452 of _0xb5ccce){const {clock:_0x37970b,key:_0x2c94c7,action:_0xf5855d,origin:_0x1325c4}=_0xd0c452;if(_0x37970b>_0x50f781)_0x50f781=_0x37970b;if(_0x2c94c7==null)continue;if(this[_0x1435bd(0x632)][_0x1435bd(0x884)](this[_0x1435bd(0x1ab)](_0x3be0da,_0x3fcaa8,_0x2c94c7,_0x37970b)))continue;if(!this[_0x1435bd(0x7a5)](_0x3be0da,_0x3fcaa8,_0x2c94c7,_0x37970b))continue;let _0x2fe6a6,_0x3c1f14;if(_0xf5855d===_0x3e0e10[_0x1435bd(0x1fe)])_0x2fe6a6=_0x1435bd(0x467),_0x3c1f14=null;else{const _0x14feb4=_0x55b9d6['get'](_0x3fcaa8,_0x2c94c7);_0x14feb4==null?(_0x2fe6a6=_0x1435bd(0x467),_0x3c1f14=null):(_0x2fe6a6='put',_0x3c1f14=_0x14feb4);}this[_0x1435bd(0x88d)](_0x1435bd(0x834),{'env':_0x3be0da,'type':_0x3fcaa8,'key':_0x2c94c7,'op':_0x2fe6a6,'clock':_0x37970b,'origin':_0x1325c4,'value':_0x3c1f14});}if(_0x674e6f[_0x1435bd(0x258)])_0x674e6f[_0x1435bd(0x455)](_0x1435bd(0x7b0)+_0x3be0da+':'+_0x3fcaa8,_0x674e6f[_0x1435bd(0x363)]()-_0x6c63bf,'n='+_0xb5ccce[_0x1435bd(0x2ea)]);return this['_cursors'][_0x1435bd(0x5e7)](_0x5186c3,Math[_0x1435bd(0x885)](_0x50f781,_0x2d9f34)),_0x55b9d6[_0x1435bd(0x50f)](_0x3fcaa8)>_0x2d9f34;}['status'](){const _0x30ae2f=_0x149586;return{'started':this['_started'],'quantum':this['_quantum'],'flushDebounce':this['_flushDebounce'],'cursors':Object['fromEntries']([...this['_cursors'][_0x30ae2f(0x453)]()]['map'](([_0x527160,_0x25de70])=>[_0x527160[_0x30ae2f(0x1ec)]('\x00',':'),_0x25de70])),'pending':this[_0x30ae2f(0x40b)][_0x30ae2f(0x5b2)],'seen':this['_seen'][_0x30ae2f(0x5b2)]};}}return _0x5c96b7[_0x149586(0x6bd)]=_0x2aa411,okdbChangefeed={'OKDBChangefeed':_0x5c96b7},okdbChangefeed;}var okdbRelay,hasRequiredOkdbRelay;function requireOkdbRelay(){const _0x2a389c=_0x5b9a04;if(hasRequiredOkdbRelay)return okdbRelay;hasRequiredOkdbRelay=0x1;const {EVENTS:_0x2e9e25}=requireOkdbEnums(),_0x82fd07=new Set([_0x2e9e25[_0x2a389c(0x6a5)],_0x2e9e25[_0x2a389c(0x1a3)],_0x2e9e25[_0x2a389c(0x7b4)]]),{ENGINE_EVENTS:_0x5a9322}=requireOkdbEnginesEnums(),{EMBEDDINGS_EVENTS:_0x95c9e2}=requireEnums(),{QUEUE_EVENTS:_0x1d5205}=requireOkdbQueueValidate(),_0x23bd56=Object[_0x2a389c(0x387)](_0x2e9e25),_0x1363a9=Object[_0x2a389c(0x387)](_0x5a9322)[_0x2a389c(0x8a1)](_0x50a5e4=>_0x2a389c(0x573)+_0x50a5e4),_0x57f457=Object[_0x2a389c(0x387)](_0x95c9e2),_0x15f050=Object[_0x2a389c(0x387)](_0x1d5205),_0x43a048=[_0x2a389c(0x1ea),_0x2a389c(0x43d),'processor:error',_0x2a389c(0x84c),_0x2a389c(0x27f),_0x2a389c(0x526)],_0x2f02fc=[..._0x23bd56,..._0x1363a9,..._0x57f457,..._0x15f050,..._0x43a048,'log'],_0x4a2be6=new Set(_0x2f02fc),_0x1249d6=new Set([_0x2e9e25[_0x2a389c(0x6a5)],_0x2e9e25[_0x2a389c(0x1a3)],_0x2e9e25['ITEM_REMOVE'],_0x2e9e25['TXN_START'],_0x2e9e25['TXN_END'],_0x2e9e25['TXN_ROLLBACK'],_0x2e9e25[_0x2a389c(0x7f0)],_0x2e9e25[_0x2a389c(0x36a)],_0x95c9e2['INDEXER_DOC_DONE'],_0x95c9e2[_0x2a389c(0x206)],_0x95c9e2['INDEXER_DOC_QUEUED'],_0x95c9e2[_0x2a389c(0x615)],_0x2a389c(0x43d)]),_0x4c2439=_0x2f02fc[_0x2a389c(0x1b8)](_0x2d2298=>_0x2d2298===_0x2a389c(0x746)||!_0x1249d6[_0x2a389c(0x884)](_0x2d2298)),_0x528586=0x14,_0x49bd3e=0xc8;class _0x4e6210{constructor(_0x59c5e8,_0x497493={}){const _0x344a4f=_0x2a389c;this[_0x344a4f(0x861)]=_0x59c5e8,this[_0x344a4f(0x3d5)]=_0x497493['maxConnections']??_0x528586,this[_0x344a4f(0x4c7)]=_0x497493[_0x344a4f(0x7d3)]??_0x49bd3e,this[_0x344a4f(0x4ca)]=new Set(),this['_buffer']=[],this[_0x344a4f(0x471)]=[],this[_0x344a4f(0x616)]=null,this[_0x344a4f(0x44a)]=![],this[_0x344a4f(0x837)]=null,this[_0x344a4f(0x32e)]=null;}[_0x2a389c(0x593)](){const _0x2a15df=_0x2a389c;if(this[_0x2a15df(0x44a)])return;this[_0x2a15df(0x44a)]=!![];const {okdb:_0x34f650}=this;this[_0x2a15df(0x616)]=_0x34f650['log'][_0x2a15df(0x593)](_0x26567c=>this[_0x2a15df(0x872)](_0x2a15df(0x746),_0x26567c));for(const _0x14dc03 of _0x2f02fc){if(_0x14dc03===_0x2a15df(0x746))continue;const _0x366db0=_0x82fd07[_0x2a15df(0x884)](_0x14dc03),_0x4049b6=_0x3ff653=>{const _0x7981a8=_0x2a15df;if(_0x366db0&&this[_0x7981a8(0x837)])return;this[_0x7981a8(0x872)](_0x14dc03,_0x3ff653??{});};_0x34f650['events']['on'](_0x14dc03,_0x4049b6),this['_listeners'][_0x2a15df(0x66a)]({'event':_0x14dc03,'handler':_0x4049b6});}this[_0x2a15df(0x4bc)]=()=>this[_0x2a15df(0x66f)](),_0x34f650[_0x2a15df(0x3df)][_0x2a15df(0x30c)](_0x2e9e25[_0x2a15df(0x683)],this['_onStop']);}[_0x2a389c(0x66f)](){const _0x39e4a9=_0x2a389c;if(!this[_0x39e4a9(0x44a)])return;if(this[_0x39e4a9(0x4bc)]){try{this['okdb']['events'][_0x39e4a9(0x5f9)](_0x2e9e25[_0x39e4a9(0x683)],this[_0x39e4a9(0x4bc)]);}catch{}this['_onStop']=null;}this['_detachLog']?.(),this[_0x39e4a9(0x616)]=null;for(const {event:_0xb71db6,handler:_0x24da72}of this[_0x39e4a9(0x471)]){try{this[_0x39e4a9(0x861)][_0x39e4a9(0x3df)][_0x39e4a9(0x5f9)](_0xb71db6,_0x24da72);}catch{}}this[_0x39e4a9(0x471)]=[];for(const _0x2e7fd3 of this[_0x39e4a9(0x4ca)]){try{_0x2e7fd3[_0x39e4a9(0x7ba)]?.();}catch{}}this['_connections'][_0x39e4a9(0x674)](),this[_0x39e4a9(0x403)](),this[_0x39e4a9(0x44a)]=![];}[_0x2a389c(0x8c0)](_0x5a8c14){const _0x1622d0=_0x2a389c;if(!_0x5a8c14||this[_0x1622d0(0x837)]===_0x5a8c14)return;this[_0x1622d0(0x403)](),this['_feed']=_0x5a8c14,this[_0x1622d0(0x32e)]=_0x45170d=>{const _0x2092a2=_0x1622d0;if(!_0x45170d)return;const _0xb412d2=_0x45170d['op']===_0x2092a2(0x467)?_0x2e9e25[_0x2092a2(0x7b4)]:_0x2e9e25[_0x2092a2(0x1a3)];this[_0x2092a2(0x872)](_0xb412d2,_0x45170d);},_0x5a8c14['on'](_0x1622d0(0x834),this[_0x1622d0(0x32e)]);}[_0x2a389c(0x403)](){const _0x4577ed=_0x2a389c;if(this['_feed']&&this[_0x4577ed(0x32e)])try{this[_0x4577ed(0x837)][_0x4577ed(0x5f9)](_0x4577ed(0x834),this[_0x4577ed(0x32e)]);}catch{}this[_0x4577ed(0x837)]=null,this[_0x4577ed(0x32e)]=null;}[_0x2a389c(0x832)](_0x1098d3,_0x3f97d6){const _0x3f57cd=_0x2a389c;if(!_0x4a2be6[_0x3f57cd(0x884)](_0x1098d3))return;this[_0x3f57cd(0x872)](_0x1098d3,_0x3f97d6??{});}[_0x2a389c(0x306)](_0x1f40cf,_0x4fdb51,_0x28a96b){const _0x47eaad=_0x2a389c;if(this[_0x47eaad(0x4ca)]['size']>=this[_0x47eaad(0x3d5)])return _0x4fdb51(_0x47eaad(0x8ae),{'message':_0x47eaad(0x69c),'code':'RELAY_FULL'}),()=>{};const _0x582d33=this[_0x47eaad(0x803)](_0x1f40cf),_0x141d70={'send':_0x4fdb51,'filter':_0x582d33,'close':_0x28a96b??null};this['_connections'][_0x47eaad(0x261)](_0x141d70);for(const {event:_0x21de80,data:_0x1e041c}of this['_buffer']){if(_0x582d33[_0x47eaad(0x884)](_0x21de80))try{_0x4fdb51(_0x21de80,_0x1e041c);}catch{}}return()=>this[_0x47eaad(0x4ca)][_0x47eaad(0x597)](_0x141d70);}['ensureFeed'](){const _0x1f0097=_0x2a389c;if(this[_0x1f0097(0x837)])return this[_0x1f0097(0x837)];const {OKDBChangefeed:_0x57d380}=requireOkdbChangefeed(),_0x5a534a=new _0x57d380(this[_0x1f0097(0x861)]);_0x5a534a[_0x1f0097(0x362)](),this[_0x1f0097(0x8c0)](_0x5a534a);if(this[_0x1f0097(0x861)]&&!this[_0x1f0097(0x861)]['_changefeed'])this['okdb'][_0x1f0097(0x6ec)]=_0x5a534a;return this[_0x1f0097(0x837)];}get[_0x2a389c(0x482)](){const _0x40472f=_0x2a389c;return this[_0x40472f(0x4ca)]['size'];}[_0x2a389c(0x3fc)](){const _0x2d10c8=_0x2a389c;return{'connections':this[_0x2d10c8(0x482)],'bufferSize':this[_0x2d10c8(0x58c)][_0x2d10c8(0x2ea)],'attached':this[_0x2d10c8(0x44a)],'allEvents':_0x2f02fc['length'],'defaultEvents':_0x4c2439[_0x2d10c8(0x2ea)]};}static get[_0x2a389c(0x3f8)](){return _0x2f02fc;}static get[_0x2a389c(0x724)](){return _0x4c2439;}static get[_0x2a389c(0x4bf)](){return[..._0x1249d6];}[_0x2a389c(0x803)](_0xae377d){const _0x37325b=_0x2a389c;if(!_0xae377d||!_0xae377d['length'])return new Set(_0x4c2439);const _0x593f99=_0xae377d['filter'](_0x57190d=>_0x4a2be6[_0x37325b(0x884)](_0x57190d));return new Set(_0x593f99[_0x37325b(0x2ea)]?_0x593f99:_0x4c2439);}[_0x2a389c(0x872)](_0x1ab78f,_0x1b7ae1){const _0x1a8028=_0x2a389c,_0x58266d={..._0x1b7ae1,'_ts':_0x1b7ae1?.[_0x1a8028(0x2d5)]??_0x1b7ae1?.['ts']??Date[_0x1a8028(0x363)]()};this[_0x1a8028(0x58c)][_0x1a8028(0x66a)]({'event':_0x1ab78f,'data':_0x58266d});if(this['_buffer'][_0x1a8028(0x2ea)]>this[_0x1a8028(0x4c7)])this[_0x1a8028(0x58c)][_0x1a8028(0x89e)]();for(const _0x2d7290 of this[_0x1a8028(0x4ca)]){if(_0x2d7290['filter'][_0x1a8028(0x884)](_0x1ab78f))try{_0x2d7290[_0x1a8028(0x70f)](_0x1ab78f,_0x58266d);}catch{}}}}return okdbRelay=_0x4e6210,okdbRelay;}var hasRequiredLib;function requireLib(){const _0x1fda6f=_0x5b9a04;if(hasRequiredLib)return lib[_0x1fda6f(0x4f1)];return hasRequiredLib=0x1,function(_0xf8343c){const _0x4cbad5=_0x1fda6f,_0x21e816=require$$0$6,{load:_0x5e80ed}=require$$1$1,_0x4c3329=requireBridge(),_0x202428=requireWritebatch(),{Pumper:_0x403c9e}=requirePump(),{OKDBEnv:_0x1f891e,HIGH_SENTINEL:_0x4d3cce}=requireEnv(),{reclass:_0x2a9d6b,NotImplementedNative:_0x54535a,OKDBError:_0x1ef9eb,optionsArg:_0x3b564d,invalidArgument:_0x4bc9ef}=requireErrors(),{notImplemented:_0x5d9fb0}=requireUnsupported(),{OKDBHttp:_0x6b4dc6}=requireHttp(),{OKDBFts:_0x57cc79}=requireFts(),{OKDBEmbeddings:_0x429e62}=requireEmbeddings(),{OKDBAuth:_0xeea388}=requireAuth(),{OKDBSync:_0xd7c885}=requireSync(),{OKDBMigrate:_0x2995f4}=requireMigrate(),{OKDBFunctions:_0x951bc4}=requireFunctions(),{OKDBMcp:_0x191352}=requireMcp(),{OKDBEngines:_0x4e6562,OKDBPipelines:_0x1aab17}=requireEngines(),{makeMeta:_0x14e1ee,makeLicenses:_0x4e943c,makeLicenseChecker:_0x4c5c0f,makeProcesses:_0x2f8384}=requireSys();let _0x1a8921=null;function _0x5bbdbe(_0x42a968){const _0x4557e0=_0x48c6;if(!_0x1a8921){const {Unpackr:_0x8fd393}=require$$18;_0x1a8921=new _0x8fd393({'useRecords':![],'mapsAsObjects':!![],'copyBuffers':!![]});}return _0x1a8921[_0x4557e0(0x47d)](_0x42a968);}let _0x5d26a1=null;function _0x34fb75(_0x21e2a0,_0x237809){const _0xa5b7bd=_0x48c6;if(!_0x5d26a1){const {Unpackr:_0x3c75d6}=require$$18;_0x5d26a1=new _0x3c75d6({'copyBuffers':!![]});}return _0x5d26a1[_0xa5b7bd(0x47d)](_0x21e2a0,_0x237809);}const {encodeKey:_0x166215,KEY_BUF_SIZE:_0x5b5f64,NO_FAST:_0x49d857}=requireKeyenc(),_0x1e581c=0x40*0x400,_0x35f37f=0x4*0x400*0x400;function _0x4132ba(_0xe1f35d,_0x59ec34){const _0x53d87f=_0x48c6,_0x389bbb=_0xe1f35d[0x2],_0x79c2ab=_0x389bbb?(_0xe1f35d[_0x53d87f(0x2ea)]-0x3)/Math[_0x53d87f(0x743)](_0x389bbb):0x0,_0x17c5fa=new Array(_0x79c2ab);let _0x55ab54=0x3;if(_0x389bbb===0x2){for(let _0x4d4d95=0x0;_0x4d4d95<_0x79c2ab;_0x4d4d95++,_0x55ab54+=0x2)_0x17c5fa[_0x4d4d95]={'key':_0xe1f35d[_0x55ab54],'value':_0xe1f35d[_0x55ab54+0x1]};}else{if(_0x389bbb===0x3){for(let _0x3668f7=0x0;_0x3668f7<_0x79c2ab;_0x3668f7++,_0x55ab54+=0x3)_0x17c5fa[_0x3668f7]={'key':_0xe1f35d[_0x55ab54],'value':_0xe1f35d[_0x55ab54+0x1],'version':_0xe1f35d[_0x55ab54+0x2]};}else{if(_0x389bbb===-0x2){for(let _0x1a91ff=0x0;_0x1a91ff<_0x79c2ab;_0x1a91ff++,_0x55ab54+=0x2)_0x17c5fa[_0x1a91ff]={'clock':_0xe1f35d[_0x55ab54],..._0xe1f35d[_0x55ab54+0x1]};}else{if(_0x389bbb===0x4){for(let _0x31e9b3=0x0;_0x31e9b3<_0x79c2ab;_0x31e9b3++,_0x55ab54+=0x4)_0x17c5fa[_0x31e9b3]={'key':_0xe1f35d[_0x55ab54],'value':_0xe1f35d[_0x55ab54+0x1],'version':_0xe1f35d[_0x55ab54+0x2],'indexKey':_0xe1f35d[_0x55ab54+0x3]};}else{if(_0x79c2ab)throw new Error(_0x53d87f(0x4b8)+_0x389bbb);}}}}return _0x59ec34?[_0xe1f35d[0x0],_0x17c5fa,_0xe1f35d[0x1]]:_0x17c5fa;}let _0x2db22a=null;function _0x3ae8af(_0x1370a2,_0x21a352,_0x2d6436){const _0x5d5d03=_0x48c6;if(!_0x2db22a)_0x2db22a=requireDist()[_0x5d5d03(0x5e1)];const _0x1ca24d=new DataView(_0x1370a2[_0x5d5d03(0x317)],_0x1370a2[_0x5d5d03(0x3f6)],_0x21a352),_0x180060=_0x1ca24d[_0x5d5d03(0x61f)](0x10,!![]),_0x521b91=new Array(_0x180060);let _0x5aa4e8=0x14;for(let _0xb34a81=0x0;_0xb34a81<_0x180060;_0xb34a81++){const _0x81b1e0=_0x1370a2[_0x5aa4e8]|_0x1370a2[_0x5aa4e8+0x1]<<0x8;_0x5aa4e8+=0x2,_0x521b91[_0xb34a81]=_0x2db22a(_0x1370a2,_0x5aa4e8,_0x5aa4e8+_0x81b1e0),_0x5aa4e8+=_0x81b1e0;}return _0x2d6436?[_0x1ca24d[_0x5d5d03(0x814)](0x0,!![]),_0x521b91,_0x1ca24d[_0x5d5d03(0x814)](0x8,!![])]:_0x521b91;}const _0x3c01d5=requireOkdbLogger(),_0x2fb120=requireOkdbPlugins(),{OKDB_STATE:_0x23ca3c,EVENTS:_0x26f588}=requireOkdbEnums(),_0x1e0bf7=requireStatics();let _0x18f11c=null,_0x11ba52=![],_0x478d14=0x1;const _0x55afbd=new Map(),_0x245c69=new Set([_0x4cbad5(0x4cb),_0x4cbad5(0x338)]),_0x2a1650=_0x5cd99d=>!!_0x5cd99d&&_0x245c69[_0x4cbad5(0x884)](_0x5cd99d[_0x4cbad5(0x604)]),_0x10adb9=Number(process.env.OKDB_PENDING_RETRY_MS)>0x0?Number(process.env.OKDB_PENDING_RETRY_MS):0x1d4c0;function _0x53ddf8(){const _0x52bc4b=_0x4cbad5;!_0x11ba52&&(_0x4b69f4()['setBridge'](_0x4c3329[_0x52bc4b(0x564)]),_0x202428['install'](_0x4b69f4()),_0x11ba52=!![]);}function _0x4b69f4(){if(!_0x18f11c)_0x18f11c=_0x5e80ed();return _0x18f11c;}class _0x50c4db extends Map{constructor(_0x3b7014){const _0x529a1d=_0x4cbad5;super(),this[_0x529a1d(0x499)]=_0x3b7014;}['_sync'](){const _0x3d38ab=_0x4cbad5,_0x3a6fed=this[_0x3d38ab(0x499)];if(!_0x3a6fed[_0x3d38ab(0x70a)])return;let _0x1a594d;try{_0x1a594d=_0x3a6fed[_0x3d38ab(0x849)]('db',null,_0x3d38ab(0x7a9),[],![]);}catch{return;}for(const _0x42a09c of _0x1a594d)if(!super[_0x3d38ab(0x884)](_0x42a09c)&&_0x3a6fed[_0x3d38ab(0x849)]('db',null,_0x3d38ab(0x6fa),[_0x42a09c],![]))_0x3a6fed[_0x3d38ab(0x221)](_0x42a09c);}[_0x4cbad5(0x67f)](_0x504faa){const _0x4122e7=_0x4cbad5,_0x586c82=super[_0x4122e7(0x67f)](_0x504faa);if(_0x586c82!==undefined||typeof _0x504faa!=='string')return _0x586c82;const _0x1206b1=this[_0x4122e7(0x499)];if(_0x504faa===_0x4122e7(0x248))return _0x1206b1['_isOpen']?_0x1206b1[_0x4122e7(0x36b)][_0x4122e7(0x6f9)]??undefined:undefined;if(_0x1206b1[_0x4122e7(0x70a)]&&_0x1206b1[_0x4122e7(0x849)]('db',null,_0x4122e7(0x6fa),[_0x504faa],![]))return _0x1206b1[_0x4122e7(0x221)](_0x504faa);if(_0x1206b1['_isOpen']&&typeof _0x504faa===_0x4122e7(0x431)&&!_0x504faa[_0x4122e7(0x42e)]('~')){_0x1206b1[_0x4122e7(0x849)]('db',null,_0x4122e7(0x60d),[],![]);if(_0x1206b1[_0x4122e7(0x849)]('db',null,_0x4122e7(0x6fa),[_0x504faa],![]))return _0x1206b1[_0x4122e7(0x221)](_0x504faa);}return undefined;}['has'](_0x4d86ca){const _0x271a3f=_0x4cbad5;return this[_0x271a3f(0x67f)](_0x4d86ca)!==undefined;}get[_0x4cbad5(0x5b2)](){const _0xd07c2e=_0x4cbad5;return this[_0xd07c2e(0x1c1)](),super[_0xd07c2e(0x5b2)];}[_0x4cbad5(0x73c)](){const _0x13af13=_0x4cbad5;return this[_0x13af13(0x1c1)](),super[_0x13af13(0x73c)]();}[_0x4cbad5(0x387)](){const _0x4d6c38=_0x4cbad5;return this[_0x4d6c38(0x1c1)](),super['values']();}[_0x4cbad5(0x453)](){const _0x8ff84a=_0x4cbad5;return this[_0x8ff84a(0x1c1)](),super[_0x8ff84a(0x453)]();}['forEach'](_0x19b7b6,_0x646314){const _0x3f66b6=_0x4cbad5;return this[_0x3f66b6(0x1c1)](),super['forEach'](_0x19b7b6,_0x646314);}[Symbol['iterator']](){const _0x5ccb4d=_0x4cbad5;return this[_0x5ccb4d(0x1c1)](),super[Symbol['iterator']]();}}class _0x28ef46{constructor(_0x2ee4a5,_0x34f72a={}){const _0x49da3d=_0x4cbad5,_0xaa6a54=_0x4b69f4();this['path']=_0x2ee4a5,this[_0x49da3d(0x69b)]=_0x478d14++,this['_key']='db'+this[_0x49da3d(0x69b)],this[_0x49da3d(0x51c)]={..._0x1e0bf7[_0x49da3d(0x666)],..._0x34f72a,'auth':_0x34f72a[_0x49da3d(0x45d)]?{..._0x34f72a[_0x49da3d(0x45d)]}:undefined,'lmdb':{..._0x34f72a['lmdb']||{}}},this[_0x49da3d(0x3df)]=new _0x21e816(),this[_0x49da3d(0x3df)][_0x49da3d(0x857)](0x0),this['_subscribed']=new Set(),this[_0x49da3d(0x3df)]['on']('newListener',_0x3dd5c2=>this['_subscribeEvent'](_0x3dd5c2)),this[_0x49da3d(0x746)]=new _0x3c01d5(this),this[_0x49da3d(0x746)]['attachConsole'](),_0x4c3329[_0x49da3d(0x224)](this[_0x49da3d(0x4d5)],{'_deliver':(_0x167c36,_0x28d775)=>this[_0x49da3d(0x328)](_0x167c36,_0x28d775),'_log':_0x381cee=>{const _0x56dd2d=_0x49da3d;if(this[_0x56dd2d(0x891)])this[_0x56dd2d(0x891)][_0x56dd2d(0x66a)](_0x381cee);const _0x158e93=_0x381cee&&_0x381cee['level'];if(_0x158e93&&Object[_0x56dd2d(0x331)][_0x56dd2d(0x66c)][_0x56dd2d(0x601)](this[_0x56dd2d(0x746)],_0x158e93)&&typeof this[_0x56dd2d(0x746)][_0x158e93]==='function'){const _0x29d7d1=_0x381cee['context'];return this['log'][_0x158e93](_0x381cee[_0x56dd2d(0x4f8)],{..._0x381cee[_0x56dd2d(0x72f)]||{},..._0x29d7d1&&typeof _0x29d7d1===_0x56dd2d(0x6ea)?_0x29d7d1:{}});}return this[_0x56dd2d(0x746)][_0x56dd2d(0x892)](_0x381cee);}}),_0x53ddf8();try{const _0x10f87e={};if(typeof _0x49da3d(0x329)==='undefined'||_0x49da3d(0x329)!==_0x49da3d(0x329));const _0x5b8b13={..._0x34f72a,'_clusterWorker':require(_0x49da3d(0x236))[_0x49da3d(0x83a)],..._0x10f87e};this['_keyFns']={'instance':null,'envs':new Map()};typeof _0x34f72a['encryptionKey']===_0x49da3d(0x4d1)&&(this[_0x49da3d(0x368)][_0x49da3d(0x71b)]=_0x34f72a[_0x49da3d(0x235)],delete _0x5b8b13[_0x49da3d(0x235)]);if(_0x34f72a['encryptionKeys']&&typeof _0x34f72a['encryptionKeys']===_0x49da3d(0x6ea)){for(const [_0x387e70,_0xe87d13]of Object['entries'](_0x34f72a['encryptionKeys']))this['_keyFns']['envs'][_0x49da3d(0x5e7)](_0x387e70,_0xe87d13);}delete _0x5b8b13[_0x49da3d(0x5d3)],this['_native']=new _0xaa6a54[(_0x49da3d(0x239))](_0x2ee4a5,_0x5b8b13,this[_0x49da3d(0x4d5)]);}catch(_0x38a4d5){_0x4c3329['unregisterTarget'](this[_0x49da3d(0x4d5)]);throw _0x2a9d6b(_0x38a4d5);}this['state']=_0x23ca3c[_0x49da3d(0x581)],this[_0x49da3d(0x70a)]=![],this['_envs']=new _0x50c4db(this),this[_0x49da3d(0x89b)]=new _0x403c9e({'pump':()=>this[_0x49da3d(0x268)][_0x49da3d(0x395)]()}),this['_wb']=new _0x202428['WriteBatch'](this),this['_pumper'][_0x49da3d(0x690)]=()=>_0x4c3329[_0x49da3d(0x21d)](),_0x4c3329[_0x49da3d(0x25a)](()=>this[_0x49da3d(0x89b)][_0x49da3d(0x8cc)](),this),_0x55afbd[_0x49da3d(0x5e7)](this[_0x49da3d(0x69b)],this),this[_0x49da3d(0x1f1)]={},_0x4c3329[_0x49da3d(0x4a2)](this),this[_0x49da3d(0x370)]=new _0x57cc79(this),this[_0x49da3d(0x242)]=new _0x429e62(this),this[_0x49da3d(0x439)]=new _0x4e6562(this,null,null),this['pipelines']=new _0x1aab17(this,null),this[_0x49da3d(0x72f)]=_0x14e1ee(this),this[_0x49da3d(0x406)]=_0x4e943c(this),this['_license']=_0x4c5c0f(this),this[_0x49da3d(0x36b)]=_0x2f8384(this),this[_0x49da3d(0x7de)]=_0x52dea8(this),this['plugins']=new _0x2fb120(this),this['http']=new _0x6b4dc6(this),this['sync']=new _0xd7c885(this),this[_0x49da3d(0x45d)]=new _0xeea388(this),this[_0x49da3d(0x5b6)]=new _0x951bc4(this,null),this['mcp']=new _0x191352(this),this[_0x49da3d(0x668)]=_0x34f72a&&_0x34f72a['admin']===![]?null:_0x5d9fb0(_0x49da3d(0x668)),this[_0x49da3d(0x533)]=_0x5d9fb0(_0x49da3d(0x533)),this[_0x49da3d(0x551)]=new _0x2995f4(this);}['_call'](_0x287ecd,_0x16f51b,_0x5df9aa,_0x366754,_0x5096fc=!![]){const _0x2919a4=_0x4cbad5;if(_0x5096fc&&this['_wb']&&this['_wb']['queue'][_0x2919a4(0x2ea)])this[_0x2919a4(0x603)][_0x2919a4(0x250)]();try{return this[_0x2919a4(0x268)][_0x2919a4(0x601)](_0x287ecd,_0x16f51b,_0x5df9aa,_0x366754);}catch(_0x5f53b2){throw _0x2a9d6b(_0x5f53b2);}finally{if(_0x5096fc)this[_0x2919a4(0x89b)]['wake']();}}[_0x4cbad5(0x623)](_0x3f6e9b,_0x414be9,_0x1165a8,_0x2df8ba){const _0x1b1ba4=_0x4cbad5;let _0x730772;try{_0x730772=this[_0x1b1ba4(0x268)]['callPacked'](_0x3f6e9b,_0x414be9,_0x1165a8,_0x2df8ba);}catch(_0x10f278){throw _0x2a9d6b(_0x10f278);}return _0x730772 instanceof Uint8Array?_0x5bbdbe(_0x730772):_0x730772[0x0];}[_0x4cbad5(0x51e)](_0x38eb8c){const _0x25ad10=_0x4cbad5;let _0x495aec=this[_0x25ad10(0x2ae)];if(_0x495aec&&_0x38eb8c<=_0x495aec[_0x25ad10(0x2ea)])return _0x495aec;let _0x549485=_0x495aec?_0x495aec[_0x25ad10(0x2ea)]:_0x1e581c;while(_0x549485<_0x38eb8c)_0x549485*=0x2;if(_0x549485>_0x35f37f)return _0x495aec;return _0x495aec=this['_rbuf']=Buffer['allocUnsafeSlow'](_0x549485),this[_0x25ad10(0x268)][_0x25ad10(0x43e)](_0x495aec),_0x495aec;}[_0x4cbad5(0x41e)](_0x8d96db,_0x27b863,_0x14c67f){const _0x5dc2be=_0x4cbad5;if(!this['_rbuf'])this[_0x5dc2be(0x51e)](0x0);const _0x41ca48=this['_native'][_0x5dc2be(0x731)](_0x8d96db,_0x27b863,_0x14c67f);if(typeof _0x41ca48===_0x5dc2be(0x216))return _0x34fb75(this[_0x5dc2be(0x2ae)],_0x41ca48);if(_0x41ca48===undefined||_0x41ca48===null)return _0x41ca48;return this[_0x5dc2be(0x51e)](_0x41ca48['length']),_0x34fb75(_0x41ca48);}['_getFast'](_0x5489a1,_0x55b2e9,_0x2bed44){const _0x492d81=_0x4cbad5;let _0x134f1e=this[_0x492d81(0x31e)];if(!_0x134f1e){_0x134f1e=this[_0x492d81(0x31e)]=Buffer[_0x492d81(0x768)](_0x5b5f64),this[_0x492d81(0x268)][_0x492d81(0x6aa)](_0x134f1e),this[_0x492d81(0x850)]=new Map();if(!this[_0x492d81(0x2ae)])this[_0x492d81(0x51e)](0x0);}const _0x456878=_0x166215(_0x2bed44,_0x134f1e);if(_0x456878<0x0)return _0x49d857;let _0xebb589=this[_0x492d81(0x850)][_0x492d81(0x67f)](_0x5489a1);if(_0xebb589===undefined)this['_tids'][_0x492d81(0x5e7)](_0x5489a1,_0xebb589=new Map());let _0x2552f9=_0xebb589['get'](_0x55b2e9);if(_0x2552f9===undefined)_0xebb589['set'](_0x55b2e9,_0x2552f9=this[_0x492d81(0x268)][_0x492d81(0x620)](_0x5489a1,_0x55b2e9));if(_0x2552f9<0x0)return _0x49d857;const _0xe102d3=this[_0x492d81(0x268)][_0x492d81(0x4b4)](_0x2552f9,_0x456878);if(typeof _0xe102d3==='number')return _0x34fb75(this[_0x492d81(0x2ae)],_0xe102d3);if(_0xe102d3===undefined||_0xe102d3===null)return _0xe102d3;return this[_0x492d81(0x51e)](_0xe102d3['length']),_0x34fb75(_0xe102d3);}['_callRows'](_0x55455c,_0x6591c0,_0xbafb0a){const _0x494d7b=_0x4cbad5;if(!this['_rbuf'])this[_0x494d7b(0x51e)](0x0);let _0x15f2d2;try{_0x15f2d2=this['_native']['callRows'](_0x55455c,_0x6591c0,_0xbafb0a);}catch(_0x5b1830){throw _0x2a9d6b(_0x5b1830);}const _0x50fbe5=_0x6591c0==='pinned',_0x261e99=_0x50fbe5?_0xbafb0a[0x1]:_0x6591c0;let _0x319126=this[_0x494d7b(0x2ae)],_0x425473=_0x15f2d2;if(_0x15f2d2 instanceof Uint8Array)this[_0x494d7b(0x51e)](_0x15f2d2[_0x494d7b(0x2ea)]),_0x319126=_0x15f2d2,_0x425473=_0x15f2d2[_0x494d7b(0x2ea)];else{if(typeof _0x15f2d2!==_0x494d7b(0x216))return _0x15f2d2[0x0];}if(_0x261e99==='getKeys')return _0x3ae8af(_0x319126,_0x425473,_0x50fbe5);if(_0x261e99==='getMany')return _0x34fb75(_0x319126,_0x425473);return _0x4132ba(_0x34fb75(_0x319126,_0x425473),_0x50fbe5);}[_0x4cbad5(0x2f8)](_0xfc36b,_0x3045b2,_0x2421a4,_0x4445ec,_0x535d57=!![],_0x4c8708=!![]){const _0x331b56=_0x4cbad5,_0x20ae8f=()=>this[_0x331b56(0x3ef)](()=>this[_0x331b56(0x849)](_0xfc36b,_0x3045b2,_0x2421a4,_0x4445ec,_0x535d57));if(!_0x4c8708)return _0x20ae8f();return this['_retryPending'](_0x20ae8f);}['_retryPending'](_0x34e731){const _0x276422=_0x4cbad5;return _0x34e731()[_0x276422(0x2aa)](async _0x4b3a9d=>{const _0x29507d=_0x276422;if(!_0x2a1650(_0x4b3a9d))throw _0x4b3a9d;const _0x34957b=Date[_0x29507d(0x363)]()+_0x10adb9;let _0xab038a=0x1;while(_0x2a1650(_0x4b3a9d)&&Date['now']()<_0x34957b){await new Promise(_0x189d89=>setTimeout(_0x189d89,_0xab038a)),_0xab038a=Math[_0x29507d(0x8b1)](_0xab038a*0x2,0x14);try{return await _0x34e731();}catch(_0x21371a){_0x4b3a9d=_0x21371a;}}throw _0x4b3a9d;});}[_0x4cbad5(0x2f3)](_0x209895){const _0x36f5ad=_0x4cbad5;if(_0x4c3329[_0x36f5ad(0x47c)]())return Promise[_0x36f5ad(0x253)](_0x209895);return new Promise(_0x510f8b=>setImmediate(()=>_0x510f8b(_0x209895)));}['_settleWrite'](_0x3058c3){const _0x2cb2f5=_0x4cbad5;if(_0x4c3329[_0x2cb2f5(0x47c)]())return Promise[_0x2cb2f5(0x253)](_0x3058c3);return this[_0x2cb2f5(0x7fd)]()[_0x2cb2f5(0x6f0)](()=>_0x3058c3);}[_0x4cbad5(0x7fd)](){return new Promise(_0x29e263=>setImmediate(()=>{const _0x4781bd=_0x48c6;let _0x300452;try{_0x300452=this[_0x4781bd(0x268)]['flushTicket']();}catch{return _0x29e263();}_0x202428['whenSettled'](_0x300452,_0x29e263);}));}[_0x4cbad5(0x3ef)](_0x253d28){return new Promise((_0x5d9580,_0x133514)=>setImmediate(()=>{try{_0x5d9580(_0x253d28());}catch(_0x20f123){_0x133514(_0x20f123);}}));}[_0x4cbad5(0x44f)](_0x13a19a,_0x4e9c0c,_0x3377b6){return _0x39f2ed(_0x13a19a,_0x4e9c0c,_0x3377b6);}[_0x4cbad5(0x559)](_0x47776d){const _0x3c3aed=_0x4cbad5;if(typeof _0x47776d!==_0x3c3aed(0x431)||this[_0x3c3aed(0x3d2)][_0x3c3aed(0x884)](_0x47776d)||_0x47776d===_0x3c3aed(0x4a0)||_0x47776d===_0x3c3aed(0x609))return;this[_0x3c3aed(0x3d2)]['add'](_0x47776d);try{this['_native'][_0x3c3aed(0x601)](_0x3c3aed(0x3df),null,'subscribe',[this[_0x3c3aed(0x4d5)],_0x47776d]);}catch{}}[_0x4cbad5(0x328)](_0x5517d4,_0xd2a0cd){const _0x30a528=_0x4cbad5;this[_0x30a528(0x3df)][_0x30a528(0x88d)](_0x5517d4,_0xd2a0cd);}async[_0x4cbad5(0x57d)](){const _0x3956d1=_0x4cbad5,_0x3fd2d4=this[_0x3956d1(0x368)];if(_0x3fd2d4[_0x3956d1(0x71b)])this[_0x3956d1(0x305)](null,await _0x3fd2d4[_0x3956d1(0x71b)](null),!![]);for(const [_0x487e8a,_0x371061]of _0x3fd2d4[_0x3956d1(0x64e)])this[_0x3956d1(0x305)](_0x487e8a,typeof _0x371061===_0x3956d1(0x4d1)?await _0x371061(_0x487e8a):_0x371061,typeof _0x371061==='function');(_0x3fd2d4['instance']||[..._0x3fd2d4['envs']['values']()][_0x3956d1(0x23b)](_0x154766=>typeof _0x154766===_0x3956d1(0x4d1)))&&!this[_0x3956d1(0x457)]&&(this[_0x3956d1(0x457)]=_0x43d398=>{const _0xf1fe2a=_0x3956d1,_0x8fbcc6=_0x43d398&&_0x43d398['env']!=null?_0x43d398[_0xf1fe2a(0x374)]:null,_0x50153f=_0x8fbcc6==null?_0x3fd2d4[_0xf1fe2a(0x71b)]:_0x3fd2d4['envs'][_0xf1fe2a(0x67f)](_0x8fbcc6);if(typeof _0x50153f!==_0xf1fe2a(0x4d1))return;Promise[_0xf1fe2a(0x253)]()[_0xf1fe2a(0x6f0)](()=>_0x50153f(_0x8fbcc6))[_0xf1fe2a(0x6f0)](_0x355da8=>this[_0xf1fe2a(0x305)](_0x8fbcc6,_0x355da8,!![]))[_0xf1fe2a(0x2aa)](_0x582621=>this[_0xf1fe2a(0x746)][_0xf1fe2a(0x1b2)](_0xf1fe2a(0x496)+(_0x582621&&_0x582621[_0xf1fe2a(0x2b8)]),{'env':_0x8fbcc6}));},this[_0x3956d1(0x3df)]['on'](_0x3956d1(0x863),this[_0x3956d1(0x457)]));}[_0x4cbad5(0x305)](_0x5e383c,_0x1abc7d,_0xe8463e){const _0x55a87f=_0x4cbad5;if(_0x1abc7d==null)throw new _0x1ef9eb('encryption\x20key\x20function'+(_0x5e383c?'\x20of\x20env\x20\x22'+_0x5e383c+'\x22':'')+_0x55a87f(0x3fd),_0x55a87f(0x415));this[_0x55a87f(0x268)][_0x55a87f(0x601)]('db',null,_0x55a87f(0x736),[_0x5e383c,_0x1abc7d,!!_0xe8463e]);}async['changeEncryptionKey'](_0x3467e4){const _0x4dbe43=_0x4cbad5;this['_assertOpen']();const {env:env=null,to:_0x3120e3}=_0x3b564d(_0x3467e4),_0x52b6ba=typeof _0x3120e3===_0x4dbe43(0x4d1),_0x112255=_0x52b6ba?await _0x3120e3(env):_0x3120e3;if(_0x112255==null)throw _0x4bc9ef(_0x4dbe43(0x3e6),_0x4dbe43(0x3d6),_0x112255);const _0x59436d=this[_0x4dbe43(0x849)]('db',null,_0x4dbe43(0x8d1),[env,_0x112255,_0x52b6ba]);if(_0x52b6ba){if(env==null)this['_keyFns'][_0x4dbe43(0x71b)]=_0x3120e3;else this[_0x4dbe43(0x368)][_0x4dbe43(0x64e)][_0x4dbe43(0x5e7)](env,_0x3120e3);}return _0x59436d;}async['reencrypt'](_0x237067){const _0x5257bf=_0x4cbad5;this[_0x5257bf(0x556)]();const _0x5a8cfe=_0x3b564d(_0x237067);if(!_0x5a8cfe[_0x5257bf(0x374)])throw _0x4bc9ef(_0x5257bf(0x60c),_0x5257bf(0x543),_0x5a8cfe[_0x5257bf(0x374)]);let _0x4c65c0=_0x5a8cfe['to'];const _0x389edd=typeof _0x4c65c0===_0x5257bf(0x4d1);if(_0x389edd)_0x4c65c0=await _0x5a8cfe['to'](_0x5a8cfe[_0x5257bf(0x374)]);const _0x254236=await this[_0x5257bf(0x3ef)](()=>this[_0x5257bf(0x849)]('db',null,'reencrypt',[_0x5a8cfe[_0x5257bf(0x374)],'to'in _0x5a8cfe?_0x4c65c0:undefined,_0x389edd]));if(_0x389edd)this[_0x5257bf(0x368)]['envs'][_0x5257bf(0x5e7)](_0x5a8cfe['env'],_0x5a8cfe['to']);return _0x254236;}async[_0x4cbad5(0x7d0)](){const _0x1734f0=_0x4cbad5;if(this['state']===_0x23ca3c[_0x1734f0(0x479)])return;if(this[_0x1734f0(0x36e)]!==_0x23ca3c[_0x1734f0(0x581)])throw new _0x1ef9eb(_0x1734f0(0x56d),'INVALID_STATE',{'state':this[_0x1734f0(0x36e)]});this[_0x1734f0(0x36e)]=_0x23ca3c['STARTING'],this['_bootLog']=[];try{try{await this[_0x1734f0(0x57d)](),await this['_macro'](()=>this[_0x1734f0(0x268)][_0x1734f0(0x7d0)]());}catch(_0x876fbf){throw _0x2a9d6b(_0x876fbf);}}catch(_0x569c47){this[_0x1734f0(0x36e)]=_0x23ca3c[_0x1734f0(0x6ac)],this[_0x1734f0(0x891)]=null,this[_0x1734f0(0x6d0)]();throw _0x569c47;}this[_0x1734f0(0x70a)]=!![],this[_0x1734f0(0x36e)]=_0x23ca3c['STARTED'];try{this[_0x1734f0(0x849)]('db',null,_0x1734f0(0x553),[this[_0x1734f0(0x423)]['_plugins'][_0x1734f0(0x8a1)](_0x2197b9=>_0x2197b9[_0x1734f0(0x7e8)]?.[_0x1734f0(0x761)])[_0x1734f0(0x1b8)](Boolean)],![]),await this['plugins'][_0x1734f0(0x362)]();}catch(_0x2c1452){this['state']=_0x23ca3c['STOPPING'];try{this[_0x1734f0(0x268)][_0x1734f0(0x7ba)]();}catch{}this[_0x1734f0(0x36e)]=_0x23ca3c['STOPPED'],this['_isOpen']=![],this[_0x1734f0(0x6d0)]();throw _0x2c1452;}for(const _0xc9ed3c of this[_0x1734f0(0x849)]('db',null,_0x1734f0(0x7a9),[],![]))if(!_0xc9ed3c[_0x1734f0(0x42e)]('~'))this[_0x1734f0(0x221)](_0xc9ed3c);try{if(this[_0x1734f0(0x849)]('db',null,_0x1734f0(0x6fa),[_0x1734f0(0x462)],![])){this[_0x1734f0(0x5a0)]=this['_ensureEnv'](_0x1734f0(0x462));const _0x5995ce=new Set(this['log'][_0x1734f0(0x7c4)]);this[_0x1734f0(0x7a7)]=this[_0x1734f0(0x746)]['attachOKDB'](this[_0x1734f0(0x5a0)],this['id']);const _0xe0660d=[...this[_0x1734f0(0x746)][_0x1734f0(0x7c4)]][_0x1734f0(0x855)](_0x17b839=>!_0x5995ce[_0x1734f0(0x884)](_0x17b839)),_0x12df7c=this[_0x1734f0(0x849)]('db',null,_0x1734f0(0x6ed),[],![]);for(const _0x467da3 of(this[_0x1734f0(0x891)]??[])['slice'](_0x12df7c))_0xe0660d?.(_0x467da3);}}catch{}this[_0x1734f0(0x891)]=null,this[_0x1734f0(0x268)]['setWake'](()=>this[_0x1734f0(0x89b)]['wake']()),this[_0x1734f0(0x89b)]['start']();}get['_viewRebuildChain'](){const _0x195e84=()=>{const _0x10aede=_0x48c6;if(!this[_0x10aede(0x70a)])return![];for(const _0x393f01 of this[_0x10aede(0x849)]('db',null,_0x10aede(0x7a9),[],![])){if(!_0x393f01[_0x10aede(0x42e)]('~')&&this['_call']('views',_0x393f01,_0x10aede(0x4d3),[],![]))return!![];}return![];};return((async()=>{const _0x1698a9=_0x48c6;while(_0x195e84())await this[_0x1698a9(0x89b)][_0x1698a9(0x63d)](0xfa);})());}async['bootRuntimeDeclarations'](){const _0x367492=_0x4cbad5;return this[_0x367492(0x2f8)]('db',null,_0x367492(0x5f6),[]);}async[_0x4cbad5(0x7ba)](){const _0x11a356=_0x4cbad5;if(this['state']===_0x23ca3c[_0x11a356(0x6ac)])return;if(this[_0x11a356(0x36e)]!==_0x23ca3c[_0x11a356(0x479)])throw new _0x1ef9eb('Database\x20not\x20started',_0x11a356(0x797),{'state':this[_0x11a356(0x36e)]});this[_0x11a356(0x36e)]=_0x23ca3c[_0x11a356(0x1a2)],this[_0x11a356(0x70a)]=![];let _0x59efe4=null;if(this[_0x11a356(0x64d)]['servers'][_0x11a356(0x2ea)])try{await this[_0x11a356(0x64d)][_0x11a356(0x7ba)]();}catch(_0x18cc41){_0x59efe4=_0x18cc41;}if(this[_0x11a356(0x433)]){try{this[_0x11a356(0x433)][_0x11a356(0x403)](),this[_0x11a356(0x433)][_0x11a356(0x66f)]();}catch{}this[_0x11a356(0x433)]=null;}try{this[_0x11a356(0x6ec)]?.['stop']?.();}catch{}try{await this[_0x11a356(0x423)][_0x11a356(0x1b5)]();}catch(_0x20c3d2){_0x59efe4=_0x20c3d2;}for(const _0x3c91f7 of[...Map[_0x11a356(0x331)][_0x11a356(0x387)]['call'](this['_envs'])]){try{await _0x3c91f7[_0x11a356(0x893)]['stopAll']();}catch{}try{await _0x3c91f7[_0x11a356(0x439)][_0x11a356(0x1b5)]();}catch{}}for(const _0x52c4d9 of[()=>this['sync'][_0x11a356(0x1b5)](),()=>this['embeddings']['stop'](),()=>this[_0x11a356(0x370)]&&this[_0x11a356(0x370)][_0x11a356(0x1b5)]?.()]){try{await _0x52c4d9();}catch{}}const _0xd568fd=this[_0x11a356(0x51c)][_0x11a356(0x79a)]??0x7530,_0x3cb9d8=[];for(const _0x4c3d94 of[...Map[_0x11a356(0x331)][_0x11a356(0x387)]['call'](this[_0x11a356(0x86f)])]){if(_0x4c3d94['queue']?.['_workers']?.['size']>0x0)_0x3cb9d8[_0x11a356(0x66a)](_0x4c3d94[_0x11a356(0x675)][_0x11a356(0x790)](_0xd568fd));}if(_0x3cb9d8[_0x11a356(0x2ea)]>0x0)await Promise['allSettled'](_0x3cb9d8);try{this[_0x11a356(0x7a7)]?.();}catch{}this[_0x11a356(0x7a7)]=null;try{await this[_0x11a356(0x603)][_0x11a356(0x1a0)]();}catch{}this['_pumper']['stop']();try{await this[_0x11a356(0x3ef)](()=>this['_native']['close']());}catch(_0x33278a){_0x59efe4=_0x59efe4||_0x2a9d6b(_0x33278a);}this[_0x11a356(0x36e)]=_0x23ca3c[_0x11a356(0x6ac)],this[_0x11a356(0x6d0)](),Map[_0x11a356(0x331)]['clear'][_0x11a356(0x601)](this[_0x11a356(0x86f)]);if(_0x59efe4)throw _0x59efe4;}[_0x4cbad5(0x6d0)](){const _0x54e0db=_0x4cbad5;this['_pumper'][_0x54e0db(0x1b5)]();try{this[_0x54e0db(0x268)][_0x54e0db(0x4ea)](null);}catch{}try{this['_native'][_0x54e0db(0x38b)]();}catch{}this['_rbuf']=null,this[_0x54e0db(0x31e)]=null,this['_tids']=null,_0x4c3329[_0x54e0db(0x771)](this['_key']),_0x4c3329[_0x54e0db(0x505)](this),_0x55afbd[_0x54e0db(0x597)](this['_uid']);if(_0x4c3329['kickOwnedBy'](this)){const _0x52f927=[..._0x55afbd[_0x54e0db(0x387)]()][_0x54e0db(0x833)]();if(_0x52f927)_0x4c3329[_0x54e0db(0x25a)](()=>_0x52f927[_0x54e0db(0x89b)][_0x54e0db(0x8cc)](),_0x52f927);else _0x4c3329[_0x54e0db(0x25a)](()=>{},null);}}get['id'](){return this['_call']('db',null,'id',[],![]);}[_0x4cbad5(0x510)](_0x48a0fe){const _0x262cdd=_0x4cbad5;return this[_0x262cdd(0x374)](_0x262cdd(0x55b))[_0x262cdd(0x510)](_0x48a0fe);}get[_0x4cbad5(0x86c)](){const _0x292f28=_0x4cbad5;return this[_0x292f28(0x1f7)][_0x292f28(0x67f)](_0x292f28(0x811));}get['_nodePrivateKey'](){const _0x38b084=_0x4cbad5;return this[_0x38b084(0x1b9)][_0x38b084(0x207)];}get[_0x4cbad5(0x5d1)](){const _0x1b0db0=_0x4cbad5;return this[_0x1b0db0(0x1b9)][_0x1b0db0(0x5d1)];}get[_0x4cbad5(0x7df)](){const _0x23a73c=_0x4cbad5;if(!this['_isOpen']||!this[_0x23a73c(0x849)]('db',null,_0x23a73c(0x2b7),[],![]))return undefined;if(!this[_0x23a73c(0x284)]){const _0x50f69a=requireOkdbSubscriptionsStore(),_0x2def6c=new _0x50f69a(this,this['options']&&this[_0x23a73c(0x51c)][_0x23a73c(0x594)]);_0x2def6c[_0x23a73c(0x7d9)]=this[_0x23a73c(0x374)](_0x23a73c(0x63e));const {compileFilter:_0x46acd5}=requireOkdbQueryFilter(),_0x4c6f82=(_0x363c79,_0x5e3e1a)=>{if(_0x363c79==null)return![];try{return _0x46acd5(_0x363c79)(_0x5e3e1a);}catch{return![];}};this[_0x23a73c(0x284)]={'store':_0x2def6c,'router':{'_matches':_0x4c6f82}};}return this['_subsV2Obj'];}get[_0x4cbad5(0x588)](){return this['role'];}get[_0x4cbad5(0x7cf)](){const _0x121ade=_0x4cbad5;return this[_0x121ade(0x849)]('db',null,'formerIds',[],![]);}get['role'](){const _0x30acd4=_0x4cbad5;return{...this[_0x30acd4(0x849)]('db',null,_0x30acd4(0x862),[],![])};}get[_0x4cbad5(0x808)](){const _0x32d253=_0x4cbad5;return require$$29[_0x32d253(0x808)];}get['quarantinedEnvs'](){return this['_call']('db',null,'quarantined',[],![]);}get[_0x4cbad5(0x34f)](){const _0x2159f3=_0x4cbad5;return this[_0x2159f3(0x849)]('db',null,_0x2159f3(0x34f),[],![]);}[_0x4cbad5(0x8ac)](){const _0x342586=_0x4cbad5;return this['_call']('db',null,_0x342586(0x4f5),[],![]);}[_0x4cbad5(0x2e2)](){const _0x99d5c7=_0x4cbad5;return this[_0x99d5c7(0x849)]('db',null,'diag',[],![]);}async[_0x4cbad5(0x349)](_0x4395eb){const _0x238e73=_0x4cbad5;this[_0x238e73(0x556)](),this[_0x238e73(0x849)]('db',null,_0x238e73(0x349),[_0x4395eb],![]);}[_0x4cbad5(0x701)](){const _0x1c6ad4=_0x4cbad5,_0x298f1f=Date[_0x1c6ad4(0x363)]();if(this[_0x1c6ad4(0x405)]&&_0x298f1f-this['_pressure']['at']<0xfa)return this[_0x1c6ad4(0x405)][_0x1c6ad4(0x883)];const _0x44a360=this['_call']('db',null,_0x1c6ad4(0x701),[],![]);return this['_pressure']={'at':_0x298f1f,'value':_0x44a360},_0x44a360;}[_0x4cbad5(0x556)](){const _0x498f7b=_0x4cbad5;if(!this[_0x498f7b(0x70a)])throw new _0x1ef9eb(_0x498f7b(0x39c),_0x498f7b(0x797),{'state':this[_0x498f7b(0x36e)]});}get[_0x4cbad5(0x685)](){const _0x3a729c=_0x4cbad5;if(this[_0x3a729c(0x36e)]===_0x23ca3c['STOPPED']||!this[_0x3a729c(0x70a)])return null;if(this['_call']('db',null,_0x3a729c(0x498),[],![])==null)return null;if(!this['_busFacade']){const _0x156098=this;this['_busFacade']={get 'state'(){return _0x156098['_call']('db',null,'busState',[],![]);},get 'magic'(){const _0x596fc0=_0x3a729c;return Buffer[_0x596fc0(0x7f7)](_0x596fc0(0x1df)+_0x156098['id']);},get 'isRunning'(){const _0x5e99ca=_0x3a729c;return _0x156098[_0x5e99ca(0x849)]('db',null,_0x5e99ca(0x498),[],![])===_0x5e99ca(0x2e0);},'emit'(_0x55a1dd,_0x2edc7e=''){const _0x2ed603=_0x3a729c;_0x156098[_0x2ed603(0x849)]('db',null,_0x2ed603(0x8c7),[_0x55a1dd,String(_0x2edc7e)],![]);}};}return this['_busFacade'];}['_emitProc'](_0x485fef,_0x542df7){const _0x4b4113=_0x4cbad5;this[_0x4b4113(0x685)]?.[_0x4b4113(0x88d)]('bus:proc',JSON[_0x4b4113(0x212)]({'kind':'reconcile','scope':_0x485fef,'key':_0x542df7}));}get[_0x4cbad5(0x88b)](){const _0x658d96=_0x4cbad5;return this[_0x658d96(0x371)]||(this[_0x658d96(0x371)]=new(requireLock())[(_0x658d96(0x8b7))](this,_0x658d96(0x277),_0x658d96(0x355)));}get[_0x4cbad5(0x1f7)](){return this['_systemEnv']?this['_systemEnv']['db']:undefined;}get[_0x4cbad5(0x8a7)](){const _0x3de5d8=_0x4cbad5,_0x2b1116=this[_0x3de5d8(0x5ab)]?.[_0x3de5d8(0x893)];if(!_0x2b1116)return null;const _0x6e230e=_0x2b1116[_0x3de5d8(0x4bd)]()[_0x3de5d8(0x855)](_0x46d881=>_0x46d881[_0x3de5d8(0x72f)]?.[_0x3de5d8(0x761)]===_0x3de5d8(0x8d6));return _0x6e230e?_0x2b1116[_0x3de5d8(0x816)](_0x6e230e['id'],_0x6e230e['cursorKey']):null;}get[_0x4cbad5(0x5ab)](){const _0x1dca5b=_0x4cbad5;return this['_isOpen']?this[_0x1dca5b(0x86f)][_0x1dca5b(0x67f)](_0x1dca5b(0x277)):undefined;}['_ensureEnv'](_0x3ffa71){const _0x4bface=_0x4cbad5;let _0xf8f0b9=Map[_0x4bface(0x331)][_0x4bface(0x67f)][_0x4bface(0x601)](this['_envs'],_0x3ffa71);if(!_0xf8f0b9){_0xf8f0b9=new _0x1f891e(this,_0x3ffa71),Map[_0x4bface(0x331)]['set'][_0x4bface(0x601)](this['_envs'],_0x3ffa71,_0xf8f0b9);if(_0x3ffa71===_0x4bface(0x55b))this[_0x4bface(0x67d)]=_0xf8f0b9;}return _0xf8f0b9;}['env'](_0x29e120=_0x4cbad5(0x55b)){const _0x54527e=_0x4cbad5,_0x37ee16=this['_envs'][_0x54527e(0x67f)](_0x29e120);if(_0x37ee16)return _0x37ee16;if(this[_0x54527e(0x70a)]&&this[_0x54527e(0x849)]('db',null,_0x54527e(0x6fa),[_0x29e120],![]))return this['_ensureEnv'](_0x29e120);throw new _0x1ef9eb(_0x54527e(0x4b3)+_0x29e120+_0x54527e(0x379),'ENV_NOT_FOUND');}get['default'](){const _0x42afae=_0x4cbad5;return this[_0x42afae(0x374)]('default');}get[_0x4cbad5(0x3e1)](){const _0x1b0740=_0x4cbad5;return this[_0x1b0740(0x86f)]['get'](_0x1b0740(0x55b))??this['_defaultEnvObj'];}get[_0x4cbad5(0x378)](){return this['_defaultEnv']['files'];}get[_0x4cbad5(0x675)](){const _0x22a5dc=_0x4cbad5;return this['_defaultEnv'][_0x22a5dc(0x675)];}[_0x4cbad5(0x4e1)](_0x153842){const _0x5293e2=_0x4cbad5;if(!this[_0x5293e2(0x70a)])return null;return this['_call']('db',null,_0x5293e2(0x680),[_0x153842],![])?{'ref'(){},'unref'(){}}:null;}get['_readerCheckInterval'](){const _0x269336=_0x4cbad5;return this[_0x269336(0x4e1)]('readerCheck');}[_0x4cbad5(0x217)](){const _0x36950b=_0x4cbad5;return this[_0x36950b(0x849)]('db',null,'reconcileDesired',[],!![]);}get[_0x4cbad5(0x57c)](){const _0x896b0f=_0x4cbad5;return this[_0x896b0f(0x4e1)](_0x896b0f(0x63f));}get[_0x4cbad5(0x8a2)](){const _0x307b93=_0x4cbad5;return this[_0x307b93(0x4e1)](_0x307b93(0x2ff));}get[_0x4cbad5(0x4ed)](){const _0x1730fb=_0x4cbad5;return this[_0x1730fb(0x374)](_0x1730fb(0x55b))[_0x1730fb(0x4ed)];}get[_0x4cbad5(0x5a6)](){const _0x23c88b=_0x4cbad5;throw new _0x1ef9eb(_0x23c88b(0x443),_0x23c88b(0x76a));}get[_0x4cbad5(0x893)](){const _0x14ddec=_0x4cbad5;return this[_0x14ddec(0x3e1)][_0x14ddec(0x893)];}get[_0x4cbad5(0x487)](){const _0x375e42=_0x4cbad5;return this[_0x375e42(0x3e1)][_0x375e42(0x487)];}async[_0x4cbad5(0x629)](_0x374f5d,_0x50e5cf={}){const _0x596d55=_0x4cbad5;this[_0x596d55(0x556)]();if(_0x50e5cf&&typeof _0x50e5cf[_0x596d55(0x235)]===_0x596d55(0x4d1)){const _0x20f1f6=_0x50e5cf[_0x596d55(0x235)];this['_setKey'](_0x374f5d,await _0x20f1f6(_0x374f5d),!![]),this[_0x596d55(0x368)][_0x596d55(0x64e)][_0x596d55(0x5e7)](_0x374f5d,_0x20f1f6),_0x50e5cf={..._0x50e5cf,'encryptionKey':!![]};}return this['_call']('db',null,_0x596d55(0x629),[_0x374f5d,_0x50e5cf]),this['_ensureEnv'](_0x374f5d);}async[_0x4cbad5(0x706)](_0x5ba628){const _0x37a6d0=_0x4cbad5;if(!this[_0x37a6d0(0x70a)])throw new _0x1ef9eb(_0x37a6d0(0x59b)+_0x5ba628+'\x22)\x20before\x20open()',_0x37a6d0(0x797));return this[_0x37a6d0(0x849)]('db',null,_0x37a6d0(0x706),[_0x5ba628]),this[_0x37a6d0(0x221)](_0x5ba628);}get['_adminRelay'](){const _0x2614ad=_0x4cbad5;if(!this[_0x2614ad(0x433)]&&this['_isOpen']){const _0x57505c=requireOkdbRelay(),_0x1cbd65=new _0x57505c(this,this[_0x2614ad(0x51c)]?.[_0x2614ad(0x668)]?.[_0x2614ad(0x527)]??{});_0x1cbd65['attach'](),_0x1cbd65[_0x2614ad(0x51a)]=!![],this[_0x2614ad(0x433)]=_0x1cbd65;}return this[_0x2614ad(0x433)]??null;}set['_adminRelay'](_0x2be172){const _0x304d90=_0x4cbad5;this[_0x304d90(0x433)]=_0x2be172;}get['_quantumGate'](){const _0x491e49=_0x4cbad5;let _0x186b47=0x0;if(this[_0x491e49(0x70a)])for(const [_0x5a6823]of Map[_0x491e49(0x331)][_0x491e49(0x453)]['call'](this['_envs'])){try{_0x186b47+=this[_0x491e49(0x849)]('proc',_0x5a6823,'gateQuanta',[],![])||0x0;}catch{}}return{'total':_0x186b47,'maxObserved':_0x186b47>0x0?0x1:0x0,'inFlight':0x0};}async['_openEnvLazy'](_0x286249){const _0x24e011=_0x4cbad5,_0x138707=this[_0x24e011(0x86f)]['get'](_0x286249);if(_0x138707)return _0x138707;if(!this[_0x24e011(0x849)]('db',null,_0x24e011(0x6fa),[_0x286249],![]))throw new Error(_0x24e011(0x8bc)+_0x286249+_0x24e011(0x60a));return this[_0x24e011(0x706)](_0x286249);}async['_closeEnvLocally'](_0x45015e){const _0x376bcb=_0x4cbad5,_0x577a05=this[_0x376bcb(0x849)]('db',null,'closeEnvLocally',[_0x45015e]);return this['_envs'][_0x376bcb(0x597)](_0x45015e),_0x577a05;}async[_0x4cbad5(0x29f)](_0x112a63,_0x1700f7={}){const _0x40688d=_0x4cbad5;this[_0x40688d(0x556)]();const _0x16e361=this[_0x40688d(0x849)]('db',null,_0x40688d(0x29f),[_0x112a63,_0x1700f7]);return this[_0x40688d(0x86f)]['delete'](_0x112a63),_0x16e361;}static get['defaults'](){const _0x5e018c=_0x4cbad5;return _0x1e0bf7[_0x5e018c(0x666)];}static get['KNOWN_OPTIONS'](){const _0x1db803=_0x4cbad5;return _0x1e0bf7[_0x1db803(0x3ff)];}static get[_0x4cbad5(0x232)](){const _0x339cbc=_0x4cbad5;return _0x1e0bf7[_0x339cbc(0x232)];}static async[_0x4cbad5(0x765)](_0x525e53,_0x3c8675){const _0x4e6797=_0x4cbad5;return _0x39f2ed('db',_0x4e6797(0x765),[_0x525e53,_0x3c8675]);}static[_0x4cbad5(0x33b)](_0x1ab4a1){const _0x1b3b64=_0x4cbad5;return _0x39f2ed('db',_0x1b3b64(0x33b),[_0x1ab4a1]);}static[_0x4cbad5(0x54d)](_0x38526f,_0x4914f6){const _0x4b4159=_0x4cbad5;_0x39f2ed(_0x4b4159(0x487),_0x4b4159(0x54d),[_0x38526f,_0x4914f6]);}static[_0x4cbad5(0x780)](_0x2c95c2,_0x37a05a){const _0x39fecf=_0x4cbad5;_0x39f2ed(_0x39fecf(0x487),_0x39fecf(0x780),[_0x2c95c2,_0x37a05a]);}static['_warnUnknownOptions'](){}['equal'](_0x381e97,_0x580c5e){const _0x394bb6=_0x4cbad5;return require$$16[_0x394bb6(0x51b)](_0x381e97,_0x580c5e);}}_0x28ef46[_0x4cbad5(0x6fe)]=_0x4d3cce,Object[_0x4cbad5(0x245)](_0x28ef46,'_unknownOptionsWarned',{'get'(){const _0x35487b=_0x4cbad5;return _0x28ef46[_0x35487b(0x873)]||(_0x28ef46[_0x35487b(0x873)]=new Set());},'set'(_0x8f9e86){const _0x3a97d5=_0x4cbad5;_0x28ef46[_0x3a97d5(0x873)]=_0x8f9e86;try{_0x39f2ed('db',_0x3a97d5(0x83e),[]);}catch{}},'configurable':!![]});for(const _0x52e209 of['transaction','txn',_0x4cbad5(0x425),_0x4cbad5(0x5de),_0x4cbad5(0x2cf),'create','remove',_0x4cbad5(0x67f),'getMany',_0x4cbad5(0x65c),_0x4cbad5(0x56b),_0x4cbad5(0x524),_0x4cbad5(0x2f5),'getCount',_0x4cbad5(0x530),_0x4cbad5(0x85d),_0x4cbad5(0x296),'countByIndex',_0x4cbad5(0x827),_0x4cbad5(0x2e4),'ftsQuery',_0x4cbad5(0x454),'ensureType','ensure','getSchema','hasType',_0x4cbad5(0x203),'registerIndex','hasIndex','dropIndex',_0x4cbad5(0x8d0),'indexReady',_0x4cbad5(0x79f),'getUniqueViolations',_0x4cbad5(0x3ac),_0x4cbad5(0x725),'getClock',_0x4cbad5(0x755),_0x4cbad5(0x8af),_0x4cbad5(0x2d9),_0x4cbad5(0x4df),_0x4cbad5(0x391),_0x4cbad5(0x1a6),_0x4cbad5(0x611),_0x4cbad5(0x870),_0x4cbad5(0x40d),_0x4cbad5(0x4b7),'count',_0x4cbad5(0x3a8),_0x4cbad5(0x363)]){_0x28ef46[_0x4cbad5(0x331)][_0x52e209]=function(..._0x31fef9){const _0x20418a=_0x4cbad5,_0x1e3575=this[_0x20418a(0x374)](_0x20418a(0x55b));return _0x1e3575[_0x52e209](..._0x31fef9);};}function _0x52dea8(_0x4802dd){const _0x194760=_0x4cbad5,_0x3961e9=_0x4cdef1=>()=>{const _0x3f1a0e=_0x48c6;throw new Error(_0x3f1a0e(0x308)+_0x4cdef1+_0x3f1a0e(0x2d6));};return{'process':_0x3961e9('process(filter)'),'processRest':_0x3961e9(_0x194760(0x265)),'processEverything':_0x3961e9(_0x194760(0x5ee)),async 'start'(){return _0x4802dd['_call']('db',null,'processorsStart',[]);},async 'stop'(){const _0x486b8c=_0x194760;return _0x4802dd[_0x486b8c(0x849)]('db',null,_0x486b8c(0x5cd),[]);},'status'(){const _0x2e8b45=_0x194760;return _0x4802dd[_0x2e8b45(0x849)]('db',null,_0x2e8b45(0x302),[],![]);},get 'participating'(){const _0x29118a=_0x194760;return _0x4802dd[_0x29118a(0x849)]('db',null,_0x29118a(0x3eb),[],![]);},get '_participate'(){const _0x33a115=_0x194760;return _0x4802dd[_0x33a115(0x849)]('db',null,_0x33a115(0x3eb),[],![]);}};}function _0x39f2ed(_0x172c19,_0x48200c,_0x2ea2cb){_0x53ddf8();try{return _0x4b69f4()['callStatic'](_0x172c19,_0x48200c,_0x2ea2cb);}catch(_0x406b0e){throw _0x2a9d6b(_0x406b0e);}}_0xf8343c[_0x4cbad5(0x4f1)]=_0x28ef46,_0xf8343c[_0x4cbad5(0x4f1)][_0x4cbad5(0x445)]=_0x39f2ed,_0xf8343c[_0x4cbad5(0x4f1)][_0x4cbad5(0x6b8)]=_0x28ef46,_0xf8343c[_0x4cbad5(0x4f1)][_0x4cbad5(0x6fe)]=_0x4d3cce,_0xf8343c[_0x4cbad5(0x4f1)][_0x4cbad5(0x55b)]=_0x28ef46,Object[_0x4cbad5(0x245)](_0xf8343c[_0x4cbad5(0x4f1)],'nativeBinaryPath',{'get':()=>require$$1$1['loadedPath']?.()??null,'enumerable':![],'configurable':!![]});}(lib),lib['exports'];}var libExports=requireLib(),index=getDefaultExportFromCjs(libExports);module[_0x5b9a04(0x4f1)]=index;