@kedem/okdb 3.1.7 → 3.1.8
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 _0x431d06=_0x41a2;(function(_0x3b150f,_0x5de515){const _0x498b76=_0x41a2,_0x2759e6=_0x3b150f();while(!![]){try{const _0x25a139=-parseInt(_0x498b76(0x680))/0x1+parseInt(_0x498b76(0x469))/0x2+-parseInt(_0x498b76(0x330))/0x3+parseInt(_0x498b76(0x57d))/0x4+parseInt(_0x498b76(0xf3))/0x5+-parseInt(_0x498b76(0x260))/0x6+parseInt(_0x498b76(0x357))/0x7*(-parseInt(_0x498b76(0x574))/0x8);if(_0x25a139===_0x5de515)break;else _0x2759e6['push'](_0x2759e6['shift']());}catch(_0x3f141b){_0x2759e6['push'](_0x2759e6['shift']());}}}(_0x27a0,0x6c28c));var require$$0$6=require(_0x431d06(0x730)),require$$1$1=require(_0x431d06(0x338)),require$$0=require('node:fs'),require$$1=require(_0x431d06(0x2eb)),require$$4=require(_0x431d06(0x6cd)),require$$0$2=require(_0x431d06(0x194)),require$$0$1=require(_0x431d06(0x527)),require$$16=require(_0x431d06(0x1e1)),require$$0$3=require(_0x431d06(0x6c9)),require$$2=require(_0x431d06(0x56c)),require$$18=require('msgpackr'),require$$0$4=require(_0x431d06(0x15b)),require$$0$5=require('sift');function getDefaultExportFromCjs(_0x47db0e){const _0xa32f3a=_0x431d06;return _0x47db0e&&_0x47db0e[_0xa32f3a(0x478)]&&Object[_0xa32f3a(0x34d)][_0xa32f3a(0x723)][_0xa32f3a(0x7cd)](_0x47db0e,_0xa32f3a(0x686))?_0x47db0e[_0xa32f3a(0x686)]:_0x47db0e;}var lib={'exports':{}},okdbError,hasRequiredOkdbError;function requireOkdbError(){if(hasRequiredOkdbError)return okdbError;hasRequiredOkdbError=0x1;class _0x21fba4 extends Error{constructor(_0x5ffc,_0x3b1eab,_0x149929={}){const _0x337100=_0x41a2;super(_0x5ffc),this[_0x337100(0x5e6)]=_0x337100(0x532),this[_0x337100(0x30f)]=_0x3b1eab,this[_0x337100(0x38a)]=_0x149929,_0x149929[_0x337100(0x387)]&&(this['cause']=_0x149929[_0x337100(0x387)]),Error[_0x337100(0x5f3)](this,this[_0x337100(0x501)]);}}class _0x50b6d0 extends _0x21fba4{constructor(_0xa7d7ab,_0x43d5ff,_0x144c58,_0x56ba3e){const _0x21d590=_0x41a2;super(_0x21d590(0x5df)+_0xa7d7ab+'@'+_0x43d5ff+_0x21d590(0x346)+_0x144c58+',\x20got\x20'+_0x56ba3e,'VERSION_MISMATCH',{'type':_0xa7d7ab,'key':_0x43d5ff,'expectedVersion':_0x144c58,'actualVersion':_0x56ba3e}),this[_0x21d590(0x5e6)]=_0x21d590(0xef);}}class _0x5d0dba extends _0x21fba4{constructor(_0xbeafe4,_0x28983b){const _0x486b98=_0x41a2;super(_0xbeafe4+'@'+_0x28983b+'\x20does\x20not\x20exist',_0x486b98(0x4c3),{'type':_0xbeafe4,'key':_0x28983b}),this[_0x486b98(0x5e6)]='OKDBNotFoundError';}}class _0xcccd8a extends _0x21fba4{constructor(_0x72f83b,_0x4eab22){const _0x334440=_0x41a2;super(_0x72f83b+'@'+_0x4eab22+_0x334440(0x6e1),'ALREADY_EXISTS',{'type':_0x72f83b,'key':_0x4eab22}),this[_0x334440(0x5e6)]=_0x334440(0x2d9);}}class _0x3bfb60 extends _0x21fba4{constructor(_0x22199c,_0x1b8e09){const _0x13a578=_0x41a2,_0x4d33bf=typeof _0x1b8e09;super(_0x13a578(0x7c7)+_0x22199c+_0x13a578(0x33d)+_0x4d33bf+_0x13a578(0x3f5)+_0x1b8e09,_0x13a578(0x150),{'index':_0x22199c,'key':_0x1b8e09,'keyType':_0x4d33bf}),this[_0x13a578(0x5e6)]=_0x13a578(0x59f);}}class _0x1546cc extends _0x21fba4{constructor(_0x12c3a0){const _0x23face=_0x41a2,_0x1d108e=typeof _0x12c3a0;super('Invalid\x20primary\x20key\x20type:\x20'+_0x1d108e+'.\x20Primary\x20keys\x20must\x20be\x20string\x20or\x20number.\x20Got:\x20'+_0x12c3a0,_0x23face(0x4b9),{'key':_0x12c3a0,'keyType':_0x1d108e}),this[_0x23face(0x5e6)]='OKDBInvalidPrimaryKeyError';}}class _0x21c3e9 extends _0x21fba4{constructor(_0xad6392){const _0x2193b8=_0x41a2;super(_0x2193b8(0x531)+_0xad6392+_0x2193b8(0x555),'TYPE_NOT_REGISTERED',{'type':_0xad6392}),this[_0x2193b8(0x5e6)]='OKDBTypeNotRegisteredError';}}class _0x20e4aa extends _0x21fba4{constructor(_0x2a8f6d){const _0x32c883=_0x41a2;super(_0x32c883(0x531)+_0x2a8f6d+_0x32c883(0x227),_0x32c883(0x2e9),{'type':_0x2a8f6d}),this[_0x32c883(0x5e6)]=_0x32c883(0xf5);}}class _0x3e1bbe extends _0x21fba4{constructor(_0x92b95f,_0x45ae25){const _0x155e14=_0x41a2;super(_0x155e14(0x201)+_0x45ae25+_0x155e14(0x28b)+_0x92b95f+_0x155e14(0x555),'INDEX_NOT_REGISTERED',{'type':_0x92b95f,'index':_0x45ae25}),this[_0x155e14(0x5e6)]=_0x155e14(0x456);}}class _0x48d5e0 extends _0x21fba4{constructor(_0x41677d,_0x280d3b){const _0x58b287=_0x41a2;super('Index\x20\x27'+_0x280d3b+'\x27\x20on\x20type\x20\x27'+_0x41677d+_0x58b287(0x6a0),'INDEX_ALREADY_REGISTERED',{'type':_0x41677d,'index':_0x280d3b}),this[_0x58b287(0x5e6)]='OKDBIndexAlreadyRegisteredError';}}class _0x1368ab extends _0x21fba4{constructor(_0x2f3067,_0xb5f6fa={}){const _0x4cbf15=_0x41a2;super(_0x2f3067,_0x4cbf15(0x41a),_0xb5f6fa),this[_0x4cbf15(0x5e6)]=_0x4cbf15(0x562);}}class _0x2153c9 extends _0x21fba4{constructor(_0x17b390,_0x27a9b0,_0x476cc2,_0x43e38e,_0x8e47c1){const _0x194924=_0x41a2;super(_0x194924(0xca)+_0x17b390+'@'+_0x27a9b0+':\x20key\x20['+_0x476cc2+_0x194924(0x3a3)+_0x43e38e+'\x27,\x20cannot\x20map\x20to\x20\x27'+_0x8e47c1+'\x27',_0x194924(0x44b),{'type':_0x17b390,'index':_0x27a9b0,'indexKey':_0x476cc2,'existingKey':_0x43e38e,'conflictingKey':_0x8e47c1}),this[_0x194924(0x5e6)]=_0x194924(0x46c);}}class _0x377a9b extends _0x21fba4{constructor(_0x94499c,_0x27608b,_0x224cfa){const _0x2cab5a=_0x41a2;super(_0x2cab5a(0x154)+_0x94499c+'@'+_0x27608b,'SCHEMA_VALIDATION_FAILED',{'type':_0x94499c,'key':_0x27608b,'errors':_0x224cfa}),this[_0x2cab5a(0x5e6)]=_0x2cab5a(0x5e0),this[_0x2cab5a(0x690)]=_0x94499c,this[_0x2cab5a(0x590)]=_0x27608b,this[_0x2cab5a(0x7ba)]=_0x224cfa;}}class _0x2534f4 extends _0x21fba4{constructor(_0x40657d,_0x4d9b8c){const _0x37f57a=_0x41a2;super(_0x37f57a(0x72b)+_0x40657d+':\x20'+_0x4d9b8c[_0x37f57a(0x2a9)]+_0x37f57a(0x6a8),_0x37f57a(0x668),{'type':_0x40657d,'failures':_0x4d9b8c}),this[_0x37f57a(0x5e6)]=_0x37f57a(0x4e2),this[_0x37f57a(0x690)]=_0x40657d,this[_0x37f57a(0x1ef)]=_0x4d9b8c;}}class _0xc1d6a8 extends _0x21fba4{constructor(_0x3c7562,_0x457dd3,_0xa9b5e1,_0xa0aaf9,_0x2e4dcd){const _0x47ed30=_0x41a2;super(_0x47ed30(0x69f)+_0x3c7562+'@'+_0x457dd3+'.'+_0xa9b5e1+'\x20references\x20'+_0xa0aaf9+'@'+_0x2e4dcd+'\x20which\x20does\x20not\x20exist','FOREIGN_KEY_VIOLATION',{'sourceType':_0x3c7562,'sourceKey':_0x457dd3,'fieldPath':_0xa9b5e1,'targetType':_0xa0aaf9,'targetKey':_0x2e4dcd}),this[_0x47ed30(0x5e6)]=_0x47ed30(0x41e),this['sourceType']=_0x3c7562,this[_0x47ed30(0x235)]=_0x457dd3,this['fieldPath']=_0xa9b5e1,this[_0x47ed30(0x27b)]=_0xa0aaf9,this[_0x47ed30(0x3a6)]=_0x2e4dcd;}}class _0x5b19d4 extends _0x21fba4{constructor(_0x3e9abb,_0xa2e7fa,_0x19f4c2){const _0x66eb89=_0x41a2;super('Cannot\x20delete\x20'+_0x3e9abb+'@'+_0xa2e7fa+':\x20'+_0x19f4c2[_0x66eb89(0x2a9)]+'\x20document(s)\x20reference\x20it\x20with\x20onDelete:restrict',_0x66eb89(0xba),{'targetType':_0x3e9abb,'targetKey':_0xa2e7fa,'references':_0x19f4c2}),this[_0x66eb89(0x5e6)]='OKDBForeignKeyDeleteError',this[_0x66eb89(0x27b)]=_0x3e9abb,this[_0x66eb89(0x3a6)]=_0xa2e7fa,this[_0x66eb89(0x482)]=_0x19f4c2;}}class _0x3c3c07 extends _0x21fba4{constructor(_0x3dbe5f,_0x544c39,_0x2d9baa){const _0x134a4c=_0x41a2;super(_0x134a4c(0x6b8)+_0x544c39+_0x134a4c(0x3c2)+_0x3dbe5f+_0x134a4c(0x3aa)+_0x2d9baa[_0x134a4c(0x1d9)](_0x4ee2b0=>_0x4ee2b0[_0x134a4c(0x301)]+':'+_0x4ee2b0[_0x134a4c(0x5e6)])[_0x134a4c(0x7d6)](',\x20'),_0x134a4c(0x50a),{'type':_0x3dbe5f,'index':_0x544c39,'usedBy':_0x2d9baa}),this['name']=_0x134a4c(0x523);}}return okdbError={'OKDBError':_0x21fba4,'OKDBVersionMismatchError':_0x50b6d0,'OKDBNotFoundError':_0x5d0dba,'OKDBAlreadyExistsError':_0xcccd8a,'OKDBInvalidIndexKeyError':_0x3bfb60,'OKDBInvalidPrimaryKeyError':_0x1546cc,'OKDBTypeNotRegisteredError':_0x21c3e9,'OKDBTypeAlreadyRegisteredError':_0x20e4aa,'OKDBIndexNotRegisteredError':_0x3e1bbe,'OKDBIndexAlreadyRegisteredError':_0x48d5e0,'OKDBInvalidValueError':_0x1368ab,'OKDBUniqueConstraintError':_0x2153c9,'OKDBSchemaValidationError':_0x377a9b,'OKDBSchemaCollectionError':_0x2534f4,'OKDBForeignKeyError':_0xc1d6a8,'OKDBForeignKeyDeleteError':_0x5b19d4,'OKDBIndexHasConsumersError':_0x3c3c07},okdbError;}var errors,hasRequiredErrors;function requireErrors(){const _0x4a7628=_0x431d06;if(hasRequiredErrors)return errors;hasRequiredErrors=0x1;const _0x678653=requireOkdbError(),_0x5c43c9={'VERSION_MISMATCH':_0x678653[_0x4a7628(0xef)],'NOT_FOUND':_0x678653['OKDBNotFoundError'],'ALREADY_EXISTS':_0x678653[_0x4a7628(0x2d9)],'INVALID_INDEX_KEY':_0x678653[_0x4a7628(0x59f)],'INVALID_PRIMARY_KEY':_0x678653[_0x4a7628(0x1c0)],'TYPE_NOT_REGISTERED':_0x678653[_0x4a7628(0x7db)],'TYPE_ALREADY_REGISTERED':_0x678653['OKDBTypeAlreadyRegisteredError'],'INDEX_NOT_REGISTERED':_0x678653[_0x4a7628(0x456)],'INDEX_ALREADY_REGISTERED':_0x678653['OKDBIndexAlreadyRegisteredError'],'INVALID_VALUE':_0x678653[_0x4a7628(0x562)],'UNIQUE_CONSTRAINT':_0x678653[_0x4a7628(0x46c)],'SCHEMA_VALIDATION_FAILED':_0x678653['OKDBSchemaValidationError'],'SCHEMA_COLLECTION_INVALID':_0x678653[_0x4a7628(0x4e2)],'FOREIGN_KEY_VIOLATION':_0x678653[_0x4a7628(0x41e)],'FOREIGN_KEY_DELETE_RESTRICTED':_0x678653[_0x4a7628(0x366)],'INDEX_HAS_CONSUMERS':_0x678653[_0x4a7628(0x523)]};class _0x56cec1 extends _0x678653[_0x4a7628(0x532)]{constructor(_0x56b8ee,_0x3d5d04){const _0x59501b=_0x4a7628;super(_0x56b8ee+_0x59501b(0xc9)+(_0x3d5d04?'\x20('+_0x3d5d04+')':''),_0x59501b(0x267),{'feature':_0x56b8ee}),this[_0x59501b(0x5e6)]=_0x59501b(0x3f1);}}function _0xe20a71(_0x5d0af3){const _0x425b8c=_0x4a7628;if(!_0x5d0af3||typeof _0x5d0af3!==_0x425b8c(0x4ed)||!_0x5d0af3['__okdb'])return _0x5d0af3;delete _0x5d0af3[_0x425b8c(0x293)];const _0x3b34d1=_0x5d0af3[_0x425b8c(0x30f)];if(_0x3b34d1===_0x425b8c(0x304)||_0x3b34d1===_0x425b8c(0x45b)||_0x3b34d1===_0x425b8c(0x771)){const _0x20d073=_0x3b34d1===_0x425b8c(0x45b)?TypeError[_0x425b8c(0x34d)]:_0x3b34d1===_0x425b8c(0x771)?RangeError[_0x425b8c(0x34d)]:Error['prototype'];Object['setPrototypeOf'](_0x5d0af3,_0x20d073),_0x5d0af3[_0x425b8c(0x5e6)]=_0x3b34d1;if(_0x5d0af3[_0x425b8c(0x38a)]&&_0x5d0af3['details'][_0x425b8c(0x5d2)]!==undefined)_0x5d0af3[_0x425b8c(0x5d2)]=_0x5d0af3[_0x425b8c(0x38a)][_0x425b8c(0x5d2)];return delete _0x5d0af3[_0x425b8c(0x30f)],delete _0x5d0af3['details'],_0x5d0af3;}const _0x4c8acb=_0x5c43c9[_0x3b34d1];Object[_0x425b8c(0x1ed)](_0x5d0af3,(_0x4c8acb||_0x678653[_0x425b8c(0x532)])[_0x425b8c(0x34d)]),_0x5d0af3[_0x425b8c(0x5e6)]=_0x4c8acb?_0x4c8acb[_0x425b8c(0x5e6)]['replace'](/^OKDB/,_0x425b8c(0x421)):_0x425b8c(0x532);const _0x1ce03d=_0x5d0af3[_0x425b8c(0x38a)]||{};_0x3b34d1===_0x425b8c(0x1cc)&&(_0x5d0af3[_0x425b8c(0x690)]=_0x1ce03d['type'],_0x5d0af3['key']=_0x1ce03d[_0x425b8c(0x590)],_0x5d0af3[_0x425b8c(0x7ba)]=_0x1ce03d[_0x425b8c(0x7ba)]);_0x3b34d1===_0x425b8c(0x668)&&(_0x5d0af3[_0x425b8c(0x690)]=_0x1ce03d[_0x425b8c(0x690)],_0x5d0af3['failures']=_0x1ce03d[_0x425b8c(0x1ef)]);if(_0x3b34d1===_0x425b8c(0x589)){for(const _0x194d11 of[_0x425b8c(0x1eb),_0x425b8c(0x235),_0x425b8c(0x450),'targetType',_0x425b8c(0x3a6)])_0x5d0af3[_0x194d11]=_0x1ce03d[_0x194d11];}if(_0x3b34d1===_0x425b8c(0xba)){for(const _0x3fadfa of[_0x425b8c(0x27b),'targetKey','references'])_0x5d0af3[_0x3fadfa]=_0x1ce03d[_0x3fadfa];}if(_0x1ce03d[_0x425b8c(0x387)])_0x5d0af3[_0x425b8c(0x387)]=_0x1ce03d[_0x425b8c(0x387)];if(_0x1ce03d['status']!==undefined)_0x5d0af3['status']=_0x1ce03d[_0x425b8c(0x5d2)];if(_0x1ce03d['retryable']!==undefined)_0x5d0af3[_0x425b8c(0x13b)]=_0x1ce03d['retryable'];return _0x5d0af3;}function _0x4907b8(_0x38b784){const _0x1f440b=_0x4a7628;if(_0x38b784===undefined)return'undefined';if(_0x38b784===null)return _0x1f440b(0x2b4);if(typeof _0x38b784===_0x1f440b(0x229))return _0x38b784?'string':_0x1f440b(0x513);if(typeof _0x38b784===_0x1f440b(0x7c4))return _0x1f440b(0x7c4);if(typeof _0x38b784!=='object')return typeof _0x38b784;if(Array[_0x1f440b(0x17d)](_0x38b784))return _0x38b784[_0x1f440b(0x2a9)]?_0x1f440b(0x55a):'empty\x20array';if(_0x38b784 instanceof Date)return _0x1f440b(0x760);if(_0x38b784 instanceof Map)return _0x1f440b(0x5f0);if(Buffer[_0x1f440b(0x68e)](_0x38b784))return _0x1f440b(0x73f);return _0x1f440b(0x4ed);}const _0x2838e5=(_0x54580c,_0x2f27cb,_0x3b4594)=>new _0x678653['OKDBError'](_0x2f27cb,_0x54580c,_0x3b4594),_0x57d190=(_0xb26466,_0x12b647,_0x2e682b)=>_0x2838e5(_0x4a7628(0x3d2),_0xb26466+'\x20must\x20be\x20'+_0x12b647+';\x20got\x20'+_0x4907b8(_0x2e682b),{'argument':_0xb26466,'expected':_0x12b647,'got':_0x4907b8(_0x2e682b)}),_0x1b3fdb=(_0x3c3370,_0x34d190)=>_0x2838e5(_0x4a7628(0x39c),_0x3c3370+_0x4a7628(0x105)+_0x4907b8(_0x34d190),{'argument':_0x3c3370,'expected':_0x4a7628(0x172),'got':_0x4907b8(_0x34d190)}),_0x166f49=(_0x575bda,_0x14c483)=>_0x2838e5(_0x4a7628(0x7c3),_0x575bda+':\x20'+_0x14c483,{'argument':_0x575bda,'problem':_0x14c483});function _0x60f72b(_0x20dc88,_0x18fa4f=_0x4a7628(0x2f0)){const _0x29517e=_0x4a7628;if(_0x20dc88===undefined)return{};if(_0x20dc88===null)throw _0x166f49(_0x18fa4f,_0x29517e(0x321));return _0x20dc88;}return errors={'reclass':_0xe20a71,'NotImplementedNative':_0x56cec1,'BY_CODE':_0x5c43c9,'describe':_0x4907b8,'invalidArgument':_0x57d190,'invalidTypeName':_0x1b3fdb,'invalidOptions':_0x166f49,'optionsArg':_0x60f72b,..._0x678653},errors;}var bridge_1,hasRequiredBridge;function requireBridge(){if(hasRequiredBridge)return bridge_1;hasRequiredBridge=0x1;const _0x518645=new Map(),_0x16c49d=new Map();let _0x35fbee=0x1;const _0x5c40ca=new Map(),_0x1aaea2=new Map();let _0x3d8b18=0x1;const _0x26662f=new Map();let _0x4b0a19=0x1;const _0x563865=new Map();function _0x28abcd(_0x42302f,_0x140a0a=null){const _0x5b4f28=_0x4b0a19++;_0x26662f['set'](_0x5b4f28,_0x42302f);if(_0x140a0a)_0x563865['set'](_0x5b4f28,_0x140a0a);return _0x5b4f28;}function _0x32b3f4(_0x4b75cb,_0x597451){const _0x259885=_0x41a2,_0x2cb3c8=_0x26662f[_0x259885(0x1bc)](_0x4b75cb),_0xbcc354=Array['prototype'][_0x259885(0x331)][_0x259885(0x7cd)](arguments,0x2),_0x39b444=_0x5e62df=>_0x505500(_0x5e62df,_0x563865['get'](_0x4b75cb));let _0x5d0f2b=_0xbcc354;if(_0x597451==='start'||_0x597451==='stop'||_0x597451===_0x259885(0x335)||_0x597451===_0x259885(0x353)||_0x597451===_0x259885(0xe5))_0x5d0f2b=[_0x39b444(_0xbcc354[0x0])];else{if(_0x597451===_0x259885(0x297))_0x5d0f2b=[_0xbcc354[0x0],_0xbcc354[0x1],_0x39b444(_0xbcc354[0x2])];else{if(_0x597451===_0x259885(0x54e))_0x5d0f2b=[_0x39b444(_0xbcc354[0x0])];}}let _0x206b1d=_0x2cb3c8[_0x597451](..._0x5d0f2b);if(_0x206b1d&&typeof _0x206b1d['then']==='function')_0x206b1d=_0x146648(_0x206b1d);if(_0x597451===_0x259885(0x432)){const _0x336ec6=_0x206b1d&&typeof _0x206b1d==='object'?_0x28abcd(_0x206b1d):_0x28abcd({});return{'$api':_0x336ec6};}return _0x206b1d===undefined?null:_0x206b1d;}function _0x505500(_0x31f096,_0x2f9383){const _0x3849f6=_0x41a2;let _0x4df5d1=_0xce23f7[_0x3849f6(0x1bc)](_0x31f096[_0x3849f6(0xbb)]);const _0x560353=_0x4df5d1&&_0x4df5d1[_0x3849f6(0x6ff)]||_0x2f9383||_0x215e77,_0x4806cd=(_0x899c14,..._0x42e53c)=>_0x560353['_call'](_0x3849f6(0x7bc),null,_0x899c14,[_0x31f096[_0x3849f6(0x690)],_0x31f096['name'],..._0x42e53c],!![]);return{'okdb':_0x560353,'key':_0x31f096['key'],'type':_0x31f096['type'],'name':_0x31f096[_0x3849f6(0x5e6)],get 'storeEnv'(){const _0x5cb78c=_0x3849f6;if(!_0x4df5d1&&_0x560353&&_0x560353[_0x5cb78c(0x2ab)]&&_0x31f096['storeEnvName'])_0x4df5d1=_0x560353['_envs']['get'](_0x31f096[_0x5cb78c(0x69d)]);return _0x4df5d1;},'storeEnvName':_0x31f096[_0x3849f6(0x69d)],'config':_0x31f096[_0x3849f6(0x6a7)],'meta':_0x31f096[_0x3849f6(0x7a9)],'options':_0x31f096[_0x3849f6(0x2f0)],'emit':(_0x4f2a87,_0x5c86a2)=>_0x4806cd(_0x3849f6(0x617),_0x4f2a87,_0x5c86a2),'updateStatus':async(_0x4d28d5,_0x36fc9b)=>_0x4806cd(_0x3849f6(0x418),_0x4d28d5,_0x36fc9b==null?null:String(_0x36fc9b&&_0x36fc9b['message']?_0x36fc9b[_0x3849f6(0x18d)]:_0x36fc9b)),'updateMeta':async _0x10d1ef=>_0x4806cd(_0x3849f6(0xff),{'meta':_0x10d1ef}),'updateConfig':async _0x2bf283=>_0x4806cd('patchDeclaration',{'config':_0x2bf283})};}function _0x3629ed(_0x111976,_0x452886,_0x48e79){const _0x3b0846=_0x41a2;if(_0x111976==='new'){const _0x432a4c=_0x118634(_0x452886);let _0x2f6014=_0x432a4c(_0x48e79);if(_0x2f6014&&typeof _0x2f6014[_0x3b0846(0x583)]===_0x3b0846(0x7c4))_0x2f6014=_0x146648(_0x2f6014);if(!_0x2f6014||typeof _0x2f6014['embed']!==_0x3b0846(0x7c4)){const {OKDBError:_0x1d509b}=requireErrors();throw new _0x1d509b(_0x3b0846(0x5a6)+(_0x48e79&&_0x48e79['type'])+_0x3b0846(0x55c),'BAD_EMBEDDER_FACTORY');}return _0x2f6014[_0x3b0846(0x293)]=_0x432a4c[_0x3b0846(0x293)],{'$id':_0x28abcd(_0x2f6014),'batch':typeof _0x2f6014[_0x3b0846(0x679)]===_0x3b0846(0x7c4)};}const _0x3f25a9=_0x26662f[_0x3b0846(0x1bc)](_0x452886);if(_0x111976===_0x3b0846(0x17e))return _0x26662f[_0x3b0846(0x7ec)](_0x452886),_0x375f79[_0x3b0846(0x7ec)](_0x452886),null;if(!_0x3f25a9)throw new Error('embedder\x20is\x20gone');if(typeof _0x3f25a9[_0x111976]!=='function')return null;if(_0x111976===_0x3b0846(0x4f5)||_0x111976===_0x3b0846(0x679)){const _0x106673=_0x111976==='embedBatch'?_0x2dd960(_0x452886,_0x3f25a9,_0x48e79):_0x46773e(_0x452886,_0x3f25a9,_0x111976,_0x48e79);return _0x111976==='embed'?_0x1fcc7a(_0x106673):_0x106673[_0x3b0846(0x1d9)](_0x1fcc7a);}let _0x5ad229=_0x3f25a9[_0x111976]();if(_0x5ad229&&typeof _0x5ad229['then']===_0x3b0846(0x7c4))_0x5ad229=_0x146648(_0x5ad229);return _0x5ad229===undefined?null:_0x5ad229;}function _0x1fcc7a(_0x221563){return _0x221563 instanceof Float32Array?_0x221563:Array['from'](_0x221563);}function _0x193ebc(_0x2a2ea4,_0x58f14b,_0x1ff7e7){const _0x10ca1c=_0x41a2;if(_0x2a2ea4===_0x10ca1c(0x64f)){const _0xddcacf=_0x118634(_0x58f14b);let _0x5e7d35=_0xddcacf(_0x1ff7e7[_0x10ca1c(0x6a7)]??{},{'dims':_0x1ff7e7[_0x10ca1c(0x6b9)],'dir':_0x1ff7e7[_0x10ca1c(0x149)]});if(_0x5e7d35&&typeof _0x5e7d35[_0x10ca1c(0x583)]===_0x10ca1c(0x7c4))_0x5e7d35=_0x146648(_0x5e7d35);for(const _0xf5a8ad of[_0x10ca1c(0x1b2),_0x10ca1c(0x3a8),_0x10ca1c(0x4d2),'search','count']){if(!_0x5e7d35||typeof _0x5e7d35[_0xf5a8ad]!==_0x10ca1c(0x7c4)){const {OKDBError:_0x129003}=requireErrors();throw new _0x129003('Algorithm\x20factory\x20must\x20return\x20an\x20object\x20with\x20'+_0xf5a8ad+'()',_0x10ca1c(0x35e),{'method':_0xf5a8ad});}}return{'$id':_0x28abcd(_0x5e7d35)};}const _0x580bf3=_0x26662f[_0x10ca1c(0x1bc)](_0x58f14b);if(_0x2a2ea4===_0x10ca1c(0x17e))return _0x26662f[_0x10ca1c(0x7ec)](_0x58f14b),null;if(!_0x580bf3)throw new Error('algorithm\x20is\x20gone');const _0x30730a=_0x192380=>_0x192380?_0x192380['map'](_0x2383f7=>({'key':_0x2383f7['key'],'vector':Float32Array[_0x10ca1c(0x295)](_0x2383f7[_0x10ca1c(0x692)])})):null;let _0x1d0f19;switch(_0x2a2ea4){case _0x10ca1c(0x1b2):case _0x10ca1c(0x273):{const _0x54f679=_0x30730a(_0x1ff7e7);_0x1d0f19=_0x580bf3[_0x2a2ea4](_0x54f679?async()=>_0x54f679:undefined);break;}case _0x10ca1c(0x3a8):_0x1d0f19=_0x580bf3[_0x10ca1c(0x3a8)](_0x1ff7e7[0x0],Float32Array[_0x10ca1c(0x295)](_0x1ff7e7[0x1]),_0x1ff7e7[0x2]??undefined);break;case'remove':_0x1d0f19=_0x580bf3[_0x10ca1c(0x4d2)](_0x1ff7e7);break;case'search':_0x1d0f19=_0x580bf3[_0x10ca1c(0x292)](Float32Array[_0x10ca1c(0x295)](_0x1ff7e7[_0x10ca1c(0x787)]),_0x1ff7e7['opts']??{});break;case'snapshot':_0x1d0f19=typeof _0x580bf3[_0x10ca1c(0x65b)]==='function'?_0x580bf3[_0x10ca1c(0x65b)](_0x1ff7e7??undefined):![];break;case _0x10ca1c(0x4ff):_0x1d0f19=typeof _0x580bf3['stop']===_0x10ca1c(0x7c4)?_0x580bf3['stop']():undefined;break;case'tick':_0x1d0f19=typeof _0x580bf3[_0x10ca1c(0x6ce)]===_0x10ca1c(0x7c4)?_0x580bf3[_0x10ca1c(0x6ce)]():undefined;break;case'count':return Number(_0x580bf3[_0x10ca1c(0x70b)]());case _0x10ca1c(0xd5):return(typeof _0x580bf3[_0x10ca1c(0xd5)]==='function'?_0x580bf3[_0x10ca1c(0xd5)]():null)??{};default:throw new Error(_0x10ca1c(0x3ad)+_0x2a2ea4);}if(_0x1d0f19&&typeof _0x1d0f19['then']===_0x10ca1c(0x7c4))_0x1d0f19=_0x146648(_0x1d0f19);return _0x1d0f19===undefined?null:_0x1d0f19;}function _0x2369b3(_0x420336,_0x6767a2,_0x4dd7f1){const _0x169487=_0x41a2;if(_0x420336==='new'){const _0x383cf7=_0x118634(_0x6767a2);let _0x238d4d=_0x383cf7(_0x4dd7f1);if(_0x238d4d&&typeof _0x238d4d[_0x169487(0x583)]===_0x169487(0x7c4))_0x238d4d=_0x146648(_0x238d4d);if(!_0x238d4d)return null;const _0x53c5d1=[_0x169487(0x75a),_0x169487(0x5e1),_0x169487(0x1bc),_0x169487(0x70b),'dropAll',_0x169487(0x39b)][_0x169487(0x587)](_0x263030=>typeof _0x238d4d[_0x263030]==='function');return{'$id':_0x28abcd(_0x238d4d),'has':_0x53c5d1};}const _0xc293a0=_0x26662f['get'](_0x6767a2);if(_0x420336===_0x169487(0x17e))return _0x26662f[_0x169487(0x7ec)](_0x6767a2),null;if(!_0xc293a0)throw new Error(_0x169487(0x7e9));const _0x336486=_0xf79db8=>Float32Array[_0x169487(0x295)](_0xf79db8);let _0x2316c0;switch(_0x420336){case _0x169487(0x59b):_0x2316c0=_0xc293a0[_0x169487(0x59b)](_0x4dd7f1[0x0],_0x336486(_0x4dd7f1[0x1]));break;case _0x169487(0x4d2):_0x2316c0=_0xc293a0[_0x169487(0x4d2)](_0x4dd7f1);break;case _0x169487(0x401):{_0x2316c0=typeof _0xc293a0[_0x169487(0x401)]==='function'?_0xc293a0['getAll']():[];if(_0x2316c0&&typeof _0x2316c0[_0x169487(0x583)]===_0x169487(0x7c4))_0x2316c0=_0x146648(_0x2316c0);return Array[_0x169487(0x295)](_0x2316c0??[],_0x30f075=>({'key':_0x30f075['key'],'vector':Array[_0x169487(0x295)](_0x30f075['vector'])}));}case _0x169487(0x75a):_0x2316c0=_0xc293a0[_0x169487(0x75a)](_0x4dd7f1[_0x169487(0x6ab)][_0x169487(0x1d9)](_0x20e06b=>({'key':_0x20e06b[_0x169487(0x590)],'vector':_0x336486(_0x20e06b['vector'])})),_0x4dd7f1['removes']);break;case _0x169487(0x5e1):_0x2316c0=_0xc293a0[_0x169487(0x5e1)](_0x4dd7f1??undefined);if(_0x2316c0&&typeof _0x2316c0['then']===_0x169487(0x7c4))_0x2316c0=_0x146648(_0x2316c0);return Array[_0x169487(0x295)](_0x2316c0??[]);case _0x169487(0x1bc):{_0x2316c0=_0xc293a0['get'](_0x4dd7f1);if(_0x2316c0&&typeof _0x2316c0[_0x169487(0x583)]===_0x169487(0x7c4))_0x2316c0=_0x146648(_0x2316c0);return _0x2316c0==null?null:Array[_0x169487(0x295)](_0x2316c0);}case _0x169487(0x70b):return Number(_0xc293a0[_0x169487(0x70b)]());case'dropAll':_0x2316c0=_0xc293a0[_0x169487(0x52c)]();break;case'stats':return _0xc293a0[_0x169487(0x39b)]()??null;default:throw new Error(_0x169487(0x44d)+_0x420336);}if(_0x2316c0&&typeof _0x2316c0[_0x169487(0x583)]===_0x169487(0x7c4))_0x2316c0=_0x146648(_0x2316c0);return _0x2316c0===undefined?null:_0x2316c0;}const _0x1ab023=new Map();function _0x46773e(_0x32840d,_0x214480,_0x107a9e,_0x524c2f){const _0x30eb0f=_0x41a2,_0x1dec32=_0x32840d+'\x00'+_0x107a9e+'\x00'+JSON[_0x30eb0f(0x64b)](_0x524c2f),_0x5065fd=_0x1ab023[_0x30eb0f(0x1bc)](_0x1dec32);if(_0x5065fd){if(_0x5065fd['state']==='pending')throw _0x50b85b();_0x1ab023[_0x30eb0f(0x7ec)](_0x1dec32);if(_0x5065fd[_0x30eb0f(0x1a2)]===_0x30eb0f(0x27d))throw _0x5065fd['value'];return _0x5065fd[_0x30eb0f(0x6f0)];}const _0x180a64=_0x214480[_0x107a9e](_0x524c2f);if(!_0x180a64||typeof _0x180a64[_0x30eb0f(0x583)]!==_0x30eb0f(0x7c4))return _0x180a64;const _0x5a070f={'state':_0x30eb0f(0x5a9),'value':undefined};_0x180a64[_0x30eb0f(0x583)](_0x39d15d=>{const _0x580d3d=_0x30eb0f;_0x5a070f[_0x580d3d(0x1a2)]='ok',_0x5a070f[_0x580d3d(0x6f0)]=_0x39d15d;if(_0x1ab023[_0x580d3d(0x1bc)](_0x1dec32)===_0x5a070f)_0x189802(_0x214480);},_0x494b44=>{const _0x585cd7=_0x30eb0f;_0x5a070f[_0x585cd7(0x1a2)]=_0x585cd7(0x27d),_0x5a070f[_0x585cd7(0x6f0)]=_0x494b44;if(_0x1ab023[_0x585cd7(0x1bc)](_0x1dec32)===_0x5a070f)_0x189802(_0x214480);});for(let _0xb5aea5=0x0;_0xb5aea5<0x64&&_0x5a070f[_0x30eb0f(0x1a2)]===_0x30eb0f(0x5a9);_0xb5aea5++)process[_0x30eb0f(0x311)]();if(_0x5a070f[_0x30eb0f(0x1a2)]==='ok')return _0x5a070f['value'];if(_0x5a070f[_0x30eb0f(0x1a2)]==='err')throw _0x5a070f[_0x30eb0f(0x6f0)];_0x1ab023[_0x30eb0f(0x48c)](_0x1dec32,_0x5a070f);throw _0x50b85b();}const _0x375f79=new Map(),_0x2c5ba7=0xa*0x3c*0x3e8;function _0x2dd960(_0xd74cd2,_0xf5978d,_0x558fdc){const _0x15c2a0=_0x41a2,_0x1067e9=Array[_0x15c2a0(0x17d)](_0x558fdc)?_0x558fdc:Array[_0x15c2a0(0x295)](_0x558fdc??[]);let _0x3826ee=_0x375f79[_0x15c2a0(0x1bc)](_0xd74cd2);if(!_0x3826ee)_0x375f79[_0x15c2a0(0x48c)](_0xd74cd2,_0x3826ee=new Map());const _0xfed3a9=Date[_0x15c2a0(0x772)]();for(const [_0x2611f7,_0x33e375]of _0x3826ee)if(_0x33e375[_0x15c2a0(0x6c1)]['state']!==_0x15c2a0(0x5a9)&&_0xfed3a9-_0x33e375[_0x15c2a0(0x6c1)]['at']>_0x2c5ba7)_0x3826ee[_0x15c2a0(0x7ec)](_0x2611f7);const _0x3c41ef=_0x1067e9[_0x15c2a0(0x1d9)](_0x28c76e=>JSON['stringify'](_0x28c76e));let _0x1f9987=![];const _0x433328=[],_0x30dbed=new Set();for(let _0x532a63=0x0;_0x532a63<_0x3c41ef[_0x15c2a0(0x2a9)];_0x532a63++){const _0x1f69f9=_0x3826ee[_0x15c2a0(0x1bc)](_0x3c41ef[_0x532a63]);if(!_0x1f69f9)!_0x30dbed['has'](_0x3c41ef[_0x532a63])&&(_0x30dbed[_0x15c2a0(0x3a8)](_0x3c41ef[_0x532a63]),_0x433328[_0x15c2a0(0x540)](_0x532a63));else{if(_0x1f69f9['req'][_0x15c2a0(0x1a2)]===_0x15c2a0(0x5a9))_0x1f9987=!![];else{if(_0x1f69f9['req'][_0x15c2a0(0x1a2)]===_0x15c2a0(0x27d)){const _0x345eea=_0x1f69f9[_0x15c2a0(0x6c1)][_0x15c2a0(0x6f0)];for(const [_0x38c776,_0x41eeb1]of _0x3826ee)if(_0x41eeb1[_0x15c2a0(0x6c1)]===_0x1f69f9[_0x15c2a0(0x6c1)])_0x3826ee['delete'](_0x38c776);throw _0x345eea;}}}}if(_0x1f9987)throw _0x50b85b();if(_0x433328[_0x15c2a0(0x2a9)]){const _0x5489b6=_0x433328[_0x15c2a0(0x1d9)](_0x553d51=>_0x1067e9[_0x553d51]),_0x3b6ed2=_0xf5978d[_0x15c2a0(0x679)](_0x5489b6),_0x1825c9={'state':_0x15c2a0(0x5a9),'value':undefined,'at':0x0},_0x504104=(_0xdc905d,_0x2a85ec)=>{const _0x16d86f=_0x15c2a0;_0x1825c9[_0x16d86f(0x1a2)]=_0xdc905d,_0x1825c9[_0x16d86f(0x6f0)]=_0x2a85ec,_0x1825c9['at']=Date[_0x16d86f(0x772)]();};if(!_0x3b6ed2||typeof _0x3b6ed2[_0x15c2a0(0x583)]!==_0x15c2a0(0x7c4))_0x504104('ok',_0x3b6ed2);else{let _0x3aa1bf=!![];_0x3b6ed2['then'](_0xe5a7c6=>{_0x504104('ok',_0xe5a7c6);if(!_0x3aa1bf)_0x189802(_0xf5978d);},_0x55e189=>{_0x504104('err',_0x55e189);if(!_0x3aa1bf)_0x189802(_0xf5978d);});for(let _0x10e74a=0x0;_0x10e74a<0x64&&_0x1825c9[_0x15c2a0(0x1a2)]===_0x15c2a0(0x5a9);_0x10e74a++)process['_tickCallback']();_0x3aa1bf=![];}for(let _0x495ad4=0x0;_0x495ad4<_0x433328[_0x15c2a0(0x2a9)];_0x495ad4++)_0x3826ee[_0x15c2a0(0x48c)](_0x3c41ef[_0x433328[_0x495ad4]],{'req':_0x1825c9,'index':_0x495ad4});if(_0x1825c9[_0x15c2a0(0x1a2)]==='err'){for(const _0x3ff745 of _0x433328)_0x3826ee[_0x15c2a0(0x7ec)](_0x3c41ef[_0x3ff745]);throw _0x1825c9[_0x15c2a0(0x6f0)];}if(_0x1825c9['state']===_0x15c2a0(0x5a9))throw _0x50b85b();}const _0x2a6b39=_0x3c41ef[_0x15c2a0(0x1d9)](_0x465fe1=>{const _0x842fe5=_0x15c2a0,_0xde7fc2=_0x3826ee['get'](_0x465fe1),_0xdcb5f4=_0xde7fc2[_0x842fe5(0x6c1)][_0x842fe5(0x6f0)];return _0xdcb5f4?_0xdcb5f4[_0xde7fc2[_0x842fe5(0x545)]]:undefined;});for(const _0x5373df of _0x3c41ef)_0x3826ee[_0x15c2a0(0x7ec)](_0x5373df);if(!_0x3826ee[_0x15c2a0(0x74f)])_0x375f79[_0x15c2a0(0x7ec)](_0xd74cd2);return _0x2a6b39;}function _0x50b85b(){const _0x3ed5d4=_0x41a2;return Object[_0x3ed5d4(0x2e1)](new Error(_0x3ed5d4(0x584)),{'code':_0x3ed5d4(0x50d)});}function _0x189802(_0x538982){const _0x128045=_0x41a2;_0x31abde();try{const _0x39008a=_0x538982[_0x128045(0x293)]||_0x215e77;if(_0x39008a&&_0x39008a['_isOpen'])_0x39008a[_0x128045(0x722)](_0x128045(0x6bf),null,'emit',[_0x128045(0x454),{}],!![]);}catch{}}function _0x2d9679(_0x15c167,_0x309d77,_0x397eca){const _0x5c3d61=_0x41a2,_0x3acb2=_0x26662f[_0x5c3d61(0x1bc)](_0x15c167);if(!_0x3acb2||typeof _0x3acb2[_0x309d77]!==_0x5c3d61(0x7c4))return{'__absent':!![]};let _0x2bce4a=_0x3acb2[_0x309d77](...Array[_0x5c3d61(0x17d)](_0x397eca)?_0x397eca:[]);if(_0x2bce4a&&typeof _0x2bce4a[_0x5c3d61(0x583)]===_0x5c3d61(0x7c4))_0x2bce4a=_0x146648(_0x2bce4a);return{'value':_0x2bce4a===undefined?null:_0x2bce4a};}const _0x14ec9c=new Map();let _0x28a1c9=0x1;const _0xce23f7=new Map(),_0x3bf704=new Map();function _0x39630e(_0x124b4a,_0x3ed2ce=null){const _0x3472a0=_0x41a2,_0xc76aee=_0x28a1c9++;_0x14ec9c[_0x3472a0(0x48c)](_0xc76aee,_0x124b4a);if(_0x3ed2ce)_0x3bf704[_0x3472a0(0x48c)](_0xc76aee,_0x3ed2ce);return _0xc76aee;}function _0x19fc98(_0x46028a){const _0x40a1f8=_0x41a2;for(const [_0x565383,_0x3c5929]of _0xce23f7)if(_0x3c5929&&_0x3c5929[_0x40a1f8(0x6ff)]===_0x46028a)_0xce23f7['delete'](_0x565383);for(const [_0x5248b0,_0x4115e1]of _0x563865)if(_0x4115e1===_0x46028a)_0x563865[_0x40a1f8(0x7ec)](_0x5248b0);for(const [_0x555487,_0x330795]of _0x3bf704)_0x330795===_0x46028a&&(_0x3bf704[_0x40a1f8(0x7ec)](_0x555487),_0x14ec9c[_0x40a1f8(0x7ec)](_0x555487));if(_0x215e77===_0x46028a)_0x215e77=null;}function _0x8495d6(_0x544b60,_0x31140c){_0xce23f7['set'](_0x544b60,_0x31140c);}function _0x3dcc83(_0x586299){const _0x153909=_0x41a2;if(_0x586299&&typeof _0x586299===_0x153909(0x4ed)&&Object[_0x153909(0x5e1)](_0x586299)[_0x153909(0x2a9)]===0x1&&_0x586299['$payload']!==undefined)return _0x14ec9c[_0x153909(0x1bc)](_0x586299[_0x153909(0x683)]);return _0x586299;}function _0x146648(_0x543824){const _0x154133=_0x41a2;let _0x113125=![],_0x2b6da7=![],_0xeef6a0;_0x543824[_0x154133(0x583)](_0x5ee1c4=>{_0x113125=!![],_0xeef6a0=_0x5ee1c4;},_0x49d49d=>{_0x113125=!![],_0x2b6da7=!![],_0xeef6a0=_0x49d49d;});for(let _0x2b3232=0x0;_0x2b3232<0x2710&&!_0x113125;_0x2b3232++)process[_0x154133(0x311)]();if(!_0x113125)return _0x543824[_0x154133(0x583)](undefined,_0x3e5fc7=>{const _0x264d20=_0x154133;try{process[_0x264d20(0x1b3)](_0x264d20(0x5c4)+(_0x3e5fc7&&_0x3e5fc7[_0x264d20(0x18d)]?_0x3e5fc7[_0x264d20(0x18d)]:_0x3e5fc7));}catch{}}),undefined;if(_0x2b6da7)throw _0xeef6a0;return _0xeef6a0;}function _0x3e89b0(_0x2af888,_0x39efb9,_0x2e6c4e){const _0x408434=_0x41a2,_0x44c0b1=_0x118634(_0x2af888),_0x6b950e=_0xce23f7[_0x408434(0x1bc)](_0x39efb9);try{const _0x3c52cb=_0x44c0b1(_0x2e6c4e,{'okdb':_0x6b950e&&_0x6b950e[_0x408434(0x6ff)],'env':_0x6b950e});if(_0x3c52cb&&typeof _0x3c52cb[_0x408434(0x583)]===_0x408434(0x7c4))_0x146648(_0x3c52cb);}catch(_0x42151d){if(_0x42151d&&_0x42151d[_0x408434(0x13a)]===!![]&&_0x42151d[_0x408434(0x30f)]!==_0x408434(0x230)){const _0x1d7f27=new Error(_0x42151d['message']);_0x1d7f27[_0x408434(0x30f)]=_0x408434(0x230);throw _0x1d7f27;}throw _0x42151d;}}const _0x16d449=new Map();function _0x32f755(_0x2598eb,_0x444faf,_0x297761,_0x4b842a,_0x382643,_0x56d22e){const _0x41ba17=_0x41a2,_0x4adca3=_0x118634(_0x2598eb),_0x2579dc=(_0xce23f7['get'](_0x56d22e)||{})[_0x41ba17(0x6ff)]||_0x215e77,_0x2e9423=new AbortController(),_0x249617=(_0xd5c413,..._0x285e17)=>_0x2579dc[_0x41ba17(0x722)](_0x41ba17(0x4f3),_0x41ba17(0x686),_0xd5c413,_0x285e17,![]),_0xdb9c5e={'okdb':_0x2579dc,'env':_0xce23f7[_0x41ba17(0x1bc)](_0x56d22e)||null,'job':_0x4b842a,'jobId':_0x382643,'signal':_0x2e9423['signal'],'heartbeat':()=>_0x249617(_0x41ba17(0x4ac),_0x297761),'markProgress':_0x119796=>_0x249617(_0x41ba17(0x2c6),_0x297761,_0x119796),'log':(_0x3b76ff,_0x2ad96c)=>_0x249617(_0x41ba17(0x3cd),_0x297761,_0x3b76ff,_0x2ad96c)};_0x16d449['set'](_0x297761,{'ctrl':_0x2e9423,'call':_0x249617});const _0x248807=()=>{const _0x160869=_0x41ba17;_0x16d449[_0x160869(0x7ec)](_0x297761);try{_0x249617(_0x160869(0x4a2),_0x297761);}catch{}};let _0x378e13;try{_0x378e13=_0x4adca3(_0x444faf,_0xdb9c5e);}catch(_0x4dae14){_0x248807();throw _0x4dae14;}if(_0x378e13&&typeof _0x378e13['then']===_0x41ba17(0x7c4)){const _0x30f953=_0xcbe5a1(_0x378e13);return _0x378e13[_0x41ba17(0x583)](_0x248807,_0x248807),{'$token':_0x30f953};}return _0x248807(),_0x378e13;}function _0x2f39af(){const _0x28fdec=_0x41a2;for(const [_0x125bb2,_0x15f5c7]of _0x16d449){if(_0x15f5c7[_0x28fdec(0x14f)]['signal'][_0x28fdec(0x475)])continue;let _0x4f93c6;try{_0x4f93c6=_0x15f5c7[_0x28fdec(0x7cd)](_0x28fdec(0x220),_0x125bb2);}catch{continue;}if(_0x4f93c6&&_0x4f93c6[_0x28fdec(0x475)]){const {OKDBError:_0x6fe654}=requireErrors();_0x15f5c7[_0x28fdec(0x14f)][_0x28fdec(0x775)](new _0x6fe654(_0x4f93c6[_0x28fdec(0x18d)],_0x4f93c6[_0x28fdec(0x30f)]));}}}let _0x215e77=null;function _0x36511d(_0x73df02){_0x215e77=_0x73df02;}function _0x4b1e24(_0x5f1d4d,_0x396f6d,_0x2f7310,_0x259f86,_0x11191c,_0x84f9e3,_0x5218b1){const _0x433a55=_0x41a2,_0x36a3f1=_0x118634(_0x5f1d4d),_0x4fee9d=_0xce23f7[_0x433a55(0x1bc)](_0x2f7310);try{const _0x189a42=_0x396f6d?_0x36a3f1(_0x11191c,_0x84f9e3):_0x36a3f1({'env':_0x4fee9d,'okdb':_0x4fee9d&&_0x4fee9d[_0x433a55(0x6ff)],'payload':_0x3dcc83(_0x259f86)},_0x11191c,_0x84f9e3);if(_0x189a42&&typeof _0x189a42[_0x433a55(0x583)]===_0x433a55(0x7c4)){if(_0x84f9e3&&_0x84f9e3[_0x433a55(0x520)]===_0x433a55(0x653))_0x189a42[_0x433a55(0x583)](undefined,()=>{});else{if(_0x5218b1){const _0x437d6e=_0x333a48(_0x189a42);if(_0x437d6e===0x0)return null;return{'$token':_0x437d6e};}else _0x146648(_0x189a42);}}}catch(_0xc87b11){if(_0xc87b11&&_0xc87b11[_0x433a55(0x13a)]===!![]&&_0xc87b11[_0x433a55(0x30f)]!==_0x433a55(0x230)){const _0x4321a7=new Error(_0xc87b11[_0x433a55(0x18d)]);_0x4321a7['code']=_0x433a55(0x230);throw _0x4321a7;}throw _0xc87b11;}return null;}function _0x333a48(_0x1075d7){const _0xe6ecda=_0x41a2;let _0x4df453=_0xe6ecda(0x5a9),_0x4458a9;_0x1075d7[_0xe6ecda(0x583)](_0x3f14c4=>{_0x4df453='ok',_0x4458a9=_0x3f14c4;},_0x236c95=>{const _0x42a05f=_0xe6ecda;_0x4df453=_0x42a05f(0x27d),_0x4458a9=_0x236c95;});for(let _0x569042=0x0;_0x569042<0x64&&_0x4df453==='pending';_0x569042++)process['_tickCallback']();if(_0x4df453==='ok')return 0x0;const _0x4031bb=_0x3d8b18++,_0x45523b={'state':_0x4df453,'value':_0x4458a9};_0x1aaea2['set'](_0x4031bb,_0x45523b);if(_0x4df453==='pending')_0x1075d7['then'](_0x3350c5=>{const _0x368677=_0xe6ecda;_0x45523b[_0x368677(0x1a2)]='ok',_0x45523b['value']=_0x3350c5,_0x31abde();},_0x5650b8=>{const _0xdf8f1f=_0xe6ecda;_0x45523b[_0xdf8f1f(0x1a2)]=_0xdf8f1f(0x27d),_0x45523b[_0xdf8f1f(0x6f0)]=_0x5650b8,_0x31abde();});return _0x4031bb;}function _0xcf354d(_0x415749){const _0x58e073=_0x41a2;let _0x3d4f8d=_0x16c49d[_0x58e073(0x1bc)](_0x415749);return _0x3d4f8d===undefined&&(_0x3d4f8d=_0x35fbee++,_0x16c49d[_0x58e073(0x48c)](_0x415749,_0x3d4f8d),_0x518645[_0x58e073(0x48c)](_0x3d4f8d,{'fn':_0x415749,'refs':0x0})),_0x518645[_0x58e073(0x1bc)](_0x3d4f8d)[_0x58e073(0x559)]++,_0x3d4f8d;}function _0x2c1a21(_0x4de9b1){const _0x1b8f28=_0x41a2,_0x14cfb9=_0x518645['get'](_0x4de9b1);if(!_0x14cfb9)return;--_0x14cfb9[_0x1b8f28(0x559)]<=0x0&&(_0x518645[_0x1b8f28(0x7ec)](_0x4de9b1),_0x16c49d[_0x1b8f28(0x7ec)](_0x14cfb9['fn']));}function _0x118634(_0x1418d8){const _0x567a42=_0x41a2,_0x520238=_0x518645[_0x567a42(0x1bc)](_0x1418d8);if(!_0x520238)throw new Error(_0x567a42(0x4b0)+_0x1418d8);return _0x520238['fn'];}function _0xcbe5a1(_0x80cce9){const _0x41de79=_0x41a2;if(_0x80cce9&&typeof _0x80cce9[_0x41de79(0x583)]===_0x41de79(0x7c4)){const _0x43d826=_0x3d8b18++,_0x1aea24={'state':'pending','value':undefined};return _0x1aaea2[_0x41de79(0x48c)](_0x43d826,_0x1aea24),_0x80cce9[_0x41de79(0x583)](_0x21c24f=>{const _0x67b401=_0x41de79;_0x1aea24[_0x67b401(0x1a2)]='ok',_0x1aea24[_0x67b401(0x6f0)]=_0x21c24f,_0x31abde();},_0xcb489=>{const _0xda9eb1=_0x41de79;_0x1aea24[_0xda9eb1(0x1a2)]=_0xda9eb1(0x27d),_0x1aea24['value']=_0xcb489,_0x31abde();}),_0x43d826;}return 0x0;}let _0x2ba425=()=>{},_0x3c826c=null;function _0x2a7e61(_0x44f1c0,_0x1dd3f9=null){_0x2ba425=_0x44f1c0,_0x3c826c=_0x1dd3f9;}function _0x4c83cb(_0x27275e){return _0x3c826c===_0x27275e;}function _0x31abde(){_0x2ba425();}function _0x1fab02(_0x159145){const _0x20a9b0=_0x41a2,_0x299ad3=_0x1aaea2[_0x20a9b0(0x1bc)](_0x159145);if(!_0x299ad3)return{'state':_0x20a9b0(0x27d),'error':{'message':_0x20a9b0(0x5a7)}};if(_0x299ad3[_0x20a9b0(0x1a2)]===_0x20a9b0(0x5a9))return{'state':_0x20a9b0(0x5a9)};_0x1aaea2[_0x20a9b0(0x7ec)](_0x159145);if(_0x299ad3[_0x20a9b0(0x1a2)]==='ok')return{'state':'ok','value':_0x299ad3[_0x20a9b0(0x6f0)]};const _0x22f244=_0x299ad3[_0x20a9b0(0x6f0)];return{'state':_0x20a9b0(0x27d),'error':{'message':_0x22f244&&_0x22f244[_0x20a9b0(0x18d)]!=null?String(_0x22f244[_0x20a9b0(0x18d)]):String(_0x22f244),'stack':_0x22f244&&_0x22f244[_0x20a9b0(0x575)],'code':_0x22f244&&_0x22f244[_0x20a9b0(0x30f)],'status':_0x22f244&&typeof _0x22f244[_0x20a9b0(0x5d2)]===_0x20a9b0(0x1ce)?_0x22f244[_0x20a9b0(0x5d2)]:undefined,'hold':!!(_0x22f244&&_0x22f244['processorHold']===!![])}};}function _0x4b725b(_0x501930,_0x3f964c){const _0x12835c=_0x41a2;_0x5c40ca[_0x12835c(0x48c)](_0x501930,_0x3f964c);}function _0x1a0841(_0x5d64f9){const _0x10f3b1=_0x41a2;_0x5c40ca[_0x10f3b1(0x7ec)](_0x5d64f9);}let _0x2d8c11=0x0;function _0x2d5013(){return _0x2d8c11>0x0;}function _0x344843(){const _0x2f6e35=_0x41a2;_0x2d8c11++;try{return _0x383f85[_0x2f6e35(0x5b0)](undefined,arguments);}finally{_0x2d8c11--;}}function _0x383f85(_0x18fba6,_0x4bb512,_0x3e11a1,_0x4f239e,_0x2b0bad,_0x1379cc){const _0x3cdd65=_0x41a2;switch(_0x18fba6){case _0x3cdd65(0x61f):return _0xcf354d(_0x4bb512);case'unreg':return _0x2c1a21(_0x4bb512);case _0x3cdd65(0x7cd):{const _0x388833=Array[_0x3cdd65(0x34d)][_0x3cdd65(0x331)][_0x3cdd65(0x7cd)](arguments,0x2),_0x7b659b=_0x118634(_0x4bb512)[_0x3cdd65(0x5b0)](undefined,_0x388833);return _0x7b659b&&typeof _0x7b659b[_0x3cdd65(0x583)]===_0x3cdd65(0x7c4)?_0x146648(_0x7b659b):_0x7b659b;}case'callAsync':{const _0x181458=Array[_0x3cdd65(0x34d)][_0x3cdd65(0x331)]['call'](arguments,0x2),_0x2a8980=_0x118634(_0x4bb512)[_0x3cdd65(0x5b0)](undefined,_0x181458);if(_0x2a8980&&typeof _0x2a8980[_0x3cdd65(0x583)]===_0x3cdd65(0x7c4))return{'$token':_0xcbe5a1(_0x2a8980)};return{'$value':_0x2a8980===undefined?null:_0x2a8980,'$undef':_0x2a8980===undefined};}case _0x3cdd65(0x6dc):{const _0x3322c8=_0x5c40ca[_0x3cdd65(0x1bc)](_0x4bb512);if(_0x3322c8)_0x3322c8[_0x3cdd65(0x1f8)](_0x3e11a1,_0x4f239e);return undefined;}case'log':{const _0x418cd0=_0x5c40ca['get'](_0x4bb512);if(_0x418cd0)_0x418cd0[_0x3cdd65(0x6d7)](_0x3e11a1);return undefined;}case _0x3cdd65(0x560):return _0x4b1e24(_0x4bb512,_0x3e11a1,_0x4f239e,_0x2b0bad,_0x1379cc,arguments[0x6],arguments[0x7]);case'quantum':return _0x3e89b0(_0x4bb512,_0x3e11a1,_0x4f239e);case _0x3cdd65(0x27f):return _0x32f755(_0x4bb512,_0x3e11a1,_0x4f239e,_0x2b0bad,_0x1379cc,arguments[0x6]);case _0x3cdd65(0x73a):return _0x32b3f4[_0x3cdd65(0x5b0)](null,Array[_0x3cdd65(0x34d)][_0x3cdd65(0x331)]['call'](arguments,0x1));case _0x3cdd65(0x7d5):return _0x2d9679(_0x4bb512,_0x3e11a1,_0x4f239e);case _0x3cdd65(0x54d):return _0x1fab02(_0x4bb512);case'fetchJson':{const _0x1e7c90=((async()=>{const _0x1d7c85=_0x3cdd65,_0x4dc4b9=await globalThis['fetch'](_0x4bb512);if(!_0x4dc4b9['ok']){const _0x2a5100=new Error('HTTP\x20'+_0x4dc4b9[_0x1d7c85(0x5d2)]);_0x2a5100[_0x1d7c85(0x30f)]=_0x1d7c85(0x307);throw _0x2a5100;}return _0x4dc4b9['json']();})());return _0x146648(_0x1e7c90)??null;}case _0x3cdd65(0x280):return _0x3629ed(_0x4bb512,_0x3e11a1,_0x4f239e);case _0x3cdd65(0x3f7):return _0x193ebc(_0x4bb512,_0x3e11a1,_0x4f239e);case'stor':return _0x2369b3(_0x4bb512,_0x3e11a1,_0x4f239e);default:throw new Error(_0x3cdd65(0x54a)+_0x18fba6);}}return bridge_1={'inNativeCall':_0x2d5013,'regObject':_0x28abcd,'checkSignals':_0x2f39af,'setCurrentDb':_0x36511d,'forgetDb':_0x19fc98,'storePayload':_0x39630e,'registerEnv':_0x8495d6,'resolvePayload':_0x3dcc83,'bridge':_0x344843,'reg':_0xcf354d,'unreg':_0x2c1a21,'fnOf':_0x118634,'track':_0xcbe5a1,'resolve':_0x1fab02,'registerTarget':_0x4b725b,'unregisterTarget':_0x1a0841,'setKick':_0x2a7e61,'kickOwnedBy':_0x4c83cb},bridge_1;}var writebatch,hasRequiredWritebatch;function requireWritebatch(){const _0x4c5dbf=_0x431d06;if(hasRequiredWritebatch)return writebatch;hasRequiredWritebatch=0x1;const {reclass:_0x9051c4}=requireErrors(),_0x555b89=requireBridge(),_0x184fe0=new Map();let _0x2c375a=null;function _0x453784(_0x42eeb5){if(_0x2c375a)return;_0x2c375a=_0x42eeb5,_0x42eeb5['setFlushNotify'](_0x2bed56);}function _0x2bed56(){const _0x475a17=_0x41a2,_0x1ff175=_0x2c375a[_0x475a17(0x3ee)]();for(const _0xe8f4c2 of _0x1ff175){const _0xcf3112=_0x184fe0['get'](_0xe8f4c2);_0xcf3112&&(_0x184fe0[_0x475a17(0x7ec)](_0xe8f4c2),_0xcf3112());}}function _0x13b30e(_0x355d1d,_0x3e67fc){const _0x4e4608=_0x41a2;_0x184fe0[_0x4e4608(0x48c)](_0x355d1d,_0x3e67fc);}class _0x50a826{constructor(_0x48da16){const _0x17ab41=_0x41a2;this['db']=_0x48da16,this[_0x17ab41(0x4f3)]=[],this[_0x17ab41(0x205)]=![],this[_0x17ab41(0x1d3)]=![],this[_0x17ab41(0x1a0)]=new Set();}[_0x4c5dbf(0x2ba)](_0x4257d9,_0x16cdef,_0x2978ff,_0x1913b9){const _0x1a024a=_0x4c5dbf;if(_0x555b89['inNativeCall']())try{return Promise[_0x1a024a(0x54d)](this['db']['_call'](_0x4257d9,_0x16cdef,_0x2978ff,_0x1913b9));}catch(_0x518a56){return Promise[_0x1a024a(0x3d4)](_0x518a56);}const _0x495d8d=new Promise((_0x2c862f,_0x1cabd0)=>{const _0x277eb1=_0x1a024a;this[_0x277eb1(0x4f3)]['push']({'item':[_0x4257d9,_0x16cdef,_0x2978ff,_0x1913b9],'resolve':_0x2c862f,'reject':_0x1cabd0});});this[_0x1a024a(0x1a0)][_0x1a024a(0x3a8)](_0x495d8d);const _0x2d5882=()=>this[_0x1a024a(0x1a0)][_0x1a024a(0x7ec)](_0x495d8d);return _0x495d8d[_0x1a024a(0x583)](_0x2d5882,_0x2d5882),!this[_0x1a024a(0x205)]&&(this[_0x1a024a(0x205)]=!![],setImmediate(()=>{const _0x6bc6cd=_0x1a024a;this[_0x6bc6cd(0x205)]=![],this['commit']();})),_0x495d8d;}[_0x4c5dbf(0x7dd)](){const _0x2df68e=_0x4c5dbf;if(!this[_0x2df68e(0x4f3)]['length'])return;if(this['inBatch']){!this[_0x2df68e(0x205)]&&(this[_0x2df68e(0x205)]=!![],setImmediate(()=>{const _0x510df5=_0x2df68e;this[_0x510df5(0x205)]=![],this[_0x510df5(0x7dd)]();}));return;}const _0x1d7ac3=this[_0x2df68e(0x4f3)];this[_0x2df68e(0x4f3)]=[],this[_0x2df68e(0x731)](_0x1d7ac3);}[_0x4c5dbf(0x731)](_0x1362b3){const _0x46569f=_0x4c5dbf;let _0x3ee70a;this[_0x46569f(0x1d3)]=!![];try{_0x3ee70a=this['db'][_0x46569f(0x66d)][_0x46569f(0x396)](_0x1362b3[_0x46569f(0x1d9)](_0x2087db=>_0x2087db[_0x46569f(0x285)]));}catch(_0x19fcbd){this['inBatch']=![];if(_0x1362b3['length']>0x1){for(const _0x4d37b8 of _0x1362b3)this[_0x46569f(0x731)]([_0x4d37b8]);return;}const _0x40f451=_0x9051c4(_0x19fcbd);for(const _0x5f3a20 of _0x1362b3)_0x5f3a20[_0x46569f(0x3d4)](_0x40f451);return;}finally{this[_0x46569f(0x1d3)]=![];}try{this['db'][_0x46569f(0x6bc)]['wake']();}catch{}const [_0x1c9d7b,_0x538616]=_0x3ee70a;_0x13b30e(_0x538616,()=>{const _0x5857ed=_0x46569f;for(let _0x372dba=0x0;_0x372dba<_0x1362b3[_0x5857ed(0x2a9)];_0x372dba++){const _0x18ada=_0x1c9d7b[_0x372dba];if(_0x18ada&&_0x18ada[0x0])_0x1362b3[_0x372dba][_0x5857ed(0x54d)](_0x18ada[0x1]);else _0x1362b3[_0x372dba]['reject'](_0x9051c4(_0x18ada?_0x18ada[0x1]:new Error(_0x5857ed(0x284))));}});}async[_0x4c5dbf(0x423)](){const _0x36107c=_0x4c5dbf;this[_0x36107c(0x7dd)]();while(this[_0x36107c(0x1a0)][_0x36107c(0x74f)]){await Promise[_0x36107c(0x6cb)]([...this[_0x36107c(0x1a0)]]),this[_0x36107c(0x7dd)]();}let _0x7e193;try{_0x7e193=this['db'][_0x36107c(0x66d)]['flushTicket']();}catch{return;}await new Promise(_0x2213e1=>_0x13b30e(_0x7e193,_0x2213e1));}}return writebatch={'install':_0x453784,'WriteBatch':_0x50a826,'whenSettled':_0x13b30e},writebatch;}var pump,hasRequiredPump;function requirePump(){const _0x462bf4=_0x431d06;if(hasRequiredPump)return pump;hasRequiredPump=0x1;const _0x303dea=Number(process.env.OKDB_NATIVE_IDLE_MS)||0xfa;class _0x1d1f1a{constructor(_0x1bc799){const _0xe95d2a=_0x41a2;this['native']=_0x1bc799,this['timer']=null,this[_0xe95d2a(0x28d)]=null,this[_0xe95d2a(0x1e2)]=![],this[_0xe95d2a(0x3d7)]=![],this['pumping']=![],this['dirty']=![],this[_0xe95d2a(0x47f)]=0x0,this[_0xe95d2a(0x7ba)]=[],this[_0xe95d2a(0xf1)]=[];}[_0x462bf4(0x519)](_0x2f415d){return new Promise(_0x1a956b=>{const _0x107647=_0x41a2,_0x446d80=setTimeout(_0xc1d997,_0x2f415d);function _0xc1d997(){clearTimeout(_0x446d80),_0x1a956b();}this[_0x107647(0xf1)]['push'](_0xc1d997);});}[_0x462bf4(0x798)](){const _0x42b2cd=_0x462bf4;if(this[_0x42b2cd(0xf1)]['length']===0x0)return;const _0x4d8d76=this['turnWaiters'];this[_0x42b2cd(0xf1)]=[];for(const _0x42fbc8 of _0x4d8d76)_0x42fbc8();}[_0x462bf4(0x432)](){this['stopped']=![],this['wake']();}[_0x462bf4(0x4ff)](){const _0x49e06e=_0x462bf4;this[_0x49e06e(0x3d7)]=!![];if(this['timer'])clearTimeout(this[_0x49e06e(0x35b)]);if(this[_0x49e06e(0x28d)])clearImmediate(this[_0x49e06e(0x28d)]);this[_0x49e06e(0x35b)]=this[_0x49e06e(0x28d)]=null,this['_settleWaiters']();}['wake'](){const _0x13c804=_0x462bf4;if(this['stopped']||this[_0x13c804(0x28d)])return;this[_0x13c804(0x35b)]&&(clearTimeout(this['timer']),this['timer']=null),this['immediate']=setImmediate(()=>{const _0x140a08=_0x13c804;this['immediate']=null,this[_0x140a08(0x774)]();});}[_0x462bf4(0x774)](){const _0x4f318f=_0x462bf4;if(this['stopped']||this[_0x4f318f(0x210)]){this['dirty']=!![];return;}this[_0x4f318f(0x210)]=!![];let _0x141013;try{this[_0x4f318f(0x47f)]++,_0x141013=this[_0x4f318f(0x24f)]['pump']();if(this['afterTurn'])this[_0x4f318f(0x53f)]();}catch(_0x1fa3dd){_0x141013=_0x303dea,process[_0x4f318f(0x5ab)](()=>{throw _0x1fa3dd;});}finally{this[_0x4f318f(0x210)]=![],this[_0x4f318f(0x798)]();}if(this['stopped']||_0x141013===-0x2)return;if(this[_0x4f318f(0x6f8)])return this[_0x4f318f(0x6f8)]=![],this[_0x4f318f(0x4c1)]();const _0x2250f6=_0x141013<0x0?_0x303dea:Math['max'](0x0,Math[_0x4f318f(0x165)](_0x141013,_0x303dea));if(_0x2250f6<=0x0)return this[_0x4f318f(0x4c1)]();this[_0x4f318f(0x35b)]=setTimeout(()=>{const _0x52c30d=_0x4f318f;this[_0x52c30d(0x35b)]=null,this[_0x52c30d(0x774)]();},Math['ceil'](_0x2250f6));if(this[_0x4f318f(0x35b)]['unref'])this[_0x4f318f(0x35b)]['unref']();}}return pump={'Pumper':_0x1d1f1a},pump;}var dist$1={},hasRequiredDist$1;function requireDist$1(){const _0x15d5a3=_0x431d06;if(hasRequiredDist$1)return dist$1;hasRequiredDist$1=0x1;const _0x79cbba=Symbol[_0x15d5a3(0x268)]('@harperdb/extended-iterable:skip'),_0x5ccd91={'value':null,'done':!![]},_0xd4e9be={'value':null,'done':!![]};!Symbol[_0x15d5a3(0xdd)]&&(Symbol[_0x15d5a3(0xdd)]=Symbol[_0x15d5a3(0x268)](_0x15d5a3(0x1cd)));const _0x584701={};class _0x56b41f{constructor(_0x117580){const _0x57882d=_0x15d5a3;_0x117580&&(this[_0x57882d(0x19e)]=_0x117580[Symbol[_0x57882d(0x6b7)]][_0x57882d(0x7d2)](_0x117580));}[_0x15d5a3(0x1d9)](_0x4f3dc4){let _0x3baec7=this,_0x2b8b48=new _0x56b41f();return _0x2b8b48['iterate']=(_0xa40bf3=_0x584701)=>{const _0x11c7bb=_0x41a2,{async:_0x14f406}=_0xa40bf3;let _0x3c8758=_0x3baec7[_0x14f406?Symbol['asyncIterator']:Symbol[_0x11c7bb(0x6b7)]](_0xa40bf3);if(!_0x14f406)_0x3baec7[_0x11c7bb(0x337)]=!![];let _0x184eb3=-0x1;return{'next'(_0x17ecc8){const _0x417fd6=_0x11c7bb;let _0xae1a81;do{let _0x2bb766;try{if(_0x17ecc8)_0x2bb766=_0x17ecc8,_0x17ecc8=null;else{_0x184eb3++,_0x2bb766=_0x3c8758['next']();if(_0x2bb766['then'])return!_0x14f406&&this[_0x417fd6(0x13e)](new Error(_0x417fd6(0x1ac))),_0x2bb766['then'](_0x2533ba=>this[_0x417fd6(0x133)](_0x2533ba),_0x80221=>{const _0x592f76=_0x417fd6;return this[_0x592f76(0x13e)](_0x80221);});}if(_0x2bb766[_0x417fd6(0x248)]===!![]){this[_0x417fd6(0x248)]=!![];if(_0x2b8b48[_0x417fd6(0x32e)])_0x2b8b48[_0x417fd6(0x32e)]();return _0x2bb766;}try{_0xae1a81=_0x4f3dc4[_0x417fd6(0x7cd)](_0x3baec7,_0x2bb766['value'],_0x184eb3);if(_0xae1a81&&_0xae1a81[_0x417fd6(0x583)]&&_0x14f406)return _0xae1a81['then'](_0x221575=>_0x221575===_0x79cbba?this[_0x417fd6(0x133)]():{'value':_0x221575},_0x4f9701=>{const _0x1c91d4=_0x417fd6;if(_0xa40bf3[_0x1c91d4(0x780)])_0x4f9701[_0x1c91d4(0x1da)]=!![];return this['throw'](_0x4f9701);});}catch(_0x3f92af){if(_0xa40bf3['continueOnRecoverableError'])_0x3f92af[_0x417fd6(0x1da)]=!![];throw _0x3f92af;}}catch(_0x1d1895){if(_0x2b8b48[_0x417fd6(0x4fb)])try{_0xae1a81=_0x2b8b48[_0x417fd6(0x4fb)](_0x1d1895,_0x184eb3);}catch(_0x3be544){return this[_0x417fd6(0x13e)](_0x3be544);}else return this['throw'](_0x1d1895);}}while(_0xae1a81===_0x79cbba);if(_0xae1a81===_0x5ccd91)return this[_0x417fd6(0x7b4)]();return{'value':_0xae1a81};},'return'(_0x3fafc7){const _0x4da80f=_0x11c7bb;if(!this['done']){_0xd4e9be[_0x4da80f(0x6f0)]=_0x3fafc7,this[_0x4da80f(0x248)]=!![];if(_0x2b8b48['onDone'])_0x2b8b48['onDone']();_0x3c8758['return']?.();}return _0xd4e9be;},'throw'(_0x3ae981){const _0x45f49d=_0x11c7bb;if(_0x3ae981['continueIteration']){if(_0x2b8b48[_0x45f49d(0x440)])try{return{'value':_0x2b8b48['returnRecoverableErrors'](_0x3ae981)};}catch(_0x18d8e3){this['return']();throw _0x18d8e3;}if(_0xa40bf3[_0x45f49d(0x780)])throw _0x3ae981;}this[_0x45f49d(0x7b4)]();throw _0x3ae981;}};},_0x2b8b48;}[Symbol[_0x15d5a3(0xdd)]](_0x3dfe71){const _0x4705d4=_0x15d5a3;if(_0x3dfe71)_0x3dfe71={..._0x3dfe71,'async':!![]};else _0x3dfe71={'async':!![]};return this[_0x4705d4(0x6b7)]=this['iterate'](_0x3dfe71);}[Symbol[_0x15d5a3(0x6b7)]](_0xca7980){const _0x49513e=_0x15d5a3;return this[_0x49513e(0x6b7)]=this[_0x49513e(0x19e)](_0xca7980);}[_0x15d5a3(0x587)](_0xde1bbc){const _0x245d1f=_0x15d5a3;let _0x24d7e4=this[_0x245d1f(0x1d9)](_0x4eca1f=>{const _0x163bdc=_0x245d1f;let _0x8888d5=_0xde1bbc(_0x4eca1f);if(_0x8888d5?.[_0x163bdc(0x583)])return _0x8888d5[_0x163bdc(0x583)](_0x307929=>_0x307929?_0x4eca1f:_0x79cbba);else return _0x8888d5?_0x4eca1f:_0x79cbba;}),_0x365d09=_0x24d7e4['iterate'];return _0x24d7e4[_0x245d1f(0x19e)]=(_0xe9f156=_0x584701)=>{if(_0xe9f156['continueOnRecoverableError'])_0xe9f156={..._0xe9f156,'continueOnRecoverableError':![]};return _0x365d09(_0xe9f156);},_0x24d7e4;}['forEach'](_0x1631d7){const _0x31fd0d=_0x15d5a3;let _0x463311=this[_0x31fd0d(0x6b7)]=this[_0x31fd0d(0x19e)](),_0x3ad856;while((_0x3ad856=_0x463311[_0x31fd0d(0x133)]())[_0x31fd0d(0x248)]!==!![]){_0x1631d7(_0x3ad856[_0x31fd0d(0x6f0)]);}}[_0x15d5a3(0x70a)](_0x1e86e1){const _0x42c4c8=_0x15d5a3;let _0x4778b6=new _0x56b41f();return _0x4778b6[_0x42c4c8(0x19e)]=(_0x43b2e0=_0x584701)=>{let _0x29b252=this['iterator']=this['iterate'](_0x43b2e0),_0x1a3a79=!![];function _0x207a81(_0x40e7e9){const _0x37e811=_0x41a2;if(_0x1a3a79)try{_0x1a3a79=![],_0x29b252=_0x1e86e1[_0x43b2e0[_0x37e811(0xde)]?Symbol[_0x37e811(0xdd)]:Symbol[_0x37e811(0x6b7)]](),_0x40e7e9=_0x29b252[_0x37e811(0x133)]();if(_0x4778b6[_0x37e811(0x32e)]){if(_0x40e7e9[_0x37e811(0x583)]){if(!_0x43b2e0[_0x37e811(0xde)])throw new Error(_0x37e811(0x1ac));_0x40e7e9['then'](_0x586c38=>{const _0x22305e=_0x37e811;if(_0x586c38[_0x22305e(0x248)]())_0x4778b6['onDone']();},_0x56fd63=>{const _0x4020a0=_0x37e811;this[_0x4020a0(0x7b4)]();throw _0x56fd63;});}else{if(_0x40e7e9['done'])_0x4778b6[_0x37e811(0x32e)]();}}}catch(_0x35d404){this['throw'](_0x35d404);}else{if(_0x4778b6[_0x37e811(0x32e)])_0x4778b6['onDone']();}return _0x40e7e9;}return{'next'(){const _0x5595b6=_0x41a2;try{let _0x2ef5bf=_0x29b252[_0x5595b6(0x133)]();if(_0x2ef5bf[_0x5595b6(0x583)]){if(!_0x43b2e0[_0x5595b6(0xde)])throw new Error('Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results');return _0x2ef5bf['then'](_0x5052cd=>{const _0x2b4e5a=_0x5595b6;if(_0x5052cd[_0x2b4e5a(0x248)])return _0x207a81(_0x5052cd);return _0x5052cd;});}if(_0x2ef5bf[_0x5595b6(0x248)])return _0x207a81(_0x2ef5bf);return _0x2ef5bf;}catch(_0x5483df){this['throw'](_0x5483df);}},'return'(_0x3464da){const _0x1dc2df=_0x41a2;if(!this[_0x1dc2df(0x248)]){_0xd4e9be[_0x1dc2df(0x6f0)]=_0x3464da,this['done']=!![];if(_0x4778b6[_0x1dc2df(0x32e)])_0x4778b6[_0x1dc2df(0x32e)]();_0x29b252[_0x1dc2df(0x7b4)]();}return _0xd4e9be;},'throw'(_0x5cbefa){if(_0x43b2e0['continueOnRecoverableError'])throw _0x5cbefa;this['return']();throw _0x5cbefa;}};},_0x4778b6;}[_0x15d5a3(0x43b)](_0x49e277){let _0x272a73=new _0x56b41f();return _0x272a73['iterate']=(_0x31733e=_0x584701)=>{const _0x493af4=_0x41a2;let _0x251e2e=this[_0x493af4(0x6b7)]=this[_0x493af4(0x19e)](_0x31733e),_0x41397c;return{'next'(_0x25d32a){const _0x22e83b=_0x493af4;try{do{if(_0x41397c){let _0x49357a;if(_0x25d32a)_0x49357a=_0x25d32a,_0x25d32a=undefined;else _0x49357a=_0x41397c[_0x22e83b(0x133)]();if(_0x49357a[_0x22e83b(0x583)]){if(!_0x31733e[_0x22e83b(0xde)])throw new Error(_0x22e83b(0x1ac));return _0x49357a[_0x22e83b(0x583)](_0x168901=>this[_0x22e83b(0x133)](_0x168901));}if(!_0x49357a[_0x22e83b(0x248)])return _0x49357a;}let _0x586dc7;if(_0x25d32a!=undefined)_0x586dc7=_0x25d32a,_0x25d32a=undefined;else _0x586dc7=_0x251e2e[_0x22e83b(0x133)]();if(_0x586dc7['then']){if(!_0x31733e[_0x22e83b(0xde)])throw new Error(_0x22e83b(0x1ac));return _0x41397c=undefined,_0x586dc7['then'](_0x439b2c=>this[_0x22e83b(0x133)](_0x439b2c));}if(_0x586dc7[_0x22e83b(0x248)]){if(_0x272a73['onDone'])_0x272a73[_0x22e83b(0x32e)]();return _0x586dc7;}try{let _0x3cfbc0=_0x49e277(_0x586dc7[_0x22e83b(0x6f0)]);if(_0x3cfbc0?.[_0x22e83b(0x583)]){if(!_0x31733e[_0x22e83b(0xde)])throw new Error(_0x22e83b(0x1ac));return _0x3cfbc0['then'](_0x5b5f5d=>{const _0x875899=_0x22e83b;return Array[_0x875899(0x17d)](_0x5b5f5d)||_0x5b5f5d instanceof _0x56b41f?(_0x41397c=_0x5b5f5d[Symbol[_0x875899(0x6b7)]](),this[_0x875899(0x133)]()):(_0x41397c=null,{'value':_0x5b5f5d});},_0xd299ec=>{const _0x221340=_0x22e83b;if(_0x31733e[_0x221340(0x780)])_0xd299ec['continueIteration']=!![];this[_0x221340(0x13e)](_0xd299ec);});}if(Array[_0x22e83b(0x17d)](_0x3cfbc0)||_0x3cfbc0 instanceof _0x56b41f)_0x41397c=_0x3cfbc0[Symbol[_0x22e83b(0x6b7)]]();else return _0x41397c=null,{'value':_0x3cfbc0};}catch(_0x16b5f7){if(_0x31733e[_0x22e83b(0x780)])_0x16b5f7[_0x22e83b(0x1da)]=!![];throw _0x16b5f7;}}while(!![]);}catch(_0x334c93){this[_0x22e83b(0x13e)](_0x334c93);}},'return'(){const _0x3c9db0=_0x493af4;if(_0x272a73['onDone'])_0x272a73['onDone']();if(_0x41397c)_0x41397c[_0x3c9db0(0x7b4)]();return _0x251e2e[_0x3c9db0(0x7b4)]();},'throw'(_0x398396){const _0x351619=_0x493af4;if(_0x31733e[_0x351619(0x780)])throw _0x398396;if(_0x272a73['onDone'])_0x272a73[_0x351619(0x32e)]();if(_0x41397c)_0x41397c['return']();this[_0x351619(0x7b4)]();throw _0x398396;}};},_0x272a73;}[_0x15d5a3(0x331)](_0xa0756c,_0x1a0260){const _0x31590b=_0x15d5a3;let _0x59822e=this['map']((_0x227d0f,_0x320556)=>{const _0x33f6fe=_0x41a2;if(_0x320556<_0xa0756c)return _0x79cbba;if(_0x320556>=_0x1a0260)return _0x5ccd91[_0x33f6fe(0x6f0)]=_0x227d0f,_0x5ccd91;return _0x227d0f;});return _0x59822e[_0x31590b(0x4fb)]=(_0x5d8775,_0xffb80a)=>{if(_0xffb80a<_0xa0756c)return _0x79cbba;if(_0xffb80a>=_0x1a0260)return _0x5ccd91;throw _0x5d8775;},_0x59822e;}[_0x15d5a3(0x11c)](_0x38cacf){const _0x5c8fb6=_0x15d5a3;if(typeof _0x38cacf!==_0x5c8fb6(0x7c4))throw new TypeError('Expected\x20catch\x20callback\x20to\x20be\x20a\x20function');let _0x2d2641=this['map'](_0x2c0c05=>{return _0x2c0c05;}),_0x5850e1=_0x2d2641[_0x5c8fb6(0x19e)];return _0x2d2641[_0x5c8fb6(0x19e)]=(_0x225f8e=_0x584701)=>{return _0x5850e1({..._0x225f8e,'continueOnRecoverableError':!![]});},_0x2d2641[_0x5c8fb6(0x440)]=_0x38cacf,_0x2d2641;}[_0x15d5a3(0x133)](){const _0x2034d5=_0x15d5a3;if(!this[_0x2034d5(0x6b7)])this[_0x2034d5(0x6b7)]=this['iterate']();return this[_0x2034d5(0x6b7)][_0x2034d5(0x133)]();}['toJSON'](){const _0x55e884=_0x15d5a3;if(this[_0x55e884(0x5b9)]&&this['asArray'][_0x55e884(0x64d)])return this[_0x55e884(0x5b9)];const _0x1c9e6f=new Error('Can\x20not\x20serialize\x20async\x20iterables\x20without\x20first\x20calling\x20resolving\x20asArray');_0x1c9e6f[_0x55e884(0x3ce)]=this['asArray'];throw _0x1c9e6f;}get[_0x15d5a3(0x5b9)](){const _0x45476a=_0x15d5a3;if(this[_0x45476a(0x430)])return this[_0x45476a(0x430)];let _0x3fd3f5=new Promise((_0x2c7cec,_0x39cfac)=>{const _0xbc4ec=_0x45476a;let _0x2adf00=this[_0xbc4ec(0x19e)](!![]),_0x396b70=[],_0x1f71ea=this;Object['defineProperty'](_0x396b70,_0xbc4ec(0x656),{'value':_0x1f71ea});function _0x4efa9a(_0x3b9848){const _0x38bc73=_0xbc4ec;while(_0x3b9848['done']!==!![]){if(_0x3b9848[_0x38bc73(0x583)])return _0x3b9848[_0x38bc73(0x583)](_0x4efa9a);else _0x396b70[_0x38bc73(0x540)](_0x3b9848[_0x38bc73(0x6f0)]);_0x3b9848=_0x2adf00[_0x38bc73(0x133)]();}_0x2c7cec(_0x1f71ea[_0x38bc73(0x430)]=_0x396b70);}_0x4efa9a(_0x2adf00[_0xbc4ec(0x133)]());});return _0x3fd3f5[_0x45476a(0x656)]=this,this[_0x45476a(0x430)]||(this[_0x45476a(0x430)]=_0x3fd3f5);}[_0x15d5a3(0x3b8)](){const _0x49e82d=_0x15d5a3;return this[_0x49e82d(0x5b9)];}['at'](_0x1159bd){for(let _0x7955ca of this){if(_0x1159bd--===0x0)return _0x7955ca;}}}return _0x56b41f[_0x15d5a3(0x34d)][_0x15d5a3(0x2ea)]=_0x5ccd91,dist$1['ExtendedIterable']=_0x56b41f,dist$1[_0x15d5a3(0x4b2)]=_0x79cbba,dist$1;}var iterable,hasRequiredIterable;function requireIterable(){const _0x214ed5=_0x431d06;if(hasRequiredIterable)return iterable;hasRequiredIterable=0x1;const {ExtendedIterable:_0x41b3f0}=requireDist$1(),_0x2af1b1=Number(process.env.OKDB_NATIVE_RANGE_CHUNK)||0x3e8,_0x37090a=Math['min'](_0x2af1b1,Number(process.env.OKDB_NATIVE_ROW_CHUNK)||0x100),_0x44e379=new Set([_0x214ed5(0x1bd),_0x214ed5(0x372),_0x214ed5(0x787),_0x214ed5(0xe4)]),_0x435bc5=Math[_0x214ed5(0x165)](_0x37090a,Number(process.env.OKDB_NATIVE_RANGE_FIRST)||0x1),_0x27b44a=0x4,_0x39f5d6=(_0x16fea8,_0x1fd2dd=_0x2af1b1)=>Math[_0x214ed5(0x165)](_0x1fd2dd,_0x16fea8*_0x27b44a),_0x1fb7c1={'value':undefined,'done':!![]};function _0x430693(_0x3ddbe6){const _0x5d52ce=new _0x41b3f0();return _0x5d52ce['iterate']=()=>{let _0x231bae=0x0;return{'next'(){const _0x2433ce=_0x41a2;return _0x231bae<_0x3ddbe6[_0x2433ce(0x2a9)]?{'value':_0x3ddbe6[_0x231bae++],'done':![]}:{'value':undefined,'done':!![]};},'return'(){const _0x57a4a6=_0x41a2;return _0x231bae=_0x3ddbe6[_0x57a4a6(0x2a9)],{'value':undefined,'done':!![]};},'throw'(){const _0x514fd2=_0x41a2;return _0x231bae=_0x3ddbe6[_0x514fd2(0x2a9)],{'value':undefined,'done':!![]};}};},_0x5d52ce;}const _0x57fa59=_0x127227=>typeof _0x127227==='number'&&!Number['isNaN'](_0x127227)?Math[_0x214ed5(0x380)](0x0,Math['ceil'](_0x127227)):Infinity,_0x494551=_0x3c66c0=>typeof _0x3c66c0===_0x214ed5(0x1ce)?Math[_0x214ed5(0x380)](0x0,Math[_0x214ed5(0x26a)](_0x3c66c0))||0x0:0x0;function _0x5f84b7(_0x20c38e,_0x5ca5b6,_0x3e83bc,_0x5c5b6d={}){const _0x1a387c=_0x214ed5,_0x2dbf66=new _0x41b3f0(),_0x5ca85f=(_0x5c5b6d['limitOf']||_0x57fa59)(_0x5ca5b6['limit']),_0x10225a=_0x5c5b6d[_0x1a387c(0x33f)]?_0x37090a:_0x2af1b1,_0x5ac6fd=_0x5c5b6d[_0x1a387c(0x2bb)]||((_0x1759eb,_0x7ac0fc)=>{const _0x51d897=_0x1a387c;_0x1759eb['start']=_0x7ac0fc,_0x1759eb[_0x51d897(0x6e0)]=!![],delete _0x1759eb['offset'];});let _0x504333=null;if(_0x5c5b6d[_0x1a387c(0x3ca)]){const _0x337813={..._0x5ca5b6,'limit':Math[_0x1a387c(0x165)](_0x435bc5,_0x5ca85f)};_0x504333={'rows':_0x20c38e(_0x337813),'limit':_0x337813[_0x1a387c(0x393)]};const _0x5e7c96=_0x504333;queueMicrotask(()=>{const _0x33c1f6=_0x1a387c;_0x5e7c96[_0x33c1f6(0x485)]=!![];});}return _0x2dbf66[_0x1a387c(0x19e)]=()=>{const _0x1a5aea=_0x1a387c;let _0x2c3cac=[],_0x467651=0x0,_0x19e139=0x0,_0x318fd2,_0x3a08eb=![],_0xb07e60=![],_0x5c23e2=_0x435bc5;if(_0x504333&&!_0x504333['dropped']&&!_0x504333[_0x1a5aea(0x460)]){_0x504333[_0x1a5aea(0x460)]=!![],_0x2c3cac=_0x504333[_0x1a5aea(0x33f)],_0x3a08eb=!![],_0x5c23e2=_0x39f5d6(_0x5c23e2,_0x10225a);if(_0x2c3cac[_0x1a5aea(0x2a9)]<_0x504333[_0x1a5aea(0x393)])_0xb07e60=!![];if(_0x2c3cac[_0x1a5aea(0x2a9)])_0x318fd2=_0x3e83bc(_0x2c3cac[_0x2c3cac['length']-0x1]);}const _0x1c8ce3=()=>{const _0x3a161f=_0x1a5aea;if(_0xb07e60)return;const _0xcc371f=_0x5ca85f-_0x19e139;if(_0xcc371f<=0x0){_0xb07e60=!![],_0x2c3cac=[];return;}const _0x1a8b50={..._0x5ca5b6,'limit':Math['min'](_0x5c23e2,_0xcc371f)};if(_0x3a08eb)_0x5ac6fd(_0x1a8b50,_0x318fd2);_0x3a08eb=!![],_0x5c23e2=_0x39f5d6(_0x5c23e2,_0x10225a),_0x2c3cac=_0x20c38e(_0x1a8b50),_0x467651=0x0;if(_0x2c3cac[_0x3a161f(0x2a9)]<_0x1a8b50[_0x3a161f(0x393)])_0xb07e60=!![];if(_0x2c3cac[_0x3a161f(0x2a9)])_0x318fd2=_0x3e83bc(_0x2c3cac[_0x2c3cac[_0x3a161f(0x2a9)]-0x1]);};return{'next'(){const _0x239767=_0x1a5aea;if(_0x467651>=_0x2c3cac['length'])_0x1c8ce3();if(_0x467651>=_0x2c3cac[_0x239767(0x2a9)])return{'value':undefined,'done':!![]};return _0x19e139++,{'value':_0x2c3cac[_0x467651++],'done':![]};},'return'(){return _0xb07e60=!![],_0x2c3cac=[],{'value':undefined,'done':!![]};},'throw'(){return _0xb07e60=!![],_0x2c3cac=[],{'value':undefined,'done':!![]};}};},_0x2dbf66;}function _0x3dde8a(_0x34dccb,_0x28038a,_0x36c831,_0x47ce65,_0x251cd3={}){const _0x46c6d3=_0x214ed5,_0x1f4f25=(_0x251cd3[_0x46c6d3(0x426)]||_0x57fa59)(_0x47ce65&&_0x47ce65['limit']),_0xb03544=_0x44e379[_0x46c6d3(0x614)](_0x28038a)?_0x37090a:_0x2af1b1,_0xaa99c9=(_0x251cd3[_0x46c6d3(0x347)]||_0x494551)(_0x47ce65&&_0x47ce65['offset']),_0x382a01=(_0xc490bf,_0x9189e2,_0x27187c)=>{const _0x21bae7=_0x46c6d3,_0x277a44=_0x1f4f25-_0x9189e2,_0x12fb83=Math[_0x21bae7(0x165)](_0x27187c,_0x277a44),_0x3bbfbf={'limit':_0x12fb83,'offset':_0xaa99c9+_0x9189e2},_0x38e90d=_0x34dccb(_0x21bae7(0x630),[_0xc490bf,_0x28038a,_0x12fb83===_0x277a44?Infinity:_0x12fb83,..._0x36c831(_0x3bbfbf)]);if(_0x38e90d[0x0]===-0x1){const _0x18549e={'offset':_0xaa99c9+_0x9189e2};if(_0x277a44!==Infinity)_0x18549e[_0x21bae7(0x393)]=_0x277a44;return{'pin':0x0,'rows':_0x34dccb(_0x28038a,_0x36c831(_0x18549e)),'raw':Infinity,'eager':!![]};}return{'pin':_0x38e90d[0x0],'rows':_0x38e90d[0x1],'raw':_0x38e90d[0x2]};},_0x48d8f4=_0x2c8cd8=>{const _0x304b7f=_0x46c6d3;if(_0x2c8cd8)_0x34dccb(_0x304b7f(0xbc),[_0x2c8cd8]);};function _0x2e6a46(_0x13261b,_0x4eb533,_0x1bf472){let _0xf2e53f=0x0,_0x1cd6b7=[],_0x1d6c6d=0x0,_0x46df2e=_0x13261b,_0xe875e7=_0x435bc5,_0x538feb=_0x1f4f25-_0x13261b<=0x0;if(_0x1bf472)({buf:_0x1cd6b7,pos:_0x1d6c6d,consumed:_0x46df2e,size:_0xe875e7,exhausted:_0x538feb}=_0x1bf472);const _0x379ff5=_0x3c6c4a=>{const _0x37cbb9=_0x41a2;_0xf2e53f=_0x3c6c4a[_0x37cbb9(0x487)],_0x1cd6b7=_0x3c6c4a[_0x37cbb9(0x33f)],_0x1d6c6d=0x0,_0x46df2e+=_0x3c6c4a[_0x37cbb9(0x29c)],_0xe875e7=_0x39f5d6(_0xe875e7,_0xb03544);if(!_0xf2e53f)_0x538feb=!![];};if(_0x4eb533)_0x379ff5(_0x4eb533);const _0x72a416=()=>{const _0x51d8ff=_0xf2e53f;_0xf2e53f=0x0,_0x48d8f4(_0x51d8ff);},_0x39e898={'next'(){const _0x49d9bd=_0x41a2;while(_0x1d6c6d>=_0x1cd6b7[_0x49d9bd(0x2a9)]){if(_0x538feb||_0x1f4f25-_0x46df2e<=0x0)return _0x538feb=!![],_0x72a416(),_0x1fb7c1;try{_0x379ff5(_0x382a01(_0xf2e53f,_0x46df2e,_0xe875e7));}catch(_0x33fabf){_0xf2e53f=0x0,_0x538feb=!![],_0x1cd6b7=[];throw _0x33fabf;}}return{'value':_0x1cd6b7[_0x1d6c6d++],'done':![]};},'return'(){return _0x72a416(),_0x1fb7c1;},'throw'(){return _0x72a416(),_0x1fb7c1;},'resumed'(){return _0x2e6a46(0x0,null,{'buf':_0x1cd6b7,'pos':_0x1d6c6d,'consumed':_0x46df2e,'size':_0xe875e7,'exhausted':_0x538feb});},[Symbol['iterator']](){return this;}};return _0x39e898;}function _0x367489(){if(_0x1f4f25<=0x0)return null;const _0x1e3e74=_0x382a01(0x0,0x0,_0x435bc5);return queueMicrotask(()=>{const _0x2e39df=_0x41a2;!_0x1e3e74[_0x2e39df(0x460)]&&(_0x1e3e74['dropped']=!![],_0x48d8f4(_0x1e3e74[_0x2e39df(0x487)]));}),_0x1e3e74;}return{'source':_0x2e6a46,'prefetch':_0x367489};}function _0x24cb9a(_0x5ac26c){const _0x5b2eb1=_0x214ed5;if(!_0x5ac26c||_0x5ac26c[_0x5b2eb1(0x460)]||_0x5ac26c['dropped'])return null;return _0x5ac26c[_0x5b2eb1(0x460)]=!![],_0x5ac26c;}return iterable={'fromArray':_0x430693,'chunkedRange':_0x5f84b7,'pinnedChunks':_0x3dde8a,'claimPrefetch':_0x24cb9a,'lmdbLimit':_0x57fa59,'lmdbOffset':_0x494551,'CHUNK':_0x2af1b1,'ROW_CHUNK':_0x37090a,'FIRST':_0x435bc5},iterable;}var rawdb,hasRequiredRawdb;function requireRawdb(){const _0x4187f7=_0x431d06;if(hasRequiredRawdb)return rawdb;hasRequiredRawdb=0x1;const {fromArray:_0x2b38ac}=requireIterable();class _0x4ad141{constructor(_0x25e199,_0x5a9a9d='',_0x4dfdd0={},_0x1d6761=null){const _0xe8042e=_0x41a2;this[_0xe8042e(0xf7)]=_0x25e199,this[_0xe8042e(0x5e6)]=_0x5a9a9d,this[_0xe8042e(0x705)]=!!(_0x4dfdd0&&_0x4dfdd0[_0xe8042e(0x705)]),this[_0xe8042e(0x342)]=!!(_0x4dfdd0&&_0x4dfdd0[_0xe8042e(0x342)]),this[_0xe8042e(0x4dc)]=_0x1d6761||this,this[_0xe8042e(0x102)]=null;}get[_0x4187f7(0x6f9)](){return this['dupSort']?!![]:this['useVersions']?'v':![];}['_n'](_0x50dfcf,_0x6575c1){const _0x1f0502=_0x4187f7;return this['_env'][_0x1f0502(0x6ff)][_0x1f0502(0x722)](_0x1f0502(0x29c),this['_env'][_0x1f0502(0x5e6)],_0x50dfcf,[this['name'],this[_0x1f0502(0x6f9)],..._0x6575c1],!![]);}['_read'](_0x2fcde3,_0x20c7b9){const _0x140cd6=_0x4187f7;return this[_0x140cd6(0xf7)]['okdb'][_0x140cd6(0x722)](_0x140cd6(0x29c),this['_env']['name'],_0x2fcde3,[this[_0x140cd6(0x5e6)],this[_0x140cd6(0x6f9)],..._0x20c7b9],![]);}[_0x4187f7(0x179)](_0x4258a2){const _0x4bbb54=_0x4187f7,_0x4502e0=this[_0x4bbb54(0xf7)][_0x4bbb54(0x6cf)];if(_0x4502e0)_0x4502e0[_0x4bbb54(0x540)]({'sub':this[_0x4bbb54(0x5e6)],'dup':this['_dupArg'],..._0x4258a2});else this[_0x4bbb54(0xf7)][_0x4bbb54(0x6ff)][_0x4bbb54(0x722)](_0x4bbb54(0x29c),this[_0x4bbb54(0xf7)][_0x4bbb54(0x5e6)],'batch',[[{'sub':this[_0x4bbb54(0x5e6)],'dup':this[_0x4bbb54(0x6f9)],..._0x4258a2}]],!![]);}[_0x4187f7(0x1bc)](_0x4062f8){const _0x3a00b7=_0x4187f7;return this[_0x3a00b7(0x4bc)]('get',[_0x4062f8]);}[_0x4187f7(0x153)](_0xed959f){const _0xd43bd2=_0x4187f7;if(this['useVersions'])return this[_0xd43bd2(0x4bc)](_0xd43bd2(0x153),[_0xed959f]);const _0x5533f4=this[_0xd43bd2(0x1bc)](_0xed959f);return _0x5533f4===undefined?undefined:{'value':_0x5533f4};}[_0x4187f7(0x2d8)](_0x269244){const _0x3caec3=_0x4187f7;return this[_0x3caec3(0x4bc)](_0x3caec3(0x591),[_0x269244]);}['getBinary'](_0x4b1d07){const _0x1feb68=_0x4187f7;return this[_0x1feb68(0x1bc)](_0x4b1d07);}[_0x4187f7(0x1bd)](_0x46ef1e={}){const _0x576eeb=_0x4187f7,_0x55782d=this[_0x576eeb(0x4bc)](_0x576eeb(0x1bd),[_0x46ef1e]),_0x39e767=_0x46ef1e[_0x576eeb(0x4ee)]===![],_0x2bf895=_0x46ef1e[_0x576eeb(0x5e1)]===![];return _0x2b38ac(_0x55782d[_0x576eeb(0x1d9)](([_0x509714,_0x13a927,_0x124fd6])=>{if(_0x39e767)return _0x509714;if(_0x2bf895)return _0x13a927;return _0x124fd6===undefined?{'key':_0x509714,'value':_0x13a927}:{'key':_0x509714,'value':_0x13a927,'version':_0x124fd6};}));}['getKeys'](_0x5aeb0e={}){const _0x25e28b=_0x4187f7;return _0x2b38ac(this[_0x25e28b(0x4bc)]('getRange',[_0x5aeb0e])[_0x25e28b(0x1d9)](([_0x2d9b54])=>_0x2d9b54));}[_0x4187f7(0x4dd)](_0x481b36,_0x1f0b22={}){const _0x385b2b=_0x4187f7,_0x4dcd5e=this[_0x385b2b(0x4bc)](_0x385b2b(0x1bd),[{..._0x1f0b22,'start':_0x481b36,'end':_0x481b36,'inclusiveEnd':!![]}]);return _0x2b38ac(_0x4dcd5e[_0x385b2b(0x1d9)](([,_0x116f34])=>_0x116f34));}[_0x4187f7(0x156)](_0x55df89={}){const _0x3d4d93=_0x4187f7;return this[_0x3d4d93(0x4bc)]('count',[_0x55df89]);}[_0x4187f7(0x5a3)](){const _0x2528b5=_0x4187f7;return{'entryCount':this[_0x2528b5(0x156)]()};}[_0x4187f7(0x59b)](_0x32bea6,_0x2113f7,_0x50de8a){const _0x400547=_0x4187f7;return this[_0x400547(0x179)]({'op':_0x400547(0x59b),'key':_0x32bea6,'value':_0x2113f7,'version':_0x50de8a}),Promise['resolve'](!![]);}['putSync'](_0x36220a,_0x2ec2a9,_0x51498f){return this['_write']({'op':'put','key':_0x36220a,'value':_0x2ec2a9,'version':_0x51498f}),!![];}[_0x4187f7(0x4d2)](_0x3fd7d2,_0x2f0314){const _0x1dfcfd=_0x4187f7;return this[_0x1dfcfd(0x179)]({'op':'remove','key':_0x3fd7d2,'value':_0x2f0314}),Promise['resolve'](!![]);}['removeSync'](_0x2f2012,_0x601e4a){const _0x33643a=_0x4187f7;return this[_0x33643a(0x179)]({'op':'remove','key':_0x2f2012,'value':_0x601e4a}),!![];}['clearSync'](){const _0xfbec83=_0x4187f7;this[_0xfbec83(0x179)]({'op':_0xfbec83(0x544)});}[_0x4187f7(0x750)](){const _0x296302=_0x4187f7;return this[_0x296302(0x179)]({'op':_0x296302(0x544)}),Promise['resolve']();}[_0x4187f7(0x2e7)](){const _0x100bbc=_0x4187f7;this[_0x100bbc(0x18a)]();}[_0x4187f7(0x3fe)](_0x1de484,_0x48be8a={}){const _0x1af75d=_0x4187f7,_0x509956=typeof _0x1de484===_0x1af75d(0x4ed)?_0x1de484:_0x48be8a,_0x23fc99=typeof _0x1de484==='object'?_0x1de484['name']:_0x1de484,_0x1fad83=new _0x4ad141(this[_0x1af75d(0xf7)],_0x23fc99,_0x509956);return _0x1fad83[_0x1af75d(0x179)]({'op':_0x1af75d(0x3fa)}),_0x1fad83;}[_0x4187f7(0x498)](){}[_0x4187f7(0x424)](_0x124d78){return this['_tx'](_0x124d78);}async[_0x4187f7(0x241)](_0x3ea121){return this['_tx'](_0x3ea121);}['childTransaction'](_0xeb47c9){const _0x7ce714=_0x4187f7;return this[_0x7ce714(0xe2)](_0xeb47c9);}['_tx'](_0xa974b4){const _0x226c4d=_0x4187f7,_0x1ac319=this[_0x226c4d(0xf7)];if(_0x1ac319['_rawTxnBuf'])return _0xa974b4();_0x1ac319[_0x226c4d(0x6cf)]=[];let _0x376665;try{_0x376665=_0xa974b4();}catch(_0x1ba2a7){_0x1ac319[_0x226c4d(0x6cf)]=null;throw _0x1ba2a7;}const _0x4bed5f=_0x1ac319[_0x226c4d(0x6cf)];_0x1ac319[_0x226c4d(0x6cf)]=null;if(_0x4bed5f[_0x226c4d(0x2a9)])_0x1ac319[_0x226c4d(0x6ff)][_0x226c4d(0x722)](_0x226c4d(0x29c),_0x1ac319['name'],_0x226c4d(0x5cd),[_0x4bed5f],!![]);return _0x376665;}[_0x4187f7(0x4bd)](){return{'done'(){}};}[_0x4187f7(0x2a5)](){}}return rawdb={'RawDb':_0x4ad141},rawdb;}function _0x41a2(_0x1262e7,_0x35c4d1){_0x1262e7=_0x1262e7-0xb7;const _0x27a065=_0x27a0();let _0x41a252=_0x27a065[_0x1262e7];return _0x41a252;}var views,hasRequiredViews;function requireViews(){const _0x11c8c3=_0x431d06;if(hasRequiredViews)return views;hasRequiredViews=0x1;const {RawDb:_0x132d25}=requireRawdb();class _0x4a6d15{constructor(_0x4e313c){const _0x22c531=_0x41a2;this[_0x22c531(0x3c4)]=_0x4e313c,this['_n']=(_0x379e95,_0x3a5d1f,_0x46ec87=!![])=>_0x4e313c[_0x22c531(0x6ff)][_0x22c531(0x722)](_0x22c531(0x7a3),_0x4e313c[_0x22c531(0x5e6)],_0x379e95,_0x3a5d1f,_0x46ec87);}get[_0x11c8c3(0x256)](){const _0x58c999=_0x11c8c3,_0x255c4a=this,_0x2b684b=this[_0x58c999(0x3c4)],_0x565147=_0x2519a7=>_0x2519a7?new _0x132d25(_0x2b684b,_0x2519a7[_0x58c999(0x5e6)],{'dupSort':_0x2519a7['dup']}):undefined,_0x1390a7=_0x244710=>{const _0x8c87d2=_0x58c999,_0x197252=_0x255c4a['_n']('stateInfo',[_0x244710],![]);if(!_0x197252)return undefined;const _0x726277=_0x197252[_0x8c87d2(0x35d)],_0x3f0e41=new Map(Object[_0x8c87d2(0x2d3)](_0x726277['refs'])),_0x2e2ba7=new Map(Object[_0x8c87d2(0x2d3)](_0x197252['refItemsDbs'])['map'](([_0x5d5b0a,_0x249d61])=>[_0x5d5b0a,_0x565147(_0x249d61)]));return{'name':_0x244710,'compiled':{'T':_0x726277['T'],'reducers':_0x726277[_0x8c87d2(0x290)],'refs':_0x3f0e41,'granId':_0x726277[_0x8c87d2(0x743)],'type':_0x726277['type'],'_nidFor':_0xcfee54=>_0x255c4a['_n']('nidFor',[_0x244710,_0xcfee54],![])},'viewDb':_0x565147(_0x197252[_0x8c87d2(0x7c8)][_0x8c87d2(0x37c)]),'metaDb':_0x565147(_0x197252[_0x8c87d2(0x7c8)]['metaDb']),'itemsDb':_0x565147(_0x197252['dbs'][_0x8c87d2(0x577)]),'bucketsDb':_0x565147(_0x197252[_0x8c87d2(0x7c8)]['bucketsDb']),'sortedDb':_0x565147(_0x197252[_0x8c87d2(0x7c8)][_0x8c87d2(0x222)]),'groupsDb':_0x565147(_0x197252[_0x8c87d2(0x7c8)][_0x8c87d2(0x78f)]),'prevDb':_0x565147(_0x197252[_0x8c87d2(0x7c8)][_0x8c87d2(0xd7)]),'refItemsDbs':_0x2e2ba7,'refTrackingDbs':new Map(Object['entries'](_0x197252[_0x8c87d2(0x77f)]||{})[_0x8c87d2(0x1d9)](([_0x2f10a2,_0x154235])=>[_0x2f10a2,_0x565147(_0x154235)])),'stopFn':_0x197252[_0x8c87d2(0x18f)]?async()=>_0x255c4a['_n']('stopView',[_0x244710]):null,'bootstrapWorker':null};};return{'get':_0x36874b=>_0x1390a7(_0x36874b),'has':_0xdec523=>_0x255c4a['_n']('stateNames',[],![])['includes'](_0xdec523),'keys':()=>_0x255c4a['_n'](_0x58c999(0x434),[],![])[Symbol[_0x58c999(0x6b7)]](),get 'size'(){const _0x1f1daa=_0x58c999;return _0x255c4a['_n'](_0x1f1daa(0x434),[],![])[_0x1f1daa(0x2a9)];},[Symbol[_0x58c999(0x6b7)]]:()=>_0x255c4a['_n'](_0x58c999(0x434),[],![])['map'](_0x49715e=>[_0x49715e,_0x1390a7(_0x49715e)])[Symbol[_0x58c999(0x6b7)]]()};}get['_customReducers'](){const _0x24fa2f=_0x11c8c3,_0x13ba4c=this;return{'has':_0x103fbe=>_0x13ba4c['_n'](_0x24fa2f(0x26e),[],![])[_0x24fa2f(0x4e5)](_0x103fbe),get 'size'(){const _0x4706ea=_0x24fa2f;return _0x13ba4c['_n'](_0x4706ea(0x26e),[],![])[_0x4706ea(0x2a9)];},'keys':()=>_0x13ba4c['_n'](_0x24fa2f(0x26e),[],![])[Symbol[_0x24fa2f(0x6b7)]]()};}async[_0x11c8c3(0x7a1)](){return this['_n']('bootSyncedViewsInline',[]);}async[_0x11c8c3(0x49e)](_0x3457e5={}){const _0xfedbf1=_0x11c8c3;return this['_n'](_0xfedbf1(0x49e),[_0x3457e5]);}async[_0x11c8c3(0x748)](_0x2e4dad,_0x155fa7){const _0x287caa=_0x11c8c3;return this['_n'](_0x287caa(0x57a),[_0x2e4dad,_0x155fa7]),await this[_0x287caa(0x528)](_0x2e4dad),{'name':_0x2e4dad};}async['_awaitBuild'](_0x3bda19){const _0x3ef9e8=_0x11c8c3,_0x5af9e9=this[_0x3ef9e8(0x3c4)][_0x3ef9e8(0x6ff)]['_pumper'];while(this['_n']('buildPending',[_0x3bda19],![]))await _0x5af9e9[_0x3ef9e8(0x519)](0xfa);this['_n'](_0x3ef9e8(0x1fe),[_0x3bda19],![]);}['get'](_0x1f2e16,_0x2948d8={}){const _0x181cc1=_0x11c8c3,_0x344b30=this['_n']('get',[_0x1f2e16,{'preview':_0x2948d8?.['preview']??{}}],![]);if(_0x344b30==null)return null;const _0x13d9d1=this['_n'](_0x181cc1(0x740),[_0x1f2e16],![]);if(!_0x13d9d1)return _0x344b30;const _0x1225f=_0x317233=>(_0x4f77be={})=>this['_n'](_0x181cc1(0x444),[_0x1f2e16,_0x317233,_0x4f77be],![]);if(_0x13d9d1[_0x181cc1(0x516)]){_0x344b30['items']=_0x1225f({'kind':_0x181cc1(0x516)});for(const _0x4fe1cb of _0x13d9d1[_0x181cc1(0x290)]){if(!_0x4fe1cb[_0x181cc1(0x444)])continue;if(_0x4fe1cb['grouped']){const _0x47a5b8=_0x344b30[_0x4fe1cb[_0x181cc1(0x5e6)]];if(_0x47a5b8?.['preview']&&Array['isArray'](_0x47a5b8[_0x181cc1(0x318)])){for(const _0x205a90 of _0x47a5b8[_0x181cc1(0x318)])_0x205a90[_0x181cc1(0x444)]=_0x1225f({'kind':_0x181cc1(0x61b),'reducer':_0x4fe1cb[_0x181cc1(0x5e6)],'key':_0x205a90[_0x181cc1(0x590)]});}}else _0x344b30[_0x4fe1cb[_0x181cc1(0x5e6)]]&&(_0x344b30[_0x4fe1cb[_0x181cc1(0x5e6)]][_0x181cc1(0x444)]=_0x1225f({'kind':'reducer','reducer':_0x4fe1cb[_0x181cc1(0x5e6)]}));}}for(const _0x38a682 of _0x13d9d1[_0x181cc1(0x559)]){if(!_0x38a682['view'])continue;const _0x1a00b5=_0x344b30[_0x38a682[_0x181cc1(0x5e6)]];if(!_0x1a00b5||typeof _0x1a00b5!==_0x181cc1(0x4ed))continue;_0x1a00b5['items']=_0x1225f({'kind':_0x181cc1(0x516),'ref':_0x38a682[_0x181cc1(0x5e6)]});for(const _0x15fbed of _0x38a682[_0x181cc1(0x290)]){if(!_0x15fbed[_0x181cc1(0x444)])continue;if(_0x15fbed[_0x181cc1(0x1c2)]){const _0x310cd3=_0x1a00b5[_0x15fbed[_0x181cc1(0x5e6)]];if(_0x310cd3?.[_0x181cc1(0x318)]&&Array[_0x181cc1(0x17d)](_0x310cd3['preview'])){for(const _0x48c0f9 of _0x310cd3[_0x181cc1(0x318)])_0x48c0f9[_0x181cc1(0x444)]=_0x1225f({'kind':_0x181cc1(0x61b),'ref':_0x38a682[_0x181cc1(0x5e6)],'reducer':_0x15fbed[_0x181cc1(0x5e6)],'key':_0x48c0f9[_0x181cc1(0x590)]});}}else _0x1a00b5[_0x15fbed['name']]&&(_0x1a00b5[_0x15fbed['name']][_0x181cc1(0x444)]=_0x1225f({'kind':_0x181cc1(0x79a),'ref':_0x38a682[_0x181cc1(0x5e6)],'reducer':_0x15fbed[_0x181cc1(0x5e6)]}));}}return _0x344b30;}[_0x11c8c3(0x261)](_0x13bfcb){const _0x12d40f=_0x11c8c3;return this['_n'](_0x12d40f(0x261),[_0x13bfcb],![]);}[_0x11c8c3(0x479)](_0x47d32c,_0x1f167e={}){const _0x5f3a25=_0x11c8c3;return this['_n'](_0x5f3a25(0x479),[_0x47d32c,_0x1f167e],![]);}[_0x11c8c3(0x65f)](_0x15e2bd,_0x4f07ab={}){const _0x2e84b2=_0x11c8c3;return this['_n'](_0x2e84b2(0x65f),[_0x15e2bd,_0x4f07ab],![]);}['listBuckets'](_0xd2ea4b,_0x4e1b19={}){const _0x44d5a5=_0x11c8c3;return this['_n'](_0x44d5a5(0x5bd),[_0xd2ea4b,_0x4e1b19],![]);}async[_0x11c8c3(0x58d)](){const _0x2e016c=_0x11c8c3;return this['_n'](_0x2e016c(0x58d),[],![]);}async[_0x11c8c3(0x2b6)](_0x5ce9c7){return this['_n']('getDefinition',[_0x5ce9c7],![])??null;}async['remove'](_0xcf2208,_0xa16ddb={}){return this['_n']('remove',[_0xcf2208,_0xa16ddb]);}async['stop'](_0x106727){return this['_n']('stop',[_0x106727]);}async[_0x11c8c3(0x432)](_0x2d6acf){const _0x35b758=_0x11c8c3;this['_n'](_0x35b758(0x163),[_0x2d6acf]),await this[_0x35b758(0x528)](_0x2d6acf);}async[_0x11c8c3(0x273)](_0x2c8721){const _0x3c62fc=_0x11c8c3;this['_n'](_0x3c62fc(0x462),[_0x2c8721]),await this[_0x3c62fc(0x528)](_0x2c8721);}async['resetView'](_0x3ce63b){const _0x402d92=_0x11c8c3;this['_n'](_0x402d92(0x77a),[_0x3ce63b]),await this[_0x402d92(0x528)](_0x3ce63b);}[_0x11c8c3(0x447)](_0x374d14,_0x1fe44f={}){const _0x31df24=_0x11c8c3;return this['_n'](_0x31df24(0x447),[_0x374d14,{'apply':_0x1fe44f&&_0x1fe44f[_0x31df24(0x5b0)]}]);}}return views={'OKDBViews':_0x4a6d15},views;}var queue,hasRequiredQueue;function requireQueue(){const _0x1e720d=_0x431d06;if(hasRequiredQueue)return queue;hasRequiredQueue=0x1;const {OKDBError:_0x2f1eb5}=requireErrors(),_0x12341f=requireBridge();class _0x2dbe6b{constructor(_0x45b49e){const _0x37cbbb=_0x41a2;this[_0x37cbbb(0x3c4)]=_0x45b49e,this['okdb']=_0x45b49e[_0x37cbbb(0x6ff)],this['log']=_0x45b49e[_0x37cbbb(0x6ff)][_0x37cbbb(0x745)][_0x37cbbb(0x3b9)]({'feature':_0x37cbbb(0x4f3)}),this[_0x37cbbb(0x6af)]=new Set();}['_n'](_0x34a8ea,_0xd7fe17,_0x472ea7=!![]){const _0x4a9246=_0x41a2;return this[_0x4a9246(0x6ff)][_0x4a9246(0x722)](_0x4a9246(0x4f3),this['env'][_0x4a9246(0x5e6)],_0x34a8ea,_0xd7fe17,_0x472ea7);}['_w'](_0x25fea0,_0x56da55){const _0x46d3bb=_0x41a2;return this['okdb'][_0x46d3bb(0x550)](this['_n'](_0x25fea0,_0x56da55));}async[_0x1e720d(0x47a)](){const _0x2a0ca3=_0x1e720d;return this['_n'](_0x2a0ca3(0x3fa),[]);}async[_0x1e720d(0x58d)](_0x484998={}){const _0x2aca1b=_0x1e720d;return this['_n'](_0x2aca1b(0x58d),[_0x484998],![]);}get[_0x1e720d(0x25d)](){const _0x4123e9=_0x1e720d,{RawDb:_0x2d74b7}=requireRawdb();return this[_0x4123e9(0x266)]||(this[_0x4123e9(0x266)]=new _0x2d74b7(this['env'],_0x4123e9(0x572)));}async[_0x1e720d(0x638)](){const _0x147950=_0x1e720d;return this['_w'](_0x147950(0x50e),[]);}async['enqueue'](_0x4ca67b,_0x4f7b2a,_0x5820cc={}){const _0x145d5f=_0x1e720d,{txn:_0x23064d,..._0x3930ed}=_0x5820cc||{};if(_0x23064d)return this[_0x145d5f(0x751)](_0x23064d,_0x4ca67b,_0x4f7b2a,_0x3930ed);const _0x5b2867=this[_0x145d5f(0x6ff)][_0x145d5f(0x13c)];if(_0x5b2867&&_0x5b2867['queue'][_0x145d5f(0x2a9)])_0x5b2867[_0x145d5f(0x7dd)]();const _0xc8a355=this['_n'](_0x145d5f(0x161),[_0x4ca67b,_0x4f7b2a,_0x3930ed],![]);return this[_0x145d5f(0x6ff)][_0x145d5f(0x550)](_0xc8a355['id'])[_0x145d5f(0x583)](_0x49a00e=>{const _0x94f971=_0x145d5f;if(_0xc8a355[_0x94f971(0x3a9)])this[_0x94f971(0x52d)](_0x4ca67b);else try{this[_0x94f971(0x6ff)][_0x94f971(0x6bc)][_0x94f971(0x4c1)]();}catch{}return _0x49a00e;});}['_startClaimedSoon'](_0x1d3dc9){queueMicrotask(()=>{const _0xbeb62c=_0x41a2;try{this['_n'](_0xbeb62c(0x1d2),[_0x1d3dc9]);}catch{}});}['_enqueueInTxn'](_0x390623,_0x2ba4d0,_0x42919d,_0x306ed7){const _0xe22880=_0x1e720d,_0x589f2c=_0x390623[_0xe22880(0x29c)]??_0x390623;if(_0x589f2c[_0xe22880(0x784)])throw new _0x2f1eb5(_0xe22880(0x2b5),_0xe22880(0x275));if(_0x589f2c['okdb']&&_0x589f2c[_0xe22880(0x6ff)]!==this[_0xe22880(0x3c4)]&&_0x589f2c[_0xe22880(0x6ff)][_0xe22880(0x5e6)]!==this[_0xe22880(0x3c4)][_0xe22880(0x5e6)])throw new _0x2f1eb5(_0xe22880(0x31b),_0xe22880(0x1d0),{'txnEnv':_0x589f2c[_0xe22880(0x6ff)][_0xe22880(0x5e6)],'queueEnv':this[_0xe22880(0x3c4)][_0xe22880(0x5e6)]});const _0x263ac8=this['_n'](_0xe22880(0x4c9),[_0x2ba4d0,_0x42919d,_0x306ed7],![]);if(_0x263ac8[_0xe22880(0x203)])return _0x263ac8['id'];if(_0x263ac8[_0xe22880(0x117)])_0x390623[_0xe22880(0x2bd)](_0xe22880(0x35f),_0x263ac8[_0xe22880(0x117)]['key'],_0x263ac8[_0xe22880(0x117)][_0xe22880(0x6f0)],{'ifVersion':_0x263ac8[_0xe22880(0x117)]['version']});if(_0x42919d!==undefined)_0x390623['put']('~queue_payloads',_0x263ac8['id'],_0x42919d);_0x390623[_0xe22880(0x59b)](_0xe22880(0x35f),_0x263ac8['id'],_0x263ac8[_0xe22880(0x27f)]);if(typeof _0x589f2c[_0xe22880(0x269)]===_0xe22880(0x7c4))_0x589f2c[_0xe22880(0x269)](()=>{const _0x1f7ec9=_0xe22880;if(this['_n'](_0x1f7ec9(0x1c3),[_0x263ac8['id'],_0x2ba4d0,_0x263ac8['when'],_0x263ac8['priority']]))this[_0x1f7ec9(0x52d)](_0x2ba4d0);});return _0x263ac8['id'];}async['claim'](_0x191466,_0x19d7d9={}){const _0x43a4e8=_0x1e720d;if(typeof _0x191466!=='string'||!_0x191466)throw new _0x2f1eb5(_0x43a4e8(0x329),_0x43a4e8(0x64a));return this['_w']('claim',[_0x191466,_0x19d7d9]);}async['markJobHeartbeat'](_0x585594,_0x39e5e4,_0x1c4b45=null){return this['_w']('markJobHeartbeat',[_0x585594,_0x39e5e4,_0x1c4b45]);}async[_0x1e720d(0x539)](_0x5b293b,_0x3db8ff,_0x2b558e=null){const _0x2fb10c=_0x1e720d;return this[_0x2fb10c(0x34e)](_0x5b293b,_0x3db8ff,_0x2b558e);}async['markJobProgress'](_0x332c10,_0x24872e,_0x41722e){return this['_w']('markJobProgress',[_0x332c10,_0x24872e,_0x41722e]);}async[_0x1e720d(0x64c)](_0x57ae82,_0x184ae2,_0x3fc32a){const _0x262f87=_0x1e720d;return this['_w'](_0x262f87(0x64c),[_0x57ae82,_0x184ae2,_0x3fc32a]);}async[_0x1e720d(0x6de)](_0x5a7392,_0x3b2e92,_0x2cd69e){const _0xacaae6=_0x1e720d;return this[_0xacaae6(0x64c)](_0x5a7392,_0x3b2e92,_0x2cd69e);}async[_0x1e720d(0x399)](_0x542c51,_0x21fe57,_0x230bf2,_0x26ae10){const _0x817c11=_0x1e720d,_0x15253a=_0x230bf2 instanceof Error?{'message':_0x230bf2[_0x817c11(0x18d)],'stack':_0x230bf2[_0x817c11(0x575)]}:_0x230bf2;return this['_w'](_0x817c11(0x399),[_0x542c51,_0x21fe57,_0x15253a,_0x26ae10]);}async[_0x1e720d(0x115)](_0x24c65c,_0x57ef40,_0x263246,_0x54bf8b){const _0x39b783=_0x1e720d;return this[_0x39b783(0x399)](_0x24c65c,_0x57ef40,_0x263246,_0x54bf8b);}async[_0x1e720d(0x6e2)](_0x3c6e07,_0x3ec7bb,_0x32ee83={}){const _0x324b9f=_0x1e720d;return this['_w'](_0x324b9f(0x6e2),[_0x3c6e07,_0x3ec7bb,_0x32ee83]);}async[_0x1e720d(0x55e)](_0x8e8a88){const _0x9eb79c=_0x1e720d;return this['_n'](_0x9eb79c(0x55e),[_0x8e8a88],![]);}async[_0x1e720d(0x1cb)](_0x2947f4,_0x259d2e={},_0x238801={}){const _0x231db0=_0x1e720d,_0x4438c2=_0x238801&&_0x238801[_0x231db0(0x704)];if(!_0x4438c2)return this['_w'](_0x231db0(0x1cb),[_0x2947f4,_0x259d2e]);const {next:_0x37de4,version:_0x193137}=this['_n']('planUpdateJob',[_0x2947f4,_0x259d2e],![]);_0x4438c2[_0x231db0(0x2bd)](_0x231db0(0x35f),_0x2947f4,_0x37de4,{'ifVersion':_0x193137});let _0x378bcc;if(_0x231db0(0x122)in _0x259d2e){if(_0x259d2e[_0x231db0(0x122)]===undefined){if(this[_0x231db0(0x3c4)]['getEntry'](_0x231db0(0x732),_0x2947f4))_0x4438c2['remove'](_0x231db0(0x732),_0x2947f4);}else _0x4438c2[_0x231db0(0x59b)]('~queue_payloads',_0x2947f4,_0x259d2e[_0x231db0(0x122)]);_0x378bcc=_0x259d2e['payload'];}else _0x378bcc=this[_0x231db0(0x3c4)]['get'](_0x231db0(0x732),_0x2947f4);return{..._0x37de4,'payload':_0x378bcc};}async[_0x1e720d(0x7e3)](_0x21341a,_0x596d76={}){const _0x54fd19=_0x1e720d,_0x35312e=_0x596d76&&_0x596d76[_0x54fd19(0x704)];if(!_0x35312e)return this['_w'](_0x54fd19(0x7e3),[_0x21341a]);if(!_0x21341a)throw new _0x2f1eb5('job\x20id\x20required','BAD_PARAM');if(!this[_0x54fd19(0x3c4)][_0x54fd19(0x153)](_0x54fd19(0x35f),_0x21341a))return![];_0x35312e[_0x54fd19(0x4d2)](_0x54fd19(0x35f),_0x21341a);if(this['env'][_0x54fd19(0x153)](_0x54fd19(0x732),_0x21341a))_0x35312e[_0x54fd19(0x4d2)](_0x54fd19(0x732),_0x21341a);if(typeof _0x35312e[_0x54fd19(0x269)]===_0x54fd19(0x7c4))_0x35312e[_0x54fd19(0x269)](()=>this['_n']('removeJobLogsAfterCommit',[_0x21341a]));return!![];}async[_0x1e720d(0x72c)](_0x135792){const _0x1b8507=_0x1e720d;return this['_w'](_0x1b8507(0x72c),[_0x135792]);}async[_0x1e720d(0x5cb)](_0x293674){const _0x582900=_0x1e720d;return this['_w'](_0x582900(0x5cb),[_0x293674]);}async[_0x1e720d(0x6fb)](_0x4047af,_0x352a9e,_0x493aca){const _0x29d3e9=_0x1e720d,_0x499bc2=this['_n'](_0x29d3e9(0x31a),[_0x352a9e??null,_0x493aca??0x0,_0x4047af]),_0x39f595=0x1f4;for(let _0xf07efe=0x0;_0xf07efe<_0x499bc2[_0x29d3e9(0x2a9)];_0xf07efe+=_0x39f595){this['_n'](_0x29d3e9(0xe9),[_0x499bc2[_0x29d3e9(0x331)](_0xf07efe,_0xf07efe+_0x39f595),_0xf07efe,_0x499bc2[_0x29d3e9(0x2a9)],_0x352a9e??null]);if(_0xf07efe+_0x39f595<_0x499bc2[_0x29d3e9(0x2a9)])await new Promise(_0x9a5e7f=>setImmediate(_0x9a5e7f));}return this['_n'](_0x29d3e9(0x178),[_0x499bc2['length'],_0x352a9e??null]),await new Promise(_0x490ba7=>setImmediate(_0x490ba7)),_0x499bc2[_0x29d3e9(0x2a9)];}async[_0x1e720d(0x470)](_0x110a94,_0x4d058f){const _0x2f74f2=_0x1e720d;return this['_clearChunked'](_0x2f74f2(0x248),_0x110a94,_0x4d058f);}async['clearFailed'](_0x113887,_0x497809){const _0x4c563e=_0x1e720d;return this[_0x4c563e(0x6fb)]('failed',_0x113887,_0x497809);}async[_0x1e720d(0x32c)](_0x4cf8d1,_0x332f74){const _0x162f6a=_0x1e720d;return this['_w'](_0x162f6a(0x32c),[_0x4cf8d1??null,_0x332f74??0x0]);}async[_0x1e720d(0x243)](_0x161683,_0x4070ec){return this['_w']('clearStuck',[_0x161683??null,_0x4070ec??0x0]);}async[_0x1e720d(0x1e9)](_0x33296a,_0x204150,_0x3385ca){return this['_w']('appendJobLog',[_0x33296a,_0x204150,_0x3385ca]);}async[_0x1e720d(0x709)](_0x42ff8b,_0x7558cb={}){const _0x3959f4=_0x1e720d;return this['_n'](_0x3959f4(0x709),[_0x42ff8b,_0x7558cb],![]);}async['addBucket'](_0x48b2c3,_0x58bac1={}){const _0x283930=_0x1e720d,{txn:_0x3d5e71,..._0x1274a0}=_0x58bac1||{};if(!_0x3d5e71)return this['_w']('addBucket',[_0x48b2c3,_0x1274a0]);const _0x27c87a=(_0x1253bf,_0x2854ea,_0x42bda7,_0x17c08f)=>{const _0xc00d67=_0x41a2,_0x1d6104=Math[_0xc00d67(0x26a)](Number(_0x1253bf));return Number[_0xc00d67(0x725)](_0x1d6104)?Math[_0xc00d67(0x165)](_0x17c08f,Math[_0xc00d67(0x380)](_0x42bda7,_0x1d6104)):_0x2854ea;},_0x4b9f6a=typeof _0x48b2c3===_0x283930(0x229)?_0x48b2c3['trim']():'';if(!_0x4b9f6a)throw new Error('bucket\x20id\x20required');const _0xdd26b4=_0x27c87a(_0x1274a0['capacity'],0x0,0x0,0x3b9aca00);_0x3d5e71[_0x283930(0x59b)](_0x283930(0xeb),_0x4b9f6a,{'id':_0x4b9f6a,'tokens':_0x27c87a(_0x1274a0['tokens'],_0xdd26b4,0x0,_0xdd26b4),'capacity':_0xdd26b4,'refill_amount':_0x27c87a(_0x1274a0[_0x283930(0x181)],0x0,0x0,0x3b9aca00),'refill_every':_0x27c87a(_0x1274a0[_0x283930(0x670)],0x0,0x0,0x16d*0x18*0x36ee80),'updated':Date[_0x283930(0x772)]()});}async[_0x1e720d(0x67c)](_0x472114,_0x49f361){return this['_w']('updateBucket',[_0x472114,_0x49f361]);}async['removeBucket'](_0x989f1a){const _0x3d0b3a=_0x1e720d;return this['_w'](_0x3d0b3a(0x543),[_0x989f1a]);}[_0x1e720d(0x315)](_0x598382){const _0x19c57a=_0x1e720d,_0x1bee17=this['_n'](_0x19c57a(0x315),[_0x598382],![]);return _0x1bee17===null&&typeof _0x598382===_0x19c57a(0x229)&&_0x598382[_0x19c57a(0x189)]()?undefined:_0x1bee17;}async[_0x1e720d(0x510)](_0x31759d,_0x15fa3b){const _0xdcf07e=_0x1e720d;return this['_w'](_0xdcf07e(0x510),[_0x31759d,_0x15fa3b]);}async[_0x1e720d(0x40a)](_0x363139,_0x5c96f0={}){return this['_w']('addJobType',[_0x363139,_0x5c96f0]);}async[_0x1e720d(0x2c0)](_0x5c7335){return this['_n']('getJobType',[_0x5c7335],![]);}async[_0x1e720d(0x6ad)](){const _0x2e2e8c=_0x1e720d;return this['_n'](_0x2e2e8c(0x6ad),[],![]);}async[_0x1e720d(0x6c7)](_0x1b61c2){const _0x4943e1=_0x1e720d;return this['_w'](_0x4943e1(0x6c7),[_0x1b61c2]);}[_0x1e720d(0x54f)](_0x5b2fc4){const _0x39f729=_0x1e720d;return this['_n'](_0x39f729(0x54f),[_0x5b2fc4]);}[_0x1e720d(0x4a9)](_0x56ac91){const _0x180c86=_0x1e720d;return this['_n'](_0x180c86(0x4a9),[_0x56ac91]);}[_0x1e720d(0xf9)](_0x1fcc5c){const _0x588c1d=_0x1e720d;return this['_n'](_0x588c1d(0xf9),[_0x1fcc5c]);}async[_0x1e720d(0x378)](_0x4d1522,_0x1984c3,_0x5175bf=![]){return this['_w']('setJobTypeSchema',[_0x4d1522,_0x1984c3,_0x5175bf]);}async[_0x1e720d(0x483)](_0x25fbfb){return this['_w']('removeJobTypeSchema',[_0x25fbfb]);}async[_0x1e720d(0x578)](_0x3f9480,_0x16cd45=0x5){const _0x3ac8f3=_0x1e720d;return this['_n'](_0x3ac8f3(0x578),[_0x3f9480,_0x16cd45],![]);}async['_reconcile'](_0x54d628){const _0x319818=_0x1e720d;return this['_n'](_0x319818(0x6b0),[_0x54d628]);}async[_0x1e720d(0xc6)](_0xf0b384=0x7530){const _0x2d8415=_0x1e720d;await Promise[_0x2d8415(0x6cb)]([...this['_workers']][_0x2d8415(0x1d9)](_0x4ee6c3=>_0x4ee6c3[_0x2d8415(0x4ff)](_0xf0b384)));const _0x52f29c=this['_n']('stopAll',[0x0]);return this[_0x2d8415(0x6af)][_0x2d8415(0x544)](),_0x52f29c;}async['killAll'](){const _0xbc2121=_0x1e720d,_0x190fab=this['_n'](_0xbc2121(0x7ab),[]);return this[_0xbc2121(0x6af)][_0xbc2121(0x544)](),_0x190fab;}[_0x1e720d(0x7b5)](_0x4fa6c0,_0xb9129e,_0x396be2){const _0x1768d2=_0x1e720d;let _0xd3ae90,_0x50a51d;if(Array['isArray'](_0x4fa6c0)){if(typeof _0xb9129e===_0x1768d2(0x7c4))throw new _0x2f1eb5(_0x1768d2(0x388),_0x1768d2(0x64a));_0x50a51d=_0xb9129e??{};if(_0x50a51d['admission']!=null&&typeof _0x50a51d[_0x1768d2(0x60d)]!=='function')throw new _0x2f1eb5(_0x1768d2(0x29d),_0x1768d2(0x64a));if(_0x4fa6c0[_0x1768d2(0x2a9)]===0x0)throw new _0x2f1eb5(_0x1768d2(0x524),'BAD_PARAM');_0xd3ae90=_0x4fa6c0['map'](_0x306636=>{const _0x5bd68e=_0x1768d2;if(!_0x306636||typeof _0x306636[_0x5bd68e(0x690)]!==_0x5bd68e(0x229)||!_0x306636[_0x5bd68e(0x690)])throw new _0x2f1eb5(_0x5bd68e(0x473),_0x5bd68e(0x64a));if(typeof _0x306636['handler']!==_0x5bd68e(0x7c4))throw new _0x2f1eb5('process()\x20entry\x20\x22'+_0x306636[_0x5bd68e(0x690)]+'\x22\x20requires\x20a\x20`handler`\x20function',_0x5bd68e(0x64a));return{..._0x306636};});}else{_0x50a51d=_0x396be2??{};if(typeof _0xb9129e!==_0x1768d2(0x7c4))throw new _0x2f1eb5(_0x1768d2(0x497)+_0x4fa6c0+_0x1768d2(0x17a),_0x1768d2(0x64a));_0xd3ae90=[{'type':_0x4fa6c0,'handler':_0xb9129e,..._0x396be2??{}}];}const _0x23edec=this['okdb'];for(const _0x52c127 of _0xd3ae90){const _0x46afa9=_0x52c127[_0x1768d2(0x560)];_0x52c127[_0x1768d2(0x560)]=function(..._0x219065){const _0x301933=_0x1768d2;return _0x23edec[_0x301933(0x38f)]()[_0x301933(0x583)](()=>_0x46afa9[_0x301933(0x5b0)](this,_0x219065));};}const _0x5827db=this['_n'](_0x1768d2(0x7b5),[_0xd3ae90,_0x50a51d]),_0x32e581=this,_0x5f4f2e={'id':_0x5827db['id'],'type':_0x5827db[_0x1768d2(0x690)],get 'running'(){return _0x32e581['_n']('workerState',[_0x5827db['id']],![])['running'];},'isRunning'(){const _0x25dc7c=_0x1768d2;return _0x32e581['_n']('workerState',[_0x5827db['id']],![])[_0x25dc7c(0x1e2)];},async 'stop'(_0x500a1f=0x7530){const _0x11999e=_0x1768d2;_0x32e581['_n'](_0x11999e(0x778),[_0x5827db['id']]);const _0x196998=Date[_0x11999e(0x772)]()+_0x500a1f;while(_0x32e581['_n'](_0x11999e(0x793),[_0x5827db['id']],![])[_0x11999e(0x5d8)]>0x0&&Date[_0x11999e(0x772)]()<_0x196998)await new Promise(_0x3ce002=>setTimeout(_0x3ce002,0x2));_0x32e581['_n'](_0x11999e(0x120),[_0x5827db['id']]),_0x12341f[_0x11999e(0x749)](),_0x32e581[_0x11999e(0x6af)][_0x11999e(0x7ec)](_0x5f4f2e);},async 'kill'(){const _0x22a422=_0x1768d2;_0x32e581['_n']('killWorker',[_0x5827db['id']]),_0x32e581[_0x22a422(0x6af)][_0x22a422(0x7ec)](_0x5f4f2e);}};return this[_0x1768d2(0x6af)]['add'](_0x5f4f2e),_0x5f4f2e;}['worker'](_0x9b1353){const _0xa4929f=_0x1e720d;throw new _0x2f1eb5(_0xa4929f(0x2ac)+_0x9b1353+'\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'+_0x9b1353+'\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.','QUEUE_WORKER_REMOVED');}[_0x1e720d(0x147)](_0x2a58ac){const _0x470c4f=_0x1e720d;return this[_0x470c4f(0x7eb)](_0x2a58ac);}}return queue={'OKDBQueue':_0x2dbe6b},queue;}var timemachine,hasRequiredTimemachine;function requireTimemachine(){const _0x4bd073=_0x431d06;if(hasRequiredTimemachine)return timemachine;hasRequiredTimemachine=0x1;const {fromArray:_0x1ba304}=requireIterable();class _0x40620c{constructor(_0x1ba4e6){const _0x414f9d=_0x41a2;this[_0x414f9d(0x3c4)]=_0x1ba4e6,this[_0x414f9d(0x6ff)]=_0x1ba4e6[_0x414f9d(0x6ff)];const _0x394d03=(_0xf30c5a,_0x32a65c)=>this['_n'](_0xf30c5a,_0x32a65c,![]);this[_0x414f9d(0x4d6)]={'getDiffs':(_0x54c8fc,_0x3eeaf5,_0x3e107c)=>_0x394d03(_0x414f9d(0x130),[_0x54c8fc,_0x3eeaf5,_0x3e107c||{}]),'hasDiff':(_0x4d267d,_0x2c3f51,_0x315aa4)=>_0x394d03(_0x414f9d(0x3cc),[_0x4d267d,_0x2c3f51,_0x315aa4]),'getHead':(_0x4b6840,_0x55fe17)=>_0x394d03(_0x414f9d(0x31d),[_0x4b6840,_0x55fe17])??null,'getHeadCount':_0x2b2b9b=>_0x394d03(_0x414f9d(0x50b),[_0x2b2b9b]),'getTotalHeadCount':()=>_0x394d03(_0x414f9d(0x254),[]),'getDiffsInRange':(_0x8deeca,_0x3d0d2a,_0x2359ad)=>_0x394d03(_0x414f9d(0x37a),[_0x8deeca??null,_0x3d0d2a,_0x2359ad]),'getConfig':()=>_0x394d03('storeGetConfig',[])??null,'getCursor':()=>this['_n'](_0x414f9d(0x5d6),[],![])??null,get 'db'(){const _0x138047=_0x414f9d;try{return _0x394d03(_0x138047(0x254),[]),{};}catch{return null;}}};}get[_0x4bd073(0x20a)](){const _0x41b541=_0x4bd073,_0x298fad=(this[_0x41b541(0x3c4)][_0x41b541(0xf8)]?.['list']?.()||[])[_0x41b541(0x587)](_0x34a17a=>String(_0x34a17a['cursorKey']||'')[_0x41b541(0x217)](_0x41b541(0x166)))[_0x41b541(0x2a9)];return{'size':_0x298fad};}['_n'](_0x58b928,_0x39be5d,_0x541f62=!![]){const _0x4d659c=_0x4bd073;return this[_0x4d659c(0x6ff)][_0x4d659c(0x722)]('tm',this[_0x4d659c(0x3c4)]['name'],_0x58b928,_0x39be5d,_0x541f62);}async[_0x4bd073(0x493)](_0x4e810a){const _0x32c84b=_0x4bd073;return this['_n'](_0x32c84b(0x493),[_0x4e810a??null]);}async['disable'](_0x568dc6){const _0x86d251=_0x4bd073;return this['_n'](_0x86d251(0x610),[_0x568dc6??null]);}async['enableAll'](){const _0x25d44e=_0x4bd073;return this['_n'](_0x25d44e(0x710),[]);}async[_0x4bd073(0xd8)](){const _0x4d84a2=_0x4bd073;return this['_n'](_0x4d84a2(0xd8),[]);}async['drop'](_0xdfec95){const _0x3d5dca=_0x4bd073;return this['_n'](_0x3d5dca(0x2e7),[_0xdfec95??null]);}async[_0x4bd073(0x52c)](){const _0x5ee158=_0x4bd073;return this['_n'](_0x5ee158(0x52c),[]);}['isEnabled'](_0x41c078){const _0x5dfbd6=_0x4bd073;return this['_n'](_0x5dfbd6(0x755),[_0x41c078??null],![]);}[_0x4bd073(0x58d)](){const _0x5de5c0=_0x4bd073;return this['_n'](_0x5de5c0(0x58d),[],![]);}[_0x4bd073(0x5d2)](_0x336d63){const _0x3d5fee=_0x4bd073;return this['_n'](_0x3d5fee(0x5d2),[_0x336d63??null],![]);}[_0x4bd073(0x23a)](_0x30777b){const _0x54eef9=_0x4bd073;if(!_0x30777b)return this['_n'](_0x54eef9(0x5d6),[],![]);return this['_n'](_0x54eef9(0x23a),[_0x30777b],![]);}[_0x4bd073(0x5d6)](){return this['_n']('getLegacyCursor',[],![]);}[_0x4bd073(0x3f9)](_0x276f68,_0x32ddbc,_0x1639c4){const _0x263be7=_0x4bd073;return this['_n'](_0x263be7(0x3f9),[_0x276f68,_0x32ddbc,_0x1639c4],![]);}[_0x4bd073(0x1e5)](_0x56df32,_0x5377cc,_0x1c9697){return this['_n']('getHistory',[_0x56df32,_0x5377cc,_0x1c9697||{}],![]);}[_0x4bd073(0xe4)](_0x496b38,_0x4d3a0a,_0x412314){const _0xeb8299=_0x4bd073;return this['_n'](_0xeb8299(0xe4),[_0x496b38??null,_0x4d3a0a,_0x412314],![])[Symbol[_0xeb8299(0x6b7)]]();}async[_0x4bd073(0x69e)](_0x27f174){const _0x41ec71=_0x4bd073;return this['_n'](_0x41ec71(0x69e),[_0x27f174??null]);}}return timemachine={'OKDBTimeMachine':_0x40620c},timemachine;}var files,hasRequiredFiles;function requireFiles(){const _0x9356f=_0x431d06;if(hasRequiredFiles)return files;hasRequiredFiles=0x1;const _0x50025b=require$$0,{Readable:_0x514430}=require$$1,{OKDBError:_0x3c39be,optionsArg:_0x21b297,invalidArgument:_0x497566}=requireErrors(),{RawDb:_0x272885}=requireRawdb();async function _0x507524(_0x2369d1){const _0x21205a=_0x41a2;if(Buffer[_0x21205a(0x68e)](_0x2369d1))return _0x2369d1;if(_0x2369d1 instanceof Uint8Array)return Buffer[_0x21205a(0x295)](_0x2369d1);if(typeof _0x2369d1===_0x21205a(0x229))return Buffer['from'](_0x2369d1);const _0x30ccc3=[];for await(const _0x3c8d09 of _0x2369d1)_0x30ccc3[_0x21205a(0x540)](Buffer['isBuffer'](_0x3c8d09)?_0x3c8d09:Buffer[_0x21205a(0x295)](_0x3c8d09));return Buffer[_0x21205a(0x70a)](_0x30ccc3);}class _0x55f318{constructor(_0x47ab1f){const _0x3692ab=_0x41a2;this[_0x3692ab(0x3c4)]=_0x47ab1f,this[_0x3692ab(0x6ff)]=_0x47ab1f[_0x3692ab(0x6ff)];}['_n'](_0x2b1240,_0x2fe55c,_0x1fc579=!![]){const _0x35037f=_0x41a2;return this[_0x35037f(0x6ff)][_0x35037f(0x722)](_0x35037f(0x253),this[_0x35037f(0x3c4)]['name'],_0x2b1240,_0x2fe55c,_0x1fc579);}[_0x9356f(0x432)](){return!![];}[_0x9356f(0x4ff)](){}async[_0x9356f(0x47a)](){const _0x54b15e=_0x9356f;this['_n'](_0x54b15e(0x3fa),[]);}async['_writeBlob'](_0x9b658c,_0x1771b8){return this['okdb']['_settleWrite'](this['_n']('writeBlob',[_0x9b658c,await _0x507524(_0x1771b8)]));}get['_blobStatusDb'](){const _0x167b7a=_0x9356f;return this[_0x167b7a(0x557)]||(this['__blobStatusDb']=new _0x272885(this[_0x167b7a(0x3c4)],'~file:blob_status'));}async['_blobStatusTxn'](_0x33fc73){const _0xdfeddd=_0x9356f;return this[_0xdfeddd(0x34f)][_0xdfeddd(0xe2)](_0x33fc73);}async[_0x9356f(0x659)](_0x557b8){const _0x2cfa63=_0x9356f,{id:_0x990d11,stream:_0x363937,mime:mime=_0x2cfa63(0x646),path:_0x26e57a='',txn:txn=null}=_0x21b297(_0x557b8);if(!_0x990d11)throw _0x497566(_0x2cfa63(0x1c9),_0x2cfa63(0x1f6),_0x990d11);if(!_0x363937)throw _0x497566(_0x2cfa63(0x2a3),_0x2cfa63(0x744),_0x363937);const _0x57b42c=await _0x507524(_0x363937);if(txn){const _0x19e4dd=this['_n']('uploadTxn',[_0x990d11,_0x57b42c,{'mime':mime,'path':_0x26e57a}]);return txn[_0x2cfa63(0x59b)](_0x2cfa63(0x4f2),_0x990d11,_0x19e4dd[_0x2cfa63(0x71a)]),txn[_0x2cfa63(0x269)](()=>this['_n']('txnDone',[_0x19e4dd[_0x2cfa63(0x738)]])),txn[_0x2cfa63(0x441)](()=>this['_n']('txnUndone',[_0x19e4dd['hook']])),_0x19e4dd['record'];}return this['okdb'][_0x2cfa63(0x550)](this['_n'](_0x2cfa63(0x659),[_0x990d11,_0x57b42c,{'mime':mime,'path':_0x26e57a}]));}['get'](_0x4f9fb1){return this['_n']('get',[_0x4f9fb1],![])??null;}[_0x9356f(0x3dc)](_0x2f6418){const _0x244325=_0x9356f,_0x36a18d=this[_0x244325(0x4bb)](_0x2f6418);if(!_0x50025b['existsSync'](_0x36a18d))throw Object[_0x244325(0x2e1)](new Error(_0x244325(0x68a)+_0x2f6418),{'status':0x194});return this[_0x244325(0x678)](_0x2f6418);}['_blobStream'](_0x38a712){const _0x4e51dc=0x100*0x400,_0x24008e=this;let _0x47796e=0x0;return new _0x514430({'highWaterMark':_0x4e51dc,'read'(){const _0x481e1e=_0x41a2;let _0x1ae752;try{const _0x372961=_0x24008e['_n']('readHashRange',[_0x38a712,_0x47796e,_0x4e51dc],![]);_0x1ae752=Buffer[_0x481e1e(0x68e)](_0x372961)?_0x372961:Buffer[_0x481e1e(0x295)](_0x372961);}catch(_0x570b39){this[_0x481e1e(0x309)](_0x570b39);return;}_0x47796e+=_0x1ae752['length'];if(_0x1ae752[_0x481e1e(0x2a9)])this[_0x481e1e(0x540)](_0x1ae752);if(_0x1ae752[_0x481e1e(0x2a9)]<_0x4e51dc)this[_0x481e1e(0x540)](null);}});}async['read'](_0x320c3d){const _0x4d615d=_0x9356f;return this['okdb'][_0x4d615d(0x412)](this['_n']('read',[_0x320c3d],![]));}async['stream'](_0x283fc5){const _0x18fb86=_0x9356f,_0x9cebc0=this['get'](_0x283fc5);if(!_0x9cebc0)throw Object[_0x18fb86(0x2e1)](new Error(_0x18fb86(0x7a2)+_0x283fc5),{'status':0x194});const _0x244d8d=this[_0x18fb86(0x4bb)](_0x9cebc0[_0x18fb86(0x231)]);if(!_0x50025b[_0x18fb86(0x2cd)](_0x244d8d))throw Object['assign'](new Error('Blob\x20missing\x20for\x20file:\x20'+_0x283fc5),{'status':0x194});return{'stream':this[_0x18fb86(0x678)](_0x9cebc0['hash']),'record':_0x9cebc0};}async[_0x9356f(0x4d2)](_0x4a1338,_0x5368e9){const _0x56da2c=_0x9356f,{txn:txn=null}=_0x21b297(_0x5368e9);if(txn){const _0x5e23e5=this['_n'](_0x56da2c(0x1fd),[_0x4a1338]);txn[_0x56da2c(0x4d2)](_0x56da2c(0x4f2),_0x4a1338),txn[_0x56da2c(0x269)](()=>this['_n']('txnDone',[_0x5e23e5['hook']])),txn[_0x56da2c(0x441)](()=>this['_n'](_0x56da2c(0x1b1),[_0x5e23e5[_0x56da2c(0x738)]]));return;}return this[_0x56da2c(0x6ff)][_0x56da2c(0x550)](this['_n'](_0x56da2c(0x4d2),[_0x4a1338]));}async[_0x9356f(0x4b8)](_0xd2efb9,_0x4869d7={}){const _0x23702e=_0x9356f;return this['_n'](_0x23702e(0x4b8),[_0xd2efb9,_0x4869d7],![]);}[_0x9356f(0x6c0)](_0x30ecc9){const _0x29c146=_0x9356f;return this['_n'](_0x29c146(0x6c0),[_0x30ecc9],![]);}[_0x9356f(0x174)](){const _0x286723=_0x9356f;return this['_n'](_0x286723(0x174),[],![]);}[_0x9356f(0x33c)](_0x54183f){const _0x2f2544=_0x9356f,{minAgeMs:_0x59739d}=_0x21b297(_0x54183f);return this['_n'](_0x2f2544(0x33c),[_0x59739d??null]);}[_0x9356f(0x530)](_0x5ca93b,_0x14b4a0){const _0x583f5c=_0x9356f;if(typeof _0x14b4a0!=='function')throw new _0x3c39be(_0x583f5c(0x5b8),_0x583f5c(0x64a));const _0x576b37=this['_n'](_0x583f5c(0x530),[_0x5ca93b,_0x14b4a0]);return()=>this['_n']('unregisterExtractor',[_0x576b37]);}async[_0x9356f(0x791)](_0x405de9){return _0x405de9=_0x21b297(_0x405de9),this['_n']('indexContent',[_0x405de9]);}async[_0x9356f(0x3eb)](_0x19e05f){const _0x17d296=_0x9356f,{peerIds:_0x348827}=_0x21b297(_0x19e05f);return this['_n'](_0x17d296(0x3eb),[_0x348827??null]);}['_blobPath'](_0x28b382){const _0x4ca999=_0x9356f;if(typeof _0x28b382!=='string')return require$$4[_0x4ca999(0x7d6)](this[_0x4ca999(0x11b)],_0x28b382[_0x4ca999(0x331)](0x0,0x2),_0x28b382[_0x4ca999(0x331)](0x2));return this['_n'](_0x4ca999(0x503),[_0x28b382],![]);}get['_blobsDir'](){return this['_n']('blobsDir',[],![]);}}return files={'OKDBFiles':_0x55f318},files;}var engines,hasRequiredEngines;function requireEngines(){const _0x191855=_0x431d06;if(hasRequiredEngines)return engines;hasRequiredEngines=0x1;const {OKDBError:_0x42f93b}=requireErrors(),_0x40da97=requireBridge(),_0x3f6258=new Set([_0x191855(0x472),_0x191855(0x320),'vector-search','embed-worker']),_0x27a5e1=new Set([_0x191855(0x70b),_0x191855(0xd5),_0x191855(0x6b9)]),_0x31d2a8=['validate',_0x191855(0x297),_0x191855(0x54e),'assertStartAllowed',_0x191855(0x353),'stop','uninstall'],_0x23641d={'embedder':new Set([_0x191855(0x6b9),_0x191855(0x7d7)])},_0x292df3=new Set([_0x191855(0x635),_0x191855(0xf8),_0x191855(0x1a7)]);class _0x265fc1{constructor(_0x1a52b4,_0x4d2f46,_0xaf2b1d,_0x1a6314){const _0x40c72d=_0x191855;this[_0x40c72d(0x3e2)]=_0x1a52b4,this['key']=_0x4d2f46,this[_0x40c72d(0x690)]=_0xaf2b1d,this[_0x40c72d(0x5e6)]=_0x1a6314,this[_0x40c72d(0x6ee)]=_0xaf2b1d;}[_0x191855(0x650)](){const _0x51c60c=_0x191855;return this[_0x51c60c(0x3e2)]['_n']('info',[this[_0x51c60c(0x690)],this[_0x51c60c(0x5e6)]],![]);}get[_0x191855(0x61d)](){const _0x46dabc=_0x191855;return this[_0x46dabc(0x650)]()[_0x46dabc(0x61d)];}get['_store'](){const _0x1706cc=_0x191855,_0x55c5cb=this[_0x1706cc(0x650)]()[_0x1706cc(0x764)];return _0x55c5cb?this[_0x1706cc(0x3e2)]['okdb'][_0x1706cc(0x446)][_0x1706cc(0x1bc)](_0x55c5cb):undefined;}get[_0x191855(0x537)](){const _0x45f0bf=_0x191855;return this[_0x45f0bf(0x650)]()[_0x45f0bf(0x537)];}get[_0x191855(0x671)](){const _0x572136=_0x191855;return this[_0x572136(0x650)]()['enabled'];}get['isRunning'](){const _0x2c8204=_0x191855;return this[_0x2c8204(0x650)]()['isRunning'];}get[_0x191855(0x5d2)](){const _0x1ae061=_0x191855;return this['_info']()[_0x1ae061(0x5d2)];}get['reason'](){return this['_info']()['reason'];}get[_0x191855(0x1c4)](){const _0x3c4ee3=_0x191855,_0x36e020=this[_0x3c4ee3(0x650)]()[_0x3c4ee3(0x1c4)];return _0x36e020?Object[_0x3c4ee3(0x2e1)](new Error(_0x36e020[_0x3c4ee3(0x18d)]),{'code':_0x36e020['code']}):null;}get[_0x191855(0x667)](){const _0x356d2b=_0x191855;return this[_0x356d2b(0x650)]()[_0x356d2b(0x667)];}get[_0x191855(0x73a)](){const _0x889282=_0x191855;return this[_0x889282(0x3e2)][_0x889282(0x11a)]['get'](this[_0x889282(0x690)])??null;}get[_0x191855(0x7d5)](){const _0xad4792=_0x191855;if(!this[_0xad4792(0x650)]()[_0xad4792(0x124)])return null;const _0x4b7ae7=this;return new Proxy({},{'get'(_0x69b6c3,_0x3df80d){const _0x426978=_0xad4792;if(typeof _0x3df80d===_0x426978(0x445)||_0x3df80d===_0x426978(0x583))return undefined;if(_0x23641d[_0x4b7ae7['type']]&&_0x23641d[_0x4b7ae7[_0x426978(0x690)]][_0x426978(0x614)](_0x3df80d))return _0x4b7ae7['_facade']['_n']('apiCall',[_0x4b7ae7['type'],_0x4b7ae7[_0x426978(0x5e6)],_0x3df80d,[]],![])['value'];if(_0x4b7ae7[_0x426978(0x690)]===_0x426978(0x320)&&_0x3df80d===_0x426978(0x69e))return async(_0x46cad3={})=>{const _0x3df34e=_0x426978,_0xfefbce=(_0x274667,..._0xc505c9)=>_0x4b7ae7['_facade']['_n'](_0x3df34e(0x44a),[_0x4b7ae7[_0x3df34e(0x690)],_0x4b7ae7[_0x3df34e(0x5e6)],_0x274667,_0xc505c9],!![])[_0x3df34e(0x6f0)],_0x1fb189=_0xfefbce(_0x3df34e(0x23b),_0x46cad3??{}),_0x19cca0=Date[_0x3df34e(0x772)]();for(;;){const _0x410945=await _0x4b7ae7['_facade'][_0x3df34e(0x6ff)][_0x3df34e(0x46d)](()=>_0xfefbce(_0x3df34e(0x59a)));if(_0x410945[_0x3df34e(0xc2)]>=_0x410945[_0x3df34e(0x4f6)])return;Date[_0x3df34e(0x772)]()-_0x19cca0>=_0x1fb189&&_0xfefbce(_0x3df34e(0x481),_0x46cad3??{},_0x410945),await new Promise(_0x360e9e=>setTimeout(_0x360e9e,0x3));}};return(..._0x249f66)=>{const _0x5ae960=_0x426978,_0x580a65=()=>_0x4b7ae7[_0x5ae960(0x3e2)]['_n'](_0x5ae960(0x44a),[_0x4b7ae7[_0x5ae960(0x690)],_0x4b7ae7[_0x5ae960(0x5e6)],_0x3df80d,_0x249f66],!![]),_0x4a7053=_0x391924=>{const _0x37c59f=_0x5ae960;if(_0x391924&&_0x391924[_0x37c59f(0x173)])throw new TypeError('engine\x20api\x20has\x20no\x20method\x20\x27'+_0x3df80d+'\x27');return _0x391924[_0x37c59f(0x6f0)];};if(_0x3f6258['has'](_0x4b7ae7['type'])&&!_0x27a5e1[_0x5ae960(0x614)](_0x3df80d)){const _0x435102=_0x4b7ae7['_facade']['okdb'];return _0x435102['_retryPending'](()=>_0x435102[_0x5ae960(0x46d)](_0x580a65))[_0x5ae960(0x583)](_0x4a7053);}if(_0x292df3['has'](_0x4b7ae7[_0x5ae960(0x690)]))try{return Promise['resolve'](_0x4a7053(_0x580a65()));}catch(_0x4ede71){return Promise['reject'](_0x4ede71);}return _0x4a7053(_0x580a65());};}});}async[_0x191855(0x1b2)](_0x27ffed={}){const _0x4ef8fd=_0x191855;return await this[_0x4ef8fd(0x3e2)][_0x4ef8fd(0x5a0)]('load',[this[_0x4ef8fd(0x690)],this[_0x4ef8fd(0x5e6)],_0x27ffed]),this;}async[_0x191855(0x432)](){const _0x430a8a=_0x191855;await this[_0x430a8a(0x3e2)][_0x430a8a(0x5a0)](_0x430a8a(0x1ba),[this[_0x430a8a(0x690)],this[_0x430a8a(0x5e6)]]);}async[_0x191855(0x4ff)](_0x547af0={}){const _0x444472=_0x191855;await this[_0x444472(0x3e2)]['_nm'](_0x444472(0x322),[this[_0x444472(0x690)],this['name'],_0x547af0]);}async[_0x191855(0xff)](_0x2f37f2={}){const _0x4eecf=_0x191855;return await this[_0x4eecf(0x3e2)][_0x4eecf(0x5a0)](_0x4eecf(0xff),[this[_0x4eecf(0x690)],this['name'],_0x2f37f2]),this;}async['uninstall'](){const _0x49833f=_0x191855;await this[_0x49833f(0x3e2)][_0x49833f(0x5a0)](_0x49833f(0x5da),[this['type'],this['name']]);}}class _0x1a93a4{constructor(_0x4a85f3,_0x17adfa=null,_0x452307=null){const _0x1d55ab=_0x191855;this[_0x1d55ab(0x6ff)]=_0x4a85f3,this[_0x1d55ab(0x3b2)]=_0x17adfa,this[_0x1d55ab(0x402)]=_0x17adfa===null,this['_root']=_0x452307||this,this['drivers']=this[_0x1d55ab(0x4dc)]===this?_0x30925f(this):this[_0x1d55ab(0x4dc)][_0x1d55ab(0x11a)],this[_0x1d55ab(0x3bb)]=new Map();}['_n'](_0x1375a2,_0x111b04,_0x5e7d56=!![]){const _0xdb7578=_0x191855;return this['okdb'][_0xdb7578(0x722)](_0xdb7578(0x7bc),this['envName'],_0x1375a2,_0x111b04,_0x5e7d56);}[_0x191855(0x5a0)](_0x3460c5,_0x2e633c){const _0xe019d8=_0x191855;return this[_0xe019d8(0x6ff)][_0xe019d8(0x22c)](_0xe019d8(0x7bc),this[_0xe019d8(0x3b2)],_0x3460c5,_0x2e633c,!![]);}get[_0x191855(0x3c4)](){const _0x3641=_0x191855;return this['envName']?this[_0x3641(0x6ff)][_0x3641(0x3c4)](this['envName']):null;}['_wrap'](_0x46f911){const _0x112cfd=_0x191855;if(!_0x46f911)return null;let _0x157720=this[_0x112cfd(0x3bb)][_0x112cfd(0x1bc)](_0x46f911['key']);return!_0x157720&&(_0x157720=new _0x265fc1(this,_0x46f911['key'],_0x46f911[_0x112cfd(0x690)],_0x46f911[_0x112cfd(0x5e6)]),this['_handles']['set'](_0x46f911['key'],_0x157720)),_0x157720;}['registerDriver'](_0x142f4c,_0x4d5031){const _0x1e7f0d=_0x191855;if(!_0x142f4c||typeof _0x142f4c!==_0x1e7f0d(0x229))throw new _0x42f93b(_0x1e7f0d(0x37d),_0x1e7f0d(0x11f),{'type':_0x142f4c});if(!_0x4d5031||typeof _0x4d5031!=='object')throw new _0x42f93b(_0x1e7f0d(0x644)+_0x142f4c+_0x1e7f0d(0x624),'ENGINE_INVALID_DRIVER',{'type':_0x142f4c});if(typeof _0x4d5031[_0x1e7f0d(0x432)]!==_0x1e7f0d(0x7c4))throw new _0x42f93b(_0x1e7f0d(0x644)+_0x142f4c+_0x1e7f0d(0x4fe),_0x1e7f0d(0x110),{'type':_0x142f4c});const _0x4c9644=this['_root'];if(_0x4c9644[_0x1e7f0d(0x11a)][_0x1e7f0d(0x614)](_0x142f4c))throw new _0x42f93b(_0x1e7f0d(0x274)+_0x142f4c+'\x22','ENGINE_DRIVER_ALREADY_REGISTERED',{'type':_0x142f4c});const _0x1fb4d9=_0x40da97[_0x1e7f0d(0x26b)](_0x4d5031,this[_0x1e7f0d(0x6ff)]),_0x18fda5=_0x31d2a8[_0x1e7f0d(0x587)](_0x47219e=>typeof _0x4d5031[_0x47219e]==='function'),_0x4a8b02=_0x4d5031['docs']&&typeof _0x4d5031[_0x1e7f0d(0x5e9)]==='object'?_0x4d5031[_0x1e7f0d(0x5e9)]:{};this[_0x1e7f0d(0x6ff)][_0x1e7f0d(0x722)]('engines',null,_0x1e7f0d(0x623),[_0x142f4c,{'$id':_0x1fb4d9,'has':_0x18fda5,'docs':_0x4a8b02}]),_0x4c9644[_0x1e7f0d(0x11a)][_0x1e7f0d(0x43c)](_0x142f4c,_0x4d5031);}get['_started'](){const _0x3f120e=_0x191855;return this['okdb'][_0x3f120e(0x722)]('engines',null,'orchestratorStarted',[],![]);}get[_0x191855(0x55d)](){const _0x27197f=this;return{get '_started'(){return _0x27197f['_started'];}};}['registerTemplate'](_0x304324){const _0x4b1c1e=_0x191855;if(!_0x304324||typeof _0x304324!==_0x4b1c1e(0x4ed))throw new _0x42f93b(_0x4b1c1e(0x2ff),'ENGINE_INVALID_TEMPLATE');if(!_0x304324['id']||typeof _0x304324['id']!==_0x4b1c1e(0x229))throw new _0x42f93b(_0x4b1c1e(0x294),_0x4b1c1e(0xb7));if(![_0x4b1c1e(0x684),'pipeline'][_0x4b1c1e(0x4e5)](_0x304324[_0x4b1c1e(0x301)]))throw new _0x42f93b('Engine\x20template\x20kind\x20must\x20be\x20\x22engine\x22\x20or\x20\x22pipeline\x22:\x20'+_0x304324['id'],_0x4b1c1e(0xb7));if(typeof _0x304324[_0x4b1c1e(0x506)]!==_0x4b1c1e(0x7c4))throw new _0x42f93b(_0x4b1c1e(0x4ef)+_0x304324['id'],_0x4b1c1e(0xb7));const _0x3011aa=this[_0x4b1c1e(0x6ff)],_0x4b63ca=typeof _0x304324[_0x4b1c1e(0xfe)]==='function';return this['_n']('registerTemplate',[{'id':_0x304324['id'],'kind':_0x304324['kind'],'family':_0x304324[_0x4b1c1e(0x757)]??null,'engineType':_0x304324['engineType']??null,'pipelineFamily':_0x304324[_0x4b1c1e(0x651)]??null,'recommended':_0x304324['recommended']===!![],'summary':_0x304324[_0x4b1c1e(0x5bb)]??null,'description':_0x304324['description']??null,'inputSchema':_0x4b63ca?null:_0x304324[_0x4b1c1e(0xfe)]??null,'inputSchemaFn':_0x4b63ca?()=>_0x304324['inputSchema'](_0x3011aa):null,'defaults':_0x304324['defaults']??null,'notes':Array[_0x4b1c1e(0x17d)](_0x304324[_0x4b1c1e(0x3ec)])?_0x304324[_0x4b1c1e(0x3ec)]:[],'links':Array[_0x4b1c1e(0x17d)](_0x304324['links'])?_0x304324[_0x4b1c1e(0x296)]:[],'build':(_0x4cf029,_0xcc1930)=>_0x304324[_0x4b1c1e(0x506)](_0x4cf029??{},{'okdb':_0x3011aa,'envName':_0xcc1930??null})}],![]);}[_0x191855(0x4b6)](_0xa96786){const _0x24c19c=_0x191855;return this['_n'](_0x24c19c(0x4b6),[_0xa96786??null],![]);}[_0x191855(0x66c)](_0x5178fc){const _0x5994ea=_0x191855;return this['_n'](_0x5994ea(0x66c),[_0x5178fc],![]);}[_0x191855(0xfc)](_0x96a589,_0x3e1b32,_0x435656){const _0x3fdd46=_0x191855;return this['_n'](_0x3fdd46(0xfc),[_0x96a589,_0x3e1b32,_0x435656??this[_0x3fdd46(0x3b2)]],![]);}[_0x191855(0x7ac)](){return this['_n']('catalog',[],![]);}async[_0x191855(0x432)](){const _0x31a935=_0x191855;return this['_nm'](_0x31a935(0x432),[]);}async[_0x191855(0x4ff)](){const _0x1f62c8=_0x191855;return this[_0x1f62c8(0x5a0)](_0x1f62c8(0x4ff),[]);}async[_0x191855(0x7ed)](_0x17d09e,_0x46dbbb,_0x55c966={},_0x1648a9={},_0x5b7f86={}){const _0x416ba4=_0x191855;return this[_0x416ba4(0x180)](await this[_0x416ba4(0x5a0)](_0x416ba4(0x7ed),[_0x17d09e,_0x46dbbb,_0x55c966,_0x1648a9,_0x5b7f86]));}async[_0x191855(0x6ba)](_0x15b5a9,_0x4fbf87,_0x56afd0={},_0x5d95b7={},_0x423f97={}){const _0x25579b=_0x191855;return this[_0x25579b(0x180)](await this[_0x25579b(0x5a0)](_0x25579b(0x6ba),[_0x15b5a9,_0x4fbf87,_0x56afd0,_0x5d95b7,_0x423f97]));}[_0x191855(0x1fa)](_0xed8e83,_0x3c5171){const _0x7d1feb=_0x191855;return this[_0x7d1feb(0x180)](this['_n']('getEngine',[_0xed8e83,_0x3c5171],![]));}[_0x191855(0x28f)](_0x15d89a,_0x598714){const _0x2e3687=_0x191855;return this['_wrap'](this['_n'](_0x2e3687(0x28f),[_0x15d89a,_0x598714],![]));}[_0x191855(0x58d)](_0x499dcc){const _0x19f9e6=_0x191855;return this['_n'](_0x19f9e6(0x58d),[_0x499dcc??null],![])['map'](_0x3605c9=>this[_0x19f9e6(0x180)](_0x3605c9));}async['restart'](_0x1874b1,_0xf4e798){const _0x526b30=_0x191855;return this[_0x526b30(0x180)](await this[_0x526b30(0x5a0)](_0x526b30(0x50c),[_0x1874b1,_0xf4e798]));}async[_0x191855(0x3b3)](_0x5eb2d8,_0x36f4aa){const _0x4c28d2=_0x191855;return this[_0x4c28d2(0x3bb)]['delete'](_0x5eb2d8+':'+_0x36f4aa),this['_nm'](_0x4c28d2(0x3b3),[_0x5eb2d8,_0x36f4aa]);}async['startNewEnginesFromSync'](_0x2c7ba1){const _0x4da673=_0x191855;return this[_0x4da673(0x5a0)](_0x4da673(0x41c),[_0x2c7ba1]);}async['bootSyncedEngines'](){const _0x34339b=_0x191855;return this[_0x34339b(0x5a0)]('bootSyncedEngines',[]);}}function _0x30925f(_0x5a66e9){const _0x34ad44=_0x191855,_0x464470=new Map();return{'has':_0x861471=>_0x464470[_0x34ad44(0x614)](_0x861471)||_0x5a66e9[_0x34ad44(0x6ff)][_0x34ad44(0x722)](_0x34ad44(0x7bc),null,_0x34ad44(0x5d5),[_0x861471],![]),'get':_0x22f086=>_0x464470['get'](_0x22f086),'set':()=>{const _0x592795=_0x34ad44;throw new _0x42f93b(_0x592795(0x142),_0x592795(0x64a));},'_set':(_0x544e2f,_0x5ad673)=>_0x464470[_0x34ad44(0x48c)](_0x544e2f,_0x5ad673),'keys':()=>_0x464470[_0x34ad44(0x5e1)](),'entries':()=>_0x464470[_0x34ad44(0x2d3)](),'values':()=>_0x464470['values'](),get 'size'(){const _0x10f265=_0x34ad44;return _0x464470[_0x10f265(0x74f)];},[Symbol['iterator']]:()=>_0x464470[Symbol[_0x34ad44(0x6b7)]]()};}class _0x40b59f{constructor(_0x7f806f,_0x1549fd=null){const _0x5386e7=_0x191855;this[_0x5386e7(0x6ff)]=_0x7f806f,this['envName']=_0x1549fd;}['_n'](_0x2130d4,_0x4b3d8d,_0x551a50=!![]){const _0x58bcec=_0x191855;return this[_0x58bcec(0x6ff)]['_call']('pipelines',this[_0x58bcec(0x3b2)],_0x2130d4,_0x4b3d8d,_0x551a50);}['_nm'](_0x186f45,_0x30233f){const _0xf255f3=_0x191855;return this[_0xf255f3(0x6ff)][_0xf255f3(0x22c)](_0xf255f3(0x251),this[_0xf255f3(0x3b2)],_0x186f45,_0x30233f,!![]);}get[_0x191855(0x2b2)](){const _0x37ff6d=_0x191855;return this[_0x37ff6d(0x3b2)]===null;}async[_0x191855(0x3fa)](_0x4cf12c){return this['_n']('ensure',[_0x4cf12c]);}async[_0x191855(0x1bc)](_0x13dd22,_0x58fb7a){const _0x3059e3=_0x191855;return this['_n'](_0x3059e3(0x1bc),[_0x13dd22,_0x58fb7a??null],![]);}async[_0x191855(0x25b)](_0x5c7a93,_0x4a8471){return this['_n']('getRecord',[_0x5c7a93,_0x4a8471??null],![]);}async['list'](_0x2c46b8){return this['_n']('list',[_0x2c46b8??null],![]);}async[_0x191855(0x6ed)](_0x4ca455={}){const _0x4c18c0=_0x191855;return this['_n'](_0x4c18c0(0x6ed),[_0x4ca455?.[_0x4c18c0(0x3b2)]??null],![]);}[_0x191855(0x49d)](_0x2c1dbe,_0x34f87b){return this['_n']('validate',[_0x2c1dbe,_0x34f87b??null],![]);}async[_0x191855(0x748)](_0x214109){const _0x25db78=_0x191855;return this['_nm'](_0x25db78(0x748),[_0x214109]);}async[_0x191855(0x2bd)](_0x2441b6,_0x18b8cd){const _0x617bf=_0x191855;return this[_0x617bf(0x5a0)]('update',[_0x2441b6,_0x18b8cd]);}async[_0x191855(0x4ff)](_0x243923){const _0x34060a=_0x191855;return this[_0x34060a(0x5a0)](_0x34060a(0x4ff),[_0x243923]);}async[_0x191855(0x5c7)](_0x28bc78){const _0x12ec7=_0x191855;if(!_0x28bc78||typeof _0x28bc78!==_0x12ec7(0x4ed)||!_0x28bc78[_0x12ec7(0x5e6)]||!_0x28bc78['engines'])return _0x28bc78;for(let _0x33bac6=0x0;_0x33bac6<0x3;_0x33bac6++)await new Promise(_0x3006a2=>setImmediate(_0x3006a2));try{const _0x399ccd=this[_0x12ec7(0x3b2)]!==null?await this['get'](_0x28bc78['name']):_0x28bc78[_0x12ec7(0x3c4)]?await this[_0x12ec7(0x1bc)](_0x28bc78[_0x12ec7(0x3c4)],_0x28bc78[_0x12ec7(0x5e6)]):null;return _0x399ccd||_0x28bc78;}catch{return _0x28bc78;}}async[_0x191855(0x432)](_0x5d27af){const _0x3b8b3d=_0x191855;return this['_settled'](await this[_0x3b8b3d(0x5a0)](_0x3b8b3d(0x432),[_0x5d27af]));}async[_0x191855(0x50c)](_0x3aaef6){const _0x3b113e=_0x191855;return this[_0x3b113e(0x5c7)](await this[_0x3b113e(0x5a0)](_0x3b113e(0x50c),[_0x3aaef6]));}async[_0x191855(0x273)](_0x846100){const _0x2d439c=_0x191855;return this[_0x2d439c(0x5a0)](_0x2d439c(0x273),[_0x846100]);}async['replaceMember'](_0x32220b,_0x37c66c,_0x3a0756){const _0x5b3d83=_0x191855;return this[_0x5b3d83(0x5a0)]('replaceMember',[_0x32220b,_0x37c66c,_0x3a0756]);}async[_0x191855(0x4d2)](_0x5057fc){return this['_nm']('remove',[_0x5057fc]);}async['stopAll'](){const _0x476b56=_0x191855;return this[_0x476b56(0x5a0)]('stopAll',[]);}async[_0x191855(0x685)](){const _0x2f4d0f=_0x191855;return this[_0x2f4d0f(0x5a0)](_0x2f4d0f(0x685),[]);}['findOwner'](_0xb11f36,_0x4f42a8){return this['_n']('findOwner',[_0xb11f36,_0x4f42a8],![]);}}return engines={'OKDBEngines':_0x1a93a4,'OKDBPipelines':_0x40b59f,'OKDBEngineHandle':_0x265fc1},engines;}var functions,hasRequiredFunctions;function requireFunctions(){const _0xd0f625=_0x431d06;if(hasRequiredFunctions)return functions;hasRequiredFunctions=0x1;const {optionsArg:_0x3ba5fd}=requireErrors(),_0x2adfd9=Number(process.env.OKDB_FN_POLL_MS)||0x14;class _0x362d43{constructor(_0x37974e,_0x1ab72a=null){const _0x50e116=_0x41a2;this[_0x50e116(0x6ff)]=_0x37974e,this[_0x50e116(0x3b2)]=_0x1ab72a??_0x50e116(0xfb);}get[_0xd0f625(0x3c4)](){const _0x28b0a3=_0xd0f625;return this[_0x28b0a3(0x6ff)][_0x28b0a3(0x446)]['get'](this[_0x28b0a3(0x3b2)])??null;}['_n'](_0x59f8af,_0x5033f0=[],_0x5b7960=!![]){const _0x35e6bc=_0xd0f625;try{return this['okdb'][_0x35e6bc(0x722)]('functions',this[_0x35e6bc(0x3b2)],_0x59f8af,_0x5033f0,_0x5b7960);}catch(_0x2380f3){throw _0xbf7fcd(_0x2380f3);}}async[_0xd0f625(0x5a0)](_0xef7b07,_0x451fd6=[]){const _0x54f5b8=_0xd0f625;try{return await this[_0x54f5b8(0x6ff)][_0x54f5b8(0x22c)]('functions',this['envName'],_0xef7b07,_0x451fd6,!![]);}catch(_0x22aea){throw _0xbf7fcd(_0x22aea);}}async[_0xd0f625(0x58d)](){const _0x14a7af=_0xd0f625;return this['_n'](_0x14a7af(0x58d),[],![]);}async['get'](_0x142ac6){const _0x419759=_0xd0f625;return this['_n'](_0x419759(0x1bc),[_0x142ac6],![]);}async[_0xd0f625(0x748)](_0x1b530d){const _0x2cb932=_0xd0f625;return this['_n'](_0x2cb932(0x748),[_0x1b530d]);}async[_0xd0f625(0x2bd)](_0x36f943,_0x25cc01={}){const _0x341439=_0xd0f625;return this['_n'](_0x341439(0x2bd),[_0x36f943,_0x25cc01]);}async[_0xd0f625(0x4d2)](_0x3f9cfa){return this['_n']('remove',[_0x3f9cfa]);}async[_0xd0f625(0x547)](_0x586286){const _0x62422f=_0xd0f625,{functionName:functionName=null}=_0x3ba5fd(_0x586286);return this['_n'](_0x62422f(0x547),[{'functionName':functionName}],![]);}async['getRun'](_0x5bc533){const _0x3fcfa7=_0xd0f625;return this['_n'](_0x3fcfa7(0x779),[_0x5bc533],![]);}async[_0xd0f625(0x552)](_0x27bfe4){const _0x5531e4=_0xd0f625;return _0x27bfe4=_0x3ba5fd(_0x27bfe4,_0x5531e4(0x349)),this['_n'](_0x5531e4(0x552),[_0x27bfe4]);}async['run'](_0x3b3a1f,_0x74b82=null,_0x4c39bc={}){const _0x48039b=_0xd0f625,_0xfe45ca={..._0x4c39bc},_0xbe2ed8=_0xfe45ca[_0x48039b(0x385)];if(_0xbe2ed8)_0xfe45ca[_0x48039b(0x475)]=!!_0xbe2ed8[_0x48039b(0x475)];delete _0xfe45ca[_0x48039b(0x385)];const _0x9cf372=await this[_0x48039b(0x5a0)]('runStart',[_0x3b3a1f,_0x74b82,_0xfe45ca]),_0x5781e3=this['okdb'],_0xaf253c=()=>_0x5781e3[_0x48039b(0x6bc)][_0x48039b(0x4c1)]();if(_0xbe2ed8&&typeof _0xbe2ed8[_0x48039b(0x73d)]==='function')_0xbe2ed8[_0x48039b(0x73d)](_0x48039b(0x775),_0xaf253c,{'once':!![]});let _0x2411a3=![];try{for(;;){const _0x347a98=_0x5781e3[_0x48039b(0x6bc)]['nextTurn'](_0x2adfd9);let _0x2189fa;try{_0x2189fa=await _0x5781e3[_0x48039b(0x22c)](_0x48039b(0x2f9),this['envName'],_0x48039b(0x6c4),[_0x9cf372,!!_0xbe2ed8?.['aborted']],![],![]);}catch(_0x494c0a){_0x2411a3=!![];throw _0xbf7fcd(_0x494c0a);}if(!_0x2189fa||_0x2189fa[_0x48039b(0x5db)]!==!![])return _0x2411a3=!![],_0x5781e3[_0x48039b(0x6bc)][_0x48039b(0x4c1)](),_0x2189fa;if(_0x2189fa[_0x48039b(0x706)])_0x5781e3[_0x48039b(0x6bc)][_0x48039b(0x4c1)]();await _0x347a98;}}finally{if(_0xbe2ed8&&typeof _0xbe2ed8[_0x48039b(0x439)]==='function')_0xbe2ed8['removeEventListener']('abort',_0xaf253c);if(!_0x2411a3)try{_0x5781e3[_0x48039b(0x722)](_0x48039b(0x2f9),this['envName'],_0x48039b(0x6e7),[_0x9cf372],![]);}catch{}}}async['preview'](_0x37a39a={},_0x2c173f=null,_0x2eb6b8={}){return this['_nm']('preview',[_0x37a39a,_0x2c173f,_0x2eb6b8]);}async['stop'](){}}function _0xbf7fcd(_0x59f534){const _0x1abb34=_0xd0f625;if(_0x59f534&&_0x59f534[_0x1abb34(0x38a)]&&_0x59f534['details'][_0x1abb34(0x2a1)])_0x59f534[_0x1abb34(0x4c7)]=_0x59f534['details'][_0x1abb34(0x2a1)];return _0x59f534;}return functions={'OKDBFunctions':_0x362d43},functions;}var processor={'exports':{}},lock,hasRequiredLock;function requireLock(){const _0x5eb7f2=_0x431d06;if(hasRequiredLock)return lock;hasRequiredLock=0x1;const {optionsArg:_0x16ff6b}=requireErrors();class _0x1aeb63{constructor(_0x385bb1,_0x345e3a){const _0xf87423=_0x41a2;this['_lock']=_0x385bb1,this[_0xf87423(0x113)]=_0x345e3a;}['_n'](_0x22993d,_0x4e8db6=[]){const _0xc820fd=_0x41a2;return this[_0xc820fd(0x2a0)]['_n'](_0x22993d,[this['_id'],..._0x4e8db6]);}[_0x5eb7f2(0x56b)](){return this['_n']('isHeld');}get['acquiredAt'](){const _0x5885ac=_0x5eb7f2;return this['_n'](_0x5885ac(0x2ad));}[_0x5eb7f2(0x21b)](){const _0x1b955b=_0x5eb7f2;return this['_n'](_0x1b955b(0x21b));}[_0x5eb7f2(0x65a)](_0x196785){const _0x4b61fc=_0x5eb7f2;return this['_n'](_0x4b61fc(0x65a),[_0x196785]);}async['release'](){return this['_n']('release');}}class _0x1e1fc0{constructor(_0x450462,_0xf7ad37,_0x2bb9c8,_0x280d8c){const _0x1d1981=_0x5eb7f2,{ttlMs:ttlMs=0x7530,heartbeatMs:heartbeatMs=null}=_0x16ff6b(_0x280d8c);this[_0x1d1981(0x6ff)]=_0x450462,this[_0x1d1981(0x7cb)]=_0x2bb9c8,this[_0x1d1981(0x113)]=_0x450462[_0x1d1981(0x722)]('lock',_0xf7ad37,_0x1d1981(0x4c4),[_0x2bb9c8,ttlMs,heartbeatMs],![]),this[_0x1d1981(0xf7)]=_0xf7ad37;}['_n'](_0x24dc3b,_0x2236f8=[]){const _0x59f6d7=_0x5eb7f2;return this['okdb'][_0x59f6d7(0x722)](_0x59f6d7(0x1b6),this[_0x59f6d7(0xf7)],_0x24dc3b,_0x2236f8,![]);}[_0x5eb7f2(0x63a)](_0x3a0eac){const _0x4ce2ee=_0x5eb7f2;return this['_n'](_0x4ce2ee(0x590),[this['_id'],_0x3a0eac]);}async[_0x5eb7f2(0x6d0)](_0x34138b,_0x5cf1e1={},_0x1995c1={}){const _0x5f2e30=_0x5eb7f2,_0x366a16=this['_n']('tryAcquire',[this[_0x5f2e30(0x113)],_0x34138b,_0x5cf1e1,_0x1995c1]);return{'acquired':_0x366a16['acquired'],'handle':_0x366a16[_0x5f2e30(0x747)]==null?null:new _0x1aeb63(this,_0x366a16[_0x5f2e30(0x747)]),'current':_0x366a16['current']};}[_0x5eb7f2(0x3d1)](_0x5cc636){const _0x78c631=_0x5eb7f2;return this['_n'](_0x78c631(0x3d1),[this[_0x78c631(0x113)],_0x5cc636]);}[_0x5eb7f2(0x58d)](){const _0x229e6c=_0x5eb7f2;return this['_n'](_0x229e6c(0x58d),[this[_0x229e6c(0x113)]]);}[_0x5eb7f2(0x5af)](_0x105448){const _0x2ca195=_0x5eb7f2;return this['_n'](_0x2ca195(0x5af),[this[_0x2ca195(0x113)],_0x105448]);}[_0x5eb7f2(0x5c8)](_0x2ec2e0,_0xfaf63=0x3e8){const _0x5a3f14=_0x5eb7f2;return this['_n'](_0x5a3f14(0x5c8),[this['_id'],_0x2ec2e0,_0xfaf63]);}}return lock={'NativeLock':_0x1e1fc0,'NativeLockHandle':_0x1aeb63},lock;}var hasRequiredProcessor;function requireProcessor(){const _0x51e6f9=_0x431d06;if(hasRequiredProcessor)return processor[_0x51e6f9(0x1ad)];hasRequiredProcessor=0x1;const _0x5e1a2f=requireBridge(),{RawDb:_0x1e6725}=requireRawdb(),{NativeLock:_0x373393}=requireLock();function _0x11ac97(_0x3ab5ff){}class _0x3591a7{constructor(_0x23748e){const _0x2fa132=_0x51e6f9;this['env']=_0x23748e,this['okdb']=_0x23748e;try{this['_n'](_0x2fa132(0x3fc),[(_0x16ea81,_0x227321)=>{const _0x201b0e=_0x2fa132,_0x35a99d=this[_0x201b0e(0x6ff)][_0x201b0e(0x745)],_0x1affdd=_0x35a99d?.[_0x16ea81]??_0x35a99d?.[_0x201b0e(0xd5)];if(typeof _0x1affdd===_0x201b0e(0x7c4))_0x1affdd[_0x201b0e(0x7cd)](_0x35a99d,_0x227321);}],![]);}catch{}}['_n'](_0xdb4cd8,_0x157473,_0xe6c6f2=!![]){const _0x35a3aa=_0x51e6f9;return this[_0x35a3aa(0x3c4)][_0x35a3aa(0x6ff)][_0x35a3aa(0x722)](_0x35a3aa(0x66e),this[_0x35a3aa(0x3c4)][_0x35a3aa(0x5e6)],_0xdb4cd8,_0x157473,_0xe6c6f2);}[_0x51e6f9(0xb9)](_0x2c1d72,_0x3cb82f={}){const _0x1035d2=_0x51e6f9,_0x44a30e={..._0x3cb82f};if(typeof _0x44a30e[_0x1035d2(0x560)]===_0x1035d2(0x7c4)&&_0x44a30e[_0x1035d2(0x554)]!=null)throw new Error(_0x1035d2(0x734)+_0x1035d2(0x1e4));if(typeof _0x44a30e['handler']===_0x1035d2(0x229)&&_0x44a30e[_0x1035d2(0x554)]!=null)throw new Error(_0x1035d2(0x249));if(_0x44a30e[_0x1035d2(0x554)]!=null){if(!_0x44a30e['module'][_0x1035d2(0xe7)])throw new Error(_0x1035d2(0x4d4));const _0x4c4c34=_0x44a30e['module'][_0x1035d2(0x5bc)]??_0x44a30e[_0x1035d2(0x554)][_0x1035d2(0x1a4)]??_0x1035d2(0x7b5),_0x49902d=require[_0x1035d2(0x54d)](_0x44a30e[_0x1035d2(0x554)]['path']),_0x9de5f3=require(_0x49902d),_0x3c2b6c=_0x9de5f3[_0x4c4c34]??_0x9de5f3[_0x1035d2(0x686)]??_0x9de5f3;if(typeof _0x3c2b6c!=='function')throw new Error(_0x1035d2(0x654)+_0x44a30e[_0x1035d2(0x554)][_0x1035d2(0xe7)]+'\x27\x20export\x20\x27'+_0x4c4c34+'\x27\x20is\x20not\x20a\x20function');this[_0x1035d2(0x3c4)][_0x1035d2(0x6ff)]['_staticCall'](_0x1035d2(0x66e),_0x1035d2(0x568),[_0x49902d,_0x4c4c34,_0x3c2b6c]),_0x44a30e[_0x1035d2(0x554)]={'path':_0x49902d,'export':_0x4c4c34};}if(_0x44a30e['quantum']!=null){if(typeof _0x44a30e['quantum'][_0x1035d2(0x554)]!==_0x1035d2(0x229))throw new Error(_0x1035d2(0x26f));const _0x31ffb8=require[_0x1035d2(0x54d)](_0x44a30e[_0x1035d2(0x3cb)]['module']),_0x4f63b3=require(_0x31ffb8),_0x1b889b=_0x44a30e[_0x1035d2(0x3cb)][_0x1035d2(0x1a4)],_0x2cc3aa=_0x1b889b?_0x4f63b3[_0x1b889b]:_0x4f63b3[_0x1035d2(0x686)]??_0x4f63b3;if(typeof _0x2cc3aa==='function'){const _0x40f135=_0x1b889b?_0x44a30e[_0x1035d2(0x3cb)][_0x1035d2(0x554)]+'#'+_0x1b889b:_0x44a30e['quantum'][_0x1035d2(0x554)];this[_0x1035d2(0x3c4)][_0x1035d2(0x6ff)][_0x1035d2(0x21f)](_0x1035d2(0x66e),_0x1035d2(0x5b5),[_0x40f135,_0x2cc3aa]);}_0x44a30e[_0x1035d2(0x3cb)]={..._0x44a30e[_0x1035d2(0x3cb)]};}_0x44a30e['payload']!=null&&typeof _0x44a30e[_0x1035d2(0x122)]===_0x1035d2(0x4ed)&&(_0x44a30e[_0x1035d2(0x122)]={'$payload':_0x5e1a2f[_0x1035d2(0x797)](_0x44a30e[_0x1035d2(0x122)],this[_0x1035d2(0x3c4)][_0x1035d2(0x6ff)])});if(_0x44a30e[_0x1035d2(0x273)]!=null&&typeof _0x44a30e['rebuild']!==_0x1035d2(0x7c4))throw new Error(_0x1035d2(0x6f4));const _0x22f5fb=this['_n'](_0x1035d2(0xb9),[_0x2c1d72??null,_0x44a30e]);return this[_0x1035d2(0x601)](_0x22f5fb['id'],_0x22f5fb[_0x1035d2(0x10a)]);}[_0x51e6f9(0x601)](_0x3ec2d4,_0xac0a5a){const _0xc8be73=_0x51e6f9,_0x4af863=this,_0x43d6d2=async()=>{const _0x294dc7=_0x41a2;_0x4af863['_n'](_0x294dc7(0x443),[_0x3ec2d4]);};return _0x43d6d2['id']=_0x3ec2d4,_0x43d6d2[_0xc8be73(0x10a)]=_0xac0a5a,_0x43d6d2['durableClock']=()=>_0xac0a5a?_0x4af863['_n'](_0xc8be73(0x785),[_0x3ec2d4],![]):0x0,_0x43d6d2[_0xc8be73(0x5d2)]=()=>_0x4af863[_0xc8be73(0x1bc)](_0x3ec2d4),_0x43d6d2['getStatus']=_0x43d6d2[_0xc8be73(0x5d2)],_0x43d6d2[_0xc8be73(0x160)]=()=>_0x4af863[_0xc8be73(0x160)](_0x3ec2d4),_0x43d6d2[_0xc8be73(0x1d8)]=()=>_0x4af863['resume'](_0x3ec2d4),_0x43d6d2[_0xc8be73(0x4db)]=()=>_0x4af863[_0xc8be73(0x4db)](_0x3ec2d4),_0x43d6d2[_0xc8be73(0x146)]=()=>_0x4af863[_0xc8be73(0x146)](_0x3ec2d4),_0x43d6d2[_0xc8be73(0x264)]=_0x1876e2=>_0x4af863[_0xc8be73(0x264)](_0x3ec2d4,_0x1876e2),_0x43d6d2;}get['_stops'](){const _0x23df44=_0x51e6f9;try{return this['_n'](_0x23df44(0x58d),[],![])[_0x23df44(0x1d9)](_0x1a0bf2=>({'id':_0x1a0bf2['id']}));}catch{return[];}}async[_0x51e6f9(0x3f0)](_0xb232bb){const _0x4dd7d1=_0x51e6f9;return new Set(this['_n'](_0x4dd7d1(0x3f0),[]));}['resumeAllAfterDrain'](_0x396229){const _0x23dd60=_0x51e6f9;return this['_n'](_0x23dd60(0x24b),[[..._0x396229??[]]]);}get[_0x51e6f9(0x77d)](){const _0x3a0ddd=_0x51e6f9;return new Set(this['_n'](_0x3a0ddd(0x58d),[],![])[_0x3a0ddd(0x587)](_0x394fb6=>_0x394fb6[_0x3a0ddd(0x690)]==null)[_0x3a0ddd(0x1d9)](_0x17eabf=>_0x17eabf['id']));}[_0x51e6f9(0x3d5)](){}get[_0x51e6f9(0x2a0)](){const _0x102fe7=_0x51e6f9;if(!this[_0x102fe7(0x71c)]){const _0xaca508=new _0x373393(this[_0x102fe7(0x3c4)][_0x102fe7(0x6ff)],this[_0x102fe7(0x3c4)][_0x102fe7(0x5e6)],_0x102fe7(0x66e)),_0xf95ef7=this[_0x102fe7(0x3c4)];_0xaca508[_0x102fe7(0x281)]=()=>new _0x1e6725(_0xf95ef7,_0x102fe7(0x1a6)),this[_0x102fe7(0x71c)]=_0xaca508;}return this[_0x102fe7(0x71c)];}['_fail'](_0x5048a8,_0x41aa6e){const _0x41500b=_0x51e6f9;return this['_n'](_0x41500b(0x258),[typeof _0x5048a8===_0x41500b(0x229)?_0x5048a8:_0x5048a8['id'],_0x41aa6e?.[_0x41500b(0x18d)]??String(_0x41aa6e??'')]);}get[_0x51e6f9(0x420)](){const _0x1c48ce=_0x51e6f9;return this[_0x1c48ce(0x773)]||(this[_0x1c48ce(0x773)]=new _0x1e6725(this[_0x1c48ce(0x3c4)],_0x1c48ce(0x536)));}get['_registrations'](){const _0x1b8578=_0x51e6f9,_0x50781f=this,_0x588932=_0x4dac2e=>{const _0x503730=_0x41a2,_0x20cb80=()=>_0x50781f['_n'](_0x503730(0x127),[_0x4dac2e],![]);if(!_0x20cb80())return undefined;const _0x3d4fae=_0x112eab=>()=>_0x20cb80()?.[_0x112eab],_0x258f4f={'id':_0x4dac2e},_0x17aca3=(_0x188cf4,_0x128747,_0x45b99d)=>Object['defineProperty'](_0x258f4f,_0x188cf4,{'get':_0x128747,'set':_0x45b99d,'enumerable':!![],'configurable':!![]});return _0x17aca3(_0x503730(0x1a2),_0x3d4fae(_0x503730(0x1a2))),_0x17aca3(_0x503730(0x520),_0x3d4fae(_0x503730(0x520))),_0x17aca3(_0x503730(0x563),_0x3d4fae(_0x503730(0x563))),_0x17aca3(_0x503730(0x1f0),_0x3d4fae('lastClock'),_0x44b9e1=>_0x50781f['_n'](_0x503730(0x35c),[_0x4dac2e,_0x44b9e1])),_0x17aca3('cursorKey',_0x3d4fae(_0x503730(0x10a))),_0x17aca3('_claimGated',_0x3d4fae(_0x503730(0xf2)),_0x2d36fa=>_0x50781f['_n'](_0x503730(0x6b2),[_0x4dac2e,!!_0x2d36fa])),_0x17aca3(_0x503730(0x687),_0x3d4fae(_0x503730(0x3bf))),_0x17aca3('flushQuantum',_0x3d4fae(_0x503730(0x4b5))),_0x17aca3(_0x503730(0x400),_0x3d4fae(_0x503730(0x400))),_0x17aca3(_0x503730(0x4d7),_0x3d4fae(_0x503730(0x7ea)),_0x382895=>_0x50781f['_n']('setModeApplied',[_0x4dac2e,_0x382895])),_0x17aca3(_0x503730(0x7a9),()=>_0x50781f[_0x503730(0x1bc)](_0x4dac2e)?.[_0x503730(0x7a9)]),_0x17aca3(_0x503730(0x7b2),()=>_0x20cb80()?.[_0x503730(0x75b)]?{'isHeld':()=>!!_0x20cb80()?.[_0x503730(0x75b)]}:null),_0x17aca3('_pokeHandler',()=>_0x20cb80()?.['pokeHandler']?()=>{}:null),_0x17aca3(_0x503730(0x2e2),()=>_0x20cb80()?.[_0x503730(0x32b)]?{}:null),_0x17aca3('_debounceTimer',()=>_0x20cb80()?.[_0x503730(0x463)]?{}:null),_0x258f4f;},_0x41a4f2=()=>_0x50781f['_n'](_0x1b8578(0x58d),[],![])[_0x1b8578(0x1d9)](_0x52d9ff=>_0x52d9ff['id']);return{'get':_0x41d4bd=>_0x588932(_0x41d4bd),'has':_0x5152f9=>_0x41a4f2()[_0x1b8578(0x4e5)](_0x5152f9),get 'size'(){const _0x534130=_0x1b8578;return _0x41a4f2()[_0x534130(0x2a9)];},'keys':()=>_0x41a4f2()[Symbol[_0x1b8578(0x6b7)]](),'values':()=>_0x41a4f2()['map'](_0x588932)[Symbol[_0x1b8578(0x6b7)]](),'entries':()=>_0x41a4f2()[_0x1b8578(0x1d9)](_0x928fe7=>[_0x928fe7,_0x588932(_0x928fe7)])[Symbol[_0x1b8578(0x6b7)]](),[Symbol[_0x1b8578(0x6b7)]]:()=>_0x41a4f2()[_0x1b8578(0x1d9)](_0x13918c=>[_0x13918c,_0x588932(_0x13918c)])[Symbol['iterator']](),'forEach':_0x12f65b=>_0x41a4f2()['forEach'](_0xfdd209=>_0x12f65b(_0x588932(_0xfdd209),_0xfdd209))};}async[_0x51e6f9(0xc6)](){const _0x4f50ba=_0x51e6f9;return this['_n'](_0x4f50ba(0xc6),[]);}[_0x51e6f9(0x58d)](){const _0x3733cd=_0x51e6f9,_0x296d08=this['_n'](_0x3733cd(0x58d),[],![]);if(!this[_0x3733cd(0x3c4)][_0x3733cd(0x5e6)][_0x3733cd(0x217)]('~'))try{const _0x2d33c5=this[_0x3733cd(0x3c4)][_0x3733cd(0x6ff)]['meta'];for(const _0x1e9b34 of _0x2d33c5[_0x3733cd(0x57b)](this[_0x3733cd(0x3c4)][_0x3733cd(0x5e6)])){for(const _0x4aa16e of _0x2d33c5[_0x3733cd(0x365)](_0x1e9b34,this[_0x3733cd(0x3c4)][_0x3733cd(0x5e6)])){const _0x1f6c5a=_0x3733cd(0x2f4)+_0x1e9b34+':'+_0x4aa16e;_0x296d08[_0x3733cd(0x540)]({'id':_0x1f6c5a,'type':_0x1e9b34,'mode':_0x3733cd(0x653),'state':_0x3733cd(0x386),'paused':![],'lag':0x0,'cursorKey':_0x1f6c5a,'meta':{'name':_0x1f6c5a}});}}}catch{}return _0x296d08;}[_0x51e6f9(0x22f)](){const _0x12636e=_0x51e6f9;return this['_n'](_0x12636e(0x22f),[],![]);}[_0x51e6f9(0x790)](){const _0x58db24=_0x51e6f9;return this['_n'](_0x58db24(0x790),[],![]);}[_0x51e6f9(0x51b)](){const _0x6fd707=_0x51e6f9;return this['_n'](_0x6fd707(0x51b),[],![]);}[_0x51e6f9(0x1bc)](_0x3bcda7){const _0x2a5be4=_0x51e6f9;return this['_n'](_0x2a5be4(0x1bc),[_0x3bcda7],![]);}[_0x51e6f9(0x364)](_0x11eb11){const _0x2ea965=_0x51e6f9;return this[_0x2ea965(0x1bc)](typeof _0x11eb11===_0x2ea965(0x229)?_0x11eb11:_0x11eb11['id']);}[_0x51e6f9(0x23a)](_0x34b81b){const _0x5906f7=_0x51e6f9;return this['_n'](_0x5906f7(0x23a),[_0x34b81b],![]);}['resetCursor'](_0x3dc61d){return this['_n']('resetCursor',[_0x3dc61d]);}[_0x51e6f9(0x350)](_0x58e7d1){const _0x3027df=_0x51e6f9;return this['_n'](_0x3027df(0x350),[_0x58e7d1]);}['isSnapshotComplete'](_0x28936e){const _0x5b5f90=_0x51e6f9;return this['_n'](_0x5b5f90(0x45d),[_0x28936e],![]);}[_0x51e6f9(0x6a4)](_0x55bba0,_0x259673){const _0x7c9abb=_0x51e6f9;return this['_n'](_0x7c9abb(0x6a4),[_0x55bba0,_0x259673]);}async['awaitIdle'](_0x5d7ec7,_0x2b5c54){return this['_n']('awaitIdle',[_0x5d7ec7,_0x2b5c54??0x7530]);}[_0x51e6f9(0x160)](_0x279d47){const _0x238e8d=_0x51e6f9;return this['_n'](_0x238e8d(0x160),[_0x279d47]);}[_0x51e6f9(0x1d8)](_0x412cd3){const _0x792e7c=_0x51e6f9;return this['_n'](_0x792e7c(0x1d8),[_0x412cd3]);}async[_0x51e6f9(0x4d0)](_0x5f4a05){const _0x2d3b33=_0x51e6f9;return this['_n'](_0x2d3b33(0x4d0),[_0x5f4a05]);}['kick'](_0x3d6bec){return this['_n']('kick',[_0x3d6bec]);}[_0x51e6f9(0x146)](_0x20bec1){const _0x5d4c51=_0x51e6f9;return this['_n'](_0x5d4c51(0x146),[_0x20bec1]);}['restart'](_0x25c631,_0x3a02af={}){return this['_n']('restart',[_0x25c631,_0x3a02af]);}async[_0x51e6f9(0x6a9)](_0x3b5e58,_0x40648d,_0x147ac4){const _0x4227aa=_0x51e6f9,[_0x5d3c79,_0x5b804a]=this['_n'](_0x4227aa(0x6a9),[_0x3b5e58,_0x40648d,_0x147ac4]);return{'version':_0x5d3c79,'flipClock':_0x5b804a};}async[_0x51e6f9(0x114)](_0x27d6b9,_0x2a36f7,_0x49611a={}){const _0x508089=_0x51e6f9;return this['_n'](_0x508089(0x114),[_0x27d6b9,_0x2a36f7,_0x49611a]);}}_0x3591a7[_0x51e6f9(0x2d7)]=function _0x4dc80e(_0xf128df,_0x49e4bf){const _0x116f90=_0x51e6f9;if(typeof _0xf128df!=='string'||!_0xf128df)throw new Error('registerHandler:\x20name\x20must\x20be\x20a\x20non-empty\x20string');if(typeof _0x49e4bf!==_0x116f90(0x7c4))throw new Error('registerHandler:\x20fn\x20must\x20be\x20a\x20function');_0x36261f('proc',_0x116f90(0x2d7),[_0xf128df,_0x49e4bf]);},_0x3591a7['registerQuantum']=function _0x47a3ce(_0x124f25,_0x192f4b){const _0x48580c=_0x51e6f9;if(typeof _0x124f25!==_0x48580c(0x229)||!_0x124f25)throw new Error(_0x48580c(0x3c8));if(typeof _0x192f4b!==_0x48580c(0x7c4))throw new Error(_0x48580c(0x728));let _0x237922=null;_0x36261f('proc',_0x48580c(0x5b5),[_0x124f25,(_0x12d503,_0x1d51e1)=>{if(!_0x237922)_0x237922=_0x192f4b();return _0x237922(_0x12d503,_0x1d51e1);}]);},_0x3591a7['_isClosedEnvError']=_0x10df4c=>/closed|not open|released/i[_0x51e6f9(0x458)](String(_0x10df4c)),_0x3591a7['_inlineClosureWarned']=![];function _0x36261f(_0x3bcca1,_0x36e16e,_0x1e360a){const {staticCall:_0x59689f}=requireLib();return _0x59689f(_0x3bcca1,_0x36e16e,_0x1e360a);}return processor[_0x51e6f9(0x1ad)]=_0x3591a7,processor[_0x51e6f9(0x1ad)][_0x51e6f9(0x6fe)]=_0x3591a7,processor[_0x51e6f9(0x1ad)]['setNative']=_0x11ac97,processor[_0x51e6f9(0x1ad)];}var okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x3ca350=_0x431d06;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x495f3b={'PUT':_0x3ca350(0x59b),'REMOVE':_0x3ca350(0x4d2),'INDEX_DROP':_0x3ca350(0x61c),'INDEX_REGISTER':'registerIndex','INDEX_RESET':_0x3ca350(0x480),'TYPE_REGISTER':_0x3ca350(0x735),'TYPE_DROP':_0x3ca350(0x1bb),'FTS_REGISTER':_0x3ca350(0x19b),'FTS_DROP':'dropFts','FTS_RESET':'resetFts','SCHEMA_SET':'setSchema','SCHEMA_DROP':_0x3ca350(0x6a6),'TTL_SET':'setTtl','TTL_CLEAR':'clearTtl'},_0x12b5f4={'SYSTEM_READY':_0x3ca350(0x48f),'FIELD_RESOLVER_REGISTERED':_0x3ca350(0x494),'SYSTEM_STOPPED':_0x3ca350(0x169),'SYSTEM_CLOCK_CHANGE':'system:clock_change','SYSTEM_POKE':'system:poke','SYSTEM_DRAIN':_0x3ca350(0x369),'SYSTEM_TYPE_DROP':_0x3ca350(0x46f),'SYSTEM_PROC':'system:proc','SYSTEM_BUS_STATE_CHANGE':_0x3ca350(0x3e6),'ITEM_CREATE':_0x3ca350(0x75f),'ITEM_UPDATE':_0x3ca350(0x28a),'ITEM_REMOVE':_0x3ca350(0x29a),'ITEM_PENDING':_0x3ca350(0x271),'INDEX_RESET':_0x3ca350(0x600),'INDEX_READY':_0x3ca350(0x46e),'INDEX_PROGRESS':_0x3ca350(0x202),'VIEW_PROGRESS':_0x3ca350(0x2d5),'INDEX_DROP':_0x3ca350(0x438),'INDEX_REGISTERED':_0x3ca350(0x538),'FTS_REGISTERED':_0x3ca350(0x6a2),'FTS_DROP':_0x3ca350(0x30b),'FTS_RESET':_0x3ca350(0x3f8),'SCHEMA_SET':_0x3ca350(0x4b7),'SCHEMA_DROP':_0x3ca350(0x112),'UNIQUE_VIOLATION':_0x3ca350(0x1b0),'UNIQUE_VIOLATION_RESOLVED':'unique:violation_resolved','REF_VIOLATION':_0x3ca350(0xbd),'REF_VIOLATION_RESOLVED':_0x3ca350(0x1ea),'SYNC_APPLY':_0x3ca350(0x118),'TXN_START':_0x3ca350(0x371),'TXN_END':_0x3ca350(0x232),'TXN_ROLLBACK':_0x3ca350(0x3a2),'TYPE_REGISTERED':_0x3ca350(0x6db),'TYPE_DROP':_0x3ca350(0x724),'ENV_OPENED':_0x3ca350(0x351),'ENV_REMOVED':_0x3ca350(0x2c1),'SYSTEM_ENV_RELEASE':'system:env_release','TTL_EXPIRED':_0x3ca350(0x1b9),'TTL_SET':'ttl:set','TTL_CLEAR':_0x3ca350(0x79e),'LICENSE_INVALID':_0x3ca350(0x2cf),'LICENSE_ADDED':_0x3ca350(0x392),'LICENSE_ACTIVATED':'license:activated','LICENSE_REMOVED':'license:removed'},_0x5b7119={'CREATING':_0x3ca350(0x7bd),'RESETTING':_0x3ca350(0x5ef),'READY':_0x3ca350(0x158),'DROPPING':_0x3ca350(0x24c),'WAITING':_0x3ca350(0x1a9),'ERROR':_0x3ca350(0x4ad)},_0x20b976={'CREATED':_0x3ca350(0x44c),'STARTING':_0x3ca350(0x58c),'STARTED':_0x3ca350(0x6ec),'STOPPING':_0x3ca350(0x22e),'STOPPED':_0x3ca350(0x3d7)},_0x161d09={'CREATING':'creating','READY':_0x3ca350(0x158),'HALTED':_0x3ca350(0x208),'STOPPED':_0x3ca350(0x3d7),'RESETTING':_0x3ca350(0x5ef)},_0x250844=Object[_0x3ca350(0x4f8)]({'POKE':'bus:poke','DRAIN':'bus:drain','TYPE_DROP':'bus:type_drop','PROC':_0x3ca350(0x39d),'ENV_RELEASE':_0x3ca350(0x42b)});return okdbEnums={'BUS_EVENTS':_0x250844,'CHANGE_ACTIONS':_0x495f3b,'EVENTS':_0x12b5f4,'INDEX_STATE':_0x5b7119,'OKDB_STATE':_0x20b976,'VIEW_STATE':_0x161d09},okdbEnums;}var okdbGuardedRange,hasRequiredOkdbGuardedRange;function requireOkdbGuardedRange(){const _0x599b5b=_0x431d06;if(hasRequiredOkdbGuardedRange)return okdbGuardedRange;hasRequiredOkdbGuardedRange=0x1;const _0x576175={'SKIP':Symbol['for'](_0x599b5b(0x16a))},{OKDBError:_0x5051a6}=requireOkdbError(),_0x46732e={'value':null,'done':!![]};class _0x49d830{constructor(_0xfa959e){this['_makeIterator']=_0xfa959e;}get[_0x599b5b(0x2ea)](){return _0x46732e;}[Symbol[_0x599b5b(0x6b7)]](){const _0x2e95cf=_0x599b5b;return this[_0x2e95cf(0x125)]();}['map'](_0x36349c){const _0x10f875=this;return new _0x49d830(()=>{const _0x1c8211=_0x10f875[Symbol['iterator']]();return{'next'(){const _0x1307dd=_0x41a2;for(;;){const _0x12e64b=_0x1c8211[_0x1307dd(0x133)]();if(_0x12e64b[_0x1307dd(0x248)])return{'done':!![],'value':undefined};const _0x437a3e=_0x36349c(_0x12e64b[_0x1307dd(0x6f0)]);if(_0x437a3e===_0x576175[_0x1307dd(0x4b2)])continue;if(_0x437a3e===_0x46732e)return _0x1c8211[_0x1307dd(0x7b4)]?.(),{'done':!![],'value':undefined};return{'done':![],'value':_0x437a3e};}},'return'(){return _0x1c8211['return']?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}[_0x599b5b(0x587)](_0x341f90){const _0x1eee88=_0x599b5b;return this[_0x1eee88(0x1d9)](_0x5a28c2=>_0x341f90(_0x5a28c2)?_0x5a28c2:_0x576175[_0x1eee88(0x4b2)]);}[_0x599b5b(0x64d)](_0x554b83){for(const _0x319012 of this)_0x554b83(_0x319012);}[_0x599b5b(0x331)](_0x3b175b=0x0,_0x2c8051=Infinity){const _0x56fdfe=this;return new _0x49d830(()=>{const _0x3149ca=_0x41a2,_0x27c129=_0x56fdfe[Symbol[_0x3149ca(0x6b7)]]();let _0x26bce7=0x0;return{'next'(){const _0x12ca30=_0x3149ca;for(;;){const _0x446e0e=_0x27c129['next']();if(_0x446e0e[_0x12ca30(0x248)])return{'done':!![],'value':undefined};const _0x476147=_0x26bce7++;if(_0x476147<_0x3b175b)continue;if(_0x476147>=_0x2c8051)return _0x27c129[_0x12ca30(0x7b4)]?.(),{'done':!![],'value':undefined};return _0x446e0e;}},'return'(){return _0x27c129['return']?.(),{'done':!![],'value':undefined};},[Symbol[_0x3149ca(0x6b7)]](){return this;}};});}['at'](_0x20396e){let _0x292fe5=0x0;for(const _0x16cf4c of this)if(_0x292fe5++===_0x20396e)return _0x16cf4c;return undefined;}[_0x599b5b(0x43b)](_0x1311ce){const _0xd76f64=this;return new _0x49d830(()=>{const _0x458410=_0x41a2,_0x42f64f=_0xd76f64[Symbol[_0x458410(0x6b7)]]();let _0x4f3df5=[];return{'next'(){const _0x2030c0=_0x458410;for(;;){if(_0x4f3df5[_0x2030c0(0x2a9)])return{'done':![],'value':_0x4f3df5[_0x2030c0(0x40d)]()};const _0x40e610=_0x42f64f[_0x2030c0(0x133)]();if(_0x40e610[_0x2030c0(0x248)])return{'done':!![],'value':undefined};const _0x5ca70f=_0x1311ce(_0x40e610[_0x2030c0(0x6f0)]);if(Array['isArray'](_0x5ca70f))_0x4f3df5=_0x4f3df5['concat'](_0x5ca70f);else{if(_0x5ca70f!=null&&(_0x5ca70f instanceof _0x49d830||typeof _0x5ca70f[Symbol[_0x2030c0(0x6b7)]]===_0x2030c0(0x7c4)&&'asArray'in _0x5ca70f))_0x4f3df5=_0x4f3df5[_0x2030c0(0x70a)](Array[_0x2030c0(0x295)](_0x5ca70f));else{if(_0x5ca70f!==_0x576175[_0x2030c0(0x4b2)])return{'done':![],'value':_0x5ca70f};}}}},'return'(){const _0x4b7020=_0x458410;return _0x42f64f[_0x4b7020(0x7b4)]?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}[_0x599b5b(0x70a)](_0xe11e4e){const _0x5e3242=this;return new _0x49d830(()=>{const _0x22b1da=_0x41a2;let _0x1a290c=_0x5e3242[Symbol[_0x22b1da(0x6b7)]](),_0x471195=![];return{'next'(){const _0x17ac95=_0x22b1da;for(;;){const _0x589d0e=_0x1a290c['next']();if(!_0x589d0e[_0x17ac95(0x248)])return _0x589d0e;if(_0x471195)return{'done':!![],'value':undefined};_0x471195=!![],_0x1a290c=_0xe11e4e[Symbol[_0x17ac95(0x6b7)]]();}},'return'(){const _0x9effb5=_0x22b1da;return _0x1a290c[_0x9effb5(0x7b4)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x22b1da(0x6b7)]](){return this;}};});}[_0x599b5b(0x11c)](_0x27d5e2){const _0x12579a=this;return new _0x49d830(()=>{const _0xe75666=_0x41a2,_0x3ea3bd=_0x12579a[Symbol[_0xe75666(0x6b7)]]();return{'next'(){const _0x3eab92=_0xe75666;for(;;){try{return _0x3ea3bd[_0x3eab92(0x133)]();}catch(_0x1663a2){const _0x456492=_0x27d5e2(_0x1663a2);if(_0x456492===_0x576175[_0x3eab92(0x4b2)]||_0x456492===undefined)continue;return{'done':![],'value':_0x456492};}}},'return'(){const _0xf5a943=_0xe75666;return _0x3ea3bd[_0xf5a943(0x7b4)]?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}['toJSON'](){const _0x36111c=_0x599b5b;return Array[_0x36111c(0x295)](this);}get['asArray'](){const _0x571f5a=_0x599b5b;return Array[_0x571f5a(0x295)](this);}}const _0x151801={'total':0x0,'byLabel':{},'last':null};function _0xb9a51f(_0x193473){const _0x42da7a=_0x599b5b;_0x151801['total']++;if(_0x193473)_0x151801[_0x42da7a(0x34a)][_0x193473]=(_0x151801[_0x42da7a(0x34a)][_0x193473]??0x0)+0x1;_0x151801['last']={'label':_0x193473??null,'at':Date[_0x42da7a(0x772)]()};}function _0xc310cf(){const _0x51f864=_0x599b5b;return{'total':_0x151801[_0x51f864(0x2e8)],'byLabel':{..._0x151801['byLabel']},'last':_0x151801['last']};}function _0x389c64(_0x414fa2,_0x374bf5={}){const {getTxnId:_0x15bc0d,resume:_0xa0ea06,label:_0x3fa5df,baseline:_0x37124b}=_0x374bf5;return new _0x49d830(()=>{const _0x5f9fcf=_0x41a2;let _0x2dbcb8=null,_0x8d91ee=![],_0x5581cf=![],_0x411439=![],_0x12b2e9,_0x220570=0x0,_0x4e86e2;return{'next'(){const _0x31bc1b=_0x41a2;if(_0x411439)return{'done':!![],'value':undefined};if(_0x5581cf){let _0x97a38e=![];if(_0xa0ea06&&_0x15bc0d)try{_0x97a38e=_0x15bc0d()===_0x4e86e2;}catch{}if(!_0x97a38e){_0x411439=!![],_0xb9a51f(_0x3fa5df);throw new _0x5051a6(_0xa0ea06?_0x31bc1b(0xce)+_0x31bc1b(0x162)+_0x31bc1b(0x54b):_0x31bc1b(0x4e8)+'(no\x20unambiguous\x20bookmark)\x20—\x20consume\x20it\x20in\x20one\x20synchronous\x20block:\x20materialize\x20(e.g.\x20'+_0x31bc1b(0x1dc),'READER_HELD_ACROSS_AWAIT');}_0x2dbcb8=_0xa0ea06(_0x12b2e9,_0x220570)[Symbol[_0x31bc1b(0x6b7)]](),_0x5581cf=![];}if(!_0x2dbcb8){if(_0x37124b!==undefined)_0x4e86e2=_0x37124b;else try{_0x4e86e2=_0x15bc0d?_0x15bc0d():undefined;}catch{_0x4e86e2=undefined;}try{_0x2dbcb8=_0x414fa2()[Symbol['iterator']]();}catch(_0x334780){_0x411439=!![];throw _0x334780;}}!_0x8d91ee&&(_0x8d91ee=!![],queueMicrotask(()=>{const _0x9a4766=_0x31bc1b;_0x8d91ee=![];if(_0x411439||_0x5581cf)return;try{_0x2dbcb8?.[_0x9a4766(0x7b4)]?.();}catch{}_0x2dbcb8=null,_0x5581cf=!![];}));const _0x5cea98=_0x2dbcb8['next']();if(_0x5cea98[_0x31bc1b(0x248)])return _0x411439=!![],{'done':!![],'value':undefined};return _0x12b2e9=_0x5cea98[_0x31bc1b(0x6f0)],_0x220570++,_0x5cea98;},'return'(){_0x411439=!![];try{_0x2dbcb8?.['return']?.();}catch{}return{'done':!![],'value':undefined};},[Symbol[_0x5f9fcf(0x6b7)]](){return this;}};});}return okdbGuardedRange={'guardSnapshotIterable':_0x389c64,'OKDBGuardedRange':_0x49d830,'recordGuardTrip':_0xb9a51f,'getGuardTripStats':_0xc310cf},okdbGuardedRange;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0x36dcdd=_0x431d06;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x6f7828,performance:_0x30ddb2}=require$$0$1,_0x380916=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG===_0x36dcdd(0x4de),_0x25b2e6=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x5b8e01=process.env.OKDB_LOOP_LAG_ALL==='1',_0x23a0c9=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0x2240a0{constructor(){const _0x5b6fc2=_0x36dcdd;this[_0x5b6fc2(0x671)]=_0x380916,this[_0x5b6fc2(0x12a)]=new Map(),this['_h']=null,this[_0x5b6fc2(0x167)]=null,this[_0x5b6fc2(0x2a2)]=![],this[_0x5b6fc2(0x6d7)]=(_0x452b95,_0x18dae7)=>process[_0x5b6fc2(0x53c)][_0x5b6fc2(0x75a)](_0x452b95+(_0x18dae7?'\x20'+JSON['stringify'](_0x18dae7):'')+'\x0a');}[_0x36dcdd(0x772)](){return _0x30ddb2['now']();}[_0x36dcdd(0x33e)](_0x3ed177){const _0x4aa866=_0x36dcdd;if(typeof _0x3ed177===_0x4aa866(0x7c4))this['_log']=_0x3ed177;}[_0x36dcdd(0x5ee)](_0x8f7ce5,_0x39cbdd,_0x15531a){const _0x5d2609=_0x36dcdd;if(!this[_0x5d2609(0x671)])return;let _0x42d8b5=this[_0x5d2609(0x12a)][_0x5d2609(0x1bc)](_0x8f7ce5);!_0x42d8b5&&(_0x42d8b5={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this[_0x5d2609(0x12a)][_0x5d2609(0x48c)](_0x8f7ce5,_0x42d8b5)),_0x42d8b5['ms']+=_0x39cbdd,_0x42d8b5[_0x5d2609(0x70b)]+=0x1,_0x39cbdd>_0x42d8b5['maxMs']&&(_0x42d8b5['maxMs']=_0x39cbdd,_0x42d8b5[_0x5d2609(0x7d3)]=_0x15531a||'');}[_0x36dcdd(0x432)](_0x4a70ff){const _0x732fc4=_0x36dcdd;if(!this[_0x732fc4(0x671)]||this[_0x732fc4(0x2a2)])return;this[_0x732fc4(0x2a2)]=!![];if(_0x4a70ff)this[_0x732fc4(0x6d7)]=_0x4a70ff;this['_h']=_0x6f7828({'resolution':0xa}),this['_h'][_0x732fc4(0x493)](),this[_0x732fc4(0x167)]=setInterval(()=>this[_0x732fc4(0x37e)](),_0x25b2e6);if(this[_0x732fc4(0x167)]['unref'])this[_0x732fc4(0x167)][_0x732fc4(0x490)]();}[_0x36dcdd(0xcb)](_0x44525e){const _0x4c051c=_0x36dcdd;if(!this['_windowCbs'])this['_windowCbs']=new Set();this[_0x4c051c(0x502)][_0x4c051c(0x3a8)](_0x44525e);if(!this[_0x4c051c(0x2a2)])this[_0x4c051c(0x753)]();}[_0x36dcdd(0x289)](_0x5207f1){const _0x12ca3f=_0x36dcdd;this[_0x12ca3f(0x502)]?.[_0x12ca3f(0x7ec)](_0x5207f1);}[_0x36dcdd(0x753)](){const _0x435068=_0x36dcdd;if(this[_0x435068(0x449)])return;this[_0x435068(0x449)]=!![];!this['_h']&&(this['_h']=_0x6f7828({'resolution':0xa}),this['_h'][_0x435068(0x493)]());const _0x495889=_0x25b2e6;this[_0x435068(0x47d)]=setInterval(()=>{const _0x26431e=_0x435068,_0x2809bf=this['_h'];if(!_0x2809bf)return;const _0x457342=_0x2809bf[_0x26431e(0x6d6)](0x63)/0xf4240,_0x4a5ef1=_0x2809bf['max']/0xf4240,_0x4e176a=_0x2809bf['mean']/0xf4240;_0x2809bf['reset']();if(this[_0x26431e(0x502)])for(const _0xdd95b2 of this[_0x26431e(0x502)]){try{_0xdd95b2({'p99Ms':_0x457342,'maxMs':_0x4a5ef1,'meanMs':_0x4e176a,'reportMs':_0x495889});}catch{}}},_0x495889);if(this['_admissionTimer'][_0x435068(0x490)])this['_admissionTimer'][_0x435068(0x490)]();}['_report'](){const _0x24823e=_0x36dcdd,_0x247374=this['_h'],_0x304c6a=_0x247374[_0x24823e(0x380)]/0xf4240,_0x208e0a=_0x247374[_0x24823e(0x6d6)](0x63)/0xf4240,_0x17144f=_0x247374[_0x24823e(0x3bd)]/0xf4240;_0x247374[_0x24823e(0x60f)]();const _0x3b9856=[...this[_0x24823e(0x12a)][_0x24823e(0x2d3)]()][_0x24823e(0x1d9)](([_0x359d44,_0x3045f4])=>({'label':_0x359d44,..._0x3045f4}))[_0x24823e(0x317)]((_0x4438d3,_0x47f6a6)=>_0x47f6a6['ms']-_0x4438d3['ms'])[_0x24823e(0x331)](0x0,0x8);this[_0x24823e(0x12a)][_0x24823e(0x544)]();const _0x26e943=_0x3b9856['reduce']((_0x40f089,_0x2a7506)=>_0x40f089+_0x2a7506['ms'],0x0),_0x2c51fd=_0x3b9856['map'](_0x37c472=>_0x37c472[_0x24823e(0x52f)]+'='+_0x37c472['ms']['toFixed'](0x0)+_0x24823e(0x78a)+_0x37c472[_0x24823e(0x70b)]+(_0x37c472[_0x24823e(0x312)]>0x5?_0x24823e(0x7d8)+_0x37c472['maxMs']['toFixed'](0x0)+'ms'+(_0x37c472['maxExtra']?'\x20'+_0x37c472[_0x24823e(0x7d3)]:'')+')':''));(_0x5b8e01||_0x304c6a>=_0x23a0c9)&&this[_0x24823e(0x6d7)](_0x24823e(0x382)+_0x25b2e6+_0x24823e(0x257)+_0x304c6a['toFixed'](0x0)+_0x24823e(0x517)+_0x208e0a[_0x24823e(0x108)](0x0)+_0x24823e(0x5ea)+_0x17144f['toFixed'](0x0)+'ms\x20busy='+_0x26e943['toFixed'](0x0)+'ms'+(_0x2c51fd[_0x24823e(0x2a9)]?_0x24823e(0x298)+_0x2c51fd[_0x24823e(0x7d6)]('\x20\x20'):''),{'feature':_0x24823e(0x715)});if(this[_0x24823e(0x502)])for(const _0x2ea85c of this[_0x24823e(0x502)]){try{_0x2ea85c({'p99Ms':_0x208e0a,'maxMs':_0x304c6a,'meanMs':_0x17144f,'reportMs':_0x25b2e6});}catch{}}}[_0x36dcdd(0x4ff)](){const _0xb59f2c=_0x36dcdd;if(this[_0xb59f2c(0x167)])clearInterval(this[_0xb59f2c(0x167)]);if(this['_h'])this['_h']['disable']();this[_0xb59f2c(0x167)]=null,this['_h']=null,this[_0xb59f2c(0x2a2)]=![];}}const _0x23ffb1=new _0x2240a0();if(_0x23ffb1[_0x36dcdd(0x671)])_0x23ffb1['start']();return okdbLoopMonitor={'LOOP':_0x23ffb1},okdbLoopMonitor;}var okdbTransaction,hasRequiredOkdbTransaction;function requireOkdbTransaction(){const _0x983eea=_0x431d06;if(hasRequiredOkdbTransaction)return okdbTransaction;hasRequiredOkdbTransaction=0x1;const _0xd33b75={'v4':()=>require$$0$2[_0x983eea(0x33b)]()},{EVENTS:_0x14a8cf}=requireOkdbEnums(),{OKDBError:_0x2a8bd8}=requireOkdbError(),{recordGuardTrip:_0xb404e9,guardSnapshotIterable:_0x4521ef}=requireOkdbGuardedRange(),{LOOP:_0x491817}=requireOkdbLoopMonitor();function _0x22b6b4(_0x30fbf8){const _0x2586aa=_0x983eea;return _0x30fbf8[_0x2586aa(0x1d9)](_0x1c09ac=>{const _0x576d41=_0x2586aa,[_0x285ff3,_0x10fa15]=_0x1c09ac['args']||[];return{'action':_0x1c09ac[_0x576d41(0x1c6)],'type':_0x285ff3,'key':_0x10fa15};});}class _0x4a65b7{['okdb'];[_0x983eea(0x7a4)]=[];[_0x983eea(0x48a)]=[];[_0x983eea(0x4da)]=[];constructor(_0x2a5526,_0x67212c={'useReadTransaction':![]}){const _0x31fe99=_0x983eea;this[_0x31fe99(0x6ff)]=_0x2a5526,this[_0x31fe99(0x2f0)]=_0x67212c,this['id']=_0xd33b75['v4']();if(this['options'][_0x31fe99(0x4bd)])try{this['_txnIdAtSnapshot']=this[_0x31fe99(0x6ff)]['db']['getStats']()[_0x31fe99(0x79b)];}catch{this[_0x31fe99(0x2bc)]=undefined;}this[_0x31fe99(0x224)]=this[_0x31fe99(0x2f0)]['useReadTransaction']?this[_0x31fe99(0x6ff)]['db'][_0x31fe99(0x4bd)]():null,this['_closed']=![],this[_0x31fe99(0x53e)]=![],this[_0x31fe99(0x224)]&&queueMicrotask(()=>{const _0x5776ef=_0x31fe99;this[_0x5776ef(0x224)]&&(this[_0x5776ef(0x1a3)](),this[_0x5776ef(0x53e)]=!![]);});}[_0x983eea(0x269)](_0x3ca3d4){const _0x39c91f=_0x983eea;this[_0x39c91f(0x48a)][_0x39c91f(0x540)](_0x3ca3d4);}['onUndo'](_0x1a8d76){const _0x4f2693=_0x983eea;this[_0x4f2693(0x4da)]['push'](_0x1a8d76);}[_0x983eea(0x1a3)](){const _0x858a8c=_0x983eea;if(!this[_0x858a8c(0x224)])return;try{this[_0x858a8c(0x224)][_0x858a8c(0x248)]();}catch(_0x5d0122){}this[_0x858a8c(0x224)]=null;}[_0x983eea(0x187)](){const _0x172093=_0x983eea;if(this[_0x172093(0x784)])throw new _0x2a8bd8('Transaction\x20already\x20closed',_0x172093(0x275));if(this[_0x172093(0x53e)]){let _0xa8ea0a=![];if(this['options'][_0x172093(0x4bd)]==='tolerant'&&this['_txnIdAtSnapshot']!==undefined)try{_0xa8ea0a=this['okdb']['db'][_0x172093(0x5a3)]()[_0x172093(0x79b)]===this[_0x172093(0x2bc)];}catch{}if(!_0xa8ea0a){_0xb404e9((this[_0x172093(0x6ff)]?.['name']??'?')+_0x172093(0x2c2));throw new _0x2a8bd8(_0x172093(0x2af)+'boundary\x20(a\x20pinned\x20read\x20txn\x20blocks\x20LMDB\x20free-page\x20reuse).\x20Do\x20all\x20consistent\x20reads\x20'+_0x172093(0x6b4)+_0x172093(0x455),_0x172093(0x698));}}}[_0x983eea(0x1bc)](_0x437c99,_0x448122){const _0x9c7345=_0x983eea;return this['_assertOpen'](),this[_0x9c7345(0x6ff)][_0x9c7345(0x1bc)](_0x437c99,_0x448122,{'transaction':this[_0x9c7345(0x224)]});}[_0x983eea(0x153)](_0x5083a4,_0xaaa431){const _0x2d701e=_0x983eea;return this[_0x2d701e(0x187)](),this['okdb'][_0x2d701e(0x153)](_0x5083a4,_0xaaa431,{'transaction':this[_0x2d701e(0x224)]});}[_0x983eea(0x63b)](_0x2f8bd2,_0x12c200){const _0x3410a6=_0x983eea;return this[_0x3410a6(0x187)](),this[_0x3410a6(0x6ff)][_0x3410a6(0x63b)](_0x2f8bd2,_0x12c200,{'transaction':this[_0x3410a6(0x224)]});}[_0x983eea(0x306)](_0x4edf52){const _0x51c1e4=_0x983eea;if(!this[_0x51c1e4(0x2f0)]['useReadTransaction'])return _0x4edf52;if(_0x4edf52&&typeof _0x4edf52['then']==='function')return _0x4edf52;if(Array[_0x51c1e4(0x17d)](_0x4edf52))return _0x4edf52;const _0x1f02cb=this,_0x2692d0=_0x1f02cb[_0x51c1e4(0x2f0)]['useReadTransaction']===_0x51c1e4(0x25e),_0x7c3b38=()=>{const _0x244412=_0x51c1e4;if(!_0x1f02cb[_0x244412(0x53e)])return![];if(!_0x2692d0)return!![];if(_0x1f02cb[_0x244412(0x2bc)]===undefined)return!![];try{return _0x1f02cb[_0x244412(0x6ff)]['db'][_0x244412(0x5a3)]()[_0x244412(0x79b)]!==_0x1f02cb[_0x244412(0x2bc)];}catch{return!![];}};return _0x4521ef(()=>{const _0x3fe7f9=_0x51c1e4;if(_0x1f02cb['_closed'])throw new _0x2a8bd8(_0x3fe7f9(0x2b5),_0x3fe7f9(0x275));if(_0x7c3b38()){_0xb404e9((_0x1f02cb[_0x3fe7f9(0x6ff)]?.[_0x3fe7f9(0x5e6)]??'?')+_0x3fe7f9(0x1ee));throw new _0x2a8bd8('useReadTransaction\x20range\x20consumed\x20after\x20the\x20creation\x20turn\x20—\x20the\x20consistent\x20view\x20was\x20'+_0x3fe7f9(0x139)+_0x3fe7f9(0x518),_0x3fe7f9(0x698));}return _0x4edf52;},{'label':(_0x1f02cb[_0x51c1e4(0x6ff)]?.[_0x51c1e4(0x5e6)]??'?')+_0x51c1e4(0x1ee),..._0x2692d0?{'baseline':_0x1f02cb['_txnIdAtSnapshot'],'getTxnId':()=>_0x1f02cb[_0x51c1e4(0x6ff)]['db'][_0x51c1e4(0x5a3)]()[_0x51c1e4(0x79b)],'resume':(_0x144331,_0x2eb409)=>_0x4edf52[_0x51c1e4(0x331)](_0x2eb409)}:{}});}[_0x983eea(0x1bd)](_0x54fa8f,_0x3692de={}){const _0x5f0523=_0x983eea;return this[_0x5f0523(0x187)](),this[_0x5f0523(0x306)](this[_0x5f0523(0x6ff)]['getRange'](_0x54fa8f,{'transaction':this[_0x5f0523(0x224)],..._0x3692de}));}[_0x983eea(0x4dd)](_0x2fdfd3,_0x1fbd9a={}){const _0x430167=_0x983eea;return this[_0x430167(0x187)](),this['_range'](this[_0x430167(0x6ff)][_0x430167(0x4dd)](_0x2fdfd3,{'transaction':this[_0x430167(0x224)],..._0x1fbd9a}));}['getKeys'](_0x678bea,_0x5b5b1c={}){const _0x27c5c4=_0x983eea;return this[_0x27c5c4(0x187)](),this[_0x27c5c4(0x306)](this[_0x27c5c4(0x6ff)][_0x27c5c4(0x677)](_0x678bea,{'transaction':this[_0x27c5c4(0x224)],..._0x5b5b1c}));}[_0x983eea(0x372)](_0x5af962,_0x58f688,_0x4adedf={}){const _0x1fc613=_0x983eea;return this[_0x1fc613(0x187)](),this[_0x1fc613(0x306)](this[_0x1fc613(0x6ff)]['byIndex'](_0x5af962,_0x58f688,{'transaction':this[_0x1fc613(0x224)],..._0x4adedf}));}['query'](_0x419e81,_0x29ef16,_0x15dff3={}){const _0x14dbb1=_0x983eea;return this[_0x14dbb1(0x187)](),this[_0x14dbb1(0x306)](this[_0x14dbb1(0x6ff)][_0x14dbb1(0x787)](_0x419e81,_0x29ef16,{'transaction':this[_0x14dbb1(0x224)],..._0x15dff3}));}[_0x983eea(0x41d)](_0x6be7c0=null){const _0x11552f=_0x983eea;return this[_0x11552f(0x187)](),this['okdb'][_0x11552f(0x41d)](_0x6be7c0,{'transaction':this[_0x11552f(0x224)]});}[_0x983eea(0x156)](_0x374406){const _0x176c0f=_0x983eea;return this[_0x176c0f(0x187)](),this[_0x176c0f(0x6ff)]['getCount'](_0x374406,{'transaction':this[_0x176c0f(0x224)]});}[_0x983eea(0x59b)](_0x4aa3ea,_0x553970,_0x57300d,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0x983eea(0x772)](),origin:origin=null,ttl:ttl=null}={}){const _0x47f744=_0x983eea;this[_0x47f744(0x7a4)][_0x47f744(0x540)]({'action':_0x47f744(0x59b),'args':[_0x4aa3ea,_0x553970,_0x57300d,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x983eea(0x2bd)](_0x140e27,_0x4294a5,_0x155af3,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0x983eea(0x772)](),origin:origin=null,ttl:ttl=null}={}){const _0x5e785a=_0x983eea;this[_0x5e785a(0x7a4)][_0x5e785a(0x540)]({'action':_0x5e785a(0x2bd),'args':[_0x140e27,_0x4294a5,_0x155af3,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x983eea(0x3fb)](_0x527cc0,_0x53d930,_0x499b21,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0x983eea(0x772)](),origin:origin=null,ttl:ttl=null}={}){const _0x210b0b=_0x983eea;this[_0x210b0b(0x7a4)]['push']({'action':_0x210b0b(0x3fb),'args':[_0x527cc0,_0x53d930,_0x499b21,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x983eea(0x748)](_0x2f8600,_0x1986d8,_0x17bd15,{version:version=null,timestamp:timestamp=Date['now'](),origin:origin=null,ttl:ttl=null}={}){const _0xa33aef=_0x983eea;this['actions'][_0xa33aef(0x540)]({'action':_0xa33aef(0x748),'args':[_0x2f8600,_0x1986d8,_0x17bd15,{'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x983eea(0x4d2)](_0x1910d9,_0x310696,{ifVersion:ifVersion=null,timestamp:timestamp=Date['now'](),origin:origin=null}={}){const _0x5c6075=_0x983eea;this['actions'][_0x5c6075(0x540)]({'action':_0x5c6075(0x4d2),'args':[_0x1910d9,_0x310696,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin}]});}[_0x983eea(0x5cf)](_0x1966bd,_0x5e495a,_0x13eed4){const _0x524377=_0x983eea;this['actions'][_0x524377(0x540)]({'action':'setTTL','args':[_0x1966bd,_0x5e495a,_0x13eed4]});}[_0x983eea(0x272)](_0x2c7f4f,_0x57f71c){const _0x7b9d52=_0x983eea;this[_0x7b9d52(0x7a4)]['push']({'action':_0x7b9d52(0x272),'args':[_0x2c7f4f,_0x57f71c]});}[_0x983eea(0x604)](){const _0x11372c=_0x983eea;if(this[_0x11372c(0x784)])return;for(const _0x4dd39c of this['_undoHooks']){try{_0x4dd39c();}catch{}}this[_0x11372c(0x6ff)]['events'][_0x11372c(0x36e)](_0x14a8cf[_0x11372c(0x54c)],{'id':this['id']}),this['actions']=[],this[_0x11372c(0x1a3)](),this[_0x11372c(0x784)]=!![];}async[_0x983eea(0x7dd)](){const _0x8a6867=_0x983eea;if(this[_0x8a6867(0x784)])throw new Error('Transaction\x20already\x20closed');const _0x1f748d={'id':this['id'],'timestamp':Date['now'](),'actions':this[_0x8a6867(0x7a4)]};this[_0x8a6867(0x6ff)][_0x8a6867(0x6bf)]['emit'](_0x14a8cf['TXN_START'],_0x1f748d);try{const _0x1363ec=_0x491817[_0x8a6867(0x671)]?_0x491817['now']():0x0;await this['okdb'][_0x8a6867(0x62f)][_0x8a6867(0x241)](()=>{const _0x1f2536=_0x8a6867;for(const _0x34bdf7 of this[_0x1f2536(0x7a4)]){const _0x4f3b48=this[_0x1f2536(0x6ff)]['_'+_0x34bdf7[_0x1f2536(0x1c6)]];if(typeof _0x4f3b48!==_0x1f2536(0x7c4))throw new Error(_0x1f2536(0x1e8)+_0x34bdf7[_0x1f2536(0x1c6)]);_0x4f3b48[_0x1f2536(0x7cd)](this[_0x1f2536(0x6ff)],this,..._0x34bdf7[_0x1f2536(0x211)]);}}),_0x491817[_0x8a6867(0x671)]&&_0x491817[_0x8a6867(0x5ee)]('txn-commit',_0x491817['now']()-_0x1363ec,(this['okdb'][_0x8a6867(0x5e6)]??'?')+'\x20actions='+this['actions']['length']);}catch(_0x5a0ff1){for(const _0xf52715 of this[_0x8a6867(0x4da)]){try{_0xf52715();}catch{}}this[_0x8a6867(0x1a3)](),this[_0x8a6867(0x784)]=!![];if(_0x5a0ff1 instanceof _0x2a8bd8)throw _0x5a0ff1;const _0x1a7651={'cause':_0x5a0ff1,'env':this['okdb']?.[_0x8a6867(0x5e6)],'envPath':this['okdb']?.['path'],'pid':process[_0x8a6867(0x541)],'txnId':this['id'],'actionCount':this[_0x8a6867(0x7a4)]['length'],'actions':_0x22b6b4(this[_0x8a6867(0x7a4)]),'nativeCode':_0x5a0ff1?.['code'],'nativeName':_0x5a0ff1?.[_0x8a6867(0x5e6)]};try{this[_0x8a6867(0x6ff)]?.[_0x8a6867(0x745)]?.[_0x8a6867(0x4ad)]?.(_0x8a6867(0x5c3),{'env':_0x1a7651[_0x8a6867(0x3c4)],'envPath':_0x1a7651[_0x8a6867(0xdc)],'pid':_0x1a7651[_0x8a6867(0x541)],'txnId':_0x1a7651[_0x8a6867(0x398)],'actionCount':_0x1a7651[_0x8a6867(0x2b3)],'actions':_0x1a7651[_0x8a6867(0x7a4)],'nativeCode':_0x1a7651['nativeCode'],'error':_0x5a0ff1?.['message'],'stack':_0x5a0ff1?.[_0x8a6867(0x575)]});}catch{}throw new _0x2a8bd8(_0x5a0ff1?.['message']||_0x8a6867(0x7e6),_0x8a6867(0xc4),_0x1a7651);}this[_0x8a6867(0x6ff)][_0x8a6867(0x6bf)]['emit'](_0x14a8cf['TXN_END'],_0x1f748d);for(const _0x3ea7f1 of this['_doHooks']){try{await _0x3ea7f1();}catch{}}this[_0x8a6867(0x7a4)]=[],this[_0x8a6867(0x1a3)](),this['_closed']=!![];}static[_0x983eea(0x4f0)](_0x57a13a){const _0x17e86a=_0x983eea;return Object[_0x17e86a(0x4f8)]({'id':_0x57a13a['id'],'put':_0x57a13a[_0x17e86a(0x59b)][_0x17e86a(0x7d2)](_0x57a13a),'update':_0x57a13a[_0x17e86a(0x2bd)][_0x17e86a(0x7d2)](_0x57a13a),'patch':_0x57a13a[_0x17e86a(0x3fb)][_0x17e86a(0x7d2)](_0x57a13a),'create':_0x57a13a[_0x17e86a(0x748)][_0x17e86a(0x7d2)](_0x57a13a),'remove':_0x57a13a[_0x17e86a(0x4d2)][_0x17e86a(0x7d2)](_0x57a13a),'setTTL':_0x57a13a['setTTL'][_0x17e86a(0x7d2)](_0x57a13a),'clearTTL':_0x57a13a[_0x17e86a(0x272)][_0x17e86a(0x7d2)](_0x57a13a),'commit':_0x57a13a['commit'][_0x17e86a(0x7d2)](_0x57a13a),'rollback':_0x57a13a[_0x17e86a(0x604)][_0x17e86a(0x7d2)](_0x57a13a),'get':_0x57a13a[_0x17e86a(0x1bc)][_0x17e86a(0x7d2)](_0x57a13a),'getEntry':_0x57a13a[_0x17e86a(0x153)][_0x17e86a(0x7d2)](_0x57a13a),'getMany':_0x57a13a['getMany'][_0x17e86a(0x7d2)](_0x57a13a),'getRange':_0x57a13a[_0x17e86a(0x1bd)][_0x17e86a(0x7d2)](_0x57a13a),'getValues':_0x57a13a[_0x17e86a(0x4dd)][_0x17e86a(0x7d2)](_0x57a13a),'getKeys':_0x57a13a[_0x17e86a(0x677)][_0x17e86a(0x7d2)](_0x57a13a),'byIndex':_0x57a13a[_0x17e86a(0x372)][_0x17e86a(0x7d2)](_0x57a13a),'query':_0x57a13a[_0x17e86a(0x787)][_0x17e86a(0x7d2)](_0x57a13a),'getClock':_0x57a13a[_0x17e86a(0x41d)][_0x17e86a(0x7d2)](_0x57a13a),'getCount':_0x57a13a[_0x17e86a(0x156)][_0x17e86a(0x7d2)](_0x57a13a),'read':_0x57a13a,'raw':_0x57a13a});}static[_0x983eea(0x236)](_0x1ebae7,_0x1d3d4a=[]){const _0x561260=_0x983eea;if(!Array[_0x561260(0x17d)](_0x1d3d4a))throw new _0x2a8bd8('txn\x20ops\x20must\x20be\x20an\x20array',_0x561260(0x44f));for(const _0x3f3301 of _0x1d3d4a){if(Array[_0x561260(0x17d)](_0x3f3301)){const [_0x1c855a,..._0x5e5edd]=_0x3f3301;if(typeof _0x1ebae7[_0x1c855a]!==_0x561260(0x7c4))throw new _0x2a8bd8(_0x561260(0x1e8)+_0x1c855a,_0x561260(0x3be),{'action':_0x1c855a});_0x1ebae7[_0x1c855a](..._0x5e5edd);continue;}if(!_0x3f3301||typeof _0x3f3301!==_0x561260(0x4ed))throw new _0x2a8bd8('txn\x20op\x20must\x20be\x20an\x20object\x20or\x20tuple',_0x561260(0x16d));const {action:_0x279309}=_0x3f3301;if(typeof _0x279309!==_0x561260(0x229)||typeof _0x1ebae7[_0x279309]!==_0x561260(0x7c4))throw new _0x2a8bd8(_0x561260(0x1e8)+_0x279309,_0x561260(0x3be),{'action':_0x279309});switch(_0x279309){case _0x561260(0x59b):case _0x561260(0x2bd):case'create':_0x1ebae7[_0x279309](_0x3f3301[_0x561260(0x690)],_0x3f3301['key'],_0x3f3301[_0x561260(0x6f0)],{..._0x3f3301[_0x561260(0x2f0)],'ttl':_0x3f3301[_0x561260(0x12e)]??_0x3f3301['options']?.[_0x561260(0x12e)]??null});break;case _0x561260(0x3fb):_0x1ebae7['patch'](_0x3f3301[_0x561260(0x690)],_0x3f3301['key'],_0x3f3301[_0x561260(0x3fb)],{..._0x3f3301[_0x561260(0x2f0)],'ttl':_0x3f3301[_0x561260(0x12e)]??_0x3f3301[_0x561260(0x2f0)]?.['ttl']??null});break;case _0x561260(0x4d2):_0x1ebae7['remove'](_0x3f3301[_0x561260(0x690)],_0x3f3301[_0x561260(0x590)],_0x3f3301[_0x561260(0x2f0)]||{});break;case _0x561260(0x5cf):_0x1ebae7['setTTL'](_0x3f3301[_0x561260(0x690)],_0x3f3301[_0x561260(0x590)],_0x3f3301[_0x561260(0x12e)]);break;case'clearTTL':_0x1ebae7['clearTTL'](_0x3f3301[_0x561260(0x690)],_0x3f3301['key']);break;default:throw new _0x2a8bd8(_0x561260(0xd2)+_0x279309,_0x561260(0x3be),{'action':_0x279309});}}}static async[_0x983eea(0x349)](_0x20dced,_0x3fbf4e,_0x3d3341={}){const _0x38c709=_0x983eea,_0x480ce7=new _0x4a65b7(_0x20dced,_0x3d3341),_0x4d10ea=_0x4a65b7['createWriteFacade'](_0x480ce7);try{typeof _0x3fbf4e===_0x38c709(0x7c4)?await _0x3fbf4e(_0x4d10ea):_0x4a65b7['applyOps'](_0x480ce7,_0x3fbf4e||[]);const _0x1b81f4=_0x480ce7[_0x38c709(0x7a4)]['length'];return await _0x480ce7[_0x38c709(0x7dd)](),{'id':_0x480ce7['id'],'actions':_0x1b81f4};}catch(_0x228d84){try{_0x480ce7[_0x38c709(0x604)]();}catch(_0x5e3aaf){}throw _0x228d84;}}}return okdbTransaction=_0x4a65b7,okdbTransaction;}var dist={},hasRequiredDist;function requireDist(){const _0x50ac69=_0x431d06;if(hasRequiredDist)return dist;hasRequiredDist=0x1,Object[_0x50ac69(0x332)](dist,'__esModule',{'value':!![]});const _0x3d8a1c=new Float64Array(0x2),_0xc51170=new Int32Array(_0x3d8a1c['buffer'],0x0,0x4),{lowIdx:_0x12c752,highIdx:_0x55d7f4}=((()=>{const _0x571487=_0x50ac69;if(new Uint8Array(new Uint32Array([0xffee1100])[_0x571487(0x3a4)])[0x0]===0xff)return{'lowIdx':0x1,'highIdx':0x0};return{'lowIdx':0x0,'highIdx':0x1};})());let _0x5ce9c9=![],_0x11025e;try{_0x11025e=new TextEncoder();}catch(_0xae24fe){}function _0xa005b0(_0xb379b0,_0x1f2fcb,position,_0x467cb0){const _0xb1a677=_0x50ac69;let _0x4cc050=_0x1f2fcb['dataView'];if(!_0x4cc050)_0x4cc050=_0x1f2fcb[_0xb1a677(0x4ae)]=new DataView(_0x1f2fcb['buffer'],_0x1f2fcb[_0xb1a677(0x431)],_0x1f2fcb['byteLength']+0x3>>0x2<<0x2);switch(typeof _0xb379b0){case _0xb1a677(0x229):let _0x19ee99=_0xb379b0[_0xb1a677(0x2a9)],_0x4a7938=_0xb379b0['charCodeAt'](0x0);if(!(_0x4a7938>=0x1c))_0x1f2fcb[position++]=0x1b;if(_0x19ee99<0x40){let _0x2d5ed1,_0x1724bf;for(_0x2d5ed1=0x0;_0x2d5ed1<_0x19ee99;_0x2d5ed1++){_0x4a7938=_0xb379b0[_0xb1a677(0x1c1)](_0x2d5ed1);if(_0x4a7938<=0x4)_0x1f2fcb[position++]=0x4,_0x1f2fcb[position++]=_0x4a7938;else{if(_0x4a7938<0x80)_0x1f2fcb[position++]=_0x4a7938;else{if(_0x4a7938<0x800)_0x1f2fcb[position++]=_0x4a7938>>0x6|0xc0,_0x1f2fcb[position++]=_0x4a7938&0x3f|0x80;else(_0x4a7938&0xfc00)===0xd800&&((_0x1724bf=_0xb379b0['charCodeAt'](_0x2d5ed1+0x1))&0xfc00)===0xdc00?(_0x4a7938=0x10000+((_0x4a7938&0x3ff)<<0xa)+(_0x1724bf&0x3ff),_0x2d5ed1++,_0x1f2fcb[position++]=_0x4a7938>>0x12|0xf0,_0x1f2fcb[position++]=_0x4a7938>>0xc&0x3f|0x80,_0x1f2fcb[position++]=_0x4a7938>>0x6&0x3f|0x80,_0x1f2fcb[position++]=_0x4a7938&0x3f|0x80):(_0x1f2fcb[position++]=_0x4a7938>>0xc|0xe0,_0x1f2fcb[position++]=_0x4a7938>>0x6&0x3f|0x80,_0x1f2fcb[position++]=_0x4a7938&0x3f|0x80);}}}}else{if(_0x1f2fcb['utf8Write'])position+=_0x1f2fcb[_0xb1a677(0x21d)](_0xb379b0,position,_0x1f2fcb['byteLength']-position);else position+=_0x11025e[_0xb1a677(0x5c6)](_0xb379b0,_0x1f2fcb[_0xb1a677(0x406)](position))[_0xb1a677(0x633)];if(position>_0x1f2fcb[_0xb1a677(0x2a9)]-0x4)throw new RangeError(_0xb1a677(0x62d));}break;case _0xb1a677(0x1ce):_0x3d8a1c[0x0]=_0xb379b0;let _0x2c9d62=_0xc51170[_0x12c752],_0x5b3c8e=_0xc51170[_0x55d7f4],_0x5665fe;if(_0xb379b0<0x0)return _0x4cc050['setInt32'](position+0x4,~(_0x2c9d62>>>0x4|_0x5b3c8e<<0x1c)),_0x4cc050[_0xb1a677(0x30e)](position+0x0,(_0x5b3c8e^0x7fffffff)>>>0x4),_0x4cc050[_0xb1a677(0x30e)](position+0x8,(_0x2c9d62&0xf^0xf)<<0x4,!![]),position+0x9;else{if(_0x2c9d62&0xf||_0x467cb0)_0x5665fe=0x9;else{if(_0x2c9d62&0xfffff)_0x5665fe=0x8;else{if(_0x2c9d62||_0x5b3c8e&0xf)_0x5665fe=0x6;else _0x5665fe=0x4;}}}_0x4cc050[_0xb1a677(0x30e)](position+0x0,_0x5b3c8e>>>0x4|0x10000000),_0x4cc050[_0xb1a677(0x30e)](position+0x4,_0x2c9d62>>>0x4|_0x5b3c8e<<0x1c),_0x4cc050[_0xb1a677(0x30e)](position+0x8,(_0x2c9d62&0xf)<<0x4,!![]);return position+_0x5665fe;case _0xb1a677(0x4ed):if(_0xb379b0){if(Array[_0xb1a677(0x17d)](_0xb379b0)){for(let _0x229a80=0x0,_0x97efee=_0xb379b0['length'];_0x229a80<_0x97efee;_0x229a80++){if(_0x229a80>0x0)_0x1f2fcb[position++]=0x0;position=_0xa005b0(_0xb379b0[_0x229a80],_0x1f2fcb,position,!![]);}break;}else{if(_0xb379b0 instanceof Uint8Array){_0x1f2fcb[_0xb1a677(0x48c)](_0xb379b0,position),position+=_0xb379b0[_0xb1a677(0x2a9)];break;}else throw new Error(_0xb1a677(0x59c)+JSON[_0xb1a677(0x64b)](_0xb379b0));}}else _0x1f2fcb[position++]=0x0;break;case _0xb1a677(0x43d):_0x4cc050['setUint32'](position++,_0xb379b0?0x7:0x6,!![]);return position;case _0xb1a677(0x768):let _0x5ab085=Number(_0xb379b0);if(BigInt(_0x5ab085)>_0xb379b0){_0x3d8a1c[0x0]=_0x5ab085;if(_0x5ab085>0x0){if(_0xc51170[_0x12c752])_0xc51170[_0x12c752]--;else _0xc51170[_0x55d7f4]--,_0xc51170[_0x12c752]=0xffffffff;}else{if(_0xc51170[_0x12c752]<0xffffffff)_0xc51170[_0x12c752]++;else _0xc51170[_0x55d7f4]++,_0xc51170[_0x12c752]=0x0;}_0x5ab085=_0x3d8a1c[0x0];}let _0x2e9df4=_0xb379b0-BigInt(_0x5ab085);if(_0x2e9df4===0x0n)return _0xa005b0(_0x5ab085,_0x1f2fcb,position,_0x467cb0);_0xa005b0(_0x5ab085,_0x1f2fcb,position,_0x467cb0),position+=0x9;let _0x5e87d3=BigInt((_0xc51170[_0x55d7f4]>>0x14&0x7ff)-0x437),_0x572bf6=_0x2e9df4>>_0x5e87d3;_0x1f2fcb[position-0x1]|=Number(_0x572bf6),_0x2e9df4-=_0x572bf6<<_0x5e87d3;let _0x211992=!![];while(_0x2e9df4||_0x211992){_0x211992=![],_0x5e87d3-=0x7n;let _0x400856=_0x2e9df4>>_0x5e87d3;_0x1f2fcb[position++]=Number(_0x400856)|0x80,_0x2e9df4-=_0x400856<<_0x5e87d3;}return position;case _0xb1a677(0x12f):return position;case'symbol':_0x1f2fcb[position++]=0x2;return _0xa005b0(_0xb379b0[_0xb1a677(0x794)],_0x1f2fcb,position,_0x467cb0);default:throw new Error('Can\x20not\x20serialize\x20key\x20of\x20type\x20'+typeof _0xb379b0);}if(_0x5ce9c9&&!_0x467cb0)_0x4cc050[_0xb1a677(0x4a1)](position,0x0);return position;}let position;function _0x259909(_0x39cd71,_0x6269d6,_0x492ddb,_0x37852a){const _0x2988a0=_0x50ac69;position=_0x6269d6;let _0x4b6409=_0x39cd71[position],_0x55766c;if(_0x4b6409<0x18){if(_0x4b6409<0x8){position++;if(_0x4b6409==0x6)_0x55766c=![];else{if(_0x4b6409==0x7)_0x55766c=!![];else{if(_0x4b6409==0x0)_0x55766c=null;else{if(_0x4b6409==0x2)_0x55766c=Symbol['for'](_0x7032e6(_0x39cd71,_0x492ddb));else return Uint8Array[_0x2988a0(0x34d)][_0x2988a0(0x331)][_0x2988a0(0x7cd)](_0x39cd71,_0x6269d6,_0x492ddb);}}}}else{let _0x392fcc;try{_0x392fcc=_0x39cd71[_0x2988a0(0x4ae)]||(_0x39cd71[_0x2988a0(0x4ae)]=new DataView(_0x39cd71['buffer'],_0x39cd71['byteOffset'],_0x39cd71['byteLength']+0x3>>0x2<<0x2));}catch(_0x14ae03){_0x392fcc=_0x39cd71[_0x2988a0(0x4ae)]||(_0x39cd71['dataView']=new DataView(_0x39cd71['buffer'],_0x39cd71[_0x2988a0(0x431)],_0x39cd71['buffer'][_0x2988a0(0x770)]-_0x39cd71['byteOffset']));}let _0x1fb848=_0x392fcc[_0x2988a0(0x4a5)](position)<<0x4,_0x221f2a=_0x492ddb-position,_0x52c225;if(_0x221f2a>0x4)_0x52c225=position+0x8<=_0x39cd71[_0x2988a0(0x2a9)]?_0x392fcc[_0x2988a0(0x4a5)](position+0x4):_0x39cd71[position+0x4]<<0x18|_0x39cd71[position+0x5]<<0x10|_0x39cd71[position+0x6]<<0x8|_0x39cd71[position+0x7],_0x1fb848|=_0x52c225>>>0x1c,_0x221f2a<=0x6&&(_0x52c225&=-0x10000),_0x52c225=_0x52c225<<0x4,_0x221f2a>0x8&&(_0x52c225=_0x52c225|_0x39cd71[position+0x8]>>0x4);else _0x52c225=0x0;_0x4b6409<0x10&&(_0x1fb848=_0x1fb848^0x7fffffff,_0x52c225=~_0x52c225);_0xc51170[_0x55d7f4]=_0x1fb848,_0xc51170[_0x12c752]=_0x52c225,_0x55766c=_0x3d8a1c[0x0],position+=0x9;if(_0x221f2a>0x9&&_0x39cd71[position]>0x0){_0x55766c=BigInt(_0x55766c);let _0x103b0f=_0x1fb848>>0x14&0x7ff,_0x21b9b0=_0x39cd71[position-0x1]&0xf;_0x55766c+=BigInt(_0x21b9b0)<<BigInt(_0x103b0f-0x437);while((_0x21b9b0=_0x39cd71[position])>0x0&&position++<_0x492ddb){_0x55766c+=BigInt(_0x21b9b0&0x7f)<<BigInt((_0x6269d6-position)*0x7+_0x103b0f-0x3f8);}}}}else{_0x4b6409==0x1b&&position++;_0x55766c=_0x7032e6(_0x39cd71,_0x492ddb);if(position<_0x492ddb)position--;}while(position<_0x492ddb){if(_0x39cd71[position]===0x0)position++;if(_0x37852a)return _0x3e69f3[_0x2988a0(0x634)]=position,_0x55766c;let _0x5e2bfc=_0x259909(_0x39cd71,position,_0x492ddb,!![]);if(_0x55766c instanceof Array)_0x55766c['push'](_0x5e2bfc);else _0x55766c=[_0x55766c,_0x5e2bfc];}return _0x55766c;}const _0x588711=()=>_0x5ce9c9=!![],_0x3e69f3={'writeKey':_0xa005b0,'readKey':_0x259909,'enableNullTermination':_0x588711};let _0x3d03a1=[],_0x496faf=0x0;const _0x1e22f8=typeof Buffer!==_0x50ac69(0x12f),_0x5f3fbb=_0x1e22f8?Buffer[_0x50ac69(0x65e)]:Uint8Array,_0x55e503=_0x52b389=>{const _0x3856f1=_0x50ac69;let _0xd3c5b5;_0x496faf+0x64>_0x3d03a1[_0x3856f1(0x2a9)]&&(_0x3d03a1=new _0x5f3fbb(0x2000),_0x496faf=0x0,_0xd3c5b5=!![]);try{let _0x33f5e8=_0x3d03a1[_0x3856f1(0x331)](_0x496faf,_0x496faf=_0xa005b0(_0x52b389,_0x3d03a1,_0x496faf));if(_0x496faf>_0x3d03a1[_0x3856f1(0x2a9)]){if(_0xd3c5b5)throw new Error(_0x3856f1(0x2ef));return _0x55e503(_0x52b389);}return _0x33f5e8;}catch(_0x556c4e){if(_0xd3c5b5)throw _0x556c4e;return _0x496faf=_0x3d03a1[_0x3856f1(0x2a9)],_0x55e503(_0x52b389);}},_0x2ca03c=_0x42bfbd=>{return _0x259909(_0x42bfbd,0x0,_0x42bfbd['length']);},fromCharCode=String[_0x50ac69(0x1fc)];function _0x46d9f9(){const _0x4df788=_0x50ac69;let _0x5ddab2=_0x4df788(0x5a2),_0x680af=[];for(let _0x5564e0=0x0;_0x5564e0<0x30;_0x5564e0++){let _0x17b333=fromCharCode((_0x5564e0&0xf)+0x61)+fromCharCode((_0x5564e0>>0x4)+0x61);_0x5ddab2+=_0x4df788(0x121)+_0x17b333+_0x4df788(0x6c3)+_0x17b333+_0x4df788(0x245)+_0x17b333+_0x4df788(0x6ca)+_0x17b333+'\x20=\x20finishUtf8('+_0x17b333+_0x4df788(0x30c)+_0x17b333+_0x4df788(0x395)+_0x17b333+_0x4df788(0x193)+_0x680af+_0x4df788(0x5ba),_0x680af[_0x4df788(0x540)](_0x17b333);}return _0x5ddab2+=_0x4df788(0x59d)+_0x680af+_0x4df788(0x1e0),_0x5ddab2;}const readString=typeof process!==_0x50ac69(0x12f)&&process[_0x50ac69(0x3b1)]?function(_0x362f67){let {setPosition:_0x1fc98a,getPosition:_0x57310d,readString:readString}=_0x362f67;return _0x347908=>{_0x1fc98a(position);let _0x34fad4=readString(_0x347908);return position=_0x57310d(),_0x34fad4;};}(new Function(_0x50ac69(0x1fc),_0x50ac69(0x1f1)+_0x46d9f9()+_0x50ac69(0x582)+_0x50ac69(0x2e5)+'getPosition()\x20{\x20return\x20position\x20},'+_0x50ac69(0x39e))(fromCharCode)):eval(_0x46d9f9());function _0x7032e6(_0x15e72a,_0x20902e){if(_0x15e72a[_0x20902e]>0x0){let _0x2824b5=_0x15e72a[_0x20902e];try{return _0x15e72a[_0x20902e]=0x0,readString(_0x15e72a);}finally{_0x15e72a[_0x20902e]=_0x2824b5;}}else return readString(_0x15e72a);}function _0x28ac86(_0x57edef,_0x4aedea){const _0x203749=_0x50ac69;if(typeof _0x57edef==_0x203749(0x4ed)){if(!_0x57edef)return _0x4aedea==null?0x0:-0x1;if(_0x57edef[_0x203749(0x2d4)]){if(_0x4aedea==null)return 0x1;else return _0x4aedea[_0x203749(0x2d4)]?_0x57edef[_0x203749(0x2d4)](_0x4aedea):-0x1;}let _0x2aabbd;if(_0x4aedea instanceof Array){let _0x562ce6=0x0;while((_0x2aabbd=_0x28ac86(_0x57edef[_0x562ce6],_0x4aedea[_0x562ce6]))==0x0&&_0x562ce6<=_0x57edef[_0x203749(0x2a9)]){_0x562ce6++;}return _0x2aabbd;}_0x2aabbd=_0x28ac86(_0x57edef[0x0],_0x4aedea);if(_0x2aabbd==0x0&&_0x57edef[_0x203749(0x2a9)]>0x1)return 0x1;return _0x2aabbd;}else{if(typeof _0x57edef==typeof _0x4aedea)return typeof _0x57edef===_0x203749(0x445)&&(_0x57edef=Symbol[_0x203749(0x136)](_0x57edef),_0x4aedea=Symbol[_0x203749(0x136)](_0x4aedea)),_0x57edef<_0x4aedea?-0x1:_0x57edef===_0x4aedea?0x0:0x1;else{if(typeof _0x4aedea==_0x203749(0x4ed)){if(_0x4aedea instanceof Array)return-_0x28ac86(_0x4aedea,_0x57edef);return 0x1;}else return _0x59d665[typeof _0x57edef]<_0x59d665[typeof _0x4aedea]?-0x1:0x1;}}}const _0x59d665={'symbol':0x0,'undefined':0x1,'boolean':0x2,'number':0x3,'string':0x4},_0x3a2548=null,_0x4e5a4f=new Uint8Array([0xff]);return dist['MAXIMUM_KEY']=_0x4e5a4f,dist[_0x50ac69(0x511)]=_0x3a2548,dist[_0x50ac69(0x5b3)]=_0x28ac86,dist[_0x50ac69(0x53d)]=_0x588711,dist[_0x50ac69(0x65c)]=_0x3e69f3,dist[_0x50ac69(0x20c)]=_0x2ca03c,dist[_0x50ac69(0x5e7)]=_0x259909,dist[_0x50ac69(0x2c3)]=_0x55e503,dist[_0x50ac69(0x157)]=_0xa005b0,dist;}var keyenc,hasRequiredKeyenc;function requireKeyenc(){if(hasRequiredKeyenc)return keyenc;hasRequiredKeyenc=0x1;const {writeKey:_0x2eef97}=requireDist(),_0x4147b7=0x7ba,_0x4d6b95=0x1000;function _0x1cb0ae(_0x45e474,_0x462abb){const _0x33917d=_0x41a2;switch(typeof _0x45e474){case _0x33917d(0x229):return _0x45e474[_0x33917d(0x2a9)]<=_0x4147b7&&_0x45e474['isWellFormed']();case _0x33917d(0x1ce):case _0x33917d(0x43d):return!![];case _0x33917d(0x4ed):if(_0x45e474===null)return!![];if(Array[_0x33917d(0x17d)](_0x45e474)){if(_0x462abb>0x8||_0x45e474[_0x33917d(0x2a9)]>_0x4147b7)return![];for(let _0x2d650e=0x0;_0x2d650e<_0x45e474[_0x33917d(0x2a9)];_0x2d650e++)if(!_0x1cb0ae(_0x45e474[_0x2d650e],_0x462abb+0x1))return![];return!![];}return Buffer[_0x33917d(0x68e)](_0x45e474)&&_0x45e474['length']<=_0x4147b7;default:return![];}}function _0xc9c0ac(_0x288b19,_0xb6bb43){const _0x216eb6=_0x41a2,_0x4ddf1c=typeof _0x288b19;if(_0x4ddf1c===_0x216eb6(0x229)){if(_0x288b19['length']>=0x40||!_0x288b19[_0x216eb6(0x4fd)]()){if(!_0x1cb0ae(_0x288b19,0x0))return-0x1;}}else{if(_0x4ddf1c!==_0x216eb6(0x1ce)){if(Array['isArray'](_0x288b19)?_0x288b19[_0x216eb6(0x2a9)]===0x0||!_0x1cb0ae(_0x288b19,0x0):!_0x1cb0ae(_0x288b19,0x0))return-0x1;}}let _0x2d2502;try{_0x2d2502=_0x2eef97(_0x288b19,_0xb6bb43,0x0);}catch{return-0x1;}return _0x2d2502>0x0&&_0x2d2502<=_0x4147b7?_0x2d2502:-0x1;}return keyenc={'encodeKey':_0xc9c0ac,'KEY_BUF_SIZE':_0x4d6b95,'NO_FAST':Symbol('okdb.noFast')},keyenc;}var okdbHlc,hasRequiredOkdbHlc;function requireOkdbHlc(){const _0x477178=_0x431d06;if(hasRequiredOkdbHlc)return okdbHlc;hasRequiredOkdbHlc=0x1;const _0x3bb9c7=0x400,_0x582c34=_0x3bb9c7-0x1,_0x1dfa8b=0xea60;function _0x1dd164(_0x54c28b,_0x218fce){const _0x192997=_0x41a2;return _0x54c28b*_0x3bb9c7+Math[_0x192997(0x380)](0x0,Math[_0x192997(0x165)](_0x218fce,_0x582c34));}function _0x16bfa4(_0x1fe3fe){const _0x2ae2b6=_0x41a2,_0x193b75=Math[_0x2ae2b6(0x380)](0x0,Number(_0x1fe3fe)||0x0),_0x2b80bb=_0x193b75%_0x3bb9c7,_0x1264bb=(_0x193b75-_0x2b80bb)/_0x3bb9c7;return{'pt':_0x1264bb,'l':_0x2b80bb};}function _0x1c8adf(_0xc9b32b,_0x500b2e=Date[_0x477178(0x772)]()){const _0x3bccf9=_0x477178,{pt:_0x15a9c9,l:_0x2fc754}=_0x16bfa4(_0xc9b32b),_0x22abc0=Math['max'](_0x15a9c9,_0x500b2e),_0x5011af=_0x22abc0===_0x15a9c9?Math[_0x3bccf9(0x165)](_0x2fc754+0x1,_0x582c34):0x0;return _0x1dd164(_0x22abc0,_0x5011af);}function _0x1c3bd9(_0x5634c4,_0x3b769f,_0xf593f4=Date[_0x477178(0x772)]()){const _0x4137b1=_0x477178,{pt:_0x48327b,l:_0x33a84f}=_0x16bfa4(_0x5634c4),{pt:_0x55afbb,l:_0x412427}=_0x16bfa4(_0x3b769f),_0x2ddb44=Math[_0x4137b1(0x380)](_0x48327b,_0x55afbb,_0xf593f4);let _0x3a4692;if(_0x2ddb44===_0x48327b&&_0x2ddb44===_0x55afbb)_0x3a4692=Math['min'](Math[_0x4137b1(0x380)](_0x33a84f,_0x412427)+0x1,_0x582c34);else{if(_0x2ddb44===_0x48327b)_0x3a4692=Math[_0x4137b1(0x165)](_0x33a84f+0x1,_0x582c34);else _0x2ddb44===_0x55afbb?_0x3a4692=Math[_0x4137b1(0x165)](_0x412427+0x1,_0x582c34):_0x3a4692=0x0;}return _0x1dd164(_0x2ddb44,_0x3a4692);}function _0x46c9c5(_0x119c36,_0x4908e8){const _0x39e540=Number(_0x119c36)||0x0,_0x45533a=Number(_0x4908e8)||0x0;if(_0x39e540<_0x45533a)return-0x1;if(_0x39e540>_0x45533a)return 0x1;return 0x0;}function _0x5aff93(_0x2f2885){return _0x16bfa4(_0x2f2885)['pt'];}return okdbHlc={'send':_0x1c8adf,'recv':_0x1c3bd9,'compare':_0x46c9c5,'toMs':_0x5aff93,'encode':_0x1dd164,'decode':_0x16bfa4,'SCALE':_0x3bb9c7,'L_MAX':_0x582c34,'DRIFT_MAX':_0x1dfa8b},okdbHlc;}var env,hasRequiredEnv;function requireEnv(){const _0x2f6eaf=_0x431d06;if(hasRequiredEnv)return env;hasRequiredEnv=0x1;const {fromArray:_0x27dea0,chunkedRange:_0x3ea05d,pinnedChunks:_0x4dfa56,claimPrefetch:_0x8b9db8}=requireIterable(),{reclass:_0x489c5b,NotImplementedNative:_0x1c70f7,OKDBError:_0x58254e,optionsArg:_0x3f7332}=requireErrors(),{OKDBViews:_0x5f019a}=requireViews(),{OKDBQueue:_0x584f62}=requireQueue(),{OKDBTimeMachine:_0xe506b3}=requireTimemachine(),_0xe4c45c=_0x4155ff=>{const _0x59bdbe=_0x41a2;try{return!_0x4155ff[_0x59bdbe(0x643)]||_0x4155ff[_0x59bdbe(0x643)][_0x59bdbe(0x234)]('timeMachine');}catch{return!![];}},{OKDBFiles:_0x2f2846}=requireFiles(),{OKDBEngines:_0x5d2f2c,OKDBPipelines:_0x3559f5}=requireEngines(),{OKDBFunctions:_0x12b519}=requireFunctions(),_0x1425a9=requireProcessor(),{RawDb:_0x1d2771}=requireRawdb(),_0x424e32=requireBridge();let _0x5aef8b=null;const _0x46cfea=()=>_0x5aef8b||=requireOkdbTransaction(),_0x5f513a=(..._0x5c1956)=>requireOkdbGuardedRange()[_0x2f6eaf(0x3e5)](..._0x5c1956),_0x5927de=Buffer[_0x2f6eaf(0x295)]([0xff]),_0x54203e=process.env.OKDB_NATIVE_RAW_READS!=='0',_0x57901c=_0x54203e&&process.env.OKDB_NATIVE_FAST_GET!=='0',{NO_FAST:_0x2efc56}=requireKeyenc(),_0x4a0f73=new Set(_0x54203e?['getRange','byIndex',_0x2f6eaf(0x787),_0x2f6eaf(0xe4),_0x2f6eaf(0x677)]:[]),_0xd0407c=new Set([_0x2f6eaf(0x1bc),_0x2f6eaf(0x153),_0x2f6eaf(0x63b),_0x2f6eaf(0x1bd),'getKeys',_0x2f6eaf(0x4dd),'getCount',_0x2f6eaf(0x6be),'getIndex','byIndex','countByIndex','query','assertQueryOptions','geoQuery',_0x2f6eaf(0x41d),_0x2f6eaf(0xe4),_0x2f6eaf(0x70b),_0x2f6eaf(0x772),_0x2f6eaf(0x2c9),_0x2f6eaf(0x57b),_0x2f6eaf(0x5fe),'getIndexStatus','getIndexMeta',_0x2f6eaf(0x630),_0x2f6eaf(0xbc),_0x2f6eaf(0x361),_0x2f6eaf(0x135),_0x2f6eaf(0x78e),_0x2f6eaf(0x476),'getViolation','listViolations',_0x2f6eaf(0x228),_0x2f6eaf(0x119),'getTTL',_0x2f6eaf(0x3ab),'ttlStats',_0x2f6eaf(0x5d1),'name',_0x2f6eaf(0xe7),'id',_0x2f6eaf(0x79b),_0x2f6eaf(0x7b6),_0x2f6eaf(0x1bf),_0x2f6eaf(0x334),_0x2f6eaf(0x141)]),_0x409cc4=new Set([_0x2f6eaf(0x432),'end',_0x2f6eaf(0x7c0),_0x2f6eaf(0x393),_0x2f6eaf(0x344),_0x2f6eaf(0x64e),'exclusiveStart',_0x2f6eaf(0x509),'values',_0x2f6eaf(0x65b),'transaction',_0x2f6eaf(0x590),'valuesForKey',_0x2f6eaf(0x619)]);function _0x541c0b(_0x2af61e,_0x4a5cbe,_0x23de02){const _0x46c77b=new Map();return(_0xdf42ea,_0x3e4d64)=>{const _0x4ef260=_0x41a2,_0x164aa9=JSON[_0x4ef260(0x64b)](_0x3e4d64),_0x4522af=_0x46c77b[_0x4ef260(0x1bc)](_0x164aa9);if(_0x4522af){if(_0x4522af[_0x4ef260(0x1a2)]===_0x4ef260(0x5a9))throw _0x408ec3();_0x46c77b[_0x4ef260(0x7ec)](_0x164aa9);if(_0x4522af[_0x4ef260(0x1a2)]==='err')throw _0x4522af[_0x4ef260(0x6f0)];return _0x4522af[_0x4ef260(0x6f0)];}const _0x53b4f7=_0xdf42ea(..._0x3e4d64);if(!_0x53b4f7||typeof _0x53b4f7[_0x4ef260(0x583)]!==_0x4ef260(0x7c4))return _0x53b4f7;const _0x54e539={'state':_0x4ef260(0x5a9),'value':undefined},_0x18b00b=(_0x1cbb32,_0x439805)=>{const _0x22828a=_0x4ef260;_0x54e539[_0x22828a(0x1a2)]=_0x1cbb32,_0x54e539[_0x22828a(0x6f0)]=_0x439805;if(_0x46c77b[_0x22828a(0x1bc)](_0x164aa9)!==_0x54e539)return;setTimeout(()=>_0x46c77b['get'](_0x164aa9)===_0x54e539&&_0x46c77b[_0x22828a(0x7ec)](_0x164aa9),0x7530)[_0x22828a(0x490)]();try{_0x2af61e[_0x22828a(0x6ff)][_0x22828a(0x722)](_0x22828a(0x6bf),null,'emit',['field:resolver_registered',{'env':_0x2af61e[_0x22828a(0x5e6)],'type':_0x4a5cbe,'field':_0x23de02}],!![]);}catch{}};_0x53b4f7[_0x4ef260(0x583)](_0x2c9509=>_0x18b00b('ok',_0x2c9509),_0x2326b1=>_0x18b00b('err',_0x2326b1));for(let _0x30bd26=0x0;_0x30bd26<0x64&&_0x54e539[_0x4ef260(0x1a2)]==='pending';_0x30bd26++)process[_0x4ef260(0x311)]();if(_0x54e539[_0x4ef260(0x1a2)]==='ok')return _0x54e539[_0x4ef260(0x6f0)];if(_0x54e539[_0x4ef260(0x1a2)]===_0x4ef260(0x27d))throw _0x54e539[_0x4ef260(0x6f0)];_0x46c77b[_0x4ef260(0x48c)](_0x164aa9,_0x54e539);throw _0x408ec3();};}function _0x408ec3(){const _0xfdb141=_0x2f6eaf;return Object[_0xfdb141(0x2e1)](new Error(_0xfdb141(0x343)),{'code':_0xfdb141(0x2db)});}class _0x4919b6{constructor(_0xe4774b,_0x409cc9){const _0xdd323c=_0x2f6eaf;this['okdb']=_0xe4774b,this[_0xdd323c(0x5e6)]=_0x409cc9,this['events']=_0xe4774b[_0xdd323c(0x6bf)],this[_0xdd323c(0x745)]=_0xe4774b[_0xdd323c(0x745)],this[_0xdd323c(0x2ab)]=!![],this[_0xdd323c(0x218)]=null,this[_0xdd323c(0x7a3)]=new _0x5f019a(this),this[_0xdd323c(0xf8)]=new _0x1425a9(this);if(!_0x409cc9[_0xdd323c(0x217)]('~')||_0x409cc9[_0xdd323c(0x4e5)](':emb:'))this[_0xdd323c(0x4f3)]=new _0x584f62(this);if(!_0x409cc9[_0xdd323c(0x217)]('~'))this['files']=new _0x2f2846(this);this[_0xdd323c(0x2f9)]=new _0x12b519(_0xe4774b,_0x409cc9),this['engines']=new _0x5d2f2c(_0xe4774b,_0x409cc9,_0xe4774b[_0xdd323c(0x7bc)]),this[_0xdd323c(0x251)]=new _0x3559f5(_0xe4774b,_0x409cc9);if(!_0x409cc9['startsWith']('~')&&_0xe4774b[_0xdd323c(0x2f0)][_0xdd323c(0x57f)]&&_0xe4c45c(_0xe4774b))this[_0xdd323c(0x57f)]=new _0xe506b3(this);_0x424e32[_0xdd323c(0x51c)](this[_0xdd323c(0xe7)],this);const _0x1872d1=this;this['_writer']={async 'transaction'(_0x391a4a){const _0xc84b39=_0xdd323c,_0x108fea=[];_0x1872d1[_0xc84b39(0x218)]=_0x108fea;try{_0x391a4a();}finally{_0x1872d1[_0xc84b39(0x218)]=null;}return _0x1872d1[_0xc84b39(0x6ff)]['_wb']['enqueue'](_0xc84b39(0x3c4),_0x1872d1[_0xc84b39(0x5e6)],_0xc84b39(0x7dd),[_0x108fea]);},'drain'(){const _0x370f28=_0xdd323c;return _0x1872d1['okdb'][_0x370f28(0x13c)][_0x370f28(0x423)]();},'flushLmdb'(){const _0x52a020=_0xdd323c;return _0x1872d1[_0x52a020(0x6ff)]['_wb'][_0x52a020(0x423)]();},'markClosed'(){}};const _0x337ff7=new _0x1d2771(this,'');_0x337ff7[_0xdd323c(0x5a3)]=()=>({'lastTxnId':this['_n'](_0xdd323c(0x79b),[])}),Object['defineProperty'](_0x337ff7,_0xdd323c(0x1e6),{'get':()=>this[_0xdd323c(0x6ff)][_0xdd323c(0x13c)][_0xdd323c(0x423)](),'configurable':!![]}),Object[_0xdd323c(0x332)](_0x337ff7,_0xdd323c(0x40e),{'get':()=>this[_0xdd323c(0x6ff)]['_wb']['drain'](),'configurable':!![]});const _0x2ee473=_0x337ff7[_0xdd323c(0x1bc)][_0xdd323c(0x7d2)](_0x337ff7);_0x337ff7[_0xdd323c(0x1bc)]=_0x44612b=>_0x44612b===_0xdd323c(0x433)?this['_n'](_0xdd323c(0x41d),[null]):_0x2ee473(_0x44612b),this['db']=_0x337ff7;}async[_0x2f6eaf(0x498)](){const _0x2d1ebf=_0x2f6eaf;this[_0x2d1ebf(0x5a5)]=!![];}get[_0x2f6eaf(0x129)](){const _0x387cdc=_0x2f6eaf;return new Map(this[_0x387cdc(0x6ff)][_0x387cdc(0x722)]('db',null,_0x387cdc(0x25f),[this[_0x387cdc(0x5e6)]],![]));}get['typesDb'](){const _0x6c9689=_0x2f6eaf;return this[_0x6c9689(0x20b)]||(this['_typesDb']=new _0x1d2771(this,_0x6c9689(0x4ca)));}[_0x2f6eaf(0x602)](_0x28960f){const _0xe8fb55=_0x2f6eaf,_0x47fad4=this[_0xe8fb55(0x622)][_0xe8fb55(0x1bc)](_0x28960f);if(_0x47fad4===undefined||String(_0x28960f)['startsWith'](_0xe8fb55(0x573))||String(_0x28960f)[_0xe8fb55(0x217)]('__fts:')){const {OKDBError:_0x55bded}=requireErrors();throw new _0x55bded(_0xe8fb55(0x29b)+_0x28960f+_0xe8fb55(0x379),'TYPE_NOT_REGISTERED',{'type':_0x28960f});}const _0x4dfbc2=this,_0x357e28=new _0x1d2771(_0x4dfbc2,'type:'+_0x28960f+_0xe8fb55(0x225)),_0x454442=new Map();for(const _0x5b2760 of _0x357e28['getKeys']()){const _0x50b2ad=_0x357e28['get'](_0x5b2760)||{},_0x59ab0e={'parts':_0x5b2760['split']('~'),'db':new _0x1d2771(_0x4dfbc2,_0xe8fb55(0x4a0)+_0x28960f+_0xe8fb55(0x196)+_0x5b2760,{'dupSort':!![]})};if(_0x50b2ad['geoConfig'])_0x59ab0e[_0xe8fb55(0x358)]=_0x50b2ad['geoConfig'];if(_0x50b2ad[_0xe8fb55(0x5ed)])_0x59ab0e[_0xe8fb55(0x5ed)]=!![];if(_0x50b2ad[_0xe8fb55(0x5b4)])_0x59ab0e[_0xe8fb55(0x5b4)]=!![];if(_0x50b2ad[_0xe8fb55(0x5f6)])_0x59ab0e[_0xe8fb55(0x5f6)]=_0x50b2ad[_0xe8fb55(0x5f6)];_0x59ab0e['usedBy']=new Set((_0x50b2ad[_0xe8fb55(0x57c)]??[])[_0xe8fb55(0x1d9)](_0x3ff18f=>_0x3ff18f['kind']+':'+_0x3ff18f[_0xe8fb55(0x5e6)])),_0x454442['set'](_0x5b2760,_0x59ab0e);}return{'root':new _0x1d2771(_0x4dfbc2,_0xe8fb55(0x4a0)+_0x28960f),'data':new _0x1d2771(_0x4dfbc2,_0xe8fb55(0x4a0)+_0x28960f+_0xe8fb55(0x415),{'useVersions':!![]}),'indexes':_0x357e28,'clockToChange':new _0x1d2771(_0x4dfbc2,_0xe8fb55(0x4a0)+_0x28960f+_0xe8fb55(0x37b)),'keyToChange':new _0x1d2771(_0x4dfbc2,_0xe8fb55(0x4a0)+_0x28960f+_0xe8fb55(0x3c5)),'fieldSchema':new Map(Object[_0xe8fb55(0x2d3)](_0x47fad4[_0xe8fb55(0x49a)]||{})[_0xe8fb55(0x1d9)](([_0x1f3c64,_0x209058])=>[_0x1f3c64,new Set(Array[_0xe8fb55(0x17d)](_0x209058)?_0x209058:[_0x209058])])),'indexToDb':_0x454442,'ftsToDb':null,'schema':_0x47fad4['schema']||null,'defaultTTL':_0x47fad4[_0xe8fb55(0x3f6)]||null};}get['typeSubDbs'](){const _0x4b4480=this,_0x355d15=()=>_0x4b4480['listTypes']();return{'get':_0x39e239=>{const _0xe89891=_0x41a2;try{return _0x4b4480[_0xe89891(0x602)](_0x39e239);}catch{return undefined;}},'has':_0x234aa9=>_0x355d15()['includes'](_0x234aa9),'keys':()=>_0x355d15()[Symbol['iterator']](),get 'size'(){const _0x52ed79=_0x41a2;return _0x355d15()[_0x52ed79(0x2a9)];}};}['_typeKeys'](){return this['listTypes']();}get[_0x2f6eaf(0x305)](){const _0x2e5f22=_0x2f6eaf;return this[_0x2e5f22(0x15a)]||(this[_0x2e5f22(0x15a)]=new _0x1d2771(this,_0x2e5f22(0x1d5)));}get['clockToChangeDb'](){const _0x5d6307=_0x2f6eaf;return this[_0x5d6307(0x17c)]||(this[_0x5d6307(0x17c)]=new _0x1d2771(this,'clocks'));}[_0x2f6eaf(0x551)](_0x3ef53c){const _0x4a6357=_0x2f6eaf;return this['_n'](_0x4a6357(0x63f),[_0x3ef53c]);}get[_0x2f6eaf(0xda)](){const _0x205c2f=_0x2f6eaf;return!this['_n'](_0x205c2f(0x5fd),[],![]);}get['_sync'](){const _0x9aba29=_0x2f6eaf;return this[_0x9aba29(0x628)]!==undefined?this[_0x9aba29(0x628)]:this['_n'](_0x9aba29(0x5fd),[],![]);}set[_0x2f6eaf(0x2da)](_0x1fc2b3){const _0x25821a=_0x2f6eaf;this[_0x25821a(0x628)]=_0x1fc2b3;}get[_0x2f6eaf(0x360)](){const _0x202310=_0x2f6eaf;return this[_0x202310(0x5ca)]||(this[_0x202310(0x5ca)]=new(requireLock())[(_0x202310(0x3d3))](this[_0x202310(0x6ff)],_0x202310(0xfb),'compact',{'ttlMs':0xea60}));}get[_0x2f6eaf(0xe7)](){const _0x2ba4cf=_0x2f6eaf;return this[_0x2ba4cf(0x177)]??(this[_0x2ba4cf(0x177)]=this['_n']('path',[]));}get['id'](){return this['_n']('id',[]);}get[_0x2f6eaf(0x491)](){const _0x4bda24=_0x2f6eaf;return this[_0x4bda24(0x6ff)][_0x4bda24(0x491)];}['_n'](_0x114aa0,_0xc7638a){const _0x4950c8=_0x2f6eaf;return this[_0x4950c8(0x6ff)][_0x4950c8(0x722)](_0x4950c8(0x3c4),this[_0x4950c8(0x5e6)],_0x114aa0,_0xc7638a,!_0xd0407c['has'](_0x114aa0));}[_0x2f6eaf(0x137)](_0x3b300a){const _0x9da838=_0x2f6eaf;return this['okdb'][_0x9da838(0x550)](_0x3b300a);}['_np'](_0x10afe4,_0x1c2d60){const _0x13e23b=_0x2f6eaf;if(_0x4a0f73[_0x13e23b(0x614)](_0x10afe4===_0x13e23b(0x630)?_0x1c2d60[0x1]:_0x10afe4))return this['okdb'][_0x13e23b(0x436)](this[_0x13e23b(0x5e6)],_0x10afe4,_0x1c2d60);return this[_0x13e23b(0x6ff)]['_callPacked'](_0x13e23b(0x3c4),this[_0x13e23b(0x5e6)],_0x10afe4,_0x1c2d60);}[_0x2f6eaf(0x241)](_0x3e2a36={'useReadTransaction':![]}){return new(_0x46cfea())(this,_0x3e2a36);}async[_0x2f6eaf(0x704)](_0x344961,_0x4164c9){const _0x1020af=_0x2f6eaf;return _0x46cfea()[_0x1020af(0x349)](this,_0x344961,_0x4164c9);}['_low'](_0xb74512,_0x584ab4){const _0x3542da=_0x2f6eaf;if(this[_0x3542da(0x218)])this[_0x3542da(0x218)][_0x3542da(0x540)]({'action':_0xb74512,'args':_0x584ab4});else this['_n'](_0xb74512,_0x584ab4);}['_put'](_0x1ff732,_0x5804ed,_0x464ce9,_0x2aec37,_0x5e0593){const _0x5619a5=_0x2f6eaf;this[_0x5619a5(0x758)](_0x5619a5(0x59b),[_0x5804ed,_0x464ce9,_0x2aec37,_0x5e0593]);}[_0x2f6eaf(0x191)](_0xaa7c19,_0x49500c,_0x929123,_0x27b1b4,_0x1aa6cd){const _0x2deefc=_0x2f6eaf;this[_0x2deefc(0x758)](_0x2deefc(0x2bd),[_0x49500c,_0x929123,_0x27b1b4,_0x1aa6cd]);}['_patch'](_0x4caab8,_0x8f9c56,_0x54fa18,_0x2d7c56,_0x5a0898){const _0xc8ace5=_0x2f6eaf;this[_0xc8ace5(0x758)](_0xc8ace5(0x3fb),[_0x8f9c56,_0x54fa18,_0x2d7c56,_0x5a0898]);}[_0x2f6eaf(0x688)](_0x1114cd,_0x48652b,_0x4d250d,_0x2b7af7,_0x56a6bb){const _0x8ab753=_0x2f6eaf;this['_low'](_0x8ab753(0x748),[_0x48652b,_0x4d250d,_0x2b7af7,_0x56a6bb]);}['_remove'](_0x2656ce,_0x4e5403,_0x50a484,_0x4b6948){this['_low']('remove',[_0x4e5403,_0x50a484,_0x4b6948]);}[_0x2f6eaf(0x548)](_0x1583a7,_0x57814c,_0x4131e8,_0x45af07){const _0xdf0fcd=_0x2f6eaf;this[_0xdf0fcd(0x758)](_0xdf0fcd(0x5cf),[_0x57814c,_0x4131e8,_0x45af07]);}['_clearTTL'](_0x1964ec,_0x3ce715,_0x611a01){const _0x168534=_0x2f6eaf;this[_0x168534(0x758)]('clearTTL',[_0x3ce715,_0x611a01]);}['_w'](_0x5a6374,_0x2c7e17){const _0x5d3b6f=_0x2f6eaf;return this[_0x5d3b6f(0x6ff)][_0x5d3b6f(0x13c)][_0x5d3b6f(0x2ba)]('env',this[_0x5d3b6f(0x5e6)],_0x5a6374,_0x2c7e17);}['put'](_0xbdb741,_0x37edeb,_0x1cb1ff,_0x386692={}){const _0x9f2e47=_0x2f6eaf;return this['_w'](_0x9f2e47(0x59b),[_0xbdb741,_0x37edeb,_0x1cb1ff,_0x386692]);}[_0x2f6eaf(0x2bd)](_0x1d4438,_0x2b7ba2,_0x2d1830,_0x563b18={}){return this['_w']('update',[_0x1d4438,_0x2b7ba2,_0x2d1830,_0x563b18]);}['patch'](_0x4b3d29,_0xf8e4f4,_0x4b93cb,_0x5d701a={}){const _0x1e431a=_0x2f6eaf;return this['_w'](_0x1e431a(0x3fb),[_0x4b3d29,_0xf8e4f4,_0x4b93cb,_0x5d701a]);}[_0x2f6eaf(0x748)](_0x3a1a07,_0x5d437e,_0x761f2,_0x402920={}){const _0x2ef9b1=_0x2f6eaf;return this['_w'](_0x2ef9b1(0x748),[_0x3a1a07,_0x5d437e,_0x761f2,_0x402920]);}['remove'](_0x5a25f7,_0x248b4d,_0x3ff419={}){const _0x7d47c8=_0x2f6eaf;return this['_w'](_0x7d47c8(0x4d2),[_0x5a25f7,_0x248b4d,_0x3ff419]);}[_0x2f6eaf(0x1bc)](_0x5d1668,_0x5c4f01,_0x621bc8){const _0xea8be4=_0x2f6eaf;if(_0x57901c&&typeof _0x5d1668===_0xea8be4(0x229)){const _0x3fbc57=this[_0xea8be4(0x6ff)][_0xea8be4(0x42e)](this[_0xea8be4(0x5e6)],_0x5d1668,_0x5c4f01);if(_0x3fbc57!==_0x2efc56)return _0x3fbc57===null?this['_n'](_0xea8be4(0x1bc),[_0x5d1668,_0x5c4f01]):_0x3fbc57;}if(_0x54203e&&(typeof _0x5c4f01===_0xea8be4(0x229)||typeof _0x5c4f01===_0xea8be4(0x1ce))){const _0x50941c=this[_0xea8be4(0x6ff)]['_getRaw'](this[_0xea8be4(0x5e6)],_0x5d1668,_0x5c4f01);if(_0x50941c!==null)return _0x50941c;}return this['_n'](_0xea8be4(0x1bc),[_0x5d1668,typeof _0x5c4f01===_0xea8be4(0x445)?null:_0x5c4f01]);}[_0x2f6eaf(0x63b)](_0x262b6f,_0x3b2d9d,_0x598f31){const _0x226c98=_0x2f6eaf,_0x15cc25=[_0x262b6f,Array[_0x226c98(0x17d)](_0x3b2d9d)&&_0x3b2d9d[_0x226c98(0x31e)](_0x2b9991=>typeof _0x2b9991===_0x226c98(0x445))?_0x3b2d9d[_0x226c98(0x1d9)](_0x1f87f3=>typeof _0x1f87f3===_0x226c98(0x445)?null:_0x1f87f3):_0x3b2d9d];return _0x54203e?this[_0x226c98(0x6ff)][_0x226c98(0x436)](this[_0x226c98(0x5e6)],_0x226c98(0x63b),_0x15cc25):this['_n'](_0x226c98(0x63b),_0x15cc25);}[_0x2f6eaf(0x153)](_0x1f9c63,_0x2aa3f8,_0x37536e){const _0x425380=_0x2f6eaf;return this['_n'](_0x425380(0x153),[_0x1f9c63,typeof _0x2aa3f8==='symbol'?null:_0x2aa3f8]);}[_0x2f6eaf(0x156)](_0x1b3168,_0x123a24){const _0xc858a4=_0x2f6eaf;return this['_assertRangeOptions'](_0xc858a4(0x156),_0x123a24),this['_n'](_0xc858a4(0x156),[_0x1b3168,_0x6b2630(_0x123a24)]);}[_0x2f6eaf(0x159)](_0x3b0c5a,_0x3f3808,_0x40920c=[]){const _0x519a42=_0x2f6eaf;if(!_0x3f3808||typeof _0x3f3808!==_0x519a42(0x4ed))return;for(const _0xb15d79 of Object['keys'](_0x3f3808)){if(!_0x409cc4[_0x519a42(0x614)](_0xb15d79)&&!_0x40920c[_0x519a42(0x4e5)](_0xb15d79))throw new _0x58254e(_0x3b0c5a+_0x519a42(0x138)+_0xb15d79+'\x27',_0x519a42(0x316),{'option':_0xb15d79});}}[_0x2f6eaf(0x306)](_0x55f5c4,_0x23ffbd,_0x47328a,_0x3f174e,_0x4db14f,_0x434cff){const _0x637bd5=_0x2f6eaf;this[_0x637bd5(0x159)](_0x55f5c4,_0x3f174e);const _0x483703=_0x3f174e?.[_0x637bd5(0x65b)],_0x343ee1=_0x6b2630(_0x3f174e);if(_0x483703===!![]||_0x483703==='tolerant'){const _0x27c852=this['_lazyPinned'](_0x55f5c4,_0x23ffbd,_0x517ef1=>[_0x47328a,{..._0x343ee1,..._0x517ef1}],_0x3f174e);return _0x434cff?_0x27c852[_0x637bd5(0x1d9)](_0x434cff):_0x27c852;}const _0x1dfeb0=_0x3ea05d(_0x3c16d2=>this[_0x637bd5(0x40b)](_0x23ffbd,[_0x47328a,_0x3c16d2]),_0x343ee1,_0x4db14f,{'rows':_0x23ffbd==='getRange'});return _0x434cff?_0x1dfeb0['map'](_0x434cff):_0x1dfeb0;}[_0x2f6eaf(0x2e4)](_0x483375,_0x24ef14,_0x2e96d2,_0x2b3ae1,_0x5d46ca,_0x10c213=![]){const _0x15d1dd=_0x2f6eaf,{source:_0xeebf94,prefetch:_0x73bf3e}=_0x4dfa56((_0x5a1d74,_0x3f3e55)=>_0x5a1d74===_0x15d1dd(0xbc)?this['_n'](_0x5a1d74,_0x3f3e55):this['_np'](_0x5a1d74,_0x3f3e55),_0x24ef14,_0x2e96d2,_0x2b3ae1||{},_0x5d46ca),_0x59f329=_0x73bf3e(),_0x1f9264=!_0x10c213&&_0x2b3ae1&&_0x2b3ae1[_0x15d1dd(0x65b)]==='tolerant';let _0x19ad97=null;return _0x5f513a(()=>({[Symbol['iterator']]:()=>_0x19ad97=_0xeebf94(0x0,_0x8b9db8(_0x59f329))}),{'label':this[_0x15d1dd(0x5e6)]+':'+_0x483375,..._0x1f9264?{'getTxnId':()=>this['db'][_0x15d1dd(0x5a3)]()[_0x15d1dd(0x79b)],'resume':()=>({[Symbol[_0x15d1dd(0x6b7)]]:()=>_0x19ad97=_0x19ad97[_0x15d1dd(0x5a8)]()})}:{}});}['getRange'](_0x53b06c,_0x55ceb3){const _0x30a957=_0x2f6eaf;return this[_0x30a957(0x306)](_0x30a957(0x1bd),_0x30a957(0x1bd),_0x53b06c,_0x55ceb3,_0x2abcdc=>_0x2abcdc[_0x30a957(0x590)]);}[_0x2f6eaf(0x677)](_0x38002,_0x559010){const _0x25a2e0=_0x2f6eaf;return this[_0x25a2e0(0x306)]('getKeys',_0x25a2e0(0x677),_0x38002,_0x559010,_0x5a818b=>_0x5a818b);}[_0x2f6eaf(0x4dd)](_0x5c1624,_0x62b0e1){const _0x219054=_0x2f6eaf;return this['_range']('getValues',_0x219054(0x1bd),_0x5c1624,_0x62b0e1,_0x116938=>_0x116938[_0x219054(0x590)],_0x5622a7=>_0x5622a7['value']);}[_0x2f6eaf(0x6be)](_0x480ccb,_0x4d3aa1,_0x23b7b7={}){const _0x268204=_0x2f6eaf;return this[_0x268204(0x1bd)](_0x480ccb,{'start':_0x4d3aa1,'end':_0x4d3aa1+'',..._0x23b7b7});}[_0x2f6eaf(0x655)](_0x20eb2a,_0x249354,_0x2c421a={}){const _0x5e3205=_0x2f6eaf;this['_assertRangeOptions'](_0x5e3205(0x655),_0x2c421a,['prefix']);const _0x513b2e=_0x6b2630(_0x2c421a);if(_0x2c421a&&_0x2c421a['transaction'])return _0x27dea0(this['_n'](_0x5e3205(0x655),[_0x20eb2a,_0x249354,_0x513b2e]));return this['_lazyPinned'](_0x5e3205(0x655),_0x5e3205(0x655),_0x587eea=>[_0x20eb2a,_0x249354,{..._0x513b2e,..._0x587eea}],_0x2c421a,undefined,!![]);}[_0x2f6eaf(0x372)](_0x33a512,_0x492329,_0x3fd033){const _0x5dbe1c=_0x2f6eaf;this['_assertRangeOptions']('byIndex',_0x3fd033,['prefix',_0x5dbe1c(0x43e)]);const _0xbe0d15=_0x6b2630(_0x3fd033);if(_0x3fd033&&_0x3fd033[_0x5dbe1c(0x241)])return _0x27dea0(this['_n'](_0x5dbe1c(0x372),[_0x33a512,_0x492329,_0xbe0d15]));return this[_0x5dbe1c(0x2e4)](_0x5dbe1c(0x372),_0x5dbe1c(0x372),_0x2c039b=>[_0x33a512,_0x492329,{..._0xbe0d15,..._0x2c039b}],_0x3fd033,undefined,!![]);}[_0x2f6eaf(0x22b)](_0x4cd6e1,_0x5a43bf,_0x1bb839={}){const _0x43a584=_0x2f6eaf;return this['_n'](_0x43a584(0x22b),[_0x4cd6e1,_0x5a43bf,_0x6b2630(_0x1bb839)]);}[_0x2f6eaf(0x787)](_0x2088b1,_0xf49163={},_0x366cb5={}){const _0x460533=_0x2f6eaf,_0xa86206=_0x5b7d77(_0x366cb5);if(_0x366cb5){for(const _0x25fcc7 of Object[_0x460533(0x5e1)](_0x366cb5))if(_0x25fcc7!==_0x460533(0x581)&&typeof _0x366cb5[_0x25fcc7]===_0x460533(0x7c4))_0xa86206[_0x25fcc7]=null;}if(_0x366cb5&&(_0x366cb5[_0x460533(0x448)]||_0x366cb5['vector']))return this['_n'](_0x460533(0x5d9),[_0xa86206]),this[_0x460533(0x720)](_0x2088b1,_0xf49163,_0x366cb5);const _0xa8121e=typeof _0x366cb5[_0x460533(0x581)]===_0x460533(0x7c4)?_0x366cb5[_0x460533(0x581)]:null;if(_0x366cb5['near']||_0x16205e(_0xf49163)||_0x366cb5[_0x460533(0x241)]!==undefined){let _0x5caa04=this['_n'](_0x460533(0x787),[_0x2088b1,_0xf49163,_0xa86206]);if(_0xa8121e)_0x5caa04=_0x5caa04[_0x460533(0x1d9)](_0xa8121e);if(_0x366cb5['near']||_0x16205e(_0xf49163))return _0x5caa04;return _0x27dea0(_0x5caa04);}const _0x235b87=_0x447274=>typeof _0x447274==='number'&&Number[_0x460533(0x48b)](_0x447274)?Math[_0x460533(0x380)](0x0,_0x447274):Infinity;let _0x212d28;if(_0x366cb5['index']){const _0x4ec401=_0x39f2ab=>typeof _0x39f2ab==='number'&&_0x39f2ab>0x0?Math[_0x460533(0x5ae)](_0x39f2ab):0x0;_0x212d28=this['_lazyPinned'](_0x460533(0x787),_0x460533(0x787),_0x455473=>[_0x2088b1,_0xf49163,{..._0xa86206,..._0x455473}],null,{'limitOf':()=>_0x235b87(_0xa86206['limit']),'offsetOf':()=>_0x4ec401(_0xa86206[_0x460533(0x344)])});}else _0x212d28=_0x3ea05d(_0x5a5646=>{const _0x38d52f=_0x460533,{__after:_0x540c5f,..._0x174238}=_0x5a5646;return this[_0x38d52f(0x40b)]('query',_0x540c5f===undefined?[_0x2088b1,_0xf49163,_0x174238]:[_0x2088b1,_0xf49163,_0x174238,_0x540c5f]);},_0xa86206,_0x17196c=>_0x17196c[_0x460533(0x590)],{'limitOf':_0x235b87,'rows':!![],'prefetch':!![],'resumeOpts':(_0x24c591,_0x513c4d)=>{const _0x309735=_0x460533;_0x24c591[_0x309735(0x344)]=0x0,_0x24c591[_0x309735(0x17f)]=_0x513c4d;}});return _0xa8121e?_0x212d28[_0x460533(0x1d9)](_0xa8121e):_0x212d28;}async[_0x2f6eaf(0x720)](_0x1359ad,_0x231c59,_0xbf7174){const _0x3df3c6=_0x2f6eaf,{select:_0x56768f,..._0x37d90d}=_0x5b7d77(_0xbf7174);let _0x5e3d25={..._0x37d90d};const _0x58136e=_0x5e3d25[_0x3df3c6(0x545)];if(_0x58136e&&!Array[_0x3df3c6(0x17d)](_0x58136e)&&typeof _0x58136e===_0x3df3c6(0x4ed)&&_0x58136e[_0x3df3c6(0x49a)]){const {fields:_0x33494f,prefix:_0x4193b4,start:_0x260169,end:_0x52a1d5}=_0x58136e;_0x5e3d25={..._0x5e3d25,'index':_0x33494f,'prefix':_0x4193b4??_0x5e3d25[_0x3df3c6(0x619)],'startIndex':_0x260169??_0x5e3d25[_0x3df3c6(0x6dd)],'endIndex':_0x52a1d5??_0x5e3d25[_0x3df3c6(0x101)]};}const _0x47a594=await this[_0x3df3c6(0x6ff)][_0x3df3c6(0x22c)](_0x3df3c6(0x1e7),null,_0x3df3c6(0x7ca),[this[_0x3df3c6(0x5e6)],_0x1359ad,_0x231c59,_0x5e3d25],![]),_0x4f69c5=typeof _0xbf7174['select']==='function'?_0xbf7174['select']:null;if(!_0x4f69c5)return _0x47a594;return _0x47a594[_0x3df3c6(0x1d9)](_0x2134b6=>{const _0x5c422f=_0x3df3c6,{score:_0x3e351e,ftsScore:_0x32d646,numTerms:_0x48aab0,maxScore:_0x20372a,vectorScore:_0x7834a3,chunkHash:_0x3ca993,chunk:_0x5ec5ed,..._0x5e322c}=_0x2134b6,_0x534d2d=_0x4f69c5(_0x5e322c);for(const [_0x259d93,_0xd54be7]of Object[_0x5c422f(0x2d3)]({'score':_0x3e351e,'ftsScore':_0x32d646,'numTerms':_0x48aab0,'maxScore':_0x20372a,'vectorScore':_0x7834a3,'chunkHash':_0x3ca993,'chunk':_0x5ec5ed}))if(_0xd54be7!==undefined)_0x534d2d[_0x259d93]=_0xd54be7;return _0x534d2d;});}[_0x2f6eaf(0x204)](_0x2fd8f8,_0x50cc7b,_0x153851={}){const _0x28a705=_0x2f6eaf;let _0x22bdc8=this['_n'](_0x28a705(0x204),[_0x2fd8f8,_0x50cc7b,_0x5b7d77(_0x153851)]);if(typeof _0x153851[_0x28a705(0x581)]===_0x28a705(0x7c4))_0x22bdc8=_0x22bdc8[_0x28a705(0x1d9)](_0x153851[_0x28a705(0x581)]);return _0x22bdc8;}[_0x2f6eaf(0x41d)](_0x3afa4b=null,_0xe60f6b={}){const _0x950033=_0x2f6eaf;return this['_n'](_0x950033(0x41d),[_0x3afa4b]);}['getChanges'](_0x574eca=null,_0x2dafb1=0x0,_0x9156bf=Number['MAX_SAFE_INTEGER'],_0x25c4bf={}){const _0xf0fe0=_0x2f6eaf,_0x4304ba=_0x6b2630(_0x25c4bf);if(_0x25c4bf&&_0x25c4bf['transaction'])return _0x27dea0(this['_n'](_0xf0fe0(0xe4),[_0x574eca,_0x2dafb1,_0x9156bf,_0x4304ba]));return this[_0xf0fe0(0x2e4)](_0xf0fe0(0xe4),_0xf0fe0(0xe4),_0x30c004=>[_0x574eca,_0x2dafb1,_0x9156bf,{..._0x4304ba,..._0x30c004}],_0x25c4bf);}[_0x2f6eaf(0x70b)](_0x793f27){const _0x57fd91=_0x2f6eaf;if(Array['isArray'](_0x793f27))return _0x793f27[_0x57fd91(0x2a9)];let _0x147c32=0x0;for(const _0x3abad5 of _0x793f27)_0x147c32++;return _0x147c32;}*[_0x2f6eaf(0x65f)](_0x4e8007){yield*_0x4e8007;}[_0x2f6eaf(0x772)](){const _0x4fd50f=_0x2f6eaf;return requireOkdbHlc()['toMs'](this[_0x4fd50f(0xd9)]);}get[_0x2f6eaf(0x59e)](){const _0x437997=_0x2f6eaf,_0x83ad5=this['okdb'][_0x437997(0x2ab)]?this[_0x437997(0x6ff)][_0x437997(0x722)]('db',null,_0x437997(0x2ee),[this[_0x437997(0x5e6)]],![]):null;if(!_0x83ad5)return null;if(this['__ttlCancelledGen']===_0x83ad5[_0x437997(0x2f5)])return null;this[_0x437997(0x795)]=this[_0x437997(0x795)]||new Map();let _0x571be7=this[_0x437997(0x795)][_0x437997(0x1bc)](_0x83ad5[_0x437997(0x2f5)]);if(!_0x571be7){const _0x3d1f08=this;_0x571be7={'ref'(){},'unref'(){},'hasRef':()=>![],'gen':_0x83ad5[_0x437997(0x2f5)],'at':_0x83ad5['at'],'target':_0x83ad5[_0x437997(0x3df)],get '_destroyed'(){const _0x5aeeff=_0x437997,_0x100979=_0x3d1f08['okdb'][_0x5aeeff(0x2ab)]?_0x3d1f08['okdb'][_0x5aeeff(0x722)]('db',null,'ttlTimer',[_0x3d1f08[_0x5aeeff(0x5e6)]],![]):null;return!_0x100979||_0x100979[_0x5aeeff(0x2f5)]!==this[_0x5aeeff(0x2f5)]||_0x3d1f08[_0x5aeeff(0x2d2)]===this[_0x5aeeff(0x2f5)];}},this['_timerObjs']['set'](_0x83ad5[_0x437997(0x2f5)],_0x571be7);}return _0x571be7;}[_0x2f6eaf(0x32a)](){const _0xee35e4=_0x2f6eaf,_0x506186=this['okdb'][_0xee35e4(0x722)]('db',null,_0xee35e4(0x2ee),[this['name']],![]);if(_0x506186)this[_0xee35e4(0x2d2)]=_0x506186['gen'];}get[_0x2f6eaf(0x5e3)](){const _0x44dec0=_0x2f6eaf,_0x551dec=this[_0x44dec0(0x6ff)][_0x44dec0(0x722)]('db',null,_0x44dec0(0x2ee),[this['name']],![]);return _0x551dec?_0x551dec[_0x44dec0(0x3df)]:null;}get[_0x2f6eaf(0x10f)](){const _0x8e853b=_0x2f6eaf;return this['okdb'][_0x8e853b(0x722)]('db',null,_0x8e853b(0x72f),[this[_0x8e853b(0x5e6)]],![])?{'ref'(){},'unref'(){}}:null;}[_0x2f6eaf(0x4e9)](){const _0x53d812=_0x2f6eaf;this['okdb'][_0x53d812(0x722)]('db',null,_0x53d812(0x736),[this[_0x53d812(0x5e6)]],![]);}['_stopAutoCompactCheck'](){const _0x5355dc=_0x2f6eaf;this[_0x5355dc(0x6ff)][_0x5355dc(0x722)]('db',null,_0x5355dc(0x6fd),[this[_0x5355dc(0x5e6)]],![]);}get[_0x2f6eaf(0x30d)](){const _0x3a1394=_0x2f6eaf,_0x179e86=(_0x47de3a,_0x6b6afc)=>this[_0x3a1394(0x6ff)][_0x3a1394(0x722)]('db',null,_0x47de3a,[this[_0x3a1394(0x5e6)],..._0x6b6afc],![]),_0x519705=Object[_0x3a1394(0x5e1)](_0x179e86(_0x3a1394(0x345),[])||{}),_0x3beda5={};for(const _0x4a3c06 of _0x519705)Object[_0x3a1394(0x332)](_0x3beda5,_0x4a3c06,{'enumerable':!![],'get':()=>_0x179e86(_0x3a1394(0x345),[])?.[_0x4a3c06],'set':_0x56be16=>{_0x179e86('setAutoCompact',[_0x4a3c06,_0x56be16]);}});return _0x3beda5;}get[_0x2f6eaf(0xd9)](){const _0xb5f3dc=_0x2f6eaf;return this['_n'](_0xb5f3dc(0x7b6),[]);}[_0x2f6eaf(0x3ef)](_0x568107,_0x37d977){return require$$16['isDeepStrictEqual'](_0x568107,_0x37d977);}async['registerType'](_0x1302ba,_0x305cf4){const _0x519c12=_0x2f6eaf;return this[_0x519c12(0x137)](this['_n'](_0x519c12(0x735),[_0x1302ba]));}[_0x2f6eaf(0x2c9)](_0x48736){const _0x3bb68d=_0x2f6eaf;return this['_n'](_0x3bb68d(0x2c9),[_0x48736]);}[_0x2f6eaf(0x57b)](){return this['_n']('listTypes',[]);}async[_0x2f6eaf(0x1bb)](_0x49c137,_0x549b55){const _0x1dcd15=_0x2f6eaf;return this[_0x1dcd15(0x137)](this['_n']('dropType',[_0x49c137]));}async['ensureType'](_0x3c49c4,_0x27c179){const _0x4882e2=_0x2f6eaf,{timestamp:_0x23ed08,indexes:indexes=[]}=_0x3f7332(_0x27c179);return this[_0x4882e2(0x137)](this['_n'](_0x4882e2(0x5f2),[_0x3c49c4,{'indexes':indexes}]));}async[_0x2f6eaf(0x3fa)](_0x1efc9c){const _0x77472c=_0x2f6eaf,{type:_0xa182b5,indexes:indexes=[],fts:fts=[],views:views=[],schema:schema=null}=_0x3f7332(_0x1efc9c,'spec');if(!_0xa182b5)throw new Error(_0x77472c(0x3db));await this[_0x77472c(0x5f2)](_0xa182b5,{'indexes':indexes});for(const _0x5c10a9 of fts){const {name:_0x235f21,fields:_0x54c33d,..._0x40fff1}=_0x5c10a9;if(!_0x235f21||!_0x54c33d)throw new Error(_0x77472c(0x233));await this[_0x77472c(0x6ff)][_0x77472c(0x448)]['ensure'](_0xa182b5,_0x235f21,{'fields':_0x54c33d,..._0x40fff1},this);}for(const _0x7dda90 of views){const {name:_0x12b060,definition:_0x137d30}=_0x7dda90;if(!_0x12b060||!_0x137d30)throw new Error(_0x77472c(0x404));if(!await this[_0x77472c(0x7a3)][_0x77472c(0x2b6)](_0x12b060))await this[_0x77472c(0x7a3)][_0x77472c(0x748)](_0x12b060,_0x137d30);}if(schema)await this[_0x77472c(0x500)](_0xa182b5,schema);}async['registerIndex'](_0x5d9409,_0x27f538,_0x5ea266){const _0xf7ea67=_0x2f6eaf,_0x168053=this['_n'](_0xf7ea67(0x2e0),[_0x5d9409,_0x27f538,typeof _0x5ea266===_0xf7ea67(0x4ed)?_0x5ea266:{}]);if(!_0x168053)return this[_0xf7ea67(0x137)](undefined);const _0x1aab1b=this['_n']('resetIndexBegin',[_0x5d9409,_0x27f538,!![]]);if(_0x1aab1b===undefined)return this[_0xf7ea67(0x137)](undefined);return this[_0xf7ea67(0x137)](await this[_0xf7ea67(0x467)](_0x5d9409,_0x27f538,_0x1aab1b));}async[_0x2f6eaf(0x467)](_0x4a55c1,_0x3b8c71,_0x237bd2){const _0x4b4b53=_0x2f6eaf,_0x5c0767=_0x4a55c1+'@'+[][_0x4b4b53(0x70a)](_0x3b8c71)[_0x4b4b53(0x7d6)]('~');if(!this[_0x4b4b53(0x70e)])this[_0x4b4b53(0x70e)]=new Map();const _0x37ddcd=this[_0x4b4b53(0x70e)][_0x4b4b53(0x1bc)](_0x5c0767);if(_0x37ddcd)return _0x37ddcd;const _0x55f07a=((async()=>{const _0x484854=_0x4b4b53;do await new Promise(_0x229638=>setImmediate(_0x229638));while(!this['_n'](_0x484854(0x47c),[_0x4a55c1,_0x3b8c71,_0x237bd2,!![]]));})());this['_indexBuilds'][_0x4b4b53(0x48c)](_0x5c0767,_0x55f07a);try{return await _0x55f07a;}finally{this[_0x4b4b53(0x70e)][_0x4b4b53(0x7ec)](_0x5c0767);}}async[_0x2f6eaf(0x61c)](_0x34fbcf,_0x73185,_0x33f4a3){const _0x7d8d8c=_0x2f6eaf;return this[_0x7d8d8c(0x137)](this['_n']('dropIndex',[_0x34fbcf,_0x73185]));}async[_0x2f6eaf(0x480)](_0x20c03f,_0x52361a,_0x2c2e44){const _0x265d02=_0x2f6eaf,_0x5550bb=this[_0x265d02(0x70e)]&&this[_0x265d02(0x70e)][_0x265d02(0x1bc)](_0x20c03f+'@'+[][_0x265d02(0x70a)](_0x52361a)[_0x265d02(0x7d6)]('~'));if(_0x5550bb)return _0x5550bb;const _0x5acaf4=this['_n'](_0x265d02(0x2b0),[_0x20c03f,_0x52361a,_0x2c2e44]);if(_0x5acaf4===undefined)return;return await new Promise(_0x5e0f2f=>setImmediate(_0x5e0f2f)),this[_0x265d02(0x137)](await this[_0x265d02(0x467)](_0x20c03f,_0x52361a,_0x5acaf4));}[_0x2f6eaf(0x5fe)](_0x2cc8e0,_0x3fca9b){const _0x4d7419=_0x2f6eaf;return this['_n'](_0x4d7419(0x5fe),[_0x2cc8e0,_0x3fca9b]);}['getIndexStatus'](_0xa4ec3c,_0x842dad){const _0x3a0bba=_0x2f6eaf;return this['_n'](_0x3a0bba(0x76e),[_0xa4ec3c,_0x842dad]);}async[_0x2f6eaf(0x2ca)](_0x5bb6ef,_0x4a9dcc){const _0x3cf473=_0x2f6eaf;if(this['_n'](_0x3cf473(0x76e),[_0x5bb6ef,_0x4a9dcc])===_0x3cf473(0x158))return!![];let _0x3ff38a=0xa;for(;;){await new Promise(_0x325910=>setTimeout(_0x325910,_0x3ff38a));if(!this[_0x3cf473(0x6ff)][_0x3cf473(0x2ab)]||this[_0x3cf473(0x5a5)])return![];let _0x13c0bc;try{_0x13c0bc=this['_n']('getIndexMeta',[_0x5bb6ef,Array[_0x3cf473(0x17d)](_0x4a9dcc)?_0x4a9dcc[_0x3cf473(0x7d6)]('~'):String(_0x4a9dcc)[_0x3cf473(0x658)](',')['join']('~')]);}catch{return![];}const _0x17d39f=_0x13c0bc&&_0x13c0bc[_0x3cf473(0x5d2)];if(_0x17d39f===_0x3cf473(0x158))return!![];if(_0x17d39f===undefined)return![];_0x3ff38a=Math[_0x3cf473(0x165)](_0x3ff38a*0x2,0xfa);}}[_0x2f6eaf(0x6c5)](_0x2937b4,_0x2af45f){const _0x273fbb=_0x2f6eaf;return this['_n'](_0x273fbb(0x6c5),[_0x2937b4,_0x2af45f])??null;}[_0x2f6eaf(0x361)](_0x3021ca,_0x2c6870){const _0x5f3605=_0x2f6eaf;return this['_n'](_0x5f3605(0x361),[_0x3021ca,_0x2c6870]);}['hasUniqueViolations'](_0x34fd82,_0x37e2ee){return this['_n']('hasUniqueViolations',[_0x34fd82,_0x37e2ee]);}['getUniqueViolation'](_0x2d8291,_0x55e6e7,_0x4fdd57){return this['_n']('getUniqueViolation',[_0x2d8291,_0x55e6e7,_0x4fdd57])??null;}['getSchema'](_0x2f504b){return this['_n']('getSchema',[_0x2f504b])??null;}async[_0x2f6eaf(0x500)](_0x4e7929,_0x40951e){const _0x3054e5=_0x2f6eaf;return this[_0x3054e5(0x137)](this['_n'](_0x3054e5(0x500),[_0x4e7929,_0x40951e]));}async['dropSchema'](_0xba9f3c){const _0x2a5dd7=_0x2f6eaf;return this[_0x2a5dd7(0x137)](this['_n']('dropSchema',[_0xba9f3c]));}[_0x2f6eaf(0x2fb)](_0x58bc22,_0x2f6057){const _0x2270bd=_0x2f6eaf;return this['_n'](_0x2270bd(0x2fb),[_0x58bc22,_0x2f6057])??null;}['listViolations'](_0x304d1e){const _0x29a1a9=_0x2f6eaf;return this['_n'](_0x29a1a9(0x737),[_0x304d1e]);}[_0x2f6eaf(0x228)](_0x14f3d7,_0xd0b242,_0x1c26a1){const _0x35bc76=_0x2f6eaf;return this['_n'](_0x35bc76(0x228),[_0x14f3d7,_0xd0b242,_0x1c26a1])??null;}[_0x2f6eaf(0x119)](_0x39761a){const _0x11ef3e=_0x2f6eaf;return this['_n'](_0x11ef3e(0x119),[_0x39761a]);}async[_0x2f6eaf(0x5cf)](_0x4c0ce0,_0x9f7a79,_0xf671f1){const _0x27a611=_0x2f6eaf;return this[_0x27a611(0x137)](this['_n'](_0x27a611(0x5cf),[_0x4c0ce0,_0x9f7a79,_0xf671f1]));}[_0x2f6eaf(0xbf)](_0x225c36,_0x3d0707){const _0x2d7281=_0x2f6eaf;return this['_n'](_0x2d7281(0xbf),[_0x225c36,_0x3d0707]);}async[_0x2f6eaf(0x272)](_0x4614db,_0x54e053){const _0x57d9a6=_0x2f6eaf;return this[_0x57d9a6(0x137)](this['_n'](_0x57d9a6(0x272),[_0x4614db,_0x54e053]));}async[_0x2f6eaf(0xcf)](_0x3846c1){return this['_n']('sweepExpiredTTL',[_0x3846c1]);}['listTTL'](_0x4209eb={}){const _0x4cc84d=_0x2f6eaf;return this['_n'](_0x4cc84d(0x3ab),[_0x4209eb]);}[_0x2f6eaf(0xec)](_0xbbd6d2){return this['_n']('ttlStats',[_0xbbd6d2]);}async[_0x2f6eaf(0x2aa)](_0x3708c9,_0x512a55){const _0x5e04e5=_0x2f6eaf;return this[_0x5e04e5(0x137)](this['_n'](_0x5e04e5(0x2aa),[_0x3708c9,_0x512a55]));}[_0x2f6eaf(0x5d1)](_0x5c3453){const _0x4d88cb=_0x2f6eaf;return this['_n'](_0x4d88cb(0x5d1),[_0x5c3453]);}async[_0x2f6eaf(0x71d)](_0x2fd969){const _0x4537aa=_0x2f6eaf;return this[_0x4537aa(0x137)](this['_n'](_0x4537aa(0x71d),[_0x2fd969]));}async[_0x2f6eaf(0x428)](_0x56ff8b,_0x52674d,_0x538e2b,_0x146638){const _0x30268b=_0x2f6eaf,{batch:batch=null,batchSize:_0x4dd00f}=_0x3f7332(_0x146638);if(typeof _0x56ff8b!==_0x30268b(0x229)||!_0x56ff8b)throw new _0x58254e(_0x30268b(0x468),'BAD_PARAM');if(typeof _0x52674d!==_0x30268b(0x229)||!_0x52674d)throw new _0x58254e(_0x30268b(0x2b1),_0x30268b(0x64a));if(_0x538e2b!=null&&typeof _0x538e2b!==_0x30268b(0x7c4))throw new _0x58254e(_0x30268b(0x756),'BAD_PARAM');if(batch!=null&&typeof batch!=='function')throw new _0x58254e(_0x30268b(0x55b),_0x30268b(0x64a));if(!_0x538e2b&&!batch)throw new _0x58254e('resolveField:\x20a\x20resolver\x20or\x20options.batch\x20is\x20required','BAD_PARAM');if(_0x4dd00f!==undefined&&!(Number['isInteger'](_0x4dd00f)&&_0x4dd00f>0x0))throw new _0x58254e('resolveField:\x20options.batchSize\x20must\x20be\x20a\x20positive\x20integer',_0x30268b(0x64a));const _0x216143=batch?async _0x370555=>(await batch(_0x370555))[_0x30268b(0x1d9)](_0x13b66c=>_0x13b66c instanceof Error?{'__error':!![],'message':_0x13b66c[_0x30268b(0x18d)]}:_0x13b66c):null,_0xa545e2=_0x541c0b(this,_0x56ff8b,_0x52674d),_0x4579ab=this['_n']('resolveField',[_0x56ff8b,_0x52674d,_0x538e2b?(_0x5054e1,_0x49cd73)=>_0xa545e2(_0x538e2b,[_0x5054e1,_0x49cd73]):null,{'batch':_0x216143?_0x509da2=>_0xa545e2(_0x216143,[_0x509da2]):null,'batchSize':_0x4dd00f}]);return()=>this['_n']('removeResolver',[_0x4579ab]);}async[_0x2f6eaf(0x49c)](_0x2b62ff,_0xfd15e2){const _0x53ed74=_0x2f6eaf;return this['_n'](_0x53ed74(0x49c),[_0x2b62ff,_0xfd15e2]);}['resolvedFields'](_0x179e32){return this['_n']('resolvedFields',[_0x179e32]);}async['readField'](_0x560828,_0x37f7c7,_0x164165,_0x33fa8e){const _0x47183e=_0x2f6eaf;return this['okdb'][_0x47183e(0x22c)]('env',this['name'],'readField',[_0x560828,_0x37f7c7,_0x164165,_0x33fa8e],![]);}async[_0x2f6eaf(0x141)](_0x763a66,_0x55db19,_0x2bbad4){const _0x1b2826=_0x2f6eaf;return this[_0x1b2826(0x6ff)][_0x1b2826(0x22c)](_0x1b2826(0x3c4),this[_0x1b2826(0x5e6)],_0x1b2826(0x141),[_0x763a66,_0x55db19,_0x2bbad4],![]);}[_0x2f6eaf(0x6ae)](){}[_0x2f6eaf(0x27c)](_0x12fdcb,_0x25431e,_0x248ea3,_0x57623b={},_0x1c545d={}){const _0x33f9ad=_0x2f6eaf;return this['okdb'][_0x33f9ad(0x722)](_0x33f9ad(0x448),null,_0x33f9ad(0x27c),[_0x12fdcb,_0x25431e,_0x248ea3,_0x57623b,_0x1c545d,this[_0x33f9ad(0x5e6)]],![]);}get['fts'](){const _0x4a5d04=_0x2f6eaf;return this[_0x4a5d04(0x6ff)]['fts'];}[_0x2f6eaf(0x1a5)](){const _0x57cf9f=_0x2f6eaf;return this[_0x57cf9f(0x6ff)]['_call'](_0x57cf9f(0x3c4),this[_0x57cf9f(0x5e6)],_0x57cf9f(0x1a5),[],![]);}[_0x2f6eaf(0x126)](){const _0xfa8c96=_0x2f6eaf;return this[_0xfa8c96(0x6ff)][_0xfa8c96(0x126)]();}[_0x2f6eaf(0xc3)](){const _0x1db647=_0x2f6eaf;return this[_0x1db647(0x6ff)]['_call'](_0x1db647(0x3c4),this['name'],'writerStatus',[],![]);}['refreshReadTxn'](){}get[_0x2f6eaf(0x5a1)](){const _0x20e75c=_0x2f6eaf;return this['_locks']||(this['_locks']=new(requireLock())[(_0x20e75c(0x3d3))](this[_0x20e75c(0x6ff)],this[_0x20e75c(0x5e6)],_0x20e75c(0x3c4)));}[_0x2f6eaf(0x10b)](){const _0x2ec815=_0x2f6eaf;return this['okdb']['_call'](_0x2ec815(0x3c4),this['name'],_0x2ec815(0x10b),[],![]);}['_registerType'](_0x19a5df){this['_n']('registerType',[_0x19a5df]);}[_0x2f6eaf(0x198)](_0x2477b2){const _0xe81e33=_0x2f6eaf;this['_n'](_0xe81e33(0x69a),[_0x2477b2]);}['_ttlState'](){const _0x35ceb6=_0x2f6eaf;return this['_n'](_0x35ceb6(0x170),[]);}[_0x2f6eaf(0x45c)](_0x5f4f1b,_0x56ee40){return _0x5f4f1b+'\x09'+_0x56ee40;}[_0x2f6eaf(0x63e)](_0x1af769){const _0x23923a=_0x2f6eaf,_0x1f86d9=_0x1af769[_0x23923a(0x419)]('\x09');return{'type':_0x1af769[_0x23923a(0x331)](0x0,_0x1f86d9),'key':_0x1af769[_0x23923a(0x331)](_0x1f86d9+0x1)};}get['_ttlByKey'](){const _0x286a06=_0x2f6eaf;if(!this[_0x286a06(0x308)]()['enabled'])return null;return this[_0x286a06(0x669)]||(this['__ttlByKey']=new _0x1d2771(this,_0x286a06(0x18e)));}get[_0x2f6eaf(0x5c0)](){const _0x39e02b=_0x2f6eaf;if(!this[_0x39e02b(0x308)]()[_0x39e02b(0x671)])return null;return this[_0x39e02b(0x777)]||(this[_0x39e02b(0x777)]=new _0x1d2771(this,_0x39e02b(0x6b1),{'dupSort':!![]}));}[_0x2f6eaf(0x58e)](_0x1998ab,_0x2f2abe,_0x1b439e){const _0x5d644d=_0x2f6eaf;this['_n'](_0x5d644d(0x1e3),[_0x1998ab,_0x2f2abe,_0x1b439e]);}[_0x2f6eaf(0x6ef)](_0x412081,_0x1b1c68){const _0x3e2a11=_0x2f6eaf,_0x4b1c22=this[_0x3e2a11(0x76a)]?.[_0x3e2a11(0x1bc)](this[_0x3e2a11(0x45c)](_0x412081,_0x1b1c68));return _0x4b1c22!=null&&_0x4b1c22<=Date[_0x3e2a11(0x772)]();}get[_0x2f6eaf(0x31f)](){const _0x1d7d59=_0x2f6eaf;return this['_ttlState']()[_0x1d7d59(0x36b)]??null;}get[_0x2f6eaf(0x34b)](){const _0x2935fc=_0x2f6eaf;return this[_0x2935fc(0x308)]()[_0x2935fc(0x3b6)]||0x0;}get[_0x2f6eaf(0x27e)](){return![];}[_0x2f6eaf(0x302)](){}async[_0x2f6eaf(0x30a)](_0x26bf64,_0x30d030){const _0x478254=_0x2f6eaf;if(this[_0x478254(0x140)]){const {OKDBError:_0x2088e8}=requireErrors();throw new _0x2088e8(_0x478254(0x769),_0x478254(0x5ce));}this['_rebuilding']=!![];try{const _0x130d80={..._0x30d030||{},'repair':_0x26bf64===_0x478254(0x4e6)};this[_0x478254(0x6ff)][_0x478254(0x722)](_0x478254(0x3c4),this['name'],_0x478254(0x356),[_0x130d80]);const _0x21cf8e=this[_0x478254(0x6ff)][_0x478254(0x6bc)];while(this[_0x478254(0x6ff)][_0x478254(0x722)](_0x478254(0x3c4),this[_0x478254(0x5e6)],'compactPending',[],![]))await _0x21cf8e[_0x478254(0x519)](0xfa);return this[_0x478254(0x6ff)][_0x478254(0x722)](_0x478254(0x3c4),this[_0x478254(0x5e6)],_0x478254(0x47b),[],![]);}finally{this[_0x478254(0x140)]=![];}}async[_0x2f6eaf(0x693)](_0x1a3d0d={}){const _0x205130=_0x2f6eaf;return this[_0x205130(0x30a)](_0x205130(0x693),_0x1a3d0d);}async[_0x2f6eaf(0x4e6)](_0x3e2623={}){return this['_rebuild']('repair',_0x3e2623);}}_0x4919b6[_0x2f6eaf(0x1be)]=_0x5927de;function _0x16205e(_0xd29273){const _0x153787=_0x2f6eaf;if(!_0xd29273||typeof _0xd29273!=='object')return![];for(const _0x107d69 of Object[_0x153787(0x5e1)](_0xd29273)){const _0x1bdd40=_0xd29273[_0x107d69];if(_0x1bdd40&&typeof _0x1bdd40===_0x153787(0x4ed)&&(_0x1bdd40[_0x153787(0x11d)]||_0x1bdd40[_0x153787(0x3da)]))return!![];}return![];}function _0x6b2630(_0x328e49){const _0x5bac09=_0x2f6eaf;if(!_0x328e49||typeof _0x328e49!==_0x5bac09(0x4ed))return{};const _0x15012f={};for(const _0x306f99 of Object[_0x5bac09(0x5e1)](_0x328e49)){if(_0x306f99===_0x5bac09(0x241)||_0x306f99==='snapshot')continue;_0x15012f[_0x306f99]=_0x328e49[_0x306f99];}return _0x15012f;}function _0x5b7d77(_0xde0e27){const _0x2d13c8=_0x2f6eaf;if(!_0xde0e27||typeof _0xde0e27!==_0x2d13c8(0x4ed))return{};const _0x4973eb={};for(const _0xf7d703 of Object[_0x2d13c8(0x5e1)](_0xde0e27)){if(typeof _0xde0e27[_0xf7d703]===_0x2d13c8(0x7c4))continue;_0x4973eb[_0xf7d703]=_0xde0e27[_0xf7d703];}return _0x4973eb;}return env={'OKDBEnv':_0x4919b6,'HIGH_SENTINEL':_0x5927de},env;}var unsupported,hasRequiredUnsupported;function requireUnsupported(){if(hasRequiredUnsupported)return unsupported;hasRequiredUnsupported=0x1;const {NotImplementedNative:_0x4a5013}=requireErrors();function _0x5b7d25(_0x377e95){const _0x13bd32=_0x31c186=>{throw new _0x4a5013(_0x377e95,_0x31c186);};return new Proxy(function(){},{'get'(_0x28d4bf,_0x28a5bc){const _0x59637c=_0x41a2;if(typeof _0x28a5bc===_0x59637c(0x445)||_0x28a5bc===_0x59637c(0x583)||_0x28a5bc==='toJSON'||_0x28a5bc===_0x59637c(0x3d1))return undefined;if(_0x28a5bc===_0x59637c(0x5c9))return _0x377e95;return(..._0x245fb8)=>_0x13bd32(_0x377e95+'.'+String(_0x28a5bc));},'apply'(){_0x13bd32(_0x377e95);},'set'(){return!![];}});}return unsupported={'notImplemented':_0x5b7d25},unsupported;}var http,hasRequiredHttp;function requireHttp(){const _0x2199d7=_0x431d06;if(hasRequiredHttp)return http;hasRequiredHttp=0x1;function _0x1921b7(_0x1318e7,_0x411622={}){const _0x47dd08=_0x41a2,_0x3d4cce=[];let _0x5e8705=![];_0x1318e7[_0x47dd08(0x323)]('/*')&&(_0x5e8705=!![],_0x1318e7=_0x1318e7[_0x47dd08(0x331)](0x0,-0x2),_0x3d4cce[_0x47dd08(0x540)]('*'));let _0x238497=_0x1318e7['replace'](/\/+$/,'')[_0x47dd08(0x782)](/\[([^\]]*)\]/g,(_0xac6f60,_0x572ec2)=>{const _0x2c4e14=_0x47dd08,_0x489861=_0x572ec2[_0x2c4e14(0x782)](/\/:(\w+)(?:=([^/\]\s]*))?/g,(_0x36db28,_0x1246c6)=>{const _0x3992e1=_0x2c4e14;return _0x3d4cce['push'](_0x1246c6),_0x3992e1(0x639);});return _0x2c4e14(0x781)+_0x489861+')?';})[_0x47dd08(0x782)](/\/:(\w+)/g,(_0x506f58,_0x263bec)=>{return _0x3d4cce['push'](_0x263bec),'/([^/]+)';});if(_0x238497==='')_0x238497='/';return{'keys':_0x3d4cce,'defaults':_0x411622||{},'wildcard':_0x5e8705,'regex':new RegExp('^'+_0x238497+(_0x5e8705?_0x47dd08(0x155):'')+_0x47dd08(0x608))};}const _0x45e9ae=require$$0$3,{PassThrough:_0x442f92}=require$$1;function _0x37d94c(_0x5a646d){const _0x1d76e5=_0x41a2,_0x269748=_0x5a646d[_0x1d76e5(0x390)](':'),_0x21575c=_0x5a646d[_0x1d76e5(0x331)](0x0,_0x269748)[_0x1d76e5(0x782)](/^\[|\]$/g,'');return{'address':_0x21575c,'family':_0x21575c[_0x1d76e5(0x4e5)](':')?_0x1d76e5(0x1f3):_0x1d76e5(0x29e),'port':Number(_0x5a646d[_0x1d76e5(0x331)](_0x269748+0x1))};}class _0xb0c0db extends _0x45e9ae['Server']{constructor(_0x2fc3a0,_0x47c136){const _0x6b230=_0x41a2;super(),this['_http']=_0x2fc3a0,this[_0x6b230(0x72d)]=_0x37d94c(_0x47c136),this[_0x6b230(0x21a)]=!![],this[_0x6b230(0x4ec)]=setInterval(()=>{},0x7fffffff);}get[_0x2199d7(0x21a)](){const _0x2f4a67=_0x2199d7;return this[_0x2f4a67(0xfa)];}set['listening'](_0x3bc3aa){this['_listening']=_0x3bc3aa;}['address'](){const _0x56377e=_0x2199d7;return this[_0x56377e(0x21a)]?{...this[_0x56377e(0x72d)]}:null;}[_0x2199d7(0x246)](){const _0x5c09be=_0x2199d7;if(this['_keepAlive'])clearInterval(this[_0x5c09be(0x4ec)]);this[_0x5c09be(0x4ec)]=null;}[_0x2199d7(0x498)](_0x51c180){const _0x3ee1ca=_0x2199d7;this[_0x3ee1ca(0x246)]();const _0x1660f8=this['_http'][_0x3ee1ca(0x498)]();if(_0x51c180)_0x1660f8[_0x3ee1ca(0x583)](()=>_0x51c180(),_0x51c180);return this;}['ref'](){const _0xf37fa1=_0x2199d7;return this['_keepAlive']?.[_0xf37fa1(0x75d)](),this;}['unref'](){const _0x546c59=_0x2199d7;return this['_keepAlive']?.[_0x546c59(0x490)](),this;}}class _0x356cd6{constructor(_0x2e7989){const _0x3a4838=_0x2199d7;this[_0x3a4838(0x6ff)]=_0x2e7989,this['servers']=[],this[_0x3a4838(0x642)]={'cookieName':'okdb_session'};}get[_0x2199d7(0x422)](){const _0x259178=_0x2199d7;return this[_0x259178(0x5b7)][0x0]||null;}['_n'](_0x5c33a6,_0x44eb35=[]){const _0x31ab68=_0x2199d7;return this[_0x31ab68(0x6ff)][_0x31ab68(0x22c)]('http',null,_0x5c33a6,_0x44eb35,!![]);}async['handle'](_0x1fb20f,_0x409d84,_0x598f88={},_0x8deee7={}){const _0x3f8070=_0x2199d7;let _0x248b39=await this['_n'](_0x3f8070(0x747),[_0x1fb20f,_0x409d84,_0x598f88,_0x8deee7]),_0x1330ef=0x0;return _0x248b39=await this[_0x3f8070(0x2fc)](_0x248b39,_0x1330ef),_0x248b39;}async[_0x2199d7(0x2fc)](_0x2bd60b,_0x3bba32){const _0x58c2a6=_0x2199d7;while(_0x2bd60b&&typeof _0x2bd60b===_0x58c2a6(0x4ed)&&_0x2bd60b[_0x58c2a6(0x5db)]!==undefined){await new Promise(_0x2868a3=>setTimeout(_0x2868a3,_0x3bba32<0x5?0x1:0x5)),_0x3bba32++,_0x2bd60b=await this['_n']('handleResult',[_0x2bd60b[_0x58c2a6(0x5db)]]);}if(_0x2bd60b&&_0x2bd60b[_0x58c2a6(0x66b)]&&typeof _0x2bd60b[_0x58c2a6(0x66b)]===_0x58c2a6(0x4ed)&&_0x2bd60b['body']['$streamId']!==undefined)_0x2bd60b[_0x58c2a6(0x66b)]=this['_stream'](_0x2bd60b['body'][_0x58c2a6(0x561)]);return _0x2bd60b;}['_stream'](_0x4ed890){const _0xd2e412=_0x2199d7,_0x10b974=new _0x442f92();let _0x624723=![];const _0x4c29d2=()=>{const _0x405f75=_0x41a2;if(_0x624723)return;_0x624723=!![],clearTimeout(_0x2f5d74),setImmediate(()=>this[_0x405f75(0x6ff)][_0x405f75(0x2ab)]&&this['okdb'][_0x405f75(0x722)](_0x405f75(0x1c8),null,_0x405f75(0x605),[_0x4ed890],!![]));};let _0x2f5d74=null;const _0x3e7751=()=>{const _0x59f280=_0x41a2;if(_0x624723)return;let _0x36b02a;try{_0x36b02a=this[_0x59f280(0x6ff)][_0x59f280(0x722)]('http',null,_0x59f280(0x514),[_0x4ed890],!![]);}catch{_0x36b02a={'chunks':[],'end':!![]};}for(const _0x57fb8e of _0x36b02a[_0x59f280(0x429)])_0x10b974['write'](_0x57fb8e);if(_0x36b02a[_0x59f280(0x4cd)]){_0x624723=!![],_0x10b974[_0x59f280(0x4cd)]();return;}_0x2f5d74=setTimeout(_0x3e7751,_0x36b02a['chunks'][_0x59f280(0x2a9)]?0x0:0xa);};_0x10b974['on'](_0xd2e412(0x498),_0x4c29d2),_0x3e7751();if(!_0x624723)_0x3e7751();if(_0x624723)_0x10b974[_0xd2e412(0x309)]();else{if(!_0x2f5d74)_0x2f5d74=setTimeout(_0x3e7751,0x0);}return _0x10b974;}[_0x2199d7(0x3a8)](_0x36387f,_0x5ed076,_0xd13cfc,_0x12a437={}){const _0x2bd1b5=_0x2199d7;return this[_0x2bd1b5(0x6ff)][_0x2bd1b5(0x722)](_0x2bd1b5(0x1c8),null,_0x2bd1b5(0x3a8),[_0x36387f,_0x5ed076,_0xd13cfc,_0x12a437,![]],!![]),this;}[_0x2199d7(0x564)](_0x2ba630,_0xb18e12,_0x1052d3,_0x579f8b={}){const _0x58dac8=_0x2199d7;return this[_0x58dac8(0x6ff)][_0x58dac8(0x722)](_0x58dac8(0x1c8),null,_0x58dac8(0x3a8),[_0x2ba630,_0xb18e12,_0x1052d3,_0x579f8b,!![]],!![]),this;}[_0x2199d7(0x26c)](_0x4c3b6a,_0x520226){const _0x5dc156=_0x2199d7,_0xe3ba7a=async _0x4a6c50=>{const _0x2ec5d8=_0x41a2,_0x5dcae7={'status':undefined,'headers':[],'hasBody':![],'body':undefined},_0x3d861d={'status'(_0x1c9b32){const _0x2c24c6=_0x41a2;return _0x5dcae7[_0x2c24c6(0x5d2)]=_0x1c9b32,_0x3d861d;},'setHeader'(_0x2d393f,_0x46944a){const _0x22a773=_0x41a2;_0x5dcae7[_0x22a773(0xee)]['push']([_0x2d393f,_0x46944a]);},'send'(_0x463ab1){const _0x156126=_0x41a2;_0x5dcae7[_0x156126(0x151)]=!![],_0x5dcae7[_0x156126(0x66b)]=_0x463ab1;}};_0x4a6c50[_0x2ec5d8(0x42c)]={'remoteAddress':_0x4a6c50[_0x2ec5d8(0x474)]??null};const _0x11ed97=await _0x520226(_0x4a6c50,_0x3d861d);return{'allowed':_0x11ed97!==![],..._0x5dcae7};};this[_0x5dc156(0x6ff)][_0x5dc156(0x722)](_0x5dc156(0x1c8),null,_0x5dc156(0x26c),[_0xe316fa=>!!_0x4c3b6a(_0xe316fa),_0xe3ba7a],!![]);}[_0x2199d7(0x7be)](_0x488b71){const _0x32f140=_0x2199d7,_0xf6cf94=async _0x4088f3=>{const _0x10a907=_0x41a2,_0x381e34={'status':undefined,'headers':[],'hasBody':![],'body':undefined};let _0x1b1854=![];const _0x46c764={'status'(_0x389a1f){const _0x469829=_0x41a2;return _0x381e34[_0x469829(0x5d2)]=_0x389a1f,_0x46c764;},'setHeader'(_0x163c20,_0x3066f3){const _0xe92c1b=_0x41a2;_0x381e34[_0xe92c1b(0xee)][_0xe92c1b(0x540)]([_0x163c20,_0x3066f3]);},'send'(_0x5c993d){const _0x3e6a3f=_0x41a2;_0x381e34[_0x3e6a3f(0x151)]=!![],_0x381e34[_0x3e6a3f(0x66b)]=_0x5c993d;}};return _0x4088f3[_0x10a907(0x42c)]={'remoteAddress':_0x4088f3[_0x10a907(0x474)]??null},await _0x488b71(_0x4088f3,_0x46c764,async()=>{_0x1b1854=!![];}),{'allowed':_0x1b1854,..._0x381e34};};return this[_0x32f140(0x6ff)][_0x32f140(0x722)](_0x32f140(0x1c8),null,_0x32f140(0x7be),[_0xf6cf94],!![]),this;}get[_0x2199d7(0x599)](){const _0xc4d13e=_0x2199d7;return this[_0xc4d13e(0x6ff)][_0xc4d13e(0x722)](_0xc4d13e(0x1c8),null,'getMaxBodyBytes',[],![]);}set['maxBodyBytes'](_0x25b11d){const _0x19fab4=_0x2199d7;this['okdb'][_0x19fab4(0x722)](_0x19fab4(0x1c8),null,_0x19fab4(0x49f),[Number(_0x25b11d)],![]);}[_0x2199d7(0x754)](_0x3d034c,_0x14a231,_0x298566={}){const _0x4d3fad=_0x2199d7,_0x2625ad=new Map(),_0x7e2203=(_0x43fb89,_0xbb0101)=>this['okdb'][_0x4d3fad(0x722)]('http',null,_0x43fb89,_0xbb0101,![]),_0x151d5c=_0x42defe=>{const _0x55059b=_0x4d3fad,{connId:_0x620293}=_0x42defe;if(_0x42defe[_0x55059b(0x1ff)]){const _0x444d82=_0x2625ad[_0x55059b(0x1bc)](_0x620293);_0x2625ad['delete'](_0x620293);if(typeof _0x444d82==='function')_0x444d82();return;}const _0xea8da3=(_0x1237aa,_0x4c869b,_0xac64d3={})=>{const _0x274aee=_0x55059b;try{_0x7e2203(_0x274aee(0x240),[_0x620293,_0x1237aa,_0x4c869b,_0xac64d3]);}catch{}},_0x585d5c=()=>{try{_0x7e2203('sseClose',[_0x620293]);}catch{}},_0x573352=(_0x352248,_0x2b6452)=>_0x7e2203(_0x55059b(0x2a7),[_0x620293,String(_0x352248),String(_0x2b6452)]),_0x5c7b40={'auth':{'open':_0x42defe['authOpen'],'isAuthenticated':_0x42defe[_0x55059b(0x4a7)]}},_0x3f4195=_0x14a231({'send':_0xea8da3,'close':_0x585d5c,'params':_0x42defe['params']??{},'query':_0x42defe[_0x55059b(0x787)]??{},'headers':_0x42defe[_0x55059b(0xee)]??{},'context':_0x5c7b40,'setHeader':_0x573352});_0x2625ad[_0x55059b(0x48c)](_0x620293,_0x3f4195);};return this[_0x4d3fad(0x6ff)]['_call'](_0x4d3fad(0x1c8),null,_0x4d3fad(0x754),[_0x3d034c,_0x151d5c,_0x298566],!![]),this;}get[_0x2199d7(0x594)](){const _0x189a77=_0x2199d7;return this[_0x189a77(0x368)]();}[_0x2199d7(0x368)](){const _0x2d5acf=_0x2199d7;return this[_0x2d5acf(0x6ff)][_0x2d5acf(0x722)](_0x2d5acf(0x1c8),null,'listRoutes',[],![])['map'](_0x5475b1=>({..._0x5475b1,'matcher':_0x1921b7(_0x5475b1['path'],_0x5475b1[_0x2d5acf(0x19a)])}));}['validateRouteInput'](_0xd5aa79,_0x2ff84d){const _0x8d1634=_0x2199d7;return this['okdb'][_0x8d1634(0x722)]('http',null,'validateRouteInput',[_0xd5aa79,_0x2ff84d],![]);}[_0x2199d7(0x339)](_0x6c5f2f,_0x30dd0e={}){const _0x1b48cd=_0x2199d7;if(typeof _0x30dd0e===_0x1b48cd(0x229)||Array[_0x1b48cd(0x17d)](_0x30dd0e))_0x30dd0e={'host':_0x30dd0e};_0x30dd0e=_0x30dd0e??{};if((Number(_0x30dd0e[_0x1b48cd(0x719)])||0x0)>=0x1||_0x30dd0e[_0x1b48cd(0x766)]!=null||_0x30dd0e['primaryOkdb']!=null){const _0x214af7=new Error(_0x1b48cd(0xe8)+_0x1b48cd(0x2a8)+'CLI\x20(`okdb\x20listen`),\x20or\x20use\x20Node\x27s\x20built-in\x20`cluster`\x20module\x20and\x20call\x20'+_0x1b48cd(0x6d3));_0x214af7[_0x1b48cd(0x30f)]=_0x1b48cd(0x69b);throw _0x214af7;}if(this[_0x1b48cd(0x5b7)]['length'])throw new Error(_0x1b48cd(0x6d2));const _0x474d5d=_0x30dd0e[_0x1b48cd(0x6b5)]==null?[undefined]:[][_0x1b48cd(0x70a)](_0x30dd0e[_0x1b48cd(0x6b5)]);if(!_0x474d5d[_0x1b48cd(0x2a9)]||_0x474d5d[_0x1b48cd(0x31e)](_0x35a59b=>_0x35a59b!==undefined&&(typeof _0x35a59b!==_0x1b48cd(0x229)||!_0x35a59b))){const _0xf4e735=new Error(_0x1b48cd(0x199));_0xf4e735[_0x1b48cd(0x30f)]=_0x1b48cd(0x666);throw _0xf4e735;}const _0x582e7c=require$$2[_0x1b48cd(0x79d)]?{..._0x30dd0e,'reuseport':!![]}:_0x30dd0e,_0x18124a=this[_0x1b48cd(0x6ff)][_0x1b48cd(0x722)]('http',null,'listen',[_0x6c5f2f,_0x582e7c],!![]),_0x58021c=_0x18124a['port']??_0x6c5f2f,_0x564be3=_0x30dd0e[_0x1b48cd(0x6b5)]==null?':'+_0x58021c:_0x474d5d[_0x1b48cd(0x1d9)](_0x46dc4c=>(_0x46dc4c[_0x1b48cd(0x4e5)](':')?'['+_0x46dc4c+']':_0x46dc4c)+':'+_0x58021c)[_0x1b48cd(0x7d6)](',\x20');try{this[_0x1b48cd(0x6ff)][_0x1b48cd(0x4e7)][_0x1b48cd(0x5de)](_0x564be3);if(!require(_0x1b48cd(0x56c))[_0x1b48cd(0x79d)])this[_0x1b48cd(0x6ff)][_0x1b48cd(0x4e7)]['register']({'kind':_0x1b48cd(0x73b),'listenAddr':_0x564be3});}catch{}this[_0x1b48cd(0x5b7)]=_0x18124a[_0x1b48cd(0x1b4)]['map'](_0x5369c6=>new _0xb0c0db(this,_0x5369c6));const _0x5b09a5=this[_0x1b48cd(0x5b7)][0x0];return process[_0x1b48cd(0x5ab)](()=>this[_0x1b48cd(0x5b7)][_0x1b48cd(0x64d)](_0x553bff=>_0x553bff[_0x1b48cd(0x36e)](_0x1b48cd(0x21a)))),_0x5b09a5;}async['close'](_0x62af82={}){const _0x3ee8ee=_0x2199d7,_0x593c55=this['servers'];this[_0x3ee8ee(0x5b7)]=[];if(require$$2[_0x3ee8ee(0x79d)]&&!process[_0x3ee8ee(0x24a)]&&_0x62af82[_0x3ee8ee(0x7ad)]==null)_0x62af82={..._0x62af82,'forceAfterMs':Infinity};if(_0x593c55['length']){const _0x14c4f2=_0x62af82['forceAfterMs']===Infinity?Infinity:Number['isFinite'](_0x62af82[_0x3ee8ee(0x7ad)])?Math[_0x3ee8ee(0x380)](0x0,_0x62af82[_0x3ee8ee(0x7ad)]):0x3e8,_0xdc2818=Date['now']();while(this['okdb'][_0x3ee8ee(0x722)](_0x3ee8ee(0x1c8),null,'pendingResponses',[],!![])>0x0&&Date[_0x3ee8ee(0x772)]()-_0xdc2818<_0x14c4f2)await new Promise(_0x118400=>setTimeout(_0x118400,0x5));_0x62af82={..._0x62af82,'forceAfterMs':_0x14c4f2===Infinity?0x3e8:Math[_0x3ee8ee(0x380)](0x0,_0x14c4f2-(Date[_0x3ee8ee(0x772)]()-_0xdc2818))};}await this['_n'](_0x3ee8ee(0x498),[_0x62af82]);for(const _0x274d94 of _0x593c55){_0x274d94[_0x3ee8ee(0x246)](),_0x274d94['listening']=![],_0x274d94[_0x3ee8ee(0x36e)](_0x3ee8ee(0x498));}}}return http={'OKDBHttp':_0x356cd6},http;}var fts,hasRequiredFts;function requireFts(){const _0x42f433=_0x431d06;if(hasRequiredFts)return fts;hasRequiredFts=0x1;const _0x2c8868=_0x527c3e=>(_0x527c3e&&typeof _0x527c3e==='object'?_0x527c3e[_0x42f433(0x5e6)]:_0x527c3e)??'default';class _0x3e4308{constructor(_0x5ba04b){const _0x1fb25b=_0x42f433;this[_0x1fb25b(0x6ff)]=_0x5ba04b;}['_n'](_0x3f6b0d,_0xd3db77,_0x32345a=![]){const _0x4ea816=_0x42f433;return this[_0x4ea816(0x6ff)]['_call'](_0x4ea816(0x448),null,_0x3f6b0d,_0xd3db77,_0x32345a);}[_0x42f433(0x5a0)](_0x4a671d,_0x1c8b3f){return this['okdb']['_callMacro']('fts',null,_0x4a671d,_0x1c8b3f,!![]);}get[_0x42f433(0x61a)](){const _0x5807de=this,_0x578b28=_0x3f5ddf=>{const _0x32619c=_0x41a2,_0x49bec5=_0x3f5ddf['indexOf'](':'),_0x830086=_0x3f5ddf[_0x32619c(0x331)](0x0,_0x49bec5),_0x4ad23c=_0x5807de[_0x32619c(0x6ff)][_0x32619c(0x446)][_0x32619c(0x1bc)](_0x830086);if(!_0x4ad23c)return undefined;const _0x54ebad=_0x4ad23c['processor'][_0x32619c(0x58d)]()[_0x32619c(0x207)](_0x41ec04=>_0x41ec04['cursorKey']===_0x32619c(0xcc)+_0x3f5ddf);if(!_0x54ebad)return undefined;return _0x4ad23c[_0x32619c(0xf8)]['_stopFor'](_0x54ebad['id'],_0x54ebad['cursorKey']);};return{'get':_0x578b28,'has':_0x3038d1=>!!_0x578b28(_0x3038d1)};}get[_0x42f433(0x276)](){return[];}[_0x42f433(0x391)](){const _0x4aba91=_0x42f433,{RawDb:_0x15d612}=requireRawdb();return new _0x15d612(this['okdb'][_0x4aba91(0x508)],_0x4aba91(0x168));}['has'](_0x5966e0,_0x1bd2a0,_0x5a2e61){const _0x4d6a52=_0x42f433;return this['_n'](_0x4d6a52(0x614),[_0x5966e0,_0x1bd2a0,_0x2c8868(_0x5a2e61)]);}[_0x42f433(0x5d2)](_0x4687e4,_0x235fe0,_0x48c787){const _0x39bafb=_0x42f433;return this['_n'](_0x39bafb(0x5d2),[_0x4687e4,_0x235fe0,_0x2c8868(_0x48c787)]);}[_0x42f433(0x58d)](_0x529b48,_0x333009){const _0x1914b3=_0x42f433;return this['_n'](_0x1914b3(0x58d),[_0x529b48,_0x2c8868(_0x333009)]);}async['_build'](_0x3fe21d,_0x1e377b,_0xa06b41,_0x1fe4e4,_0xd6c15f){const _0x34d74e=_0x42f433,_0x191368=(_0x26d808,_0x5c4537)=>this[_0x34d74e(0x6ff)][_0x34d74e(0x22c)]('fts',null,_0x26d808,_0x5c4537,!![],![]),_0x5dbde6=Date[_0x34d74e(0x772)]()+0x1d4c0;let _0x501c3b=_0x3fe21d,_0x4d204b=_0x1e377b;for(;;){try{return await _0x191368(_0x501c3b,_0x4d204b);}catch(_0x575749){if(_0x575749[_0x34d74e(0x30f)]===_0x34d74e(0x5f7)){_0x501c3b=_0x34d74e(0x42a),_0x4d204b=[_0xa06b41,_0x1fe4e4,_0x2c8868(_0xd6c15f)];if(_0x575749[_0x34d74e(0x38a)]&&_0x575749['details'][_0x34d74e(0x325)])await new Promise(_0x5647b8=>setTimeout(_0x5647b8,0x2));continue;}if(_0x575749['code']!==_0x34d74e(0x2db)||Date[_0x34d74e(0x772)]()>=_0x5dbde6)throw _0x575749;}await new Promise(_0x3999b9=>setTimeout(_0x3999b9,0x5)),_0x501c3b='reset',_0x4d204b=[_0xa06b41,_0x1fe4e4,!![],_0x2c8868(_0xd6c15f)];}}async['register'](_0x4525cf,_0xaa474,_0x4da489,_0x2f6b9b,_0x4dce8f){const _0x481b72=_0x42f433;return this[_0x481b72(0x5bf)](_0x481b72(0xb9),[_0x4525cf,_0xaa474,_0x4da489,_0x2f6b9b,_0x2c8868(_0x4dce8f)],_0x4525cf,_0xaa474,_0x4dce8f);}async['drop'](_0x2e97a8,_0xd0b4d,_0x57b4fa){const _0x5b119c=_0x42f433;return this[_0x5b119c(0x5a0)](_0x5b119c(0x2e7),[_0x2e97a8,_0xd0b4d,_0x2c8868(_0x57b4fa)]);}async[_0x42f433(0x3fa)](_0x1191d1,_0x5f0b45,_0x359d4e,_0x4b51f3){const _0x615769=_0x42f433;return this[_0x615769(0x5bf)](_0x615769(0x3fa),[_0x1191d1,_0x5f0b45,_0x359d4e,_0x2c8868(_0x4b51f3)],_0x1191d1,_0x5f0b45,_0x4b51f3);}async[_0x42f433(0x60f)](_0x170b31,_0x19f311,_0x595895,_0x6741c1){const _0x4f59c5=_0x42f433;return this[_0x4f59c5(0x5bf)](_0x4f59c5(0x60f),[_0x170b31,_0x19f311,_0x595895,_0x2c8868(_0x6741c1)],_0x170b31,_0x19f311,_0x6741c1);}async['_waitNative'](_0x174e57,_0x42c233,_0x50a1ff,_0x57129d=0x1d4c0){const _0x32027a=_0x42f433,_0x4da388=Date['now']()+_0x57129d;for(;;){try{return await this[_0x32027a(0x5a0)](_0x174e57,[..._0x42c233,0x1]);}catch(_0x281e3c){if(_0x281e3c['code']!==_0x50a1ff||Date[_0x32027a(0x772)]()>=_0x4da388)throw _0x281e3c;}await new Promise(_0x9be01=>setTimeout(_0x9be01,0x2));}}async[_0x42f433(0x158)](_0x15d3b5,_0x47074c,_0x25a3dc){const _0x1bb800=_0x42f433;return this[_0x1bb800(0x7a6)](_0x1bb800(0x158),[_0x15d3b5,null,_0x2c8868(_0x25a3dc)],'FTS_READY_TIMEOUT');}async[_0x42f433(0x69e)](_0x1f3e8e,_0xccc819){const _0x1ba1f0=_0x42f433;return this[_0x1ba1f0(0x7a6)](_0x1ba1f0(0x69e),[_0x1f3e8e,_0x2c8868(_0xccc819)],_0x1ba1f0(0x721));}async[_0x42f433(0x693)](_0x427889,_0x45126a){const _0x3d9eb9=_0x42f433;return this[_0x3d9eb9(0x5a0)](_0x3d9eb9(0x693),[_0x427889,_0x2c8868(_0x45126a)]);}async[_0x42f433(0x7b5)](_0x147dea={}){const _0xf7a585=_0x42f433;return this['_nm'](_0xf7a585(0x7b5),[_0x147dea]);}async['compactStorage'](_0x1cf209){const _0x1bf0cf=_0x42f433;return this[_0x1bf0cf(0x5a0)]('compactStorage',[_0x2c8868(_0x1cf209)]);}[_0x42f433(0x3ac)](_0x56c2e6){const _0x595d5a=_0x42f433;return this['_n'](_0x595d5a(0x3ac),[_0x2c8868(_0x56c2e6)]);}['search'](_0x31ff46,_0x186953,_0x4e6697,_0x228d7f,_0x5ddfee){const _0x43c142=_0x42f433;return this['_n'](_0x43c142(0x292),[_0x31ff46,_0x186953,_0x4e6697,_0x228d7f||{},_0x2c8868(_0x5ddfee)]);}[_0x42f433(0x38c)](_0x4d6605,_0x3ca9bf,_0x1266a9,_0x4cd748,_0x632be6,_0x1f19f3){const _0x59d03c=_0x42f433;return this['_n'](_0x59d03c(0x38c),[_0x4d6605,_0x3ca9bf,_0x1266a9,_0x4cd748||{},_0x2c8868(_0x632be6),_0x1f19f3]);}[_0x42f433(0x3a7)](_0x4dd88d,_0x23f8c7,_0xdcb148,_0x4271d7,_0x3d039b){const _0x4b803f=_0x42f433;return this['_n'](_0x4b803f(0x570),[_0x4dd88d,_0x23f8c7,_0xdcb148,_0x4271d7||{},_0x2c8868(_0x3d039b)]);}['listFtsEnvs'](){const _0x48b325=_0x42f433;return this['_n'](_0x48b325(0x657),[]);}async[_0x42f433(0x423)](){const _0x5407e5=_0x42f433;return this[_0x5407e5(0x5a0)](_0x5407e5(0x423),[]);}}return fts={'OKDBFts':_0x3e4308},fts;}var embeddings,hasRequiredEmbeddings;function requireEmbeddings(){const _0x388f44=_0x431d06;if(hasRequiredEmbeddings)return embeddings;hasRequiredEmbeddings=0x1;const {OKDBError:_0x3bef74,invalidArgument:_0x3205bb}=requireErrors();requireBridge();const _0x48f65c=Object[_0x388f44(0x4f8)]({'EMBEDDER':_0x388f44(0x472),'INDEXER':_0x388f44(0x320),'SEARCH':_0x388f44(0x621),'WORKER':_0x388f44(0x4cc)}),_0x1d0a7b=_0x857bd5=>typeof _0x857bd5===_0x388f44(0x229)||_0x857bd5==null?_0x857bd5:Array[_0x388f44(0x295)](_0x857bd5);class _0x15f899{constructor(_0x47cdd0){const _0xe1a4f8=_0x388f44;this[_0xe1a4f8(0x6ff)]=_0x47cdd0,this[_0xe1a4f8(0x588)]=new Map(),this['_jsSchemas']=new Map(),this[_0xe1a4f8(0x279)]=new Map();}['_n'](_0xf29662,_0x4b826d=[],_0xa58699=!![]){const _0x2ede1f=_0x388f44;return this[_0x2ede1f(0x6ff)]['_call'](_0x2ede1f(0x1e7),null,_0xf29662,_0x4b826d,_0xa58699);}[_0x388f44(0x5a0)](_0x1c2fb4,_0x2500f2=[]){const _0x13b0a0=_0x388f44;return this['okdb'][_0x13b0a0(0x22c)](_0x13b0a0(0x1e7),null,_0x1c2fb4,_0x2500f2,!![]);}['_wrap'](_0x5f55ff){const _0x40e503=_0x388f44;return _0x5f55ff?this['okdb'][_0x40e503(0x7bc)][_0x40e503(0x180)](_0x5f55ff):null;}[_0x388f44(0x5e5)](_0x4ea5d1,_0x26ee61,_0x219d84={}){const _0x2a003f=_0x388f44;if(typeof _0x26ee61!==_0x2a003f(0x7c4))throw new _0x3bef74('Embedder\x20factory\x20must\x20be\x20a\x20function',_0x2a003f(0x64a),{'name':_0x4ea5d1});this[_0x2a003f(0x588)][_0x2a003f(0x48c)](_0x4ea5d1,_0x26ee61),this['_jsSchemas']['set'](_0x4ea5d1,_0x219d84);const _0x505695=this[_0x2a003f(0x6ff)],_0x390544=_0x2b9aad=>_0x26ee61(_0x2b9aad,_0x505695);_0x390544[_0x2a003f(0x293)]=_0x505695,this['_n'](_0x2a003f(0x5e5),[_0x4ea5d1,_0x390544,_0x219d84??{}],![]);}[_0x388f44(0x2f3)](_0x5360e8){const _0x71b129=_0x388f44,_0x46affe=this[_0x71b129(0x588)]['get'](_0x5360e8);if(_0x46affe)return _0x46affe;if(!this['_n']('hasEmbedderFactory',[_0x5360e8],![]))return null;const _0x4ffdf1=this;return(_0x2d51b5={})=>{const _0x509858=_0x71b129,_0x104b9f=_0x4ffdf1['_n'](_0x509858(0x14b),[_0x5360e8,_0x2d51b5],![]),_0x1b29dd=_0x4ffdf1['_n'](_0x509858(0x4bf),[_0x104b9f],![]),_0x3a91e7=(_0x57ad77,_0x4229c5)=>_0x4ffdf1['_n'](_0x509858(0x615),[_0x104b9f,_0x57ad77,_0x4229c5],![]),_0x55cd3f={'embed':async _0x416aec=>Float32Array[_0x509858(0x295)](_0x3a91e7(_0x509858(0x4f5),_0x416aec)),'start':async()=>_0x3a91e7(_0x509858(0x432)),'stop':async()=>{const _0x257e3c=_0x509858;_0x3a91e7(_0x257e3c(0x4ff)),_0x3a91e7(_0x257e3c(0x17e));}};if(_0x1b29dd)_0x55cd3f['embedBatch']=async _0x421aad=>_0x3a91e7('embedBatch',_0x421aad)['map'](_0x5df7b6=>Float32Array[_0x509858(0x295)](_0x5df7b6));return _0x55cd3f;};}[_0x388f44(0x326)](_0x5bea7d){const _0x217cd2=_0x388f44;return this[_0x217cd2(0x333)][_0x217cd2(0x1bc)](_0x5bea7d)??this['_n'](_0x217cd2(0x326),[_0x5bea7d],![])??undefined;}[_0x388f44(0x7c9)](_0x4809fc,_0x7c213d,_0x3e0022={}){const _0x1bac6f=_0x388f44;if(typeof _0x7c213d!==_0x1bac6f(0x7c4))throw new _0x3bef74(_0x1bac6f(0x3ff),'BAD_PARAM',{'name':_0x4809fc});this['_n'](_0x1bac6f(0x7c9),[_0x4809fc,(_0x35d37e,_0x296eb5)=>_0x7c213d(_0x35d37e,_0x296eb5),_0x3e0022??{}],![]);}[_0x388f44(0x3e8)](){return this['_n']('listAlgorithms',[],![]);}['registerPreparer'](_0x58e9e4,_0x4e9f1f){const _0x532b74=_0x388f44;if(typeof _0x4e9f1f!==_0x532b74(0x7c4))throw new _0x3bef74(_0x532b74(0x340),'BAD_PARAM',{'name':_0x58e9e4});this['_n']('registerPreparer',[_0x58e9e4,_0x4e9f1f]);}[_0x388f44(0x741)](_0x7aeb29,_0x3342f6){const _0x3e5b55=_0x388f44;if(typeof _0x3342f6!=='function')throw new _0x3bef74(_0x3e5b55(0x708),'BAD_PARAM',{'name':_0x7aeb29});this['_n']('registerChunkStrategy',[_0x7aeb29,_0x3342f6]);}[_0x388f44(0x38e)](_0xf74024){const _0x51e9cc=_0x388f44;if(_0xf74024==null)return this['_n']('setStorageResolver',[null],![]);if(typeof _0xf74024!==_0x51e9cc(0x7c4))throw new _0x3bef74(_0x51e9cc(0x2c8),_0x51e9cc(0x64a));const _0x380387=this[_0x51e9cc(0x6ff)];this['_n'](_0x51e9cc(0x38e),[_0x445f78=>_0xf74024(_0x445f78,_0x380387)],![]);}async[_0x388f44(0x3af)](_0x357898,_0xcb444={},_0xad1ef3={},_0x2a9827=null){const _0x3aa1c0=_0x388f44;return this[_0x3aa1c0(0x180)](await this['_nm'](_0x3aa1c0(0x3af),[_0x357898,_0xcb444,_0xad1ef3,_0x2a9827]));}async[_0x388f44(0x282)](_0xe6a09b,_0x4ff12f={},_0x38622b={}){const _0x1ec04e=_0x388f44;return this[_0x1ec04e(0x180)](await this[_0x1ec04e(0x5a0)](_0x1ec04e(0x282),[_0xe6a09b,_0x4ff12f,_0x38622b]));}async[_0x388f44(0x413)](_0x3be8b2,_0x456426={},_0x5d63f0={}){const _0x3dd3a3=_0x388f44;return this['_wrap'](await this[_0x3dd3a3(0x5a0)](_0x3dd3a3(0x413),[_0x3be8b2,_0x456426,_0x5d63f0]));}async['createWorker'](_0x45a7b2,_0x5780a3={},_0x2d7516={}){const _0x53262d=_0x388f44;return this['_wrap'](await this[_0x53262d(0x5a0)](_0x53262d(0x53b),[_0x45a7b2,_0x5780a3,_0x2d7516]));}async[_0x388f44(0x75e)](_0x5a3485,_0x3ba319={},_0x208741={}){const _0x7d86c6=_0x388f44,_0x122cb2=await this[_0x7d86c6(0x5a0)](_0x7d86c6(0x75e),[_0x5a3485,_0x3ba319,_0x208741]);return{'embedder':this[_0x7d86c6(0x180)](_0x122cb2['embedder']),'indexer':this[_0x7d86c6(0x180)](_0x122cb2[_0x7d86c6(0x320)]),'worker':this['_wrap'](_0x122cb2[_0x7d86c6(0x7eb)]),'search':this['_wrap'](_0x122cb2[_0x7d86c6(0x292)]),'api':this['_makePipelineApi'](_0x122cb2[_0x7d86c6(0x33a)],_0x122cb2[_0x7d86c6(0x472)][_0x7d86c6(0x5e6)],_0x122cb2[_0x7d86c6(0x7eb)]?_0x122cb2[_0x7d86c6(0x7eb)]['name']:_0x122cb2[_0x7d86c6(0x33a)]+_0x7d86c6(0x5fa))};}[_0x388f44(0x703)](_0x5e3537,_0x5cccee){const _0x277075=_0x388f44;return this[_0x277075(0x6ff)]['engines'][_0x277075(0x28f)](_0x5e3537,_0x5cccee)?.[_0x277075(0x7d5)]??null;}[_0x388f44(0x472)](_0x2c05a8){const _0x94f74b=_0x388f44,_0xd36445=this[_0x94f74b(0x703)](_0x48f65c[_0x94f74b(0x324)],_0x2c05a8);if(!_0xd36445)return null;const _0x50ef75=this,_0x51c400=_0x518b14=>Array['isArray'](_0x518b14)&&Array[_0x94f74b(0x17d)](_0x518b14[0x0])?_0x518b14[_0x94f74b(0x1d9)](_0x14ccdb=>Float32Array[_0x94f74b(0x295)](_0x14ccdb)):Float32Array['from'](_0x518b14);return new Proxy(_0xd36445,{'get'(_0x966ae6,_0x37683b){const _0x50621a=_0x94f74b;if(_0x37683b===_0x50621a(0x6b9))return _0x50ef75[_0x50621a(0x6ff)][_0x50621a(0x722)](_0x50621a(0x7bc),null,_0x50621a(0x44a),[_0x48f65c[_0x50621a(0x324)],_0x2c05a8,_0x50621a(0x6b9),[]],![])[_0x50621a(0x6f0)];if(_0x37683b===_0x50621a(0x4f5))return async _0x37fe9e=>_0x51c400(await _0xd36445[_0x50621a(0x4f5)](_0x37fe9e));if(_0x37683b===_0x50621a(0x679))return async _0x51e5bf=>(await _0xd36445[_0x50621a(0x679)](_0x51e5bf))[_0x50621a(0x1d9)](_0xee68a8=>Float32Array['from'](_0xee68a8));return _0x966ae6[_0x37683b];}});}[_0x388f44(0x320)](_0x1eed52){const _0x38feab=_0x388f44;return this[_0x38feab(0x703)](_0x48f65c[_0x38feab(0x182)],_0x1eed52);}[_0x388f44(0x7eb)](_0x2a0735){const _0x6c4973=_0x388f44;return this[_0x6c4973(0x703)](_0x48f65c[_0x6c4973(0x2fa)],_0x2a0735);}[_0x388f44(0x292)](_0xbeaee6){const _0x575d18=_0x388f44,_0x25dca=this[_0x575d18(0x703)](_0x48f65c['SEARCH'],_0xbeaee6);if(_0x25dca)return _0x25dca;return this['_localViewApi'](_0xbeaee6);}[_0x388f44(0x5d3)](_0x486a72){const _0x4c9aca=_0x388f44,_0x1398d6=this;return{'search':(_0xe70a30,_0x18c9e1={})=>_0x1398d6['okdb']['_callMacro'](_0x4c9aca(0x1e7),null,_0x4c9aca(0x292),[_0x486a72,_0x1d0a7b(_0xe70a30),_0x18c9e1],![]),'stats':async()=>_0x1398d6['_n'](_0x4c9aca(0x6e8),[_0x486a72],![]),'count':()=>_0x1398d6['_n'](_0x4c9aca(0x2cb),[_0x486a72,_0x4c9aca(0x70b)],![])};}async[_0x388f44(0x38c)](_0x257dab,_0x19c327,_0x13e9ea={}){const _0x2abbd5=_0x388f44,{limit:limit=0xa,..._0x4aa397}=_0x13e9ea;return this[_0x2abbd5(0x5a0)](_0x2abbd5(0x38c),[_0x257dab,_0x1d0a7b(_0x19c327),{..._0x4aa397,'limit':limit}]);}[_0x388f44(0x484)](_0x3c90b3){const _0x59db08=_0x388f44;return this['_n'](_0x59db08(0x484),[_0x3c90b3],![]);}[_0x388f44(0xd1)](_0x585375,_0x1cce58){return this['_n']('durableEngineDoc',[_0x585375,_0x1cce58],![]);}[_0x388f44(0x24d)](_0x117c3f){const _0x45ae02=_0x388f44;return this['_n'](_0x45ae02(0x43f),[_0x117c3f],![]);}async[_0x388f44(0x336)](_0xb20c3a){return this['_n']('durableStats',[_0xb20c3a],![]);}async['_durableIndexerDocs'](_0x4b088,_0x304982={}){const _0x16ad0d=_0x388f44;return this['_n'](_0x16ad0d(0x14c),[_0x4b088,_0x304982],![]);}async['_durableIndexerDoc'](_0x4806f6,_0xbf0c41){const _0x32a8ca=_0x388f44;return this['_n'](_0x32a8ca(0x67b),[_0x4806f6,_0xbf0c41],![]);}async[_0x388f44(0x452)](_0x1e5193,_0x2e5604,_0x2b11f1,_0x3fb535){const _0x1fd5ca=_0x388f44;if(_0x1e5193!=null&&typeof _0x1e5193[_0x1fd5ca(0x4e5)]!==_0x1fd5ca(0x7c4))throw _0x3205bb(_0x1fd5ca(0x5e6),_0x1fd5ca(0x4d8),_0x1e5193);if(!_0x1e5193||!_0x2b11f1)return null;return this[_0x1fd5ca(0x6ff)][_0x1fd5ca(0x22c)](_0x1fd5ca(0x1e7),null,'describeChunk',[_0x1e5193,_0x2e5604,_0x2b11f1,_0x3fb535??null],![]);}async['durableMarkDone'](_0x55c509,_0xd2ba3,_0x100ada={}){const _0x3aa629=_0x388f44,_0x1c3bed={..._0x100ada};if(_0x1c3bed[_0x3aa629(0x692)])_0x1c3bed[_0x3aa629(0x692)]=Array['from'](_0x1c3bed[_0x3aa629(0x692)]);return this['_n'](_0x3aa629(0x6f2),[_0x55c509,_0xd2ba3,_0x1c3bed]);}async[_0x388f44(0x1ec)](_0x305329,_0x49a11d,_0x3b2cd9,_0x263535={}){return this['_n']('durableMarkFail',[_0x305329,_0x49a11d,_0x3b2cd9,_0x263535]);}async[_0x388f44(0x277)](_0x5de92d,_0x2d2b35){return this['_n']('durableMarkDelete',[_0x5de92d,_0x2d2b35]);}async['durableRetryDoc'](_0x4b3bd5,_0x47aa57){const _0x13da46=_0x388f44;return this['_n'](_0x13da46(0x641),[_0x4b3bd5,_0x47aa57]);}async[_0x388f44(0x265)](_0x35d7d5,_0x447560={}){const _0x24a635=_0x388f44;return this['_n'](_0x24a635(0x265),[_0x35d7d5,_0x447560]);}async[_0x388f44(0x132)](_0x473cf6){return this['_nm']('durableRebuild',[_0x473cf6]);}async[_0x388f44(0x2c5)](_0x54127b){const _0x1ec36d=_0x388f44;return this['_n'](_0x1ec36d(0x676),[_0x54127b],![]);}['vectorStoreStats'](_0x5cc461){const _0xb59640=_0x388f44;return this['_n'](_0xb59640(0x505),[_0x5cc461],![]);}[_0x388f44(0x3d6)](){const _0x563f0b=_0x388f44;return this['_n'](_0x563f0b(0x3d6),[],![]);}[_0x388f44(0x352)](_0x164be2,_0x1b7ac5){const _0x5d35e2=_0x388f44,_0x59f047=this['_n'](_0x5d35e2(0x352),[_0x164be2,_0x1b7ac5],![]);return _0x59f047==null?null:Float32Array['from'](_0x59f047);}[_0x388f44(0x23c)](_0xde94af,_0x4b0ba3){return this['_n']('resolveModelDims',[_0xde94af,_0x4b0ba3??null],![])??undefined;}async[_0x388f44(0x197)](_0x553a5f,_0x5a2807,_0x1a5c3d,_0x2f8fff=''){const _0x5c9983=_0x388f44;return this['_n'](_0x5c9983(0x197),[_0x553a5f,_0x5a2807,_0x1a5c3d,_0x2f8fff]);}[_0x388f44(0x48e)](_0x2eef73=null){const _0x3e6111=_0x388f44;return this['_n'](_0x3e6111(0x48e),[_0x2eef73],![]);}[_0x388f44(0x7b1)](){const _0x4d4a0b=_0x388f44;return this['_n'](_0x4d4a0b(0x7b1),[],![]);}async[_0x388f44(0x209)](_0x45721a,_0x1a5951){const _0x2bf408=_0x388f44;return this['_n'](_0x2bf408(0x291),[_0x45721a,_0x1a5951],![]),this[_0x2bf408(0x6ff)][_0x2bf408(0x7d0)]('~'+_0x45721a+_0x2bf408(0x3b4)+_0x1a5951);}async[_0x388f44(0x752)](_0x41ba07,_0x43ce1b){const _0xf66936=_0x388f44;return await this['_ensureTypeEnv'](_0x41ba07,_0x43ce1b),{'adapter':_0x3a8da8=>this[_0xf66936(0x262)](_0x41ba07,_0x43ce1b,_0x3a8da8)};}[_0x388f44(0x262)](_0xa607b9,_0x5ba06c,_0x5d02f6){const _0x1dfd19=this;return{async 'put'(_0x1fbfe1,_0x553c0f){const _0x45a5b4=_0x41a2;return _0x1dfd19['_n'](_0x45a5b4(0x4e3),[_0xa607b9,_0x5ba06c,_0x5d02f6,_0x1fbfe1,Array[_0x45a5b4(0x295)](_0x553c0f)]);},async 'remove'(_0x1a0c46){const _0x384bf6=_0x41a2;return _0x1dfd19['_n'](_0x384bf6(0x171),[_0xa607b9,_0x5ba06c,_0x5d02f6,_0x1a0c46]);}};}get[_0x388f44(0x195)](){const _0xb516c0=_0x388f44,_0x5b379d=this,_0x3e9651=()=>_0x5b379d['_n']('localViewNames',[],![]),_0x4d4ba5=_0x5ac638=>{const _0x2d463c=_0x41a2,_0x34ed8b=_0x38e0e5=>_0x5b379d['_n'](_0x2d463c(0x2cb),[_0x5ac638,_0x38e0e5],![]);return{'name':_0x5ac638,'_evict':async()=>_0x34ed8b(_0x2d463c(0x384)),'evict':async()=>_0x34ed8b(_0x2d463c(0x384)),'snapshot':async()=>_0x34ed8b(_0x2d463c(0x65b)),'_snapshot':async()=>_0x34ed8b('snapshot'),'rebuild':async()=>_0x34ed8b(_0x2d463c(0x273)),'stats':()=>_0x34ed8b(_0x2d463c(0x39b)),get 'count'(){const _0x2fcfa1=_0x2d463c;return _0x34ed8b(_0x2fcfa1(0x70b));},get 'loaded'(){const _0x3d9fa2=_0x2d463c;return _0x34ed8b(_0x3d9fa2(0x4d5));}};};return{get 'size'(){return _0x3e9651()['length'];},'has':_0x447121=>_0x3e9651()[_0xb516c0(0x4e5)](_0x447121),'get':_0x337949=>_0x3e9651()['includes'](_0x337949)?_0x4d4ba5(_0x337949):undefined,'keys':()=>_0x3e9651()[Symbol['iterator']](),'values':()=>_0x3e9651()[_0xb516c0(0x1d9)](_0x4d4ba5)[Symbol[_0xb516c0(0x6b7)]](),[Symbol['iterator']]:()=>_0x3e9651()[_0xb516c0(0x1d9)](_0x362759=>[_0x362759,_0x4d4ba5(_0x362759)])[Symbol['iterator']]()};}async[_0x388f44(0x432)](){}async['stop'](){const _0x1848de=_0x388f44;this['_n'](_0x1848de(0x4ff),[]);}[_0x388f44(0x403)](_0x592de9,_0x5159c2,_0x4c994){const _0x3e38a5=_0x388f44;return{'search':(_0x1667bf,_0x3a9cc8={})=>{const _0x4db9dd=_0x41a2,_0x4a9177=this['search'](_0x592de9);if(!_0x4a9177)throw new Error('vector-search\x20engine\x20not\x20running:\x20\x22'+_0x592de9+'\x22');return _0x4a9177[_0x4db9dd(0x292)](_0x1667bf,_0x3a9cc8);},'searchDocs':(_0x56153e,_0xb19907={})=>this[_0x3e38a5(0x38c)](_0x592de9,_0x56153e,_0xb19907),'flush':_0x37f004=>{const _0x2b7024=_0x3e38a5,_0x3abab3=this[_0x2b7024(0x320)](_0x592de9);if(!_0x3abab3)throw new Error(_0x2b7024(0x300)+_0x592de9+'\x22');return _0x3abab3[_0x2b7024(0x69e)](_0x37f004);},'stats':async()=>({'embedder':await this[_0x3e38a5(0x472)](_0x5159c2)?.[_0x3e38a5(0x625)]?.(),'indexer':await this[_0x3e38a5(0x320)](_0x592de9)?.[_0x3e38a5(0x39b)]?.(),'worker':await this[_0x3e38a5(0x7eb)](_0x4c994)?.['stats']?.(),'search':await this['search'](_0x592de9)?.[_0x3e38a5(0x39b)]?.()})};}}return embeddings={'OKDBEmbeddings':_0x15f899,'ENGINE_TYPES':_0x48f65c},embeddings;}var auth,hasRequiredAuth;function requireAuth(){const _0x658c0d=_0x431d06;if(hasRequiredAuth)return auth;hasRequiredAuth=0x1;const {invalidArgument:_0x481bd5}=requireErrors();class _0x316f08{constructor(_0x58c7c2){this['okdb']=_0x58c7c2;}['_n'](_0x401b8e,_0x5ac765=[],_0x5a97df=![]){const _0x562198=_0x41a2;return this[_0x562198(0x6ff)][_0x562198(0x722)](_0x562198(0x642),null,_0x401b8e,_0x5ac765,_0x5a97df);}[_0x658c0d(0x5a0)](_0x14e05e,_0xe0a15e=[]){const _0x38dc74=_0x658c0d;return this['okdb']['_callMacro'](_0x38dc74(0x642),null,_0x14e05e,_0xe0a15e,![]);}get[_0x658c0d(0x520)](){const _0x2e6764=_0x658c0d;return this['_n'](_0x2e6764(0x520));}get[_0x658c0d(0xfd)](){return this['_n']('isSetupMode');}get[_0x658c0d(0x535)](){const _0x5ae830=_0x658c0d;return this[_0x5ae830(0x6ff)][_0x5ae830(0x2f0)][_0x5ae830(0x642)]?.[_0x5ae830(0x2a4)]||{};}[_0x658c0d(0x4d3)](_0x2e01e7){return this['_n']('isOAuthEmailAllowed',[_0x2e01e7??null]);}[_0x658c0d(0x376)](_0x4fbbe7){const _0x4ef7f2=_0x658c0d;return this['_n'](_0x4ef7f2(0x595),[_0x4fbbe7??null]);}[_0x658c0d(0x788)](_0x555d4e){const _0x2cb89b=_0x658c0d;return this['_n'](_0x2cb89b(0x2f8),[_0x555d4e??null]);}[_0x658c0d(0x45a)](){const _0x489499=_0x658c0d;return this['_n'](_0x489499(0x7a7));}['getOpenWarning'](){return this['_n']('getOpenWarning');}[_0x658c0d(0x2fe)](){const _0x4003c6=_0x658c0d;return this['_n'](_0x4003c6(0x2fe));}[_0x658c0d(0x425)](_0x5dc61d){const _0x4def78=_0x658c0d;return this['_n'](_0x4def78(0x425),[_0x5dc61d]);}[_0x658c0d(0x4be)](_0x17a0dc){const _0x33af15=_0x658c0d;return this['_n'](_0x33af15(0x4be),[_0x17a0dc]);}[_0x658c0d(0x7ae)](_0x5f2441){const _0xfc7dab=_0x658c0d;if(_0x5f2441!=null&&typeof _0x5f2441!=='string')throw _0x481bd5(_0xfc7dab(0x492),_0xfc7dab(0x4d8),_0x5f2441);return this['_n']('parseBearer',[_0x5f2441??null]);}async[_0x658c0d(0x60e)](){const _0x4e0754=_0x658c0d;return this['_n'](_0x4e0754(0x42d),[],!![]);}async[_0x658c0d(0x696)](_0x2246d8){const _0x3b4e63=_0x658c0d;return this['_n'](_0x3b4e63(0x3e1),[_0x2246d8]);}async[_0x658c0d(0x620)](_0x892cd3){const _0x3ecf37=_0x658c0d;return this['_n'](_0x3ecf37(0x466),[_0x892cd3]);}async[_0x658c0d(0x40c)](_0x21748f){const _0x2634d4=_0x658c0d;return this['_n'](_0x2634d4(0x5e2),[_0x21748f]);}async[_0x658c0d(0x451)](_0x5a8704){const _0xbfece2=_0x658c0d,_0x1e322d=_0x5a8704?.[_0xbfece2(0xee)]||{};return this['_n'](_0xbfece2(0x451),[{'remoteAddress':_0x5a8704['socket']?.['remoteAddress']??null,'internal':_0x5a8704?.[_0xbfece2(0x1fb)]?.['internal']===!![],'authorization':_0x1e322d[_0xbfece2(0x313)]??null,'cookies':_0x5a8704?.[_0xbfece2(0x2f1)]??{}}]);}async[_0x658c0d(0x504)](_0x2ed85d,_0x2b0901){const _0xbc203a=_0x658c0d;return this[_0xbc203a(0x5a0)]('login',[_0x2ed85d??null,_0x2b0901??null]);}async[_0x658c0d(0x7dc)](_0x4daa48,_0x16985b,_0x5000f8){const _0x583272=_0x658c0d;return this['_nm'](_0x583272(0x7dc),[_0x4daa48??null,_0x16985b??null,_0x5000f8??null]);}[_0x658c0d(0x32d)](){const _0x5b4e98=_0x658c0d;return this['_n'](_0x5b4e98(0x32d));}[_0x658c0d(0x111)](){const _0x3356e7=_0x658c0d;return this['_n'](_0x3356e7(0x111));}[_0x658c0d(0x49b)](_0x3fea01={},_0x36405f=0x927c0){const _0x21ed10=_0x658c0d;return this['_n'](_0x21ed10(0x49b),[_0x3fea01,_0x36405f]);}['consumeLoginState'](_0x4aecac){return this['_n']('consumeLoginState',[_0x4aecac]);}async['_validateOidcAccessToken'](_0x296bbd,_0x433f4d={}){const _0x26c7ab=_0x658c0d;return this[_0x26c7ab(0x5a0)](_0x26c7ab(0xf4),[_0x296bbd,_0x433f4d]);}async[_0x658c0d(0x5aa)](_0x5299c8={}){const _0xd13a81=_0x658c0d;return this[_0xd13a81(0x5a0)]('getOidcDiscovery',[_0x5299c8]);}[_0x658c0d(0x363)](_0x4e6c25){const _0x56996d=_0x658c0d;return this['_n'](_0x56996d(0x60c),[_0x4e6c25]);}}return auth={'OKDBAuth':_0x316f08},auth;}var sync,hasRequiredSync;function requireSync(){const _0x320c83=_0x431d06;if(hasRequiredSync)return sync;hasRequiredSync=0x1;const {RawDb:_0x4fef95}=requireRawdb();class _0x33b00f{constructor(_0x4d56c6){this['_s']=_0x4d56c6;}get[_0x320c83(0x2f7)](){const _0x7f99d7=_0x320c83;return this['_ack']||(this[_0x7f99d7(0x252)]=new _0x4fef95(this['_s'][_0x7f99d7(0x6ff)][_0x7f99d7(0x508)],_0x7f99d7(0x6bd)));}[_0x320c83(0x5f8)](){const _0x423151=_0x320c83;return this[_0x423151(0x2f7)];}['_ensureDbs'](){const _0x2ab3d0=_0x320c83;return this[_0x2ab3d0(0x2f7)];}['_n'](_0x570ba9,_0x4a31c2=[]){return this['_s']['_n']('gc.'+_0x570ba9,_0x4a31c2);}[_0x320c83(0x71b)](_0x3cb6c2,_0x4ccf90){const _0x56fbe8=_0x320c83;return this['_n'](_0x56fbe8(0x71b),[_0x3cb6c2,_0x4ccf90]);}async[_0x320c83(0x1ae)](_0x35e276){const _0x575502=_0x320c83;return this['_n'](_0x575502(0x1ae),[_0x35e276]);}['getPeerAcks'](){return this['_n']('getPeerAcks');}[_0x320c83(0x6ea)](_0x4112a7){return this['_n']('getGcHorizon',[_0x4112a7]);}async[_0x320c83(0x2b8)](){return this['_n']('runGc');}[_0x320c83(0x39f)](){const _0x44dd3e=_0x320c83;return this['_n'](_0x44dd3e(0x39f));}[_0x320c83(0x432)](){const _0x49853=_0x320c83;return this['_n'](_0x49853(0x432));}[_0x320c83(0x4ff)](){return this['_n']('stop');}get[_0x320c83(0x327)](){try{return this['_n']('timerArmed')?{}:null;}catch{return null;}}}class _0x574b25{constructor(_0xdd36ce){const _0x45e198=_0x320c83;this[_0x45e198(0x6ff)]=_0xdd36ce,this['gc']=new _0x33b00f(this);const _0x383ec7=this;this[_0x45e198(0x2f0)]=new Proxy({},{'get':(_0x4e762f,_0x47b624)=>typeof _0x47b624===_0x45e198(0x229)?_0x383ec7['_n'](_0x45e198(0x2f0))[_0x47b624]:undefined,'set':(_0xd2dc3d,_0x45bd4d,_0x35bbd1)=>{const _0x59b4b4=_0x45e198;if(_0x45bd4d==='address')_0x383ec7['_n'](_0x59b4b4(0x32f),[_0x35bbd1??null]);else{if(_0x45bd4d===_0x59b4b4(0x143))_0x383ec7['_n'](_0x59b4b4(0x512),[_0x35bbd1??null]);else{if(_0x45bd4d===_0x59b4b4(0x75c))_0x383ec7['_n'](_0x59b4b4(0x789),[_0x35bbd1]);}}return!![];},'ownKeys':()=>Object[_0x45e198(0x5e1)](_0x383ec7['_n'](_0x45e198(0x2f0))),'getOwnPropertyDescriptor':(_0x245bc4,_0x277f7b)=>({'enumerable':!![],'configurable':!![],'value':_0x383ec7['_n'](_0x45e198(0x2f0))[_0x277f7b]}),'has':(_0xa1356b,_0x596cd1)=>_0x596cd1 in _0x383ec7['_n']('options')});}['_n'](_0x27619e,_0x484580=[],_0x13ca22=![]){const _0x162999=_0x320c83;return this[_0x162999(0x6ff)][_0x162999(0x722)](_0x162999(0x776),null,_0x27619e,_0x484580,_0x13ca22);}[_0x320c83(0x5a0)](_0x183598,_0x476353=[]){const _0x441c96=_0x320c83;return this[_0x441c96(0x6ff)]['_callMacro'](_0x441c96(0x776),null,_0x183598,_0x476353,!![]);}get[_0x320c83(0x6a3)](){const _0x1dd460=_0x320c83;return this[_0x1dd460(0x15c)]||(this[_0x1dd460(0x15c)]=new _0x4fef95(this[_0x1dd460(0x6ff)][_0x1dd460(0x508)],_0x1dd460(0x579)));}[_0x320c83(0x714)](){const _0x2afc91=_0x320c83;return this[_0x2afc91(0x6a3)];}get[_0x320c83(0x661)](){const _0x4c24cf=_0x320c83;return this[_0x4c24cf(0x6fa)]||(this['_syncLock']=new(requireLock())[(_0x4c24cf(0x3d3))](this['okdb'],_0x4c24cf(0xfb),_0x4c24cf(0x776),{'ttlMs':0x7530}));}get[_0x320c83(0x695)](){const _0x4070e5=_0x320c83;return this['_n'](_0x4070e5(0x2f0))[_0x4070e5(0x695)];}get['_clockListener'](){const _0x18b2e2=_0x320c83;return this[_0x18b2e2(0x6ff)][_0x18b2e2(0x2ab)]&&this['_n'](_0x18b2e2(0x6e9))?{}:null;}get[_0x320c83(0xd4)](){const _0x623e1=_0x320c83;return this[_0x623e1(0x566)];}get['_nodePrivateKey'](){const _0x177300=_0x320c83;return this['_n']('nodeKeys')?.[_0x177300(0x20f)];}get[_0x320c83(0x597)](){const _0xe0e71f=_0x320c83;return this['_n'](_0xe0e71f(0x190))?.[_0xe0e71f(0x665)];}[_0x320c83(0xd5)](){const _0x5ef6d2=_0x320c83;return this['_n'](_0x5ef6d2(0xd5));}[_0x320c83(0x546)](){return this['_n']('getSelfNode');}get[_0x320c83(0x5c1)](){const _0x33a195=_0x320c83;return this[_0x33a195(0x6e5)]||(()=>this['_n'](_0x33a195(0x5c1)));}set[_0x320c83(0x5c1)](_0x46c8cf){const _0x46fb85=_0x320c83;this[_0x46fb85(0x6e5)]=typeof _0x46c8cf==='function'?_0x46c8cf:null,this['_n']('setPeersFn',[this[_0x46fb85(0x6e5)]]);}[_0x320c83(0x796)](){return this['_n']('listPeers');}async['reconcile'](){const _0x4ca168=_0x320c83;return this[_0x4ca168(0x5a0)](_0x4ca168(0x6b0));}async['reconcilePeer'](_0x1daf5f){const _0x2f711c=_0x320c83;return this['_nm'](_0x2f711c(0x6fc),[_0x1daf5f]);}async[_0x320c83(0x7c5)](_0x31980d,_0x526d4a={}){const _0x1243b7=_0x320c83;return this[_0x1243b7(0x5a0)](_0x1243b7(0x3ea),[_0x31980d,_0x526d4a]);}[_0x320c83(0x4ff)](){const _0x4fb91d=_0x320c83;return this['_n'](_0x4fb91d(0x4ff));}[_0x320c83(0x226)](){const _0x3dab4f=_0x320c83;return this['_n'](_0x3dab4f(0x226));}async[_0x320c83(0x67f)](_0x2dd8ae,_0x2a8d5b={}){return this['_n']('upsertLink',[_0x2dd8ae,_0x2a8d5b],!![]);}async[_0x320c83(0x495)](_0x406d7e){const _0x36b55a=_0x320c83;return this['_n'](_0x36b55a(0x495),[_0x406d7e],!![]);}[_0x320c83(0x3ae)](_0xaa0577){return this['_n']('getNodeRecord',[_0xaa0577]);}[_0x320c83(0x71f)](_0x122eb1){return this['_n']('getPeerState',[_0x122eb1]);}async[_0x320c83(0x40f)](_0x28e944,_0x352df1,_0x2b4a01={}){const _0x451fef=_0x320c83;return this['_n'](_0x451fef(0x18c),[_0x28e944,_0x352df1,_0x2b4a01]);}async[_0x320c83(0x255)](_0x44bf22){const _0x3d9c04=_0x320c83;return this['_n'](_0x3d9c04(0x2d1),[_0x44bf22]);}async[_0x320c83(0x47a)](){const _0x52e869=_0x320c83;return this['_n'](_0x52e869(0x3fa),[],!![]);}async['patchSelf'](_0x3911da){return this['_n']('patchSelf',[_0x3911da],!![]);}async[_0x320c83(0x7d6)](_0x153d0e,_0x3f4037={}){const _0x5f13eb=_0x320c83;return this[_0x5f13eb(0x5a0)](_0x5f13eb(0x7d6),[_0x153d0e,_0x3f4037]);}async[_0x320c83(0x45e)](_0x77d135={},_0x1cf5f7={}){const _0x32b3fc=_0x320c83;return void _0x77d135['~system'],this['_n'](_0x32b3fc(0x45e),[_0x77d135,_0x1cf5f7]);}async[_0x320c83(0x792)](_0x32bc7a,_0xd4e5a6,_0x505682,_0xfc733){const _0x31a150=_0x320c83;return this[_0x31a150(0x5a0)](_0x31a150(0x792),[_0x32bc7a,_0xd4e5a6,_0x505682,_0xfc733??null]);}async['fetchRemoteDelta'](_0x3a5ede,_0x481d69,_0x46272f={}){return this['_nm']('fetchRemoteDelta',[_0x3a5ede,_0x481d69,_0x46272f]);}[_0x320c83(0x26d)](_0x60efa4,_0x492fd1=null){const _0x1364b9=_0x320c83;return this['_n'](_0x1364b9(0x66a),[_0x60efa4,_0x492fd1?_0x492fd1[_0x1364b9(0x5e6)]:null]);}[_0x320c83(0x183)](_0x4f479d,_0x1102d5=null){const _0x49422a=_0x320c83;return this['_n'](_0x49422a(0x183),[_0x4f479d,_0x1102d5?_0x1102d5[_0x49422a(0x5e6)]:null],!![]);}}return sync={'OKDBSync':_0x574b25},sync;}var migrate,hasRequiredMigrate;function requireMigrate(){const _0x2fa017=_0x431d06;if(hasRequiredMigrate)return migrate;hasRequiredMigrate=0x1;const {optionsArg:_0x3bca83}=requireErrors(),_0x2e7a11=require$$0,_0x235d27=require$$4,_0x48868d=0x40*0x400;async function _0x38c811(_0x1ff57c,_0x4de4a4){const _0xb34cbe=_0x41a2;for(let _0x48e793=0x0;_0x48e793<_0x4de4a4[_0xb34cbe(0x2a9)];){let _0x298de2=Math[_0xb34cbe(0x165)](_0x4de4a4[_0xb34cbe(0x2a9)],_0x48e793+_0x48868d);if(_0x298de2<_0x4de4a4[_0xb34cbe(0x2a9)]){const _0x1c7cde=_0x4de4a4['indexOf'](0xa,_0x298de2-0x1);_0x298de2=_0x1c7cde===-0x1?_0x4de4a4[_0xb34cbe(0x2a9)]:_0x1c7cde+0x1;}const _0x270147=_0x1ff57c[_0xb34cbe(0x75a)](_0x4de4a4['subarray'](_0x48e793,_0x298de2));_0x48e793=_0x298de2;if(!_0x270147)await new Promise(_0x438754=>_0x1ff57c[_0xb34cbe(0x73e)]('drain',_0x438754));await new Promise(_0x47a8de=>setImmediate(_0x47a8de));}}async function _0x476de5(_0x12a90c){const _0x35d2f3=_0x41a2,_0x2f3ab3=[];for await(const _0x4c9222 of _0x12a90c)_0x2f3ab3[_0x35d2f3(0x540)](Buffer[_0x35d2f3(0x68e)](_0x4c9222)?_0x4c9222:Buffer['from'](_0x4c9222,_0x35d2f3(0x77e)));return Buffer[_0x35d2f3(0x70a)](_0x2f3ab3);}class _0x575bc5{constructor(_0x42899d){this['okdb']=_0x42899d;}['_n'](_0x16922d,_0x5179d3){const _0x58f5e9=_0x41a2;return this[_0x58f5e9(0x6ff)][_0x58f5e9(0x722)](_0x58f5e9(0x14a),null,_0x16922d,_0x5179d3,!![]);}async[_0x2fa017(0x2f6)](_0x236ba9,_0x595ea8={}){const _0x52a7f7=_0x2fa017,{data:_0x532d03,stats:_0x4c7f56}=this['_n'](_0x52a7f7(0x7de),[_0x595ea8]);return await _0x38c811(_0x236ba9,Buffer[_0x52a7f7(0x295)](_0x532d03)),_0x4c7f56;}async[_0x2fa017(0x414)](_0x4945ea,_0x39ea28={}){const _0x16680a=_0x2fa017;_0x2e7a11['mkdirSync'](_0x235d27[_0x16680a(0x28e)](_0x4945ea),{'recursive':!![]});const _0x226634=_0x2e7a11[_0x16680a(0x106)](_0x4945ea),_0x867e40=await this[_0x16680a(0x2f6)](_0x226634,_0x39ea28);return await new Promise((_0x2628e3,_0xfdd466)=>{const _0x6973aa=_0x16680a;_0x226634[_0x6973aa(0x4cd)](),_0x226634[_0x6973aa(0x73e)](_0x6973aa(0x22a),_0x2628e3),_0x226634[_0x6973aa(0x73e)]('error',_0xfdd466);}),{..._0x867e40,'filePath':_0x4945ea};}async['exportEnvsToStream'](_0x58356e,_0x45807b={}){const _0x528658=_0x2fa017,{data:_0x6d9b0b,stats:_0x3d2b07}=this['_n'](_0x528658(0x701),[_0x45807b]);return await _0x38c811(_0x58356e,Buffer[_0x528658(0x295)](_0x6d9b0b)),_0x3d2b07;}async[_0x2fa017(0x5ff)](_0x3c9142,_0x535e28={}){const _0x2be2b2=_0x2fa017,_0x48f7e2=await _0x476de5(_0x3c9142),{onProgress:_0x1ac95d,..._0x20a546}=_0x535e28,_0x12cdb3=this['_n'](_0x2be2b2(0x3e4),[_0x48f7e2,_0x20a546]);if(typeof _0x1ac95d===_0x2be2b2(0x7c4))_0x1ac95d({'type':null,'count':_0x12cdb3[_0x2be2b2(0x486)]});return _0x12cdb3;}async[_0x2fa017(0x3c7)](_0x36285a,_0x3417b8={}){const _0x156f86=_0x2fa017;return this[_0x156f86(0x5ff)](_0x2e7a11[_0x156f86(0x5be)](_0x36285a,{'encoding':_0x156f86(0x77e)}),_0x3417b8);}async[_0x2fa017(0x711)](_0x3a752e,_0x5a839f={}){const _0x30574c=_0x2fa017;return this['_n'](_0x30574c(0x711),[_0x3a752e,_0x5a839f]);}['backupRoot'](){const _0x6f0c72=_0x2fa017;return this['_n'](_0x6f0c72(0x549),[]);}[_0x2fa017(0x367)](_0x2b5909){const _0x1db255=_0x2fa017;return this['_n'](_0x1db255(0x367),[_0x2b5909??null]);}async[_0x2fa017(0x5bc)](_0x4f2d4b={}){const _0x26a266=_0x2fa017;return this['_n'](_0x26a266(0x5bc),[_0x4f2d4b]);}async[_0x2fa017(0x3f2)](_0x4ace55,_0x2a369f={}){return this['_n']('import',[_0x4ace55,_0x2a369f]);}async[_0x2fa017(0x16f)](_0x56dc34){const _0x48a2d6=_0x2fa017,{pretty:pretty=![]}=_0x3bca83(_0x56dc34);return JSON['stringify'](await this[_0x48a2d6(0x5bc)](),null,pretty?0x2:0x0);}async[_0x2fa017(0xe0)](_0x164841){const _0xfce507=_0x2fa017;return this[_0xfce507(0x3f2)](JSON[_0xfce507(0x16c)](_0x164841));}[_0x2fa017(0x712)](){const _0x19ef56=_0x2fa017;if(!this[_0x19ef56(0x6ff)][_0x19ef56(0x446)]['get'](_0x19ef56(0x686))?.[_0x19ef56(0x253)])throw new Error(_0x19ef56(0x39a));}async[_0x2fa017(0x56e)](_0x4823ae){const _0xd9557=_0x2fa017;return this[_0xd9557(0x712)](),this['_n']('exportBlobs',[_0x4823ae]);}async[_0x2fa017(0x287)](_0x5b80f1){const _0x4ae48c=_0x2fa017;return this['_assertFiles'](),this['_n'](_0x4ae48c(0x287),[_0x5b80f1]);}['_allEnvsWithFiles'](){const _0x3c8029=_0x2fa017;return this['_n'](_0x3c8029(0x3d8),[])['map'](_0x32f018=>this[_0x3c8029(0x6ff)][_0x3c8029(0x3c4)](_0x32f018));}async[_0x2fa017(0x649)](){const _0x2a8120=_0x2fa017;return this[_0x2a8120(0x712)](),this['_n'](_0x2a8120(0x649),[]);}async['repairBlobRefs'](){const _0x234200=_0x2fa017;return this['_assertFiles'](),this['_n'](_0x234200(0x6aa),[]);}}return migrate={'OKDBMigrate':_0x575bc5},migrate;}var mcp,hasRequiredMcp;function requireMcp(){const _0x3077bf=_0x431d06;if(hasRequiredMcp)return mcp;hasRequiredMcp=0x1;class _0xe0d3ef{constructor(_0x135e2b){const _0x224812=_0x41a2;this[_0x224812(0x6ff)]=_0x135e2b,this[_0x224812(0x7e0)]=new Map();}['_n'](_0x1cac4f,_0x2b20c1){const _0x418ba4=_0x41a2;try{return this[_0x418ba4(0x6ff)][_0x418ba4(0x722)](_0x418ba4(0x1d4),null,_0x1cac4f,_0x2b20c1,!![]);}catch(_0xbd252d){if(_0xbd252d&&_0xbd252d[_0x418ba4(0x30f)]===_0x418ba4(0x7a8)&&_0xbd252d[_0x418ba4(0x38a)]){if(_0xbd252d[_0x418ba4(0x38a)][_0x418ba4(0x521)]!==undefined)_0xbd252d[_0x418ba4(0x521)]=_0xbd252d[_0x418ba4(0x38a)][_0x418ba4(0x521)];_0xbd252d['details']=_0xbd252d[_0x418ba4(0x38a)]['details'],_0xbd252d[_0x418ba4(0x30f)]=undefined;}throw _0xbd252d;}}['_tools'](){const _0x2aad69=_0x41a2;return this['_n'](_0x2aad69(0x20e),[]);}async[_0x3077bf(0x722)](_0x46c392,_0x130dfd={}){const _0x1c62eb=_0x3077bf;return this['_n'](_0x1c62eb(0x7cd),[_0x46c392??null,_0x130dfd??{}]);}async[_0x3077bf(0xc1)](_0x25f23e,_0x1d45f5={}){const _0x1bbc3f=_0x3077bf;return this['_n'](_0x1bbc3f(0x747),[_0x25f23e,_0x1d45f5??{}]);}[_0x3077bf(0x37f)](_0x50970f){return this['_n']('initialize',[_0x50970f??null]);}}return mcp={'OKDBMcp':_0xe0d3ef},mcp;}var sys,hasRequiredSys;function requireSys(){const _0x5e09fe=_0x431d06;if(hasRequiredSys)return sys;hasRequiredSys=0x1;function _0x5f2e75(_0x36285d,_0x16f9ea,_0x322fe6){const _0x1daf15=_0x41a2,_0x199c38={};for(const [_0x1b5d09,_0xa0b390]of Object['entries'](_0x322fe6)){_0x199c38[_0x1b5d09]=_0xa0b390===_0x1daf15(0xde)?async(..._0x1906b9)=>_0x36285d[_0x1daf15(0x722)](_0x16f9ea,null,_0x1b5d09,_0x1906b9):(..._0x3e7cff)=>_0x36285d[_0x1daf15(0x722)](_0x16f9ea,null,_0x1b5d09,_0x3e7cff,![]);}return _0x199c38;}const _0x134751=[_0x5e09fe(0x57b),_0x5e09fe(0x3f3),_0x5e09fe(0x4c6),_0x5e09fe(0xcd),_0x5e09fe(0x365),_0x5e09fe(0x15d),_0x5e09fe(0x76e),_0x5e09fe(0x662),_0x5e09fe(0x2cc),'typeStats','indexStats',_0x5e09fe(0x5f5),_0x5e09fe(0x185),'meta','getTypeCount',_0x5e09fe(0x374),'isTypeEmpty',_0x5e09fe(0x7e4),_0x5e09fe(0x694),_0x5e09fe(0x1f2),_0x5e09fe(0x6cc)],_0x16fd57={'add':'async','activate':_0x5e09fe(0xde),'remove':_0x5e09fe(0xde),'list':_0x5e09fe(0x776),'get':_0x5e09fe(0x776),'effective':_0x5e09fe(0x776)},_0x3d44da={'open':_0x5e09fe(0xde),'register':'async','buildOwnRow':_0x5e09fe(0x776),'_buildProcessingFacet':'sync','reportThreadStats':'sync','clearThreadStats':_0x5e09fe(0x776),'emitProc':_0x5e09fe(0x776),'addSupervisedChild':_0x5e09fe(0xde),'removeSupervisedChild':'sync','updateSupervisedChildStats':'sync','publishChildRow':_0x5e09fe(0xde),'putNode':'async','removeNode':_0x5e09fe(0xde),'nodeDead':_0x5e09fe(0x776),'listNodes':_0x5e09fe(0x776),'reap':'async','publishOwnRow':'async','deregisterSelf':_0x5e09fe(0xde),'setOwnMeta':_0x5e09fe(0x776),'noteListenAddr':'sync','hasDesired':_0x5e09fe(0x776),'getDesired':_0x5e09fe(0x776),'setDesired':_0x5e09fe(0xde),'listDesired':'sync','getCmd':_0x5e09fe(0x776),'bumpCmd':_0x5e09fe(0xde),'processingStatusView':_0x5e09fe(0x776),'processorsView':_0x5e09fe(0x776),'clusterStatusView':_0x5e09fe(0x776),'nodesView':_0x5e09fe(0x776),'treeView':_0x5e09fe(0x776),'getProcess':'sync','runtimeProcessesView':_0x5e09fe(0x776)};function _0x388628(_0x1472f6){const _0x4bcb10=_0x5e09fe,_0x10e65b={},_0x2a89f1=_0x5d7cb9=>_0x5d7cb9&&typeof _0x5d7cb9==='object'&&!Array[_0x4bcb10(0x17d)](_0x5d7cb9)&&typeof _0x5d7cb9[_0x4bcb10(0x5e6)]==='string'?_0x5d7cb9[_0x4bcb10(0x5e6)]:_0x5d7cb9;for(const _0x52d60b of _0x134751)_0x10e65b[_0x52d60b]=_0x52d60b===_0x4bcb10(0x1f2)?async(..._0x819894)=>_0x1472f6[_0x4bcb10(0x722)](_0x4bcb10(0x7a9),null,_0x52d60b,_0x819894[_0x4bcb10(0x1d9)](_0x2a89f1),!![]):(..._0x48eb4e)=>_0x1472f6['_call'](_0x4bcb10(0x7a9),null,_0x52d60b,_0x48eb4e['map'](_0x2a89f1),![]);return _0x10e65b;}function _0x1f1b91(_0x3099d9){const _0x47d034=_0x5e09fe,_0x1ab8e0=_0x5f2e75(_0x3099d9,_0x47d034(0x62e),_0x16fd57);return _0x1ab8e0;}function _0x365799(_0x46825c){const _0x67cd51=_0x5e09fe,_0x55bf07=()=>_0x46825c[_0x67cd51(0x62e)]['effective'](),_0x306089=_0x4c85c1=>_0x4c85c1[_0x67cd51(0x17e)]?{..._0x4c85c1,'_isFree':!![]}:_0x4c85c1;return{async 'addLicense'(_0x59d236){const _0x106627=_0x67cd51;return _0x46825c[_0x106627(0x62e)][_0x106627(0x3a8)](_0x59d236);},async 'reload'(){},async 'recheck'(){},get 'active'(){const _0x34bcbf=_0x67cd51,_0x5a5b46=_0x55bf07();return _0x5a5b46[_0x34bcbf(0x17e)]?null:_0x5a5b46;},get 'effective'(){return _0x306089(_0x55bf07());},'hasLimit'(_0x11e802){const _0x57a0cb=_0x67cd51,_0x3ffb31=_0x55bf07();if(!_0x3ffb31[_0x57a0cb(0x76b)])return![];const _0x365641=_0x3ffb31[_0x57a0cb(0x213)]?.[_0x11e802];return!(_0x365641===null||_0x365641===undefined||_0x365641===0x0);},'isFeatureEnabled'(_0x270420){const _0x9354a0=_0x67cd51,_0x5d125b=_0x55bf07();return!_0x5d125b['enforced']||!!_0x5d125b[_0x9354a0(0x4a3)]?.[_0x270420];},'assertFeature'(_0x52c49a){const _0x319c15=_0x67cd51,_0x4f7d35=_0x55bf07();if(!_0x4f7d35[_0x319c15(0x76b)]||_0x4f7d35[_0x319c15(0x4a3)]?.[_0x52c49a])return;const {OKDBError:_0xe894e}=requireErrors(),_0x588dd5=_0x4f7d35[_0x319c15(0x17e)]?_0x319c15(0x7c1)+_0x52c49a+'.\x20Add\x20a\x20license\x20that\x20includes\x20\x22'+_0x52c49a+'\x22\x20to\x20enable\x20it.':'Feature\x20not\x20licensed:\x20'+_0x52c49a+_0x319c15(0x238)+_0x52c49a+'\x22.';throw new _0xe894e(_0x588dd5,_0x319c15(0x74a),{'feature':_0x52c49a});},'assertLimit'(_0xa29857,_0x38afc6){const _0x5bed2e=_0x67cd51,_0x1936af=_0x55bf07();if(!_0x1936af[_0x5bed2e(0x76b)])return;const _0x4c518f=_0x1936af[_0x5bed2e(0x213)]?.[_0xa29857];if(_0x4c518f===null||_0x4c518f===undefined||_0x4c518f===0x0)return;if(_0x38afc6>=_0x4c518f){const {OKDBError:_0x2bd7a4}=requireErrors();throw new _0x2bd7a4('License\x20limit\x20exceeded:\x20'+_0xa29857+'\x20('+_0x38afc6+'/'+_0x4c518f+')',_0x5bed2e(0x567),{'limit':_0xa29857,'current':_0x38afc6,'max':_0x4c518f});}},'listLicenses'(){const _0x54ca3c=_0x67cd51;return _0x46825c[_0x54ca3c(0x62e)][_0x54ca3c(0x58d)]();},'getPins'(){const _0x27cce6=_0x67cd51;return _0x46825c[_0x27cce6(0x62e)][_0x27cce6(0x58d)]()['map'](_0x25a473=>({'licenseId':_0x25a473['id'],'pin':_0x25a473['type']===_0x27cce6(0x4c4)?null:_0x25a473[_0x27cce6(0x487)]}));}};}function _0x4942f6(_0x57f392){const _0x2116ff=_0x5e09fe,_0x86b585=_0x5f2e75(_0x57f392,_0x2116ff(0x4e7),_0x3d44da);Object[_0x2116ff(0x332)](_0x86b585,_0x2116ff(0x3f4),{'get':()=>_0x57f392[_0x2116ff(0x722)]('processes',null,_0x2116ff(0x3f4),[],![])}),Object[_0x2116ff(0x332)](_0x86b585,_0x2116ff(0x1f9),{'get':()=>_0x57f392[_0x2116ff(0x722)](_0x2116ff(0x4e7),null,_0x2116ff(0x1f9),[],![])}),_0x86b585[_0x2116ff(0x56f)]=null;const _0x70dde1=_0x86b585[_0x2116ff(0x5de)];_0x86b585[_0x2116ff(0x5de)]=_0x3e1964=>{const _0x2f17af=_0x2116ff;return _0x86b585[_0x2f17af(0x56f)]=_0x3e1964,_0x70dde1(_0x3e1964);};const _0x401a4d=()=>_0x86b585[_0x2116ff(0x373)]()['map'](_0x1b4f54=>({'key':_0x1b4f54[_0x2116ff(0x1b7)],'value':_0x1b4f54,'version':0x1})),_0xe79f3={'name':_0x2116ff(0xc5),'_sync':![],'_isOpen':!![],'isProcessStore':!![],'hasType':_0x4a3e17=>_0x4a3e17===_0x2116ff(0x681),'getRange':_0x407d05=>_0x407d05===_0x2116ff(0x681)?_0x401a4d()[Symbol['iterator']]():[][Symbol[_0x2116ff(0x6b7)]](),'getKeys':_0x5e00b6=>_0x5e00b6==='node'?_0x401a4d()[_0x2116ff(0x1d9)](_0x211acb=>_0x211acb[_0x2116ff(0x590)])[Symbol[_0x2116ff(0x6b7)]]():[][Symbol[_0x2116ff(0x6b7)]](),'getValues':_0x3135a1=>_0x3135a1===_0x2116ff(0x681)?_0x401a4d()[_0x2116ff(0x1d9)](_0x5646b5=>_0x5646b5[_0x2116ff(0x6f0)])[Symbol[_0x2116ff(0x6b7)]]():[][Symbol[_0x2116ff(0x6b7)]](),'get':(_0x492a2f,_0xf43f15)=>_0x492a2f==='node'?_0x401a4d()[_0x2116ff(0x207)](_0x134072=>_0x134072[_0x2116ff(0x590)]===_0xf43f15)?.[_0x2116ff(0x6f0)]:undefined,'getCount':_0x3ba22a=>_0x3ba22a==='node'?_0x401a4d()[_0x2116ff(0x2a9)]:0x0};Object['defineProperty'](_0x86b585,_0x2116ff(0x5c5),{'get':()=>_0x57f392[_0x2116ff(0x722)](_0x2116ff(0x4e7),null,_0x2116ff(0xdb),[],![])?_0xe79f3:null});const _0xe4f274=_0x86b585['open'];_0x86b585[_0x2116ff(0x4c4)]=async _0x4f4b51=>{return await _0xe4f274(_0x4f4b51),_0x86b585['_statusEnv'];},_0x86b585[_0x2116ff(0x465)]=()=>_0x57f392['_call'](_0x2116ff(0x4e7),null,'ensureDesired',[],!![]);const {RawDb:_0x521283}=requireRawdb();return Object[_0x2116ff(0x332)](_0x86b585,'_desired',{'get':()=>_0x57f392[_0x2116ff(0x508)]?_0x86b585[_0x2116ff(0x6f1)]||=new _0x521283(_0x57f392[_0x2116ff(0x508)],'~processes:desired'):undefined}),Object[_0x2116ff(0x332)](_0x86b585,_0x2116ff(0x6e4),{'get':()=>_0x57f392[_0x2116ff(0x508)]?_0x86b585['__cmd']||=new _0x521283(_0x57f392[_0x2116ff(0x508)],_0x2116ff(0x51e)):undefined}),_0x86b585[_0x2116ff(0x5fc)]=()=>_0x57f392[_0x2116ff(0x722)]('processes',null,_0x2116ff(0x5fc),[],![]),Object[_0x2116ff(0x332)](_0x86b585,_0x2116ff(0x11e),{'get':()=>_0x57f392['_call'](_0x2116ff(0x4e7),null,_0x2116ff(0x389),[],![])}),Object[_0x2116ff(0x332)](_0x86b585,_0x2116ff(0x19f),{'get':()=>_0x57f392[_0x2116ff(0x722)](_0x2116ff(0x4e7),null,_0x2116ff(0x109),[],![])}),_0x86b585[_0x2116ff(0x68b)]=()=>_0x57f392['_call']('processes',null,'buildOwnRow',[],![]),_0x86b585['_emitProc']=(_0x8c72b0,_0x280381)=>_0x57f392[_0x2116ff(0x722)](_0x2116ff(0x4e7),null,'emitProc',[_0x8c72b0,_0x280381],![]),_0x86b585;}return sys={'makeMeta':_0x388628,'makeLicenses':_0x1f1b91,'makeLicenseChecker':_0x365799,'makeProcesses':_0x4942f6},sys;}var okdbLogger,hasRequiredOkdbLogger;function requireOkdbLogger(){const _0x1e8bcb=_0x431d06;if(hasRequiredOkdbLogger)return okdbLogger;hasRequiredOkdbLogger=0x1;const _0x3ab5f3={'debug':0xa,'info':0x14,'warn':0x1e,'error':0x28};class _0x5cf51e{constructor(_0x164d00){const _0x3026f7=_0x41a2;this[_0x3026f7(0x6ff)]=_0x164d00,this['_sinks']=new Set(),this[_0x3026f7(0x7b8)]={};}[_0x1e8bcb(0x3b9)](_0x5e6778){const _0x1bbdef=_0x1e8bcb,_0x12cf34=new _0x5cf51e(this[_0x1bbdef(0x6ff)]);return _0x12cf34['_sinks']=this[_0x1bbdef(0x606)],_0x12cf34[_0x1bbdef(0x7b8)]={...this['_meta'],..._0x5e6778},_0x12cf34;}[_0x1e8bcb(0x131)](_0x28f032){const _0x1736cf=_0x1e8bcb;return this[_0x1736cf(0x606)][_0x1736cf(0x3a8)](_0x28f032),()=>this['_sinks']['delete'](_0x28f032);}[_0x1e8bcb(0x52b)](){const _0x46fa4f=_0x1e8bcb,_0x26d9ce=_0x3ab5f3[process.env.OKDB_LOG_LEVEL]??_0x3ab5f3[_0x46fa4f(0xd5)];return this[_0x46fa4f(0x70f)]=this[_0x46fa4f(0x131)](({level:_0x28be91,msg:_0x593d9b,meta:_0x1000ec,context:_0x314a7b,ts:_0x2cdd29})=>{const _0x5c9f2e=_0x46fa4f;if((_0x3ab5f3[_0x28be91]??_0x3ab5f3[_0x5c9f2e(0xd5)])<_0x26d9ce)return;if(_0x1000ec?.['feature']===_0x5c9f2e(0x2f9)&&(_0x28be91===_0x5c9f2e(0xd5)||_0x28be91==='debug'))return;const _0x219fb0=_0x28be91===_0x5c9f2e(0x4ad)?console['error']:_0x28be91===_0x5c9f2e(0x200)?console[_0x5c9f2e(0x200)]:_0x28be91===_0x5c9f2e(0xd5)?console[_0x5c9f2e(0xd5)]:console[_0x5c9f2e(0x745)],_0xd2716c=_0x1000ec&&Object[_0x5c9f2e(0x5e1)](_0x1000ec)['length']>0x0;_0xd2716c||_0x314a7b!==undefined?_0x219fb0(new Date(_0x2cdd29)[_0x5c9f2e(0x3b5)](),_0x593d9b,..._0xd2716c?[_0x1000ec]:[],..._0x314a7b!==undefined?[_0x314a7b]:[]):_0x219fb0(new Date(_0x2cdd29)[_0x5c9f2e(0x3b5)](),_0x593d9b);}),this['_detachConsole'];}['detachConsole'](){const _0x2f6c08=_0x1e8bcb;this[_0x2f6c08(0x70f)]&&(this['_detachConsole'](),this[_0x2f6c08(0x70f)]=null);}[_0x1e8bcb(0x407)](_0x3ddde5,_0x200adc){const _0x470d16=_0x1e8bcb,_0x1010b2=require$$0$4,_0x5d25a1=0x1f4,_0xe7a152=Number(process.env.OKDB_LOG_FLUSH_MS)||0x3e8;let _0x573d6d=[],_0x431cf6=0x0,_0x46519a=null;const _0x3dc35d=()=>{const _0x39cea8=_0x41a2;_0x46519a=null;if(_0x573d6d['length']===0x0)return;const _0x248bed=_0x573d6d;_0x573d6d=[],_0x431cf6>0x0&&(_0x248bed[_0x39cea8(0x540)]({'ts':Date[_0x39cea8(0x772)](),'level':_0x39cea8(0x200),'msg':_0x39cea8(0x596)+_0x431cf6+_0x39cea8(0x739)+(_0x431cf6===0x1?'y':_0x39cea8(0x67e))+_0x39cea8(0x5f9),'feature':_0x39cea8(0x745),'node':_0x200adc,'context':null}),_0x431cf6=0x0),_0x3ddde5[_0x39cea8(0x704)](_0x3c9eda=>{const _0x1ae546=_0x39cea8;for(const _0x3b7935 of _0x248bed)_0x3c9eda['put'](_0x1ae546(0x471),_0x1010b2[_0x1ae546(0x33b)](),_0x3b7935);})[_0x39cea8(0x603)](()=>{});},_0x4d5d9b=this[_0x470d16(0x131)](({level:_0x227ee4,msg:_0x2ea668,meta:_0x5ec569,context:_0x25a5a0,ts:_0x2f6ea1})=>{const _0x5cfe72=_0x470d16;if(_0x227ee4===_0x5cfe72(0x14e))return;_0x573d6d[_0x5cfe72(0x2a9)]>=_0x5d25a1&&(_0x431cf6++,_0x573d6d[_0x5cfe72(0x40d)]()),_0x573d6d[_0x5cfe72(0x540)]({'ts':_0x2f6ea1,'level':_0x227ee4,'msg':_0x2ea668,'feature':_0x5ec569?.[_0x5cfe72(0x3e9)]??_0x5ec569?.[_0x5cfe72(0x554)]??null,'node':_0x200adc,'context':_0x25a5a0??null}),!_0x46519a&&(_0x46519a=setTimeout(_0x3dc35d,_0xe7a152),_0x46519a[_0x5cfe72(0x490)]?.());});return()=>{_0x4d5d9b();if(_0x46519a)clearTimeout(_0x46519a);_0x3dc35d();};}[_0x1e8bcb(0x4ba)](_0x26ae58,_0xbc538c,_0x3d79a3){const _0x23a3b2=_0x1e8bcb;_0xbc538c instanceof Error&&(_0x3d79a3={'message':_0xbc538c[_0x23a3b2(0x18d)],'stack':_0xbc538c[_0x23a3b2(0x575)],..._0x3d79a3},_0xbc538c=_0xbc538c['message']);const _0x40b192={'level':_0x26ae58,'msg':_0xbc538c,'meta':{...this[_0x23a3b2(0x7b8)]},'context':_0x3d79a3,'ts':Date[_0x23a3b2(0x772)]()};try{this[_0x23a3b2(0x6ff)]['events'][_0x23a3b2(0x36e)]('log',_0x40b192);}catch{}for(const _0x2afafa of this[_0x23a3b2(0x606)]){try{_0x2afafa(_0x40b192);}catch{}}}[_0x1e8bcb(0x38b)](_0x4f2cfb){const _0x21f1e3=_0x1e8bcb;try{this[_0x21f1e3(0x6ff)]?.['events']?.[_0x21f1e3(0x36e)](_0x21f1e3(0x745),_0x4f2cfb);}catch{}for(const _0x2619bc of this['_sinks']){try{_0x2619bc(_0x4f2cfb);}catch{}}}[_0x1e8bcb(0xd5)](_0xb02733,_0x5ec8af){const _0x22cc7e=_0x1e8bcb;this['_emit'](_0x22cc7e(0xd5),_0xb02733,_0x5ec8af);}[_0x1e8bcb(0x200)](_0x2cf43e,_0x2c583e){const _0x364a8f=_0x1e8bcb;this[_0x364a8f(0x4ba)](_0x364a8f(0x200),_0x2cf43e,_0x2c583e);}[_0x1e8bcb(0x4ad)](_0x4fcbe7,_0x47e45c){const _0x5e5d92=_0x1e8bcb;this[_0x5e5d92(0x4ba)]('error',_0x4fcbe7,_0x47e45c);}[_0x1e8bcb(0x14e)](_0x13c3ae,_0x1db98b){const _0x35839=_0x1e8bcb;this[_0x35839(0x4ba)](_0x35839(0x14e),_0x13c3ae,_0x1db98b);}}return okdbLogger=_0x5cf51e,okdbLogger;}var okdbPlugins,hasRequiredOkdbPlugins;function requireOkdbPlugins(){const _0x30aa96=_0x431d06;if(hasRequiredOkdbPlugins)return okdbPlugins;hasRequiredOkdbPlugins=0x1;const {OKDB_STATE:_0x4fb9fd}=requireOkdbEnums(),{OKDBError:_0x137b80}=requireOkdbError();class _0x23c3d9{constructor(_0x31a83e){const _0x36052b=_0x41a2;this[_0x36052b(0x6ff)]=_0x31a83e,this[_0x36052b(0x7bb)]=[];}[_0x30aa96(0xb9)](_0x431e4b,_0x2234c2){const _0x41262a=_0x30aa96;if(this[_0x41262a(0x6ff)][_0x41262a(0x1a2)]!==_0x4fb9fd[_0x41262a(0x673)])throw new _0x137b80(_0x41262a(0x727),_0x41262a(0x206),{'state':this[_0x41262a(0x6ff)]['state']});if(!_0x431e4b['name'])throw new _0x137b80(_0x41262a(0x640),_0x41262a(0x4c8),{'plugin':_0x431e4b[_0x41262a(0x5e6)]});const _0x5533e2=_0x431e4b['requires']??[];for(const _0x4b2805 of _0x5533e2){if(!this[_0x41262a(0x7bb)][_0x41262a(0x31e)](_0x55f74f=>_0x55f74f['module'][_0x41262a(0x5e6)]===_0x4b2805))throw new _0x137b80('Missing\x20plugin:\x20'+_0x4b2805+_0x41262a(0x23d)+_0x431e4b[_0x41262a(0x5e6)]+')','PLUGIN_DEPENDENCY_MISSING',{'required':_0x4b2805});}if(this[_0x41262a(0x7bb)][_0x41262a(0x207)](_0x19fec8=>_0x19fec8[_0x41262a(0x554)]['name']===_0x431e4b['name']))throw new _0x137b80(_0x41262a(0x52a)+_0x431e4b[_0x41262a(0x5e6)]+'\x27\x20already\x20registered','PLUGIN_ALREADY_REGISTERED',{'plugin':_0x431e4b[_0x41262a(0x5e6)]});if(_0x431e4b['name']in this['okdb'])throw new _0x137b80('Plugin\x20name\x20\x27'+_0x431e4b['name']+'\x27\x20conflicts\x20with\x20existing\x20OKDB\x20property',_0x41262a(0x6e6));const _0x21e10b=_0x431e4b['register'](this['okdb'],_0x2234c2);if(!_0x21e10b||typeof _0x21e10b!==_0x41262a(0x4ed))throw new _0x137b80('Plugin\x20\x27'+_0x431e4b[_0x41262a(0x5e6)]+_0x41262a(0x5fb),_0x41262a(0x4c8),{'plugin':_0x431e4b[_0x41262a(0x5e6)]});this[_0x41262a(0x7bb)]['push']({'module':_0x431e4b,'options':_0x2234c2,'instance':_0x21e10b});}['_started']=[];async['start'](){const _0x597268=_0x30aa96;try{for(const _0x579b8c of this[_0x597268(0x7bb)]){await _0x579b8c[_0x597268(0x314)][_0x597268(0x432)]?.(this[_0x597268(0x6ff)]),this['_started']['push'](_0x579b8c);}}catch(_0x822f7d){await this['stop']()[_0x597268(0x603)](()=>{});throw _0x822f7d;}}async[_0x30aa96(0x4ff)](){const _0x3f68da=_0x30aa96,_0x1d9af2=this[_0x3f68da(0x2a2)][_0x3f68da(0x7c0)]();this[_0x3f68da(0x2a2)]=[];let _0x49e792=null;for(const _0x2a120e of _0x1d9af2){try{await _0x2a120e[_0x3f68da(0x314)]['stop']?.(this[_0x3f68da(0x6ff)]);}catch(_0x45210e){_0x49e792??=_0x45210e;}}if(_0x49e792)throw _0x49e792;}}return okdbPlugins=_0x23c3d9,okdbPlugins;}var statics,hasRequiredStatics;function requireStatics(){const _0x437c88=_0x431d06;if(hasRequiredStatics)return statics;hasRequiredStatics=0x1;const _0x53b085={'maxDbs':0x400,'pageSize':0x1000,'compression':!![],'encryptionKey':undefined,'mapSize':0x100000000,'durability':'balanced'},_0x5f1675=new Set([_0x437c88(0x526),'pageSize',_0x437c88(0x7df),_0x437c88(0x35a),_0x437c88(0x713),'mapSize',_0x437c88(0x1df),_0x437c88(0x645),'lmdb',_0x437c88(0x642),_0x437c88(0x776),_0x437c88(0x4f3),_0x437c88(0x2f9),'timeMachine',_0x437c88(0x1d4),_0x437c88(0x53a),_0x437c88(0x745),_0x437c88(0x70c),'readerCheckIntervalMs','engines',_0x437c88(0x7b9),_0x437c88(0x397),_0x437c88(0x4e7),_0x437c88(0x507),_0x437c88(0x7d5),_0x437c88(0x17b),_0x437c88(0xdf),_0x437c88(0x14e),_0x437c88(0x5ec),_0x437c88(0x711)]),_0x45fe4d={'http':_0x437c88(0x7d1)};return statics={'defaults':_0x53b085,'KNOWN_OPTIONS':_0x5f1675,'_OPTION_HINTS':_0x45fe4d},statics;}var licenseConfig,hasRequiredLicenseConfig;function requireLicenseConfig(){const _0x506e5f=_0x431d06;if(hasRequiredLicenseConfig)return licenseConfig;hasRequiredLicenseConfig=0x1;const _0x8b5852=require$$0$2,_0x291f2a=_0x506e5f(0x2be),_0x54c86e=_0x8b5852[_0x506e5f(0x1d6)]('sha256')[_0x506e5f(0x2bd)](_0x8b5852[_0x506e5f(0x569)](_0x291f2a)[_0x506e5f(0x5bc)]({'type':_0x506e5f(0x6b3),'format':_0x506e5f(0xbe)}))['digest'](_0x506e5f(0x303))[_0x506e5f(0x331)](0x0,0x10),_0x2f2189={'LICENSED_BUILD':_0x506e5f(0x4de),'PUBLIC_KEY_PEM':_0x291f2a,'PUB_FINGERPRINT':_0x54c86e,'LICENSE_EXPIRED_ACTION':_0x506e5f(0x745)};return licenseConfig={'_C':_0x2f2189,'PUBLIC_KEY_PEM':_0x291f2a,'PUB_FINGERPRINT':_0x54c86e},licenseConfig;}var okdbSubscriptionsStore={'exports':{}},okdbQueryFilter,hasRequiredOkdbQueryFilter;function requireOkdbQueryFilter(){const _0x3b6cb4=_0x431d06;if(hasRequiredOkdbQueryFilter)return okdbQueryFilter;hasRequiredOkdbQueryFilter=0x1;const _0x395710=require$$0$5,{OKDBError:_0x5566ef}=requireOkdbError(),_0x58b96e=[_0x3b6cb4(0x239),_0x3b6cb4(0x4ce),_0x3b6cb4(0x5d0),_0x3b6cb4(0x717),'$lt',_0x3b6cb4(0xea),'$in',_0x3b6cb4(0x556),_0x3b6cb4(0x77c),_0x3b6cb4(0x767),_0x3b6cb4(0x6c6),'$mod','$size',_0x3b6cb4(0x576),'$type',_0x3b6cb4(0x427),_0x3b6cb4(0x51d),_0x3b6cb4(0x216),_0x3b6cb4(0x58f),'$nor'],_0x21bd04=[_0x3b6cb4(0x6f6)];function _0x375eaa(_0x41a5c5){return()=>{const _0x54c639=_0x41a2,_0x34da68=new _0x5566ef(_0x54c639(0x4eb)+_0x41a5c5+_0x54c639(0x648),_0x54c639(0x565),{'operator':_0x41a5c5});_0x34da68[_0x54c639(0x5d2)]=0x190;throw _0x34da68;};}const _0x230566=Object['freeze']({...Object[_0x3b6cb4(0x4af)](_0x58b96e['map'](_0x4424d8=>[_0x4424d8,_0x395710[_0x4424d8]])),...Object[_0x3b6cb4(0x4af)](_0x21bd04['map'](_0xfe0082=>[_0xfe0082,_0x375eaa(_0xfe0082)]))});function _0x33b5e5(_0x5bd562){const _0x1e5fbe=_0x3b6cb4;return _0x395710[_0x1e5fbe(0x6df)](_0x5bd562,{'operations':_0x230566});}function _0x15016b(_0xc773ab){const _0x487715=_0x3b6cb4;if(_0xc773ab==null)return;try{_0x33b5e5(_0xc773ab);}catch(_0x270f42){if(_0x270f42?.[_0x487715(0x30f)]===_0x487715(0x565))throw _0x270f42;}}return okdbQueryFilter={'compileFilter':_0x33b5e5,'assertFilterAllowed':_0x15016b,'ALLOWED_OPERATORS':_0x58b96e,'FORBIDDEN_OPERATORS':_0x21bd04},okdbQueryFilter;}var okdbEnvRefs,hasRequiredOkdbEnvRefs;function _0x27a0(){const _0x375565=['lmdb','setFilter','_handlePoke','storeEnv','bridge','makeOkdb','$regex','bigint','compact/repair\x20already\x20in\x20progress\x20for\x20this\x20environment','_ttlByKey','enforced','$ref','item:','getIndexStatus','INDEX_PROGRESS','byteLength','RangeError','now','__stateDb','turn','abort','sync','__ttlByExpiry','stopWorkerBegin','getRun','resetViewBegin','_syncExpiresAtField','$exists','_envWide','utf8','refTrackingDbs','continueOnRecoverableError','(?:','replace','bucket','_closed','handleDurableClock','_onItem','query','_isLoopbackIp','setDeltaLimit','ms/','tags','_okdbAdminAttached','claim_id','getUniqueViolation','groupsDb','durableTierLag','indexContent','fetchPeer','workerState','description','_timerObjs','_listPeers','storePayload','_settleWaiters','job.status_message\x20must\x20be\x20string|null','reducer','lastTxnId','_maxConnections','isWorker','ttl:clear','system','embeddings:indexer:ready','bootSyncedViewsInline','File\x20not\x20found:\x20','views','actions','attachFeed','_waitNative','isBootstrap','MCP_ERROR','meta','kickOwnedBy','killAll','catalog','forceAfterMs','parseBearer','invalid\x20log\x20level:\x20','job.finished\x20must\x20be\x20number|null','listProviders','_lockHandle','_cursors','return','process','hlc','job.','_meta','processors','errors','_plugins','engines','creating','use','setEncryptionKey','reverse','Feature\x20not\x20available\x20on\x20free\x20tier:\x20','reconcileDesired','INVALID_OPTIONS','function','_reconcilePeer','embeddings:indexer:doc:done','Invalid\x20index\x20key\x20type\x20for\x20\x27','dbs','registerAlgorithmFactory','hybridQuery','namespace','resolvedOptions','call','setKeyBuffer','_dedupeKey','_ensureEnv','there\x20is\x20no\x20`http`\x20option\x20—\x20the\x20HTTP\x20server\x20exists\x20only\x20when\x20db.http.listen(port)\x20is\x20called','bind','maxExtra','_handleInProcess','api','join','fingerprint','(worst\x20','bucket\x20too\x20long','_warnUnknownOptions','OKDBTypeNotRegisteredError','loginSelect','commit','exportBuf','compression','clients','_readerCheckInterval','_getRaw','removeJob','areIndexesReady','_push','Unknown\x20OKDB\x20transaction\x20error','job\x20must\x20be\x20object','_openEnvLazy','storage\x20adapter\x20is\x20gone','modeApplied','worker','delete','createEngine','ENGINE_INVALID_TEMPLATE','bucket\x20must\x20be\x20object','register','FOREIGN_KEY_DELETE_RESTRICTED','storeEnvPath','unpin','ref:violation','der','getTTL','ITEM_UPDATE','_handle','cursor','writerStatus','TXN_ERROR','~processes','stopAll','duplicate\x20bucket:\x20','buckets',':\x20not\x20implemented\x20in\x20the\x20native\x20build\x20yet','Unique\x20constraint\x20violated\x20on\x20','onWindow','fts:','describeAllTypes','pinned\x20range\x20iterator\x20parked\x20across\x20an\x20await/turn\x20boundary\x20and\x20the\x20env\x20was\x20written\x20','sweepExpiredTTL','change','_durableEngineDoc','Unsupported\x20transaction\x20action:\x20','STARTING','_pokeListener','info','_closeEnvLocally','prevDb','disableAll','_hlc','_noChangelog','statusOpen','envPath','asyncIterator','async','subscriptions','importJSON','max_tries','_tx','TXN_START','getChanges','assertStartAllowed','T_INTEREST','path','http.listen({workers/makeOkdb/primaryOkdb})\x20is\x20no\x20longer\x20supported\x20in\x20the\x20','bulkRemoveChunk','$lte','~queue_buckets','ttlStats','_scheduleFlush','headers','OKDBVersionMismatchError','setHostPlugins','turnWaiters','claimGated','3924480AaQuHE','validateOidcAccessToken','OKDBTypeAlreadyRegisteredError','clone','_env','processor','drainJobType','_listening','~system','previewTemplate','isSetupMode','inputSchema','patchDeclaration','_teardownNative','endIndex','_buf','processorsStop','failed_ttl','\x20must\x20be\x20a\x20non-empty\x20string;\x20got\x20','createWriteStream','Referenced\x20type\x20\x27','toFixed','isReader','cursorKey','storageStats','encryption\x20key\x20function\x20failed:\x20','job_type.','embeddings:indexer:doc:queued','_autoCompactTimer','ENGINE_DRIVER_MISSING_START','getLoginConfig','schema:drop','_id','snapshotScan','failJob','retry_delay','release','sync:apply','listRefViolations','drivers','_blobsDir','mapError','$near','_isWriter','ENGINE_INVALID_TYPE','stopWorkerAbort','\x0a\x09\x09let\x20','payload','_pressure','hasApi','_makeIterator','diag','regInfo','_adminRelay','_formerOrigins','_buckets','hasEnv','removeListener','_setKey','ttl','undefined','storeGetDiffs','attach','durableRebuild','next','_detachLog','hasUniqueViolations','keyFor','_wsettle',':\x20unknown\x20option\x20\x27','released\x20at\x20the\x20first\x20await/turn\x20boundary.\x20Consume\x20ranges\x20before\x20any\x20await,\x20or\x20','processorHold','retryable','_wb','__ref_index','throw','no_action','_rebuilding','readFieldMany','use\x20engines.registerDriver()','token','ENCRYPTION_KEY_REQUIRED','_reconcileDesired','retry','spawn','~sub','dir','migrate','embedderNew','durableDocs','callRows','debug','ctrl','INVALID_INDEX_KEY','hasBody','INACTIVE','getEntry','Schema\x20validation\x20failed\x20for\x20','(?:/(.*))?','getCount','writeKey','ready','_assertRangeOptions','_changeToClockDb','crypto','_pdb','isIndex','an\x20environment\x20name','tag\x20too\x20long','pause','enqueueClaim','meanwhile\x20—\x20the\x20frozen\x20view\x20cannot\x20be\x20kept.\x20Materialize\x20synchronously\x20(e.g.\x20Array.from)\x20','startBegin','_uid','min','time-machine:','_timer','~fts:envs','system:stopped','@harperdb/extended-iterable:skip','job\x20type\x20must\x20be\x20object','parse','TXN_INVALID_OP','_flushDebounce','exportJSON','ttlState','vecRemove','non-empty\x20string','__absent','listBlobStatus','onDelete','job_type.defaults.backoff_multiplier\x20must\x20be\x20number\x20>=\x201\x20or\x20null','_path','emitClearDone','_write','\x22\x20requires\x20a\x20`handler`\x20function','admin','_clockToChangeDb','isArray','free','__after','_wrap','refill_amount','INDEXER','applyChange','cron','describeAllTypesDetailed','job_type.payload_schema.definition\x20must\x20be\x20object','_assertOpen','_role','trim','clearSync','_ringSize','setPeerState','message','~ttl:key','hasStopFn','nodeKeys','_update','job.max_tries\x20must\x20be\x20int\x20>=\x201,\x20null\x20(unlimited)\x20or\x20Infinity','\x20=\x20source[position++]\x0a\x09\x09\x09else\x0a\x09\x09\x09\x09return\x20fromCharCode(','node:crypto','_localViews',':index:','registerModel','_logChange','http.listen:\x20host\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20a\x20non-empty\x20array\x20of\x20non-empty\x20strings','defaults','registerFts','~ref_violations','REF_VIOLATION','iterate','_isReader','inflight','restrict','state','_closeReadTransaction','exportName','getResolvedOptions','~lock','queue-worker','job.buckets\x20must\x20be\x20array|null','waiting','registerViewReducer','_callPacked','Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results','exports','forceResync','job.idempotency_key\x20must\x20be\x20string|null','unique:violation','txnUndone','load','emitWarning','addrs','_retryPending','lock','nodeKey','when','ttl:expired','engineStart','dropType','get','getRange','HIGH_SENTINEL','resolvedFields','OKDBInvalidPrimaryKeyError','charCodeAt','grouped','announceEnqueued','lastError','processorsStatus','action','_keyFns','http','files.upload:\x20id','_changefeed','updateJob','SCHEMA_VALIDATION_FAILED','Symbol.asyncIterator','number','active','TXN_ENV_MISMATCH','sessionId','startClaimed','inBatch','mcp','changes','createHash','\x22\x20not\x20found','resume','map','continueIteration','removeSync','Array.from)\x20before\x20any\x20await.','INDEXER_DOC_QUEUED','WORKERS_REMOVED','durability',')\x20+\x20readString(source)}','node:util','running','ttlSetEntry','Use\x20module:{path,export}\x20alone,\x20or\x20handler:\x27<name>\x27\x20for\x20a\x20built-in.','getHistory','committed','embeddings','Unknown\x20transaction\x20action:\x20','appendJobLog','ref:violation_resolved','sourceType','durableMarkFail','setPrototypeOf',':txnRange','failures','lastClock','let\x20position;\x20let\x20readString\x20=\x20','recomputeFields','IPv6','a\x2032-character\x20key\x20or\x20a\x20function\x20returning\x20one','\x27\x20does\x20not\x20exist','a\x20non-empty\x20string','processEverything()','_deliver','rowKey','getEngine','context','fromCharCode','removeTxn','takeBuildResult','cleanup','warn','Index\x20\x27','index:progress','existing','geoQuery','scheduled','INVALID_STATE','find','halted','_ensureTypeEnv','_registrations','_typesDb','fromBufferKey','openEnv','tools','privateKey','pumping','args','encryption:key-changed','limits','relay','applyInterestDelta','$and','startsWith','_txnBuf','inNativeCall','listening','holder','embeddings:indexer:doc:failed','utf8Write','_kbuf','_staticCall','ctxSignal','REMOVE','sortedDb','typeId','readTransaction',':index','listLinks','\x27\x20already\x20registered','getRefViolation','string','finish','countByIndex','_callMacro','_connections','stopping','tierList','__HOLD__','hash','txn:end','ensure:\x20fts\x20entry\x20missing\x20name\x20or\x20fields','isFeatureEnabled','sourceKey','applyOps','3.1.8','.\x20The\x20active\x20license\x20does\x20not\x20enable\x20\x22','$eq','getCursor','flushMaxWait','resolveModelDims','\x20(required\x20by\x20','sweepExpired','definition','sseSend','transaction','reencrypt','clearStuck','__adminRelay','\x20>\x204)\x20{\x0a\x09\x09\x09if\x20(','_release','getUint32','done','processor:\x20specify\x20exactly\x20one\x20of\x20handler:\x27<name>\x27\x20or\x20module:{path,export},\x20not\x20both','connected','resumeAllAfterDrain','dropping','_durableEmbedderInfo','__warned','native','formerIds','pipelines','_ack','files','storeGetTotalHeadCount','_ensurePeerState','_viewState','ms\x20max=','fail','logCap','_drainOne','getRecord','job.status_code\x20must\x20be\x20string|null','_logsDb','tolerant','formerOrigins','546126zjWIqy','getMeta','_makeLazyVectorAdapter','log\x20entry\x20message\x20required','awaitIdle','durableRetryFailed','__logsDb','NOT_IMPLEMENTED_NATIVE','for','onDo','trunc','regObject','guard','_shouldApplyChange','customReducerNames','processor:\x20quantum.module\x20must\x20be\x20a\x20string','SYSTEM_STOPPED','item:pending','clearTTL','rebuild','Engine\x20driver\x20already\x20registered:\x20\x22','TXN_CLOSED','_pendingOps','durableMarkDelete','unregisterTarget','_viewCache','Database\x20not\x20started','targetType','ftsQuery','err','_sweepInProgress','job','emb','_db','createIndexer','relay:error','write\x20batch:\x20missing\x20result','item','embeddings:indexer:flushed','importBlobs','_locks','offWindow','item:update','\x27\x20on\x20type\x20\x27','capacity','immediate','dirname','getRunningEngine','reducers','ensureTypeEnv','search','__okdb','Engine\x20template\x20id\x20must\x20be\x20a\x20non-empty\x20string','from','links','patchConfig','\x20│\x20','unpack','item:remove','Type\x20\x22','raw','process\x20options.admission\x20must\x20be\x20a\x20function','IPv4','_nodePrivateKey','_lock','runRecord','_started','files.upload:\x20stream','oauth','resetReadTxn','detachFeed','sseSetHeader','library\x20(okdb\x20node-model\x202.0).\x20For\x20multi-process\x20HTTP\x20serving\x20use\x20the\x20okdb\x20','length','setDefaultTTL','_isOpen','queue.worker(\x27','acquiredAt','\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer','useReadTransaction\x20read\x20view\x20expired:\x20the\x20snapshot\x20was\x20released\x20at\x20the\x20first\x20await/turn\x20','resetIndexBegin','resolveField:\x20field\x20required','isCoordinator','actionCount','null','Transaction\x20already\x20closed','getDefinition','newListener','runGc','processRest()','enqueue','resumeOpts','_txnIdAtSnapshot','update','-----BEGIN\x20PUBLIC\x20KEY-----\x0aMCowBQYDK2VwAyEAacrkExPrhxNVHyeQBLDwg8xfm1OwyxDAPNdGXABYS2s=\x0a-----END\x20PUBLIC\x20KEY-----','embeddings:pipeline:ready','getJobType','env:removed',':useReadTransaction','toBufferKey','changeEncryptionKey:\x20to','_durableWorkerStats','ctxProgress','_onStop','Storage\x20resolver\x20must\x20be\x20a\x20function','hasType','indexReady','viewOp','describeIndexes','existsSync','properties','license:invalid','closeEnvLocally','ensurePeerState','__ttlCancelledGen','entries','compare','view:progress','_listeners','registerHandler','doesExist','OKDBAlreadyExistsError','_sync','FIELD_RESOLVER_PENDING','_licenseInterval','getPrototypeOf','bucket\x20\x22','_resolveFilter','registerIndexDeferred','assign','_flushIntervalTimer','forgetDb','_lazyPinned','setPosition(p)\x20{\x20position\x20=\x20p\x20},','idempotency_key','drop','total','TYPE_ALREADY_REGISTERED','DONE','node:stream','\x20was\x20removed\x20in\x20okdb\x202.0.\x20Use\x20processors:true\x20for\x20plain\x20lease\x20participation.\x20See\x20docs/upgrade-2.0.md.','toLowerCase','ttlTimer','Key\x20is\x20too\x20large','options','cookies','buildsPending','getEmbedderFactory','index:','gen','exportToStream','_ackDb','isLoopbackIp','functions','WORKER','getViolation','_settle','status_code','getAuthOptions','Engine\x20template\x20must\x20be\x20a\x20plain\x20object','indexer\x20engine\x20not\x20running:\x20\x22','kind','_scheduleTTLSweep','hex','Error','changeToClockDb','_range','HTTP_ERROR','_ttlState','destroy','_rebuild','fts:drop',',\x20source)\x0a\x09\x09}\x20else\x20{\x0a\x09\x09\x09if\x20(','_autoCompact','setInt32','code','job.buckets[].id\x20must\x20be\x20non-empty\x20string','_tickCallback','maxMs','authorization','instance','getBucket','UNKNOWN_RANGE_OPTION','sort','preview','log\x20entry\x20fields\x20must\x20be\x20object|null','clearScan','enqueue\x20txn\x20belongs\x20to\x20a\x20different\x20environment','bucket.capacity\x20must\x20be\x20int\x20>=\x200','storeGetHead','some','_nextExpiry','indexer','must\x20be\x20an\x20object;\x20got\x20null','engineStop','endsWith','EMBEDDER','wait','getEmbedderSchema','_gcTimer','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.','claim\x20requires\x20non-empty\x20type','_cancelTTLTimeout','intervalTimer','retryFailed','getSecurityNotices','onDone','setAddress','1153758litEty','slice','defineProperty','_jsSchemas','readField','uninstall','_durableIndexerStats','isSync','./native-loader.js','listen','scopedName','randomUUID','gcOrphanedBlobs','\x27:\x20','setLogger','rows','preparer\x20must\x20be\x20a\x20function','subsBuilt','useVersions','field\x20resolver\x20request\x20still\x20pending','offset','autoCompactState',':\x20expected\x20','offsetOf','removed','run','byLabel','_ttlBackoffUntil','session','prototype','markJobHeartbeat','_blobStatusDb','markSnapshotComplete','env:opened','getVector','install','expiresAt','_rootDb','compactBegin','21938dSJQgE','geoConfig','match','encryptionKey','timer','setLastClock','compiled','BAD_ALGORITHM_FACTORY','~queue_jobs','compactLock','getUniqueViolations','job.id\x20must\x20be\x20string','_normalizeOAuthAuthResult','_status','listIndexes','OKDBForeignKeyDeleteError','resolveBackupDest','listRoutes','system:drain','_keyListener','nextExpiry','updated_at','_subscribed','emit','callPacked','process(filter)','txn:start','byIndex','listNodes','getIndexCount','_rbuf','_isOpenForIp','_defaultEnv','setJobTypeSchema','\x22\x20is\x20not\x20registered','storeGetDiffsInRange',':clockToChange','viewDb','Engine\x20driver\x20type\x20must\x20be\x20a\x20non-empty\x20string','_report','_initialize','max','bucket.id\x20must\x20be\x20non-empty\x20string','loop-lag\x20','job.buckets\x20entries\x20must\x20be\x20objects','evict','signal','online','cause','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.','isWriter','details','ingest','searchDocs','setKick','setStorageResolver','_afterDurable','lastIndexOf','_envIndexDb','license:added','limit','replaceInterests','\x20===\x204)\x0a\x09\x09\x09\x09','callBatch','compaction','txnId','markJobFail','files\x20feature\x20not\x20available','stats','INVALID_TYPE_NAME','bus:proc','readString\x20}','getStatus','processor:paused','version','txn:rollback',']\x20already\x20maps\x20to\x20\x27','buffer','STARTED','targetKey','_searchWithScores','add','claimed','\x22\x20is\x20used\x20by:\x20','listTTL','envSize','algorithm\x20has\x20no\x20method\x20','_getNodeRecord','createEmbedder','root','isBun','envName','uninstallEngine',':emb:','toISOString','backoffUntil','engine:','resolveData','child','SYSTEM_CLOCK_CHANGE','_handles','ITEM_REMOVE','mean','TXN_INVALID_ACTION','handlerName','getFloat64','loadedPath','\x22\x20on\x20\x22','job_type.defaults.','env',':keyToChange','doc_status:','importFromFile','registerQuantum:\x20name\x20must\x20be\x20a\x20non-empty\x20string','setMaxListeners','prefetch','quantum','storeHasDiff','ctxLog','resolution','payload_schema','updated','inspect','INVALID_ARGUMENT','NativeLock','reject','_ensureDbs','listVectorStores','stopped','envsWithFiles','~log','$within','ensure:\x20type\x20is\x20required','streamByHash','level','\x20must\x20be\x20number','target','getFast','lookupByTokenHash','_facade','filterSessionsForType','importBuf','guardSnapshotIterable','system:bus_state_change','_resolveKeys','listAlgorithms','feature','reconcilePeerPull','syncBlobs','notes','_onPending','settledTickets','equal','pauseAllAndDrain','OKDBNotImplementedNativeError','import','isType','selfKey','.\x20Only\x20primitives,\x20null,\x20Buffers,\x20and\x20arrays\x20are\x20allowed.\x20Got:\x20','defaultTTL','alg','fts:reset','getStateAt','ensure','patch','setLogSink','created_at','openDB','Algorithm\x20factory\x20must\x20be\x20a\x20function','drainDeadlineMs','getAll','isOrchestrator','_makePipelineApi','ensure:\x20view\x20entry\x20missing\x20name\x20or\x20definition','ERROR','subarray','attachOKDB','incoming','setProcessingConfig','addJobType','_np','_lookupAllByName','shift','flushed','_setPeerState','changeEncryptionKey','done_ttl','_settleRead','createSearch','exportToFile',':data','priority','bucket.refill_every\x20must\x20be\x20int\x20>=\x200','ctxUpdateStatus','indexOf','INVALID_VALUE','_baselines','startNewEnginesFromSync','getClock','OKDBForeignKeyError','embeddings:strategy:registered','_stateDb','OKDB','server','drain','transactionSync','issueToken','limitOf','$elemMatch','resolveField','chunks','buildStep','bus:env_release','socket','ensureTokensType','_getFast','bucket.refill_amount\x20must\x20be\x20int\x20>=\x200','_asArray','byteOffset','start','clock','stateNames','_handlePending','_callRows','envNames','index:drop','removeEventListener','job.bucket\x20must\x20be\x20string|null','flatMap','_set','boolean','includeViolations','durableEmbedderInfo','returnRecoverableErrors','onUndo','pressure','stopHandle','items','symbol','_envs','registerReducer','fts','_admissionStarted','apiCall','UNIQUE_CONSTRAINT','created','storage\x20adapter\x20has\x20no\x20method\x20','\x27\x20at\x20','TXN_INVALID_OPS','fieldPath','authenticateRequest','describeChunk','flushTicket','embeddings:embed:settled','no\x20write\x20has\x20landed.\x20Writes/commit\x20are\x20unaffected.','OKDBIndexNotRegisteredError','queue:rescheduled','test','_buffer','_isBootstrap','TypeError','_ttlCompositeKey','isSnapshotComplete','calculateDelta','addInterest','taken','job_type.defaults.max_tries\x20must\x20be\x20int\x20>=\x201\x20or\x20null','rebuildBegin','debounceTimer','_subsV2','_ensureDesired','lookupByName','_indexBuild','resolveField:\x20type\x20required','901794bHjxvW','job_type.payload_schema.enforce\x20must\x20be\x20boolean','_tids','OKDBUniqueConstraintError','_macro','index:ready','system:type_drop','clearDone','~log_entry','embedder','each\x20process()\x20entry\x20requires\x20a\x20non-empty\x20`type`','remoteAddress','aborted','getSchema','okdb-','__esModule','itemsGroups','_ensure','takeCompactResult','resetIndexFinish','_admissionTimer','queue:removed','turns','resetIndex','flushTimeoutError','references','removeJobTypeSchema','vectorSpace','dropped','records','pin','ttlMs','_detachLogSink','_doHooks','isInteger','set','invalid\x20job.status:\x20','listModels','system:ready','unref','role','header','enable','field:resolver_registered','removeLink','getSession','process()\x20entry\x20\x22','close','timestamp','fields','createLoginState','unresolveField','validate','bootSyncedViews','setMaxBodyBytes','type:','setUint32','ctxRelease','features','tries','getInt32','readerCheck','authenticated','connectionCount','resumeJobType','_envSyncStop','error_stack','ctxHeartbeat','error','dataView','fromEntries','okdb-node:\x20unknown\x20callback\x20id\x20','_onFeedChange','SKIP','data','send','flushQuantum','listTemplates','schema:set','listPath','INVALID_PRIMARY_KEY','_emit','_blobPath','_read','useReadTransaction','authenticateToken','hasNativeBatch','ensureFeed','wake','queue:clear-done','NOT_FOUND','open','plugins','describeType','_runRecord','BAD_PLUGIN','prepareTxnEnqueue','types','encryption\x20key\x20function','embed-worker','end','$ne','WriteBatch','setClaiming','dataEnv','remove','isOAuthEmailAllowed','processor:\x20module.path\x20is\x20required','loaded','_store','_modeApplied','a\x20string','job_type.defaults\x20must\x20be\x20object|null','_undoHooks','kick','_root','getValues','true','registerTarget','VERSION_MISMATCH','_defaultEnvObj','OKDBSchemaCollectionError','vecPut','claim_expires','includes','repair','processes','pinned\x20range\x20iterator\x20held\x20across\x20an\x20await/turn\x20boundary.\x20This\x20surface\x20cannot\x20resume\x20','_startAutoCompactCheck','busState','Query\x20operator\x20\x22','_keepAlive','object','values','Engine\x20template\x20build()\x20is\x20required:\x20','createWriteFacade','\x27\x20does\x20not\x20exist\x20in\x20type\x20\x27','~files','queue','tokens','embed','head','uninstalled','freeze','Too\x20many\x20concurrent\x20connections','HIGH_FREQ_EVENTS','handleError','off','isWellFormed','\x22\x20must\x20have\x20a\x20start()\x20method','stop','setSchema','constructor','_windowCbs','blobPath','login','vectorStoreStats','build','autoCompact','_systemEnv','versions','INDEX_HAS_CONSUMERS','storeGetHeadCount','restart','EMBED_PENDING','sweepOrphanLogs','bootLogMark','tryClaimTokens','MINIMUM_KEY','setToken','empty\x20string','streamRead','SYSTEM_POKE','view','ms\x20p99=','materialize\x20them\x20(Array.from)\x20while\x20the\x20view\x20is\x20live.','nextTurn','_isFar','durableCursorFloor','registerEnv','$not','~processes:cmd','_draining','mode','jsonrpcCode','callRows:\x20unexpected\x20row\x20stride\x20','OKDBIndexHasConsumersError','process(entries)\x20requires\x20at\x20least\x20one\x20entry','STOPPING','maxDbs','node:perf_hooks','_awaitBuild','job.type\x20must\x20be\x20non-empty\x20string','Plugin\x20\x27','attachConsole','dropAll','_startClaimedSoon','CHANGEFEED_QUANTUM','label','registerExtractor','Type\x20\x27','OKDBError','_features','bucket.updated\x20must\x20be\x20number','_oauthConfig','~proc:state','docEntry','index:registered','heartbeat','runtimeDeclarations','createWorker','stderr','enableNullTermination','_readViewExpired','afterTurn','push','pid','installed','removeBucket','clear','index','getSelfNode','listRuns','_setTTL','backupRoot','okdb-node:\x20unknown\x20bridge\x20op\x20','before\x20any\x20await,\x20chunk\x20with\x20{limit,\x20start,\x20exclusiveStart},\x20or\x20drop\x20snapshot:true.','TXN_ROLLBACK','resolve','assertCreateAllowed','pauseJobType','_settleWrite','_advanceHlcOnRecv','recordRun','vec:','module','\x27\x20doesn\x27t\x20exist','$nin','__blobStatusDb','ITEM_PENDING','refs','array','resolveField:\x20options.batch\x20must\x20be\x20a\x20function','\x22\x20must\x20return\x20{\x20embed(input):\x20Promise<Float32Array>\x20}','orchestrator','getJob','interest','handler','$streamId','OKDBInvalidValueError','paused','addRaw','QUERY_OPERATOR_FORBIDDEN','_clockListener','LICENSE_LIMIT_EXCEEDED','registerModule','createPublicKey','job_type.defaults.priority\x20must\x20be\x20int\x20or\x20null','isHeld','node:cluster','refreshTtlBatch','exportBlobs','_listenAddr','searchWithScores','queue:done','~queue_logs','~fts:','2712gEfesx','stack','$all','itemsDb','samplePayloads','__sync:peer_state','createBegin','listTypes','usedBy','3206672yLMFdX','processor:ready','timeMachine','max_concurrency','select',';return\x20{','then','embedder\x20request\x20still\x20pending','failed','license','filter','_jsFactories','FOREIGN_KEY_VIOLATION','registerIndex','queue:retry','starting','list','_setTTLEntry','$or','key','exists','log\x20entry\x20must\x20be\x20a\x20string\x20or\x20object','_flushTimer','routes','isOpenForIp','[log-sink]\x20','_nodePublicKey','_pendingLocal','maxBodyBytes','flushPoll','put','Unable\x20to\x20serialize\x20object\x20as\x20a\x20key:\x20','return\x20fromCharCode(','_ttlTimeout','OKDBInvalidIndexKeyError','_nm','locks','(source)\x20=>\x20{','getStats','bus','_closedHandle','Embedder\x20factory\x20for\x20\x22','unknown\x20promise\x20token','resumed','pending','_getOidcDiscovery','nextTick','_timerHandle','_feed','ceil','signalWant','apply','callStatic','isDeepStrictEqual','compareKeys','sparse','registerQuantum','draining','servers','files.registerExtractor:\x20extractor\x20must\x20be\x20a\x20function','asArray',')\x0a\x09\x09}\x0a\x09\x09','summary','export','listBuckets','createReadStream','_build','_ttlByExpiry','peers','_onPoke','transaction\x20commit\x20failed','okdb-node:\x20a\x20background\x20async\x20handler\x20rejected:\x20','_statusEnv','encodeInto','_settled','isWanted','__notImplementedNative','_compactLock','retryJob','_drain','batch','REBUILD_IN_PROGRESS','setTTL','$gt','getDefaultTTL','status','_localViewApi','bootRuntime','hasDriver','getLegacyCursor','backoff_multiplier','inFlight','assertQueryOptions','engineUninstall','$pending','abs','staticCall','noteListenAddr','Version\x20mismatch\x20for\x20','OKDBSchemaValidationError','keys','lookupAllByName','_ttlTimerAt','queue:enqueued','registerEmbedderFactory','name','readKey','subscriptions-store:\x20open()\x20not\x20called','docs','ms\x20mean=','Invalid\x20onDelete\x20rule\x20\x27','onLicenseExpired','unique','note','resetting','Map','processor:progress','ensureType','captureStackTrace','pumpEnvSync','describeTypeDetailed','createdBy','FTS_BUILD_CONTINUE','_openAckDb','\x20dropped\x20(buffer\x20full)','-worker','\x27\x20did\x20not\x20return\x20a\x20valid\x20instance','isActive','hasChangelog','hasIndex','importFromStream','index:reset','_stopFor','_getType','catch','rollback','streamClose','_sinks','_refIndexDb','/?$','status_message','bumpVersion','_deliverEvent','normalizeOAuthAuthResult','admission','_ensureTokensType','reset','disable','_viewRebuildChain','_refCache','sessionsForKey','has','embedderCall','queue:reconciled','ctxEmit','getRaw','prefix','_processorStops','group','dropIndex','doc','instanceTimerArmed','reg','_lookupByName','vector-search','typesDb','registerDriver','\x22\x20must\x20be\x20a\x20plain\x20object','health','job_type.max_concurrency\x20must\x20be\x20int\x20>=\x201\x20or\x20null','_seen','__syncOverride','embeddings:doc:status_change','detach','finished','bucket_tokens','String\x20does\x20not\x20fit\x20in\x20target\x20buffer','licenses','_writer','pinned','TXN_END','bucket.tokens\x20cannot\x20exceed\x20capacity','written','position','materializer','putSync','whenSettled','_sweepOrphanLogs','/([^/]+)','_key','getMany','_readBuf','job.tag\x20must\x20be\x20string|null','_ttlParseComposite','advanceHlcOnRecv','Plugin\x20must\x20have\x20a\x20name','durableRetryDoc','auth','_license','Engine\x20driver\x20for\x20\x22','allowUnsafe','application/octet-stream','queue:clear-progress','\x22\x20is\x20not\x20allowed\x20(it\x20evaluates\x20code);\x20use\x20declarative\x20operators\x20instead','validateBlobIntegrity','BAD_PARAM','stringify','markJobComplete','forEach','inclusiveEnd','new','_info','pipelineFamily','\x22)\x20before\x20open()','inline','processor:\x20module\x20\x27','getIndex','iterable','listFtsEnvs','split','upload','extend','snapshot','encoder','job.backoff_multiplier\x20must\x20be\x20number\x20>=\x201','allocUnsafeSlow','range','\x20of\x20env\x20\x22','syncLock','describeIndex','_commitSessionMutation','subscriptions-store:\x20addInterest\x20on\x20unknown\x20session\x20','publicKey','BAD_HOST','runtimeState','SCHEMA_COLLECTION_INVALID','__ttlByKey','shouldApplyChange','body','getTemplate','_native','proc','ONLINE','refill_every','enabled','_OPTION_HINTS','CREATED','origin','setCurrentDb','durableWorkerStats','getKeys','_blobStream','embedBatch','ITEM_CREATE','durableDoc','updateBucket','\x20returned\x20no\x20key','ies','upsertLink','56408TtMLyY','node','DOC_STATUS_CHANGE','$payload','engine','bootSyncedPipelines','default','_handlerName','_create','SUB_ENV','Blob\x20not\x20found:\x20','_buildOwnRow','job.claim_id\x20must\x20be\x20string|null','removeEnvironment','isBuffer','tags\x20must\x20be\x20array\x20or\x20string','type','set_null','vector','compact','explainIndex','address','_lookupByTokenHash','__tokenSecret','READER_HELD_ACROSS_AWAIT','processorsParticipating','logChange','HTTP_CLUSTER_REMOVED','_subsV2Obj','storeEnvName','flush','Foreign\x20key\x20violation:\x20','\x27\x20is\x20already\x20registered','_bootLog','fts:registered','_peerDb','setCursor','refreshThresholdMs','dropSchema','config','\x20documents\x20fail\x20validation','setMode','repairBlobRefs','puts','_registerType','listJobTypes','_enableChangelog','_workers','reconcile','~ttl:expiry','setClaimGated','spki','before\x20any\x20await\x20—\x20or\x20opt\x20into\x20useReadTransaction:\x27tolerant\x27\x20to\x20keep\x20reading\x20while\x20','host','floor','iterator','Index\x20\x22','dims','createAndStartEngine','_writerWatchdogInterval','_pumper','__sync:acks','getByPrefix','events','getBlobStatus','req','_quantumGate','\x20=\x20source[position++]\x0a\x09\x09if\x20(','runPoll','getIndexMeta','$options','removeJobType','envs','node:http','\x20>=\x200x80)\x20','allSettled','listIndexKeys','node:path','tick','_rawTxnBuf','tryAcquire','processor:error','HTTP\x20server\x20already\x20running','okdb.http.listen(port)\x20in\x20each\x20worker.','quarantinedEnvs','_attached','percentile','_log','.\x20Valid:\x20','_pending','reidentify','type:registered','event','startIndex','completeJob','createQueryTester','exclusiveStart','\x20already\x20exists','releaseClaim','flushDebounce','_cmd','__peers','PLUGIN_NAME_CONFLICT','runDrop','localViewStats','drives','getGcHorizon','job.buckets[].tokens\x20must\x20be\x20int\x20>=\x201','started','listRecords','engineType','_isExpired','value','__desired','durableMarkDone','_logEnv','processor:\x20rebuild\x20must\x20be\x20a\x20function','db.processors.','$where','dedupeMax','dirty','_dupArg','_syncLock','_clearChunked','reconcilePeer','stopAutoCompactCheck','OKDBProcessor','okdb','ringSize','exportEnvsBuf','_dedupeMax','_running','txn','dupSort','progressed','job_type.payload_schema\x20must\x20be\x20object|null','chunk\x20strategy\x20must\x20be\x20a\x20function','getJobLogs','concat','count','shutdownTimeout','_subscribeEvent','_indexBuilds','_detachConsole','enableAll','backup','_assertFiles','encryptionKeys','_openLocalPeerDb','loop-lag','outgoing','$gte','cascade','workers','record','recordPeerAck','__lock','clearDefaultTTL','pop','_getPeerState','_hybridQuery','FTS_FLUSH_TIMEOUT','_call','hasOwnProperty','type:drop','isFinite','T_SESSION','Cannot\x20register\x20plugins\x20after\x20start','registerQuantum:\x20load\x20must\x20be\x20a\x20function','createEnvironment','subscribe','Cannot\x20set\x20enforce\x20schema\x20on\x20','cancelJob','_addr','setBridge','autoCompactTimerArmed','node:events','_run','~queue_payloads','_sub','processor:\x20cannot\x20combine\x20a\x20closure\x20handler\x20with\x20module:{path,export}.\x20','registerType','startAutoCompactCheck','listViolations','hook','\x20log\x20entr','driver','standalone','_busFacade','addEventListener','once','Buffer','itemsPlan','registerChunkStrategy','STOPPED','granId','a\x20Buffer\x20or\x20readable\x20stream','log','okdb._openEnvLazy:\x20env\x20\x22','handle','create','checkSignals','LICENSE_FEATURE_DISABLED','_markSeen','log\x20entry\x20fields\x20too\x20large\x20(>2KB\x20serialized)','\x22\x20not\x20found\x20in\x20~envs','writerWatchdog','size','clearAsync','_enqueueInTxn','_ensureVectorStore','_startAdmission','addSSE','isEnabled','resolveField:\x20resolver\x20must\x20be\x20a\x20function','family','_low','_quantum','write','lockHeld','delta_limit','ref','createPipeline','item:create','Date'];_0x27a0=function(){return _0x375565;};return _0x27a0();}function requireOkdbEnvRefs(){const _0x53cd9d=_0x431d06;if(hasRequiredOkdbEnvRefs)return okdbEnvRefs;hasRequiredOkdbEnvRefs=0x1;const {CHANGE_ACTIONS:_0x469a57,EVENTS:_0x3b7053}=requireOkdbEnums(),{OKDBError:_0x1b67b1,OKDBForeignKeyDeleteError:_0x33e1bd}=requireOkdbError(),_0x39a3b6=_0x53cd9d(0x19c),_0x3adbf2=new Set([_0x53cd9d(0x13f),'cascade',_0x53cd9d(0x691),'restrict']);function _0x5500f7(_0x37f6b1,_0x4ca57a){const _0x4079b4=_0x53cd9d;if(_0x37f6b1==null||!_0x4ca57a)return undefined;const _0x3ea9a2=_0x4ca57a['split']('.');let _0x2c9ffa=_0x37f6b1;for(const _0x172462 of _0x3ea9a2){if(_0x2c9ffa==null||typeof _0x2c9ffa!==_0x4079b4(0x4ed)||!(_0x172462 in _0x2c9ffa))return undefined;_0x2c9ffa=_0x2c9ffa[_0x172462];}return _0x2c9ffa;}function _0x162314(_0x3dbcbc,_0x44189e,_0x3fa4a0){const _0x10e5e7=_0x53cd9d,_0x3c0f3f=_0x44189e[_0x10e5e7(0x658)]('.'),_0x13a375={..._0x3dbcbc};let _0x284cf2=_0x13a375;for(let _0x107253=0x0;_0x107253<_0x3c0f3f[_0x10e5e7(0x2a9)]-0x1;_0x107253++){_0x284cf2[_0x3c0f3f[_0x107253]]=_0x284cf2[_0x3c0f3f[_0x107253]]!=null?{..._0x284cf2[_0x3c0f3f[_0x107253]]}:{},_0x284cf2=_0x284cf2[_0x3c0f3f[_0x107253]];}return _0x284cf2[_0x3c0f3f[_0x3c0f3f[_0x10e5e7(0x2a9)]-0x1]]=_0x3fa4a0,_0x13a375;}function _0x222e51(_0x319f39,_0x3b7a50,_0x4b0af2,_0x13b8a0,_0x2f1e03){return[_0x319f39,_0x3b7a50,_0x4b0af2,_0x13b8a0,_0x2f1e03];}function _0x291eef(_0x4c436c){const _0x24b62d=_0x53cd9d;return typeof _0x4c436c===_0x24b62d(0x229)||typeof _0x4c436c===_0x24b62d(0x1ce);}function _0x4375c0(_0x330f08,_0xc74d89){const _0x2c07d2=_0x53cd9d;return JSON[_0x2c07d2(0x64b)]([_0x330f08,_0xc74d89]);}function*_0x3132e2(_0x5c1de8,_0x39f43a,_0x1b3e8a){const _0x4de396=_0x53cd9d,_0x5489f9=_0x1b3e8a!==undefined;for(const {key:_0xefaa22}of _0x5c1de8[_0x4de396(0x1bd)]({'start':_0x5489f9?[_0x39f43a,_0x1b3e8a]:[_0x39f43a]})){if(!Array[_0x4de396(0x17d)](_0xefaa22))continue;if(_0xefaa22[0x0]!==_0x39f43a||_0x5489f9&&_0xefaa22[0x1]!==_0x1b3e8a)break;yield _0xefaa22;}}function _0x2e0d29(_0x9503e8,_0x1bc8f1='',_0x30cfb5=null){const _0x4e50df=_0x53cd9d,_0x3b9a82=[];if(!_0x9503e8||typeof _0x9503e8!=='object')return _0x3b9a82;if(!_0x30cfb5)_0x30cfb5=_0x9503e8;if(_0x9503e8[_0x4e50df(0x76c)]){const _0x5a7702=_0x9503e8['$ref'][_0x4e50df(0x359)](/^#\/\$defs\/(.+)$/);if(_0x5a7702&&_0x30cfb5?.['$defs']?.[_0x5a7702[0x1]])return _0x2e0d29(_0x30cfb5['$defs'][_0x5a7702[0x1]],_0x1bc8f1,_0x30cfb5);return _0x3b9a82;}if(_0x9503e8[_0x4e50df(0x75d)]&&typeof _0x9503e8['ref']===_0x4e50df(0x4ed)&&_0x9503e8[_0x4e50df(0x75d)][_0x4e50df(0x690)]){const _0x2b77cd=_0x9503e8[_0x4e50df(0x75d)][_0x4e50df(0x175)]||_0x4e50df(0x13f);if(!_0x3adbf2['has'](_0x2b77cd))throw new _0x1b67b1(_0x4e50df(0x5eb)+_0x2b77cd+_0x4e50df(0x44e)+(_0x1bc8f1||_0x4e50df(0x3b0))+_0x4e50df(0x6d8)+[..._0x3adbf2][_0x4e50df(0x7d6)](',\x20'),'INVALID_SCHEMA');_0x3b9a82[_0x4e50df(0x540)]({'fieldPath':_0x1bc8f1,'targetType':_0x9503e8[_0x4e50df(0x75d)][_0x4e50df(0x690)],'onDelete':_0x2b77cd});}if(_0x9503e8['properties'])for(const [_0x5e2990,_0x8308d8]of Object[_0x4e50df(0x2d3)](_0x9503e8[_0x4e50df(0x2ce)])){const _0x45765b=_0x1bc8f1?_0x1bc8f1+'.'+_0x5e2990:_0x5e2990;_0x3b9a82[_0x4e50df(0x540)](..._0x2e0d29(_0x8308d8,_0x45765b,_0x30cfb5));}return _0x3b9a82;}function _0x2c391a(_0x27e877){const _0x457688=_0x53cd9d,_0x4c5286=new Map(),_0x244b23=new Map();for(const _0x207cf2 of _0x27e877['_typeKeys']()){if(_0x207cf2[_0x457688(0x217)]('~'))continue;const _0x186c9f=_0x27e877[_0x457688(0x622)][_0x457688(0x1bc)](_0x207cf2);if(!_0x186c9f?.['schema']?.[_0x457688(0x23f)])continue;let _0x562109;try{_0x562109=_0x2e0d29(_0x186c9f['schema'][_0x457688(0x23f)]);}catch{continue;}if(_0x562109[_0x457688(0x2a9)]>0x0){_0x4c5286[_0x457688(0x48c)](_0x207cf2,_0x562109);for(const _0x539644 of _0x562109){if(!_0x244b23[_0x457688(0x614)](_0x539644[_0x457688(0x27b)]))_0x244b23[_0x457688(0x48c)](_0x539644[_0x457688(0x27b)],[]);_0x244b23[_0x457688(0x1bc)](_0x539644[_0x457688(0x27b)])[_0x457688(0x540)]({'sourceType':_0x207cf2,'fieldPath':_0x539644[_0x457688(0x450)],'onDelete':_0x539644[_0x457688(0x175)]});}}}_0x27e877[_0x457688(0x612)]={'outgoing':_0x4c5286,'incoming':_0x244b23};if(_0x4c5286[_0x457688(0x74f)]>0x0)_0x55df49(_0x27e877);}function _0x4dca7f(_0xa680b3,_0x1bb036){const _0x4ca579=_0x53cd9d;return _0xa680b3[_0x4ca579(0x612)]['outgoing'][_0x4ca579(0x1bc)](_0x1bb036)||[];}function _0x3112b9(_0x28e0c6,_0x461341){const _0x19c949=_0x53cd9d;return _0x28e0c6['_refCache'][_0x19c949(0x408)][_0x19c949(0x1bc)](_0x461341)||[];}function _0x55df49(_0x45a690){const _0x22c40d=_0x53cd9d;if(_0x45a690[_0x22c40d(0x607)])return _0x45a690[_0x22c40d(0x607)];return _0x45a690[_0x22c40d(0x607)]=_0x45a690['db']['openDB'](_0x22c40d(0x13d),{'dupSort':![]}),_0x45a690[_0x22c40d(0x607)];}function _0x445b65(_0x1e19d5,_0x1e9c9b,_0xca0378,_0x1108e6,_0x150b6a){const _0x2e12fd=_0x53cd9d,_0xf95ca=_0x4dca7f(_0x1e19d5,_0x1e9c9b);if(_0xf95ca[_0x2e12fd(0x2a9)]===0x0)return;const _0x25411f=_0x55df49(_0x1e19d5);for(const _0x47684e of _0xf95ca){const _0x229277=_0x150b6a!=null?_0x5500f7(_0x150b6a,_0x47684e[_0x2e12fd(0x450)]):undefined,_0x572a41=_0x1108e6!=null?_0x5500f7(_0x1108e6,_0x47684e[_0x2e12fd(0x450)]):undefined;if(_0x229277===_0x572a41)continue;_0x291eef(_0x229277)&&_0x25411f[_0x2e12fd(0x1db)](_0x222e51(_0x47684e['targetType'],_0x229277,_0x1e9c9b,_0xca0378,_0x47684e[_0x2e12fd(0x450)])),_0x291eef(_0x572a41)&&_0x25411f[_0x2e12fd(0x636)](_0x222e51(_0x47684e[_0x2e12fd(0x27b)],_0x572a41,_0x1e9c9b,_0xca0378,_0x47684e['fieldPath']),0x1);}}function _0x306d94(_0x124177,_0x1a0eba,_0x28ec7d,_0x54c688){const _0x70d71=_0x53cd9d,_0x4983ec=_0x4dca7f(_0x124177,_0x1a0eba);if(_0x4983ec[_0x70d71(0x2a9)]===0x0)return;const _0x21d32a=_0x55df49(_0x124177);for(const _0x12c41c of _0x4983ec){const _0x453974=_0x54c688!=null?_0x5500f7(_0x54c688,_0x12c41c[_0x70d71(0x450)]):undefined;_0x291eef(_0x453974)&&_0x21d32a['removeSync'](_0x222e51(_0x12c41c[_0x70d71(0x27b)],_0x453974,_0x1a0eba,_0x28ec7d,_0x12c41c[_0x70d71(0x450)]));}}function _0x30904c(_0x59e79c,_0x48917b,_0x5b241c,_0x5d6e9a){const _0x25eb8d=_0x53cd9d,_0xa6a4f1=_0x4dca7f(_0x59e79c,_0x48917b);if(_0xa6a4f1[_0x25eb8d(0x2a9)]===0x0)return[];const _0x41a6f5=[];for(const _0x5f0464 of _0xa6a4f1){const _0x4a3534=_0x5500f7(_0x5d6e9a,_0x5f0464['fieldPath']);if(_0x4a3534==null)continue;if(!_0x59e79c[_0x25eb8d(0x2c9)](_0x5f0464[_0x25eb8d(0x27b)])){_0x41a6f5[_0x25eb8d(0x540)]({'fieldPath':_0x5f0464[_0x25eb8d(0x450)],'targetType':_0x5f0464[_0x25eb8d(0x27b)],'targetKey':_0x4a3534,'message':_0x25eb8d(0x107)+_0x5f0464[_0x25eb8d(0x27b)]+_0x25eb8d(0x1f5)});continue;}const _0x494a64=_0x59e79c[_0x25eb8d(0x602)](_0x5f0464[_0x25eb8d(0x27b)])[_0x25eb8d(0x4b3)];!_0x494a64[_0x25eb8d(0x2d8)](_0x4a3534)&&_0x41a6f5['push']({'fieldPath':_0x5f0464[_0x25eb8d(0x450)],'targetType':_0x5f0464[_0x25eb8d(0x27b)],'targetKey':_0x4a3534,'message':'Referenced\x20key\x20\x27'+_0x4a3534+_0x25eb8d(0x4f1)+_0x5f0464[_0x25eb8d(0x27b)]+'\x27'});}return _0x41a6f5;}function _0x24b100(_0xf5b639,_0x1ab82c,_0x5378e7,_0x2f3029,_0x4391a3,{timestamp:_0x11673f,origin:_0xc5694c,_cascadeVisited:_0x8b3a89}){const _0x5cda59=_0x53cd9d,_0x4dd345=_0x3112b9(_0xf5b639,_0x5378e7);if(_0x4dd345[_0x5cda59(0x2a9)]===0x0)return;const _0x44d1a6=_0x55df49(_0xf5b639),_0x13ae77=[];for(const [,,_0x59b878,_0x29cd5a,_0x511096]of _0x3132e2(_0x44d1a6,_0x5378e7,_0x2f3029)){_0x13ae77[_0x5cda59(0x540)]({'sourceType':_0x59b878,'sourceKey':_0x29cd5a,'fieldPath':_0x511096});}if(_0x13ae77[_0x5cda59(0x2a9)]===0x0)return;for(const _0x6168da of _0x13ae77){const _0x97c18=_0x4dd345['find'](_0x224dfb=>_0x224dfb[_0x5cda59(0x1eb)]===_0x6168da[_0x5cda59(0x1eb)]&&_0x224dfb[_0x5cda59(0x450)]===_0x6168da['fieldPath']),_0x50f9a3=_0x97c18?.[_0x5cda59(0x175)]||_0x5cda59(0x13f);switch(_0x50f9a3){case'restrict':{if(_0xc5694c===null)throw new _0x33e1bd(_0x5378e7,_0x2f3029,_0x13ae77[_0x5cda59(0x587)](_0x874cd7=>{const _0x6deead=_0x5cda59,_0x2fa0f8=_0x4dd345['find'](_0x27f5a9=>_0x27f5a9[_0x6deead(0x1eb)]===_0x874cd7[_0x6deead(0x1eb)]&&_0x27f5a9[_0x6deead(0x450)]===_0x874cd7['fieldPath']);return(_0x2fa0f8?.[_0x6deead(0x175)]||_0x6deead(0x13f))===_0x6deead(0x1a1);}));break;}case _0x5cda59(0x718):{const _0x1b33c2=_0x4375c0(_0x6168da[_0x5cda59(0x1eb)],_0x6168da['sourceKey']);if(_0x8b3a89[_0x5cda59(0x614)](_0x1b33c2))continue;_0xf5b639[_0x5cda59(0x602)](_0x6168da['sourceType'])[_0x5cda59(0x4b3)][_0x5cda59(0x2d8)](_0x6168da[_0x5cda59(0x235)])&&_0xf5b639['_remove'](_0x1ab82c,_0x6168da[_0x5cda59(0x1eb)],_0x6168da[_0x5cda59(0x235)],{'timestamp':_0x11673f,'origin':_0xc5694c,'_cascadeVisited':_0x8b3a89});break;}case _0x5cda59(0x691):{const _0x404289=_0xf5b639[_0x5cda59(0x602)](_0x6168da['sourceType'])[_0x5cda59(0x4b3)],_0x4aceef=_0x404289[_0x5cda59(0x153)](_0x6168da['sourceKey']);if(_0x4aceef){const _0x42495f=_0x162314(_0x4aceef[_0x5cda59(0x6f0)],_0x6168da['fieldPath'],null);_0xf5b639['_write'](_0x1ab82c,_0x5cda59(0x59b),_0x6168da[_0x5cda59(0x1eb)],_0x6168da[_0x5cda59(0x235)],_0x42495f,{'timestamp':_0x11673f,'origin':_0xc5694c,'_cascading':!![]});}break;}}}}function _0x2475b2(_0x39acac){const _0x26e403=_0x53cd9d;!_0x39acac['hasType'](_0x39a3b6)&&_0x39acac[_0x26e403(0x6ac)](_0x39a3b6);}function _0x6317b4(_0x35d71b,_0x22ecc9,_0x2de610,_0x3ff7e3,_0x5b4533,_0x331b04,_0x49f62a,{timestamp:timestamp=Date[_0x53cd9d(0x772)](),origin:origin=null}={}){const _0x132172=_0x53cd9d;_0x2475b2(_0x35d71b);const _0x2fe8e4=_0x2de610+'@'+_0x3ff7e3+'@'+_0x5b4533,_0x4fb7aa={'sourceType':_0x2de610,'sourceKey':_0x3ff7e3,'fieldPath':_0x5b4533,'targetType':_0x331b04,'targetKey':_0x49f62a,'timestamp':timestamp,'origin':origin},_0x12fd6f=_0x35d71b[_0x132172(0x602)](_0x39a3b6)['data'],_0x40c49e=_0x12fd6f[_0x132172(0x153)](_0x2fe8e4),_0x37a9ac=_0x40c49e?_0x40c49e[_0x132172(0x3a1)]+0x1:0x1;_0x12fd6f[_0x132172(0x636)](_0x2fe8e4,_0x4fb7aa,_0x37a9ac),_0x35d71b[_0x132172(0x198)]({'id':_0x132172(0x76d)+_0x39a3b6+'@'+_0x2fe8e4,'type':_0x39a3b6,'key':_0x2fe8e4,'action':_0x469a57['PUT'],'timestamp':timestamp,'txnId':_0x22ecc9?.['id'],'origin':origin},_0x40c49e?.[_0x132172(0x6f0)],_0x4fb7aa),_0x35d71b[_0x132172(0x6bf)]['emit'](_0x3b7053[_0x132172(0x19d)],{'sourceType':_0x2de610,'sourceKey':_0x3ff7e3,'fieldPath':_0x5b4533,'targetType':_0x331b04,'targetKey':_0x49f62a,'env':_0x35d71b[_0x132172(0x5e6)]});}function _0x5af84b(_0x159907,_0x295531,_0x1fe876,_0x1c372a,_0x37cfdf,{timestamp:timestamp=Date['now'](),origin:origin=null}={}){const _0x10159e=_0x53cd9d;if(!_0x159907['hasType'](_0x39a3b6))return;const _0x429fef=_0x1fe876+'@'+_0x1c372a+'@'+_0x37cfdf,_0x3a56d3=_0x159907['_getType'](_0x39a3b6)['data'],_0x53d32f=_0x3a56d3['getEntry'](_0x429fef);if(!_0x53d32f)return;_0x3a56d3[_0x10159e(0x1db)](_0x429fef),_0x159907[_0x10159e(0x198)]({'id':_0x10159e(0x76d)+_0x39a3b6+'@'+_0x429fef,'type':_0x39a3b6,'key':_0x429fef,'action':_0x469a57[_0x10159e(0x221)],'timestamp':timestamp,'txnId':_0x295531?.['id'],'origin':origin},_0x53d32f[_0x10159e(0x6f0)],undefined),_0x159907[_0x10159e(0x6bf)][_0x10159e(0x36e)](_0x3b7053['REF_VIOLATION_RESOLVED'],{'sourceType':_0x1fe876,'sourceKey':_0x1c372a,'fieldPath':_0x37cfdf,'env':_0x159907[_0x10159e(0x5e6)]});}function _0x57ce75(_0x263ad2,_0x1681c6,_0x569d3a,_0x4487c6,_0x3a183d={}){const _0xc7cd29=_0x53cd9d;if(!_0x263ad2[_0xc7cd29(0x2c9)](_0x39a3b6))return;const _0x3ebedd=_0x263ad2[_0xc7cd29(0x602)](_0x39a3b6)[_0xc7cd29(0x4b3)],_0xb5121c=_0x569d3a+'@'+_0x4487c6+'@',_0x1c5860=[];for(const {key:_0x41ddfd,value:_0xb4d025}of _0x3ebedd[_0xc7cd29(0x1bd)]({'start':_0xb5121c,'end':_0xb5121c+'\uffff'})){if(_0xb4d025?.[_0xc7cd29(0x1eb)]===_0x569d3a&&_0xb4d025?.['sourceKey']===_0x4487c6)_0x1c5860[_0xc7cd29(0x540)](_0x41ddfd);}for(const _0x3c6b6a of _0x1c5860){const _0x20d7f0=_0x3ebedd[_0xc7cd29(0x153)](_0x3c6b6a);if(!_0x20d7f0)continue;_0x3ebedd[_0xc7cd29(0x1db)](_0x3c6b6a),_0x263ad2[_0xc7cd29(0x198)]({'id':'item:'+_0x39a3b6+'@'+_0x3c6b6a,'type':_0x39a3b6,'key':_0x3c6b6a,'action':_0x469a57['REMOVE'],'timestamp':_0x3a183d[_0xc7cd29(0x499)]||Date[_0xc7cd29(0x772)](),'txnId':_0x1681c6?.['id'],'origin':_0x3a183d[_0xc7cd29(0x674)]},_0x20d7f0['value'],undefined);}}function _0x5d3f22(_0x336b8a,_0x21a4e6){const _0x535787=_0x53cd9d;if(!_0x336b8a[_0x535787(0x2c9)](_0x39a3b6))return;const _0x2f4313=_0x336b8a['_getType'](_0x39a3b6)[_0x535787(0x4b3)],_0x1b9194=_0x21a4e6+'@',_0x2b3710=[];for(const {key:_0x59ee7c,value:_0x5ba21a}of _0x2f4313[_0x535787(0x1bd)]({'start':_0x1b9194,'end':_0x1b9194+'\uffff'})){if(_0x5ba21a?.[_0x535787(0x1eb)]===_0x21a4e6)_0x2b3710['push'](_0x59ee7c);}for(const _0x34ddde of _0x2b3710)_0x2f4313[_0x535787(0x1db)](_0x34ddde);}async function _0x42e7a1(_0x34dc6e,_0x2af0da){const _0x1eae9b=_0x53cd9d,_0x384d5f=_0x4dca7f(_0x34dc6e,_0x2af0da);if(_0x384d5f[_0x1eae9b(0x2a9)]===0x0)return;await _0x34dc6e['_writer'][_0x1eae9b(0x241)](()=>{const _0x4c2979=_0x1eae9b;for(const {key:_0x58437a,value:_0xef22c1}of _0x34dc6e[_0x4c2979(0x1bd)](_0x2af0da)){_0x445b65(_0x34dc6e,_0x2af0da,_0x58437a,_0xef22c1,null);const _0x6ee6b=_0x30904c(_0x34dc6e,_0x2af0da,_0x58437a,_0xef22c1);for(const _0x1200d1 of _0x6ee6b){_0x6317b4(_0x34dc6e,null,_0x2af0da,_0x58437a,_0x1200d1['fieldPath'],_0x1200d1[_0x4c2979(0x27b)],_0x1200d1['targetKey']);}}});}const _0x24cb35=0x1388;async function _0x3222b1(_0x5cfd98){const _0x4dac22=_0x53cd9d,_0xab0ee5=_0x5cfd98['_refCache']?.[_0x4dac22(0x716)]?.['size']>0x0;if(!_0xab0ee5&&!_0x5cfd98['_refIndexDb'])return{'dropped':0x0,'written':0x0};const _0x1cc70b=_0x55df49(_0x5cfd98);let _0x4fd0f8=0x0;for(;;){const _0x205e60=Array['from'](_0x1cc70b['getKeys']({'limit':_0x24cb35}));if(_0x205e60[_0x4dac22(0x2a9)]===0x0)break;let _0x1273de=0x0;await _0x5cfd98[_0x4dac22(0x62f)]['transaction'](()=>{for(const _0x5aa5c5 of _0x205e60)if(_0x1cc70b['removeSync'](_0x5aa5c5))_0x1273de++;});if(_0x1273de===0x0)break;_0x4fd0f8+=_0x1273de;}let _0x5b3131=0x0;for(const _0x33f910 of _0x5cfd98[_0x4dac22(0x612)][_0x4dac22(0x716)]['keys']()){if(_0x33f910[_0x4dac22(0x217)]('~')||!_0x5cfd98[_0x4dac22(0x2c9)](_0x33f910))continue;const _0x53a642=_0x4dca7f(_0x5cfd98,_0x33f910);await _0x5cfd98[_0x4dac22(0x62f)][_0x4dac22(0x241)](()=>{const _0xea009=_0x4dac22;for(const {key:_0x554438,value:_0x1a9458}of _0x5cfd98['getRange'](_0x33f910)){for(const _0xd16102 of _0x53a642){const _0x3078ca=_0x5500f7(_0x1a9458,_0xd16102[_0xea009(0x450)]);if(!_0x291eef(_0x3078ca))continue;_0x1cc70b[_0xea009(0x636)](_0x222e51(_0xd16102[_0xea009(0x27b)],_0x3078ca,_0x33f910,_0x554438,_0xd16102[_0xea009(0x450)]),0x1),_0x5b3131++;}}});}return{'dropped':_0x4fd0f8,'written':_0x5b3131};}return okdbEnvRefs={'getFieldValue':_0x5500f7,'setFieldValue':_0x162314,'refIndexKey':_0x222e51,'isRefTarget':_0x291eef,'cascadeVisitKey':_0x4375c0,'extractRefs':_0x2e0d29,'rebuildRefCache':_0x2c391a,'getTypeRefs':_0x4dca7f,'getIncomingRefs':_0x3112b9,'getRefIndexDb':_0x55df49,'updateRefIndex':_0x445b65,'removeRefIndexEntries':_0x306d94,'refIndexRowsFor':_0x3132e2,'rebuildRefIndex':_0x3222b1,'checkForeignKeys':_0x30904c,'processDeleteCascade':_0x24b100,'setRefViolation':_0x6317b4,'clearRefViolation':_0x5af84b,'clearRefViolationsForKey':_0x57ce75,'clearRefViolationsForType':_0x5d3f22,'syncRefIndex':_0x42e7a1},okdbEnvRefs;}var hasRequiredOkdbSubscriptionsStore;function requireOkdbSubscriptionsStore(){const _0x26c279=_0x431d06;if(hasRequiredOkdbSubscriptionsStore)return okdbSubscriptionsStore[_0x26c279(0x1ad)];hasRequiredOkdbSubscriptionsStore=0x1;const _0xd955dd=require$$0$4,{assertFilterAllowed:_0x39f8b8}=requireOkdbQueryFilter(),{rebuildRefCache:_0x52944f}=requireOkdbEnvRefs(),_0x27ef98=_0x26c279(0x148),_0x5df340=_0x26c279(0x34c),_0x59071a=_0x26c279(0x55f),_0x3a4401=[_0x26c279(0x4d1),_0x26c279(0x690),'key'],_0x1497dc=[_0x26c279(0x4d1),_0x26c279(0x690)],_0x1996ef=0x5a*0x3e8,_0x445a74=Math[_0x26c279(0x6b6)](_0x1996ef/0x2);class _0x39be2f{constructor(_0x44f24d,_0x47f06f={}){const _0x30cbc6=_0x26c279;this[_0x30cbc6(0x6ff)]=_0x44f24d,this[_0x30cbc6(0x488)]=Number['isFinite'](_0x47f06f[_0x30cbc6(0x488)])&&_0x47f06f[_0x30cbc6(0x488)]>0x0?_0x47f06f['ttlMs']:_0x1996ef,this['refreshThresholdMs']=Number[_0x30cbc6(0x725)](_0x47f06f[_0x30cbc6(0x6a5)])?_0x47f06f[_0x30cbc6(0x6a5)]:_0x445a74,this[_0x30cbc6(0x733)]=null;}async['open'](){const _0x1abfe3=_0x26c279;if(this[_0x1abfe3(0x733)])return this['_sub'];const _0x17df34=await this[_0x1abfe3(0x6ff)]['createEnvironment'](_0x27ef98,{'sync':![]});return await _0x17df34[_0x1abfe3(0x5f2)](_0x5df340,{'indexes':[_0x1497dc]}),await _0x17df34[_0x1abfe3(0x5f2)](_0x59071a),_0x17df34[_0x1abfe3(0x476)](_0x59071a)?_0x52944f(_0x17df34):await _0x17df34[_0x1abfe3(0x500)](_0x59071a,{'definition':{'type':_0x1abfe3(0x4ed),'properties':{'sessionId':{'type':'string','ref':{'type':_0x5df340,'onDelete':_0x1abfe3(0x718)}},'dataEnv':{'type':_0x1abfe3(0x229)},'type':{'type':'string'},'key':{'type':_0x1abfe3(0x229)}},'required':[_0x1abfe3(0x1d1),'dataEnv',_0x1abfe3(0x690),_0x1abfe3(0x590)]},'enforce':!![]}),await _0x17df34['ensureType'](_0x59071a,{'indexes':[_0x3a4401]}),await _0x17df34[_0x1abfe3(0x2ca)](_0x59071a,_0x3a4401),await _0x17df34[_0x1abfe3(0x2ca)](_0x5df340,_0x1497dc),this['_sub']=_0x17df34,_0x17df34;}[_0x26c279(0xf7)](){const _0x4249c7=_0x26c279;if(!this[_0x4249c7(0x733)])throw new Error(_0x4249c7(0x5e8));return this[_0x4249c7(0x733)];}async['createSession']({sessionId:_0x5d850e,dataEnv:_0x1134ee,type:_0x338aa8,filter:filter=null,ttlMs:_0xb3c715}={}){const _0x25a5e2=_0x26c279,_0x3cf7c4=this[_0x25a5e2(0xf7)]();_0x39f8b8(filter);const _0x90c94d=_0x5d850e!=null&&String(_0x5d850e)[_0x25a5e2(0x2a9)]>0x0?String(_0x5d850e):_0xd955dd[_0x25a5e2(0x33b)](),_0x1ede1d=Number[_0x25a5e2(0x725)](_0xb3c715)&&_0xb3c715>0x0?_0xb3c715:this[_0x25a5e2(0x488)],_0x5217d8=Date[_0x25a5e2(0x772)](),_0x1f18fd={'sessionId':_0x90c94d,'dataEnv':_0x1134ee,'type':_0x338aa8,'filter':filter??null,'version':0x0,'createdAt':_0x5217d8,'expiresAt':_0x5217d8+_0x1ede1d};return await _0x3cf7c4['put'](_0x5df340,_0x90c94d,_0x1f18fd,{'ttl':_0x1ede1d}),{'sessionId':_0x90c94d,'version':0x0};}[_0x26c279(0x496)](_0x339df0){const _0x139eb7=_0x26c279;if(!_0x339df0)return null;return this[_0x139eb7(0xf7)]()[_0x139eb7(0x1bc)](_0x5df340,String(_0x339df0))??null;}async['closeSession'](_0x5732d6){const _0x418020=_0x26c279,_0x475bef=this['_env'](),_0x520937=String(_0x5732d6);if(!_0x475bef['get'](_0x5df340,_0x520937))return![];return await _0x475bef[_0x418020(0x4d2)](_0x5df340,_0x520937),!![];}async[_0x26c279(0x60a)](_0x35ad5a){const _0x1031f4=_0x26c279,_0x20d5e8=this['_env'](),_0x490e48=String(_0x35ad5a),_0x43f550=_0x20d5e8[_0x1031f4(0x1bc)](_0x5df340,_0x490e48);if(!_0x43f550)return null;const _0x55512d=(Number[_0x1031f4(0x725)](_0x43f550[_0x1031f4(0x3a1)])?_0x43f550[_0x1031f4(0x3a1)]:0x0)+0x1;return await _0x20d5e8[_0x1031f4(0x59b)](_0x5df340,_0x490e48,{..._0x43f550,'version':_0x55512d}),_0x55512d;}async['refreshTtl'](_0x820e50,_0x286783){const _0x1f5916=_0x26c279,_0x23ba5c=this[_0x1f5916(0xf7)](),_0x48ba1e=String(_0x820e50);if(!_0x23ba5c['get'](_0x5df340,_0x48ba1e))return![];const _0x3db55f=Number[_0x1f5916(0x725)](_0x286783)&&_0x286783>0x0?_0x286783:this[_0x1f5916(0x488)];if(this[_0x1f5916(0x51a)](_0x48ba1e))return![];return await _0x23ba5c[_0x1f5916(0x5cf)](_0x5df340,_0x48ba1e,_0x3db55f),await this[_0x1f5916(0x77b)](_0x48ba1e,_0x3db55f),!![];}async[_0x26c279(0x56d)](_0x5303ce,_0x3dd898){const _0x5ad215=_0x26c279,_0x537881=this[_0x5ad215(0xf7)](),_0x4f934b=Number[_0x5ad215(0x725)](_0x3dd898)&&_0x3dd898>0x0?_0x3dd898:this[_0x5ad215(0x488)],_0x35944f=Date[_0x5ad215(0x772)](),_0x5b0e63=[];for(const _0x150096 of _0x5303ce||[]){const _0x4be5a4=String(_0x150096),_0x17bca6=_0x537881[_0x5ad215(0x1bc)](_0x5df340,_0x4be5a4);if(!_0x17bca6)continue;if(this[_0x5ad215(0x51a)](_0x4be5a4,_0x35944f))continue;_0x5b0e63[_0x5ad215(0x540)]({'id':_0x4be5a4,'cur':_0x17bca6});}if(_0x5b0e63['length']===0x0)return[];return await _0x537881['txn'](async _0x299d0a=>{const _0x50ee56=_0x5ad215;for(const {id:_0x14ce23,cur:_0x4dcd77}of _0x5b0e63){_0x299d0a[_0x50ee56(0x59b)](_0x5df340,_0x14ce23,{..._0x4dcd77,'expiresAt':_0x35944f+_0x4f934b}),_0x299d0a[_0x50ee56(0x5cf)](_0x5df340,_0x14ce23,_0x4f934b);}}),_0x5b0e63[_0x5ad215(0x1d9)](_0x545b71=>_0x545b71['id']);}[_0x26c279(0x51a)](_0x5b9e17,_0x52293d=Date[_0x26c279(0x772)]()){const _0x27021b=_0x26c279,_0x3e0dcd=this[_0x27021b(0xf7)]()[_0x27021b(0xbf)](_0x5df340,String(_0x5b9e17));if(!_0x3e0dcd)return![];return _0x3e0dcd[_0x27021b(0x354)]-_0x52293d>this[_0x27021b(0x6a5)];}async[_0x26c279(0x77b)](_0x296450,_0x8483f){const _0x57ece8=_0x26c279,_0x4a312a=this[_0x57ece8(0xf7)](),_0x800205=_0x4a312a['get'](_0x5df340,_0x296450);if(!_0x800205)return;await _0x4a312a[_0x57ece8(0x59b)](_0x5df340,_0x296450,{..._0x800205,'expiresAt':Date[_0x57ece8(0x772)]()+_0x8483f});}async[_0x26c279(0x45f)](_0x2f9b76,_0xf809ea,_0x2590e2){const _0x2c82d8=_0x26c279,_0x4c6ec2=this[_0x2c82d8(0xf7)](),_0x4189b1=String(_0x2f9b76),_0xad0e1c=_0x4c6ec2['get'](_0x5df340,_0x4189b1);if(!_0xad0e1c)throw new Error(_0x2c82d8(0x664)+_0x4189b1);const _0x417f70=_0xd955dd[_0x2c82d8(0x33b)]();return await _0x4c6ec2[_0x2c82d8(0x59b)](_0x59071a,_0x417f70,{'sessionId':_0x4189b1,'dataEnv':String(_0xad0e1c['dataEnv']),'type':String(_0xf809ea),'key':String(_0x2590e2)}),_0x417f70;}async[_0x26c279(0x663)](_0x169f82,_0x310ddb,{retries:retries=0x8}={}){const _0x4c3928=_0x26c279,_0x3e05a3=this[_0x4c3928(0xf7)]();for(let _0x4b67a7=0x0;;_0x4b67a7++){const _0x53e031=_0x3e05a3[_0x4c3928(0x153)](_0x5df340,_0x169f82);if(!_0x53e031)return null;const _0x1c4eaa=_0x53e031[_0x4c3928(0x6f0)],_0x3ef95b=(Number[_0x4c3928(0x725)](_0x1c4eaa[_0x4c3928(0x3a1)])?_0x1c4eaa['version']:0x0)+0x1,{sessionPatch:sessionPatch={},applyInterests:applyInterests=null}=_0x310ddb(_0x1c4eaa,_0x3e05a3)||{};try{return await _0x3e05a3[_0x4c3928(0x704)](async _0x273c39=>{const _0x2d1898=_0x4c3928;applyInterests?.(_0x273c39),_0x273c39[_0x2d1898(0x59b)](_0x5df340,_0x169f82,{..._0x1c4eaa,...sessionPatch,'version':_0x3ef95b},{'ifVersion':_0x53e031[_0x2d1898(0x3a1)]});}),_0x3ef95b;}catch(_0x31837a){if(_0x31837a?.[_0x4c3928(0x30f)]===_0x4c3928(0x4e0)&&_0x4b67a7<retries)continue;throw _0x31837a;}}}async[_0x26c279(0x215)](_0x1a8163,{add:add=[],remove:remove=[]}={}){const _0x1911bf=String(_0x1a8163);return this['_commitSessionMutation'](_0x1911bf,(_0x3846de,_0x1966a2)=>{const _0x20e86c=_0x41a2,_0xb7ebf5=String(_0x3846de[_0x20e86c(0x4d1)]),_0x2cb8d2=new Set((remove||[])[_0x20e86c(0x1d9)](_0x5f0bbf=>String(_0x5f0bbf[_0x20e86c(0x690)])+'\x00'+String(_0x5f0bbf[_0x20e86c(0x590)]))),_0x23f97a=[];if(_0x2cb8d2['size']>0x0)for(const {key:_0x5ddbdc,value:_0x3bbdd6}of _0x1966a2[_0x20e86c(0x1bd)](_0x59071a,{})){if(!_0x3bbdd6||_0x3bbdd6[_0x20e86c(0x1d1)]!==_0x1911bf)continue;if(_0x2cb8d2['has'](_0x3bbdd6[_0x20e86c(0x690)]+'\x00'+_0x3bbdd6[_0x20e86c(0x590)]))_0x23f97a[_0x20e86c(0x540)](_0x5ddbdc);}const _0x64ee4f=(add||[])[_0x20e86c(0x1d9)](_0xe99332=>({'id':_0xd955dd['randomUUID'](),'type':String(_0xe99332[_0x20e86c(0x690)]),'key':String(_0xe99332[_0x20e86c(0x590)])}));return{'applyInterests':_0x3208cc=>{const _0x3933b4=_0x20e86c;for(const _0x3a1bd1 of _0x23f97a)_0x3208cc[_0x3933b4(0x4d2)](_0x59071a,_0x3a1bd1);for(const _0x44800f of _0x64ee4f)_0x3208cc[_0x3933b4(0x59b)](_0x59071a,_0x44800f['id'],{'sessionId':_0x1911bf,'dataEnv':_0xb7ebf5,'type':_0x44800f[_0x3933b4(0x690)],'key':_0x44800f[_0x3933b4(0x590)]});}};});}async[_0x26c279(0x762)](_0x1beac7,_0x584bab){const _0x26bc74=_0x26c279;_0x39f8b8(_0x584bab);const _0x15f04e=String(_0x1beac7);return this[_0x26bc74(0x663)](_0x15f04e,()=>({'sessionPatch':{'filter':_0x584bab??null}}));}async['removeInterest'](_0x5c06ef,_0x11055f,_0x3e1a1f){const _0x3a17c9=_0x26c279,_0x24f628=this[_0x3a17c9(0xf7)](),_0x2c4964=String(_0x5c06ef),_0x1e8ccf=String(_0x11055f),_0x1ec27a=String(_0x3e1a1f),_0x318355=[];for(const {key:_0x1f4f17,value:_0x1050fa}of _0x24f628[_0x3a17c9(0x1bd)](_0x59071a,{})){if(_0x1050fa&&_0x1050fa[_0x3a17c9(0x1d1)]===_0x2c4964&&_0x1050fa[_0x3a17c9(0x690)]===_0x1e8ccf&&_0x1050fa['key']===_0x1ec27a)_0x318355[_0x3a17c9(0x540)](_0x1f4f17);}for(const _0x506dca of _0x318355)await _0x24f628[_0x3a17c9(0x4d2)](_0x59071a,_0x506dca);return _0x318355[_0x3a17c9(0x2a9)];}async[_0x26c279(0x394)](_0x2142b5,_0x446a3a){const _0x1dcb1c=_0x26c279,_0x2415d1=String(_0x2142b5);return this[_0x1dcb1c(0x663)](_0x2415d1,(_0x501d80,_0x26878d)=>{const _0x3453bb=_0x1dcb1c,_0xe11eae=String(_0x501d80[_0x3453bb(0x4d1)]),_0xa1642a=[];for(const {key:_0x16cab0,value:_0x5d8e25}of _0x26878d[_0x3453bb(0x1bd)](_0x59071a,{})){if(_0x5d8e25&&_0x5d8e25['sessionId']===_0x2415d1)_0xa1642a['push'](_0x16cab0);}const _0x487902=(_0x446a3a||[])[_0x3453bb(0x1d9)](_0x280890=>({'id':_0xd955dd[_0x3453bb(0x33b)](),'type':String(_0x280890[_0x3453bb(0x690)]),'key':String(_0x280890[_0x3453bb(0x590)])}));return{'applyInterests':_0x2d023a=>{const _0x17d056=_0x3453bb;for(const _0x1b7ab7 of _0xa1642a)_0x2d023a[_0x17d056(0x4d2)](_0x59071a,_0x1b7ab7);for(const _0x5c6a76 of _0x487902)_0x2d023a[_0x17d056(0x59b)](_0x59071a,_0x5c6a76['id'],{'sessionId':_0x2415d1,'dataEnv':_0xe11eae,'type':_0x5c6a76[_0x17d056(0x690)],'key':_0x5c6a76['key']});}};});}[_0x26c279(0x613)](_0xc7b847,_0x50deb5,_0x538ed2){const _0x42ae09=_0x26c279,_0x434a71=this[_0x42ae09(0xf7)](),_0x49a6de=String(_0xc7b847),_0x5c5a63=String(_0x50deb5),_0x1afc73=String(_0x538ed2),_0x449309=new Set();for(const {value:_0x39832e}of _0x434a71['byIndex'](_0x59071a,_0x3a4401,{'start':[_0x49a6de,_0x5c5a63,_0x1afc73],'end':[_0x49a6de,_0x5c5a63,_0x1afc73,'']})){if(_0x39832e&&_0x39832e['sessionId'])_0x449309[_0x42ae09(0x3a8)](_0x39832e[_0x42ae09(0x1d1)]);}return[..._0x449309];}[_0x26c279(0x3e3)](_0x5cec20,_0x49441a){const _0xd25811=_0x26c279,_0xe38edd=this[_0xd25811(0xf7)](),_0x59d1db=String(_0x5cec20),_0x564409=String(_0x49441a),_0x205c85=[];for(const {value:_0xaf0e2a}of _0xe38edd[_0xd25811(0x372)](_0x5df340,_0x1497dc,{'start':[_0x59d1db,_0x564409],'end':[_0x59d1db,_0x564409,'\uffff']})){if(!_0xaf0e2a||_0xaf0e2a[_0xd25811(0x4d1)]!==_0x59d1db||_0xaf0e2a[_0xd25811(0x690)]!==_0x564409)continue;if(_0xaf0e2a[_0xd25811(0x587)]==null)continue;_0x205c85[_0xd25811(0x540)]({'sessionId':_0xaf0e2a[_0xd25811(0x1d1)],'filter':_0xaf0e2a[_0xd25811(0x587)],'version':Number[_0xd25811(0x725)](_0xaf0e2a[_0xd25811(0x3a1)])?_0xaf0e2a['version']:0x0});}return _0x205c85;}async[_0x26c279(0x23e)](){const _0x367eba=_0x26c279;return this[_0x367eba(0xf7)]()[_0x367eba(0xcf)]();}}return okdbSubscriptionsStore[_0x26c279(0x1ad)]=_0x39be2f,okdbSubscriptionsStore[_0x26c279(0x1ad)][_0x26c279(0x689)]=_0x27ef98,okdbSubscriptionsStore[_0x26c279(0x1ad)][_0x26c279(0x726)]=_0x5df340,okdbSubscriptionsStore[_0x26c279(0x1ad)][_0x26c279(0xe6)]=_0x59071a,okdbSubscriptionsStore[_0x26c279(0x1ad)]['REVERSE_INDEX']=_0x3a4401,okdbSubscriptionsStore[_0x26c279(0x1ad)]['SESSION_TYPE_INDEX']=_0x1497dc,okdbSubscriptionsStore[_0x26c279(0x1ad)]['DEFAULT_TTL_MS']=_0x1996ef,okdbSubscriptionsStore[_0x26c279(0x1ad)];}var version=_0x431d06(0x237),require$$29={'version':version},okdbEnginesEnums,hasRequiredOkdbEnginesEnums;function requireOkdbEnginesEnums(){const _0xffe891=_0x431d06;if(hasRequiredOkdbEnginesEnums)return okdbEnginesEnums;hasRequiredOkdbEnginesEnums=0x1;const _0x56aee9='~engines',_0x225e9c=0xa,_0x2831f1=Object[_0xffe891(0x4f8)]({'CREATED':'created','ONLINE':'online','STOPPED':'stopped','INACTIVE':'inactive','ERROR':_0xffe891(0x4ad),'REMOVED':_0xffe891(0x348)}),_0x4bc2bb=Object[_0xffe891(0x4f8)]({'STARTED':_0xffe891(0x6ec),'STOPPED':'stopped','ERROR':_0xffe891(0x4ad),'INSTALLED':_0xffe891(0x542),'UNINSTALLED':_0xffe891(0x4f7)}),_0x64cfc0=Object[_0xffe891(0x4f8)](new Set([_0x2831f1[_0xffe891(0x66f)],_0x2831f1[_0xffe891(0x742)],_0x2831f1[_0xffe891(0x152)],_0x2831f1[_0xffe891(0x405)]]));function _0x4cfab8(_0x42b277){return _0x42b277?.['enabled']===![]?_0x2831f1['STOPPED']:'remote';}return okdbEnginesEnums={'TYPE_ENGINES':_0x56aee9,'MAX_UPDATE_RETRIES':_0x225e9c,'ENGINE_STATUS':_0x2831f1,'ENGINE_EVENTS':_0x4bc2bb,'UPDATABLE_STATUSES':_0x64cfc0,'durableOnlyEngineState':_0x4cfab8},okdbEnginesEnums;}var enums,hasRequiredEnums;function requireEnums(){const _0x17de2e=_0x431d06;if(hasRequiredEnums)return enums;hasRequiredEnums=0x1;const _0x8ca928=Object[_0x17de2e(0x4f8)]({'EMBEDDER':_0x17de2e(0x472),'INDEXER':_0x17de2e(0x320),'SEARCH':_0x17de2e(0x621),'WORKER':_0x17de2e(0x4cc)}),_0x5f4be7=Object[_0x17de2e(0x4f8)]({'PENDING':'pending','DONE':_0x17de2e(0x248),'FAILED':_0x17de2e(0x585),'DELETED':'deleted'}),_0x1b96ea=Object[_0x17de2e(0x4f8)]({'INDEXER_READY':_0x17de2e(0x7a0),'INDEXER_FLUSHED':_0x17de2e(0x286),'INDEXER_DOC_DONE':_0x17de2e(0x7c6),'INDEXER_DOC_FAILED':_0x17de2e(0x21c),'INDEXER_DOC_QUEUED':_0x17de2e(0x10e),'STRATEGY_REGISTERED':_0x17de2e(0x41f),'DOC_STATUS_CHANGE':_0x17de2e(0x629),'PIPELINE_READY':_0x17de2e(0x2bf)}),_0x42a3eb=Object['freeze']({'MODELS':'~emb:models','DOC_STATUS_PREFIX':_0x17de2e(0x3c6),'VEC_PREFIX':_0x17de2e(0x553)});return enums={'ENGINE_TYPES':_0x8ca928,'INDEXER_DOC_STATUS':_0x5f4be7,'EMBEDDINGS_EVENTS':_0x1b96ea,'INTERNAL_TYPES':_0x42a3eb},enums;}var okdbQueueValidate,hasRequiredOkdbQueueValidate;function requireOkdbQueueValidate(){const _0x34b1fe=_0x431d06;if(hasRequiredOkdbQueueValidate)return okdbQueueValidate;hasRequiredOkdbQueueValidate=0x1;const _0xa8f882=Object[_0x34b1fe(0x4f8)]({'PENDING':_0x34b1fe(0x5a9),'RUNNING':_0x34b1fe(0x1e2),'DONE':'done','FAILED':_0x34b1fe(0x585)}),_0x52c285=Object[_0x34b1fe(0x4f8)]({'ACTIVE':_0x34b1fe(0x1cf),'PAUSED':'paused','DRAINING':_0x34b1fe(0x5b6)}),_0xf1af57=Object[_0x34b1fe(0x4f8)]({'ENQUEUED':_0x34b1fe(0x5e4),'DONE':_0x34b1fe(0x571),'FAILED':'queue:failed','RETRY':_0x34b1fe(0x58b),'RESCHEDULED':_0x34b1fe(0x457),'REMOVED':_0x34b1fe(0x47e),'RECONCILED':_0x34b1fe(0x616),'CLEAR_PROGRESS':_0x34b1fe(0x647),'CLEAR_DONE':_0x34b1fe(0x4c2),'LOG':'queue:log'}),_0x400e02=Object[_0x34b1fe(0x4f8)](['debug',_0x34b1fe(0xd5),_0x34b1fe(0x200),_0x34b1fe(0x4ad)]),_0x1bab6b=0x1,_0x5c0e10=0xc350,_0x539710=0x400,_0x445553=0x800;function _0x2fefe9(_0x102a75){const _0xdf5397=_0x34b1fe;return _0x102a75!=null&&typeof _0x102a75==='object'&&(_0x102a75['constructor']===Object||Object[_0xdf5397(0x2dd)](_0x102a75)===null);}function _0x419589(_0x47413b,_0x1d0df1,_0x162bb5,_0xa90148){const _0x4d48c0=_0x34b1fe;if(_0x47413b==null)return _0x1d0df1;const _0x3730e3=Number(_0x47413b);if(!Number['isFinite'](_0x3730e3))return _0x1d0df1;const _0x43c7b2=Math[_0x4d48c0(0x26a)](_0x3730e3);if(_0x43c7b2<_0x162bb5)return _0x162bb5;if(_0x43c7b2>_0xa90148)return _0xa90148;return _0x43c7b2;}function _0x41b9c6(_0x14487a){const _0x1388a4=_0x34b1fe;if(!_0x14487a)return[];if(typeof _0x14487a==='string')_0x14487a=[_0x14487a];if(!Array[_0x1388a4(0x17d)](_0x14487a))throw new Error(_0x1388a4(0x68f));const _0x4fbe36=[],_0x5b3790=new Set();for(const _0x118a08 of _0x14487a){if(_0x118a08==null)continue;const _0x3aaca2=String(_0x118a08)[_0x1388a4(0x189)]();if(!_0x3aaca2)continue;if(_0x3aaca2[_0x1388a4(0x2a9)]>0x80)throw new Error(_0x1388a4(0x15f));if(_0x5b3790[_0x1388a4(0x614)](_0x3aaca2))continue;_0x5b3790[_0x1388a4(0x3a8)](_0x3aaca2),_0x4fbe36[_0x1388a4(0x540)](_0x3aaca2);if(_0x4fbe36[_0x1388a4(0x2a9)]>=0x20)break;}return _0x4fbe36;}function _0x148535(_0x6f7993){const _0x3bdf8c=_0x34b1fe;if(_0x6f7993==null)return null;const _0x302a42=String(_0x6f7993)[_0x3bdf8c(0x189)]();if(!_0x302a42)return null;if(_0x302a42[_0x3bdf8c(0x2a9)]>0x80)throw new Error(_0x3bdf8c(0x7d9));return _0x302a42;}function _0x1b99c5(_0x46bb92,_0x384fc5=0x1){const _0x50044f=_0x34b1fe;if(_0x46bb92==null)return[];if(typeof _0x46bb92===_0x50044f(0x229)){const _0x115212=_0x148535(_0x46bb92);if(!_0x115212)return[];return[{'id':_0x115212,'tokens':_0x384fc5}];}if(!Array['isArray'](_0x46bb92))throw new Error('buckets\x20must\x20be\x20array\x20or\x20string');const _0x533bb5=[],_0x6a138f=new Set();for(const _0x438625 of _0x46bb92){let _0x2bad63,_0x1d99f0;if(Array[_0x50044f(0x17d)](_0x438625))[_0x2bad63,_0x1d99f0]=_0x438625;else{if(_0x438625&&typeof _0x438625===_0x50044f(0x4ed))({id:_0x2bad63,tokens:_0x1d99f0}=_0x438625);else{if(typeof _0x438625==='string')_0x2bad63=_0x438625,_0x1d99f0=_0x384fc5;else continue;}}_0x2bad63=_0x148535(_0x2bad63);if(!_0x2bad63)continue;const _0x1bf1d0=_0x1d99f0==null?_0x384fc5:Math[_0x50044f(0x26a)](Number(_0x1d99f0));if(!Number[_0x50044f(0x725)](_0x1bf1d0)||_0x1bf1d0<0x1)throw new Error(_0x50044f(0x2de)+_0x2bad63+'\x22\x20tokens\x20must\x20be\x20>=\x201');if(_0x1bf1d0>0xf4240)throw new Error(_0x50044f(0x2de)+_0x2bad63+'\x22\x20tokens\x20too\x20large');if(_0x6a138f[_0x50044f(0x614)](_0x2bad63))throw new Error(_0x50044f(0xc7)+_0x2bad63);_0x6a138f[_0x50044f(0x3a8)](_0x2bad63),_0x533bb5[_0x50044f(0x540)]({'id':_0x2bad63,'tokens':_0x1bf1d0});}return _0x533bb5;}function _0x162775(_0x3cb2ee,_0x58e07c=0x400){const _0xba4e4=_0x34b1fe;if(_0x3cb2ee==null)return null;const _0x2a67d9=String(_0x3cb2ee)[_0xba4e4(0x331)](0x0,_0x58e07c);return _0x2a67d9||null;}function _0x37992a(_0x5ee542){const _0x4b6f4b=_0x34b1fe;if(_0x5ee542==null)return null;if(_0x5ee542[_0x4b6f4b(0x590)]!==undefined&&_0x5ee542[_0x4b6f4b(0x6f0)]!==undefined)return _0x5ee542;return{'key':_0x5ee542['id']??null,'value':_0x5ee542};}function _0x500dd8(_0x273b6d){const _0x3308b9=_0x34b1fe;let _0x17a442=_0x273b6d;if(typeof _0x273b6d===_0x3308b9(0x229))_0x17a442={'message':_0x273b6d};if(!_0x2fefe9(_0x17a442))throw new Error(_0x3308b9(0x592));const _0x5acd43=_0x17a442[_0x3308b9(0x3dd)]==null?_0x3308b9(0xd5):String(_0x17a442['level'])[_0x3308b9(0x2ed)]();if(!_0x400e02[_0x3308b9(0x4e5)](_0x5acd43))throw new Error(_0x3308b9(0x7af)+_0x5acd43);if(_0x17a442[_0x3308b9(0x18d)]==null)throw new Error(_0x3308b9(0x263));const _0x3d17a3=String(_0x17a442[_0x3308b9(0x18d)])['slice'](0x0,_0x539710);let _0x6bd4aa=null;if(_0x17a442[_0x3308b9(0x49a)]!=null){if(!_0x2fefe9(_0x17a442[_0x3308b9(0x49a)]))throw new Error(_0x3308b9(0x319));if(JSON[_0x3308b9(0x64b)](_0x17a442[_0x3308b9(0x49a)])[_0x3308b9(0x2a9)]>_0x445553)throw new Error(_0x3308b9(0x74c));_0x6bd4aa=_0x17a442['fields'];}return{'level':_0x5acd43,'message':_0x3d17a3,'fields':_0x6bd4aa,'ts':Date[_0x3308b9(0x772)]()};}function _0x135cea(_0x42a8e0){const _0xe48cb3=_0x34b1fe;if(_0x42a8e0==null)return;if(!Number[_0xe48cb3(0x48b)](_0x42a8e0)||_0x42a8e0<_0x1bab6b||_0x42a8e0>_0x5c0e10)throw new Error('logCap\x20must\x20be\x20null\x20or\x20integer\x20in\x20['+_0x1bab6b+',\x20'+_0x5c0e10+']');}function _0x4ca1ea(_0x3fa996){const _0x3f817e=_0x34b1fe;if(!_0x2fefe9(_0x3fa996))throw new Error(_0x3f817e(0x7e7));if(typeof _0x3fa996['id']!=='string'||_0x3fa996['id']['length']<0x8)throw new Error(_0x3f817e(0x362));if(typeof _0x3fa996[_0x3f817e(0x690)]!==_0x3f817e(0x229)||!_0x3fa996[_0x3f817e(0x690)])throw new Error(_0x3f817e(0x529));if(!Object[_0x3f817e(0x4ee)](_0xa8f882)[_0x3f817e(0x4e5)](_0x3fa996[_0x3f817e(0x5d2)]))throw new Error(_0x3f817e(0x48d)+_0x3fa996[_0x3f817e(0x5d2)]);for(const _0x3ab0ff of[_0x3f817e(0x1b8),'created',_0x3f817e(0x3d0)]){if(typeof _0x3fa996[_0x3ab0ff]!==_0x3f817e(0x1ce)||!Number['isFinite'](_0x3fa996[_0x3ab0ff]))throw new Error(_0x3f817e(0x7b7)+_0x3ab0ff+_0x3f817e(0x3de));}if(_0x3fa996[_0x3f817e(0x62b)]!=null&&(typeof _0x3fa996[_0x3f817e(0x62b)]!==_0x3f817e(0x1ce)||!Number[_0x3f817e(0x725)](_0x3fa996[_0x3f817e(0x62b)])))throw new Error(_0x3f817e(0x7b0));if(!Number[_0x3f817e(0x48b)](_0x3fa996[_0x3f817e(0x4a4)])||_0x3fa996[_0x3f817e(0x4a4)]<0x0)throw new Error('job.tries\x20must\x20be\x20non-negative\x20int');if(!Number[_0x3f817e(0x48b)](_0x3fa996[_0x3f817e(0x416)]))throw new Error('job.priority\x20must\x20be\x20int');if(_0x3fa996[_0x3f817e(0xe1)]!==null&&_0x3fa996['max_tries']!==Infinity&&(!Number[_0x3f817e(0x48b)](_0x3fa996[_0x3f817e(0xe1)])||_0x3fa996[_0x3f817e(0xe1)]<0x1))throw new Error(_0x3f817e(0x192));if(_0x3fa996[_0x3f817e(0x116)]!=null&&(!Number[_0x3f817e(0x48b)](_0x3fa996[_0x3f817e(0x116)])||_0x3fa996[_0x3f817e(0x116)]<0x0))throw new Error('job.retry_delay\x20must\x20be\x20int\x20>=\x200');if(_0x3fa996[_0x3f817e(0x5d7)]!=null&&(typeof _0x3fa996[_0x3f817e(0x5d7)]!=='number'||_0x3fa996['backoff_multiplier']<0x1))throw new Error(_0x3f817e(0x65d));if(_0x3fa996['claim_id']!=null&&typeof _0x3fa996[_0x3f817e(0x78d)]!==_0x3f817e(0x229))throw new Error(_0x3f817e(0x68c));if(_0x3fa996[_0x3f817e(0x4e4)]!=null&&(typeof _0x3fa996[_0x3f817e(0x4e4)]!==_0x3f817e(0x1ce)||!Number['isFinite'](_0x3fa996[_0x3f817e(0x4e4)])))throw new Error('job.claim_expires\x20must\x20be\x20number|null');if(_0x3fa996[_0x3f817e(0x783)]!=null&&typeof _0x3fa996['bucket']!==_0x3f817e(0x229))throw new Error(_0x3f817e(0x43a));if(_0x3fa996[_0x3f817e(0x62c)]!=null&&(!Number[_0x3f817e(0x48b)](_0x3fa996[_0x3f817e(0x62c)])||_0x3fa996['bucket_tokens']<0x1))throw new Error('job.bucket_tokens\x20must\x20be\x20int\x20>=1');if(_0x3fa996[_0x3f817e(0xc8)]!=null){if(!Array[_0x3f817e(0x17d)](_0x3fa996['buckets']))throw new Error(_0x3f817e(0x1a8));for(const _0x48a2c6 of _0x3fa996[_0x3f817e(0xc8)]){if(!_0x48a2c6||typeof _0x48a2c6!==_0x3f817e(0x4ed))throw new Error(_0x3f817e(0x383));if(typeof _0x48a2c6['id']!=='string'||!_0x48a2c6['id'][_0x3f817e(0x189)]())throw new Error(_0x3f817e(0x310));if(!Number[_0x3f817e(0x48b)](_0x48a2c6[_0x3f817e(0x4f4)])||_0x48a2c6['tokens']<0x1)throw new Error(_0x3f817e(0x6eb));}}if(_0x3fa996[_0x3f817e(0x184)]!=null&&typeof _0x3fa996[_0x3f817e(0x184)]!==_0x3f817e(0x229))throw new Error('job.cron\x20must\x20be\x20string|null');if(_0x3fa996[_0x3f817e(0x2e6)]!=null&&typeof _0x3fa996[_0x3f817e(0x2e6)]!==_0x3f817e(0x229))throw new Error(_0x3f817e(0x1af));if(!Array[_0x3f817e(0x17d)](_0x3fa996[_0x3f817e(0x78b)]))throw new Error('job.tags\x20must\x20be\x20array');if(_0x3fa996['tag']!=null&&typeof _0x3fa996['tag']!==_0x3f817e(0x229))throw new Error(_0x3f817e(0x63d));if(_0x3fa996[_0x3f817e(0x2fd)]!=null&&typeof _0x3fa996[_0x3f817e(0x2fd)]!==_0x3f817e(0x229))throw new Error(_0x3f817e(0x25c));if(_0x3fa996['status_message']!=null&&typeof _0x3fa996[_0x3f817e(0x609)]!=='string')throw new Error(_0x3f817e(0x799));if(_0x3fa996['error_stack']!=null&&typeof _0x3fa996[_0x3f817e(0x4ab)]!==_0x3f817e(0x229))throw new Error('job.error_stack\x20must\x20be\x20string|null');for(const _0x2d59a8 of[_0x3f817e(0x411),_0x3f817e(0x104)]){const _0x148929=_0x3fa996[_0x2d59a8];if(_0x148929!=null&&(!Number[_0x3f817e(0x48b)](_0x148929)||_0x148929<0x0))throw new Error(_0x3f817e(0x7b7)+_0x2d59a8+_0x3f817e(0x2ae));}_0x135cea(_0x3fa996[_0x3f817e(0x259)]);}function _0x2c2481(_0x554255){const _0x50fd31=_0x34b1fe;if(!_0x2fefe9(_0x554255))throw new Error(_0x50fd31(0x16b));if(typeof _0x554255['id']!=='string'||!_0x554255['id'][_0x50fd31(0x189)]())throw new Error('job_type.id\x20must\x20be\x20non-empty\x20string');if(!Object[_0x50fd31(0x4ee)](_0x52c285)[_0x50fd31(0x4e5)](_0x554255[_0x50fd31(0x5d2)]))throw new Error('invalid\x20job_type.status:\x20'+_0x554255['status']);if(_0x554255[_0x50fd31(0x580)]!=null&&(!Number[_0x50fd31(0x48b)](_0x554255[_0x50fd31(0x580)])||_0x554255['max_concurrency']<0x1))throw new Error(_0x50fd31(0x626));if(_0x554255[_0x50fd31(0x19a)]!=null){if(!_0x2fefe9(_0x554255[_0x50fd31(0x19a)]))throw new Error(_0x50fd31(0x4d9));const _0x438889=_0x554255[_0x50fd31(0x19a)];if(_0x438889['max_tries']!=null&&(!Number['isInteger'](_0x438889[_0x50fd31(0xe1)])||_0x438889[_0x50fd31(0xe1)]<0x1))throw new Error(_0x50fd31(0x461));if(_0x438889[_0x50fd31(0x116)]!=null&&(!Number[_0x50fd31(0x48b)](_0x438889[_0x50fd31(0x116)])||_0x438889[_0x50fd31(0x116)]<0x0))throw new Error('job_type.defaults.retry_delay\x20must\x20be\x20int\x20>=\x200\x20or\x20null');if(_0x438889[_0x50fd31(0x5d7)]!=null&&(typeof _0x438889[_0x50fd31(0x5d7)]!==_0x50fd31(0x1ce)||_0x438889['backoff_multiplier']<0x1))throw new Error(_0x50fd31(0x176));if(_0x438889[_0x50fd31(0x416)]!=null&&!Number[_0x50fd31(0x48b)](_0x438889[_0x50fd31(0x416)]))throw new Error(_0x50fd31(0x56a));if(_0x438889[_0x50fd31(0x12e)]!=null&&(!Number[_0x50fd31(0x48b)](_0x438889['ttl'])||_0x438889['ttl']<0x0))throw new Error('job_type.defaults.ttl\x20must\x20be\x20int\x20>=\x200\x20or\x20null');for(const _0x3d719c of[_0x50fd31(0x411),_0x50fd31(0x104)]){if(_0x438889[_0x3d719c]!=null&&(!Number[_0x50fd31(0x48b)](_0x438889[_0x3d719c])||_0x438889[_0x3d719c]<0x0))throw new Error(_0x50fd31(0x3c3)+_0x3d719c+'\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer');}if(_0x438889[_0x50fd31(0xc8)]!=null&&!Array[_0x50fd31(0x17d)](_0x438889['buckets']))throw new Error('job_type.defaults.buckets\x20must\x20be\x20array|null');_0x135cea(_0x438889[_0x50fd31(0x259)]);}if(_0x554255[_0x50fd31(0x3cf)]!=null){if(!_0x2fefe9(_0x554255['payload_schema']))throw new Error(_0x50fd31(0x707));if(!_0x2fefe9(_0x554255[_0x50fd31(0x3cf)][_0x50fd31(0x23f)]))throw new Error(_0x50fd31(0x186));if(typeof _0x554255[_0x50fd31(0x3cf)]['enforce']!==_0x50fd31(0x43d))throw new Error(_0x50fd31(0x46a));}for(const _0x28b4cf of[_0x50fd31(0x3fd),_0x50fd31(0x36c)]){if(typeof _0x554255[_0x28b4cf]!==_0x50fd31(0x1ce)||!Number[_0x50fd31(0x725)](_0x554255[_0x28b4cf]))throw new Error(_0x50fd31(0x10d)+_0x28b4cf+'\x20must\x20be\x20number');}}function _0x5e0c6f(_0x574b49){const _0x3bf681=_0x34b1fe;if(!_0x2fefe9(_0x574b49))throw new Error(_0x3bf681(0xb8));if(typeof _0x574b49['id']!==_0x3bf681(0x229)||!_0x574b49['id'][_0x3bf681(0x189)]())throw new Error(_0x3bf681(0x381));if(!Number[_0x3bf681(0x48b)](_0x574b49[_0x3bf681(0x4f4)])||_0x574b49[_0x3bf681(0x4f4)]<0x0)throw new Error('bucket.tokens\x20must\x20be\x20int\x20>=\x200');if(!Number['isInteger'](_0x574b49[_0x3bf681(0x28c)])||_0x574b49[_0x3bf681(0x28c)]<0x0)throw new Error(_0x3bf681(0x31c));if(_0x574b49[_0x3bf681(0x4f4)]>_0x574b49[_0x3bf681(0x28c)])throw new Error(_0x3bf681(0x632));if(!Number['isInteger'](_0x574b49[_0x3bf681(0x181)])||_0x574b49[_0x3bf681(0x181)]<0x0)throw new Error(_0x3bf681(0x42f));if(!Number['isInteger'](_0x574b49[_0x3bf681(0x670)])||_0x574b49[_0x3bf681(0x670)]<0x0)throw new Error(_0x3bf681(0x417));if(typeof _0x574b49[_0x3bf681(0x3d0)]!==_0x3bf681(0x1ce)||!Number[_0x3bf681(0x725)](_0x574b49[_0x3bf681(0x3d0)]))throw new Error(_0x3bf681(0x534));}return okdbQueueValidate={'STATUS':_0xa8f882,'JOB_TYPE_STATUS':_0x52c285,'QUEUE_EVENTS':_0xf1af57,'LOG_LEVELS':_0x400e02,'LOG_CAP_MIN':_0x1bab6b,'LOG_CAP_MAX':_0x5c0e10,'clampInt':_0x419589,'asNullableString':_0x162775,'normalizeResult':_0x37992a,'normalizeTags':_0x41b9c6,'normalizeBucket':_0x148535,'normalizeBuckets':_0x1b99c5,'normalizeLogEntry':_0x500dd8,'validateJobShape':_0x4ca1ea,'validateJobTypeShape':_0x2c2481,'validateBucketShape':_0x5e0c6f},okdbQueueValidate;}var okdbTimers,hasRequiredOkdbTimers;function requireOkdbTimers(){if(hasRequiredOkdbTimers)return okdbTimers;hasRequiredOkdbTimers=0x1;const _0x499e08=0x2**0x1f-0x1;function _0x2d0eb8(_0x3e5a96){if(!(_0x3e5a96>0x0))return 0x0;return _0x3e5a96>_0x499e08?_0x499e08:_0x3e5a96;}function _0x3502cf(_0x56f24e){return _0x56f24e===Infinity;}return okdbTimers={'MAX_TIMER_DELAY':_0x499e08,'clampTimerDelay':_0x2d0eb8,'isNeverDelay':_0x3502cf},okdbTimers;}var okdbChangefeed,hasRequiredOkdbChangefeed;function requireOkdbChangefeed(){const _0xf20b8f=_0x431d06;if(hasRequiredOkdbChangefeed)return okdbChangefeed;hasRequiredOkdbChangefeed=0x1;const _0x4ceed2=require$$0$6,{clampTimerDelay:_0x448f3a}=requireOkdbTimers(),{EVENTS:_0x14b86d,CHANGE_ACTIONS:_0x249857}=requireOkdbEnums(),{LOOP:_0x1a743c}=requireOkdbLoopMonitor(),_0x18ba0c=Number(process.env.OKDB_CHANGEFEED_QUANTUM)||0x3e8,_0x1287f7=0x5,_0x5150fc=0x2710;class _0x4ee141 extends _0x4ceed2{constructor(_0x1c7268,_0x3559d7={}){const _0x3c81df=_0x41a2;super(),this['okdb']=_0x1c7268,this[_0x3c81df(0x759)]=_0x3559d7[_0x3c81df(0x3cb)]??_0x18ba0c,this[_0x3c81df(0x16e)]=_0x3559d7[_0x3c81df(0x6e3)]??_0x1287f7,this[_0x3c81df(0x702)]=_0x3559d7[_0x3c81df(0x6f7)]??_0x5150fc,this[_0x3c81df(0x2a2)]=![],this[_0x3c81df(0x7b3)]=new Map(),this['_baselines']=new Map(),this['_pending']=new Map(),this['_flushTimer']=null,this['_draining']=![],this['_seen']=new Set(),this[_0x3c81df(0x598)]=new Set(),this[_0x3c81df(0x786)]=_0x229d7c=>this[_0x3c81df(0x7d4)](_0x229d7c),this['_onPending']=_0x36d894=>this[_0x3c81df(0x435)](_0x36d894),this[_0x3c81df(0x5c2)]=_0x1dbaf7=>this[_0x3c81df(0x763)](_0x1dbaf7),this[_0x3c81df(0x2c7)]=()=>this['stop']();}['start'](){const _0x450bba=_0x41a2;if(this[_0x450bba(0x2a2)])return;this[_0x450bba(0x2a2)]=!![];for(const [_0x5a399b,_0x5cfcbc]of this['okdb'][_0x450bba(0x446)]){if(_0x5a399b['startsWith']('~'))continue;try{_0x5cfcbc[_0x450bba(0x6ae)]();}catch{}}for(const [_0x31844a,_0x1675cb]of this[_0x450bba(0x6ff)][_0x450bba(0x446)]){if(_0x31844a[_0x450bba(0x217)]('~'))continue;try{this[_0x450bba(0x41b)][_0x450bba(0x48c)](_0x31844a,_0x1675cb[_0x450bba(0x41d)]()||0x0);}catch{}}const {events:_0x56caf4}=this[_0x450bba(0x6ff)];_0x56caf4['on'](_0x14b86d[_0x450bba(0x558)],this[_0x450bba(0x3ed)]),_0x56caf4['on'](_0x14b86d[_0x450bba(0x67a)],this[_0x450bba(0x786)]),_0x56caf4['on'](_0x14b86d[_0x450bba(0xc0)],this[_0x450bba(0x786)]),_0x56caf4['on'](_0x14b86d[_0x450bba(0x3bc)],this[_0x450bba(0x786)]),_0x56caf4['on'](_0x14b86d[_0x450bba(0x515)],this['_onPoke']),_0x56caf4[_0x450bba(0x73e)](_0x14b86d[_0x450bba(0x270)],this[_0x450bba(0x2c7)]);}['stop'](){const _0x3957be=_0x41a2;if(!this[_0x3957be(0x2a2)])return;this[_0x3957be(0x2a2)]=![];const {events:_0x2f93e4}=this[_0x3957be(0x6ff)];_0x2f93e4[_0x3957be(0x4fc)](_0x14b86d['ITEM_PENDING'],this['_onPending']),_0x2f93e4[_0x3957be(0x4fc)](_0x14b86d[_0x3957be(0x67a)],this[_0x3957be(0x786)]),_0x2f93e4[_0x3957be(0x4fc)](_0x14b86d[_0x3957be(0xc0)],this[_0x3957be(0x786)]),_0x2f93e4[_0x3957be(0x4fc)](_0x14b86d['ITEM_REMOVE'],this[_0x3957be(0x786)]),_0x2f93e4[_0x3957be(0x4fc)](_0x14b86d[_0x3957be(0x515)],this['_onPoke']);try{_0x2f93e4[_0x3957be(0x4fc)](_0x14b86d['SYSTEM_STOPPED'],this[_0x3957be(0x2c7)]);}catch{}this[_0x3957be(0x593)]&&(clearTimeout(this['_flushTimer']),this[_0x3957be(0x593)]=null),this[_0x3957be(0x6d9)][_0x3957be(0x544)](),this[_0x3957be(0x7b3)]['clear'](),this[_0x3957be(0x41b)][_0x3957be(0x544)](),this['_seen'][_0x3957be(0x544)](),this[_0x3957be(0x598)]['clear']();}[_0xf20b8f(0x7cf)](_0x35db14,_0x2c856b,_0x48b3ab,_0x556cca){return _0x35db14+'\x00'+_0x2c856b+'\x00'+_0x48b3ab+'\x00'+_0x556cca;}[_0xf20b8f(0x74b)](_0x275c62,_0x375bd6,_0x47b4a0,_0x3bd9f8){const _0x4eaf45=_0xf20b8f,_0x28b36c=this[_0x4eaf45(0x7cf)](_0x275c62,_0x375bd6,_0x47b4a0,_0x3bd9f8);if(this['_seen'][_0x4eaf45(0x614)](_0x28b36c))return![];this['_seen'][_0x4eaf45(0x3a8)](_0x28b36c);if(this[_0x4eaf45(0x627)][_0x4eaf45(0x74f)]>this[_0x4eaf45(0x702)]){const _0x4eef7e=this[_0x4eaf45(0x627)][_0x4eaf45(0x4ee)]()[_0x4eaf45(0x133)]()[_0x4eaf45(0x6f0)];this[_0x4eaf45(0x627)][_0x4eaf45(0x7ec)](_0x4eef7e);}return!![];}[_0xf20b8f(0x435)](_0x494e8f){const _0x1ea4dd=_0xf20b8f;if(!this[_0x1ea4dd(0x2a2)]||!_0x494e8f)return;const {env:_0x207c05,type:_0x2895f9,key:_0x4888be,clock:_0x1f745b}=_0x494e8f;if(_0x207c05==null||_0x2895f9==null||_0x4888be==null)return;if(typeof _0x207c05==='string'&&_0x207c05[_0x1ea4dd(0x217)]('~'))return;if(typeof _0x2895f9===_0x1ea4dd(0x229)&&_0x2895f9[_0x1ea4dd(0x217)]('~'))return;this[_0x1ea4dd(0x598)][_0x1ea4dd(0x3a8)](this[_0x1ea4dd(0x7cf)](_0x207c05,_0x2895f9,_0x4888be,_0x1f745b)),this[_0x1ea4dd(0x598)][_0x1ea4dd(0x74f)]>this[_0x1ea4dd(0x702)]&&this[_0x1ea4dd(0x598)][_0x1ea4dd(0x7ec)](this['_pendingLocal'][_0x1ea4dd(0x4ee)]()[_0x1ea4dd(0x133)]()[_0x1ea4dd(0x6f0)]);}[_0xf20b8f(0x7d4)](_0x5dd64c){const _0x3f1155=_0xf20b8f;if(!this[_0x3f1155(0x2a2)]||!_0x5dd64c)return;const {env:_0x14ea0c,type:_0x2ebdc7,key:_0x501722,clock:_0xb5d831,origin:_0x3448d2,action:_0x27474a,newValue:_0x57080f,oldValue:_0x37128}=_0x5dd64c;if(_0x14ea0c==null||_0x2ebdc7==null||_0x501722==null)return;if(typeof _0x14ea0c==='string'&&_0x14ea0c[_0x3f1155(0x217)]('~'))return;if(typeof _0x2ebdc7==='string'&&_0x2ebdc7[_0x3f1155(0x217)]('~'))return;this['_pendingLocal'][_0x3f1155(0x7ec)](this[_0x3f1155(0x7cf)](_0x14ea0c,_0x2ebdc7,_0x501722,_0xb5d831));if(!this[_0x3f1155(0x74b)](_0x14ea0c,_0x2ebdc7,_0x501722,_0xb5d831))return;const _0x28949b=_0x27474a===_0x249857[_0x3f1155(0x221)]?_0x3f1155(0x4d2):_0x3f1155(0x59b);this[_0x3f1155(0x36e)](_0x3f1155(0xd0),{'env':_0x14ea0c,'type':_0x2ebdc7,'key':_0x501722,'op':_0x28949b,'clock':_0xb5d831,'origin':_0x3448d2,'value':_0x28949b===_0x3f1155(0x4d2)?null:_0x57080f,'prevValue':_0x37128});}[_0xf20b8f(0x763)](_0x4f2aff){const _0x4a2572=_0xf20b8f;if(!this['_started'])return;if(!_0x4f2aff||typeof _0x4f2aff['env']!==_0x4a2572(0x229)||typeof _0x4f2aff[_0x4a2572(0x690)]!==_0x4a2572(0x229))return;const {env:_0x1e21dd,type:_0x22b4df}=_0x4f2aff;if(_0x1e21dd[_0x4a2572(0x217)]('~')||_0x22b4df['startsWith']('~'))return;this[_0x4a2572(0x6d9)]['set'](_0x1e21dd+'\x00'+_0x22b4df,{'env':_0x1e21dd,'type':_0x22b4df}),this[_0x4a2572(0xed)]();}[_0xf20b8f(0xed)](){const _0x3aa2b6=_0xf20b8f;if(this['_flushTimer'])return;const _0x415de0=()=>{const _0x12a380=_0x41a2;this['_flushTimer']=null,this['_drain']()[_0x12a380(0x603)](()=>{});};this[_0x3aa2b6(0x593)]=setTimeout(_0x415de0,_0x448f3a(this[_0x3aa2b6(0x16e)]));}async[_0xf20b8f(0x5cc)](){const _0x14dce5=_0xf20b8f;if(this[_0x14dce5(0x51f)]){this['_scheduleFlush']();return;}this[_0x14dce5(0x51f)]=!![];try{const _0x53e3c6=[...this[_0x14dce5(0x6d9)][_0x14dce5(0x4ee)]()];this['_pending'][_0x14dce5(0x544)]();let _0x19aab3=![];for(const {env:_0x38a78d,type:_0x303db0}of _0x53e3c6){try{const _0x9092ab=await this[_0x14dce5(0x25a)](_0x38a78d,_0x303db0);if(_0x9092ab)_0x19aab3=!![];}catch{this[_0x14dce5(0x6d9)][_0x14dce5(0x48c)](_0x38a78d+'\x00'+_0x303db0,{'env':_0x38a78d,'type':_0x303db0}),_0x19aab3=!![];}}if(_0x19aab3||this['_pending']['size']>0x0)this[_0x14dce5(0xed)]();}finally{this[_0x14dce5(0x51f)]=![];}}async[_0xf20b8f(0x25a)](_0x21cb73,_0x1dd8c3){const _0x36dbe8=_0xf20b8f,_0x159397=await this[_0x36dbe8(0x6ff)][_0x36dbe8(0x7e8)](_0x21cb73),_0x248c60=_0x21cb73+'\x00'+_0x1dd8c3;!this['_cursors'][_0x36dbe8(0x614)](_0x248c60)&&(!this[_0x36dbe8(0x41b)][_0x36dbe8(0x614)](_0x21cb73)&&(_0x159397[_0x36dbe8(0x6ae)](),this[_0x36dbe8(0x41b)][_0x36dbe8(0x48c)](_0x21cb73,_0x159397[_0x36dbe8(0x41d)]()||0x0)),this['_cursors'][_0x36dbe8(0x48c)](_0x248c60,this[_0x36dbe8(0x41b)][_0x36dbe8(0x1bc)](_0x21cb73)));const _0x467e82=this[_0x36dbe8(0x7b3)][_0x36dbe8(0x1bc)](_0x248c60),_0x1ba571=_0x159397[_0x36dbe8(0x41d)](_0x1dd8c3)||0x0;if(_0x1ba571<=_0x467e82)return![];const _0x3402a1=_0x467e82+this['_quantum'],_0x4c9756=Math[_0x36dbe8(0x165)](_0x1ba571,_0x3402a1),_0x3deefa=_0x1a743c[_0x36dbe8(0x671)]?_0x1a743c['now']():0x0,_0x3dfc53=Array[_0x36dbe8(0x295)](_0x159397[_0x36dbe8(0xe4)](_0x1dd8c3,_0x467e82+0x1,_0x4c9756));let _0x44259b=_0x467e82;for(const _0x5cb845 of _0x3dfc53){const {clock:_0x5948d6,key:_0x5b8805,action:_0x21eb24,origin:_0x3e8ead}=_0x5cb845;if(_0x5948d6>_0x44259b)_0x44259b=_0x5948d6;if(_0x5b8805==null)continue;if(this[_0x36dbe8(0x598)][_0x36dbe8(0x614)](this['_dedupeKey'](_0x21cb73,_0x1dd8c3,_0x5b8805,_0x5948d6)))continue;if(!this[_0x36dbe8(0x74b)](_0x21cb73,_0x1dd8c3,_0x5b8805,_0x5948d6))continue;let _0x11c781,_0x504a6c;if(_0x21eb24===_0x249857[_0x36dbe8(0x221)])_0x11c781=_0x36dbe8(0x4d2),_0x504a6c=null;else{const _0x128b70=_0x159397[_0x36dbe8(0x1bc)](_0x1dd8c3,_0x5b8805);_0x128b70==null?(_0x11c781=_0x36dbe8(0x4d2),_0x504a6c=null):(_0x11c781=_0x36dbe8(0x59b),_0x504a6c=_0x128b70);}this['emit'](_0x36dbe8(0xd0),{'env':_0x21cb73,'type':_0x1dd8c3,'key':_0x5b8805,'op':_0x11c781,'clock':_0x5948d6,'origin':_0x3e8ead,'value':_0x504a6c});}if(_0x1a743c[_0x36dbe8(0x671)])_0x1a743c[_0x36dbe8(0x5ee)]('feed:'+_0x21cb73+':'+_0x1dd8c3,_0x1a743c[_0x36dbe8(0x772)]()-_0x3deefa,'n='+_0x3dfc53[_0x36dbe8(0x2a9)]);return this['_cursors'][_0x36dbe8(0x48c)](_0x248c60,Math[_0x36dbe8(0x380)](_0x44259b,_0x4c9756)),_0x159397[_0x36dbe8(0x41d)](_0x1dd8c3)>_0x4c9756;}['status'](){const _0x1c38c5=_0xf20b8f;return{'started':this['_started'],'quantum':this['_quantum'],'flushDebounce':this[_0x1c38c5(0x16e)],'cursors':Object[_0x1c38c5(0x4af)]([...this[_0x1c38c5(0x7b3)][_0x1c38c5(0x2d3)]()]['map'](([_0x1af646,_0xa2b835])=>[_0x1af646[_0x1c38c5(0x782)]('\x00',':'),_0xa2b835])),'pending':this[_0x1c38c5(0x6d9)][_0x1c38c5(0x74f)],'seen':this['_seen'][_0x1c38c5(0x74f)]};}}return _0x4ee141[_0xf20b8f(0x52e)]=_0x18ba0c,okdbChangefeed={'OKDBChangefeed':_0x4ee141},okdbChangefeed;}var okdbRelay,hasRequiredOkdbRelay;function requireOkdbRelay(){const _0x3fb01e=_0x431d06;if(hasRequiredOkdbRelay)return okdbRelay;hasRequiredOkdbRelay=0x1;const {EVENTS:_0x7246a2}=requireOkdbEnums(),_0x6bb3e3=new Set([_0x7246a2[_0x3fb01e(0x67a)],_0x7246a2[_0x3fb01e(0xc0)],_0x7246a2[_0x3fb01e(0x3bc)]]),{ENGINE_EVENTS:_0x46ec67}=requireOkdbEnginesEnums(),{EMBEDDINGS_EVENTS:_0x377f68}=requireEnums(),{QUEUE_EVENTS:_0x4b5702}=requireOkdbQueueValidate(),_0x1bc75e=Object[_0x3fb01e(0x4ee)](_0x7246a2),_0x268afb=Object[_0x3fb01e(0x4ee)](_0x46ec67)[_0x3fb01e(0x1d9)](_0x167062=>_0x3fb01e(0x3b7)+_0x167062),_0x583a6c=Object['values'](_0x377f68),_0x5b1eba=Object[_0x3fb01e(0x4ee)](_0x4b5702),_0x10af3d=[_0x3fb01e(0x57e),'processor:progress',_0x3fb01e(0x6d1),_0x3fb01e(0x3a0),'processor:resumed','processor:retry'],_0x591f50=[..._0x1bc75e,..._0x268afb,..._0x583a6c,..._0x5b1eba,..._0x10af3d,_0x3fb01e(0x745)],_0x4af981=new Set(_0x591f50),_0x16fd81=new Set([_0x7246a2[_0x3fb01e(0x67a)],_0x7246a2['ITEM_UPDATE'],_0x7246a2['ITEM_REMOVE'],_0x7246a2[_0x3fb01e(0xe3)],_0x7246a2[_0x3fb01e(0x631)],_0x7246a2[_0x3fb01e(0x54c)],_0x7246a2[_0x3fb01e(0x3ba)],_0x7246a2[_0x3fb01e(0x76f)],_0x377f68['INDEXER_DOC_DONE'],_0x377f68['INDEXER_DOC_FAILED'],_0x377f68[_0x3fb01e(0x1dd)],_0x377f68[_0x3fb01e(0x682)],_0x3fb01e(0x5f1)]),_0x46db4b=_0x591f50['filter'](_0x371da7=>_0x371da7===_0x3fb01e(0x745)||!_0x16fd81[_0x3fb01e(0x614)](_0x371da7)),_0x70e5e=0x14,_0x260e27=0xc8;class _0x7a9c60{constructor(_0x58c33a,_0x53f00f={}){const _0x446c63=_0x3fb01e;this[_0x446c63(0x6ff)]=_0x58c33a,this[_0x446c63(0x79c)]=_0x53f00f['maxConnections']??_0x70e5e,this[_0x446c63(0x18b)]=_0x53f00f[_0x446c63(0x700)]??_0x260e27,this['_connections']=new Set(),this[_0x446c63(0x459)]=[],this[_0x446c63(0x2d6)]=[],this[_0x446c63(0x134)]=null,this[_0x446c63(0x6d5)]=![],this[_0x446c63(0x5ad)]=null,this[_0x446c63(0x4b1)]=null;}[_0x3fb01e(0x131)](){const _0x17467e=_0x3fb01e;if(this[_0x17467e(0x6d5)])return;this['_attached']=!![];const {okdb:_0x5e5849}=this;this[_0x17467e(0x134)]=_0x5e5849['log'][_0x17467e(0x131)](_0x3f99dc=>this[_0x17467e(0x7e5)](_0x17467e(0x745),_0x3f99dc));for(const _0x1be165 of _0x591f50){if(_0x1be165===_0x17467e(0x745))continue;const _0x15406b=_0x6bb3e3[_0x17467e(0x614)](_0x1be165),_0x311b02=_0x1c64b9=>{const _0x127f7a=_0x17467e;if(_0x15406b&&this[_0x127f7a(0x5ad)])return;this[_0x127f7a(0x7e5)](_0x1be165,_0x1c64b9??{});};_0x5e5849['events']['on'](_0x1be165,_0x311b02),this['_listeners'][_0x17467e(0x540)]({'event':_0x1be165,'handler':_0x311b02});}this[_0x17467e(0x2c7)]=()=>this[_0x17467e(0x62a)](),_0x5e5849[_0x17467e(0x6bf)]['once'](_0x7246a2[_0x17467e(0x270)],this[_0x17467e(0x2c7)]);}['detach'](){const _0x4a32e9=_0x3fb01e;if(!this[_0x4a32e9(0x6d5)])return;if(this[_0x4a32e9(0x2c7)]){try{this[_0x4a32e9(0x6ff)][_0x4a32e9(0x6bf)][_0x4a32e9(0x4fc)](_0x7246a2[_0x4a32e9(0x270)],this[_0x4a32e9(0x2c7)]);}catch{}this[_0x4a32e9(0x2c7)]=null;}this['_detachLog']?.(),this[_0x4a32e9(0x134)]=null;for(const {event:_0x37b86c,handler:_0x506b43}of this['_listeners']){try{this[_0x4a32e9(0x6ff)][_0x4a32e9(0x6bf)][_0x4a32e9(0x4fc)](_0x37b86c,_0x506b43);}catch{}}this[_0x4a32e9(0x2d6)]=[];for(const _0x563ae6 of this[_0x4a32e9(0x22d)]){try{_0x563ae6[_0x4a32e9(0x498)]?.();}catch{}}this[_0x4a32e9(0x22d)][_0x4a32e9(0x544)](),this[_0x4a32e9(0x2a6)](),this['_attached']=![];}[_0x3fb01e(0x7a5)](_0x5d6fed){const _0x291717=_0x3fb01e;if(!_0x5d6fed||this['_feed']===_0x5d6fed)return;this['detachFeed'](),this[_0x291717(0x5ad)]=_0x5d6fed,this[_0x291717(0x4b1)]=_0x594371=>{const _0x57a978=_0x291717;if(!_0x594371)return;const _0x5ea588=_0x594371['op']===_0x57a978(0x4d2)?_0x7246a2[_0x57a978(0x3bc)]:_0x7246a2[_0x57a978(0xc0)];this[_0x57a978(0x7e5)](_0x5ea588,_0x594371);},_0x5d6fed['on']('change',this[_0x291717(0x4b1)]);}[_0x3fb01e(0x2a6)](){const _0x49898a=_0x3fb01e;if(this[_0x49898a(0x5ad)]&&this[_0x49898a(0x4b1)])try{this[_0x49898a(0x5ad)][_0x49898a(0x4fc)](_0x49898a(0xd0),this[_0x49898a(0x4b1)]);}catch{}this[_0x49898a(0x5ad)]=null,this[_0x49898a(0x4b1)]=null;}['pushEphemeral'](_0x285168,_0x2f813d){const _0x512790=_0x3fb01e;if(!_0x4af981[_0x512790(0x614)](_0x285168))return;this[_0x512790(0x7e5)](_0x285168,_0x2f813d??{});}[_0x3fb01e(0x72a)](_0x1faeb1,_0xf6e60,_0x566211){const _0x4bb170=_0x3fb01e;if(this[_0x4bb170(0x22d)]['size']>=this[_0x4bb170(0x79c)])return _0xf6e60(_0x4bb170(0x283),{'message':_0x4bb170(0x4f9),'code':'RELAY_FULL'}),()=>{};const _0x1dd229=this[_0x4bb170(0x2df)](_0x1faeb1),_0x1d884b={'send':_0xf6e60,'filter':_0x1dd229,'close':_0x566211??null};this[_0x4bb170(0x22d)][_0x4bb170(0x3a8)](_0x1d884b);for(const {event:_0x5d4782,data:_0xda6492}of this[_0x4bb170(0x459)]){if(_0x1dd229[_0x4bb170(0x614)](_0x5d4782))try{_0xf6e60(_0x5d4782,_0xda6492);}catch{}}return()=>this[_0x4bb170(0x22d)]['delete'](_0x1d884b);}[_0x3fb01e(0x4c0)](){const _0x238b40=_0x3fb01e;if(this[_0x238b40(0x5ad)])return this[_0x238b40(0x5ad)];const {OKDBChangefeed:_0x19f251}=requireOkdbChangefeed(),_0x5a019f=new _0x19f251(this['okdb']);_0x5a019f['start'](),this[_0x238b40(0x7a5)](_0x5a019f);if(this[_0x238b40(0x6ff)]&&!this[_0x238b40(0x6ff)]['_changefeed'])this[_0x238b40(0x6ff)][_0x238b40(0x1ca)]=_0x5a019f;return this['_feed'];}get['connectionCount'](){const _0x404fec=_0x3fb01e;return this[_0x404fec(0x22d)]['size'];}[_0x3fb01e(0x39b)](){const _0x33946b=_0x3fb01e;return{'connections':this[_0x33946b(0x4a8)],'bufferSize':this[_0x33946b(0x459)]['length'],'attached':this[_0x33946b(0x6d5)],'allEvents':_0x591f50[_0x33946b(0x2a9)],'defaultEvents':_0x46db4b['length']};}static get['ALL_EVENTS'](){return _0x591f50;}static get['DEFAULT_EVENTS'](){return _0x46db4b;}static get[_0x3fb01e(0x4fa)](){return[..._0x16fd81];}[_0x3fb01e(0x2df)](_0x33dc52){const _0x1f0e5b=_0x3fb01e;if(!_0x33dc52||!_0x33dc52[_0x1f0e5b(0x2a9)])return new Set(_0x46db4b);const _0x57ec33=_0x33dc52['filter'](_0x5a1b37=>_0x4af981['has'](_0x5a1b37));return new Set(_0x57ec33['length']?_0x57ec33:_0x46db4b);}[_0x3fb01e(0x7e5)](_0x5310fc,_0x53a671){const _0x409956=_0x3fb01e,_0x3f2d78={..._0x53a671,'_ts':_0x53a671?.['_ts']??_0x53a671?.['ts']??Date['now']()};this[_0x409956(0x459)][_0x409956(0x540)]({'event':_0x5310fc,'data':_0x3f2d78});if(this[_0x409956(0x459)][_0x409956(0x2a9)]>this[_0x409956(0x18b)])this[_0x409956(0x459)][_0x409956(0x40d)]();for(const _0x53a5c8 of this['_connections']){if(_0x53a5c8[_0x409956(0x587)][_0x409956(0x614)](_0x5310fc))try{_0x53a5c8[_0x409956(0x4b4)](_0x5310fc,_0x3f2d78);}catch{}}}}return okdbRelay=_0x7a9c60,okdbRelay;}var hasRequiredLib;function requireLib(){const _0x3070f3=_0x431d06;if(hasRequiredLib)return lib[_0x3070f3(0x1ad)];return hasRequiredLib=0x1,function(_0x461709){const _0xa6e0f1=_0x3070f3,_0x4a42c6=require$$0$6,{load:_0x37f11e}=require$$1$1,_0x337fe4=requireBridge(),_0x17a6ff=requireWritebatch(),{Pumper:_0x27ea6a}=requirePump(),{OKDBEnv:_0x3b84bf,HIGH_SENTINEL:_0x167762}=requireEnv(),{reclass:_0x501b0e,NotImplementedNative:_0x4dc49f,OKDBError:_0x44709f,optionsArg:_0x5197c2,invalidArgument:_0x57beb4}=requireErrors(),{notImplemented:_0x25a41d}=requireUnsupported(),{OKDBHttp:_0x8f34de}=requireHttp(),{OKDBFts:_0x5ab8b9}=requireFts(),{OKDBEmbeddings:_0x4731ea}=requireEmbeddings(),{OKDBAuth:_0x122565}=requireAuth(),{OKDBSync:_0x1681fc}=requireSync(),{OKDBMigrate:_0x33ab8b}=requireMigrate(),{OKDBFunctions:_0x39c050}=requireFunctions(),{OKDBMcp:_0x253dff}=requireMcp(),{OKDBEngines:_0x384e16,OKDBPipelines:_0x37c9cc}=requireEngines(),{makeMeta:_0xccbe3c,makeLicenses:_0x1da542,makeLicenseChecker:_0x1d99b8,makeProcesses:_0x3de0e3}=requireSys();let _0x164851=null;function _0x37a7b3(_0x23c942){const _0xcb04af=_0x41a2;if(!_0x164851){const {Unpackr:_0x242014}=require$$18;_0x164851=new _0x242014({'useRecords':![],'mapsAsObjects':!![],'copyBuffers':!![]});}return _0x164851[_0xcb04af(0x299)](_0x23c942);}let _0x470502=null;function _0x1e2817(_0x4ba62d,_0x556e32){const _0x2766f8=_0x41a2;if(!_0x470502){const {Unpackr:_0x1e4521}=require$$18;_0x470502=new _0x1e4521({'copyBuffers':!![]});}return _0x470502[_0x2766f8(0x299)](_0x4ba62d,_0x556e32);}const {encodeKey:_0x54754f,KEY_BUF_SIZE:_0x201268,NO_FAST:_0x32105a}=requireKeyenc(),_0x2f1c5a=0x40*0x400,_0x4d8115=0x4*0x400*0x400;function _0x50da95(_0x2f0098,_0x164cbb){const _0x417a95=_0x41a2,_0x1e34d1=_0x2f0098[0x2],_0x1ffb49=_0x1e34d1?(_0x2f0098[_0x417a95(0x2a9)]-0x3)/Math[_0x417a95(0x5dc)](_0x1e34d1):0x0,_0x537854=new Array(_0x1ffb49);let _0x13ab4b=0x3;if(_0x1e34d1===0x2){for(let _0x3e8952=0x0;_0x3e8952<_0x1ffb49;_0x3e8952++,_0x13ab4b+=0x2)_0x537854[_0x3e8952]={'key':_0x2f0098[_0x13ab4b],'value':_0x2f0098[_0x13ab4b+0x1]};}else{if(_0x1e34d1===0x3){for(let _0x19002a=0x0;_0x19002a<_0x1ffb49;_0x19002a++,_0x13ab4b+=0x3)_0x537854[_0x19002a]={'key':_0x2f0098[_0x13ab4b],'value':_0x2f0098[_0x13ab4b+0x1],'version':_0x2f0098[_0x13ab4b+0x2]};}else{if(_0x1e34d1===-0x2){for(let _0x24fd8e=0x0;_0x24fd8e<_0x1ffb49;_0x24fd8e++,_0x13ab4b+=0x2)_0x537854[_0x24fd8e]={'clock':_0x2f0098[_0x13ab4b],..._0x2f0098[_0x13ab4b+0x1]};}else{if(_0x1e34d1===0x4){for(let _0x538e74=0x0;_0x538e74<_0x1ffb49;_0x538e74++,_0x13ab4b+=0x4)_0x537854[_0x538e74]={'key':_0x2f0098[_0x13ab4b],'value':_0x2f0098[_0x13ab4b+0x1],'version':_0x2f0098[_0x13ab4b+0x2],'indexKey':_0x2f0098[_0x13ab4b+0x3]};}else{if(_0x1ffb49)throw new Error(_0x417a95(0x522)+_0x1e34d1);}}}}return _0x164cbb?[_0x2f0098[0x0],_0x537854,_0x2f0098[0x1]]:_0x537854;}let _0x3d4619=null;function _0x23f783(_0x30d064,_0x9b33a9,_0x3bbd7e){const _0x425a4b=_0x41a2;if(!_0x3d4619)_0x3d4619=requireDist()['readKey'];const _0x6b174e=new DataView(_0x30d064[_0x425a4b(0x3a4)],_0x30d064[_0x425a4b(0x431)],_0x9b33a9),_0x52a5c7=_0x6b174e[_0x425a4b(0x247)](0x10,!![]),_0x3072a6=new Array(_0x52a5c7);let _0x14dcb6=0x14;for(let _0x428fcc=0x0;_0x428fcc<_0x52a5c7;_0x428fcc++){const _0x7b6af7=_0x30d064[_0x14dcb6]|_0x30d064[_0x14dcb6+0x1]<<0x8;_0x14dcb6+=0x2,_0x3072a6[_0x428fcc]=_0x3d4619(_0x30d064,_0x14dcb6,_0x14dcb6+_0x7b6af7),_0x14dcb6+=_0x7b6af7;}return _0x3bbd7e?[_0x6b174e[_0x425a4b(0x3c0)](0x0,!![]),_0x3072a6,_0x6b174e[_0x425a4b(0x3c0)](0x8,!![])]:_0x3072a6;}const _0x2aca18=requireOkdbLogger(),_0x44ee4d=requireOkdbPlugins(),{OKDB_STATE:_0x1a1e5a,EVENTS:_0x1e4ac7}=requireOkdbEnums(),_0x150068=requireStatics();let _0x19875f=null,_0x197fda=![],_0x397f85=0x1;const _0x466f3b=new Map(),_0x518393=new Set([_0xa6e0f1(0x2db),'EMBED_PENDING']),_0x41bc4e=_0x42dea6=>!!_0x42dea6&&_0x518393[_0xa6e0f1(0x614)](_0x42dea6[_0xa6e0f1(0x30f)]),_0x474c86=Number(process.env.OKDB_PENDING_RETRY_MS)>0x0?Number(process.env.OKDB_PENDING_RETRY_MS):0x1d4c0;function _0x3c5c78(){const _0x396dfb=_0xa6e0f1;!_0x197fda&&(_0x44fdcd()[_0x396dfb(0x72e)](_0x337fe4[_0x396dfb(0x765)]),_0x17a6ff[_0x396dfb(0x353)](_0x44fdcd()),_0x197fda=!![]);}function _0x44fdcd(){if(!_0x19875f)_0x19875f=_0x37f11e();return _0x19875f;}class _0x1d1fdf extends Map{constructor(_0x33ef77){const _0x384e86=_0xa6e0f1;super(),this[_0x384e86(0x281)]=_0x33ef77;}[_0xa6e0f1(0x2da)](){const _0x1acd77=_0xa6e0f1,_0x1b5033=this[_0x1acd77(0x281)];if(!_0x1b5033['_isOpen'])return;let _0x5a0fa9;try{_0x5a0fa9=_0x1b5033[_0x1acd77(0x722)]('db',null,_0x1acd77(0x437),[],![]);}catch{return;}for(const _0x509149 of _0x5a0fa9)if(!super[_0x1acd77(0x614)](_0x509149)&&_0x1b5033['_call']('db',null,'hasEnv',[_0x509149],![]))_0x1b5033[_0x1acd77(0x7d0)](_0x509149);}[_0xa6e0f1(0x1bc)](_0x1eba33){const _0xa5e8e8=_0xa6e0f1,_0x5ead63=super[_0xa5e8e8(0x1bc)](_0x1eba33);if(_0x5ead63!==undefined||typeof _0x1eba33!==_0xa5e8e8(0x229))return _0x5ead63;const _0x1c7281=this[_0xa5e8e8(0x281)];if(_0x1eba33===_0xa5e8e8(0xc5))return _0x1c7281['_isOpen']?_0x1c7281[_0xa5e8e8(0x4e7)]['_statusEnv']??undefined:undefined;if(_0x1c7281[_0xa5e8e8(0x2ab)]&&_0x1c7281[_0xa5e8e8(0x722)]('db',null,'hasEnv',[_0x1eba33],![]))return _0x1c7281[_0xa5e8e8(0x7d0)](_0x1eba33);if(_0x1c7281[_0xa5e8e8(0x2ab)]&&typeof _0x1eba33===_0xa5e8e8(0x229)&&!_0x1eba33[_0xa5e8e8(0x217)]('~')){_0x1c7281['_call']('db',null,_0xa5e8e8(0x5f4),[],![]);if(_0x1c7281[_0xa5e8e8(0x722)]('db',null,'hasEnv',[_0x1eba33],![]))return _0x1c7281[_0xa5e8e8(0x7d0)](_0x1eba33);}return undefined;}[_0xa6e0f1(0x614)](_0x461621){const _0x408c30=_0xa6e0f1;return this[_0x408c30(0x1bc)](_0x461621)!==undefined;}get['size'](){const _0x8d2bf=_0xa6e0f1;return this[_0x8d2bf(0x2da)](),super['size'];}[_0xa6e0f1(0x5e1)](){const _0x52d95e=_0xa6e0f1;return this[_0x52d95e(0x2da)](),super['keys']();}[_0xa6e0f1(0x4ee)](){const _0x2e07da=_0xa6e0f1;return this[_0x2e07da(0x2da)](),super[_0x2e07da(0x4ee)]();}[_0xa6e0f1(0x2d3)](){const _0xbca624=_0xa6e0f1;return this[_0xbca624(0x2da)](),super[_0xbca624(0x2d3)]();}['forEach'](_0x88d2ee,_0x57f560){const _0x112c1a=_0xa6e0f1;return this[_0x112c1a(0x2da)](),super[_0x112c1a(0x64d)](_0x88d2ee,_0x57f560);}[Symbol[_0xa6e0f1(0x6b7)]](){const _0x19161d=_0xa6e0f1;return this[_0x19161d(0x2da)](),super[Symbol['iterator']]();}}class _0x5c3f5d{constructor(_0x643995,_0x5efd7e={}){const _0x2c3d6d=_0xa6e0f1,_0x544307=_0x44fdcd();this[_0x2c3d6d(0xe7)]=_0x643995,this['_uid']=_0x397f85++,this[_0x2c3d6d(0x63a)]='db'+this[_0x2c3d6d(0x164)],this[_0x2c3d6d(0x2f0)]={..._0x150068[_0x2c3d6d(0x19a)],..._0x5efd7e,'auth':_0x5efd7e[_0x2c3d6d(0x642)]?{..._0x5efd7e['auth']}:undefined,'lmdb':{..._0x5efd7e[_0x2c3d6d(0x761)]||{}}},this[_0x2c3d6d(0x6bf)]=new _0x4a42c6(),this[_0x2c3d6d(0x6bf)][_0x2c3d6d(0x3c9)](0x0),this[_0x2c3d6d(0x36d)]=new Set(),this[_0x2c3d6d(0x6bf)]['on'](_0x2c3d6d(0x2b7),_0x2a7f05=>this[_0x2c3d6d(0x70d)](_0x2a7f05)),this[_0x2c3d6d(0x745)]=new _0x2aca18(this),this[_0x2c3d6d(0x745)][_0x2c3d6d(0x52b)](),_0x337fe4[_0x2c3d6d(0x4df)](this[_0x2c3d6d(0x63a)],{'_deliver':(_0x517703,_0x8336bb)=>this[_0x2c3d6d(0x60b)](_0x517703,_0x8336bb),'_log':_0x37eed5=>{const _0x52ab76=_0x2c3d6d;if(this[_0x52ab76(0x6a1)])this[_0x52ab76(0x6a1)][_0x52ab76(0x540)](_0x37eed5);const _0x3c7d5e=_0x37eed5&&_0x37eed5[_0x52ab76(0x3dd)];if(_0x3c7d5e&&Object['prototype']['hasOwnProperty']['call'](this[_0x52ab76(0x745)],_0x3c7d5e)&&typeof this['log'][_0x3c7d5e]===_0x52ab76(0x7c4)){const _0x16acc9=_0x37eed5[_0x52ab76(0x1fb)];return this['log'][_0x3c7d5e](_0x37eed5['msg'],{..._0x37eed5[_0x52ab76(0x7a9)]||{},..._0x16acc9&&typeof _0x16acc9==='object'?_0x16acc9:{}});}return this[_0x52ab76(0x745)][_0x52ab76(0x38b)](_0x37eed5);}}),_0x3c5c78();try{const _0x126c40={};if(typeof _0x2c3d6d(0x4de)===_0x2c3d6d(0x12f)||_0x2c3d6d(0x4de)!=='true');const _0x5c92f5={..._0x5efd7e,'_clusterWorker':require(_0x2c3d6d(0x56c))[_0x2c3d6d(0x79d)],..._0x126c40};this[_0x2c3d6d(0x1c7)]={'instance':null,'envs':new Map()};typeof _0x5efd7e[_0x2c3d6d(0x35a)]===_0x2c3d6d(0x7c4)&&(this['_keyFns'][_0x2c3d6d(0x314)]=_0x5efd7e[_0x2c3d6d(0x35a)],delete _0x5c92f5[_0x2c3d6d(0x35a)]);if(_0x5efd7e['encryptionKeys']&&typeof _0x5efd7e[_0x2c3d6d(0x713)]===_0x2c3d6d(0x4ed)){for(const [_0x27434f,_0x832624]of Object[_0x2c3d6d(0x2d3)](_0x5efd7e[_0x2c3d6d(0x713)]))this['_keyFns'][_0x2c3d6d(0x6c8)][_0x2c3d6d(0x48c)](_0x27434f,_0x832624);}delete _0x5c92f5[_0x2c3d6d(0x713)],this['_native']=new _0x544307['Native'](_0x643995,_0x5c92f5,this[_0x2c3d6d(0x63a)]);}catch(_0x3d6999){_0x337fe4[_0x2c3d6d(0x278)](this[_0x2c3d6d(0x63a)]);throw _0x501b0e(_0x3d6999);}this[_0x2c3d6d(0x1a2)]=_0x1a1e5a[_0x2c3d6d(0x673)],this[_0x2c3d6d(0x2ab)]=![],this[_0x2c3d6d(0x446)]=new _0x1d1fdf(this),this[_0x2c3d6d(0x6bc)]=new _0x27ea6a({'pump':()=>this[_0x2c3d6d(0x66d)]['pump']()}),this[_0x2c3d6d(0x13c)]=new _0x17a6ff[(_0x2c3d6d(0x4cf))](this),this[_0x2c3d6d(0x6bc)][_0x2c3d6d(0x53f)]=()=>_0x337fe4[_0x2c3d6d(0x749)](),_0x337fe4[_0x2c3d6d(0x38d)](()=>this[_0x2c3d6d(0x6bc)][_0x2c3d6d(0x4c1)](),this),_0x466f3b[_0x2c3d6d(0x48c)](this['_uid'],this),this[_0x2c3d6d(0x533)]={},_0x337fe4[_0x2c3d6d(0x675)](this),this[_0x2c3d6d(0x448)]=new _0x5ab8b9(this),this[_0x2c3d6d(0x1e7)]=new _0x4731ea(this),this[_0x2c3d6d(0x7bc)]=new _0x384e16(this,null,null),this[_0x2c3d6d(0x251)]=new _0x37c9cc(this,null),this[_0x2c3d6d(0x7a9)]=_0xccbe3c(this),this['licenses']=_0x1da542(this),this[_0x2c3d6d(0x643)]=_0x1d99b8(this),this['processes']=_0x3de0e3(this),this[_0x2c3d6d(0x7b9)]=_0x1b2906(this),this['plugins']=new _0x44ee4d(this),this[_0x2c3d6d(0x1c8)]=new _0x8f34de(this),this['sync']=new _0x1681fc(this),this[_0x2c3d6d(0x642)]=new _0x122565(this),this[_0x2c3d6d(0x2f9)]=new _0x39c050(this,null),this['mcp']=new _0x253dff(this),this[_0x2c3d6d(0x17b)]=_0x5efd7e&&_0x5efd7e[_0x2c3d6d(0x17b)]===![]?null:_0x25a41d(_0x2c3d6d(0x17b)),this[_0x2c3d6d(0x7d5)]=_0x25a41d(_0x2c3d6d(0x7d5)),this[_0x2c3d6d(0x14a)]=new _0x33ab8b(this);}[_0xa6e0f1(0x722)](_0x1da254,_0x26d84e,_0x1de105,_0x488f76,_0x328b96=!![]){const _0x458bda=_0xa6e0f1;if(_0x328b96&&this[_0x458bda(0x13c)]&&this['_wb'][_0x458bda(0x4f3)][_0x458bda(0x2a9)])this['_wb'][_0x458bda(0x7dd)]();try{return this[_0x458bda(0x66d)][_0x458bda(0x7cd)](_0x1da254,_0x26d84e,_0x1de105,_0x488f76);}catch(_0x3e1b7e){throw _0x501b0e(_0x3e1b7e);}finally{if(_0x328b96)this['_pumper'][_0x458bda(0x4c1)]();}}[_0xa6e0f1(0x1ab)](_0x5f8e46,_0x5a9435,_0xd02748,_0x27469d){const _0x1945cd=_0xa6e0f1;let _0x6e10e8;try{_0x6e10e8=this[_0x1945cd(0x66d)][_0x1945cd(0x36f)](_0x5f8e46,_0x5a9435,_0xd02748,_0x27469d);}catch(_0x2a9b25){throw _0x501b0e(_0x2a9b25);}return _0x6e10e8 instanceof Uint8Array?_0x37a7b3(_0x6e10e8):_0x6e10e8[0x0];}[_0xa6e0f1(0x63c)](_0x3b5538){const _0x2a0733=_0xa6e0f1;let _0x41cdef=this[_0x2a0733(0x375)];if(_0x41cdef&&_0x3b5538<=_0x41cdef[_0x2a0733(0x2a9)])return _0x41cdef;let _0x37b759=_0x41cdef?_0x41cdef[_0x2a0733(0x2a9)]:_0x2f1c5a;while(_0x37b759<_0x3b5538)_0x37b759*=0x2;if(_0x37b759>_0x4d8115)return _0x41cdef;return _0x41cdef=this['_rbuf']=Buffer['allocUnsafeSlow'](_0x37b759),this[_0x2a0733(0x66d)]['setReadBuffer'](_0x41cdef),_0x41cdef;}[_0xa6e0f1(0x7e2)](_0x226b22,_0x8b11d3,_0xdd4459){const _0x1378ab=_0xa6e0f1;if(!this[_0x1378ab(0x375)])this[_0x1378ab(0x63c)](0x0);const _0x550ee0=this[_0x1378ab(0x66d)][_0x1378ab(0x618)](_0x226b22,_0x8b11d3,_0xdd4459);if(typeof _0x550ee0===_0x1378ab(0x1ce))return _0x1e2817(this[_0x1378ab(0x375)],_0x550ee0);if(_0x550ee0===undefined||_0x550ee0===null)return _0x550ee0;return this[_0x1378ab(0x63c)](_0x550ee0[_0x1378ab(0x2a9)]),_0x1e2817(_0x550ee0);}[_0xa6e0f1(0x42e)](_0x519097,_0x18d08a,_0x28e16a){const _0x5277f1=_0xa6e0f1;let _0x167e6b=this['_kbuf'];if(!_0x167e6b){_0x167e6b=this['_kbuf']=Buffer[_0x5277f1(0x65e)](_0x201268),this[_0x5277f1(0x66d)][_0x5277f1(0x7ce)](_0x167e6b),this['_tids']=new Map();if(!this[_0x5277f1(0x375)])this[_0x5277f1(0x63c)](0x0);}const _0x13e1d4=_0x54754f(_0x28e16a,_0x167e6b);if(_0x13e1d4<0x0)return _0x32105a;let _0x110206=this['_tids']['get'](_0x519097);if(_0x110206===undefined)this[_0x5277f1(0x46b)]['set'](_0x519097,_0x110206=new Map());let _0x346fa6=_0x110206[_0x5277f1(0x1bc)](_0x18d08a);if(_0x346fa6===undefined)_0x110206[_0x5277f1(0x48c)](_0x18d08a,_0x346fa6=this[_0x5277f1(0x66d)][_0x5277f1(0x223)](_0x519097,_0x18d08a));if(_0x346fa6<0x0)return _0x32105a;const _0x4a1032=this[_0x5277f1(0x66d)][_0x5277f1(0x3e0)](_0x346fa6,_0x13e1d4);if(typeof _0x4a1032===_0x5277f1(0x1ce))return _0x1e2817(this[_0x5277f1(0x375)],_0x4a1032);if(_0x4a1032===undefined||_0x4a1032===null)return _0x4a1032;return this[_0x5277f1(0x63c)](_0x4a1032[_0x5277f1(0x2a9)]),_0x1e2817(_0x4a1032);}['_callRows'](_0x32fb71,_0x2f32f2,_0x5246fd){const _0x113faa=_0xa6e0f1;if(!this[_0x113faa(0x375)])this[_0x113faa(0x63c)](0x0);let _0x2d0fdb;try{_0x2d0fdb=this[_0x113faa(0x66d)][_0x113faa(0x14d)](_0x32fb71,_0x2f32f2,_0x5246fd);}catch(_0x27e073){throw _0x501b0e(_0x27e073);}const _0x35ff61=_0x2f32f2===_0x113faa(0x630),_0x23e089=_0x35ff61?_0x5246fd[0x1]:_0x2f32f2;let _0x53fac3=this[_0x113faa(0x375)],_0x5223fe=_0x2d0fdb;if(_0x2d0fdb instanceof Uint8Array)this['_readBuf'](_0x2d0fdb['length']),_0x53fac3=_0x2d0fdb,_0x5223fe=_0x2d0fdb['length'];else{if(typeof _0x2d0fdb!==_0x113faa(0x1ce))return _0x2d0fdb[0x0];}if(_0x23e089===_0x113faa(0x677))return _0x23f783(_0x53fac3,_0x5223fe,_0x35ff61);if(_0x23e089===_0x113faa(0x63b))return _0x1e2817(_0x53fac3,_0x5223fe);return _0x50da95(_0x1e2817(_0x53fac3,_0x5223fe),_0x35ff61);}[_0xa6e0f1(0x22c)](_0x227ed4,_0x4825d7,_0x2d418f,_0x3699d1,_0x201c1d=!![],_0x3564ff=!![]){const _0x138e50=_0xa6e0f1,_0x3c6007=()=>this['_macro'](()=>this['_call'](_0x227ed4,_0x4825d7,_0x2d418f,_0x3699d1,_0x201c1d));if(!_0x3564ff)return _0x3c6007();return this[_0x138e50(0x1b5)](_0x3c6007);}['_retryPending'](_0x3b338d){const _0x3b2f12=_0xa6e0f1;return _0x3b338d()[_0x3b2f12(0x603)](async _0x570724=>{const _0x6001ae=_0x3b2f12;if(!_0x41bc4e(_0x570724))throw _0x570724;const _0x2d815c=Date[_0x6001ae(0x772)]()+_0x474c86;let _0x1440ec=0x1;while(_0x41bc4e(_0x570724)&&Date[_0x6001ae(0x772)]()<_0x2d815c){await new Promise(_0xd5f253=>setTimeout(_0xd5f253,_0x1440ec)),_0x1440ec=Math[_0x6001ae(0x165)](_0x1440ec*0x2,0x14);try{return await _0x3b338d();}catch(_0x537dd5){_0x570724=_0x537dd5;}}throw _0x570724;});}['_settleRead'](_0x386970){const _0x4d118e=_0xa6e0f1;if(_0x337fe4[_0x4d118e(0x219)]())return Promise['resolve'](_0x386970);return new Promise(_0x44c7f1=>setImmediate(()=>_0x44c7f1(_0x386970)));}[_0xa6e0f1(0x550)](_0x44a516){const _0x14bb90=_0xa6e0f1;if(_0x337fe4[_0x14bb90(0x219)]())return Promise[_0x14bb90(0x54d)](_0x44a516);return this[_0x14bb90(0x38f)]()[_0x14bb90(0x583)](()=>_0x44a516);}[_0xa6e0f1(0x38f)](){return new Promise(_0x284059=>setImmediate(()=>{const _0x70f2fd=_0x41a2;let _0x564358;try{_0x564358=this[_0x70f2fd(0x66d)][_0x70f2fd(0x453)]();}catch{return _0x284059();}_0x17a6ff[_0x70f2fd(0x637)](_0x564358,_0x284059);}));}[_0xa6e0f1(0x46d)](_0x5e096c){return new Promise((_0x1f73fb,_0x2e78c6)=>setImmediate(()=>{try{_0x1f73fb(_0x5e096c());}catch(_0x2daf26){_0x2e78c6(_0x2daf26);}}));}[_0xa6e0f1(0x21f)](_0x85af04,_0x4fc420,_0x427f6e){return _0x546473(_0x85af04,_0x4fc420,_0x427f6e);}['_subscribeEvent'](_0x5abc97){const _0x1fbdde=_0xa6e0f1;if(typeof _0x5abc97!==_0x1fbdde(0x229)||this[_0x1fbdde(0x36d)][_0x1fbdde(0x614)](_0x5abc97)||_0x5abc97===_0x1fbdde(0x2b7)||_0x5abc97===_0x1fbdde(0x12c))return;this['_subscribed'][_0x1fbdde(0x3a8)](_0x5abc97);try{this['_native']['call']('events',null,_0x1fbdde(0x72a),[this['_key'],_0x5abc97]);}catch{}}[_0xa6e0f1(0x60b)](_0x3bdbd6,_0x17903d){const _0x3bc738=_0xa6e0f1;this[_0x3bc738(0x6bf)][_0x3bc738(0x36e)](_0x3bdbd6,_0x17903d);}async[_0xa6e0f1(0x3e7)](){const _0x3eda72=_0xa6e0f1,_0x204c11=this[_0x3eda72(0x1c7)];if(_0x204c11[_0x3eda72(0x314)])this['_setKey'](null,await _0x204c11[_0x3eda72(0x314)](null),!![]);for(const [_0x291c6a,_0x395314]of _0x204c11[_0x3eda72(0x6c8)])this[_0x3eda72(0x12d)](_0x291c6a,typeof _0x395314===_0x3eda72(0x7c4)?await _0x395314(_0x291c6a):_0x395314,typeof _0x395314===_0x3eda72(0x7c4));(_0x204c11[_0x3eda72(0x314)]||[..._0x204c11[_0x3eda72(0x6c8)][_0x3eda72(0x4ee)]()]['some'](_0x589ec4=>typeof _0x589ec4==='function'))&&!this[_0x3eda72(0x36a)]&&(this[_0x3eda72(0x36a)]=_0x20eac1=>{const _0x32ab93=_0x3eda72,_0x37b121=_0x20eac1&&_0x20eac1[_0x32ab93(0x3c4)]!=null?_0x20eac1[_0x32ab93(0x3c4)]:null,_0x58a746=_0x37b121==null?_0x204c11[_0x32ab93(0x314)]:_0x204c11[_0x32ab93(0x6c8)][_0x32ab93(0x1bc)](_0x37b121);if(typeof _0x58a746!=='function')return;Promise['resolve']()[_0x32ab93(0x583)](()=>_0x58a746(_0x37b121))[_0x32ab93(0x583)](_0x20a66e=>this['_setKey'](_0x37b121,_0x20a66e,!![]))[_0x32ab93(0x603)](_0x1a6b91=>this['log']['error'](_0x32ab93(0x10c)+(_0x1a6b91&&_0x1a6b91[_0x32ab93(0x18d)]),{'env':_0x37b121}));},this[_0x3eda72(0x6bf)]['on'](_0x3eda72(0x212),this['_keyListener']));}[_0xa6e0f1(0x12d)](_0x72b44b,_0x4cbd03,_0x464b65){const _0xb6c8d5=_0xa6e0f1;if(_0x4cbd03==null)throw new _0x44709f(_0xb6c8d5(0x4cb)+(_0x72b44b?_0xb6c8d5(0x660)+_0x72b44b+'\x22':'')+_0xb6c8d5(0x67d),_0xb6c8d5(0x144));this['_native'][_0xb6c8d5(0x7cd)]('db',null,_0xb6c8d5(0x7bf),[_0x72b44b,_0x4cbd03,!!_0x464b65]);}async[_0xa6e0f1(0x410)](_0x44534b){const _0x52c920=_0xa6e0f1;this[_0x52c920(0x187)]();const {env:env=null,to:_0x1b6d29}=_0x5197c2(_0x44534b),_0x49c82e=typeof _0x1b6d29===_0x52c920(0x7c4),_0x412760=_0x49c82e?await _0x1b6d29(env):_0x1b6d29;if(_0x412760==null)throw _0x57beb4(_0x52c920(0x2c4),_0x52c920(0x1f4),_0x412760);const _0x247b0f=this[_0x52c920(0x722)]('db',null,_0x52c920(0x410),[env,_0x412760,_0x49c82e]);if(_0x49c82e){if(env==null)this[_0x52c920(0x1c7)][_0x52c920(0x314)]=_0x1b6d29;else this[_0x52c920(0x1c7)][_0x52c920(0x6c8)][_0x52c920(0x48c)](env,_0x1b6d29);}return _0x247b0f;}async[_0xa6e0f1(0x242)](_0x468d71){const _0xd16cf8=_0xa6e0f1;this[_0xd16cf8(0x187)]();const _0x41137c=_0x5197c2(_0x468d71);if(!_0x41137c[_0xd16cf8(0x3c4)])throw _0x57beb4('reencrypt:\x20env',_0xd16cf8(0x15e),_0x41137c[_0xd16cf8(0x3c4)]);let _0xeabfa2=_0x41137c['to'];const _0x2f1f50=typeof _0xeabfa2==='function';if(_0x2f1f50)_0xeabfa2=await _0x41137c['to'](_0x41137c[_0xd16cf8(0x3c4)]);const _0x43dee3=await this[_0xd16cf8(0x46d)](()=>this[_0xd16cf8(0x722)]('db',null,_0xd16cf8(0x242),[_0x41137c[_0xd16cf8(0x3c4)],'to'in _0x41137c?_0xeabfa2:undefined,_0x2f1f50]));if(_0x2f1f50)this[_0xd16cf8(0x1c7)][_0xd16cf8(0x6c8)][_0xd16cf8(0x48c)](_0x41137c[_0xd16cf8(0x3c4)],_0x41137c['to']);return _0x43dee3;}async[_0xa6e0f1(0x4c4)](){const _0x3dc7e7=_0xa6e0f1;if(this[_0x3dc7e7(0x1a2)]===_0x1a1e5a[_0x3dc7e7(0x3a5)])return;if(this[_0x3dc7e7(0x1a2)]!==_0x1a1e5a[_0x3dc7e7(0x673)])throw new _0x44709f('Database\x20already\x20opened/closed',_0x3dc7e7(0x206),{'state':this[_0x3dc7e7(0x1a2)]});this[_0x3dc7e7(0x1a2)]=_0x1a1e5a[_0x3dc7e7(0xd3)],this[_0x3dc7e7(0x6a1)]=[];try{try{await this[_0x3dc7e7(0x3e7)](),await this['_macro'](()=>this['_native'][_0x3dc7e7(0x4c4)]());}catch(_0x28d6ff){throw _0x501b0e(_0x28d6ff);}}catch(_0x114721){this[_0x3dc7e7(0x1a2)]=_0x1a1e5a[_0x3dc7e7(0x742)],this[_0x3dc7e7(0x6a1)]=null,this[_0x3dc7e7(0x100)]();throw _0x114721;}this['_isOpen']=!![],this['state']=_0x1a1e5a[_0x3dc7e7(0x3a5)];try{this['_call']('db',null,_0x3dc7e7(0xf0),[this[_0x3dc7e7(0x4c5)][_0x3dc7e7(0x7bb)][_0x3dc7e7(0x1d9)](_0x4a6fb2=>_0x4a6fb2[_0x3dc7e7(0x554)]?.[_0x3dc7e7(0x5e6)])[_0x3dc7e7(0x587)](Boolean)],![]),await this[_0x3dc7e7(0x4c5)]['start']();}catch(_0x5ecde9){this[_0x3dc7e7(0x1a2)]=_0x1a1e5a[_0x3dc7e7(0x525)];try{this[_0x3dc7e7(0x66d)]['close']();}catch{}this[_0x3dc7e7(0x1a2)]=_0x1a1e5a['STOPPED'],this[_0x3dc7e7(0x2ab)]=![],this[_0x3dc7e7(0x100)]();throw _0x5ecde9;}for(const _0x5d74de of this[_0x3dc7e7(0x722)]('db',null,_0x3dc7e7(0x437),[],![]))if(!_0x5d74de[_0x3dc7e7(0x217)]('~'))this[_0x3dc7e7(0x7d0)](_0x5d74de);try{if(this['_call']('db',null,_0x3dc7e7(0x12b),[_0x3dc7e7(0x3d9)],![])){this[_0x3dc7e7(0x6f3)]=this[_0x3dc7e7(0x7d0)]('~log');const _0x36fdce=new Set(this[_0x3dc7e7(0x745)]['_sinks']);this['_detachLogSink']=this[_0x3dc7e7(0x745)]['attachOKDB'](this[_0x3dc7e7(0x6f3)],this['id']);const _0x3fc253=[...this['log'][_0x3dc7e7(0x606)]][_0x3dc7e7(0x207)](_0x45b7d5=>!_0x36fdce[_0x3dc7e7(0x614)](_0x45b7d5)),_0x2d51c8=this[_0x3dc7e7(0x722)]('db',null,_0x3dc7e7(0x50f),[],![]);for(const _0x156af4 of(this[_0x3dc7e7(0x6a1)]??[])[_0x3dc7e7(0x331)](_0x2d51c8))_0x3fc253?.(_0x156af4);}}catch{}this[_0x3dc7e7(0x6a1)]=null,this[_0x3dc7e7(0x66d)]['setWake'](()=>this[_0x3dc7e7(0x6bc)]['wake']()),this[_0x3dc7e7(0x6bc)][_0x3dc7e7(0x432)]();}get[_0xa6e0f1(0x611)](){const _0x44f740=()=>{const _0x2bc735=_0x41a2;if(!this['_isOpen'])return![];for(const _0x2485c9 of this[_0x2bc735(0x722)]('db',null,_0x2bc735(0x437),[],![])){if(!_0x2485c9['startsWith']('~')&&this[_0x2bc735(0x722)]('views',_0x2485c9,_0x2bc735(0x2f2),[],![]))return!![];}return![];};return((async()=>{const _0x1f5731=_0x41a2;while(_0x44f740())await this[_0x1f5731(0x6bc)][_0x1f5731(0x519)](0xfa);})());}async['bootRuntimeDeclarations'](){const _0x3a0fa4=_0xa6e0f1;return this[_0x3a0fa4(0x22c)]('db',null,_0x3a0fa4(0x5d4),[]);}async[_0xa6e0f1(0x498)](){const _0x33a23d=_0xa6e0f1;if(this[_0x33a23d(0x1a2)]===_0x1a1e5a[_0x33a23d(0x742)])return;if(this[_0x33a23d(0x1a2)]!==_0x1a1e5a[_0x33a23d(0x3a5)])throw new _0x44709f(_0x33a23d(0x27a),'INVALID_STATE',{'state':this[_0x33a23d(0x1a2)]});this[_0x33a23d(0x1a2)]=_0x1a1e5a[_0x33a23d(0x525)],this[_0x33a23d(0x2ab)]=![];let _0x5b4bdb=null;if(this['http'][_0x33a23d(0x5b7)][_0x33a23d(0x2a9)])try{await this[_0x33a23d(0x1c8)][_0x33a23d(0x498)]();}catch(_0x38bf24){_0x5b4bdb=_0x38bf24;}if(this['__adminRelay']){try{this['__adminRelay']['detachFeed'](),this[_0x33a23d(0x244)][_0x33a23d(0x62a)]();}catch{}this[_0x33a23d(0x244)]=null;}try{this[_0x33a23d(0x1ca)]?.[_0x33a23d(0x4ff)]?.();}catch{}try{await this['plugins']['stop']();}catch(_0x367cce){_0x5b4bdb=_0x367cce;}for(const _0x801b8c of[...Map[_0x33a23d(0x34d)]['values'][_0x33a23d(0x7cd)](this[_0x33a23d(0x446)])]){try{await _0x801b8c['processor'][_0x33a23d(0xc6)]();}catch{}try{await _0x801b8c[_0x33a23d(0x7bc)][_0x33a23d(0x4ff)]();}catch{}}for(const _0x1052b4 of[()=>this[_0x33a23d(0x776)][_0x33a23d(0x4ff)](),()=>this[_0x33a23d(0x1e7)][_0x33a23d(0x4ff)](),()=>this[_0x33a23d(0x448)]&&this[_0x33a23d(0x448)][_0x33a23d(0x4ff)]?.()]){try{await _0x1052b4();}catch{}}const _0x541bcf=this[_0x33a23d(0x2f0)][_0x33a23d(0x70c)]??0x7530,_0x490a98=[];for(const _0x447496 of[...Map['prototype']['values'][_0x33a23d(0x7cd)](this[_0x33a23d(0x446)])]){if(_0x447496[_0x33a23d(0x4f3)]?.['_workers']?.[_0x33a23d(0x74f)]>0x0)_0x490a98['push'](_0x447496[_0x33a23d(0x4f3)][_0x33a23d(0xc6)](_0x541bcf));}if(_0x490a98['length']>0x0)await Promise[_0x33a23d(0x6cb)](_0x490a98);try{this[_0x33a23d(0x489)]?.();}catch{}this[_0x33a23d(0x489)]=null;try{await this['_wb']['drain']();}catch{}this['_pumper'][_0x33a23d(0x4ff)]();try{await this[_0x33a23d(0x46d)](()=>this['_native'][_0x33a23d(0x498)]());}catch(_0xd45313){_0x5b4bdb=_0x5b4bdb||_0x501b0e(_0xd45313);}this[_0x33a23d(0x1a2)]=_0x1a1e5a['STOPPED'],this[_0x33a23d(0x100)](),Map[_0x33a23d(0x34d)]['clear'][_0x33a23d(0x7cd)](this[_0x33a23d(0x446)]);if(_0x5b4bdb)throw _0x5b4bdb;}['_teardownNative'](){const _0x3dd3be=_0xa6e0f1;this['_pumper'][_0x3dd3be(0x4ff)]();try{this[_0x3dd3be(0x66d)]['setWake'](null);}catch{}try{this[_0x3dd3be(0x66d)]['release']();}catch{}this[_0x3dd3be(0x375)]=null,this[_0x3dd3be(0x21e)]=null,this['_tids']=null,_0x337fe4[_0x3dd3be(0x278)](this['_key']),_0x337fe4[_0x3dd3be(0x2e3)](this),_0x466f3b[_0x3dd3be(0x7ec)](this[_0x3dd3be(0x164)]);if(_0x337fe4[_0x3dd3be(0x7aa)](this)){const _0x5122ce=[..._0x466f3b[_0x3dd3be(0x4ee)]()][_0x3dd3be(0x71e)]();if(_0x5122ce)_0x337fe4[_0x3dd3be(0x38d)](()=>_0x5122ce[_0x3dd3be(0x6bc)][_0x3dd3be(0x4c1)](),_0x5122ce);else _0x337fe4[_0x3dd3be(0x38d)](()=>{},null);}}get['id'](){const _0x48f11a=_0xa6e0f1;return this[_0x48f11a(0x722)]('db',null,'id',[],![]);}[_0xa6e0f1(0x551)](_0x2687f0){const _0x294a83=_0xa6e0f1;return this['env'](_0x294a83(0x686))['_advanceHlcOnRecv'](_0x2687f0);}get['_tokenSecret'](){const _0x18f2fe=_0xa6e0f1;return this[_0x18f2fe(0x355)][_0x18f2fe(0x1bc)](_0x18f2fe(0x697));}get['_nodePrivateKey'](){const _0xc7c861=_0xa6e0f1;return this[_0xc7c861(0x776)][_0xc7c861(0x29f)];}get[_0xa6e0f1(0x597)](){const _0x46d84a=_0xa6e0f1;return this[_0x46d84a(0x776)][_0x46d84a(0x597)];}get[_0xa6e0f1(0x464)](){const _0x56b8cd=_0xa6e0f1;if(!this[_0x56b8cd(0x2ab)]||!this['_call']('db',null,_0x56b8cd(0x341),[],![]))return undefined;if(!this[_0x56b8cd(0x69c)]){const _0x1f77c4=requireOkdbSubscriptionsStore(),_0xad9234=new _0x1f77c4(this,this[_0x56b8cd(0x2f0)]&&this[_0x56b8cd(0x2f0)][_0x56b8cd(0xdf)]);_0xad9234['_sub']=this[_0x56b8cd(0x3c4)](_0x56b8cd(0x148));const {compileFilter:_0x5892e0}=requireOkdbQueryFilter(),_0x5cd113=(_0xf9845f,_0x3b38ea)=>{if(_0xf9845f==null)return![];try{return _0x5892e0(_0xf9845f)(_0x3b38ea);}catch{return![];}};this[_0x56b8cd(0x69c)]={'store':_0xad9234,'router':{'_matches':_0x5cd113}};}return this[_0x56b8cd(0x69c)];}get[_0xa6e0f1(0x188)](){return this['role'];}get[_0xa6e0f1(0x250)](){const _0x31bbd5=_0xa6e0f1;return this[_0x31bbd5(0x722)]('db',null,_0x31bbd5(0x250),[],![]);}get[_0xa6e0f1(0x491)](){const _0x58bbac=_0xa6e0f1;return{...this[_0x58bbac(0x722)]('db',null,_0x58bbac(0x491),[],![])};}get[_0xa6e0f1(0x3a1)](){const _0x2b7e9a=_0xa6e0f1;return require$$29[_0x2b7e9a(0x3a1)];}get[_0xa6e0f1(0x6d4)](){return this['_call']('db',null,'quarantined',[],![]);}get['info'](){const _0x35a9a1=_0xa6e0f1;return this['_call']('db',null,_0x35a9a1(0xd5),[],![]);}[_0xa6e0f1(0x1a5)](){const _0xc140bc=_0xa6e0f1;return this[_0xc140bc(0x722)]('db',null,_0xc140bc(0x7cc),[],![]);}[_0xa6e0f1(0x126)](){const _0x388671=_0xa6e0f1;return this[_0x388671(0x722)]('db',null,_0x388671(0x126),[],![]);}async[_0xa6e0f1(0x409)](_0x3ec245){const _0x280c6d=_0xa6e0f1;this[_0x280c6d(0x187)](),this['_call']('db',null,_0x280c6d(0x409),[_0x3ec245],![]);}[_0xa6e0f1(0x442)](){const _0x2c213c=_0xa6e0f1,_0x4fc1fc=Date[_0x2c213c(0x772)]();if(this[_0x2c213c(0x123)]&&_0x4fc1fc-this[_0x2c213c(0x123)]['at']<0xfa)return this['_pressure']['value'];const _0x4e36d3=this[_0x2c213c(0x722)]('db',null,_0x2c213c(0x442),[],![]);return this[_0x2c213c(0x123)]={'at':_0x4fc1fc,'value':_0x4e36d3},_0x4e36d3;}[_0xa6e0f1(0x187)](){const _0x3ddb0d=_0xa6e0f1;if(!this[_0x3ddb0d(0x2ab)])throw new _0x44709f(_0x3ddb0d(0x27a),_0x3ddb0d(0x206),{'state':this['state']});}get['bus'](){const _0x44876b=_0xa6e0f1;if(this['state']===_0x1a1e5a[_0x44876b(0x742)]||!this[_0x44876b(0x2ab)])return null;if(this['_call']('db',null,_0x44876b(0x4ea),[],![])==null)return null;if(!this[_0x44876b(0x73c)]){const _0x252259=this;this[_0x44876b(0x73c)]={get 'state'(){const _0x44e9ae=_0x44876b;return _0x252259[_0x44e9ae(0x722)]('db',null,_0x44e9ae(0x4ea),[],![]);},get 'magic'(){const _0xf57d70=_0x44876b;return Buffer[_0xf57d70(0x295)](_0xf57d70(0x477)+_0x252259['id']);},get 'isRunning'(){const _0x129af9=_0x44876b;return _0x252259[_0x129af9(0x722)]('db',null,_0x129af9(0x4ea),[],![])===_0x129af9(0x6ec);},'emit'(_0x31cf42,_0x13903f=''){_0x252259['_call']('db',null,'busEmit',[_0x31cf42,String(_0x13903f)],![]);}};}return this['_busFacade'];}['_emitProc'](_0x1848b3,_0x284818){const _0xc0285e=_0xa6e0f1;this[_0xc0285e(0x5a4)]?.['emit'](_0xc0285e(0x39d),JSON['stringify']({'kind':'reconcile','scope':_0x1848b3,'key':_0x284818}));}get[_0xa6e0f1(0x5a1)](){const _0x5548a6=_0xa6e0f1;return this[_0x5548a6(0x288)]||(this['_locks']=new(requireLock())['NativeLock'](this,_0x5548a6(0xfb),_0x5548a6(0x79f)));}get['_rootDb'](){const _0x5b4155=_0xa6e0f1;return this['_systemEnv']?this[_0x5b4155(0x508)]['db']:undefined;}get[_0xa6e0f1(0x4aa)](){const _0xd14970=_0xa6e0f1,_0xe17844=this[_0xd14970(0x508)]?.[_0xd14970(0xf8)];if(!_0xe17844)return null;const _0x8b62d=_0xe17844[_0xd14970(0x58d)]()[_0xd14970(0x207)](_0x2c8ed8=>_0x2c8ed8[_0xd14970(0x7a9)]?.[_0xd14970(0x5e6)]==='system:env-sync');return _0x8b62d?_0xe17844[_0xd14970(0x601)](_0x8b62d['id'],_0x8b62d['cursorKey']):null;}get['_systemEnv'](){const _0x3c36f3=_0xa6e0f1;return this[_0x3c36f3(0x2ab)]?this['_envs'][_0x3c36f3(0x1bc)](_0x3c36f3(0xfb)):undefined;}[_0xa6e0f1(0x7d0)](_0x407175){const _0x277609=_0xa6e0f1;let _0x5c47cb=Map[_0x277609(0x34d)][_0x277609(0x1bc)]['call'](this[_0x277609(0x446)],_0x407175);if(!_0x5c47cb){_0x5c47cb=new _0x3b84bf(this,_0x407175),Map['prototype'][_0x277609(0x48c)][_0x277609(0x7cd)](this[_0x277609(0x446)],_0x407175,_0x5c47cb);if(_0x407175===_0x277609(0x686))this[_0x277609(0x4e1)]=_0x5c47cb;}return _0x5c47cb;}[_0xa6e0f1(0x3c4)](_0x51c22e='default'){const _0x2aa685=_0xa6e0f1,_0x456087=this[_0x2aa685(0x446)][_0x2aa685(0x1bc)](_0x51c22e);if(_0x456087)return _0x456087;if(this['_isOpen']&&this[_0x2aa685(0x722)]('db',null,_0x2aa685(0x12b),[_0x51c22e],![]))return this[_0x2aa685(0x7d0)](_0x51c22e);throw new _0x44709f('Environment\x20\x22'+_0x51c22e+_0x2aa685(0x1d7),'ENV_NOT_FOUND');}get[_0xa6e0f1(0x686)](){const _0x3045b8=_0xa6e0f1;return this['env'](_0x3045b8(0x686));}get[_0xa6e0f1(0x377)](){const _0x656e71=_0xa6e0f1;return this[_0x656e71(0x446)][_0x656e71(0x1bc)](_0x656e71(0x686))??this[_0x656e71(0x4e1)];}get[_0xa6e0f1(0x253)](){const _0x4959ad=_0xa6e0f1;return this['_defaultEnv'][_0x4959ad(0x253)];}get['queue'](){const _0x41fa24=_0xa6e0f1;return this[_0x41fa24(0x377)]['queue'];}['_timerHandle'](_0xe5db7){const _0xada0aa=_0xa6e0f1;if(!this[_0xada0aa(0x2ab)])return null;return this[_0xada0aa(0x722)]('db',null,_0xada0aa(0x61e),[_0xe5db7],![])?{'ref'(){},'unref'(){}}:null;}get[_0xa6e0f1(0x7e1)](){const _0x12b046=_0xa6e0f1;return this[_0x12b046(0x5ac)](_0x12b046(0x4a6));}[_0xa6e0f1(0x145)](){const _0x1b8781=_0xa6e0f1;return this[_0x1b8781(0x722)]('db',null,_0x1b8781(0x7c2),[],!![]);}get[_0xa6e0f1(0x2dc)](){const _0x258bc1=_0xa6e0f1;return this[_0x258bc1(0x5ac)](_0x258bc1(0x586));}get[_0xa6e0f1(0x6bb)](){const _0x217398=_0xa6e0f1;return this['_timerHandle'](_0x217398(0x74e));}get[_0xa6e0f1(0xd9)](){const _0x551d50=_0xa6e0f1;return this[_0x551d50(0x3c4)](_0x551d50(0x686))['_hlc'];}get[_0xa6e0f1(0x719)](){const _0x4eef6e=_0xa6e0f1;throw new _0x44709f(_0x4eef6e(0x328),_0x4eef6e(0x1de));}get[_0xa6e0f1(0xf8)](){const _0x42eaac=_0xa6e0f1;return this[_0x42eaac(0x377)]['processor'];}get[_0xa6e0f1(0x7a3)](){const _0x58aaa1=_0xa6e0f1;return this[_0x58aaa1(0x377)][_0x58aaa1(0x7a3)];}async[_0xa6e0f1(0x729)](_0x4cf16a,_0x34cc7c={}){const _0x1e2520=_0xa6e0f1;this[_0x1e2520(0x187)]();if(_0x34cc7c&&typeof _0x34cc7c['encryptionKey']===_0x1e2520(0x7c4)){const _0x27cdab=_0x34cc7c[_0x1e2520(0x35a)];this[_0x1e2520(0x12d)](_0x4cf16a,await _0x27cdab(_0x4cf16a),!![]),this[_0x1e2520(0x1c7)]['envs'][_0x1e2520(0x48c)](_0x4cf16a,_0x27cdab),_0x34cc7c={..._0x34cc7c,'encryptionKey':!![]};}return this['_call']('db',null,_0x1e2520(0x729),[_0x4cf16a,_0x34cc7c]),this[_0x1e2520(0x7d0)](_0x4cf16a);}async[_0xa6e0f1(0x20d)](_0x42b799){const _0x20883d=_0xa6e0f1;if(!this['_isOpen'])throw new _0x44709f('Cannot\x20openEnv(\x22'+_0x42b799+_0x20883d(0x652),_0x20883d(0x206));return this['_call']('db',null,'openEnv',[_0x42b799]),this[_0x20883d(0x7d0)](_0x42b799);}get[_0xa6e0f1(0x128)](){const _0x3f1807=_0xa6e0f1;if(!this['__adminRelay']&&this[_0x3f1807(0x2ab)]){const _0x11dae3=requireOkdbRelay(),_0x4279a7=new _0x11dae3(this,this['options']?.['admin']?.[_0x3f1807(0x214)]??{});_0x4279a7[_0x3f1807(0x131)](),_0x4279a7[_0x3f1807(0x78c)]=!![],this[_0x3f1807(0x244)]=_0x4279a7;}return this[_0x3f1807(0x244)]??null;}set[_0xa6e0f1(0x128)](_0x11b1ad){this['__adminRelay']=_0x11b1ad;}get[_0xa6e0f1(0x6c2)](){const _0x7a7a0c=_0xa6e0f1;let _0x3640ae=0x0;if(this[_0x7a7a0c(0x2ab)])for(const [_0x524429]of Map['prototype'][_0x7a7a0c(0x2d3)][_0x7a7a0c(0x7cd)](this[_0x7a7a0c(0x446)])){try{_0x3640ae+=this[_0x7a7a0c(0x722)]('proc',_0x524429,'gateQuanta',[],![])||0x0;}catch{}}return{'total':_0x3640ae,'maxObserved':_0x3640ae>0x0?0x1:0x0,'inFlight':0x0};}async[_0xa6e0f1(0x7e8)](_0x127b66){const _0x2f6b3f=_0xa6e0f1,_0x4ace05=this[_0x2f6b3f(0x446)][_0x2f6b3f(0x1bc)](_0x127b66);if(_0x4ace05)return _0x4ace05;if(!this[_0x2f6b3f(0x722)]('db',null,_0x2f6b3f(0x12b),[_0x127b66],![]))throw new Error(_0x2f6b3f(0x746)+_0x127b66+_0x2f6b3f(0x74d));return this['openEnv'](_0x127b66);}async[_0xa6e0f1(0xd6)](_0x3d55c3){const _0x27eba3=_0xa6e0f1,_0x4aad2e=this[_0x27eba3(0x722)]('db',null,_0x27eba3(0x2d0),[_0x3d55c3]);return this[_0x27eba3(0x446)]['delete'](_0x3d55c3),_0x4aad2e;}async[_0xa6e0f1(0x68d)](_0x51b136,_0x30ac99={}){const _0x43828b=_0xa6e0f1;this[_0x43828b(0x187)]();const _0x4d0cfb=this[_0x43828b(0x722)]('db',null,_0x43828b(0x68d),[_0x51b136,_0x30ac99]);return this[_0x43828b(0x446)]['delete'](_0x51b136),_0x4d0cfb;}static get[_0xa6e0f1(0x19a)](){const _0x444d02=_0xa6e0f1;return _0x150068[_0x444d02(0x19a)];}static get['KNOWN_OPTIONS'](){return _0x150068['KNOWN_OPTIONS'];}static get['_OPTION_HINTS'](){const _0x265a22=_0xa6e0f1;return _0x150068[_0x265a22(0x672)];}static async[_0xa6e0f1(0xf6)](_0x5b560a,_0x5cf814){return _0x546473('db','clone',[_0x5b560a,_0x5cf814]);}static[_0xa6e0f1(0x6da)](_0x3b38fe){return _0x546473('db','reidentify',[_0x3b38fe]);}static['registerBucketProjection'](_0x34db93,_0x42e26d){const _0x435fe7=_0xa6e0f1;_0x546473(_0x435fe7(0x7a3),'registerBucketProjection',[_0x34db93,_0x42e26d]);}static[_0xa6e0f1(0x1aa)](_0x386770,_0xdb474d){const _0x3edc35=_0xa6e0f1;_0x546473(_0x3edc35(0x7a3),_0x3edc35(0x1aa),[_0x386770,_0xdb474d]);}static[_0xa6e0f1(0x7da)](){}['equal'](_0x59094b,_0x324d08){const _0x2362a5=_0xa6e0f1;return require$$16[_0x2362a5(0x5b2)](_0x59094b,_0x324d08);}}_0x5c3f5d['HIGH_SENTINEL']=_0x167762,Object[_0xa6e0f1(0x332)](_0x5c3f5d,'_unknownOptionsWarned',{'get'(){const _0x23908f=_0xa6e0f1;return _0x5c3f5d[_0x23908f(0x24e)]||(_0x5c3f5d[_0x23908f(0x24e)]=new Set());},'set'(_0xabc05c){const _0x542b8b=_0xa6e0f1;_0x5c3f5d[_0x542b8b(0x24e)]=_0xabc05c;try{_0x546473('db','resetUnknownOptionsWarned',[]);}catch{}},'configurable':!![]});for(const _0x196b52 of[_0xa6e0f1(0x241),'txn',_0xa6e0f1(0x59b),'update',_0xa6e0f1(0x3fb),'create',_0xa6e0f1(0x4d2),_0xa6e0f1(0x1bc),_0xa6e0f1(0x63b),_0xa6e0f1(0x153),_0xa6e0f1(0x1bd),_0xa6e0f1(0x4dd),_0xa6e0f1(0x677),'getCount','getByPrefix',_0xa6e0f1(0x655),'byIndex',_0xa6e0f1(0x22b),_0xa6e0f1(0x787),_0xa6e0f1(0x204),'ftsQuery',_0xa6e0f1(0x735),_0xa6e0f1(0x5f2),_0xa6e0f1(0x3fa),_0xa6e0f1(0x476),_0xa6e0f1(0x2c9),_0xa6e0f1(0x1bb),_0xa6e0f1(0x58a),_0xa6e0f1(0x5fe),_0xa6e0f1(0x61c),_0xa6e0f1(0x480),'indexReady',_0xa6e0f1(0x76e),_0xa6e0f1(0x361),_0xa6e0f1(0x135),_0xa6e0f1(0x78e),_0xa6e0f1(0x41d),_0xa6e0f1(0xe4),'setTTL',_0xa6e0f1(0xbf),_0xa6e0f1(0x272),_0xa6e0f1(0xcf),'listTTL',_0xa6e0f1(0xec),_0xa6e0f1(0x2aa),_0xa6e0f1(0x5d1),_0xa6e0f1(0x71d),_0xa6e0f1(0x70b),_0xa6e0f1(0x65f),_0xa6e0f1(0x772)]){_0x5c3f5d['prototype'][_0x196b52]=function(..._0x16dba2){const _0x2c8c57=_0xa6e0f1,_0x3ac2f3=this[_0x2c8c57(0x3c4)](_0x2c8c57(0x686));return _0x3ac2f3[_0x196b52](..._0x16dba2);};}function _0x1b2906(_0x5301a0){const _0x4a6eb4=_0xa6e0f1,_0xb7cee2=_0x8c0818=>()=>{const _0x5abcaa=_0x41a2;throw new Error(_0x5abcaa(0x6f5)+_0x8c0818+_0x5abcaa(0x2ec));};return{'process':_0xb7cee2(_0x4a6eb4(0x370)),'processRest':_0xb7cee2(_0x4a6eb4(0x2b9)),'processEverything':_0xb7cee2(_0x4a6eb4(0x1f7)),async 'start'(){const _0x2ee3c2=_0x4a6eb4;return _0x5301a0[_0x2ee3c2(0x722)]('db',null,'processorsStart',[]);},async 'stop'(){const _0x84f12f=_0x4a6eb4;return _0x5301a0[_0x84f12f(0x722)]('db',null,_0x84f12f(0x103),[]);},'status'(){const _0x3b6ef8=_0x4a6eb4;return _0x5301a0['_call']('db',null,_0x3b6ef8(0x1c5),[],![]);},get 'participating'(){const _0x5304d7=_0x4a6eb4;return _0x5301a0[_0x5304d7(0x722)]('db',null,_0x5304d7(0x699),[],![]);},get '_participate'(){const _0x13544c=_0x4a6eb4;return _0x5301a0[_0x13544c(0x722)]('db',null,_0x13544c(0x699),[],![]);}};}function _0x546473(_0x8f7638,_0x39e7db,_0x43f148){const _0x5f46a2=_0xa6e0f1;_0x3c5c78();try{return _0x44fdcd()[_0x5f46a2(0x5b1)](_0x8f7638,_0x39e7db,_0x43f148);}catch(_0x1c888b){throw _0x501b0e(_0x1c888b);}}_0x461709[_0xa6e0f1(0x1ad)]=_0x5c3f5d,_0x461709['exports'][_0xa6e0f1(0x5dd)]=_0x546473,_0x461709[_0xa6e0f1(0x1ad)][_0xa6e0f1(0x421)]=_0x5c3f5d,_0x461709[_0xa6e0f1(0x1ad)][_0xa6e0f1(0x1be)]=_0x167762,_0x461709[_0xa6e0f1(0x1ad)][_0xa6e0f1(0x686)]=_0x5c3f5d,Object['defineProperty'](_0x461709[_0xa6e0f1(0x1ad)],'nativeBinaryPath',{'get':()=>require$$1$1[_0xa6e0f1(0x3c1)]?.()??null,'enumerable':![],'configurable':!![]});}(lib),lib[_0x3070f3(0x1ad)];}var libExports=requireLib(),index=getDefaultExportFromCjs(libExports);module[_0x431d06(0x1ad)]=index;
|