@kedem/okdb 3.1.4 → 3.1.5

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 _0x2ec26e=_0x3ebb;(function(_0x2d30ab,_0x572eb5){const _0x278fc5=_0x3ebb,_0x88fac0=_0x2d30ab();while(!![]){try{const _0x205662=-parseInt(_0x278fc5(0x1f8))/0x1+-parseInt(_0x278fc5(0x24e))/0x2+parseInt(_0x278fc5(0x241))/0x3+parseInt(_0x278fc5(0x2cb))/0x4*(parseInt(_0x278fc5(0x4a9))/0x5)+-parseInt(_0x278fc5(0x6a7))/0x6*(-parseInt(_0x278fc5(0x61c))/0x7)+-parseInt(_0x278fc5(0x6ab))/0x8+parseInt(_0x278fc5(0x800))/0x9;if(_0x205662===_0x572eb5)break;else _0x88fac0['push'](_0x88fac0['shift']());}catch(_0x49d254){_0x88fac0['push'](_0x88fac0['shift']());}}}(_0x1561,0xf3dd2));var require$$0$6=require(_0x2ec26e(0x5a0)),require$$1$1=require('./native-loader.js'),require$$0=require(_0x2ec26e(0x68a)),require$$1=require(_0x2ec26e(0x5c2)),require$$4=require('node:path'),require$$0$2=require(_0x2ec26e(0x5d6)),require$$0$1=require(_0x2ec26e(0x46f)),require$$16=require(_0x2ec26e(0x488)),require$$0$3=require('node:http'),require$$2=require('node:cluster'),require$$18=require(_0x2ec26e(0x668)),require$$0$4=require(_0x2ec26e(0x83d)),require$$0$5=require('sift');function getDefaultExportFromCjs(_0x29af9a){const _0x545d95=_0x2ec26e;return _0x29af9a&&_0x29af9a['__esModule']&&Object[_0x545d95(0x455)][_0x545d95(0x5a6)][_0x545d95(0x853)](_0x29af9a,_0x545d95(0x822))?_0x29af9a['default']:_0x29af9a;}var lib={'exports':{}},okdbError,hasRequiredOkdbError;function requireOkdbError(){if(hasRequiredOkdbError)return okdbError;hasRequiredOkdbError=0x1;class _0x2bcdaa extends Error{constructor(_0x4ad01f,_0x175492,_0x29083f={}){const _0x10f21b=_0x3ebb;super(_0x4ad01f),this[_0x10f21b(0x6fe)]=_0x10f21b(0x420),this[_0x10f21b(0x748)]=_0x175492,this[_0x10f21b(0x79f)]=_0x29083f,_0x29083f['cause']&&(this['cause']=_0x29083f[_0x10f21b(0x35c)]),Error[_0x10f21b(0x299)](this,this[_0x10f21b(0x609)]);}}class _0x39e557 extends _0x2bcdaa{constructor(_0x363e16,_0x439eec,_0x1e3e5b,_0x45d5a4){const _0x4cc011=_0x3ebb;super('Version\x20mismatch\x20for\x20'+_0x363e16+'@'+_0x439eec+_0x4cc011(0x43e)+_0x1e3e5b+_0x4cc011(0x464)+_0x45d5a4,_0x4cc011(0x17b),{'type':_0x363e16,'key':_0x439eec,'expectedVersion':_0x1e3e5b,'actualVersion':_0x45d5a4}),this[_0x4cc011(0x6fe)]=_0x4cc011(0x26e);}}class _0x4b94b2 extends _0x2bcdaa{constructor(_0x1c5bdf,_0x33b3b9){const _0x51968e=_0x3ebb;super(_0x1c5bdf+'@'+_0x33b3b9+_0x51968e(0x7e6),_0x51968e(0x4cd),{'type':_0x1c5bdf,'key':_0x33b3b9}),this[_0x51968e(0x6fe)]=_0x51968e(0x19c);}}class _0x85077d extends _0x2bcdaa{constructor(_0x3c44a2,_0x4a662){const _0x45fa17=_0x3ebb;super(_0x3c44a2+'@'+_0x4a662+_0x45fa17(0x634),'ALREADY_EXISTS',{'type':_0x3c44a2,'key':_0x4a662}),this['name']='OKDBAlreadyExistsError';}}class _0x1845f2 extends _0x2bcdaa{constructor(_0x1f26d0,_0x3af53c){const _0x471a97=_0x3ebb,_0x268dca=typeof _0x3af53c;super('Invalid\x20index\x20key\x20type\x20for\x20\x27'+_0x1f26d0+_0x471a97(0x7ed)+_0x268dca+_0x471a97(0x260)+_0x3af53c,_0x471a97(0x7bf),{'index':_0x1f26d0,'key':_0x3af53c,'keyType':_0x268dca}),this['name']='OKDBInvalidIndexKeyError';}}class _0x3abb9d extends _0x2bcdaa{constructor(_0x284046){const _0x525064=_0x3ebb,_0x488e43=typeof _0x284046;super('Invalid\x20primary\x20key\x20type:\x20'+_0x488e43+'.\x20Primary\x20keys\x20must\x20be\x20string\x20or\x20number.\x20Got:\x20'+_0x284046,_0x525064(0x787),{'key':_0x284046,'keyType':_0x488e43}),this[_0x525064(0x6fe)]=_0x525064(0x889);}}class _0x3d8088 extends _0x2bcdaa{constructor(_0x3c386f){const _0x340827=_0x3ebb;super('Type\x20\x27'+_0x3c386f+_0x340827(0x1df),_0x340827(0x249),{'type':_0x3c386f}),this[_0x340827(0x6fe)]=_0x340827(0x5b2);}}class _0x376efd extends _0x2bcdaa{constructor(_0x596b10){const _0x8e2a6e=_0x3ebb;super(_0x8e2a6e(0x5a7)+_0x596b10+_0x8e2a6e(0x6d5),_0x8e2a6e(0x693),{'type':_0x596b10}),this[_0x8e2a6e(0x6fe)]='OKDBTypeAlreadyRegisteredError';}}class _0x4e67be extends _0x2bcdaa{constructor(_0x33b047,_0x9091a5){const _0x40557d=_0x3ebb;super(_0x40557d(0x4c3)+_0x9091a5+_0x40557d(0x22f)+_0x33b047+_0x40557d(0x1df),_0x40557d(0x841),{'type':_0x33b047,'index':_0x9091a5}),this[_0x40557d(0x6fe)]=_0x40557d(0x71b);}}class _0x326be2 extends _0x2bcdaa{constructor(_0xcdb2d2,_0x2282ef){const _0x3b2c1b=_0x3ebb;super(_0x3b2c1b(0x4c3)+_0x2282ef+_0x3b2c1b(0x22f)+_0xcdb2d2+_0x3b2c1b(0x192),_0x3b2c1b(0x850),{'type':_0xcdb2d2,'index':_0x2282ef}),this['name']=_0x3b2c1b(0x670);}}class _0x176cef extends _0x2bcdaa{constructor(_0x4d3e7a,_0x39de21={}){const _0x4104fe=_0x3ebb;super(_0x4d3e7a,_0x4104fe(0x716),_0x39de21),this['name']=_0x4104fe(0x62d);}}class _0x20f7a8 extends _0x2bcdaa{constructor(_0x2c9e40,_0x26f097,_0x1bde76,_0x460e39,_0x41fb29){const _0x2c90ef=_0x3ebb;super(_0x2c90ef(0x3e9)+_0x2c9e40+'@'+_0x26f097+_0x2c90ef(0x411)+_0x1bde76+_0x2c90ef(0x899)+_0x460e39+_0x2c90ef(0x3de)+_0x41fb29+'\x27','UNIQUE_CONSTRAINT',{'type':_0x2c9e40,'index':_0x26f097,'indexKey':_0x1bde76,'existingKey':_0x460e39,'conflictingKey':_0x41fb29}),this[_0x2c90ef(0x6fe)]=_0x2c90ef(0x418);}}class _0x46237f extends _0x2bcdaa{constructor(_0x294fef,_0x506446,_0x2d5b15){const _0x1c03fe=_0x3ebb;super('Schema\x20validation\x20failed\x20for\x20'+_0x294fef+'@'+_0x506446,'SCHEMA_VALIDATION_FAILED',{'type':_0x294fef,'key':_0x506446,'errors':_0x2d5b15}),this[_0x1c03fe(0x6fe)]=_0x1c03fe(0x323),this[_0x1c03fe(0x673)]=_0x294fef,this['key']=_0x506446,this[_0x1c03fe(0x278)]=_0x2d5b15;}}class _0x3e91b9 extends _0x2bcdaa{constructor(_0x2610c4,_0x3c9f95){const _0x5a8dd3=_0x3ebb;super(_0x5a8dd3(0x6ff)+_0x2610c4+':\x20'+_0x3c9f95[_0x5a8dd3(0x6cf)]+_0x5a8dd3(0x85e),_0x5a8dd3(0x1aa),{'type':_0x2610c4,'failures':_0x3c9f95}),this['name']='OKDBSchemaCollectionError',this['type']=_0x2610c4,this['failures']=_0x3c9f95;}}class _0x242e51 extends _0x2bcdaa{constructor(_0x1910ab,_0x49d85b,_0x52609c,_0x3693c4,_0x402ff5){const _0x504ef4=_0x3ebb;super('Foreign\x20key\x20violation:\x20'+_0x1910ab+'@'+_0x49d85b+'.'+_0x52609c+_0x504ef4(0x4d6)+_0x3693c4+'@'+_0x402ff5+_0x504ef4(0x70b),_0x504ef4(0x3d6),{'sourceType':_0x1910ab,'sourceKey':_0x49d85b,'fieldPath':_0x52609c,'targetType':_0x3693c4,'targetKey':_0x402ff5}),this[_0x504ef4(0x6fe)]=_0x504ef4(0x57f),this[_0x504ef4(0x4ab)]=_0x1910ab,this[_0x504ef4(0x514)]=_0x49d85b,this['fieldPath']=_0x52609c,this['targetType']=_0x3693c4,this[_0x504ef4(0x768)]=_0x402ff5;}}class _0x469012 extends _0x2bcdaa{constructor(_0x27f6b4,_0x5db2dc,_0x4685ea){const _0x533b97=_0x3ebb;super(_0x533b97(0x198)+_0x27f6b4+'@'+_0x5db2dc+':\x20'+_0x4685ea['length']+_0x533b97(0x774),_0x533b97(0x5d7),{'targetType':_0x27f6b4,'targetKey':_0x5db2dc,'references':_0x4685ea}),this[_0x533b97(0x6fe)]=_0x533b97(0x7cc),this[_0x533b97(0x749)]=_0x27f6b4,this[_0x533b97(0x768)]=_0x5db2dc,this[_0x533b97(0x54c)]=_0x4685ea;}}class _0x5f4ed7 extends _0x2bcdaa{constructor(_0x3ebc1,_0x1d8d21,_0x167aa8){const _0x1ebb2a=_0x3ebb;super(_0x1ebb2a(0x7dd)+_0x1d8d21+_0x1ebb2a(0x5ba)+_0x3ebc1+_0x1ebb2a(0x564)+_0x167aa8[_0x1ebb2a(0x1a7)](_0x3eeeb1=>_0x3eeeb1[_0x1ebb2a(0x233)]+':'+_0x3eeeb1[_0x1ebb2a(0x6fe)])[_0x1ebb2a(0x3d2)](',\x20'),'INDEX_HAS_CONSUMERS',{'type':_0x3ebc1,'index':_0x1d8d21,'usedBy':_0x167aa8}),this[_0x1ebb2a(0x6fe)]='OKDBIndexHasConsumersError';}}return okdbError={'OKDBError':_0x2bcdaa,'OKDBVersionMismatchError':_0x39e557,'OKDBNotFoundError':_0x4b94b2,'OKDBAlreadyExistsError':_0x85077d,'OKDBInvalidIndexKeyError':_0x1845f2,'OKDBInvalidPrimaryKeyError':_0x3abb9d,'OKDBTypeNotRegisteredError':_0x3d8088,'OKDBTypeAlreadyRegisteredError':_0x376efd,'OKDBIndexNotRegisteredError':_0x4e67be,'OKDBIndexAlreadyRegisteredError':_0x326be2,'OKDBInvalidValueError':_0x176cef,'OKDBUniqueConstraintError':_0x20f7a8,'OKDBSchemaValidationError':_0x46237f,'OKDBSchemaCollectionError':_0x3e91b9,'OKDBForeignKeyError':_0x242e51,'OKDBForeignKeyDeleteError':_0x469012,'OKDBIndexHasConsumersError':_0x5f4ed7},okdbError;}var errors,hasRequiredErrors;function requireErrors(){const _0x1bac9f=_0x2ec26e;if(hasRequiredErrors)return errors;hasRequiredErrors=0x1;const _0x3aec48=requireOkdbError(),_0x1d34ee={'VERSION_MISMATCH':_0x3aec48['OKDBVersionMismatchError'],'NOT_FOUND':_0x3aec48[_0x1bac9f(0x19c)],'ALREADY_EXISTS':_0x3aec48[_0x1bac9f(0x848)],'INVALID_INDEX_KEY':_0x3aec48[_0x1bac9f(0x570)],'INVALID_PRIMARY_KEY':_0x3aec48[_0x1bac9f(0x889)],'TYPE_NOT_REGISTERED':_0x3aec48[_0x1bac9f(0x5b2)],'TYPE_ALREADY_REGISTERED':_0x3aec48[_0x1bac9f(0x2a5)],'INDEX_NOT_REGISTERED':_0x3aec48['OKDBIndexNotRegisteredError'],'INDEX_ALREADY_REGISTERED':_0x3aec48['OKDBIndexAlreadyRegisteredError'],'INVALID_VALUE':_0x3aec48[_0x1bac9f(0x62d)],'UNIQUE_CONSTRAINT':_0x3aec48[_0x1bac9f(0x418)],'SCHEMA_VALIDATION_FAILED':_0x3aec48[_0x1bac9f(0x323)],'SCHEMA_COLLECTION_INVALID':_0x3aec48['OKDBSchemaCollectionError'],'FOREIGN_KEY_VIOLATION':_0x3aec48[_0x1bac9f(0x57f)],'FOREIGN_KEY_DELETE_RESTRICTED':_0x3aec48[_0x1bac9f(0x7cc)],'INDEX_HAS_CONSUMERS':_0x3aec48['OKDBIndexHasConsumersError']};class _0x5aba61 extends _0x3aec48[_0x1bac9f(0x420)]{constructor(_0x4a5e46,_0x336bb1){const _0x2be105=_0x1bac9f;super(_0x4a5e46+_0x2be105(0x365)+(_0x336bb1?'\x20('+_0x336bb1+')':''),'NOT_IMPLEMENTED_NATIVE',{'feature':_0x4a5e46}),this[_0x2be105(0x6fe)]=_0x2be105(0x61f);}}function _0x37cc83(_0x250bb2){const _0x2f662d=_0x1bac9f;if(!_0x250bb2||typeof _0x250bb2!=='object'||!_0x250bb2['__okdb'])return _0x250bb2;delete _0x250bb2[_0x2f662d(0x45c)];const _0x4065b7=_0x250bb2[_0x2f662d(0x748)];if(_0x4065b7===_0x2f662d(0x538)||_0x4065b7===_0x2f662d(0x4a4)||_0x4065b7===_0x2f662d(0x2ff)){const _0x5f0d52=_0x4065b7===_0x2f662d(0x4a4)?TypeError['prototype']:_0x4065b7===_0x2f662d(0x2ff)?RangeError[_0x2f662d(0x455)]:Error[_0x2f662d(0x455)];Object[_0x2f662d(0x698)](_0x250bb2,_0x5f0d52),_0x250bb2[_0x2f662d(0x6fe)]=_0x4065b7;if(_0x250bb2[_0x2f662d(0x79f)]&&_0x250bb2[_0x2f662d(0x79f)][_0x2f662d(0x1c9)]!==undefined)_0x250bb2[_0x2f662d(0x1c9)]=_0x250bb2['details'][_0x2f662d(0x1c9)];return delete _0x250bb2[_0x2f662d(0x748)],delete _0x250bb2[_0x2f662d(0x79f)],_0x250bb2;}const _0x56f42e=_0x1d34ee[_0x4065b7];Object[_0x2f662d(0x698)](_0x250bb2,(_0x56f42e||_0x3aec48['OKDBError'])[_0x2f662d(0x455)]),_0x250bb2[_0x2f662d(0x6fe)]=_0x56f42e?_0x56f42e['name']['replace'](/^OKDB/,_0x2f662d(0x511)):_0x2f662d(0x420);const _0x44a7ff=_0x250bb2[_0x2f662d(0x79f)]||{};_0x4065b7===_0x2f662d(0x31a)&&(_0x250bb2[_0x2f662d(0x673)]=_0x44a7ff[_0x2f662d(0x673)],_0x250bb2[_0x2f662d(0x366)]=_0x44a7ff[_0x2f662d(0x366)],_0x250bb2[_0x2f662d(0x278)]=_0x44a7ff[_0x2f662d(0x278)]);_0x4065b7===_0x2f662d(0x1aa)&&(_0x250bb2[_0x2f662d(0x673)]=_0x44a7ff[_0x2f662d(0x673)],_0x250bb2['failures']=_0x44a7ff[_0x2f662d(0x543)]);if(_0x4065b7==='FOREIGN_KEY_VIOLATION'){for(const _0x509c93 of[_0x2f662d(0x4ab),_0x2f662d(0x514),_0x2f662d(0x5c7),_0x2f662d(0x749),_0x2f662d(0x768)])_0x250bb2[_0x509c93]=_0x44a7ff[_0x509c93];}if(_0x4065b7==='FOREIGN_KEY_DELETE_RESTRICTED'){for(const _0x30b7a0 of[_0x2f662d(0x749),_0x2f662d(0x768),_0x2f662d(0x54c)])_0x250bb2[_0x30b7a0]=_0x44a7ff[_0x30b7a0];}if(_0x44a7ff['cause'])_0x250bb2[_0x2f662d(0x35c)]=_0x44a7ff[_0x2f662d(0x35c)];if(_0x44a7ff[_0x2f662d(0x1c9)]!==undefined)_0x250bb2[_0x2f662d(0x1c9)]=_0x44a7ff['status'];if(_0x44a7ff[_0x2f662d(0x172)]!==undefined)_0x250bb2[_0x2f662d(0x172)]=_0x44a7ff['retryable'];return _0x250bb2;}function _0x89b48d(_0x11be88){const _0x27dac3=_0x1bac9f;if(_0x11be88===undefined)return _0x27dac3(0x809);if(_0x11be88===null)return _0x27dac3(0x69b);if(typeof _0x11be88==='string')return _0x11be88?_0x27dac3(0x4bb):_0x27dac3(0x4c4);if(typeof _0x11be88===_0x27dac3(0x6d8))return'function';if(typeof _0x11be88!==_0x27dac3(0x1be))return typeof _0x11be88;if(Array[_0x27dac3(0x69e)](_0x11be88))return _0x11be88[_0x27dac3(0x6cf)]?_0x27dac3(0x3c1):'empty\x20array';if(_0x11be88 instanceof Date)return _0x27dac3(0x223);if(_0x11be88 instanceof Map)return _0x27dac3(0x7d4);if(Buffer[_0x27dac3(0x292)](_0x11be88))return _0x27dac3(0x8a2);return _0x27dac3(0x1be);}const _0x46f0e1=(_0x42f45c,_0x56b5d6,_0x478c9c)=>new _0x3aec48[(_0x1bac9f(0x420))](_0x56b5d6,_0x42f45c,_0x478c9c),_0x17cd55=(_0x2266fe,_0x4692b0,_0x19ed6a)=>_0x46f0e1(_0x1bac9f(0x7d5),_0x2266fe+_0x1bac9f(0x1a0)+_0x4692b0+_0x1bac9f(0x508)+_0x89b48d(_0x19ed6a),{'argument':_0x2266fe,'expected':_0x4692b0,'got':_0x89b48d(_0x19ed6a)}),_0x1e0263=(_0xfc40e2,_0x2b402d)=>_0x46f0e1('INVALID_TYPE_NAME',_0xfc40e2+'\x20must\x20be\x20a\x20non-empty\x20string;\x20got\x20'+_0x89b48d(_0x2b402d),{'argument':_0xfc40e2,'expected':'non-empty\x20string','got':_0x89b48d(_0x2b402d)}),_0x384609=(_0x45ba5a,_0x2b4a65)=>_0x46f0e1('INVALID_OPTIONS',_0x45ba5a+':\x20'+_0x2b4a65,{'argument':_0x45ba5a,'problem':_0x2b4a65});function _0x1339a6(_0x20f569,_0xb86b62=_0x1bac9f(0x66a)){const _0x334dc6=_0x1bac9f;if(_0x20f569===undefined)return{};if(_0x20f569===null)throw _0x384609(_0xb86b62,_0x334dc6(0x498));return _0x20f569;}return errors={'reclass':_0x37cc83,'NotImplementedNative':_0x5aba61,'BY_CODE':_0x1d34ee,'describe':_0x89b48d,'invalidArgument':_0x17cd55,'invalidTypeName':_0x1e0263,'invalidOptions':_0x384609,'optionsArg':_0x1339a6,..._0x3aec48},errors;}var bridge_1,hasRequiredBridge;function requireBridge(){if(hasRequiredBridge)return bridge_1;hasRequiredBridge=0x1;const _0x2d91ae=new Map(),_0x92625b=new Map();let _0x4eabaa=0x1;const _0x4a6b7c=new Map(),_0x270701=new Map();let _0xae3cd2=0x1;const _0x2ce973=new Map();let _0x39ed61=0x1;const _0x41aea3=new Map();function _0x5bc300(_0x52c773,_0x10fe87=null){const _0x2fc005=_0x3ebb,_0x1d92b6=_0x39ed61++;_0x2ce973[_0x2fc005(0x328)](_0x1d92b6,_0x52c773);if(_0x10fe87)_0x41aea3[_0x2fc005(0x328)](_0x1d92b6,_0x10fe87);return _0x1d92b6;}function _0x42fd53(_0xac0ab0,_0x318147){const _0x129e7a=_0x3ebb,_0x3c8806=_0x2ce973[_0x129e7a(0x63c)](_0xac0ab0),_0x3cf50c=Array[_0x129e7a(0x455)][_0x129e7a(0x5ca)]['call'](arguments,0x2),_0x25b07d=_0x11b593=>_0x416b41(_0x11b593,_0x41aea3[_0x129e7a(0x63c)](_0xac0ab0));let _0x3e63d7=_0x3cf50c;if(_0x318147==='start'||_0x318147==='stop'||_0x318147===_0x129e7a(0x55a)||_0x318147===_0x129e7a(0x686)||_0x318147==='assertStartAllowed')_0x3e63d7=[_0x25b07d(_0x3cf50c[0x0])];else{if(_0x318147===_0x129e7a(0x5b6))_0x3e63d7=[_0x3cf50c[0x0],_0x3cf50c[0x1],_0x25b07d(_0x3cf50c[0x2])];else{if(_0x318147===_0x129e7a(0x5f2))_0x3e63d7=[_0x25b07d(_0x3cf50c[0x0])];}}let _0x50643f=_0x3c8806[_0x318147](..._0x3e63d7);if(_0x50643f&&typeof _0x50643f['then']===_0x129e7a(0x6d8))_0x50643f=_0x1df578(_0x50643f);if(_0x318147===_0x129e7a(0x898)){const _0x24c7cc=_0x50643f&&typeof _0x50643f===_0x129e7a(0x1be)?_0x5bc300(_0x50643f):_0x5bc300({});return{'$api':_0x24c7cc};}return _0x50643f===undefined?null:_0x50643f;}function _0x416b41(_0x4a7e0b,_0x2b5ac7){const _0x5d3e2f=_0x3ebb;let _0x3059d1=_0x278c0b[_0x5d3e2f(0x63c)](_0x4a7e0b[_0x5d3e2f(0x5f9)]);const _0x43a1e2=_0x3059d1&&_0x3059d1[_0x5d3e2f(0x21e)]||_0x2b5ac7||_0x402fed,_0x550d98=(_0x4a8083,..._0x5e8f01)=>_0x43a1e2[_0x5d3e2f(0x49e)](_0x5d3e2f(0x1a5),null,_0x4a8083,[_0x4a7e0b[_0x5d3e2f(0x673)],_0x4a7e0b[_0x5d3e2f(0x6fe)],..._0x5e8f01],!![]);return{'okdb':_0x43a1e2,'key':_0x4a7e0b[_0x5d3e2f(0x366)],'type':_0x4a7e0b[_0x5d3e2f(0x673)],'name':_0x4a7e0b[_0x5d3e2f(0x6fe)],get 'storeEnv'(){const _0x2ff0f2=_0x5d3e2f;if(!_0x3059d1&&_0x43a1e2&&_0x43a1e2[_0x2ff0f2(0x60a)]&&_0x4a7e0b['storeEnvName'])_0x3059d1=_0x43a1e2[_0x2ff0f2(0x8a5)][_0x2ff0f2(0x63c)](_0x4a7e0b[_0x2ff0f2(0x31d)]);return _0x3059d1;},'storeEnvName':_0x4a7e0b[_0x5d3e2f(0x31d)],'config':_0x4a7e0b['config'],'meta':_0x4a7e0b[_0x5d3e2f(0x47b)],'options':_0x4a7e0b[_0x5d3e2f(0x66a)],'emit':(_0x3c0c71,_0xf9a5e0)=>_0x550d98(_0x5d3e2f(0x545),_0x3c0c71,_0xf9a5e0),'updateStatus':async(_0x1f2e08,_0x1c1650)=>_0x550d98('ctxUpdateStatus',_0x1f2e08,_0x1c1650==null?null:String(_0x1c1650&&_0x1c1650[_0x5d3e2f(0x2d2)]?_0x1c1650[_0x5d3e2f(0x2d2)]:_0x1c1650)),'updateMeta':async _0x273a1c=>_0x550d98(_0x5d3e2f(0x20a),{'meta':_0x273a1c}),'updateConfig':async _0x1b87e7=>_0x550d98(_0x5d3e2f(0x20a),{'config':_0x1b87e7})};}function _0x27c48d(_0x31b942,_0x2c615e,_0x2f8c3f){const _0x5aa177=_0x3ebb;if(_0x31b942===_0x5aa177(0x264)){const _0x57539d=_0x17d024(_0x2c615e);let _0x3dbfe1=_0x57539d(_0x2f8c3f);if(_0x3dbfe1&&typeof _0x3dbfe1[_0x5aa177(0x2b0)]===_0x5aa177(0x6d8))_0x3dbfe1=_0x1df578(_0x3dbfe1);if(!_0x3dbfe1||typeof _0x3dbfe1['embed']!==_0x5aa177(0x6d8)){const {OKDBError:_0x343456}=requireErrors();throw new _0x343456(_0x5aa177(0x478)+(_0x2f8c3f&&_0x2f8c3f[_0x5aa177(0x673)])+_0x5aa177(0x866),_0x5aa177(0x86f));}return _0x3dbfe1[_0x5aa177(0x45c)]=_0x57539d[_0x5aa177(0x45c)],{'$id':_0x5bc300(_0x3dbfe1),'batch':typeof _0x3dbfe1[_0x5aa177(0x4ce)]===_0x5aa177(0x6d8)};}const _0x5c9243=_0x2ce973['get'](_0x2c615e);if(_0x31b942===_0x5aa177(0x209))return _0x2ce973['delete'](_0x2c615e),_0xa858b3[_0x5aa177(0x82f)](_0x2c615e),null;if(!_0x5c9243)throw new Error(_0x5aa177(0x41e));if(typeof _0x5c9243[_0x31b942]!==_0x5aa177(0x6d8))return null;if(_0x31b942===_0x5aa177(0x22c)||_0x31b942===_0x5aa177(0x4ce)){const _0x300a8a=_0x31b942==='embedBatch'?_0x355b0e(_0x2c615e,_0x5c9243,_0x2f8c3f):_0x42073e(_0x2c615e,_0x5c9243,_0x31b942,_0x2f8c3f);return _0x31b942===_0x5aa177(0x22c)?Array['from'](_0x300a8a):_0x300a8a[_0x5aa177(0x1a7)](_0x451a07=>Array[_0x5aa177(0x170)](_0x451a07));}let _0x363710=_0x5c9243[_0x31b942]();if(_0x363710&&typeof _0x363710[_0x5aa177(0x2b0)]===_0x5aa177(0x6d8))_0x363710=_0x1df578(_0x363710);return _0x363710===undefined?null:_0x363710;}function _0x9c9ea8(_0xfe8d41,_0x41688d,_0x3219d7){const _0x53bce1=_0x3ebb;if(_0xfe8d41===_0x53bce1(0x264)){const _0x1cb170=_0x17d024(_0x41688d);let _0x5d70bc=_0x1cb170(_0x3219d7[_0x53bce1(0x1dc)]??{},{'dims':_0x3219d7[_0x53bce1(0x4c6)],'dir':_0x3219d7[_0x53bce1(0x6ec)]});if(_0x5d70bc&&typeof _0x5d70bc['then']==='function')_0x5d70bc=_0x1df578(_0x5d70bc);for(const _0x10012e of[_0x53bce1(0x724),_0x53bce1(0x7df),_0x53bce1(0x42f),_0x53bce1(0x58c),_0x53bce1(0x3c2)]){if(!_0x5d70bc||typeof _0x5d70bc[_0x10012e]!==_0x53bce1(0x6d8)){const {OKDBError:_0x3ef780}=requireErrors();throw new _0x3ef780('Algorithm\x20factory\x20must\x20return\x20an\x20object\x20with\x20'+_0x10012e+'()',_0x53bce1(0x3d8),{'method':_0x10012e});}}return{'$id':_0x5bc300(_0x5d70bc)};}const _0x19168a=_0x2ce973[_0x53bce1(0x63c)](_0x41688d);if(_0xfe8d41===_0x53bce1(0x209))return _0x2ce973[_0x53bce1(0x82f)](_0x41688d),null;if(!_0x19168a)throw new Error(_0x53bce1(0x7e5));const _0x39a60a=_0x3d4229=>_0x3d4229?_0x3d4229[_0x53bce1(0x1a7)](_0x560d8b=>({'key':_0x560d8b[_0x53bce1(0x366)],'vector':Float32Array[_0x53bce1(0x170)](_0x560d8b[_0x53bce1(0x6c5)])})):null;let _0x4d9c39;switch(_0xfe8d41){case'load':case _0x53bce1(0x574):{const _0x1bf092=_0x39a60a(_0x3219d7);_0x4d9c39=_0x19168a[_0xfe8d41](_0x1bf092?async()=>_0x1bf092:undefined);break;}case'add':_0x4d9c39=_0x19168a['add'](_0x3219d7[0x0],Float32Array[_0x53bce1(0x170)](_0x3219d7[0x1]),_0x3219d7[0x2]??undefined);break;case _0x53bce1(0x42f):_0x4d9c39=_0x19168a['remove'](_0x3219d7);break;case'search':_0x4d9c39=_0x19168a['search'](Float32Array[_0x53bce1(0x170)](_0x3219d7[_0x53bce1(0x665)]),_0x3219d7['opts']??{});break;case _0x53bce1(0x175):_0x4d9c39=typeof _0x19168a[_0x53bce1(0x175)]==='function'?_0x19168a[_0x53bce1(0x175)](_0x3219d7??undefined):![];break;case _0x53bce1(0x893):_0x4d9c39=typeof _0x19168a[_0x53bce1(0x893)]===_0x53bce1(0x6d8)?_0x19168a[_0x53bce1(0x893)]():undefined;break;case'tick':_0x4d9c39=typeof _0x19168a['tick']===_0x53bce1(0x6d8)?_0x19168a[_0x53bce1(0x2b4)]():undefined;break;case'count':return Number(_0x19168a[_0x53bce1(0x3c2)]());case _0x53bce1(0x7c6):return(typeof _0x19168a[_0x53bce1(0x7c6)]===_0x53bce1(0x6d8)?_0x19168a[_0x53bce1(0x7c6)]():null)??{};default:throw new Error(_0x53bce1(0x2af)+_0xfe8d41);}if(_0x4d9c39&&typeof _0x4d9c39['then']===_0x53bce1(0x6d8))_0x4d9c39=_0x1df578(_0x4d9c39);return _0x4d9c39===undefined?null:_0x4d9c39;}function _0x44b07a(_0x14065f,_0x2336fa,_0x504bed){const _0x1996d0=_0x3ebb;if(_0x14065f===_0x1996d0(0x264)){const _0x48a17e=_0x17d024(_0x2336fa);let _0x4a5537=_0x48a17e(_0x504bed);if(_0x4a5537&&typeof _0x4a5537[_0x1996d0(0x2b0)]==='function')_0x4a5537=_0x1df578(_0x4a5537);if(!_0x4a5537)return null;const _0x2bc7a0=[_0x1996d0(0x4ca),_0x1996d0(0x1d5),_0x1996d0(0x63c),_0x1996d0(0x3c2),_0x1996d0(0x481),'stats'][_0x1996d0(0x852)](_0x34db33=>typeof _0x4a5537[_0x34db33]===_0x1996d0(0x6d8));return{'$id':_0x5bc300(_0x4a5537),'has':_0x2bc7a0};}const _0x5cc44f=_0x2ce973['get'](_0x2336fa);if(_0x14065f==='free')return _0x2ce973[_0x1996d0(0x82f)](_0x2336fa),null;if(!_0x5cc44f)throw new Error(_0x1996d0(0x472));const _0x364dc0=_0x4739b8=>Float32Array[_0x1996d0(0x170)](_0x4739b8);let _0x2fd55f;switch(_0x14065f){case _0x1996d0(0x27f):_0x2fd55f=_0x5cc44f['put'](_0x504bed[0x0],_0x364dc0(_0x504bed[0x1]));break;case'remove':_0x2fd55f=_0x5cc44f[_0x1996d0(0x42f)](_0x504bed);break;case _0x1996d0(0x868):{_0x2fd55f=typeof _0x5cc44f[_0x1996d0(0x868)]===_0x1996d0(0x6d8)?_0x5cc44f[_0x1996d0(0x868)]():[];if(_0x2fd55f&&typeof _0x2fd55f[_0x1996d0(0x2b0)]===_0x1996d0(0x6d8))_0x2fd55f=_0x1df578(_0x2fd55f);return Array[_0x1996d0(0x170)](_0x2fd55f??[],_0x528b6e=>({'key':_0x528b6e[_0x1996d0(0x366)],'vector':Array[_0x1996d0(0x170)](_0x528b6e[_0x1996d0(0x6c5)])}));}case _0x1996d0(0x4ca):_0x2fd55f=_0x5cc44f['write'](_0x504bed[_0x1996d0(0x33b)][_0x1996d0(0x1a7)](_0x1521e5=>({'key':_0x1521e5[_0x1996d0(0x366)],'vector':_0x364dc0(_0x1521e5[_0x1996d0(0x6c5)])})),_0x504bed[_0x1996d0(0x179)]);break;case _0x1996d0(0x1d5):_0x2fd55f=_0x5cc44f[_0x1996d0(0x1d5)](_0x504bed??undefined);if(_0x2fd55f&&typeof _0x2fd55f[_0x1996d0(0x2b0)]===_0x1996d0(0x6d8))_0x2fd55f=_0x1df578(_0x2fd55f);return Array[_0x1996d0(0x170)](_0x2fd55f??[]);case _0x1996d0(0x63c):{_0x2fd55f=_0x5cc44f[_0x1996d0(0x63c)](_0x504bed);if(_0x2fd55f&&typeof _0x2fd55f[_0x1996d0(0x2b0)]==='function')_0x2fd55f=_0x1df578(_0x2fd55f);return _0x2fd55f==null?null:Array[_0x1996d0(0x170)](_0x2fd55f);}case _0x1996d0(0x3c2):return Number(_0x5cc44f['count']());case _0x1996d0(0x481):_0x2fd55f=_0x5cc44f[_0x1996d0(0x481)]();break;case _0x1996d0(0x5e6):return _0x5cc44f[_0x1996d0(0x5e6)]()??null;default:throw new Error('storage\x20adapter\x20has\x20no\x20method\x20'+_0x14065f);}if(_0x2fd55f&&typeof _0x2fd55f[_0x1996d0(0x2b0)]===_0x1996d0(0x6d8))_0x2fd55f=_0x1df578(_0x2fd55f);return _0x2fd55f===undefined?null:_0x2fd55f;}const _0xe87166=new Map();function _0x42073e(_0xdf9f52,_0xff8a67,_0x722afd,_0x387ded){const _0x176a1d=_0x3ebb,_0x576953=_0xdf9f52+'\x00'+_0x722afd+'\x00'+JSON['stringify'](_0x387ded),_0xfa575d=_0xe87166[_0x176a1d(0x63c)](_0x576953);if(_0xfa575d){if(_0xfa575d[_0x176a1d(0x41c)]==='pending')throw _0x20e4ae();_0xe87166[_0x176a1d(0x82f)](_0x576953);if(_0xfa575d[_0x176a1d(0x41c)]===_0x176a1d(0x391))throw _0xfa575d[_0x176a1d(0x820)];return _0xfa575d[_0x176a1d(0x820)];}const _0x492fe4=_0xff8a67[_0x722afd](_0x387ded);if(!_0x492fe4||typeof _0x492fe4[_0x176a1d(0x2b0)]!=='function')return _0x492fe4;const _0xe3dd8a={'state':_0x176a1d(0x35d),'value':undefined};_0x492fe4['then'](_0x5e8cb7=>{const _0x55d60d=_0x176a1d;_0xe3dd8a[_0x55d60d(0x41c)]='ok',_0xe3dd8a[_0x55d60d(0x820)]=_0x5e8cb7;if(_0xe87166[_0x55d60d(0x63c)](_0x576953)===_0xe3dd8a)_0xbae1bb(_0xff8a67);},_0x2e494e=>{const _0x294c8a=_0x176a1d;_0xe3dd8a[_0x294c8a(0x41c)]=_0x294c8a(0x391),_0xe3dd8a[_0x294c8a(0x820)]=_0x2e494e;if(_0xe87166['get'](_0x576953)===_0xe3dd8a)_0xbae1bb(_0xff8a67);});for(let _0x1637d6=0x0;_0x1637d6<0x64&&_0xe3dd8a[_0x176a1d(0x41c)]===_0x176a1d(0x35d);_0x1637d6++)process[_0x176a1d(0x67c)]();if(_0xe3dd8a['state']==='ok')return _0xe3dd8a[_0x176a1d(0x820)];if(_0xe3dd8a[_0x176a1d(0x41c)]===_0x176a1d(0x391))throw _0xe3dd8a['value'];_0xe87166[_0x176a1d(0x328)](_0x576953,_0xe3dd8a);throw _0x20e4ae();}const _0xa858b3=new Map(),_0x14d8fe=0xa*0x3c*0x3e8;function _0x355b0e(_0x504c3c,_0x275b20,_0x498cb1){const _0x17c24e=_0x3ebb,_0x26e4bc=Array[_0x17c24e(0x69e)](_0x498cb1)?_0x498cb1:Array['from'](_0x498cb1??[]);let _0x2bf831=_0xa858b3[_0x17c24e(0x63c)](_0x504c3c);if(!_0x2bf831)_0xa858b3[_0x17c24e(0x328)](_0x504c3c,_0x2bf831=new Map());const _0x151b16=Date[_0x17c24e(0x89e)]();for(const [_0x297f0b,_0xc148bb]of _0x2bf831)if(_0xc148bb[_0x17c24e(0x2b5)][_0x17c24e(0x41c)]!==_0x17c24e(0x35d)&&_0x151b16-_0xc148bb['req']['at']>_0x14d8fe)_0x2bf831[_0x17c24e(0x82f)](_0x297f0b);const _0x3f17e8=_0x26e4bc[_0x17c24e(0x1a7)](_0x1a53f8=>JSON[_0x17c24e(0x4d2)](_0x1a53f8));let _0x1d97d5=![];const _0x2d6bc7=[],_0x51dd49=new Set();for(let _0xc2d7ca=0x0;_0xc2d7ca<_0x3f17e8[_0x17c24e(0x6cf)];_0xc2d7ca++){const _0x5d036c=_0x2bf831[_0x17c24e(0x63c)](_0x3f17e8[_0xc2d7ca]);if(!_0x5d036c)!_0x51dd49[_0x17c24e(0x51e)](_0x3f17e8[_0xc2d7ca])&&(_0x51dd49[_0x17c24e(0x7df)](_0x3f17e8[_0xc2d7ca]),_0x2d6bc7[_0x17c24e(0x2fb)](_0xc2d7ca));else{if(_0x5d036c[_0x17c24e(0x2b5)]['state']==='pending')_0x1d97d5=!![];else{if(_0x5d036c[_0x17c24e(0x2b5)][_0x17c24e(0x41c)]===_0x17c24e(0x391)){const _0x3386be=_0x5d036c['req']['value'];for(const [_0x9d28f9,_0x524384]of _0x2bf831)if(_0x524384[_0x17c24e(0x2b5)]===_0x5d036c[_0x17c24e(0x2b5)])_0x2bf831['delete'](_0x9d28f9);throw _0x3386be;}}}}if(_0x1d97d5)throw _0x20e4ae();if(_0x2d6bc7[_0x17c24e(0x6cf)]){const _0x34b211=_0x2d6bc7[_0x17c24e(0x1a7)](_0x20ddff=>_0x26e4bc[_0x20ddff]),_0x4ea429=_0x275b20[_0x17c24e(0x4ce)](_0x34b211),_0x985ad8={'state':'pending','value':undefined,'at':0x0},_0x12f9fb=(_0x255338,_0x296c26)=>{const _0x4f031a=_0x17c24e;_0x985ad8[_0x4f031a(0x41c)]=_0x255338,_0x985ad8[_0x4f031a(0x820)]=_0x296c26,_0x985ad8['at']=Date[_0x4f031a(0x89e)]();};if(!_0x4ea429||typeof _0x4ea429[_0x17c24e(0x2b0)]!==_0x17c24e(0x6d8))_0x12f9fb('ok',_0x4ea429);else{let _0x29659b=!![];_0x4ea429[_0x17c24e(0x2b0)](_0x24d64c=>{_0x12f9fb('ok',_0x24d64c);if(!_0x29659b)_0xbae1bb(_0x275b20);},_0x4002e3=>{const _0x32639a=_0x17c24e;_0x12f9fb(_0x32639a(0x391),_0x4002e3);if(!_0x29659b)_0xbae1bb(_0x275b20);});for(let _0x788233=0x0;_0x788233<0x64&&_0x985ad8[_0x17c24e(0x41c)]===_0x17c24e(0x35d);_0x788233++)process[_0x17c24e(0x67c)]();_0x29659b=![];}for(let _0x125087=0x0;_0x125087<_0x2d6bc7[_0x17c24e(0x6cf)];_0x125087++)_0x2bf831[_0x17c24e(0x328)](_0x3f17e8[_0x2d6bc7[_0x125087]],{'req':_0x985ad8,'index':_0x125087});if(_0x985ad8[_0x17c24e(0x41c)]===_0x17c24e(0x391)){for(const _0x4e3ce0 of _0x2d6bc7)_0x2bf831['delete'](_0x3f17e8[_0x4e3ce0]);throw _0x985ad8[_0x17c24e(0x820)];}if(_0x985ad8['state']===_0x17c24e(0x35d))throw _0x20e4ae();}const _0x5e617d=_0x3f17e8['map'](_0x16a99a=>{const _0x377b97=_0x17c24e,_0x36245f=_0x2bf831[_0x377b97(0x63c)](_0x16a99a),_0x21fad8=_0x36245f['req'][_0x377b97(0x820)];return _0x21fad8?_0x21fad8[_0x36245f[_0x377b97(0x3a9)]]:undefined;});for(const _0x1c9240 of _0x3f17e8)_0x2bf831[_0x17c24e(0x82f)](_0x1c9240);if(!_0x2bf831[_0x17c24e(0x221)])_0xa858b3['delete'](_0x504c3c);return _0x5e617d;}function _0x20e4ae(){const _0x34ae78=_0x3ebb;return Object[_0x34ae78(0x76f)](new Error('embedder\x20request\x20still\x20pending'),{'code':_0x34ae78(0x71c)});}function _0xbae1bb(_0x26b11c){const _0x59d944=_0x3ebb;_0x28fba2();try{const _0x467019=_0x26b11c[_0x59d944(0x45c)]||_0x402fed;if(_0x467019&&_0x467019[_0x59d944(0x60a)])_0x467019['_call']('events',null,_0x59d944(0x6d6),['embeddings:embed:settled',{}],!![]);}catch{}}function _0x2418f9(_0x25cc0f,_0x5e9cd0,_0x21166a){const _0x3b4fde=_0x3ebb,_0x378835=_0x2ce973[_0x3b4fde(0x63c)](_0x25cc0f);if(!_0x378835||typeof _0x378835[_0x5e9cd0]!=='function')return{'__absent':!![]};let _0x467cb9=_0x378835[_0x5e9cd0](...Array[_0x3b4fde(0x69e)](_0x21166a)?_0x21166a:[]);if(_0x467cb9&&typeof _0x467cb9[_0x3b4fde(0x2b0)]===_0x3b4fde(0x6d8))_0x467cb9=_0x1df578(_0x467cb9);return{'value':_0x467cb9===undefined?null:_0x467cb9};}const _0x4b86fc=new Map();let _0x9bd317=0x1;const _0x278c0b=new Map(),_0x168c6b=new Map();function _0x297456(_0x1c6d5f,_0x31c199=null){const _0xcaa4bd=_0x3ebb,_0x16490d=_0x9bd317++;_0x4b86fc[_0xcaa4bd(0x328)](_0x16490d,_0x1c6d5f);if(_0x31c199)_0x168c6b[_0xcaa4bd(0x328)](_0x16490d,_0x31c199);return _0x16490d;}function _0x6543be(_0x310f38){const _0x33233a=_0x3ebb;for(const [_0x72ed9b,_0x12ab08]of _0x278c0b)if(_0x12ab08&&_0x12ab08[_0x33233a(0x21e)]===_0x310f38)_0x278c0b[_0x33233a(0x82f)](_0x72ed9b);for(const [_0x2e9326,_0x1b0bba]of _0x41aea3)if(_0x1b0bba===_0x310f38)_0x41aea3[_0x33233a(0x82f)](_0x2e9326);for(const [_0x4b7520,_0x26e574]of _0x168c6b)_0x26e574===_0x310f38&&(_0x168c6b[_0x33233a(0x82f)](_0x4b7520),_0x4b86fc[_0x33233a(0x82f)](_0x4b7520));if(_0x402fed===_0x310f38)_0x402fed=null;}function _0x405316(_0xc74df,_0x5632b6){const _0x8e2845=_0x3ebb;_0x278c0b[_0x8e2845(0x328)](_0xc74df,_0x5632b6);}function _0x3dd118(_0x3468c2){const _0x15f8fe=_0x3ebb;if(_0x3468c2&&typeof _0x3468c2===_0x15f8fe(0x1be)&&Object['keys'](_0x3468c2)[_0x15f8fe(0x6cf)]===0x1&&_0x3468c2[_0x15f8fe(0x2b9)]!==undefined)return _0x4b86fc[_0x15f8fe(0x63c)](_0x3468c2[_0x15f8fe(0x2b9)]);return _0x3468c2;}function _0x1df578(_0x612e90){const _0x286198=_0x3ebb;let _0xf4102e=![],_0x480296=![],_0x401622;_0x612e90[_0x286198(0x2b0)](_0x38dd34=>{_0xf4102e=!![],_0x401622=_0x38dd34;},_0x1ff8dc=>{_0xf4102e=!![],_0x480296=!![],_0x401622=_0x1ff8dc;});for(let _0x1aec01=0x0;_0x1aec01<0x2710&&!_0xf4102e;_0x1aec01++)process[_0x286198(0x67c)]();if(!_0xf4102e)return _0x612e90[_0x286198(0x2b0)](undefined,_0x41a886=>{const _0x514e8a=_0x286198;try{process[_0x514e8a(0x59d)](_0x514e8a(0x3b6)+(_0x41a886&&_0x41a886[_0x514e8a(0x2d2)]?_0x41a886['message']:_0x41a886));}catch{}}),undefined;if(_0x480296)throw _0x401622;return _0x401622;}function _0x2be118(_0x40cf16,_0xfb1cb8,_0x41ba50){const _0x4b2b1f=_0x3ebb,_0x2eb981=_0x17d024(_0x40cf16),_0x5139a7=_0x278c0b['get'](_0xfb1cb8);try{const _0x2bff12=_0x2eb981(_0x41ba50,{'okdb':_0x5139a7&&_0x5139a7['okdb'],'env':_0x5139a7});if(_0x2bff12&&typeof _0x2bff12[_0x4b2b1f(0x2b0)]===_0x4b2b1f(0x6d8))_0x1df578(_0x2bff12);}catch(_0x2d11fa){if(_0x2d11fa&&_0x2d11fa['processorHold']===!![]&&_0x2d11fa['code']!=='__HOLD__'){const _0x37ad8b=new Error(_0x2d11fa[_0x4b2b1f(0x2d2)]);_0x37ad8b[_0x4b2b1f(0x748)]='__HOLD__';throw _0x37ad8b;}throw _0x2d11fa;}}const _0x1d7845=new Map();function _0x91efc1(_0x48a624,_0x550565,_0x57b611,_0x47ca92,_0x580528,_0x163a65){const _0x208e02=_0x3ebb,_0x3a92fd=_0x17d024(_0x48a624),_0x34038d=(_0x278c0b[_0x208e02(0x63c)](_0x163a65)||{})[_0x208e02(0x21e)]||_0x402fed,_0xff99e9=new AbortController(),_0x227669=(_0x200b28,..._0x2cccb9)=>_0x34038d[_0x208e02(0x49e)]('queue',_0x208e02(0x822),_0x200b28,_0x2cccb9,![]),_0x13a26d={'okdb':_0x34038d,'env':_0x278c0b[_0x208e02(0x63c)](_0x163a65)||null,'job':_0x47ca92,'jobId':_0x580528,'signal':_0xff99e9[_0x208e02(0x2b7)],'heartbeat':()=>_0x227669(_0x208e02(0x7c1),_0x57b611),'markProgress':_0x5ee768=>_0x227669(_0x208e02(0x7c9),_0x57b611,_0x5ee768),'log':(_0x7163d9,_0x404652)=>_0x227669(_0x208e02(0x203),_0x57b611,_0x7163d9,_0x404652)};_0x1d7845['set'](_0x57b611,{'ctrl':_0xff99e9,'call':_0x227669});const _0x35d575=()=>{const _0x345086=_0x208e02;_0x1d7845['delete'](_0x57b611);try{_0x227669(_0x345086(0x6e1),_0x57b611);}catch{}};let _0x8e8b2a;try{_0x8e8b2a=_0x3a92fd(_0x550565,_0x13a26d);}catch(_0xceee26){_0x35d575();throw _0xceee26;}if(_0x8e8b2a&&typeof _0x8e8b2a[_0x208e02(0x2b0)]===_0x208e02(0x6d8)){const _0x1f76b9=_0x204a9a(_0x8e8b2a);return _0x8e8b2a[_0x208e02(0x2b0)](_0x35d575,_0x35d575),{'$token':_0x1f76b9};}return _0x35d575(),_0x8e8b2a;}function _0x38a9cc(){const _0x2d83db=_0x3ebb;for(const [_0x4f4de8,_0x58cf2a]of _0x1d7845){if(_0x58cf2a[_0x2d83db(0x7b0)][_0x2d83db(0x2b7)][_0x2d83db(0x43a)])continue;let _0xec9052;try{_0xec9052=_0x58cf2a[_0x2d83db(0x853)](_0x2d83db(0x556),_0x4f4de8);}catch{continue;}if(_0xec9052&&_0xec9052['aborted']){const {OKDBError:_0x30cb9b}=requireErrors();_0x58cf2a[_0x2d83db(0x7b0)][_0x2d83db(0x33a)](new _0x30cb9b(_0xec9052[_0x2d83db(0x2d2)],_0xec9052[_0x2d83db(0x748)]));}}}let _0x402fed=null;function _0x41612e(_0x1f64dc){_0x402fed=_0x1f64dc;}function _0x8b8e6e(_0x4237b1,_0x5de82f,_0x18cdb4,_0x2250f0,_0x130ce3,_0x51575d,_0x5431b0){const _0x1f8026=_0x3ebb,_0x5bfa82=_0x17d024(_0x4237b1),_0x11722e=_0x278c0b[_0x1f8026(0x63c)](_0x18cdb4);try{const _0x1cb439=_0x5de82f?_0x5bfa82(_0x130ce3,_0x51575d):_0x5bfa82({'env':_0x11722e,'okdb':_0x11722e&&_0x11722e[_0x1f8026(0x21e)],'payload':_0x3dd118(_0x2250f0)},_0x130ce3,_0x51575d);if(_0x1cb439&&typeof _0x1cb439['then']===_0x1f8026(0x6d8)){if(_0x51575d&&_0x51575d[_0x1f8026(0x182)]===_0x1f8026(0x2d7))_0x1cb439[_0x1f8026(0x2b0)](undefined,()=>{});else{if(_0x5431b0){const _0x54f428=_0x4565a2(_0x1cb439);if(_0x54f428===0x0)return null;return{'$token':_0x54f428};}else _0x1df578(_0x1cb439);}}}catch(_0x4308d0){if(_0x4308d0&&_0x4308d0[_0x1f8026(0x23a)]===!![]&&_0x4308d0['code']!==_0x1f8026(0x652)){const _0x26bfa2=new Error(_0x4308d0[_0x1f8026(0x2d2)]);_0x26bfa2[_0x1f8026(0x748)]='__HOLD__';throw _0x26bfa2;}throw _0x4308d0;}return null;}function _0x4565a2(_0x37a792){const _0x31e574=_0x3ebb;let _0x492a20='pending',_0x2e90ef;_0x37a792[_0x31e574(0x2b0)](_0x3f1d02=>{_0x492a20='ok',_0x2e90ef=_0x3f1d02;},_0x37f2a2=>{const _0x2f0b00=_0x31e574;_0x492a20=_0x2f0b00(0x391),_0x2e90ef=_0x37f2a2;});for(let _0x172673=0x0;_0x172673<0x64&&_0x492a20==='pending';_0x172673++)process[_0x31e574(0x67c)]();if(_0x492a20==='ok')return 0x0;const _0x39631d=_0xae3cd2++,_0xd610d2={'state':_0x492a20,'value':_0x2e90ef};_0x270701['set'](_0x39631d,_0xd610d2);if(_0x492a20===_0x31e574(0x35d))_0x37a792['then'](_0x4af6ee=>{const _0x5aa217=_0x31e574;_0xd610d2[_0x5aa217(0x41c)]='ok',_0xd610d2['value']=_0x4af6ee,_0x28fba2();},_0x36a371=>{const _0x43ddd8=_0x31e574;_0xd610d2[_0x43ddd8(0x41c)]='err',_0xd610d2[_0x43ddd8(0x820)]=_0x36a371,_0x28fba2();});return _0x39631d;}function _0x363804(_0x5cea51){const _0x3a1425=_0x3ebb;let _0x2da225=_0x92625b[_0x3a1425(0x63c)](_0x5cea51);return _0x2da225===undefined&&(_0x2da225=_0x4eabaa++,_0x92625b['set'](_0x5cea51,_0x2da225),_0x2d91ae[_0x3a1425(0x328)](_0x2da225,{'fn':_0x5cea51,'refs':0x0})),_0x2d91ae['get'](_0x2da225)[_0x3a1425(0x4d3)]++,_0x2da225;}function _0xa5759e(_0x274c1f){const _0x67fde3=_0x3ebb,_0x521f47=_0x2d91ae[_0x67fde3(0x63c)](_0x274c1f);if(!_0x521f47)return;--_0x521f47[_0x67fde3(0x4d3)]<=0x0&&(_0x2d91ae[_0x67fde3(0x82f)](_0x274c1f),_0x92625b[_0x67fde3(0x82f)](_0x521f47['fn']));}function _0x17d024(_0x535936){const _0x5b1a6d=_0x2d91ae['get'](_0x535936);if(!_0x5b1a6d)throw new Error('okdb-node:\x20unknown\x20callback\x20id\x20'+_0x535936);return _0x5b1a6d['fn'];}function _0x204a9a(_0x95b143){const _0x474c76=_0x3ebb;if(_0x95b143&&typeof _0x95b143[_0x474c76(0x2b0)]===_0x474c76(0x6d8)){const _0x100506=_0xae3cd2++,_0x393f90={'state':'pending','value':undefined};return _0x270701[_0x474c76(0x328)](_0x100506,_0x393f90),_0x95b143[_0x474c76(0x2b0)](_0x8a348=>{const _0x5b8d06=_0x474c76;_0x393f90[_0x5b8d06(0x41c)]='ok',_0x393f90[_0x5b8d06(0x820)]=_0x8a348,_0x28fba2();},_0x4ae524=>{const _0x1ea422=_0x474c76;_0x393f90[_0x1ea422(0x41c)]=_0x1ea422(0x391),_0x393f90[_0x1ea422(0x820)]=_0x4ae524,_0x28fba2();}),_0x100506;}return 0x0;}let _0x545dc3=()=>{},_0x47f587=null;function _0x4ea32c(_0x1af750,_0x211d63=null){_0x545dc3=_0x1af750,_0x47f587=_0x211d63;}function _0x2c9c02(_0x519f11){return _0x47f587===_0x519f11;}function _0x28fba2(){_0x545dc3();}function _0x2611c1(_0x383a43){const _0x1669b2=_0x3ebb,_0x33d391=_0x270701['get'](_0x383a43);if(!_0x33d391)return{'state':_0x1669b2(0x391),'error':{'message':_0x1669b2(0x485)}};if(_0x33d391[_0x1669b2(0x41c)]===_0x1669b2(0x35d))return{'state':'pending'};_0x270701[_0x1669b2(0x82f)](_0x383a43);if(_0x33d391[_0x1669b2(0x41c)]==='ok')return{'state':'ok','value':_0x33d391[_0x1669b2(0x820)]};const _0x4afc16=_0x33d391['value'];return{'state':_0x1669b2(0x391),'error':{'message':_0x4afc16&&_0x4afc16[_0x1669b2(0x2d2)]!=null?String(_0x4afc16['message']):String(_0x4afc16),'stack':_0x4afc16&&_0x4afc16[_0x1669b2(0x3fd)],'code':_0x4afc16&&_0x4afc16[_0x1669b2(0x748)],'status':_0x4afc16&&typeof _0x4afc16[_0x1669b2(0x1c9)]===_0x1669b2(0x5c1)?_0x4afc16[_0x1669b2(0x1c9)]:undefined,'hold':!!(_0x4afc16&&_0x4afc16['processorHold']===!![])}};}function _0x3adc0a(_0x21114b,_0x178cca){const _0x55abc2=_0x3ebb;_0x4a6b7c[_0x55abc2(0x328)](_0x21114b,_0x178cca);}function _0x35f027(_0x50aae3){_0x4a6b7c['delete'](_0x50aae3);}let _0x13e7d8=0x0;function _0x500f5e(){return _0x13e7d8>0x0;}function _0x18108c(){const _0x14471a=_0x3ebb;_0x13e7d8++;try{return _0x4b2490[_0x14471a(0x2a0)](undefined,arguments);}finally{_0x13e7d8--;}}function _0x4b2490(_0x573af3,_0x53ad6d,_0x21711d,_0x1b8893,_0x6d54bb,_0x28fd44){const _0xd07138=_0x3ebb;switch(_0x573af3){case _0xd07138(0x274):return _0x363804(_0x53ad6d);case'unreg':return _0xa5759e(_0x53ad6d);case'call':{const _0x43c6b9=Array[_0xd07138(0x455)]['slice'][_0xd07138(0x853)](arguments,0x2),_0x253263=_0x17d024(_0x53ad6d)[_0xd07138(0x2a0)](undefined,_0x43c6b9);return _0x253263&&typeof _0x253263[_0xd07138(0x2b0)]==='function'?_0x1df578(_0x253263):_0x253263;}case _0xd07138(0x79c):{const _0x270f98=Array[_0xd07138(0x455)]['slice'][_0xd07138(0x853)](arguments,0x2),_0x19e5f7=_0x17d024(_0x53ad6d)[_0xd07138(0x2a0)](undefined,_0x270f98);if(_0x19e5f7&&typeof _0x19e5f7[_0xd07138(0x2b0)]===_0xd07138(0x6d8))return{'$token':_0x204a9a(_0x19e5f7)};return{'$value':_0x19e5f7===undefined?null:_0x19e5f7,'$undef':_0x19e5f7===undefined};}case _0xd07138(0x37b):{const _0xd44507=_0x4a6b7c[_0xd07138(0x63c)](_0x53ad6d);if(_0xd44507)_0xd44507[_0xd07138(0x7b5)](_0x21711d,_0x1b8893);return undefined;}case'log':{const _0x149da5=_0x4a6b7c['get'](_0x53ad6d);if(_0x149da5)_0x149da5[_0xd07138(0x8a6)](_0x21711d);return undefined;}case'handler':return _0x8b8e6e(_0x53ad6d,_0x21711d,_0x1b8893,_0x6d54bb,_0x28fd44,arguments[0x6],arguments[0x7]);case'quantum':return _0x2be118(_0x53ad6d,_0x21711d,_0x1b8893);case _0xd07138(0x5cd):return _0x91efc1(_0x53ad6d,_0x21711d,_0x1b8893,_0x6d54bb,_0x28fd44,arguments[0x6]);case _0xd07138(0x741):return _0x42fd53[_0xd07138(0x2a0)](null,Array['prototype'][_0xd07138(0x5ca)][_0xd07138(0x853)](arguments,0x1));case _0xd07138(0x370):return _0x2418f9(_0x53ad6d,_0x21711d,_0x1b8893);case _0xd07138(0x7a9):return _0x2611c1(_0x53ad6d);case _0xd07138(0x457):{const _0x35bf68=((async()=>{const _0x5a6f64=_0xd07138,_0x4f278d=await globalThis[_0x5a6f64(0x430)](_0x53ad6d);if(!_0x4f278d['ok']){const _0x5af822=new Error('HTTP\x20'+_0x4f278d['status']);_0x5af822[_0x5a6f64(0x748)]=_0x5a6f64(0x821);throw _0x5af822;}return _0x4f278d[_0x5a6f64(0x792)]();})());return _0x1df578(_0x35bf68)??null;}case _0xd07138(0x2f6):return _0x27c48d(_0x53ad6d,_0x21711d,_0x1b8893);case _0xd07138(0x454):return _0x9c9ea8(_0x53ad6d,_0x21711d,_0x1b8893);case _0xd07138(0x1c8):return _0x44b07a(_0x53ad6d,_0x21711d,_0x1b8893);default:throw new Error(_0xd07138(0x722)+_0x573af3);}}return bridge_1={'inNativeCall':_0x500f5e,'regObject':_0x5bc300,'checkSignals':_0x38a9cc,'setCurrentDb':_0x41612e,'forgetDb':_0x6543be,'storePayload':_0x297456,'registerEnv':_0x405316,'resolvePayload':_0x3dd118,'bridge':_0x18108c,'reg':_0x363804,'unreg':_0xa5759e,'fnOf':_0x17d024,'track':_0x204a9a,'resolve':_0x2611c1,'registerTarget':_0x3adc0a,'unregisterTarget':_0x35f027,'setKick':_0x4ea32c,'kickOwnedBy':_0x2c9c02},bridge_1;}var writebatch,hasRequiredWritebatch;function requireWritebatch(){const _0x3e8400=_0x2ec26e;if(hasRequiredWritebatch)return writebatch;hasRequiredWritebatch=0x1;const {reclass:_0x31afee}=requireErrors(),_0x5e1aa3=requireBridge(),_0x130925=new Map();let _0x37e0f3=null;function _0x4ee250(_0x36549a){if(_0x37e0f3)return;_0x37e0f3=_0x36549a,_0x36549a['setFlushNotify'](_0x2dbecc);}function _0x2dbecc(){const _0x183b6a=_0x3ebb,_0x22b73e=_0x37e0f3[_0x183b6a(0x378)]();for(const _0x141ae2 of _0x22b73e){const _0x15021e=_0x130925['get'](_0x141ae2);_0x15021e&&(_0x130925['delete'](_0x141ae2),_0x15021e());}}function _0x4c8597(_0x751699,_0x201245){const _0x246834=_0x3ebb;_0x130925[_0x246834(0x328)](_0x751699,_0x201245);}class _0x316e59{constructor(_0xb42a32){this['db']=_0xb42a32,this['queue']=[],this['scheduled']=![],this['inBatch']=![],this['inflight']=new Set();}[_0x3e8400(0x414)](_0x139f2c,_0x302dae,_0x41ddaf,_0xdbe5aa){const _0x59c7ee=_0x3e8400;if(_0x5e1aa3['inNativeCall']())try{return Promise[_0x59c7ee(0x7a9)](this['db']['_call'](_0x139f2c,_0x302dae,_0x41ddaf,_0xdbe5aa));}catch(_0x4fceb3){return Promise['reject'](_0x4fceb3);}const _0x108bf7=new Promise((_0xa51933,_0x580aa9)=>{const _0x281d10=_0x59c7ee;this[_0x281d10(0x601)]['push']({'item':[_0x139f2c,_0x302dae,_0x41ddaf,_0xdbe5aa],'resolve':_0xa51933,'reject':_0x580aa9});});this['inflight'][_0x59c7ee(0x7df)](_0x108bf7);const _0x94e3c6=()=>this['inflight'][_0x59c7ee(0x82f)](_0x108bf7);return _0x108bf7[_0x59c7ee(0x2b0)](_0x94e3c6,_0x94e3c6),!this[_0x59c7ee(0x45f)]&&(this['scheduled']=!![],setImmediate(()=>{const _0x213208=_0x59c7ee;this['scheduled']=![],this[_0x213208(0x2cd)]();})),_0x108bf7;}[_0x3e8400(0x2cd)](){const _0x45b9cc=_0x3e8400;if(!this[_0x45b9cc(0x601)][_0x45b9cc(0x6cf)])return;if(this['inBatch']){!this[_0x45b9cc(0x45f)]&&(this[_0x45b9cc(0x45f)]=!![],setImmediate(()=>{const _0x17fe7d=_0x45b9cc;this[_0x17fe7d(0x45f)]=![],this[_0x17fe7d(0x2cd)]();}));return;}const _0x3645cb=this[_0x45b9cc(0x601)];this[_0x45b9cc(0x601)]=[],this[_0x45b9cc(0x826)](_0x3645cb);}[_0x3e8400(0x826)](_0x3ce5c1){const _0x115f66=_0x3e8400;let _0x394af5;this[_0x115f66(0x74d)]=!![];try{_0x394af5=this['db'][_0x115f66(0x6bd)][_0x115f66(0x550)](_0x3ce5c1[_0x115f66(0x1a7)](_0x5dfc8e=>_0x5dfc8e[_0x115f66(0x24c)]));}catch(_0x1cdb31){this['inBatch']=![];if(_0x3ce5c1['length']>0x1){for(const _0x402a9f of _0x3ce5c1)this[_0x115f66(0x826)]([_0x402a9f]);return;}const _0x2bdf42=_0x31afee(_0x1cdb31);for(const _0x171a00 of _0x3ce5c1)_0x171a00[_0x115f66(0x6f0)](_0x2bdf42);return;}finally{this[_0x115f66(0x74d)]=![];}try{this['db'][_0x115f66(0x5bc)][_0x115f66(0x536)]();}catch{}const [_0x4ef5df,_0x1d4d4f]=_0x394af5;_0x4c8597(_0x1d4d4f,()=>{const _0x366a07=_0x115f66;for(let _0x4d203a=0x0;_0x4d203a<_0x3ce5c1['length'];_0x4d203a++){const _0x4e08e8=_0x4ef5df[_0x4d203a];if(_0x4e08e8&&_0x4e08e8[0x0])_0x3ce5c1[_0x4d203a][_0x366a07(0x7a9)](_0x4e08e8[0x1]);else _0x3ce5c1[_0x4d203a][_0x366a07(0x6f0)](_0x31afee(_0x4e08e8?_0x4e08e8[0x1]:new Error(_0x366a07(0x4fe))));}});}async[_0x3e8400(0x56b)](){const _0x2c8d52=_0x3e8400;this[_0x2c8d52(0x2cd)]();while(this['inflight'][_0x2c8d52(0x221)]){await Promise[_0x2c8d52(0x795)]([...this[_0x2c8d52(0x381)]]),this['commit']();}let _0x28f69b;try{_0x28f69b=this['db'][_0x2c8d52(0x6bd)][_0x2c8d52(0x5fe)]();}catch{return;}await new Promise(_0x30e686=>_0x4c8597(_0x28f69b,_0x30e686));}}return writebatch={'install':_0x4ee250,'WriteBatch':_0x316e59,'whenSettled':_0x4c8597},writebatch;}var pump,hasRequiredPump;function requirePump(){const _0x27783f=_0x2ec26e;if(hasRequiredPump)return pump;hasRequiredPump=0x1;const _0x9c9dd1=Number(process.env.OKDB_NATIVE_IDLE_MS)||0xfa;class _0x308716{constructor(_0x28fc0e){const _0x58b9ca=_0x3ebb;this['native']=_0x28fc0e,this['timer']=null,this[_0x58b9ca(0x176)]=null,this[_0x58b9ca(0x48c)]=![],this[_0x58b9ca(0x2d9)]=![],this[_0x58b9ca(0x759)]=![],this[_0x58b9ca(0x34e)]=![],this[_0x58b9ca(0x5e3)]=0x0,this[_0x58b9ca(0x278)]=[],this[_0x58b9ca(0x316)]=[];}[_0x27783f(0x52a)](_0x11f050){return new Promise(_0x53f83d=>{const _0x504af0=_0x3ebb,_0x7250c8=setTimeout(_0x184747,_0x11f050);function _0x184747(){clearTimeout(_0x7250c8),_0x53f83d();}this[_0x504af0(0x316)][_0x504af0(0x2fb)](_0x184747);});}[_0x27783f(0x4cf)](){const _0x432468=_0x27783f;if(this[_0x432468(0x316)][_0x432468(0x6cf)]===0x0)return;const _0x1d38ba=this[_0x432468(0x316)];this['turnWaiters']=[];for(const _0x25840a of _0x1d38ba)_0x25840a();}['start'](){const _0x269c1d=_0x27783f;this[_0x269c1d(0x2d9)]=![],this[_0x269c1d(0x536)]();}['stop'](){const _0x5677e1=_0x27783f;this[_0x5677e1(0x2d9)]=!![];if(this['timer'])clearTimeout(this[_0x5677e1(0x6e6)]);if(this[_0x5677e1(0x176)])clearImmediate(this[_0x5677e1(0x176)]);this[_0x5677e1(0x6e6)]=this[_0x5677e1(0x176)]=null,this[_0x5677e1(0x4cf)]();}[_0x27783f(0x536)](){const _0x1cad52=_0x27783f;if(this['stopped']||this[_0x1cad52(0x176)])return;this[_0x1cad52(0x6e6)]&&(clearTimeout(this['timer']),this[_0x1cad52(0x6e6)]=null),this[_0x1cad52(0x176)]=setImmediate(()=>{const _0xcf993c=_0x1cad52;this[_0xcf993c(0x176)]=null,this['turn']();});}[_0x27783f(0x53f)](){const _0x55e555=_0x27783f;if(this[_0x55e555(0x2d9)]||this['pumping']){this[_0x55e555(0x34e)]=!![];return;}this[_0x55e555(0x759)]=!![];let _0x29fa22;try{this[_0x55e555(0x5e3)]++,_0x29fa22=this[_0x55e555(0x68e)][_0x55e555(0x2e6)]();if(this[_0x55e555(0x3f4)])this['afterTurn']();}catch(_0x241654){_0x29fa22=_0x9c9dd1,process['nextTick'](()=>{throw _0x241654;});}finally{this['pumping']=![],this[_0x55e555(0x4cf)]();}if(this[_0x55e555(0x2d9)]||_0x29fa22===-0x2)return;if(this[_0x55e555(0x34e)])return this['dirty']=![],this[_0x55e555(0x536)]();const _0x3fdf4e=_0x29fa22<0x0?_0x9c9dd1:Math[_0x55e555(0x3e7)](0x0,Math['min'](_0x29fa22,_0x9c9dd1));if(_0x3fdf4e<=0x0)return this[_0x55e555(0x536)]();this['timer']=setTimeout(()=>{this['timer']=null,this['turn']();},Math[_0x55e555(0x342)](_0x3fdf4e));if(this[_0x55e555(0x6e6)][_0x55e555(0x702)])this['timer'][_0x55e555(0x702)]();}}return pump={'Pumper':_0x308716},pump;}var dist$1={},hasRequiredDist$1;function requireDist$1(){const _0x1987ae=_0x2ec26e;if(hasRequiredDist$1)return dist$1;hasRequiredDist$1=0x1;const _0x5a05a1=Symbol['for']('@harperdb/extended-iterable:skip'),_0x461e90={'value':null,'done':!![]},_0x3ca1bd={'value':null,'done':!![]};!Symbol['asyncIterator']&&(Symbol[_0x1987ae(0x1d6)]=Symbol[_0x1987ae(0x401)](_0x1987ae(0x549)));const _0x39cd87={};class _0x5148f5{constructor(_0x2f32e0){const _0x453e91=_0x1987ae;_0x2f32e0&&(this['iterate']=_0x2f32e0[Symbol[_0x453e91(0x56e)]]['bind'](_0x2f32e0));}['map'](_0x1f595d){const _0x579f41=_0x1987ae;let _0x124d9f=this,_0x5c69c0=new _0x5148f5();return _0x5c69c0[_0x579f41(0x1ab)]=(_0x520035=_0x39cd87)=>{const _0xf8ab0e=_0x579f41,{async:_0xf4d854}=_0x520035;let _0x3358db=_0x124d9f[_0xf4d854?Symbol[_0xf8ab0e(0x1d6)]:Symbol[_0xf8ab0e(0x56e)]](_0x520035);if(!_0xf4d854)_0x124d9f[_0xf8ab0e(0x1b6)]=!![];let _0x28b150=-0x1;return{'next'(_0x5ca741){const _0x23a265=_0xf8ab0e;let _0x32f50c;do{let _0x1e8d61;try{if(_0x5ca741)_0x1e8d61=_0x5ca741,_0x5ca741=null;else{_0x28b150++,_0x1e8d61=_0x3358db['next']();if(_0x1e8d61['then'])return!_0xf4d854&&this[_0x23a265(0x2c5)](new Error('Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results')),_0x1e8d61[_0x23a265(0x2b0)](_0x2d76d4=>this['next'](_0x2d76d4),_0x2c1c51=>{const _0x1165f5=_0x23a265;return this[_0x1165f5(0x2c5)](_0x2c1c51);});}if(_0x1e8d61[_0x23a265(0x3b5)]===!![]){this[_0x23a265(0x3b5)]=!![];if(_0x5c69c0[_0x23a265(0x500)])_0x5c69c0[_0x23a265(0x500)]();return _0x1e8d61;}try{_0x32f50c=_0x1f595d['call'](_0x124d9f,_0x1e8d61['value'],_0x28b150);if(_0x32f50c&&_0x32f50c[_0x23a265(0x2b0)]&&_0xf4d854)return _0x32f50c[_0x23a265(0x2b0)](_0x1e2753=>_0x1e2753===_0x5a05a1?this[_0x23a265(0x788)]():{'value':_0x1e2753},_0x35ea5a=>{const _0x27f358=_0x23a265;if(_0x520035[_0x27f358(0x555)])_0x35ea5a[_0x27f358(0x1f0)]=!![];return this[_0x27f358(0x2c5)](_0x35ea5a);});}catch(_0x2d1a37){if(_0x520035[_0x23a265(0x555)])_0x2d1a37[_0x23a265(0x1f0)]=!![];throw _0x2d1a37;}}catch(_0x5f475f){if(_0x5c69c0['handleError'])try{_0x32f50c=_0x5c69c0['handleError'](_0x5f475f,_0x28b150);}catch(_0x262706){return this[_0x23a265(0x2c5)](_0x262706);}else return this[_0x23a265(0x2c5)](_0x5f475f);}}while(_0x32f50c===_0x5a05a1);if(_0x32f50c===_0x461e90)return this[_0x23a265(0x77e)]();return{'value':_0x32f50c};},'return'(_0x53095a){const _0x580376=_0xf8ab0e;if(!this[_0x580376(0x3b5)]){_0x3ca1bd[_0x580376(0x820)]=_0x53095a,this[_0x580376(0x3b5)]=!![];if(_0x5c69c0[_0x580376(0x500)])_0x5c69c0[_0x580376(0x500)]();_0x3358db['return']?.();}return _0x3ca1bd;},'throw'(_0x107675){const _0x5f2d3a=_0xf8ab0e;if(_0x107675[_0x5f2d3a(0x1f0)]){if(_0x5c69c0[_0x5f2d3a(0x2c1)])try{return{'value':_0x5c69c0['returnRecoverableErrors'](_0x107675)};}catch(_0x5cba68){this['return']();throw _0x5cba68;}if(_0x520035[_0x5f2d3a(0x555)])throw _0x107675;}this[_0x5f2d3a(0x77e)]();throw _0x107675;}};},_0x5c69c0;}[Symbol[_0x1987ae(0x1d6)]](_0x34c8df){if(_0x34c8df)_0x34c8df={..._0x34c8df,'async':!![]};else _0x34c8df={'async':!![]};return this['iterator']=this['iterate'](_0x34c8df);}[Symbol[_0x1987ae(0x56e)]](_0x26047f){const _0x323c26=_0x1987ae;return this[_0x323c26(0x56e)]=this[_0x323c26(0x1ab)](_0x26047f);}['filter'](_0x336357){const _0x2c0021=_0x1987ae;let _0x158648=this[_0x2c0021(0x1a7)](_0x55f9cc=>{const _0x45032c=_0x2c0021;let _0x4b0b9e=_0x336357(_0x55f9cc);if(_0x4b0b9e?.[_0x45032c(0x2b0)])return _0x4b0b9e[_0x45032c(0x2b0)](_0x558d52=>_0x558d52?_0x55f9cc:_0x5a05a1);else return _0x4b0b9e?_0x55f9cc:_0x5a05a1;}),_0x5af842=_0x158648[_0x2c0021(0x1ab)];return _0x158648[_0x2c0021(0x1ab)]=(_0x1afd04=_0x39cd87)=>{if(_0x1afd04['continueOnRecoverableError'])_0x1afd04={..._0x1afd04,'continueOnRecoverableError':![]};return _0x5af842(_0x1afd04);},_0x158648;}['forEach'](_0x9efbc1){const _0x3b31b2=_0x1987ae;let _0x121368=this[_0x3b31b2(0x56e)]=this[_0x3b31b2(0x1ab)](),_0x5bb4dd;while((_0x5bb4dd=_0x121368[_0x3b31b2(0x788)]())['done']!==!![]){_0x9efbc1(_0x5bb4dd[_0x3b31b2(0x820)]);}}['concat'](_0x2474e5){const _0x53609a=_0x1987ae;let _0x782ec6=new _0x5148f5();return _0x782ec6[_0x53609a(0x1ab)]=(_0x2af6d3=_0x39cd87)=>{const _0x410ca2=_0x53609a;let _0x160da4=this[_0x410ca2(0x56e)]=this[_0x410ca2(0x1ab)](_0x2af6d3),_0x4c4602=!![];function _0x38501f(_0x5b3ead){const _0x3d6e50=_0x410ca2;if(_0x4c4602)try{_0x4c4602=![],_0x160da4=_0x2474e5[_0x2af6d3[_0x3d6e50(0x887)]?Symbol[_0x3d6e50(0x1d6)]:Symbol['iterator']](),_0x5b3ead=_0x160da4[_0x3d6e50(0x788)]();if(_0x782ec6[_0x3d6e50(0x500)]){if(_0x5b3ead[_0x3d6e50(0x2b0)]){if(!_0x2af6d3[_0x3d6e50(0x887)])throw new Error('Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results');_0x5b3ead[_0x3d6e50(0x2b0)](_0x3546a5=>{const _0x13b4ce=_0x3d6e50;if(_0x3546a5[_0x13b4ce(0x3b5)]())_0x782ec6[_0x13b4ce(0x500)]();},_0x257838=>{const _0x27db0e=_0x3d6e50;this[_0x27db0e(0x77e)]();throw _0x257838;});}else{if(_0x5b3ead[_0x3d6e50(0x3b5)])_0x782ec6[_0x3d6e50(0x500)]();}}}catch(_0x27b75d){this[_0x3d6e50(0x2c5)](_0x27b75d);}else{if(_0x782ec6[_0x3d6e50(0x500)])_0x782ec6[_0x3d6e50(0x500)]();}return _0x5b3ead;}return{'next'(){const _0x1f8120=_0x410ca2;try{let _0x482873=_0x160da4['next']();if(_0x482873[_0x1f8120(0x2b0)]){if(!_0x2af6d3[_0x1f8120(0x887)])throw new Error(_0x1f8120(0x319));return _0x482873['then'](_0x187cff=>{const _0x516dfb=_0x1f8120;if(_0x187cff[_0x516dfb(0x3b5)])return _0x38501f(_0x187cff);return _0x187cff;});}if(_0x482873[_0x1f8120(0x3b5)])return _0x38501f(_0x482873);return _0x482873;}catch(_0x470a0c){this['throw'](_0x470a0c);}},'return'(_0x48ea45){const _0x1faadf=_0x410ca2;if(!this[_0x1faadf(0x3b5)]){_0x3ca1bd[_0x1faadf(0x820)]=_0x48ea45,this[_0x1faadf(0x3b5)]=!![];if(_0x782ec6[_0x1faadf(0x500)])_0x782ec6[_0x1faadf(0x500)]();_0x160da4['return']();}return _0x3ca1bd;},'throw'(_0xb95358){const _0xef1717=_0x410ca2;if(_0x2af6d3['continueOnRecoverableError'])throw _0xb95358;this[_0xef1717(0x77e)]();throw _0xb95358;}};},_0x782ec6;}[_0x1987ae(0x164)](_0x14f8bd){const _0x5e62d5=_0x1987ae;let _0x21686d=new _0x5148f5();return _0x21686d[_0x5e62d5(0x1ab)]=(_0x5e6fae=_0x39cd87)=>{const _0x218555=_0x5e62d5;let _0xc1bc18=this[_0x218555(0x56e)]=this[_0x218555(0x1ab)](_0x5e6fae),_0x8bfd5;return{'next'(_0x43f829){const _0x85affb=_0x218555;try{do{if(_0x8bfd5){let _0x15b7b8;if(_0x43f829)_0x15b7b8=_0x43f829,_0x43f829=undefined;else _0x15b7b8=_0x8bfd5['next']();if(_0x15b7b8[_0x85affb(0x2b0)]){if(!_0x5e6fae[_0x85affb(0x887)])throw new Error(_0x85affb(0x319));return _0x15b7b8[_0x85affb(0x2b0)](_0x26fd06=>this[_0x85affb(0x788)](_0x26fd06));}if(!_0x15b7b8[_0x85affb(0x3b5)])return _0x15b7b8;}let _0xfd1f91;if(_0x43f829!=undefined)_0xfd1f91=_0x43f829,_0x43f829=undefined;else _0xfd1f91=_0xc1bc18[_0x85affb(0x788)]();if(_0xfd1f91[_0x85affb(0x2b0)]){if(!_0x5e6fae[_0x85affb(0x887)])throw new Error(_0x85affb(0x319));return _0x8bfd5=undefined,_0xfd1f91[_0x85affb(0x2b0)](_0x258e48=>this['next'](_0x258e48));}if(_0xfd1f91[_0x85affb(0x3b5)]){if(_0x21686d['onDone'])_0x21686d[_0x85affb(0x500)]();return _0xfd1f91;}try{let _0x23e794=_0x14f8bd(_0xfd1f91[_0x85affb(0x820)]);if(_0x23e794?.[_0x85affb(0x2b0)]){if(!_0x5e6fae[_0x85affb(0x887)])throw new Error('Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results');return _0x23e794[_0x85affb(0x2b0)](_0x50c510=>{const _0x588a95=_0x85affb;return Array[_0x588a95(0x69e)](_0x50c510)||_0x50c510 instanceof _0x5148f5?(_0x8bfd5=_0x50c510[Symbol['iterator']](),this[_0x588a95(0x788)]()):(_0x8bfd5=null,{'value':_0x50c510});},_0x1e3496=>{const _0x533cd3=_0x85affb;if(_0x5e6fae[_0x533cd3(0x555)])_0x1e3496['continueIteration']=!![];this[_0x533cd3(0x2c5)](_0x1e3496);});}if(Array['isArray'](_0x23e794)||_0x23e794 instanceof _0x5148f5)_0x8bfd5=_0x23e794[Symbol[_0x85affb(0x56e)]]();else return _0x8bfd5=null,{'value':_0x23e794};}catch(_0x3ebe1f){if(_0x5e6fae[_0x85affb(0x555)])_0x3ebe1f[_0x85affb(0x1f0)]=!![];throw _0x3ebe1f;}}while(!![]);}catch(_0x3ff06f){this[_0x85affb(0x2c5)](_0x3ff06f);}},'return'(){if(_0x21686d['onDone'])_0x21686d['onDone']();if(_0x8bfd5)_0x8bfd5['return']();return _0xc1bc18['return']();},'throw'(_0x343826){const _0x4e64c4=_0x218555;if(_0x5e6fae['continueOnRecoverableError'])throw _0x343826;if(_0x21686d[_0x4e64c4(0x500)])_0x21686d[_0x4e64c4(0x500)]();if(_0x8bfd5)_0x8bfd5[_0x4e64c4(0x77e)]();this[_0x4e64c4(0x77e)]();throw _0x343826;}};},_0x21686d;}[_0x1987ae(0x5ca)](_0x5b9512,_0x25594f){const _0x490e95=_0x1987ae;let _0x549a68=this[_0x490e95(0x1a7)]((_0x4a0d8a,_0x12a0e2)=>{const _0x2df051=_0x490e95;if(_0x12a0e2<_0x5b9512)return _0x5a05a1;if(_0x12a0e2>=_0x25594f)return _0x461e90[_0x2df051(0x820)]=_0x4a0d8a,_0x461e90;return _0x4a0d8a;});return _0x549a68[_0x490e95(0x3ed)]=(_0x417f91,_0x3310e5)=>{if(_0x3310e5<_0x5b9512)return _0x5a05a1;if(_0x3310e5>=_0x25594f)return _0x461e90;throw _0x417f91;},_0x549a68;}[_0x1987ae(0x3ec)](_0x26dc19){const _0x23e7d1=_0x1987ae;if(typeof _0x26dc19!=='function')throw new TypeError(_0x23e7d1(0x620));let _0x186d46=this[_0x23e7d1(0x1a7)](_0x35a85b=>{return _0x35a85b;}),_0x403497=_0x186d46[_0x23e7d1(0x1ab)];return _0x186d46['iterate']=(_0x38408a=_0x39cd87)=>{return _0x403497({..._0x38408a,'continueOnRecoverableError':!![]});},_0x186d46[_0x23e7d1(0x2c1)]=_0x26dc19,_0x186d46;}[_0x1987ae(0x788)](){const _0x5787e0=_0x1987ae;if(!this[_0x5787e0(0x56e)])this[_0x5787e0(0x56e)]=this[_0x5787e0(0x1ab)]();return this[_0x5787e0(0x56e)][_0x5787e0(0x788)]();}['toJSON'](){const _0x1a8c87=_0x1987ae;if(this[_0x1a8c87(0x45b)]&&this['asArray']['forEach'])return this[_0x1a8c87(0x45b)];const _0x139743=new Error(_0x1a8c87(0x1e8));_0x139743[_0x1a8c87(0x7cd)]=this[_0x1a8c87(0x45b)];throw _0x139743;}get[_0x1987ae(0x45b)](){const _0xb0cc56=_0x1987ae;if(this['_asArray'])return this['_asArray'];let _0xd0cfe4=new Promise((_0x8280ed,_0x143eab)=>{const _0x4cf9dc=_0x3ebb;let _0x29d826=this[_0x4cf9dc(0x1ab)](!![]),_0x3f8762=[],_0x356000=this;Object[_0x4cf9dc(0x79d)](_0x3f8762,'iterable',{'value':_0x356000});function _0x1eeaba(_0x5039f2){const _0x2d9493=_0x4cf9dc;while(_0x5039f2[_0x2d9493(0x3b5)]!==!![]){if(_0x5039f2[_0x2d9493(0x2b0)])return _0x5039f2[_0x2d9493(0x2b0)](_0x1eeaba);else _0x3f8762[_0x2d9493(0x2fb)](_0x5039f2[_0x2d9493(0x820)]);_0x5039f2=_0x29d826[_0x2d9493(0x788)]();}_0x8280ed(_0x356000[_0x2d9493(0x891)]=_0x3f8762);}_0x1eeaba(_0x29d826[_0x4cf9dc(0x788)]());});return _0xd0cfe4[_0xb0cc56(0x1e6)]=this,this[_0xb0cc56(0x891)]||(this[_0xb0cc56(0x891)]=_0xd0cfe4);}[_0x1987ae(0x87a)](){const _0x36fc5d=_0x1987ae;return this[_0x36fc5d(0x45b)];}['at'](_0x2c3ea9){for(let _0x349d85 of this){if(_0x2c3ea9--===0x0)return _0x349d85;}}}return _0x5148f5[_0x1987ae(0x455)][_0x1987ae(0x2fd)]=_0x461e90,dist$1['ExtendedIterable']=_0x5148f5,dist$1['SKIP']=_0x5a05a1,dist$1;}var iterable,hasRequiredIterable;function requireIterable(){const _0xa82641=_0x2ec26e;if(hasRequiredIterable)return iterable;hasRequiredIterable=0x1;const {ExtendedIterable:_0x28c927}=requireDist$1(),_0x5e1aef=Number(process.env.OKDB_NATIVE_RANGE_CHUNK)||0x3e8,_0x194ba2=Math[_0xa82641(0x5a9)](_0x5e1aef,Number(process.env.OKDB_NATIVE_ROW_CHUNK)||0x100),_0x4947ec=new Set(['getRange',_0xa82641(0x2c0),'query','getChanges']),_0xa00acc=Math['min'](_0x194ba2,Number(process.env.OKDB_NATIVE_RANGE_FIRST)||0x1),_0x35064c=0x4,_0x488710=(_0x357318,_0x18d9b9=_0x5e1aef)=>Math['min'](_0x18d9b9,_0x357318*_0x35064c),_0x41dafc={'value':undefined,'done':!![]};function _0xa7d87f(_0x259bb1){const _0x2476a8=_0xa82641,_0x22fa97=new _0x28c927();return _0x22fa97[_0x2476a8(0x1ab)]=()=>{let _0x445b95=0x0;return{'next'(){const _0x12895a=_0x3ebb;return _0x445b95<_0x259bb1[_0x12895a(0x6cf)]?{'value':_0x259bb1[_0x445b95++],'done':![]}:{'value':undefined,'done':!![]};},'return'(){const _0x1bfc7e=_0x3ebb;return _0x445b95=_0x259bb1[_0x1bfc7e(0x6cf)],{'value':undefined,'done':!![]};},'throw'(){const _0x10784d=_0x3ebb;return _0x445b95=_0x259bb1[_0x10784d(0x6cf)],{'value':undefined,'done':!![]};}};},_0x22fa97;}const _0x239bd6=_0x27c4c1=>typeof _0x27c4c1===_0xa82641(0x5c1)&&!Number[_0xa82641(0x7bc)](_0x27c4c1)?Math[_0xa82641(0x3e7)](0x0,Math['ceil'](_0x27c4c1)):Infinity,_0x2c94cb=_0x37cb35=>typeof _0x37cb35===_0xa82641(0x5c1)?Math[_0xa82641(0x3e7)](0x0,Math[_0xa82641(0x47a)](_0x37cb35))||0x0:0x0;function _0x833593(_0x5c37c6,_0x3fed88,_0x109743,_0x124e76={}){const _0x22d4f9=_0xa82641,_0x5b4aa1=new _0x28c927(),_0x570f1e=(_0x124e76[_0x22d4f9(0x70e)]||_0x239bd6)(_0x3fed88[_0x22d4f9(0x695)]),_0x51418e=_0x124e76[_0x22d4f9(0x1bf)]?_0x194ba2:_0x5e1aef,_0x3eefd9=_0x124e76['resumeOpts']||((_0x57e7b0,_0x8832be)=>{const _0x39496c=_0x22d4f9;_0x57e7b0['start']=_0x8832be,_0x57e7b0[_0x39496c(0x7ea)]=!![],delete _0x57e7b0[_0x39496c(0x534)];});let _0xd90516=null;if(_0x124e76[_0x22d4f9(0x44b)]){const _0x4d0cd6={..._0x3fed88,'limit':Math[_0x22d4f9(0x5a9)](_0xa00acc,_0x570f1e)};_0xd90516={'rows':_0x5c37c6(_0x4d0cd6),'limit':_0x4d0cd6[_0x22d4f9(0x695)]};const _0x4aa76e=_0xd90516;queueMicrotask(()=>{const _0x5e9b43=_0x22d4f9;_0x4aa76e[_0x5e9b43(0x1af)]=!![];});}return _0x5b4aa1[_0x22d4f9(0x1ab)]=()=>{const _0x34aff3=_0x22d4f9;let _0x2f8ffc=[],_0x526880=0x0,_0x366eed=0x0,_0x497e05,_0x2bf474=![],_0x3d255b=![],_0x5e63d2=_0xa00acc;if(_0xd90516&&!_0xd90516[_0x34aff3(0x1af)]&&!_0xd90516[_0x34aff3(0x166)]){_0xd90516[_0x34aff3(0x166)]=!![],_0x2f8ffc=_0xd90516[_0x34aff3(0x1bf)],_0x2bf474=!![],_0x5e63d2=_0x488710(_0x5e63d2,_0x51418e);if(_0x2f8ffc['length']<_0xd90516[_0x34aff3(0x695)])_0x3d255b=!![];if(_0x2f8ffc['length'])_0x497e05=_0x109743(_0x2f8ffc[_0x2f8ffc[_0x34aff3(0x6cf)]-0x1]);}const _0x1f7a2e=()=>{const _0x1425eb=_0x34aff3;if(_0x3d255b)return;const _0x2bf847=_0x570f1e-_0x366eed;if(_0x2bf847<=0x0){_0x3d255b=!![],_0x2f8ffc=[];return;}const _0x1f1aa3={..._0x3fed88,'limit':Math[_0x1425eb(0x5a9)](_0x5e63d2,_0x2bf847)};if(_0x2bf474)_0x3eefd9(_0x1f1aa3,_0x497e05);_0x2bf474=!![],_0x5e63d2=_0x488710(_0x5e63d2,_0x51418e),_0x2f8ffc=_0x5c37c6(_0x1f1aa3),_0x526880=0x0;if(_0x2f8ffc[_0x1425eb(0x6cf)]<_0x1f1aa3[_0x1425eb(0x695)])_0x3d255b=!![];if(_0x2f8ffc['length'])_0x497e05=_0x109743(_0x2f8ffc[_0x2f8ffc['length']-0x1]);};return{'next'(){const _0xc30842=_0x34aff3;if(_0x526880>=_0x2f8ffc[_0xc30842(0x6cf)])_0x1f7a2e();if(_0x526880>=_0x2f8ffc[_0xc30842(0x6cf)])return{'value':undefined,'done':!![]};return _0x366eed++,{'value':_0x2f8ffc[_0x526880++],'done':![]};},'return'(){return _0x3d255b=!![],_0x2f8ffc=[],{'value':undefined,'done':!![]};},'throw'(){return _0x3d255b=!![],_0x2f8ffc=[],{'value':undefined,'done':!![]};}};},_0x5b4aa1;}function _0x5d159b(_0x54585c,_0x36f96c,_0xd1cfd0,_0x44f6ea,_0x88b3a8={}){const _0x387f45=_0xa82641,_0x3866bf=(_0x88b3a8[_0x387f45(0x70e)]||_0x239bd6)(_0x44f6ea&&_0x44f6ea[_0x387f45(0x695)]),_0x483493=_0x4947ec[_0x387f45(0x51e)](_0x36f96c)?_0x194ba2:_0x5e1aef,_0xbf9edd=(_0x88b3a8['offsetOf']||_0x2c94cb)(_0x44f6ea&&_0x44f6ea['offset']),_0x4f460d=(_0x570169,_0x3f34e2,_0x45243a)=>{const _0xbd39b8=_0x387f45,_0x172db8=_0x3866bf-_0x3f34e2,_0x3378f4=Math[_0xbd39b8(0x5a9)](_0x45243a,_0x172db8),_0xc5e71={'limit':_0x3378f4,'offset':_0xbf9edd+_0x3f34e2},_0x3c0a03=_0x54585c(_0xbd39b8(0x2dd),[_0x570169,_0x36f96c,_0x3378f4===_0x172db8?Infinity:_0x3378f4,..._0xd1cfd0(_0xc5e71)]);if(_0x3c0a03[0x0]===-0x1){const _0x29e8c1={'offset':_0xbf9edd+_0x3f34e2};if(_0x172db8!==Infinity)_0x29e8c1[_0xbd39b8(0x695)]=_0x172db8;return{'pin':0x0,'rows':_0x54585c(_0x36f96c,_0xd1cfd0(_0x29e8c1)),'raw':Infinity,'eager':!![]};}return{'pin':_0x3c0a03[0x0],'rows':_0x3c0a03[0x1],'raw':_0x3c0a03[0x2]};},_0x1b93c7=_0x54057c=>{if(_0x54057c)_0x54585c('unpin',[_0x54057c]);};function _0x5d0035(_0x5e7c96,_0x34518a,_0x12e61a){const _0x194fd2=_0x387f45;let _0x4e3e0f=0x0,_0x395ed0=[],_0x117084=0x0,_0x17e155=_0x5e7c96,_0x47f84f=_0xa00acc,_0x4d87dc=_0x3866bf-_0x5e7c96<=0x0;if(_0x12e61a)({buf:_0x395ed0,pos:_0x117084,consumed:_0x17e155,size:_0x47f84f,exhausted:_0x4d87dc}=_0x12e61a);const _0x1bb616=_0x4e8c09=>{const _0x53e374=_0x3ebb;_0x4e3e0f=_0x4e8c09[_0x53e374(0x7a7)],_0x395ed0=_0x4e8c09[_0x53e374(0x1bf)],_0x117084=0x0,_0x17e155+=_0x4e8c09[_0x53e374(0x540)],_0x47f84f=_0x488710(_0x47f84f,_0x483493);if(!_0x4e3e0f)_0x4d87dc=!![];};if(_0x34518a)_0x1bb616(_0x34518a);const _0x57a5cf=()=>{const _0x328b57=_0x4e3e0f;_0x4e3e0f=0x0,_0x1b93c7(_0x328b57);},_0x5e0bb6={'next'(){const _0x3fde35=_0x3ebb;while(_0x117084>=_0x395ed0[_0x3fde35(0x6cf)]){if(_0x4d87dc||_0x3866bf-_0x17e155<=0x0)return _0x4d87dc=!![],_0x57a5cf(),_0x41dafc;try{_0x1bb616(_0x4f460d(_0x4e3e0f,_0x17e155,_0x47f84f));}catch(_0x1454bc){_0x4e3e0f=0x0,_0x4d87dc=!![],_0x395ed0=[];throw _0x1454bc;}}return{'value':_0x395ed0[_0x117084++],'done':![]};},'return'(){return _0x57a5cf(),_0x41dafc;},'throw'(){return _0x57a5cf(),_0x41dafc;},'resumed'(){return _0x5d0035(0x0,null,{'buf':_0x395ed0,'pos':_0x117084,'consumed':_0x17e155,'size':_0x47f84f,'exhausted':_0x4d87dc});},[Symbol[_0x194fd2(0x56e)]](){return this;}};return _0x5e0bb6;}function _0xf7421b(){if(_0x3866bf<=0x0)return null;const _0x50df45=_0x4f460d(0x0,0x0,_0xa00acc);return queueMicrotask(()=>{const _0x5d19ec=_0x3ebb;!_0x50df45['taken']&&(_0x50df45[_0x5d19ec(0x1af)]=!![],_0x1b93c7(_0x50df45[_0x5d19ec(0x7a7)]));}),_0x50df45;}return{'source':_0x5d0035,'prefetch':_0xf7421b};}function _0x2a43b8(_0x4a2f13){const _0x5a0a68=_0xa82641;if(!_0x4a2f13||_0x4a2f13[_0x5a0a68(0x166)]||_0x4a2f13[_0x5a0a68(0x1af)])return null;return _0x4a2f13[_0x5a0a68(0x166)]=!![],_0x4a2f13;}return iterable={'fromArray':_0xa7d87f,'chunkedRange':_0x833593,'pinnedChunks':_0x5d159b,'claimPrefetch':_0x2a43b8,'lmdbLimit':_0x239bd6,'lmdbOffset':_0x2c94cb,'CHUNK':_0x5e1aef,'ROW_CHUNK':_0x194ba2,'FIRST':_0xa00acc},iterable;}var rawdb,hasRequiredRawdb;function requireRawdb(){const _0x35423b=_0x2ec26e;if(hasRequiredRawdb)return rawdb;hasRequiredRawdb=0x1;const {fromArray:_0x18c071}=requireIterable();class _0x1e0359{constructor(_0x4f71b5,_0x1dff7d='',_0x86d33f={},_0x3f248b=null){const _0x2ba8a2=_0x3ebb;this['_env']=_0x4f71b5,this[_0x2ba8a2(0x6fe)]=_0x1dff7d,this['dupSort']=!!(_0x86d33f&&_0x86d33f[_0x2ba8a2(0x691)]),this['useVersions']=!!(_0x86d33f&&_0x86d33f[_0x2ba8a2(0x1f9)]),this[_0x2ba8a2(0x231)]=_0x3f248b||this,this[_0x2ba8a2(0x7c7)]=null;}get[_0x35423b(0x1a4)](){const _0x3b75bc=_0x35423b;return this[_0x3b75bc(0x691)]?!![]:this['useVersions']?'v':![];}['_n'](_0x255745,_0x43e615){const _0x502d04=_0x35423b;return this[_0x502d04(0x51f)][_0x502d04(0x21e)][_0x502d04(0x49e)](_0x502d04(0x540),this['_env'][_0x502d04(0x6fe)],_0x255745,[this['name'],this[_0x502d04(0x1a4)],..._0x43e615],!![]);}['_read'](_0x157456,_0x444263){const _0x541e6f=_0x35423b;return this[_0x541e6f(0x51f)][_0x541e6f(0x21e)][_0x541e6f(0x49e)](_0x541e6f(0x540),this['_env'][_0x541e6f(0x6fe)],_0x157456,[this[_0x541e6f(0x6fe)],this[_0x541e6f(0x1a4)],..._0x444263],![]);}['_write'](_0x119722){const _0x1f1644=_0x35423b,_0x2b220a=this[_0x1f1644(0x51f)][_0x1f1644(0x7bb)];if(_0x2b220a)_0x2b220a[_0x1f1644(0x2fb)]({'sub':this[_0x1f1644(0x6fe)],'dup':this[_0x1f1644(0x1a4)],..._0x119722});else this['_env'][_0x1f1644(0x21e)][_0x1f1644(0x49e)](_0x1f1644(0x540),this[_0x1f1644(0x51f)][_0x1f1644(0x6fe)],_0x1f1644(0x26f),[[{'sub':this[_0x1f1644(0x6fe)],'dup':this[_0x1f1644(0x1a4)],..._0x119722}]],!![]);}['get'](_0x205e08){const _0x14f1ef=_0x35423b;return this['_read'](_0x14f1ef(0x63c),[_0x205e08]);}['getEntry'](_0x1b66b7){const _0x1b8953=_0x35423b;if(this['useVersions'])return this[_0x1b8953(0x3f7)](_0x1b8953(0x2ec),[_0x1b66b7]);const _0x3071ca=this[_0x1b8953(0x63c)](_0x1b66b7);return _0x3071ca===undefined?undefined:{'value':_0x3071ca};}['doesExist'](_0x4b5545){const _0x1868f4=_0x35423b;return this[_0x1868f4(0x3f7)](_0x1868f4(0x3bf),[_0x4b5545]);}[_0x35423b(0x4a2)](_0x5bc229){return this['get'](_0x5bc229);}[_0x35423b(0x3fa)](_0x333817={}){const _0x4bb7cc=_0x35423b,_0xbf0348=this[_0x4bb7cc(0x3f7)]('getRange',[_0x333817]),_0x134628=_0x333817[_0x4bb7cc(0x89c)]===![],_0x1140dd=_0x333817[_0x4bb7cc(0x1d5)]===![];return _0x18c071(_0xbf0348[_0x4bb7cc(0x1a7)](([_0x3ede5f,_0x16c185,_0x5f49ba])=>{if(_0x134628)return _0x3ede5f;if(_0x1140dd)return _0x16c185;return _0x5f49ba===undefined?{'key':_0x3ede5f,'value':_0x16c185}:{'key':_0x3ede5f,'value':_0x16c185,'version':_0x5f49ba};}));}[_0x35423b(0x7d2)](_0x29b295={}){const _0x22cee0=_0x35423b;return _0x18c071(this[_0x22cee0(0x3f7)](_0x22cee0(0x3fa),[_0x29b295])[_0x22cee0(0x1a7)](([_0x2afc7b])=>_0x2afc7b));}['getValues'](_0x3343ab,_0x4381d6={}){const _0x53a8fa=_0x35423b,_0x1e58b9=this[_0x53a8fa(0x3f7)]('getRange',[{..._0x4381d6,'start':_0x3343ab,'end':_0x3343ab,'inclusiveEnd':!![]}]);return _0x18c071(_0x1e58b9[_0x53a8fa(0x1a7)](([,_0x1a0e10])=>_0x1a0e10));}['getCount'](_0x374f3a={}){const _0x4ef855=_0x35423b;return this['_read'](_0x4ef855(0x3c2),[_0x374f3a]);}[_0x35423b(0x7fd)](){const _0x5aa917=_0x35423b;return{'entryCount':this[_0x5aa917(0x436)]()};}['put'](_0x276ef4,_0x2adbd2,_0xbf4116){const _0xb35d03=_0x35423b;return this[_0xb35d03(0x75c)]({'op':_0xb35d03(0x27f),'key':_0x276ef4,'value':_0x2adbd2,'version':_0xbf4116}),Promise['resolve'](!![]);}[_0x35423b(0x225)](_0x5c0275,_0x25b8d1,_0x12f181){const _0x55e1b0=_0x35423b;return this[_0x55e1b0(0x75c)]({'op':_0x55e1b0(0x27f),'key':_0x5c0275,'value':_0x25b8d1,'version':_0x12f181}),!![];}[_0x35423b(0x42f)](_0x26ef76,_0x696c07){const _0x3aaee8=_0x35423b;return this[_0x3aaee8(0x75c)]({'op':'remove','key':_0x26ef76,'value':_0x696c07}),Promise[_0x3aaee8(0x7a9)](!![]);}[_0x35423b(0x76e)](_0x34cb12,_0x2aebb2){const _0x75b941=_0x35423b;return this[_0x75b941(0x75c)]({'op':_0x75b941(0x42f),'key':_0x34cb12,'value':_0x2aebb2}),!![];}[_0x35423b(0x1f7)](){const _0x3c0772=_0x35423b;this[_0x3c0772(0x75c)]({'op':_0x3c0772(0x871)});}[_0x35423b(0x660)](){const _0xc20b57=_0x35423b;return this[_0xc20b57(0x75c)]({'op':_0xc20b57(0x871)}),Promise['resolve']();}[_0x35423b(0x303)](){const _0x4e10e0=_0x35423b;this[_0x4e10e0(0x1f7)]();}[_0x35423b(0x840)](_0x4877fc,_0x34129e={}){const _0x836566=_0x35423b,_0xa1eeb6=typeof _0x4877fc==='object'?_0x4877fc:_0x34129e,_0x105db4=typeof _0x4877fc===_0x836566(0x1be)?_0x4877fc[_0x836566(0x6fe)]:_0x4877fc,_0x17b910=new _0x1e0359(this[_0x836566(0x51f)],_0x105db4,_0xa1eeb6);return _0x17b910[_0x836566(0x75c)]({'op':_0x836566(0x766)}),_0x17b910;}[_0x35423b(0x5a1)](){}['transactionSync'](_0x9dd73c){const _0x544d94=_0x35423b;return this[_0x544d94(0x24d)](_0x9dd73c);}async[_0x35423b(0x7f7)](_0x34359d){return this['_tx'](_0x34359d);}[_0x35423b(0x55d)](_0x10eab1){const _0x5ba257=_0x35423b;return this[_0x5ba257(0x24d)](_0x10eab1);}['_tx'](_0x154c11){const _0x5522cc=_0x35423b,_0x21c445=this['_env'];if(_0x21c445[_0x5522cc(0x7bb)])return _0x154c11();_0x21c445[_0x5522cc(0x7bb)]=[];let _0x5cf05d;try{_0x5cf05d=_0x154c11();}catch(_0x3d9e83){_0x21c445[_0x5522cc(0x7bb)]=null;throw _0x3d9e83;}const _0x3dca63=_0x21c445[_0x5522cc(0x7bb)];_0x21c445[_0x5522cc(0x7bb)]=null;if(_0x3dca63['length'])_0x21c445[_0x5522cc(0x21e)][_0x5522cc(0x49e)](_0x5522cc(0x540),_0x21c445[_0x5522cc(0x6fe)],_0x5522cc(0x26f),[_0x3dca63],!![]);return _0x5cf05d;}[_0x35423b(0x271)](){return{'done'(){}};}[_0x35423b(0x173)](){}}return rawdb={'RawDb':_0x1e0359},rawdb;}var views,hasRequiredViews;function requireViews(){const _0x5b9bac=_0x2ec26e;if(hasRequiredViews)return views;hasRequiredViews=0x1;const {RawDb:_0x122f6f}=requireRawdb();class _0x479a26{constructor(_0x4a8caf){const _0x41480e=_0x3ebb;this[_0x41480e(0x30b)]=_0x4a8caf,this['_n']=(_0x3ef18f,_0x187cc6,_0xf0ec03=!![])=>_0x4a8caf[_0x41480e(0x21e)][_0x41480e(0x49e)](_0x41480e(0x62a),_0x4a8caf[_0x41480e(0x6fe)],_0x3ef18f,_0x187cc6,_0xf0ec03);}get[_0x5b9bac(0x7f0)](){const _0x54f673=_0x5b9bac,_0x1426a8=this,_0x2e97e1=this[_0x54f673(0x30b)],_0x35a1ab=_0x37aa02=>_0x37aa02?new _0x122f6f(_0x2e97e1,_0x37aa02[_0x54f673(0x6fe)],{'dupSort':_0x37aa02[_0x54f673(0x876)]}):undefined,_0x2a815d=_0x450fce=>{const _0x50d0df=_0x54f673,_0x102376=_0x1426a8['_n'](_0x50d0df(0x742),[_0x450fce],![]);if(!_0x102376)return undefined;const _0x249df1=_0x102376[_0x50d0df(0x4d1)],_0x13ec90=new Map(Object[_0x50d0df(0x72a)](_0x249df1[_0x50d0df(0x4d3)])),_0x4a119a=new Map(Object['entries'](_0x102376[_0x50d0df(0x368)])[_0x50d0df(0x1a7)](([_0x5d2661,_0x59409d])=>[_0x5d2661,_0x35a1ab(_0x59409d)]));return{'name':_0x450fce,'compiled':{'T':_0x249df1['T'],'reducers':_0x249df1[_0x50d0df(0x412)],'refs':_0x13ec90,'granId':_0x249df1[_0x50d0df(0x6a9)],'type':_0x249df1[_0x50d0df(0x673)],'_nidFor':_0x4df682=>_0x1426a8['_n'](_0x50d0df(0x64a),[_0x450fce,_0x4df682],![])},'viewDb':_0x35a1ab(_0x102376[_0x50d0df(0x318)][_0x50d0df(0x320)]),'metaDb':_0x35a1ab(_0x102376['dbs'][_0x50d0df(0x3e3)]),'itemsDb':_0x35a1ab(_0x102376[_0x50d0df(0x318)][_0x50d0df(0x51b)]),'bucketsDb':_0x35a1ab(_0x102376[_0x50d0df(0x318)][_0x50d0df(0x262)]),'sortedDb':_0x35a1ab(_0x102376[_0x50d0df(0x318)][_0x50d0df(0x510)]),'groupsDb':_0x35a1ab(_0x102376[_0x50d0df(0x318)][_0x50d0df(0x78a)]),'prevDb':_0x35a1ab(_0x102376[_0x50d0df(0x318)]['prevDb']),'refItemsDbs':_0x4a119a,'refTrackingDbs':new Map(Object[_0x50d0df(0x72a)](_0x102376['refTrackingDbs']||{})[_0x50d0df(0x1a7)](([_0x1cab2d,_0x32c320])=>[_0x1cab2d,_0x35a1ab(_0x32c320)])),'stopFn':_0x102376['hasStopFn']?async()=>_0x1426a8['_n'](_0x50d0df(0x6d3),[_0x450fce]):null,'bootstrapWorker':null};};return{'get':_0x482eed=>_0x2a815d(_0x482eed),'has':_0x166159=>_0x1426a8['_n'](_0x54f673(0x879),[],![])[_0x54f673(0x1ac)](_0x166159),'keys':()=>_0x1426a8['_n'](_0x54f673(0x879),[],![])[Symbol[_0x54f673(0x56e)]](),get 'size'(){return _0x1426a8['_n']('stateNames',[],![])['length'];},[Symbol[_0x54f673(0x56e)]]:()=>_0x1426a8['_n'](_0x54f673(0x879),[],![])[_0x54f673(0x1a7)](_0x430226=>[_0x430226,_0x2a815d(_0x430226)])[Symbol[_0x54f673(0x56e)]]()};}get[_0x5b9bac(0x4c0)](){const _0x478be2=_0x5b9bac,_0x4ef5e7=this;return{'has':_0x15fcc9=>_0x4ef5e7['_n'](_0x478be2(0x83b),[],![])[_0x478be2(0x1ac)](_0x15fcc9),get 'size'(){const _0x30535a=_0x478be2;return _0x4ef5e7['_n'](_0x30535a(0x83b),[],![])[_0x30535a(0x6cf)];},'keys':()=>_0x4ef5e7['_n']('customReducerNames',[],![])[Symbol[_0x478be2(0x56e)]]()};}async[_0x5b9bac(0x522)](){const _0x38b7ee=_0x5b9bac;return this['_n'](_0x38b7ee(0x522),[]);}async[_0x5b9bac(0x696)](_0x253c9e={}){const _0x2eaf70=_0x5b9bac;return this['_n'](_0x2eaf70(0x696),[_0x253c9e]);}async[_0x5b9bac(0x740)](_0x288426,_0x173584){const _0x29cf72=_0x5b9bac;return this['_n'](_0x29cf72(0x740),[_0x288426,_0x173584]),{'name':_0x288426};}['get'](_0x5332cb,_0x36465d={}){const _0x49038b=_0x5b9bac,_0x2de072=this['_n'](_0x49038b(0x63c),[_0x5332cb,{'preview':_0x36465d?.[_0x49038b(0x84c)]??{}}],![]);if(_0x2de072==null)return null;const _0x409252=this['_n'](_0x49038b(0x309),[_0x5332cb],![]);if(!_0x409252)return _0x2de072;const _0x3c9fe9=_0x1ea6eb=>(_0x548e24={})=>this['_n'](_0x49038b(0x4a5),[_0x5332cb,_0x1ea6eb,_0x548e24],![]);if(_0x409252[_0x49038b(0x4e3)]){_0x2de072['items']=_0x3c9fe9({'kind':_0x49038b(0x4e3)});for(const _0x4bbe69 of _0x409252['reducers']){if(!_0x4bbe69['items'])continue;if(_0x4bbe69['grouped']){const _0x3833dc=_0x2de072[_0x4bbe69[_0x49038b(0x6fe)]];if(_0x3833dc?.[_0x49038b(0x84c)]&&Array[_0x49038b(0x69e)](_0x3833dc[_0x49038b(0x84c)])){for(const _0x2d1f95 of _0x3833dc['preview'])_0x2d1f95[_0x49038b(0x4a5)]=_0x3c9fe9({'kind':'group','reducer':_0x4bbe69[_0x49038b(0x6fe)],'key':_0x2d1f95[_0x49038b(0x366)]});}}else _0x2de072[_0x4bbe69[_0x49038b(0x6fe)]]&&(_0x2de072[_0x4bbe69[_0x49038b(0x6fe)]][_0x49038b(0x4a5)]=_0x3c9fe9({'kind':_0x49038b(0x2c2),'reducer':_0x4bbe69[_0x49038b(0x6fe)]}));}}for(const _0x5b078a of _0x409252[_0x49038b(0x4d3)]){if(!_0x5b078a[_0x49038b(0x4e3)])continue;const _0x345b24=_0x2de072[_0x5b078a['name']];if(!_0x345b24||typeof _0x345b24!=='object')continue;_0x345b24[_0x49038b(0x4a5)]=_0x3c9fe9({'kind':'view','ref':_0x5b078a[_0x49038b(0x6fe)]});for(const _0xa69530 of _0x5b078a['reducers']){if(!_0xa69530['items'])continue;if(_0xa69530['grouped']){const _0x30dc98=_0x345b24[_0xa69530[_0x49038b(0x6fe)]];if(_0x30dc98?.[_0x49038b(0x84c)]&&Array[_0x49038b(0x69e)](_0x30dc98[_0x49038b(0x84c)])){for(const _0xa3cddc of _0x30dc98[_0x49038b(0x84c)])_0xa3cddc[_0x49038b(0x4a5)]=_0x3c9fe9({'kind':_0x49038b(0x6ba),'ref':_0x5b078a[_0x49038b(0x6fe)],'reducer':_0xa69530[_0x49038b(0x6fe)],'key':_0xa3cddc[_0x49038b(0x366)]});}}else _0x345b24[_0xa69530[_0x49038b(0x6fe)]]&&(_0x345b24[_0xa69530[_0x49038b(0x6fe)]][_0x49038b(0x4a5)]=_0x3c9fe9({'kind':_0x49038b(0x2c2),'ref':_0x5b078a[_0x49038b(0x6fe)],'reducer':_0xa69530[_0x49038b(0x6fe)]}));}}return _0x2de072;}[_0x5b9bac(0x466)](_0x397dcf){const _0x4bcbfd=_0x5b9bac;return this['_n'](_0x4bcbfd(0x466),[_0x397dcf],![]);}['itemsGroups'](_0x308463,_0xb1b997={}){const _0x35d4a8=_0x5b9bac;return this['_n'](_0x35d4a8(0x547),[_0x308463,_0xb1b997],![]);}[_0x5b9bac(0x380)](_0x5cc720,_0x3e886a={}){const _0x592366=_0x5b9bac;return this['_n'](_0x592366(0x380),[_0x5cc720,_0x3e886a],![]);}[_0x5b9bac(0x459)](_0x42a1f1,_0x417e3e={}){const _0x26c056=_0x5b9bac;return this['_n'](_0x26c056(0x459),[_0x42a1f1,_0x417e3e],![]);}async['list'](){const _0x163a83=_0x5b9bac;return this['_n'](_0x163a83(0x338),[],![]);}async[_0x5b9bac(0x261)](_0x253757){const _0x274a16=_0x5b9bac;return this['_n'](_0x274a16(0x261),[_0x253757],![])??null;}async['remove'](_0x41e972,_0x1f6981={}){const _0x565fb0=_0x5b9bac;return this['_n'](_0x565fb0(0x42f),[_0x41e972,_0x1f6981]);}async['stop'](_0x2be049){return this['_n']('stop',[_0x2be049]);}async[_0x5b9bac(0x898)](_0x1bdf00){const _0x1b4bc4=_0x5b9bac;return this['_n'](_0x1b4bc4(0x898),[_0x1bdf00]);}async['rebuild'](_0x887f4e){const _0xe4908=_0x5b9bac;return this['_n'](_0xe4908(0x574),[_0x887f4e]);}async[_0x5b9bac(0x3aa)](_0x3cf988){return this['_n']('resetView',[_0x3cf988]);}[_0x5b9bac(0x542)](_0x3bbf38,_0x5174c9={}){const _0x376c40=_0x5b9bac;return this['_n'](_0x376c40(0x542),[_0x3bbf38,{'apply':_0x5174c9&&_0x5174c9[_0x376c40(0x2a0)]}]);}}return views={'OKDBViews':_0x479a26},views;}var queue,hasRequiredQueue;function requireQueue(){const _0x5f167b=_0x2ec26e;if(hasRequiredQueue)return queue;hasRequiredQueue=0x1;const {OKDBError:_0x456343}=requireErrors(),_0x3bdc0e=requireBridge();class _0x165e3b{constructor(_0x10e7cb){const _0x5b5101=_0x3ebb;this[_0x5b5101(0x30b)]=_0x10e7cb,this['okdb']=_0x10e7cb['okdb'],this['log']=_0x10e7cb[_0x5b5101(0x21e)]['log'][_0x5b5101(0x675)]({'feature':'queue'}),this['_workers']=new Set();}['_n'](_0x293991,_0x235525,_0x237794=!![]){const _0x280399=_0x3ebb;return this[_0x280399(0x21e)][_0x280399(0x49e)](_0x280399(0x601),this[_0x280399(0x30b)][_0x280399(0x6fe)],_0x293991,_0x235525,_0x237794);}['_w'](_0xcb0b46,_0x4df2b1){const _0x460825=_0x3ebb;return this[_0x460825(0x21e)][_0x460825(0x55c)](this['_n'](_0xcb0b46,_0x4df2b1));}async['_ensure'](){const _0x18d665=_0x3ebb;return this['_n'](_0x18d665(0x766),[]);}async['list'](_0x4507a8={}){const _0x389845=_0x3ebb;return this['_n'](_0x389845(0x338),[_0x4507a8],![]);}get[_0x5f167b(0x3ae)](){const _0x5d1f3a=_0x5f167b,{RawDb:_0x4f7d63}=requireRawdb();return this[_0x5d1f3a(0x6d1)]||(this['__logsDb']=new _0x4f7d63(this[_0x5d1f3a(0x30b)],_0x5d1f3a(0x736)));}async['_sweepOrphanLogs'](){const _0xdffc7d=_0x5f167b;return this['_w'](_0xdffc7d(0x3cd),[]);}async[_0x5f167b(0x414)](_0xe8b47d,_0x409d3d,_0x248785={}){const _0xa03f36=_0x5f167b,{txn:_0x209350,..._0x62be91}=_0x248785||{};if(_0x209350)return this[_0xa03f36(0x6eb)](_0x209350,_0xe8b47d,_0x409d3d,_0x62be91);const _0x559261=this[_0xa03f36(0x21e)][_0xa03f36(0x53b)];if(_0x559261&&_0x559261['queue'][_0xa03f36(0x6cf)])_0x559261[_0xa03f36(0x2cd)]();const _0x7b1b67=this['_n']('enqueueClaim',[_0xe8b47d,_0x409d3d,_0x62be91],![]);return this[_0xa03f36(0x21e)]['_settleWrite'](_0x7b1b67['id'])[_0xa03f36(0x2b0)](_0x564b94=>{const _0x32b037=_0xa03f36;if(_0x7b1b67[_0x32b037(0x657)])this[_0x32b037(0x24a)](_0xe8b47d);else try{this[_0x32b037(0x21e)][_0x32b037(0x5bc)]['wake']();}catch{}return _0x564b94;});}[_0x5f167b(0x24a)](_0x33700f){queueMicrotask(()=>{const _0x3b1cc5=_0x3ebb;try{this['_n'](_0x3b1cc5(0x32a),[_0x33700f]);}catch{}});}[_0x5f167b(0x6eb)](_0x21cc64,_0x3fbd77,_0x1eab7a,_0x5bcf68){const _0x4a62cf=_0x5f167b,_0x43bee5=_0x21cc64[_0x4a62cf(0x540)]??_0x21cc64;if(_0x43bee5[_0x4a62cf(0x208)])throw new _0x456343(_0x4a62cf(0x527),_0x4a62cf(0x1f6));if(_0x43bee5[_0x4a62cf(0x21e)]&&_0x43bee5[_0x4a62cf(0x21e)]!==this[_0x4a62cf(0x30b)]&&_0x43bee5[_0x4a62cf(0x21e)][_0x4a62cf(0x6fe)]!==this[_0x4a62cf(0x30b)][_0x4a62cf(0x6fe)])throw new _0x456343(_0x4a62cf(0x287),_0x4a62cf(0x878),{'txnEnv':_0x43bee5[_0x4a62cf(0x21e)]['name'],'queueEnv':this['env'][_0x4a62cf(0x6fe)]});const _0x1d33e1=this['_n'](_0x4a62cf(0x76b),[_0x3fbd77,_0x1eab7a,_0x5bcf68],![]);if(_0x1d33e1[_0x4a62cf(0x5f4)])return _0x1d33e1['id'];if(_0x1d33e1[_0x4a62cf(0x70c)])_0x21cc64['update'](_0x4a62cf(0x425),_0x1d33e1[_0x4a62cf(0x70c)]['key'],_0x1d33e1[_0x4a62cf(0x70c)]['value'],{'ifVersion':_0x1d33e1[_0x4a62cf(0x70c)][_0x4a62cf(0x280)]});if(_0x1eab7a!==undefined)_0x21cc64['put'](_0x4a62cf(0x345),_0x1d33e1['id'],_0x1eab7a);_0x21cc64[_0x4a62cf(0x27f)](_0x4a62cf(0x425),_0x1d33e1['id'],_0x1d33e1[_0x4a62cf(0x5cd)]);if(typeof _0x43bee5['onDo']===_0x4a62cf(0x6d8))_0x43bee5[_0x4a62cf(0x576)](()=>{const _0x2858a6=_0x4a62cf;if(this['_n'](_0x2858a6(0x551),[_0x1d33e1['id'],_0x3fbd77,_0x1d33e1[_0x2858a6(0x80b)],_0x1d33e1[_0x2858a6(0x689)]]))this[_0x2858a6(0x24a)](_0x3fbd77);});return _0x1d33e1['id'];}async['claim'](_0x15b363,_0x26f837={}){const _0x4e4e98=_0x5f167b;if(typeof _0x15b363!==_0x4e4e98(0x4bb)||!_0x15b363)throw new _0x456343(_0x4e4e98(0x23c),_0x4e4e98(0x694));return this['_w'](_0x4e4e98(0x27a),[_0x15b363,_0x26f837]);}async[_0x5f167b(0x385)](_0x52d253,_0x31ee4e,_0x211b43=null){return this['_w']('markJobHeartbeat',[_0x52d253,_0x31ee4e,_0x211b43]);}async[_0x5f167b(0x2de)](_0x2c7791,_0x5aae67,_0x390259=null){const _0x24111d=_0x5f167b;return this[_0x24111d(0x385)](_0x2c7791,_0x5aae67,_0x390259);}async[_0x5f167b(0x21d)](_0x308503,_0x350597,_0x4ca53c){const _0x2c487c=_0x5f167b;return this['_w'](_0x2c487c(0x21d),[_0x308503,_0x350597,_0x4ca53c]);}async[_0x5f167b(0x1e1)](_0x193a7f,_0x2383e4,_0x53072a){const _0x130439=_0x5f167b;return this['_w'](_0x130439(0x1e1),[_0x193a7f,_0x2383e4,_0x53072a]);}async[_0x5f167b(0x684)](_0x3cfb38,_0x36766c,_0x535e0e){const _0x54dfce=_0x5f167b;return this[_0x54dfce(0x1e1)](_0x3cfb38,_0x36766c,_0x535e0e);}async[_0x5f167b(0x83c)](_0x5889f8,_0x182fd2,_0x36754a,_0x8717dd){const _0x24c594=_0x5f167b,_0x325636=_0x36754a instanceof Error?{'message':_0x36754a[_0x24c594(0x2d2)],'stack':_0x36754a[_0x24c594(0x3fd)]}:_0x36754a;return this['_w'](_0x24c594(0x83c),[_0x5889f8,_0x182fd2,_0x325636,_0x8717dd]);}async[_0x5f167b(0x61b)](_0x286df9,_0x4a512b,_0xcb100d,_0x18695f){const _0x48955d=_0x5f167b;return this[_0x48955d(0x83c)](_0x286df9,_0x4a512b,_0xcb100d,_0x18695f);}async['releaseClaim'](_0x31c027,_0x4e2d70,_0x456eaa={}){const _0x519955=_0x5f167b;return this['_w'](_0x519955(0x509),[_0x31c027,_0x4e2d70,_0x456eaa]);}async[_0x5f167b(0x64d)](_0x4e566b){const _0xf3e14f=_0x5f167b;return this['_n'](_0xf3e14f(0x64d),[_0x4e566b],![]);}async[_0x5f167b(0x5ea)](_0xe5adf0,_0x79e811={},_0x508992={}){const _0x5ad4e6=_0x5f167b,_0x283a38=_0x508992&&_0x508992[_0x5ad4e6(0x27c)];if(!_0x283a38)return this['_w'](_0x5ad4e6(0x5ea),[_0xe5adf0,_0x79e811]);const {next:_0x3072b1,version:_0x1af718}=this['_n'](_0x5ad4e6(0x362),[_0xe5adf0,_0x79e811],![]);_0x283a38['update'](_0x5ad4e6(0x425),_0xe5adf0,_0x3072b1,{'ifVersion':_0x1af718});let _0x4cac8b;if(_0x5ad4e6(0x3f6)in _0x79e811){if(_0x79e811['payload']===undefined){if(this[_0x5ad4e6(0x30b)][_0x5ad4e6(0x2ec)]('~queue_payloads',_0xe5adf0))_0x283a38['remove']('~queue_payloads',_0xe5adf0);}else _0x283a38[_0x5ad4e6(0x27f)](_0x5ad4e6(0x345),_0xe5adf0,_0x79e811['payload']);_0x4cac8b=_0x79e811[_0x5ad4e6(0x3f6)];}else _0x4cac8b=this[_0x5ad4e6(0x30b)][_0x5ad4e6(0x63c)]('~queue_payloads',_0xe5adf0);return{..._0x3072b1,'payload':_0x4cac8b};}async[_0x5f167b(0x55e)](_0x2e04fd,_0x3eaf6d={}){const _0xae12f=_0x5f167b,_0x25caf9=_0x3eaf6d&&_0x3eaf6d[_0xae12f(0x27c)];if(!_0x25caf9)return this['_w'](_0xae12f(0x55e),[_0x2e04fd]);if(!_0x2e04fd)throw new _0x456343(_0xae12f(0x17c),_0xae12f(0x694));if(!this[_0xae12f(0x30b)][_0xae12f(0x2ec)](_0xae12f(0x425),_0x2e04fd))return![];_0x25caf9[_0xae12f(0x42f)]('~queue_jobs',_0x2e04fd);if(this[_0xae12f(0x30b)][_0xae12f(0x2ec)](_0xae12f(0x345),_0x2e04fd))_0x25caf9[_0xae12f(0x42f)](_0xae12f(0x345),_0x2e04fd);if(typeof _0x25caf9[_0xae12f(0x576)]===_0xae12f(0x6d8))_0x25caf9['onDo'](()=>this['_n'](_0xae12f(0x2d3),[_0x2e04fd]));return!![];}async['cancelJob'](_0x303982){const _0x303d53=_0x5f167b;return this['_w'](_0x303d53(0x51a),[_0x303982]);}async[_0x5f167b(0x836)](_0x2257b6){const _0x2bdb08=_0x5f167b;return this['_w'](_0x2bdb08(0x836),[_0x2257b6]);}async['_clearChunked'](_0xa8c34d,_0x5e7149,_0x67899e){const _0x234528=_0x5f167b,_0x598d34=this['_n'](_0x234528(0x46d),[_0x5e7149??null,_0x67899e??0x0,_0xa8c34d]),_0x335115=0x1f4;for(let _0x5ca9dc=0x0;_0x5ca9dc<_0x598d34['length'];_0x5ca9dc+=_0x335115){this['_n']('bulkRemoveChunk',[_0x598d34[_0x234528(0x5ca)](_0x5ca9dc,_0x5ca9dc+_0x335115),_0x5ca9dc,_0x598d34['length'],_0x5e7149??null]);if(_0x5ca9dc+_0x335115<_0x598d34['length'])await new Promise(_0x397e67=>setImmediate(_0x397e67));}return this['_n'](_0x234528(0x3b3),[_0x598d34[_0x234528(0x6cf)],_0x5e7149??null]),await new Promise(_0xb3593b=>setImmediate(_0xb3593b)),_0x598d34['length'];}async[_0x5f167b(0x699)](_0x178a25,_0x4a322d){return this['_clearChunked']('done',_0x178a25,_0x4a322d);}async['clearFailed'](_0x5ca29e,_0x832783){const _0x27acfc=_0x5f167b;return this['_clearChunked'](_0x27acfc(0x719),_0x5ca29e,_0x832783);}async['retryFailed'](_0x283c7e,_0x36e9f2){const _0xdbb590=_0x5f167b;return this['_w'](_0xdbb590(0x3c6),[_0x283c7e??null,_0x36e9f2??0x0]);}async[_0x5f167b(0x85b)](_0x599d1e,_0x2c4d99){const _0x3e7fda=_0x5f167b;return this['_w'](_0x3e7fda(0x85b),[_0x599d1e??null,_0x2c4d99??0x0]);}async[_0x5f167b(0x640)](_0x1f8670,_0x2ada03,_0x148f71){const _0x4e4bf6=_0x5f167b;return this['_w'](_0x4e4bf6(0x640),[_0x1f8670,_0x2ada03,_0x148f71]);}async[_0x5f167b(0x50e)](_0x276714,_0x462b4d={}){const _0x51c99c=_0x5f167b;return this['_n'](_0x51c99c(0x50e),[_0x276714,_0x462b4d],![]);}async[_0x5f167b(0x67d)](_0x2e24c1,_0x54ef3d={}){const _0x541533=_0x5f167b,{txn:_0x5c5846,..._0xf3b5aa}=_0x54ef3d||{};if(!_0x5c5846)return this['_w'](_0x541533(0x67d),[_0x2e24c1,_0xf3b5aa]);const _0x35506c=(_0x56c2d3,_0xb860fc,_0x10132d,_0xb3348e)=>{const _0x14b8b6=_0x541533,_0x7e2339=Math[_0x14b8b6(0x47a)](Number(_0x56c2d3));return Number[_0x14b8b6(0x5ef)](_0x7e2339)?Math['min'](_0xb3348e,Math['max'](_0x10132d,_0x7e2339)):_0xb860fc;},_0x1fe6b4=typeof _0x2e24c1==='string'?_0x2e24c1[_0x541533(0x78c)]():'';if(!_0x1fe6b4)throw new Error(_0x541533(0x467));const _0x276720=_0x35506c(_0xf3b5aa[_0x541533(0x658)],0x0,0x0,0x3b9aca00);_0x5c5846[_0x541533(0x27f)](_0x541533(0x5f6),_0x1fe6b4,{'id':_0x1fe6b4,'tokens':_0x35506c(_0xf3b5aa['tokens'],_0x276720,0x0,_0x276720),'capacity':_0x276720,'refill_amount':_0x35506c(_0xf3b5aa[_0x541533(0x6e4)],0x0,0x0,0x3b9aca00),'refill_every':_0x35506c(_0xf3b5aa['refill_every'],0x0,0x0,0x16d*0x18*0x36ee80),'updated':Date[_0x541533(0x89e)]()});}async[_0x5f167b(0x5ae)](_0x1116a3,_0xb69148){const _0x3ccd2c=_0x5f167b;return this['_w'](_0x3ccd2c(0x5ae),[_0x1116a3,_0xb69148]);}async[_0x5f167b(0x603)](_0x3a3039){const _0x129840=_0x5f167b;return this['_w'](_0x129840(0x603),[_0x3a3039]);}[_0x5f167b(0x758)](_0x5e183c){const _0x5abe8f=_0x5f167b,_0x3edb78=this['_n'](_0x5abe8f(0x758),[_0x5e183c],![]);return _0x3edb78===null&&typeof _0x5e183c===_0x5abe8f(0x4bb)&&_0x5e183c[_0x5abe8f(0x78c)]()?undefined:_0x3edb78;}async[_0x5f167b(0x864)](_0x384890,_0x4ae31f){const _0x480791=_0x5f167b;return this['_w'](_0x480791(0x864),[_0x384890,_0x4ae31f]);}async[_0x5f167b(0x598)](_0xa8f726,_0x21309d={}){const _0x3e7b5b=_0x5f167b;return this['_w'](_0x3e7b5b(0x598),[_0xa8f726,_0x21309d]);}async[_0x5f167b(0x242)](_0x5ebf93){const _0x48ba9e=_0x5f167b;return this['_n'](_0x48ba9e(0x242),[_0x5ebf93],![]);}async['listJobTypes'](){const _0x2ef641=_0x5f167b;return this['_n'](_0x2ef641(0x4a6),[],![]);}async['removeJobType'](_0x4cf4aa){const _0x51f15e=_0x5f167b;return this['_w'](_0x51f15e(0x608),[_0x4cf4aa]);}[_0x5f167b(0x453)](_0x7b5739){const _0x1cab3a=_0x5f167b;return this['_n'](_0x1cab3a(0x453),[_0x7b5739]);}[_0x5f167b(0x295)](_0x7c1b44){return this['_n']('resumeJobType',[_0x7c1b44]);}[_0x5f167b(0x68b)](_0x16fd39){const _0x27a953=_0x5f167b;return this['_n'](_0x27a953(0x68b),[_0x16fd39]);}async[_0x5f167b(0x75f)](_0x4f218a,_0x3dbcbb,_0x5ab69d=![]){const _0x4abb7a=_0x5f167b;return this['_w'](_0x4abb7a(0x75f),[_0x4f218a,_0x3dbcbb,_0x5ab69d]);}async[_0x5f167b(0x360)](_0x5b3811){const _0x49c574=_0x5f167b;return this['_w'](_0x49c574(0x360),[_0x5b3811]);}async[_0x5f167b(0x746)](_0x68bf6e,_0x5ec67a=0x5){const _0x29c1fb=_0x5f167b;return this['_n'](_0x29c1fb(0x746),[_0x68bf6e,_0x5ec67a],![]);}async[_0x5f167b(0x703)](_0x2405c7){const _0x983e4f=_0x5f167b;return this['_n'](_0x983e4f(0x460),[_0x2405c7]);}async[_0x5f167b(0x3fe)](_0x236d8e=0x7530){const _0x2fc41a=_0x5f167b;await Promise[_0x2fc41a(0x795)]([...this[_0x2fc41a(0x561)]]['map'](_0x411171=>_0x411171[_0x2fc41a(0x893)](_0x236d8e)));const _0x47ed79=this['_n']('stopAll',[0x0]);return this[_0x2fc41a(0x561)]['clear'](),_0x47ed79;}async[_0x5f167b(0x7f9)](){const _0x119d50=_0x5f167b,_0x10ba8d=this['_n'](_0x119d50(0x7f9),[]);return this[_0x119d50(0x561)][_0x119d50(0x871)](),_0x10ba8d;}['process'](_0x433d6e,_0x3b118e,_0x557dfa){const _0x4d4838=_0x5f167b;let _0x137893,_0x26e6c3;if(Array[_0x4d4838(0x69e)](_0x433d6e)){if(typeof _0x3b118e===_0x4d4838(0x6d8))throw new _0x456343(_0x4d4838(0x273),'BAD_PARAM');_0x26e6c3=_0x3b118e??{};if(_0x26e6c3[_0x4d4838(0x357)]!=null&&typeof _0x26e6c3['admission']!==_0x4d4838(0x6d8))throw new _0x456343(_0x4d4838(0x7fc),_0x4d4838(0x694));if(_0x433d6e[_0x4d4838(0x6cf)]===0x0)throw new _0x456343('process(entries)\x20requires\x20at\x20least\x20one\x20entry','BAD_PARAM');_0x137893=_0x433d6e['map'](_0x50e966=>{const _0x130048=_0x4d4838;if(!_0x50e966||typeof _0x50e966['type']!==_0x130048(0x4bb)||!_0x50e966[_0x130048(0x673)])throw new _0x456343('each\x20process()\x20entry\x20requires\x20a\x20non-empty\x20`type`',_0x130048(0x694));if(typeof _0x50e966[_0x130048(0x5af)]!=='function')throw new _0x456343('process()\x20entry\x20\x22'+_0x50e966[_0x130048(0x673)]+_0x130048(0x245),_0x130048(0x694));return{..._0x50e966};});}else{_0x26e6c3=_0x557dfa??{};if(typeof _0x3b118e!==_0x4d4838(0x6d8))throw new _0x456343('process()\x20entry\x20\x22'+_0x433d6e+_0x4d4838(0x245),_0x4d4838(0x694));_0x137893=[{'type':_0x433d6e,'handler':_0x3b118e,..._0x557dfa??{}}];}const _0x10ee4b=this[_0x4d4838(0x21e)];for(const _0x2c1850 of _0x137893){const _0x2b2e4f=_0x2c1850[_0x4d4838(0x5af)];_0x2c1850[_0x4d4838(0x5af)]=function(..._0x51dbc1){const _0x107a44=_0x4d4838;return _0x10ee4b[_0x107a44(0x3bc)]()['then'](()=>_0x2b2e4f['apply'](this,_0x51dbc1));};}const _0x120050=this['_n'](_0x4d4838(0x595),[_0x137893,_0x26e6c3]),_0x44f030=this,_0x54f8a2={'id':_0x120050['id'],'type':_0x120050['type'],get 'running'(){const _0x524c3a=_0x4d4838;return _0x44f030['_n'](_0x524c3a(0x479),[_0x120050['id']],![])[_0x524c3a(0x48c)];},'isRunning'(){const _0x268249=_0x4d4838;return _0x44f030['_n']('workerState',[_0x120050['id']],![])[_0x268249(0x48c)];},async 'stop'(_0x37c15c=0x7530){const _0x552593=_0x4d4838;_0x44f030['_n'](_0x552593(0x1ed),[_0x120050['id']]);const _0x317265=Date[_0x552593(0x89e)]()+_0x37c15c;while(_0x44f030['_n'](_0x552593(0x479),[_0x120050['id']],![])[_0x552593(0x600)]>0x0&&Date[_0x552593(0x89e)]()<_0x317265)await new Promise(_0x3d5319=>setTimeout(_0x3d5319,0x2));_0x44f030['_n']('stopWorkerAbort',[_0x120050['id']]),_0x3bdc0e[_0x552593(0x6da)](),_0x44f030['_workers'][_0x552593(0x82f)](_0x54f8a2);},async 'kill'(){const _0x16b583=_0x4d4838;_0x44f030['_n'](_0x16b583(0x4f6),[_0x120050['id']]),_0x44f030[_0x16b583(0x561)][_0x16b583(0x82f)](_0x54f8a2);}};return this[_0x4d4838(0x561)][_0x4d4838(0x7df)](_0x54f8a2),_0x54f8a2;}[_0x5f167b(0x217)](_0x100b8c){const _0xf3a2b1=_0x5f167b;throw new _0x456343(_0xf3a2b1(0x507)+_0x100b8c+_0xf3a2b1(0x18f)+_0x100b8c+_0xf3a2b1(0x3d9),_0xf3a2b1(0x431));}['spawn'](_0x3df9b6){const _0x4028f6=_0x5f167b;return this[_0x4028f6(0x217)](_0x3df9b6);}}return queue={'OKDBQueue':_0x165e3b},queue;}function _0x3ebb(_0x593157,_0x213824){_0x593157=_0x593157-0x162;const _0x156166=_0x1561();let _0x3ebb64=_0x156166[_0x593157];return _0x3ebb64;}var timemachine,hasRequiredTimemachine;function requireTimemachine(){const _0x16903f=_0x2ec26e;if(hasRequiredTimemachine)return timemachine;hasRequiredTimemachine=0x1;const {fromArray:_0x201b10}=requireIterable();class _0x28b613{constructor(_0x3da73d){const _0x20f200=_0x3ebb;this[_0x20f200(0x30b)]=_0x3da73d,this[_0x20f200(0x21e)]=_0x3da73d[_0x20f200(0x21e)];const _0x47fd23=(_0x1f4d13,_0x274d46)=>this['_n'](_0x1f4d13,_0x274d46,![]);this[_0x20f200(0x733)]={'getDiffs':(_0x641d38,_0x44a487,_0x125295)=>_0x47fd23(_0x20f200(0x57d),[_0x641d38,_0x44a487,_0x125295||{}]),'hasDiff':(_0x547067,_0x296e1d,_0x1ebbcd)=>_0x47fd23(_0x20f200(0x4cb),[_0x547067,_0x296e1d,_0x1ebbcd]),'getHead':(_0x56ec82,_0x3e3487)=>_0x47fd23('storeGetHead',[_0x56ec82,_0x3e3487])??null,'getHeadCount':_0x564dfb=>_0x47fd23(_0x20f200(0x3c8),[_0x564dfb]),'getTotalHeadCount':()=>_0x47fd23(_0x20f200(0x2f5),[]),'getDiffsInRange':(_0x1cac32,_0x2f1d10,_0x5d873a)=>_0x47fd23(_0x20f200(0x1b2),[_0x1cac32??null,_0x2f1d10,_0x5d873a]),'getConfig':()=>_0x47fd23(_0x20f200(0x518),[])??null,'getCursor':()=>this['_n'](_0x20f200(0x5ac),[],![])??null,get 'db'(){const _0x20ada6=_0x20f200;try{return _0x47fd23(_0x20ada6(0x2f5),[]),{};}catch{return null;}}};}get['_registrations'](){const _0x13de25=_0x3ebb,_0x467db9=(this['env'][_0x13de25(0x3e8)]?.['list']?.()||[])['filter'](_0x1ff572=>String(_0x1ff572[_0x13de25(0x4bd)]||'')[_0x13de25(0x6c8)]('time-machine:'))[_0x13de25(0x6cf)];return{'size':_0x467db9};}['_n'](_0x57d4a9,_0x5b13c6,_0x381e98=!![]){const _0x9c6978=_0x3ebb;return this[_0x9c6978(0x21e)]['_call']('tm',this['env'][_0x9c6978(0x6fe)],_0x57d4a9,_0x5b13c6,_0x381e98);}async[_0x16903f(0x1cf)](_0x3d4f9a){return this['_n']('enable',[_0x3d4f9a??null]);}async[_0x16903f(0x48e)](_0x348888){const _0x22dc23=_0x16903f;return this['_n'](_0x22dc23(0x48e),[_0x348888??null]);}async['enableAll'](){const _0x156ddb=_0x16903f;return this['_n'](_0x156ddb(0x857),[]);}async[_0x16903f(0x705)](){const _0x19a5f1=_0x16903f;return this['_n'](_0x19a5f1(0x705),[]);}async['drop'](_0xdc401c){const _0x7d477e=_0x16903f;return this['_n'](_0x7d477e(0x303),[_0xdc401c??null]);}async[_0x16903f(0x481)](){const _0x292ee6=_0x16903f;return this['_n'](_0x292ee6(0x481),[]);}[_0x16903f(0x86d)](_0x220a63){return this['_n']('isEnabled',[_0x220a63??null],![]);}[_0x16903f(0x338)](){const _0x27130e=_0x16903f;return this['_n'](_0x27130e(0x338),[],![]);}[_0x16903f(0x1c9)](_0x41ac48){const _0x231190=_0x16903f;return this['_n'](_0x231190(0x1c9),[_0x41ac48??null],![]);}[_0x16903f(0x71f)](_0x381c2f){const _0x338fba=_0x16903f;if(!_0x381c2f)return this['_n'](_0x338fba(0x5ac),[],![]);return this['_n'](_0x338fba(0x71f),[_0x381c2f],![]);}[_0x16903f(0x5ac)](){const _0x538605=_0x16903f;return this['_n'](_0x538605(0x5ac),[],![]);}[_0x16903f(0x583)](_0x312183,_0x3364d6,_0xfdead1){const _0xb5b6ac=_0x16903f;return this['_n'](_0xb5b6ac(0x583),[_0x312183,_0x3364d6,_0xfdead1],![]);}[_0x16903f(0x729)](_0x200f85,_0x42ffc9,_0xada6d7){const _0x32334c=_0x16903f;return this['_n'](_0x32334c(0x729),[_0x200f85,_0x42ffc9,_0xada6d7||{}],![]);}[_0x16903f(0x267)](_0x4d7698,_0x481f1f,_0x49600e){const _0x356c8a=_0x16903f;return this['_n'](_0x356c8a(0x267),[_0x4d7698??null,_0x481f1f,_0x49600e],![])[Symbol[_0x356c8a(0x56e)]]();}async['flush'](_0x3085d7){const _0x11a2f2=_0x16903f;return this['_n'](_0x11a2f2(0x42c),[_0x3085d7??null]);}}return timemachine={'OKDBTimeMachine':_0x28b613},timemachine;}var files,hasRequiredFiles;function requireFiles(){const _0x3b3674=_0x2ec26e;if(hasRequiredFiles)return files;hasRequiredFiles=0x1;const _0x1c8f45=require$$0,{Readable:_0x2e41bf}=require$$1,{OKDBError:_0x3871f2,optionsArg:_0x3c08c5,invalidArgument:_0x5073dc}=requireErrors(),{RawDb:_0x7a3118}=requireRawdb();async function _0x39c257(_0x1e445f){const _0x1064c9=_0x3ebb;if(Buffer[_0x1064c9(0x292)](_0x1e445f))return _0x1e445f;if(_0x1e445f instanceof Uint8Array)return Buffer[_0x1064c9(0x170)](_0x1e445f);if(typeof _0x1e445f===_0x1064c9(0x4bb))return Buffer[_0x1064c9(0x170)](_0x1e445f);const _0x2ba8cc=[];for await(const _0x450e84 of _0x1e445f)_0x2ba8cc[_0x1064c9(0x2fb)](Buffer['isBuffer'](_0x450e84)?_0x450e84:Buffer[_0x1064c9(0x170)](_0x450e84));return Buffer[_0x1064c9(0x79b)](_0x2ba8cc);}class _0x51b971{constructor(_0x5208f8){const _0x5b12c0=_0x3ebb;this['env']=_0x5208f8,this[_0x5b12c0(0x21e)]=_0x5208f8[_0x5b12c0(0x21e)];}['_n'](_0x13ebcb,_0x591844,_0x4177b7=!![]){const _0x32ef3f=_0x3ebb;return this['okdb']['_call'](_0x32ef3f(0x6be),this['env'][_0x32ef3f(0x6fe)],_0x13ebcb,_0x591844,_0x4177b7);}['start'](){return!![];}[_0x3b3674(0x893)](){}async[_0x3b3674(0x5f5)](){const _0x195f0d=_0x3b3674;this['_n'](_0x195f0d(0x766),[]);}async[_0x3b3674(0x37a)](_0x514fa3,_0x316557){const _0x5c5170=_0x3b3674;return this['okdb'][_0x5c5170(0x55c)](this['_n'](_0x5c5170(0x5d8),[_0x514fa3,await _0x39c257(_0x316557)]));}get[_0x3b3674(0x258)](){const _0x29a2eb=_0x3b3674;return this[_0x29a2eb(0x38f)]||(this['__blobStatusDb']=new _0x7a3118(this[_0x29a2eb(0x30b)],_0x29a2eb(0x48b)));}async[_0x3b3674(0x5a5)](_0x275ae1){const _0x4fb5e0=_0x3b3674;return this[_0x4fb5e0(0x258)][_0x4fb5e0(0x24d)](_0x275ae1);}async[_0x3b3674(0x484)](_0x600cfd){const _0x38df7c=_0x3b3674,{id:_0x1dd1df,stream:_0xade944,mime:mime=_0x38df7c(0x2b8),path:_0x188dc0='',txn:txn=null}=_0x3c08c5(_0x600cfd);if(!_0x1dd1df)throw _0x5073dc(_0x38df7c(0x206),_0x38df7c(0x16c),_0x1dd1df);if(!_0xade944)throw _0x5073dc('files.upload:\x20stream','a\x20Buffer\x20or\x20readable\x20stream',_0xade944);const _0x5e7fe6=await _0x39c257(_0xade944);if(txn){const _0x4a5bf0=this['_n'](_0x38df7c(0x18e),[_0x1dd1df,_0x5e7fe6,{'mime':mime,'path':_0x188dc0}]);return txn[_0x38df7c(0x27f)](_0x38df7c(0x6d9),_0x1dd1df,_0x4a5bf0[_0x38df7c(0x812)]),txn['onDo'](()=>this['_n']('txnDone',[_0x4a5bf0[_0x38df7c(0x872)]])),txn[_0x38df7c(0x213)](()=>this['_n']('txnUndone',[_0x4a5bf0['hook']])),_0x4a5bf0['record'];}return this[_0x38df7c(0x21e)][_0x38df7c(0x55c)](this['_n'](_0x38df7c(0x484),[_0x1dd1df,_0x5e7fe6,{'mime':mime,'path':_0x188dc0}]));}[_0x3b3674(0x63c)](_0x42be71){return this['_n']('get',[_0x42be71],![])??null;}['streamByHash'](_0x58ba6a){const _0x47472e=_0x3b3674,_0xb23585=this[_0x47472e(0x379)](_0x58ba6a);if(!_0x1c8f45[_0x47472e(0x2fa)](_0xb23585))throw Object[_0x47472e(0x76f)](new Error(_0x47472e(0x305)+_0x58ba6a),{'status':0x194});return this['_blobStream'](_0x58ba6a);}[_0x3b3674(0x3c9)](_0x480403){const _0x216c85=0x100*0x400,_0x48f355=this;let _0x1bf208=0x0;return new _0x2e41bf({'highWaterMark':_0x216c85,'read'(){const _0x417e29=_0x3ebb;let _0x535891;try{const _0x5368e0=_0x48f355['_n'](_0x417e29(0x47c),[_0x480403,_0x1bf208,_0x216c85],![]);_0x535891=Buffer[_0x417e29(0x292)](_0x5368e0)?_0x5368e0:Buffer[_0x417e29(0x170)](_0x5368e0);}catch(_0x230047){this[_0x417e29(0x87d)](_0x230047);return;}_0x1bf208+=_0x535891[_0x417e29(0x6cf)];if(_0x535891[_0x417e29(0x6cf)])this['push'](_0x535891);if(_0x535891[_0x417e29(0x6cf)]<_0x216c85)this[_0x417e29(0x2fb)](null);}});}async[_0x3b3674(0x2c9)](_0x34c52a){const _0x4b9acd=_0x3b3674;return this[_0x4b9acd(0x21e)][_0x4b9acd(0x29c)](this['_n']('read',[_0x34c52a],![]));}async[_0x3b3674(0x302)](_0x224a20){const _0x5c9d61=_0x3b3674,_0x4099a9=this[_0x5c9d61(0x63c)](_0x224a20);if(!_0x4099a9)throw Object[_0x5c9d61(0x76f)](new Error('File\x20not\x20found:\x20'+_0x224a20),{'status':0x194});const _0x1bf72e=this[_0x5c9d61(0x379)](_0x4099a9['hash']);if(!_0x1c8f45[_0x5c9d61(0x2fa)](_0x1bf72e))throw Object[_0x5c9d61(0x76f)](new Error('Blob\x20missing\x20for\x20file:\x20'+_0x224a20),{'status':0x194});return{'stream':this[_0x5c9d61(0x3c9)](_0x4099a9[_0x5c9d61(0x326)]),'record':_0x4099a9};}async['remove'](_0x4dd0cf,_0x24c042){const _0x3951a1=_0x3b3674,{txn:txn=null}=_0x3c08c5(_0x24c042);if(txn){const _0x4740ef=this['_n'](_0x3951a1(0x394),[_0x4dd0cf]);txn['remove']('~files',_0x4dd0cf),txn[_0x3951a1(0x576)](()=>this['_n'](_0x3951a1(0x4ac),[_0x4740ef[_0x3951a1(0x872)]])),txn[_0x3951a1(0x213)](()=>this['_n'](_0x3951a1(0x823),[_0x4740ef['hook']]));return;}return this['okdb'][_0x3951a1(0x55c)](this['_n'](_0x3951a1(0x42f),[_0x4dd0cf]));}async[_0x3b3674(0x7fa)](_0x9a99fa,_0x4b30a8={}){return this['_n']('listPath',[_0x9a99fa,_0x4b30a8],![]);}['getBlobStatus'](_0x5978e7){const _0x40e466=_0x3b3674;return this['_n'](_0x40e466(0x327),[_0x5978e7],![]);}[_0x3b3674(0x55b)](){const _0xa6713a=_0x3b3674;return this['_n'](_0xa6713a(0x55b),[],![]);}[_0x3b3674(0x2b2)](_0x37852c){const _0x1aa33e=_0x3b3674,{minAgeMs:_0x17c51b}=_0x3c08c5(_0x37852c);return this['_n'](_0x1aa33e(0x2b2),[_0x17c51b??null]);}[_0x3b3674(0x63d)](_0x512c49,_0x720021){const _0x2e99d5=_0x3b3674;if(typeof _0x720021!==_0x2e99d5(0x6d8))throw new _0x3871f2(_0x2e99d5(0x3e6),'BAD_PARAM');const _0x229358=this['_n']('registerExtractor',[_0x512c49,_0x720021]);return()=>this['_n']('unregisterExtractor',[_0x229358]);}async[_0x3b3674(0x445)](_0x462d07){const _0x4806a7=_0x3b3674;return _0x462d07=_0x3c08c5(_0x462d07),this['_n'](_0x4806a7(0x445),[_0x462d07]);}async['syncBlobs'](_0x25c38d){const _0xcc3482=_0x3b3674,{peerIds:_0x3db58c}=_0x3c08c5(_0x25c38d);return this['_n'](_0xcc3482(0x405),[_0x3db58c??null]);}['_blobPath'](_0x30df94){const _0x9eb618=_0x3b3674;if(typeof _0x30df94!==_0x9eb618(0x4bb))return require$$4[_0x9eb618(0x3d2)](this[_0x9eb618(0x1ad)],_0x30df94[_0x9eb618(0x5ca)](0x0,0x2),_0x30df94[_0x9eb618(0x5ca)](0x2));return this['_n'](_0x9eb618(0x74b),[_0x30df94],![]);}get[_0x3b3674(0x1ad)](){const _0x493f8b=_0x3b3674;return this['_n'](_0x493f8b(0x36b),[],![]);}}return files={'OKDBFiles':_0x51b971},files;}var engines,hasRequiredEngines;function requireEngines(){const _0x4d5f92=_0x2ec26e;if(hasRequiredEngines)return engines;hasRequiredEngines=0x1;const {OKDBError:_0x27a441}=requireErrors(),_0x1cffeb=requireBridge(),_0xaad2fb=new Set([_0x4d5f92(0x7b6),'indexer',_0x4d5f92(0x395),'embed-worker']),_0xd2535c=new Set([_0x4d5f92(0x3c2),_0x4d5f92(0x7c6),_0x4d5f92(0x4c6)]),_0x5827ad=[_0x4d5f92(0x1b5),_0x4d5f92(0x5b6),_0x4d5f92(0x5f2),_0x4d5f92(0x569),'install',_0x4d5f92(0x893),_0x4d5f92(0x55a)],_0xd17283={'embedder':new Set([_0x4d5f92(0x4c6),_0x4d5f92(0x6c2)])},_0x19b765=new Set([_0x4d5f92(0x6a3),_0x4d5f92(0x3e8),'queue-worker']);class _0x5596f7{constructor(_0x47544f,_0x275033,_0x1a1ae7,_0x104854){const _0x4ec7e0=_0x4d5f92;this[_0x4ec7e0(0x1f4)]=_0x47544f,this[_0x4ec7e0(0x366)]=_0x275033,this['type']=_0x1a1ae7,this[_0x4ec7e0(0x6fe)]=_0x104854,this['engineType']=_0x1a1ae7;}[_0x4d5f92(0x41a)](){const _0x5846a3=_0x4d5f92;return this['_facade']['_n'](_0x5846a3(0x7c6),[this['type'],this['name']],![]);}get[_0x4d5f92(0x799)](){const _0x473d5a=_0x4d5f92;return this[_0x473d5a(0x41a)]()[_0x473d5a(0x799)];}get['_store'](){const _0x4eb4cc=_0x4d5f92,_0x5bc6d4=this[_0x4eb4cc(0x41a)]()[_0x4eb4cc(0x228)];return _0x5bc6d4?this['_facade'][_0x4eb4cc(0x21e)][_0x4eb4cc(0x8a5)][_0x4eb4cc(0x63c)](_0x5bc6d4):undefined;}get[_0x4d5f92(0x2fe)](){const _0x55bebf=_0x4d5f92;return this[_0x55bebf(0x41a)]()['docEntry'];}get['enabled'](){const _0x1a2ec9=_0x4d5f92;return this[_0x1a2ec9(0x41a)]()[_0x1a2ec9(0x580)];}get['isRunning'](){const _0x5c6c79=_0x4d5f92;return this[_0x5c6c79(0x41a)]()[_0x5c6c79(0x82b)];}get[_0x4d5f92(0x1c9)](){const _0x2aaca1=_0x4d5f92;return this[_0x2aaca1(0x41a)]()[_0x2aaca1(0x1c9)];}get[_0x4d5f92(0x5d0)](){const _0x59e75d=_0x4d5f92;return this[_0x59e75d(0x41a)]()['reason'];}get[_0x4d5f92(0x604)](){const _0x5af6ee=_0x4d5f92,_0x194e07=this['_info']()[_0x5af6ee(0x604)];return _0x194e07?Object[_0x5af6ee(0x76f)](new Error(_0x194e07[_0x5af6ee(0x2d2)]),{'code':_0x194e07[_0x5af6ee(0x748)]}):null;}get['runtimeState'](){const _0x424223=_0x4d5f92;return this[_0x424223(0x41a)]()[_0x424223(0x46c)];}get[_0x4d5f92(0x741)](){const _0x583858=_0x4d5f92;return this['_facade'][_0x583858(0x557)]['get'](this['type'])??null;}get[_0x4d5f92(0x370)](){const _0x393f9b=_0x4d5f92;if(!this[_0x393f9b(0x41a)]()[_0x393f9b(0x5cb)])return null;const _0x37bba8=this;return new Proxy({},{'get'(_0x1f6c61,_0x1e6bd6){const _0x12ef8d=_0x393f9b;if(typeof _0x1e6bd6===_0x12ef8d(0x856)||_0x1e6bd6===_0x12ef8d(0x2b0))return undefined;if(_0xd17283[_0x37bba8['type']]&&_0xd17283[_0x37bba8[_0x12ef8d(0x673)]][_0x12ef8d(0x51e)](_0x1e6bd6))return _0x37bba8['_facade']['_n'](_0x12ef8d(0x5a8),[_0x37bba8[_0x12ef8d(0x673)],_0x37bba8[_0x12ef8d(0x6fe)],_0x1e6bd6,[]],![])['value'];if(_0x37bba8['type']==='indexer'&&_0x1e6bd6===_0x12ef8d(0x42c))return async(_0x24bdcc={})=>{const _0x3b3aa2=_0x12ef8d,_0x38ec8f=(_0x44cbd1,..._0x10067f)=>_0x37bba8[_0x3b3aa2(0x1f4)]['_n'](_0x3b3aa2(0x5a8),[_0x37bba8[_0x3b3aa2(0x673)],_0x37bba8['name'],_0x44cbd1,_0x10067f],!![])[_0x3b3aa2(0x820)],_0x10f0d7=_0x38ec8f(_0x3b3aa2(0x54b),_0x24bdcc??{}),_0x5611c9=Date[_0x3b3aa2(0x89e)]();for(;;){const _0x1f7cd1=await _0x37bba8[_0x3b3aa2(0x1f4)][_0x3b3aa2(0x21e)]['_macro'](()=>_0x38ec8f(_0x3b3aa2(0x1bc)));if(_0x1f7cd1[_0x3b3aa2(0x79a)]>=_0x1f7cd1[_0x3b3aa2(0x1b4)])return;Date[_0x3b3aa2(0x89e)]()-_0x5611c9>=_0x10f0d7&&_0x38ec8f('flushTimeoutError',_0x24bdcc??{},_0x1f7cd1),await new Promise(_0x58d1ff=>setTimeout(_0x58d1ff,0x3));}};return(..._0x1c9e1e)=>{const _0x88779b=_0x12ef8d,_0x44f906=()=>_0x37bba8[_0x88779b(0x1f4)]['_n'](_0x88779b(0x5a8),[_0x37bba8[_0x88779b(0x673)],_0x37bba8[_0x88779b(0x6fe)],_0x1e6bd6,_0x1c9e1e],!![]),_0x101737=_0x5b89b2=>{const _0x55ea13=_0x88779b;if(_0x5b89b2&&_0x5b89b2[_0x55ea13(0x252)])throw new TypeError(_0x55ea13(0x471)+_0x1e6bd6+'\x27');return _0x5b89b2[_0x55ea13(0x820)];};if(_0xaad2fb['has'](_0x37bba8['type'])&&!_0xd2535c[_0x88779b(0x51e)](_0x1e6bd6)){const _0x237351=_0x37bba8[_0x88779b(0x1f4)][_0x88779b(0x21e)];return _0x237351[_0x88779b(0x56c)](()=>_0x237351[_0x88779b(0x199)](_0x44f906))[_0x88779b(0x2b0)](_0x101737);}if(_0x19b765[_0x88779b(0x51e)](_0x37bba8[_0x88779b(0x673)]))try{return Promise['resolve'](_0x101737(_0x44f906()));}catch(_0x40e25b){return Promise[_0x88779b(0x6f0)](_0x40e25b);}return _0x101737(_0x44f906());};}});}async[_0x4d5f92(0x724)](_0x37fb0d={}){const _0x35477f=_0x4d5f92;return await this[_0x35477f(0x1f4)][_0x35477f(0x321)](_0x35477f(0x724),[this[_0x35477f(0x673)],this['name'],_0x37fb0d]),this;}async['start'](){const _0x358648=_0x4d5f92;await this[_0x358648(0x1f4)][_0x358648(0x321)](_0x358648(0x220),[this[_0x358648(0x673)],this[_0x358648(0x6fe)]]);}async['stop'](_0x5cb870={}){const _0x5611a1=_0x4d5f92;await this[_0x5611a1(0x1f4)][_0x5611a1(0x321)](_0x5611a1(0x4b5),[this['type'],this[_0x5611a1(0x6fe)],_0x5cb870]);}async[_0x4d5f92(0x20a)](_0x327234={}){const _0x2e046=_0x4d5f92;return await this[_0x2e046(0x1f4)][_0x2e046(0x321)](_0x2e046(0x20a),[this[_0x2e046(0x673)],this[_0x2e046(0x6fe)],_0x327234]),this;}async[_0x4d5f92(0x55a)](){const _0x1ff08d=_0x4d5f92;await this[_0x1ff08d(0x1f4)]['_nm']('engineUninstall',[this[_0x1ff08d(0x673)],this[_0x1ff08d(0x6fe)]]);}}class _0x59fb36{constructor(_0x3e3984,_0x536ae4=null,_0x699440=null){const _0x4d666b=_0x4d5f92;this[_0x4d666b(0x21e)]=_0x3e3984,this[_0x4d666b(0x17f)]=_0x536ae4,this[_0x4d666b(0x80d)]=_0x536ae4===null,this[_0x4d666b(0x231)]=_0x699440||this,this[_0x4d666b(0x557)]=this['_root']===this?_0xb417bf(this):this[_0x4d666b(0x231)][_0x4d666b(0x557)],this['_handles']=new Map();}['_n'](_0xf2ca72,_0x5943d5,_0xec877a=!![]){const _0x3f1665=_0x4d5f92;return this[_0x3f1665(0x21e)][_0x3f1665(0x49e)]('engines',this[_0x3f1665(0x17f)],_0xf2ca72,_0x5943d5,_0xec877a);}[_0x4d5f92(0x321)](_0x4a52ff,_0x418bef){const _0x5c1a37=_0x4d5f92;return this['okdb'][_0x5c1a37(0x406)](_0x5c1a37(0x1a5),this[_0x5c1a37(0x17f)],_0x4a52ff,_0x418bef,!![]);}get[_0x4d5f92(0x30b)](){const _0x2fd855=_0x4d5f92;return this[_0x2fd855(0x17f)]?this[_0x2fd855(0x21e)][_0x2fd855(0x30b)](this['envName']):null;}[_0x4d5f92(0x4f3)](_0x474119){const _0x46fb2f=_0x4d5f92;if(!_0x474119)return null;let _0x31954f=this['_handles'][_0x46fb2f(0x63c)](_0x474119[_0x46fb2f(0x366)]);return!_0x31954f&&(_0x31954f=new _0x5596f7(this,_0x474119[_0x46fb2f(0x366)],_0x474119['type'],_0x474119[_0x46fb2f(0x6fe)]),this[_0x46fb2f(0x88f)]['set'](_0x474119[_0x46fb2f(0x366)],_0x31954f)),_0x31954f;}[_0x4d5f92(0x4de)](_0x2bd0fd,_0x4175cf){const _0x4bdbb4=_0x4d5f92;if(!_0x2bd0fd||typeof _0x2bd0fd!==_0x4bdbb4(0x4bb))throw new _0x27a441(_0x4bdbb4(0x86b),_0x4bdbb4(0x882),{'type':_0x2bd0fd});if(!_0x4175cf||typeof _0x4175cf!==_0x4bdbb4(0x1be))throw new _0x27a441(_0x4bdbb4(0x5e1)+_0x2bd0fd+_0x4bdbb4(0x5ff),'ENGINE_INVALID_DRIVER',{'type':_0x2bd0fd});if(typeof _0x4175cf['start']!=='function')throw new _0x27a441(_0x4bdbb4(0x5e1)+_0x2bd0fd+_0x4bdbb4(0x27b),_0x4bdbb4(0x1ca),{'type':_0x2bd0fd});const _0x24c1df=this[_0x4bdbb4(0x231)];if(_0x24c1df[_0x4bdbb4(0x557)][_0x4bdbb4(0x51e)](_0x2bd0fd))throw new _0x27a441(_0x4bdbb4(0x283)+_0x2bd0fd+'\x22','ENGINE_DRIVER_ALREADY_REGISTERED',{'type':_0x2bd0fd});const _0x286782=_0x1cffeb[_0x4bdbb4(0x830)](_0x4175cf,this[_0x4bdbb4(0x21e)]),_0x462e37=_0x5827ad[_0x4bdbb4(0x852)](_0x411236=>typeof _0x4175cf[_0x411236]===_0x4bdbb4(0x6d8)),_0x16c67e=_0x4175cf[_0x4bdbb4(0x2df)]&&typeof _0x4175cf[_0x4bdbb4(0x2df)]==='object'?_0x4175cf[_0x4bdbb4(0x2df)]:{};this[_0x4bdbb4(0x21e)]['_call']('engines',null,'registerDriver',[_0x2bd0fd,{'$id':_0x286782,'has':_0x462e37,'docs':_0x16c67e}]),_0x24c1df[_0x4bdbb4(0x557)][_0x4bdbb4(0x835)](_0x2bd0fd,_0x4175cf);}get[_0x4d5f92(0x3cb)](){const _0x40ac8d=_0x4d5f92;return this['okdb']['_call'](_0x40ac8d(0x1a5),null,_0x40ac8d(0x6c6),[],![]);}get[_0x4d5f92(0x5bd)](){const _0x574430=this;return{get '_started'(){const _0x5c7859=_0x3ebb;return _0x574430[_0x5c7859(0x3cb)];}};}[_0x4d5f92(0x351)](_0x5dc802){const _0x558493=_0x4d5f92;if(!_0x5dc802||typeof _0x5dc802!==_0x558493(0x1be))throw new _0x27a441(_0x558493(0x4e6),'ENGINE_INVALID_TEMPLATE');if(!_0x5dc802['id']||typeof _0x5dc802['id']!==_0x558493(0x4bb))throw new _0x27a441(_0x558493(0x88d),_0x558493(0x3ea));if(!['engine','pipeline'][_0x558493(0x1ac)](_0x5dc802['kind']))throw new _0x27a441(_0x558493(0x474)+_0x5dc802['id'],_0x558493(0x3ea));if(typeof _0x5dc802['build']!==_0x558493(0x6d8))throw new _0x27a441(_0x558493(0x844)+_0x5dc802['id'],_0x558493(0x3ea));const _0x3932ee=this[_0x558493(0x21e)],_0x3c979c=typeof _0x5dc802[_0x558493(0x22b)]==='function';return this['_n'](_0x558493(0x351),[{'id':_0x5dc802['id'],'kind':_0x5dc802['kind'],'family':_0x5dc802[_0x558493(0x743)]??null,'engineType':_0x5dc802['engineType']??null,'pipelineFamily':_0x5dc802[_0x558493(0x65f)]??null,'recommended':_0x5dc802['recommended']===!![],'summary':_0x5dc802[_0x558493(0x6a1)]??null,'description':_0x5dc802[_0x558493(0x34c)]??null,'inputSchema':_0x3c979c?null:_0x5dc802['inputSchema']??null,'inputSchemaFn':_0x3c979c?()=>_0x5dc802[_0x558493(0x22b)](_0x3932ee):null,'defaults':_0x5dc802[_0x558493(0x6fd)]??null,'notes':Array[_0x558493(0x69e)](_0x5dc802['notes'])?_0x5dc802[_0x558493(0x1c7)]:[],'links':Array[_0x558493(0x69e)](_0x5dc802[_0x558493(0x300)])?_0x5dc802['links']:[],'build':(_0x49d027,_0x3d43ef)=>_0x5dc802[_0x558493(0x1dd)](_0x49d027??{},{'okdb':_0x3932ee,'envName':_0x3d43ef??null})}],![]);}[_0x4d5f92(0x735)](_0x3b36e5){const _0x161697=_0x4d5f92;return this['_n'](_0x161697(0x735),[_0x3b36e5??null],![]);}[_0x4d5f92(0x78e)](_0x1f5720){const _0x5ea854=_0x4d5f92;return this['_n'](_0x5ea854(0x78e),[_0x1f5720],![]);}['previewTemplate'](_0x298fa0,_0x1cf7a0,_0x18cb8a){const _0x34580a=_0x4d5f92;return this['_n'](_0x34580a(0x2bc),[_0x298fa0,_0x1cf7a0,_0x18cb8a??this[_0x34580a(0x17f)]],![]);}[_0x4d5f92(0x2f4)](){const _0x5498d0=_0x4d5f92;return this['_n'](_0x5498d0(0x2f4),[],![]);}async[_0x4d5f92(0x898)](){const _0x2fbda9=_0x4d5f92;return this[_0x2fbda9(0x321)](_0x2fbda9(0x898),[]);}async['stop'](){const _0x4fc240=_0x4d5f92;return this[_0x4fc240(0x321)](_0x4fc240(0x893),[]);}async[_0x4d5f92(0x704)](_0x44937c,_0x32e655,_0x2c817b={},_0x225114={},_0x437349={}){const _0x29abd3=_0x4d5f92;return this['_wrap'](await this[_0x29abd3(0x321)]('createEngine',[_0x44937c,_0x32e655,_0x2c817b,_0x225114,_0x437349]));}async[_0x4d5f92(0x751)](_0xac0798,_0x16c278,_0x803551={},_0x56fde5={},_0x5d0de7={}){const _0x1280a2=_0x4d5f92;return this[_0x1280a2(0x4f3)](await this['_nm'](_0x1280a2(0x751),[_0xac0798,_0x16c278,_0x803551,_0x56fde5,_0x5d0de7]));}['getEngine'](_0x105f25,_0x2c41d2){const _0xe2f720=_0x4d5f92;return this[_0xe2f720(0x4f3)](this['_n']('getEngine',[_0x105f25,_0x2c41d2],![]));}[_0x4d5f92(0x23b)](_0x54b224,_0x5d833e){return this['_wrap'](this['_n']('getRunningEngine',[_0x54b224,_0x5d833e],![]));}[_0x4d5f92(0x338)](_0x1a8308){const _0x5b5c1d=_0x4d5f92;return this['_n'](_0x5b5c1d(0x338),[_0x1a8308??null],![])['map'](_0x1b793b=>this[_0x5b5c1d(0x4f3)](_0x1b793b));}async['restart'](_0x5c73a6,_0x1ac59e){const _0x807a9e=_0x4d5f92;return this[_0x807a9e(0x4f3)](await this[_0x807a9e(0x321)](_0x807a9e(0x2f1),[_0x5c73a6,_0x1ac59e]));}async[_0x4d5f92(0x552)](_0x33a99c,_0x4b03a4){const _0x576088=_0x4d5f92;return this['_handles'][_0x576088(0x82f)](_0x33a99c+':'+_0x4b03a4),this[_0x576088(0x321)](_0x576088(0x552),[_0x33a99c,_0x4b03a4]);}async[_0x4d5f92(0x7b1)](_0x2d7204){const _0x4d0d8e=_0x4d5f92;return this[_0x4d0d8e(0x321)](_0x4d0d8e(0x7b1),[_0x2d7204]);}async[_0x4d5f92(0x523)](){const _0x42c49b=_0x4d5f92;return this[_0x42c49b(0x321)](_0x42c49b(0x523),[]);}}function _0xb417bf(_0x2d852e){const _0x141411=_0x4d5f92,_0x1a9c35=new Map();return{'has':_0x4ff523=>_0x1a9c35[_0x141411(0x51e)](_0x4ff523)||_0x2d852e['okdb']['_call'](_0x141411(0x1a5),null,_0x141411(0x80a),[_0x4ff523],![]),'get':_0x470567=>_0x1a9c35[_0x141411(0x63c)](_0x470567),'set':()=>{const _0x3e3e70=_0x141411;throw new _0x27a441(_0x3e3e70(0x664),_0x3e3e70(0x694));},'_set':(_0x2c116e,_0x5aaadd)=>_0x1a9c35['set'](_0x2c116e,_0x5aaadd),'keys':()=>_0x1a9c35[_0x141411(0x1d5)](),'entries':()=>_0x1a9c35[_0x141411(0x72a)](),'values':()=>_0x1a9c35['values'](),get 'size'(){return _0x1a9c35['size'];},[Symbol['iterator']]:()=>_0x1a9c35[Symbol[_0x141411(0x56e)]]()};}class _0x4061a0{constructor(_0x4857f2,_0x4aadf1=null){const _0x3aebb7=_0x4d5f92;this[_0x3aebb7(0x21e)]=_0x4857f2,this[_0x3aebb7(0x17f)]=_0x4aadf1;}['_n'](_0x114c33,_0x25f711,_0x1ab37d=!![]){const _0x28dc2c=_0x4d5f92;return this[_0x28dc2c(0x21e)][_0x28dc2c(0x49e)](_0x28dc2c(0x805),this[_0x28dc2c(0x17f)],_0x114c33,_0x25f711,_0x1ab37d);}[_0x4d5f92(0x321)](_0x5251d9,_0xca8203){const _0x1cece9=_0x4d5f92;return this[_0x1cece9(0x21e)][_0x1cece9(0x406)](_0x1cece9(0x805),this[_0x1cece9(0x17f)],_0x5251d9,_0xca8203,!![]);}get[_0x4d5f92(0x60c)](){const _0x217ea8=_0x4d5f92;return this[_0x217ea8(0x17f)]===null;}async[_0x4d5f92(0x766)](_0x12839f){return this['_n']('ensure',[_0x12839f]);}async[_0x4d5f92(0x63c)](_0x732dae,_0x2a6419){const _0x381a0c=_0x4d5f92;return this['_n'](_0x381a0c(0x63c),[_0x732dae,_0x2a6419??null],![]);}async['getRecord'](_0x300350,_0x8cbea9){const _0x53c5b8=_0x4d5f92;return this['_n'](_0x53c5b8(0x5bb),[_0x300350,_0x8cbea9??null],![]);}async[_0x4d5f92(0x338)](_0x58f1a8){const _0x46dc15=_0x4d5f92;return this['_n'](_0x46dc15(0x338),[_0x58f1a8??null],![]);}async['listRecords'](_0x321d1a={}){const _0x1756ed=_0x4d5f92;return this['_n'](_0x1756ed(0x6b2),[_0x321d1a?.[_0x1756ed(0x17f)]??null],![]);}[_0x4d5f92(0x1b5)](_0x1b880e,_0x4b7cff){const _0x5c7746=_0x4d5f92;return this['_n'](_0x5c7746(0x1b5),[_0x1b880e,_0x4b7cff??null],![]);}async['create'](_0x4991d7){const _0x1ec0df=_0x4d5f92;return this['_nm'](_0x1ec0df(0x740),[_0x4991d7]);}async[_0x4d5f92(0x88e)](_0x4d0679,_0x347892){const _0x1afd28=_0x4d5f92;return this[_0x1afd28(0x321)](_0x1afd28(0x88e),[_0x4d0679,_0x347892]);}async['stop'](_0x53e2f3){const _0x17b4af=_0x4d5f92;return this[_0x17b4af(0x321)](_0x17b4af(0x893),[_0x53e2f3]);}async[_0x4d5f92(0x77b)](_0x5d01d5){const _0x492228=_0x4d5f92;if(!_0x5d01d5||typeof _0x5d01d5!=='object'||!_0x5d01d5[_0x492228(0x6fe)]||!_0x5d01d5[_0x492228(0x1a5)])return _0x5d01d5;for(let _0xdd8d9a=0x0;_0xdd8d9a<0x3;_0xdd8d9a++)await new Promise(_0x7653a8=>setImmediate(_0x7653a8));try{const _0xc39927=this[_0x492228(0x17f)]!==null?await this[_0x492228(0x63c)](_0x5d01d5[_0x492228(0x6fe)]):_0x5d01d5[_0x492228(0x30b)]?await this['get'](_0x5d01d5[_0x492228(0x30b)],_0x5d01d5[_0x492228(0x6fe)]):null;return _0xc39927||_0x5d01d5;}catch{return _0x5d01d5;}}async['start'](_0x398379){const _0x4cf549=_0x4d5f92;return this[_0x4cf549(0x77b)](await this[_0x4cf549(0x321)](_0x4cf549(0x898),[_0x398379]));}async['restart'](_0x5b5be6){const _0x2bfc15=_0x4d5f92;return this[_0x2bfc15(0x77b)](await this[_0x2bfc15(0x321)](_0x2bfc15(0x2f1),[_0x5b5be6]));}async[_0x4d5f92(0x574)](_0x170aa1){const _0x29d75b=_0x4d5f92;return this[_0x29d75b(0x321)](_0x29d75b(0x574),[_0x170aa1]);}async[_0x4d5f92(0x81f)](_0x2b766f,_0x2034be,_0xcbbf80){const _0x5c27ab=_0x4d5f92;return this[_0x5c27ab(0x321)](_0x5c27ab(0x81f),[_0x2b766f,_0x2034be,_0xcbbf80]);}async[_0x4d5f92(0x42f)](_0x489a8e){const _0x5bed69=_0x4d5f92;return this[_0x5bed69(0x321)](_0x5bed69(0x42f),[_0x489a8e]);}async['stopAll'](){const _0x4b9488=_0x4d5f92;return this[_0x4b9488(0x321)](_0x4b9488(0x3fe),[]);}async['bootSyncedPipelines'](){const _0x1bdc13=_0x4d5f92;return this[_0x1bdc13(0x321)](_0x1bdc13(0x649),[]);}['findOwner'](_0x2281ae,_0x10dc42){return this['_n']('findOwner',[_0x2281ae,_0x10dc42],![]);}}return engines={'OKDBEngines':_0x59fb36,'OKDBPipelines':_0x4061a0,'OKDBEngineHandle':_0x5596f7},engines;}var functions,hasRequiredFunctions;function requireFunctions(){const _0x4c64e0=_0x2ec26e;if(hasRequiredFunctions)return functions;hasRequiredFunctions=0x1;const {optionsArg:_0x1bc75e}=requireErrors(),_0x407b16=Number(process.env.OKDB_FN_POLL_MS)||0x14;class _0x3d1486{constructor(_0x5b0214,_0x10f2b5=null){const _0x33b952=_0x3ebb;this[_0x33b952(0x21e)]=_0x5b0214,this[_0x33b952(0x17f)]=_0x10f2b5??_0x33b952(0x8a3);}get[_0x4c64e0(0x30b)](){const _0x492d8f=_0x4c64e0;return this[_0x492d8f(0x21e)]['_envs']['get'](this['envName'])??null;}['_n'](_0x364e61,_0x67c719=[],_0x19fe6c=!![]){const _0xf67377=_0x4c64e0;try{return this[_0xf67377(0x21e)][_0xf67377(0x49e)](_0xf67377(0x762),this[_0xf67377(0x17f)],_0x364e61,_0x67c719,_0x19fe6c);}catch(_0x3bd9e5){throw _0x4a0b48(_0x3bd9e5);}}async[_0x4c64e0(0x321)](_0x4b019c,_0x3cbe3a=[]){const _0x365789=_0x4c64e0;try{return await this[_0x365789(0x21e)][_0x365789(0x406)](_0x365789(0x762),this[_0x365789(0x17f)],_0x4b019c,_0x3cbe3a,!![]);}catch(_0xc37d48){throw _0x4a0b48(_0xc37d48);}}async[_0x4c64e0(0x338)](){const _0xe0d239=_0x4c64e0;return this['_n'](_0xe0d239(0x338),[],![]);}async[_0x4c64e0(0x63c)](_0x53f53b){const _0x219712=_0x4c64e0;return this['_n'](_0x219712(0x63c),[_0x53f53b],![]);}async[_0x4c64e0(0x740)](_0x50bd67){return this['_n']('create',[_0x50bd67]);}async['update'](_0x59715e,_0x276fed={}){const _0x189618=_0x4c64e0;return this['_n'](_0x189618(0x88e),[_0x59715e,_0x276fed]);}async[_0x4c64e0(0x42f)](_0x254a4b){const _0x77edee=_0x4c64e0;return this['_n'](_0x77edee(0x42f),[_0x254a4b]);}async[_0x4c64e0(0x49d)](_0x5359dd){const _0x404231=_0x4c64e0,{functionName:functionName=null}=_0x1bc75e(_0x5359dd);return this['_n'](_0x404231(0x49d),[{'functionName':functionName}],![]);}async[_0x4c64e0(0x27e)](_0x48edc2){const _0x1bb277=_0x4c64e0;return this['_n'](_0x1bb277(0x27e),[_0x48edc2],![]);}async[_0x4c64e0(0x708)](_0x33128c){const _0x460844=_0x4c64e0;return _0x33128c=_0x1bc75e(_0x33128c,_0x460844(0x22e)),this['_n'](_0x460844(0x708),[_0x33128c]);}async['run'](_0x2d68ad,_0x37198f=null,_0xcd1b05={}){const _0x203858=_0x4c64e0,_0x4f3948={..._0xcd1b05},_0x57f004=_0x4f3948[_0x203858(0x2b7)];if(_0x57f004)_0x4f3948[_0x203858(0x43a)]=!!_0x57f004['aborted'];delete _0x4f3948[_0x203858(0x2b7)];const _0x389698=await this['_nm'](_0x203858(0x1d1),[_0x2d68ad,_0x37198f,_0x4f3948]),_0x6392=this[_0x203858(0x21e)],_0xbbe868=()=>_0x6392[_0x203858(0x5bc)][_0x203858(0x536)]();if(_0x57f004&&typeof _0x57f004[_0x203858(0x4fb)]===_0x203858(0x6d8))_0x57f004['addEventListener'](_0x203858(0x33a),_0xbbe868,{'once':!![]});let _0x3a53a9=![];try{for(;;){const _0x2db099=_0x6392[_0x203858(0x5bc)][_0x203858(0x52a)](_0x407b16);let _0x44fca9;try{_0x44fca9=await _0x6392['_callMacro'](_0x203858(0x762),this['envName'],'runPoll',[_0x389698,!!_0x57f004?.['aborted']],![],![]);}catch(_0x241b1b){_0x3a53a9=!![];throw _0x4a0b48(_0x241b1b);}if(!_0x44fca9||_0x44fca9[_0x203858(0x448)]!==!![])return _0x3a53a9=!![],_0x6392[_0x203858(0x5bc)]['wake'](),_0x44fca9;if(_0x44fca9['progressed'])_0x6392[_0x203858(0x5bc)][_0x203858(0x536)]();await _0x2db099;}}finally{if(_0x57f004&&typeof _0x57f004[_0x203858(0x393)]===_0x203858(0x6d8))_0x57f004[_0x203858(0x393)](_0x203858(0x33a),_0xbbe868);if(!_0x3a53a9)try{_0x6392['_call']('functions',this[_0x203858(0x17f)],_0x203858(0x476),[_0x389698],![]);}catch{}}}async[_0x4c64e0(0x84c)](_0x5af630={},_0x3d1ea8=null,_0x4fcbf2={}){return this['_nm']('preview',[_0x5af630,_0x3d1ea8,_0x4fcbf2]);}async[_0x4c64e0(0x893)](){}}function _0x4a0b48(_0x465612){const _0x6cf006=_0x4c64e0;if(_0x465612&&_0x465612[_0x6cf006(0x79f)]&&_0x465612[_0x6cf006(0x79f)]['runRecord'])_0x465612['_runRecord']=_0x465612['details'][_0x6cf006(0x5d5)];return _0x465612;}return functions={'OKDBFunctions':_0x3d1486},functions;}var processor={'exports':{}},lock,hasRequiredLock;function requireLock(){const _0x123973=_0x2ec26e;if(hasRequiredLock)return lock;hasRequiredLock=0x1;const {optionsArg:_0x5f5a74}=requireErrors();class _0x5ec622{constructor(_0x510a8f,_0x127a72){const _0x23f6b5=_0x3ebb;this[_0x23f6b5(0x337)]=_0x510a8f,this[_0x23f6b5(0x444)]=_0x127a72;}['_n'](_0x242d03,_0x437e46=[]){const _0x1dca48=_0x3ebb;return this['_lock']['_n'](_0x242d03,[this[_0x1dca48(0x444)],..._0x437e46]);}[_0x123973(0x5f7)](){const _0x2ac884=_0x123973;return this['_n'](_0x2ac884(0x5f7));}get[_0x123973(0x72e)](){return this['_n']('acquiredAt');}[_0x123973(0x72d)](){const _0x5e27a2=_0x123973;return this['_n'](_0x5e27a2(0x72d));}[_0x123973(0x3c4)](_0x297817){return this['_n']('extend',[_0x297817]);}async[_0x123973(0x70c)](){const _0x1e613b=_0x123973;return this['_n'](_0x1e613b(0x70c));}}class _0x54afa{constructor(_0x39bf9d,_0x6888ed,_0x2c63ca,_0x3410d8){const _0x1cddb3=_0x123973,{ttlMs:ttlMs=0x7530,heartbeatMs:heartbeatMs=null}=_0x5f5a74(_0x3410d8);this[_0x1cddb3(0x21e)]=_0x39bf9d,this[_0x1cddb3(0x26b)]=_0x2c63ca,this[_0x1cddb3(0x444)]=_0x39bf9d[_0x1cddb3(0x49e)]('lock',_0x6888ed,_0x1cddb3(0x626),[_0x2c63ca,ttlMs,heartbeatMs],![]),this[_0x1cddb3(0x51f)]=_0x6888ed;}['_n'](_0x5c0e24,_0x31b5b7=[]){const _0x2142d9=_0x123973;return this[_0x2142d9(0x21e)][_0x2142d9(0x49e)](_0x2142d9(0x777),this[_0x2142d9(0x51f)],_0x5c0e24,_0x31b5b7,![]);}['_key'](_0x2ffbaa){const _0x5d0c42=_0x123973;return this['_n'](_0x5d0c42(0x366),[this[_0x5d0c42(0x444)],_0x2ffbaa]);}async[_0x123973(0x423)](_0x4738ed,_0x28c1a5={},_0x322277={}){const _0x2b39d5=_0x123973,_0x575331=this['_n']('tryAcquire',[this[_0x2b39d5(0x444)],_0x4738ed,_0x28c1a5,_0x322277]);return{'acquired':_0x575331[_0x2b39d5(0x232)],'handle':_0x575331[_0x2b39d5(0x4aa)]==null?null:new _0x5ec622(this,_0x575331[_0x2b39d5(0x4aa)]),'current':_0x575331['current']};}[_0x123973(0x89a)](_0x5594ba){return this['_n']('inspect',[this['_id'],_0x5594ba]);}['list'](){const _0x2697cc=_0x123973;return this['_n'](_0x2697cc(0x338),[this['_id']]);}['signalWant'](_0x4201bc){const _0x583735=_0x123973;return this['_n'](_0x583735(0x516),[this['_id'],_0x4201bc]);}[_0x123973(0x30c)](_0x486833,_0x43d9b8=0x3e8){const _0x28ddae=_0x123973;return this['_n'](_0x28ddae(0x30c),[this[_0x28ddae(0x444)],_0x486833,_0x43d9b8]);}}return lock={'NativeLock':_0x54afa,'NativeLockHandle':_0x5ec622},lock;}var hasRequiredProcessor;function requireProcessor(){const _0xd261d3=_0x2ec26e;if(hasRequiredProcessor)return processor[_0xd261d3(0x3be)];hasRequiredProcessor=0x1;const _0xbcaac8=requireBridge(),{RawDb:_0x1b5976}=requireRawdb(),{NativeLock:_0x167fdc}=requireLock();function _0x4407f4(_0x18ada2){}class _0x5acc46{constructor(_0x2fbcf8){const _0x4c7c65=_0xd261d3;this[_0x4c7c65(0x30b)]=_0x2fbcf8,this[_0x4c7c65(0x21e)]=_0x2fbcf8;try{this['_n'](_0x4c7c65(0x2ac),[(_0xbe270d,_0x2aae43)=>{const _0x1b5a21=_0x4c7c65,_0x226149=this[_0x1b5a21(0x21e)][_0x1b5a21(0x793)],_0x44dffb=_0x226149?.[_0xbe270d]??_0x226149?.[_0x1b5a21(0x7c6)];if(typeof _0x44dffb===_0x1b5a21(0x6d8))_0x44dffb['call'](_0x226149,_0x2aae43);}],![]);}catch{}}['_n'](_0x5ab969,_0x2be8f8,_0x337411=!![]){const _0x23acd6=_0xd261d3;return this[_0x23acd6(0x30b)][_0x23acd6(0x21e)][_0x23acd6(0x49e)]('proc',this[_0x23acd6(0x30b)][_0x23acd6(0x6fe)],_0x5ab969,_0x2be8f8,_0x337411);}['register'](_0x3ccdc0,_0x3f0393={}){const _0x2c0f51=_0xd261d3,_0x3034c8={..._0x3f0393};if(typeof _0x3034c8[_0x2c0f51(0x5af)]===_0x2c0f51(0x6d8)&&_0x3034c8[_0x2c0f51(0x277)]!=null)throw new Error(_0x2c0f51(0x7cf)+_0x2c0f51(0x37e));if(typeof _0x3034c8[_0x2c0f51(0x5af)]===_0x2c0f51(0x4bb)&&_0x3034c8['module']!=null)throw new Error(_0x2c0f51(0x1b7));if(_0x3034c8[_0x2c0f51(0x277)]!=null){if(!_0x3034c8[_0x2c0f51(0x277)][_0x2c0f51(0x39d)])throw new Error(_0x2c0f51(0x881));const _0x55a2d0=_0x3034c8['module']['export']??_0x3034c8['module']['exportName']??_0x2c0f51(0x595),_0x32febe=require[_0x2c0f51(0x7a9)](_0x3034c8[_0x2c0f51(0x277)][_0x2c0f51(0x39d)]),_0x2ede7d=require(_0x32febe),_0x4dd47e=_0x2ede7d[_0x55a2d0]??_0x2ede7d[_0x2c0f51(0x822)]??_0x2ede7d;if(typeof _0x4dd47e!==_0x2c0f51(0x6d8))throw new Error('processor:\x20module\x20\x27'+_0x3034c8[_0x2c0f51(0x277)]['path']+_0x2c0f51(0x4ec)+_0x55a2d0+_0x2c0f51(0x22d));this[_0x2c0f51(0x30b)]['okdb'][_0x2c0f51(0x646)](_0x2c0f51(0x7c0),_0x2c0f51(0x382),[_0x32febe,_0x55a2d0,_0x4dd47e]),_0x3034c8[_0x2c0f51(0x277)]={'path':_0x32febe,'export':_0x55a2d0};}if(_0x3034c8['quantum']!=null){if(typeof _0x3034c8[_0x2c0f51(0x74a)][_0x2c0f51(0x277)]!==_0x2c0f51(0x4bb))throw new Error(_0x2c0f51(0x824));const _0x20aa4b=require[_0x2c0f51(0x7a9)](_0x3034c8[_0x2c0f51(0x74a)][_0x2c0f51(0x277)]),_0x5aa78c=require(_0x20aa4b),_0x36f47e=_0x3034c8[_0x2c0f51(0x74a)][_0x2c0f51(0x838)],_0x45b60f=_0x36f47e?_0x5aa78c[_0x36f47e]:_0x5aa78c['default']??_0x5aa78c;if(typeof _0x45b60f===_0x2c0f51(0x6d8)){const _0x5d4d0d=_0x36f47e?_0x3034c8[_0x2c0f51(0x74a)][_0x2c0f51(0x277)]+'#'+_0x36f47e:_0x3034c8[_0x2c0f51(0x74a)]['module'];this[_0x2c0f51(0x30b)][_0x2c0f51(0x21e)][_0x2c0f51(0x646)]('proc',_0x2c0f51(0x3d7),[_0x5d4d0d,_0x45b60f]);}_0x3034c8[_0x2c0f51(0x74a)]={..._0x3034c8[_0x2c0f51(0x74a)]};}_0x3034c8[_0x2c0f51(0x3f6)]!=null&&typeof _0x3034c8[_0x2c0f51(0x3f6)]===_0x2c0f51(0x1be)&&(_0x3034c8[_0x2c0f51(0x3f6)]={'$payload':_0xbcaac8['storePayload'](_0x3034c8['payload'],this['env'][_0x2c0f51(0x21e)])});if(_0x3034c8[_0x2c0f51(0x574)]!=null&&typeof _0x3034c8['rebuild']!==_0x2c0f51(0x6d8))throw new Error('processor:\x20rebuild\x20must\x20be\x20a\x20function');const _0x4e25da=this['_n']('register',[_0x3ccdc0??null,_0x3034c8]);return this[_0x2c0f51(0x1c1)](_0x4e25da['id'],_0x4e25da['cursorKey']);}[_0xd261d3(0x1c1)](_0x2a93d2,_0x55aa0a){const _0x3f5569=_0xd261d3,_0x5489fe=this,_0x1f2681=async()=>{const _0x1d6388=_0x3ebb;_0x5489fe['_n'](_0x1d6388(0x610),[_0x2a93d2]);};return _0x1f2681['id']=_0x2a93d2,_0x1f2681[_0x3f5569(0x4bd)]=_0x55aa0a,_0x1f2681['durableClock']=()=>_0x55aa0a?_0x5489fe['_n'](_0x3f5569(0x3df),[_0x2a93d2],![]):0x0,_0x1f2681[_0x3f5569(0x1c9)]=()=>_0x5489fe[_0x3f5569(0x63c)](_0x2a93d2),_0x1f2681['getStatus']=_0x1f2681['status'],_0x1f2681['pause']=()=>_0x5489fe[_0x3f5569(0x8ab)](_0x2a93d2),_0x1f2681[_0x3f5569(0x5ed)]=()=>_0x5489fe[_0x3f5569(0x5ed)](_0x2a93d2),_0x1f2681['kick']=()=>_0x5489fe[_0x3f5569(0x2c7)](_0x2a93d2),_0x1f2681[_0x3f5569(0x282)]=()=>_0x5489fe[_0x3f5569(0x282)](_0x2a93d2),_0x1f2681['awaitIdle']=_0x43c01f=>_0x5489fe[_0x3f5569(0x73f)](_0x2a93d2,_0x43c01f),_0x1f2681;}get['_stops'](){const _0x3a35db=_0xd261d3;try{return this['_n'](_0x3a35db(0x338),[],![])[_0x3a35db(0x1a7)](_0x40999f=>({'id':_0x40999f['id']}));}catch{return[];}}async[_0xd261d3(0x521)](_0x3baf33){const _0x4b262d=_0xd261d3;return new Set(this['_n'](_0x4b262d(0x521),[]));}['resumeAllAfterDrain'](_0x97c24a){const _0x2dbdfc=_0xd261d3;return this['_n'](_0x2dbdfc(0x544),[[..._0x97c24a??[]]]);}get[_0xd261d3(0x28a)](){const _0x2ab853=_0xd261d3;return new Set(this['_n']('list',[],![])[_0x2ab853(0x852)](_0xf90656=>_0xf90656[_0x2ab853(0x673)]==null)[_0x2ab853(0x1a7)](_0x5ee481=>_0x5ee481['id']));}[_0xd261d3(0x8a7)](){}get[_0xd261d3(0x337)](){const _0x47737d=_0xd261d3;if(!this[_0x47737d(0x74e)]){const _0x45d32a=new _0x167fdc(this[_0x47737d(0x30b)]['okdb'],this[_0x47737d(0x30b)][_0x47737d(0x6fe)],_0x47737d(0x7c0)),_0x1d033a=this[_0x47737d(0x30b)];_0x45d32a[_0x47737d(0x1bb)]=()=>new _0x1b5976(_0x1d033a,_0x47737d(0x4f1)),this[_0x47737d(0x74e)]=_0x45d32a;}return this[_0x47737d(0x74e)];}[_0xd261d3(0x3a6)](_0x10ef44,_0x4387f0){const _0x5793de=_0xd261d3;return this['_n'](_0x5793de(0x4ef),[typeof _0x10ef44===_0x5793de(0x4bb)?_0x10ef44:_0x10ef44['id'],_0x4387f0?.[_0x5793de(0x2d2)]??String(_0x4387f0??'')]);}get['_stateDb'](){const _0x183e28=_0xd261d3;return this[_0x183e28(0x5fa)]||(this[_0x183e28(0x5fa)]=new _0x1b5976(this['env'],_0x183e28(0x3d5)));}get[_0xd261d3(0x3ab)](){const _0x460f4c=_0xd261d3,_0x3dec89=this,_0x561103=_0xfcc405=>{const _0x2ff01b=_0x3ebb,_0x51e7a0=()=>_0x3dec89['_n']('regInfo',[_0xfcc405],![]);if(!_0x51e7a0())return undefined;const _0x2afed5=_0x46850f=>()=>_0x51e7a0()?.[_0x46850f],_0xe2341b={'id':_0xfcc405},_0x4c702d=(_0x3d09a3,_0x25feb7,_0x2d7d2b)=>Object[_0x2ff01b(0x79d)](_0xe2341b,_0x3d09a3,{'get':_0x25feb7,'set':_0x2d7d2b,'enumerable':!![],'configurable':!![]});return _0x4c702d(_0x2ff01b(0x41c),_0x2afed5('state')),_0x4c702d('mode',_0x2afed5(_0x2ff01b(0x182))),_0x4c702d(_0x2ff01b(0x281),_0x2afed5(_0x2ff01b(0x281))),_0x4c702d('lastClock',_0x2afed5('lastClock'),_0x23b697=>_0x3dec89['_n']('setLastClock',[_0xfcc405,_0x23b697])),_0x4c702d('cursorKey',_0x2afed5(_0x2ff01b(0x4bd))),_0x4c702d(_0x2ff01b(0x377),_0x2afed5(_0x2ff01b(0x7d1)),_0x2183a2=>_0x3dec89['_n'](_0x2ff01b(0x7a0),[_0xfcc405,!!_0x2183a2])),_0x4c702d(_0x2ff01b(0x532),_0x2afed5('handlerName')),_0x4c702d(_0x2ff01b(0x339),_0x2afed5(_0x2ff01b(0x339))),_0x4c702d(_0x2ff01b(0x632),_0x2afed5('drainDeadlineMs')),_0x4c702d(_0x2ff01b(0x3f1),_0x2afed5(_0x2ff01b(0x1b0)),_0x492349=>_0x3dec89['_n'](_0x2ff01b(0x655),[_0xfcc405,_0x492349])),_0x4c702d('meta',()=>_0x3dec89[_0x2ff01b(0x63c)](_0xfcc405)?.['meta']),_0x4c702d('_lockHandle',()=>_0x51e7a0()?.[_0x2ff01b(0x682)]?{'isHeld':()=>!!_0x51e7a0()?.[_0x2ff01b(0x682)]}:null),_0x4c702d(_0x2ff01b(0x4d7),()=>_0x51e7a0()?.[_0x2ff01b(0x3a1)]?()=>{}:null),_0x4c702d('_flushIntervalTimer',()=>_0x51e7a0()?.[_0x2ff01b(0x6a8)]?{}:null),_0x4c702d(_0x2ff01b(0x193),()=>_0x51e7a0()?.[_0x2ff01b(0x3cc)]?{}:null),_0xe2341b;},_0x29e1da=()=>_0x3dec89['_n']('list',[],![])[_0x460f4c(0x1a7)](_0x3d67f8=>_0x3d67f8['id']);return{'get':_0x22565c=>_0x561103(_0x22565c),'has':_0x7a35e7=>_0x29e1da()[_0x460f4c(0x1ac)](_0x7a35e7),get 'size'(){const _0x4d8a19=_0x460f4c;return _0x29e1da()[_0x4d8a19(0x6cf)];},'keys':()=>_0x29e1da()[Symbol[_0x460f4c(0x56e)]](),'values':()=>_0x29e1da()[_0x460f4c(0x1a7)](_0x561103)[Symbol['iterator']](),'entries':()=>_0x29e1da()[_0x460f4c(0x1a7)](_0x3ab3a9=>[_0x3ab3a9,_0x561103(_0x3ab3a9)])[Symbol['iterator']](),[Symbol[_0x460f4c(0x56e)]]:()=>_0x29e1da()['map'](_0x14afca=>[_0x14afca,_0x561103(_0x14afca)])[Symbol['iterator']](),'forEach':_0xed6e62=>_0x29e1da()[_0x460f4c(0x169)](_0x3b84b8=>_0xed6e62(_0x561103(_0x3b84b8),_0x3b84b8))};}async[_0xd261d3(0x3fe)](){const _0x24ee9b=_0xd261d3;return this['_n'](_0x24ee9b(0x3fe),[]);}[_0xd261d3(0x338)](){const _0x5ba726=_0xd261d3,_0x422a53=this['_n'](_0x5ba726(0x338),[],![]);if(!this[_0x5ba726(0x30b)][_0x5ba726(0x6fe)][_0x5ba726(0x6c8)]('~'))try{const _0xa01230=this[_0x5ba726(0x30b)][_0x5ba726(0x21e)][_0x5ba726(0x47b)];for(const _0x349391 of _0xa01230[_0x5ba726(0x6a4)](this[_0x5ba726(0x30b)][_0x5ba726(0x6fe)])){for(const _0x50b599 of _0xa01230['listIndexes'](_0x349391,this[_0x5ba726(0x30b)][_0x5ba726(0x6fe)])){const _0x1b8bea=_0x5ba726(0x1d9)+_0x349391+':'+_0x50b599;_0x422a53[_0x5ba726(0x2fb)]({'id':_0x1b8bea,'type':_0x349391,'mode':_0x5ba726(0x2d7),'state':_0x5ba726(0x714),'paused':![],'lag':0x0,'cursorKey':_0x1b8bea,'meta':{'name':_0x1b8bea}});}}}catch{}return _0x422a53;}[_0xd261d3(0x6e0)](){const _0x5d18b4=_0xd261d3;return this['_n'](_0x5d18b4(0x6e0),[],![]);}['durableTierLag'](){const _0x3b9861=_0xd261d3;return this['_n'](_0x3b9861(0x495),[],![]);}[_0xd261d3(0x559)](){const _0x3cd00e=_0xd261d3;return this['_n'](_0x3cd00e(0x559),[],![]);}['get'](_0x33c095){const _0x447507=_0xd261d3;return this['_n'](_0x447507(0x63c),[_0x33c095],![]);}[_0xd261d3(0x298)](_0x8d6ce0){const _0x348396=_0xd261d3;return this[_0x348396(0x63c)](typeof _0x8d6ce0===_0x348396(0x4bb)?_0x8d6ce0:_0x8d6ce0['id']);}[_0xd261d3(0x71f)](_0x51c55d){const _0x3b04ea=_0xd261d3;return this['_n'](_0x3b04ea(0x71f),[_0x51c55d],![]);}['resetCursor'](_0x139c3d){const _0x48cb73=_0xd261d3;return this['_n'](_0x48cb73(0x4fc),[_0x139c3d]);}[_0xd261d3(0x243)](_0x5ddcb2){const _0x314f3a=_0xd261d3;return this['_n'](_0x314f3a(0x243),[_0x5ddcb2]);}[_0xd261d3(0x407)](_0x558830){return this['_n']('isSnapshotComplete',[_0x558830],![]);}[_0xd261d3(0x1a6)](_0x3de4d5,_0xcd55b8){const _0x3b7843=_0xd261d3;return this['_n'](_0x3b7843(0x1a6),[_0x3de4d5,_0xcd55b8]);}async[_0xd261d3(0x73f)](_0x43dfab,_0x3dcb74){const _0x50f577=_0xd261d3;return this['_n'](_0x50f577(0x73f),[_0x43dfab,_0x3dcb74??0x7530]);}[_0xd261d3(0x8ab)](_0x5c0a20){const _0x32824d=_0xd261d3;return this['_n'](_0x32824d(0x8ab),[_0x5c0a20]);}['resume'](_0x30df18){return this['_n']('resume',[_0x30df18]);}async['setClaiming'](_0x4de793){return this['_n']('setClaiming',[_0x4de793]);}[_0xd261d3(0x2c7)](_0x3419b7){const _0x2141c5=_0xd261d3;return this['_n'](_0x2141c5(0x2c7),[_0x3419b7]);}[_0xd261d3(0x282)](_0x5b3705){return this['_n']('retry',[_0x5b3705]);}[_0xd261d3(0x2f1)](_0x288a9b,_0x11d28f={}){const _0x3b643e=_0xd261d3;return this['_n'](_0x3b643e(0x2f1),[_0x288a9b,_0x11d28f]);}async[_0xd261d3(0x832)](_0xe3f20b,_0xb2606c,_0x36e1f4){const [_0x5dd84a,_0x36d21c]=this['_n']('setMode',[_0xe3f20b,_0xb2606c,_0x36e1f4]);return{'version':_0x5dd84a,'flipClock':_0x36d21c};}async[_0xd261d3(0x7ae)](_0x5e10f7,_0x5e5154,_0x453acb={}){const _0x16ed7d=_0xd261d3;return this['_n'](_0x16ed7d(0x7ae),[_0x5e10f7,_0x5e5154,_0x453acb]);}}_0x5acc46['registerHandler']=function _0x257cae(_0x5b81b4,_0x100544){const _0x48cbed=_0xd261d3;if(typeof _0x5b81b4!==_0x48cbed(0x4bb)||!_0x5b81b4)throw new Error(_0x48cbed(0x1b8));if(typeof _0x100544!=='function')throw new Error(_0x48cbed(0x88a));_0xda72b4(_0x48cbed(0x7c0),'registerHandler',[_0x5b81b4,_0x100544]);},_0x5acc46['registerQuantum']=function _0x16d2cb(_0x5eef8,_0x1293e3){const _0x358c8d=_0xd261d3;if(typeof _0x5eef8!=='string'||!_0x5eef8)throw new Error(_0x358c8d(0x3af));if(typeof _0x1293e3!==_0x358c8d(0x6d8))throw new Error(_0x358c8d(0x341));let _0x4c803e=null;_0xda72b4(_0x358c8d(0x7c0),_0x358c8d(0x3d7),[_0x5eef8,(_0x322c75,_0xb2dba7)=>{if(!_0x4c803e)_0x4c803e=_0x1293e3();return _0x4c803e(_0x322c75,_0xb2dba7);}]);},_0x5acc46[_0xd261d3(0x256)]=_0x4eaba4=>/closed|not open|released/i[_0xd261d3(0x306)](String(_0x4eaba4)),_0x5acc46[_0xd261d3(0x2fc)]=![];function _0xda72b4(_0x3422dc,_0x44360c,_0x5779f5){const {staticCall:_0x217c1a}=requireLib();return _0x217c1a(_0x3422dc,_0x44360c,_0x5779f5);}return processor[_0xd261d3(0x3be)]=_0x5acc46,processor[_0xd261d3(0x3be)][_0xd261d3(0x4e0)]=_0x5acc46,processor[_0xd261d3(0x3be)]['setNative']=_0x4407f4,processor[_0xd261d3(0x3be)];}var okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0xde272=_0x2ec26e;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x109675={'PUT':'put','REMOVE':_0xde272(0x42f),'INDEX_DROP':_0xde272(0x764),'INDEX_REGISTER':_0xde272(0x7b7),'INDEX_RESET':_0xde272(0x219),'TYPE_REGISTER':_0xde272(0x754),'TYPE_DROP':_0xde272(0x195),'FTS_REGISTER':_0xde272(0x7b2),'FTS_DROP':'dropFts','FTS_RESET':_0xde272(0x73d),'SCHEMA_SET':_0xde272(0x573),'SCHEMA_DROP':_0xde272(0x389),'TTL_SET':_0xde272(0x364),'TTL_CLEAR':_0xde272(0x184)},_0x385c32={'SYSTEM_READY':_0xde272(0x586),'FIELD_RESOLVER_REGISTERED':_0xde272(0x251),'SYSTEM_STOPPED':_0xde272(0x1d7),'SYSTEM_CLOCK_CHANGE':_0xde272(0x301),'SYSTEM_POKE':'system:poke','SYSTEM_DRAIN':_0xde272(0x539),'SYSTEM_TYPE_DROP':_0xde272(0x4b0),'SYSTEM_PROC':_0xde272(0x798),'SYSTEM_BUS_STATE_CHANGE':_0xde272(0x2e3),'ITEM_CREATE':'item:create','ITEM_UPDATE':_0xde272(0x2b3),'ITEM_REMOVE':_0xde272(0x5de),'ITEM_PENDING':_0xde272(0x5e7),'INDEX_RESET':_0xde272(0x3fb),'INDEX_READY':_0xde272(0x85c),'INDEX_PROGRESS':_0xde272(0x8a0),'VIEW_PROGRESS':_0xde272(0x6dd),'INDEX_DROP':_0xde272(0x585),'INDEX_REGISTERED':_0xde272(0x2a1),'FTS_REGISTERED':_0xde272(0x4e5),'FTS_DROP':_0xde272(0x2be),'FTS_RESET':_0xde272(0x229),'SCHEMA_SET':_0xde272(0x247),'SCHEMA_DROP':_0xde272(0x7a2),'UNIQUE_VIOLATION':_0xde272(0x31e),'UNIQUE_VIOLATION_RESOLVED':_0xde272(0x3dd),'REF_VIOLATION':_0xde272(0x517),'REF_VIOLATION_RESOLVED':_0xde272(0x1b3),'SYNC_APPLY':_0xde272(0x40c),'TXN_START':_0xde272(0x75d),'TXN_END':'txn:end','TXN_ROLLBACK':_0xde272(0x3a4),'TYPE_REGISTERED':_0xde272(0x839),'TYPE_DROP':'type:drop','ENV_OPENED':'env:opened','ENV_REMOVED':'env:removed','SYSTEM_ENV_RELEASE':_0xde272(0x70a),'TTL_EXPIRED':_0xde272(0x568),'TTL_SET':_0xde272(0x439),'TTL_CLEAR':_0xde272(0x5e2),'LICENSE_INVALID':'license:invalid','LICENSE_ADDED':_0xde272(0x5f1),'LICENSE_ACTIVATED':_0xde272(0x35f),'LICENSE_REMOVED':'license:removed'},_0x4b7b5f={'CREATING':_0xde272(0x578),'RESETTING':'resetting','READY':'ready','DROPPING':_0xde272(0x324),'WAITING':_0xde272(0x56a),'ERROR':'error'},_0x5c30da={'CREATED':_0xde272(0x244),'STARTING':_0xde272(0x88c),'STARTED':_0xde272(0x1ce),'STOPPING':_0xde272(0x64f),'STOPPED':_0xde272(0x2d9)},_0x1ad3ce={'CREATING':_0xde272(0x578),'READY':_0xde272(0x288),'HALTED':_0xde272(0x614),'STOPPED':_0xde272(0x2d9),'RESETTING':_0xde272(0x7e0)},_0x36ada8=Object['freeze']({'POKE':_0xde272(0x60d),'DRAIN':_0xde272(0x24f),'TYPE_DROP':_0xde272(0x611),'PROC':_0xde272(0x1d3),'ENV_RELEASE':_0xde272(0x67a)});return okdbEnums={'BUS_EVENTS':_0x36ada8,'CHANGE_ACTIONS':_0x109675,'EVENTS':_0x385c32,'INDEX_STATE':_0x4b7b5f,'OKDB_STATE':_0x5c30da,'VIEW_STATE':_0x1ad3ce},okdbEnums;}var okdbGuardedRange,hasRequiredOkdbGuardedRange;function requireOkdbGuardedRange(){const _0x3e4544=_0x2ec26e;if(hasRequiredOkdbGuardedRange)return okdbGuardedRange;hasRequiredOkdbGuardedRange=0x1;const _0x18759d={'SKIP':Symbol[_0x3e4544(0x401)](_0x3e4544(0x633))},{OKDBError:_0x1f23fb}=requireOkdbError(),_0x16133d={'value':null,'done':!![]};class _0x3709ea{constructor(_0x36f860){this['_makeIterator']=_0x36f860;}get[_0x3e4544(0x2fd)](){return _0x16133d;}[Symbol['iterator']](){return this['_makeIterator']();}[_0x3e4544(0x1a7)](_0x43df33){const _0x511825=this;return new _0x3709ea(()=>{const _0x1ce5b4=_0x3ebb,_0x4cd76c=_0x511825[Symbol[_0x1ce5b4(0x56e)]]();return{'next'(){const _0x576e53=_0x1ce5b4;for(;;){const _0x39d3ad=_0x4cd76c[_0x576e53(0x788)]();if(_0x39d3ad['done'])return{'done':!![],'value':undefined};const _0x26285f=_0x43df33(_0x39d3ad['value']);if(_0x26285f===_0x18759d[_0x576e53(0x57b)])continue;if(_0x26285f===_0x16133d)return _0x4cd76c[_0x576e53(0x77e)]?.(),{'done':!![],'value':undefined};return{'done':![],'value':_0x26285f};}},'return'(){return _0x4cd76c['return']?.(),{'done':!![],'value':undefined};},[Symbol[_0x1ce5b4(0x56e)]](){return this;}};});}[_0x3e4544(0x852)](_0x219b61){const _0x4333b4=_0x3e4544;return this[_0x4333b4(0x1a7)](_0x2d7619=>_0x219b61(_0x2d7619)?_0x2d7619:_0x18759d[_0x4333b4(0x57b)]);}[_0x3e4544(0x169)](_0x1d328c){for(const _0x537d1f of this)_0x1d328c(_0x537d1f);}[_0x3e4544(0x5ca)](_0x37e5b8=0x0,_0x40fe45=Infinity){const _0x5b6d19=this;return new _0x3709ea(()=>{const _0x28b9a9=_0x3ebb,_0x2d464e=_0x5b6d19[Symbol['iterator']]();let _0x5bbe16=0x0;return{'next'(){const _0x59c9e1=_0x3ebb;for(;;){const _0x18df94=_0x2d464e[_0x59c9e1(0x788)]();if(_0x18df94[_0x59c9e1(0x3b5)])return{'done':!![],'value':undefined};const _0x3c38f1=_0x5bbe16++;if(_0x3c38f1<_0x37e5b8)continue;if(_0x3c38f1>=_0x40fe45)return _0x2d464e[_0x59c9e1(0x77e)]?.(),{'done':!![],'value':undefined};return _0x18df94;}},'return'(){const _0x5e685a=_0x3ebb;return _0x2d464e[_0x5e685a(0x77e)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x28b9a9(0x56e)]](){return this;}};});}['at'](_0x54e7ad){let _0x3a1b04=0x0;for(const _0x3eb526 of this)if(_0x3a1b04++===_0x54e7ad)return _0x3eb526;return undefined;}[_0x3e4544(0x164)](_0x1f7a88){const _0xe9b56f=this;return new _0x3709ea(()=>{const _0x25b566=_0x3ebb,_0x1b5721=_0xe9b56f[Symbol[_0x25b566(0x56e)]]();let _0x47db45=[];return{'next'(){const _0x279d07=_0x25b566;for(;;){if(_0x47db45[_0x279d07(0x6cf)])return{'done':![],'value':_0x47db45['shift']()};const _0x4d2000=_0x1b5721[_0x279d07(0x788)]();if(_0x4d2000[_0x279d07(0x3b5)])return{'done':!![],'value':undefined};const _0x3faf2f=_0x1f7a88(_0x4d2000[_0x279d07(0x820)]);if(Array[_0x279d07(0x69e)](_0x3faf2f))_0x47db45=_0x47db45[_0x279d07(0x79b)](_0x3faf2f);else{if(_0x3faf2f!=null&&(_0x3faf2f instanceof _0x3709ea||typeof _0x3faf2f[Symbol['iterator']]===_0x279d07(0x6d8)&&_0x279d07(0x45b)in _0x3faf2f))_0x47db45=_0x47db45['concat'](Array[_0x279d07(0x170)](_0x3faf2f));else{if(_0x3faf2f!==_0x18759d[_0x279d07(0x57b)])return{'done':![],'value':_0x3faf2f};}}}},'return'(){const _0x5832ba=_0x25b566;return _0x1b5721[_0x5832ba(0x77e)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x25b566(0x56e)]](){return this;}};});}[_0x3e4544(0x79b)](_0x300fa2){const _0x25fa27=this;return new _0x3709ea(()=>{const _0x2a62e9=_0x3ebb;let _0x21cf7b=_0x25fa27[Symbol[_0x2a62e9(0x56e)]](),_0x17616a=![];return{'next'(){const _0x497a96=_0x2a62e9;for(;;){const _0x270e27=_0x21cf7b[_0x497a96(0x788)]();if(!_0x270e27[_0x497a96(0x3b5)])return _0x270e27;if(_0x17616a)return{'done':!![],'value':undefined};_0x17616a=!![],_0x21cf7b=_0x300fa2[Symbol[_0x497a96(0x56e)]]();}},'return'(){const _0x45f143=_0x2a62e9;return _0x21cf7b[_0x45f143(0x77e)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x2a62e9(0x56e)]](){return this;}};});}[_0x3e4544(0x3ec)](_0x373524){const _0x282843=this;return new _0x3709ea(()=>{const _0x2cf99d=_0x282843[Symbol['iterator']]();return{'next'(){const _0x5ed0e5=_0x3ebb;for(;;){try{return _0x2cf99d[_0x5ed0e5(0x788)]();}catch(_0x1351df){const _0x175516=_0x373524(_0x1351df);if(_0x175516===_0x18759d[_0x5ed0e5(0x57b)]||_0x175516===undefined)continue;return{'done':![],'value':_0x175516};}}},'return'(){return _0x2cf99d['return']?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}[_0x3e4544(0x40d)](){const _0x3ec886=_0x3e4544;return Array[_0x3ec886(0x170)](this);}get[_0x3e4544(0x45b)](){const _0x2133c2=_0x3e4544;return Array[_0x2133c2(0x170)](this);}}const _0x180cc0={'total':0x0,'byLabel':{},'last':null};function _0x4f25c0(_0x14ab19){const _0x6dda0f=_0x3e4544;_0x180cc0['total']++;if(_0x14ab19)_0x180cc0['byLabel'][_0x14ab19]=(_0x180cc0['byLabel'][_0x14ab19]??0x0)+0x1;_0x180cc0['last']={'label':_0x14ab19??null,'at':Date[_0x6dda0f(0x89e)]()};}function _0x11276e(){const _0x512cd9=_0x3e4544;return{'total':_0x180cc0['total'],'byLabel':{..._0x180cc0[_0x512cd9(0x2e2)]},'last':_0x180cc0['last']};}function _0x2a2215(_0x2b9a64,_0x52b733={}){const {getTxnId:_0x4ad90d,resume:_0x2f0ea3,label:_0x3440c6,baseline:_0x5dc7fe}=_0x52b733;return new _0x3709ea(()=>{const _0x42dd84=_0x3ebb;let _0x3cc389=null,_0x48607a=![],_0x8e0de2=![],_0x50416b=![],_0xaa1cca,_0x4a1df1=0x0,_0x30e038;return{'next'(){const _0x3ff852=_0x3ebb;if(_0x50416b)return{'done':!![],'value':undefined};if(_0x8e0de2){let _0x454d07=![];if(_0x2f0ea3&&_0x4ad90d)try{_0x454d07=_0x4ad90d()===_0x30e038;}catch{}if(!_0x454d07){_0x50416b=!![],_0x4f25c0(_0x3440c6);throw new _0x1f23fb(_0x2f0ea3?_0x3ff852(0x1eb)+_0x3ff852(0x17d)+_0x3ff852(0x486):_0x3ff852(0x47e)+_0x3ff852(0x4bc)+'Array.from)\x20before\x20any\x20await.',_0x3ff852(0x643));}_0x3cc389=_0x2f0ea3(_0xaa1cca,_0x4a1df1)[Symbol[_0x3ff852(0x56e)]](),_0x8e0de2=![];}if(!_0x3cc389){if(_0x5dc7fe!==undefined)_0x30e038=_0x5dc7fe;else try{_0x30e038=_0x4ad90d?_0x4ad90d():undefined;}catch{_0x30e038=undefined;}try{_0x3cc389=_0x2b9a64()[Symbol[_0x3ff852(0x56e)]]();}catch(_0x49d0f2){_0x50416b=!![];throw _0x49d0f2;}}!_0x48607a&&(_0x48607a=!![],queueMicrotask(()=>{const _0x3d7514=_0x3ff852;_0x48607a=![];if(_0x50416b||_0x8e0de2)return;try{_0x3cc389?.[_0x3d7514(0x77e)]?.();}catch{}_0x3cc389=null,_0x8e0de2=!![];}));const _0x2b5ff8=_0x3cc389['next']();if(_0x2b5ff8[_0x3ff852(0x3b5)])return _0x50416b=!![],{'done':!![],'value':undefined};return _0xaa1cca=_0x2b5ff8[_0x3ff852(0x820)],_0x4a1df1++,_0x2b5ff8;},'return'(){const _0x576414=_0x3ebb;_0x50416b=!![];try{_0x3cc389?.[_0x576414(0x77e)]?.();}catch{}return{'done':!![],'value':undefined};},[Symbol[_0x42dd84(0x56e)]](){return this;}};});}return okdbGuardedRange={'guardSnapshotIterable':_0x2a2215,'OKDBGuardedRange':_0x3709ea,'recordGuardTrip':_0x4f25c0,'getGuardTripStats':_0x11276e},okdbGuardedRange;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0x546df3=_0x2ec26e;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x138b8b,performance:_0x5bf479}=require$$0$1,_0x4e96ca=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG===_0x546df3(0x3ee),_0x2f618e=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x47394f=process.env.OKDB_LOOP_LAG_ALL==='1',_0x2058ba=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0x5109fe{constructor(){const _0x30de8e=_0x546df3;this[_0x30de8e(0x580)]=_0x4e96ca,this[_0x30de8e(0x2c6)]=new Map(),this['_h']=null,this[_0x30de8e(0x25f)]=null,this['_started']=![],this['_log']=(_0x5b524a,_0x54da7f)=>process[_0x30de8e(0x1a3)][_0x30de8e(0x4ca)](_0x5b524a+(_0x54da7f?'\x20'+JSON['stringify'](_0x54da7f):'')+'\x0a');}[_0x546df3(0x89e)](){const _0x4e41da=_0x546df3;return _0x5bf479[_0x4e41da(0x89e)]();}[_0x546df3(0x31b)](_0x48f40e){const _0x3e8905=_0x546df3;if(typeof _0x48f40e===_0x3e8905(0x6d8))this[_0x3e8905(0x8a6)]=_0x48f40e;}[_0x546df3(0x3a5)](_0x3c0f2b,_0x2ad97c,_0x8dfd9d){const _0x5848ee=_0x546df3;if(!this[_0x5848ee(0x580)])return;let _0x599d4c=this[_0x5848ee(0x2c6)][_0x5848ee(0x63c)](_0x3c0f2b);!_0x599d4c&&(_0x599d4c={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this['_buckets']['set'](_0x3c0f2b,_0x599d4c)),_0x599d4c['ms']+=_0x2ad97c,_0x599d4c[_0x5848ee(0x3c2)]+=0x1,_0x2ad97c>_0x599d4c[_0x5848ee(0x371)]&&(_0x599d4c[_0x5848ee(0x371)]=_0x2ad97c,_0x599d4c[_0x5848ee(0x325)]=_0x8dfd9d||'');}[_0x546df3(0x898)](_0x2e086a){const _0x5c78c6=_0x546df3;if(!this[_0x5c78c6(0x580)]||this[_0x5c78c6(0x3cb)])return;this[_0x5c78c6(0x3cb)]=!![];if(_0x2e086a)this['_log']=_0x2e086a;this['_h']=_0x138b8b({'resolution':0xa}),this['_h'][_0x5c78c6(0x1cf)](),this['_timer']=setInterval(()=>this['_report'](),_0x2f618e);if(this[_0x5c78c6(0x25f)][_0x5c78c6(0x702)])this['_timer'][_0x5c78c6(0x702)]();}[_0x546df3(0x23d)](_0x561632){const _0x1d2cd1=_0x546df3;if(!this[_0x1d2cd1(0x877)])this[_0x1d2cd1(0x877)]=new Set();this[_0x1d2cd1(0x877)][_0x1d2cd1(0x7df)](_0x561632);if(!this[_0x1d2cd1(0x3cb)])this[_0x1d2cd1(0x359)]();}[_0x546df3(0x33d)](_0x5d6bfa){const _0x43429f=_0x546df3;this['_windowCbs']?.[_0x43429f(0x82f)](_0x5d6bfa);}[_0x546df3(0x359)](){const _0x2e323c=_0x546df3;if(this[_0x2e323c(0x77c)])return;this['_admissionStarted']=!![];!this['_h']&&(this['_h']=_0x138b8b({'resolution':0xa}),this['_h']['enable']());const _0x221b95=_0x2f618e;this[_0x2e323c(0x4b2)]=setInterval(()=>{const _0x9532b6=_0x2e323c,_0x4323db=this['_h'];if(!_0x4323db)return;const _0x16f15a=_0x4323db[_0x9532b6(0x710)](0x63)/0xf4240,_0x20fae0=_0x4323db[_0x9532b6(0x3e7)]/0xf4240,_0x17d19a=_0x4323db[_0x9532b6(0x349)]/0xf4240;_0x4323db['reset']();if(this['_windowCbs'])for(const _0x58620e of this[_0x9532b6(0x877)]){try{_0x58620e({'p99Ms':_0x16f15a,'maxMs':_0x20fae0,'meanMs':_0x17d19a,'reportMs':_0x221b95});}catch{}}},_0x221b95);if(this[_0x2e323c(0x4b2)][_0x2e323c(0x702)])this[_0x2e323c(0x4b2)][_0x2e323c(0x702)]();}[_0x546df3(0x813)](){const _0x2ba42c=_0x546df3,_0x194a49=this['_h'],_0x1f6950=_0x194a49[_0x2ba42c(0x3e7)]/0xf4240,_0x425ffa=_0x194a49[_0x2ba42c(0x710)](0x63)/0xf4240,_0x3c2fc5=_0x194a49['mean']/0xf4240;_0x194a49['reset']();const _0x509354=[...this[_0x2ba42c(0x2c6)][_0x2ba42c(0x72a)]()][_0x2ba42c(0x1a7)](([_0x3e5a15,_0x1f2937])=>({'label':_0x3e5a15,..._0x1f2937}))['sort']((_0x26a13a,_0x12efb8)=>_0x12efb8['ms']-_0x26a13a['ms'])[_0x2ba42c(0x5ca)](0x0,0x8);this[_0x2ba42c(0x2c6)][_0x2ba42c(0x871)]();const _0x357687=_0x509354[_0x2ba42c(0x7f8)]((_0x1ed55a,_0x155d86)=>_0x1ed55a+_0x155d86['ms'],0x0),_0x23d826=_0x509354[_0x2ba42c(0x1a7)](_0x4a5424=>_0x4a5424[_0x2ba42c(0x7c8)]+'='+_0x4a5424['ms']['toFixed'](0x0)+_0x2ba42c(0x6d7)+_0x4a5424['count']+(_0x4a5424[_0x2ba42c(0x371)]>0x5?'(worst\x20'+_0x4a5424[_0x2ba42c(0x371)][_0x2ba42c(0x5d9)](0x0)+'ms'+(_0x4a5424[_0x2ba42c(0x325)]?'\x20'+_0x4a5424[_0x2ba42c(0x325)]:'')+')':''));(_0x47394f||_0x1f6950>=_0x2058ba)&&this['_log']('loop-lag\x20'+_0x2f618e+_0x2ba42c(0x3a8)+_0x1f6950[_0x2ba42c(0x5d9)](0x0)+_0x2ba42c(0x7d0)+_0x425ffa['toFixed'](0x0)+_0x2ba42c(0x5c8)+_0x3c2fc5[_0x2ba42c(0x5d9)](0x0)+_0x2ba42c(0x6bb)+_0x357687[_0x2ba42c(0x5d9)](0x0)+'ms'+(_0x23d826['length']?_0x2ba42c(0x833)+_0x23d826[_0x2ba42c(0x3d2)]('\x20\x20'):''),{'feature':_0x2ba42c(0x2f8)});if(this['_windowCbs'])for(const _0x532227 of this[_0x2ba42c(0x877)]){try{_0x532227({'p99Ms':_0x425ffa,'maxMs':_0x1f6950,'meanMs':_0x3c2fc5,'reportMs':_0x2f618e});}catch{}}}[_0x546df3(0x893)](){const _0x3dc217=_0x546df3;if(this[_0x3dc217(0x25f)])clearInterval(this[_0x3dc217(0x25f)]);if(this['_h'])this['_h'][_0x3dc217(0x48e)]();this[_0x3dc217(0x25f)]=null,this['_h']=null,this[_0x3dc217(0x3cb)]=![];}}const _0x2543c5=new _0x5109fe();if(_0x2543c5[_0x546df3(0x580)])_0x2543c5['start']();return okdbLoopMonitor={'LOOP':_0x2543c5},okdbLoopMonitor;}var okdbTransaction,hasRequiredOkdbTransaction;function requireOkdbTransaction(){const _0xe7c62d=_0x2ec26e;if(hasRequiredOkdbTransaction)return okdbTransaction;hasRequiredOkdbTransaction=0x1;const _0x422f5c={'v4':()=>require$$0$2['randomUUID']()},{EVENTS:_0x3e0136}=requireOkdbEnums(),{OKDBError:_0x5caa13}=requireOkdbError(),{recordGuardTrip:_0x18d3a7,guardSnapshotIterable:_0x490b66}=requireOkdbGuardedRange(),{LOOP:_0x339ef9}=requireOkdbLoopMonitor();function _0x1821c4(_0x1b623d){return _0x1b623d['map'](_0x24fddc=>{const _0xdb4b47=_0x3ebb,[_0x45e586,_0x465c44]=_0x24fddc[_0xdb4b47(0x1fa)]||[];return{'action':_0x24fddc[_0xdb4b47(0x730)],'type':_0x45e586,'key':_0x465c44};});}class _0x416fef{[_0xe7c62d(0x21e)];[_0xe7c62d(0x858)]=[];[_0xe7c62d(0x18d)]=[];[_0xe7c62d(0x3a0)]=[];constructor(_0x30c9bd,_0x40047c={'useReadTransaction':![]}){const _0x1f767c=_0xe7c62d;this['okdb']=_0x30c9bd,this[_0x1f767c(0x66a)]=_0x40047c,this['id']=_0x422f5c['v4']();if(this[_0x1f767c(0x66a)][_0x1f767c(0x271)])try{this['_txnIdAtSnapshot']=this[_0x1f767c(0x21e)]['db'][_0x1f767c(0x7fd)]()[_0x1f767c(0x497)];}catch{this[_0x1f767c(0x427)]=undefined;}this[_0x1f767c(0x6b0)]=this['options'][_0x1f767c(0x271)]?this[_0x1f767c(0x21e)]['db'][_0x1f767c(0x271)]():null,this[_0x1f767c(0x208)]=![],this['_readViewExpired']=![],this['readTransaction']&&queueMicrotask(()=>{const _0x36d67a=_0x1f767c;this[_0x36d67a(0x6b0)]&&(this[_0x36d67a(0x408)](),this[_0x36d67a(0x4e8)]=!![]);});}[_0xe7c62d(0x576)](_0x534849){const _0x4e7a9b=_0xe7c62d;this[_0x4e7a9b(0x18d)][_0x4e7a9b(0x2fb)](_0x534849);}['onUndo'](_0x2d82e4){const _0x4c5e23=_0xe7c62d;this[_0x4c5e23(0x3a0)][_0x4c5e23(0x2fb)](_0x2d82e4);}['_closeReadTransaction'](){const _0x49e4a7=_0xe7c62d;if(!this[_0x49e4a7(0x6b0)])return;try{this['readTransaction'][_0x49e4a7(0x3b5)]();}catch(_0x15b959){}this[_0x49e4a7(0x6b0)]=null;}[_0xe7c62d(0x29b)](){const _0x422773=_0xe7c62d;if(this['_closed'])throw new _0x5caa13(_0x422773(0x527),_0x422773(0x1f6));if(this[_0x422773(0x4e8)]){let _0x2aba15=![];if(this['options']['useReadTransaction']===_0x422773(0x888)&&this[_0x422773(0x427)]!==undefined)try{_0x2aba15=this[_0x422773(0x21e)]['db'][_0x422773(0x7fd)]()[_0x422773(0x497)]===this['_txnIdAtSnapshot'];}catch{}if(!_0x2aba15){_0x18d3a7((this[_0x422773(0x21e)]?.['name']??'?')+_0x422773(0x725));throw new _0x5caa13(_0x422773(0x1ef)+_0x422773(0x369)+'before\x20any\x20await\x20—\x20or\x20opt\x20into\x20useReadTransaction:\x27tolerant\x27\x20to\x20keep\x20reading\x20while\x20'+_0x422773(0x68d),_0x422773(0x643));}}}[_0xe7c62d(0x63c)](_0x529ec1,_0x4ee4c0){const _0x2d5dc9=_0xe7c62d;return this[_0x2d5dc9(0x29b)](),this[_0x2d5dc9(0x21e)]['get'](_0x529ec1,_0x4ee4c0,{'transaction':this['readTransaction']});}[_0xe7c62d(0x2ec)](_0x15463a,_0x170dba){const _0x574f58=_0xe7c62d;return this[_0x574f58(0x29b)](),this[_0x574f58(0x21e)][_0x574f58(0x2ec)](_0x15463a,_0x170dba,{'transaction':this['readTransaction']});}['getMany'](_0x2a57da,_0x32b4ce){const _0x2f7a6a=_0xe7c62d;return this[_0x2f7a6a(0x29b)](),this['okdb'][_0x2f7a6a(0x791)](_0x2a57da,_0x32b4ce,{'transaction':this[_0x2f7a6a(0x6b0)]});}[_0xe7c62d(0x3b1)](_0x55ba14){const _0x3c1af0=_0xe7c62d;if(!this['options'][_0x3c1af0(0x271)])return _0x55ba14;if(_0x55ba14&&typeof _0x55ba14['then']===_0x3c1af0(0x6d8))return _0x55ba14;if(Array['isArray'](_0x55ba14))return _0x55ba14;const _0x18e72f=this,_0x1b50d3=_0x18e72f[_0x3c1af0(0x66a)][_0x3c1af0(0x271)]===_0x3c1af0(0x888),_0xa3e538=()=>{const _0x2a4f81=_0x3c1af0;if(!_0x18e72f['_readViewExpired'])return![];if(!_0x1b50d3)return!![];if(_0x18e72f[_0x2a4f81(0x427)]===undefined)return!![];try{return _0x18e72f[_0x2a4f81(0x21e)]['db'][_0x2a4f81(0x7fd)]()[_0x2a4f81(0x497)]!==_0x18e72f[_0x2a4f81(0x427)];}catch{return!![];}};return _0x490b66(()=>{const _0x171655=_0x3c1af0;if(_0x18e72f['_closed'])throw new _0x5caa13(_0x171655(0x527),_0x171655(0x1f6));if(_0xa3e538()){_0x18d3a7((_0x18e72f[_0x171655(0x21e)]?.[_0x171655(0x6fe)]??'?')+_0x171655(0x7c2));throw new _0x5caa13(_0x171655(0x4f0)+_0x171655(0x6a6)+_0x171655(0x35b),_0x171655(0x643));}return _0x55ba14;},{'label':(_0x18e72f[_0x3c1af0(0x21e)]?.[_0x3c1af0(0x6fe)]??'?')+_0x3c1af0(0x7c2),..._0x1b50d3?{'baseline':_0x18e72f[_0x3c1af0(0x427)],'getTxnId':()=>_0x18e72f[_0x3c1af0(0x21e)]['db'][_0x3c1af0(0x7fd)]()[_0x3c1af0(0x497)],'resume':(_0x56397c,_0xb34fa3)=>_0x55ba14['slice'](_0xb34fa3)}:{}});}['getRange'](_0x422349,_0x4ef4da={}){const _0x1dd774=_0xe7c62d;return this['_assertOpen'](),this[_0x1dd774(0x3b1)](this[_0x1dd774(0x21e)][_0x1dd774(0x3fa)](_0x422349,{'transaction':this[_0x1dd774(0x6b0)],..._0x4ef4da}));}[_0xe7c62d(0x618)](_0x41fb45,_0x206db2={}){const _0x396257=_0xe7c62d;return this['_assertOpen'](),this[_0x396257(0x3b1)](this[_0x396257(0x21e)][_0x396257(0x618)](_0x41fb45,{'transaction':this[_0x396257(0x6b0)],..._0x206db2}));}[_0xe7c62d(0x7d2)](_0x1d56d5,_0x1f1fb4={}){const _0xeaf03=_0xe7c62d;return this[_0xeaf03(0x29b)](),this['_range'](this['okdb'][_0xeaf03(0x7d2)](_0x1d56d5,{'transaction':this[_0xeaf03(0x6b0)],..._0x1f1fb4}));}[_0xe7c62d(0x2c0)](_0x5023f4,_0x4f2fbd,_0xfcab76={}){const _0x55c155=_0xe7c62d;return this[_0x55c155(0x29b)](),this[_0x55c155(0x3b1)](this[_0x55c155(0x21e)][_0x55c155(0x2c0)](_0x5023f4,_0x4f2fbd,{'transaction':this[_0x55c155(0x6b0)],..._0xfcab76}));}[_0xe7c62d(0x665)](_0x22dffd,_0x2ad212,_0x4cc4f6={}){const _0x57ec10=_0xe7c62d;return this['_assertOpen'](),this[_0x57ec10(0x3b1)](this[_0x57ec10(0x21e)][_0x57ec10(0x665)](_0x22dffd,_0x2ad212,{'transaction':this[_0x57ec10(0x6b0)],..._0x4cc4f6}));}['getClock'](_0x1ccc6c=null){const _0x34bf78=_0xe7c62d;return this[_0x34bf78(0x29b)](),this['okdb'][_0x34bf78(0x45e)](_0x1ccc6c,{'transaction':this[_0x34bf78(0x6b0)]});}[_0xe7c62d(0x436)](_0x195ee1){const _0x147de0=_0xe7c62d;return this[_0x147de0(0x29b)](),this['okdb']['getCount'](_0x195ee1,{'transaction':this['readTransaction']});}[_0xe7c62d(0x27f)](_0x7aa74d,_0x6a4049,_0x219f5f,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0xe7c62d(0x89e)](),origin:origin=null,ttl:ttl=null}={}){const _0x3cae94=_0xe7c62d;this[_0x3cae94(0x858)][_0x3cae94(0x2fb)]({'action':'put','args':[_0x7aa74d,_0x6a4049,_0x219f5f,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0xe7c62d(0x88e)](_0x138a3f,_0x14a2d8,_0x31710d,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0xe7c62d(0x89e)](),origin:origin=null,ttl:ttl=null}={}){const _0x4c2858=_0xe7c62d;this['actions'][_0x4c2858(0x2fb)]({'action':_0x4c2858(0x88e),'args':[_0x138a3f,_0x14a2d8,_0x31710d,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}['patch'](_0x5b2707,_0x3ed3e2,_0x32883b,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0xe7c62d(0x89e)](),origin:origin=null,ttl:ttl=null}={}){const _0x566877=_0xe7c62d;this[_0x566877(0x858)]['push']({'action':_0x566877(0x747),'args':[_0x5b2707,_0x3ed3e2,_0x32883b,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0xe7c62d(0x740)](_0x2acb4e,_0x33fb48,_0x121be5,{version:version=null,timestamp:timestamp=Date[_0xe7c62d(0x89e)](),origin:origin=null,ttl:ttl=null}={}){const _0x19dd25=_0xe7c62d;this[_0x19dd25(0x858)][_0x19dd25(0x2fb)]({'action':_0x19dd25(0x740),'args':[_0x2acb4e,_0x33fb48,_0x121be5,{'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0xe7c62d(0x42f)](_0x5785ea,_0x31be7d,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0xe7c62d(0x89e)](),origin:origin=null}={}){const _0x4dc67a=_0xe7c62d;this[_0x4dc67a(0x858)][_0x4dc67a(0x2fb)]({'action':_0x4dc67a(0x42f),'args':[_0x5785ea,_0x31be7d,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin}]});}[_0xe7c62d(0x397)](_0x50ada8,_0x3c9aa6,_0x18a372){const _0x398742=_0xe7c62d;this[_0x398742(0x858)][_0x398742(0x2fb)]({'action':'setTTL','args':[_0x50ada8,_0x3c9aa6,_0x18a372]});}['clearTTL'](_0x22b697,_0x2f9ea6){const _0x59a120=_0xe7c62d;this[_0x59a120(0x858)]['push']({'action':_0x59a120(0x483),'args':[_0x22b697,_0x2f9ea6]});}[_0xe7c62d(0x36e)](){const _0x2407ef=_0xe7c62d;if(this[_0x2407ef(0x208)])return;for(const _0x15445c of this[_0x2407ef(0x3a0)]){try{_0x15445c();}catch{}}this[_0x2407ef(0x21e)][_0x2407ef(0x29a)]['emit'](_0x3e0136[_0x2407ef(0x3b4)],{'id':this['id']}),this['actions']=[],this['_closeReadTransaction'](),this['_closed']=!![];}async[_0xe7c62d(0x2cd)](){const _0x4df007=_0xe7c62d;if(this[_0x4df007(0x208)])throw new Error(_0x4df007(0x527));const _0x15b7cc={'id':this['id'],'timestamp':Date[_0x4df007(0x89e)](),'actions':this[_0x4df007(0x858)]};this['okdb'][_0x4df007(0x29a)]['emit'](_0x3e0136['TXN_START'],_0x15b7cc);try{const _0x4baf6a=_0x339ef9[_0x4df007(0x580)]?_0x339ef9[_0x4df007(0x89e)]():0x0;await this[_0x4df007(0x21e)][_0x4df007(0x291)]['transaction'](()=>{const _0x413a63=_0x4df007;for(const _0x1b3444 of this['actions']){const _0x21154b=this[_0x413a63(0x21e)]['_'+_0x1b3444[_0x413a63(0x730)]];if(typeof _0x21154b!==_0x413a63(0x6d8))throw new Error(_0x413a63(0x77a)+_0x1b3444[_0x413a63(0x730)]);_0x21154b['call'](this[_0x413a63(0x21e)],this,..._0x1b3444['args']);}}),_0x339ef9[_0x4df007(0x580)]&&_0x339ef9['note']('txn-commit',_0x339ef9[_0x4df007(0x89e)]()-_0x4baf6a,(this['okdb'][_0x4df007(0x6fe)]??'?')+_0x4df007(0x212)+this[_0x4df007(0x858)]['length']);}catch(_0x270e7f){for(const _0x15563d of this[_0x4df007(0x3a0)]){try{_0x15563d();}catch{}}this[_0x4df007(0x408)](),this['_closed']=!![];if(_0x270e7f instanceof _0x5caa13)throw _0x270e7f;const _0x249be9={'cause':_0x270e7f,'env':this[_0x4df007(0x21e)]?.[_0x4df007(0x6fe)],'envPath':this['okdb']?.[_0x4df007(0x39d)],'pid':process[_0x4df007(0x7a5)],'txnId':this['id'],'actionCount':this['actions'][_0x4df007(0x6cf)],'actions':_0x1821c4(this[_0x4df007(0x858)]),'nativeCode':_0x270e7f?.['code'],'nativeName':_0x270e7f?.['name']};try{this[_0x4df007(0x21e)]?.[_0x4df007(0x793)]?.[_0x4df007(0x254)]?.('transaction\x20commit\x20failed',{'env':_0x249be9[_0x4df007(0x30b)],'envPath':_0x249be9[_0x4df007(0x537)],'pid':_0x249be9[_0x4df007(0x7a5)],'txnId':_0x249be9[_0x4df007(0x582)],'actionCount':_0x249be9['actionCount'],'actions':_0x249be9[_0x4df007(0x858)],'nativeCode':_0x249be9[_0x4df007(0x332)],'error':_0x270e7f?.[_0x4df007(0x2d2)],'stack':_0x270e7f?.['stack']});}catch{}throw new _0x5caa13(_0x270e7f?.['message']||_0x4df007(0x731),_0x4df007(0x7e4),_0x249be9);}this[_0x4df007(0x21e)]['events'][_0x4df007(0x6d6)](_0x3e0136[_0x4df007(0x63e)],_0x15b7cc);for(const _0x2dae05 of this[_0x4df007(0x18d)]){try{await _0x2dae05();}catch{}}this[_0x4df007(0x858)]=[],this[_0x4df007(0x408)](),this[_0x4df007(0x208)]=!![];}static['createWriteFacade'](_0x669532){const _0x44d6f1=_0xe7c62d;return Object[_0x44d6f1(0x62b)]({'id':_0x669532['id'],'put':_0x669532[_0x44d6f1(0x27f)][_0x44d6f1(0x202)](_0x669532),'update':_0x669532[_0x44d6f1(0x88e)][_0x44d6f1(0x202)](_0x669532),'patch':_0x669532['patch'][_0x44d6f1(0x202)](_0x669532),'create':_0x669532[_0x44d6f1(0x740)][_0x44d6f1(0x202)](_0x669532),'remove':_0x669532[_0x44d6f1(0x42f)][_0x44d6f1(0x202)](_0x669532),'setTTL':_0x669532['setTTL'][_0x44d6f1(0x202)](_0x669532),'clearTTL':_0x669532[_0x44d6f1(0x483)]['bind'](_0x669532),'commit':_0x669532[_0x44d6f1(0x2cd)][_0x44d6f1(0x202)](_0x669532),'rollback':_0x669532['rollback'][_0x44d6f1(0x202)](_0x669532),'get':_0x669532[_0x44d6f1(0x63c)]['bind'](_0x669532),'getEntry':_0x669532[_0x44d6f1(0x2ec)][_0x44d6f1(0x202)](_0x669532),'getMany':_0x669532[_0x44d6f1(0x791)][_0x44d6f1(0x202)](_0x669532),'getRange':_0x669532[_0x44d6f1(0x3fa)][_0x44d6f1(0x202)](_0x669532),'getValues':_0x669532[_0x44d6f1(0x618)][_0x44d6f1(0x202)](_0x669532),'getKeys':_0x669532[_0x44d6f1(0x7d2)]['bind'](_0x669532),'byIndex':_0x669532['byIndex']['bind'](_0x669532),'query':_0x669532[_0x44d6f1(0x665)][_0x44d6f1(0x202)](_0x669532),'getClock':_0x669532[_0x44d6f1(0x45e)][_0x44d6f1(0x202)](_0x669532),'getCount':_0x669532[_0x44d6f1(0x436)][_0x44d6f1(0x202)](_0x669532),'read':_0x669532,'raw':_0x669532});}static[_0xe7c62d(0x36f)](_0x13ffa6,_0x28e536=[]){const _0x1b7ead=_0xe7c62d;if(!Array[_0x1b7ead(0x69e)](_0x28e536))throw new _0x5caa13('txn\x20ops\x20must\x20be\x20an\x20array',_0x1b7ead(0x84b));for(const _0x17c37d of _0x28e536){if(Array['isArray'](_0x17c37d)){const [_0x50b164,..._0x2fef48]=_0x17c37d;if(typeof _0x13ffa6[_0x50b164]!==_0x1b7ead(0x6d8))throw new _0x5caa13('Unknown\x20transaction\x20action:\x20'+_0x50b164,_0x1b7ead(0x700),{'action':_0x50b164});_0x13ffa6[_0x50b164](..._0x2fef48);continue;}if(!_0x17c37d||typeof _0x17c37d!==_0x1b7ead(0x1be))throw new _0x5caa13(_0x1b7ead(0x57c),_0x1b7ead(0x591));const {action:_0x36f7cb}=_0x17c37d;if(typeof _0x36f7cb!=='string'||typeof _0x13ffa6[_0x36f7cb]!==_0x1b7ead(0x6d8))throw new _0x5caa13('Unknown\x20transaction\x20action:\x20'+_0x36f7cb,_0x1b7ead(0x700),{'action':_0x36f7cb});switch(_0x36f7cb){case _0x1b7ead(0x27f):case _0x1b7ead(0x88e):case'create':_0x13ffa6[_0x36f7cb](_0x17c37d[_0x1b7ead(0x673)],_0x17c37d[_0x1b7ead(0x366)],_0x17c37d[_0x1b7ead(0x820)],{..._0x17c37d[_0x1b7ead(0x66a)],'ttl':_0x17c37d[_0x1b7ead(0x463)]??_0x17c37d[_0x1b7ead(0x66a)]?.[_0x1b7ead(0x463)]??null});break;case _0x1b7ead(0x747):_0x13ffa6[_0x1b7ead(0x747)](_0x17c37d[_0x1b7ead(0x673)],_0x17c37d['key'],_0x17c37d[_0x1b7ead(0x747)],{..._0x17c37d['options'],'ttl':_0x17c37d['ttl']??_0x17c37d['options']?.[_0x1b7ead(0x463)]??null});break;case'remove':_0x13ffa6['remove'](_0x17c37d['type'],_0x17c37d[_0x1b7ead(0x366)],_0x17c37d[_0x1b7ead(0x66a)]||{});break;case _0x1b7ead(0x397):_0x13ffa6[_0x1b7ead(0x397)](_0x17c37d[_0x1b7ead(0x673)],_0x17c37d[_0x1b7ead(0x366)],_0x17c37d[_0x1b7ead(0x463)]);break;case _0x1b7ead(0x483):_0x13ffa6[_0x1b7ead(0x483)](_0x17c37d[_0x1b7ead(0x673)],_0x17c37d[_0x1b7ead(0x366)]);break;default:throw new _0x5caa13(_0x1b7ead(0x473)+_0x36f7cb,_0x1b7ead(0x700),{'action':_0x36f7cb});}}}static async[_0xe7c62d(0x22e)](_0x3cfd05,_0x1e519e,_0x48bb6c={}){const _0x276fb5=_0xe7c62d,_0xc72818=new _0x416fef(_0x3cfd05,_0x48bb6c),_0x5a3cf3=_0x416fef['createWriteFacade'](_0xc72818);try{typeof _0x1e519e===_0x276fb5(0x6d8)?await _0x1e519e(_0x5a3cf3):_0x416fef[_0x276fb5(0x36f)](_0xc72818,_0x1e519e||[]);const _0x169945=_0xc72818[_0x276fb5(0x858)][_0x276fb5(0x6cf)];return await _0xc72818[_0x276fb5(0x2cd)](),{'id':_0xc72818['id'],'actions':_0x169945};}catch(_0x29b0a2){try{_0xc72818['rollback']();}catch(_0x52537f){}throw _0x29b0a2;}}}return okdbTransaction=_0x416fef,okdbTransaction;}var dist={},hasRequiredDist;function requireDist(){const _0x2c9387=_0x2ec26e;if(hasRequiredDist)return dist;hasRequiredDist=0x1,Object[_0x2c9387(0x79d)](dist,'__esModule',{'value':!![]});const _0x56c99a=new Float64Array(0x2),_0x2be1b5=new Int32Array(_0x56c99a[_0x2c9387(0x6b6)],0x0,0x4),{lowIdx:_0x31cd05,highIdx:_0x4ea96e}=((()=>{const _0x2b066d=_0x2c9387;if(new Uint8Array(new Uint32Array([0xffee1100])[_0x2b066d(0x6b6)])[0x0]===0xff)return{'lowIdx':0x1,'highIdx':0x0};return{'lowIdx':0x0,'highIdx':0x1};})());let _0x5cec42=![],_0x4ee094;try{_0x4ee094=new TextEncoder();}catch(_0x4084bd){}function _0x34dcc5(_0x274d99,_0x4971b6,position,_0x2781f1){const _0x18259f=_0x2c9387;let _0x1f7273=_0x4971b6['dataView'];if(!_0x1f7273)_0x1f7273=_0x4971b6[_0x18259f(0x2a8)]=new DataView(_0x4971b6[_0x18259f(0x6b6)],_0x4971b6[_0x18259f(0x67f)],_0x4971b6['byteLength']+0x3>>0x2<<0x2);switch(typeof _0x274d99){case _0x18259f(0x4bb):let _0x4cc129=_0x274d99['length'],_0x2e370b=_0x274d99[_0x18259f(0x167)](0x0);if(!(_0x2e370b>=0x1c))_0x4971b6[position++]=0x1b;if(_0x4cc129<0x40){let _0xef5199,_0x154636;for(_0xef5199=0x0;_0xef5199<_0x4cc129;_0xef5199++){_0x2e370b=_0x274d99[_0x18259f(0x167)](_0xef5199);if(_0x2e370b<=0x4)_0x4971b6[position++]=0x4,_0x4971b6[position++]=_0x2e370b;else{if(_0x2e370b<0x80)_0x4971b6[position++]=_0x2e370b;else{if(_0x2e370b<0x800)_0x4971b6[position++]=_0x2e370b>>0x6|0xc0,_0x4971b6[position++]=_0x2e370b&0x3f|0x80;else(_0x2e370b&0xfc00)===0xd800&&((_0x154636=_0x274d99[_0x18259f(0x167)](_0xef5199+0x1))&0xfc00)===0xdc00?(_0x2e370b=0x10000+((_0x2e370b&0x3ff)<<0xa)+(_0x154636&0x3ff),_0xef5199++,_0x4971b6[position++]=_0x2e370b>>0x12|0xf0,_0x4971b6[position++]=_0x2e370b>>0xc&0x3f|0x80,_0x4971b6[position++]=_0x2e370b>>0x6&0x3f|0x80,_0x4971b6[position++]=_0x2e370b&0x3f|0x80):(_0x4971b6[position++]=_0x2e370b>>0xc|0xe0,_0x4971b6[position++]=_0x2e370b>>0x6&0x3f|0x80,_0x4971b6[position++]=_0x2e370b&0x3f|0x80);}}}}else{if(_0x4971b6[_0x18259f(0x581)])position+=_0x4971b6['utf8Write'](_0x274d99,position,_0x4971b6[_0x18259f(0x39c)]-position);else position+=_0x4ee094[_0x18259f(0x6af)](_0x274d99,_0x4971b6[_0x18259f(0x5df)](position))['written'];if(position>_0x4971b6['length']-0x4)throw new RangeError('String\x20does\x20not\x20fit\x20in\x20target\x20buffer');}break;case _0x18259f(0x5c1):_0x56c99a[0x0]=_0x274d99;let _0x1451d0=_0x2be1b5[_0x31cd05],_0x2f436d=_0x2be1b5[_0x4ea96e],_0x38684e;if(_0x274d99<0x0)return _0x1f7273['setInt32'](position+0x4,~(_0x1451d0>>>0x4|_0x2f436d<<0x1c)),_0x1f7273[_0x18259f(0x27d)](position+0x0,(_0x2f436d^0x7fffffff)>>>0x4),_0x1f7273['setInt32'](position+0x8,(_0x1451d0&0xf^0xf)<<0x4,!![]),position+0x9;else{if(_0x1451d0&0xf||_0x2781f1)_0x38684e=0x9;else{if(_0x1451d0&0xfffff)_0x38684e=0x8;else{if(_0x1451d0||_0x2f436d&0xf)_0x38684e=0x6;else _0x38684e=0x4;}}}_0x1f7273[_0x18259f(0x27d)](position+0x0,_0x2f436d>>>0x4|0x10000000),_0x1f7273[_0x18259f(0x27d)](position+0x4,_0x1451d0>>>0x4|_0x2f436d<<0x1c),_0x1f7273['setInt32'](position+0x8,(_0x1451d0&0xf)<<0x4,!![]);return position+_0x38684e;case'object':if(_0x274d99){if(Array[_0x18259f(0x69e)](_0x274d99)){for(let _0x353061=0x0,_0x404505=_0x274d99[_0x18259f(0x6cf)];_0x353061<_0x404505;_0x353061++){if(_0x353061>0x0)_0x4971b6[position++]=0x0;position=_0x34dcc5(_0x274d99[_0x353061],_0x4971b6,position,!![]);}break;}else{if(_0x274d99 instanceof Uint8Array){_0x4971b6[_0x18259f(0x328)](_0x274d99,position),position+=_0x274d99[_0x18259f(0x6cf)];break;}else throw new Error(_0x18259f(0x782)+JSON[_0x18259f(0x4d2)](_0x274d99));}}else _0x4971b6[position++]=0x0;break;case'boolean':_0x1f7273[_0x18259f(0x592)](position++,_0x274d99?0x7:0x6,!![]);return position;case _0x18259f(0x347):let _0x467c5=Number(_0x274d99);if(BigInt(_0x467c5)>_0x274d99){_0x56c99a[0x0]=_0x467c5;if(_0x467c5>0x0){if(_0x2be1b5[_0x31cd05])_0x2be1b5[_0x31cd05]--;else _0x2be1b5[_0x4ea96e]--,_0x2be1b5[_0x31cd05]=0xffffffff;}else{if(_0x2be1b5[_0x31cd05]<0xffffffff)_0x2be1b5[_0x31cd05]++;else _0x2be1b5[_0x4ea96e]++,_0x2be1b5[_0x31cd05]=0x0;}_0x467c5=_0x56c99a[0x0];}let _0x561dcf=_0x274d99-BigInt(_0x467c5);if(_0x561dcf===0x0n)return _0x34dcc5(_0x467c5,_0x4971b6,position,_0x2781f1);_0x34dcc5(_0x467c5,_0x4971b6,position,_0x2781f1),position+=0x9;let _0x57d31b=BigInt((_0x2be1b5[_0x4ea96e]>>0x14&0x7ff)-0x437),_0x29961b=_0x561dcf>>_0x57d31b;_0x4971b6[position-0x1]|=Number(_0x29961b),_0x561dcf-=_0x29961b<<_0x57d31b;let _0x3b148e=!![];while(_0x561dcf||_0x3b148e){_0x3b148e=![],_0x57d31b-=0x7n;let _0x286728=_0x561dcf>>_0x57d31b;_0x4971b6[position++]=Number(_0x286728)|0x80,_0x561dcf-=_0x286728<<_0x57d31b;}return position;case _0x18259f(0x809):return position;case _0x18259f(0x856):_0x4971b6[position++]=0x2;return _0x34dcc5(_0x274d99['description'],_0x4971b6,position,_0x2781f1);default:throw new Error(_0x18259f(0x862)+typeof _0x274d99);}if(_0x5cec42&&!_0x2781f1)_0x1f7273[_0x18259f(0x592)](position,0x0);return position;}let position;function _0x4cd41b(_0x27b416,_0x5e6b64,_0x287532,_0x3a1059){const _0x2486e7=_0x2c9387;position=_0x5e6b64;let _0x556cef=_0x27b416[position],_0x5a59f6;if(_0x556cef<0x18){if(_0x556cef<0x8){position++;if(_0x556cef==0x6)_0x5a59f6=![];else{if(_0x556cef==0x7)_0x5a59f6=!![];else{if(_0x556cef==0x0)_0x5a59f6=null;else{if(_0x556cef==0x2)_0x5a59f6=Symbol['for'](_0x3a3bec(_0x27b416,_0x287532));else return Uint8Array['prototype']['slice'][_0x2486e7(0x853)](_0x27b416,_0x5e6b64,_0x287532);}}}}else{let _0x369a53;try{_0x369a53=_0x27b416[_0x2486e7(0x2a8)]||(_0x27b416[_0x2486e7(0x2a8)]=new DataView(_0x27b416['buffer'],_0x27b416[_0x2486e7(0x67f)],_0x27b416[_0x2486e7(0x39c)]+0x3>>0x2<<0x2));}catch(_0x5d6785){_0x369a53=_0x27b416[_0x2486e7(0x2a8)]||(_0x27b416[_0x2486e7(0x2a8)]=new DataView(_0x27b416[_0x2486e7(0x6b6)],_0x27b416[_0x2486e7(0x67f)],_0x27b416[_0x2486e7(0x6b6)]['byteLength']-_0x27b416[_0x2486e7(0x67f)]));}let _0x583548=_0x369a53[_0x2486e7(0x46a)](position)<<0x4,_0x1b65aa=_0x287532-position,_0x5e7c54;if(_0x1b65aa>0x4)_0x5e7c54=position+0x8<=_0x27b416[_0x2486e7(0x6cf)]?_0x369a53[_0x2486e7(0x46a)](position+0x4):_0x27b416[position+0x4]<<0x18|_0x27b416[position+0x5]<<0x10|_0x27b416[position+0x6]<<0x8|_0x27b416[position+0x7],_0x583548|=_0x5e7c54>>>0x1c,_0x1b65aa<=0x6&&(_0x5e7c54&=-0x10000),_0x5e7c54=_0x5e7c54<<0x4,_0x1b65aa>0x8&&(_0x5e7c54=_0x5e7c54|_0x27b416[position+0x8]>>0x4);else _0x5e7c54=0x0;_0x556cef<0x10&&(_0x583548=_0x583548^0x7fffffff,_0x5e7c54=~_0x5e7c54);_0x2be1b5[_0x4ea96e]=_0x583548,_0x2be1b5[_0x31cd05]=_0x5e7c54,_0x5a59f6=_0x56c99a[0x0],position+=0x9;if(_0x1b65aa>0x9&&_0x27b416[position]>0x0){_0x5a59f6=BigInt(_0x5a59f6);let _0x5e83de=_0x583548>>0x14&0x7ff,_0x33b36e=_0x27b416[position-0x1]&0xf;_0x5a59f6+=BigInt(_0x33b36e)<<BigInt(_0x5e83de-0x437);while((_0x33b36e=_0x27b416[position])>0x0&&position++<_0x287532){_0x5a59f6+=BigInt(_0x33b36e&0x7f)<<BigInt((_0x5e6b64-position)*0x7+_0x5e83de-0x3f8);}}}}else{_0x556cef==0x1b&&position++;_0x5a59f6=_0x3a3bec(_0x27b416,_0x287532);if(position<_0x287532)position--;}while(position<_0x287532){if(_0x27b416[position]===0x0)position++;if(_0x3a1059)return _0x3fa388['position']=position,_0x5a59f6;let _0x9fd8f1=_0x4cd41b(_0x27b416,position,_0x287532,!![]);if(_0x5a59f6 instanceof Array)_0x5a59f6['push'](_0x9fd8f1);else _0x5a59f6=[_0x5a59f6,_0x9fd8f1];}return _0x5a59f6;}const _0x5819fe=()=>_0x5cec42=!![],_0x3fa388={'writeKey':_0x34dcc5,'readKey':_0x4cd41b,'enableNullTermination':_0x5819fe};let _0xb00fbc=[],_0x16e628=0x0;const _0x44d3c6=typeof Buffer!==_0x2c9387(0x809),_0x1862cb=_0x44d3c6?Buffer[_0x2c9387(0x73c)]:Uint8Array,_0x163de0=_0x2c7ff0=>{const _0x1fd247=_0x2c9387;let _0xb64b81;_0x16e628+0x64>_0xb00fbc[_0x1fd247(0x6cf)]&&(_0xb00fbc=new _0x1862cb(0x2000),_0x16e628=0x0,_0xb64b81=!![]);try{let _0x3cc355=_0xb00fbc[_0x1fd247(0x5ca)](_0x16e628,_0x16e628=_0x34dcc5(_0x2c7ff0,_0xb00fbc,_0x16e628));if(_0x16e628>_0xb00fbc[_0x1fd247(0x6cf)]){if(_0xb64b81)throw new Error(_0x1fd247(0x5fc));return _0x163de0(_0x2c7ff0);}return _0x3cc355;}catch(_0x33fda3){if(_0xb64b81)throw _0x33fda3;return _0x16e628=_0xb00fbc['length'],_0x163de0(_0x2c7ff0);}},_0x2130e7=_0x366e8a=>{const _0x4b9d96=_0x2c9387;return _0x4cd41b(_0x366e8a,0x0,_0x366e8a[_0x4b9d96(0x6cf)]);},fromCharCode=String[_0x2c9387(0x71e)];function _0x4e1d0d(){const _0x1310d9=_0x2c9387;let _0x3320cd=_0x1310d9(0x726),_0x36f201=[];for(let _0x454fa7=0x0;_0x454fa7<0x30;_0x454fa7++){let _0x1ec098=fromCharCode((_0x454fa7&0xf)+0x61)+fromCharCode((_0x454fa7>>0x4)+0x61);_0x3320cd+=_0x1310d9(0x246)+_0x1ec098+_0x1310d9(0x524)+_0x1ec098+_0x1310d9(0x40a)+_0x1ec098+_0x1310d9(0x30f)+_0x1ec098+_0x1310d9(0x2db)+_0x1ec098+_0x1310d9(0x765)+_0x1ec098+_0x1310d9(0x3bb)+_0x1ec098+_0x1310d9(0x4ae)+_0x36f201+_0x1310d9(0x43d),_0x36f201[_0x1310d9(0x2fb)](_0x1ec098);}return _0x3320cd+=_0x1310d9(0x72f)+_0x36f201+_0x1310d9(0x7f1),_0x3320cd;}const readString=typeof process!==_0x2c9387(0x809)&&process[_0x2c9387(0x4f5)]?function(_0xeb9957){let {setPosition:_0x4bba18,getPosition:_0x4865d5,readString:readString}=_0xeb9957;return _0x539ba9=>{_0x4bba18(position);let _0x20665d=readString(_0x539ba9);return position=_0x4865d5(),_0x20665d;};}(new Function(_0x2c9387(0x71e),'let\x20position;\x20let\x20readString\x20=\x20'+_0x4e1d0d()+_0x2c9387(0x701)+_0x2c9387(0x434)+_0x2c9387(0x2a2)+_0x2c9387(0x85a))(fromCharCode)):eval(_0x4e1d0d());function _0x3a3bec(_0x3d1967,_0x4fefcf){if(_0x3d1967[_0x4fefcf]>0x0){let _0xa50deb=_0x3d1967[_0x4fefcf];try{return _0x3d1967[_0x4fefcf]=0x0,readString(_0x3d1967);}finally{_0x3d1967[_0x4fefcf]=_0xa50deb;}}else return readString(_0x3d1967);}function _0x571fb4(_0x123d6f,_0x5249a1){const _0x583eda=_0x2c9387;if(typeof _0x123d6f=='object'){if(!_0x123d6f)return _0x5249a1==null?0x0:-0x1;if(_0x123d6f[_0x583eda(0x3f5)]){if(_0x5249a1==null)return 0x1;else return _0x5249a1[_0x583eda(0x3f5)]?_0x123d6f['compare'](_0x5249a1):-0x1;}let _0x2d4dfc;if(_0x5249a1 instanceof Array){let _0x5a5c1e=0x0;while((_0x2d4dfc=_0x571fb4(_0x123d6f[_0x5a5c1e],_0x5249a1[_0x5a5c1e]))==0x0&&_0x5a5c1e<=_0x123d6f[_0x583eda(0x6cf)]){_0x5a5c1e++;}return _0x2d4dfc;}_0x2d4dfc=_0x571fb4(_0x123d6f[0x0],_0x5249a1);if(_0x2d4dfc==0x0&&_0x123d6f[_0x583eda(0x6cf)]>0x1)return 0x1;return _0x2d4dfc;}else{if(typeof _0x123d6f==typeof _0x5249a1)return typeof _0x123d6f===_0x583eda(0x856)&&(_0x123d6f=Symbol['keyFor'](_0x123d6f),_0x5249a1=Symbol[_0x583eda(0x72c)](_0x5249a1)),_0x123d6f<_0x5249a1?-0x1:_0x123d6f===_0x5249a1?0x0:0x1;else{if(typeof _0x5249a1==_0x583eda(0x1be)){if(_0x5249a1 instanceof Array)return-_0x571fb4(_0x5249a1,_0x123d6f);return 0x1;}else return _0x5524a9[typeof _0x123d6f]<_0x5524a9[typeof _0x5249a1]?-0x1:0x1;}}}const _0x5524a9={'symbol':0x0,'undefined':0x1,'boolean':0x2,'number':0x3,'string':0x4},_0x38c910=null,_0x4a60e6=new Uint8Array([0xff]);return dist[_0x2c9387(0x1e9)]=_0x4a60e6,dist[_0x2c9387(0x6f1)]=_0x38c910,dist[_0x2c9387(0x4ad)]=_0x571fb4,dist[_0x2c9387(0x3c3)]=_0x5819fe,dist[_0x2c9387(0x227)]=_0x3fa388,dist[_0x2c9387(0x187)]=_0x2130e7,dist[_0x2c9387(0x5ad)]=_0x4cd41b,dist[_0x2c9387(0x310)]=_0x163de0,dist[_0x2c9387(0x417)]=_0x34dcc5,dist;}var keyenc,hasRequiredKeyenc;function requireKeyenc(){const _0x1ddc9d=_0x2ec26e;if(hasRequiredKeyenc)return keyenc;hasRequiredKeyenc=0x1;const {writeKey:_0x4a8e3b}=requireDist(),_0x23a82d=0x7ba,_0x1f378a=0x1000;function _0x3a6073(_0x42060c,_0x1ce593){const _0x340139=_0x3ebb;switch(typeof _0x42060c){case'string':return _0x42060c[_0x340139(0x6cf)]<=_0x23a82d&&_0x42060c[_0x340139(0x4c7)]();case _0x340139(0x5c1):case _0x340139(0x84f):return!![];case _0x340139(0x1be):if(_0x42060c===null)return!![];if(Array['isArray'](_0x42060c)){if(_0x1ce593>0x8||_0x42060c[_0x340139(0x6cf)]>_0x23a82d)return![];for(let _0x13232f=0x0;_0x13232f<_0x42060c[_0x340139(0x6cf)];_0x13232f++)if(!_0x3a6073(_0x42060c[_0x13232f],_0x1ce593+0x1))return![];return!![];}return Buffer[_0x340139(0x292)](_0x42060c)&&_0x42060c[_0x340139(0x6cf)]<=_0x23a82d;default:return![];}}function _0x2f508a(_0x3b21f6,_0xb8bab6){const _0x51afc7=_0x3ebb,_0x25235a=typeof _0x3b21f6;if(_0x25235a===_0x51afc7(0x4bb)){if(_0x3b21f6[_0x51afc7(0x6cf)]>=0x40||!_0x3b21f6[_0x51afc7(0x4c7)]()){if(!_0x3a6073(_0x3b21f6,0x0))return-0x1;}}else{if(_0x25235a!==_0x51afc7(0x5c1)){if(Array[_0x51afc7(0x69e)](_0x3b21f6)?_0x3b21f6[_0x51afc7(0x6cf)]===0x0||!_0x3a6073(_0x3b21f6,0x0):!_0x3a6073(_0x3b21f6,0x0))return-0x1;}}let _0x3ec85a;try{_0x3ec85a=_0x4a8e3b(_0x3b21f6,_0xb8bab6,0x0);}catch{return-0x1;}return _0x3ec85a>0x0&&_0x3ec85a<=_0x23a82d?_0x3ec85a:-0x1;}return keyenc={'encodeKey':_0x2f508a,'KEY_BUF_SIZE':_0x1f378a,'NO_FAST':Symbol(_0x1ddc9d(0x20d))},keyenc;}var okdbHlc,hasRequiredOkdbHlc;function requireOkdbHlc(){const _0x4fefc7=_0x2ec26e;if(hasRequiredOkdbHlc)return okdbHlc;hasRequiredOkdbHlc=0x1;const _0x3d9d4c=0x400,_0x2587d4=_0x3d9d4c-0x1,_0x3356e=0xea60;function _0x5e5568(_0xc27d7e,_0x4af709){const _0x4f3370=_0x3ebb;return _0xc27d7e*_0x3d9d4c+Math[_0x4f3370(0x3e7)](0x0,Math[_0x4f3370(0x5a9)](_0x4af709,_0x2587d4));}function _0x36a9eb(_0x111d09){const _0x17ddb7=_0x3ebb,_0x182a56=Math[_0x17ddb7(0x3e7)](0x0,Number(_0x111d09)||0x0),_0x39be75=_0x182a56%_0x3d9d4c,_0x172343=(_0x182a56-_0x39be75)/_0x3d9d4c;return{'pt':_0x172343,'l':_0x39be75};}function _0x32783b(_0x171dbd,_0x324aae=Date['now']()){const _0x457dba=_0x3ebb,{pt:_0x1471b1,l:_0x5252e3}=_0x36a9eb(_0x171dbd),_0x2d4a73=Math[_0x457dba(0x3e7)](_0x1471b1,_0x324aae),_0x311ac9=_0x2d4a73===_0x1471b1?Math[_0x457dba(0x5a9)](_0x5252e3+0x1,_0x2587d4):0x0;return _0x5e5568(_0x2d4a73,_0x311ac9);}function _0x4574e0(_0x427bc7,_0x3ec9af,_0x59a8ac=Date[_0x4fefc7(0x89e)]()){const _0x398912=_0x4fefc7,{pt:_0x4af231,l:_0x4a4636}=_0x36a9eb(_0x427bc7),{pt:_0x2de5ac,l:_0x2befa9}=_0x36a9eb(_0x3ec9af),_0x5ab046=Math[_0x398912(0x3e7)](_0x4af231,_0x2de5ac,_0x59a8ac);let _0x384f87;if(_0x5ab046===_0x4af231&&_0x5ab046===_0x2de5ac)_0x384f87=Math['min'](Math[_0x398912(0x3e7)](_0x4a4636,_0x2befa9)+0x1,_0x2587d4);else{if(_0x5ab046===_0x4af231)_0x384f87=Math[_0x398912(0x5a9)](_0x4a4636+0x1,_0x2587d4);else _0x5ab046===_0x2de5ac?_0x384f87=Math['min'](_0x2befa9+0x1,_0x2587d4):_0x384f87=0x0;}return _0x5e5568(_0x5ab046,_0x384f87);}function _0x4951a9(_0x555372,_0x245dc3){const _0x390b94=Number(_0x555372)||0x0,_0x548036=Number(_0x245dc3)||0x0;if(_0x390b94<_0x548036)return-0x1;if(_0x390b94>_0x548036)return 0x1;return 0x0;}function _0x51d68f(_0x3472b6){return _0x36a9eb(_0x3472b6)['pt'];}return okdbHlc={'send':_0x32783b,'recv':_0x4574e0,'compare':_0x4951a9,'toMs':_0x51d68f,'encode':_0x5e5568,'decode':_0x36a9eb,'SCALE':_0x3d9d4c,'L_MAX':_0x2587d4,'DRIFT_MAX':_0x3356e},okdbHlc;}var env,hasRequiredEnv;function requireEnv(){const _0x1b2b60=_0x2ec26e;if(hasRequiredEnv)return env;hasRequiredEnv=0x1;const {fromArray:_0x1a3ff7,chunkedRange:_0x5b4174,pinnedChunks:_0x247861,claimPrefetch:_0x3c513c}=requireIterable(),{reclass:_0x5c76fc,NotImplementedNative:_0xcec407,OKDBError:_0x45c9f2,optionsArg:_0x4ad11c}=requireErrors(),{OKDBViews:_0x333950}=requireViews(),{OKDBQueue:_0xe65900}=requireQueue(),{OKDBTimeMachine:_0x678cf4}=requireTimemachine(),_0x5a43a6=_0x16a7e5=>{const _0x8a959c=_0x3ebb;try{return!_0x16a7e5[_0x8a959c(0x89d)]||_0x16a7e5['_license']['isFeatureEnabled'](_0x8a959c(0x54d));}catch{return!![];}},{OKDBFiles:_0x163ded}=requireFiles(),{OKDBEngines:_0x34352e,OKDBPipelines:_0x4ed038}=requireEngines(),{OKDBFunctions:_0x268fb7}=requireFunctions(),_0x129065=requireProcessor(),{RawDb:_0x27cb06}=requireRawdb(),_0x5bf56f=requireBridge();let _0x5c983d=null;const _0x571000=()=>_0x5c983d||=requireOkdbTransaction(),_0x37b436=(..._0x54b7ac)=>requireOkdbGuardedRange()[_0x1b2b60(0x7ef)](..._0x54b7ac),_0x594408=Buffer[_0x1b2b60(0x170)]([0xff]),_0x3232f1=process.env.OKDB_NATIVE_RAW_READS!=='0',_0x59bda7=_0x3232f1&&process.env.OKDB_NATIVE_FAST_GET!=='0',{NO_FAST:_0x14ec1a}=requireKeyenc(),_0x15ed6c=new Set(_0x3232f1?['getRange',_0x1b2b60(0x2c0),_0x1b2b60(0x665),_0x1b2b60(0x267),_0x1b2b60(0x7d2)]:[]),_0x13a945=new Set(['get','getEntry',_0x1b2b60(0x791),_0x1b2b60(0x3fa),_0x1b2b60(0x7d2),_0x1b2b60(0x618),_0x1b2b60(0x436),_0x1b2b60(0x587),_0x1b2b60(0x606),_0x1b2b60(0x2c0),_0x1b2b60(0x490),'query',_0x1b2b60(0x32d),_0x1b2b60(0x181),_0x1b2b60(0x45e),_0x1b2b60(0x267),_0x1b2b60(0x3c2),'now','hasType',_0x1b2b60(0x6a4),_0x1b2b60(0x2d8),_0x1b2b60(0x2ef),_0x1b2b60(0x7ec),_0x1b2b60(0x2dd),_0x1b2b60(0x58d),'getUniqueViolations',_0x1b2b60(0x7e9),_0x1b2b60(0x4ee),_0x1b2b60(0x2d0),_0x1b2b60(0x2e7),_0x1b2b60(0x210),'getRefViolation','listRefViolations',_0x1b2b60(0x329),_0x1b2b60(0x5cc),_0x1b2b60(0x81b),'getDefaultTTL',_0x1b2b60(0x6fe),'path','id',_0x1b2b60(0x497),'hlc','resolvedFields',_0x1b2b60(0x513),_0x1b2b60(0x89f)]),_0x38aec6=new Set([_0x1b2b60(0x898),_0x1b2b60(0x330),_0x1b2b60(0x718),_0x1b2b60(0x695),_0x1b2b60(0x534),_0x1b2b60(0x6cd),_0x1b2b60(0x7ea),'versions','values','snapshot',_0x1b2b60(0x7f7),_0x1b2b60(0x366),_0x1b2b60(0x6b9),_0x1b2b60(0x575)]);function _0x23abb4(_0x4b51af,_0x49f6c7,_0xdbc404){const _0x439d2e=new Map();return(_0x58a694,_0x208b78)=>{const _0x22ebae=_0x3ebb,_0x2eee5d=JSON['stringify'](_0x208b78),_0x40224f=_0x439d2e[_0x22ebae(0x63c)](_0x2eee5d);if(_0x40224f){if(_0x40224f[_0x22ebae(0x41c)]===_0x22ebae(0x35d))throw _0x3ba523();_0x439d2e[_0x22ebae(0x82f)](_0x2eee5d);if(_0x40224f[_0x22ebae(0x41c)]==='err')throw _0x40224f[_0x22ebae(0x820)];return _0x40224f[_0x22ebae(0x820)];}const _0x58074f=_0x58a694(..._0x208b78);if(!_0x58074f||typeof _0x58074f[_0x22ebae(0x2b0)]!=='function')return _0x58074f;const _0x23d408={'state':_0x22ebae(0x35d),'value':undefined},_0x5f0be8=(_0x3f1832,_0x50141a)=>{const _0x1c33e2=_0x22ebae;_0x23d408[_0x1c33e2(0x41c)]=_0x3f1832,_0x23d408[_0x1c33e2(0x820)]=_0x50141a;if(_0x439d2e[_0x1c33e2(0x63c)](_0x2eee5d)!==_0x23d408)return;setTimeout(()=>_0x439d2e[_0x1c33e2(0x63c)](_0x2eee5d)===_0x23d408&&_0x439d2e[_0x1c33e2(0x82f)](_0x2eee5d),0x7530)[_0x1c33e2(0x702)]();try{_0x4b51af[_0x1c33e2(0x21e)]['_call'](_0x1c33e2(0x29a),null,'emit',[_0x1c33e2(0x251),{'env':_0x4b51af['name'],'type':_0x49f6c7,'field':_0xdbc404}],!![]);}catch{}};_0x58074f['then'](_0x4473ac=>_0x5f0be8('ok',_0x4473ac),_0x71c2da=>_0x5f0be8('err',_0x71c2da));for(let _0x12c2cb=0x0;_0x12c2cb<0x64&&_0x23d408[_0x22ebae(0x41c)]===_0x22ebae(0x35d);_0x12c2cb++)process['_tickCallback']();if(_0x23d408[_0x22ebae(0x41c)]==='ok')return _0x23d408[_0x22ebae(0x820)];if(_0x23d408[_0x22ebae(0x41c)]==='err')throw _0x23d408['value'];_0x439d2e['set'](_0x2eee5d,_0x23d408);throw _0x3ba523();};}function _0x3ba523(){const _0x1954be=_0x1b2b60;return Object[_0x1954be(0x76f)](new Error(_0x1954be(0x65a)),{'code':_0x1954be(0x1ea)});}class _0x4dc0fd{constructor(_0x51b8ff,_0x57f95b){const _0x964c4d=_0x1b2b60;this[_0x964c4d(0x21e)]=_0x51b8ff,this['name']=_0x57f95b,this['events']=_0x51b8ff['events'],this[_0x964c4d(0x793)]=_0x51b8ff[_0x964c4d(0x793)],this[_0x964c4d(0x60a)]=!![],this[_0x964c4d(0x62f)]=null,this[_0x964c4d(0x62a)]=new _0x333950(this),this['processor']=new _0x129065(this);if(!_0x57f95b[_0x964c4d(0x6c8)]('~')||_0x57f95b[_0x964c4d(0x1ac)](':emb:'))this[_0x964c4d(0x601)]=new _0xe65900(this);if(!_0x57f95b['startsWith']('~'))this[_0x964c4d(0x6be)]=new _0x163ded(this);this[_0x964c4d(0x762)]=new _0x268fb7(_0x51b8ff,_0x57f95b),this[_0x964c4d(0x1a5)]=new _0x34352e(_0x51b8ff,_0x57f95b,_0x51b8ff[_0x964c4d(0x1a5)]),this['pipelines']=new _0x4ed038(_0x51b8ff,_0x57f95b);if(!_0x57f95b[_0x964c4d(0x6c8)]('~')&&_0x51b8ff[_0x964c4d(0x66a)]['timeMachine']&&_0x5a43a6(_0x51b8ff))this['timeMachine']=new _0x678cf4(this);_0x5bf56f['registerEnv'](this[_0x964c4d(0x39d)],this);const _0x409b54=this;this[_0x964c4d(0x291)]={async 'transaction'(_0x26606c){const _0x20ac3f=_0x964c4d,_0x38e50c=[];_0x409b54['_txnBuf']=_0x38e50c;try{_0x26606c();}finally{_0x409b54[_0x20ac3f(0x62f)]=null;}return _0x409b54[_0x20ac3f(0x21e)]['_wb']['enqueue'](_0x20ac3f(0x30b),_0x409b54[_0x20ac3f(0x6fe)],_0x20ac3f(0x2cd),[_0x38e50c]);},'drain'(){const _0x2140a2=_0x964c4d;return _0x409b54[_0x2140a2(0x21e)][_0x2140a2(0x53b)]['drain']();},'flushLmdb'(){const _0x2affad=_0x964c4d;return _0x409b54[_0x2affad(0x21e)][_0x2affad(0x53b)][_0x2affad(0x56b)]();},'markClosed'(){}};const _0x627aa1=new _0x27cb06(this,'');_0x627aa1[_0x964c4d(0x7fd)]=()=>({'lastTxnId':this['_n'](_0x964c4d(0x497),[])}),Object[_0x964c4d(0x79d)](_0x627aa1,_0x964c4d(0x3ce),{'get':()=>this[_0x964c4d(0x21e)][_0x964c4d(0x53b)][_0x964c4d(0x56b)](),'configurable':!![]}),Object[_0x964c4d(0x79d)](_0x627aa1,_0x964c4d(0x624),{'get':()=>this[_0x964c4d(0x21e)][_0x964c4d(0x53b)][_0x964c4d(0x56b)](),'configurable':!![]});const _0x432565=_0x627aa1[_0x964c4d(0x63c)]['bind'](_0x627aa1);_0x627aa1[_0x964c4d(0x63c)]=_0x1c3b49=>_0x1c3b49===_0x964c4d(0x4d8)?this['_n'](_0x964c4d(0x45e),[null]):_0x432565(_0x1c3b49),this['db']=_0x627aa1;}async['close'](){const _0x507128=_0x1b2b60;this[_0x507128(0x7ba)]=!![];}get[_0x1b2b60(0x789)](){const _0x4b9841=_0x1b2b60;return new Map(this[_0x4b9841(0x21e)][_0x4b9841(0x49e)]('db',null,'formerOrigins',[this[_0x4b9841(0x6fe)]],![]));}get['typesDb'](){const _0x2d0133=_0x1b2b60;return this[_0x2d0133(0x884)]||(this['_typesDb']=new _0x27cb06(this,_0x2d0133(0x50b)));}[_0x1b2b60(0x4e7)](_0x182ccc){const _0x3832e6=_0x1b2b60,_0x3abe12=this[_0x3832e6(0x779)][_0x3832e6(0x63c)](_0x182ccc);if(_0x3abe12===undefined||String(_0x182ccc)[_0x3832e6(0x6c8)]('~fts:')||String(_0x182ccc)[_0x3832e6(0x6c8)](_0x3832e6(0x491))){const {OKDBError:_0x3f53a3}=requireErrors();throw new _0x3f53a3('Type\x20\x22'+_0x182ccc+_0x3832e6(0x63a),_0x3832e6(0x249),{'type':_0x182ccc});}const _0x397fbb=this,_0x3b09d6=new _0x27cb06(_0x397fbb,_0x3832e6(0x257)+_0x182ccc+_0x3832e6(0x7bd)),_0x3a9b2c=new Map();for(const _0x1f1508 of _0x3b09d6[_0x3832e6(0x7d2)]()){const _0x150c33=_0x3b09d6['get'](_0x1f1508)||{},_0x26fb39={'parts':_0x1f1508['split']('~'),'db':new _0x27cb06(_0x397fbb,'type:'+_0x182ccc+':index:'+_0x1f1508,{'dupSort':!![]})};if(_0x150c33[_0x3832e6(0x1e4)])_0x26fb39[_0x3832e6(0x1e4)]=_0x150c33[_0x3832e6(0x1e4)];if(_0x150c33['unique'])_0x26fb39[_0x3832e6(0x234)]=!![];if(_0x150c33['sparse'])_0x26fb39[_0x3832e6(0x7b3)]=!![];if(_0x150c33[_0x3832e6(0x28d)])_0x26fb39[_0x3832e6(0x28d)]=_0x150c33[_0x3832e6(0x28d)];_0x26fb39[_0x3832e6(0x875)]=new Set((_0x150c33[_0x3832e6(0x875)]??[])['map'](_0x576718=>_0x576718[_0x3832e6(0x233)]+':'+_0x576718[_0x3832e6(0x6fe)])),_0x3a9b2c[_0x3832e6(0x328)](_0x1f1508,_0x26fb39);}return{'root':new _0x27cb06(_0x397fbb,'type:'+_0x182ccc),'data':new _0x27cb06(_0x397fbb,'type:'+_0x182ccc+_0x3832e6(0x5eb),{'useVersions':!![]}),'indexes':_0x3b09d6,'clockToChange':new _0x27cb06(_0x397fbb,'type:'+_0x182ccc+':clockToChange'),'keyToChange':new _0x27cb06(_0x397fbb,_0x3832e6(0x257)+_0x182ccc+_0x3832e6(0x4b6)),'fieldSchema':new Map(Object[_0x3832e6(0x72a)](_0x3abe12['fields']||{})['map'](([_0x510b60,_0x47c9e9])=>[_0x510b60,new Set(Array['isArray'](_0x47c9e9)?_0x47c9e9:[_0x47c9e9])])),'indexToDb':_0x3a9b2c,'ftsToDb':null,'schema':_0x3abe12[_0x3832e6(0x2d4)]||null,'defaultTTL':_0x3abe12['defaultTTL']||null};}get[_0x1b2b60(0x775)](){const _0x6e4b90=_0x1b2b60,_0x32eada=this,_0x47c0c7=()=>_0x32eada['listTypes']();return{'get':_0x4453d5=>{const _0x423e3f=_0x3ebb;try{return _0x32eada[_0x423e3f(0x4e7)](_0x4453d5);}catch{return undefined;}},'has':_0x3485ac=>_0x47c0c7()[_0x6e4b90(0x1ac)](_0x3485ac),'keys':()=>_0x47c0c7()[Symbol['iterator']](),get 'size'(){const _0x910eb8=_0x6e4b90;return _0x47c0c7()[_0x910eb8(0x6cf)];}};}['_typeKeys'](){return this['listTypes']();}get[_0x1b2b60(0x6e9)](){const _0x55206e=_0x1b2b60;return this[_0x55206e(0x375)]||(this[_0x55206e(0x375)]=new _0x27cb06(this,_0x55206e(0x36a)));}get[_0x1b2b60(0x399)](){return this['_clockToChangeDb']||(this['_clockToChangeDb']=new _0x27cb06(this,'clocks'));}[_0x1b2b60(0x58f)](_0x1b3faa){const _0x56e3d1=_0x1b2b60;return this['_n'](_0x56e3d1(0x76c),[_0x1b3faa]);}get[_0x1b2b60(0x79e)](){const _0x5db1e3=_0x1b2b60;return!this['_n'](_0x5db1e3(0x5a3),[],![]);}get['_sync'](){const _0x4d46c4=_0x1b2b60;return this[_0x4d46c4(0x25a)]!==undefined?this[_0x4d46c4(0x25a)]:this['_n']('hasChangelog',[],![]);}set[_0x1b2b60(0x845)](_0x1c304d){const _0x4c10b6=_0x1b2b60;this[_0x4c10b6(0x25a)]=_0x1c304d;}get[_0x1b2b60(0x7b4)](){const _0x49ecb3=_0x1b2b60;return this[_0x49ecb3(0x28f)]||(this[_0x49ecb3(0x28f)]=new(requireLock())[(_0x49ecb3(0x828))](this[_0x49ecb3(0x21e)],_0x49ecb3(0x8a3),_0x49ecb3(0x2ab),{'ttlMs':0xea60}));}get[_0x1b2b60(0x39d)](){const _0x4ccf9d=_0x1b2b60;return this[_0x4ccf9d(0x5bf)]??(this[_0x4ccf9d(0x5bf)]=this['_n'](_0x4ccf9d(0x39d),[]));}get['id'](){return this['_n']('id',[]);}get['role'](){const _0x196ac0=_0x1b2b60;return this[_0x196ac0(0x21e)][_0x196ac0(0x437)];}['_n'](_0x110764,_0x1d5730){const _0x39e3e7=_0x1b2b60;return this['okdb']['_call'](_0x39e3e7(0x30b),this[_0x39e3e7(0x6fe)],_0x110764,_0x1d5730,!_0x13a945['has'](_0x110764));}[_0x1b2b60(0x7d8)](_0x1a497c){const _0x438439=_0x1b2b60;return this[_0x438439(0x21e)][_0x438439(0x55c)](_0x1a497c);}[_0x1b2b60(0x6f8)](_0x5a1dda,_0x4591c2){const _0x1dc1fe=_0x1b2b60;if(_0x15ed6c[_0x1dc1fe(0x51e)](_0x5a1dda==='pinned'?_0x4591c2[0x1]:_0x5a1dda))return this[_0x1dc1fe(0x21e)][_0x1dc1fe(0x39e)](this[_0x1dc1fe(0x6fe)],_0x5a1dda,_0x4591c2);return this['okdb'][_0x1dc1fe(0x270)]('env',this[_0x1dc1fe(0x6fe)],_0x5a1dda,_0x4591c2);}[_0x1b2b60(0x7f7)](_0x252b2c={'useReadTransaction':![]}){return new(_0x571000())(this,_0x252b2c);}async[_0x1b2b60(0x27c)](_0x133659,_0x513b1d){return _0x571000()['run'](this,_0x133659,_0x513b1d);}['_low'](_0x4180b,_0x367b53){const _0x3460f0=_0x1b2b60;if(this[_0x3460f0(0x62f)])this['_txnBuf'][_0x3460f0(0x2fb)]({'action':_0x4180b,'args':_0x367b53});else this['_n'](_0x4180b,_0x367b53);}[_0x1b2b60(0x386)](_0x57db04,_0x52fb20,_0x3ea2a3,_0x38584c,_0x52b0b7){const _0xc8380e=_0x1b2b60;this['_low'](_0xc8380e(0x27f),[_0x52fb20,_0x3ea2a3,_0x38584c,_0x52b0b7]);}[_0x1b2b60(0x7a6)](_0x53aa8f,_0x139b08,_0xe4b0e,_0x56f0bc,_0x428c18){const _0x14eb87=_0x1b2b60;this[_0x14eb87(0x335)](_0x14eb87(0x88e),[_0x139b08,_0xe4b0e,_0x56f0bc,_0x428c18]);}[_0x1b2b60(0x7d7)](_0x50cbcd,_0x173c9c,_0x12a9cd,_0x229147,_0x4e4b80){const _0x155534=_0x1b2b60;this[_0x155534(0x335)](_0x155534(0x747),[_0x173c9c,_0x12a9cd,_0x229147,_0x4e4b80]);}[_0x1b2b60(0x739)](_0x18f33c,_0x3ec0be,_0x1c3191,_0x31f808,_0x48476c){const _0x59bfdb=_0x1b2b60;this[_0x59bfdb(0x335)]('create',[_0x3ec0be,_0x1c3191,_0x31f808,_0x48476c]);}[_0x1b2b60(0x28e)](_0x5077fe,_0x50e23b,_0x125517,_0x49a1d7){const _0x253375=_0x1b2b60;this[_0x253375(0x335)]('remove',[_0x50e23b,_0x125517,_0x49a1d7]);}[_0x1b2b60(0x7da)](_0x284b3d,_0x292e3d,_0x535c6e,_0x382780){const _0x3e0121=_0x1b2b60;this[_0x3e0121(0x335)](_0x3e0121(0x397),[_0x292e3d,_0x535c6e,_0x382780]);}[_0x1b2b60(0x16a)](_0x3815ef,_0x1bd361,_0x2c3db6){const _0x421b7f=_0x1b2b60;this['_low'](_0x421b7f(0x483),[_0x1bd361,_0x2c3db6]);}['_w'](_0x529713,_0x720ca9){const _0x4010a9=_0x1b2b60;return this[_0x4010a9(0x21e)][_0x4010a9(0x53b)][_0x4010a9(0x414)](_0x4010a9(0x30b),this[_0x4010a9(0x6fe)],_0x529713,_0x720ca9);}[_0x1b2b60(0x27f)](_0x26e917,_0x3f7e65,_0x1ba2dc,_0xa52784={}){const _0x2d3f77=_0x1b2b60;return this['_w'](_0x2d3f77(0x27f),[_0x26e917,_0x3f7e65,_0x1ba2dc,_0xa52784]);}['update'](_0x3d0ee9,_0x52c58a,_0x5e75aa,_0x462757={}){return this['_w']('update',[_0x3d0ee9,_0x52c58a,_0x5e75aa,_0x462757]);}[_0x1b2b60(0x747)](_0x27f533,_0x1b8329,_0x374176,_0x293def={}){const _0x4c23b5=_0x1b2b60;return this['_w'](_0x4c23b5(0x747),[_0x27f533,_0x1b8329,_0x374176,_0x293def]);}[_0x1b2b60(0x740)](_0x27a866,_0x1a2e41,_0xdd64c8,_0x1faff5={}){const _0x10feb1=_0x1b2b60;return this['_w'](_0x10feb1(0x740),[_0x27a866,_0x1a2e41,_0xdd64c8,_0x1faff5]);}[_0x1b2b60(0x42f)](_0x2f70c9,_0x1acf56,_0x4ff63={}){return this['_w']('remove',[_0x2f70c9,_0x1acf56,_0x4ff63]);}['get'](_0x5d1d74,_0x58ab0d,_0x2eea8e){const _0x223c66=_0x1b2b60;if(_0x59bda7&&typeof _0x5d1d74==='string'){const _0x4ca043=this['okdb'][_0x223c66(0x721)](this[_0x223c66(0x6fe)],_0x5d1d74,_0x58ab0d);if(_0x4ca043!==_0x14ec1a)return _0x4ca043===null?this['_n'](_0x223c66(0x63c),[_0x5d1d74,_0x58ab0d]):_0x4ca043;}if(_0x3232f1&&(typeof _0x58ab0d===_0x223c66(0x4bb)||typeof _0x58ab0d===_0x223c66(0x5c1))){const _0xff17ec=this[_0x223c66(0x21e)]['_getRaw'](this[_0x223c66(0x6fe)],_0x5d1d74,_0x58ab0d);if(_0xff17ec!==null)return _0xff17ec;}return this['_n'](_0x223c66(0x63c),[_0x5d1d74,typeof _0x58ab0d===_0x223c66(0x856)?null:_0x58ab0d]);}[_0x1b2b60(0x791)](_0x3dba90,_0x47f669,_0x3b5ba6){const _0x2561d0=_0x1b2b60,_0x13dbdc=[_0x3dba90,Array[_0x2561d0(0x69e)](_0x47f669)&&_0x47f669[_0x2561d0(0x786)](_0xc209fe=>typeof _0xc209fe===_0x2561d0(0x856))?_0x47f669[_0x2561d0(0x1a7)](_0x50af2f=>typeof _0x50af2f===_0x2561d0(0x856)?null:_0x50af2f):_0x47f669];return _0x3232f1?this[_0x2561d0(0x21e)][_0x2561d0(0x39e)](this[_0x2561d0(0x6fe)],'getMany',_0x13dbdc):this['_n'](_0x2561d0(0x791),_0x13dbdc);}[_0x1b2b60(0x2ec)](_0x3e330b,_0x2c70cb,_0x3ffc59){const _0x4ee9d1=_0x1b2b60;return this['_n']('getEntry',[_0x3e330b,typeof _0x2c70cb===_0x4ee9d1(0x856)?null:_0x2c70cb]);}[_0x1b2b60(0x436)](_0x559b2d,_0x34d04a){const _0x399083=_0x1b2b60;return this[_0x399083(0x636)](_0x399083(0x436),_0x34d04a),this['_n'](_0x399083(0x436),[_0x559b2d,_0x3495e8(_0x34d04a)]);}[_0x1b2b60(0x636)](_0x28143a,_0xb5e452,_0x834014=[]){const _0x233510=_0x1b2b60;if(!_0xb5e452||typeof _0xb5e452!==_0x233510(0x1be))return;for(const _0x4f4b7e of Object[_0x233510(0x1d5)](_0xb5e452)){if(!_0x38aec6[_0x233510(0x51e)](_0x4f4b7e)&&!_0x834014[_0x233510(0x1ac)](_0x4f4b7e))throw new _0x45c9f2(_0x28143a+':\x20unknown\x20option\x20\x27'+_0x4f4b7e+'\x27',_0x233510(0x35e),{'option':_0x4f4b7e});}}[_0x1b2b60(0x3b1)](_0xfbac7c,_0x9a6f98,_0x51d838,_0x69c0d0,_0x2b4f99,_0x1c7080){const _0x1fd929=_0x1b2b60;this[_0x1fd929(0x636)](_0xfbac7c,_0x69c0d0);const _0x1f7927=_0x69c0d0?.['snapshot'],_0x43bf3d=_0x3495e8(_0x69c0d0);if(_0x1f7927===!![]||_0x1f7927===_0x1fd929(0x888)){const _0x50b555=this[_0x1fd929(0x53a)](_0xfbac7c,_0x9a6f98,_0x128e28=>[_0x51d838,{..._0x43bf3d,..._0x128e28}],_0x69c0d0);return _0x1c7080?_0x50b555['map'](_0x1c7080):_0x50b555;}const _0x1c887c=_0x5b4174(_0x32d9fd=>this['_np'](_0x9a6f98,[_0x51d838,_0x32d9fd]),_0x43bf3d,_0x2b4f99,{'rows':_0x9a6f98==='getRange'});return _0x1c7080?_0x1c887c[_0x1fd929(0x1a7)](_0x1c7080):_0x1c887c;}['_lazyPinned'](_0x2b9727,_0x44a92b,_0x192b52,_0x54d1aa,_0x1d82aa,_0x5eb977=![]){const _0x1c7aec=_0x1b2b60,{source:_0x205e36,prefetch:_0xc2d699}=_0x247861((_0x33154a,_0x4980f3)=>_0x33154a==='unpin'?this['_n'](_0x33154a,_0x4980f3):this[_0x1c7aec(0x6f8)](_0x33154a,_0x4980f3),_0x44a92b,_0x192b52,_0x54d1aa||{},_0x1d82aa),_0x47c3c8=_0xc2d699(),_0x56b84f=!_0x5eb977&&_0x54d1aa&&_0x54d1aa[_0x1c7aec(0x175)]===_0x1c7aec(0x888);let _0x310fda=null;return _0x37b436(()=>({[Symbol[_0x1c7aec(0x56e)]]:()=>_0x310fda=_0x205e36(0x0,_0x3c513c(_0x47c3c8))}),{'label':this[_0x1c7aec(0x6fe)]+':'+_0x2b9727,..._0x56b84f?{'getTxnId':()=>this['db'][_0x1c7aec(0x7fd)]()['lastTxnId'],'resume':()=>({[Symbol[_0x1c7aec(0x56e)]]:()=>_0x310fda=_0x310fda['resumed']()})}:{}});}[_0x1b2b60(0x3fa)](_0x29fe50,_0x4dbf6e){const _0x21dc8a=_0x1b2b60;return this[_0x21dc8a(0x3b1)](_0x21dc8a(0x3fa),_0x21dc8a(0x3fa),_0x29fe50,_0x4dbf6e,_0x4a6996=>_0x4a6996['key']);}[_0x1b2b60(0x7d2)](_0x1862e5,_0x4f896a){const _0x3b6bf2=_0x1b2b60;return this['_range'](_0x3b6bf2(0x7d2),'getKeys',_0x1862e5,_0x4f896a,_0x4e0760=>_0x4e0760);}[_0x1b2b60(0x618)](_0x3a2385,_0x47122f){const _0x505bb4=_0x1b2b60;return this[_0x505bb4(0x3b1)](_0x505bb4(0x618),'getRange',_0x3a2385,_0x47122f,_0x2d894e=>_0x2d894e[_0x505bb4(0x366)],_0x3ead75=>_0x3ead75[_0x505bb4(0x820)]);}[_0x1b2b60(0x587)](_0x4b8c9e,_0x23a2cc,_0x5f15f1={}){const _0x3ae089=_0x1b2b60;return this[_0x3ae089(0x3fa)](_0x4b8c9e,{'start':_0x23a2cc,'end':_0x23a2cc+'￿',..._0x5f15f1});}['getIndex'](_0x31dcb4,_0x2c14f2,_0xc827b4={}){const _0x4c2381=_0x1b2b60;this[_0x4c2381(0x636)]('getIndex',_0xc827b4,[_0x4c2381(0x575)]);const _0x357d12=_0x3495e8(_0xc827b4);if(_0xc827b4&&_0xc827b4['transaction'])return _0x1a3ff7(this['_n'](_0x4c2381(0x606),[_0x31dcb4,_0x2c14f2,_0x357d12]));return this[_0x4c2381(0x53a)](_0x4c2381(0x606),_0x4c2381(0x606),_0x285f64=>[_0x31dcb4,_0x2c14f2,{..._0x357d12,..._0x285f64}],_0xc827b4,undefined,!![]);}[_0x1b2b60(0x2c0)](_0x953faf,_0x3d7e4a,_0x222989){const _0x36ea8f=_0x1b2b60;this[_0x36ea8f(0x636)](_0x36ea8f(0x2c0),_0x222989,[_0x36ea8f(0x575),_0x36ea8f(0x7c4)]);const _0x5e2cb5=_0x3495e8(_0x222989);if(_0x222989&&_0x222989[_0x36ea8f(0x7f7)])return _0x1a3ff7(this['_n'](_0x36ea8f(0x2c0),[_0x953faf,_0x3d7e4a,_0x5e2cb5]));return this[_0x36ea8f(0x53a)](_0x36ea8f(0x2c0),'byIndex',_0x3a1538=>[_0x953faf,_0x3d7e4a,{..._0x5e2cb5,..._0x3a1538}],_0x222989,undefined,!![]);}[_0x1b2b60(0x490)](_0x3cfe31,_0x270bcc,_0x4957d8={}){const _0x1f44cd=_0x1b2b60;return this['_n'](_0x1f44cd(0x490),[_0x3cfe31,_0x270bcc,_0x3495e8(_0x4957d8)]);}[_0x1b2b60(0x665)](_0x243176,_0x1f4605={},_0x2c7a54={}){const _0x5572dc=_0x1b2b60,_0x26cbde=_0x52d9b9(_0x2c7a54);if(_0x2c7a54){for(const _0x4d439e of Object[_0x5572dc(0x1d5)](_0x2c7a54))if(_0x4d439e!==_0x5572dc(0x6ea)&&typeof _0x2c7a54[_0x4d439e]===_0x5572dc(0x6d8))_0x26cbde[_0x4d439e]=null;}if(_0x2c7a54&&(_0x2c7a54[_0x5572dc(0x492)]||_0x2c7a54[_0x5572dc(0x6c5)]))return this['_n'](_0x5572dc(0x32d),[_0x26cbde]),this[_0x5572dc(0x627)](_0x243176,_0x1f4605,_0x2c7a54);const _0x3354dd=typeof _0x2c7a54[_0x5572dc(0x6ea)]==='function'?_0x2c7a54[_0x5572dc(0x6ea)]:null;if(_0x2c7a54[_0x5572dc(0x842)]||_0x4cbb2e(_0x1f4605)||_0x2c7a54[_0x5572dc(0x7f7)]!==undefined){let _0x247363=this['_n'](_0x5572dc(0x665),[_0x243176,_0x1f4605,_0x26cbde]);if(_0x3354dd)_0x247363=_0x247363[_0x5572dc(0x1a7)](_0x3354dd);if(_0x2c7a54[_0x5572dc(0x842)]||_0x4cbb2e(_0x1f4605))return _0x247363;return _0x1a3ff7(_0x247363);}const _0x593a91=_0x91b10b=>typeof _0x91b10b==='number'&&Number[_0x5572dc(0x40f)](_0x91b10b)?Math[_0x5572dc(0x3e7)](0x0,_0x91b10b):Infinity;let _0x57ba5c;if(_0x2c7a54[_0x5572dc(0x3a9)]){const _0x333855=_0x30a253=>typeof _0x30a253===_0x5572dc(0x5c1)&&_0x30a253>0x0?Math[_0x5572dc(0x342)](_0x30a253):0x0;_0x57ba5c=this[_0x5572dc(0x53a)](_0x5572dc(0x665),'query',_0x521713=>[_0x243176,_0x1f4605,{..._0x26cbde,..._0x521713}],null,{'limitOf':()=>_0x593a91(_0x26cbde[_0x5572dc(0x695)]),'offsetOf':()=>_0x333855(_0x26cbde[_0x5572dc(0x534)])});}else _0x57ba5c=_0x5b4174(_0xbd939d=>{const _0x22f97e=_0x5572dc,{__after:_0x387510,..._0x104091}=_0xbd939d;return this[_0x22f97e(0x6f8)](_0x22f97e(0x665),_0x387510===undefined?[_0x243176,_0x1f4605,_0x104091]:[_0x243176,_0x1f4605,_0x104091,_0x387510]);},_0x26cbde,_0xa58118=>_0xa58118[_0x5572dc(0x366)],{'limitOf':_0x593a91,'rows':!![],'prefetch':!![],'resumeOpts':(_0x51ee97,_0x3dae5d)=>{const _0x345b69=_0x5572dc;_0x51ee97[_0x345b69(0x534)]=0x0,_0x51ee97['__after']=_0x3dae5d;}});return _0x3354dd?_0x57ba5c[_0x5572dc(0x1a7)](_0x3354dd):_0x57ba5c;}async[_0x1b2b60(0x627)](_0x5eb6ff,_0x95f122,_0xec90e4){const _0x2450a5=_0x1b2b60,{select:_0x5e0e02,..._0x5351af}=_0x52d9b9(_0xec90e4);let _0x2fcddb={..._0x5351af};const _0x177703=_0x2fcddb[_0x2450a5(0x3a9)];if(_0x177703&&!Array[_0x2450a5(0x69e)](_0x177703)&&typeof _0x177703==='object'&&_0x177703[_0x2450a5(0x613)]){const {fields:_0x138a56,prefix:_0x5b3d05,start:_0x4830ae,end:_0x50153e}=_0x177703;_0x2fcddb={..._0x2fcddb,'index':_0x138a56,'prefix':_0x5b3d05??_0x2fcddb[_0x2450a5(0x575)],'startIndex':_0x4830ae??_0x2fcddb['startIndex'],'endIndex':_0x50153e??_0x2fcddb[_0x2450a5(0x3db)]};}const _0x1eeb89=await this[_0x2450a5(0x21e)][_0x2450a5(0x406)](_0x2450a5(0x422),null,_0x2450a5(0x52d),[this['name'],_0x5eb6ff,_0x95f122,_0x2fcddb],![]),_0x2303ef=typeof _0xec90e4[_0x2450a5(0x6ea)]===_0x2450a5(0x6d8)?_0xec90e4[_0x2450a5(0x6ea)]:null;if(!_0x2303ef)return _0x1eeb89;return _0x1eeb89[_0x2450a5(0x1a7)](_0x2f5ea7=>{const {score:_0x54f41c,ftsScore:_0x522d25,numTerms:_0x3f9f24,maxScore:_0x1057d7,vectorScore:_0x55d28b,chunkHash:_0x1a5fa8,chunk:_0x56f0ea,..._0x5ca588}=_0x2f5ea7,_0x131c21=_0x2303ef(_0x5ca588);for(const [_0x1612c0,_0x5a1db2]of Object['entries']({'score':_0x54f41c,'ftsScore':_0x522d25,'numTerms':_0x3f9f24,'maxScore':_0x1057d7,'vectorScore':_0x55d28b,'chunkHash':_0x1a5fa8,'chunk':_0x56f0ea}))if(_0x5a1db2!==undefined)_0x131c21[_0x1612c0]=_0x5a1db2;return _0x131c21;});}[_0x1b2b60(0x181)](_0x2394ef,_0x2bdca5,_0xea4a23={}){const _0x5d9472=_0x1b2b60;let _0x4dea79=this['_n'](_0x5d9472(0x181),[_0x2394ef,_0x2bdca5,_0x52d9b9(_0xea4a23)]);if(typeof _0xea4a23['select']===_0x5d9472(0x6d8))_0x4dea79=_0x4dea79['map'](_0xea4a23[_0x5d9472(0x6ea)]);return _0x4dea79;}[_0x1b2b60(0x45e)](_0x3e2a84=null,_0x3ee4f0={}){return this['_n']('getClock',[_0x3e2a84]);}['getChanges'](_0xfad2b7=null,_0x5586cc=0x0,_0x2427b5=Number[_0x1b2b60(0x7eb)],_0x320995={}){const _0x18eb52=_0x1b2b60,_0x1526d3=_0x3495e8(_0x320995);if(_0x320995&&_0x320995['transaction'])return _0x1a3ff7(this['_n'](_0x18eb52(0x267),[_0xfad2b7,_0x5586cc,_0x2427b5,_0x1526d3]));return this['_lazyPinned'](_0x18eb52(0x267),_0x18eb52(0x267),_0x5a5b8b=>[_0xfad2b7,_0x5586cc,_0x2427b5,{..._0x1526d3,..._0x5a5b8b}],_0x320995);}[_0x1b2b60(0x3c2)](_0x52c1dc){const _0x23ecc3=_0x1b2b60;if(Array[_0x23ecc3(0x69e)](_0x52c1dc))return _0x52c1dc[_0x23ecc3(0x6cf)];let _0x237867=0x0;for(const _0x3cf32e of _0x52c1dc)_0x237867++;return _0x237867;}*[_0x1b2b60(0x380)](_0x762314){yield*_0x762314;}[_0x1b2b60(0x89e)](){return requireOkdbHlc()['toMs'](this['_hlc']);}get[_0x1b2b60(0x194)](){const _0x58795e=_0x1b2b60,_0x250eaf=this[_0x58795e(0x21e)][_0x58795e(0x60a)]?this[_0x58795e(0x21e)][_0x58795e(0x49e)]('db',null,_0x58795e(0x84e),[this[_0x58795e(0x6fe)]],![]):null;if(!_0x250eaf)return null;if(this[_0x58795e(0x6aa)]===_0x250eaf['gen'])return null;this[_0x58795e(0x2bb)]=this['_timerObjs']||new Map();let _0x23d4e1=this[_0x58795e(0x2bb)]['get'](_0x250eaf['gen']);if(!_0x23d4e1){const _0x18d528=this;_0x23d4e1={'ref'(){},'unref'(){},'hasRef':()=>![],'gen':_0x250eaf[_0x58795e(0x630)],'at':_0x250eaf['at'],'target':_0x250eaf[_0x58795e(0x5b4)],get '_destroyed'(){const _0x2a216a=_0x58795e,_0x248c34=_0x18d528[_0x2a216a(0x21e)][_0x2a216a(0x60a)]?_0x18d528[_0x2a216a(0x21e)][_0x2a216a(0x49e)]('db',null,_0x2a216a(0x84e),[_0x18d528[_0x2a216a(0x6fe)]],![]):null;return!_0x248c34||_0x248c34[_0x2a216a(0x630)]!==this[_0x2a216a(0x630)]||_0x18d528[_0x2a216a(0x6aa)]===this[_0x2a216a(0x630)];}},this[_0x58795e(0x2bb)][_0x58795e(0x328)](_0x250eaf[_0x58795e(0x630)],_0x23d4e1);}return _0x23d4e1;}[_0x1b2b60(0x20b)](){const _0x4f5610=_0x1b2b60,_0x1ce824=this['okdb']['_call']('db',null,_0x4f5610(0x84e),[this[_0x4f5610(0x6fe)]],![]);if(_0x1ce824)this[_0x4f5610(0x6aa)]=_0x1ce824[_0x4f5610(0x630)];}get[_0x1b2b60(0x82a)](){const _0x5f449d=_0x1b2b60,_0x1a3cdc=this[_0x5f449d(0x21e)][_0x5f449d(0x49e)]('db',null,_0x5f449d(0x84e),[this['name']],![]);return _0x1a3cdc?_0x1a3cdc[_0x5f449d(0x5b4)]:null;}get['_autoCompactTimer'](){const _0x57c67d=_0x1b2b60;return this[_0x57c67d(0x21e)][_0x57c67d(0x49e)]('db',null,_0x57c67d(0x546),[this['name']],![])?{'ref'(){},'unref'(){}}:null;}['_startAutoCompactCheck'](){const _0x38f4dd=_0x1b2b60;this[_0x38f4dd(0x21e)]['_call']('db',null,_0x38f4dd(0x3a2),[this['name']],![]);}['_stopAutoCompactCheck'](){const _0x1f7e99=_0x1b2b60;this['okdb'][_0x1f7e99(0x49e)]('db',null,_0x1f7e99(0x2d1),[this[_0x1f7e99(0x6fe)]],![]);}get[_0x1b2b60(0x340)](){const _0x154965=_0x1b2b60,_0x39ebd6=(_0x4e31d5,_0x3e7849)=>this[_0x154965(0x21e)][_0x154965(0x49e)]('db',null,_0x4e31d5,[this[_0x154965(0x6fe)],..._0x3e7849],![]),_0x38315e=Object['keys'](_0x39ebd6(_0x154965(0x3e2),[])||{}),_0x4abedb={};for(const _0x4f3fff of _0x38315e)Object[_0x154965(0x79d)](_0x4abedb,_0x4f3fff,{'enumerable':!![],'get':()=>_0x39ebd6(_0x154965(0x3e2),[])?.[_0x4f3fff],'set':_0x4fed1b=>{_0x39ebd6('setAutoCompact',[_0x4f3fff,_0x4fed1b]);}});return _0x4abedb;}get['_hlc'](){const _0x5d1c81=_0x1b2b60;return this['_n'](_0x5d1c81(0x48f),[]);}['equal'](_0x1a2327,_0x8faf9){const _0x567e7b=_0x1b2b60;return require$$16[_0x567e7b(0x757)](_0x1a2327,_0x8faf9);}async[_0x1b2b60(0x754)](_0x44791f,_0x49c698){const _0x46b0ee=_0x1b2b60;return this[_0x46b0ee(0x7d8)](this['_n'](_0x46b0ee(0x754),[_0x44791f]));}['hasType'](_0x1e2977){const _0x5a953f=_0x1b2b60;return this['_n'](_0x5a953f(0x3c7),[_0x1e2977]);}[_0x1b2b60(0x6a4)](){const _0x4beccc=_0x1b2b60;return this['_n'](_0x4beccc(0x6a4),[]);}async[_0x1b2b60(0x195)](_0xc81452,_0x3f21b8){const _0x35bbb1=_0x1b2b60;return this[_0x35bbb1(0x7d8)](this['_n']('dropType',[_0xc81452]));}async[_0x1b2b60(0x5cf)](_0x9eb792,_0x690a2){const _0x498180=_0x1b2b60,{timestamp:_0x28437b,indexes:indexes=[]}=_0x4ad11c(_0x690a2);return this[_0x498180(0x7d8)](this['_n'](_0x498180(0x5cf),[_0x9eb792,{'indexes':indexes}]));}async[_0x1b2b60(0x766)](_0x4dfcca){const _0x53b1a5=_0x1b2b60,{type:_0x296203,indexes:indexes=[],fts:fts=[],views:views=[],schema:schema=null}=_0x4ad11c(_0x4dfcca,_0x53b1a5(0x61a));if(!_0x296203)throw new Error(_0x53b1a5(0x2bf));await this['ensureType'](_0x296203,{'indexes':indexes});for(const _0x279256 of fts){const {name:_0x1cfcbd,fields:_0x43716f,..._0x1b009f}=_0x279256;if(!_0x1cfcbd||!_0x43716f)throw new Error(_0x53b1a5(0x3ac));await this[_0x53b1a5(0x21e)][_0x53b1a5(0x492)][_0x53b1a5(0x766)](_0x296203,_0x1cfcbd,{'fields':_0x43716f,..._0x1b009f},this);}for(const _0x3d1a9d of views){const {name:_0xdd1427,definition:_0x122aaf}=_0x3d1a9d;if(!_0xdd1427||!_0x122aaf)throw new Error(_0x53b1a5(0x388));if(!await this[_0x53b1a5(0x62a)][_0x53b1a5(0x261)](_0xdd1427))await this[_0x53b1a5(0x62a)][_0x53b1a5(0x740)](_0xdd1427,_0x122aaf);}if(schema)await this[_0x53b1a5(0x573)](_0x296203,schema);}async['registerIndex'](_0x13f16c,_0x19a509,_0x4a9d31){const _0x263207=_0x1b2b60,_0x230f29=this['_n']('registerIndexDeferred',[_0x13f16c,_0x19a509,typeof _0x4a9d31===_0x263207(0x1be)?_0x4a9d31:{}]);if(!_0x230f29)return this['_wsettle'](undefined);const _0xe6b3b7=this['_n']('resetIndexBegin',[_0x13f16c,_0x19a509,!![]]);if(_0xe6b3b7===undefined)return this[_0x263207(0x7d8)](undefined);return this[_0x263207(0x7d8)](await this[_0x263207(0x1e3)](_0x13f16c,_0x19a509,_0xe6b3b7));}async[_0x1b2b60(0x1e3)](_0x59a67b,_0x5825b3,_0x33a8c9){const _0x42717c=_0x1b2b60,_0x4b91d7=_0x59a67b+'@'+[][_0x42717c(0x79b)](_0x5825b3)[_0x42717c(0x3d2)]('~');if(!this[_0x42717c(0x1cb)])this[_0x42717c(0x1cb)]=new Map();const _0x59a9a9=this[_0x42717c(0x1cb)][_0x42717c(0x63c)](_0x4b91d7);if(_0x59a9a9)return _0x59a9a9;const _0x3f18b9=((async()=>{const _0x1c36f0=_0x42717c;do await new Promise(_0x52d45f=>setImmediate(_0x52d45f));while(!this['_n'](_0x1c36f0(0x216),[_0x59a67b,_0x5825b3,_0x33a8c9,!![]]));})());this[_0x42717c(0x1cb)][_0x42717c(0x328)](_0x4b91d7,_0x3f18b9);try{return await _0x3f18b9;}finally{this['_indexBuilds'][_0x42717c(0x82f)](_0x4b91d7);}}async[_0x1b2b60(0x764)](_0x46f585,_0x1386a1,_0x2fd6aa){const _0x2ed79e=_0x1b2b60;return this['_wsettle'](this['_n'](_0x2ed79e(0x764),[_0x46f585,_0x1386a1]));}async['resetIndex'](_0x529177,_0x2f1311,_0x7ad987){const _0x3eadbf=_0x1b2b60,_0x34193b=this['_indexBuilds']&&this['_indexBuilds'][_0x3eadbf(0x63c)](_0x529177+'@'+[][_0x3eadbf(0x79b)](_0x2f1311)[_0x3eadbf(0x3d2)]('~'));if(_0x34193b)return _0x34193b;const _0x149825=this['_n'](_0x3eadbf(0x7e3),[_0x529177,_0x2f1311,_0x7ad987]);if(_0x149825===undefined)return;return await new Promise(_0x4b3a93=>setImmediate(_0x4b3a93)),this['_wsettle'](await this[_0x3eadbf(0x1e3)](_0x529177,_0x2f1311,_0x149825));}[_0x1b2b60(0x2d8)](_0x2d66cb,_0x3844c5){const _0x1836be=_0x1b2b60;return this['_n'](_0x1836be(0x2d8),[_0x2d66cb,_0x3844c5]);}[_0x1b2b60(0x2ef)](_0x153e7e,_0x299c97){const _0x232a7d=_0x1b2b60;return this['_n'](_0x232a7d(0x2ef),[_0x153e7e,_0x299c97]);}async[_0x1b2b60(0x76a)](_0x73081e,_0xf1d261){const _0x30e57d=_0x1b2b60;if(this['_n']('getIndexStatus',[_0x73081e,_0xf1d261])===_0x30e57d(0x288))return!![];let _0x231dff=0xa;for(;;){await new Promise(_0xea3419=>setTimeout(_0xea3419,_0x231dff));if(!this['okdb'][_0x30e57d(0x60a)]||this[_0x30e57d(0x7ba)])return![];let _0x57b94e;try{_0x57b94e=this['_n'](_0x30e57d(0x7ec),[_0x73081e,Array[_0x30e57d(0x69e)](_0xf1d261)?_0xf1d261[_0x30e57d(0x3d2)]('~'):String(_0xf1d261)[_0x30e57d(0x3f8)](',')[_0x30e57d(0x3d2)]('~')]);}catch{return![];}const _0x36745e=_0x57b94e&&_0x57b94e[_0x30e57d(0x1c9)];if(_0x36745e===_0x30e57d(0x288))return!![];if(_0x36745e===undefined)return![];_0x231dff=Math[_0x30e57d(0x5a9)](_0x231dff*0x2,0xfa);}}[_0x1b2b60(0x7ec)](_0x233cc5,_0x3f706c){const _0x4f82d2=_0x1b2b60;return this['_n'](_0x4f82d2(0x7ec),[_0x233cc5,_0x3f706c])??null;}[_0x1b2b60(0x43b)](_0x5b57f4,_0x21ed67){const _0x5ef898=_0x1b2b60;return this['_n'](_0x5ef898(0x43b),[_0x5b57f4,_0x21ed67]);}[_0x1b2b60(0x7e9)](_0xc1172d,_0x3dc385){const _0x3d65cc=_0x1b2b60;return this['_n'](_0x3d65cc(0x7e9),[_0xc1172d,_0x3dc385]);}[_0x1b2b60(0x4ee)](_0x33a01f,_0x3598c1,_0x570d13){const _0x58bfe9=_0x1b2b60;return this['_n'](_0x58bfe9(0x4ee),[_0x33a01f,_0x3598c1,_0x570d13])??null;}['getSchema'](_0x1c8460){const _0x22da4e=_0x1b2b60;return this['_n'](_0x22da4e(0x2d0),[_0x1c8460])??null;}async['setSchema'](_0x2b2664,_0xdb15e9){const _0x518010=_0x1b2b60;return this[_0x518010(0x7d8)](this['_n'](_0x518010(0x573),[_0x2b2664,_0xdb15e9]));}async[_0x1b2b60(0x389)](_0x7c3096){const _0x5ba51c=_0x1b2b60;return this['_wsettle'](this['_n'](_0x5ba51c(0x389),[_0x7c3096]));}[_0x1b2b60(0x2e7)](_0x22d45d,_0x3c8818){return this['_n']('getViolation',[_0x22d45d,_0x3c8818])??null;}[_0x1b2b60(0x210)](_0x1ab790){const _0x556a55=_0x1b2b60;return this['_n'](_0x556a55(0x210),[_0x1ab790]);}[_0x1b2b60(0x45a)](_0x5cb24f,_0x307c66,_0x2a4bbb){const _0x1878ec=_0x1b2b60;return this['_n'](_0x1878ec(0x45a),[_0x5cb24f,_0x307c66,_0x2a4bbb])??null;}[_0x1b2b60(0x82d)](_0x3c93cd){const _0x173837=_0x1b2b60;return this['_n'](_0x173837(0x82d),[_0x3c93cd]);}async[_0x1b2b60(0x397)](_0x5bc65f,_0x2d028d,_0x2aa598){return this['_wsettle'](this['_n']('setTTL',[_0x5bc65f,_0x2d028d,_0x2aa598]));}[_0x1b2b60(0x329)](_0x472a22,_0x346cf8){const _0x12ad3b=_0x1b2b60;return this['_n'](_0x12ad3b(0x329),[_0x472a22,_0x346cf8]);}async['clearTTL'](_0x5d3722,_0xb99bb2){const _0xc8047d=_0x1b2b60;return this[_0xc8047d(0x7d8)](this['_n']('clearTTL',[_0x5d3722,_0xb99bb2]));}async[_0x1b2b60(0x6f7)](_0x387302){const _0x3affb2=_0x1b2b60;return this['_n'](_0x3affb2(0x6f7),[_0x387302]);}['listTTL'](_0x4d6671={}){const _0xe231ed=_0x1b2b60;return this['_n'](_0xe231ed(0x5cc),[_0x4d6671]);}['ttlStats'](_0x141fa8){return this['_n']('ttlStats',[_0x141fa8]);}async[_0x1b2b60(0x669)](_0x130926,_0x1f776d){const _0x37f8cd=_0x1b2b60;return this[_0x37f8cd(0x7d8)](this['_n'](_0x37f8cd(0x669),[_0x130926,_0x1f776d]));}[_0x1b2b60(0x60f)](_0xde3320){return this['_n']('getDefaultTTL',[_0xde3320]);}async[_0x1b2b60(0x8a4)](_0x14e3b2){const _0x3c7a21=_0x1b2b60;return this[_0x3c7a21(0x7d8)](this['_n']('clearDefaultTTL',[_0x14e3b2]));}async['resolveField'](_0x525550,_0x167d64,_0x3484f4,_0xcf044f){const _0x395e06=_0x1b2b60,{batch:batch=null,batchSize:_0x3a462e}=_0x4ad11c(_0xcf044f);if(typeof _0x525550!==_0x395e06(0x4bb)||!_0x525550)throw new _0x45c9f2('resolveField:\x20type\x20required',_0x395e06(0x694));if(typeof _0x167d64!==_0x395e06(0x4bb)||!_0x167d64)throw new _0x45c9f2(_0x395e06(0x168),'BAD_PARAM');if(_0x3484f4!=null&&typeof _0x3484f4!==_0x395e06(0x6d8))throw new _0x45c9f2('resolveField:\x20resolver\x20must\x20be\x20a\x20function','BAD_PARAM');if(batch!=null&&typeof batch!=='function')throw new _0x45c9f2(_0x395e06(0x39a),_0x395e06(0x694));if(!_0x3484f4&&!batch)throw new _0x45c9f2(_0x395e06(0x74c),_0x395e06(0x694));if(_0x3a462e!==undefined&&!(Number[_0x395e06(0x40f)](_0x3a462e)&&_0x3a462e>0x0))throw new _0x45c9f2(_0x395e06(0x1e7),'BAD_PARAM');const _0x337279=batch?async _0x1f5dd1=>(await batch(_0x1f5dd1))[_0x395e06(0x1a7)](_0x577ff6=>_0x577ff6 instanceof Error?{'__error':!![],'message':_0x577ff6['message']}:_0x577ff6):null,_0x229e5d=_0x23abb4(this,_0x525550,_0x167d64),_0x211a5c=this['_n']('resolveField',[_0x525550,_0x167d64,_0x3484f4?(_0xfeada,_0x750d63)=>_0x229e5d(_0x3484f4,[_0xfeada,_0x750d63]):null,{'batch':_0x337279?_0x182981=>_0x229e5d(_0x337279,[_0x182981]):null,'batchSize':_0x3a462e}]);return()=>this['_n'](_0x395e06(0x7db),[_0x211a5c]);}async['unresolveField'](_0x116862,_0x3bb459){const _0xefbede=_0x1b2b60;return this['_n'](_0xefbede(0x6db),[_0x116862,_0x3bb459]);}[_0x1b2b60(0x1e0)](_0x8ed6b){return this['_n']('resolvedFields',[_0x8ed6b]);}async['readField'](_0x2b6ea6,_0x46231f,_0x528d8a,_0x2318a8){const _0x6cbc3c=_0x1b2b60;return this[_0x6cbc3c(0x21e)]['_callMacro'](_0x6cbc3c(0x30b),this[_0x6cbc3c(0x6fe)],_0x6cbc3c(0x513),[_0x2b6ea6,_0x46231f,_0x528d8a,_0x2318a8],![]);}async[_0x1b2b60(0x89f)](_0x340b32,_0x530804,_0x52d808){const _0x4158be=_0x1b2b60;return this[_0x4158be(0x21e)][_0x4158be(0x406)](_0x4158be(0x30b),this['name'],_0x4158be(0x89f),[_0x340b32,_0x530804,_0x52d808],![]);}[_0x1b2b60(0x29e)](){}[_0x1b2b60(0x629)](_0x581651,_0x2c2522,_0x4dc880,_0x29d46c={},_0x15072f={}){const _0x18afbf=_0x1b2b60;return this['okdb'][_0x18afbf(0x49e)](_0x18afbf(0x492),null,'ftsQuery',[_0x581651,_0x2c2522,_0x4dc880,_0x29d46c,_0x15072f,this[_0x18afbf(0x6fe)]],![]);}get['fts'](){const _0x29bed6=_0x1b2b60;return this['okdb'][_0x29bed6(0x492)];}[_0x1b2b60(0x53e)](){const _0x183941=_0x1b2b60;return this[_0x183941(0x21e)][_0x183941(0x49e)](_0x183941(0x30b),this['name'],_0x183941(0x53e),[],![]);}[_0x1b2b60(0x837)](){const _0x32cf71=_0x1b2b60;return this[_0x32cf71(0x21e)][_0x32cf71(0x837)]();}[_0x1b2b60(0x1d2)](){const _0x32e9fe=_0x1b2b60;return this[_0x32e9fe(0x21e)][_0x32e9fe(0x49e)](_0x32e9fe(0x30b),this['name'],_0x32e9fe(0x1d2),[],![]);}[_0x1b2b60(0x348)](){}get[_0x1b2b60(0x238)](){const _0x376d29=_0x1b2b60;return this[_0x376d29(0x6dc)]||(this[_0x376d29(0x6dc)]=new(requireLock())[(_0x376d29(0x828))](this[_0x376d29(0x21e)],this[_0x376d29(0x6fe)],_0x376d29(0x30b)));}[_0x1b2b60(0x2ba)](){const _0x197071=_0x1b2b60;return this[_0x197071(0x21e)]['_call']('env',this[_0x197071(0x6fe)],'storageStats',[],![]);}['_registerType'](_0x312765){const _0x1dd78f=_0x1b2b60;this['_n'](_0x1dd78f(0x754),[_0x312765]);}['_logChange'](_0x3e4d6c){const _0x16ff5b=_0x1b2b60;this['_n'](_0x16ff5b(0x493),[_0x3e4d6c]);}['_ttlState'](){const _0x41cf5a=_0x1b2b60;return this['_n'](_0x41cf5a(0x599),[]);}['_ttlCompositeKey'](_0x4a40d6,_0x5e8c4e){return _0x4a40d6+'\x09'+_0x5e8c4e;}[_0x1b2b60(0x39f)](_0x2425d8){const _0x506401=_0x1b2b60,_0x525c00=_0x2425d8['indexOf']('\x09');return{'type':_0x2425d8[_0x506401(0x5ca)](0x0,_0x525c00),'key':_0x2425d8[_0x506401(0x5ca)](_0x525c00+0x1)};}get[_0x1b2b60(0x87f)](){const _0x22154b=_0x1b2b60;if(!this[_0x22154b(0x2e8)]()['enabled'])return null;return this['__ttlByKey']||(this[_0x22154b(0x71a)]=new _0x27cb06(this,_0x22154b(0x461)));}get[_0x1b2b60(0x44f)](){const _0x52c3fe=_0x1b2b60;if(!this[_0x52c3fe(0x2e8)]()[_0x52c3fe(0x580)])return null;return this[_0x52c3fe(0x572)]||(this[_0x52c3fe(0x572)]=new _0x27cb06(this,_0x52c3fe(0x6f2),{'dupSort':!![]}));}[_0x1b2b60(0x73b)](_0x2f4460,_0x1d1873,_0x53c4f3){const _0x43cb8b=_0x1b2b60;this['_n'](_0x43cb8b(0x81a),[_0x2f4460,_0x1d1873,_0x53c4f3]);}[_0x1b2b60(0x5aa)](_0x34e35e,_0x4532c4){const _0x1247c5=_0x1b2b60,_0x3d5967=this[_0x1247c5(0x87f)]?.[_0x1247c5(0x63c)](this[_0x1247c5(0x34a)](_0x34e35e,_0x4532c4));return _0x3d5967!=null&&_0x3d5967<=Date['now']();}get[_0x1b2b60(0x61e)](){const _0x38db77=_0x1b2b60;return this['_ttlState']()[_0x38db77(0x1d8)]??null;}get[_0x1b2b60(0x40b)](){const _0x647a9a=_0x1b2b60;return this['_ttlState']()[_0x647a9a(0x886)]||0x0;}get[_0x1b2b60(0x451)](){return![];}[_0x1b2b60(0x87b)](){}async[_0x1b2b60(0x5be)](_0x3c6d2a,_0x4085d7){const _0x2b12d0=_0x1b2b60;if(this[_0x2b12d0(0x19a)]){const {OKDBError:_0x2dec40}=requireErrors();throw new _0x2dec40(_0x2b12d0(0x4fa),'REBUILD_IN_PROGRESS');}this[_0x2b12d0(0x19a)]=!![];try{return await this[_0x2b12d0(0x21e)][_0x2b12d0(0x406)]('env',this[_0x2b12d0(0x6fe)],_0x3c6d2a,[_0x4085d7],!![]);}finally{this[_0x2b12d0(0x19a)]=![];}}async[_0x1b2b60(0x2ab)](_0x24b3e5={}){const _0x296a39=_0x1b2b60;return this[_0x296a39(0x5be)](_0x296a39(0x2ab),_0x24b3e5);}async[_0x1b2b60(0x1c6)](_0x2df695={}){const _0x13ebf4=_0x1b2b60;return this[_0x13ebf4(0x5be)](_0x13ebf4(0x1c6),_0x2df695);}}_0x4dc0fd[_0x1b2b60(0x477)]=_0x594408;function _0x4cbb2e(_0x234f9a){const _0x1c9644=_0x1b2b60;if(!_0x234f9a||typeof _0x234f9a!==_0x1c9644(0x1be))return![];for(const _0x34de73 of Object[_0x1c9644(0x1d5)](_0x234f9a)){const _0x5c0b92=_0x234f9a[_0x34de73];if(_0x5c0b92&&typeof _0x5c0b92===_0x1c9644(0x1be)&&(_0x5c0b92[_0x1c9644(0x3d0)]||_0x5c0b92[_0x1c9644(0x650)]))return!![];}return![];}function _0x3495e8(_0x2357f7){const _0x10f5f4=_0x1b2b60;if(!_0x2357f7||typeof _0x2357f7!==_0x10f5f4(0x1be))return{};const _0x5c33dd={};for(const _0x54f0f7 of Object['keys'](_0x2357f7)){if(_0x54f0f7===_0x10f5f4(0x7f7)||_0x54f0f7===_0x10f5f4(0x175))continue;_0x5c33dd[_0x54f0f7]=_0x2357f7[_0x54f0f7];}return _0x5c33dd;}function _0x52d9b9(_0x392415){const _0x151b5a=_0x1b2b60;if(!_0x392415||typeof _0x392415!=='object')return{};const _0x3219cb={};for(const _0x271b8d of Object['keys'](_0x392415)){if(typeof _0x392415[_0x271b8d]===_0x151b5a(0x6d8))continue;_0x3219cb[_0x271b8d]=_0x392415[_0x271b8d];}return _0x3219cb;}return env={'OKDBEnv':_0x4dc0fd,'HIGH_SENTINEL':_0x594408},env;}var unsupported,hasRequiredUnsupported;function requireUnsupported(){if(hasRequiredUnsupported)return unsupported;hasRequiredUnsupported=0x1;const {NotImplementedNative:_0x5897c0}=requireErrors();function _0xa6aecb(_0x4aec3d){const _0x5e4f5b=_0x338cea=>{throw new _0x5897c0(_0x4aec3d,_0x338cea);};return new Proxy(function(){},{'get'(_0x3eaecb,_0x4b30af){const _0x538b36=_0x3ebb;if(typeof _0x4b30af===_0x538b36(0x856)||_0x4b30af===_0x538b36(0x2b0)||_0x4b30af==='toJSON'||_0x4b30af===_0x538b36(0x89a))return undefined;if(_0x4b30af===_0x538b36(0x715))return _0x4aec3d;return(..._0x2a54eb)=>_0x5e4f5b(_0x4aec3d+'.'+String(_0x4b30af));},'apply'(){_0x5e4f5b(_0x4aec3d);},'set'(){return!![];}});}return unsupported={'notImplemented':_0xa6aecb},unsupported;}var http,hasRequiredHttp;function requireHttp(){const _0x111a97=_0x2ec26e;if(hasRequiredHttp)return http;hasRequiredHttp=0x1;function _0x4eef5b(_0x590fe0,_0x112af9={}){const _0x238bb5=_0x3ebb,_0x3f2045=[];let _0x5728d7=![];_0x590fe0[_0x238bb5(0x66c)]('/*')&&(_0x5728d7=!![],_0x590fe0=_0x590fe0[_0x238bb5(0x5ca)](0x0,-0x2),_0x3f2045[_0x238bb5(0x2fb)]('*'));let _0x5d0c89=_0x590fe0['replace'](/\/+$/,'')[_0x238bb5(0x861)](/\[([^\]]*)\]/g,(_0x5ce064,_0x3a1a16)=>{const _0x3c9115=_0x3a1a16['replace'](/\/:(\w+)(?:=([^/\]\s]*))?/g,(_0x37f041,_0x5c7975)=>{const _0x46c0b0=_0x3ebb;return _0x3f2045['push'](_0x5c7975),_0x46c0b0(0x512);});return'(?:'+_0x3c9115+')?';})[_0x238bb5(0x861)](/\/:(\w+)/g,(_0x4c3d19,_0x1c56af)=>{const _0x14f3ee=_0x238bb5;return _0x3f2045[_0x14f3ee(0x2fb)](_0x1c56af),_0x14f3ee(0x512);});if(_0x5d0c89==='')_0x5d0c89='/';return{'keys':_0x3f2045,'defaults':_0x112af9||{},'wildcard':_0x5728d7,'regex':new RegExp('^'+_0x5d0c89+(_0x5728d7?_0x238bb5(0x81d):'')+'/?$')};}const _0x121e3e=require$$0$3,{PassThrough:_0x1f378f}=require$$1;function _0x3b4d03(_0x34b3a4){const _0x2a2f4e=_0x3ebb,_0x3b76ea=_0x34b3a4[_0x2a2f4e(0x697)](':'),_0x13b825=_0x34b3a4['slice'](0x0,_0x3b76ea)[_0x2a2f4e(0x861)](/^\[|\]$/g,'');return{'address':_0x13b825,'family':_0x13b825[_0x2a2f4e(0x1ac)](':')?_0x2a2f4e(0x442):_0x2a2f4e(0x596),'port':Number(_0x34b3a4['slice'](_0x3b76ea+0x1))};}class _0x5226bd extends _0x121e3e[_0x111a97(0x605)]{constructor(_0x507543,_0x3e296b){const _0x804520=_0x111a97;super(),this[_0x804520(0x322)]=_0x507543,this['_addr']=_0x3b4d03(_0x3e296b),this[_0x804520(0x558)]=!![],this[_0x804520(0x290)]=setInterval(()=>{},0x7fffffff);}get[_0x111a97(0x558)](){const _0x3b4f4f=_0x111a97;return this[_0x3b4f4f(0x1ec)];}set[_0x111a97(0x558)](_0x52fb5d){const _0x526db5=_0x111a97;this[_0x526db5(0x1ec)]=_0x52fb5d;}[_0x111a97(0x78f)](){const _0x50091b=_0x111a97;return this['listening']?{...this[_0x50091b(0x432)]}:null;}[_0x111a97(0x41f)](){const _0x41d71c=_0x111a97;if(this[_0x41d71c(0x290)])clearInterval(this[_0x41d71c(0x290)]);this[_0x41d71c(0x290)]=null;}[_0x111a97(0x5a1)](_0x50e646){const _0x191b7a=_0x111a97;this[_0x191b7a(0x41f)]();const _0x5ae4a2=this[_0x191b7a(0x322)][_0x191b7a(0x5a1)]();if(_0x50e646)_0x5ae4a2[_0x191b7a(0x2b0)](()=>_0x50e646(),_0x50e646);return this;}['ref'](){const _0x3ca1b4=_0x111a97;return this[_0x3ca1b4(0x290)]?.[_0x3ca1b4(0x8a8)](),this;}['unref'](){const _0x27b643=_0x111a97;return this[_0x27b643(0x290)]?.[_0x27b643(0x702)](),this;}}class _0x2bda8b{constructor(_0x88a4e9){const _0x23dcc4=_0x111a97;this['okdb']=_0x88a4e9,this['servers']=[],this[_0x23dcc4(0x1e2)]={'cookieName':_0x23dcc4(0x7d6)};}get[_0x111a97(0x7e7)](){const _0x3337f2=_0x111a97;return this[_0x3337f2(0x597)][0x0]||null;}['_n'](_0x24e896,_0x4d455b=[]){const _0x865326=_0x111a97;return this['okdb'][_0x865326(0x406)]('http',null,_0x24e896,_0x4d455b,!![]);}async[_0x111a97(0x4aa)](_0x4c75d6,_0x4c4072,_0x1281ce={},_0x5ed609={}){const _0x5b5ee4=_0x111a97;let _0x1973cb=await this['_n'](_0x5b5ee4(0x4aa),[_0x4c75d6,_0x4c4072,_0x1281ce,_0x5ed609]),_0x2d8629=0x0;return _0x1973cb=await this[_0x5b5ee4(0x6f5)](_0x1973cb,_0x2d8629),_0x1973cb;}async[_0x111a97(0x6f5)](_0x5abfe2,_0x240a43){const _0x10dea7=_0x111a97;while(_0x5abfe2&&typeof _0x5abfe2===_0x10dea7(0x1be)&&_0x5abfe2[_0x10dea7(0x448)]!==undefined){await new Promise(_0x261e39=>setTimeout(_0x261e39,_0x240a43<0x5?0x1:0x5)),_0x240a43++,_0x5abfe2=await this['_n'](_0x10dea7(0x19f),[_0x5abfe2[_0x10dea7(0x448)]]);}if(_0x5abfe2&&_0x5abfe2[_0x10dea7(0x2d5)]&&typeof _0x5abfe2[_0x10dea7(0x2d5)]===_0x10dea7(0x1be)&&_0x5abfe2[_0x10dea7(0x2d5)][_0x10dea7(0x49f)]!==undefined)_0x5abfe2['body']=this['_stream'](_0x5abfe2[_0x10dea7(0x2d5)][_0x10dea7(0x49f)]);return _0x5abfe2;}[_0x111a97(0x52b)](_0x220b81){const _0xf368d6=_0x111a97,_0x2d9a9d=new _0x1f378f();let _0x445d1d=![];const _0x8a8f19=()=>{const _0x332d13=_0x3ebb;if(_0x445d1d)return;_0x445d1d=!![],clearTimeout(_0x5c8553),setImmediate(()=>this[_0x332d13(0x21e)]['_isOpen']&&this['okdb'][_0x332d13(0x49e)](_0x332d13(0x449),null,'streamClose',[_0x220b81],!![]));};let _0x5c8553=null;const _0x3432ad=()=>{const _0xe011db=_0x3ebb;if(_0x445d1d)return;let _0x431dab;try{_0x431dab=this['okdb'][_0xe011db(0x49e)](_0xe011db(0x449),null,_0xe011db(0x86e),[_0x220b81],!![]);}catch{_0x431dab={'chunks':[],'end':!![]};}for(const _0x57c99c of _0x431dab['chunks'])_0x2d9a9d['write'](_0x57c99c);if(_0x431dab[_0xe011db(0x330)]){_0x445d1d=!![],_0x2d9a9d[_0xe011db(0x330)]();return;}_0x5c8553=setTimeout(_0x3432ad,_0x431dab[_0xe011db(0x4e1)][_0xe011db(0x6cf)]?0x0:0xa);};_0x2d9a9d['on'](_0xf368d6(0x5a1),_0x8a8f19),_0x3432ad();if(!_0x445d1d)_0x3432ad();if(_0x445d1d)_0x2d9a9d['destroy']();else{if(!_0x5c8553)_0x5c8553=setTimeout(_0x3432ad,0x0);}return _0x2d9a9d;}['add'](_0x3d9b6a,_0x363c78,_0x3c9d87,_0x2f790e={}){const _0x8a5a43=_0x111a97;return this[_0x8a5a43(0x21e)][_0x8a5a43(0x49e)](_0x8a5a43(0x449),null,_0x8a5a43(0x7df),[_0x3d9b6a,_0x363c78,_0x3c9d87,_0x2f790e,![]],!![]),this;}['addRaw'](_0x26e1ab,_0x8c76aa,_0x1d9802,_0x1652e5={}){const _0x4abb12=_0x111a97;return this[_0x4abb12(0x21e)][_0x4abb12(0x49e)](_0x4abb12(0x449),null,_0x4abb12(0x7df),[_0x26e1ab,_0x8c76aa,_0x1d9802,_0x1652e5,!![]],!![]),this;}[_0x111a97(0x784)](_0x1531dc,_0x562f7a){const _0x59333f=_0x111a97,_0x18981d=async _0x4fb158=>{const _0x5ddd0a=_0x3ebb,_0xbe69a1={'status':undefined,'headers':[],'hasBody':![],'body':undefined},_0x22a94a={'status'(_0x481e3a){const _0x3ec432=_0x3ebb;return _0xbe69a1[_0x3ec432(0x1c9)]=_0x481e3a,_0x22a94a;},'setHeader'(_0x4f602e,_0x37358d){const _0x4ca9f8=_0x3ebb;_0xbe69a1[_0x4ca9f8(0x594)][_0x4ca9f8(0x2fb)]([_0x4f602e,_0x37358d]);},'send'(_0x2fc296){const _0x554fd3=_0x3ebb;_0xbe69a1[_0x554fd3(0x353)]=!![],_0xbe69a1[_0x554fd3(0x2d5)]=_0x2fc296;}};_0x4fb158[_0x5ddd0a(0x3f9)]={'remoteAddress':_0x4fb158[_0x5ddd0a(0x32e)]??null};const _0x192c2c=await _0x562f7a(_0x4fb158,_0x22a94a);return{'allowed':_0x192c2c!==![],..._0xbe69a1};};this[_0x59333f(0x21e)]['_call']('http',null,_0x59333f(0x784),[_0x4e27b5=>!!_0x1531dc(_0x4e27b5),_0x18981d],!![]);}[_0x111a97(0x69a)](_0xae1ca1){const _0x1b7c5b=_0x111a97,_0x11976e=async _0x27fe11=>{const _0x1cdc30=_0x3ebb,_0x53a6d9={'status':undefined,'headers':[],'hasBody':![],'body':undefined};let _0x59b4e6=![];const _0x5606f2={'status'(_0x4ee8a2){return _0x53a6d9['status']=_0x4ee8a2,_0x5606f2;},'setHeader'(_0x21105b,_0x391047){const _0x31a344=_0x3ebb;_0x53a6d9['headers'][_0x31a344(0x2fb)]([_0x21105b,_0x391047]);},'send'(_0x3c7117){const _0x358b62=_0x3ebb;_0x53a6d9[_0x358b62(0x353)]=!![],_0x53a6d9[_0x358b62(0x2d5)]=_0x3c7117;}};return _0x27fe11[_0x1cdc30(0x3f9)]={'remoteAddress':_0x27fe11['remoteAddress']??null},await _0xae1ca1(_0x27fe11,_0x5606f2,async()=>{_0x59b4e6=!![];}),{'allowed':_0x59b4e6,..._0x53a6d9};};return this[_0x1b7c5b(0x21e)][_0x1b7c5b(0x49e)](_0x1b7c5b(0x449),null,'use',[_0x11976e],!![]),this;}get[_0x111a97(0x269)](){const _0x24fa14=_0x111a97;return this['okdb'][_0x24fa14(0x49e)](_0x24fa14(0x449),null,_0x24fa14(0x767),[],![]);}set[_0x111a97(0x269)](_0x20d4cf){const _0x8d0ba3=_0x111a97;this[_0x8d0ba3(0x21e)][_0x8d0ba3(0x49e)](_0x8d0ba3(0x449),null,_0x8d0ba3(0x16f),[Number(_0x20d4cf)],![]);}[_0x111a97(0x5dd)](_0x2e9391,_0x23ad58,_0x14b3ff={}){const _0x19ba09=_0x111a97,_0x53d136=new Map(),_0x441930=(_0x37a83e,_0x351689)=>this['okdb']['_call'](_0x19ba09(0x449),null,_0x37a83e,_0x351689,![]),_0x579458=_0x24fffa=>{const _0x5974f9=_0x19ba09,{connId:_0x1ba2f1}=_0x24fffa;if(_0x24fffa[_0x5974f9(0x54a)]){const _0x5d1d9a=_0x53d136['get'](_0x1ba2f1);_0x53d136[_0x5974f9(0x82f)](_0x1ba2f1);if(typeof _0x5d1d9a===_0x5974f9(0x6d8))_0x5d1d9a();return;}const _0x3202c4=(_0x2db2e9,_0x22250f,_0x52179b={})=>{const _0x2d5d85=_0x5974f9;try{_0x441930(_0x2d5d85(0x679),[_0x1ba2f1,_0x2db2e9,_0x22250f,_0x52179b]);}catch{}},_0x8b5f9a=()=>{const _0x557687=_0x5974f9;try{_0x441930(_0x557687(0x3dc),[_0x1ba2f1]);}catch{}},_0x47cd6c=(_0x4eed39,_0x1c7f18)=>_0x441930(_0x5974f9(0x7dc),[_0x1ba2f1,String(_0x4eed39),String(_0x1c7f18)]),_0x35827d={'auth':{'open':_0x24fffa[_0x5974f9(0x38e)],'isAuthenticated':_0x24fffa[_0x5974f9(0x501)]}},_0x1c09ca=_0x23ad58({'send':_0x3202c4,'close':_0x8b5f9a,'params':_0x24fffa[_0x5974f9(0x55f)]??{},'query':_0x24fffa['query']??{},'headers':_0x24fffa['headers']??{},'context':_0x35827d,'setHeader':_0x47cd6c});_0x53d136['set'](_0x1ba2f1,_0x1c09ca);};return this[_0x19ba09(0x21e)][_0x19ba09(0x49e)](_0x19ba09(0x449),null,_0x19ba09(0x5dd),[_0x2e9391,_0x579458,_0x14b3ff],!![]),this;}get[_0x111a97(0x843)](){return this['listRoutes']();}[_0x111a97(0x7a4)](){const _0x408c08=_0x111a97;return this[_0x408c08(0x21e)][_0x408c08(0x49e)](_0x408c08(0x449),null,_0x408c08(0x7a4),[],![])[_0x408c08(0x1a7)](_0x5b5800=>({..._0x5b5800,'matcher':_0x4eef5b(_0x5b5800[_0x408c08(0x39d)],_0x5b5800[_0x408c08(0x6fd)])}));}[_0x111a97(0x1c0)](_0x39290c,_0x120b74){const _0x3d1f66=_0x111a97;return this[_0x3d1f66(0x21e)][_0x3d1f66(0x49e)](_0x3d1f66(0x449),null,_0x3d1f66(0x1c0),[_0x39290c,_0x120b74],![]);}[_0x111a97(0x3da)](_0x461f3d,_0x1436fe={}){const _0x233717=_0x111a97;if(typeof _0x1436fe===_0x233717(0x4bb)||Array[_0x233717(0x69e)](_0x1436fe))_0x1436fe={'host':_0x1436fe};_0x1436fe=_0x1436fe??{};if((Number(_0x1436fe[_0x233717(0x268)])||0x0)>=0x1||_0x1436fe['makeOkdb']!=null||_0x1436fe[_0x233717(0x1f3)]!=null){const _0x4925a1=new Error('http.listen({workers/makeOkdb/primaryOkdb})\x20is\x20no\x20longer\x20supported\x20in\x20the\x20'+_0x233717(0x201)+_0x233717(0x392)+_0x233717(0x31f));_0x4925a1['code']=_0x233717(0x421);throw _0x4925a1;}if(this[_0x233717(0x597)][_0x233717(0x6cf)])throw new Error(_0x233717(0x69d));const _0x5b9464=_0x1436fe[_0x233717(0x2f9)]==null?[undefined]:[][_0x233717(0x79b)](_0x1436fe[_0x233717(0x2f9)]);if(!_0x5b9464['length']||_0x5b9464[_0x233717(0x786)](_0x579840=>_0x579840!==undefined&&(typeof _0x579840!==_0x233717(0x4bb)||!_0x579840))){const _0x5b19b5=new Error(_0x233717(0x7ad));_0x5b19b5['code']=_0x233717(0x275);throw _0x5b19b5;}const _0x32c96d=require$$2[_0x233717(0x1fd)]?{..._0x1436fe,'reuseport':!![]}:_0x1436fe,_0x4ba405=this[_0x233717(0x21e)][_0x233717(0x49e)](_0x233717(0x449),null,_0x233717(0x3da),[_0x461f3d,_0x32c96d],!![]),_0x1be03b=_0x4ba405[_0x233717(0x548)]??_0x461f3d,_0x280a6d=_0x1436fe[_0x233717(0x2f9)]==null?':'+_0x1be03b:_0x5b9464[_0x233717(0x1a7)](_0x3217f9=>(_0x3217f9['includes'](':')?'['+_0x3217f9+']':_0x3217f9)+':'+_0x1be03b)[_0x233717(0x3d2)](',\x20');try{this[_0x233717(0x21e)][_0x233717(0x196)][_0x233717(0x84a)](_0x280a6d);if(!require(_0x233717(0x4c2))[_0x233717(0x1fd)])this[_0x233717(0x21e)]['processes']['register']({'kind':'standalone','listenAddr':_0x280a6d});}catch{}this['servers']=_0x4ba405['addrs'][_0x233717(0x1a7)](_0x358078=>new _0x5226bd(this,_0x358078));const _0xe0729f=this[_0x233717(0x597)][0x0];return process[_0x233717(0x343)](()=>this[_0x233717(0x597)][_0x233717(0x169)](_0x4b2d2d=>_0x4b2d2d[_0x233717(0x6d6)]('listening'))),_0xe0729f;}async['close'](_0xe777e1={}){const _0x98691b=_0x111a97,_0x1af50f=this[_0x98691b(0x597)];this[_0x98691b(0x597)]=[];if(require$$2['isWorker']&&!process[_0x98691b(0x276)]&&_0xe777e1[_0x98691b(0x825)]==null)_0xe777e1={..._0xe777e1,'forceAfterMs':Infinity};if(_0x1af50f[_0x98691b(0x6cf)]){const _0x1c7621=_0xe777e1[_0x98691b(0x825)]===Infinity?Infinity:Number[_0x98691b(0x5ef)](_0xe777e1[_0x98691b(0x825)])?Math[_0x98691b(0x3e7)](0x0,_0xe777e1[_0x98691b(0x825)]):0x3e8,_0x533edb=Date['now']();while(this[_0x98691b(0x21e)][_0x98691b(0x49e)](_0x98691b(0x449),null,'pendingResponses',[],!![])>0x0&&Date[_0x98691b(0x89e)]()-_0x533edb<_0x1c7621)await new Promise(_0x38f55a=>setTimeout(_0x38f55a,0x5));_0xe777e1={..._0xe777e1,'forceAfterMs':_0x1c7621===Infinity?0x3e8:Math[_0x98691b(0x3e7)](0x0,_0x1c7621-(Date[_0x98691b(0x89e)]()-_0x533edb))};}await this['_n'](_0x98691b(0x5a1),[_0xe777e1]);for(const _0x4a03bc of _0x1af50f){_0x4a03bc[_0x98691b(0x41f)](),_0x4a03bc[_0x98691b(0x558)]=![],_0x4a03bc[_0x98691b(0x6d6)](_0x98691b(0x5a1));}}}return http={'OKDBHttp':_0x2bda8b},http;}var fts,hasRequiredFts;function requireFts(){const _0xfa9883=_0x2ec26e;if(hasRequiredFts)return fts;hasRequiredFts=0x1;const _0x5c6369=_0x77f962=>(_0x77f962&&typeof _0x77f962===_0xfa9883(0x1be)?_0x77f962[_0xfa9883(0x6fe)]:_0x77f962)??_0xfa9883(0x822);class _0xfc9bef{constructor(_0x8dbe7){this['okdb']=_0x8dbe7;}['_n'](_0x15fac2,_0x25859d,_0x4e4d74=![]){const _0x14b37a=_0xfa9883;return this[_0x14b37a(0x21e)][_0x14b37a(0x49e)](_0x14b37a(0x492),null,_0x15fac2,_0x25859d,_0x4e4d74);}[_0xfa9883(0x321)](_0x1c066b,_0x22f1c7){const _0x25013a=_0xfa9883;return this[_0x25013a(0x21e)][_0x25013a(0x406)]('fts',null,_0x1c066b,_0x22f1c7,!![]);}get[_0xfa9883(0x50f)](){const _0x145e83=this,_0x58c59e=_0x560059=>{const _0x5e00cc=_0x3ebb,_0x39d8e9=_0x560059['indexOf'](':'),_0x299db2=_0x560059[_0x5e00cc(0x5ca)](0x0,_0x39d8e9),_0x43978b=_0x145e83[_0x5e00cc(0x21e)][_0x5e00cc(0x8a5)][_0x5e00cc(0x63c)](_0x299db2);if(!_0x43978b)return undefined;const _0x2c78b5=_0x43978b[_0x5e00cc(0x3e8)][_0x5e00cc(0x338)]()[_0x5e00cc(0x21c)](_0xc0ecc9=>_0xc0ecc9['cursorKey']===_0x5e00cc(0x21f)+_0x560059);if(!_0x2c78b5)return undefined;return _0x43978b[_0x5e00cc(0x3e8)][_0x5e00cc(0x1c1)](_0x2c78b5['id'],_0x2c78b5['cursorKey']);};return{'get':_0x58c59e,'has':_0x273ce2=>!!_0x58c59e(_0x273ce2)};}get[_0xfa9883(0x2ea)](){return[];}[_0xfa9883(0x4f9)](){const _0x3f2d40=_0xfa9883,{RawDb:_0x424121}=requireRawdb();return new _0x424121(this[_0x3f2d40(0x21e)][_0x3f2d40(0x851)],_0x3f2d40(0x5ec));}['has'](_0x225fa3,_0x376560,_0x1c1691){const _0x281030=_0xfa9883;return this['_n'](_0x281030(0x51e),[_0x225fa3,_0x376560,_0x5c6369(_0x1c1691)]);}[_0xfa9883(0x1c9)](_0x1604a6,_0x40ab79,_0xa2e191){return this['_n']('status',[_0x1604a6,_0x40ab79,_0x5c6369(_0xa2e191)]);}['list'](_0x11484a,_0x46321f){const _0x1f9243=_0xfa9883;return this['_n'](_0x1f9243(0x338),[_0x11484a,_0x5c6369(_0x46321f)]);}async[_0xfa9883(0x4cc)](_0x4589c8,_0x580975,_0x249843,_0x279eab,_0x3a2c9f){const _0x3fb5cc=_0xfa9883,_0x237989=(_0x3d1cf3,_0x1f756f)=>this[_0x3fb5cc(0x21e)][_0x3fb5cc(0x406)](_0x3fb5cc(0x492),null,_0x3d1cf3,_0x1f756f,!![],![]),_0x47c596=Date['now']()+0x1d4c0;let _0x558bf4=_0x4589c8,_0x183a57=_0x580975;for(;;){try{return await _0x237989(_0x558bf4,_0x183a57);}catch(_0x249808){if(_0x249808[_0x3fb5cc(0x748)]==='FTS_BUILD_CONTINUE'){_0x558bf4=_0x3fb5cc(0x67b),_0x183a57=[_0x249843,_0x279eab,_0x5c6369(_0x3a2c9f)];if(_0x249808['details']&&_0x249808[_0x3fb5cc(0x79f)]['wait'])await new Promise(_0x5eee99=>setTimeout(_0x5eee99,0x2));continue;}if(_0x249808[_0x3fb5cc(0x748)]!==_0x3fb5cc(0x1ea)||Date[_0x3fb5cc(0x89e)]()>=_0x47c596)throw _0x249808;}await new Promise(_0x55232c=>setTimeout(_0x55232c,0x5)),_0x558bf4=_0x3fb5cc(0x4df),_0x183a57=[_0x249843,_0x279eab,!![],_0x5c6369(_0x3a2c9f)];}}async[_0xfa9883(0x690)](_0x24cf41,_0x4ad5e6,_0x36314f,_0x39f75f,_0x25d407){const _0x29615b=_0xfa9883;return this['_build'](_0x29615b(0x690),[_0x24cf41,_0x4ad5e6,_0x36314f,_0x39f75f,_0x5c6369(_0x25d407)],_0x24cf41,_0x4ad5e6,_0x25d407);}async[_0xfa9883(0x303)](_0x21d055,_0xcd9d4e,_0xb96b0c){const _0x4805df=_0xfa9883;return this[_0x4805df(0x321)]('drop',[_0x21d055,_0xcd9d4e,_0x5c6369(_0xb96b0c)]);}async[_0xfa9883(0x766)](_0x43ae5c,_0x184a3b,_0x3cf7df,_0x2f1dba){const _0xfe0a8=_0xfa9883;return this['_build'](_0xfe0a8(0x766),[_0x43ae5c,_0x184a3b,_0x3cf7df,_0x5c6369(_0x2f1dba)],_0x43ae5c,_0x184a3b,_0x2f1dba);}async[_0xfa9883(0x4df)](_0x1f85c9,_0x5517d9,_0x555582,_0x345578){const _0x38c00b=_0xfa9883;return this[_0x38c00b(0x4cc)]('reset',[_0x1f85c9,_0x5517d9,_0x555582,_0x5c6369(_0x345578)],_0x1f85c9,_0x5517d9,_0x345578);}async[_0xfa9883(0x25b)](_0x1a9552,_0xaac99b,_0x4996c4,_0x319d97=0x1d4c0){const _0x3cd7e6=_0xfa9883,_0x457b2a=Date[_0x3cd7e6(0x89e)]()+_0x319d97;for(;;){try{return await this[_0x3cd7e6(0x321)](_0x1a9552,[..._0xaac99b,0x1]);}catch(_0x52847d){if(_0x52847d[_0x3cd7e6(0x748)]!==_0x4996c4||Date[_0x3cd7e6(0x89e)]()>=_0x457b2a)throw _0x52847d;}await new Promise(_0xb06a9b=>setTimeout(_0xb06a9b,0x2));}}async[_0xfa9883(0x288)](_0x43c961,_0x3f6988,_0xf82a8){const _0xaa5c15=_0xfa9883;return this[_0xaa5c15(0x25b)]('ready',[_0x43c961,null,_0x5c6369(_0xf82a8)],_0xaa5c15(0x4dc));}async[_0xfa9883(0x42c)](_0x2c4a33,_0x29652){const _0x239f2d=_0xfa9883;return this[_0x239f2d(0x25b)](_0x239f2d(0x42c),[_0x2c4a33,_0x5c6369(_0x29652)],_0x239f2d(0x6bc));}async['compact'](_0x4f27a0,_0x3d3371){const _0x4f28bc=_0xfa9883;return this[_0x4f28bc(0x321)](_0x4f28bc(0x2ab),[_0x4f27a0,_0x5c6369(_0x3d3371)]);}async['process'](_0x3ec93c={}){const _0x489640=_0xfa9883;return this[_0x489640(0x321)]('process',[_0x3ec93c]);}async['compactStorage'](_0x1f1ac5){const _0x54e5a3=_0xfa9883;return this[_0x54e5a3(0x321)](_0x54e5a3(0x64c),[_0x5c6369(_0x1f1ac5)]);}['envSize'](_0x457aa1){const _0x305b6d=_0xfa9883;return this['_n'](_0x305b6d(0x317),[_0x5c6369(_0x457aa1)]);}[_0xfa9883(0x58c)](_0x1f8351,_0x4edee4,_0x36138f,_0x22a20d,_0x2771cf){const _0x4b7e0e=_0xfa9883;return this['_n'](_0x4b7e0e(0x58c),[_0x1f8351,_0x4edee4,_0x36138f,_0x22a20d||{},_0x5c6369(_0x2771cf)]);}[_0xfa9883(0x191)](_0x5546d7,_0x1afdc8,_0x1fd244,_0x281d66,_0x4b7f20,_0x4a4835){const _0x2d7835=_0xfa9883;return this['_n'](_0x2d7835(0x191),[_0x5546d7,_0x1afdc8,_0x1fd244,_0x281d66||{},_0x5c6369(_0x4b7f20),_0x4a4835]);}['_searchWithScores'](_0x234d5a,_0x46094e,_0x50f03a,_0x3e3a1e,_0x1c95a7){return this['_n']('searchWithScores',[_0x234d5a,_0x46094e,_0x50f03a,_0x3e3a1e||{},_0x5c6369(_0x1c95a7)]);}[_0xfa9883(0x6e3)](){return this['_n']('listFtsEnvs',[]);}async[_0xfa9883(0x56b)](){const _0x26b274=_0xfa9883;return this[_0x26b274(0x321)](_0x26b274(0x56b),[]);}}return fts={'OKDBFts':_0xfc9bef},fts;}var embeddings,hasRequiredEmbeddings;function requireEmbeddings(){const _0x5086bf=_0x2ec26e;if(hasRequiredEmbeddings)return embeddings;hasRequiredEmbeddings=0x1;const {OKDBError:_0x12dbfc,invalidArgument:_0x47e8e4}=requireErrors();requireBridge();const _0x59b008=Object[_0x5086bf(0x62b)]({'EMBEDDER':'embedder','INDEXER':'indexer','SEARCH':_0x5086bf(0x395),'WORKER':'embed-worker'}),_0xbb6cff=_0x71a329=>typeof _0x71a329===_0x5086bf(0x4bb)||_0x71a329==null?_0x71a329:Array[_0x5086bf(0x170)](_0x71a329);class _0x5b6221{constructor(_0x170fc9){const _0xfea435=_0x5086bf;this[_0xfea435(0x21e)]=_0x170fc9,this[_0xfea435(0x4e4)]=new Map(),this[_0xfea435(0x424)]=new Map(),this[_0xfea435(0x5ce)]=new Map();}['_n'](_0x21a875,_0x5da881=[],_0x34eec0=!![]){const _0x3b8e83=_0x5086bf;return this[_0x3b8e83(0x21e)][_0x3b8e83(0x49e)](_0x3b8e83(0x422),null,_0x21a875,_0x5da881,_0x34eec0);}[_0x5086bf(0x321)](_0x2fc8ae,_0x1766be=[]){const _0x26e45a=_0x5086bf;return this[_0x26e45a(0x21e)][_0x26e45a(0x406)](_0x26e45a(0x422),null,_0x2fc8ae,_0x1766be,!![]);}[_0x5086bf(0x4f3)](_0x368d22){const _0x29961d=_0x5086bf;return _0x368d22?this[_0x29961d(0x21e)][_0x29961d(0x1a5)][_0x29961d(0x4f3)](_0x368d22):null;}[_0x5086bf(0x416)](_0x29e1d3,_0x55f7c7,_0x16643c={}){const _0x5bd781=_0x5086bf;if(typeof _0x55f7c7!==_0x5bd781(0x6d8))throw new _0x12dbfc(_0x5bd781(0x4d4),_0x5bd781(0x694),{'name':_0x29e1d3});this[_0x5bd781(0x4e4)][_0x5bd781(0x328)](_0x29e1d3,_0x55f7c7),this[_0x5bd781(0x424)][_0x5bd781(0x328)](_0x29e1d3,_0x16643c);const _0x6936db=this[_0x5bd781(0x21e)],_0x36828d=_0x21cfd4=>_0x55f7c7(_0x21cfd4,_0x6936db);_0x36828d['__okdb']=_0x6936db,this['_n']('registerEmbedderFactory',[_0x29e1d3,_0x36828d,_0x16643c??{}],![]);}[_0x5086bf(0x529)](_0x12f5f7){const _0x3733c2=_0x5086bf,_0x1434c7=this[_0x3733c2(0x4e4)][_0x3733c2(0x63c)](_0x12f5f7);if(_0x1434c7)return _0x1434c7;if(!this['_n']('hasEmbedderFactory',[_0x12f5f7],![]))return null;const _0x19b773=this;return(_0x3c9518={})=>{const _0x462d64=_0x3733c2,_0x2ae69a=_0x19b773['_n']('embedderNew',[_0x12f5f7,_0x3c9518],![]),_0x385a9e=_0x19b773['_n'](_0x462d64(0x29d),[_0x2ae69a],![]),_0x2cbcd9=(_0x3cd5c1,_0x1773d2)=>_0x19b773['_n'](_0x462d64(0x781),[_0x2ae69a,_0x3cd5c1,_0x1773d2],![]),_0x364ce3={'embed':async _0x28d703=>Float32Array[_0x462d64(0x170)](_0x2cbcd9('embed',_0x28d703)),'start':async()=>_0x2cbcd9(_0x462d64(0x898)),'stop':async()=>{const _0x5f273a=_0x462d64;_0x2cbcd9(_0x5f273a(0x893)),_0x2cbcd9(_0x5f273a(0x209));}};if(_0x385a9e)_0x364ce3[_0x462d64(0x4ce)]=async _0x211900=>_0x2cbcd9(_0x462d64(0x4ce),_0x211900)[_0x462d64(0x1a7)](_0x3699b6=>Float32Array['from'](_0x3699b6));return _0x364ce3;};}[_0x5086bf(0x637)](_0x193cfb){const _0xe63f68=_0x5086bf;return this[_0xe63f68(0x424)][_0xe63f68(0x63c)](_0x193cfb)??this['_n'](_0xe63f68(0x637),[_0x193cfb],![])??undefined;}[_0x5086bf(0x4c5)](_0x154f4e,_0x80f50b,_0x3832d4={}){const _0x5377f4=_0x5086bf;if(typeof _0x80f50b!==_0x5377f4(0x6d8))throw new _0x12dbfc(_0x5377f4(0x272),_0x5377f4(0x694),{'name':_0x154f4e});this['_n'](_0x5377f4(0x4c5),[_0x154f4e,(_0x3083ac,_0x24d5fa)=>_0x80f50b(_0x3083ac,_0x24d5fa),_0x3832d4??{}],![]);}[_0x5086bf(0x616)](){const _0x11f5bd=_0x5086bf;return this['_n'](_0x11f5bd(0x616),[],![]);}['registerPreparer'](_0x3277c3,_0x2bddf8){const _0x4ab309=_0x5086bf;if(typeof _0x2bddf8!==_0x4ab309(0x6d8))throw new _0x12dbfc(_0x4ab309(0x6d4),_0x4ab309(0x694),{'name':_0x3277c3});this['_n']('registerPreparer',[_0x3277c3,_0x2bddf8]);}[_0x5086bf(0x2a9)](_0x1dd00b,_0x3c69a8){const _0x5eea12=_0x5086bf;if(typeof _0x3c69a8!==_0x5eea12(0x6d8))throw new _0x12dbfc(_0x5eea12(0x711),_0x5eea12(0x694),{'name':_0x1dd00b});this['_n'](_0x5eea12(0x2a9),[_0x1dd00b,_0x3c69a8]);}['setStorageResolver'](_0x50e132){const _0xca8729=_0x5086bf;if(_0x50e132==null)return this['_n'](_0xca8729(0x2aa),[null],![]);if(typeof _0x50e132!=='function')throw new _0x12dbfc('Storage\x20resolver\x20must\x20be\x20a\x20function',_0xca8729(0x694));const _0x560169=this[_0xca8729(0x21e)];this['_n'](_0xca8729(0x2aa),[_0x35ab55=>_0x50e132(_0x35ab55,_0x560169)],![]);}async[_0x5086bf(0x487)](_0x14a9c7,_0x34508a={},_0x293436={},_0x59fe89=null){const _0x1c2264=_0x5086bf;return this['_wrap'](await this['_nm'](_0x1c2264(0x487),[_0x14a9c7,_0x34508a,_0x293436,_0x59fe89]));}async['createIndexer'](_0x591a35,_0x37a3a4={},_0x1c496c={}){const _0x5c20f5=_0x5086bf;return this[_0x5c20f5(0x4f3)](await this[_0x5c20f5(0x321)](_0x5c20f5(0x683),[_0x591a35,_0x37a3a4,_0x1c496c]));}async[_0x5086bf(0x678)](_0x254713,_0x50bd14={},_0x393afb={}){const _0x260a5c=_0x5086bf;return this[_0x260a5c(0x4f3)](await this[_0x260a5c(0x321)](_0x260a5c(0x678),[_0x254713,_0x50bd14,_0x393afb]));}async['createWorker'](_0x1aeca0,_0x52510f={},_0xa6aedc={}){const _0x182dbd=_0x5086bf;return this[_0x182dbd(0x4f3)](await this['_nm'](_0x182dbd(0x230),[_0x1aeca0,_0x52510f,_0xa6aedc]));}async[_0x5086bf(0x869)](_0x327d82,_0xf1a2f0={},_0x1bd98b={}){const _0x481e99=_0x5086bf,_0x409d0d=await this[_0x481e99(0x321)](_0x481e99(0x869),[_0x327d82,_0xf1a2f0,_0x1bd98b]);return{'embedder':this[_0x481e99(0x4f3)](_0x409d0d[_0x481e99(0x7b6)]),'indexer':this[_0x481e99(0x4f3)](_0x409d0d[_0x481e99(0x25c)]),'worker':this[_0x481e99(0x4f3)](_0x409d0d[_0x481e99(0x217)]),'search':this[_0x481e99(0x4f3)](_0x409d0d['search']),'api':this['_makePipelineApi'](_0x409d0d[_0x481e99(0x72b)],_0x409d0d[_0x481e99(0x7b6)][_0x481e99(0x6fe)],_0x409d0d[_0x481e99(0x217)]?_0x409d0d[_0x481e99(0x217)][_0x481e99(0x6fe)]:_0x409d0d[_0x481e99(0x72b)]+'-worker')};}[_0x5086bf(0x34d)](_0xa23f1d,_0x316ecf){const _0x2e5845=_0x5086bf;return this[_0x2e5845(0x21e)]['engines']['getRunningEngine'](_0xa23f1d,_0x316ecf)?.[_0x2e5845(0x370)]??null;}[_0x5086bf(0x7b6)](_0x18eb9a){const _0x31c3d3=_0x5086bf,_0x5099f3=this[_0x31c3d3(0x34d)](_0x59b008['EMBEDDER'],_0x18eb9a);if(!_0x5099f3)return null;const _0x49e9b8=this,_0x524b15=_0xcb6a22=>Array[_0x31c3d3(0x69e)](_0xcb6a22)&&Array[_0x31c3d3(0x69e)](_0xcb6a22[0x0])?_0xcb6a22[_0x31c3d3(0x1a7)](_0x5380d6=>Float32Array[_0x31c3d3(0x170)](_0x5380d6)):Float32Array[_0x31c3d3(0x170)](_0xcb6a22);return new Proxy(_0x5099f3,{'get'(_0x377fb6,_0x362594){const _0x799d9d=_0x31c3d3;if(_0x362594===_0x799d9d(0x4c6))return _0x49e9b8[_0x799d9d(0x21e)]['_call'](_0x799d9d(0x1a5),null,_0x799d9d(0x5a8),[_0x59b008[_0x799d9d(0x727)],_0x18eb9a,_0x799d9d(0x4c6),[]],![])[_0x799d9d(0x820)];if(_0x362594===_0x799d9d(0x22c))return async _0x355ae5=>_0x524b15(await _0x5099f3[_0x799d9d(0x22c)](_0x355ae5));if(_0x362594===_0x799d9d(0x4ce))return async _0x4f5edc=>(await _0x5099f3[_0x799d9d(0x4ce)](_0x4f5edc))['map'](_0x3eed59=>Float32Array['from'](_0x3eed59));return _0x377fb6[_0x362594];}});}[_0x5086bf(0x25c)](_0x1d0441){const _0x53fe69=_0x5086bf;return this[_0x53fe69(0x34d)](_0x59b008[_0x53fe69(0x363)],_0x1d0441);}[_0x5086bf(0x217)](_0x188eb0){const _0x459d43=_0x5086bf;return this[_0x459d43(0x34d)](_0x59b008['WORKER'],_0x188eb0);}[_0x5086bf(0x58c)](_0x2f5abd){const _0x13d95f=_0x5086bf,_0x37afb8=this[_0x13d95f(0x34d)](_0x59b008[_0x13d95f(0x880)],_0x2f5abd);if(_0x37afb8)return _0x37afb8;return this['_localViewApi'](_0x2f5abd);}['_localViewApi'](_0x2d35c7){const _0x17f2ee=_0x5086bf,_0x5d3067=this;return{'search':(_0x604462,_0x468b15={})=>_0x5d3067[_0x17f2ee(0x21e)][_0x17f2ee(0x406)]('embeddings',null,_0x17f2ee(0x58c),[_0x2d35c7,_0xbb6cff(_0x604462),_0x468b15],![]),'stats':async()=>_0x5d3067['_n'](_0x17f2ee(0x5f0),[_0x2d35c7],![]),'count':()=>_0x5d3067['_n']('viewOp',[_0x2d35c7,'count'],![])};}async[_0x5086bf(0x191)](_0x4ff43f,_0x24e780,_0x55e598={}){const _0x58cdcf=_0x5086bf,{limit:limit=0xa,..._0x260ddb}=_0x55e598;return this[_0x58cdcf(0x321)](_0x58cdcf(0x191),[_0x4ff43f,_0xbb6cff(_0x24e780),{..._0x260ddb,'limit':limit}]);}[_0x5086bf(0x896)](_0x4d6600){const _0x2e37f0=_0x5086bf;return this['_n'](_0x2e37f0(0x896),[_0x4d6600],![]);}[_0x5086bf(0x293)](_0x177a18,_0x3458b7){const _0x4e2814=_0x5086bf;return this['_n'](_0x4e2814(0x6e2),[_0x177a18,_0x3458b7],![]);}[_0x5086bf(0x778)](_0x3fcb1d){const _0x1b44de=_0x5086bf;return this['_n'](_0x1b44de(0x456),[_0x3fcb1d],![]);}async[_0x5086bf(0x4af)](_0x2c90b0){const _0x599b83=_0x5086bf;return this['_n'](_0x599b83(0x354),[_0x2c90b0],![]);}async[_0x5086bf(0x22a)](_0x29b9c8,_0x2e9815={}){const _0x5b3ce5=_0x5086bf;return this['_n'](_0x5b3ce5(0x1bd),[_0x29b9c8,_0x2e9815],![]);}async[_0x5086bf(0x163)](_0x4a6ca3,_0x5b6054){const _0x21d5c0=_0x5086bf;return this['_n'](_0x21d5c0(0x58e),[_0x4a6ca3,_0x5b6054],![]);}async['describeChunk'](_0x4150dc,_0x1ac021,_0x5704b8,_0x2a8824){const _0x5c4ebf=_0x5086bf;if(_0x4150dc!=null&&typeof _0x4150dc[_0x5c4ebf(0x1ac)]!=='function')throw _0x47e8e4(_0x5c4ebf(0x6fe),'a\x20string',_0x4150dc);if(!_0x4150dc||!_0x5704b8)return null;return this['okdb'][_0x5c4ebf(0x406)](_0x5c4ebf(0x422),null,'describeChunk',[_0x4150dc,_0x1ac021,_0x5704b8,_0x2a8824??null],![]);}async[_0x5086bf(0x692)](_0x21dbad,_0x4a5bf4,_0x9b0af8={}){const _0x1fb330=_0x5086bf,_0x51926f={..._0x9b0af8};if(_0x51926f[_0x1fb330(0x6c5)])_0x51926f[_0x1fb330(0x6c5)]=Array[_0x1fb330(0x170)](_0x51926f[_0x1fb330(0x6c5)]);return this['_n']('durableMarkDone',[_0x21dbad,_0x4a5bf4,_0x51926f]);}async[_0x5086bf(0x180)](_0x36ad6b,_0x33b492,_0x3dae4f,_0x3eb855={}){return this['_n']('durableMarkFail',[_0x36ad6b,_0x33b492,_0x3dae4f,_0x3eb855]);}async[_0x5086bf(0x506)](_0x134297,_0x10ecf9){const _0x1f3fee=_0x5086bf;return this['_n'](_0x1f3fee(0x506),[_0x134297,_0x10ecf9]);}async[_0x5086bf(0x62e)](_0x40c781,_0x11b392){return this['_n']('durableRetryDoc',[_0x40c781,_0x11b392]);}async[_0x5086bf(0x250)](_0x254844,_0x434a4f={}){const _0x193381=_0x5086bf;return this['_n'](_0x193381(0x250),[_0x254844,_0x434a4f]);}async[_0x5086bf(0x662)](_0x549b1e){const _0x22b7a2=_0x5086bf;return this[_0x22b7a2(0x321)]('durableRebuild',[_0x549b1e]);}async[_0x5086bf(0x687)](_0x8d2a9e){const _0x3044a6=_0x5086bf;return this['_n'](_0x3044a6(0x6c7),[_0x8d2a9e],![]);}[_0x5086bf(0x18c)](_0x32effb){const _0x30b263=_0x5086bf;return this['_n'](_0x30b263(0x18c),[_0x32effb],![]);}[_0x5086bf(0x415)](){const _0x4543db=_0x5086bf;return this['_n'](_0x4543db(0x415),[],![]);}[_0x5086bf(0x73e)](_0xc83e0a,_0x348215){const _0x52a289=_0x5086bf,_0xe15869=this['_n'](_0x52a289(0x73e),[_0xc83e0a,_0x348215],![]);return _0xe15869==null?null:Float32Array[_0x52a289(0x170)](_0xe15869);}[_0x5086bf(0x32c)](_0x4d8f9d,_0x2f238f){return this['_n']('resolveModelDims',[_0x4d8f9d,_0x2f238f??null],![])??undefined;}async['registerModel'](_0x355c8d,_0x148afa,_0x1c3ec0,_0x42f34c=''){return this['_n']('registerModel',[_0x355c8d,_0x148afa,_0x1c3ec0,_0x42f34c]);}[_0x5086bf(0x5db)](_0x405792=null){const _0x127b80=_0x5086bf;return this['_n'](_0x127b80(0x5db),[_0x405792],![]);}['listProviders'](){const _0x187e7f=_0x5086bf;return this['_n'](_0x187e7f(0x7a1),[],![]);}async[_0x5086bf(0x62c)](_0xb4d34c,_0x195567){const _0x32f4cb=_0x5086bf;return this['_n'](_0x32f4cb(0x728),[_0xb4d34c,_0x195567],![]),this[_0x32f4cb(0x21e)][_0x32f4cb(0x248)]('~'+_0xb4d34c+':emb:'+_0x195567);}async[_0x5086bf(0x18a)](_0x4521ec,_0x3bf9a4){const _0x1e6749=_0x5086bf;return await this[_0x1e6749(0x62c)](_0x4521ec,_0x3bf9a4),{'adapter':_0x118d04=>this['_makeLazyVectorAdapter'](_0x4521ec,_0x3bf9a4,_0x118d04)};}[_0x5086bf(0x6e5)](_0x1b88bf,_0x527d65,_0x3d53c6){const _0x56c523=this;return{async 'put'(_0x1e9aba,_0x31ed18){const _0x11e018=_0x3ebb;return _0x56c523['_n'](_0x11e018(0x5c6),[_0x1b88bf,_0x527d65,_0x3d53c6,_0x1e9aba,Array[_0x11e018(0x170)](_0x31ed18)]);},async 'remove'(_0x5485da){const _0x264259=_0x3ebb;return _0x56c523['_n'](_0x264259(0x41b),[_0x1b88bf,_0x527d65,_0x3d53c6,_0x5485da]);}};}get[_0x5086bf(0x818)](){const _0x12ae81=_0x5086bf,_0x44101a=this,_0x3ba801=()=>_0x44101a['_n'](_0x12ae81(0x43c),[],![]),_0x1f50c6=_0x552f3e=>{const _0x4cdfb6=_0x12ae81,_0x3a8acc=_0x2480b9=>_0x44101a['_n'](_0x4cdfb6(0x676),[_0x552f3e,_0x2480b9],![]);return{'name':_0x552f3e,'_evict':async()=>_0x3a8acc('evict'),'evict':async()=>_0x3a8acc(_0x4cdfb6(0x6fa)),'snapshot':async()=>_0x3a8acc(_0x4cdfb6(0x175)),'_snapshot':async()=>_0x3a8acc(_0x4cdfb6(0x175)),'rebuild':async()=>_0x3a8acc(_0x4cdfb6(0x574)),'stats':()=>_0x3a8acc('stats'),get 'count'(){return _0x3a8acc('count');},get 'loaded'(){return _0x3a8acc('loaded');}};};return{get 'size'(){const _0x1b825f=_0x12ae81;return _0x3ba801()[_0x1b825f(0x6cf)];},'has':_0x249ee2=>_0x3ba801()[_0x12ae81(0x1ac)](_0x249ee2),'get':_0x42f711=>_0x3ba801()[_0x12ae81(0x1ac)](_0x42f711)?_0x1f50c6(_0x42f711):undefined,'keys':()=>_0x3ba801()[Symbol[_0x12ae81(0x56e)]](),'values':()=>_0x3ba801()[_0x12ae81(0x1a7)](_0x1f50c6)[Symbol['iterator']](),[Symbol[_0x12ae81(0x56e)]]:()=>_0x3ba801()[_0x12ae81(0x1a7)](_0x577d07=>[_0x577d07,_0x1f50c6(_0x577d07)])[Symbol[_0x12ae81(0x56e)]]()};}async[_0x5086bf(0x898)](){}async['stop'](){const _0x41fc55=_0x5086bf;this['_n'](_0x41fc55(0x893),[]);}['_makePipelineApi'](_0x13f795,_0xc8d1a6,_0x5c5b56){const _0x33528c=_0x5086bf;return{'search':(_0x4e919f,_0x33774c={})=>{const _0x267e96=_0x3ebb,_0x9fcc49=this['search'](_0x13f795);if(!_0x9fcc49)throw new Error(_0x267e96(0x801)+_0x13f795+'\x22');return _0x9fcc49[_0x267e96(0x58c)](_0x4e919f,_0x33774c);},'searchDocs':(_0x2ea6aa,_0x2c8e02={})=>this[_0x33528c(0x191)](_0x13f795,_0x2ea6aa,_0x2c8e02),'flush':_0x1590fb=>{const _0x48563a=this['indexer'](_0x13f795);if(!_0x48563a)throw new Error('indexer\x20engine\x20not\x20running:\x20\x22'+_0x13f795+'\x22');return _0x48563a['flush'](_0x1590fb);},'stats':async()=>({'embedder':await this[_0x33528c(0x7b6)](_0xc8d1a6)?.['health']?.(),'indexer':await this['indexer'](_0x13f795)?.['stats']?.(),'worker':await this[_0x33528c(0x217)](_0x5c5b56)?.[_0x33528c(0x5e6)]?.(),'search':await this[_0x33528c(0x58c)](_0x13f795)?.[_0x33528c(0x5e6)]?.()})};}}return embeddings={'OKDBEmbeddings':_0x5b6221,'ENGINE_TYPES':_0x59b008},embeddings;}var auth,hasRequiredAuth;function requireAuth(){const _0x58b32b=_0x2ec26e;if(hasRequiredAuth)return auth;hasRequiredAuth=0x1;const {invalidArgument:_0x148aba}=requireErrors();class _0x5c82b0{constructor(_0x5f0eee){this['okdb']=_0x5f0eee;}['_n'](_0x5b16e1,_0x106da4=[],_0x18a8d9=![]){const _0x4dd7e8=_0x3ebb;return this[_0x4dd7e8(0x21e)][_0x4dd7e8(0x49e)](_0x4dd7e8(0x1e2),null,_0x5b16e1,_0x106da4,_0x18a8d9);}['_nm'](_0x27410e,_0xb27ad0=[]){const _0x27499e=_0x3ebb;return this[_0x27499e(0x21e)][_0x27499e(0x406)](_0x27499e(0x1e2),null,_0x27410e,_0xb27ad0,![]);}get[_0x58b32b(0x182)](){return this['_n']('mode');}get[_0x58b32b(0x361)](){return this['_n']('isSetupMode');}get[_0x58b32b(0x807)](){const _0x19432c=_0x58b32b;return this[_0x19432c(0x21e)][_0x19432c(0x66a)][_0x19432c(0x1e2)]?.[_0x19432c(0x745)]||{};}['isOAuthEmailAllowed'](_0x26b8fe){const _0x241491=_0x58b32b;return this['_n'](_0x241491(0x7b9),[_0x26b8fe??null]);}[_0x58b32b(0x723)](_0x1e9555){const _0x35518d=_0x58b32b;return this['_n'](_0x35518d(0x58a),[_0x1e9555??null]);}[_0x58b32b(0x802)](_0x168620){const _0x3d418a=_0x58b32b;return this['_n'](_0x3d418a(0x65b),[_0x168620??null]);}['_isBootstrap'](){const _0x4bef82=_0x58b32b;return this['_n'](_0x4bef82(0x352));}[_0x58b32b(0x71d)](){const _0x53361a=_0x58b32b;return this['_n'](_0x53361a(0x71d));}['getAuthOptions'](){const _0x52f76b=_0x58b32b;return this['_n'](_0x52f76b(0x49b));}['issueToken'](_0x81b706){const _0x1f7ff9=_0x58b32b;return this['_n'](_0x1f7ff9(0x396),[_0x81b706]);}[_0x58b32b(0x4a3)](_0x41bd64){const _0x1b70b7=_0x58b32b;return this['_n'](_0x1b70b7(0x4a3),[_0x41bd64]);}[_0x58b32b(0x3e4)](_0x2b1e66){const _0x1309c2=_0x58b32b;if(_0x2b1e66!=null&&typeof _0x2b1e66!==_0x1309c2(0x4bb))throw _0x148aba(_0x1309c2(0x334),_0x1309c2(0x6f3),_0x2b1e66);return this['_n'](_0x1309c2(0x3e4),[_0x2b1e66??null]);}async[_0x58b32b(0x82c)](){const _0x21e97f=_0x58b32b;return this['_n'](_0x21e97f(0x602),[],!![]);}async[_0x58b32b(0x419)](_0x5182f0){const _0x23fbce=_0x58b32b;return this['_n'](_0x23fbce(0x639),[_0x5182f0]);}async[_0x58b32b(0x19e)](_0x5a035e){const _0x70e3fa=_0x58b32b;return this['_n'](_0x70e3fa(0x846),[_0x5a035e]);}async[_0x58b32b(0x475)](_0x1cd8e8){const _0x53d820=_0x58b32b;return this['_n'](_0x53d820(0x183),[_0x1cd8e8]);}async[_0x58b32b(0x47f)](_0x98178b){const _0x1ce0b0=_0x58b32b,_0x36f6b7=_0x98178b?.[_0x1ce0b0(0x594)]||{};return this['_n'](_0x1ce0b0(0x47f),[{'remoteAddress':_0x98178b[_0x1ce0b0(0x3f9)]?.['remoteAddress']??null,'internal':_0x98178b?.[_0x1ce0b0(0x162)]?.['internal']===!![],'authorization':_0x36f6b7[_0x1ce0b0(0x5a4)]??null,'cookies':_0x98178b?.[_0x1ce0b0(0x57a)]??{}}]);}async[_0x58b32b(0x6ac)](_0x2e71e3,_0x81423d){const _0x371efa=_0x58b32b;return this[_0x371efa(0x321)](_0x371efa(0x6ac),[_0x2e71e3??null,_0x81423d??null]);}async['loginSelect'](_0x46a0ab,_0x287232,_0x3e745e){return this['_nm']('loginSelect',[_0x46a0ab??null,_0x287232??null,_0x3e745e??null]);}[_0x58b32b(0x69f)](){const _0xec7d23=_0x58b32b;return this['_n'](_0xec7d23(0x69f));}[_0x58b32b(0x6f6)](){const _0x5dec77=_0x58b32b;return this['_n'](_0x5dec77(0x6f6));}['createLoginState'](_0x2fc8d5={},_0x8ca27c=0x927c0){const _0x10b854=_0x58b32b;return this['_n'](_0x10b854(0x36c),[_0x2fc8d5,_0x8ca27c]);}[_0x58b32b(0x750)](_0x516f0e){const _0x243534=_0x58b32b;return this['_n'](_0x243534(0x750),[_0x516f0e]);}async[_0x58b32b(0x2ad)](_0x1ae3a0,_0x26ec20={}){const _0x329f0d=_0x58b32b;return this['_nm'](_0x329f0d(0x59c),[_0x1ae3a0,_0x26ec20]);}async[_0x58b32b(0x3a3)](_0x1ef473={}){const _0x2a068f=_0x58b32b;return this['_nm'](_0x2a068f(0x638),[_0x1ef473]);}[_0x58b32b(0x307)](_0x553f52){const _0x41415f=_0x58b32b;return this['_n'](_0x41415f(0x36d),[_0x553f52]);}}return auth={'OKDBAuth':_0x5c82b0},auth;}var sync,hasRequiredSync;function requireSync(){const _0x583d15=_0x2ec26e;if(hasRequiredSync)return sync;hasRequiredSync=0x1;const {RawDb:_0x57a270}=requireRawdb();class _0x556ae0{constructor(_0x4847ca){this['_s']=_0x4847ca;}get[_0x583d15(0x7de)](){const _0x47c9ec=_0x583d15;return this[_0x47c9ec(0x34b)]||(this[_0x47c9ec(0x34b)]=new _0x57a270(this['_s'][_0x47c9ec(0x21e)]['_systemEnv'],'__sync:acks'));}[_0x583d15(0x7c5)](){const _0x330962=_0x583d15;return this[_0x330962(0x7de)];}['_ensureDbs'](){const _0x41e865=_0x583d15;return this[_0x41e865(0x7de)];}['_n'](_0x509113,_0x43e343=[]){const _0xe38bd=_0x583d15;return this['_s']['_n'](_0xe38bd(0x1a1)+_0x509113,_0x43e343);}[_0x583d15(0x44c)](_0x9e4d4a,_0x1ec5c4){const _0x223cd9=_0x583d15;return this['_n'](_0x223cd9(0x44c),[_0x9e4d4a,_0x1ec5c4]);}async['forceResync'](_0x56ae61){const _0x3394ac=_0x583d15;return this['_n'](_0x3394ac(0x5d2),[_0x56ae61]);}[_0x583d15(0x4bf)](){const _0x4f2d52=_0x583d15;return this['_n'](_0x4f2d52(0x4bf));}[_0x583d15(0x528)](_0x21c410){const _0x3f0aed=_0x583d15;return this['_n'](_0x3f0aed(0x528),[_0x21c410]);}async['runGc'](){const _0x43324b=_0x583d15;return this['_n'](_0x43324b(0x4a8));}[_0x583d15(0x1c2)](){return this['_n']('getStatus');}[_0x583d15(0x898)](){return this['_n']('start');}['stop'](){return this['_n']('stop');}get['_gcTimer'](){try{return this['_n']('timerArmed')?{}:null;}catch{return null;}}}class _0x41c7e7{constructor(_0x2c4dc1){const _0xa8c2b0=_0x583d15;this[_0xa8c2b0(0x21e)]=_0x2c4dc1,this['gc']=new _0x556ae0(this);const _0x32f059=this;this[_0xa8c2b0(0x66a)]=new Proxy({},{'get':(_0x56d787,_0x7deb83)=>typeof _0x7deb83===_0xa8c2b0(0x4bb)?_0x32f059['_n'](_0xa8c2b0(0x66a))[_0x7deb83]:undefined,'set':(_0x530ab2,_0x403e97,_0x459b82)=>{const _0x43a0a5=_0xa8c2b0;if(_0x403e97==='address')_0x32f059['_n'](_0x43a0a5(0x2c8),[_0x459b82??null]);else{if(_0x403e97===_0x43a0a5(0x35a))_0x32f059['_n'](_0x43a0a5(0x6ee),[_0x459b82??null]);else{if(_0x403e97==='delta_limit')_0x32f059['_n'](_0x43a0a5(0x38b),[_0x459b82]);}}return!![];},'ownKeys':()=>Object[_0xa8c2b0(0x1d5)](_0x32f059['_n'](_0xa8c2b0(0x66a))),'getOwnPropertyDescriptor':(_0x175c8a,_0x57004c)=>({'enumerable':!![],'configurable':!![],'value':_0x32f059['_n'](_0xa8c2b0(0x66a))[_0x57004c]}),'has':(_0x4013dd,_0x21a38f)=>_0x21a38f in _0x32f059['_n'](_0xa8c2b0(0x66a))});}['_n'](_0x56f2aa,_0x426c89=[],_0x290397=![]){const _0xb0025a=_0x583d15;return this[_0xb0025a(0x21e)][_0xb0025a(0x49e)]('sync',null,_0x56f2aa,_0x426c89,_0x290397);}[_0x583d15(0x321)](_0x5948a6,_0x435680=[]){const _0xe4797c=_0x583d15;return this[_0xe4797c(0x21e)][_0xe4797c(0x406)]('sync',null,_0x5948a6,_0x435680,!![]);}get[_0x583d15(0x8aa)](){const _0x3ea788=_0x583d15;return this['_pdb']||(this[_0x3ea788(0x1d4)]=new _0x57a270(this[_0x3ea788(0x21e)][_0x3ea788(0x851)],'__sync:peer_state'));}[_0x583d15(0x5ab)](){const _0x371c51=_0x583d15;return this[_0x371c51(0x8aa)];}get['syncLock'](){const _0x205f63=_0x583d15;return this[_0x205f63(0x772)]||(this[_0x205f63(0x772)]=new(requireLock())[(_0x205f63(0x828))](this[_0x205f63(0x21e)],_0x205f63(0x8a3),_0x205f63(0x5f3),{'ttlMs':0x7530}));}get[_0x583d15(0x78f)](){const _0x357072=_0x583d15;return this['_n'](_0x357072(0x66a))['address'];}get['_clockListener'](){const _0x99f624=_0x583d15;return this[_0x99f624(0x21e)][_0x99f624(0x60a)]&&this['_n']('drives')?{}:null;}get[_0x583d15(0x672)](){return this['_clockListener'];}get[_0x583d15(0x38a)](){const _0x17e397=_0x583d15;return this['_n'](_0x17e397(0x849))?.[_0x17e397(0x4be)];}get[_0x583d15(0x628)](){const _0x3fdabe=_0x583d15;return this['_n'](_0x3fdabe(0x849))?.[_0x3fdabe(0x7ce)];}['info'](){const _0x194456=_0x583d15;return this['_n'](_0x194456(0x7c6));}[_0x583d15(0x433)](){const _0x25a27f=_0x583d15;return this['_n'](_0x25a27f(0x433));}get[_0x583d15(0x1a8)](){const _0x150f06=_0x583d15;return this[_0x150f06(0x6cc)]||(()=>this['_n']('peers'));}set[_0x583d15(0x1a8)](_0x42e870){const _0x15a0a2=_0x583d15;this[_0x15a0a2(0x6cc)]=typeof _0x42e870===_0x15a0a2(0x6d8)?_0x42e870:null,this['_n'](_0x15a0a2(0x4f7),[this['__peers']]);}[_0x583d15(0x4ff)](){return this['_n']('listPeers');}async[_0x583d15(0x460)](){const _0x492632=_0x583d15;return this[_0x492632(0x321)](_0x492632(0x460));}async[_0x583d15(0x4b3)](_0x175850){const _0x3af779=_0x583d15;return this[_0x3af779(0x321)](_0x3af779(0x4b3),[_0x175850]);}async[_0x583d15(0x40e)](_0x2d1fdc,_0x5ce206={}){const _0x5dc626=_0x583d15;return this['_nm'](_0x5dc626(0x171),[_0x2d1fdc,_0x5ce206]);}[_0x583d15(0x893)](){return this['_n']('stop');}[_0x583d15(0x6c4)](){const _0x20be0c=_0x583d15;return this['_n'](_0x20be0c(0x6c4));}async[_0x583d15(0x6c3)](_0x8caa55,_0x426789={}){const _0x5555f3=_0x583d15;return this['_n'](_0x5555f3(0x6c3),[_0x8caa55,_0x426789],!![]);}async[_0x583d15(0x5e9)](_0x35fb29){return this['_n']('removeLink',[_0x35fb29],!![]);}[_0x583d15(0x174)](_0x25f2b8){const _0x59f52b=_0x583d15;return this['_n'](_0x59f52b(0x811),[_0x25f2b8]);}[_0x583d15(0x3b9)](_0x44eaef){const _0x512518=_0x583d15;return this['_n'](_0x512518(0x30d),[_0x44eaef]);}async[_0x583d15(0x671)](_0x323af2,_0x3fb314,_0x318132={}){return this['_n']('setPeerState',[_0x323af2,_0x3fb314,_0x318132]);}async['_ensurePeerState'](_0x1c9178){const _0x19d040=_0x583d15;return this['_n'](_0x19d040(0x28c),[_0x1c9178]);}async['_ensure'](){return this['_n']('ensure',[],!![]);}async[_0x583d15(0x615)](_0x8c357){const _0x1d08a4=_0x583d15;return this['_n'](_0x1d08a4(0x615),[_0x8c357],!![]);}async[_0x583d15(0x3d2)](_0x220308,_0x1fa691={}){const _0x5bb876=_0x583d15;return this[_0x5bb876(0x321)]('join',[_0x220308,_0x1fa691]);}async[_0x583d15(0x89b)](_0x1c6ae1={},_0x558139={}){return void _0x1c6ae1['~system'],this['_n']('calculateDelta',[_0x1c6ae1,_0x558139]);}async[_0x583d15(0x817)](_0x472ce6,_0x27dcef,_0xd03737,_0x37e889){const _0x11e1e9=_0x583d15;return this['_nm'](_0x11e1e9(0x817),[_0x472ce6,_0x27dcef,_0xd03737,_0x37e889??null]);}async[_0x583d15(0x446)](_0x244852,_0x3663c1,_0xaccda3={}){const _0x18f0d3=_0x583d15;return this[_0x18f0d3(0x321)](_0x18f0d3(0x446),[_0x244852,_0x3663c1,_0xaccda3]);}[_0x583d15(0x3d1)](_0x2155d0,_0x112818=null){const _0x250d65=_0x583d15;return this['_n'](_0x250d65(0x185),[_0x2155d0,_0x112818?_0x112818['name']:null]);}[_0x583d15(0x6b4)](_0x5d6c84,_0x3cc081=null){const _0x35db8d=_0x583d15;return this['_n'](_0x35db8d(0x6b4),[_0x5d6c84,_0x3cc081?_0x3cc081[_0x35db8d(0x6fe)]:null],!![]);}}return sync={'OKDBSync':_0x41c7e7},sync;}var migrate,hasRequiredMigrate;function requireMigrate(){const _0x35fb94=_0x2ec26e;if(hasRequiredMigrate)return migrate;hasRequiredMigrate=0x1;const {optionsArg:_0x3cc182}=requireErrors(),_0x3f5f4c=require$$0,_0x1ed096=require$$4,_0x49a99d=0x40*0x400;async function _0x30a5c9(_0x551aff,_0x4e9a3b){const _0x490951=_0x3ebb;for(let _0x13572b=0x0;_0x13572b<_0x4e9a3b[_0x490951(0x6cf)];){let _0x248e69=Math[_0x490951(0x5a9)](_0x4e9a3b['length'],_0x13572b+_0x49a99d);if(_0x248e69<_0x4e9a3b[_0x490951(0x6cf)]){const _0x1c1238=_0x4e9a3b['indexOf'](0xa,_0x248e69-0x1);_0x248e69=_0x1c1238===-0x1?_0x4e9a3b['length']:_0x1c1238+0x1;}const _0x42f174=_0x551aff['write'](_0x4e9a3b[_0x490951(0x5df)](_0x13572b,_0x248e69));_0x13572b=_0x248e69;if(!_0x42f174)await new Promise(_0x24a3f9=>_0x551aff[_0x490951(0x874)]('drain',_0x24a3f9));await new Promise(_0x315cc9=>setImmediate(_0x315cc9));}}async function _0x29ebc5(_0x47a8c2){const _0xcb20b=_0x3ebb,_0x33fc05=[];for await(const _0x5929cf of _0x47a8c2)_0x33fc05[_0xcb20b(0x2fb)](Buffer[_0xcb20b(0x292)](_0x5929cf)?_0x5929cf:Buffer[_0xcb20b(0x170)](_0x5929cf,_0xcb20b(0x496)));return Buffer['concat'](_0x33fc05);}class _0x23b375{constructor(_0x2a78c7){this['okdb']=_0x2a78c7;}['_n'](_0x3c70aa,_0x24246d){const _0x15424d=_0x3ebb;return this[_0x15424d(0x21e)]['_call'](_0x15424d(0x622),null,_0x3c70aa,_0x24246d,!![]);}async[_0x35fb94(0x656)](_0x9680d9,_0x4d0fc6={}){const _0x196c00=_0x35fb94,{data:_0x2dcad1,stats:_0x1dca99}=this['_n']('exportBuf',[_0x4d0fc6]);return await _0x30a5c9(_0x9680d9,Buffer[_0x196c00(0x170)](_0x2dcad1)),_0x1dca99;}async[_0x35fb94(0x441)](_0x55df16,_0x2e5594={}){const _0xe6119d=_0x35fb94;_0x3f5f4c[_0xe6119d(0x756)](_0x1ed096[_0xe6119d(0x19d)](_0x55df16),{'recursive':!![]});const _0x2d142c=_0x3f5f4c[_0xe6119d(0x752)](_0x55df16),_0xfb3bee=await this[_0xe6119d(0x656)](_0x2d142c,_0x2e5594);return await new Promise((_0x3c4f00,_0x2d02c8)=>{const _0x76e107=_0xe6119d;_0x2d142c[_0x76e107(0x330)](),_0x2d142c[_0x76e107(0x874)](_0x76e107(0x7ee),_0x3c4f00),_0x2d142c[_0x76e107(0x874)](_0x76e107(0x254),_0x2d02c8);}),{..._0xfb3bee,'filePath':_0x55df16};}async[_0x35fb94(0x88b)](_0x585892,_0x356398={}){const _0x269152=_0x35fb94,{data:_0x19e0ae,stats:_0x54f0fa}=this['_n'](_0x269152(0x541),[_0x356398]);return await _0x30a5c9(_0x585892,Buffer['from'](_0x19e0ae)),_0x54f0fa;}async['importFromStream'](_0x408476,_0x1e9cd4={}){const _0x355af4=_0x35fb94,_0x634b67=await _0x29ebc5(_0x408476),{onProgress:_0x42deb0,..._0x564f90}=_0x1e9cd4,_0x5e011a=this['_n'](_0x355af4(0x3e1),[_0x634b67,_0x564f90]);if(typeof _0x42deb0==='function')_0x42deb0({'type':null,'count':_0x5e011a[_0x355af4(0x53d)]});return _0x5e011a;}async[_0x35fb94(0x43f)](_0x4dc137,_0x2b8119={}){const _0x3dd756=_0x35fb94;return this['importFromStream'](_0x3f5f4c[_0x3dd756(0x717)](_0x4dc137,{'encoding':_0x3dd756(0x496)}),_0x2b8119);}async['backup'](_0x53da41,_0x33e45f={}){const _0x2bdbbb=_0x35fb94;return this['_n'](_0x2bdbbb(0x6ce),[_0x53da41,_0x33e45f]);}['backupRoot'](){return this['_n']('backupRoot',[]);}[_0x35fb94(0x443)](_0x8e2560){return this['_n']('resolveBackupDest',[_0x8e2560??null]);}async['export'](_0x40b977={}){return this['_n']('export',[_0x40b977]);}async[_0x35fb94(0x226)](_0x4429cf,_0x39c43a={}){const _0x57bbbd=_0x35fb94;return this['_n'](_0x57bbbd(0x226),[_0x4429cf,_0x39c43a]);}async[_0x35fb94(0x78b)](_0x13f3fe){const _0x4d37f5=_0x35fb94,{pretty:pretty=![]}=_0x3cc182(_0x13f3fe);return JSON[_0x4d37f5(0x4d2)](await this[_0x4d37f5(0x56d)](),null,pretty?0x2:0x0);}async[_0x35fb94(0x503)](_0x1335b5){const _0x402b8f=_0x35fb94;return this[_0x402b8f(0x226)](JSON['parse'](_0x1335b5));}[_0x35fb94(0x413)](){const _0x587128=_0x35fb94;if(!this[_0x587128(0x21e)][_0x587128(0x8a5)][_0x587128(0x63c)]('default')?.[_0x587128(0x6be)])throw new Error(_0x587128(0x489));}async[_0x35fb94(0x7cb)](_0x22b277){const _0x13e837=_0x35fb94;return this[_0x13e837(0x413)](),this['_n']('exportBlobs',[_0x22b277]);}async[_0x35fb94(0x2c4)](_0x29d18d){const _0x1fe636=_0x35fb94;return this[_0x1fe636(0x413)](),this['_n'](_0x1fe636(0x2c4),[_0x29d18d]);}[_0x35fb94(0x204)](){const _0x546b9a=_0x35fb94;return this['_n'](_0x546b9a(0x607),[])[_0x546b9a(0x1a7)](_0x3bb787=>this[_0x546b9a(0x21e)][_0x546b9a(0x30b)](_0x3bb787));}async['validateBlobIntegrity'](){const _0x93b31b=_0x35fb94;return this[_0x93b31b(0x413)](),this['_n']('validateBlobIntegrity',[]);}async[_0x35fb94(0x37d)](){const _0x27348f=_0x35fb94;return this[_0x27348f(0x413)](),this['_n']('repairBlobRefs',[]);}}return migrate={'OKDBMigrate':_0x23b375},migrate;}function _0x1561(){const _0x195a9c=['length','queue:clear-progress','__logsDb','pushEphemeral','stopView','preparer\x20must\x20be\x20a\x20function','\x27\x20already\x20registered','emit','ms/','function','~files','checkSignals','unresolveField','_locks','view:progress','bucket\x20too\x20long','__tokenSecret','tierList','ctxRelease','durableEngineDoc','listFtsEnvs','refill_amount','_makeLazyVectorAdapter','timer','invalid\x20job.status:\x20','describeTypeDetailed','changeToClockDb','select','_enqueueInTxn','dir','logCap\x20must\x20be\x20null\x20or\x20integer\x20in\x20[','setToken','quarantinedEnvs','reject','MINIMUM_KEY','~ttl:expiry','a\x20string','Too\x20many\x20concurrent\x20connections','_settle','getLoginConfig','sweepExpiredTTL','_np','cron','evict','registerBucketProjection','~sub','defaults','name','Cannot\x20set\x20enforce\x20schema\x20on\x20','TXN_INVALID_ACTION',';return\x20{','unref','_reconcile','createEngine','disableAll','SYSTEM_CLOCK_CHANGE','PLUGIN_ALREADY_REGISTERED','recordRun','_resolveKeys','system:env_release','\x20which\x20does\x20not\x20exist','release','applyInterestDelta','limitOf','_meta','percentile','chunk\x20strategy\x20must\x20be\x20a\x20function','Query\x20operator\x20\x22','_syncExpiresAtField','online','__notImplementedNative','INVALID_VALUE','createReadStream','reverse','failed','__ttlByKey','OKDBIndexNotRegisteredError','EMBED_PENDING','getOpenWarning','fromCharCode','getCursor','ensureFeed','_getFast','okdb-node:\x20unknown\x20bridge\x20op\x20','_isOpenForIp','load',':useReadTransaction','(source)\x20=>\x20{','EMBEDDER','ensureTypeEnv','getHistory','entries','scopedName','keyFor','holder','acquiredAt','return\x20fromCharCode(','action','Unknown\x20OKDB\x20transaction\x20error','Feature\x20not\x20licensed:\x20','_store','data','listTemplates','~queue_logs','job.claim_expires\x20must\x20be\x20number|null','\x22\x20not\x20found','_create','nativeBinaryPath','_setTTLEntry','allocUnsafeSlow','resetFts','getVector','awaitIdle','create','driver','stateInfo','family','bucket','oauth','samplePayloads','patch','code','targetType','quantum','blobPath','resolveField:\x20a\x20resolver\x20or\x20options.batch\x20is\x20required','inBatch','__lock','job.status_message\x20must\x20be\x20string|null','consumeLoginState','createAndStartEngine','createWriteStream','queue:reconciled','registerType','setCurrentDb','mkdirSync','isDeepStrictEqual','getBucket','pumping','queue:removed','okdb-','_write','txn:start','jsonrpcCode','setJobTypeSchema','\x20must\x20be\x20number','closeEnvLocally','functions','_sinks','dropIndex',',\x20source)\x0a\x09\x09}\x20else\x20{\x0a\x09\x09\x09if\x20(','ensure','getMaxBodyBytes','targetKey','_baselines','indexReady','prepareTxnEnqueue','advanceHlcOnRecv','DOC_STATUS_CHANGE','removeSync','assign','randomUUID','\x22)\x20before\x20open()','_syncLock','job_type.defaults.buckets\x20must\x20be\x20array|null','\x20document(s)\x20reference\x20it\x20with\x20onDelete:restrict','typeSubDbs','explainIndex','lock','_durableEmbedderInfo','typesDb','Unknown\x20transaction\x20action:\x20','_settled','_admissionStarted','session','return','encryption\x20key\x20function','encryption:key-changed','embedderCall','Unable\x20to\x20serialize\x20object\x20as\x20a\x20key:\x20','embeddings:indexer:doc:failed','guard','_onFeedChange','some','INVALID_PRIMARY_KEY','next','_formerOrigins','groupsDb','exportJSON','trim','INDEXER_DOC_QUEUED','getTemplate','address','_subsV2Obj','getMany','json','log','_adminRelay','allSettled','reencrypt:\x20env','_quantumGate','system:proc','doc','cursor','concat','callAsync','defineProperty','_noChangelog','details','setClaimGated','listProviders','schema:drop','~processes','listRoutes','pid','_update','pin','\x22\x20to\x20enable\x20it.','resolve','~ref_violations','_registerType','bucket.refill_amount\x20must\x20be\x20int\x20>=\x200','http.listen:\x20host\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20a\x20non-empty\x20array\x20of\x20non-empty\x20strings','snapshotScan','_typeKeys','ctrl','startNewEnginesFromSync','registerFts','sparse','compactLock','_deliver','embedder','registerIndex','log\x20entry\x20message\x20required','isOAuthEmailAllowed','_closedHandle','_rawTxnBuf','isNaN',':index','shift','INVALID_INDEX_KEY','proc','ctxHeartbeat',':txnRange','process(filter)','includeViolations','_openAckDb','info','_buf','label','ctxProgress','embeddings:indexer:ready','exportBlobs','OKDBForeignKeyDeleteError','resolution','publicKey','processor:\x20cannot\x20combine\x20a\x20closure\x20handler\x20with\x20module:{path,export}.\x20','ms\x20p99=','claimGated','getKeys','buildOwnRow','Map','INVALID_ARGUMENT','okdb_session','_patch','_wsettle','sessionId','_setTTL','removeResolver','sseSetHeader','Index\x20\x22','_ackDb','add','resetting','warn','_openEnvLazy','resetIndexBegin','TXN_ERROR','algorithm\x20is\x20gone','\x20does\x20not\x20exist','server','processRest()','hasUniqueViolations','exclusiveStart','MAX_SAFE_INTEGER','getIndexMeta','\x27:\x20','finish','guardSnapshotIterable','_viewState',')\x20+\x20readString(source)}','der','subscribe','node','_dedupeKey','setReadBuffer','transaction','reduce','killAll','listPath','kickOwnedBy','process\x20options.admission\x20must\x20be\x20a\x20function','getStats','clone','_onItem','14491881CmldNZ','vector-search\x20engine\x20not\x20running:\x20\x22','_isLoopbackIp','areIndexesReady','fromEntries','pipelines','allowUnsafe','_oauthConfig','job.','undefined','hasDriver','when','$all','isOrchestrator','claim_id','_rbuf','match','getNodeRecord','record','_report','definition','status_code','_statusEnv','fetchPeer','_localViews','compaction','ttlSetEntry','ttlStats','listNodes','(?:/(.*))?','$nin','replaceMember','value','HTTP_ERROR','default','txnUndone','processor:\x20quantum.module\x20must\x20be\x20a\x20string','forceAfterMs','_run','bus','NativeLock','_handlePoke','_ttlTimerAt','isRunning','_ensureTokensType','listRefViolations','_plugins','delete','regObject','\x20returned\x20no\x20key','setMode','\x20│\x20','job_type.payload_schema.definition\x20must\x20be\x20object','_set','retryJob','diag','exportName','type:registered','retry_delay','customReducerNames','markJobFail','crypto','getRaw','there\x20is\x20no\x20`http`\x20option\x20—\x20the\x20HTTP\x20server\x20exists\x20only\x20when\x20db.http.listen(port)\x20is\x20called','openDB','INDEX_NOT_REGISTERED','near','routes','Engine\x20template\x20build()\x20is\x20required:\x20','_sync','lookupByName','incoming','OKDBAlreadyExistsError','nodeKeys','noteListenAddr','TXN_INVALID_OPS','preview','interest','ttlTimer','boolean','INDEX_ALREADY_REGISTERED','_systemEnv','filter','call','\x22\x20not\x20found\x20in\x20~envs','\x27\x20did\x20not\x20return\x20a\x20valid\x20instance','symbol','enableAll','actions','queue:retry','readString\x20}','clearStuck','index:ready','_listenAddr','\x20documents\x20fail\x20validation','unregisterTarget','ies','replace','Can\x20not\x20serialize\x20key\x20of\x20type\x20','Cannot\x20register\x20plugins\x20after\x20start','tryClaimTokens','Database\x20already\x20opened/closed','\x22\x20must\x20return\x20{\x20embed(input):\x20Promise<Float32Array>\x20}','forgetDb','getAll','createPipeline','detachFeed','Engine\x20driver\x20type\x20must\x20be\x20a\x20non-empty\x20string','level','isEnabled','streamRead','BAD_EMBEDDER_FACTORY','loadedPath','clear','hook','_draining','once','usedBy','dup','_windowCbs','TXN_ENV_MISMATCH','stateNames','resolveData','_scheduleTTLSweep','_maxConnections','destroy','SYSTEM_STOPPED','_ttlByKey','SEARCH','processor:\x20module.path\x20is\x20required','ENGINE_INVALID_TYPE','job.max_tries\x20must\x20be\x20int\x20>=\x201,\x20null\x20(unlimited)\x20or\x20Infinity','_typesDb','changeEncryptionKey:\x20to','backoffUntil','async','tolerant','OKDBInvalidPrimaryKeyError','registerHandler:\x20fn\x20must\x20be\x20a\x20function','exportEnvsToStream','starting','Engine\x20template\x20id\x20must\x20be\x20a\x20non-empty\x20string','update','_handles','_defaultEnvObj','_asArray','created_at','stop','connectionCount','_rootDb','vectorSpace','\x22\x20tokens\x20must\x20be\x20>=\x201','start',']\x20already\x20maps\x20to\x20\x27','inspect','calculateDelta','values','_license','now','readFieldMany','index:progress','getFloat64','Buffer','~system','clearDefaultTTL','_envs','_log','_ensureDbs','ref','formerIds','_peerDb','pause','context','_durableIndexerDoc','flatMap','_flushDebounce','taken','charCodeAt','resolveField:\x20field\x20required','forEach','_clearTTL','_emitProc','a\x20non-empty\x20string','INACTIVE','_logEnv','setMaxBodyBytes','from','reconcilePeerPull','retryable','resetReadTxn','_getNodeRecord','snapshot','immediate','$defs','busState','removes','$lte','VERSION_MISMATCH','job\x20id\x20required','meanwhile\x20—\x20the\x20frozen\x20view\x20cannot\x20be\x20kept.\x20Materialize\x20synchronously\x20(e.g.\x20Array.from)\x20','Plugin\x20\x27','envName','durableMarkFail','geoQuery','mode','lookupAllByName','clearTtl','shouldApplyChange','setEncryptionKey','fromBufferKey','_quantum','catch','_ensureVectorStore','~log','vectorStoreStats','_doHooks','uploadTxn','\x27,\x20module)\x20(the\x20auto-adopted\x20shared-pool\x20form)\x20was\x20removed\x20in\x20okdb\x202.0:\x20okdb\x20no\x20longer\x20auto-runs\x20queue\x20handlers\x20(trusted\x20user\x20code\x20it\x20can\x27t\x20place).\x20Use\x20queue.process(\x27','describeAllTypesDetailed','searchDocs','\x27\x20is\x20already\x20registered','_debounceTimer','_ttlTimeout','dropType','processes','job.priority\x20must\x20be\x20int','Cannot\x20delete\x20','_macro','_rebuilding','logCap','OKDBNotFoundError','dirname','_lookupByName','handleResult','\x20must\x20be\x20','gc.','reidentify','stderr','_dupArg','engines','setCursor','map','peers','_features','SCHEMA_COLLECTION_INVALID','iterate','includes','_blobsDir','job.cron\x20must\x20be\x20string|null','dropped','modeApplied','$mod','storeGetDiffsInRange','ref:violation_resolved','head','validate','isSync','processor:\x20specify\x20exactly\x20one\x20of\x20handler:\x27<name>\x27\x20or\x20module:{path,export},\x20not\x20both','registerHandler:\x20name\x20must\x20be\x20a\x20non-empty\x20string','ALL_EVENTS','durability','_db','flushPoll','durableDocs','object','rows','validateRouteInput','_stopFor','getStatus','$gt','~processes:desired','detach','repair','notes','stor','status','ENGINE_DRIVER_MISSING_START','_indexBuilds','deleted','tries','started','enable','removeEnvironment','runStart','writerStatus','bus:proc','_pdb','keys','asyncIterator','system:stopped','nextExpiry','index:','$regex','failed_ttl','config','build','refreshThresholdMs','\x27\x20doesn\x27t\x20exist','resolvedFields','markJobComplete','auth','_indexBuild','geoConfig','STARTING','iterable','resolveField:\x20options.batchSize\x20must\x20be\x20a\x20positive\x20integer','Can\x20not\x20serialize\x20async\x20iterables\x20without\x20first\x20calling\x20resolving\x20asArray','MAXIMUM_KEY','FIELD_RESOLVER_PENDING','pinned\x20range\x20iterator\x20parked\x20across\x20an\x20await/turn\x20boundary\x20and\x20the\x20env\x20was\x20written\x20','_listening','stopWorkerBegin','initialize','useReadTransaction\x20read\x20view\x20expired:\x20the\x20snapshot\x20was\x20released\x20at\x20the\x20first\x20await/turn\x20','continueIteration','remote','$size','primaryOkdb','_facade','~log_entry','TXN_CLOSED','clearSync','1503427kodVXO','useVersions','args','outgoing','Database\x20not\x20started','isWorker','_closeEnvLocally','pumpEnvSync','job.finished\x20must\x20be\x20number|null','library\x20(okdb\x20node-model\x202.0).\x20For\x20multi-process\x20HTTP\x20serving\x20use\x20the\x20okdb\x20','bind','ctxLog','_allEnvsWithFiles','_buildOwnRow','files.upload:\x20id','onDelete','_closed','free','patchDeclaration','_cancelTTLTimeout','set_null','okdb.noFast','toISOString','_key','listViolations','\x20dropped\x20(buffer\x20full)','\x20actions=','onUndo','describeType','dataEnv','resetIndexFinish','worker','autoCompact','resetIndex','STOPPING','getPrototypeOf','find','markJobProgress','okdb','fts:','engineStart','size','attachFeed','Date','encryptionKeys','putSync','import','encoder','storeEnv','fts:reset','_durableIndexerDocs','inputSchema','embed','\x27\x20is\x20not\x20a\x20function','run','\x27\x20on\x20type\x20\x27','createWorker','_root','acquired','kind','unique','bucket.id\x20must\x20be\x20non-empty\x20string','hasEnv','no_action','locks','queue:clear-done','processorHold','getRunningEngine','claim\x20requires\x20non-empty\x20type','onWindow','callRows','max_concurrency','PLUGIN_DEPENDENCY_MISSING','2359998yMlklg','getJobType','markSnapshotComplete','created','\x22\x20requires\x20a\x20`handler`\x20function','\x0a\x09\x09let\x20','schema:set','_ensureEnv','TYPE_NOT_REGISTERED','_startClaimedSoon','job.tries\x20must\x20be\x20non-negative\x20int','item','_tx','1451620OKSYOT','bus:drain','durableRetryFailed','field:resolver_registered','__absent','typeStats','error','ITEM_REMOVE','_isClosedEnvError','type:','_blobStatusDb','_connections','__syncOverride','_waitNative','indexer','buckets','job.status_code\x20must\x20be\x20string|null','_timer','.\x20Only\x20primitives,\x20null,\x20Buffers,\x20and\x20arrays\x20are\x20allowed.\x20Got:\x20','getDefinition','bucketsDb','pressure','new','floor','ITEM_PENDING','getChanges','workers','maxBodyBytes','system','namespace','item:','QUERY_OPERATOR_FORBIDDEN','OKDBVersionMismatchError','batch','_callPacked','useReadTransaction','Algorithm\x20factory\x20must\x20be\x20a\x20function','process(entries,\x20options):\x20with\x20an\x20entries\x20array\x20the\x20handler\x20lives\x20in\x20each\x20entry\x20({\x20type,\x20handler,\x20…\x20});\x20the\x20second\x20argument\x20is\x20the\x20pool\x20options\x20object.','reg','BAD_HOST','connected','module','errors','DEFAULT_TTL_MS','claim','\x22\x20must\x20have\x20a\x20start()\x20method','txn','setInt32','getRun','put','version','paused','retry','Engine\x20driver\x20already\x20registered:\x20\x22','\x20was\x20removed\x20in\x20okdb\x202.0.\x20Use\x20processors:true\x20for\x20plain\x20lease\x20participation.\x20See\x20docs/upgrade-2.0.md.','job_type.payload_schema.enforce\x20must\x20be\x20boolean','_logChange','enqueue\x20txn\x20belongs\x20to\x20a\x20different\x20environment','ready','setFilter','_envWide','emitProc','ensurePeerState','createdBy','_remove','_compactLock','_keepAlive','_writer','isBuffer','_durableEngineDoc','_warnUnknownOptions','resumeJobType','busEmit','INDEXER_DOC_FAILED','_status','captureStackTrace','events','_assertOpen','_settleRead','hasNativeBatch','_enableChangelog','log\x20entry\x20fields\x20must\x20be\x20object|null','apply','index:registered','getPosition()\x20{\x20return\x20position\x20},','instance','tags\x20must\x20be\x20array\x20or\x20string','OKDBTypeAlreadyRegisteredError','_timerHandle','subscriptions','dataView','registerChunkStrategy','setStorageResolver','compact','setLogSink','_validateOidcAccessToken','_refIndexDb','algorithm\x20has\x20no\x20method\x20','then','job.error_stack\x20must\x20be\x20string|null','gcOrphanedBlobs','item:update','tick','req','finished','signal','application/octet-stream','$payload','storageStats','_timerObjs','previewTemplate','_pending','fts:drop','ensure:\x20type\x20is\x20required','byIndex','returnRecoverableErrors','reducer','job_type.defaults.ttl\x20must\x20be\x20int\x20>=\x200\x20or\x20null','importBlobs','throw','_buckets','kick','setAddress','read','subscriptions-store:\x20addInterest\x20on\x20unknown\x20session\x20','8jQLJqn','isIndex','commit','bucket.tokens\x20cannot\x20exceed\x20capacity','job_type.defaults.','getSchema','stopAutoCompactCheck','message','removeJobLogsAfterCommit','schema','body','INVALID_SCHEMA','inline','hasIndex','stopped','_drain','\x20=\x20finishUtf8(','__warned','pinned','heartbeat','docs','changeEncryptionKey','resetUnknownOptionsWarned','byLabel','system:bus_state_change','setProcessingConfig','job_type.defaults.backoff_multiplier\x20must\x20be\x20number\x20>=\x201\x20or\x20null','pump','getViolation','_ttlState','$not','_pendingOps','onLicenseExpired','getEntry','_push','root','getIndexStatus','job.buckets\x20must\x20be\x20array|null','restart','ingest','Environment\x20\x22','catalog','storeGetTotalHeadCount','emb','_changefeed','loop-lag','host','existsSync','push','_inlineClosureWarned','DONE','docEntry','RangeError','links','system:clock_change','stream','drop','off','Blob\x20not\x20found:\x20','test','_normalizeOAuthAuthResult','shutdownTimeout','itemsPlan','_cmd','env','isWanted','getPeerState','_resolveFilter','\x20>=\x200x80)\x20','toBufferKey','_role','setWake','_subscribed','max_tries','job_type.defaults.max_tries\x20must\x20be\x20int\x20>=\x201\x20or\x20null','turnWaiters','envSize','dbs','Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results','SCHEMA_VALIDATION_FAILED','setLogger','job.buckets[].tokens\x20must\x20be\x20int\x20>=\x201','storeEnvName','unique:violation','okdb.http.listen(port)\x20in\x20each\x20worker.','viewDb','_nm','_http','OKDBSchemaValidationError','dropping','maxExtra','hash','getBlobStatus','set','getTTL','startClaimed','newListener','resolveModelDims','assertQueryOptions','remoteAddress','refreshTtl','end','refill_every','nativeCode','$exists','header','_low','MCP_ERROR','_lock','list','flushQuantum','abort','puts','attachOKDB','offWindow','job_type.max_concurrency\x20must\x20be\x20int\x20>=\x201\x20or\x20null','WORKERS_REMOVED','_autoCompact','registerQuantum:\x20load\x20must\x20be\x20a\x20function','ceil','nextTick','feature','~queue_payloads','queue:log','bigint','refreshReadTxn','mean','_ttlCompositeKey','_ack','description','_running','dirty','Referenced\x20type\x20\x27','_kbuf','registerTemplate','isBootstrap','hasBody','durableStats','\x27\x20does\x20not\x20exist','maxConnections','admission','maxDbs','_startAdmission','token','materialize\x20them\x20(Array.from)\x20while\x20the\x20view\x20is\x20live.','cause','pending','UNKNOWN_RANGE_OPTION','license:activated','removeJobTypeSchema','isSetupMode','planUpdateJob','INDEXER','setTtl',':\x20not\x20implemented\x20in\x20the\x20native\x20build\x20yet','key','getTypeCount','refItemsDbs','boundary\x20(a\x20pinned\x20read\x20txn\x20blocks\x20LMDB\x20free-page\x20reuse).\x20Do\x20all\x20consistent\x20reads\x20','changes','blobsDir','createLoginState','normalizeOAuthAuthResult','rollback','applyOps','api','maxMs','active','_cursors','db.workers\x20was\x20removed.\x20okdb\x20does\x20not\x20manage\x20processes\x20—\x20run\x20more\x20okdb\x20processes\x20(processors:true)\x20via\x20your\x20orchestrator;\x20the\x201-of-N\x20processor\x20lease\x20load-balances\x20across\x20them.\x20See\x20docs/upgrade-2.0.md.','_changeToClockDb','_pendingLocal','_claimGated','settledTickets','_blobPath','_writeBlob','event','inNativeCall','repairBlobRefs','Use\x20module:{path,export}\x20alone,\x20or\x20handler:\x27<name>\x27\x20for\x20a\x20built-in.','embeddings:indexer:doc:done','range','inflight','registerModule','rowKey','removed','markJobHeartbeat','_put','subscriptions-store:\x20open()\x20not\x20called','ensure:\x20view\x20entry\x20missing\x20name\x20or\x20definition','dropSchema','_nodePrivateKey','setDeltaLimit','INDEXER_DOC_DONE','_dedupeMax','authOpen','__blobStatusDb','bucket.refill_every\x20must\x20be\x20int\x20>=\x200','err','CLI\x20(`okdb\x20listen`),\x20or\x20use\x20Node\x27s\x20built-in\x20`cluster`\x20module\x20and\x20call\x20','removeEventListener','removeTxn','vector-search','issueToken','setTTL','job.backoff_multiplier\x20must\x20be\x20number\x20>=\x201','clockToChangeDb','resolveField:\x20options.batch\x20must\x20be\x20a\x20function','properties','byteLength','path','_callRows','_ttlParseComposite','_undoHooks','pokeHandler','startAutoCompactCheck','_getOidcDiscovery','txn:rollback','note','_fail','job.tag\x20must\x20be\x20string|null','ms\x20max=','index','resetView','_registrations','ensure:\x20fts\x20entry\x20missing\x20name\x20or\x20fields','_readerCheckInterval','_logsDb','registerQuantum:\x20name\x20must\x20be\x20a\x20non-empty\x20string','an\x20environment\x20name','_range','enforce','emitClearDone','TXN_ROLLBACK','done','okdb-node:\x20a\x20background\x20async\x20handler\x20rejected:\x20','processorsStop','recomputeFields','_getPeerState','_flushTimer','\x20===\x204)\x0a\x09\x09\x09\x09','_afterDurable','invalid\x20job_type.status:\x20','exports','exists','_desired','array','count','enableNullTermination','extend','$in','retryFailed','hasType','storeGetHeadCount','_blobStream','job\x20type\x20must\x20be\x20object','_started','debounceTimer','sweepOrphanLogs','committed','DEFAULT_EVENTS','$near','_shouldApplyChange','join','runtimeDeclarations','ITEM_UPDATE','~proc:state','FOREIGN_KEY_VIOLATION','registerQuantum','BAD_ALGORITHM_FACTORY','\x27,\x20fn)\x20for\x20an\x20in-process\x20consumer,\x20or\x20run\x20a\x20consumer\x20on\x20another\x20node/host\x20you\x20launch\x20—\x20all\x20claim\x20the\x20same\x20durable\x20jobs\x20exactly\x20once\x20(CAS).\x20See\x20docs/upgrade-2.0.md.','listen','endIndex','sseClose','unique:violation_resolved','\x27,\x20cannot\x20map\x20to\x20\x27','handleDurableClock','REVERSE_INDEX','importBuf','autoCompactState','metaDb','parseBearer','removeListener','files.registerExtractor:\x20extractor\x20must\x20be\x20a\x20function','max','processor','Unique\x20constraint\x20violated\x20on\x20','ENGINE_INVALID_TEMPLATE','describeIndexes','mapError','handleError','true','REF_VIOLATION_RESOLVED','attach','_modeApplied','compression','_pressure','afterTurn','compare','payload','_read','split','socket','getRange','index:reset','_isFar','stack','stopAll','balanced','ONLINE','for','relay:error','mcp','setKick','syncBlobs','_callMacro','isSnapshotComplete','_closeReadTransaction','processors','\x20>\x204)\x20{\x0a\x09\x09\x09if\x20(','_ttlBackoffUntil','sync:apply','toJSON','_reconcilePeer','isInteger','msg',':\x20key\x20[','reducers','_assertFiles','enqueue','listVectorStores','registerEmbedderFactory','writeKey','OKDBUniqueConstraintError','_lookupByTokenHash','_info','vecRemove','state','processorsParticipating','embedder\x20is\x20gone','_release','OKDBError','HTTP_CLUSTER_REMOVED','embeddings','tryAcquire','_jsSchemas','~queue_jobs','isReader','_txnIdAtSnapshot','processor:progress','_buffer','tags','_writerWatchdogInterval','flush','createQueryTester','SESSION_TYPE_INDEX','remove','fetch','QUEUE_WORKER_REMOVED','_addr','getSelfNode','setPosition(p)\x20{\x20position\x20=\x20p\x20},','attachConsole','getCount','role','listIndexKeys','ttl:set','aborted','getUniqueViolations','localViewNames',')\x0a\x09\x09}\x0a\x09\x09',':\x20expected\x20','importFromFile','job\x20must\x20be\x20object','exportToFile','IPv6','resolveBackupDest','_id','indexContent','fetchRemoteDelta','\x20(required\x20by\x20','$pending','http','done_ttl','prefetch','recordPeerAck','_attached','timestamp','_ttlByExpiry','LICENSE_FEATURE_DISABLED','_sweepInProgress','bucket.capacity\x20must\x20be\x20int\x20>=\x200','pauseJobType','alg','prototype','durableEmbedderInfo','fetchJson','\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer','listBuckets','getRefViolation','asArray','__okdb','_ringSize','getClock','scheduled','reconcile','~ttl:key','effective','ttl',',\x20got\x20','updated_at','getMeta','bucket\x20id\x20required','reencrypt','queue:enqueued','getInt32','system:env-sync','runtimeState','clearScan','SYSTEM_POKE','node:perf_hooks','bucket\x20must\x20be\x20object','engine\x20api\x20has\x20no\x20method\x20\x27','storage\x20adapter\x20is\x20gone','Unsupported\x20transaction\x20action:\x20','Engine\x20template\x20kind\x20must\x20be\x20\x22engine\x22\x20or\x20\x22pipeline\x22:\x20','_lookupAllByName','runDrop','HIGH_SENTINEL','Embedder\x20factory\x20for\x20\x22','workerState','trunc','meta','readHashRange','sha256','pinned\x20range\x20iterator\x20held\x20across\x20an\x20await/turn\x20boundary.\x20This\x20surface\x20cannot\x20resume\x20','authenticateRequest','addInterest','dropAll','ERROR','clearTTL','upload','unknown\x20promise\x20token','before\x20any\x20await,\x20chunk\x20with\x20{limit,\x20start,\x20exclusiveStart},\x20or\x20drop\x20snapshot:true.','createEmbedder','node:util','files\x20feature\x20not\x20available','resolvedOptions','~file:blob_status','running','_getRaw','disable','hlc','countByIndex','__fts:','fts','logChange','typeId','durableTierLag','utf8','lastTxnId','must\x20be\x20an\x20object;\x20got\x20null','$eq','whenSettled','getAuthOptions','_markSeen','listRuns','_call','$streamId','Invalid\x20onDelete\x20rule\x20\x27','_isReader','getBinary','authenticateToken','TypeError','items','listJobTypes','cascade','runGc','2320235SYOxRm','handle','sourceType','txnDone','compareKeys','\x20=\x20source[position++]\x0a\x09\x09\x09else\x0a\x09\x09\x09\x09return\x20fromCharCode(','_durableIndexerStats','system:type_drop','_refCache','_admissionTimer','reconcilePeer','flushDebounce','engineStop',':keyToChange','_seen','_uid','_onPending','quarantined','string','(no\x20unambiguous\x20bookmark)\x20—\x20consume\x20it\x20in\x20one\x20synchronous\x20block:\x20materialize\x20(e.g.\x20','cursorKey','privateKey','getPeerAcks','_customReducers','_tids','node:cluster','Index\x20\x27','empty\x20string','registerAlgorithmFactory','dims','isWellFormed','\x22\x20tokens\x20too\x20large','_onStop','write','storeHasDiff','_build','NOT_FOUND','embedBatch','_settleWaiters','closeSession','compiled','stringify','refs','Embedder\x20factory\x20must\x20be\x20a\x20function','_busFacade','\x20references\x20','_pokeHandler','clock','claim_expires','job.type\x20must\x20be\x20non-empty\x20string','status_message','FTS_READY_TIMEOUT','_envSyncStop','registerDriver','reset','OKDBProcessor','chunks','embeddings:doc:status_change','view','_jsFactories','fts:registered','Engine\x20template\x20must\x20be\x20a\x20plain\x20object','_getType','_readViewExpired','encryptionKey','getFast','_unknownOptionsWarned','\x27\x20export\x20\x27','_detachConsole','getUniqueViolation','fail','useReadTransaction\x20range\x20consumed\x20after\x20the\x20creation\x20turn\x20—\x20the\x20consistent\x20view\x20was\x20','~lock','_setKey','_wrap','getUint32','isBun','killWorker','setPeersFn','License\x20limit\x20exceeded:\x20','_envIndexDb','compact/repair\x20already\x20in\x20progress\x20for\x20this\x20environment','addEventListener','resetCursor','_defaultEnv','write\x20batch:\x20missing\x20result','_listPeers','onDone','authenticated','setMaxListeners','importJSON','_okdbAdminAttached','_drainOne','durableMarkDelete','queue.worker(\x27',';\x20got\x20','releaseClaim','[log-sink]\x20','types','$gte','invalid\x20log\x20level:\x20','getJobLogs','_processorStops','sortedDb','OKDB','/([^/]+)','readField','sourceKey','_detachLogSink','signalWant','ref:violation','storeGetConfig','__cmd','cancelJob','itemsDb','_handlePending','_subscribeEvent','has','_env','indexStats','pauseAllAndDrain','bootSyncedViewsInline','bootSyncedEngines','\x20=\x20source[position++]\x0a\x09\x09if\x20(','__desired','_keyListener','Transaction\x20already\x20closed','getGcHorizon','getEmbedderFactory','nextTurn','_stream','bucket.updated\x20must\x20be\x20number','hybridQuery','$ref','_keyFns','_tokenSecret','processor:retry','_handlerName','instanceTimerArmed','offset','job_type.defaults\x20must\x20be\x20object|null','wake','envPath','Error','system:drain','_lazyPinned','_wb','RELAY_FULL','records','getResolvedOptions','turn','raw','exportEnvsBuf','registerReducer','failures','resumeAllAfterDrain','ctxEmit','autoCompactTimerArmed','itemsGroups','port','Symbol.asyncIterator','cleanup','flushMaxWait','references','timeMachine','isActive','bucket\x20\x22','callBatch','announceEnqueued','uninstallEngine','replaceInterests','PUT','continueOnRecoverableError','ctxSignal','drivers','listening','durableCursorFloor','uninstall','listBlobStatus','_settleWrite','childTransaction','removeJob','params','_bootLog','_workers','$type','job_type.id\x20must\x20be\x20non-empty\x20string','\x22\x20is\x20used\x20by:\x20','isTypeEmpty','bootRuntime','envNames','ttl:expired','assertStartAllowed','waiting','drain','_retryPending','export','iterator','restrict','OKDBInvalidIndexKeyError','ENCRYPTION_KEY_REQUIRED','__ttlByExpiry','setSchema','rebuild','prefix','onDo','_commitSessionMutation','creating','bootLogMark','cookies','SKIP','txn\x20op\x20must\x20be\x20an\x20object\x20or\x20tuple','storeGetDiffs','updated','OKDBForeignKeyError','enabled','utf8Write','txnId','getStateAt','$and','index:drop','system:ready','getByPrefix','_sub','error_stack','isOpenForIp','__ref_index','search','unpin','durableDoc','_advanceHlcOnRecv','payload_schema','TXN_INVALID_OP','setUint32','admin','headers','process','IPv4','servers','addJobType','ttlState','PLUGIN_NAME_CONFLICT','_listeners','validateOidcAccessToken','emitWarning','_feed','CREATED','node:events','close','job.bucket_tokens\x20must\x20be\x20int\x20>=1','hasChangelog','authorization','_blobStatusTxn','hasOwnProperty','Type\x20\x27','apiCall','min','_isExpired','_openLocalPeerDb','getLegacyCursor','readKey','updateBucket','handler','sweepExpired','unpack','OKDBTypeNotRegisteredError','ttlMs','target','job_type.defaults.priority\x20must\x20be\x20int\x20or\x20null','patchConfig','queue:failed','_detachLog','envs','\x22\x20on\x20\x22','getRecord','_pumper','orchestrator','_rebuild','_path','\x22\x20is\x20not\x20allowed\x20(it\x20evaluates\x20code);\x20use\x20declarative\x20operators\x20instead','number','node:stream','ensureDesired','SUB_ENV','_ensureDesired','vecPut','fieldPath','ms\x20mean=','job_type.defaults.retry_delay\x20must\x20be\x20int\x20>=\x200\x20or\x20null','slice','hasApi','listTTL','job','_viewCache','ensureType','reason','_emit','forceResync','processor:resumed','backoff_multiplier','runRecord','node:crypto','FOREIGN_KEY_DELETE_RESTRICTED','writeBlob','toFixed','tag','listModels','$or','addSSE','item:remove','subarray','embeddings:indexer:flushed','Engine\x20driver\x20for\x20\x22','ttl:clear','turns','bumpVersion','detachConsole','stats','item:pending','digest','removeLink','updateJob',':data','~fts:envs','resume','STOPPED','isFinite','localViewStats','license:added','assertCreateAllowed','sync','existing','_ensure','~queue_buckets','isHeld','duplicate\x20bucket:\x20','storeEnvPath','__stateDb','reconcileDesired','Key\x20is\x20too\x20large','dedupeMax','flushTicket','\x22\x20must\x20be\x20a\x20plain\x20object','inFlight','queue','ensureTokensType','removeBucket','lastError','Server','getIndex','envsWithFiles','removeJobType','constructor','_isOpen','_onPoke','isCoordinator','bus:poke','licenses','getDefaultTTL','stopHandle','bus:type_drop','vec:','fields','halted','patchSelf','listAlgorithms','selfKey','getValues','registerTarget','spec','failJob','371OKWpAT','license','_nextExpiry','OKDBNotImplementedNativeError','Expected\x20catch\x20callback\x20to\x20be\x20a\x20function','ITEM_CREATE','migrate','embeddings:strategy:registered','flushed','_reconcileDesired','open','_hybridQuery','_nodePublicKey','ftsQuery','views','freeze','_ensureTypeEnv','OKDBInvalidValueError','durableRetryDoc','_txnBuf','gen','job.tags\x20must\x20be\x20array','drainDeadlineMs','@harperdb/extended-iterable:skip','\x20already\x20exists','limits','_assertRangeOptions','getEmbedderSchema','getOidcDiscovery','lookupByTokenHash','\x22\x20is\x20not\x20registered','__adminRelay','get','registerExtractor','TXN_END','processor:ready','appendJobLog','CHANGEFEED_QUANTUM','processor:paused','READER_HELD_ACROSS_AWAIT','pop','INVALID_STATE','_staticCall','_OPTION_HINTS','_handle','bootSyncedPipelines','nidFor','tokens','compactStorage','getJob','\x20of\x20env\x20\x22','stopping','$within','ringSize','__HOLD__','~engines','openEnv','setModeApplied','exportToStream','claimed','capacity','Referenced\x20key\x20\x27','field\x20resolver\x20request\x20still\x20pending','isLoopbackIp','_teardownNative','debug','REF_VIOLATION','pipelineFamily','clearAsync','queue:done','durableRebuild','job_type.payload_schema\x20must\x20be\x20object|null','use\x20engines.registerDriver()','query','_subsV2','\x27\x20does\x20not\x20exist\x20in\x20type\x20\x27','msgpackr','setDefaultTTL','options','processorsStatus','endsWith','lmdb','idempotency_key','_readBuf','OKDBIndexAlreadyRegisteredError','_setPeerState','_pokeListener','type','uninstalled','child','viewOp','~emb:models','createSearch','sseSend','bus:env_release','buildStep','_tickCallback','addBucket','TXN_START','byteOffset','embeddings:indexer:doc:queued','log\x20entry\x20fields\x20too\x20large\x20(>2KB\x20serialized)','lockHeld','createIndexer','completeJob','engine:','install','_durableWorkerStats','change','priority','node:fs','drainJobType','registerViewReducer','no\x20write\x20has\x20landed.\x20Writes/commit\x20are\x20unaffected.','native','nodeKey','register','dupSort','durableMarkDone','TYPE_ALREADY_REGISTERED','BAD_PARAM','limit','bootSyncedViews','lastIndexOf','setPrototypeOf','clearDone','use','null','STARTED','HTTP\x20server\x20already\x20running','isArray','getSecurityNotices','T_SESSION','summary','REMOVE','materializer','listTypes','doesExist','released\x20at\x20the\x20first\x20await/turn\x20boundary.\x20Consume\x20ranges\x20before\x20any\x20await,\x20or\x20','144984gfLzfL','intervalTimer','granId','__ttlCancelledGen','11020464vkohHT','login','createEnvironment','log\x20entry\x20must\x20be\x20a\x20string\x20or\x20object','encodeInto','readTransaction','_handleInProcess','listRecords','relay','applyChange','enforced','buffer','queue:rescheduled','_scheduleFlush','valuesForKey','group','ms\x20busy=','FTS_FLUSH_TIMEOUT','_native','files','$lt','WriteBatch','.\x20Valid:\x20','fingerprint','upsertLink','listLinks','vector','orchestratorStarted','durableWorkerStats','startsWith','bucket_tokens','embed-worker','embeddings:pipeline:ready','__peers','inclusiveEnd','backup'];_0x1561=function(){return _0x195a9c;};return _0x1561();}var mcp,hasRequiredMcp;function requireMcp(){const _0x4262e8=_0x2ec26e;if(hasRequiredMcp)return mcp;hasRequiredMcp=0x1;class _0x484d52{constructor(_0x5d5772){this['okdb']=_0x5d5772,this['clients']=new Map();}['_n'](_0x29f30b,_0x4b3552){const _0x44b425=_0x3ebb;try{return this[_0x44b425(0x21e)][_0x44b425(0x49e)](_0x44b425(0x403),null,_0x29f30b,_0x4b3552,!![]);}catch(_0x5b4866){if(_0x5b4866&&_0x5b4866[_0x44b425(0x748)]===_0x44b425(0x336)&&_0x5b4866[_0x44b425(0x79f)]){if(_0x5b4866[_0x44b425(0x79f)][_0x44b425(0x75e)]!==undefined)_0x5b4866[_0x44b425(0x75e)]=_0x5b4866['details']['jsonrpcCode'];_0x5b4866['details']=_0x5b4866[_0x44b425(0x79f)]['details'],_0x5b4866[_0x44b425(0x748)]=undefined;}throw _0x5b4866;}}['_tools'](){return this['_n']('tools',[]);}async[_0x4262e8(0x49e)](_0x16129d,_0x2373ce={}){const _0x3f972e=_0x4262e8;return this['_n'](_0x3f972e(0x853),[_0x16129d??null,_0x2373ce??{}]);}async[_0x4262e8(0x648)](_0x581ca6,_0x385009={}){const _0x2f8738=_0x4262e8;return this['_n'](_0x2f8738(0x4aa),[_0x581ca6,_0x385009??{}]);}['_initialize'](_0x3685a8){const _0xe22795=_0x4262e8;return this['_n'](_0xe22795(0x1ee),[_0x3685a8??null]);}}return mcp={'OKDBMcp':_0x484d52},mcp;}var sys,hasRequiredSys;function requireSys(){const _0x273bb8=_0x2ec26e;if(hasRequiredSys)return sys;hasRequiredSys=0x1;function _0x22d7a5(_0x50edfd,_0x1065a7,_0x606e87){const _0x2d92dd=_0x3ebb,_0x280ca5={};for(const [_0x3364a1,_0x568aa0]of Object[_0x2d92dd(0x72a)](_0x606e87)){_0x280ca5[_0x3364a1]=_0x568aa0===_0x2d92dd(0x887)?async(..._0x26b9d9)=>_0x50edfd['_call'](_0x1065a7,null,_0x3364a1,_0x26b9d9):(..._0x2f5f2f)=>_0x50edfd[_0x2d92dd(0x49e)](_0x1065a7,null,_0x3364a1,_0x2f5f2f,![]);}return _0x280ca5;}const _0x28c8b7=['listTypes','isType',_0x273bb8(0x214),'describeAllTypes','listIndexes',_0x273bb8(0x2cc),_0x273bb8(0x2ef),'describeIndex',_0x273bb8(0x3eb),_0x273bb8(0x253),_0x273bb8(0x520),_0x273bb8(0x6e8),_0x273bb8(0x190),'meta',_0x273bb8(0x367),'getIndexCount',_0x273bb8(0x565),_0x273bb8(0x803),_0x273bb8(0x776),_0x273bb8(0x3b8),_0x273bb8(0x438)],_0x96e58e={'add':'async','activate':_0x273bb8(0x887),'remove':_0x273bb8(0x887),'list':'sync','get':_0x273bb8(0x5f3),'effective':_0x273bb8(0x5f3)},_0x39b10f={'open':_0x273bb8(0x887),'register':'async','buildOwnRow':_0x273bb8(0x5f3),'_buildProcessingFacet':_0x273bb8(0x5f3),'reportThreadStats':_0x273bb8(0x5f3),'clearThreadStats':_0x273bb8(0x5f3),'emitProc':'sync','addSupervisedChild':'async','removeSupervisedChild':'sync','updateSupervisedChildStats':_0x273bb8(0x5f3),'publishChildRow':_0x273bb8(0x887),'putNode':'async','removeNode':_0x273bb8(0x887),'nodeDead':_0x273bb8(0x5f3),'listNodes':_0x273bb8(0x5f3),'reap':_0x273bb8(0x887),'publishOwnRow':_0x273bb8(0x887),'deregisterSelf':'async','setOwnMeta':_0x273bb8(0x5f3),'noteListenAddr':'sync','hasDesired':_0x273bb8(0x5f3),'getDesired':'sync','setDesired':_0x273bb8(0x887),'listDesired':'sync','getCmd':_0x273bb8(0x5f3),'bumpCmd':'async','processingStatusView':_0x273bb8(0x5f3),'processorsView':_0x273bb8(0x5f3),'clusterStatusView':_0x273bb8(0x5f3),'nodesView':_0x273bb8(0x5f3),'treeView':'sync','getProcess':_0x273bb8(0x5f3),'runtimeProcessesView':_0x273bb8(0x5f3)};function _0x109b3a(_0x36ea56){const _0x3af01a=_0x273bb8,_0x290fda={},_0x40d886=_0x19668d=>_0x19668d&&typeof _0x19668d===_0x3af01a(0x1be)&&!Array[_0x3af01a(0x69e)](_0x19668d)&&typeof _0x19668d[_0x3af01a(0x6fe)]===_0x3af01a(0x4bb)?_0x19668d[_0x3af01a(0x6fe)]:_0x19668d;for(const _0x40d9f2 of _0x28c8b7)_0x290fda[_0x40d9f2]=_0x40d9f2===_0x3af01a(0x3b8)?async(..._0x24c712)=>_0x36ea56['_call'](_0x3af01a(0x47b),null,_0x40d9f2,_0x24c712[_0x3af01a(0x1a7)](_0x40d886),!![]):(..._0x5a14ee)=>_0x36ea56['_call'](_0x3af01a(0x47b),null,_0x40d9f2,_0x5a14ee['map'](_0x40d886),![]);return _0x290fda;}function _0xcd0419(_0x27c69b){const _0x22ff6c=_0x22d7a5(_0x27c69b,'licenses',_0x96e58e);return _0x22ff6c;}function _0x55d214(_0xfbac20){const _0x1f0a89=_0x273bb8,_0x576a7b=()=>_0xfbac20[_0x1f0a89(0x60e)][_0x1f0a89(0x462)](),_0xff0ae4=_0x596aaf=>_0x596aaf[_0x1f0a89(0x209)]?{..._0x596aaf,'_isFree':!![]}:_0x596aaf;return{async 'addLicense'(_0x52de77){const _0x4235c9=_0x1f0a89;return _0xfbac20[_0x4235c9(0x60e)][_0x4235c9(0x7df)](_0x52de77);},async 'reload'(){},async 'recheck'(){},get 'active'(){const _0x4ac83b=_0x1f0a89,_0x15c2ef=_0x576a7b();return _0x15c2ef[_0x4ac83b(0x209)]?null:_0x15c2ef;},get 'effective'(){return _0xff0ae4(_0x576a7b());},'hasLimit'(_0x8cc3b0){const _0x32cceb=_0x1f0a89,_0x1846a9=_0x576a7b();if(!_0x1846a9[_0x32cceb(0x6b5)])return![];const _0x220ac2=_0x1846a9[_0x32cceb(0x635)]?.[_0x8cc3b0];return!(_0x220ac2===null||_0x220ac2===undefined||_0x220ac2===0x0);},'isFeatureEnabled'(_0xeb724e){const _0x4cee44=_0x576a7b();return!_0x4cee44['enforced']||!!_0x4cee44['features']?.[_0xeb724e];},'assertFeature'(_0xca05ea){const _0x2e0411=_0x1f0a89,_0x578e54=_0x576a7b();if(!_0x578e54[_0x2e0411(0x6b5)]||_0x578e54['features']?.[_0xca05ea])return;const {OKDBError:_0x22f67d}=requireErrors(),_0x3096e2=_0x578e54[_0x2e0411(0x209)]?'Feature\x20not\x20available\x20on\x20free\x20tier:\x20'+_0xca05ea+'.\x20Add\x20a\x20license\x20that\x20includes\x20\x22'+_0xca05ea+_0x2e0411(0x7a8):_0x2e0411(0x732)+_0xca05ea+'.\x20The\x20active\x20license\x20does\x20not\x20enable\x20\x22'+_0xca05ea+'\x22.';throw new _0x22f67d(_0x3096e2,_0x2e0411(0x450),{'feature':_0xca05ea});},'assertLimit'(_0x5e2827,_0x358635){const _0x157486=_0x1f0a89,_0x40c3d9=_0x576a7b();if(!_0x40c3d9[_0x157486(0x6b5)])return;const _0x8c9984=_0x40c3d9[_0x157486(0x635)]?.[_0x5e2827];if(_0x8c9984===null||_0x8c9984===undefined||_0x8c9984===0x0)return;if(_0x358635>=_0x8c9984){const {OKDBError:_0x296ea6}=requireErrors();throw new _0x296ea6(_0x157486(0x4f8)+_0x5e2827+'\x20('+_0x358635+'/'+_0x8c9984+')','LICENSE_LIMIT_EXCEEDED',{'limit':_0x5e2827,'current':_0x358635,'max':_0x8c9984});}},'listLicenses'(){const _0x5de828=_0x1f0a89;return _0xfbac20[_0x5de828(0x60e)][_0x5de828(0x338)]();},'getPins'(){const _0x2581d3=_0x1f0a89;return _0xfbac20[_0x2581d3(0x60e)]['list']()[_0x2581d3(0x1a7)](_0x55131f=>({'licenseId':_0x55131f['id'],'pin':_0x55131f[_0x2581d3(0x673)]===_0x2581d3(0x626)?null:_0x55131f[_0x2581d3(0x7a7)]}));}};}function _0x50018a(_0x13d3b6){const _0x58d459=_0x273bb8,_0x210d85=_0x22d7a5(_0x13d3b6,'processes',_0x39b10f);Object[_0x58d459(0x79d)](_0x210d85,_0x58d459(0x617),{'get':()=>_0x13d3b6[_0x58d459(0x49e)](_0x58d459(0x196),null,_0x58d459(0x617),[],![])}),Object[_0x58d459(0x79d)](_0x210d85,_0x58d459(0x383),{'get':()=>_0x13d3b6[_0x58d459(0x49e)](_0x58d459(0x196),null,_0x58d459(0x383),[],![])}),_0x210d85[_0x58d459(0x85d)]=null;const _0x55fa6c=_0x210d85['noteListenAddr'];_0x210d85[_0x58d459(0x84a)]=_0x383f47=>{const _0x64bf5c=_0x58d459;return _0x210d85[_0x64bf5c(0x85d)]=_0x383f47,_0x55fa6c(_0x383f47);};const _0x410d4e=()=>_0x210d85[_0x58d459(0x81c)]()[_0x58d459(0x1a7)](_0x2d921e=>({'key':_0x2d921e[_0x58d459(0x68f)],'value':_0x2d921e,'version':0x1})),_0x22189a={'name':_0x58d459(0x7a3),'_sync':![],'_isOpen':!![],'isProcessStore':!![],'hasType':_0x507745=>_0x507745===_0x58d459(0x7f4),'getRange':_0x500739=>_0x500739===_0x58d459(0x7f4)?_0x410d4e()[Symbol[_0x58d459(0x56e)]]():[][Symbol['iterator']](),'getKeys':_0x9b6ef7=>_0x9b6ef7===_0x58d459(0x7f4)?_0x410d4e()['map'](_0x2830cd=>_0x2830cd[_0x58d459(0x366)])[Symbol[_0x58d459(0x56e)]]():[][Symbol[_0x58d459(0x56e)]](),'getValues':_0x3634d3=>_0x3634d3===_0x58d459(0x7f4)?_0x410d4e()[_0x58d459(0x1a7)](_0x445c5c=>_0x445c5c[_0x58d459(0x820)])[Symbol['iterator']]():[][Symbol[_0x58d459(0x56e)]](),'get':(_0x43ce1f,_0x5a26e8)=>_0x43ce1f===_0x58d459(0x7f4)?_0x410d4e()[_0x58d459(0x21c)](_0x2ebbc2=>_0x2ebbc2[_0x58d459(0x366)]===_0x5a26e8)?.[_0x58d459(0x820)]:undefined,'getCount':_0x162d08=>_0x162d08===_0x58d459(0x7f4)?_0x410d4e()['length']:0x0};Object[_0x58d459(0x79d)](_0x210d85,_0x58d459(0x816),{'get':()=>_0x13d3b6[_0x58d459(0x49e)](_0x58d459(0x196),null,'statusOpen',[],![])?_0x22189a:null});const _0x3c8026=_0x210d85[_0x58d459(0x626)];_0x210d85[_0x58d459(0x626)]=async _0x3eb1f6=>{const _0xd1c632=_0x58d459;return await _0x3c8026(_0x3eb1f6),_0x210d85[_0xd1c632(0x816)];},_0x210d85[_0x58d459(0x5c5)]=()=>_0x13d3b6[_0x58d459(0x49e)]('processes',null,_0x58d459(0x5c3),[],!![]);const {RawDb:_0x2173a2}=requireRawdb();return Object['defineProperty'](_0x210d85,_0x58d459(0x3c0),{'get':()=>_0x13d3b6[_0x58d459(0x851)]?_0x210d85[_0x58d459(0x525)]||=new _0x2173a2(_0x13d3b6[_0x58d459(0x851)],_0x58d459(0x1c4)):undefined}),Object[_0x58d459(0x79d)](_0x210d85,_0x58d459(0x30a),{'get':()=>_0x13d3b6[_0x58d459(0x851)]?_0x210d85[_0x58d459(0x519)]||=new _0x2173a2(_0x13d3b6[_0x58d459(0x851)],'~processes:cmd'):undefined}),_0x210d85[_0x58d459(0x54e)]=()=>_0x13d3b6[_0x58d459(0x49e)](_0x58d459(0x196),null,_0x58d459(0x54e),[],![]),Object[_0x58d459(0x79d)](_0x210d85,'_isWriter',{'get':()=>_0x13d3b6['_call'](_0x58d459(0x196),null,'isWriter',[],![])}),Object[_0x58d459(0x79d)](_0x210d85,_0x58d459(0x4a1),{'get':()=>_0x13d3b6[_0x58d459(0x49e)](_0x58d459(0x196),null,_0x58d459(0x426),[],![])}),_0x210d85[_0x58d459(0x205)]=()=>_0x13d3b6['_call']('processes',null,_0x58d459(0x7d3),[],![]),_0x210d85[_0x58d459(0x16b)]=(_0x2f36dc,_0x9a87fc)=>_0x13d3b6[_0x58d459(0x49e)]('processes',null,_0x58d459(0x28b),[_0x2f36dc,_0x9a87fc],![]),_0x210d85;}return sys={'makeMeta':_0x109b3a,'makeLicenses':_0xcd0419,'makeLicenseChecker':_0x55d214,'makeProcesses':_0x50018a},sys;}var okdbLogger,hasRequiredOkdbLogger;function requireOkdbLogger(){const _0x4c2366=_0x2ec26e;if(hasRequiredOkdbLogger)return okdbLogger;hasRequiredOkdbLogger=0x1;const _0x35db1a={'debug':0xa,'info':0x14,'warn':0x1e,'error':0x28};class _0x5834c0{constructor(_0x152133){const _0xb1de71=_0x3ebb;this['okdb']=_0x152133,this[_0xb1de71(0x763)]=new Set(),this['_meta']={};}[_0x4c2366(0x675)](_0x2829c2){const _0x18ed2b=_0x4c2366,_0x583e18=new _0x5834c0(this['okdb']);return _0x583e18[_0x18ed2b(0x763)]=this[_0x18ed2b(0x763)],_0x583e18['_meta']={...this[_0x18ed2b(0x70f)],..._0x2829c2},_0x583e18;}[_0x4c2366(0x3f0)](_0x17abf3){const _0xdf6b9d=_0x4c2366;return this[_0xdf6b9d(0x763)][_0xdf6b9d(0x7df)](_0x17abf3),()=>this[_0xdf6b9d(0x763)][_0xdf6b9d(0x82f)](_0x17abf3);}['attachConsole'](){const _0x222c04=_0x4c2366,_0x6755d2=_0x35db1a[process.env.OKDB_LOG_LEVEL]??_0x35db1a[_0x222c04(0x7c6)];return this[_0x222c04(0x4ed)]=this[_0x222c04(0x3f0)](({level:_0x580ff3,msg:_0x15b28c,meta:_0x255e05,context:_0x5b757b,ts:_0x2666f2})=>{const _0x4890f6=_0x222c04;if((_0x35db1a[_0x580ff3]??_0x35db1a['info'])<_0x6755d2)return;if(_0x255e05?.[_0x4890f6(0x344)]===_0x4890f6(0x762)&&(_0x580ff3===_0x4890f6(0x7c6)||_0x580ff3===_0x4890f6(0x65d)))return;const _0x2bb351=_0x580ff3==='error'?console[_0x4890f6(0x254)]:_0x580ff3===_0x4890f6(0x7e1)?console[_0x4890f6(0x7e1)]:_0x580ff3===_0x4890f6(0x7c6)?console[_0x4890f6(0x7c6)]:console[_0x4890f6(0x793)],_0x4fddf6=_0x255e05&&Object[_0x4890f6(0x1d5)](_0x255e05)['length']>0x0;_0x4fddf6||_0x5b757b!==undefined?_0x2bb351(new Date(_0x2666f2)['toISOString'](),_0x15b28c,..._0x4fddf6?[_0x255e05]:[],..._0x5b757b!==undefined?[_0x5b757b]:[]):_0x2bb351(new Date(_0x2666f2)[_0x4890f6(0x20e)](),_0x15b28c);}),this[_0x222c04(0x4ed)];}[_0x4c2366(0x5e5)](){const _0xf83cef=_0x4c2366;this[_0xf83cef(0x4ed)]&&(this[_0xf83cef(0x4ed)](),this[_0xf83cef(0x4ed)]=null);}[_0x4c2366(0x33c)](_0x227f41,_0x276780){const _0x18fd15=_0x4c2366,_0x11d731=require$$0$4,_0xd558d6=0x1f4,_0x376709=Number(process.env.OKDB_LOG_FLUSH_MS)||0x3e8;let _0x22a447=[],_0x407ee0=0x0,_0x4b9f7c=null;const _0x518758=()=>{const _0x42ea50=_0x3ebb;_0x4b9f7c=null;if(_0x22a447[_0x42ea50(0x6cf)]===0x0)return;const _0x5b35d4=_0x22a447;_0x22a447=[],_0x407ee0>0x0&&(_0x5b35d4['push']({'ts':Date[_0x42ea50(0x89e)](),'level':_0x42ea50(0x7e1),'msg':_0x42ea50(0x50a)+_0x407ee0+'\x20log\x20entr'+(_0x407ee0===0x1?'y':_0x42ea50(0x860))+_0x42ea50(0x211),'feature':'log','node':_0x276780,'context':null}),_0x407ee0=0x0),_0x227f41[_0x42ea50(0x27c)](_0x3476c5=>{const _0x45d799=_0x42ea50;for(const _0x355ab5 of _0x5b35d4)_0x3476c5[_0x45d799(0x27f)](_0x45d799(0x1f5),_0x11d731[_0x45d799(0x770)](),_0x355ab5);})[_0x42ea50(0x189)](()=>{});},_0x1b928a=this[_0x18fd15(0x3f0)](({level:_0x832a98,msg:_0x350dc7,meta:_0xc2ae3f,context:_0x403ed2,ts:_0x29f1a1})=>{const _0x301d89=_0x18fd15;if(_0x832a98==='debug')return;_0x22a447['length']>=_0xd558d6&&(_0x407ee0++,_0x22a447[_0x301d89(0x7be)]()),_0x22a447[_0x301d89(0x2fb)]({'ts':_0x29f1a1,'level':_0x832a98,'msg':_0x350dc7,'feature':_0xc2ae3f?.[_0x301d89(0x344)]??_0xc2ae3f?.[_0x301d89(0x277)]??null,'node':_0x276780,'context':_0x403ed2??null}),!_0x4b9f7c&&(_0x4b9f7c=setTimeout(_0x518758,_0x376709),_0x4b9f7c[_0x301d89(0x702)]?.());});return()=>{_0x1b928a();if(_0x4b9f7c)clearTimeout(_0x4b9f7c);_0x518758();};}[_0x4c2366(0x5d1)](_0x1ee779,_0x5c6195,_0x2c1254){const _0x595993=_0x4c2366;_0x5c6195 instanceof Error&&(_0x2c1254={'message':_0x5c6195[_0x595993(0x2d2)],'stack':_0x5c6195['stack'],..._0x2c1254},_0x5c6195=_0x5c6195[_0x595993(0x2d2)]);const _0x17aa03={'level':_0x1ee779,'msg':_0x5c6195,'meta':{...this[_0x595993(0x70f)]},'context':_0x2c1254,'ts':Date['now']()};try{this['okdb']['events'][_0x595993(0x6d6)](_0x595993(0x793),_0x17aa03);}catch{}for(const _0x4e88fe of this[_0x595993(0x763)]){try{_0x4e88fe(_0x17aa03);}catch{}}}[_0x4c2366(0x2f2)](_0x2006d3){const _0x15cbfb=_0x4c2366;try{this[_0x15cbfb(0x21e)]?.['events']?.[_0x15cbfb(0x6d6)](_0x15cbfb(0x793),_0x2006d3);}catch{}for(const _0xc771a1 of this[_0x15cbfb(0x763)]){try{_0xc771a1(_0x2006d3);}catch{}}}[_0x4c2366(0x7c6)](_0x2af69b,_0xeb0619){const _0x3e7bf3=_0x4c2366;this[_0x3e7bf3(0x5d1)](_0x3e7bf3(0x7c6),_0x2af69b,_0xeb0619);}[_0x4c2366(0x7e1)](_0x7ca106,_0x28b89a){const _0x250dcc=_0x4c2366;this[_0x250dcc(0x5d1)](_0x250dcc(0x7e1),_0x7ca106,_0x28b89a);}[_0x4c2366(0x254)](_0x3d830f,_0x325175){this['_emit']('error',_0x3d830f,_0x325175);}['debug'](_0x33f2c5,_0x4e2f60){const _0x2b2050=_0x4c2366;this[_0x2b2050(0x5d1)]('debug',_0x33f2c5,_0x4e2f60);}}return okdbLogger=_0x5834c0,okdbLogger;}var okdbPlugins,hasRequiredOkdbPlugins;function requireOkdbPlugins(){const _0x396868=_0x2ec26e;if(hasRequiredOkdbPlugins)return okdbPlugins;hasRequiredOkdbPlugins=0x1;const {OKDB_STATE:_0x13533c}=requireOkdbEnums(),{OKDBError:_0x1da66b}=requireOkdbError();class _0x5ea929{constructor(_0x2b3386){const _0x946978=_0x3ebb;this[_0x946978(0x21e)]=_0x2b3386,this['_plugins']=[];}[_0x396868(0x690)](_0x47861b,_0x45ff36){const _0x3e875e=_0x396868;if(this[_0x3e875e(0x21e)]['state']!==_0x13533c[_0x3e875e(0x59f)])throw new _0x1da66b(_0x3e875e(0x863),_0x3e875e(0x645),{'state':this[_0x3e875e(0x21e)][_0x3e875e(0x41c)]});if(!_0x47861b[_0x3e875e(0x6fe)])throw new _0x1da66b('Plugin\x20must\x20have\x20a\x20name','BAD_PLUGIN',{'plugin':_0x47861b[_0x3e875e(0x6fe)]});const _0x4a3ed5=_0x47861b['requires']??[];for(const _0x1caa85 of _0x4a3ed5){if(!this[_0x3e875e(0x82e)][_0x3e875e(0x786)](_0x337c19=>_0x337c19['module'][_0x3e875e(0x6fe)]===_0x1caa85))throw new _0x1da66b('Missing\x20plugin:\x20'+_0x1caa85+_0x3e875e(0x447)+_0x47861b[_0x3e875e(0x6fe)]+')',_0x3e875e(0x240),{'required':_0x1caa85});}if(this[_0x3e875e(0x82e)][_0x3e875e(0x21c)](_0x57cfb5=>_0x57cfb5[_0x3e875e(0x277)][_0x3e875e(0x6fe)]===_0x47861b[_0x3e875e(0x6fe)]))throw new _0x1da66b(_0x3e875e(0x17e)+_0x47861b[_0x3e875e(0x6fe)]+_0x3e875e(0x6d5),_0x3e875e(0x707),{'plugin':_0x47861b['name']});if(_0x47861b['name']in this[_0x3e875e(0x21e)])throw new _0x1da66b('Plugin\x20name\x20\x27'+_0x47861b[_0x3e875e(0x6fe)]+'\x27\x20conflicts\x20with\x20existing\x20OKDB\x20property',_0x3e875e(0x59a));const _0x51154f=_0x47861b[_0x3e875e(0x690)](this[_0x3e875e(0x21e)],_0x45ff36);if(!_0x51154f||typeof _0x51154f!==_0x3e875e(0x1be))throw new _0x1da66b(_0x3e875e(0x17e)+_0x47861b[_0x3e875e(0x6fe)]+_0x3e875e(0x855),'BAD_PLUGIN',{'plugin':_0x47861b[_0x3e875e(0x6fe)]});this[_0x3e875e(0x82e)][_0x3e875e(0x2fb)]({'module':_0x47861b,'options':_0x45ff36,'instance':_0x51154f});}['_started']=[];async[_0x396868(0x898)](){const _0x6aa174=_0x396868;try{for(const _0x48319c of this[_0x6aa174(0x82e)]){await _0x48319c['instance'][_0x6aa174(0x898)]?.(this[_0x6aa174(0x21e)]),this[_0x6aa174(0x3cb)]['push'](_0x48319c);}}catch(_0x5c93b7){await this[_0x6aa174(0x893)]()[_0x6aa174(0x189)](()=>{});throw _0x5c93b7;}}async['stop'](){const _0x3c4260=_0x396868,_0x9a8785=this['_started']['reverse']();this['_started']=[];let _0x1a5db4=null;for(const _0x27151d of _0x9a8785){try{await _0x27151d['instance'][_0x3c4260(0x893)]?.(this[_0x3c4260(0x21e)]);}catch(_0x2ce5ae){_0x1a5db4??=_0x2ce5ae;}}if(_0x1a5db4)throw _0x1a5db4;}}return okdbPlugins=_0x5ea929,okdbPlugins;}var statics,hasRequiredStatics;function requireStatics(){const _0x4d72f3=_0x2ec26e;if(hasRequiredStatics)return statics;hasRequiredStatics=0x1;const _0x57ca69={'maxDbs':0x400,'pageSize':0x1000,'compression':!![],'encryptionKey':undefined,'mapSize':0x100000000,'durability':_0x4d72f3(0x3ff)},_0x1c1bd8=new Set([_0x4d72f3(0x358),'pageSize',_0x4d72f3(0x3f2),_0x4d72f3(0x4e9),_0x4d72f3(0x224),'mapSize',_0x4d72f3(0x1ba),_0x4d72f3(0x806),_0x4d72f3(0x66d),'auth',_0x4d72f3(0x5f3),'queue','functions',_0x4d72f3(0x54d),_0x4d72f3(0x403),_0x4d72f3(0x3d3),_0x4d72f3(0x793),_0x4d72f3(0x308),'readerCheckIntervalMs',_0x4d72f3(0x1a5),'processors',_0x4d72f3(0x819),'processes',_0x4d72f3(0x218),_0x4d72f3(0x370),_0x4d72f3(0x593),_0x4d72f3(0x2a7),_0x4d72f3(0x65d),_0x4d72f3(0x2eb),_0x4d72f3(0x6ce)]),_0x48a8e2={'http':_0x4d72f3(0x83f)};return statics={'defaults':_0x57ca69,'KNOWN_OPTIONS':_0x1c1bd8,'_OPTION_HINTS':_0x48a8e2},statics;}var licenseConfig,hasRequiredLicenseConfig;function requireLicenseConfig(){const _0xb020e1=_0x2ec26e;if(hasRequiredLicenseConfig)return licenseConfig;hasRequiredLicenseConfig=0x1;const _0x3d010d=require$$0$2,_0x57a1fe='-----BEGIN\x20PUBLIC\x20KEY-----\x0aMCowBQYDK2VwAyEAacrkExPrhxNVHyeQBLDwg8xfm1OwyxDAPNdGXABYS2s=\x0a-----END\x20PUBLIC\x20KEY-----',_0x4c8b68=_0x3d010d['createHash'](_0xb020e1(0x47d))['update'](_0x3d010d['createPublicKey'](_0x57a1fe)[_0xb020e1(0x56d)]({'type':'spki','format':_0xb020e1(0x7f2)}))[_0xb020e1(0x5e8)]('hex')[_0xb020e1(0x5ca)](0x0,0x10),_0x3e5d0e={'LICENSED_BUILD':_0xb020e1(0x3ee),'PUBLIC_KEY_PEM':_0x57a1fe,'PUB_FINGERPRINT':_0x4c8b68,'LICENSE_EXPIRED_ACTION':_0xb020e1(0x793)};return licenseConfig={'_C':_0x3e5d0e,'PUBLIC_KEY_PEM':_0x57a1fe,'PUB_FINGERPRINT':_0x4c8b68},licenseConfig;}var okdbSubscriptionsStore={'exports':{}},okdbQueryFilter,hasRequiredOkdbQueryFilter;function requireOkdbQueryFilter(){const _0x5e2413=_0x2ec26e;if(hasRequiredOkdbQueryFilter)return okdbQueryFilter;hasRequiredOkdbQueryFilter=0x1;const _0x3b0234=require$$0$5,{OKDBError:_0x509d49}=requireOkdbError(),_0x154c5a=[_0x5e2413(0x499),'$ne',_0x5e2413(0x1c3),_0x5e2413(0x50c),_0x5e2413(0x6bf),_0x5e2413(0x17a),_0x5e2413(0x3c5),_0x5e2413(0x81e),_0x5e2413(0x333),_0x5e2413(0x1da),'$options',_0x5e2413(0x1b1),_0x5e2413(0x1f2),_0x5e2413(0x80c),_0x5e2413(0x562),'$elemMatch',_0x5e2413(0x2e9),_0x5e2413(0x584),_0x5e2413(0x5dc),'$nor'],_0x4feb2e=['$where'];function _0x4f8427(_0x1fc3ad){return()=>{const _0x41bdcb=_0x3ebb,_0x1313d9=new _0x509d49(_0x41bdcb(0x712)+_0x1fc3ad+_0x41bdcb(0x5c0),_0x41bdcb(0x26d),{'operator':_0x1fc3ad});_0x1313d9[_0x41bdcb(0x1c9)]=0x190;throw _0x1313d9;};}const _0x2ee770=Object['freeze']({...Object[_0x5e2413(0x804)](_0x154c5a[_0x5e2413(0x1a7)](_0x373e5b=>[_0x373e5b,_0x3b0234[_0x373e5b]])),...Object[_0x5e2413(0x804)](_0x4feb2e[_0x5e2413(0x1a7)](_0x3acd5e=>[_0x3acd5e,_0x4f8427(_0x3acd5e)]))});function _0x3da044(_0x4da199){const _0x52dfdd=_0x5e2413;return _0x3b0234[_0x52dfdd(0x42d)](_0x4da199,{'operations':_0x2ee770});}function _0x5c0dbf(_0x21e9a8){const _0x5bd9cf=_0x5e2413;if(_0x21e9a8==null)return;try{_0x3da044(_0x21e9a8);}catch(_0x325de1){if(_0x325de1?.[_0x5bd9cf(0x748)]==='QUERY_OPERATOR_FORBIDDEN')throw _0x325de1;}}return okdbQueryFilter={'compileFilter':_0x3da044,'assertFilterAllowed':_0x5c0dbf,'ALLOWED_OPERATORS':_0x154c5a,'FORBIDDEN_OPERATORS':_0x4feb2e},okdbQueryFilter;}var okdbEnvRefs,hasRequiredOkdbEnvRefs;function requireOkdbEnvRefs(){const _0x2086fc=_0x2ec26e;if(hasRequiredOkdbEnvRefs)return okdbEnvRefs;hasRequiredOkdbEnvRefs=0x1;const {CHANGE_ACTIONS:_0x55737b,EVENTS:_0x362466}=requireOkdbEnums(),{OKDBError:_0x4eb244,OKDBForeignKeyDeleteError:_0x5c8be5}=requireOkdbError(),_0x1ee512=_0x2086fc(0x7aa),_0x36c181=new Set([_0x2086fc(0x237),_0x2086fc(0x4a7),_0x2086fc(0x20c),'restrict']);function _0x47a122(_0x2aa913,_0x10594b){const _0x4e3d34=_0x2086fc;if(_0x2aa913==null||!_0x10594b)return undefined;const _0x198e9a=_0x10594b[_0x4e3d34(0x3f8)]('.');let _0x2af3c8=_0x2aa913;for(const _0x5644e of _0x198e9a){if(_0x2af3c8==null||typeof _0x2af3c8!==_0x4e3d34(0x1be)||!(_0x5644e in _0x2af3c8))return undefined;_0x2af3c8=_0x2af3c8[_0x5644e];}return _0x2af3c8;}function _0x895b60(_0x13260e,_0x3e6e2e,_0x16232b){const _0x4edd55=_0x2086fc,_0x53e2b9=_0x3e6e2e[_0x4edd55(0x3f8)]('.'),_0x36834e={..._0x13260e};let _0x1a7b44=_0x36834e;for(let _0x2bd775=0x0;_0x2bd775<_0x53e2b9[_0x4edd55(0x6cf)]-0x1;_0x2bd775++){_0x1a7b44[_0x53e2b9[_0x2bd775]]=_0x1a7b44[_0x53e2b9[_0x2bd775]]!=null?{..._0x1a7b44[_0x53e2b9[_0x2bd775]]}:{},_0x1a7b44=_0x1a7b44[_0x53e2b9[_0x2bd775]];}return _0x1a7b44[_0x53e2b9[_0x53e2b9[_0x4edd55(0x6cf)]-0x1]]=_0x16232b,_0x36834e;}function _0x401a8c(_0x5548fd,_0x178a35,_0x3f3ae9,_0x7d860f,_0x1b49ed){return[_0x5548fd,_0x178a35,_0x3f3ae9,_0x7d860f,_0x1b49ed];}function _0x97714d(_0x25c256){const _0x1fa250=_0x2086fc;return typeof _0x25c256==='string'||typeof _0x25c256===_0x1fa250(0x5c1);}function _0x5c31f0(_0x54c0ba,_0x195fde){const _0x17b988=_0x2086fc;return JSON[_0x17b988(0x4d2)]([_0x54c0ba,_0x195fde]);}function*_0x1799dd(_0x5b5e91,_0x17d941,_0x385331){const _0x2f588b=_0x2086fc,_0x311ed5=_0x385331!==undefined;for(const {key:_0x4f2c8e}of _0x5b5e91[_0x2f588b(0x3fa)]({'start':_0x311ed5?[_0x17d941,_0x385331]:[_0x17d941]})){if(!Array['isArray'](_0x4f2c8e))continue;if(_0x4f2c8e[0x0]!==_0x17d941||_0x311ed5&&_0x4f2c8e[0x1]!==_0x385331)break;yield _0x4f2c8e;}}function _0x5ac15a(_0xadaa8f,_0x452ce1='',_0x23ff7a=null){const _0x209eac=_0x2086fc,_0x291e5b=[];if(!_0xadaa8f||typeof _0xadaa8f!==_0x209eac(0x1be))return _0x291e5b;if(!_0x23ff7a)_0x23ff7a=_0xadaa8f;if(_0xadaa8f[_0x209eac(0x52e)]){const _0xe6b584=_0xadaa8f['$ref'][_0x209eac(0x810)](/^#\/\$defs\/(.+)$/);if(_0xe6b584&&_0x23ff7a?.[_0x209eac(0x177)]?.[_0xe6b584[0x1]])return _0x5ac15a(_0x23ff7a['$defs'][_0xe6b584[0x1]],_0x452ce1,_0x23ff7a);return _0x291e5b;}if(_0xadaa8f[_0x209eac(0x8a8)]&&typeof _0xadaa8f[_0x209eac(0x8a8)]===_0x209eac(0x1be)&&_0xadaa8f[_0x209eac(0x8a8)][_0x209eac(0x673)]){const _0x15e135=_0xadaa8f['ref'][_0x209eac(0x207)]||_0x209eac(0x237);if(!_0x36c181[_0x209eac(0x51e)](_0x15e135))throw new _0x4eb244(_0x209eac(0x4a0)+_0x15e135+'\x27\x20at\x20'+(_0x452ce1||_0x209eac(0x2ee))+_0x209eac(0x6c1)+[..._0x36c181][_0x209eac(0x3d2)](',\x20'),_0x209eac(0x2d6));_0x291e5b[_0x209eac(0x2fb)]({'fieldPath':_0x452ce1,'targetType':_0xadaa8f[_0x209eac(0x8a8)][_0x209eac(0x673)],'onDelete':_0x15e135});}if(_0xadaa8f[_0x209eac(0x39b)])for(const [_0x75fc7b,_0x1806f6]of Object['entries'](_0xadaa8f[_0x209eac(0x39b)])){const _0x5b159b=_0x452ce1?_0x452ce1+'.'+_0x75fc7b:_0x75fc7b;_0x291e5b[_0x209eac(0x2fb)](..._0x5ac15a(_0x1806f6,_0x5b159b,_0x23ff7a));}return _0x291e5b;}function _0x295007(_0x4211fd){const _0xba4d9d=_0x2086fc,_0x307cd=new Map(),_0x5a986a=new Map();for(const _0xdec901 of _0x4211fd[_0xba4d9d(0x7af)]()){if(_0xdec901[_0xba4d9d(0x6c8)]('~'))continue;const _0x48b77d=_0x4211fd[_0xba4d9d(0x779)][_0xba4d9d(0x63c)](_0xdec901);if(!_0x48b77d?.[_0xba4d9d(0x2d4)]?.[_0xba4d9d(0x814)])continue;let _0x4e3002;try{_0x4e3002=_0x5ac15a(_0x48b77d[_0xba4d9d(0x2d4)]['definition']);}catch{continue;}if(_0x4e3002[_0xba4d9d(0x6cf)]>0x0){_0x307cd[_0xba4d9d(0x328)](_0xdec901,_0x4e3002);for(const _0x257c30 of _0x4e3002){if(!_0x5a986a[_0xba4d9d(0x51e)](_0x257c30[_0xba4d9d(0x749)]))_0x5a986a[_0xba4d9d(0x328)](_0x257c30[_0xba4d9d(0x749)],[]);_0x5a986a[_0xba4d9d(0x63c)](_0x257c30[_0xba4d9d(0x749)])['push']({'sourceType':_0xdec901,'fieldPath':_0x257c30['fieldPath'],'onDelete':_0x257c30[_0xba4d9d(0x207)]});}}}_0x4211fd[_0xba4d9d(0x4b1)]={'outgoing':_0x307cd,'incoming':_0x5a986a};if(_0x307cd[_0xba4d9d(0x221)]>0x0)_0x152c11(_0x4211fd);}function _0xe7feb2(_0x458cc7,_0x364065){const _0x28d806=_0x2086fc;return _0x458cc7[_0x28d806(0x4b1)]['outgoing'][_0x28d806(0x63c)](_0x364065)||[];}function _0xec2eed(_0x502acd,_0x559af3){const _0x5f2d42=_0x2086fc;return _0x502acd[_0x5f2d42(0x4b1)][_0x5f2d42(0x847)][_0x5f2d42(0x63c)](_0x559af3)||[];}function _0x152c11(_0x3ba6c4){const _0x148f9b=_0x2086fc;if(_0x3ba6c4[_0x148f9b(0x2ae)])return _0x3ba6c4[_0x148f9b(0x2ae)];return _0x3ba6c4[_0x148f9b(0x2ae)]=_0x3ba6c4['db'][_0x148f9b(0x840)](_0x148f9b(0x58b),{'dupSort':![]}),_0x3ba6c4[_0x148f9b(0x2ae)];}function _0x23a737(_0x51ed8b,_0x26e66e,_0x2b4e4e,_0x21c337,_0x4b945b){const _0x13cfba=_0x2086fc,_0xc90f7c=_0xe7feb2(_0x51ed8b,_0x26e66e);if(_0xc90f7c[_0x13cfba(0x6cf)]===0x0)return;const _0x2f5042=_0x152c11(_0x51ed8b);for(const _0x598ed2 of _0xc90f7c){const _0x46ab6a=_0x4b945b!=null?_0x47a122(_0x4b945b,_0x598ed2[_0x13cfba(0x5c7)]):undefined,_0x1e8f85=_0x21c337!=null?_0x47a122(_0x21c337,_0x598ed2[_0x13cfba(0x5c7)]):undefined;if(_0x46ab6a===_0x1e8f85)continue;_0x97714d(_0x46ab6a)&&_0x2f5042[_0x13cfba(0x76e)](_0x401a8c(_0x598ed2[_0x13cfba(0x749)],_0x46ab6a,_0x26e66e,_0x2b4e4e,_0x598ed2[_0x13cfba(0x5c7)])),_0x97714d(_0x1e8f85)&&_0x2f5042[_0x13cfba(0x225)](_0x401a8c(_0x598ed2[_0x13cfba(0x749)],_0x1e8f85,_0x26e66e,_0x2b4e4e,_0x598ed2[_0x13cfba(0x5c7)]),0x1);}}function _0x1047ce(_0x2bb9d8,_0x1270dd,_0x53af1b,_0x5151f5){const _0x549fa1=_0x2086fc,_0x5736cb=_0xe7feb2(_0x2bb9d8,_0x1270dd);if(_0x5736cb[_0x549fa1(0x6cf)]===0x0)return;const _0x5fa318=_0x152c11(_0x2bb9d8);for(const _0x40ef14 of _0x5736cb){const _0x5658ef=_0x5151f5!=null?_0x47a122(_0x5151f5,_0x40ef14[_0x549fa1(0x5c7)]):undefined;_0x97714d(_0x5658ef)&&_0x5fa318[_0x549fa1(0x76e)](_0x401a8c(_0x40ef14[_0x549fa1(0x749)],_0x5658ef,_0x1270dd,_0x53af1b,_0x40ef14[_0x549fa1(0x5c7)]));}}function _0x53fe5c(_0x16035a,_0x2d5dd2,_0x549fca,_0x4f2fed){const _0x22f0e0=_0x2086fc,_0x5822a0=_0xe7feb2(_0x16035a,_0x2d5dd2);if(_0x5822a0[_0x22f0e0(0x6cf)]===0x0)return[];const _0x30a536=[];for(const _0x350223 of _0x5822a0){const _0x560e1e=_0x47a122(_0x4f2fed,_0x350223[_0x22f0e0(0x5c7)]);if(_0x560e1e==null)continue;if(!_0x16035a[_0x22f0e0(0x3c7)](_0x350223[_0x22f0e0(0x749)])){_0x30a536[_0x22f0e0(0x2fb)]({'fieldPath':_0x350223[_0x22f0e0(0x5c7)],'targetType':_0x350223[_0x22f0e0(0x749)],'targetKey':_0x560e1e,'message':_0x22f0e0(0x34f)+_0x350223[_0x22f0e0(0x749)]+_0x22f0e0(0x355)});continue;}const _0x2b728d=_0x16035a[_0x22f0e0(0x4e7)](_0x350223['targetType'])[_0x22f0e0(0x734)];!_0x2b728d[_0x22f0e0(0x6a5)](_0x560e1e)&&_0x30a536[_0x22f0e0(0x2fb)]({'fieldPath':_0x350223[_0x22f0e0(0x5c7)],'targetType':_0x350223[_0x22f0e0(0x749)],'targetKey':_0x560e1e,'message':_0x22f0e0(0x659)+_0x560e1e+_0x22f0e0(0x667)+_0x350223[_0x22f0e0(0x749)]+'\x27'});}return _0x30a536;}function _0x5855b0(_0x3cb271,_0x5c7e28,_0x55d1cb,_0x5bd94d,_0x18a5b4,{timestamp:_0x36e357,origin:_0x24af3f,_cascadeVisited:_0x5be62a}){const _0x526041=_0x2086fc,_0xe5803a=_0xec2eed(_0x3cb271,_0x55d1cb);if(_0xe5803a[_0x526041(0x6cf)]===0x0)return;const _0x45b47d=_0x152c11(_0x3cb271),_0x484097=[];for(const [,,_0x47c308,_0x3fd408,_0x26a7cb]of _0x1799dd(_0x45b47d,_0x55d1cb,_0x5bd94d)){_0x484097[_0x526041(0x2fb)]({'sourceType':_0x47c308,'sourceKey':_0x3fd408,'fieldPath':_0x26a7cb});}if(_0x484097[_0x526041(0x6cf)]===0x0)return;for(const _0x241c25 of _0x484097){const _0x2619f5=_0xe5803a[_0x526041(0x21c)](_0x55182c=>_0x55182c[_0x526041(0x4ab)]===_0x241c25[_0x526041(0x4ab)]&&_0x55182c[_0x526041(0x5c7)]===_0x241c25[_0x526041(0x5c7)]),_0x19d91c=_0x2619f5?.['onDelete']||_0x526041(0x237);switch(_0x19d91c){case _0x526041(0x56f):{if(_0x24af3f===null)throw new _0x5c8be5(_0x55d1cb,_0x5bd94d,_0x484097[_0x526041(0x852)](_0x12e660=>{const _0x41ba7d=_0x526041,_0x591692=_0xe5803a[_0x41ba7d(0x21c)](_0x22a5be=>_0x22a5be[_0x41ba7d(0x4ab)]===_0x12e660['sourceType']&&_0x22a5be[_0x41ba7d(0x5c7)]===_0x12e660[_0x41ba7d(0x5c7)]);return(_0x591692?.[_0x41ba7d(0x207)]||_0x41ba7d(0x237))==='restrict';}));break;}case _0x526041(0x4a7):{const _0xf5f484=_0x5c31f0(_0x241c25[_0x526041(0x4ab)],_0x241c25[_0x526041(0x514)]);if(_0x5be62a['has'](_0xf5f484))continue;_0x3cb271[_0x526041(0x4e7)](_0x241c25[_0x526041(0x4ab)])[_0x526041(0x734)][_0x526041(0x6a5)](_0x241c25[_0x526041(0x514)])&&_0x3cb271[_0x526041(0x28e)](_0x5c7e28,_0x241c25[_0x526041(0x4ab)],_0x241c25[_0x526041(0x514)],{'timestamp':_0x36e357,'origin':_0x24af3f,'_cascadeVisited':_0x5be62a});break;}case _0x526041(0x20c):{const _0x30ff94=_0x3cb271[_0x526041(0x4e7)](_0x241c25[_0x526041(0x4ab)])[_0x526041(0x734)],_0x507d76=_0x30ff94[_0x526041(0x2ec)](_0x241c25[_0x526041(0x514)]);if(_0x507d76){const _0x5891aa=_0x895b60(_0x507d76[_0x526041(0x820)],_0x241c25[_0x526041(0x5c7)],null);_0x3cb271[_0x526041(0x75c)](_0x5c7e28,'put',_0x241c25[_0x526041(0x4ab)],_0x241c25[_0x526041(0x514)],_0x5891aa,{'timestamp':_0x36e357,'origin':_0x24af3f,'_cascading':!![]});}break;}}}}function _0x349a64(_0x4b990e){const _0x4c9669=_0x2086fc;!_0x4b990e[_0x4c9669(0x3c7)](_0x1ee512)&&_0x4b990e[_0x4c9669(0x7ab)](_0x1ee512);}function _0x2ca571(_0x308671,_0x424ead,_0x3a13ab,_0x33d964,_0x4b26c1,_0x11651b,_0x4cda49,{timestamp:timestamp=Date['now'](),origin:origin=null}={}){const _0x4e008d=_0x2086fc;_0x349a64(_0x308671);const _0x346dd6=_0x3a13ab+'@'+_0x33d964+'@'+_0x4b26c1,_0x27486b={'sourceType':_0x3a13ab,'sourceKey':_0x33d964,'fieldPath':_0x4b26c1,'targetType':_0x11651b,'targetKey':_0x4cda49,'timestamp':timestamp,'origin':origin},_0x35bb77=_0x308671[_0x4e008d(0x4e7)](_0x1ee512)[_0x4e008d(0x734)],_0x3b3f97=_0x35bb77[_0x4e008d(0x2ec)](_0x346dd6),_0x2cc914=_0x3b3f97?_0x3b3f97['version']+0x1:0x1;_0x35bb77[_0x4e008d(0x225)](_0x346dd6,_0x27486b,_0x2cc914),_0x308671['_logChange']({'id':_0x4e008d(0x26c)+_0x1ee512+'@'+_0x346dd6,'type':_0x1ee512,'key':_0x346dd6,'action':_0x55737b[_0x4e008d(0x554)],'timestamp':timestamp,'txnId':_0x424ead?.['id'],'origin':origin},_0x3b3f97?.['value'],_0x27486b),_0x308671[_0x4e008d(0x29a)][_0x4e008d(0x6d6)](_0x362466[_0x4e008d(0x65e)],{'sourceType':_0x3a13ab,'sourceKey':_0x33d964,'fieldPath':_0x4b26c1,'targetType':_0x11651b,'targetKey':_0x4cda49,'env':_0x308671[_0x4e008d(0x6fe)]});}function _0x34761d(_0x49a20b,_0x44eb4d,_0x5cfd2f,_0x1ea571,_0x28cbad,{timestamp:timestamp=Date[_0x2086fc(0x89e)](),origin:origin=null}={}){const _0x2f9682=_0x2086fc;if(!_0x49a20b[_0x2f9682(0x3c7)](_0x1ee512))return;const _0x865412=_0x5cfd2f+'@'+_0x1ea571+'@'+_0x28cbad,_0x3f27a6=_0x49a20b['_getType'](_0x1ee512)[_0x2f9682(0x734)],_0xc22c0d=_0x3f27a6[_0x2f9682(0x2ec)](_0x865412);if(!_0xc22c0d)return;_0x3f27a6[_0x2f9682(0x76e)](_0x865412),_0x49a20b['_logChange']({'id':_0x2f9682(0x26c)+_0x1ee512+'@'+_0x865412,'type':_0x1ee512,'key':_0x865412,'action':_0x55737b[_0x2f9682(0x6a2)],'timestamp':timestamp,'txnId':_0x44eb4d?.['id'],'origin':origin},_0xc22c0d[_0x2f9682(0x820)],undefined),_0x49a20b[_0x2f9682(0x29a)]['emit'](_0x362466[_0x2f9682(0x3ef)],{'sourceType':_0x5cfd2f,'sourceKey':_0x1ea571,'fieldPath':_0x28cbad,'env':_0x49a20b[_0x2f9682(0x6fe)]});}function _0x1a72a3(_0x3d67fa,_0x19f624,_0x2afb5b,_0x548c35,_0x5cb087={}){const _0x3cfe6a=_0x2086fc;if(!_0x3d67fa[_0x3cfe6a(0x3c7)](_0x1ee512))return;const _0x396cc0=_0x3d67fa[_0x3cfe6a(0x4e7)](_0x1ee512)[_0x3cfe6a(0x734)],_0x565406=_0x2afb5b+'@'+_0x548c35+'@',_0x5681b2=[];for(const {key:_0x555fea,value:_0x432026}of _0x396cc0[_0x3cfe6a(0x3fa)]({'start':_0x565406,'end':_0x565406+'\uffff'})){if(_0x432026?.[_0x3cfe6a(0x4ab)]===_0x2afb5b&&_0x432026?.[_0x3cfe6a(0x514)]===_0x548c35)_0x5681b2[_0x3cfe6a(0x2fb)](_0x555fea);}for(const _0x266161 of _0x5681b2){const _0x5b6df4=_0x396cc0['getEntry'](_0x266161);if(!_0x5b6df4)continue;_0x396cc0[_0x3cfe6a(0x76e)](_0x266161),_0x3d67fa[_0x3cfe6a(0x286)]({'id':_0x3cfe6a(0x26c)+_0x1ee512+'@'+_0x266161,'type':_0x1ee512,'key':_0x266161,'action':_0x55737b['REMOVE'],'timestamp':_0x5cb087[_0x3cfe6a(0x44e)]||Date[_0x3cfe6a(0x89e)](),'txnId':_0x19f624?.['id'],'origin':_0x5cb087['origin']},_0x5b6df4[_0x3cfe6a(0x820)],undefined);}}function _0x2ea1bc(_0x1d4059,_0x3c7603){const _0x7a3c81=_0x2086fc;if(!_0x1d4059[_0x7a3c81(0x3c7)](_0x1ee512))return;const _0x37e496=_0x1d4059[_0x7a3c81(0x4e7)](_0x1ee512)[_0x7a3c81(0x734)],_0xdaec9e=_0x3c7603+'@',_0x28ae85=[];for(const {key:_0x1508ac,value:_0x139704}of _0x37e496[_0x7a3c81(0x3fa)]({'start':_0xdaec9e,'end':_0xdaec9e+'\uffff'})){if(_0x139704?.[_0x7a3c81(0x4ab)]===_0x3c7603)_0x28ae85[_0x7a3c81(0x2fb)](_0x1508ac);}for(const _0x127a95 of _0x28ae85)_0x37e496['removeSync'](_0x127a95);}async function _0x576e3e(_0x36ef33,_0x3dd0b0){const _0x2bf2f6=_0x2086fc,_0x40f589=_0xe7feb2(_0x36ef33,_0x3dd0b0);if(_0x40f589[_0x2bf2f6(0x6cf)]===0x0)return;await _0x36ef33[_0x2bf2f6(0x291)][_0x2bf2f6(0x7f7)](()=>{const _0x297467=_0x2bf2f6;for(const {key:_0x23def5,value:_0x3bf219}of _0x36ef33[_0x297467(0x3fa)](_0x3dd0b0)){_0x23a737(_0x36ef33,_0x3dd0b0,_0x23def5,_0x3bf219,null);const _0x1e0b7b=_0x53fe5c(_0x36ef33,_0x3dd0b0,_0x23def5,_0x3bf219);for(const _0x25aee3 of _0x1e0b7b){_0x2ca571(_0x36ef33,null,_0x3dd0b0,_0x23def5,_0x25aee3[_0x297467(0x5c7)],_0x25aee3[_0x297467(0x749)],_0x25aee3[_0x297467(0x768)]);}}});}const _0x589d1d=0x1388;async function _0x4db479(_0xc4cee3){const _0x506e92=_0x2086fc,_0x371d21=_0xc4cee3['_refCache']?.[_0x506e92(0x1fb)]?.[_0x506e92(0x221)]>0x0;if(!_0x371d21&&!_0xc4cee3[_0x506e92(0x2ae)])return{'dropped':0x0,'written':0x0};const _0xd7ba44=_0x152c11(_0xc4cee3);let _0x42aaca=0x0;for(;;){const _0x165206=Array['from'](_0xd7ba44[_0x506e92(0x7d2)]({'limit':_0x589d1d}));if(_0x165206[_0x506e92(0x6cf)]===0x0)break;let _0x14fafe=0x0;await _0xc4cee3[_0x506e92(0x291)]['transaction'](()=>{const _0x208b28=_0x506e92;for(const _0x168348 of _0x165206)if(_0xd7ba44[_0x208b28(0x76e)](_0x168348))_0x14fafe++;});if(_0x14fafe===0x0)break;_0x42aaca+=_0x14fafe;}let _0x20ff81=0x0;for(const _0x231927 of _0xc4cee3[_0x506e92(0x4b1)]['outgoing'][_0x506e92(0x1d5)]()){if(_0x231927[_0x506e92(0x6c8)]('~')||!_0xc4cee3[_0x506e92(0x3c7)](_0x231927))continue;const _0xe9a436=_0xe7feb2(_0xc4cee3,_0x231927);await _0xc4cee3['_writer'][_0x506e92(0x7f7)](()=>{const _0x368423=_0x506e92;for(const {key:_0x2b807a,value:_0x2bbd28}of _0xc4cee3['getRange'](_0x231927)){for(const _0x28cc6f of _0xe9a436){const _0x48c933=_0x47a122(_0x2bbd28,_0x28cc6f[_0x368423(0x5c7)]);if(!_0x97714d(_0x48c933))continue;_0xd7ba44[_0x368423(0x225)](_0x401a8c(_0x28cc6f[_0x368423(0x749)],_0x48c933,_0x231927,_0x2b807a,_0x28cc6f[_0x368423(0x5c7)]),0x1),_0x20ff81++;}}});}return{'dropped':_0x42aaca,'written':_0x20ff81};}return okdbEnvRefs={'getFieldValue':_0x47a122,'setFieldValue':_0x895b60,'refIndexKey':_0x401a8c,'isRefTarget':_0x97714d,'cascadeVisitKey':_0x5c31f0,'extractRefs':_0x5ac15a,'rebuildRefCache':_0x295007,'getTypeRefs':_0xe7feb2,'getIncomingRefs':_0xec2eed,'getRefIndexDb':_0x152c11,'updateRefIndex':_0x23a737,'removeRefIndexEntries':_0x1047ce,'refIndexRowsFor':_0x1799dd,'rebuildRefIndex':_0x4db479,'checkForeignKeys':_0x53fe5c,'processDeleteCascade':_0x5855b0,'setRefViolation':_0x2ca571,'clearRefViolation':_0x34761d,'clearRefViolationsForKey':_0x1a72a3,'clearRefViolationsForType':_0x2ea1bc,'syncRefIndex':_0x576e3e},okdbEnvRefs;}var hasRequiredOkdbSubscriptionsStore;function requireOkdbSubscriptionsStore(){const _0x226419=_0x2ec26e;if(hasRequiredOkdbSubscriptionsStore)return okdbSubscriptionsStore[_0x226419(0x3be)];hasRequiredOkdbSubscriptionsStore=0x1;const _0x4ae891=require$$0$4,{assertFilterAllowed:_0xe634b6}=requireOkdbQueryFilter(),{rebuildRefCache:_0x1920e6}=requireOkdbEnvRefs(),_0x42eb58='~sub',_0x125447=_0x226419(0x77d),_0x335c8b=_0x226419(0x84d),_0x26afe5=[_0x226419(0x215),_0x226419(0x673),_0x226419(0x366)],_0x56aef8=[_0x226419(0x215),'type'],_0x11b967=0x5a*0x3e8,_0x1e527b=Math[_0x226419(0x265)](_0x11b967/0x2);class _0x2b7974{constructor(_0x35acbf,_0x5a44f2={}){const _0x1d337e=_0x226419;this[_0x1d337e(0x21e)]=_0x35acbf,this[_0x1d337e(0x5b3)]=Number['isFinite'](_0x5a44f2[_0x1d337e(0x5b3)])&&_0x5a44f2[_0x1d337e(0x5b3)]>0x0?_0x5a44f2[_0x1d337e(0x5b3)]:_0x11b967,this[_0x1d337e(0x1de)]=Number[_0x1d337e(0x5ef)](_0x5a44f2[_0x1d337e(0x1de)])?_0x5a44f2[_0x1d337e(0x1de)]:_0x1e527b,this['_sub']=null;}async[_0x226419(0x626)](){const _0x4a8f36=_0x226419;if(this[_0x4a8f36(0x588)])return this[_0x4a8f36(0x588)];const _0x57f0a4=await this[_0x4a8f36(0x21e)]['createEnvironment'](_0x42eb58,{'sync':![]});return await _0x57f0a4['ensureType'](_0x125447,{'indexes':[_0x56aef8]}),await _0x57f0a4[_0x4a8f36(0x5cf)](_0x335c8b),_0x57f0a4[_0x4a8f36(0x2d0)](_0x335c8b)?_0x1920e6(_0x57f0a4):await _0x57f0a4[_0x4a8f36(0x573)](_0x335c8b,{'definition':{'type':_0x4a8f36(0x1be),'properties':{'sessionId':{'type':_0x4a8f36(0x4bb),'ref':{'type':_0x125447,'onDelete':_0x4a8f36(0x4a7)}},'dataEnv':{'type':'string'},'type':{'type':_0x4a8f36(0x4bb)},'key':{'type':'string'}},'required':[_0x4a8f36(0x7d9),_0x4a8f36(0x215),_0x4a8f36(0x673),_0x4a8f36(0x366)]},'enforce':!![]}),await _0x57f0a4[_0x4a8f36(0x5cf)](_0x335c8b,{'indexes':[_0x26afe5]}),await _0x57f0a4[_0x4a8f36(0x76a)](_0x335c8b,_0x26afe5),await _0x57f0a4[_0x4a8f36(0x76a)](_0x125447,_0x56aef8),this[_0x4a8f36(0x588)]=_0x57f0a4,_0x57f0a4;}['_env'](){const _0x4f7c98=_0x226419;if(!this['_sub'])throw new Error(_0x4f7c98(0x387));return this[_0x4f7c98(0x588)];}async['createSession']({sessionId:_0xbc9b11,dataEnv:_0x9124e2,type:_0x4054f3,filter:filter=null,ttlMs:_0x5dc511}={}){const _0x25b002=_0x226419,_0x3aec2c=this[_0x25b002(0x51f)]();_0xe634b6(filter);const _0x440b71=_0xbc9b11!=null&&String(_0xbc9b11)[_0x25b002(0x6cf)]>0x0?String(_0xbc9b11):_0x4ae891[_0x25b002(0x770)](),_0x1692ad=Number[_0x25b002(0x5ef)](_0x5dc511)&&_0x5dc511>0x0?_0x5dc511:this[_0x25b002(0x5b3)],_0x2f3092=Date[_0x25b002(0x89e)](),_0x2c96bb={'sessionId':_0x440b71,'dataEnv':_0x9124e2,'type':_0x4054f3,'filter':filter??null,'version':0x0,'createdAt':_0x2f3092,'expiresAt':_0x2f3092+_0x1692ad};return await _0x3aec2c[_0x25b002(0x27f)](_0x125447,_0x440b71,_0x2c96bb,{'ttl':_0x1692ad}),{'sessionId':_0x440b71,'version':0x0};}['getSession'](_0x16de25){const _0x1d1cc7=_0x226419;if(!_0x16de25)return null;return this[_0x1d1cc7(0x51f)]()[_0x1d1cc7(0x63c)](_0x125447,String(_0x16de25))??null;}async[_0x226419(0x4d0)](_0x40ff97){const _0x34b576=_0x226419,_0x41b0cb=this['_env'](),_0x5c42f9=String(_0x40ff97);if(!_0x41b0cb[_0x34b576(0x63c)](_0x125447,_0x5c42f9))return![];return await _0x41b0cb[_0x34b576(0x42f)](_0x125447,_0x5c42f9),!![];}async[_0x226419(0x5e4)](_0x3d4387){const _0x588296=_0x226419,_0x1fcd44=this['_env'](),_0x2b8051=String(_0x3d4387),_0x31b81e=_0x1fcd44[_0x588296(0x63c)](_0x125447,_0x2b8051);if(!_0x31b81e)return null;const _0x3eb3f4=(Number[_0x588296(0x5ef)](_0x31b81e['version'])?_0x31b81e['version']:0x0)+0x1;return await _0x1fcd44['put'](_0x125447,_0x2b8051,{..._0x31b81e,'version':_0x3eb3f4}),_0x3eb3f4;}async[_0x226419(0x32f)](_0x4d8116,_0x4701b){const _0x32ace3=_0x226419,_0x34b8ce=this[_0x32ace3(0x51f)](),_0x592dde=String(_0x4d8116);if(!_0x34b8ce[_0x32ace3(0x63c)](_0x125447,_0x592dde))return![];const _0x57a9d5=Number['isFinite'](_0x4701b)&&_0x4701b>0x0?_0x4701b:this[_0x32ace3(0x5b3)];if(this[_0x32ace3(0x3fc)](_0x592dde))return![];return await _0x34b8ce[_0x32ace3(0x397)](_0x125447,_0x592dde,_0x57a9d5),await this[_0x32ace3(0x713)](_0x592dde,_0x57a9d5),!![];}async['refreshTtlBatch'](_0x1e0634,_0x1ad902){const _0x472f35=_0x226419,_0x523689=this['_env'](),_0x388d72=Number[_0x472f35(0x5ef)](_0x1ad902)&&_0x1ad902>0x0?_0x1ad902:this[_0x472f35(0x5b3)],_0x2d8101=Date[_0x472f35(0x89e)](),_0x287a4e=[];for(const _0x43d9c1 of _0x1e0634||[]){const _0x12290c=String(_0x43d9c1),_0x4be073=_0x523689['get'](_0x125447,_0x12290c);if(!_0x4be073)continue;if(this[_0x472f35(0x3fc)](_0x12290c,_0x2d8101))continue;_0x287a4e[_0x472f35(0x2fb)]({'id':_0x12290c,'cur':_0x4be073});}if(_0x287a4e[_0x472f35(0x6cf)]===0x0)return[];return await _0x523689[_0x472f35(0x27c)](async _0x21445c=>{const _0x3a43ee=_0x472f35;for(const {id:_0x2d32b7,cur:_0x350249}of _0x287a4e){_0x21445c['put'](_0x125447,_0x2d32b7,{..._0x350249,'expiresAt':_0x2d8101+_0x388d72}),_0x21445c[_0x3a43ee(0x397)](_0x125447,_0x2d32b7,_0x388d72);}}),_0x287a4e[_0x472f35(0x1a7)](_0x47201e=>_0x47201e['id']);}[_0x226419(0x3fc)](_0x445dad,_0x513f24=Date[_0x226419(0x89e)]()){const _0x1b78bf=_0x226419,_0x35687e=this[_0x1b78bf(0x51f)]()[_0x1b78bf(0x329)](_0x125447,String(_0x445dad));if(!_0x35687e)return![];return _0x35687e['expiresAt']-_0x513f24>this[_0x1b78bf(0x1de)];}async['_syncExpiresAtField'](_0x58ff4e,_0x2c2bed){const _0x42b0b8=_0x226419,_0x26a5c0=this['_env'](),_0x5154cf=_0x26a5c0['get'](_0x125447,_0x58ff4e);if(!_0x5154cf)return;await _0x26a5c0[_0x42b0b8(0x27f)](_0x125447,_0x58ff4e,{..._0x5154cf,'expiresAt':Date[_0x42b0b8(0x89e)]()+_0x2c2bed});}async[_0x226419(0x480)](_0x7377c1,_0x465c0e,_0x209ce0){const _0x14f74a=_0x226419,_0x27ca40=this[_0x14f74a(0x51f)](),_0x4f60f7=String(_0x7377c1),_0x11b8c0=_0x27ca40[_0x14f74a(0x63c)](_0x125447,_0x4f60f7);if(!_0x11b8c0)throw new Error(_0x14f74a(0x2ca)+_0x4f60f7);const _0x3d5403=_0x4ae891[_0x14f74a(0x770)]();return await _0x27ca40[_0x14f74a(0x27f)](_0x335c8b,_0x3d5403,{'sessionId':_0x4f60f7,'dataEnv':String(_0x11b8c0[_0x14f74a(0x215)]),'type':String(_0x465c0e),'key':String(_0x209ce0)}),_0x3d5403;}async['_commitSessionMutation'](_0x5dd4bf,_0x3b4971,{retries:retries=0x8}={}){const _0x25275a=_0x226419,_0x3f818c=this['_env']();for(let _0x305382=0x0;;_0x305382++){const _0x267030=_0x3f818c[_0x25275a(0x2ec)](_0x125447,_0x5dd4bf);if(!_0x267030)return null;const _0x2cd356=_0x267030[_0x25275a(0x820)],_0x4cfbc8=(Number[_0x25275a(0x5ef)](_0x2cd356[_0x25275a(0x280)])?_0x2cd356[_0x25275a(0x280)]:0x0)+0x1,{sessionPatch:sessionPatch={},applyInterests:applyInterests=null}=_0x3b4971(_0x2cd356,_0x3f818c)||{};try{return await _0x3f818c[_0x25275a(0x27c)](async _0x371cd5=>{const _0x10fc69=_0x25275a;applyInterests?.(_0x371cd5),_0x371cd5[_0x10fc69(0x27f)](_0x125447,_0x5dd4bf,{..._0x2cd356,...sessionPatch,'version':_0x4cfbc8},{'ifVersion':_0x267030['version']});}),_0x4cfbc8;}catch(_0x1c86d1){if(_0x1c86d1?.['code']===_0x25275a(0x17b)&&_0x305382<retries)continue;throw _0x1c86d1;}}}async[_0x226419(0x70d)](_0x50beae,{add:add=[],remove:remove=[]}={}){const _0x345f7a=_0x226419,_0x14498=String(_0x50beae);return this[_0x345f7a(0x577)](_0x14498,(_0x31cd52,_0x66d33f)=>{const _0x48e113=_0x345f7a,_0xcefce4=String(_0x31cd52['dataEnv']),_0x49e621=new Set((remove||[])[_0x48e113(0x1a7)](_0x5cf671=>String(_0x5cf671[_0x48e113(0x673)])+'\x00'+String(_0x5cf671[_0x48e113(0x366)]))),_0x24cd44=[];if(_0x49e621[_0x48e113(0x221)]>0x0)for(const {key:_0x3b82ae,value:_0x1b8f63}of _0x66d33f['getRange'](_0x335c8b,{})){if(!_0x1b8f63||_0x1b8f63['sessionId']!==_0x14498)continue;if(_0x49e621['has'](_0x1b8f63[_0x48e113(0x673)]+'\x00'+_0x1b8f63[_0x48e113(0x366)]))_0x24cd44[_0x48e113(0x2fb)](_0x3b82ae);}const _0x371fcc=(add||[])[_0x48e113(0x1a7)](_0x4485a0=>({'id':_0x4ae891['randomUUID'](),'type':String(_0x4485a0[_0x48e113(0x673)]),'key':String(_0x4485a0[_0x48e113(0x366)])}));return{'applyInterests':_0x25ac70=>{const _0x1355fe=_0x48e113;for(const _0x3fb8a7 of _0x24cd44)_0x25ac70[_0x1355fe(0x42f)](_0x335c8b,_0x3fb8a7);for(const _0x22cf64 of _0x371fcc)_0x25ac70['put'](_0x335c8b,_0x22cf64['id'],{'sessionId':_0x14498,'dataEnv':_0xcefce4,'type':_0x22cf64[_0x1355fe(0x673)],'key':_0x22cf64[_0x1355fe(0x366)]});}};});}async[_0x226419(0x289)](_0x3024a7,_0x30edf6){const _0x574dd5=_0x226419;_0xe634b6(_0x30edf6);const _0x495f22=String(_0x3024a7);return this[_0x574dd5(0x577)](_0x495f22,()=>({'sessionPatch':{'filter':_0x30edf6??null}}));}async['removeInterest'](_0x37b2d8,_0x577666,_0x46dd71){const _0x87f778=_0x226419,_0x52ae87=this[_0x87f778(0x51f)](),_0x576643=String(_0x37b2d8),_0x3de39c=String(_0x577666),_0x1bd99f=String(_0x46dd71),_0x9d9099=[];for(const {key:_0x1ccf41,value:_0x207880}of _0x52ae87[_0x87f778(0x3fa)](_0x335c8b,{})){if(_0x207880&&_0x207880['sessionId']===_0x576643&&_0x207880['type']===_0x3de39c&&_0x207880[_0x87f778(0x366)]===_0x1bd99f)_0x9d9099[_0x87f778(0x2fb)](_0x1ccf41);}for(const _0x215014 of _0x9d9099)await _0x52ae87[_0x87f778(0x42f)](_0x335c8b,_0x215014);return _0x9d9099[_0x87f778(0x6cf)];}async[_0x226419(0x553)](_0x1df4d8,_0x3109ed){const _0x5cbeac=_0x226419,_0xa97979=String(_0x1df4d8);return this[_0x5cbeac(0x577)](_0xa97979,(_0x44728e,_0x47da52)=>{const _0x38ac54=_0x5cbeac,_0xd4cbf9=String(_0x44728e[_0x38ac54(0x215)]),_0x537024=[];for(const {key:_0x74a81f,value:_0x5f0b41}of _0x47da52[_0x38ac54(0x3fa)](_0x335c8b,{})){if(_0x5f0b41&&_0x5f0b41[_0x38ac54(0x7d9)]===_0xa97979)_0x537024[_0x38ac54(0x2fb)](_0x74a81f);}const _0x577239=(_0x3109ed||[])['map'](_0x293685=>({'id':_0x4ae891[_0x38ac54(0x770)](),'type':String(_0x293685['type']),'key':String(_0x293685[_0x38ac54(0x366)])}));return{'applyInterests':_0x5422ff=>{const _0x1f6b77=_0x38ac54;for(const _0x184e37 of _0x537024)_0x5422ff['remove'](_0x335c8b,_0x184e37);for(const _0x532ffa of _0x577239)_0x5422ff[_0x1f6b77(0x27f)](_0x335c8b,_0x532ffa['id'],{'sessionId':_0xa97979,'dataEnv':_0xd4cbf9,'type':_0x532ffa[_0x1f6b77(0x673)],'key':_0x532ffa['key']});}};});}['sessionsForKey'](_0x4c6b83,_0xf291c7,_0x419f89){const _0x187401=_0x226419,_0x1b0d74=this[_0x187401(0x51f)](),_0x160f25=String(_0x4c6b83),_0x36263a=String(_0xf291c7),_0x35f0dd=String(_0x419f89),_0x3065fa=new Set();for(const {value:_0x5427e3}of _0x1b0d74[_0x187401(0x2c0)](_0x335c8b,_0x26afe5,{'start':[_0x160f25,_0x36263a,_0x35f0dd],'end':[_0x160f25,_0x36263a,_0x35f0dd,'￿']})){if(_0x5427e3&&_0x5427e3[_0x187401(0x7d9)])_0x3065fa[_0x187401(0x7df)](_0x5427e3['sessionId']);}return[..._0x3065fa];}['filterSessionsForType'](_0x52f0dc,_0x1a0af3){const _0x325d01=_0x226419,_0x17df6e=this[_0x325d01(0x51f)](),_0xc42732=String(_0x52f0dc),_0x252f78=String(_0x1a0af3),_0x2f1f54=[];for(const {value:_0x3139c8}of _0x17df6e[_0x325d01(0x2c0)](_0x125447,_0x56aef8,{'start':[_0xc42732,_0x252f78],'end':[_0xc42732,_0x252f78,'\uffff']})){if(!_0x3139c8||_0x3139c8['dataEnv']!==_0xc42732||_0x3139c8[_0x325d01(0x673)]!==_0x252f78)continue;if(_0x3139c8['filter']==null)continue;_0x2f1f54[_0x325d01(0x2fb)]({'sessionId':_0x3139c8['sessionId'],'filter':_0x3139c8['filter'],'version':Number[_0x325d01(0x5ef)](_0x3139c8[_0x325d01(0x280)])?_0x3139c8[_0x325d01(0x280)]:0x0});}return _0x2f1f54;}async[_0x226419(0x5b0)](){const _0x17a929=_0x226419;return this[_0x17a929(0x51f)]()[_0x17a929(0x6f7)]();}}return okdbSubscriptionsStore['exports']=_0x2b7974,okdbSubscriptionsStore[_0x226419(0x3be)][_0x226419(0x5c4)]=_0x42eb58,okdbSubscriptionsStore['exports'][_0x226419(0x6a0)]=_0x125447,okdbSubscriptionsStore[_0x226419(0x3be)]['T_INTEREST']=_0x335c8b,okdbSubscriptionsStore['exports'][_0x226419(0x3e0)]=_0x26afe5,okdbSubscriptionsStore[_0x226419(0x3be)][_0x226419(0x42e)]=_0x56aef8,okdbSubscriptionsStore['exports'][_0x226419(0x279)]=_0x11b967,okdbSubscriptionsStore[_0x226419(0x3be)];}var version='3.1.4',require$$29={'version':version},okdbEnginesEnums,hasRequiredOkdbEnginesEnums;function requireOkdbEnginesEnums(){const _0x2e8299=_0x2ec26e;if(hasRequiredOkdbEnginesEnums)return okdbEnginesEnums;hasRequiredOkdbEnginesEnums=0x1;const _0x31e6bf=_0x2e8299(0x653),_0x2471ad=0xa,_0xa6d147=Object[_0x2e8299(0x62b)]({'CREATED':_0x2e8299(0x244),'ONLINE':_0x2e8299(0x714),'STOPPED':_0x2e8299(0x2d9),'INACTIVE':'inactive','ERROR':_0x2e8299(0x254),'REMOVED':_0x2e8299(0x384)}),_0x115f47=Object[_0x2e8299(0x62b)]({'STARTED':_0x2e8299(0x1ce),'STOPPED':'stopped','ERROR':'error','INSTALLED':'installed','UNINSTALLED':_0x2e8299(0x674)}),_0x27b8f3=Object[_0x2e8299(0x62b)](new Set([_0xa6d147[_0x2e8299(0x400)],_0xa6d147[_0x2e8299(0x5ee)],_0xa6d147[_0x2e8299(0x16d)],_0xa6d147[_0x2e8299(0x482)]]));function _0x40b3de(_0x34512c){const _0x1a66e1=_0x2e8299;return _0x34512c?.[_0x1a66e1(0x580)]===![]?_0xa6d147[_0x1a66e1(0x5ee)]:_0x1a66e1(0x1f1);}return okdbEnginesEnums={'TYPE_ENGINES':_0x31e6bf,'MAX_UPDATE_RETRIES':_0x2471ad,'ENGINE_STATUS':_0xa6d147,'ENGINE_EVENTS':_0x115f47,'UPDATABLE_STATUSES':_0x27b8f3,'durableOnlyEngineState':_0x40b3de},okdbEnginesEnums;}var enums,hasRequiredEnums;function requireEnums(){const _0x38b358=_0x2ec26e;if(hasRequiredEnums)return enums;hasRequiredEnums=0x1;const _0xa7421a=Object[_0x38b358(0x62b)]({'EMBEDDER':'embedder','INDEXER':_0x38b358(0x25c),'SEARCH':'vector-search','WORKER':_0x38b358(0x6ca)}),_0x4224e9=Object[_0x38b358(0x62b)]({'PENDING':_0x38b358(0x35d),'DONE':_0x38b358(0x3b5),'FAILED':_0x38b358(0x719),'DELETED':_0x38b358(0x1cc)}),_0x3c9d13=Object['freeze']({'INDEXER_READY':_0x38b358(0x7ca),'INDEXER_FLUSHED':_0x38b358(0x5e0),'INDEXER_DOC_DONE':_0x38b358(0x37f),'INDEXER_DOC_FAILED':_0x38b358(0x783),'INDEXER_DOC_QUEUED':_0x38b358(0x680),'STRATEGY_REGISTERED':_0x38b358(0x623),'DOC_STATUS_CHANGE':_0x38b358(0x4e2),'PIPELINE_READY':_0x38b358(0x6cb)}),_0x5f0c5d=Object[_0x38b358(0x62b)]({'MODELS':_0x38b358(0x677),'DOC_STATUS_PREFIX':'doc_status:','VEC_PREFIX':_0x38b358(0x612)});return enums={'ENGINE_TYPES':_0xa7421a,'INDEXER_DOC_STATUS':_0x4224e9,'EMBEDDINGS_EVENTS':_0x3c9d13,'INTERNAL_TYPES':_0x5f0c5d},enums;}var okdbQueueValidate,hasRequiredOkdbQueueValidate;function requireOkdbQueueValidate(){const _0xaaefe=_0x2ec26e;if(hasRequiredOkdbQueueValidate)return okdbQueueValidate;hasRequiredOkdbQueueValidate=0x1;const _0xbc8159=Object[_0xaaefe(0x62b)]({'PENDING':'pending','RUNNING':'running','DONE':_0xaaefe(0x3b5),'FAILED':_0xaaefe(0x719)}),_0x3fd6ea=Object['freeze']({'ACTIVE':_0xaaefe(0x372),'PAUSED':_0xaaefe(0x281),'DRAINING':'draining'}),_0x389bcd=Object[_0xaaefe(0x62b)]({'ENQUEUED':_0xaaefe(0x469),'DONE':_0xaaefe(0x661),'FAILED':_0xaaefe(0x5b7),'RETRY':_0xaaefe(0x859),'RESCHEDULED':_0xaaefe(0x6b7),'REMOVED':_0xaaefe(0x75a),'RECONCILED':_0xaaefe(0x753),'CLEAR_PROGRESS':_0xaaefe(0x6d0),'CLEAR_DONE':_0xaaefe(0x239),'LOG':_0xaaefe(0x346)}),_0x26f7ff=Object[_0xaaefe(0x62b)]([_0xaaefe(0x65d),'info','warn','error']),_0x17d9e9=0x1,_0x10d0a4=0xc350,_0x569193=0x400,_0x45e521=0x800;function _0x4ecb35(_0xcd50c4){const _0x1ab16a=_0xaaefe;return _0xcd50c4!=null&&typeof _0xcd50c4===_0x1ab16a(0x1be)&&(_0xcd50c4[_0x1ab16a(0x609)]===Object||Object[_0x1ab16a(0x21b)](_0xcd50c4)===null);}function _0x1a66c3(_0x54d441,_0x3cbfef,_0x5b63f5,_0x95c302){if(_0x54d441==null)return _0x3cbfef;const _0x370329=Number(_0x54d441);if(!Number['isFinite'](_0x370329))return _0x3cbfef;const _0x1790b5=Math['trunc'](_0x370329);if(_0x1790b5<_0x5b63f5)return _0x5b63f5;if(_0x1790b5>_0x95c302)return _0x95c302;return _0x1790b5;}function _0xdb187c(_0x594c94){const _0x6a39f0=_0xaaefe;if(!_0x594c94)return[];if(typeof _0x594c94===_0x6a39f0(0x4bb))_0x594c94=[_0x594c94];if(!Array[_0x6a39f0(0x69e)](_0x594c94))throw new Error(_0x6a39f0(0x2a4));const _0xff8393=[],_0x14bdc8=new Set();for(const _0x2f96dc of _0x594c94){if(_0x2f96dc==null)continue;const _0x3f1a70=String(_0x2f96dc)[_0x6a39f0(0x78c)]();if(!_0x3f1a70)continue;if(_0x3f1a70[_0x6a39f0(0x6cf)]>0x80)throw new Error('tag\x20too\x20long');if(_0x14bdc8[_0x6a39f0(0x51e)](_0x3f1a70))continue;_0x14bdc8[_0x6a39f0(0x7df)](_0x3f1a70),_0xff8393[_0x6a39f0(0x2fb)](_0x3f1a70);if(_0xff8393[_0x6a39f0(0x6cf)]>=0x20)break;}return _0xff8393;}function _0x1cd00f(_0x347e26){const _0x3e5c86=_0xaaefe;if(_0x347e26==null)return null;const _0x297616=String(_0x347e26)[_0x3e5c86(0x78c)]();if(!_0x297616)return null;if(_0x297616[_0x3e5c86(0x6cf)]>0x80)throw new Error(_0x3e5c86(0x6de));return _0x297616;}function _0x456c9e(_0xcde9f7,_0xf304e4=0x1){const _0xe2350d=_0xaaefe;if(_0xcde9f7==null)return[];if(typeof _0xcde9f7===_0xe2350d(0x4bb)){const _0x3acf54=_0x1cd00f(_0xcde9f7);if(!_0x3acf54)return[];return[{'id':_0x3acf54,'tokens':_0xf304e4}];}if(!Array['isArray'](_0xcde9f7))throw new Error('buckets\x20must\x20be\x20array\x20or\x20string');const _0x283b0a=[],_0xe46080=new Set();for(const _0x20fbda of _0xcde9f7){let _0x47d7c4,_0x2ba92e;if(Array[_0xe2350d(0x69e)](_0x20fbda))[_0x47d7c4,_0x2ba92e]=_0x20fbda;else{if(_0x20fbda&&typeof _0x20fbda===_0xe2350d(0x1be))({id:_0x47d7c4,tokens:_0x2ba92e}=_0x20fbda);else{if(typeof _0x20fbda===_0xe2350d(0x4bb))_0x47d7c4=_0x20fbda,_0x2ba92e=_0xf304e4;else continue;}}_0x47d7c4=_0x1cd00f(_0x47d7c4);if(!_0x47d7c4)continue;const _0x4ac0d5=_0x2ba92e==null?_0xf304e4:Math[_0xe2350d(0x47a)](Number(_0x2ba92e));if(!Number['isFinite'](_0x4ac0d5)||_0x4ac0d5<0x1)throw new Error(_0xe2350d(0x54f)+_0x47d7c4+_0xe2350d(0x897));if(_0x4ac0d5>0xf4240)throw new Error('bucket\x20\x22'+_0x47d7c4+_0xe2350d(0x4c8));if(_0xe46080['has'](_0x47d7c4))throw new Error(_0xe2350d(0x5f8)+_0x47d7c4);_0xe46080[_0xe2350d(0x7df)](_0x47d7c4),_0x283b0a[_0xe2350d(0x2fb)]({'id':_0x47d7c4,'tokens':_0x4ac0d5});}return _0x283b0a;}function _0xa3471d(_0x1fa1c4,_0x5b580c=0x400){const _0x5e92b6=_0xaaefe;if(_0x1fa1c4==null)return null;const _0x41ce8b=String(_0x1fa1c4)[_0x5e92b6(0x5ca)](0x0,_0x5b580c);return _0x41ce8b||null;}function _0x295463(_0x5e1875){const _0x28c649=_0xaaefe;if(_0x5e1875==null)return null;if(_0x5e1875['key']!==undefined&&_0x5e1875[_0x28c649(0x820)]!==undefined)return _0x5e1875;return{'key':_0x5e1875['id']??null,'value':_0x5e1875};}function _0x2ce976(_0x4a6c82){const _0x53e500=_0xaaefe;let _0x14212d=_0x4a6c82;if(typeof _0x4a6c82===_0x53e500(0x4bb))_0x14212d={'message':_0x4a6c82};if(!_0x4ecb35(_0x14212d))throw new Error(_0x53e500(0x6ae));const _0x3a6e6f=_0x14212d[_0x53e500(0x86c)]==null?'info':String(_0x14212d[_0x53e500(0x86c)])['toLowerCase']();if(!_0x26f7ff[_0x53e500(0x1ac)](_0x3a6e6f))throw new Error(_0x53e500(0x50d)+_0x3a6e6f);if(_0x14212d['message']==null)throw new Error(_0x53e500(0x7b8));const _0x10675b=String(_0x14212d['message'])['slice'](0x0,_0x569193);let _0x5e3f95=null;if(_0x14212d[_0x53e500(0x613)]!=null){if(!_0x4ecb35(_0x14212d[_0x53e500(0x613)]))throw new Error(_0x53e500(0x29f));if(JSON[_0x53e500(0x4d2)](_0x14212d[_0x53e500(0x613)])[_0x53e500(0x6cf)]>_0x45e521)throw new Error(_0x53e500(0x681));_0x5e3f95=_0x14212d[_0x53e500(0x613)];}return{'level':_0x3a6e6f,'message':_0x10675b,'fields':_0x5e3f95,'ts':Date[_0x53e500(0x89e)]()};}function _0x52cb8e(_0x5f1147){const _0x5757da=_0xaaefe;if(_0x5f1147==null)return;if(!Number[_0x5757da(0x40f)](_0x5f1147)||_0x5f1147<_0x17d9e9||_0x5f1147>_0x10d0a4)throw new Error(_0x5757da(0x6ed)+_0x17d9e9+',\x20'+_0x10d0a4+']');}function _0x927530(_0x382341){const _0x43e561=_0xaaefe;if(!_0x4ecb35(_0x382341))throw new Error(_0x43e561(0x440));if(typeof _0x382341['id']!==_0x43e561(0x4bb)||_0x382341['id'][_0x43e561(0x6cf)]<0x8)throw new Error('job.id\x20must\x20be\x20string');if(typeof _0x382341['type']!==_0x43e561(0x4bb)||!_0x382341[_0x43e561(0x673)])throw new Error(_0x43e561(0x4da));if(!Object[_0x43e561(0x89c)](_0xbc8159)[_0x43e561(0x1ac)](_0x382341[_0x43e561(0x1c9)]))throw new Error(_0x43e561(0x6e7)+_0x382341[_0x43e561(0x1c9)]);for(const _0x40f4f9 of[_0x43e561(0x80b),_0x43e561(0x244),_0x43e561(0x57e)]){if(typeof _0x382341[_0x40f4f9]!==_0x43e561(0x5c1)||!Number[_0x43e561(0x5ef)](_0x382341[_0x40f4f9]))throw new Error(_0x43e561(0x808)+_0x40f4f9+'\x20must\x20be\x20number');}if(_0x382341['finished']!=null&&(typeof _0x382341['finished']!==_0x43e561(0x5c1)||!Number[_0x43e561(0x5ef)](_0x382341[_0x43e561(0x2b6)])))throw new Error(_0x43e561(0x200));if(!Number['isInteger'](_0x382341['tries'])||_0x382341[_0x43e561(0x1cd)]<0x0)throw new Error(_0x43e561(0x24b));if(!Number[_0x43e561(0x40f)](_0x382341[_0x43e561(0x689)]))throw new Error(_0x43e561(0x197));if(_0x382341['max_tries']!==null&&_0x382341[_0x43e561(0x314)]!==Infinity&&(!Number[_0x43e561(0x40f)](_0x382341[_0x43e561(0x314)])||_0x382341[_0x43e561(0x314)]<0x1))throw new Error(_0x43e561(0x883));if(_0x382341[_0x43e561(0x83a)]!=null&&(!Number['isInteger'](_0x382341['retry_delay'])||_0x382341[_0x43e561(0x83a)]<0x0))throw new Error('job.retry_delay\x20must\x20be\x20int\x20>=\x200');if(_0x382341[_0x43e561(0x5d4)]!=null&&(typeof _0x382341[_0x43e561(0x5d4)]!=='number'||_0x382341[_0x43e561(0x5d4)]<0x1))throw new Error(_0x43e561(0x398));if(_0x382341[_0x43e561(0x80e)]!=null&&typeof _0x382341['claim_id']!==_0x43e561(0x4bb))throw new Error('job.claim_id\x20must\x20be\x20string|null');if(_0x382341[_0x43e561(0x4d9)]!=null&&(typeof _0x382341['claim_expires']!==_0x43e561(0x5c1)||!Number[_0x43e561(0x5ef)](_0x382341[_0x43e561(0x4d9)])))throw new Error(_0x43e561(0x737));if(_0x382341[_0x43e561(0x744)]!=null&&typeof _0x382341[_0x43e561(0x744)]!=='string')throw new Error('job.bucket\x20must\x20be\x20string|null');if(_0x382341[_0x43e561(0x6c9)]!=null&&(!Number[_0x43e561(0x40f)](_0x382341[_0x43e561(0x6c9)])||_0x382341[_0x43e561(0x6c9)]<0x1))throw new Error(_0x43e561(0x5a2));if(_0x382341[_0x43e561(0x25d)]!=null){if(!Array['isArray'](_0x382341['buckets']))throw new Error(_0x43e561(0x2f0));for(const _0x5271c5 of _0x382341[_0x43e561(0x25d)]){if(!_0x5271c5||typeof _0x5271c5!==_0x43e561(0x1be))throw new Error('job.buckets\x20entries\x20must\x20be\x20objects');if(typeof _0x5271c5['id']!=='string'||!_0x5271c5['id']['trim']())throw new Error('job.buckets[].id\x20must\x20be\x20non-empty\x20string');if(!Number['isInteger'](_0x5271c5[_0x43e561(0x64b)])||_0x5271c5[_0x43e561(0x64b)]<0x1)throw new Error(_0x43e561(0x31c));}}if(_0x382341[_0x43e561(0x6f9)]!=null&&typeof _0x382341['cron']!==_0x43e561(0x4bb))throw new Error(_0x43e561(0x1ae));if(_0x382341[_0x43e561(0x66e)]!=null&&typeof _0x382341[_0x43e561(0x66e)]!==_0x43e561(0x4bb))throw new Error('job.idempotency_key\x20must\x20be\x20string|null');if(!Array[_0x43e561(0x69e)](_0x382341[_0x43e561(0x42a)]))throw new Error(_0x43e561(0x631));if(_0x382341[_0x43e561(0x5da)]!=null&&typeof _0x382341['tag']!==_0x43e561(0x4bb))throw new Error(_0x43e561(0x3a7));if(_0x382341[_0x43e561(0x815)]!=null&&typeof _0x382341[_0x43e561(0x815)]!==_0x43e561(0x4bb))throw new Error(_0x43e561(0x25e));if(_0x382341[_0x43e561(0x4db)]!=null&&typeof _0x382341[_0x43e561(0x4db)]!==_0x43e561(0x4bb))throw new Error(_0x43e561(0x74f));if(_0x382341[_0x43e561(0x589)]!=null&&typeof _0x382341[_0x43e561(0x589)]!==_0x43e561(0x4bb))throw new Error(_0x43e561(0x2b1));for(const _0x41b677 of['done_ttl',_0x43e561(0x1db)]){const _0x56cdcb=_0x382341[_0x41b677];if(_0x56cdcb!=null&&(!Number['isInteger'](_0x56cdcb)||_0x56cdcb<0x0))throw new Error('job.'+_0x41b677+'\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer');}_0x52cb8e(_0x382341[_0x43e561(0x19b)]);}function _0x57908a(_0x36d8b0){const _0x5bccbb=_0xaaefe;if(!_0x4ecb35(_0x36d8b0))throw new Error(_0x5bccbb(0x3ca));if(typeof _0x36d8b0['id']!==_0x5bccbb(0x4bb)||!_0x36d8b0['id'][_0x5bccbb(0x78c)]())throw new Error(_0x5bccbb(0x563));if(!Object['values'](_0x3fd6ea)['includes'](_0x36d8b0['status']))throw new Error(_0x5bccbb(0x3bd)+_0x36d8b0[_0x5bccbb(0x1c9)]);if(_0x36d8b0[_0x5bccbb(0x23f)]!=null&&(!Number['isInteger'](_0x36d8b0['max_concurrency'])||_0x36d8b0['max_concurrency']<0x1))throw new Error(_0x5bccbb(0x33e));if(_0x36d8b0[_0x5bccbb(0x6fd)]!=null){if(!_0x4ecb35(_0x36d8b0[_0x5bccbb(0x6fd)]))throw new Error(_0x5bccbb(0x535));const _0x13c90e=_0x36d8b0[_0x5bccbb(0x6fd)];if(_0x13c90e[_0x5bccbb(0x314)]!=null&&(!Number['isInteger'](_0x13c90e['max_tries'])||_0x13c90e[_0x5bccbb(0x314)]<0x1))throw new Error(_0x5bccbb(0x315));if(_0x13c90e[_0x5bccbb(0x83a)]!=null&&(!Number['isInteger'](_0x13c90e[_0x5bccbb(0x83a)])||_0x13c90e['retry_delay']<0x0))throw new Error(_0x5bccbb(0x5c9));if(_0x13c90e['backoff_multiplier']!=null&&(typeof _0x13c90e[_0x5bccbb(0x5d4)]!=='number'||_0x13c90e[_0x5bccbb(0x5d4)]<0x1))throw new Error(_0x5bccbb(0x2e5));if(_0x13c90e[_0x5bccbb(0x689)]!=null&&!Number['isInteger'](_0x13c90e[_0x5bccbb(0x689)]))throw new Error(_0x5bccbb(0x5b5));if(_0x13c90e[_0x5bccbb(0x463)]!=null&&(!Number[_0x5bccbb(0x40f)](_0x13c90e[_0x5bccbb(0x463)])||_0x13c90e[_0x5bccbb(0x463)]<0x0))throw new Error(_0x5bccbb(0x2c3));for(const _0xc3f0c0 of[_0x5bccbb(0x44a),_0x5bccbb(0x1db)]){if(_0x13c90e[_0xc3f0c0]!=null&&(!Number['isInteger'](_0x13c90e[_0xc3f0c0])||_0x13c90e[_0xc3f0c0]<0x0))throw new Error(_0x5bccbb(0x2cf)+_0xc3f0c0+_0x5bccbb(0x458));}if(_0x13c90e[_0x5bccbb(0x25d)]!=null&&!Array[_0x5bccbb(0x69e)](_0x13c90e[_0x5bccbb(0x25d)]))throw new Error(_0x5bccbb(0x773));_0x52cb8e(_0x13c90e[_0x5bccbb(0x19b)]);}if(_0x36d8b0[_0x5bccbb(0x590)]!=null){if(!_0x4ecb35(_0x36d8b0[_0x5bccbb(0x590)]))throw new Error(_0x5bccbb(0x663));if(!_0x4ecb35(_0x36d8b0['payload_schema'][_0x5bccbb(0x814)]))throw new Error(_0x5bccbb(0x834));if(typeof _0x36d8b0[_0x5bccbb(0x590)][_0x5bccbb(0x3b2)]!==_0x5bccbb(0x84f))throw new Error(_0x5bccbb(0x285));}for(const _0x101ee6 of[_0x5bccbb(0x892),_0x5bccbb(0x465)]){if(typeof _0x36d8b0[_0x101ee6]!==_0x5bccbb(0x5c1)||!Number[_0x5bccbb(0x5ef)](_0x36d8b0[_0x101ee6]))throw new Error('job_type.'+_0x101ee6+_0x5bccbb(0x760));}}function _0xc281eb(_0x2f491c){const _0x133f81=_0xaaefe;if(!_0x4ecb35(_0x2f491c))throw new Error(_0x133f81(0x470));if(typeof _0x2f491c['id']!==_0x133f81(0x4bb)||!_0x2f491c['id'][_0x133f81(0x78c)]())throw new Error(_0x133f81(0x235));if(!Number[_0x133f81(0x40f)](_0x2f491c[_0x133f81(0x64b)])||_0x2f491c[_0x133f81(0x64b)]<0x0)throw new Error('bucket.tokens\x20must\x20be\x20int\x20>=\x200');if(!Number[_0x133f81(0x40f)](_0x2f491c['capacity'])||_0x2f491c[_0x133f81(0x658)]<0x0)throw new Error(_0x133f81(0x452));if(_0x2f491c[_0x133f81(0x64b)]>_0x2f491c[_0x133f81(0x658)])throw new Error(_0x133f81(0x2ce));if(!Number[_0x133f81(0x40f)](_0x2f491c[_0x133f81(0x6e4)])||_0x2f491c['refill_amount']<0x0)throw new Error(_0x133f81(0x7ac));if(!Number[_0x133f81(0x40f)](_0x2f491c['refill_every'])||_0x2f491c[_0x133f81(0x331)]<0x0)throw new Error(_0x133f81(0x390));if(typeof _0x2f491c[_0x133f81(0x57e)]!==_0x133f81(0x5c1)||!Number[_0x133f81(0x5ef)](_0x2f491c[_0x133f81(0x57e)]))throw new Error(_0x133f81(0x52c));}return okdbQueueValidate={'STATUS':_0xbc8159,'JOB_TYPE_STATUS':_0x3fd6ea,'QUEUE_EVENTS':_0x389bcd,'LOG_LEVELS':_0x26f7ff,'LOG_CAP_MIN':_0x17d9e9,'LOG_CAP_MAX':_0x10d0a4,'clampInt':_0x1a66c3,'asNullableString':_0xa3471d,'normalizeResult':_0x295463,'normalizeTags':_0xdb187c,'normalizeBucket':_0x1cd00f,'normalizeBuckets':_0x456c9e,'normalizeLogEntry':_0x2ce976,'validateJobShape':_0x927530,'validateJobTypeShape':_0x57908a,'validateBucketShape':_0xc281eb},okdbQueueValidate;}var okdbTimers,hasRequiredOkdbTimers;function requireOkdbTimers(){if(hasRequiredOkdbTimers)return okdbTimers;hasRequiredOkdbTimers=0x1;const _0x5a8ae3=0x2**0x1f-0x1;function _0x2991b2(_0x1b9cfc){if(!(_0x1b9cfc>0x0))return 0x0;return _0x1b9cfc>_0x5a8ae3?_0x5a8ae3:_0x1b9cfc;}function _0xa4907(_0x37f1cc){return _0x37f1cc===Infinity;}return okdbTimers={'MAX_TIMER_DELAY':_0x5a8ae3,'clampTimerDelay':_0x2991b2,'isNeverDelay':_0xa4907},okdbTimers;}var okdbChangefeed,hasRequiredOkdbChangefeed;function requireOkdbChangefeed(){const _0x4be527=_0x2ec26e;if(hasRequiredOkdbChangefeed)return okdbChangefeed;hasRequiredOkdbChangefeed=0x1;const _0x513ee3=require$$0$6,{clampTimerDelay:_0xa7e58c}=requireOkdbTimers(),{EVENTS:_0x4cb723,CHANGE_ACTIONS:_0x210c08}=requireOkdbEnums(),{LOOP:_0x24454c}=requireOkdbLoopMonitor(),_0x392f87=Number(process.env.OKDB_CHANGEFEED_QUANTUM)||0x3e8,_0x5ad3a6=0x5,_0x56dae1=0x2710;class _0x3f0312 extends _0x513ee3{constructor(_0x3c2558,_0x586ed1={}){const _0x67664c=_0x3ebb;super(),this[_0x67664c(0x21e)]=_0x3c2558,this['_quantum']=_0x586ed1[_0x67664c(0x74a)]??_0x392f87,this[_0x67664c(0x165)]=_0x586ed1[_0x67664c(0x4b4)]??_0x5ad3a6,this[_0x67664c(0x38d)]=_0x586ed1[_0x67664c(0x5fd)]??_0x56dae1,this['_started']=![],this[_0x67664c(0x373)]=new Map(),this[_0x67664c(0x769)]=new Map(),this[_0x67664c(0x2bd)]=new Map(),this[_0x67664c(0x3ba)]=null,this[_0x67664c(0x873)]=![],this[_0x67664c(0x4b7)]=new Set(),this[_0x67664c(0x376)]=new Set(),this[_0x67664c(0x7ff)]=_0x5e575e=>this[_0x67664c(0x6b1)](_0x5e575e),this['_onPending']=_0x28a142=>this[_0x67664c(0x51c)](_0x28a142),this[_0x67664c(0x60b)]=_0x11ea81=>this[_0x67664c(0x829)](_0x11ea81),this['_onStop']=()=>this['stop']();}[_0x4be527(0x898)](){const _0x432f0c=_0x4be527;if(this['_started'])return;this[_0x432f0c(0x3cb)]=!![];for(const [_0x379f8b,_0x195743]of this[_0x432f0c(0x21e)]['_envs']){if(_0x379f8b[_0x432f0c(0x6c8)]('~'))continue;try{_0x195743[_0x432f0c(0x29e)]();}catch{}}for(const [_0x196c28,_0x4acdda]of this['okdb']['_envs']){if(_0x196c28[_0x432f0c(0x6c8)]('~'))continue;try{this[_0x432f0c(0x769)][_0x432f0c(0x328)](_0x196c28,_0x4acdda[_0x432f0c(0x45e)]()||0x0);}catch{}}const {events:_0x4d1c9d}=this['okdb'];_0x4d1c9d['on'](_0x4cb723[_0x432f0c(0x266)],this[_0x432f0c(0x4b9)]),_0x4d1c9d['on'](_0x4cb723['ITEM_CREATE'],this['_onItem']),_0x4d1c9d['on'](_0x4cb723[_0x432f0c(0x3d4)],this[_0x432f0c(0x7ff)]),_0x4d1c9d['on'](_0x4cb723[_0x432f0c(0x255)],this[_0x432f0c(0x7ff)]),_0x4d1c9d['on'](_0x4cb723[_0x432f0c(0x46e)],this[_0x432f0c(0x60b)]),_0x4d1c9d['once'](_0x4cb723['SYSTEM_STOPPED'],this['_onStop']);}[_0x4be527(0x893)](){const _0x4339b4=_0x4be527;if(!this[_0x4339b4(0x3cb)])return;this[_0x4339b4(0x3cb)]=![];const {events:_0xa6b0a8}=this[_0x4339b4(0x21e)];_0xa6b0a8[_0x4339b4(0x304)](_0x4cb723[_0x4339b4(0x266)],this['_onPending']),_0xa6b0a8[_0x4339b4(0x304)](_0x4cb723[_0x4339b4(0x621)],this[_0x4339b4(0x7ff)]),_0xa6b0a8[_0x4339b4(0x304)](_0x4cb723['ITEM_UPDATE'],this[_0x4339b4(0x7ff)]),_0xa6b0a8['off'](_0x4cb723['ITEM_REMOVE'],this[_0x4339b4(0x7ff)]),_0xa6b0a8['off'](_0x4cb723[_0x4339b4(0x46e)],this[_0x4339b4(0x60b)]);try{_0xa6b0a8['off'](_0x4cb723['SYSTEM_STOPPED'],this[_0x4339b4(0x4c9)]);}catch{}this[_0x4339b4(0x3ba)]&&(clearTimeout(this[_0x4339b4(0x3ba)]),this[_0x4339b4(0x3ba)]=null),this[_0x4339b4(0x2bd)][_0x4339b4(0x871)](),this[_0x4339b4(0x373)][_0x4339b4(0x871)](),this[_0x4339b4(0x769)][_0x4339b4(0x871)](),this['_seen'][_0x4339b4(0x871)](),this[_0x4339b4(0x376)][_0x4339b4(0x871)]();}['_dedupeKey'](_0x48b8e1,_0x1884b0,_0x1969a6,_0x588614){return _0x48b8e1+'\x00'+_0x1884b0+'\x00'+_0x1969a6+'\x00'+_0x588614;}[_0x4be527(0x49c)](_0xca8d2d,_0x264ba2,_0xe51a6e,_0x154ba6){const _0x47e3ff=_0x4be527,_0x4b92c3=this[_0x47e3ff(0x7f5)](_0xca8d2d,_0x264ba2,_0xe51a6e,_0x154ba6);if(this[_0x47e3ff(0x4b7)][_0x47e3ff(0x51e)](_0x4b92c3))return![];this[_0x47e3ff(0x4b7)][_0x47e3ff(0x7df)](_0x4b92c3);if(this[_0x47e3ff(0x4b7)][_0x47e3ff(0x221)]>this[_0x47e3ff(0x38d)]){const _0x1082dc=this[_0x47e3ff(0x4b7)][_0x47e3ff(0x89c)]()[_0x47e3ff(0x788)]()[_0x47e3ff(0x820)];this[_0x47e3ff(0x4b7)][_0x47e3ff(0x82f)](_0x1082dc);}return!![];}[_0x4be527(0x51c)](_0x4f53dc){const _0x15f485=_0x4be527;if(!this[_0x15f485(0x3cb)]||!_0x4f53dc)return;const {env:_0x27995b,type:_0x109597,key:_0x2bcba5,clock:_0x23f6bc}=_0x4f53dc;if(_0x27995b==null||_0x109597==null||_0x2bcba5==null)return;if(typeof _0x27995b==='string'&&_0x27995b[_0x15f485(0x6c8)]('~'))return;if(typeof _0x109597===_0x15f485(0x4bb)&&_0x109597['startsWith']('~'))return;this[_0x15f485(0x376)][_0x15f485(0x7df)](this['_dedupeKey'](_0x27995b,_0x109597,_0x2bcba5,_0x23f6bc)),this[_0x15f485(0x376)][_0x15f485(0x221)]>this[_0x15f485(0x38d)]&&this['_pendingLocal'][_0x15f485(0x82f)](this['_pendingLocal'][_0x15f485(0x89c)]()[_0x15f485(0x788)]()[_0x15f485(0x820)]);}[_0x4be527(0x6b1)](_0x230387){const _0x258a56=_0x4be527;if(!this[_0x258a56(0x3cb)]||!_0x230387)return;const {env:_0x484468,type:_0xf6aab1,key:_0x30a58f,clock:_0x1a189e,origin:_0x32266f,action:_0x40cf58,newValue:_0x341bef,oldValue:_0x56e42c}=_0x230387;if(_0x484468==null||_0xf6aab1==null||_0x30a58f==null)return;if(typeof _0x484468===_0x258a56(0x4bb)&&_0x484468[_0x258a56(0x6c8)]('~'))return;if(typeof _0xf6aab1===_0x258a56(0x4bb)&&_0xf6aab1['startsWith']('~'))return;this[_0x258a56(0x376)]['delete'](this[_0x258a56(0x7f5)](_0x484468,_0xf6aab1,_0x30a58f,_0x1a189e));if(!this[_0x258a56(0x49c)](_0x484468,_0xf6aab1,_0x30a58f,_0x1a189e))return;const _0x2928a0=_0x40cf58===_0x210c08['REMOVE']?_0x258a56(0x42f):_0x258a56(0x27f);this[_0x258a56(0x6d6)](_0x258a56(0x688),{'env':_0x484468,'type':_0xf6aab1,'key':_0x30a58f,'op':_0x2928a0,'clock':_0x1a189e,'origin':_0x32266f,'value':_0x2928a0===_0x258a56(0x42f)?null:_0x341bef,'prevValue':_0x56e42c});}[_0x4be527(0x829)](_0xc0853){const _0x1c8ad7=_0x4be527;if(!this[_0x1c8ad7(0x3cb)])return;if(!_0xc0853||typeof _0xc0853[_0x1c8ad7(0x30b)]!==_0x1c8ad7(0x4bb)||typeof _0xc0853[_0x1c8ad7(0x673)]!==_0x1c8ad7(0x4bb))return;const {env:_0x2d97b8,type:_0x3ed7cc}=_0xc0853;if(_0x2d97b8[_0x1c8ad7(0x6c8)]('~')||_0x3ed7cc[_0x1c8ad7(0x6c8)]('~'))return;this[_0x1c8ad7(0x2bd)][_0x1c8ad7(0x328)](_0x2d97b8+'\x00'+_0x3ed7cc,{'env':_0x2d97b8,'type':_0x3ed7cc}),this['_scheduleFlush']();}[_0x4be527(0x6b8)](){const _0x1f6196=_0x4be527;if(this[_0x1f6196(0x3ba)])return;const _0x518f03=()=>{const _0xd6c637=_0x1f6196;this[_0xd6c637(0x3ba)]=null,this['_drain']()[_0xd6c637(0x189)](()=>{});};this[_0x1f6196(0x3ba)]=setTimeout(_0x518f03,_0xa7e58c(this[_0x1f6196(0x165)]));}async[_0x4be527(0x2da)](){const _0x42cada=_0x4be527;if(this[_0x42cada(0x873)]){this[_0x42cada(0x6b8)]();return;}this[_0x42cada(0x873)]=!![];try{const _0x4e9bd1=[...this['_pending'][_0x42cada(0x89c)]()];this[_0x42cada(0x2bd)][_0x42cada(0x871)]();let _0x28cfbb=![];for(const {env:_0x29dc46,type:_0x27d14b}of _0x4e9bd1){try{const _0x415b06=await this[_0x42cada(0x505)](_0x29dc46,_0x27d14b);if(_0x415b06)_0x28cfbb=!![];}catch{this[_0x42cada(0x2bd)]['set'](_0x29dc46+'\x00'+_0x27d14b,{'env':_0x29dc46,'type':_0x27d14b}),_0x28cfbb=!![];}}if(_0x28cfbb||this[_0x42cada(0x2bd)][_0x42cada(0x221)]>0x0)this['_scheduleFlush']();}finally{this[_0x42cada(0x873)]=![];}}async[_0x4be527(0x505)](_0x5d936b,_0x5d8821){const _0x2cb657=_0x4be527,_0x301cf7=await this[_0x2cb657(0x21e)][_0x2cb657(0x7e2)](_0x5d936b),_0x89c4e5=_0x5d936b+'\x00'+_0x5d8821;!this[_0x2cb657(0x373)][_0x2cb657(0x51e)](_0x89c4e5)&&(!this[_0x2cb657(0x769)]['has'](_0x5d936b)&&(_0x301cf7['_enableChangelog'](),this[_0x2cb657(0x769)][_0x2cb657(0x328)](_0x5d936b,_0x301cf7[_0x2cb657(0x45e)]()||0x0)),this[_0x2cb657(0x373)][_0x2cb657(0x328)](_0x89c4e5,this[_0x2cb657(0x769)]['get'](_0x5d936b)));const _0x28a986=this['_cursors'][_0x2cb657(0x63c)](_0x89c4e5),_0x3de879=_0x301cf7[_0x2cb657(0x45e)](_0x5d8821)||0x0;if(_0x3de879<=_0x28a986)return![];const _0x2487ea=_0x28a986+this[_0x2cb657(0x188)],_0x4890b5=Math[_0x2cb657(0x5a9)](_0x3de879,_0x2487ea),_0x5d3d50=_0x24454c[_0x2cb657(0x580)]?_0x24454c[_0x2cb657(0x89e)]():0x0,_0x39ff10=Array['from'](_0x301cf7[_0x2cb657(0x267)](_0x5d8821,_0x28a986+0x1,_0x4890b5));let _0x3b86ff=_0x28a986;for(const _0x4e13d2 of _0x39ff10){const {clock:_0x3ef87d,key:_0xc3aa71,action:_0x2add58,origin:_0xb12b25}=_0x4e13d2;if(_0x3ef87d>_0x3b86ff)_0x3b86ff=_0x3ef87d;if(_0xc3aa71==null)continue;if(this['_pendingLocal'][_0x2cb657(0x51e)](this['_dedupeKey'](_0x5d936b,_0x5d8821,_0xc3aa71,_0x3ef87d)))continue;if(!this[_0x2cb657(0x49c)](_0x5d936b,_0x5d8821,_0xc3aa71,_0x3ef87d))continue;let _0x3332be,_0x288080;if(_0x2add58===_0x210c08[_0x2cb657(0x6a2)])_0x3332be='remove',_0x288080=null;else{const _0x148d35=_0x301cf7[_0x2cb657(0x63c)](_0x5d8821,_0xc3aa71);_0x148d35==null?(_0x3332be=_0x2cb657(0x42f),_0x288080=null):(_0x3332be=_0x2cb657(0x27f),_0x288080=_0x148d35);}this[_0x2cb657(0x6d6)](_0x2cb657(0x688),{'env':_0x5d936b,'type':_0x5d8821,'key':_0xc3aa71,'op':_0x3332be,'clock':_0x3ef87d,'origin':_0xb12b25,'value':_0x288080});}if(_0x24454c[_0x2cb657(0x580)])_0x24454c['note']('feed:'+_0x5d936b+':'+_0x5d8821,_0x24454c[_0x2cb657(0x89e)]()-_0x5d3d50,'n='+_0x39ff10[_0x2cb657(0x6cf)]);return this['_cursors'][_0x2cb657(0x328)](_0x89c4e5,Math['max'](_0x3b86ff,_0x4890b5)),_0x301cf7[_0x2cb657(0x45e)](_0x5d8821)>_0x4890b5;}[_0x4be527(0x1c9)](){const _0x37c5ae=_0x4be527;return{'started':this[_0x37c5ae(0x3cb)],'quantum':this[_0x37c5ae(0x188)],'flushDebounce':this[_0x37c5ae(0x165)],'cursors':Object[_0x37c5ae(0x804)]([...this['_cursors'][_0x37c5ae(0x72a)]()]['map'](([_0x266bc3,_0x109219])=>[_0x266bc3[_0x37c5ae(0x861)]('\x00',':'),_0x109219])),'pending':this['_pending']['size'],'seen':this[_0x37c5ae(0x4b7)][_0x37c5ae(0x221)]};}}return _0x3f0312[_0x4be527(0x641)]=_0x392f87,okdbChangefeed={'OKDBChangefeed':_0x3f0312},okdbChangefeed;}var okdbRelay,hasRequiredOkdbRelay;function requireOkdbRelay(){const _0x588f19=_0x2ec26e;if(hasRequiredOkdbRelay)return okdbRelay;hasRequiredOkdbRelay=0x1;const {EVENTS:_0x3ab85c}=requireOkdbEnums(),_0x37252f=new Set([_0x3ab85c[_0x588f19(0x621)],_0x3ab85c['ITEM_UPDATE'],_0x3ab85c[_0x588f19(0x255)]]),{ENGINE_EVENTS:_0x500138}=requireOkdbEnginesEnums(),{EMBEDDINGS_EVENTS:_0x17d6fa}=requireEnums(),{QUEUE_EVENTS:_0x3c81d1}=requireOkdbQueueValidate(),_0xd40efb=Object['values'](_0x3ab85c),_0x301785=Object[_0x588f19(0x89c)](_0x500138)['map'](_0x287916=>_0x588f19(0x685)+_0x287916),_0x3242ca=Object[_0x588f19(0x89c)](_0x17d6fa),_0x5dfef3=Object['values'](_0x3c81d1),_0x3139db=[_0x588f19(0x63f),_0x588f19(0x428),'processor:error',_0x588f19(0x642),_0x588f19(0x5d3),_0x588f19(0x531)],_0x4354bb=[..._0xd40efb,..._0x301785,..._0x3242ca,..._0x5dfef3,..._0x3139db,_0x588f19(0x793)],_0x3e69b2=new Set(_0x4354bb),_0x39e7b6=new Set([_0x3ab85c[_0x588f19(0x621)],_0x3ab85c[_0x588f19(0x3d4)],_0x3ab85c['ITEM_REMOVE'],_0x3ab85c[_0x588f19(0x67e)],_0x3ab85c[_0x588f19(0x63e)],_0x3ab85c[_0x588f19(0x3b4)],_0x3ab85c[_0x588f19(0x706)],_0x3ab85c['INDEX_PROGRESS'],_0x17d6fa[_0x588f19(0x38c)],_0x17d6fa[_0x588f19(0x297)],_0x17d6fa[_0x588f19(0x78d)],_0x17d6fa[_0x588f19(0x76d)],_0x588f19(0x428)]),_0x1f6c05=_0x4354bb[_0x588f19(0x852)](_0x4943a2=>_0x4943a2===_0x588f19(0x793)||!_0x39e7b6[_0x588f19(0x51e)](_0x4943a2)),_0x25285a=0x14,_0x4e66af=0xc8;class _0x459529{constructor(_0x208fea,_0x23604c={}){const _0x518282=_0x588f19;this[_0x518282(0x21e)]=_0x208fea,this[_0x518282(0x87c)]=_0x23604c[_0x518282(0x356)]??_0x25285a,this['_ringSize']=_0x23604c[_0x518282(0x651)]??_0x4e66af,this[_0x518282(0x259)]=new Set(),this[_0x518282(0x429)]=[],this[_0x518282(0x59b)]=[],this[_0x518282(0x5b8)]=null,this[_0x518282(0x44d)]=![],this[_0x518282(0x59e)]=null,this[_0x518282(0x785)]=null;}[_0x588f19(0x3f0)](){const _0x1d3842=_0x588f19;if(this[_0x1d3842(0x44d)])return;this['_attached']=!![];const {okdb:_0x3c8aa1}=this;this[_0x1d3842(0x5b8)]=_0x3c8aa1[_0x1d3842(0x793)][_0x1d3842(0x3f0)](_0xcfc977=>this['_push'](_0x1d3842(0x793),_0xcfc977));for(const _0x2591b9 of _0x4354bb){if(_0x2591b9===_0x1d3842(0x793))continue;const _0xf1adda=_0x37252f[_0x1d3842(0x51e)](_0x2591b9),_0x11aee7=_0x52de7b=>{const _0x352b0e=_0x1d3842;if(_0xf1adda&&this[_0x352b0e(0x59e)])return;this[_0x352b0e(0x2ed)](_0x2591b9,_0x52de7b??{});};_0x3c8aa1[_0x1d3842(0x29a)]['on'](_0x2591b9,_0x11aee7),this[_0x1d3842(0x59b)][_0x1d3842(0x2fb)]({'event':_0x2591b9,'handler':_0x11aee7});}this[_0x1d3842(0x4c9)]=()=>this[_0x1d3842(0x1c5)](),_0x3c8aa1[_0x1d3842(0x29a)]['once'](_0x3ab85c[_0x1d3842(0x87e)],this[_0x1d3842(0x4c9)]);}[_0x588f19(0x1c5)](){const _0x31c83e=_0x588f19;if(!this[_0x31c83e(0x44d)])return;if(this['_onStop']){try{this[_0x31c83e(0x21e)]['events'][_0x31c83e(0x304)](_0x3ab85c[_0x31c83e(0x87e)],this[_0x31c83e(0x4c9)]);}catch{}this[_0x31c83e(0x4c9)]=null;}this[_0x31c83e(0x5b8)]?.(),this[_0x31c83e(0x5b8)]=null;for(const {event:_0x5f4e7c,handler:_0x2986cd}of this[_0x31c83e(0x59b)]){try{this[_0x31c83e(0x21e)][_0x31c83e(0x29a)]['off'](_0x5f4e7c,_0x2986cd);}catch{}}this['_listeners']=[];for(const _0x353759 of this['_connections']){try{_0x353759[_0x31c83e(0x5a1)]?.();}catch{}}this[_0x31c83e(0x259)][_0x31c83e(0x871)](),this['detachFeed'](),this[_0x31c83e(0x44d)]=![];}[_0x588f19(0x222)](_0x46709d){const _0x49a5d5=_0x588f19;if(!_0x46709d||this[_0x49a5d5(0x59e)]===_0x46709d)return;this[_0x49a5d5(0x86a)](),this[_0x49a5d5(0x59e)]=_0x46709d,this[_0x49a5d5(0x785)]=_0x144632=>{const _0x174710=_0x49a5d5;if(!_0x144632)return;const _0x5f1001=_0x144632['op']===_0x174710(0x42f)?_0x3ab85c['ITEM_REMOVE']:_0x3ab85c[_0x174710(0x3d4)];this[_0x174710(0x2ed)](_0x5f1001,_0x144632);},_0x46709d['on']('change',this['_onFeedChange']);}[_0x588f19(0x86a)](){const _0x3961ed=_0x588f19;if(this['_feed']&&this[_0x3961ed(0x785)])try{this[_0x3961ed(0x59e)][_0x3961ed(0x304)](_0x3961ed(0x688),this[_0x3961ed(0x785)]);}catch{}this[_0x3961ed(0x59e)]=null,this[_0x3961ed(0x785)]=null;}[_0x588f19(0x6d2)](_0x338af4,_0x22c562){const _0x14829c=_0x588f19;if(!_0x3e69b2[_0x14829c(0x51e)](_0x338af4))return;this[_0x14829c(0x2ed)](_0x338af4,_0x22c562??{});}[_0x588f19(0x7f3)](_0x2d9e8b,_0x264d21,_0x7b51d1){const _0x265f72=_0x588f19;if(this[_0x265f72(0x259)]['size']>=this['_maxConnections'])return _0x264d21(_0x265f72(0x402),{'message':_0x265f72(0x6f4),'code':_0x265f72(0x53c)}),()=>{};const _0x5311d0=this['_resolveFilter'](_0x2d9e8b),_0x7511c1={'send':_0x264d21,'filter':_0x5311d0,'close':_0x7b51d1??null};this['_connections'][_0x265f72(0x7df)](_0x7511c1);for(const {event:_0x1ba2ea,data:_0x539c51}of this[_0x265f72(0x429)]){if(_0x5311d0[_0x265f72(0x51e)](_0x1ba2ea))try{_0x264d21(_0x1ba2ea,_0x539c51);}catch{}}return()=>this[_0x265f72(0x259)][_0x265f72(0x82f)](_0x7511c1);}[_0x588f19(0x720)](){const _0x368622=_0x588f19;if(this['_feed'])return this[_0x368622(0x59e)];const {OKDBChangefeed:_0x51bcb2}=requireOkdbChangefeed(),_0x4a80a1=new _0x51bcb2(this[_0x368622(0x21e)]);_0x4a80a1['start'](),this[_0x368622(0x222)](_0x4a80a1);if(this[_0x368622(0x21e)]&&!this[_0x368622(0x21e)][_0x368622(0x2f7)])this[_0x368622(0x21e)][_0x368622(0x2f7)]=_0x4a80a1;return this[_0x368622(0x59e)];}get[_0x588f19(0x894)](){const _0x2c2fb7=_0x588f19;return this[_0x2c2fb7(0x259)][_0x2c2fb7(0x221)];}[_0x588f19(0x5e6)](){const _0x2f4aac=_0x588f19;return{'connections':this[_0x2f4aac(0x894)],'bufferSize':this[_0x2f4aac(0x429)]['length'],'attached':this['_attached'],'allEvents':_0x4354bb[_0x2f4aac(0x6cf)],'defaultEvents':_0x1f6c05[_0x2f4aac(0x6cf)]};}static get[_0x588f19(0x1b9)](){return _0x4354bb;}static get[_0x588f19(0x3cf)](){return _0x1f6c05;}static get['HIGH_FREQ_EVENTS'](){return[..._0x39e7b6];}[_0x588f19(0x30e)](_0xcda530){const _0x101bfe=_0x588f19;if(!_0xcda530||!_0xcda530[_0x101bfe(0x6cf)])return new Set(_0x1f6c05);const _0x15523f=_0xcda530[_0x101bfe(0x852)](_0x458e4b=>_0x3e69b2[_0x101bfe(0x51e)](_0x458e4b));return new Set(_0x15523f[_0x101bfe(0x6cf)]?_0x15523f:_0x1f6c05);}[_0x588f19(0x2ed)](_0x4bc1c5,_0x5ec3a7){const _0x419abf=_0x588f19,_0x26fe4a={..._0x5ec3a7,'_ts':_0x5ec3a7?.['_ts']??_0x5ec3a7?.['ts']??Date[_0x419abf(0x89e)]()};this['_buffer'][_0x419abf(0x2fb)]({'event':_0x4bc1c5,'data':_0x26fe4a});if(this[_0x419abf(0x429)][_0x419abf(0x6cf)]>this[_0x419abf(0x45d)])this[_0x419abf(0x429)][_0x419abf(0x7be)]();for(const _0xd0c6b8 of this['_connections']){if(_0xd0c6b8[_0x419abf(0x852)][_0x419abf(0x51e)](_0x4bc1c5))try{_0xd0c6b8['send'](_0x4bc1c5,_0x26fe4a);}catch{}}}}return okdbRelay=_0x459529,okdbRelay;}var hasRequiredLib;function requireLib(){const _0x566dfe=_0x2ec26e;if(hasRequiredLib)return lib['exports'];return hasRequiredLib=0x1,function(_0x590e4f){const _0x4b066e=_0x3ebb,_0x39c370=require$$0$6,{load:_0x5d34c8}=require$$1$1,_0x485c28=requireBridge(),_0x2683a8=requireWritebatch(),{Pumper:_0x4d6866}=requirePump(),{OKDBEnv:_0x2f4b08,HIGH_SENTINEL:_0x30e045}=requireEnv(),{reclass:_0x2354a9,NotImplementedNative:_0x564778,OKDBError:_0x2c63fb,optionsArg:_0x4b8cd1,invalidArgument:_0x5b2ba6}=requireErrors(),{notImplemented:_0x421ba5}=requireUnsupported(),{OKDBHttp:_0x2ba623}=requireHttp(),{OKDBFts:_0x2299f9}=requireFts(),{OKDBEmbeddings:_0x412149}=requireEmbeddings(),{OKDBAuth:_0x13e34f}=requireAuth(),{OKDBSync:_0x1a39e6}=requireSync(),{OKDBMigrate:_0x26ecee}=requireMigrate(),{OKDBFunctions:_0x3040ad}=requireFunctions(),{OKDBMcp:_0x3fda4d}=requireMcp(),{OKDBEngines:_0x5bda5e,OKDBPipelines:_0x580702}=requireEngines(),{makeMeta:_0x4301be,makeLicenses:_0x8682cd,makeLicenseChecker:_0x371cf1,makeProcesses:_0x185664}=requireSys();let _0x1fd7ea=null;function _0xa3379(_0x425d7d){const _0x24ab97=_0x3ebb;if(!_0x1fd7ea){const {Unpackr:_0x35d400}=require$$18;_0x1fd7ea=new _0x35d400({'useRecords':![],'mapsAsObjects':!![],'copyBuffers':!![]});}return _0x1fd7ea[_0x24ab97(0x5b1)](_0x425d7d);}let _0x4474cf=null;function _0xb90e29(_0x5ef426,_0x2a980f){const _0x3aa32d=_0x3ebb;if(!_0x4474cf){const {Unpackr:_0x2cab69}=require$$18;_0x4474cf=new _0x2cab69({'copyBuffers':!![]});}return _0x4474cf[_0x3aa32d(0x5b1)](_0x5ef426,_0x2a980f);}const {encodeKey:_0x646b7,KEY_BUF_SIZE:_0x5a5ac8,NO_FAST:_0x3dbf7f}=requireKeyenc(),_0x1a9e02=0x40*0x400,_0x58400d=0x4*0x400*0x400;function _0x41b4ab(_0x2e84d2,_0x5c1714){const _0x24ebf0=_0x3ebb,_0x20d7c=_0x2e84d2[0x2],_0xc48e42=_0x20d7c?(_0x2e84d2[_0x24ebf0(0x6cf)]-0x3)/Math['abs'](_0x20d7c):0x0,_0x27cab1=new Array(_0xc48e42);let _0x73a47c=0x3;if(_0x20d7c===0x2){for(let _0x53b50e=0x0;_0x53b50e<_0xc48e42;_0x53b50e++,_0x73a47c+=0x2)_0x27cab1[_0x53b50e]={'key':_0x2e84d2[_0x73a47c],'value':_0x2e84d2[_0x73a47c+0x1]};}else{if(_0x20d7c===0x3){for(let _0x5465c9=0x0;_0x5465c9<_0xc48e42;_0x5465c9++,_0x73a47c+=0x3)_0x27cab1[_0x5465c9]={'key':_0x2e84d2[_0x73a47c],'value':_0x2e84d2[_0x73a47c+0x1],'version':_0x2e84d2[_0x73a47c+0x2]};}else{if(_0x20d7c===-0x2){for(let _0xb64c70=0x0;_0xb64c70<_0xc48e42;_0xb64c70++,_0x73a47c+=0x2)_0x27cab1[_0xb64c70]={'clock':_0x2e84d2[_0x73a47c],..._0x2e84d2[_0x73a47c+0x1]};}else{if(_0x20d7c===0x4){for(let _0x1f248a=0x0;_0x1f248a<_0xc48e42;_0x1f248a++,_0x73a47c+=0x4)_0x27cab1[_0x1f248a]={'key':_0x2e84d2[_0x73a47c],'value':_0x2e84d2[_0x73a47c+0x1],'version':_0x2e84d2[_0x73a47c+0x2],'indexKey':_0x2e84d2[_0x73a47c+0x3]};}else{if(_0xc48e42)throw new Error('callRows:\x20unexpected\x20row\x20stride\x20'+_0x20d7c);}}}}return _0x5c1714?[_0x2e84d2[0x0],_0x27cab1,_0x2e84d2[0x1]]:_0x27cab1;}let _0xd7861b=null;function _0x1f4931(_0x4ef25c,_0x354ca4,_0x52e310){const _0x398efc=_0x3ebb;if(!_0xd7861b)_0xd7861b=requireDist()[_0x398efc(0x5ad)];const _0x17a2d3=new DataView(_0x4ef25c[_0x398efc(0x6b6)],_0x4ef25c[_0x398efc(0x67f)],_0x354ca4),_0x5ce178=_0x17a2d3[_0x398efc(0x4f4)](0x10,!![]),_0x485247=new Array(_0x5ce178);let _0x728ad=0x14;for(let _0x3e1a7d=0x0;_0x3e1a7d<_0x5ce178;_0x3e1a7d++){const _0x111913=_0x4ef25c[_0x728ad]|_0x4ef25c[_0x728ad+0x1]<<0x8;_0x728ad+=0x2,_0x485247[_0x3e1a7d]=_0xd7861b(_0x4ef25c,_0x728ad,_0x728ad+_0x111913),_0x728ad+=_0x111913;}return _0x52e310?[_0x17a2d3[_0x398efc(0x8a1)](0x0,!![]),_0x485247,_0x17a2d3['getFloat64'](0x8,!![])]:_0x485247;}const _0x413630=requireOkdbLogger(),_0x367631=requireOkdbPlugins(),{OKDB_STATE:_0x58409e,EVENTS:_0x2ec25f}=requireOkdbEnums(),_0x30c87e=requireStatics();let _0x491599=null,_0x2a733d=![],_0x5b8164=0x1;const _0x4eb66f=new Map(),_0x5f4030=new Set(['FIELD_RESOLVER_PENDING',_0x4b066e(0x71c)]),_0x46ab9b=_0x110066=>!!_0x110066&&_0x5f4030['has'](_0x110066[_0x4b066e(0x748)]),_0x2df47d=Number(process.env.OKDB_PENDING_RETRY_MS)>0x0?Number(process.env.OKDB_PENDING_RETRY_MS):0x1d4c0;function _0x46d76c(){!_0x2a733d&&(_0x24f469()['setBridge'](_0x485c28['bridge']),_0x2683a8['install'](_0x24f469()),_0x2a733d=!![]);}function _0x24f469(){if(!_0x491599)_0x491599=_0x5d34c8();return _0x491599;}class _0x353085 extends Map{constructor(_0x3f3518){const _0x3aa6f7=_0x4b066e;super(),this[_0x3aa6f7(0x1bb)]=_0x3f3518;}[_0x4b066e(0x845)](){const _0x3840b3=_0x4b066e,_0x16a7b8=this[_0x3840b3(0x1bb)];if(!_0x16a7b8[_0x3840b3(0x60a)])return;let _0x3f1741;try{_0x3f1741=_0x16a7b8[_0x3840b3(0x49e)]('db',null,_0x3840b3(0x567),[],![]);}catch{return;}for(const _0x25da93 of _0x3f1741)if(!super[_0x3840b3(0x51e)](_0x25da93)&&_0x16a7b8[_0x3840b3(0x49e)]('db',null,_0x3840b3(0x236),[_0x25da93],![]))_0x16a7b8[_0x3840b3(0x248)](_0x25da93);}['get'](_0x490468){const _0x1d50e8=_0x4b066e,_0x16a5f8=super['get'](_0x490468);if(_0x16a5f8!==undefined||typeof _0x490468!==_0x1d50e8(0x4bb))return _0x16a5f8;const _0x16e45d=this[_0x1d50e8(0x1bb)];if(_0x490468===_0x1d50e8(0x7a3))return _0x16e45d['_isOpen']?_0x16e45d[_0x1d50e8(0x196)][_0x1d50e8(0x816)]??undefined:undefined;if(_0x16e45d[_0x1d50e8(0x60a)]&&_0x16e45d['_call']('db',null,_0x1d50e8(0x236),[_0x490468],![]))return _0x16e45d[_0x1d50e8(0x248)](_0x490468);if(_0x16e45d['_isOpen']&&typeof _0x490468==='string'&&!_0x490468[_0x1d50e8(0x6c8)]('~')){_0x16e45d[_0x1d50e8(0x49e)]('db',null,_0x1d50e8(0x1ff),[],![]);if(_0x16e45d['_call']('db',null,_0x1d50e8(0x236),[_0x490468],![]))return _0x16e45d[_0x1d50e8(0x248)](_0x490468);}return undefined;}[_0x4b066e(0x51e)](_0x5cd532){return this['get'](_0x5cd532)!==undefined;}get[_0x4b066e(0x221)](){const _0x53537c=_0x4b066e;return this[_0x53537c(0x845)](),super['size'];}[_0x4b066e(0x1d5)](){return this['_sync'](),super['keys']();}[_0x4b066e(0x89c)](){const _0x1f9329=_0x4b066e;return this['_sync'](),super[_0x1f9329(0x89c)]();}[_0x4b066e(0x72a)](){return this['_sync'](),super['entries']();}[_0x4b066e(0x169)](_0xd1a1b4,_0x3f32dc){const _0x2dc375=_0x4b066e;return this[_0x2dc375(0x845)](),super['forEach'](_0xd1a1b4,_0x3f32dc);}[Symbol['iterator']](){const _0x57dac5=_0x4b066e;return this[_0x57dac5(0x845)](),super[Symbol[_0x57dac5(0x56e)]]();}}class _0x40c6a4{constructor(_0x105270,_0x441552={}){const _0x3958ae=_0x4b066e,_0x468531=_0x24f469();this[_0x3958ae(0x39d)]=_0x105270,this[_0x3958ae(0x4b8)]=_0x5b8164++,this[_0x3958ae(0x20f)]='db'+this[_0x3958ae(0x4b8)],this[_0x3958ae(0x66a)]={..._0x30c87e['defaults'],..._0x441552,'auth':_0x441552[_0x3958ae(0x1e2)]?{..._0x441552[_0x3958ae(0x1e2)]}:undefined,'lmdb':{..._0x441552[_0x3958ae(0x66d)]||{}}},this[_0x3958ae(0x29a)]=new _0x39c370(),this['events'][_0x3958ae(0x502)](0x0),this[_0x3958ae(0x313)]=new Set(),this['events']['on'](_0x3958ae(0x32b),_0x9d3d85=>this['_subscribeEvent'](_0x9d3d85)),this[_0x3958ae(0x793)]=new _0x413630(this),this[_0x3958ae(0x793)][_0x3958ae(0x435)](),_0x485c28[_0x3958ae(0x619)](this['_key'],{'_deliver':(_0x30a6c9,_0x5ca8c4)=>this['_deliverEvent'](_0x30a6c9,_0x5ca8c4),'_log':_0x2e974a=>{const _0x4ac119=_0x3958ae;if(this[_0x4ac119(0x560)])this[_0x4ac119(0x560)][_0x4ac119(0x2fb)](_0x2e974a);const _0x3a4e75=_0x2e974a&&_0x2e974a[_0x4ac119(0x86c)];if(_0x3a4e75&&Object[_0x4ac119(0x455)]['hasOwnProperty'][_0x4ac119(0x853)](this[_0x4ac119(0x793)],_0x3a4e75)&&typeof this[_0x4ac119(0x793)][_0x3a4e75]===_0x4ac119(0x6d8)){const _0x5f3fcc=_0x2e974a[_0x4ac119(0x162)];return this[_0x4ac119(0x793)][_0x3a4e75](_0x2e974a[_0x4ac119(0x410)],{..._0x2e974a[_0x4ac119(0x47b)]||{},..._0x5f3fcc&&typeof _0x5f3fcc==='object'?_0x5f3fcc:{}});}return this[_0x4ac119(0x793)]['ingest'](_0x2e974a);}}),_0x46d76c();try{const _0x8626a9={};if(typeof _0x3958ae(0x3ee)===_0x3958ae(0x809)||_0x3958ae(0x3ee)!==_0x3958ae(0x3ee));const _0x42b781={..._0x441552,'_clusterWorker':require('node:cluster')[_0x3958ae(0x1fd)],..._0x8626a9};this[_0x3958ae(0x52f)]={'instance':null,'envs':new Map()};typeof _0x441552[_0x3958ae(0x4e9)]===_0x3958ae(0x6d8)&&(this[_0x3958ae(0x52f)]['instance']=_0x441552[_0x3958ae(0x4e9)],delete _0x42b781[_0x3958ae(0x4e9)]);if(_0x441552['encryptionKeys']&&typeof _0x441552[_0x3958ae(0x224)]===_0x3958ae(0x1be)){for(const [_0x3a7a11,_0xcb05a2]of Object[_0x3958ae(0x72a)](_0x441552[_0x3958ae(0x224)]))this[_0x3958ae(0x52f)][_0x3958ae(0x5b9)][_0x3958ae(0x328)](_0x3a7a11,_0xcb05a2);}delete _0x42b781['encryptionKeys'],this[_0x3958ae(0x6bd)]=new _0x468531['Native'](_0x105270,_0x42b781,this[_0x3958ae(0x20f)]);}catch(_0x4f1062){_0x485c28[_0x3958ae(0x85f)](this[_0x3958ae(0x20f)]);throw _0x2354a9(_0x4f1062);}this['state']=_0x58409e['CREATED'],this[_0x3958ae(0x60a)]=![],this[_0x3958ae(0x8a5)]=new _0x353085(this),this['_pumper']=new _0x4d6866({'pump':()=>this[_0x3958ae(0x6bd)]['pump']()}),this[_0x3958ae(0x53b)]=new _0x2683a8[(_0x3958ae(0x6c0))](this),this[_0x3958ae(0x5bc)][_0x3958ae(0x3f4)]=()=>_0x485c28[_0x3958ae(0x6da)](),_0x485c28[_0x3958ae(0x404)](()=>this[_0x3958ae(0x5bc)][_0x3958ae(0x536)](),this),_0x4eb66f[_0x3958ae(0x328)](this[_0x3958ae(0x4b8)],this),this[_0x3958ae(0x1a9)]={},_0x485c28[_0x3958ae(0x755)](this),this[_0x3958ae(0x492)]=new _0x2299f9(this),this[_0x3958ae(0x422)]=new _0x412149(this),this[_0x3958ae(0x1a5)]=new _0x5bda5e(this,null,null),this['pipelines']=new _0x580702(this,null),this[_0x3958ae(0x47b)]=_0x4301be(this),this[_0x3958ae(0x60e)]=_0x8682cd(this),this[_0x3958ae(0x89d)]=_0x371cf1(this),this['processes']=_0x185664(this),this[_0x3958ae(0x409)]=_0x104dd6(this),this['plugins']=new _0x367631(this),this[_0x3958ae(0x449)]=new _0x2ba623(this),this[_0x3958ae(0x5f3)]=new _0x1a39e6(this),this[_0x3958ae(0x1e2)]=new _0x13e34f(this),this[_0x3958ae(0x762)]=new _0x3040ad(this,null),this[_0x3958ae(0x403)]=new _0x3fda4d(this),this[_0x3958ae(0x593)]=_0x441552&&_0x441552[_0x3958ae(0x593)]===![]?null:_0x421ba5(_0x3958ae(0x593)),this[_0x3958ae(0x370)]=_0x421ba5(_0x3958ae(0x370)),this['migrate']=new _0x26ecee(this);}[_0x4b066e(0x49e)](_0x4e9cde,_0x26fe59,_0x3eef7b,_0x4820e6,_0x1f7f9d=!![]){const _0x5f3b7e=_0x4b066e;if(_0x1f7f9d&&this['_wb']&&this[_0x5f3b7e(0x53b)][_0x5f3b7e(0x601)]['length'])this['_wb'][_0x5f3b7e(0x2cd)]();try{return this['_native'][_0x5f3b7e(0x853)](_0x4e9cde,_0x26fe59,_0x3eef7b,_0x4820e6);}catch(_0x35a918){throw _0x2354a9(_0x35a918);}finally{if(_0x1f7f9d)this[_0x5f3b7e(0x5bc)][_0x5f3b7e(0x536)]();}}[_0x4b066e(0x270)](_0x253053,_0x19dd7a,_0x467b74,_0x406910){const _0x59aa95=_0x4b066e;let _0x56b2fe;try{_0x56b2fe=this[_0x59aa95(0x6bd)]['callPacked'](_0x253053,_0x19dd7a,_0x467b74,_0x406910);}catch(_0x1fae7a){throw _0x2354a9(_0x1fae7a);}return _0x56b2fe instanceof Uint8Array?_0xa3379(_0x56b2fe):_0x56b2fe[0x0];}['_readBuf'](_0x14bf77){const _0x1615b0=_0x4b066e;let _0x4732de=this[_0x1615b0(0x80f)];if(_0x4732de&&_0x14bf77<=_0x4732de[_0x1615b0(0x6cf)])return _0x4732de;let _0x435beb=_0x4732de?_0x4732de['length']:_0x1a9e02;while(_0x435beb<_0x14bf77)_0x435beb*=0x2;if(_0x435beb>_0x58400d)return _0x4732de;return _0x4732de=this['_rbuf']=Buffer[_0x1615b0(0x73c)](_0x435beb),this[_0x1615b0(0x6bd)][_0x1615b0(0x7f6)](_0x4732de),_0x4732de;}[_0x4b066e(0x48d)](_0x429731,_0x5139ee,_0x2a6579){const _0x3021f6=_0x4b066e;if(!this[_0x3021f6(0x80f)])this[_0x3021f6(0x66f)](0x0);const _0x535f57=this['_native'][_0x3021f6(0x83e)](_0x429731,_0x5139ee,_0x2a6579);if(typeof _0x535f57===_0x3021f6(0x5c1))return _0xb90e29(this[_0x3021f6(0x80f)],_0x535f57);if(_0x535f57===undefined||_0x535f57===null)return _0x535f57;return this[_0x3021f6(0x66f)](_0x535f57['length']),_0xb90e29(_0x535f57);}[_0x4b066e(0x721)](_0x4e1f83,_0x18341a,_0x24650e){const _0x3ff242=_0x4b066e;let _0x54f595=this['_kbuf'];if(!_0x54f595){_0x54f595=this[_0x3ff242(0x350)]=Buffer[_0x3ff242(0x73c)](_0x5a5ac8),this['_native']['setKeyBuffer'](_0x54f595),this[_0x3ff242(0x4c1)]=new Map();if(!this[_0x3ff242(0x80f)])this[_0x3ff242(0x66f)](0x0);}const _0x303185=_0x646b7(_0x24650e,_0x54f595);if(_0x303185<0x0)return _0x3dbf7f;let _0x27e701=this[_0x3ff242(0x4c1)][_0x3ff242(0x63c)](_0x4e1f83);if(_0x27e701===undefined)this['_tids']['set'](_0x4e1f83,_0x27e701=new Map());let _0x5a5d18=_0x27e701[_0x3ff242(0x63c)](_0x18341a);if(_0x5a5d18===undefined)_0x27e701[_0x3ff242(0x328)](_0x18341a,_0x5a5d18=this['_native'][_0x3ff242(0x494)](_0x4e1f83,_0x18341a));if(_0x5a5d18<0x0)return _0x3dbf7f;const _0x592d18=this['_native'][_0x3ff242(0x4ea)](_0x5a5d18,_0x303185);if(typeof _0x592d18==='number')return _0xb90e29(this['_rbuf'],_0x592d18);if(_0x592d18===undefined||_0x592d18===null)return _0x592d18;return this['_readBuf'](_0x592d18[_0x3ff242(0x6cf)]),_0xb90e29(_0x592d18);}[_0x4b066e(0x39e)](_0x10057a,_0x174ead,_0x174536){const _0x39a2b7=_0x4b066e;if(!this['_rbuf'])this['_readBuf'](0x0);let _0x40ce16;try{_0x40ce16=this[_0x39a2b7(0x6bd)][_0x39a2b7(0x23e)](_0x10057a,_0x174ead,_0x174536);}catch(_0x141bad){throw _0x2354a9(_0x141bad);}const _0x56cd52=_0x174ead===_0x39a2b7(0x2dd),_0x298ea7=_0x56cd52?_0x174536[0x1]:_0x174ead;let _0x5c98be=this[_0x39a2b7(0x80f)],_0xeca787=_0x40ce16;if(_0x40ce16 instanceof Uint8Array)this[_0x39a2b7(0x66f)](_0x40ce16[_0x39a2b7(0x6cf)]),_0x5c98be=_0x40ce16,_0xeca787=_0x40ce16[_0x39a2b7(0x6cf)];else{if(typeof _0x40ce16!==_0x39a2b7(0x5c1))return _0x40ce16[0x0];}if(_0x298ea7===_0x39a2b7(0x7d2))return _0x1f4931(_0x5c98be,_0xeca787,_0x56cd52);if(_0x298ea7===_0x39a2b7(0x791))return _0xb90e29(_0x5c98be,_0xeca787);return _0x41b4ab(_0xb90e29(_0x5c98be,_0xeca787),_0x56cd52);}[_0x4b066e(0x406)](_0x52a249,_0x526143,_0x5b8f22,_0x2fab65,_0x3505d7=!![],_0x23beae=!![]){const _0x5bf42c=_0x4b066e,_0x66a0c4=()=>this[_0x5bf42c(0x199)](()=>this['_call'](_0x52a249,_0x526143,_0x5b8f22,_0x2fab65,_0x3505d7));if(!_0x23beae)return _0x66a0c4();return this[_0x5bf42c(0x56c)](_0x66a0c4);}[_0x4b066e(0x56c)](_0x227528){const _0x496077=_0x4b066e;return _0x227528()[_0x496077(0x189)](async _0x4888d5=>{const _0x171cb4=_0x496077;if(!_0x46ab9b(_0x4888d5))throw _0x4888d5;const _0x33852d=Date[_0x171cb4(0x89e)]()+_0x2df47d;let _0x321086=0x1;while(_0x46ab9b(_0x4888d5)&&Date[_0x171cb4(0x89e)]()<_0x33852d){await new Promise(_0x58d4bd=>setTimeout(_0x58d4bd,_0x321086)),_0x321086=Math['min'](_0x321086*0x2,0x14);try{return await _0x227528();}catch(_0x4e2f66){_0x4888d5=_0x4e2f66;}}throw _0x4888d5;});}[_0x4b066e(0x29c)](_0x505c5b){const _0x11ebd5=_0x4b066e;if(_0x485c28[_0x11ebd5(0x37c)]())return Promise[_0x11ebd5(0x7a9)](_0x505c5b);return new Promise(_0x252fb0=>setImmediate(()=>_0x252fb0(_0x505c5b)));}[_0x4b066e(0x55c)](_0x4a384a){const _0x373a30=_0x4b066e;if(_0x485c28[_0x373a30(0x37c)]())return Promise['resolve'](_0x4a384a);return this[_0x373a30(0x3bc)]()[_0x373a30(0x2b0)](()=>_0x4a384a);}[_0x4b066e(0x3bc)](){return new Promise(_0x2c1334=>setImmediate(()=>{const _0x1e4647=_0x3ebb;let _0x2b6724;try{_0x2b6724=this[_0x1e4647(0x6bd)][_0x1e4647(0x5fe)]();}catch{return _0x2c1334();}_0x2683a8[_0x1e4647(0x49a)](_0x2b6724,_0x2c1334);}));}['_macro'](_0x463669){return new Promise((_0x139bad,_0x5d3589)=>setImmediate(()=>{try{_0x139bad(_0x463669());}catch(_0x52dd8){_0x5d3589(_0x52dd8);}}));}['_staticCall'](_0x5acc30,_0x205871,_0x120f1d){return _0x12e39f(_0x5acc30,_0x205871,_0x120f1d);}[_0x4b066e(0x51d)](_0x2b3e93){const _0x13d2e5=_0x4b066e;if(typeof _0x2b3e93!==_0x13d2e5(0x4bb)||this[_0x13d2e5(0x313)][_0x13d2e5(0x51e)](_0x2b3e93)||_0x2b3e93===_0x13d2e5(0x32b)||_0x2b3e93===_0x13d2e5(0x3e5))return;this[_0x13d2e5(0x313)][_0x13d2e5(0x7df)](_0x2b3e93);try{this['_native'][_0x13d2e5(0x853)](_0x13d2e5(0x29a),null,_0x13d2e5(0x7f3),[this[_0x13d2e5(0x20f)],_0x2b3e93]);}catch{}}['_deliverEvent'](_0x58aa88,_0x3d191d){const _0x1bde11=_0x4b066e;this[_0x1bde11(0x29a)][_0x1bde11(0x6d6)](_0x58aa88,_0x3d191d);}async[_0x4b066e(0x709)](){const _0x380235=_0x4b066e,_0x28530a=this[_0x380235(0x52f)];if(_0x28530a[_0x380235(0x2a3)])this[_0x380235(0x4f2)](null,await _0x28530a[_0x380235(0x2a3)](null),!![]);for(const [_0x2009e9,_0x129a90]of _0x28530a['envs'])this['_setKey'](_0x2009e9,typeof _0x129a90===_0x380235(0x6d8)?await _0x129a90(_0x2009e9):_0x129a90,typeof _0x129a90===_0x380235(0x6d8));(_0x28530a['instance']||[..._0x28530a[_0x380235(0x5b9)][_0x380235(0x89c)]()][_0x380235(0x786)](_0x546376=>typeof _0x546376===_0x380235(0x6d8)))&&!this[_0x380235(0x526)]&&(this[_0x380235(0x526)]=_0x44ad81=>{const _0x5f30a4=_0x380235,_0x5b46f0=_0x44ad81&&_0x44ad81['env']!=null?_0x44ad81[_0x5f30a4(0x30b)]:null,_0x5cb5e2=_0x5b46f0==null?_0x28530a['instance']:_0x28530a['envs'][_0x5f30a4(0x63c)](_0x5b46f0);if(typeof _0x5cb5e2!==_0x5f30a4(0x6d8))return;Promise[_0x5f30a4(0x7a9)]()[_0x5f30a4(0x2b0)](()=>_0x5cb5e2(_0x5b46f0))[_0x5f30a4(0x2b0)](_0x418fdf=>this[_0x5f30a4(0x4f2)](_0x5b46f0,_0x418fdf,!![]))[_0x5f30a4(0x189)](_0x4d2183=>this[_0x5f30a4(0x793)][_0x5f30a4(0x254)]('encryption\x20key\x20function\x20failed:\x20'+(_0x4d2183&&_0x4d2183[_0x5f30a4(0x2d2)]),{'env':_0x5b46f0}));},this[_0x380235(0x29a)]['on'](_0x380235(0x780),this[_0x380235(0x526)]));}[_0x4b066e(0x4f2)](_0x3c763d,_0x2e568c,_0x4a5064){const _0x29a18a=_0x4b066e;if(_0x2e568c==null)throw new _0x2c63fb(_0x29a18a(0x77f)+(_0x3c763d?_0x29a18a(0x64e)+_0x3c763d+'\x22':'')+_0x29a18a(0x831),_0x29a18a(0x571));this['_native']['call']('db',null,_0x29a18a(0x186),[_0x3c763d,_0x2e568c,!!_0x4a5064]);}async['changeEncryptionKey'](_0x58f007){const _0x16fabf=_0x4b066e;this[_0x16fabf(0x29b)]();const {env:env=null,to:_0xe51490}=_0x4b8cd1(_0x58f007),_0x3085c5=typeof _0xe51490===_0x16fabf(0x6d8),_0x2bcd57=_0x3085c5?await _0xe51490(env):_0xe51490;if(_0x2bcd57==null)throw _0x5b2ba6(_0x16fabf(0x885),'a\x2032-character\x20key\x20or\x20a\x20function\x20returning\x20one',_0x2bcd57);const _0x23d28c=this['_call']('db',null,_0x16fabf(0x2e0),[env,_0x2bcd57,_0x3085c5]);if(_0x3085c5){if(env==null)this[_0x16fabf(0x52f)][_0x16fabf(0x2a3)]=_0xe51490;else this[_0x16fabf(0x52f)][_0x16fabf(0x5b9)][_0x16fabf(0x328)](env,_0xe51490);}return _0x23d28c;}async['reencrypt'](_0x1ee8e7){const _0x3bb72e=_0x4b066e;this[_0x3bb72e(0x29b)]();const _0x585c29=_0x4b8cd1(_0x1ee8e7);if(!_0x585c29[_0x3bb72e(0x30b)])throw _0x5b2ba6(_0x3bb72e(0x796),_0x3bb72e(0x3b0),_0x585c29[_0x3bb72e(0x30b)]);let _0x2adf1f=_0x585c29['to'];const _0x514821=typeof _0x2adf1f===_0x3bb72e(0x6d8);if(_0x514821)_0x2adf1f=await _0x585c29['to'](_0x585c29[_0x3bb72e(0x30b)]);const _0x3c2ff7=await this[_0x3bb72e(0x199)](()=>this[_0x3bb72e(0x49e)]('db',null,_0x3bb72e(0x468),[_0x585c29['env'],'to'in _0x585c29?_0x2adf1f:undefined,_0x514821]));if(_0x514821)this[_0x3bb72e(0x52f)][_0x3bb72e(0x5b9)][_0x3bb72e(0x328)](_0x585c29[_0x3bb72e(0x30b)],_0x585c29['to']);return _0x3c2ff7;}async['open'](){const _0x6fb70a=_0x4b066e;if(this['state']===_0x58409e[_0x6fb70a(0x69c)])return;if(this[_0x6fb70a(0x41c)]!==_0x58409e[_0x6fb70a(0x59f)])throw new _0x2c63fb(_0x6fb70a(0x865),_0x6fb70a(0x645),{'state':this[_0x6fb70a(0x41c)]});this[_0x6fb70a(0x41c)]=_0x58409e[_0x6fb70a(0x1e5)],this['_bootLog']=[];try{try{await this[_0x6fb70a(0x709)](),await this[_0x6fb70a(0x199)](()=>this[_0x6fb70a(0x6bd)]['open']());}catch(_0x23c140){throw _0x2354a9(_0x23c140);}}catch(_0x43d4e8){this[_0x6fb70a(0x41c)]=_0x58409e[_0x6fb70a(0x5ee)],this[_0x6fb70a(0x560)]=null,this[_0x6fb70a(0x65c)]();throw _0x43d4e8;}this[_0x6fb70a(0x60a)]=!![],this[_0x6fb70a(0x41c)]=_0x58409e['STARTED'];try{this[_0x6fb70a(0x49e)]('db',null,'setHostPlugins',[this['plugins'][_0x6fb70a(0x82e)][_0x6fb70a(0x1a7)](_0x569e73=>_0x569e73[_0x6fb70a(0x277)]?.[_0x6fb70a(0x6fe)])[_0x6fb70a(0x852)](Boolean)],![]),await this['plugins'][_0x6fb70a(0x898)]();}catch(_0x21e72c){this[_0x6fb70a(0x41c)]=_0x58409e[_0x6fb70a(0x21a)];try{this[_0x6fb70a(0x6bd)][_0x6fb70a(0x5a1)]();}catch{}this['state']=_0x58409e['STOPPED'],this[_0x6fb70a(0x60a)]=![],this[_0x6fb70a(0x65c)]();throw _0x21e72c;}for(const _0x4ef352 of this[_0x6fb70a(0x49e)]('db',null,'envNames',[],![]))if(!_0x4ef352[_0x6fb70a(0x6c8)]('~'))this[_0x6fb70a(0x248)](_0x4ef352);try{if(this[_0x6fb70a(0x49e)]('db',null,_0x6fb70a(0x236),[_0x6fb70a(0x18b)],![])){this[_0x6fb70a(0x16e)]=this[_0x6fb70a(0x248)]('~log');const _0x57c337=new Set(this[_0x6fb70a(0x793)][_0x6fb70a(0x763)]);this[_0x6fb70a(0x515)]=this[_0x6fb70a(0x793)][_0x6fb70a(0x33c)](this['_logEnv'],this['id']);const _0x198d0b=[...this[_0x6fb70a(0x793)][_0x6fb70a(0x763)]]['find'](_0x3ba959=>!_0x57c337['has'](_0x3ba959)),_0x1e6ea2=this[_0x6fb70a(0x49e)]('db',null,_0x6fb70a(0x579),[],![]);for(const _0x370678 of(this['_bootLog']??[])['slice'](_0x1e6ea2))_0x198d0b?.(_0x370678);}}catch{}this[_0x6fb70a(0x560)]=null,this[_0x6fb70a(0x6bd)][_0x6fb70a(0x312)](()=>this[_0x6fb70a(0x5bc)][_0x6fb70a(0x536)]()),this[_0x6fb70a(0x5bc)][_0x6fb70a(0x898)]();}async['bootRuntimeDeclarations'](){const _0x44b449=_0x4b066e;return this[_0x44b449(0x406)]('db',null,_0x44b449(0x566),[]);}async[_0x4b066e(0x5a1)](){const _0x1f7d81=_0x4b066e;if(this[_0x1f7d81(0x41c)]===_0x58409e['STOPPED'])return;if(this[_0x1f7d81(0x41c)]!==_0x58409e[_0x1f7d81(0x69c)])throw new _0x2c63fb(_0x1f7d81(0x1fc),'INVALID_STATE',{'state':this[_0x1f7d81(0x41c)]});this['state']=_0x58409e[_0x1f7d81(0x21a)],this[_0x1f7d81(0x60a)]=![];let _0x1a2e08=null;if(this[_0x1f7d81(0x449)][_0x1f7d81(0x597)]['length'])try{await this[_0x1f7d81(0x449)]['close']();}catch(_0x32d85d){_0x1a2e08=_0x32d85d;}if(this[_0x1f7d81(0x63b)]){try{this['__adminRelay'][_0x1f7d81(0x86a)](),this[_0x1f7d81(0x63b)][_0x1f7d81(0x1c5)]();}catch{}this[_0x1f7d81(0x63b)]=null;}try{this[_0x1f7d81(0x2f7)]?.[_0x1f7d81(0x893)]?.();}catch{}try{await this['plugins']['stop']();}catch(_0xf1a1af){_0x1a2e08=_0xf1a1af;}for(const _0x14d773 of[...Map['prototype']['values'][_0x1f7d81(0x853)](this[_0x1f7d81(0x8a5)])]){try{await _0x14d773[_0x1f7d81(0x3e8)][_0x1f7d81(0x3fe)]();}catch{}try{await _0x14d773['engines'][_0x1f7d81(0x893)]();}catch{}}for(const _0x27c2bb of[()=>this[_0x1f7d81(0x5f3)]['stop'](),()=>this[_0x1f7d81(0x422)]['stop'](),()=>this[_0x1f7d81(0x492)]&&this[_0x1f7d81(0x492)]['stop']?.()]){try{await _0x27c2bb();}catch{}}const _0x339cc9=this[_0x1f7d81(0x66a)][_0x1f7d81(0x308)]??0x7530,_0x431028=[];for(const _0x3ed1cb of[...Map['prototype']['values'][_0x1f7d81(0x853)](this['_envs'])]){if(_0x3ed1cb[_0x1f7d81(0x601)]?.[_0x1f7d81(0x561)]?.[_0x1f7d81(0x221)]>0x0)_0x431028[_0x1f7d81(0x2fb)](_0x3ed1cb['queue']['stopAll'](_0x339cc9));}if(_0x431028[_0x1f7d81(0x6cf)]>0x0)await Promise[_0x1f7d81(0x795)](_0x431028);try{this[_0x1f7d81(0x515)]?.();}catch{}this['_detachLogSink']=null;try{await this[_0x1f7d81(0x53b)]['drain']();}catch{}this[_0x1f7d81(0x5bc)][_0x1f7d81(0x893)]();try{await this['_macro'](()=>this[_0x1f7d81(0x6bd)][_0x1f7d81(0x5a1)]());}catch(_0x4221de){_0x1a2e08=_0x1a2e08||_0x2354a9(_0x4221de);}this['state']=_0x58409e['STOPPED'],this[_0x1f7d81(0x65c)](),Map[_0x1f7d81(0x455)][_0x1f7d81(0x871)]['call'](this[_0x1f7d81(0x8a5)]);if(_0x1a2e08)throw _0x1a2e08;}['_teardownNative'](){const _0x4224cf=_0x4b066e;this[_0x4224cf(0x5bc)]['stop']();try{this['_native'][_0x4224cf(0x312)](null);}catch{}try{this[_0x4224cf(0x6bd)][_0x4224cf(0x70c)]();}catch{}this[_0x4224cf(0x80f)]=null,this[_0x4224cf(0x350)]=null,this[_0x4224cf(0x4c1)]=null,_0x485c28[_0x4224cf(0x85f)](this['_key']),_0x485c28[_0x4224cf(0x867)](this),_0x4eb66f['delete'](this[_0x4224cf(0x4b8)]);if(_0x485c28[_0x4224cf(0x7fb)](this)){const _0x22f7b4=[..._0x4eb66f[_0x4224cf(0x89c)]()][_0x4224cf(0x644)]();if(_0x22f7b4)_0x485c28['setKick'](()=>_0x22f7b4[_0x4224cf(0x5bc)][_0x4224cf(0x536)](),_0x22f7b4);else _0x485c28[_0x4224cf(0x404)](()=>{},null);}}get['id'](){return this['_call']('db',null,'id',[],![]);}[_0x4b066e(0x58f)](_0x4d4b4d){const _0x1ad61e=_0x4b066e;return this[_0x1ad61e(0x30b)]('default')[_0x1ad61e(0x58f)](_0x4d4b4d);}get[_0x4b066e(0x530)](){const _0x518b04=_0x4b066e;return this['_rootDb']['get'](_0x518b04(0x6df));}get[_0x4b066e(0x38a)](){const _0x477661=_0x4b066e;return this[_0x477661(0x5f3)][_0x477661(0x38a)];}get[_0x4b066e(0x628)](){const _0x2e4bf2=_0x4b066e;return this[_0x2e4bf2(0x5f3)][_0x2e4bf2(0x628)];}get[_0x4b066e(0x666)](){const _0xbfd9e=_0x4b066e;if(!this['_isOpen']||!this['_call']('db',null,'subsBuilt',[],![]))return undefined;if(!this['_subsV2Obj']){const _0x45ee4c=requireOkdbSubscriptionsStore(),_0x49411c=new _0x45ee4c(this,this[_0xbfd9e(0x66a)]&&this['options'][_0xbfd9e(0x2a7)]);_0x49411c['_sub']=this[_0xbfd9e(0x30b)](_0xbfd9e(0x6fc));const {compileFilter:_0x42054c}=requireOkdbQueryFilter(),_0xa68a56=(_0x1ecff0,_0x2bad1d)=>{if(_0x1ecff0==null)return![];try{return _0x42054c(_0x1ecff0)(_0x2bad1d);}catch{return![];}};this[_0xbfd9e(0x790)]={'store':_0x49411c,'router':{'_matches':_0xa68a56}};}return this['_subsV2Obj'];}get[_0x4b066e(0x311)](){const _0x1ff368=_0x4b066e;return this[_0x1ff368(0x437)];}get['formerIds'](){const _0x42189d=_0x4b066e;return this[_0x42189d(0x49e)]('db',null,_0x42189d(0x8a9),[],![]);}get['role'](){const _0xc09bae=_0x4b066e;return{...this[_0xc09bae(0x49e)]('db',null,'role',[],![])};}get[_0x4b066e(0x280)](){const _0x1ff382=_0x4b066e;return require$$29[_0x1ff382(0x280)];}get[_0x4b066e(0x6ef)](){const _0x4a4bde=_0x4b066e;return this[_0x4a4bde(0x49e)]('db',null,_0x4a4bde(0x4ba),[],![]);}get['info'](){const _0x5ef461=_0x4b066e;return this[_0x5ef461(0x49e)]('db',null,_0x5ef461(0x7c6),[],![]);}['getResolvedOptions'](){const _0x3dfd82=_0x4b066e;return this[_0x3dfd82(0x49e)]('db',null,_0x3dfd82(0x48a),[],![]);}[_0x4b066e(0x837)](){const _0x166691=_0x4b066e;return this[_0x166691(0x49e)]('db',null,_0x166691(0x837),[],![]);}async[_0x4b066e(0x2e4)](_0x2db429){const _0x39033e=_0x4b066e;this[_0x39033e(0x29b)](),this['_call']('db',null,_0x39033e(0x2e4),[_0x2db429],![]);}[_0x4b066e(0x263)](){const _0x2a940d=_0x4b066e,_0x508454=Date[_0x2a940d(0x89e)]();if(this[_0x2a940d(0x3f3)]&&_0x508454-this[_0x2a940d(0x3f3)]['at']<0xfa)return this[_0x2a940d(0x3f3)][_0x2a940d(0x820)];const _0x291c75=this['_call']('db',null,'pressure',[],![]);return this[_0x2a940d(0x3f3)]={'at':_0x508454,'value':_0x291c75},_0x291c75;}['_assertOpen'](){const _0x2159cf=_0x4b066e;if(!this[_0x2159cf(0x60a)])throw new _0x2c63fb(_0x2159cf(0x1fc),_0x2159cf(0x645),{'state':this[_0x2159cf(0x41c)]});}get[_0x4b066e(0x827)](){const _0x5329c8=_0x4b066e;if(this[_0x5329c8(0x41c)]===_0x58409e['STOPPED']||!this[_0x5329c8(0x60a)])return null;if(this[_0x5329c8(0x49e)]('db',null,_0x5329c8(0x178),[],![])==null)return null;if(!this['_busFacade']){const _0x4c20f4=this;this['_busFacade']={get 'state'(){const _0x4a3f66=_0x5329c8;return _0x4c20f4[_0x4a3f66(0x49e)]('db',null,'busState',[],![]);},get 'magic'(){const _0x279ec2=_0x5329c8;return Buffer[_0x279ec2(0x170)](_0x279ec2(0x75b)+_0x4c20f4['id']);},get 'isRunning'(){const _0x396e69=_0x5329c8;return _0x4c20f4[_0x396e69(0x49e)]('db',null,_0x396e69(0x178),[],![])==='started';},'emit'(_0x2ddee1,_0xc065ab=''){const _0x4e60bf=_0x5329c8;_0x4c20f4[_0x4e60bf(0x49e)]('db',null,_0x4e60bf(0x296),[_0x2ddee1,String(_0xc065ab)],![]);}};}return this[_0x5329c8(0x4d5)];}[_0x4b066e(0x16b)](_0xffa8d4,_0x262321){const _0x2634db=_0x4b066e;this[_0x2634db(0x827)]?.[_0x2634db(0x6d6)](_0x2634db(0x1d3),JSON[_0x2634db(0x4d2)]({'kind':'reconcile','scope':_0xffa8d4,'key':_0x262321}));}get[_0x4b066e(0x238)](){const _0x2fce07=_0x4b066e;return this[_0x2fce07(0x6dc)]||(this['_locks']=new(requireLock())[(_0x2fce07(0x828))](this,_0x2fce07(0x8a3),_0x2fce07(0x26a)));}get[_0x4b066e(0x895)](){const _0x4e694b=_0x4b066e;return this[_0x4e694b(0x851)]?this[_0x4e694b(0x851)]['db']:undefined;}get[_0x4b066e(0x4dd)](){const _0x1ea827=_0x4b066e,_0xe1ba02=this[_0x1ea827(0x851)]?.[_0x1ea827(0x3e8)];if(!_0xe1ba02)return null;const _0x7940dd=_0xe1ba02['list']()[_0x1ea827(0x21c)](_0x412b0b=>_0x412b0b['meta']?.[_0x1ea827(0x6fe)]===_0x1ea827(0x46b));return _0x7940dd?_0xe1ba02[_0x1ea827(0x1c1)](_0x7940dd['id'],_0x7940dd[_0x1ea827(0x4bd)]):null;}get[_0x4b066e(0x851)](){const _0x1b4ba4=_0x4b066e;return this[_0x1b4ba4(0x60a)]?this[_0x1b4ba4(0x8a5)]['get'](_0x1b4ba4(0x8a3)):undefined;}[_0x4b066e(0x248)](_0x158cc0){const _0x48761b=_0x4b066e;let _0x379107=Map[_0x48761b(0x455)][_0x48761b(0x63c)][_0x48761b(0x853)](this[_0x48761b(0x8a5)],_0x158cc0);if(!_0x379107){_0x379107=new _0x2f4b08(this,_0x158cc0),Map[_0x48761b(0x455)]['set'][_0x48761b(0x853)](this[_0x48761b(0x8a5)],_0x158cc0,_0x379107);if(_0x158cc0===_0x48761b(0x822))this[_0x48761b(0x890)]=_0x379107;}return _0x379107;}[_0x4b066e(0x30b)](_0x15e703=_0x4b066e(0x822)){const _0x46bf23=_0x4b066e,_0x3e5906=this[_0x46bf23(0x8a5)][_0x46bf23(0x63c)](_0x15e703);if(_0x3e5906)return _0x3e5906;if(this['_isOpen']&&this['_call']('db',null,'hasEnv',[_0x15e703],![]))return this[_0x46bf23(0x248)](_0x15e703);throw new _0x2c63fb(_0x46bf23(0x2f3)+_0x15e703+_0x46bf23(0x738),'ENV_NOT_FOUND');}get['default'](){const _0x49de7e=_0x4b066e;return this[_0x49de7e(0x30b)](_0x49de7e(0x822));}get[_0x4b066e(0x4fd)](){const _0x295e24=_0x4b066e;return this[_0x295e24(0x8a5)][_0x295e24(0x63c)](_0x295e24(0x822))??this[_0x295e24(0x890)];}get[_0x4b066e(0x6be)](){const _0x3fee0d=_0x4b066e;return this[_0x3fee0d(0x4fd)][_0x3fee0d(0x6be)];}get[_0x4b066e(0x601)](){const _0x22f797=_0x4b066e;return this[_0x22f797(0x4fd)][_0x22f797(0x601)];}[_0x4b066e(0x2a6)](_0x106f3a){const _0x46a2bd=_0x4b066e;if(!this[_0x46a2bd(0x60a)])return null;return this[_0x46a2bd(0x49e)]('db',null,_0x46a2bd(0x533),[_0x106f3a],![])?{'ref'(){},'unref'(){}}:null;}get[_0x4b066e(0x3ad)](){return this['_timerHandle']('readerCheck');}[_0x4b066e(0x625)](){const _0x32cfde=_0x4b066e;return this[_0x32cfde(0x49e)]('db',null,_0x32cfde(0x5fb),[],!![]);}get['_licenseInterval'](){const _0x35e543=_0x4b066e;return this[_0x35e543(0x2a6)](_0x35e543(0x61d));}get[_0x4b066e(0x42b)](){const _0x454e2c=_0x4b066e;return this[_0x454e2c(0x2a6)]('writerWatchdog');}get['_hlc'](){const _0x22c33a=_0x4b066e;return this[_0x22c33a(0x30b)](_0x22c33a(0x822))['_hlc'];}get[_0x4b066e(0x268)](){const _0x2e452f=_0x4b066e;throw new _0x2c63fb(_0x2e452f(0x374),_0x2e452f(0x33f));}get['processor'](){const _0x18c577=_0x4b066e;return this[_0x18c577(0x4fd)][_0x18c577(0x3e8)];}get['views'](){const _0x1eabb9=_0x4b066e;return this[_0x1eabb9(0x4fd)][_0x1eabb9(0x62a)];}async['createEnvironment'](_0x23c085,_0x36a4d3={}){const _0x9476b2=_0x4b066e;this[_0x9476b2(0x29b)]();if(_0x36a4d3&&typeof _0x36a4d3['encryptionKey']==='function'){const _0x4f6cad=_0x36a4d3[_0x9476b2(0x4e9)];this['_setKey'](_0x23c085,await _0x4f6cad(_0x23c085),!![]),this[_0x9476b2(0x52f)][_0x9476b2(0x5b9)]['set'](_0x23c085,_0x4f6cad),_0x36a4d3={..._0x36a4d3,'encryptionKey':!![]};}return this[_0x9476b2(0x49e)]('db',null,_0x9476b2(0x6ad),[_0x23c085,_0x36a4d3]),this[_0x9476b2(0x248)](_0x23c085);}async[_0x4b066e(0x654)](_0x3cf8f2){const _0x34e365=_0x4b066e;if(!this[_0x34e365(0x60a)])throw new _0x2c63fb('Cannot\x20openEnv(\x22'+_0x3cf8f2+_0x34e365(0x771),_0x34e365(0x645));return this[_0x34e365(0x49e)]('db',null,_0x34e365(0x654),[_0x3cf8f2]),this[_0x34e365(0x248)](_0x3cf8f2);}get[_0x4b066e(0x794)](){const _0x1da724=_0x4b066e;if(!this['__adminRelay']&&this[_0x1da724(0x60a)]){const _0x48941b=requireOkdbRelay(),_0x4c3da6=new _0x48941b(this,this[_0x1da724(0x66a)]?.[_0x1da724(0x593)]?.[_0x1da724(0x6b3)]??{});_0x4c3da6['attach'](),_0x4c3da6[_0x1da724(0x504)]=!![],this[_0x1da724(0x63b)]=_0x4c3da6;}return this[_0x1da724(0x63b)]??null;}set[_0x4b066e(0x794)](_0x208e63){const _0x115ce8=_0x4b066e;this[_0x115ce8(0x63b)]=_0x208e63;}get[_0x4b066e(0x797)](){const _0x117da9=_0x4b066e;let _0x2de399=0x0;if(this[_0x117da9(0x60a)])for(const [_0x22f62b]of Map[_0x117da9(0x455)][_0x117da9(0x72a)]['call'](this[_0x117da9(0x8a5)])){try{_0x2de399+=this[_0x117da9(0x49e)](_0x117da9(0x7c0),_0x22f62b,'gateQuanta',[],![])||0x0;}catch{}}return{'total':_0x2de399,'maxObserved':_0x2de399>0x0?0x1:0x0,'inFlight':0x0};}async[_0x4b066e(0x7e2)](_0xd803f7){const _0x5d340b=_0x4b066e,_0x561835=this[_0x5d340b(0x8a5)][_0x5d340b(0x63c)](_0xd803f7);if(_0x561835)return _0x561835;if(!this['_call']('db',null,_0x5d340b(0x236),[_0xd803f7],![]))throw new Error('okdb._openEnvLazy:\x20env\x20\x22'+_0xd803f7+_0x5d340b(0x854));return this[_0x5d340b(0x654)](_0xd803f7);}async[_0x4b066e(0x1fe)](_0x511c4b){const _0x59fa26=_0x4b066e,_0x33d7da=this[_0x59fa26(0x49e)]('db',null,_0x59fa26(0x761),[_0x511c4b]);return this[_0x59fa26(0x8a5)][_0x59fa26(0x82f)](_0x511c4b),_0x33d7da;}async[_0x4b066e(0x1d0)](_0x15b17c,_0x1acd37={}){const _0x1371e4=_0x4b066e;this[_0x1371e4(0x29b)]();const _0x5b5d06=this[_0x1371e4(0x49e)]('db',null,_0x1371e4(0x1d0),[_0x15b17c,_0x1acd37]);return this[_0x1371e4(0x8a5)][_0x1371e4(0x82f)](_0x15b17c),_0x5b5d06;}static get[_0x4b066e(0x6fd)](){const _0x12c0ef=_0x4b066e;return _0x30c87e[_0x12c0ef(0x6fd)];}static get['KNOWN_OPTIONS'](){return _0x30c87e['KNOWN_OPTIONS'];}static get['_OPTION_HINTS'](){const _0x9a524a=_0x4b066e;return _0x30c87e[_0x9a524a(0x647)];}static async[_0x4b066e(0x7fe)](_0x50250e,_0x78fc1f){const _0x4bd33f=_0x4b066e;return _0x12e39f('db',_0x4bd33f(0x7fe),[_0x50250e,_0x78fc1f]);}static[_0x4b066e(0x1a2)](_0x49b56e){return _0x12e39f('db','reidentify',[_0x49b56e]);}static[_0x4b066e(0x6fb)](_0x730034,_0x317a8c){const _0xac7827=_0x4b066e;_0x12e39f('views',_0xac7827(0x6fb),[_0x730034,_0x317a8c]);}static[_0x4b066e(0x68c)](_0x53e2ee,_0xd2ed42){const _0x3187cf=_0x4b066e;_0x12e39f(_0x3187cf(0x62a),_0x3187cf(0x68c),[_0x53e2ee,_0xd2ed42]);}static[_0x4b066e(0x294)](){}['equal'](_0x3baf04,_0x935d94){const _0x2e33d6=_0x4b066e;return require$$16[_0x2e33d6(0x757)](_0x3baf04,_0x935d94);}}_0x40c6a4[_0x4b066e(0x477)]=_0x30e045,Object[_0x4b066e(0x79d)](_0x40c6a4,_0x4b066e(0x4eb),{'get'(){const _0x4e8fb7=_0x4b066e;return _0x40c6a4[_0x4e8fb7(0x2dc)]||(_0x40c6a4[_0x4e8fb7(0x2dc)]=new Set());},'set'(_0x64e622){const _0x16de87=_0x4b066e;_0x40c6a4[_0x16de87(0x2dc)]=_0x64e622;try{_0x12e39f('db',_0x16de87(0x2e1),[]);}catch{}},'configurable':!![]});for(const _0x3a0dc2 of[_0x4b066e(0x7f7),'txn',_0x4b066e(0x27f),_0x4b066e(0x88e),'patch',_0x4b066e(0x740),_0x4b066e(0x42f),'get',_0x4b066e(0x791),_0x4b066e(0x2ec),_0x4b066e(0x3fa),_0x4b066e(0x618),_0x4b066e(0x7d2),_0x4b066e(0x436),_0x4b066e(0x587),'getIndex',_0x4b066e(0x2c0),_0x4b066e(0x490),_0x4b066e(0x665),_0x4b066e(0x181),_0x4b066e(0x629),'registerType','ensureType','ensure',_0x4b066e(0x2d0),_0x4b066e(0x3c7),_0x4b066e(0x195),_0x4b066e(0x7b7),_0x4b066e(0x2d8),_0x4b066e(0x764),_0x4b066e(0x219),'indexReady',_0x4b066e(0x2ef),_0x4b066e(0x43b),_0x4b066e(0x7e9),_0x4b066e(0x4ee),'getClock',_0x4b066e(0x267),_0x4b066e(0x397),'getTTL',_0x4b066e(0x483),_0x4b066e(0x6f7),_0x4b066e(0x5cc),_0x4b066e(0x81b),_0x4b066e(0x669),_0x4b066e(0x60f),_0x4b066e(0x8a4),_0x4b066e(0x3c2),_0x4b066e(0x380),'now']){_0x40c6a4[_0x4b066e(0x455)][_0x3a0dc2]=function(..._0x1e7eb0){const _0x3cc9ba=_0x4b066e,_0x50de71=this['env'](_0x3cc9ba(0x822));return _0x50de71[_0x3a0dc2](..._0x1e7eb0);};}function _0x104dd6(_0x335a2f){const _0x4be3e0=_0x4b066e,_0xe8d035=_0x5df7e7=>()=>{const _0x4b3c3e=_0x3ebb;throw new Error('db.processors.'+_0x5df7e7+_0x4b3c3e(0x284));};return{'process':_0xe8d035(_0x4be3e0(0x7c3)),'processRest':_0xe8d035(_0x4be3e0(0x7e8)),'processEverything':_0xe8d035('processEverything()'),async 'start'(){const _0x3c7e89=_0x4be3e0;return _0x335a2f[_0x3c7e89(0x49e)]('db',null,'processorsStart',[]);},async 'stop'(){const _0x15366c=_0x4be3e0;return _0x335a2f[_0x15366c(0x49e)]('db',null,_0x15366c(0x3b7),[]);},'status'(){const _0x5af15e=_0x4be3e0;return _0x335a2f[_0x5af15e(0x49e)]('db',null,_0x5af15e(0x66b),[],![]);},get 'participating'(){const _0x3519aa=_0x4be3e0;return _0x335a2f[_0x3519aa(0x49e)]('db',null,_0x3519aa(0x41d),[],![]);},get '_participate'(){const _0x1a3edb=_0x4be3e0;return _0x335a2f[_0x1a3edb(0x49e)]('db',null,'processorsParticipating',[],![]);}};}function _0x12e39f(_0x415fbc,_0xfcc5d6,_0x4e8a8a){_0x46d76c();try{return _0x24f469()['callStatic'](_0x415fbc,_0xfcc5d6,_0x4e8a8a);}catch(_0x27b89f){throw _0x2354a9(_0x27b89f);}}_0x590e4f[_0x4b066e(0x3be)]=_0x40c6a4,_0x590e4f[_0x4b066e(0x3be)]['staticCall']=_0x12e39f,_0x590e4f['exports'][_0x4b066e(0x511)]=_0x40c6a4,_0x590e4f['exports'][_0x4b066e(0x477)]=_0x30e045,_0x590e4f[_0x4b066e(0x3be)][_0x4b066e(0x822)]=_0x40c6a4,Object[_0x4b066e(0x79d)](_0x590e4f[_0x4b066e(0x3be)],_0x4b066e(0x73a),{'get':()=>require$$1$1[_0x4b066e(0x870)]?.()??null,'enumerable':![],'configurable':!![]});}(lib),lib[_0x566dfe(0x3be)];}var libExports=requireLib(),index=getDefaultExportFromCjs(libExports);module[_0x2ec26e(0x3be)]=index;
1
+ 'use strict';const _0xef081e=_0x2fc2;(function(_0x4220e2,_0x462493){const _0x3e900e=_0x2fc2,_0x1073e0=_0x4220e2();while(!![]){try{const _0x404346=parseInt(_0x3e900e(0x22f))/0x1+parseInt(_0x3e900e(0x720))/0x2*(-parseInt(_0x3e900e(0x7c9))/0x3)+parseInt(_0x3e900e(0x712))/0x4*(parseInt(_0x3e900e(0x245))/0x5)+-parseInt(_0x3e900e(0x499))/0x6*(-parseInt(_0x3e900e(0x310))/0x7)+-parseInt(_0x3e900e(0x60f))/0x8+-parseInt(_0x3e900e(0x629))/0x9+-parseInt(_0x3e900e(0x68b))/0xa;if(_0x404346===_0x462493)break;else _0x1073e0['push'](_0x1073e0['shift']());}catch(_0x4927d8){_0x1073e0['push'](_0x1073e0['shift']());}}}(_0x150e,0xcc736));var require$$0$6=require(_0xef081e(0x298)),require$$1$1=require('./native-loader.js'),require$$0=require(_0xef081e(0x52d)),require$$1=require(_0xef081e(0x216)),require$$4=require(_0xef081e(0x49a)),require$$0$2=require('node:crypto'),require$$0$1=require(_0xef081e(0x1ec)),require$$16=require('node:util'),require$$0$3=require(_0xef081e(0x876)),require$$2=require('node:cluster'),require$$18=require(_0xef081e(0x2f7)),require$$0$4=require(_0xef081e(0x21e)),require$$0$5=require('sift');function getDefaultExportFromCjs(_0x51ef25){const _0x44d23e=_0xef081e;return _0x51ef25&&_0x51ef25[_0x44d23e(0x677)]&&Object[_0x44d23e(0x7c6)][_0x44d23e(0x3ce)][_0x44d23e(0x62a)](_0x51ef25,_0x44d23e(0x6ab))?_0x51ef25[_0x44d23e(0x6ab)]:_0x51ef25;}var lib={'exports':{}},okdbError,hasRequiredOkdbError;function requireOkdbError(){if(hasRequiredOkdbError)return okdbError;hasRequiredOkdbError=0x1;class _0x3094d8 extends Error{constructor(_0x121829,_0x583d8a,_0x3ef567={}){const _0x587f66=_0x2fc2;super(_0x121829),this[_0x587f66(0x686)]='OKDBError',this[_0x587f66(0x1bd)]=_0x583d8a,this[_0x587f66(0x22a)]=_0x3ef567,_0x3ef567['cause']&&(this[_0x587f66(0x847)]=_0x3ef567[_0x587f66(0x847)]),Error[_0x587f66(0x89a)](this,this[_0x587f66(0x8c6)]);}}class _0x583584 extends _0x3094d8{constructor(_0x2bcf3b,_0x268f93,_0x56f9ec,_0x1e4e8e){const _0x1fe58d=_0x2fc2;super(_0x1fe58d(0x826)+_0x2bcf3b+'@'+_0x268f93+_0x1fe58d(0x61c)+_0x56f9ec+_0x1fe58d(0x868)+_0x1e4e8e,_0x1fe58d(0x3ea),{'type':_0x2bcf3b,'key':_0x268f93,'expectedVersion':_0x56f9ec,'actualVersion':_0x1e4e8e}),this[_0x1fe58d(0x686)]='OKDBVersionMismatchError';}}class _0x25f3e5 extends _0x3094d8{constructor(_0x3fc5c1,_0x1677b1){const _0x341c59=_0x2fc2;super(_0x3fc5c1+'@'+_0x1677b1+'\x20does\x20not\x20exist','NOT_FOUND',{'type':_0x3fc5c1,'key':_0x1677b1}),this[_0x341c59(0x686)]='OKDBNotFoundError';}}class _0x8293c0 extends _0x3094d8{constructor(_0x59fcbd,_0x56c14b){const _0x1a6492=_0x2fc2;super(_0x59fcbd+'@'+_0x56c14b+'\x20already\x20exists',_0x1a6492(0x8f2),{'type':_0x59fcbd,'key':_0x56c14b}),this[_0x1a6492(0x686)]=_0x1a6492(0x863);}}class _0xe8ca75 extends _0x3094d8{constructor(_0x387f29,_0x40b1b3){const _0x5e131f=_0x2fc2,_0x1bafcc=typeof _0x40b1b3;super(_0x5e131f(0x6f4)+_0x387f29+_0x5e131f(0x83a)+_0x1bafcc+'.\x20Only\x20primitives,\x20null,\x20Buffers,\x20and\x20arrays\x20are\x20allowed.\x20Got:\x20'+_0x40b1b3,_0x5e131f(0x889),{'index':_0x387f29,'key':_0x40b1b3,'keyType':_0x1bafcc}),this[_0x5e131f(0x686)]='OKDBInvalidIndexKeyError';}}class _0x529e14 extends _0x3094d8{constructor(_0x4060bf){const _0x269b4b=_0x2fc2,_0x1895d2=typeof _0x4060bf;super('Invalid\x20primary\x20key\x20type:\x20'+_0x1895d2+_0x269b4b(0x3d7)+_0x4060bf,_0x269b4b(0x676),{'key':_0x4060bf,'keyType':_0x1895d2}),this[_0x269b4b(0x686)]=_0x269b4b(0x807);}}class _0x367944 extends _0x3094d8{constructor(_0x710a8a){const _0x341dc8=_0x2fc2;super(_0x341dc8(0x7ff)+_0x710a8a+_0x341dc8(0x34b),'TYPE_NOT_REGISTERED',{'type':_0x710a8a}),this[_0x341dc8(0x686)]=_0x341dc8(0x44d);}}class _0x8681b2 extends _0x3094d8{constructor(_0x107e12){const _0x3e8184=_0x2fc2;super(_0x3e8184(0x7ff)+_0x107e12+_0x3e8184(0x76d),_0x3e8184(0x75b),{'type':_0x107e12}),this[_0x3e8184(0x686)]=_0x3e8184(0x5cf);}}class _0x519411 extends _0x3094d8{constructor(_0x3c85ac,_0xf3d068){const _0x471ee7=_0x2fc2;super(_0x471ee7(0x72d)+_0xf3d068+_0x471ee7(0x5de)+_0x3c85ac+'\x27\x20doesn\x27t\x20exist',_0x471ee7(0x435),{'type':_0x3c85ac,'index':_0xf3d068}),this[_0x471ee7(0x686)]=_0x471ee7(0x3fa);}}class _0x16f171 extends _0x3094d8{constructor(_0x498b7c,_0x510e36){const _0x19922a=_0x2fc2;super(_0x19922a(0x72d)+_0x510e36+_0x19922a(0x5de)+_0x498b7c+'\x27\x20is\x20already\x20registered',_0x19922a(0x502),{'type':_0x498b7c,'index':_0x510e36}),this[_0x19922a(0x686)]='OKDBIndexAlreadyRegisteredError';}}class _0x534dfb extends _0x3094d8{constructor(_0x4738b1,_0x16b771={}){const _0x25b5f0=_0x2fc2;super(_0x4738b1,'INVALID_VALUE',_0x16b771),this[_0x25b5f0(0x686)]=_0x25b5f0(0x203);}}class _0x4f0ad7 extends _0x3094d8{constructor(_0x163167,_0x406dd7,_0x5d8037,_0x473627,_0x4806ac){const _0x2d2bf5=_0x2fc2;super(_0x2d2bf5(0x898)+_0x163167+'@'+_0x406dd7+':\x20key\x20['+_0x5d8037+_0x2d2bf5(0x263)+_0x473627+_0x2d2bf5(0x29b)+_0x4806ac+'\x27',_0x2d2bf5(0x56a),{'type':_0x163167,'index':_0x406dd7,'indexKey':_0x5d8037,'existingKey':_0x473627,'conflictingKey':_0x4806ac}),this['name']=_0x2d2bf5(0x4e8);}}class _0x41765b extends _0x3094d8{constructor(_0x311129,_0x18c004,_0x22d2b8){const _0x3fe32b=_0x2fc2;super('Schema\x20validation\x20failed\x20for\x20'+_0x311129+'@'+_0x18c004,_0x3fe32b(0x81d),{'type':_0x311129,'key':_0x18c004,'errors':_0x22d2b8}),this[_0x3fe32b(0x686)]='OKDBSchemaValidationError',this[_0x3fe32b(0x490)]=_0x311129,this[_0x3fe32b(0x59b)]=_0x18c004,this[_0x3fe32b(0x518)]=_0x22d2b8;}}class _0xfbd11d extends _0x3094d8{constructor(_0x51d91e,_0x3a8d73){const _0x5c69dc=_0x2fc2;super('Cannot\x20set\x20enforce\x20schema\x20on\x20'+_0x51d91e+':\x20'+_0x3a8d73[_0x5c69dc(0x788)]+_0x5c69dc(0x6a4),_0x5c69dc(0x287),{'type':_0x51d91e,'failures':_0x3a8d73}),this['name']='OKDBSchemaCollectionError',this[_0x5c69dc(0x490)]=_0x51d91e,this[_0x5c69dc(0x812)]=_0x3a8d73;}}class _0xa0ae6f extends _0x3094d8{constructor(_0x2f1f52,_0x57f7ee,_0x5e9cca,_0x2d6553,_0x233bfc){const _0x587d19=_0x2fc2;super(_0x587d19(0x1f7)+_0x2f1f52+'@'+_0x57f7ee+'.'+_0x5e9cca+_0x587d19(0x48d)+_0x2d6553+'@'+_0x233bfc+_0x587d19(0x3b3),_0x587d19(0x618),{'sourceType':_0x2f1f52,'sourceKey':_0x57f7ee,'fieldPath':_0x5e9cca,'targetType':_0x2d6553,'targetKey':_0x233bfc}),this['name']='OKDBForeignKeyError',this[_0x587d19(0x753)]=_0x2f1f52,this['sourceKey']=_0x57f7ee,this[_0x587d19(0x3e4)]=_0x5e9cca,this[_0x587d19(0x58c)]=_0x2d6553,this[_0x587d19(0x411)]=_0x233bfc;}}class _0x3d6c1e extends _0x3094d8{constructor(_0x37ab0f,_0x7025a,_0x3e904b){const _0x1c96e9=_0x2fc2;super('Cannot\x20delete\x20'+_0x37ab0f+'@'+_0x7025a+':\x20'+_0x3e904b[_0x1c96e9(0x788)]+_0x1c96e9(0x5b3),_0x1c96e9(0x361),{'targetType':_0x37ab0f,'targetKey':_0x7025a,'references':_0x3e904b}),this['name']=_0x1c96e9(0x224),this[_0x1c96e9(0x58c)]=_0x37ab0f,this[_0x1c96e9(0x411)]=_0x7025a,this[_0x1c96e9(0x29d)]=_0x3e904b;}}class _0x59ba5f extends _0x3094d8{constructor(_0x258fa9,_0x6c89a8,_0x50d7ab){const _0x28c6c7=_0x2fc2;super(_0x28c6c7(0x549)+_0x6c89a8+'\x22\x20on\x20\x22'+_0x258fa9+_0x28c6c7(0x54f)+_0x50d7ab[_0x28c6c7(0x642)](_0x28d975=>_0x28d975[_0x28c6c7(0x7af)]+':'+_0x28d975[_0x28c6c7(0x686)])[_0x28c6c7(0x8a0)](',\x20'),_0x28c6c7(0x48b),{'type':_0x258fa9,'index':_0x6c89a8,'usedBy':_0x50d7ab}),this[_0x28c6c7(0x686)]='OKDBIndexHasConsumersError';}}return okdbError={'OKDBError':_0x3094d8,'OKDBVersionMismatchError':_0x583584,'OKDBNotFoundError':_0x25f3e5,'OKDBAlreadyExistsError':_0x8293c0,'OKDBInvalidIndexKeyError':_0xe8ca75,'OKDBInvalidPrimaryKeyError':_0x529e14,'OKDBTypeNotRegisteredError':_0x367944,'OKDBTypeAlreadyRegisteredError':_0x8681b2,'OKDBIndexNotRegisteredError':_0x519411,'OKDBIndexAlreadyRegisteredError':_0x16f171,'OKDBInvalidValueError':_0x534dfb,'OKDBUniqueConstraintError':_0x4f0ad7,'OKDBSchemaValidationError':_0x41765b,'OKDBSchemaCollectionError':_0xfbd11d,'OKDBForeignKeyError':_0xa0ae6f,'OKDBForeignKeyDeleteError':_0x3d6c1e,'OKDBIndexHasConsumersError':_0x59ba5f},okdbError;}var errors,hasRequiredErrors;function requireErrors(){const _0x55de1b=_0xef081e;if(hasRequiredErrors)return errors;hasRequiredErrors=0x1;const _0x2e2ca8=requireOkdbError(),_0x1809e2={'VERSION_MISMATCH':_0x2e2ca8[_0x55de1b(0x2ae)],'NOT_FOUND':_0x2e2ca8['OKDBNotFoundError'],'ALREADY_EXISTS':_0x2e2ca8[_0x55de1b(0x863)],'INVALID_INDEX_KEY':_0x2e2ca8['OKDBInvalidIndexKeyError'],'INVALID_PRIMARY_KEY':_0x2e2ca8[_0x55de1b(0x807)],'TYPE_NOT_REGISTERED':_0x2e2ca8[_0x55de1b(0x44d)],'TYPE_ALREADY_REGISTERED':_0x2e2ca8[_0x55de1b(0x5cf)],'INDEX_NOT_REGISTERED':_0x2e2ca8[_0x55de1b(0x3fa)],'INDEX_ALREADY_REGISTERED':_0x2e2ca8[_0x55de1b(0x2f9)],'INVALID_VALUE':_0x2e2ca8[_0x55de1b(0x203)],'UNIQUE_CONSTRAINT':_0x2e2ca8[_0x55de1b(0x4e8)],'SCHEMA_VALIDATION_FAILED':_0x2e2ca8['OKDBSchemaValidationError'],'SCHEMA_COLLECTION_INVALID':_0x2e2ca8[_0x55de1b(0x835)],'FOREIGN_KEY_VIOLATION':_0x2e2ca8[_0x55de1b(0x5b9)],'FOREIGN_KEY_DELETE_RESTRICTED':_0x2e2ca8[_0x55de1b(0x224)],'INDEX_HAS_CONSUMERS':_0x2e2ca8['OKDBIndexHasConsumersError']};class _0x4dd05e extends _0x2e2ca8[_0x55de1b(0x27b)]{constructor(_0x1048cf,_0xd6a4d6){const _0x551de5=_0x55de1b;super(_0x1048cf+_0x551de5(0x666)+(_0xd6a4d6?'\x20('+_0xd6a4d6+')':''),_0x551de5(0x377),{'feature':_0x1048cf}),this[_0x551de5(0x686)]=_0x551de5(0x6b0);}}function _0x4aba37(_0x307d5f){const _0x32711f=_0x55de1b;if(!_0x307d5f||typeof _0x307d5f!==_0x32711f(0x7f6)||!_0x307d5f[_0x32711f(0x248)])return _0x307d5f;delete _0x307d5f[_0x32711f(0x248)];const _0x41c1ba=_0x307d5f[_0x32711f(0x1bd)];if(_0x41c1ba===_0x32711f(0x830)||_0x41c1ba==='TypeError'||_0x41c1ba===_0x32711f(0x80f)){const _0x558454=_0x41c1ba===_0x32711f(0x305)?TypeError[_0x32711f(0x7c6)]:_0x41c1ba==='RangeError'?RangeError['prototype']:Error[_0x32711f(0x7c6)];Object[_0x32711f(0x717)](_0x307d5f,_0x558454),_0x307d5f[_0x32711f(0x686)]=_0x41c1ba;if(_0x307d5f[_0x32711f(0x22a)]&&_0x307d5f[_0x32711f(0x22a)]['status']!==undefined)_0x307d5f['status']=_0x307d5f[_0x32711f(0x22a)][_0x32711f(0x442)];return delete _0x307d5f[_0x32711f(0x1bd)],delete _0x307d5f['details'],_0x307d5f;}const _0xb8f49a=_0x1809e2[_0x41c1ba];Object[_0x32711f(0x717)](_0x307d5f,(_0xb8f49a||_0x2e2ca8[_0x32711f(0x27b)])[_0x32711f(0x7c6)]),_0x307d5f[_0x32711f(0x686)]=_0xb8f49a?_0xb8f49a[_0x32711f(0x686)][_0x32711f(0x6fc)](/^OKDB/,_0x32711f(0x401)):_0x32711f(0x27b);const _0x4ada9e=_0x307d5f['details']||{};_0x41c1ba===_0x32711f(0x81d)&&(_0x307d5f[_0x32711f(0x490)]=_0x4ada9e[_0x32711f(0x490)],_0x307d5f['key']=_0x4ada9e['key'],_0x307d5f['errors']=_0x4ada9e['errors']);_0x41c1ba==='SCHEMA_COLLECTION_INVALID'&&(_0x307d5f['type']=_0x4ada9e[_0x32711f(0x490)],_0x307d5f[_0x32711f(0x812)]=_0x4ada9e[_0x32711f(0x812)]);if(_0x41c1ba===_0x32711f(0x618)){for(const _0x20e93c of['sourceType',_0x32711f(0x379),_0x32711f(0x3e4),'targetType',_0x32711f(0x411)])_0x307d5f[_0x20e93c]=_0x4ada9e[_0x20e93c];}if(_0x41c1ba===_0x32711f(0x361)){for(const _0x541c51 of['targetType',_0x32711f(0x411),_0x32711f(0x29d)])_0x307d5f[_0x541c51]=_0x4ada9e[_0x541c51];}if(_0x4ada9e['cause'])_0x307d5f[_0x32711f(0x847)]=_0x4ada9e[_0x32711f(0x847)];if(_0x4ada9e[_0x32711f(0x442)]!==undefined)_0x307d5f[_0x32711f(0x442)]=_0x4ada9e[_0x32711f(0x442)];if(_0x4ada9e[_0x32711f(0x4a3)]!==undefined)_0x307d5f[_0x32711f(0x4a3)]=_0x4ada9e[_0x32711f(0x4a3)];return _0x307d5f;}function _0x5a0897(_0x20d4c8){const _0x5aadea=_0x55de1b;if(_0x20d4c8===undefined)return _0x5aadea(0x312);if(_0x20d4c8===null)return _0x5aadea(0x7e6);if(typeof _0x20d4c8===_0x5aadea(0x43c))return _0x20d4c8?_0x5aadea(0x43c):'empty\x20string';if(typeof _0x20d4c8===_0x5aadea(0x484))return _0x5aadea(0x484);if(typeof _0x20d4c8!=='object')return typeof _0x20d4c8;if(Array['isArray'](_0x20d4c8))return _0x20d4c8[_0x5aadea(0x788)]?'array':_0x5aadea(0x6fe);if(_0x20d4c8 instanceof Date)return _0x5aadea(0x806);if(_0x20d4c8 instanceof Map)return _0x5aadea(0x83c);if(Buffer[_0x5aadea(0x605)](_0x20d4c8))return'Buffer';return _0x5aadea(0x7f6);}const _0x511397=(_0x2b33f0,_0x3b7da6,_0x65343a)=>new _0x2e2ca8['OKDBError'](_0x3b7da6,_0x2b33f0,_0x65343a),_0x5b3f8f=(_0x12b322,_0x20f313,_0x240942)=>_0x511397('INVALID_ARGUMENT',_0x12b322+_0x55de1b(0x6f0)+_0x20f313+_0x55de1b(0x694)+_0x5a0897(_0x240942),{'argument':_0x12b322,'expected':_0x20f313,'got':_0x5a0897(_0x240942)}),_0x165c29=(_0x4ca49c,_0x2b697c)=>_0x511397('INVALID_TYPE_NAME',_0x4ca49c+_0x55de1b(0x344)+_0x5a0897(_0x2b697c),{'argument':_0x4ca49c,'expected':'non-empty\x20string','got':_0x5a0897(_0x2b697c)}),_0x5a306a=(_0x29a9ce,_0x36519d)=>_0x511397(_0x55de1b(0x4f7),_0x29a9ce+':\x20'+_0x36519d,{'argument':_0x29a9ce,'problem':_0x36519d});function _0x25324b(_0x433ffe,_0x2156ca=_0x55de1b(0x1cc)){if(_0x433ffe===undefined)return{};if(_0x433ffe===null)throw _0x5a306a(_0x2156ca,'must\x20be\x20an\x20object;\x20got\x20null');return _0x433ffe;}return errors={'reclass':_0x4aba37,'NotImplementedNative':_0x4dd05e,'BY_CODE':_0x1809e2,'describe':_0x5a0897,'invalidArgument':_0x5b3f8f,'invalidTypeName':_0x165c29,'invalidOptions':_0x5a306a,'optionsArg':_0x25324b,..._0x2e2ca8},errors;}var bridge_1,hasRequiredBridge;function requireBridge(){if(hasRequiredBridge)return bridge_1;hasRequiredBridge=0x1;const _0x51b64a=new Map(),_0x25f50c=new Map();let _0x124d65=0x1;const _0x4a3e49=new Map(),_0xe751f=new Map();let _0x5a5dac=0x1;const _0x1799ba=new Map();let _0x55c989=0x1;const _0x1e9302=new Map();function _0x18848d(_0x28abf5,_0xeeb81c=null){const _0x24b67c=_0x2fc2,_0xc944a7=_0x55c989++;_0x1799ba[_0x24b67c(0x204)](_0xc944a7,_0x28abf5);if(_0xeeb81c)_0x1e9302[_0x24b67c(0x204)](_0xc944a7,_0xeeb81c);return _0xc944a7;}function _0x5ec267(_0x30a3f5,_0x29a82c){const _0x4cf871=_0x2fc2,_0x17891c=_0x1799ba[_0x4cf871(0x292)](_0x30a3f5),_0xa1d1b6=Array[_0x4cf871(0x7c6)][_0x4cf871(0x848)]['call'](arguments,0x2),_0x34b17a=_0x294dce=>_0x5d2776(_0x294dce,_0x1e9302[_0x4cf871(0x292)](_0x30a3f5));let _0x36d93b=_0xa1d1b6;if(_0x29a82c===_0x4cf871(0x77b)||_0x29a82c===_0x4cf871(0x6bf)||_0x29a82c==='uninstall'||_0x29a82c===_0x4cf871(0x210)||_0x29a82c===_0x4cf871(0x86e))_0x36d93b=[_0x34b17a(_0xa1d1b6[0x0])];else{if(_0x29a82c==='patchConfig')_0x36d93b=[_0xa1d1b6[0x0],_0xa1d1b6[0x1],_0x34b17a(_0xa1d1b6[0x2])];else{if(_0x29a82c===_0x4cf871(0x736))_0x36d93b=[_0x34b17a(_0xa1d1b6[0x0])];}}let _0x2f0b2a=_0x17891c[_0x29a82c](..._0x36d93b);if(_0x2f0b2a&&typeof _0x2f0b2a['then']===_0x4cf871(0x484))_0x2f0b2a=_0x5ca6ed(_0x2f0b2a);if(_0x29a82c===_0x4cf871(0x77b)){const _0x1081d4=_0x2f0b2a&&typeof _0x2f0b2a===_0x4cf871(0x7f6)?_0x18848d(_0x2f0b2a):_0x18848d({});return{'$api':_0x1081d4};}return _0x2f0b2a===undefined?null:_0x2f0b2a;}function _0x5d2776(_0x4988db,_0x42ab10){const _0x23460f=_0x2fc2;let _0x1a2bb4=_0x57c8e7[_0x23460f(0x292)](_0x4988db['storeEnvPath']);const _0x1562f4=_0x1a2bb4&&_0x1a2bb4[_0x23460f(0x82e)]||_0x42ab10||_0x459e01,_0x3086c5=(_0x2eb7b8,..._0x5cdbc9)=>_0x1562f4[_0x23460f(0x5a1)](_0x23460f(0x2af),null,_0x2eb7b8,[_0x4988db[_0x23460f(0x490)],_0x4988db[_0x23460f(0x686)],..._0x5cdbc9],!![]);return{'okdb':_0x1562f4,'key':_0x4988db[_0x23460f(0x59b)],'type':_0x4988db['type'],'name':_0x4988db[_0x23460f(0x686)],get 'storeEnv'(){const _0x344878=_0x23460f;if(!_0x1a2bb4&&_0x1562f4&&_0x1562f4[_0x344878(0x489)]&&_0x4988db[_0x344878(0x77c)])_0x1a2bb4=_0x1562f4[_0x344878(0x75a)][_0x344878(0x292)](_0x4988db[_0x344878(0x77c)]);return _0x1a2bb4;},'storeEnvName':_0x4988db['storeEnvName'],'config':_0x4988db[_0x23460f(0x684)],'meta':_0x4988db['meta'],'options':_0x4988db[_0x23460f(0x1cc)],'emit':(_0x5cef4c,_0xffb5f5)=>_0x3086c5(_0x23460f(0x5c4),_0x5cef4c,_0xffb5f5),'updateStatus':async(_0x223a1a,_0x518f25)=>_0x3086c5(_0x23460f(0x2b3),_0x223a1a,_0x518f25==null?null:String(_0x518f25&&_0x518f25[_0x23460f(0x485)]?_0x518f25[_0x23460f(0x485)]:_0x518f25)),'updateMeta':async _0x51bcc2=>_0x3086c5(_0x23460f(0x34a),{'meta':_0x51bcc2}),'updateConfig':async _0x3cb8ee=>_0x3086c5(_0x23460f(0x34a),{'config':_0x3cb8ee})};}function _0x360fa5(_0x4171e9,_0x2453a4,_0x39fbef){const _0xe5d598=_0x2fc2;if(_0x4171e9===_0xe5d598(0x2c2)){const _0x5a3626=_0x5eaa71(_0x2453a4);let _0x105285=_0x5a3626(_0x39fbef);if(_0x105285&&typeof _0x105285[_0xe5d598(0x458)]===_0xe5d598(0x484))_0x105285=_0x5ca6ed(_0x105285);if(!_0x105285||typeof _0x105285['embed']!=='function'){const {OKDBError:_0x1ce819}=requireErrors();throw new _0x1ce819(_0xe5d598(0x77f)+(_0x39fbef&&_0x39fbef[_0xe5d598(0x490)])+_0xe5d598(0x852),_0xe5d598(0x2eb));}return _0x105285[_0xe5d598(0x248)]=_0x5a3626[_0xe5d598(0x248)],{'$id':_0x18848d(_0x105285),'batch':typeof _0x105285[_0xe5d598(0x3b9)]===_0xe5d598(0x484)};}const _0x5503f3=_0x1799ba['get'](_0x2453a4);if(_0x4171e9==='free')return _0x1799ba[_0xe5d598(0x46b)](_0x2453a4),_0x34f4c0[_0xe5d598(0x46b)](_0x2453a4),null;if(!_0x5503f3)throw new Error(_0xe5d598(0x1d7));if(typeof _0x5503f3[_0x4171e9]!==_0xe5d598(0x484))return null;if(_0x4171e9===_0xe5d598(0x845)||_0x4171e9===_0xe5d598(0x3b9)){const _0xed55f2=_0x4171e9==='embedBatch'?_0xd339d9(_0x2453a4,_0x5503f3,_0x39fbef):_0x2efe09(_0x2453a4,_0x5503f3,_0x4171e9,_0x39fbef);return _0x4171e9===_0xe5d598(0x845)?Array[_0xe5d598(0x51b)](_0xed55f2):_0xed55f2['map'](_0xfb8f87=>Array[_0xe5d598(0x51b)](_0xfb8f87));}let _0x18384e=_0x5503f3[_0x4171e9]();if(_0x18384e&&typeof _0x18384e[_0xe5d598(0x458)]===_0xe5d598(0x484))_0x18384e=_0x5ca6ed(_0x18384e);return _0x18384e===undefined?null:_0x18384e;}function _0x15378a(_0x38167e,_0x21ca38,_0x1a6060){const _0x18ccb4=_0x2fc2;if(_0x38167e===_0x18ccb4(0x2c2)){const _0x3d8af0=_0x5eaa71(_0x21ca38);let _0xc3d3ca=_0x3d8af0(_0x1a6060[_0x18ccb4(0x684)]??{},{'dims':_0x1a6060[_0x18ccb4(0x3a7)],'dir':_0x1a6060[_0x18ccb4(0x37c)]});if(_0xc3d3ca&&typeof _0xc3d3ca[_0x18ccb4(0x458)]==='function')_0xc3d3ca=_0x5ca6ed(_0xc3d3ca);for(const _0x400a27 of[_0x18ccb4(0x64c),_0x18ccb4(0x77d),_0x18ccb4(0x28d),_0x18ccb4(0x5ad),_0x18ccb4(0x4c2)]){if(!_0xc3d3ca||typeof _0xc3d3ca[_0x400a27]!==_0x18ccb4(0x484)){const {OKDBError:_0x2e3740}=requireErrors();throw new _0x2e3740(_0x18ccb4(0x302)+_0x400a27+'()','BAD_ALGORITHM_FACTORY',{'method':_0x400a27});}}return{'$id':_0x18848d(_0xc3d3ca)};}const _0x51320c=_0x1799ba[_0x18ccb4(0x292)](_0x21ca38);if(_0x38167e===_0x18ccb4(0x66b))return _0x1799ba[_0x18ccb4(0x46b)](_0x21ca38),null;if(!_0x51320c)throw new Error(_0x18ccb4(0x4e2));const _0xb2253a=_0x3ce96c=>_0x3ce96c?_0x3ce96c[_0x18ccb4(0x642)](_0x4c59fd=>({'key':_0x4c59fd[_0x18ccb4(0x59b)],'vector':Float32Array[_0x18ccb4(0x51b)](_0x4c59fd[_0x18ccb4(0x314)])})):null;let _0x5d7540;switch(_0x38167e){case'load':case _0x18ccb4(0x774):{const _0x43ff70=_0xb2253a(_0x1a6060);_0x5d7540=_0x51320c[_0x38167e](_0x43ff70?async()=>_0x43ff70:undefined);break;}case _0x18ccb4(0x77d):_0x5d7540=_0x51320c['add'](_0x1a6060[0x0],Float32Array[_0x18ccb4(0x51b)](_0x1a6060[0x1]),_0x1a6060[0x2]??undefined);break;case _0x18ccb4(0x28d):_0x5d7540=_0x51320c[_0x18ccb4(0x28d)](_0x1a6060);break;case _0x18ccb4(0x5ad):_0x5d7540=_0x51320c[_0x18ccb4(0x5ad)](Float32Array[_0x18ccb4(0x51b)](_0x1a6060[_0x18ccb4(0x5e7)]),_0x1a6060[_0x18ccb4(0x5c9)]??{});break;case'snapshot':_0x5d7540=typeof _0x51320c[_0x18ccb4(0x5d0)]===_0x18ccb4(0x484)?_0x51320c['snapshot'](_0x1a6060??undefined):![];break;case _0x18ccb4(0x6bf):_0x5d7540=typeof _0x51320c[_0x18ccb4(0x6bf)]===_0x18ccb4(0x484)?_0x51320c[_0x18ccb4(0x6bf)]():undefined;break;case _0x18ccb4(0x813):_0x5d7540=typeof _0x51320c[_0x18ccb4(0x813)]===_0x18ccb4(0x484)?_0x51320c[_0x18ccb4(0x813)]():undefined;break;case'count':return Number(_0x51320c[_0x18ccb4(0x4c2)]());case _0x18ccb4(0x1f9):return(typeof _0x51320c[_0x18ccb4(0x1f9)]==='function'?_0x51320c['info']():null)??{};default:throw new Error('algorithm\x20has\x20no\x20method\x20'+_0x38167e);}if(_0x5d7540&&typeof _0x5d7540[_0x18ccb4(0x458)]===_0x18ccb4(0x484))_0x5d7540=_0x5ca6ed(_0x5d7540);return _0x5d7540===undefined?null:_0x5d7540;}function _0x206dd3(_0x27bb34,_0xb47cae,_0x5a0964){const _0x346e71=_0x2fc2;if(_0x27bb34===_0x346e71(0x2c2)){const _0x500a3d=_0x5eaa71(_0xb47cae);let _0x34a00f=_0x500a3d(_0x5a0964);if(_0x34a00f&&typeof _0x34a00f[_0x346e71(0x458)]===_0x346e71(0x484))_0x34a00f=_0x5ca6ed(_0x34a00f);if(!_0x34a00f)return null;const _0x4607a0=[_0x346e71(0x4bf),'keys',_0x346e71(0x292),'count','dropAll','stats'][_0x346e71(0x877)](_0x499711=>typeof _0x34a00f[_0x499711]==='function');return{'$id':_0x18848d(_0x34a00f),'has':_0x4607a0};}const _0x1c65f5=_0x1799ba[_0x346e71(0x292)](_0xb47cae);if(_0x27bb34===_0x346e71(0x66b))return _0x1799ba[_0x346e71(0x46b)](_0xb47cae),null;if(!_0x1c65f5)throw new Error(_0x346e71(0x6d3));const _0x3bdee0=_0x368e9b=>Float32Array[_0x346e71(0x51b)](_0x368e9b);let _0x561a96;switch(_0x27bb34){case _0x346e71(0x1dd):_0x561a96=_0x1c65f5[_0x346e71(0x1dd)](_0x5a0964[0x0],_0x3bdee0(_0x5a0964[0x1]));break;case'remove':_0x561a96=_0x1c65f5[_0x346e71(0x28d)](_0x5a0964);break;case _0x346e71(0x5f2):{_0x561a96=typeof _0x1c65f5['getAll']===_0x346e71(0x484)?_0x1c65f5[_0x346e71(0x5f2)]():[];if(_0x561a96&&typeof _0x561a96['then']===_0x346e71(0x484))_0x561a96=_0x5ca6ed(_0x561a96);return Array[_0x346e71(0x51b)](_0x561a96??[],_0x34758b=>({'key':_0x34758b['key'],'vector':Array[_0x346e71(0x51b)](_0x34758b['vector'])}));}case _0x346e71(0x4bf):_0x561a96=_0x1c65f5[_0x346e71(0x4bf)](_0x5a0964[_0x346e71(0x7f7)][_0x346e71(0x642)](_0x2a23df=>({'key':_0x2a23df[_0x346e71(0x59b)],'vector':_0x3bdee0(_0x2a23df[_0x346e71(0x314)])})),_0x5a0964[_0x346e71(0x23a)]);break;case _0x346e71(0x607):_0x561a96=_0x1c65f5[_0x346e71(0x607)](_0x5a0964??undefined);if(_0x561a96&&typeof _0x561a96[_0x346e71(0x458)]===_0x346e71(0x484))_0x561a96=_0x5ca6ed(_0x561a96);return Array['from'](_0x561a96??[]);case _0x346e71(0x292):{_0x561a96=_0x1c65f5['get'](_0x5a0964);if(_0x561a96&&typeof _0x561a96[_0x346e71(0x458)]===_0x346e71(0x484))_0x561a96=_0x5ca6ed(_0x561a96);return _0x561a96==null?null:Array[_0x346e71(0x51b)](_0x561a96);}case'count':return Number(_0x1c65f5[_0x346e71(0x4c2)]());case'dropAll':_0x561a96=_0x1c65f5[_0x346e71(0x4ca)]();break;case _0x346e71(0x70a):return _0x1c65f5[_0x346e71(0x70a)]()??null;default:throw new Error(_0x346e71(0x50c)+_0x27bb34);}if(_0x561a96&&typeof _0x561a96[_0x346e71(0x458)]==='function')_0x561a96=_0x5ca6ed(_0x561a96);return _0x561a96===undefined?null:_0x561a96;}const _0x204904=new Map();function _0x2efe09(_0x595460,_0x1b3dc2,_0x5c7f3c,_0xe91147){const _0x465e08=_0x2fc2,_0x2363cb=_0x595460+'\x00'+_0x5c7f3c+'\x00'+JSON[_0x465e08(0x754)](_0xe91147),_0x20580b=_0x204904[_0x465e08(0x292)](_0x2363cb);if(_0x20580b){if(_0x20580b[_0x465e08(0x480)]==='pending')throw _0x39c7b9();_0x204904['delete'](_0x2363cb);if(_0x20580b[_0x465e08(0x480)]===_0x465e08(0x527))throw _0x20580b[_0x465e08(0x744)];return _0x20580b[_0x465e08(0x744)];}const _0xaa5e8f=_0x1b3dc2[_0x5c7f3c](_0xe91147);if(!_0xaa5e8f||typeof _0xaa5e8f['then']!=='function')return _0xaa5e8f;const _0x312499={'state':_0x465e08(0x654),'value':undefined};_0xaa5e8f[_0x465e08(0x458)](_0x14ccb9=>{const _0x52479f=_0x465e08;_0x312499[_0x52479f(0x480)]='ok',_0x312499[_0x52479f(0x744)]=_0x14ccb9;if(_0x204904[_0x52479f(0x292)](_0x2363cb)===_0x312499)_0x3ccf03(_0x1b3dc2);},_0x3e74f9=>{const _0x6b88cb=_0x465e08;_0x312499[_0x6b88cb(0x480)]=_0x6b88cb(0x527),_0x312499[_0x6b88cb(0x744)]=_0x3e74f9;if(_0x204904[_0x6b88cb(0x292)](_0x2363cb)===_0x312499)_0x3ccf03(_0x1b3dc2);});for(let _0x233b2a=0x0;_0x233b2a<0x64&&_0x312499[_0x465e08(0x480)]===_0x465e08(0x654);_0x233b2a++)process[_0x465e08(0x81a)]();if(_0x312499['state']==='ok')return _0x312499[_0x465e08(0x744)];if(_0x312499[_0x465e08(0x480)]===_0x465e08(0x527))throw _0x312499[_0x465e08(0x744)];_0x204904[_0x465e08(0x204)](_0x2363cb,_0x312499);throw _0x39c7b9();}const _0x34f4c0=new Map(),_0x40a73c=0xa*0x3c*0x3e8;function _0xd339d9(_0x23a439,_0x37a143,_0xafc8f8){const _0x41d5e3=_0x2fc2,_0x7617b1=Array[_0x41d5e3(0x888)](_0xafc8f8)?_0xafc8f8:Array[_0x41d5e3(0x51b)](_0xafc8f8??[]);let _0x598253=_0x34f4c0['get'](_0x23a439);if(!_0x598253)_0x34f4c0[_0x41d5e3(0x204)](_0x23a439,_0x598253=new Map());const _0x3fa365=Date[_0x41d5e3(0x3d4)]();for(const [_0x1dd910,_0x36013e]of _0x598253)if(_0x36013e[_0x41d5e3(0x1c5)][_0x41d5e3(0x480)]!==_0x41d5e3(0x654)&&_0x3fa365-_0x36013e[_0x41d5e3(0x1c5)]['at']>_0x40a73c)_0x598253['delete'](_0x1dd910);const _0x50b325=_0x7617b1['map'](_0x455bc5=>JSON[_0x41d5e3(0x754)](_0x455bc5));let _0x2971ea=![];const _0x22a9ef=[],_0x2b9d1a=new Set();for(let _0xb4a951=0x0;_0xb4a951<_0x50b325[_0x41d5e3(0x788)];_0xb4a951++){const _0x45b87b=_0x598253[_0x41d5e3(0x292)](_0x50b325[_0xb4a951]);if(!_0x45b87b)!_0x2b9d1a[_0x41d5e3(0x396)](_0x50b325[_0xb4a951])&&(_0x2b9d1a[_0x41d5e3(0x77d)](_0x50b325[_0xb4a951]),_0x22a9ef[_0x41d5e3(0x27f)](_0xb4a951));else{if(_0x45b87b[_0x41d5e3(0x1c5)][_0x41d5e3(0x480)]==='pending')_0x2971ea=!![];else{if(_0x45b87b[_0x41d5e3(0x1c5)][_0x41d5e3(0x480)]==='err'){const _0x560ffb=_0x45b87b[_0x41d5e3(0x1c5)][_0x41d5e3(0x744)];for(const [_0x20075c,_0x3f495c]of _0x598253)if(_0x3f495c[_0x41d5e3(0x1c5)]===_0x45b87b[_0x41d5e3(0x1c5)])_0x598253[_0x41d5e3(0x46b)](_0x20075c);throw _0x560ffb;}}}}if(_0x2971ea)throw _0x39c7b9();if(_0x22a9ef['length']){const _0x5b46e1=_0x22a9ef['map'](_0xfad78f=>_0x7617b1[_0xfad78f]),_0x4f1425=_0x37a143[_0x41d5e3(0x3b9)](_0x5b46e1),_0x1125d9={'state':_0x41d5e3(0x654),'value':undefined,'at':0x0},_0x5c0222=(_0x397ec9,_0x1347df)=>{_0x1125d9['state']=_0x397ec9,_0x1125d9['value']=_0x1347df,_0x1125d9['at']=Date['now']();};if(!_0x4f1425||typeof _0x4f1425[_0x41d5e3(0x458)]!==_0x41d5e3(0x484))_0x5c0222('ok',_0x4f1425);else{let _0x2ee737=!![];_0x4f1425[_0x41d5e3(0x458)](_0x425732=>{_0x5c0222('ok',_0x425732);if(!_0x2ee737)_0x3ccf03(_0x37a143);},_0x597ce2=>{_0x5c0222('err',_0x597ce2);if(!_0x2ee737)_0x3ccf03(_0x37a143);});for(let _0x2decc7=0x0;_0x2decc7<0x64&&_0x1125d9[_0x41d5e3(0x480)]===_0x41d5e3(0x654);_0x2decc7++)process[_0x41d5e3(0x81a)]();_0x2ee737=![];}for(let _0x144f62=0x0;_0x144f62<_0x22a9ef[_0x41d5e3(0x788)];_0x144f62++)_0x598253[_0x41d5e3(0x204)](_0x50b325[_0x22a9ef[_0x144f62]],{'req':_0x1125d9,'index':_0x144f62});if(_0x1125d9['state']==='err'){for(const _0x533077 of _0x22a9ef)_0x598253[_0x41d5e3(0x46b)](_0x50b325[_0x533077]);throw _0x1125d9[_0x41d5e3(0x744)];}if(_0x1125d9['state']===_0x41d5e3(0x654))throw _0x39c7b9();}const _0x3aea46=_0x50b325[_0x41d5e3(0x642)](_0x271283=>{const _0x1f758a=_0x41d5e3,_0x21e16c=_0x598253[_0x1f758a(0x292)](_0x271283),_0x1a370d=_0x21e16c[_0x1f758a(0x1c5)][_0x1f758a(0x744)];return _0x1a370d?_0x1a370d[_0x21e16c[_0x1f758a(0x4bd)]]:undefined;});for(const _0x476a78 of _0x50b325)_0x598253[_0x41d5e3(0x46b)](_0x476a78);if(!_0x598253[_0x41d5e3(0x4ff)])_0x34f4c0[_0x41d5e3(0x46b)](_0x23a439);return _0x3aea46;}function _0x39c7b9(){const _0x4e4f06=_0x2fc2;return Object[_0x4e4f06(0x7ac)](new Error(_0x4e4f06(0x34d)),{'code':_0x4e4f06(0x6fb)});}function _0x3ccf03(_0x5812f3){const _0x56546d=_0x2fc2;_0x521edf();try{const _0x4e454c=_0x5812f3['__okdb']||_0x459e01;if(_0x4e454c&&_0x4e454c[_0x56546d(0x489)])_0x4e454c[_0x56546d(0x5a1)](_0x56546d(0x3d2),null,_0x56546d(0x599),[_0x56546d(0x1e7),{}],!![]);}catch{}}function _0x28824d(_0x11fa1d,_0x2555b7,_0x529c7b){const _0x23969e=_0x2fc2,_0x1465a5=_0x1799ba['get'](_0x11fa1d);if(!_0x1465a5||typeof _0x1465a5[_0x2555b7]!==_0x23969e(0x484))return{'__absent':!![]};let _0x1a9096=_0x1465a5[_0x2555b7](...Array[_0x23969e(0x888)](_0x529c7b)?_0x529c7b:[]);if(_0x1a9096&&typeof _0x1a9096[_0x23969e(0x458)]===_0x23969e(0x484))_0x1a9096=_0x5ca6ed(_0x1a9096);return{'value':_0x1a9096===undefined?null:_0x1a9096};}const _0xdffd39=new Map();let _0x177205=0x1;const _0x57c8e7=new Map(),_0x59b8de=new Map();function _0x5020c6(_0xaf5df8,_0x488b7c=null){const _0x5e80d6=_0x2fc2,_0xd82d49=_0x177205++;_0xdffd39[_0x5e80d6(0x204)](_0xd82d49,_0xaf5df8);if(_0x488b7c)_0x59b8de[_0x5e80d6(0x204)](_0xd82d49,_0x488b7c);return _0xd82d49;}function _0x4ecd75(_0x18eda0){const _0x2349e4=_0x2fc2;for(const [_0x2e8a11,_0x4ca7b8]of _0x57c8e7)if(_0x4ca7b8&&_0x4ca7b8[_0x2349e4(0x82e)]===_0x18eda0)_0x57c8e7['delete'](_0x2e8a11);for(const [_0x445893,_0x306dae]of _0x1e9302)if(_0x306dae===_0x18eda0)_0x1e9302['delete'](_0x445893);for(const [_0x378ad4,_0x5c4341]of _0x59b8de)_0x5c4341===_0x18eda0&&(_0x59b8de[_0x2349e4(0x46b)](_0x378ad4),_0xdffd39[_0x2349e4(0x46b)](_0x378ad4));if(_0x459e01===_0x18eda0)_0x459e01=null;}function _0xfb78d5(_0x328d16,_0x2b9565){_0x57c8e7['set'](_0x328d16,_0x2b9565);}function _0x5020db(_0xdf4b92){const _0x40152e=_0x2fc2;if(_0xdf4b92&&typeof _0xdf4b92==='object'&&Object[_0x40152e(0x607)](_0xdf4b92)[_0x40152e(0x788)]===0x1&&_0xdf4b92[_0x40152e(0x46e)]!==undefined)return _0xdffd39[_0x40152e(0x292)](_0xdf4b92[_0x40152e(0x46e)]);return _0xdf4b92;}function _0x5ca6ed(_0x4d20b3){const _0x5c236b=_0x2fc2;let _0x240ad9=![],_0x39f2b8=![],_0x2cf645;_0x4d20b3[_0x5c236b(0x458)](_0x1c566b=>{_0x240ad9=!![],_0x2cf645=_0x1c566b;},_0x1f01cb=>{_0x240ad9=!![],_0x39f2b8=!![],_0x2cf645=_0x1f01cb;});for(let _0x35c9cc=0x0;_0x35c9cc<0x2710&&!_0x240ad9;_0x35c9cc++)process['_tickCallback']();if(!_0x240ad9)return _0x4d20b3[_0x5c236b(0x458)](undefined,_0x3359fd=>{const _0x2c5be3=_0x5c236b;try{process[_0x2c5be3(0x7b6)](_0x2c5be3(0x3c3)+(_0x3359fd&&_0x3359fd[_0x2c5be3(0x485)]?_0x3359fd[_0x2c5be3(0x485)]:_0x3359fd));}catch{}}),undefined;if(_0x39f2b8)throw _0x2cf645;return _0x2cf645;}function _0x5c3de3(_0x2b728c,_0x3097e1,_0x35068f){const _0x2530ed=_0x2fc2,_0x3da54=_0x5eaa71(_0x2b728c),_0x1b686e=_0x57c8e7[_0x2530ed(0x292)](_0x3097e1);try{const _0x8c57d5=_0x3da54(_0x35068f,{'okdb':_0x1b686e&&_0x1b686e['okdb'],'env':_0x1b686e});if(_0x8c57d5&&typeof _0x8c57d5[_0x2530ed(0x458)]===_0x2530ed(0x484))_0x5ca6ed(_0x8c57d5);}catch(_0x450efc){if(_0x450efc&&_0x450efc[_0x2530ed(0x354)]===!![]&&_0x450efc['code']!==_0x2530ed(0x79d)){const _0x5b83f4=new Error(_0x450efc[_0x2530ed(0x485)]);_0x5b83f4[_0x2530ed(0x1bd)]=_0x2530ed(0x79d);throw _0x5b83f4;}throw _0x450efc;}}const _0x570225=new Map();function _0x4398df(_0x3ab521,_0xba5ebe,_0x5c9548,_0x12bf72,_0xac11a0,_0x3b2a3d){const _0x100433=_0x2fc2,_0x16ce58=_0x5eaa71(_0x3ab521),_0x5c06ac=(_0x57c8e7[_0x100433(0x292)](_0x3b2a3d)||{})[_0x100433(0x82e)]||_0x459e01,_0x8fece8=new AbortController(),_0x2b69e6=(_0x43d7cc,..._0x5873c6)=>_0x5c06ac['_call'](_0x100433(0x2c1),_0x100433(0x6ab),_0x43d7cc,_0x5873c6,![]),_0x3a34ce={'okdb':_0x5c06ac,'env':_0x57c8e7['get'](_0x3b2a3d)||null,'job':_0x12bf72,'jobId':_0xac11a0,'signal':_0x8fece8[_0x100433(0x79c)],'heartbeat':()=>_0x2b69e6('ctxHeartbeat',_0x5c9548),'markProgress':_0x559fc4=>_0x2b69e6(_0x100433(0x3b5),_0x5c9548,_0x559fc4),'log':(_0x2a4867,_0x1aa665)=>_0x2b69e6(_0x100433(0x271),_0x5c9548,_0x2a4867,_0x1aa665)};_0x570225[_0x100433(0x204)](_0x5c9548,{'ctrl':_0x8fece8,'call':_0x2b69e6});const _0x1fce4c=()=>{const _0x5b65f3=_0x100433;_0x570225[_0x5b65f3(0x46b)](_0x5c9548);try{_0x2b69e6(_0x5b65f3(0x2c9),_0x5c9548);}catch{}};let _0x143a18;try{_0x143a18=_0x16ce58(_0xba5ebe,_0x3a34ce);}catch(_0x256662){_0x1fce4c();throw _0x256662;}if(_0x143a18&&typeof _0x143a18[_0x100433(0x458)]===_0x100433(0x484)){const _0x2bd539=_0x336209(_0x143a18);return _0x143a18[_0x100433(0x458)](_0x1fce4c,_0x1fce4c),{'$token':_0x2bd539};}return _0x1fce4c(),_0x143a18;}function _0x2450cc(){const _0x3398c9=_0x2fc2;for(const [_0x2682bc,_0x241186]of _0x570225){if(_0x241186[_0x3398c9(0x67a)][_0x3398c9(0x79c)][_0x3398c9(0x3ad)])continue;let _0x306167;try{_0x306167=_0x241186[_0x3398c9(0x62a)](_0x3398c9(0x7f8),_0x2682bc);}catch{continue;}if(_0x306167&&_0x306167['aborted']){const {OKDBError:_0x2a8065}=requireErrors();_0x241186['ctrl'][_0x3398c9(0x29f)](new _0x2a8065(_0x306167['message'],_0x306167[_0x3398c9(0x1bd)]));}}}let _0x459e01=null;function _0x5081ff(_0x523a69){_0x459e01=_0x523a69;}function _0xada213(_0x40db64,_0x1caf78,_0x572ac2,_0x304da9,_0x14a130,_0x24f510,_0x2f5bcd){const _0x5253dd=_0x2fc2,_0x6c37a9=_0x5eaa71(_0x40db64),_0x25b452=_0x57c8e7[_0x5253dd(0x292)](_0x572ac2);try{const _0x4508c8=_0x1caf78?_0x6c37a9(_0x14a130,_0x24f510):_0x6c37a9({'env':_0x25b452,'okdb':_0x25b452&&_0x25b452[_0x5253dd(0x82e)],'payload':_0x5020db(_0x304da9)},_0x14a130,_0x24f510);if(_0x4508c8&&typeof _0x4508c8[_0x5253dd(0x458)]===_0x5253dd(0x484)){if(_0x24f510&&_0x24f510['mode']===_0x5253dd(0x8e9))_0x4508c8[_0x5253dd(0x458)](undefined,()=>{});else{if(_0x2f5bcd){const _0x41b4ef=_0x5c597c(_0x4508c8);if(_0x41b4ef===0x0)return null;return{'$token':_0x41b4ef};}else _0x5ca6ed(_0x4508c8);}}}catch(_0x343136){if(_0x343136&&_0x343136[_0x5253dd(0x354)]===!![]&&_0x343136[_0x5253dd(0x1bd)]!==_0x5253dd(0x79d)){const _0x43e8d1=new Error(_0x343136[_0x5253dd(0x485)]);_0x43e8d1[_0x5253dd(0x1bd)]=_0x5253dd(0x79d);throw _0x43e8d1;}throw _0x343136;}return null;}function _0x5c597c(_0x4b4af8){const _0x219adb=_0x2fc2;let _0x2dc44d=_0x219adb(0x654),_0x3bfc63;_0x4b4af8[_0x219adb(0x458)](_0x35e24c=>{_0x2dc44d='ok',_0x3bfc63=_0x35e24c;},_0x243358=>{const _0x3b0ec4=_0x219adb;_0x2dc44d=_0x3b0ec4(0x527),_0x3bfc63=_0x243358;});for(let _0x335f5b=0x0;_0x335f5b<0x64&&_0x2dc44d===_0x219adb(0x654);_0x335f5b++)process[_0x219adb(0x81a)]();if(_0x2dc44d==='ok')return 0x0;const _0x4f79f1=_0x5a5dac++,_0x2068cd={'state':_0x2dc44d,'value':_0x3bfc63};_0xe751f[_0x219adb(0x204)](_0x4f79f1,_0x2068cd);if(_0x2dc44d===_0x219adb(0x654))_0x4b4af8['then'](_0x5a8f24=>{const _0x2e3bcf=_0x219adb;_0x2068cd[_0x2e3bcf(0x480)]='ok',_0x2068cd['value']=_0x5a8f24,_0x521edf();},_0x1fdc91=>{const _0x550005=_0x219adb;_0x2068cd[_0x550005(0x480)]=_0x550005(0x527),_0x2068cd[_0x550005(0x744)]=_0x1fdc91,_0x521edf();});return _0x4f79f1;}function _0xbbed00(_0x32d213){const _0x39e315=_0x2fc2;let _0xa9f967=_0x25f50c[_0x39e315(0x292)](_0x32d213);return _0xa9f967===undefined&&(_0xa9f967=_0x124d65++,_0x25f50c[_0x39e315(0x204)](_0x32d213,_0xa9f967),_0x51b64a[_0x39e315(0x204)](_0xa9f967,{'fn':_0x32d213,'refs':0x0})),_0x51b64a[_0x39e315(0x292)](_0xa9f967)[_0x39e315(0x75c)]++,_0xa9f967;}function _0x384e40(_0x227cbb){const _0x559102=_0x2fc2,_0x42253d=_0x51b64a[_0x559102(0x292)](_0x227cbb);if(!_0x42253d)return;--_0x42253d[_0x559102(0x75c)]<=0x0&&(_0x51b64a[_0x559102(0x46b)](_0x227cbb),_0x25f50c['delete'](_0x42253d['fn']));}function _0x5eaa71(_0x3d49c8){const _0x57e70b=_0x2fc2,_0xa07655=_0x51b64a['get'](_0x3d49c8);if(!_0xa07655)throw new Error(_0x57e70b(0x765)+_0x3d49c8);return _0xa07655['fn'];}function _0x336209(_0x4aab32){const _0x4d4f92=_0x2fc2;if(_0x4aab32&&typeof _0x4aab32[_0x4d4f92(0x458)]===_0x4d4f92(0x484)){const _0x5698b2=_0x5a5dac++,_0x4dba08={'state':_0x4d4f92(0x654),'value':undefined};return _0xe751f[_0x4d4f92(0x204)](_0x5698b2,_0x4dba08),_0x4aab32['then'](_0x163c4d=>{const _0x3d1263=_0x4d4f92;_0x4dba08[_0x3d1263(0x480)]='ok',_0x4dba08['value']=_0x163c4d,_0x521edf();},_0x2f9ac7=>{const _0x3208be=_0x4d4f92;_0x4dba08[_0x3208be(0x480)]=_0x3208be(0x527),_0x4dba08[_0x3208be(0x744)]=_0x2f9ac7,_0x521edf();}),_0x5698b2;}return 0x0;}let _0x1cb831=()=>{},_0x923011=null;function _0x1e6a64(_0x3d4961,_0x2947ea=null){_0x1cb831=_0x3d4961,_0x923011=_0x2947ea;}function _0x1763c7(_0x5057e9){return _0x923011===_0x5057e9;}function _0x521edf(){_0x1cb831();}function _0x5681dd(_0x16ce51){const _0x354f11=_0x2fc2,_0x247f55=_0xe751f[_0x354f11(0x292)](_0x16ce51);if(!_0x247f55)return{'state':_0x354f11(0x527),'error':{'message':'unknown\x20promise\x20token'}};if(_0x247f55['state']===_0x354f11(0x654))return{'state':_0x354f11(0x654)};_0xe751f[_0x354f11(0x46b)](_0x16ce51);if(_0x247f55[_0x354f11(0x480)]==='ok')return{'state':'ok','value':_0x247f55[_0x354f11(0x744)]};const _0xa3df8f=_0x247f55['value'];return{'state':_0x354f11(0x527),'error':{'message':_0xa3df8f&&_0xa3df8f['message']!=null?String(_0xa3df8f[_0x354f11(0x485)]):String(_0xa3df8f),'stack':_0xa3df8f&&_0xa3df8f[_0x354f11(0x8a5)],'code':_0xa3df8f&&_0xa3df8f[_0x354f11(0x1bd)],'status':_0xa3df8f&&typeof _0xa3df8f[_0x354f11(0x442)]==='number'?_0xa3df8f['status']:undefined,'hold':!!(_0xa3df8f&&_0xa3df8f[_0x354f11(0x354)]===!![])}};}function _0x4380a5(_0x51d876,_0x174a6e){const _0x118c06=_0x2fc2;_0x4a3e49[_0x118c06(0x204)](_0x51d876,_0x174a6e);}function _0x3686f0(_0x3e934a){const _0x1c8ad8=_0x2fc2;_0x4a3e49[_0x1c8ad8(0x46b)](_0x3e934a);}let _0x52e924=0x0;function _0x5a61d7(){return _0x52e924>0x0;}function _0x59d26(){const _0x1ccdc6=_0x2fc2;_0x52e924++;try{return _0x21d312[_0x1ccdc6(0x4b8)](undefined,arguments);}finally{_0x52e924--;}}function _0x21d312(_0x1e2a0f,_0x3f7fa3,_0x1c7048,_0x35523e,_0x37d560,_0x4b8c48){const _0x265888=_0x2fc2;switch(_0x1e2a0f){case'reg':return _0xbbed00(_0x3f7fa3);case _0x265888(0x404):return _0x384e40(_0x3f7fa3);case _0x265888(0x62a):{const _0xa61446=Array['prototype'][_0x265888(0x848)]['call'](arguments,0x2),_0x30879b=_0x5eaa71(_0x3f7fa3)[_0x265888(0x4b8)](undefined,_0xa61446);return _0x30879b&&typeof _0x30879b[_0x265888(0x458)]==='function'?_0x5ca6ed(_0x30879b):_0x30879b;}case _0x265888(0x4b7):{const _0x245177=Array['prototype'][_0x265888(0x848)][_0x265888(0x62a)](arguments,0x2),_0xda1aac=_0x5eaa71(_0x3f7fa3)['apply'](undefined,_0x245177);if(_0xda1aac&&typeof _0xda1aac[_0x265888(0x458)]==='function')return{'$token':_0x336209(_0xda1aac)};return{'$value':_0xda1aac===undefined?null:_0xda1aac,'$undef':_0xda1aac===undefined};}case _0x265888(0x625):{const _0x20e198=_0x4a3e49[_0x265888(0x292)](_0x3f7fa3);if(_0x20e198)_0x20e198[_0x265888(0x5a3)](_0x1c7048,_0x35523e);return undefined;}case _0x265888(0x6d5):{const _0x2b163a=_0x4a3e49[_0x265888(0x292)](_0x3f7fa3);if(_0x2b163a)_0x2b163a[_0x265888(0x552)](_0x1c7048);return undefined;}case _0x265888(0x4cc):return _0xada213(_0x3f7fa3,_0x1c7048,_0x35523e,_0x37d560,_0x4b8c48,arguments[0x6],arguments[0x7]);case _0x265888(0x214):return _0x5c3de3(_0x3f7fa3,_0x1c7048,_0x35523e);case _0x265888(0x50a):return _0x4398df(_0x3f7fa3,_0x1c7048,_0x35523e,_0x37d560,_0x4b8c48,arguments[0x6]);case _0x265888(0x885):return _0x5ec267[_0x265888(0x4b8)](null,Array[_0x265888(0x7c6)]['slice'][_0x265888(0x62a)](arguments,0x1));case _0x265888(0x276):return _0x28824d(_0x3f7fa3,_0x1c7048,_0x35523e);case _0x265888(0x1f3):return _0x5681dd(_0x3f7fa3);case _0x265888(0x206):{const _0x5730a5=((async()=>{const _0x322a1b=_0x265888,_0x2ded07=await globalThis[_0x322a1b(0x6a2)](_0x3f7fa3);if(!_0x2ded07['ok']){const _0x228e0b=new Error(_0x322a1b(0x1d8)+_0x2ded07[_0x322a1b(0x442)]);_0x228e0b['code']=_0x322a1b(0x4c5);throw _0x228e0b;}return _0x2ded07['json']();})());return _0x5ca6ed(_0x5730a5)??null;}case _0x265888(0x4a6):return _0x360fa5(_0x3f7fa3,_0x1c7048,_0x35523e);case _0x265888(0x663):return _0x15378a(_0x3f7fa3,_0x1c7048,_0x35523e);case _0x265888(0x5ab):return _0x206dd3(_0x3f7fa3,_0x1c7048,_0x35523e);default:throw new Error(_0x265888(0x434)+_0x1e2a0f);}}return bridge_1={'inNativeCall':_0x5a61d7,'regObject':_0x18848d,'checkSignals':_0x2450cc,'setCurrentDb':_0x5081ff,'forgetDb':_0x4ecd75,'storePayload':_0x5020c6,'registerEnv':_0xfb78d5,'resolvePayload':_0x5020db,'bridge':_0x59d26,'reg':_0xbbed00,'unreg':_0x384e40,'fnOf':_0x5eaa71,'track':_0x336209,'resolve':_0x5681dd,'registerTarget':_0x4380a5,'unregisterTarget':_0x3686f0,'setKick':_0x1e6a64,'kickOwnedBy':_0x1763c7},bridge_1;}var writebatch,hasRequiredWritebatch;function _0x150e(){const _0x517d12=['prefetch','_ensureEnv','$pending','SESSION_TYPE_INDEX','setMaxListeners','processor:\x20quantum.module\x20must\x20be\x20a\x20string','_bootLog','commit','_sub','_wb','for','okdb.http.listen(port)\x20in\x20each\x20worker.','_startClaimedSoon','indexReady','txn:rollback','_clearTTL','getMeta','null','awaitIdle','_clearChunked','$type','\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.','nextTurn','Type\x20\x22','_ensure','(no\x20unambiguous\x20bookmark)\x20—\x20consume\x20it\x20in\x20one\x20synchronous\x20block:\x20materialize\x20(e.g.\x20','selfKey','_ttlState','_root','getStats','_statusEnv','done_ttl','job.buckets[].id\x20must\x20be\x20non-empty\x20string','object','puts','ctxSignal','txn-commit','subscriptions-store:\x20addInterest\x20on\x20unknown\x20session\x20','writerWatchdog','nextExpiry','field\x20resolver\x20request\x20still\x20pending','recommended','Type\x20\x27','retry','sync','OKDBProcessor','compactLock','.\x20The\x20active\x20license\x20does\x20not\x20enable\x20\x22','select','Date','OKDBInvalidPrimaryKeyError','system:env_release','registerTemplate','storeGetConfig','subscribe','loginSelect','[log-sink]\x20','enableNullTermination','RangeError','\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','transaction\x20commit\x20failed','failures','tick','noteListenAddr','reducer','getTemplate','getMaxBodyBytes','a\x20string','hash','_tickCallback','useReadTransaction\x20range\x20consumed\x20after\x20the\x20creation\x20turn\x20—\x20the\x20consistent\x20view\x20was\x20','_isFar','SCHEMA_VALIDATION_FAILED','PLUGIN_ALREADY_REGISTERED','_syncLock','_put','getRunningEngine','listPath','Unknown\x20transaction\x20action:\x20','maxConnections','claimed','Version\x20mismatch\x20for\x20','tolerant','_handles','reencrypt','tools','fts:registered','_pumper','_isBootstrap','okdb','getLegacyCursor','Error','acquired','registerModel','_facade','_okdbAdminAttached','OKDBSchemaCollectionError','processorsParticipating','lockHeld','\x20log\x20entr','setUint32','\x27:\x20','_ttlByExpiry','Map','hasEmbedderFactory','getGcHorizon','_nodePublicKey','SUB_ENV','docEntry','refill_amount','job_type.defaults.buckets\x20must\x20be\x20array|null','path','embed','addSSE','cause','slice','envName','entries','_read','transactionSync','preparer\x20must\x20be\x20a\x20function','sweepExpiredTTL','family','ensurePeerState','uninstallEngine','\x22\x20must\x20return\x20{\x20embed(input):\x20Promise<Float32Array>\x20}','actionCount','batch','schema:set','isSync','bucket\x20id\x20required','flushTicket','feature','recordPeerAck','releaseClaim','_systemEnv','registerHandler','lookupByName','_path','error','_fail','limitOf','OKDBAlreadyExistsError','db.processors.','DOC_STATUS_CHANGE','_waitNative','nativeBinaryPath',',\x20got\x20','reject','IPv4','_sweepInProgress','iterable','_makeLazyVectorAdapter','assertStartAllowed','markJobProgress','an\x20environment\x20name','getRefViolation','dirty','Blob\x20not\x20found:\x20','\x27\x20does\x20not\x20exist','actions','node:http','filter','dataEnv','lmdb','effective','validateOidcAccessToken','countByIndex','~system','listProviders','test','compactStorage','resolveData','processor','isWanted','cascade','driver','removeJobTypeSchema','_lock','isArray','INVALID_INDEX_KEY','stopWorkerAbort','\x22\x20to\x20enable\x20it.','_cancelTTLTimeout','refreshTtlBatch','resolveModelDims','system:clock_change','routes','definition','login','isActive','_localViewApi','\x22\x20is\x20not\x20allowed\x20(it\x20evaluates\x20code);\x20use\x20declarative\x20operators\x20instead','job_type.id\x20must\x20be\x20non-empty\x20string','bucket_tokens','Unique\x20constraint\x20violated\x20on\x20','\x22\x20tokens\x20too\x20large','captureStackTrace','setMode','job_type.max_concurrency\x20must\x20be\x20int\x20>=\x201\x20or\x20null','root','fromEntries','job_type.payload_schema\x20must\x20be\x20object|null','join','$not','ensure:\x20view\x20entry\x20missing\x20name\x20or\x20definition','recomputeFields','~fts:','stack','next','_makePipelineApi','proc','viewOp','INDEX_PROGRESS','isIndex','resetIndexBegin','job.bucket_tokens\x20must\x20be\x20int\x20>=1','_flushIntervalTimer','maxBodyBytes','CHANGEFEED_QUANTUM','Storage\x20resolver\x20must\x20be\x20a\x20function','_sinks','gc.','planUpdateJob','existsSync','_validateOidcAccessToken','busState','ttl:clear','license:removed','getResolvedOptions','_writeBlob','session','engineStop','before\x20any\x20await,\x20chunk\x20with\x20{limit,\x20start,\x20exclusiveStart},\x20or\x20drop\x20snapshot:true.','onWindow','whenSettled','finish','bucketsDb','bucket\x20\x22','tierList','filterSessionsForType','constructor','unref','_handle','ready','_setKey','dropping','engineUninstall','listViolations','resetIndex','_license','\x22\x20tokens\x20must\x20be\x20>=\x201','isWorker','timestamp','$options','Unsupported\x20transaction\x20action:\x20','setPeersFn','mode','createHash','__stateDb','@harperdb/extended-iterable:skip','Too\x20many\x20concurrent\x20connections','library\x20(okdb\x20node-model\x202.0).\x20For\x20multi-process\x20HTTP\x20serving\x20use\x20the\x20okdb\x20','job.tries\x20must\x20be\x20non-negative\x20int','runRecord','forEach','_startAdmission','__ttlByExpiry','cursor','$mod','_stream','byteLength','embeddings:pipeline:ready','_detachLogSink','a\x20Buffer\x20or\x20readable\x20stream','durableMarkDelete','inline','enableAll','$gte','blobPath','admin','license:activated','process(filter)','enqueue','true','ALREADY_EXISTS','encodeInto','unique:violation_resolved','listen','prepareTxnEnqueue','\x20>\x204)\x20{\x0a\x09\x09\x09if\x20(','samplePayloads','registerType','sparse','_registerType','code','getSession','_settleRead','setEncryptionKey','_nodePrivateKey','create','files','~proc:state','req','_tids','loadedPath','patch','_unknownOptionsWarned','\x20===\x204)\x0a\x09\x09\x09\x09','_ensureTokensType','options','build','runGc','__after','ingest','throw','getStatus','_localViews','claim\x20requires\x20non-empty\x20type','txn\x20ops\x20must\x20be\x20an\x20array','_pdb','embedder\x20is\x20gone','HTTP\x20','removeTxn','repair','returnRecoverableErrors','Algorithm\x20factory\x20must\x20be\x20a\x20function','put','useReadTransaction','INVALID_STATE','_sync','sort','subscriptions-store:\x20open()\x20not\x20called','workers','bootRuntimeDeclarations','system:bus_state_change','setPosition(p)\x20{\x20position\x20=\x20p\x20},','embeddings:embed:settled','issueToken','hex','\x27\x20did\x20not\x20return\x20a\x20valid\x20instance','Server','node:perf_hooks','resolveBackupDest','TXN_INVALID_OP','HIGH_FREQ_EVENTS','createWriteFacade','functions','txnDone','resolve','bucket.tokens\x20cannot\x20exceed\x20capacity','_pendingLocal','bus:poke','Foreign\x20key\x20violation:\x20','_detachLog','info','types','isOAuthEmailAllowed','-worker','idempotency_key','_role','connected','_openAckDb','metaDb','_blobsDir','OKDBInvalidValueError','set','STARTED','fetchJson','stream','_advanceHlcOnRecv','role','_workers','ttl','job\x20type\x20must\x20be\x20object','log\x20entry\x20fields\x20must\x20be\x20object|null','busEmit','disableAll','install','closeEnvLocally','startsWith','$size','quantum','_autoCompact','node:stream','getJobLogs','Database\x20not\x20started','durableStats','queue:log','enqueue\x20txn\x20belongs\x20to\x20a\x20different\x20environment','BAD_PLUGIN','markJobComplete','crypto','isNaN','usedBy','granId','bucket.capacity\x20must\x20be\x20int\x20>=\x200','_readViewExpired','OKDBForeignKeyDeleteError','_seen','__notImplementedNative','_indexBuilds','_rebuilding','disable','details','gcOrphanedBlobs','setToken','_licenseInterval','_native','1482587abjsOq','removeBucket','inFlight','Engine\x20template\x20id\x20must\x20be\x20a\x20non-empty\x20string','toJSON','primaryOkdb','READER_HELD_ACROSS_AWAIT','_getRaw',',\x20source)\x0a\x09\x09}\x20else\x20{\x0a\x09\x09\x09if\x20(','files.upload:\x20id','level','removes','_settleWaiters','installed','NativeLock','write\x20batch:\x20missing\x20result','listAlgorithms','describeIndexes','_keyFns','orchestrator','SYSTEM_CLOCK_CHANGE','allowUnsafe','4630odbiDw','resumeJobType','percentile','__okdb','completeJob','job.finished\x20must\x20be\x20number|null','Invalid\x20onDelete\x20rule\x20\x27','find','job_type.defaults.retry_delay\x20must\x20be\x20int\x20>=\x200\x20or\x20null','refreshTtl','tags\x20must\x20be\x20array\x20or\x20string','_ttlBackoffUntil','log\x20entry\x20fields\x20too\x20large\x20(>2KB\x20serialized)','system:proc','_jsFactories','processRest()','streamClose','envPath','getChanges','\x20dropped\x20(buffer\x20full)','hasIndex','listTTL','removeEnvironment','removeLink','asyncIterator','hybridQuery','TXN_START','viewDb','stopAll','_onFeedChange',']\x20already\x20maps\x20to\x20\x27','features','toISOString','materialize\x20them\x20(Array.from)\x20while\x20the\x20view\x20is\x20live.','_kbuf','_debounceTimer','process()\x20entry\x20\x22','flush','_low','job.tag\x20must\x20be\x20string|null','__tokenSecret','enforced','consumeLoginState','starting','ctxLog','retryJob','sseSetHeader','enable','guardSnapshotIterable','api','__logsDb','geoQuery','bus','_writer','OKDBError','taken','logCap','ONLINE','push','index:reset','_ttlByKey','writeBlob','paused','schema','Unable\x20to\x20serialize\x20object\x20as\x20a\x20key:\x20','job.','SCHEMA_COLLECTION_INVALID','flushQuantum','authorization','no\x20write\x20has\x20landed.\x20Writes/commit\x20are\x20unaffected.','_attached','rollback','remove','bucket.tokens\x20must\x20be\x20int\x20>=\x200','compare','BAD_PARAM','_commitSessionMutation','get','resolveField:\x20field\x20required','bumpVersion','Key\x20is\x20too\x20large','TYPE_NOT_REGISTERED','_enableChangelog','node:events','_np','cancelJob','\x27,\x20cannot\x20map\x20to\x20\x27','registerModule','references','registerReducer','abort','resumed','includes','doesExist','autoCompact','_settled','native','engine:','return','stopHandle','$defs','dataView','_openLocalPeerDb','pump','listBuckets','OKDBVersionMismatchError','engines','Engine\x20template\x20must\x20be\x20a\x20plain\x20object','meanwhile\x20—\x20the\x20frozen\x20view\x20cannot\x20be\x20kept.\x20Materialize\x20synchronously\x20(e.g.\x20Array.from)\x20','outgoing','ctxUpdateStatus','_formerOrigins','oauth','isTypeEmpty','backupRoot','no_action','extend','shutdownTimeout','match','importBlobs','reconcileDesired','run','_update','Cannot\x20register\x20plugins\x20after\x20start','queue','new','clients','isSetupMode','position','buildOwnRow','fts:reset','createQueryTester','ctxRelease','wake','parse','engine','rows','fromBufferKey','mcp','_assertOpen','reason','getMany','_baselines','$near','WORKERS_REMOVED','_writerWatchdogInterval','listLinks','storePayload','feed:','~queue_jobs','msg','orchestratorStarted','$where','compact','_stopFor','getCount','startAutoCompactCheck','nextTick','_hybridQuery','getFloat64','lastIndexOf','sortedDb','pin','\x20returned\x20no\x20key',':emb:','diag','BAD_EMBEDDER_FACTORY','registerQuantum:\x20name\x20must\x20be\x20a\x20non-empty\x20string','\x22)\x20before\x20open()','__ttlByKey','setReadBuffer','useVersions','groupsDb','ttl:set','_pressure','_claimGated','encoder','pinned\x20range\x20iterator\x20parked\x20across\x20an\x20await/turn\x20boundary\x20and\x20the\x20env\x20was\x20written\x20','msgpackr','job.claim_expires\x20must\x20be\x20number|null','OKDBIndexAlreadyRegisteredError','_emitProc','retry_delay','queue:done','_afterDurable','ALL_EVENTS','_range','_timerObjs','typeSubDbs','Algorithm\x20factory\x20must\x20return\x20an\x20object\x20with\x20','$ref','last','TypeError','_key','ttlTimer','once','iterate','~queue_buckets','getIndexMeta','streamRead','bus:type_drop','$nor','let\x20position;\x20let\x20readString\x20=\x20','811867LlEJsH','readField','undefined','_changefeed','vector','queue:removed','processor:\x20rebuild\x20must\x20be\x20a\x20function','_store','setHostPlugins','registerQuantum','(?:','_asArray','pageSize','getTTL','setWake','max','_teardownNative','job_type.defaults\x20must\x20be\x20object|null','envs','DEFAULT_TTL_MS','released\x20at\x20the\x20first\x20await/turn\x20boundary.\x20Consume\x20ranges\x20before\x20any\x20await,\x20or\x20','TXN_CLOSED','pressure','\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer','list','servers','_pokeHandler','unregisterTarget','isEnabled','getIndexStatus','item','UNKNOWN_RANGE_OPTION','MAXIMUM_KEY','forceResync','continueOnRecoverableError','closeSession','PLUGIN_DEPENDENCY_MISSING','envSize','handle','STOPPING','_ackDb','INDEXER_DOC_FAILED','byLabel','getRecord','_assertFiles','setInt32','bootSyncedViewsInline','_admissionTimer','REVERSE_INDEX','inflight',':keyToChange',')\x20+\x20readString(source)}','\x20must\x20be\x20a\x20non-empty\x20string;\x20got\x20','okdb_session','MAX_SAFE_INTEGER','_id','localViewStats','\x20must\x20be\x20number','patchDeclaration','\x27\x20doesn\x27t\x20exist','bootSyncedPipelines','embedder\x20request\x20still\x20pending','ref:violation_resolved','prevDb','getEmbedderFactory','timerArmed','processor:\x20specify\x20exactly\x20one\x20of\x20handler:\x27<name>\x27\x20or\x20module:{path,export},\x20not\x20both','ensureType','processorHold','\x20was\x20removed\x20in\x20okdb\x202.0.\x20Use\x20processors:true\x20for\x20plain\x20lease\x20participation.\x20See\x20docs/upgrade-2.0.md.','system:type_drop','_running','immediate','split','fts:','engineType','bootSyncedViews','_envWide','sweepOrphanLogs','bridge','_dupArg','FOREIGN_KEY_DELETE_RESTRICTED','embeddings:strategy:registered','setCurrentDb','log\x20entry\x20message\x20required','_quantumGate','lookupByTokenHash','job.priority\x20must\x20be\x20int','limits','_durableEngineDoc','status_code','_resolveKeys','normalizeOAuthAuthResult','onDelete','license:invalid','_settleWrite','ref:violation','clearSync','Database\x20already\x20opened/closed','type:','status_message','_rawTxnBuf','unpin','NOT_IMPLEMENTED_NATIVE','createLoginState','sourceKey','Blob\x20missing\x20for\x20file:\x20','backoff_multiplier','dir','bucket.updated\x20must\x20be\x20number','defaults','gateQuanta','describeChunk','validateRouteInput','_setPeerState','setTTL','_dedupeKey','durableMarkDone','registerBucketProjection','buckets','_tokenSecret','_subscribeEvent','_listenAddr','attachConsole','resolveField:\x20type\x20required','TXN_ENV_MISMATCH','lastTxnId','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.','ceil','streamByHash','endIndex','materializer','tag\x20too\x20long','turnWaiters','has','\x20(required\x20by\x20','exportName','timer','getLoginConfig','~file:blob_status','resetting','trim','attachFeed','exportEnvsToStream','doc','vector-search\x20engine\x20not\x20running:\x20\x22','clockToChangeDb','exportBlobs','_clockToChangeDb','refItemsDbs','kickOwnedBy','dims','ITEM_PENDING','type:drop','_emit','getIndexCount','.\x20Add\x20a\x20license\x20that\x20includes\x20\x22','aborted','_peerDb',':txnRange','schema:drop','_env','registerQuantum:\x20load\x20must\x20be\x20a\x20function','\x20which\x20does\x20not\x20exist','$and','ctxProgress','readFieldMany','origin','tags','embedBatch','_meta','there\x20is\x20no\x20`http`\x20option\x20—\x20the\x20HTTP\x20server\x20exists\x20only\x20when\x20db.http.listen(port)\x20is\x20called','toFixed','REMOVE','remote','dropType','customReducerNames','bucket\x20must\x20be\x20object','PUT','okdb-node:\x20a\x20background\x20async\x20handler\x20rejected:\x20','_makeIterator','_onStop','ensure:\x20fts\x20entry\x20missing\x20name\x20or\x20fields','updated_at','record','~processes:cmd','started','cron','some','_flushTimer','hasOwnProperty','end','refreshThresholdMs','ms\x20max=','events','_macro','now','stateNames','inNativeCall','.\x20Primary\x20keys\x20must\x20be\x20string\x20or\x20number.\x20Got:\x20','emitProc','listModels','changeToClockDb','_handlerName','_modeApplied','_markSeen','embeddings','preview','symbol','_settle','_compactLock','itemsGroups','fieldPath','engineStart','\x27\x20export\x20\x27','_ensurePeerState','setTtl','ttlStats','VERSION_MISMATCH','error_stack','Can\x20not\x20serialize\x20key\x20of\x20type\x20','_maxConnections','_defaultEnv','detachConsole','payload_schema','properties','resolution','T_INTEREST','connectionCount','vector-search','(source)\x20=>\x20{','Referenced\x20type\x20\x27','capacity','server','OKDBIndexNotRegisteredError','invalid\x20job_type.status:\x20','registerHandler:\x20name\x20must\x20be\x20a\x20non-empty\x20string','lastClock','unique:violation','_typesDb','_tx','OKDB','http.listen({workers/makeOkdb/primaryOkdb})\x20is\x20no\x20longer\x20supported\x20in\x20the\x20','_readBuf','unreg','records','okdb._openEnvLazy:\x20env\x20\x22','near','getEntry','_refCache','_tools','_registrations','runPoll','startIndex','backup','debounceTimer','defaultTTL','targetKey','pause','getBlobStatus','lastError','job.idempotency_key\x20must\x20be\x20string|null','listTypes','_normalizeOAuthAuthResult','embedder','limit','queue:retry','bus:drain','cleanup','maxDbs','createWorker','clearTTL','exportToStream','backoffUntil','afterTurn','processorsStart','openEnv','turn','hasChangelog','clearTtl','getOpenWarning','exclusiveStart','values','_stateDb','restrict','dropSchema','nodeKeys','checkSignals','isWriter','flushMaxWait','maxExtra','getRange','okdb-node:\x20unknown\x20bridge\x20op\x20','INDEX_NOT_REGISTERED','ENV_NOT_FOUND','encryption:key-changed','abs','min','defineProperty','__peers','string','PLUGIN_NAME_CONFLICT','_closed','drainDeadlineMs','inputSchema','handleResult','status','job.error_stack\x20must\x20be\x20string|null','_push','catalog','pop','Native','_ack','job_type.','importBuf','logChange','_blobStatusTxn','OKDBTypeNotRegisteredError','resetIndexFinish','job_type.defaults.max_tries\x20must\x20be\x20int\x20>=\x201\x20or\x20null','txnUndone','_durableEmbedderInfo','_drain','registerPreparer','raw','action','Engine\x20driver\x20for\x20\x22','off','then','storeHasDiff','Plugin\x20name\x20\x27','useReadTransaction\x20read\x20view\x20expired:\x20the\x20snapshot\x20was\x20released\x20at\x20the\x20first\x20await/turn\x20','dupSort','_getOidcDiscovery','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.','clearStuck','trunc','mean','REF_VIOLATION','reconcilePeer','ms\x20busy=','_warnUnknownOptions','\x27\x20is\x20not\x20a\x20function','_timerHandle','hasBody','__cmd','_syncExpiresAtField','delete','processor:\x20module\x20\x27','sseSend','$payload','subarray','storeGetHeadCount','$lt','setMaxBodyBytes','params','job\x20must\x20be\x20object','online','_enqueueInTxn','fetchRemoteDelta','apiCall','onUndo','processorsStatus','_closeEnvLocally','job.status_code\x20must\x20be\x20string|null','replaceMember','lock','setFilter','state','_info','_busFacade','listRecords','function','message','heartbeat','worker','registerIndex','_isOpen','typesDb','INDEX_HAS_CONSUMERS','_buffer','\x20references\x20','drop','REF_VIOLATION_RESOLVED','type','release','killWorker','appendJobLog','Plugin\x20\x27','SYSTEM_STOPPED','listJobTypes','_db','job\x20id\x20required','72qRvUaA','node:path','notes','_indexBuild','readerCheck','Query\x20operator\x20\x22','okdb.noFast','_inlineClosureWarned','String\x20does\x20not\x20fit\x20in\x20target\x20buffer','system:ready','retryable','job_type.payload_schema.enforce\x20must\x20be\x20boolean','debug','emb','priority','_status','_txnIdAtSnapshot','ies','hasEnv','createAndStartEngine','inclusiveEnd','_blobPath','files.registerExtractor:\x20extractor\x20must\x20be\x20a\x20function','pumpEnvSync','_drainOne','_doHooks','enabled','listRuns','createdBy','isHeld','callAsync','apply','createEngine','txnId','getByPrefix','view','index','INDEXER','write','__adminRelay','_draining','count','job.cron\x20must\x20be\x20string|null','_assertRangeOptions','HTTP_ERROR','isOrchestrator','workerState','~sub','_connections','dropAll','markSnapshotComplete','handler','_pending','okdb-','addJobType','use\x20engines.registerDriver()','formerIds','pipelines','attach','args','_blobStream','body','ensureDesired','registerEmbedderFactory','IPv6','process','sessionsForKey','createEnvironment','INACTIVE','inBatch','searchDocs','invalid\x20job.status:\x20','spki','algorithm\x20is\x20gone','fromCharCode','SYSTEM_POKE','range','freeze','timeMachine','OKDBUniqueConstraintError','_ttlTimeout','getEngine','getBucket','clearDone','addEventListener','destroy','total','updateBucket','getDefaultTTL','processor:ready','calculateDelta','registerChunkStrategy','removeSync','stopWorkerBegin','INVALID_OPTIONS','env','getJobType','_sweepOrphanLogs','ttlMs','charCodeAt','_lookupByTokenHash','getPrototypeOf','size','_lazyPinned','~queue_payloads','INDEX_ALREADY_REGISTERED','send','drain','Referenced\x20key\x20\x27','setClaiming','_envSyncStop','max_concurrency','invalid\x20log\x20level:\x20','job','forgetDb','storage\x20adapter\x20has\x20no\x20method\x20','ensure','locks','change','_logChange','processor:progress','hasType','hook','storeEnv','txn:start','system:stopped','_callMacro','errors','_nm','clearAsync','from','signalWant','bootRuntime','applyOps','sweepExpired','reduce','turns','isBun','_openEnvLazy','queue:enqueued','WriteBatch','toBufferKey','err','repairBlobRefs','_closedHandle','holder','syncBlobs','patchSelf','node:fs','hlc','isFinite','created','INDEXER_DOC_DONE','tokens','describeIndex','_blobStatusDb','namespace','registerEnv','_hlc','items','resolveField:\x20resolver\x20must\x20be\x20a\x20function','getSelfNode','process\x20options.admission\x20must\x20be\x20a\x20function','bucket.refill_every\x20must\x20be\x20int\x20>=\x200','(worst\x20','reidentify','runDrop','__lock','getKeys','_processorStops','_isLoopbackIp','async','~lock','_subscribed','utf8','_pokeListener','Index\x20\x22','setDeltaLimit','getPeerAcks','CLI\x20(`okdb\x20listen`),\x20or\x20use\x20Node\x27s\x20built-in\x20`cluster`\x20module\x20and\x20call\x20','vecPut','sessionId','\x22\x20is\x20used\x20by:\x20','_wsettle','Engine\x20template\x20build()\x20is\x20required:\x20','_log','markJobHeartbeat','payload','BAD_HOST','set_null','_buildOwnRow','(?:/(.*))?','number','_patch','describeType','scopedName','doc_status:','SEARCH','_write','HTTP\x20server\x20already\x20running','dup','_callPacked','_pendingOps','bootSyncedEngines','removeListener','_runRecord','_buf','createEmbedder','fields','UNIQUE_CONSTRAINT','ENGINE_DRIVER_MISSING_START','isWellFormed','system:env-sync','storeGetDiffs','setJobTypeSchema','buffer','callPacked','readerCheckIntervalMs','license','_http','equal','getStateAt','done','exists','LICENSE_LIMIT_EXCEEDED','putSync','_listening','_listPeers','exports','_report','upsertLink','readKey','_closeReadTransaction','drivers','reducers','Feature\x20not\x20available\x20on\x20free\x20tier:\x20','getAuthOptions','clearScan','getFast','Embedder\x20factory\x20must\x20be\x20a\x20function','inactive','_readerCheckInterval','mapSize','targetType','_addr','envNames','_rebuild','toMs','listTemplates','txn','~processes','register','address','admission','_subsV2Obj','setAutoCompact','emit','views','key','setKick','vec:','listIndexes','pinned','validate','_call','staticCall','_deliver','_ringSize','_set','jsonrpcCode','_stopAutoCompactCheck','created_at','_dedupeMax','upload','stor','durableEmbedderInfo','search','callRows','shift','publicKey','setFlushNotify','getEmbedderSchema','\x20document(s)\x20reference\x20it\x20with\x20onDelete:restrict','isOpenForIp','STARTING','openDB','durableRetryDoc','_typeKeys','OKDBForeignKeyError','_keepAlive','_jsSchemas','pinned\x20range\x20iterator\x20held\x20across\x20an\x20await/turn\x20boundary.\x20This\x20surface\x20cannot\x20resume\x20','~log','_cmd','_gcTimer','TXN_ROLLBACK','_plugins','setKeyBuffer','meta','ctxEmit','hasNativeBatch','importFromFile','_locks','listRefViolations','opts','close','env:removed','hasDriver','pipeline','valuesForKey','OKDBTypeAlreadyRegisteredError','snapshot','use','encryptionKey','durableDocs','indexStats','_remove','_ensureVectorStore','registerTarget','attachOKDB','-----BEGIN\x20PUBLIC\x20KEY-----\x0aMCowBQYDK2VwAyEAacrkExPrhxNVHyeQBLDwg8xfm1OwyxDAPNdGXABYS2s=\x0a-----END\x20PUBLIC\x20KEY-----','startNewEnginesFromSync','loop-lag','_logEnv','createSession','\x27\x20on\x20type\x20\x27','warn','job.status_message\x20must\x20be\x20string|null','_build','resume','_rbuf','$elemMatch','setClaimGated','modeApplied','query','dedupeMax','/([^/]+)','assertQueryOptions','areIndexesReady','plugins','~log_entry','_quantum','unique','~engines','detach','getAll','sha256','embeddings:indexer:doc:done','import','retryFailed','balanced','dropped','rowKey','getViolation','hasApi','allocUnsafeSlow','setBridge','digest','txn\x20op\x20must\x20be\x20an\x20object\x20or\x20tuple','drainJobType','resolveField:\x20a\x20resolver\x20or\x20options.batch\x20is\x20required','INDEXER_DOC_QUEUED','catch','RELAY_FULL','isBuffer','removeInterest','keys','_flushDebounce','STOPPED','max_tries','boundary\x20(a\x20pinned\x20read\x20txn\x20blocks\x20LMDB\x20free-page\x20reuse).\x20Do\x20all\x20consistent\x20reads\x20','migrate','envsWithFiles','_getType','5569872HBhBHO','getUniqueViolations','drives','_lookupByName','clearDefaultTTL','listRoutes','setProcessingConfig','processor:error','flushTimeoutError','FOREIGN_KEY_VIOLATION','inspect','unregisterExtractor','getRaw',':\x20expected\x20','_scheduleFlush','indexContent','__ttlCancelledGen','_handlePending','bigint','delta_limit','queue:reconciled','_handlePoke','event','refill_every','recordRun','claim','7052751Ebpqik','call','Engine\x20driver\x20already\x20registered:\x20\x22','scheduled','_refIndexDb','stopping','uploadTxn','encryptionKeys','createPipeline','getInt32','_onPending','getIndex','compression','setPeerState','context','autoCompactState','_isOpenForIp','DEFAULT_EVENTS','$streamId','interest','typeStats','setSchema','progressed','isFeatureEnabled',':useReadTransaction','map','when','embedderCall','guard','createReadStream','listPeers','_adminRelay','_setTTLEntry','pauseJobType','_getPeerState','load','listBlobStatus','\x20of\x20env\x20\x22','offset','mapError','job.buckets\x20must\x20be\x20array|null','snapshotScan','ms\x20mean=','pending','_buckets','T_SESSION','byIndex','fts','active','docs','getOidcDiscovery','auth','listening','resumeOpts','_handleInProcess','changeEncryptionKey:\x20to','continueIteration','storeGetDiffsInRange','alg','embeddings:indexer:doc:failed','_detachConsole',':\x20not\x20implemented\x20in\x20the\x20native\x20build\x20yet','failed_ttl','compaction','note','durableRebuild','free','gen','internal','_started','unresolveField','setStorageResolver','File\x20not\x20found:\x20','encryption\x20key\x20function\x20failed:\x20','$in','_retryPending','offWindow','INVALID_PRIMARY_KEY','__esModule','_txnBuf','embed-worker','ctrl','return\x20fromCharCode(','buckets\x20must\x20be\x20array\x20or\x20string','\x20actions=','getNodeRecord','unpack','_changeToClockDb','job.type\x20must\x20be\x20non-empty\x20string','\x27\x20at\x20','field:resolver_registered','config','requires','name','host','ITEM_REMOVE','removeEventListener','KNOWN_OPTIONS','2179860GgoYDw','flatMap','creating','group','failed','asArray','indexOf','getCursor','socket',';\x20got\x20','validateBlobIntegrity','durableTierLag','_uid','setCursor','boolean','importFromStream','emitClearDone','newListener','HIGH_SENTINEL','read','ExtendedIterable','processor:paused','allSettled','fetch','readString\x20}','\x20documents\x20fail\x20validation','$lte','ttl:expired','iterator',')\x0a\x09\x09}\x0a\x09\x09','http.listen:\x20host\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20a\x20non-empty\x20array\x20of\x20non-empty\x20strings','_defaultEnvObj','default','createIndexer','regInfo','isInteger','licenses','OKDBNotImplementedNativeError','TXN_INVALID_ACTION','ringSize','runtimeState','getUint32','ms\x20p99=','clearFailed','node:cluster','/?$','getVector','flushPoll','open','updated','_getNodeRecord','spawn','stop','tries','_OPTION_HINTS','enforce','evict','utf8Write','index:','_release','__warned','__sync:peer_state','getUniqueViolation','registerExtractor','FTS_BUILD_CONTINUE','finished','_keyListener','setLogSink','TXN_END','stopped','ENCRYPTION_KEY_REQUIRED','resetCursor','storage\x20adapter\x20is\x20gone','pid','log','registerIndexDeferred','bucket','resumeAllAfterDrain','Missing\x20plugin:\x20','_isReader','claim_expires','CREATED','createPublicKey','incoming','isDeepStrictEqual','_isClosedEnvError','replaceInterests','advanceHlcOnRecv','markJobFail','byteOffset','_nextExpiry','_clockListener','setDefaultTTL','item:','searchWithScores','links','removeJob','node','_admissionStarted','kick','\x22\x20must\x20be\x20a\x20plain\x20object','\x20must\x20be\x20','isCoordinator','concat','onDo','Invalid\x20index\x20key\x20type\x20for\x20\x27','removeResolver','makeOkdb','runtimeDeclarations','_ttlCompositeKey','processes','clear','EMBED_PENDING','replace','versions','empty\x20array','_isWriter','before\x20any\x20await\x20—\x20or\x20opt\x20into\x20useReadTransaction:\x27tolerant\x27\x20to\x20keep\x20reading\x20while\x20','export','item:remove','ref','storeGetHead','_cursors','resolvedFields','deleted','_run','maxMs','stats','killAll','_listeners','fingerprint','readHashRange','~ref_violations','onDone','refreshReadTxn','3320zueXRO','resetView','processor:resumed','durableRetryFailed','expiresAt','setPrototypeOf','createSearch','grouped','_onItem','uninstall','stopView','ITEM_CREATE','hasUniqueViolations','_ensureDesired','20JEzvlO','ERROR','detachFeed','_ts','env:opened','INVALID_SCHEMA','ftsQuery','~processes:desired','Plugin\x20must\x20have\x20a\x20name','_onPoke','compiled','_staticCall','_feed','Index\x20\x27','reencrypt:\x20env','log\x20entry\x20must\x20be\x20a\x20string\x20or\x20object','engine\x20api\x20has\x20no\x20method\x20\x27','$ne','_lockHandle','dirname','_searchWithScores','time-machine:','assertCreateAllowed','job_type.defaults.backoff_multiplier\x20must\x20be\x20number\x20>=\x201\x20or\x20null','vectorStoreStats','update','index:progress','_durableIndexerStats','getClock','getValues','setNative','http','bus:env_release','isSnapshotComplete','__sync:acks','clone','value','_autoCompactTimer','durableMarkFail','_timer','Unknown\x20OKDB\x20transaction\x20error','onLicenseExpired','processor:\x20cannot\x20combine\x20a\x20closure\x20handler\x20with\x20module:{path,export}.\x20','forceAfterMs','_wrap','sync:apply','setAddress','view:progress','queue:clear-progress','syncLock','statusOpen','sourceType','stringify','changeEncryptionKey','$regex','chunks','subscriptions','registerDriver','_envs','TYPE_ALREADY_REGISTERED','refs','bulkRemoveChunk','pendingResponses','getRun','_rootDb','compact/repair\x20already\x20in\x20progress\x20for\x20this\x20environment','Cannot\x20openEnv(\x22','system','_callRows','okdb-node:\x20unknown\x20callback\x20id\x20','Transaction\x20already\x20closed','ITEM_UPDATE','listVectorStores','running','fail','keyFor','indexer','\x27\x20already\x20registered','updateJob','bind','_windowCbs','instanceTimerArmed','_undoHooks','encryption\x20key\x20function','rebuild','reconcile','current','vecRemove','dbs','prefix','Can\x20not\x20serialize\x20async\x20iterables\x20without\x20first\x20calling\x20resolving\x20asArray','start','storeEnvName','add','peers','Embedder\x20factory\x20for\x20\x22','authenticateToken','storeGetTotalHeadCount','version','_initialize','getSecurityNotices','$eq','stateInfo','\x20=\x20source[position++]\x0a\x09\x09if\x20(','length','QUEUE_WORKER_REMOVED','randomUUID','fetchPeer','getTypeCount','getSchema','EMBEDDER','registerFts','getDefinition','initialize','regObject','.\x20Valid:\x20','\x22\x20not\x20found','__absent','module','License\x20limit\x20exceeded:\x20','parseBearer','SKIP','acquiredAt','relay:error','signal','__HOLD__','processorsStop','embeddings:indexer:flushed','resolveField:\x20options.batchSize\x20must\x20be\x20a\x20positive\x20integer','data','target','addInterest','bucket.id\x20must\x20be\x20non-empty\x20string','failJob','ENGINE_INVALID_TEMPLATE','geoConfig','explainIndex','tryAcquire','isReader','FTS_READY_TIMEOUT','assign','child','instance','kind','bus:proc','stopAutoCompactCheck','restart','remoteAddress','FIELD_RESOLVER_PENDING','transaction','emitWarning','handleError','~files','pumping','headers','typeId','_ttlTimerAt','readTransaction','patchConfig','token','removeJobType','pauseAllAndDrain','\x22\x20requires\x20a\x20`handler`\x20function','registerAlgorithmFactory','bootLogMark','claim_id','prototype','Expected\x20catch\x20callback\x20to\x20be\x20a\x20function','cursorKey','332295cNKBlo','_resolveFilter','findOwner','describeAllTypes','_getFast','pipelineFamily','startClaimed','Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results','__syncOverride','Engine\x20driver\x20type\x20must\x20be\x20a\x20non-empty\x20string','tag','getJob'];_0x150e=function(){return _0x517d12;};return _0x150e();}function requireWritebatch(){const _0x2a6ca3=_0xef081e;if(hasRequiredWritebatch)return writebatch;hasRequiredWritebatch=0x1;const {reclass:_0x4b333b}=requireErrors(),_0x8b0a6c=requireBridge(),_0x452064=new Map();let _0x1e8242=null;function _0x5ddde0(_0x4174cc){const _0x555499=_0x2fc2;if(_0x1e8242)return;_0x1e8242=_0x4174cc,_0x4174cc[_0x555499(0x5b1)](_0x5797d6);}function _0x5797d6(){const _0x5ae6a1=_0x2fc2,_0x4f6fd0=_0x1e8242['settledTickets']();for(const _0x24a49d of _0x4f6fd0){const _0x389276=_0x452064[_0x5ae6a1(0x292)](_0x24a49d);_0x389276&&(_0x452064[_0x5ae6a1(0x46b)](_0x24a49d),_0x389276());}}function _0x493ec2(_0x2e4397,_0x405584){const _0x4e23c7=_0x2fc2;_0x452064[_0x4e23c7(0x204)](_0x2e4397,_0x405584);}class _0x492f3e{constructor(_0x30db12){const _0x556aa3=_0x2fc2;this['db']=_0x30db12,this[_0x556aa3(0x2c1)]=[],this[_0x556aa3(0x62c)]=![],this[_0x556aa3(0x4de)]=![],this['inflight']=new Set();}[_0x2a6ca3(0x8f0)](_0x22b59f,_0x1ffc45,_0x30d632,_0xc03ae0){const _0x344df1=_0x2a6ca3;if(_0x8b0a6c[_0x344df1(0x3d6)]())try{return Promise[_0x344df1(0x1f3)](this['db']['_call'](_0x22b59f,_0x1ffc45,_0x30d632,_0xc03ae0));}catch(_0x134404){return Promise['reject'](_0x134404);}const _0x4c2791=new Promise((_0xd6ba0b,_0x47bd25)=>{const _0x704721=_0x344df1;this[_0x704721(0x2c1)][_0x704721(0x27f)]({'item':[_0x22b59f,_0x1ffc45,_0x30d632,_0xc03ae0],'resolve':_0xd6ba0b,'reject':_0x47bd25});});this['inflight'][_0x344df1(0x77d)](_0x4c2791);const _0x1f2be0=()=>this[_0x344df1(0x341)][_0x344df1(0x46b)](_0x4c2791);return _0x4c2791[_0x344df1(0x458)](_0x1f2be0,_0x1f2be0),!this[_0x344df1(0x62c)]&&(this['scheduled']=!![],setImmediate(()=>{const _0x44e986=_0x344df1;this['scheduled']=![],this[_0x44e986(0x7dc)]();})),_0x4c2791;}[_0x2a6ca3(0x7dc)](){const _0x8526e9=_0x2a6ca3;if(!this[_0x8526e9(0x2c1)]['length'])return;if(this['inBatch']){!this[_0x8526e9(0x62c)]&&(this['scheduled']=!![],setImmediate(()=>{const _0x43f7c2=_0x8526e9;this[_0x43f7c2(0x62c)]=![],this[_0x43f7c2(0x7dc)]();}));return;}const _0x17c8cb=this[_0x8526e9(0x2c1)];this['queue']=[],this[_0x8526e9(0x708)](_0x17c8cb);}[_0x2a6ca3(0x708)](_0x132839){const _0x29f89d=_0x2a6ca3;let _0x566b6f;this[_0x29f89d(0x4de)]=!![];try{_0x566b6f=this['db'][_0x29f89d(0x22e)]['callBatch'](_0x132839[_0x29f89d(0x642)](_0x2ad9e7=>_0x2ad9e7[_0x29f89d(0x32e)]));}catch(_0x3279e1){this['inBatch']=![];if(_0x132839['length']>0x1){for(const _0x1d6adf of _0x132839)this['_run']([_0x1d6adf]);return;}const _0x1a9ee3=_0x4b333b(_0x3279e1);for(const _0x5d2d1f of _0x132839)_0x5d2d1f[_0x29f89d(0x869)](_0x1a9ee3);return;}finally{this[_0x29f89d(0x4de)]=![];}try{this['db'][_0x29f89d(0x82c)][_0x29f89d(0x2ca)]();}catch{}const [_0x480c15,_0x599c51]=_0x566b6f;_0x493ec2(_0x599c51,()=>{const _0x1113ad=_0x29f89d;for(let _0x491f65=0x0;_0x491f65<_0x132839['length'];_0x491f65++){const _0x5c78ab=_0x480c15[_0x491f65];if(_0x5c78ab&&_0x5c78ab[0x0])_0x132839[_0x491f65][_0x1113ad(0x1f3)](_0x5c78ab[0x1]);else _0x132839[_0x491f65][_0x1113ad(0x869)](_0x4b333b(_0x5c78ab?_0x5c78ab[0x1]:new Error(_0x1113ad(0x23e))));}});}async['drain'](){const _0x608164=_0x2a6ca3;this[_0x608164(0x7dc)]();while(this[_0x608164(0x341)][_0x608164(0x4ff)]){await Promise['allSettled']([...this['inflight']]),this[_0x608164(0x7dc)]();}let _0x2cb742;try{_0x2cb742=this['db'][_0x608164(0x22e)][_0x608164(0x858)]();}catch{return;}await new Promise(_0x342988=>_0x493ec2(_0x2cb742,_0x342988));}}return writebatch={'install':_0x5ddde0,'WriteBatch':_0x492f3e,'whenSettled':_0x493ec2},writebatch;}var pump,hasRequiredPump;function requirePump(){const _0x2f0918=_0xef081e;if(hasRequiredPump)return pump;hasRequiredPump=0x1;const _0x7b76b3=Number(process.env.OKDB_NATIVE_IDLE_MS)||0xfa;class _0x368a11{constructor(_0x40fb75){const _0x79a272=_0x2fc2;this['native']=_0x40fb75,this[_0x79a272(0x399)]=null,this[_0x79a272(0x358)]=null,this[_0x79a272(0x769)]=![],this[_0x79a272(0x6d0)]=![],this[_0x79a272(0x7b9)]=![],this[_0x79a272(0x872)]=![],this[_0x79a272(0x521)]=0x0,this[_0x79a272(0x518)]=[],this[_0x79a272(0x395)]=[];}[_0x2f0918(0x7eb)](_0x57f195){return new Promise(_0x1c16da=>{const _0x27f6bd=_0x2fc2,_0x133262=setTimeout(_0x218928,_0x57f195);function _0x218928(){clearTimeout(_0x133262),_0x1c16da();}this[_0x27f6bd(0x395)][_0x27f6bd(0x27f)](_0x218928);});}[_0x2f0918(0x23b)](){const _0x5826b7=_0x2f0918;if(this[_0x5826b7(0x395)]['length']===0x0)return;const _0xa54133=this['turnWaiters'];this[_0x5826b7(0x395)]=[];for(const _0x3c2c87 of _0xa54133)_0x3c2c87();}['start'](){const _0x56b192=_0x2f0918;this[_0x56b192(0x6d0)]=![],this[_0x56b192(0x2ca)]();}[_0x2f0918(0x6bf)](){const _0x1e4349=_0x2f0918;this[_0x1e4349(0x6d0)]=!![];if(this[_0x1e4349(0x399)])clearTimeout(this[_0x1e4349(0x399)]);if(this['immediate'])clearImmediate(this[_0x1e4349(0x358)]);this['timer']=this[_0x1e4349(0x358)]=null,this[_0x1e4349(0x23b)]();}[_0x2f0918(0x2ca)](){const _0x33ff22=_0x2f0918;if(this['stopped']||this[_0x33ff22(0x358)])return;this[_0x33ff22(0x399)]&&(clearTimeout(this[_0x33ff22(0x399)]),this[_0x33ff22(0x399)]=null),this[_0x33ff22(0x358)]=setImmediate(()=>{const _0x257157=_0x33ff22;this[_0x257157(0x358)]=null,this[_0x257157(0x425)]();});}[_0x2f0918(0x425)](){const _0x46c240=_0x2f0918;if(this[_0x46c240(0x6d0)]||this[_0x46c240(0x7b9)]){this['dirty']=!![];return;}this['pumping']=!![];let _0x4b8b37;try{this[_0x46c240(0x521)]++,_0x4b8b37=this[_0x46c240(0x2a5)]['pump']();if(this[_0x46c240(0x422)])this[_0x46c240(0x422)]();}catch(_0x5e1b27){_0x4b8b37=_0x7b76b3,process[_0x46c240(0x2e2)](()=>{throw _0x5e1b27;});}finally{this[_0x46c240(0x7b9)]=![],this[_0x46c240(0x23b)]();}if(this[_0x46c240(0x6d0)]||_0x4b8b37===-0x2)return;if(this['dirty'])return this[_0x46c240(0x872)]=![],this[_0x46c240(0x2ca)]();const _0x222c5d=_0x4b8b37<0x0?_0x7b76b3:Math[_0x46c240(0x31f)](0x0,Math['min'](_0x4b8b37,_0x7b76b3));if(_0x222c5d<=0x0)return this['wake']();this['timer']=setTimeout(()=>{const _0x1dfd1e=_0x46c240;this[_0x1dfd1e(0x399)]=null,this[_0x1dfd1e(0x425)]();},Math[_0x46c240(0x390)](_0x222c5d));if(this[_0x46c240(0x399)][_0x46c240(0x8c7)])this[_0x46c240(0x399)][_0x46c240(0x8c7)]();}}return pump={'Pumper':_0x368a11},pump;}var dist$1={},hasRequiredDist$1;function requireDist$1(){const _0x23b390=_0xef081e;if(hasRequiredDist$1)return dist$1;hasRequiredDist$1=0x1;const _0x4e8a01=Symbol['for'](_0x23b390(0x8d9)),_0xeb064c={'value':null,'done':!![]},_0x450841={'value':null,'done':!![]};!Symbol[_0x23b390(0x25d)]&&(Symbol[_0x23b390(0x25d)]=Symbol[_0x23b390(0x7df)]('Symbol.asyncIterator'));const _0x4492ac={};class _0x576de6{constructor(_0x1265a1){const _0x557b98=_0x23b390;_0x1265a1&&(this[_0x557b98(0x309)]=_0x1265a1[Symbol[_0x557b98(0x6a7)]]['bind'](_0x1265a1));}[_0x23b390(0x642)](_0x5ec590){const _0x3186f2=_0x23b390;let _0xb29b9e=this,_0x3c9395=new _0x576de6();return _0x3c9395[_0x3186f2(0x309)]=(_0x3ed1e8=_0x4492ac)=>{const _0x3adf62=_0x3186f2,{async:_0x2f0d96}=_0x3ed1e8;let _0x334455=_0xb29b9e[_0x2f0d96?Symbol[_0x3adf62(0x25d)]:Symbol[_0x3adf62(0x6a7)]](_0x3ed1e8);if(!_0x2f0d96)_0xb29b9e[_0x3adf62(0x856)]=!![];let _0x75e294=-0x1;return{'next'(_0x1fbe7b){const _0x9dfd52=_0x3adf62;let _0x4ee343;do{let _0x6d827b;try{if(_0x1fbe7b)_0x6d827b=_0x1fbe7b,_0x1fbe7b=null;else{_0x75e294++,_0x6d827b=_0x334455[_0x9dfd52(0x8a6)]();if(_0x6d827b[_0x9dfd52(0x458)])return!_0x2f0d96&&this[_0x9dfd52(0x1d1)](new Error('Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results')),_0x6d827b[_0x9dfd52(0x458)](_0x11bce4=>this[_0x9dfd52(0x8a6)](_0x11bce4),_0x1b35e1=>{const _0x4b9dc6=_0x9dfd52;return this[_0x4b9dc6(0x1d1)](_0x1b35e1);});}if(_0x6d827b[_0x9dfd52(0x577)]===!![]){this[_0x9dfd52(0x577)]=!![];if(_0x3c9395[_0x9dfd52(0x710)])_0x3c9395[_0x9dfd52(0x710)]();return _0x6d827b;}try{_0x4ee343=_0x5ec590[_0x9dfd52(0x62a)](_0xb29b9e,_0x6d827b[_0x9dfd52(0x744)],_0x75e294);if(_0x4ee343&&_0x4ee343['then']&&_0x2f0d96)return _0x4ee343['then'](_0x4ef48f=>_0x4ef48f===_0x4e8a01?this[_0x9dfd52(0x8a6)]():{'value':_0x4ef48f},_0x2352cc=>{const _0x583596=_0x9dfd52;if(_0x3ed1e8[_0x583596(0x332)])_0x2352cc[_0x583596(0x661)]=!![];return this[_0x583596(0x1d1)](_0x2352cc);});}catch(_0x1618c9){if(_0x3ed1e8[_0x9dfd52(0x332)])_0x1618c9[_0x9dfd52(0x661)]=!![];throw _0x1618c9;}}catch(_0x10b382){if(_0x3c9395[_0x9dfd52(0x7b7)])try{_0x4ee343=_0x3c9395['handleError'](_0x10b382,_0x75e294);}catch(_0x34fced){return this['throw'](_0x34fced);}else return this[_0x9dfd52(0x1d1)](_0x10b382);}}while(_0x4ee343===_0x4e8a01);if(_0x4ee343===_0xeb064c)return this[_0x9dfd52(0x2a7)]();return{'value':_0x4ee343};},'return'(_0xfbec63){const _0x24c403=_0x3adf62;if(!this[_0x24c403(0x577)]){_0x450841[_0x24c403(0x744)]=_0xfbec63,this[_0x24c403(0x577)]=!![];if(_0x3c9395['onDone'])_0x3c9395[_0x24c403(0x710)]();_0x334455['return']?.();}return _0x450841;},'throw'(_0x571ca9){const _0x46f067=_0x3adf62;if(_0x571ca9[_0x46f067(0x661)]){if(_0x3c9395['returnRecoverableErrors'])try{return{'value':_0x3c9395[_0x46f067(0x1db)](_0x571ca9)};}catch(_0x19f0df){this[_0x46f067(0x2a7)]();throw _0x19f0df;}if(_0x3ed1e8[_0x46f067(0x332)])throw _0x571ca9;}this[_0x46f067(0x2a7)]();throw _0x571ca9;}};},_0x3c9395;}[Symbol[_0x23b390(0x25d)]](_0x58da97){const _0x275b0b=_0x23b390;if(_0x58da97)_0x58da97={..._0x58da97,'async':!![]};else _0x58da97={'async':!![]};return this[_0x275b0b(0x6a7)]=this['iterate'](_0x58da97);}[Symbol[_0x23b390(0x6a7)]](_0x4c6e68){const _0x593294=_0x23b390;return this[_0x593294(0x6a7)]=this[_0x593294(0x309)](_0x4c6e68);}[_0x23b390(0x877)](_0x3be26f){const _0x38bbe6=_0x23b390;let _0xfe8c62=this['map'](_0x3bf3db=>{const _0x419939=_0x2fc2;let _0x283bdf=_0x3be26f(_0x3bf3db);if(_0x283bdf?.[_0x419939(0x458)])return _0x283bdf[_0x419939(0x458)](_0x5ac3b4=>_0x5ac3b4?_0x3bf3db:_0x4e8a01);else return _0x283bdf?_0x3bf3db:_0x4e8a01;}),_0xb1d658=_0xfe8c62[_0x38bbe6(0x309)];return _0xfe8c62[_0x38bbe6(0x309)]=(_0x4ec531=_0x4492ac)=>{const _0x325327=_0x38bbe6;if(_0x4ec531[_0x325327(0x332)])_0x4ec531={..._0x4ec531,'continueOnRecoverableError':![]};return _0xb1d658(_0x4ec531);},_0xfe8c62;}[_0x23b390(0x8de)](_0x5e5f15){const _0x5a38c0=_0x23b390;let _0x186408=this[_0x5a38c0(0x6a7)]=this[_0x5a38c0(0x309)](),_0x1b4c30;while((_0x1b4c30=_0x186408[_0x5a38c0(0x8a6)]())['done']!==!![]){_0x5e5f15(_0x1b4c30['value']);}}['concat'](_0x525ac8){const _0x15f9fa=_0x23b390;let _0x1d02b2=new _0x576de6();return _0x1d02b2[_0x15f9fa(0x309)]=(_0x48317e=_0x4492ac)=>{let _0x814f80=this['iterator']=this['iterate'](_0x48317e),_0x2ada5e=!![];function _0xb563f(_0x5bf4ba){const _0x292db7=_0x2fc2;if(_0x2ada5e)try{_0x2ada5e=![],_0x814f80=_0x525ac8[_0x48317e[_0x292db7(0x544)]?Symbol['asyncIterator']:Symbol[_0x292db7(0x6a7)]](),_0x5bf4ba=_0x814f80[_0x292db7(0x8a6)]();if(_0x1d02b2[_0x292db7(0x710)]){if(_0x5bf4ba[_0x292db7(0x458)]){if(!_0x48317e['async'])throw new Error('Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results');_0x5bf4ba[_0x292db7(0x458)](_0x294177=>{const _0x23330e=_0x292db7;if(_0x294177[_0x23330e(0x577)]())_0x1d02b2['onDone']();},_0x423d5f=>{const _0x3ea274=_0x292db7;this[_0x3ea274(0x2a7)]();throw _0x423d5f;});}else{if(_0x5bf4ba[_0x292db7(0x577)])_0x1d02b2['onDone']();}}}catch(_0xe17207){this[_0x292db7(0x1d1)](_0xe17207);}else{if(_0x1d02b2[_0x292db7(0x710)])_0x1d02b2['onDone']();}return _0x5bf4ba;}return{'next'(){const _0x192a07=_0x2fc2;try{let _0x280853=_0x814f80[_0x192a07(0x8a6)]();if(_0x280853[_0x192a07(0x458)]){if(!_0x48317e[_0x192a07(0x544)])throw new Error(_0x192a07(0x7d0));return _0x280853['then'](_0x23070b=>{const _0x548742=_0x192a07;if(_0x23070b[_0x548742(0x577)])return _0xb563f(_0x23070b);return _0x23070b;});}if(_0x280853[_0x192a07(0x577)])return _0xb563f(_0x280853);return _0x280853;}catch(_0x1e80b1){this[_0x192a07(0x1d1)](_0x1e80b1);}},'return'(_0x52e514){const _0x53688f=_0x2fc2;if(!this[_0x53688f(0x577)]){_0x450841['value']=_0x52e514,this[_0x53688f(0x577)]=!![];if(_0x1d02b2[_0x53688f(0x710)])_0x1d02b2[_0x53688f(0x710)]();_0x814f80[_0x53688f(0x2a7)]();}return _0x450841;},'throw'(_0x291570){const _0x3e1475=_0x2fc2;if(_0x48317e[_0x3e1475(0x332)])throw _0x291570;this[_0x3e1475(0x2a7)]();throw _0x291570;}};},_0x1d02b2;}[_0x23b390(0x68c)](_0x3079de){const _0x3104d9=_0x23b390;let _0x4460ca=new _0x576de6();return _0x4460ca[_0x3104d9(0x309)]=(_0x4dab0e=_0x4492ac)=>{const _0x476fb3=_0x3104d9;let _0x2ba48c=this[_0x476fb3(0x6a7)]=this[_0x476fb3(0x309)](_0x4dab0e),_0x877b44;return{'next'(_0x15cb7d){const _0x172e45=_0x476fb3;try{do{if(_0x877b44){let _0x145d34;if(_0x15cb7d)_0x145d34=_0x15cb7d,_0x15cb7d=undefined;else _0x145d34=_0x877b44[_0x172e45(0x8a6)]();if(_0x145d34[_0x172e45(0x458)]){if(!_0x4dab0e[_0x172e45(0x544)])throw new Error('Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results');return _0x145d34[_0x172e45(0x458)](_0x279087=>this[_0x172e45(0x8a6)](_0x279087));}if(!_0x145d34[_0x172e45(0x577)])return _0x145d34;}let _0x1c3a54;if(_0x15cb7d!=undefined)_0x1c3a54=_0x15cb7d,_0x15cb7d=undefined;else _0x1c3a54=_0x2ba48c[_0x172e45(0x8a6)]();if(_0x1c3a54[_0x172e45(0x458)]){if(!_0x4dab0e['async'])throw new Error(_0x172e45(0x7d0));return _0x877b44=undefined,_0x1c3a54[_0x172e45(0x458)](_0x1dc728=>this[_0x172e45(0x8a6)](_0x1dc728));}if(_0x1c3a54[_0x172e45(0x577)]){if(_0x4460ca[_0x172e45(0x710)])_0x4460ca['onDone']();return _0x1c3a54;}try{let _0x6870f8=_0x3079de(_0x1c3a54['value']);if(_0x6870f8?.[_0x172e45(0x458)]){if(!_0x4dab0e[_0x172e45(0x544)])throw new Error(_0x172e45(0x7d0));return _0x6870f8[_0x172e45(0x458)](_0x5eaf37=>{const _0x22bfde=_0x172e45;return Array[_0x22bfde(0x888)](_0x5eaf37)||_0x5eaf37 instanceof _0x576de6?(_0x877b44=_0x5eaf37[Symbol[_0x22bfde(0x6a7)]](),this[_0x22bfde(0x8a6)]()):(_0x877b44=null,{'value':_0x5eaf37});},_0x51f592=>{const _0x4d4e82=_0x172e45;if(_0x4dab0e[_0x4d4e82(0x332)])_0x51f592[_0x4d4e82(0x661)]=!![];this[_0x4d4e82(0x1d1)](_0x51f592);});}if(Array[_0x172e45(0x888)](_0x6870f8)||_0x6870f8 instanceof _0x576de6)_0x877b44=_0x6870f8[Symbol[_0x172e45(0x6a7)]]();else return _0x877b44=null,{'value':_0x6870f8};}catch(_0x1ffa40){if(_0x4dab0e[_0x172e45(0x332)])_0x1ffa40[_0x172e45(0x661)]=!![];throw _0x1ffa40;}}while(!![]);}catch(_0x367a00){this[_0x172e45(0x1d1)](_0x367a00);}},'return'(){const _0x399030=_0x476fb3;if(_0x4460ca[_0x399030(0x710)])_0x4460ca[_0x399030(0x710)]();if(_0x877b44)_0x877b44[_0x399030(0x2a7)]();return _0x2ba48c[_0x399030(0x2a7)]();},'throw'(_0x439d6d){const _0x45278b=_0x476fb3;if(_0x4dab0e[_0x45278b(0x332)])throw _0x439d6d;if(_0x4460ca[_0x45278b(0x710)])_0x4460ca[_0x45278b(0x710)]();if(_0x877b44)_0x877b44['return']();this[_0x45278b(0x2a7)]();throw _0x439d6d;}};},_0x4460ca;}[_0x23b390(0x848)](_0x45c876,_0x472327){const _0x102a17=_0x23b390;let _0xbfee96=this['map']((_0x518b81,_0x280713)=>{if(_0x280713<_0x45c876)return _0x4e8a01;if(_0x280713>=_0x472327)return _0xeb064c['value']=_0x518b81,_0xeb064c;return _0x518b81;});return _0xbfee96[_0x102a17(0x7b7)]=(_0x554d44,_0xe630)=>{if(_0xe630<_0x45c876)return _0x4e8a01;if(_0xe630>=_0x472327)return _0xeb064c;throw _0x554d44;},_0xbfee96;}[_0x23b390(0x650)](_0x4d5704){const _0x43d905=_0x23b390;if(typeof _0x4d5704!=='function')throw new TypeError(_0x43d905(0x7c7));let _0xd023a1=this['map'](_0x49e5b1=>{return _0x49e5b1;}),_0x2bfef3=_0xd023a1[_0x43d905(0x309)];return _0xd023a1[_0x43d905(0x309)]=(_0x5f14b8=_0x4492ac)=>{return _0x2bfef3({..._0x5f14b8,'continueOnRecoverableError':!![]});},_0xd023a1['returnRecoverableErrors']=_0x4d5704,_0xd023a1;}[_0x23b390(0x8a6)](){const _0x421e9d=_0x23b390;if(!this[_0x421e9d(0x6a7)])this[_0x421e9d(0x6a7)]=this[_0x421e9d(0x309)]();return this[_0x421e9d(0x6a7)]['next']();}[_0x23b390(0x233)](){const _0x21774c=_0x23b390;if(this[_0x21774c(0x690)]&&this[_0x21774c(0x690)][_0x21774c(0x8de)])return this['asArray'];const _0x3b4bf5=new Error(_0x21774c(0x77a));_0x3b4bf5[_0x21774c(0x3f2)]=this['asArray'];throw _0x3b4bf5;}get[_0x23b390(0x690)](){const _0x47436b=_0x23b390;if(this['_asArray'])return this[_0x47436b(0x31b)];let _0x5e4730=new Promise((_0x5f5aa1,_0xcc707b)=>{const _0x45bcf2=_0x47436b;let _0x5eb330=this[_0x45bcf2(0x309)](!![]),_0x298186=[],_0x3dbf48=this;Object[_0x45bcf2(0x43a)](_0x298186,'iterable',{'value':_0x3dbf48});function _0x2630a0(_0x51f849){const _0x4049c3=_0x45bcf2;while(_0x51f849[_0x4049c3(0x577)]!==!![]){if(_0x51f849[_0x4049c3(0x458)])return _0x51f849['then'](_0x2630a0);else _0x298186['push'](_0x51f849[_0x4049c3(0x744)]);_0x51f849=_0x5eb330[_0x4049c3(0x8a6)]();}_0x5f5aa1(_0x3dbf48[_0x4049c3(0x31b)]=_0x298186);}_0x2630a0(_0x5eb330[_0x45bcf2(0x8a6)]());});return _0x5e4730[_0x47436b(0x86c)]=this,this[_0x47436b(0x31b)]||(this['_asArray']=_0x5e4730);}[_0x23b390(0x881)](){const _0x29ad51=_0x23b390;return this[_0x29ad51(0x690)];}['at'](_0x288d64){for(let _0x2327e5 of this){if(_0x288d64--===0x0)return _0x2327e5;}}}return _0x576de6['prototype']['DONE']=_0xeb064c,dist$1[_0x23b390(0x69f)]=_0x576de6,dist$1[_0x23b390(0x799)]=_0x4e8a01,dist$1;}var iterable,hasRequiredIterable;function requireIterable(){const _0x429755=_0xef081e;if(hasRequiredIterable)return iterable;hasRequiredIterable=0x1;const {ExtendedIterable:_0x3384b8}=requireDist$1(),_0x20947c=Number(process.env.OKDB_NATIVE_RANGE_CHUNK)||0x3e8,_0xc36c13=Math[_0x429755(0x439)](_0x20947c,Number(process.env.OKDB_NATIVE_ROW_CHUNK)||0x100),_0x449834=new Set(['getRange',_0x429755(0x657),_0x429755(0x5e7),_0x429755(0x257)]),_0x8318a6=Math[_0x429755(0x439)](_0xc36c13,Number(process.env.OKDB_NATIVE_RANGE_FIRST)||0x1),_0x296223=0x4,_0x496671=(_0x309866,_0x1ff651=_0x20947c)=>Math[_0x429755(0x439)](_0x1ff651,_0x309866*_0x296223),_0x55d80a={'value':undefined,'done':!![]};function _0xd0fe05(_0x210dc2){const _0x4bf4f0=_0x429755,_0x1fb8b3=new _0x3384b8();return _0x1fb8b3[_0x4bf4f0(0x309)]=()=>{let _0x286bf9=0x0;return{'next'(){const _0x277a54=_0x2fc2;return _0x286bf9<_0x210dc2[_0x277a54(0x788)]?{'value':_0x210dc2[_0x286bf9++],'done':![]}:{'value':undefined,'done':!![]};},'return'(){const _0x3db0e6=_0x2fc2;return _0x286bf9=_0x210dc2[_0x3db0e6(0x788)],{'value':undefined,'done':!![]};},'throw'(){return _0x286bf9=_0x210dc2['length'],{'value':undefined,'done':!![]};}};},_0x1fb8b3;}const _0x527c84=_0x26f86f=>typeof _0x26f86f===_0x429755(0x559)&&!Number[_0x429755(0x21f)](_0x26f86f)?Math['max'](0x0,Math['ceil'](_0x26f86f)):Infinity,_0x36ceda=_0x1941eb=>typeof _0x1941eb==='number'?Math[_0x429755(0x31f)](0x0,Math['trunc'](_0x1941eb))||0x0:0x0;function _0x73a5eb(_0x58da5f,_0x4cc738,_0x43b6c2,_0x117962={}){const _0x38bd89=_0x429755,_0x3d20eb=new _0x3384b8(),_0x32a13a=(_0x117962[_0x38bd89(0x862)]||_0x527c84)(_0x4cc738[_0x38bd89(0x419)]),_0x4f5740=_0x117962['rows']?_0xc36c13:_0x20947c,_0x1d81a4=_0x117962[_0x38bd89(0x65e)]||((_0x41d009,_0x27e79c)=>{const _0x5b88e4=_0x38bd89;_0x41d009[_0x5b88e4(0x77b)]=_0x27e79c,_0x41d009['exclusiveStart']=!![],delete _0x41d009[_0x5b88e4(0x64f)];});let _0x3daff3=null;if(_0x117962[_0x38bd89(0x7d5)]){const _0x15b0bf={..._0x4cc738,'limit':Math[_0x38bd89(0x439)](_0x8318a6,_0x32a13a)};_0x3daff3={'rows':_0x58da5f(_0x15b0bf),'limit':_0x15b0bf[_0x38bd89(0x419)]};const _0x4fa951=_0x3daff3;queueMicrotask(()=>{const _0x53dec4=_0x38bd89;_0x4fa951[_0x53dec4(0x5f8)]=!![];});}return _0x3d20eb[_0x38bd89(0x309)]=()=>{const _0x130625=_0x38bd89;let _0x1c079f=[],_0x58fca1=0x0,_0x53cd94=0x0,_0x526c37,_0x3c1ee4=![],_0x5dfa62=![],_0x1eed95=_0x8318a6;if(_0x3daff3&&!_0x3daff3[_0x130625(0x5f8)]&&!_0x3daff3[_0x130625(0x27c)]){_0x3daff3[_0x130625(0x27c)]=!![],_0x1c079f=_0x3daff3[_0x130625(0x2cd)],_0x3c1ee4=!![],_0x1eed95=_0x496671(_0x1eed95,_0x4f5740);if(_0x1c079f['length']<_0x3daff3[_0x130625(0x419)])_0x5dfa62=!![];if(_0x1c079f[_0x130625(0x788)])_0x526c37=_0x43b6c2(_0x1c079f[_0x1c079f[_0x130625(0x788)]-0x1]);}const _0x3e4b43=()=>{const _0xc28b53=_0x130625;if(_0x5dfa62)return;const _0x3ef02b=_0x32a13a-_0x53cd94;if(_0x3ef02b<=0x0){_0x5dfa62=!![],_0x1c079f=[];return;}const _0x19c02a={..._0x4cc738,'limit':Math[_0xc28b53(0x439)](_0x1eed95,_0x3ef02b)};if(_0x3c1ee4)_0x1d81a4(_0x19c02a,_0x526c37);_0x3c1ee4=!![],_0x1eed95=_0x496671(_0x1eed95,_0x4f5740),_0x1c079f=_0x58da5f(_0x19c02a),_0x58fca1=0x0;if(_0x1c079f['length']<_0x19c02a[_0xc28b53(0x419)])_0x5dfa62=!![];if(_0x1c079f[_0xc28b53(0x788)])_0x526c37=_0x43b6c2(_0x1c079f[_0x1c079f[_0xc28b53(0x788)]-0x1]);};return{'next'(){const _0x17cbfd=_0x130625;if(_0x58fca1>=_0x1c079f[_0x17cbfd(0x788)])_0x3e4b43();if(_0x58fca1>=_0x1c079f['length'])return{'value':undefined,'done':!![]};return _0x53cd94++,{'value':_0x1c079f[_0x58fca1++],'done':![]};},'return'(){return _0x5dfa62=!![],_0x1c079f=[],{'value':undefined,'done':!![]};},'throw'(){return _0x5dfa62=!![],_0x1c079f=[],{'value':undefined,'done':!![]};}};},_0x3d20eb;}function _0x180a45(_0x4404d7,_0x4f4792,_0x30df94,_0xd8465e,_0x5ecc2c={}){const _0x74421d=_0x429755,_0x1fe951=(_0x5ecc2c['limitOf']||_0x527c84)(_0xd8465e&&_0xd8465e[_0x74421d(0x419)]),_0x30e15e=_0x449834[_0x74421d(0x396)](_0x4f4792)?_0xc36c13:_0x20947c,_0x52c2ff=(_0x5ecc2c['offsetOf']||_0x36ceda)(_0xd8465e&&_0xd8465e['offset']),_0xa9e76=(_0x9004bc,_0x1b29aa,_0x542165)=>{const _0x59c211=_0x74421d,_0x2d6afd=_0x1fe951-_0x1b29aa,_0x37bbc4=Math['min'](_0x542165,_0x2d6afd),_0x408a43={'limit':_0x37bbc4,'offset':_0x52c2ff+_0x1b29aa},_0x4e1805=_0x4404d7(_0x59c211(0x59f),[_0x9004bc,_0x4f4792,_0x37bbc4===_0x2d6afd?Infinity:_0x37bbc4,..._0x30df94(_0x408a43)]);if(_0x4e1805[0x0]===-0x1){const _0x982481={'offset':_0x52c2ff+_0x1b29aa};if(_0x2d6afd!==Infinity)_0x982481[_0x59c211(0x419)]=_0x2d6afd;return{'pin':0x0,'rows':_0x4404d7(_0x4f4792,_0x30df94(_0x982481)),'raw':Infinity,'eager':!![]};}return{'pin':_0x4e1805[0x0],'rows':_0x4e1805[0x1],'raw':_0x4e1805[0x2]};},_0x12dc57=_0x1a7896=>{const _0x2650c9=_0x74421d;if(_0x1a7896)_0x4404d7(_0x2650c9(0x376),[_0x1a7896]);};function _0x11c0ba(_0x2c7de9,_0x130704,_0x1683b4){const _0x48ea8d=_0x74421d;let _0x1d43dd=0x0,_0xc3b8d8=[],_0x171b78=0x0,_0x4d576b=_0x2c7de9,_0x256c2d=_0x8318a6,_0x45fd9d=_0x1fe951-_0x2c7de9<=0x0;if(_0x1683b4)({buf:_0xc3b8d8,pos:_0x171b78,consumed:_0x4d576b,size:_0x256c2d,exhausted:_0x45fd9d}=_0x1683b4);const _0xdc956a=_0x3f8a03=>{const _0x2b3404=_0x2fc2;_0x1d43dd=_0x3f8a03[_0x2b3404(0x2e7)],_0xc3b8d8=_0x3f8a03[_0x2b3404(0x2cd)],_0x171b78=0x0,_0x4d576b+=_0x3f8a03[_0x2b3404(0x454)],_0x256c2d=_0x496671(_0x256c2d,_0x30e15e);if(!_0x1d43dd)_0x45fd9d=!![];};if(_0x130704)_0xdc956a(_0x130704);const _0x46a9d6=()=>{const _0x3a4709=_0x1d43dd;_0x1d43dd=0x0,_0x12dc57(_0x3a4709);},_0x23c3dd={'next'(){const _0x1ce6fb=_0x2fc2;while(_0x171b78>=_0xc3b8d8[_0x1ce6fb(0x788)]){if(_0x45fd9d||_0x1fe951-_0x4d576b<=0x0)return _0x45fd9d=!![],_0x46a9d6(),_0x55d80a;try{_0xdc956a(_0xa9e76(_0x1d43dd,_0x4d576b,_0x256c2d));}catch(_0x1e84fe){_0x1d43dd=0x0,_0x45fd9d=!![],_0xc3b8d8=[];throw _0x1e84fe;}}return{'value':_0xc3b8d8[_0x171b78++],'done':![]};},'return'(){return _0x46a9d6(),_0x55d80a;},'throw'(){return _0x46a9d6(),_0x55d80a;},'resumed'(){return _0x11c0ba(0x0,null,{'buf':_0xc3b8d8,'pos':_0x171b78,'consumed':_0x4d576b,'size':_0x256c2d,'exhausted':_0x45fd9d});},[Symbol[_0x48ea8d(0x6a7)]](){return this;}};return _0x23c3dd;}function _0x3a1de0(){if(_0x1fe951<=0x0)return null;const _0x43f996=_0xa9e76(0x0,0x0,_0x8318a6);return queueMicrotask(()=>{const _0x1cc2aa=_0x2fc2;!_0x43f996[_0x1cc2aa(0x27c)]&&(_0x43f996[_0x1cc2aa(0x5f8)]=!![],_0x12dc57(_0x43f996[_0x1cc2aa(0x2e7)]));}),_0x43f996;}return{'source':_0x11c0ba,'prefetch':_0x3a1de0};}function _0x59430(_0x1651e4){const _0x25a916=_0x429755;if(!_0x1651e4||_0x1651e4[_0x25a916(0x27c)]||_0x1651e4[_0x25a916(0x5f8)])return null;return _0x1651e4[_0x25a916(0x27c)]=!![],_0x1651e4;}return iterable={'fromArray':_0xd0fe05,'chunkedRange':_0x73a5eb,'pinnedChunks':_0x180a45,'claimPrefetch':_0x59430,'lmdbLimit':_0x527c84,'lmdbOffset':_0x36ceda,'CHUNK':_0x20947c,'ROW_CHUNK':_0xc36c13,'FIRST':_0x8318a6},iterable;}var rawdb,hasRequiredRawdb;function requireRawdb(){const _0x3011b3=_0xef081e;if(hasRequiredRawdb)return rawdb;hasRequiredRawdb=0x1;const {fromArray:_0x240449}=requireIterable();class _0x118e93{constructor(_0x2f1f50,_0x4de0b1='',_0x3ea34c={},_0x1969be=null){const _0x2a1b02=_0x2fc2;this[_0x2a1b02(0x3b1)]=_0x2f1f50,this[_0x2a1b02(0x686)]=_0x4de0b1,this[_0x2a1b02(0x45c)]=!!(_0x3ea34c&&_0x3ea34c[_0x2a1b02(0x45c)]),this[_0x2a1b02(0x2f0)]=!!(_0x3ea34c&&_0x3ea34c[_0x2a1b02(0x2f0)]),this[_0x2a1b02(0x7f1)]=_0x1969be||this,this[_0x2a1b02(0x567)]=null;}get[_0x3011b3(0x360)](){const _0x3b55e9=_0x3011b3;return this['dupSort']?!![]:this[_0x3b55e9(0x2f0)]?'v':![];}['_n'](_0x3d240d,_0x95d9c8){const _0x26d590=_0x3011b3;return this['_env'][_0x26d590(0x82e)][_0x26d590(0x5a1)](_0x26d590(0x454),this['_env']['name'],_0x3d240d,[this[_0x26d590(0x686)],this[_0x26d590(0x360)],..._0x95d9c8],!![]);}[_0x3011b3(0x84b)](_0x32dfb5,_0x134931){const _0x5bfa0a=_0x3011b3;return this['_env'][_0x5bfa0a(0x82e)][_0x5bfa0a(0x5a1)](_0x5bfa0a(0x454),this[_0x5bfa0a(0x3b1)][_0x5bfa0a(0x686)],_0x32dfb5,[this['name'],this[_0x5bfa0a(0x360)],..._0x134931],![]);}['_write'](_0x70d875){const _0x244891=_0x3011b3,_0x10b375=this[_0x244891(0x3b1)][_0x244891(0x375)];if(_0x10b375)_0x10b375[_0x244891(0x27f)]({'sub':this[_0x244891(0x686)],'dup':this['_dupArg'],..._0x70d875});else this[_0x244891(0x3b1)][_0x244891(0x82e)][_0x244891(0x5a1)](_0x244891(0x454),this['_env'][_0x244891(0x686)],_0x244891(0x854),[[{'sub':this[_0x244891(0x686)],'dup':this[_0x244891(0x360)],..._0x70d875}]],!![]);}['get'](_0x50582d){const _0x4f5c54=_0x3011b3;return this[_0x4f5c54(0x84b)]('get',[_0x50582d]);}['getEntry'](_0x4c815e){const _0x2b686b=_0x3011b3;if(this[_0x2b686b(0x2f0)])return this[_0x2b686b(0x84b)](_0x2b686b(0x408),[_0x4c815e]);const _0x3d6930=this['get'](_0x4c815e);return _0x3d6930===undefined?undefined:{'value':_0x3d6930};}[_0x3011b3(0x2a2)](_0x142f67){const _0x1465b=_0x3011b3;return this[_0x1465b(0x84b)](_0x1465b(0x578),[_0x142f67]);}['getBinary'](_0x456bf8){const _0x3742cf=_0x3011b3;return this[_0x3742cf(0x292)](_0x456bf8);}[_0x3011b3(0x433)](_0x3fbe62={}){const _0x47e24b=_0x3011b3,_0x197127=this[_0x47e24b(0x84b)](_0x47e24b(0x433),[_0x3fbe62]),_0x3babf0=_0x3fbe62[_0x47e24b(0x42a)]===![],_0x4e0921=_0x3fbe62[_0x47e24b(0x607)]===![];return _0x240449(_0x197127[_0x47e24b(0x642)](([_0x21f50b,_0x12f5c1,_0x2a1d91])=>{if(_0x3babf0)return _0x21f50b;if(_0x4e0921)return _0x12f5c1;return _0x2a1d91===undefined?{'key':_0x21f50b,'value':_0x12f5c1}:{'key':_0x21f50b,'value':_0x12f5c1,'version':_0x2a1d91};}));}['getKeys'](_0x1acdfa={}){const _0x2e6311=_0x3011b3;return _0x240449(this[_0x2e6311(0x84b)](_0x2e6311(0x433),[_0x1acdfa])[_0x2e6311(0x642)](([_0x57b070])=>_0x57b070));}['getValues'](_0x3a0583,_0x514048={}){const _0x279d82=_0x3011b3,_0x13caa0=this[_0x279d82(0x84b)](_0x279d82(0x433),[{..._0x514048,'start':_0x3a0583,'end':_0x3a0583,'inclusiveEnd':!![]}]);return _0x240449(_0x13caa0['map'](([,_0x4bbe54])=>_0x4bbe54));}[_0x3011b3(0x2e0)](_0x70b154={}){const _0x312177=_0x3011b3;return this[_0x312177(0x84b)](_0x312177(0x4c2),[_0x70b154]);}[_0x3011b3(0x7f2)](){const _0x419938=_0x3011b3;return{'entryCount':this[_0x419938(0x2e0)]()};}['put'](_0x3a9544,_0x1abb56,_0x2fa7e5){const _0x7d5778=_0x3011b3;return this[_0x7d5778(0x55f)]({'op':_0x7d5778(0x1dd),'key':_0x3a9544,'value':_0x1abb56,'version':_0x2fa7e5}),Promise[_0x7d5778(0x1f3)](!![]);}[_0x3011b3(0x57a)](_0x4ae758,_0x2ce50f,_0x15bc67){const _0x1744c9=_0x3011b3;return this['_write']({'op':_0x1744c9(0x1dd),'key':_0x4ae758,'value':_0x2ce50f,'version':_0x15bc67}),!![];}['remove'](_0x548192,_0x3336f0){const _0x258ad2=_0x3011b3;return this[_0x258ad2(0x55f)]({'op':'remove','key':_0x548192,'value':_0x3336f0}),Promise[_0x258ad2(0x1f3)](!![]);}[_0x3011b3(0x4f5)](_0x3d6e16,_0x43ce67){const _0x2d4b4c=_0x3011b3;return this['_write']({'op':_0x2d4b4c(0x28d),'key':_0x3d6e16,'value':_0x43ce67}),!![];}[_0x3011b3(0x371)](){const _0x31b1ba=_0x3011b3;this[_0x31b1ba(0x55f)]({'op':_0x31b1ba(0x6fa)});}[_0x3011b3(0x51a)](){const _0x36844a=_0x3011b3;return this[_0x36844a(0x55f)]({'op':'clear'}),Promise['resolve']();}['drop'](){const _0xc40a6b=_0x3011b3;this[_0xc40a6b(0x371)]();}[_0x3011b3(0x5b6)](_0x29a0b3,_0x16b9fb={}){const _0x4925eb=_0x3011b3,_0x3607bc=typeof _0x29a0b3===_0x4925eb(0x7f6)?_0x29a0b3:_0x16b9fb,_0x35d368=typeof _0x29a0b3===_0x4925eb(0x7f6)?_0x29a0b3[_0x4925eb(0x686)]:_0x29a0b3,_0x5aa743=new _0x118e93(this['_env'],_0x35d368,_0x3607bc);return _0x5aa743['_write']({'op':_0x4925eb(0x50d)}),_0x5aa743;}[_0x3011b3(0x5ca)](){}[_0x3011b3(0x84c)](_0x55bafd){return this['_tx'](_0x55bafd);}async[_0x3011b3(0x7b5)](_0x31fcd8){const _0x487136=_0x3011b3;return this[_0x487136(0x400)](_0x31fcd8);}['childTransaction'](_0x1c2f67){const _0x2b772d=_0x3011b3;return this[_0x2b772d(0x400)](_0x1c2f67);}[_0x3011b3(0x400)](_0x5ead91){const _0x496f10=_0x3011b3,_0x5d0a43=this[_0x496f10(0x3b1)];if(_0x5d0a43[_0x496f10(0x375)])return _0x5ead91();_0x5d0a43[_0x496f10(0x375)]=[];let _0x599826;try{_0x599826=_0x5ead91();}catch(_0x2d969f){_0x5d0a43[_0x496f10(0x375)]=null;throw _0x2d969f;}const _0x4a6068=_0x5d0a43[_0x496f10(0x375)];_0x5d0a43['_rawTxnBuf']=null;if(_0x4a6068[_0x496f10(0x788)])_0x5d0a43[_0x496f10(0x82e)]['_call'](_0x496f10(0x454),_0x5d0a43[_0x496f10(0x686)],_0x496f10(0x854),[_0x4a6068],!![]);return _0x599826;}['useReadTransaction'](){return{'done'(){}};}['resetReadTxn'](){}}return rawdb={'RawDb':_0x118e93},rawdb;}var views,hasRequiredViews;function requireViews(){const _0x10f5f6=_0xef081e;if(hasRequiredViews)return views;hasRequiredViews=0x1;const {RawDb:_0x41e7b4}=requireRawdb();class _0x3c6597{constructor(_0x413aa5){const _0x3d3518=_0x2fc2;this[_0x3d3518(0x4f8)]=_0x413aa5,this['_n']=(_0x2c6878,_0x13013a,_0x4a433d=!![])=>_0x413aa5[_0x3d3518(0x82e)][_0x3d3518(0x5a1)](_0x3d3518(0x59a),_0x413aa5[_0x3d3518(0x686)],_0x2c6878,_0x13013a,_0x4a433d);}get['_viewState'](){const _0x580edb=_0x2fc2,_0x3bf530=this,_0xb6c95e=this['env'],_0x3cffe0=_0x3bfa4d=>_0x3bfa4d?new _0x41e7b4(_0xb6c95e,_0x3bfa4d[_0x580edb(0x686)],{'dupSort':_0x3bfa4d[_0x580edb(0x561)]}):undefined,_0x4961bd=_0x508ce3=>{const _0x19da11=_0x580edb,_0x503c76=_0x3bf530['_n'](_0x19da11(0x786),[_0x508ce3],![]);if(!_0x503c76)return undefined;const _0x3e0dc7=_0x503c76[_0x19da11(0x72a)],_0x19dc8e=new Map(Object[_0x19da11(0x84a)](_0x3e0dc7[_0x19da11(0x75c)])),_0x32386f=new Map(Object[_0x19da11(0x84a)](_0x503c76[_0x19da11(0x3a5)])[_0x19da11(0x642)](([_0x1eb6aa,_0x572cb6])=>[_0x1eb6aa,_0x3cffe0(_0x572cb6)]));return{'name':_0x508ce3,'compiled':{'T':_0x3e0dc7['T'],'reducers':_0x3e0dc7['reducers'],'refs':_0x19dc8e,'granId':_0x3e0dc7[_0x19da11(0x221)],'type':_0x3e0dc7[_0x19da11(0x490)],'_nidFor':_0x582ec2=>_0x3bf530['_n']('nidFor',[_0x508ce3,_0x582ec2],![])},'viewDb':_0x3cffe0(_0x503c76[_0x19da11(0x778)][_0x19da11(0x260)]),'metaDb':_0x3cffe0(_0x503c76[_0x19da11(0x778)][_0x19da11(0x201)]),'itemsDb':_0x3cffe0(_0x503c76[_0x19da11(0x778)]['itemsDb']),'bucketsDb':_0x3cffe0(_0x503c76['dbs'][_0x19da11(0x8c2)]),'sortedDb':_0x3cffe0(_0x503c76['dbs'][_0x19da11(0x2e6)]),'groupsDb':_0x3cffe0(_0x503c76[_0x19da11(0x778)][_0x19da11(0x2f1)]),'prevDb':_0x3cffe0(_0x503c76[_0x19da11(0x778)][_0x19da11(0x34f)]),'refItemsDbs':_0x32386f,'refTrackingDbs':new Map(Object[_0x19da11(0x84a)](_0x503c76['refTrackingDbs']||{})[_0x19da11(0x642)](([_0x525917,_0x3883ff])=>[_0x525917,_0x3cffe0(_0x3883ff)])),'stopFn':_0x503c76['hasStopFn']?async()=>_0x3bf530['_n'](_0x19da11(0x71c),[_0x508ce3]):null,'bootstrapWorker':null};};return{'get':_0x492081=>_0x4961bd(_0x492081),'has':_0x5f73c7=>_0x3bf530['_n'](_0x580edb(0x3d5),[],![])['includes'](_0x5f73c7),'keys':()=>_0x3bf530['_n'](_0x580edb(0x3d5),[],![])[Symbol[_0x580edb(0x6a7)]](),get 'size'(){const _0x3169aa=_0x580edb;return _0x3bf530['_n']('stateNames',[],![])[_0x3169aa(0x788)];},[Symbol['iterator']]:()=>_0x3bf530['_n'](_0x580edb(0x3d5),[],![])['map'](_0x495417=>[_0x495417,_0x4961bd(_0x495417)])[Symbol[_0x580edb(0x6a7)]]()};}get['_customReducers'](){const _0x147555=_0x2fc2,_0x1e31bd=this;return{'has':_0x3d0d88=>_0x1e31bd['_n'](_0x147555(0x3c0),[],![])[_0x147555(0x2a1)](_0x3d0d88),get 'size'(){const _0x3b5514=_0x147555;return _0x1e31bd['_n'](_0x3b5514(0x3c0),[],![])[_0x3b5514(0x788)];},'keys':()=>_0x1e31bd['_n'](_0x147555(0x3c0),[],![])[Symbol['iterator']]()};}async[_0x10f5f6(0x33e)](){return this['_n']('bootSyncedViewsInline',[]);}async[_0x10f5f6(0x35c)](_0x57a045={}){return this['_n']('bootSyncedViews',[_0x57a045]);}async[_0x10f5f6(0x1c2)](_0x33db8c,_0x17daac){return this['_n']('create',[_0x33db8c,_0x17daac]),{'name':_0x33db8c};}[_0x10f5f6(0x292)](_0x1793bd,_0x5ee75c={}){const _0x19f370=_0x10f5f6,_0x1d9aae=this['_n'](_0x19f370(0x292),[_0x1793bd,{'preview':_0x5ee75c?.[_0x19f370(0x3df)]??{}}],![]);if(_0x1d9aae==null)return null;const _0x2d7d6b=this['_n']('itemsPlan',[_0x1793bd],![]);if(!_0x2d7d6b)return _0x1d9aae;const _0x40fedd=_0x363a86=>(_0x1a74ae={})=>this['_n'](_0x19f370(0x538),[_0x1793bd,_0x363a86,_0x1a74ae],![]);if(_0x2d7d6b[_0x19f370(0x4bc)]){_0x1d9aae['items']=_0x40fedd({'kind':_0x19f370(0x4bc)});for(const _0x1e0c4a of _0x2d7d6b[_0x19f370(0x583)]){if(!_0x1e0c4a[_0x19f370(0x538)])continue;if(_0x1e0c4a[_0x19f370(0x719)]){const _0x3ee6d0=_0x1d9aae[_0x1e0c4a[_0x19f370(0x686)]];if(_0x3ee6d0?.['preview']&&Array[_0x19f370(0x888)](_0x3ee6d0[_0x19f370(0x3df)])){for(const _0x2b0a23 of _0x3ee6d0[_0x19f370(0x3df)])_0x2b0a23[_0x19f370(0x538)]=_0x40fedd({'kind':_0x19f370(0x68e),'reducer':_0x1e0c4a[_0x19f370(0x686)],'key':_0x2b0a23[_0x19f370(0x59b)]});}}else _0x1d9aae[_0x1e0c4a['name']]&&(_0x1d9aae[_0x1e0c4a[_0x19f370(0x686)]][_0x19f370(0x538)]=_0x40fedd({'kind':_0x19f370(0x815),'reducer':_0x1e0c4a[_0x19f370(0x686)]}));}}for(const _0x2adff9 of _0x2d7d6b[_0x19f370(0x75c)]){if(!_0x2adff9[_0x19f370(0x4bc)])continue;const _0x383b83=_0x1d9aae[_0x2adff9[_0x19f370(0x686)]];if(!_0x383b83||typeof _0x383b83!==_0x19f370(0x7f6))continue;_0x383b83[_0x19f370(0x538)]=_0x40fedd({'kind':_0x19f370(0x4bc),'ref':_0x2adff9[_0x19f370(0x686)]});for(const _0x21f83f of _0x2adff9['reducers']){if(!_0x21f83f[_0x19f370(0x538)])continue;if(_0x21f83f['grouped']){const _0x31ecd3=_0x383b83[_0x21f83f[_0x19f370(0x686)]];if(_0x31ecd3?.[_0x19f370(0x3df)]&&Array[_0x19f370(0x888)](_0x31ecd3[_0x19f370(0x3df)])){for(const _0xfeed73 of _0x31ecd3['preview'])_0xfeed73[_0x19f370(0x538)]=_0x40fedd({'kind':_0x19f370(0x68e),'ref':_0x2adff9[_0x19f370(0x686)],'reducer':_0x21f83f['name'],'key':_0xfeed73[_0x19f370(0x59b)]});}}else _0x383b83[_0x21f83f[_0x19f370(0x686)]]&&(_0x383b83[_0x21f83f[_0x19f370(0x686)]][_0x19f370(0x538)]=_0x40fedd({'kind':_0x19f370(0x815),'ref':_0x2adff9[_0x19f370(0x686)],'reducer':_0x21f83f[_0x19f370(0x686)]}));}}return _0x1d9aae;}[_0x10f5f6(0x7e5)](_0x34e292){const _0x1ce696=_0x10f5f6;return this['_n'](_0x1ce696(0x7e5),[_0x34e292],![]);}['itemsGroups'](_0x5db2e2,_0x2545e0={}){const _0xb0ff33=_0x10f5f6;return this['_n'](_0xb0ff33(0x3e3),[_0x5db2e2,_0x2545e0],![]);}[_0x10f5f6(0x4e5)](_0x5d05ca,_0x4e9956={}){const _0x59d089=_0x10f5f6;return this['_n'](_0x59d089(0x4e5),[_0x5d05ca,_0x4e9956],![]);}[_0x10f5f6(0x2ad)](_0x33c0a2,_0x520c36={}){const _0x30fe24=_0x10f5f6;return this['_n'](_0x30fe24(0x2ad),[_0x33c0a2,_0x520c36],![]);}async[_0x10f5f6(0x328)](){const _0xfc5fc0=_0x10f5f6;return this['_n'](_0xfc5fc0(0x328),[],![]);}async[_0x10f5f6(0x790)](_0x1abc90){return this['_n']('getDefinition',[_0x1abc90],![])??null;}async[_0x10f5f6(0x28d)](_0x2a3656,_0x32d90e={}){const _0x329cca=_0x10f5f6;return this['_n'](_0x329cca(0x28d),[_0x2a3656,_0x32d90e]);}async[_0x10f5f6(0x6bf)](_0x49b79e){return this['_n']('stop',[_0x49b79e]);}async[_0x10f5f6(0x77b)](_0x41927){return this['_n']('start',[_0x41927]);}async[_0x10f5f6(0x774)](_0x1496f0){const _0x4e8d93=_0x10f5f6;return this['_n'](_0x4e8d93(0x774),[_0x1496f0]);}async[_0x10f5f6(0x713)](_0x4d58f2){return this['_n']('resetView',[_0x4d58f2]);}['registerReducer'](_0x118e7e,_0x629780={}){const _0xa3cb85=_0x10f5f6;return this['_n'](_0xa3cb85(0x29e),[_0x118e7e,{'apply':_0x629780&&_0x629780[_0xa3cb85(0x4b8)]}]);}}return views={'OKDBViews':_0x3c6597},views;}var queue,hasRequiredQueue;function requireQueue(){const _0x44a44b=_0xef081e;if(hasRequiredQueue)return queue;hasRequiredQueue=0x1;const {OKDBError:_0x1f0fa2}=requireErrors(),_0x226e41=requireBridge();class _0x1f3e59{constructor(_0x385247){const _0x148caa=_0x2fc2;this[_0x148caa(0x4f8)]=_0x385247,this[_0x148caa(0x82e)]=_0x385247[_0x148caa(0x82e)],this[_0x148caa(0x6d5)]=_0x385247[_0x148caa(0x82e)][_0x148caa(0x6d5)][_0x148caa(0x7ad)]({'feature':_0x148caa(0x2c1)}),this[_0x148caa(0x20a)]=new Set();}['_n'](_0x33cd90,_0x15d362,_0x1be8a4=!![]){const _0x24e2b9=_0x2fc2;return this[_0x24e2b9(0x82e)]['_call'](_0x24e2b9(0x2c1),this[_0x24e2b9(0x4f8)][_0x24e2b9(0x686)],_0x33cd90,_0x15d362,_0x1be8a4);}['_w'](_0x8b1362,_0x1f481b){const _0x4f3149=_0x2fc2;return this[_0x4f3149(0x82e)][_0x4f3149(0x36f)](this['_n'](_0x8b1362,_0x1f481b));}async['_ensure'](){const _0x18b278=_0x2fc2;return this['_n'](_0x18b278(0x50d),[]);}async[_0x44a44b(0x328)](_0x184a53={}){const _0x263ebe=_0x44a44b;return this['_n'](_0x263ebe(0x328),[_0x184a53],![]);}get['_logsDb'](){const _0x2fe405=_0x44a44b,{RawDb:_0x2bcc8e}=requireRawdb();return this[_0x2fe405(0x277)]||(this[_0x2fe405(0x277)]=new _0x2bcc8e(this['env'],'~queue_logs'));}async[_0x44a44b(0x4fa)](){const _0x37e1a7=_0x44a44b;return this['_w'](_0x37e1a7(0x35e),[]);}async['enqueue'](_0x5e775d,_0x4611f5,_0x3d5b1c={}){const _0x1c434d=_0x44a44b,{txn:_0x1b1297,..._0xed5c7f}=_0x3d5b1c||{};if(_0x1b1297)return this['_enqueueInTxn'](_0x1b1297,_0x5e775d,_0x4611f5,_0xed5c7f);const _0x45983c=this[_0x1c434d(0x82e)][_0x1c434d(0x7de)];if(_0x45983c&&_0x45983c[_0x1c434d(0x2c1)][_0x1c434d(0x788)])_0x45983c['commit']();const _0x3415b3=this['_n']('enqueueClaim',[_0x5e775d,_0x4611f5,_0xed5c7f],![]);return this[_0x1c434d(0x82e)][_0x1c434d(0x36f)](_0x3415b3['id'])[_0x1c434d(0x458)](_0x2dfbf4=>{const _0x3361ca=_0x1c434d;if(_0x3415b3[_0x3361ca(0x825)])this['_startClaimedSoon'](_0x5e775d);else try{this[_0x3361ca(0x82e)][_0x3361ca(0x82c)]['wake']();}catch{}return _0x2dfbf4;});}[_0x44a44b(0x7e1)](_0x6c4777){queueMicrotask(()=>{const _0x1f439f=_0x2fc2;try{this['_n'](_0x1f439f(0x7cf),[_0x6c4777]);}catch{}});}[_0x44a44b(0x476)](_0x117a71,_0x5aa8d2,_0x2dffa4,_0x54ae0f){const _0x2b6076=_0x44a44b,_0x1aea37=_0x117a71[_0x2b6076(0x454)]??_0x117a71;if(_0x1aea37['_closed'])throw new _0x1f0fa2(_0x2b6076(0x766),_0x2b6076(0x325));if(_0x1aea37['okdb']&&_0x1aea37[_0x2b6076(0x82e)]!==this['env']&&_0x1aea37[_0x2b6076(0x82e)][_0x2b6076(0x686)]!==this['env'][_0x2b6076(0x686)])throw new _0x1f0fa2(_0x2b6076(0x21b),_0x2b6076(0x38d),{'txnEnv':_0x1aea37[_0x2b6076(0x82e)]['name'],'queueEnv':this[_0x2b6076(0x4f8)]['name']});const _0x30bac0=this['_n'](_0x2b6076(0x8f6),[_0x5aa8d2,_0x2dffa4,_0x54ae0f],![]);if(_0x30bac0['existing'])return _0x30bac0['id'];if(_0x30bac0[_0x2b6076(0x491)])_0x117a71['update'](_0x2b6076(0x2da),_0x30bac0[_0x2b6076(0x491)][_0x2b6076(0x59b)],_0x30bac0[_0x2b6076(0x491)][_0x2b6076(0x744)],{'ifVersion':_0x30bac0['release'][_0x2b6076(0x782)]});if(_0x2dffa4!==undefined)_0x117a71[_0x2b6076(0x1dd)](_0x2b6076(0x501),_0x30bac0['id'],_0x2dffa4);_0x117a71[_0x2b6076(0x1dd)](_0x2b6076(0x2da),_0x30bac0['id'],_0x30bac0['job']);if(typeof _0x1aea37[_0x2b6076(0x6f3)]==='function')_0x1aea37[_0x2b6076(0x6f3)](()=>{if(this['_n']('announceEnqueued',[_0x30bac0['id'],_0x5aa8d2,_0x30bac0['when'],_0x30bac0['priority']]))this['_startClaimedSoon'](_0x5aa8d2);});return _0x30bac0['id'];}async['claim'](_0x3bb2f7,_0x517e8f={}){const _0x3a7d2a=_0x44a44b;if(typeof _0x3bb2f7!==_0x3a7d2a(0x43c)||!_0x3bb2f7)throw new _0x1f0fa2(_0x3a7d2a(0x1d4),_0x3a7d2a(0x290));return this['_w'](_0x3a7d2a(0x628),[_0x3bb2f7,_0x517e8f]);}async[_0x44a44b(0x553)](_0x3cd274,_0x53da33,_0x2c8498=null){const _0x40fed4=_0x44a44b;return this['_w'](_0x40fed4(0x553),[_0x3cd274,_0x53da33,_0x2c8498]);}async[_0x44a44b(0x486)](_0x50667d,_0x5f1bae,_0x2f4145=null){const _0x44b056=_0x44a44b;return this[_0x44b056(0x553)](_0x50667d,_0x5f1bae,_0x2f4145);}async[_0x44a44b(0x86f)](_0x526af7,_0x209ee7,_0x568719){const _0xee086e=_0x44a44b;return this['_w'](_0xee086e(0x86f),[_0x526af7,_0x209ee7,_0x568719]);}async[_0x44a44b(0x21d)](_0x11509c,_0x340168,_0x59e55b){const _0xd5a7a7=_0x44a44b;return this['_w'](_0xd5a7a7(0x21d),[_0x11509c,_0x340168,_0x59e55b]);}async[_0x44a44b(0x249)](_0x3f8817,_0x2ded48,_0x2be72a){const _0x4faf9d=_0x44a44b;return this[_0x4faf9d(0x21d)](_0x3f8817,_0x2ded48,_0x2be72a);}async['markJobFail'](_0x12f61f,_0x39472f,_0x246da6,_0x14fd00){const _0x16e187=_0x44a44b,_0x4ab7d1=_0x246da6 instanceof Error?{'message':_0x246da6[_0x16e187(0x485)],'stack':_0x246da6[_0x16e187(0x8a5)]}:_0x246da6;return this['_w'](_0x16e187(0x6e3),[_0x12f61f,_0x39472f,_0x4ab7d1,_0x14fd00]);}async[_0x44a44b(0x7a5)](_0x56a79b,_0x3b9398,_0x539599,_0x420395){return this['markJobFail'](_0x56a79b,_0x3b9398,_0x539599,_0x420395);}async[_0x44a44b(0x85b)](_0x1d8b59,_0x151e5b,_0x4ed687={}){const _0x461294=_0x44a44b;return this['_w'](_0x461294(0x85b),[_0x1d8b59,_0x151e5b,_0x4ed687]);}async['getJob'](_0x5a3f35){const _0x3990e7=_0x44a44b;return this['_n'](_0x3990e7(0x7d4),[_0x5a3f35],![]);}async[_0x44a44b(0x76e)](_0x534b0a,_0x33943e={},_0x4984ad={}){const _0x17db39=_0x44a44b,_0x5bf71e=_0x4984ad&&_0x4984ad[_0x17db39(0x592)];if(!_0x5bf71e)return this['_w'](_0x17db39(0x76e),[_0x534b0a,_0x33943e]);const {next:_0x38ac92,version:_0x2b9199}=this['_n'](_0x17db39(0x8b4),[_0x534b0a,_0x33943e],![]);_0x5bf71e[_0x17db39(0x739)](_0x17db39(0x2da),_0x534b0a,_0x38ac92,{'ifVersion':_0x2b9199});let _0x54ad34;if(_0x17db39(0x554)in _0x33943e){if(_0x33943e[_0x17db39(0x554)]===undefined){if(this['env'][_0x17db39(0x408)](_0x17db39(0x501),_0x534b0a))_0x5bf71e['remove']('~queue_payloads',_0x534b0a);}else _0x5bf71e['put']('~queue_payloads',_0x534b0a,_0x33943e[_0x17db39(0x554)]);_0x54ad34=_0x33943e[_0x17db39(0x554)];}else _0x54ad34=this['env']['get'](_0x17db39(0x501),_0x534b0a);return{..._0x38ac92,'payload':_0x54ad34};}async[_0x44a44b(0x6eb)](_0x1fa490,_0x40635a={}){const _0x212dc2=_0x44a44b,_0x584df1=_0x40635a&&_0x40635a[_0x212dc2(0x592)];if(!_0x584df1)return this['_w']('removeJob',[_0x1fa490]);if(!_0x1fa490)throw new _0x1f0fa2(_0x212dc2(0x498),_0x212dc2(0x290));if(!this['env']['getEntry']('~queue_jobs',_0x1fa490))return![];_0x584df1[_0x212dc2(0x28d)](_0x212dc2(0x2da),_0x1fa490);if(this[_0x212dc2(0x4f8)]['getEntry'](_0x212dc2(0x501),_0x1fa490))_0x584df1[_0x212dc2(0x28d)]('~queue_payloads',_0x1fa490);if(typeof _0x584df1[_0x212dc2(0x6f3)]==='function')_0x584df1[_0x212dc2(0x6f3)](()=>this['_n']('removeJobLogsAfterCommit',[_0x1fa490]));return!![];}async[_0x44a44b(0x29a)](_0x21091a){const _0x32a1ef=_0x44a44b;return this['_w'](_0x32a1ef(0x29a),[_0x21091a]);}async['retryJob'](_0x2af6a2){const _0x2eb373=_0x44a44b;return this['_w'](_0x2eb373(0x272),[_0x2af6a2]);}async[_0x44a44b(0x7e8)](_0x1b830b,_0x2085be,_0x3ba7e8){const _0x5e73bd=_0x44a44b,_0x413828=this['_n'](_0x5e73bd(0x586),[_0x2085be??null,_0x3ba7e8??0x0,_0x1b830b]),_0x5e23dc=0x1f4;for(let _0x4596c0=0x0;_0x4596c0<_0x413828[_0x5e73bd(0x788)];_0x4596c0+=_0x5e23dc){this['_n'](_0x5e73bd(0x75d),[_0x413828[_0x5e73bd(0x848)](_0x4596c0,_0x4596c0+_0x5e23dc),_0x4596c0,_0x413828['length'],_0x2085be??null]);if(_0x4596c0+_0x5e23dc<_0x413828[_0x5e73bd(0x788)])await new Promise(_0x2577f6=>setImmediate(_0x2577f6));}return this['_n'](_0x5e73bd(0x69b),[_0x413828[_0x5e73bd(0x788)],_0x2085be??null]),await new Promise(_0xb1c05d=>setImmediate(_0xb1c05d)),_0x413828['length'];}async[_0x44a44b(0x4ec)](_0x19d88a,_0x225fd2){const _0x468aea=_0x44a44b;return this['_clearChunked'](_0x468aea(0x577),_0x19d88a,_0x225fd2);}async[_0x44a44b(0x6b6)](_0x3ae26c,_0x5ba56b){const _0xd8a1a=_0x44a44b;return this[_0xd8a1a(0x7e8)](_0xd8a1a(0x68f),_0x3ae26c,_0x5ba56b);}async[_0x44a44b(0x5f6)](_0x2b00bd,_0x4c53f8){return this['_w']('retryFailed',[_0x2b00bd??null,_0x4c53f8??0x0]);}async[_0x44a44b(0x45f)](_0x32bd02,_0xe0bc36){const _0x22928a=_0x44a44b;return this['_w'](_0x22928a(0x45f),[_0x32bd02??null,_0xe0bc36??0x0]);}async[_0x44a44b(0x493)](_0x5d54b0,_0x28f0e7,_0x1a220d){const _0x3ee70b=_0x44a44b;return this['_w'](_0x3ee70b(0x493),[_0x5d54b0,_0x28f0e7,_0x1a220d]);}async[_0x44a44b(0x217)](_0x3cc7b5,_0x580653={}){return this['_n']('getJobLogs',[_0x3cc7b5,_0x580653],![]);}async['addBucket'](_0x32b30f,_0x4929c8={}){const _0x403709=_0x44a44b,{txn:_0x27cb4f,..._0x5193ae}=_0x4929c8||{};if(!_0x27cb4f)return this['_w']('addBucket',[_0x32b30f,_0x5193ae]);const _0x102080=(_0x2acae4,_0x793708,_0x7ba3ad,_0x269ea6)=>{const _0x50bed0=_0x2fc2,_0x5c334c=Math[_0x50bed0(0x460)](Number(_0x2acae4));return Number[_0x50bed0(0x52f)](_0x5c334c)?Math['min'](_0x269ea6,Math['max'](_0x7ba3ad,_0x5c334c)):_0x793708;},_0xbb9870=typeof _0x32b30f==='string'?_0x32b30f[_0x403709(0x39d)]():'';if(!_0xbb9870)throw new Error(_0x403709(0x857));const _0x4d7bf1=_0x102080(_0x5193ae[_0x403709(0x3f8)],0x0,0x0,0x3b9aca00);_0x27cb4f[_0x403709(0x1dd)](_0x403709(0x30a),_0xbb9870,{'id':_0xbb9870,'tokens':_0x102080(_0x5193ae[_0x403709(0x532)],_0x4d7bf1,0x0,_0x4d7bf1),'capacity':_0x4d7bf1,'refill_amount':_0x102080(_0x5193ae['refill_amount'],0x0,0x0,0x3b9aca00),'refill_every':_0x102080(_0x5193ae['refill_every'],0x0,0x0,0x16d*0x18*0x36ee80),'updated':Date['now']()});}async['updateBucket'](_0x170a13,_0x2243d3){const _0x31620f=_0x44a44b;return this['_w'](_0x31620f(0x4f0),[_0x170a13,_0x2243d3]);}async['removeBucket'](_0x425e74){const _0x3febc5=_0x44a44b;return this['_w'](_0x3febc5(0x230),[_0x425e74]);}[_0x44a44b(0x4eb)](_0x461580){const _0xdef1ad=_0x44a44b,_0x33fcec=this['_n'](_0xdef1ad(0x4eb),[_0x461580],![]);return _0x33fcec===null&&typeof _0x461580==='string'&&_0x461580['trim']()?undefined:_0x33fcec;}async['tryClaimTokens'](_0x4b5d94,_0x3ab1b6){return this['_w']('tryClaimTokens',[_0x4b5d94,_0x3ab1b6]);}async[_0x44a44b(0x4cf)](_0x288220,_0x373249={}){return this['_w']('addJobType',[_0x288220,_0x373249]);}async['getJobType'](_0x3e2a35){const _0x3e3cf9=_0x44a44b;return this['_n'](_0x3e3cf9(0x4f9),[_0x3e2a35],![]);}async[_0x44a44b(0x496)](){const _0x46afc0=_0x44a44b;return this['_n'](_0x46afc0(0x496),[],![]);}async[_0x44a44b(0x7c0)](_0x7d2f5d){const _0x28701a=_0x44a44b;return this['_w'](_0x28701a(0x7c0),[_0x7d2f5d]);}[_0x44a44b(0x64a)](_0x5641b7){const _0x32465c=_0x44a44b;return this['_n'](_0x32465c(0x64a),[_0x5641b7]);}[_0x44a44b(0x246)](_0x103ef9){const _0x390761=_0x44a44b;return this['_n'](_0x390761(0x246),[_0x103ef9]);}[_0x44a44b(0x600)](_0x3a0f44){const _0x476548=_0x44a44b;return this['_n'](_0x476548(0x600),[_0x3a0f44]);}async[_0x44a44b(0x56f)](_0x1bc494,_0x19d3d0,_0x1a9f81=![]){const _0x263449=_0x44a44b;return this['_w'](_0x263449(0x56f),[_0x1bc494,_0x19d3d0,_0x1a9f81]);}async[_0x44a44b(0x886)](_0x54b1af){const _0x119361=_0x44a44b;return this['_w'](_0x119361(0x886),[_0x54b1af]);}async[_0x44a44b(0x8f8)](_0xafb964,_0x44b635=0x5){const _0x29910e=_0x44a44b;return this['_n'](_0x29910e(0x8f8),[_0xafb964,_0x44b635],![]);}async['_reconcile'](_0x2e22d5){const _0x16a3c7=_0x44a44b;return this['_n'](_0x16a3c7(0x775),[_0x2e22d5]);}async[_0x44a44b(0x261)](_0x4c7e6c=0x7530){const _0x2987cf=_0x44a44b;await Promise[_0x2987cf(0x6a1)]([...this[_0x2987cf(0x20a)]][_0x2987cf(0x642)](_0x543277=>_0x543277[_0x2987cf(0x6bf)](_0x4c7e6c)));const _0x716ab7=this['_n'](_0x2987cf(0x261),[0x0]);return this[_0x2987cf(0x20a)][_0x2987cf(0x6fa)](),_0x716ab7;}async[_0x44a44b(0x70b)](){const _0xa2ef8=_0x44a44b,_0x103e16=this['_n'](_0xa2ef8(0x70b),[]);return this[_0xa2ef8(0x20a)][_0xa2ef8(0x6fa)](),_0x103e16;}[_0x44a44b(0x4da)](_0x1d5da9,_0x441adc,_0x574fd9){const _0x55df28=_0x44a44b;let _0x3ee66d,_0x2dc1a2;if(Array['isArray'](_0x1d5da9)){if(typeof _0x441adc==='function')throw new _0x1f0fa2(_0x55df28(0x45e),'BAD_PARAM');_0x2dc1a2=_0x441adc??{};if(_0x2dc1a2[_0x55df28(0x596)]!=null&&typeof _0x2dc1a2['admission']!=='function')throw new _0x1f0fa2(_0x55df28(0x53b),'BAD_PARAM');if(_0x1d5da9[_0x55df28(0x788)]===0x0)throw new _0x1f0fa2('process(entries)\x20requires\x20at\x20least\x20one\x20entry',_0x55df28(0x290));_0x3ee66d=_0x1d5da9[_0x55df28(0x642)](_0x3ccce3=>{const _0x5c8ae7=_0x55df28;if(!_0x3ccce3||typeof _0x3ccce3[_0x5c8ae7(0x490)]!==_0x5c8ae7(0x43c)||!_0x3ccce3[_0x5c8ae7(0x490)])throw new _0x1f0fa2('each\x20process()\x20entry\x20requires\x20a\x20non-empty\x20`type`',_0x5c8ae7(0x290));if(typeof _0x3ccce3[_0x5c8ae7(0x4cc)]!==_0x5c8ae7(0x484))throw new _0x1f0fa2(_0x5c8ae7(0x269)+_0x3ccce3[_0x5c8ae7(0x490)]+'\x22\x20requires\x20a\x20`handler`\x20function',_0x5c8ae7(0x290));return{..._0x3ccce3};});}else{_0x2dc1a2=_0x574fd9??{};if(typeof _0x441adc!==_0x55df28(0x484))throw new _0x1f0fa2(_0x55df28(0x269)+_0x1d5da9+_0x55df28(0x7c2),_0x55df28(0x290));_0x3ee66d=[{'type':_0x1d5da9,'handler':_0x441adc,..._0x574fd9??{}}];}const _0x46f1f2=this[_0x55df28(0x82e)];for(const _0x4acb80 of _0x3ee66d){const _0x574575=_0x4acb80[_0x55df28(0x4cc)];_0x4acb80[_0x55df28(0x4cc)]=function(..._0x4b078a){const _0x341f09=_0x55df28;return _0x46f1f2[_0x341f09(0x2fd)]()[_0x341f09(0x458)](()=>_0x574575['apply'](this,_0x4b078a));};}const _0x2442be=this['_n'](_0x55df28(0x4da),[_0x3ee66d,_0x2dc1a2]),_0x40612d=this,_0x25ae4e={'id':_0x2442be['id'],'type':_0x2442be[_0x55df28(0x490)],get 'running'(){const _0x37b05b=_0x55df28;return _0x40612d['_n'](_0x37b05b(0x4c7),[_0x2442be['id']],![])[_0x37b05b(0x769)];},'isRunning'(){const _0x4163fd=_0x55df28;return _0x40612d['_n'](_0x4163fd(0x4c7),[_0x2442be['id']],![])['running'];},async 'stop'(_0x180821=0x7530){const _0x41bad8=_0x55df28;_0x40612d['_n'](_0x41bad8(0x4f6),[_0x2442be['id']]);const _0x5586e4=Date[_0x41bad8(0x3d4)]()+_0x180821;while(_0x40612d['_n'](_0x41bad8(0x4c7),[_0x2442be['id']],![])[_0x41bad8(0x231)]>0x0&&Date['now']()<_0x5586e4)await new Promise(_0x1df78d=>setTimeout(_0x1df78d,0x2));_0x40612d['_n'](_0x41bad8(0x88a),[_0x2442be['id']]),_0x226e41[_0x41bad8(0x42f)](),_0x40612d['_workers'][_0x41bad8(0x46b)](_0x25ae4e);},async 'kill'(){const _0x2aa31f=_0x55df28;_0x40612d['_n'](_0x2aa31f(0x492),[_0x2442be['id']]),_0x40612d[_0x2aa31f(0x20a)][_0x2aa31f(0x46b)](_0x25ae4e);}};return this['_workers'][_0x55df28(0x77d)](_0x25ae4e),_0x25ae4e;}[_0x44a44b(0x487)](_0x54b3fd){const _0x229b6e=_0x44a44b;throw new _0x1f0fa2('queue.worker(\x27'+_0x54b3fd+_0x229b6e(0x810)+_0x54b3fd+_0x229b6e(0x7ea),_0x229b6e(0x789));}[_0x44a44b(0x6be)](_0x285941){return this['worker'](_0x285941);}}return queue={'OKDBQueue':_0x1f3e59},queue;}var timemachine,hasRequiredTimemachine;function requireTimemachine(){const _0x1df95d=_0xef081e;if(hasRequiredTimemachine)return timemachine;hasRequiredTimemachine=0x1;const {fromArray:_0x32b858}=requireIterable();class _0x1891d4{constructor(_0x4197e3){const _0x459cf1=_0x2fc2;this['env']=_0x4197e3,this['okdb']=_0x4197e3['okdb'];const _0x768074=(_0xa18dab,_0x8bac97)=>this['_n'](_0xa18dab,_0x8bac97,![]);this[_0x459cf1(0x317)]={'getDiffs':(_0x2d983f,_0x5b97f7,_0xbe9111)=>_0x768074(_0x459cf1(0x56e),[_0x2d983f,_0x5b97f7,_0xbe9111||{}]),'hasDiff':(_0x4f832c,_0x4bb2bf,_0x1c6f2)=>_0x768074(_0x459cf1(0x459),[_0x4f832c,_0x4bb2bf,_0x1c6f2]),'getHead':(_0x30763e,_0x37a754)=>_0x768074(_0x459cf1(0x704),[_0x30763e,_0x37a754])??null,'getHeadCount':_0x354193=>_0x768074(_0x459cf1(0x470),[_0x354193]),'getTotalHeadCount':()=>_0x768074(_0x459cf1(0x781),[]),'getDiffsInRange':(_0x589778,_0x2e13c9,_0x383e9b)=>_0x768074(_0x459cf1(0x662),[_0x589778??null,_0x2e13c9,_0x383e9b]),'getConfig':()=>_0x768074(_0x459cf1(0x80a),[])??null,'getCursor':()=>this['_n']('getLegacyCursor',[],![])??null,get 'db'(){const _0x491dbe=_0x459cf1;try{return _0x768074(_0x491dbe(0x781),[]),{};}catch{return null;}}};}get['_registrations'](){const _0x1090bc=_0x2fc2,_0x8950a7=(this[_0x1090bc(0x4f8)][_0x1090bc(0x882)]?.[_0x1090bc(0x328)]?.()||[])[_0x1090bc(0x877)](_0x52c9b7=>String(_0x52c9b7[_0x1090bc(0x7c8)]||'')['startsWith'](_0x1090bc(0x735)))[_0x1090bc(0x788)];return{'size':_0x8950a7};}['_n'](_0x1f8ce2,_0x5d3d97,_0x13e757=!![]){const _0x45e733=_0x2fc2;return this[_0x45e733(0x82e)][_0x45e733(0x5a1)]('tm',this[_0x45e733(0x4f8)]['name'],_0x1f8ce2,_0x5d3d97,_0x13e757);}async[_0x1df95d(0x274)](_0x97c549){const _0x9fc61c=_0x1df95d;return this['_n'](_0x9fc61c(0x274),[_0x97c549??null]);}async[_0x1df95d(0x229)](_0x5db34b){const _0x34d629=_0x1df95d;return this['_n'](_0x34d629(0x229),[_0x5db34b??null]);}async['enableAll'](){const _0x4b93ab=_0x1df95d;return this['_n'](_0x4b93ab(0x8ea),[]);}async[_0x1df95d(0x20f)](){const _0x4ce014=_0x1df95d;return this['_n'](_0x4ce014(0x20f),[]);}async[_0x1df95d(0x48e)](_0xbd6432){const _0x325b65=_0x1df95d;return this['_n'](_0x325b65(0x48e),[_0xbd6432??null]);}async[_0x1df95d(0x4ca)](){const _0x45e447=_0x1df95d;return this['_n'](_0x45e447(0x4ca),[]);}[_0x1df95d(0x32c)](_0x5ae983){const _0x2d40dd=_0x1df95d;return this['_n'](_0x2d40dd(0x32c),[_0x5ae983??null],![]);}['list'](){const _0x350e30=_0x1df95d;return this['_n'](_0x350e30(0x328),[],![]);}[_0x1df95d(0x442)](_0x3d1d53){const _0x476e40=_0x1df95d;return this['_n'](_0x476e40(0x442),[_0x3d1d53??null],![]);}['getCursor'](_0x476a0b){const _0x10985e=_0x1df95d;if(!_0x476a0b)return this['_n'](_0x10985e(0x82f),[],![]);return this['_n'](_0x10985e(0x692),[_0x476a0b],![]);}[_0x1df95d(0x82f)](){const _0xb9b70f=_0x1df95d;return this['_n'](_0xb9b70f(0x82f),[],![]);}['getStateAt'](_0x1f1cf3,_0x5b45cc,_0x28fd24){const _0x56215b=_0x1df95d;return this['_n'](_0x56215b(0x576),[_0x1f1cf3,_0x5b45cc,_0x28fd24],![]);}['getHistory'](_0x1e51e8,_0x446361,_0x43c9bb){return this['_n']('getHistory',[_0x1e51e8,_0x446361,_0x43c9bb||{}],![]);}[_0x1df95d(0x257)](_0x226bdc,_0x58cdf2,_0x1d4536){const _0x2e102a=_0x1df95d;return this['_n'](_0x2e102a(0x257),[_0x226bdc??null,_0x58cdf2,_0x1d4536],![])[Symbol['iterator']]();}async[_0x1df95d(0x26a)](_0x31adc1){return this['_n']('flush',[_0x31adc1??null]);}}return timemachine={'OKDBTimeMachine':_0x1891d4},timemachine;}var files,hasRequiredFiles;function requireFiles(){const _0x7a4a52=_0xef081e;if(hasRequiredFiles)return files;hasRequiredFiles=0x1;const _0xba7299=require$$0,{Readable:_0x164efe}=require$$1,{OKDBError:_0xb56b3f,optionsArg:_0x10534b,invalidArgument:_0x1dded5}=requireErrors(),{RawDb:_0x2a04d5}=requireRawdb();async function _0x51c744(_0x31b8bd){const _0x6384a3=_0x2fc2;if(Buffer[_0x6384a3(0x605)](_0x31b8bd))return _0x31b8bd;if(_0x31b8bd instanceof Uint8Array)return Buffer[_0x6384a3(0x51b)](_0x31b8bd);if(typeof _0x31b8bd===_0x6384a3(0x43c))return Buffer[_0x6384a3(0x51b)](_0x31b8bd);const _0xf660a1=[];for await(const _0xa12ea6 of _0x31b8bd)_0xf660a1[_0x6384a3(0x27f)](Buffer[_0x6384a3(0x605)](_0xa12ea6)?_0xa12ea6:Buffer[_0x6384a3(0x51b)](_0xa12ea6));return Buffer['concat'](_0xf660a1);}class _0x50e40c{constructor(_0x49be8d){const _0x598dac=_0x2fc2;this[_0x598dac(0x4f8)]=_0x49be8d,this[_0x598dac(0x82e)]=_0x49be8d[_0x598dac(0x82e)];}['_n'](_0x242292,_0x3afd2a,_0x1b75e1=!![]){const _0x39a451=_0x2fc2;return this['okdb']['_call'](_0x39a451(0x1c3),this[_0x39a451(0x4f8)][_0x39a451(0x686)],_0x242292,_0x3afd2a,_0x1b75e1);}[_0x7a4a52(0x77b)](){return!![];}[_0x7a4a52(0x6bf)](){}async[_0x7a4a52(0x7ed)](){const _0x3a39cc=_0x7a4a52;this['_n'](_0x3a39cc(0x50d),[]);}async[_0x7a4a52(0x8bb)](_0x5de86f,_0x5524dc){const _0x374c6d=_0x7a4a52;return this[_0x374c6d(0x82e)][_0x374c6d(0x36f)](this['_n'](_0x374c6d(0x282),[_0x5de86f,await _0x51c744(_0x5524dc)]));}get[_0x7a4a52(0x534)](){const _0x5be755=_0x7a4a52;return this['__blobStatusDb']||(this['__blobStatusDb']=new _0x2a04d5(this[_0x5be755(0x4f8)],_0x5be755(0x39b)));}async[_0x7a4a52(0x44c)](_0x38b64b){const _0x18610d=_0x7a4a52;return this[_0x18610d(0x534)][_0x18610d(0x400)](_0x38b64b);}async[_0x7a4a52(0x5aa)](_0x298a5c){const _0x57fd53=_0x7a4a52,{id:_0x2eec03,stream:_0x357b87,mime:mime='application/octet-stream',path:_0x41e0fa='',txn:txn=null}=_0x10534b(_0x298a5c);if(!_0x2eec03)throw _0x1dded5(_0x57fd53(0x238),'a\x20non-empty\x20string',_0x2eec03);if(!_0x357b87)throw _0x1dded5('files.upload:\x20stream',_0x57fd53(0x8e7),_0x357b87);const _0x38ae74=await _0x51c744(_0x357b87);if(txn){const _0xca365c=this['_n'](_0x57fd53(0x62f),[_0x2eec03,_0x38ae74,{'mime':mime,'path':_0x41e0fa}]);return txn[_0x57fd53(0x1dd)](_0x57fd53(0x7b8),_0x2eec03,_0xca365c['record']),txn[_0x57fd53(0x6f3)](()=>this['_n'](_0x57fd53(0x1f2),[_0xca365c[_0x57fd53(0x513)]])),txn[_0x57fd53(0x479)](()=>this['_n'](_0x57fd53(0x450),[_0xca365c[_0x57fd53(0x513)]])),_0xca365c[_0x57fd53(0x3c8)];}return this[_0x57fd53(0x82e)]['_settleWrite'](this['_n']('upload',[_0x2eec03,_0x38ae74,{'mime':mime,'path':_0x41e0fa}]));}[_0x7a4a52(0x292)](_0xbce992){const _0x2317c2=_0x7a4a52;return this['_n'](_0x2317c2(0x292),[_0xbce992],![])??null;}[_0x7a4a52(0x391)](_0x5f5338){const _0xd52e78=_0x7a4a52,_0x3fcf6e=this[_0xd52e78(0x4ae)](_0x5f5338);if(!_0xba7299[_0xd52e78(0x8b5)](_0x3fcf6e))throw Object['assign'](new Error(_0xd52e78(0x873)+_0x5f5338),{'status':0x194});return this['_blobStream'](_0x5f5338);}[_0x7a4a52(0x4d5)](_0x17ad4d){const _0x2a8795=0x100*0x400,_0x1e3879=this;let _0x469a22=0x0;return new _0x164efe({'highWaterMark':_0x2a8795,'read'(){const _0x14d616=_0x2fc2;let _0x27230c;try{const _0x1fee0=_0x1e3879['_n'](_0x14d616(0x70e),[_0x17ad4d,_0x469a22,_0x2a8795],![]);_0x27230c=Buffer[_0x14d616(0x605)](_0x1fee0)?_0x1fee0:Buffer['from'](_0x1fee0);}catch(_0x3dce12){this[_0x14d616(0x4ee)](_0x3dce12);return;}_0x469a22+=_0x27230c[_0x14d616(0x788)];if(_0x27230c[_0x14d616(0x788)])this[_0x14d616(0x27f)](_0x27230c);if(_0x27230c[_0x14d616(0x788)]<_0x2a8795)this[_0x14d616(0x27f)](null);}});}async[_0x7a4a52(0x69e)](_0x5d1757){const _0x16b0a2=_0x7a4a52;return this[_0x16b0a2(0x82e)][_0x16b0a2(0x1bf)](this['_n'](_0x16b0a2(0x69e),[_0x5d1757],![]));}async[_0x7a4a52(0x207)](_0x3964a1){const _0xe6acbc=_0x7a4a52,_0x4deb4d=this['get'](_0x3964a1);if(!_0x4deb4d)throw Object['assign'](new Error(_0xe6acbc(0x671)+_0x3964a1),{'status':0x194});const _0x5c46f=this['_blobPath'](_0x4deb4d[_0xe6acbc(0x819)]);if(!_0xba7299[_0xe6acbc(0x8b5)](_0x5c46f))throw Object[_0xe6acbc(0x7ac)](new Error(_0xe6acbc(0x37a)+_0x3964a1),{'status':0x194});return{'stream':this[_0xe6acbc(0x4d5)](_0x4deb4d['hash']),'record':_0x4deb4d};}async[_0x7a4a52(0x28d)](_0x3296ea,_0x410b42){const _0x80b919=_0x7a4a52,{txn:txn=null}=_0x10534b(_0x410b42);if(txn){const _0x1eac0c=this['_n'](_0x80b919(0x1d9),[_0x3296ea]);txn[_0x80b919(0x28d)]('~files',_0x3296ea),txn[_0x80b919(0x6f3)](()=>this['_n'](_0x80b919(0x1f2),[_0x1eac0c[_0x80b919(0x513)]])),txn[_0x80b919(0x479)](()=>this['_n'](_0x80b919(0x450),[_0x1eac0c[_0x80b919(0x513)]]));return;}return this['okdb'][_0x80b919(0x36f)](this['_n'](_0x80b919(0x28d),[_0x3296ea]));}async[_0x7a4a52(0x822)](_0x4d891b,_0x24e6aa={}){const _0x110840=_0x7a4a52;return this['_n'](_0x110840(0x822),[_0x4d891b,_0x24e6aa],![]);}[_0x7a4a52(0x413)](_0x20dbf9){const _0x5d2114=_0x7a4a52;return this['_n'](_0x5d2114(0x413),[_0x20dbf9],![]);}[_0x7a4a52(0x64d)](){const _0x25c04c=_0x7a4a52;return this['_n'](_0x25c04c(0x64d),[],![]);}[_0x7a4a52(0x22b)](_0x23ec8b){const _0x597fa5=_0x7a4a52,{minAgeMs:_0x5ea61c}=_0x10534b(_0x23ec8b);return this['_n'](_0x597fa5(0x22b),[_0x5ea61c??null]);}[_0x7a4a52(0x6ca)](_0x3cc0d2,_0x585e67){const _0x54c396=_0x7a4a52;if(typeof _0x585e67!==_0x54c396(0x484))throw new _0xb56b3f(_0x54c396(0x4af),'BAD_PARAM');const _0x7430d4=this['_n'](_0x54c396(0x6ca),[_0x3cc0d2,_0x585e67]);return()=>this['_n'](_0x54c396(0x61a),[_0x7430d4]);}async[_0x7a4a52(0x61e)](_0x3872e6){const _0x1119fa=_0x7a4a52;return _0x3872e6=_0x10534b(_0x3872e6),this['_n'](_0x1119fa(0x61e),[_0x3872e6]);}async['syncBlobs'](_0x320366){const _0x2dc436=_0x7a4a52,{peerIds:_0x2025eb}=_0x10534b(_0x320366);return this['_n'](_0x2dc436(0x52b),[_0x2025eb??null]);}[_0x7a4a52(0x4ae)](_0x20761d){const _0x164c09=_0x7a4a52;if(typeof _0x20761d!==_0x164c09(0x43c))return require$$4['join'](this[_0x164c09(0x202)],_0x20761d['slice'](0x0,0x2),_0x20761d['slice'](0x2));return this['_n'](_0x164c09(0x8ec),[_0x20761d],![]);}get[_0x7a4a52(0x202)](){return this['_n']('blobsDir',[],![]);}}return files={'OKDBFiles':_0x50e40c},files;}var engines,hasRequiredEngines;function requireEngines(){const _0x5ecc04=_0xef081e;if(hasRequiredEngines)return engines;hasRequiredEngines=0x1;const {OKDBError:_0x379114}=requireErrors(),_0xe9c821=requireBridge(),_0x335fc5=new Set([_0x5ecc04(0x418),'indexer',_0x5ecc04(0x3f5),_0x5ecc04(0x679)]),_0x4a651f=new Set([_0x5ecc04(0x4c2),_0x5ecc04(0x1f9),_0x5ecc04(0x3a7)]),_0x4321ce=['validate',_0x5ecc04(0x7be),_0x5ecc04(0x736),_0x5ecc04(0x86e),_0x5ecc04(0x210),_0x5ecc04(0x6bf),'uninstall'],_0x4e1c03={'embedder':new Set([_0x5ecc04(0x3a7),_0x5ecc04(0x70d)])},_0x180c37=new Set([_0x5ecc04(0x393),'processor','queue-worker']);class _0x368378{constructor(_0x3fb1c6,_0x55ae87,_0x2e4197,_0x334400){const _0x5a9b64=_0x5ecc04;this[_0x5a9b64(0x833)]=_0x3fb1c6,this[_0x5a9b64(0x59b)]=_0x55ae87,this['type']=_0x2e4197,this[_0x5a9b64(0x686)]=_0x334400,this[_0x5a9b64(0x35b)]=_0x2e4197;}[_0x5ecc04(0x481)](){const _0x25cf11=_0x5ecc04;return this['_facade']['_n'](_0x25cf11(0x1f9),[this[_0x25cf11(0x490)],this['name']],![]);}get['doc'](){const _0x2d0682=_0x5ecc04;return this[_0x2d0682(0x481)]()[_0x2d0682(0x3a0)];}get[_0x5ecc04(0x317)](){const _0x1a3a62=_0x5ecc04,_0x11ec96=this['_info']()[_0x1a3a62(0x514)];return _0x11ec96?this[_0x1a3a62(0x833)][_0x1a3a62(0x82e)][_0x1a3a62(0x75a)][_0x1a3a62(0x292)](_0x11ec96):undefined;}get[_0x5ecc04(0x841)](){const _0x2b7fb0=_0x5ecc04;return this[_0x2b7fb0(0x481)]()[_0x2b7fb0(0x841)];}get['enabled'](){return this['_info']()['enabled'];}get['isRunning'](){const _0x3bc9bb=_0x5ecc04;return this[_0x3bc9bb(0x481)]()['isRunning'];}get[_0x5ecc04(0x442)](){const _0x377f63=_0x5ecc04;return this[_0x377f63(0x481)]()[_0x377f63(0x442)];}get['reason'](){const _0x163f2b=_0x5ecc04;return this[_0x163f2b(0x481)]()[_0x163f2b(0x2d1)];}get['lastError'](){const _0x4be6d=_0x5ecc04,_0x280829=this['_info']()[_0x4be6d(0x414)];return _0x280829?Object[_0x4be6d(0x7ac)](new Error(_0x280829[_0x4be6d(0x485)]),{'code':_0x280829['code']}):null;}get[_0x5ecc04(0x6b3)](){const _0x49dd04=_0x5ecc04;return this[_0x49dd04(0x481)]()['runtimeState'];}get[_0x5ecc04(0x885)](){const _0x4a045f=_0x5ecc04;return this[_0x4a045f(0x833)][_0x4a045f(0x582)]['get'](this['type'])??null;}get[_0x5ecc04(0x276)](){const _0x3279d0=_0x5ecc04;if(!this[_0x3279d0(0x481)]()[_0x3279d0(0x5fb)])return null;const _0x4a16cd=this;return new Proxy({},{'get'(_0x12bbe7,_0x16a67a){const _0x339820=_0x3279d0;if(typeof _0x16a67a===_0x339820(0x3e0)||_0x16a67a===_0x339820(0x458))return undefined;if(_0x4e1c03[_0x4a16cd['type']]&&_0x4e1c03[_0x4a16cd[_0x339820(0x490)]][_0x339820(0x396)](_0x16a67a))return _0x4a16cd['_facade']['_n'](_0x339820(0x478),[_0x4a16cd[_0x339820(0x490)],_0x4a16cd[_0x339820(0x686)],_0x16a67a,[]],![])[_0x339820(0x744)];if(_0x4a16cd[_0x339820(0x490)]===_0x339820(0x76c)&&_0x16a67a===_0x339820(0x26a))return async(_0x10c622={})=>{const _0x30ee17=_0x339820,_0x495250=(_0x533e4c,..._0x4afc21)=>_0x4a16cd[_0x30ee17(0x833)]['_n'](_0x30ee17(0x478),[_0x4a16cd[_0x30ee17(0x490)],_0x4a16cd[_0x30ee17(0x686)],_0x533e4c,_0x4afc21],!![])[_0x30ee17(0x744)],_0x356558=_0x495250(_0x30ee17(0x431),_0x10c622??{}),_0x209d7d=Date[_0x30ee17(0x3d4)]();for(;;){const _0x825cb3=await _0x4a16cd[_0x30ee17(0x833)][_0x30ee17(0x82e)][_0x30ee17(0x3d3)](()=>_0x495250(_0x30ee17(0x6ba)));if(_0x825cb3[_0x30ee17(0x8e1)]>=_0x825cb3['head'])return;Date[_0x30ee17(0x3d4)]()-_0x209d7d>=_0x356558&&_0x495250(_0x30ee17(0x617),_0x10c622??{},_0x825cb3),await new Promise(_0x1822ca=>setTimeout(_0x1822ca,0x3));}};return(..._0xf2ee10)=>{const _0x207187=_0x339820,_0x44d141=()=>_0x4a16cd[_0x207187(0x833)]['_n']('apiCall',[_0x4a16cd[_0x207187(0x490)],_0x4a16cd[_0x207187(0x686)],_0x16a67a,_0xf2ee10],!![]),_0x3f3109=_0xe91c7f=>{const _0x295e95=_0x207187;if(_0xe91c7f&&_0xe91c7f[_0x295e95(0x795)])throw new TypeError(_0x295e95(0x730)+_0x16a67a+'\x27');return _0xe91c7f['value'];};if(_0x335fc5[_0x207187(0x396)](_0x4a16cd[_0x207187(0x490)])&&!_0x4a651f[_0x207187(0x396)](_0x16a67a)){const _0x82bfc3=_0x4a16cd[_0x207187(0x833)]['okdb'];return _0x82bfc3[_0x207187(0x674)](()=>_0x82bfc3[_0x207187(0x3d3)](_0x44d141))[_0x207187(0x458)](_0x3f3109);}if(_0x180c37[_0x207187(0x396)](_0x4a16cd[_0x207187(0x490)]))try{return Promise[_0x207187(0x1f3)](_0x3f3109(_0x44d141()));}catch(_0x47449c){return Promise[_0x207187(0x869)](_0x47449c);}return _0x3f3109(_0x44d141());};}});}async['load'](_0x150c70={}){const _0x4d3aa0=_0x5ecc04;return await this[_0x4d3aa0(0x833)][_0x4d3aa0(0x519)](_0x4d3aa0(0x64c),[this['type'],this[_0x4d3aa0(0x686)],_0x150c70]),this;}async['start'](){const _0x5084b2=_0x5ecc04;await this['_facade'][_0x5084b2(0x519)](_0x5084b2(0x3e5),[this[_0x5084b2(0x490)],this[_0x5084b2(0x686)]]);}async[_0x5ecc04(0x6bf)](_0x42b379={}){const _0x42cb08=_0x5ecc04;await this['_facade']['_nm'](_0x42cb08(0x8bd),[this[_0x42cb08(0x490)],this['name'],_0x42b379]);}async[_0x5ecc04(0x34a)](_0x287124={}){const _0x232114=_0x5ecc04;return await this[_0x232114(0x833)][_0x232114(0x519)]('patchDeclaration',[this[_0x232114(0x490)],this[_0x232114(0x686)],_0x287124]),this;}async[_0x5ecc04(0x71b)](){const _0x334631=_0x5ecc04;await this[_0x334631(0x833)]['_nm'](_0x334631(0x8cc),[this[_0x334631(0x490)],this['name']]);}}class _0x42c456{constructor(_0x1faa91,_0x19bd67=null,_0x1dff74=null){const _0x26adac=_0x5ecc04;this['okdb']=_0x1faa91,this[_0x26adac(0x849)]=_0x19bd67,this[_0x26adac(0x4c6)]=_0x19bd67===null,this[_0x26adac(0x7f1)]=_0x1dff74||this,this[_0x26adac(0x582)]=this[_0x26adac(0x7f1)]===this?_0x5f48bf(this):this[_0x26adac(0x7f1)]['drivers'],this[_0x26adac(0x828)]=new Map();}['_n'](_0x5c0f8b,_0x3b7cfd,_0x10b2d9=!![]){const _0x4f8da6=_0x5ecc04;return this['okdb'][_0x4f8da6(0x5a1)](_0x4f8da6(0x2af),this[_0x4f8da6(0x849)],_0x5c0f8b,_0x3b7cfd,_0x10b2d9);}[_0x5ecc04(0x519)](_0x483248,_0x4604a8){const _0x2a157e=_0x5ecc04;return this['okdb'][_0x2a157e(0x517)](_0x2a157e(0x2af),this[_0x2a157e(0x849)],_0x483248,_0x4604a8,!![]);}get[_0x5ecc04(0x4f8)](){const _0x4d8af6=_0x5ecc04;return this[_0x4d8af6(0x849)]?this[_0x4d8af6(0x82e)][_0x4d8af6(0x4f8)](this['envName']):null;}[_0x5ecc04(0x74c)](_0x252f38){const _0xa91f54=_0x5ecc04;if(!_0x252f38)return null;let _0x4c3880=this[_0xa91f54(0x828)][_0xa91f54(0x292)](_0x252f38[_0xa91f54(0x59b)]);return!_0x4c3880&&(_0x4c3880=new _0x368378(this,_0x252f38[_0xa91f54(0x59b)],_0x252f38[_0xa91f54(0x490)],_0x252f38[_0xa91f54(0x686)]),this[_0xa91f54(0x828)]['set'](_0x252f38[_0xa91f54(0x59b)],_0x4c3880)),_0x4c3880;}[_0x5ecc04(0x759)](_0x17bdcc,_0x27796e){const _0x341f85=_0x5ecc04;if(!_0x17bdcc||typeof _0x17bdcc!=='string')throw new _0x379114(_0x341f85(0x7d2),'ENGINE_INVALID_TYPE',{'type':_0x17bdcc});if(!_0x27796e||typeof _0x27796e!=='object')throw new _0x379114(_0x341f85(0x456)+_0x17bdcc+_0x341f85(0x6ef),'ENGINE_INVALID_DRIVER',{'type':_0x17bdcc});if(typeof _0x27796e[_0x341f85(0x77b)]!==_0x341f85(0x484))throw new _0x379114(_0x341f85(0x456)+_0x17bdcc+'\x22\x20must\x20have\x20a\x20start()\x20method',_0x341f85(0x56b),{'type':_0x17bdcc});const _0x1ef6a3=this[_0x341f85(0x7f1)];if(_0x1ef6a3[_0x341f85(0x582)][_0x341f85(0x396)](_0x17bdcc))throw new _0x379114(_0x341f85(0x62b)+_0x17bdcc+'\x22','ENGINE_DRIVER_ALREADY_REGISTERED',{'type':_0x17bdcc});const _0x5f0221=_0xe9c821[_0x341f85(0x792)](_0x27796e,this[_0x341f85(0x82e)]),_0x242445=_0x4321ce[_0x341f85(0x877)](_0x8afc8d=>typeof _0x27796e[_0x8afc8d]===_0x341f85(0x484)),_0x273c3a=_0x27796e[_0x341f85(0x65a)]&&typeof _0x27796e[_0x341f85(0x65a)]===_0x341f85(0x7f6)?_0x27796e[_0x341f85(0x65a)]:{};this[_0x341f85(0x82e)][_0x341f85(0x5a1)]('engines',null,'registerDriver',[_0x17bdcc,{'$id':_0x5f0221,'has':_0x242445,'docs':_0x273c3a}]),_0x1ef6a3['drivers'][_0x341f85(0x5a5)](_0x17bdcc,_0x27796e);}get[_0x5ecc04(0x66e)](){const _0x4f1367=_0x5ecc04;return this['okdb']['_call'](_0x4f1367(0x2af),null,_0x4f1367(0x2dc),[],![]);}get[_0x5ecc04(0x242)](){const _0x3d0718=this;return{get '_started'(){return _0x3d0718['_started'];}};}[_0x5ecc04(0x809)](_0x87abdc){const _0x572a3f=_0x5ecc04;if(!_0x87abdc||typeof _0x87abdc!==_0x572a3f(0x7f6))throw new _0x379114(_0x572a3f(0x2b0),_0x572a3f(0x7a6));if(!_0x87abdc['id']||typeof _0x87abdc['id']!==_0x572a3f(0x43c))throw new _0x379114(_0x572a3f(0x232),_0x572a3f(0x7a6));if(![_0x572a3f(0x2cc),_0x572a3f(0x5cd)][_0x572a3f(0x2a1)](_0x87abdc[_0x572a3f(0x7af)]))throw new _0x379114('Engine\x20template\x20kind\x20must\x20be\x20\x22engine\x22\x20or\x20\x22pipeline\x22:\x20'+_0x87abdc['id'],_0x572a3f(0x7a6));if(typeof _0x87abdc['build']!==_0x572a3f(0x484))throw new _0x379114(_0x572a3f(0x551)+_0x87abdc['id'],_0x572a3f(0x7a6));const _0x19cf1e=this[_0x572a3f(0x82e)],_0x1eb1bd=typeof _0x87abdc[_0x572a3f(0x440)]==='function';return this['_n'](_0x572a3f(0x809),[{'id':_0x87abdc['id'],'kind':_0x87abdc[_0x572a3f(0x7af)],'family':_0x87abdc[_0x572a3f(0x84f)]??null,'engineType':_0x87abdc[_0x572a3f(0x35b)]??null,'pipelineFamily':_0x87abdc[_0x572a3f(0x7ce)]??null,'recommended':_0x87abdc[_0x572a3f(0x7fe)]===!![],'summary':_0x87abdc['summary']??null,'description':_0x87abdc['description']??null,'inputSchema':_0x1eb1bd?null:_0x87abdc['inputSchema']??null,'inputSchemaFn':_0x1eb1bd?()=>_0x87abdc[_0x572a3f(0x440)](_0x19cf1e):null,'defaults':_0x87abdc[_0x572a3f(0x37e)]??null,'notes':Array[_0x572a3f(0x888)](_0x87abdc['notes'])?_0x87abdc[_0x572a3f(0x49b)]:[],'links':Array[_0x572a3f(0x888)](_0x87abdc[_0x572a3f(0x6ea)])?_0x87abdc[_0x572a3f(0x6ea)]:[],'build':(_0x62542f,_0x1e094b)=>_0x87abdc[_0x572a3f(0x1cd)](_0x62542f??{},{'okdb':_0x19cf1e,'envName':_0x1e094b??null})}],![]);}['listTemplates'](_0x38df8c){const _0x46fac4=_0x5ecc04;return this['_n'](_0x46fac4(0x591),[_0x38df8c??null],![]);}['getTemplate'](_0x63cca){const _0x2121c3=_0x5ecc04;return this['_n'](_0x2121c3(0x816),[_0x63cca],![]);}['previewTemplate'](_0x2150e2,_0x1d953a,_0x3f18b9){const _0x489a50=_0x5ecc04;return this['_n']('previewTemplate',[_0x2150e2,_0x1d953a,_0x3f18b9??this[_0x489a50(0x849)]],![]);}[_0x5ecc04(0x445)](){const _0x15a8cb=_0x5ecc04;return this['_n'](_0x15a8cb(0x445),[],![]);}async[_0x5ecc04(0x77b)](){const _0x2f388a=_0x5ecc04;return this[_0x2f388a(0x519)](_0x2f388a(0x77b),[]);}async[_0x5ecc04(0x6bf)](){const _0x43fdab=_0x5ecc04;return this['_nm'](_0x43fdab(0x6bf),[]);}async['createEngine'](_0x466bdd,_0x3d4d95,_0x38fa5b={},_0x3ee13c={},_0x2f3836={}){const _0x487dfe=_0x5ecc04;return this[_0x487dfe(0x74c)](await this[_0x487dfe(0x519)](_0x487dfe(0x4b9),[_0x466bdd,_0x3d4d95,_0x38fa5b,_0x3ee13c,_0x2f3836]));}async[_0x5ecc04(0x4ac)](_0x19d50a,_0x3d9031,_0x568977={},_0x2e54f6={},_0x174323={}){const _0x277211=_0x5ecc04;return this[_0x277211(0x74c)](await this[_0x277211(0x519)](_0x277211(0x4ac),[_0x19d50a,_0x3d9031,_0x568977,_0x2e54f6,_0x174323]));}['getEngine'](_0xdc7817,_0x11579d){const _0x470ece=_0x5ecc04;return this[_0x470ece(0x74c)](this['_n'](_0x470ece(0x4ea),[_0xdc7817,_0x11579d],![]));}['getRunningEngine'](_0x44c08c,_0x184d0e){const _0x23dd04=_0x5ecc04;return this[_0x23dd04(0x74c)](this['_n'](_0x23dd04(0x821),[_0x44c08c,_0x184d0e],![]));}['list'](_0x626cd1){const _0x2d845a=_0x5ecc04;return this['_n'](_0x2d845a(0x328),[_0x626cd1??null],![])[_0x2d845a(0x642)](_0x1cde67=>this[_0x2d845a(0x74c)](_0x1cde67));}async['restart'](_0x3dccd5,_0x4b7672){const _0x1245cd=_0x5ecc04;return this[_0x1245cd(0x74c)](await this['_nm'](_0x1245cd(0x7b2),[_0x3dccd5,_0x4b7672]));}async['uninstallEngine'](_0x41cd07,_0x8bb2b3){const _0x5bd468=_0x5ecc04;return this['_handles'][_0x5bd468(0x46b)](_0x41cd07+':'+_0x8bb2b3),this['_nm'](_0x5bd468(0x851),[_0x41cd07,_0x8bb2b3]);}async[_0x5ecc04(0x5da)](_0x148501){const _0x40c2f0=_0x5ecc04;return this[_0x40c2f0(0x519)]('startNewEnginesFromSync',[_0x148501]);}async[_0x5ecc04(0x564)](){const _0x2cbd04=_0x5ecc04;return this[_0x2cbd04(0x519)](_0x2cbd04(0x564),[]);}}function _0x5f48bf(_0x4f84f2){const _0x3a4900=_0x5ecc04,_0x41cbef=new Map();return{'has':_0x540dde=>_0x41cbef[_0x3a4900(0x396)](_0x540dde)||_0x4f84f2[_0x3a4900(0x82e)][_0x3a4900(0x5a1)](_0x3a4900(0x2af),null,_0x3a4900(0x5cc),[_0x540dde],![]),'get':_0x1fcad5=>_0x41cbef[_0x3a4900(0x292)](_0x1fcad5),'set':()=>{const _0x5f1b28=_0x3a4900;throw new _0x379114(_0x5f1b28(0x4d0),_0x5f1b28(0x290));},'_set':(_0x340029,_0x106635)=>_0x41cbef[_0x3a4900(0x204)](_0x340029,_0x106635),'keys':()=>_0x41cbef[_0x3a4900(0x607)](),'entries':()=>_0x41cbef['entries'](),'values':()=>_0x41cbef[_0x3a4900(0x42a)](),get 'size'(){const _0x28d9fd=_0x3a4900;return _0x41cbef[_0x28d9fd(0x4ff)];},[Symbol[_0x3a4900(0x6a7)]]:()=>_0x41cbef[Symbol[_0x3a4900(0x6a7)]]()};}class _0x202e57{constructor(_0x414fad,_0x37aec6=null){this['okdb']=_0x414fad,this['envName']=_0x37aec6;}['_n'](_0x4a08b4,_0x1ffd6d,_0x29dca1=!![]){const _0x237e84=_0x5ecc04;return this['okdb'][_0x237e84(0x5a1)](_0x237e84(0x4d2),this['envName'],_0x4a08b4,_0x1ffd6d,_0x29dca1);}[_0x5ecc04(0x519)](_0x40a95e,_0x2a3440){const _0x3b90b1=_0x5ecc04;return this[_0x3b90b1(0x82e)][_0x3b90b1(0x517)](_0x3b90b1(0x4d2),this[_0x3b90b1(0x849)],_0x40a95e,_0x2a3440,!![]);}get[_0x5ecc04(0x6f1)](){const _0x1a25cf=_0x5ecc04;return this[_0x1a25cf(0x849)]===null;}async[_0x5ecc04(0x50d)](_0x5af2d4){const _0x93e6=_0x5ecc04;return this['_n'](_0x93e6(0x50d),[_0x5af2d4]);}async['get'](_0x5c05dd,_0x2f746f){const _0x5457bc=_0x5ecc04;return this['_n'](_0x5457bc(0x292),[_0x5c05dd,_0x2f746f??null],![]);}async[_0x5ecc04(0x33b)](_0x3a42f9,_0xcbd2b6){const _0x5c8f9d=_0x5ecc04;return this['_n'](_0x5c8f9d(0x33b),[_0x3a42f9,_0xcbd2b6??null],![]);}async['list'](_0x12c570){const _0x35051f=_0x5ecc04;return this['_n'](_0x35051f(0x328),[_0x12c570??null],![]);}async[_0x5ecc04(0x483)](_0x1586b8={}){const _0xe057=_0x5ecc04;return this['_n'](_0xe057(0x483),[_0x1586b8?.[_0xe057(0x849)]??null],![]);}['validate'](_0x130493,_0x5b5129){const _0x55106c=_0x5ecc04;return this['_n'](_0x55106c(0x5a0),[_0x130493,_0x5b5129??null],![]);}async[_0x5ecc04(0x1c2)](_0x3d3392){const _0x215013=_0x5ecc04;return this[_0x215013(0x519)](_0x215013(0x1c2),[_0x3d3392]);}async[_0x5ecc04(0x739)](_0x27d081,_0x27b356){const _0x322510=_0x5ecc04;return this[_0x322510(0x519)](_0x322510(0x739),[_0x27d081,_0x27b356]);}async[_0x5ecc04(0x6bf)](_0x180b03){return this['_nm']('stop',[_0x180b03]);}async[_0x5ecc04(0x2a4)](_0xd19311){const _0x3a6436=_0x5ecc04;if(!_0xd19311||typeof _0xd19311!==_0x3a6436(0x7f6)||!_0xd19311[_0x3a6436(0x686)]||!_0xd19311[_0x3a6436(0x2af)])return _0xd19311;for(let _0xe6bb2f=0x0;_0xe6bb2f<0x3;_0xe6bb2f++)await new Promise(_0x5e89ed=>setImmediate(_0x5e89ed));try{const _0x5828c4=this[_0x3a6436(0x849)]!==null?await this['get'](_0xd19311[_0x3a6436(0x686)]):_0xd19311['env']?await this['get'](_0xd19311[_0x3a6436(0x4f8)],_0xd19311[_0x3a6436(0x686)]):null;return _0x5828c4||_0xd19311;}catch{return _0xd19311;}}async[_0x5ecc04(0x77b)](_0x50ba35){const _0x44a08f=_0x5ecc04;return this['_settled'](await this[_0x44a08f(0x519)](_0x44a08f(0x77b),[_0x50ba35]));}async['restart'](_0x5039c8){const _0x3184f0=_0x5ecc04;return this[_0x3184f0(0x2a4)](await this[_0x3184f0(0x519)]('restart',[_0x5039c8]));}async[_0x5ecc04(0x774)](_0xde665c){const _0x2feb11=_0x5ecc04;return this[_0x2feb11(0x519)](_0x2feb11(0x774),[_0xde665c]);}async[_0x5ecc04(0x47d)](_0x322416,_0x1e41ba,_0x2e9ac2){const _0x1555c2=_0x5ecc04;return this[_0x1555c2(0x519)](_0x1555c2(0x47d),[_0x322416,_0x1e41ba,_0x2e9ac2]);}async['remove'](_0x2e168c){const _0x3dbe4d=_0x5ecc04;return this[_0x3dbe4d(0x519)](_0x3dbe4d(0x28d),[_0x2e168c]);}async[_0x5ecc04(0x261)](){const _0x467a52=_0x5ecc04;return this['_nm'](_0x467a52(0x261),[]);}async['bootSyncedPipelines'](){const _0x37ae6b=_0x5ecc04;return this[_0x37ae6b(0x519)](_0x37ae6b(0x34c),[]);}[_0x5ecc04(0x7cb)](_0x1d6875,_0x569b35){return this['_n']('findOwner',[_0x1d6875,_0x569b35],![]);}}return engines={'OKDBEngines':_0x42c456,'OKDBPipelines':_0x202e57,'OKDBEngineHandle':_0x368378},engines;}var functions,hasRequiredFunctions;function requireFunctions(){const _0x3f97d1=_0xef081e;if(hasRequiredFunctions)return functions;hasRequiredFunctions=0x1;const {optionsArg:_0x5a4d92}=requireErrors(),_0x17a078=Number(process.env.OKDB_FN_POLL_MS)||0x14;class _0x516fa5{constructor(_0x30827f,_0x4ff8dc=null){const _0x2a89fe=_0x2fc2;this[_0x2a89fe(0x82e)]=_0x30827f,this[_0x2a89fe(0x849)]=_0x4ff8dc??'~system';}get[_0x3f97d1(0x4f8)](){const _0x337b82=_0x3f97d1;return this[_0x337b82(0x82e)][_0x337b82(0x75a)][_0x337b82(0x292)](this[_0x337b82(0x849)])??null;}['_n'](_0x590801,_0xe9d420=[],_0x39244f=!![]){const _0x2b4886=_0x3f97d1;try{return this[_0x2b4886(0x82e)][_0x2b4886(0x5a1)](_0x2b4886(0x1f1),this['envName'],_0x590801,_0xe9d420,_0x39244f);}catch(_0x1fd4dc){throw _0x2515a4(_0x1fd4dc);}}async[_0x3f97d1(0x519)](_0x27aa5e,_0x1b4ccd=[]){const _0xc673d3=_0x3f97d1;try{return await this[_0xc673d3(0x82e)][_0xc673d3(0x517)](_0xc673d3(0x1f1),this['envName'],_0x27aa5e,_0x1b4ccd,!![]);}catch(_0x3f4b65){throw _0x2515a4(_0x3f4b65);}}async[_0x3f97d1(0x328)](){return this['_n']('list',[],![]);}async[_0x3f97d1(0x292)](_0x51959c){const _0x51764a=_0x3f97d1;return this['_n'](_0x51764a(0x292),[_0x51959c],![]);}async['create'](_0x6986a7){return this['_n']('create',[_0x6986a7]);}async[_0x3f97d1(0x739)](_0x46942a,_0xe8c451={}){const _0x5f0fb6=_0x3f97d1;return this['_n'](_0x5f0fb6(0x739),[_0x46942a,_0xe8c451]);}async[_0x3f97d1(0x28d)](_0x11e20a){return this['_n']('remove',[_0x11e20a]);}async[_0x3f97d1(0x4b4)](_0x259df2){const {functionName:functionName=null}=_0x5a4d92(_0x259df2);return this['_n']('listRuns',[{'functionName':functionName}],![]);}async[_0x3f97d1(0x75f)](_0x5e4e52){const _0x2f3713=_0x3f97d1;return this['_n'](_0x2f3713(0x75f),[_0x5e4e52],![]);}async[_0x3f97d1(0x627)](_0x2c036c){const _0x145f87=_0x3f97d1;return _0x2c036c=_0x5a4d92(_0x2c036c,_0x145f87(0x2be)),this['_n']('recordRun',[_0x2c036c]);}async[_0x3f97d1(0x2be)](_0x4b5ee1,_0x4261cf=null,_0x5377c1={}){const _0x486135=_0x3f97d1,_0x35e6c7={..._0x5377c1},_0x5400bb=_0x35e6c7['signal'];if(_0x5400bb)_0x35e6c7[_0x486135(0x3ad)]=!!_0x5400bb[_0x486135(0x3ad)];delete _0x35e6c7[_0x486135(0x79c)];const _0xf4b1ca=await this[_0x486135(0x519)]('runStart',[_0x4b5ee1,_0x4261cf,_0x35e6c7]),_0x1a53a5=this[_0x486135(0x82e)],_0x40932e=()=>_0x1a53a5['_pumper']['wake']();if(_0x5400bb&&typeof _0x5400bb[_0x486135(0x4ed)]===_0x486135(0x484))_0x5400bb[_0x486135(0x4ed)](_0x486135(0x29f),_0x40932e,{'once':!![]});let _0x1365d2=![];try{for(;;){const _0x5a2929=_0x1a53a5[_0x486135(0x82c)][_0x486135(0x7eb)](_0x17a078);let _0x565bd5;try{_0x565bd5=await _0x1a53a5['_callMacro']('functions',this[_0x486135(0x849)],_0x486135(0x40c),[_0xf4b1ca,!!_0x5400bb?.[_0x486135(0x3ad)]],![],![]);}catch(_0x3bb83d){_0x1365d2=!![];throw _0x2515a4(_0x3bb83d);}if(!_0x565bd5||_0x565bd5['$pending']!==!![])return _0x1365d2=!![],_0x1a53a5[_0x486135(0x82c)]['wake'](),_0x565bd5;if(_0x565bd5[_0x486135(0x63f)])_0x1a53a5[_0x486135(0x82c)][_0x486135(0x2ca)]();await _0x5a2929;}}finally{if(_0x5400bb&&typeof _0x5400bb[_0x486135(0x689)]===_0x486135(0x484))_0x5400bb[_0x486135(0x689)]('abort',_0x40932e);if(!_0x1365d2)try{_0x1a53a5[_0x486135(0x5a1)](_0x486135(0x1f1),this[_0x486135(0x849)],_0x486135(0x53f),[_0xf4b1ca],![]);}catch{}}}async[_0x3f97d1(0x3df)](_0x80a5dd={},_0x55bef9=null,_0x314dc2={}){const _0x469cc4=_0x3f97d1;return this['_nm'](_0x469cc4(0x3df),[_0x80a5dd,_0x55bef9,_0x314dc2]);}async[_0x3f97d1(0x6bf)](){}}function _0x2515a4(_0x1a2af5){const _0x4cfeb2=_0x3f97d1;if(_0x1a2af5&&_0x1a2af5['details']&&_0x1a2af5['details'][_0x4cfeb2(0x8dd)])_0x1a2af5[_0x4cfeb2(0x566)]=_0x1a2af5['details']['runRecord'];return _0x1a2af5;}return functions={'OKDBFunctions':_0x516fa5},functions;}var processor={'exports':{}},lock,hasRequiredLock;function requireLock(){const _0x45d8b7=_0xef081e;if(hasRequiredLock)return lock;hasRequiredLock=0x1;const {optionsArg:_0x4123ab}=requireErrors();class _0x37ccf9{constructor(_0x2168a4,_0x54d2d4){const _0x5f11f4=_0x2fc2;this[_0x5f11f4(0x887)]=_0x2168a4,this[_0x5f11f4(0x347)]=_0x54d2d4;}['_n'](_0x24bba1,_0x34839f=[]){const _0x278408=_0x2fc2;return this['_lock']['_n'](_0x24bba1,[this[_0x278408(0x347)],..._0x34839f]);}[_0x45d8b7(0x4b6)](){return this['_n']('isHeld');}get[_0x45d8b7(0x79a)](){return this['_n']('acquiredAt');}[_0x45d8b7(0x52a)](){return this['_n']('holder');}['extend'](_0x188e21){const _0x2abe55=_0x45d8b7;return this['_n'](_0x2abe55(0x2b9),[_0x188e21]);}async[_0x45d8b7(0x491)](){return this['_n']('release');}}class _0x231c76{constructor(_0x4be248,_0x5005c4,_0x5dfef7,_0x105678){const _0x59d525=_0x45d8b7,{ttlMs:ttlMs=0x7530,heartbeatMs:heartbeatMs=null}=_0x4123ab(_0x105678);this[_0x59d525(0x82e)]=_0x4be248,this[_0x59d525(0x535)]=_0x5dfef7,this[_0x59d525(0x347)]=_0x4be248[_0x59d525(0x5a1)](_0x59d525(0x47e),_0x5005c4,_0x59d525(0x6bb),[_0x5dfef7,ttlMs,heartbeatMs],![]),this[_0x59d525(0x3b1)]=_0x5005c4;}['_n'](_0x4e1e64,_0x1b5da8=[]){const _0x1cb13a=_0x45d8b7;return this[_0x1cb13a(0x82e)][_0x1cb13a(0x5a1)](_0x1cb13a(0x47e),this['_env'],_0x4e1e64,_0x1b5da8,![]);}[_0x45d8b7(0x306)](_0x1091fb){return this['_n']('key',[this['_id'],_0x1091fb]);}async[_0x45d8b7(0x7a9)](_0x264a9b,_0x2fa74e={},_0x5a8ddb={}){const _0x1ca7e0=_0x45d8b7,_0x4fa006=this['_n']('tryAcquire',[this['_id'],_0x264a9b,_0x2fa74e,_0x5a8ddb]);return{'acquired':_0x4fa006[_0x1ca7e0(0x831)],'handle':_0x4fa006['handle']==null?null:new _0x37ccf9(this,_0x4fa006[_0x1ca7e0(0x336)]),'current':_0x4fa006[_0x1ca7e0(0x776)]};}[_0x45d8b7(0x619)](_0x346523){const _0x432fc8=_0x45d8b7;return this['_n'](_0x432fc8(0x619),[this[_0x432fc8(0x347)],_0x346523]);}[_0x45d8b7(0x328)](){const _0x279dd4=_0x45d8b7;return this['_n'](_0x279dd4(0x328),[this['_id']]);}[_0x45d8b7(0x51c)](_0x109807){const _0x66446=_0x45d8b7;return this['_n']('signalWant',[this[_0x66446(0x347)],_0x109807]);}[_0x45d8b7(0x883)](_0xd7481b,_0x192fe8=0x3e8){const _0x497f1d=_0x45d8b7;return this['_n'](_0x497f1d(0x883),[this[_0x497f1d(0x347)],_0xd7481b,_0x192fe8]);}}return lock={'NativeLock':_0x231c76,'NativeLockHandle':_0x37ccf9},lock;}var hasRequiredProcessor;function requireProcessor(){const _0xa30e61=_0xef081e;if(hasRequiredProcessor)return processor[_0xa30e61(0x57d)];hasRequiredProcessor=0x1;const _0x22650c=requireBridge(),{RawDb:_0x7cc5d0}=requireRawdb(),{NativeLock:_0x5091f2}=requireLock();function _0x39cef6(_0x19f7bc){}class _0x3f5dc3{constructor(_0x45926e){const _0xa51375=_0xa30e61;this[_0xa51375(0x4f8)]=_0x45926e,this[_0xa51375(0x82e)]=_0x45926e;try{this['_n'](_0xa51375(0x6ce),[(_0x4f2ac6,_0x56221f)=>{const _0x12887e=_0xa51375,_0x4e6eb1=this[_0x12887e(0x82e)]['log'],_0x3656d5=_0x4e6eb1?.[_0x4f2ac6]??_0x4e6eb1?.[_0x12887e(0x1f9)];if(typeof _0x3656d5===_0x12887e(0x484))_0x3656d5[_0x12887e(0x62a)](_0x4e6eb1,_0x56221f);}],![]);}catch{}}['_n'](_0x1d1ec3,_0x454c05,_0x89d018=!![]){const _0x1bc951=_0xa30e61;return this['env'][_0x1bc951(0x82e)]['_call'](_0x1bc951(0x8a8),this[_0x1bc951(0x4f8)][_0x1bc951(0x686)],_0x1d1ec3,_0x454c05,_0x89d018);}['register'](_0x562dd3,_0x143bce={}){const _0x1fe3c0=_0xa30e61,_0x5750e7={..._0x143bce};if(typeof _0x5750e7[_0x1fe3c0(0x4cc)]==='function'&&_0x5750e7[_0x1fe3c0(0x796)]!=null)throw new Error(_0x1fe3c0(0x74a)+'Use\x20module:{path,export}\x20alone,\x20or\x20handler:\x27<name>\x27\x20for\x20a\x20built-in.');if(typeof _0x5750e7['handler']==='string'&&_0x5750e7[_0x1fe3c0(0x796)]!=null)throw new Error(_0x1fe3c0(0x352));if(_0x5750e7[_0x1fe3c0(0x796)]!=null){if(!_0x5750e7['module'][_0x1fe3c0(0x844)])throw new Error('processor:\x20module.path\x20is\x20required');const _0x491cca=_0x5750e7[_0x1fe3c0(0x796)][_0x1fe3c0(0x701)]??_0x5750e7[_0x1fe3c0(0x796)][_0x1fe3c0(0x398)]??_0x1fe3c0(0x4da),_0x3afc79=require['resolve'](_0x5750e7[_0x1fe3c0(0x796)][_0x1fe3c0(0x844)]),_0x168f6a=require(_0x3afc79),_0x395b1c=_0x168f6a[_0x491cca]??_0x168f6a['default']??_0x168f6a;if(typeof _0x395b1c!==_0x1fe3c0(0x484))throw new Error(_0x1fe3c0(0x46c)+_0x5750e7[_0x1fe3c0(0x796)][_0x1fe3c0(0x844)]+_0x1fe3c0(0x3e6)+_0x491cca+_0x1fe3c0(0x466));this[_0x1fe3c0(0x4f8)][_0x1fe3c0(0x82e)][_0x1fe3c0(0x72b)](_0x1fe3c0(0x8a8),_0x1fe3c0(0x29c),[_0x3afc79,_0x491cca,_0x395b1c]),_0x5750e7[_0x1fe3c0(0x796)]={'path':_0x3afc79,'export':_0x491cca};}if(_0x5750e7[_0x1fe3c0(0x214)]!=null){if(typeof _0x5750e7[_0x1fe3c0(0x214)]['module']!=='string')throw new Error(_0x1fe3c0(0x7da));const _0x32657a=require[_0x1fe3c0(0x1f3)](_0x5750e7[_0x1fe3c0(0x214)]['module']),_0x5d7494=require(_0x32657a),_0x135217=_0x5750e7[_0x1fe3c0(0x214)][_0x1fe3c0(0x398)],_0x365a30=_0x135217?_0x5d7494[_0x135217]:_0x5d7494[_0x1fe3c0(0x6ab)]??_0x5d7494;if(typeof _0x365a30===_0x1fe3c0(0x484)){const _0x116e54=_0x135217?_0x5750e7[_0x1fe3c0(0x214)][_0x1fe3c0(0x796)]+'#'+_0x135217:_0x5750e7[_0x1fe3c0(0x214)][_0x1fe3c0(0x796)];this[_0x1fe3c0(0x4f8)][_0x1fe3c0(0x82e)]['_staticCall'](_0x1fe3c0(0x8a8),'registerQuantum',[_0x116e54,_0x365a30]);}_0x5750e7[_0x1fe3c0(0x214)]={..._0x5750e7[_0x1fe3c0(0x214)]};}_0x5750e7[_0x1fe3c0(0x554)]!=null&&typeof _0x5750e7[_0x1fe3c0(0x554)]===_0x1fe3c0(0x7f6)&&(_0x5750e7[_0x1fe3c0(0x554)]={'$payload':_0x22650c[_0x1fe3c0(0x2d8)](_0x5750e7[_0x1fe3c0(0x554)],this[_0x1fe3c0(0x4f8)][_0x1fe3c0(0x82e)])});if(_0x5750e7[_0x1fe3c0(0x774)]!=null&&typeof _0x5750e7['rebuild']!==_0x1fe3c0(0x484))throw new Error(_0x1fe3c0(0x316));const _0x59879e=this['_n'](_0x1fe3c0(0x594),[_0x562dd3??null,_0x5750e7]);return this['_stopFor'](_0x59879e['id'],_0x59879e[_0x1fe3c0(0x7c8)]);}[_0xa30e61(0x2df)](_0x4ce03b,_0x5dd7fa){const _0x1417a4=_0xa30e61,_0x36fb63=this,_0x332efb=async()=>{const _0x1b4254=_0x2fc2;_0x36fb63['_n'](_0x1b4254(0x2a8),[_0x4ce03b]);};return _0x332efb['id']=_0x4ce03b,_0x332efb['cursorKey']=_0x5dd7fa,_0x332efb['durableClock']=()=>_0x5dd7fa?_0x36fb63['_n']('handleDurableClock',[_0x4ce03b],![]):0x0,_0x332efb[_0x1417a4(0x442)]=()=>_0x36fb63[_0x1417a4(0x292)](_0x4ce03b),_0x332efb[_0x1417a4(0x1d2)]=_0x332efb[_0x1417a4(0x442)],_0x332efb[_0x1417a4(0x412)]=()=>_0x36fb63[_0x1417a4(0x412)](_0x4ce03b),_0x332efb[_0x1417a4(0x5e2)]=()=>_0x36fb63[_0x1417a4(0x5e2)](_0x4ce03b),_0x332efb[_0x1417a4(0x6ee)]=()=>_0x36fb63[_0x1417a4(0x6ee)](_0x4ce03b),_0x332efb[_0x1417a4(0x800)]=()=>_0x36fb63[_0x1417a4(0x800)](_0x4ce03b),_0x332efb['awaitIdle']=_0x39e7ae=>_0x36fb63[_0x1417a4(0x7e7)](_0x4ce03b,_0x39e7ae),_0x332efb;}get['_stops'](){const _0x293054=_0xa30e61;try{return this['_n'](_0x293054(0x328),[],![])[_0x293054(0x642)](_0x2adae6=>({'id':_0x2adae6['id']}));}catch{return[];}}async['pauseAllAndDrain'](_0x4535f2){const _0x466f7c=_0xa30e61;return new Set(this['_n'](_0x466f7c(0x7c1),[]));}[_0xa30e61(0x6d8)](_0x2646d4){const _0x36eef5=_0xa30e61;return this['_n'](_0x36eef5(0x6d8),[[..._0x2646d4??[]]]);}get[_0xa30e61(0x35d)](){const _0x343aae=_0xa30e61;return new Set(this['_n'](_0x343aae(0x328),[],![])[_0x343aae(0x877)](_0x18df30=>_0x18df30[_0x343aae(0x490)]==null)['map'](_0x353f87=>_0x353f87['id']));}['_ensureDbs'](){}get['_lock'](){const _0x496265=_0xa30e61;if(!this[_0x496265(0x540)]){const _0x1571f3=new _0x5091f2(this[_0x496265(0x4f8)][_0x496265(0x82e)],this[_0x496265(0x4f8)][_0x496265(0x686)],'proc'),_0x2f635e=this['env'];_0x1571f3['_db']=()=>new _0x7cc5d0(_0x2f635e,_0x496265(0x545)),this[_0x496265(0x540)]=_0x1571f3;}return this[_0x496265(0x540)];}[_0xa30e61(0x861)](_0x383c04,_0xa54e23){const _0x77f141=_0xa30e61;return this['_n'](_0x77f141(0x76a),[typeof _0x383c04===_0x77f141(0x43c)?_0x383c04:_0x383c04['id'],_0xa54e23?.['message']??String(_0xa54e23??'')]);}get[_0xa30e61(0x42b)](){const _0x15a6b5=_0xa30e61;return this[_0x15a6b5(0x8d8)]||(this['__stateDb']=new _0x7cc5d0(this[_0x15a6b5(0x4f8)],_0x15a6b5(0x1c4)));}get[_0xa30e61(0x40b)](){const _0x3e02b0=_0xa30e61,_0x367c8d=this,_0x483e0d=_0xfd2d9a=>{const _0x552048=_0x2fc2,_0x7c9245=()=>_0x367c8d['_n'](_0x552048(0x6ad),[_0xfd2d9a],![]);if(!_0x7c9245())return undefined;const _0x31a060=_0xb9022=>()=>_0x7c9245()?.[_0xb9022],_0x5f1a52={'id':_0xfd2d9a},_0x4b6b0a=(_0x1c3730,_0x849b2,_0x2a232a)=>Object[_0x552048(0x43a)](_0x5f1a52,_0x1c3730,{'get':_0x849b2,'set':_0x2a232a,'enumerable':!![],'configurable':!![]});return _0x4b6b0a(_0x552048(0x480),_0x31a060(_0x552048(0x480))),_0x4b6b0a(_0x552048(0x8d6),_0x31a060(_0x552048(0x8d6))),_0x4b6b0a('paused',_0x31a060(_0x552048(0x283))),_0x4b6b0a(_0x552048(0x3fd),_0x31a060(_0x552048(0x3fd)),_0x2c289c=>_0x367c8d['_n']('setLastClock',[_0xfd2d9a,_0x2c289c])),_0x4b6b0a(_0x552048(0x7c8),_0x31a060(_0x552048(0x7c8))),_0x4b6b0a(_0x552048(0x2f4),_0x31a060('claimGated'),_0x34192e=>_0x367c8d['_n'](_0x552048(0x5e5),[_0xfd2d9a,!!_0x34192e])),_0x4b6b0a(_0x552048(0x3db),_0x31a060('handlerName')),_0x4b6b0a('flushQuantum',_0x31a060(_0x552048(0x288))),_0x4b6b0a(_0x552048(0x43f),_0x31a060(_0x552048(0x43f))),_0x4b6b0a(_0x552048(0x3dc),_0x31a060(_0x552048(0x5e6)),_0x474306=>_0x367c8d['_n']('setModeApplied',[_0xfd2d9a,_0x474306])),_0x4b6b0a(_0x552048(0x5c3),()=>_0x367c8d[_0x552048(0x292)](_0xfd2d9a)?.['meta']),_0x4b6b0a(_0x552048(0x732),()=>_0x7c9245()?.['lockHeld']?{'isHeld':()=>!!_0x7c9245()?.[_0x552048(0x837)]}:null),_0x4b6b0a(_0x552048(0x32a),()=>_0x7c9245()?.['pokeHandler']?()=>{}:null),_0x4b6b0a(_0x552048(0x8ae),()=>_0x7c9245()?.['intervalTimer']?{}:null),_0x4b6b0a(_0x552048(0x268),()=>_0x7c9245()?.[_0x552048(0x40f)]?{}:null),_0x5f1a52;},_0x510fd2=()=>_0x367c8d['_n'](_0x3e02b0(0x328),[],![])[_0x3e02b0(0x642)](_0x27586b=>_0x27586b['id']);return{'get':_0x57be42=>_0x483e0d(_0x57be42),'has':_0x59ff4a=>_0x510fd2()['includes'](_0x59ff4a),get 'size'(){return _0x510fd2()['length'];},'keys':()=>_0x510fd2()[Symbol[_0x3e02b0(0x6a7)]](),'values':()=>_0x510fd2()[_0x3e02b0(0x642)](_0x483e0d)[Symbol[_0x3e02b0(0x6a7)]](),'entries':()=>_0x510fd2()[_0x3e02b0(0x642)](_0x29364d=>[_0x29364d,_0x483e0d(_0x29364d)])[Symbol[_0x3e02b0(0x6a7)]](),[Symbol[_0x3e02b0(0x6a7)]]:()=>_0x510fd2()[_0x3e02b0(0x642)](_0x1d6c0b=>[_0x1d6c0b,_0x483e0d(_0x1d6c0b)])[Symbol['iterator']](),'forEach':_0x13f5da=>_0x510fd2()[_0x3e02b0(0x8de)](_0x508db7=>_0x13f5da(_0x483e0d(_0x508db7),_0x508db7))};}async[_0xa30e61(0x261)](){const _0xcd4b48=_0xa30e61;return this['_n'](_0xcd4b48(0x261),[]);}['list'](){const _0xcd4c7e=_0xa30e61,_0x4825ae=this['_n'](_0xcd4c7e(0x328),[],![]);if(!this[_0xcd4c7e(0x4f8)]['name']['startsWith']('~'))try{const _0x5d5010=this[_0xcd4c7e(0x4f8)][_0xcd4c7e(0x82e)][_0xcd4c7e(0x5c3)];for(const _0x1e349c of _0x5d5010[_0xcd4c7e(0x416)](this[_0xcd4c7e(0x4f8)]['name'])){for(const _0x40a78f of _0x5d5010[_0xcd4c7e(0x59e)](_0x1e349c,this['env'][_0xcd4c7e(0x686)])){const _0x25ddcf=_0xcd4c7e(0x6c5)+_0x1e349c+':'+_0x40a78f;_0x4825ae[_0xcd4c7e(0x27f)]({'id':_0x25ddcf,'type':_0x1e349c,'mode':_0xcd4c7e(0x8e9),'state':_0xcd4c7e(0x475),'paused':![],'lag':0x0,'cursorKey':_0x25ddcf,'meta':{'name':_0x25ddcf}});}}}catch{}return _0x4825ae;}[_0xa30e61(0x8c4)](){return this['_n']('tierList',[],![]);}[_0xa30e61(0x696)](){const _0x182950=_0xa30e61;return this['_n'](_0x182950(0x696),[],![]);}['durableCursorFloor'](){return this['_n']('durableCursorFloor',[],![]);}[_0xa30e61(0x292)](_0x559b49){const _0x5bdfba=_0xa30e61;return this['_n'](_0x5bdfba(0x292),[_0x559b49],![]);}[_0xa30e61(0x4a8)](_0xdab1a5){return this['get'](typeof _0xdab1a5==='string'?_0xdab1a5:_0xdab1a5['id']);}['getCursor'](_0x1e06d7){const _0x2483e3=_0xa30e61;return this['_n'](_0x2483e3(0x692),[_0x1e06d7],![]);}[_0xa30e61(0x6d2)](_0x19ffdc){const _0x28fb3b=_0xa30e61;return this['_n'](_0x28fb3b(0x6d2),[_0x19ffdc]);}[_0xa30e61(0x4cb)](_0x24ea0e){const _0x52003d=_0xa30e61;return this['_n'](_0x52003d(0x4cb),[_0x24ea0e]);}[_0xa30e61(0x741)](_0x2b34ad){const _0x1a7590=_0xa30e61;return this['_n'](_0x1a7590(0x741),[_0x2b34ad],![]);}['setCursor'](_0x53e0ff,_0x19a91a){const _0x45afda=_0xa30e61;return this['_n'](_0x45afda(0x698),[_0x53e0ff,_0x19a91a]);}async['awaitIdle'](_0x2e0912,_0x4567b1){const _0x38f34c=_0xa30e61;return this['_n'](_0x38f34c(0x7e7),[_0x2e0912,_0x4567b1??0x7530]);}['pause'](_0x460ffe){return this['_n']('pause',[_0x460ffe]);}['resume'](_0x2a6ad0){const _0x2755d8=_0xa30e61;return this['_n'](_0x2755d8(0x5e2),[_0x2a6ad0]);}async[_0xa30e61(0x506)](_0x46da1d){const _0x8d2cfa=_0xa30e61;return this['_n'](_0x8d2cfa(0x506),[_0x46da1d]);}[_0xa30e61(0x6ee)](_0x5f1e0a){return this['_n']('kick',[_0x5f1e0a]);}[_0xa30e61(0x800)](_0x2d7e70){const _0x351488=_0xa30e61;return this['_n'](_0x351488(0x800),[_0x2d7e70]);}['restart'](_0x4dc5ed,_0x45b19d={}){const _0x2c6fbd=_0xa30e61;return this['_n'](_0x2c6fbd(0x7b2),[_0x4dc5ed,_0x45b19d]);}async[_0xa30e61(0x89b)](_0x19daaf,_0x5d33c0,_0x480122){const _0x5f050b=_0xa30e61,[_0x3b17c,_0x2022a8]=this['_n'](_0x5f050b(0x89b),[_0x19daaf,_0x5d33c0,_0x480122]);return{'version':_0x3b17c,'flipClock':_0x2022a8};}async['snapshotScan'](_0x1fed34,_0xa34d30,_0x28d5ef={}){const _0x5ddca2=_0xa30e61;return this['_n'](_0x5ddca2(0x652),[_0x1fed34,_0xa34d30,_0x28d5ef]);}}_0x3f5dc3[_0xa30e61(0x85d)]=function _0x568d19(_0x5f3d27,_0x3abe2b){const _0x68b28b=_0xa30e61;if(typeof _0x5f3d27!==_0x68b28b(0x43c)||!_0x5f3d27)throw new Error(_0x68b28b(0x3fc));if(typeof _0x3abe2b!=='function')throw new Error('registerHandler:\x20fn\x20must\x20be\x20a\x20function');_0x1df4f8(_0x68b28b(0x8a8),_0x68b28b(0x85d),[_0x5f3d27,_0x3abe2b]);},_0x3f5dc3[_0xa30e61(0x319)]=function _0x38139f(_0x358047,_0x398033){const _0x38717b=_0xa30e61;if(typeof _0x358047!=='string'||!_0x358047)throw new Error(_0x38717b(0x2ec));if(typeof _0x398033!==_0x38717b(0x484))throw new Error(_0x38717b(0x3b2));let _0x12134f=null;_0x1df4f8(_0x38717b(0x8a8),_0x38717b(0x319),[_0x358047,(_0x16b8e7,_0x534f18)=>{if(!_0x12134f)_0x12134f=_0x398033();return _0x12134f(_0x16b8e7,_0x534f18);}]);},_0x3f5dc3[_0xa30e61(0x6e0)]=_0x5456e0=>/closed|not open|released/i[_0xa30e61(0x87f)](String(_0x5456e0)),_0x3f5dc3[_0xa30e61(0x4a0)]=![];function _0x1df4f8(_0xf48dc4,_0x118677,_0xd69a1b){const {staticCall:_0x2783fa}=requireLib();return _0x2783fa(_0xf48dc4,_0x118677,_0xd69a1b);}return processor[_0xa30e61(0x57d)]=_0x3f5dc3,processor[_0xa30e61(0x57d)][_0xa30e61(0x802)]=_0x3f5dc3,processor['exports'][_0xa30e61(0x73e)]=_0x39cef6,processor['exports'];}var okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x7617b4=_0xef081e;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x46037e={'PUT':_0x7617b4(0x1dd),'REMOVE':'remove','INDEX_DROP':'dropIndex','INDEX_REGISTER':_0x7617b4(0x488),'INDEX_RESET':_0x7617b4(0x8ce),'TYPE_REGISTER':_0x7617b4(0x1ba),'TYPE_DROP':_0x7617b4(0x3bf),'FTS_REGISTER':_0x7617b4(0x78f),'FTS_DROP':'dropFts','FTS_RESET':'resetFts','SCHEMA_SET':_0x7617b4(0x63e),'SCHEMA_DROP':_0x7617b4(0x42d),'TTL_SET':_0x7617b4(0x3e8),'TTL_CLEAR':_0x7617b4(0x427)},_0x1cfaef={'SYSTEM_READY':_0x7617b4(0x4a2),'FIELD_RESOLVER_REGISTERED':_0x7617b4(0x683),'SYSTEM_STOPPED':_0x7617b4(0x516),'SYSTEM_CLOCK_CHANGE':_0x7617b4(0x88f),'SYSTEM_POKE':'system:poke','SYSTEM_DRAIN':'system:drain','SYSTEM_TYPE_DROP':_0x7617b4(0x356),'SYSTEM_PROC':_0x7617b4(0x252),'SYSTEM_BUS_STATE_CHANGE':_0x7617b4(0x1e5),'ITEM_CREATE':'item:create','ITEM_UPDATE':'item:update','ITEM_REMOVE':_0x7617b4(0x702),'ITEM_PENDING':'item:pending','INDEX_RESET':_0x7617b4(0x280),'INDEX_READY':'index:ready','INDEX_PROGRESS':_0x7617b4(0x73a),'VIEW_PROGRESS':_0x7617b4(0x74f),'INDEX_DROP':'index:drop','INDEX_REGISTERED':'index:registered','FTS_REGISTERED':_0x7617b4(0x82b),'FTS_DROP':'fts:drop','FTS_RESET':_0x7617b4(0x2c7),'SCHEMA_SET':_0x7617b4(0x855),'SCHEMA_DROP':_0x7617b4(0x3b0),'UNIQUE_VIOLATION':_0x7617b4(0x3fe),'UNIQUE_VIOLATION_RESOLVED':_0x7617b4(0x8f4),'REF_VIOLATION':_0x7617b4(0x370),'REF_VIOLATION_RESOLVED':_0x7617b4(0x34e),'SYNC_APPLY':_0x7617b4(0x74d),'TXN_START':_0x7617b4(0x515),'TXN_END':'txn:end','TXN_ROLLBACK':_0x7617b4(0x7e3),'TYPE_REGISTERED':'type:registered','TYPE_DROP':_0x7617b4(0x3a9),'ENV_OPENED':_0x7617b4(0x724),'ENV_REMOVED':_0x7617b4(0x5cb),'SYSTEM_ENV_RELEASE':_0x7617b4(0x808),'TTL_EXPIRED':_0x7617b4(0x6a6),'TTL_SET':_0x7617b4(0x2f2),'TTL_CLEAR':_0x7617b4(0x8b8),'LICENSE_INVALID':_0x7617b4(0x36e),'LICENSE_ADDED':'license:added','LICENSE_ACTIVATED':_0x7617b4(0x8ee),'LICENSE_REMOVED':_0x7617b4(0x8b9)},_0x3a9cae={'CREATING':_0x7617b4(0x68d),'RESETTING':'resetting','READY':_0x7617b4(0x8c9),'DROPPING':_0x7617b4(0x8cb),'WAITING':'waiting','ERROR':_0x7617b4(0x860)},_0x329c90={'CREATED':'created','STARTING':_0x7617b4(0x270),'STARTED':_0x7617b4(0x3ca),'STOPPING':_0x7617b4(0x62e),'STOPPED':_0x7617b4(0x6d0)},_0x6bb6a1={'CREATING':'creating','READY':'ready','HALTED':'halted','STOPPED':_0x7617b4(0x6d0),'RESETTING':_0x7617b4(0x39c)},_0x1895b4=Object[_0x7617b4(0x4e6)]({'POKE':_0x7617b4(0x1f6),'DRAIN':_0x7617b4(0x41b),'TYPE_DROP':_0x7617b4(0x30d),'PROC':_0x7617b4(0x7b0),'ENV_RELEASE':_0x7617b4(0x740)});return okdbEnums={'BUS_EVENTS':_0x1895b4,'CHANGE_ACTIONS':_0x46037e,'EVENTS':_0x1cfaef,'INDEX_STATE':_0x3a9cae,'OKDB_STATE':_0x329c90,'VIEW_STATE':_0x6bb6a1},okdbEnums;}var okdbGuardedRange,hasRequiredOkdbGuardedRange;function requireOkdbGuardedRange(){const _0x1791e1=_0xef081e;if(hasRequiredOkdbGuardedRange)return okdbGuardedRange;hasRequiredOkdbGuardedRange=0x1;const _0xe53f59={'SKIP':Symbol[_0x1791e1(0x7df)](_0x1791e1(0x8d9))},{OKDBError:_0xa0b63a}=requireOkdbError(),_0xf2fc92={'value':null,'done':!![]};class _0x208c11{constructor(_0x1e4296){const _0x1bd5c7=_0x1791e1;this[_0x1bd5c7(0x3c4)]=_0x1e4296;}get['DONE'](){return _0xf2fc92;}[Symbol[_0x1791e1(0x6a7)]](){const _0x536265=_0x1791e1;return this[_0x536265(0x3c4)]();}[_0x1791e1(0x642)](_0x465ce5){const _0x24f443=this;return new _0x208c11(()=>{const _0x342a5c=_0x2fc2,_0x5f1793=_0x24f443[Symbol[_0x342a5c(0x6a7)]]();return{'next'(){const _0xcd1709=_0x342a5c;for(;;){const _0x171893=_0x5f1793[_0xcd1709(0x8a6)]();if(_0x171893[_0xcd1709(0x577)])return{'done':!![],'value':undefined};const _0x3aae84=_0x465ce5(_0x171893[_0xcd1709(0x744)]);if(_0x3aae84===_0xe53f59[_0xcd1709(0x799)])continue;if(_0x3aae84===_0xf2fc92)return _0x5f1793[_0xcd1709(0x2a7)]?.(),{'done':!![],'value':undefined};return{'done':![],'value':_0x3aae84};}},'return'(){const _0x1c0e07=_0x342a5c;return _0x5f1793[_0x1c0e07(0x2a7)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x342a5c(0x6a7)]](){return this;}};});}[_0x1791e1(0x877)](_0x59232b){const _0x298554=_0x1791e1;return this[_0x298554(0x642)](_0x1c6d86=>_0x59232b(_0x1c6d86)?_0x1c6d86:_0xe53f59[_0x298554(0x799)]);}[_0x1791e1(0x8de)](_0xcafab7){for(const _0x13f5a1 of this)_0xcafab7(_0x13f5a1);}['slice'](_0x2688b8=0x0,_0x12ae95=Infinity){const _0x155b72=this;return new _0x208c11(()=>{const _0x741984=_0x2fc2,_0x359b08=_0x155b72[Symbol[_0x741984(0x6a7)]]();let _0x589759=0x0;return{'next'(){const _0x4a96bd=_0x741984;for(;;){const _0x548727=_0x359b08[_0x4a96bd(0x8a6)]();if(_0x548727[_0x4a96bd(0x577)])return{'done':!![],'value':undefined};const _0x4b3ff5=_0x589759++;if(_0x4b3ff5<_0x2688b8)continue;if(_0x4b3ff5>=_0x12ae95)return _0x359b08[_0x4a96bd(0x2a7)]?.(),{'done':!![],'value':undefined};return _0x548727;}},'return'(){const _0x364d53=_0x741984;return _0x359b08[_0x364d53(0x2a7)]?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}['at'](_0x30d986){let _0x2bca21=0x0;for(const _0x1b332e of this)if(_0x2bca21++===_0x30d986)return _0x1b332e;return undefined;}[_0x1791e1(0x68c)](_0x1f1404){const _0x209d08=this;return new _0x208c11(()=>{const _0x5d2176=_0x2fc2,_0x1657c7=_0x209d08[Symbol[_0x5d2176(0x6a7)]]();let _0x156448=[];return{'next'(){const _0x43d7c6=_0x5d2176;for(;;){if(_0x156448[_0x43d7c6(0x788)])return{'done':![],'value':_0x156448[_0x43d7c6(0x5af)]()};const _0x408a62=_0x1657c7['next']();if(_0x408a62[_0x43d7c6(0x577)])return{'done':!![],'value':undefined};const _0x43e8ce=_0x1f1404(_0x408a62[_0x43d7c6(0x744)]);if(Array[_0x43d7c6(0x888)](_0x43e8ce))_0x156448=_0x156448[_0x43d7c6(0x6f2)](_0x43e8ce);else{if(_0x43e8ce!=null&&(_0x43e8ce instanceof _0x208c11||typeof _0x43e8ce[Symbol['iterator']]==='function'&&_0x43d7c6(0x690)in _0x43e8ce))_0x156448=_0x156448[_0x43d7c6(0x6f2)](Array[_0x43d7c6(0x51b)](_0x43e8ce));else{if(_0x43e8ce!==_0xe53f59[_0x43d7c6(0x799)])return{'done':![],'value':_0x43e8ce};}}}},'return'(){return _0x1657c7['return']?.(),{'done':!![],'value':undefined};},[Symbol[_0x5d2176(0x6a7)]](){return this;}};});}[_0x1791e1(0x6f2)](_0xbf352c){const _0x32915f=this;return new _0x208c11(()=>{const _0x41a5aa=_0x2fc2;let _0x5f4c1f=_0x32915f[Symbol[_0x41a5aa(0x6a7)]](),_0x4c4211=![];return{'next'(){const _0x3058d6=_0x41a5aa;for(;;){const _0x22cc69=_0x5f4c1f[_0x3058d6(0x8a6)]();if(!_0x22cc69['done'])return _0x22cc69;if(_0x4c4211)return{'done':!![],'value':undefined};_0x4c4211=!![],_0x5f4c1f=_0xbf352c[Symbol[_0x3058d6(0x6a7)]]();}},'return'(){const _0x28fa5d=_0x41a5aa;return _0x5f4c1f[_0x28fa5d(0x2a7)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x41a5aa(0x6a7)]](){return this;}};});}[_0x1791e1(0x650)](_0x10ed3a){const _0x1311bf=this;return new _0x208c11(()=>{const _0xe053d0=_0x2fc2,_0x42f1d8=_0x1311bf[Symbol[_0xe053d0(0x6a7)]]();return{'next'(){const _0xbd4dbf=_0xe053d0;for(;;){try{return _0x42f1d8[_0xbd4dbf(0x8a6)]();}catch(_0x5b79d8){const _0x580b88=_0x10ed3a(_0x5b79d8);if(_0x580b88===_0xe53f59[_0xbd4dbf(0x799)]||_0x580b88===undefined)continue;return{'done':![],'value':_0x580b88};}}},'return'(){const _0x761d37=_0xe053d0;return _0x42f1d8[_0x761d37(0x2a7)]?.(),{'done':!![],'value':undefined};},[Symbol[_0xe053d0(0x6a7)]](){return this;}};});}[_0x1791e1(0x233)](){const _0xb6aad5=_0x1791e1;return Array[_0xb6aad5(0x51b)](this);}get['asArray'](){return Array['from'](this);}}const _0x5a5ed2={'total':0x0,'byLabel':{},'last':null};function _0x44864e(_0x6670e){const _0x51bb7b=_0x1791e1;_0x5a5ed2[_0x51bb7b(0x4ef)]++;if(_0x6670e)_0x5a5ed2['byLabel'][_0x6670e]=(_0x5a5ed2['byLabel'][_0x6670e]??0x0)+0x1;_0x5a5ed2[_0x51bb7b(0x304)]={'label':_0x6670e??null,'at':Date['now']()};}function _0x33af45(){const _0x101bae=_0x1791e1;return{'total':_0x5a5ed2[_0x101bae(0x4ef)],'byLabel':{..._0x5a5ed2[_0x101bae(0x33a)]},'last':_0x5a5ed2[_0x101bae(0x304)]};}function _0x814e5a(_0x39b70d,_0x1f854a={}){const {getTxnId:_0x2e664c,resume:_0x45049b,label:_0x496d33,baseline:_0x1307ee}=_0x1f854a;return new _0x208c11(()=>{const _0x2075bd=_0x2fc2;let _0x5a2350=null,_0x3f6f16=![],_0x37996f=![],_0x1e402f=![],_0x35490a,_0x4082f7=0x0,_0x419ca2;return{'next'(){const _0x3e813b=_0x2fc2;if(_0x1e402f)return{'done':!![],'value':undefined};if(_0x37996f){let _0x138d1a=![];if(_0x45049b&&_0x2e664c)try{_0x138d1a=_0x2e664c()===_0x419ca2;}catch{}if(!_0x138d1a){_0x1e402f=!![],_0x44864e(_0x496d33);throw new _0xa0b63a(_0x45049b?_0x3e813b(0x2f6)+_0x3e813b(0x2b1)+_0x3e813b(0x8be):_0x3e813b(0x5bc)+_0x3e813b(0x7ee)+'Array.from)\x20before\x20any\x20await.',_0x3e813b(0x235));}_0x5a2350=_0x45049b(_0x35490a,_0x4082f7)[Symbol[_0x3e813b(0x6a7)]](),_0x37996f=![];}if(!_0x5a2350){if(_0x1307ee!==undefined)_0x419ca2=_0x1307ee;else try{_0x419ca2=_0x2e664c?_0x2e664c():undefined;}catch{_0x419ca2=undefined;}try{_0x5a2350=_0x39b70d()[Symbol[_0x3e813b(0x6a7)]]();}catch(_0x3e3c9d){_0x1e402f=!![];throw _0x3e3c9d;}}!_0x3f6f16&&(_0x3f6f16=!![],queueMicrotask(()=>{const _0x1907c0=_0x3e813b;_0x3f6f16=![];if(_0x1e402f||_0x37996f)return;try{_0x5a2350?.[_0x1907c0(0x2a7)]?.();}catch{}_0x5a2350=null,_0x37996f=!![];}));const _0xf3b608=_0x5a2350[_0x3e813b(0x8a6)]();if(_0xf3b608[_0x3e813b(0x577)])return _0x1e402f=!![],{'done':!![],'value':undefined};return _0x35490a=_0xf3b608[_0x3e813b(0x744)],_0x4082f7++,_0xf3b608;},'return'(){const _0xcb956b=_0x2fc2;_0x1e402f=!![];try{_0x5a2350?.[_0xcb956b(0x2a7)]?.();}catch{}return{'done':!![],'value':undefined};},[Symbol[_0x2075bd(0x6a7)]](){return this;}};});}return okdbGuardedRange={'guardSnapshotIterable':_0x814e5a,'OKDBGuardedRange':_0x208c11,'recordGuardTrip':_0x44864e,'getGuardTripStats':_0x33af45},okdbGuardedRange;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0x3cc85d=_0xef081e;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x1e15af,performance:_0x5b0d4f}=require$$0$1,_0x3c9f4c=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG===_0x3cc85d(0x8f1),_0x3e881a=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x266a55=process.env.OKDB_LOOP_LAG_ALL==='1',_0x20a917=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0x8253cc{constructor(){const _0x8ece29=_0x3cc85d;this['enabled']=_0x3c9f4c,this[_0x8ece29(0x655)]=new Map(),this['_h']=null,this[_0x8ece29(0x747)]=null,this['_started']=![],this[_0x8ece29(0x552)]=(_0x4c4da6,_0x53db2f)=>process['stderr'][_0x8ece29(0x4bf)](_0x4c4da6+(_0x53db2f?'\x20'+JSON[_0x8ece29(0x754)](_0x53db2f):'')+'\x0a');}[_0x3cc85d(0x3d4)](){const _0x150e31=_0x3cc85d;return _0x5b0d4f[_0x150e31(0x3d4)]();}['setLogger'](_0x586e4d){const _0x1872d1=_0x3cc85d;if(typeof _0x586e4d===_0x1872d1(0x484))this['_log']=_0x586e4d;}[_0x3cc85d(0x669)](_0x24b765,_0x399b09,_0x50cb07){const _0x120954=_0x3cc85d;if(!this[_0x120954(0x4b3)])return;let _0x5acca3=this[_0x120954(0x655)]['get'](_0x24b765);!_0x5acca3&&(_0x5acca3={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this[_0x120954(0x655)]['set'](_0x24b765,_0x5acca3)),_0x5acca3['ms']+=_0x399b09,_0x5acca3[_0x120954(0x4c2)]+=0x1,_0x399b09>_0x5acca3[_0x120954(0x709)]&&(_0x5acca3[_0x120954(0x709)]=_0x399b09,_0x5acca3[_0x120954(0x432)]=_0x50cb07||'');}['start'](_0x10e355){const _0x26f560=_0x3cc85d;if(!this['enabled']||this[_0x26f560(0x66e)])return;this[_0x26f560(0x66e)]=!![];if(_0x10e355)this['_log']=_0x10e355;this['_h']=_0x1e15af({'resolution':0xa}),this['_h'][_0x26f560(0x274)](),this[_0x26f560(0x747)]=setInterval(()=>this[_0x26f560(0x57e)](),_0x3e881a);if(this[_0x26f560(0x747)]['unref'])this[_0x26f560(0x747)][_0x26f560(0x8c7)]();}[_0x3cc85d(0x8bf)](_0x50beb0){const _0x5e4a43=_0x3cc85d;if(!this[_0x5e4a43(0x770)])this[_0x5e4a43(0x770)]=new Set();this[_0x5e4a43(0x770)][_0x5e4a43(0x77d)](_0x50beb0);if(!this[_0x5e4a43(0x66e)])this[_0x5e4a43(0x8df)]();}[_0x3cc85d(0x675)](_0x17d525){const _0x366edb=_0x3cc85d;this['_windowCbs']?.[_0x366edb(0x46b)](_0x17d525);}[_0x3cc85d(0x8df)](){const _0x204ac1=_0x3cc85d;if(this['_admissionStarted'])return;this[_0x204ac1(0x6ed)]=!![];!this['_h']&&(this['_h']=_0x1e15af({'resolution':0xa}),this['_h'][_0x204ac1(0x274)]());const _0x88375f=_0x3e881a;this[_0x204ac1(0x33f)]=setInterval(()=>{const _0x1744f7=_0x204ac1,_0x4e802f=this['_h'];if(!_0x4e802f)return;const _0x2842db=_0x4e802f['percentile'](0x63)/0xf4240,_0x2e8b37=_0x4e802f['max']/0xf4240,_0x55f263=_0x4e802f[_0x1744f7(0x461)]/0xf4240;_0x4e802f['reset']();if(this[_0x1744f7(0x770)])for(const _0x5b347d of this[_0x1744f7(0x770)]){try{_0x5b347d({'p99Ms':_0x2842db,'maxMs':_0x2e8b37,'meanMs':_0x55f263,'reportMs':_0x88375f});}catch{}}},_0x88375f);if(this[_0x204ac1(0x33f)][_0x204ac1(0x8c7)])this[_0x204ac1(0x33f)][_0x204ac1(0x8c7)]();}[_0x3cc85d(0x57e)](){const _0x5b7c5c=_0x3cc85d,_0x38a32f=this['_h'],_0x199c5f=_0x38a32f[_0x5b7c5c(0x31f)]/0xf4240,_0xb7a2a9=_0x38a32f[_0x5b7c5c(0x247)](0x63)/0xf4240,_0x2c7f5f=_0x38a32f['mean']/0xf4240;_0x38a32f['reset']();const _0x3c21e9=[...this[_0x5b7c5c(0x655)][_0x5b7c5c(0x84a)]()]['map'](([_0x515d86,_0xb33dc])=>({'label':_0x515d86,..._0xb33dc}))[_0x5b7c5c(0x1e1)]((_0x46824a,_0x482600)=>_0x482600['ms']-_0x46824a['ms'])[_0x5b7c5c(0x848)](0x0,0x8);this[_0x5b7c5c(0x655)]['clear']();const _0x30e72f=_0x3c21e9[_0x5b7c5c(0x520)]((_0x468add,_0x7ed876)=>_0x468add+_0x7ed876['ms'],0x0),_0x158d1d=_0x3c21e9[_0x5b7c5c(0x642)](_0x1da064=>_0x1da064['label']+'='+_0x1da064['ms'][_0x5b7c5c(0x3bc)](0x0)+'ms/'+_0x1da064[_0x5b7c5c(0x4c2)]+(_0x1da064['maxMs']>0x5?_0x5b7c5c(0x53d)+_0x1da064['maxMs'][_0x5b7c5c(0x3bc)](0x0)+'ms'+(_0x1da064[_0x5b7c5c(0x432)]?'\x20'+_0x1da064['maxExtra']:'')+')':''));(_0x266a55||_0x199c5f>=_0x20a917)&&this[_0x5b7c5c(0x552)]('loop-lag\x20'+_0x3e881a+_0x5b7c5c(0x3d1)+_0x199c5f[_0x5b7c5c(0x3bc)](0x0)+_0x5b7c5c(0x6b5)+_0xb7a2a9[_0x5b7c5c(0x3bc)](0x0)+_0x5b7c5c(0x653)+_0x2c7f5f[_0x5b7c5c(0x3bc)](0x0)+_0x5b7c5c(0x464)+_0x30e72f['toFixed'](0x0)+'ms'+(_0x158d1d[_0x5b7c5c(0x788)]?'\x20│\x20'+_0x158d1d[_0x5b7c5c(0x8a0)]('\x20\x20'):''),{'feature':_0x5b7c5c(0x5db)});if(this[_0x5b7c5c(0x770)])for(const _0x22248b of this[_0x5b7c5c(0x770)]){try{_0x22248b({'p99Ms':_0xb7a2a9,'maxMs':_0x199c5f,'meanMs':_0x2c7f5f,'reportMs':_0x3e881a});}catch{}}}[_0x3cc85d(0x6bf)](){const _0x54fcfd=_0x3cc85d;if(this['_timer'])clearInterval(this['_timer']);if(this['_h'])this['_h'][_0x54fcfd(0x229)]();this[_0x54fcfd(0x747)]=null,this['_h']=null,this[_0x54fcfd(0x66e)]=![];}}const _0x491896=new _0x8253cc();if(_0x491896[_0x3cc85d(0x4b3)])_0x491896[_0x3cc85d(0x77b)]();return okdbLoopMonitor={'LOOP':_0x491896},okdbLoopMonitor;}var okdbTransaction,hasRequiredOkdbTransaction;function requireOkdbTransaction(){const _0x414b1c=_0xef081e;if(hasRequiredOkdbTransaction)return okdbTransaction;hasRequiredOkdbTransaction=0x1;const _0x5eb46e={'v4':()=>require$$0$2[_0x414b1c(0x78a)]()},{EVENTS:_0x3b494b}=requireOkdbEnums(),{OKDBError:_0x102c29}=requireOkdbError(),{recordGuardTrip:_0x5f3e7a,guardSnapshotIterable:_0x5d519e}=requireOkdbGuardedRange(),{LOOP:_0xe63a4b}=requireOkdbLoopMonitor();function _0x555b40(_0x25670a){const _0x581c45=_0x414b1c;return _0x25670a[_0x581c45(0x642)](_0x414668=>{const _0x483129=_0x581c45,[_0x18c2e6,_0x4e7f32]=_0x414668[_0x483129(0x4d4)]||[];return{'action':_0x414668[_0x483129(0x455)],'type':_0x18c2e6,'key':_0x4e7f32};});}class _0x10646f{['okdb'];[_0x414b1c(0x875)]=[];[_0x414b1c(0x4b2)]=[];[_0x414b1c(0x772)]=[];constructor(_0x42219d,_0x2c4b06={'useReadTransaction':![]}){const _0x5dcba3=_0x414b1c;this[_0x5dcba3(0x82e)]=_0x42219d,this['options']=_0x2c4b06,this['id']=_0x5eb46e['v4']();if(this[_0x5dcba3(0x1cc)][_0x5dcba3(0x1de)])try{this[_0x5dcba3(0x4a9)]=this[_0x5dcba3(0x82e)]['db'][_0x5dcba3(0x7f2)]()[_0x5dcba3(0x38e)];}catch{this[_0x5dcba3(0x4a9)]=undefined;}this[_0x5dcba3(0x7bd)]=this[_0x5dcba3(0x1cc)][_0x5dcba3(0x1de)]?this['okdb']['db']['useReadTransaction']():null,this[_0x5dcba3(0x43e)]=![],this['_readViewExpired']=![],this[_0x5dcba3(0x7bd)]&&queueMicrotask(()=>{const _0x5908d0=_0x5dcba3;this[_0x5908d0(0x7bd)]&&(this[_0x5908d0(0x581)](),this[_0x5908d0(0x223)]=!![]);});}['onDo'](_0x2e8587){const _0x38381d=_0x414b1c;this[_0x38381d(0x4b2)][_0x38381d(0x27f)](_0x2e8587);}['onUndo'](_0x21f73e){const _0xe70a2d=_0x414b1c;this['_undoHooks'][_0xe70a2d(0x27f)](_0x21f73e);}['_closeReadTransaction'](){const _0x30787e=_0x414b1c;if(!this[_0x30787e(0x7bd)])return;try{this['readTransaction']['done']();}catch(_0x104b58){}this[_0x30787e(0x7bd)]=null;}['_assertOpen'](){const _0x56a618=_0x414b1c;if(this[_0x56a618(0x43e)])throw new _0x102c29(_0x56a618(0x766),'TXN_CLOSED');if(this['_readViewExpired']){let _0x56deee=![];if(this[_0x56a618(0x1cc)][_0x56a618(0x1de)]===_0x56a618(0x827)&&this[_0x56a618(0x4a9)]!==undefined)try{_0x56deee=this[_0x56a618(0x82e)]['db'][_0x56a618(0x7f2)]()[_0x56a618(0x38e)]===this[_0x56a618(0x4a9)];}catch{}if(!_0x56deee){_0x5f3e7a((this['okdb']?.[_0x56a618(0x686)]??'?')+_0x56a618(0x641));throw new _0x102c29(_0x56a618(0x45b)+_0x56a618(0x60b)+_0x56a618(0x700)+_0x56a618(0x28a),_0x56a618(0x235));}}}['get'](_0x354f28,_0x2ca586){const _0x181969=_0x414b1c;return this['_assertOpen'](),this[_0x181969(0x82e)][_0x181969(0x292)](_0x354f28,_0x2ca586,{'transaction':this['readTransaction']});}[_0x414b1c(0x408)](_0x3337b2,_0x248df4){const _0x188e28=_0x414b1c;return this['_assertOpen'](),this[_0x188e28(0x82e)][_0x188e28(0x408)](_0x3337b2,_0x248df4,{'transaction':this['readTransaction']});}[_0x414b1c(0x2d2)](_0x426ef7,_0x30abf8){const _0x58cf9c=_0x414b1c;return this['_assertOpen'](),this[_0x58cf9c(0x82e)]['getMany'](_0x426ef7,_0x30abf8,{'transaction':this['readTransaction']});}[_0x414b1c(0x2ff)](_0x3f82b1){const _0x1f157b=_0x414b1c;if(!this[_0x1f157b(0x1cc)][_0x1f157b(0x1de)])return _0x3f82b1;if(_0x3f82b1&&typeof _0x3f82b1[_0x1f157b(0x458)]===_0x1f157b(0x484))return _0x3f82b1;if(Array[_0x1f157b(0x888)](_0x3f82b1))return _0x3f82b1;const _0x1c3d08=this,_0xe3a59c=_0x1c3d08[_0x1f157b(0x1cc)]['useReadTransaction']===_0x1f157b(0x827),_0x28fe03=()=>{const _0x85acf1=_0x1f157b;if(!_0x1c3d08[_0x85acf1(0x223)])return![];if(!_0xe3a59c)return!![];if(_0x1c3d08[_0x85acf1(0x4a9)]===undefined)return!![];try{return _0x1c3d08[_0x85acf1(0x82e)]['db']['getStats']()[_0x85acf1(0x38e)]!==_0x1c3d08[_0x85acf1(0x4a9)];}catch{return!![];}};return _0x5d519e(()=>{const _0x428c5a=_0x1f157b;if(_0x1c3d08[_0x428c5a(0x43e)])throw new _0x102c29('Transaction\x20already\x20closed',_0x428c5a(0x325));if(_0x28fe03()){_0x5f3e7a((_0x1c3d08['okdb']?.[_0x428c5a(0x686)]??'?')+_0x428c5a(0x3af));throw new _0x102c29(_0x428c5a(0x81b)+_0x428c5a(0x324)+_0x428c5a(0x266),_0x428c5a(0x235));}return _0x3f82b1;},{'label':(_0x1c3d08['okdb']?.['name']??'?')+_0x1f157b(0x3af),..._0xe3a59c?{'baseline':_0x1c3d08[_0x1f157b(0x4a9)],'getTxnId':()=>_0x1c3d08[_0x1f157b(0x82e)]['db'][_0x1f157b(0x7f2)]()[_0x1f157b(0x38e)],'resume':(_0x19f83a,_0xa022a0)=>_0x3f82b1[_0x1f157b(0x848)](_0xa022a0)}:{}});}[_0x414b1c(0x433)](_0x4f8e6,_0x1ad721={}){const _0x56b058=_0x414b1c;return this[_0x56b058(0x2d0)](),this[_0x56b058(0x2ff)](this['okdb'][_0x56b058(0x433)](_0x4f8e6,{'transaction':this[_0x56b058(0x7bd)],..._0x1ad721}));}['getValues'](_0x4c4ed1,_0x2036b8={}){const _0x544e20=_0x414b1c;return this[_0x544e20(0x2d0)](),this[_0x544e20(0x2ff)](this[_0x544e20(0x82e)]['getValues'](_0x4c4ed1,{'transaction':this[_0x544e20(0x7bd)],..._0x2036b8}));}[_0x414b1c(0x541)](_0x54fddb,_0x945e60={}){const _0x30ed48=_0x414b1c;return this[_0x30ed48(0x2d0)](),this[_0x30ed48(0x2ff)](this['okdb'][_0x30ed48(0x541)](_0x54fddb,{'transaction':this[_0x30ed48(0x7bd)],..._0x945e60}));}['byIndex'](_0x43d86d,_0x538d85,_0x1bc223={}){const _0x228737=_0x414b1c;return this[_0x228737(0x2d0)](),this[_0x228737(0x2ff)](this[_0x228737(0x82e)][_0x228737(0x657)](_0x43d86d,_0x538d85,{'transaction':this['readTransaction'],..._0x1bc223}));}[_0x414b1c(0x5e7)](_0x32d917,_0x55e4e8,_0x531adb={}){const _0x4c31a3=_0x414b1c;return this[_0x4c31a3(0x2d0)](),this['_range'](this['okdb']['query'](_0x32d917,_0x55e4e8,{'transaction':this['readTransaction'],..._0x531adb}));}[_0x414b1c(0x73c)](_0x28c145=null){const _0x2237c0=_0x414b1c;return this[_0x2237c0(0x2d0)](),this[_0x2237c0(0x82e)]['getClock'](_0x28c145,{'transaction':this[_0x2237c0(0x7bd)]});}['getCount'](_0x1e39fb){const _0x5c2415=_0x414b1c;return this[_0x5c2415(0x2d0)](),this['okdb'][_0x5c2415(0x2e0)](_0x1e39fb,{'transaction':this[_0x5c2415(0x7bd)]});}['put'](_0x5304f7,_0x2c85d4,_0x4a74b9,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date['now'](),origin:origin=null,ttl:ttl=null}={}){const _0x5e73f0=_0x414b1c;this[_0x5e73f0(0x875)][_0x5e73f0(0x27f)]({'action':_0x5e73f0(0x1dd),'args':[_0x5304f7,_0x2c85d4,_0x4a74b9,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x414b1c(0x739)](_0x5c2348,_0x15d7ea,_0x4e706a,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0x414b1c(0x3d4)](),origin:origin=null,ttl:ttl=null}={}){const _0x46f4fd=_0x414b1c;this['actions']['push']({'action':_0x46f4fd(0x739),'args':[_0x5c2348,_0x15d7ea,_0x4e706a,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x414b1c(0x1c8)](_0x59a517,_0x6b61cf,_0x2d8ea3,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0x414b1c(0x3d4)](),origin:origin=null,ttl:ttl=null}={}){const _0x575cbe=_0x414b1c;this['actions'][_0x575cbe(0x27f)]({'action':_0x575cbe(0x1c8),'args':[_0x59a517,_0x6b61cf,_0x2d8ea3,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x414b1c(0x1c2)](_0x27b58b,_0x3931d8,_0x239ac9,{version:version=null,timestamp:timestamp=Date[_0x414b1c(0x3d4)](),origin:origin=null,ttl:ttl=null}={}){const _0x3c3c22=_0x414b1c;this[_0x3c3c22(0x875)][_0x3c3c22(0x27f)]({'action':_0x3c3c22(0x1c2),'args':[_0x27b58b,_0x3931d8,_0x239ac9,{'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x414b1c(0x28d)](_0x450181,_0x7f0a6e,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0x414b1c(0x3d4)](),origin:origin=null}={}){const _0x34f769=_0x414b1c;this[_0x34f769(0x875)]['push']({'action':_0x34f769(0x28d),'args':[_0x450181,_0x7f0a6e,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin}]});}[_0x414b1c(0x383)](_0x1dab98,_0xc448d9,_0x5c338d){const _0x2f5a3a=_0x414b1c;this['actions'][_0x2f5a3a(0x27f)]({'action':'setTTL','args':[_0x1dab98,_0xc448d9,_0x5c338d]});}['clearTTL'](_0x5533a8,_0x565f00){const _0x502184=_0x414b1c;this[_0x502184(0x875)][_0x502184(0x27f)]({'action':_0x502184(0x41f),'args':[_0x5533a8,_0x565f00]});}[_0x414b1c(0x28c)](){const _0x1d3f48=_0x414b1c;if(this[_0x1d3f48(0x43e)])return;for(const _0x516347 of this[_0x1d3f48(0x772)]){try{_0x516347();}catch{}}this[_0x1d3f48(0x82e)][_0x1d3f48(0x3d2)][_0x1d3f48(0x599)](_0x3b494b[_0x1d3f48(0x5c0)],{'id':this['id']}),this[_0x1d3f48(0x875)]=[],this[_0x1d3f48(0x581)](),this[_0x1d3f48(0x43e)]=!![];}async[_0x414b1c(0x7dc)](){const _0x379324=_0x414b1c;if(this[_0x379324(0x43e)])throw new Error(_0x379324(0x766));const _0xd277b3={'id':this['id'],'timestamp':Date[_0x379324(0x3d4)](),'actions':this[_0x379324(0x875)]};this['okdb']['events'][_0x379324(0x599)](_0x3b494b[_0x379324(0x25f)],_0xd277b3);try{const _0x545854=_0xe63a4b['enabled']?_0xe63a4b[_0x379324(0x3d4)]():0x0;await this['okdb'][_0x379324(0x27a)][_0x379324(0x7b5)](()=>{const _0x270609=_0x379324;for(const _0xc87396 of this['actions']){const _0x4859b6=this[_0x270609(0x82e)]['_'+_0xc87396[_0x270609(0x455)]];if(typeof _0x4859b6!==_0x270609(0x484))throw new Error(_0x270609(0x823)+_0xc87396[_0x270609(0x455)]);_0x4859b6['call'](this[_0x270609(0x82e)],this,..._0xc87396[_0x270609(0x4d4)]);}}),_0xe63a4b[_0x379324(0x4b3)]&&_0xe63a4b[_0x379324(0x669)](_0x379324(0x7f9),_0xe63a4b[_0x379324(0x3d4)]()-_0x545854,(this[_0x379324(0x82e)][_0x379324(0x686)]??'?')+_0x379324(0x67d)+this[_0x379324(0x875)][_0x379324(0x788)]);}catch(_0x47aadc){for(const _0x33a16d of this['_undoHooks']){try{_0x33a16d();}catch{}}this[_0x379324(0x581)](),this[_0x379324(0x43e)]=!![];if(_0x47aadc instanceof _0x102c29)throw _0x47aadc;const _0x3d262c={'cause':_0x47aadc,'env':this['okdb']?.[_0x379324(0x686)],'envPath':this[_0x379324(0x82e)]?.[_0x379324(0x844)],'pid':process[_0x379324(0x6d4)],'txnId':this['id'],'actionCount':this[_0x379324(0x875)]['length'],'actions':_0x555b40(this['actions']),'nativeCode':_0x47aadc?.[_0x379324(0x1bd)],'nativeName':_0x47aadc?.[_0x379324(0x686)]};try{this[_0x379324(0x82e)]?.['log']?.[_0x379324(0x860)]?.(_0x379324(0x811),{'env':_0x3d262c[_0x379324(0x4f8)],'envPath':_0x3d262c[_0x379324(0x256)],'pid':_0x3d262c[_0x379324(0x6d4)],'txnId':_0x3d262c[_0x379324(0x4ba)],'actionCount':_0x3d262c[_0x379324(0x853)],'actions':_0x3d262c[_0x379324(0x875)],'nativeCode':_0x3d262c['nativeCode'],'error':_0x47aadc?.['message'],'stack':_0x47aadc?.[_0x379324(0x8a5)]});}catch{}throw new _0x102c29(_0x47aadc?.[_0x379324(0x485)]||_0x379324(0x748),'TXN_ERROR',_0x3d262c);}this[_0x379324(0x82e)][_0x379324(0x3d2)]['emit'](_0x3b494b[_0x379324(0x6cf)],_0xd277b3);for(const _0x2fbd8b of this[_0x379324(0x4b2)]){try{await _0x2fbd8b();}catch{}}this[_0x379324(0x875)]=[],this[_0x379324(0x581)](),this[_0x379324(0x43e)]=!![];}static[_0x414b1c(0x1f0)](_0x16e834){const _0x227a3d=_0x414b1c;return Object['freeze']({'id':_0x16e834['id'],'put':_0x16e834[_0x227a3d(0x1dd)][_0x227a3d(0x76f)](_0x16e834),'update':_0x16e834[_0x227a3d(0x739)][_0x227a3d(0x76f)](_0x16e834),'patch':_0x16e834[_0x227a3d(0x1c8)][_0x227a3d(0x76f)](_0x16e834),'create':_0x16e834[_0x227a3d(0x1c2)][_0x227a3d(0x76f)](_0x16e834),'remove':_0x16e834[_0x227a3d(0x28d)]['bind'](_0x16e834),'setTTL':_0x16e834[_0x227a3d(0x383)][_0x227a3d(0x76f)](_0x16e834),'clearTTL':_0x16e834[_0x227a3d(0x41f)]['bind'](_0x16e834),'commit':_0x16e834[_0x227a3d(0x7dc)][_0x227a3d(0x76f)](_0x16e834),'rollback':_0x16e834[_0x227a3d(0x28c)][_0x227a3d(0x76f)](_0x16e834),'get':_0x16e834[_0x227a3d(0x292)][_0x227a3d(0x76f)](_0x16e834),'getEntry':_0x16e834[_0x227a3d(0x408)][_0x227a3d(0x76f)](_0x16e834),'getMany':_0x16e834[_0x227a3d(0x2d2)]['bind'](_0x16e834),'getRange':_0x16e834[_0x227a3d(0x433)]['bind'](_0x16e834),'getValues':_0x16e834[_0x227a3d(0x73d)][_0x227a3d(0x76f)](_0x16e834),'getKeys':_0x16e834['getKeys'][_0x227a3d(0x76f)](_0x16e834),'byIndex':_0x16e834[_0x227a3d(0x657)]['bind'](_0x16e834),'query':_0x16e834[_0x227a3d(0x5e7)][_0x227a3d(0x76f)](_0x16e834),'getClock':_0x16e834[_0x227a3d(0x73c)]['bind'](_0x16e834),'getCount':_0x16e834[_0x227a3d(0x2e0)][_0x227a3d(0x76f)](_0x16e834),'read':_0x16e834,'raw':_0x16e834});}static[_0x414b1c(0x51e)](_0x14ea42,_0x1a47ae=[]){const _0x287541=_0x414b1c;if(!Array['isArray'](_0x1a47ae))throw new _0x102c29(_0x287541(0x1d5),'TXN_INVALID_OPS');for(const _0x1a8995 of _0x1a47ae){if(Array[_0x287541(0x888)](_0x1a8995)){const [_0x2b7f3a,..._0xbaecc0]=_0x1a8995;if(typeof _0x14ea42[_0x2b7f3a]!==_0x287541(0x484))throw new _0x102c29('Unknown\x20transaction\x20action:\x20'+_0x2b7f3a,'TXN_INVALID_ACTION',{'action':_0x2b7f3a});_0x14ea42[_0x2b7f3a](..._0xbaecc0);continue;}if(!_0x1a8995||typeof _0x1a8995!=='object')throw new _0x102c29(_0x287541(0x5ff),_0x287541(0x1ee));const {action:_0x49dc5e}=_0x1a8995;if(typeof _0x49dc5e!==_0x287541(0x43c)||typeof _0x14ea42[_0x49dc5e]!=='function')throw new _0x102c29(_0x287541(0x823)+_0x49dc5e,_0x287541(0x6b1),{'action':_0x49dc5e});switch(_0x49dc5e){case _0x287541(0x1dd):case _0x287541(0x739):case'create':_0x14ea42[_0x49dc5e](_0x1a8995[_0x287541(0x490)],_0x1a8995[_0x287541(0x59b)],_0x1a8995[_0x287541(0x744)],{..._0x1a8995[_0x287541(0x1cc)],'ttl':_0x1a8995[_0x287541(0x20b)]??_0x1a8995[_0x287541(0x1cc)]?.[_0x287541(0x20b)]??null});break;case _0x287541(0x1c8):_0x14ea42['patch'](_0x1a8995[_0x287541(0x490)],_0x1a8995[_0x287541(0x59b)],_0x1a8995[_0x287541(0x1c8)],{..._0x1a8995['options'],'ttl':_0x1a8995[_0x287541(0x20b)]??_0x1a8995[_0x287541(0x1cc)]?.[_0x287541(0x20b)]??null});break;case _0x287541(0x28d):_0x14ea42[_0x287541(0x28d)](_0x1a8995[_0x287541(0x490)],_0x1a8995[_0x287541(0x59b)],_0x1a8995[_0x287541(0x1cc)]||{});break;case _0x287541(0x383):_0x14ea42[_0x287541(0x383)](_0x1a8995[_0x287541(0x490)],_0x1a8995[_0x287541(0x59b)],_0x1a8995[_0x287541(0x20b)]);break;case'clearTTL':_0x14ea42[_0x287541(0x41f)](_0x1a8995[_0x287541(0x490)],_0x1a8995['key']);break;default:throw new _0x102c29(_0x287541(0x8d4)+_0x49dc5e,_0x287541(0x6b1),{'action':_0x49dc5e});}}}static async[_0x414b1c(0x2be)](_0x64a50f,_0x5ae161,_0x279bcc={}){const _0x368da5=_0x414b1c,_0x86428c=new _0x10646f(_0x64a50f,_0x279bcc),_0xde397c=_0x10646f[_0x368da5(0x1f0)](_0x86428c);try{typeof _0x5ae161==='function'?await _0x5ae161(_0xde397c):_0x10646f[_0x368da5(0x51e)](_0x86428c,_0x5ae161||[]);const _0x571ed6=_0x86428c[_0x368da5(0x875)]['length'];return await _0x86428c[_0x368da5(0x7dc)](),{'id':_0x86428c['id'],'actions':_0x571ed6};}catch(_0xe6e28){try{_0x86428c[_0x368da5(0x28c)]();}catch(_0x3e9fa1){}throw _0xe6e28;}}}return okdbTransaction=_0x10646f,okdbTransaction;}var dist={},hasRequiredDist;function requireDist(){const _0x24ac46=_0xef081e;if(hasRequiredDist)return dist;hasRequiredDist=0x1,Object['defineProperty'](dist,_0x24ac46(0x677),{'value':!![]});const _0x37dc68=new Float64Array(0x2),_0x14e5cc=new Int32Array(_0x37dc68[_0x24ac46(0x570)],0x0,0x4),{lowIdx:_0xa08e68,highIdx:_0x50930f}=((()=>{const _0x39857c=_0x24ac46;if(new Uint8Array(new Uint32Array([0xffee1100])[_0x39857c(0x570)])[0x0]===0xff)return{'lowIdx':0x1,'highIdx':0x0};return{'lowIdx':0x0,'highIdx':0x1};})());let _0x495dc9=![],_0x1858a9;try{_0x1858a9=new TextEncoder();}catch(_0xf103a2){}function _0x3cf6e4(_0x154591,_0x237cad,position,_0xb2b8f6){const _0x2d73b4=_0x24ac46;let _0x397c67=_0x237cad[_0x2d73b4(0x2aa)];if(!_0x397c67)_0x397c67=_0x237cad[_0x2d73b4(0x2aa)]=new DataView(_0x237cad[_0x2d73b4(0x570)],_0x237cad[_0x2d73b4(0x6e4)],_0x237cad['byteLength']+0x3>>0x2<<0x2);switch(typeof _0x154591){case'string':let _0x2a7f42=_0x154591[_0x2d73b4(0x788)],_0x42df81=_0x154591[_0x2d73b4(0x4fc)](0x0);if(!(_0x42df81>=0x1c))_0x237cad[position++]=0x1b;if(_0x2a7f42<0x40){let _0x2d8acd,_0x5b2626;for(_0x2d8acd=0x0;_0x2d8acd<_0x2a7f42;_0x2d8acd++){_0x42df81=_0x154591[_0x2d73b4(0x4fc)](_0x2d8acd);if(_0x42df81<=0x4)_0x237cad[position++]=0x4,_0x237cad[position++]=_0x42df81;else{if(_0x42df81<0x80)_0x237cad[position++]=_0x42df81;else{if(_0x42df81<0x800)_0x237cad[position++]=_0x42df81>>0x6|0xc0,_0x237cad[position++]=_0x42df81&0x3f|0x80;else(_0x42df81&0xfc00)===0xd800&&((_0x5b2626=_0x154591[_0x2d73b4(0x4fc)](_0x2d8acd+0x1))&0xfc00)===0xdc00?(_0x42df81=0x10000+((_0x42df81&0x3ff)<<0xa)+(_0x5b2626&0x3ff),_0x2d8acd++,_0x237cad[position++]=_0x42df81>>0x12|0xf0,_0x237cad[position++]=_0x42df81>>0xc&0x3f|0x80,_0x237cad[position++]=_0x42df81>>0x6&0x3f|0x80,_0x237cad[position++]=_0x42df81&0x3f|0x80):(_0x237cad[position++]=_0x42df81>>0xc|0xe0,_0x237cad[position++]=_0x42df81>>0x6&0x3f|0x80,_0x237cad[position++]=_0x42df81&0x3f|0x80);}}}}else{if(_0x237cad[_0x2d73b4(0x6c4)])position+=_0x237cad[_0x2d73b4(0x6c4)](_0x154591,position,_0x237cad[_0x2d73b4(0x8e4)]-position);else position+=_0x1858a9[_0x2d73b4(0x8f3)](_0x154591,_0x237cad[_0x2d73b4(0x46f)](position))['written'];if(position>_0x237cad[_0x2d73b4(0x788)]-0x4)throw new RangeError(_0x2d73b4(0x4a1));}break;case _0x2d73b4(0x559):_0x37dc68[0x0]=_0x154591;let _0x326b41=_0x14e5cc[_0xa08e68],_0x713122=_0x14e5cc[_0x50930f],_0x476853;if(_0x154591<0x0)return _0x397c67[_0x2d73b4(0x33d)](position+0x4,~(_0x326b41>>>0x4|_0x713122<<0x1c)),_0x397c67[_0x2d73b4(0x33d)](position+0x0,(_0x713122^0x7fffffff)>>>0x4),_0x397c67[_0x2d73b4(0x33d)](position+0x8,(_0x326b41&0xf^0xf)<<0x4,!![]),position+0x9;else{if(_0x326b41&0xf||_0xb2b8f6)_0x476853=0x9;else{if(_0x326b41&0xfffff)_0x476853=0x8;else{if(_0x326b41||_0x713122&0xf)_0x476853=0x6;else _0x476853=0x4;}}}_0x397c67['setInt32'](position+0x0,_0x713122>>>0x4|0x10000000),_0x397c67[_0x2d73b4(0x33d)](position+0x4,_0x326b41>>>0x4|_0x713122<<0x1c),_0x397c67[_0x2d73b4(0x33d)](position+0x8,(_0x326b41&0xf)<<0x4,!![]);return position+_0x476853;case _0x2d73b4(0x7f6):if(_0x154591){if(Array[_0x2d73b4(0x888)](_0x154591)){for(let _0x16fa85=0x0,_0x3fbb2c=_0x154591[_0x2d73b4(0x788)];_0x16fa85<_0x3fbb2c;_0x16fa85++){if(_0x16fa85>0x0)_0x237cad[position++]=0x0;position=_0x3cf6e4(_0x154591[_0x16fa85],_0x237cad,position,!![]);}break;}else{if(_0x154591 instanceof Uint8Array){_0x237cad[_0x2d73b4(0x204)](_0x154591,position),position+=_0x154591['length'];break;}else throw new Error(_0x2d73b4(0x285)+JSON[_0x2d73b4(0x754)](_0x154591));}}else _0x237cad[position++]=0x0;break;case _0x2d73b4(0x699):_0x397c67[_0x2d73b4(0x839)](position++,_0x154591?0x7:0x6,!![]);return position;case _0x2d73b4(0x621):let _0x2a946c=Number(_0x154591);if(BigInt(_0x2a946c)>_0x154591){_0x37dc68[0x0]=_0x2a946c;if(_0x2a946c>0x0){if(_0x14e5cc[_0xa08e68])_0x14e5cc[_0xa08e68]--;else _0x14e5cc[_0x50930f]--,_0x14e5cc[_0xa08e68]=0xffffffff;}else{if(_0x14e5cc[_0xa08e68]<0xffffffff)_0x14e5cc[_0xa08e68]++;else _0x14e5cc[_0x50930f]++,_0x14e5cc[_0xa08e68]=0x0;}_0x2a946c=_0x37dc68[0x0];}let _0x31c34a=_0x154591-BigInt(_0x2a946c);if(_0x31c34a===0x0n)return _0x3cf6e4(_0x2a946c,_0x237cad,position,_0xb2b8f6);_0x3cf6e4(_0x2a946c,_0x237cad,position,_0xb2b8f6),position+=0x9;let _0x1220d5=BigInt((_0x14e5cc[_0x50930f]>>0x14&0x7ff)-0x437),_0x1eb5e1=_0x31c34a>>_0x1220d5;_0x237cad[position-0x1]|=Number(_0x1eb5e1),_0x31c34a-=_0x1eb5e1<<_0x1220d5;let _0x1c9f46=!![];while(_0x31c34a||_0x1c9f46){_0x1c9f46=![],_0x1220d5-=0x7n;let _0x37fe52=_0x31c34a>>_0x1220d5;_0x237cad[position++]=Number(_0x37fe52)|0x80,_0x31c34a-=_0x37fe52<<_0x1220d5;}return position;case _0x2d73b4(0x312):return position;case _0x2d73b4(0x3e0):_0x237cad[position++]=0x2;return _0x3cf6e4(_0x154591['description'],_0x237cad,position,_0xb2b8f6);default:throw new Error(_0x2d73b4(0x3ec)+typeof _0x154591);}if(_0x495dc9&&!_0xb2b8f6)_0x397c67[_0x2d73b4(0x839)](position,0x0);return position;}let position;function _0x5a3157(_0x26ce91,_0x3cc28f,_0x2a6fc9,_0x48b983){const _0x3ef455=_0x24ac46;position=_0x3cc28f;let _0x1abf8c=_0x26ce91[position],_0x1e6bf6;if(_0x1abf8c<0x18){if(_0x1abf8c<0x8){position++;if(_0x1abf8c==0x6)_0x1e6bf6=![];else{if(_0x1abf8c==0x7)_0x1e6bf6=!![];else{if(_0x1abf8c==0x0)_0x1e6bf6=null;else{if(_0x1abf8c==0x2)_0x1e6bf6=Symbol[_0x3ef455(0x7df)](_0x26c130(_0x26ce91,_0x2a6fc9));else return Uint8Array['prototype']['slice'][_0x3ef455(0x62a)](_0x26ce91,_0x3cc28f,_0x2a6fc9);}}}}else{let _0x323478;try{_0x323478=_0x26ce91['dataView']||(_0x26ce91[_0x3ef455(0x2aa)]=new DataView(_0x26ce91[_0x3ef455(0x570)],_0x26ce91['byteOffset'],_0x26ce91[_0x3ef455(0x8e4)]+0x3>>0x2<<0x2));}catch(_0x38a182){_0x323478=_0x26ce91[_0x3ef455(0x2aa)]||(_0x26ce91[_0x3ef455(0x2aa)]=new DataView(_0x26ce91['buffer'],_0x26ce91[_0x3ef455(0x6e4)],_0x26ce91['buffer'][_0x3ef455(0x8e4)]-_0x26ce91[_0x3ef455(0x6e4)]));}let _0x45b11b=_0x323478['getInt32'](position)<<0x4,_0x4c7bd0=_0x2a6fc9-position,_0xf4db66;if(_0x4c7bd0>0x4)_0xf4db66=position+0x8<=_0x26ce91['length']?_0x323478[_0x3ef455(0x632)](position+0x4):_0x26ce91[position+0x4]<<0x18|_0x26ce91[position+0x5]<<0x10|_0x26ce91[position+0x6]<<0x8|_0x26ce91[position+0x7],_0x45b11b|=_0xf4db66>>>0x1c,_0x4c7bd0<=0x6&&(_0xf4db66&=-0x10000),_0xf4db66=_0xf4db66<<0x4,_0x4c7bd0>0x8&&(_0xf4db66=_0xf4db66|_0x26ce91[position+0x8]>>0x4);else _0xf4db66=0x0;_0x1abf8c<0x10&&(_0x45b11b=_0x45b11b^0x7fffffff,_0xf4db66=~_0xf4db66);_0x14e5cc[_0x50930f]=_0x45b11b,_0x14e5cc[_0xa08e68]=_0xf4db66,_0x1e6bf6=_0x37dc68[0x0],position+=0x9;if(_0x4c7bd0>0x9&&_0x26ce91[position]>0x0){_0x1e6bf6=BigInt(_0x1e6bf6);let _0x441bc7=_0x45b11b>>0x14&0x7ff,_0x47bc65=_0x26ce91[position-0x1]&0xf;_0x1e6bf6+=BigInt(_0x47bc65)<<BigInt(_0x441bc7-0x437);while((_0x47bc65=_0x26ce91[position])>0x0&&position++<_0x2a6fc9){_0x1e6bf6+=BigInt(_0x47bc65&0x7f)<<BigInt((_0x3cc28f-position)*0x7+_0x441bc7-0x3f8);}}}}else{_0x1abf8c==0x1b&&position++;_0x1e6bf6=_0x26c130(_0x26ce91,_0x2a6fc9);if(position<_0x2a6fc9)position--;}while(position<_0x2a6fc9){if(_0x26ce91[position]===0x0)position++;if(_0x48b983)return _0xe9d65[_0x3ef455(0x2c5)]=position,_0x1e6bf6;let _0x55b929=_0x5a3157(_0x26ce91,position,_0x2a6fc9,!![]);if(_0x1e6bf6 instanceof Array)_0x1e6bf6[_0x3ef455(0x27f)](_0x55b929);else _0x1e6bf6=[_0x1e6bf6,_0x55b929];}return _0x1e6bf6;}const _0x4b16bb=()=>_0x495dc9=!![],_0xe9d65={'writeKey':_0x3cf6e4,'readKey':_0x5a3157,'enableNullTermination':_0x4b16bb};let _0x478014=[],_0xaa4464=0x0;const _0x5e44b8=typeof Buffer!=='undefined',_0x2f4cda=_0x5e44b8?Buffer[_0x24ac46(0x5fc)]:Uint8Array,_0x59b0e9=_0x520509=>{const _0x523e92=_0x24ac46;let _0x164e64;_0xaa4464+0x64>_0x478014[_0x523e92(0x788)]&&(_0x478014=new _0x2f4cda(0x2000),_0xaa4464=0x0,_0x164e64=!![]);try{let _0x3a9879=_0x478014[_0x523e92(0x848)](_0xaa4464,_0xaa4464=_0x3cf6e4(_0x520509,_0x478014,_0xaa4464));if(_0xaa4464>_0x478014[_0x523e92(0x788)]){if(_0x164e64)throw new Error(_0x523e92(0x295));return _0x59b0e9(_0x520509);}return _0x3a9879;}catch(_0x597b80){if(_0x164e64)throw _0x597b80;return _0xaa4464=_0x478014['length'],_0x59b0e9(_0x520509);}},_0x37d272=_0xeee60=>{return _0x5a3157(_0xeee60,0x0,_0xeee60['length']);},fromCharCode=String[_0x24ac46(0x4e3)];function _0x2f4c62(){const _0x294432=_0x24ac46;let _0x506d53=_0x294432(0x3f6),_0x185990=[];for(let _0x5359f2=0x0;_0x5359f2<0x30;_0x5359f2++){let _0x1623e0=fromCharCode((_0x5359f2&0xf)+0x61)+fromCharCode((_0x5359f2>>0x4)+0x61);_0x506d53+='\x0a\x09\x09let\x20'+_0x1623e0+_0x294432(0x787)+_0x1623e0+_0x294432(0x8f7)+_0x1623e0+'\x20>=\x200x80)\x20'+_0x1623e0+'\x20=\x20finishUtf8('+_0x1623e0+_0x294432(0x237)+_0x1623e0+_0x294432(0x1ca)+_0x1623e0+'\x20=\x20source[position++]\x0a\x09\x09\x09else\x0a\x09\x09\x09\x09return\x20fromCharCode('+_0x185990+_0x294432(0x6a8),_0x185990[_0x294432(0x27f)](_0x1623e0);}return _0x506d53+=_0x294432(0x67b)+_0x185990+_0x294432(0x343),_0x506d53;}const readString=typeof process!==_0x24ac46(0x312)&&process[_0x24ac46(0x522)]?function(_0x270f2a){let {setPosition:_0x214328,getPosition:_0x3b7926,readString:readString}=_0x270f2a;return _0x3b8d9e=>{_0x214328(position);let _0x18737c=readString(_0x3b8d9e);return position=_0x3b7926(),_0x18737c;};}(new Function(_0x24ac46(0x4e3),_0x24ac46(0x30f)+_0x2f4c62()+';return\x20{'+_0x24ac46(0x1e6)+'getPosition()\x20{\x20return\x20position\x20},'+_0x24ac46(0x6a3))(fromCharCode)):eval(_0x2f4c62());function _0x26c130(_0x4c13de,_0x2c86fa){if(_0x4c13de[_0x2c86fa]>0x0){let _0x1549b5=_0x4c13de[_0x2c86fa];try{return _0x4c13de[_0x2c86fa]=0x0,readString(_0x4c13de);}finally{_0x4c13de[_0x2c86fa]=_0x1549b5;}}else return readString(_0x4c13de);}function _0x5b7fa0(_0x4dcbbe,_0x4c5b48){const _0x1cf21c=_0x24ac46;if(typeof _0x4dcbbe==_0x1cf21c(0x7f6)){if(!_0x4dcbbe)return _0x4c5b48==null?0x0:-0x1;if(_0x4dcbbe[_0x1cf21c(0x28f)]){if(_0x4c5b48==null)return 0x1;else return _0x4c5b48[_0x1cf21c(0x28f)]?_0x4dcbbe[_0x1cf21c(0x28f)](_0x4c5b48):-0x1;}let _0x1b6162;if(_0x4c5b48 instanceof Array){let _0x1a8b94=0x0;while((_0x1b6162=_0x5b7fa0(_0x4dcbbe[_0x1a8b94],_0x4c5b48[_0x1a8b94]))==0x0&&_0x1a8b94<=_0x4dcbbe[_0x1cf21c(0x788)]){_0x1a8b94++;}return _0x1b6162;}_0x1b6162=_0x5b7fa0(_0x4dcbbe[0x0],_0x4c5b48);if(_0x1b6162==0x0&&_0x4dcbbe[_0x1cf21c(0x788)]>0x1)return 0x1;return _0x1b6162;}else{if(typeof _0x4dcbbe==typeof _0x4c5b48)return typeof _0x4dcbbe==='symbol'&&(_0x4dcbbe=Symbol[_0x1cf21c(0x76b)](_0x4dcbbe),_0x4c5b48=Symbol[_0x1cf21c(0x76b)](_0x4c5b48)),_0x4dcbbe<_0x4c5b48?-0x1:_0x4dcbbe===_0x4c5b48?0x0:0x1;else{if(typeof _0x4c5b48==_0x1cf21c(0x7f6)){if(_0x4c5b48 instanceof Array)return-_0x5b7fa0(_0x4c5b48,_0x4dcbbe);return 0x1;}else return _0xfc3919[typeof _0x4dcbbe]<_0xfc3919[typeof _0x4c5b48]?-0x1:0x1;}}}const _0xfc3919={'symbol':0x0,'undefined':0x1,'boolean':0x2,'number':0x3,'string':0x4},_0x57d039=null,_0x5ae76d=new Uint8Array([0xff]);return dist[_0x24ac46(0x330)]=_0x5ae76d,dist['MINIMUM_KEY']=_0x57d039,dist['compareKeys']=_0x5b7fa0,dist[_0x24ac46(0x80e)]=_0x4b16bb,dist[_0x24ac46(0x2f5)]=_0xe9d65,dist[_0x24ac46(0x2ce)]=_0x37d272,dist[_0x24ac46(0x580)]=_0x5a3157,dist[_0x24ac46(0x526)]=_0x59b0e9,dist['writeKey']=_0x3cf6e4,dist;}var keyenc,hasRequiredKeyenc;function requireKeyenc(){const _0x297021=_0xef081e;if(hasRequiredKeyenc)return keyenc;hasRequiredKeyenc=0x1;const {writeKey:_0xba1017}=requireDist(),_0x131d12=0x7ba,_0x41c5ae=0x1000;function _0x923947(_0x789517,_0x52ca47){const _0x7ff32a=_0x2fc2;switch(typeof _0x789517){case _0x7ff32a(0x43c):return _0x789517['length']<=_0x131d12&&_0x789517[_0x7ff32a(0x56c)]();case _0x7ff32a(0x559):case _0x7ff32a(0x699):return!![];case'object':if(_0x789517===null)return!![];if(Array[_0x7ff32a(0x888)](_0x789517)){if(_0x52ca47>0x8||_0x789517[_0x7ff32a(0x788)]>_0x131d12)return![];for(let _0x49a166=0x0;_0x49a166<_0x789517[_0x7ff32a(0x788)];_0x49a166++)if(!_0x923947(_0x789517[_0x49a166],_0x52ca47+0x1))return![];return!![];}return Buffer[_0x7ff32a(0x605)](_0x789517)&&_0x789517[_0x7ff32a(0x788)]<=_0x131d12;default:return![];}}function _0x519887(_0x2a048e,_0x5cfeca){const _0x56cd29=_0x2fc2,_0x37eb10=typeof _0x2a048e;if(_0x37eb10===_0x56cd29(0x43c)){if(_0x2a048e[_0x56cd29(0x788)]>=0x40||!_0x2a048e[_0x56cd29(0x56c)]()){if(!_0x923947(_0x2a048e,0x0))return-0x1;}}else{if(_0x37eb10!==_0x56cd29(0x559)){if(Array[_0x56cd29(0x888)](_0x2a048e)?_0x2a048e['length']===0x0||!_0x923947(_0x2a048e,0x0):!_0x923947(_0x2a048e,0x0))return-0x1;}}let _0x21cf5b;try{_0x21cf5b=_0xba1017(_0x2a048e,_0x5cfeca,0x0);}catch{return-0x1;}return _0x21cf5b>0x0&&_0x21cf5b<=_0x131d12?_0x21cf5b:-0x1;}return keyenc={'encodeKey':_0x519887,'KEY_BUF_SIZE':_0x41c5ae,'NO_FAST':Symbol(_0x297021(0x49f))},keyenc;}var okdbHlc,hasRequiredOkdbHlc;function requireOkdbHlc(){const _0x45c024=_0xef081e;if(hasRequiredOkdbHlc)return okdbHlc;hasRequiredOkdbHlc=0x1;const _0x2bb317=0x400,_0x94b9f1=_0x2bb317-0x1,_0x159c42=0xea60;function _0x1d6d8c(_0x44ea67,_0x2e8e73){const _0x202369=_0x2fc2;return _0x44ea67*_0x2bb317+Math[_0x202369(0x31f)](0x0,Math[_0x202369(0x439)](_0x2e8e73,_0x94b9f1));}function _0x41eab8(_0x4e3711){const _0x53ebfd=_0x2fc2,_0x2177b3=Math[_0x53ebfd(0x31f)](0x0,Number(_0x4e3711)||0x0),_0x4464a9=_0x2177b3%_0x2bb317,_0x55bb8c=(_0x2177b3-_0x4464a9)/_0x2bb317;return{'pt':_0x55bb8c,'l':_0x4464a9};}function _0x5e5cb9(_0x9554fe,_0x21841f=Date[_0x45c024(0x3d4)]()){const _0x2863ca=_0x45c024,{pt:_0x5b10a3,l:_0x38dc17}=_0x41eab8(_0x9554fe),_0x2fd9c7=Math[_0x2863ca(0x31f)](_0x5b10a3,_0x21841f),_0x5b1e34=_0x2fd9c7===_0x5b10a3?Math[_0x2863ca(0x439)](_0x38dc17+0x1,_0x94b9f1):0x0;return _0x1d6d8c(_0x2fd9c7,_0x5b1e34);}function _0x1892ed(_0x7dd50e,_0xb47afe,_0x4fa5a4=Date[_0x45c024(0x3d4)]()){const _0x4a11ae=_0x45c024,{pt:_0x37115c,l:_0x343ec4}=_0x41eab8(_0x7dd50e),{pt:_0x133bb1,l:_0x157f35}=_0x41eab8(_0xb47afe),_0x5b93df=Math[_0x4a11ae(0x31f)](_0x37115c,_0x133bb1,_0x4fa5a4);let _0x997070;if(_0x5b93df===_0x37115c&&_0x5b93df===_0x133bb1)_0x997070=Math['min'](Math[_0x4a11ae(0x31f)](_0x343ec4,_0x157f35)+0x1,_0x94b9f1);else{if(_0x5b93df===_0x37115c)_0x997070=Math[_0x4a11ae(0x439)](_0x343ec4+0x1,_0x94b9f1);else _0x5b93df===_0x133bb1?_0x997070=Math[_0x4a11ae(0x439)](_0x157f35+0x1,_0x94b9f1):_0x997070=0x0;}return _0x1d6d8c(_0x5b93df,_0x997070);}function _0x4fe8b7(_0x47f633,_0x28e6d){const _0x1e1d50=Number(_0x47f633)||0x0,_0x5348dc=Number(_0x28e6d)||0x0;if(_0x1e1d50<_0x5348dc)return-0x1;if(_0x1e1d50>_0x5348dc)return 0x1;return 0x0;}function _0x42d147(_0x433f7d){return _0x41eab8(_0x433f7d)['pt'];}return okdbHlc={'send':_0x5e5cb9,'recv':_0x1892ed,'compare':_0x4fe8b7,'toMs':_0x42d147,'encode':_0x1d6d8c,'decode':_0x41eab8,'SCALE':_0x2bb317,'L_MAX':_0x94b9f1,'DRIFT_MAX':_0x159c42},okdbHlc;}var env,hasRequiredEnv;function requireEnv(){const _0x374ff4=_0xef081e;if(hasRequiredEnv)return env;hasRequiredEnv=0x1;const {fromArray:_0x17cb10,chunkedRange:_0x2c13c5,pinnedChunks:_0x1fc9bd,claimPrefetch:_0x28d7d0}=requireIterable(),{reclass:_0xea790,NotImplementedNative:_0x15b955,OKDBError:_0x52ad52,optionsArg:_0x27406c}=requireErrors(),{OKDBViews:_0x3a53e7}=requireViews(),{OKDBQueue:_0x2b739c}=requireQueue(),{OKDBTimeMachine:_0x13ff99}=requireTimemachine(),_0x23178b=_0x3a1325=>{const _0x333ff3=_0x2fc2;try{return!_0x3a1325[_0x333ff3(0x8cf)]||_0x3a1325[_0x333ff3(0x8cf)][_0x333ff3(0x640)](_0x333ff3(0x4e7));}catch{return!![];}},{OKDBFiles:_0x540c13}=requireFiles(),{OKDBEngines:_0x59f20a,OKDBPipelines:_0x3f3ebb}=requireEngines(),{OKDBFunctions:_0x3d95bf}=requireFunctions(),_0x58b6f6=requireProcessor(),{RawDb:_0x29ee88}=requireRawdb(),_0x5de863=requireBridge();let _0x4ad9ba=null;const _0x1eb3db=()=>_0x4ad9ba||=requireOkdbTransaction(),_0x3eb6e3=(..._0x5d26a2)=>requireOkdbGuardedRange()[_0x374ff4(0x275)](..._0x5d26a2),_0x57b4e0=Buffer['from']([0xff]),_0x45dd4a=process.env.OKDB_NATIVE_RAW_READS!=='0',_0x5385f6=_0x45dd4a&&process.env.OKDB_NATIVE_FAST_GET!=='0',{NO_FAST:_0x4fc446}=requireKeyenc(),_0xdd3cc9=new Set(_0x45dd4a?[_0x374ff4(0x433),_0x374ff4(0x657),_0x374ff4(0x5e7),'getChanges','getKeys']:[]),_0x4559cc=new Set([_0x374ff4(0x292),'getEntry',_0x374ff4(0x2d2),_0x374ff4(0x433),_0x374ff4(0x541),_0x374ff4(0x73d),_0x374ff4(0x2e0),_0x374ff4(0x4bb),_0x374ff4(0x634),_0x374ff4(0x657),_0x374ff4(0x87c),_0x374ff4(0x5e7),_0x374ff4(0x5ea),_0x374ff4(0x278),'getClock',_0x374ff4(0x257),_0x374ff4(0x4c2),'now',_0x374ff4(0x512),_0x374ff4(0x416),_0x374ff4(0x259),_0x374ff4(0x32d),_0x374ff4(0x30b),_0x374ff4(0x59f),_0x374ff4(0x376),_0x374ff4(0x610),_0x374ff4(0x71e),_0x374ff4(0x6c9),'getSchema',_0x374ff4(0x5fa),_0x374ff4(0x8cd),_0x374ff4(0x871),_0x374ff4(0x5c8),_0x374ff4(0x31d),_0x374ff4(0x25a),_0x374ff4(0x3e9),_0x374ff4(0x4f1),_0x374ff4(0x686),'path','id',_0x374ff4(0x38e),_0x374ff4(0x52e),_0x374ff4(0x706),_0x374ff4(0x311),_0x374ff4(0x3b6)]),_0x4e96aa=new Set([_0x374ff4(0x77b),_0x374ff4(0x3cf),'reverse',_0x374ff4(0x419),_0x374ff4(0x64f),_0x374ff4(0x4ad),_0x374ff4(0x429),_0x374ff4(0x6fd),_0x374ff4(0x42a),_0x374ff4(0x5d0),'transaction',_0x374ff4(0x59b),_0x374ff4(0x5ce),_0x374ff4(0x779)]);function _0x56b7b1(_0x49d8da,_0x1d6f6b,_0x5c25ca){const _0x476d48=new Map();return(_0x5117ea,_0x7e0f82)=>{const _0x26ae10=_0x2fc2,_0x4c3365=JSON[_0x26ae10(0x754)](_0x7e0f82),_0x3a2e7c=_0x476d48[_0x26ae10(0x292)](_0x4c3365);if(_0x3a2e7c){if(_0x3a2e7c['state']==='pending')throw _0x200a25();_0x476d48[_0x26ae10(0x46b)](_0x4c3365);if(_0x3a2e7c[_0x26ae10(0x480)]==='err')throw _0x3a2e7c['value'];return _0x3a2e7c[_0x26ae10(0x744)];}const _0x492512=_0x5117ea(..._0x7e0f82);if(!_0x492512||typeof _0x492512['then']!==_0x26ae10(0x484))return _0x492512;const _0x49b822={'state':_0x26ae10(0x654),'value':undefined},_0x2b957f=(_0x3d0a9e,_0x27ad95)=>{const _0x4eebbd=_0x26ae10;_0x49b822['state']=_0x3d0a9e,_0x49b822['value']=_0x27ad95;if(_0x476d48[_0x4eebbd(0x292)](_0x4c3365)!==_0x49b822)return;setTimeout(()=>_0x476d48[_0x4eebbd(0x292)](_0x4c3365)===_0x49b822&&_0x476d48[_0x4eebbd(0x46b)](_0x4c3365),0x7530)[_0x4eebbd(0x8c7)]();try{_0x49d8da[_0x4eebbd(0x82e)][_0x4eebbd(0x5a1)](_0x4eebbd(0x3d2),null,_0x4eebbd(0x599),[_0x4eebbd(0x683),{'env':_0x49d8da['name'],'type':_0x1d6f6b,'field':_0x5c25ca}],!![]);}catch{}};_0x492512[_0x26ae10(0x458)](_0x590bad=>_0x2b957f('ok',_0x590bad),_0x274d36=>_0x2b957f(_0x26ae10(0x527),_0x274d36));for(let _0x446ad8=0x0;_0x446ad8<0x64&&_0x49b822['state']===_0x26ae10(0x654);_0x446ad8++)process[_0x26ae10(0x81a)]();if(_0x49b822['state']==='ok')return _0x49b822['value'];if(_0x49b822[_0x26ae10(0x480)]===_0x26ae10(0x527))throw _0x49b822[_0x26ae10(0x744)];_0x476d48[_0x26ae10(0x204)](_0x4c3365,_0x49b822);throw _0x200a25();};}function _0x200a25(){const _0x1d21dc=_0x374ff4;return Object[_0x1d21dc(0x7ac)](new Error(_0x1d21dc(0x7fd)),{'code':_0x1d21dc(0x7b4)});}class _0x38177b{constructor(_0x392b03,_0x6b63fa){const _0x3b6c61=_0x374ff4;this['okdb']=_0x392b03,this[_0x3b6c61(0x686)]=_0x6b63fa,this[_0x3b6c61(0x3d2)]=_0x392b03[_0x3b6c61(0x3d2)],this['log']=_0x392b03[_0x3b6c61(0x6d5)],this[_0x3b6c61(0x489)]=!![],this[_0x3b6c61(0x678)]=null,this[_0x3b6c61(0x59a)]=new _0x3a53e7(this),this[_0x3b6c61(0x882)]=new _0x58b6f6(this);if(!_0x6b63fa[_0x3b6c61(0x212)]('~')||_0x6b63fa[_0x3b6c61(0x2a1)](_0x3b6c61(0x2e9)))this['queue']=new _0x2b739c(this);if(!_0x6b63fa[_0x3b6c61(0x212)]('~'))this[_0x3b6c61(0x1c3)]=new _0x540c13(this);this[_0x3b6c61(0x1f1)]=new _0x3d95bf(_0x392b03,_0x6b63fa),this['engines']=new _0x59f20a(_0x392b03,_0x6b63fa,_0x392b03[_0x3b6c61(0x2af)]),this[_0x3b6c61(0x4d2)]=new _0x3f3ebb(_0x392b03,_0x6b63fa);if(!_0x6b63fa[_0x3b6c61(0x212)]('~')&&_0x392b03[_0x3b6c61(0x1cc)][_0x3b6c61(0x4e7)]&&_0x23178b(_0x392b03))this['timeMachine']=new _0x13ff99(this);_0x5de863[_0x3b6c61(0x536)](this[_0x3b6c61(0x844)],this);const _0x12705f=this;this[_0x3b6c61(0x27a)]={async 'transaction'(_0x395f62){const _0x53c114=_0x3b6c61,_0x13ba1b=[];_0x12705f[_0x53c114(0x678)]=_0x13ba1b;try{_0x395f62();}finally{_0x12705f['_txnBuf']=null;}return _0x12705f['okdb']['_wb']['enqueue'](_0x53c114(0x4f8),_0x12705f[_0x53c114(0x686)],_0x53c114(0x7dc),[_0x13ba1b]);},'drain'(){const _0x55a7ed=_0x3b6c61;return _0x12705f[_0x55a7ed(0x82e)][_0x55a7ed(0x7de)]['drain']();},'flushLmdb'(){const _0x23e68c=_0x3b6c61;return _0x12705f[_0x23e68c(0x82e)][_0x23e68c(0x7de)][_0x23e68c(0x504)]();},'markClosed'(){}};const _0x5cf9e3=new _0x29ee88(this,'');_0x5cf9e3[_0x3b6c61(0x7f2)]=()=>({'lastTxnId':this['_n'](_0x3b6c61(0x38e),[])}),Object[_0x3b6c61(0x43a)](_0x5cf9e3,'committed',{'get':()=>this[_0x3b6c61(0x82e)][_0x3b6c61(0x7de)]['drain'](),'configurable':!![]}),Object[_0x3b6c61(0x43a)](_0x5cf9e3,'flushed',{'get':()=>this[_0x3b6c61(0x82e)][_0x3b6c61(0x7de)]['drain'](),'configurable':!![]});const _0x95c3b6=_0x5cf9e3['get'][_0x3b6c61(0x76f)](_0x5cf9e3);_0x5cf9e3[_0x3b6c61(0x292)]=_0x1f4302=>_0x1f4302==='clock'?this['_n']('getClock',[null]):_0x95c3b6(_0x1f4302),this['db']=_0x5cf9e3;}async[_0x374ff4(0x5ca)](){const _0x2d0ef9=_0x374ff4;this[_0x2d0ef9(0x529)]=!![];}get[_0x374ff4(0x2b4)](){const _0x57dbd2=_0x374ff4;return new Map(this[_0x57dbd2(0x82e)][_0x57dbd2(0x5a1)]('db',null,'formerOrigins',[this[_0x57dbd2(0x686)]],![]));}get[_0x374ff4(0x48a)](){const _0x4f3445=_0x374ff4;return this['_typesDb']||(this[_0x4f3445(0x3ff)]=new _0x29ee88(this,_0x4f3445(0x1fa)));}[_0x374ff4(0x60e)](_0x8aaa0f){const _0x400870=_0x374ff4,_0xbeaf2d=this['typesDb'][_0x400870(0x292)](_0x8aaa0f);if(_0xbeaf2d===undefined||String(_0x8aaa0f)[_0x400870(0x212)](_0x400870(0x8a4))||String(_0x8aaa0f)[_0x400870(0x212)]('__fts:')){const {OKDBError:_0x122e05}=requireErrors();throw new _0x122e05(_0x400870(0x7ec)+_0x8aaa0f+'\x22\x20is\x20not\x20registered',_0x400870(0x296),{'type':_0x8aaa0f});}const _0x5d5e72=this,_0x3d4e89=new _0x29ee88(_0x5d5e72,_0x400870(0x373)+_0x8aaa0f+':index'),_0x3a0ab7=new Map();for(const _0x50e165 of _0x3d4e89[_0x400870(0x541)]()){const _0x3eaba4=_0x3d4e89['get'](_0x50e165)||{},_0x28c293={'parts':_0x50e165['split']('~'),'db':new _0x29ee88(_0x5d5e72,_0x400870(0x373)+_0x8aaa0f+':index:'+_0x50e165,{'dupSort':!![]})};if(_0x3eaba4['geoConfig'])_0x28c293[_0x400870(0x7a7)]=_0x3eaba4[_0x400870(0x7a7)];if(_0x3eaba4[_0x400870(0x5ef)])_0x28c293[_0x400870(0x5ef)]=!![];if(_0x3eaba4[_0x400870(0x1bb)])_0x28c293[_0x400870(0x1bb)]=!![];if(_0x3eaba4[_0x400870(0x4b5)])_0x28c293['createdBy']=_0x3eaba4[_0x400870(0x4b5)];_0x28c293['usedBy']=new Set((_0x3eaba4[_0x400870(0x220)]??[])[_0x400870(0x642)](_0x4a9079=>_0x4a9079[_0x400870(0x7af)]+':'+_0x4a9079[_0x400870(0x686)])),_0x3a0ab7[_0x400870(0x204)](_0x50e165,_0x28c293);}return{'root':new _0x29ee88(_0x5d5e72,_0x400870(0x373)+_0x8aaa0f),'data':new _0x29ee88(_0x5d5e72,_0x400870(0x373)+_0x8aaa0f+':data',{'useVersions':!![]}),'indexes':_0x3d4e89,'clockToChange':new _0x29ee88(_0x5d5e72,'type:'+_0x8aaa0f+':clockToChange'),'keyToChange':new _0x29ee88(_0x5d5e72,_0x400870(0x373)+_0x8aaa0f+_0x400870(0x342)),'fieldSchema':new Map(Object[_0x400870(0x84a)](_0xbeaf2d[_0x400870(0x569)]||{})['map'](([_0xf445ef,_0x6c29f9])=>[_0xf445ef,new Set(Array[_0x400870(0x888)](_0x6c29f9)?_0x6c29f9:[_0x6c29f9])])),'indexToDb':_0x3a0ab7,'ftsToDb':null,'schema':_0xbeaf2d[_0x400870(0x284)]||null,'defaultTTL':_0xbeaf2d[_0x400870(0x410)]||null};}get[_0x374ff4(0x301)](){const _0x33f3d3=_0x374ff4,_0x9a5cf8=this,_0x2ec630=()=>_0x9a5cf8[_0x33f3d3(0x416)]();return{'get':_0x173775=>{try{return _0x9a5cf8['_getType'](_0x173775);}catch{return undefined;}},'has':_0x154c67=>_0x2ec630()[_0x33f3d3(0x2a1)](_0x154c67),'keys':()=>_0x2ec630()[Symbol['iterator']](),get 'size'(){const _0x5870b4=_0x33f3d3;return _0x2ec630()[_0x5870b4(0x788)];}};}[_0x374ff4(0x5b8)](){return this['listTypes']();}get[_0x374ff4(0x3da)](){const _0x46356c=_0x374ff4;return this['_changeToClockDb']||(this[_0x46356c(0x680)]=new _0x29ee88(this,'changes'));}get[_0x374ff4(0x3a2)](){const _0xd574f6=_0x374ff4;return this[_0xd574f6(0x3a4)]||(this[_0xd574f6(0x3a4)]=new _0x29ee88(this,'clocks'));}[_0x374ff4(0x208)](_0x662e26){const _0x47f549=_0x374ff4;return this['_n'](_0x47f549(0x6e2),[_0x662e26]);}get['_noChangelog'](){const _0x183347=_0x374ff4;return!this['_n'](_0x183347(0x426),[],![]);}get[_0x374ff4(0x1e0)](){const _0x50bacb=_0x374ff4;return this['__syncOverride']!==undefined?this[_0x50bacb(0x7d1)]:this['_n'](_0x50bacb(0x426),[],![]);}set[_0x374ff4(0x1e0)](_0x58bb99){const _0x2b5439=_0x374ff4;this[_0x2b5439(0x7d1)]=_0x58bb99;}get[_0x374ff4(0x803)](){const _0x1e3a98=_0x374ff4;return this[_0x1e3a98(0x3e2)]||(this[_0x1e3a98(0x3e2)]=new(requireLock())[(_0x1e3a98(0x23d))](this['okdb'],'~system','compact',{'ttlMs':0xea60}));}get[_0x374ff4(0x844)](){const _0x396b90=_0x374ff4;return this[_0x396b90(0x85f)]??(this[_0x396b90(0x85f)]=this['_n'](_0x396b90(0x844),[]));}get['id'](){return this['_n']('id',[]);}get[_0x374ff4(0x209)](){const _0x1d0e99=_0x374ff4;return this[_0x1d0e99(0x82e)][_0x1d0e99(0x209)];}['_n'](_0x561b56,_0x2c9b7e){const _0x3820fa=_0x374ff4;return this[_0x3820fa(0x82e)][_0x3820fa(0x5a1)](_0x3820fa(0x4f8),this[_0x3820fa(0x686)],_0x561b56,_0x2c9b7e,!_0x4559cc['has'](_0x561b56));}[_0x374ff4(0x550)](_0x8169d0){const _0x2f9485=_0x374ff4;return this[_0x2f9485(0x82e)][_0x2f9485(0x36f)](_0x8169d0);}[_0x374ff4(0x299)](_0x44c9c3,_0xe7d514){const _0x476480=_0x374ff4;if(_0xdd3cc9['has'](_0x44c9c3===_0x476480(0x59f)?_0xe7d514[0x1]:_0x44c9c3))return this['okdb']['_callRows'](this[_0x476480(0x686)],_0x44c9c3,_0xe7d514);return this[_0x476480(0x82e)]['_callPacked'](_0x476480(0x4f8),this[_0x476480(0x686)],_0x44c9c3,_0xe7d514);}[_0x374ff4(0x7b5)](_0x3a0772={'useReadTransaction':![]}){return new(_0x1eb3db())(this,_0x3a0772);}async[_0x374ff4(0x592)](_0x4e5e80,_0x3523b9){const _0x96713c=_0x374ff4;return _0x1eb3db()[_0x96713c(0x2be)](this,_0x4e5e80,_0x3523b9);}[_0x374ff4(0x26b)](_0x1f41d1,_0x31601e){const _0x41b4a5=_0x374ff4;if(this['_txnBuf'])this[_0x41b4a5(0x678)]['push']({'action':_0x1f41d1,'args':_0x31601e});else this['_n'](_0x1f41d1,_0x31601e);}[_0x374ff4(0x820)](_0x374772,_0x4e81e1,_0x5d8840,_0x3063e4,_0x24fd42){const _0x4b2aa2=_0x374ff4;this['_low'](_0x4b2aa2(0x1dd),[_0x4e81e1,_0x5d8840,_0x3063e4,_0x24fd42]);}[_0x374ff4(0x2bf)](_0x73235,_0x5cf873,_0x264e7e,_0x14b899,_0x4e9ad8){const _0x26626c=_0x374ff4;this[_0x26626c(0x26b)]('update',[_0x5cf873,_0x264e7e,_0x14b899,_0x4e9ad8]);}[_0x374ff4(0x55a)](_0x537293,_0x4ddef3,_0x333483,_0x5b6922,_0x4778b5){const _0xfc5779=_0x374ff4;this['_low'](_0xfc5779(0x1c8),[_0x4ddef3,_0x333483,_0x5b6922,_0x4778b5]);}['_create'](_0x112bd9,_0x4f9afa,_0xf786d0,_0x5a9d4f,_0x5aae7d){const _0x2ba24d=_0x374ff4;this[_0x2ba24d(0x26b)](_0x2ba24d(0x1c2),[_0x4f9afa,_0xf786d0,_0x5a9d4f,_0x5aae7d]);}[_0x374ff4(0x5d5)](_0x366c7b,_0x4c83f9,_0x3a5282,_0x4fb986){const _0x20295b=_0x374ff4;this[_0x20295b(0x26b)](_0x20295b(0x28d),[_0x4c83f9,_0x3a5282,_0x4fb986]);}['_setTTL'](_0x426616,_0x4c1b23,_0x2d2f4d,_0x473f42){const _0x4673fd=_0x374ff4;this[_0x4673fd(0x26b)](_0x4673fd(0x383),[_0x4c1b23,_0x2d2f4d,_0x473f42]);}[_0x374ff4(0x7e4)](_0x4f1148,_0x3aa7d8,_0x196e2c){const _0x1521d4=_0x374ff4;this['_low'](_0x1521d4(0x41f),[_0x3aa7d8,_0x196e2c]);}['_w'](_0x4b2dc0,_0x2a477b){const _0x5693c9=_0x374ff4;return this[_0x5693c9(0x82e)][_0x5693c9(0x7de)]['enqueue'](_0x5693c9(0x4f8),this['name'],_0x4b2dc0,_0x2a477b);}['put'](_0x5c9442,_0x1c4ddd,_0xeec4c2,_0x415884={}){const _0x239fb7=_0x374ff4;return this['_w'](_0x239fb7(0x1dd),[_0x5c9442,_0x1c4ddd,_0xeec4c2,_0x415884]);}['update'](_0x2a6d5e,_0x10e4ff,_0x2a786c,_0x359547={}){const _0x21a6ef=_0x374ff4;return this['_w'](_0x21a6ef(0x739),[_0x2a6d5e,_0x10e4ff,_0x2a786c,_0x359547]);}['patch'](_0x14bb4c,_0x3d38ec,_0x69c5a7,_0x88cef3={}){return this['_w']('patch',[_0x14bb4c,_0x3d38ec,_0x69c5a7,_0x88cef3]);}[_0x374ff4(0x1c2)](_0x1d2b9e,_0x107814,_0x5f2bee,_0x38ce8b={}){const _0x3c4bcb=_0x374ff4;return this['_w'](_0x3c4bcb(0x1c2),[_0x1d2b9e,_0x107814,_0x5f2bee,_0x38ce8b]);}[_0x374ff4(0x28d)](_0x5d059f,_0x24f0ac,_0xbafc15={}){return this['_w']('remove',[_0x5d059f,_0x24f0ac,_0xbafc15]);}['get'](_0x14cf44,_0x3cc395,_0x26e21a){const _0x1d1290=_0x374ff4;if(_0x5385f6&&typeof _0x14cf44===_0x1d1290(0x43c)){const _0x2ee753=this[_0x1d1290(0x82e)][_0x1d1290(0x7cd)](this['name'],_0x14cf44,_0x3cc395);if(_0x2ee753!==_0x4fc446)return _0x2ee753===null?this['_n'](_0x1d1290(0x292),[_0x14cf44,_0x3cc395]):_0x2ee753;}if(_0x45dd4a&&(typeof _0x3cc395==='string'||typeof _0x3cc395===_0x1d1290(0x559))){const _0xf52438=this[_0x1d1290(0x82e)]['_getRaw'](this[_0x1d1290(0x686)],_0x14cf44,_0x3cc395);if(_0xf52438!==null)return _0xf52438;}return this['_n'](_0x1d1290(0x292),[_0x14cf44,typeof _0x3cc395===_0x1d1290(0x3e0)?null:_0x3cc395]);}['getMany'](_0xab06e5,_0x54429e,_0x3394f1){const _0x265b03=_0x374ff4,_0x2be00f=[_0xab06e5,Array[_0x265b03(0x888)](_0x54429e)&&_0x54429e[_0x265b03(0x3cc)](_0x18523d=>typeof _0x18523d===_0x265b03(0x3e0))?_0x54429e[_0x265b03(0x642)](_0x8530ed=>typeof _0x8530ed===_0x265b03(0x3e0)?null:_0x8530ed):_0x54429e];return _0x45dd4a?this['okdb'][_0x265b03(0x764)](this[_0x265b03(0x686)],_0x265b03(0x2d2),_0x2be00f):this['_n'](_0x265b03(0x2d2),_0x2be00f);}['getEntry'](_0xc5c9ce,_0xc658ed,_0x405733){const _0x53746c=_0x374ff4;return this['_n'](_0x53746c(0x408),[_0xc5c9ce,typeof _0xc658ed===_0x53746c(0x3e0)?null:_0xc658ed]);}['getCount'](_0x13ac49,_0x512999){const _0x2a0c84=_0x374ff4;return this['_assertRangeOptions'](_0x2a0c84(0x2e0),_0x512999),this['_n'](_0x2a0c84(0x2e0),[_0x13ac49,_0x300663(_0x512999)]);}[_0x374ff4(0x4c4)](_0x12e142,_0x20770b,_0x4f918f=[]){const _0xe4c2fe=_0x374ff4;if(!_0x20770b||typeof _0x20770b!==_0xe4c2fe(0x7f6))return;for(const _0x151f76 of Object[_0xe4c2fe(0x607)](_0x20770b)){if(!_0x4e96aa['has'](_0x151f76)&&!_0x4f918f[_0xe4c2fe(0x2a1)](_0x151f76))throw new _0x52ad52(_0x12e142+':\x20unknown\x20option\x20\x27'+_0x151f76+'\x27',_0xe4c2fe(0x32f),{'option':_0x151f76});}}['_range'](_0x4d63d7,_0x32f268,_0x5bf3dc,_0x4831fe,_0x11aaf2,_0x4226ae){const _0x56aa90=_0x374ff4;this[_0x56aa90(0x4c4)](_0x4d63d7,_0x4831fe);const _0x5f1f0a=_0x4831fe?.[_0x56aa90(0x5d0)],_0x41f4ab=_0x300663(_0x4831fe);if(_0x5f1f0a===!![]||_0x5f1f0a===_0x56aa90(0x827)){const _0x2069a1=this[_0x56aa90(0x500)](_0x4d63d7,_0x32f268,_0x1ea961=>[_0x5bf3dc,{..._0x41f4ab,..._0x1ea961}],_0x4831fe);return _0x4226ae?_0x2069a1[_0x56aa90(0x642)](_0x4226ae):_0x2069a1;}const _0x5af66d=_0x2c13c5(_0x5bfbcc=>this[_0x56aa90(0x299)](_0x32f268,[_0x5bf3dc,_0x5bfbcc]),_0x41f4ab,_0x11aaf2,{'rows':_0x32f268===_0x56aa90(0x433)});return _0x4226ae?_0x5af66d[_0x56aa90(0x642)](_0x4226ae):_0x5af66d;}[_0x374ff4(0x500)](_0x19dc96,_0x5df9c5,_0x30b8f7,_0x5b371d,_0x3b9ce5,_0x32b84d=![]){const _0x5a2ded=_0x374ff4,{source:_0x3d7695,prefetch:_0x5ea03f}=_0x1fc9bd((_0x4b615e,_0x41a765)=>_0x4b615e==='unpin'?this['_n'](_0x4b615e,_0x41a765):this[_0x5a2ded(0x299)](_0x4b615e,_0x41a765),_0x5df9c5,_0x30b8f7,_0x5b371d||{},_0x3b9ce5),_0x2fb5a7=_0x5ea03f(),_0x36397c=!_0x32b84d&&_0x5b371d&&_0x5b371d['snapshot']===_0x5a2ded(0x827);let _0x86bf4c=null;return _0x3eb6e3(()=>({[Symbol[_0x5a2ded(0x6a7)]]:()=>_0x86bf4c=_0x3d7695(0x0,_0x28d7d0(_0x2fb5a7))}),{'label':this[_0x5a2ded(0x686)]+':'+_0x19dc96,..._0x36397c?{'getTxnId':()=>this['db']['getStats']()[_0x5a2ded(0x38e)],'resume':()=>({[Symbol[_0x5a2ded(0x6a7)]]:()=>_0x86bf4c=_0x86bf4c[_0x5a2ded(0x2a0)]()})}:{}});}['getRange'](_0x24e140,_0x2179bf){const _0x44b5f7=_0x374ff4;return this[_0x44b5f7(0x2ff)]('getRange',_0x44b5f7(0x433),_0x24e140,_0x2179bf,_0x2eac15=>_0x2eac15[_0x44b5f7(0x59b)]);}['getKeys'](_0xbec68b,_0x561d64){const _0x3903f3=_0x374ff4;return this[_0x3903f3(0x2ff)](_0x3903f3(0x541),_0x3903f3(0x541),_0xbec68b,_0x561d64,_0x457ee0=>_0x457ee0);}[_0x374ff4(0x73d)](_0x2ccb6f,_0x37b153){const _0x5818c0=_0x374ff4;return this['_range'](_0x5818c0(0x73d),_0x5818c0(0x433),_0x2ccb6f,_0x37b153,_0x491002=>_0x491002[_0x5818c0(0x59b)],_0x41cec7=>_0x41cec7[_0x5818c0(0x744)]);}[_0x374ff4(0x4bb)](_0x33dd5c,_0x584330,_0x1628d8={}){const _0x30016a=_0x374ff4;return this[_0x30016a(0x433)](_0x33dd5c,{'start':_0x584330,'end':_0x584330+'￿',..._0x1628d8});}[_0x374ff4(0x634)](_0x2df3cb,_0x26f5fb,_0x387f16={}){const _0x12a778=_0x374ff4;this[_0x12a778(0x4c4)](_0x12a778(0x634),_0x387f16,['prefix']);const _0xbafa67=_0x300663(_0x387f16);if(_0x387f16&&_0x387f16['transaction'])return _0x17cb10(this['_n'](_0x12a778(0x634),[_0x2df3cb,_0x26f5fb,_0xbafa67]));return this[_0x12a778(0x500)](_0x12a778(0x634),_0x12a778(0x634),_0x4a2361=>[_0x2df3cb,_0x26f5fb,{..._0xbafa67,..._0x4a2361}],_0x387f16,undefined,!![]);}[_0x374ff4(0x657)](_0x30fb1d,_0x675053,_0x249bef){const _0x41f7a0=_0x374ff4;this[_0x41f7a0(0x4c4)]('byIndex',_0x249bef,['prefix','includeViolations']);const _0x4daeec=_0x300663(_0x249bef);if(_0x249bef&&_0x249bef[_0x41f7a0(0x7b5)])return _0x17cb10(this['_n'](_0x41f7a0(0x657),[_0x30fb1d,_0x675053,_0x4daeec]));return this['_lazyPinned'](_0x41f7a0(0x657),_0x41f7a0(0x657),_0x20a81d=>[_0x30fb1d,_0x675053,{..._0x4daeec,..._0x20a81d}],_0x249bef,undefined,!![]);}['countByIndex'](_0x4cf156,_0x7049b6,_0x12c66c={}){const _0xcc748a=_0x374ff4;return this['_n'](_0xcc748a(0x87c),[_0x4cf156,_0x7049b6,_0x300663(_0x12c66c)]);}[_0x374ff4(0x5e7)](_0x380ec2,_0x487121={},_0x4f35a9={}){const _0x19d960=_0x374ff4,_0x282c61=_0x1e72bf(_0x4f35a9);if(_0x4f35a9){for(const _0x5f4933 of Object[_0x19d960(0x607)](_0x4f35a9))if(_0x5f4933!==_0x19d960(0x805)&&typeof _0x4f35a9[_0x5f4933]===_0x19d960(0x484))_0x282c61[_0x5f4933]=null;}if(_0x4f35a9&&(_0x4f35a9['fts']||_0x4f35a9[_0x19d960(0x314)]))return this['_n'](_0x19d960(0x5ea),[_0x282c61]),this[_0x19d960(0x2e3)](_0x380ec2,_0x487121,_0x4f35a9);const _0x59b1ae=typeof _0x4f35a9[_0x19d960(0x805)]==='function'?_0x4f35a9['select']:null;if(_0x4f35a9[_0x19d960(0x407)]||_0x5f3d46(_0x487121)||_0x4f35a9[_0x19d960(0x7b5)]!==undefined){let _0x1b2779=this['_n'](_0x19d960(0x5e7),[_0x380ec2,_0x487121,_0x282c61]);if(_0x59b1ae)_0x1b2779=_0x1b2779['map'](_0x59b1ae);if(_0x4f35a9[_0x19d960(0x407)]||_0x5f3d46(_0x487121))return _0x1b2779;return _0x17cb10(_0x1b2779);}const _0x38f577=_0x110967=>typeof _0x110967===_0x19d960(0x559)&&Number[_0x19d960(0x6ae)](_0x110967)?Math[_0x19d960(0x31f)](0x0,_0x110967):Infinity;let _0x8db12e;if(_0x4f35a9['index']){const _0x24d82e=_0xabf6f2=>typeof _0xabf6f2===_0x19d960(0x559)&&_0xabf6f2>0x0?Math[_0x19d960(0x390)](_0xabf6f2):0x0;_0x8db12e=this[_0x19d960(0x500)](_0x19d960(0x5e7),'query',_0x5c5366=>[_0x380ec2,_0x487121,{..._0x282c61,..._0x5c5366}],null,{'limitOf':()=>_0x38f577(_0x282c61[_0x19d960(0x419)]),'offsetOf':()=>_0x24d82e(_0x282c61[_0x19d960(0x64f)])});}else _0x8db12e=_0x2c13c5(_0x53fd13=>{const _0x2d7187=_0x19d960,{__after:_0x50e61f,..._0x324940}=_0x53fd13;return this[_0x2d7187(0x299)]('query',_0x50e61f===undefined?[_0x380ec2,_0x487121,_0x324940]:[_0x380ec2,_0x487121,_0x324940,_0x50e61f]);},_0x282c61,_0x311412=>_0x311412[_0x19d960(0x59b)],{'limitOf':_0x38f577,'rows':!![],'prefetch':!![],'resumeOpts':(_0x29965e,_0x5eb903)=>{const _0x2dc46b=_0x19d960;_0x29965e[_0x2dc46b(0x64f)]=0x0,_0x29965e[_0x2dc46b(0x1cf)]=_0x5eb903;}});return _0x59b1ae?_0x8db12e[_0x19d960(0x642)](_0x59b1ae):_0x8db12e;}async[_0x374ff4(0x2e3)](_0x138a06,_0x161d09,_0x144bfc){const _0x727aa5=_0x374ff4,{select:_0x455459,..._0x46fed1}=_0x1e72bf(_0x144bfc);let _0x18d927={..._0x46fed1};const _0x3c040b=_0x18d927[_0x727aa5(0x4bd)];if(_0x3c040b&&!Array[_0x727aa5(0x888)](_0x3c040b)&&typeof _0x3c040b===_0x727aa5(0x7f6)&&_0x3c040b[_0x727aa5(0x569)]){const {fields:_0x320e3a,prefix:_0xf6ee0a,start:_0x412f0d,end:_0x27ae99}=_0x3c040b;_0x18d927={..._0x18d927,'index':_0x320e3a,'prefix':_0xf6ee0a??_0x18d927[_0x727aa5(0x779)],'startIndex':_0x412f0d??_0x18d927[_0x727aa5(0x40d)],'endIndex':_0x27ae99??_0x18d927[_0x727aa5(0x392)]};}const _0x34b5e4=await this[_0x727aa5(0x82e)]['_callMacro']('embeddings',null,_0x727aa5(0x25e),[this[_0x727aa5(0x686)],_0x138a06,_0x161d09,_0x18d927],![]),_0x4e1542=typeof _0x144bfc['select']===_0x727aa5(0x484)?_0x144bfc[_0x727aa5(0x805)]:null;if(!_0x4e1542)return _0x34b5e4;return _0x34b5e4[_0x727aa5(0x642)](_0x3cf1ea=>{const _0x125e2e=_0x727aa5,{score:_0x5465b5,ftsScore:_0x3d8573,numTerms:_0x567d75,maxScore:_0x308a61,vectorScore:_0x248abf,chunkHash:_0x4f2379,chunk:_0x45c3d6,..._0x595443}=_0x3cf1ea,_0x101272=_0x4e1542(_0x595443);for(const [_0x58e9c5,_0x17a82a]of Object[_0x125e2e(0x84a)]({'score':_0x5465b5,'ftsScore':_0x3d8573,'numTerms':_0x567d75,'maxScore':_0x308a61,'vectorScore':_0x248abf,'chunkHash':_0x4f2379,'chunk':_0x45c3d6}))if(_0x17a82a!==undefined)_0x101272[_0x58e9c5]=_0x17a82a;return _0x101272;});}[_0x374ff4(0x278)](_0x4aadc1,_0x1ad220,_0x4193b0={}){const _0x37b7aa=_0x374ff4;let _0x3dcd1f=this['_n']('geoQuery',[_0x4aadc1,_0x1ad220,_0x1e72bf(_0x4193b0)]);if(typeof _0x4193b0[_0x37b7aa(0x805)]===_0x37b7aa(0x484))_0x3dcd1f=_0x3dcd1f[_0x37b7aa(0x642)](_0x4193b0[_0x37b7aa(0x805)]);return _0x3dcd1f;}[_0x374ff4(0x73c)](_0x307683=null,_0x305125={}){const _0x326358=_0x374ff4;return this['_n'](_0x326358(0x73c),[_0x307683]);}[_0x374ff4(0x257)](_0xbeaf85=null,_0x453fda=0x0,_0x6bdb93=Number[_0x374ff4(0x346)],_0x27245e={}){const _0x3fd5fe=_0x374ff4,_0x17f4b1=_0x300663(_0x27245e);if(_0x27245e&&_0x27245e['transaction'])return _0x17cb10(this['_n'](_0x3fd5fe(0x257),[_0xbeaf85,_0x453fda,_0x6bdb93,_0x17f4b1]));return this[_0x3fd5fe(0x500)](_0x3fd5fe(0x257),_0x3fd5fe(0x257),_0x24322d=>[_0xbeaf85,_0x453fda,_0x6bdb93,{..._0x17f4b1,..._0x24322d}],_0x27245e);}['count'](_0x41eb1d){const _0x3fe65c=_0x374ff4;if(Array[_0x3fe65c(0x888)](_0x41eb1d))return _0x41eb1d[_0x3fe65c(0x788)];let _0x36e215=0x0;for(const _0x2e0308 of _0x41eb1d)_0x36e215++;return _0x36e215;}*[_0x374ff4(0x4e5)](_0xd057cf){yield*_0xd057cf;}[_0x374ff4(0x3d4)](){const _0x2045f6=_0x374ff4;return requireOkdbHlc()[_0x2045f6(0x590)](this[_0x2045f6(0x537)]);}get[_0x374ff4(0x4e9)](){const _0x39a87b=_0x374ff4,_0x1359ae=this[_0x39a87b(0x82e)][_0x39a87b(0x489)]?this['okdb']['_call']('db',null,'ttlTimer',[this[_0x39a87b(0x686)]],![]):null;if(!_0x1359ae)return null;if(this['__ttlCancelledGen']===_0x1359ae[_0x39a87b(0x66c)])return null;this[_0x39a87b(0x300)]=this['_timerObjs']||new Map();let _0x58587f=this['_timerObjs'][_0x39a87b(0x292)](_0x1359ae[_0x39a87b(0x66c)]);if(!_0x58587f){const _0xf7fe=this;_0x58587f={'ref'(){},'unref'(){},'hasRef':()=>![],'gen':_0x1359ae[_0x39a87b(0x66c)],'at':_0x1359ae['at'],'target':_0x1359ae[_0x39a87b(0x7a2)],get '_destroyed'(){const _0x43b95b=_0x39a87b,_0x5aabaa=_0xf7fe[_0x43b95b(0x82e)]['_isOpen']?_0xf7fe[_0x43b95b(0x82e)][_0x43b95b(0x5a1)]('db',null,_0x43b95b(0x307),[_0xf7fe[_0x43b95b(0x686)]],![]):null;return!_0x5aabaa||_0x5aabaa[_0x43b95b(0x66c)]!==this['gen']||_0xf7fe[_0x43b95b(0x61f)]===this[_0x43b95b(0x66c)];}},this[_0x39a87b(0x300)][_0x39a87b(0x204)](_0x1359ae['gen'],_0x58587f);}return _0x58587f;}[_0x374ff4(0x88c)](){const _0x1275d6=_0x374ff4,_0x1d3088=this[_0x1275d6(0x82e)][_0x1275d6(0x5a1)]('db',null,_0x1275d6(0x307),[this[_0x1275d6(0x686)]],![]);if(_0x1d3088)this['__ttlCancelledGen']=_0x1d3088[_0x1275d6(0x66c)];}get[_0x374ff4(0x7bc)](){const _0x487c55=_0x374ff4,_0x27cb71=this[_0x487c55(0x82e)][_0x487c55(0x5a1)]('db',null,_0x487c55(0x307),[this[_0x487c55(0x686)]],![]);return _0x27cb71?_0x27cb71['target']:null;}get[_0x374ff4(0x745)](){const _0x55d711=_0x374ff4;return this['okdb'][_0x55d711(0x5a1)]('db',null,'autoCompactTimerArmed',[this[_0x55d711(0x686)]],![])?{'ref'(){},'unref'(){}}:null;}['_startAutoCompactCheck'](){const _0x2a9a09=_0x374ff4;this['okdb'][_0x2a9a09(0x5a1)]('db',null,_0x2a9a09(0x2e1),[this[_0x2a9a09(0x686)]],![]);}[_0x374ff4(0x5a7)](){const _0x3eb8f4=_0x374ff4;this[_0x3eb8f4(0x82e)]['_call']('db',null,_0x3eb8f4(0x7b1),[this['name']],![]);}get[_0x374ff4(0x215)](){const _0x5a7bae=_0x374ff4,_0xabbf1b=(_0x232ad,_0x397527)=>this['okdb']['_call']('db',null,_0x232ad,[this[_0x5a7bae(0x686)],..._0x397527],![]),_0x277bd5=Object['keys'](_0xabbf1b(_0x5a7bae(0x638),[])||{}),_0x2331c0={};for(const _0x4a81c1 of _0x277bd5)Object['defineProperty'](_0x2331c0,_0x4a81c1,{'enumerable':!![],'get':()=>_0xabbf1b('autoCompactState',[])?.[_0x4a81c1],'set':_0x3b1c8f=>{const _0x2bfbe4=_0x5a7bae;_0xabbf1b(_0x2bfbe4(0x598),[_0x4a81c1,_0x3b1c8f]);}});return _0x2331c0;}get[_0x374ff4(0x537)](){const _0x3649d5=_0x374ff4;return this['_n'](_0x3649d5(0x52e),[]);}['equal'](_0x583798,_0x36f460){const _0x4545bf=_0x374ff4;return require$$16[_0x4545bf(0x6df)](_0x583798,_0x36f460);}async[_0x374ff4(0x1ba)](_0xc13ae1,_0x2d8d51){const _0x436c6f=_0x374ff4;return this[_0x436c6f(0x550)](this['_n'](_0x436c6f(0x1ba),[_0xc13ae1]));}[_0x374ff4(0x512)](_0xb02c4c){const _0xe64308=_0x374ff4;return this['_n'](_0xe64308(0x512),[_0xb02c4c]);}[_0x374ff4(0x416)](){const _0x5c6002=_0x374ff4;return this['_n'](_0x5c6002(0x416),[]);}async[_0x374ff4(0x3bf)](_0x1a3bae,_0x53e23b){const _0x2562db=_0x374ff4;return this[_0x2562db(0x550)](this['_n'](_0x2562db(0x3bf),[_0x1a3bae]));}async[_0x374ff4(0x353)](_0xcc2046,_0x3df1c2){const _0x448e69=_0x374ff4,{timestamp:_0x2ffdc3,indexes:indexes=[]}=_0x27406c(_0x3df1c2);return this['_wsettle'](this['_n'](_0x448e69(0x353),[_0xcc2046,{'indexes':indexes}]));}async['ensure'](_0x3622a9){const _0x49f0cc=_0x374ff4,{type:_0x3898f7,indexes:indexes=[],fts:fts=[],views:views=[],schema:schema=null}=_0x27406c(_0x3622a9,'spec');if(!_0x3898f7)throw new Error('ensure:\x20type\x20is\x20required');await this[_0x49f0cc(0x353)](_0x3898f7,{'indexes':indexes});for(const _0x398149 of fts){const {name:_0x19582c,fields:_0x36a452,..._0x48a19b}=_0x398149;if(!_0x19582c||!_0x36a452)throw new Error(_0x49f0cc(0x3c6));await this[_0x49f0cc(0x82e)]['fts'][_0x49f0cc(0x50d)](_0x3898f7,_0x19582c,{'fields':_0x36a452,..._0x48a19b},this);}for(const _0x250834 of views){const {name:_0x82610b,definition:_0x3e1a10}=_0x250834;if(!_0x82610b||!_0x3e1a10)throw new Error(_0x49f0cc(0x8a2));if(!await this[_0x49f0cc(0x59a)][_0x49f0cc(0x790)](_0x82610b))await this[_0x49f0cc(0x59a)][_0x49f0cc(0x1c2)](_0x82610b,_0x3e1a10);}if(schema)await this[_0x49f0cc(0x63e)](_0x3898f7,schema);}async[_0x374ff4(0x488)](_0x364c3f,_0x3a77e5,_0xd5872f){const _0x113e79=_0x374ff4,_0x1f5da1=this['_n'](_0x113e79(0x6d6),[_0x364c3f,_0x3a77e5,typeof _0xd5872f==='object'?_0xd5872f:{}]);if(!_0x1f5da1)return this[_0x113e79(0x550)](undefined);const _0x259828=this['_n'](_0x113e79(0x8ac),[_0x364c3f,_0x3a77e5,!![]]);if(_0x259828===undefined)return this[_0x113e79(0x550)](undefined);return this['_wsettle'](await this[_0x113e79(0x49c)](_0x364c3f,_0x3a77e5,_0x259828));}async[_0x374ff4(0x49c)](_0x467c39,_0x4b2b69,_0x1db422){const _0x19d391=_0x374ff4,_0x1b22e9=_0x467c39+'@'+[][_0x19d391(0x6f2)](_0x4b2b69)[_0x19d391(0x8a0)]('~');if(!this['_indexBuilds'])this['_indexBuilds']=new Map();const _0x1b847d=this[_0x19d391(0x227)][_0x19d391(0x292)](_0x1b22e9);if(_0x1b847d)return _0x1b847d;const _0x550fd8=((async()=>{const _0x2bdd67=_0x19d391;do await new Promise(_0x53739b=>setImmediate(_0x53739b));while(!this['_n'](_0x2bdd67(0x44e),[_0x467c39,_0x4b2b69,_0x1db422,!![]]));})());this['_indexBuilds'][_0x19d391(0x204)](_0x1b22e9,_0x550fd8);try{return await _0x550fd8;}finally{this['_indexBuilds'][_0x19d391(0x46b)](_0x1b22e9);}}async['dropIndex'](_0x312222,_0x11f144,_0x1e2261){const _0x291152=_0x374ff4;return this[_0x291152(0x550)](this['_n']('dropIndex',[_0x312222,_0x11f144]));}async[_0x374ff4(0x8ce)](_0x24397b,_0x5f334e,_0x74e32d){const _0x4c9831=_0x374ff4,_0x2d63f3=this[_0x4c9831(0x227)]&&this[_0x4c9831(0x227)][_0x4c9831(0x292)](_0x24397b+'@'+[][_0x4c9831(0x6f2)](_0x5f334e)[_0x4c9831(0x8a0)]('~'));if(_0x2d63f3)return _0x2d63f3;const _0x342080=this['_n'](_0x4c9831(0x8ac),[_0x24397b,_0x5f334e,_0x74e32d]);if(_0x342080===undefined)return;return await new Promise(_0x112896=>setImmediate(_0x112896)),this[_0x4c9831(0x550)](await this[_0x4c9831(0x49c)](_0x24397b,_0x5f334e,_0x342080));}['hasIndex'](_0x58d9ce,_0x1c6d7d){const _0x1e6dc1=_0x374ff4;return this['_n'](_0x1e6dc1(0x259),[_0x58d9ce,_0x1c6d7d]);}[_0x374ff4(0x32d)](_0x1ee933,_0x21d0b0){const _0x33085a=_0x374ff4;return this['_n'](_0x33085a(0x32d),[_0x1ee933,_0x21d0b0]);}async[_0x374ff4(0x7e2)](_0x20a6fe,_0x5113bf){const _0x2af500=_0x374ff4;if(this['_n'](_0x2af500(0x32d),[_0x20a6fe,_0x5113bf])===_0x2af500(0x8c9))return!![];let _0x4bc8e4=0xa;for(;;){await new Promise(_0x4997fe=>setTimeout(_0x4997fe,_0x4bc8e4));if(!this[_0x2af500(0x82e)][_0x2af500(0x489)]||this['_closedHandle'])return![];let _0x438bbc;try{_0x438bbc=this['_n']('getIndexMeta',[_0x20a6fe,Array[_0x2af500(0x888)](_0x5113bf)?_0x5113bf['join']('~'):String(_0x5113bf)[_0x2af500(0x359)](',')[_0x2af500(0x8a0)]('~')]);}catch{return![];}const _0x388fe8=_0x438bbc&&_0x438bbc['status'];if(_0x388fe8===_0x2af500(0x8c9))return!![];if(_0x388fe8===undefined)return![];_0x4bc8e4=Math[_0x2af500(0x439)](_0x4bc8e4*0x2,0xfa);}}['getIndexMeta'](_0x22c724,_0x3c7c30){return this['_n']('getIndexMeta',[_0x22c724,_0x3c7c30])??null;}[_0x374ff4(0x610)](_0x485798,_0x303dec){const _0x5e01d1=_0x374ff4;return this['_n'](_0x5e01d1(0x610),[_0x485798,_0x303dec]);}[_0x374ff4(0x71e)](_0x2a8eb3,_0x1c5d53){const _0x125a9a=_0x374ff4;return this['_n'](_0x125a9a(0x71e),[_0x2a8eb3,_0x1c5d53]);}[_0x374ff4(0x6c9)](_0x57c269,_0x379b57,_0x94b300){return this['_n']('getUniqueViolation',[_0x57c269,_0x379b57,_0x94b300])??null;}[_0x374ff4(0x78d)](_0x57c917){return this['_n']('getSchema',[_0x57c917])??null;}async['setSchema'](_0xa73919,_0x46f985){const _0x4f557c=_0x374ff4;return this[_0x4f557c(0x550)](this['_n'](_0x4f557c(0x63e),[_0xa73919,_0x46f985]));}async[_0x374ff4(0x42d)](_0x44eff8){const _0x4c3086=_0x374ff4;return this[_0x4c3086(0x550)](this['_n']('dropSchema',[_0x44eff8]));}[_0x374ff4(0x5fa)](_0x37637c,_0x82f44a){return this['_n']('getViolation',[_0x37637c,_0x82f44a])??null;}[_0x374ff4(0x8cd)](_0x45665e){return this['_n']('listViolations',[_0x45665e]);}[_0x374ff4(0x871)](_0xa403af,_0x5559b3,_0xdd3bc6){return this['_n']('getRefViolation',[_0xa403af,_0x5559b3,_0xdd3bc6])??null;}[_0x374ff4(0x5c8)](_0x3bad4f){const _0x58d1dd=_0x374ff4;return this['_n'](_0x58d1dd(0x5c8),[_0x3bad4f]);}async['setTTL'](_0x5b7525,_0x52d03a,_0x15ee8f){const _0x1aa155=_0x374ff4;return this[_0x1aa155(0x550)](this['_n'](_0x1aa155(0x383),[_0x5b7525,_0x52d03a,_0x15ee8f]));}[_0x374ff4(0x31d)](_0x234321,_0x3af5c4){const _0x243da7=_0x374ff4;return this['_n'](_0x243da7(0x31d),[_0x234321,_0x3af5c4]);}async[_0x374ff4(0x41f)](_0x220ceb,_0x1a4330){return this['_wsettle'](this['_n']('clearTTL',[_0x220ceb,_0x1a4330]));}async[_0x374ff4(0x84e)](_0x427326){const _0x211f11=_0x374ff4;return this['_n'](_0x211f11(0x84e),[_0x427326]);}[_0x374ff4(0x25a)](_0x3a6843={}){const _0x1c8886=_0x374ff4;return this['_n'](_0x1c8886(0x25a),[_0x3a6843]);}[_0x374ff4(0x3e9)](_0x5764ec){const _0x1d85dd=_0x374ff4;return this['_n'](_0x1d85dd(0x3e9),[_0x5764ec]);}async[_0x374ff4(0x6e7)](_0x406be2,_0x3ed4d9){const _0x91458a=_0x374ff4;return this[_0x91458a(0x550)](this['_n'](_0x91458a(0x6e7),[_0x406be2,_0x3ed4d9]));}[_0x374ff4(0x4f1)](_0x21d775){const _0x21c474=_0x374ff4;return this['_n'](_0x21c474(0x4f1),[_0x21d775]);}async[_0x374ff4(0x613)](_0x182d8f){const _0x34d95c=_0x374ff4;return this[_0x34d95c(0x550)](this['_n'](_0x34d95c(0x613),[_0x182d8f]));}async['resolveField'](_0x53c9f4,_0x1c667e,_0x4f8a48,_0x8b9af4){const _0x399ec5=_0x374ff4,{batch:batch=null,batchSize:_0xf6b6dc}=_0x27406c(_0x8b9af4);if(typeof _0x53c9f4!==_0x399ec5(0x43c)||!_0x53c9f4)throw new _0x52ad52(_0x399ec5(0x38c),_0x399ec5(0x290));if(typeof _0x1c667e!==_0x399ec5(0x43c)||!_0x1c667e)throw new _0x52ad52(_0x399ec5(0x293),_0x399ec5(0x290));if(_0x4f8a48!=null&&typeof _0x4f8a48!=='function')throw new _0x52ad52(_0x399ec5(0x539),_0x399ec5(0x290));if(batch!=null&&typeof batch!==_0x399ec5(0x484))throw new _0x52ad52('resolveField:\x20options.batch\x20must\x20be\x20a\x20function','BAD_PARAM');if(!_0x4f8a48&&!batch)throw new _0x52ad52(_0x399ec5(0x601),_0x399ec5(0x290));if(_0xf6b6dc!==undefined&&!(Number[_0x399ec5(0x6ae)](_0xf6b6dc)&&_0xf6b6dc>0x0))throw new _0x52ad52(_0x399ec5(0x7a0),_0x399ec5(0x290));const _0x273240=batch?async _0x248e8e=>(await batch(_0x248e8e))[_0x399ec5(0x642)](_0x142763=>_0x142763 instanceof Error?{'__error':!![],'message':_0x142763['message']}:_0x142763):null,_0x33629b=_0x56b7b1(this,_0x53c9f4,_0x1c667e),_0x1b9177=this['_n']('resolveField',[_0x53c9f4,_0x1c667e,_0x4f8a48?(_0xc57987,_0x47b1e1)=>_0x33629b(_0x4f8a48,[_0xc57987,_0x47b1e1]):null,{'batch':_0x273240?_0x34dfa1=>_0x33629b(_0x273240,[_0x34dfa1]):null,'batchSize':_0xf6b6dc}]);return()=>this['_n'](_0x399ec5(0x6f5),[_0x1b9177]);}async[_0x374ff4(0x66f)](_0x51bf03,_0x49aeee){const _0x32d9c8=_0x374ff4;return this['_n'](_0x32d9c8(0x66f),[_0x51bf03,_0x49aeee]);}[_0x374ff4(0x706)](_0x4fe970){const _0x30713d=_0x374ff4;return this['_n'](_0x30713d(0x706),[_0x4fe970]);}async[_0x374ff4(0x311)](_0x45e237,_0x54e933,_0x56559a,_0x147a70){const _0x312d10=_0x374ff4;return this['okdb'][_0x312d10(0x517)]('env',this[_0x312d10(0x686)],_0x312d10(0x311),[_0x45e237,_0x54e933,_0x56559a,_0x147a70],![]);}async[_0x374ff4(0x3b6)](_0x253d57,_0x13a2f8,_0x33d235){const _0x2787d2=_0x374ff4;return this[_0x2787d2(0x82e)][_0x2787d2(0x517)](_0x2787d2(0x4f8),this[_0x2787d2(0x686)],_0x2787d2(0x3b6),[_0x253d57,_0x13a2f8,_0x33d235],![]);}[_0x374ff4(0x297)](){}[_0x374ff4(0x726)](_0x2d5b38,_0x4d80a5,_0x5646f6,_0x3fee24={},_0x1d9b82={}){const _0x466db1=_0x374ff4;return this['okdb'][_0x466db1(0x5a1)](_0x466db1(0x658),null,_0x466db1(0x726),[_0x2d5b38,_0x4d80a5,_0x5646f6,_0x3fee24,_0x1d9b82,this[_0x466db1(0x686)]],![]);}get['fts'](){const _0x24a5fd=_0x374ff4;return this[_0x24a5fd(0x82e)][_0x24a5fd(0x658)];}[_0x374ff4(0x8ba)](){const _0x17cc73=_0x374ff4;return this[_0x17cc73(0x82e)]['_call'](_0x17cc73(0x4f8),this[_0x17cc73(0x686)],'getResolvedOptions',[],![]);}[_0x374ff4(0x2ea)](){const _0xb75361=_0x374ff4;return this[_0xb75361(0x82e)][_0xb75361(0x2ea)]();}['writerStatus'](){const _0x3ae944=_0x374ff4;return this[_0x3ae944(0x82e)]['_call'](_0x3ae944(0x4f8),this[_0x3ae944(0x686)],'writerStatus',[],![]);}[_0x374ff4(0x711)](){}get['locks'](){const _0x1fe819=_0x374ff4;return this[_0x1fe819(0x5c7)]||(this[_0x1fe819(0x5c7)]=new(requireLock())[(_0x1fe819(0x23d))](this['okdb'],this[_0x1fe819(0x686)],_0x1fe819(0x4f8)));}['storageStats'](){const _0x16ab37=_0x374ff4;return this[_0x16ab37(0x82e)][_0x16ab37(0x5a1)]('env',this[_0x16ab37(0x686)],'storageStats',[],![]);}[_0x374ff4(0x1bc)](_0x30f9a8){const _0x2c9b1f=_0x374ff4;this['_n'](_0x2c9b1f(0x1ba),[_0x30f9a8]);}[_0x374ff4(0x510)](_0x515eed){const _0x7edeb6=_0x374ff4;this['_n'](_0x7edeb6(0x44b),[_0x515eed]);}['_ttlState'](){return this['_n']('ttlState',[]);}[_0x374ff4(0x6f8)](_0x925394,_0x480e24){return _0x925394+'\x09'+_0x480e24;}['_ttlParseComposite'](_0x4aa189){const _0x3b887b=_0x374ff4,_0x2487b0=_0x4aa189[_0x3b887b(0x691)]('\x09');return{'type':_0x4aa189[_0x3b887b(0x848)](0x0,_0x2487b0),'key':_0x4aa189['slice'](_0x2487b0+0x1)};}get[_0x374ff4(0x281)](){const _0x21ff32=_0x374ff4;if(!this[_0x21ff32(0x7f0)]()[_0x21ff32(0x4b3)])return null;return this['__ttlByKey']||(this[_0x21ff32(0x2ee)]=new _0x29ee88(this,'~ttl:key'));}get[_0x374ff4(0x83b)](){const _0x57a9db=_0x374ff4;if(!this[_0x57a9db(0x7f0)]()[_0x57a9db(0x4b3)])return null;return this['__ttlByExpiry']||(this[_0x57a9db(0x8e0)]=new _0x29ee88(this,'~ttl:expiry',{'dupSort':!![]}));}[_0x374ff4(0x649)](_0xb3e157,_0x868614,_0xee674f){this['_n']('ttlSetEntry',[_0xb3e157,_0x868614,_0xee674f]);}['_isExpired'](_0xaba0be,_0x2657f5){const _0x13430b=_0x374ff4,_0x1a539a=this['_ttlByKey']?.[_0x13430b(0x292)](this[_0x13430b(0x6f8)](_0xaba0be,_0x2657f5));return _0x1a539a!=null&&_0x1a539a<=Date[_0x13430b(0x3d4)]();}get[_0x374ff4(0x6e5)](){const _0x2681f7=_0x374ff4;return this[_0x2681f7(0x7f0)]()[_0x2681f7(0x7fc)]??null;}get[_0x374ff4(0x250)](){const _0xb78fb9=_0x374ff4;return this[_0xb78fb9(0x7f0)]()[_0xb78fb9(0x421)]||0x0;}get[_0x374ff4(0x86b)](){return![];}['_scheduleTTLSweep'](){}async[_0x374ff4(0x58f)](_0x1e30a2,_0x59688d){const _0x1622b7=_0x374ff4;if(this[_0x1622b7(0x228)]){const {OKDBError:_0x1abe47}=requireErrors();throw new _0x1abe47(_0x1622b7(0x761),'REBUILD_IN_PROGRESS');}this[_0x1622b7(0x228)]=!![];try{return await this[_0x1622b7(0x82e)][_0x1622b7(0x517)](_0x1622b7(0x4f8),this['name'],_0x1e30a2,[_0x59688d],!![]);}finally{this['_rebuilding']=![];}}async['compact'](_0x4401d2={}){const _0x3a542c=_0x374ff4;return this[_0x3a542c(0x58f)](_0x3a542c(0x2de),_0x4401d2);}async[_0x374ff4(0x1da)](_0x565cb6={}){const _0x5b26ff=_0x374ff4;return this[_0x5b26ff(0x58f)](_0x5b26ff(0x1da),_0x565cb6);}}_0x38177b['HIGH_SENTINEL']=_0x57b4e0;function _0x5f3d46(_0x5e0df8){const _0x3fd953=_0x374ff4;if(!_0x5e0df8||typeof _0x5e0df8!==_0x3fd953(0x7f6))return![];for(const _0x44b149 of Object['keys'](_0x5e0df8)){const _0x5b6987=_0x5e0df8[_0x44b149];if(_0x5b6987&&typeof _0x5b6987===_0x3fd953(0x7f6)&&(_0x5b6987[_0x3fd953(0x2d4)]||_0x5b6987['$within']))return!![];}return![];}function _0x300663(_0x2b7050){const _0x3e7d90=_0x374ff4;if(!_0x2b7050||typeof _0x2b7050!==_0x3e7d90(0x7f6))return{};const _0x51b120={};for(const _0x370d9c of Object[_0x3e7d90(0x607)](_0x2b7050)){if(_0x370d9c==='transaction'||_0x370d9c==='snapshot')continue;_0x51b120[_0x370d9c]=_0x2b7050[_0x370d9c];}return _0x51b120;}function _0x1e72bf(_0x5187f9){const _0x5c84f4=_0x374ff4;if(!_0x5187f9||typeof _0x5187f9!=='object')return{};const _0x2d3584={};for(const _0x4e6afa of Object[_0x5c84f4(0x607)](_0x5187f9)){if(typeof _0x5187f9[_0x4e6afa]===_0x5c84f4(0x484))continue;_0x2d3584[_0x4e6afa]=_0x5187f9[_0x4e6afa];}return _0x2d3584;}return env={'OKDBEnv':_0x38177b,'HIGH_SENTINEL':_0x57b4e0},env;}var unsupported,hasRequiredUnsupported;function requireUnsupported(){if(hasRequiredUnsupported)return unsupported;hasRequiredUnsupported=0x1;const {NotImplementedNative:_0x3514b1}=requireErrors();function _0x3685fb(_0x5020b4){const _0x5afb18=_0x1f7680=>{throw new _0x3514b1(_0x5020b4,_0x1f7680);};return new Proxy(function(){},{'get'(_0x37bd21,_0x242d86){const _0x2c406e=_0x2fc2;if(typeof _0x242d86===_0x2c406e(0x3e0)||_0x242d86==='then'||_0x242d86===_0x2c406e(0x233)||_0x242d86===_0x2c406e(0x619))return undefined;if(_0x242d86===_0x2c406e(0x226))return _0x5020b4;return(..._0x32a474)=>_0x5afb18(_0x5020b4+'.'+String(_0x242d86));},'apply'(){_0x5afb18(_0x5020b4);},'set'(){return!![];}});}return unsupported={'notImplemented':_0x3685fb},unsupported;}var http,hasRequiredHttp;function requireHttp(){const _0x3af161=_0xef081e;if(hasRequiredHttp)return http;hasRequiredHttp=0x1;function _0x5dd2b9(_0x5bb7c9,_0x3d31e8={}){const _0x5afc64=_0x2fc2,_0x363648=[];let _0x52b5e3=![];_0x5bb7c9['endsWith']('/*')&&(_0x52b5e3=!![],_0x5bb7c9=_0x5bb7c9[_0x5afc64(0x848)](0x0,-0x2),_0x363648[_0x5afc64(0x27f)]('*'));let _0x2f952d=_0x5bb7c9[_0x5afc64(0x6fc)](/\/+$/,'')[_0x5afc64(0x6fc)](/\[([^\]]*)\]/g,(_0x5e68d5,_0x90fb94)=>{const _0x1dab0e=_0x5afc64,_0x33a19f=_0x90fb94[_0x1dab0e(0x6fc)](/\/:(\w+)(?:=([^/\]\s]*))?/g,(_0xf725c9,_0x577a21)=>{const _0x22ec1b=_0x1dab0e;return _0x363648[_0x22ec1b(0x27f)](_0x577a21),_0x22ec1b(0x5e9);});return _0x1dab0e(0x31a)+_0x33a19f+')?';})[_0x5afc64(0x6fc)](/\/:(\w+)/g,(_0x2c78f7,_0x27b1f9)=>{const _0x1081b9=_0x5afc64;return _0x363648[_0x1081b9(0x27f)](_0x27b1f9),_0x1081b9(0x5e9);});if(_0x2f952d==='')_0x2f952d='/';return{'keys':_0x363648,'defaults':_0x3d31e8||{},'wildcard':_0x52b5e3,'regex':new RegExp('^'+_0x2f952d+(_0x52b5e3?_0x5afc64(0x558):'')+_0x5afc64(0x6b8))};}const _0x1e2795=require$$0$3,{PassThrough:_0x431520}=require$$1;function _0x27f9af(_0x21019c){const _0x53ce50=_0x2fc2,_0x475d58=_0x21019c[_0x53ce50(0x2e5)](':'),_0x3f5c13=_0x21019c['slice'](0x0,_0x475d58)[_0x53ce50(0x6fc)](/^\[|\]$/g,'');return{'address':_0x3f5c13,'family':_0x3f5c13[_0x53ce50(0x2a1)](':')?_0x53ce50(0x4d9):_0x53ce50(0x86a),'port':Number(_0x21019c['slice'](_0x475d58+0x1))};}class _0x13cfe2 extends _0x1e2795[_0x3af161(0x1eb)]{constructor(_0x16b129,_0x2429b1){const _0x1cb9fd=_0x3af161;super(),this['_http']=_0x16b129,this[_0x1cb9fd(0x58d)]=_0x27f9af(_0x2429b1),this[_0x1cb9fd(0x65d)]=!![],this[_0x1cb9fd(0x5ba)]=setInterval(()=>{},0x7fffffff);}get[_0x3af161(0x65d)](){const _0x16a870=_0x3af161;return this[_0x16a870(0x57b)];}set[_0x3af161(0x65d)](_0x49137b){const _0x4587a9=_0x3af161;this[_0x4587a9(0x57b)]=_0x49137b;}[_0x3af161(0x595)](){const _0x57e335=_0x3af161;return this[_0x57e335(0x65d)]?{...this[_0x57e335(0x58d)]}:null;}[_0x3af161(0x6c6)](){const _0x2b7103=_0x3af161;if(this[_0x2b7103(0x5ba)])clearInterval(this[_0x2b7103(0x5ba)]);this[_0x2b7103(0x5ba)]=null;}[_0x3af161(0x5ca)](_0x4e7ef4){const _0x41d984=_0x3af161;this[_0x41d984(0x6c6)]();const _0x5927e9=this[_0x41d984(0x574)][_0x41d984(0x5ca)]();if(_0x4e7ef4)_0x5927e9[_0x41d984(0x458)](()=>_0x4e7ef4(),_0x4e7ef4);return this;}['ref'](){const _0x3ff3ec=_0x3af161;return this[_0x3ff3ec(0x5ba)]?.['ref'](),this;}['unref'](){const _0x144bc2=_0x3af161;return this[_0x144bc2(0x5ba)]?.['unref'](),this;}}class _0xa044e4{constructor(_0x49dcbd){const _0x340556=_0x3af161;this[_0x340556(0x82e)]=_0x49dcbd,this['servers']=[],this[_0x340556(0x65c)]={'cookieName':_0x340556(0x345)};}get[_0x3af161(0x3f9)](){const _0x68a04e=_0x3af161;return this[_0x68a04e(0x329)][0x0]||null;}['_n'](_0x21611e,_0x2a86ff=[]){const _0x3dd9fa=_0x3af161;return this['okdb'][_0x3dd9fa(0x517)]('http',null,_0x21611e,_0x2a86ff,!![]);}async[_0x3af161(0x336)](_0x222fc3,_0x55e88d,_0x1454ed={},_0x563e5e={}){const _0x45faed=_0x3af161;let _0x5f0f94=await this['_n'](_0x45faed(0x336),[_0x222fc3,_0x55e88d,_0x1454ed,_0x563e5e]),_0x5dbc6c=0x0;return _0x5f0f94=await this['_settle'](_0x5f0f94,_0x5dbc6c),_0x5f0f94;}async[_0x3af161(0x3e1)](_0x3c9fdf,_0x3c9d6d){const _0xff1ab1=_0x3af161;while(_0x3c9fdf&&typeof _0x3c9fdf===_0xff1ab1(0x7f6)&&_0x3c9fdf[_0xff1ab1(0x7d7)]!==undefined){await new Promise(_0x3860dc=>setTimeout(_0x3860dc,_0x3c9d6d<0x5?0x1:0x5)),_0x3c9d6d++,_0x3c9fdf=await this['_n'](_0xff1ab1(0x441),[_0x3c9fdf['$pending']]);}if(_0x3c9fdf&&_0x3c9fdf[_0xff1ab1(0x4d6)]&&typeof _0x3c9fdf[_0xff1ab1(0x4d6)]===_0xff1ab1(0x7f6)&&_0x3c9fdf['body']['$streamId']!==undefined)_0x3c9fdf['body']=this[_0xff1ab1(0x8e3)](_0x3c9fdf[_0xff1ab1(0x4d6)][_0xff1ab1(0x63b)]);return _0x3c9fdf;}[_0x3af161(0x8e3)](_0x48b4f5){const _0x35339f=_0x3af161,_0x1e241a=new _0x431520();let _0x3955bc=![];const _0x37286d=()=>{const _0x37912e=_0x2fc2;if(_0x3955bc)return;_0x3955bc=!![],clearTimeout(_0x25537d),setImmediate(()=>this[_0x37912e(0x82e)][_0x37912e(0x489)]&&this[_0x37912e(0x82e)][_0x37912e(0x5a1)](_0x37912e(0x73f),null,_0x37912e(0x255),[_0x48b4f5],!![]));};let _0x25537d=null;const _0x1794b2=()=>{const _0x43909a=_0x2fc2;if(_0x3955bc)return;let _0x18a865;try{_0x18a865=this[_0x43909a(0x82e)][_0x43909a(0x5a1)](_0x43909a(0x73f),null,_0x43909a(0x30c),[_0x48b4f5],!![]);}catch{_0x18a865={'chunks':[],'end':!![]};}for(const _0x421d8f of _0x18a865[_0x43909a(0x757)])_0x1e241a['write'](_0x421d8f);if(_0x18a865[_0x43909a(0x3cf)]){_0x3955bc=!![],_0x1e241a[_0x43909a(0x3cf)]();return;}_0x25537d=setTimeout(_0x1794b2,_0x18a865[_0x43909a(0x757)][_0x43909a(0x788)]?0x0:0xa);};_0x1e241a['on'](_0x35339f(0x5ca),_0x37286d),_0x1794b2();if(!_0x3955bc)_0x1794b2();if(_0x3955bc)_0x1e241a[_0x35339f(0x4ee)]();else{if(!_0x25537d)_0x25537d=setTimeout(_0x1794b2,0x0);}return _0x1e241a;}[_0x3af161(0x77d)](_0x3e9605,_0x256ecf,_0x185456,_0x180bee={}){const _0x14d6b9=_0x3af161;return this[_0x14d6b9(0x82e)]['_call'](_0x14d6b9(0x73f),null,'add',[_0x3e9605,_0x256ecf,_0x185456,_0x180bee,![]],!![]),this;}['addRaw'](_0x15d1b8,_0x2d1954,_0x51574e,_0x4ecc36={}){const _0x52496c=_0x3af161;return this[_0x52496c(0x82e)]['_call'](_0x52496c(0x73f),null,_0x52496c(0x77d),[_0x15d1b8,_0x2d1954,_0x51574e,_0x4ecc36,!![]],!![]),this;}[_0x3af161(0x645)](_0xa5c3f7,_0x597cd4){const _0x2979f7=_0x3af161,_0x1229be=async _0x11df19=>{const _0x2f239b=_0x2fc2,_0x412758={'status':undefined,'headers':[],'hasBody':![],'body':undefined},_0x412709={'status'(_0x26e893){const _0x453083=_0x2fc2;return _0x412758[_0x453083(0x442)]=_0x26e893,_0x412709;},'setHeader'(_0x2c41fa,_0x4d0212){const _0x507ccf=_0x2fc2;_0x412758['headers'][_0x507ccf(0x27f)]([_0x2c41fa,_0x4d0212]);},'send'(_0x3ff9c5){const _0x3b256d=_0x2fc2;_0x412758[_0x3b256d(0x468)]=!![],_0x412758[_0x3b256d(0x4d6)]=_0x3ff9c5;}};_0x11df19[_0x2f239b(0x693)]={'remoteAddress':_0x11df19[_0x2f239b(0x7b3)]??null};const _0x5eb21e=await _0x597cd4(_0x11df19,_0x412709);return{'allowed':_0x5eb21e!==![],..._0x412758};};this[_0x2979f7(0x82e)][_0x2979f7(0x5a1)]('http',null,'guard',[_0xd207a=>!!_0xa5c3f7(_0xd207a),_0x1229be],!![]);}['use'](_0x5a9202){const _0x5c25fc=_0x3af161,_0x3f70db=async _0x5a43eb=>{const _0x4fdcba=_0x2fc2,_0xd6a2d9={'status':undefined,'headers':[],'hasBody':![],'body':undefined};let _0x3de6fb=![];const _0x1c5faa={'status'(_0x15e871){const _0xeb0752=_0x2fc2;return _0xd6a2d9[_0xeb0752(0x442)]=_0x15e871,_0x1c5faa;},'setHeader'(_0x47169e,_0x364e61){const _0x4f25a7=_0x2fc2;_0xd6a2d9['headers'][_0x4f25a7(0x27f)]([_0x47169e,_0x364e61]);},'send'(_0x3ac1f5){const _0x145c14=_0x2fc2;_0xd6a2d9[_0x145c14(0x468)]=!![],_0xd6a2d9['body']=_0x3ac1f5;}};return _0x5a43eb['socket']={'remoteAddress':_0x5a43eb[_0x4fdcba(0x7b3)]??null},await _0x5a9202(_0x5a43eb,_0x1c5faa,async()=>{_0x3de6fb=!![];}),{'allowed':_0x3de6fb,..._0xd6a2d9};};return this['okdb']['_call'](_0x5c25fc(0x73f),null,_0x5c25fc(0x5d1),[_0x3f70db],!![]),this;}get['maxBodyBytes'](){const _0x3e65aa=_0x3af161;return this['okdb']['_call'](_0x3e65aa(0x73f),null,_0x3e65aa(0x817),[],![]);}set[_0x3af161(0x8af)](_0x2b214d){const _0x32f9f1=_0x3af161;this[_0x32f9f1(0x82e)][_0x32f9f1(0x5a1)](_0x32f9f1(0x73f),null,_0x32f9f1(0x472),[Number(_0x2b214d)],![]);}[_0x3af161(0x846)](_0x419cfa,_0x15ab97,_0x5293f4={}){const _0x4c782b=_0x3af161,_0x52ee71=new Map(),_0x3de090=(_0x2da19d,_0x10778f)=>this[_0x4c782b(0x82e)][_0x4c782b(0x5a1)]('http',null,_0x2da19d,_0x10778f,![]),_0x13ecb1=_0x59e004=>{const _0x18a3e9=_0x4c782b,{connId:_0x5dd525}=_0x59e004;if(_0x59e004[_0x18a3e9(0x41c)]){const _0x3990ff=_0x52ee71['get'](_0x5dd525);_0x52ee71['delete'](_0x5dd525);if(typeof _0x3990ff===_0x18a3e9(0x484))_0x3990ff();return;}const _0x1b7187=(_0x10c140,_0x18946d,_0x1dfe14={})=>{const _0x44570e=_0x18a3e9;try{_0x3de090(_0x44570e(0x46d),[_0x5dd525,_0x10c140,_0x18946d,_0x1dfe14]);}catch{}},_0x36d87d=()=>{try{_0x3de090('sseClose',[_0x5dd525]);}catch{}},_0x5418d3=(_0x34e06a,_0xf4c9)=>_0x3de090(_0x18a3e9(0x273),[_0x5dd525,String(_0x34e06a),String(_0xf4c9)]),_0x35f66b={'auth':{'open':_0x59e004['authOpen'],'isAuthenticated':_0x59e004['authenticated']}},_0xe21ace=_0x15ab97({'send':_0x1b7187,'close':_0x36d87d,'params':_0x59e004[_0x18a3e9(0x473)]??{},'query':_0x59e004[_0x18a3e9(0x5e7)]??{},'headers':_0x59e004['headers']??{},'context':_0x35f66b,'setHeader':_0x5418d3});_0x52ee71[_0x18a3e9(0x204)](_0x5dd525,_0xe21ace);};return this[_0x4c782b(0x82e)][_0x4c782b(0x5a1)](_0x4c782b(0x73f),null,_0x4c782b(0x846),[_0x419cfa,_0x13ecb1,_0x5293f4],!![]),this;}get[_0x3af161(0x890)](){return this['listRoutes']();}[_0x3af161(0x614)](){const _0x35a58f=_0x3af161;return this['okdb'][_0x35a58f(0x5a1)](_0x35a58f(0x73f),null,'listRoutes',[],![])[_0x35a58f(0x642)](_0xa49411=>({..._0xa49411,'matcher':_0x5dd2b9(_0xa49411[_0x35a58f(0x844)],_0xa49411[_0x35a58f(0x37e)])}));}[_0x3af161(0x381)](_0x269c33,_0x28fb7e){const _0x1d4ea7=_0x3af161;return this[_0x1d4ea7(0x82e)][_0x1d4ea7(0x5a1)](_0x1d4ea7(0x73f),null,_0x1d4ea7(0x381),[_0x269c33,_0x28fb7e],![]);}[_0x3af161(0x8f5)](_0x218e27,_0x448af2={}){const _0x540804=_0x3af161;if(typeof _0x448af2===_0x540804(0x43c)||Array[_0x540804(0x888)](_0x448af2))_0x448af2={'host':_0x448af2};_0x448af2=_0x448af2??{};if((Number(_0x448af2['workers'])||0x0)>=0x1||_0x448af2[_0x540804(0x6f6)]!=null||_0x448af2[_0x540804(0x234)]!=null){const _0x301ed5=new Error(_0x540804(0x402)+_0x540804(0x8db)+_0x540804(0x54c)+_0x540804(0x7e0));_0x301ed5[_0x540804(0x1bd)]='HTTP_CLUSTER_REMOVED';throw _0x301ed5;}if(this[_0x540804(0x329)][_0x540804(0x788)])throw new Error(_0x540804(0x560));const _0x561388=_0x448af2[_0x540804(0x687)]==null?[undefined]:[][_0x540804(0x6f2)](_0x448af2[_0x540804(0x687)]);if(!_0x561388[_0x540804(0x788)]||_0x561388[_0x540804(0x3cc)](_0x2df50f=>_0x2df50f!==undefined&&(typeof _0x2df50f!==_0x540804(0x43c)||!_0x2df50f))){const _0x1a3714=new Error(_0x540804(0x6a9));_0x1a3714[_0x540804(0x1bd)]=_0x540804(0x555);throw _0x1a3714;}const _0x30bd18=require$$2[_0x540804(0x8d1)]?{..._0x448af2,'reuseport':!![]}:_0x448af2,_0x24f9c3=this['okdb'][_0x540804(0x5a1)](_0x540804(0x73f),null,_0x540804(0x8f5),[_0x218e27,_0x30bd18],!![]),_0x42768c=_0x24f9c3['port']??_0x218e27,_0x1975cb=_0x448af2[_0x540804(0x687)]==null?':'+_0x42768c:_0x561388[_0x540804(0x642)](_0x5eab50=>(_0x5eab50[_0x540804(0x2a1)](':')?'['+_0x5eab50+']':_0x5eab50)+':'+_0x42768c)[_0x540804(0x8a0)](',\x20');try{this[_0x540804(0x82e)][_0x540804(0x6f9)][_0x540804(0x814)](_0x1975cb);if(!require(_0x540804(0x6b7))[_0x540804(0x8d1)])this[_0x540804(0x82e)][_0x540804(0x6f9)][_0x540804(0x594)]({'kind':'standalone','listenAddr':_0x1975cb});}catch{}this['servers']=_0x24f9c3['addrs'][_0x540804(0x642)](_0x50ce2c=>new _0x13cfe2(this,_0x50ce2c));const _0x44595d=this[_0x540804(0x329)][0x0];return process[_0x540804(0x2e2)](()=>this[_0x540804(0x329)][_0x540804(0x8de)](_0x884100=>_0x884100[_0x540804(0x599)](_0x540804(0x65d)))),_0x44595d;}async[_0x3af161(0x5ca)](_0x2b8611={}){const _0x19ed1a=_0x3af161,_0x57db7d=this[_0x19ed1a(0x329)];this[_0x19ed1a(0x329)]=[];if(require$$2[_0x19ed1a(0x8d1)]&&!process[_0x19ed1a(0x1ff)]&&_0x2b8611['forceAfterMs']==null)_0x2b8611={..._0x2b8611,'forceAfterMs':Infinity};if(_0x57db7d['length']){const _0x1a244a=_0x2b8611[_0x19ed1a(0x74b)]===Infinity?Infinity:Number[_0x19ed1a(0x52f)](_0x2b8611[_0x19ed1a(0x74b)])?Math[_0x19ed1a(0x31f)](0x0,_0x2b8611['forceAfterMs']):0x3e8,_0x3785e8=Date[_0x19ed1a(0x3d4)]();while(this[_0x19ed1a(0x82e)]['_call'](_0x19ed1a(0x73f),null,_0x19ed1a(0x75e),[],!![])>0x0&&Date[_0x19ed1a(0x3d4)]()-_0x3785e8<_0x1a244a)await new Promise(_0x4c95e2=>setTimeout(_0x4c95e2,0x5));_0x2b8611={..._0x2b8611,'forceAfterMs':_0x1a244a===Infinity?0x3e8:Math[_0x19ed1a(0x31f)](0x0,_0x1a244a-(Date[_0x19ed1a(0x3d4)]()-_0x3785e8))};}await this['_n'](_0x19ed1a(0x5ca),[_0x2b8611]);for(const _0x187917 of _0x57db7d){_0x187917[_0x19ed1a(0x6c6)](),_0x187917[_0x19ed1a(0x65d)]=![],_0x187917[_0x19ed1a(0x599)](_0x19ed1a(0x5ca));}}}return http={'OKDBHttp':_0xa044e4},http;}var fts,hasRequiredFts;function requireFts(){const _0x205568=_0xef081e;if(hasRequiredFts)return fts;hasRequiredFts=0x1;const _0x42eaf9=_0x2d16d5=>(_0x2d16d5&&typeof _0x2d16d5===_0x205568(0x7f6)?_0x2d16d5[_0x205568(0x686)]:_0x2d16d5)??'default';class _0x2b1588{constructor(_0x3b8974){const _0x49bec4=_0x205568;this[_0x49bec4(0x82e)]=_0x3b8974;}['_n'](_0x49366a,_0xf30220,_0x3424ea=![]){const _0x6a96a7=_0x205568;return this[_0x6a96a7(0x82e)][_0x6a96a7(0x5a1)](_0x6a96a7(0x658),null,_0x49366a,_0xf30220,_0x3424ea);}['_nm'](_0x3ed2a4,_0x45cd3f){const _0x3aacb8=_0x205568;return this[_0x3aacb8(0x82e)][_0x3aacb8(0x517)](_0x3aacb8(0x658),null,_0x3ed2a4,_0x45cd3f,!![]);}get[_0x205568(0x542)](){const _0x2d8335=this,_0x300632=_0x25dc98=>{const _0x5c718c=_0x2fc2,_0x5c8b03=_0x25dc98[_0x5c718c(0x691)](':'),_0x1093ee=_0x25dc98[_0x5c718c(0x848)](0x0,_0x5c8b03),_0x36fd67=_0x2d8335[_0x5c718c(0x82e)][_0x5c718c(0x75a)][_0x5c718c(0x292)](_0x1093ee);if(!_0x36fd67)return undefined;const _0x24e264=_0x36fd67[_0x5c718c(0x882)][_0x5c718c(0x328)]()[_0x5c718c(0x24c)](_0x44f590=>_0x44f590['cursorKey']===_0x5c718c(0x35a)+_0x25dc98);if(!_0x24e264)return undefined;return _0x36fd67[_0x5c718c(0x882)][_0x5c718c(0x2df)](_0x24e264['id'],_0x24e264[_0x5c718c(0x7c8)]);};return{'get':_0x300632,'has':_0xcce0e=>!!_0x300632(_0xcce0e)};}get[_0x205568(0x563)](){return[];}['_envIndexDb'](){const _0x5ca376=_0x205568,{RawDb:_0x53abac}=requireRawdb();return new _0x53abac(this[_0x5ca376(0x82e)]['_systemEnv'],'~fts:envs');}[_0x205568(0x396)](_0x15a6a3,_0x1a9f6c,_0x1471d7){const _0x1c2302=_0x205568;return this['_n'](_0x1c2302(0x396),[_0x15a6a3,_0x1a9f6c,_0x42eaf9(_0x1471d7)]);}['status'](_0x56f655,_0x21db11,_0x10387d){return this['_n']('status',[_0x56f655,_0x21db11,_0x42eaf9(_0x10387d)]);}['list'](_0x3f3654,_0x5cb2a3){return this['_n']('list',[_0x3f3654,_0x42eaf9(_0x5cb2a3)]);}async[_0x205568(0x5e1)](_0x5e1498,_0x278bae,_0x37846c,_0x5a52a8,_0x4cc523){const _0x5484e0=_0x205568,_0x1558c8=(_0xc6450c,_0xdcb204)=>this['okdb'][_0x5484e0(0x517)]('fts',null,_0xc6450c,_0xdcb204,!![],![]),_0x11617e=Date[_0x5484e0(0x3d4)]()+0x1d4c0;let _0x242463=_0x5e1498,_0x136dac=_0x278bae;for(;;){try{return await _0x1558c8(_0x242463,_0x136dac);}catch(_0xce9f4f){if(_0xce9f4f[_0x5484e0(0x1bd)]===_0x5484e0(0x6cb)){_0x242463='buildStep',_0x136dac=[_0x37846c,_0x5a52a8,_0x42eaf9(_0x4cc523)];if(_0xce9f4f['details']&&_0xce9f4f['details']['wait'])await new Promise(_0x256189=>setTimeout(_0x256189,0x2));continue;}if(_0xce9f4f[_0x5484e0(0x1bd)]!=='FIELD_RESOLVER_PENDING'||Date[_0x5484e0(0x3d4)]()>=_0x11617e)throw _0xce9f4f;}await new Promise(_0x55889e=>setTimeout(_0x55889e,0x5)),_0x242463='reset',_0x136dac=[_0x37846c,_0x5a52a8,!![],_0x42eaf9(_0x4cc523)];}}async['register'](_0x4fa195,_0x4177f0,_0x1ebeae,_0x8cf114,_0x810ee5){const _0x59a1bd=_0x205568;return this[_0x59a1bd(0x5e1)](_0x59a1bd(0x594),[_0x4fa195,_0x4177f0,_0x1ebeae,_0x8cf114,_0x42eaf9(_0x810ee5)],_0x4fa195,_0x4177f0,_0x810ee5);}async[_0x205568(0x48e)](_0x14e5a0,_0x22afa,_0x34a281){return this['_nm']('drop',[_0x14e5a0,_0x22afa,_0x42eaf9(_0x34a281)]);}async[_0x205568(0x50d)](_0x59fd72,_0x442885,_0x5c9d8f,_0x273a43){const _0x3086d5=_0x205568;return this[_0x3086d5(0x5e1)](_0x3086d5(0x50d),[_0x59fd72,_0x442885,_0x5c9d8f,_0x42eaf9(_0x273a43)],_0x59fd72,_0x442885,_0x273a43);}async['reset'](_0x4e2c87,_0x3ce7e9,_0x3fefa2,_0x55424e){const _0x16b9d0=_0x205568;return this[_0x16b9d0(0x5e1)]('reset',[_0x4e2c87,_0x3ce7e9,_0x3fefa2,_0x42eaf9(_0x55424e)],_0x4e2c87,_0x3ce7e9,_0x55424e);}async[_0x205568(0x866)](_0x14885c,_0x1b8b2b,_0x2f0352,_0x34de29=0x1d4c0){const _0x253522=_0x205568,_0x4bbf74=Date[_0x253522(0x3d4)]()+_0x34de29;for(;;){try{return await this[_0x253522(0x519)](_0x14885c,[..._0x1b8b2b,0x1]);}catch(_0x3dd8d7){if(_0x3dd8d7[_0x253522(0x1bd)]!==_0x2f0352||Date['now']()>=_0x4bbf74)throw _0x3dd8d7;}await new Promise(_0x16661e=>setTimeout(_0x16661e,0x2));}}async['ready'](_0x23ccdb,_0x2f58a1,_0x3aacb1){const _0x17fa87=_0x205568;return this[_0x17fa87(0x866)](_0x17fa87(0x8c9),[_0x23ccdb,null,_0x42eaf9(_0x3aacb1)],_0x17fa87(0x7ab));}async['flush'](_0x5e24aa,_0x44b583){const _0x45ede8=_0x205568;return this[_0x45ede8(0x866)](_0x45ede8(0x26a),[_0x5e24aa,_0x42eaf9(_0x44b583)],'FTS_FLUSH_TIMEOUT');}async['compact'](_0x150095,_0xf6c3b8){const _0x3ffd94=_0x205568;return this[_0x3ffd94(0x519)](_0x3ffd94(0x2de),[_0x150095,_0x42eaf9(_0xf6c3b8)]);}async['process'](_0x4fca87={}){const _0x2831ef=_0x205568;return this[_0x2831ef(0x519)](_0x2831ef(0x4da),[_0x4fca87]);}async[_0x205568(0x880)](_0x5ef58a){const _0x3ccfcd=_0x205568;return this[_0x3ccfcd(0x519)](_0x3ccfcd(0x880),[_0x42eaf9(_0x5ef58a)]);}[_0x205568(0x335)](_0x1a8aec){const _0x300732=_0x205568;return this['_n'](_0x300732(0x335),[_0x42eaf9(_0x1a8aec)]);}[_0x205568(0x5ad)](_0x3d7590,_0x52fd52,_0x2c9209,_0x28cf77,_0x4613ec){const _0xbec863=_0x205568;return this['_n'](_0xbec863(0x5ad),[_0x3d7590,_0x52fd52,_0x2c9209,_0x28cf77||{},_0x42eaf9(_0x4613ec)]);}[_0x205568(0x4df)](_0x4efcfb,_0x1f4986,_0x2d5384,_0x263761,_0x4796e9,_0x1d1a7d){const _0x28a56a=_0x205568;return this['_n'](_0x28a56a(0x4df),[_0x4efcfb,_0x1f4986,_0x2d5384,_0x263761||{},_0x42eaf9(_0x4796e9),_0x1d1a7d]);}[_0x205568(0x734)](_0x28d6d0,_0x2d1fbe,_0x48e8b9,_0x44c3df,_0x234a67){const _0x2fed83=_0x205568;return this['_n'](_0x2fed83(0x6e9),[_0x28d6d0,_0x2d1fbe,_0x48e8b9,_0x44c3df||{},_0x42eaf9(_0x234a67)]);}['listFtsEnvs'](){return this['_n']('listFtsEnvs',[]);}async['drain'](){const _0x2aaa8c=_0x205568;return this['_nm'](_0x2aaa8c(0x504),[]);}}return fts={'OKDBFts':_0x2b1588},fts;}var embeddings,hasRequiredEmbeddings;function requireEmbeddings(){const _0xf18c97=_0xef081e;if(hasRequiredEmbeddings)return embeddings;hasRequiredEmbeddings=0x1;const {OKDBError:_0x554a64,invalidArgument:_0x24cf17}=requireErrors();requireBridge();const _0x17625a=Object['freeze']({'EMBEDDER':'embedder','INDEXER':_0xf18c97(0x76c),'SEARCH':_0xf18c97(0x3f5),'WORKER':_0xf18c97(0x679)}),_0x13f28f=_0x1ec179=>typeof _0x1ec179===_0xf18c97(0x43c)||_0x1ec179==null?_0x1ec179:Array[_0xf18c97(0x51b)](_0x1ec179);class _0x509ac3{constructor(_0x1dfa07){const _0x56a799=_0xf18c97;this[_0x56a799(0x82e)]=_0x1dfa07,this[_0x56a799(0x253)]=new Map(),this[_0x56a799(0x5bb)]=new Map(),this['_viewCache']=new Map();}['_n'](_0x1412fc,_0xc16709=[],_0x233cb6=!![]){return this['okdb']['_call']('embeddings',null,_0x1412fc,_0xc16709,_0x233cb6);}[_0xf18c97(0x519)](_0xf42168,_0x41e9e7=[]){const _0xd6efaf=_0xf18c97;return this['okdb'][_0xd6efaf(0x517)](_0xd6efaf(0x3de),null,_0xf42168,_0x41e9e7,!![]);}[_0xf18c97(0x74c)](_0x1618d3){const _0x26c0cd=_0xf18c97;return _0x1618d3?this[_0x26c0cd(0x82e)][_0x26c0cd(0x2af)][_0x26c0cd(0x74c)](_0x1618d3):null;}[_0xf18c97(0x4d8)](_0x384c30,_0x5e5d80,_0x577afd={}){const _0xc4aabe=_0xf18c97;if(typeof _0x5e5d80!==_0xc4aabe(0x484))throw new _0x554a64(_0xc4aabe(0x588),_0xc4aabe(0x290),{'name':_0x384c30});this[_0xc4aabe(0x253)][_0xc4aabe(0x204)](_0x384c30,_0x5e5d80),this['_jsSchemas'][_0xc4aabe(0x204)](_0x384c30,_0x577afd);const _0x53efd2=this[_0xc4aabe(0x82e)],_0x4dd5c8=_0x1a3a10=>_0x5e5d80(_0x1a3a10,_0x53efd2);_0x4dd5c8['__okdb']=_0x53efd2,this['_n']('registerEmbedderFactory',[_0x384c30,_0x4dd5c8,_0x577afd??{}],![]);}[_0xf18c97(0x350)](_0x4fd32e){const _0x51c7c8=_0xf18c97,_0x48f049=this[_0x51c7c8(0x253)][_0x51c7c8(0x292)](_0x4fd32e);if(_0x48f049)return _0x48f049;if(!this['_n'](_0x51c7c8(0x83d),[_0x4fd32e],![]))return null;const _0x100002=this;return(_0x41b592={})=>{const _0xa0c5b5=_0x51c7c8,_0x2369b7=_0x100002['_n']('embedderNew',[_0x4fd32e,_0x41b592],![]),_0x4aa124=_0x100002['_n'](_0xa0c5b5(0x5c5),[_0x2369b7],![]),_0x17bbe5=(_0x44b05b,_0x2f0bff)=>_0x100002['_n'](_0xa0c5b5(0x644),[_0x2369b7,_0x44b05b,_0x2f0bff],![]),_0x38ee1a={'embed':async _0x5461f1=>Float32Array[_0xa0c5b5(0x51b)](_0x17bbe5(_0xa0c5b5(0x845),_0x5461f1)),'start':async()=>_0x17bbe5(_0xa0c5b5(0x77b)),'stop':async()=>{const _0x1b3934=_0xa0c5b5;_0x17bbe5('stop'),_0x17bbe5(_0x1b3934(0x66b));}};if(_0x4aa124)_0x38ee1a[_0xa0c5b5(0x3b9)]=async _0x4d6345=>_0x17bbe5('embedBatch',_0x4d6345)[_0xa0c5b5(0x642)](_0x54b074=>Float32Array[_0xa0c5b5(0x51b)](_0x54b074));return _0x38ee1a;};}[_0xf18c97(0x5b2)](_0x319cce){const _0x4870a3=_0xf18c97;return this[_0x4870a3(0x5bb)][_0x4870a3(0x292)](_0x319cce)??this['_n'](_0x4870a3(0x5b2),[_0x319cce],![])??undefined;}[_0xf18c97(0x7c3)](_0x4a3dfe,_0x28ffd5,_0x43d224={}){const _0xfe4237=_0xf18c97;if(typeof _0x28ffd5!=='function')throw new _0x554a64(_0xfe4237(0x1dc),_0xfe4237(0x290),{'name':_0x4a3dfe});this['_n']('registerAlgorithmFactory',[_0x4a3dfe,(_0x55a3e9,_0x297471)=>_0x28ffd5(_0x55a3e9,_0x297471),_0x43d224??{}],![]);}[_0xf18c97(0x23f)](){const _0x11c2da=_0xf18c97;return this['_n'](_0x11c2da(0x23f),[],![]);}[_0xf18c97(0x453)](_0x553a47,_0x49e238){const _0x4e5484=_0xf18c97;if(typeof _0x49e238!==_0x4e5484(0x484))throw new _0x554a64(_0x4e5484(0x84d),_0x4e5484(0x290),{'name':_0x553a47});this['_n']('registerPreparer',[_0x553a47,_0x49e238]);}[_0xf18c97(0x4f4)](_0x636af0,_0x5f3d63){const _0x2adaba=_0xf18c97;if(typeof _0x5f3d63!==_0x2adaba(0x484))throw new _0x554a64('chunk\x20strategy\x20must\x20be\x20a\x20function',_0x2adaba(0x290),{'name':_0x636af0});this['_n'](_0x2adaba(0x4f4),[_0x636af0,_0x5f3d63]);}[_0xf18c97(0x670)](_0x58a7ad){const _0xdc6d0c=_0xf18c97;if(_0x58a7ad==null)return this['_n']('setStorageResolver',[null],![]);if(typeof _0x58a7ad!==_0xdc6d0c(0x484))throw new _0x554a64(_0xdc6d0c(0x8b1),_0xdc6d0c(0x290));const _0x4b5345=this[_0xdc6d0c(0x82e)];this['_n'](_0xdc6d0c(0x670),[_0x5c6823=>_0x58a7ad(_0x5c6823,_0x4b5345)],![]);}async[_0xf18c97(0x568)](_0x571381,_0x412916={},_0x56f712={},_0x52dd37=null){const _0xdefa9=_0xf18c97;return this['_wrap'](await this[_0xdefa9(0x519)](_0xdefa9(0x568),[_0x571381,_0x412916,_0x56f712,_0x52dd37]));}async[_0xf18c97(0x6ac)](_0x45979a,_0x785b96={},_0x415a14={}){const _0x396c09=_0xf18c97;return this['_wrap'](await this[_0x396c09(0x519)]('createIndexer',[_0x45979a,_0x785b96,_0x415a14]));}async[_0xf18c97(0x718)](_0xd5eb9f,_0x4a5e41={},_0x6ba8d1={}){const _0x2b71cf=_0xf18c97;return this[_0x2b71cf(0x74c)](await this[_0x2b71cf(0x519)](_0x2b71cf(0x718),[_0xd5eb9f,_0x4a5e41,_0x6ba8d1]));}async[_0xf18c97(0x41e)](_0x55ba3f,_0x4a370a={},_0x29c9f5={}){return this['_wrap'](await this['_nm']('createWorker',[_0x55ba3f,_0x4a370a,_0x29c9f5]));}async[_0xf18c97(0x631)](_0x3f7de5,_0x56836a={},_0x3320aa={}){const _0xbd3561=_0xf18c97,_0x2b6535=await this[_0xbd3561(0x519)](_0xbd3561(0x631),[_0x3f7de5,_0x56836a,_0x3320aa]);return{'embedder':this[_0xbd3561(0x74c)](_0x2b6535[_0xbd3561(0x418)]),'indexer':this['_wrap'](_0x2b6535[_0xbd3561(0x76c)]),'worker':this[_0xbd3561(0x74c)](_0x2b6535[_0xbd3561(0x487)]),'search':this[_0xbd3561(0x74c)](_0x2b6535[_0xbd3561(0x5ad)]),'api':this[_0xbd3561(0x8a7)](_0x2b6535[_0xbd3561(0x55c)],_0x2b6535[_0xbd3561(0x418)][_0xbd3561(0x686)],_0x2b6535[_0xbd3561(0x487)]?_0x2b6535[_0xbd3561(0x487)][_0xbd3561(0x686)]:_0x2b6535[_0xbd3561(0x55c)]+_0xbd3561(0x1fc))};}['_running'](_0x5b71b5,_0xf44494){const _0x313c28=_0xf18c97;return this['okdb'][_0x313c28(0x2af)][_0x313c28(0x821)](_0x5b71b5,_0xf44494)?.[_0x313c28(0x276)]??null;}[_0xf18c97(0x418)](_0x20cd68){const _0x4cb8bf=_0xf18c97,_0x202198=this[_0x4cb8bf(0x357)](_0x17625a[_0x4cb8bf(0x78e)],_0x20cd68);if(!_0x202198)return null;const _0x25db96=this,_0x284a6d=_0x4da982=>Array[_0x4cb8bf(0x888)](_0x4da982)&&Array['isArray'](_0x4da982[0x0])?_0x4da982['map'](_0x19e96e=>Float32Array['from'](_0x19e96e)):Float32Array[_0x4cb8bf(0x51b)](_0x4da982);return new Proxy(_0x202198,{'get'(_0x5c51e4,_0x854d2d){const _0x483a49=_0x4cb8bf;if(_0x854d2d==='dims')return _0x25db96[_0x483a49(0x82e)][_0x483a49(0x5a1)](_0x483a49(0x2af),null,_0x483a49(0x478),[_0x17625a[_0x483a49(0x78e)],_0x20cd68,_0x483a49(0x3a7),[]],![])[_0x483a49(0x744)];if(_0x854d2d===_0x483a49(0x845))return async _0xeaf89d=>_0x284a6d(await _0x202198['embed'](_0xeaf89d));if(_0x854d2d===_0x483a49(0x3b9))return async _0x24105a=>(await _0x202198[_0x483a49(0x3b9)](_0x24105a))[_0x483a49(0x642)](_0x35740f=>Float32Array[_0x483a49(0x51b)](_0x35740f));return _0x5c51e4[_0x854d2d];}});}['indexer'](_0x4fbcb0){const _0x57a73f=_0xf18c97;return this[_0x57a73f(0x357)](_0x17625a[_0x57a73f(0x4be)],_0x4fbcb0);}[_0xf18c97(0x487)](_0x42f1fb){const _0x53d9e4=_0xf18c97;return this[_0x53d9e4(0x357)](_0x17625a['WORKER'],_0x42f1fb);}['search'](_0xa46b7a){const _0x43e344=_0xf18c97,_0x5913fd=this[_0x43e344(0x357)](_0x17625a[_0x43e344(0x55e)],_0xa46b7a);if(_0x5913fd)return _0x5913fd;return this[_0x43e344(0x894)](_0xa46b7a);}['_localViewApi'](_0xe350e1){const _0x205bbb=_0xf18c97,_0x35d41c=this;return{'search':(_0x2090b1,_0x138ecd={})=>_0x35d41c[_0x205bbb(0x82e)]['_callMacro'](_0x205bbb(0x3de),null,'search',[_0xe350e1,_0x13f28f(_0x2090b1),_0x138ecd],![]),'stats':async()=>_0x35d41c['_n'](_0x205bbb(0x348),[_0xe350e1],![]),'count':()=>_0x35d41c['_n']('viewOp',[_0xe350e1,'count'],![])};}async[_0xf18c97(0x4df)](_0x133f89,_0x26ac39,_0xe503a7={}){const _0x429e17=_0xf18c97,{limit:limit=0xa,..._0x3fcdc3}=_0xe503a7;return this[_0x429e17(0x519)](_0x429e17(0x4df),[_0x133f89,_0x13f28f(_0x26ac39),{..._0x3fcdc3,'limit':limit}]);}['vectorSpace'](_0xfb1108){return this['_n']('vectorSpace',[_0xfb1108],![]);}[_0xf18c97(0x369)](_0x2acec8,_0x3e7c4e){return this['_n']('durableEngineDoc',[_0x2acec8,_0x3e7c4e],![]);}[_0xf18c97(0x451)](_0x73fe0e){const _0x5c5365=_0xf18c97;return this['_n'](_0x5c5365(0x5ac),[_0x73fe0e],![]);}async[_0xf18c97(0x73b)](_0x224c61){const _0x43680a=_0xf18c97;return this['_n'](_0x43680a(0x219),[_0x224c61],![]);}async['_durableIndexerDocs'](_0x1236af,_0x35c10d={}){const _0x44a3fb=_0xf18c97;return this['_n'](_0x44a3fb(0x5d3),[_0x1236af,_0x35c10d],![]);}async['_durableIndexerDoc'](_0x6cb64c,_0x53f992){return this['_n']('durableDoc',[_0x6cb64c,_0x53f992],![]);}async[_0xf18c97(0x380)](_0x684c61,_0x459087,_0x5dd92b,_0x2bc7fe){const _0x5f201f=_0xf18c97;if(_0x684c61!=null&&typeof _0x684c61[_0x5f201f(0x2a1)]!==_0x5f201f(0x484))throw _0x24cf17(_0x5f201f(0x686),_0x5f201f(0x818),_0x684c61);if(!_0x684c61||!_0x5dd92b)return null;return this['okdb']['_callMacro'](_0x5f201f(0x3de),null,_0x5f201f(0x380),[_0x684c61,_0x459087,_0x5dd92b,_0x2bc7fe??null],![]);}async[_0xf18c97(0x385)](_0x297c5c,_0x2fb605,_0x23d9a2={}){const _0x52392c=_0xf18c97,_0x12e920={..._0x23d9a2};if(_0x12e920['vector'])_0x12e920['vector']=Array[_0x52392c(0x51b)](_0x12e920['vector']);return this['_n'](_0x52392c(0x385),[_0x297c5c,_0x2fb605,_0x12e920]);}async[_0xf18c97(0x746)](_0x913063,_0x1f8149,_0x1283d2,_0x1d0594={}){const _0x44f4b2=_0xf18c97;return this['_n'](_0x44f4b2(0x746),[_0x913063,_0x1f8149,_0x1283d2,_0x1d0594]);}async['durableMarkDelete'](_0x3f8573,_0x160b09){const _0x2c4503=_0xf18c97;return this['_n'](_0x2c4503(0x8e8),[_0x3f8573,_0x160b09]);}async[_0xf18c97(0x5b7)](_0x4f7138,_0x255125){const _0x1f5f01=_0xf18c97;return this['_n'](_0x1f5f01(0x5b7),[_0x4f7138,_0x255125]);}async[_0xf18c97(0x715)](_0x475294,_0x126b3b={}){return this['_n']('durableRetryFailed',[_0x475294,_0x126b3b]);}async[_0xf18c97(0x66a)](_0x127ddc){const _0x46d5a2=_0xf18c97;return this[_0x46d5a2(0x519)]('durableRebuild',[_0x127ddc]);}async['_durableWorkerStats'](_0x5e2e27){return this['_n']('durableWorkerStats',[_0x5e2e27],![]);}[_0xf18c97(0x738)](_0x3574bf){const _0x3aff38=_0xf18c97;return this['_n'](_0x3aff38(0x738),[_0x3574bf],![]);}['listVectorStores'](){const _0x574e3c=_0xf18c97;return this['_n'](_0x574e3c(0x768),[],![]);}[_0xf18c97(0x6b9)](_0x19a5a8,_0x19efad){const _0x5791ad=_0xf18c97,_0x3714b6=this['_n'](_0x5791ad(0x6b9),[_0x19a5a8,_0x19efad],![]);return _0x3714b6==null?null:Float32Array[_0x5791ad(0x51b)](_0x3714b6);}[_0xf18c97(0x88e)](_0x229fa5,_0x336828){const _0x3a48ab=_0xf18c97;return this['_n'](_0x3a48ab(0x88e),[_0x229fa5,_0x336828??null],![])??undefined;}async['registerModel'](_0x5bbec6,_0x418de7,_0x3d92a0,_0x1a1cb7=''){const _0x4823a1=_0xf18c97;return this['_n'](_0x4823a1(0x832),[_0x5bbec6,_0x418de7,_0x3d92a0,_0x1a1cb7]);}[_0xf18c97(0x3d9)](_0x533f56=null){const _0x555420=_0xf18c97;return this['_n'](_0x555420(0x3d9),[_0x533f56],![]);}['listProviders'](){const _0x36a5c3=_0xf18c97;return this['_n'](_0x36a5c3(0x87e),[],![]);}async['_ensureTypeEnv'](_0x5e6bf4,_0x4431bf){const _0x26b731=_0xf18c97;return this['_n']('ensureTypeEnv',[_0x5e6bf4,_0x4431bf],![]),this[_0x26b731(0x82e)]['_ensureEnv']('~'+_0x5e6bf4+_0x26b731(0x2e9)+_0x4431bf);}async[_0xf18c97(0x5d6)](_0x4ebb4d,_0x3d7385){const _0x179cad=_0xf18c97;return await this['_ensureTypeEnv'](_0x4ebb4d,_0x3d7385),{'adapter':_0x1cf368=>this[_0x179cad(0x86d)](_0x4ebb4d,_0x3d7385,_0x1cf368)};}[_0xf18c97(0x86d)](_0x2b9297,_0x43561e,_0xd16c62){const _0x150011=this;return{async 'put'(_0x377b63,_0x1bd6fa){const _0x379b6a=_0x2fc2;return _0x150011['_n'](_0x379b6a(0x54d),[_0x2b9297,_0x43561e,_0xd16c62,_0x377b63,Array[_0x379b6a(0x51b)](_0x1bd6fa)]);},async 'remove'(_0x478a90){const _0x52d100=_0x2fc2;return _0x150011['_n'](_0x52d100(0x777),[_0x2b9297,_0x43561e,_0xd16c62,_0x478a90]);}};}get[_0xf18c97(0x1d3)](){const _0x334c53=_0xf18c97,_0x5076e0=this,_0x475031=()=>_0x5076e0['_n']('localViewNames',[],![]),_0x40b8b8=_0x2f38b4=>{const _0x3ca3c7=_0x2fc2,_0x1a92f1=_0x24526b=>_0x5076e0['_n'](_0x3ca3c7(0x8a9),[_0x2f38b4,_0x24526b],![]);return{'name':_0x2f38b4,'_evict':async()=>_0x1a92f1(_0x3ca3c7(0x6c3)),'evict':async()=>_0x1a92f1(_0x3ca3c7(0x6c3)),'snapshot':async()=>_0x1a92f1(_0x3ca3c7(0x5d0)),'_snapshot':async()=>_0x1a92f1(_0x3ca3c7(0x5d0)),'rebuild':async()=>_0x1a92f1(_0x3ca3c7(0x774)),'stats':()=>_0x1a92f1(_0x3ca3c7(0x70a)),get 'count'(){const _0x4c81d1=_0x3ca3c7;return _0x1a92f1(_0x4c81d1(0x4c2));},get 'loaded'(){return _0x1a92f1('loaded');}};};return{get 'size'(){const _0x2c7271=_0x2fc2;return _0x475031()[_0x2c7271(0x788)];},'has':_0x318f37=>_0x475031()[_0x334c53(0x2a1)](_0x318f37),'get':_0x4785fb=>_0x475031()[_0x334c53(0x2a1)](_0x4785fb)?_0x40b8b8(_0x4785fb):undefined,'keys':()=>_0x475031()[Symbol[_0x334c53(0x6a7)]](),'values':()=>_0x475031()['map'](_0x40b8b8)[Symbol[_0x334c53(0x6a7)]](),[Symbol[_0x334c53(0x6a7)]]:()=>_0x475031()[_0x334c53(0x642)](_0x50f480=>[_0x50f480,_0x40b8b8(_0x50f480)])[Symbol[_0x334c53(0x6a7)]]()};}async[_0xf18c97(0x77b)](){}async[_0xf18c97(0x6bf)](){const _0x29ebbe=_0xf18c97;this['_n'](_0x29ebbe(0x6bf),[]);}[_0xf18c97(0x8a7)](_0x39f613,_0x8e5a7f,_0x35361b){const _0x547f9c=_0xf18c97;return{'search':(_0x307c95,_0x6d42b3={})=>{const _0x33ce41=_0x2fc2,_0x25316b=this[_0x33ce41(0x5ad)](_0x39f613);if(!_0x25316b)throw new Error(_0x33ce41(0x3a1)+_0x39f613+'\x22');return _0x25316b[_0x33ce41(0x5ad)](_0x307c95,_0x6d42b3);},'searchDocs':(_0x420c0d,_0x435f11={})=>this[_0x547f9c(0x4df)](_0x39f613,_0x420c0d,_0x435f11),'flush':_0x5aa2fd=>{const _0x444bbc=_0x547f9c,_0x3a8c0b=this[_0x444bbc(0x76c)](_0x39f613);if(!_0x3a8c0b)throw new Error('indexer\x20engine\x20not\x20running:\x20\x22'+_0x39f613+'\x22');return _0x3a8c0b[_0x444bbc(0x26a)](_0x5aa2fd);},'stats':async()=>({'embedder':await this[_0x547f9c(0x418)](_0x8e5a7f)?.['health']?.(),'indexer':await this['indexer'](_0x39f613)?.['stats']?.(),'worker':await this['worker'](_0x35361b)?.[_0x547f9c(0x70a)]?.(),'search':await this[_0x547f9c(0x5ad)](_0x39f613)?.[_0x547f9c(0x70a)]?.()})};}}return embeddings={'OKDBEmbeddings':_0x509ac3,'ENGINE_TYPES':_0x17625a},embeddings;}var auth,hasRequiredAuth;function requireAuth(){const _0x5c8c5d=_0xef081e;if(hasRequiredAuth)return auth;hasRequiredAuth=0x1;const {invalidArgument:_0x10e2f2}=requireErrors();class _0x4b8dab{constructor(_0x46758a){this['okdb']=_0x46758a;}['_n'](_0x2e0bf0,_0x5e148a=[],_0x52c9d4=![]){const _0x126f35=_0x2fc2;return this[_0x126f35(0x82e)][_0x126f35(0x5a1)]('auth',null,_0x2e0bf0,_0x5e148a,_0x52c9d4);}[_0x5c8c5d(0x519)](_0x2497e0,_0x472988=[]){const _0x589128=_0x5c8c5d;return this[_0x589128(0x82e)][_0x589128(0x517)](_0x589128(0x65c),null,_0x2497e0,_0x472988,![]);}get[_0x5c8c5d(0x8d6)](){const _0x50a0ac=_0x5c8c5d;return this['_n'](_0x50a0ac(0x8d6));}get[_0x5c8c5d(0x2c4)](){const _0x509c9b=_0x5c8c5d;return this['_n'](_0x509c9b(0x2c4));}get['_oauthConfig'](){const _0x2bdb02=_0x5c8c5d;return this[_0x2bdb02(0x82e)][_0x2bdb02(0x1cc)][_0x2bdb02(0x65c)]?.[_0x2bdb02(0x2b5)]||{};}[_0x5c8c5d(0x1fb)](_0x3e5f68){const _0x353502=_0x5c8c5d;return this['_n'](_0x353502(0x1fb),[_0x3e5f68??null]);}[_0x5c8c5d(0x639)](_0x21c553){const _0x5150e3=_0x5c8c5d;return this['_n'](_0x5150e3(0x5b4),[_0x21c553??null]);}[_0x5c8c5d(0x543)](_0x4d0418){return this['_n']('isLoopbackIp',[_0x4d0418??null]);}[_0x5c8c5d(0x82d)](){return this['_n']('isBootstrap');}[_0x5c8c5d(0x428)](){const _0x166340=_0x5c8c5d;return this['_n'](_0x166340(0x428));}[_0x5c8c5d(0x585)](){const _0xa04e51=_0x5c8c5d;return this['_n'](_0xa04e51(0x585));}[_0x5c8c5d(0x1e8)](_0x5e0efc){const _0x2ae19d=_0x5c8c5d;return this['_n'](_0x2ae19d(0x1e8),[_0x5e0efc]);}[_0x5c8c5d(0x780)](_0x23ebc3){const _0x91db2c=_0x5c8c5d;return this['_n'](_0x91db2c(0x780),[_0x23ebc3]);}[_0x5c8c5d(0x798)](_0xdab08){const _0x425d20=_0x5c8c5d;if(_0xdab08!=null&&typeof _0xdab08!=='string')throw _0x10e2f2('header',_0x425d20(0x818),_0xdab08);return this['_n'](_0x425d20(0x798),[_0xdab08??null]);}async[_0x5c8c5d(0x1cb)](){return this['_n']('ensureTokensType',[],!![]);}async[_0x5c8c5d(0x4fd)](_0x2462e1){const _0x16e223=_0x5c8c5d;return this['_n'](_0x16e223(0x366),[_0x2462e1]);}async[_0x5c8c5d(0x612)](_0x950437){const _0x382cef=_0x5c8c5d;return this['_n'](_0x382cef(0x85e),[_0x950437]);}async['_lookupAllByName'](_0x481644){return this['_n']('lookupAllByName',[_0x481644]);}async['authenticateRequest'](_0xbe7cbd){const _0x48ab7e=_0x5c8c5d,_0xe71791=_0xbe7cbd?.[_0x48ab7e(0x7ba)]||{};return this['_n']('authenticateRequest',[{'remoteAddress':_0xbe7cbd[_0x48ab7e(0x693)]?.[_0x48ab7e(0x7b3)]??null,'internal':_0xbe7cbd?.[_0x48ab7e(0x637)]?.[_0x48ab7e(0x66d)]===!![],'authorization':_0xe71791[_0x48ab7e(0x289)]??null,'cookies':_0xbe7cbd?.['cookies']??{}}]);}async[_0x5c8c5d(0x892)](_0x219457,_0x318054){const _0x487acc=_0x5c8c5d;return this['_nm'](_0x487acc(0x892),[_0x219457??null,_0x318054??null]);}async[_0x5c8c5d(0x80c)](_0x57b9d6,_0x96b12,_0x2252ae){const _0x20e172=_0x5c8c5d;return this[_0x20e172(0x519)](_0x20e172(0x80c),[_0x57b9d6??null,_0x96b12??null,_0x2252ae??null]);}[_0x5c8c5d(0x784)](){const _0x3c6b2a=_0x5c8c5d;return this['_n'](_0x3c6b2a(0x784));}[_0x5c8c5d(0x39a)](){const _0x75852d=_0x5c8c5d;return this['_n'](_0x75852d(0x39a));}['createLoginState'](_0x47f7d6={},_0x4a1dda=0x927c0){const _0x3dc0bb=_0x5c8c5d;return this['_n'](_0x3dc0bb(0x378),[_0x47f7d6,_0x4a1dda]);}[_0x5c8c5d(0x26f)](_0x1b62c6){return this['_n']('consumeLoginState',[_0x1b62c6]);}async[_0x5c8c5d(0x8b6)](_0x3ea174,_0xcb3a1={}){const _0x170249=_0x5c8c5d;return this[_0x170249(0x519)](_0x170249(0x87b),[_0x3ea174,_0xcb3a1]);}async[_0x5c8c5d(0x45d)](_0x3b1d60={}){const _0x15d031=_0x5c8c5d;return this[_0x15d031(0x519)](_0x15d031(0x65b),[_0x3b1d60]);}[_0x5c8c5d(0x417)](_0x5ec726){const _0x29cd54=_0x5c8c5d;return this['_n'](_0x29cd54(0x36c),[_0x5ec726]);}}return auth={'OKDBAuth':_0x4b8dab},auth;}var sync,hasRequiredSync;function requireSync(){const _0x34286e=_0xef081e;if(hasRequiredSync)return sync;hasRequiredSync=0x1;const {RawDb:_0x4ffe85}=requireRawdb();class _0x47b3d1{constructor(_0x4e5fb2){this['_s']=_0x4e5fb2;}get['_ackDb'](){const _0x51dc6f=_0x2fc2;return this['_ack']||(this[_0x51dc6f(0x448)]=new _0x4ffe85(this['_s'][_0x51dc6f(0x82e)][_0x51dc6f(0x85c)],_0x51dc6f(0x742)));}[_0x34286e(0x200)](){return this['_ackDb'];}['_ensureDbs'](){const _0x498c9a=_0x34286e;return this[_0x498c9a(0x338)];}['_n'](_0x204d6a,_0x26d5e1=[]){const _0x4b4717=_0x34286e;return this['_s']['_n'](_0x4b4717(0x8b3)+_0x204d6a,_0x26d5e1);}[_0x34286e(0x85a)](_0x49c30c,_0x171f41){const _0x6489b3=_0x34286e;return this['_n'](_0x6489b3(0x85a),[_0x49c30c,_0x171f41]);}async['forceResync'](_0x504561){const _0x8c039b=_0x34286e;return this['_n'](_0x8c039b(0x331),[_0x504561]);}[_0x34286e(0x54b)](){const _0x3fd3af=_0x34286e;return this['_n'](_0x3fd3af(0x54b));}[_0x34286e(0x83e)](_0x1de75d){const _0xd8738d=_0x34286e;return this['_n'](_0xd8738d(0x83e),[_0x1de75d]);}async[_0x34286e(0x1ce)](){const _0x36ec0f=_0x34286e;return this['_n'](_0x36ec0f(0x1ce));}[_0x34286e(0x1d2)](){const _0x26e7e0=_0x34286e;return this['_n'](_0x26e7e0(0x1d2));}['start'](){const _0x4c28e8=_0x34286e;return this['_n'](_0x4c28e8(0x77b));}[_0x34286e(0x6bf)](){const _0x32d92f=_0x34286e;return this['_n'](_0x32d92f(0x6bf));}get[_0x34286e(0x5bf)](){const _0x102a23=_0x34286e;try{return this['_n'](_0x102a23(0x351))?{}:null;}catch{return null;}}}class _0x2bc445{constructor(_0x5e4139){const _0x190d97=_0x34286e;this['okdb']=_0x5e4139,this['gc']=new _0x47b3d1(this);const _0x4cdc8a=this;this[_0x190d97(0x1cc)]=new Proxy({},{'get':(_0x37f698,_0x33c0aa)=>typeof _0x33c0aa===_0x190d97(0x43c)?_0x4cdc8a['_n'](_0x190d97(0x1cc))[_0x33c0aa]:undefined,'set':(_0xff1f36,_0x48b7d5,_0x134287)=>{const _0x114c37=_0x190d97;if(_0x48b7d5===_0x114c37(0x595))_0x4cdc8a['_n'](_0x114c37(0x74e),[_0x134287??null]);else{if(_0x48b7d5===_0x114c37(0x7bf))_0x4cdc8a['_n'](_0x114c37(0x22c),[_0x134287??null]);else{if(_0x48b7d5===_0x114c37(0x622))_0x4cdc8a['_n'](_0x114c37(0x54a),[_0x134287]);}}return!![];},'ownKeys':()=>Object[_0x190d97(0x607)](_0x4cdc8a['_n'](_0x190d97(0x1cc))),'getOwnPropertyDescriptor':(_0x101cdd,_0x5c0614)=>({'enumerable':!![],'configurable':!![],'value':_0x4cdc8a['_n']('options')[_0x5c0614]}),'has':(_0x3bd18d,_0x220f39)=>_0x220f39 in _0x4cdc8a['_n']('options')});}['_n'](_0x1571d0,_0x163834=[],_0x1aa3ea=![]){const _0x9e8ac9=_0x34286e;return this[_0x9e8ac9(0x82e)][_0x9e8ac9(0x5a1)](_0x9e8ac9(0x801),null,_0x1571d0,_0x163834,_0x1aa3ea);}['_nm'](_0x3ef82a,_0x1e0773=[]){const _0x2b1dc9=_0x34286e;return this[_0x2b1dc9(0x82e)]['_callMacro'](_0x2b1dc9(0x801),null,_0x3ef82a,_0x1e0773,!![]);}get[_0x34286e(0x3ae)](){const _0x4ba40b=_0x34286e;return this[_0x4ba40b(0x1d6)]||(this[_0x4ba40b(0x1d6)]=new _0x4ffe85(this[_0x4ba40b(0x82e)]['_systemEnv'],_0x4ba40b(0x6c8)));}[_0x34286e(0x2ab)](){const _0x162354=_0x34286e;return this[_0x162354(0x3ae)];}get[_0x34286e(0x751)](){const _0x25495b=_0x34286e;return this[_0x25495b(0x81f)]||(this[_0x25495b(0x81f)]=new(requireLock())[(_0x25495b(0x23d))](this[_0x25495b(0x82e)],_0x25495b(0x87d),'sync',{'ttlMs':0x7530}));}get[_0x34286e(0x595)](){const _0x22c248=_0x34286e;return this['_n']('options')[_0x22c248(0x595)];}get[_0x34286e(0x6e6)](){const _0x33a5ee=_0x34286e;return this['okdb'][_0x33a5ee(0x489)]&&this['_n'](_0x33a5ee(0x611))?{}:null;}get[_0x34286e(0x548)](){const _0x42b7da=_0x34286e;return this[_0x42b7da(0x6e6)];}get['_nodePrivateKey'](){const _0x2d847d=_0x34286e;return this['_n'](_0x2d847d(0x42e))?.['privateKey'];}get[_0x34286e(0x83f)](){const _0x3c2a73=_0x34286e;return this['_n'](_0x3c2a73(0x42e))?.[_0x3c2a73(0x5b0)];}[_0x34286e(0x1f9)](){const _0x146534=_0x34286e;return this['_n'](_0x146534(0x1f9));}['getSelfNode'](){const _0x59bab7=_0x34286e;return this['_n'](_0x59bab7(0x53a));}get['peers'](){const _0x12a069=_0x34286e;return this[_0x12a069(0x43b)]||(()=>this['_n'](_0x12a069(0x77e)));}set[_0x34286e(0x77e)](_0x237198){const _0x3aa67c=_0x34286e;this[_0x3aa67c(0x43b)]=typeof _0x237198===_0x3aa67c(0x484)?_0x237198:null,this['_n'](_0x3aa67c(0x8d5),[this['__peers']]);}[_0x34286e(0x57c)](){const _0x2c742a=_0x34286e;return this['_n'](_0x2c742a(0x647));}async[_0x34286e(0x775)](){const _0xa6bb1c=_0x34286e;return this[_0xa6bb1c(0x519)](_0xa6bb1c(0x775));}async[_0x34286e(0x463)](_0x1b3f13){const _0x3b45cf=_0x34286e;return this[_0x3b45cf(0x519)](_0x3b45cf(0x463),[_0x1b3f13]);}async['_reconcilePeer'](_0x4bd8d0,_0x4831e4={}){const _0x364d71=_0x34286e;return this[_0x364d71(0x519)]('reconcilePeerPull',[_0x4bd8d0,_0x4831e4]);}[_0x34286e(0x6bf)](){const _0x2d8e3b=_0x34286e;return this['_n'](_0x2d8e3b(0x6bf));}[_0x34286e(0x2d7)](){const _0x5f4a2f=_0x34286e;return this['_n'](_0x5f4a2f(0x2d7));}async['upsertLink'](_0x782060,_0x416d11={}){const _0x1528a9=_0x34286e;return this['_n'](_0x1528a9(0x57f),[_0x782060,_0x416d11],!![]);}async[_0x34286e(0x25c)](_0x1c2d4d){const _0x54bd09=_0x34286e;return this['_n'](_0x54bd09(0x25c),[_0x1c2d4d],!![]);}[_0x34286e(0x6bd)](_0x24f445){const _0x276620=_0x34286e;return this['_n'](_0x276620(0x67e),[_0x24f445]);}[_0x34286e(0x64b)](_0x5d43c9){return this['_n']('getPeerState',[_0x5d43c9]);}async[_0x34286e(0x382)](_0xcb29dc,_0x3f3382,_0x206c6e={}){const _0x40c7ca=_0x34286e;return this['_n'](_0x40c7ca(0x636),[_0xcb29dc,_0x3f3382,_0x206c6e]);}async[_0x34286e(0x3e7)](_0x12fa98){const _0x336361=_0x34286e;return this['_n'](_0x336361(0x850),[_0x12fa98]);}async[_0x34286e(0x7ed)](){const _0x32a939=_0x34286e;return this['_n'](_0x32a939(0x50d),[],!![]);}async['patchSelf'](_0x488dc6){const _0x2a2f24=_0x34286e;return this['_n'](_0x2a2f24(0x52c),[_0x488dc6],!![]);}async[_0x34286e(0x8a0)](_0x575fc4,_0x2a3a69={}){const _0x1fc63f=_0x34286e;return this['_nm'](_0x1fc63f(0x8a0),[_0x575fc4,_0x2a3a69]);}async[_0x34286e(0x4f3)](_0x570647={},_0x124181={}){const _0x4cdcea=_0x34286e;return void _0x570647[_0x4cdcea(0x87d)],this['_n']('calculateDelta',[_0x570647,_0x124181]);}async[_0x34286e(0x78b)](_0x593092,_0x53a904,_0x16a9d5,_0x13b9c9){const _0x60bc00=_0x34286e;return this[_0x60bc00(0x519)](_0x60bc00(0x78b),[_0x593092,_0x53a904,_0x16a9d5,_0x13b9c9??null]);}async[_0x34286e(0x477)](_0x64fdab,_0x183c25,_0x1ae91f={}){const _0x2b7b22=_0x34286e;return this[_0x2b7b22(0x519)](_0x2b7b22(0x477),[_0x64fdab,_0x183c25,_0x1ae91f]);}['_shouldApplyChange'](_0x41f7df,_0x21d85b=null){return this['_n']('shouldApplyChange',[_0x41f7df,_0x21d85b?_0x21d85b['name']:null]);}['applyChange'](_0x41ae16,_0x228c0e=null){const _0x4de864=_0x34286e;return this['_n']('applyChange',[_0x41ae16,_0x228c0e?_0x228c0e[_0x4de864(0x686)]:null],!![]);}}return sync={'OKDBSync':_0x2bc445},sync;}var migrate,hasRequiredMigrate;function requireMigrate(){const _0x6e525a=_0xef081e;if(hasRequiredMigrate)return migrate;hasRequiredMigrate=0x1;const {optionsArg:_0x3569b7}=requireErrors(),_0x402107=require$$0,_0x28eadf=require$$4,_0x41bd3c=0x40*0x400;async function _0x5be326(_0x31a5ab,_0x4be33e){const _0x450876=_0x2fc2;for(let _0x149221=0x0;_0x149221<_0x4be33e[_0x450876(0x788)];){let _0x319ca3=Math[_0x450876(0x439)](_0x4be33e[_0x450876(0x788)],_0x149221+_0x41bd3c);if(_0x319ca3<_0x4be33e[_0x450876(0x788)]){const _0x376860=_0x4be33e[_0x450876(0x691)](0xa,_0x319ca3-0x1);_0x319ca3=_0x376860===-0x1?_0x4be33e[_0x450876(0x788)]:_0x376860+0x1;}const _0x3d7b7f=_0x31a5ab[_0x450876(0x4bf)](_0x4be33e[_0x450876(0x46f)](_0x149221,_0x319ca3));_0x149221=_0x319ca3;if(!_0x3d7b7f)await new Promise(_0xc4ba73=>_0x31a5ab[_0x450876(0x308)](_0x450876(0x504),_0xc4ba73));await new Promise(_0x1009c6=>setImmediate(_0x1009c6));}}async function _0xebb4ac(_0x4bd6e8){const _0x5de5af=_0x2fc2,_0x7fafb6=[];for await(const _0x240b11 of _0x4bd6e8)_0x7fafb6[_0x5de5af(0x27f)](Buffer[_0x5de5af(0x605)](_0x240b11)?_0x240b11:Buffer[_0x5de5af(0x51b)](_0x240b11,'utf8'));return Buffer['concat'](_0x7fafb6);}class _0xacdfb7{constructor(_0x52447b){const _0x27513a=_0x2fc2;this[_0x27513a(0x82e)]=_0x52447b;}['_n'](_0xfeaed8,_0x1474eb){const _0x1b5a9e=_0x2fc2;return this[_0x1b5a9e(0x82e)]['_call'](_0x1b5a9e(0x60c),null,_0xfeaed8,_0x1474eb,!![]);}async[_0x6e525a(0x420)](_0x3210af,_0xb8f83d={}){const _0x1b99dc=_0x6e525a,{data:_0x59ea18,stats:_0x2ed2e9}=this['_n']('exportBuf',[_0xb8f83d]);return await _0x5be326(_0x3210af,Buffer[_0x1b99dc(0x51b)](_0x59ea18)),_0x2ed2e9;}async['exportToFile'](_0x1246d2,_0x3dccab={}){const _0x174e31=_0x6e525a;_0x402107['mkdirSync'](_0x28eadf[_0x174e31(0x733)](_0x1246d2),{'recursive':!![]});const _0x377981=_0x402107['createWriteStream'](_0x1246d2),_0x180df3=await this[_0x174e31(0x420)](_0x377981,_0x3dccab);return await new Promise((_0x4904ce,_0x4602bc)=>{const _0x4ed2f9=_0x174e31;_0x377981[_0x4ed2f9(0x3cf)](),_0x377981['once'](_0x4ed2f9(0x8c1),_0x4904ce),_0x377981['once'](_0x4ed2f9(0x860),_0x4602bc);}),{..._0x180df3,'filePath':_0x1246d2};}async[_0x6e525a(0x39f)](_0x59f826,_0x1c03d0={}){const _0x3d2433=_0x6e525a,{data:_0x5bf18f,stats:_0xad14a7}=this['_n']('exportEnvsBuf',[_0x1c03d0]);return await _0x5be326(_0x59f826,Buffer[_0x3d2433(0x51b)](_0x5bf18f)),_0xad14a7;}async[_0x6e525a(0x69a)](_0x25fa18,_0x337298={}){const _0x36d327=_0x6e525a,_0x34fd9d=await _0xebb4ac(_0x25fa18),{onProgress:_0x406cde,..._0x3ecf3c}=_0x337298,_0x3dc66d=this['_n'](_0x36d327(0x44a),[_0x34fd9d,_0x3ecf3c]);if(typeof _0x406cde===_0x36d327(0x484))_0x406cde({'type':null,'count':_0x3dc66d[_0x36d327(0x405)]});return _0x3dc66d;}async[_0x6e525a(0x5c6)](_0x250d74,_0x8df145={}){const _0x145438=_0x6e525a;return this['importFromStream'](_0x402107[_0x145438(0x646)](_0x250d74,{'encoding':_0x145438(0x547)}),_0x8df145);}async[_0x6e525a(0x40e)](_0x3d76f5,_0x5e88cb={}){return this['_n']('backup',[_0x3d76f5,_0x5e88cb]);}['backupRoot'](){const _0x479e19=_0x6e525a;return this['_n'](_0x479e19(0x2b7),[]);}['resolveBackupDest'](_0x1f2f6a){const _0x3fd1a9=_0x6e525a;return this['_n'](_0x3fd1a9(0x1ed),[_0x1f2f6a??null]);}async[_0x6e525a(0x701)](_0x4d1fbf={}){return this['_n']('export',[_0x4d1fbf]);}async[_0x6e525a(0x5f5)](_0x35e4dc,_0x4a9774={}){const _0x2f1d2c=_0x6e525a;return this['_n'](_0x2f1d2c(0x5f5),[_0x35e4dc,_0x4a9774]);}async['exportJSON'](_0x30a28e){const _0x507fac=_0x6e525a,{pretty:pretty=![]}=_0x3569b7(_0x30a28e);return JSON[_0x507fac(0x754)](await this[_0x507fac(0x701)](),null,pretty?0x2:0x0);}async['importJSON'](_0x22d00b){const _0x322d4e=_0x6e525a;return this[_0x322d4e(0x5f5)](JSON[_0x322d4e(0x2cb)](_0x22d00b));}['_assertFiles'](){const _0x2c92c9=_0x6e525a;if(!this[_0x2c92c9(0x82e)]['_envs'][_0x2c92c9(0x292)]('default')?.[_0x2c92c9(0x1c3)])throw new Error('files\x20feature\x20not\x20available');}async[_0x6e525a(0x3a3)](_0x93c460){const _0x24d178=_0x6e525a;return this[_0x24d178(0x33c)](),this['_n'](_0x24d178(0x3a3),[_0x93c460]);}async[_0x6e525a(0x2bc)](_0x55b0ef){const _0x27e64f=_0x6e525a;return this[_0x27e64f(0x33c)](),this['_n'](_0x27e64f(0x2bc),[_0x55b0ef]);}['_allEnvsWithFiles'](){const _0x1cb59b=_0x6e525a;return this['_n'](_0x1cb59b(0x60d),[])['map'](_0x509393=>this[_0x1cb59b(0x82e)][_0x1cb59b(0x4f8)](_0x509393));}async['validateBlobIntegrity'](){const _0x486171=_0x6e525a;return this['_assertFiles'](),this['_n'](_0x486171(0x695),[]);}async[_0x6e525a(0x528)](){const _0x29daa3=_0x6e525a;return this['_assertFiles'](),this['_n'](_0x29daa3(0x528),[]);}}return migrate={'OKDBMigrate':_0xacdfb7},migrate;}var mcp,hasRequiredMcp;function requireMcp(){const _0xbe932d=_0xef081e;if(hasRequiredMcp)return mcp;hasRequiredMcp=0x1;class _0x1d5f8a{constructor(_0xce58bc){const _0x38d8c0=_0x2fc2;this[_0x38d8c0(0x82e)]=_0xce58bc,this[_0x38d8c0(0x2c3)]=new Map();}['_n'](_0x52a4e9,_0x462425){const _0x3fd9cf=_0x2fc2;try{return this['okdb']['_call']('mcp',null,_0x52a4e9,_0x462425,!![]);}catch(_0x21e771){if(_0x21e771&&_0x21e771[_0x3fd9cf(0x1bd)]==='MCP_ERROR'&&_0x21e771['details']){if(_0x21e771[_0x3fd9cf(0x22a)]['jsonrpcCode']!==undefined)_0x21e771['jsonrpcCode']=_0x21e771[_0x3fd9cf(0x22a)][_0x3fd9cf(0x5a6)];_0x21e771[_0x3fd9cf(0x22a)]=_0x21e771[_0x3fd9cf(0x22a)]['details'],_0x21e771[_0x3fd9cf(0x1bd)]=undefined;}throw _0x21e771;}}[_0xbe932d(0x40a)](){const _0x4a0676=_0xbe932d;return this['_n'](_0x4a0676(0x82a),[]);}async['_call'](_0x13b1d9,_0x1f0b6c={}){return this['_n']('call',[_0x13b1d9??null,_0x1f0b6c??{}]);}async[_0xbe932d(0x8c8)](_0x1805bf,_0x314a08={}){const _0x2b8ca1=_0xbe932d;return this['_n'](_0x2b8ca1(0x336),[_0x1805bf,_0x314a08??{}]);}[_0xbe932d(0x783)](_0x40c110){const _0x1f0718=_0xbe932d;return this['_n'](_0x1f0718(0x791),[_0x40c110??null]);}}return mcp={'OKDBMcp':_0x1d5f8a},mcp;}var sys,hasRequiredSys;function requireSys(){const _0x3252c5=_0xef081e;if(hasRequiredSys)return sys;hasRequiredSys=0x1;function _0x11d5fb(_0x4bf4f2,_0x525aec,_0x39362d){const _0x555520=_0x2fc2,_0x510cab={};for(const [_0x5e8c4a,_0x6ca66a]of Object[_0x555520(0x84a)](_0x39362d)){_0x510cab[_0x5e8c4a]=_0x6ca66a===_0x555520(0x544)?async(..._0x146164)=>_0x4bf4f2['_call'](_0x525aec,null,_0x5e8c4a,_0x146164):(..._0x45c5af)=>_0x4bf4f2[_0x555520(0x5a1)](_0x525aec,null,_0x5e8c4a,_0x45c5af,![]);}return _0x510cab;}const _0x2cd749=['listTypes','isType',_0x3252c5(0x55b),_0x3252c5(0x7cc),'listIndexes',_0x3252c5(0x8ab),_0x3252c5(0x32d),_0x3252c5(0x533),_0x3252c5(0x240),_0x3252c5(0x63d),_0x3252c5(0x5d4),'describeTypeDetailed','describeAllTypesDetailed','meta',_0x3252c5(0x78c),_0x3252c5(0x3ab),_0x3252c5(0x2b6),_0x3252c5(0x5eb),_0x3252c5(0x7a8),_0x3252c5(0x8a3),'listIndexKeys'],_0x4cf504={'add':_0x3252c5(0x544),'activate':_0x3252c5(0x544),'remove':'async','list':_0x3252c5(0x801),'get':_0x3252c5(0x801),'effective':'sync'},_0x35c786={'open':_0x3252c5(0x544),'register':'async','buildOwnRow':_0x3252c5(0x801),'_buildProcessingFacet':_0x3252c5(0x801),'reportThreadStats':_0x3252c5(0x801),'clearThreadStats':_0x3252c5(0x801),'emitProc':_0x3252c5(0x801),'addSupervisedChild':'async','removeSupervisedChild':_0x3252c5(0x801),'updateSupervisedChildStats':_0x3252c5(0x801),'publishChildRow':_0x3252c5(0x544),'putNode':'async','removeNode':_0x3252c5(0x544),'nodeDead':'sync','listNodes':'sync','reap':_0x3252c5(0x544),'publishOwnRow':'async','deregisterSelf':'async','setOwnMeta':_0x3252c5(0x801),'noteListenAddr':_0x3252c5(0x801),'hasDesired':'sync','getDesired':_0x3252c5(0x801),'setDesired':'async','listDesired':_0x3252c5(0x801),'getCmd':_0x3252c5(0x801),'bumpCmd':_0x3252c5(0x544),'processingStatusView':'sync','processorsView':'sync','clusterStatusView':_0x3252c5(0x801),'nodesView':_0x3252c5(0x801),'treeView':_0x3252c5(0x801),'getProcess':_0x3252c5(0x801),'runtimeProcessesView':_0x3252c5(0x801)};function _0x4d8158(_0x146850){const _0x1a3cb6=_0x3252c5,_0x3fc695={},_0x56f9e8=_0x39b168=>_0x39b168&&typeof _0x39b168==='object'&&!Array[_0x1a3cb6(0x888)](_0x39b168)&&typeof _0x39b168[_0x1a3cb6(0x686)]===_0x1a3cb6(0x43c)?_0x39b168['name']:_0x39b168;for(const _0x5d5bcd of _0x2cd749)_0x3fc695[_0x5d5bcd]=_0x5d5bcd===_0x1a3cb6(0x8a3)?async(..._0x18a915)=>_0x146850[_0x1a3cb6(0x5a1)](_0x1a3cb6(0x5c3),null,_0x5d5bcd,_0x18a915['map'](_0x56f9e8),!![]):(..._0x4a9a2d)=>_0x146850[_0x1a3cb6(0x5a1)]('meta',null,_0x5d5bcd,_0x4a9a2d[_0x1a3cb6(0x642)](_0x56f9e8),![]);return _0x3fc695;}function _0x31bbd0(_0x28e615){const _0x4efbe6=_0x11d5fb(_0x28e615,'licenses',_0x4cf504);return _0x4efbe6;}function _0x505a04(_0x1ba906){const _0x1953b1=_0x3252c5,_0x4d320d=()=>_0x1ba906[_0x1953b1(0x6af)][_0x1953b1(0x87a)](),_0x167002=_0x1c5b72=>_0x1c5b72[_0x1953b1(0x66b)]?{..._0x1c5b72,'_isFree':!![]}:_0x1c5b72;return{async 'addLicense'(_0xbb6e90){const _0x1584c1=_0x1953b1;return _0x1ba906[_0x1584c1(0x6af)][_0x1584c1(0x77d)](_0xbb6e90);},async 'reload'(){},async 'recheck'(){},get 'active'(){const _0x51086e=_0x4d320d();return _0x51086e['free']?null:_0x51086e;},get 'effective'(){return _0x167002(_0x4d320d());},'hasLimit'(_0x4e5999){const _0x55895a=_0x1953b1,_0x2c0e71=_0x4d320d();if(!_0x2c0e71[_0x55895a(0x26e)])return![];const _0x24a34e=_0x2c0e71[_0x55895a(0x368)]?.[_0x4e5999];return!(_0x24a34e===null||_0x24a34e===undefined||_0x24a34e===0x0);},'isFeatureEnabled'(_0x25a73e){const _0x4a9984=_0x1953b1,_0x493bc2=_0x4d320d();return!_0x493bc2['enforced']||!!_0x493bc2[_0x4a9984(0x264)]?.[_0x25a73e];},'assertFeature'(_0x3b1797){const _0x52dee7=_0x1953b1,_0x4af8b7=_0x4d320d();if(!_0x4af8b7[_0x52dee7(0x26e)]||_0x4af8b7['features']?.[_0x3b1797])return;const {OKDBError:_0x5a581f}=requireErrors(),_0x298c38=_0x4af8b7['free']?_0x52dee7(0x584)+_0x3b1797+_0x52dee7(0x3ac)+_0x3b1797+_0x52dee7(0x88b):'Feature\x20not\x20licensed:\x20'+_0x3b1797+_0x52dee7(0x804)+_0x3b1797+'\x22.';throw new _0x5a581f(_0x298c38,'LICENSE_FEATURE_DISABLED',{'feature':_0x3b1797});},'assertLimit'(_0x4b963a,_0x40c845){const _0xb1b970=_0x1953b1,_0x16b0ce=_0x4d320d();if(!_0x16b0ce['enforced'])return;const _0x2932c1=_0x16b0ce[_0xb1b970(0x368)]?.[_0x4b963a];if(_0x2932c1===null||_0x2932c1===undefined||_0x2932c1===0x0)return;if(_0x40c845>=_0x2932c1){const {OKDBError:_0x2d4e6e}=requireErrors();throw new _0x2d4e6e(_0xb1b970(0x797)+_0x4b963a+'\x20('+_0x40c845+'/'+_0x2932c1+')',_0xb1b970(0x579),{'limit':_0x4b963a,'current':_0x40c845,'max':_0x2932c1});}},'listLicenses'(){const _0x19edb9=_0x1953b1;return _0x1ba906[_0x19edb9(0x6af)][_0x19edb9(0x328)]();},'getPins'(){const _0x5f122a=_0x1953b1;return _0x1ba906[_0x5f122a(0x6af)][_0x5f122a(0x328)]()[_0x5f122a(0x642)](_0x10bb27=>({'licenseId':_0x10bb27['id'],'pin':_0x10bb27['type']===_0x5f122a(0x6bb)?null:_0x10bb27[_0x5f122a(0x2e7)]}));}};}function _0x29a0da(_0xc260f9){const _0x496186=_0x3252c5,_0x4a6bed=_0x11d5fb(_0xc260f9,'processes',_0x35c786);Object[_0x496186(0x43a)](_0x4a6bed,_0x496186(0x7ef),{'get':()=>_0xc260f9[_0x496186(0x5a1)](_0x496186(0x6f9),null,_0x496186(0x7ef),[],![])}),Object[_0x496186(0x43a)](_0x4a6bed,_0x496186(0x5f9),{'get':()=>_0xc260f9['_call'](_0x496186(0x6f9),null,'rowKey',[],![])}),_0x4a6bed['_listenAddr']=null;const _0x4bd58c=_0x4a6bed[_0x496186(0x814)];_0x4a6bed[_0x496186(0x814)]=_0x3eeffe=>{const _0x47a24e=_0x496186;return _0x4a6bed[_0x47a24e(0x38a)]=_0x3eeffe,_0x4bd58c(_0x3eeffe);};const _0x5f5dd5=()=>_0x4a6bed['listNodes']()['map'](_0x4bc0c6=>({'key':_0x4bc0c6['nodeKey'],'value':_0x4bc0c6,'version':0x1})),_0x26c12c={'name':_0x496186(0x593),'_sync':![],'_isOpen':!![],'isProcessStore':!![],'hasType':_0x358659=>_0x358659===_0x496186(0x6ec),'getRange':_0x552bbd=>_0x552bbd===_0x496186(0x6ec)?_0x5f5dd5()[Symbol[_0x496186(0x6a7)]]():[][Symbol[_0x496186(0x6a7)]](),'getKeys':_0xd073d9=>_0xd073d9===_0x496186(0x6ec)?_0x5f5dd5()[_0x496186(0x642)](_0x36be53=>_0x36be53[_0x496186(0x59b)])[Symbol[_0x496186(0x6a7)]]():[][Symbol[_0x496186(0x6a7)]](),'getValues':_0x5d420c=>_0x5d420c==='node'?_0x5f5dd5()[_0x496186(0x642)](_0x89ef15=>_0x89ef15[_0x496186(0x744)])[Symbol[_0x496186(0x6a7)]]():[][Symbol[_0x496186(0x6a7)]](),'get':(_0x3ff1bb,_0x3c305c)=>_0x3ff1bb===_0x496186(0x6ec)?_0x5f5dd5()[_0x496186(0x24c)](_0x3753bd=>_0x3753bd['key']===_0x3c305c)?.[_0x496186(0x744)]:undefined,'getCount':_0xe7482=>_0xe7482==='node'?_0x5f5dd5()[_0x496186(0x788)]:0x0};Object['defineProperty'](_0x4a6bed,_0x496186(0x7f3),{'get':()=>_0xc260f9[_0x496186(0x5a1)](_0x496186(0x6f9),null,_0x496186(0x752),[],![])?_0x26c12c:null});const _0x1ce768=_0x4a6bed[_0x496186(0x6bb)];_0x4a6bed[_0x496186(0x6bb)]=async _0x562365=>{const _0xdbff50=_0x496186;return await _0x1ce768(_0x562365),_0x4a6bed[_0xdbff50(0x7f3)];},_0x4a6bed[_0x496186(0x71f)]=()=>_0xc260f9[_0x496186(0x5a1)](_0x496186(0x6f9),null,_0x496186(0x4d7),[],!![]);const {RawDb:_0x3b687a}=requireRawdb();return Object[_0x496186(0x43a)](_0x4a6bed,'_desired',{'get':()=>_0xc260f9[_0x496186(0x85c)]?_0x4a6bed['__desired']||=new _0x3b687a(_0xc260f9[_0x496186(0x85c)],_0x496186(0x727)):undefined}),Object[_0x496186(0x43a)](_0x4a6bed,_0x496186(0x5be),{'get':()=>_0xc260f9[_0x496186(0x85c)]?_0x4a6bed[_0x496186(0x469)]||=new _0x3b687a(_0xc260f9[_0x496186(0x85c)],_0x496186(0x3c9)):undefined}),_0x4a6bed[_0x496186(0x893)]=()=>_0xc260f9[_0x496186(0x5a1)]('processes',null,'isActive',[],![]),Object[_0x496186(0x43a)](_0x4a6bed,_0x496186(0x6ff),{'get':()=>_0xc260f9['_call'](_0x496186(0x6f9),null,_0x496186(0x430),[],![])}),Object[_0x496186(0x43a)](_0x4a6bed,_0x496186(0x6da),{'get':()=>_0xc260f9[_0x496186(0x5a1)](_0x496186(0x6f9),null,_0x496186(0x7aa),[],![])}),_0x4a6bed[_0x496186(0x557)]=()=>_0xc260f9[_0x496186(0x5a1)](_0x496186(0x6f9),null,_0x496186(0x2c6),[],![]),_0x4a6bed['_emitProc']=(_0x1a16d9,_0x442c85)=>_0xc260f9[_0x496186(0x5a1)](_0x496186(0x6f9),null,_0x496186(0x3d8),[_0x1a16d9,_0x442c85],![]),_0x4a6bed;}return sys={'makeMeta':_0x4d8158,'makeLicenses':_0x31bbd0,'makeLicenseChecker':_0x505a04,'makeProcesses':_0x29a0da},sys;}var okdbLogger,hasRequiredOkdbLogger;function requireOkdbLogger(){const _0x2b7c79=_0xef081e;if(hasRequiredOkdbLogger)return okdbLogger;hasRequiredOkdbLogger=0x1;const _0x4238cd={'debug':0xa,'info':0x14,'warn':0x1e,'error':0x28};class _0x48ded4{constructor(_0x37a21b){const _0x19dea1=_0x2fc2;this['okdb']=_0x37a21b,this[_0x19dea1(0x8b2)]=new Set(),this[_0x19dea1(0x3ba)]={};}[_0x2b7c79(0x7ad)](_0x5ed058){const _0x1fe8e3=_0x2b7c79,_0x4e3e80=new _0x48ded4(this[_0x1fe8e3(0x82e)]);return _0x4e3e80[_0x1fe8e3(0x8b2)]=this[_0x1fe8e3(0x8b2)],_0x4e3e80[_0x1fe8e3(0x3ba)]={...this['_meta'],..._0x5ed058},_0x4e3e80;}['attach'](_0x52e28a){const _0x503dfd=_0x2b7c79;return this[_0x503dfd(0x8b2)][_0x503dfd(0x77d)](_0x52e28a),()=>this[_0x503dfd(0x8b2)][_0x503dfd(0x46b)](_0x52e28a);}[_0x2b7c79(0x38b)](){const _0x493106=_0x2b7c79,_0x48e4db=_0x4238cd[process.env.OKDB_LOG_LEVEL]??_0x4238cd['info'];return this[_0x493106(0x665)]=this[_0x493106(0x4d3)](({level:_0x51196b,msg:_0x549b13,meta:_0x14a083,context:_0x2e6f68,ts:_0x5afddb})=>{const _0x33a022=_0x493106;if((_0x4238cd[_0x51196b]??_0x4238cd[_0x33a022(0x1f9)])<_0x48e4db)return;if(_0x14a083?.[_0x33a022(0x859)]===_0x33a022(0x1f1)&&(_0x51196b===_0x33a022(0x1f9)||_0x51196b===_0x33a022(0x4a5)))return;const _0x248ca7=_0x51196b===_0x33a022(0x860)?console[_0x33a022(0x860)]:_0x51196b===_0x33a022(0x5df)?console['warn']:_0x51196b==='info'?console[_0x33a022(0x1f9)]:console[_0x33a022(0x6d5)],_0x483c00=_0x14a083&&Object[_0x33a022(0x607)](_0x14a083)[_0x33a022(0x788)]>0x0;_0x483c00||_0x2e6f68!==undefined?_0x248ca7(new Date(_0x5afddb)['toISOString'](),_0x549b13,..._0x483c00?[_0x14a083]:[],..._0x2e6f68!==undefined?[_0x2e6f68]:[]):_0x248ca7(new Date(_0x5afddb)[_0x33a022(0x265)](),_0x549b13);}),this[_0x493106(0x665)];}[_0x2b7c79(0x3ef)](){const _0x2ede5b=_0x2b7c79;this['_detachConsole']&&(this[_0x2ede5b(0x665)](),this[_0x2ede5b(0x665)]=null);}[_0x2b7c79(0x5d8)](_0x162ae0,_0x57fb89){const _0x374bad=_0x2b7c79,_0x1d6433=require$$0$4,_0x2cf129=0x1f4,_0x16eb80=Number(process.env.OKDB_LOG_FLUSH_MS)||0x3e8;let _0x16e18d=[],_0x29f84a=0x0,_0x4fa2c8=null;const _0x4f4193=()=>{const _0x104d57=_0x2fc2;_0x4fa2c8=null;if(_0x16e18d['length']===0x0)return;const _0x2bb325=_0x16e18d;_0x16e18d=[],_0x29f84a>0x0&&(_0x2bb325['push']({'ts':Date['now'](),'level':'warn','msg':_0x104d57(0x80d)+_0x29f84a+_0x104d57(0x838)+(_0x29f84a===0x1?'y':_0x104d57(0x4aa))+_0x104d57(0x258),'feature':_0x104d57(0x6d5),'node':_0x57fb89,'context':null}),_0x29f84a=0x0),_0x162ae0[_0x104d57(0x592)](_0x2136bf=>{const _0x98d72b=_0x104d57;for(const _0x114248 of _0x2bb325)_0x2136bf['put'](_0x98d72b(0x5ed),_0x1d6433[_0x98d72b(0x78a)](),_0x114248);})[_0x104d57(0x603)](()=>{});},_0xe1dd8=this[_0x374bad(0x4d3)](({level:_0x5139f7,msg:_0x560be9,meta:_0x2f010c,context:_0x2da8e4,ts:_0x55667d})=>{const _0x46009c=_0x374bad;if(_0x5139f7===_0x46009c(0x4a5))return;_0x16e18d[_0x46009c(0x788)]>=_0x2cf129&&(_0x29f84a++,_0x16e18d['shift']()),_0x16e18d[_0x46009c(0x27f)]({'ts':_0x55667d,'level':_0x5139f7,'msg':_0x560be9,'feature':_0x2f010c?.[_0x46009c(0x859)]??_0x2f010c?.[_0x46009c(0x796)]??null,'node':_0x57fb89,'context':_0x2da8e4??null}),!_0x4fa2c8&&(_0x4fa2c8=setTimeout(_0x4f4193,_0x16eb80),_0x4fa2c8[_0x46009c(0x8c7)]?.());});return()=>{_0xe1dd8();if(_0x4fa2c8)clearTimeout(_0x4fa2c8);_0x4f4193();};}[_0x2b7c79(0x3aa)](_0x3f5739,_0x2b3575,_0x57ef9f){const _0x30c441=_0x2b7c79;_0x2b3575 instanceof Error&&(_0x57ef9f={'message':_0x2b3575[_0x30c441(0x485)],'stack':_0x2b3575['stack'],..._0x57ef9f},_0x2b3575=_0x2b3575[_0x30c441(0x485)]);const _0x51541d={'level':_0x3f5739,'msg':_0x2b3575,'meta':{...this['_meta']},'context':_0x57ef9f,'ts':Date['now']()};try{this[_0x30c441(0x82e)][_0x30c441(0x3d2)][_0x30c441(0x599)](_0x30c441(0x6d5),_0x51541d);}catch{}for(const _0x688466 of this[_0x30c441(0x8b2)]){try{_0x688466(_0x51541d);}catch{}}}[_0x2b7c79(0x1d0)](_0x2120ce){const _0x532800=_0x2b7c79;try{this[_0x532800(0x82e)]?.[_0x532800(0x3d2)]?.[_0x532800(0x599)]('log',_0x2120ce);}catch{}for(const _0xd0c163 of this['_sinks']){try{_0xd0c163(_0x2120ce);}catch{}}}['info'](_0x449668,_0x1d676f){const _0x2d001d=_0x2b7c79;this[_0x2d001d(0x3aa)](_0x2d001d(0x1f9),_0x449668,_0x1d676f);}['warn'](_0x189018,_0x33855c){const _0x58734d=_0x2b7c79;this['_emit'](_0x58734d(0x5df),_0x189018,_0x33855c);}[_0x2b7c79(0x860)](_0x30e288,_0xb55cab){const _0x3a81c6=_0x2b7c79;this[_0x3a81c6(0x3aa)](_0x3a81c6(0x860),_0x30e288,_0xb55cab);}[_0x2b7c79(0x4a5)](_0x3e1b44,_0x4f1fa4){const _0x1ed32a=_0x2b7c79;this[_0x1ed32a(0x3aa)](_0x1ed32a(0x4a5),_0x3e1b44,_0x4f1fa4);}}return okdbLogger=_0x48ded4,okdbLogger;}var okdbPlugins,hasRequiredOkdbPlugins;function _0x2fc2(_0x23d753,_0x2afa2b){_0x23d753=_0x23d753-0x1ba;const _0x150ede=_0x150e();let _0x2fc277=_0x150ede[_0x23d753];return _0x2fc277;}function requireOkdbPlugins(){const _0x10ccc2=_0xef081e;if(hasRequiredOkdbPlugins)return okdbPlugins;hasRequiredOkdbPlugins=0x1;const {OKDB_STATE:_0x3c9ca5}=requireOkdbEnums(),{OKDBError:_0x488640}=requireOkdbError();class _0x389502{constructor(_0x1519ae){const _0x328f9c=_0x2fc2;this[_0x328f9c(0x82e)]=_0x1519ae,this[_0x328f9c(0x5c1)]=[];}[_0x10ccc2(0x594)](_0x339f68,_0x47ef05){const _0x2a6dea=_0x10ccc2;if(this[_0x2a6dea(0x82e)][_0x2a6dea(0x480)]!==_0x3c9ca5[_0x2a6dea(0x6dc)])throw new _0x488640(_0x2a6dea(0x2c0),_0x2a6dea(0x1df),{'state':this[_0x2a6dea(0x82e)][_0x2a6dea(0x480)]});if(!_0x339f68[_0x2a6dea(0x686)])throw new _0x488640(_0x2a6dea(0x728),_0x2a6dea(0x21c),{'plugin':_0x339f68[_0x2a6dea(0x686)]});const _0x3deafe=_0x339f68[_0x2a6dea(0x685)]??[];for(const _0x1ec8e1 of _0x3deafe){if(!this[_0x2a6dea(0x5c1)][_0x2a6dea(0x3cc)](_0x3a2289=>_0x3a2289[_0x2a6dea(0x796)][_0x2a6dea(0x686)]===_0x1ec8e1))throw new _0x488640(_0x2a6dea(0x6d9)+_0x1ec8e1+_0x2a6dea(0x397)+_0x339f68['name']+')',_0x2a6dea(0x334),{'required':_0x1ec8e1});}if(this[_0x2a6dea(0x5c1)][_0x2a6dea(0x24c)](_0x3ed81d=>_0x3ed81d[_0x2a6dea(0x796)][_0x2a6dea(0x686)]===_0x339f68[_0x2a6dea(0x686)]))throw new _0x488640(_0x2a6dea(0x494)+_0x339f68[_0x2a6dea(0x686)]+_0x2a6dea(0x76d),_0x2a6dea(0x81e),{'plugin':_0x339f68[_0x2a6dea(0x686)]});if(_0x339f68[_0x2a6dea(0x686)]in this['okdb'])throw new _0x488640(_0x2a6dea(0x45a)+_0x339f68[_0x2a6dea(0x686)]+'\x27\x20conflicts\x20with\x20existing\x20OKDB\x20property',_0x2a6dea(0x43d));const _0x2c8594=_0x339f68['register'](this[_0x2a6dea(0x82e)],_0x47ef05);if(!_0x2c8594||typeof _0x2c8594!=='object')throw new _0x488640('Plugin\x20\x27'+_0x339f68[_0x2a6dea(0x686)]+_0x2a6dea(0x1ea),'BAD_PLUGIN',{'plugin':_0x339f68[_0x2a6dea(0x686)]});this[_0x2a6dea(0x5c1)]['push']({'module':_0x339f68,'options':_0x47ef05,'instance':_0x2c8594});}[_0x10ccc2(0x66e)]=[];async['start'](){const _0x4fc2a8=_0x10ccc2;try{for(const _0x187fce of this[_0x4fc2a8(0x5c1)]){await _0x187fce[_0x4fc2a8(0x7ae)][_0x4fc2a8(0x77b)]?.(this[_0x4fc2a8(0x82e)]),this[_0x4fc2a8(0x66e)][_0x4fc2a8(0x27f)](_0x187fce);}}catch(_0x4cd914){await this[_0x4fc2a8(0x6bf)]()[_0x4fc2a8(0x603)](()=>{});throw _0x4cd914;}}async[_0x10ccc2(0x6bf)](){const _0x28a170=_0x10ccc2,_0x1d0937=this[_0x28a170(0x66e)]['reverse']();this[_0x28a170(0x66e)]=[];let _0x507271=null;for(const _0x5611cf of _0x1d0937){try{await _0x5611cf[_0x28a170(0x7ae)][_0x28a170(0x6bf)]?.(this[_0x28a170(0x82e)]);}catch(_0x26694e){_0x507271??=_0x26694e;}}if(_0x507271)throw _0x507271;}}return okdbPlugins=_0x389502,okdbPlugins;}var statics,hasRequiredStatics;function requireStatics(){const _0x8b4700=_0xef081e;if(hasRequiredStatics)return statics;hasRequiredStatics=0x1;const _0x5ea146={'maxDbs':0x400,'pageSize':0x1000,'compression':!![],'encryptionKey':undefined,'mapSize':0x100000000,'durability':_0x8b4700(0x5f7)},_0xc8aee0=new Set([_0x8b4700(0x41d),_0x8b4700(0x31c),_0x8b4700(0x635),'encryptionKey','encryptionKeys',_0x8b4700(0x58b),'durability',_0x8b4700(0x244),_0x8b4700(0x879),_0x8b4700(0x65c),_0x8b4700(0x801),_0x8b4700(0x2c1),_0x8b4700(0x1f1),_0x8b4700(0x4e7),_0x8b4700(0x2cf),_0x8b4700(0x6f7),_0x8b4700(0x6d5),_0x8b4700(0x2ba),_0x8b4700(0x572),'engines','processors',_0x8b4700(0x668),_0x8b4700(0x6f9),_0x8b4700(0x2a3),_0x8b4700(0x276),'admin',_0x8b4700(0x758),'debug',_0x8b4700(0x749),_0x8b4700(0x40e)]),_0xba0c70={'http':_0x8b4700(0x3bb)};return statics={'defaults':_0x5ea146,'KNOWN_OPTIONS':_0xc8aee0,'_OPTION_HINTS':_0xba0c70},statics;}var licenseConfig,hasRequiredLicenseConfig;function requireLicenseConfig(){const _0x2731d7=_0xef081e;if(hasRequiredLicenseConfig)return licenseConfig;hasRequiredLicenseConfig=0x1;const _0x512d0c=require$$0$2,_0x4fa9f0=_0x2731d7(0x5d9),_0x35cbde=_0x512d0c[_0x2731d7(0x8d7)](_0x2731d7(0x5f3))['update'](_0x512d0c[_0x2731d7(0x6dd)](_0x4fa9f0)[_0x2731d7(0x701)]({'type':_0x2731d7(0x4e1),'format':'der'}))[_0x2731d7(0x5fe)](_0x2731d7(0x1e9))['slice'](0x0,0x10),_0x40a2b4={'LICENSED_BUILD':_0x2731d7(0x8f1),'PUBLIC_KEY_PEM':_0x4fa9f0,'PUB_FINGERPRINT':_0x35cbde,'LICENSE_EXPIRED_ACTION':_0x2731d7(0x6d5)};return licenseConfig={'_C':_0x40a2b4,'PUBLIC_KEY_PEM':_0x4fa9f0,'PUB_FINGERPRINT':_0x35cbde},licenseConfig;}var okdbSubscriptionsStore={'exports':{}},okdbQueryFilter,hasRequiredOkdbQueryFilter;function requireOkdbQueryFilter(){const _0x23d142=_0xef081e;if(hasRequiredOkdbQueryFilter)return okdbQueryFilter;hasRequiredOkdbQueryFilter=0x1;const _0x140906=require$$0$5,{OKDBError:_0x4d7d73}=requireOkdbError(),_0x2dfc1c=[_0x23d142(0x785),_0x23d142(0x731),'$gt',_0x23d142(0x8eb),_0x23d142(0x471),_0x23d142(0x6a5),_0x23d142(0x673),'$nin','$exists',_0x23d142(0x756),_0x23d142(0x8d3),_0x23d142(0x8e2),_0x23d142(0x213),'$all',_0x23d142(0x7e9),_0x23d142(0x5e4),_0x23d142(0x8a1),_0x23d142(0x3b4),'$or',_0x23d142(0x30e)],_0x3a6596=[_0x23d142(0x2dd)];function _0x22498f(_0x23bc30){return()=>{const _0x2bf1c8=_0x2fc2,_0x4ec6c9=new _0x4d7d73(_0x2bf1c8(0x49e)+_0x23bc30+_0x2bf1c8(0x895),'QUERY_OPERATOR_FORBIDDEN',{'operator':_0x23bc30});_0x4ec6c9[_0x2bf1c8(0x442)]=0x190;throw _0x4ec6c9;};}const _0x45f65f=Object[_0x23d142(0x4e6)]({...Object[_0x23d142(0x89e)](_0x2dfc1c['map'](_0x5e1cc9=>[_0x5e1cc9,_0x140906[_0x5e1cc9]])),...Object[_0x23d142(0x89e)](_0x3a6596[_0x23d142(0x642)](_0x1f105e=>[_0x1f105e,_0x22498f(_0x1f105e)]))});function _0x21f71(_0x3e3e19){const _0x45a79a=_0x23d142;return _0x140906[_0x45a79a(0x2c8)](_0x3e3e19,{'operations':_0x45f65f});}function _0x3a711e(_0x34a591){const _0x1156dd=_0x23d142;if(_0x34a591==null)return;try{_0x21f71(_0x34a591);}catch(_0x3bf58f){if(_0x3bf58f?.[_0x1156dd(0x1bd)]==='QUERY_OPERATOR_FORBIDDEN')throw _0x3bf58f;}}return okdbQueryFilter={'compileFilter':_0x21f71,'assertFilterAllowed':_0x3a711e,'ALLOWED_OPERATORS':_0x2dfc1c,'FORBIDDEN_OPERATORS':_0x3a6596},okdbQueryFilter;}var okdbEnvRefs,hasRequiredOkdbEnvRefs;function requireOkdbEnvRefs(){const _0x59666e=_0xef081e;if(hasRequiredOkdbEnvRefs)return okdbEnvRefs;hasRequiredOkdbEnvRefs=0x1;const {CHANGE_ACTIONS:_0x3fe616,EVENTS:_0x9a5596}=requireOkdbEnums(),{OKDBError:_0x1b6351,OKDBForeignKeyDeleteError:_0x172a66}=requireOkdbError(),_0x236e83=_0x59666e(0x70f),_0x39f41f=new Set(['no_action',_0x59666e(0x884),_0x59666e(0x556),_0x59666e(0x42c)]);function _0x4008ad(_0x4c033e,_0x6b510d){const _0x369376=_0x59666e;if(_0x4c033e==null||!_0x6b510d)return undefined;const _0x307412=_0x6b510d[_0x369376(0x359)]('.');let _0x8e2428=_0x4c033e;for(const _0x23a663 of _0x307412){if(_0x8e2428==null||typeof _0x8e2428!==_0x369376(0x7f6)||!(_0x23a663 in _0x8e2428))return undefined;_0x8e2428=_0x8e2428[_0x23a663];}return _0x8e2428;}function _0x1006b9(_0x354a51,_0x39b769,_0x2c5706){const _0x4dc5bd=_0x59666e,_0x59b754=_0x39b769[_0x4dc5bd(0x359)]('.'),_0x40355a={..._0x354a51};let _0x418cc0=_0x40355a;for(let _0x366843=0x0;_0x366843<_0x59b754['length']-0x1;_0x366843++){_0x418cc0[_0x59b754[_0x366843]]=_0x418cc0[_0x59b754[_0x366843]]!=null?{..._0x418cc0[_0x59b754[_0x366843]]}:{},_0x418cc0=_0x418cc0[_0x59b754[_0x366843]];}return _0x418cc0[_0x59b754[_0x59b754[_0x4dc5bd(0x788)]-0x1]]=_0x2c5706,_0x40355a;}function _0xdfc3c9(_0x1f15db,_0x16d97c,_0x42f1de,_0x59f2a7,_0x935495){return[_0x1f15db,_0x16d97c,_0x42f1de,_0x59f2a7,_0x935495];}function _0x3f08da(_0x5c9f62){const _0x36f1ad=_0x59666e;return typeof _0x5c9f62===_0x36f1ad(0x43c)||typeof _0x5c9f62===_0x36f1ad(0x559);}function _0x35a239(_0x18f2fa,_0x46edae){const _0x11d1c8=_0x59666e;return JSON[_0x11d1c8(0x754)]([_0x18f2fa,_0x46edae]);}function*_0x561206(_0x314489,_0x4e0591,_0x5dae48){const _0x204daf=_0x59666e,_0x38fda6=_0x5dae48!==undefined;for(const {key:_0x221994}of _0x314489[_0x204daf(0x433)]({'start':_0x38fda6?[_0x4e0591,_0x5dae48]:[_0x4e0591]})){if(!Array['isArray'](_0x221994))continue;if(_0x221994[0x0]!==_0x4e0591||_0x38fda6&&_0x221994[0x1]!==_0x5dae48)break;yield _0x221994;}}function _0x5d5546(_0x30d789,_0x55ffbb='',_0x64c4de=null){const _0x486101=_0x59666e,_0x17181b=[];if(!_0x30d789||typeof _0x30d789!==_0x486101(0x7f6))return _0x17181b;if(!_0x64c4de)_0x64c4de=_0x30d789;if(_0x30d789[_0x486101(0x303)]){const _0x50a878=_0x30d789['$ref'][_0x486101(0x2bb)](/^#\/\$defs\/(.+)$/);if(_0x50a878&&_0x64c4de?.[_0x486101(0x2a9)]?.[_0x50a878[0x1]])return _0x5d5546(_0x64c4de['$defs'][_0x50a878[0x1]],_0x55ffbb,_0x64c4de);return _0x17181b;}if(_0x30d789[_0x486101(0x703)]&&typeof _0x30d789[_0x486101(0x703)]===_0x486101(0x7f6)&&_0x30d789[_0x486101(0x703)]['type']){const _0x14f682=_0x30d789[_0x486101(0x703)]['onDelete']||_0x486101(0x2b8);if(!_0x39f41f['has'](_0x14f682))throw new _0x1b6351(_0x486101(0x24b)+_0x14f682+_0x486101(0x682)+(_0x55ffbb||_0x486101(0x89d))+_0x486101(0x793)+[..._0x39f41f][_0x486101(0x8a0)](',\x20'),_0x486101(0x725));_0x17181b[_0x486101(0x27f)]({'fieldPath':_0x55ffbb,'targetType':_0x30d789['ref'][_0x486101(0x490)],'onDelete':_0x14f682});}if(_0x30d789[_0x486101(0x3f1)])for(const [_0x4938ae,_0x16d67d]of Object[_0x486101(0x84a)](_0x30d789['properties'])){const _0x520ff7=_0x55ffbb?_0x55ffbb+'.'+_0x4938ae:_0x4938ae;_0x17181b[_0x486101(0x27f)](..._0x5d5546(_0x16d67d,_0x520ff7,_0x64c4de));}return _0x17181b;}function _0x3d903e(_0x59d057){const _0x3176e9=_0x59666e,_0x1a0cf4=new Map(),_0xa86ba1=new Map();for(const _0x52fac2 of _0x59d057[_0x3176e9(0x5b8)]()){if(_0x52fac2['startsWith']('~'))continue;const _0x3e11ff=_0x59d057[_0x3176e9(0x48a)][_0x3176e9(0x292)](_0x52fac2);if(!_0x3e11ff?.[_0x3176e9(0x284)]?.[_0x3176e9(0x891)])continue;let _0x320e83;try{_0x320e83=_0x5d5546(_0x3e11ff[_0x3176e9(0x284)]['definition']);}catch{continue;}if(_0x320e83[_0x3176e9(0x788)]>0x0){_0x1a0cf4[_0x3176e9(0x204)](_0x52fac2,_0x320e83);for(const _0x5ca9a2 of _0x320e83){if(!_0xa86ba1[_0x3176e9(0x396)](_0x5ca9a2['targetType']))_0xa86ba1[_0x3176e9(0x204)](_0x5ca9a2[_0x3176e9(0x58c)],[]);_0xa86ba1['get'](_0x5ca9a2['targetType'])['push']({'sourceType':_0x52fac2,'fieldPath':_0x5ca9a2[_0x3176e9(0x3e4)],'onDelete':_0x5ca9a2[_0x3176e9(0x36d)]});}}}_0x59d057[_0x3176e9(0x409)]={'outgoing':_0x1a0cf4,'incoming':_0xa86ba1};if(_0x1a0cf4[_0x3176e9(0x4ff)]>0x0)_0x2dcf6b(_0x59d057);}function _0x2dfcd6(_0x4860f3,_0x1959c1){const _0x735664=_0x59666e;return _0x4860f3[_0x735664(0x409)][_0x735664(0x2b2)][_0x735664(0x292)](_0x1959c1)||[];}function _0x53d515(_0x540c26,_0x30ee2e){const _0x4b7fde=_0x59666e;return _0x540c26['_refCache'][_0x4b7fde(0x6de)]['get'](_0x30ee2e)||[];}function _0x2dcf6b(_0x50209f){const _0x2c4d08=_0x59666e;if(_0x50209f[_0x2c4d08(0x62d)])return _0x50209f[_0x2c4d08(0x62d)];return _0x50209f[_0x2c4d08(0x62d)]=_0x50209f['db'][_0x2c4d08(0x5b6)]('__ref_index',{'dupSort':![]}),_0x50209f[_0x2c4d08(0x62d)];}function _0x5b5943(_0x17b8e8,_0x1fc60e,_0x84b56e,_0x96e651,_0x27c0ba){const _0x517f52=_0x59666e,_0x5aac42=_0x2dfcd6(_0x17b8e8,_0x1fc60e);if(_0x5aac42[_0x517f52(0x788)]===0x0)return;const _0x561580=_0x2dcf6b(_0x17b8e8);for(const _0x21e8e5 of _0x5aac42){const _0x5c01a5=_0x27c0ba!=null?_0x4008ad(_0x27c0ba,_0x21e8e5[_0x517f52(0x3e4)]):undefined,_0x5420be=_0x96e651!=null?_0x4008ad(_0x96e651,_0x21e8e5[_0x517f52(0x3e4)]):undefined;if(_0x5c01a5===_0x5420be)continue;_0x3f08da(_0x5c01a5)&&_0x561580[_0x517f52(0x4f5)](_0xdfc3c9(_0x21e8e5[_0x517f52(0x58c)],_0x5c01a5,_0x1fc60e,_0x84b56e,_0x21e8e5[_0x517f52(0x3e4)])),_0x3f08da(_0x5420be)&&_0x561580[_0x517f52(0x57a)](_0xdfc3c9(_0x21e8e5[_0x517f52(0x58c)],_0x5420be,_0x1fc60e,_0x84b56e,_0x21e8e5[_0x517f52(0x3e4)]),0x1);}}function _0x49c2f1(_0x417506,_0x337bb0,_0x2d7b20,_0x1945df){const _0xe01c10=_0x59666e,_0x23d7a8=_0x2dfcd6(_0x417506,_0x337bb0);if(_0x23d7a8[_0xe01c10(0x788)]===0x0)return;const _0x395768=_0x2dcf6b(_0x417506);for(const _0x2140c6 of _0x23d7a8){const _0x504bfd=_0x1945df!=null?_0x4008ad(_0x1945df,_0x2140c6[_0xe01c10(0x3e4)]):undefined;_0x3f08da(_0x504bfd)&&_0x395768[_0xe01c10(0x4f5)](_0xdfc3c9(_0x2140c6[_0xe01c10(0x58c)],_0x504bfd,_0x337bb0,_0x2d7b20,_0x2140c6[_0xe01c10(0x3e4)]));}}function _0x3ee529(_0x701aca,_0x15ad46,_0x523443,_0x24b20f){const _0x42da6c=_0x59666e,_0x3dcbaa=_0x2dfcd6(_0x701aca,_0x15ad46);if(_0x3dcbaa[_0x42da6c(0x788)]===0x0)return[];const _0x48a687=[];for(const _0x3e92d4 of _0x3dcbaa){const _0x1b8c70=_0x4008ad(_0x24b20f,_0x3e92d4[_0x42da6c(0x3e4)]);if(_0x1b8c70==null)continue;if(!_0x701aca['hasType'](_0x3e92d4['targetType'])){_0x48a687[_0x42da6c(0x27f)]({'fieldPath':_0x3e92d4[_0x42da6c(0x3e4)],'targetType':_0x3e92d4[_0x42da6c(0x58c)],'targetKey':_0x1b8c70,'message':_0x42da6c(0x3f7)+_0x3e92d4[_0x42da6c(0x58c)]+_0x42da6c(0x874)});continue;}const _0x46263a=_0x701aca[_0x42da6c(0x60e)](_0x3e92d4[_0x42da6c(0x58c)])[_0x42da6c(0x7a1)];!_0x46263a[_0x42da6c(0x2a2)](_0x1b8c70)&&_0x48a687['push']({'fieldPath':_0x3e92d4['fieldPath'],'targetType':_0x3e92d4['targetType'],'targetKey':_0x1b8c70,'message':_0x42da6c(0x505)+_0x1b8c70+'\x27\x20does\x20not\x20exist\x20in\x20type\x20\x27'+_0x3e92d4['targetType']+'\x27'});}return _0x48a687;}function _0xe0f8cc(_0xf9e94d,_0xc02748,_0x5cea7d,_0x4b6ad4,_0x1b070b,{timestamp:_0x158785,origin:_0x4d3d9d,_cascadeVisited:_0x526759}){const _0x3fab0d=_0x59666e,_0x5730dd=_0x53d515(_0xf9e94d,_0x5cea7d);if(_0x5730dd[_0x3fab0d(0x788)]===0x0)return;const _0x29d385=_0x2dcf6b(_0xf9e94d),_0x242632=[];for(const [,,_0x3ab6c1,_0x41392b,_0x244394]of _0x561206(_0x29d385,_0x5cea7d,_0x4b6ad4)){_0x242632[_0x3fab0d(0x27f)]({'sourceType':_0x3ab6c1,'sourceKey':_0x41392b,'fieldPath':_0x244394});}if(_0x242632[_0x3fab0d(0x788)]===0x0)return;for(const _0x4d7621 of _0x242632){const _0x4687ca=_0x5730dd[_0x3fab0d(0x24c)](_0x28d47c=>_0x28d47c[_0x3fab0d(0x753)]===_0x4d7621[_0x3fab0d(0x753)]&&_0x28d47c[_0x3fab0d(0x3e4)]===_0x4d7621[_0x3fab0d(0x3e4)]),_0x27e612=_0x4687ca?.[_0x3fab0d(0x36d)]||_0x3fab0d(0x2b8);switch(_0x27e612){case _0x3fab0d(0x42c):{if(_0x4d3d9d===null)throw new _0x172a66(_0x5cea7d,_0x4b6ad4,_0x242632[_0x3fab0d(0x877)](_0x49c990=>{const _0x1d1c14=_0x3fab0d,_0x2357eb=_0x5730dd[_0x1d1c14(0x24c)](_0x55c682=>_0x55c682[_0x1d1c14(0x753)]===_0x49c990[_0x1d1c14(0x753)]&&_0x55c682[_0x1d1c14(0x3e4)]===_0x49c990['fieldPath']);return(_0x2357eb?.['onDelete']||_0x1d1c14(0x2b8))===_0x1d1c14(0x42c);}));break;}case _0x3fab0d(0x884):{const _0x538deb=_0x35a239(_0x4d7621[_0x3fab0d(0x753)],_0x4d7621[_0x3fab0d(0x379)]);if(_0x526759[_0x3fab0d(0x396)](_0x538deb))continue;_0xf9e94d[_0x3fab0d(0x60e)](_0x4d7621['sourceType'])['data'][_0x3fab0d(0x2a2)](_0x4d7621[_0x3fab0d(0x379)])&&_0xf9e94d[_0x3fab0d(0x5d5)](_0xc02748,_0x4d7621['sourceType'],_0x4d7621[_0x3fab0d(0x379)],{'timestamp':_0x158785,'origin':_0x4d3d9d,'_cascadeVisited':_0x526759});break;}case _0x3fab0d(0x556):{const _0x2f8aa8=_0xf9e94d[_0x3fab0d(0x60e)](_0x4d7621[_0x3fab0d(0x753)])[_0x3fab0d(0x7a1)],_0x16fb86=_0x2f8aa8[_0x3fab0d(0x408)](_0x4d7621[_0x3fab0d(0x379)]);if(_0x16fb86){const _0x53484c=_0x1006b9(_0x16fb86[_0x3fab0d(0x744)],_0x4d7621['fieldPath'],null);_0xf9e94d[_0x3fab0d(0x55f)](_0xc02748,_0x3fab0d(0x1dd),_0x4d7621[_0x3fab0d(0x753)],_0x4d7621[_0x3fab0d(0x379)],_0x53484c,{'timestamp':_0x158785,'origin':_0x4d3d9d,'_cascading':!![]});}break;}}}}function _0x1268c1(_0x2a83f9){const _0x261811=_0x59666e;!_0x2a83f9[_0x261811(0x512)](_0x236e83)&&_0x2a83f9[_0x261811(0x1bc)](_0x236e83);}function _0x40fea7(_0x1b99c2,_0x403239,_0xaba51,_0x128d21,_0x2f5f49,_0xf86dcd,_0x454227,{timestamp:timestamp=Date[_0x59666e(0x3d4)](),origin:origin=null}={}){const _0x5f09d3=_0x59666e;_0x1268c1(_0x1b99c2);const _0x46099b=_0xaba51+'@'+_0x128d21+'@'+_0x2f5f49,_0x157346={'sourceType':_0xaba51,'sourceKey':_0x128d21,'fieldPath':_0x2f5f49,'targetType':_0xf86dcd,'targetKey':_0x454227,'timestamp':timestamp,'origin':origin},_0x3369c8=_0x1b99c2[_0x5f09d3(0x60e)](_0x236e83)[_0x5f09d3(0x7a1)],_0x1b5d76=_0x3369c8['getEntry'](_0x46099b),_0xedc61=_0x1b5d76?_0x1b5d76['version']+0x1:0x1;_0x3369c8[_0x5f09d3(0x57a)](_0x46099b,_0x157346,_0xedc61),_0x1b99c2[_0x5f09d3(0x510)]({'id':_0x5f09d3(0x6e8)+_0x236e83+'@'+_0x46099b,'type':_0x236e83,'key':_0x46099b,'action':_0x3fe616[_0x5f09d3(0x3c2)],'timestamp':timestamp,'txnId':_0x403239?.['id'],'origin':origin},_0x1b5d76?.[_0x5f09d3(0x744)],_0x157346),_0x1b99c2[_0x5f09d3(0x3d2)][_0x5f09d3(0x599)](_0x9a5596[_0x5f09d3(0x462)],{'sourceType':_0xaba51,'sourceKey':_0x128d21,'fieldPath':_0x2f5f49,'targetType':_0xf86dcd,'targetKey':_0x454227,'env':_0x1b99c2[_0x5f09d3(0x686)]});}function _0x345253(_0x3c3a47,_0x56cf27,_0x39aa19,_0x49631f,_0x539ae9,{timestamp:timestamp=Date[_0x59666e(0x3d4)](),origin:origin=null}={}){const _0x3371c6=_0x59666e;if(!_0x3c3a47['hasType'](_0x236e83))return;const _0x50b1a7=_0x39aa19+'@'+_0x49631f+'@'+_0x539ae9,_0x2b2312=_0x3c3a47[_0x3371c6(0x60e)](_0x236e83)[_0x3371c6(0x7a1)],_0x2190c4=_0x2b2312[_0x3371c6(0x408)](_0x50b1a7);if(!_0x2190c4)return;_0x2b2312['removeSync'](_0x50b1a7),_0x3c3a47[_0x3371c6(0x510)]({'id':_0x3371c6(0x6e8)+_0x236e83+'@'+_0x50b1a7,'type':_0x236e83,'key':_0x50b1a7,'action':_0x3fe616[_0x3371c6(0x3bd)],'timestamp':timestamp,'txnId':_0x56cf27?.['id'],'origin':origin},_0x2190c4[_0x3371c6(0x744)],undefined),_0x3c3a47[_0x3371c6(0x3d2)][_0x3371c6(0x599)](_0x9a5596[_0x3371c6(0x48f)],{'sourceType':_0x39aa19,'sourceKey':_0x49631f,'fieldPath':_0x539ae9,'env':_0x3c3a47['name']});}function _0x42a0ed(_0x4d6c5b,_0x514056,_0x44d5d4,_0x486b69,_0x1f8221={}){const _0x256bc1=_0x59666e;if(!_0x4d6c5b[_0x256bc1(0x512)](_0x236e83))return;const _0x32a02b=_0x4d6c5b[_0x256bc1(0x60e)](_0x236e83)[_0x256bc1(0x7a1)],_0x388a25=_0x44d5d4+'@'+_0x486b69+'@',_0x160534=[];for(const {key:_0x4ec3b1,value:_0x1d9d07}of _0x32a02b[_0x256bc1(0x433)]({'start':_0x388a25,'end':_0x388a25+'\uffff'})){if(_0x1d9d07?.[_0x256bc1(0x753)]===_0x44d5d4&&_0x1d9d07?.[_0x256bc1(0x379)]===_0x486b69)_0x160534[_0x256bc1(0x27f)](_0x4ec3b1);}for(const _0x18a3f0 of _0x160534){const _0x3f8e3b=_0x32a02b[_0x256bc1(0x408)](_0x18a3f0);if(!_0x3f8e3b)continue;_0x32a02b[_0x256bc1(0x4f5)](_0x18a3f0),_0x4d6c5b['_logChange']({'id':_0x256bc1(0x6e8)+_0x236e83+'@'+_0x18a3f0,'type':_0x236e83,'key':_0x18a3f0,'action':_0x3fe616[_0x256bc1(0x3bd)],'timestamp':_0x1f8221[_0x256bc1(0x8d2)]||Date[_0x256bc1(0x3d4)](),'txnId':_0x514056?.['id'],'origin':_0x1f8221[_0x256bc1(0x3b7)]},_0x3f8e3b['value'],undefined);}}function _0x424aab(_0x20f874,_0x37b69c){const _0x4896f4=_0x59666e;if(!_0x20f874[_0x4896f4(0x512)](_0x236e83))return;const _0x32b1fb=_0x20f874[_0x4896f4(0x60e)](_0x236e83)[_0x4896f4(0x7a1)],_0x44ebf5=_0x37b69c+'@',_0x33497b=[];for(const {key:_0x19d51e,value:_0x54c9cb}of _0x32b1fb['getRange']({'start':_0x44ebf5,'end':_0x44ebf5+'\uffff'})){if(_0x54c9cb?.['sourceType']===_0x37b69c)_0x33497b['push'](_0x19d51e);}for(const _0x5b112a of _0x33497b)_0x32b1fb[_0x4896f4(0x4f5)](_0x5b112a);}async function _0x2943cc(_0x2be0fe,_0x46820a){const _0x3a4373=_0x59666e,_0x2489e9=_0x2dfcd6(_0x2be0fe,_0x46820a);if(_0x2489e9[_0x3a4373(0x788)]===0x0)return;await _0x2be0fe[_0x3a4373(0x27a)][_0x3a4373(0x7b5)](()=>{const _0x13b63c=_0x3a4373;for(const {key:_0x275c19,value:_0x38387c}of _0x2be0fe[_0x13b63c(0x433)](_0x46820a)){_0x5b5943(_0x2be0fe,_0x46820a,_0x275c19,_0x38387c,null);const _0x531059=_0x3ee529(_0x2be0fe,_0x46820a,_0x275c19,_0x38387c);for(const _0x4c4a69 of _0x531059){_0x40fea7(_0x2be0fe,null,_0x46820a,_0x275c19,_0x4c4a69[_0x13b63c(0x3e4)],_0x4c4a69[_0x13b63c(0x58c)],_0x4c4a69[_0x13b63c(0x411)]);}}});}const _0x29130c=0x1388;async function _0x317c8d(_0x14b109){const _0x27121b=_0x59666e,_0x921747=_0x14b109[_0x27121b(0x409)]?.[_0x27121b(0x2b2)]?.[_0x27121b(0x4ff)]>0x0;if(!_0x921747&&!_0x14b109[_0x27121b(0x62d)])return{'dropped':0x0,'written':0x0};const _0x4da0e3=_0x2dcf6b(_0x14b109);let _0x4d47a1=0x0;for(;;){const _0x10447a=Array['from'](_0x4da0e3['getKeys']({'limit':_0x29130c}));if(_0x10447a[_0x27121b(0x788)]===0x0)break;let _0x574a5f=0x0;await _0x14b109[_0x27121b(0x27a)][_0x27121b(0x7b5)](()=>{const _0x566eaa=_0x27121b;for(const _0x461bd1 of _0x10447a)if(_0x4da0e3[_0x566eaa(0x4f5)](_0x461bd1))_0x574a5f++;});if(_0x574a5f===0x0)break;_0x4d47a1+=_0x574a5f;}let _0x1a4bfb=0x0;for(const _0x142975 of _0x14b109[_0x27121b(0x409)]['outgoing'][_0x27121b(0x607)]()){if(_0x142975[_0x27121b(0x212)]('~')||!_0x14b109[_0x27121b(0x512)](_0x142975))continue;const _0xf2ffb8=_0x2dfcd6(_0x14b109,_0x142975);await _0x14b109['_writer']['transaction'](()=>{const _0x3ff209=_0x27121b;for(const {key:_0x5ed282,value:_0x2bbde9}of _0x14b109[_0x3ff209(0x433)](_0x142975)){for(const _0x41e3b3 of _0xf2ffb8){const _0x597147=_0x4008ad(_0x2bbde9,_0x41e3b3[_0x3ff209(0x3e4)]);if(!_0x3f08da(_0x597147))continue;_0x4da0e3[_0x3ff209(0x57a)](_0xdfc3c9(_0x41e3b3['targetType'],_0x597147,_0x142975,_0x5ed282,_0x41e3b3[_0x3ff209(0x3e4)]),0x1),_0x1a4bfb++;}}});}return{'dropped':_0x4d47a1,'written':_0x1a4bfb};}return okdbEnvRefs={'getFieldValue':_0x4008ad,'setFieldValue':_0x1006b9,'refIndexKey':_0xdfc3c9,'isRefTarget':_0x3f08da,'cascadeVisitKey':_0x35a239,'extractRefs':_0x5d5546,'rebuildRefCache':_0x3d903e,'getTypeRefs':_0x2dfcd6,'getIncomingRefs':_0x53d515,'getRefIndexDb':_0x2dcf6b,'updateRefIndex':_0x5b5943,'removeRefIndexEntries':_0x49c2f1,'refIndexRowsFor':_0x561206,'rebuildRefIndex':_0x317c8d,'checkForeignKeys':_0x3ee529,'processDeleteCascade':_0xe0f8cc,'setRefViolation':_0x40fea7,'clearRefViolation':_0x345253,'clearRefViolationsForKey':_0x42a0ed,'clearRefViolationsForType':_0x424aab,'syncRefIndex':_0x2943cc},okdbEnvRefs;}var hasRequiredOkdbSubscriptionsStore;function requireOkdbSubscriptionsStore(){const _0x3d53ad=_0xef081e;if(hasRequiredOkdbSubscriptionsStore)return okdbSubscriptionsStore[_0x3d53ad(0x57d)];hasRequiredOkdbSubscriptionsStore=0x1;const _0x277aa6=require$$0$4,{assertFilterAllowed:_0x1beb88}=requireOkdbQueryFilter(),{rebuildRefCache:_0x169192}=requireOkdbEnvRefs(),_0x3bdf68='~sub',_0x57ff40=_0x3d53ad(0x8bc),_0x1cdfb5=_0x3d53ad(0x63c),_0x28f13b=[_0x3d53ad(0x878),_0x3d53ad(0x490),_0x3d53ad(0x59b)],_0x53791b=[_0x3d53ad(0x878),_0x3d53ad(0x490)],_0x568a2d=0x5a*0x3e8,_0xab02eb=Math['floor'](_0x568a2d/0x2);class _0x2cbd61{constructor(_0xa2a32a,_0x14bc7f={}){const _0x3c1e49=_0x3d53ad;this[_0x3c1e49(0x82e)]=_0xa2a32a,this[_0x3c1e49(0x4fb)]=Number['isFinite'](_0x14bc7f[_0x3c1e49(0x4fb)])&&_0x14bc7f[_0x3c1e49(0x4fb)]>0x0?_0x14bc7f['ttlMs']:_0x568a2d,this['refreshThresholdMs']=Number[_0x3c1e49(0x52f)](_0x14bc7f[_0x3c1e49(0x3d0)])?_0x14bc7f[_0x3c1e49(0x3d0)]:_0xab02eb,this[_0x3c1e49(0x7dd)]=null;}async['open'](){const _0x5738d2=_0x3d53ad;if(this[_0x5738d2(0x7dd)])return this['_sub'];const _0x3be177=await this['okdb']['createEnvironment'](_0x3bdf68,{'sync':![]});return await _0x3be177[_0x5738d2(0x353)](_0x57ff40,{'indexes':[_0x53791b]}),await _0x3be177['ensureType'](_0x1cdfb5),_0x3be177[_0x5738d2(0x78d)](_0x1cdfb5)?_0x169192(_0x3be177):await _0x3be177[_0x5738d2(0x63e)](_0x1cdfb5,{'definition':{'type':_0x5738d2(0x7f6),'properties':{'sessionId':{'type':_0x5738d2(0x43c),'ref':{'type':_0x57ff40,'onDelete':_0x5738d2(0x884)}},'dataEnv':{'type':'string'},'type':{'type':'string'},'key':{'type':_0x5738d2(0x43c)}},'required':[_0x5738d2(0x54e),'dataEnv',_0x5738d2(0x490),_0x5738d2(0x59b)]},'enforce':!![]}),await _0x3be177[_0x5738d2(0x353)](_0x1cdfb5,{'indexes':[_0x28f13b]}),await _0x3be177['indexReady'](_0x1cdfb5,_0x28f13b),await _0x3be177[_0x5738d2(0x7e2)](_0x57ff40,_0x53791b),this[_0x5738d2(0x7dd)]=_0x3be177,_0x3be177;}[_0x3d53ad(0x3b1)](){const _0xa9074c=_0x3d53ad;if(!this[_0xa9074c(0x7dd)])throw new Error(_0xa9074c(0x1e2));return this[_0xa9074c(0x7dd)];}async[_0x3d53ad(0x5dd)]({sessionId:_0x44e2dd,dataEnv:_0xd71df8,type:_0x5aa18e,filter:filter=null,ttlMs:_0x329895}={}){const _0x4b4a0e=_0x3d53ad,_0x45131e=this[_0x4b4a0e(0x3b1)]();_0x1beb88(filter);const _0x2351a5=_0x44e2dd!=null&&String(_0x44e2dd)[_0x4b4a0e(0x788)]>0x0?String(_0x44e2dd):_0x277aa6[_0x4b4a0e(0x78a)](),_0x476e12=Number['isFinite'](_0x329895)&&_0x329895>0x0?_0x329895:this['ttlMs'],_0x205c5d=Date['now'](),_0x57f7a8={'sessionId':_0x2351a5,'dataEnv':_0xd71df8,'type':_0x5aa18e,'filter':filter??null,'version':0x0,'createdAt':_0x205c5d,'expiresAt':_0x205c5d+_0x476e12};return await _0x45131e[_0x4b4a0e(0x1dd)](_0x57ff40,_0x2351a5,_0x57f7a8,{'ttl':_0x476e12}),{'sessionId':_0x2351a5,'version':0x0};}[_0x3d53ad(0x1be)](_0x37aad5){const _0x1703bf=_0x3d53ad;if(!_0x37aad5)return null;return this[_0x1703bf(0x3b1)]()[_0x1703bf(0x292)](_0x57ff40,String(_0x37aad5))??null;}async[_0x3d53ad(0x333)](_0x3df71f){const _0x32d8d6=_0x3d53ad,_0x544ddf=this[_0x32d8d6(0x3b1)](),_0x45cdd9=String(_0x3df71f);if(!_0x544ddf['get'](_0x57ff40,_0x45cdd9))return![];return await _0x544ddf[_0x32d8d6(0x28d)](_0x57ff40,_0x45cdd9),!![];}async[_0x3d53ad(0x294)](_0x29ab14){const _0x23bd96=_0x3d53ad,_0x40c195=this[_0x23bd96(0x3b1)](),_0x1339d3=String(_0x29ab14),_0x293499=_0x40c195[_0x23bd96(0x292)](_0x57ff40,_0x1339d3);if(!_0x293499)return null;const _0x4a33cb=(Number[_0x23bd96(0x52f)](_0x293499[_0x23bd96(0x782)])?_0x293499['version']:0x0)+0x1;return await _0x40c195[_0x23bd96(0x1dd)](_0x57ff40,_0x1339d3,{..._0x293499,'version':_0x4a33cb}),_0x4a33cb;}async[_0x3d53ad(0x24e)](_0x5156ae,_0x595715){const _0x5d237e=_0x3d53ad,_0xb73307=this[_0x5d237e(0x3b1)](),_0x15c8e9=String(_0x5156ae);if(!_0xb73307['get'](_0x57ff40,_0x15c8e9))return![];const _0x2d274e=Number['isFinite'](_0x595715)&&_0x595715>0x0?_0x595715:this['ttlMs'];if(this['_isFar'](_0x15c8e9))return![];return await _0xb73307[_0x5d237e(0x383)](_0x57ff40,_0x15c8e9,_0x2d274e),await this[_0x5d237e(0x46a)](_0x15c8e9,_0x2d274e),!![];}async[_0x3d53ad(0x88d)](_0x346854,_0x9159b5){const _0x24998e=_0x3d53ad,_0x2dabf3=this[_0x24998e(0x3b1)](),_0x506587=Number[_0x24998e(0x52f)](_0x9159b5)&&_0x9159b5>0x0?_0x9159b5:this[_0x24998e(0x4fb)],_0x49dfa6=Date[_0x24998e(0x3d4)](),_0x2424ee=[];for(const _0xa7c89c of _0x346854||[]){const _0x244511=String(_0xa7c89c),_0x2c1d9f=_0x2dabf3[_0x24998e(0x292)](_0x57ff40,_0x244511);if(!_0x2c1d9f)continue;if(this[_0x24998e(0x81c)](_0x244511,_0x49dfa6))continue;_0x2424ee['push']({'id':_0x244511,'cur':_0x2c1d9f});}if(_0x2424ee[_0x24998e(0x788)]===0x0)return[];return await _0x2dabf3['txn'](async _0x289578=>{const _0x55f809=_0x24998e;for(const {id:_0x4684cd,cur:_0x4276e7}of _0x2424ee){_0x289578[_0x55f809(0x1dd)](_0x57ff40,_0x4684cd,{..._0x4276e7,'expiresAt':_0x49dfa6+_0x506587}),_0x289578[_0x55f809(0x383)](_0x57ff40,_0x4684cd,_0x506587);}}),_0x2424ee[_0x24998e(0x642)](_0x584ba4=>_0x584ba4['id']);}['_isFar'](_0x3c433c,_0xaaccbf=Date['now']()){const _0x484ef4=_0x3d53ad,_0x4f772d=this['_env']()['getTTL'](_0x57ff40,String(_0x3c433c));if(!_0x4f772d)return![];return _0x4f772d[_0x484ef4(0x716)]-_0xaaccbf>this['refreshThresholdMs'];}async[_0x3d53ad(0x46a)](_0x45a4a7,_0x46ea7a){const _0x3db5af=_0x3d53ad,_0x42cfff=this[_0x3db5af(0x3b1)](),_0x33957a=_0x42cfff[_0x3db5af(0x292)](_0x57ff40,_0x45a4a7);if(!_0x33957a)return;await _0x42cfff[_0x3db5af(0x1dd)](_0x57ff40,_0x45a4a7,{..._0x33957a,'expiresAt':Date[_0x3db5af(0x3d4)]()+_0x46ea7a});}async[_0x3d53ad(0x7a3)](_0x58e9b2,_0x347e4b,_0x19d32b){const _0x5fcc70=_0x3d53ad,_0x2ab946=this[_0x5fcc70(0x3b1)](),_0x500208=String(_0x58e9b2),_0x1f3715=_0x2ab946['get'](_0x57ff40,_0x500208);if(!_0x1f3715)throw new Error(_0x5fcc70(0x7fa)+_0x500208);const _0x2c02a7=_0x277aa6[_0x5fcc70(0x78a)]();return await _0x2ab946['put'](_0x1cdfb5,_0x2c02a7,{'sessionId':_0x500208,'dataEnv':String(_0x1f3715[_0x5fcc70(0x878)]),'type':String(_0x347e4b),'key':String(_0x19d32b)}),_0x2c02a7;}async['_commitSessionMutation'](_0x1ce300,_0x5db84d,{retries:retries=0x8}={}){const _0x3062dc=_0x3d53ad,_0x562cc9=this[_0x3062dc(0x3b1)]();for(let _0x495c1e=0x0;;_0x495c1e++){const _0x36498c=_0x562cc9[_0x3062dc(0x408)](_0x57ff40,_0x1ce300);if(!_0x36498c)return null;const _0x141fc7=_0x36498c[_0x3062dc(0x744)],_0x513a29=(Number[_0x3062dc(0x52f)](_0x141fc7[_0x3062dc(0x782)])?_0x141fc7[_0x3062dc(0x782)]:0x0)+0x1,{sessionPatch:sessionPatch={},applyInterests:applyInterests=null}=_0x5db84d(_0x141fc7,_0x562cc9)||{};try{return await _0x562cc9[_0x3062dc(0x592)](async _0x58f54a=>{const _0x18b7b3=_0x3062dc;applyInterests?.(_0x58f54a),_0x58f54a[_0x18b7b3(0x1dd)](_0x57ff40,_0x1ce300,{..._0x141fc7,...sessionPatch,'version':_0x513a29},{'ifVersion':_0x36498c[_0x18b7b3(0x782)]});}),_0x513a29;}catch(_0x3483d0){if(_0x3483d0?.[_0x3062dc(0x1bd)]===_0x3062dc(0x3ea)&&_0x495c1e<retries)continue;throw _0x3483d0;}}}async['applyInterestDelta'](_0x2c96b4,{add:add=[],remove:remove=[]}={}){const _0x288047=_0x3d53ad,_0x1bc318=String(_0x2c96b4);return this[_0x288047(0x291)](_0x1bc318,(_0x522535,_0x41149f)=>{const _0x396d97=_0x288047,_0x4b53c3=String(_0x522535[_0x396d97(0x878)]),_0x5228f9=new Set((remove||[])[_0x396d97(0x642)](_0xc4413e=>String(_0xc4413e[_0x396d97(0x490)])+'\x00'+String(_0xc4413e[_0x396d97(0x59b)]))),_0x5060b8=[];if(_0x5228f9[_0x396d97(0x4ff)]>0x0)for(const {key:_0x3186e2,value:_0x27d3f9}of _0x41149f[_0x396d97(0x433)](_0x1cdfb5,{})){if(!_0x27d3f9||_0x27d3f9[_0x396d97(0x54e)]!==_0x1bc318)continue;if(_0x5228f9['has'](_0x27d3f9[_0x396d97(0x490)]+'\x00'+_0x27d3f9[_0x396d97(0x59b)]))_0x5060b8[_0x396d97(0x27f)](_0x3186e2);}const _0xc18912=(add||[])[_0x396d97(0x642)](_0x3187a6=>({'id':_0x277aa6[_0x396d97(0x78a)](),'type':String(_0x3187a6[_0x396d97(0x490)]),'key':String(_0x3187a6[_0x396d97(0x59b)])}));return{'applyInterests':_0x14edde=>{const _0x1a421c=_0x396d97;for(const _0x3d1de2 of _0x5060b8)_0x14edde[_0x1a421c(0x28d)](_0x1cdfb5,_0x3d1de2);for(const _0x33e17a of _0xc18912)_0x14edde[_0x1a421c(0x1dd)](_0x1cdfb5,_0x33e17a['id'],{'sessionId':_0x1bc318,'dataEnv':_0x4b53c3,'type':_0x33e17a[_0x1a421c(0x490)],'key':_0x33e17a[_0x1a421c(0x59b)]});}};});}async[_0x3d53ad(0x47f)](_0x1c15ac,_0xb4a3d8){const _0x4bd498=_0x3d53ad;_0x1beb88(_0xb4a3d8);const _0x2a73cd=String(_0x1c15ac);return this[_0x4bd498(0x291)](_0x2a73cd,()=>({'sessionPatch':{'filter':_0xb4a3d8??null}}));}async[_0x3d53ad(0x606)](_0x11f0ab,_0x5df745,_0x492821){const _0x5effa3=_0x3d53ad,_0x16ca6a=this[_0x5effa3(0x3b1)](),_0x4d866b=String(_0x11f0ab),_0x17b7c9=String(_0x5df745),_0x5e3c23=String(_0x492821),_0x450d97=[];for(const {key:_0x304bd9,value:_0x5d0e88}of _0x16ca6a['getRange'](_0x1cdfb5,{})){if(_0x5d0e88&&_0x5d0e88[_0x5effa3(0x54e)]===_0x4d866b&&_0x5d0e88[_0x5effa3(0x490)]===_0x17b7c9&&_0x5d0e88[_0x5effa3(0x59b)]===_0x5e3c23)_0x450d97[_0x5effa3(0x27f)](_0x304bd9);}for(const _0x3a1ad5 of _0x450d97)await _0x16ca6a[_0x5effa3(0x28d)](_0x1cdfb5,_0x3a1ad5);return _0x450d97['length'];}async[_0x3d53ad(0x6e1)](_0x509b48,_0x4eb48a){const _0x2fd84e=_0x3d53ad,_0x17e425=String(_0x509b48);return this[_0x2fd84e(0x291)](_0x17e425,(_0xd50915,_0x3cd663)=>{const _0x2e3fa6=_0x2fd84e,_0x35a79f=String(_0xd50915[_0x2e3fa6(0x878)]),_0xdc35b0=[];for(const {key:_0x4a7244,value:_0x467ee6}of _0x3cd663['getRange'](_0x1cdfb5,{})){if(_0x467ee6&&_0x467ee6[_0x2e3fa6(0x54e)]===_0x17e425)_0xdc35b0[_0x2e3fa6(0x27f)](_0x4a7244);}const _0x217a16=(_0x4eb48a||[])[_0x2e3fa6(0x642)](_0x417485=>({'id':_0x277aa6[_0x2e3fa6(0x78a)](),'type':String(_0x417485[_0x2e3fa6(0x490)]),'key':String(_0x417485[_0x2e3fa6(0x59b)])}));return{'applyInterests':_0x2cffd2=>{const _0xa898fd=_0x2e3fa6;for(const _0x145911 of _0xdc35b0)_0x2cffd2['remove'](_0x1cdfb5,_0x145911);for(const _0x1e90e8 of _0x217a16)_0x2cffd2[_0xa898fd(0x1dd)](_0x1cdfb5,_0x1e90e8['id'],{'sessionId':_0x17e425,'dataEnv':_0x35a79f,'type':_0x1e90e8[_0xa898fd(0x490)],'key':_0x1e90e8[_0xa898fd(0x59b)]});}};});}[_0x3d53ad(0x4db)](_0x4d5702,_0x33b69b,_0x3712db){const _0x2c726c=_0x3d53ad,_0x673ee=this['_env'](),_0x523cd3=String(_0x4d5702),_0x1f199d=String(_0x33b69b),_0xf5d8ff=String(_0x3712db),_0x9f8ca4=new Set();for(const {value:_0x27eeac}of _0x673ee[_0x2c726c(0x657)](_0x1cdfb5,_0x28f13b,{'start':[_0x523cd3,_0x1f199d,_0xf5d8ff],'end':[_0x523cd3,_0x1f199d,_0xf5d8ff,'￿']})){if(_0x27eeac&&_0x27eeac['sessionId'])_0x9f8ca4[_0x2c726c(0x77d)](_0x27eeac[_0x2c726c(0x54e)]);}return[..._0x9f8ca4];}[_0x3d53ad(0x8c5)](_0x1ebb6b,_0x2cb3db){const _0x235d6b=_0x3d53ad,_0x3174bc=this[_0x235d6b(0x3b1)](),_0x441a26=String(_0x1ebb6b),_0x5e36e6=String(_0x2cb3db),_0x3ebcfc=[];for(const {value:_0x3bb544}of _0x3174bc[_0x235d6b(0x657)](_0x57ff40,_0x53791b,{'start':[_0x441a26,_0x5e36e6],'end':[_0x441a26,_0x5e36e6,'\uffff']})){if(!_0x3bb544||_0x3bb544[_0x235d6b(0x878)]!==_0x441a26||_0x3bb544[_0x235d6b(0x490)]!==_0x5e36e6)continue;if(_0x3bb544[_0x235d6b(0x877)]==null)continue;_0x3ebcfc[_0x235d6b(0x27f)]({'sessionId':_0x3bb544[_0x235d6b(0x54e)],'filter':_0x3bb544[_0x235d6b(0x877)],'version':Number[_0x235d6b(0x52f)](_0x3bb544[_0x235d6b(0x782)])?_0x3bb544[_0x235d6b(0x782)]:0x0});}return _0x3ebcfc;}async[_0x3d53ad(0x51f)](){return this['_env']()['sweepExpiredTTL']();}}return okdbSubscriptionsStore['exports']=_0x2cbd61,okdbSubscriptionsStore[_0x3d53ad(0x57d)][_0x3d53ad(0x840)]=_0x3bdf68,okdbSubscriptionsStore[_0x3d53ad(0x57d)][_0x3d53ad(0x656)]=_0x57ff40,okdbSubscriptionsStore[_0x3d53ad(0x57d)][_0x3d53ad(0x3f3)]=_0x1cdfb5,okdbSubscriptionsStore['exports'][_0x3d53ad(0x340)]=_0x28f13b,okdbSubscriptionsStore[_0x3d53ad(0x57d)][_0x3d53ad(0x7d8)]=_0x53791b,okdbSubscriptionsStore[_0x3d53ad(0x57d)][_0x3d53ad(0x323)]=_0x568a2d,okdbSubscriptionsStore[_0x3d53ad(0x57d)];}var version='3.1.5',require$$29={'version':version},okdbEnginesEnums,hasRequiredOkdbEnginesEnums;function requireOkdbEnginesEnums(){const _0x198871=_0xef081e;if(hasRequiredOkdbEnginesEnums)return okdbEnginesEnums;hasRequiredOkdbEnginesEnums=0x1;const _0x30e2f7=_0x198871(0x5f0),_0x506ce0=0xa,_0x59ce20=Object[_0x198871(0x4e6)]({'CREATED':_0x198871(0x530),'ONLINE':'online','STOPPED':_0x198871(0x6d0),'INACTIVE':_0x198871(0x589),'ERROR':_0x198871(0x860),'REMOVED':'removed'}),_0x5f224c=Object[_0x198871(0x4e6)]({'STARTED':_0x198871(0x3ca),'STOPPED':_0x198871(0x6d0),'ERROR':_0x198871(0x860),'INSTALLED':_0x198871(0x23c),'UNINSTALLED':'uninstalled'}),_0x39ba9e=Object[_0x198871(0x4e6)](new Set([_0x59ce20[_0x198871(0x27e)],_0x59ce20[_0x198871(0x609)],_0x59ce20[_0x198871(0x4dd)],_0x59ce20[_0x198871(0x721)]]));function _0x1d3e18(_0xe79cac){const _0x1978e3=_0x198871;return _0xe79cac?.[_0x1978e3(0x4b3)]===![]?_0x59ce20[_0x1978e3(0x609)]:_0x1978e3(0x3be);}return okdbEnginesEnums={'TYPE_ENGINES':_0x30e2f7,'MAX_UPDATE_RETRIES':_0x506ce0,'ENGINE_STATUS':_0x59ce20,'ENGINE_EVENTS':_0x5f224c,'UPDATABLE_STATUSES':_0x39ba9e,'durableOnlyEngineState':_0x1d3e18},okdbEnginesEnums;}var enums,hasRequiredEnums;function requireEnums(){const _0x598dd6=_0xef081e;if(hasRequiredEnums)return enums;hasRequiredEnums=0x1;const _0x14474d=Object['freeze']({'EMBEDDER':_0x598dd6(0x418),'INDEXER':_0x598dd6(0x76c),'SEARCH':_0x598dd6(0x3f5),'WORKER':_0x598dd6(0x679)}),_0x1d5daf=Object[_0x598dd6(0x4e6)]({'PENDING':_0x598dd6(0x654),'DONE':_0x598dd6(0x577),'FAILED':_0x598dd6(0x68f),'DELETED':_0x598dd6(0x707)}),_0x4cb152=Object['freeze']({'INDEXER_READY':'embeddings:indexer:ready','INDEXER_FLUSHED':_0x598dd6(0x79f),'INDEXER_DOC_DONE':_0x598dd6(0x5f4),'INDEXER_DOC_FAILED':_0x598dd6(0x664),'INDEXER_DOC_QUEUED':'embeddings:indexer:doc:queued','STRATEGY_REGISTERED':_0x598dd6(0x362),'DOC_STATUS_CHANGE':'embeddings:doc:status_change','PIPELINE_READY':_0x598dd6(0x8e5)}),_0x5201fa=Object[_0x598dd6(0x4e6)]({'MODELS':'~emb:models','DOC_STATUS_PREFIX':_0x598dd6(0x55d),'VEC_PREFIX':_0x598dd6(0x59d)});return enums={'ENGINE_TYPES':_0x14474d,'INDEXER_DOC_STATUS':_0x1d5daf,'EMBEDDINGS_EVENTS':_0x4cb152,'INTERNAL_TYPES':_0x5201fa},enums;}var okdbQueueValidate,hasRequiredOkdbQueueValidate;function requireOkdbQueueValidate(){const _0x55009b=_0xef081e;if(hasRequiredOkdbQueueValidate)return okdbQueueValidate;hasRequiredOkdbQueueValidate=0x1;const _0x51e5e1=Object[_0x55009b(0x4e6)]({'PENDING':_0x55009b(0x654),'RUNNING':_0x55009b(0x769),'DONE':'done','FAILED':_0x55009b(0x68f)}),_0x5111d8=Object[_0x55009b(0x4e6)]({'ACTIVE':_0x55009b(0x659),'PAUSED':_0x55009b(0x283),'DRAINING':'draining'}),_0xaf498f=Object[_0x55009b(0x4e6)]({'ENQUEUED':_0x55009b(0x524),'DONE':_0x55009b(0x2fc),'FAILED':'queue:failed','RETRY':_0x55009b(0x41a),'RESCHEDULED':'queue:rescheduled','REMOVED':_0x55009b(0x315),'RECONCILED':_0x55009b(0x623),'CLEAR_PROGRESS':_0x55009b(0x750),'CLEAR_DONE':'queue:clear-done','LOG':_0x55009b(0x21a)}),_0x24b0d9=Object[_0x55009b(0x4e6)]([_0x55009b(0x4a5),_0x55009b(0x1f9),_0x55009b(0x5df),_0x55009b(0x860)]),_0x38becc=0x1,_0x1e7f5a=0xc350,_0x1b5ff0=0x400,_0x57705e=0x800;function _0x33f656(_0x591448){const _0x2559c2=_0x55009b;return _0x591448!=null&&typeof _0x591448==='object'&&(_0x591448['constructor']===Object||Object[_0x2559c2(0x4fe)](_0x591448)===null);}function _0x3deb63(_0x50ace4,_0x491dfe,_0xb2fb3,_0x3907d9){const _0x258fa7=_0x55009b;if(_0x50ace4==null)return _0x491dfe;const _0x4c5059=Number(_0x50ace4);if(!Number[_0x258fa7(0x52f)](_0x4c5059))return _0x491dfe;const _0x43adc9=Math[_0x258fa7(0x460)](_0x4c5059);if(_0x43adc9<_0xb2fb3)return _0xb2fb3;if(_0x43adc9>_0x3907d9)return _0x3907d9;return _0x43adc9;}function _0x2aeff2(_0x2d4c3d){const _0x218496=_0x55009b;if(!_0x2d4c3d)return[];if(typeof _0x2d4c3d===_0x218496(0x43c))_0x2d4c3d=[_0x2d4c3d];if(!Array[_0x218496(0x888)](_0x2d4c3d))throw new Error(_0x218496(0x24f));const _0x393563=[],_0x18ee0f=new Set();for(const _0xb80c7a of _0x2d4c3d){if(_0xb80c7a==null)continue;const _0xd73fc8=String(_0xb80c7a)[_0x218496(0x39d)]();if(!_0xd73fc8)continue;if(_0xd73fc8['length']>0x80)throw new Error(_0x218496(0x394));if(_0x18ee0f[_0x218496(0x396)](_0xd73fc8))continue;_0x18ee0f['add'](_0xd73fc8),_0x393563['push'](_0xd73fc8);if(_0x393563['length']>=0x20)break;}return _0x393563;}function _0x230daa(_0x2cc405){const _0x4eeb50=_0x55009b;if(_0x2cc405==null)return null;const _0x13fb1e=String(_0x2cc405)['trim']();if(!_0x13fb1e)return null;if(_0x13fb1e[_0x4eeb50(0x788)]>0x80)throw new Error('bucket\x20too\x20long');return _0x13fb1e;}function _0x3e9194(_0x1933ec,_0x1ecbc8=0x1){const _0x83103b=_0x55009b;if(_0x1933ec==null)return[];if(typeof _0x1933ec===_0x83103b(0x43c)){const _0x4a9b5e=_0x230daa(_0x1933ec);if(!_0x4a9b5e)return[];return[{'id':_0x4a9b5e,'tokens':_0x1ecbc8}];}if(!Array['isArray'](_0x1933ec))throw new Error(_0x83103b(0x67c));const _0x33ded5=[],_0x902fcc=new Set();for(const _0x1aa9cd of _0x1933ec){let _0x305717,_0x231f98;if(Array[_0x83103b(0x888)](_0x1aa9cd))[_0x305717,_0x231f98]=_0x1aa9cd;else{if(_0x1aa9cd&&typeof _0x1aa9cd===_0x83103b(0x7f6))({id:_0x305717,tokens:_0x231f98}=_0x1aa9cd);else{if(typeof _0x1aa9cd===_0x83103b(0x43c))_0x305717=_0x1aa9cd,_0x231f98=_0x1ecbc8;else continue;}}_0x305717=_0x230daa(_0x305717);if(!_0x305717)continue;const _0x3933c7=_0x231f98==null?_0x1ecbc8:Math[_0x83103b(0x460)](Number(_0x231f98));if(!Number['isFinite'](_0x3933c7)||_0x3933c7<0x1)throw new Error(_0x83103b(0x8c3)+_0x305717+_0x83103b(0x8d0));if(_0x3933c7>0xf4240)throw new Error(_0x83103b(0x8c3)+_0x305717+_0x83103b(0x899));if(_0x902fcc[_0x83103b(0x396)](_0x305717))throw new Error('duplicate\x20bucket:\x20'+_0x305717);_0x902fcc[_0x83103b(0x77d)](_0x305717),_0x33ded5[_0x83103b(0x27f)]({'id':_0x305717,'tokens':_0x3933c7});}return _0x33ded5;}function _0x4e7390(_0x4210e9,_0x2c107d=0x400){const _0x401fc7=_0x55009b;if(_0x4210e9==null)return null;const _0x401d45=String(_0x4210e9)[_0x401fc7(0x848)](0x0,_0x2c107d);return _0x401d45||null;}function _0x385487(_0x2c5536){if(_0x2c5536==null)return null;if(_0x2c5536['key']!==undefined&&_0x2c5536['value']!==undefined)return _0x2c5536;return{'key':_0x2c5536['id']??null,'value':_0x2c5536};}function _0x28875a(_0x4473ad){const _0x4e8578=_0x55009b;let _0x6020f4=_0x4473ad;if(typeof _0x4473ad===_0x4e8578(0x43c))_0x6020f4={'message':_0x4473ad};if(!_0x33f656(_0x6020f4))throw new Error(_0x4e8578(0x72f));const _0x2404a7=_0x6020f4[_0x4e8578(0x239)]==null?_0x4e8578(0x1f9):String(_0x6020f4['level'])['toLowerCase']();if(!_0x24b0d9[_0x4e8578(0x2a1)](_0x2404a7))throw new Error(_0x4e8578(0x509)+_0x2404a7);if(_0x6020f4[_0x4e8578(0x485)]==null)throw new Error(_0x4e8578(0x364));const _0xc2a904=String(_0x6020f4[_0x4e8578(0x485)])[_0x4e8578(0x848)](0x0,_0x1b5ff0);let _0x4214f8=null;if(_0x6020f4['fields']!=null){if(!_0x33f656(_0x6020f4[_0x4e8578(0x569)]))throw new Error(_0x4e8578(0x20d));if(JSON[_0x4e8578(0x754)](_0x6020f4[_0x4e8578(0x569)])[_0x4e8578(0x788)]>_0x57705e)throw new Error(_0x4e8578(0x251));_0x4214f8=_0x6020f4[_0x4e8578(0x569)];}return{'level':_0x2404a7,'message':_0xc2a904,'fields':_0x4214f8,'ts':Date['now']()};}function _0x4de8b4(_0x1760fd){const _0x454195=_0x55009b;if(_0x1760fd==null)return;if(!Number[_0x454195(0x6ae)](_0x1760fd)||_0x1760fd<_0x38becc||_0x1760fd>_0x1e7f5a)throw new Error('logCap\x20must\x20be\x20null\x20or\x20integer\x20in\x20['+_0x38becc+',\x20'+_0x1e7f5a+']');}function _0x49ebfb(_0x1417aa){const _0x23a331=_0x55009b;if(!_0x33f656(_0x1417aa))throw new Error(_0x23a331(0x474));if(typeof _0x1417aa['id']!=='string'||_0x1417aa['id']['length']<0x8)throw new Error('job.id\x20must\x20be\x20string');if(typeof _0x1417aa[_0x23a331(0x490)]!==_0x23a331(0x43c)||!_0x1417aa[_0x23a331(0x490)])throw new Error(_0x23a331(0x681));if(!Object[_0x23a331(0x42a)](_0x51e5e1)[_0x23a331(0x2a1)](_0x1417aa[_0x23a331(0x442)]))throw new Error(_0x23a331(0x4e0)+_0x1417aa[_0x23a331(0x442)]);for(const _0x5aaf2b of[_0x23a331(0x643),_0x23a331(0x530),'updated']){if(typeof _0x1417aa[_0x5aaf2b]!==_0x23a331(0x559)||!Number[_0x23a331(0x52f)](_0x1417aa[_0x5aaf2b]))throw new Error(_0x23a331(0x286)+_0x5aaf2b+_0x23a331(0x349));}if(_0x1417aa['finished']!=null&&(typeof _0x1417aa[_0x23a331(0x6cc)]!=='number'||!Number[_0x23a331(0x52f)](_0x1417aa[_0x23a331(0x6cc)])))throw new Error(_0x23a331(0x24a));if(!Number[_0x23a331(0x6ae)](_0x1417aa[_0x23a331(0x6c0)])||_0x1417aa[_0x23a331(0x6c0)]<0x0)throw new Error(_0x23a331(0x8dc));if(!Number[_0x23a331(0x6ae)](_0x1417aa['priority']))throw new Error(_0x23a331(0x367));if(_0x1417aa[_0x23a331(0x60a)]!==null&&_0x1417aa[_0x23a331(0x60a)]!==Infinity&&(!Number[_0x23a331(0x6ae)](_0x1417aa[_0x23a331(0x60a)])||_0x1417aa[_0x23a331(0x60a)]<0x1))throw new Error('job.max_tries\x20must\x20be\x20int\x20>=\x201,\x20null\x20(unlimited)\x20or\x20Infinity');if(_0x1417aa['retry_delay']!=null&&(!Number[_0x23a331(0x6ae)](_0x1417aa[_0x23a331(0x2fb)])||_0x1417aa[_0x23a331(0x2fb)]<0x0))throw new Error('job.retry_delay\x20must\x20be\x20int\x20>=\x200');if(_0x1417aa[_0x23a331(0x37b)]!=null&&(typeof _0x1417aa[_0x23a331(0x37b)]!==_0x23a331(0x559)||_0x1417aa[_0x23a331(0x37b)]<0x1))throw new Error('job.backoff_multiplier\x20must\x20be\x20number\x20>=\x201');if(_0x1417aa['claim_id']!=null&&typeof _0x1417aa[_0x23a331(0x7c5)]!==_0x23a331(0x43c))throw new Error('job.claim_id\x20must\x20be\x20string|null');if(_0x1417aa[_0x23a331(0x6db)]!=null&&(typeof _0x1417aa[_0x23a331(0x6db)]!==_0x23a331(0x559)||!Number[_0x23a331(0x52f)](_0x1417aa['claim_expires'])))throw new Error(_0x23a331(0x2f8));if(_0x1417aa[_0x23a331(0x6d7)]!=null&&typeof _0x1417aa[_0x23a331(0x6d7)]!==_0x23a331(0x43c))throw new Error('job.bucket\x20must\x20be\x20string|null');if(_0x1417aa[_0x23a331(0x897)]!=null&&(!Number[_0x23a331(0x6ae)](_0x1417aa[_0x23a331(0x897)])||_0x1417aa[_0x23a331(0x897)]<0x1))throw new Error(_0x23a331(0x8ad));if(_0x1417aa['buckets']!=null){if(!Array[_0x23a331(0x888)](_0x1417aa[_0x23a331(0x387)]))throw new Error(_0x23a331(0x651));for(const _0x15e07f of _0x1417aa[_0x23a331(0x387)]){if(!_0x15e07f||typeof _0x15e07f!=='object')throw new Error('job.buckets\x20entries\x20must\x20be\x20objects');if(typeof _0x15e07f['id']!==_0x23a331(0x43c)||!_0x15e07f['id']['trim']())throw new Error(_0x23a331(0x7f5));if(!Number[_0x23a331(0x6ae)](_0x15e07f[_0x23a331(0x532)])||_0x15e07f[_0x23a331(0x532)]<0x1)throw new Error('job.buckets[].tokens\x20must\x20be\x20int\x20>=\x201');}}if(_0x1417aa[_0x23a331(0x3cb)]!=null&&typeof _0x1417aa['cron']!==_0x23a331(0x43c))throw new Error(_0x23a331(0x4c3));if(_0x1417aa[_0x23a331(0x1fd)]!=null&&typeof _0x1417aa[_0x23a331(0x1fd)]!==_0x23a331(0x43c))throw new Error(_0x23a331(0x415));if(!Array[_0x23a331(0x888)](_0x1417aa[_0x23a331(0x3b8)]))throw new Error('job.tags\x20must\x20be\x20array');if(_0x1417aa[_0x23a331(0x7d3)]!=null&&typeof _0x1417aa[_0x23a331(0x7d3)]!=='string')throw new Error(_0x23a331(0x26c));if(_0x1417aa['status_code']!=null&&typeof _0x1417aa[_0x23a331(0x36a)]!==_0x23a331(0x43c))throw new Error(_0x23a331(0x47c));if(_0x1417aa[_0x23a331(0x374)]!=null&&typeof _0x1417aa[_0x23a331(0x374)]!==_0x23a331(0x43c))throw new Error(_0x23a331(0x5e0));if(_0x1417aa[_0x23a331(0x3eb)]!=null&&typeof _0x1417aa[_0x23a331(0x3eb)]!==_0x23a331(0x43c))throw new Error(_0x23a331(0x443));for(const _0x2f45cf of[_0x23a331(0x7f4),_0x23a331(0x667)]){const _0x3de302=_0x1417aa[_0x2f45cf];if(_0x3de302!=null&&(!Number['isInteger'](_0x3de302)||_0x3de302<0x0))throw new Error(_0x23a331(0x286)+_0x2f45cf+_0x23a331(0x327));}_0x4de8b4(_0x1417aa[_0x23a331(0x27d)]);}function _0x239943(_0x4ed153){const _0x39f5c1=_0x55009b;if(!_0x33f656(_0x4ed153))throw new Error(_0x39f5c1(0x20c));if(typeof _0x4ed153['id']!=='string'||!_0x4ed153['id'][_0x39f5c1(0x39d)]())throw new Error(_0x39f5c1(0x896));if(!Object[_0x39f5c1(0x42a)](_0x5111d8)[_0x39f5c1(0x2a1)](_0x4ed153['status']))throw new Error(_0x39f5c1(0x3fb)+_0x4ed153[_0x39f5c1(0x442)]);if(_0x4ed153[_0x39f5c1(0x508)]!=null&&(!Number[_0x39f5c1(0x6ae)](_0x4ed153[_0x39f5c1(0x508)])||_0x4ed153[_0x39f5c1(0x508)]<0x1))throw new Error(_0x39f5c1(0x89c));if(_0x4ed153[_0x39f5c1(0x37e)]!=null){if(!_0x33f656(_0x4ed153['defaults']))throw new Error(_0x39f5c1(0x321));const _0x57f1ab=_0x4ed153[_0x39f5c1(0x37e)];if(_0x57f1ab[_0x39f5c1(0x60a)]!=null&&(!Number[_0x39f5c1(0x6ae)](_0x57f1ab[_0x39f5c1(0x60a)])||_0x57f1ab[_0x39f5c1(0x60a)]<0x1))throw new Error(_0x39f5c1(0x44f));if(_0x57f1ab[_0x39f5c1(0x2fb)]!=null&&(!Number[_0x39f5c1(0x6ae)](_0x57f1ab[_0x39f5c1(0x2fb)])||_0x57f1ab['retry_delay']<0x0))throw new Error(_0x39f5c1(0x24d));if(_0x57f1ab[_0x39f5c1(0x37b)]!=null&&(typeof _0x57f1ab[_0x39f5c1(0x37b)]!==_0x39f5c1(0x559)||_0x57f1ab[_0x39f5c1(0x37b)]<0x1))throw new Error(_0x39f5c1(0x737));if(_0x57f1ab[_0x39f5c1(0x4a7)]!=null&&!Number[_0x39f5c1(0x6ae)](_0x57f1ab[_0x39f5c1(0x4a7)]))throw new Error('job_type.defaults.priority\x20must\x20be\x20int\x20or\x20null');if(_0x57f1ab['ttl']!=null&&(!Number[_0x39f5c1(0x6ae)](_0x57f1ab[_0x39f5c1(0x20b)])||_0x57f1ab[_0x39f5c1(0x20b)]<0x0))throw new Error('job_type.defaults.ttl\x20must\x20be\x20int\x20>=\x200\x20or\x20null');for(const _0x3afd21 of[_0x39f5c1(0x7f4),_0x39f5c1(0x667)]){if(_0x57f1ab[_0x3afd21]!=null&&(!Number['isInteger'](_0x57f1ab[_0x3afd21])||_0x57f1ab[_0x3afd21]<0x0))throw new Error('job_type.defaults.'+_0x3afd21+'\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer');}if(_0x57f1ab[_0x39f5c1(0x387)]!=null&&!Array[_0x39f5c1(0x888)](_0x57f1ab[_0x39f5c1(0x387)]))throw new Error(_0x39f5c1(0x843));_0x4de8b4(_0x57f1ab['logCap']);}if(_0x4ed153[_0x39f5c1(0x3f0)]!=null){if(!_0x33f656(_0x4ed153[_0x39f5c1(0x3f0)]))throw new Error(_0x39f5c1(0x89f));if(!_0x33f656(_0x4ed153[_0x39f5c1(0x3f0)]['definition']))throw new Error('job_type.payload_schema.definition\x20must\x20be\x20object');if(typeof _0x4ed153['payload_schema'][_0x39f5c1(0x6c2)]!==_0x39f5c1(0x699))throw new Error(_0x39f5c1(0x4a4));}for(const _0x5303af of[_0x39f5c1(0x5a8),_0x39f5c1(0x3c7)]){if(typeof _0x4ed153[_0x5303af]!==_0x39f5c1(0x559)||!Number[_0x39f5c1(0x52f)](_0x4ed153[_0x5303af]))throw new Error(_0x39f5c1(0x449)+_0x5303af+_0x39f5c1(0x349));}}function _0x48b316(_0x1d419d){const _0x551639=_0x55009b;if(!_0x33f656(_0x1d419d))throw new Error(_0x551639(0x3c1));if(typeof _0x1d419d['id']!==_0x551639(0x43c)||!_0x1d419d['id'][_0x551639(0x39d)]())throw new Error(_0x551639(0x7a4));if(!Number[_0x551639(0x6ae)](_0x1d419d[_0x551639(0x532)])||_0x1d419d[_0x551639(0x532)]<0x0)throw new Error(_0x551639(0x28e));if(!Number[_0x551639(0x6ae)](_0x1d419d[_0x551639(0x3f8)])||_0x1d419d[_0x551639(0x3f8)]<0x0)throw new Error(_0x551639(0x222));if(_0x1d419d[_0x551639(0x532)]>_0x1d419d[_0x551639(0x3f8)])throw new Error(_0x551639(0x1f4));if(!Number[_0x551639(0x6ae)](_0x1d419d[_0x551639(0x842)])||_0x1d419d[_0x551639(0x842)]<0x0)throw new Error('bucket.refill_amount\x20must\x20be\x20int\x20>=\x200');if(!Number['isInteger'](_0x1d419d[_0x551639(0x626)])||_0x1d419d[_0x551639(0x626)]<0x0)throw new Error(_0x551639(0x53c));if(typeof _0x1d419d[_0x551639(0x6bc)]!==_0x551639(0x559)||!Number[_0x551639(0x52f)](_0x1d419d[_0x551639(0x6bc)]))throw new Error(_0x551639(0x37d));}return okdbQueueValidate={'STATUS':_0x51e5e1,'JOB_TYPE_STATUS':_0x5111d8,'QUEUE_EVENTS':_0xaf498f,'LOG_LEVELS':_0x24b0d9,'LOG_CAP_MIN':_0x38becc,'LOG_CAP_MAX':_0x1e7f5a,'clampInt':_0x3deb63,'asNullableString':_0x4e7390,'normalizeResult':_0x385487,'normalizeTags':_0x2aeff2,'normalizeBucket':_0x230daa,'normalizeBuckets':_0x3e9194,'normalizeLogEntry':_0x28875a,'validateJobShape':_0x49ebfb,'validateJobTypeShape':_0x239943,'validateBucketShape':_0x48b316},okdbQueueValidate;}var okdbTimers,hasRequiredOkdbTimers;function requireOkdbTimers(){if(hasRequiredOkdbTimers)return okdbTimers;hasRequiredOkdbTimers=0x1;const _0x43dd1f=0x2**0x1f-0x1;function _0x21fb16(_0x379565){if(!(_0x379565>0x0))return 0x0;return _0x379565>_0x43dd1f?_0x43dd1f:_0x379565;}function _0x58a7d1(_0x19f913){return _0x19f913===Infinity;}return okdbTimers={'MAX_TIMER_DELAY':_0x43dd1f,'clampTimerDelay':_0x21fb16,'isNeverDelay':_0x58a7d1},okdbTimers;}var okdbChangefeed,hasRequiredOkdbChangefeed;function requireOkdbChangefeed(){const _0x12f36a=_0xef081e;if(hasRequiredOkdbChangefeed)return okdbChangefeed;hasRequiredOkdbChangefeed=0x1;const _0x2a10f2=require$$0$6,{clampTimerDelay:_0x164409}=requireOkdbTimers(),{EVENTS:_0x5258df,CHANGE_ACTIONS:_0x10ebd7}=requireOkdbEnums(),{LOOP:_0xd561c7}=requireOkdbLoopMonitor(),_0x109632=Number(process.env.OKDB_CHANGEFEED_QUANTUM)||0x3e8,_0x51d980=0x5,_0x2c44a8=0x2710;class _0x25db73 extends _0x2a10f2{constructor(_0x244623,_0x4d48c1={}){const _0x533fa1=_0x2fc2;super(),this[_0x533fa1(0x82e)]=_0x244623,this[_0x533fa1(0x5ee)]=_0x4d48c1['quantum']??_0x109632,this[_0x533fa1(0x608)]=_0x4d48c1['flushDebounce']??_0x51d980,this[_0x533fa1(0x5a9)]=_0x4d48c1[_0x533fa1(0x5e8)]??_0x2c44a8,this[_0x533fa1(0x66e)]=![],this[_0x533fa1(0x705)]=new Map(),this[_0x533fa1(0x2d3)]=new Map(),this[_0x533fa1(0x4cd)]=new Map(),this['_flushTimer']=null,this[_0x533fa1(0x4c1)]=![],this[_0x533fa1(0x225)]=new Set(),this[_0x533fa1(0x1f5)]=new Set(),this['_onItem']=_0x2a7650=>this[_0x533fa1(0x65f)](_0x2a7650),this[_0x533fa1(0x633)]=_0x4217e6=>this[_0x533fa1(0x620)](_0x4217e6),this[_0x533fa1(0x729)]=_0x322caa=>this[_0x533fa1(0x624)](_0x322caa),this[_0x533fa1(0x3c5)]=()=>this['stop']();}[_0x12f36a(0x77b)](){const _0x4c923f=_0x12f36a;if(this['_started'])return;this['_started']=!![];for(const [_0x5cd84c,_0x175e73]of this[_0x4c923f(0x82e)][_0x4c923f(0x75a)]){if(_0x5cd84c[_0x4c923f(0x212)]('~'))continue;try{_0x175e73['_enableChangelog']();}catch{}}for(const [_0x5ab299,_0x3e6882]of this[_0x4c923f(0x82e)][_0x4c923f(0x75a)]){if(_0x5ab299[_0x4c923f(0x212)]('~'))continue;try{this[_0x4c923f(0x2d3)][_0x4c923f(0x204)](_0x5ab299,_0x3e6882[_0x4c923f(0x73c)]()||0x0);}catch{}}const {events:_0x275582}=this[_0x4c923f(0x82e)];_0x275582['on'](_0x5258df[_0x4c923f(0x3a8)],this[_0x4c923f(0x633)]),_0x275582['on'](_0x5258df[_0x4c923f(0x71d)],this['_onItem']),_0x275582['on'](_0x5258df[_0x4c923f(0x767)],this[_0x4c923f(0x71a)]),_0x275582['on'](_0x5258df['ITEM_REMOVE'],this[_0x4c923f(0x71a)]),_0x275582['on'](_0x5258df[_0x4c923f(0x4e4)],this[_0x4c923f(0x729)]),_0x275582[_0x4c923f(0x308)](_0x5258df['SYSTEM_STOPPED'],this[_0x4c923f(0x3c5)]);}['stop'](){const _0x28543d=_0x12f36a;if(!this[_0x28543d(0x66e)])return;this[_0x28543d(0x66e)]=![];const {events:_0x50de84}=this[_0x28543d(0x82e)];_0x50de84[_0x28543d(0x457)](_0x5258df[_0x28543d(0x3a8)],this[_0x28543d(0x633)]),_0x50de84[_0x28543d(0x457)](_0x5258df[_0x28543d(0x71d)],this['_onItem']),_0x50de84[_0x28543d(0x457)](_0x5258df['ITEM_UPDATE'],this[_0x28543d(0x71a)]),_0x50de84[_0x28543d(0x457)](_0x5258df[_0x28543d(0x688)],this[_0x28543d(0x71a)]),_0x50de84[_0x28543d(0x457)](_0x5258df[_0x28543d(0x4e4)],this[_0x28543d(0x729)]);try{_0x50de84[_0x28543d(0x457)](_0x5258df[_0x28543d(0x495)],this['_onStop']);}catch{}this[_0x28543d(0x3cd)]&&(clearTimeout(this[_0x28543d(0x3cd)]),this['_flushTimer']=null),this[_0x28543d(0x4cd)][_0x28543d(0x6fa)](),this[_0x28543d(0x705)]['clear'](),this[_0x28543d(0x2d3)][_0x28543d(0x6fa)](),this['_seen'][_0x28543d(0x6fa)](),this[_0x28543d(0x1f5)]['clear']();}[_0x12f36a(0x384)](_0x563bba,_0xa7c1e7,_0x400c5d,_0x484e7e){return _0x563bba+'\x00'+_0xa7c1e7+'\x00'+_0x400c5d+'\x00'+_0x484e7e;}[_0x12f36a(0x3dd)](_0x176ee5,_0x1540a8,_0x367aef,_0x5a9636){const _0x2b1150=_0x12f36a,_0x4537a9=this[_0x2b1150(0x384)](_0x176ee5,_0x1540a8,_0x367aef,_0x5a9636);if(this[_0x2b1150(0x225)][_0x2b1150(0x396)](_0x4537a9))return![];this['_seen'][_0x2b1150(0x77d)](_0x4537a9);if(this[_0x2b1150(0x225)]['size']>this[_0x2b1150(0x5a9)]){const _0x15d892=this[_0x2b1150(0x225)][_0x2b1150(0x42a)]()[_0x2b1150(0x8a6)]()[_0x2b1150(0x744)];this[_0x2b1150(0x225)]['delete'](_0x15d892);}return!![];}[_0x12f36a(0x620)](_0x2e96fc){const _0x13e31a=_0x12f36a;if(!this['_started']||!_0x2e96fc)return;const {env:_0x51220d,type:_0x2f8474,key:_0x124161,clock:_0x512fc6}=_0x2e96fc;if(_0x51220d==null||_0x2f8474==null||_0x124161==null)return;if(typeof _0x51220d===_0x13e31a(0x43c)&&_0x51220d[_0x13e31a(0x212)]('~'))return;if(typeof _0x2f8474===_0x13e31a(0x43c)&&_0x2f8474[_0x13e31a(0x212)]('~'))return;this[_0x13e31a(0x1f5)][_0x13e31a(0x77d)](this[_0x13e31a(0x384)](_0x51220d,_0x2f8474,_0x124161,_0x512fc6)),this[_0x13e31a(0x1f5)][_0x13e31a(0x4ff)]>this['_dedupeMax']&&this[_0x13e31a(0x1f5)][_0x13e31a(0x46b)](this[_0x13e31a(0x1f5)][_0x13e31a(0x42a)]()[_0x13e31a(0x8a6)]()['value']);}[_0x12f36a(0x65f)](_0x1a9038){const _0xa1253e=_0x12f36a;if(!this[_0xa1253e(0x66e)]||!_0x1a9038)return;const {env:_0x5562dd,type:_0x53d5a3,key:_0x2061c1,clock:_0x1749f7,origin:_0x1d5f6a,action:_0x442005,newValue:_0x1f4363,oldValue:_0x24d8fb}=_0x1a9038;if(_0x5562dd==null||_0x53d5a3==null||_0x2061c1==null)return;if(typeof _0x5562dd===_0xa1253e(0x43c)&&_0x5562dd[_0xa1253e(0x212)]('~'))return;if(typeof _0x53d5a3===_0xa1253e(0x43c)&&_0x53d5a3['startsWith']('~'))return;this[_0xa1253e(0x1f5)][_0xa1253e(0x46b)](this[_0xa1253e(0x384)](_0x5562dd,_0x53d5a3,_0x2061c1,_0x1749f7));if(!this[_0xa1253e(0x3dd)](_0x5562dd,_0x53d5a3,_0x2061c1,_0x1749f7))return;const _0xf27b5f=_0x442005===_0x10ebd7[_0xa1253e(0x3bd)]?_0xa1253e(0x28d):_0xa1253e(0x1dd);this[_0xa1253e(0x599)](_0xa1253e(0x50f),{'env':_0x5562dd,'type':_0x53d5a3,'key':_0x2061c1,'op':_0xf27b5f,'clock':_0x1749f7,'origin':_0x1d5f6a,'value':_0xf27b5f===_0xa1253e(0x28d)?null:_0x1f4363,'prevValue':_0x24d8fb});}['_handlePoke'](_0xbe1e3c){const _0x4963e1=_0x12f36a;if(!this[_0x4963e1(0x66e)])return;if(!_0xbe1e3c||typeof _0xbe1e3c[_0x4963e1(0x4f8)]!=='string'||typeof _0xbe1e3c[_0x4963e1(0x490)]!=='string')return;const {env:_0x57c4fb,type:_0x15c5a3}=_0xbe1e3c;if(_0x57c4fb['startsWith']('~')||_0x15c5a3[_0x4963e1(0x212)]('~'))return;this[_0x4963e1(0x4cd)][_0x4963e1(0x204)](_0x57c4fb+'\x00'+_0x15c5a3,{'env':_0x57c4fb,'type':_0x15c5a3}),this[_0x4963e1(0x61d)]();}[_0x12f36a(0x61d)](){const _0x2bef31=_0x12f36a;if(this[_0x2bef31(0x3cd)])return;const _0x50e0dc=()=>{const _0x397c65=_0x2bef31;this[_0x397c65(0x3cd)]=null,this[_0x397c65(0x452)]()[_0x397c65(0x603)](()=>{});};this['_flushTimer']=setTimeout(_0x50e0dc,_0x164409(this[_0x2bef31(0x608)]));}async[_0x12f36a(0x452)](){const _0x218dbd=_0x12f36a;if(this[_0x218dbd(0x4c1)]){this[_0x218dbd(0x61d)]();return;}this['_draining']=!![];try{const _0x44c91f=[...this[_0x218dbd(0x4cd)][_0x218dbd(0x42a)]()];this[_0x218dbd(0x4cd)][_0x218dbd(0x6fa)]();let _0x1796e4=![];for(const {env:_0x3ca5f5,type:_0x2561cb}of _0x44c91f){try{const _0x3ede66=await this[_0x218dbd(0x4b1)](_0x3ca5f5,_0x2561cb);if(_0x3ede66)_0x1796e4=!![];}catch{this[_0x218dbd(0x4cd)]['set'](_0x3ca5f5+'\x00'+_0x2561cb,{'env':_0x3ca5f5,'type':_0x2561cb}),_0x1796e4=!![];}}if(_0x1796e4||this[_0x218dbd(0x4cd)][_0x218dbd(0x4ff)]>0x0)this['_scheduleFlush']();}finally{this[_0x218dbd(0x4c1)]=![];}}async[_0x12f36a(0x4b1)](_0x22d498,_0x332a82){const _0x4d2c01=_0x12f36a,_0x232858=await this['okdb'][_0x4d2c01(0x523)](_0x22d498),_0x51d7c4=_0x22d498+'\x00'+_0x332a82;!this[_0x4d2c01(0x705)][_0x4d2c01(0x396)](_0x51d7c4)&&(!this[_0x4d2c01(0x2d3)]['has'](_0x22d498)&&(_0x232858['_enableChangelog'](),this[_0x4d2c01(0x2d3)]['set'](_0x22d498,_0x232858[_0x4d2c01(0x73c)]()||0x0)),this['_cursors'][_0x4d2c01(0x204)](_0x51d7c4,this[_0x4d2c01(0x2d3)][_0x4d2c01(0x292)](_0x22d498)));const _0x4d7e69=this[_0x4d2c01(0x705)][_0x4d2c01(0x292)](_0x51d7c4),_0x5da1c4=_0x232858[_0x4d2c01(0x73c)](_0x332a82)||0x0;if(_0x5da1c4<=_0x4d7e69)return![];const _0x36e603=_0x4d7e69+this[_0x4d2c01(0x5ee)],_0x1763e1=Math[_0x4d2c01(0x439)](_0x5da1c4,_0x36e603),_0x26c3ca=_0xd561c7[_0x4d2c01(0x4b3)]?_0xd561c7[_0x4d2c01(0x3d4)]():0x0,_0x3e0b44=Array[_0x4d2c01(0x51b)](_0x232858[_0x4d2c01(0x257)](_0x332a82,_0x4d7e69+0x1,_0x1763e1));let _0x10d613=_0x4d7e69;for(const _0x3c5260 of _0x3e0b44){const {clock:_0x121569,key:_0x7ccb80,action:_0x3e9ae1,origin:_0x5538b2}=_0x3c5260;if(_0x121569>_0x10d613)_0x10d613=_0x121569;if(_0x7ccb80==null)continue;if(this['_pendingLocal']['has'](this[_0x4d2c01(0x384)](_0x22d498,_0x332a82,_0x7ccb80,_0x121569)))continue;if(!this[_0x4d2c01(0x3dd)](_0x22d498,_0x332a82,_0x7ccb80,_0x121569))continue;let _0x15a8d6,_0xb04345;if(_0x3e9ae1===_0x10ebd7[_0x4d2c01(0x3bd)])_0x15a8d6=_0x4d2c01(0x28d),_0xb04345=null;else{const _0x2a683b=_0x232858[_0x4d2c01(0x292)](_0x332a82,_0x7ccb80);_0x2a683b==null?(_0x15a8d6=_0x4d2c01(0x28d),_0xb04345=null):(_0x15a8d6=_0x4d2c01(0x1dd),_0xb04345=_0x2a683b);}this[_0x4d2c01(0x599)](_0x4d2c01(0x50f),{'env':_0x22d498,'type':_0x332a82,'key':_0x7ccb80,'op':_0x15a8d6,'clock':_0x121569,'origin':_0x5538b2,'value':_0xb04345});}if(_0xd561c7[_0x4d2c01(0x4b3)])_0xd561c7['note'](_0x4d2c01(0x2d9)+_0x22d498+':'+_0x332a82,_0xd561c7['now']()-_0x26c3ca,'n='+_0x3e0b44[_0x4d2c01(0x788)]);return this['_cursors'][_0x4d2c01(0x204)](_0x51d7c4,Math[_0x4d2c01(0x31f)](_0x10d613,_0x1763e1)),_0x232858[_0x4d2c01(0x73c)](_0x332a82)>_0x1763e1;}[_0x12f36a(0x442)](){const _0x2f096e=_0x12f36a;return{'started':this[_0x2f096e(0x66e)],'quantum':this[_0x2f096e(0x5ee)],'flushDebounce':this[_0x2f096e(0x608)],'cursors':Object[_0x2f096e(0x89e)]([...this[_0x2f096e(0x705)][_0x2f096e(0x84a)]()][_0x2f096e(0x642)](([_0x492b3d,_0x5b0b3a])=>[_0x492b3d['replace']('\x00',':'),_0x5b0b3a])),'pending':this[_0x2f096e(0x4cd)]['size'],'seen':this[_0x2f096e(0x225)][_0x2f096e(0x4ff)]};}}return _0x25db73[_0x12f36a(0x8b0)]=_0x109632,okdbChangefeed={'OKDBChangefeed':_0x25db73},okdbChangefeed;}var okdbRelay,hasRequiredOkdbRelay;function requireOkdbRelay(){const _0x2d554a=_0xef081e;if(hasRequiredOkdbRelay)return okdbRelay;hasRequiredOkdbRelay=0x1;const {EVENTS:_0x2acf34}=requireOkdbEnums(),_0x54949a=new Set([_0x2acf34[_0x2d554a(0x71d)],_0x2acf34[_0x2d554a(0x767)],_0x2acf34['ITEM_REMOVE']]),{ENGINE_EVENTS:_0xade4c4}=requireOkdbEnginesEnums(),{EMBEDDINGS_EVENTS:_0x4a0e3e}=requireEnums(),{QUEUE_EVENTS:_0x3f323a}=requireOkdbQueueValidate(),_0x56ddbd=Object[_0x2d554a(0x42a)](_0x2acf34),_0x4e829b=Object[_0x2d554a(0x42a)](_0xade4c4)[_0x2d554a(0x642)](_0x4504bc=>_0x2d554a(0x2a6)+_0x4504bc),_0x6029f3=Object[_0x2d554a(0x42a)](_0x4a0e3e),_0x2dce76=Object['values'](_0x3f323a),_0x172745=[_0x2d554a(0x4f2),'processor:progress',_0x2d554a(0x616),_0x2d554a(0x6a0),_0x2d554a(0x714),'processor:retry'],_0x16437b=[..._0x56ddbd,..._0x4e829b,..._0x6029f3,..._0x2dce76,..._0x172745,_0x2d554a(0x6d5)],_0x587994=new Set(_0x16437b),_0xc7a9f5=new Set([_0x2acf34['ITEM_CREATE'],_0x2acf34[_0x2d554a(0x767)],_0x2acf34[_0x2d554a(0x688)],_0x2acf34[_0x2d554a(0x25f)],_0x2acf34[_0x2d554a(0x6cf)],_0x2acf34[_0x2d554a(0x5c0)],_0x2acf34[_0x2d554a(0x243)],_0x2acf34[_0x2d554a(0x8aa)],_0x4a0e3e[_0x2d554a(0x531)],_0x4a0e3e[_0x2d554a(0x339)],_0x4a0e3e[_0x2d554a(0x602)],_0x4a0e3e[_0x2d554a(0x865)],_0x2d554a(0x511)]),_0x2cca1e=_0x16437b[_0x2d554a(0x877)](_0xe80557=>_0xe80557==='log'||!_0xc7a9f5[_0x2d554a(0x396)](_0xe80557)),_0x5bb4a4=0x14,_0x58509f=0xc8;class _0x4349ed{constructor(_0x2de1cf,_0x3a2ab7={}){const _0x55e438=_0x2d554a;this[_0x55e438(0x82e)]=_0x2de1cf,this[_0x55e438(0x3ed)]=_0x3a2ab7[_0x55e438(0x824)]??_0x5bb4a4,this[_0x55e438(0x5a4)]=_0x3a2ab7[_0x55e438(0x6b2)]??_0x58509f,this[_0x55e438(0x4c9)]=new Set(),this[_0x55e438(0x48c)]=[],this[_0x55e438(0x70c)]=[],this['_detachLog']=null,this[_0x55e438(0x28b)]=![],this[_0x55e438(0x72c)]=null,this[_0x55e438(0x262)]=null;}[_0x2d554a(0x4d3)](){const _0x45aefe=_0x2d554a;if(this[_0x45aefe(0x28b)])return;this[_0x45aefe(0x28b)]=!![];const {okdb:_0x97a441}=this;this[_0x45aefe(0x1f8)]=_0x97a441[_0x45aefe(0x6d5)][_0x45aefe(0x4d3)](_0x45214d=>this['_push'](_0x45aefe(0x6d5),_0x45214d));for(const _0x133854 of _0x16437b){if(_0x133854===_0x45aefe(0x6d5))continue;const _0x8ff9d3=_0x54949a[_0x45aefe(0x396)](_0x133854),_0x31a3d9=_0x36d9aa=>{const _0x14c654=_0x45aefe;if(_0x8ff9d3&&this[_0x14c654(0x72c)])return;this['_push'](_0x133854,_0x36d9aa??{});};_0x97a441[_0x45aefe(0x3d2)]['on'](_0x133854,_0x31a3d9),this['_listeners'][_0x45aefe(0x27f)]({'event':_0x133854,'handler':_0x31a3d9});}this['_onStop']=()=>this[_0x45aefe(0x5f1)](),_0x97a441[_0x45aefe(0x3d2)][_0x45aefe(0x308)](_0x2acf34[_0x45aefe(0x495)],this[_0x45aefe(0x3c5)]);}[_0x2d554a(0x5f1)](){const _0x50ace5=_0x2d554a;if(!this[_0x50ace5(0x28b)])return;if(this['_onStop']){try{this[_0x50ace5(0x82e)][_0x50ace5(0x3d2)][_0x50ace5(0x457)](_0x2acf34[_0x50ace5(0x495)],this['_onStop']);}catch{}this[_0x50ace5(0x3c5)]=null;}this[_0x50ace5(0x1f8)]?.(),this['_detachLog']=null;for(const {event:_0x2ad570,handler:_0xbac446}of this['_listeners']){try{this[_0x50ace5(0x82e)][_0x50ace5(0x3d2)][_0x50ace5(0x457)](_0x2ad570,_0xbac446);}catch{}}this[_0x50ace5(0x70c)]=[];for(const _0x396b24 of this[_0x50ace5(0x4c9)]){try{_0x396b24['close']?.();}catch{}}this[_0x50ace5(0x4c9)][_0x50ace5(0x6fa)](),this['detachFeed'](),this[_0x50ace5(0x28b)]=![];}[_0x2d554a(0x39e)](_0x3f7759){const _0x31ed0e=_0x2d554a;if(!_0x3f7759||this[_0x31ed0e(0x72c)]===_0x3f7759)return;this['detachFeed'](),this[_0x31ed0e(0x72c)]=_0x3f7759,this[_0x31ed0e(0x262)]=_0x16b437=>{const _0x12ce99=_0x31ed0e;if(!_0x16b437)return;const _0x144749=_0x16b437['op']===_0x12ce99(0x28d)?_0x2acf34[_0x12ce99(0x688)]:_0x2acf34[_0x12ce99(0x767)];this['_push'](_0x144749,_0x16b437);},_0x3f7759['on'](_0x31ed0e(0x50f),this[_0x31ed0e(0x262)]);}[_0x2d554a(0x722)](){const _0x45c70f=_0x2d554a;if(this[_0x45c70f(0x72c)]&&this[_0x45c70f(0x262)])try{this['_feed'][_0x45c70f(0x457)](_0x45c70f(0x50f),this[_0x45c70f(0x262)]);}catch{}this[_0x45c70f(0x72c)]=null,this[_0x45c70f(0x262)]=null;}['pushEphemeral'](_0x1388a5,_0x53fc44){const _0x5e94c5=_0x2d554a;if(!_0x587994['has'](_0x1388a5))return;this[_0x5e94c5(0x444)](_0x1388a5,_0x53fc44??{});}[_0x2d554a(0x80b)](_0x1f2ada,_0x2b290a,_0x4be7a6){const _0x5c5ef3=_0x2d554a;if(this[_0x5c5ef3(0x4c9)][_0x5c5ef3(0x4ff)]>=this[_0x5c5ef3(0x3ed)])return _0x2b290a(_0x5c5ef3(0x79b),{'message':_0x5c5ef3(0x8da),'code':_0x5c5ef3(0x604)}),()=>{};const _0x3aaf96=this[_0x5c5ef3(0x7ca)](_0x1f2ada),_0xfee831={'send':_0x2b290a,'filter':_0x3aaf96,'close':_0x4be7a6??null};this['_connections'][_0x5c5ef3(0x77d)](_0xfee831);for(const {event:_0x2789d2,data:_0x30ef53}of this[_0x5c5ef3(0x48c)]){if(_0x3aaf96[_0x5c5ef3(0x396)](_0x2789d2))try{_0x2b290a(_0x2789d2,_0x30ef53);}catch{}}return()=>this[_0x5c5ef3(0x4c9)]['delete'](_0xfee831);}['ensureFeed'](){const _0x78b1ee=_0x2d554a;if(this[_0x78b1ee(0x72c)])return this['_feed'];const {OKDBChangefeed:_0x1c1998}=requireOkdbChangefeed(),_0x224171=new _0x1c1998(this['okdb']);_0x224171[_0x78b1ee(0x77b)](),this[_0x78b1ee(0x39e)](_0x224171);if(this[_0x78b1ee(0x82e)]&&!this['okdb'][_0x78b1ee(0x313)])this[_0x78b1ee(0x82e)][_0x78b1ee(0x313)]=_0x224171;return this[_0x78b1ee(0x72c)];}get[_0x2d554a(0x3f4)](){const _0x119339=_0x2d554a;return this[_0x119339(0x4c9)][_0x119339(0x4ff)];}[_0x2d554a(0x70a)](){const _0x1875ca=_0x2d554a;return{'connections':this[_0x1875ca(0x3f4)],'bufferSize':this[_0x1875ca(0x48c)]['length'],'attached':this[_0x1875ca(0x28b)],'allEvents':_0x16437b['length'],'defaultEvents':_0x2cca1e[_0x1875ca(0x788)]};}static get[_0x2d554a(0x2fe)](){return _0x16437b;}static get[_0x2d554a(0x63a)](){return _0x2cca1e;}static get[_0x2d554a(0x1ef)](){return[..._0xc7a9f5];}[_0x2d554a(0x7ca)](_0x44bddb){const _0x3cc58a=_0x2d554a;if(!_0x44bddb||!_0x44bddb['length'])return new Set(_0x2cca1e);const _0x447bb1=_0x44bddb[_0x3cc58a(0x877)](_0x340257=>_0x587994[_0x3cc58a(0x396)](_0x340257));return new Set(_0x447bb1[_0x3cc58a(0x788)]?_0x447bb1:_0x2cca1e);}['_push'](_0x69d952,_0x324d93){const _0x45c8f4=_0x2d554a,_0x91d904={..._0x324d93,'_ts':_0x324d93?.[_0x45c8f4(0x723)]??_0x324d93?.['ts']??Date['now']()};this[_0x45c8f4(0x48c)][_0x45c8f4(0x27f)]({'event':_0x69d952,'data':_0x91d904});if(this[_0x45c8f4(0x48c)][_0x45c8f4(0x788)]>this[_0x45c8f4(0x5a4)])this[_0x45c8f4(0x48c)][_0x45c8f4(0x5af)]();for(const _0x24017f of this[_0x45c8f4(0x4c9)]){if(_0x24017f['filter'][_0x45c8f4(0x396)](_0x69d952))try{_0x24017f[_0x45c8f4(0x503)](_0x69d952,_0x91d904);}catch{}}}}return okdbRelay=_0x4349ed,okdbRelay;}var hasRequiredLib;function requireLib(){const _0x3d64fc=_0xef081e;if(hasRequiredLib)return lib[_0x3d64fc(0x57d)];return hasRequiredLib=0x1,function(_0x52e65e){const _0x17e567=_0x3d64fc,_0x1d0267=require$$0$6,{load:_0x4f4e1b}=require$$1$1,_0x568cd6=requireBridge(),_0x2b716d=requireWritebatch(),{Pumper:_0x59139d}=requirePump(),{OKDBEnv:_0x14b26f,HIGH_SENTINEL:_0x50578d}=requireEnv(),{reclass:_0x4240b8,NotImplementedNative:_0x20aefe,OKDBError:_0x126a32,optionsArg:_0x28968,invalidArgument:_0x5bf794}=requireErrors(),{notImplemented:_0x5b693a}=requireUnsupported(),{OKDBHttp:_0x1b07e3}=requireHttp(),{OKDBFts:_0xa33a4a}=requireFts(),{OKDBEmbeddings:_0x2dd880}=requireEmbeddings(),{OKDBAuth:_0x5751c1}=requireAuth(),{OKDBSync:_0x2dfbd5}=requireSync(),{OKDBMigrate:_0xe4455d}=requireMigrate(),{OKDBFunctions:_0x4f4574}=requireFunctions(),{OKDBMcp:_0x30e46d}=requireMcp(),{OKDBEngines:_0x1592f6,OKDBPipelines:_0x4eb356}=requireEngines(),{makeMeta:_0x2e7ed7,makeLicenses:_0x238a14,makeLicenseChecker:_0x5ac861,makeProcesses:_0x129caa}=requireSys();let _0x531deb=null;function _0x3b5a3e(_0x1975d4){const _0x362ada=_0x2fc2;if(!_0x531deb){const {Unpackr:_0xeae4b4}=require$$18;_0x531deb=new _0xeae4b4({'useRecords':![],'mapsAsObjects':!![],'copyBuffers':!![]});}return _0x531deb[_0x362ada(0x67f)](_0x1975d4);}let _0x120fcd=null;function _0x4dc5e5(_0x240b37,_0x399776){const _0x465bb7=_0x2fc2;if(!_0x120fcd){const {Unpackr:_0x58fd04}=require$$18;_0x120fcd=new _0x58fd04({'copyBuffers':!![]});}return _0x120fcd[_0x465bb7(0x67f)](_0x240b37,_0x399776);}const {encodeKey:_0x4f8ae1,KEY_BUF_SIZE:_0x16ebaa,NO_FAST:_0x57fbb4}=requireKeyenc(),_0x1c3024=0x40*0x400,_0x1d8eb8=0x4*0x400*0x400;function _0x31c380(_0x35841f,_0x63458b){const _0x4d8c60=_0x2fc2,_0x23b77b=_0x35841f[0x2],_0x2c2632=_0x23b77b?(_0x35841f[_0x4d8c60(0x788)]-0x3)/Math[_0x4d8c60(0x438)](_0x23b77b):0x0,_0x4aece3=new Array(_0x2c2632);let _0x1b658f=0x3;if(_0x23b77b===0x2){for(let _0x577dac=0x0;_0x577dac<_0x2c2632;_0x577dac++,_0x1b658f+=0x2)_0x4aece3[_0x577dac]={'key':_0x35841f[_0x1b658f],'value':_0x35841f[_0x1b658f+0x1]};}else{if(_0x23b77b===0x3){for(let _0x384bfe=0x0;_0x384bfe<_0x2c2632;_0x384bfe++,_0x1b658f+=0x3)_0x4aece3[_0x384bfe]={'key':_0x35841f[_0x1b658f],'value':_0x35841f[_0x1b658f+0x1],'version':_0x35841f[_0x1b658f+0x2]};}else{if(_0x23b77b===-0x2){for(let _0x184acf=0x0;_0x184acf<_0x2c2632;_0x184acf++,_0x1b658f+=0x2)_0x4aece3[_0x184acf]={'clock':_0x35841f[_0x1b658f],..._0x35841f[_0x1b658f+0x1]};}else{if(_0x23b77b===0x4){for(let _0x176b3a=0x0;_0x176b3a<_0x2c2632;_0x176b3a++,_0x1b658f+=0x4)_0x4aece3[_0x176b3a]={'key':_0x35841f[_0x1b658f],'value':_0x35841f[_0x1b658f+0x1],'version':_0x35841f[_0x1b658f+0x2],'indexKey':_0x35841f[_0x1b658f+0x3]};}else{if(_0x2c2632)throw new Error('callRows:\x20unexpected\x20row\x20stride\x20'+_0x23b77b);}}}}return _0x63458b?[_0x35841f[0x0],_0x4aece3,_0x35841f[0x1]]:_0x4aece3;}let _0x2a9a69=null;function _0x2a5a57(_0x54278b,_0x42543b,_0x58d01e){const _0x4336c8=_0x2fc2;if(!_0x2a9a69)_0x2a9a69=requireDist()['readKey'];const _0x1cf50e=new DataView(_0x54278b[_0x4336c8(0x570)],_0x54278b[_0x4336c8(0x6e4)],_0x42543b),_0x4320ef=_0x1cf50e[_0x4336c8(0x6b4)](0x10,!![]),_0x1fa3c1=new Array(_0x4320ef);let _0x26da51=0x14;for(let _0x40774a=0x0;_0x40774a<_0x4320ef;_0x40774a++){const _0x387999=_0x54278b[_0x26da51]|_0x54278b[_0x26da51+0x1]<<0x8;_0x26da51+=0x2,_0x1fa3c1[_0x40774a]=_0x2a9a69(_0x54278b,_0x26da51,_0x26da51+_0x387999),_0x26da51+=_0x387999;}return _0x58d01e?[_0x1cf50e['getFloat64'](0x0,!![]),_0x1fa3c1,_0x1cf50e[_0x4336c8(0x2e4)](0x8,!![])]:_0x1fa3c1;}const _0x5a3049=requireOkdbLogger(),_0x523727=requireOkdbPlugins(),{OKDB_STATE:_0x44716b,EVENTS:_0x1d4066}=requireOkdbEnums(),_0x4d0ba0=requireStatics();let _0x1e5dda=null,_0x446c93=![],_0x2c6966=0x1;const _0x272b0c=new Map(),_0x5ef515=new Set([_0x17e567(0x7b4),_0x17e567(0x6fb)]),_0x3b7f3b=_0x251212=>!!_0x251212&&_0x5ef515[_0x17e567(0x396)](_0x251212[_0x17e567(0x1bd)]),_0x318993=Number(process.env.OKDB_PENDING_RETRY_MS)>0x0?Number(process.env.OKDB_PENDING_RETRY_MS):0x1d4c0;function _0x19fcce(){const _0x42b562=_0x17e567;!_0x446c93&&(_0x3c775f()[_0x42b562(0x5fd)](_0x568cd6[_0x42b562(0x35f)]),_0x2b716d[_0x42b562(0x210)](_0x3c775f()),_0x446c93=!![]);}function _0x3c775f(){if(!_0x1e5dda)_0x1e5dda=_0x4f4e1b();return _0x1e5dda;}class _0x205421 extends Map{constructor(_0x462246){super(),this['_db']=_0x462246;}['_sync'](){const _0x4c6e44=_0x17e567,_0xdc4b94=this['_db'];if(!_0xdc4b94[_0x4c6e44(0x489)])return;let _0x3adbba;try{_0x3adbba=_0xdc4b94['_call']('db',null,'envNames',[],![]);}catch{return;}for(const _0x562242 of _0x3adbba)if(!super[_0x4c6e44(0x396)](_0x562242)&&_0xdc4b94[_0x4c6e44(0x5a1)]('db',null,_0x4c6e44(0x4ab),[_0x562242],![]))_0xdc4b94[_0x4c6e44(0x7d6)](_0x562242);}[_0x17e567(0x292)](_0x38da9c){const _0x1a35f5=_0x17e567,_0x305111=super['get'](_0x38da9c);if(_0x305111!==undefined||typeof _0x38da9c!==_0x1a35f5(0x43c))return _0x305111;const _0x4374fe=this[_0x1a35f5(0x497)];if(_0x38da9c===_0x1a35f5(0x593))return _0x4374fe[_0x1a35f5(0x489)]?_0x4374fe['processes'][_0x1a35f5(0x7f3)]??undefined:undefined;if(_0x4374fe[_0x1a35f5(0x489)]&&_0x4374fe[_0x1a35f5(0x5a1)]('db',null,_0x1a35f5(0x4ab),[_0x38da9c],![]))return _0x4374fe[_0x1a35f5(0x7d6)](_0x38da9c);if(_0x4374fe['_isOpen']&&typeof _0x38da9c===_0x1a35f5(0x43c)&&!_0x38da9c['startsWith']('~')){_0x4374fe['_call']('db',null,_0x1a35f5(0x4b0),[],![]);if(_0x4374fe[_0x1a35f5(0x5a1)]('db',null,_0x1a35f5(0x4ab),[_0x38da9c],![]))return _0x4374fe[_0x1a35f5(0x7d6)](_0x38da9c);}return undefined;}[_0x17e567(0x396)](_0x56dcf5){const _0x1e31c5=_0x17e567;return this[_0x1e31c5(0x292)](_0x56dcf5)!==undefined;}get[_0x17e567(0x4ff)](){const _0x3b2ba9=_0x17e567;return this[_0x3b2ba9(0x1e0)](),super[_0x3b2ba9(0x4ff)];}['keys'](){const _0x531649=_0x17e567;return this['_sync'](),super[_0x531649(0x607)]();}[_0x17e567(0x42a)](){const _0x548425=_0x17e567;return this['_sync'](),super[_0x548425(0x42a)]();}[_0x17e567(0x84a)](){const _0x3d0e4e=_0x17e567;return this[_0x3d0e4e(0x1e0)](),super[_0x3d0e4e(0x84a)]();}[_0x17e567(0x8de)](_0x2d3b83,_0x418b9f){const _0x4ce01e=_0x17e567;return this[_0x4ce01e(0x1e0)](),super[_0x4ce01e(0x8de)](_0x2d3b83,_0x418b9f);}[Symbol[_0x17e567(0x6a7)]](){const _0x5f5a6f=_0x17e567;return this['_sync'](),super[Symbol[_0x5f5a6f(0x6a7)]]();}}class _0x7646a2{constructor(_0xaa967e,_0x4a2716={}){const _0x35f0f3=_0x17e567,_0x50b46a=_0x3c775f();this[_0x35f0f3(0x844)]=_0xaa967e,this[_0x35f0f3(0x697)]=_0x2c6966++,this[_0x35f0f3(0x306)]='db'+this[_0x35f0f3(0x697)],this[_0x35f0f3(0x1cc)]={..._0x4d0ba0['defaults'],..._0x4a2716,'auth':_0x4a2716[_0x35f0f3(0x65c)]?{..._0x4a2716[_0x35f0f3(0x65c)]}:undefined,'lmdb':{..._0x4a2716[_0x35f0f3(0x879)]||{}}},this['events']=new _0x1d0267(),this[_0x35f0f3(0x3d2)][_0x35f0f3(0x7d9)](0x0),this[_0x35f0f3(0x546)]=new Set(),this[_0x35f0f3(0x3d2)]['on'](_0x35f0f3(0x69c),_0x1847c3=>this[_0x35f0f3(0x389)](_0x1847c3)),this[_0x35f0f3(0x6d5)]=new _0x5a3049(this),this[_0x35f0f3(0x6d5)]['attachConsole'](),_0x568cd6[_0x35f0f3(0x5d7)](this['_key'],{'_deliver':(_0x213525,_0x49ad57)=>this['_deliverEvent'](_0x213525,_0x49ad57),'_log':_0x182b18=>{const _0x4a1642=_0x35f0f3;if(this[_0x4a1642(0x7db)])this[_0x4a1642(0x7db)][_0x4a1642(0x27f)](_0x182b18);const _0x362238=_0x182b18&&_0x182b18[_0x4a1642(0x239)];if(_0x362238&&Object['prototype'][_0x4a1642(0x3ce)][_0x4a1642(0x62a)](this[_0x4a1642(0x6d5)],_0x362238)&&typeof this[_0x4a1642(0x6d5)][_0x362238]===_0x4a1642(0x484)){const _0x13421b=_0x182b18['context'];return this['log'][_0x362238](_0x182b18[_0x4a1642(0x2db)],{..._0x182b18['meta']||{},..._0x13421b&&typeof _0x13421b==='object'?_0x13421b:{}});}return this[_0x4a1642(0x6d5)][_0x4a1642(0x1d0)](_0x182b18);}}),_0x19fcce();try{const _0x48d89d={};if(typeof _0x35f0f3(0x8f1)===_0x35f0f3(0x312)||_0x35f0f3(0x8f1)!==_0x35f0f3(0x8f1));const _0xe23c1d={..._0x4a2716,'_clusterWorker':require(_0x35f0f3(0x6b7))[_0x35f0f3(0x8d1)],..._0x48d89d};this[_0x35f0f3(0x241)]={'instance':null,'envs':new Map()};typeof _0x4a2716[_0x35f0f3(0x5d2)]===_0x35f0f3(0x484)&&(this[_0x35f0f3(0x241)][_0x35f0f3(0x7ae)]=_0x4a2716['encryptionKey'],delete _0xe23c1d['encryptionKey']);if(_0x4a2716[_0x35f0f3(0x630)]&&typeof _0x4a2716[_0x35f0f3(0x630)]===_0x35f0f3(0x7f6)){for(const [_0x542b88,_0x38a2af]of Object['entries'](_0x4a2716[_0x35f0f3(0x630)]))this['_keyFns'][_0x35f0f3(0x322)]['set'](_0x542b88,_0x38a2af);}delete _0xe23c1d['encryptionKeys'],this[_0x35f0f3(0x22e)]=new _0x50b46a[(_0x35f0f3(0x447))](_0xaa967e,_0xe23c1d,this[_0x35f0f3(0x306)]);}catch(_0x459c77){_0x568cd6[_0x35f0f3(0x32b)](this[_0x35f0f3(0x306)]);throw _0x4240b8(_0x459c77);}this['state']=_0x44716b[_0x35f0f3(0x6dc)],this['_isOpen']=![],this[_0x35f0f3(0x75a)]=new _0x205421(this),this[_0x35f0f3(0x82c)]=new _0x59139d({'pump':()=>this[_0x35f0f3(0x22e)][_0x35f0f3(0x2ac)]()}),this[_0x35f0f3(0x7de)]=new _0x2b716d[(_0x35f0f3(0x525))](this),this[_0x35f0f3(0x82c)][_0x35f0f3(0x422)]=()=>_0x568cd6['checkSignals'](),_0x568cd6['setKick'](()=>this[_0x35f0f3(0x82c)][_0x35f0f3(0x2ca)](),this),_0x272b0c['set'](this[_0x35f0f3(0x697)],this),this['_features']={},_0x568cd6[_0x35f0f3(0x363)](this),this[_0x35f0f3(0x658)]=new _0xa33a4a(this),this[_0x35f0f3(0x3de)]=new _0x2dd880(this),this[_0x35f0f3(0x2af)]=new _0x1592f6(this,null,null),this['pipelines']=new _0x4eb356(this,null),this[_0x35f0f3(0x5c3)]=_0x2e7ed7(this),this['licenses']=_0x238a14(this),this['_license']=_0x5ac861(this),this[_0x35f0f3(0x6f9)]=_0x129caa(this),this['processors']=_0x5e3230(this),this[_0x35f0f3(0x5ec)]=new _0x523727(this),this[_0x35f0f3(0x73f)]=new _0x1b07e3(this),this['sync']=new _0x2dfbd5(this),this['auth']=new _0x5751c1(this),this[_0x35f0f3(0x1f1)]=new _0x4f4574(this,null),this[_0x35f0f3(0x2cf)]=new _0x30e46d(this),this[_0x35f0f3(0x8ed)]=_0x4a2716&&_0x4a2716[_0x35f0f3(0x8ed)]===![]?null:_0x5b693a(_0x35f0f3(0x8ed)),this['api']=_0x5b693a(_0x35f0f3(0x276)),this[_0x35f0f3(0x60c)]=new _0xe4455d(this);}['_call'](_0x4a8318,_0x247616,_0x149ce2,_0xc69d69,_0x5427f0=!![]){const _0x1d9e46=_0x17e567;if(_0x5427f0&&this['_wb']&&this[_0x1d9e46(0x7de)][_0x1d9e46(0x2c1)][_0x1d9e46(0x788)])this[_0x1d9e46(0x7de)][_0x1d9e46(0x7dc)]();try{return this[_0x1d9e46(0x22e)]['call'](_0x4a8318,_0x247616,_0x149ce2,_0xc69d69);}catch(_0x2e76da){throw _0x4240b8(_0x2e76da);}finally{if(_0x5427f0)this[_0x1d9e46(0x82c)]['wake']();}}[_0x17e567(0x562)](_0x5843e4,_0x486e9d,_0x27e865,_0x5b95d5){const _0x26f975=_0x17e567;let _0x294652;try{_0x294652=this[_0x26f975(0x22e)][_0x26f975(0x571)](_0x5843e4,_0x486e9d,_0x27e865,_0x5b95d5);}catch(_0x572ff4){throw _0x4240b8(_0x572ff4);}return _0x294652 instanceof Uint8Array?_0x3b5a3e(_0x294652):_0x294652[0x0];}[_0x17e567(0x403)](_0x1e26a2){const _0x56fb1a=_0x17e567;let _0x2ccc82=this[_0x56fb1a(0x5e3)];if(_0x2ccc82&&_0x1e26a2<=_0x2ccc82[_0x56fb1a(0x788)])return _0x2ccc82;let _0xd27350=_0x2ccc82?_0x2ccc82['length']:_0x1c3024;while(_0xd27350<_0x1e26a2)_0xd27350*=0x2;if(_0xd27350>_0x1d8eb8)return _0x2ccc82;return _0x2ccc82=this['_rbuf']=Buffer[_0x56fb1a(0x5fc)](_0xd27350),this['_native'][_0x56fb1a(0x2ef)](_0x2ccc82),_0x2ccc82;}[_0x17e567(0x236)](_0x5cb3d2,_0x119544,_0x2b2ec6){const _0x14b6ea=_0x17e567;if(!this[_0x14b6ea(0x5e3)])this[_0x14b6ea(0x403)](0x0);const _0x2505fe=this[_0x14b6ea(0x22e)][_0x14b6ea(0x61b)](_0x5cb3d2,_0x119544,_0x2b2ec6);if(typeof _0x2505fe===_0x14b6ea(0x559))return _0x4dc5e5(this[_0x14b6ea(0x5e3)],_0x2505fe);if(_0x2505fe===undefined||_0x2505fe===null)return _0x2505fe;return this[_0x14b6ea(0x403)](_0x2505fe[_0x14b6ea(0x788)]),_0x4dc5e5(_0x2505fe);}[_0x17e567(0x7cd)](_0x55eec5,_0x319dc9,_0x1858a4){const _0x59a11e=_0x17e567;let _0x2b3157=this[_0x59a11e(0x267)];if(!_0x2b3157){_0x2b3157=this[_0x59a11e(0x267)]=Buffer[_0x59a11e(0x5fc)](_0x16ebaa),this['_native'][_0x59a11e(0x5c2)](_0x2b3157),this[_0x59a11e(0x1c6)]=new Map();if(!this[_0x59a11e(0x5e3)])this[_0x59a11e(0x403)](0x0);}const _0x1f8192=_0x4f8ae1(_0x1858a4,_0x2b3157);if(_0x1f8192<0x0)return _0x57fbb4;let _0x88ad95=this[_0x59a11e(0x1c6)][_0x59a11e(0x292)](_0x55eec5);if(_0x88ad95===undefined)this[_0x59a11e(0x1c6)]['set'](_0x55eec5,_0x88ad95=new Map());let _0x554da1=_0x88ad95[_0x59a11e(0x292)](_0x319dc9);if(_0x554da1===undefined)_0x88ad95[_0x59a11e(0x204)](_0x319dc9,_0x554da1=this['_native'][_0x59a11e(0x7bb)](_0x55eec5,_0x319dc9));if(_0x554da1<0x0)return _0x57fbb4;const _0x39ea96=this[_0x59a11e(0x22e)][_0x59a11e(0x587)](_0x554da1,_0x1f8192);if(typeof _0x39ea96===_0x59a11e(0x559))return _0x4dc5e5(this[_0x59a11e(0x5e3)],_0x39ea96);if(_0x39ea96===undefined||_0x39ea96===null)return _0x39ea96;return this[_0x59a11e(0x403)](_0x39ea96[_0x59a11e(0x788)]),_0x4dc5e5(_0x39ea96);}[_0x17e567(0x764)](_0x5aa440,_0x254331,_0x541d97){const _0x2aafcf=_0x17e567;if(!this[_0x2aafcf(0x5e3)])this[_0x2aafcf(0x403)](0x0);let _0x26036f;try{_0x26036f=this[_0x2aafcf(0x22e)][_0x2aafcf(0x5ae)](_0x5aa440,_0x254331,_0x541d97);}catch(_0x551547){throw _0x4240b8(_0x551547);}const _0x5c252e=_0x254331===_0x2aafcf(0x59f),_0x2db354=_0x5c252e?_0x541d97[0x1]:_0x254331;let _0x19ecd7=this[_0x2aafcf(0x5e3)],_0x5a4e3f=_0x26036f;if(_0x26036f instanceof Uint8Array)this['_readBuf'](_0x26036f[_0x2aafcf(0x788)]),_0x19ecd7=_0x26036f,_0x5a4e3f=_0x26036f['length'];else{if(typeof _0x26036f!==_0x2aafcf(0x559))return _0x26036f[0x0];}if(_0x2db354===_0x2aafcf(0x541))return _0x2a5a57(_0x19ecd7,_0x5a4e3f,_0x5c252e);if(_0x2db354===_0x2aafcf(0x2d2))return _0x4dc5e5(_0x19ecd7,_0x5a4e3f);return _0x31c380(_0x4dc5e5(_0x19ecd7,_0x5a4e3f),_0x5c252e);}[_0x17e567(0x517)](_0x2c7ee5,_0x392ea9,_0x6ac366,_0x468244,_0x55a6ca=!![],_0x3bd17e=!![]){const _0x3834db=_0x17e567,_0x40d5e8=()=>this[_0x3834db(0x3d3)](()=>this[_0x3834db(0x5a1)](_0x2c7ee5,_0x392ea9,_0x6ac366,_0x468244,_0x55a6ca));if(!_0x3bd17e)return _0x40d5e8();return this[_0x3834db(0x674)](_0x40d5e8);}['_retryPending'](_0x584692){const _0x4eec76=_0x17e567;return _0x584692()[_0x4eec76(0x603)](async _0x53aa30=>{const _0x126ed7=_0x4eec76;if(!_0x3b7f3b(_0x53aa30))throw _0x53aa30;const _0x536041=Date['now']()+_0x318993;let _0x21e80d=0x1;while(_0x3b7f3b(_0x53aa30)&&Date[_0x126ed7(0x3d4)]()<_0x536041){await new Promise(_0x758008=>setTimeout(_0x758008,_0x21e80d)),_0x21e80d=Math['min'](_0x21e80d*0x2,0x14);try{return await _0x584692();}catch(_0x1bf15d){_0x53aa30=_0x1bf15d;}}throw _0x53aa30;});}[_0x17e567(0x1bf)](_0x2392f0){const _0x1d1f0f=_0x17e567;if(_0x568cd6[_0x1d1f0f(0x3d6)]())return Promise[_0x1d1f0f(0x1f3)](_0x2392f0);return new Promise(_0x41614a=>setImmediate(()=>_0x41614a(_0x2392f0)));}[_0x17e567(0x36f)](_0x2586b8){const _0x2e37cb=_0x17e567;if(_0x568cd6[_0x2e37cb(0x3d6)]())return Promise[_0x2e37cb(0x1f3)](_0x2586b8);return this[_0x2e37cb(0x2fd)]()[_0x2e37cb(0x458)](()=>_0x2586b8);}[_0x17e567(0x2fd)](){return new Promise(_0x4343ba=>setImmediate(()=>{const _0x2346b2=_0x2fc2;let _0xb1e68b;try{_0xb1e68b=this[_0x2346b2(0x22e)][_0x2346b2(0x858)]();}catch{return _0x4343ba();}_0x2b716d[_0x2346b2(0x8c0)](_0xb1e68b,_0x4343ba);}));}[_0x17e567(0x3d3)](_0x347561){return new Promise((_0x3d4b85,_0x289511)=>setImmediate(()=>{try{_0x3d4b85(_0x347561());}catch(_0x5215b4){_0x289511(_0x5215b4);}}));}[_0x17e567(0x72b)](_0x2767eb,_0x4bee47,_0x482692){return _0x1eb782(_0x2767eb,_0x4bee47,_0x482692);}[_0x17e567(0x389)](_0x53d9ec){const _0x5a54ec=_0x17e567;if(typeof _0x53d9ec!==_0x5a54ec(0x43c)||this[_0x5a54ec(0x546)][_0x5a54ec(0x396)](_0x53d9ec)||_0x53d9ec===_0x5a54ec(0x69c)||_0x53d9ec===_0x5a54ec(0x565))return;this[_0x5a54ec(0x546)]['add'](_0x53d9ec);try{this[_0x5a54ec(0x22e)]['call']('events',null,_0x5a54ec(0x80b),[this[_0x5a54ec(0x306)],_0x53d9ec]);}catch{}}['_deliverEvent'](_0x48dd7a,_0x565769){const _0x3f5674=_0x17e567;this['events'][_0x3f5674(0x599)](_0x48dd7a,_0x565769);}async[_0x17e567(0x36b)](){const _0xfd7467=_0x17e567,_0x44be9d=this['_keyFns'];if(_0x44be9d[_0xfd7467(0x7ae)])this[_0xfd7467(0x8ca)](null,await _0x44be9d['instance'](null),!![]);for(const [_0x25700b,_0x8b71bd]of _0x44be9d[_0xfd7467(0x322)])this[_0xfd7467(0x8ca)](_0x25700b,typeof _0x8b71bd==='function'?await _0x8b71bd(_0x25700b):_0x8b71bd,typeof _0x8b71bd===_0xfd7467(0x484));(_0x44be9d['instance']||[..._0x44be9d[_0xfd7467(0x322)]['values']()][_0xfd7467(0x3cc)](_0x25fa0f=>typeof _0x25fa0f==='function'))&&!this[_0xfd7467(0x6cd)]&&(this['_keyListener']=_0x56d57a=>{const _0x342961=_0xfd7467,_0x58dc56=_0x56d57a&&_0x56d57a['env']!=null?_0x56d57a[_0x342961(0x4f8)]:null,_0x10ba1c=_0x58dc56==null?_0x44be9d[_0x342961(0x7ae)]:_0x44be9d['envs'][_0x342961(0x292)](_0x58dc56);if(typeof _0x10ba1c!==_0x342961(0x484))return;Promise['resolve']()[_0x342961(0x458)](()=>_0x10ba1c(_0x58dc56))[_0x342961(0x458)](_0x5ad5ca=>this[_0x342961(0x8ca)](_0x58dc56,_0x5ad5ca,!![]))[_0x342961(0x603)](_0x4b2259=>this[_0x342961(0x6d5)][_0x342961(0x860)](_0x342961(0x672)+(_0x4b2259&&_0x4b2259[_0x342961(0x485)]),{'env':_0x58dc56}));},this[_0xfd7467(0x3d2)]['on'](_0xfd7467(0x437),this[_0xfd7467(0x6cd)]));}[_0x17e567(0x8ca)](_0x4ccd68,_0x549e4a,_0x3c2750){const _0x2a7d28=_0x17e567;if(_0x549e4a==null)throw new _0x126a32(_0x2a7d28(0x773)+(_0x4ccd68?_0x2a7d28(0x64e)+_0x4ccd68+'\x22':'')+_0x2a7d28(0x2e8),_0x2a7d28(0x6d1));this[_0x2a7d28(0x22e)][_0x2a7d28(0x62a)]('db',null,_0x2a7d28(0x1c0),[_0x4ccd68,_0x549e4a,!!_0x3c2750]);}async[_0x17e567(0x755)](_0x3f04a9){const _0x352e33=_0x17e567;this[_0x352e33(0x2d0)]();const {env:env=null,to:_0x2e89ba}=_0x28968(_0x3f04a9),_0x4bdbf5=typeof _0x2e89ba===_0x352e33(0x484),_0xa19f9f=_0x4bdbf5?await _0x2e89ba(env):_0x2e89ba;if(_0xa19f9f==null)throw _0x5bf794(_0x352e33(0x660),'a\x2032-character\x20key\x20or\x20a\x20function\x20returning\x20one',_0xa19f9f);const _0x55e8bc=this[_0x352e33(0x5a1)]('db',null,_0x352e33(0x755),[env,_0xa19f9f,_0x4bdbf5]);if(_0x4bdbf5){if(env==null)this[_0x352e33(0x241)][_0x352e33(0x7ae)]=_0x2e89ba;else this[_0x352e33(0x241)][_0x352e33(0x322)][_0x352e33(0x204)](env,_0x2e89ba);}return _0x55e8bc;}async[_0x17e567(0x829)](_0x5a2fd3){const _0x1cb5fe=_0x17e567;this['_assertOpen']();const _0x2ab157=_0x28968(_0x5a2fd3);if(!_0x2ab157[_0x1cb5fe(0x4f8)])throw _0x5bf794(_0x1cb5fe(0x72e),_0x1cb5fe(0x870),_0x2ab157['env']);let _0x630b3e=_0x2ab157['to'];const _0x29bd13=typeof _0x630b3e===_0x1cb5fe(0x484);if(_0x29bd13)_0x630b3e=await _0x2ab157['to'](_0x2ab157['env']);const _0x16310e=await this['_macro'](()=>this[_0x1cb5fe(0x5a1)]('db',null,'reencrypt',[_0x2ab157[_0x1cb5fe(0x4f8)],'to'in _0x2ab157?_0x630b3e:undefined,_0x29bd13]));if(_0x29bd13)this[_0x1cb5fe(0x241)][_0x1cb5fe(0x322)][_0x1cb5fe(0x204)](_0x2ab157['env'],_0x2ab157['to']);return _0x16310e;}async['open'](){const _0x31a8ca=_0x17e567;if(this[_0x31a8ca(0x480)]===_0x44716b[_0x31a8ca(0x205)])return;if(this[_0x31a8ca(0x480)]!==_0x44716b[_0x31a8ca(0x6dc)])throw new _0x126a32(_0x31a8ca(0x372),'INVALID_STATE',{'state':this['state']});this[_0x31a8ca(0x480)]=_0x44716b[_0x31a8ca(0x5b5)],this['_bootLog']=[];try{try{await this[_0x31a8ca(0x36b)](),await this[_0x31a8ca(0x3d3)](()=>this[_0x31a8ca(0x22e)][_0x31a8ca(0x6bb)]());}catch(_0x583fdb){throw _0x4240b8(_0x583fdb);}}catch(_0x307cd1){this[_0x31a8ca(0x480)]=_0x44716b[_0x31a8ca(0x609)],this['_bootLog']=null,this['_teardownNative']();throw _0x307cd1;}this[_0x31a8ca(0x489)]=!![],this[_0x31a8ca(0x480)]=_0x44716b['STARTED'];try{this[_0x31a8ca(0x5a1)]('db',null,_0x31a8ca(0x318),[this['plugins'][_0x31a8ca(0x5c1)][_0x31a8ca(0x642)](_0x283309=>_0x283309[_0x31a8ca(0x796)]?.[_0x31a8ca(0x686)])['filter'](Boolean)],![]),await this[_0x31a8ca(0x5ec)]['start']();}catch(_0x104f64){this[_0x31a8ca(0x480)]=_0x44716b[_0x31a8ca(0x337)];try{this[_0x31a8ca(0x22e)][_0x31a8ca(0x5ca)]();}catch{}this[_0x31a8ca(0x480)]=_0x44716b[_0x31a8ca(0x609)],this[_0x31a8ca(0x489)]=![],this['_teardownNative']();throw _0x104f64;}for(const _0x1901b2 of this[_0x31a8ca(0x5a1)]('db',null,_0x31a8ca(0x58e),[],![]))if(!_0x1901b2[_0x31a8ca(0x212)]('~'))this['_ensureEnv'](_0x1901b2);try{if(this[_0x31a8ca(0x5a1)]('db',null,_0x31a8ca(0x4ab),['~log'],![])){this['_logEnv']=this[_0x31a8ca(0x7d6)](_0x31a8ca(0x5bd));const _0x38080b=new Set(this[_0x31a8ca(0x6d5)][_0x31a8ca(0x8b2)]);this[_0x31a8ca(0x8e6)]=this[_0x31a8ca(0x6d5)][_0x31a8ca(0x5d8)](this[_0x31a8ca(0x5dc)],this['id']);const _0x24fd85=[...this['log']['_sinks']]['find'](_0x28f5e6=>!_0x38080b[_0x31a8ca(0x396)](_0x28f5e6)),_0x7e543e=this[_0x31a8ca(0x5a1)]('db',null,_0x31a8ca(0x7c4),[],![]);for(const _0x53d0d0 of(this[_0x31a8ca(0x7db)]??[])[_0x31a8ca(0x848)](_0x7e543e))_0x24fd85?.(_0x53d0d0);}}catch{}this[_0x31a8ca(0x7db)]=null,this['_native']['setWake'](()=>this[_0x31a8ca(0x82c)][_0x31a8ca(0x2ca)]()),this[_0x31a8ca(0x82c)][_0x31a8ca(0x77b)]();}async[_0x17e567(0x1e4)](){const _0x4bc6e6=_0x17e567;return this[_0x4bc6e6(0x517)]('db',null,_0x4bc6e6(0x51d),[]);}async[_0x17e567(0x5ca)](){const _0x349fc1=_0x17e567;if(this[_0x349fc1(0x480)]===_0x44716b[_0x349fc1(0x609)])return;if(this[_0x349fc1(0x480)]!==_0x44716b['STARTED'])throw new _0x126a32(_0x349fc1(0x218),_0x349fc1(0x1df),{'state':this['state']});this[_0x349fc1(0x480)]=_0x44716b[_0x349fc1(0x337)],this['_isOpen']=![];let _0x3de4d2=null;if(this['http'][_0x349fc1(0x329)][_0x349fc1(0x788)])try{await this['http'][_0x349fc1(0x5ca)]();}catch(_0x29bca1){_0x3de4d2=_0x29bca1;}if(this[_0x349fc1(0x4c0)]){try{this[_0x349fc1(0x4c0)][_0x349fc1(0x722)](),this[_0x349fc1(0x4c0)][_0x349fc1(0x5f1)]();}catch{}this[_0x349fc1(0x4c0)]=null;}try{this[_0x349fc1(0x313)]?.[_0x349fc1(0x6bf)]?.();}catch{}try{await this['plugins']['stop']();}catch(_0x143ed3){_0x3de4d2=_0x143ed3;}for(const _0x1ca3ed of[...Map[_0x349fc1(0x7c6)][_0x349fc1(0x42a)][_0x349fc1(0x62a)](this[_0x349fc1(0x75a)])]){try{await _0x1ca3ed[_0x349fc1(0x882)][_0x349fc1(0x261)]();}catch{}try{await _0x1ca3ed['engines'][_0x349fc1(0x6bf)]();}catch{}}for(const _0x1b6bf4 of[()=>this[_0x349fc1(0x801)][_0x349fc1(0x6bf)](),()=>this[_0x349fc1(0x3de)][_0x349fc1(0x6bf)](),()=>this[_0x349fc1(0x658)]&&this[_0x349fc1(0x658)][_0x349fc1(0x6bf)]?.()]){try{await _0x1b6bf4();}catch{}}const _0x2745c6=this[_0x349fc1(0x1cc)]['shutdownTimeout']??0x7530,_0x2adfe4=[];for(const _0x5f32fa of[...Map['prototype'][_0x349fc1(0x42a)]['call'](this[_0x349fc1(0x75a)])]){if(_0x5f32fa['queue']?.[_0x349fc1(0x20a)]?.[_0x349fc1(0x4ff)]>0x0)_0x2adfe4[_0x349fc1(0x27f)](_0x5f32fa[_0x349fc1(0x2c1)][_0x349fc1(0x261)](_0x2745c6));}if(_0x2adfe4['length']>0x0)await Promise[_0x349fc1(0x6a1)](_0x2adfe4);try{this['_detachLogSink']?.();}catch{}this[_0x349fc1(0x8e6)]=null;try{await this[_0x349fc1(0x7de)]['drain']();}catch{}this[_0x349fc1(0x82c)][_0x349fc1(0x6bf)]();try{await this[_0x349fc1(0x3d3)](()=>this[_0x349fc1(0x22e)][_0x349fc1(0x5ca)]());}catch(_0x2511b0){_0x3de4d2=_0x3de4d2||_0x4240b8(_0x2511b0);}this[_0x349fc1(0x480)]=_0x44716b[_0x349fc1(0x609)],this['_teardownNative'](),Map[_0x349fc1(0x7c6)][_0x349fc1(0x6fa)][_0x349fc1(0x62a)](this['_envs']);if(_0x3de4d2)throw _0x3de4d2;}[_0x17e567(0x320)](){const _0x323075=_0x17e567;this[_0x323075(0x82c)][_0x323075(0x6bf)]();try{this[_0x323075(0x22e)][_0x323075(0x31e)](null);}catch{}try{this[_0x323075(0x22e)][_0x323075(0x491)]();}catch{}this[_0x323075(0x5e3)]=null,this[_0x323075(0x267)]=null,this['_tids']=null,_0x568cd6[_0x323075(0x32b)](this[_0x323075(0x306)]),_0x568cd6[_0x323075(0x50b)](this),_0x272b0c[_0x323075(0x46b)](this[_0x323075(0x697)]);if(_0x568cd6[_0x323075(0x3a6)](this)){const _0x51c646=[..._0x272b0c['values']()][_0x323075(0x446)]();if(_0x51c646)_0x568cd6[_0x323075(0x59c)](()=>_0x51c646[_0x323075(0x82c)][_0x323075(0x2ca)](),_0x51c646);else _0x568cd6[_0x323075(0x59c)](()=>{},null);}}get['id'](){return this['_call']('db',null,'id',[],![]);}[_0x17e567(0x208)](_0x46d92a){const _0x3d843e=_0x17e567;return this[_0x3d843e(0x4f8)](_0x3d843e(0x6ab))[_0x3d843e(0x208)](_0x46d92a);}get[_0x17e567(0x388)](){const _0x58a9e9=_0x17e567;return this[_0x58a9e9(0x760)]['get'](_0x58a9e9(0x26d));}get['_nodePrivateKey'](){const _0x44116c=_0x17e567;return this[_0x44116c(0x801)][_0x44116c(0x1c1)];}get['_nodePublicKey'](){const _0x3c241e=_0x17e567;return this[_0x3c241e(0x801)][_0x3c241e(0x83f)];}get['_subsV2'](){const _0x3833ac=_0x17e567;if(!this[_0x3833ac(0x489)]||!this['_call']('db',null,'subsBuilt',[],![]))return undefined;if(!this['_subsV2Obj']){const _0x3fd59a=requireOkdbSubscriptionsStore(),_0xcaec6c=new _0x3fd59a(this,this[_0x3833ac(0x1cc)]&&this[_0x3833ac(0x1cc)][_0x3833ac(0x758)]);_0xcaec6c[_0x3833ac(0x7dd)]=this['env'](_0x3833ac(0x4c8));const {compileFilter:_0x210177}=requireOkdbQueryFilter(),_0x2e1f23=(_0x1cfcb4,_0x8e697d)=>{if(_0x1cfcb4==null)return![];try{return _0x210177(_0x1cfcb4)(_0x8e697d);}catch{return![];}};this['_subsV2Obj']={'store':_0xcaec6c,'router':{'_matches':_0x2e1f23}};}return this[_0x3833ac(0x597)];}get[_0x17e567(0x1fe)](){const _0x20e332=_0x17e567;return this[_0x20e332(0x209)];}get[_0x17e567(0x4d1)](){const _0x19c60f=_0x17e567;return this['_call']('db',null,_0x19c60f(0x4d1),[],![]);}get[_0x17e567(0x209)](){const _0x297906=_0x17e567;return{...this[_0x297906(0x5a1)]('db',null,_0x297906(0x209),[],![])};}get['version'](){const _0x57fd5d=_0x17e567;return require$$29[_0x57fd5d(0x782)];}get['quarantinedEnvs'](){const _0x19d2b0=_0x17e567;return this[_0x19d2b0(0x5a1)]('db',null,'quarantined',[],![]);}get[_0x17e567(0x1f9)](){const _0x488fd4=_0x17e567;return this[_0x488fd4(0x5a1)]('db',null,_0x488fd4(0x1f9),[],![]);}[_0x17e567(0x8ba)](){const _0x1c9911=_0x17e567;return this[_0x1c9911(0x5a1)]('db',null,'resolvedOptions',[],![]);}[_0x17e567(0x2ea)](){const _0x2fd072=_0x17e567;return this[_0x2fd072(0x5a1)]('db',null,_0x2fd072(0x2ea),[],![]);}async['setProcessingConfig'](_0x38dd2a){const _0x40a21d=_0x17e567;this[_0x40a21d(0x2d0)](),this[_0x40a21d(0x5a1)]('db',null,_0x40a21d(0x615),[_0x38dd2a],![]);}[_0x17e567(0x326)](){const _0x282e9a=_0x17e567,_0x4b9ad5=Date[_0x282e9a(0x3d4)]();if(this['_pressure']&&_0x4b9ad5-this[_0x282e9a(0x2f3)]['at']<0xfa)return this[_0x282e9a(0x2f3)]['value'];const _0x24eb57=this[_0x282e9a(0x5a1)]('db',null,_0x282e9a(0x326),[],![]);return this[_0x282e9a(0x2f3)]={'at':_0x4b9ad5,'value':_0x24eb57},_0x24eb57;}[_0x17e567(0x2d0)](){const _0x46396f=_0x17e567;if(!this[_0x46396f(0x489)])throw new _0x126a32(_0x46396f(0x218),_0x46396f(0x1df),{'state':this[_0x46396f(0x480)]});}get[_0x17e567(0x279)](){const _0x111425=_0x17e567;if(this[_0x111425(0x480)]===_0x44716b[_0x111425(0x609)]||!this[_0x111425(0x489)])return null;if(this[_0x111425(0x5a1)]('db',null,'busState',[],![])==null)return null;if(!this[_0x111425(0x482)]){const _0x49efea=this;this[_0x111425(0x482)]={get 'state'(){const _0x321af7=_0x111425;return _0x49efea[_0x321af7(0x5a1)]('db',null,_0x321af7(0x8b7),[],![]);},get 'magic'(){const _0x1b930d=_0x111425;return Buffer[_0x1b930d(0x51b)](_0x1b930d(0x4ce)+_0x49efea['id']);},get 'isRunning'(){const _0x49ee95=_0x111425;return _0x49efea['_call']('db',null,_0x49ee95(0x8b7),[],![])==='started';},'emit'(_0xdc8276,_0x4422fc=''){const _0x2ad176=_0x111425;_0x49efea['_call']('db',null,_0x2ad176(0x20e),[_0xdc8276,String(_0x4422fc)],![]);}};}return this[_0x111425(0x482)];}[_0x17e567(0x2fa)](_0xe68967,_0x533d2e){const _0x29957b=_0x17e567;this[_0x29957b(0x279)]?.[_0x29957b(0x599)](_0x29957b(0x7b0),JSON[_0x29957b(0x754)]({'kind':_0x29957b(0x775),'scope':_0xe68967,'key':_0x533d2e}));}get[_0x17e567(0x50e)](){const _0x1ef6c6=_0x17e567;return this[_0x1ef6c6(0x5c7)]||(this['_locks']=new(requireLock())[(_0x1ef6c6(0x23d))](this,_0x1ef6c6(0x87d),_0x1ef6c6(0x763)));}get['_rootDb'](){const _0x40b100=_0x17e567;return this[_0x40b100(0x85c)]?this['_systemEnv']['db']:undefined;}get[_0x17e567(0x507)](){const _0x4ff10d=_0x17e567,_0x1f092e=this[_0x4ff10d(0x85c)]?.['processor'];if(!_0x1f092e)return null;const _0x1388df=_0x1f092e[_0x4ff10d(0x328)]()[_0x4ff10d(0x24c)](_0x4176f6=>_0x4176f6[_0x4ff10d(0x5c3)]?.[_0x4ff10d(0x686)]===_0x4ff10d(0x56d));return _0x1388df?_0x1f092e[_0x4ff10d(0x2df)](_0x1388df['id'],_0x1388df['cursorKey']):null;}get[_0x17e567(0x85c)](){const _0x22246a=_0x17e567;return this['_isOpen']?this[_0x22246a(0x75a)][_0x22246a(0x292)]('~system'):undefined;}[_0x17e567(0x7d6)](_0x5bdc48){const _0x3f0d1b=_0x17e567;let _0x2e1e74=Map[_0x3f0d1b(0x7c6)][_0x3f0d1b(0x292)][_0x3f0d1b(0x62a)](this['_envs'],_0x5bdc48);if(!_0x2e1e74){_0x2e1e74=new _0x14b26f(this,_0x5bdc48),Map[_0x3f0d1b(0x7c6)]['set'][_0x3f0d1b(0x62a)](this[_0x3f0d1b(0x75a)],_0x5bdc48,_0x2e1e74);if(_0x5bdc48===_0x3f0d1b(0x6ab))this[_0x3f0d1b(0x6aa)]=_0x2e1e74;}return _0x2e1e74;}[_0x17e567(0x4f8)](_0x3afa5d='default'){const _0x4818c1=_0x17e567,_0x1def23=this[_0x4818c1(0x75a)][_0x4818c1(0x292)](_0x3afa5d);if(_0x1def23)return _0x1def23;if(this['_isOpen']&&this[_0x4818c1(0x5a1)]('db',null,'hasEnv',[_0x3afa5d],![]))return this['_ensureEnv'](_0x3afa5d);throw new _0x126a32('Environment\x20\x22'+_0x3afa5d+_0x4818c1(0x794),_0x4818c1(0x436));}get[_0x17e567(0x6ab)](){const _0x2f321b=_0x17e567;return this[_0x2f321b(0x4f8)](_0x2f321b(0x6ab));}get['_defaultEnv'](){const _0x5d01ee=_0x17e567;return this[_0x5d01ee(0x75a)][_0x5d01ee(0x292)](_0x5d01ee(0x6ab))??this[_0x5d01ee(0x6aa)];}get['files'](){const _0x143202=_0x17e567;return this[_0x143202(0x3ee)][_0x143202(0x1c3)];}get[_0x17e567(0x2c1)](){const _0x1a7c4b=_0x17e567;return this[_0x1a7c4b(0x3ee)][_0x1a7c4b(0x2c1)];}[_0x17e567(0x467)](_0x102216){const _0x6957a0=_0x17e567;if(!this[_0x6957a0(0x489)])return null;return this[_0x6957a0(0x5a1)]('db',null,_0x6957a0(0x771),[_0x102216],![])?{'ref'(){},'unref'(){}}:null;}get[_0x17e567(0x58a)](){const _0x2c44bc=_0x17e567;return this[_0x2c44bc(0x467)](_0x2c44bc(0x49d));}['_reconcileDesired'](){const _0x41271f=_0x17e567;return this[_0x41271f(0x5a1)]('db',null,_0x41271f(0x2bd),[],!![]);}get[_0x17e567(0x22d)](){const _0x9b5b85=_0x17e567;return this[_0x9b5b85(0x467)](_0x9b5b85(0x573));}get[_0x17e567(0x2d6)](){const _0x18f0b7=_0x17e567;return this[_0x18f0b7(0x467)](_0x18f0b7(0x7fb));}get[_0x17e567(0x537)](){const _0x8b1c56=_0x17e567;return this['env']('default')[_0x8b1c56(0x537)];}get[_0x17e567(0x1e3)](){const _0xba0932=_0x17e567;throw new _0x126a32(_0xba0932(0x38f),_0xba0932(0x2d5));}get[_0x17e567(0x882)](){const _0x1415ef=_0x17e567;return this[_0x1415ef(0x3ee)]['processor'];}get['views'](){const _0x1d2efd=_0x17e567;return this[_0x1d2efd(0x3ee)][_0x1d2efd(0x59a)];}async[_0x17e567(0x4dc)](_0x3c6b3e,_0x182f9e={}){const _0x1060ba=_0x17e567;this[_0x1060ba(0x2d0)]();if(_0x182f9e&&typeof _0x182f9e[_0x1060ba(0x5d2)]===_0x1060ba(0x484)){const _0x221e30=_0x182f9e[_0x1060ba(0x5d2)];this[_0x1060ba(0x8ca)](_0x3c6b3e,await _0x221e30(_0x3c6b3e),!![]),this[_0x1060ba(0x241)]['envs'][_0x1060ba(0x204)](_0x3c6b3e,_0x221e30),_0x182f9e={..._0x182f9e,'encryptionKey':!![]};}return this[_0x1060ba(0x5a1)]('db',null,_0x1060ba(0x4dc),[_0x3c6b3e,_0x182f9e]),this[_0x1060ba(0x7d6)](_0x3c6b3e);}async[_0x17e567(0x424)](_0x3f10d7){const _0x37025a=_0x17e567;if(!this[_0x37025a(0x489)])throw new _0x126a32(_0x37025a(0x762)+_0x3f10d7+_0x37025a(0x2ed),_0x37025a(0x1df));return this[_0x37025a(0x5a1)]('db',null,_0x37025a(0x424),[_0x3f10d7]),this[_0x37025a(0x7d6)](_0x3f10d7);}get[_0x17e567(0x648)](){const _0x3a2253=_0x17e567;if(!this[_0x3a2253(0x4c0)]&&this[_0x3a2253(0x489)]){const _0x383289=requireOkdbRelay(),_0x194384=new _0x383289(this,this[_0x3a2253(0x1cc)]?.[_0x3a2253(0x8ed)]?.['relay']??{});_0x194384[_0x3a2253(0x4d3)](),_0x194384[_0x3a2253(0x834)]=!![],this[_0x3a2253(0x4c0)]=_0x194384;}return this[_0x3a2253(0x4c0)]??null;}set[_0x17e567(0x648)](_0x405325){const _0x148c62=_0x17e567;this[_0x148c62(0x4c0)]=_0x405325;}get[_0x17e567(0x365)](){const _0x3a3479=_0x17e567;let _0x506cd9=0x0;if(this[_0x3a3479(0x489)])for(const [_0x405d2e]of Map[_0x3a3479(0x7c6)]['entries']['call'](this[_0x3a3479(0x75a)])){try{_0x506cd9+=this[_0x3a3479(0x5a1)](_0x3a3479(0x8a8),_0x405d2e,_0x3a3479(0x37f),[],![])||0x0;}catch{}}return{'total':_0x506cd9,'maxObserved':_0x506cd9>0x0?0x1:0x0,'inFlight':0x0};}async[_0x17e567(0x523)](_0x4f09b7){const _0x1dd5a7=_0x17e567,_0x4ad946=this[_0x1dd5a7(0x75a)][_0x1dd5a7(0x292)](_0x4f09b7);if(_0x4ad946)return _0x4ad946;if(!this['_call']('db',null,_0x1dd5a7(0x4ab),[_0x4f09b7],![]))throw new Error(_0x1dd5a7(0x406)+_0x4f09b7+'\x22\x20not\x20found\x20in\x20~envs');return this[_0x1dd5a7(0x424)](_0x4f09b7);}async[_0x17e567(0x47b)](_0x4f5d21){const _0x51bca1=_0x17e567,_0x688a98=this[_0x51bca1(0x5a1)]('db',null,_0x51bca1(0x211),[_0x4f5d21]);return this['_envs'][_0x51bca1(0x46b)](_0x4f5d21),_0x688a98;}async[_0x17e567(0x25b)](_0x1e1e52,_0xd6717b={}){const _0x58357a=_0x17e567;this[_0x58357a(0x2d0)]();const _0x390735=this[_0x58357a(0x5a1)]('db',null,_0x58357a(0x25b),[_0x1e1e52,_0xd6717b]);return this[_0x58357a(0x75a)][_0x58357a(0x46b)](_0x1e1e52),_0x390735;}static get[_0x17e567(0x37e)](){const _0x301b3c=_0x17e567;return _0x4d0ba0[_0x301b3c(0x37e)];}static get[_0x17e567(0x68a)](){const _0x1b8df8=_0x17e567;return _0x4d0ba0[_0x1b8df8(0x68a)];}static get['_OPTION_HINTS'](){const _0x949dcc=_0x17e567;return _0x4d0ba0[_0x949dcc(0x6c1)];}static async[_0x17e567(0x743)](_0x19a9e5,_0x184c28){return _0x1eb782('db','clone',[_0x19a9e5,_0x184c28]);}static[_0x17e567(0x53e)](_0x5865cb){return _0x1eb782('db','reidentify',[_0x5865cb]);}static['registerBucketProjection'](_0x1376d2,_0x3c1b8f){const _0x15429c=_0x17e567;_0x1eb782(_0x15429c(0x59a),_0x15429c(0x386),[_0x1376d2,_0x3c1b8f]);}static['registerViewReducer'](_0xee8af9,_0x547221){const _0xf46f7d=_0x17e567;_0x1eb782(_0xf46f7d(0x59a),'registerViewReducer',[_0xee8af9,_0x547221]);}static[_0x17e567(0x465)](){}[_0x17e567(0x575)](_0x1bf4da,_0x23ad9c){const _0x3b3ea5=_0x17e567;return require$$16[_0x3b3ea5(0x6df)](_0x1bf4da,_0x23ad9c);}}_0x7646a2['HIGH_SENTINEL']=_0x50578d,Object[_0x17e567(0x43a)](_0x7646a2,_0x17e567(0x1c9),{'get'(){const _0x165c24=_0x17e567;return _0x7646a2[_0x165c24(0x6c7)]||(_0x7646a2[_0x165c24(0x6c7)]=new Set());},'set'(_0x14ee8d){const _0x411db1=_0x17e567;_0x7646a2[_0x411db1(0x6c7)]=_0x14ee8d;try{_0x1eb782('db','resetUnknownOptionsWarned',[]);}catch{}},'configurable':!![]});for(const _0x2a7ff3 of[_0x17e567(0x7b5),_0x17e567(0x592),_0x17e567(0x1dd),_0x17e567(0x739),_0x17e567(0x1c8),'create','remove',_0x17e567(0x292),_0x17e567(0x2d2),_0x17e567(0x408),_0x17e567(0x433),_0x17e567(0x73d),_0x17e567(0x541),'getCount',_0x17e567(0x4bb),_0x17e567(0x634),_0x17e567(0x657),_0x17e567(0x87c),_0x17e567(0x5e7),'geoQuery',_0x17e567(0x726),_0x17e567(0x1ba),_0x17e567(0x353),_0x17e567(0x50d),_0x17e567(0x78d),_0x17e567(0x512),_0x17e567(0x3bf),_0x17e567(0x488),_0x17e567(0x259),'dropIndex',_0x17e567(0x8ce),_0x17e567(0x7e2),_0x17e567(0x32d),_0x17e567(0x610),'hasUniqueViolations',_0x17e567(0x6c9),_0x17e567(0x73c),'getChanges','setTTL',_0x17e567(0x31d),'clearTTL','sweepExpiredTTL',_0x17e567(0x25a),'ttlStats',_0x17e567(0x6e7),_0x17e567(0x4f1),_0x17e567(0x613),'count','range','now']){_0x7646a2[_0x17e567(0x7c6)][_0x2a7ff3]=function(..._0x3e239f){const _0x32d95d=_0x17e567,_0x2cf846=this['env'](_0x32d95d(0x6ab));return _0x2cf846[_0x2a7ff3](..._0x3e239f);};}function _0x5e3230(_0x3b062c){const _0x35ed52=_0x17e567,_0x17bf01=_0x4f8782=>()=>{const _0x1c6d73=_0x2fc2;throw new Error(_0x1c6d73(0x864)+_0x4f8782+_0x1c6d73(0x355));};return{'process':_0x17bf01(_0x35ed52(0x8ef)),'processRest':_0x17bf01(_0x35ed52(0x254)),'processEverything':_0x17bf01('processEverything()'),async 'start'(){const _0x21e1b4=_0x35ed52;return _0x3b062c[_0x21e1b4(0x5a1)]('db',null,_0x21e1b4(0x423),[]);},async 'stop'(){const _0x4fb462=_0x35ed52;return _0x3b062c['_call']('db',null,_0x4fb462(0x79e),[]);},'status'(){const _0x2ad6ce=_0x35ed52;return _0x3b062c[_0x2ad6ce(0x5a1)]('db',null,_0x2ad6ce(0x47a),[],![]);},get 'participating'(){const _0x2f6b99=_0x35ed52;return _0x3b062c[_0x2f6b99(0x5a1)]('db',null,_0x2f6b99(0x836),[],![]);},get '_participate'(){const _0x548f34=_0x35ed52;return _0x3b062c[_0x548f34(0x5a1)]('db',null,_0x548f34(0x836),[],![]);}};}function _0x1eb782(_0x469f4e,_0x752668,_0x1eab78){_0x19fcce();try{return _0x3c775f()['callStatic'](_0x469f4e,_0x752668,_0x1eab78);}catch(_0x41c275){throw _0x4240b8(_0x41c275);}}_0x52e65e[_0x17e567(0x57d)]=_0x7646a2,_0x52e65e[_0x17e567(0x57d)][_0x17e567(0x5a2)]=_0x1eb782,_0x52e65e['exports'][_0x17e567(0x401)]=_0x7646a2,_0x52e65e[_0x17e567(0x57d)][_0x17e567(0x69d)]=_0x50578d,_0x52e65e[_0x17e567(0x57d)][_0x17e567(0x6ab)]=_0x7646a2,Object[_0x17e567(0x43a)](_0x52e65e[_0x17e567(0x57d)],_0x17e567(0x867),{'get':()=>require$$1$1[_0x17e567(0x1c7)]?.()??null,'enumerable':![],'configurable':!![]});}(lib),lib[_0x3d64fc(0x57d)];}var libExports=requireLib(),index=getDefaultExportFromCjs(libExports);module['exports']=index;