@kedem/okdb 3.1.3 → 3.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/okdb-native.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x5c70f8=_0x52a3;(function(_0x36c49c,_0x2e5b23){const _0x45e419=_0x52a3,_0x1411b9=_0x36c49c();while(!![]){try{const _0x3b3669=-parseInt(_0x45e419(0x2ae))/0x1*(parseInt(_0x45e419(0x44c))/0x2)+-parseInt(_0x45e419(0x5ef))/0x3*(parseInt(_0x45e419(0x798))/0x4)+-parseInt(_0x45e419(0x1f0))/0x5*(-parseInt(_0x45e419(0x570))/0x6)+-parseInt(_0x45e419(0x68b))/0x7+parseInt(_0x45e419(0x491))/0x8+parseInt(_0x45e419(0x6d4))/0x9+parseInt(_0x45e419(0x42b))/0xa*(-parseInt(_0x45e419(0x25d))/0xb);if(_0x3b3669===_0x2e5b23)break;else _0x1411b9['push'](_0x1411b9['shift']());}catch(_0xcc36cd){_0x1411b9['push'](_0x1411b9['shift']());}}}(_0x273d,0x86640));function _0x52a3(_0x47e30d,_0x2cec29){_0x47e30d=_0x47e30d-0x1bb;const _0x273d01=_0x273d();let _0x52a32e=_0x273d01[_0x47e30d];return _0x52a32e;}var require$$0$6=require('node:events'),require$$1$1=require(_0x5c70f8(0x89c)),require$$0=require('node:fs'),require$$1=require(_0x5c70f8(0x6b3)),require$$4=require(_0x5c70f8(0x3de)),require$$0$2=require(_0x5c70f8(0x4c5)),require$$0$1=require(_0x5c70f8(0x1d1)),require$$16=require(_0x5c70f8(0x3f6)),require$$0$3=require(_0x5c70f8(0x1d4)),require$$2=require(_0x5c70f8(0x45e)),require$$18=require(_0x5c70f8(0x40a)),require$$0$4=require('crypto'),require$$0$5=require('sift');function getDefaultExportFromCjs(_0x37fccc){const _0x12ae10=_0x5c70f8;return _0x37fccc&&_0x37fccc[_0x12ae10(0x303)]&&Object[_0x12ae10(0x511)]['hasOwnProperty'][_0x12ae10(0x4d1)](_0x37fccc,'default')?_0x37fccc[_0x12ae10(0x2a6)]:_0x37fccc;}var lib={'exports':{}},okdbError,hasRequiredOkdbError;function requireOkdbError(){if(hasRequiredOkdbError)return okdbError;hasRequiredOkdbError=0x1;class _0x5c93c8 extends Error{constructor(_0x149765,_0x176fae,_0x480aca={}){const _0x5d5f5d=_0x52a3;super(_0x149765),this['name']=_0x5d5f5d(0x850),this[_0x5d5f5d(0x50e)]=_0x176fae,this[_0x5d5f5d(0x37e)]=_0x480aca,_0x480aca[_0x5d5f5d(0x62d)]&&(this[_0x5d5f5d(0x62d)]=_0x480aca[_0x5d5f5d(0x62d)]),Error[_0x5d5f5d(0x650)](this,this['constructor']);}}class _0x38c04c extends _0x5c93c8{constructor(_0x2a02b9,_0x563842,_0x4aef6c,_0x142cdc){const _0x4b500a=_0x52a3;super(_0x4b500a(0x446)+_0x2a02b9+'@'+_0x563842+_0x4b500a(0x3cb)+_0x4aef6c+_0x4b500a(0x4db)+_0x142cdc,_0x4b500a(0x721),{'type':_0x2a02b9,'key':_0x563842,'expectedVersion':_0x4aef6c,'actualVersion':_0x142cdc}),this[_0x4b500a(0x54b)]=_0x4b500a(0x7a1);}}class _0x28e960 extends _0x5c93c8{constructor(_0x2ef9ac,_0x27127d){const _0x5c52b8=_0x52a3;super(_0x2ef9ac+'@'+_0x27127d+_0x5c52b8(0x5d8),_0x5c52b8(0x3a2),{'type':_0x2ef9ac,'key':_0x27127d}),this[_0x5c52b8(0x54b)]=_0x5c52b8(0x83a);}}class _0x5b0242 extends _0x5c93c8{constructor(_0x4006d4,_0x582756){const _0x22e38e=_0x52a3;super(_0x4006d4+'@'+_0x582756+'\x20already\x20exists',_0x22e38e(0x218),{'type':_0x4006d4,'key':_0x582756}),this[_0x22e38e(0x54b)]=_0x22e38e(0x6ad);}}class _0x71effd extends _0x5c93c8{constructor(_0x2755b3,_0x3d69fe){const _0x1ffa2e=_0x52a3,_0x10ed10=typeof _0x3d69fe;super('Invalid\x20index\x20key\x20type\x20for\x20\x27'+_0x2755b3+_0x1ffa2e(0x84f)+_0x10ed10+_0x1ffa2e(0x31d)+_0x3d69fe,_0x1ffa2e(0x8b2),{'index':_0x2755b3,'key':_0x3d69fe,'keyType':_0x10ed10}),this[_0x1ffa2e(0x54b)]=_0x1ffa2e(0x2bd);}}class _0x17594f extends _0x5c93c8{constructor(_0x1db799){const _0x1e1504=_0x52a3,_0x35cb69=typeof _0x1db799;super(_0x1e1504(0x840)+_0x35cb69+_0x1e1504(0x507)+_0x1db799,'INVALID_PRIMARY_KEY',{'key':_0x1db799,'keyType':_0x35cb69}),this[_0x1e1504(0x54b)]=_0x1e1504(0x2be);}}class _0x153b81 extends _0x5c93c8{constructor(_0x5dd07f){const _0x16c8dc=_0x52a3;super('Type\x20\x27'+_0x5dd07f+_0x16c8dc(0x4a9),_0x16c8dc(0x1ca),{'type':_0x5dd07f}),this[_0x16c8dc(0x54b)]=_0x16c8dc(0x52b);}}class _0x4f0893 extends _0x5c93c8{constructor(_0x22eb07){const _0x1229e0=_0x52a3;super(_0x1229e0(0x7a0)+_0x22eb07+_0x1229e0(0x276),_0x1229e0(0x4a8),{'type':_0x22eb07}),this['name']='OKDBTypeAlreadyRegisteredError';}}class _0x3bba50 extends _0x5c93c8{constructor(_0x50138b,_0x161db0){const _0x42e070=_0x52a3;super(_0x42e070(0x7ce)+_0x161db0+'\x27\x20on\x20type\x20\x27'+_0x50138b+_0x42e070(0x4a9),_0x42e070(0x615),{'type':_0x50138b,'index':_0x161db0}),this[_0x42e070(0x54b)]=_0x42e070(0x4e5);}}class _0x32efd7 extends _0x5c93c8{constructor(_0x4407c9,_0x4dcab8){const _0x4e9ce2=_0x52a3;super(_0x4e9ce2(0x7ce)+_0x4dcab8+_0x4e9ce2(0x88f)+_0x4407c9+_0x4e9ce2(0x628),_0x4e9ce2(0x83e),{'type':_0x4407c9,'index':_0x4dcab8}),this[_0x4e9ce2(0x54b)]=_0x4e9ce2(0x268);}}class _0x56635a extends _0x5c93c8{constructor(_0x4a020d,_0x10b659={}){const _0x57d972=_0x52a3;super(_0x4a020d,'INVALID_VALUE',_0x10b659),this[_0x57d972(0x54b)]='OKDBInvalidValueError';}}class _0xdefeb0 extends _0x5c93c8{constructor(_0x37a7c7,_0x420eaa,_0x3f72cb,_0x3e2669,_0x23045a){const _0x3a1132=_0x52a3;super(_0x3a1132(0x70f)+_0x37a7c7+'@'+_0x420eaa+':\x20key\x20['+_0x3f72cb+']\x20already\x20maps\x20to\x20\x27'+_0x3e2669+_0x3a1132(0x448)+_0x23045a+'\x27',_0x3a1132(0x587),{'type':_0x37a7c7,'index':_0x420eaa,'indexKey':_0x3f72cb,'existingKey':_0x3e2669,'conflictingKey':_0x23045a}),this[_0x3a1132(0x54b)]=_0x3a1132(0x485);}}class _0x1ceb27 extends _0x5c93c8{constructor(_0x342be7,_0x3ee298,_0x43c926){const _0x3b9cad=_0x52a3;super(_0x3b9cad(0x1df)+_0x342be7+'@'+_0x3ee298,'SCHEMA_VALIDATION_FAILED',{'type':_0x342be7,'key':_0x3ee298,'errors':_0x43c926}),this[_0x3b9cad(0x54b)]=_0x3b9cad(0x231),this[_0x3b9cad(0x45d)]=_0x342be7,this[_0x3b9cad(0x82f)]=_0x3ee298,this[_0x3b9cad(0x22d)]=_0x43c926;}}class _0x506ba5 extends _0x5c93c8{constructor(_0x175f63,_0x10357c){const _0x1216e1=_0x52a3;super(_0x1216e1(0x8b5)+_0x175f63+':\x20'+_0x10357c[_0x1216e1(0x68a)]+_0x1216e1(0x86b),_0x1216e1(0x405),{'type':_0x175f63,'failures':_0x10357c}),this[_0x1216e1(0x54b)]=_0x1216e1(0x568),this['type']=_0x175f63,this[_0x1216e1(0x756)]=_0x10357c;}}class _0x1ecf73 extends _0x5c93c8{constructor(_0x198103,_0x2fd860,_0x431a98,_0x48ec8a,_0x45b045){const _0x22aa80=_0x52a3;super(_0x22aa80(0x8cf)+_0x198103+'@'+_0x2fd860+'.'+_0x431a98+'\x20references\x20'+_0x48ec8a+'@'+_0x45b045+'\x20which\x20does\x20not\x20exist',_0x22aa80(0x871),{'sourceType':_0x198103,'sourceKey':_0x2fd860,'fieldPath':_0x431a98,'targetType':_0x48ec8a,'targetKey':_0x45b045}),this[_0x22aa80(0x54b)]=_0x22aa80(0x80c),this[_0x22aa80(0x816)]=_0x198103,this[_0x22aa80(0x713)]=_0x2fd860,this[_0x22aa80(0x5e7)]=_0x431a98,this['targetType']=_0x48ec8a,this[_0x22aa80(0x5f7)]=_0x45b045;}}class _0x45db47 extends _0x5c93c8{constructor(_0x325afd,_0x565029,_0x280f91){const _0x1c1faf=_0x52a3;super(_0x1c1faf(0x7ea)+_0x325afd+'@'+_0x565029+':\x20'+_0x280f91[_0x1c1faf(0x68a)]+'\x20document(s)\x20reference\x20it\x20with\x20onDelete:restrict',_0x1c1faf(0x79c),{'targetType':_0x325afd,'targetKey':_0x565029,'references':_0x280f91}),this[_0x1c1faf(0x54b)]=_0x1c1faf(0x639),this[_0x1c1faf(0x469)]=_0x325afd,this[_0x1c1faf(0x5f7)]=_0x565029,this['references']=_0x280f91;}}class _0x7a830d extends _0x5c93c8{constructor(_0x40032d,_0x5669f4,_0x3410c6){const _0x37818f=_0x52a3;super(_0x37818f(0x51c)+_0x5669f4+_0x37818f(0x471)+_0x40032d+_0x37818f(0x4e4)+_0x3410c6['map'](_0x430426=>_0x430426[_0x37818f(0x2a7)]+':'+_0x430426[_0x37818f(0x54b)])[_0x37818f(0x596)](',\x20'),_0x37818f(0x44a),{'type':_0x40032d,'index':_0x5669f4,'usedBy':_0x3410c6}),this[_0x37818f(0x54b)]=_0x37818f(0x5cd);}}return okdbError={'OKDBError':_0x5c93c8,'OKDBVersionMismatchError':_0x38c04c,'OKDBNotFoundError':_0x28e960,'OKDBAlreadyExistsError':_0x5b0242,'OKDBInvalidIndexKeyError':_0x71effd,'OKDBInvalidPrimaryKeyError':_0x17594f,'OKDBTypeNotRegisteredError':_0x153b81,'OKDBTypeAlreadyRegisteredError':_0x4f0893,'OKDBIndexNotRegisteredError':_0x3bba50,'OKDBIndexAlreadyRegisteredError':_0x32efd7,'OKDBInvalidValueError':_0x56635a,'OKDBUniqueConstraintError':_0xdefeb0,'OKDBSchemaValidationError':_0x1ceb27,'OKDBSchemaCollectionError':_0x506ba5,'OKDBForeignKeyError':_0x1ecf73,'OKDBForeignKeyDeleteError':_0x45db47,'OKDBIndexHasConsumersError':_0x7a830d},okdbError;}var errors,hasRequiredErrors;function requireErrors(){const _0x4d2b29=_0x5c70f8;if(hasRequiredErrors)return errors;hasRequiredErrors=0x1;const _0x35aab8=requireOkdbError(),_0x43b802={'VERSION_MISMATCH':_0x35aab8[_0x4d2b29(0x7a1)],'NOT_FOUND':_0x35aab8[_0x4d2b29(0x83a)],'ALREADY_EXISTS':_0x35aab8[_0x4d2b29(0x6ad)],'INVALID_INDEX_KEY':_0x35aab8[_0x4d2b29(0x2bd)],'INVALID_PRIMARY_KEY':_0x35aab8[_0x4d2b29(0x2be)],'TYPE_NOT_REGISTERED':_0x35aab8['OKDBTypeNotRegisteredError'],'TYPE_ALREADY_REGISTERED':_0x35aab8[_0x4d2b29(0x460)],'INDEX_NOT_REGISTERED':_0x35aab8[_0x4d2b29(0x4e5)],'INDEX_ALREADY_REGISTERED':_0x35aab8[_0x4d2b29(0x268)],'INVALID_VALUE':_0x35aab8[_0x4d2b29(0x70c)],'UNIQUE_CONSTRAINT':_0x35aab8[_0x4d2b29(0x485)],'SCHEMA_VALIDATION_FAILED':_0x35aab8[_0x4d2b29(0x231)],'SCHEMA_COLLECTION_INVALID':_0x35aab8[_0x4d2b29(0x568)],'FOREIGN_KEY_VIOLATION':_0x35aab8[_0x4d2b29(0x80c)],'FOREIGN_KEY_DELETE_RESTRICTED':_0x35aab8['OKDBForeignKeyDeleteError'],'INDEX_HAS_CONSUMERS':_0x35aab8[_0x4d2b29(0x5cd)]};class _0x55ad90 extends _0x35aab8[_0x4d2b29(0x850)]{constructor(_0x429c6d,_0x5eeebb){const _0x396fb7=_0x4d2b29;super(_0x429c6d+_0x396fb7(0x2e7)+(_0x5eeebb?'\x20('+_0x5eeebb+')':''),'NOT_IMPLEMENTED_NATIVE',{'feature':_0x429c6d}),this[_0x396fb7(0x54b)]=_0x396fb7(0x339);}}function _0x6e268b(_0x7ccff6){const _0x1f663f=_0x4d2b29;if(!_0x7ccff6||typeof _0x7ccff6!==_0x1f663f(0x559)||!_0x7ccff6[_0x1f663f(0x263)])return _0x7ccff6;delete _0x7ccff6[_0x1f663f(0x263)];const _0x9e4bf9=_0x7ccff6[_0x1f663f(0x50e)];if(_0x9e4bf9===_0x1f663f(0x71d)||_0x9e4bf9===_0x1f663f(0x375)||_0x9e4bf9===_0x1f663f(0x2af)){const _0x1260ae=_0x9e4bf9===_0x1f663f(0x375)?TypeError[_0x1f663f(0x511)]:_0x9e4bf9===_0x1f663f(0x2af)?RangeError[_0x1f663f(0x511)]:Error['prototype'];Object[_0x1f663f(0x28b)](_0x7ccff6,_0x1260ae),_0x7ccff6[_0x1f663f(0x54b)]=_0x9e4bf9;if(_0x7ccff6[_0x1f663f(0x37e)]&&_0x7ccff6[_0x1f663f(0x37e)]['status']!==undefined)_0x7ccff6[_0x1f663f(0x717)]=_0x7ccff6[_0x1f663f(0x37e)][_0x1f663f(0x717)];return delete _0x7ccff6['code'],delete _0x7ccff6[_0x1f663f(0x37e)],_0x7ccff6;}const _0x323a8f=_0x43b802[_0x9e4bf9];Object[_0x1f663f(0x28b)](_0x7ccff6,(_0x323a8f||_0x35aab8['OKDBError'])['prototype']),_0x7ccff6['name']=_0x323a8f?_0x323a8f[_0x1f663f(0x54b)][_0x1f663f(0x306)](/^OKDB/,_0x1f663f(0x60e)):_0x1f663f(0x850);const _0x4528a3=_0x7ccff6['details']||{};_0x9e4bf9===_0x1f663f(0x8e1)&&(_0x7ccff6[_0x1f663f(0x45d)]=_0x4528a3[_0x1f663f(0x45d)],_0x7ccff6[_0x1f663f(0x82f)]=_0x4528a3[_0x1f663f(0x82f)],_0x7ccff6[_0x1f663f(0x22d)]=_0x4528a3[_0x1f663f(0x22d)]);_0x9e4bf9===_0x1f663f(0x405)&&(_0x7ccff6[_0x1f663f(0x45d)]=_0x4528a3['type'],_0x7ccff6[_0x1f663f(0x756)]=_0x4528a3[_0x1f663f(0x756)]);if(_0x9e4bf9===_0x1f663f(0x871)){for(const _0x11f683 of[_0x1f663f(0x816),_0x1f663f(0x713),_0x1f663f(0x5e7),_0x1f663f(0x469),_0x1f663f(0x5f7)])_0x7ccff6[_0x11f683]=_0x4528a3[_0x11f683];}if(_0x9e4bf9==='FOREIGN_KEY_DELETE_RESTRICTED'){for(const _0x2ea9a8 of[_0x1f663f(0x469),_0x1f663f(0x5f7),_0x1f663f(0x779)])_0x7ccff6[_0x2ea9a8]=_0x4528a3[_0x2ea9a8];}if(_0x4528a3[_0x1f663f(0x62d)])_0x7ccff6[_0x1f663f(0x62d)]=_0x4528a3[_0x1f663f(0x62d)];if(_0x4528a3['status']!==undefined)_0x7ccff6['status']=_0x4528a3[_0x1f663f(0x717)];if(_0x4528a3[_0x1f663f(0x8b8)]!==undefined)_0x7ccff6[_0x1f663f(0x8b8)]=_0x4528a3[_0x1f663f(0x8b8)];return _0x7ccff6;}function _0x396159(_0x58a964){const _0x14d484=_0x4d2b29;if(_0x58a964===undefined)return'undefined';if(_0x58a964===null)return _0x14d484(0x83b);if(typeof _0x58a964==='string')return _0x58a964?'string':_0x14d484(0x625);if(typeof _0x58a964==='function')return _0x14d484(0x640);if(typeof _0x58a964!==_0x14d484(0x559))return typeof _0x58a964;if(Array[_0x14d484(0x439)](_0x58a964))return _0x58a964[_0x14d484(0x68a)]?'array':'empty\x20array';if(_0x58a964 instanceof Date)return _0x14d484(0x8b1);if(_0x58a964 instanceof Map)return _0x14d484(0x26f);if(Buffer[_0x14d484(0x823)](_0x58a964))return _0x14d484(0x29c);return _0x14d484(0x559);}const _0x2aa532=(_0x39581d,_0x2d7a3a,_0x164ef6)=>new _0x35aab8[(_0x4d2b29(0x850))](_0x2d7a3a,_0x39581d,_0x164ef6),_0x33857e=(_0x22a18e,_0x2caa46,_0x593327)=>_0x2aa532(_0x4d2b29(0x2d6),_0x22a18e+_0x4d2b29(0x4d4)+_0x2caa46+_0x4d2b29(0x5e9)+_0x396159(_0x593327),{'argument':_0x22a18e,'expected':_0x2caa46,'got':_0x396159(_0x593327)}),_0x235ae4=(_0x3fbfd2,_0x134a0b)=>_0x2aa532(_0x4d2b29(0x854),_0x3fbfd2+'\x20must\x20be\x20a\x20non-empty\x20string;\x20got\x20'+_0x396159(_0x134a0b),{'argument':_0x3fbfd2,'expected':_0x4d2b29(0x44f),'got':_0x396159(_0x134a0b)}),_0x50e83e=(_0x83c59b,_0x19b9d9)=>_0x2aa532(_0x4d2b29(0x518),_0x83c59b+':\x20'+_0x19b9d9,{'argument':_0x83c59b,'problem':_0x19b9d9});function _0x50d9ad(_0x1ca0ce,_0x395636=_0x4d2b29(0x688)){const _0x4968ab=_0x4d2b29;if(_0x1ca0ce===undefined)return{};if(_0x1ca0ce===null)throw _0x50e83e(_0x395636,_0x4968ab(0x4d9));return _0x1ca0ce;}return errors={'reclass':_0x6e268b,'NotImplementedNative':_0x55ad90,'BY_CODE':_0x43b802,'describe':_0x396159,'invalidArgument':_0x33857e,'invalidTypeName':_0x235ae4,'invalidOptions':_0x50e83e,'optionsArg':_0x50d9ad,..._0x35aab8},errors;}var bridge_1,hasRequiredBridge;function requireBridge(){if(hasRequiredBridge)return bridge_1;hasRequiredBridge=0x1;const _0x20df6c=new Map(),_0x10cd79=new Map();let _0x4b814a=0x1;const _0x310966=new Map(),_0x17221a=new Map();let _0x39dd51=0x1;const _0xbffe1a=new Map();let _0x2ac138=0x1;const _0x4c3988=new Map();function _0x2dd26b(_0xea0ac6,_0x4b701f=null){const _0x5d5f38=_0x52a3,_0x57bb51=_0x2ac138++;_0xbffe1a[_0x5d5f38(0x63f)](_0x57bb51,_0xea0ac6);if(_0x4b701f)_0x4c3988[_0x5d5f38(0x63f)](_0x57bb51,_0x4b701f);return _0x57bb51;}function _0x2a450d(_0x14075e,_0x286491){const _0x47ac00=_0x52a3,_0x360457=_0xbffe1a[_0x47ac00(0x309)](_0x14075e),_0x18e24d=Array[_0x47ac00(0x511)][_0x47ac00(0x1f7)][_0x47ac00(0x4d1)](arguments,0x2),_0x57fd82=_0x932ea7=>_0x34e15a(_0x932ea7,_0x4c3988[_0x47ac00(0x309)](_0x14075e));let _0x246dfd=_0x18e24d;if(_0x286491==='start'||_0x286491==='stop'||_0x286491===_0x47ac00(0x752)||_0x286491===_0x47ac00(0x791)||_0x286491===_0x47ac00(0x859))_0x246dfd=[_0x57fd82(_0x18e24d[0x0])];else{if(_0x286491===_0x47ac00(0x5f4))_0x246dfd=[_0x18e24d[0x0],_0x18e24d[0x1],_0x57fd82(_0x18e24d[0x2])];else{if(_0x286491===_0x47ac00(0x203))_0x246dfd=[_0x57fd82(_0x18e24d[0x0])];}}let _0x1e8e0c=_0x360457[_0x286491](..._0x246dfd);if(_0x1e8e0c&&typeof _0x1e8e0c[_0x47ac00(0x801)]==='function')_0x1e8e0c=_0x10f279(_0x1e8e0c);if(_0x286491===_0x47ac00(0x45c)){const _0xe9e69f=_0x1e8e0c&&typeof _0x1e8e0c==='object'?_0x2dd26b(_0x1e8e0c):_0x2dd26b({});return{'$api':_0xe9e69f};}return _0x1e8e0c===undefined?null:_0x1e8e0c;}function _0x34e15a(_0x19bf25,_0x5cd375){const _0x3abdfc=_0x52a3;let _0x482333=_0x3cac00[_0x3abdfc(0x309)](_0x19bf25[_0x3abdfc(0x4df)]);const _0x59d00b=_0x482333&&_0x482333[_0x3abdfc(0x61e)]||_0x5cd375||_0x44f29d,_0x18830b=(_0x2eccb3,..._0x31bdae)=>_0x59d00b[_0x3abdfc(0x210)](_0x3abdfc(0x655),null,_0x2eccb3,[_0x19bf25['type'],_0x19bf25[_0x3abdfc(0x54b)],..._0x31bdae],!![]);return{'okdb':_0x59d00b,'key':_0x19bf25[_0x3abdfc(0x82f)],'type':_0x19bf25[_0x3abdfc(0x45d)],'name':_0x19bf25[_0x3abdfc(0x54b)],get 'storeEnv'(){const _0x282994=_0x3abdfc;if(!_0x482333&&_0x59d00b&&_0x59d00b[_0x282994(0x663)]&&_0x19bf25['storeEnvName'])_0x482333=_0x59d00b[_0x282994(0x612)]['get'](_0x19bf25[_0x282994(0x7b9)]);return _0x482333;},'storeEnvName':_0x19bf25[_0x3abdfc(0x7b9)],'config':_0x19bf25[_0x3abdfc(0x8cd)],'meta':_0x19bf25['meta'],'options':_0x19bf25[_0x3abdfc(0x688)],'emit':(_0x993862,_0x15f022)=>_0x18830b(_0x3abdfc(0x5a0),_0x993862,_0x15f022),'updateStatus':async(_0x55eaea,_0x3773be)=>_0x18830b(_0x3abdfc(0x82b),_0x55eaea,_0x3773be==null?null:String(_0x3773be&&_0x3773be[_0x3abdfc(0x211)]?_0x3773be[_0x3abdfc(0x211)]:_0x3773be)),'updateMeta':async _0x4ef232=>_0x18830b(_0x3abdfc(0x7e5),{'meta':_0x4ef232}),'updateConfig':async _0x1eb1e=>_0x18830b(_0x3abdfc(0x7e5),{'config':_0x1eb1e})};}function _0x51fd91(_0x23afde,_0x3a8242,_0x3196c9){const _0xd9b0c3=_0x52a3;if(_0x23afde===_0xd9b0c3(0x54a)){const _0xb0cf7d=_0x147e3a(_0x3a8242);let _0x29b0fa=_0xb0cf7d(_0x3196c9);if(_0x29b0fa&&typeof _0x29b0fa['then']==='function')_0x29b0fa=_0x10f279(_0x29b0fa);if(!_0x29b0fa||typeof _0x29b0fa[_0xd9b0c3(0x595)]!==_0xd9b0c3(0x640)){const {OKDBError:_0x5dd913}=requireErrors();throw new _0x5dd913(_0xd9b0c3(0x65d)+(_0x3196c9&&_0x3196c9[_0xd9b0c3(0x45d)])+_0xd9b0c3(0x206),'BAD_EMBEDDER_FACTORY');}return _0x29b0fa[_0xd9b0c3(0x263)]=_0xb0cf7d[_0xd9b0c3(0x263)],{'$id':_0x2dd26b(_0x29b0fa),'batch':typeof _0x29b0fa['embedBatch']===_0xd9b0c3(0x640)};}const _0x229298=_0xbffe1a[_0xd9b0c3(0x309)](_0x3a8242);if(_0x23afde===_0xd9b0c3(0x6b6))return _0xbffe1a[_0xd9b0c3(0x2cb)](_0x3a8242),_0x32d62b[_0xd9b0c3(0x2cb)](_0x3a8242),null;if(!_0x229298)throw new Error(_0xd9b0c3(0x435));if(typeof _0x229298[_0x23afde]!==_0xd9b0c3(0x640))return null;if(_0x23afde===_0xd9b0c3(0x595)||_0x23afde===_0xd9b0c3(0x515)){const _0x545f70=_0x23afde===_0xd9b0c3(0x515)?_0x36fd30(_0x3a8242,_0x229298,_0x3196c9):_0x176703(_0x3a8242,_0x229298,_0x23afde,_0x3196c9);return _0x23afde===_0xd9b0c3(0x595)?Array[_0xd9b0c3(0x48d)](_0x545f70):_0x545f70[_0xd9b0c3(0x35e)](_0x1a6a40=>Array[_0xd9b0c3(0x48d)](_0x1a6a40));}let _0x2507d6=_0x229298[_0x23afde]();if(_0x2507d6&&typeof _0x2507d6[_0xd9b0c3(0x801)]===_0xd9b0c3(0x640))_0x2507d6=_0x10f279(_0x2507d6);return _0x2507d6===undefined?null:_0x2507d6;}function _0xb5504(_0x2d89c1,_0x5fb90a,_0xb45eb0){const _0x3f5262=_0x52a3;if(_0x2d89c1===_0x3f5262(0x54a)){const _0x9b2a15=_0x147e3a(_0x5fb90a);let _0x16c9f8=_0x9b2a15(_0xb45eb0[_0x3f5262(0x8cd)]??{},{'dims':_0xb45eb0[_0x3f5262(0x647)],'dir':_0xb45eb0[_0x3f5262(0x8e4)]});if(_0x16c9f8&&typeof _0x16c9f8['then']===_0x3f5262(0x640))_0x16c9f8=_0x10f279(_0x16c9f8);for(const _0x3cab23 of[_0x3f5262(0x3bf),'add',_0x3f5262(0x504),_0x3f5262(0x40c),_0x3f5262(0x400)]){if(!_0x16c9f8||typeof _0x16c9f8[_0x3cab23]!=='function'){const {OKDBError:_0x452c16}=requireErrors();throw new _0x452c16(_0x3f5262(0x2ab)+_0x3cab23+'()','BAD_ALGORITHM_FACTORY',{'method':_0x3cab23});}}return{'$id':_0x2dd26b(_0x16c9f8)};}const _0x4f4501=_0xbffe1a[_0x3f5262(0x309)](_0x5fb90a);if(_0x2d89c1===_0x3f5262(0x6b6))return _0xbffe1a[_0x3f5262(0x2cb)](_0x5fb90a),null;if(!_0x4f4501)throw new Error('algorithm\x20is\x20gone');const _0x49441f=_0x49186d=>_0x49186d?_0x49186d[_0x3f5262(0x35e)](_0x48c70c=>({'key':_0x48c70c[_0x3f5262(0x82f)],'vector':Float32Array['from'](_0x48c70c['vector'])})):null;let _0x487cae;switch(_0x2d89c1){case _0x3f5262(0x3bf):case'rebuild':{const _0x1244ee=_0x49441f(_0xb45eb0);_0x487cae=_0x4f4501[_0x2d89c1](_0x1244ee?async()=>_0x1244ee:undefined);break;}case'add':_0x487cae=_0x4f4501[_0x3f5262(0x280)](_0xb45eb0[0x0],Float32Array['from'](_0xb45eb0[0x1]),_0xb45eb0[0x2]??undefined);break;case _0x3f5262(0x504):_0x487cae=_0x4f4501['remove'](_0xb45eb0);break;case _0x3f5262(0x40c):_0x487cae=_0x4f4501[_0x3f5262(0x40c)](Float32Array[_0x3f5262(0x48d)](_0xb45eb0[_0x3f5262(0x69f)]),_0xb45eb0[_0x3f5262(0x5ea)]??{});break;case _0x3f5262(0x41c):_0x487cae=typeof _0x4f4501['snapshot']===_0x3f5262(0x640)?_0x4f4501[_0x3f5262(0x41c)](_0xb45eb0??undefined):![];break;case _0x3f5262(0x1f1):_0x487cae=typeof _0x4f4501[_0x3f5262(0x1f1)]===_0x3f5262(0x640)?_0x4f4501[_0x3f5262(0x1f1)]():undefined;break;case _0x3f5262(0x8a1):_0x487cae=typeof _0x4f4501['tick']===_0x3f5262(0x640)?_0x4f4501[_0x3f5262(0x8a1)]():undefined;break;case _0x3f5262(0x400):return Number(_0x4f4501[_0x3f5262(0x400)]());case'info':return(typeof _0x4f4501[_0x3f5262(0x7e2)]===_0x3f5262(0x640)?_0x4f4501[_0x3f5262(0x7e2)]():null)??{};default:throw new Error(_0x3f5262(0x65a)+_0x2d89c1);}if(_0x487cae&&typeof _0x487cae[_0x3f5262(0x801)]===_0x3f5262(0x640))_0x487cae=_0x10f279(_0x487cae);return _0x487cae===undefined?null:_0x487cae;}function _0x59c69b(_0x5e6c43,_0x14e058,_0x5eaf59){const _0x2658f7=_0x52a3;if(_0x5e6c43===_0x2658f7(0x54a)){const _0xf76a60=_0x147e3a(_0x14e058);let _0x207964=_0xf76a60(_0x5eaf59);if(_0x207964&&typeof _0x207964[_0x2658f7(0x801)]==='function')_0x207964=_0x10f279(_0x207964);if(!_0x207964)return null;const _0x2ed0e0=['write','keys',_0x2658f7(0x309),_0x2658f7(0x400),'dropAll',_0x2658f7(0x308)]['filter'](_0x49491f=>typeof _0x207964[_0x49491f]==='function');return{'$id':_0x2dd26b(_0x207964),'has':_0x2ed0e0};}const _0x545a5d=_0xbffe1a['get'](_0x14e058);if(_0x5e6c43===_0x2658f7(0x6b6))return _0xbffe1a[_0x2658f7(0x2cb)](_0x14e058),null;if(!_0x545a5d)throw new Error(_0x2658f7(0x247));const _0x3e7462=_0x54d92b=>Float32Array['from'](_0x54d92b);let _0x1e7ec7;switch(_0x5e6c43){case _0x2658f7(0x253):_0x1e7ec7=_0x545a5d[_0x2658f7(0x253)](_0x5eaf59[0x0],_0x3e7462(_0x5eaf59[0x1]));break;case'remove':_0x1e7ec7=_0x545a5d[_0x2658f7(0x504)](_0x5eaf59);break;case _0x2658f7(0x30b):{_0x1e7ec7=typeof _0x545a5d['getAll']===_0x2658f7(0x640)?_0x545a5d[_0x2658f7(0x30b)]():[];if(_0x1e7ec7&&typeof _0x1e7ec7[_0x2658f7(0x801)]==='function')_0x1e7ec7=_0x10f279(_0x1e7ec7);return Array['from'](_0x1e7ec7??[],_0x5c4db6=>({'key':_0x5c4db6[_0x2658f7(0x82f)],'vector':Array[_0x2658f7(0x48d)](_0x5c4db6[_0x2658f7(0x24e)])}));}case _0x2658f7(0x21a):_0x1e7ec7=_0x545a5d[_0x2658f7(0x21a)](_0x5eaf59[_0x2658f7(0x251)][_0x2658f7(0x35e)](_0x739904=>({'key':_0x739904[_0x2658f7(0x82f)],'vector':_0x3e7462(_0x739904[_0x2658f7(0x24e)])})),_0x5eaf59[_0x2658f7(0x3b9)]);break;case _0x2658f7(0x4ac):_0x1e7ec7=_0x545a5d[_0x2658f7(0x4ac)](_0x5eaf59??undefined);if(_0x1e7ec7&&typeof _0x1e7ec7[_0x2658f7(0x801)]===_0x2658f7(0x640))_0x1e7ec7=_0x10f279(_0x1e7ec7);return Array[_0x2658f7(0x48d)](_0x1e7ec7??[]);case _0x2658f7(0x309):{_0x1e7ec7=_0x545a5d[_0x2658f7(0x309)](_0x5eaf59);if(_0x1e7ec7&&typeof _0x1e7ec7['then']===_0x2658f7(0x640))_0x1e7ec7=_0x10f279(_0x1e7ec7);return _0x1e7ec7==null?null:Array[_0x2658f7(0x48d)](_0x1e7ec7);}case _0x2658f7(0x400):return Number(_0x545a5d['count']());case _0x2658f7(0x604):_0x1e7ec7=_0x545a5d[_0x2658f7(0x604)]();break;case _0x2658f7(0x308):return _0x545a5d[_0x2658f7(0x308)]()??null;default:throw new Error('storage\x20adapter\x20has\x20no\x20method\x20'+_0x5e6c43);}if(_0x1e7ec7&&typeof _0x1e7ec7[_0x2658f7(0x801)]===_0x2658f7(0x640))_0x1e7ec7=_0x10f279(_0x1e7ec7);return _0x1e7ec7===undefined?null:_0x1e7ec7;}const _0x2461c2=new Map();function _0x176703(_0x3bf088,_0x385701,_0x73722b,_0x3f7890){const _0x132ea5=_0x52a3,_0x5eacea=_0x3bf088+'\x00'+_0x73722b+'\x00'+JSON[_0x132ea5(0x35a)](_0x3f7890),_0x17909d=_0x2461c2['get'](_0x5eacea);if(_0x17909d){if(_0x17909d['state']===_0x132ea5(0x321))throw _0x369c84();_0x2461c2['delete'](_0x5eacea);if(_0x17909d[_0x132ea5(0x74f)]==='err')throw _0x17909d[_0x132ea5(0x2ef)];return _0x17909d[_0x132ea5(0x2ef)];}const _0x51a6f3=_0x385701[_0x73722b](_0x3f7890);if(!_0x51a6f3||typeof _0x51a6f3[_0x132ea5(0x801)]!==_0x132ea5(0x640))return _0x51a6f3;const _0xefe826={'state':_0x132ea5(0x321),'value':undefined};_0x51a6f3['then'](_0x265334=>{const _0x201bb8=_0x132ea5;_0xefe826[_0x201bb8(0x74f)]='ok',_0xefe826[_0x201bb8(0x2ef)]=_0x265334;if(_0x2461c2[_0x201bb8(0x309)](_0x5eacea)===_0xefe826)_0x36d13e(_0x385701);},_0x2a0228=>{const _0x441887=_0x132ea5;_0xefe826[_0x441887(0x74f)]=_0x441887(0x2d0),_0xefe826[_0x441887(0x2ef)]=_0x2a0228;if(_0x2461c2[_0x441887(0x309)](_0x5eacea)===_0xefe826)_0x36d13e(_0x385701);});for(let _0x5311ea=0x0;_0x5311ea<0x64&&_0xefe826[_0x132ea5(0x74f)]===_0x132ea5(0x321);_0x5311ea++)process[_0x132ea5(0x33e)]();if(_0xefe826[_0x132ea5(0x74f)]==='ok')return _0xefe826[_0x132ea5(0x2ef)];if(_0xefe826['state']==='err')throw _0xefe826[_0x132ea5(0x2ef)];_0x2461c2[_0x132ea5(0x63f)](_0x5eacea,_0xefe826);throw _0x369c84();}const _0x32d62b=new Map(),_0x1da67e=0xa*0x3c*0x3e8;function _0x36fd30(_0x5129f6,_0x2f90d1,_0x2c7dee){const _0x59a6be=_0x52a3,_0x1cdcd3=Array[_0x59a6be(0x439)](_0x2c7dee)?_0x2c7dee:Array[_0x59a6be(0x48d)](_0x2c7dee??[]);let _0x1465d6=_0x32d62b['get'](_0x5129f6);if(!_0x1465d6)_0x32d62b['set'](_0x5129f6,_0x1465d6=new Map());const _0x1dd40d=Date[_0x59a6be(0x8cc)]();for(const [_0x4f7801,_0x4e0f86]of _0x1465d6)if(_0x4e0f86['req']['state']!==_0x59a6be(0x321)&&_0x1dd40d-_0x4e0f86['req']['at']>_0x1da67e)_0x1465d6[_0x59a6be(0x2cb)](_0x4f7801);const _0x52f18d=_0x1cdcd3['map'](_0x301198=>JSON['stringify'](_0x301198));let _0x126b59=![];const _0x317994=[],_0x2534c7=new Set();for(let _0x537128=0x0;_0x537128<_0x52f18d[_0x59a6be(0x68a)];_0x537128++){const _0x3f4d86=_0x1465d6['get'](_0x52f18d[_0x537128]);if(!_0x3f4d86)!_0x2534c7['has'](_0x52f18d[_0x537128])&&(_0x2534c7[_0x59a6be(0x280)](_0x52f18d[_0x537128]),_0x317994['push'](_0x537128));else{if(_0x3f4d86['req']['state']===_0x59a6be(0x321))_0x126b59=!![];else{if(_0x3f4d86[_0x59a6be(0x71a)][_0x59a6be(0x74f)]==='err'){const _0x58e81b=_0x3f4d86[_0x59a6be(0x71a)][_0x59a6be(0x2ef)];for(const [_0x382d2f,_0x31e26d]of _0x1465d6)if(_0x31e26d['req']===_0x3f4d86[_0x59a6be(0x71a)])_0x1465d6[_0x59a6be(0x2cb)](_0x382d2f);throw _0x58e81b;}}}}if(_0x126b59)throw _0x369c84();if(_0x317994[_0x59a6be(0x68a)]){const _0x3ac5c0=_0x317994[_0x59a6be(0x35e)](_0x4b6fcb=>_0x1cdcd3[_0x4b6fcb]),_0x55fe45=_0x2f90d1[_0x59a6be(0x515)](_0x3ac5c0),_0x5755c5={'state':_0x59a6be(0x321),'value':undefined,'at':0x0},_0x26f3b7=(_0x1f2fe2,_0x1658a0)=>{const _0x340039=_0x59a6be;_0x5755c5[_0x340039(0x74f)]=_0x1f2fe2,_0x5755c5['value']=_0x1658a0,_0x5755c5['at']=Date[_0x340039(0x8cc)]();};if(!_0x55fe45||typeof _0x55fe45[_0x59a6be(0x801)]!=='function')_0x26f3b7('ok',_0x55fe45);else{let _0x3d3005=!![];_0x55fe45[_0x59a6be(0x801)](_0x275ce4=>{_0x26f3b7('ok',_0x275ce4);if(!_0x3d3005)_0x36d13e(_0x2f90d1);},_0x1a122f=>{_0x26f3b7('err',_0x1a122f);if(!_0x3d3005)_0x36d13e(_0x2f90d1);});for(let _0x27a702=0x0;_0x27a702<0x64&&_0x5755c5[_0x59a6be(0x74f)]==='pending';_0x27a702++)process[_0x59a6be(0x33e)]();_0x3d3005=![];}for(let _0x3d5ae6=0x0;_0x3d5ae6<_0x317994[_0x59a6be(0x68a)];_0x3d5ae6++)_0x1465d6['set'](_0x52f18d[_0x317994[_0x3d5ae6]],{'req':_0x5755c5,'index':_0x3d5ae6});if(_0x5755c5['state']===_0x59a6be(0x2d0)){for(const _0x487a4c of _0x317994)_0x1465d6[_0x59a6be(0x2cb)](_0x52f18d[_0x487a4c]);throw _0x5755c5[_0x59a6be(0x2ef)];}if(_0x5755c5['state']===_0x59a6be(0x321))throw _0x369c84();}const _0xa66b40=_0x52f18d[_0x59a6be(0x35e)](_0xd6cad3=>{const _0xcd1f32=_0x59a6be,_0x5d5512=_0x1465d6[_0xcd1f32(0x309)](_0xd6cad3),_0x469360=_0x5d5512[_0xcd1f32(0x71a)][_0xcd1f32(0x2ef)];return _0x469360?_0x469360[_0x5d5512[_0xcd1f32(0x1da)]]:undefined;});for(const _0x5168e7 of _0x52f18d)_0x1465d6[_0x59a6be(0x2cb)](_0x5168e7);if(!_0x1465d6[_0x59a6be(0x8d2)])_0x32d62b[_0x59a6be(0x2cb)](_0x5129f6);return _0xa66b40;}function _0x369c84(){const _0xb39ad8=_0x52a3;return Object[_0xb39ad8(0x4cc)](new Error(_0xb39ad8(0x29d)),{'code':_0xb39ad8(0x379)});}function _0x36d13e(_0x59c748){const _0x257513=_0x52a3;_0x59e042();try{const _0x8cc77a=_0x59c748['__okdb']||_0x44f29d;if(_0x8cc77a&&_0x8cc77a[_0x257513(0x663)])_0x8cc77a[_0x257513(0x210)]('events',null,_0x257513(0x5a2),[_0x257513(0x8be),{}],!![]);}catch{}}function _0x51a86c(_0x569514,_0x3e003f,_0x1fc084){const _0x146f21=_0x52a3,_0x41755d=_0xbffe1a[_0x146f21(0x309)](_0x569514);if(!_0x41755d||typeof _0x41755d[_0x3e003f]!=='function')return{'__absent':!![]};let _0x2b1afe=_0x41755d[_0x3e003f](...Array[_0x146f21(0x439)](_0x1fc084)?_0x1fc084:[]);if(_0x2b1afe&&typeof _0x2b1afe[_0x146f21(0x801)]===_0x146f21(0x640))_0x2b1afe=_0x10f279(_0x2b1afe);return{'value':_0x2b1afe===undefined?null:_0x2b1afe};}const _0x5ee29c=new Map();let _0x226ccb=0x1;const _0x3cac00=new Map(),_0x499e88=new Map();function _0x39fb42(_0x223fae,_0x1e5566=null){const _0x4bc5d8=_0x52a3,_0x4e3edf=_0x226ccb++;_0x5ee29c['set'](_0x4e3edf,_0x223fae);if(_0x1e5566)_0x499e88[_0x4bc5d8(0x63f)](_0x4e3edf,_0x1e5566);return _0x4e3edf;}function _0x27dfa5(_0x5de23f){const _0x8d704=_0x52a3;for(const [_0x1a9b22,_0x43b95f]of _0x3cac00)if(_0x43b95f&&_0x43b95f[_0x8d704(0x61e)]===_0x5de23f)_0x3cac00[_0x8d704(0x2cb)](_0x1a9b22);for(const [_0x160a27,_0x1e041f]of _0x4c3988)if(_0x1e041f===_0x5de23f)_0x4c3988[_0x8d704(0x2cb)](_0x160a27);for(const [_0x2c1d39,_0x6805b3]of _0x499e88)_0x6805b3===_0x5de23f&&(_0x499e88[_0x8d704(0x2cb)](_0x2c1d39),_0x5ee29c[_0x8d704(0x2cb)](_0x2c1d39));if(_0x44f29d===_0x5de23f)_0x44f29d=null;}function _0x3d8b34(_0x349f34,_0x5d37a0){_0x3cac00['set'](_0x349f34,_0x5d37a0);}function _0x569527(_0x1ed98f){const _0x55bd1a=_0x52a3;if(_0x1ed98f&&typeof _0x1ed98f===_0x55bd1a(0x559)&&Object['keys'](_0x1ed98f)[_0x55bd1a(0x68a)]===0x1&&_0x1ed98f['$payload']!==undefined)return _0x5ee29c[_0x55bd1a(0x309)](_0x1ed98f['$payload']);return _0x1ed98f;}function _0x10f279(_0x342f41){const _0x108220=_0x52a3;let _0x512275=![],_0x18bc47=![],_0x41aa0;_0x342f41['then'](_0x1a2763=>{_0x512275=!![],_0x41aa0=_0x1a2763;},_0x5e5cb7=>{_0x512275=!![],_0x18bc47=!![],_0x41aa0=_0x5e5cb7;});for(let _0x380c58=0x0;_0x380c58<0x2710&&!_0x512275;_0x380c58++)process[_0x108220(0x33e)]();if(!_0x512275)return _0x342f41[_0x108220(0x801)](undefined,_0x6e4f6b=>{const _0x340253=_0x108220;try{process[_0x340253(0x442)](_0x340253(0x445)+(_0x6e4f6b&&_0x6e4f6b['message']?_0x6e4f6b[_0x340253(0x211)]:_0x6e4f6b));}catch{}}),undefined;if(_0x18bc47)throw _0x41aa0;return _0x41aa0;}function _0x485091(_0x19cc77,_0x2575ba,_0x3d6172){const _0x3e7c73=_0x52a3,_0x2b8cd2=_0x147e3a(_0x19cc77),_0x378b88=_0x3cac00[_0x3e7c73(0x309)](_0x2575ba);try{const _0x29adf7=_0x2b8cd2(_0x3d6172,{'okdb':_0x378b88&&_0x378b88[_0x3e7c73(0x61e)],'env':_0x378b88});if(_0x29adf7&&typeof _0x29adf7[_0x3e7c73(0x801)]===_0x3e7c73(0x640))_0x10f279(_0x29adf7);}catch(_0xcce421){if(_0xcce421&&_0xcce421[_0x3e7c73(0x61c)]===!![]&&_0xcce421[_0x3e7c73(0x50e)]!==_0x3e7c73(0x5b9)){const _0x3c4241=new Error(_0xcce421[_0x3e7c73(0x211)]);_0x3c4241[_0x3e7c73(0x50e)]='__HOLD__';throw _0x3c4241;}throw _0xcce421;}}const _0x1a4759=new Map();function _0x1bad10(_0x2937f9,_0x1e2574,_0x451b81,_0x3f9db3,_0xdad7e5,_0x59550f){const _0x12651e=_0x52a3,_0x17e9ad=_0x147e3a(_0x2937f9),_0x17d66b=(_0x3cac00['get'](_0x59550f)||{})['okdb']||_0x44f29d,_0xcbcd9f=new AbortController(),_0x262df6=(_0x22b45e,..._0x208e2e)=>_0x17d66b[_0x12651e(0x210)](_0x12651e(0x622),_0x12651e(0x2a6),_0x22b45e,_0x208e2e,![]),_0x4daa4={'okdb':_0x17d66b,'env':_0x3cac00[_0x12651e(0x309)](_0x59550f)||null,'job':_0x3f9db3,'jobId':_0xdad7e5,'signal':_0xcbcd9f[_0x12651e(0x411)],'heartbeat':()=>_0x262df6(_0x12651e(0x50b),_0x451b81),'markProgress':_0x2cf8cb=>_0x262df6(_0x12651e(0x2ca),_0x451b81,_0x2cf8cb),'log':(_0x459f3f,_0x107279)=>_0x262df6(_0x12651e(0x3d5),_0x451b81,_0x459f3f,_0x107279)};_0x1a4759[_0x12651e(0x63f)](_0x451b81,{'ctrl':_0xcbcd9f,'call':_0x262df6});const _0x91faae=()=>{const _0x4d1184=_0x12651e;_0x1a4759['delete'](_0x451b81);try{_0x262df6(_0x4d1184(0x8a9),_0x451b81);}catch{}};let _0xf1630e;try{_0xf1630e=_0x17e9ad(_0x1e2574,_0x4daa4);}catch(_0x3d742f){_0x91faae();throw _0x3d742f;}if(_0xf1630e&&typeof _0xf1630e[_0x12651e(0x801)]===_0x12651e(0x640)){const _0x517084=_0x3c5b12(_0xf1630e);return _0xf1630e[_0x12651e(0x801)](_0x91faae,_0x91faae),{'$token':_0x517084};}return _0x91faae(),_0xf1630e;}function _0x321e77(){const _0x2a71e1=_0x52a3;for(const [_0x1318ca,_0xfe26ab]of _0x1a4759){if(_0xfe26ab['ctrl']['signal'][_0x2a71e1(0x1ed)])continue;let _0x3f4333;try{_0x3f4333=_0xfe26ab[_0x2a71e1(0x4d1)](_0x2a71e1(0x219),_0x1318ca);}catch{continue;}if(_0x3f4333&&_0x3f4333[_0x2a71e1(0x1ed)]){const {OKDBError:_0x4e8a10}=requireErrors();_0xfe26ab['ctrl'][_0x2a71e1(0x333)](new _0x4e8a10(_0x3f4333[_0x2a71e1(0x211)],_0x3f4333['code']));}}}let _0x44f29d=null;function _0x8997af(_0x1e5ccf){_0x44f29d=_0x1e5ccf;}function _0x1264c5(_0x58ac37,_0x38804f,_0x34999d,_0x352a6e,_0x3ebb66,_0x323b7a,_0x1d2e22){const _0x23a28e=_0x52a3,_0x2dc568=_0x147e3a(_0x58ac37),_0x5abed6=_0x3cac00['get'](_0x34999d);try{const _0x28ddcf=_0x38804f?_0x2dc568(_0x3ebb66,_0x323b7a):_0x2dc568({'env':_0x5abed6,'okdb':_0x5abed6&&_0x5abed6['okdb'],'payload':_0x569527(_0x352a6e)},_0x3ebb66,_0x323b7a);if(_0x28ddcf&&typeof _0x28ddcf['then']===_0x23a28e(0x640)){if(_0x323b7a&&_0x323b7a[_0x23a28e(0x5a9)]==='inline')_0x28ddcf[_0x23a28e(0x801)](undefined,()=>{});else{if(_0x1d2e22){const _0x6379f7=_0x2f8a63(_0x28ddcf);if(_0x6379f7===0x0)return null;return{'$token':_0x6379f7};}else _0x10f279(_0x28ddcf);}}}catch(_0x4cbd86){if(_0x4cbd86&&_0x4cbd86[_0x23a28e(0x61c)]===!![]&&_0x4cbd86[_0x23a28e(0x50e)]!==_0x23a28e(0x5b9)){const _0x415021=new Error(_0x4cbd86[_0x23a28e(0x211)]);_0x415021[_0x23a28e(0x50e)]=_0x23a28e(0x5b9);throw _0x415021;}throw _0x4cbd86;}return null;}function _0x2f8a63(_0x1966f7){const _0x41f9fa=_0x52a3;let _0x5c56df=_0x41f9fa(0x321),_0x3963f3;_0x1966f7[_0x41f9fa(0x801)](_0x2300c9=>{_0x5c56df='ok',_0x3963f3=_0x2300c9;},_0x33e8d7=>{_0x5c56df='err',_0x3963f3=_0x33e8d7;});for(let _0x2d9604=0x0;_0x2d9604<0x64&&_0x5c56df==='pending';_0x2d9604++)process[_0x41f9fa(0x33e)]();if(_0x5c56df==='ok')return 0x0;const _0x4aad26=_0x39dd51++,_0x23bdba={'state':_0x5c56df,'value':_0x3963f3};_0x17221a['set'](_0x4aad26,_0x23bdba);if(_0x5c56df===_0x41f9fa(0x321))_0x1966f7[_0x41f9fa(0x801)](_0x77cfba=>{const _0x18cbcd=_0x41f9fa;_0x23bdba[_0x18cbcd(0x74f)]='ok',_0x23bdba[_0x18cbcd(0x2ef)]=_0x77cfba,_0x59e042();},_0x4aad39=>{const _0x5d6e1e=_0x41f9fa;_0x23bdba[_0x5d6e1e(0x74f)]=_0x5d6e1e(0x2d0),_0x23bdba[_0x5d6e1e(0x2ef)]=_0x4aad39,_0x59e042();});return _0x4aad26;}function _0x16db42(_0x228f77){const _0x521d67=_0x52a3;let _0x524312=_0x10cd79[_0x521d67(0x309)](_0x228f77);return _0x524312===undefined&&(_0x524312=_0x4b814a++,_0x10cd79[_0x521d67(0x63f)](_0x228f77,_0x524312),_0x20df6c[_0x521d67(0x63f)](_0x524312,{'fn':_0x228f77,'refs':0x0})),_0x20df6c[_0x521d67(0x309)](_0x524312)['refs']++,_0x524312;}function _0x163c9a(_0x85722b){const _0x1eab9c=_0x52a3,_0x5bdca9=_0x20df6c['get'](_0x85722b);if(!_0x5bdca9)return;--_0x5bdca9['refs']<=0x0&&(_0x20df6c['delete'](_0x85722b),_0x10cd79[_0x1eab9c(0x2cb)](_0x5bdca9['fn']));}function _0x147e3a(_0x24289b){const _0x332582=_0x52a3,_0x1c995f=_0x20df6c['get'](_0x24289b);if(!_0x1c995f)throw new Error(_0x332582(0x76b)+_0x24289b);return _0x1c995f['fn'];}function _0x3c5b12(_0x418c6d){const _0x2302fd=_0x52a3;if(_0x418c6d&&typeof _0x418c6d['then']==='function'){const _0x46ab21=_0x39dd51++,_0x263776={'state':_0x2302fd(0x321),'value':undefined};return _0x17221a[_0x2302fd(0x63f)](_0x46ab21,_0x263776),_0x418c6d[_0x2302fd(0x801)](_0x1a7f73=>{const _0x3c62dc=_0x2302fd;_0x263776['state']='ok',_0x263776[_0x3c62dc(0x2ef)]=_0x1a7f73,_0x59e042();},_0x331163=>{const _0x4d3904=_0x2302fd;_0x263776[_0x4d3904(0x74f)]=_0x4d3904(0x2d0),_0x263776[_0x4d3904(0x2ef)]=_0x331163,_0x59e042();}),_0x46ab21;}return 0x0;}let _0x5e357f=()=>{},_0x57d464=null;function _0x3d64de(_0x1fa769,_0x40eb73=null){_0x5e357f=_0x1fa769,_0x57d464=_0x40eb73;}function _0x5263b9(_0x51f35f){return _0x57d464===_0x51f35f;}function _0x59e042(){_0x5e357f();}function _0x4f13f2(_0x1a89f5){const _0x862388=_0x52a3,_0xbcad26=_0x17221a[_0x862388(0x309)](_0x1a89f5);if(!_0xbcad26)return{'state':_0x862388(0x2d0),'error':{'message':'unknown\x20promise\x20token'}};if(_0xbcad26[_0x862388(0x74f)]===_0x862388(0x321))return{'state':_0x862388(0x321)};_0x17221a[_0x862388(0x2cb)](_0x1a89f5);if(_0xbcad26['state']==='ok')return{'state':'ok','value':_0xbcad26[_0x862388(0x2ef)]};const _0x504300=_0xbcad26[_0x862388(0x2ef)];return{'state':'err','error':{'message':_0x504300&&_0x504300[_0x862388(0x211)]!=null?String(_0x504300[_0x862388(0x211)]):String(_0x504300),'stack':_0x504300&&_0x504300[_0x862388(0x221)],'code':_0x504300&&_0x504300[_0x862388(0x50e)],'status':_0x504300&&typeof _0x504300['status']==='number'?_0x504300[_0x862388(0x717)]:undefined,'hold':!!(_0x504300&&_0x504300[_0x862388(0x61c)]===!![])}};}function _0x1558f7(_0x2e5a06,_0x568e37){_0x310966['set'](_0x2e5a06,_0x568e37);}function _0x302501(_0x288f27){_0x310966['delete'](_0x288f27);}let _0x8d81f7=0x0;function _0x50e8a8(){return _0x8d81f7>0x0;}function _0x35baae(){const _0x48c8a8=_0x52a3;_0x8d81f7++;try{return _0x160dc5[_0x48c8a8(0x32a)](undefined,arguments);}finally{_0x8d81f7--;}}function _0x160dc5(_0x385b19,_0x2d30de,_0x41c5fb,_0x3b8ce9,_0x17d20d,_0x216d50){const _0x178f95=_0x52a3;switch(_0x385b19){case _0x178f95(0x737):return _0x16db42(_0x2d30de);case _0x178f95(0x7a9):return _0x163c9a(_0x2d30de);case _0x178f95(0x4d1):{const _0x28ee28=Array['prototype'][_0x178f95(0x1f7)][_0x178f95(0x4d1)](arguments,0x2),_0x318583=_0x147e3a(_0x2d30de)[_0x178f95(0x32a)](undefined,_0x28ee28);return _0x318583&&typeof _0x318583[_0x178f95(0x801)]===_0x178f95(0x640)?_0x10f279(_0x318583):_0x318583;}case _0x178f95(0x75f):{const _0x4e5c00=Array[_0x178f95(0x511)]['slice']['call'](arguments,0x2),_0x135759=_0x147e3a(_0x2d30de)[_0x178f95(0x32a)](undefined,_0x4e5c00);if(_0x135759&&typeof _0x135759['then']==='function')return{'$token':_0x3c5b12(_0x135759)};return{'$value':_0x135759===undefined?null:_0x135759,'$undef':_0x135759===undefined};}case _0x178f95(0x226):{const _0xe01f64=_0x310966[_0x178f95(0x309)](_0x2d30de);if(_0xe01f64)_0xe01f64['_deliver'](_0x41c5fb,_0x3b8ce9);return undefined;}case _0x178f95(0x58d):{const _0x1572fe=_0x310966[_0x178f95(0x309)](_0x2d30de);if(_0x1572fe)_0x1572fe[_0x178f95(0x8ae)](_0x41c5fb);return undefined;}case _0x178f95(0x3ea):return _0x1264c5(_0x2d30de,_0x41c5fb,_0x3b8ce9,_0x17d20d,_0x216d50,arguments[0x6],arguments[0x7]);case _0x178f95(0x484):return _0x485091(_0x2d30de,_0x41c5fb,_0x3b8ce9);case _0x178f95(0x6c7):return _0x1bad10(_0x2d30de,_0x41c5fb,_0x3b8ce9,_0x17d20d,_0x216d50,arguments[0x6]);case _0x178f95(0x61f):return _0x2a450d['apply'](null,Array[_0x178f95(0x511)][_0x178f95(0x1f7)]['call'](arguments,0x1));case _0x178f95(0x7a5):return _0x51a86c(_0x2d30de,_0x41c5fb,_0x3b8ce9);case _0x178f95(0x22e):return _0x4f13f2(_0x2d30de);case _0x178f95(0x2bf):{const _0x176111=((async()=>{const _0x2ac2c6=_0x178f95,_0x28d84e=await globalThis[_0x2ac2c6(0x1e2)](_0x2d30de);if(!_0x28d84e['ok']){const _0x2c0156=new Error('HTTP\x20'+_0x28d84e[_0x2ac2c6(0x717)]);_0x2c0156[_0x2ac2c6(0x50e)]='HTTP_ERROR';throw _0x2c0156;}return _0x28d84e[_0x2ac2c6(0x810)]();})());return _0x10f279(_0x176111)??null;}case _0x178f95(0x55c):return _0x51fd91(_0x2d30de,_0x41c5fb,_0x3b8ce9);case _0x178f95(0x459):return _0xb5504(_0x2d30de,_0x41c5fb,_0x3b8ce9);case _0x178f95(0x23c):return _0x59c69b(_0x2d30de,_0x41c5fb,_0x3b8ce9);default:throw new Error('okdb-node:\x20unknown\x20bridge\x20op\x20'+_0x385b19);}}return bridge_1={'inNativeCall':_0x50e8a8,'regObject':_0x2dd26b,'checkSignals':_0x321e77,'setCurrentDb':_0x8997af,'forgetDb':_0x27dfa5,'storePayload':_0x39fb42,'registerEnv':_0x3d8b34,'resolvePayload':_0x569527,'bridge':_0x35baae,'reg':_0x16db42,'unreg':_0x163c9a,'fnOf':_0x147e3a,'track':_0x3c5b12,'resolve':_0x4f13f2,'registerTarget':_0x1558f7,'unregisterTarget':_0x302501,'setKick':_0x3d64de,'kickOwnedBy':_0x5263b9},bridge_1;}var writebatch,hasRequiredWritebatch;function requireWritebatch(){const _0x41abd8=_0x5c70f8;if(hasRequiredWritebatch)return writebatch;hasRequiredWritebatch=0x1;const {reclass:_0x238459}=requireErrors(),_0x1b2728=requireBridge(),_0x54f131=new Map();let _0x184311=null;function _0x540c84(_0x35d5ca){const _0x487c3c=_0x52a3;if(_0x184311)return;_0x184311=_0x35d5ca,_0x35d5ca[_0x487c3c(0x607)](_0x4ba1b3);}function _0x4ba1b3(){const _0x148739=_0x52a3,_0x3e9dd5=_0x184311[_0x148739(0x878)]();for(const _0x4d6531 of _0x3e9dd5){const _0x3b9b17=_0x54f131[_0x148739(0x309)](_0x4d6531);_0x3b9b17&&(_0x54f131[_0x148739(0x2cb)](_0x4d6531),_0x3b9b17());}}function _0x163b68(_0x5b456e,_0x272e9c){const _0x11ebdd=_0x52a3;_0x54f131[_0x11ebdd(0x63f)](_0x5b456e,_0x272e9c);}class _0x14309f{constructor(_0x3d9b30){const _0x537c08=_0x52a3;this['db']=_0x3d9b30,this['queue']=[],this[_0x537c08(0x783)]=![],this[_0x537c08(0x4f2)]=![],this[_0x537c08(0x85d)]=new Set();}['enqueue'](_0x339c0a,_0x12ae87,_0x2bd4,_0x31991b){const _0x598861=_0x52a3;if(_0x1b2728['inNativeCall']())try{return Promise[_0x598861(0x22e)](this['db'][_0x598861(0x210)](_0x339c0a,_0x12ae87,_0x2bd4,_0x31991b));}catch(_0x3a6824){return Promise[_0x598861(0x4b2)](_0x3a6824);}const _0x2142ee=new Promise((_0x19c9ca,_0x54cd4f)=>{const _0x3fae9a=_0x598861;this[_0x3fae9a(0x622)]['push']({'item':[_0x339c0a,_0x12ae87,_0x2bd4,_0x31991b],'resolve':_0x19c9ca,'reject':_0x54cd4f});});this['inflight']['add'](_0x2142ee);const _0x3ac6fd=()=>this[_0x598861(0x85d)][_0x598861(0x2cb)](_0x2142ee);return _0x2142ee['then'](_0x3ac6fd,_0x3ac6fd),!this[_0x598861(0x783)]&&(this[_0x598861(0x783)]=!![],setImmediate(()=>{const _0x3578d3=_0x598861;this[_0x3578d3(0x783)]=![],this[_0x3578d3(0x8e6)]();})),_0x2142ee;}[_0x41abd8(0x8e6)](){const _0x5f2d9e=_0x41abd8;if(!this['queue']['length'])return;if(this[_0x5f2d9e(0x4f2)]){!this[_0x5f2d9e(0x783)]&&(this[_0x5f2d9e(0x783)]=!![],setImmediate(()=>{const _0x1ee681=_0x5f2d9e;this[_0x1ee681(0x783)]=![],this[_0x1ee681(0x8e6)]();}));return;}const _0x5b3a7a=this['queue'];this[_0x5f2d9e(0x622)]=[],this['_run'](_0x5b3a7a);}[_0x41abd8(0x6d8)](_0x4ec4ad){const _0x4255e8=_0x41abd8;let _0x104b4f;this[_0x4255e8(0x4f2)]=!![];try{_0x104b4f=this['db'][_0x4255e8(0x858)][_0x4255e8(0x603)](_0x4ec4ad[_0x4255e8(0x35e)](_0x3776a2=>_0x3776a2[_0x4255e8(0x20b)]));}catch(_0x34ae0d){this[_0x4255e8(0x4f2)]=![];if(_0x4ec4ad[_0x4255e8(0x68a)]>0x1){for(const _0x34aca3 of _0x4ec4ad)this[_0x4255e8(0x6d8)]([_0x34aca3]);return;}const _0x242e82=_0x238459(_0x34ae0d);for(const _0x5b130a of _0x4ec4ad)_0x5b130a[_0x4255e8(0x4b2)](_0x242e82);return;}finally{this[_0x4255e8(0x4f2)]=![];}try{this['db'][_0x4255e8(0x5fd)][_0x4255e8(0x2c2)]();}catch{}const [_0x4fbf4c,_0x3881f1]=_0x104b4f;_0x163b68(_0x3881f1,()=>{const _0xece9a0=_0x4255e8;for(let _0x4ded5f=0x0;_0x4ded5f<_0x4ec4ad[_0xece9a0(0x68a)];_0x4ded5f++){const _0x43376b=_0x4fbf4c[_0x4ded5f];if(_0x43376b&&_0x43376b[0x0])_0x4ec4ad[_0x4ded5f]['resolve'](_0x43376b[0x1]);else _0x4ec4ad[_0x4ded5f]['reject'](_0x238459(_0x43376b?_0x43376b[0x1]:new Error('write\x20batch:\x20missing\x20result')));}});}async[_0x41abd8(0x3ec)](){const _0x346db7=_0x41abd8;this[_0x346db7(0x8e6)]();while(this['inflight'][_0x346db7(0x8d2)]){await Promise[_0x346db7(0x30e)]([...this['inflight']]),this[_0x346db7(0x8e6)]();}let _0x544cc4;try{_0x544cc4=this['db'][_0x346db7(0x858)]['flushTicket']();}catch{return;}await new Promise(_0x4de784=>_0x163b68(_0x544cc4,_0x4de784));}}return writebatch={'install':_0x540c84,'WriteBatch':_0x14309f,'whenSettled':_0x163b68},writebatch;}var pump,hasRequiredPump;function requirePump(){const _0x5250f4=_0x5c70f8;if(hasRequiredPump)return pump;hasRequiredPump=0x1;const _0x110b44=Number(process.env.OKDB_NATIVE_IDLE_MS)||0xfa;class _0xbc7a65{constructor(_0xde2522){const _0x23a735=_0x52a3;this['native']=_0xde2522,this[_0x23a735(0x39b)]=null,this[_0x23a735(0x71f)]=null,this[_0x23a735(0x4c2)]=![],this['stopped']=![],this['pumping']=![],this[_0x23a735(0x32e)]=![],this['turns']=0x0,this[_0x23a735(0x22d)]=[],this[_0x23a735(0x771)]=[];}[_0x5250f4(0x6c4)](_0xde2cce){return new Promise(_0xe64e7c=>{const _0x2d9c36=_0x52a3,_0x32bda1=setTimeout(_0x28b86a,_0xde2cce);function _0x28b86a(){clearTimeout(_0x32bda1),_0xe64e7c();}this[_0x2d9c36(0x771)][_0x2d9c36(0x28d)](_0x28b86a);});}[_0x5250f4(0x793)](){const _0x33663d=_0x5250f4;if(this[_0x33663d(0x771)]['length']===0x0)return;const _0x338716=this[_0x33663d(0x771)];this['turnWaiters']=[];for(const _0x22c9a7 of _0x338716)_0x22c9a7();}[_0x5250f4(0x45c)](){const _0x26aa3f=_0x5250f4;this[_0x26aa3f(0x5a6)]=![],this[_0x26aa3f(0x2c2)]();}[_0x5250f4(0x1f1)](){const _0x18cb76=_0x5250f4;this['stopped']=!![];if(this[_0x18cb76(0x39b)])clearTimeout(this[_0x18cb76(0x39b)]);if(this[_0x18cb76(0x71f)])clearImmediate(this[_0x18cb76(0x71f)]);this[_0x18cb76(0x39b)]=this['immediate']=null,this[_0x18cb76(0x793)]();}['wake'](){const _0x1de803=_0x5250f4;if(this[_0x1de803(0x5a6)]||this[_0x1de803(0x71f)])return;this[_0x1de803(0x39b)]&&(clearTimeout(this[_0x1de803(0x39b)]),this[_0x1de803(0x39b)]=null),this[_0x1de803(0x71f)]=setImmediate(()=>{const _0x56ea93=_0x1de803;this[_0x56ea93(0x71f)]=null,this[_0x56ea93(0x3e5)]();});}['turn'](){const _0x4490e7=_0x5250f4;if(this[_0x4490e7(0x5a6)]||this[_0x4490e7(0x8a3)]){this['dirty']=!![];return;}this[_0x4490e7(0x8a3)]=!![];let _0xfd2f4d;try{this[_0x4490e7(0x683)]++,_0xfd2f4d=this[_0x4490e7(0x8d5)]['pump']();if(this[_0x4490e7(0x7b3)])this[_0x4490e7(0x7b3)]();}catch(_0x469ba7){_0xfd2f4d=_0x110b44,process[_0x4490e7(0x407)](()=>{throw _0x469ba7;});}finally{this[_0x4490e7(0x8a3)]=![],this[_0x4490e7(0x793)]();}if(this[_0x4490e7(0x5a6)]||_0xfd2f4d===-0x2)return;if(this[_0x4490e7(0x32e)])return this[_0x4490e7(0x32e)]=![],this[_0x4490e7(0x2c2)]();const _0x20c595=_0xfd2f4d<0x0?_0x110b44:Math[_0x4490e7(0x4a0)](0x0,Math[_0x4490e7(0x597)](_0xfd2f4d,_0x110b44));if(_0x20c595<=0x0)return this[_0x4490e7(0x2c2)]();this[_0x4490e7(0x39b)]=setTimeout(()=>{const _0x1558ef=_0x4490e7;this[_0x1558ef(0x39b)]=null,this[_0x1558ef(0x3e5)]();},Math[_0x4490e7(0x3c1)](_0x20c595));if(this[_0x4490e7(0x39b)][_0x4490e7(0x32c)])this['timer'][_0x4490e7(0x32c)]();}}return pump={'Pumper':_0xbc7a65},pump;}var dist$1={},hasRequiredDist$1;function requireDist$1(){const _0x4a7415=_0x5c70f8;if(hasRequiredDist$1)return dist$1;hasRequiredDist$1=0x1;const _0x31f270=Symbol[_0x4a7415(0x708)](_0x4a7415(0x8c2)),_0x645945={'value':null,'done':!![]},_0x21a137={'value':null,'done':!![]};!Symbol[_0x4a7415(0x262)]&&(Symbol[_0x4a7415(0x262)]=Symbol[_0x4a7415(0x708)](_0x4a7415(0x848)));const _0xf5ec66={};class _0x3e22ed{constructor(_0x4705ac){const _0x52bb6a=_0x4a7415;_0x4705ac&&(this['iterate']=_0x4705ac[Symbol[_0x52bb6a(0x344)]][_0x52bb6a(0x78f)](_0x4705ac));}['map'](_0x1e9371){let _0x59fe90=this,_0x5bddcf=new _0x3e22ed();return _0x5bddcf['iterate']=(_0x3135f1=_0xf5ec66)=>{const _0x13e69c=_0x52a3,{async:_0x434733}=_0x3135f1;let _0x1c7b80=_0x59fe90[_0x434733?Symbol['asyncIterator']:Symbol[_0x13e69c(0x344)]](_0x3135f1);if(!_0x434733)_0x59fe90[_0x13e69c(0x4a5)]=!![];let _0x56671e=-0x1;return{'next'(_0x40f846){const _0x594ba5=_0x13e69c;let _0x25217c;do{let _0x12e981;try{if(_0x40f846)_0x12e981=_0x40f846,_0x40f846=null;else{_0x56671e++,_0x12e981=_0x1c7b80[_0x594ba5(0x48f)]();if(_0x12e981['then'])return!_0x434733&&this[_0x594ba5(0x724)](new Error(_0x594ba5(0x7b2))),_0x12e981[_0x594ba5(0x801)](_0x16e363=>this[_0x594ba5(0x48f)](_0x16e363),_0x2da1a9=>{const _0x19abdf=_0x594ba5;return this[_0x19abdf(0x724)](_0x2da1a9);});}if(_0x12e981[_0x594ba5(0x588)]===!![]){this[_0x594ba5(0x588)]=!![];if(_0x5bddcf[_0x594ba5(0x875)])_0x5bddcf[_0x594ba5(0x875)]();return _0x12e981;}try{_0x25217c=_0x1e9371[_0x594ba5(0x4d1)](_0x59fe90,_0x12e981[_0x594ba5(0x2ef)],_0x56671e);if(_0x25217c&&_0x25217c[_0x594ba5(0x801)]&&_0x434733)return _0x25217c[_0x594ba5(0x801)](_0x260310=>_0x260310===_0x31f270?this[_0x594ba5(0x48f)]():{'value':_0x260310},_0x13e514=>{const _0x43da0f=_0x594ba5;if(_0x3135f1[_0x43da0f(0x338)])_0x13e514[_0x43da0f(0x4be)]=!![];return this[_0x43da0f(0x724)](_0x13e514);});}catch(_0xeb0d75){if(_0x3135f1[_0x594ba5(0x338)])_0xeb0d75[_0x594ba5(0x4be)]=!![];throw _0xeb0d75;}}catch(_0x9de154){if(_0x5bddcf['handleError'])try{_0x25217c=_0x5bddcf[_0x594ba5(0x42f)](_0x9de154,_0x56671e);}catch(_0x342cce){return this['throw'](_0x342cce);}else return this[_0x594ba5(0x724)](_0x9de154);}}while(_0x25217c===_0x31f270);if(_0x25217c===_0x645945)return this[_0x594ba5(0x67c)]();return{'value':_0x25217c};},'return'(_0x458246){const _0x4207b8=_0x13e69c;if(!this[_0x4207b8(0x588)]){_0x21a137[_0x4207b8(0x2ef)]=_0x458246,this[_0x4207b8(0x588)]=!![];if(_0x5bddcf[_0x4207b8(0x875)])_0x5bddcf[_0x4207b8(0x875)]();_0x1c7b80[_0x4207b8(0x67c)]?.();}return _0x21a137;},'throw'(_0x5bd538){const _0x59d251=_0x13e69c;if(_0x5bd538[_0x59d251(0x4be)]){if(_0x5bddcf[_0x59d251(0x51b)])try{return{'value':_0x5bddcf[_0x59d251(0x51b)](_0x5bd538)};}catch(_0x3934af){this[_0x59d251(0x67c)]();throw _0x3934af;}if(_0x3135f1[_0x59d251(0x338)])throw _0x5bd538;}this[_0x59d251(0x67c)]();throw _0x5bd538;}};},_0x5bddcf;}[Symbol[_0x4a7415(0x262)]](_0x5de168){const _0x4f5c06=_0x4a7415;if(_0x5de168)_0x5de168={..._0x5de168,'async':!![]};else _0x5de168={'async':!![]};return this['iterator']=this[_0x4f5c06(0x626)](_0x5de168);}[Symbol[_0x4a7415(0x344)]](_0x234dbe){const _0x21997d=_0x4a7415;return this[_0x21997d(0x344)]=this[_0x21997d(0x626)](_0x234dbe);}[_0x4a7415(0x4e1)](_0x28b917){const _0x161fca=_0x4a7415;let _0x3ac479=this[_0x161fca(0x35e)](_0x218538=>{const _0x3b2610=_0x161fca;let _0xbd02a4=_0x28b917(_0x218538);if(_0xbd02a4?.[_0x3b2610(0x801)])return _0xbd02a4[_0x3b2610(0x801)](_0x2042f9=>_0x2042f9?_0x218538:_0x31f270);else return _0xbd02a4?_0x218538:_0x31f270;}),_0x573f05=_0x3ac479[_0x161fca(0x626)];return _0x3ac479[_0x161fca(0x626)]=(_0x3c8b11=_0xf5ec66)=>{const _0x5f0182=_0x161fca;if(_0x3c8b11[_0x5f0182(0x338)])_0x3c8b11={..._0x3c8b11,'continueOnRecoverableError':![]};return _0x573f05(_0x3c8b11);},_0x3ac479;}[_0x4a7415(0x5ff)](_0x509252){const _0x2493b2=_0x4a7415;let _0x195c52=this[_0x2493b2(0x344)]=this[_0x2493b2(0x626)](),_0x4e6299;while((_0x4e6299=_0x195c52[_0x2493b2(0x48f)]())[_0x2493b2(0x588)]!==!![]){_0x509252(_0x4e6299[_0x2493b2(0x2ef)]);}}[_0x4a7415(0x6cf)](_0x8b6ed3){let _0x4644ee=new _0x3e22ed();return _0x4644ee['iterate']=(_0x4039d1=_0xf5ec66)=>{const _0x3d77f9=_0x52a3;let _0x5b6ab0=this[_0x3d77f9(0x344)]=this['iterate'](_0x4039d1),_0xd7abb0=!![];function _0x1830fa(_0x5373df){const _0x212335=_0x3d77f9;if(_0xd7abb0)try{_0xd7abb0=![],_0x5b6ab0=_0x8b6ed3[_0x4039d1[_0x212335(0x56f)]?Symbol['asyncIterator']:Symbol[_0x212335(0x344)]](),_0x5373df=_0x5b6ab0['next']();if(_0x4644ee[_0x212335(0x875)]){if(_0x5373df[_0x212335(0x801)]){if(!_0x4039d1[_0x212335(0x56f)])throw new Error(_0x212335(0x7b2));_0x5373df[_0x212335(0x801)](_0x20415c=>{const _0x28b53d=_0x212335;if(_0x20415c[_0x28b53d(0x588)]())_0x4644ee[_0x28b53d(0x875)]();},_0xc641f=>{const _0x46d567=_0x212335;this[_0x46d567(0x67c)]();throw _0xc641f;});}else{if(_0x5373df[_0x212335(0x588)])_0x4644ee['onDone']();}}}catch(_0x327023){this[_0x212335(0x724)](_0x327023);}else{if(_0x4644ee[_0x212335(0x875)])_0x4644ee[_0x212335(0x875)]();}return _0x5373df;}return{'next'(){const _0x26d06c=_0x3d77f9;try{let _0x11495e=_0x5b6ab0[_0x26d06c(0x48f)]();if(_0x11495e['then']){if(!_0x4039d1[_0x26d06c(0x56f)])throw new Error('Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results');return _0x11495e[_0x26d06c(0x801)](_0x162a80=>{if(_0x162a80['done'])return _0x1830fa(_0x162a80);return _0x162a80;});}if(_0x11495e[_0x26d06c(0x588)])return _0x1830fa(_0x11495e);return _0x11495e;}catch(_0x415756){this[_0x26d06c(0x724)](_0x415756);}},'return'(_0xdc5a22){const _0x649756=_0x3d77f9;if(!this[_0x649756(0x588)]){_0x21a137[_0x649756(0x2ef)]=_0xdc5a22,this[_0x649756(0x588)]=!![];if(_0x4644ee[_0x649756(0x875)])_0x4644ee[_0x649756(0x875)]();_0x5b6ab0[_0x649756(0x67c)]();}return _0x21a137;},'throw'(_0x45e44c){const _0x47b151=_0x3d77f9;if(_0x4039d1['continueOnRecoverableError'])throw _0x45e44c;this[_0x47b151(0x67c)]();throw _0x45e44c;}};},_0x4644ee;}[_0x4a7415(0x846)](_0xa229f8){const _0x785bca=_0x4a7415;let _0x5c1d75=new _0x3e22ed();return _0x5c1d75[_0x785bca(0x626)]=(_0x5ea4da=_0xf5ec66)=>{const _0x5c7e1e=_0x785bca;let _0x469084=this[_0x5c7e1e(0x344)]=this[_0x5c7e1e(0x626)](_0x5ea4da),_0x3189de;return{'next'(_0x409955){const _0x4a900a=_0x5c7e1e;try{do{if(_0x3189de){let _0x49e6e1;if(_0x409955)_0x49e6e1=_0x409955,_0x409955=undefined;else _0x49e6e1=_0x3189de[_0x4a900a(0x48f)]();if(_0x49e6e1[_0x4a900a(0x801)]){if(!_0x5ea4da[_0x4a900a(0x56f)])throw new Error(_0x4a900a(0x7b2));return _0x49e6e1['then'](_0x1381bc=>this['next'](_0x1381bc));}if(!_0x49e6e1[_0x4a900a(0x588)])return _0x49e6e1;}let _0x34839c;if(_0x409955!=undefined)_0x34839c=_0x409955,_0x409955=undefined;else _0x34839c=_0x469084['next']();if(_0x34839c[_0x4a900a(0x801)]){if(!_0x5ea4da['async'])throw new Error(_0x4a900a(0x7b2));return _0x3189de=undefined,_0x34839c[_0x4a900a(0x801)](_0x4a5ce1=>this[_0x4a900a(0x48f)](_0x4a5ce1));}if(_0x34839c[_0x4a900a(0x588)]){if(_0x5c1d75[_0x4a900a(0x875)])_0x5c1d75[_0x4a900a(0x875)]();return _0x34839c;}try{let _0x29f1d5=_0xa229f8(_0x34839c['value']);if(_0x29f1d5?.['then']){if(!_0x5ea4da[_0x4a900a(0x56f)])throw new Error(_0x4a900a(0x7b2));return _0x29f1d5[_0x4a900a(0x801)](_0xa7892b=>{const _0x4dbadc=_0x4a900a;return Array['isArray'](_0xa7892b)||_0xa7892b instanceof _0x3e22ed?(_0x3189de=_0xa7892b[Symbol[_0x4dbadc(0x344)]](),this[_0x4dbadc(0x48f)]()):(_0x3189de=null,{'value':_0xa7892b});},_0x40a01d=>{const _0x1df560=_0x4a900a;if(_0x5ea4da[_0x1df560(0x338)])_0x40a01d[_0x1df560(0x4be)]=!![];this[_0x1df560(0x724)](_0x40a01d);});}if(Array[_0x4a900a(0x439)](_0x29f1d5)||_0x29f1d5 instanceof _0x3e22ed)_0x3189de=_0x29f1d5[Symbol[_0x4a900a(0x344)]]();else return _0x3189de=null,{'value':_0x29f1d5};}catch(_0xdfa85f){if(_0x5ea4da[_0x4a900a(0x338)])_0xdfa85f[_0x4a900a(0x4be)]=!![];throw _0xdfa85f;}}while(!![]);}catch(_0x10ba10){this[_0x4a900a(0x724)](_0x10ba10);}},'return'(){const _0x5bb8b0=_0x5c7e1e;if(_0x5c1d75['onDone'])_0x5c1d75['onDone']();if(_0x3189de)_0x3189de[_0x5bb8b0(0x67c)]();return _0x469084['return']();},'throw'(_0x38a93e){const _0x557624=_0x5c7e1e;if(_0x5ea4da[_0x557624(0x338)])throw _0x38a93e;if(_0x5c1d75[_0x557624(0x875)])_0x5c1d75['onDone']();if(_0x3189de)_0x3189de['return']();this[_0x557624(0x67c)]();throw _0x38a93e;}};},_0x5c1d75;}[_0x4a7415(0x1f7)](_0x5df581,_0x45e272){const _0x10a814=_0x4a7415;let _0xda35b0=this[_0x10a814(0x35e)]((_0x34e132,_0x19f954)=>{const _0x24a8e4=_0x10a814;if(_0x19f954<_0x5df581)return _0x31f270;if(_0x19f954>=_0x45e272)return _0x645945[_0x24a8e4(0x2ef)]=_0x34e132,_0x645945;return _0x34e132;});return _0xda35b0[_0x10a814(0x42f)]=(_0x24ae97,_0x5c71ad)=>{if(_0x5c71ad<_0x5df581)return _0x31f270;if(_0x5c71ad>=_0x45e272)return _0x645945;throw _0x24ae97;},_0xda35b0;}[_0x4a7415(0x1e3)](_0x10493b){const _0x1c9df8=_0x4a7415;if(typeof _0x10493b!==_0x1c9df8(0x640))throw new TypeError('Expected\x20catch\x20callback\x20to\x20be\x20a\x20function');let _0x265bdf=this[_0x1c9df8(0x35e)](_0x16393a=>{return _0x16393a;}),_0x28293a=_0x265bdf['iterate'];return _0x265bdf['iterate']=(_0x23a298=_0xf5ec66)=>{return _0x28293a({..._0x23a298,'continueOnRecoverableError':!![]});},_0x265bdf[_0x1c9df8(0x51b)]=_0x10493b,_0x265bdf;}['next'](){const _0x2bb434=_0x4a7415;if(!this['iterator'])this[_0x2bb434(0x344)]=this[_0x2bb434(0x626)]();return this['iterator'][_0x2bb434(0x48f)]();}[_0x4a7415(0x861)](){const _0x4e9db4=_0x4a7415;if(this[_0x4e9db4(0x2cd)]&&this[_0x4e9db4(0x2cd)][_0x4e9db4(0x5ff)])return this[_0x4e9db4(0x2cd)];const _0x4fa4f8=new Error(_0x4e9db4(0x883));_0x4fa4f8[_0x4e9db4(0x57d)]=this['asArray'];throw _0x4fa4f8;}get[_0x4a7415(0x2cd)](){const _0x5b7b49=_0x4a7415;if(this[_0x5b7b49(0x47f)])return this['_asArray'];let _0x27c1e1=new Promise((_0x183710,_0x238e7c)=>{const _0x1d99ec=_0x5b7b49;let _0x41af02=this[_0x1d99ec(0x626)](!![]),_0x3ac44f=[],_0x38e94f=this;Object[_0x1d99ec(0x1fd)](_0x3ac44f,'iterable',{'value':_0x38e94f});function _0x2d4845(_0x57a1f0){const _0x96c5d9=_0x1d99ec;while(_0x57a1f0[_0x96c5d9(0x588)]!==!![]){if(_0x57a1f0[_0x96c5d9(0x801)])return _0x57a1f0[_0x96c5d9(0x801)](_0x2d4845);else _0x3ac44f[_0x96c5d9(0x28d)](_0x57a1f0[_0x96c5d9(0x2ef)]);_0x57a1f0=_0x41af02[_0x96c5d9(0x48f)]();}_0x183710(_0x38e94f[_0x96c5d9(0x47f)]=_0x3ac44f);}_0x2d4845(_0x41af02[_0x1d99ec(0x48f)]());});return _0x27c1e1[_0x5b7b49(0x554)]=this,this[_0x5b7b49(0x47f)]||(this[_0x5b7b49(0x47f)]=_0x27c1e1);}[_0x4a7415(0x272)](){const _0x278122=_0x4a7415;return this[_0x278122(0x2cd)];}['at'](_0x333b87){for(let _0x32fd08 of this){if(_0x333b87--===0x0)return _0x32fd08;}}}return _0x3e22ed[_0x4a7415(0x511)][_0x4a7415(0x538)]=_0x645945,dist$1[_0x4a7415(0x7a4)]=_0x3e22ed,dist$1[_0x4a7415(0x6e8)]=_0x31f270,dist$1;}var iterable,hasRequiredIterable;function requireIterable(){const _0x4d870d=_0x5c70f8;if(hasRequiredIterable)return iterable;hasRequiredIterable=0x1;const {ExtendedIterable:_0x31fd07}=requireDist$1(),_0x2e09ca=Number(process.env.OKDB_NATIVE_RANGE_CHUNK)||0x3e8,_0x53b41d=Math[_0x4d870d(0x597)](_0x2e09ca,Number(process.env.OKDB_NATIVE_ROW_CHUNK)||0x100),_0x5dd4fa=new Set([_0x4d870d(0x3ee),'byIndex','query','getChanges']),_0x3dcc0c=Math[_0x4d870d(0x597)](_0x53b41d,Number(process.env.OKDB_NATIVE_RANGE_FIRST)||0x1),_0x47b88f=0x4,_0x30301d=(_0x5b4c3b,_0x3b2180=_0x2e09ca)=>Math['min'](_0x3b2180,_0x5b4c3b*_0x47b88f),_0x25a670={'value':undefined,'done':!![]};function _0x41eebc(_0x4c4ad6){const _0x4ead4c=_0x4d870d,_0x291203=new _0x31fd07();return _0x291203[_0x4ead4c(0x626)]=()=>{let _0x4a599a=0x0;return{'next'(){const _0x34dec5=_0x52a3;return _0x4a599a<_0x4c4ad6[_0x34dec5(0x68a)]?{'value':_0x4c4ad6[_0x4a599a++],'done':![]}:{'value':undefined,'done':!![]};},'return'(){const _0x1c2565=_0x52a3;return _0x4a599a=_0x4c4ad6[_0x1c2565(0x68a)],{'value':undefined,'done':!![]};},'throw'(){const _0x232b81=_0x52a3;return _0x4a599a=_0x4c4ad6[_0x232b81(0x68a)],{'value':undefined,'done':!![]};}};},_0x291203;}const _0x3368da=_0x289346=>typeof _0x289346==='number'&&!Number[_0x4d870d(0x468)](_0x289346)?Math[_0x4d870d(0x4a0)](0x0,Math[_0x4d870d(0x3c1)](_0x289346)):Infinity,_0xefec48=_0x36caa3=>typeof _0x36caa3==='number'?Math[_0x4d870d(0x4a0)](0x0,Math[_0x4d870d(0x2fe)](_0x36caa3))||0x0:0x0;function _0x19f48c(_0x12b4be,_0x19d773,_0x445264,_0x3390cf={}){const _0x548841=_0x4d870d,_0x2b9e6d=new _0x31fd07(),_0x3a8b78=(_0x3390cf['limitOf']||_0x3368da)(_0x19d773[_0x548841(0x582)]),_0x1ca555=_0x3390cf['rows']?_0x53b41d:_0x2e09ca,_0x397782=_0x3390cf[_0x548841(0x835)]||((_0x609574,_0x12c792)=>{const _0x1ae898=_0x548841;_0x609574[_0x1ae898(0x45c)]=_0x12c792,_0x609574[_0x1ae898(0x757)]=!![],delete _0x609574[_0x1ae898(0x353)];});let _0x2be7ad=null;if(_0x3390cf[_0x548841(0x54d)]){const _0x3ada56={..._0x19d773,'limit':Math[_0x548841(0x597)](_0x3dcc0c,_0x3a8b78)};_0x2be7ad={'rows':_0x12b4be(_0x3ada56),'limit':_0x3ada56['limit']};const _0x1198b2=_0x2be7ad;queueMicrotask(()=>{_0x1198b2['dropped']=!![];});}return _0x2b9e6d[_0x548841(0x626)]=()=>{const _0x3188b3=_0x548841;let _0x3a7e97=[],_0x3b515c=0x0,_0x228496=0x0,_0x54e954,_0x3bcb8a=![],_0x415157=![],_0x55090e=_0x3dcc0c;if(_0x2be7ad&&!_0x2be7ad[_0x3188b3(0x5a5)]&&!_0x2be7ad[_0x3188b3(0x7af)]){_0x2be7ad[_0x3188b3(0x7af)]=!![],_0x3a7e97=_0x2be7ad[_0x3188b3(0x659)],_0x3bcb8a=!![],_0x55090e=_0x30301d(_0x55090e,_0x1ca555);if(_0x3a7e97['length']<_0x2be7ad[_0x3188b3(0x582)])_0x415157=!![];if(_0x3a7e97['length'])_0x54e954=_0x445264(_0x3a7e97[_0x3a7e97['length']-0x1]);}const _0x288c97=()=>{const _0x361070=_0x3188b3;if(_0x415157)return;const _0x5c707e=_0x3a8b78-_0x228496;if(_0x5c707e<=0x0){_0x415157=!![],_0x3a7e97=[];return;}const _0x59e67d={..._0x19d773,'limit':Math[_0x361070(0x597)](_0x55090e,_0x5c707e)};if(_0x3bcb8a)_0x397782(_0x59e67d,_0x54e954);_0x3bcb8a=!![],_0x55090e=_0x30301d(_0x55090e,_0x1ca555),_0x3a7e97=_0x12b4be(_0x59e67d),_0x3b515c=0x0;if(_0x3a7e97['length']<_0x59e67d[_0x361070(0x582)])_0x415157=!![];if(_0x3a7e97['length'])_0x54e954=_0x445264(_0x3a7e97[_0x3a7e97[_0x361070(0x68a)]-0x1]);};return{'next'(){const _0x2633ff=_0x3188b3;if(_0x3b515c>=_0x3a7e97[_0x2633ff(0x68a)])_0x288c97();if(_0x3b515c>=_0x3a7e97[_0x2633ff(0x68a)])return{'value':undefined,'done':!![]};return _0x228496++,{'value':_0x3a7e97[_0x3b515c++],'done':![]};},'return'(){return _0x415157=!![],_0x3a7e97=[],{'value':undefined,'done':!![]};},'throw'(){return _0x415157=!![],_0x3a7e97=[],{'value':undefined,'done':!![]};}};},_0x2b9e6d;}function _0x5168af(_0x100f45,_0x3ab982,_0x569693,_0x5748a3,_0x68d121={}){const _0x31b29e=_0x4d870d,_0x196bf8=(_0x68d121[_0x31b29e(0x601)]||_0x3368da)(_0x5748a3&&_0x5748a3['limit']),_0xfcc576=_0x5dd4fa[_0x31b29e(0x571)](_0x3ab982)?_0x53b41d:_0x2e09ca,_0x1f4907=(_0x68d121[_0x31b29e(0x6e6)]||_0xefec48)(_0x5748a3&&_0x5748a3[_0x31b29e(0x353)]),_0x17a0a6=(_0x5f452d,_0xda3b4b,_0x596a96)=>{const _0x529c29=_0x31b29e,_0x4e5cb5=_0x196bf8-_0xda3b4b,_0x12724a=Math['min'](_0x596a96,_0x4e5cb5),_0x5122b2={'limit':_0x12724a,'offset':_0x1f4907+_0xda3b4b},_0x365d92=_0x100f45(_0x529c29(0x6a1),[_0x5f452d,_0x3ab982,_0x12724a===_0x4e5cb5?Infinity:_0x12724a,..._0x569693(_0x5122b2)]);if(_0x365d92[0x0]===-0x1){const _0x261ffe={'offset':_0x1f4907+_0xda3b4b};if(_0x4e5cb5!==Infinity)_0x261ffe['limit']=_0x4e5cb5;return{'pin':0x0,'rows':_0x100f45(_0x3ab982,_0x569693(_0x261ffe)),'raw':Infinity,'eager':!![]};}return{'pin':_0x365d92[0x0],'rows':_0x365d92[0x1],'raw':_0x365d92[0x2]};},_0x2d3e21=_0x22d503=>{const _0x2dd21a=_0x31b29e;if(_0x22d503)_0x100f45(_0x2dd21a(0x7e7),[_0x22d503]);};function _0x3266f9(_0x47f896,_0x256c21,_0x28fb7c){const _0x437c4e=_0x31b29e;let _0x3b5108=0x0,_0x2fd567=[],_0x1394a6=0x0,_0x58f1f8=_0x47f896,_0x2fbcfd=_0x3dcc0c,_0x5798ec=_0x196bf8-_0x47f896<=0x0;if(_0x28fb7c)({buf:_0x2fd567,pos:_0x1394a6,consumed:_0x58f1f8,size:_0x2fbcfd,exhausted:_0x5798ec}=_0x28fb7c);const _0x46e3be=_0x135bd1=>{const _0x44232b=_0x52a3;_0x3b5108=_0x135bd1['pin'],_0x2fd567=_0x135bd1[_0x44232b(0x659)],_0x1394a6=0x0,_0x58f1f8+=_0x135bd1['raw'],_0x2fbcfd=_0x30301d(_0x2fbcfd,_0xfcc576);if(!_0x3b5108)_0x5798ec=!![];};if(_0x256c21)_0x46e3be(_0x256c21);const _0x147028=()=>{const _0x1b58e9=_0x3b5108;_0x3b5108=0x0,_0x2d3e21(_0x1b58e9);},_0x1b69d9={'next'(){const _0x4dee1c=_0x52a3;while(_0x1394a6>=_0x2fd567[_0x4dee1c(0x68a)]){if(_0x5798ec||_0x196bf8-_0x58f1f8<=0x0)return _0x5798ec=!![],_0x147028(),_0x25a670;try{_0x46e3be(_0x17a0a6(_0x3b5108,_0x58f1f8,_0x2fbcfd));}catch(_0x5344c1){_0x3b5108=0x0,_0x5798ec=!![],_0x2fd567=[];throw _0x5344c1;}}return{'value':_0x2fd567[_0x1394a6++],'done':![]};},'return'(){return _0x147028(),_0x25a670;},'throw'(){return _0x147028(),_0x25a670;},'resumed'(){return _0x3266f9(0x0,null,{'buf':_0x2fd567,'pos':_0x1394a6,'consumed':_0x58f1f8,'size':_0x2fbcfd,'exhausted':_0x5798ec});},[Symbol[_0x437c4e(0x344)]](){return this;}};return _0x1b69d9;}function _0x34c425(){if(_0x196bf8<=0x0)return null;const _0x10bd97=_0x17a0a6(0x0,0x0,_0x3dcc0c);return queueMicrotask(()=>{const _0x3ac8ec=_0x52a3;!_0x10bd97[_0x3ac8ec(0x7af)]&&(_0x10bd97[_0x3ac8ec(0x5a5)]=!![],_0x2d3e21(_0x10bd97[_0x3ac8ec(0x2a5)]));}),_0x10bd97;}return{'source':_0x3266f9,'prefetch':_0x34c425};}function _0x50b0a7(_0x5acb9f){const _0x1cbbf8=_0x4d870d;if(!_0x5acb9f||_0x5acb9f[_0x1cbbf8(0x7af)]||_0x5acb9f[_0x1cbbf8(0x5a5)])return null;return _0x5acb9f[_0x1cbbf8(0x7af)]=!![],_0x5acb9f;}return iterable={'fromArray':_0x41eebc,'chunkedRange':_0x19f48c,'pinnedChunks':_0x5168af,'claimPrefetch':_0x50b0a7,'lmdbLimit':_0x3368da,'lmdbOffset':_0xefec48,'CHUNK':_0x2e09ca,'ROW_CHUNK':_0x53b41d,'FIRST':_0x3dcc0c},iterable;}var rawdb,hasRequiredRawdb;function requireRawdb(){const _0x15560f=_0x5c70f8;if(hasRequiredRawdb)return rawdb;hasRequiredRawdb=0x1;const {fromArray:_0x36a56c}=requireIterable();class _0x43aa10{constructor(_0x231839,_0x277439='',_0x45a802={},_0x5571dc=null){const _0x6f4fb2=_0x52a3;this['_env']=_0x231839,this[_0x6f4fb2(0x54b)]=_0x277439,this[_0x6f4fb2(0x2a8)]=!!(_0x45a802&&_0x45a802[_0x6f4fb2(0x2a8)]),this['useVersions']=!!(_0x45a802&&_0x45a802['useVersions']),this['_root']=_0x5571dc||this,this['_buf']=null;}get['_dupArg'](){const _0x13d3bd=_0x52a3;return this[_0x13d3bd(0x2a8)]?!![]:this[_0x13d3bd(0x877)]?'v':![];}['_n'](_0x62f795,_0x48a401){const _0x381fba=_0x52a3;return this[_0x381fba(0x4dd)][_0x381fba(0x61e)]['_call'](_0x381fba(0x415),this['_env'][_0x381fba(0x54b)],_0x62f795,[this[_0x381fba(0x54b)],this[_0x381fba(0x6f9)],..._0x48a401],!![]);}[_0x15560f(0x5d3)](_0x33bc43,_0x5457cd){const _0x2c701b=_0x15560f;return this[_0x2c701b(0x4dd)]['okdb']['_call']('raw',this[_0x2c701b(0x4dd)][_0x2c701b(0x54b)],_0x33bc43,[this[_0x2c701b(0x54b)],this['_dupArg'],..._0x5457cd],![]);}[_0x15560f(0x77c)](_0x1bebb2){const _0x1dc94c=_0x15560f,_0x99f25f=this['_env'][_0x1dc94c(0x386)];if(_0x99f25f)_0x99f25f[_0x1dc94c(0x28d)]({'sub':this['name'],'dup':this[_0x1dc94c(0x6f9)],..._0x1bebb2});else this['_env'][_0x1dc94c(0x61e)][_0x1dc94c(0x210)](_0x1dc94c(0x415),this[_0x1dc94c(0x4dd)][_0x1dc94c(0x54b)],_0x1dc94c(0x50f),[[{'sub':this['name'],'dup':this['_dupArg'],..._0x1bebb2}]],!![]);}[_0x15560f(0x309)](_0x323c57){const _0x4a0a01=_0x15560f;return this['_read'](_0x4a0a01(0x309),[_0x323c57]);}[_0x15560f(0x3a0)](_0x142e44){const _0x270d6c=_0x15560f;if(this[_0x270d6c(0x877)])return this[_0x270d6c(0x5d3)]('getEntry',[_0x142e44]);const _0x1f8640=this[_0x270d6c(0x309)](_0x142e44);return _0x1f8640===undefined?undefined:{'value':_0x1f8640};}[_0x15560f(0x3a6)](_0x1310d3){const _0x577e7b=_0x15560f;return this['_read'](_0x577e7b(0x84e),[_0x1310d3]);}[_0x15560f(0x292)](_0x400821){const _0x486c56=_0x15560f;return this[_0x486c56(0x309)](_0x400821);}[_0x15560f(0x3ee)](_0x56b126={}){const _0x4fbf79=_0x15560f,_0x11841e=this[_0x4fbf79(0x5d3)](_0x4fbf79(0x3ee),[_0x56b126]),_0x266732=_0x56b126[_0x4fbf79(0x5d0)]===![],_0x2ac13b=_0x56b126[_0x4fbf79(0x4ac)]===![];return _0x36a56c(_0x11841e[_0x4fbf79(0x35e)](([_0x23557e,_0x19380b,_0x4a5d88])=>{if(_0x266732)return _0x23557e;if(_0x2ac13b)return _0x19380b;return _0x4a5d88===undefined?{'key':_0x23557e,'value':_0x19380b}:{'key':_0x23557e,'value':_0x19380b,'version':_0x4a5d88};}));}[_0x15560f(0x300)](_0x322981={}){const _0x170e2c=_0x15560f;return _0x36a56c(this['_read']('getRange',[_0x322981])[_0x170e2c(0x35e)](([_0x439daf])=>_0x439daf));}[_0x15560f(0x88a)](_0x3d8138,_0x2a92fa={}){const _0x49ace2=_0x15560f,_0x5d732b=this[_0x49ace2(0x5d3)]('getRange',[{..._0x2a92fa,'start':_0x3d8138,'end':_0x3d8138,'inclusiveEnd':!![]}]);return _0x36a56c(_0x5d732b[_0x49ace2(0x35e)](([,_0x35cc88])=>_0x35cc88));}[_0x15560f(0x8ce)](_0x34409b={}){const _0x5c8d74=_0x15560f;return this[_0x5c8d74(0x5d3)](_0x5c8d74(0x400),[_0x34409b]);}[_0x15560f(0x65c)](){return{'entryCount':this['getCount']()};}[_0x15560f(0x253)](_0xd41358,_0x21e428,_0x580aed){const _0x811f27=_0x15560f;return this['_write']({'op':_0x811f27(0x253),'key':_0xd41358,'value':_0x21e428,'version':_0x580aed}),Promise[_0x811f27(0x22e)](!![]);}[_0x15560f(0x512)](_0x34a9f2,_0x231280,_0x491f94){return this['_write']({'op':'put','key':_0x34a9f2,'value':_0x231280,'version':_0x491f94}),!![];}[_0x15560f(0x504)](_0x3a1c0a,_0x5ee9a4){const _0x518f5b=_0x15560f;return this[_0x518f5b(0x77c)]({'op':'remove','key':_0x3a1c0a,'value':_0x5ee9a4}),Promise['resolve'](!![]);}['removeSync'](_0x191000,_0xe682){const _0x1e5a03=_0x15560f;return this['_write']({'op':_0x1e5a03(0x504),'key':_0x191000,'value':_0xe682}),!![];}[_0x15560f(0x2d8)](){const _0x2be3bc=_0x15560f;this[_0x2be3bc(0x77c)]({'op':_0x2be3bc(0x734)});}[_0x15560f(0x63e)](){const _0x465a7b=_0x15560f;return this[_0x465a7b(0x77c)]({'op':'clear'}),Promise[_0x465a7b(0x22e)]();}[_0x15560f(0x4fa)](){this['clearSync']();}['openDB'](_0x5058cf,_0x1042f9={}){const _0x4b1087=_0x15560f,_0x4d65a3=typeof _0x5058cf===_0x4b1087(0x559)?_0x5058cf:_0x1042f9,_0x433f57=typeof _0x5058cf===_0x4b1087(0x559)?_0x5058cf[_0x4b1087(0x54b)]:_0x5058cf,_0x451561=new _0x43aa10(this[_0x4b1087(0x4dd)],_0x433f57,_0x4d65a3);return _0x451561['_write']({'op':'ensure'}),_0x451561;}[_0x15560f(0x5df)](){}[_0x15560f(0x2f2)](_0x5cee24){const _0x5affcd=_0x15560f;return this[_0x5affcd(0x430)](_0x5cee24);}async['transaction'](_0x377aa9){return this['_tx'](_0x377aa9);}[_0x15560f(0x3b6)](_0x50ee01){const _0x2b1f60=_0x15560f;return this[_0x2b1f60(0x430)](_0x50ee01);}[_0x15560f(0x430)](_0x336231){const _0x22803e=_0x15560f,_0x44feae=this['_env'];if(_0x44feae[_0x22803e(0x386)])return _0x336231();_0x44feae[_0x22803e(0x386)]=[];let _0x869b11;try{_0x869b11=_0x336231();}catch(_0x3d8b6e){_0x44feae[_0x22803e(0x386)]=null;throw _0x3d8b6e;}const _0x499bd2=_0x44feae[_0x22803e(0x386)];_0x44feae[_0x22803e(0x386)]=null;if(_0x499bd2[_0x22803e(0x68a)])_0x44feae['okdb'][_0x22803e(0x210)]('raw',_0x44feae[_0x22803e(0x54b)],_0x22803e(0x50f),[_0x499bd2],!![]);return _0x869b11;}[_0x15560f(0x62f)](){return{'done'(){}};}['resetReadTxn'](){}}return rawdb={'RawDb':_0x43aa10},rawdb;}var views,hasRequiredViews;function requireViews(){const _0x323c7d=_0x5c70f8;if(hasRequiredViews)return views;hasRequiredViews=0x1;const {RawDb:_0x9dceea}=requireRawdb();class _0x29aca4{constructor(_0x53cc62){const _0x47ed6a=_0x52a3;this[_0x47ed6a(0x609)]=_0x53cc62,this['_n']=(_0x3ac10f,_0x10b0d2,_0x454d5f=!![])=>_0x53cc62[_0x47ed6a(0x61e)]['_call'](_0x47ed6a(0x876),_0x53cc62['name'],_0x3ac10f,_0x10b0d2,_0x454d5f);}get[_0x323c7d(0x62a)](){const _0x52bf7f=_0x323c7d,_0x6556bd=this,_0x4f35bc=this[_0x52bf7f(0x609)],_0x470fbb=_0x2dcd55=>_0x2dcd55?new _0x9dceea(_0x4f35bc,_0x2dcd55[_0x52bf7f(0x54b)],{'dupSort':_0x2dcd55[_0x52bf7f(0x668)]}):undefined,_0x187cdb=_0x4dee6e=>{const _0x53e339=_0x52bf7f,_0x266589=_0x6556bd['_n'](_0x53e339(0x802),[_0x4dee6e],![]);if(!_0x266589)return undefined;const _0x237b27=_0x266589[_0x53e339(0x646)],_0x1cc9e7=new Map(Object[_0x53e339(0x719)](_0x237b27['refs'])),_0x11658b=new Map(Object[_0x53e339(0x719)](_0x266589[_0x53e339(0x6a4)])[_0x53e339(0x35e)](([_0x24a33e,_0x1888f9])=>[_0x24a33e,_0x470fbb(_0x1888f9)]));return{'name':_0x4dee6e,'compiled':{'T':_0x237b27['T'],'reducers':_0x237b27[_0x53e339(0x843)],'refs':_0x1cc9e7,'granId':_0x237b27[_0x53e339(0x2b3)],'type':_0x237b27['type'],'_nidFor':_0x2f7134=>_0x6556bd['_n'](_0x53e339(0x5c2),[_0x4dee6e,_0x2f7134],![])},'viewDb':_0x470fbb(_0x266589[_0x53e339(0x85f)][_0x53e339(0x1bc)]),'metaDb':_0x470fbb(_0x266589['dbs'][_0x53e339(0x64e)]),'itemsDb':_0x470fbb(_0x266589['dbs'][_0x53e339(0x682)]),'bucketsDb':_0x470fbb(_0x266589[_0x53e339(0x85f)]['bucketsDb']),'sortedDb':_0x470fbb(_0x266589['dbs']['sortedDb']),'groupsDb':_0x470fbb(_0x266589[_0x53e339(0x85f)][_0x53e339(0x265)]),'prevDb':_0x470fbb(_0x266589['dbs'][_0x53e339(0x3db)]),'refItemsDbs':_0x11658b,'refTrackingDbs':new Map(Object['entries'](_0x266589[_0x53e339(0x89a)]||{})['map'](([_0xdef704,_0x5383ed])=>[_0xdef704,_0x470fbb(_0x5383ed)])),'stopFn':_0x266589['hasStopFn']?async()=>_0x6556bd['_n'](_0x53e339(0x7e0),[_0x4dee6e]):null,'bootstrapWorker':null};};return{'get':_0x5f3b30=>_0x187cdb(_0x5f3b30),'has':_0x569aed=>_0x6556bd['_n'](_0x52bf7f(0x4dc),[],![])[_0x52bf7f(0x495)](_0x569aed),'keys':()=>_0x6556bd['_n'](_0x52bf7f(0x4dc),[],![])[Symbol['iterator']](),get 'size'(){const _0x42247e=_0x52bf7f;return _0x6556bd['_n'](_0x42247e(0x4dc),[],![])[_0x42247e(0x68a)];},[Symbol[_0x52bf7f(0x344)]]:()=>_0x6556bd['_n'](_0x52bf7f(0x4dc),[],![])['map'](_0x53a6cb=>[_0x53a6cb,_0x187cdb(_0x53a6cb)])[Symbol['iterator']]()};}get['_customReducers'](){const _0x42d5ce=_0x323c7d,_0x52578a=this;return{'has':_0x44e22c=>_0x52578a['_n']('customReducerNames',[],![])[_0x42d5ce(0x495)](_0x44e22c),get 'size'(){const _0x24f30f=_0x42d5ce;return _0x52578a['_n'](_0x24f30f(0x81a),[],![])['length'];},'keys':()=>_0x52578a['_n']('customReducerNames',[],![])[Symbol[_0x42d5ce(0x344)]]()};}async['bootSyncedViewsInline'](){const _0x4205af=_0x323c7d;return this['_n'](_0x4205af(0x395),[]);}async[_0x323c7d(0x4b3)](_0x3e5d88={}){const _0x170ef4=_0x323c7d;return this['_n'](_0x170ef4(0x4b3),[_0x3e5d88]);}async[_0x323c7d(0x67b)](_0x50ff37,_0x5781da){const _0x69cc1f=_0x323c7d;return this['_n'](_0x69cc1f(0x67b),[_0x50ff37,_0x5781da]),{'name':_0x50ff37};}[_0x323c7d(0x309)](_0x28be02,_0x53c716={}){const _0x4d4514=_0x323c7d,_0xca36a5=this['_n'](_0x4d4514(0x309),[_0x28be02,{'preview':_0x53c716?.[_0x4d4514(0x295)]??{}}],![]);if(_0xca36a5==null)return null;const _0x433824=this['_n'](_0x4d4514(0x608),[_0x28be02],![]);if(!_0x433824)return _0xca36a5;const _0x2b3b7a=_0x75564f=>(_0x30324f={})=>this['_n'](_0x4d4514(0x3fb),[_0x28be02,_0x75564f,_0x30324f],![]);if(_0x433824[_0x4d4514(0x53d)]){_0xca36a5[_0x4d4514(0x3fb)]=_0x2b3b7a({'kind':_0x4d4514(0x53d)});for(const _0x15264f of _0x433824[_0x4d4514(0x843)]){if(!_0x15264f[_0x4d4514(0x3fb)])continue;if(_0x15264f[_0x4d4514(0x1d2)]){const _0x1ef2ee=_0xca36a5[_0x15264f[_0x4d4514(0x54b)]];if(_0x1ef2ee?.[_0x4d4514(0x295)]&&Array['isArray'](_0x1ef2ee[_0x4d4514(0x295)])){for(const _0x202cd4 of _0x1ef2ee['preview'])_0x202cd4['items']=_0x2b3b7a({'kind':_0x4d4514(0x279),'reducer':_0x15264f[_0x4d4514(0x54b)],'key':_0x202cd4[_0x4d4514(0x82f)]});}}else _0xca36a5[_0x15264f[_0x4d4514(0x54b)]]&&(_0xca36a5[_0x15264f[_0x4d4514(0x54b)]][_0x4d4514(0x3fb)]=_0x2b3b7a({'kind':'reducer','reducer':_0x15264f[_0x4d4514(0x54b)]}));}}for(const _0x33eec2 of _0x433824[_0x4d4514(0x498)]){if(!_0x33eec2[_0x4d4514(0x53d)])continue;const _0x1f0f67=_0xca36a5[_0x33eec2[_0x4d4514(0x54b)]];if(!_0x1f0f67||typeof _0x1f0f67!==_0x4d4514(0x559))continue;_0x1f0f67[_0x4d4514(0x3fb)]=_0x2b3b7a({'kind':_0x4d4514(0x53d),'ref':_0x33eec2['name']});for(const _0x170d41 of _0x33eec2[_0x4d4514(0x843)]){if(!_0x170d41['items'])continue;if(_0x170d41['grouped']){const _0xba725=_0x1f0f67[_0x170d41['name']];if(_0xba725?.[_0x4d4514(0x295)]&&Array['isArray'](_0xba725[_0x4d4514(0x295)])){for(const _0x668050 of _0xba725[_0x4d4514(0x295)])_0x668050['items']=_0x2b3b7a({'kind':_0x4d4514(0x279),'ref':_0x33eec2['name'],'reducer':_0x170d41[_0x4d4514(0x54b)],'key':_0x668050['key']});}}else _0x1f0f67[_0x170d41[_0x4d4514(0x54b)]]&&(_0x1f0f67[_0x170d41[_0x4d4514(0x54b)]][_0x4d4514(0x3fb)]=_0x2b3b7a({'kind':_0x4d4514(0x762),'ref':_0x33eec2[_0x4d4514(0x54b)],'reducer':_0x170d41[_0x4d4514(0x54b)]}));}}return _0xca36a5;}[_0x323c7d(0x5e5)](_0x2719b8){const _0x3f0032=_0x323c7d;return this['_n'](_0x3f0032(0x5e5),[_0x2719b8],![]);}[_0x323c7d(0x47a)](_0x24e0db,_0x4e37d9={}){const _0xd4767d=_0x323c7d;return this['_n'](_0xd4767d(0x47a),[_0x24e0db,_0x4e37d9],![]);}[_0x323c7d(0x41e)](_0x22baf4,_0x872553={}){const _0x7a254c=_0x323c7d;return this['_n'](_0x7a254c(0x41e),[_0x22baf4,_0x872553],![]);}[_0x323c7d(0x34f)](_0x2ced24,_0x63f2e1={}){const _0x2d595a=_0x323c7d;return this['_n'](_0x2d595a(0x34f),[_0x2ced24,_0x63f2e1],![]);}async[_0x323c7d(0x47e)](){const _0x5a61c2=_0x323c7d;return this['_n'](_0x5a61c2(0x47e),[],![]);}async[_0x323c7d(0x437)](_0x2b0b34){const _0x3e8e56=_0x323c7d;return this['_n'](_0x3e8e56(0x437),[_0x2b0b34],![])??null;}async[_0x323c7d(0x504)](_0x4bf9b0,_0x4d3811={}){const _0x136b6e=_0x323c7d;return this['_n'](_0x136b6e(0x504),[_0x4bf9b0,_0x4d3811]);}async[_0x323c7d(0x1f1)](_0x52e3b4){const _0x2e89d3=_0x323c7d;return this['_n'](_0x2e89d3(0x1f1),[_0x52e3b4]);}async[_0x323c7d(0x45c)](_0x400cf2){const _0x4f1f76=_0x323c7d;return this['_n'](_0x4f1f76(0x45c),[_0x400cf2]);}async[_0x323c7d(0x8da)](_0x2a717b){const _0x381a4d=_0x323c7d;return this['_n'](_0x381a4d(0x8da),[_0x2a717b]);}async[_0x323c7d(0x494)](_0x4c59ac){const _0xaebab=_0x323c7d;return this['_n'](_0xaebab(0x494),[_0x4c59ac]);}[_0x323c7d(0x676)](_0x491978,_0x2ee85b={}){const _0x47bea6=_0x323c7d;return this['_n']('registerReducer',[_0x491978,{'apply':_0x2ee85b&&_0x2ee85b[_0x47bea6(0x32a)]}]);}}return views={'OKDBViews':_0x29aca4},views;}var queue,hasRequiredQueue;function requireQueue(){const _0x19afca=_0x5c70f8;if(hasRequiredQueue)return queue;hasRequiredQueue=0x1;const {OKDBError:_0x3b10df}=requireErrors(),_0x3aba9c=requireBridge();class _0x122935{constructor(_0x556a78){const _0x37ed23=_0x52a3;this[_0x37ed23(0x609)]=_0x556a78,this[_0x37ed23(0x61e)]=_0x556a78[_0x37ed23(0x61e)],this[_0x37ed23(0x58d)]=_0x556a78[_0x37ed23(0x61e)][_0x37ed23(0x58d)][_0x37ed23(0x651)]({'feature':'queue'}),this[_0x37ed23(0x1d5)]=new Set();}['_n'](_0x52e8d4,_0x195e36,_0x1a9be7=!![]){const _0x7cb05e=_0x52a3;return this[_0x7cb05e(0x61e)][_0x7cb05e(0x210)](_0x7cb05e(0x622),this[_0x7cb05e(0x609)][_0x7cb05e(0x54b)],_0x52e8d4,_0x195e36,_0x1a9be7);}['_w'](_0x571c2e,_0x30b30a){const _0x85e28f=_0x52a3;return this[_0x85e28f(0x61e)][_0x85e28f(0x7aa)](this['_n'](_0x571c2e,_0x30b30a));}async[_0x19afca(0x692)](){const _0x1e0c27=_0x19afca;return this['_n'](_0x1e0c27(0x2ea),[]);}async['list'](_0x107575={}){const _0x507992=_0x19afca;return this['_n'](_0x507992(0x47e),[_0x107575],![]);}get['_logsDb'](){const _0x12b65e=_0x19afca,{RawDb:_0x2c211d}=requireRawdb();return this['__logsDb']||(this[_0x12b65e(0x257)]=new _0x2c211d(this[_0x12b65e(0x609)],_0x12b65e(0x287)));}async['_sweepOrphanLogs'](){const _0x1747ea=_0x19afca;return this['_w'](_0x1747ea(0x5db),[]);}async[_0x19afca(0x26b)](_0x9aca0f,_0x15dfbb,_0x52453e={}){const _0x379d58=_0x19afca,{txn:_0x215127,..._0x4b1bc2}=_0x52453e||{};if(_0x215127)return this[_0x379d58(0x88c)](_0x215127,_0x9aca0f,_0x15dfbb,_0x4b1bc2);const _0x26d0f6=this[_0x379d58(0x61e)][_0x379d58(0x2d7)];if(_0x26d0f6&&_0x26d0f6[_0x379d58(0x622)]['length'])_0x26d0f6[_0x379d58(0x8e6)]();const _0x233515=this['_n']('enqueueClaim',[_0x9aca0f,_0x15dfbb,_0x4b1bc2],![]);return this[_0x379d58(0x61e)][_0x379d58(0x7aa)](_0x233515['id'])[_0x379d58(0x801)](_0x2f427a=>{const _0x1c95cb=_0x379d58;if(_0x233515['claimed'])this['_startClaimedSoon'](_0x9aca0f);else try{this['okdb'][_0x1c95cb(0x5fd)][_0x1c95cb(0x2c2)]();}catch{}return _0x2f427a;});}['_startClaimedSoon'](_0x592ff8){queueMicrotask(()=>{const _0x39d61a=_0x52a3;try{this['_n'](_0x39d61a(0x790),[_0x592ff8]);}catch{}});}[_0x19afca(0x88c)](_0x369c25,_0x2aab3b,_0x205e06,_0x296d69){const _0x534fcd=_0x19afca,_0x5c34eb=_0x369c25['raw']??_0x369c25;if(_0x5c34eb[_0x534fcd(0x417)])throw new _0x3b10df('Transaction\x20already\x20closed',_0x534fcd(0x679));if(_0x5c34eb['okdb']&&_0x5c34eb['okdb']!==this[_0x534fcd(0x609)]&&_0x5c34eb[_0x534fcd(0x61e)]['name']!==this['env'][_0x534fcd(0x54b)])throw new _0x3b10df('enqueue\x20txn\x20belongs\x20to\x20a\x20different\x20environment',_0x534fcd(0x630),{'txnEnv':_0x5c34eb[_0x534fcd(0x61e)][_0x534fcd(0x54b)],'queueEnv':this['env'][_0x534fcd(0x54b)]});const _0x5f5876=this['_n'](_0x534fcd(0x38e),[_0x2aab3b,_0x205e06,_0x296d69],![]);if(_0x5f5876[_0x534fcd(0x26a)])return _0x5f5876['id'];if(_0x5f5876[_0x534fcd(0x49e)])_0x369c25['update'](_0x534fcd(0x6ab),_0x5f5876[_0x534fcd(0x49e)][_0x534fcd(0x82f)],_0x5f5876[_0x534fcd(0x49e)][_0x534fcd(0x2ef)],{'ifVersion':_0x5f5876[_0x534fcd(0x49e)]['version']});if(_0x205e06!==undefined)_0x369c25[_0x534fcd(0x253)](_0x534fcd(0x610),_0x5f5876['id'],_0x205e06);_0x369c25[_0x534fcd(0x253)]('~queue_jobs',_0x5f5876['id'],_0x5f5876[_0x534fcd(0x6c7)]);if(typeof _0x5c34eb['onDo']===_0x534fcd(0x640))_0x5c34eb[_0x534fcd(0x6bc)](()=>{const _0x405b93=_0x534fcd;if(this['_n'](_0x405b93(0x842),[_0x5f5876['id'],_0x2aab3b,_0x5f5876['when'],_0x5f5876[_0x405b93(0x3d4)]]))this['_startClaimedSoon'](_0x2aab3b);});return _0x5f5876['id'];}async[_0x19afca(0x1fe)](_0xdd9a5f,_0x47a23a={}){const _0x19bb4c=_0x19afca;if(typeof _0xdd9a5f!==_0x19bb4c(0x2b1)||!_0xdd9a5f)throw new _0x3b10df('claim\x20requires\x20non-empty\x20type',_0x19bb4c(0x5cb));return this['_w'](_0x19bb4c(0x1fe),[_0xdd9a5f,_0x47a23a]);}async[_0x19afca(0x824)](_0x1b1e2c,_0x1d3ba5,_0x4bd00a=null){const _0x46415e=_0x19afca;return this['_w'](_0x46415e(0x824),[_0x1b1e2c,_0x1d3ba5,_0x4bd00a]);}async['heartbeat'](_0x1dfc5f,_0x5b5feb,_0x22ff41=null){const _0x5602df=_0x19afca;return this[_0x5602df(0x824)](_0x1dfc5f,_0x5b5feb,_0x22ff41);}async[_0x19afca(0x429)](_0x232d5f,_0x383512,_0x485f81){const _0x349861=_0x19afca;return this['_w'](_0x349861(0x429),[_0x232d5f,_0x383512,_0x485f81]);}async[_0x19afca(0x248)](_0x49a95a,_0x537e47,_0xdb18df){const _0x144037=_0x19afca;return this['_w'](_0x144037(0x248),[_0x49a95a,_0x537e47,_0xdb18df]);}async[_0x19afca(0x709)](_0x391198,_0x363357,_0x390c4c){const _0x2981f3=_0x19afca;return this[_0x2981f3(0x248)](_0x391198,_0x363357,_0x390c4c);}async[_0x19afca(0x1c2)](_0x1a64ea,_0x2ebb78,_0x471851,_0x2266d0){const _0x4d07de=_0x19afca,_0x333274=_0x471851 instanceof Error?{'message':_0x471851[_0x4d07de(0x211)],'stack':_0x471851['stack']}:_0x471851;return this['_w'](_0x4d07de(0x1c2),[_0x1a64ea,_0x2ebb78,_0x333274,_0x2266d0]);}async[_0x19afca(0x7a7)](_0x572d32,_0x2dff7c,_0x5a3c9b,_0x33f07e){return this['markJobFail'](_0x572d32,_0x2dff7c,_0x5a3c9b,_0x33f07e);}async['releaseClaim'](_0x371156,_0x281a50,_0x4bf53f={}){const _0x489284=_0x19afca;return this['_w'](_0x489284(0x69c),[_0x371156,_0x281a50,_0x4bf53f]);}async[_0x19afca(0x37b)](_0x3abfc8){const _0x64d6fc=_0x19afca;return this['_n'](_0x64d6fc(0x37b),[_0x3abfc8],![]);}async[_0x19afca(0x350)](_0x3439b0,_0x5c5862={},_0x377063={}){const _0x40fbcb=_0x19afca,_0x1bcfde=_0x377063&&_0x377063[_0x40fbcb(0x4b8)];if(!_0x1bcfde)return this['_w'](_0x40fbcb(0x350),[_0x3439b0,_0x5c5862]);const {next:_0x3ce289,version:_0x4dc8c5}=this['_n'](_0x40fbcb(0x4f6),[_0x3439b0,_0x5c5862],![]);_0x1bcfde[_0x40fbcb(0x5b4)]('~queue_jobs',_0x3439b0,_0x3ce289,{'ifVersion':_0x4dc8c5});let _0x4f61e0;if(_0x40fbcb(0x690)in _0x5c5862){if(_0x5c5862[_0x40fbcb(0x690)]===undefined){if(this[_0x40fbcb(0x609)]['getEntry'](_0x40fbcb(0x610),_0x3439b0))_0x1bcfde['remove'](_0x40fbcb(0x610),_0x3439b0);}else _0x1bcfde['put'](_0x40fbcb(0x610),_0x3439b0,_0x5c5862[_0x40fbcb(0x690)]);_0x4f61e0=_0x5c5862['payload'];}else _0x4f61e0=this['env'][_0x40fbcb(0x309)](_0x40fbcb(0x610),_0x3439b0);return{..._0x3ce289,'payload':_0x4f61e0};}async[_0x19afca(0x4ef)](_0x446265,_0x514f04={}){const _0x4b5d3e=_0x19afca,_0xb45fd0=_0x514f04&&_0x514f04['txn'];if(!_0xb45fd0)return this['_w'](_0x4b5d3e(0x4ef),[_0x446265]);if(!_0x446265)throw new _0x3b10df('job\x20id\x20required','BAD_PARAM');if(!this[_0x4b5d3e(0x609)][_0x4b5d3e(0x3a0)](_0x4b5d3e(0x6ab),_0x446265))return![];_0xb45fd0[_0x4b5d3e(0x504)](_0x4b5d3e(0x6ab),_0x446265);if(this['env']['getEntry']('~queue_payloads',_0x446265))_0xb45fd0['remove']('~queue_payloads',_0x446265);if(typeof _0xb45fd0[_0x4b5d3e(0x6bc)]===_0x4b5d3e(0x640))_0xb45fd0['onDo'](()=>this['_n']('removeJobLogsAfterCommit',[_0x446265]));return!![];}async[_0x19afca(0x6be)](_0x4b15ae){return this['_w']('cancelJob',[_0x4b15ae]);}async[_0x19afca(0x2df)](_0x21364a){const _0x34d39f=_0x19afca;return this['_w'](_0x34d39f(0x2df),[_0x21364a]);}async[_0x19afca(0x503)](_0x6e4162,_0x138696,_0x8d7c42){const _0x42672e=_0x19afca,_0xf7b254=this['_n'](_0x42672e(0x38c),[_0x138696??null,_0x8d7c42??0x0,_0x6e4162]),_0x4082fa=0x1f4;for(let _0x57d2d5=0x0;_0x57d2d5<_0xf7b254[_0x42672e(0x68a)];_0x57d2d5+=_0x4082fa){this['_n']('bulkRemoveChunk',[_0xf7b254['slice'](_0x57d2d5,_0x57d2d5+_0x4082fa),_0x57d2d5,_0xf7b254[_0x42672e(0x68a)],_0x138696??null]);if(_0x57d2d5+_0x4082fa<_0xf7b254[_0x42672e(0x68a)])await new Promise(_0xc04f9a=>setImmediate(_0xc04f9a));}return this['_n']('emitClearDone',[_0xf7b254[_0x42672e(0x68a)],_0x138696??null]),await new Promise(_0x75069d=>setImmediate(_0x75069d)),_0xf7b254['length'];}async[_0x19afca(0x729)](_0x1ed70c,_0x5216cf){return this['_clearChunked']('done',_0x1ed70c,_0x5216cf);}async[_0x19afca(0x24b)](_0x136200,_0x2b3233){const _0x1997ef=_0x19afca;return this[_0x1997ef(0x503)]('failed',_0x136200,_0x2b3233);}async[_0x19afca(0x633)](_0x2ce04f,_0x155997){const _0x2b38ca=_0x19afca;return this['_w'](_0x2b38ca(0x633),[_0x2ce04f??null,_0x155997??0x0]);}async[_0x19afca(0x4cf)](_0x544e10,_0x250494){const _0x510068=_0x19afca;return this['_w'](_0x510068(0x4cf),[_0x544e10??null,_0x250494??0x0]);}async[_0x19afca(0x558)](_0x33a954,_0x526c17,_0x3cf30e){const _0x3c50a6=_0x19afca;return this['_w'](_0x3c50a6(0x558),[_0x33a954,_0x526c17,_0x3cf30e]);}async[_0x19afca(0x44b)](_0x48aef6,_0x3c59a1={}){const _0x415448=_0x19afca;return this['_n'](_0x415448(0x44b),[_0x48aef6,_0x3c59a1],![]);}async[_0x19afca(0x7df)](_0x2be363,_0x316763={}){const _0x16f83c=_0x19afca,{txn:_0xfe674c,..._0x4e17c9}=_0x316763||{};if(!_0xfe674c)return this['_w'](_0x16f83c(0x7df),[_0x2be363,_0x4e17c9]);const _0x5cbf57=(_0x4342be,_0x4b146d,_0x473229,_0x1e7d10)=>{const _0x236213=_0x16f83c,_0x22ff37=Math[_0x236213(0x2fe)](Number(_0x4342be));return Number[_0x236213(0x85e)](_0x22ff37)?Math['min'](_0x1e7d10,Math[_0x236213(0x4a0)](_0x473229,_0x22ff37)):_0x4b146d;},_0x1dc8c8=typeof _0x2be363===_0x16f83c(0x2b1)?_0x2be363[_0x16f83c(0x7a8)]():'';if(!_0x1dc8c8)throw new Error(_0x16f83c(0x56c));const _0x539512=_0x5cbf57(_0x4e17c9[_0x16f83c(0x52a)],0x0,0x0,0x3b9aca00);_0xfe674c[_0x16f83c(0x253)](_0x16f83c(0x5da),_0x1dc8c8,{'id':_0x1dc8c8,'tokens':_0x5cbf57(_0x4e17c9['tokens'],_0x539512,0x0,_0x539512),'capacity':_0x539512,'refill_amount':_0x5cbf57(_0x4e17c9[_0x16f83c(0x3fe)],0x0,0x0,0x3b9aca00),'refill_every':_0x5cbf57(_0x4e17c9[_0x16f83c(0x4bf)],0x0,0x0,0x16d*0x18*0x36ee80),'updated':Date[_0x16f83c(0x8cc)]()});}async[_0x19afca(0x71b)](_0x4a266a,_0x40f69a){const _0x3a0d48=_0x19afca;return this['_w'](_0x3a0d48(0x71b),[_0x4a266a,_0x40f69a]);}async[_0x19afca(0x5fe)](_0x443916){const _0x4d8fbd=_0x19afca;return this['_w'](_0x4d8fbd(0x5fe),[_0x443916]);}[_0x19afca(0x545)](_0x5a6989){const _0x581239=_0x19afca,_0x2f3850=this['_n'](_0x581239(0x545),[_0x5a6989],![]);return _0x2f3850===null&&typeof _0x5a6989===_0x581239(0x2b1)&&_0x5a6989[_0x581239(0x7a8)]()?undefined:_0x2f3850;}async[_0x19afca(0x898)](_0xa5162a,_0x1bf5c7){return this['_w']('tryClaimTokens',[_0xa5162a,_0x1bf5c7]);}async['addJobType'](_0x4795e5,_0x4df669={}){const _0x2c74dd=_0x19afca;return this['_w'](_0x2c74dd(0x4e8),[_0x4795e5,_0x4df669]);}async[_0x19afca(0x369)](_0x34246f){const _0x46967a=_0x19afca;return this['_n'](_0x46967a(0x369),[_0x34246f],![]);}async['listJobTypes'](){const _0x5a3b85=_0x19afca;return this['_n'](_0x5a3b85(0x45a),[],![]);}async[_0x19afca(0x2c5)](_0x4212e0){return this['_w']('removeJobType',[_0x4212e0]);}[_0x19afca(0x660)](_0x2ef5df){const _0x722c10=_0x19afca;return this['_n'](_0x722c10(0x660),[_0x2ef5df]);}[_0x19afca(0x86f)](_0x58fba0){return this['_n']('resumeJobType',[_0x58fba0]);}[_0x19afca(0x785)](_0x1ab677){const _0x39444f=_0x19afca;return this['_n'](_0x39444f(0x785),[_0x1ab677]);}async['setJobTypeSchema'](_0x525033,_0x1c4ddd,_0xbaa249=![]){return this['_w']('setJobTypeSchema',[_0x525033,_0x1c4ddd,_0xbaa249]);}async['removeJobTypeSchema'](_0x19d9cb){return this['_w']('removeJobTypeSchema',[_0x19d9cb]);}async[_0x19afca(0x277)](_0x5a23cb,_0x8c5155=0x5){const _0x44f6fe=_0x19afca;return this['_n'](_0x44f6fe(0x277),[_0x5a23cb,_0x8c5155],![]);}async['_reconcile'](_0x46c136){return this['_n']('reconcile',[_0x46c136]);}async[_0x19afca(0x560)](_0xe2a41d=0x7530){const _0x4099f6=_0x19afca;await Promise[_0x4099f6(0x30e)]([...this[_0x4099f6(0x1d5)]][_0x4099f6(0x35e)](_0x5b4199=>_0x5b4199[_0x4099f6(0x1f1)](_0xe2a41d)));const _0x441533=this['_n'](_0x4099f6(0x560),[0x0]);return this[_0x4099f6(0x1d5)][_0x4099f6(0x734)](),_0x441533;}async[_0x19afca(0x1dd)](){const _0x7b3aa0=_0x19afca,_0x4b94c8=this['_n'](_0x7b3aa0(0x1dd),[]);return this[_0x7b3aa0(0x1d5)][_0x7b3aa0(0x734)](),_0x4b94c8;}[_0x19afca(0x781)](_0x42d2ad,_0x307b2a,_0x1741b3){const _0x503607=_0x19afca;let _0x3a16db,_0x41488f;if(Array[_0x503607(0x439)](_0x42d2ad)){if(typeof _0x307b2a==='function')throw new _0x3b10df(_0x503607(0x1bd),'BAD_PARAM');_0x41488f=_0x307b2a??{};if(_0x41488f[_0x503607(0x6f2)]!=null&&typeof _0x41488f['admission']!=='function')throw new _0x3b10df(_0x503607(0x753),'BAD_PARAM');if(_0x42d2ad['length']===0x0)throw new _0x3b10df(_0x503607(0x5f1),'BAD_PARAM');_0x3a16db=_0x42d2ad[_0x503607(0x35e)](_0x555db7=>{const _0xf94544=_0x503607;if(!_0x555db7||typeof _0x555db7[_0xf94544(0x45d)]!==_0xf94544(0x2b1)||!_0x555db7[_0xf94544(0x45d)])throw new _0x3b10df(_0xf94544(0x1c6),_0xf94544(0x5cb));if(typeof _0x555db7[_0xf94544(0x3ea)]!=='function')throw new _0x3b10df(_0xf94544(0x1bf)+_0x555db7['type']+_0xf94544(0x74a),_0xf94544(0x5cb));return{..._0x555db7};});}else{_0x41488f=_0x1741b3??{};if(typeof _0x307b2a!==_0x503607(0x640))throw new _0x3b10df(_0x503607(0x1bf)+_0x42d2ad+'\x22\x20requires\x20a\x20`handler`\x20function',_0x503607(0x5cb));_0x3a16db=[{'type':_0x42d2ad,'handler':_0x307b2a,..._0x1741b3??{}}];}const _0x1b7480=this['okdb'];for(const _0x4a1db7 of _0x3a16db){const _0x48b314=_0x4a1db7[_0x503607(0x3ea)];_0x4a1db7['handler']=function(..._0x2cda73){const _0x28cfd5=_0x503607;return _0x1b7480[_0x28cfd5(0x4e0)]()[_0x28cfd5(0x801)](()=>_0x48b314['apply'](this,_0x2cda73));};}const _0x3909ec=this['_n'](_0x503607(0x781),[_0x3a16db,_0x41488f]),_0x3b14e2=this,_0x1c5dc4={'id':_0x3909ec['id'],'type':_0x3909ec[_0x503607(0x45d)],get 'running'(){const _0x40a788=_0x503607;return _0x3b14e2['_n']('workerState',[_0x3909ec['id']],![])[_0x40a788(0x4c2)];},'isRunning'(){const _0x497320=_0x503607;return _0x3b14e2['_n'](_0x497320(0x8a5),[_0x3909ec['id']],![])[_0x497320(0x4c2)];},async 'stop'(_0x5be162=0x7530){const _0x402814=_0x503607;_0x3b14e2['_n'](_0x402814(0x8b6),[_0x3909ec['id']]);const _0x2f3c63=Date[_0x402814(0x8cc)]()+_0x5be162;while(_0x3b14e2['_n'](_0x402814(0x8a5),[_0x3909ec['id']],![])[_0x402814(0x3e1)]>0x0&&Date['now']()<_0x2f3c63)await new Promise(_0x2a4ac7=>setTimeout(_0x2a4ac7,0x2));_0x3b14e2['_n'](_0x402814(0x2b0),[_0x3909ec['id']]),_0x3aba9c[_0x402814(0x2f7)](),_0x3b14e2[_0x402814(0x1d5)][_0x402814(0x2cb)](_0x1c5dc4);},async 'kill'(){const _0x12b021=_0x503607;_0x3b14e2['_n'](_0x12b021(0x59e),[_0x3909ec['id']]),_0x3b14e2['_workers'][_0x12b021(0x2cb)](_0x1c5dc4);}};return this[_0x503607(0x1d5)]['add'](_0x1c5dc4),_0x1c5dc4;}['worker'](_0x1b2da5){const _0x3c1630=_0x19afca;throw new _0x3b10df(_0x3c1630(0x822)+_0x1b2da5+_0x3c1630(0x644)+_0x1b2da5+_0x3c1630(0x384),'QUEUE_WORKER_REMOVED');}[_0x19afca(0x519)](_0x397326){const _0x5113d9=_0x19afca;return this[_0x5113d9(0x36a)](_0x397326);}}return queue={'OKDBQueue':_0x122935},queue;}var timemachine,hasRequiredTimemachine;function requireTimemachine(){const _0x4f3bc9=_0x5c70f8;if(hasRequiredTimemachine)return timemachine;hasRequiredTimemachine=0x1;const {fromArray:_0x30b292}=requireIterable();class _0x2aed11{constructor(_0x105c3e){const _0x42f844=_0x52a3;this[_0x42f844(0x609)]=_0x105c3e,this['okdb']=_0x105c3e[_0x42f844(0x61e)];const _0x16ac0d=(_0x2bdc6c,_0x8dc876)=>this['_n'](_0x2bdc6c,_0x8dc876,![]);this[_0x42f844(0x4d7)]={'getDiffs':(_0xc5c9b9,_0x5eb316,_0x29d7ca)=>_0x16ac0d('storeGetDiffs',[_0xc5c9b9,_0x5eb316,_0x29d7ca||{}]),'hasDiff':(_0x1ef4ef,_0x4482be,_0x1962c0)=>_0x16ac0d('storeHasDiff',[_0x1ef4ef,_0x4482be,_0x1962c0]),'getHead':(_0x420be9,_0x2dd0f7)=>_0x16ac0d(_0x42f844(0x5dc),[_0x420be9,_0x2dd0f7])??null,'getHeadCount':_0x13f0f4=>_0x16ac0d(_0x42f844(0x6f6),[_0x13f0f4]),'getTotalHeadCount':()=>_0x16ac0d(_0x42f844(0x2c8),[]),'getDiffsInRange':(_0x5ea41c,_0x3f4611,_0x379e14)=>_0x16ac0d('storeGetDiffsInRange',[_0x5ea41c??null,_0x3f4611,_0x379e14]),'getConfig':()=>_0x16ac0d('storeGetConfig',[])??null,'getCursor':()=>this['_n']('getLegacyCursor',[],![])??null,get 'db'(){const _0x366e20=_0x42f844;try{return _0x16ac0d(_0x366e20(0x2c8),[]),{};}catch{return null;}}};}get[_0x4f3bc9(0x710)](){const _0x381e86=_0x4f3bc9,_0x517c2f=(this[_0x381e86(0x609)][_0x381e86(0x5fa)]?.[_0x381e86(0x47e)]?.()||[])[_0x381e86(0x4e1)](_0x38f09a=>String(_0x38f09a[_0x381e86(0x324)]||'')[_0x381e86(0x38a)](_0x381e86(0x261)))[_0x381e86(0x68a)];return{'size':_0x517c2f};}['_n'](_0x108c84,_0x256676,_0xfd4ba2=!![]){const _0x469c3f=_0x4f3bc9;return this['okdb'][_0x469c3f(0x210)]('tm',this[_0x469c3f(0x609)][_0x469c3f(0x54b)],_0x108c84,_0x256676,_0xfd4ba2);}async[_0x4f3bc9(0x54c)](_0x57e99b){const _0x34c3eb=_0x4f3bc9;return this['_n'](_0x34c3eb(0x54c),[_0x57e99b??null]);}async[_0x4f3bc9(0x2e6)](_0x5cbd68){const _0x2390c7=_0x4f3bc9;return this['_n'](_0x2390c7(0x2e6),[_0x5cbd68??null]);}async[_0x4f3bc9(0x550)](){return this['_n']('enableAll',[]);}async[_0x4f3bc9(0x795)](){const _0x394bf1=_0x4f3bc9;return this['_n'](_0x394bf1(0x795),[]);}async['drop'](_0x164bea){const _0x7ff745=_0x4f3bc9;return this['_n'](_0x7ff745(0x4fa),[_0x164bea??null]);}async['dropAll'](){const _0x4211f4=_0x4f3bc9;return this['_n'](_0x4211f4(0x604),[]);}['isEnabled'](_0x4d590a){const _0x451e4f=_0x4f3bc9;return this['_n'](_0x451e4f(0x24f),[_0x4d590a??null],![]);}['list'](){const _0x9d1e5f=_0x4f3bc9;return this['_n'](_0x9d1e5f(0x47e),[],![]);}[_0x4f3bc9(0x717)](_0x4e4e64){const _0x36c78a=_0x4f3bc9;return this['_n'](_0x36c78a(0x717),[_0x4e4e64??null],![]);}['getCursor'](_0xe244c3){const _0x54a170=_0x4f3bc9;if(!_0xe244c3)return this['_n'](_0x54a170(0x383),[],![]);return this['_n'](_0x54a170(0x2e8),[_0xe244c3],![]);}[_0x4f3bc9(0x383)](){const _0x579196=_0x4f3bc9;return this['_n'](_0x579196(0x383),[],![]);}[_0x4f3bc9(0x5bf)](_0x48647e,_0x405261,_0x138469){return this['_n']('getStateAt',[_0x48647e,_0x405261,_0x138469],![]);}[_0x4f3bc9(0x89f)](_0x122797,_0x33deeb,_0x42e1f4){return this['_n']('getHistory',[_0x122797,_0x33deeb,_0x42e1f4||{}],![]);}[_0x4f3bc9(0x4d6)](_0x19068d,_0x53dcad,_0x5728b9){const _0x48f71d=_0x4f3bc9;return this['_n'](_0x48f71d(0x4d6),[_0x19068d??null,_0x53dcad,_0x5728b9],![])[Symbol[_0x48f71d(0x344)]]();}async['flush'](_0x14ce0c){const _0xbd322c=_0x4f3bc9;return this['_n'](_0xbd322c(0x889),[_0x14ce0c??null]);}}return timemachine={'OKDBTimeMachine':_0x2aed11},timemachine;}function _0x273d(){const _0x1cd3bc=['listRoutes','deleted','registerQuantum','_isReader','job.priority\x20must\x20be\x20int','_emit','bus:proc','encryptionKeys','a\x20Buffer\x20or\x20readable\x20stream','removed','readerCheckIntervalMs','Index\x20\x27','regObject','queue:rescheduled','Engine\x20template\x20must\x20be\x20a\x20plain\x20object','Native','_lazyPinned','_keyFns','normalizeOAuthAuthResult','_macro','_sync','ERROR','setPosition(p)\x20{\x20position\x20=\x20p\x20},','getUniqueViolations','committed','\x20>=\x200x80)\x20','newListener','_connections','addBucket','stopView','_commitSessionMutation','info','quarantined','docEntry','patchDeclaration','_closeEnvLocally','unpin','Unknown\x20OKDB\x20transaction\x20error','__syncOverride','Cannot\x20delete\x20','durableCursorFloor','listBlobStatus','admin','done_ttl','notes','auth','embeddings','features','bridge','\x27\x20conflicts\x20with\x20existing\x20OKDB\x20property','job_type.payload_schema\x20must\x20be\x20object|null','lookupByTokenHash','\x22\x20to\x20enable\x20it.','readField','$gte','_ttlByExpiry','~file:blob_status','removeTxn','CHANGEFEED_QUANTUM','$pending','standalone','clock','then','stateInfo','_features','_undoHooks','hasEnv','_detachConsole','_ensurePeerState','encryption:key-changed','randomUUID','_peerDb','_hlc','OKDBForeignKeyError','_emitProc','connectionCount','type:registered','json','register','shift','clearDefaultTTL','createAndStartEngine','_ttlTimerAt','sourceType','isSnapshotComplete','_report','resolvedFields','customReducerNames','_ttlByKey','_openAckDb','bucket.id\x20must\x20be\x20non-empty\x20string','routes','vec:','_listening','view:progress','queue.worker(\x27','isBuffer','markJobHeartbeat','index:ready','dirname','stopHandle','a\x20non-empty\x20string','_modeApplied','getInt32','ctxUpdateStatus','hasNativeBatch','kickOwnedBy','charCodeAt','key','\x27\x20at\x20','issueToken','getNodeRecord','processor:ready','bucket.capacity\x20must\x20be\x20int\x20>=\x200','resumeOpts','vectorStoreStats','setTtl','finished','resolveField','OKDBNotFoundError','null','resetIndexFinish','job_type.defaults.retry_delay\x20must\x20be\x20int\x20>=\x200\x20or\x20null','INDEX_ALREADY_REGISTERED','durableRetryFailed','Invalid\x20primary\x20key\x20type:\x20','before\x20any\x20await,\x20chunk\x20with\x20{limit,\x20start,\x20exclusiveStart},\x20or\x20drop\x20snapshot:true.','announceEnqueued','reducers','typeStats','namespace','flatMap','ENGINE_INVALID_DRIVER','Symbol.asyncIterator','embeddings:indexer:doc:queued','isFeatureEnabled','makeOkdb','run','addSSE','exists','\x27:\x20','OKDBError','job.cron\x20must\x20be\x20string|null','effective','geoQuery','INVALID_TYPE_NAME','clocks','sparse','relay:error','_native','assertStartAllowed','bootSyncedEngines','primaryOkdb','regInfo','inflight','isFinite','dbs','origin','toJSON','match','openDB','indexReady','describeTypeDetailed','snapshotScan','_running','session','authorization','previewTemplate','\x20documents\x20fail\x20validation','setDeltaLimit','instanceTimerArmed','job.max_tries\x20must\x20be\x20int\x20>=\x201,\x20null\x20(unlimited)\x20or\x20Infinity','resumeJobType','INVALID_SCHEMA','FOREIGN_KEY_VIOLATION','_hybridQuery','viewOp','onWindow','onDone','views','useVersions','settledTickets','setInt32','files','uploadTxn','job_type.defaults.backoff_multiplier\x20must\x20be\x20number\x20>=\x201\x20or\x20null','__notImplementedNative','getEngine','_txnIdAtSnapshot','rollback','registerHandler:\x20name\x20must\x20be\x20a\x20non-empty\x20string','module','Can\x20not\x20serialize\x20async\x20iterables\x20without\x20first\x20calling\x20resolving\x20asArray','catalog','localViewStats','port','registerPreparer','bus:env_release','flush','getValues','_cancelTTLTimeout','_enqueueInTxn','lastError','setMaxListeners','\x27\x20on\x20type\x20\x27','CREATED','useReadTransaction\x20read\x20view\x20expired:\x20the\x20snapshot\x20was\x20released\x20at\x20the\x20first\x20await/turn\x20','\x27\x20did\x20not\x20return\x20a\x20valid\x20instance','calculateDelta','RELAY_FULL','feature','listIndexes','_getOidcDiscovery','tryClaimTokens','runDrop','refTrackingDbs','runtimeDeclarations','./native-loader.js','idempotency_key','processor:\x20rebuild\x20must\x20be\x20a\x20function','getHistory','REMOVE','tick','durability','pumping','isSetupMode','workerState','_shouldApplyChange','dropSchema','removeLink','ctxRelease','setToken','destroy','\x20===\x204)\x0a\x09\x09\x09\x09','$lt','_log','reconcileDesired','listTTL','Date','INVALID_INDEX_KEY','runGc','finish','Cannot\x20set\x20enforce\x20schema\x20on\x20','stopWorkerBegin','type:','retryable','_ensureTypeEnv','durableRebuild','Engine\x20driver\x20type\x20must\x20be\x20a\x20non-empty\x20string','job_type.defaults.ttl\x20must\x20be\x20int\x20>=\x200\x20or\x20null','fingerprint','embeddings:embed:settled','awaitIdle','tolerant','refreshThresholdMs','@harperdb/extended-iterable:skip','_buffer','_ttlCompositeKey','REF_VIOLATION_RESOLVED','paused','_ensureTokensType','registerModel','_localViewApi','node','registerIndex','now','config','getCount','Foreign\x20key\x20violation:\x20','durableWorkerStats',':useReadTransaction','size','summary','listPath','native','_assertFiles','validate','__cmd','compare','rebuild','STOPPED','tags\x20must\x20be\x20array\x20or\x20string','authenticateToken','nodeKeys','gen','_pokeHandler','SCHEMA_VALIDATION_FAILED','_blobStatusTxn','dropIndex','dir','hasApi','commit','isHeld','_doHooks','~ref_violations','system:env-sync','processor:paused','resolveField:\x20field\x20required','removeListener','indexer','hasChangelog','failed_ttl','compactStorage','viewDb','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.','ensureType','process()\x20entry\x20\x22','job.bucket_tokens\x20must\x20be\x20int\x20>=1','item:','markJobFail','unique:violation','createEngine','exportEnvsToStream','each\x20process()\x20entry\x20requires\x20a\x20non-empty\x20`type`','NativeLock','createSearch','off','TYPE_NOT_REGISTERED','_path','_nodePublicKey','closeEnvLocally','_rbuf','_warnUnknownOptions','version','node:perf_hooks','grouped','processor:\x20module.path\x20is\x20required','node:http','_workers','lookupAllByName','startAutoCompactCheck','_sinks','envsWithFiles','index','system:proc','Storage\x20resolver\x20must\x20be\x20a\x20function','killAll','http.listen({workers/makeOkdb/primaryOkdb})\x20is\x20no\x20longer\x20supported\x20in\x20the\x20','Schema\x20validation\x20failed\x20for\x20','getAuthOptions','_localViews','fetch','mapError','job_type.defaults.max_tries\x20must\x20be\x20int\x20>=\x201\x20or\x20null','describeType','maxMs','subscriptions-store:\x20addInterest\x20on\x20unknown\x20session\x20','\x27\x20export\x20\x27','durableStats','syncLock','flushTimeoutError','whenSettled','aborted','markSnapshotComplete','_envIndexDb','5181815GNCwDP','stop','cleanup','envPath','statusOpen','onUndo','drainDeadlineMs','slice','job.tag\x20must\x20be\x20string|null','plugins','license:removed','busState','tag\x20too\x20long','defineProperty','claim','processes','_viewCache','mcp','freeze','assertCreateAllowed','byteOffset','fromCharCode','\x22\x20must\x20return\x20{\x20embed(input):\x20Promise<Float32Array>\x20}','SYSTEM_POKE','handlerName','changeEncryptionKey:\x20to','$nin','item','repairBlobRefs','reset','import','flushPoll','_call','message','getUniqueViolation','_reconcileDesired','~ttl:expiry','_wrap','durableDocs','/([^/]+)','ALREADY_EXISTS','ctxSignal','write','index:progress','_formerOrigins','job.type\x20must\x20be\x20non-empty\x20string','unique','family','jsonrpcCode','stack','_advanceHlcOnRecv','socket','some','abs','event','setAutoCompact','read','buildStep','readFieldMany','__sync:acks','_baselines','errors','resolve','sort','HTTP\x20server\x20already\x20running','OKDBSchemaValidationError','bucket\x20too\x20long','getMany','pipeline','_isBootstrap','queue:clear-progress','ready','position','\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer','registerViewReducer','getGcHorizon','stor','/?$','modeApplied','ensureTokensType','_pendingOps','setSchema','_refCache','(worst\x20','_rebuilding','job.status_code\x20must\x20be\x20string|null','setTTL','storage\x20adapter\x20is\x20gone','markJobComplete','publicKey','fromEntries','clearFailed','envNames','_flushDebounce','vector','isEnabled','embeddings:pipeline:ready','puts','READER_HELD_ACROSS_AWAIT','put','_isFar','\x22\x20tokens\x20too\x20large','(no\x20unambiguous\x20bookmark)\x20—\x20consume\x20it\x20in\x20one\x20synchronous\x20block:\x20materialize\x20(e.g.\x20','__logsDb','created','_cursors','guard','body','searchDocs','302786Zlrszi','subscriptions','status_code','open','time-machine:','asyncIterator','__okdb','system:bus_state_change','groupsDb','_ttlState','TXN_INVALID_ACTION','OKDBIndexAlreadyRegisteredError','actionCount','existing','enqueue','\x20dropped\x20(buffer\x20full)','_timerObjs','tries','Map','~emb:models','readTransaction','resolveData','_cmd','listening','boolean','\x27\x20already\x20registered','samplePayloads','stopping','group','__blobStatusDb','\x22\x20must\x20have\x20a\x20start()\x20method','registerDriver','_scheduleTTLSweep','envs','embeddings:doc:status_change','add','queue:done','processorsStatus','selfKey','queue:removed','chunks','bumpVersion','~queue_logs','setProcessingConfig','_stream','processor:\x20cannot\x20combine\x20a\x20closure\x20handler\x20with\x20module:{path,export}.\x20','setPrototypeOf','_key','push','exports','getSchema','\x22\x20is\x20not\x20registered','materializer','getBinary','createEmbedder','ttl:set','preview','ttlState','delta_limit','unresolveField','flushed','attach','setNative','Buffer','embedder\x20request\x20still\x20pending','staticCall','index:reset','upsertLink','equal','system:clock_change','authenticated','dropType','pin','default','kind','dupSort','sweepExpiredTTL','workers','Algorithm\x20factory\x20must\x20return\x20an\x20object\x20with\x20','clone','tokens','9jzHemC','RangeError','stopWorkerAbort','string','license:invalid','granId','starting','kick','test','Algorithm\x20factory\x20must\x20be\x20a\x20function','findOwner','MAX_SAFE_INTEGER','resume','indexOf','\x20of\x20env\x20\x22','OKDBInvalidIndexKeyError','OKDBInvalidPrimaryKeyError','fetchJson','isBootstrap','_OPTION_HINTS','wake','setStorageResolver','onLicenseExpired','removeJobType','MCP_ERROR','queue:retry','storeGetTotalHeadCount','~processes','ctxProgress','delete','_build','asArray','cron','busEmit','err','defaults','createdBy','initialize','setLastClock','noteListenAddr','INVALID_ARGUMENT','_wb','clearSync','authOpen','reidentify','system:ready','links','getIndex','geoConfig','retryJob','description','_handleInProcess','_ringSize','startIndex','processRest()','endsWith','disable',':\x20not\x20implemented\x20in\x20the\x20native\x20build\x20yet','getCursor','sessionsForKey','ensure','recordPeerAck','spki','setAddress','toMs','value','REBUILD_IN_PROGRESS','warn','transactionSync','job_type.','fts:','created_at','_deliverEvent','checkSignals','durableTierLag','cascade','areIndexesReady','index:','setHostPlugins','isType','trunc','INDEXER_DOC_QUEUED','getKeys','invalid\x20job.status:\x20','_retryPending','__esModule','record','versions','replace','embedderCall','stats','get','_wsettle','getAll','reconcile','removeEnvironment','allSettled','_handlerName','hash','restrict','isWanted','maxConnections','getTemplate','_licenseInterval','inputSchema','log\x20entry\x20fields\x20too\x20large\x20(>2KB\x20serialized)','removeResolver','processorsStart','_handlePending','_blobsDir','invalid\x20job_type.status:\x20','.\x20Only\x20primitives,\x20null,\x20Buffers,\x20and\x20arrays\x20are\x20allowed.\x20Got:\x20','ttl','recommended','_bootLog','pending','_pending','job.bucket\x20must\x20be\x20string|null','cursorKey','license','_busFacade','instance','$all','vector-search\x20engine\x20not\x20running:\x20\x22','apply','encryptionKey','unref','ITEM_UPDATE','dirty','once','txn:end','lastIndexOf','BAD_PLUGIN','abort','quarantinedEnvs','isIndex','_jsSchemas','use','continueOnRecoverableError','OKDBNotImplementedNativeError','formerIds','\x20=\x20finishUtf8(','getLoginConfig','_low','_tickCallback','keyFor','$within','getPosition()\x20{\x20return\x20position\x20},','_searchWithScores','registerType','iterator','OKDBProcessor','ms\x20busy=','_timerHandle','wait','handle','stderr','creating','flushTicket','_systemEnv','_statusEnv','listBuckets','updateJob','Server','Referenced\x20type\x20\x27','offset','durableClock','detach','_pendingLocal','ENGINE_INVALID_TEMPLATE','_blobStream','_setPeerState','stringify','fetchRemoteDelta','_admissionStarted','resumed','map','remote','__ttlByKey','getUint32','_update','uninstalled','ensureTypeEnv','changeToClockDb','setCursor','explainIndex','isReader','getJobType','worker','addInterest','process(filter)','ies','getFast','_onStop','setPeerState','sweepExpired','written','$regex','isRunning','TypeError','fields','isCoordinator','_enableChangelog','EMBED_PENDING','fts:registered','getJob','setEncryptionKey','runtimeState','details','_dedupeKey','rowKey','$options','createPipeline','getLegacyCursor','\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.','_adminRelay','_rawTxnBuf','_durableIndexerDocs','restart','_resolveKeys','startsWith','getIndexStatus','clearScan','a\x20string','prepareTxnEnqueue','_pressure','scopedName','\x22\x20is\x20not\x20allowed\x20(it\x20evaluates\x20code);\x20use\x20declarative\x20operators\x20instead','describeAllTypesDetailed','no_action','typesDb','bootSyncedViewsInline','listProviders','der','TXN_ERROR','_envSyncStop','pressure','timer','Database\x20not\x20started','error_stack','$nor','Query\x20operator\x20\x22','getEntry','pendingResponses','NOT_FOUND','level','index:drop','importBlobs','doesExist','listFtsEnvs','_readViewExpired','oauth','txnDone','vecPut','removeSync','_ts','_flushTimer','peers','pause','setKeyBuffer','FTS_BUILD_CONTINUE','getClock','localViewNames','\x0a\x09\x09let\x20','childTransaction',':data','job.error_stack\x20must\x20be\x20string|null','removes','types','label','Plugin\x20name\x20\x27','\x20must\x20be\x20number','let\x20position;\x20let\x20readString\x20=\x20','load','dropping','ceil','engine\x20api\x20has\x20no\x20method\x20\x27','records','started','setLogger','docs','bucket\x20must\x20be\x20object','_getType','engineStop','claim_id',':\x20expected\x20','readerCheck','callStatic','_scheduleFlush','~sub','createEnvironment','_info','listen','EMBEDDER','priority','ctxLog','LICENSE_LIMIT_EXCEEDED','_onPending','engineUninstall','registerExtractor','Blob\x20missing\x20for\x20file:\x20','prevDb','status_message','durableEmbedderInfo','node:path','bucket.tokens\x20must\x20be\x20int\x20>=\x200','field\x20resolver\x20request\x20still\x20pending','inFlight','inline','processor:\x20specify\x20exactly\x20one\x20of\x20handler:\x27<name>\x27\x20or\x20module:{path,export},\x20not\x20both','role','turn','_db','fail','updated','_refIndexDb','handler','hasOwnProperty','drain','Engine\x20template\x20build()\x20is\x20required:\x20','getRange','hook','_defaultEnv','registerIndexDeferred','setMaxBodyBytes','resolveModelDims','bucket','compactLock','node:util','pauseAllAndDrain','payload_schema','reencrypt','_ttlBackoffUntil','items','_facade','meanwhile\x20—\x20the\x20frozen\x20view\x20cannot\x20be\x20kept.\x20Materialize\x20synchronously\x20(e.g.\x20Array.from)\x20','refill_amount','__adminRelay','count','ITEM_CREATE','compaction','loop-lag\x20','runRecord','SCHEMA_COLLECTION_INVALID','_rootDb','nextTick','bucket_tokens','dataView','msgpackr','getTTL','search','registerBucketProjection','embeddings:indexer:ready','assertQueryOptions','ensure:\x20fts\x20entry\x20missing\x20name\x20or\x20fields','signal','released\x20at\x20the\x20first\x20await/turn\x20boundary.\x20Consume\x20ranges\x20before\x20any\x20await,\x20or\x20','searchWithScores','hasType','raw','countByIndex','_closed','_id','shouldApplyChange','__absent','isWorker','snapshot','buckets\x20must\x20be\x20array\x20or\x20string','range','License\x20limit\x20exceeded:\x20','$defs','_lookupAllByName','durableEngineDoc','backup','addRaw','patchSelf','registerAlgorithmFactory','fetchPeer','fromBufferKey','markJobProgress',';return\x20{','160JemiWs','vectorSpace','job.claim_id\x20must\x20be\x20string|null','nodeKey','handleError','_tx','_lock','_makeLazyVectorAdapter','isBun','_durableEmbedderInfo','embedder\x20is\x20gone','job.id\x20must\x20be\x20string','getDefinition','locks','isArray','subscribe','true','_stateDb','byteLength','claimGated','tierList','files.upload:\x20stream','Too\x20many\x20concurrent\x20connections','emitWarning','__ref_index','autoCompact','okdb-node:\x20a\x20background\x20async\x20handler\x20rejected:\x20','Version\x20mismatch\x20for\x20','meta','\x27,\x20cannot\x20map\x20to\x20\x27','headers','INDEX_HAS_CONSUMERS','getJobLogs','208470ZPirdC','_np','setClaiming','non-empty\x20string','readHashRange','bigint','$not','_drainOne','_writeBlob','validateOidcAccessToken','getDefaultTTL','_getPeerState','_timer','alg','listJobTypes','registerFts','start','type','node:cluster','_drain','OKDBTypeAlreadyRegisteredError','encryption\x20key\x20function','tryAcquire','_compactLock','syncBlobs','startNewEnginesFromSync','\x22\x20tokens\x20must\x20be\x20>=\x201',')\x20+\x20readString(source)}','isNaN','targetType','applyChange','durableMarkFail','_durableEngineDoc','_remove','setBridge','_subscribeEvent','WORKER','\x22\x20on\x20\x22','_changefeed','listRuns','getPeerState','_closedHandle','ms\x20p99=','_plugins','TXN_START','unpack','itemsGroups','authenticateRequest','WriteBatch','okdb._openEnvLazy:\x20env\x20\x22','list','_asArray','toBufferKey','floor','_put','readString\x20}','quantum','OKDBUniqueConstraintError','$ref','job_type.defaults.buckets\x20must\x20be\x20array|null','recomputeFields','listPeers','exportBlobs','$eq','registerQuantum:\x20load\x20must\x20be\x20a\x20function','from','loginSelect','next','symbol','4799752QXgJco','_closeReadTransaction','blobPath','resetView','includes','_sub','dropFts','refs','_push','retry_delay','_isOpenForIp','getIndexMeta','isLoopbackIp','release','expiresAt','max','job.idempotency_key\x20must\x20be\x20string|null','isActive','storeEnv','__after','isSync','flushQuantum','drivers','TYPE_ALREADY_REGISTERED','\x27\x20doesn\x27t\x20exist',':clockToChange','pid','keys','_registerType','_attached','reconcilePeer','buffer','field:resolver_registered','reject','bootSyncedViews','job.retry_delay\x20must\x20be\x20int\x20>=\x200','_indexBuild','ensureDesired','INDEXER','txn','existsSync','ensure:\x20type\x20is\x20required','ref','context','_isClosedEnvError','continueIteration','refill_every','describeIndex','embedder','running','listTypes','bucket\x20\x22','node:crypto','_txnBuf','_stopFor','lastClock','_quantum','addrs','events','assign','_reconcilePeer','$size','clearStuck','_typesDb','call','autoCompactTimerArmed','schema:set','\x20must\x20be\x20','attachConsole','getChanges','_store','system:stopped','must\x20be\x20an\x20object;\x20got\x20null','getSecurityNotices',',\x20got\x20','stateNames','_env','TXN_INVALID_OP','storeEnvPath','_afterDurable','filter','hasEmbedderFactory','_nodePrivateKey','\x22\x20is\x20used\x20by:\x20','OKDBIndexNotRegisteredError','IPv4','3.1.3','addJobType','intervalTimer','isInteger','envName','inspect','$or','_subscribed','removeJob','shutdownTimeout','resetFts','inBatch','job.finished\x20must\x20be\x20number|null','queue-worker','DOC_STATUS_CHANGE','planUpdateJob','digest','job_type.payload_schema.definition\x20must\x20be\x20object','extend','drop','connected','getSelfNode','(?:/(.*))?','hlc','listRecords','path','~fts:envs','compact','_clearChunked','remove','setReadBuffer','_changeToClockDb','.\x20Primary\x20keys\x20must\x20be\x20string\x20or\x20number.\x20Got:\x20','$mod','_ensureDbs','outgoing','ctxHeartbeat','doc','indexStats','code','batch','resumeAllAfterDrain','prototype','putSync','isTypeEmpty','Engine\x20template\x20id\x20must\x20be\x20a\x20non-empty\x20string','embedBatch','migrate','_blobStatusDb','INVALID_OPTIONS','spawn','$elemMatch','returnRecoverableErrors','Index\x20\x22','_listPeers','max_concurrency','listVectorStores','note','prefix','forceAfterMs','KNOWN_OPTIONS','mean','hex','near','removeEventListener','SYSTEM_STOPPED','resetIndexBegin','capacity','OKDBTypeNotRegisteredError','_nm','_logChange','_onPoke','ttl:expired','MAXIMUM_KEY','unique:violation_resolved','processEverything()','lmdb','refreshTtl','getVector','_handles','active','DONE','isWellFormed','repair','\x22\x20not\x20found','_blobPath','view','_meta','files.registerExtractor:\x20extractor\x20must\x20be\x20a\x20function','\x20=\x20source[position++]\x0a\x09\x09if\x20(','job_type.defaults.','listIndexKeys','waiting','system:env_release','getBucket','setUint32','item:create','definition','blobsDir','new','name','enable','prefetch','files\x20feature\x20not\x20available','enforced','enableAll','_indexBuilds','[log-sink]\x20','PLUGIN_DEPENDENCY_MISSING','iterable','lock','advanceHlcOnRecv','validateRouteInput','appendJobLog','object','QUERY_OPERATOR_FORBIDDEN','_setKey','emb','defaultTTL','buckets','lastTxnId','stopAll','pokeHandler','processors','lockHeld','\x27\x20does\x20not\x20exist\x20in\x20type\x20\x27','importFromFile','__ttlCancelledGen','String\x20does\x20not\x20fit\x20in\x20target\x20buffer','OKDBSchemaCollectionError','fts:reset','_startAdmission','INDEXER_DOC_DONE','bucket\x20id\x20required','head','processor:progress','async','6dRbJyM','has','system:drain','maxBodyBytes','send','getStatus','sessionId','createLoginState','setClaimGated','Unknown\x20transaction\x20action:\x20','__peers','timerArmed','.\x20Valid:\x20','resolution','getRaw','job\x20type\x20must\x20be\x20object','(source)\x20=>\x20{','setMode','limit','resetting','parseBearer','log\x20entry\x20must\x20be\x20a\x20string\x20or\x20object','~fts:','UNIQUE_CONSTRAINT','done','reason','_getNodeRecord','getMaxBodyBytes','_ackDb','log','INVALID_STATE','timeMachine','embed-worker','resetIndex','embeddings:indexer:doc:done','FTS_FLUSH_TIMEOUT','PLUGIN_ALREADY_REGISTERED','embed','join','min','log\x20entry\x20message\x20required','clearTTL','_admissionTimer','ENGINE_DRIVER_MISSING_START','sync','_buckets','killWorker','properties','ctxEmit','_pdb','emit','_onItem','backoffUntil','dropped','stopped','_validateOidcAccessToken','getFloat64','mode','job.claim_expires\x20must\x20be\x20number|null','createIndexer','writeKey','set_null','_getRaw','toLowerCase','_tids','_okdbAdminAttached','INDEXER_DOC_FAILED','Cannot\x20register\x20plugins\x20after\x20start','update','~system','listLinks','logChange','limits','__HOLD__','attachFeed','__stateDb','sha256','txn:rollback','_markSeen','getStateAt','toISOString','listViolations','nidFor','actions','byIndex','getEmbedderFactory','subarray','dataEnv','BAD_HOST','\x20>\x204)\x20{\x0a\x09\x09\x09if\x20(','envSize','BAD_PARAM','inactive','OKDBIndexHasConsumersError','\x22)\x20before\x20open()','Engine\x20driver\x20already\x20registered:\x20\x22','values','enforce','getOidcDiscovery','_read','registerEmbedderFactory','pop','chunk\x20strategy\x20must\x20be\x20a\x20function','_locks','\x20does\x20not\x20exist','allowUnsafe','~queue_buckets','sweepOrphanLogs','storeGetHead','signalWant','UNKNOWN_RANGE_OPTION','close','_status','getRun','getPeerAcks','PLUGIN_NAME_CONFLICT','split','getMeta','IPv6','fieldPath','job.',';\x20got\x20','opts','uninstallEngine','getSession','~log','FTS_READY_TIMEOUT','1317NZtTgq','diag','process(entries)\x20requires\x20at\x20least\x20one\x20entry','_clockListener','$in','patchConfig','bootRuntimeDeclarations','ensureFeed','targetKey','hasIndex','Invalid\x20onDelete\x20rule\x20\x27','processor','~log_entry','_readBuf','_pumper','removeBucket','forEach','createWorker','limitOf','_debounceTimer','callBatch','dropAll','_onFeedChange','ttlTimer','setFlushNotify','itemsPlan','env','ttlMs','consumeLoginState','backoff_multiplier','resetUnknownOptionsWarned','OKDB','_kbuf','~queue_payloads','bus','_envs','_setTTL','proc','INDEX_NOT_REGISTERED','listNodes','durableMarkDone','bucket.updated\x20must\x20be\x20number','setPeersFn','endIndex','select','processorHold','_http','okdb','driver','_started','callRows:\x20unexpected\x20row\x20stride\x20','queue','TXN_END','build','empty\x20string','iterate','_teardownNative','\x27\x20is\x20already\x20registered','acquiredAt','_viewState','filterSessionsForType','retry','cause','error','useReadTransaction','TXN_ENV_MISMATCH','cookies','_isWriter','retryFailed','_jsFactories','TXN_ROLLBACK','vector-search','a\x2032-character\x20key\x20or\x20a\x20function\x20returning\x20one','openEnv','OKDBForeignKeyDeleteError','_makePipelineApi','licenses','Type\x20\x22','enabled','clearAsync','set','function','reverse','total','_syncExpiresAtField','\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','args','compiled','dims','_detachLog','debug','nativeCode','_assertRangeOptions','toFixed','_range','metaDb',')\x0a\x09\x09}\x0a\x09\x09','captureStackTrace','child','job.buckets\x20entries\x20must\x20be\x20objects','updated_at','indexer\x20engine\x20not\x20running:\x20\x22','engines','flushMaxWait','host','_writerWatchdogInterval','rows','algorithm\x20has\x20no\x20method\x20','patch','getStats','Embedder\x20factory\x20for\x20\x22','loop-lag','schema','pauseJobType','_callMacro','queue:enqueued','_isOpen','_setTTLEntry','~engines','ttl:clear','backupRoot','dup','login','setKick','_staticCall','registerTemplate','_listeners','Array.from)\x20before\x20any\x20await.','change','_durableWorkerStats','hasBody','pump','_keyListener','env:removed','isWriter','registerReducer','exportToFile','getBlobStatus','TXN_CLOSED','HIGH_SENTINEL','create','return','__ttlByExpiry','_readerCheckInterval','STOPPING','_stopAutoCompactCheck','_feed','itemsDb','turns','offWindow','utf8Write','setDefaultTTL','getViolation','options','__tokenSecret','length','2633106yiWHad','_ensureDesired','_ttlParseComposite','claim_expires','transaction','payload','Engine\x20template\x20kind\x20must\x20be\x20\x22engine\x22\x20or\x20\x22pipeline\x22:\x20','_ensure','createQueryTester','PUT','_typeKeys','ONLINE','failed','attachOKDB','invalid\x20log\x20level:\x20','getResolvedOptions','_resolveFilter','releaseClaim','STARTED','applyInterestDelta','query','hybridQuery','pinned','encodeInto','undefined','refItemsDbs','refreshReadTxn','sseSend','data','inNativeCall','INACTIVE','-----BEGIN\x20PUBLIC\x20KEY-----\x0aMCowBQYDK2VwAyEAacrkExPrhxNVHyeQBLDwg8xfm1OwyxDAPNdGXABYS2s=\x0a-----END\x20PUBLIC\x20KEY-----','~queue_jobs','balanced','OKDBAlreadyExistsError','utf8','_detachLogSink','token','fts',':emb:','node:stream','isDeepStrictEqual','_clearTTL','free','_maxConnections','inclusiveEnd','valuesForKey','registerHandler','job.status_message\x20must\x20be\x20string|null','onDo','_syncLock','cancelJob','http.listen:\x20host\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20a\x20non-empty\x20array\x20of\x20non-empty\x20strings','ENGINE_INVALID_TYPE','remoteAddress','debounceTimer','_waitNative','nextTurn','before\x20any\x20await\x20—\x20or\x20opt\x20into\x20useReadTransaction:\x27tolerant\x27\x20to\x20keep\x20reading\x20while\x20','materialize\x20them\x20(Array.from)\x20while\x20the\x20view\x20is\x20live.','job','loadedPath','_openEnvLazy','job\x20must\x20be\x20object','HIGH_FREQ_EVENTS','boundary\x20(a\x20pinned\x20read\x20txn\x20blocks\x20LMDB\x20free-page\x20reuse).\x20Do\x20all\x20consistent\x20reads\x20','Cannot\x20openEnv(\x22','engineType','concat','action','tag','mkdirSync','forceResync','6169527RdRYht','-worker','replaceMember','catch','_run','_logEnv','_processorStops','ftsQuery','processor:\x20module\x20\x27','header','~processes:cmd','_ensureEnv','handleDurableClock','$streamId','registerHandler:\x20fn\x20must\x20be\x20a\x20function','Missing\x20plugin:\x20','Environment\x20\x22','getRunningEngine','offsetOf','number','SKIP','$exists','txn\x20ops\x20must\x20be\x20an\x20array','servers','_clockToChangeDb',':txnRange','_root','upload','nativeBinaryPath','holder','admission','__lock','library\x20(okdb\x20node-model\x202.0).\x20For\x20multi-process\x20HTTP\x20serving\x20use\x20the\x20okdb\x20','indexContent','storeGetHeadCount','no\x20write\x20has\x20landed.\x20Writes/commit\x20are\x20unaffected.','maxExtra','_dupArg','~ttl:key','allocUnsafeSlow','_callRows','exportJSON','FIELD_RESOLVER_PENDING','includeViolations','onDelete','_autoCompactTimer','item:pending','getOpenWarning','changeEncryptionKey','subscriptions-store:\x20open()\x20not\x20called','system','_seen','for','completeJob','spec','processorsParticipating','OKDBInvalidValueError','detachFeed','preparer\x20must\x20be\x20a\x20function','Unique\x20constraint\x20violated\x20on\x20','_registrations','_durableIndexerStats','feed:','sourceKey','pumpEnvSync','_subsV2','_defaultEnvObj','status','byLabel','entries','req','updateBucket','buildOwnRow','Error','system:type_drop','immediate','_listenAddr','VERSION_MISMATCH','ttlStats','pipelines','throw','ITEM_PENDING','_release','export','.\x20Add\x20a\x20license\x20that\x20includes\x20\x22','clearDone','STARTING','Transaction\x20already\x20closed','encoder','_settleRead','apiCall','nextExpiry','_makeIterator','tools','compact/repair\x20already\x20in\x20progress\x20for\x20this\x20environment','SYSTEM_CLOCK_CHANGE','clear','end','processorsStop','reg','return\x20fromCharCode(','durableMarkDelete','\x20=\x20source[position++]\x0a\x09\x09\x09else\x0a\x09\x09\x09\x09return\x20fromCharCode(','job.tags\x20must\x20be\x20array','fts:drop','find','max_tries','evict','writeBlob','_uid','REVERSE_INDEX','ms\x20mean=','listModels','queue:failed','_noChangelog','bus:drain','_rebuild','durableRetryDoc','\x22\x20requires\x20a\x20`handler`\x20function','_sweepInProgress','registerEnv','_isLoopbackIp','ITEM_REMOVE','state','ENGINE_DRIVER_ALREADY_REGISTERED','logCap','uninstall','process\x20options.admission\x20must\x20be\x20a\x20function','streamRead','http','failures','exclusiveStart','job_type.max_concurrency\x20must\x20be\x20int\x20>=\x201\x20or\x20null','cursor','__warned','_dedupeMax','SUB_ENV','writerStatus','setWake','callAsync','typeSubDbs','acquired','reducer','_subsV2Obj','getByPrefix','listTemplates','Feature\x20not\x20available\x20on\x20free\x20tier:\x20','_writer','_handlePoke','engine','_callPacked','okdb-node:\x20unknown\x20callback\x20id\x20','percentile',':index:','createWriteFacade','bucket.tokens\x20cannot\x20exceed\x20capacity','resetCursor','turnWaiters','.\x20The\x20active\x20license\x20does\x20not\x20enable\x20\x22','\x22\x20must\x20be\x20a\x20plain\x20object','sseClose','bootSyncedPipelines','loaded','there\x20is\x20no\x20`http`\x20option\x20—\x20the\x20HTTP\x20server\x20exists\x20only\x20when\x20db.http.listen(port)\x20is\x20called','logCap\x20must\x20be\x20null\x20or\x20integer\x20in\x20[','references','$where','~processes:desired','_write','_keepAlive','validateBlobIntegrity','job_type.payload_schema.enforce\x20must\x20be\x20boolean','pageSize','process','_license','scheduled','address','drainJobType','Use\x20module:{path,export}\x20alone,\x20or\x20handler:\x27<name>\x27\x20for\x20a\x20built-in.','storageStats','isOrchestrator','processor:resumed','sync:apply','_quantumGate','applyOps','runPoll','parse','bind','startClaimed','install','isOAuthEmailAllowed','_settleWaiters','_fail','disableAll','\x20log\x20entr','_handle','152xApOEm','ensure:\x20view\x20entry\x20missing\x20name\x20or\x20definition','_claimGated','importJSON','FOREIGN_KEY_DELETE_RESTRICTED','okdb-','_draining','listRefViolations','Type\x20\x27','OKDBVersionMismatchError','_assertOpen','~lock','ExtendedIterable','api','unregisterTarget','failJob','trim','unreg','_settleWrite','target','resolveField:\x20type\x20required','describeChunk','drives','taken','_settled','getEmbedderSchema','Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results','afterTurn','describeIndexes','functions','$near','_windowCbs','\x20(required\x20by\x20','storeEnvName','\x20│\x20','last','exportToStream','Embedder\x20factory\x20must\x20be\x20a\x20function','bucket.refill_every\x20must\x20be\x20int\x20>=\x200','type:drop','resolveField:\x20options.batch\x20must\x20be\x20a\x20function','engineStart','_envWide'];_0x273d=function(){return _0x1cd3bc;};return _0x273d();}var files,hasRequiredFiles;function requireFiles(){const _0x49f0ca=_0x5c70f8;if(hasRequiredFiles)return files;hasRequiredFiles=0x1;const _0x293589=require$$0,{Readable:_0x1f0080}=require$$1,{OKDBError:_0x1359b6,optionsArg:_0x1df2f5,invalidArgument:_0x399824}=requireErrors(),{RawDb:_0x3c4c24}=requireRawdb();async function _0x4be563(_0x3ae78c){const _0x44da65=_0x52a3;if(Buffer[_0x44da65(0x823)](_0x3ae78c))return _0x3ae78c;if(_0x3ae78c instanceof Uint8Array)return Buffer[_0x44da65(0x48d)](_0x3ae78c);if(typeof _0x3ae78c===_0x44da65(0x2b1))return Buffer[_0x44da65(0x48d)](_0x3ae78c);const _0x1727ee=[];for await(const _0x444867 of _0x3ae78c)_0x1727ee[_0x44da65(0x28d)](Buffer[_0x44da65(0x823)](_0x444867)?_0x444867:Buffer[_0x44da65(0x48d)](_0x444867));return Buffer[_0x44da65(0x6cf)](_0x1727ee);}class _0x6955f6{constructor(_0x2c62dc){const _0x1dac82=_0x52a3;this['env']=_0x2c62dc,this[_0x1dac82(0x61e)]=_0x2c62dc[_0x1dac82(0x61e)];}['_n'](_0x42a875,_0x1469fc,_0x5188eb=!![]){const _0x198f17=_0x52a3;return this[_0x198f17(0x61e)][_0x198f17(0x210)](_0x198f17(0x87a),this[_0x198f17(0x609)][_0x198f17(0x54b)],_0x42a875,_0x1469fc,_0x5188eb);}[_0x49f0ca(0x45c)](){return!![];}[_0x49f0ca(0x1f1)](){}async[_0x49f0ca(0x692)](){this['_n']('ensure',[]);}async[_0x49f0ca(0x454)](_0x37d807,_0x10bbdf){const _0x159ed1=_0x49f0ca;return this[_0x159ed1(0x61e)][_0x159ed1(0x7aa)](this['_n'](_0x159ed1(0x740),[_0x37d807,await _0x4be563(_0x10bbdf)]));}get[_0x49f0ca(0x517)](){const _0xcd154a=_0x49f0ca;return this['__blobStatusDb']||(this[_0xcd154a(0x27a)]=new _0x3c4c24(this[_0xcd154a(0x609)],_0xcd154a(0x7fb)));}async[_0x49f0ca(0x8e2)](_0xa0359e){const _0x220a58=_0x49f0ca;return this[_0x220a58(0x517)][_0x220a58(0x430)](_0xa0359e);}async[_0x49f0ca(0x6ef)](_0x26b744){const _0x2dec0e=_0x49f0ca,{id:_0x47e57a,stream:_0x2cfa47,mime:mime='application/octet-stream',path:_0x423b9d='',txn:txn=null}=_0x1df2f5(_0x26b744);if(!_0x47e57a)throw _0x399824('files.upload:\x20id',_0x2dec0e(0x828),_0x47e57a);if(!_0x2cfa47)throw _0x399824(_0x2dec0e(0x440),_0x2dec0e(0x7cb),_0x2cfa47);const _0x4c8153=await _0x4be563(_0x2cfa47);if(txn){const _0x20c31f=this['_n'](_0x2dec0e(0x87b),[_0x47e57a,_0x4c8153,{'mime':mime,'path':_0x423b9d}]);return txn['put']('~files',_0x47e57a,_0x20c31f[_0x2dec0e(0x304)]),txn[_0x2dec0e(0x6bc)](()=>this['_n'](_0x2dec0e(0x3aa),[_0x20c31f[_0x2dec0e(0x3ef)]])),txn[_0x2dec0e(0x1f5)](()=>this['_n']('txnUndone',[_0x20c31f['hook']])),_0x20c31f[_0x2dec0e(0x304)];}return this[_0x2dec0e(0x61e)][_0x2dec0e(0x7aa)](this['_n'](_0x2dec0e(0x6ef),[_0x47e57a,_0x4c8153,{'mime':mime,'path':_0x423b9d}]));}[_0x49f0ca(0x309)](_0x2e7cda){return this['_n']('get',[_0x2e7cda],![])??null;}['streamByHash'](_0x2d34a9){const _0x13dc92=_0x49f0ca,_0x4fe3ce=this[_0x13dc92(0x53c)](_0x2d34a9);if(!_0x293589[_0x13dc92(0x4b9)](_0x4fe3ce))throw Object[_0x13dc92(0x4cc)](new Error('Blob\x20not\x20found:\x20'+_0x2d34a9),{'status':0x194});return this[_0x13dc92(0x358)](_0x2d34a9);}['_blobStream'](_0x4fb7cc){const _0x276b4b=0x100*0x400,_0x17b07f=this;let _0x16e163=0x0;return new _0x1f0080({'highWaterMark':_0x276b4b,'read'(){const _0x28e7d3=_0x52a3;let _0x256a07;try{const _0x54c8d3=_0x17b07f['_n'](_0x28e7d3(0x450),[_0x4fb7cc,_0x16e163,_0x276b4b],![]);_0x256a07=Buffer['isBuffer'](_0x54c8d3)?_0x54c8d3:Buffer['from'](_0x54c8d3);}catch(_0x19bd49){this['destroy'](_0x19bd49);return;}_0x16e163+=_0x256a07[_0x28e7d3(0x68a)];if(_0x256a07[_0x28e7d3(0x68a)])this[_0x28e7d3(0x28d)](_0x256a07);if(_0x256a07[_0x28e7d3(0x68a)]<_0x276b4b)this[_0x28e7d3(0x28d)](null);}});}async[_0x49f0ca(0x228)](_0x48a8a1){const _0x54a49a=_0x49f0ca;return this[_0x54a49a(0x61e)][_0x54a49a(0x72d)](this['_n'](_0x54a49a(0x228),[_0x48a8a1],![]));}async['stream'](_0x357803){const _0x75c91c=_0x49f0ca,_0x483756=this[_0x75c91c(0x309)](_0x357803);if(!_0x483756)throw Object['assign'](new Error('File\x20not\x20found:\x20'+_0x357803),{'status':0x194});const _0x447fde=this[_0x75c91c(0x53c)](_0x483756[_0x75c91c(0x310)]);if(!_0x293589['existsSync'](_0x447fde))throw Object[_0x75c91c(0x4cc)](new Error(_0x75c91c(0x3da)+_0x357803),{'status':0x194});return{'stream':this['_blobStream'](_0x483756[_0x75c91c(0x310)]),'record':_0x483756};}async[_0x49f0ca(0x504)](_0x41ac13,_0x26e769){const _0x51e16b=_0x49f0ca,{txn:txn=null}=_0x1df2f5(_0x26e769);if(txn){const _0x2ed099=this['_n'](_0x51e16b(0x7fc),[_0x41ac13]);txn['remove']('~files',_0x41ac13),txn[_0x51e16b(0x6bc)](()=>this['_n'](_0x51e16b(0x3aa),[_0x2ed099[_0x51e16b(0x3ef)]])),txn[_0x51e16b(0x1f5)](()=>this['_n']('txnUndone',[_0x2ed099[_0x51e16b(0x3ef)]]));return;}return this['okdb'][_0x51e16b(0x7aa)](this['_n'](_0x51e16b(0x504),[_0x41ac13]));}async[_0x49f0ca(0x8d4)](_0xab8f5d,_0x5a662e={}){const _0x51989c=_0x49f0ca;return this['_n'](_0x51989c(0x8d4),[_0xab8f5d,_0x5a662e],![]);}[_0x49f0ca(0x678)](_0x35be34){const _0x212734=_0x49f0ca;return this['_n'](_0x212734(0x678),[_0x35be34],![]);}[_0x49f0ca(0x7ec)](){const _0x2d4599=_0x49f0ca;return this['_n'](_0x2d4599(0x7ec),[],![]);}['gcOrphanedBlobs'](_0x1d4c42){const {minAgeMs:_0x4ebb76}=_0x1df2f5(_0x1d4c42);return this['_n']('gcOrphanedBlobs',[_0x4ebb76??null]);}[_0x49f0ca(0x3d9)](_0x12da4c,_0x3a1faf){const _0x4ce43b=_0x49f0ca;if(typeof _0x3a1faf!==_0x4ce43b(0x640))throw new _0x1359b6(_0x4ce43b(0x53f),_0x4ce43b(0x5cb));const _0x567086=this['_n'](_0x4ce43b(0x3d9),[_0x12da4c,_0x3a1faf]);return()=>this['_n']('unregisterExtractor',[_0x567086]);}async[_0x49f0ca(0x6f5)](_0x14bc43){return _0x14bc43=_0x1df2f5(_0x14bc43),this['_n']('indexContent',[_0x14bc43]);}async[_0x49f0ca(0x464)](_0x10bdc2){const _0x32a0d2=_0x49f0ca,{peerIds:_0x182e87}=_0x1df2f5(_0x10bdc2);return this['_n'](_0x32a0d2(0x464),[_0x182e87??null]);}['_blobPath'](_0x2ca0a0){const _0x51b58e=_0x49f0ca;if(typeof _0x2ca0a0!==_0x51b58e(0x2b1))return require$$4['join'](this[_0x51b58e(0x31b)],_0x2ca0a0[_0x51b58e(0x1f7)](0x0,0x2),_0x2ca0a0[_0x51b58e(0x1f7)](0x2));return this['_n'](_0x51b58e(0x493),[_0x2ca0a0],![]);}get[_0x49f0ca(0x31b)](){const _0x28aaa9=_0x49f0ca;return this['_n'](_0x28aaa9(0x549),[],![]);}}return files={'OKDBFiles':_0x6955f6},files;}var engines,hasRequiredEngines;function requireEngines(){const _0x48b371=_0x5c70f8;if(hasRequiredEngines)return engines;hasRequiredEngines=0x1;const {OKDBError:_0x503949}=requireErrors(),_0x44bedd=requireBridge(),_0x8a0f9c=new Set([_0x48b371(0x4c1),_0x48b371(0x8ee),'vector-search',_0x48b371(0x590)]),_0x44df1c=new Set(['count','info',_0x48b371(0x647)]),_0x44dbf8=[_0x48b371(0x8d7),'patchConfig',_0x48b371(0x203),_0x48b371(0x859),_0x48b371(0x791),'stop',_0x48b371(0x752)],_0x35dc60={'embedder':new Set([_0x48b371(0x647),_0x48b371(0x8bd)])},_0x3b4f27=new Set([_0x48b371(0x291),_0x48b371(0x5fa),_0x48b371(0x4f4)]);class _0x5867cf{constructor(_0x3b30dc,_0x3a29b3,_0x30fe55,_0x45d552){const _0xc8d35a=_0x48b371;this[_0xc8d35a(0x3fc)]=_0x3b30dc,this[_0xc8d35a(0x82f)]=_0x3a29b3,this[_0xc8d35a(0x45d)]=_0x30fe55,this[_0xc8d35a(0x54b)]=_0x45d552,this['engineType']=_0x30fe55;}[_0x48b371(0x3d1)](){const _0x4a0fd6=_0x48b371;return this[_0x4a0fd6(0x3fc)]['_n'](_0x4a0fd6(0x7e2),[this[_0x4a0fd6(0x45d)],this[_0x4a0fd6(0x54b)]],![]);}get['doc'](){const _0x31b1fd=_0x48b371;return this[_0x31b1fd(0x3d1)]()[_0x31b1fd(0x50c)];}get[_0x48b371(0x4d7)](){const _0x442673=_0x48b371,_0x2e5bff=this[_0x442673(0x3d1)]()[_0x442673(0x4a3)];return _0x2e5bff?this[_0x442673(0x3fc)][_0x442673(0x61e)]['_envs'][_0x442673(0x309)](_0x2e5bff):undefined;}get[_0x48b371(0x7e4)](){const _0x37ee11=_0x48b371;return this[_0x37ee11(0x3d1)]()[_0x37ee11(0x7e4)];}get['enabled'](){const _0x2a4d7d=_0x48b371;return this[_0x2a4d7d(0x3d1)]()[_0x2a4d7d(0x63d)];}get[_0x48b371(0x374)](){const _0x5921c5=_0x48b371;return this[_0x5921c5(0x3d1)]()['isRunning'];}get[_0x48b371(0x717)](){const _0x51141c=_0x48b371;return this[_0x51141c(0x3d1)]()[_0x51141c(0x717)];}get['reason'](){const _0x747379=_0x48b371;return this[_0x747379(0x3d1)]()[_0x747379(0x589)];}get[_0x48b371(0x88d)](){const _0x1d7f95=_0x48b371,_0x532c7e=this[_0x1d7f95(0x3d1)]()[_0x1d7f95(0x88d)];return _0x532c7e?Object[_0x1d7f95(0x4cc)](new Error(_0x532c7e['message']),{'code':_0x532c7e[_0x1d7f95(0x50e)]}):null;}get['runtimeState'](){const _0x3232a2=_0x48b371;return this[_0x3232a2(0x3d1)]()[_0x3232a2(0x37d)];}get[_0x48b371(0x61f)](){const _0x45581d=_0x48b371;return this['_facade'][_0x45581d(0x4a7)][_0x45581d(0x309)](this[_0x45581d(0x45d)])??null;}get['api'](){const _0x34108f=_0x48b371;if(!this[_0x34108f(0x3d1)]()[_0x34108f(0x8e5)])return null;const _0x51f822=this;return new Proxy({},{'get'(_0x3f2764,_0x35f64b){const _0x5c4a9f=_0x34108f;if(typeof _0x35f64b===_0x5c4a9f(0x490)||_0x35f64b===_0x5c4a9f(0x801))return undefined;if(_0x35dc60[_0x51f822[_0x5c4a9f(0x45d)]]&&_0x35dc60[_0x51f822[_0x5c4a9f(0x45d)]][_0x5c4a9f(0x571)](_0x35f64b))return _0x51f822[_0x5c4a9f(0x3fc)]['_n']('apiCall',[_0x51f822[_0x5c4a9f(0x45d)],_0x51f822['name'],_0x35f64b,[]],![])[_0x5c4a9f(0x2ef)];if(_0x51f822['type']===_0x5c4a9f(0x8ee)&&_0x35f64b==='flush')return async(_0x4fb1ea={})=>{const _0x1eacd2=_0x5c4a9f,_0x1ec828=(_0x1933c1,..._0x589161)=>_0x51f822[_0x1eacd2(0x3fc)]['_n'](_0x1eacd2(0x72e),[_0x51f822[_0x1eacd2(0x45d)],_0x51f822[_0x1eacd2(0x54b)],_0x1933c1,_0x589161],!![])[_0x1eacd2(0x2ef)],_0x468188=_0x1ec828(_0x1eacd2(0x656),_0x4fb1ea??{}),_0x3276c6=Date[_0x1eacd2(0x8cc)]();for(;;){const _0xd21dbc=await _0x51f822[_0x1eacd2(0x3fc)][_0x1eacd2(0x61e)][_0x1eacd2(0x7d6)](()=>_0x1ec828(_0x1eacd2(0x20f)));if(_0xd21dbc[_0x1eacd2(0x759)]>=_0xd21dbc[_0x1eacd2(0x56d)])return;Date[_0x1eacd2(0x8cc)]()-_0x3276c6>=_0x468188&&_0x1ec828(_0x1eacd2(0x1eb),_0x4fb1ea??{},_0xd21dbc),await new Promise(_0x374c18=>setTimeout(_0x374c18,0x3));}};return(..._0x440783)=>{const _0x3d7728=_0x5c4a9f,_0x1cc378=()=>_0x51f822[_0x3d7728(0x3fc)]['_n']('apiCall',[_0x51f822[_0x3d7728(0x45d)],_0x51f822[_0x3d7728(0x54b)],_0x35f64b,_0x440783],!![]),_0x42ee6f=_0x4dd522=>{const _0x2274a4=_0x3d7728;if(_0x4dd522&&_0x4dd522[_0x2274a4(0x41a)])throw new TypeError(_0x2274a4(0x3c2)+_0x35f64b+'\x27');return _0x4dd522[_0x2274a4(0x2ef)];};if(_0x8a0f9c['has'](_0x51f822[_0x3d7728(0x45d)])&&!_0x44df1c[_0x3d7728(0x571)](_0x35f64b)){const _0x2336e6=_0x51f822[_0x3d7728(0x3fc)][_0x3d7728(0x61e)];return _0x2336e6[_0x3d7728(0x302)](()=>_0x2336e6[_0x3d7728(0x7d6)](_0x1cc378))[_0x3d7728(0x801)](_0x42ee6f);}if(_0x3b4f27[_0x3d7728(0x571)](_0x51f822[_0x3d7728(0x45d)]))try{return Promise['resolve'](_0x42ee6f(_0x1cc378()));}catch(_0xc06978){return Promise[_0x3d7728(0x4b2)](_0xc06978);}return _0x42ee6f(_0x1cc378());};}});}async[_0x48b371(0x3bf)](_0x543076={}){const _0x1cf537=_0x48b371;return await this[_0x1cf537(0x3fc)]['_nm'](_0x1cf537(0x3bf),[this[_0x1cf537(0x45d)],this[_0x1cf537(0x54b)],_0x543076]),this;}async[_0x48b371(0x45c)](){const _0x5572ed=_0x48b371;await this[_0x5572ed(0x3fc)][_0x5572ed(0x52c)](_0x5572ed(0x7c1),[this[_0x5572ed(0x45d)],this['name']]);}async['stop'](_0x5d46da={}){const _0x4bbdca=_0x48b371;await this[_0x4bbdca(0x3fc)][_0x4bbdca(0x52c)](_0x4bbdca(0x3c9),[this[_0x4bbdca(0x45d)],this[_0x4bbdca(0x54b)],_0x5d46da]);}async[_0x48b371(0x7e5)](_0x2d153d={}){const _0x1dc25a=_0x48b371;return await this[_0x1dc25a(0x3fc)][_0x1dc25a(0x52c)]('patchDeclaration',[this['type'],this[_0x1dc25a(0x54b)],_0x2d153d]),this;}async[_0x48b371(0x752)](){const _0x53d8a9=_0x48b371;await this[_0x53d8a9(0x3fc)][_0x53d8a9(0x52c)](_0x53d8a9(0x3d8),[this[_0x53d8a9(0x45d)],this[_0x53d8a9(0x54b)]]);}}class _0x51587e{constructor(_0x3c8449,_0x435fb9=null,_0x379ba4=null){const _0x5ab28f=_0x48b371;this[_0x5ab28f(0x61e)]=_0x3c8449,this[_0x5ab28f(0x4eb)]=_0x435fb9,this[_0x5ab28f(0x788)]=_0x435fb9===null,this[_0x5ab28f(0x6ee)]=_0x379ba4||this,this[_0x5ab28f(0x4a7)]=this[_0x5ab28f(0x6ee)]===this?_0x2e72b2(this):this['_root'][_0x5ab28f(0x4a7)],this[_0x5ab28f(0x536)]=new Map();}['_n'](_0x36f394,_0x5b4bb0,_0x496dac=!![]){const _0x7584a6=_0x48b371;return this[_0x7584a6(0x61e)][_0x7584a6(0x210)](_0x7584a6(0x655),this['envName'],_0x36f394,_0x5b4bb0,_0x496dac);}['_nm'](_0x51698c,_0x4e9d83){const _0x27ec6d=_0x48b371;return this['okdb']['_callMacro'](_0x27ec6d(0x655),this[_0x27ec6d(0x4eb)],_0x51698c,_0x4e9d83,!![]);}get[_0x48b371(0x609)](){const _0x286d5b=_0x48b371;return this[_0x286d5b(0x4eb)]?this[_0x286d5b(0x61e)][_0x286d5b(0x609)](this[_0x286d5b(0x4eb)]):null;}['_wrap'](_0x5b933c){const _0x276aa0=_0x48b371;if(!_0x5b933c)return null;let _0x1047b4=this[_0x276aa0(0x536)]['get'](_0x5b933c[_0x276aa0(0x82f)]);return!_0x1047b4&&(_0x1047b4=new _0x5867cf(this,_0x5b933c['key'],_0x5b933c[_0x276aa0(0x45d)],_0x5b933c[_0x276aa0(0x54b)]),this['_handles'][_0x276aa0(0x63f)](_0x5b933c[_0x276aa0(0x82f)],_0x1047b4)),_0x1047b4;}[_0x48b371(0x27c)](_0x30cf4d,_0x22c965){const _0x15ab14=_0x48b371;if(!_0x30cf4d||typeof _0x30cf4d!=='string')throw new _0x503949(_0x15ab14(0x8bb),_0x15ab14(0x6c0),{'type':_0x30cf4d});if(!_0x22c965||typeof _0x22c965!==_0x15ab14(0x559))throw new _0x503949('Engine\x20driver\x20for\x20\x22'+_0x30cf4d+_0x15ab14(0x773),_0x15ab14(0x847),{'type':_0x30cf4d});if(typeof _0x22c965[_0x15ab14(0x45c)]!==_0x15ab14(0x640))throw new _0x503949('Engine\x20driver\x20for\x20\x22'+_0x30cf4d+_0x15ab14(0x27b),_0x15ab14(0x59b),{'type':_0x30cf4d});const _0xfee335=this[_0x15ab14(0x6ee)];if(_0xfee335[_0x15ab14(0x4a7)]['has'](_0x30cf4d))throw new _0x503949(_0x15ab14(0x5cf)+_0x30cf4d+'\x22',_0x15ab14(0x750),{'type':_0x30cf4d});const _0x352c9a=_0x44bedd[_0x15ab14(0x7cf)](_0x22c965,this[_0x15ab14(0x61e)]),_0x372264=_0x44dbf8[_0x15ab14(0x4e1)](_0xc401e9=>typeof _0x22c965[_0xc401e9]===_0x15ab14(0x640)),_0x43e328=_0x22c965['docs']&&typeof _0x22c965[_0x15ab14(0x3c6)]===_0x15ab14(0x559)?_0x22c965['docs']:{};this['okdb']['_call'](_0x15ab14(0x655),null,_0x15ab14(0x27c),[_0x30cf4d,{'$id':_0x352c9a,'has':_0x372264,'docs':_0x43e328}]),_0xfee335[_0x15ab14(0x4a7)]['_set'](_0x30cf4d,_0x22c965);}get[_0x48b371(0x620)](){const _0x760154=_0x48b371;return this['okdb'][_0x760154(0x210)]('engines',null,'orchestratorStarted',[],![]);}get['orchestrator'](){const _0x51c8e7=this;return{get '_started'(){const _0x10e46a=_0x52a3;return _0x51c8e7[_0x10e46a(0x620)];}};}[_0x48b371(0x66c)](_0x47629e){const _0x3651ed=_0x48b371;if(!_0x47629e||typeof _0x47629e!==_0x3651ed(0x559))throw new _0x503949(_0x3651ed(0x7d1),_0x3651ed(0x357));if(!_0x47629e['id']||typeof _0x47629e['id']!==_0x3651ed(0x2b1))throw new _0x503949(_0x3651ed(0x514),'ENGINE_INVALID_TEMPLATE');if(![_0x3651ed(0x769),_0x3651ed(0x234)][_0x3651ed(0x495)](_0x47629e['kind']))throw new _0x503949(_0x3651ed(0x691)+_0x47629e['id'],_0x3651ed(0x357));if(typeof _0x47629e[_0x3651ed(0x624)]!==_0x3651ed(0x640))throw new _0x503949(_0x3651ed(0x3ed)+_0x47629e['id'],'ENGINE_INVALID_TEMPLATE');const _0x3037ae=this['okdb'],_0x336770=typeof _0x47629e['inputSchema']==='function';return this['_n'](_0x3651ed(0x66c),[{'id':_0x47629e['id'],'kind':_0x47629e[_0x3651ed(0x2a7)],'family':_0x47629e[_0x3651ed(0x21f)]??null,'engineType':_0x47629e[_0x3651ed(0x6ce)]??null,'pipelineFamily':_0x47629e['pipelineFamily']??null,'recommended':_0x47629e[_0x3651ed(0x31f)]===!![],'summary':_0x47629e[_0x3651ed(0x8d3)]??null,'description':_0x47629e[_0x3651ed(0x2e0)]??null,'inputSchema':_0x336770?null:_0x47629e[_0x3651ed(0x316)]??null,'inputSchemaFn':_0x336770?()=>_0x47629e[_0x3651ed(0x316)](_0x3037ae):null,'defaults':_0x47629e[_0x3651ed(0x2d1)]??null,'notes':Array[_0x3651ed(0x439)](_0x47629e['notes'])?_0x47629e[_0x3651ed(0x7ef)]:[],'links':Array[_0x3651ed(0x439)](_0x47629e[_0x3651ed(0x2dc)])?_0x47629e['links']:[],'build':(_0x3ee612,_0x4d89cb)=>_0x47629e[_0x3651ed(0x624)](_0x3ee612??{},{'okdb':_0x3037ae,'envName':_0x4d89cb??null})}],![]);}[_0x48b371(0x765)](_0x1ba1de){const _0x442d22=_0x48b371;return this['_n'](_0x442d22(0x765),[_0x1ba1de??null],![]);}[_0x48b371(0x314)](_0x4dc3c4){const _0x39d265=_0x48b371;return this['_n'](_0x39d265(0x314),[_0x4dc3c4],![]);}['previewTemplate'](_0x58cde5,_0x399e3a,_0x59d058){const _0xf7f2ae=_0x48b371;return this['_n'](_0xf7f2ae(0x86a),[_0x58cde5,_0x399e3a,_0x59d058??this[_0xf7f2ae(0x4eb)]],![]);}[_0x48b371(0x884)](){const _0x4b15cc=_0x48b371;return this['_n'](_0x4b15cc(0x884),[],![]);}async[_0x48b371(0x45c)](){const _0x4e2905=_0x48b371;return this[_0x4e2905(0x52c)](_0x4e2905(0x45c),[]);}async[_0x48b371(0x1f1)](){const _0x51403b=_0x48b371;return this[_0x51403b(0x52c)](_0x51403b(0x1f1),[]);}async['createEngine'](_0xa742c5,_0x536314,_0x16a5d1={},_0x2956c5={},_0x3955a3={}){const _0x4ffe9a=_0x48b371;return this['_wrap'](await this[_0x4ffe9a(0x52c)](_0x4ffe9a(0x1c4),[_0xa742c5,_0x536314,_0x16a5d1,_0x2956c5,_0x3955a3]));}async[_0x48b371(0x814)](_0x3ba833,_0x1aadf1,_0x4cbc0f={},_0x1c8c54={},_0x3fa865={}){const _0x3b43d1=_0x48b371;return this['_wrap'](await this[_0x3b43d1(0x52c)]('createAndStartEngine',[_0x3ba833,_0x1aadf1,_0x4cbc0f,_0x1c8c54,_0x3fa865]));}[_0x48b371(0x87e)](_0x141b37,_0x2a33b2){const _0x2109eb=_0x48b371;return this[_0x2109eb(0x215)](this['_n'](_0x2109eb(0x87e),[_0x141b37,_0x2a33b2],![]));}[_0x48b371(0x6e5)](_0x5ed788,_0x4f8d4b){const _0x89648a=_0x48b371;return this[_0x89648a(0x215)](this['_n']('getRunningEngine',[_0x5ed788,_0x4f8d4b],![]));}[_0x48b371(0x47e)](_0x29dc2c){const _0x427157=_0x48b371;return this['_n']('list',[_0x29dc2c??null],![])['map'](_0x51fdd8=>this[_0x427157(0x215)](_0x51fdd8));}async[_0x48b371(0x388)](_0x391e9c,_0x1df6ac){const _0x165a99=_0x48b371;return this[_0x165a99(0x215)](await this[_0x165a99(0x52c)](_0x165a99(0x388),[_0x391e9c,_0x1df6ac]));}async[_0x48b371(0x5eb)](_0x21a2e6,_0x20a5ee){const _0x11fd62=_0x48b371;return this[_0x11fd62(0x536)][_0x11fd62(0x2cb)](_0x21a2e6+':'+_0x20a5ee),this[_0x11fd62(0x52c)]('uninstallEngine',[_0x21a2e6,_0x20a5ee]);}async[_0x48b371(0x465)](_0x12b753){const _0x311da3=_0x48b371;return this[_0x311da3(0x52c)](_0x311da3(0x465),[_0x12b753]);}async[_0x48b371(0x85a)](){const _0x47a36e=_0x48b371;return this['_nm'](_0x47a36e(0x85a),[]);}}function _0x2e72b2(_0x3fc1aa){const _0x2c7e68=_0x48b371,_0x3f7f2d=new Map();return{'has':_0x7d32a9=>_0x3f7f2d[_0x2c7e68(0x571)](_0x7d32a9)||_0x3fc1aa['okdb']['_call'](_0x2c7e68(0x655),null,'hasDriver',[_0x7d32a9],![]),'get':_0x5ea1af=>_0x3f7f2d[_0x2c7e68(0x309)](_0x5ea1af),'set':()=>{const _0x49ee15=_0x2c7e68;throw new _0x503949('use\x20engines.registerDriver()',_0x49ee15(0x5cb));},'_set':(_0x321616,_0x236f08)=>_0x3f7f2d[_0x2c7e68(0x63f)](_0x321616,_0x236f08),'keys':()=>_0x3f7f2d[_0x2c7e68(0x4ac)](),'entries':()=>_0x3f7f2d['entries'](),'values':()=>_0x3f7f2d[_0x2c7e68(0x5d0)](),get 'size'(){const _0x227949=_0x2c7e68;return _0x3f7f2d[_0x227949(0x8d2)];},[Symbol['iterator']]:()=>_0x3f7f2d[Symbol[_0x2c7e68(0x344)]]()};}class _0x163d0d{constructor(_0x49db17,_0x5c7012=null){const _0x4910ae=_0x48b371;this[_0x4910ae(0x61e)]=_0x49db17,this[_0x4910ae(0x4eb)]=_0x5c7012;}['_n'](_0x310d7d,_0x4151b4,_0x134664=!![]){const _0x46ce68=_0x48b371;return this['okdb'][_0x46ce68(0x210)](_0x46ce68(0x723),this['envName'],_0x310d7d,_0x4151b4,_0x134664);}[_0x48b371(0x52c)](_0x383c05,_0x5df928){const _0x3a77b0=_0x48b371;return this['okdb']['_callMacro'](_0x3a77b0(0x723),this[_0x3a77b0(0x4eb)],_0x383c05,_0x5df928,!![]);}get[_0x48b371(0x377)](){const _0x16d2df=_0x48b371;return this[_0x16d2df(0x4eb)]===null;}async[_0x48b371(0x2ea)](_0xd9328a){const _0x378a29=_0x48b371;return this['_n'](_0x378a29(0x2ea),[_0xd9328a]);}async['get'](_0x3471d9,_0x3e9ef5){const _0x23f2ba=_0x48b371;return this['_n'](_0x23f2ba(0x309),[_0x3471d9,_0x3e9ef5??null],![]);}async['getRecord'](_0x5054f1,_0x26ed95){return this['_n']('getRecord',[_0x5054f1,_0x26ed95??null],![]);}async[_0x48b371(0x47e)](_0x3f0626){const _0xfa8a5c=_0x48b371;return this['_n'](_0xfa8a5c(0x47e),[_0x3f0626??null],![]);}async[_0x48b371(0x4ff)](_0x32107e={}){const _0x1b61f2=_0x48b371;return this['_n']('listRecords',[_0x32107e?.[_0x1b61f2(0x4eb)]??null],![]);}[_0x48b371(0x8d7)](_0x4a4d42,_0x3ee6ba){return this['_n']('validate',[_0x4a4d42,_0x3ee6ba??null],![]);}async[_0x48b371(0x67b)](_0x56c937){const _0x180ac1=_0x48b371;return this[_0x180ac1(0x52c)](_0x180ac1(0x67b),[_0x56c937]);}async[_0x48b371(0x5b4)](_0x5a19c2,_0x4fee67){const _0x4b3ecb=_0x48b371;return this[_0x4b3ecb(0x52c)](_0x4b3ecb(0x5b4),[_0x5a19c2,_0x4fee67]);}async[_0x48b371(0x1f1)](_0x282766){const _0x2e1a8d=_0x48b371;return this[_0x2e1a8d(0x52c)](_0x2e1a8d(0x1f1),[_0x282766]);}async[_0x48b371(0x7b0)](_0x2c4060){const _0x2d01db=_0x48b371;if(!_0x2c4060||typeof _0x2c4060!==_0x2d01db(0x559)||!_0x2c4060[_0x2d01db(0x54b)]||!_0x2c4060['engines'])return _0x2c4060;for(let _0x5ad0d6=0x0;_0x5ad0d6<0x3;_0x5ad0d6++)await new Promise(_0xfc174d=>setImmediate(_0xfc174d));try{const _0x2d799b=this[_0x2d01db(0x4eb)]!==null?await this[_0x2d01db(0x309)](_0x2c4060[_0x2d01db(0x54b)]):_0x2c4060[_0x2d01db(0x609)]?await this[_0x2d01db(0x309)](_0x2c4060[_0x2d01db(0x609)],_0x2c4060['name']):null;return _0x2d799b||_0x2c4060;}catch{return _0x2c4060;}}async[_0x48b371(0x45c)](_0x1e350e){const _0x44d997=_0x48b371;return this['_settled'](await this[_0x44d997(0x52c)](_0x44d997(0x45c),[_0x1e350e]));}async[_0x48b371(0x388)](_0x53b094){const _0x5eb1e4=_0x48b371;return this[_0x5eb1e4(0x7b0)](await this[_0x5eb1e4(0x52c)](_0x5eb1e4(0x388),[_0x53b094]));}async[_0x48b371(0x8da)](_0x1484ab){const _0x43ca9e=_0x48b371;return this[_0x43ca9e(0x52c)](_0x43ca9e(0x8da),[_0x1484ab]);}async[_0x48b371(0x6d6)](_0x2bafdf,_0x2bca1f,_0x235d10){const _0x3c6c5c=_0x48b371;return this['_nm'](_0x3c6c5c(0x6d6),[_0x2bafdf,_0x2bca1f,_0x235d10]);}async[_0x48b371(0x504)](_0xa4cc7){const _0x1b256a=_0x48b371;return this[_0x1b256a(0x52c)](_0x1b256a(0x504),[_0xa4cc7]);}async['stopAll'](){const _0x24311e=_0x48b371;return this[_0x24311e(0x52c)](_0x24311e(0x560),[]);}async[_0x48b371(0x775)](){const _0x472d1f=_0x48b371;return this['_nm'](_0x472d1f(0x775),[]);}[_0x48b371(0x2b8)](_0x3403ad,_0x31763d){const _0xb1b092=_0x48b371;return this['_n'](_0xb1b092(0x2b8),[_0x3403ad,_0x31763d],![]);}}return engines={'OKDBEngines':_0x51587e,'OKDBPipelines':_0x163d0d,'OKDBEngineHandle':_0x5867cf},engines;}var functions,hasRequiredFunctions;function requireFunctions(){const _0x26722c=_0x5c70f8;if(hasRequiredFunctions)return functions;hasRequiredFunctions=0x1;const {optionsArg:_0x208b79}=requireErrors(),_0x1e0275=Number(process.env.OKDB_FN_POLL_MS)||0x14;class _0x35cf84{constructor(_0x18aef5,_0x19e6ff=null){const _0x25c171=_0x52a3;this[_0x25c171(0x61e)]=_0x18aef5,this['envName']=_0x19e6ff??_0x25c171(0x5b5);}get[_0x26722c(0x609)](){const _0xe55d04=_0x26722c;return this['okdb'][_0xe55d04(0x612)][_0xe55d04(0x309)](this[_0xe55d04(0x4eb)])??null;}['_n'](_0x2c9b72,_0xada4b5=[],_0x69c0ba=!![]){const _0x388d01=_0x26722c;try{return this[_0x388d01(0x61e)][_0x388d01(0x210)](_0x388d01(0x7b5),this['envName'],_0x2c9b72,_0xada4b5,_0x69c0ba);}catch(_0x4c0558){throw _0x5d79c8(_0x4c0558);}}async[_0x26722c(0x52c)](_0x2af5b8,_0x540aae=[]){const _0x1ffad8=_0x26722c;try{return await this[_0x1ffad8(0x61e)][_0x1ffad8(0x661)](_0x1ffad8(0x7b5),this['envName'],_0x2af5b8,_0x540aae,!![]);}catch(_0x4c9246){throw _0x5d79c8(_0x4c9246);}}async[_0x26722c(0x47e)](){const _0x221d75=_0x26722c;return this['_n'](_0x221d75(0x47e),[],![]);}async['get'](_0x3b4ddd){const _0x55c322=_0x26722c;return this['_n'](_0x55c322(0x309),[_0x3b4ddd],![]);}async[_0x26722c(0x67b)](_0x1da80c){const _0x3e0804=_0x26722c;return this['_n'](_0x3e0804(0x67b),[_0x1da80c]);}async['update'](_0x1aded9,_0x10e9e0={}){const _0x3f26b0=_0x26722c;return this['_n'](_0x3f26b0(0x5b4),[_0x1aded9,_0x10e9e0]);}async[_0x26722c(0x504)](_0x3b3ed1){const _0x1bfcc0=_0x26722c;return this['_n'](_0x1bfcc0(0x504),[_0x3b3ed1]);}async[_0x26722c(0x473)](_0x2d9c4a){const _0x1114eb=_0x26722c,{functionName:functionName=null}=_0x208b79(_0x2d9c4a);return this['_n'](_0x1114eb(0x473),[{'functionName':functionName}],![]);}async[_0x26722c(0x5e1)](_0x2356bd){const _0x3ec345=_0x26722c;return this['_n'](_0x3ec345(0x5e1),[_0x2356bd],![]);}async['recordRun'](_0x16caf0){const _0x198f2d=_0x26722c;return _0x16caf0=_0x208b79(_0x16caf0,_0x198f2d(0x84c)),this['_n']('recordRun',[_0x16caf0]);}async['run'](_0x219549,_0x4a00ae=null,_0x4492c5={}){const _0x4507a1=_0x26722c,_0x273be0={..._0x4492c5},_0x41869f=_0x273be0[_0x4507a1(0x411)];if(_0x41869f)_0x273be0['aborted']=!!_0x41869f['aborted'];delete _0x273be0[_0x4507a1(0x411)];const _0x512f36=await this[_0x4507a1(0x52c)]('runStart',[_0x219549,_0x4a00ae,_0x273be0]),_0x467479=this['okdb'],_0x2aced4=()=>_0x467479[_0x4507a1(0x5fd)][_0x4507a1(0x2c2)]();if(_0x41869f&&typeof _0x41869f['addEventListener']===_0x4507a1(0x640))_0x41869f['addEventListener']('abort',_0x2aced4,{'once':!![]});let _0x5cef06=![];try{for(;;){const _0x456973=_0x467479[_0x4507a1(0x5fd)][_0x4507a1(0x6c4)](_0x1e0275);let _0xacb18d;try{_0xacb18d=await _0x467479[_0x4507a1(0x661)]('functions',this[_0x4507a1(0x4eb)],_0x4507a1(0x78d),[_0x512f36,!!_0x41869f?.['aborted']],![],![]);}catch(_0x41d4b7){_0x5cef06=!![];throw _0x5d79c8(_0x41d4b7);}if(!_0xacb18d||_0xacb18d[_0x4507a1(0x7fe)]!==!![])return _0x5cef06=!![],_0x467479['_pumper'][_0x4507a1(0x2c2)](),_0xacb18d;if(_0xacb18d['progressed'])_0x467479[_0x4507a1(0x5fd)]['wake']();await _0x456973;}}finally{if(_0x41869f&&typeof _0x41869f[_0x4507a1(0x527)]===_0x4507a1(0x640))_0x41869f[_0x4507a1(0x527)]('abort',_0x2aced4);if(!_0x5cef06)try{_0x467479[_0x4507a1(0x210)](_0x4507a1(0x7b5),this[_0x4507a1(0x4eb)],_0x4507a1(0x899),[_0x512f36],![]);}catch{}}}async[_0x26722c(0x295)](_0x41affd={},_0x58203b=null,_0x292d74={}){const _0x5af68c=_0x26722c;return this[_0x5af68c(0x52c)](_0x5af68c(0x295),[_0x41affd,_0x58203b,_0x292d74]);}async[_0x26722c(0x1f1)](){}}function _0x5d79c8(_0x3fb22c){const _0x5c4e48=_0x26722c;if(_0x3fb22c&&_0x3fb22c['details']&&_0x3fb22c[_0x5c4e48(0x37e)][_0x5c4e48(0x404)])_0x3fb22c['_runRecord']=_0x3fb22c[_0x5c4e48(0x37e)][_0x5c4e48(0x404)];return _0x3fb22c;}return functions={'OKDBFunctions':_0x35cf84},functions;}var processor={'exports':{}},lock,hasRequiredLock;function requireLock(){const _0x7d7104=_0x5c70f8;if(hasRequiredLock)return lock;hasRequiredLock=0x1;const {optionsArg:_0xb024cc}=requireErrors();class _0x21d276{constructor(_0x49916c,_0x6e3383){const _0x14a601=_0x52a3;this[_0x14a601(0x431)]=_0x49916c,this[_0x14a601(0x418)]=_0x6e3383;}['_n'](_0x5ad877,_0x25e076=[]){const _0x3e4c79=_0x52a3;return this['_lock']['_n'](_0x5ad877,[this[_0x3e4c79(0x418)],..._0x25e076]);}[_0x7d7104(0x8e7)](){const _0x180b23=_0x7d7104;return this['_n'](_0x180b23(0x8e7));}get['acquiredAt'](){const _0x228351=_0x7d7104;return this['_n'](_0x228351(0x629));}[_0x7d7104(0x6f1)](){const _0x5de5e5=_0x7d7104;return this['_n'](_0x5de5e5(0x6f1));}['extend'](_0xf859f2){const _0x34ebb5=_0x7d7104;return this['_n'](_0x34ebb5(0x4f9),[_0xf859f2]);}async['release'](){const _0x26e8c3=_0x7d7104;return this['_n'](_0x26e8c3(0x49e));}}class _0x2c7dde{constructor(_0x162962,_0x29fbea,_0x4119a1,_0x1cfc6e){const _0x35057c=_0x7d7104,{ttlMs:ttlMs=0x7530,heartbeatMs:heartbeatMs=null}=_0xb024cc(_0x1cfc6e);this['okdb']=_0x162962,this[_0x35057c(0x845)]=_0x4119a1,this[_0x35057c(0x418)]=_0x162962[_0x35057c(0x210)](_0x35057c(0x555),_0x29fbea,_0x35057c(0x260),[_0x4119a1,ttlMs,heartbeatMs],![]),this[_0x35057c(0x4dd)]=_0x29fbea;}['_n'](_0x2570be,_0x27d58f=[]){const _0x5e0915=_0x7d7104;return this[_0x5e0915(0x61e)]['_call'](_0x5e0915(0x555),this[_0x5e0915(0x4dd)],_0x2570be,_0x27d58f,![]);}[_0x7d7104(0x28c)](_0x2f3d36){const _0xcddb7b=_0x7d7104;return this['_n']('key',[this[_0xcddb7b(0x418)],_0x2f3d36]);}async[_0x7d7104(0x462)](_0x1961c0,_0x25cabd={},_0x46dd98={}){const _0x222b5d=_0x7d7104,_0x49808e=this['_n'](_0x222b5d(0x462),[this[_0x222b5d(0x418)],_0x1961c0,_0x25cabd,_0x46dd98]);return{'acquired':_0x49808e[_0x222b5d(0x761)],'handle':_0x49808e[_0x222b5d(0x349)]==null?null:new _0x21d276(this,_0x49808e[_0x222b5d(0x349)]),'current':_0x49808e['current']};}[_0x7d7104(0x4ec)](_0x5d5857){const _0x5eb4b8=_0x7d7104;return this['_n'](_0x5eb4b8(0x4ec),[this[_0x5eb4b8(0x418)],_0x5d5857]);}[_0x7d7104(0x47e)](){const _0x5ead18=_0x7d7104;return this['_n']('list',[this[_0x5ead18(0x418)]]);}[_0x7d7104(0x5dd)](_0x88c300){const _0x34ac4b=_0x7d7104;return this['_n']('signalWant',[this[_0x34ac4b(0x418)],_0x88c300]);}[_0x7d7104(0x312)](_0x2b0e5a,_0x2c25d2=0x3e8){const _0x1a33d9=_0x7d7104;return this['_n']('isWanted',[this[_0x1a33d9(0x418)],_0x2b0e5a,_0x2c25d2]);}}return lock={'NativeLock':_0x2c7dde,'NativeLockHandle':_0x21d276},lock;}var hasRequiredProcessor;function requireProcessor(){const _0x3839e7=_0x5c70f8;if(hasRequiredProcessor)return processor[_0x3839e7(0x28e)];hasRequiredProcessor=0x1;const _0x1b63ef=requireBridge(),{RawDb:_0x3e7f70}=requireRawdb(),{NativeLock:_0x3d7e68}=requireLock();function _0x106cc7(_0x4ccb20){}class _0x552d4e{constructor(_0x2e5d3b){const _0x232cc1=_0x3839e7;this[_0x232cc1(0x609)]=_0x2e5d3b,this[_0x232cc1(0x61e)]=_0x2e5d3b;try{this['_n']('setLogSink',[(_0x48af38,_0x19336a)=>{const _0x2ae776=_0x232cc1,_0x8fc2e6=this[_0x2ae776(0x61e)]['log'],_0x55fa89=_0x8fc2e6?.[_0x48af38]??_0x8fc2e6?.['info'];if(typeof _0x55fa89===_0x2ae776(0x640))_0x55fa89[_0x2ae776(0x4d1)](_0x8fc2e6,_0x19336a);}],![]);}catch{}}['_n'](_0x25428e,_0x4c1733,_0x7e51bf=!![]){const _0x53d446=_0x3839e7;return this[_0x53d446(0x609)][_0x53d446(0x61e)][_0x53d446(0x210)](_0x53d446(0x614),this[_0x53d446(0x609)][_0x53d446(0x54b)],_0x25428e,_0x4c1733,_0x7e51bf);}['register'](_0x34c69e,_0x3a26de={}){const _0x36e964=_0x3839e7,_0x12d584={..._0x3a26de};if(typeof _0x12d584[_0x36e964(0x3ea)]==='function'&&_0x12d584[_0x36e964(0x882)]!=null)throw new Error(_0x36e964(0x28a)+_0x36e964(0x786));if(typeof _0x12d584[_0x36e964(0x3ea)]==='string'&&_0x12d584[_0x36e964(0x882)]!=null)throw new Error(_0x36e964(0x3e3));if(_0x12d584[_0x36e964(0x882)]!=null){if(!_0x12d584[_0x36e964(0x882)]['path'])throw new Error(_0x36e964(0x1d3));const _0x3831ba=_0x12d584[_0x36e964(0x882)][_0x36e964(0x727)]??_0x12d584[_0x36e964(0x882)]['exportName']??_0x36e964(0x781),_0x1574c9=require[_0x36e964(0x22e)](_0x12d584[_0x36e964(0x882)][_0x36e964(0x500)]),_0x22d827=require(_0x1574c9),_0x1f5f13=_0x22d827[_0x3831ba]??_0x22d827[_0x36e964(0x2a6)]??_0x22d827;if(typeof _0x1f5f13!==_0x36e964(0x640))throw new Error(_0x36e964(0x6dc)+_0x12d584[_0x36e964(0x882)][_0x36e964(0x500)]+_0x36e964(0x1e8)+_0x3831ba+'\x27\x20is\x20not\x20a\x20function');this['env'][_0x36e964(0x61e)]['_staticCall'](_0x36e964(0x614),'registerModule',[_0x1574c9,_0x3831ba,_0x1f5f13]),_0x12d584[_0x36e964(0x882)]={'path':_0x1574c9,'export':_0x3831ba};}if(_0x12d584[_0x36e964(0x484)]!=null){if(typeof _0x12d584[_0x36e964(0x484)][_0x36e964(0x882)]!=='string')throw new Error('processor:\x20quantum.module\x20must\x20be\x20a\x20string');const _0x4ffe30=require[_0x36e964(0x22e)](_0x12d584[_0x36e964(0x484)][_0x36e964(0x882)]),_0x49f998=require(_0x4ffe30),_0x644c6e=_0x12d584[_0x36e964(0x484)]['exportName'],_0x259833=_0x644c6e?_0x49f998[_0x644c6e]:_0x49f998[_0x36e964(0x2a6)]??_0x49f998;if(typeof _0x259833===_0x36e964(0x640)){const _0x4faf45=_0x644c6e?_0x12d584[_0x36e964(0x484)][_0x36e964(0x882)]+'#'+_0x644c6e:_0x12d584[_0x36e964(0x484)][_0x36e964(0x882)];this[_0x36e964(0x609)][_0x36e964(0x61e)]['_staticCall'](_0x36e964(0x614),_0x36e964(0x7c5),[_0x4faf45,_0x259833]);}_0x12d584[_0x36e964(0x484)]={..._0x12d584[_0x36e964(0x484)]};}_0x12d584[_0x36e964(0x690)]!=null&&typeof _0x12d584[_0x36e964(0x690)]===_0x36e964(0x559)&&(_0x12d584['payload']={'$payload':_0x1b63ef['storePayload'](_0x12d584[_0x36e964(0x690)],this[_0x36e964(0x609)]['okdb'])});if(_0x12d584['rebuild']!=null&&typeof _0x12d584[_0x36e964(0x8da)]!==_0x36e964(0x640))throw new Error(_0x36e964(0x89e));const _0x10eaf1=this['_n'](_0x36e964(0x811),[_0x34c69e??null,_0x12d584]);return this[_0x36e964(0x4c7)](_0x10eaf1['id'],_0x10eaf1[_0x36e964(0x324)]);}[_0x3839e7(0x4c7)](_0x2bd549,_0x2781b3){const _0x30bc30=_0x3839e7,_0x591846=this,_0x1d6f53=async()=>{const _0x390102=_0x52a3;_0x591846['_n'](_0x390102(0x827),[_0x2bd549]);};return _0x1d6f53['id']=_0x2bd549,_0x1d6f53[_0x30bc30(0x324)]=_0x2781b3,_0x1d6f53[_0x30bc30(0x354)]=()=>_0x2781b3?_0x591846['_n'](_0x30bc30(0x6e0),[_0x2bd549],![]):0x0,_0x1d6f53[_0x30bc30(0x717)]=()=>_0x591846[_0x30bc30(0x309)](_0x2bd549),_0x1d6f53[_0x30bc30(0x575)]=_0x1d6f53[_0x30bc30(0x717)],_0x1d6f53[_0x30bc30(0x3b0)]=()=>_0x591846[_0x30bc30(0x3b0)](_0x2bd549),_0x1d6f53[_0x30bc30(0x2ba)]=()=>_0x591846[_0x30bc30(0x2ba)](_0x2bd549),_0x1d6f53[_0x30bc30(0x2b5)]=()=>_0x591846[_0x30bc30(0x2b5)](_0x2bd549),_0x1d6f53['retry']=()=>_0x591846['retry'](_0x2bd549),_0x1d6f53['awaitIdle']=_0x2b0a6f=>_0x591846[_0x30bc30(0x8bf)](_0x2bd549,_0x2b0a6f),_0x1d6f53;}get['_stops'](){const _0x352018=_0x3839e7;try{return this['_n'](_0x352018(0x47e),[],![])[_0x352018(0x35e)](_0x53adb2=>({'id':_0x53adb2['id']}));}catch{return[];}}async[_0x3839e7(0x3f7)](_0x111ed4){const _0x3485f0=_0x3839e7;return new Set(this['_n'](_0x3485f0(0x3f7),[]));}[_0x3839e7(0x510)](_0x4f455d){const _0x1b1d5f=_0x3839e7;return this['_n'](_0x1b1d5f(0x510),[[..._0x4f455d??[]]]);}get[_0x3839e7(0x7c2)](){const _0x16305a=_0x3839e7;return new Set(this['_n']('list',[],![])['filter'](_0xb03e9a=>_0xb03e9a['type']==null)[_0x16305a(0x35e)](_0x401609=>_0x401609['id']));}['_ensureDbs'](){}get[_0x3839e7(0x431)](){const _0x102cd1=_0x3839e7;if(!this[_0x102cd1(0x6f3)]){const _0x570459=new _0x3d7e68(this['env']['okdb'],this[_0x102cd1(0x609)][_0x102cd1(0x54b)],_0x102cd1(0x614)),_0x4bd148=this['env'];_0x570459[_0x102cd1(0x3e6)]=()=>new _0x3e7f70(_0x4bd148,_0x102cd1(0x7a3)),this[_0x102cd1(0x6f3)]=_0x570459;}return this[_0x102cd1(0x6f3)];}[_0x3839e7(0x794)](_0x3a1309,_0x27e606){const _0x4f6d0d=_0x3839e7;return this['_n'](_0x4f6d0d(0x3e7),[typeof _0x3a1309===_0x4f6d0d(0x2b1)?_0x3a1309:_0x3a1309['id'],_0x27e606?.[_0x4f6d0d(0x211)]??String(_0x27e606??'')]);}get[_0x3839e7(0x43c)](){const _0x569c17=_0x3839e7;return this[_0x569c17(0x5bb)]||(this[_0x569c17(0x5bb)]=new _0x3e7f70(this['env'],'~proc:state'));}get[_0x3839e7(0x710)](){const _0x25ac58=_0x3839e7,_0x19baac=this,_0x4fce48=_0x255375=>{const _0xda6ae8=_0x52a3,_0x215036=()=>_0x19baac['_n'](_0xda6ae8(0x85c),[_0x255375],![]);if(!_0x215036())return undefined;const _0x51c857=_0x269bd5=>()=>_0x215036()?.[_0x269bd5],_0xfdd5a2={'id':_0x255375},_0x8203ce=(_0x445359,_0x9a8f08,_0x142302)=>Object[_0xda6ae8(0x1fd)](_0xfdd5a2,_0x445359,{'get':_0x9a8f08,'set':_0x142302,'enumerable':!![],'configurable':!![]});return _0x8203ce('state',_0x51c857(_0xda6ae8(0x74f))),_0x8203ce(_0xda6ae8(0x5a9),_0x51c857('mode')),_0x8203ce(_0xda6ae8(0x8c6),_0x51c857(_0xda6ae8(0x8c6))),_0x8203ce(_0xda6ae8(0x4c8),_0x51c857(_0xda6ae8(0x4c8)),_0xd88cd6=>_0x19baac['_n'](_0xda6ae8(0x2d4),[_0x255375,_0xd88cd6])),_0x8203ce(_0xda6ae8(0x324),_0x51c857('cursorKey')),_0x8203ce(_0xda6ae8(0x79a),_0x51c857(_0xda6ae8(0x43e)),_0x616456=>_0x19baac['_n'](_0xda6ae8(0x578),[_0x255375,!!_0x616456])),_0x8203ce(_0xda6ae8(0x30f),_0x51c857(_0xda6ae8(0x208))),_0x8203ce('flushQuantum',_0x51c857(_0xda6ae8(0x4a6))),_0x8203ce(_0xda6ae8(0x1f6),_0x51c857(_0xda6ae8(0x1f6))),_0x8203ce(_0xda6ae8(0x829),_0x51c857(_0xda6ae8(0x23e)),_0x1767d3=>_0x19baac['_n']('setModeApplied',[_0x255375,_0x1767d3])),_0x8203ce(_0xda6ae8(0x447),()=>_0x19baac[_0xda6ae8(0x309)](_0x255375)?.['meta']),_0x8203ce('_lockHandle',()=>_0x215036()?.[_0xda6ae8(0x563)]?{'isHeld':()=>!!_0x215036()?.[_0xda6ae8(0x563)]}:null),_0x8203ce(_0xda6ae8(0x8e0),()=>_0x215036()?.[_0xda6ae8(0x561)]?()=>{}:null),_0x8203ce('_flushIntervalTimer',()=>_0x215036()?.[_0xda6ae8(0x4e9)]?{}:null),_0x8203ce(_0xda6ae8(0x602),()=>_0x215036()?.[_0xda6ae8(0x6c2)]?{}:null),_0xfdd5a2;},_0x4d247c=()=>_0x19baac['_n'](_0x25ac58(0x47e),[],![])[_0x25ac58(0x35e)](_0x4978c3=>_0x4978c3['id']);return{'get':_0x358b07=>_0x4fce48(_0x358b07),'has':_0x249be9=>_0x4d247c()['includes'](_0x249be9),get 'size'(){const _0x5e3110=_0x25ac58;return _0x4d247c()[_0x5e3110(0x68a)];},'keys':()=>_0x4d247c()[Symbol[_0x25ac58(0x344)]](),'values':()=>_0x4d247c()[_0x25ac58(0x35e)](_0x4fce48)[Symbol[_0x25ac58(0x344)]](),'entries':()=>_0x4d247c()[_0x25ac58(0x35e)](_0x968c14=>[_0x968c14,_0x4fce48(_0x968c14)])[Symbol['iterator']](),[Symbol[_0x25ac58(0x344)]]:()=>_0x4d247c()[_0x25ac58(0x35e)](_0x21d73b=>[_0x21d73b,_0x4fce48(_0x21d73b)])[Symbol[_0x25ac58(0x344)]](),'forEach':_0x206f7f=>_0x4d247c()['forEach'](_0x4b8872=>_0x206f7f(_0x4fce48(_0x4b8872),_0x4b8872))};}async[_0x3839e7(0x560)](){return this['_n']('stopAll',[]);}[_0x3839e7(0x47e)](){const _0x314f02=_0x3839e7,_0x547357=this['_n']('list',[],![]);if(!this[_0x314f02(0x609)][_0x314f02(0x54b)][_0x314f02(0x38a)]('~'))try{const _0x3060ba=this['env'][_0x314f02(0x61e)][_0x314f02(0x447)];for(const _0x70efc7 of _0x3060ba[_0x314f02(0x4c3)](this[_0x314f02(0x609)]['name'])){for(const _0x4c629e of _0x3060ba['listIndexes'](_0x70efc7,this[_0x314f02(0x609)][_0x314f02(0x54b)])){const _0x582841=_0x314f02(0x2fb)+_0x70efc7+':'+_0x4c629e;_0x547357[_0x314f02(0x28d)]({'id':_0x582841,'type':_0x70efc7,'mode':_0x314f02(0x3e2),'state':'online','paused':![],'lag':0x0,'cursorKey':_0x582841,'meta':{'name':_0x582841}});}}}catch{}return _0x547357;}[_0x3839e7(0x43f)](){return this['_n']('tierList',[],![]);}[_0x3839e7(0x2f8)](){const _0x16409b=_0x3839e7;return this['_n'](_0x16409b(0x2f8),[],![]);}['durableCursorFloor'](){const _0x1297d5=_0x3839e7;return this['_n'](_0x1297d5(0x7eb),[],![]);}[_0x3839e7(0x309)](_0xd33e88){return this['_n']('get',[_0xd33e88],![]);}[_0x3839e7(0x5e0)](_0x209070){const _0x2ef5ab=_0x3839e7;return this['get'](typeof _0x209070===_0x2ef5ab(0x2b1)?_0x209070:_0x209070['id']);}[_0x3839e7(0x2e8)](_0x69bcfd){const _0x4d70e4=_0x3839e7;return this['_n'](_0x4d70e4(0x2e8),[_0x69bcfd],![]);}[_0x3839e7(0x770)](_0x45ec8b){const _0x51f1f4=_0x3839e7;return this['_n'](_0x51f1f4(0x770),[_0x45ec8b]);}['markSnapshotComplete'](_0x27d849){const _0x1cf9da=_0x3839e7;return this['_n'](_0x1cf9da(0x1ee),[_0x27d849]);}[_0x3839e7(0x817)](_0x25b8c0){return this['_n']('isSnapshotComplete',[_0x25b8c0],![]);}[_0x3839e7(0x366)](_0xdb1ec6,_0x4f72d9){const _0x1946ac=_0x3839e7;return this['_n'](_0x1946ac(0x366),[_0xdb1ec6,_0x4f72d9]);}async[_0x3839e7(0x8bf)](_0x1bb3e9,_0x2ced04){const _0x1a0394=_0x3839e7;return this['_n'](_0x1a0394(0x8bf),[_0x1bb3e9,_0x2ced04??0x7530]);}[_0x3839e7(0x3b0)](_0x5da56e){return this['_n']('pause',[_0x5da56e]);}[_0x3839e7(0x2ba)](_0x4dd3d5){const _0x4f7ad3=_0x3839e7;return this['_n'](_0x4f7ad3(0x2ba),[_0x4dd3d5]);}async[_0x3839e7(0x44e)](_0x1d25da){return this['_n']('setClaiming',[_0x1d25da]);}[_0x3839e7(0x2b5)](_0xec99b2){const _0x4ef333=_0x3839e7;return this['_n'](_0x4ef333(0x2b5),[_0xec99b2]);}[_0x3839e7(0x62c)](_0x47c271){const _0xe1c254=_0x3839e7;return this['_n'](_0xe1c254(0x62c),[_0x47c271]);}[_0x3839e7(0x388)](_0x1083d8,_0x3b95fe={}){const _0x1c4f0e=_0x3839e7;return this['_n'](_0x1c4f0e(0x388),[_0x1083d8,_0x3b95fe]);}async[_0x3839e7(0x581)](_0x3a0cfd,_0x32c736,_0x49810a){const _0xc76c5e=_0x3839e7,[_0x2cbe55,_0x43373c]=this['_n'](_0xc76c5e(0x581),[_0x3a0cfd,_0x32c736,_0x49810a]);return{'version':_0x2cbe55,'flipClock':_0x43373c};}async[_0x3839e7(0x866)](_0x3a1a32,_0x2623a0,_0x566cfd={}){const _0x2adbe8=_0x3839e7;return this['_n'](_0x2adbe8(0x866),[_0x3a1a32,_0x2623a0,_0x566cfd]);}}_0x552d4e[_0x3839e7(0x6ba)]=function _0x396742(_0x3ba68a,_0x377d62){const _0x46ebb9=_0x3839e7;if(typeof _0x3ba68a!==_0x46ebb9(0x2b1)||!_0x3ba68a)throw new Error(_0x46ebb9(0x881));if(typeof _0x377d62!==_0x46ebb9(0x640))throw new Error(_0x46ebb9(0x6e2));_0x1aa34a(_0x46ebb9(0x614),_0x46ebb9(0x6ba),[_0x3ba68a,_0x377d62]);},_0x552d4e['registerQuantum']=function _0x192c47(_0x52d598,_0x2371d3){const _0x6ea195=_0x3839e7;if(typeof _0x52d598!==_0x6ea195(0x2b1)||!_0x52d598)throw new Error('registerQuantum:\x20name\x20must\x20be\x20a\x20non-empty\x20string');if(typeof _0x2371d3!=='function')throw new Error(_0x6ea195(0x48c));let _0x3b2474=null;_0x1aa34a('proc','registerQuantum',[_0x52d598,(_0x451397,_0x37170c)=>{if(!_0x3b2474)_0x3b2474=_0x2371d3();return _0x3b2474(_0x451397,_0x37170c);}]);},_0x552d4e[_0x3839e7(0x4bd)]=_0x3aa76e=>/closed|not open|released/i[_0x3839e7(0x2b6)](String(_0x3aa76e)),_0x552d4e['_inlineClosureWarned']=![];function _0x1aa34a(_0x5405e,_0x1c9b45,_0x53264e){const {staticCall:_0x207490}=requireLib();return _0x207490(_0x5405e,_0x1c9b45,_0x53264e);}return processor[_0x3839e7(0x28e)]=_0x552d4e,processor[_0x3839e7(0x28e)][_0x3839e7(0x345)]=_0x552d4e,processor[_0x3839e7(0x28e)][_0x3839e7(0x29b)]=_0x106cc7,processor[_0x3839e7(0x28e)];}var okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x4cd95a=_0x5c70f8;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x4710ae={'PUT':_0x4cd95a(0x253),'REMOVE':_0x4cd95a(0x504),'INDEX_DROP':_0x4cd95a(0x8e3),'INDEX_REGISTER':_0x4cd95a(0x8cb),'INDEX_RESET':_0x4cd95a(0x591),'TYPE_REGISTER':_0x4cd95a(0x343),'TYPE_DROP':_0x4cd95a(0x2a4),'FTS_REGISTER':_0x4cd95a(0x45b),'FTS_DROP':_0x4cd95a(0x497),'FTS_RESET':_0x4cd95a(0x4f1),'SCHEMA_SET':_0x4cd95a(0x241),'SCHEMA_DROP':_0x4cd95a(0x8a7),'TTL_SET':_0x4cd95a(0x837),'TTL_CLEAR':'clearTtl'},_0x31943c={'SYSTEM_READY':_0x4cd95a(0x2db),'FIELD_RESOLVER_REGISTERED':_0x4cd95a(0x4b1),'SYSTEM_STOPPED':_0x4cd95a(0x4d8),'SYSTEM_CLOCK_CHANGE':_0x4cd95a(0x2a2),'SYSTEM_POKE':'system:poke','SYSTEM_DRAIN':_0x4cd95a(0x572),'SYSTEM_TYPE_DROP':_0x4cd95a(0x71e),'SYSTEM_PROC':_0x4cd95a(0x1db),'SYSTEM_BUS_STATE_CHANGE':_0x4cd95a(0x264),'ITEM_CREATE':_0x4cd95a(0x547),'ITEM_UPDATE':'item:update','ITEM_REMOVE':'item:remove','ITEM_PENDING':_0x4cd95a(0x702),'INDEX_RESET':_0x4cd95a(0x29f),'INDEX_READY':_0x4cd95a(0x825),'INDEX_PROGRESS':_0x4cd95a(0x21b),'VIEW_PROGRESS':_0x4cd95a(0x821),'INDEX_DROP':_0x4cd95a(0x3a4),'INDEX_REGISTERED':'index:registered','FTS_REGISTERED':_0x4cd95a(0x37a),'FTS_DROP':_0x4cd95a(0x73c),'FTS_RESET':_0x4cd95a(0x569),'SCHEMA_SET':_0x4cd95a(0x4d3),'SCHEMA_DROP':'schema:drop','UNIQUE_VIOLATION':_0x4cd95a(0x1c3),'UNIQUE_VIOLATION_RESOLVED':_0x4cd95a(0x531),'REF_VIOLATION':'ref:violation','REF_VIOLATION_RESOLVED':'ref:violation_resolved','SYNC_APPLY':_0x4cd95a(0x78a),'TXN_START':'txn:start','TXN_END':_0x4cd95a(0x330),'TXN_ROLLBACK':_0x4cd95a(0x5bd),'TYPE_REGISTERED':_0x4cd95a(0x80f),'TYPE_DROP':_0x4cd95a(0x7bf),'ENV_OPENED':'env:opened','ENV_REMOVED':_0x4cd95a(0x674),'SYSTEM_ENV_RELEASE':_0x4cd95a(0x544),'TTL_EXPIRED':_0x4cd95a(0x52f),'TTL_SET':_0x4cd95a(0x294),'TTL_CLEAR':_0x4cd95a(0x666),'LICENSE_INVALID':_0x4cd95a(0x2b2),'LICENSE_ADDED':'license:added','LICENSE_ACTIVATED':'license:activated','LICENSE_REMOVED':_0x4cd95a(0x1fa)},_0x3ba0dd={'CREATING':'creating','RESETTING':_0x4cd95a(0x583),'READY':_0x4cd95a(0x237),'DROPPING':_0x4cd95a(0x3c0),'WAITING':_0x4cd95a(0x543),'ERROR':'error'},_0x4e5d55={'CREATED':_0x4cd95a(0x258),'STARTING':_0x4cd95a(0x2b4),'STARTED':_0x4cd95a(0x3c4),'STOPPING':_0x4cd95a(0x278),'STOPPED':_0x4cd95a(0x5a6)},_0x2082b8={'CREATING':_0x4cd95a(0x34b),'READY':_0x4cd95a(0x237),'HALTED':'halted','STOPPED':'stopped','RESETTING':_0x4cd95a(0x583)},_0x44237e=Object[_0x4cd95a(0x202)]({'POKE':'bus:poke','DRAIN':_0x4cd95a(0x747),'TYPE_DROP':'bus:type_drop','PROC':'bus:proc','ENV_RELEASE':_0x4cd95a(0x888)});return okdbEnums={'BUS_EVENTS':_0x44237e,'CHANGE_ACTIONS':_0x4710ae,'EVENTS':_0x31943c,'INDEX_STATE':_0x3ba0dd,'OKDB_STATE':_0x4e5d55,'VIEW_STATE':_0x2082b8},okdbEnums;}var okdbGuardedRange,hasRequiredOkdbGuardedRange;function requireOkdbGuardedRange(){const _0x38150c=_0x5c70f8;if(hasRequiredOkdbGuardedRange)return okdbGuardedRange;hasRequiredOkdbGuardedRange=0x1;const _0x2fec93={'SKIP':Symbol[_0x38150c(0x708)](_0x38150c(0x8c2))},{OKDBError:_0x4713b1}=requireOkdbError(),_0x182ad2={'value':null,'done':!![]};class _0x1d4a0b{constructor(_0x2573b9){const _0x2f1582=_0x38150c;this[_0x2f1582(0x730)]=_0x2573b9;}get[_0x38150c(0x538)](){return _0x182ad2;}[Symbol['iterator']](){const _0x12ed24=_0x38150c;return this[_0x12ed24(0x730)]();}[_0x38150c(0x35e)](_0x1d7356){const _0x839eef=this;return new _0x1d4a0b(()=>{const _0x4ef44f=_0x52a3,_0x468695=_0x839eef[Symbol['iterator']]();return{'next'(){const _0xbb94bc=_0x52a3;for(;;){const _0x96b395=_0x468695[_0xbb94bc(0x48f)]();if(_0x96b395['done'])return{'done':!![],'value':undefined};const _0x5396e1=_0x1d7356(_0x96b395[_0xbb94bc(0x2ef)]);if(_0x5396e1===_0x2fec93[_0xbb94bc(0x6e8)])continue;if(_0x5396e1===_0x182ad2)return _0x468695[_0xbb94bc(0x67c)]?.(),{'done':!![],'value':undefined};return{'done':![],'value':_0x5396e1};}},'return'(){const _0x14b0b7=_0x52a3;return _0x468695[_0x14b0b7(0x67c)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x4ef44f(0x344)]](){return this;}};});}[_0x38150c(0x4e1)](_0x212988){const _0x5cb980=_0x38150c;return this[_0x5cb980(0x35e)](_0xde9293=>_0x212988(_0xde9293)?_0xde9293:_0x2fec93[_0x5cb980(0x6e8)]);}[_0x38150c(0x5ff)](_0x4332f2){for(const _0xe519eb of this)_0x4332f2(_0xe519eb);}[_0x38150c(0x1f7)](_0x343ded=0x0,_0x416001=Infinity){const _0x39fcc4=this;return new _0x1d4a0b(()=>{const _0x2c94e2=_0x52a3,_0x28cbcc=_0x39fcc4[Symbol[_0x2c94e2(0x344)]]();let _0x2b64bc=0x0;return{'next'(){const _0x2b985f=_0x2c94e2;for(;;){const _0x357474=_0x28cbcc['next']();if(_0x357474['done'])return{'done':!![],'value':undefined};const _0x49c030=_0x2b64bc++;if(_0x49c030<_0x343ded)continue;if(_0x49c030>=_0x416001)return _0x28cbcc[_0x2b985f(0x67c)]?.(),{'done':!![],'value':undefined};return _0x357474;}},'return'(){const _0x146eb2=_0x2c94e2;return _0x28cbcc[_0x146eb2(0x67c)]?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}['at'](_0x5d054c){let _0x2db2b8=0x0;for(const _0x3dd86d of this)if(_0x2db2b8++===_0x5d054c)return _0x3dd86d;return undefined;}[_0x38150c(0x846)](_0x3a0a03){const _0x3ab356=this;return new _0x1d4a0b(()=>{const _0x51dfd0=_0x52a3,_0x2e2ff7=_0x3ab356[Symbol[_0x51dfd0(0x344)]]();let _0x560582=[];return{'next'(){const _0x149eb4=_0x51dfd0;for(;;){if(_0x560582['length'])return{'done':![],'value':_0x560582['shift']()};const _0x159327=_0x2e2ff7[_0x149eb4(0x48f)]();if(_0x159327[_0x149eb4(0x588)])return{'done':!![],'value':undefined};const _0x15870c=_0x3a0a03(_0x159327['value']);if(Array[_0x149eb4(0x439)](_0x15870c))_0x560582=_0x560582[_0x149eb4(0x6cf)](_0x15870c);else{if(_0x15870c!=null&&(_0x15870c instanceof _0x1d4a0b||typeof _0x15870c[Symbol[_0x149eb4(0x344)]]===_0x149eb4(0x640)&&'asArray'in _0x15870c))_0x560582=_0x560582[_0x149eb4(0x6cf)](Array[_0x149eb4(0x48d)](_0x15870c));else{if(_0x15870c!==_0x2fec93[_0x149eb4(0x6e8)])return{'done':![],'value':_0x15870c};}}}},'return'(){const _0x5e99ac=_0x51dfd0;return _0x2e2ff7[_0x5e99ac(0x67c)]?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}['concat'](_0x497739){const _0x2c7584=this;return new _0x1d4a0b(()=>{const _0x2dafce=_0x52a3;let _0x1c9dab=_0x2c7584[Symbol[_0x2dafce(0x344)]](),_0x97dd77=![];return{'next'(){const _0x37c4d4=_0x2dafce;for(;;){const _0x1282b9=_0x1c9dab[_0x37c4d4(0x48f)]();if(!_0x1282b9['done'])return _0x1282b9;if(_0x97dd77)return{'done':!![],'value':undefined};_0x97dd77=!![],_0x1c9dab=_0x497739[Symbol[_0x37c4d4(0x344)]]();}},'return'(){const _0x178bd8=_0x2dafce;return _0x1c9dab[_0x178bd8(0x67c)]?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}[_0x38150c(0x1e3)](_0x5db1e0){const _0x53135a=this;return new _0x1d4a0b(()=>{const _0x3b6501=_0x52a3,_0x5e4b9a=_0x53135a[Symbol['iterator']]();return{'next'(){const _0x19f3d0=_0x52a3;for(;;){try{return _0x5e4b9a[_0x19f3d0(0x48f)]();}catch(_0x17e048){const _0xfdffee=_0x5db1e0(_0x17e048);if(_0xfdffee===_0x2fec93[_0x19f3d0(0x6e8)]||_0xfdffee===undefined)continue;return{'done':![],'value':_0xfdffee};}}},'return'(){const _0x320d7d=_0x52a3;return _0x5e4b9a[_0x320d7d(0x67c)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x3b6501(0x344)]](){return this;}};});}['toJSON'](){const _0x293469=_0x38150c;return Array[_0x293469(0x48d)](this);}get[_0x38150c(0x2cd)](){const _0x4406b9=_0x38150c;return Array[_0x4406b9(0x48d)](this);}}const _0x5968bf={'total':0x0,'byLabel':{},'last':null};function _0x41cd4b(_0x324f83){const _0x215e26=_0x38150c;_0x5968bf[_0x215e26(0x642)]++;if(_0x324f83)_0x5968bf[_0x215e26(0x718)][_0x324f83]=(_0x5968bf['byLabel'][_0x324f83]??0x0)+0x1;_0x5968bf[_0x215e26(0x7bb)]={'label':_0x324f83??null,'at':Date[_0x215e26(0x8cc)]()};}function _0x39bcb1(){const _0x519da3=_0x38150c;return{'total':_0x5968bf[_0x519da3(0x642)],'byLabel':{..._0x5968bf[_0x519da3(0x718)]},'last':_0x5968bf[_0x519da3(0x7bb)]};}function _0x2c0698(_0x51ef75,_0x343da5={}){const {getTxnId:_0xf48697,resume:_0x695583,label:_0x58be81,baseline:_0x40584}=_0x343da5;return new _0x1d4a0b(()=>{let _0x338ccd=null,_0x15c38a=![],_0x9a22f7=![],_0x4aa863=![],_0x5e006c,_0x1db324=0x0,_0x3eda56;return{'next'(){const _0x6a2273=_0x52a3;if(_0x4aa863)return{'done':!![],'value':undefined};if(_0x9a22f7){let _0x4ad547=![];if(_0x695583&&_0xf48697)try{_0x4ad547=_0xf48697()===_0x3eda56;}catch{}if(!_0x4ad547){_0x4aa863=!![],_0x41cd4b(_0x58be81);throw new _0x4713b1(_0x695583?'pinned\x20range\x20iterator\x20parked\x20across\x20an\x20await/turn\x20boundary\x20and\x20the\x20env\x20was\x20written\x20'+_0x6a2273(0x3fd)+_0x6a2273(0x841):'pinned\x20range\x20iterator\x20held\x20across\x20an\x20await/turn\x20boundary.\x20This\x20surface\x20cannot\x20resume\x20'+_0x6a2273(0x256)+_0x6a2273(0x66e),'READER_HELD_ACROSS_AWAIT');}_0x338ccd=_0x695583(_0x5e006c,_0x1db324)[Symbol[_0x6a2273(0x344)]](),_0x9a22f7=![];}if(!_0x338ccd){if(_0x40584!==undefined)_0x3eda56=_0x40584;else try{_0x3eda56=_0xf48697?_0xf48697():undefined;}catch{_0x3eda56=undefined;}try{_0x338ccd=_0x51ef75()[Symbol[_0x6a2273(0x344)]]();}catch(_0x5a0dbe){_0x4aa863=!![];throw _0x5a0dbe;}}!_0x15c38a&&(_0x15c38a=!![],queueMicrotask(()=>{const _0x431045=_0x6a2273;_0x15c38a=![];if(_0x4aa863||_0x9a22f7)return;try{_0x338ccd?.[_0x431045(0x67c)]?.();}catch{}_0x338ccd=null,_0x9a22f7=!![];}));const _0x513d32=_0x338ccd[_0x6a2273(0x48f)]();if(_0x513d32[_0x6a2273(0x588)])return _0x4aa863=!![],{'done':!![],'value':undefined};return _0x5e006c=_0x513d32['value'],_0x1db324++,_0x513d32;},'return'(){const _0x4cd3f1=_0x52a3;_0x4aa863=!![];try{_0x338ccd?.[_0x4cd3f1(0x67c)]?.();}catch{}return{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}return okdbGuardedRange={'guardSnapshotIterable':_0x2c0698,'OKDBGuardedRange':_0x1d4a0b,'recordGuardTrip':_0x41cd4b,'getGuardTripStats':_0x39bcb1},okdbGuardedRange;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0x1d1927=_0x5c70f8;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x5ca839,performance:_0x16099a}=require$$0$1,_0x38eea6=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG===_0x1d1927(0x43b),_0x3e9ba2=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x53c94d=process.env.OKDB_LOOP_LAG_ALL==='1',_0x2bead4=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0xc90f33{constructor(){const _0x43e337=_0x1d1927;this[_0x43e337(0x63d)]=_0x38eea6,this['_buckets']=new Map(),this['_h']=null,this['_timer']=null,this['_started']=![],this['_log']=(_0x188a42,_0x2b7703)=>process[_0x43e337(0x34a)][_0x43e337(0x21a)](_0x188a42+(_0x2b7703?'\x20'+JSON[_0x43e337(0x35a)](_0x2b7703):'')+'\x0a');}[_0x1d1927(0x8cc)](){return _0x16099a['now']();}[_0x1d1927(0x3c5)](_0x3c5fc6){const _0x39595b=_0x1d1927;if(typeof _0x3c5fc6==='function')this[_0x39595b(0x8ae)]=_0x3c5fc6;}['note'](_0x2554cc,_0xe7a870,_0xc114b7){const _0x2e45ab=_0x1d1927;if(!this[_0x2e45ab(0x63d)])return;let _0x32038e=this['_buckets']['get'](_0x2554cc);!_0x32038e&&(_0x32038e={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this[_0x2e45ab(0x59d)][_0x2e45ab(0x63f)](_0x2554cc,_0x32038e)),_0x32038e['ms']+=_0xe7a870,_0x32038e['count']+=0x1,_0xe7a870>_0x32038e['maxMs']&&(_0x32038e[_0x2e45ab(0x1e6)]=_0xe7a870,_0x32038e['maxExtra']=_0xc114b7||'');}[_0x1d1927(0x45c)](_0x34d3f9){const _0x1d633e=_0x1d1927;if(!this['enabled']||this[_0x1d633e(0x620)])return;this[_0x1d633e(0x620)]=!![];if(_0x34d3f9)this[_0x1d633e(0x8ae)]=_0x34d3f9;this['_h']=_0x5ca839({'resolution':0xa}),this['_h'][_0x1d633e(0x54c)](),this['_timer']=setInterval(()=>this[_0x1d633e(0x818)](),_0x3e9ba2);if(this[_0x1d633e(0x458)][_0x1d633e(0x32c)])this['_timer'][_0x1d633e(0x32c)]();}[_0x1d1927(0x874)](_0x52e465){const _0xb20985=_0x1d1927;if(!this[_0xb20985(0x7b7)])this[_0xb20985(0x7b7)]=new Set();this[_0xb20985(0x7b7)][_0xb20985(0x280)](_0x52e465);if(!this[_0xb20985(0x620)])this[_0xb20985(0x56a)]();}[_0x1d1927(0x684)](_0x500a56){const _0x128e3c=_0x1d1927;this[_0x128e3c(0x7b7)]?.[_0x128e3c(0x2cb)](_0x500a56);}['_startAdmission'](){const _0x59a2ca=_0x1d1927;if(this[_0x59a2ca(0x35c)])return;this['_admissionStarted']=!![];!this['_h']&&(this['_h']=_0x5ca839({'resolution':0xa}),this['_h'][_0x59a2ca(0x54c)]());const _0x4961c3=_0x3e9ba2;this[_0x59a2ca(0x59a)]=setInterval(()=>{const _0x1a9876=_0x59a2ca,_0x1cfd54=this['_h'];if(!_0x1cfd54)return;const _0x4fa3f5=_0x1cfd54[_0x1a9876(0x76c)](0x63)/0xf4240,_0x196a3e=_0x1cfd54[_0x1a9876(0x4a0)]/0xf4240,_0x40588b=_0x1cfd54[_0x1a9876(0x524)]/0xf4240;_0x1cfd54[_0x1a9876(0x20d)]();if(this[_0x1a9876(0x7b7)])for(const _0x530431 of this[_0x1a9876(0x7b7)]){try{_0x530431({'p99Ms':_0x4fa3f5,'maxMs':_0x196a3e,'meanMs':_0x40588b,'reportMs':_0x4961c3});}catch{}}},_0x4961c3);if(this[_0x59a2ca(0x59a)][_0x59a2ca(0x32c)])this[_0x59a2ca(0x59a)]['unref']();}[_0x1d1927(0x818)](){const _0x1376ed=_0x1d1927,_0x1f1a1b=this['_h'],_0x533179=_0x1f1a1b[_0x1376ed(0x4a0)]/0xf4240,_0x8fea59=_0x1f1a1b[_0x1376ed(0x76c)](0x63)/0xf4240,_0x430311=_0x1f1a1b[_0x1376ed(0x524)]/0xf4240;_0x1f1a1b[_0x1376ed(0x20d)]();const _0x1a45cf=[...this[_0x1376ed(0x59d)]['entries']()][_0x1376ed(0x35e)](([_0x55fd3c,_0x5cd36e])=>({'label':_0x55fd3c,..._0x5cd36e}))[_0x1376ed(0x22f)]((_0x48b2de,_0x35503b)=>_0x35503b['ms']-_0x48b2de['ms'])[_0x1376ed(0x1f7)](0x0,0x8);this['_buckets']['clear']();const _0x24ca5c=_0x1a45cf['reduce']((_0x5ea04e,_0x32bce4)=>_0x5ea04e+_0x32bce4['ms'],0x0),_0x4c8ad1=_0x1a45cf[_0x1376ed(0x35e)](_0x38c173=>_0x38c173[_0x1376ed(0x3bb)]+'='+_0x38c173['ms'][_0x1376ed(0x64c)](0x0)+'ms/'+_0x38c173[_0x1376ed(0x400)]+(_0x38c173[_0x1376ed(0x1e6)]>0x5?_0x1376ed(0x243)+_0x38c173[_0x1376ed(0x1e6)][_0x1376ed(0x64c)](0x0)+'ms'+(_0x38c173[_0x1376ed(0x6f8)]?'\x20'+_0x38c173['maxExtra']:'')+')':''));(_0x53c94d||_0x533179>=_0x2bead4)&&this[_0x1376ed(0x8ae)](_0x1376ed(0x403)+_0x3e9ba2+'ms\x20max='+_0x533179[_0x1376ed(0x64c)](0x0)+_0x1376ed(0x476)+_0x8fea59['toFixed'](0x0)+_0x1376ed(0x743)+_0x430311['toFixed'](0x0)+_0x1376ed(0x346)+_0x24ca5c[_0x1376ed(0x64c)](0x0)+'ms'+(_0x4c8ad1['length']?_0x1376ed(0x7ba)+_0x4c8ad1['join']('\x20\x20'):''),{'feature':_0x1376ed(0x65e)});if(this[_0x1376ed(0x7b7)])for(const _0x392be7 of this[_0x1376ed(0x7b7)]){try{_0x392be7({'p99Ms':_0x8fea59,'maxMs':_0x533179,'meanMs':_0x430311,'reportMs':_0x3e9ba2});}catch{}}}['stop'](){const _0x51f855=_0x1d1927;if(this['_timer'])clearInterval(this[_0x51f855(0x458)]);if(this['_h'])this['_h'][_0x51f855(0x2e6)]();this[_0x51f855(0x458)]=null,this['_h']=null,this['_started']=![];}}const _0x1182bc=new _0xc90f33();if(_0x1182bc[_0x1d1927(0x63d)])_0x1182bc[_0x1d1927(0x45c)]();return okdbLoopMonitor={'LOOP':_0x1182bc},okdbLoopMonitor;}var okdbTransaction,hasRequiredOkdbTransaction;function requireOkdbTransaction(){const _0xa32521=_0x5c70f8;if(hasRequiredOkdbTransaction)return okdbTransaction;hasRequiredOkdbTransaction=0x1;const _0x575f6c={'v4':()=>require$$0$2[_0xa32521(0x809)]()},{EVENTS:_0x23b2a1}=requireOkdbEnums(),{OKDBError:_0x2712f3}=requireOkdbError(),{recordGuardTrip:_0x1f7900,guardSnapshotIterable:_0x30bfaa}=requireOkdbGuardedRange(),{LOOP:_0x2969a5}=requireOkdbLoopMonitor();function _0x288682(_0x3d93fc){const _0x2dca4e=_0xa32521;return _0x3d93fc[_0x2dca4e(0x35e)](_0x5eb3d2=>{const _0x19e839=_0x2dca4e,[_0x450aea,_0x1fda7c]=_0x5eb3d2['args']||[];return{'action':_0x5eb3d2[_0x19e839(0x6d0)],'type':_0x450aea,'key':_0x1fda7c};});}class _0x5a45b2{[_0xa32521(0x61e)];['actions']=[];[_0xa32521(0x8e8)]=[];[_0xa32521(0x804)]=[];constructor(_0x3f8dbb,_0x125477={'useReadTransaction':![]}){const _0x26c2ee=_0xa32521;this[_0x26c2ee(0x61e)]=_0x3f8dbb,this[_0x26c2ee(0x688)]=_0x125477,this['id']=_0x575f6c['v4']();if(this[_0x26c2ee(0x688)][_0x26c2ee(0x62f)])try{this[_0x26c2ee(0x87f)]=this[_0x26c2ee(0x61e)]['db'][_0x26c2ee(0x65c)]()[_0x26c2ee(0x55f)];}catch{this['_txnIdAtSnapshot']=undefined;}this[_0x26c2ee(0x271)]=this[_0x26c2ee(0x688)][_0x26c2ee(0x62f)]?this[_0x26c2ee(0x61e)]['db'][_0x26c2ee(0x62f)]():null,this[_0x26c2ee(0x417)]=![],this[_0x26c2ee(0x3a8)]=![],this['readTransaction']&&queueMicrotask(()=>{const _0x15fd77=_0x26c2ee;this[_0x15fd77(0x271)]&&(this[_0x15fd77(0x492)](),this['_readViewExpired']=!![]);});}[_0xa32521(0x6bc)](_0x2ef14f){const _0x3a626f=_0xa32521;this['_doHooks'][_0x3a626f(0x28d)](_0x2ef14f);}[_0xa32521(0x1f5)](_0x2eeb59){const _0x1c4bba=_0xa32521;this['_undoHooks'][_0x1c4bba(0x28d)](_0x2eeb59);}['_closeReadTransaction'](){const _0x69df10=_0xa32521;if(!this[_0x69df10(0x271)])return;try{this[_0x69df10(0x271)][_0x69df10(0x588)]();}catch(_0x22cb04){}this[_0x69df10(0x271)]=null;}[_0xa32521(0x7a2)](){const _0x52bf0d=_0xa32521;if(this[_0x52bf0d(0x417)])throw new _0x2712f3(_0x52bf0d(0x72b),_0x52bf0d(0x679));if(this['_readViewExpired']){let _0x3bb6c7=![];if(this[_0x52bf0d(0x688)]['useReadTransaction']===_0x52bf0d(0x8c0)&&this[_0x52bf0d(0x87f)]!==undefined)try{_0x3bb6c7=this[_0x52bf0d(0x61e)]['db'][_0x52bf0d(0x65c)]()[_0x52bf0d(0x55f)]===this[_0x52bf0d(0x87f)];}catch{}if(!_0x3bb6c7){_0x1f7900((this[_0x52bf0d(0x61e)]?.[_0x52bf0d(0x54b)]??'?')+_0x52bf0d(0x8d1));throw new _0x2712f3(_0x52bf0d(0x891)+_0x52bf0d(0x6cc)+_0x52bf0d(0x6c5)+_0x52bf0d(0x6f7),'READER_HELD_ACROSS_AWAIT');}}}[_0xa32521(0x309)](_0x26eeba,_0x7c77cd){const _0x39aa64=_0xa32521;return this[_0x39aa64(0x7a2)](),this[_0x39aa64(0x61e)]['get'](_0x26eeba,_0x7c77cd,{'transaction':this[_0x39aa64(0x271)]});}[_0xa32521(0x3a0)](_0x1e4ede,_0x4a17f7){const _0x100a22=_0xa32521;return this[_0x100a22(0x7a2)](),this[_0x100a22(0x61e)]['getEntry'](_0x1e4ede,_0x4a17f7,{'transaction':this['readTransaction']});}[_0xa32521(0x233)](_0x1493e7,_0x161d04){const _0x482b9f=_0xa32521;return this['_assertOpen'](),this[_0x482b9f(0x61e)]['getMany'](_0x1493e7,_0x161d04,{'transaction':this[_0x482b9f(0x271)]});}[_0xa32521(0x64d)](_0x43c4cb){const _0x1b1005=_0xa32521;if(!this[_0x1b1005(0x688)][_0x1b1005(0x62f)])return _0x43c4cb;if(_0x43c4cb&&typeof _0x43c4cb[_0x1b1005(0x801)]===_0x1b1005(0x640))return _0x43c4cb;if(Array[_0x1b1005(0x439)](_0x43c4cb))return _0x43c4cb;const _0x1e339f=this,_0x26f6bf=_0x1e339f[_0x1b1005(0x688)][_0x1b1005(0x62f)]===_0x1b1005(0x8c0),_0x9c5800=()=>{const _0x42719e=_0x1b1005;if(!_0x1e339f[_0x42719e(0x3a8)])return![];if(!_0x26f6bf)return!![];if(_0x1e339f[_0x42719e(0x87f)]===undefined)return!![];try{return _0x1e339f[_0x42719e(0x61e)]['db']['getStats']()['lastTxnId']!==_0x1e339f[_0x42719e(0x87f)];}catch{return!![];}};return _0x30bfaa(()=>{const _0x4a4c85=_0x1b1005;if(_0x1e339f[_0x4a4c85(0x417)])throw new _0x2712f3(_0x4a4c85(0x72b),_0x4a4c85(0x679));if(_0x9c5800()){_0x1f7900((_0x1e339f['okdb']?.[_0x4a4c85(0x54b)]??'?')+':txnRange');throw new _0x2712f3('useReadTransaction\x20range\x20consumed\x20after\x20the\x20creation\x20turn\x20—\x20the\x20consistent\x20view\x20was\x20'+_0x4a4c85(0x412)+_0x4a4c85(0x6c6),_0x4a4c85(0x252));}return _0x43c4cb;},{'label':(_0x1e339f['okdb']?.[_0x1b1005(0x54b)]??'?')+_0x1b1005(0x6ed),..._0x26f6bf?{'baseline':_0x1e339f['_txnIdAtSnapshot'],'getTxnId':()=>_0x1e339f[_0x1b1005(0x61e)]['db'][_0x1b1005(0x65c)]()[_0x1b1005(0x55f)],'resume':(_0x2807c6,_0x1f8722)=>_0x43c4cb['slice'](_0x1f8722)}:{}});}['getRange'](_0x4696a1,_0xce5507={}){const _0x498924=_0xa32521;return this[_0x498924(0x7a2)](),this[_0x498924(0x64d)](this[_0x498924(0x61e)][_0x498924(0x3ee)](_0x4696a1,{'transaction':this[_0x498924(0x271)],..._0xce5507}));}['getValues'](_0x6d21fb,_0x39c175={}){const _0x420d4a=_0xa32521;return this[_0x420d4a(0x7a2)](),this[_0x420d4a(0x64d)](this['okdb'][_0x420d4a(0x88a)](_0x6d21fb,{'transaction':this['readTransaction'],..._0x39c175}));}[_0xa32521(0x300)](_0x4c2b83,_0x555d45={}){const _0x48e36e=_0xa32521;return this[_0x48e36e(0x7a2)](),this['_range'](this[_0x48e36e(0x61e)][_0x48e36e(0x300)](_0x4c2b83,{'transaction':this[_0x48e36e(0x271)],..._0x555d45}));}[_0xa32521(0x5c4)](_0x46b122,_0x4e0134,_0x2b3d82={}){const _0x1ed779=_0xa32521;return this[_0x1ed779(0x7a2)](),this[_0x1ed779(0x64d)](this[_0x1ed779(0x61e)][_0x1ed779(0x5c4)](_0x46b122,_0x4e0134,{'transaction':this['readTransaction'],..._0x2b3d82}));}[_0xa32521(0x69f)](_0x5c8c96,_0x181ce5,_0x1cd7a3={}){const _0x5c291c=_0xa32521;return this[_0x5c291c(0x7a2)](),this[_0x5c291c(0x64d)](this[_0x5c291c(0x61e)]['query'](_0x5c8c96,_0x181ce5,{'transaction':this[_0x5c291c(0x271)],..._0x1cd7a3}));}[_0xa32521(0x3b3)](_0x1edee0=null){const _0x32c9cf=_0xa32521;return this['_assertOpen'](),this[_0x32c9cf(0x61e)][_0x32c9cf(0x3b3)](_0x1edee0,{'transaction':this[_0x32c9cf(0x271)]});}[_0xa32521(0x8ce)](_0x1510e8){const _0x21267c=_0xa32521;return this[_0x21267c(0x7a2)](),this[_0x21267c(0x61e)][_0x21267c(0x8ce)](_0x1510e8,{'transaction':this[_0x21267c(0x271)]});}[_0xa32521(0x253)](_0x19df10,_0x471ecc,_0x409e8c,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date['now'](),origin:origin=null,ttl:ttl=null}={}){const _0x207ab6=_0xa32521;this[_0x207ab6(0x5c3)][_0x207ab6(0x28d)]({'action':_0x207ab6(0x253),'args':[_0x19df10,_0x471ecc,_0x409e8c,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0xa32521(0x5b4)](_0x458020,_0x101b7c,_0x3c3af9,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date['now'](),origin:origin=null,ttl:ttl=null}={}){const _0x2cd47e=_0xa32521;this[_0x2cd47e(0x5c3)]['push']({'action':_0x2cd47e(0x5b4),'args':[_0x458020,_0x101b7c,_0x3c3af9,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0xa32521(0x65b)](_0x48fdcb,_0x378686,_0x4f9f34,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0xa32521(0x8cc)](),origin:origin=null,ttl:ttl=null}={}){const _0x59a906=_0xa32521;this[_0x59a906(0x5c3)][_0x59a906(0x28d)]({'action':_0x59a906(0x65b),'args':[_0x48fdcb,_0x378686,_0x4f9f34,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0xa32521(0x67b)](_0x2e704e,_0x2b11fd,_0x4570cf,{version:version=null,timestamp:timestamp=Date[_0xa32521(0x8cc)](),origin:origin=null,ttl:ttl=null}={}){const _0x38bf7e=_0xa32521;this[_0x38bf7e(0x5c3)][_0x38bf7e(0x28d)]({'action':_0x38bf7e(0x67b),'args':[_0x2e704e,_0x2b11fd,_0x4570cf,{'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0xa32521(0x504)](_0x18aae9,_0xf940fa,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0xa32521(0x8cc)](),origin:origin=null}={}){const _0x2c6087=_0xa32521;this[_0x2c6087(0x5c3)][_0x2c6087(0x28d)]({'action':_0x2c6087(0x504),'args':[_0x18aae9,_0xf940fa,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin}]});}[_0xa32521(0x246)](_0x155fe3,_0x5ad707,_0x55cffd){const _0x20927d=_0xa32521;this[_0x20927d(0x5c3)]['push']({'action':_0x20927d(0x246),'args':[_0x155fe3,_0x5ad707,_0x55cffd]});}['clearTTL'](_0x9cf5dc,_0x1aad65){const _0x9a49ba=_0xa32521;this[_0x9a49ba(0x5c3)]['push']({'action':'clearTTL','args':[_0x9cf5dc,_0x1aad65]});}[_0xa32521(0x880)](){const _0x1b8975=_0xa32521;if(this[_0x1b8975(0x417)])return;for(const _0x32b08f of this['_undoHooks']){try{_0x32b08f();}catch{}}this[_0x1b8975(0x61e)]['events']['emit'](_0x23b2a1[_0x1b8975(0x635)],{'id':this['id']}),this[_0x1b8975(0x5c3)]=[],this[_0x1b8975(0x492)](),this[_0x1b8975(0x417)]=!![];}async['commit'](){const _0xf31513=_0xa32521;if(this[_0xf31513(0x417)])throw new Error(_0xf31513(0x72b));const _0x5c7ed6={'id':this['id'],'timestamp':Date['now'](),'actions':this['actions']};this['okdb'][_0xf31513(0x4cb)][_0xf31513(0x5a2)](_0x23b2a1['TXN_START'],_0x5c7ed6);try{const _0x37e0e9=_0x2969a5[_0xf31513(0x63d)]?_0x2969a5['now']():0x0;await this['okdb'][_0xf31513(0x767)]['transaction'](()=>{const _0x288c6c=_0xf31513;for(const _0x2a0266 of this['actions']){const _0x1dec19=this[_0x288c6c(0x61e)]['_'+_0x2a0266[_0x288c6c(0x6d0)]];if(typeof _0x1dec19!==_0x288c6c(0x640))throw new Error(_0x288c6c(0x579)+_0x2a0266['action']);_0x1dec19[_0x288c6c(0x4d1)](this['okdb'],this,..._0x2a0266[_0x288c6c(0x645)]);}}),_0x2969a5[_0xf31513(0x63d)]&&_0x2969a5[_0xf31513(0x520)]('txn-commit',_0x2969a5[_0xf31513(0x8cc)]()-_0x37e0e9,(this[_0xf31513(0x61e)]['name']??'?')+'\x20actions='+this['actions'][_0xf31513(0x68a)]);}catch(_0x175fb4){for(const _0x193c33 of this['_undoHooks']){try{_0x193c33();}catch{}}this[_0xf31513(0x492)](),this[_0xf31513(0x417)]=!![];if(_0x175fb4 instanceof _0x2712f3)throw _0x175fb4;const _0x3e16ed={'cause':_0x175fb4,'env':this[_0xf31513(0x61e)]?.['name'],'envPath':this[_0xf31513(0x61e)]?.[_0xf31513(0x500)],'pid':process['pid'],'txnId':this['id'],'actionCount':this[_0xf31513(0x5c3)][_0xf31513(0x68a)],'actions':_0x288682(this[_0xf31513(0x5c3)]),'nativeCode':_0x175fb4?.[_0xf31513(0x50e)],'nativeName':_0x175fb4?.[_0xf31513(0x54b)]};try{this[_0xf31513(0x61e)]?.[_0xf31513(0x58d)]?.['error']?.('transaction\x20commit\x20failed',{'env':_0x3e16ed[_0xf31513(0x609)],'envPath':_0x3e16ed[_0xf31513(0x1f3)],'pid':_0x3e16ed[_0xf31513(0x4ab)],'txnId':_0x3e16ed['txnId'],'actionCount':_0x3e16ed[_0xf31513(0x269)],'actions':_0x3e16ed['actions'],'nativeCode':_0x3e16ed[_0xf31513(0x64a)],'error':_0x175fb4?.[_0xf31513(0x211)],'stack':_0x175fb4?.[_0xf31513(0x221)]});}catch{}throw new _0x2712f3(_0x175fb4?.[_0xf31513(0x211)]||_0xf31513(0x7e8),_0xf31513(0x398),_0x3e16ed);}this[_0xf31513(0x61e)][_0xf31513(0x4cb)]['emit'](_0x23b2a1[_0xf31513(0x623)],_0x5c7ed6);for(const _0x4a7eff of this[_0xf31513(0x8e8)]){try{await _0x4a7eff();}catch{}}this['actions']=[],this[_0xf31513(0x492)](),this[_0xf31513(0x417)]=!![];}static[_0xa32521(0x76e)](_0x5b593c){const _0x997473=_0xa32521;return Object[_0x997473(0x202)]({'id':_0x5b593c['id'],'put':_0x5b593c['put'][_0x997473(0x78f)](_0x5b593c),'update':_0x5b593c[_0x997473(0x5b4)][_0x997473(0x78f)](_0x5b593c),'patch':_0x5b593c[_0x997473(0x65b)][_0x997473(0x78f)](_0x5b593c),'create':_0x5b593c[_0x997473(0x67b)][_0x997473(0x78f)](_0x5b593c),'remove':_0x5b593c[_0x997473(0x504)][_0x997473(0x78f)](_0x5b593c),'setTTL':_0x5b593c['setTTL']['bind'](_0x5b593c),'clearTTL':_0x5b593c[_0x997473(0x599)][_0x997473(0x78f)](_0x5b593c),'commit':_0x5b593c[_0x997473(0x8e6)][_0x997473(0x78f)](_0x5b593c),'rollback':_0x5b593c[_0x997473(0x880)][_0x997473(0x78f)](_0x5b593c),'get':_0x5b593c['get'][_0x997473(0x78f)](_0x5b593c),'getEntry':_0x5b593c['getEntry'][_0x997473(0x78f)](_0x5b593c),'getMany':_0x5b593c[_0x997473(0x233)][_0x997473(0x78f)](_0x5b593c),'getRange':_0x5b593c[_0x997473(0x3ee)][_0x997473(0x78f)](_0x5b593c),'getValues':_0x5b593c[_0x997473(0x88a)][_0x997473(0x78f)](_0x5b593c),'getKeys':_0x5b593c[_0x997473(0x300)][_0x997473(0x78f)](_0x5b593c),'byIndex':_0x5b593c[_0x997473(0x5c4)][_0x997473(0x78f)](_0x5b593c),'query':_0x5b593c[_0x997473(0x69f)][_0x997473(0x78f)](_0x5b593c),'getClock':_0x5b593c[_0x997473(0x3b3)]['bind'](_0x5b593c),'getCount':_0x5b593c[_0x997473(0x8ce)][_0x997473(0x78f)](_0x5b593c),'read':_0x5b593c,'raw':_0x5b593c});}static[_0xa32521(0x78c)](_0x3c786b,_0x24e8fc=[]){const _0x3e0584=_0xa32521;if(!Array[_0x3e0584(0x439)](_0x24e8fc))throw new _0x2712f3(_0x3e0584(0x6ea),'TXN_INVALID_OPS');for(const _0x4d08a0 of _0x24e8fc){if(Array[_0x3e0584(0x439)](_0x4d08a0)){const [_0x42c0c6,..._0x1d1a48]=_0x4d08a0;if(typeof _0x3c786b[_0x42c0c6]!==_0x3e0584(0x640))throw new _0x2712f3(_0x3e0584(0x579)+_0x42c0c6,_0x3e0584(0x267),{'action':_0x42c0c6});_0x3c786b[_0x42c0c6](..._0x1d1a48);continue;}if(!_0x4d08a0||typeof _0x4d08a0!==_0x3e0584(0x559))throw new _0x2712f3('txn\x20op\x20must\x20be\x20an\x20object\x20or\x20tuple',_0x3e0584(0x4de));const {action:_0x46c1f6}=_0x4d08a0;if(typeof _0x46c1f6!==_0x3e0584(0x2b1)||typeof _0x3c786b[_0x46c1f6]!==_0x3e0584(0x640))throw new _0x2712f3(_0x3e0584(0x579)+_0x46c1f6,_0x3e0584(0x267),{'action':_0x46c1f6});switch(_0x46c1f6){case _0x3e0584(0x253):case'update':case'create':_0x3c786b[_0x46c1f6](_0x4d08a0[_0x3e0584(0x45d)],_0x4d08a0[_0x3e0584(0x82f)],_0x4d08a0[_0x3e0584(0x2ef)],{..._0x4d08a0[_0x3e0584(0x688)],'ttl':_0x4d08a0['ttl']??_0x4d08a0['options']?.[_0x3e0584(0x31e)]??null});break;case'patch':_0x3c786b[_0x3e0584(0x65b)](_0x4d08a0[_0x3e0584(0x45d)],_0x4d08a0[_0x3e0584(0x82f)],_0x4d08a0[_0x3e0584(0x65b)],{..._0x4d08a0[_0x3e0584(0x688)],'ttl':_0x4d08a0[_0x3e0584(0x31e)]??_0x4d08a0[_0x3e0584(0x688)]?.['ttl']??null});break;case _0x3e0584(0x504):_0x3c786b[_0x3e0584(0x504)](_0x4d08a0[_0x3e0584(0x45d)],_0x4d08a0['key'],_0x4d08a0['options']||{});break;case _0x3e0584(0x246):_0x3c786b[_0x3e0584(0x246)](_0x4d08a0[_0x3e0584(0x45d)],_0x4d08a0['key'],_0x4d08a0[_0x3e0584(0x31e)]);break;case _0x3e0584(0x599):_0x3c786b['clearTTL'](_0x4d08a0[_0x3e0584(0x45d)],_0x4d08a0[_0x3e0584(0x82f)]);break;default:throw new _0x2712f3('Unsupported\x20transaction\x20action:\x20'+_0x46c1f6,_0x3e0584(0x267),{'action':_0x46c1f6});}}}static async[_0xa32521(0x84c)](_0x3e974e,_0x37ca4e,_0x3eb5b4={}){const _0x472929=_0xa32521,_0x2e8cb9=new _0x5a45b2(_0x3e974e,_0x3eb5b4),_0x4cc33b=_0x5a45b2[_0x472929(0x76e)](_0x2e8cb9);try{typeof _0x37ca4e===_0x472929(0x640)?await _0x37ca4e(_0x4cc33b):_0x5a45b2[_0x472929(0x78c)](_0x2e8cb9,_0x37ca4e||[]);const _0x9c8c5b=_0x2e8cb9[_0x472929(0x5c3)][_0x472929(0x68a)];return await _0x2e8cb9[_0x472929(0x8e6)](),{'id':_0x2e8cb9['id'],'actions':_0x9c8c5b};}catch(_0x3cd5da){try{_0x2e8cb9[_0x472929(0x880)]();}catch(_0x282f81){}throw _0x3cd5da;}}}return okdbTransaction=_0x5a45b2,okdbTransaction;}var dist={},hasRequiredDist;function requireDist(){const _0x33c963=_0x5c70f8;if(hasRequiredDist)return dist;hasRequiredDist=0x1,Object[_0x33c963(0x1fd)](dist,_0x33c963(0x303),{'value':!![]});const _0x3adf8f=new Float64Array(0x2),_0x33af14=new Int32Array(_0x3adf8f[_0x33c963(0x4b0)],0x0,0x4),{lowIdx:_0x545a83,highIdx:_0x12756d}=((()=>{const _0x4be03f=_0x33c963;if(new Uint8Array(new Uint32Array([0xffee1100])[_0x4be03f(0x4b0)])[0x0]===0xff)return{'lowIdx':0x1,'highIdx':0x0};return{'lowIdx':0x0,'highIdx':0x1};})());let _0x1d20d8=![],_0xa12111;try{_0xa12111=new TextEncoder();}catch(_0x360dc5){}function _0x596a51(_0xfc5ea7,_0x2f5d37,_0xfd27d5,_0x31073f){const _0x1b1f28=_0x33c963;let _0x4bbbbf=_0x2f5d37[_0x1b1f28(0x409)];if(!_0x4bbbbf)_0x4bbbbf=_0x2f5d37[_0x1b1f28(0x409)]=new DataView(_0x2f5d37[_0x1b1f28(0x4b0)],_0x2f5d37[_0x1b1f28(0x204)],_0x2f5d37[_0x1b1f28(0x43d)]+0x3>>0x2<<0x2);switch(typeof _0xfc5ea7){case _0x1b1f28(0x2b1):let _0x5f0eb1=_0xfc5ea7[_0x1b1f28(0x68a)],_0xad5f35=_0xfc5ea7[_0x1b1f28(0x82e)](0x0);if(!(_0xad5f35>=0x1c))_0x2f5d37[_0xfd27d5++]=0x1b;if(_0x5f0eb1<0x40){let _0x154829,_0x5e63a5;for(_0x154829=0x0;_0x154829<_0x5f0eb1;_0x154829++){_0xad5f35=_0xfc5ea7[_0x1b1f28(0x82e)](_0x154829);if(_0xad5f35<=0x4)_0x2f5d37[_0xfd27d5++]=0x4,_0x2f5d37[_0xfd27d5++]=_0xad5f35;else{if(_0xad5f35<0x80)_0x2f5d37[_0xfd27d5++]=_0xad5f35;else{if(_0xad5f35<0x800)_0x2f5d37[_0xfd27d5++]=_0xad5f35>>0x6|0xc0,_0x2f5d37[_0xfd27d5++]=_0xad5f35&0x3f|0x80;else(_0xad5f35&0xfc00)===0xd800&&((_0x5e63a5=_0xfc5ea7[_0x1b1f28(0x82e)](_0x154829+0x1))&0xfc00)===0xdc00?(_0xad5f35=0x10000+((_0xad5f35&0x3ff)<<0xa)+(_0x5e63a5&0x3ff),_0x154829++,_0x2f5d37[_0xfd27d5++]=_0xad5f35>>0x12|0xf0,_0x2f5d37[_0xfd27d5++]=_0xad5f35>>0xc&0x3f|0x80,_0x2f5d37[_0xfd27d5++]=_0xad5f35>>0x6&0x3f|0x80,_0x2f5d37[_0xfd27d5++]=_0xad5f35&0x3f|0x80):(_0x2f5d37[_0xfd27d5++]=_0xad5f35>>0xc|0xe0,_0x2f5d37[_0xfd27d5++]=_0xad5f35>>0x6&0x3f|0x80,_0x2f5d37[_0xfd27d5++]=_0xad5f35&0x3f|0x80);}}}}else{if(_0x2f5d37[_0x1b1f28(0x685)])_0xfd27d5+=_0x2f5d37['utf8Write'](_0xfc5ea7,_0xfd27d5,_0x2f5d37[_0x1b1f28(0x43d)]-_0xfd27d5);else _0xfd27d5+=_0xa12111[_0x1b1f28(0x6a2)](_0xfc5ea7,_0x2f5d37[_0x1b1f28(0x5c6)](_0xfd27d5))[_0x1b1f28(0x372)];if(_0xfd27d5>_0x2f5d37[_0x1b1f28(0x68a)]-0x4)throw new RangeError(_0x1b1f28(0x567));}break;case'number':_0x3adf8f[0x0]=_0xfc5ea7;let _0x3bc12d=_0x33af14[_0x545a83],_0x52b337=_0x33af14[_0x12756d],_0x3b8072;if(_0xfc5ea7<0x0)return _0x4bbbbf[_0x1b1f28(0x879)](_0xfd27d5+0x4,~(_0x3bc12d>>>0x4|_0x52b337<<0x1c)),_0x4bbbbf['setInt32'](_0xfd27d5+0x0,(_0x52b337^0x7fffffff)>>>0x4),_0x4bbbbf[_0x1b1f28(0x879)](_0xfd27d5+0x8,(_0x3bc12d&0xf^0xf)<<0x4,!![]),_0xfd27d5+0x9;else{if(_0x3bc12d&0xf||_0x31073f)_0x3b8072=0x9;else{if(_0x3bc12d&0xfffff)_0x3b8072=0x8;else{if(_0x3bc12d||_0x52b337&0xf)_0x3b8072=0x6;else _0x3b8072=0x4;}}}_0x4bbbbf[_0x1b1f28(0x879)](_0xfd27d5+0x0,_0x52b337>>>0x4|0x10000000),_0x4bbbbf['setInt32'](_0xfd27d5+0x4,_0x3bc12d>>>0x4|_0x52b337<<0x1c),_0x4bbbbf[_0x1b1f28(0x879)](_0xfd27d5+0x8,(_0x3bc12d&0xf)<<0x4,!![]);return _0xfd27d5+_0x3b8072;case _0x1b1f28(0x559):if(_0xfc5ea7){if(Array[_0x1b1f28(0x439)](_0xfc5ea7)){for(let _0x468521=0x0,_0x19afaf=_0xfc5ea7[_0x1b1f28(0x68a)];_0x468521<_0x19afaf;_0x468521++){if(_0x468521>0x0)_0x2f5d37[_0xfd27d5++]=0x0;_0xfd27d5=_0x596a51(_0xfc5ea7[_0x468521],_0x2f5d37,_0xfd27d5,!![]);}break;}else{if(_0xfc5ea7 instanceof Uint8Array){_0x2f5d37[_0x1b1f28(0x63f)](_0xfc5ea7,_0xfd27d5),_0xfd27d5+=_0xfc5ea7[_0x1b1f28(0x68a)];break;}else throw new Error('Unable\x20to\x20serialize\x20object\x20as\x20a\x20key:\x20'+JSON[_0x1b1f28(0x35a)](_0xfc5ea7));}}else _0x2f5d37[_0xfd27d5++]=0x0;break;case _0x1b1f28(0x275):_0x4bbbbf['setUint32'](_0xfd27d5++,_0xfc5ea7?0x7:0x6,!![]);return _0xfd27d5;case _0x1b1f28(0x451):let _0x42237c=Number(_0xfc5ea7);if(BigInt(_0x42237c)>_0xfc5ea7){_0x3adf8f[0x0]=_0x42237c;if(_0x42237c>0x0){if(_0x33af14[_0x545a83])_0x33af14[_0x545a83]--;else _0x33af14[_0x12756d]--,_0x33af14[_0x545a83]=0xffffffff;}else{if(_0x33af14[_0x545a83]<0xffffffff)_0x33af14[_0x545a83]++;else _0x33af14[_0x12756d]++,_0x33af14[_0x545a83]=0x0;}_0x42237c=_0x3adf8f[0x0];}let _0x5f194e=_0xfc5ea7-BigInt(_0x42237c);if(_0x5f194e===0x0n)return _0x596a51(_0x42237c,_0x2f5d37,_0xfd27d5,_0x31073f);_0x596a51(_0x42237c,_0x2f5d37,_0xfd27d5,_0x31073f),_0xfd27d5+=0x9;let _0x275dbd=BigInt((_0x33af14[_0x12756d]>>0x14&0x7ff)-0x437),_0x12dbf6=_0x5f194e>>_0x275dbd;_0x2f5d37[_0xfd27d5-0x1]|=Number(_0x12dbf6),_0x5f194e-=_0x12dbf6<<_0x275dbd;let _0x56fd95=!![];while(_0x5f194e||_0x56fd95){_0x56fd95=![],_0x275dbd-=0x7n;let _0x461c8a=_0x5f194e>>_0x275dbd;_0x2f5d37[_0xfd27d5++]=Number(_0x461c8a)|0x80,_0x5f194e-=_0x461c8a<<_0x275dbd;}return _0xfd27d5;case'undefined':return _0xfd27d5;case _0x1b1f28(0x490):_0x2f5d37[_0xfd27d5++]=0x2;return _0x596a51(_0xfc5ea7[_0x1b1f28(0x2e0)],_0x2f5d37,_0xfd27d5,_0x31073f);default:throw new Error('Can\x20not\x20serialize\x20key\x20of\x20type\x20'+typeof _0xfc5ea7);}if(_0x1d20d8&&!_0x31073f)_0x4bbbbf[_0x1b1f28(0x546)](_0xfd27d5,0x0);return _0xfd27d5;}let _0x90b608;function _0x29ba30(_0x27bdd7,_0x5576d3,_0x54fd97,_0x2064b0){const _0x2452f6=_0x33c963;_0x90b608=_0x5576d3;let _0x39ed09=_0x27bdd7[_0x90b608],_0x5f0509;if(_0x39ed09<0x18){if(_0x39ed09<0x8){_0x90b608++;if(_0x39ed09==0x6)_0x5f0509=![];else{if(_0x39ed09==0x7)_0x5f0509=!![];else{if(_0x39ed09==0x0)_0x5f0509=null;else{if(_0x39ed09==0x2)_0x5f0509=Symbol[_0x2452f6(0x708)](_0x5ebf02(_0x27bdd7,_0x54fd97));else return Uint8Array[_0x2452f6(0x511)]['slice'][_0x2452f6(0x4d1)](_0x27bdd7,_0x5576d3,_0x54fd97);}}}}else{let _0x3bdca4;try{_0x3bdca4=_0x27bdd7[_0x2452f6(0x409)]||(_0x27bdd7['dataView']=new DataView(_0x27bdd7[_0x2452f6(0x4b0)],_0x27bdd7[_0x2452f6(0x204)],_0x27bdd7['byteLength']+0x3>>0x2<<0x2));}catch(_0x1c714a){_0x3bdca4=_0x27bdd7[_0x2452f6(0x409)]||(_0x27bdd7[_0x2452f6(0x409)]=new DataView(_0x27bdd7[_0x2452f6(0x4b0)],_0x27bdd7[_0x2452f6(0x204)],_0x27bdd7[_0x2452f6(0x4b0)][_0x2452f6(0x43d)]-_0x27bdd7['byteOffset']));}let _0x35cc29=_0x3bdca4[_0x2452f6(0x82a)](_0x90b608)<<0x4,_0x4dc581=_0x54fd97-_0x90b608,_0x12b0c9;if(_0x4dc581>0x4)_0x12b0c9=_0x90b608+0x8<=_0x27bdd7[_0x2452f6(0x68a)]?_0x3bdca4[_0x2452f6(0x82a)](_0x90b608+0x4):_0x27bdd7[_0x90b608+0x4]<<0x18|_0x27bdd7[_0x90b608+0x5]<<0x10|_0x27bdd7[_0x90b608+0x6]<<0x8|_0x27bdd7[_0x90b608+0x7],_0x35cc29|=_0x12b0c9>>>0x1c,_0x4dc581<=0x6&&(_0x12b0c9&=-0x10000),_0x12b0c9=_0x12b0c9<<0x4,_0x4dc581>0x8&&(_0x12b0c9=_0x12b0c9|_0x27bdd7[_0x90b608+0x8]>>0x4);else _0x12b0c9=0x0;_0x39ed09<0x10&&(_0x35cc29=_0x35cc29^0x7fffffff,_0x12b0c9=~_0x12b0c9);_0x33af14[_0x12756d]=_0x35cc29,_0x33af14[_0x545a83]=_0x12b0c9,_0x5f0509=_0x3adf8f[0x0],_0x90b608+=0x9;if(_0x4dc581>0x9&&_0x27bdd7[_0x90b608]>0x0){_0x5f0509=BigInt(_0x5f0509);let _0x4121b3=_0x35cc29>>0x14&0x7ff,_0x17ff33=_0x27bdd7[_0x90b608-0x1]&0xf;_0x5f0509+=BigInt(_0x17ff33)<<BigInt(_0x4121b3-0x437);while((_0x17ff33=_0x27bdd7[_0x90b608])>0x0&&_0x90b608++<_0x54fd97){_0x5f0509+=BigInt(_0x17ff33&0x7f)<<BigInt((_0x5576d3-_0x90b608)*0x7+_0x4121b3-0x3f8);}}}}else{_0x39ed09==0x1b&&_0x90b608++;_0x5f0509=_0x5ebf02(_0x27bdd7,_0x54fd97);if(_0x90b608<_0x54fd97)_0x90b608--;}while(_0x90b608<_0x54fd97){if(_0x27bdd7[_0x90b608]===0x0)_0x90b608++;if(_0x2064b0)return _0x4e7344[_0x2452f6(0x238)]=_0x90b608,_0x5f0509;let _0x3393ee=_0x29ba30(_0x27bdd7,_0x90b608,_0x54fd97,!![]);if(_0x5f0509 instanceof Array)_0x5f0509[_0x2452f6(0x28d)](_0x3393ee);else _0x5f0509=[_0x5f0509,_0x3393ee];}return _0x5f0509;}const _0x43cfcf=()=>_0x1d20d8=!![],_0x4e7344={'writeKey':_0x596a51,'readKey':_0x29ba30,'enableNullTermination':_0x43cfcf};let _0x47c234=[],_0x2f635c=0x0;const _0x345e7f=typeof Buffer!==_0x33c963(0x6a3),_0x4669db=_0x345e7f?Buffer[_0x33c963(0x6fb)]:Uint8Array,_0x5ce7b9=_0x3b6a05=>{const _0x50abc6=_0x33c963;let _0x20f7b2;_0x2f635c+0x64>_0x47c234[_0x50abc6(0x68a)]&&(_0x47c234=new _0x4669db(0x2000),_0x2f635c=0x0,_0x20f7b2=!![]);try{let _0x22bcd3=_0x47c234['slice'](_0x2f635c,_0x2f635c=_0x596a51(_0x3b6a05,_0x47c234,_0x2f635c));if(_0x2f635c>_0x47c234[_0x50abc6(0x68a)]){if(_0x20f7b2)throw new Error('Key\x20is\x20too\x20large');return _0x5ce7b9(_0x3b6a05);}return _0x22bcd3;}catch(_0x1f7781){if(_0x20f7b2)throw _0x1f7781;return _0x2f635c=_0x47c234[_0x50abc6(0x68a)],_0x5ce7b9(_0x3b6a05);}},_0x517b2f=_0xdf0a53=>{const _0x208fbd=_0x33c963;return _0x29ba30(_0xdf0a53,0x0,_0xdf0a53[_0x208fbd(0x68a)]);},_0x2fbb51=String[_0x33c963(0x205)];function _0xc56f7a(){const _0x16c67b=_0x33c963;let _0x165821=_0x16c67b(0x580),_0x30b328=[];for(let _0x51721b=0x0;_0x51721b<0x30;_0x51721b++){let _0x5b6699=_0x2fbb51((_0x51721b&0xf)+0x61)+_0x2fbb51((_0x51721b>>0x4)+0x61);_0x165821+=_0x16c67b(0x3b5)+_0x5b6699+_0x16c67b(0x540)+_0x5b6699+_0x16c67b(0x5c9)+_0x5b6699+_0x16c67b(0x7dc)+_0x5b6699+_0x16c67b(0x33b)+_0x5b6699+',\x20source)\x0a\x09\x09}\x20else\x20{\x0a\x09\x09\x09if\x20('+_0x5b6699+_0x16c67b(0x8ac)+_0x5b6699+_0x16c67b(0x73a)+_0x30b328+_0x16c67b(0x64f),_0x30b328[_0x16c67b(0x28d)](_0x5b6699);}return _0x165821+=_0x16c67b(0x738)+_0x30b328+_0x16c67b(0x467),_0x165821;}const _0x1a65b3=typeof process!==_0x33c963(0x6a3)&&process[_0x33c963(0x433)]?function(_0x1a3851){let {setPosition:_0x1c8f45,getPosition:_0x27904c,readString:_0x41e771}=_0x1a3851;return _0x1f56ca=>{_0x1c8f45(_0x90b608);let _0x106657=_0x41e771(_0x1f56ca);return _0x90b608=_0x27904c(),_0x106657;};}(new Function('fromCharCode',_0x33c963(0x3be)+_0xc56f7a()+_0x33c963(0x42a)+_0x33c963(0x7d9)+_0x33c963(0x341)+_0x33c963(0x483))(_0x2fbb51)):eval(_0xc56f7a());function _0x5ebf02(_0x2d4b36,_0x36c84c){if(_0x2d4b36[_0x36c84c]>0x0){let _0x5ceb1c=_0x2d4b36[_0x36c84c];try{return _0x2d4b36[_0x36c84c]=0x0,_0x1a65b3(_0x2d4b36);}finally{_0x2d4b36[_0x36c84c]=_0x5ceb1c;}}else return _0x1a65b3(_0x2d4b36);}function _0xe107f8(_0x139655,_0x203269){const _0x393bb9=_0x33c963;if(typeof _0x139655==_0x393bb9(0x559)){if(!_0x139655)return _0x203269==null?0x0:-0x1;if(_0x139655[_0x393bb9(0x8d9)]){if(_0x203269==null)return 0x1;else return _0x203269[_0x393bb9(0x8d9)]?_0x139655[_0x393bb9(0x8d9)](_0x203269):-0x1;}let _0x1b432e;if(_0x203269 instanceof Array){let _0x11b13d=0x0;while((_0x1b432e=_0xe107f8(_0x139655[_0x11b13d],_0x203269[_0x11b13d]))==0x0&&_0x11b13d<=_0x139655[_0x393bb9(0x68a)]){_0x11b13d++;}return _0x1b432e;}_0x1b432e=_0xe107f8(_0x139655[0x0],_0x203269);if(_0x1b432e==0x0&&_0x139655['length']>0x1)return 0x1;return _0x1b432e;}else{if(typeof _0x139655==typeof _0x203269)return typeof _0x139655===_0x393bb9(0x490)&&(_0x139655=Symbol[_0x393bb9(0x33f)](_0x139655),_0x203269=Symbol[_0x393bb9(0x33f)](_0x203269)),_0x139655<_0x203269?-0x1:_0x139655===_0x203269?0x0:0x1;else{if(typeof _0x203269=='object'){if(_0x203269 instanceof Array)return-_0xe107f8(_0x203269,_0x139655);return 0x1;}else return _0x4d9158[typeof _0x139655]<_0x4d9158[typeof _0x203269]?-0x1:0x1;}}}const _0x4d9158={'symbol':0x0,'undefined':0x1,'boolean':0x2,'number':0x3,'string':0x4},_0x735fe1=null,_0x4ef7a3=new Uint8Array([0xff]);return dist[_0x33c963(0x530)]=_0x4ef7a3,dist['MINIMUM_KEY']=_0x735fe1,dist['compareKeys']=_0xe107f8,dist['enableNullTermination']=_0x43cfcf,dist[_0x33c963(0x72c)]=_0x4e7344,dist[_0x33c963(0x428)]=_0x517b2f,dist['readKey']=_0x29ba30,dist[_0x33c963(0x480)]=_0x5ce7b9,dist[_0x33c963(0x5ac)]=_0x596a51,dist;}var keyenc,hasRequiredKeyenc;function requireKeyenc(){if(hasRequiredKeyenc)return keyenc;hasRequiredKeyenc=0x1;const {writeKey:_0x3ed42c}=requireDist(),_0x5ec42a=0x7ba,_0x3dde7d=0x1000;function _0x3d4f43(_0xe95a6,_0x431ae3){const _0x3da936=_0x52a3;switch(typeof _0xe95a6){case _0x3da936(0x2b1):return _0xe95a6['length']<=_0x5ec42a&&_0xe95a6[_0x3da936(0x539)]();case'number':case _0x3da936(0x275):return!![];case _0x3da936(0x559):if(_0xe95a6===null)return!![];if(Array[_0x3da936(0x439)](_0xe95a6)){if(_0x431ae3>0x8||_0xe95a6[_0x3da936(0x68a)]>_0x5ec42a)return![];for(let _0xf297b0=0x0;_0xf297b0<_0xe95a6['length'];_0xf297b0++)if(!_0x3d4f43(_0xe95a6[_0xf297b0],_0x431ae3+0x1))return![];return!![];}return Buffer['isBuffer'](_0xe95a6)&&_0xe95a6[_0x3da936(0x68a)]<=_0x5ec42a;default:return![];}}function _0x29c999(_0x1ec8cc,_0x3f5ff0){const _0x3686ad=_0x52a3,_0x177c95=typeof _0x1ec8cc;if(_0x177c95===_0x3686ad(0x2b1)){if(_0x1ec8cc[_0x3686ad(0x68a)]>=0x40||!_0x1ec8cc['isWellFormed']()){if(!_0x3d4f43(_0x1ec8cc,0x0))return-0x1;}}else{if(_0x177c95!==_0x3686ad(0x6e7)){if(Array['isArray'](_0x1ec8cc)?_0x1ec8cc[_0x3686ad(0x68a)]===0x0||!_0x3d4f43(_0x1ec8cc,0x0):!_0x3d4f43(_0x1ec8cc,0x0))return-0x1;}}let _0x53e712;try{_0x53e712=_0x3ed42c(_0x1ec8cc,_0x3f5ff0,0x0);}catch{return-0x1;}return _0x53e712>0x0&&_0x53e712<=_0x5ec42a?_0x53e712:-0x1;}return keyenc={'encodeKey':_0x29c999,'KEY_BUF_SIZE':_0x3dde7d,'NO_FAST':Symbol('okdb.noFast')},keyenc;}var okdbHlc,hasRequiredOkdbHlc;function requireOkdbHlc(){const _0x41be86=_0x5c70f8;if(hasRequiredOkdbHlc)return okdbHlc;hasRequiredOkdbHlc=0x1;const _0x3ef3f0=0x400,_0x19a315=_0x3ef3f0-0x1,_0x2ad171=0xea60;function _0xd85f3b(_0x271516,_0x819ff5){const _0x58ea76=_0x52a3;return _0x271516*_0x3ef3f0+Math['max'](0x0,Math[_0x58ea76(0x597)](_0x819ff5,_0x19a315));}function _0x536028(_0x326e3a){const _0x77a3ac=Math['max'](0x0,Number(_0x326e3a)||0x0),_0x308e0b=_0x77a3ac%_0x3ef3f0,_0x4677f9=(_0x77a3ac-_0x308e0b)/_0x3ef3f0;return{'pt':_0x4677f9,'l':_0x308e0b};}function _0x20d7b4(_0x3fbaeb,_0x40f28b=Date[_0x41be86(0x8cc)]()){const _0x2138ce=_0x41be86,{pt:_0x43b640,l:_0x5dbd88}=_0x536028(_0x3fbaeb),_0x49d9f9=Math[_0x2138ce(0x4a0)](_0x43b640,_0x40f28b),_0x447aad=_0x49d9f9===_0x43b640?Math[_0x2138ce(0x597)](_0x5dbd88+0x1,_0x19a315):0x0;return _0xd85f3b(_0x49d9f9,_0x447aad);}function _0x37a475(_0x3a5f2b,_0x1fc873,_0x5e70b0=Date[_0x41be86(0x8cc)]()){const _0x2a015e=_0x41be86,{pt:_0x4c1426,l:_0x4b583c}=_0x536028(_0x3a5f2b),{pt:_0x260c58,l:_0x334b5c}=_0x536028(_0x1fc873),_0x39d4ec=Math[_0x2a015e(0x4a0)](_0x4c1426,_0x260c58,_0x5e70b0);let _0x197870;if(_0x39d4ec===_0x4c1426&&_0x39d4ec===_0x260c58)_0x197870=Math[_0x2a015e(0x597)](Math[_0x2a015e(0x4a0)](_0x4b583c,_0x334b5c)+0x1,_0x19a315);else{if(_0x39d4ec===_0x4c1426)_0x197870=Math['min'](_0x4b583c+0x1,_0x19a315);else _0x39d4ec===_0x260c58?_0x197870=Math['min'](_0x334b5c+0x1,_0x19a315):_0x197870=0x0;}return _0xd85f3b(_0x39d4ec,_0x197870);}function _0x41c557(_0x1f9f9a,_0x4a796c){const _0x122773=Number(_0x1f9f9a)||0x0,_0x3741c7=Number(_0x4a796c)||0x0;if(_0x122773<_0x3741c7)return-0x1;if(_0x122773>_0x3741c7)return 0x1;return 0x0;}function _0x4a4955(_0x31b3a0){return _0x536028(_0x31b3a0)['pt'];}return okdbHlc={'send':_0x20d7b4,'recv':_0x37a475,'compare':_0x41c557,'toMs':_0x4a4955,'encode':_0xd85f3b,'decode':_0x536028,'SCALE':_0x3ef3f0,'L_MAX':_0x19a315,'DRIFT_MAX':_0x2ad171},okdbHlc;}var env,hasRequiredEnv;function requireEnv(){const _0x586020=_0x5c70f8;if(hasRequiredEnv)return env;hasRequiredEnv=0x1;const {fromArray:_0x3c7583,chunkedRange:_0x4f271f,pinnedChunks:_0x53dd84,claimPrefetch:_0x3d67b0}=requireIterable(),{reclass:_0x45bc2b,NotImplementedNative:_0x8f8e5a,OKDBError:_0xe3992f,optionsArg:_0x324607}=requireErrors(),{OKDBViews:_0x5a1f78}=requireViews(),{OKDBQueue:_0x5ce0fa}=requireQueue(),{OKDBTimeMachine:_0x375fd3}=requireTimemachine(),_0x24ddb9=_0xa6c313=>{const _0x4f36b5=_0x52a3;try{return!_0xa6c313[_0x4f36b5(0x782)]||_0xa6c313[_0x4f36b5(0x782)][_0x4f36b5(0x84a)]('timeMachine');}catch{return!![];}},{OKDBFiles:_0x42f508}=requireFiles(),{OKDBEngines:_0x2a3d6d,OKDBPipelines:_0x5c7fe8}=requireEngines(),{OKDBFunctions:_0x454de4}=requireFunctions(),_0x364b78=requireProcessor(),{RawDb:_0x1394ec}=requireRawdb(),_0x34d646=requireBridge();let _0x211a9f=null;const _0x2313f8=()=>_0x211a9f||=requireOkdbTransaction(),_0x4a3096=(..._0x6eb7c7)=>requireOkdbGuardedRange()['guardSnapshotIterable'](..._0x6eb7c7),_0x18f365=Buffer[_0x586020(0x48d)]([0xff]),_0x17e2fa=process.env.OKDB_NATIVE_RAW_READS!=='0',_0x336128=_0x17e2fa&&process.env.OKDB_NATIVE_FAST_GET!=='0',{NO_FAST:_0x39d868}=requireKeyenc(),_0x2bf396=new Set(_0x17e2fa?[_0x586020(0x3ee),_0x586020(0x5c4),_0x586020(0x69f),_0x586020(0x4d6),_0x586020(0x300)]:[]),_0xd29834=new Set(['get','getEntry',_0x586020(0x233),'getRange',_0x586020(0x300),_0x586020(0x88a),_0x586020(0x8ce),_0x586020(0x764),_0x586020(0x2dd),'byIndex',_0x586020(0x416),_0x586020(0x69f),_0x586020(0x40f),_0x586020(0x853),_0x586020(0x3b3),_0x586020(0x4d6),_0x586020(0x400),_0x586020(0x8cc),_0x586020(0x414),_0x586020(0x4c3),_0x586020(0x5f8),_0x586020(0x38b),_0x586020(0x49c),'pinned',_0x586020(0x7e7),_0x586020(0x7da),'hasUniqueViolations',_0x586020(0x212),_0x586020(0x28f),_0x586020(0x687),_0x586020(0x5c1),'getRefViolation','listRefViolations',_0x586020(0x40b),'listTTL','ttlStats',_0x586020(0x456),'name',_0x586020(0x500),'id',_0x586020(0x55f),_0x586020(0x4fe),_0x586020(0x819),_0x586020(0x7f8),_0x586020(0x22a)]),_0x2a3c96=new Set([_0x586020(0x45c),_0x586020(0x735),'reverse',_0x586020(0x582),_0x586020(0x353),_0x586020(0x6b8),_0x586020(0x757),_0x586020(0x305),_0x586020(0x5d0),_0x586020(0x41c),'transaction',_0x586020(0x82f),_0x586020(0x6b9),'prefix']);function _0x104df6(_0x4b1aa7,_0x75efce,_0x4af3d4){const _0x46ce64=new Map();return(_0x6fc3f7,_0x484e68)=>{const _0x5295c4=_0x52a3,_0x264d7f=JSON[_0x5295c4(0x35a)](_0x484e68),_0x355f75=_0x46ce64[_0x5295c4(0x309)](_0x264d7f);if(_0x355f75){if(_0x355f75[_0x5295c4(0x74f)]===_0x5295c4(0x321))throw _0x38e7d2();_0x46ce64['delete'](_0x264d7f);if(_0x355f75['state']==='err')throw _0x355f75[_0x5295c4(0x2ef)];return _0x355f75[_0x5295c4(0x2ef)];}const _0x654c82=_0x6fc3f7(..._0x484e68);if(!_0x654c82||typeof _0x654c82[_0x5295c4(0x801)]!=='function')return _0x654c82;const _0x368b69={'state':_0x5295c4(0x321),'value':undefined},_0x2798b1=(_0x596a07,_0x314626)=>{const _0x5f5688=_0x5295c4;_0x368b69[_0x5f5688(0x74f)]=_0x596a07,_0x368b69[_0x5f5688(0x2ef)]=_0x314626;if(_0x46ce64[_0x5f5688(0x309)](_0x264d7f)!==_0x368b69)return;setTimeout(()=>_0x46ce64[_0x5f5688(0x309)](_0x264d7f)===_0x368b69&&_0x46ce64[_0x5f5688(0x2cb)](_0x264d7f),0x7530)['unref']();try{_0x4b1aa7['okdb'][_0x5f5688(0x210)](_0x5f5688(0x4cb),null,_0x5f5688(0x5a2),[_0x5f5688(0x4b1),{'env':_0x4b1aa7[_0x5f5688(0x54b)],'type':_0x75efce,'field':_0x4af3d4}],!![]);}catch{}};_0x654c82['then'](_0x44c7ce=>_0x2798b1('ok',_0x44c7ce),_0x45b7e=>_0x2798b1('err',_0x45b7e));for(let _0x56f4fb=0x0;_0x56f4fb<0x64&&_0x368b69[_0x5295c4(0x74f)]==='pending';_0x56f4fb++)process[_0x5295c4(0x33e)]();if(_0x368b69[_0x5295c4(0x74f)]==='ok')return _0x368b69[_0x5295c4(0x2ef)];if(_0x368b69['state']===_0x5295c4(0x2d0))throw _0x368b69[_0x5295c4(0x2ef)];_0x46ce64[_0x5295c4(0x63f)](_0x264d7f,_0x368b69);throw _0x38e7d2();};}function _0x38e7d2(){const _0xc5626d=_0x586020;return Object['assign'](new Error(_0xc5626d(0x3e0)),{'code':_0xc5626d(0x6fe)});}class _0x1107fb{constructor(_0x58e2f6,_0x28138b){const _0x41daa1=_0x586020;this['okdb']=_0x58e2f6,this[_0x41daa1(0x54b)]=_0x28138b,this[_0x41daa1(0x4cb)]=_0x58e2f6[_0x41daa1(0x4cb)],this['log']=_0x58e2f6[_0x41daa1(0x58d)],this[_0x41daa1(0x663)]=!![],this[_0x41daa1(0x4c6)]=null,this['views']=new _0x5a1f78(this),this['processor']=new _0x364b78(this);if(!_0x28138b[_0x41daa1(0x38a)]('~')||_0x28138b[_0x41daa1(0x495)](_0x41daa1(0x6b2)))this[_0x41daa1(0x622)]=new _0x5ce0fa(this);if(!_0x28138b['startsWith']('~'))this[_0x41daa1(0x87a)]=new _0x42f508(this);this[_0x41daa1(0x7b5)]=new _0x454de4(_0x58e2f6,_0x28138b),this[_0x41daa1(0x655)]=new _0x2a3d6d(_0x58e2f6,_0x28138b,_0x58e2f6[_0x41daa1(0x655)]),this[_0x41daa1(0x723)]=new _0x5c7fe8(_0x58e2f6,_0x28138b);if(!_0x28138b[_0x41daa1(0x38a)]('~')&&_0x58e2f6[_0x41daa1(0x688)][_0x41daa1(0x58f)]&&_0x24ddb9(_0x58e2f6))this[_0x41daa1(0x58f)]=new _0x375fd3(this);_0x34d646[_0x41daa1(0x74c)](this[_0x41daa1(0x500)],this);const _0x597cca=this;this[_0x41daa1(0x767)]={async 'transaction'(_0x34f865){const _0x408348=_0x41daa1,_0x212891=[];_0x597cca[_0x408348(0x4c6)]=_0x212891;try{_0x34f865();}finally{_0x597cca[_0x408348(0x4c6)]=null;}return _0x597cca[_0x408348(0x61e)]['_wb'][_0x408348(0x26b)](_0x408348(0x609),_0x597cca[_0x408348(0x54b)],_0x408348(0x8e6),[_0x212891]);},'drain'(){const _0x4e1c7f=_0x41daa1;return _0x597cca[_0x4e1c7f(0x61e)][_0x4e1c7f(0x2d7)][_0x4e1c7f(0x3ec)]();},'flushLmdb'(){const _0x17f58d=_0x41daa1;return _0x597cca['okdb']['_wb'][_0x17f58d(0x3ec)]();},'markClosed'(){}};const _0x42a310=new _0x1394ec(this,'');_0x42a310['getStats']=()=>({'lastTxnId':this['_n'](_0x41daa1(0x55f),[])}),Object[_0x41daa1(0x1fd)](_0x42a310,_0x41daa1(0x7db),{'get':()=>this[_0x41daa1(0x61e)][_0x41daa1(0x2d7)][_0x41daa1(0x3ec)](),'configurable':!![]}),Object['defineProperty'](_0x42a310,_0x41daa1(0x299),{'get':()=>this[_0x41daa1(0x61e)][_0x41daa1(0x2d7)]['drain'](),'configurable':!![]});const _0x39eee6=_0x42a310['get'][_0x41daa1(0x78f)](_0x42a310);_0x42a310[_0x41daa1(0x309)]=_0x40fb45=>_0x40fb45===_0x41daa1(0x800)?this['_n'](_0x41daa1(0x3b3),[null]):_0x39eee6(_0x40fb45),this['db']=_0x42a310;}async[_0x586020(0x5df)](){const _0x2c520d=_0x586020;this[_0x2c520d(0x475)]=!![];}get[_0x586020(0x21c)](){const _0x1fbcd0=_0x586020;return new Map(this[_0x1fbcd0(0x61e)][_0x1fbcd0(0x210)]('db',null,'formerOrigins',[this['name']],![]));}get[_0x586020(0x394)](){const _0x20d16e=_0x586020;return this[_0x20d16e(0x4d0)]||(this[_0x20d16e(0x4d0)]=new _0x1394ec(this,_0x20d16e(0x3ba)));}['_getType'](_0xb21975){const _0x2d5268=_0x586020,_0x122c21=this[_0x2d5268(0x394)][_0x2d5268(0x309)](_0xb21975);if(_0x122c21===undefined||String(_0xb21975)[_0x2d5268(0x38a)](_0x2d5268(0x586))||String(_0xb21975)[_0x2d5268(0x38a)]('__fts:')){const {OKDBError:_0x2c4980}=requireErrors();throw new _0x2c4980(_0x2d5268(0x63c)+_0xb21975+_0x2d5268(0x290),_0x2d5268(0x1ca),{'type':_0xb21975});}const _0x1941db=this,_0x12ed8f=new _0x1394ec(_0x1941db,_0x2d5268(0x8b7)+_0xb21975+':index'),_0x58a3d0=new Map();for(const _0x498e77 of _0x12ed8f[_0x2d5268(0x300)]()){const _0x5070a3=_0x12ed8f['get'](_0x498e77)||{},_0x39dbf4={'parts':_0x498e77[_0x2d5268(0x5e4)]('~'),'db':new _0x1394ec(_0x1941db,_0x2d5268(0x8b7)+_0xb21975+_0x2d5268(0x76d)+_0x498e77,{'dupSort':!![]})};if(_0x5070a3[_0x2d5268(0x2de)])_0x39dbf4[_0x2d5268(0x2de)]=_0x5070a3['geoConfig'];if(_0x5070a3['unique'])_0x39dbf4[_0x2d5268(0x21e)]=!![];if(_0x5070a3[_0x2d5268(0x856)])_0x39dbf4['sparse']=!![];if(_0x5070a3[_0x2d5268(0x2d2)])_0x39dbf4[_0x2d5268(0x2d2)]=_0x5070a3['createdBy'];_0x39dbf4['usedBy']=new Set((_0x5070a3['usedBy']??[])[_0x2d5268(0x35e)](_0x150cae=>_0x150cae[_0x2d5268(0x2a7)]+':'+_0x150cae[_0x2d5268(0x54b)])),_0x58a3d0[_0x2d5268(0x63f)](_0x498e77,_0x39dbf4);}return{'root':new _0x1394ec(_0x1941db,'type:'+_0xb21975),'data':new _0x1394ec(_0x1941db,_0x2d5268(0x8b7)+_0xb21975+_0x2d5268(0x3b7),{'useVersions':!![]}),'indexes':_0x12ed8f,'clockToChange':new _0x1394ec(_0x1941db,_0x2d5268(0x8b7)+_0xb21975+_0x2d5268(0x4aa)),'keyToChange':new _0x1394ec(_0x1941db,_0x2d5268(0x8b7)+_0xb21975+':keyToChange'),'fieldSchema':new Map(Object[_0x2d5268(0x719)](_0x122c21[_0x2d5268(0x376)]||{})[_0x2d5268(0x35e)](([_0x239bc3,_0x1e9b52])=>[_0x239bc3,new Set(Array[_0x2d5268(0x439)](_0x1e9b52)?_0x1e9b52:[_0x1e9b52])])),'indexToDb':_0x58a3d0,'ftsToDb':null,'schema':_0x122c21['schema']||null,'defaultTTL':_0x122c21[_0x2d5268(0x55d)]||null};}get[_0x586020(0x760)](){const _0x4d0b4e=_0x586020,_0x16b0a7=this,_0xc8771a=()=>_0x16b0a7[_0x4d0b4e(0x4c3)]();return{'get':_0x1addcd=>{const _0x2b8ed0=_0x4d0b4e;try{return _0x16b0a7[_0x2b8ed0(0x3c8)](_0x1addcd);}catch{return undefined;}},'has':_0x2196fb=>_0xc8771a()[_0x4d0b4e(0x495)](_0x2196fb),'keys':()=>_0xc8771a()[Symbol['iterator']](),get 'size'(){const _0x6f2374=_0x4d0b4e;return _0xc8771a()[_0x6f2374(0x68a)];}};}[_0x586020(0x695)](){const _0x4975ae=_0x586020;return this[_0x4975ae(0x4c3)]();}get[_0x586020(0x365)](){const _0x59731d=_0x586020;return this[_0x59731d(0x506)]||(this['_changeToClockDb']=new _0x1394ec(this,'changes'));}get['clockToChangeDb'](){const _0x67f1b4=_0x586020;return this[_0x67f1b4(0x6ec)]||(this[_0x67f1b4(0x6ec)]=new _0x1394ec(this,_0x67f1b4(0x855)));}[_0x586020(0x222)](_0x37b6c4){const _0x1f8cdf=_0x586020;return this['_n'](_0x1f8cdf(0x556),[_0x37b6c4]);}get[_0x586020(0x746)](){const _0xdf362e=_0x586020;return!this['_n'](_0xdf362e(0x8ef),[],![]);}get[_0x586020(0x7d7)](){const _0x11afac=_0x586020;return this['__syncOverride']!==undefined?this['__syncOverride']:this['_n'](_0x11afac(0x8ef),[],![]);}set[_0x586020(0x7d7)](_0x28aee3){const _0x24de56=_0x586020;this[_0x24de56(0x7e9)]=_0x28aee3;}get[_0x586020(0x3f5)](){const _0x43afad=_0x586020;return this['_compactLock']||(this[_0x43afad(0x463)]=new(requireLock())['NativeLock'](this[_0x43afad(0x61e)],_0x43afad(0x5b5),_0x43afad(0x502),{'ttlMs':0xea60}));}get[_0x586020(0x500)](){const _0x21d2ba=_0x586020;return this[_0x21d2ba(0x1cb)]??(this[_0x21d2ba(0x1cb)]=this['_n'](_0x21d2ba(0x500),[]));}get['id'](){return this['_n']('id',[]);}get[_0x586020(0x3e4)](){const _0x5b66e0=_0x586020;return this[_0x5b66e0(0x61e)][_0x5b66e0(0x3e4)];}['_n'](_0x4c93ce,_0x428cf2){const _0x585de4=_0x586020;return this[_0x585de4(0x61e)][_0x585de4(0x210)](_0x585de4(0x609),this[_0x585de4(0x54b)],_0x4c93ce,_0x428cf2,!_0xd29834['has'](_0x4c93ce));}[_0x586020(0x30a)](_0x5a644d){const _0x501f13=_0x586020;return this[_0x501f13(0x61e)][_0x501f13(0x7aa)](_0x5a644d);}[_0x586020(0x44d)](_0x1c5d51,_0x4c265c){const _0x4a53c8=_0x586020;if(_0x2bf396['has'](_0x1c5d51===_0x4a53c8(0x6a1)?_0x4c265c[0x1]:_0x1c5d51))return this['okdb'][_0x4a53c8(0x6fc)](this[_0x4a53c8(0x54b)],_0x1c5d51,_0x4c265c);return this[_0x4a53c8(0x61e)]['_callPacked'](_0x4a53c8(0x609),this[_0x4a53c8(0x54b)],_0x1c5d51,_0x4c265c);}[_0x586020(0x68f)](_0x376ec1={'useReadTransaction':![]}){return new(_0x2313f8())(this,_0x376ec1);}async['txn'](_0xa63819,_0x3d7a65){const _0x28c550=_0x586020;return _0x2313f8()[_0x28c550(0x84c)](this,_0xa63819,_0x3d7a65);}[_0x586020(0x33d)](_0x41e2c1,_0x33d47e){const _0x53ac96=_0x586020;if(this['_txnBuf'])this[_0x53ac96(0x4c6)]['push']({'action':_0x41e2c1,'args':_0x33d47e});else this['_n'](_0x41e2c1,_0x33d47e);}[_0x586020(0x482)](_0x410bd3,_0xb616cc,_0x3c164d,_0x537628,_0x4ea4e9){const _0x1dbf81=_0x586020;this[_0x1dbf81(0x33d)](_0x1dbf81(0x253),[_0xb616cc,_0x3c164d,_0x537628,_0x4ea4e9]);}[_0x586020(0x362)](_0x95de85,_0x461e62,_0x5addee,_0x185773,_0x20abc3){const _0x28cafe=_0x586020;this[_0x28cafe(0x33d)](_0x28cafe(0x5b4),[_0x461e62,_0x5addee,_0x185773,_0x20abc3]);}['_patch'](_0x5ab658,_0x2d8b08,_0x47c007,_0x1b5ff3,_0x39b658){const _0x1c6581=_0x586020;this[_0x1c6581(0x33d)](_0x1c6581(0x65b),[_0x2d8b08,_0x47c007,_0x1b5ff3,_0x39b658]);}['_create'](_0x45d0aa,_0xf2c9ac,_0x4d9b2f,_0x42ae46,_0x535e20){const _0x4dda83=_0x586020;this[_0x4dda83(0x33d)](_0x4dda83(0x67b),[_0xf2c9ac,_0x4d9b2f,_0x42ae46,_0x535e20]);}[_0x586020(0x46d)](_0x40c3b9,_0x4aa61f,_0x5d7488,_0x3ccd13){const _0x1ff749=_0x586020;this[_0x1ff749(0x33d)]('remove',[_0x4aa61f,_0x5d7488,_0x3ccd13]);}[_0x586020(0x613)](_0x16f272,_0x5bf653,_0x189579,_0x2e8ade){const _0x3a6c17=_0x586020;this['_low'](_0x3a6c17(0x246),[_0x5bf653,_0x189579,_0x2e8ade]);}[_0x586020(0x6b5)](_0x32b59b,_0x213302,_0x1ddbf4){const _0x19ec13=_0x586020;this['_low'](_0x19ec13(0x599),[_0x213302,_0x1ddbf4]);}['_w'](_0x57a0d7,_0x19be96){const _0x510e99=_0x586020;return this['okdb'][_0x510e99(0x2d7)][_0x510e99(0x26b)]('env',this[_0x510e99(0x54b)],_0x57a0d7,_0x19be96);}[_0x586020(0x253)](_0x2f22cd,_0x400809,_0xc86b27,_0x1b5c06={}){const _0x3f5da9=_0x586020;return this['_w'](_0x3f5da9(0x253),[_0x2f22cd,_0x400809,_0xc86b27,_0x1b5c06]);}[_0x586020(0x5b4)](_0x5e52a7,_0x174302,_0x1b7e8c,_0x519995={}){const _0x3a09b6=_0x586020;return this['_w'](_0x3a09b6(0x5b4),[_0x5e52a7,_0x174302,_0x1b7e8c,_0x519995]);}[_0x586020(0x65b)](_0x2c373f,_0x14cc4d,_0x231405,_0x4e7ccc={}){const _0x1dd2fa=_0x586020;return this['_w'](_0x1dd2fa(0x65b),[_0x2c373f,_0x14cc4d,_0x231405,_0x4e7ccc]);}[_0x586020(0x67b)](_0x46f46f,_0x53f803,_0x5436e0,_0x15928c={}){const _0x4b0155=_0x586020;return this['_w'](_0x4b0155(0x67b),[_0x46f46f,_0x53f803,_0x5436e0,_0x15928c]);}['remove'](_0x3536b8,_0x8d5b0d,_0x28fbd0={}){const _0xfa3f89=_0x586020;return this['_w'](_0xfa3f89(0x504),[_0x3536b8,_0x8d5b0d,_0x28fbd0]);}['get'](_0x2fa581,_0x294d62,_0x35ff01){const _0x1eefae=_0x586020;if(_0x336128&&typeof _0x2fa581==='string'){const _0x53bb84=this[_0x1eefae(0x61e)]['_getFast'](this[_0x1eefae(0x54b)],_0x2fa581,_0x294d62);if(_0x53bb84!==_0x39d868)return _0x53bb84===null?this['_n'](_0x1eefae(0x309),[_0x2fa581,_0x294d62]):_0x53bb84;}if(_0x17e2fa&&(typeof _0x294d62===_0x1eefae(0x2b1)||typeof _0x294d62===_0x1eefae(0x6e7))){const _0x2fd9fd=this['okdb']['_getRaw'](this['name'],_0x2fa581,_0x294d62);if(_0x2fd9fd!==null)return _0x2fd9fd;}return this['_n'](_0x1eefae(0x309),[_0x2fa581,typeof _0x294d62==='symbol'?null:_0x294d62]);}[_0x586020(0x233)](_0x15380d,_0xdfde9f,_0x151a86){const _0x5390d7=_0x586020,_0x7f91bb=[_0x15380d,Array[_0x5390d7(0x439)](_0xdfde9f)&&_0xdfde9f[_0x5390d7(0x224)](_0x43d442=>typeof _0x43d442===_0x5390d7(0x490))?_0xdfde9f[_0x5390d7(0x35e)](_0x1dabb6=>typeof _0x1dabb6===_0x5390d7(0x490)?null:_0x1dabb6):_0xdfde9f];return _0x17e2fa?this[_0x5390d7(0x61e)][_0x5390d7(0x6fc)](this[_0x5390d7(0x54b)],_0x5390d7(0x233),_0x7f91bb):this['_n']('getMany',_0x7f91bb);}[_0x586020(0x3a0)](_0x3a0054,_0x774334,_0x5f4e68){const _0x5a9589=_0x586020;return this['_n']('getEntry',[_0x3a0054,typeof _0x774334===_0x5a9589(0x490)?null:_0x774334]);}[_0x586020(0x8ce)](_0x49eed0,_0x22c432){const _0x17a300=_0x586020;return this[_0x17a300(0x64b)](_0x17a300(0x8ce),_0x22c432),this['_n']('getCount',[_0x49eed0,_0x43b959(_0x22c432)]);}[_0x586020(0x64b)](_0x221008,_0x5a8a5e,_0x1bafc2=[]){const _0x125f37=_0x586020;if(!_0x5a8a5e||typeof _0x5a8a5e!==_0x125f37(0x559))return;for(const _0x226bee of Object['keys'](_0x5a8a5e)){if(!_0x2a3c96['has'](_0x226bee)&&!_0x1bafc2[_0x125f37(0x495)](_0x226bee))throw new _0xe3992f(_0x221008+':\x20unknown\x20option\x20\x27'+_0x226bee+'\x27',_0x125f37(0x5de),{'option':_0x226bee});}}[_0x586020(0x64d)](_0x243b72,_0x814a6d,_0x2871b2,_0x40543e,_0x5c8900,_0x4c8356){const _0x414c1f=_0x586020;this['_assertRangeOptions'](_0x243b72,_0x40543e);const _0x4719f3=_0x40543e?.[_0x414c1f(0x41c)],_0x23c607=_0x43b959(_0x40543e);if(_0x4719f3===!![]||_0x4719f3==='tolerant'){const _0x47c5e0=this['_lazyPinned'](_0x243b72,_0x814a6d,_0x512241=>[_0x2871b2,{..._0x23c607,..._0x512241}],_0x40543e);return _0x4c8356?_0x47c5e0[_0x414c1f(0x35e)](_0x4c8356):_0x47c5e0;}const _0x775ebe=_0x4f271f(_0x49af09=>this['_np'](_0x814a6d,[_0x2871b2,_0x49af09]),_0x23c607,_0x5c8900,{'rows':_0x814a6d===_0x414c1f(0x3ee)});return _0x4c8356?_0x775ebe['map'](_0x4c8356):_0x775ebe;}[_0x586020(0x7d3)](_0x23b70c,_0x2ba5da,_0x59c7c6,_0x390e7d,_0x277c79,_0x3b12e8=![]){const _0x5b5c55=_0x586020,{source:_0x13f3e3,prefetch:_0x311cc4}=_0x53dd84((_0x49632a,_0x9890a5)=>_0x49632a==='unpin'?this['_n'](_0x49632a,_0x9890a5):this['_np'](_0x49632a,_0x9890a5),_0x2ba5da,_0x59c7c6,_0x390e7d||{},_0x277c79),_0x49ef80=_0x311cc4(),_0x5ca1f1=!_0x3b12e8&&_0x390e7d&&_0x390e7d[_0x5b5c55(0x41c)]==='tolerant';let _0x30fd11=null;return _0x4a3096(()=>({[Symbol[_0x5b5c55(0x344)]]:()=>_0x30fd11=_0x13f3e3(0x0,_0x3d67b0(_0x49ef80))}),{'label':this[_0x5b5c55(0x54b)]+':'+_0x23b70c,..._0x5ca1f1?{'getTxnId':()=>this['db'][_0x5b5c55(0x65c)]()[_0x5b5c55(0x55f)],'resume':()=>({[Symbol[_0x5b5c55(0x344)]]:()=>_0x30fd11=_0x30fd11[_0x5b5c55(0x35d)]()})}:{}});}[_0x586020(0x3ee)](_0xe0fcdb,_0x5a07fc){const _0x33349b=_0x586020;return this[_0x33349b(0x64d)](_0x33349b(0x3ee),_0x33349b(0x3ee),_0xe0fcdb,_0x5a07fc,_0x4eeeb1=>_0x4eeeb1['key']);}[_0x586020(0x300)](_0x111c76,_0x249b36){const _0x3d40d7=_0x586020;return this[_0x3d40d7(0x64d)]('getKeys',_0x3d40d7(0x300),_0x111c76,_0x249b36,_0x54e945=>_0x54e945);}[_0x586020(0x88a)](_0x3e0c03,_0x858ee4){const _0x1994c3=_0x586020;return this['_range']('getValues','getRange',_0x3e0c03,_0x858ee4,_0x46bf90=>_0x46bf90[_0x1994c3(0x82f)],_0x2b8624=>_0x2b8624[_0x1994c3(0x2ef)]);}[_0x586020(0x764)](_0x2a892f,_0x56a2d2,_0x153949={}){return this['getRange'](_0x2a892f,{'start':_0x56a2d2,'end':_0x56a2d2+'',..._0x153949});}['getIndex'](_0x54b0b8,_0x516c82,_0x5af55d={}){const _0x4219c2=_0x586020;this[_0x4219c2(0x64b)](_0x4219c2(0x2dd),_0x5af55d,[_0x4219c2(0x521)]);const _0x97383e=_0x43b959(_0x5af55d);if(_0x5af55d&&_0x5af55d[_0x4219c2(0x68f)])return _0x3c7583(this['_n'](_0x4219c2(0x2dd),[_0x54b0b8,_0x516c82,_0x97383e]));return this[_0x4219c2(0x7d3)](_0x4219c2(0x2dd),'getIndex',_0x44c307=>[_0x54b0b8,_0x516c82,{..._0x97383e,..._0x44c307}],_0x5af55d,undefined,!![]);}[_0x586020(0x5c4)](_0xfb7952,_0x3f6ea7,_0x28ecf4){const _0xbb86b5=_0x586020;this[_0xbb86b5(0x64b)](_0xbb86b5(0x5c4),_0x28ecf4,[_0xbb86b5(0x521),_0xbb86b5(0x6ff)]);const _0x3c5262=_0x43b959(_0x28ecf4);if(_0x28ecf4&&_0x28ecf4[_0xbb86b5(0x68f)])return _0x3c7583(this['_n'](_0xbb86b5(0x5c4),[_0xfb7952,_0x3f6ea7,_0x3c5262]));return this[_0xbb86b5(0x7d3)]('byIndex',_0xbb86b5(0x5c4),_0x46bca0=>[_0xfb7952,_0x3f6ea7,{..._0x3c5262,..._0x46bca0}],_0x28ecf4,undefined,!![]);}[_0x586020(0x416)](_0x4e4757,_0x31af08,_0x476741={}){const _0x30ef0f=_0x586020;return this['_n'](_0x30ef0f(0x416),[_0x4e4757,_0x31af08,_0x43b959(_0x476741)]);}['query'](_0x591c0e,_0xa09851={},_0x630e4d={}){const _0x5a19a5=_0x586020,_0x3de514=_0x4cfac7(_0x630e4d);if(_0x630e4d){for(const _0x2e7571 of Object[_0x5a19a5(0x4ac)](_0x630e4d))if(_0x2e7571!==_0x5a19a5(0x61b)&&typeof _0x630e4d[_0x2e7571]==='function')_0x3de514[_0x2e7571]=null;}if(_0x630e4d&&(_0x630e4d[_0x5a19a5(0x6b1)]||_0x630e4d[_0x5a19a5(0x24e)]))return this['_n'](_0x5a19a5(0x40f),[_0x3de514]),this[_0x5a19a5(0x872)](_0x591c0e,_0xa09851,_0x630e4d);const _0xbaaab4=typeof _0x630e4d[_0x5a19a5(0x61b)]===_0x5a19a5(0x640)?_0x630e4d[_0x5a19a5(0x61b)]:null;if(_0x630e4d[_0x5a19a5(0x526)]||_0x259252(_0xa09851)||_0x630e4d[_0x5a19a5(0x68f)]!==undefined){let _0x4ae52d=this['_n'](_0x5a19a5(0x69f),[_0x591c0e,_0xa09851,_0x3de514]);if(_0xbaaab4)_0x4ae52d=_0x4ae52d[_0x5a19a5(0x35e)](_0xbaaab4);if(_0x630e4d[_0x5a19a5(0x526)]||_0x259252(_0xa09851))return _0x4ae52d;return _0x3c7583(_0x4ae52d);}const _0x216b7b=_0x2cd07e=>typeof _0x2cd07e===_0x5a19a5(0x6e7)&&Number['isInteger'](_0x2cd07e)?Math[_0x5a19a5(0x4a0)](0x0,_0x2cd07e):Infinity;let _0x5712c8;if(_0x630e4d[_0x5a19a5(0x1da)]){const _0x2f2302=_0xa396fa=>typeof _0xa396fa===_0x5a19a5(0x6e7)&&_0xa396fa>0x0?Math[_0x5a19a5(0x3c1)](_0xa396fa):0x0;_0x5712c8=this[_0x5a19a5(0x7d3)]('query',_0x5a19a5(0x69f),_0x598251=>[_0x591c0e,_0xa09851,{..._0x3de514,..._0x598251}],null,{'limitOf':()=>_0x216b7b(_0x3de514['limit']),'offsetOf':()=>_0x2f2302(_0x3de514[_0x5a19a5(0x353)])});}else _0x5712c8=_0x4f271f(_0x51e7a8=>{const _0x1cc91f=_0x5a19a5,{__after:_0x288024,..._0x224219}=_0x51e7a8;return this[_0x1cc91f(0x44d)]('query',_0x288024===undefined?[_0x591c0e,_0xa09851,_0x224219]:[_0x591c0e,_0xa09851,_0x224219,_0x288024]);},_0x3de514,_0x4d6c3e=>_0x4d6c3e[_0x5a19a5(0x82f)],{'limitOf':_0x216b7b,'rows':!![],'prefetch':!![],'resumeOpts':(_0x2d2a57,_0x11626e)=>{const _0x4f54d1=_0x5a19a5;_0x2d2a57['offset']=0x0,_0x2d2a57[_0x4f54d1(0x4a4)]=_0x11626e;}});return _0xbaaab4?_0x5712c8[_0x5a19a5(0x35e)](_0xbaaab4):_0x5712c8;}async[_0x586020(0x872)](_0x127b6a,_0x3fc08e,_0x200e9e){const _0x57a95b=_0x586020,{select:_0x53b5cf,..._0x3bd4ad}=_0x4cfac7(_0x200e9e);let _0x56cf02={..._0x3bd4ad};const _0x253ab0=_0x56cf02['index'];if(_0x253ab0&&!Array['isArray'](_0x253ab0)&&typeof _0x253ab0===_0x57a95b(0x559)&&_0x253ab0[_0x57a95b(0x376)]){const {fields:_0xb4f383,prefix:_0x1796dd,start:_0x47a396,end:_0x3c6ded}=_0x253ab0;_0x56cf02={..._0x56cf02,'index':_0xb4f383,'prefix':_0x1796dd??_0x56cf02['prefix'],'startIndex':_0x47a396??_0x56cf02[_0x57a95b(0x2e3)],'endIndex':_0x3c6ded??_0x56cf02[_0x57a95b(0x61a)]};}const _0x27f174=await this[_0x57a95b(0x61e)]['_callMacro'](_0x57a95b(0x7f1),null,_0x57a95b(0x6a0),[this['name'],_0x127b6a,_0x3fc08e,_0x56cf02],![]),_0x3d6011=typeof _0x200e9e['select']===_0x57a95b(0x640)?_0x200e9e['select']:null;if(!_0x3d6011)return _0x27f174;return _0x27f174[_0x57a95b(0x35e)](_0x581978=>{const {score:_0x5c93d3,ftsScore:_0x48a916,numTerms:_0x36465a,maxScore:_0x79bce2,vectorScore:_0x411783,chunkHash:_0x18876a,chunk:_0x215d0f,..._0x2468c2}=_0x581978,_0x5d1bbe=_0x3d6011(_0x2468c2);for(const [_0x35d319,_0x46613e]of Object['entries']({'score':_0x5c93d3,'ftsScore':_0x48a916,'numTerms':_0x36465a,'maxScore':_0x79bce2,'vectorScore':_0x411783,'chunkHash':_0x18876a,'chunk':_0x215d0f}))if(_0x46613e!==undefined)_0x5d1bbe[_0x35d319]=_0x46613e;return _0x5d1bbe;});}[_0x586020(0x853)](_0x1ccc21,_0x12ff23,_0x2740d6={}){const _0x1b7d2d=_0x586020;let _0x3b734d=this['_n'](_0x1b7d2d(0x853),[_0x1ccc21,_0x12ff23,_0x4cfac7(_0x2740d6)]);if(typeof _0x2740d6[_0x1b7d2d(0x61b)]===_0x1b7d2d(0x640))_0x3b734d=_0x3b734d[_0x1b7d2d(0x35e)](_0x2740d6[_0x1b7d2d(0x61b)]);return _0x3b734d;}[_0x586020(0x3b3)](_0x1ef916=null,_0x48084a={}){const _0x2467d5=_0x586020;return this['_n'](_0x2467d5(0x3b3),[_0x1ef916]);}['getChanges'](_0x205629=null,_0x57f393=0x0,_0x1263b1=Number[_0x586020(0x2b9)],_0x5cbaf9={}){const _0x5f51bc=_0x586020,_0x313575=_0x43b959(_0x5cbaf9);if(_0x5cbaf9&&_0x5cbaf9[_0x5f51bc(0x68f)])return _0x3c7583(this['_n']('getChanges',[_0x205629,_0x57f393,_0x1263b1,_0x313575]));return this[_0x5f51bc(0x7d3)](_0x5f51bc(0x4d6),_0x5f51bc(0x4d6),_0x32e650=>[_0x205629,_0x57f393,_0x1263b1,{..._0x313575,..._0x32e650}],_0x5cbaf9);}['count'](_0x186c0b){const _0x45a733=_0x586020;if(Array['isArray'](_0x186c0b))return _0x186c0b[_0x45a733(0x68a)];let _0x3b4cda=0x0;for(const _0xbf3ec3 of _0x186c0b)_0x3b4cda++;return _0x3b4cda;}*[_0x586020(0x41e)](_0x356ed6){yield*_0x356ed6;}[_0x586020(0x8cc)](){const _0x20085e=_0x586020;return requireOkdbHlc()[_0x20085e(0x2ee)](this[_0x20085e(0x80b)]);}get['_ttlTimeout'](){const _0x1bbcbb=_0x586020,_0x4e9369=this['okdb'][_0x1bbcbb(0x663)]?this[_0x1bbcbb(0x61e)][_0x1bbcbb(0x210)]('db',null,'ttlTimer',[this[_0x1bbcbb(0x54b)]],![]):null;if(!_0x4e9369)return null;if(this['__ttlCancelledGen']===_0x4e9369[_0x1bbcbb(0x8df)])return null;this[_0x1bbcbb(0x26d)]=this[_0x1bbcbb(0x26d)]||new Map();let _0x461252=this['_timerObjs'][_0x1bbcbb(0x309)](_0x4e9369['gen']);if(!_0x461252){const _0x3869d5=this;_0x461252={'ref'(){},'unref'(){},'hasRef':()=>![],'gen':_0x4e9369['gen'],'at':_0x4e9369['at'],'target':_0x4e9369['target'],get '_destroyed'(){const _0x5216d4=_0x1bbcbb,_0x268b00=_0x3869d5['okdb']['_isOpen']?_0x3869d5[_0x5216d4(0x61e)][_0x5216d4(0x210)]('db',null,'ttlTimer',[_0x3869d5[_0x5216d4(0x54b)]],![]):null;return!_0x268b00||_0x268b00[_0x5216d4(0x8df)]!==this[_0x5216d4(0x8df)]||_0x3869d5[_0x5216d4(0x566)]===this[_0x5216d4(0x8df)];}},this[_0x1bbcbb(0x26d)][_0x1bbcbb(0x63f)](_0x4e9369[_0x1bbcbb(0x8df)],_0x461252);}return _0x461252;}[_0x586020(0x88b)](){const _0x328728=_0x586020,_0xa677e5=this[_0x328728(0x61e)][_0x328728(0x210)]('db',null,_0x328728(0x606),[this['name']],![]);if(_0xa677e5)this[_0x328728(0x566)]=_0xa677e5[_0x328728(0x8df)];}get[_0x586020(0x815)](){const _0x2d2ab2=_0x586020,_0x51ab39=this['okdb']['_call']('db',null,_0x2d2ab2(0x606),[this[_0x2d2ab2(0x54b)]],![]);return _0x51ab39?_0x51ab39[_0x2d2ab2(0x7ab)]:null;}get[_0x586020(0x701)](){const _0x1ce8a2=_0x586020;return this[_0x1ce8a2(0x61e)][_0x1ce8a2(0x210)]('db',null,_0x1ce8a2(0x4d2),[this[_0x1ce8a2(0x54b)]],![])?{'ref'(){},'unref'(){}}:null;}['_startAutoCompactCheck'](){const _0x10ff15=_0x586020;this[_0x10ff15(0x61e)][_0x10ff15(0x210)]('db',null,_0x10ff15(0x1d7),[this[_0x10ff15(0x54b)]],![]);}[_0x586020(0x680)](){const _0x53b56a=_0x586020;this[_0x53b56a(0x61e)][_0x53b56a(0x210)]('db',null,'stopAutoCompactCheck',[this[_0x53b56a(0x54b)]],![]);}get['_autoCompact'](){const _0x486da6=_0x586020,_0x11e497=(_0x21c992,_0x19fa3d)=>this[_0x486da6(0x61e)]['_call']('db',null,_0x21c992,[this[_0x486da6(0x54b)],..._0x19fa3d],![]),_0x2455fc=Object[_0x486da6(0x4ac)](_0x11e497('autoCompactState',[])||{}),_0x4a3a18={};for(const _0x2ba04f of _0x2455fc)Object[_0x486da6(0x1fd)](_0x4a3a18,_0x2ba04f,{'enumerable':!![],'get':()=>_0x11e497('autoCompactState',[])?.[_0x2ba04f],'set':_0x1cb015=>{const _0x42e83b=_0x486da6;_0x11e497(_0x42e83b(0x227),[_0x2ba04f,_0x1cb015]);}});return _0x4a3a18;}get[_0x586020(0x80b)](){return this['_n']('hlc',[]);}[_0x586020(0x2a1)](_0x1a8ad7,_0x35435d){const _0x2c1578=_0x586020;return require$$16[_0x2c1578(0x6b4)](_0x1a8ad7,_0x35435d);}async['registerType'](_0x936799,_0x1c875c){const _0x2788fb=_0x586020;return this[_0x2788fb(0x30a)](this['_n'](_0x2788fb(0x343),[_0x936799]));}[_0x586020(0x414)](_0x5cfaab){const _0x1beb31=_0x586020;return this['_n'](_0x1beb31(0x414),[_0x5cfaab]);}[_0x586020(0x4c3)](){const _0x3b2e6f=_0x586020;return this['_n'](_0x3b2e6f(0x4c3),[]);}async[_0x586020(0x2a4)](_0x4ec5c5,_0x360168){const _0xc1b6ff=_0x586020;return this[_0xc1b6ff(0x30a)](this['_n'](_0xc1b6ff(0x2a4),[_0x4ec5c5]));}async[_0x586020(0x1be)](_0x512f82,_0x37cf8b){const _0x3a584b=_0x586020,{timestamp:_0x2ad47b,indexes:indexes=[]}=_0x324607(_0x37cf8b);return this[_0x3a584b(0x30a)](this['_n'](_0x3a584b(0x1be),[_0x512f82,{'indexes':indexes}]));}async[_0x586020(0x2ea)](_0x330bc0){const _0x24d7b1=_0x586020,{type:_0x1e2fa6,indexes:indexes=[],fts:fts=[],views:views=[],schema:schema=null}=_0x324607(_0x330bc0,_0x24d7b1(0x70a));if(!_0x1e2fa6)throw new Error(_0x24d7b1(0x4ba));await this['ensureType'](_0x1e2fa6,{'indexes':indexes});for(const _0x5ada05 of fts){const {name:_0x36eaa5,fields:_0x34fdd0,..._0x164dbd}=_0x5ada05;if(!_0x36eaa5||!_0x34fdd0)throw new Error(_0x24d7b1(0x410));await this[_0x24d7b1(0x61e)][_0x24d7b1(0x6b1)][_0x24d7b1(0x2ea)](_0x1e2fa6,_0x36eaa5,{'fields':_0x34fdd0,..._0x164dbd},this);}for(const _0x201688 of views){const {name:_0x1eaec1,definition:_0x477742}=_0x201688;if(!_0x1eaec1||!_0x477742)throw new Error(_0x24d7b1(0x799));if(!await this[_0x24d7b1(0x876)][_0x24d7b1(0x437)](_0x1eaec1))await this[_0x24d7b1(0x876)][_0x24d7b1(0x67b)](_0x1eaec1,_0x477742);}if(schema)await this[_0x24d7b1(0x241)](_0x1e2fa6,schema);}async[_0x586020(0x8cb)](_0x2163d4,_0x4b1f71,_0x1ce4ae){const _0x69f9e3=_0x586020,_0x241127=this['_n'](_0x69f9e3(0x3f1),[_0x2163d4,_0x4b1f71,typeof _0x1ce4ae===_0x69f9e3(0x559)?_0x1ce4ae:{}]);if(!_0x241127)return this[_0x69f9e3(0x30a)](undefined);const _0x45e06d=this['_n'](_0x69f9e3(0x529),[_0x2163d4,_0x4b1f71,!![]]);if(_0x45e06d===undefined)return this[_0x69f9e3(0x30a)](undefined);return this[_0x69f9e3(0x30a)](await this[_0x69f9e3(0x4b5)](_0x2163d4,_0x4b1f71,_0x45e06d));}async[_0x586020(0x4b5)](_0x3b6063,_0x32bbf1,_0x1dca5d){const _0x355094=_0x586020,_0x1240ca=_0x3b6063+'@'+[][_0x355094(0x6cf)](_0x32bbf1)[_0x355094(0x596)]('~');if(!this[_0x355094(0x551)])this['_indexBuilds']=new Map();const _0x48c1af=this[_0x355094(0x551)][_0x355094(0x309)](_0x1240ca);if(_0x48c1af)return _0x48c1af;const _0x43ea54=((async()=>{const _0x1a9bf4=_0x355094;do await new Promise(_0x942eb8=>setImmediate(_0x942eb8));while(!this['_n'](_0x1a9bf4(0x83c),[_0x3b6063,_0x32bbf1,_0x1dca5d,!![]]));})());this[_0x355094(0x551)][_0x355094(0x63f)](_0x1240ca,_0x43ea54);try{return await _0x43ea54;}finally{this[_0x355094(0x551)][_0x355094(0x2cb)](_0x1240ca);}}async[_0x586020(0x8e3)](_0x5dd8af,_0x4f1630,_0x339cee){const _0x23c2c7=_0x586020;return this[_0x23c2c7(0x30a)](this['_n'](_0x23c2c7(0x8e3),[_0x5dd8af,_0x4f1630]));}async['resetIndex'](_0x58d4d9,_0x36ac20,_0x11f0fd){const _0xa47b14=_0x586020,_0x2c84a3=this[_0xa47b14(0x551)]&&this['_indexBuilds'][_0xa47b14(0x309)](_0x58d4d9+'@'+[][_0xa47b14(0x6cf)](_0x36ac20)[_0xa47b14(0x596)]('~'));if(_0x2c84a3)return _0x2c84a3;const _0x2ed8ed=this['_n'](_0xa47b14(0x529),[_0x58d4d9,_0x36ac20,_0x11f0fd]);if(_0x2ed8ed===undefined)return;return await new Promise(_0x4455b6=>setImmediate(_0x4455b6)),this[_0xa47b14(0x30a)](await this[_0xa47b14(0x4b5)](_0x58d4d9,_0x36ac20,_0x2ed8ed));}[_0x586020(0x5f8)](_0x1d2b77,_0x121098){const _0x4888ab=_0x586020;return this['_n'](_0x4888ab(0x5f8),[_0x1d2b77,_0x121098]);}[_0x586020(0x38b)](_0x1004a5,_0x2f84e4){const _0x50f268=_0x586020;return this['_n'](_0x50f268(0x38b),[_0x1004a5,_0x2f84e4]);}async[_0x586020(0x864)](_0x4e232e,_0xf7db8f){const _0x86e8c8=_0x586020;if(this['_n'](_0x86e8c8(0x38b),[_0x4e232e,_0xf7db8f])==='ready')return!![];let _0x108a13=0xa;for(;;){await new Promise(_0x39e6ae=>setTimeout(_0x39e6ae,_0x108a13));if(!this[_0x86e8c8(0x61e)][_0x86e8c8(0x663)]||this[_0x86e8c8(0x475)])return![];let _0x259834;try{_0x259834=this['_n'](_0x86e8c8(0x49c),[_0x4e232e,Array[_0x86e8c8(0x439)](_0xf7db8f)?_0xf7db8f[_0x86e8c8(0x596)]('~'):String(_0xf7db8f)[_0x86e8c8(0x5e4)](',')[_0x86e8c8(0x596)]('~')]);}catch{return![];}const _0x24f751=_0x259834&&_0x259834[_0x86e8c8(0x717)];if(_0x24f751===_0x86e8c8(0x237))return!![];if(_0x24f751===undefined)return![];_0x108a13=Math[_0x86e8c8(0x597)](_0x108a13*0x2,0xfa);}}[_0x586020(0x49c)](_0x10a434,_0x2382c6){const _0x1bca98=_0x586020;return this['_n'](_0x1bca98(0x49c),[_0x10a434,_0x2382c6])??null;}[_0x586020(0x7da)](_0x22afba,_0x5681e7){return this['_n']('getUniqueViolations',[_0x22afba,_0x5681e7]);}['hasUniqueViolations'](_0x5983ff,_0x3acc5c){return this['_n']('hasUniqueViolations',[_0x5983ff,_0x3acc5c]);}[_0x586020(0x212)](_0x59c4a5,_0x13fc0b,_0x3d5b75){const _0x572a78=_0x586020;return this['_n'](_0x572a78(0x212),[_0x59c4a5,_0x13fc0b,_0x3d5b75])??null;}[_0x586020(0x28f)](_0x3771b0){const _0x2f4088=_0x586020;return this['_n'](_0x2f4088(0x28f),[_0x3771b0])??null;}async['setSchema'](_0x4f3374,_0x3ccb46){const _0x2529cd=_0x586020;return this[_0x2529cd(0x30a)](this['_n'](_0x2529cd(0x241),[_0x4f3374,_0x3ccb46]));}async[_0x586020(0x8a7)](_0x48b912){const _0x3da2ea=_0x586020;return this['_wsettle'](this['_n'](_0x3da2ea(0x8a7),[_0x48b912]));}['getViolation'](_0x22cbfb,_0x3acf7f){const _0x2c5aca=_0x586020;return this['_n'](_0x2c5aca(0x687),[_0x22cbfb,_0x3acf7f])??null;}[_0x586020(0x5c1)](_0x3d7a2){const _0x5bde23=_0x586020;return this['_n'](_0x5bde23(0x5c1),[_0x3d7a2]);}['getRefViolation'](_0x15f15e,_0x52310b,_0x428a56){return this['_n']('getRefViolation',[_0x15f15e,_0x52310b,_0x428a56])??null;}['listRefViolations'](_0x4f8ae5){const _0x4ef0c5=_0x586020;return this['_n'](_0x4ef0c5(0x79f),[_0x4f8ae5]);}async[_0x586020(0x246)](_0x1959df,_0x31e6a2,_0x27774a){const _0x58fe2c=_0x586020;return this[_0x58fe2c(0x30a)](this['_n']('setTTL',[_0x1959df,_0x31e6a2,_0x27774a]));}[_0x586020(0x40b)](_0x52092e,_0x3a2185){const _0x160df5=_0x586020;return this['_n'](_0x160df5(0x40b),[_0x52092e,_0x3a2185]);}async[_0x586020(0x599)](_0x1ac2ec,_0x464811){const _0x270895=_0x586020;return this[_0x270895(0x30a)](this['_n'](_0x270895(0x599),[_0x1ac2ec,_0x464811]));}async[_0x586020(0x2a9)](_0x5d638d){const _0x49d781=_0x586020;return this['_n'](_0x49d781(0x2a9),[_0x5d638d]);}[_0x586020(0x8b0)](_0x15f082={}){const _0x2967c9=_0x586020;return this['_n'](_0x2967c9(0x8b0),[_0x15f082]);}[_0x586020(0x722)](_0x4aff95){const _0x47997e=_0x586020;return this['_n'](_0x47997e(0x722),[_0x4aff95]);}async['setDefaultTTL'](_0x2cf2a5,_0x4f8575){const _0x3a3a09=_0x586020;return this['_wsettle'](this['_n'](_0x3a3a09(0x686),[_0x2cf2a5,_0x4f8575]));}['getDefaultTTL'](_0x3d417b){return this['_n']('getDefaultTTL',[_0x3d417b]);}async[_0x586020(0x813)](_0x2391ff){const _0x281331=_0x586020;return this[_0x281331(0x30a)](this['_n'](_0x281331(0x813),[_0x2391ff]));}async['resolveField'](_0x1e236a,_0x48f1aa,_0x5a3324,_0x2b3116){const _0xbe7c0b=_0x586020,{batch:batch=null,batchSize:_0x23ce9d}=_0x324607(_0x2b3116);if(typeof _0x1e236a!=='string'||!_0x1e236a)throw new _0xe3992f(_0xbe7c0b(0x7ac),_0xbe7c0b(0x5cb));if(typeof _0x48f1aa!==_0xbe7c0b(0x2b1)||!_0x48f1aa)throw new _0xe3992f(_0xbe7c0b(0x8ec),'BAD_PARAM');if(_0x5a3324!=null&&typeof _0x5a3324!==_0xbe7c0b(0x640))throw new _0xe3992f('resolveField:\x20resolver\x20must\x20be\x20a\x20function','BAD_PARAM');if(batch!=null&&typeof batch!=='function')throw new _0xe3992f(_0xbe7c0b(0x7c0),_0xbe7c0b(0x5cb));if(!_0x5a3324&&!batch)throw new _0xe3992f('resolveField:\x20a\x20resolver\x20or\x20options.batch\x20is\x20required',_0xbe7c0b(0x5cb));if(_0x23ce9d!==undefined&&!(Number[_0xbe7c0b(0x4ea)](_0x23ce9d)&&_0x23ce9d>0x0))throw new _0xe3992f('resolveField:\x20options.batchSize\x20must\x20be\x20a\x20positive\x20integer','BAD_PARAM');const _0x5aa0d9=batch?async _0xf13bde=>(await batch(_0xf13bde))[_0xbe7c0b(0x35e)](_0x302804=>_0x302804 instanceof Error?{'__error':!![],'message':_0x302804[_0xbe7c0b(0x211)]}:_0x302804):null,_0x239af6=_0x104df6(this,_0x1e236a,_0x48f1aa),_0x5880e1=this['_n'](_0xbe7c0b(0x839),[_0x1e236a,_0x48f1aa,_0x5a3324?(_0x164c12,_0x5abb46)=>_0x239af6(_0x5a3324,[_0x164c12,_0x5abb46]):null,{'batch':_0x5aa0d9?_0x45c05a=>_0x239af6(_0x5aa0d9,[_0x45c05a]):null,'batchSize':_0x23ce9d}]);return()=>this['_n'](_0xbe7c0b(0x318),[_0x5880e1]);}async['unresolveField'](_0x25808b,_0x3be473){const _0x8e0f11=_0x586020;return this['_n'](_0x8e0f11(0x298),[_0x25808b,_0x3be473]);}[_0x586020(0x819)](_0x3dff23){const _0x456e5b=_0x586020;return this['_n'](_0x456e5b(0x819),[_0x3dff23]);}async['readField'](_0x3902a8,_0x474646,_0x4ba2b6,_0x55aff9){const _0x3ae6ae=_0x586020;return this['okdb']['_callMacro'](_0x3ae6ae(0x609),this[_0x3ae6ae(0x54b)],'readField',[_0x3902a8,_0x474646,_0x4ba2b6,_0x55aff9],![]);}async['readFieldMany'](_0x80f5fb,_0x4c22b1,_0x348be8){const _0x57cfd2=_0x586020;return this[_0x57cfd2(0x61e)][_0x57cfd2(0x661)](_0x57cfd2(0x609),this['name'],_0x57cfd2(0x22a),[_0x80f5fb,_0x4c22b1,_0x348be8],![]);}[_0x586020(0x378)](){}[_0x586020(0x6db)](_0x30d5e2,_0xebb4d5,_0x3ad474,_0x38096c={},_0xa1d180={}){const _0x2244a8=_0x586020;return this['okdb'][_0x2244a8(0x210)](_0x2244a8(0x6b1),null,_0x2244a8(0x6db),[_0x30d5e2,_0xebb4d5,_0x3ad474,_0x38096c,_0xa1d180,this[_0x2244a8(0x54b)]],![]);}get['fts'](){const _0x20e30c=_0x586020;return this[_0x20e30c(0x61e)][_0x20e30c(0x6b1)];}[_0x586020(0x69a)](){const _0x256a95=_0x586020;return this[_0x256a95(0x61e)]['_call'](_0x256a95(0x609),this[_0x256a95(0x54b)],'getResolvedOptions',[],![]);}[_0x586020(0x5f0)](){const _0x4a1969=_0x586020;return this[_0x4a1969(0x61e)][_0x4a1969(0x5f0)]();}[_0x586020(0x75d)](){const _0x3bd841=_0x586020;return this[_0x3bd841(0x61e)][_0x3bd841(0x210)](_0x3bd841(0x609),this['name'],'writerStatus',[],![]);}[_0x586020(0x6a5)](){}get['locks'](){const _0x3bada1=_0x586020;return this[_0x3bada1(0x5d7)]||(this['_locks']=new(requireLock())['NativeLock'](this[_0x3bada1(0x61e)],this[_0x3bada1(0x54b)],_0x3bada1(0x609)));}[_0x586020(0x787)](){const _0x1a1751=_0x586020;return this[_0x1a1751(0x61e)][_0x1a1751(0x210)](_0x1a1751(0x609),this[_0x1a1751(0x54b)],_0x1a1751(0x787),[],![]);}['_registerType'](_0xea1c60){const _0x32d3ad=_0x586020;this['_n'](_0x32d3ad(0x343),[_0xea1c60]);}['_logChange'](_0x14564d){const _0x5e133e=_0x586020;this['_n'](_0x5e133e(0x5b7),[_0x14564d]);}[_0x586020(0x266)](){const _0x247f62=_0x586020;return this['_n'](_0x247f62(0x296),[]);}[_0x586020(0x8c4)](_0x5d1e42,_0x187890){return _0x5d1e42+'\x09'+_0x187890;}[_0x586020(0x68d)](_0x598db4){const _0x2bea31=_0x586020,_0x284ffa=_0x598db4[_0x2bea31(0x2bb)]('\x09');return{'type':_0x598db4[_0x2bea31(0x1f7)](0x0,_0x284ffa),'key':_0x598db4['slice'](_0x284ffa+0x1)};}get[_0x586020(0x81b)](){const _0xbbeaee=_0x586020;if(!this[_0xbbeaee(0x266)]()[_0xbbeaee(0x63d)])return null;return this[_0xbbeaee(0x360)]||(this[_0xbbeaee(0x360)]=new _0x1394ec(this,_0xbbeaee(0x6fa)));}get[_0x586020(0x7fa)](){const _0x14f3d9=_0x586020;if(!this[_0x14f3d9(0x266)]()[_0x14f3d9(0x63d)])return null;return this[_0x14f3d9(0x67d)]||(this[_0x14f3d9(0x67d)]=new _0x1394ec(this,_0x14f3d9(0x214),{'dupSort':!![]}));}[_0x586020(0x664)](_0x47a7bb,_0x9a54be,_0x16102f){this['_n']('ttlSetEntry',[_0x47a7bb,_0x9a54be,_0x16102f]);}['_isExpired'](_0x4d6bc6,_0x1a2d18){const _0x44a595=_0x586020,_0x18febb=this['_ttlByKey']?.[_0x44a595(0x309)](this[_0x44a595(0x8c4)](_0x4d6bc6,_0x1a2d18));return _0x18febb!=null&&_0x18febb<=Date[_0x44a595(0x8cc)]();}get['_nextExpiry'](){const _0x3e758b=_0x586020;return this[_0x3e758b(0x266)]()[_0x3e758b(0x72f)]??null;}get[_0x586020(0x3fa)](){const _0x32b2e6=_0x586020;return this[_0x32b2e6(0x266)]()[_0x32b2e6(0x5a4)]||0x0;}get[_0x586020(0x74b)](){return![];}[_0x586020(0x27d)](){}async['_rebuild'](_0x44cdd5,_0x477be8){const _0x369bdb=_0x586020;if(this[_0x369bdb(0x244)]){const {OKDBError:_0x54f25d}=requireErrors();throw new _0x54f25d(_0x369bdb(0x732),_0x369bdb(0x2f0));}this[_0x369bdb(0x244)]=!![];try{return await this[_0x369bdb(0x61e)]['_callMacro'](_0x369bdb(0x609),this['name'],_0x44cdd5,[_0x477be8],!![]);}finally{this[_0x369bdb(0x244)]=![];}}async[_0x586020(0x502)](_0x43328a={}){const _0x210dbb=_0x586020;return this['_rebuild'](_0x210dbb(0x502),_0x43328a);}async[_0x586020(0x53a)](_0x153097={}){const _0x4b6c0e=_0x586020;return this[_0x4b6c0e(0x748)](_0x4b6c0e(0x53a),_0x153097);}}_0x1107fb[_0x586020(0x67a)]=_0x18f365;function _0x259252(_0x5894c0){const _0x55d334=_0x586020;if(!_0x5894c0||typeof _0x5894c0!==_0x55d334(0x559))return![];for(const _0x22b852 of Object[_0x55d334(0x4ac)](_0x5894c0)){const _0x364954=_0x5894c0[_0x22b852];if(_0x364954&&typeof _0x364954===_0x55d334(0x559)&&(_0x364954[_0x55d334(0x7b6)]||_0x364954[_0x55d334(0x340)]))return!![];}return![];}function _0x43b959(_0x10d7de){const _0x4f2599=_0x586020;if(!_0x10d7de||typeof _0x10d7de!=='object')return{};const _0x414e53={};for(const _0x4006e3 of Object[_0x4f2599(0x4ac)](_0x10d7de)){if(_0x4006e3===_0x4f2599(0x68f)||_0x4006e3===_0x4f2599(0x41c))continue;_0x414e53[_0x4006e3]=_0x10d7de[_0x4006e3];}return _0x414e53;}function _0x4cfac7(_0x45282d){const _0x420fb1=_0x586020;if(!_0x45282d||typeof _0x45282d!==_0x420fb1(0x559))return{};const _0x480e17={};for(const _0x1acefd of Object[_0x420fb1(0x4ac)](_0x45282d)){if(typeof _0x45282d[_0x1acefd]===_0x420fb1(0x640))continue;_0x480e17[_0x1acefd]=_0x45282d[_0x1acefd];}return _0x480e17;}return env={'OKDBEnv':_0x1107fb,'HIGH_SENTINEL':_0x18f365},env;}var unsupported,hasRequiredUnsupported;function requireUnsupported(){if(hasRequiredUnsupported)return unsupported;hasRequiredUnsupported=0x1;const {NotImplementedNative:_0x3ba2a0}=requireErrors();function _0xe0d572(_0x1cd47d){const _0x41356b=_0x2b8a57=>{throw new _0x3ba2a0(_0x1cd47d,_0x2b8a57);};return new Proxy(function(){},{'get'(_0x3230a8,_0x5a5db4){const _0x4e3763=_0x52a3;if(typeof _0x5a5db4===_0x4e3763(0x490)||_0x5a5db4===_0x4e3763(0x801)||_0x5a5db4===_0x4e3763(0x861)||_0x5a5db4===_0x4e3763(0x4ec))return undefined;if(_0x5a5db4===_0x4e3763(0x87d))return _0x1cd47d;return(..._0x315272)=>_0x41356b(_0x1cd47d+'.'+String(_0x5a5db4));},'apply'(){_0x41356b(_0x1cd47d);},'set'(){return!![];}});}return unsupported={'notImplemented':_0xe0d572},unsupported;}var http,hasRequiredHttp;function requireHttp(){const _0x52f0be=_0x5c70f8;if(hasRequiredHttp)return http;hasRequiredHttp=0x1;function _0x1a144b(_0x37ebea,_0x3f6747={}){const _0x5997b8=_0x52a3,_0x43653e=[];let _0x12f934=![];_0x37ebea[_0x5997b8(0x2e5)]('/*')&&(_0x12f934=!![],_0x37ebea=_0x37ebea[_0x5997b8(0x1f7)](0x0,-0x2),_0x43653e[_0x5997b8(0x28d)]('*'));let _0x119d87=_0x37ebea[_0x5997b8(0x306)](/\/+$/,'')[_0x5997b8(0x306)](/\[([^\]]*)\]/g,(_0x2c3a02,_0x53c5e6)=>{const _0x181829=_0x5997b8,_0x11b1b3=_0x53c5e6[_0x181829(0x306)](/\/:(\w+)(?:=([^/\]\s]*))?/g,(_0x369ec0,_0x1df625)=>{const _0x21ac61=_0x181829;return _0x43653e[_0x21ac61(0x28d)](_0x1df625),_0x21ac61(0x217);});return'(?:'+_0x11b1b3+')?';})[_0x5997b8(0x306)](/\/:(\w+)/g,(_0x22a139,_0x35d316)=>{const _0x4712cc=_0x5997b8;return _0x43653e[_0x4712cc(0x28d)](_0x35d316),_0x4712cc(0x217);});if(_0x119d87==='')_0x119d87='/';return{'keys':_0x43653e,'defaults':_0x3f6747||{},'wildcard':_0x12f934,'regex':new RegExp('^'+_0x119d87+(_0x12f934?_0x5997b8(0x4fd):'')+_0x5997b8(0x23d))};}const _0x25a1ff=require$$0$3,{PassThrough:_0x42b40c}=require$$1;function _0x4d641d(_0x18cc19){const _0x1a6ddf=_0x52a3,_0x50185a=_0x18cc19[_0x1a6ddf(0x331)](':'),_0x4a557e=_0x18cc19[_0x1a6ddf(0x1f7)](0x0,_0x50185a)['replace'](/^\[|\]$/g,'');return{'address':_0x4a557e,'family':_0x4a557e[_0x1a6ddf(0x495)](':')?_0x1a6ddf(0x5e6):_0x1a6ddf(0x4e6),'port':Number(_0x18cc19[_0x1a6ddf(0x1f7)](_0x50185a+0x1))};}class _0x5d3549 extends _0x25a1ff[_0x52f0be(0x351)]{constructor(_0xb38093,_0x40e4ce){const _0x2fb417=_0x52f0be;super(),this[_0x2fb417(0x61d)]=_0xb38093,this['_addr']=_0x4d641d(_0x40e4ce),this[_0x2fb417(0x274)]=!![],this['_keepAlive']=setInterval(()=>{},0x7fffffff);}get[_0x52f0be(0x274)](){const _0x2cdb50=_0x52f0be;return this[_0x2cdb50(0x820)];}set[_0x52f0be(0x274)](_0xfdba49){const _0x41efad=_0x52f0be;this[_0x41efad(0x820)]=_0xfdba49;}[_0x52f0be(0x784)](){const _0x3e9aa5=_0x52f0be;return this[_0x3e9aa5(0x274)]?{...this['_addr']}:null;}['_release'](){const _0x398345=_0x52f0be;if(this[_0x398345(0x77d)])clearInterval(this[_0x398345(0x77d)]);this[_0x398345(0x77d)]=null;}[_0x52f0be(0x5df)](_0x254d70){const _0x4c97f4=_0x52f0be;this[_0x4c97f4(0x726)]();const _0x15ffd2=this[_0x4c97f4(0x61d)][_0x4c97f4(0x5df)]();if(_0x254d70)_0x15ffd2[_0x4c97f4(0x801)](()=>_0x254d70(),_0x254d70);return this;}[_0x52f0be(0x4bb)](){const _0x271a3d=_0x52f0be;return this[_0x271a3d(0x77d)]?.['ref'](),this;}[_0x52f0be(0x32c)](){const _0x33175f=_0x52f0be;return this[_0x33175f(0x77d)]?.[_0x33175f(0x32c)](),this;}}class _0x2a5c5a{constructor(_0x53751d){const _0x1f51cf=_0x52f0be;this[_0x1f51cf(0x61e)]=_0x53751d,this[_0x1f51cf(0x6eb)]=[],this[_0x1f51cf(0x7f0)]={'cookieName':'okdb_session'};}get['server'](){const _0x596fa9=_0x52f0be;return this[_0x596fa9(0x6eb)][0x0]||null;}['_n'](_0x43755f,_0x4af59d=[]){const _0xcdb766=_0x52f0be;return this['okdb']['_callMacro'](_0xcdb766(0x755),null,_0x43755f,_0x4af59d,!![]);}async[_0x52f0be(0x349)](_0x406056,_0x42d4dc,_0x175f48={},_0xb377c4={}){const _0x54a34=_0x52f0be;let _0x5d6f2e=await this['_n'](_0x54a34(0x349),[_0x406056,_0x42d4dc,_0x175f48,_0xb377c4]),_0x407096=0x0;return _0x5d6f2e=await this['_settle'](_0x5d6f2e,_0x407096),_0x5d6f2e;}async['_settle'](_0x1e8f67,_0x4aa94){const _0x1a1b35=_0x52f0be;while(_0x1e8f67&&typeof _0x1e8f67===_0x1a1b35(0x559)&&_0x1e8f67[_0x1a1b35(0x7fe)]!==undefined){await new Promise(_0x2c4b18=>setTimeout(_0x2c4b18,_0x4aa94<0x5?0x1:0x5)),_0x4aa94++,_0x1e8f67=await this['_n']('handleResult',[_0x1e8f67['$pending']]);}if(_0x1e8f67&&_0x1e8f67[_0x1a1b35(0x25b)]&&typeof _0x1e8f67[_0x1a1b35(0x25b)]===_0x1a1b35(0x559)&&_0x1e8f67[_0x1a1b35(0x25b)][_0x1a1b35(0x6e1)]!==undefined)_0x1e8f67[_0x1a1b35(0x25b)]=this[_0x1a1b35(0x289)](_0x1e8f67['body'][_0x1a1b35(0x6e1)]);return _0x1e8f67;}['_stream'](_0x2a8f35){const _0x2c1c36=_0x52f0be,_0x46e3ed=new _0x42b40c();let _0x24a851=![];const _0x2c74ff=()=>{const _0x39d415=_0x52a3;if(_0x24a851)return;_0x24a851=!![],clearTimeout(_0x211af0),setImmediate(()=>this['okdb'][_0x39d415(0x663)]&&this[_0x39d415(0x61e)][_0x39d415(0x210)](_0x39d415(0x755),null,'streamClose',[_0x2a8f35],!![]));};let _0x211af0=null;const _0x1f0dc2=()=>{const _0x28f77e=_0x52a3;if(_0x24a851)return;let _0x520781;try{_0x520781=this[_0x28f77e(0x61e)][_0x28f77e(0x210)](_0x28f77e(0x755),null,_0x28f77e(0x754),[_0x2a8f35],!![]);}catch{_0x520781={'chunks':[],'end':!![]};}for(const _0x55cb56 of _0x520781[_0x28f77e(0x285)])_0x46e3ed[_0x28f77e(0x21a)](_0x55cb56);if(_0x520781['end']){_0x24a851=!![],_0x46e3ed[_0x28f77e(0x735)]();return;}_0x211af0=setTimeout(_0x1f0dc2,_0x520781[_0x28f77e(0x285)][_0x28f77e(0x68a)]?0x0:0xa);};_0x46e3ed['on'](_0x2c1c36(0x5df),_0x2c74ff),_0x1f0dc2();if(!_0x24a851)_0x1f0dc2();if(_0x24a851)_0x46e3ed[_0x2c1c36(0x8ab)]();else{if(!_0x211af0)_0x211af0=setTimeout(_0x1f0dc2,0x0);}return _0x46e3ed;}['add'](_0x487646,_0x2ec455,_0x342afb,_0x137895={}){const _0x16117a=_0x52f0be;return this[_0x16117a(0x61e)][_0x16117a(0x210)](_0x16117a(0x755),null,'add',[_0x487646,_0x2ec455,_0x342afb,_0x137895,![]],!![]),this;}[_0x52f0be(0x424)](_0x18ae7e,_0x39dc7e,_0x51a442,_0x450afb={}){const _0x213044=_0x52f0be;return this['okdb']['_call'](_0x213044(0x755),null,_0x213044(0x280),[_0x18ae7e,_0x39dc7e,_0x51a442,_0x450afb,!![]],!![]),this;}['guard'](_0x87509c,_0x279215){const _0x8f8a44=_0x52f0be,_0x24a760=async _0x4a280b=>{const _0x3c11c9=_0x52a3,_0x4aeeda={'status':undefined,'headers':[],'hasBody':![],'body':undefined},_0x4e1693={'status'(_0x11cbd1){const _0xbd0d6b=_0x52a3;return _0x4aeeda[_0xbd0d6b(0x717)]=_0x11cbd1,_0x4e1693;},'setHeader'(_0x51b295,_0x48cf34){const _0x3a7486=_0x52a3;_0x4aeeda[_0x3a7486(0x449)][_0x3a7486(0x28d)]([_0x51b295,_0x48cf34]);},'send'(_0x3196af){const _0x59e0c1=_0x52a3;_0x4aeeda[_0x59e0c1(0x671)]=!![],_0x4aeeda['body']=_0x3196af;}};_0x4a280b[_0x3c11c9(0x223)]={'remoteAddress':_0x4a280b['remoteAddress']??null};const _0x48dbc3=await _0x279215(_0x4a280b,_0x4e1693);return{'allowed':_0x48dbc3!==![],..._0x4aeeda};};this[_0x8f8a44(0x61e)]['_call'](_0x8f8a44(0x755),null,_0x8f8a44(0x25a),[_0x2c0b60=>!!_0x87509c(_0x2c0b60),_0x24a760],!![]);}[_0x52f0be(0x337)](_0x2e8e0d){const _0x456bd8=_0x52f0be,_0x1ab0e0=async _0x1b7f4e=>{const _0x414972=_0x52a3,_0x2ea14e={'status':undefined,'headers':[],'hasBody':![],'body':undefined};let _0x2515af=![];const _0x427588={'status'(_0x46f7ae){const _0x43ecc7=_0x52a3;return _0x2ea14e[_0x43ecc7(0x717)]=_0x46f7ae,_0x427588;},'setHeader'(_0x3d511a,_0x1e9dbe){const _0x597de3=_0x52a3;_0x2ea14e[_0x597de3(0x449)]['push']([_0x3d511a,_0x1e9dbe]);},'send'(_0x3e25ed){const _0x496c95=_0x52a3;_0x2ea14e[_0x496c95(0x671)]=!![],_0x2ea14e[_0x496c95(0x25b)]=_0x3e25ed;}};return _0x1b7f4e['socket']={'remoteAddress':_0x1b7f4e[_0x414972(0x6c1)]??null},await _0x2e8e0d(_0x1b7f4e,_0x427588,async()=>{_0x2515af=!![];}),{'allowed':_0x2515af,..._0x2ea14e};};return this[_0x456bd8(0x61e)][_0x456bd8(0x210)](_0x456bd8(0x755),null,'use',[_0x1ab0e0],!![]),this;}get['maxBodyBytes'](){const _0x49568e=_0x52f0be;return this['okdb'][_0x49568e(0x210)](_0x49568e(0x755),null,_0x49568e(0x58b),[],![]);}set[_0x52f0be(0x573)](_0x461759){const _0x452f6b=_0x52f0be;this[_0x452f6b(0x61e)]['_call'](_0x452f6b(0x755),null,_0x452f6b(0x3f2),[Number(_0x461759)],![]);}[_0x52f0be(0x84d)](_0x482d9f,_0x355481,_0x1a1460={}){const _0x7fe326=_0x52f0be,_0x4af232=new Map(),_0xb16808=(_0x3ac2bf,_0x40cb3f)=>this[_0x7fe326(0x61e)][_0x7fe326(0x210)]('http',null,_0x3ac2bf,_0x40cb3f,![]),_0x45a751=_0x547f5e=>{const _0x236da8=_0x7fe326,{connId:_0x380f24}=_0x547f5e;if(_0x547f5e[_0x236da8(0x1f2)]){const _0x13d8c2=_0x4af232[_0x236da8(0x309)](_0x380f24);_0x4af232[_0x236da8(0x2cb)](_0x380f24);if(typeof _0x13d8c2===_0x236da8(0x640))_0x13d8c2();return;}const _0x5a98fa=(_0x1f626e,_0x3a2286,_0x3d4ecd={})=>{const _0x40029b=_0x236da8;try{_0xb16808(_0x40029b(0x6a6),[_0x380f24,_0x1f626e,_0x3a2286,_0x3d4ecd]);}catch{}},_0x42126e=()=>{const _0x13e145=_0x236da8;try{_0xb16808(_0x13e145(0x774),[_0x380f24]);}catch{}},_0x1169d5=(_0x217603,_0x1d3d26)=>_0xb16808('sseSetHeader',[_0x380f24,String(_0x217603),String(_0x1d3d26)]),_0x23f037={'auth':{'open':_0x547f5e[_0x236da8(0x2d9)],'isAuthenticated':_0x547f5e[_0x236da8(0x2a3)]}},_0x407d6b=_0x355481({'send':_0x5a98fa,'close':_0x42126e,'params':_0x547f5e['params']??{},'query':_0x547f5e[_0x236da8(0x69f)]??{},'headers':_0x547f5e[_0x236da8(0x449)]??{},'context':_0x23f037,'setHeader':_0x1169d5});_0x4af232['set'](_0x380f24,_0x407d6b);};return this[_0x7fe326(0x61e)]['_call'](_0x7fe326(0x755),null,_0x7fe326(0x84d),[_0x482d9f,_0x45a751,_0x1a1460],!![]),this;}get[_0x52f0be(0x81e)](){const _0x3a7e10=_0x52f0be;return this[_0x3a7e10(0x7c3)]();}[_0x52f0be(0x7c3)](){const _0x126b5b=_0x52f0be;return this[_0x126b5b(0x61e)][_0x126b5b(0x210)](_0x126b5b(0x755),null,'listRoutes',[],![])['map'](_0x8fbac4=>({..._0x8fbac4,'matcher':_0x1a144b(_0x8fbac4[_0x126b5b(0x500)],_0x8fbac4[_0x126b5b(0x2d1)])}));}[_0x52f0be(0x557)](_0xa3f63d,_0x361f83){const _0x3f80c9=_0x52f0be;return this['okdb'][_0x3f80c9(0x210)](_0x3f80c9(0x755),null,_0x3f80c9(0x557),[_0xa3f63d,_0x361f83],![]);}[_0x52f0be(0x3d2)](_0x46116f,_0x527980={}){const _0x346431=_0x52f0be;if(typeof _0x527980==='string'||Array['isArray'](_0x527980))_0x527980={'host':_0x527980};_0x527980=_0x527980??{};if((Number(_0x527980[_0x346431(0x2aa)])||0x0)>=0x1||_0x527980[_0x346431(0x84b)]!=null||_0x527980[_0x346431(0x85b)]!=null){const _0x16e7a8=new Error(_0x346431(0x1de)+_0x346431(0x6f4)+'CLI\x20(`okdb\x20listen`),\x20or\x20use\x20Node\x27s\x20built-in\x20`cluster`\x20module\x20and\x20call\x20'+'okdb.http.listen(port)\x20in\x20each\x20worker.');_0x16e7a8[_0x346431(0x50e)]='HTTP_CLUSTER_REMOVED';throw _0x16e7a8;}if(this[_0x346431(0x6eb)][_0x346431(0x68a)])throw new Error(_0x346431(0x230));const _0x49336e=_0x527980[_0x346431(0x657)]==null?[undefined]:[]['concat'](_0x527980[_0x346431(0x657)]);if(!_0x49336e['length']||_0x49336e[_0x346431(0x224)](_0x2fe8b1=>_0x2fe8b1!==undefined&&(typeof _0x2fe8b1!==_0x346431(0x2b1)||!_0x2fe8b1))){const _0x39b130=new Error(_0x346431(0x6bf));_0x39b130[_0x346431(0x50e)]=_0x346431(0x5c8);throw _0x39b130;}const _0x3fb4b9=require$$2[_0x346431(0x41b)]?{..._0x527980,'reuseport':!![]}:_0x527980,_0x5c9854=this['okdb']['_call'](_0x346431(0x755),null,_0x346431(0x3d2),[_0x46116f,_0x3fb4b9],!![]),_0x2f95f1=_0x5c9854[_0x346431(0x886)]??_0x46116f,_0x5275b3=_0x527980[_0x346431(0x657)]==null?':'+_0x2f95f1:_0x49336e[_0x346431(0x35e)](_0x25926c=>(_0x25926c[_0x346431(0x495)](':')?'['+_0x25926c+']':_0x25926c)+':'+_0x2f95f1)[_0x346431(0x596)](',\x20');try{this[_0x346431(0x61e)][_0x346431(0x1ff)][_0x346431(0x2d5)](_0x5275b3);if(!require(_0x346431(0x45e))[_0x346431(0x41b)])this['okdb'][_0x346431(0x1ff)][_0x346431(0x811)]({'kind':_0x346431(0x7ff),'listenAddr':_0x5275b3});}catch{}this[_0x346431(0x6eb)]=_0x5c9854[_0x346431(0x4ca)]['map'](_0x4aacb6=>new _0x5d3549(this,_0x4aacb6));const _0xb18ae7=this['servers'][0x0];return process['nextTick'](()=>this['servers']['forEach'](_0xfa47dc=>_0xfa47dc['emit'](_0x346431(0x274)))),_0xb18ae7;}async['close'](_0x214a56={}){const _0x9f4820=_0x52f0be,_0x2c4c8f=this[_0x9f4820(0x6eb)];this[_0x9f4820(0x6eb)]=[];if(require$$2[_0x9f4820(0x41b)]&&!process[_0x9f4820(0x4fb)]&&_0x214a56[_0x9f4820(0x522)]==null)_0x214a56={..._0x214a56,'forceAfterMs':Infinity};if(_0x2c4c8f[_0x9f4820(0x68a)]){const _0xbc3595=_0x214a56['forceAfterMs']===Infinity?Infinity:Number[_0x9f4820(0x85e)](_0x214a56[_0x9f4820(0x522)])?Math[_0x9f4820(0x4a0)](0x0,_0x214a56[_0x9f4820(0x522)]):0x3e8,_0x1dcae9=Date['now']();while(this[_0x9f4820(0x61e)][_0x9f4820(0x210)]('http',null,_0x9f4820(0x3a1),[],!![])>0x0&&Date[_0x9f4820(0x8cc)]()-_0x1dcae9<_0xbc3595)await new Promise(_0xe89f2d=>setTimeout(_0xe89f2d,0x5));_0x214a56={..._0x214a56,'forceAfterMs':_0xbc3595===Infinity?0x3e8:Math[_0x9f4820(0x4a0)](0x0,_0xbc3595-(Date[_0x9f4820(0x8cc)]()-_0x1dcae9))};}await this['_n'](_0x9f4820(0x5df),[_0x214a56]);for(const _0x13c88c of _0x2c4c8f){_0x13c88c[_0x9f4820(0x726)](),_0x13c88c['listening']=![],_0x13c88c[_0x9f4820(0x5a2)]('close');}}}return http={'OKDBHttp':_0x2a5c5a},http;}var fts,hasRequiredFts;function requireFts(){const _0x314b3c=_0x5c70f8;if(hasRequiredFts)return fts;hasRequiredFts=0x1;const _0x52fe5d=_0x1cc4da=>(_0x1cc4da&&typeof _0x1cc4da===_0x314b3c(0x559)?_0x1cc4da['name']:_0x1cc4da)??_0x314b3c(0x2a6);class _0x212f1e{constructor(_0x20bed9){const _0x377eaf=_0x314b3c;this[_0x377eaf(0x61e)]=_0x20bed9;}['_n'](_0x51b380,_0xdf7d83,_0x1134ed=![]){const _0x36e999=_0x314b3c;return this[_0x36e999(0x61e)][_0x36e999(0x210)](_0x36e999(0x6b1),null,_0x51b380,_0xdf7d83,_0x1134ed);}[_0x314b3c(0x52c)](_0x43745a,_0x194354){const _0x4bbbba=_0x314b3c;return this[_0x4bbbba(0x61e)][_0x4bbbba(0x661)]('fts',null,_0x43745a,_0x194354,!![]);}get[_0x314b3c(0x6da)](){const _0x29cb7f=this,_0x29c507=_0x25e01d=>{const _0x467a32=_0x52a3,_0x388d6d=_0x25e01d[_0x467a32(0x2bb)](':'),_0x400137=_0x25e01d[_0x467a32(0x1f7)](0x0,_0x388d6d),_0x129114=_0x29cb7f[_0x467a32(0x61e)][_0x467a32(0x612)][_0x467a32(0x309)](_0x400137);if(!_0x129114)return undefined;const _0xaa3fda=_0x129114[_0x467a32(0x5fa)][_0x467a32(0x47e)]()[_0x467a32(0x73d)](_0xbbbb7e=>_0xbbbb7e[_0x467a32(0x324)]===_0x467a32(0x2f4)+_0x25e01d);if(!_0xaa3fda)return undefined;return _0x129114['processor'][_0x467a32(0x4c7)](_0xaa3fda['id'],_0xaa3fda[_0x467a32(0x324)]);};return{'get':_0x29c507,'has':_0x5de163=>!!_0x29c507(_0x5de163)};}get[_0x314b3c(0x240)](){return[];}[_0x314b3c(0x1ef)](){const _0x183822=_0x314b3c,{RawDb:_0x2c43fa}=requireRawdb();return new _0x2c43fa(this[_0x183822(0x61e)][_0x183822(0x34d)],_0x183822(0x501));}['has'](_0x4d4070,_0x186f8e,_0x290638){return this['_n']('has',[_0x4d4070,_0x186f8e,_0x52fe5d(_0x290638)]);}['status'](_0x4d6283,_0x51df64,_0x1c0b37){const _0x5e3610=_0x314b3c;return this['_n'](_0x5e3610(0x717),[_0x4d6283,_0x51df64,_0x52fe5d(_0x1c0b37)]);}[_0x314b3c(0x47e)](_0x533f4c,_0x4d68c7){const _0x511f4f=_0x314b3c;return this['_n'](_0x511f4f(0x47e),[_0x533f4c,_0x52fe5d(_0x4d68c7)]);}async['_build'](_0x4720ef,_0x320415,_0x13781a,_0x154710,_0x57e5c4){const _0x4eb428=_0x314b3c,_0x5ad0b9=(_0x50169c,_0x4d7651)=>this[_0x4eb428(0x61e)][_0x4eb428(0x661)](_0x4eb428(0x6b1),null,_0x50169c,_0x4d7651,!![],![]),_0x2c3aed=Date[_0x4eb428(0x8cc)]()+0x1d4c0;let _0x2cc2e9=_0x4720ef,_0x3dd2b3=_0x320415;for(;;){try{return await _0x5ad0b9(_0x2cc2e9,_0x3dd2b3);}catch(_0x3ec049){if(_0x3ec049[_0x4eb428(0x50e)]===_0x4eb428(0x3b2)){_0x2cc2e9=_0x4eb428(0x229),_0x3dd2b3=[_0x13781a,_0x154710,_0x52fe5d(_0x57e5c4)];if(_0x3ec049[_0x4eb428(0x37e)]&&_0x3ec049[_0x4eb428(0x37e)][_0x4eb428(0x348)])await new Promise(_0x58e27c=>setTimeout(_0x58e27c,0x2));continue;}if(_0x3ec049[_0x4eb428(0x50e)]!=='FIELD_RESOLVER_PENDING'||Date[_0x4eb428(0x8cc)]()>=_0x2c3aed)throw _0x3ec049;}await new Promise(_0x142720=>setTimeout(_0x142720,0x5)),_0x2cc2e9=_0x4eb428(0x20d),_0x3dd2b3=[_0x13781a,_0x154710,!![],_0x52fe5d(_0x57e5c4)];}}async['register'](_0x4c38e0,_0x5a5382,_0xf41bdb,_0x3d26ad,_0x383e87){const _0x4b2f9e=_0x314b3c;return this[_0x4b2f9e(0x2cc)](_0x4b2f9e(0x811),[_0x4c38e0,_0x5a5382,_0xf41bdb,_0x3d26ad,_0x52fe5d(_0x383e87)],_0x4c38e0,_0x5a5382,_0x383e87);}async[_0x314b3c(0x4fa)](_0x1e0357,_0x310ebc,_0x435887){const _0x5223f9=_0x314b3c;return this['_nm'](_0x5223f9(0x4fa),[_0x1e0357,_0x310ebc,_0x52fe5d(_0x435887)]);}async['ensure'](_0x47c438,_0x190b27,_0x4706b0,_0x5eb0f6){const _0x11d5a3=_0x314b3c;return this[_0x11d5a3(0x2cc)](_0x11d5a3(0x2ea),[_0x47c438,_0x190b27,_0x4706b0,_0x52fe5d(_0x5eb0f6)],_0x47c438,_0x190b27,_0x5eb0f6);}async['reset'](_0x44bacf,_0xec8e86,_0x45c4b3,_0x1ca057){const _0x41dd30=_0x314b3c;return this[_0x41dd30(0x2cc)](_0x41dd30(0x20d),[_0x44bacf,_0xec8e86,_0x45c4b3,_0x52fe5d(_0x1ca057)],_0x44bacf,_0xec8e86,_0x1ca057);}async[_0x314b3c(0x6c3)](_0x4223be,_0x32dcba,_0x39c83a,_0x482832=0x1d4c0){const _0x31eb64=_0x314b3c,_0x266840=Date[_0x31eb64(0x8cc)]()+_0x482832;for(;;){try{return await this['_nm'](_0x4223be,[..._0x32dcba,0x1]);}catch(_0x355176){if(_0x355176[_0x31eb64(0x50e)]!==_0x39c83a||Date['now']()>=_0x266840)throw _0x355176;}await new Promise(_0x4f4c5b=>setTimeout(_0x4f4c5b,0x2));}}async['ready'](_0x3bf3c8,_0x2bb207,_0x5235fb){const _0x40d46e=_0x314b3c;return this[_0x40d46e(0x6c3)](_0x40d46e(0x237),[_0x3bf3c8,null,_0x52fe5d(_0x5235fb)],_0x40d46e(0x5ee));}async[_0x314b3c(0x889)](_0x1ab5d4,_0x51c091){const _0x58f4e8=_0x314b3c;return this[_0x58f4e8(0x6c3)](_0x58f4e8(0x889),[_0x1ab5d4,_0x52fe5d(_0x51c091)],_0x58f4e8(0x593));}async[_0x314b3c(0x502)](_0x4f2131,_0x583267){const _0x29d425=_0x314b3c;return this[_0x29d425(0x52c)](_0x29d425(0x502),[_0x4f2131,_0x52fe5d(_0x583267)]);}async[_0x314b3c(0x781)](_0x1192d2={}){return this['_nm']('process',[_0x1192d2]);}async['compactStorage'](_0x2b42fd){const _0x1e17bc=_0x314b3c;return this[_0x1e17bc(0x52c)](_0x1e17bc(0x1bb),[_0x52fe5d(_0x2b42fd)]);}[_0x314b3c(0x5ca)](_0x7dc455){const _0x351e1b=_0x314b3c;return this['_n'](_0x351e1b(0x5ca),[_0x52fe5d(_0x7dc455)]);}['search'](_0x6cce50,_0x2b053c,_0x304d2c,_0x170ac1,_0x316efd){return this['_n']('search',[_0x6cce50,_0x2b053c,_0x304d2c,_0x170ac1||{},_0x52fe5d(_0x316efd)]);}['searchDocs'](_0x46a682,_0x561dcf,_0x50be15,_0xc82234,_0x203998,_0x5d5564){return this['_n']('searchDocs',[_0x46a682,_0x561dcf,_0x50be15,_0xc82234||{},_0x52fe5d(_0x203998),_0x5d5564]);}[_0x314b3c(0x342)](_0x1ff888,_0x36a58a,_0x34efb2,_0x33f6e2,_0x3d1ed5){const _0x3eed7e=_0x314b3c;return this['_n'](_0x3eed7e(0x413),[_0x1ff888,_0x36a58a,_0x34efb2,_0x33f6e2||{},_0x52fe5d(_0x3d1ed5)]);}[_0x314b3c(0x3a7)](){const _0x4c35c9=_0x314b3c;return this['_n'](_0x4c35c9(0x3a7),[]);}async[_0x314b3c(0x3ec)](){const _0x16feb6=_0x314b3c;return this[_0x16feb6(0x52c)](_0x16feb6(0x3ec),[]);}}return fts={'OKDBFts':_0x212f1e},fts;}var embeddings,hasRequiredEmbeddings;function requireEmbeddings(){const _0x185e76=_0x5c70f8;if(hasRequiredEmbeddings)return embeddings;hasRequiredEmbeddings=0x1;const {OKDBError:_0x378b3e,invalidArgument:_0x4a5e35}=requireErrors();requireBridge();const _0x31c494=Object[_0x185e76(0x202)]({'EMBEDDER':_0x185e76(0x4c1),'INDEXER':_0x185e76(0x8ee),'SEARCH':_0x185e76(0x636),'WORKER':_0x185e76(0x590)}),_0x39f473=_0x159c34=>typeof _0x159c34===_0x185e76(0x2b1)||_0x159c34==null?_0x159c34:Array[_0x185e76(0x48d)](_0x159c34);class _0x2a7a9a{constructor(_0x2992d9){const _0x1ae7ef=_0x185e76;this[_0x1ae7ef(0x61e)]=_0x2992d9,this[_0x1ae7ef(0x634)]=new Map(),this[_0x1ae7ef(0x336)]=new Map(),this[_0x1ae7ef(0x200)]=new Map();}['_n'](_0x58a297,_0x3792fd=[],_0x4b13fa=!![]){const _0x5c69c9=_0x185e76;return this[_0x5c69c9(0x61e)][_0x5c69c9(0x210)](_0x5c69c9(0x7f1),null,_0x58a297,_0x3792fd,_0x4b13fa);}[_0x185e76(0x52c)](_0x10051d,_0x586266=[]){const _0x47922e=_0x185e76;return this[_0x47922e(0x61e)][_0x47922e(0x661)](_0x47922e(0x7f1),null,_0x10051d,_0x586266,!![]);}['_wrap'](_0xa5fb64){const _0x10c23c=_0x185e76;return _0xa5fb64?this['okdb'][_0x10c23c(0x655)][_0x10c23c(0x215)](_0xa5fb64):null;}[_0x185e76(0x5d4)](_0x1ac816,_0x50feea,_0x5704f1={}){const _0x5b3e8e=_0x185e76;if(typeof _0x50feea!=='function')throw new _0x378b3e(_0x5b3e8e(0x7bd),_0x5b3e8e(0x5cb),{'name':_0x1ac816});this[_0x5b3e8e(0x634)]['set'](_0x1ac816,_0x50feea),this[_0x5b3e8e(0x336)]['set'](_0x1ac816,_0x5704f1);const _0xf2e714=this[_0x5b3e8e(0x61e)],_0x43ec8c=_0x54139a=>_0x50feea(_0x54139a,_0xf2e714);_0x43ec8c[_0x5b3e8e(0x263)]=_0xf2e714,this['_n'](_0x5b3e8e(0x5d4),[_0x1ac816,_0x43ec8c,_0x5704f1??{}],![]);}[_0x185e76(0x5c5)](_0x227d3f){const _0x5a4e6f=_0x185e76,_0x9d76cd=this[_0x5a4e6f(0x634)][_0x5a4e6f(0x309)](_0x227d3f);if(_0x9d76cd)return _0x9d76cd;if(!this['_n'](_0x5a4e6f(0x4e2),[_0x227d3f],![]))return null;const _0x7872db=this;return(_0x27252e={})=>{const _0x3700fc=_0x5a4e6f,_0x230dcc=_0x7872db['_n']('embedderNew',[_0x227d3f,_0x27252e],![]),_0x4126cc=_0x7872db['_n'](_0x3700fc(0x82c),[_0x230dcc],![]),_0x11dc4c=(_0x465ce5,_0x4a74e6)=>_0x7872db['_n'](_0x3700fc(0x307),[_0x230dcc,_0x465ce5,_0x4a74e6],![]),_0x2f3500={'embed':async _0x4f900a=>Float32Array[_0x3700fc(0x48d)](_0x11dc4c(_0x3700fc(0x595),_0x4f900a)),'start':async()=>_0x11dc4c(_0x3700fc(0x45c)),'stop':async()=>{const _0x1f2296=_0x3700fc;_0x11dc4c(_0x1f2296(0x1f1)),_0x11dc4c(_0x1f2296(0x6b6));}};if(_0x4126cc)_0x2f3500[_0x3700fc(0x515)]=async _0x586949=>_0x11dc4c('embedBatch',_0x586949)[_0x3700fc(0x35e)](_0x420bf9=>Float32Array[_0x3700fc(0x48d)](_0x420bf9));return _0x2f3500;};}[_0x185e76(0x7b1)](_0x3b292e){const _0x2549c9=_0x185e76;return this[_0x2549c9(0x336)]['get'](_0x3b292e)??this['_n'](_0x2549c9(0x7b1),[_0x3b292e],![])??undefined;}[_0x185e76(0x426)](_0x237141,_0x494298,_0x5c2653={}){const _0x4560de=_0x185e76;if(typeof _0x494298!==_0x4560de(0x640))throw new _0x378b3e(_0x4560de(0x2b7),_0x4560de(0x5cb),{'name':_0x237141});this['_n'](_0x4560de(0x426),[_0x237141,(_0x344896,_0x4053a5)=>_0x494298(_0x344896,_0x4053a5),_0x5c2653??{}],![]);}['listAlgorithms'](){return this['_n']('listAlgorithms',[],![]);}[_0x185e76(0x887)](_0x47ac70,_0x357fa9){const _0x2342d5=_0x185e76;if(typeof _0x357fa9!==_0x2342d5(0x640))throw new _0x378b3e(_0x2342d5(0x70e),_0x2342d5(0x5cb),{'name':_0x47ac70});this['_n'](_0x2342d5(0x887),[_0x47ac70,_0x357fa9]);}['registerChunkStrategy'](_0x1c25ef,_0x42e7fe){const _0x42fac3=_0x185e76;if(typeof _0x42e7fe!==_0x42fac3(0x640))throw new _0x378b3e(_0x42fac3(0x5d6),'BAD_PARAM',{'name':_0x1c25ef});this['_n']('registerChunkStrategy',[_0x1c25ef,_0x42e7fe]);}[_0x185e76(0x2c3)](_0x2cb083){const _0x39fbfb=_0x185e76;if(_0x2cb083==null)return this['_n'](_0x39fbfb(0x2c3),[null],![]);if(typeof _0x2cb083!==_0x39fbfb(0x640))throw new _0x378b3e(_0x39fbfb(0x1dc),_0x39fbfb(0x5cb));const _0x582331=this[_0x39fbfb(0x61e)];this['_n'](_0x39fbfb(0x2c3),[_0x3dcfc2=>_0x2cb083(_0x3dcfc2,_0x582331)],![]);}async[_0x185e76(0x293)](_0x41c903,_0x492d84={},_0x87ae28={},_0x2ca5d4=null){const _0x23af3a=_0x185e76;return this[_0x23af3a(0x215)](await this[_0x23af3a(0x52c)]('createEmbedder',[_0x41c903,_0x492d84,_0x87ae28,_0x2ca5d4]));}async[_0x185e76(0x5ab)](_0x59e142,_0xb0d9b9={},_0x2c6d81={}){const _0x2e2ac0=_0x185e76;return this[_0x2e2ac0(0x215)](await this[_0x2e2ac0(0x52c)](_0x2e2ac0(0x5ab),[_0x59e142,_0xb0d9b9,_0x2c6d81]));}async[_0x185e76(0x1c8)](_0x16a774,_0x545342={},_0x5dd9ba={}){const _0xf00b69=_0x185e76;return this[_0xf00b69(0x215)](await this[_0xf00b69(0x52c)](_0xf00b69(0x1c8),[_0x16a774,_0x545342,_0x5dd9ba]));}async[_0x185e76(0x600)](_0x191fd0,_0x20c15d={},_0x293850={}){const _0x1640df=_0x185e76;return this[_0x1640df(0x215)](await this[_0x1640df(0x52c)]('createWorker',[_0x191fd0,_0x20c15d,_0x293850]));}async[_0x185e76(0x382)](_0x1f571f,_0x137039={},_0x199418={}){const _0x101867=_0x185e76,_0x443d42=await this[_0x101867(0x52c)](_0x101867(0x382),[_0x1f571f,_0x137039,_0x199418]);return{'embedder':this[_0x101867(0x215)](_0x443d42[_0x101867(0x4c1)]),'indexer':this[_0x101867(0x215)](_0x443d42[_0x101867(0x8ee)]),'worker':this[_0x101867(0x215)](_0x443d42[_0x101867(0x36a)]),'search':this[_0x101867(0x215)](_0x443d42[_0x101867(0x40c)]),'api':this['_makePipelineApi'](_0x443d42[_0x101867(0x390)],_0x443d42[_0x101867(0x4c1)][_0x101867(0x54b)],_0x443d42[_0x101867(0x36a)]?_0x443d42[_0x101867(0x36a)][_0x101867(0x54b)]:_0x443d42[_0x101867(0x390)]+_0x101867(0x6d5))};}[_0x185e76(0x867)](_0x4d952b,_0x5ac98e){const _0x1632b2=_0x185e76;return this['okdb']['engines']['getRunningEngine'](_0x4d952b,_0x5ac98e)?.[_0x1632b2(0x7a5)]??null;}[_0x185e76(0x4c1)](_0xa5cfca){const _0xfe948b=_0x185e76,_0x42b223=this['_running'](_0x31c494[_0xfe948b(0x3d3)],_0xa5cfca);if(!_0x42b223)return null;const _0x263c29=this,_0x291c0b=_0x2f467b=>Array[_0xfe948b(0x439)](_0x2f467b)&&Array['isArray'](_0x2f467b[0x0])?_0x2f467b[_0xfe948b(0x35e)](_0x532dda=>Float32Array[_0xfe948b(0x48d)](_0x532dda)):Float32Array['from'](_0x2f467b);return new Proxy(_0x42b223,{'get'(_0x21636e,_0x464d76){const _0x107a35=_0xfe948b;if(_0x464d76===_0x107a35(0x647))return _0x263c29['okdb'][_0x107a35(0x210)]('engines',null,_0x107a35(0x72e),[_0x31c494[_0x107a35(0x3d3)],_0xa5cfca,_0x107a35(0x647),[]],![])['value'];if(_0x464d76==='embed')return async _0x2e8e34=>_0x291c0b(await _0x42b223[_0x107a35(0x595)](_0x2e8e34));if(_0x464d76===_0x107a35(0x515))return async _0x5ca5c6=>(await _0x42b223['embedBatch'](_0x5ca5c6))[_0x107a35(0x35e)](_0x3af970=>Float32Array[_0x107a35(0x48d)](_0x3af970));return _0x21636e[_0x464d76];}});}[_0x185e76(0x8ee)](_0x84870a){const _0x43ce23=_0x185e76;return this[_0x43ce23(0x867)](_0x31c494[_0x43ce23(0x4b7)],_0x84870a);}['worker'](_0x2a5097){const _0x2ba45b=_0x185e76;return this[_0x2ba45b(0x867)](_0x31c494[_0x2ba45b(0x470)],_0x2a5097);}['search'](_0xd4b4f7){const _0x44301b=_0x185e76,_0x2652f9=this[_0x44301b(0x867)](_0x31c494['SEARCH'],_0xd4b4f7);if(_0x2652f9)return _0x2652f9;return this[_0x44301b(0x8c9)](_0xd4b4f7);}[_0x185e76(0x8c9)](_0x546df9){const _0x32e18e=_0x185e76,_0x43b8f2=this;return{'search':(_0x5bfd96,_0x44ee89={})=>_0x43b8f2['okdb'][_0x32e18e(0x661)](_0x32e18e(0x7f1),null,_0x32e18e(0x40c),[_0x546df9,_0x39f473(_0x5bfd96),_0x44ee89],![]),'stats':async()=>_0x43b8f2['_n'](_0x32e18e(0x885),[_0x546df9],![]),'count':()=>_0x43b8f2['_n'](_0x32e18e(0x873),[_0x546df9,_0x32e18e(0x400)],![])};}async[_0x185e76(0x25c)](_0x4e4831,_0x12920c,_0x11555e={}){const _0x4988c4=_0x185e76,{limit:limit=0xa,..._0x8e28d7}=_0x11555e;return this['_nm'](_0x4988c4(0x25c),[_0x4e4831,_0x39f473(_0x12920c),{..._0x8e28d7,'limit':limit}]);}[_0x185e76(0x42c)](_0x53253d){return this['_n']('vectorSpace',[_0x53253d],![]);}[_0x185e76(0x46c)](_0x1c3c87,_0x2c2c26){const _0x2b1100=_0x185e76;return this['_n'](_0x2b1100(0x422),[_0x1c3c87,_0x2c2c26],![]);}[_0x185e76(0x434)](_0x8a4c86){const _0x4fc3a4=_0x185e76;return this['_n'](_0x4fc3a4(0x3dd),[_0x8a4c86],![]);}async[_0x185e76(0x711)](_0x2c8353){const _0x32bd24=_0x185e76;return this['_n'](_0x32bd24(0x1e9),[_0x2c8353],![]);}async[_0x185e76(0x387)](_0xce2399,_0x19b175={}){const _0x585e8d=_0x185e76;return this['_n'](_0x585e8d(0x216),[_0xce2399,_0x19b175],![]);}async['_durableIndexerDoc'](_0x2efdd4,_0x4937bc){return this['_n']('durableDoc',[_0x2efdd4,_0x4937bc],![]);}async[_0x185e76(0x7ad)](_0x3e6222,_0x4855a9,_0x23a818,_0x34f840){const _0x76fe73=_0x185e76;if(_0x3e6222!=null&&typeof _0x3e6222['includes']!==_0x76fe73(0x640))throw _0x4a5e35(_0x76fe73(0x54b),_0x76fe73(0x38d),_0x3e6222);if(!_0x3e6222||!_0x23a818)return null;return this['okdb'][_0x76fe73(0x661)](_0x76fe73(0x7f1),null,_0x76fe73(0x7ad),[_0x3e6222,_0x4855a9,_0x23a818,_0x34f840??null],![]);}async[_0x185e76(0x617)](_0x49e3e4,_0x1ab77c,_0x264423={}){const _0x3e80aa=_0x185e76,_0x505509={..._0x264423};if(_0x505509[_0x3e80aa(0x24e)])_0x505509[_0x3e80aa(0x24e)]=Array[_0x3e80aa(0x48d)](_0x505509[_0x3e80aa(0x24e)]);return this['_n'](_0x3e80aa(0x617),[_0x49e3e4,_0x1ab77c,_0x505509]);}async[_0x185e76(0x46b)](_0x50ffc9,_0xfe8866,_0x153c2e,_0x3bc338={}){const _0x3e6c49=_0x185e76;return this['_n'](_0x3e6c49(0x46b),[_0x50ffc9,_0xfe8866,_0x153c2e,_0x3bc338]);}async[_0x185e76(0x739)](_0x130aaa,_0x564df7){const _0x3db410=_0x185e76;return this['_n'](_0x3db410(0x739),[_0x130aaa,_0x564df7]);}async[_0x185e76(0x749)](_0x40f47d,_0x1b75d5){const _0x9d014e=_0x185e76;return this['_n'](_0x9d014e(0x749),[_0x40f47d,_0x1b75d5]);}async[_0x185e76(0x83f)](_0x3137e2,_0x3be0de={}){const _0x1bc629=_0x185e76;return this['_n'](_0x1bc629(0x83f),[_0x3137e2,_0x3be0de]);}async['durableRebuild'](_0x321892){const _0x4c8d25=_0x185e76;return this[_0x4c8d25(0x52c)](_0x4c8d25(0x8ba),[_0x321892]);}async[_0x185e76(0x670)](_0x54fdf6){const _0x151dfc=_0x185e76;return this['_n'](_0x151dfc(0x8d0),[_0x54fdf6],![]);}[_0x185e76(0x836)](_0x585ae6){const _0x4490e8=_0x185e76;return this['_n'](_0x4490e8(0x836),[_0x585ae6],![]);}[_0x185e76(0x51f)](){const _0x48d26a=_0x185e76;return this['_n'](_0x48d26a(0x51f),[],![]);}['getVector'](_0x50cf97,_0xf7c0bd){const _0x2348b8=_0x185e76,_0x2c08d0=this['_n'](_0x2348b8(0x535),[_0x50cf97,_0xf7c0bd],![]);return _0x2c08d0==null?null:Float32Array[_0x2348b8(0x48d)](_0x2c08d0);}[_0x185e76(0x3f3)](_0x33a492,_0x8d541a){return this['_n']('resolveModelDims',[_0x33a492,_0x8d541a??null],![])??undefined;}async[_0x185e76(0x8c8)](_0x217bff,_0x19569c,_0x5874d4,_0x1ebe7e=''){const _0x4dd04d=_0x185e76;return this['_n'](_0x4dd04d(0x8c8),[_0x217bff,_0x19569c,_0x5874d4,_0x1ebe7e]);}[_0x185e76(0x744)](_0xbd342d=null){const _0x472166=_0x185e76;return this['_n'](_0x472166(0x744),[_0xbd342d],![]);}[_0x185e76(0x396)](){const _0x4de539=_0x185e76;return this['_n'](_0x4de539(0x396),[],![]);}async['_ensureTypeEnv'](_0x4d6ff7,_0x24e1bd){const _0x6d357a=_0x185e76;return this['_n'](_0x6d357a(0x364),[_0x4d6ff7,_0x24e1bd],![]),this[_0x6d357a(0x61e)][_0x6d357a(0x6df)]('~'+_0x4d6ff7+':emb:'+_0x24e1bd);}async['_ensureVectorStore'](_0x100b3b,_0x3d307d){const _0x1a9efb=_0x185e76;return await this[_0x1a9efb(0x8b9)](_0x100b3b,_0x3d307d),{'adapter':_0x5c7020=>this['_makeLazyVectorAdapter'](_0x100b3b,_0x3d307d,_0x5c7020)};}[_0x185e76(0x432)](_0x44b35d,_0xdbb1b4,_0x140a90){const _0x4848eb=this;return{async 'put'(_0x50365e,_0x358067){const _0x53d613=_0x52a3;return _0x4848eb['_n'](_0x53d613(0x3ab),[_0x44b35d,_0xdbb1b4,_0x140a90,_0x50365e,Array[_0x53d613(0x48d)](_0x358067)]);},async 'remove'(_0x12832e){return _0x4848eb['_n']('vecRemove',[_0x44b35d,_0xdbb1b4,_0x140a90,_0x12832e]);}};}get[_0x185e76(0x1e1)](){const _0x3d413=_0x185e76,_0xe7e528=this,_0x579305=()=>_0xe7e528['_n'](_0x3d413(0x3b4),[],![]),_0x3d3df4=_0x49114b=>{const _0x3a9d8f=_0x3d413,_0x4f470d=_0x5941f4=>_0xe7e528['_n']('viewOp',[_0x49114b,_0x5941f4],![]);return{'name':_0x49114b,'_evict':async()=>_0x4f470d(_0x3a9d8f(0x73f)),'evict':async()=>_0x4f470d('evict'),'snapshot':async()=>_0x4f470d('snapshot'),'_snapshot':async()=>_0x4f470d(_0x3a9d8f(0x41c)),'rebuild':async()=>_0x4f470d(_0x3a9d8f(0x8da)),'stats':()=>_0x4f470d('stats'),get 'count'(){return _0x4f470d('count');},get 'loaded'(){const _0x2a2145=_0x3a9d8f;return _0x4f470d(_0x2a2145(0x776));}};};return{get 'size'(){const _0x408134=_0x3d413;return _0x579305()[_0x408134(0x68a)];},'has':_0x52f75d=>_0x579305()['includes'](_0x52f75d),'get':_0x48a570=>_0x579305()['includes'](_0x48a570)?_0x3d3df4(_0x48a570):undefined,'keys':()=>_0x579305()[Symbol['iterator']](),'values':()=>_0x579305()['map'](_0x3d3df4)[Symbol[_0x3d413(0x344)]](),[Symbol['iterator']]:()=>_0x579305()[_0x3d413(0x35e)](_0xd33126=>[_0xd33126,_0x3d3df4(_0xd33126)])[Symbol[_0x3d413(0x344)]]()};}async[_0x185e76(0x45c)](){}async[_0x185e76(0x1f1)](){this['_n']('stop',[]);}[_0x185e76(0x63a)](_0x1d01bf,_0x4619da,_0x2052f4){const _0x3b76c4=_0x185e76;return{'search':(_0x27d180,_0x1ccc1c={})=>{const _0x56bd39=_0x52a3,_0xa95f97=this[_0x56bd39(0x40c)](_0x1d01bf);if(!_0xa95f97)throw new Error(_0x56bd39(0x329)+_0x1d01bf+'\x22');return _0xa95f97[_0x56bd39(0x40c)](_0x27d180,_0x1ccc1c);},'searchDocs':(_0x54ffa4,_0x168959={})=>this[_0x3b76c4(0x25c)](_0x1d01bf,_0x54ffa4,_0x168959),'flush':_0x2c4b09=>{const _0x2e6ffa=_0x3b76c4,_0x470b1b=this[_0x2e6ffa(0x8ee)](_0x1d01bf);if(!_0x470b1b)throw new Error(_0x2e6ffa(0x654)+_0x1d01bf+'\x22');return _0x470b1b['flush'](_0x2c4b09);},'stats':async()=>({'embedder':await this['embedder'](_0x4619da)?.['health']?.(),'indexer':await this[_0x3b76c4(0x8ee)](_0x1d01bf)?.[_0x3b76c4(0x308)]?.(),'worker':await this['worker'](_0x2052f4)?.[_0x3b76c4(0x308)]?.(),'search':await this[_0x3b76c4(0x40c)](_0x1d01bf)?.[_0x3b76c4(0x308)]?.()})};}}return embeddings={'OKDBEmbeddings':_0x2a7a9a,'ENGINE_TYPES':_0x31c494},embeddings;}var auth,hasRequiredAuth;function requireAuth(){const _0xa5eee8=_0x5c70f8;if(hasRequiredAuth)return auth;hasRequiredAuth=0x1;const {invalidArgument:_0x14ed3d}=requireErrors();class _0x5fb568{constructor(_0x1ecebd){const _0x26fa2a=_0x52a3;this[_0x26fa2a(0x61e)]=_0x1ecebd;}['_n'](_0x4883b3,_0x138652=[],_0x10a39f=![]){const _0x989425=_0x52a3;return this[_0x989425(0x61e)][_0x989425(0x210)](_0x989425(0x7f0),null,_0x4883b3,_0x138652,_0x10a39f);}['_nm'](_0x56f6cd,_0x4c1a9a=[]){const _0xa81a95=_0x52a3;return this[_0xa81a95(0x61e)]['_callMacro']('auth',null,_0x56f6cd,_0x4c1a9a,![]);}get[_0xa5eee8(0x5a9)](){const _0x2124f9=_0xa5eee8;return this['_n'](_0x2124f9(0x5a9));}get[_0xa5eee8(0x8a4)](){const _0x4c19ad=_0xa5eee8;return this['_n'](_0x4c19ad(0x8a4));}get['_oauthConfig'](){const _0x3d37a7=_0xa5eee8;return this[_0x3d37a7(0x61e)][_0x3d37a7(0x688)]['auth']?.[_0x3d37a7(0x3a9)]||{};}['isOAuthEmailAllowed'](_0x1cbf70){const _0x435f94=_0xa5eee8;return this['_n'](_0x435f94(0x792),[_0x1cbf70??null]);}[_0xa5eee8(0x49b)](_0x554b76){return this['_n']('isOpenForIp',[_0x554b76??null]);}[_0xa5eee8(0x74d)](_0x391c1){const _0x383503=_0xa5eee8;return this['_n'](_0x383503(0x49d),[_0x391c1??null]);}[_0xa5eee8(0x235)](){const _0x2dffcc=_0xa5eee8;return this['_n'](_0x2dffcc(0x2c0));}[_0xa5eee8(0x703)](){const _0x11f3e9=_0xa5eee8;return this['_n'](_0x11f3e9(0x703));}[_0xa5eee8(0x1e0)](){const _0x3072af=_0xa5eee8;return this['_n'](_0x3072af(0x1e0));}[_0xa5eee8(0x831)](_0x2204cf){const _0x5bb5c2=_0xa5eee8;return this['_n'](_0x5bb5c2(0x831),[_0x2204cf]);}[_0xa5eee8(0x8dd)](_0x59828a){const _0x58f0d7=_0xa5eee8;return this['_n'](_0x58f0d7(0x8dd),[_0x59828a]);}[_0xa5eee8(0x584)](_0x2a0915){const _0x793a6=_0xa5eee8;if(_0x2a0915!=null&&typeof _0x2a0915!=='string')throw _0x14ed3d(_0x793a6(0x6dd),_0x793a6(0x38d),_0x2a0915);return this['_n'](_0x793a6(0x584),[_0x2a0915??null]);}async[_0xa5eee8(0x8c7)](){const _0x492c2c=_0xa5eee8;return this['_n'](_0x492c2c(0x23f),[],!![]);}async['_lookupByTokenHash'](_0x4424c2){const _0x80eb84=_0xa5eee8;return this['_n'](_0x80eb84(0x7f6),[_0x4424c2]);}async['_lookupByName'](_0x31dfff){return this['_n']('lookupByName',[_0x31dfff]);}async[_0xa5eee8(0x421)](_0x465dda){const _0xd84d6e=_0xa5eee8;return this['_n'](_0xd84d6e(0x1d6),[_0x465dda]);}async[_0xa5eee8(0x47b)](_0x4486c1){const _0x172d05=_0xa5eee8,_0x56d18f=_0x4486c1?.['headers']||{};return this['_n'](_0x172d05(0x47b),[{'remoteAddress':_0x4486c1[_0x172d05(0x223)]?.[_0x172d05(0x6c1)]??null,'internal':_0x4486c1?.['context']?.['internal']===!![],'authorization':_0x56d18f[_0x172d05(0x869)]??null,'cookies':_0x4486c1?.[_0x172d05(0x631)]??{}}]);}async[_0xa5eee8(0x669)](_0x352132,_0x493321){const _0x422494=_0xa5eee8;return this[_0x422494(0x52c)](_0x422494(0x669),[_0x352132??null,_0x493321??null]);}async[_0xa5eee8(0x48e)](_0x52a43e,_0x32dd54,_0x32bf96){const _0x437ac1=_0xa5eee8;return this[_0x437ac1(0x52c)](_0x437ac1(0x48e),[_0x52a43e??null,_0x32dd54??null,_0x32bf96??null]);}[_0xa5eee8(0x4da)](){const _0x179422=_0xa5eee8;return this['_n'](_0x179422(0x4da));}['getLoginConfig'](){const _0x1fb3c1=_0xa5eee8;return this['_n'](_0x1fb3c1(0x33c));}[_0xa5eee8(0x577)](_0x5492b9={},_0x1d2490=0x927c0){const _0x36ce21=_0xa5eee8;return this['_n'](_0x36ce21(0x577),[_0x5492b9,_0x1d2490]);}[_0xa5eee8(0x60b)](_0x21b05a){const _0x1fe086=_0xa5eee8;return this['_n'](_0x1fe086(0x60b),[_0x21b05a]);}async[_0xa5eee8(0x5a7)](_0x1b3c8e,_0x588498={}){const _0x3b2cbc=_0xa5eee8;return this['_nm'](_0x3b2cbc(0x455),[_0x1b3c8e,_0x588498]);}async[_0xa5eee8(0x897)](_0x1945eb={}){const _0x4a5767=_0xa5eee8;return this[_0x4a5767(0x52c)](_0x4a5767(0x5d2),[_0x1945eb]);}['_normalizeOAuthAuthResult'](_0x4c14a4){const _0x167f75=_0xa5eee8;return this['_n'](_0x167f75(0x7d5),[_0x4c14a4]);}}return auth={'OKDBAuth':_0x5fb568},auth;}var sync,hasRequiredSync;function requireSync(){const _0x1b0972=_0x5c70f8;if(hasRequiredSync)return sync;hasRequiredSync=0x1;const {RawDb:_0x5d11f7}=requireRawdb();class _0x1fd8d2{constructor(_0x5f9438){this['_s']=_0x5f9438;}get[_0x1b0972(0x58c)](){const _0x572103=_0x1b0972;return this['_ack']||(this['_ack']=new _0x5d11f7(this['_s'][_0x572103(0x61e)][_0x572103(0x34d)],_0x572103(0x22b)));}[_0x1b0972(0x81c)](){const _0x3cb0ec=_0x1b0972;return this[_0x3cb0ec(0x58c)];}[_0x1b0972(0x509)](){const _0x1750b2=_0x1b0972;return this[_0x1750b2(0x58c)];}['_n'](_0x2fb9fd,_0x5470d6=[]){return this['_s']['_n']('gc.'+_0x2fb9fd,_0x5470d6);}[_0x1b0972(0x2eb)](_0x1e57ff,_0x47b70a){const _0x39b528=_0x1b0972;return this['_n'](_0x39b528(0x2eb),[_0x1e57ff,_0x47b70a]);}async[_0x1b0972(0x6d3)](_0x17b5e3){const _0x576dbc=_0x1b0972;return this['_n'](_0x576dbc(0x6d3),[_0x17b5e3]);}[_0x1b0972(0x5e2)](){const _0x3c0e8f=_0x1b0972;return this['_n'](_0x3c0e8f(0x5e2));}['getGcHorizon'](_0x9d9e8){const _0x381c37=_0x1b0972;return this['_n'](_0x381c37(0x23b),[_0x9d9e8]);}async[_0x1b0972(0x8b3)](){const _0x485496=_0x1b0972;return this['_n'](_0x485496(0x8b3));}['getStatus'](){const _0x2c2440=_0x1b0972;return this['_n'](_0x2c2440(0x575));}[_0x1b0972(0x45c)](){const _0x394f43=_0x1b0972;return this['_n'](_0x394f43(0x45c));}[_0x1b0972(0x1f1)](){return this['_n']('stop');}get['_gcTimer'](){const _0x1a42a0=_0x1b0972;try{return this['_n'](_0x1a42a0(0x57b))?{}:null;}catch{return null;}}}class _0x364245{constructor(_0x59330b){const _0x57f69e=_0x1b0972;this[_0x57f69e(0x61e)]=_0x59330b,this['gc']=new _0x1fd8d2(this);const _0x2e0a2a=this;this['options']=new Proxy({},{'get':(_0x4e8345,_0x196062)=>typeof _0x196062===_0x57f69e(0x2b1)?_0x2e0a2a['_n'](_0x57f69e(0x688))[_0x196062]:undefined,'set':(_0x120b3b,_0xe0f0ce,_0x2e4b6f)=>{const _0x2a3eb6=_0x57f69e;if(_0xe0f0ce===_0x2a3eb6(0x784))_0x2e0a2a['_n'](_0x2a3eb6(0x2ed),[_0x2e4b6f??null]);else{if(_0xe0f0ce===_0x2a3eb6(0x6b0))_0x2e0a2a['_n'](_0x2a3eb6(0x8aa),[_0x2e4b6f??null]);else{if(_0xe0f0ce===_0x2a3eb6(0x297))_0x2e0a2a['_n'](_0x2a3eb6(0x86c),[_0x2e4b6f]);}}return!![];},'ownKeys':()=>Object[_0x57f69e(0x4ac)](_0x2e0a2a['_n'](_0x57f69e(0x688))),'getOwnPropertyDescriptor':(_0x10f0f4,_0x144c44)=>({'enumerable':!![],'configurable':!![],'value':_0x2e0a2a['_n'](_0x57f69e(0x688))[_0x144c44]}),'has':(_0x32e9fe,_0x45bf7b)=>_0x45bf7b in _0x2e0a2a['_n']('options')});}['_n'](_0xb385f3,_0x45aab4=[],_0x4a3eb2=![]){const _0x5b8063=_0x1b0972;return this[_0x5b8063(0x61e)]['_call'](_0x5b8063(0x59c),null,_0xb385f3,_0x45aab4,_0x4a3eb2);}['_nm'](_0x1700dc,_0x44a945=[]){const _0x3c288d=_0x1b0972;return this[_0x3c288d(0x61e)][_0x3c288d(0x661)](_0x3c288d(0x59c),null,_0x1700dc,_0x44a945,!![]);}get[_0x1b0972(0x80a)](){const _0x2314f6=_0x1b0972;return this[_0x2314f6(0x5a1)]||(this['_pdb']=new _0x5d11f7(this[_0x2314f6(0x61e)][_0x2314f6(0x34d)],'__sync:peer_state'));}['_openLocalPeerDb'](){return this['_peerDb'];}get[_0x1b0972(0x1ea)](){const _0x23eb6b=_0x1b0972;return this[_0x23eb6b(0x6bd)]||(this[_0x23eb6b(0x6bd)]=new(requireLock())[(_0x23eb6b(0x1c7))](this[_0x23eb6b(0x61e)],_0x23eb6b(0x5b5),_0x23eb6b(0x59c),{'ttlMs':0x7530}));}get[_0x1b0972(0x784)](){const _0xc83ae0=_0x1b0972;return this['_n']('options')[_0xc83ae0(0x784)];}get[_0x1b0972(0x5f2)](){const _0x56db22=_0x1b0972;return this[_0x56db22(0x61e)]['_isOpen']&&this['_n'](_0x56db22(0x7ae))?{}:null;}get['_pokeListener'](){const _0xdcea90=_0x1b0972;return this[_0xdcea90(0x5f2)];}get[_0x1b0972(0x4e3)](){const _0x229beb=_0x1b0972;return this['_n'](_0x229beb(0x8de))?.['privateKey'];}get[_0x1b0972(0x1cc)](){const _0x5ed1f0=_0x1b0972;return this['_n']('nodeKeys')?.[_0x5ed1f0(0x249)];}['info'](){const _0x3ae6c0=_0x1b0972;return this['_n'](_0x3ae6c0(0x7e2));}[_0x1b0972(0x4fc)](){const _0x333c05=_0x1b0972;return this['_n'](_0x333c05(0x4fc));}get[_0x1b0972(0x3af)](){const _0x16ecf9=_0x1b0972;return this[_0x16ecf9(0x57a)]||(()=>this['_n']('peers'));}set['peers'](_0x2a48be){const _0x11f51d=_0x1b0972;this[_0x11f51d(0x57a)]=typeof _0x2a48be===_0x11f51d(0x640)?_0x2a48be:null,this['_n'](_0x11f51d(0x619),[this[_0x11f51d(0x57a)]]);}[_0x1b0972(0x51d)](){const _0x1b5254=_0x1b0972;return this['_n'](_0x1b5254(0x489));}async[_0x1b0972(0x30c)](){const _0x47d6cd=_0x1b0972;return this['_nm'](_0x47d6cd(0x30c));}async[_0x1b0972(0x4af)](_0x2a4efa){const _0x185b7c=_0x1b0972;return this['_nm'](_0x185b7c(0x4af),[_0x2a4efa]);}async[_0x1b0972(0x4cd)](_0x119bbf,_0x2c6829={}){const _0x385de9=_0x1b0972;return this[_0x385de9(0x52c)]('reconcilePeerPull',[_0x119bbf,_0x2c6829]);}[_0x1b0972(0x1f1)](){const _0x512f00=_0x1b0972;return this['_n'](_0x512f00(0x1f1));}[_0x1b0972(0x5b6)](){const _0x2c56e0=_0x1b0972;return this['_n'](_0x2c56e0(0x5b6));}async[_0x1b0972(0x2a0)](_0x3beef4,_0x43b20f={}){const _0x3643c3=_0x1b0972;return this['_n'](_0x3643c3(0x2a0),[_0x3beef4,_0x43b20f],!![]);}async[_0x1b0972(0x8a8)](_0x328ae8){const _0x868047=_0x1b0972;return this['_n'](_0x868047(0x8a8),[_0x328ae8],!![]);}[_0x1b0972(0x58a)](_0x44d87c){const _0x23a096=_0x1b0972;return this['_n'](_0x23a096(0x832),[_0x44d87c]);}[_0x1b0972(0x457)](_0x4b5e25){const _0x3d8f6f=_0x1b0972;return this['_n'](_0x3d8f6f(0x474),[_0x4b5e25]);}async[_0x1b0972(0x359)](_0x516364,_0x12ed7a,_0x371a24={}){const _0x217134=_0x1b0972;return this['_n'](_0x217134(0x370),[_0x516364,_0x12ed7a,_0x371a24]);}async[_0x1b0972(0x807)](_0x3eb806){return this['_n']('ensurePeerState',[_0x3eb806]);}async['_ensure'](){const _0x42b3a3=_0x1b0972;return this['_n'](_0x42b3a3(0x2ea),[],!![]);}async[_0x1b0972(0x425)](_0x260080){return this['_n']('patchSelf',[_0x260080],!![]);}async['join'](_0x430d91,_0x5e06ac={}){const _0x59b03c=_0x1b0972;return this['_nm'](_0x59b03c(0x596),[_0x430d91,_0x5e06ac]);}async['calculateDelta'](_0x59b32e={},_0x3a6282={}){const _0x19e59c=_0x1b0972;return void _0x59b32e[_0x19e59c(0x5b5)],this['_n'](_0x19e59c(0x893),[_0x59b32e,_0x3a6282]);}async['fetchPeer'](_0x43c30b,_0xd6ae75,_0xf9c42d,_0x290c7f){const _0x32e9a0=_0x1b0972;return this['_nm'](_0x32e9a0(0x427),[_0x43c30b,_0xd6ae75,_0xf9c42d,_0x290c7f??null]);}async['fetchRemoteDelta'](_0x41ed0d,_0x372a23,_0x12e81e={}){const _0x385fc9=_0x1b0972;return this['_nm'](_0x385fc9(0x35b),[_0x41ed0d,_0x372a23,_0x12e81e]);}[_0x1b0972(0x8a6)](_0x412af3,_0x186d1b=null){const _0x307131=_0x1b0972;return this['_n'](_0x307131(0x419),[_0x412af3,_0x186d1b?_0x186d1b[_0x307131(0x54b)]:null]);}['applyChange'](_0x1f8273,_0x3349fc=null){const _0x47bb74=_0x1b0972;return this['_n'](_0x47bb74(0x46a),[_0x1f8273,_0x3349fc?_0x3349fc[_0x47bb74(0x54b)]:null],!![]);}}return sync={'OKDBSync':_0x364245},sync;}var migrate,hasRequiredMigrate;function requireMigrate(){const _0x174e64=_0x5c70f8;if(hasRequiredMigrate)return migrate;hasRequiredMigrate=0x1;const {optionsArg:_0x541b9e}=requireErrors(),_0x5cb6f3=require$$0,_0x3f048d=require$$4,_0x47ca7c=0x40*0x400;async function _0x3d28aa(_0x524bf1,_0x1cab55){const _0x1c4eba=_0x52a3;for(let _0x29815d=0x0;_0x29815d<_0x1cab55[_0x1c4eba(0x68a)];){let _0x58ff06=Math[_0x1c4eba(0x597)](_0x1cab55[_0x1c4eba(0x68a)],_0x29815d+_0x47ca7c);if(_0x58ff06<_0x1cab55[_0x1c4eba(0x68a)]){const _0x293f19=_0x1cab55[_0x1c4eba(0x2bb)](0xa,_0x58ff06-0x1);_0x58ff06=_0x293f19===-0x1?_0x1cab55[_0x1c4eba(0x68a)]:_0x293f19+0x1;}const _0x29bd04=_0x524bf1[_0x1c4eba(0x21a)](_0x1cab55[_0x1c4eba(0x5c6)](_0x29815d,_0x58ff06));_0x29815d=_0x58ff06;if(!_0x29bd04)await new Promise(_0x4c06e3=>_0x524bf1[_0x1c4eba(0x32f)](_0x1c4eba(0x3ec),_0x4c06e3));await new Promise(_0x444999=>setImmediate(_0x444999));}}async function _0x5ea34e(_0x383b4e){const _0x3c8120=_0x52a3,_0x55fef5=[];for await(const _0x102665 of _0x383b4e)_0x55fef5[_0x3c8120(0x28d)](Buffer[_0x3c8120(0x823)](_0x102665)?_0x102665:Buffer[_0x3c8120(0x48d)](_0x102665,_0x3c8120(0x6ae)));return Buffer['concat'](_0x55fef5);}class _0x53f99f{constructor(_0x244aa2){const _0x548eb8=_0x52a3;this[_0x548eb8(0x61e)]=_0x244aa2;}['_n'](_0x385846,_0x46f6de){const _0x58d2b3=_0x52a3;return this['okdb']['_call'](_0x58d2b3(0x516),null,_0x385846,_0x46f6de,!![]);}async[_0x174e64(0x7bc)](_0x37357b,_0x40df02={}){const _0xebaeda=_0x174e64,{data:_0xcd8577,stats:_0x5cd691}=this['_n']('exportBuf',[_0x40df02]);return await _0x3d28aa(_0x37357b,Buffer[_0xebaeda(0x48d)](_0xcd8577)),_0x5cd691;}async[_0x174e64(0x677)](_0x3d8a08,_0x5c63c2={}){const _0x496a2c=_0x174e64;_0x5cb6f3[_0x496a2c(0x6d2)](_0x3f048d[_0x496a2c(0x826)](_0x3d8a08),{'recursive':!![]});const _0x11e1eb=_0x5cb6f3['createWriteStream'](_0x3d8a08),_0x4aaaba=await this[_0x496a2c(0x7bc)](_0x11e1eb,_0x5c63c2);return await new Promise((_0x1b6b73,_0x3c7e2b)=>{const _0x227b26=_0x496a2c;_0x11e1eb['end'](),_0x11e1eb[_0x227b26(0x32f)](_0x227b26(0x8b4),_0x1b6b73),_0x11e1eb[_0x227b26(0x32f)](_0x227b26(0x62e),_0x3c7e2b);}),{..._0x4aaaba,'filePath':_0x3d8a08};}async[_0x174e64(0x1c5)](_0x5da128,_0x28fc96={}){const _0x52fc61=_0x174e64,{data:_0x284601,stats:_0x231cb3}=this['_n']('exportEnvsBuf',[_0x28fc96]);return await _0x3d28aa(_0x5da128,Buffer[_0x52fc61(0x48d)](_0x284601)),_0x231cb3;}async['importFromStream'](_0x2f706f,_0x3f2091={}){const _0x46270a=_0x174e64,_0x4da364=await _0x5ea34e(_0x2f706f),{onProgress:_0x76e9c1,..._0x235035}=_0x3f2091,_0x13208c=this['_n']('importBuf',[_0x4da364,_0x235035]);if(typeof _0x76e9c1==='function')_0x76e9c1({'type':null,'count':_0x13208c[_0x46270a(0x3c3)]});return _0x13208c;}async[_0x174e64(0x565)](_0x92b084,_0x35fd43={}){const _0x442944=_0x174e64;return this['importFromStream'](_0x5cb6f3['createReadStream'](_0x92b084,{'encoding':_0x442944(0x6ae)}),_0x35fd43);}async[_0x174e64(0x423)](_0x4ad1ed,_0x39b8a2={}){const _0x2c9c29=_0x174e64;return this['_n'](_0x2c9c29(0x423),[_0x4ad1ed,_0x39b8a2]);}['backupRoot'](){const _0xa3605c=_0x174e64;return this['_n'](_0xa3605c(0x667),[]);}['resolveBackupDest'](_0x93a0e6){return this['_n']('resolveBackupDest',[_0x93a0e6??null]);}async[_0x174e64(0x727)](_0x45db98={}){const _0x3f537c=_0x174e64;return this['_n'](_0x3f537c(0x727),[_0x45db98]);}async[_0x174e64(0x20e)](_0x267cf8,_0x30d30d={}){const _0x13b6aa=_0x174e64;return this['_n'](_0x13b6aa(0x20e),[_0x267cf8,_0x30d30d]);}async[_0x174e64(0x6fd)](_0x4564a3){const _0x558004=_0x174e64,{pretty:pretty=![]}=_0x541b9e(_0x4564a3);return JSON[_0x558004(0x35a)](await this[_0x558004(0x727)](),null,pretty?0x2:0x0);}async[_0x174e64(0x79b)](_0x60e333){const _0x51f963=_0x174e64;return this[_0x51f963(0x20e)](JSON[_0x51f963(0x78e)](_0x60e333));}['_assertFiles'](){const _0x4ae924=_0x174e64;if(!this['okdb'][_0x4ae924(0x612)][_0x4ae924(0x309)](_0x4ae924(0x2a6))?.[_0x4ae924(0x87a)])throw new Error(_0x4ae924(0x54e));}async['exportBlobs'](_0x3da4b8){const _0x4dfb0e=_0x174e64;return this[_0x4dfb0e(0x8d6)](),this['_n'](_0x4dfb0e(0x48a),[_0x3da4b8]);}async[_0x174e64(0x3a5)](_0x5ebd6a){const _0x5697ed=_0x174e64;return this[_0x5697ed(0x8d6)](),this['_n']('importBlobs',[_0x5ebd6a]);}['_allEnvsWithFiles'](){const _0xda89f9=_0x174e64;return this['_n'](_0xda89f9(0x1d9),[])['map'](_0x53279e=>this['okdb'][_0xda89f9(0x609)](_0x53279e));}async['validateBlobIntegrity'](){const _0x9278c5=_0x174e64;return this[_0x9278c5(0x8d6)](),this['_n'](_0x9278c5(0x77e),[]);}async[_0x174e64(0x20c)](){const _0x18332c=_0x174e64;return this[_0x18332c(0x8d6)](),this['_n'](_0x18332c(0x20c),[]);}}return migrate={'OKDBMigrate':_0x53f99f},migrate;}var mcp,hasRequiredMcp;function requireMcp(){const _0x53083e=_0x5c70f8;if(hasRequiredMcp)return mcp;hasRequiredMcp=0x1;class _0x84571{constructor(_0x508059){this['okdb']=_0x508059,this['clients']=new Map();}['_n'](_0x6cce36,_0x39f16a){const _0x247542=_0x52a3;try{return this[_0x247542(0x61e)][_0x247542(0x210)]('mcp',null,_0x6cce36,_0x39f16a,!![]);}catch(_0x5ad185){if(_0x5ad185&&_0x5ad185['code']===_0x247542(0x2c6)&&_0x5ad185['details']){if(_0x5ad185['details'][_0x247542(0x220)]!==undefined)_0x5ad185[_0x247542(0x220)]=_0x5ad185[_0x247542(0x37e)]['jsonrpcCode'];_0x5ad185[_0x247542(0x37e)]=_0x5ad185[_0x247542(0x37e)][_0x247542(0x37e)],_0x5ad185[_0x247542(0x50e)]=undefined;}throw _0x5ad185;}}['_tools'](){const _0x43d452=_0x52a3;return this['_n'](_0x43d452(0x731),[]);}async['_call'](_0x1ca9e8,_0x15b1e4={}){return this['_n']('call',[_0x1ca9e8??null,_0x15b1e4??{}]);}async[_0x53083e(0x797)](_0xdea90a,_0x5b5136={}){const _0x4e094a=_0x53083e;return this['_n'](_0x4e094a(0x349),[_0xdea90a,_0x5b5136??{}]);}['_initialize'](_0x287dd1){const _0x811d1d=_0x53083e;return this['_n'](_0x811d1d(0x2d3),[_0x287dd1??null]);}}return mcp={'OKDBMcp':_0x84571},mcp;}var sys,hasRequiredSys;function requireSys(){const _0x4e929c=_0x5c70f8;if(hasRequiredSys)return sys;hasRequiredSys=0x1;function _0x44ad24(_0x1b3fd0,_0x566616,_0x12c79f){const _0x17d4c6=_0x52a3,_0x387f52={};for(const [_0x30b94f,_0x30025f]of Object[_0x17d4c6(0x719)](_0x12c79f)){_0x387f52[_0x30b94f]=_0x30025f===_0x17d4c6(0x56f)?async(..._0x5ac73f)=>_0x1b3fd0[_0x17d4c6(0x210)](_0x566616,null,_0x30b94f,_0x5ac73f):(..._0x4704dd)=>_0x1b3fd0[_0x17d4c6(0x210)](_0x566616,null,_0x30b94f,_0x4704dd,![]);}return _0x387f52;}const _0x536bd5=[_0x4e929c(0x4c3),_0x4e929c(0x2fd),_0x4e929c(0x1e5),'describeAllTypes',_0x4e929c(0x896),_0x4e929c(0x335),_0x4e929c(0x38b),_0x4e929c(0x4c0),_0x4e929c(0x7b4),_0x4e929c(0x844),_0x4e929c(0x50d),_0x4e929c(0x865),_0x4e929c(0x392),_0x4e929c(0x447),'getTypeCount','getIndexCount',_0x4e929c(0x513),_0x4e929c(0x2fa),_0x4e929c(0x367),'recomputeFields',_0x4e929c(0x542)],_0xe73981={'add':_0x4e929c(0x56f),'activate':'async','remove':_0x4e929c(0x56f),'list':'sync','get':_0x4e929c(0x59c),'effective':_0x4e929c(0x59c)},_0x15f1a5={'open':_0x4e929c(0x56f),'register':_0x4e929c(0x56f),'buildOwnRow':_0x4e929c(0x59c),'_buildProcessingFacet':_0x4e929c(0x59c),'reportThreadStats':_0x4e929c(0x59c),'clearThreadStats':_0x4e929c(0x59c),'emitProc':_0x4e929c(0x59c),'addSupervisedChild':_0x4e929c(0x56f),'removeSupervisedChild':_0x4e929c(0x59c),'updateSupervisedChildStats':_0x4e929c(0x59c),'publishChildRow':_0x4e929c(0x56f),'putNode':_0x4e929c(0x56f),'removeNode':'async','nodeDead':_0x4e929c(0x59c),'listNodes':_0x4e929c(0x59c),'reap':_0x4e929c(0x56f),'publishOwnRow':'async','deregisterSelf':_0x4e929c(0x56f),'setOwnMeta':'sync','noteListenAddr':_0x4e929c(0x59c),'hasDesired':_0x4e929c(0x59c),'getDesired':_0x4e929c(0x59c),'setDesired':_0x4e929c(0x56f),'listDesired':_0x4e929c(0x59c),'getCmd':'sync','bumpCmd':'async','processingStatusView':_0x4e929c(0x59c),'processorsView':'sync','clusterStatusView':_0x4e929c(0x59c),'nodesView':_0x4e929c(0x59c),'treeView':_0x4e929c(0x59c),'getProcess':_0x4e929c(0x59c),'runtimeProcessesView':'sync'};function _0x4b63ed(_0x3a3e3a){const _0x55575c=_0x4e929c,_0x1cf138={},_0x2466b7=_0x559dfa=>_0x559dfa&&typeof _0x559dfa===_0x55575c(0x559)&&!Array[_0x55575c(0x439)](_0x559dfa)&&typeof _0x559dfa['name']===_0x55575c(0x2b1)?_0x559dfa['name']:_0x559dfa;for(const _0xac1eb7 of _0x536bd5)_0x1cf138[_0xac1eb7]=_0xac1eb7===_0x55575c(0x488)?async(..._0x11d876)=>_0x3a3e3a[_0x55575c(0x210)](_0x55575c(0x447),null,_0xac1eb7,_0x11d876[_0x55575c(0x35e)](_0x2466b7),!![]):(..._0xf1e822)=>_0x3a3e3a[_0x55575c(0x210)]('meta',null,_0xac1eb7,_0xf1e822['map'](_0x2466b7),![]);return _0x1cf138;}function _0x359e4b(_0xb3c732){const _0x2ae744=_0x4e929c,_0x2ada15=_0x44ad24(_0xb3c732,_0x2ae744(0x63b),_0xe73981);return _0x2ada15;}function _0xe16201(_0x3af4a3){const _0x483382=_0x4e929c,_0x110ec0=()=>_0x3af4a3[_0x483382(0x63b)][_0x483382(0x852)](),_0x1c7427=_0x18ccae=>_0x18ccae[_0x483382(0x6b6)]?{..._0x18ccae,'_isFree':!![]}:_0x18ccae;return{async 'addLicense'(_0x2e5cab){const _0x420946=_0x483382;return _0x3af4a3[_0x420946(0x63b)][_0x420946(0x280)](_0x2e5cab);},async 'reload'(){},async 'recheck'(){},get 'active'(){const _0x96ad97=_0x483382,_0x4d7419=_0x110ec0();return _0x4d7419[_0x96ad97(0x6b6)]?null:_0x4d7419;},get 'effective'(){return _0x1c7427(_0x110ec0());},'hasLimit'(_0xde4264){const _0x2910a5=_0x483382,_0x1941cb=_0x110ec0();if(!_0x1941cb[_0x2910a5(0x54f)])return![];const _0x52ae57=_0x1941cb[_0x2910a5(0x5b8)]?.[_0xde4264];return!(_0x52ae57===null||_0x52ae57===undefined||_0x52ae57===0x0);},'isFeatureEnabled'(_0x3a2f1d){const _0x42a55c=_0x483382,_0x7232bc=_0x110ec0();return!_0x7232bc[_0x42a55c(0x54f)]||!!_0x7232bc[_0x42a55c(0x7f2)]?.[_0x3a2f1d];},'assertFeature'(_0x37be32){const _0x45b5e6=_0x483382,_0xccce06=_0x110ec0();if(!_0xccce06[_0x45b5e6(0x54f)]||_0xccce06[_0x45b5e6(0x7f2)]?.[_0x37be32])return;const {OKDBError:_0x33d01b}=requireErrors(),_0x48b193=_0xccce06['free']?_0x45b5e6(0x766)+_0x37be32+_0x45b5e6(0x728)+_0x37be32+_0x45b5e6(0x7f7):'Feature\x20not\x20licensed:\x20'+_0x37be32+_0x45b5e6(0x772)+_0x37be32+'\x22.';throw new _0x33d01b(_0x48b193,'LICENSE_FEATURE_DISABLED',{'feature':_0x37be32});},'assertLimit'(_0x3397e7,_0x5a960d){const _0x539fe9=_0x483382,_0x4d0519=_0x110ec0();if(!_0x4d0519[_0x539fe9(0x54f)])return;const _0x497e84=_0x4d0519[_0x539fe9(0x5b8)]?.[_0x3397e7];if(_0x497e84===null||_0x497e84===undefined||_0x497e84===0x0)return;if(_0x5a960d>=_0x497e84){const {OKDBError:_0x33e944}=requireErrors();throw new _0x33e944(_0x539fe9(0x41f)+_0x3397e7+'\x20('+_0x5a960d+'/'+_0x497e84+')',_0x539fe9(0x3d6),{'limit':_0x3397e7,'current':_0x5a960d,'max':_0x497e84});}},'listLicenses'(){return _0x3af4a3['licenses']['list']();},'getPins'(){const _0x4b762a=_0x483382;return _0x3af4a3[_0x4b762a(0x63b)][_0x4b762a(0x47e)]()[_0x4b762a(0x35e)](_0x26cb5e=>({'licenseId':_0x26cb5e['id'],'pin':_0x26cb5e[_0x4b762a(0x45d)]==='open'?null:_0x26cb5e['pin']}));}};}function _0x9acef4(_0x152b8b){const _0x15227a=_0x4e929c,_0x396a4d=_0x44ad24(_0x152b8b,_0x15227a(0x1ff),_0x15f1a5);Object[_0x15227a(0x1fd)](_0x396a4d,_0x15227a(0x283),{'get':()=>_0x152b8b[_0x15227a(0x210)](_0x15227a(0x1ff),null,_0x15227a(0x283),[],![])}),Object[_0x15227a(0x1fd)](_0x396a4d,_0x15227a(0x380),{'get':()=>_0x152b8b[_0x15227a(0x210)](_0x15227a(0x1ff),null,_0x15227a(0x380),[],![])}),_0x396a4d[_0x15227a(0x720)]=null;const _0x5ee31e=_0x396a4d[_0x15227a(0x2d5)];_0x396a4d[_0x15227a(0x2d5)]=_0x33840f=>{const _0x12da0a=_0x15227a;return _0x396a4d[_0x12da0a(0x720)]=_0x33840f,_0x5ee31e(_0x33840f);};const _0x53150e=()=>_0x396a4d[_0x15227a(0x616)]()[_0x15227a(0x35e)](_0xc1437d=>({'key':_0xc1437d[_0x15227a(0x42e)],'value':_0xc1437d,'version':0x1})),_0x530955={'name':'~processes','_sync':![],'_isOpen':!![],'isProcessStore':!![],'hasType':_0xded6fa=>_0xded6fa===_0x15227a(0x8ca),'getRange':_0x2a4502=>_0x2a4502===_0x15227a(0x8ca)?_0x53150e()[Symbol[_0x15227a(0x344)]]():[][Symbol[_0x15227a(0x344)]](),'getKeys':_0x589633=>_0x589633==='node'?_0x53150e()['map'](_0x1c1e2c=>_0x1c1e2c[_0x15227a(0x82f)])[Symbol[_0x15227a(0x344)]]():[][Symbol[_0x15227a(0x344)]](),'getValues':_0x4fa6ad=>_0x4fa6ad==='node'?_0x53150e()[_0x15227a(0x35e)](_0x4e5c26=>_0x4e5c26['value'])[Symbol['iterator']]():[][Symbol[_0x15227a(0x344)]](),'get':(_0x58e5c8,_0x202925)=>_0x58e5c8==='node'?_0x53150e()[_0x15227a(0x73d)](_0xda3c07=>_0xda3c07[_0x15227a(0x82f)]===_0x202925)?.[_0x15227a(0x2ef)]:undefined,'getCount':_0x364db6=>_0x364db6===_0x15227a(0x8ca)?_0x53150e()[_0x15227a(0x68a)]:0x0};Object[_0x15227a(0x1fd)](_0x396a4d,_0x15227a(0x34e),{'get':()=>_0x152b8b[_0x15227a(0x210)](_0x15227a(0x1ff),null,_0x15227a(0x1f4),[],![])?_0x530955:null});const _0x11db37=_0x396a4d[_0x15227a(0x260)];_0x396a4d['open']=async _0x5bc92b=>{return await _0x11db37(_0x5bc92b),_0x396a4d['_statusEnv'];},_0x396a4d[_0x15227a(0x68c)]=()=>_0x152b8b[_0x15227a(0x210)](_0x15227a(0x1ff),null,_0x15227a(0x4b6),[],!![]);const {RawDb:_0x303445}=requireRawdb();return Object['defineProperty'](_0x396a4d,'_desired',{'get':()=>_0x152b8b[_0x15227a(0x34d)]?_0x396a4d['__desired']||=new _0x303445(_0x152b8b[_0x15227a(0x34d)],_0x15227a(0x77b)):undefined}),Object['defineProperty'](_0x396a4d,_0x15227a(0x273),{'get':()=>_0x152b8b['_systemEnv']?_0x396a4d[_0x15227a(0x8d8)]||=new _0x303445(_0x152b8b[_0x15227a(0x34d)],_0x15227a(0x6de)):undefined}),_0x396a4d[_0x15227a(0x4a2)]=()=>_0x152b8b[_0x15227a(0x210)](_0x15227a(0x1ff),null,_0x15227a(0x4a2),[],![]),Object[_0x15227a(0x1fd)](_0x396a4d,_0x15227a(0x632),{'get':()=>_0x152b8b[_0x15227a(0x210)]('processes',null,_0x15227a(0x675),[],![])}),Object[_0x15227a(0x1fd)](_0x396a4d,_0x15227a(0x7c6),{'get':()=>_0x152b8b[_0x15227a(0x210)](_0x15227a(0x1ff),null,_0x15227a(0x368),[],![])}),_0x396a4d['_buildOwnRow']=()=>_0x152b8b[_0x15227a(0x210)](_0x15227a(0x1ff),null,_0x15227a(0x71c),[],![]),_0x396a4d['_emitProc']=(_0x551b72,_0x3c5753)=>_0x152b8b['_call'](_0x15227a(0x1ff),null,'emitProc',[_0x551b72,_0x3c5753],![]),_0x396a4d;}return sys={'makeMeta':_0x4b63ed,'makeLicenses':_0x359e4b,'makeLicenseChecker':_0xe16201,'makeProcesses':_0x9acef4},sys;}var okdbLogger,hasRequiredOkdbLogger;function requireOkdbLogger(){const _0x4d6aed=_0x5c70f8;if(hasRequiredOkdbLogger)return okdbLogger;hasRequiredOkdbLogger=0x1;const _0x4e7c74={'debug':0xa,'info':0x14,'warn':0x1e,'error':0x28};class _0x137bdd{constructor(_0xcd03b5){const _0x3e336d=_0x52a3;this[_0x3e336d(0x61e)]=_0xcd03b5,this['_sinks']=new Set(),this['_meta']={};}[_0x4d6aed(0x651)](_0x5574a7){const _0x437d0b=_0x4d6aed,_0x96e3eb=new _0x137bdd(this[_0x437d0b(0x61e)]);return _0x96e3eb[_0x437d0b(0x1d8)]=this[_0x437d0b(0x1d8)],_0x96e3eb['_meta']={...this['_meta'],..._0x5574a7},_0x96e3eb;}['attach'](_0x150dce){const _0x638f2e=_0x4d6aed;return this['_sinks']['add'](_0x150dce),()=>this['_sinks'][_0x638f2e(0x2cb)](_0x150dce);}['attachConsole'](){const _0x508cf4=_0x4d6aed,_0x34cda7=_0x4e7c74[process.env.OKDB_LOG_LEVEL]??_0x4e7c74[_0x508cf4(0x7e2)];return this[_0x508cf4(0x806)]=this[_0x508cf4(0x29a)](({level:_0x1587f4,msg:_0xcfc8ed,meta:_0x158339,context:_0x3c766d,ts:_0x5aed93})=>{const _0x1f04af=_0x508cf4;if((_0x4e7c74[_0x1587f4]??_0x4e7c74['info'])<_0x34cda7)return;if(_0x158339?.[_0x1f04af(0x895)]===_0x1f04af(0x7b5)&&(_0x1587f4===_0x1f04af(0x7e2)||_0x1587f4===_0x1f04af(0x649)))return;const _0x26bc4c=_0x1587f4==='error'?console[_0x1f04af(0x62e)]:_0x1587f4===_0x1f04af(0x2f1)?console[_0x1f04af(0x2f1)]:_0x1587f4===_0x1f04af(0x7e2)?console[_0x1f04af(0x7e2)]:console[_0x1f04af(0x58d)],_0x50b432=_0x158339&&Object[_0x1f04af(0x4ac)](_0x158339)[_0x1f04af(0x68a)]>0x0;_0x50b432||_0x3c766d!==undefined?_0x26bc4c(new Date(_0x5aed93)[_0x1f04af(0x5c0)](),_0xcfc8ed,..._0x50b432?[_0x158339]:[],..._0x3c766d!==undefined?[_0x3c766d]:[]):_0x26bc4c(new Date(_0x5aed93)[_0x1f04af(0x5c0)](),_0xcfc8ed);}),this['_detachConsole'];}['detachConsole'](){const _0x5bc9c5=_0x4d6aed;this[_0x5bc9c5(0x806)]&&(this[_0x5bc9c5(0x806)](),this[_0x5bc9c5(0x806)]=null);}['attachOKDB'](_0xecba8,_0x5d79fe){const _0x340c82=_0x4d6aed,_0x1f06fc=require$$0$4,_0x2a7c30=0x1f4,_0x2998ef=Number(process.env.OKDB_LOG_FLUSH_MS)||0x3e8;let _0x4e6b39=[],_0x28e52f=0x0,_0x2542fb=null;const _0x4842ca=()=>{const _0x51aad3=_0x52a3;_0x2542fb=null;if(_0x4e6b39['length']===0x0)return;const _0x1d48c7=_0x4e6b39;_0x4e6b39=[],_0x28e52f>0x0&&(_0x1d48c7[_0x51aad3(0x28d)]({'ts':Date[_0x51aad3(0x8cc)](),'level':'warn','msg':_0x51aad3(0x552)+_0x28e52f+_0x51aad3(0x796)+(_0x28e52f===0x1?'y':_0x51aad3(0x36d))+_0x51aad3(0x26c),'feature':_0x51aad3(0x58d),'node':_0x5d79fe,'context':null}),_0x28e52f=0x0),_0xecba8['txn'](_0x25d605=>{const _0x42a6fb=_0x51aad3;for(const _0x57fb93 of _0x1d48c7)_0x25d605[_0x42a6fb(0x253)](_0x42a6fb(0x5fb),_0x1f06fc[_0x42a6fb(0x809)](),_0x57fb93);})[_0x51aad3(0x6d7)](()=>{});},_0x2402fd=this[_0x340c82(0x29a)](({level:_0x3c2392,msg:_0x37b7cc,meta:_0x462e99,context:_0x5f1b01,ts:_0x1e7367})=>{const _0x4a4c81=_0x340c82;if(_0x3c2392===_0x4a4c81(0x649))return;_0x4e6b39[_0x4a4c81(0x68a)]>=_0x2a7c30&&(_0x28e52f++,_0x4e6b39[_0x4a4c81(0x812)]()),_0x4e6b39['push']({'ts':_0x1e7367,'level':_0x3c2392,'msg':_0x37b7cc,'feature':_0x462e99?.[_0x4a4c81(0x895)]??_0x462e99?.['module']??null,'node':_0x5d79fe,'context':_0x5f1b01??null}),!_0x2542fb&&(_0x2542fb=setTimeout(_0x4842ca,_0x2998ef),_0x2542fb[_0x4a4c81(0x32c)]?.());});return()=>{_0x2402fd();if(_0x2542fb)clearTimeout(_0x2542fb);_0x4842ca();};}[_0x4d6aed(0x7c8)](_0x11f2b2,_0x169c59,_0x25f8f2){const _0xafd083=_0x4d6aed;_0x169c59 instanceof Error&&(_0x25f8f2={'message':_0x169c59[_0xafd083(0x211)],'stack':_0x169c59[_0xafd083(0x221)],..._0x25f8f2},_0x169c59=_0x169c59['message']);const _0x4691bc={'level':_0x11f2b2,'msg':_0x169c59,'meta':{...this[_0xafd083(0x53e)]},'context':_0x25f8f2,'ts':Date['now']()};try{this['okdb'][_0xafd083(0x4cb)]['emit'](_0xafd083(0x58d),_0x4691bc);}catch{}for(const _0xe57b3 of this[_0xafd083(0x1d8)]){try{_0xe57b3(_0x4691bc);}catch{}}}['ingest'](_0x13e03e){const _0x51571b=_0x4d6aed;try{this[_0x51571b(0x61e)]?.[_0x51571b(0x4cb)]?.[_0x51571b(0x5a2)](_0x51571b(0x58d),_0x13e03e);}catch{}for(const _0x4c2f88 of this[_0x51571b(0x1d8)]){try{_0x4c2f88(_0x13e03e);}catch{}}}[_0x4d6aed(0x7e2)](_0x1fe855,_0x4a28ee){const _0x9a7951=_0x4d6aed;this[_0x9a7951(0x7c8)]('info',_0x1fe855,_0x4a28ee);}[_0x4d6aed(0x2f1)](_0x46b51f,_0x16741d){const _0x15b1c0=_0x4d6aed;this['_emit'](_0x15b1c0(0x2f1),_0x46b51f,_0x16741d);}[_0x4d6aed(0x62e)](_0x3f7a66,_0x2ecc2e){const _0x26cb51=_0x4d6aed;this[_0x26cb51(0x7c8)](_0x26cb51(0x62e),_0x3f7a66,_0x2ecc2e);}[_0x4d6aed(0x649)](_0x573bc1,_0x4bb215){const _0x16eddd=_0x4d6aed;this[_0x16eddd(0x7c8)](_0x16eddd(0x649),_0x573bc1,_0x4bb215);}}return okdbLogger=_0x137bdd,okdbLogger;}var okdbPlugins,hasRequiredOkdbPlugins;function requireOkdbPlugins(){const _0x24c1ff=_0x5c70f8;if(hasRequiredOkdbPlugins)return okdbPlugins;hasRequiredOkdbPlugins=0x1;const {OKDB_STATE:_0x18f631}=requireOkdbEnums(),{OKDBError:_0x2563e6}=requireOkdbError();class _0x2ecbcf{constructor(_0x1ea180){const _0x52a747=_0x52a3;this[_0x52a747(0x61e)]=_0x1ea180,this[_0x52a747(0x477)]=[];}[_0x24c1ff(0x811)](_0x2e7fd9,_0x5281a0){const _0x2b046f=_0x24c1ff;if(this[_0x2b046f(0x61e)][_0x2b046f(0x74f)]!==_0x18f631[_0x2b046f(0x890)])throw new _0x2563e6(_0x2b046f(0x5b3),_0x2b046f(0x58e),{'state':this['okdb'][_0x2b046f(0x74f)]});if(!_0x2e7fd9[_0x2b046f(0x54b)])throw new _0x2563e6('Plugin\x20must\x20have\x20a\x20name',_0x2b046f(0x332),{'plugin':_0x2e7fd9[_0x2b046f(0x54b)]});const _0x2488c3=_0x2e7fd9['requires']??[];for(const _0x23ac27 of _0x2488c3){if(!this[_0x2b046f(0x477)][_0x2b046f(0x224)](_0x5c0d7b=>_0x5c0d7b[_0x2b046f(0x882)][_0x2b046f(0x54b)]===_0x23ac27))throw new _0x2563e6(_0x2b046f(0x6e3)+_0x23ac27+_0x2b046f(0x7b8)+_0x2e7fd9[_0x2b046f(0x54b)]+')',_0x2b046f(0x553),{'required':_0x23ac27});}if(this[_0x2b046f(0x477)][_0x2b046f(0x73d)](_0x3be180=>_0x3be180[_0x2b046f(0x882)][_0x2b046f(0x54b)]===_0x2e7fd9[_0x2b046f(0x54b)]))throw new _0x2563e6('Plugin\x20\x27'+_0x2e7fd9[_0x2b046f(0x54b)]+_0x2b046f(0x276),_0x2b046f(0x594),{'plugin':_0x2e7fd9['name']});if(_0x2e7fd9['name']in this[_0x2b046f(0x61e)])throw new _0x2563e6(_0x2b046f(0x3bc)+_0x2e7fd9['name']+_0x2b046f(0x7f4),_0x2b046f(0x5e3));const _0x5bb25d=_0x2e7fd9[_0x2b046f(0x811)](this[_0x2b046f(0x61e)],_0x5281a0);if(!_0x5bb25d||typeof _0x5bb25d!==_0x2b046f(0x559))throw new _0x2563e6('Plugin\x20\x27'+_0x2e7fd9['name']+_0x2b046f(0x892),_0x2b046f(0x332),{'plugin':_0x2e7fd9[_0x2b046f(0x54b)]});this[_0x2b046f(0x477)][_0x2b046f(0x28d)]({'module':_0x2e7fd9,'options':_0x5281a0,'instance':_0x5bb25d});}[_0x24c1ff(0x620)]=[];async[_0x24c1ff(0x45c)](){const _0x543fa3=_0x24c1ff;try{for(const _0x43bd0c of this[_0x543fa3(0x477)]){await _0x43bd0c['instance'][_0x543fa3(0x45c)]?.(this[_0x543fa3(0x61e)]),this[_0x543fa3(0x620)]['push'](_0x43bd0c);}}catch(_0x3d299d){await this['stop']()[_0x543fa3(0x6d7)](()=>{});throw _0x3d299d;}}async[_0x24c1ff(0x1f1)](){const _0x2543bf=_0x24c1ff,_0x391398=this[_0x2543bf(0x620)][_0x2543bf(0x641)]();this[_0x2543bf(0x620)]=[];let _0xd7d970=null;for(const _0x352556 of _0x391398){try{await _0x352556[_0x2543bf(0x327)]['stop']?.(this['okdb']);}catch(_0x4ffd52){_0xd7d970??=_0x4ffd52;}}if(_0xd7d970)throw _0xd7d970;}}return okdbPlugins=_0x2ecbcf,okdbPlugins;}var statics,hasRequiredStatics;function requireStatics(){const _0x1b4a05=_0x5c70f8;if(hasRequiredStatics)return statics;hasRequiredStatics=0x1;const _0x3cb465={'maxDbs':0x400,'pageSize':0x1000,'compression':!![],'encryptionKey':undefined,'mapSize':0x100000000,'durability':_0x1b4a05(0x6ac)},_0x1ce2e5=new Set(['maxDbs',_0x1b4a05(0x780),'compression',_0x1b4a05(0x32b),'encryptionKeys','mapSize',_0x1b4a05(0x8a2),_0x1b4a05(0x5d9),_0x1b4a05(0x533),_0x1b4a05(0x7f0),_0x1b4a05(0x59c),_0x1b4a05(0x622),_0x1b4a05(0x7b5),_0x1b4a05(0x58f),'mcp',_0x1b4a05(0x89b),_0x1b4a05(0x58d),_0x1b4a05(0x4f0),_0x1b4a05(0x7cd),_0x1b4a05(0x655),_0x1b4a05(0x562),_0x1b4a05(0x402),'processes',_0x1b4a05(0x444),_0x1b4a05(0x7a5),_0x1b4a05(0x7ed),_0x1b4a05(0x25e),_0x1b4a05(0x649),_0x1b4a05(0x2c4),_0x1b4a05(0x423)]),_0x5ea3eb={'http':_0x1b4a05(0x777)};return statics={'defaults':_0x3cb465,'KNOWN_OPTIONS':_0x1ce2e5,'_OPTION_HINTS':_0x5ea3eb},statics;}var licenseConfig,hasRequiredLicenseConfig;function requireLicenseConfig(){const _0x5e43f0=_0x5c70f8;if(hasRequiredLicenseConfig)return licenseConfig;hasRequiredLicenseConfig=0x1;const _0x5db1e3=require$$0$2,_0x4f0273=_0x5e43f0(0x6aa),_0x3e2aa3=_0x5db1e3['createHash'](_0x5e43f0(0x5bc))[_0x5e43f0(0x5b4)](_0x5db1e3['createPublicKey'](_0x4f0273)['export']({'type':_0x5e43f0(0x2ec),'format':_0x5e43f0(0x397)}))[_0x5e43f0(0x4f7)](_0x5e43f0(0x525))[_0x5e43f0(0x1f7)](0x0,0x10),_0x47456d={'LICENSED_BUILD':_0x5e43f0(0x43b),'PUBLIC_KEY_PEM':_0x4f0273,'PUB_FINGERPRINT':_0x3e2aa3,'LICENSE_EXPIRED_ACTION':_0x5e43f0(0x58d)};return licenseConfig={'_C':_0x47456d,'PUBLIC_KEY_PEM':_0x4f0273,'PUB_FINGERPRINT':_0x3e2aa3},licenseConfig;}var okdbSubscriptionsStore={'exports':{}},okdbQueryFilter,hasRequiredOkdbQueryFilter;function requireOkdbQueryFilter(){const _0x59d762=_0x5c70f8;if(hasRequiredOkdbQueryFilter)return okdbQueryFilter;hasRequiredOkdbQueryFilter=0x1;const _0x2b829c=require$$0$5,{OKDBError:_0x47b17a}=requireOkdbError(),_0x2d4227=[_0x59d762(0x48b),'$ne','$gt',_0x59d762(0x7f9),_0x59d762(0x8ad),'$lte',_0x59d762(0x5f3),_0x59d762(0x20a),_0x59d762(0x6e9),_0x59d762(0x373),_0x59d762(0x381),_0x59d762(0x508),_0x59d762(0x4ce),_0x59d762(0x328),'$type',_0x59d762(0x51a),_0x59d762(0x452),'$and',_0x59d762(0x4ed),_0x59d762(0x39e)],_0x23c536=[_0x59d762(0x77a)];function _0x310881(_0x3a9ea2){return()=>{const _0x1207c9=_0x52a3,_0x24cd0d=new _0x47b17a(_0x1207c9(0x39f)+_0x3a9ea2+_0x1207c9(0x391),_0x1207c9(0x55a),{'operator':_0x3a9ea2});_0x24cd0d[_0x1207c9(0x717)]=0x190;throw _0x24cd0d;};}const _0x3f734a=Object[_0x59d762(0x202)]({...Object[_0x59d762(0x24a)](_0x2d4227[_0x59d762(0x35e)](_0x48c387=>[_0x48c387,_0x2b829c[_0x48c387]])),...Object[_0x59d762(0x24a)](_0x23c536[_0x59d762(0x35e)](_0x5cf236=>[_0x5cf236,_0x310881(_0x5cf236)]))});function _0x2915e8(_0x11b4dd){const _0x21d358=_0x59d762;return _0x2b829c[_0x21d358(0x693)](_0x11b4dd,{'operations':_0x3f734a});}function _0x4a1536(_0x13a735){const _0x5a9b02=_0x59d762;if(_0x13a735==null)return;try{_0x2915e8(_0x13a735);}catch(_0x324c2e){if(_0x324c2e?.[_0x5a9b02(0x50e)]===_0x5a9b02(0x55a))throw _0x324c2e;}}return okdbQueryFilter={'compileFilter':_0x2915e8,'assertFilterAllowed':_0x4a1536,'ALLOWED_OPERATORS':_0x2d4227,'FORBIDDEN_OPERATORS':_0x23c536},okdbQueryFilter;}var okdbEnvRefs,hasRequiredOkdbEnvRefs;function requireOkdbEnvRefs(){const _0x1e0b59=_0x5c70f8;if(hasRequiredOkdbEnvRefs)return okdbEnvRefs;hasRequiredOkdbEnvRefs=0x1;const {CHANGE_ACTIONS:_0x128f32,EVENTS:_0x1a181a}=requireOkdbEnums(),{OKDBError:_0x41d8df,OKDBForeignKeyDeleteError:_0x151bb2}=requireOkdbError(),_0x23fc91=_0x1e0b59(0x8e9),_0x7f3f65=new Set([_0x1e0b59(0x393),_0x1e0b59(0x2f9),_0x1e0b59(0x5ad),'restrict']);function _0x50ce29(_0x49300d,_0x18508a){const _0x20d2f5=_0x1e0b59;if(_0x49300d==null||!_0x18508a)return undefined;const _0x213cac=_0x18508a[_0x20d2f5(0x5e4)]('.');let _0x343fbd=_0x49300d;for(const _0x49bb9f of _0x213cac){if(_0x343fbd==null||typeof _0x343fbd!=='object'||!(_0x49bb9f in _0x343fbd))return undefined;_0x343fbd=_0x343fbd[_0x49bb9f];}return _0x343fbd;}function _0x29690d(_0x23766d,_0xddc424,_0x457987){const _0x3dfdf7=_0x1e0b59,_0x57b4ee=_0xddc424[_0x3dfdf7(0x5e4)]('.'),_0x22e442={..._0x23766d};let _0x31626c=_0x22e442;for(let _0x5de999=0x0;_0x5de999<_0x57b4ee[_0x3dfdf7(0x68a)]-0x1;_0x5de999++){_0x31626c[_0x57b4ee[_0x5de999]]=_0x31626c[_0x57b4ee[_0x5de999]]!=null?{..._0x31626c[_0x57b4ee[_0x5de999]]}:{},_0x31626c=_0x31626c[_0x57b4ee[_0x5de999]];}return _0x31626c[_0x57b4ee[_0x57b4ee['length']-0x1]]=_0x457987,_0x22e442;}function _0x42491a(_0x46e2e2,_0x7d32c9,_0x3bccc9,_0x2e7fa6,_0x3c5173){return[_0x46e2e2,_0x7d32c9,_0x3bccc9,_0x2e7fa6,_0x3c5173];}function _0x252b25(_0x41aee1){const _0x1d2299=_0x1e0b59;return typeof _0x41aee1==='string'||typeof _0x41aee1===_0x1d2299(0x6e7);}function _0x477949(_0x3a856c,_0x42cbd3){const _0x556170=_0x1e0b59;return JSON[_0x556170(0x35a)]([_0x3a856c,_0x42cbd3]);}function*_0x37c6a2(_0x36c829,_0x29954d,_0x5a0d84){const _0x65c549=_0x1e0b59,_0xb6cc96=_0x5a0d84!==undefined;for(const {key:_0x4f3c7e}of _0x36c829[_0x65c549(0x3ee)]({'start':_0xb6cc96?[_0x29954d,_0x5a0d84]:[_0x29954d]})){if(!Array[_0x65c549(0x439)](_0x4f3c7e))continue;if(_0x4f3c7e[0x0]!==_0x29954d||_0xb6cc96&&_0x4f3c7e[0x1]!==_0x5a0d84)break;yield _0x4f3c7e;}}function _0x33d7ce(_0x4da01a,_0x891bca='',_0x16b434=null){const _0x4b24cb=_0x1e0b59,_0x339dc7=[];if(!_0x4da01a||typeof _0x4da01a!==_0x4b24cb(0x559))return _0x339dc7;if(!_0x16b434)_0x16b434=_0x4da01a;if(_0x4da01a[_0x4b24cb(0x486)]){const _0x362bcc=_0x4da01a[_0x4b24cb(0x486)][_0x4b24cb(0x862)](/^#\/\$defs\/(.+)$/);if(_0x362bcc&&_0x16b434?.[_0x4b24cb(0x420)]?.[_0x362bcc[0x1]])return _0x33d7ce(_0x16b434[_0x4b24cb(0x420)][_0x362bcc[0x1]],_0x891bca,_0x16b434);return _0x339dc7;}if(_0x4da01a[_0x4b24cb(0x4bb)]&&typeof _0x4da01a[_0x4b24cb(0x4bb)]===_0x4b24cb(0x559)&&_0x4da01a[_0x4b24cb(0x4bb)][_0x4b24cb(0x45d)]){const _0x5bff1d=_0x4da01a[_0x4b24cb(0x4bb)][_0x4b24cb(0x700)]||_0x4b24cb(0x393);if(!_0x7f3f65[_0x4b24cb(0x571)](_0x5bff1d))throw new _0x41d8df(_0x4b24cb(0x5f9)+_0x5bff1d+_0x4b24cb(0x830)+(_0x891bca||'root')+_0x4b24cb(0x57c)+[..._0x7f3f65]['join'](',\x20'),_0x4b24cb(0x870));_0x339dc7[_0x4b24cb(0x28d)]({'fieldPath':_0x891bca,'targetType':_0x4da01a[_0x4b24cb(0x4bb)]['type'],'onDelete':_0x5bff1d});}if(_0x4da01a['properties'])for(const [_0x1d0b5e,_0x272175]of Object[_0x4b24cb(0x719)](_0x4da01a[_0x4b24cb(0x59f)])){const _0x331ee7=_0x891bca?_0x891bca+'.'+_0x1d0b5e:_0x1d0b5e;_0x339dc7[_0x4b24cb(0x28d)](..._0x33d7ce(_0x272175,_0x331ee7,_0x16b434));}return _0x339dc7;}function _0x3b247b(_0x52ee2a){const _0x2ecf8f=_0x1e0b59,_0x10bc3e=new Map(),_0x1f1e05=new Map();for(const _0x507236 of _0x52ee2a[_0x2ecf8f(0x695)]()){if(_0x507236['startsWith']('~'))continue;const _0x5584fc=_0x52ee2a[_0x2ecf8f(0x394)][_0x2ecf8f(0x309)](_0x507236);if(!_0x5584fc?.[_0x2ecf8f(0x65f)]?.[_0x2ecf8f(0x548)])continue;let _0x2a9986;try{_0x2a9986=_0x33d7ce(_0x5584fc[_0x2ecf8f(0x65f)][_0x2ecf8f(0x548)]);}catch{continue;}if(_0x2a9986[_0x2ecf8f(0x68a)]>0x0){_0x10bc3e['set'](_0x507236,_0x2a9986);for(const _0x3a7fd3 of _0x2a9986){if(!_0x1f1e05[_0x2ecf8f(0x571)](_0x3a7fd3[_0x2ecf8f(0x469)]))_0x1f1e05[_0x2ecf8f(0x63f)](_0x3a7fd3[_0x2ecf8f(0x469)],[]);_0x1f1e05[_0x2ecf8f(0x309)](_0x3a7fd3[_0x2ecf8f(0x469)])[_0x2ecf8f(0x28d)]({'sourceType':_0x507236,'fieldPath':_0x3a7fd3[_0x2ecf8f(0x5e7)],'onDelete':_0x3a7fd3[_0x2ecf8f(0x700)]});}}}_0x52ee2a[_0x2ecf8f(0x242)]={'outgoing':_0x10bc3e,'incoming':_0x1f1e05};if(_0x10bc3e[_0x2ecf8f(0x8d2)]>0x0)_0x43c18a(_0x52ee2a);}function _0x2644e9(_0x58066c,_0x4b33ed){const _0x4bdb6b=_0x1e0b59;return _0x58066c[_0x4bdb6b(0x242)][_0x4bdb6b(0x50a)]['get'](_0x4b33ed)||[];}function _0x26fddb(_0x650dbe,_0x54feb1){const _0x56f459=_0x1e0b59;return _0x650dbe[_0x56f459(0x242)]['incoming'][_0x56f459(0x309)](_0x54feb1)||[];}function _0x43c18a(_0x25b871){const _0x400fd4=_0x1e0b59;if(_0x25b871[_0x400fd4(0x3e9)])return _0x25b871[_0x400fd4(0x3e9)];return _0x25b871[_0x400fd4(0x3e9)]=_0x25b871['db'][_0x400fd4(0x863)](_0x400fd4(0x443),{'dupSort':![]}),_0x25b871[_0x400fd4(0x3e9)];}function _0x45e764(_0x156b14,_0x1f2c73,_0x2c25ff,_0x4c4873,_0x16c58f){const _0x18e7a9=_0x1e0b59,_0x5252e4=_0x2644e9(_0x156b14,_0x1f2c73);if(_0x5252e4[_0x18e7a9(0x68a)]===0x0)return;const _0x482c46=_0x43c18a(_0x156b14);for(const _0x5a8044 of _0x5252e4){const _0x13c396=_0x16c58f!=null?_0x50ce29(_0x16c58f,_0x5a8044[_0x18e7a9(0x5e7)]):undefined,_0x4140d4=_0x4c4873!=null?_0x50ce29(_0x4c4873,_0x5a8044[_0x18e7a9(0x5e7)]):undefined;if(_0x13c396===_0x4140d4)continue;_0x252b25(_0x13c396)&&_0x482c46[_0x18e7a9(0x3ac)](_0x42491a(_0x5a8044[_0x18e7a9(0x469)],_0x13c396,_0x1f2c73,_0x2c25ff,_0x5a8044[_0x18e7a9(0x5e7)])),_0x252b25(_0x4140d4)&&_0x482c46['putSync'](_0x42491a(_0x5a8044[_0x18e7a9(0x469)],_0x4140d4,_0x1f2c73,_0x2c25ff,_0x5a8044[_0x18e7a9(0x5e7)]),0x1);}}function _0x455ad3(_0x4235fa,_0x424538,_0x5e990a,_0x144cc3){const _0x470ef1=_0x1e0b59,_0x32ad47=_0x2644e9(_0x4235fa,_0x424538);if(_0x32ad47[_0x470ef1(0x68a)]===0x0)return;const _0x44b4c0=_0x43c18a(_0x4235fa);for(const _0xb6db9f of _0x32ad47){const _0x19a723=_0x144cc3!=null?_0x50ce29(_0x144cc3,_0xb6db9f[_0x470ef1(0x5e7)]):undefined;_0x252b25(_0x19a723)&&_0x44b4c0['removeSync'](_0x42491a(_0xb6db9f[_0x470ef1(0x469)],_0x19a723,_0x424538,_0x5e990a,_0xb6db9f[_0x470ef1(0x5e7)]));}}function _0x408a31(_0x38364d,_0x4e69b6,_0x1732c2,_0x3eb8af){const _0x31220c=_0x1e0b59,_0xf960e2=_0x2644e9(_0x38364d,_0x4e69b6);if(_0xf960e2[_0x31220c(0x68a)]===0x0)return[];const _0xb3c0b1=[];for(const _0x126621 of _0xf960e2){const _0x4e9021=_0x50ce29(_0x3eb8af,_0x126621['fieldPath']);if(_0x4e9021==null)continue;if(!_0x38364d[_0x31220c(0x414)](_0x126621[_0x31220c(0x469)])){_0xb3c0b1[_0x31220c(0x28d)]({'fieldPath':_0x126621[_0x31220c(0x5e7)],'targetType':_0x126621[_0x31220c(0x469)],'targetKey':_0x4e9021,'message':_0x31220c(0x352)+_0x126621[_0x31220c(0x469)]+'\x27\x20does\x20not\x20exist'});continue;}const _0x4cf2e2=_0x38364d['_getType'](_0x126621[_0x31220c(0x469)])[_0x31220c(0x6a7)];!_0x4cf2e2[_0x31220c(0x3a6)](_0x4e9021)&&_0xb3c0b1['push']({'fieldPath':_0x126621['fieldPath'],'targetType':_0x126621[_0x31220c(0x469)],'targetKey':_0x4e9021,'message':'Referenced\x20key\x20\x27'+_0x4e9021+_0x31220c(0x564)+_0x126621[_0x31220c(0x469)]+'\x27'});}return _0xb3c0b1;}function _0x303b77(_0x54ba19,_0x117be3,_0x4984d7,_0x2a750,_0x1048dd,{timestamp:_0x390b1d,origin:_0x50dd5f,_cascadeVisited:_0x18cafd}){const _0x58f5d3=_0x1e0b59,_0xa6e4f=_0x26fddb(_0x54ba19,_0x4984d7);if(_0xa6e4f[_0x58f5d3(0x68a)]===0x0)return;const _0x414bab=_0x43c18a(_0x54ba19),_0x1d75fd=[];for(const [,,_0x2598b1,_0x16689b,_0x3a4c11]of _0x37c6a2(_0x414bab,_0x4984d7,_0x2a750)){_0x1d75fd[_0x58f5d3(0x28d)]({'sourceType':_0x2598b1,'sourceKey':_0x16689b,'fieldPath':_0x3a4c11});}if(_0x1d75fd[_0x58f5d3(0x68a)]===0x0)return;for(const _0x26561f of _0x1d75fd){const _0x42488a=_0xa6e4f[_0x58f5d3(0x73d)](_0x491708=>_0x491708['sourceType']===_0x26561f[_0x58f5d3(0x816)]&&_0x491708[_0x58f5d3(0x5e7)]===_0x26561f[_0x58f5d3(0x5e7)]),_0x3620df=_0x42488a?.[_0x58f5d3(0x700)]||_0x58f5d3(0x393);switch(_0x3620df){case _0x58f5d3(0x311):{if(_0x50dd5f===null)throw new _0x151bb2(_0x4984d7,_0x2a750,_0x1d75fd[_0x58f5d3(0x4e1)](_0x548639=>{const _0x5bd867=_0x58f5d3,_0x3303c4=_0xa6e4f[_0x5bd867(0x73d)](_0x398113=>_0x398113[_0x5bd867(0x816)]===_0x548639[_0x5bd867(0x816)]&&_0x398113[_0x5bd867(0x5e7)]===_0x548639['fieldPath']);return(_0x3303c4?.[_0x5bd867(0x700)]||_0x5bd867(0x393))===_0x5bd867(0x311);}));break;}case _0x58f5d3(0x2f9):{const _0x4f1f75=_0x477949(_0x26561f[_0x58f5d3(0x816)],_0x26561f[_0x58f5d3(0x713)]);if(_0x18cafd[_0x58f5d3(0x571)](_0x4f1f75))continue;_0x54ba19[_0x58f5d3(0x3c8)](_0x26561f[_0x58f5d3(0x816)])['data'][_0x58f5d3(0x3a6)](_0x26561f[_0x58f5d3(0x713)])&&_0x54ba19[_0x58f5d3(0x46d)](_0x117be3,_0x26561f[_0x58f5d3(0x816)],_0x26561f[_0x58f5d3(0x713)],{'timestamp':_0x390b1d,'origin':_0x50dd5f,'_cascadeVisited':_0x18cafd});break;}case _0x58f5d3(0x5ad):{const _0x4b0f05=_0x54ba19[_0x58f5d3(0x3c8)](_0x26561f[_0x58f5d3(0x816)])[_0x58f5d3(0x6a7)],_0x11b488=_0x4b0f05[_0x58f5d3(0x3a0)](_0x26561f[_0x58f5d3(0x713)]);if(_0x11b488){const _0x19aadc=_0x29690d(_0x11b488[_0x58f5d3(0x2ef)],_0x26561f[_0x58f5d3(0x5e7)],null);_0x54ba19[_0x58f5d3(0x77c)](_0x117be3,_0x58f5d3(0x253),_0x26561f['sourceType'],_0x26561f[_0x58f5d3(0x713)],_0x19aadc,{'timestamp':_0x390b1d,'origin':_0x50dd5f,'_cascading':!![]});}break;}}}}function _0xe0c25d(_0x5820f6){const _0x607da1=_0x1e0b59;!_0x5820f6[_0x607da1(0x414)](_0x23fc91)&&_0x5820f6[_0x607da1(0x4ad)](_0x23fc91);}function _0xa49407(_0x4ad5f7,_0x46477c,_0xd6c38f,_0x58d61f,_0x567bb0,_0x2b0945,_0x1beb8d,{timestamp:timestamp=Date[_0x1e0b59(0x8cc)](),origin:origin=null}={}){const _0x1e4fa3=_0x1e0b59;_0xe0c25d(_0x4ad5f7);const _0x397d7c=_0xd6c38f+'@'+_0x58d61f+'@'+_0x567bb0,_0x3d037f={'sourceType':_0xd6c38f,'sourceKey':_0x58d61f,'fieldPath':_0x567bb0,'targetType':_0x2b0945,'targetKey':_0x1beb8d,'timestamp':timestamp,'origin':origin},_0x42d59c=_0x4ad5f7[_0x1e4fa3(0x3c8)](_0x23fc91)[_0x1e4fa3(0x6a7)],_0x5b89e3=_0x42d59c[_0x1e4fa3(0x3a0)](_0x397d7c),_0x1e6e3f=_0x5b89e3?_0x5b89e3[_0x1e4fa3(0x1d0)]+0x1:0x1;_0x42d59c[_0x1e4fa3(0x512)](_0x397d7c,_0x3d037f,_0x1e6e3f),_0x4ad5f7[_0x1e4fa3(0x52d)]({'id':_0x1e4fa3(0x1c1)+_0x23fc91+'@'+_0x397d7c,'type':_0x23fc91,'key':_0x397d7c,'action':_0x128f32[_0x1e4fa3(0x694)],'timestamp':timestamp,'txnId':_0x46477c?.['id'],'origin':origin},_0x5b89e3?.[_0x1e4fa3(0x2ef)],_0x3d037f),_0x4ad5f7[_0x1e4fa3(0x4cb)]['emit'](_0x1a181a['REF_VIOLATION'],{'sourceType':_0xd6c38f,'sourceKey':_0x58d61f,'fieldPath':_0x567bb0,'targetType':_0x2b0945,'targetKey':_0x1beb8d,'env':_0x4ad5f7[_0x1e4fa3(0x54b)]});}function _0x3dd8b9(_0x45a98f,_0x1b0bbb,_0x53d45a,_0x54fa7a,_0x17af02,{timestamp:timestamp=Date[_0x1e0b59(0x8cc)](),origin:origin=null}={}){const _0x540944=_0x1e0b59;if(!_0x45a98f[_0x540944(0x414)](_0x23fc91))return;const _0x295951=_0x53d45a+'@'+_0x54fa7a+'@'+_0x17af02,_0x337d24=_0x45a98f['_getType'](_0x23fc91)[_0x540944(0x6a7)],_0x1433bb=_0x337d24[_0x540944(0x3a0)](_0x295951);if(!_0x1433bb)return;_0x337d24['removeSync'](_0x295951),_0x45a98f[_0x540944(0x52d)]({'id':_0x540944(0x1c1)+_0x23fc91+'@'+_0x295951,'type':_0x23fc91,'key':_0x295951,'action':_0x128f32[_0x540944(0x8a0)],'timestamp':timestamp,'txnId':_0x1b0bbb?.['id'],'origin':origin},_0x1433bb[_0x540944(0x2ef)],undefined),_0x45a98f[_0x540944(0x4cb)][_0x540944(0x5a2)](_0x1a181a[_0x540944(0x8c5)],{'sourceType':_0x53d45a,'sourceKey':_0x54fa7a,'fieldPath':_0x17af02,'env':_0x45a98f['name']});}function _0x564cf2(_0x3ae53e,_0x26af28,_0xb5083f,_0x29fa82,_0x364bd1={}){const _0x6ab484=_0x1e0b59;if(!_0x3ae53e[_0x6ab484(0x414)](_0x23fc91))return;const _0x3b132e=_0x3ae53e[_0x6ab484(0x3c8)](_0x23fc91)[_0x6ab484(0x6a7)],_0x2895dd=_0xb5083f+'@'+_0x29fa82+'@',_0x46c8f1=[];for(const {key:_0xf3e3b7,value:_0x5535be}of _0x3b132e['getRange']({'start':_0x2895dd,'end':_0x2895dd+'\uffff'})){if(_0x5535be?.[_0x6ab484(0x816)]===_0xb5083f&&_0x5535be?.[_0x6ab484(0x713)]===_0x29fa82)_0x46c8f1['push'](_0xf3e3b7);}for(const _0x6709e3 of _0x46c8f1){const _0x1e95c4=_0x3b132e[_0x6ab484(0x3a0)](_0x6709e3);if(!_0x1e95c4)continue;_0x3b132e[_0x6ab484(0x3ac)](_0x6709e3),_0x3ae53e[_0x6ab484(0x52d)]({'id':'item:'+_0x23fc91+'@'+_0x6709e3,'type':_0x23fc91,'key':_0x6709e3,'action':_0x128f32[_0x6ab484(0x8a0)],'timestamp':_0x364bd1['timestamp']||Date[_0x6ab484(0x8cc)](),'txnId':_0x26af28?.['id'],'origin':_0x364bd1[_0x6ab484(0x860)]},_0x1e95c4[_0x6ab484(0x2ef)],undefined);}}function _0x446b07(_0x212eda,_0x29c46b){const _0x515ccc=_0x1e0b59;if(!_0x212eda[_0x515ccc(0x414)](_0x23fc91))return;const _0x5c4eb7=_0x212eda['_getType'](_0x23fc91)[_0x515ccc(0x6a7)],_0xcde11c=_0x29c46b+'@',_0x4ad24a=[];for(const {key:_0x400c36,value:_0x57477b}of _0x5c4eb7[_0x515ccc(0x3ee)]({'start':_0xcde11c,'end':_0xcde11c+'\uffff'})){if(_0x57477b?.['sourceType']===_0x29c46b)_0x4ad24a[_0x515ccc(0x28d)](_0x400c36);}for(const _0x528187 of _0x4ad24a)_0x5c4eb7[_0x515ccc(0x3ac)](_0x528187);}async function _0x302daf(_0x57d930,_0x1cc115){const _0x41e0c2=_0x1e0b59,_0x5223c1=_0x2644e9(_0x57d930,_0x1cc115);if(_0x5223c1[_0x41e0c2(0x68a)]===0x0)return;await _0x57d930['_writer']['transaction'](()=>{for(const {key:_0x42fa80,value:_0x59362d}of _0x57d930['getRange'](_0x1cc115)){_0x45e764(_0x57d930,_0x1cc115,_0x42fa80,_0x59362d,null);const _0x4c3cfb=_0x408a31(_0x57d930,_0x1cc115,_0x42fa80,_0x59362d);for(const _0x3a0aa8 of _0x4c3cfb){_0xa49407(_0x57d930,null,_0x1cc115,_0x42fa80,_0x3a0aa8['fieldPath'],_0x3a0aa8['targetType'],_0x3a0aa8['targetKey']);}}});}const _0x558207=0x1388;async function _0x5b799e(_0x1a76e9){const _0x1420e7=_0x1e0b59,_0x420313=_0x1a76e9['_refCache']?.[_0x1420e7(0x50a)]?.[_0x1420e7(0x8d2)]>0x0;if(!_0x420313&&!_0x1a76e9['_refIndexDb'])return{'dropped':0x0,'written':0x0};const _0x507175=_0x43c18a(_0x1a76e9);let _0x5668cd=0x0;for(;;){const _0x36d520=Array[_0x1420e7(0x48d)](_0x507175[_0x1420e7(0x300)]({'limit':_0x558207}));if(_0x36d520['length']===0x0)break;let _0x25046a=0x0;await _0x1a76e9[_0x1420e7(0x767)][_0x1420e7(0x68f)](()=>{for(const _0x1f335c of _0x36d520)if(_0x507175['removeSync'](_0x1f335c))_0x25046a++;});if(_0x25046a===0x0)break;_0x5668cd+=_0x25046a;}let _0x3f89a4=0x0;for(const _0x5b5255 of _0x1a76e9[_0x1420e7(0x242)][_0x1420e7(0x50a)][_0x1420e7(0x4ac)]()){if(_0x5b5255[_0x1420e7(0x38a)]('~')||!_0x1a76e9['hasType'](_0x5b5255))continue;const _0x1cb61f=_0x2644e9(_0x1a76e9,_0x5b5255);await _0x1a76e9['_writer'][_0x1420e7(0x68f)](()=>{const _0x310859=_0x1420e7;for(const {key:_0x1977ca,value:_0x5000e6}of _0x1a76e9[_0x310859(0x3ee)](_0x5b5255)){for(const _0x491f3a of _0x1cb61f){const _0x1e290c=_0x50ce29(_0x5000e6,_0x491f3a[_0x310859(0x5e7)]);if(!_0x252b25(_0x1e290c))continue;_0x507175[_0x310859(0x512)](_0x42491a(_0x491f3a[_0x310859(0x469)],_0x1e290c,_0x5b5255,_0x1977ca,_0x491f3a[_0x310859(0x5e7)]),0x1),_0x3f89a4++;}}});}return{'dropped':_0x5668cd,'written':_0x3f89a4};}return okdbEnvRefs={'getFieldValue':_0x50ce29,'setFieldValue':_0x29690d,'refIndexKey':_0x42491a,'isRefTarget':_0x252b25,'cascadeVisitKey':_0x477949,'extractRefs':_0x33d7ce,'rebuildRefCache':_0x3b247b,'getTypeRefs':_0x2644e9,'getIncomingRefs':_0x26fddb,'getRefIndexDb':_0x43c18a,'updateRefIndex':_0x45e764,'removeRefIndexEntries':_0x455ad3,'refIndexRowsFor':_0x37c6a2,'rebuildRefIndex':_0x5b799e,'checkForeignKeys':_0x408a31,'processDeleteCascade':_0x303b77,'setRefViolation':_0xa49407,'clearRefViolation':_0x3dd8b9,'clearRefViolationsForKey':_0x564cf2,'clearRefViolationsForType':_0x446b07,'syncRefIndex':_0x302daf},okdbEnvRefs;}var hasRequiredOkdbSubscriptionsStore;function requireOkdbSubscriptionsStore(){const _0x2d5e1a=_0x5c70f8;if(hasRequiredOkdbSubscriptionsStore)return okdbSubscriptionsStore[_0x2d5e1a(0x28e)];hasRequiredOkdbSubscriptionsStore=0x1;const _0x498c60=require$$0$4,{assertFilterAllowed:_0x35e3ba}=requireOkdbQueryFilter(),{rebuildRefCache:_0x2564a4}=requireOkdbEnvRefs(),_0x445fa2=_0x2d5e1a(0x3cf),_0x4e5e55=_0x2d5e1a(0x868),_0x42eedb='interest',_0x473066=[_0x2d5e1a(0x5c7),'type',_0x2d5e1a(0x82f)],_0x35a0e3=[_0x2d5e1a(0x5c7),'type'],_0xc444dd=0x5a*0x3e8,_0x5637d=Math[_0x2d5e1a(0x481)](_0xc444dd/0x2);class _0x253fe7{constructor(_0x45dda1,_0x56a0c8={}){const _0x389b1b=_0x2d5e1a;this[_0x389b1b(0x61e)]=_0x45dda1,this[_0x389b1b(0x60a)]=Number[_0x389b1b(0x85e)](_0x56a0c8['ttlMs'])&&_0x56a0c8[_0x389b1b(0x60a)]>0x0?_0x56a0c8[_0x389b1b(0x60a)]:_0xc444dd,this[_0x389b1b(0x8c1)]=Number[_0x389b1b(0x85e)](_0x56a0c8['refreshThresholdMs'])?_0x56a0c8[_0x389b1b(0x8c1)]:_0x5637d,this[_0x389b1b(0x496)]=null;}async[_0x2d5e1a(0x260)](){const _0xc18a0a=_0x2d5e1a;if(this[_0xc18a0a(0x496)])return this[_0xc18a0a(0x496)];const _0x327e1d=await this[_0xc18a0a(0x61e)][_0xc18a0a(0x3d0)](_0x445fa2,{'sync':![]});return await _0x327e1d[_0xc18a0a(0x1be)](_0x4e5e55,{'indexes':[_0x35a0e3]}),await _0x327e1d['ensureType'](_0x42eedb),_0x327e1d[_0xc18a0a(0x28f)](_0x42eedb)?_0x2564a4(_0x327e1d):await _0x327e1d['setSchema'](_0x42eedb,{'definition':{'type':'object','properties':{'sessionId':{'type':_0xc18a0a(0x2b1),'ref':{'type':_0x4e5e55,'onDelete':_0xc18a0a(0x2f9)}},'dataEnv':{'type':'string'},'type':{'type':'string'},'key':{'type':'string'}},'required':[_0xc18a0a(0x576),_0xc18a0a(0x5c7),'type',_0xc18a0a(0x82f)]},'enforce':!![]}),await _0x327e1d[_0xc18a0a(0x1be)](_0x42eedb,{'indexes':[_0x473066]}),await _0x327e1d['indexReady'](_0x42eedb,_0x473066),await _0x327e1d[_0xc18a0a(0x864)](_0x4e5e55,_0x35a0e3),this[_0xc18a0a(0x496)]=_0x327e1d,_0x327e1d;}['_env'](){const _0xa350b6=_0x2d5e1a;if(!this['_sub'])throw new Error(_0xa350b6(0x705));return this['_sub'];}async['createSession']({sessionId:_0x32c17e,dataEnv:_0x52fabb,type:_0x2a4703,filter:filter=null,ttlMs:_0x2e0301}={}){const _0x3dce7a=_0x2d5e1a,_0x4bd5cb=this[_0x3dce7a(0x4dd)]();_0x35e3ba(filter);const _0x5640d6=_0x32c17e!=null&&String(_0x32c17e)['length']>0x0?String(_0x32c17e):_0x498c60['randomUUID'](),_0x134b42=Number[_0x3dce7a(0x85e)](_0x2e0301)&&_0x2e0301>0x0?_0x2e0301:this[_0x3dce7a(0x60a)],_0x5bdad7=Date['now'](),_0xfd213={'sessionId':_0x5640d6,'dataEnv':_0x52fabb,'type':_0x2a4703,'filter':filter??null,'version':0x0,'createdAt':_0x5bdad7,'expiresAt':_0x5bdad7+_0x134b42};return await _0x4bd5cb['put'](_0x4e5e55,_0x5640d6,_0xfd213,{'ttl':_0x134b42}),{'sessionId':_0x5640d6,'version':0x0};}[_0x2d5e1a(0x5ec)](_0x40df6b){if(!_0x40df6b)return null;return this['_env']()['get'](_0x4e5e55,String(_0x40df6b))??null;}async['closeSession'](_0x44ce6f){const _0x169b26=_0x2d5e1a,_0x320a1e=this[_0x169b26(0x4dd)](),_0xa4b40e=String(_0x44ce6f);if(!_0x320a1e[_0x169b26(0x309)](_0x4e5e55,_0xa4b40e))return![];return await _0x320a1e[_0x169b26(0x504)](_0x4e5e55,_0xa4b40e),!![];}async[_0x2d5e1a(0x286)](_0x206d63){const _0x3f84e0=_0x2d5e1a,_0xfca2da=this[_0x3f84e0(0x4dd)](),_0x32749d=String(_0x206d63),_0x247b8=_0xfca2da['get'](_0x4e5e55,_0x32749d);if(!_0x247b8)return null;const _0x407bf2=(Number['isFinite'](_0x247b8[_0x3f84e0(0x1d0)])?_0x247b8['version']:0x0)+0x1;return await _0xfca2da[_0x3f84e0(0x253)](_0x4e5e55,_0x32749d,{..._0x247b8,'version':_0x407bf2}),_0x407bf2;}async[_0x2d5e1a(0x534)](_0x6051b9,_0x5c42ee){const _0x3cc765=_0x2d5e1a,_0x2a0541=this['_env'](),_0x2c1ff8=String(_0x6051b9);if(!_0x2a0541['get'](_0x4e5e55,_0x2c1ff8))return![];const _0x3b9f7b=Number[_0x3cc765(0x85e)](_0x5c42ee)&&_0x5c42ee>0x0?_0x5c42ee:this['ttlMs'];if(this[_0x3cc765(0x254)](_0x2c1ff8))return![];return await _0x2a0541[_0x3cc765(0x246)](_0x4e5e55,_0x2c1ff8,_0x3b9f7b),await this['_syncExpiresAtField'](_0x2c1ff8,_0x3b9f7b),!![];}async['refreshTtlBatch'](_0x1f9348,_0x20e045){const _0x5a161e=_0x2d5e1a,_0x57b9bb=this[_0x5a161e(0x4dd)](),_0x1e6755=Number[_0x5a161e(0x85e)](_0x20e045)&&_0x20e045>0x0?_0x20e045:this[_0x5a161e(0x60a)],_0x298568=Date[_0x5a161e(0x8cc)](),_0xde9949=[];for(const _0x1f00d2 of _0x1f9348||[]){const _0x2df00e=String(_0x1f00d2),_0x3dfb8c=_0x57b9bb[_0x5a161e(0x309)](_0x4e5e55,_0x2df00e);if(!_0x3dfb8c)continue;if(this[_0x5a161e(0x254)](_0x2df00e,_0x298568))continue;_0xde9949[_0x5a161e(0x28d)]({'id':_0x2df00e,'cur':_0x3dfb8c});}if(_0xde9949[_0x5a161e(0x68a)]===0x0)return[];return await _0x57b9bb[_0x5a161e(0x4b8)](async _0x5e0501=>{const _0x1fc2a7=_0x5a161e;for(const {id:_0xe2e86c,cur:_0x7f027b}of _0xde9949){_0x5e0501[_0x1fc2a7(0x253)](_0x4e5e55,_0xe2e86c,{..._0x7f027b,'expiresAt':_0x298568+_0x1e6755}),_0x5e0501[_0x1fc2a7(0x246)](_0x4e5e55,_0xe2e86c,_0x1e6755);}}),_0xde9949[_0x5a161e(0x35e)](_0x2f9e20=>_0x2f9e20['id']);}['_isFar'](_0x27bd31,_0x33b3b2=Date[_0x2d5e1a(0x8cc)]()){const _0x4d880e=_0x2d5e1a,_0x5b9922=this['_env']()[_0x4d880e(0x40b)](_0x4e5e55,String(_0x27bd31));if(!_0x5b9922)return![];return _0x5b9922[_0x4d880e(0x49f)]-_0x33b3b2>this[_0x4d880e(0x8c1)];}async[_0x2d5e1a(0x643)](_0xb5a302,_0x19b4b0){const _0x2639a8=_0x2d5e1a,_0x4446f4=this['_env'](),_0x1b2461=_0x4446f4[_0x2639a8(0x309)](_0x4e5e55,_0xb5a302);if(!_0x1b2461)return;await _0x4446f4[_0x2639a8(0x253)](_0x4e5e55,_0xb5a302,{..._0x1b2461,'expiresAt':Date['now']()+_0x19b4b0});}async[_0x2d5e1a(0x36b)](_0x523a38,_0x22734e,_0x284438){const _0x3e9788=_0x2d5e1a,_0x5c6a23=this[_0x3e9788(0x4dd)](),_0x5a47f6=String(_0x523a38),_0x28d4a7=_0x5c6a23['get'](_0x4e5e55,_0x5a47f6);if(!_0x28d4a7)throw new Error(_0x3e9788(0x1e7)+_0x5a47f6);const _0xb5e54=_0x498c60[_0x3e9788(0x809)]();return await _0x5c6a23[_0x3e9788(0x253)](_0x42eedb,_0xb5e54,{'sessionId':_0x5a47f6,'dataEnv':String(_0x28d4a7[_0x3e9788(0x5c7)]),'type':String(_0x22734e),'key':String(_0x284438)}),_0xb5e54;}async[_0x2d5e1a(0x7e1)](_0x2389e2,_0x14a0ad,{retries:retries=0x8}={}){const _0x4d4689=_0x2d5e1a,_0x5b23a1=this[_0x4d4689(0x4dd)]();for(let _0x34f176=0x0;;_0x34f176++){const _0x2f86c9=_0x5b23a1['getEntry'](_0x4e5e55,_0x2389e2);if(!_0x2f86c9)return null;const _0x21c1ca=_0x2f86c9[_0x4d4689(0x2ef)],_0x36c15d=(Number[_0x4d4689(0x85e)](_0x21c1ca[_0x4d4689(0x1d0)])?_0x21c1ca[_0x4d4689(0x1d0)]:0x0)+0x1,{sessionPatch:sessionPatch={},applyInterests:applyInterests=null}=_0x14a0ad(_0x21c1ca,_0x5b23a1)||{};try{return await _0x5b23a1[_0x4d4689(0x4b8)](async _0x45545d=>{const _0x9ea8e6=_0x4d4689;applyInterests?.(_0x45545d),_0x45545d[_0x9ea8e6(0x253)](_0x4e5e55,_0x2389e2,{..._0x21c1ca,...sessionPatch,'version':_0x36c15d},{'ifVersion':_0x2f86c9[_0x9ea8e6(0x1d0)]});}),_0x36c15d;}catch(_0x140fd3){if(_0x140fd3?.['code']===_0x4d4689(0x721)&&_0x34f176<retries)continue;throw _0x140fd3;}}}async[_0x2d5e1a(0x69e)](_0x177c42,{add:add=[],remove:remove=[]}={}){const _0x421ebd=String(_0x177c42);return this['_commitSessionMutation'](_0x421ebd,(_0x2c71a2,_0x4ba5a6)=>{const _0x417eda=_0x52a3,_0x4ad655=String(_0x2c71a2[_0x417eda(0x5c7)]),_0x17e1fc=new Set((remove||[])[_0x417eda(0x35e)](_0x3e44d2=>String(_0x3e44d2[_0x417eda(0x45d)])+'\x00'+String(_0x3e44d2[_0x417eda(0x82f)]))),_0x35412c=[];if(_0x17e1fc[_0x417eda(0x8d2)]>0x0)for(const {key:_0x1e4d27,value:_0x34d2ae}of _0x4ba5a6[_0x417eda(0x3ee)](_0x42eedb,{})){if(!_0x34d2ae||_0x34d2ae[_0x417eda(0x576)]!==_0x421ebd)continue;if(_0x17e1fc[_0x417eda(0x571)](_0x34d2ae[_0x417eda(0x45d)]+'\x00'+_0x34d2ae['key']))_0x35412c['push'](_0x1e4d27);}const _0x4e1aac=(add||[])[_0x417eda(0x35e)](_0x27ab2f=>({'id':_0x498c60['randomUUID'](),'type':String(_0x27ab2f[_0x417eda(0x45d)]),'key':String(_0x27ab2f['key'])}));return{'applyInterests':_0x1460f1=>{const _0x315d64=_0x417eda;for(const _0x2a1f14 of _0x35412c)_0x1460f1[_0x315d64(0x504)](_0x42eedb,_0x2a1f14);for(const _0x41817e of _0x4e1aac)_0x1460f1[_0x315d64(0x253)](_0x42eedb,_0x41817e['id'],{'sessionId':_0x421ebd,'dataEnv':_0x4ad655,'type':_0x41817e['type'],'key':_0x41817e[_0x315d64(0x82f)]});}};});}async['setFilter'](_0x5343a0,_0x2d60eb){const _0x3d99ae=_0x2d5e1a;_0x35e3ba(_0x2d60eb);const _0x298a8f=String(_0x5343a0);return this[_0x3d99ae(0x7e1)](_0x298a8f,()=>({'sessionPatch':{'filter':_0x2d60eb??null}}));}async['removeInterest'](_0x5a497f,_0x43f932,_0x30e925){const _0x1c2eac=_0x2d5e1a,_0x7a3762=this[_0x1c2eac(0x4dd)](),_0x2f8bf1=String(_0x5a497f),_0x5432fe=String(_0x43f932),_0x5f46e5=String(_0x30e925),_0x1786df=[];for(const {key:_0x4d1e79,value:_0x14aba9}of _0x7a3762[_0x1c2eac(0x3ee)](_0x42eedb,{})){if(_0x14aba9&&_0x14aba9[_0x1c2eac(0x576)]===_0x2f8bf1&&_0x14aba9[_0x1c2eac(0x45d)]===_0x5432fe&&_0x14aba9[_0x1c2eac(0x82f)]===_0x5f46e5)_0x1786df[_0x1c2eac(0x28d)](_0x4d1e79);}for(const _0x1c9953 of _0x1786df)await _0x7a3762['remove'](_0x42eedb,_0x1c9953);return _0x1786df[_0x1c2eac(0x68a)];}async['replaceInterests'](_0x5dd80f,_0x4c85a3){const _0x51efc5=_0x2d5e1a,_0x556f55=String(_0x5dd80f);return this[_0x51efc5(0x7e1)](_0x556f55,(_0x9d320a,_0x3d79e2)=>{const _0x2dfbe7=_0x51efc5,_0x44a8fa=String(_0x9d320a[_0x2dfbe7(0x5c7)]),_0x2aa355=[];for(const {key:_0x437f15,value:_0x552bcf}of _0x3d79e2[_0x2dfbe7(0x3ee)](_0x42eedb,{})){if(_0x552bcf&&_0x552bcf[_0x2dfbe7(0x576)]===_0x556f55)_0x2aa355[_0x2dfbe7(0x28d)](_0x437f15);}const _0x38c27b=(_0x4c85a3||[])[_0x2dfbe7(0x35e)](_0x2fa8d9=>({'id':_0x498c60[_0x2dfbe7(0x809)](),'type':String(_0x2fa8d9[_0x2dfbe7(0x45d)]),'key':String(_0x2fa8d9[_0x2dfbe7(0x82f)])}));return{'applyInterests':_0x580831=>{const _0x2546a2=_0x2dfbe7;for(const _0xa98299 of _0x2aa355)_0x580831[_0x2546a2(0x504)](_0x42eedb,_0xa98299);for(const _0x466d8a of _0x38c27b)_0x580831['put'](_0x42eedb,_0x466d8a['id'],{'sessionId':_0x556f55,'dataEnv':_0x44a8fa,'type':_0x466d8a[_0x2546a2(0x45d)],'key':_0x466d8a[_0x2546a2(0x82f)]});}};});}[_0x2d5e1a(0x2e9)](_0x188417,_0x38bd32,_0x9b0a4c){const _0x16bfb4=_0x2d5e1a,_0x4dad43=this[_0x16bfb4(0x4dd)](),_0x5437e5=String(_0x188417),_0x1ec216=String(_0x38bd32),_0x589946=String(_0x9b0a4c),_0xed19a7=new Set();for(const {value:_0x4e5246}of _0x4dad43[_0x16bfb4(0x5c4)](_0x42eedb,_0x473066,{'start':[_0x5437e5,_0x1ec216,_0x589946],'end':[_0x5437e5,_0x1ec216,_0x589946,'']})){if(_0x4e5246&&_0x4e5246[_0x16bfb4(0x576)])_0xed19a7['add'](_0x4e5246[_0x16bfb4(0x576)]);}return[..._0xed19a7];}[_0x2d5e1a(0x62b)](_0xe2f96a,_0x131eda){const _0x25c351=_0x2d5e1a,_0x3ccec1=this[_0x25c351(0x4dd)](),_0xe6009d=String(_0xe2f96a),_0x37e498=String(_0x131eda),_0x533b9a=[];for(const {value:_0x5e09b3}of _0x3ccec1[_0x25c351(0x5c4)](_0x4e5e55,_0x35a0e3,{'start':[_0xe6009d,_0x37e498],'end':[_0xe6009d,_0x37e498,'\uffff']})){if(!_0x5e09b3||_0x5e09b3[_0x25c351(0x5c7)]!==_0xe6009d||_0x5e09b3[_0x25c351(0x45d)]!==_0x37e498)continue;if(_0x5e09b3[_0x25c351(0x4e1)]==null)continue;_0x533b9a[_0x25c351(0x28d)]({'sessionId':_0x5e09b3[_0x25c351(0x576)],'filter':_0x5e09b3[_0x25c351(0x4e1)],'version':Number[_0x25c351(0x85e)](_0x5e09b3[_0x25c351(0x1d0)])?_0x5e09b3[_0x25c351(0x1d0)]:0x0});}return _0x533b9a;}async[_0x2d5e1a(0x371)](){return this['_env']()['sweepExpiredTTL']();}}return okdbSubscriptionsStore['exports']=_0x253fe7,okdbSubscriptionsStore['exports'][_0x2d5e1a(0x75c)]=_0x445fa2,okdbSubscriptionsStore[_0x2d5e1a(0x28e)]['T_SESSION']=_0x4e5e55,okdbSubscriptionsStore['exports']['T_INTEREST']=_0x42eedb,okdbSubscriptionsStore[_0x2d5e1a(0x28e)][_0x2d5e1a(0x742)]=_0x473066,okdbSubscriptionsStore[_0x2d5e1a(0x28e)]['SESSION_TYPE_INDEX']=_0x35a0e3,okdbSubscriptionsStore[_0x2d5e1a(0x28e)]['DEFAULT_TTL_MS']=_0xc444dd,okdbSubscriptionsStore[_0x2d5e1a(0x28e)];}var version=_0x5c70f8(0x4e7),require$$29={'version':version},okdbEnginesEnums,hasRequiredOkdbEnginesEnums;function requireOkdbEnginesEnums(){const _0x14ed76=_0x5c70f8;if(hasRequiredOkdbEnginesEnums)return okdbEnginesEnums;hasRequiredOkdbEnginesEnums=0x1;const _0xa45269=_0x14ed76(0x665),_0x51954b=0xa,_0x4d5761=Object[_0x14ed76(0x202)]({'CREATED':'created','ONLINE':'online','STOPPED':_0x14ed76(0x5a6),'INACTIVE':_0x14ed76(0x5cc),'ERROR':_0x14ed76(0x62e),'REMOVED':_0x14ed76(0x7cc)}),_0x3b993b=Object[_0x14ed76(0x202)]({'STARTED':_0x14ed76(0x3c4),'STOPPED':_0x14ed76(0x5a6),'ERROR':_0x14ed76(0x62e),'INSTALLED':'installed','UNINSTALLED':_0x14ed76(0x363)}),_0xc993c4=Object[_0x14ed76(0x202)](new Set([_0x4d5761[_0x14ed76(0x696)],_0x4d5761['STOPPED'],_0x4d5761[_0x14ed76(0x6a9)],_0x4d5761[_0x14ed76(0x7d8)]]));function _0x2069b1(_0x40f8c3){const _0x673209=_0x14ed76;return _0x40f8c3?.['enabled']===![]?_0x4d5761[_0x673209(0x8db)]:_0x673209(0x35f);}return okdbEnginesEnums={'TYPE_ENGINES':_0xa45269,'MAX_UPDATE_RETRIES':_0x51954b,'ENGINE_STATUS':_0x4d5761,'ENGINE_EVENTS':_0x3b993b,'UPDATABLE_STATUSES':_0xc993c4,'durableOnlyEngineState':_0x2069b1},okdbEnginesEnums;}var enums,hasRequiredEnums;function requireEnums(){const _0x2ea3c4=_0x5c70f8;if(hasRequiredEnums)return enums;hasRequiredEnums=0x1;const _0x2676a7=Object['freeze']({'EMBEDDER':_0x2ea3c4(0x4c1),'INDEXER':'indexer','SEARCH':_0x2ea3c4(0x636),'WORKER':_0x2ea3c4(0x590)}),_0x38d79a=Object[_0x2ea3c4(0x202)]({'PENDING':_0x2ea3c4(0x321),'DONE':_0x2ea3c4(0x588),'FAILED':'failed','DELETED':_0x2ea3c4(0x7c4)}),_0x3014e4=Object[_0x2ea3c4(0x202)]({'INDEXER_READY':_0x2ea3c4(0x40e),'INDEXER_FLUSHED':'embeddings:indexer:flushed','INDEXER_DOC_DONE':_0x2ea3c4(0x592),'INDEXER_DOC_FAILED':'embeddings:indexer:doc:failed','INDEXER_DOC_QUEUED':_0x2ea3c4(0x849),'STRATEGY_REGISTERED':'embeddings:strategy:registered','DOC_STATUS_CHANGE':_0x2ea3c4(0x27f),'PIPELINE_READY':_0x2ea3c4(0x250)}),_0x452fe9=Object[_0x2ea3c4(0x202)]({'MODELS':_0x2ea3c4(0x270),'DOC_STATUS_PREFIX':'doc_status:','VEC_PREFIX':_0x2ea3c4(0x81f)});return enums={'ENGINE_TYPES':_0x2676a7,'INDEXER_DOC_STATUS':_0x38d79a,'EMBEDDINGS_EVENTS':_0x3014e4,'INTERNAL_TYPES':_0x452fe9},enums;}var okdbQueueValidate,hasRequiredOkdbQueueValidate;function requireOkdbQueueValidate(){const _0x1ab742=_0x5c70f8;if(hasRequiredOkdbQueueValidate)return okdbQueueValidate;hasRequiredOkdbQueueValidate=0x1;const _0x374427=Object[_0x1ab742(0x202)]({'PENDING':_0x1ab742(0x321),'RUNNING':'running','DONE':'done','FAILED':_0x1ab742(0x697)}),_0xded7c9=Object[_0x1ab742(0x202)]({'ACTIVE':_0x1ab742(0x537),'PAUSED':'paused','DRAINING':'draining'}),_0xb558ff=Object[_0x1ab742(0x202)]({'ENQUEUED':_0x1ab742(0x662),'DONE':_0x1ab742(0x281),'FAILED':_0x1ab742(0x745),'RETRY':_0x1ab742(0x2c7),'RESCHEDULED':_0x1ab742(0x7d0),'REMOVED':_0x1ab742(0x284),'RECONCILED':'queue:reconciled','CLEAR_PROGRESS':_0x1ab742(0x236),'CLEAR_DONE':'queue:clear-done','LOG':'queue:log'}),_0x28960a=Object['freeze'](['debug',_0x1ab742(0x7e2),_0x1ab742(0x2f1),_0x1ab742(0x62e)]),_0x5aff6c=0x1,_0x41e756=0xc350,_0x1b78e7=0x400,_0x118536=0x800;function _0x853f80(_0x28f957){const _0x23a5fb=_0x1ab742;return _0x28f957!=null&&typeof _0x28f957===_0x23a5fb(0x559)&&(_0x28f957['constructor']===Object||Object['getPrototypeOf'](_0x28f957)===null);}function _0xa6a2cf(_0x5f084b,_0xee725b,_0x4c76c8,_0x5db536){const _0x2bed12=_0x1ab742;if(_0x5f084b==null)return _0xee725b;const _0x32235c=Number(_0x5f084b);if(!Number[_0x2bed12(0x85e)](_0x32235c))return _0xee725b;const _0x2f969b=Math[_0x2bed12(0x2fe)](_0x32235c);if(_0x2f969b<_0x4c76c8)return _0x4c76c8;if(_0x2f969b>_0x5db536)return _0x5db536;return _0x2f969b;}function _0x58c13d(_0x3d6242){const _0xd37b2f=_0x1ab742;if(!_0x3d6242)return[];if(typeof _0x3d6242===_0xd37b2f(0x2b1))_0x3d6242=[_0x3d6242];if(!Array[_0xd37b2f(0x439)](_0x3d6242))throw new Error(_0xd37b2f(0x8dc));const _0x350975=[],_0x4b79f5=new Set();for(const _0x32b066 of _0x3d6242){if(_0x32b066==null)continue;const _0xf1968=String(_0x32b066)[_0xd37b2f(0x7a8)]();if(!_0xf1968)continue;if(_0xf1968['length']>0x80)throw new Error(_0xd37b2f(0x1fc));if(_0x4b79f5[_0xd37b2f(0x571)](_0xf1968))continue;_0x4b79f5[_0xd37b2f(0x280)](_0xf1968),_0x350975['push'](_0xf1968);if(_0x350975['length']>=0x20)break;}return _0x350975;}function _0x55c483(_0x17cf67){const _0x41de9b=_0x1ab742;if(_0x17cf67==null)return null;const _0x5b5d51=String(_0x17cf67)[_0x41de9b(0x7a8)]();if(!_0x5b5d51)return null;if(_0x5b5d51['length']>0x80)throw new Error(_0x41de9b(0x232));return _0x5b5d51;}function _0x3ba02a(_0x4fd3e5,_0x252483=0x1){const _0x4a2156=_0x1ab742;if(_0x4fd3e5==null)return[];if(typeof _0x4fd3e5===_0x4a2156(0x2b1)){const _0x372991=_0x55c483(_0x4fd3e5);if(!_0x372991)return[];return[{'id':_0x372991,'tokens':_0x252483}];}if(!Array['isArray'](_0x4fd3e5))throw new Error(_0x4a2156(0x41d));const _0x20a0f7=[],_0x4b02b2=new Set();for(const _0x539ecc of _0x4fd3e5){let _0x9c69b6,_0xe951b3;if(Array['isArray'](_0x539ecc))[_0x9c69b6,_0xe951b3]=_0x539ecc;else{if(_0x539ecc&&typeof _0x539ecc===_0x4a2156(0x559))({id:_0x9c69b6,tokens:_0xe951b3}=_0x539ecc);else{if(typeof _0x539ecc===_0x4a2156(0x2b1))_0x9c69b6=_0x539ecc,_0xe951b3=_0x252483;else continue;}}_0x9c69b6=_0x55c483(_0x9c69b6);if(!_0x9c69b6)continue;const _0x28ade2=_0xe951b3==null?_0x252483:Math['trunc'](Number(_0xe951b3));if(!Number[_0x4a2156(0x85e)](_0x28ade2)||_0x28ade2<0x1)throw new Error(_0x4a2156(0x4c4)+_0x9c69b6+_0x4a2156(0x466));if(_0x28ade2>0xf4240)throw new Error(_0x4a2156(0x4c4)+_0x9c69b6+_0x4a2156(0x255));if(_0x4b02b2[_0x4a2156(0x571)](_0x9c69b6))throw new Error('duplicate\x20bucket:\x20'+_0x9c69b6);_0x4b02b2[_0x4a2156(0x280)](_0x9c69b6),_0x20a0f7[_0x4a2156(0x28d)]({'id':_0x9c69b6,'tokens':_0x28ade2});}return _0x20a0f7;}function _0x4c701c(_0x59fe79,_0xe6f1f=0x400){const _0x54b019=_0x1ab742;if(_0x59fe79==null)return null;const _0x201215=String(_0x59fe79)[_0x54b019(0x1f7)](0x0,_0xe6f1f);return _0x201215||null;}function _0x44c41c(_0x498729){const _0x4c586d=_0x1ab742;if(_0x498729==null)return null;if(_0x498729[_0x4c586d(0x82f)]!==undefined&&_0x498729[_0x4c586d(0x2ef)]!==undefined)return _0x498729;return{'key':_0x498729['id']??null,'value':_0x498729};}function _0x5ef880(_0x64286e){const _0x2035cd=_0x1ab742;let _0x2d0842=_0x64286e;if(typeof _0x64286e===_0x2035cd(0x2b1))_0x2d0842={'message':_0x64286e};if(!_0x853f80(_0x2d0842))throw new Error(_0x2035cd(0x585));const _0x87294d=_0x2d0842[_0x2035cd(0x3a3)]==null?_0x2035cd(0x7e2):String(_0x2d0842[_0x2035cd(0x3a3)])[_0x2035cd(0x5af)]();if(!_0x28960a[_0x2035cd(0x495)](_0x87294d))throw new Error(_0x2035cd(0x699)+_0x87294d);if(_0x2d0842['message']==null)throw new Error(_0x2035cd(0x598));const _0x17f7fb=String(_0x2d0842[_0x2035cd(0x211)])['slice'](0x0,_0x1b78e7);let _0x48931a=null;if(_0x2d0842[_0x2035cd(0x376)]!=null){if(!_0x853f80(_0x2d0842[_0x2035cd(0x376)]))throw new Error('log\x20entry\x20fields\x20must\x20be\x20object|null');if(JSON[_0x2035cd(0x35a)](_0x2d0842[_0x2035cd(0x376)])[_0x2035cd(0x68a)]>_0x118536)throw new Error(_0x2035cd(0x317));_0x48931a=_0x2d0842['fields'];}return{'level':_0x87294d,'message':_0x17f7fb,'fields':_0x48931a,'ts':Date['now']()};}function _0x1c175f(_0x3ea50b){const _0x2d9138=_0x1ab742;if(_0x3ea50b==null)return;if(!Number[_0x2d9138(0x4ea)](_0x3ea50b)||_0x3ea50b<_0x5aff6c||_0x3ea50b>_0x41e756)throw new Error(_0x2d9138(0x778)+_0x5aff6c+',\x20'+_0x41e756+']');}function _0x2d1f6d(_0x127999){const _0x17b1d5=_0x1ab742;if(!_0x853f80(_0x127999))throw new Error(_0x17b1d5(0x6ca));if(typeof _0x127999['id']!==_0x17b1d5(0x2b1)||_0x127999['id'][_0x17b1d5(0x68a)]<0x8)throw new Error(_0x17b1d5(0x436));if(typeof _0x127999['type']!==_0x17b1d5(0x2b1)||!_0x127999[_0x17b1d5(0x45d)])throw new Error(_0x17b1d5(0x21d));if(!Object[_0x17b1d5(0x5d0)](_0x374427)[_0x17b1d5(0x495)](_0x127999[_0x17b1d5(0x717)]))throw new Error(_0x17b1d5(0x301)+_0x127999['status']);for(const _0x5b604e of['when',_0x17b1d5(0x258),_0x17b1d5(0x3e8)]){if(typeof _0x127999[_0x5b604e]!==_0x17b1d5(0x6e7)||!Number[_0x17b1d5(0x85e)](_0x127999[_0x5b604e]))throw new Error(_0x17b1d5(0x5e8)+_0x5b604e+_0x17b1d5(0x3bd));}if(_0x127999['finished']!=null&&(typeof _0x127999[_0x17b1d5(0x838)]!==_0x17b1d5(0x6e7)||!Number['isFinite'](_0x127999[_0x17b1d5(0x838)])))throw new Error(_0x17b1d5(0x4f3));if(!Number['isInteger'](_0x127999[_0x17b1d5(0x26e)])||_0x127999[_0x17b1d5(0x26e)]<0x0)throw new Error('job.tries\x20must\x20be\x20non-negative\x20int');if(!Number[_0x17b1d5(0x4ea)](_0x127999[_0x17b1d5(0x3d4)]))throw new Error(_0x17b1d5(0x7c7));if(_0x127999[_0x17b1d5(0x73e)]!==null&&_0x127999[_0x17b1d5(0x73e)]!==Infinity&&(!Number['isInteger'](_0x127999[_0x17b1d5(0x73e)])||_0x127999[_0x17b1d5(0x73e)]<0x1))throw new Error(_0x17b1d5(0x86e));if(_0x127999[_0x17b1d5(0x49a)]!=null&&(!Number['isInteger'](_0x127999[_0x17b1d5(0x49a)])||_0x127999[_0x17b1d5(0x49a)]<0x0))throw new Error(_0x17b1d5(0x4b4));if(_0x127999[_0x17b1d5(0x60c)]!=null&&(typeof _0x127999[_0x17b1d5(0x60c)]!==_0x17b1d5(0x6e7)||_0x127999[_0x17b1d5(0x60c)]<0x1))throw new Error('job.backoff_multiplier\x20must\x20be\x20number\x20>=\x201');if(_0x127999[_0x17b1d5(0x3ca)]!=null&&typeof _0x127999[_0x17b1d5(0x3ca)]!==_0x17b1d5(0x2b1))throw new Error(_0x17b1d5(0x42d));if(_0x127999[_0x17b1d5(0x68e)]!=null&&(typeof _0x127999[_0x17b1d5(0x68e)]!==_0x17b1d5(0x6e7)||!Number[_0x17b1d5(0x85e)](_0x127999[_0x17b1d5(0x68e)])))throw new Error(_0x17b1d5(0x5aa));if(_0x127999[_0x17b1d5(0x3f4)]!=null&&typeof _0x127999['bucket']!==_0x17b1d5(0x2b1))throw new Error(_0x17b1d5(0x323));if(_0x127999[_0x17b1d5(0x408)]!=null&&(!Number[_0x17b1d5(0x4ea)](_0x127999[_0x17b1d5(0x408)])||_0x127999[_0x17b1d5(0x408)]<0x1))throw new Error(_0x17b1d5(0x1c0));if(_0x127999[_0x17b1d5(0x55e)]!=null){if(!Array[_0x17b1d5(0x439)](_0x127999['buckets']))throw new Error('job.buckets\x20must\x20be\x20array|null');for(const _0x34765a of _0x127999[_0x17b1d5(0x55e)]){if(!_0x34765a||typeof _0x34765a!=='object')throw new Error(_0x17b1d5(0x652));if(typeof _0x34765a['id']!==_0x17b1d5(0x2b1)||!_0x34765a['id'][_0x17b1d5(0x7a8)]())throw new Error('job.buckets[].id\x20must\x20be\x20non-empty\x20string');if(!Number['isInteger'](_0x34765a[_0x17b1d5(0x2ad)])||_0x34765a[_0x17b1d5(0x2ad)]<0x1)throw new Error('job.buckets[].tokens\x20must\x20be\x20int\x20>=\x201');}}if(_0x127999[_0x17b1d5(0x2ce)]!=null&&typeof _0x127999[_0x17b1d5(0x2ce)]!=='string')throw new Error(_0x17b1d5(0x851));if(_0x127999[_0x17b1d5(0x89d)]!=null&&typeof _0x127999[_0x17b1d5(0x89d)]!==_0x17b1d5(0x2b1))throw new Error(_0x17b1d5(0x4a1));if(!Array['isArray'](_0x127999['tags']))throw new Error(_0x17b1d5(0x73b));if(_0x127999[_0x17b1d5(0x6d1)]!=null&&typeof _0x127999[_0x17b1d5(0x6d1)]!=='string')throw new Error(_0x17b1d5(0x1f8));if(_0x127999['status_code']!=null&&typeof _0x127999[_0x17b1d5(0x25f)]!==_0x17b1d5(0x2b1))throw new Error(_0x17b1d5(0x245));if(_0x127999[_0x17b1d5(0x3dc)]!=null&&typeof _0x127999[_0x17b1d5(0x3dc)]!=='string')throw new Error(_0x17b1d5(0x6bb));if(_0x127999['error_stack']!=null&&typeof _0x127999[_0x17b1d5(0x39d)]!=='string')throw new Error(_0x17b1d5(0x3b8));for(const _0x394913 of['done_ttl',_0x17b1d5(0x8f0)]){const _0x1c2c2f=_0x127999[_0x394913];if(_0x1c2c2f!=null&&(!Number[_0x17b1d5(0x4ea)](_0x1c2c2f)||_0x1c2c2f<0x0))throw new Error(_0x17b1d5(0x5e8)+_0x394913+_0x17b1d5(0x239));}_0x1c175f(_0x127999[_0x17b1d5(0x751)]);}function _0x966953(_0x375e62){const _0x473644=_0x1ab742;if(!_0x853f80(_0x375e62))throw new Error(_0x473644(0x57f));if(typeof _0x375e62['id']!=='string'||!_0x375e62['id']['trim']())throw new Error('job_type.id\x20must\x20be\x20non-empty\x20string');if(!Object[_0x473644(0x5d0)](_0xded7c9)[_0x473644(0x495)](_0x375e62[_0x473644(0x717)]))throw new Error(_0x473644(0x31c)+_0x375e62[_0x473644(0x717)]);if(_0x375e62[_0x473644(0x51e)]!=null&&(!Number[_0x473644(0x4ea)](_0x375e62[_0x473644(0x51e)])||_0x375e62['max_concurrency']<0x1))throw new Error(_0x473644(0x758));if(_0x375e62[_0x473644(0x2d1)]!=null){if(!_0x853f80(_0x375e62[_0x473644(0x2d1)]))throw new Error('job_type.defaults\x20must\x20be\x20object|null');const _0x1c7802=_0x375e62['defaults'];if(_0x1c7802[_0x473644(0x73e)]!=null&&(!Number[_0x473644(0x4ea)](_0x1c7802[_0x473644(0x73e)])||_0x1c7802['max_tries']<0x1))throw new Error(_0x473644(0x1e4));if(_0x1c7802[_0x473644(0x49a)]!=null&&(!Number[_0x473644(0x4ea)](_0x1c7802[_0x473644(0x49a)])||_0x1c7802[_0x473644(0x49a)]<0x0))throw new Error(_0x473644(0x83d));if(_0x1c7802['backoff_multiplier']!=null&&(typeof _0x1c7802[_0x473644(0x60c)]!=='number'||_0x1c7802['backoff_multiplier']<0x1))throw new Error(_0x473644(0x87c));if(_0x1c7802['priority']!=null&&!Number[_0x473644(0x4ea)](_0x1c7802[_0x473644(0x3d4)]))throw new Error('job_type.defaults.priority\x20must\x20be\x20int\x20or\x20null');if(_0x1c7802[_0x473644(0x31e)]!=null&&(!Number[_0x473644(0x4ea)](_0x1c7802[_0x473644(0x31e)])||_0x1c7802['ttl']<0x0))throw new Error(_0x473644(0x8bc));for(const _0x440d50 of[_0x473644(0x7ee),_0x473644(0x8f0)]){if(_0x1c7802[_0x440d50]!=null&&(!Number[_0x473644(0x4ea)](_0x1c7802[_0x440d50])||_0x1c7802[_0x440d50]<0x0))throw new Error(_0x473644(0x541)+_0x440d50+_0x473644(0x239));}if(_0x1c7802[_0x473644(0x55e)]!=null&&!Array['isArray'](_0x1c7802[_0x473644(0x55e)]))throw new Error(_0x473644(0x487));_0x1c175f(_0x1c7802['logCap']);}if(_0x375e62[_0x473644(0x3f8)]!=null){if(!_0x853f80(_0x375e62['payload_schema']))throw new Error(_0x473644(0x7f5));if(!_0x853f80(_0x375e62[_0x473644(0x3f8)][_0x473644(0x548)]))throw new Error(_0x473644(0x4f8));if(typeof _0x375e62[_0x473644(0x3f8)][_0x473644(0x5d1)]!=='boolean')throw new Error(_0x473644(0x77f));}for(const _0x197cd3 of[_0x473644(0x2f5),_0x473644(0x653)]){if(typeof _0x375e62[_0x197cd3]!==_0x473644(0x6e7)||!Number[_0x473644(0x85e)](_0x375e62[_0x197cd3]))throw new Error(_0x473644(0x2f3)+_0x197cd3+_0x473644(0x3bd));}}function _0x2653ee(_0x4b9b7a){const _0x10cf0a=_0x1ab742;if(!_0x853f80(_0x4b9b7a))throw new Error(_0x10cf0a(0x3c7));if(typeof _0x4b9b7a['id']!==_0x10cf0a(0x2b1)||!_0x4b9b7a['id']['trim']())throw new Error(_0x10cf0a(0x81d));if(!Number[_0x10cf0a(0x4ea)](_0x4b9b7a[_0x10cf0a(0x2ad)])||_0x4b9b7a[_0x10cf0a(0x2ad)]<0x0)throw new Error(_0x10cf0a(0x3df));if(!Number[_0x10cf0a(0x4ea)](_0x4b9b7a[_0x10cf0a(0x52a)])||_0x4b9b7a[_0x10cf0a(0x52a)]<0x0)throw new Error(_0x10cf0a(0x834));if(_0x4b9b7a[_0x10cf0a(0x2ad)]>_0x4b9b7a[_0x10cf0a(0x52a)])throw new Error(_0x10cf0a(0x76f));if(!Number['isInteger'](_0x4b9b7a['refill_amount'])||_0x4b9b7a[_0x10cf0a(0x3fe)]<0x0)throw new Error('bucket.refill_amount\x20must\x20be\x20int\x20>=\x200');if(!Number[_0x10cf0a(0x4ea)](_0x4b9b7a[_0x10cf0a(0x4bf)])||_0x4b9b7a['refill_every']<0x0)throw new Error(_0x10cf0a(0x7be));if(typeof _0x4b9b7a[_0x10cf0a(0x3e8)]!=='number'||!Number[_0x10cf0a(0x85e)](_0x4b9b7a['updated']))throw new Error(_0x10cf0a(0x618));}return okdbQueueValidate={'STATUS':_0x374427,'JOB_TYPE_STATUS':_0xded7c9,'QUEUE_EVENTS':_0xb558ff,'LOG_LEVELS':_0x28960a,'LOG_CAP_MIN':_0x5aff6c,'LOG_CAP_MAX':_0x41e756,'clampInt':_0xa6a2cf,'asNullableString':_0x4c701c,'normalizeResult':_0x44c41c,'normalizeTags':_0x58c13d,'normalizeBucket':_0x55c483,'normalizeBuckets':_0x3ba02a,'normalizeLogEntry':_0x5ef880,'validateJobShape':_0x2d1f6d,'validateJobTypeShape':_0x966953,'validateBucketShape':_0x2653ee},okdbQueueValidate;}var okdbTimers,hasRequiredOkdbTimers;function requireOkdbTimers(){if(hasRequiredOkdbTimers)return okdbTimers;hasRequiredOkdbTimers=0x1;const _0x39ac70=0x2**0x1f-0x1;function _0x425148(_0x5b2b43){if(!(_0x5b2b43>0x0))return 0x0;return _0x5b2b43>_0x39ac70?_0x39ac70:_0x5b2b43;}function _0x2cf8c8(_0xb683d5){return _0xb683d5===Infinity;}return okdbTimers={'MAX_TIMER_DELAY':_0x39ac70,'clampTimerDelay':_0x425148,'isNeverDelay':_0x2cf8c8},okdbTimers;}var okdbChangefeed,hasRequiredOkdbChangefeed;function requireOkdbChangefeed(){const _0x11fa1c=_0x5c70f8;if(hasRequiredOkdbChangefeed)return okdbChangefeed;hasRequiredOkdbChangefeed=0x1;const _0x4a51d5=require$$0$6,{clampTimerDelay:_0x4c9247}=requireOkdbTimers(),{EVENTS:_0x1fbffc,CHANGE_ACTIONS:_0x1b739b}=requireOkdbEnums(),{LOOP:_0xa82aa2}=requireOkdbLoopMonitor(),_0x518365=Number(process.env.OKDB_CHANGEFEED_QUANTUM)||0x3e8,_0x1d4b72=0x5,_0x5b7351=0x2710;class _0x2ac925 extends _0x4a51d5{constructor(_0x4dfa70,_0x243a0e={}){const _0x2cb0b8=_0x52a3;super(),this[_0x2cb0b8(0x61e)]=_0x4dfa70,this[_0x2cb0b8(0x4c9)]=_0x243a0e[_0x2cb0b8(0x484)]??_0x518365,this[_0x2cb0b8(0x24d)]=_0x243a0e['flushDebounce']??_0x1d4b72,this['_dedupeMax']=_0x243a0e['dedupeMax']??_0x5b7351,this['_started']=![],this[_0x2cb0b8(0x259)]=new Map(),this[_0x2cb0b8(0x22c)]=new Map(),this[_0x2cb0b8(0x322)]=new Map(),this[_0x2cb0b8(0x3ae)]=null,this['_draining']=![],this[_0x2cb0b8(0x707)]=new Set(),this[_0x2cb0b8(0x356)]=new Set(),this[_0x2cb0b8(0x5a3)]=_0x39f08c=>this[_0x2cb0b8(0x2e1)](_0x39f08c),this[_0x2cb0b8(0x3d7)]=_0x4a7c75=>this[_0x2cb0b8(0x31a)](_0x4a7c75),this[_0x2cb0b8(0x52e)]=_0x31a505=>this[_0x2cb0b8(0x768)](_0x31a505),this['_onStop']=()=>this[_0x2cb0b8(0x1f1)]();}[_0x11fa1c(0x45c)](){const _0x38ee74=_0x11fa1c;if(this['_started'])return;this[_0x38ee74(0x620)]=!![];for(const [_0x5aa34a,_0x11f963]of this[_0x38ee74(0x61e)][_0x38ee74(0x612)]){if(_0x5aa34a[_0x38ee74(0x38a)]('~'))continue;try{_0x11f963[_0x38ee74(0x378)]();}catch{}}for(const [_0x56fd21,_0x56b9d3]of this[_0x38ee74(0x61e)][_0x38ee74(0x612)]){if(_0x56fd21[_0x38ee74(0x38a)]('~'))continue;try{this[_0x38ee74(0x22c)]['set'](_0x56fd21,_0x56b9d3['getClock']()||0x0);}catch{}}const {events:_0x32077c}=this[_0x38ee74(0x61e)];_0x32077c['on'](_0x1fbffc[_0x38ee74(0x725)],this['_onPending']),_0x32077c['on'](_0x1fbffc[_0x38ee74(0x401)],this[_0x38ee74(0x5a3)]),_0x32077c['on'](_0x1fbffc[_0x38ee74(0x32d)],this[_0x38ee74(0x5a3)]),_0x32077c['on'](_0x1fbffc[_0x38ee74(0x74e)],this['_onItem']),_0x32077c['on'](_0x1fbffc[_0x38ee74(0x207)],this[_0x38ee74(0x52e)]),_0x32077c['once'](_0x1fbffc['SYSTEM_STOPPED'],this[_0x38ee74(0x36f)]);}[_0x11fa1c(0x1f1)](){const _0x5d2001=_0x11fa1c;if(!this[_0x5d2001(0x620)])return;this['_started']=![];const {events:_0x31930e}=this[_0x5d2001(0x61e)];_0x31930e[_0x5d2001(0x1c9)](_0x1fbffc['ITEM_PENDING'],this[_0x5d2001(0x3d7)]),_0x31930e['off'](_0x1fbffc['ITEM_CREATE'],this['_onItem']),_0x31930e[_0x5d2001(0x1c9)](_0x1fbffc['ITEM_UPDATE'],this[_0x5d2001(0x5a3)]),_0x31930e[_0x5d2001(0x1c9)](_0x1fbffc[_0x5d2001(0x74e)],this[_0x5d2001(0x5a3)]),_0x31930e[_0x5d2001(0x1c9)](_0x1fbffc['SYSTEM_POKE'],this[_0x5d2001(0x52e)]);try{_0x31930e[_0x5d2001(0x1c9)](_0x1fbffc[_0x5d2001(0x528)],this[_0x5d2001(0x36f)]);}catch{}this[_0x5d2001(0x3ae)]&&(clearTimeout(this[_0x5d2001(0x3ae)]),this[_0x5d2001(0x3ae)]=null),this[_0x5d2001(0x322)]['clear'](),this[_0x5d2001(0x259)][_0x5d2001(0x734)](),this['_baselines'][_0x5d2001(0x734)](),this[_0x5d2001(0x707)][_0x5d2001(0x734)](),this['_pendingLocal'][_0x5d2001(0x734)]();}['_dedupeKey'](_0x2bda96,_0x4a9a17,_0xa10ee0,_0x4f2241){return _0x2bda96+'\x00'+_0x4a9a17+'\x00'+_0xa10ee0+'\x00'+_0x4f2241;}[_0x11fa1c(0x5be)](_0x5972e2,_0x533dce,_0xac90ce,_0x2d0f79){const _0x902627=_0x11fa1c,_0x2bb33a=this['_dedupeKey'](_0x5972e2,_0x533dce,_0xac90ce,_0x2d0f79);if(this[_0x902627(0x707)][_0x902627(0x571)](_0x2bb33a))return![];this['_seen'][_0x902627(0x280)](_0x2bb33a);if(this[_0x902627(0x707)][_0x902627(0x8d2)]>this[_0x902627(0x75b)]){const _0x2c0c36=this[_0x902627(0x707)]['values']()[_0x902627(0x48f)]()[_0x902627(0x2ef)];this[_0x902627(0x707)][_0x902627(0x2cb)](_0x2c0c36);}return!![];}[_0x11fa1c(0x31a)](_0x1dfbfd){const _0x437fa6=_0x11fa1c;if(!this[_0x437fa6(0x620)]||!_0x1dfbfd)return;const {env:_0x2c6f66,type:_0x44d621,key:_0x5accbe,clock:_0x53e76c}=_0x1dfbfd;if(_0x2c6f66==null||_0x44d621==null||_0x5accbe==null)return;if(typeof _0x2c6f66===_0x437fa6(0x2b1)&&_0x2c6f66[_0x437fa6(0x38a)]('~'))return;if(typeof _0x44d621===_0x437fa6(0x2b1)&&_0x44d621[_0x437fa6(0x38a)]('~'))return;this[_0x437fa6(0x356)][_0x437fa6(0x280)](this[_0x437fa6(0x37f)](_0x2c6f66,_0x44d621,_0x5accbe,_0x53e76c)),this[_0x437fa6(0x356)][_0x437fa6(0x8d2)]>this[_0x437fa6(0x75b)]&&this[_0x437fa6(0x356)][_0x437fa6(0x2cb)](this[_0x437fa6(0x356)][_0x437fa6(0x5d0)]()[_0x437fa6(0x48f)]()['value']);}[_0x11fa1c(0x2e1)](_0x592fb2){const _0x35ecd1=_0x11fa1c;if(!this['_started']||!_0x592fb2)return;const {env:_0x4628a2,type:_0x1786e4,key:_0x42c5c5,clock:_0x2ee517,origin:_0x56d0ca,action:_0x57134b,newValue:_0x52e531,oldValue:_0x1a13ef}=_0x592fb2;if(_0x4628a2==null||_0x1786e4==null||_0x42c5c5==null)return;if(typeof _0x4628a2===_0x35ecd1(0x2b1)&&_0x4628a2[_0x35ecd1(0x38a)]('~'))return;if(typeof _0x1786e4===_0x35ecd1(0x2b1)&&_0x1786e4[_0x35ecd1(0x38a)]('~'))return;this[_0x35ecd1(0x356)][_0x35ecd1(0x2cb)](this[_0x35ecd1(0x37f)](_0x4628a2,_0x1786e4,_0x42c5c5,_0x2ee517));if(!this[_0x35ecd1(0x5be)](_0x4628a2,_0x1786e4,_0x42c5c5,_0x2ee517))return;const _0x1ee2d8=_0x57134b===_0x1b739b['REMOVE']?_0x35ecd1(0x504):_0x35ecd1(0x253);this[_0x35ecd1(0x5a2)]('change',{'env':_0x4628a2,'type':_0x1786e4,'key':_0x42c5c5,'op':_0x1ee2d8,'clock':_0x2ee517,'origin':_0x56d0ca,'value':_0x1ee2d8===_0x35ecd1(0x504)?null:_0x52e531,'prevValue':_0x1a13ef});}[_0x11fa1c(0x768)](_0x45e487){const _0x506aa7=_0x11fa1c;if(!this[_0x506aa7(0x620)])return;if(!_0x45e487||typeof _0x45e487[_0x506aa7(0x609)]!=='string'||typeof _0x45e487['type']!=='string')return;const {env:_0x3f360c,type:_0x28b091}=_0x45e487;if(_0x3f360c[_0x506aa7(0x38a)]('~')||_0x28b091[_0x506aa7(0x38a)]('~'))return;this[_0x506aa7(0x322)][_0x506aa7(0x63f)](_0x3f360c+'\x00'+_0x28b091,{'env':_0x3f360c,'type':_0x28b091}),this['_scheduleFlush']();}['_scheduleFlush'](){const _0x3e0494=_0x11fa1c;if(this[_0x3e0494(0x3ae)])return;const _0x5ed9ce=()=>{const _0x2e1c17=_0x3e0494;this['_flushTimer']=null,this[_0x2e1c17(0x45f)]()[_0x2e1c17(0x6d7)](()=>{});};this[_0x3e0494(0x3ae)]=setTimeout(_0x5ed9ce,_0x4c9247(this[_0x3e0494(0x24d)]));}async['_drain'](){const _0x30c0f9=_0x11fa1c;if(this[_0x30c0f9(0x79e)]){this['_scheduleFlush']();return;}this['_draining']=!![];try{const _0x56639a=[...this[_0x30c0f9(0x322)][_0x30c0f9(0x5d0)]()];this['_pending'][_0x30c0f9(0x734)]();let _0x271575=![];for(const {env:_0x4c402a,type:_0x2035a1}of _0x56639a){try{const _0x2e3aaf=await this[_0x30c0f9(0x453)](_0x4c402a,_0x2035a1);if(_0x2e3aaf)_0x271575=!![];}catch{this[_0x30c0f9(0x322)][_0x30c0f9(0x63f)](_0x4c402a+'\x00'+_0x2035a1,{'env':_0x4c402a,'type':_0x2035a1}),_0x271575=!![];}}if(_0x271575||this[_0x30c0f9(0x322)][_0x30c0f9(0x8d2)]>0x0)this[_0x30c0f9(0x3ce)]();}finally{this['_draining']=![];}}async[_0x11fa1c(0x453)](_0x4f5667,_0x1dff89){const _0x2a99aa=_0x11fa1c,_0x2985e3=await this[_0x2a99aa(0x61e)]['_openEnvLazy'](_0x4f5667),_0x532529=_0x4f5667+'\x00'+_0x1dff89;!this['_cursors'][_0x2a99aa(0x571)](_0x532529)&&(!this[_0x2a99aa(0x22c)][_0x2a99aa(0x571)](_0x4f5667)&&(_0x2985e3[_0x2a99aa(0x378)](),this['_baselines'][_0x2a99aa(0x63f)](_0x4f5667,_0x2985e3[_0x2a99aa(0x3b3)]()||0x0)),this[_0x2a99aa(0x259)][_0x2a99aa(0x63f)](_0x532529,this[_0x2a99aa(0x22c)][_0x2a99aa(0x309)](_0x4f5667)));const _0x161bc7=this[_0x2a99aa(0x259)][_0x2a99aa(0x309)](_0x532529),_0x690572=_0x2985e3[_0x2a99aa(0x3b3)](_0x1dff89)||0x0;if(_0x690572<=_0x161bc7)return![];const _0x2501ff=_0x161bc7+this[_0x2a99aa(0x4c9)],_0x55d4bb=Math[_0x2a99aa(0x597)](_0x690572,_0x2501ff),_0x5383e7=_0xa82aa2['enabled']?_0xa82aa2[_0x2a99aa(0x8cc)]():0x0,_0x6af5e8=Array[_0x2a99aa(0x48d)](_0x2985e3['getChanges'](_0x1dff89,_0x161bc7+0x1,_0x55d4bb));let _0x5baeb8=_0x161bc7;for(const _0x2933bb of _0x6af5e8){const {clock:_0x2695df,key:_0x573718,action:_0x5c8fcd,origin:_0x3a4102}=_0x2933bb;if(_0x2695df>_0x5baeb8)_0x5baeb8=_0x2695df;if(_0x573718==null)continue;if(this[_0x2a99aa(0x356)][_0x2a99aa(0x571)](this[_0x2a99aa(0x37f)](_0x4f5667,_0x1dff89,_0x573718,_0x2695df)))continue;if(!this[_0x2a99aa(0x5be)](_0x4f5667,_0x1dff89,_0x573718,_0x2695df))continue;let _0x25d5e4,_0x247436;if(_0x5c8fcd===_0x1b739b[_0x2a99aa(0x8a0)])_0x25d5e4=_0x2a99aa(0x504),_0x247436=null;else{const _0x4da124=_0x2985e3[_0x2a99aa(0x309)](_0x1dff89,_0x573718);_0x4da124==null?(_0x25d5e4=_0x2a99aa(0x504),_0x247436=null):(_0x25d5e4=_0x2a99aa(0x253),_0x247436=_0x4da124);}this[_0x2a99aa(0x5a2)](_0x2a99aa(0x66f),{'env':_0x4f5667,'type':_0x1dff89,'key':_0x573718,'op':_0x25d5e4,'clock':_0x2695df,'origin':_0x3a4102,'value':_0x247436});}if(_0xa82aa2[_0x2a99aa(0x63d)])_0xa82aa2[_0x2a99aa(0x520)](_0x2a99aa(0x712)+_0x4f5667+':'+_0x1dff89,_0xa82aa2[_0x2a99aa(0x8cc)]()-_0x5383e7,'n='+_0x6af5e8[_0x2a99aa(0x68a)]);return this['_cursors'][_0x2a99aa(0x63f)](_0x532529,Math[_0x2a99aa(0x4a0)](_0x5baeb8,_0x55d4bb)),_0x2985e3[_0x2a99aa(0x3b3)](_0x1dff89)>_0x55d4bb;}[_0x11fa1c(0x717)](){const _0x57b3e2=_0x11fa1c;return{'started':this[_0x57b3e2(0x620)],'quantum':this[_0x57b3e2(0x4c9)],'flushDebounce':this[_0x57b3e2(0x24d)],'cursors':Object['fromEntries']([...this['_cursors'][_0x57b3e2(0x719)]()][_0x57b3e2(0x35e)](([_0x536928,_0x4f6207])=>[_0x536928[_0x57b3e2(0x306)]('\x00',':'),_0x4f6207])),'pending':this[_0x57b3e2(0x322)][_0x57b3e2(0x8d2)],'seen':this[_0x57b3e2(0x707)][_0x57b3e2(0x8d2)]};}}return _0x2ac925[_0x11fa1c(0x7fd)]=_0x518365,okdbChangefeed={'OKDBChangefeed':_0x2ac925},okdbChangefeed;}var okdbRelay,hasRequiredOkdbRelay;function requireOkdbRelay(){const _0x5de9d5=_0x5c70f8;if(hasRequiredOkdbRelay)return okdbRelay;hasRequiredOkdbRelay=0x1;const {EVENTS:_0x238cd7}=requireOkdbEnums(),_0x1d00a5=new Set([_0x238cd7[_0x5de9d5(0x401)],_0x238cd7[_0x5de9d5(0x32d)],_0x238cd7[_0x5de9d5(0x74e)]]),{ENGINE_EVENTS:_0x17fcfd}=requireOkdbEnginesEnums(),{EMBEDDINGS_EVENTS:_0x158334}=requireEnums(),{QUEUE_EVENTS:_0x1340a7}=requireOkdbQueueValidate(),_0x4522cf=Object[_0x5de9d5(0x5d0)](_0x238cd7),_0x591aa9=Object[_0x5de9d5(0x5d0)](_0x17fcfd)[_0x5de9d5(0x35e)](_0x3d7ec6=>'engine:'+_0x3d7ec6),_0x8a21d9=Object[_0x5de9d5(0x5d0)](_0x158334),_0x1c0676=Object[_0x5de9d5(0x5d0)](_0x1340a7),_0x5c9d57=[_0x5de9d5(0x833),_0x5de9d5(0x56e),'processor:error',_0x5de9d5(0x8eb),_0x5de9d5(0x789),'processor:retry'],_0x477482=[..._0x4522cf,..._0x591aa9,..._0x8a21d9,..._0x1c0676,..._0x5c9d57,_0x5de9d5(0x58d)],_0x4191b7=new Set(_0x477482),_0x1869d1=new Set([_0x238cd7[_0x5de9d5(0x401)],_0x238cd7['ITEM_UPDATE'],_0x238cd7[_0x5de9d5(0x74e)],_0x238cd7[_0x5de9d5(0x478)],_0x238cd7[_0x5de9d5(0x623)],_0x238cd7[_0x5de9d5(0x635)],_0x238cd7[_0x5de9d5(0x733)],_0x238cd7['INDEX_PROGRESS'],_0x158334[_0x5de9d5(0x56b)],_0x158334[_0x5de9d5(0x5b2)],_0x158334[_0x5de9d5(0x2ff)],_0x158334[_0x5de9d5(0x4f5)],_0x5de9d5(0x56e)]),_0x3787ea=_0x477482[_0x5de9d5(0x4e1)](_0x55a2bd=>_0x55a2bd===_0x5de9d5(0x58d)||!_0x1869d1['has'](_0x55a2bd)),_0x3c24bb=0x14,_0x32d8fe=0xc8;class _0xe03de8{constructor(_0x37f2f7,_0x1e4c9a={}){const _0xb5b86=_0x5de9d5;this['okdb']=_0x37f2f7,this[_0xb5b86(0x6b7)]=_0x1e4c9a[_0xb5b86(0x313)]??_0x3c24bb,this[_0xb5b86(0x2e2)]=_0x1e4c9a['ringSize']??_0x32d8fe,this[_0xb5b86(0x7de)]=new Set(),this[_0xb5b86(0x8c3)]=[],this['_listeners']=[],this[_0xb5b86(0x648)]=null,this[_0xb5b86(0x4ae)]=![],this[_0xb5b86(0x681)]=null,this[_0xb5b86(0x605)]=null;}[_0x5de9d5(0x29a)](){const _0x32d7a4=_0x5de9d5;if(this[_0x32d7a4(0x4ae)])return;this[_0x32d7a4(0x4ae)]=!![];const {okdb:_0x195df1}=this;this['_detachLog']=_0x195df1[_0x32d7a4(0x58d)][_0x32d7a4(0x29a)](_0x5e7a62=>this['_push'](_0x32d7a4(0x58d),_0x5e7a62));for(const _0x1bff69 of _0x477482){if(_0x1bff69===_0x32d7a4(0x58d))continue;const _0x580ffd=_0x1d00a5[_0x32d7a4(0x571)](_0x1bff69),_0x294312=_0x552df8=>{const _0xaa3f00=_0x32d7a4;if(_0x580ffd&&this[_0xaa3f00(0x681)])return;this[_0xaa3f00(0x499)](_0x1bff69,_0x552df8??{});};_0x195df1[_0x32d7a4(0x4cb)]['on'](_0x1bff69,_0x294312),this[_0x32d7a4(0x66d)][_0x32d7a4(0x28d)]({'event':_0x1bff69,'handler':_0x294312});}this[_0x32d7a4(0x36f)]=()=>this[_0x32d7a4(0x355)](),_0x195df1[_0x32d7a4(0x4cb)][_0x32d7a4(0x32f)](_0x238cd7[_0x32d7a4(0x528)],this[_0x32d7a4(0x36f)]);}[_0x5de9d5(0x355)](){const _0x111fbc=_0x5de9d5;if(!this[_0x111fbc(0x4ae)])return;if(this[_0x111fbc(0x36f)]){try{this['okdb'][_0x111fbc(0x4cb)][_0x111fbc(0x1c9)](_0x238cd7[_0x111fbc(0x528)],this[_0x111fbc(0x36f)]);}catch{}this[_0x111fbc(0x36f)]=null;}this['_detachLog']?.(),this['_detachLog']=null;for(const {event:_0x2d41a9,handler:_0x30adeb}of this[_0x111fbc(0x66d)]){try{this[_0x111fbc(0x61e)][_0x111fbc(0x4cb)][_0x111fbc(0x1c9)](_0x2d41a9,_0x30adeb);}catch{}}this[_0x111fbc(0x66d)]=[];for(const _0x254942 of this[_0x111fbc(0x7de)]){try{_0x254942['close']?.();}catch{}}this[_0x111fbc(0x7de)][_0x111fbc(0x734)](),this['detachFeed'](),this[_0x111fbc(0x4ae)]=![];}[_0x5de9d5(0x5ba)](_0x1b4ad1){const _0x5c7a5c=_0x5de9d5;if(!_0x1b4ad1||this['_feed']===_0x1b4ad1)return;this[_0x5c7a5c(0x70d)](),this[_0x5c7a5c(0x681)]=_0x1b4ad1,this[_0x5c7a5c(0x605)]=_0x4737bb=>{const _0x50f6c4=_0x5c7a5c;if(!_0x4737bb)return;const _0x59b50e=_0x4737bb['op']===_0x50f6c4(0x504)?_0x238cd7[_0x50f6c4(0x74e)]:_0x238cd7[_0x50f6c4(0x32d)];this[_0x50f6c4(0x499)](_0x59b50e,_0x4737bb);},_0x1b4ad1['on'](_0x5c7a5c(0x66f),this[_0x5c7a5c(0x605)]);}['detachFeed'](){const _0x128f2e=_0x5de9d5;if(this['_feed']&&this[_0x128f2e(0x605)])try{this['_feed']['off'](_0x128f2e(0x66f),this[_0x128f2e(0x605)]);}catch{}this[_0x128f2e(0x681)]=null,this[_0x128f2e(0x605)]=null;}['pushEphemeral'](_0x507b8c,_0x27c18e){const _0x44556b=_0x5de9d5;if(!_0x4191b7[_0x44556b(0x571)](_0x507b8c))return;this['_push'](_0x507b8c,_0x27c18e??{});}['subscribe'](_0x6f07bf,_0x557179,_0x2b3095){const _0xdcea63=_0x5de9d5;if(this[_0xdcea63(0x7de)]['size']>=this[_0xdcea63(0x6b7)])return _0x557179(_0xdcea63(0x857),{'message':_0xdcea63(0x441),'code':_0xdcea63(0x894)}),()=>{};const _0x5a0fe4=this['_resolveFilter'](_0x6f07bf),_0x5ba024={'send':_0x557179,'filter':_0x5a0fe4,'close':_0x2b3095??null};this['_connections'][_0xdcea63(0x280)](_0x5ba024);for(const {event:_0x5245a2,data:_0x2345fa}of this['_buffer']){if(_0x5a0fe4[_0xdcea63(0x571)](_0x5245a2))try{_0x557179(_0x5245a2,_0x2345fa);}catch{}}return()=>this[_0xdcea63(0x7de)][_0xdcea63(0x2cb)](_0x5ba024);}[_0x5de9d5(0x5f6)](){const _0x5c4018=_0x5de9d5;if(this['_feed'])return this[_0x5c4018(0x681)];const {OKDBChangefeed:_0x537b43}=requireOkdbChangefeed(),_0x4e112e=new _0x537b43(this[_0x5c4018(0x61e)]);_0x4e112e[_0x5c4018(0x45c)](),this[_0x5c4018(0x5ba)](_0x4e112e);if(this['okdb']&&!this[_0x5c4018(0x61e)][_0x5c4018(0x472)])this[_0x5c4018(0x61e)][_0x5c4018(0x472)]=_0x4e112e;return this[_0x5c4018(0x681)];}get[_0x5de9d5(0x80e)](){const _0x4953f8=_0x5de9d5;return this[_0x4953f8(0x7de)]['size'];}[_0x5de9d5(0x308)](){const _0x4101f7=_0x5de9d5;return{'connections':this['connectionCount'],'bufferSize':this[_0x4101f7(0x8c3)]['length'],'attached':this[_0x4101f7(0x4ae)],'allEvents':_0x477482[_0x4101f7(0x68a)],'defaultEvents':_0x3787ea[_0x4101f7(0x68a)]};}static get['ALL_EVENTS'](){return _0x477482;}static get['DEFAULT_EVENTS'](){return _0x3787ea;}static get[_0x5de9d5(0x6cb)](){return[..._0x1869d1];}[_0x5de9d5(0x69b)](_0x40ee1e){const _0x54b4e9=_0x5de9d5;if(!_0x40ee1e||!_0x40ee1e[_0x54b4e9(0x68a)])return new Set(_0x3787ea);const _0x2e11ba=_0x40ee1e[_0x54b4e9(0x4e1)](_0x5d4e2a=>_0x4191b7[_0x54b4e9(0x571)](_0x5d4e2a));return new Set(_0x2e11ba['length']?_0x2e11ba:_0x3787ea);}[_0x5de9d5(0x499)](_0x526b10,_0x1b821c){const _0xe970a2=_0x5de9d5,_0x4b77d8={..._0x1b821c,'_ts':_0x1b821c?.[_0xe970a2(0x3ad)]??_0x1b821c?.['ts']??Date['now']()};this[_0xe970a2(0x8c3)]['push']({'event':_0x526b10,'data':_0x4b77d8});if(this[_0xe970a2(0x8c3)][_0xe970a2(0x68a)]>this[_0xe970a2(0x2e2)])this[_0xe970a2(0x8c3)][_0xe970a2(0x812)]();for(const _0x5c2db2 of this[_0xe970a2(0x7de)]){if(_0x5c2db2['filter'][_0xe970a2(0x571)](_0x526b10))try{_0x5c2db2[_0xe970a2(0x574)](_0x526b10,_0x4b77d8);}catch{}}}}return okdbRelay=_0xe03de8,okdbRelay;}var hasRequiredLib;function requireLib(){const _0x39e754=_0x5c70f8;if(hasRequiredLib)return lib[_0x39e754(0x28e)];return hasRequiredLib=0x1,function(_0x3578a0){const _0xef20=_0x39e754,_0x4730b9=require$$0$6,{load:_0x300550}=require$$1$1,_0x261e57=requireBridge(),_0x40ef24=requireWritebatch(),{Pumper:_0xe941a1}=requirePump(),{OKDBEnv:_0x3c3dc3,HIGH_SENTINEL:_0x337090}=requireEnv(),{reclass:_0x4e6f50,NotImplementedNative:_0xe4ba3,OKDBError:_0x370fe4,optionsArg:_0x7906bb,invalidArgument:_0x54e14f}=requireErrors(),{notImplemented:_0x48613a}=requireUnsupported(),{OKDBHttp:_0x22cb9b}=requireHttp(),{OKDBFts:_0x346def}=requireFts(),{OKDBEmbeddings:_0x2e358d}=requireEmbeddings(),{OKDBAuth:_0x5ed8d7}=requireAuth(),{OKDBSync:_0x1e19e2}=requireSync(),{OKDBMigrate:_0x3b4d3b}=requireMigrate(),{OKDBFunctions:_0x3cb889}=requireFunctions(),{OKDBMcp:_0x2290a0}=requireMcp(),{OKDBEngines:_0x44dea6,OKDBPipelines:_0x449afb}=requireEngines(),{makeMeta:_0x2b15a1,makeLicenses:_0x24d2fd,makeLicenseChecker:_0x5459f6,makeProcesses:_0x9b35ce}=requireSys();let _0x12e8f8=null;function _0x198746(_0x4f3332){const _0x439698=_0x52a3;if(!_0x12e8f8){const {Unpackr:_0x4770be}=require$$18;_0x12e8f8=new _0x4770be({'useRecords':![],'mapsAsObjects':!![],'copyBuffers':!![]});}return _0x12e8f8[_0x439698(0x479)](_0x4f3332);}let _0x311c30=null;function _0x8cf03a(_0x2b8e87,_0x48e578){if(!_0x311c30){const {Unpackr:_0x20d435}=require$$18;_0x311c30=new _0x20d435({'copyBuffers':!![]});}return _0x311c30['unpack'](_0x2b8e87,_0x48e578);}const {encodeKey:_0x3f65b9,KEY_BUF_SIZE:_0x221984,NO_FAST:_0xab98d2}=requireKeyenc(),_0x287e1e=0x40*0x400,_0x4b7e32=0x4*0x400*0x400;function _0x6c51e7(_0x4f03fe,_0x28150d){const _0x371a21=_0x52a3,_0x1da5a3=_0x4f03fe[0x2],_0x17892d=_0x1da5a3?(_0x4f03fe['length']-0x3)/Math[_0x371a21(0x225)](_0x1da5a3):0x0,_0x5b8351=new Array(_0x17892d);let _0x3fc82f=0x3;if(_0x1da5a3===0x2){for(let _0x52e4fb=0x0;_0x52e4fb<_0x17892d;_0x52e4fb++,_0x3fc82f+=0x2)_0x5b8351[_0x52e4fb]={'key':_0x4f03fe[_0x3fc82f],'value':_0x4f03fe[_0x3fc82f+0x1]};}else{if(_0x1da5a3===0x3){for(let _0x472b95=0x0;_0x472b95<_0x17892d;_0x472b95++,_0x3fc82f+=0x3)_0x5b8351[_0x472b95]={'key':_0x4f03fe[_0x3fc82f],'value':_0x4f03fe[_0x3fc82f+0x1],'version':_0x4f03fe[_0x3fc82f+0x2]};}else{if(_0x1da5a3===-0x2){for(let _0x2bc815=0x0;_0x2bc815<_0x17892d;_0x2bc815++,_0x3fc82f+=0x2)_0x5b8351[_0x2bc815]={'clock':_0x4f03fe[_0x3fc82f],..._0x4f03fe[_0x3fc82f+0x1]};}else{if(_0x1da5a3===0x4){for(let _0x3d5672=0x0;_0x3d5672<_0x17892d;_0x3d5672++,_0x3fc82f+=0x4)_0x5b8351[_0x3d5672]={'key':_0x4f03fe[_0x3fc82f],'value':_0x4f03fe[_0x3fc82f+0x1],'version':_0x4f03fe[_0x3fc82f+0x2],'indexKey':_0x4f03fe[_0x3fc82f+0x3]};}else{if(_0x17892d)throw new Error(_0x371a21(0x621)+_0x1da5a3);}}}}return _0x28150d?[_0x4f03fe[0x0],_0x5b8351,_0x4f03fe[0x1]]:_0x5b8351;}let _0x495c22=null;function _0x109fb2(_0x5278f9,_0x18b841,_0x4ab269){const _0x2bc7d8=_0x52a3;if(!_0x495c22)_0x495c22=requireDist()['readKey'];const _0xc1e61f=new DataView(_0x5278f9[_0x2bc7d8(0x4b0)],_0x5278f9[_0x2bc7d8(0x204)],_0x18b841),_0x8b00ce=_0xc1e61f[_0x2bc7d8(0x361)](0x10,!![]),_0x4544e4=new Array(_0x8b00ce);let _0xd0f6f1=0x14;for(let _0xad83da=0x0;_0xad83da<_0x8b00ce;_0xad83da++){const _0x468c70=_0x5278f9[_0xd0f6f1]|_0x5278f9[_0xd0f6f1+0x1]<<0x8;_0xd0f6f1+=0x2,_0x4544e4[_0xad83da]=_0x495c22(_0x5278f9,_0xd0f6f1,_0xd0f6f1+_0x468c70),_0xd0f6f1+=_0x468c70;}return _0x4ab269?[_0xc1e61f[_0x2bc7d8(0x5a8)](0x0,!![]),_0x4544e4,_0xc1e61f['getFloat64'](0x8,!![])]:_0x4544e4;}const _0x48c4eb=requireOkdbLogger(),_0xa4ac97=requireOkdbPlugins(),{OKDB_STATE:_0x36d3a1,EVENTS:_0x5ae024}=requireOkdbEnums(),_0x16d1b5=requireStatics();let _0x4ddae5=null,_0x349d43=![],_0x15e341=0x1;const _0x686a76=new Map(),_0x4fb23f=new Set([_0xef20(0x6fe),'EMBED_PENDING']),_0x2a8b16=_0x2debe3=>!!_0x2debe3&&_0x4fb23f[_0xef20(0x571)](_0x2debe3[_0xef20(0x50e)]),_0x40a750=Number(process.env.OKDB_PENDING_RETRY_MS)>0x0?Number(process.env.OKDB_PENDING_RETRY_MS):0x1d4c0;function _0x53ab5b(){const _0x24dd13=_0xef20;!_0x349d43&&(_0x4d4498()[_0x24dd13(0x46e)](_0x261e57[_0x24dd13(0x7f3)]),_0x40ef24['install'](_0x4d4498()),_0x349d43=!![]);}function _0x4d4498(){if(!_0x4ddae5)_0x4ddae5=_0x300550();return _0x4ddae5;}class _0x4cc1bc extends Map{constructor(_0x40bbca){const _0x41ad19=_0xef20;super(),this[_0x41ad19(0x3e6)]=_0x40bbca;}['_sync'](){const _0x4f6525=_0xef20,_0x1dd257=this[_0x4f6525(0x3e6)];if(!_0x1dd257[_0x4f6525(0x663)])return;let _0x4adc35;try{_0x4adc35=_0x1dd257[_0x4f6525(0x210)]('db',null,'envNames',[],![]);}catch{return;}for(const _0x511c8b of _0x4adc35)if(!super['has'](_0x511c8b)&&_0x1dd257[_0x4f6525(0x210)]('db',null,_0x4f6525(0x805),[_0x511c8b],![]))_0x1dd257[_0x4f6525(0x6df)](_0x511c8b);}[_0xef20(0x309)](_0x153908){const _0x5afeb9=_0xef20,_0x54fff7=super[_0x5afeb9(0x309)](_0x153908);if(_0x54fff7!==undefined||typeof _0x153908!==_0x5afeb9(0x2b1))return _0x54fff7;const _0x21e8c8=this['_db'];if(_0x153908===_0x5afeb9(0x2c9))return _0x21e8c8['_isOpen']?_0x21e8c8['processes'][_0x5afeb9(0x34e)]??undefined:undefined;if(_0x21e8c8[_0x5afeb9(0x663)]&&_0x21e8c8[_0x5afeb9(0x210)]('db',null,_0x5afeb9(0x805),[_0x153908],![]))return _0x21e8c8[_0x5afeb9(0x6df)](_0x153908);if(_0x21e8c8[_0x5afeb9(0x663)]&&typeof _0x153908===_0x5afeb9(0x2b1)&&!_0x153908[_0x5afeb9(0x38a)]('~')){_0x21e8c8[_0x5afeb9(0x210)]('db',null,_0x5afeb9(0x714),[],![]);if(_0x21e8c8['_call']('db',null,'hasEnv',[_0x153908],![]))return _0x21e8c8[_0x5afeb9(0x6df)](_0x153908);}return undefined;}[_0xef20(0x571)](_0x2db831){const _0x22af46=_0xef20;return this[_0x22af46(0x309)](_0x2db831)!==undefined;}get[_0xef20(0x8d2)](){return this['_sync'](),super['size'];}[_0xef20(0x4ac)](){const _0x1b0cda=_0xef20;return this[_0x1b0cda(0x7d7)](),super[_0x1b0cda(0x4ac)]();}[_0xef20(0x5d0)](){const _0x14e31d=_0xef20;return this[_0x14e31d(0x7d7)](),super[_0x14e31d(0x5d0)]();}[_0xef20(0x719)](){const _0x23ff11=_0xef20;return this[_0x23ff11(0x7d7)](),super['entries']();}[_0xef20(0x5ff)](_0x33e9a9,_0x5314db){const _0x45981a=_0xef20;return this[_0x45981a(0x7d7)](),super[_0x45981a(0x5ff)](_0x33e9a9,_0x5314db);}[Symbol[_0xef20(0x344)]](){const _0x1f056e=_0xef20;return this[_0x1f056e(0x7d7)](),super[Symbol[_0x1f056e(0x344)]]();}}class _0x4514d2{constructor(_0x516bb3,_0xfd3e98={}){const _0x5cedbf=_0xef20,_0x28e1a5=_0x4d4498();this[_0x5cedbf(0x500)]=_0x516bb3,this[_0x5cedbf(0x741)]=_0x15e341++,this[_0x5cedbf(0x28c)]='db'+this[_0x5cedbf(0x741)],this[_0x5cedbf(0x688)]={..._0x16d1b5[_0x5cedbf(0x2d1)],..._0xfd3e98,'auth':_0xfd3e98[_0x5cedbf(0x7f0)]?{..._0xfd3e98[_0x5cedbf(0x7f0)]}:undefined,'lmdb':{..._0xfd3e98[_0x5cedbf(0x533)]||{}}},this['events']=new _0x4730b9(),this['events'][_0x5cedbf(0x88e)](0x0),this[_0x5cedbf(0x4ee)]=new Set(),this[_0x5cedbf(0x4cb)]['on'](_0x5cedbf(0x7dd),_0x5de324=>this[_0x5cedbf(0x46f)](_0x5de324)),this[_0x5cedbf(0x58d)]=new _0x48c4eb(this),this[_0x5cedbf(0x58d)][_0x5cedbf(0x4d5)](),_0x261e57['registerTarget'](this[_0x5cedbf(0x28c)],{'_deliver':(_0xd2ae26,_0x2ec189)=>this['_deliverEvent'](_0xd2ae26,_0x2ec189),'_log':_0x36e8f2=>{const _0x54ba6e=_0x5cedbf;if(this[_0x54ba6e(0x320)])this['_bootLog'][_0x54ba6e(0x28d)](_0x36e8f2);const _0x2f24bf=_0x36e8f2&&_0x36e8f2[_0x54ba6e(0x3a3)];if(_0x2f24bf&&Object[_0x54ba6e(0x511)][_0x54ba6e(0x3eb)][_0x54ba6e(0x4d1)](this[_0x54ba6e(0x58d)],_0x2f24bf)&&typeof this[_0x54ba6e(0x58d)][_0x2f24bf]===_0x54ba6e(0x640)){const _0x8d99aa=_0x36e8f2[_0x54ba6e(0x4bc)];return this[_0x54ba6e(0x58d)][_0x2f24bf](_0x36e8f2['msg'],{..._0x36e8f2[_0x54ba6e(0x447)]||{},..._0x8d99aa&&typeof _0x8d99aa==='object'?_0x8d99aa:{}});}return this['log']['ingest'](_0x36e8f2);}}),_0x53ab5b();try{const _0x55dec4={};if(typeof _0x5cedbf(0x43b)===_0x5cedbf(0x6a3)||_0x5cedbf(0x43b)!==_0x5cedbf(0x43b));const _0x54bc70={..._0xfd3e98,'_clusterWorker':require(_0x5cedbf(0x45e))[_0x5cedbf(0x41b)],..._0x55dec4};this[_0x5cedbf(0x7d4)]={'instance':null,'envs':new Map()};typeof _0xfd3e98['encryptionKey']===_0x5cedbf(0x640)&&(this[_0x5cedbf(0x7d4)]['instance']=_0xfd3e98[_0x5cedbf(0x32b)],delete _0x54bc70[_0x5cedbf(0x32b)]);if(_0xfd3e98[_0x5cedbf(0x7ca)]&&typeof _0xfd3e98[_0x5cedbf(0x7ca)]===_0x5cedbf(0x559)){for(const [_0xe3d2e3,_0x1df860]of Object['entries'](_0xfd3e98['encryptionKeys']))this['_keyFns'][_0x5cedbf(0x27e)][_0x5cedbf(0x63f)](_0xe3d2e3,_0x1df860);}delete _0x54bc70['encryptionKeys'],this[_0x5cedbf(0x858)]=new _0x28e1a5[(_0x5cedbf(0x7d2))](_0x516bb3,_0x54bc70,this[_0x5cedbf(0x28c)]);}catch(_0x216154){_0x261e57['unregisterTarget'](this[_0x5cedbf(0x28c)]);throw _0x4e6f50(_0x216154);}this[_0x5cedbf(0x74f)]=_0x36d3a1['CREATED'],this[_0x5cedbf(0x663)]=![],this[_0x5cedbf(0x612)]=new _0x4cc1bc(this),this[_0x5cedbf(0x5fd)]=new _0xe941a1({'pump':()=>this[_0x5cedbf(0x858)][_0x5cedbf(0x672)]()}),this[_0x5cedbf(0x2d7)]=new _0x40ef24[(_0x5cedbf(0x47c))](this),this[_0x5cedbf(0x5fd)]['afterTurn']=()=>_0x261e57[_0x5cedbf(0x2f7)](),_0x261e57['setKick'](()=>this[_0x5cedbf(0x5fd)]['wake'](),this),_0x686a76[_0x5cedbf(0x63f)](this[_0x5cedbf(0x741)],this),this[_0x5cedbf(0x803)]={},_0x261e57['setCurrentDb'](this),this['fts']=new _0x346def(this),this[_0x5cedbf(0x7f1)]=new _0x2e358d(this),this['engines']=new _0x44dea6(this,null,null),this[_0x5cedbf(0x723)]=new _0x449afb(this,null),this[_0x5cedbf(0x447)]=_0x2b15a1(this),this[_0x5cedbf(0x63b)]=_0x24d2fd(this),this['_license']=_0x5459f6(this),this[_0x5cedbf(0x1ff)]=_0x9b35ce(this),this[_0x5cedbf(0x562)]=_0x568e4a(this),this[_0x5cedbf(0x1f9)]=new _0xa4ac97(this),this[_0x5cedbf(0x755)]=new _0x22cb9b(this),this[_0x5cedbf(0x59c)]=new _0x1e19e2(this),this[_0x5cedbf(0x7f0)]=new _0x5ed8d7(this),this[_0x5cedbf(0x7b5)]=new _0x3cb889(this,null),this[_0x5cedbf(0x201)]=new _0x2290a0(this),this[_0x5cedbf(0x7ed)]=_0xfd3e98&&_0xfd3e98[_0x5cedbf(0x7ed)]===![]?null:_0x48613a(_0x5cedbf(0x7ed)),this[_0x5cedbf(0x7a5)]=_0x48613a(_0x5cedbf(0x7a5)),this[_0x5cedbf(0x516)]=new _0x3b4d3b(this);}[_0xef20(0x210)](_0x5773ce,_0x166a27,_0xd8dd34,_0x2cda4a,_0x55c876=!![]){const _0x2f8cd2=_0xef20;if(_0x55c876&&this[_0x2f8cd2(0x2d7)]&&this['_wb'][_0x2f8cd2(0x622)]['length'])this[_0x2f8cd2(0x2d7)][_0x2f8cd2(0x8e6)]();try{return this[_0x2f8cd2(0x858)]['call'](_0x5773ce,_0x166a27,_0xd8dd34,_0x2cda4a);}catch(_0x2e0a90){throw _0x4e6f50(_0x2e0a90);}finally{if(_0x55c876)this['_pumper']['wake']();}}[_0xef20(0x76a)](_0xa850e9,_0x2eb405,_0x4c14b0,_0x49c811){let _0x26828d;try{_0x26828d=this['_native']['callPacked'](_0xa850e9,_0x2eb405,_0x4c14b0,_0x49c811);}catch(_0x48714e){throw _0x4e6f50(_0x48714e);}return _0x26828d instanceof Uint8Array?_0x198746(_0x26828d):_0x26828d[0x0];}['_readBuf'](_0x4ba750){const _0xd70adf=_0xef20;let _0x2675e6=this[_0xd70adf(0x1ce)];if(_0x2675e6&&_0x4ba750<=_0x2675e6[_0xd70adf(0x68a)])return _0x2675e6;let _0x27818d=_0x2675e6?_0x2675e6[_0xd70adf(0x68a)]:_0x287e1e;while(_0x27818d<_0x4ba750)_0x27818d*=0x2;if(_0x27818d>_0x4b7e32)return _0x2675e6;return _0x2675e6=this[_0xd70adf(0x1ce)]=Buffer[_0xd70adf(0x6fb)](_0x27818d),this[_0xd70adf(0x858)][_0xd70adf(0x505)](_0x2675e6),_0x2675e6;}[_0xef20(0x5ae)](_0x38c4f4,_0x33592a,_0x3a6582){const _0x51bc79=_0xef20;if(!this[_0x51bc79(0x1ce)])this[_0x51bc79(0x5fc)](0x0);const _0x25c60d=this[_0x51bc79(0x858)][_0x51bc79(0x57e)](_0x38c4f4,_0x33592a,_0x3a6582);if(typeof _0x25c60d===_0x51bc79(0x6e7))return _0x8cf03a(this[_0x51bc79(0x1ce)],_0x25c60d);if(_0x25c60d===undefined||_0x25c60d===null)return _0x25c60d;return this[_0x51bc79(0x5fc)](_0x25c60d[_0x51bc79(0x68a)]),_0x8cf03a(_0x25c60d);}['_getFast'](_0x428f6a,_0x4fb814,_0x399258){const _0x2c32af=_0xef20;let _0x2c4a6b=this[_0x2c32af(0x60f)];if(!_0x2c4a6b){_0x2c4a6b=this[_0x2c32af(0x60f)]=Buffer['allocUnsafeSlow'](_0x221984),this[_0x2c32af(0x858)][_0x2c32af(0x3b1)](_0x2c4a6b),this['_tids']=new Map();if(!this[_0x2c32af(0x1ce)])this[_0x2c32af(0x5fc)](0x0);}const _0xcb926b=_0x3f65b9(_0x399258,_0x2c4a6b);if(_0xcb926b<0x0)return _0xab98d2;let _0x2fd3e7=this[_0x2c32af(0x5b0)]['get'](_0x428f6a);if(_0x2fd3e7===undefined)this[_0x2c32af(0x5b0)][_0x2c32af(0x63f)](_0x428f6a,_0x2fd3e7=new Map());let _0x4e159c=_0x2fd3e7[_0x2c32af(0x309)](_0x4fb814);if(_0x4e159c===undefined)_0x2fd3e7[_0x2c32af(0x63f)](_0x4fb814,_0x4e159c=this[_0x2c32af(0x858)]['typeId'](_0x428f6a,_0x4fb814));if(_0x4e159c<0x0)return _0xab98d2;const _0x175a7c=this['_native'][_0x2c32af(0x36e)](_0x4e159c,_0xcb926b);if(typeof _0x175a7c===_0x2c32af(0x6e7))return _0x8cf03a(this['_rbuf'],_0x175a7c);if(_0x175a7c===undefined||_0x175a7c===null)return _0x175a7c;return this[_0x2c32af(0x5fc)](_0x175a7c[_0x2c32af(0x68a)]),_0x8cf03a(_0x175a7c);}['_callRows'](_0x3879e3,_0x57efbe,_0x531f5b){const _0x5be6ea=_0xef20;if(!this[_0x5be6ea(0x1ce)])this[_0x5be6ea(0x5fc)](0x0);let _0x1312b8;try{_0x1312b8=this[_0x5be6ea(0x858)]['callRows'](_0x3879e3,_0x57efbe,_0x531f5b);}catch(_0x107248){throw _0x4e6f50(_0x107248);}const _0x2df419=_0x57efbe===_0x5be6ea(0x6a1),_0x4e9925=_0x2df419?_0x531f5b[0x1]:_0x57efbe;let _0x14add1=this[_0x5be6ea(0x1ce)],_0x238642=_0x1312b8;if(_0x1312b8 instanceof Uint8Array)this[_0x5be6ea(0x5fc)](_0x1312b8['length']),_0x14add1=_0x1312b8,_0x238642=_0x1312b8['length'];else{if(typeof _0x1312b8!==_0x5be6ea(0x6e7))return _0x1312b8[0x0];}if(_0x4e9925===_0x5be6ea(0x300))return _0x109fb2(_0x14add1,_0x238642,_0x2df419);if(_0x4e9925==='getMany')return _0x8cf03a(_0x14add1,_0x238642);return _0x6c51e7(_0x8cf03a(_0x14add1,_0x238642),_0x2df419);}[_0xef20(0x661)](_0x2e80b8,_0x46749a,_0x4b70b,_0x249bc4,_0x2b49fc=!![],_0x423219=!![]){const _0x37e7ae=_0xef20,_0x2f9653=()=>this[_0x37e7ae(0x7d6)](()=>this[_0x37e7ae(0x210)](_0x2e80b8,_0x46749a,_0x4b70b,_0x249bc4,_0x2b49fc));if(!_0x423219)return _0x2f9653();return this[_0x37e7ae(0x302)](_0x2f9653);}['_retryPending'](_0x381eae){const _0x1262c9=_0xef20;return _0x381eae()[_0x1262c9(0x6d7)](async _0x47e7c0=>{const _0x5cec3e=_0x1262c9;if(!_0x2a8b16(_0x47e7c0))throw _0x47e7c0;const _0x50939b=Date[_0x5cec3e(0x8cc)]()+_0x40a750;let _0x1d213f=0x1;while(_0x2a8b16(_0x47e7c0)&&Date[_0x5cec3e(0x8cc)]()<_0x50939b){await new Promise(_0x579cc3=>setTimeout(_0x579cc3,_0x1d213f)),_0x1d213f=Math[_0x5cec3e(0x597)](_0x1d213f*0x2,0x14);try{return await _0x381eae();}catch(_0x2a4d37){_0x47e7c0=_0x2a4d37;}}throw _0x47e7c0;});}['_settleRead'](_0x485a51){if(_0x261e57['inNativeCall']())return Promise['resolve'](_0x485a51);return new Promise(_0x408b64=>setImmediate(()=>_0x408b64(_0x485a51)));}[_0xef20(0x7aa)](_0x521a89){const _0x4c98b1=_0xef20;if(_0x261e57[_0x4c98b1(0x6a8)]())return Promise[_0x4c98b1(0x22e)](_0x521a89);return this['_afterDurable']()[_0x4c98b1(0x801)](()=>_0x521a89);}[_0xef20(0x4e0)](){return new Promise(_0x3779ee=>setImmediate(()=>{const _0x9535d3=_0x52a3;let _0x24d290;try{_0x24d290=this[_0x9535d3(0x858)][_0x9535d3(0x34c)]();}catch{return _0x3779ee();}_0x40ef24[_0x9535d3(0x1ec)](_0x24d290,_0x3779ee);}));}[_0xef20(0x7d6)](_0x5c1053){return new Promise((_0x4e7f86,_0x47defe)=>setImmediate(()=>{try{_0x4e7f86(_0x5c1053());}catch(_0x22f463){_0x47defe(_0x22f463);}}));}[_0xef20(0x66b)](_0x240505,_0x3132cb,_0x32c9ec){return _0x4cc447(_0x240505,_0x3132cb,_0x32c9ec);}[_0xef20(0x46f)](_0x49cd14){const _0x1510ea=_0xef20;if(typeof _0x49cd14!==_0x1510ea(0x2b1)||this[_0x1510ea(0x4ee)][_0x1510ea(0x571)](_0x49cd14)||_0x49cd14===_0x1510ea(0x7dd)||_0x49cd14===_0x1510ea(0x8ed))return;this[_0x1510ea(0x4ee)][_0x1510ea(0x280)](_0x49cd14);try{this['_native'][_0x1510ea(0x4d1)](_0x1510ea(0x4cb),null,_0x1510ea(0x43a),[this[_0x1510ea(0x28c)],_0x49cd14]);}catch{}}[_0xef20(0x2f6)](_0x53bb23,_0x560575){const _0x27ccb4=_0xef20;this[_0x27ccb4(0x4cb)][_0x27ccb4(0x5a2)](_0x53bb23,_0x560575);}async[_0xef20(0x389)](){const _0x547e4d=_0xef20,_0x4d21fc=this[_0x547e4d(0x7d4)];if(_0x4d21fc[_0x547e4d(0x327)])this[_0x547e4d(0x55b)](null,await _0x4d21fc[_0x547e4d(0x327)](null),!![]);for(const [_0x426381,_0x16760c]of _0x4d21fc[_0x547e4d(0x27e)])this[_0x547e4d(0x55b)](_0x426381,typeof _0x16760c===_0x547e4d(0x640)?await _0x16760c(_0x426381):_0x16760c,typeof _0x16760c===_0x547e4d(0x640));(_0x4d21fc['instance']||[..._0x4d21fc[_0x547e4d(0x27e)][_0x547e4d(0x5d0)]()]['some'](_0x5d7b24=>typeof _0x5d7b24==='function'))&&!this['_keyListener']&&(this['_keyListener']=_0x5d9996=>{const _0x5a584b=_0x547e4d,_0xa43a22=_0x5d9996&&_0x5d9996[_0x5a584b(0x609)]!=null?_0x5d9996[_0x5a584b(0x609)]:null,_0x5c09d5=_0xa43a22==null?_0x4d21fc[_0x5a584b(0x327)]:_0x4d21fc[_0x5a584b(0x27e)][_0x5a584b(0x309)](_0xa43a22);if(typeof _0x5c09d5!==_0x5a584b(0x640))return;Promise[_0x5a584b(0x22e)]()['then'](()=>_0x5c09d5(_0xa43a22))[_0x5a584b(0x801)](_0x41d210=>this['_setKey'](_0xa43a22,_0x41d210,!![]))['catch'](_0x4052ff=>this[_0x5a584b(0x58d)][_0x5a584b(0x62e)]('encryption\x20key\x20function\x20failed:\x20'+(_0x4052ff&&_0x4052ff['message']),{'env':_0xa43a22}));},this[_0x547e4d(0x4cb)]['on'](_0x547e4d(0x808),this[_0x547e4d(0x673)]));}[_0xef20(0x55b)](_0x27e4fd,_0x145e0a,_0x1f5e8d){const _0x3008cf=_0xef20;if(_0x145e0a==null)throw new _0x370fe4(_0x3008cf(0x461)+(_0x27e4fd?_0x3008cf(0x2bc)+_0x27e4fd+'\x22':'')+'\x20returned\x20no\x20key','ENCRYPTION_KEY_REQUIRED');this[_0x3008cf(0x858)][_0x3008cf(0x4d1)]('db',null,_0x3008cf(0x37c),[_0x27e4fd,_0x145e0a,!!_0x1f5e8d]);}async['changeEncryptionKey'](_0x7e2411){const _0x5719ca=_0xef20;this[_0x5719ca(0x7a2)]();const {env:env=null,to:_0x53b2bb}=_0x7906bb(_0x7e2411),_0x4447b5=typeof _0x53b2bb===_0x5719ca(0x640),_0x60ed69=_0x4447b5?await _0x53b2bb(env):_0x53b2bb;if(_0x60ed69==null)throw _0x54e14f(_0x5719ca(0x209),_0x5719ca(0x637),_0x60ed69);const _0x5ea1d6=this[_0x5719ca(0x210)]('db',null,_0x5719ca(0x704),[env,_0x60ed69,_0x4447b5]);if(_0x4447b5){if(env==null)this[_0x5719ca(0x7d4)]['instance']=_0x53b2bb;else this['_keyFns'][_0x5719ca(0x27e)][_0x5719ca(0x63f)](env,_0x53b2bb);}return _0x5ea1d6;}async[_0xef20(0x3f9)](_0x2d0811){const _0x992abc=_0xef20;this['_assertOpen']();const _0x191535=_0x7906bb(_0x2d0811);if(!_0x191535['env'])throw _0x54e14f('reencrypt:\x20env','an\x20environment\x20name',_0x191535[_0x992abc(0x609)]);let _0x4c6cbf=_0x191535['to'];const _0x300eaf=typeof _0x4c6cbf===_0x992abc(0x640);if(_0x300eaf)_0x4c6cbf=await _0x191535['to'](_0x191535['env']);const _0x54cf2f=await this[_0x992abc(0x7d6)](()=>this[_0x992abc(0x210)]('db',null,_0x992abc(0x3f9),[_0x191535[_0x992abc(0x609)],'to'in _0x191535?_0x4c6cbf:undefined,_0x300eaf]));if(_0x300eaf)this[_0x992abc(0x7d4)]['envs'][_0x992abc(0x63f)](_0x191535[_0x992abc(0x609)],_0x191535['to']);return _0x54cf2f;}async['open'](){const _0x2cdf5a=_0xef20;if(this['state']===_0x36d3a1[_0x2cdf5a(0x69d)])return;if(this[_0x2cdf5a(0x74f)]!==_0x36d3a1[_0x2cdf5a(0x890)])throw new _0x370fe4('Database\x20already\x20opened/closed',_0x2cdf5a(0x58e),{'state':this['state']});this[_0x2cdf5a(0x74f)]=_0x36d3a1[_0x2cdf5a(0x72a)],this['_bootLog']=[];try{try{await this[_0x2cdf5a(0x389)](),await this[_0x2cdf5a(0x7d6)](()=>this[_0x2cdf5a(0x858)][_0x2cdf5a(0x260)]());}catch(_0x4c4b9f){throw _0x4e6f50(_0x4c4b9f);}}catch(_0x4ccc6f){this[_0x2cdf5a(0x74f)]=_0x36d3a1[_0x2cdf5a(0x8db)],this[_0x2cdf5a(0x320)]=null,this['_teardownNative']();throw _0x4ccc6f;}this[_0x2cdf5a(0x663)]=!![],this[_0x2cdf5a(0x74f)]=_0x36d3a1[_0x2cdf5a(0x69d)];try{this[_0x2cdf5a(0x210)]('db',null,_0x2cdf5a(0x2fc),[this[_0x2cdf5a(0x1f9)][_0x2cdf5a(0x477)]['map'](_0x2679da=>_0x2679da[_0x2cdf5a(0x882)]?.[_0x2cdf5a(0x54b)])[_0x2cdf5a(0x4e1)](Boolean)],![]),await this[_0x2cdf5a(0x1f9)][_0x2cdf5a(0x45c)]();}catch(_0x1d6170){this[_0x2cdf5a(0x74f)]=_0x36d3a1[_0x2cdf5a(0x67f)];try{this[_0x2cdf5a(0x858)][_0x2cdf5a(0x5df)]();}catch{}this['state']=_0x36d3a1[_0x2cdf5a(0x8db)],this[_0x2cdf5a(0x663)]=![],this[_0x2cdf5a(0x627)]();throw _0x1d6170;}for(const _0x3166c1 of this['_call']('db',null,_0x2cdf5a(0x24c),[],![]))if(!_0x3166c1[_0x2cdf5a(0x38a)]('~'))this[_0x2cdf5a(0x6df)](_0x3166c1);try{if(this[_0x2cdf5a(0x210)]('db',null,_0x2cdf5a(0x805),[_0x2cdf5a(0x5ed)],![])){this[_0x2cdf5a(0x6d9)]=this[_0x2cdf5a(0x6df)]('~log');const _0x262fd1=new Set(this[_0x2cdf5a(0x58d)][_0x2cdf5a(0x1d8)]);this['_detachLogSink']=this[_0x2cdf5a(0x58d)][_0x2cdf5a(0x698)](this[_0x2cdf5a(0x6d9)],this['id']);const _0x6ffb40=[...this[_0x2cdf5a(0x58d)][_0x2cdf5a(0x1d8)]][_0x2cdf5a(0x73d)](_0x599461=>!_0x262fd1[_0x2cdf5a(0x571)](_0x599461)),_0x22c90c=this[_0x2cdf5a(0x210)]('db',null,'bootLogMark',[],![]);for(const _0x45de3d of(this['_bootLog']??[])['slice'](_0x22c90c))_0x6ffb40?.(_0x45de3d);}}catch{}this[_0x2cdf5a(0x320)]=null,this[_0x2cdf5a(0x858)][_0x2cdf5a(0x75e)](()=>this[_0x2cdf5a(0x5fd)]['wake']()),this[_0x2cdf5a(0x5fd)][_0x2cdf5a(0x45c)]();}async[_0xef20(0x5f5)](){const _0x19d8f9=_0xef20;return this[_0x19d8f9(0x661)]('db',null,'bootRuntime',[]);}async[_0xef20(0x5df)](){const _0x46ba9a=_0xef20;if(this[_0x46ba9a(0x74f)]===_0x36d3a1['STOPPED'])return;if(this['state']!==_0x36d3a1[_0x46ba9a(0x69d)])throw new _0x370fe4(_0x46ba9a(0x39c),'INVALID_STATE',{'state':this[_0x46ba9a(0x74f)]});this['state']=_0x36d3a1[_0x46ba9a(0x67f)],this[_0x46ba9a(0x663)]=![];let _0x46e551=null;if(this[_0x46ba9a(0x755)][_0x46ba9a(0x6eb)][_0x46ba9a(0x68a)])try{await this['http'][_0x46ba9a(0x5df)]();}catch(_0x7a83ae){_0x46e551=_0x7a83ae;}if(this['__adminRelay']){try{this['__adminRelay'][_0x46ba9a(0x70d)](),this[_0x46ba9a(0x3ff)][_0x46ba9a(0x355)]();}catch{}this['__adminRelay']=null;}try{this['_changefeed']?.['stop']?.();}catch{}try{await this[_0x46ba9a(0x1f9)][_0x46ba9a(0x1f1)]();}catch(_0x2487f9){_0x46e551=_0x2487f9;}for(const _0x3e08a9 of[...Map['prototype'][_0x46ba9a(0x5d0)][_0x46ba9a(0x4d1)](this['_envs'])]){try{await _0x3e08a9[_0x46ba9a(0x5fa)][_0x46ba9a(0x560)]();}catch{}try{await _0x3e08a9[_0x46ba9a(0x655)][_0x46ba9a(0x1f1)]();}catch{}}for(const _0x231483 of[()=>this[_0x46ba9a(0x59c)]['stop'](),()=>this[_0x46ba9a(0x7f1)][_0x46ba9a(0x1f1)](),()=>this['fts']&&this['fts']['stop']?.()]){try{await _0x231483();}catch{}}const _0x89629=this[_0x46ba9a(0x688)][_0x46ba9a(0x4f0)]??0x7530,_0x535bed=[];for(const _0x24f790 of[...Map['prototype'][_0x46ba9a(0x5d0)][_0x46ba9a(0x4d1)](this[_0x46ba9a(0x612)])]){if(_0x24f790[_0x46ba9a(0x622)]?.[_0x46ba9a(0x1d5)]?.[_0x46ba9a(0x8d2)]>0x0)_0x535bed['push'](_0x24f790[_0x46ba9a(0x622)][_0x46ba9a(0x560)](_0x89629));}if(_0x535bed['length']>0x0)await Promise[_0x46ba9a(0x30e)](_0x535bed);try{this[_0x46ba9a(0x6af)]?.();}catch{}this[_0x46ba9a(0x6af)]=null;try{await this[_0x46ba9a(0x2d7)][_0x46ba9a(0x3ec)]();}catch{}this[_0x46ba9a(0x5fd)][_0x46ba9a(0x1f1)]();try{await this[_0x46ba9a(0x7d6)](()=>this[_0x46ba9a(0x858)][_0x46ba9a(0x5df)]());}catch(_0xb07c14){_0x46e551=_0x46e551||_0x4e6f50(_0xb07c14);}this['state']=_0x36d3a1[_0x46ba9a(0x8db)],this[_0x46ba9a(0x627)](),Map[_0x46ba9a(0x511)][_0x46ba9a(0x734)][_0x46ba9a(0x4d1)](this[_0x46ba9a(0x612)]);if(_0x46e551)throw _0x46e551;}[_0xef20(0x627)](){const _0x11b20e=_0xef20;this[_0x11b20e(0x5fd)][_0x11b20e(0x1f1)]();try{this['_native'][_0x11b20e(0x75e)](null);}catch{}try{this[_0x11b20e(0x858)][_0x11b20e(0x49e)]();}catch{}this['_rbuf']=null,this[_0x11b20e(0x60f)]=null,this[_0x11b20e(0x5b0)]=null,_0x261e57[_0x11b20e(0x7a6)](this[_0x11b20e(0x28c)]),_0x261e57['forgetDb'](this),_0x686a76[_0x11b20e(0x2cb)](this[_0x11b20e(0x741)]);if(_0x261e57[_0x11b20e(0x82d)](this)){const _0x3e72b4=[..._0x686a76[_0x11b20e(0x5d0)]()][_0x11b20e(0x5d5)]();if(_0x3e72b4)_0x261e57[_0x11b20e(0x66a)](()=>_0x3e72b4['_pumper'][_0x11b20e(0x2c2)](),_0x3e72b4);else _0x261e57['setKick'](()=>{},null);}}get['id'](){const _0x27cef0=_0xef20;return this[_0x27cef0(0x210)]('db',null,'id',[],![]);}[_0xef20(0x222)](_0x3ca43b){const _0x66b7c5=_0xef20;return this['env'](_0x66b7c5(0x2a6))[_0x66b7c5(0x222)](_0x3ca43b);}get['_tokenSecret'](){const _0xa6dc66=_0xef20;return this['_rootDb'][_0xa6dc66(0x309)](_0xa6dc66(0x689));}get[_0xef20(0x4e3)](){const _0x302794=_0xef20;return this['sync'][_0x302794(0x4e3)];}get[_0xef20(0x1cc)](){const _0x534566=_0xef20;return this[_0x534566(0x59c)][_0x534566(0x1cc)];}get[_0xef20(0x715)](){const _0x456a24=_0xef20;if(!this[_0x456a24(0x663)]||!this[_0x456a24(0x210)]('db',null,'subsBuilt',[],![]))return undefined;if(!this[_0x456a24(0x763)]){const _0x4a698b=requireOkdbSubscriptionsStore(),_0x34db71=new _0x4a698b(this,this['options']&&this[_0x456a24(0x688)]['subscriptions']);_0x34db71['_sub']=this[_0x456a24(0x609)](_0x456a24(0x3cf));const {compileFilter:_0x2e488c}=requireOkdbQueryFilter(),_0x1f472f=(_0x202a13,_0x461afb)=>{if(_0x202a13==null)return![];try{return _0x2e488c(_0x202a13)(_0x461afb);}catch{return![];}};this[_0x456a24(0x763)]={'store':_0x34db71,'router':{'_matches':_0x1f472f}};}return this[_0x456a24(0x763)];}get['_role'](){return this['role'];}get[_0xef20(0x33a)](){const _0x14964f=_0xef20;return this['_call']('db',null,_0x14964f(0x33a),[],![]);}get[_0xef20(0x3e4)](){const _0x39831b=_0xef20;return{...this[_0x39831b(0x210)]('db',null,'role',[],![])};}get[_0xef20(0x1d0)](){return require$$29['version'];}get[_0xef20(0x334)](){const _0x22a97a=_0xef20;return this[_0x22a97a(0x210)]('db',null,_0x22a97a(0x7e3),[],![]);}get['info'](){const _0x431edd=_0xef20;return this[_0x431edd(0x210)]('db',null,'info',[],![]);}['getResolvedOptions'](){return this['_call']('db',null,'resolvedOptions',[],![]);}[_0xef20(0x5f0)](){const _0x228c10=_0xef20;return this['_call']('db',null,_0x228c10(0x5f0),[],![]);}async['setProcessingConfig'](_0x3cb14b){const _0x3060d7=_0xef20;this[_0x3060d7(0x7a2)](),this['_call']('db',null,_0x3060d7(0x288),[_0x3cb14b],![]);}[_0xef20(0x39a)](){const _0x25a5f1=_0xef20,_0x3b2f13=Date[_0x25a5f1(0x8cc)]();if(this['_pressure']&&_0x3b2f13-this['_pressure']['at']<0xfa)return this[_0x25a5f1(0x38f)][_0x25a5f1(0x2ef)];const _0xff3de0=this[_0x25a5f1(0x210)]('db',null,_0x25a5f1(0x39a),[],![]);return this['_pressure']={'at':_0x3b2f13,'value':_0xff3de0},_0xff3de0;}[_0xef20(0x7a2)](){const _0x13a40a=_0xef20;if(!this[_0x13a40a(0x663)])throw new _0x370fe4(_0x13a40a(0x39c),_0x13a40a(0x58e),{'state':this[_0x13a40a(0x74f)]});}get[_0xef20(0x611)](){const _0x5be729=_0xef20;if(this[_0x5be729(0x74f)]===_0x36d3a1['STOPPED']||!this[_0x5be729(0x663)])return null;if(this[_0x5be729(0x210)]('db',null,_0x5be729(0x1fb),[],![])==null)return null;if(!this[_0x5be729(0x326)]){const _0x56e20a=this;this[_0x5be729(0x326)]={get 'state'(){const _0x126334=_0x5be729;return _0x56e20a[_0x126334(0x210)]('db',null,_0x126334(0x1fb),[],![]);},get 'magic'(){const _0x2468ff=_0x5be729;return Buffer[_0x2468ff(0x48d)](_0x2468ff(0x79d)+_0x56e20a['id']);},get 'isRunning'(){const _0x583a9e=_0x5be729;return _0x56e20a[_0x583a9e(0x210)]('db',null,_0x583a9e(0x1fb),[],![])===_0x583a9e(0x3c4);},'emit'(_0x8c36fb,_0x576de2=''){const _0x255121=_0x5be729;_0x56e20a['_call']('db',null,_0x255121(0x2cf),[_0x8c36fb,String(_0x576de2)],![]);}};}return this[_0x5be729(0x326)];}[_0xef20(0x80d)](_0x3afedb,_0x3f6099){const _0x5c4cfa=_0xef20;this[_0x5c4cfa(0x611)]?.[_0x5c4cfa(0x5a2)](_0x5c4cfa(0x7c9),JSON[_0x5c4cfa(0x35a)]({'kind':_0x5c4cfa(0x30c),'scope':_0x3afedb,'key':_0x3f6099}));}get[_0xef20(0x438)](){const _0x3e3fdf=_0xef20;return this[_0x3e3fdf(0x5d7)]||(this[_0x3e3fdf(0x5d7)]=new(requireLock())['NativeLock'](this,_0x3e3fdf(0x5b5),_0x3e3fdf(0x706)));}get[_0xef20(0x406)](){const _0x12ff63=_0xef20;return this[_0x12ff63(0x34d)]?this[_0x12ff63(0x34d)]['db']:undefined;}get[_0xef20(0x399)](){const _0x29f47e=_0xef20,_0x5a719f=this[_0x29f47e(0x34d)]?.[_0x29f47e(0x5fa)];if(!_0x5a719f)return null;const _0x32b355=_0x5a719f[_0x29f47e(0x47e)]()[_0x29f47e(0x73d)](_0x158877=>_0x158877[_0x29f47e(0x447)]?.[_0x29f47e(0x54b)]===_0x29f47e(0x8ea));return _0x32b355?_0x5a719f[_0x29f47e(0x4c7)](_0x32b355['id'],_0x32b355[_0x29f47e(0x324)]):null;}get[_0xef20(0x34d)](){const _0x5ce7b0=_0xef20;return this[_0x5ce7b0(0x663)]?this[_0x5ce7b0(0x612)][_0x5ce7b0(0x309)](_0x5ce7b0(0x5b5)):undefined;}['_ensureEnv'](_0x5d2732){const _0x31035a=_0xef20;let _0x313c8e=Map[_0x31035a(0x511)][_0x31035a(0x309)][_0x31035a(0x4d1)](this[_0x31035a(0x612)],_0x5d2732);if(!_0x313c8e){_0x313c8e=new _0x3c3dc3(this,_0x5d2732),Map[_0x31035a(0x511)][_0x31035a(0x63f)][_0x31035a(0x4d1)](this[_0x31035a(0x612)],_0x5d2732,_0x313c8e);if(_0x5d2732==='default')this[_0x31035a(0x716)]=_0x313c8e;}return _0x313c8e;}[_0xef20(0x609)](_0x29f45d=_0xef20(0x2a6)){const _0x59f57d=_0xef20,_0x53dfb3=this[_0x59f57d(0x612)][_0x59f57d(0x309)](_0x29f45d);if(_0x53dfb3)return _0x53dfb3;if(this[_0x59f57d(0x663)]&&this[_0x59f57d(0x210)]('db',null,_0x59f57d(0x805),[_0x29f45d],![]))return this[_0x59f57d(0x6df)](_0x29f45d);throw new _0x370fe4(_0x59f57d(0x6e4)+_0x29f45d+_0x59f57d(0x53b),'ENV_NOT_FOUND');}get[_0xef20(0x2a6)](){const _0x1b2750=_0xef20;return this[_0x1b2750(0x609)](_0x1b2750(0x2a6));}get[_0xef20(0x3f0)](){const _0x40e0ed=_0xef20;return this['_envs']['get'](_0x40e0ed(0x2a6))??this['_defaultEnvObj'];}get[_0xef20(0x87a)](){const _0x3b7047=_0xef20;return this[_0x3b7047(0x3f0)][_0x3b7047(0x87a)];}get[_0xef20(0x622)](){return this['_defaultEnv']['queue'];}[_0xef20(0x347)](_0xb12fba){const _0xa2cc68=_0xef20;if(!this[_0xa2cc68(0x663)])return null;return this[_0xa2cc68(0x210)]('db',null,_0xa2cc68(0x86d),[_0xb12fba],![])?{'ref'(){},'unref'(){}}:null;}get[_0xef20(0x67e)](){const _0x1dd073=_0xef20;return this[_0x1dd073(0x347)](_0x1dd073(0x3cc));}[_0xef20(0x213)](){const _0x5d4da7=_0xef20;return this[_0x5d4da7(0x210)]('db',null,_0x5d4da7(0x8af),[],!![]);}get[_0xef20(0x315)](){const _0x2de80d=_0xef20;return this[_0x2de80d(0x347)](_0x2de80d(0x325));}get[_0xef20(0x658)](){return this['_timerHandle']('writerWatchdog');}get[_0xef20(0x80b)](){const _0x312542=_0xef20;return this[_0x312542(0x609)](_0x312542(0x2a6))[_0x312542(0x80b)];}get[_0xef20(0x2aa)](){throw new _0x370fe4('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.','WORKERS_REMOVED');}get['processor'](){const _0x805bca=_0xef20;return this[_0x805bca(0x3f0)][_0x805bca(0x5fa)];}get[_0xef20(0x876)](){const _0x26c20b=_0xef20;return this[_0x26c20b(0x3f0)][_0x26c20b(0x876)];}async[_0xef20(0x3d0)](_0x4c95f0,_0x2cf21d={}){const _0x16b29d=_0xef20;this[_0x16b29d(0x7a2)]();if(_0x2cf21d&&typeof _0x2cf21d[_0x16b29d(0x32b)]==='function'){const _0x5b4179=_0x2cf21d[_0x16b29d(0x32b)];this[_0x16b29d(0x55b)](_0x4c95f0,await _0x5b4179(_0x4c95f0),!![]),this[_0x16b29d(0x7d4)]['envs'][_0x16b29d(0x63f)](_0x4c95f0,_0x5b4179),_0x2cf21d={..._0x2cf21d,'encryptionKey':!![]};}return this[_0x16b29d(0x210)]('db',null,_0x16b29d(0x3d0),[_0x4c95f0,_0x2cf21d]),this['_ensureEnv'](_0x4c95f0);}async[_0xef20(0x638)](_0x24afbd){const _0x4e90a1=_0xef20;if(!this[_0x4e90a1(0x663)])throw new _0x370fe4(_0x4e90a1(0x6cd)+_0x24afbd+_0x4e90a1(0x5ce),_0x4e90a1(0x58e));return this[_0x4e90a1(0x210)]('db',null,_0x4e90a1(0x638),[_0x24afbd]),this['_ensureEnv'](_0x24afbd);}get[_0xef20(0x385)](){const _0x240aa0=_0xef20;if(!this[_0x240aa0(0x3ff)]&&this[_0x240aa0(0x663)]){const _0x1e34d2=requireOkdbRelay(),_0x5b5e1c=new _0x1e34d2(this,this[_0x240aa0(0x688)]?.[_0x240aa0(0x7ed)]?.['relay']??{});_0x5b5e1c[_0x240aa0(0x29a)](),_0x5b5e1c[_0x240aa0(0x5b1)]=!![],this['__adminRelay']=_0x5b5e1c;}return this[_0x240aa0(0x3ff)]??null;}set[_0xef20(0x385)](_0x170d5e){const _0x1271f1=_0xef20;this[_0x1271f1(0x3ff)]=_0x170d5e;}get[_0xef20(0x78b)](){const _0x294c0a=_0xef20;let _0x4b7ee0=0x0;if(this['_isOpen'])for(const [_0x50bf8b]of Map[_0x294c0a(0x511)]['entries'][_0x294c0a(0x4d1)](this['_envs'])){try{_0x4b7ee0+=this['_call'](_0x294c0a(0x614),_0x50bf8b,'gateQuanta',[],![])||0x0;}catch{}}return{'total':_0x4b7ee0,'maxObserved':_0x4b7ee0>0x0?0x1:0x0,'inFlight':0x0};}async[_0xef20(0x6c9)](_0x357100){const _0x38bb00=_0xef20,_0x5ad0ff=this[_0x38bb00(0x612)][_0x38bb00(0x309)](_0x357100);if(_0x5ad0ff)return _0x5ad0ff;if(!this[_0x38bb00(0x210)]('db',null,_0x38bb00(0x805),[_0x357100],![]))throw new Error(_0x38bb00(0x47d)+_0x357100+'\x22\x20not\x20found\x20in\x20~envs');return this[_0x38bb00(0x638)](_0x357100);}async[_0xef20(0x7e6)](_0x492d85){const _0x584138=_0xef20,_0x1c586b=this[_0x584138(0x210)]('db',null,_0x584138(0x1cd),[_0x492d85]);return this[_0x584138(0x612)][_0x584138(0x2cb)](_0x492d85),_0x1c586b;}async[_0xef20(0x30d)](_0x3b066c,_0x254a70={}){const _0x44b46d=_0xef20;this['_assertOpen']();const _0x1a19f5=this[_0x44b46d(0x210)]('db',null,'removeEnvironment',[_0x3b066c,_0x254a70]);return this[_0x44b46d(0x612)][_0x44b46d(0x2cb)](_0x3b066c),_0x1a19f5;}static get[_0xef20(0x2d1)](){const _0x4f2873=_0xef20;return _0x16d1b5[_0x4f2873(0x2d1)];}static get[_0xef20(0x523)](){return _0x16d1b5['KNOWN_OPTIONS'];}static get[_0xef20(0x2c1)](){const _0x4b4df2=_0xef20;return _0x16d1b5[_0x4b4df2(0x2c1)];}static async[_0xef20(0x2ac)](_0x1b6859,_0x1a994d){const _0x521784=_0xef20;return _0x4cc447('db',_0x521784(0x2ac),[_0x1b6859,_0x1a994d]);}static['reidentify'](_0x39b8d0){const _0x38e108=_0xef20;return _0x4cc447('db',_0x38e108(0x2da),[_0x39b8d0]);}static[_0xef20(0x40d)](_0x568707,_0x1c6e73){const _0x32a066=_0xef20;_0x4cc447(_0x32a066(0x876),'registerBucketProjection',[_0x568707,_0x1c6e73]);}static[_0xef20(0x23a)](_0x206922,_0x351eb0){const _0x21ae70=_0xef20;_0x4cc447(_0x21ae70(0x876),_0x21ae70(0x23a),[_0x206922,_0x351eb0]);}static[_0xef20(0x1cf)](){}[_0xef20(0x2a1)](_0x3ced84,_0x356e8f){return require$$16['isDeepStrictEqual'](_0x3ced84,_0x356e8f);}}_0x4514d2[_0xef20(0x67a)]=_0x337090,Object['defineProperty'](_0x4514d2,'_unknownOptionsWarned',{'get'(){const _0x512146=_0xef20;return _0x4514d2['__warned']||(_0x4514d2[_0x512146(0x75a)]=new Set());},'set'(_0x380c2e){const _0x3faa75=_0xef20;_0x4514d2[_0x3faa75(0x75a)]=_0x380c2e;try{_0x4cc447('db',_0x3faa75(0x60d),[]);}catch{}},'configurable':!![]});for(const _0x3e7f7f of[_0xef20(0x68f),'txn',_0xef20(0x253),_0xef20(0x5b4),_0xef20(0x65b),'create',_0xef20(0x504),_0xef20(0x309),_0xef20(0x233),_0xef20(0x3a0),'getRange',_0xef20(0x88a),_0xef20(0x300),_0xef20(0x8ce),_0xef20(0x764),_0xef20(0x2dd),_0xef20(0x5c4),_0xef20(0x416),'query',_0xef20(0x853),_0xef20(0x6db),_0xef20(0x343),_0xef20(0x1be),'ensure',_0xef20(0x28f),_0xef20(0x414),_0xef20(0x2a4),'registerIndex',_0xef20(0x5f8),_0xef20(0x8e3),_0xef20(0x591),_0xef20(0x864),_0xef20(0x38b),_0xef20(0x7da),'hasUniqueViolations',_0xef20(0x212),_0xef20(0x3b3),_0xef20(0x4d6),_0xef20(0x246),'getTTL','clearTTL',_0xef20(0x2a9),_0xef20(0x8b0),_0xef20(0x722),_0xef20(0x686),_0xef20(0x456),'clearDefaultTTL',_0xef20(0x400),'range',_0xef20(0x8cc)]){_0x4514d2[_0xef20(0x511)][_0x3e7f7f]=function(..._0x41af07){const _0x2bd1c8=_0xef20,_0x4c8680=this[_0x2bd1c8(0x609)](_0x2bd1c8(0x2a6));return _0x4c8680[_0x3e7f7f](..._0x41af07);};}function _0x568e4a(_0x4a5954){const _0x1c695a=_0xef20,_0x33398a=_0x27837b=>()=>{throw new Error('db.processors.'+_0x27837b+'\x20was\x20removed\x20in\x20okdb\x202.0.\x20Use\x20processors:true\x20for\x20plain\x20lease\x20participation.\x20See\x20docs/upgrade-2.0.md.');};return{'process':_0x33398a(_0x1c695a(0x36c)),'processRest':_0x33398a(_0x1c695a(0x2e4)),'processEverything':_0x33398a(_0x1c695a(0x532)),async 'start'(){const _0x260248=_0x1c695a;return _0x4a5954[_0x260248(0x210)]('db',null,_0x260248(0x319),[]);},async 'stop'(){const _0xa5305e=_0x1c695a;return _0x4a5954[_0xa5305e(0x210)]('db',null,_0xa5305e(0x736),[]);},'status'(){const _0xdfcd6a=_0x1c695a;return _0x4a5954['_call']('db',null,_0xdfcd6a(0x282),[],![]);},get 'participating'(){const _0x3835d6=_0x1c695a;return _0x4a5954[_0x3835d6(0x210)]('db',null,_0x3835d6(0x70b),[],![]);},get '_participate'(){const _0x373296=_0x1c695a;return _0x4a5954[_0x373296(0x210)]('db',null,'processorsParticipating',[],![]);}};}function _0x4cc447(_0x40072a,_0x18a8af,_0x45b627){const _0x10db65=_0xef20;_0x53ab5b();try{return _0x4d4498()[_0x10db65(0x3cd)](_0x40072a,_0x18a8af,_0x45b627);}catch(_0x28aad6){throw _0x4e6f50(_0x28aad6);}}_0x3578a0[_0xef20(0x28e)]=_0x4514d2,_0x3578a0['exports'][_0xef20(0x29e)]=_0x4cc447,_0x3578a0[_0xef20(0x28e)]['OKDB']=_0x4514d2,_0x3578a0[_0xef20(0x28e)][_0xef20(0x67a)]=_0x337090,_0x3578a0['exports'][_0xef20(0x2a6)]=_0x4514d2,Object[_0xef20(0x1fd)](_0x3578a0[_0xef20(0x28e)],_0xef20(0x6f0),{'get':()=>require$$1$1[_0xef20(0x6c8)]?.()??null,'enumerable':![],'configurable':!![]});}(lib),lib[_0x39e754(0x28e)];}var libExports=requireLib(),index=getDefaultExportFromCjs(libExports);module[_0x5c70f8(0x28e)]=index;
|
|
1
|
+
'use strict';const _0x2ec26e=_0x3ebb;(function(_0x2d30ab,_0x572eb5){const _0x278fc5=_0x3ebb,_0x88fac0=_0x2d30ab();while(!![]){try{const _0x205662=-parseInt(_0x278fc5(0x1f8))/0x1+-parseInt(_0x278fc5(0x24e))/0x2+parseInt(_0x278fc5(0x241))/0x3+parseInt(_0x278fc5(0x2cb))/0x4*(parseInt(_0x278fc5(0x4a9))/0x5)+-parseInt(_0x278fc5(0x6a7))/0x6*(-parseInt(_0x278fc5(0x61c))/0x7)+-parseInt(_0x278fc5(0x6ab))/0x8+parseInt(_0x278fc5(0x800))/0x9;if(_0x205662===_0x572eb5)break;else _0x88fac0['push'](_0x88fac0['shift']());}catch(_0x49d254){_0x88fac0['push'](_0x88fac0['shift']());}}}(_0x1561,0xf3dd2));var require$$0$6=require(_0x2ec26e(0x5a0)),require$$1$1=require('./native-loader.js'),require$$0=require(_0x2ec26e(0x68a)),require$$1=require(_0x2ec26e(0x5c2)),require$$4=require('node:path'),require$$0$2=require(_0x2ec26e(0x5d6)),require$$0$1=require(_0x2ec26e(0x46f)),require$$16=require(_0x2ec26e(0x488)),require$$0$3=require('node:http'),require$$2=require('node:cluster'),require$$18=require(_0x2ec26e(0x668)),require$$0$4=require(_0x2ec26e(0x83d)),require$$0$5=require('sift');function getDefaultExportFromCjs(_0x29af9a){const _0x545d95=_0x2ec26e;return _0x29af9a&&_0x29af9a['__esModule']&&Object[_0x545d95(0x455)][_0x545d95(0x5a6)][_0x545d95(0x853)](_0x29af9a,_0x545d95(0x822))?_0x29af9a['default']:_0x29af9a;}var lib={'exports':{}},okdbError,hasRequiredOkdbError;function requireOkdbError(){if(hasRequiredOkdbError)return okdbError;hasRequiredOkdbError=0x1;class _0x2bcdaa extends Error{constructor(_0x4ad01f,_0x175492,_0x29083f={}){const _0x10f21b=_0x3ebb;super(_0x4ad01f),this[_0x10f21b(0x6fe)]=_0x10f21b(0x420),this[_0x10f21b(0x748)]=_0x175492,this[_0x10f21b(0x79f)]=_0x29083f,_0x29083f['cause']&&(this['cause']=_0x29083f[_0x10f21b(0x35c)]),Error[_0x10f21b(0x299)](this,this[_0x10f21b(0x609)]);}}class _0x39e557 extends _0x2bcdaa{constructor(_0x363e16,_0x439eec,_0x1e3e5b,_0x45d5a4){const _0x4cc011=_0x3ebb;super('Version\x20mismatch\x20for\x20'+_0x363e16+'@'+_0x439eec+_0x4cc011(0x43e)+_0x1e3e5b+_0x4cc011(0x464)+_0x45d5a4,_0x4cc011(0x17b),{'type':_0x363e16,'key':_0x439eec,'expectedVersion':_0x1e3e5b,'actualVersion':_0x45d5a4}),this[_0x4cc011(0x6fe)]=_0x4cc011(0x26e);}}class _0x4b94b2 extends _0x2bcdaa{constructor(_0x1c5bdf,_0x33b3b9){const _0x51968e=_0x3ebb;super(_0x1c5bdf+'@'+_0x33b3b9+_0x51968e(0x7e6),_0x51968e(0x4cd),{'type':_0x1c5bdf,'key':_0x33b3b9}),this[_0x51968e(0x6fe)]=_0x51968e(0x19c);}}class _0x85077d extends _0x2bcdaa{constructor(_0x3c44a2,_0x4a662){const _0x45fa17=_0x3ebb;super(_0x3c44a2+'@'+_0x4a662+_0x45fa17(0x634),'ALREADY_EXISTS',{'type':_0x3c44a2,'key':_0x4a662}),this['name']='OKDBAlreadyExistsError';}}class _0x1845f2 extends _0x2bcdaa{constructor(_0x1f26d0,_0x3af53c){const _0x471a97=_0x3ebb,_0x268dca=typeof _0x3af53c;super('Invalid\x20index\x20key\x20type\x20for\x20\x27'+_0x1f26d0+_0x471a97(0x7ed)+_0x268dca+_0x471a97(0x260)+_0x3af53c,_0x471a97(0x7bf),{'index':_0x1f26d0,'key':_0x3af53c,'keyType':_0x268dca}),this['name']='OKDBInvalidIndexKeyError';}}class _0x3abb9d extends _0x2bcdaa{constructor(_0x284046){const _0x525064=_0x3ebb,_0x488e43=typeof _0x284046;super('Invalid\x20primary\x20key\x20type:\x20'+_0x488e43+'.\x20Primary\x20keys\x20must\x20be\x20string\x20or\x20number.\x20Got:\x20'+_0x284046,_0x525064(0x787),{'key':_0x284046,'keyType':_0x488e43}),this[_0x525064(0x6fe)]=_0x525064(0x889);}}class _0x3d8088 extends _0x2bcdaa{constructor(_0x3c386f){const _0x340827=_0x3ebb;super('Type\x20\x27'+_0x3c386f+_0x340827(0x1df),_0x340827(0x249),{'type':_0x3c386f}),this[_0x340827(0x6fe)]=_0x340827(0x5b2);}}class _0x376efd extends _0x2bcdaa{constructor(_0x596b10){const _0x8e2a6e=_0x3ebb;super(_0x8e2a6e(0x5a7)+_0x596b10+_0x8e2a6e(0x6d5),_0x8e2a6e(0x693),{'type':_0x596b10}),this[_0x8e2a6e(0x6fe)]='OKDBTypeAlreadyRegisteredError';}}class _0x4e67be extends _0x2bcdaa{constructor(_0x33b047,_0x9091a5){const _0x40557d=_0x3ebb;super(_0x40557d(0x4c3)+_0x9091a5+_0x40557d(0x22f)+_0x33b047+_0x40557d(0x1df),_0x40557d(0x841),{'type':_0x33b047,'index':_0x9091a5}),this[_0x40557d(0x6fe)]=_0x40557d(0x71b);}}class _0x326be2 extends _0x2bcdaa{constructor(_0xcdb2d2,_0x2282ef){const _0x3b2c1b=_0x3ebb;super(_0x3b2c1b(0x4c3)+_0x2282ef+_0x3b2c1b(0x22f)+_0xcdb2d2+_0x3b2c1b(0x192),_0x3b2c1b(0x850),{'type':_0xcdb2d2,'index':_0x2282ef}),this['name']=_0x3b2c1b(0x670);}}class _0x176cef extends _0x2bcdaa{constructor(_0x4d3e7a,_0x39de21={}){const _0x4104fe=_0x3ebb;super(_0x4d3e7a,_0x4104fe(0x716),_0x39de21),this['name']=_0x4104fe(0x62d);}}class _0x20f7a8 extends _0x2bcdaa{constructor(_0x2c9e40,_0x26f097,_0x1bde76,_0x460e39,_0x41fb29){const _0x2c90ef=_0x3ebb;super(_0x2c90ef(0x3e9)+_0x2c9e40+'@'+_0x26f097+_0x2c90ef(0x411)+_0x1bde76+_0x2c90ef(0x899)+_0x460e39+_0x2c90ef(0x3de)+_0x41fb29+'\x27','UNIQUE_CONSTRAINT',{'type':_0x2c9e40,'index':_0x26f097,'indexKey':_0x1bde76,'existingKey':_0x460e39,'conflictingKey':_0x41fb29}),this[_0x2c90ef(0x6fe)]=_0x2c90ef(0x418);}}class _0x46237f extends _0x2bcdaa{constructor(_0x294fef,_0x506446,_0x2d5b15){const _0x1c03fe=_0x3ebb;super('Schema\x20validation\x20failed\x20for\x20'+_0x294fef+'@'+_0x506446,'SCHEMA_VALIDATION_FAILED',{'type':_0x294fef,'key':_0x506446,'errors':_0x2d5b15}),this[_0x1c03fe(0x6fe)]=_0x1c03fe(0x323),this[_0x1c03fe(0x673)]=_0x294fef,this['key']=_0x506446,this[_0x1c03fe(0x278)]=_0x2d5b15;}}class _0x3e91b9 extends _0x2bcdaa{constructor(_0x2610c4,_0x3c9f95){const _0x5a8dd3=_0x3ebb;super(_0x5a8dd3(0x6ff)+_0x2610c4+':\x20'+_0x3c9f95[_0x5a8dd3(0x6cf)]+_0x5a8dd3(0x85e),_0x5a8dd3(0x1aa),{'type':_0x2610c4,'failures':_0x3c9f95}),this['name']='OKDBSchemaCollectionError',this['type']=_0x2610c4,this['failures']=_0x3c9f95;}}class _0x242e51 extends _0x2bcdaa{constructor(_0x1910ab,_0x49d85b,_0x52609c,_0x3693c4,_0x402ff5){const _0x504ef4=_0x3ebb;super('Foreign\x20key\x20violation:\x20'+_0x1910ab+'@'+_0x49d85b+'.'+_0x52609c+_0x504ef4(0x4d6)+_0x3693c4+'@'+_0x402ff5+_0x504ef4(0x70b),_0x504ef4(0x3d6),{'sourceType':_0x1910ab,'sourceKey':_0x49d85b,'fieldPath':_0x52609c,'targetType':_0x3693c4,'targetKey':_0x402ff5}),this[_0x504ef4(0x6fe)]=_0x504ef4(0x57f),this[_0x504ef4(0x4ab)]=_0x1910ab,this[_0x504ef4(0x514)]=_0x49d85b,this['fieldPath']=_0x52609c,this['targetType']=_0x3693c4,this[_0x504ef4(0x768)]=_0x402ff5;}}class _0x469012 extends _0x2bcdaa{constructor(_0x27f6b4,_0x5db2dc,_0x4685ea){const _0x533b97=_0x3ebb;super(_0x533b97(0x198)+_0x27f6b4+'@'+_0x5db2dc+':\x20'+_0x4685ea['length']+_0x533b97(0x774),_0x533b97(0x5d7),{'targetType':_0x27f6b4,'targetKey':_0x5db2dc,'references':_0x4685ea}),this[_0x533b97(0x6fe)]=_0x533b97(0x7cc),this[_0x533b97(0x749)]=_0x27f6b4,this[_0x533b97(0x768)]=_0x5db2dc,this[_0x533b97(0x54c)]=_0x4685ea;}}class _0x5f4ed7 extends _0x2bcdaa{constructor(_0x3ebc1,_0x1d8d21,_0x167aa8){const _0x1ebb2a=_0x3ebb;super(_0x1ebb2a(0x7dd)+_0x1d8d21+_0x1ebb2a(0x5ba)+_0x3ebc1+_0x1ebb2a(0x564)+_0x167aa8[_0x1ebb2a(0x1a7)](_0x3eeeb1=>_0x3eeeb1[_0x1ebb2a(0x233)]+':'+_0x3eeeb1[_0x1ebb2a(0x6fe)])[_0x1ebb2a(0x3d2)](',\x20'),'INDEX_HAS_CONSUMERS',{'type':_0x3ebc1,'index':_0x1d8d21,'usedBy':_0x167aa8}),this[_0x1ebb2a(0x6fe)]='OKDBIndexHasConsumersError';}}return okdbError={'OKDBError':_0x2bcdaa,'OKDBVersionMismatchError':_0x39e557,'OKDBNotFoundError':_0x4b94b2,'OKDBAlreadyExistsError':_0x85077d,'OKDBInvalidIndexKeyError':_0x1845f2,'OKDBInvalidPrimaryKeyError':_0x3abb9d,'OKDBTypeNotRegisteredError':_0x3d8088,'OKDBTypeAlreadyRegisteredError':_0x376efd,'OKDBIndexNotRegisteredError':_0x4e67be,'OKDBIndexAlreadyRegisteredError':_0x326be2,'OKDBInvalidValueError':_0x176cef,'OKDBUniqueConstraintError':_0x20f7a8,'OKDBSchemaValidationError':_0x46237f,'OKDBSchemaCollectionError':_0x3e91b9,'OKDBForeignKeyError':_0x242e51,'OKDBForeignKeyDeleteError':_0x469012,'OKDBIndexHasConsumersError':_0x5f4ed7},okdbError;}var errors,hasRequiredErrors;function requireErrors(){const _0x1bac9f=_0x2ec26e;if(hasRequiredErrors)return errors;hasRequiredErrors=0x1;const _0x3aec48=requireOkdbError(),_0x1d34ee={'VERSION_MISMATCH':_0x3aec48['OKDBVersionMismatchError'],'NOT_FOUND':_0x3aec48[_0x1bac9f(0x19c)],'ALREADY_EXISTS':_0x3aec48[_0x1bac9f(0x848)],'INVALID_INDEX_KEY':_0x3aec48[_0x1bac9f(0x570)],'INVALID_PRIMARY_KEY':_0x3aec48[_0x1bac9f(0x889)],'TYPE_NOT_REGISTERED':_0x3aec48[_0x1bac9f(0x5b2)],'TYPE_ALREADY_REGISTERED':_0x3aec48[_0x1bac9f(0x2a5)],'INDEX_NOT_REGISTERED':_0x3aec48['OKDBIndexNotRegisteredError'],'INDEX_ALREADY_REGISTERED':_0x3aec48['OKDBIndexAlreadyRegisteredError'],'INVALID_VALUE':_0x3aec48[_0x1bac9f(0x62d)],'UNIQUE_CONSTRAINT':_0x3aec48[_0x1bac9f(0x418)],'SCHEMA_VALIDATION_FAILED':_0x3aec48[_0x1bac9f(0x323)],'SCHEMA_COLLECTION_INVALID':_0x3aec48['OKDBSchemaCollectionError'],'FOREIGN_KEY_VIOLATION':_0x3aec48[_0x1bac9f(0x57f)],'FOREIGN_KEY_DELETE_RESTRICTED':_0x3aec48[_0x1bac9f(0x7cc)],'INDEX_HAS_CONSUMERS':_0x3aec48['OKDBIndexHasConsumersError']};class _0x5aba61 extends _0x3aec48[_0x1bac9f(0x420)]{constructor(_0x4a5e46,_0x336bb1){const _0x2be105=_0x1bac9f;super(_0x4a5e46+_0x2be105(0x365)+(_0x336bb1?'\x20('+_0x336bb1+')':''),'NOT_IMPLEMENTED_NATIVE',{'feature':_0x4a5e46}),this[_0x2be105(0x6fe)]=_0x2be105(0x61f);}}function _0x37cc83(_0x250bb2){const _0x2f662d=_0x1bac9f;if(!_0x250bb2||typeof _0x250bb2!=='object'||!_0x250bb2['__okdb'])return _0x250bb2;delete _0x250bb2[_0x2f662d(0x45c)];const _0x4065b7=_0x250bb2[_0x2f662d(0x748)];if(_0x4065b7===_0x2f662d(0x538)||_0x4065b7===_0x2f662d(0x4a4)||_0x4065b7===_0x2f662d(0x2ff)){const _0x5f0d52=_0x4065b7===_0x2f662d(0x4a4)?TypeError['prototype']:_0x4065b7===_0x2f662d(0x2ff)?RangeError[_0x2f662d(0x455)]:Error[_0x2f662d(0x455)];Object[_0x2f662d(0x698)](_0x250bb2,_0x5f0d52),_0x250bb2[_0x2f662d(0x6fe)]=_0x4065b7;if(_0x250bb2[_0x2f662d(0x79f)]&&_0x250bb2[_0x2f662d(0x79f)][_0x2f662d(0x1c9)]!==undefined)_0x250bb2[_0x2f662d(0x1c9)]=_0x250bb2['details'][_0x2f662d(0x1c9)];return delete _0x250bb2[_0x2f662d(0x748)],delete _0x250bb2[_0x2f662d(0x79f)],_0x250bb2;}const _0x56f42e=_0x1d34ee[_0x4065b7];Object[_0x2f662d(0x698)](_0x250bb2,(_0x56f42e||_0x3aec48['OKDBError'])[_0x2f662d(0x455)]),_0x250bb2[_0x2f662d(0x6fe)]=_0x56f42e?_0x56f42e['name']['replace'](/^OKDB/,_0x2f662d(0x511)):_0x2f662d(0x420);const _0x44a7ff=_0x250bb2[_0x2f662d(0x79f)]||{};_0x4065b7===_0x2f662d(0x31a)&&(_0x250bb2[_0x2f662d(0x673)]=_0x44a7ff[_0x2f662d(0x673)],_0x250bb2[_0x2f662d(0x366)]=_0x44a7ff[_0x2f662d(0x366)],_0x250bb2[_0x2f662d(0x278)]=_0x44a7ff[_0x2f662d(0x278)]);_0x4065b7===_0x2f662d(0x1aa)&&(_0x250bb2[_0x2f662d(0x673)]=_0x44a7ff[_0x2f662d(0x673)],_0x250bb2['failures']=_0x44a7ff[_0x2f662d(0x543)]);if(_0x4065b7==='FOREIGN_KEY_VIOLATION'){for(const _0x509c93 of[_0x2f662d(0x4ab),_0x2f662d(0x514),_0x2f662d(0x5c7),_0x2f662d(0x749),_0x2f662d(0x768)])_0x250bb2[_0x509c93]=_0x44a7ff[_0x509c93];}if(_0x4065b7==='FOREIGN_KEY_DELETE_RESTRICTED'){for(const _0x30b7a0 of[_0x2f662d(0x749),_0x2f662d(0x768),_0x2f662d(0x54c)])_0x250bb2[_0x30b7a0]=_0x44a7ff[_0x30b7a0];}if(_0x44a7ff['cause'])_0x250bb2[_0x2f662d(0x35c)]=_0x44a7ff[_0x2f662d(0x35c)];if(_0x44a7ff[_0x2f662d(0x1c9)]!==undefined)_0x250bb2[_0x2f662d(0x1c9)]=_0x44a7ff['status'];if(_0x44a7ff[_0x2f662d(0x172)]!==undefined)_0x250bb2[_0x2f662d(0x172)]=_0x44a7ff['retryable'];return _0x250bb2;}function _0x89b48d(_0x11be88){const _0x27dac3=_0x1bac9f;if(_0x11be88===undefined)return _0x27dac3(0x809);if(_0x11be88===null)return _0x27dac3(0x69b);if(typeof _0x11be88==='string')return _0x11be88?_0x27dac3(0x4bb):_0x27dac3(0x4c4);if(typeof _0x11be88===_0x27dac3(0x6d8))return'function';if(typeof _0x11be88!==_0x27dac3(0x1be))return typeof _0x11be88;if(Array[_0x27dac3(0x69e)](_0x11be88))return _0x11be88[_0x27dac3(0x6cf)]?_0x27dac3(0x3c1):'empty\x20array';if(_0x11be88 instanceof Date)return _0x27dac3(0x223);if(_0x11be88 instanceof Map)return _0x27dac3(0x7d4);if(Buffer[_0x27dac3(0x292)](_0x11be88))return _0x27dac3(0x8a2);return _0x27dac3(0x1be);}const _0x46f0e1=(_0x42f45c,_0x56b5d6,_0x478c9c)=>new _0x3aec48[(_0x1bac9f(0x420))](_0x56b5d6,_0x42f45c,_0x478c9c),_0x17cd55=(_0x2266fe,_0x4692b0,_0x19ed6a)=>_0x46f0e1(_0x1bac9f(0x7d5),_0x2266fe+_0x1bac9f(0x1a0)+_0x4692b0+_0x1bac9f(0x508)+_0x89b48d(_0x19ed6a),{'argument':_0x2266fe,'expected':_0x4692b0,'got':_0x89b48d(_0x19ed6a)}),_0x1e0263=(_0xfc40e2,_0x2b402d)=>_0x46f0e1('INVALID_TYPE_NAME',_0xfc40e2+'\x20must\x20be\x20a\x20non-empty\x20string;\x20got\x20'+_0x89b48d(_0x2b402d),{'argument':_0xfc40e2,'expected':'non-empty\x20string','got':_0x89b48d(_0x2b402d)}),_0x384609=(_0x45ba5a,_0x2b4a65)=>_0x46f0e1('INVALID_OPTIONS',_0x45ba5a+':\x20'+_0x2b4a65,{'argument':_0x45ba5a,'problem':_0x2b4a65});function _0x1339a6(_0x20f569,_0xb86b62=_0x1bac9f(0x66a)){const _0x334dc6=_0x1bac9f;if(_0x20f569===undefined)return{};if(_0x20f569===null)throw _0x384609(_0xb86b62,_0x334dc6(0x498));return _0x20f569;}return errors={'reclass':_0x37cc83,'NotImplementedNative':_0x5aba61,'BY_CODE':_0x1d34ee,'describe':_0x89b48d,'invalidArgument':_0x17cd55,'invalidTypeName':_0x1e0263,'invalidOptions':_0x384609,'optionsArg':_0x1339a6,..._0x3aec48},errors;}var bridge_1,hasRequiredBridge;function requireBridge(){if(hasRequiredBridge)return bridge_1;hasRequiredBridge=0x1;const _0x2d91ae=new Map(),_0x92625b=new Map();let _0x4eabaa=0x1;const _0x4a6b7c=new Map(),_0x270701=new Map();let _0xae3cd2=0x1;const _0x2ce973=new Map();let _0x39ed61=0x1;const _0x41aea3=new Map();function _0x5bc300(_0x52c773,_0x10fe87=null){const _0x2fc005=_0x3ebb,_0x1d92b6=_0x39ed61++;_0x2ce973[_0x2fc005(0x328)](_0x1d92b6,_0x52c773);if(_0x10fe87)_0x41aea3[_0x2fc005(0x328)](_0x1d92b6,_0x10fe87);return _0x1d92b6;}function _0x42fd53(_0xac0ab0,_0x318147){const _0x129e7a=_0x3ebb,_0x3c8806=_0x2ce973[_0x129e7a(0x63c)](_0xac0ab0),_0x3cf50c=Array[_0x129e7a(0x455)][_0x129e7a(0x5ca)]['call'](arguments,0x2),_0x25b07d=_0x11b593=>_0x416b41(_0x11b593,_0x41aea3[_0x129e7a(0x63c)](_0xac0ab0));let _0x3e63d7=_0x3cf50c;if(_0x318147==='start'||_0x318147==='stop'||_0x318147===_0x129e7a(0x55a)||_0x318147===_0x129e7a(0x686)||_0x318147==='assertStartAllowed')_0x3e63d7=[_0x25b07d(_0x3cf50c[0x0])];else{if(_0x318147===_0x129e7a(0x5b6))_0x3e63d7=[_0x3cf50c[0x0],_0x3cf50c[0x1],_0x25b07d(_0x3cf50c[0x2])];else{if(_0x318147===_0x129e7a(0x5f2))_0x3e63d7=[_0x25b07d(_0x3cf50c[0x0])];}}let _0x50643f=_0x3c8806[_0x318147](..._0x3e63d7);if(_0x50643f&&typeof _0x50643f['then']===_0x129e7a(0x6d8))_0x50643f=_0x1df578(_0x50643f);if(_0x318147===_0x129e7a(0x898)){const _0x24c7cc=_0x50643f&&typeof _0x50643f===_0x129e7a(0x1be)?_0x5bc300(_0x50643f):_0x5bc300({});return{'$api':_0x24c7cc};}return _0x50643f===undefined?null:_0x50643f;}function _0x416b41(_0x4a7e0b,_0x2b5ac7){const _0x5d3e2f=_0x3ebb;let _0x3059d1=_0x278c0b[_0x5d3e2f(0x63c)](_0x4a7e0b[_0x5d3e2f(0x5f9)]);const _0x43a1e2=_0x3059d1&&_0x3059d1[_0x5d3e2f(0x21e)]||_0x2b5ac7||_0x402fed,_0x550d98=(_0x4a8083,..._0x5e8f01)=>_0x43a1e2[_0x5d3e2f(0x49e)](_0x5d3e2f(0x1a5),null,_0x4a8083,[_0x4a7e0b[_0x5d3e2f(0x673)],_0x4a7e0b[_0x5d3e2f(0x6fe)],..._0x5e8f01],!![]);return{'okdb':_0x43a1e2,'key':_0x4a7e0b[_0x5d3e2f(0x366)],'type':_0x4a7e0b[_0x5d3e2f(0x673)],'name':_0x4a7e0b[_0x5d3e2f(0x6fe)],get 'storeEnv'(){const _0x2ff0f2=_0x5d3e2f;if(!_0x3059d1&&_0x43a1e2&&_0x43a1e2[_0x2ff0f2(0x60a)]&&_0x4a7e0b['storeEnvName'])_0x3059d1=_0x43a1e2[_0x2ff0f2(0x8a5)][_0x2ff0f2(0x63c)](_0x4a7e0b[_0x2ff0f2(0x31d)]);return _0x3059d1;},'storeEnvName':_0x4a7e0b[_0x5d3e2f(0x31d)],'config':_0x4a7e0b['config'],'meta':_0x4a7e0b[_0x5d3e2f(0x47b)],'options':_0x4a7e0b[_0x5d3e2f(0x66a)],'emit':(_0x3c0c71,_0xf9a5e0)=>_0x550d98(_0x5d3e2f(0x545),_0x3c0c71,_0xf9a5e0),'updateStatus':async(_0x1f2e08,_0x1c1650)=>_0x550d98('ctxUpdateStatus',_0x1f2e08,_0x1c1650==null?null:String(_0x1c1650&&_0x1c1650[_0x5d3e2f(0x2d2)]?_0x1c1650[_0x5d3e2f(0x2d2)]:_0x1c1650)),'updateMeta':async _0x273a1c=>_0x550d98(_0x5d3e2f(0x20a),{'meta':_0x273a1c}),'updateConfig':async _0x1b87e7=>_0x550d98(_0x5d3e2f(0x20a),{'config':_0x1b87e7})};}function _0x27c48d(_0x31b942,_0x2c615e,_0x2f8c3f){const _0x5aa177=_0x3ebb;if(_0x31b942===_0x5aa177(0x264)){const _0x57539d=_0x17d024(_0x2c615e);let _0x3dbfe1=_0x57539d(_0x2f8c3f);if(_0x3dbfe1&&typeof _0x3dbfe1[_0x5aa177(0x2b0)]===_0x5aa177(0x6d8))_0x3dbfe1=_0x1df578(_0x3dbfe1);if(!_0x3dbfe1||typeof _0x3dbfe1['embed']!==_0x5aa177(0x6d8)){const {OKDBError:_0x343456}=requireErrors();throw new _0x343456(_0x5aa177(0x478)+(_0x2f8c3f&&_0x2f8c3f[_0x5aa177(0x673)])+_0x5aa177(0x866),_0x5aa177(0x86f));}return _0x3dbfe1[_0x5aa177(0x45c)]=_0x57539d[_0x5aa177(0x45c)],{'$id':_0x5bc300(_0x3dbfe1),'batch':typeof _0x3dbfe1[_0x5aa177(0x4ce)]===_0x5aa177(0x6d8)};}const _0x5c9243=_0x2ce973['get'](_0x2c615e);if(_0x31b942===_0x5aa177(0x209))return _0x2ce973['delete'](_0x2c615e),_0xa858b3[_0x5aa177(0x82f)](_0x2c615e),null;if(!_0x5c9243)throw new Error(_0x5aa177(0x41e));if(typeof _0x5c9243[_0x31b942]!==_0x5aa177(0x6d8))return null;if(_0x31b942===_0x5aa177(0x22c)||_0x31b942===_0x5aa177(0x4ce)){const _0x300a8a=_0x31b942==='embedBatch'?_0x355b0e(_0x2c615e,_0x5c9243,_0x2f8c3f):_0x42073e(_0x2c615e,_0x5c9243,_0x31b942,_0x2f8c3f);return _0x31b942===_0x5aa177(0x22c)?Array['from'](_0x300a8a):_0x300a8a[_0x5aa177(0x1a7)](_0x451a07=>Array[_0x5aa177(0x170)](_0x451a07));}let _0x363710=_0x5c9243[_0x31b942]();if(_0x363710&&typeof _0x363710[_0x5aa177(0x2b0)]===_0x5aa177(0x6d8))_0x363710=_0x1df578(_0x363710);return _0x363710===undefined?null:_0x363710;}function _0x9c9ea8(_0xfe8d41,_0x41688d,_0x3219d7){const _0x53bce1=_0x3ebb;if(_0xfe8d41===_0x53bce1(0x264)){const _0x1cb170=_0x17d024(_0x41688d);let _0x5d70bc=_0x1cb170(_0x3219d7[_0x53bce1(0x1dc)]??{},{'dims':_0x3219d7[_0x53bce1(0x4c6)],'dir':_0x3219d7[_0x53bce1(0x6ec)]});if(_0x5d70bc&&typeof _0x5d70bc['then']==='function')_0x5d70bc=_0x1df578(_0x5d70bc);for(const _0x10012e of[_0x53bce1(0x724),_0x53bce1(0x7df),_0x53bce1(0x42f),_0x53bce1(0x58c),_0x53bce1(0x3c2)]){if(!_0x5d70bc||typeof _0x5d70bc[_0x10012e]!==_0x53bce1(0x6d8)){const {OKDBError:_0x3ef780}=requireErrors();throw new _0x3ef780('Algorithm\x20factory\x20must\x20return\x20an\x20object\x20with\x20'+_0x10012e+'()',_0x53bce1(0x3d8),{'method':_0x10012e});}}return{'$id':_0x5bc300(_0x5d70bc)};}const _0x19168a=_0x2ce973[_0x53bce1(0x63c)](_0x41688d);if(_0xfe8d41===_0x53bce1(0x209))return _0x2ce973[_0x53bce1(0x82f)](_0x41688d),null;if(!_0x19168a)throw new Error(_0x53bce1(0x7e5));const _0x39a60a=_0x3d4229=>_0x3d4229?_0x3d4229[_0x53bce1(0x1a7)](_0x560d8b=>({'key':_0x560d8b[_0x53bce1(0x366)],'vector':Float32Array[_0x53bce1(0x170)](_0x560d8b[_0x53bce1(0x6c5)])})):null;let _0x4d9c39;switch(_0xfe8d41){case'load':case _0x53bce1(0x574):{const _0x1bf092=_0x39a60a(_0x3219d7);_0x4d9c39=_0x19168a[_0xfe8d41](_0x1bf092?async()=>_0x1bf092:undefined);break;}case'add':_0x4d9c39=_0x19168a['add'](_0x3219d7[0x0],Float32Array[_0x53bce1(0x170)](_0x3219d7[0x1]),_0x3219d7[0x2]??undefined);break;case _0x53bce1(0x42f):_0x4d9c39=_0x19168a['remove'](_0x3219d7);break;case'search':_0x4d9c39=_0x19168a['search'](Float32Array[_0x53bce1(0x170)](_0x3219d7[_0x53bce1(0x665)]),_0x3219d7['opts']??{});break;case _0x53bce1(0x175):_0x4d9c39=typeof _0x19168a[_0x53bce1(0x175)]==='function'?_0x19168a[_0x53bce1(0x175)](_0x3219d7??undefined):![];break;case _0x53bce1(0x893):_0x4d9c39=typeof _0x19168a[_0x53bce1(0x893)]===_0x53bce1(0x6d8)?_0x19168a[_0x53bce1(0x893)]():undefined;break;case'tick':_0x4d9c39=typeof _0x19168a['tick']===_0x53bce1(0x6d8)?_0x19168a[_0x53bce1(0x2b4)]():undefined;break;case'count':return Number(_0x19168a[_0x53bce1(0x3c2)]());case _0x53bce1(0x7c6):return(typeof _0x19168a[_0x53bce1(0x7c6)]===_0x53bce1(0x6d8)?_0x19168a[_0x53bce1(0x7c6)]():null)??{};default:throw new Error(_0x53bce1(0x2af)+_0xfe8d41);}if(_0x4d9c39&&typeof _0x4d9c39['then']===_0x53bce1(0x6d8))_0x4d9c39=_0x1df578(_0x4d9c39);return _0x4d9c39===undefined?null:_0x4d9c39;}function _0x44b07a(_0x14065f,_0x2336fa,_0x504bed){const _0x1996d0=_0x3ebb;if(_0x14065f===_0x1996d0(0x264)){const _0x48a17e=_0x17d024(_0x2336fa);let _0x4a5537=_0x48a17e(_0x504bed);if(_0x4a5537&&typeof _0x4a5537[_0x1996d0(0x2b0)]==='function')_0x4a5537=_0x1df578(_0x4a5537);if(!_0x4a5537)return null;const _0x2bc7a0=[_0x1996d0(0x4ca),_0x1996d0(0x1d5),_0x1996d0(0x63c),_0x1996d0(0x3c2),_0x1996d0(0x481),'stats'][_0x1996d0(0x852)](_0x34db33=>typeof _0x4a5537[_0x34db33]===_0x1996d0(0x6d8));return{'$id':_0x5bc300(_0x4a5537),'has':_0x2bc7a0};}const _0x5cc44f=_0x2ce973['get'](_0x2336fa);if(_0x14065f==='free')return _0x2ce973[_0x1996d0(0x82f)](_0x2336fa),null;if(!_0x5cc44f)throw new Error(_0x1996d0(0x472));const _0x364dc0=_0x4739b8=>Float32Array[_0x1996d0(0x170)](_0x4739b8);let _0x2fd55f;switch(_0x14065f){case _0x1996d0(0x27f):_0x2fd55f=_0x5cc44f['put'](_0x504bed[0x0],_0x364dc0(_0x504bed[0x1]));break;case'remove':_0x2fd55f=_0x5cc44f[_0x1996d0(0x42f)](_0x504bed);break;case _0x1996d0(0x868):{_0x2fd55f=typeof _0x5cc44f[_0x1996d0(0x868)]===_0x1996d0(0x6d8)?_0x5cc44f[_0x1996d0(0x868)]():[];if(_0x2fd55f&&typeof _0x2fd55f[_0x1996d0(0x2b0)]===_0x1996d0(0x6d8))_0x2fd55f=_0x1df578(_0x2fd55f);return Array[_0x1996d0(0x170)](_0x2fd55f??[],_0x528b6e=>({'key':_0x528b6e[_0x1996d0(0x366)],'vector':Array[_0x1996d0(0x170)](_0x528b6e[_0x1996d0(0x6c5)])}));}case _0x1996d0(0x4ca):_0x2fd55f=_0x5cc44f['write'](_0x504bed[_0x1996d0(0x33b)][_0x1996d0(0x1a7)](_0x1521e5=>({'key':_0x1521e5[_0x1996d0(0x366)],'vector':_0x364dc0(_0x1521e5[_0x1996d0(0x6c5)])})),_0x504bed[_0x1996d0(0x179)]);break;case _0x1996d0(0x1d5):_0x2fd55f=_0x5cc44f[_0x1996d0(0x1d5)](_0x504bed??undefined);if(_0x2fd55f&&typeof _0x2fd55f[_0x1996d0(0x2b0)]===_0x1996d0(0x6d8))_0x2fd55f=_0x1df578(_0x2fd55f);return Array[_0x1996d0(0x170)](_0x2fd55f??[]);case _0x1996d0(0x63c):{_0x2fd55f=_0x5cc44f[_0x1996d0(0x63c)](_0x504bed);if(_0x2fd55f&&typeof _0x2fd55f[_0x1996d0(0x2b0)]==='function')_0x2fd55f=_0x1df578(_0x2fd55f);return _0x2fd55f==null?null:Array[_0x1996d0(0x170)](_0x2fd55f);}case _0x1996d0(0x3c2):return Number(_0x5cc44f['count']());case _0x1996d0(0x481):_0x2fd55f=_0x5cc44f[_0x1996d0(0x481)]();break;case _0x1996d0(0x5e6):return _0x5cc44f[_0x1996d0(0x5e6)]()??null;default:throw new Error('storage\x20adapter\x20has\x20no\x20method\x20'+_0x14065f);}if(_0x2fd55f&&typeof _0x2fd55f[_0x1996d0(0x2b0)]===_0x1996d0(0x6d8))_0x2fd55f=_0x1df578(_0x2fd55f);return _0x2fd55f===undefined?null:_0x2fd55f;}const _0xe87166=new Map();function _0x42073e(_0xdf9f52,_0xff8a67,_0x722afd,_0x387ded){const _0x176a1d=_0x3ebb,_0x576953=_0xdf9f52+'\x00'+_0x722afd+'\x00'+JSON['stringify'](_0x387ded),_0xfa575d=_0xe87166[_0x176a1d(0x63c)](_0x576953);if(_0xfa575d){if(_0xfa575d[_0x176a1d(0x41c)]==='pending')throw _0x20e4ae();_0xe87166[_0x176a1d(0x82f)](_0x576953);if(_0xfa575d[_0x176a1d(0x41c)]===_0x176a1d(0x391))throw _0xfa575d[_0x176a1d(0x820)];return _0xfa575d[_0x176a1d(0x820)];}const _0x492fe4=_0xff8a67[_0x722afd](_0x387ded);if(!_0x492fe4||typeof _0x492fe4[_0x176a1d(0x2b0)]!=='function')return _0x492fe4;const _0xe3dd8a={'state':_0x176a1d(0x35d),'value':undefined};_0x492fe4['then'](_0x5e8cb7=>{const _0x55d60d=_0x176a1d;_0xe3dd8a[_0x55d60d(0x41c)]='ok',_0xe3dd8a[_0x55d60d(0x820)]=_0x5e8cb7;if(_0xe87166[_0x55d60d(0x63c)](_0x576953)===_0xe3dd8a)_0xbae1bb(_0xff8a67);},_0x2e494e=>{const _0x294c8a=_0x176a1d;_0xe3dd8a[_0x294c8a(0x41c)]=_0x294c8a(0x391),_0xe3dd8a[_0x294c8a(0x820)]=_0x2e494e;if(_0xe87166['get'](_0x576953)===_0xe3dd8a)_0xbae1bb(_0xff8a67);});for(let _0x1637d6=0x0;_0x1637d6<0x64&&_0xe3dd8a[_0x176a1d(0x41c)]===_0x176a1d(0x35d);_0x1637d6++)process[_0x176a1d(0x67c)]();if(_0xe3dd8a['state']==='ok')return _0xe3dd8a[_0x176a1d(0x820)];if(_0xe3dd8a[_0x176a1d(0x41c)]===_0x176a1d(0x391))throw _0xe3dd8a['value'];_0xe87166[_0x176a1d(0x328)](_0x576953,_0xe3dd8a);throw _0x20e4ae();}const _0xa858b3=new Map(),_0x14d8fe=0xa*0x3c*0x3e8;function _0x355b0e(_0x504c3c,_0x275b20,_0x498cb1){const _0x17c24e=_0x3ebb,_0x26e4bc=Array[_0x17c24e(0x69e)](_0x498cb1)?_0x498cb1:Array['from'](_0x498cb1??[]);let _0x2bf831=_0xa858b3[_0x17c24e(0x63c)](_0x504c3c);if(!_0x2bf831)_0xa858b3[_0x17c24e(0x328)](_0x504c3c,_0x2bf831=new Map());const _0x151b16=Date[_0x17c24e(0x89e)]();for(const [_0x297f0b,_0xc148bb]of _0x2bf831)if(_0xc148bb[_0x17c24e(0x2b5)][_0x17c24e(0x41c)]!==_0x17c24e(0x35d)&&_0x151b16-_0xc148bb['req']['at']>_0x14d8fe)_0x2bf831[_0x17c24e(0x82f)](_0x297f0b);const _0x3f17e8=_0x26e4bc[_0x17c24e(0x1a7)](_0x1a53f8=>JSON[_0x17c24e(0x4d2)](_0x1a53f8));let _0x1d97d5=![];const _0x2d6bc7=[],_0x51dd49=new Set();for(let _0xc2d7ca=0x0;_0xc2d7ca<_0x3f17e8[_0x17c24e(0x6cf)];_0xc2d7ca++){const _0x5d036c=_0x2bf831[_0x17c24e(0x63c)](_0x3f17e8[_0xc2d7ca]);if(!_0x5d036c)!_0x51dd49[_0x17c24e(0x51e)](_0x3f17e8[_0xc2d7ca])&&(_0x51dd49[_0x17c24e(0x7df)](_0x3f17e8[_0xc2d7ca]),_0x2d6bc7[_0x17c24e(0x2fb)](_0xc2d7ca));else{if(_0x5d036c[_0x17c24e(0x2b5)]['state']==='pending')_0x1d97d5=!![];else{if(_0x5d036c[_0x17c24e(0x2b5)][_0x17c24e(0x41c)]===_0x17c24e(0x391)){const _0x3386be=_0x5d036c['req']['value'];for(const [_0x9d28f9,_0x524384]of _0x2bf831)if(_0x524384[_0x17c24e(0x2b5)]===_0x5d036c[_0x17c24e(0x2b5)])_0x2bf831['delete'](_0x9d28f9);throw _0x3386be;}}}}if(_0x1d97d5)throw _0x20e4ae();if(_0x2d6bc7[_0x17c24e(0x6cf)]){const _0x34b211=_0x2d6bc7[_0x17c24e(0x1a7)](_0x20ddff=>_0x26e4bc[_0x20ddff]),_0x4ea429=_0x275b20[_0x17c24e(0x4ce)](_0x34b211),_0x985ad8={'state':'pending','value':undefined,'at':0x0},_0x12f9fb=(_0x255338,_0x296c26)=>{const _0x4f031a=_0x17c24e;_0x985ad8[_0x4f031a(0x41c)]=_0x255338,_0x985ad8[_0x4f031a(0x820)]=_0x296c26,_0x985ad8['at']=Date[_0x4f031a(0x89e)]();};if(!_0x4ea429||typeof _0x4ea429[_0x17c24e(0x2b0)]!==_0x17c24e(0x6d8))_0x12f9fb('ok',_0x4ea429);else{let _0x29659b=!![];_0x4ea429[_0x17c24e(0x2b0)](_0x24d64c=>{_0x12f9fb('ok',_0x24d64c);if(!_0x29659b)_0xbae1bb(_0x275b20);},_0x4002e3=>{const _0x32639a=_0x17c24e;_0x12f9fb(_0x32639a(0x391),_0x4002e3);if(!_0x29659b)_0xbae1bb(_0x275b20);});for(let _0x788233=0x0;_0x788233<0x64&&_0x985ad8[_0x17c24e(0x41c)]===_0x17c24e(0x35d);_0x788233++)process[_0x17c24e(0x67c)]();_0x29659b=![];}for(let _0x125087=0x0;_0x125087<_0x2d6bc7[_0x17c24e(0x6cf)];_0x125087++)_0x2bf831[_0x17c24e(0x328)](_0x3f17e8[_0x2d6bc7[_0x125087]],{'req':_0x985ad8,'index':_0x125087});if(_0x985ad8[_0x17c24e(0x41c)]===_0x17c24e(0x391)){for(const _0x4e3ce0 of _0x2d6bc7)_0x2bf831['delete'](_0x3f17e8[_0x4e3ce0]);throw _0x985ad8[_0x17c24e(0x820)];}if(_0x985ad8['state']===_0x17c24e(0x35d))throw _0x20e4ae();}const _0x5e617d=_0x3f17e8['map'](_0x16a99a=>{const _0x377b97=_0x17c24e,_0x36245f=_0x2bf831[_0x377b97(0x63c)](_0x16a99a),_0x21fad8=_0x36245f['req'][_0x377b97(0x820)];return _0x21fad8?_0x21fad8[_0x36245f[_0x377b97(0x3a9)]]:undefined;});for(const _0x1c9240 of _0x3f17e8)_0x2bf831[_0x17c24e(0x82f)](_0x1c9240);if(!_0x2bf831[_0x17c24e(0x221)])_0xa858b3['delete'](_0x504c3c);return _0x5e617d;}function _0x20e4ae(){const _0x34ae78=_0x3ebb;return Object[_0x34ae78(0x76f)](new Error('embedder\x20request\x20still\x20pending'),{'code':_0x34ae78(0x71c)});}function _0xbae1bb(_0x26b11c){const _0x59d944=_0x3ebb;_0x28fba2();try{const _0x467019=_0x26b11c[_0x59d944(0x45c)]||_0x402fed;if(_0x467019&&_0x467019[_0x59d944(0x60a)])_0x467019['_call']('events',null,_0x59d944(0x6d6),['embeddings:embed:settled',{}],!![]);}catch{}}function _0x2418f9(_0x25cc0f,_0x5e9cd0,_0x21166a){const _0x3b4fde=_0x3ebb,_0x378835=_0x2ce973[_0x3b4fde(0x63c)](_0x25cc0f);if(!_0x378835||typeof _0x378835[_0x5e9cd0]!=='function')return{'__absent':!![]};let _0x467cb9=_0x378835[_0x5e9cd0](...Array[_0x3b4fde(0x69e)](_0x21166a)?_0x21166a:[]);if(_0x467cb9&&typeof _0x467cb9[_0x3b4fde(0x2b0)]===_0x3b4fde(0x6d8))_0x467cb9=_0x1df578(_0x467cb9);return{'value':_0x467cb9===undefined?null:_0x467cb9};}const _0x4b86fc=new Map();let _0x9bd317=0x1;const _0x278c0b=new Map(),_0x168c6b=new Map();function _0x297456(_0x1c6d5f,_0x31c199=null){const _0xcaa4bd=_0x3ebb,_0x16490d=_0x9bd317++;_0x4b86fc[_0xcaa4bd(0x328)](_0x16490d,_0x1c6d5f);if(_0x31c199)_0x168c6b[_0xcaa4bd(0x328)](_0x16490d,_0x31c199);return _0x16490d;}function _0x6543be(_0x310f38){const _0x33233a=_0x3ebb;for(const [_0x72ed9b,_0x12ab08]of _0x278c0b)if(_0x12ab08&&_0x12ab08[_0x33233a(0x21e)]===_0x310f38)_0x278c0b[_0x33233a(0x82f)](_0x72ed9b);for(const [_0x2e9326,_0x1b0bba]of _0x41aea3)if(_0x1b0bba===_0x310f38)_0x41aea3[_0x33233a(0x82f)](_0x2e9326);for(const [_0x4b7520,_0x26e574]of _0x168c6b)_0x26e574===_0x310f38&&(_0x168c6b[_0x33233a(0x82f)](_0x4b7520),_0x4b86fc[_0x33233a(0x82f)](_0x4b7520));if(_0x402fed===_0x310f38)_0x402fed=null;}function _0x405316(_0xc74df,_0x5632b6){const _0x8e2845=_0x3ebb;_0x278c0b[_0x8e2845(0x328)](_0xc74df,_0x5632b6);}function _0x3dd118(_0x3468c2){const _0x15f8fe=_0x3ebb;if(_0x3468c2&&typeof _0x3468c2===_0x15f8fe(0x1be)&&Object['keys'](_0x3468c2)[_0x15f8fe(0x6cf)]===0x1&&_0x3468c2[_0x15f8fe(0x2b9)]!==undefined)return _0x4b86fc[_0x15f8fe(0x63c)](_0x3468c2[_0x15f8fe(0x2b9)]);return _0x3468c2;}function _0x1df578(_0x612e90){const _0x286198=_0x3ebb;let _0xf4102e=![],_0x480296=![],_0x401622;_0x612e90[_0x286198(0x2b0)](_0x38dd34=>{_0xf4102e=!![],_0x401622=_0x38dd34;},_0x1ff8dc=>{_0xf4102e=!![],_0x480296=!![],_0x401622=_0x1ff8dc;});for(let _0x1aec01=0x0;_0x1aec01<0x2710&&!_0xf4102e;_0x1aec01++)process[_0x286198(0x67c)]();if(!_0xf4102e)return _0x612e90[_0x286198(0x2b0)](undefined,_0x41a886=>{const _0x514e8a=_0x286198;try{process[_0x514e8a(0x59d)](_0x514e8a(0x3b6)+(_0x41a886&&_0x41a886[_0x514e8a(0x2d2)]?_0x41a886['message']:_0x41a886));}catch{}}),undefined;if(_0x480296)throw _0x401622;return _0x401622;}function _0x2be118(_0x40cf16,_0xfb1cb8,_0x41ba50){const _0x4b2b1f=_0x3ebb,_0x2eb981=_0x17d024(_0x40cf16),_0x5139a7=_0x278c0b['get'](_0xfb1cb8);try{const _0x2bff12=_0x2eb981(_0x41ba50,{'okdb':_0x5139a7&&_0x5139a7['okdb'],'env':_0x5139a7});if(_0x2bff12&&typeof _0x2bff12[_0x4b2b1f(0x2b0)]===_0x4b2b1f(0x6d8))_0x1df578(_0x2bff12);}catch(_0x2d11fa){if(_0x2d11fa&&_0x2d11fa['processorHold']===!![]&&_0x2d11fa['code']!=='__HOLD__'){const _0x37ad8b=new Error(_0x2d11fa[_0x4b2b1f(0x2d2)]);_0x37ad8b[_0x4b2b1f(0x748)]='__HOLD__';throw _0x37ad8b;}throw _0x2d11fa;}}const _0x1d7845=new Map();function _0x91efc1(_0x48a624,_0x550565,_0x57b611,_0x47ca92,_0x580528,_0x163a65){const _0x208e02=_0x3ebb,_0x3a92fd=_0x17d024(_0x48a624),_0x34038d=(_0x278c0b[_0x208e02(0x63c)](_0x163a65)||{})[_0x208e02(0x21e)]||_0x402fed,_0xff99e9=new AbortController(),_0x227669=(_0x200b28,..._0x2cccb9)=>_0x34038d[_0x208e02(0x49e)]('queue',_0x208e02(0x822),_0x200b28,_0x2cccb9,![]),_0x13a26d={'okdb':_0x34038d,'env':_0x278c0b[_0x208e02(0x63c)](_0x163a65)||null,'job':_0x47ca92,'jobId':_0x580528,'signal':_0xff99e9[_0x208e02(0x2b7)],'heartbeat':()=>_0x227669(_0x208e02(0x7c1),_0x57b611),'markProgress':_0x5ee768=>_0x227669(_0x208e02(0x7c9),_0x57b611,_0x5ee768),'log':(_0x7163d9,_0x404652)=>_0x227669(_0x208e02(0x203),_0x57b611,_0x7163d9,_0x404652)};_0x1d7845['set'](_0x57b611,{'ctrl':_0xff99e9,'call':_0x227669});const _0x35d575=()=>{const _0x345086=_0x208e02;_0x1d7845['delete'](_0x57b611);try{_0x227669(_0x345086(0x6e1),_0x57b611);}catch{}};let _0x8e8b2a;try{_0x8e8b2a=_0x3a92fd(_0x550565,_0x13a26d);}catch(_0xceee26){_0x35d575();throw _0xceee26;}if(_0x8e8b2a&&typeof _0x8e8b2a[_0x208e02(0x2b0)]===_0x208e02(0x6d8)){const _0x1f76b9=_0x204a9a(_0x8e8b2a);return _0x8e8b2a[_0x208e02(0x2b0)](_0x35d575,_0x35d575),{'$token':_0x1f76b9};}return _0x35d575(),_0x8e8b2a;}function _0x38a9cc(){const _0x2d83db=_0x3ebb;for(const [_0x4f4de8,_0x58cf2a]of _0x1d7845){if(_0x58cf2a[_0x2d83db(0x7b0)][_0x2d83db(0x2b7)][_0x2d83db(0x43a)])continue;let _0xec9052;try{_0xec9052=_0x58cf2a[_0x2d83db(0x853)](_0x2d83db(0x556),_0x4f4de8);}catch{continue;}if(_0xec9052&&_0xec9052['aborted']){const {OKDBError:_0x30cb9b}=requireErrors();_0x58cf2a[_0x2d83db(0x7b0)][_0x2d83db(0x33a)](new _0x30cb9b(_0xec9052[_0x2d83db(0x2d2)],_0xec9052[_0x2d83db(0x748)]));}}}let _0x402fed=null;function _0x41612e(_0x1f64dc){_0x402fed=_0x1f64dc;}function _0x8b8e6e(_0x4237b1,_0x5de82f,_0x18cdb4,_0x2250f0,_0x130ce3,_0x51575d,_0x5431b0){const _0x1f8026=_0x3ebb,_0x5bfa82=_0x17d024(_0x4237b1),_0x11722e=_0x278c0b[_0x1f8026(0x63c)](_0x18cdb4);try{const _0x1cb439=_0x5de82f?_0x5bfa82(_0x130ce3,_0x51575d):_0x5bfa82({'env':_0x11722e,'okdb':_0x11722e&&_0x11722e[_0x1f8026(0x21e)],'payload':_0x3dd118(_0x2250f0)},_0x130ce3,_0x51575d);if(_0x1cb439&&typeof _0x1cb439['then']===_0x1f8026(0x6d8)){if(_0x51575d&&_0x51575d[_0x1f8026(0x182)]===_0x1f8026(0x2d7))_0x1cb439[_0x1f8026(0x2b0)](undefined,()=>{});else{if(_0x5431b0){const _0x54f428=_0x4565a2(_0x1cb439);if(_0x54f428===0x0)return null;return{'$token':_0x54f428};}else _0x1df578(_0x1cb439);}}}catch(_0x4308d0){if(_0x4308d0&&_0x4308d0[_0x1f8026(0x23a)]===!![]&&_0x4308d0['code']!==_0x1f8026(0x652)){const _0x26bfa2=new Error(_0x4308d0[_0x1f8026(0x2d2)]);_0x26bfa2[_0x1f8026(0x748)]='__HOLD__';throw _0x26bfa2;}throw _0x4308d0;}return null;}function _0x4565a2(_0x37a792){const _0x31e574=_0x3ebb;let _0x492a20='pending',_0x2e90ef;_0x37a792[_0x31e574(0x2b0)](_0x3f1d02=>{_0x492a20='ok',_0x2e90ef=_0x3f1d02;},_0x37f2a2=>{const _0x2f0b00=_0x31e574;_0x492a20=_0x2f0b00(0x391),_0x2e90ef=_0x37f2a2;});for(let _0x172673=0x0;_0x172673<0x64&&_0x492a20==='pending';_0x172673++)process[_0x31e574(0x67c)]();if(_0x492a20==='ok')return 0x0;const _0x39631d=_0xae3cd2++,_0xd610d2={'state':_0x492a20,'value':_0x2e90ef};_0x270701['set'](_0x39631d,_0xd610d2);if(_0x492a20===_0x31e574(0x35d))_0x37a792['then'](_0x4af6ee=>{const _0x5aa217=_0x31e574;_0xd610d2[_0x5aa217(0x41c)]='ok',_0xd610d2['value']=_0x4af6ee,_0x28fba2();},_0x36a371=>{const _0x43ddd8=_0x31e574;_0xd610d2[_0x43ddd8(0x41c)]='err',_0xd610d2[_0x43ddd8(0x820)]=_0x36a371,_0x28fba2();});return _0x39631d;}function _0x363804(_0x5cea51){const _0x3a1425=_0x3ebb;let _0x2da225=_0x92625b[_0x3a1425(0x63c)](_0x5cea51);return _0x2da225===undefined&&(_0x2da225=_0x4eabaa++,_0x92625b['set'](_0x5cea51,_0x2da225),_0x2d91ae[_0x3a1425(0x328)](_0x2da225,{'fn':_0x5cea51,'refs':0x0})),_0x2d91ae['get'](_0x2da225)[_0x3a1425(0x4d3)]++,_0x2da225;}function _0xa5759e(_0x274c1f){const _0x67fde3=_0x3ebb,_0x521f47=_0x2d91ae[_0x67fde3(0x63c)](_0x274c1f);if(!_0x521f47)return;--_0x521f47[_0x67fde3(0x4d3)]<=0x0&&(_0x2d91ae[_0x67fde3(0x82f)](_0x274c1f),_0x92625b[_0x67fde3(0x82f)](_0x521f47['fn']));}function _0x17d024(_0x535936){const _0x5b1a6d=_0x2d91ae['get'](_0x535936);if(!_0x5b1a6d)throw new Error('okdb-node:\x20unknown\x20callback\x20id\x20'+_0x535936);return _0x5b1a6d['fn'];}function _0x204a9a(_0x95b143){const _0x474c76=_0x3ebb;if(_0x95b143&&typeof _0x95b143[_0x474c76(0x2b0)]===_0x474c76(0x6d8)){const _0x100506=_0xae3cd2++,_0x393f90={'state':'pending','value':undefined};return _0x270701[_0x474c76(0x328)](_0x100506,_0x393f90),_0x95b143[_0x474c76(0x2b0)](_0x8a348=>{const _0x5b8d06=_0x474c76;_0x393f90[_0x5b8d06(0x41c)]='ok',_0x393f90[_0x5b8d06(0x820)]=_0x8a348,_0x28fba2();},_0x4ae524=>{const _0x1ea422=_0x474c76;_0x393f90[_0x1ea422(0x41c)]=_0x1ea422(0x391),_0x393f90[_0x1ea422(0x820)]=_0x4ae524,_0x28fba2();}),_0x100506;}return 0x0;}let _0x545dc3=()=>{},_0x47f587=null;function _0x4ea32c(_0x1af750,_0x211d63=null){_0x545dc3=_0x1af750,_0x47f587=_0x211d63;}function _0x2c9c02(_0x519f11){return _0x47f587===_0x519f11;}function _0x28fba2(){_0x545dc3();}function _0x2611c1(_0x383a43){const _0x1669b2=_0x3ebb,_0x33d391=_0x270701['get'](_0x383a43);if(!_0x33d391)return{'state':_0x1669b2(0x391),'error':{'message':_0x1669b2(0x485)}};if(_0x33d391[_0x1669b2(0x41c)]===_0x1669b2(0x35d))return{'state':'pending'};_0x270701[_0x1669b2(0x82f)](_0x383a43);if(_0x33d391[_0x1669b2(0x41c)]==='ok')return{'state':'ok','value':_0x33d391[_0x1669b2(0x820)]};const _0x4afc16=_0x33d391['value'];return{'state':_0x1669b2(0x391),'error':{'message':_0x4afc16&&_0x4afc16[_0x1669b2(0x2d2)]!=null?String(_0x4afc16['message']):String(_0x4afc16),'stack':_0x4afc16&&_0x4afc16[_0x1669b2(0x3fd)],'code':_0x4afc16&&_0x4afc16[_0x1669b2(0x748)],'status':_0x4afc16&&typeof _0x4afc16[_0x1669b2(0x1c9)]===_0x1669b2(0x5c1)?_0x4afc16[_0x1669b2(0x1c9)]:undefined,'hold':!!(_0x4afc16&&_0x4afc16['processorHold']===!![])}};}function _0x3adc0a(_0x21114b,_0x178cca){const _0x55abc2=_0x3ebb;_0x4a6b7c[_0x55abc2(0x328)](_0x21114b,_0x178cca);}function _0x35f027(_0x50aae3){_0x4a6b7c['delete'](_0x50aae3);}let _0x13e7d8=0x0;function _0x500f5e(){return _0x13e7d8>0x0;}function _0x18108c(){const _0x14471a=_0x3ebb;_0x13e7d8++;try{return _0x4b2490[_0x14471a(0x2a0)](undefined,arguments);}finally{_0x13e7d8--;}}function _0x4b2490(_0x573af3,_0x53ad6d,_0x21711d,_0x1b8893,_0x6d54bb,_0x28fd44){const _0xd07138=_0x3ebb;switch(_0x573af3){case _0xd07138(0x274):return _0x363804(_0x53ad6d);case'unreg':return _0xa5759e(_0x53ad6d);case'call':{const _0x43c6b9=Array[_0xd07138(0x455)]['slice'][_0xd07138(0x853)](arguments,0x2),_0x253263=_0x17d024(_0x53ad6d)[_0xd07138(0x2a0)](undefined,_0x43c6b9);return _0x253263&&typeof _0x253263[_0xd07138(0x2b0)]==='function'?_0x1df578(_0x253263):_0x253263;}case _0xd07138(0x79c):{const _0x270f98=Array[_0xd07138(0x455)]['slice'][_0xd07138(0x853)](arguments,0x2),_0x19e5f7=_0x17d024(_0x53ad6d)[_0xd07138(0x2a0)](undefined,_0x270f98);if(_0x19e5f7&&typeof _0x19e5f7[_0xd07138(0x2b0)]===_0xd07138(0x6d8))return{'$token':_0x204a9a(_0x19e5f7)};return{'$value':_0x19e5f7===undefined?null:_0x19e5f7,'$undef':_0x19e5f7===undefined};}case _0xd07138(0x37b):{const _0xd44507=_0x4a6b7c[_0xd07138(0x63c)](_0x53ad6d);if(_0xd44507)_0xd44507[_0xd07138(0x7b5)](_0x21711d,_0x1b8893);return undefined;}case'log':{const _0x149da5=_0x4a6b7c['get'](_0x53ad6d);if(_0x149da5)_0x149da5[_0xd07138(0x8a6)](_0x21711d);return undefined;}case'handler':return _0x8b8e6e(_0x53ad6d,_0x21711d,_0x1b8893,_0x6d54bb,_0x28fd44,arguments[0x6],arguments[0x7]);case'quantum':return _0x2be118(_0x53ad6d,_0x21711d,_0x1b8893);case _0xd07138(0x5cd):return _0x91efc1(_0x53ad6d,_0x21711d,_0x1b8893,_0x6d54bb,_0x28fd44,arguments[0x6]);case _0xd07138(0x741):return _0x42fd53[_0xd07138(0x2a0)](null,Array['prototype'][_0xd07138(0x5ca)][_0xd07138(0x853)](arguments,0x1));case _0xd07138(0x370):return _0x2418f9(_0x53ad6d,_0x21711d,_0x1b8893);case _0xd07138(0x7a9):return _0x2611c1(_0x53ad6d);case _0xd07138(0x457):{const _0x35bf68=((async()=>{const _0x5a6f64=_0xd07138,_0x4f278d=await globalThis[_0x5a6f64(0x430)](_0x53ad6d);if(!_0x4f278d['ok']){const _0x5af822=new Error('HTTP\x20'+_0x4f278d['status']);_0x5af822[_0x5a6f64(0x748)]=_0x5a6f64(0x821);throw _0x5af822;}return _0x4f278d[_0x5a6f64(0x792)]();})());return _0x1df578(_0x35bf68)??null;}case _0xd07138(0x2f6):return _0x27c48d(_0x53ad6d,_0x21711d,_0x1b8893);case _0xd07138(0x454):return _0x9c9ea8(_0x53ad6d,_0x21711d,_0x1b8893);case _0xd07138(0x1c8):return _0x44b07a(_0x53ad6d,_0x21711d,_0x1b8893);default:throw new Error(_0xd07138(0x722)+_0x573af3);}}return bridge_1={'inNativeCall':_0x500f5e,'regObject':_0x5bc300,'checkSignals':_0x38a9cc,'setCurrentDb':_0x41612e,'forgetDb':_0x6543be,'storePayload':_0x297456,'registerEnv':_0x405316,'resolvePayload':_0x3dd118,'bridge':_0x18108c,'reg':_0x363804,'unreg':_0xa5759e,'fnOf':_0x17d024,'track':_0x204a9a,'resolve':_0x2611c1,'registerTarget':_0x3adc0a,'unregisterTarget':_0x35f027,'setKick':_0x4ea32c,'kickOwnedBy':_0x2c9c02},bridge_1;}var writebatch,hasRequiredWritebatch;function requireWritebatch(){const _0x3e8400=_0x2ec26e;if(hasRequiredWritebatch)return writebatch;hasRequiredWritebatch=0x1;const {reclass:_0x31afee}=requireErrors(),_0x5e1aa3=requireBridge(),_0x130925=new Map();let _0x37e0f3=null;function _0x4ee250(_0x36549a){if(_0x37e0f3)return;_0x37e0f3=_0x36549a,_0x36549a['setFlushNotify'](_0x2dbecc);}function _0x2dbecc(){const _0x183b6a=_0x3ebb,_0x22b73e=_0x37e0f3[_0x183b6a(0x378)]();for(const _0x141ae2 of _0x22b73e){const _0x15021e=_0x130925['get'](_0x141ae2);_0x15021e&&(_0x130925['delete'](_0x141ae2),_0x15021e());}}function _0x4c8597(_0x751699,_0x201245){const _0x246834=_0x3ebb;_0x130925[_0x246834(0x328)](_0x751699,_0x201245);}class _0x316e59{constructor(_0xb42a32){this['db']=_0xb42a32,this['queue']=[],this['scheduled']=![],this['inBatch']=![],this['inflight']=new Set();}[_0x3e8400(0x414)](_0x139f2c,_0x302dae,_0x41ddaf,_0xdbe5aa){const _0x59c7ee=_0x3e8400;if(_0x5e1aa3['inNativeCall']())try{return Promise[_0x59c7ee(0x7a9)](this['db']['_call'](_0x139f2c,_0x302dae,_0x41ddaf,_0xdbe5aa));}catch(_0x4fceb3){return Promise['reject'](_0x4fceb3);}const _0x108bf7=new Promise((_0xa51933,_0x580aa9)=>{const _0x281d10=_0x59c7ee;this[_0x281d10(0x601)]['push']({'item':[_0x139f2c,_0x302dae,_0x41ddaf,_0xdbe5aa],'resolve':_0xa51933,'reject':_0x580aa9});});this['inflight'][_0x59c7ee(0x7df)](_0x108bf7);const _0x94e3c6=()=>this['inflight'][_0x59c7ee(0x82f)](_0x108bf7);return _0x108bf7[_0x59c7ee(0x2b0)](_0x94e3c6,_0x94e3c6),!this[_0x59c7ee(0x45f)]&&(this['scheduled']=!![],setImmediate(()=>{const _0x213208=_0x59c7ee;this['scheduled']=![],this[_0x213208(0x2cd)]();})),_0x108bf7;}[_0x3e8400(0x2cd)](){const _0x45b9cc=_0x3e8400;if(!this[_0x45b9cc(0x601)][_0x45b9cc(0x6cf)])return;if(this['inBatch']){!this[_0x45b9cc(0x45f)]&&(this[_0x45b9cc(0x45f)]=!![],setImmediate(()=>{const _0x17fe7d=_0x45b9cc;this[_0x17fe7d(0x45f)]=![],this[_0x17fe7d(0x2cd)]();}));return;}const _0x3645cb=this[_0x45b9cc(0x601)];this[_0x45b9cc(0x601)]=[],this[_0x45b9cc(0x826)](_0x3645cb);}[_0x3e8400(0x826)](_0x3ce5c1){const _0x115f66=_0x3e8400;let _0x394af5;this[_0x115f66(0x74d)]=!![];try{_0x394af5=this['db'][_0x115f66(0x6bd)][_0x115f66(0x550)](_0x3ce5c1[_0x115f66(0x1a7)](_0x5dfc8e=>_0x5dfc8e[_0x115f66(0x24c)]));}catch(_0x1cdb31){this['inBatch']=![];if(_0x3ce5c1['length']>0x1){for(const _0x402a9f of _0x3ce5c1)this[_0x115f66(0x826)]([_0x402a9f]);return;}const _0x2bdf42=_0x31afee(_0x1cdb31);for(const _0x171a00 of _0x3ce5c1)_0x171a00[_0x115f66(0x6f0)](_0x2bdf42);return;}finally{this[_0x115f66(0x74d)]=![];}try{this['db'][_0x115f66(0x5bc)][_0x115f66(0x536)]();}catch{}const [_0x4ef5df,_0x1d4d4f]=_0x394af5;_0x4c8597(_0x1d4d4f,()=>{const _0x366a07=_0x115f66;for(let _0x4d203a=0x0;_0x4d203a<_0x3ce5c1['length'];_0x4d203a++){const _0x4e08e8=_0x4ef5df[_0x4d203a];if(_0x4e08e8&&_0x4e08e8[0x0])_0x3ce5c1[_0x4d203a][_0x366a07(0x7a9)](_0x4e08e8[0x1]);else _0x3ce5c1[_0x4d203a][_0x366a07(0x6f0)](_0x31afee(_0x4e08e8?_0x4e08e8[0x1]:new Error(_0x366a07(0x4fe))));}});}async[_0x3e8400(0x56b)](){const _0x2c8d52=_0x3e8400;this[_0x2c8d52(0x2cd)]();while(this['inflight'][_0x2c8d52(0x221)]){await Promise[_0x2c8d52(0x795)]([...this[_0x2c8d52(0x381)]]),this['commit']();}let _0x28f69b;try{_0x28f69b=this['db'][_0x2c8d52(0x6bd)][_0x2c8d52(0x5fe)]();}catch{return;}await new Promise(_0x30e686=>_0x4c8597(_0x28f69b,_0x30e686));}}return writebatch={'install':_0x4ee250,'WriteBatch':_0x316e59,'whenSettled':_0x4c8597},writebatch;}var pump,hasRequiredPump;function requirePump(){const _0x27783f=_0x2ec26e;if(hasRequiredPump)return pump;hasRequiredPump=0x1;const _0x9c9dd1=Number(process.env.OKDB_NATIVE_IDLE_MS)||0xfa;class _0x308716{constructor(_0x28fc0e){const _0x58b9ca=_0x3ebb;this['native']=_0x28fc0e,this['timer']=null,this[_0x58b9ca(0x176)]=null,this[_0x58b9ca(0x48c)]=![],this[_0x58b9ca(0x2d9)]=![],this[_0x58b9ca(0x759)]=![],this[_0x58b9ca(0x34e)]=![],this[_0x58b9ca(0x5e3)]=0x0,this[_0x58b9ca(0x278)]=[],this[_0x58b9ca(0x316)]=[];}[_0x27783f(0x52a)](_0x11f050){return new Promise(_0x53f83d=>{const _0x504af0=_0x3ebb,_0x7250c8=setTimeout(_0x184747,_0x11f050);function _0x184747(){clearTimeout(_0x7250c8),_0x53f83d();}this[_0x504af0(0x316)][_0x504af0(0x2fb)](_0x184747);});}[_0x27783f(0x4cf)](){const _0x432468=_0x27783f;if(this[_0x432468(0x316)][_0x432468(0x6cf)]===0x0)return;const _0x1d38ba=this[_0x432468(0x316)];this['turnWaiters']=[];for(const _0x25840a of _0x1d38ba)_0x25840a();}['start'](){const _0x269c1d=_0x27783f;this[_0x269c1d(0x2d9)]=![],this[_0x269c1d(0x536)]();}['stop'](){const _0x5677e1=_0x27783f;this[_0x5677e1(0x2d9)]=!![];if(this['timer'])clearTimeout(this[_0x5677e1(0x6e6)]);if(this[_0x5677e1(0x176)])clearImmediate(this[_0x5677e1(0x176)]);this[_0x5677e1(0x6e6)]=this[_0x5677e1(0x176)]=null,this[_0x5677e1(0x4cf)]();}[_0x27783f(0x536)](){const _0x1cad52=_0x27783f;if(this['stopped']||this[_0x1cad52(0x176)])return;this[_0x1cad52(0x6e6)]&&(clearTimeout(this['timer']),this[_0x1cad52(0x6e6)]=null),this[_0x1cad52(0x176)]=setImmediate(()=>{const _0xcf993c=_0x1cad52;this[_0xcf993c(0x176)]=null,this['turn']();});}[_0x27783f(0x53f)](){const _0x55e555=_0x27783f;if(this[_0x55e555(0x2d9)]||this['pumping']){this[_0x55e555(0x34e)]=!![];return;}this[_0x55e555(0x759)]=!![];let _0x29fa22;try{this[_0x55e555(0x5e3)]++,_0x29fa22=this[_0x55e555(0x68e)][_0x55e555(0x2e6)]();if(this[_0x55e555(0x3f4)])this['afterTurn']();}catch(_0x241654){_0x29fa22=_0x9c9dd1,process['nextTick'](()=>{throw _0x241654;});}finally{this['pumping']=![],this[_0x55e555(0x4cf)]();}if(this[_0x55e555(0x2d9)]||_0x29fa22===-0x2)return;if(this[_0x55e555(0x34e)])return this['dirty']=![],this[_0x55e555(0x536)]();const _0x3fdf4e=_0x29fa22<0x0?_0x9c9dd1:Math[_0x55e555(0x3e7)](0x0,Math['min'](_0x29fa22,_0x9c9dd1));if(_0x3fdf4e<=0x0)return this[_0x55e555(0x536)]();this['timer']=setTimeout(()=>{this['timer']=null,this['turn']();},Math[_0x55e555(0x342)](_0x3fdf4e));if(this[_0x55e555(0x6e6)][_0x55e555(0x702)])this['timer'][_0x55e555(0x702)]();}}return pump={'Pumper':_0x308716},pump;}var dist$1={},hasRequiredDist$1;function requireDist$1(){const _0x1987ae=_0x2ec26e;if(hasRequiredDist$1)return dist$1;hasRequiredDist$1=0x1;const _0x5a05a1=Symbol['for']('@harperdb/extended-iterable:skip'),_0x461e90={'value':null,'done':!![]},_0x3ca1bd={'value':null,'done':!![]};!Symbol['asyncIterator']&&(Symbol[_0x1987ae(0x1d6)]=Symbol[_0x1987ae(0x401)](_0x1987ae(0x549)));const _0x39cd87={};class _0x5148f5{constructor(_0x2f32e0){const _0x453e91=_0x1987ae;_0x2f32e0&&(this['iterate']=_0x2f32e0[Symbol[_0x453e91(0x56e)]]['bind'](_0x2f32e0));}['map'](_0x1f595d){const _0x579f41=_0x1987ae;let _0x124d9f=this,_0x5c69c0=new _0x5148f5();return _0x5c69c0[_0x579f41(0x1ab)]=(_0x520035=_0x39cd87)=>{const _0xf8ab0e=_0x579f41,{async:_0xf4d854}=_0x520035;let _0x3358db=_0x124d9f[_0xf4d854?Symbol[_0xf8ab0e(0x1d6)]:Symbol[_0xf8ab0e(0x56e)]](_0x520035);if(!_0xf4d854)_0x124d9f[_0xf8ab0e(0x1b6)]=!![];let _0x28b150=-0x1;return{'next'(_0x5ca741){const _0x23a265=_0xf8ab0e;let _0x32f50c;do{let _0x1e8d61;try{if(_0x5ca741)_0x1e8d61=_0x5ca741,_0x5ca741=null;else{_0x28b150++,_0x1e8d61=_0x3358db['next']();if(_0x1e8d61['then'])return!_0xf4d854&&this[_0x23a265(0x2c5)](new Error('Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results')),_0x1e8d61[_0x23a265(0x2b0)](_0x2d76d4=>this['next'](_0x2d76d4),_0x2c1c51=>{const _0x1165f5=_0x23a265;return this[_0x1165f5(0x2c5)](_0x2c1c51);});}if(_0x1e8d61[_0x23a265(0x3b5)]===!![]){this[_0x23a265(0x3b5)]=!![];if(_0x5c69c0[_0x23a265(0x500)])_0x5c69c0[_0x23a265(0x500)]();return _0x1e8d61;}try{_0x32f50c=_0x1f595d['call'](_0x124d9f,_0x1e8d61['value'],_0x28b150);if(_0x32f50c&&_0x32f50c[_0x23a265(0x2b0)]&&_0xf4d854)return _0x32f50c[_0x23a265(0x2b0)](_0x1e2753=>_0x1e2753===_0x5a05a1?this[_0x23a265(0x788)]():{'value':_0x1e2753},_0x35ea5a=>{const _0x27f358=_0x23a265;if(_0x520035[_0x27f358(0x555)])_0x35ea5a[_0x27f358(0x1f0)]=!![];return this[_0x27f358(0x2c5)](_0x35ea5a);});}catch(_0x2d1a37){if(_0x520035[_0x23a265(0x555)])_0x2d1a37[_0x23a265(0x1f0)]=!![];throw _0x2d1a37;}}catch(_0x5f475f){if(_0x5c69c0['handleError'])try{_0x32f50c=_0x5c69c0['handleError'](_0x5f475f,_0x28b150);}catch(_0x262706){return this[_0x23a265(0x2c5)](_0x262706);}else return this[_0x23a265(0x2c5)](_0x5f475f);}}while(_0x32f50c===_0x5a05a1);if(_0x32f50c===_0x461e90)return this[_0x23a265(0x77e)]();return{'value':_0x32f50c};},'return'(_0x53095a){const _0x580376=_0xf8ab0e;if(!this[_0x580376(0x3b5)]){_0x3ca1bd[_0x580376(0x820)]=_0x53095a,this[_0x580376(0x3b5)]=!![];if(_0x5c69c0[_0x580376(0x500)])_0x5c69c0[_0x580376(0x500)]();_0x3358db['return']?.();}return _0x3ca1bd;},'throw'(_0x107675){const _0x5f2d3a=_0xf8ab0e;if(_0x107675[_0x5f2d3a(0x1f0)]){if(_0x5c69c0[_0x5f2d3a(0x2c1)])try{return{'value':_0x5c69c0['returnRecoverableErrors'](_0x107675)};}catch(_0x5cba68){this['return']();throw _0x5cba68;}if(_0x520035[_0x5f2d3a(0x555)])throw _0x107675;}this[_0x5f2d3a(0x77e)]();throw _0x107675;}};},_0x5c69c0;}[Symbol[_0x1987ae(0x1d6)]](_0x34c8df){if(_0x34c8df)_0x34c8df={..._0x34c8df,'async':!![]};else _0x34c8df={'async':!![]};return this['iterator']=this['iterate'](_0x34c8df);}[Symbol[_0x1987ae(0x56e)]](_0x26047f){const _0x323c26=_0x1987ae;return this[_0x323c26(0x56e)]=this[_0x323c26(0x1ab)](_0x26047f);}['filter'](_0x336357){const _0x2c0021=_0x1987ae;let _0x158648=this[_0x2c0021(0x1a7)](_0x55f9cc=>{const _0x45032c=_0x2c0021;let _0x4b0b9e=_0x336357(_0x55f9cc);if(_0x4b0b9e?.[_0x45032c(0x2b0)])return _0x4b0b9e[_0x45032c(0x2b0)](_0x558d52=>_0x558d52?_0x55f9cc:_0x5a05a1);else return _0x4b0b9e?_0x55f9cc:_0x5a05a1;}),_0x5af842=_0x158648[_0x2c0021(0x1ab)];return _0x158648[_0x2c0021(0x1ab)]=(_0x1afd04=_0x39cd87)=>{if(_0x1afd04['continueOnRecoverableError'])_0x1afd04={..._0x1afd04,'continueOnRecoverableError':![]};return _0x5af842(_0x1afd04);},_0x158648;}['forEach'](_0x9efbc1){const _0x3b31b2=_0x1987ae;let _0x121368=this[_0x3b31b2(0x56e)]=this[_0x3b31b2(0x1ab)](),_0x5bb4dd;while((_0x5bb4dd=_0x121368[_0x3b31b2(0x788)]())['done']!==!![]){_0x9efbc1(_0x5bb4dd[_0x3b31b2(0x820)]);}}['concat'](_0x2474e5){const _0x53609a=_0x1987ae;let _0x782ec6=new _0x5148f5();return _0x782ec6[_0x53609a(0x1ab)]=(_0x2af6d3=_0x39cd87)=>{const _0x410ca2=_0x53609a;let _0x160da4=this[_0x410ca2(0x56e)]=this[_0x410ca2(0x1ab)](_0x2af6d3),_0x4c4602=!![];function _0x38501f(_0x5b3ead){const _0x3d6e50=_0x410ca2;if(_0x4c4602)try{_0x4c4602=![],_0x160da4=_0x2474e5[_0x2af6d3[_0x3d6e50(0x887)]?Symbol[_0x3d6e50(0x1d6)]:Symbol['iterator']](),_0x5b3ead=_0x160da4[_0x3d6e50(0x788)]();if(_0x782ec6[_0x3d6e50(0x500)]){if(_0x5b3ead[_0x3d6e50(0x2b0)]){if(!_0x2af6d3[_0x3d6e50(0x887)])throw new Error('Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results');_0x5b3ead[_0x3d6e50(0x2b0)](_0x3546a5=>{const _0x13b4ce=_0x3d6e50;if(_0x3546a5[_0x13b4ce(0x3b5)]())_0x782ec6[_0x13b4ce(0x500)]();},_0x257838=>{const _0x27db0e=_0x3d6e50;this[_0x27db0e(0x77e)]();throw _0x257838;});}else{if(_0x5b3ead[_0x3d6e50(0x3b5)])_0x782ec6[_0x3d6e50(0x500)]();}}}catch(_0x27b75d){this[_0x3d6e50(0x2c5)](_0x27b75d);}else{if(_0x782ec6[_0x3d6e50(0x500)])_0x782ec6[_0x3d6e50(0x500)]();}return _0x5b3ead;}return{'next'(){const _0x1f8120=_0x410ca2;try{let _0x482873=_0x160da4['next']();if(_0x482873[_0x1f8120(0x2b0)]){if(!_0x2af6d3[_0x1f8120(0x887)])throw new Error(_0x1f8120(0x319));return _0x482873['then'](_0x187cff=>{const _0x516dfb=_0x1f8120;if(_0x187cff[_0x516dfb(0x3b5)])return _0x38501f(_0x187cff);return _0x187cff;});}if(_0x482873[_0x1f8120(0x3b5)])return _0x38501f(_0x482873);return _0x482873;}catch(_0x470a0c){this['throw'](_0x470a0c);}},'return'(_0x48ea45){const _0x1faadf=_0x410ca2;if(!this[_0x1faadf(0x3b5)]){_0x3ca1bd[_0x1faadf(0x820)]=_0x48ea45,this[_0x1faadf(0x3b5)]=!![];if(_0x782ec6[_0x1faadf(0x500)])_0x782ec6[_0x1faadf(0x500)]();_0x160da4['return']();}return _0x3ca1bd;},'throw'(_0xb95358){const _0xef1717=_0x410ca2;if(_0x2af6d3['continueOnRecoverableError'])throw _0xb95358;this[_0xef1717(0x77e)]();throw _0xb95358;}};},_0x782ec6;}[_0x1987ae(0x164)](_0x14f8bd){const _0x5e62d5=_0x1987ae;let _0x21686d=new _0x5148f5();return _0x21686d[_0x5e62d5(0x1ab)]=(_0x5e6fae=_0x39cd87)=>{const _0x218555=_0x5e62d5;let _0xc1bc18=this[_0x218555(0x56e)]=this[_0x218555(0x1ab)](_0x5e6fae),_0x8bfd5;return{'next'(_0x43f829){const _0x85affb=_0x218555;try{do{if(_0x8bfd5){let _0x15b7b8;if(_0x43f829)_0x15b7b8=_0x43f829,_0x43f829=undefined;else _0x15b7b8=_0x8bfd5['next']();if(_0x15b7b8[_0x85affb(0x2b0)]){if(!_0x5e6fae[_0x85affb(0x887)])throw new Error(_0x85affb(0x319));return _0x15b7b8[_0x85affb(0x2b0)](_0x26fd06=>this[_0x85affb(0x788)](_0x26fd06));}if(!_0x15b7b8[_0x85affb(0x3b5)])return _0x15b7b8;}let _0xfd1f91;if(_0x43f829!=undefined)_0xfd1f91=_0x43f829,_0x43f829=undefined;else _0xfd1f91=_0xc1bc18[_0x85affb(0x788)]();if(_0xfd1f91[_0x85affb(0x2b0)]){if(!_0x5e6fae[_0x85affb(0x887)])throw new Error(_0x85affb(0x319));return _0x8bfd5=undefined,_0xfd1f91[_0x85affb(0x2b0)](_0x258e48=>this['next'](_0x258e48));}if(_0xfd1f91[_0x85affb(0x3b5)]){if(_0x21686d['onDone'])_0x21686d[_0x85affb(0x500)]();return _0xfd1f91;}try{let _0x23e794=_0x14f8bd(_0xfd1f91[_0x85affb(0x820)]);if(_0x23e794?.[_0x85affb(0x2b0)]){if(!_0x5e6fae[_0x85affb(0x887)])throw new Error('Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results');return _0x23e794[_0x85affb(0x2b0)](_0x50c510=>{const _0x588a95=_0x85affb;return Array[_0x588a95(0x69e)](_0x50c510)||_0x50c510 instanceof _0x5148f5?(_0x8bfd5=_0x50c510[Symbol['iterator']](),this[_0x588a95(0x788)]()):(_0x8bfd5=null,{'value':_0x50c510});},_0x1e3496=>{const _0x533cd3=_0x85affb;if(_0x5e6fae[_0x533cd3(0x555)])_0x1e3496['continueIteration']=!![];this[_0x533cd3(0x2c5)](_0x1e3496);});}if(Array['isArray'](_0x23e794)||_0x23e794 instanceof _0x5148f5)_0x8bfd5=_0x23e794[Symbol[_0x85affb(0x56e)]]();else return _0x8bfd5=null,{'value':_0x23e794};}catch(_0x3ebe1f){if(_0x5e6fae[_0x85affb(0x555)])_0x3ebe1f[_0x85affb(0x1f0)]=!![];throw _0x3ebe1f;}}while(!![]);}catch(_0x3ff06f){this[_0x85affb(0x2c5)](_0x3ff06f);}},'return'(){if(_0x21686d['onDone'])_0x21686d['onDone']();if(_0x8bfd5)_0x8bfd5['return']();return _0xc1bc18['return']();},'throw'(_0x343826){const _0x4e64c4=_0x218555;if(_0x5e6fae['continueOnRecoverableError'])throw _0x343826;if(_0x21686d[_0x4e64c4(0x500)])_0x21686d[_0x4e64c4(0x500)]();if(_0x8bfd5)_0x8bfd5[_0x4e64c4(0x77e)]();this[_0x4e64c4(0x77e)]();throw _0x343826;}};},_0x21686d;}[_0x1987ae(0x5ca)](_0x5b9512,_0x25594f){const _0x490e95=_0x1987ae;let _0x549a68=this[_0x490e95(0x1a7)]((_0x4a0d8a,_0x12a0e2)=>{const _0x2df051=_0x490e95;if(_0x12a0e2<_0x5b9512)return _0x5a05a1;if(_0x12a0e2>=_0x25594f)return _0x461e90[_0x2df051(0x820)]=_0x4a0d8a,_0x461e90;return _0x4a0d8a;});return _0x549a68[_0x490e95(0x3ed)]=(_0x417f91,_0x3310e5)=>{if(_0x3310e5<_0x5b9512)return _0x5a05a1;if(_0x3310e5>=_0x25594f)return _0x461e90;throw _0x417f91;},_0x549a68;}[_0x1987ae(0x3ec)](_0x26dc19){const _0x23e7d1=_0x1987ae;if(typeof _0x26dc19!=='function')throw new TypeError(_0x23e7d1(0x620));let _0x186d46=this[_0x23e7d1(0x1a7)](_0x35a85b=>{return _0x35a85b;}),_0x403497=_0x186d46[_0x23e7d1(0x1ab)];return _0x186d46['iterate']=(_0x38408a=_0x39cd87)=>{return _0x403497({..._0x38408a,'continueOnRecoverableError':!![]});},_0x186d46[_0x23e7d1(0x2c1)]=_0x26dc19,_0x186d46;}[_0x1987ae(0x788)](){const _0x5787e0=_0x1987ae;if(!this[_0x5787e0(0x56e)])this[_0x5787e0(0x56e)]=this[_0x5787e0(0x1ab)]();return this[_0x5787e0(0x56e)][_0x5787e0(0x788)]();}['toJSON'](){const _0x1a8c87=_0x1987ae;if(this[_0x1a8c87(0x45b)]&&this['asArray']['forEach'])return this[_0x1a8c87(0x45b)];const _0x139743=new Error(_0x1a8c87(0x1e8));_0x139743[_0x1a8c87(0x7cd)]=this[_0x1a8c87(0x45b)];throw _0x139743;}get[_0x1987ae(0x45b)](){const _0xb0cc56=_0x1987ae;if(this['_asArray'])return this['_asArray'];let _0xd0cfe4=new Promise((_0x8280ed,_0x143eab)=>{const _0x4cf9dc=_0x3ebb;let _0x29d826=this[_0x4cf9dc(0x1ab)](!![]),_0x3f8762=[],_0x356000=this;Object[_0x4cf9dc(0x79d)](_0x3f8762,'iterable',{'value':_0x356000});function _0x1eeaba(_0x5039f2){const _0x2d9493=_0x4cf9dc;while(_0x5039f2[_0x2d9493(0x3b5)]!==!![]){if(_0x5039f2[_0x2d9493(0x2b0)])return _0x5039f2[_0x2d9493(0x2b0)](_0x1eeaba);else _0x3f8762[_0x2d9493(0x2fb)](_0x5039f2[_0x2d9493(0x820)]);_0x5039f2=_0x29d826[_0x2d9493(0x788)]();}_0x8280ed(_0x356000[_0x2d9493(0x891)]=_0x3f8762);}_0x1eeaba(_0x29d826[_0x4cf9dc(0x788)]());});return _0xd0cfe4[_0xb0cc56(0x1e6)]=this,this[_0xb0cc56(0x891)]||(this[_0xb0cc56(0x891)]=_0xd0cfe4);}[_0x1987ae(0x87a)](){const _0x36fc5d=_0x1987ae;return this[_0x36fc5d(0x45b)];}['at'](_0x2c3ea9){for(let _0x349d85 of this){if(_0x2c3ea9--===0x0)return _0x349d85;}}}return _0x5148f5[_0x1987ae(0x455)][_0x1987ae(0x2fd)]=_0x461e90,dist$1['ExtendedIterable']=_0x5148f5,dist$1['SKIP']=_0x5a05a1,dist$1;}var iterable,hasRequiredIterable;function requireIterable(){const _0xa82641=_0x2ec26e;if(hasRequiredIterable)return iterable;hasRequiredIterable=0x1;const {ExtendedIterable:_0x28c927}=requireDist$1(),_0x5e1aef=Number(process.env.OKDB_NATIVE_RANGE_CHUNK)||0x3e8,_0x194ba2=Math[_0xa82641(0x5a9)](_0x5e1aef,Number(process.env.OKDB_NATIVE_ROW_CHUNK)||0x100),_0x4947ec=new Set(['getRange',_0xa82641(0x2c0),'query','getChanges']),_0xa00acc=Math['min'](_0x194ba2,Number(process.env.OKDB_NATIVE_RANGE_FIRST)||0x1),_0x35064c=0x4,_0x488710=(_0x357318,_0x18d9b9=_0x5e1aef)=>Math['min'](_0x18d9b9,_0x357318*_0x35064c),_0x41dafc={'value':undefined,'done':!![]};function _0xa7d87f(_0x259bb1){const _0x2476a8=_0xa82641,_0x22fa97=new _0x28c927();return _0x22fa97[_0x2476a8(0x1ab)]=()=>{let _0x445b95=0x0;return{'next'(){const _0x12895a=_0x3ebb;return _0x445b95<_0x259bb1[_0x12895a(0x6cf)]?{'value':_0x259bb1[_0x445b95++],'done':![]}:{'value':undefined,'done':!![]};},'return'(){const _0x1bfc7e=_0x3ebb;return _0x445b95=_0x259bb1[_0x1bfc7e(0x6cf)],{'value':undefined,'done':!![]};},'throw'(){const _0x10784d=_0x3ebb;return _0x445b95=_0x259bb1[_0x10784d(0x6cf)],{'value':undefined,'done':!![]};}};},_0x22fa97;}const _0x239bd6=_0x27c4c1=>typeof _0x27c4c1===_0xa82641(0x5c1)&&!Number[_0xa82641(0x7bc)](_0x27c4c1)?Math[_0xa82641(0x3e7)](0x0,Math['ceil'](_0x27c4c1)):Infinity,_0x2c94cb=_0x37cb35=>typeof _0x37cb35===_0xa82641(0x5c1)?Math[_0xa82641(0x3e7)](0x0,Math[_0xa82641(0x47a)](_0x37cb35))||0x0:0x0;function _0x833593(_0x5c37c6,_0x3fed88,_0x109743,_0x124e76={}){const _0x22d4f9=_0xa82641,_0x5b4aa1=new _0x28c927(),_0x570f1e=(_0x124e76[_0x22d4f9(0x70e)]||_0x239bd6)(_0x3fed88[_0x22d4f9(0x695)]),_0x51418e=_0x124e76[_0x22d4f9(0x1bf)]?_0x194ba2:_0x5e1aef,_0x3eefd9=_0x124e76['resumeOpts']||((_0x57e7b0,_0x8832be)=>{const _0x39496c=_0x22d4f9;_0x57e7b0['start']=_0x8832be,_0x57e7b0[_0x39496c(0x7ea)]=!![],delete _0x57e7b0[_0x39496c(0x534)];});let _0xd90516=null;if(_0x124e76[_0x22d4f9(0x44b)]){const _0x4d0cd6={..._0x3fed88,'limit':Math[_0x22d4f9(0x5a9)](_0xa00acc,_0x570f1e)};_0xd90516={'rows':_0x5c37c6(_0x4d0cd6),'limit':_0x4d0cd6[_0x22d4f9(0x695)]};const _0x4aa76e=_0xd90516;queueMicrotask(()=>{const _0x5e9b43=_0x22d4f9;_0x4aa76e[_0x5e9b43(0x1af)]=!![];});}return _0x5b4aa1[_0x22d4f9(0x1ab)]=()=>{const _0x34aff3=_0x22d4f9;let _0x2f8ffc=[],_0x526880=0x0,_0x366eed=0x0,_0x497e05,_0x2bf474=![],_0x3d255b=![],_0x5e63d2=_0xa00acc;if(_0xd90516&&!_0xd90516[_0x34aff3(0x1af)]&&!_0xd90516[_0x34aff3(0x166)]){_0xd90516[_0x34aff3(0x166)]=!![],_0x2f8ffc=_0xd90516[_0x34aff3(0x1bf)],_0x2bf474=!![],_0x5e63d2=_0x488710(_0x5e63d2,_0x51418e);if(_0x2f8ffc['length']<_0xd90516[_0x34aff3(0x695)])_0x3d255b=!![];if(_0x2f8ffc['length'])_0x497e05=_0x109743(_0x2f8ffc[_0x2f8ffc[_0x34aff3(0x6cf)]-0x1]);}const _0x1f7a2e=()=>{const _0x1425eb=_0x34aff3;if(_0x3d255b)return;const _0x2bf847=_0x570f1e-_0x366eed;if(_0x2bf847<=0x0){_0x3d255b=!![],_0x2f8ffc=[];return;}const _0x1f1aa3={..._0x3fed88,'limit':Math[_0x1425eb(0x5a9)](_0x5e63d2,_0x2bf847)};if(_0x2bf474)_0x3eefd9(_0x1f1aa3,_0x497e05);_0x2bf474=!![],_0x5e63d2=_0x488710(_0x5e63d2,_0x51418e),_0x2f8ffc=_0x5c37c6(_0x1f1aa3),_0x526880=0x0;if(_0x2f8ffc[_0x1425eb(0x6cf)]<_0x1f1aa3[_0x1425eb(0x695)])_0x3d255b=!![];if(_0x2f8ffc['length'])_0x497e05=_0x109743(_0x2f8ffc[_0x2f8ffc['length']-0x1]);};return{'next'(){const _0xc30842=_0x34aff3;if(_0x526880>=_0x2f8ffc[_0xc30842(0x6cf)])_0x1f7a2e();if(_0x526880>=_0x2f8ffc[_0xc30842(0x6cf)])return{'value':undefined,'done':!![]};return _0x366eed++,{'value':_0x2f8ffc[_0x526880++],'done':![]};},'return'(){return _0x3d255b=!![],_0x2f8ffc=[],{'value':undefined,'done':!![]};},'throw'(){return _0x3d255b=!![],_0x2f8ffc=[],{'value':undefined,'done':!![]};}};},_0x5b4aa1;}function _0x5d159b(_0x54585c,_0x36f96c,_0xd1cfd0,_0x44f6ea,_0x88b3a8={}){const _0x387f45=_0xa82641,_0x3866bf=(_0x88b3a8[_0x387f45(0x70e)]||_0x239bd6)(_0x44f6ea&&_0x44f6ea[_0x387f45(0x695)]),_0x483493=_0x4947ec[_0x387f45(0x51e)](_0x36f96c)?_0x194ba2:_0x5e1aef,_0xbf9edd=(_0x88b3a8['offsetOf']||_0x2c94cb)(_0x44f6ea&&_0x44f6ea['offset']),_0x4f460d=(_0x570169,_0x3f34e2,_0x45243a)=>{const _0xbd39b8=_0x387f45,_0x172db8=_0x3866bf-_0x3f34e2,_0x3378f4=Math[_0xbd39b8(0x5a9)](_0x45243a,_0x172db8),_0xc5e71={'limit':_0x3378f4,'offset':_0xbf9edd+_0x3f34e2},_0x3c0a03=_0x54585c(_0xbd39b8(0x2dd),[_0x570169,_0x36f96c,_0x3378f4===_0x172db8?Infinity:_0x3378f4,..._0xd1cfd0(_0xc5e71)]);if(_0x3c0a03[0x0]===-0x1){const _0x29e8c1={'offset':_0xbf9edd+_0x3f34e2};if(_0x172db8!==Infinity)_0x29e8c1[_0xbd39b8(0x695)]=_0x172db8;return{'pin':0x0,'rows':_0x54585c(_0x36f96c,_0xd1cfd0(_0x29e8c1)),'raw':Infinity,'eager':!![]};}return{'pin':_0x3c0a03[0x0],'rows':_0x3c0a03[0x1],'raw':_0x3c0a03[0x2]};},_0x1b93c7=_0x54057c=>{if(_0x54057c)_0x54585c('unpin',[_0x54057c]);};function _0x5d0035(_0x5e7c96,_0x34518a,_0x12e61a){const _0x194fd2=_0x387f45;let _0x4e3e0f=0x0,_0x395ed0=[],_0x117084=0x0,_0x17e155=_0x5e7c96,_0x47f84f=_0xa00acc,_0x4d87dc=_0x3866bf-_0x5e7c96<=0x0;if(_0x12e61a)({buf:_0x395ed0,pos:_0x117084,consumed:_0x17e155,size:_0x47f84f,exhausted:_0x4d87dc}=_0x12e61a);const _0x1bb616=_0x4e8c09=>{const _0x53e374=_0x3ebb;_0x4e3e0f=_0x4e8c09[_0x53e374(0x7a7)],_0x395ed0=_0x4e8c09[_0x53e374(0x1bf)],_0x117084=0x0,_0x17e155+=_0x4e8c09[_0x53e374(0x540)],_0x47f84f=_0x488710(_0x47f84f,_0x483493);if(!_0x4e3e0f)_0x4d87dc=!![];};if(_0x34518a)_0x1bb616(_0x34518a);const _0x57a5cf=()=>{const _0x328b57=_0x4e3e0f;_0x4e3e0f=0x0,_0x1b93c7(_0x328b57);},_0x5e0bb6={'next'(){const _0x3fde35=_0x3ebb;while(_0x117084>=_0x395ed0[_0x3fde35(0x6cf)]){if(_0x4d87dc||_0x3866bf-_0x17e155<=0x0)return _0x4d87dc=!![],_0x57a5cf(),_0x41dafc;try{_0x1bb616(_0x4f460d(_0x4e3e0f,_0x17e155,_0x47f84f));}catch(_0x1454bc){_0x4e3e0f=0x0,_0x4d87dc=!![],_0x395ed0=[];throw _0x1454bc;}}return{'value':_0x395ed0[_0x117084++],'done':![]};},'return'(){return _0x57a5cf(),_0x41dafc;},'throw'(){return _0x57a5cf(),_0x41dafc;},'resumed'(){return _0x5d0035(0x0,null,{'buf':_0x395ed0,'pos':_0x117084,'consumed':_0x17e155,'size':_0x47f84f,'exhausted':_0x4d87dc});},[Symbol[_0x194fd2(0x56e)]](){return this;}};return _0x5e0bb6;}function _0xf7421b(){if(_0x3866bf<=0x0)return null;const _0x50df45=_0x4f460d(0x0,0x0,_0xa00acc);return queueMicrotask(()=>{const _0x5d19ec=_0x3ebb;!_0x50df45['taken']&&(_0x50df45[_0x5d19ec(0x1af)]=!![],_0x1b93c7(_0x50df45[_0x5d19ec(0x7a7)]));}),_0x50df45;}return{'source':_0x5d0035,'prefetch':_0xf7421b};}function _0x2a43b8(_0x4a2f13){const _0x5a0a68=_0xa82641;if(!_0x4a2f13||_0x4a2f13[_0x5a0a68(0x166)]||_0x4a2f13[_0x5a0a68(0x1af)])return null;return _0x4a2f13[_0x5a0a68(0x166)]=!![],_0x4a2f13;}return iterable={'fromArray':_0xa7d87f,'chunkedRange':_0x833593,'pinnedChunks':_0x5d159b,'claimPrefetch':_0x2a43b8,'lmdbLimit':_0x239bd6,'lmdbOffset':_0x2c94cb,'CHUNK':_0x5e1aef,'ROW_CHUNK':_0x194ba2,'FIRST':_0xa00acc},iterable;}var rawdb,hasRequiredRawdb;function requireRawdb(){const _0x35423b=_0x2ec26e;if(hasRequiredRawdb)return rawdb;hasRequiredRawdb=0x1;const {fromArray:_0x18c071}=requireIterable();class _0x1e0359{constructor(_0x4f71b5,_0x1dff7d='',_0x86d33f={},_0x3f248b=null){const _0x2ba8a2=_0x3ebb;this['_env']=_0x4f71b5,this[_0x2ba8a2(0x6fe)]=_0x1dff7d,this['dupSort']=!!(_0x86d33f&&_0x86d33f[_0x2ba8a2(0x691)]),this['useVersions']=!!(_0x86d33f&&_0x86d33f[_0x2ba8a2(0x1f9)]),this[_0x2ba8a2(0x231)]=_0x3f248b||this,this[_0x2ba8a2(0x7c7)]=null;}get[_0x35423b(0x1a4)](){const _0x3b75bc=_0x35423b;return this[_0x3b75bc(0x691)]?!![]:this['useVersions']?'v':![];}['_n'](_0x255745,_0x43e615){const _0x502d04=_0x35423b;return this[_0x502d04(0x51f)][_0x502d04(0x21e)][_0x502d04(0x49e)](_0x502d04(0x540),this['_env'][_0x502d04(0x6fe)],_0x255745,[this['name'],this[_0x502d04(0x1a4)],..._0x43e615],!![]);}['_read'](_0x157456,_0x444263){const _0x541e6f=_0x35423b;return this[_0x541e6f(0x51f)][_0x541e6f(0x21e)][_0x541e6f(0x49e)](_0x541e6f(0x540),this['_env'][_0x541e6f(0x6fe)],_0x157456,[this[_0x541e6f(0x6fe)],this[_0x541e6f(0x1a4)],..._0x444263],![]);}['_write'](_0x119722){const _0x1f1644=_0x35423b,_0x2b220a=this[_0x1f1644(0x51f)][_0x1f1644(0x7bb)];if(_0x2b220a)_0x2b220a[_0x1f1644(0x2fb)]({'sub':this[_0x1f1644(0x6fe)],'dup':this[_0x1f1644(0x1a4)],..._0x119722});else this['_env'][_0x1f1644(0x21e)][_0x1f1644(0x49e)](_0x1f1644(0x540),this[_0x1f1644(0x51f)][_0x1f1644(0x6fe)],_0x1f1644(0x26f),[[{'sub':this[_0x1f1644(0x6fe)],'dup':this[_0x1f1644(0x1a4)],..._0x119722}]],!![]);}['get'](_0x205e08){const _0x14f1ef=_0x35423b;return this['_read'](_0x14f1ef(0x63c),[_0x205e08]);}['getEntry'](_0x1b66b7){const _0x1b8953=_0x35423b;if(this['useVersions'])return this[_0x1b8953(0x3f7)](_0x1b8953(0x2ec),[_0x1b66b7]);const _0x3071ca=this[_0x1b8953(0x63c)](_0x1b66b7);return _0x3071ca===undefined?undefined:{'value':_0x3071ca};}['doesExist'](_0x4b5545){const _0x1868f4=_0x35423b;return this[_0x1868f4(0x3f7)](_0x1868f4(0x3bf),[_0x4b5545]);}[_0x35423b(0x4a2)](_0x5bc229){return this['get'](_0x5bc229);}[_0x35423b(0x3fa)](_0x333817={}){const _0x4bb7cc=_0x35423b,_0xbf0348=this[_0x4bb7cc(0x3f7)]('getRange',[_0x333817]),_0x134628=_0x333817[_0x4bb7cc(0x89c)]===![],_0x1140dd=_0x333817[_0x4bb7cc(0x1d5)]===![];return _0x18c071(_0xbf0348[_0x4bb7cc(0x1a7)](([_0x3ede5f,_0x16c185,_0x5f49ba])=>{if(_0x134628)return _0x3ede5f;if(_0x1140dd)return _0x16c185;return _0x5f49ba===undefined?{'key':_0x3ede5f,'value':_0x16c185}:{'key':_0x3ede5f,'value':_0x16c185,'version':_0x5f49ba};}));}[_0x35423b(0x7d2)](_0x29b295={}){const _0x22cee0=_0x35423b;return _0x18c071(this[_0x22cee0(0x3f7)](_0x22cee0(0x3fa),[_0x29b295])[_0x22cee0(0x1a7)](([_0x2afc7b])=>_0x2afc7b));}['getValues'](_0x3343ab,_0x4381d6={}){const _0x53a8fa=_0x35423b,_0x1e58b9=this[_0x53a8fa(0x3f7)]('getRange',[{..._0x4381d6,'start':_0x3343ab,'end':_0x3343ab,'inclusiveEnd':!![]}]);return _0x18c071(_0x1e58b9[_0x53a8fa(0x1a7)](([,_0x1a0e10])=>_0x1a0e10));}['getCount'](_0x374f3a={}){const _0x4ef855=_0x35423b;return this['_read'](_0x4ef855(0x3c2),[_0x374f3a]);}[_0x35423b(0x7fd)](){const _0x5aa917=_0x35423b;return{'entryCount':this[_0x5aa917(0x436)]()};}['put'](_0x276ef4,_0x2adbd2,_0xbf4116){const _0xb35d03=_0x35423b;return this[_0xb35d03(0x75c)]({'op':_0xb35d03(0x27f),'key':_0x276ef4,'value':_0x2adbd2,'version':_0xbf4116}),Promise['resolve'](!![]);}[_0x35423b(0x225)](_0x5c0275,_0x25b8d1,_0x12f181){const _0x55e1b0=_0x35423b;return this[_0x55e1b0(0x75c)]({'op':_0x55e1b0(0x27f),'key':_0x5c0275,'value':_0x25b8d1,'version':_0x12f181}),!![];}[_0x35423b(0x42f)](_0x26ef76,_0x696c07){const _0x3aaee8=_0x35423b;return this[_0x3aaee8(0x75c)]({'op':'remove','key':_0x26ef76,'value':_0x696c07}),Promise[_0x3aaee8(0x7a9)](!![]);}[_0x35423b(0x76e)](_0x34cb12,_0x2aebb2){const _0x75b941=_0x35423b;return this[_0x75b941(0x75c)]({'op':_0x75b941(0x42f),'key':_0x34cb12,'value':_0x2aebb2}),!![];}[_0x35423b(0x1f7)](){const _0x3c0772=_0x35423b;this[_0x3c0772(0x75c)]({'op':_0x3c0772(0x871)});}[_0x35423b(0x660)](){const _0xc20b57=_0x35423b;return this[_0xc20b57(0x75c)]({'op':_0xc20b57(0x871)}),Promise['resolve']();}[_0x35423b(0x303)](){const _0x4e10e0=_0x35423b;this[_0x4e10e0(0x1f7)]();}[_0x35423b(0x840)](_0x4877fc,_0x34129e={}){const _0x836566=_0x35423b,_0xa1eeb6=typeof _0x4877fc==='object'?_0x4877fc:_0x34129e,_0x105db4=typeof _0x4877fc===_0x836566(0x1be)?_0x4877fc[_0x836566(0x6fe)]:_0x4877fc,_0x17b910=new _0x1e0359(this[_0x836566(0x51f)],_0x105db4,_0xa1eeb6);return _0x17b910[_0x836566(0x75c)]({'op':_0x836566(0x766)}),_0x17b910;}[_0x35423b(0x5a1)](){}['transactionSync'](_0x9dd73c){const _0x544d94=_0x35423b;return this[_0x544d94(0x24d)](_0x9dd73c);}async[_0x35423b(0x7f7)](_0x34359d){return this['_tx'](_0x34359d);}[_0x35423b(0x55d)](_0x10eab1){const _0x5ba257=_0x35423b;return this[_0x5ba257(0x24d)](_0x10eab1);}['_tx'](_0x154c11){const _0x5522cc=_0x35423b,_0x21c445=this['_env'];if(_0x21c445[_0x5522cc(0x7bb)])return _0x154c11();_0x21c445[_0x5522cc(0x7bb)]=[];let _0x5cf05d;try{_0x5cf05d=_0x154c11();}catch(_0x3d9e83){_0x21c445[_0x5522cc(0x7bb)]=null;throw _0x3d9e83;}const _0x3dca63=_0x21c445[_0x5522cc(0x7bb)];_0x21c445[_0x5522cc(0x7bb)]=null;if(_0x3dca63['length'])_0x21c445[_0x5522cc(0x21e)][_0x5522cc(0x49e)](_0x5522cc(0x540),_0x21c445[_0x5522cc(0x6fe)],_0x5522cc(0x26f),[_0x3dca63],!![]);return _0x5cf05d;}[_0x35423b(0x271)](){return{'done'(){}};}[_0x35423b(0x173)](){}}return rawdb={'RawDb':_0x1e0359},rawdb;}var views,hasRequiredViews;function requireViews(){const _0x5b9bac=_0x2ec26e;if(hasRequiredViews)return views;hasRequiredViews=0x1;const {RawDb:_0x122f6f}=requireRawdb();class _0x479a26{constructor(_0x4a8caf){const _0x41480e=_0x3ebb;this[_0x41480e(0x30b)]=_0x4a8caf,this['_n']=(_0x3ef18f,_0x187cc6,_0xf0ec03=!![])=>_0x4a8caf[_0x41480e(0x21e)][_0x41480e(0x49e)](_0x41480e(0x62a),_0x4a8caf[_0x41480e(0x6fe)],_0x3ef18f,_0x187cc6,_0xf0ec03);}get[_0x5b9bac(0x7f0)](){const _0x54f673=_0x5b9bac,_0x1426a8=this,_0x2e97e1=this[_0x54f673(0x30b)],_0x35a1ab=_0x37aa02=>_0x37aa02?new _0x122f6f(_0x2e97e1,_0x37aa02[_0x54f673(0x6fe)],{'dupSort':_0x37aa02[_0x54f673(0x876)]}):undefined,_0x2a815d=_0x450fce=>{const _0x50d0df=_0x54f673,_0x102376=_0x1426a8['_n'](_0x50d0df(0x742),[_0x450fce],![]);if(!_0x102376)return undefined;const _0x249df1=_0x102376[_0x50d0df(0x4d1)],_0x13ec90=new Map(Object[_0x50d0df(0x72a)](_0x249df1[_0x50d0df(0x4d3)])),_0x4a119a=new Map(Object['entries'](_0x102376[_0x50d0df(0x368)])[_0x50d0df(0x1a7)](([_0x5d2661,_0x59409d])=>[_0x5d2661,_0x35a1ab(_0x59409d)]));return{'name':_0x450fce,'compiled':{'T':_0x249df1['T'],'reducers':_0x249df1[_0x50d0df(0x412)],'refs':_0x13ec90,'granId':_0x249df1[_0x50d0df(0x6a9)],'type':_0x249df1[_0x50d0df(0x673)],'_nidFor':_0x4df682=>_0x1426a8['_n'](_0x50d0df(0x64a),[_0x450fce,_0x4df682],![])},'viewDb':_0x35a1ab(_0x102376[_0x50d0df(0x318)][_0x50d0df(0x320)]),'metaDb':_0x35a1ab(_0x102376['dbs'][_0x50d0df(0x3e3)]),'itemsDb':_0x35a1ab(_0x102376[_0x50d0df(0x318)][_0x50d0df(0x51b)]),'bucketsDb':_0x35a1ab(_0x102376[_0x50d0df(0x318)][_0x50d0df(0x262)]),'sortedDb':_0x35a1ab(_0x102376[_0x50d0df(0x318)][_0x50d0df(0x510)]),'groupsDb':_0x35a1ab(_0x102376[_0x50d0df(0x318)][_0x50d0df(0x78a)]),'prevDb':_0x35a1ab(_0x102376[_0x50d0df(0x318)]['prevDb']),'refItemsDbs':_0x4a119a,'refTrackingDbs':new Map(Object[_0x50d0df(0x72a)](_0x102376['refTrackingDbs']||{})[_0x50d0df(0x1a7)](([_0x1cab2d,_0x32c320])=>[_0x1cab2d,_0x35a1ab(_0x32c320)])),'stopFn':_0x102376['hasStopFn']?async()=>_0x1426a8['_n'](_0x50d0df(0x6d3),[_0x450fce]):null,'bootstrapWorker':null};};return{'get':_0x482eed=>_0x2a815d(_0x482eed),'has':_0x166159=>_0x1426a8['_n'](_0x54f673(0x879),[],![])[_0x54f673(0x1ac)](_0x166159),'keys':()=>_0x1426a8['_n'](_0x54f673(0x879),[],![])[Symbol[_0x54f673(0x56e)]](),get 'size'(){return _0x1426a8['_n']('stateNames',[],![])['length'];},[Symbol[_0x54f673(0x56e)]]:()=>_0x1426a8['_n'](_0x54f673(0x879),[],![])[_0x54f673(0x1a7)](_0x430226=>[_0x430226,_0x2a815d(_0x430226)])[Symbol[_0x54f673(0x56e)]]()};}get[_0x5b9bac(0x4c0)](){const _0x478be2=_0x5b9bac,_0x4ef5e7=this;return{'has':_0x15fcc9=>_0x4ef5e7['_n'](_0x478be2(0x83b),[],![])[_0x478be2(0x1ac)](_0x15fcc9),get 'size'(){const _0x30535a=_0x478be2;return _0x4ef5e7['_n'](_0x30535a(0x83b),[],![])[_0x30535a(0x6cf)];},'keys':()=>_0x4ef5e7['_n']('customReducerNames',[],![])[Symbol[_0x478be2(0x56e)]]()};}async[_0x5b9bac(0x522)](){const _0x38b7ee=_0x5b9bac;return this['_n'](_0x38b7ee(0x522),[]);}async[_0x5b9bac(0x696)](_0x253c9e={}){const _0x2eaf70=_0x5b9bac;return this['_n'](_0x2eaf70(0x696),[_0x253c9e]);}async[_0x5b9bac(0x740)](_0x288426,_0x173584){const _0x29cf72=_0x5b9bac;return this['_n'](_0x29cf72(0x740),[_0x288426,_0x173584]),{'name':_0x288426};}['get'](_0x5332cb,_0x36465d={}){const _0x49038b=_0x5b9bac,_0x2de072=this['_n'](_0x49038b(0x63c),[_0x5332cb,{'preview':_0x36465d?.[_0x49038b(0x84c)]??{}}],![]);if(_0x2de072==null)return null;const _0x409252=this['_n'](_0x49038b(0x309),[_0x5332cb],![]);if(!_0x409252)return _0x2de072;const _0x3c9fe9=_0x1ea6eb=>(_0x548e24={})=>this['_n'](_0x49038b(0x4a5),[_0x5332cb,_0x1ea6eb,_0x548e24],![]);if(_0x409252[_0x49038b(0x4e3)]){_0x2de072['items']=_0x3c9fe9({'kind':_0x49038b(0x4e3)});for(const _0x4bbe69 of _0x409252['reducers']){if(!_0x4bbe69['items'])continue;if(_0x4bbe69['grouped']){const _0x3833dc=_0x2de072[_0x4bbe69[_0x49038b(0x6fe)]];if(_0x3833dc?.[_0x49038b(0x84c)]&&Array[_0x49038b(0x69e)](_0x3833dc[_0x49038b(0x84c)])){for(const _0x2d1f95 of _0x3833dc['preview'])_0x2d1f95[_0x49038b(0x4a5)]=_0x3c9fe9({'kind':'group','reducer':_0x4bbe69[_0x49038b(0x6fe)],'key':_0x2d1f95[_0x49038b(0x366)]});}}else _0x2de072[_0x4bbe69[_0x49038b(0x6fe)]]&&(_0x2de072[_0x4bbe69[_0x49038b(0x6fe)]][_0x49038b(0x4a5)]=_0x3c9fe9({'kind':_0x49038b(0x2c2),'reducer':_0x4bbe69[_0x49038b(0x6fe)]}));}}for(const _0x5b078a of _0x409252[_0x49038b(0x4d3)]){if(!_0x5b078a[_0x49038b(0x4e3)])continue;const _0x345b24=_0x2de072[_0x5b078a['name']];if(!_0x345b24||typeof _0x345b24!=='object')continue;_0x345b24[_0x49038b(0x4a5)]=_0x3c9fe9({'kind':'view','ref':_0x5b078a[_0x49038b(0x6fe)]});for(const _0xa69530 of _0x5b078a['reducers']){if(!_0xa69530['items'])continue;if(_0xa69530['grouped']){const _0x30dc98=_0x345b24[_0xa69530[_0x49038b(0x6fe)]];if(_0x30dc98?.[_0x49038b(0x84c)]&&Array[_0x49038b(0x69e)](_0x30dc98[_0x49038b(0x84c)])){for(const _0xa3cddc of _0x30dc98[_0x49038b(0x84c)])_0xa3cddc[_0x49038b(0x4a5)]=_0x3c9fe9({'kind':_0x49038b(0x6ba),'ref':_0x5b078a[_0x49038b(0x6fe)],'reducer':_0xa69530[_0x49038b(0x6fe)],'key':_0xa3cddc[_0x49038b(0x366)]});}}else _0x345b24[_0xa69530[_0x49038b(0x6fe)]]&&(_0x345b24[_0xa69530[_0x49038b(0x6fe)]][_0x49038b(0x4a5)]=_0x3c9fe9({'kind':_0x49038b(0x2c2),'ref':_0x5b078a[_0x49038b(0x6fe)],'reducer':_0xa69530[_0x49038b(0x6fe)]}));}}return _0x2de072;}[_0x5b9bac(0x466)](_0x397dcf){const _0x4bcbfd=_0x5b9bac;return this['_n'](_0x4bcbfd(0x466),[_0x397dcf],![]);}['itemsGroups'](_0x308463,_0xb1b997={}){const _0x35d4a8=_0x5b9bac;return this['_n'](_0x35d4a8(0x547),[_0x308463,_0xb1b997],![]);}[_0x5b9bac(0x380)](_0x5cc720,_0x3e886a={}){const _0x592366=_0x5b9bac;return this['_n'](_0x592366(0x380),[_0x5cc720,_0x3e886a],![]);}[_0x5b9bac(0x459)](_0x42a1f1,_0x417e3e={}){const _0x26c056=_0x5b9bac;return this['_n'](_0x26c056(0x459),[_0x42a1f1,_0x417e3e],![]);}async['list'](){const _0x163a83=_0x5b9bac;return this['_n'](_0x163a83(0x338),[],![]);}async[_0x5b9bac(0x261)](_0x253757){const _0x274a16=_0x5b9bac;return this['_n'](_0x274a16(0x261),[_0x253757],![])??null;}async['remove'](_0x41e972,_0x1f6981={}){const _0x565fb0=_0x5b9bac;return this['_n'](_0x565fb0(0x42f),[_0x41e972,_0x1f6981]);}async['stop'](_0x2be049){return this['_n']('stop',[_0x2be049]);}async[_0x5b9bac(0x898)](_0x1bdf00){const _0x1b4bc4=_0x5b9bac;return this['_n'](_0x1b4bc4(0x898),[_0x1bdf00]);}async['rebuild'](_0x887f4e){const _0xe4908=_0x5b9bac;return this['_n'](_0xe4908(0x574),[_0x887f4e]);}async[_0x5b9bac(0x3aa)](_0x3cf988){return this['_n']('resetView',[_0x3cf988]);}[_0x5b9bac(0x542)](_0x3bbf38,_0x5174c9={}){const _0x376c40=_0x5b9bac;return this['_n'](_0x376c40(0x542),[_0x3bbf38,{'apply':_0x5174c9&&_0x5174c9[_0x376c40(0x2a0)]}]);}}return views={'OKDBViews':_0x479a26},views;}var queue,hasRequiredQueue;function requireQueue(){const _0x5f167b=_0x2ec26e;if(hasRequiredQueue)return queue;hasRequiredQueue=0x1;const {OKDBError:_0x456343}=requireErrors(),_0x3bdc0e=requireBridge();class _0x165e3b{constructor(_0x10e7cb){const _0x5b5101=_0x3ebb;this[_0x5b5101(0x30b)]=_0x10e7cb,this['okdb']=_0x10e7cb['okdb'],this['log']=_0x10e7cb[_0x5b5101(0x21e)]['log'][_0x5b5101(0x675)]({'feature':'queue'}),this['_workers']=new Set();}['_n'](_0x293991,_0x235525,_0x237794=!![]){const _0x280399=_0x3ebb;return this[_0x280399(0x21e)][_0x280399(0x49e)](_0x280399(0x601),this[_0x280399(0x30b)][_0x280399(0x6fe)],_0x293991,_0x235525,_0x237794);}['_w'](_0xcb0b46,_0x4df2b1){const _0x460825=_0x3ebb;return this[_0x460825(0x21e)][_0x460825(0x55c)](this['_n'](_0xcb0b46,_0x4df2b1));}async['_ensure'](){const _0x18d665=_0x3ebb;return this['_n'](_0x18d665(0x766),[]);}async['list'](_0x4507a8={}){const _0x389845=_0x3ebb;return this['_n'](_0x389845(0x338),[_0x4507a8],![]);}get[_0x5f167b(0x3ae)](){const _0x5d1f3a=_0x5f167b,{RawDb:_0x4f7d63}=requireRawdb();return this[_0x5d1f3a(0x6d1)]||(this['__logsDb']=new _0x4f7d63(this[_0x5d1f3a(0x30b)],_0x5d1f3a(0x736)));}async['_sweepOrphanLogs'](){const _0xdffc7d=_0x5f167b;return this['_w'](_0xdffc7d(0x3cd),[]);}async[_0x5f167b(0x414)](_0xe8b47d,_0x409d3d,_0x248785={}){const _0xa03f36=_0x5f167b,{txn:_0x209350,..._0x62be91}=_0x248785||{};if(_0x209350)return this[_0xa03f36(0x6eb)](_0x209350,_0xe8b47d,_0x409d3d,_0x62be91);const _0x559261=this[_0xa03f36(0x21e)][_0xa03f36(0x53b)];if(_0x559261&&_0x559261['queue'][_0xa03f36(0x6cf)])_0x559261[_0xa03f36(0x2cd)]();const _0x7b1b67=this['_n']('enqueueClaim',[_0xe8b47d,_0x409d3d,_0x62be91],![]);return this[_0xa03f36(0x21e)]['_settleWrite'](_0x7b1b67['id'])[_0xa03f36(0x2b0)](_0x564b94=>{const _0x32b037=_0xa03f36;if(_0x7b1b67[_0x32b037(0x657)])this[_0x32b037(0x24a)](_0xe8b47d);else try{this[_0x32b037(0x21e)][_0x32b037(0x5bc)]['wake']();}catch{}return _0x564b94;});}[_0x5f167b(0x24a)](_0x33700f){queueMicrotask(()=>{const _0x3b1cc5=_0x3ebb;try{this['_n'](_0x3b1cc5(0x32a),[_0x33700f]);}catch{}});}[_0x5f167b(0x6eb)](_0x21cc64,_0x3fbd77,_0x1eab7a,_0x5bcf68){const _0x4a62cf=_0x5f167b,_0x43bee5=_0x21cc64[_0x4a62cf(0x540)]??_0x21cc64;if(_0x43bee5[_0x4a62cf(0x208)])throw new _0x456343(_0x4a62cf(0x527),_0x4a62cf(0x1f6));if(_0x43bee5[_0x4a62cf(0x21e)]&&_0x43bee5[_0x4a62cf(0x21e)]!==this[_0x4a62cf(0x30b)]&&_0x43bee5[_0x4a62cf(0x21e)][_0x4a62cf(0x6fe)]!==this[_0x4a62cf(0x30b)][_0x4a62cf(0x6fe)])throw new _0x456343(_0x4a62cf(0x287),_0x4a62cf(0x878),{'txnEnv':_0x43bee5[_0x4a62cf(0x21e)]['name'],'queueEnv':this['env'][_0x4a62cf(0x6fe)]});const _0x1d33e1=this['_n'](_0x4a62cf(0x76b),[_0x3fbd77,_0x1eab7a,_0x5bcf68],![]);if(_0x1d33e1[_0x4a62cf(0x5f4)])return _0x1d33e1['id'];if(_0x1d33e1[_0x4a62cf(0x70c)])_0x21cc64['update'](_0x4a62cf(0x425),_0x1d33e1[_0x4a62cf(0x70c)]['key'],_0x1d33e1[_0x4a62cf(0x70c)]['value'],{'ifVersion':_0x1d33e1[_0x4a62cf(0x70c)][_0x4a62cf(0x280)]});if(_0x1eab7a!==undefined)_0x21cc64['put'](_0x4a62cf(0x345),_0x1d33e1['id'],_0x1eab7a);_0x21cc64[_0x4a62cf(0x27f)](_0x4a62cf(0x425),_0x1d33e1['id'],_0x1d33e1[_0x4a62cf(0x5cd)]);if(typeof _0x43bee5['onDo']===_0x4a62cf(0x6d8))_0x43bee5[_0x4a62cf(0x576)](()=>{const _0x2858a6=_0x4a62cf;if(this['_n'](_0x2858a6(0x551),[_0x1d33e1['id'],_0x3fbd77,_0x1d33e1[_0x2858a6(0x80b)],_0x1d33e1[_0x2858a6(0x689)]]))this[_0x2858a6(0x24a)](_0x3fbd77);});return _0x1d33e1['id'];}async['claim'](_0x15b363,_0x26f837={}){const _0x4e4e98=_0x5f167b;if(typeof _0x15b363!==_0x4e4e98(0x4bb)||!_0x15b363)throw new _0x456343(_0x4e4e98(0x23c),_0x4e4e98(0x694));return this['_w'](_0x4e4e98(0x27a),[_0x15b363,_0x26f837]);}async[_0x5f167b(0x385)](_0x52d253,_0x31ee4e,_0x211b43=null){return this['_w']('markJobHeartbeat',[_0x52d253,_0x31ee4e,_0x211b43]);}async[_0x5f167b(0x2de)](_0x2c7791,_0x5aae67,_0x390259=null){const _0x24111d=_0x5f167b;return this[_0x24111d(0x385)](_0x2c7791,_0x5aae67,_0x390259);}async[_0x5f167b(0x21d)](_0x308503,_0x350597,_0x4ca53c){const _0x2c487c=_0x5f167b;return this['_w'](_0x2c487c(0x21d),[_0x308503,_0x350597,_0x4ca53c]);}async[_0x5f167b(0x1e1)](_0x193a7f,_0x2383e4,_0x53072a){const _0x130439=_0x5f167b;return this['_w'](_0x130439(0x1e1),[_0x193a7f,_0x2383e4,_0x53072a]);}async[_0x5f167b(0x684)](_0x3cfb38,_0x36766c,_0x535e0e){const _0x54dfce=_0x5f167b;return this[_0x54dfce(0x1e1)](_0x3cfb38,_0x36766c,_0x535e0e);}async[_0x5f167b(0x83c)](_0x5889f8,_0x182fd2,_0x36754a,_0x8717dd){const _0x24c594=_0x5f167b,_0x325636=_0x36754a instanceof Error?{'message':_0x36754a[_0x24c594(0x2d2)],'stack':_0x36754a[_0x24c594(0x3fd)]}:_0x36754a;return this['_w'](_0x24c594(0x83c),[_0x5889f8,_0x182fd2,_0x325636,_0x8717dd]);}async[_0x5f167b(0x61b)](_0x286df9,_0x4a512b,_0xcb100d,_0x18695f){const _0x48955d=_0x5f167b;return this[_0x48955d(0x83c)](_0x286df9,_0x4a512b,_0xcb100d,_0x18695f);}async['releaseClaim'](_0x31c027,_0x4e2d70,_0x456eaa={}){const _0x519955=_0x5f167b;return this['_w'](_0x519955(0x509),[_0x31c027,_0x4e2d70,_0x456eaa]);}async[_0x5f167b(0x64d)](_0x4e566b){const _0xf3e14f=_0x5f167b;return this['_n'](_0xf3e14f(0x64d),[_0x4e566b],![]);}async[_0x5f167b(0x5ea)](_0xe5adf0,_0x79e811={},_0x508992={}){const _0x5ad4e6=_0x5f167b,_0x283a38=_0x508992&&_0x508992[_0x5ad4e6(0x27c)];if(!_0x283a38)return this['_w'](_0x5ad4e6(0x5ea),[_0xe5adf0,_0x79e811]);const {next:_0x3072b1,version:_0x1af718}=this['_n'](_0x5ad4e6(0x362),[_0xe5adf0,_0x79e811],![]);_0x283a38['update'](_0x5ad4e6(0x425),_0xe5adf0,_0x3072b1,{'ifVersion':_0x1af718});let _0x4cac8b;if(_0x5ad4e6(0x3f6)in _0x79e811){if(_0x79e811['payload']===undefined){if(this[_0x5ad4e6(0x30b)][_0x5ad4e6(0x2ec)]('~queue_payloads',_0xe5adf0))_0x283a38['remove']('~queue_payloads',_0xe5adf0);}else _0x283a38[_0x5ad4e6(0x27f)](_0x5ad4e6(0x345),_0xe5adf0,_0x79e811['payload']);_0x4cac8b=_0x79e811[_0x5ad4e6(0x3f6)];}else _0x4cac8b=this[_0x5ad4e6(0x30b)][_0x5ad4e6(0x63c)]('~queue_payloads',_0xe5adf0);return{..._0x3072b1,'payload':_0x4cac8b};}async[_0x5f167b(0x55e)](_0x2e04fd,_0x3eaf6d={}){const _0xae12f=_0x5f167b,_0x25caf9=_0x3eaf6d&&_0x3eaf6d[_0xae12f(0x27c)];if(!_0x25caf9)return this['_w'](_0xae12f(0x55e),[_0x2e04fd]);if(!_0x2e04fd)throw new _0x456343(_0xae12f(0x17c),_0xae12f(0x694));if(!this[_0xae12f(0x30b)][_0xae12f(0x2ec)](_0xae12f(0x425),_0x2e04fd))return![];_0x25caf9[_0xae12f(0x42f)]('~queue_jobs',_0x2e04fd);if(this[_0xae12f(0x30b)][_0xae12f(0x2ec)](_0xae12f(0x345),_0x2e04fd))_0x25caf9[_0xae12f(0x42f)](_0xae12f(0x345),_0x2e04fd);if(typeof _0x25caf9[_0xae12f(0x576)]===_0xae12f(0x6d8))_0x25caf9['onDo'](()=>this['_n'](_0xae12f(0x2d3),[_0x2e04fd]));return!![];}async['cancelJob'](_0x303982){const _0x303d53=_0x5f167b;return this['_w'](_0x303d53(0x51a),[_0x303982]);}async[_0x5f167b(0x836)](_0x2257b6){const _0x2bdb08=_0x5f167b;return this['_w'](_0x2bdb08(0x836),[_0x2257b6]);}async['_clearChunked'](_0xa8c34d,_0x5e7149,_0x67899e){const _0x234528=_0x5f167b,_0x598d34=this['_n'](_0x234528(0x46d),[_0x5e7149??null,_0x67899e??0x0,_0xa8c34d]),_0x335115=0x1f4;for(let _0x5ca9dc=0x0;_0x5ca9dc<_0x598d34['length'];_0x5ca9dc+=_0x335115){this['_n']('bulkRemoveChunk',[_0x598d34[_0x234528(0x5ca)](_0x5ca9dc,_0x5ca9dc+_0x335115),_0x5ca9dc,_0x598d34['length'],_0x5e7149??null]);if(_0x5ca9dc+_0x335115<_0x598d34['length'])await new Promise(_0x397e67=>setImmediate(_0x397e67));}return this['_n'](_0x234528(0x3b3),[_0x598d34[_0x234528(0x6cf)],_0x5e7149??null]),await new Promise(_0xb3593b=>setImmediate(_0xb3593b)),_0x598d34['length'];}async[_0x5f167b(0x699)](_0x178a25,_0x4a322d){return this['_clearChunked']('done',_0x178a25,_0x4a322d);}async['clearFailed'](_0x5ca29e,_0x832783){const _0x27acfc=_0x5f167b;return this['_clearChunked'](_0x27acfc(0x719),_0x5ca29e,_0x832783);}async['retryFailed'](_0x283c7e,_0x36e9f2){const _0xdbb590=_0x5f167b;return this['_w'](_0xdbb590(0x3c6),[_0x283c7e??null,_0x36e9f2??0x0]);}async[_0x5f167b(0x85b)](_0x599d1e,_0x2c4d99){const _0x3e7fda=_0x5f167b;return this['_w'](_0x3e7fda(0x85b),[_0x599d1e??null,_0x2c4d99??0x0]);}async[_0x5f167b(0x640)](_0x1f8670,_0x2ada03,_0x148f71){const _0x4e4bf6=_0x5f167b;return this['_w'](_0x4e4bf6(0x640),[_0x1f8670,_0x2ada03,_0x148f71]);}async[_0x5f167b(0x50e)](_0x276714,_0x462b4d={}){const _0x51c99c=_0x5f167b;return this['_n'](_0x51c99c(0x50e),[_0x276714,_0x462b4d],![]);}async[_0x5f167b(0x67d)](_0x2e24c1,_0x54ef3d={}){const _0x541533=_0x5f167b,{txn:_0x5c5846,..._0xf3b5aa}=_0x54ef3d||{};if(!_0x5c5846)return this['_w'](_0x541533(0x67d),[_0x2e24c1,_0xf3b5aa]);const _0x35506c=(_0x56c2d3,_0xb860fc,_0x10132d,_0xb3348e)=>{const _0x14b8b6=_0x541533,_0x7e2339=Math[_0x14b8b6(0x47a)](Number(_0x56c2d3));return Number[_0x14b8b6(0x5ef)](_0x7e2339)?Math['min'](_0xb3348e,Math['max'](_0x10132d,_0x7e2339)):_0xb860fc;},_0x1fe6b4=typeof _0x2e24c1==='string'?_0x2e24c1[_0x541533(0x78c)]():'';if(!_0x1fe6b4)throw new Error(_0x541533(0x467));const _0x276720=_0x35506c(_0xf3b5aa[_0x541533(0x658)],0x0,0x0,0x3b9aca00);_0x5c5846[_0x541533(0x27f)](_0x541533(0x5f6),_0x1fe6b4,{'id':_0x1fe6b4,'tokens':_0x35506c(_0xf3b5aa['tokens'],_0x276720,0x0,_0x276720),'capacity':_0x276720,'refill_amount':_0x35506c(_0xf3b5aa[_0x541533(0x6e4)],0x0,0x0,0x3b9aca00),'refill_every':_0x35506c(_0xf3b5aa['refill_every'],0x0,0x0,0x16d*0x18*0x36ee80),'updated':Date[_0x541533(0x89e)]()});}async[_0x5f167b(0x5ae)](_0x1116a3,_0xb69148){const _0x3ccd2c=_0x5f167b;return this['_w'](_0x3ccd2c(0x5ae),[_0x1116a3,_0xb69148]);}async[_0x5f167b(0x603)](_0x3a3039){const _0x129840=_0x5f167b;return this['_w'](_0x129840(0x603),[_0x3a3039]);}[_0x5f167b(0x758)](_0x5e183c){const _0x5abe8f=_0x5f167b,_0x3edb78=this['_n'](_0x5abe8f(0x758),[_0x5e183c],![]);return _0x3edb78===null&&typeof _0x5e183c===_0x5abe8f(0x4bb)&&_0x5e183c[_0x5abe8f(0x78c)]()?undefined:_0x3edb78;}async[_0x5f167b(0x864)](_0x384890,_0x4ae31f){const _0x480791=_0x5f167b;return this['_w'](_0x480791(0x864),[_0x384890,_0x4ae31f]);}async[_0x5f167b(0x598)](_0xa8f726,_0x21309d={}){const _0x3e7b5b=_0x5f167b;return this['_w'](_0x3e7b5b(0x598),[_0xa8f726,_0x21309d]);}async[_0x5f167b(0x242)](_0x5ebf93){const _0x48ba9e=_0x5f167b;return this['_n'](_0x48ba9e(0x242),[_0x5ebf93],![]);}async['listJobTypes'](){const _0x2ef641=_0x5f167b;return this['_n'](_0x2ef641(0x4a6),[],![]);}async['removeJobType'](_0x4cf4aa){const _0x51f15e=_0x5f167b;return this['_w'](_0x51f15e(0x608),[_0x4cf4aa]);}[_0x5f167b(0x453)](_0x7b5739){const _0x1cab3a=_0x5f167b;return this['_n'](_0x1cab3a(0x453),[_0x7b5739]);}[_0x5f167b(0x295)](_0x7c1b44){return this['_n']('resumeJobType',[_0x7c1b44]);}[_0x5f167b(0x68b)](_0x16fd39){const _0x27a953=_0x5f167b;return this['_n'](_0x27a953(0x68b),[_0x16fd39]);}async[_0x5f167b(0x75f)](_0x4f218a,_0x3dbcbb,_0x5ab69d=![]){const _0x4abb7a=_0x5f167b;return this['_w'](_0x4abb7a(0x75f),[_0x4f218a,_0x3dbcbb,_0x5ab69d]);}async[_0x5f167b(0x360)](_0x5b3811){const _0x49c574=_0x5f167b;return this['_w'](_0x49c574(0x360),[_0x5b3811]);}async[_0x5f167b(0x746)](_0x68bf6e,_0x5ec67a=0x5){const _0x29c1fb=_0x5f167b;return this['_n'](_0x29c1fb(0x746),[_0x68bf6e,_0x5ec67a],![]);}async[_0x5f167b(0x703)](_0x2405c7){const _0x983e4f=_0x5f167b;return this['_n'](_0x983e4f(0x460),[_0x2405c7]);}async[_0x5f167b(0x3fe)](_0x236d8e=0x7530){const _0x2fc41a=_0x5f167b;await Promise[_0x2fc41a(0x795)]([...this[_0x2fc41a(0x561)]]['map'](_0x411171=>_0x411171[_0x2fc41a(0x893)](_0x236d8e)));const _0x47ed79=this['_n']('stopAll',[0x0]);return this[_0x2fc41a(0x561)]['clear'](),_0x47ed79;}async[_0x5f167b(0x7f9)](){const _0x119d50=_0x5f167b,_0x10ba8d=this['_n'](_0x119d50(0x7f9),[]);return this[_0x119d50(0x561)][_0x119d50(0x871)](),_0x10ba8d;}['process'](_0x433d6e,_0x3b118e,_0x557dfa){const _0x4d4838=_0x5f167b;let _0x137893,_0x26e6c3;if(Array[_0x4d4838(0x69e)](_0x433d6e)){if(typeof _0x3b118e===_0x4d4838(0x6d8))throw new _0x456343(_0x4d4838(0x273),'BAD_PARAM');_0x26e6c3=_0x3b118e??{};if(_0x26e6c3[_0x4d4838(0x357)]!=null&&typeof _0x26e6c3['admission']!==_0x4d4838(0x6d8))throw new _0x456343(_0x4d4838(0x7fc),_0x4d4838(0x694));if(_0x433d6e[_0x4d4838(0x6cf)]===0x0)throw new _0x456343('process(entries)\x20requires\x20at\x20least\x20one\x20entry','BAD_PARAM');_0x137893=_0x433d6e['map'](_0x50e966=>{const _0x130048=_0x4d4838;if(!_0x50e966||typeof _0x50e966['type']!==_0x130048(0x4bb)||!_0x50e966[_0x130048(0x673)])throw new _0x456343('each\x20process()\x20entry\x20requires\x20a\x20non-empty\x20`type`',_0x130048(0x694));if(typeof _0x50e966[_0x130048(0x5af)]!=='function')throw new _0x456343('process()\x20entry\x20\x22'+_0x50e966[_0x130048(0x673)]+_0x130048(0x245),_0x130048(0x694));return{..._0x50e966};});}else{_0x26e6c3=_0x557dfa??{};if(typeof _0x3b118e!==_0x4d4838(0x6d8))throw new _0x456343('process()\x20entry\x20\x22'+_0x433d6e+_0x4d4838(0x245),_0x4d4838(0x694));_0x137893=[{'type':_0x433d6e,'handler':_0x3b118e,..._0x557dfa??{}}];}const _0x10ee4b=this[_0x4d4838(0x21e)];for(const _0x2c1850 of _0x137893){const _0x2b2e4f=_0x2c1850[_0x4d4838(0x5af)];_0x2c1850[_0x4d4838(0x5af)]=function(..._0x51dbc1){const _0x107a44=_0x4d4838;return _0x10ee4b[_0x107a44(0x3bc)]()['then'](()=>_0x2b2e4f['apply'](this,_0x51dbc1));};}const _0x120050=this['_n'](_0x4d4838(0x595),[_0x137893,_0x26e6c3]),_0x44f030=this,_0x54f8a2={'id':_0x120050['id'],'type':_0x120050['type'],get 'running'(){const _0x524c3a=_0x4d4838;return _0x44f030['_n'](_0x524c3a(0x479),[_0x120050['id']],![])[_0x524c3a(0x48c)];},'isRunning'(){const _0x268249=_0x4d4838;return _0x44f030['_n']('workerState',[_0x120050['id']],![])[_0x268249(0x48c)];},async 'stop'(_0x37c15c=0x7530){const _0x552593=_0x4d4838;_0x44f030['_n'](_0x552593(0x1ed),[_0x120050['id']]);const _0x317265=Date[_0x552593(0x89e)]()+_0x37c15c;while(_0x44f030['_n'](_0x552593(0x479),[_0x120050['id']],![])[_0x552593(0x600)]>0x0&&Date[_0x552593(0x89e)]()<_0x317265)await new Promise(_0x3d5319=>setTimeout(_0x3d5319,0x2));_0x44f030['_n']('stopWorkerAbort',[_0x120050['id']]),_0x3bdc0e[_0x552593(0x6da)](),_0x44f030['_workers'][_0x552593(0x82f)](_0x54f8a2);},async 'kill'(){const _0x16b583=_0x4d4838;_0x44f030['_n'](_0x16b583(0x4f6),[_0x120050['id']]),_0x44f030[_0x16b583(0x561)][_0x16b583(0x82f)](_0x54f8a2);}};return this[_0x4d4838(0x561)][_0x4d4838(0x7df)](_0x54f8a2),_0x54f8a2;}[_0x5f167b(0x217)](_0x100b8c){const _0xf3a2b1=_0x5f167b;throw new _0x456343(_0xf3a2b1(0x507)+_0x100b8c+_0xf3a2b1(0x18f)+_0x100b8c+_0xf3a2b1(0x3d9),_0xf3a2b1(0x431));}['spawn'](_0x3df9b6){const _0x4028f6=_0x5f167b;return this[_0x4028f6(0x217)](_0x3df9b6);}}return queue={'OKDBQueue':_0x165e3b},queue;}function _0x3ebb(_0x593157,_0x213824){_0x593157=_0x593157-0x162;const _0x156166=_0x1561();let _0x3ebb64=_0x156166[_0x593157];return _0x3ebb64;}var timemachine,hasRequiredTimemachine;function requireTimemachine(){const _0x16903f=_0x2ec26e;if(hasRequiredTimemachine)return timemachine;hasRequiredTimemachine=0x1;const {fromArray:_0x201b10}=requireIterable();class _0x28b613{constructor(_0x3da73d){const _0x20f200=_0x3ebb;this[_0x20f200(0x30b)]=_0x3da73d,this[_0x20f200(0x21e)]=_0x3da73d[_0x20f200(0x21e)];const _0x47fd23=(_0x1f4d13,_0x274d46)=>this['_n'](_0x1f4d13,_0x274d46,![]);this[_0x20f200(0x733)]={'getDiffs':(_0x641d38,_0x44a487,_0x125295)=>_0x47fd23(_0x20f200(0x57d),[_0x641d38,_0x44a487,_0x125295||{}]),'hasDiff':(_0x547067,_0x296e1d,_0x1ebbcd)=>_0x47fd23(_0x20f200(0x4cb),[_0x547067,_0x296e1d,_0x1ebbcd]),'getHead':(_0x56ec82,_0x3e3487)=>_0x47fd23('storeGetHead',[_0x56ec82,_0x3e3487])??null,'getHeadCount':_0x564dfb=>_0x47fd23(_0x20f200(0x3c8),[_0x564dfb]),'getTotalHeadCount':()=>_0x47fd23(_0x20f200(0x2f5),[]),'getDiffsInRange':(_0x1cac32,_0x2f1d10,_0x5d873a)=>_0x47fd23(_0x20f200(0x1b2),[_0x1cac32??null,_0x2f1d10,_0x5d873a]),'getConfig':()=>_0x47fd23(_0x20f200(0x518),[])??null,'getCursor':()=>this['_n'](_0x20f200(0x5ac),[],![])??null,get 'db'(){const _0x20ada6=_0x20f200;try{return _0x47fd23(_0x20ada6(0x2f5),[]),{};}catch{return null;}}};}get['_registrations'](){const _0x13de25=_0x3ebb,_0x467db9=(this['env'][_0x13de25(0x3e8)]?.['list']?.()||[])['filter'](_0x1ff572=>String(_0x1ff572[_0x13de25(0x4bd)]||'')[_0x13de25(0x6c8)]('time-machine:'))[_0x13de25(0x6cf)];return{'size':_0x467db9};}['_n'](_0x57d4a9,_0x5b13c6,_0x381e98=!![]){const _0x9c6978=_0x3ebb;return this[_0x9c6978(0x21e)]['_call']('tm',this['env'][_0x9c6978(0x6fe)],_0x57d4a9,_0x5b13c6,_0x381e98);}async[_0x16903f(0x1cf)](_0x3d4f9a){return this['_n']('enable',[_0x3d4f9a??null]);}async[_0x16903f(0x48e)](_0x348888){const _0x22dc23=_0x16903f;return this['_n'](_0x22dc23(0x48e),[_0x348888??null]);}async['enableAll'](){const _0x156ddb=_0x16903f;return this['_n'](_0x156ddb(0x857),[]);}async[_0x16903f(0x705)](){const _0x19a5f1=_0x16903f;return this['_n'](_0x19a5f1(0x705),[]);}async['drop'](_0xdc401c){const _0x7d477e=_0x16903f;return this['_n'](_0x7d477e(0x303),[_0xdc401c??null]);}async[_0x16903f(0x481)](){const _0x292ee6=_0x16903f;return this['_n'](_0x292ee6(0x481),[]);}[_0x16903f(0x86d)](_0x220a63){return this['_n']('isEnabled',[_0x220a63??null],![]);}[_0x16903f(0x338)](){const _0x27130e=_0x16903f;return this['_n'](_0x27130e(0x338),[],![]);}[_0x16903f(0x1c9)](_0x41ac48){const _0x231190=_0x16903f;return this['_n'](_0x231190(0x1c9),[_0x41ac48??null],![]);}[_0x16903f(0x71f)](_0x381c2f){const _0x338fba=_0x16903f;if(!_0x381c2f)return this['_n'](_0x338fba(0x5ac),[],![]);return this['_n'](_0x338fba(0x71f),[_0x381c2f],![]);}[_0x16903f(0x5ac)](){const _0x538605=_0x16903f;return this['_n'](_0x538605(0x5ac),[],![]);}[_0x16903f(0x583)](_0x312183,_0x3364d6,_0xfdead1){const _0xb5b6ac=_0x16903f;return this['_n'](_0xb5b6ac(0x583),[_0x312183,_0x3364d6,_0xfdead1],![]);}[_0x16903f(0x729)](_0x200f85,_0x42ffc9,_0xada6d7){const _0x32334c=_0x16903f;return this['_n'](_0x32334c(0x729),[_0x200f85,_0x42ffc9,_0xada6d7||{}],![]);}[_0x16903f(0x267)](_0x4d7698,_0x481f1f,_0x49600e){const _0x356c8a=_0x16903f;return this['_n'](_0x356c8a(0x267),[_0x4d7698??null,_0x481f1f,_0x49600e],![])[Symbol[_0x356c8a(0x56e)]]();}async['flush'](_0x3085d7){const _0x11a2f2=_0x16903f;return this['_n'](_0x11a2f2(0x42c),[_0x3085d7??null]);}}return timemachine={'OKDBTimeMachine':_0x28b613},timemachine;}var files,hasRequiredFiles;function requireFiles(){const _0x3b3674=_0x2ec26e;if(hasRequiredFiles)return files;hasRequiredFiles=0x1;const _0x1c8f45=require$$0,{Readable:_0x2e41bf}=require$$1,{OKDBError:_0x3871f2,optionsArg:_0x3c08c5,invalidArgument:_0x5073dc}=requireErrors(),{RawDb:_0x7a3118}=requireRawdb();async function _0x39c257(_0x1e445f){const _0x1064c9=_0x3ebb;if(Buffer[_0x1064c9(0x292)](_0x1e445f))return _0x1e445f;if(_0x1e445f instanceof Uint8Array)return Buffer[_0x1064c9(0x170)](_0x1e445f);if(typeof _0x1e445f===_0x1064c9(0x4bb))return Buffer[_0x1064c9(0x170)](_0x1e445f);const _0x2ba8cc=[];for await(const _0x450e84 of _0x1e445f)_0x2ba8cc[_0x1064c9(0x2fb)](Buffer['isBuffer'](_0x450e84)?_0x450e84:Buffer[_0x1064c9(0x170)](_0x450e84));return Buffer[_0x1064c9(0x79b)](_0x2ba8cc);}class _0x51b971{constructor(_0x5208f8){const _0x5b12c0=_0x3ebb;this['env']=_0x5208f8,this[_0x5b12c0(0x21e)]=_0x5208f8[_0x5b12c0(0x21e)];}['_n'](_0x13ebcb,_0x591844,_0x4177b7=!![]){const _0x32ef3f=_0x3ebb;return this['okdb']['_call'](_0x32ef3f(0x6be),this['env'][_0x32ef3f(0x6fe)],_0x13ebcb,_0x591844,_0x4177b7);}['start'](){return!![];}[_0x3b3674(0x893)](){}async[_0x3b3674(0x5f5)](){const _0x195f0d=_0x3b3674;this['_n'](_0x195f0d(0x766),[]);}async[_0x3b3674(0x37a)](_0x514fa3,_0x316557){const _0x5c5170=_0x3b3674;return this['okdb'][_0x5c5170(0x55c)](this['_n'](_0x5c5170(0x5d8),[_0x514fa3,await _0x39c257(_0x316557)]));}get[_0x3b3674(0x258)](){const _0x29a2eb=_0x3b3674;return this[_0x29a2eb(0x38f)]||(this['__blobStatusDb']=new _0x7a3118(this[_0x29a2eb(0x30b)],_0x29a2eb(0x48b)));}async[_0x3b3674(0x5a5)](_0x275ae1){const _0x4fb5e0=_0x3b3674;return this[_0x4fb5e0(0x258)][_0x4fb5e0(0x24d)](_0x275ae1);}async[_0x3b3674(0x484)](_0x600cfd){const _0x38df7c=_0x3b3674,{id:_0x1dd1df,stream:_0xade944,mime:mime=_0x38df7c(0x2b8),path:_0x188dc0='',txn:txn=null}=_0x3c08c5(_0x600cfd);if(!_0x1dd1df)throw _0x5073dc(_0x38df7c(0x206),_0x38df7c(0x16c),_0x1dd1df);if(!_0xade944)throw _0x5073dc('files.upload:\x20stream','a\x20Buffer\x20or\x20readable\x20stream',_0xade944);const _0x5e7fe6=await _0x39c257(_0xade944);if(txn){const _0x4a5bf0=this['_n'](_0x38df7c(0x18e),[_0x1dd1df,_0x5e7fe6,{'mime':mime,'path':_0x188dc0}]);return txn[_0x38df7c(0x27f)](_0x38df7c(0x6d9),_0x1dd1df,_0x4a5bf0[_0x38df7c(0x812)]),txn['onDo'](()=>this['_n']('txnDone',[_0x4a5bf0[_0x38df7c(0x872)]])),txn[_0x38df7c(0x213)](()=>this['_n']('txnUndone',[_0x4a5bf0['hook']])),_0x4a5bf0['record'];}return this[_0x38df7c(0x21e)][_0x38df7c(0x55c)](this['_n'](_0x38df7c(0x484),[_0x1dd1df,_0x5e7fe6,{'mime':mime,'path':_0x188dc0}]));}[_0x3b3674(0x63c)](_0x42be71){return this['_n']('get',[_0x42be71],![])??null;}['streamByHash'](_0x58ba6a){const _0x47472e=_0x3b3674,_0xb23585=this[_0x47472e(0x379)](_0x58ba6a);if(!_0x1c8f45[_0x47472e(0x2fa)](_0xb23585))throw Object[_0x47472e(0x76f)](new Error(_0x47472e(0x305)+_0x58ba6a),{'status':0x194});return this['_blobStream'](_0x58ba6a);}[_0x3b3674(0x3c9)](_0x480403){const _0x216c85=0x100*0x400,_0x48f355=this;let _0x1bf208=0x0;return new _0x2e41bf({'highWaterMark':_0x216c85,'read'(){const _0x417e29=_0x3ebb;let _0x535891;try{const _0x5368e0=_0x48f355['_n'](_0x417e29(0x47c),[_0x480403,_0x1bf208,_0x216c85],![]);_0x535891=Buffer[_0x417e29(0x292)](_0x5368e0)?_0x5368e0:Buffer[_0x417e29(0x170)](_0x5368e0);}catch(_0x230047){this[_0x417e29(0x87d)](_0x230047);return;}_0x1bf208+=_0x535891[_0x417e29(0x6cf)];if(_0x535891[_0x417e29(0x6cf)])this['push'](_0x535891);if(_0x535891[_0x417e29(0x6cf)]<_0x216c85)this[_0x417e29(0x2fb)](null);}});}async[_0x3b3674(0x2c9)](_0x34c52a){const _0x4b9acd=_0x3b3674;return this[_0x4b9acd(0x21e)][_0x4b9acd(0x29c)](this['_n']('read',[_0x34c52a],![]));}async[_0x3b3674(0x302)](_0x224a20){const _0x5c9d61=_0x3b3674,_0x4099a9=this[_0x5c9d61(0x63c)](_0x224a20);if(!_0x4099a9)throw Object[_0x5c9d61(0x76f)](new Error('File\x20not\x20found:\x20'+_0x224a20),{'status':0x194});const _0x1bf72e=this[_0x5c9d61(0x379)](_0x4099a9['hash']);if(!_0x1c8f45[_0x5c9d61(0x2fa)](_0x1bf72e))throw Object[_0x5c9d61(0x76f)](new Error('Blob\x20missing\x20for\x20file:\x20'+_0x224a20),{'status':0x194});return{'stream':this[_0x5c9d61(0x3c9)](_0x4099a9[_0x5c9d61(0x326)]),'record':_0x4099a9};}async['remove'](_0x4dd0cf,_0x24c042){const _0x3951a1=_0x3b3674,{txn:txn=null}=_0x3c08c5(_0x24c042);if(txn){const _0x4740ef=this['_n'](_0x3951a1(0x394),[_0x4dd0cf]);txn['remove']('~files',_0x4dd0cf),txn[_0x3951a1(0x576)](()=>this['_n'](_0x3951a1(0x4ac),[_0x4740ef[_0x3951a1(0x872)]])),txn[_0x3951a1(0x213)](()=>this['_n'](_0x3951a1(0x823),[_0x4740ef['hook']]));return;}return this['okdb'][_0x3951a1(0x55c)](this['_n'](_0x3951a1(0x42f),[_0x4dd0cf]));}async[_0x3b3674(0x7fa)](_0x9a99fa,_0x4b30a8={}){return this['_n']('listPath',[_0x9a99fa,_0x4b30a8],![]);}['getBlobStatus'](_0x5978e7){const _0x40e466=_0x3b3674;return this['_n'](_0x40e466(0x327),[_0x5978e7],![]);}[_0x3b3674(0x55b)](){const _0xa6713a=_0x3b3674;return this['_n'](_0xa6713a(0x55b),[],![]);}[_0x3b3674(0x2b2)](_0x37852c){const _0x1aa33e=_0x3b3674,{minAgeMs:_0x17c51b}=_0x3c08c5(_0x37852c);return this['_n'](_0x1aa33e(0x2b2),[_0x17c51b??null]);}[_0x3b3674(0x63d)](_0x512c49,_0x720021){const _0x2e99d5=_0x3b3674;if(typeof _0x720021!==_0x2e99d5(0x6d8))throw new _0x3871f2(_0x2e99d5(0x3e6),'BAD_PARAM');const _0x229358=this['_n']('registerExtractor',[_0x512c49,_0x720021]);return()=>this['_n']('unregisterExtractor',[_0x229358]);}async[_0x3b3674(0x445)](_0x462d07){const _0x4806a7=_0x3b3674;return _0x462d07=_0x3c08c5(_0x462d07),this['_n'](_0x4806a7(0x445),[_0x462d07]);}async['syncBlobs'](_0x25c38d){const _0xcc3482=_0x3b3674,{peerIds:_0x3db58c}=_0x3c08c5(_0x25c38d);return this['_n'](_0xcc3482(0x405),[_0x3db58c??null]);}['_blobPath'](_0x30df94){const _0x9eb618=_0x3b3674;if(typeof _0x30df94!==_0x9eb618(0x4bb))return require$$4[_0x9eb618(0x3d2)](this[_0x9eb618(0x1ad)],_0x30df94[_0x9eb618(0x5ca)](0x0,0x2),_0x30df94[_0x9eb618(0x5ca)](0x2));return this['_n'](_0x9eb618(0x74b),[_0x30df94],![]);}get[_0x3b3674(0x1ad)](){const _0x493f8b=_0x3b3674;return this['_n'](_0x493f8b(0x36b),[],![]);}}return files={'OKDBFiles':_0x51b971},files;}var engines,hasRequiredEngines;function requireEngines(){const _0x4d5f92=_0x2ec26e;if(hasRequiredEngines)return engines;hasRequiredEngines=0x1;const {OKDBError:_0x27a441}=requireErrors(),_0x1cffeb=requireBridge(),_0xaad2fb=new Set([_0x4d5f92(0x7b6),'indexer',_0x4d5f92(0x395),'embed-worker']),_0xd2535c=new Set([_0x4d5f92(0x3c2),_0x4d5f92(0x7c6),_0x4d5f92(0x4c6)]),_0x5827ad=[_0x4d5f92(0x1b5),_0x4d5f92(0x5b6),_0x4d5f92(0x5f2),_0x4d5f92(0x569),'install',_0x4d5f92(0x893),_0x4d5f92(0x55a)],_0xd17283={'embedder':new Set([_0x4d5f92(0x4c6),_0x4d5f92(0x6c2)])},_0x19b765=new Set([_0x4d5f92(0x6a3),_0x4d5f92(0x3e8),'queue-worker']);class _0x5596f7{constructor(_0x47544f,_0x275033,_0x1a1ae7,_0x104854){const _0x4ec7e0=_0x4d5f92;this[_0x4ec7e0(0x1f4)]=_0x47544f,this[_0x4ec7e0(0x366)]=_0x275033,this['type']=_0x1a1ae7,this[_0x4ec7e0(0x6fe)]=_0x104854,this['engineType']=_0x1a1ae7;}[_0x4d5f92(0x41a)](){const _0x5846a3=_0x4d5f92;return this['_facade']['_n'](_0x5846a3(0x7c6),[this['type'],this['name']],![]);}get[_0x4d5f92(0x799)](){const _0x473d5a=_0x4d5f92;return this[_0x473d5a(0x41a)]()[_0x473d5a(0x799)];}get['_store'](){const _0x4eb4cc=_0x4d5f92,_0x5bc6d4=this[_0x4eb4cc(0x41a)]()[_0x4eb4cc(0x228)];return _0x5bc6d4?this['_facade'][_0x4eb4cc(0x21e)][_0x4eb4cc(0x8a5)][_0x4eb4cc(0x63c)](_0x5bc6d4):undefined;}get[_0x4d5f92(0x2fe)](){const _0x55bebf=_0x4d5f92;return this[_0x55bebf(0x41a)]()['docEntry'];}get['enabled'](){const _0x1a2ec9=_0x4d5f92;return this[_0x1a2ec9(0x41a)]()[_0x1a2ec9(0x580)];}get['isRunning'](){const _0x5c6c79=_0x4d5f92;return this[_0x5c6c79(0x41a)]()[_0x5c6c79(0x82b)];}get[_0x4d5f92(0x1c9)](){const _0x2aaca1=_0x4d5f92;return this[_0x2aaca1(0x41a)]()[_0x2aaca1(0x1c9)];}get[_0x4d5f92(0x5d0)](){const _0x59e75d=_0x4d5f92;return this[_0x59e75d(0x41a)]()['reason'];}get[_0x4d5f92(0x604)](){const _0x5af6ee=_0x4d5f92,_0x194e07=this['_info']()[_0x5af6ee(0x604)];return _0x194e07?Object[_0x5af6ee(0x76f)](new Error(_0x194e07[_0x5af6ee(0x2d2)]),{'code':_0x194e07[_0x5af6ee(0x748)]}):null;}get['runtimeState'](){const _0x424223=_0x4d5f92;return this[_0x424223(0x41a)]()[_0x424223(0x46c)];}get[_0x4d5f92(0x741)](){const _0x583858=_0x4d5f92;return this['_facade'][_0x583858(0x557)]['get'](this['type'])??null;}get[_0x4d5f92(0x370)](){const _0x393f9b=_0x4d5f92;if(!this[_0x393f9b(0x41a)]()[_0x393f9b(0x5cb)])return null;const _0x37bba8=this;return new Proxy({},{'get'(_0x1f6c61,_0x1e6bd6){const _0x12ef8d=_0x393f9b;if(typeof _0x1e6bd6===_0x12ef8d(0x856)||_0x1e6bd6===_0x12ef8d(0x2b0))return undefined;if(_0xd17283[_0x37bba8['type']]&&_0xd17283[_0x37bba8[_0x12ef8d(0x673)]][_0x12ef8d(0x51e)](_0x1e6bd6))return _0x37bba8['_facade']['_n'](_0x12ef8d(0x5a8),[_0x37bba8[_0x12ef8d(0x673)],_0x37bba8[_0x12ef8d(0x6fe)],_0x1e6bd6,[]],![])['value'];if(_0x37bba8['type']==='indexer'&&_0x1e6bd6===_0x12ef8d(0x42c))return async(_0x24bdcc={})=>{const _0x3b3aa2=_0x12ef8d,_0x38ec8f=(_0x44cbd1,..._0x10067f)=>_0x37bba8[_0x3b3aa2(0x1f4)]['_n'](_0x3b3aa2(0x5a8),[_0x37bba8[_0x3b3aa2(0x673)],_0x37bba8['name'],_0x44cbd1,_0x10067f],!![])[_0x3b3aa2(0x820)],_0x10f0d7=_0x38ec8f(_0x3b3aa2(0x54b),_0x24bdcc??{}),_0x5611c9=Date[_0x3b3aa2(0x89e)]();for(;;){const _0x1f7cd1=await _0x37bba8[_0x3b3aa2(0x1f4)][_0x3b3aa2(0x21e)]['_macro'](()=>_0x38ec8f(_0x3b3aa2(0x1bc)));if(_0x1f7cd1[_0x3b3aa2(0x79a)]>=_0x1f7cd1[_0x3b3aa2(0x1b4)])return;Date[_0x3b3aa2(0x89e)]()-_0x5611c9>=_0x10f0d7&&_0x38ec8f('flushTimeoutError',_0x24bdcc??{},_0x1f7cd1),await new Promise(_0x58d1ff=>setTimeout(_0x58d1ff,0x3));}};return(..._0x1c9e1e)=>{const _0x88779b=_0x12ef8d,_0x44f906=()=>_0x37bba8[_0x88779b(0x1f4)]['_n'](_0x88779b(0x5a8),[_0x37bba8[_0x88779b(0x673)],_0x37bba8[_0x88779b(0x6fe)],_0x1e6bd6,_0x1c9e1e],!![]),_0x101737=_0x5b89b2=>{const _0x55ea13=_0x88779b;if(_0x5b89b2&&_0x5b89b2[_0x55ea13(0x252)])throw new TypeError(_0x55ea13(0x471)+_0x1e6bd6+'\x27');return _0x5b89b2[_0x55ea13(0x820)];};if(_0xaad2fb['has'](_0x37bba8['type'])&&!_0xd2535c[_0x88779b(0x51e)](_0x1e6bd6)){const _0x237351=_0x37bba8[_0x88779b(0x1f4)][_0x88779b(0x21e)];return _0x237351[_0x88779b(0x56c)](()=>_0x237351[_0x88779b(0x199)](_0x44f906))[_0x88779b(0x2b0)](_0x101737);}if(_0x19b765[_0x88779b(0x51e)](_0x37bba8[_0x88779b(0x673)]))try{return Promise['resolve'](_0x101737(_0x44f906()));}catch(_0x40e25b){return Promise[_0x88779b(0x6f0)](_0x40e25b);}return _0x101737(_0x44f906());};}});}async[_0x4d5f92(0x724)](_0x37fb0d={}){const _0x35477f=_0x4d5f92;return await this[_0x35477f(0x1f4)][_0x35477f(0x321)](_0x35477f(0x724),[this[_0x35477f(0x673)],this['name'],_0x37fb0d]),this;}async['start'](){const _0x358648=_0x4d5f92;await this[_0x358648(0x1f4)][_0x358648(0x321)](_0x358648(0x220),[this[_0x358648(0x673)],this[_0x358648(0x6fe)]]);}async['stop'](_0x5cb870={}){const _0x5611a1=_0x4d5f92;await this[_0x5611a1(0x1f4)][_0x5611a1(0x321)](_0x5611a1(0x4b5),[this['type'],this[_0x5611a1(0x6fe)],_0x5cb870]);}async[_0x4d5f92(0x20a)](_0x327234={}){const _0x2e046=_0x4d5f92;return await this[_0x2e046(0x1f4)][_0x2e046(0x321)](_0x2e046(0x20a),[this[_0x2e046(0x673)],this[_0x2e046(0x6fe)],_0x327234]),this;}async[_0x4d5f92(0x55a)](){const _0x1ff08d=_0x4d5f92;await this[_0x1ff08d(0x1f4)]['_nm']('engineUninstall',[this[_0x1ff08d(0x673)],this[_0x1ff08d(0x6fe)]]);}}class _0x59fb36{constructor(_0x3e3984,_0x536ae4=null,_0x699440=null){const _0x4d666b=_0x4d5f92;this[_0x4d666b(0x21e)]=_0x3e3984,this[_0x4d666b(0x17f)]=_0x536ae4,this[_0x4d666b(0x80d)]=_0x536ae4===null,this[_0x4d666b(0x231)]=_0x699440||this,this[_0x4d666b(0x557)]=this['_root']===this?_0xb417bf(this):this[_0x4d666b(0x231)][_0x4d666b(0x557)],this['_handles']=new Map();}['_n'](_0xf2ca72,_0x5943d5,_0xec877a=!![]){const _0x3f1665=_0x4d5f92;return this[_0x3f1665(0x21e)][_0x3f1665(0x49e)]('engines',this[_0x3f1665(0x17f)],_0xf2ca72,_0x5943d5,_0xec877a);}[_0x4d5f92(0x321)](_0x4a52ff,_0x418bef){const _0x5c1a37=_0x4d5f92;return this['okdb'][_0x5c1a37(0x406)](_0x5c1a37(0x1a5),this[_0x5c1a37(0x17f)],_0x4a52ff,_0x418bef,!![]);}get[_0x4d5f92(0x30b)](){const _0x2fd855=_0x4d5f92;return this[_0x2fd855(0x17f)]?this[_0x2fd855(0x21e)][_0x2fd855(0x30b)](this['envName']):null;}[_0x4d5f92(0x4f3)](_0x474119){const _0x46fb2f=_0x4d5f92;if(!_0x474119)return null;let _0x31954f=this['_handles'][_0x46fb2f(0x63c)](_0x474119[_0x46fb2f(0x366)]);return!_0x31954f&&(_0x31954f=new _0x5596f7(this,_0x474119[_0x46fb2f(0x366)],_0x474119['type'],_0x474119[_0x46fb2f(0x6fe)]),this[_0x46fb2f(0x88f)]['set'](_0x474119[_0x46fb2f(0x366)],_0x31954f)),_0x31954f;}[_0x4d5f92(0x4de)](_0x2bd0fd,_0x4175cf){const _0x4bdbb4=_0x4d5f92;if(!_0x2bd0fd||typeof _0x2bd0fd!==_0x4bdbb4(0x4bb))throw new _0x27a441(_0x4bdbb4(0x86b),_0x4bdbb4(0x882),{'type':_0x2bd0fd});if(!_0x4175cf||typeof _0x4175cf!==_0x4bdbb4(0x1be))throw new _0x27a441(_0x4bdbb4(0x5e1)+_0x2bd0fd+_0x4bdbb4(0x5ff),'ENGINE_INVALID_DRIVER',{'type':_0x2bd0fd});if(typeof _0x4175cf['start']!=='function')throw new _0x27a441(_0x4bdbb4(0x5e1)+_0x2bd0fd+_0x4bdbb4(0x27b),_0x4bdbb4(0x1ca),{'type':_0x2bd0fd});const _0x24c1df=this[_0x4bdbb4(0x231)];if(_0x24c1df[_0x4bdbb4(0x557)][_0x4bdbb4(0x51e)](_0x2bd0fd))throw new _0x27a441(_0x4bdbb4(0x283)+_0x2bd0fd+'\x22','ENGINE_DRIVER_ALREADY_REGISTERED',{'type':_0x2bd0fd});const _0x286782=_0x1cffeb[_0x4bdbb4(0x830)](_0x4175cf,this[_0x4bdbb4(0x21e)]),_0x462e37=_0x5827ad[_0x4bdbb4(0x852)](_0x411236=>typeof _0x4175cf[_0x411236]===_0x4bdbb4(0x6d8)),_0x16c67e=_0x4175cf[_0x4bdbb4(0x2df)]&&typeof _0x4175cf[_0x4bdbb4(0x2df)]==='object'?_0x4175cf[_0x4bdbb4(0x2df)]:{};this[_0x4bdbb4(0x21e)]['_call']('engines',null,'registerDriver',[_0x2bd0fd,{'$id':_0x286782,'has':_0x462e37,'docs':_0x16c67e}]),_0x24c1df[_0x4bdbb4(0x557)][_0x4bdbb4(0x835)](_0x2bd0fd,_0x4175cf);}get[_0x4d5f92(0x3cb)](){const _0x40ac8d=_0x4d5f92;return this['okdb']['_call'](_0x40ac8d(0x1a5),null,_0x40ac8d(0x6c6),[],![]);}get[_0x4d5f92(0x5bd)](){const _0x574430=this;return{get '_started'(){const _0x5c7859=_0x3ebb;return _0x574430[_0x5c7859(0x3cb)];}};}[_0x4d5f92(0x351)](_0x5dc802){const _0x558493=_0x4d5f92;if(!_0x5dc802||typeof _0x5dc802!==_0x558493(0x1be))throw new _0x27a441(_0x558493(0x4e6),'ENGINE_INVALID_TEMPLATE');if(!_0x5dc802['id']||typeof _0x5dc802['id']!==_0x558493(0x4bb))throw new _0x27a441(_0x558493(0x88d),_0x558493(0x3ea));if(!['engine','pipeline'][_0x558493(0x1ac)](_0x5dc802['kind']))throw new _0x27a441(_0x558493(0x474)+_0x5dc802['id'],_0x558493(0x3ea));if(typeof _0x5dc802['build']!==_0x558493(0x6d8))throw new _0x27a441(_0x558493(0x844)+_0x5dc802['id'],_0x558493(0x3ea));const _0x3932ee=this[_0x558493(0x21e)],_0x3c979c=typeof _0x5dc802[_0x558493(0x22b)]==='function';return this['_n'](_0x558493(0x351),[{'id':_0x5dc802['id'],'kind':_0x5dc802['kind'],'family':_0x5dc802[_0x558493(0x743)]??null,'engineType':_0x5dc802['engineType']??null,'pipelineFamily':_0x5dc802[_0x558493(0x65f)]??null,'recommended':_0x5dc802['recommended']===!![],'summary':_0x5dc802[_0x558493(0x6a1)]??null,'description':_0x5dc802[_0x558493(0x34c)]??null,'inputSchema':_0x3c979c?null:_0x5dc802['inputSchema']??null,'inputSchemaFn':_0x3c979c?()=>_0x5dc802[_0x558493(0x22b)](_0x3932ee):null,'defaults':_0x5dc802[_0x558493(0x6fd)]??null,'notes':Array[_0x558493(0x69e)](_0x5dc802['notes'])?_0x5dc802[_0x558493(0x1c7)]:[],'links':Array[_0x558493(0x69e)](_0x5dc802[_0x558493(0x300)])?_0x5dc802['links']:[],'build':(_0x49d027,_0x3d43ef)=>_0x5dc802[_0x558493(0x1dd)](_0x49d027??{},{'okdb':_0x3932ee,'envName':_0x3d43ef??null})}],![]);}[_0x4d5f92(0x735)](_0x3b36e5){const _0x161697=_0x4d5f92;return this['_n'](_0x161697(0x735),[_0x3b36e5??null],![]);}[_0x4d5f92(0x78e)](_0x1f5720){const _0x5ea854=_0x4d5f92;return this['_n'](_0x5ea854(0x78e),[_0x1f5720],![]);}['previewTemplate'](_0x298fa0,_0x1cf7a0,_0x18cb8a){const _0x34580a=_0x4d5f92;return this['_n'](_0x34580a(0x2bc),[_0x298fa0,_0x1cf7a0,_0x18cb8a??this[_0x34580a(0x17f)]],![]);}[_0x4d5f92(0x2f4)](){const _0x5498d0=_0x4d5f92;return this['_n'](_0x5498d0(0x2f4),[],![]);}async[_0x4d5f92(0x898)](){const _0x2fbda9=_0x4d5f92;return this[_0x2fbda9(0x321)](_0x2fbda9(0x898),[]);}async['stop'](){const _0x4fc240=_0x4d5f92;return this[_0x4fc240(0x321)](_0x4fc240(0x893),[]);}async[_0x4d5f92(0x704)](_0x44937c,_0x32e655,_0x2c817b={},_0x225114={},_0x437349={}){const _0x29abd3=_0x4d5f92;return this['_wrap'](await this[_0x29abd3(0x321)]('createEngine',[_0x44937c,_0x32e655,_0x2c817b,_0x225114,_0x437349]));}async[_0x4d5f92(0x751)](_0xac0798,_0x16c278,_0x803551={},_0x56fde5={},_0x5d0de7={}){const _0x1280a2=_0x4d5f92;return this[_0x1280a2(0x4f3)](await this['_nm'](_0x1280a2(0x751),[_0xac0798,_0x16c278,_0x803551,_0x56fde5,_0x5d0de7]));}['getEngine'](_0x105f25,_0x2c41d2){const _0xe2f720=_0x4d5f92;return this[_0xe2f720(0x4f3)](this['_n']('getEngine',[_0x105f25,_0x2c41d2],![]));}[_0x4d5f92(0x23b)](_0x54b224,_0x5d833e){return this['_wrap'](this['_n']('getRunningEngine',[_0x54b224,_0x5d833e],![]));}[_0x4d5f92(0x338)](_0x1a8308){const _0x5b5c1d=_0x4d5f92;return this['_n'](_0x5b5c1d(0x338),[_0x1a8308??null],![])['map'](_0x1b793b=>this[_0x5b5c1d(0x4f3)](_0x1b793b));}async['restart'](_0x5c73a6,_0x1ac59e){const _0x807a9e=_0x4d5f92;return this[_0x807a9e(0x4f3)](await this[_0x807a9e(0x321)](_0x807a9e(0x2f1),[_0x5c73a6,_0x1ac59e]));}async[_0x4d5f92(0x552)](_0x33a99c,_0x4b03a4){const _0x576088=_0x4d5f92;return this['_handles'][_0x576088(0x82f)](_0x33a99c+':'+_0x4b03a4),this[_0x576088(0x321)](_0x576088(0x552),[_0x33a99c,_0x4b03a4]);}async[_0x4d5f92(0x7b1)](_0x2d7204){const _0x4d0d8e=_0x4d5f92;return this[_0x4d0d8e(0x321)](_0x4d0d8e(0x7b1),[_0x2d7204]);}async[_0x4d5f92(0x523)](){const _0x42c49b=_0x4d5f92;return this[_0x42c49b(0x321)](_0x42c49b(0x523),[]);}}function _0xb417bf(_0x2d852e){const _0x141411=_0x4d5f92,_0x1a9c35=new Map();return{'has':_0x4ff523=>_0x1a9c35[_0x141411(0x51e)](_0x4ff523)||_0x2d852e['okdb']['_call'](_0x141411(0x1a5),null,_0x141411(0x80a),[_0x4ff523],![]),'get':_0x470567=>_0x1a9c35[_0x141411(0x63c)](_0x470567),'set':()=>{const _0x3e3e70=_0x141411;throw new _0x27a441(_0x3e3e70(0x664),_0x3e3e70(0x694));},'_set':(_0x2c116e,_0x5aaadd)=>_0x1a9c35['set'](_0x2c116e,_0x5aaadd),'keys':()=>_0x1a9c35[_0x141411(0x1d5)](),'entries':()=>_0x1a9c35[_0x141411(0x72a)](),'values':()=>_0x1a9c35['values'](),get 'size'(){return _0x1a9c35['size'];},[Symbol['iterator']]:()=>_0x1a9c35[Symbol[_0x141411(0x56e)]]()};}class _0x4061a0{constructor(_0x4857f2,_0x4aadf1=null){const _0x3aebb7=_0x4d5f92;this[_0x3aebb7(0x21e)]=_0x4857f2,this[_0x3aebb7(0x17f)]=_0x4aadf1;}['_n'](_0x114c33,_0x25f711,_0x1ab37d=!![]){const _0x28dc2c=_0x4d5f92;return this[_0x28dc2c(0x21e)][_0x28dc2c(0x49e)](_0x28dc2c(0x805),this[_0x28dc2c(0x17f)],_0x114c33,_0x25f711,_0x1ab37d);}[_0x4d5f92(0x321)](_0x5251d9,_0xca8203){const _0x1cece9=_0x4d5f92;return this[_0x1cece9(0x21e)][_0x1cece9(0x406)](_0x1cece9(0x805),this[_0x1cece9(0x17f)],_0x5251d9,_0xca8203,!![]);}get[_0x4d5f92(0x60c)](){const _0x217ea8=_0x4d5f92;return this[_0x217ea8(0x17f)]===null;}async[_0x4d5f92(0x766)](_0x12839f){return this['_n']('ensure',[_0x12839f]);}async[_0x4d5f92(0x63c)](_0x732dae,_0x2a6419){const _0x381a0c=_0x4d5f92;return this['_n'](_0x381a0c(0x63c),[_0x732dae,_0x2a6419??null],![]);}async['getRecord'](_0x300350,_0x8cbea9){const _0x53c5b8=_0x4d5f92;return this['_n'](_0x53c5b8(0x5bb),[_0x300350,_0x8cbea9??null],![]);}async[_0x4d5f92(0x338)](_0x58f1a8){const _0x46dc15=_0x4d5f92;return this['_n'](_0x46dc15(0x338),[_0x58f1a8??null],![]);}async['listRecords'](_0x321d1a={}){const _0x1756ed=_0x4d5f92;return this['_n'](_0x1756ed(0x6b2),[_0x321d1a?.[_0x1756ed(0x17f)]??null],![]);}[_0x4d5f92(0x1b5)](_0x1b880e,_0x4b7cff){const _0x5c7746=_0x4d5f92;return this['_n'](_0x5c7746(0x1b5),[_0x1b880e,_0x4b7cff??null],![]);}async['create'](_0x4991d7){const _0x1ec0df=_0x4d5f92;return this['_nm'](_0x1ec0df(0x740),[_0x4991d7]);}async[_0x4d5f92(0x88e)](_0x4d0679,_0x347892){const _0x1afd28=_0x4d5f92;return this[_0x1afd28(0x321)](_0x1afd28(0x88e),[_0x4d0679,_0x347892]);}async['stop'](_0x53e2f3){const _0x17b4af=_0x4d5f92;return this[_0x17b4af(0x321)](_0x17b4af(0x893),[_0x53e2f3]);}async[_0x4d5f92(0x77b)](_0x5d01d5){const _0x492228=_0x4d5f92;if(!_0x5d01d5||typeof _0x5d01d5!=='object'||!_0x5d01d5[_0x492228(0x6fe)]||!_0x5d01d5[_0x492228(0x1a5)])return _0x5d01d5;for(let _0xdd8d9a=0x0;_0xdd8d9a<0x3;_0xdd8d9a++)await new Promise(_0x7653a8=>setImmediate(_0x7653a8));try{const _0xc39927=this[_0x492228(0x17f)]!==null?await this[_0x492228(0x63c)](_0x5d01d5[_0x492228(0x6fe)]):_0x5d01d5[_0x492228(0x30b)]?await this['get'](_0x5d01d5[_0x492228(0x30b)],_0x5d01d5[_0x492228(0x6fe)]):null;return _0xc39927||_0x5d01d5;}catch{return _0x5d01d5;}}async['start'](_0x398379){const _0x4cf549=_0x4d5f92;return this[_0x4cf549(0x77b)](await this[_0x4cf549(0x321)](_0x4cf549(0x898),[_0x398379]));}async['restart'](_0x5b5be6){const _0x2bfc15=_0x4d5f92;return this[_0x2bfc15(0x77b)](await this[_0x2bfc15(0x321)](_0x2bfc15(0x2f1),[_0x5b5be6]));}async[_0x4d5f92(0x574)](_0x170aa1){const _0x29d75b=_0x4d5f92;return this[_0x29d75b(0x321)](_0x29d75b(0x574),[_0x170aa1]);}async[_0x4d5f92(0x81f)](_0x2b766f,_0x2034be,_0xcbbf80){const _0x5c27ab=_0x4d5f92;return this[_0x5c27ab(0x321)](_0x5c27ab(0x81f),[_0x2b766f,_0x2034be,_0xcbbf80]);}async[_0x4d5f92(0x42f)](_0x489a8e){const _0x5bed69=_0x4d5f92;return this[_0x5bed69(0x321)](_0x5bed69(0x42f),[_0x489a8e]);}async['stopAll'](){const _0x4b9488=_0x4d5f92;return this[_0x4b9488(0x321)](_0x4b9488(0x3fe),[]);}async['bootSyncedPipelines'](){const _0x1bdc13=_0x4d5f92;return this[_0x1bdc13(0x321)](_0x1bdc13(0x649),[]);}['findOwner'](_0x2281ae,_0x10dc42){return this['_n']('findOwner',[_0x2281ae,_0x10dc42],![]);}}return engines={'OKDBEngines':_0x59fb36,'OKDBPipelines':_0x4061a0,'OKDBEngineHandle':_0x5596f7},engines;}var functions,hasRequiredFunctions;function requireFunctions(){const _0x4c64e0=_0x2ec26e;if(hasRequiredFunctions)return functions;hasRequiredFunctions=0x1;const {optionsArg:_0x1bc75e}=requireErrors(),_0x407b16=Number(process.env.OKDB_FN_POLL_MS)||0x14;class _0x3d1486{constructor(_0x5b0214,_0x10f2b5=null){const _0x33b952=_0x3ebb;this[_0x33b952(0x21e)]=_0x5b0214,this[_0x33b952(0x17f)]=_0x10f2b5??_0x33b952(0x8a3);}get[_0x4c64e0(0x30b)](){const _0x492d8f=_0x4c64e0;return this[_0x492d8f(0x21e)]['_envs']['get'](this['envName'])??null;}['_n'](_0x364e61,_0x67c719=[],_0x19fe6c=!![]){const _0xf67377=_0x4c64e0;try{return this[_0xf67377(0x21e)][_0xf67377(0x49e)](_0xf67377(0x762),this[_0xf67377(0x17f)],_0x364e61,_0x67c719,_0x19fe6c);}catch(_0x3bd9e5){throw _0x4a0b48(_0x3bd9e5);}}async[_0x4c64e0(0x321)](_0x4b019c,_0x3cbe3a=[]){const _0x365789=_0x4c64e0;try{return await this[_0x365789(0x21e)][_0x365789(0x406)](_0x365789(0x762),this[_0x365789(0x17f)],_0x4b019c,_0x3cbe3a,!![]);}catch(_0xc37d48){throw _0x4a0b48(_0xc37d48);}}async[_0x4c64e0(0x338)](){const _0xe0d239=_0x4c64e0;return this['_n'](_0xe0d239(0x338),[],![]);}async[_0x4c64e0(0x63c)](_0x53f53b){const _0x219712=_0x4c64e0;return this['_n'](_0x219712(0x63c),[_0x53f53b],![]);}async[_0x4c64e0(0x740)](_0x50bd67){return this['_n']('create',[_0x50bd67]);}async['update'](_0x59715e,_0x276fed={}){const _0x189618=_0x4c64e0;return this['_n'](_0x189618(0x88e),[_0x59715e,_0x276fed]);}async[_0x4c64e0(0x42f)](_0x254a4b){const _0x77edee=_0x4c64e0;return this['_n'](_0x77edee(0x42f),[_0x254a4b]);}async[_0x4c64e0(0x49d)](_0x5359dd){const _0x404231=_0x4c64e0,{functionName:functionName=null}=_0x1bc75e(_0x5359dd);return this['_n'](_0x404231(0x49d),[{'functionName':functionName}],![]);}async[_0x4c64e0(0x27e)](_0x48edc2){const _0x1bb277=_0x4c64e0;return this['_n'](_0x1bb277(0x27e),[_0x48edc2],![]);}async[_0x4c64e0(0x708)](_0x33128c){const _0x460844=_0x4c64e0;return _0x33128c=_0x1bc75e(_0x33128c,_0x460844(0x22e)),this['_n'](_0x460844(0x708),[_0x33128c]);}async['run'](_0x2d68ad,_0x37198f=null,_0xcd1b05={}){const _0x203858=_0x4c64e0,_0x4f3948={..._0xcd1b05},_0x57f004=_0x4f3948[_0x203858(0x2b7)];if(_0x57f004)_0x4f3948[_0x203858(0x43a)]=!!_0x57f004['aborted'];delete _0x4f3948[_0x203858(0x2b7)];const _0x389698=await this['_nm'](_0x203858(0x1d1),[_0x2d68ad,_0x37198f,_0x4f3948]),_0x6392=this[_0x203858(0x21e)],_0xbbe868=()=>_0x6392[_0x203858(0x5bc)][_0x203858(0x536)]();if(_0x57f004&&typeof _0x57f004[_0x203858(0x4fb)]===_0x203858(0x6d8))_0x57f004['addEventListener'](_0x203858(0x33a),_0xbbe868,{'once':!![]});let _0x3a53a9=![];try{for(;;){const _0x2db099=_0x6392[_0x203858(0x5bc)][_0x203858(0x52a)](_0x407b16);let _0x44fca9;try{_0x44fca9=await _0x6392['_callMacro'](_0x203858(0x762),this['envName'],'runPoll',[_0x389698,!!_0x57f004?.['aborted']],![],![]);}catch(_0x241b1b){_0x3a53a9=!![];throw _0x4a0b48(_0x241b1b);}if(!_0x44fca9||_0x44fca9[_0x203858(0x448)]!==!![])return _0x3a53a9=!![],_0x6392[_0x203858(0x5bc)]['wake'](),_0x44fca9;if(_0x44fca9['progressed'])_0x6392[_0x203858(0x5bc)][_0x203858(0x536)]();await _0x2db099;}}finally{if(_0x57f004&&typeof _0x57f004[_0x203858(0x393)]===_0x203858(0x6d8))_0x57f004[_0x203858(0x393)](_0x203858(0x33a),_0xbbe868);if(!_0x3a53a9)try{_0x6392['_call']('functions',this[_0x203858(0x17f)],_0x203858(0x476),[_0x389698],![]);}catch{}}}async[_0x4c64e0(0x84c)](_0x5af630={},_0x3d1ea8=null,_0x4fcbf2={}){return this['_nm']('preview',[_0x5af630,_0x3d1ea8,_0x4fcbf2]);}async[_0x4c64e0(0x893)](){}}function _0x4a0b48(_0x465612){const _0x6cf006=_0x4c64e0;if(_0x465612&&_0x465612[_0x6cf006(0x79f)]&&_0x465612[_0x6cf006(0x79f)]['runRecord'])_0x465612['_runRecord']=_0x465612['details'][_0x6cf006(0x5d5)];return _0x465612;}return functions={'OKDBFunctions':_0x3d1486},functions;}var processor={'exports':{}},lock,hasRequiredLock;function requireLock(){const _0x123973=_0x2ec26e;if(hasRequiredLock)return lock;hasRequiredLock=0x1;const {optionsArg:_0x5f5a74}=requireErrors();class _0x5ec622{constructor(_0x510a8f,_0x127a72){const _0x23f6b5=_0x3ebb;this[_0x23f6b5(0x337)]=_0x510a8f,this[_0x23f6b5(0x444)]=_0x127a72;}['_n'](_0x242d03,_0x437e46=[]){const _0x1dca48=_0x3ebb;return this['_lock']['_n'](_0x242d03,[this[_0x1dca48(0x444)],..._0x437e46]);}[_0x123973(0x5f7)](){const _0x2ac884=_0x123973;return this['_n'](_0x2ac884(0x5f7));}get[_0x123973(0x72e)](){return this['_n']('acquiredAt');}[_0x123973(0x72d)](){const _0x5e27a2=_0x123973;return this['_n'](_0x5e27a2(0x72d));}[_0x123973(0x3c4)](_0x297817){return this['_n']('extend',[_0x297817]);}async[_0x123973(0x70c)](){const _0x1e613b=_0x123973;return this['_n'](_0x1e613b(0x70c));}}class _0x54afa{constructor(_0x39bf9d,_0x6888ed,_0x2c63ca,_0x3410d8){const _0x1cddb3=_0x123973,{ttlMs:ttlMs=0x7530,heartbeatMs:heartbeatMs=null}=_0x5f5a74(_0x3410d8);this[_0x1cddb3(0x21e)]=_0x39bf9d,this[_0x1cddb3(0x26b)]=_0x2c63ca,this[_0x1cddb3(0x444)]=_0x39bf9d[_0x1cddb3(0x49e)]('lock',_0x6888ed,_0x1cddb3(0x626),[_0x2c63ca,ttlMs,heartbeatMs],![]),this[_0x1cddb3(0x51f)]=_0x6888ed;}['_n'](_0x5c0e24,_0x31b5b7=[]){const _0x2142d9=_0x123973;return this[_0x2142d9(0x21e)][_0x2142d9(0x49e)](_0x2142d9(0x777),this[_0x2142d9(0x51f)],_0x5c0e24,_0x31b5b7,![]);}['_key'](_0x2ffbaa){const _0x5d0c42=_0x123973;return this['_n'](_0x5d0c42(0x366),[this[_0x5d0c42(0x444)],_0x2ffbaa]);}async[_0x123973(0x423)](_0x4738ed,_0x28c1a5={},_0x322277={}){const _0x2b39d5=_0x123973,_0x575331=this['_n']('tryAcquire',[this[_0x2b39d5(0x444)],_0x4738ed,_0x28c1a5,_0x322277]);return{'acquired':_0x575331[_0x2b39d5(0x232)],'handle':_0x575331[_0x2b39d5(0x4aa)]==null?null:new _0x5ec622(this,_0x575331[_0x2b39d5(0x4aa)]),'current':_0x575331['current']};}[_0x123973(0x89a)](_0x5594ba){return this['_n']('inspect',[this['_id'],_0x5594ba]);}['list'](){const _0x2697cc=_0x123973;return this['_n'](_0x2697cc(0x338),[this['_id']]);}['signalWant'](_0x4201bc){const _0x583735=_0x123973;return this['_n'](_0x583735(0x516),[this['_id'],_0x4201bc]);}[_0x123973(0x30c)](_0x486833,_0x43d9b8=0x3e8){const _0x28ddae=_0x123973;return this['_n'](_0x28ddae(0x30c),[this[_0x28ddae(0x444)],_0x486833,_0x43d9b8]);}}return lock={'NativeLock':_0x54afa,'NativeLockHandle':_0x5ec622},lock;}var hasRequiredProcessor;function requireProcessor(){const _0xd261d3=_0x2ec26e;if(hasRequiredProcessor)return processor[_0xd261d3(0x3be)];hasRequiredProcessor=0x1;const _0xbcaac8=requireBridge(),{RawDb:_0x1b5976}=requireRawdb(),{NativeLock:_0x167fdc}=requireLock();function _0x4407f4(_0x18ada2){}class _0x5acc46{constructor(_0x2fbcf8){const _0x4c7c65=_0xd261d3;this[_0x4c7c65(0x30b)]=_0x2fbcf8,this[_0x4c7c65(0x21e)]=_0x2fbcf8;try{this['_n'](_0x4c7c65(0x2ac),[(_0xbe270d,_0x2aae43)=>{const _0x1b5a21=_0x4c7c65,_0x226149=this[_0x1b5a21(0x21e)][_0x1b5a21(0x793)],_0x44dffb=_0x226149?.[_0xbe270d]??_0x226149?.[_0x1b5a21(0x7c6)];if(typeof _0x44dffb===_0x1b5a21(0x6d8))_0x44dffb['call'](_0x226149,_0x2aae43);}],![]);}catch{}}['_n'](_0x5ab969,_0x2be8f8,_0x337411=!![]){const _0x23acd6=_0xd261d3;return this[_0x23acd6(0x30b)][_0x23acd6(0x21e)][_0x23acd6(0x49e)]('proc',this[_0x23acd6(0x30b)][_0x23acd6(0x6fe)],_0x5ab969,_0x2be8f8,_0x337411);}['register'](_0x3ccdc0,_0x3f0393={}){const _0x2c0f51=_0xd261d3,_0x3034c8={..._0x3f0393};if(typeof _0x3034c8[_0x2c0f51(0x5af)]===_0x2c0f51(0x6d8)&&_0x3034c8[_0x2c0f51(0x277)]!=null)throw new Error(_0x2c0f51(0x7cf)+_0x2c0f51(0x37e));if(typeof _0x3034c8[_0x2c0f51(0x5af)]===_0x2c0f51(0x4bb)&&_0x3034c8['module']!=null)throw new Error(_0x2c0f51(0x1b7));if(_0x3034c8[_0x2c0f51(0x277)]!=null){if(!_0x3034c8[_0x2c0f51(0x277)][_0x2c0f51(0x39d)])throw new Error(_0x2c0f51(0x881));const _0x55a2d0=_0x3034c8['module']['export']??_0x3034c8['module']['exportName']??_0x2c0f51(0x595),_0x32febe=require[_0x2c0f51(0x7a9)](_0x3034c8[_0x2c0f51(0x277)][_0x2c0f51(0x39d)]),_0x2ede7d=require(_0x32febe),_0x4dd47e=_0x2ede7d[_0x55a2d0]??_0x2ede7d[_0x2c0f51(0x822)]??_0x2ede7d;if(typeof _0x4dd47e!==_0x2c0f51(0x6d8))throw new Error('processor:\x20module\x20\x27'+_0x3034c8[_0x2c0f51(0x277)]['path']+_0x2c0f51(0x4ec)+_0x55a2d0+_0x2c0f51(0x22d));this[_0x2c0f51(0x30b)]['okdb'][_0x2c0f51(0x646)](_0x2c0f51(0x7c0),_0x2c0f51(0x382),[_0x32febe,_0x55a2d0,_0x4dd47e]),_0x3034c8[_0x2c0f51(0x277)]={'path':_0x32febe,'export':_0x55a2d0};}if(_0x3034c8['quantum']!=null){if(typeof _0x3034c8[_0x2c0f51(0x74a)][_0x2c0f51(0x277)]!==_0x2c0f51(0x4bb))throw new Error(_0x2c0f51(0x824));const _0x20aa4b=require[_0x2c0f51(0x7a9)](_0x3034c8[_0x2c0f51(0x74a)][_0x2c0f51(0x277)]),_0x5aa78c=require(_0x20aa4b),_0x36f47e=_0x3034c8[_0x2c0f51(0x74a)][_0x2c0f51(0x838)],_0x45b60f=_0x36f47e?_0x5aa78c[_0x36f47e]:_0x5aa78c['default']??_0x5aa78c;if(typeof _0x45b60f===_0x2c0f51(0x6d8)){const _0x5d4d0d=_0x36f47e?_0x3034c8[_0x2c0f51(0x74a)][_0x2c0f51(0x277)]+'#'+_0x36f47e:_0x3034c8[_0x2c0f51(0x74a)]['module'];this[_0x2c0f51(0x30b)][_0x2c0f51(0x21e)][_0x2c0f51(0x646)]('proc',_0x2c0f51(0x3d7),[_0x5d4d0d,_0x45b60f]);}_0x3034c8[_0x2c0f51(0x74a)]={..._0x3034c8[_0x2c0f51(0x74a)]};}_0x3034c8[_0x2c0f51(0x3f6)]!=null&&typeof _0x3034c8[_0x2c0f51(0x3f6)]===_0x2c0f51(0x1be)&&(_0x3034c8[_0x2c0f51(0x3f6)]={'$payload':_0xbcaac8['storePayload'](_0x3034c8['payload'],this['env'][_0x2c0f51(0x21e)])});if(_0x3034c8[_0x2c0f51(0x574)]!=null&&typeof _0x3034c8['rebuild']!==_0x2c0f51(0x6d8))throw new Error('processor:\x20rebuild\x20must\x20be\x20a\x20function');const _0x4e25da=this['_n']('register',[_0x3ccdc0??null,_0x3034c8]);return this[_0x2c0f51(0x1c1)](_0x4e25da['id'],_0x4e25da['cursorKey']);}[_0xd261d3(0x1c1)](_0x2a93d2,_0x55aa0a){const _0x3f5569=_0xd261d3,_0x5489fe=this,_0x1f2681=async()=>{const _0x1d6388=_0x3ebb;_0x5489fe['_n'](_0x1d6388(0x610),[_0x2a93d2]);};return _0x1f2681['id']=_0x2a93d2,_0x1f2681[_0x3f5569(0x4bd)]=_0x55aa0a,_0x1f2681['durableClock']=()=>_0x55aa0a?_0x5489fe['_n'](_0x3f5569(0x3df),[_0x2a93d2],![]):0x0,_0x1f2681[_0x3f5569(0x1c9)]=()=>_0x5489fe[_0x3f5569(0x63c)](_0x2a93d2),_0x1f2681['getStatus']=_0x1f2681['status'],_0x1f2681['pause']=()=>_0x5489fe[_0x3f5569(0x8ab)](_0x2a93d2),_0x1f2681[_0x3f5569(0x5ed)]=()=>_0x5489fe[_0x3f5569(0x5ed)](_0x2a93d2),_0x1f2681['kick']=()=>_0x5489fe[_0x3f5569(0x2c7)](_0x2a93d2),_0x1f2681[_0x3f5569(0x282)]=()=>_0x5489fe[_0x3f5569(0x282)](_0x2a93d2),_0x1f2681['awaitIdle']=_0x43c01f=>_0x5489fe[_0x3f5569(0x73f)](_0x2a93d2,_0x43c01f),_0x1f2681;}get['_stops'](){const _0x3a35db=_0xd261d3;try{return this['_n'](_0x3a35db(0x338),[],![])[_0x3a35db(0x1a7)](_0x40999f=>({'id':_0x40999f['id']}));}catch{return[];}}async[_0xd261d3(0x521)](_0x3baf33){const _0x4b262d=_0xd261d3;return new Set(this['_n'](_0x4b262d(0x521),[]));}['resumeAllAfterDrain'](_0x97c24a){const _0x2dbdfc=_0xd261d3;return this['_n'](_0x2dbdfc(0x544),[[..._0x97c24a??[]]]);}get[_0xd261d3(0x28a)](){const _0x2ab853=_0xd261d3;return new Set(this['_n']('list',[],![])[_0x2ab853(0x852)](_0xf90656=>_0xf90656[_0x2ab853(0x673)]==null)[_0x2ab853(0x1a7)](_0x5ee481=>_0x5ee481['id']));}[_0xd261d3(0x8a7)](){}get[_0xd261d3(0x337)](){const _0x47737d=_0xd261d3;if(!this[_0x47737d(0x74e)]){const _0x45d32a=new _0x167fdc(this[_0x47737d(0x30b)]['okdb'],this[_0x47737d(0x30b)][_0x47737d(0x6fe)],_0x47737d(0x7c0)),_0x1d033a=this[_0x47737d(0x30b)];_0x45d32a[_0x47737d(0x1bb)]=()=>new _0x1b5976(_0x1d033a,_0x47737d(0x4f1)),this[_0x47737d(0x74e)]=_0x45d32a;}return this[_0x47737d(0x74e)];}[_0xd261d3(0x3a6)](_0x10ef44,_0x4387f0){const _0x5793de=_0xd261d3;return this['_n'](_0x5793de(0x4ef),[typeof _0x10ef44===_0x5793de(0x4bb)?_0x10ef44:_0x10ef44['id'],_0x4387f0?.[_0x5793de(0x2d2)]??String(_0x4387f0??'')]);}get['_stateDb'](){const _0x183e28=_0xd261d3;return this[_0x183e28(0x5fa)]||(this[_0x183e28(0x5fa)]=new _0x1b5976(this['env'],_0x183e28(0x3d5)));}get[_0xd261d3(0x3ab)](){const _0x460f4c=_0xd261d3,_0x3dec89=this,_0x561103=_0xfcc405=>{const _0x2ff01b=_0x3ebb,_0x51e7a0=()=>_0x3dec89['_n']('regInfo',[_0xfcc405],![]);if(!_0x51e7a0())return undefined;const _0x2afed5=_0x46850f=>()=>_0x51e7a0()?.[_0x46850f],_0xe2341b={'id':_0xfcc405},_0x4c702d=(_0x3d09a3,_0x25feb7,_0x2d7d2b)=>Object[_0x2ff01b(0x79d)](_0xe2341b,_0x3d09a3,{'get':_0x25feb7,'set':_0x2d7d2b,'enumerable':!![],'configurable':!![]});return _0x4c702d(_0x2ff01b(0x41c),_0x2afed5('state')),_0x4c702d('mode',_0x2afed5(_0x2ff01b(0x182))),_0x4c702d(_0x2ff01b(0x281),_0x2afed5(_0x2ff01b(0x281))),_0x4c702d('lastClock',_0x2afed5('lastClock'),_0x23b697=>_0x3dec89['_n']('setLastClock',[_0xfcc405,_0x23b697])),_0x4c702d('cursorKey',_0x2afed5(_0x2ff01b(0x4bd))),_0x4c702d(_0x2ff01b(0x377),_0x2afed5(_0x2ff01b(0x7d1)),_0x2183a2=>_0x3dec89['_n'](_0x2ff01b(0x7a0),[_0xfcc405,!!_0x2183a2])),_0x4c702d(_0x2ff01b(0x532),_0x2afed5('handlerName')),_0x4c702d(_0x2ff01b(0x339),_0x2afed5(_0x2ff01b(0x339))),_0x4c702d(_0x2ff01b(0x632),_0x2afed5('drainDeadlineMs')),_0x4c702d(_0x2ff01b(0x3f1),_0x2afed5(_0x2ff01b(0x1b0)),_0x492349=>_0x3dec89['_n'](_0x2ff01b(0x655),[_0xfcc405,_0x492349])),_0x4c702d('meta',()=>_0x3dec89[_0x2ff01b(0x63c)](_0xfcc405)?.['meta']),_0x4c702d('_lockHandle',()=>_0x51e7a0()?.[_0x2ff01b(0x682)]?{'isHeld':()=>!!_0x51e7a0()?.[_0x2ff01b(0x682)]}:null),_0x4c702d(_0x2ff01b(0x4d7),()=>_0x51e7a0()?.[_0x2ff01b(0x3a1)]?()=>{}:null),_0x4c702d('_flushIntervalTimer',()=>_0x51e7a0()?.[_0x2ff01b(0x6a8)]?{}:null),_0x4c702d(_0x2ff01b(0x193),()=>_0x51e7a0()?.[_0x2ff01b(0x3cc)]?{}:null),_0xe2341b;},_0x29e1da=()=>_0x3dec89['_n']('list',[],![])[_0x460f4c(0x1a7)](_0x3d67f8=>_0x3d67f8['id']);return{'get':_0x22565c=>_0x561103(_0x22565c),'has':_0x7a35e7=>_0x29e1da()[_0x460f4c(0x1ac)](_0x7a35e7),get 'size'(){const _0x4d8a19=_0x460f4c;return _0x29e1da()[_0x4d8a19(0x6cf)];},'keys':()=>_0x29e1da()[Symbol[_0x460f4c(0x56e)]](),'values':()=>_0x29e1da()[_0x460f4c(0x1a7)](_0x561103)[Symbol['iterator']](),'entries':()=>_0x29e1da()[_0x460f4c(0x1a7)](_0x3ab3a9=>[_0x3ab3a9,_0x561103(_0x3ab3a9)])[Symbol['iterator']](),[Symbol[_0x460f4c(0x56e)]]:()=>_0x29e1da()['map'](_0x14afca=>[_0x14afca,_0x561103(_0x14afca)])[Symbol['iterator']](),'forEach':_0xed6e62=>_0x29e1da()[_0x460f4c(0x169)](_0x3b84b8=>_0xed6e62(_0x561103(_0x3b84b8),_0x3b84b8))};}async[_0xd261d3(0x3fe)](){const _0x24ee9b=_0xd261d3;return this['_n'](_0x24ee9b(0x3fe),[]);}[_0xd261d3(0x338)](){const _0x5ba726=_0xd261d3,_0x422a53=this['_n'](_0x5ba726(0x338),[],![]);if(!this[_0x5ba726(0x30b)][_0x5ba726(0x6fe)][_0x5ba726(0x6c8)]('~'))try{const _0xa01230=this[_0x5ba726(0x30b)][_0x5ba726(0x21e)][_0x5ba726(0x47b)];for(const _0x349391 of _0xa01230[_0x5ba726(0x6a4)](this[_0x5ba726(0x30b)][_0x5ba726(0x6fe)])){for(const _0x50b599 of _0xa01230['listIndexes'](_0x349391,this[_0x5ba726(0x30b)][_0x5ba726(0x6fe)])){const _0x1b8bea=_0x5ba726(0x1d9)+_0x349391+':'+_0x50b599;_0x422a53[_0x5ba726(0x2fb)]({'id':_0x1b8bea,'type':_0x349391,'mode':_0x5ba726(0x2d7),'state':_0x5ba726(0x714),'paused':![],'lag':0x0,'cursorKey':_0x1b8bea,'meta':{'name':_0x1b8bea}});}}}catch{}return _0x422a53;}[_0xd261d3(0x6e0)](){const _0x5d18b4=_0xd261d3;return this['_n'](_0x5d18b4(0x6e0),[],![]);}['durableTierLag'](){const _0x3b9861=_0xd261d3;return this['_n'](_0x3b9861(0x495),[],![]);}[_0xd261d3(0x559)](){const _0x3cd00e=_0xd261d3;return this['_n'](_0x3cd00e(0x559),[],![]);}['get'](_0x33c095){const _0x447507=_0xd261d3;return this['_n'](_0x447507(0x63c),[_0x33c095],![]);}[_0xd261d3(0x298)](_0x8d6ce0){const _0x348396=_0xd261d3;return this[_0x348396(0x63c)](typeof _0x8d6ce0===_0x348396(0x4bb)?_0x8d6ce0:_0x8d6ce0['id']);}[_0xd261d3(0x71f)](_0x51c55d){const _0x3b04ea=_0xd261d3;return this['_n'](_0x3b04ea(0x71f),[_0x51c55d],![]);}['resetCursor'](_0x139c3d){const _0x48cb73=_0xd261d3;return this['_n'](_0x48cb73(0x4fc),[_0x139c3d]);}[_0xd261d3(0x243)](_0x5ddcb2){const _0x314f3a=_0xd261d3;return this['_n'](_0x314f3a(0x243),[_0x5ddcb2]);}[_0xd261d3(0x407)](_0x558830){return this['_n']('isSnapshotComplete',[_0x558830],![]);}[_0xd261d3(0x1a6)](_0x3de4d5,_0xcd55b8){const _0x3b7843=_0xd261d3;return this['_n'](_0x3b7843(0x1a6),[_0x3de4d5,_0xcd55b8]);}async[_0xd261d3(0x73f)](_0x43dfab,_0x3dcb74){const _0x50f577=_0xd261d3;return this['_n'](_0x50f577(0x73f),[_0x43dfab,_0x3dcb74??0x7530]);}[_0xd261d3(0x8ab)](_0x5c0a20){const _0x32824d=_0xd261d3;return this['_n'](_0x32824d(0x8ab),[_0x5c0a20]);}['resume'](_0x30df18){return this['_n']('resume',[_0x30df18]);}async['setClaiming'](_0x4de793){return this['_n']('setClaiming',[_0x4de793]);}[_0xd261d3(0x2c7)](_0x3419b7){const _0x2141c5=_0xd261d3;return this['_n'](_0x2141c5(0x2c7),[_0x3419b7]);}[_0xd261d3(0x282)](_0x5b3705){return this['_n']('retry',[_0x5b3705]);}[_0xd261d3(0x2f1)](_0x288a9b,_0x11d28f={}){const _0x3b643e=_0xd261d3;return this['_n'](_0x3b643e(0x2f1),[_0x288a9b,_0x11d28f]);}async[_0xd261d3(0x832)](_0xe3f20b,_0xb2606c,_0x36e1f4){const [_0x5dd84a,_0x36d21c]=this['_n']('setMode',[_0xe3f20b,_0xb2606c,_0x36e1f4]);return{'version':_0x5dd84a,'flipClock':_0x36d21c};}async[_0xd261d3(0x7ae)](_0x5e10f7,_0x5e5154,_0x453acb={}){const _0x16ed7d=_0xd261d3;return this['_n'](_0x16ed7d(0x7ae),[_0x5e10f7,_0x5e5154,_0x453acb]);}}_0x5acc46['registerHandler']=function _0x257cae(_0x5b81b4,_0x100544){const _0x48cbed=_0xd261d3;if(typeof _0x5b81b4!==_0x48cbed(0x4bb)||!_0x5b81b4)throw new Error(_0x48cbed(0x1b8));if(typeof _0x100544!=='function')throw new Error(_0x48cbed(0x88a));_0xda72b4(_0x48cbed(0x7c0),'registerHandler',[_0x5b81b4,_0x100544]);},_0x5acc46['registerQuantum']=function _0x16d2cb(_0x5eef8,_0x1293e3){const _0x358c8d=_0xd261d3;if(typeof _0x5eef8!=='string'||!_0x5eef8)throw new Error(_0x358c8d(0x3af));if(typeof _0x1293e3!==_0x358c8d(0x6d8))throw new Error(_0x358c8d(0x341));let _0x4c803e=null;_0xda72b4(_0x358c8d(0x7c0),_0x358c8d(0x3d7),[_0x5eef8,(_0x322c75,_0xb2dba7)=>{if(!_0x4c803e)_0x4c803e=_0x1293e3();return _0x4c803e(_0x322c75,_0xb2dba7);}]);},_0x5acc46[_0xd261d3(0x256)]=_0x4eaba4=>/closed|not open|released/i[_0xd261d3(0x306)](String(_0x4eaba4)),_0x5acc46[_0xd261d3(0x2fc)]=![];function _0xda72b4(_0x3422dc,_0x44360c,_0x5779f5){const {staticCall:_0x217c1a}=requireLib();return _0x217c1a(_0x3422dc,_0x44360c,_0x5779f5);}return processor[_0xd261d3(0x3be)]=_0x5acc46,processor[_0xd261d3(0x3be)][_0xd261d3(0x4e0)]=_0x5acc46,processor[_0xd261d3(0x3be)]['setNative']=_0x4407f4,processor[_0xd261d3(0x3be)];}var okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0xde272=_0x2ec26e;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x109675={'PUT':'put','REMOVE':_0xde272(0x42f),'INDEX_DROP':_0xde272(0x764),'INDEX_REGISTER':_0xde272(0x7b7),'INDEX_RESET':_0xde272(0x219),'TYPE_REGISTER':_0xde272(0x754),'TYPE_DROP':_0xde272(0x195),'FTS_REGISTER':_0xde272(0x7b2),'FTS_DROP':'dropFts','FTS_RESET':_0xde272(0x73d),'SCHEMA_SET':_0xde272(0x573),'SCHEMA_DROP':_0xde272(0x389),'TTL_SET':_0xde272(0x364),'TTL_CLEAR':_0xde272(0x184)},_0x385c32={'SYSTEM_READY':_0xde272(0x586),'FIELD_RESOLVER_REGISTERED':_0xde272(0x251),'SYSTEM_STOPPED':_0xde272(0x1d7),'SYSTEM_CLOCK_CHANGE':_0xde272(0x301),'SYSTEM_POKE':'system:poke','SYSTEM_DRAIN':_0xde272(0x539),'SYSTEM_TYPE_DROP':_0xde272(0x4b0),'SYSTEM_PROC':_0xde272(0x798),'SYSTEM_BUS_STATE_CHANGE':_0xde272(0x2e3),'ITEM_CREATE':'item:create','ITEM_UPDATE':_0xde272(0x2b3),'ITEM_REMOVE':_0xde272(0x5de),'ITEM_PENDING':_0xde272(0x5e7),'INDEX_RESET':_0xde272(0x3fb),'INDEX_READY':_0xde272(0x85c),'INDEX_PROGRESS':_0xde272(0x8a0),'VIEW_PROGRESS':_0xde272(0x6dd),'INDEX_DROP':_0xde272(0x585),'INDEX_REGISTERED':_0xde272(0x2a1),'FTS_REGISTERED':_0xde272(0x4e5),'FTS_DROP':_0xde272(0x2be),'FTS_RESET':_0xde272(0x229),'SCHEMA_SET':_0xde272(0x247),'SCHEMA_DROP':_0xde272(0x7a2),'UNIQUE_VIOLATION':_0xde272(0x31e),'UNIQUE_VIOLATION_RESOLVED':_0xde272(0x3dd),'REF_VIOLATION':_0xde272(0x517),'REF_VIOLATION_RESOLVED':_0xde272(0x1b3),'SYNC_APPLY':_0xde272(0x40c),'TXN_START':_0xde272(0x75d),'TXN_END':'txn:end','TXN_ROLLBACK':_0xde272(0x3a4),'TYPE_REGISTERED':_0xde272(0x839),'TYPE_DROP':'type:drop','ENV_OPENED':'env:opened','ENV_REMOVED':'env:removed','SYSTEM_ENV_RELEASE':_0xde272(0x70a),'TTL_EXPIRED':_0xde272(0x568),'TTL_SET':_0xde272(0x439),'TTL_CLEAR':_0xde272(0x5e2),'LICENSE_INVALID':'license:invalid','LICENSE_ADDED':_0xde272(0x5f1),'LICENSE_ACTIVATED':_0xde272(0x35f),'LICENSE_REMOVED':'license:removed'},_0x4b7b5f={'CREATING':_0xde272(0x578),'RESETTING':'resetting','READY':'ready','DROPPING':_0xde272(0x324),'WAITING':_0xde272(0x56a),'ERROR':'error'},_0x5c30da={'CREATED':_0xde272(0x244),'STARTING':_0xde272(0x88c),'STARTED':_0xde272(0x1ce),'STOPPING':_0xde272(0x64f),'STOPPED':_0xde272(0x2d9)},_0x1ad3ce={'CREATING':_0xde272(0x578),'READY':_0xde272(0x288),'HALTED':_0xde272(0x614),'STOPPED':_0xde272(0x2d9),'RESETTING':_0xde272(0x7e0)},_0x36ada8=Object['freeze']({'POKE':_0xde272(0x60d),'DRAIN':_0xde272(0x24f),'TYPE_DROP':_0xde272(0x611),'PROC':_0xde272(0x1d3),'ENV_RELEASE':_0xde272(0x67a)});return okdbEnums={'BUS_EVENTS':_0x36ada8,'CHANGE_ACTIONS':_0x109675,'EVENTS':_0x385c32,'INDEX_STATE':_0x4b7b5f,'OKDB_STATE':_0x5c30da,'VIEW_STATE':_0x1ad3ce},okdbEnums;}var okdbGuardedRange,hasRequiredOkdbGuardedRange;function requireOkdbGuardedRange(){const _0x3e4544=_0x2ec26e;if(hasRequiredOkdbGuardedRange)return okdbGuardedRange;hasRequiredOkdbGuardedRange=0x1;const _0x18759d={'SKIP':Symbol[_0x3e4544(0x401)](_0x3e4544(0x633))},{OKDBError:_0x1f23fb}=requireOkdbError(),_0x16133d={'value':null,'done':!![]};class _0x3709ea{constructor(_0x36f860){this['_makeIterator']=_0x36f860;}get[_0x3e4544(0x2fd)](){return _0x16133d;}[Symbol['iterator']](){return this['_makeIterator']();}[_0x3e4544(0x1a7)](_0x43df33){const _0x511825=this;return new _0x3709ea(()=>{const _0x1ce5b4=_0x3ebb,_0x4cd76c=_0x511825[Symbol[_0x1ce5b4(0x56e)]]();return{'next'(){const _0x576e53=_0x1ce5b4;for(;;){const _0x39d3ad=_0x4cd76c[_0x576e53(0x788)]();if(_0x39d3ad['done'])return{'done':!![],'value':undefined};const _0x26285f=_0x43df33(_0x39d3ad['value']);if(_0x26285f===_0x18759d[_0x576e53(0x57b)])continue;if(_0x26285f===_0x16133d)return _0x4cd76c[_0x576e53(0x77e)]?.(),{'done':!![],'value':undefined};return{'done':![],'value':_0x26285f};}},'return'(){return _0x4cd76c['return']?.(),{'done':!![],'value':undefined};},[Symbol[_0x1ce5b4(0x56e)]](){return this;}};});}[_0x3e4544(0x852)](_0x219b61){const _0x4333b4=_0x3e4544;return this[_0x4333b4(0x1a7)](_0x2d7619=>_0x219b61(_0x2d7619)?_0x2d7619:_0x18759d[_0x4333b4(0x57b)]);}[_0x3e4544(0x169)](_0x1d328c){for(const _0x537d1f of this)_0x1d328c(_0x537d1f);}[_0x3e4544(0x5ca)](_0x37e5b8=0x0,_0x40fe45=Infinity){const _0x5b6d19=this;return new _0x3709ea(()=>{const _0x28b9a9=_0x3ebb,_0x2d464e=_0x5b6d19[Symbol['iterator']]();let _0x5bbe16=0x0;return{'next'(){const _0x59c9e1=_0x3ebb;for(;;){const _0x18df94=_0x2d464e[_0x59c9e1(0x788)]();if(_0x18df94[_0x59c9e1(0x3b5)])return{'done':!![],'value':undefined};const _0x3c38f1=_0x5bbe16++;if(_0x3c38f1<_0x37e5b8)continue;if(_0x3c38f1>=_0x40fe45)return _0x2d464e[_0x59c9e1(0x77e)]?.(),{'done':!![],'value':undefined};return _0x18df94;}},'return'(){const _0x5e685a=_0x3ebb;return _0x2d464e[_0x5e685a(0x77e)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x28b9a9(0x56e)]](){return this;}};});}['at'](_0x54e7ad){let _0x3a1b04=0x0;for(const _0x3eb526 of this)if(_0x3a1b04++===_0x54e7ad)return _0x3eb526;return undefined;}[_0x3e4544(0x164)](_0x1f7a88){const _0xe9b56f=this;return new _0x3709ea(()=>{const _0x25b566=_0x3ebb,_0x1b5721=_0xe9b56f[Symbol[_0x25b566(0x56e)]]();let _0x47db45=[];return{'next'(){const _0x279d07=_0x25b566;for(;;){if(_0x47db45[_0x279d07(0x6cf)])return{'done':![],'value':_0x47db45['shift']()};const _0x4d2000=_0x1b5721[_0x279d07(0x788)]();if(_0x4d2000[_0x279d07(0x3b5)])return{'done':!![],'value':undefined};const _0x3faf2f=_0x1f7a88(_0x4d2000[_0x279d07(0x820)]);if(Array[_0x279d07(0x69e)](_0x3faf2f))_0x47db45=_0x47db45[_0x279d07(0x79b)](_0x3faf2f);else{if(_0x3faf2f!=null&&(_0x3faf2f instanceof _0x3709ea||typeof _0x3faf2f[Symbol['iterator']]===_0x279d07(0x6d8)&&_0x279d07(0x45b)in _0x3faf2f))_0x47db45=_0x47db45['concat'](Array[_0x279d07(0x170)](_0x3faf2f));else{if(_0x3faf2f!==_0x18759d[_0x279d07(0x57b)])return{'done':![],'value':_0x3faf2f};}}}},'return'(){const _0x5832ba=_0x25b566;return _0x1b5721[_0x5832ba(0x77e)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x25b566(0x56e)]](){return this;}};});}[_0x3e4544(0x79b)](_0x300fa2){const _0x25fa27=this;return new _0x3709ea(()=>{const _0x2a62e9=_0x3ebb;let _0x21cf7b=_0x25fa27[Symbol[_0x2a62e9(0x56e)]](),_0x17616a=![];return{'next'(){const _0x497a96=_0x2a62e9;for(;;){const _0x270e27=_0x21cf7b[_0x497a96(0x788)]();if(!_0x270e27[_0x497a96(0x3b5)])return _0x270e27;if(_0x17616a)return{'done':!![],'value':undefined};_0x17616a=!![],_0x21cf7b=_0x300fa2[Symbol[_0x497a96(0x56e)]]();}},'return'(){const _0x45f143=_0x2a62e9;return _0x21cf7b[_0x45f143(0x77e)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x2a62e9(0x56e)]](){return this;}};});}[_0x3e4544(0x3ec)](_0x373524){const _0x282843=this;return new _0x3709ea(()=>{const _0x2cf99d=_0x282843[Symbol['iterator']]();return{'next'(){const _0x5ed0e5=_0x3ebb;for(;;){try{return _0x2cf99d[_0x5ed0e5(0x788)]();}catch(_0x1351df){const _0x175516=_0x373524(_0x1351df);if(_0x175516===_0x18759d[_0x5ed0e5(0x57b)]||_0x175516===undefined)continue;return{'done':![],'value':_0x175516};}}},'return'(){return _0x2cf99d['return']?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}[_0x3e4544(0x40d)](){const _0x3ec886=_0x3e4544;return Array[_0x3ec886(0x170)](this);}get[_0x3e4544(0x45b)](){const _0x2133c2=_0x3e4544;return Array[_0x2133c2(0x170)](this);}}const _0x180cc0={'total':0x0,'byLabel':{},'last':null};function _0x4f25c0(_0x14ab19){const _0x6dda0f=_0x3e4544;_0x180cc0['total']++;if(_0x14ab19)_0x180cc0['byLabel'][_0x14ab19]=(_0x180cc0['byLabel'][_0x14ab19]??0x0)+0x1;_0x180cc0['last']={'label':_0x14ab19??null,'at':Date[_0x6dda0f(0x89e)]()};}function _0x11276e(){const _0x512cd9=_0x3e4544;return{'total':_0x180cc0['total'],'byLabel':{..._0x180cc0[_0x512cd9(0x2e2)]},'last':_0x180cc0['last']};}function _0x2a2215(_0x2b9a64,_0x52b733={}){const {getTxnId:_0x4ad90d,resume:_0x2f0ea3,label:_0x3440c6,baseline:_0x5dc7fe}=_0x52b733;return new _0x3709ea(()=>{const _0x42dd84=_0x3ebb;let _0x3cc389=null,_0x48607a=![],_0x8e0de2=![],_0x50416b=![],_0xaa1cca,_0x4a1df1=0x0,_0x30e038;return{'next'(){const _0x3ff852=_0x3ebb;if(_0x50416b)return{'done':!![],'value':undefined};if(_0x8e0de2){let _0x454d07=![];if(_0x2f0ea3&&_0x4ad90d)try{_0x454d07=_0x4ad90d()===_0x30e038;}catch{}if(!_0x454d07){_0x50416b=!![],_0x4f25c0(_0x3440c6);throw new _0x1f23fb(_0x2f0ea3?_0x3ff852(0x1eb)+_0x3ff852(0x17d)+_0x3ff852(0x486):_0x3ff852(0x47e)+_0x3ff852(0x4bc)+'Array.from)\x20before\x20any\x20await.',_0x3ff852(0x643));}_0x3cc389=_0x2f0ea3(_0xaa1cca,_0x4a1df1)[Symbol[_0x3ff852(0x56e)]](),_0x8e0de2=![];}if(!_0x3cc389){if(_0x5dc7fe!==undefined)_0x30e038=_0x5dc7fe;else try{_0x30e038=_0x4ad90d?_0x4ad90d():undefined;}catch{_0x30e038=undefined;}try{_0x3cc389=_0x2b9a64()[Symbol[_0x3ff852(0x56e)]]();}catch(_0x49d0f2){_0x50416b=!![];throw _0x49d0f2;}}!_0x48607a&&(_0x48607a=!![],queueMicrotask(()=>{const _0x3d7514=_0x3ff852;_0x48607a=![];if(_0x50416b||_0x8e0de2)return;try{_0x3cc389?.[_0x3d7514(0x77e)]?.();}catch{}_0x3cc389=null,_0x8e0de2=!![];}));const _0x2b5ff8=_0x3cc389['next']();if(_0x2b5ff8[_0x3ff852(0x3b5)])return _0x50416b=!![],{'done':!![],'value':undefined};return _0xaa1cca=_0x2b5ff8[_0x3ff852(0x820)],_0x4a1df1++,_0x2b5ff8;},'return'(){const _0x576414=_0x3ebb;_0x50416b=!![];try{_0x3cc389?.[_0x576414(0x77e)]?.();}catch{}return{'done':!![],'value':undefined};},[Symbol[_0x42dd84(0x56e)]](){return this;}};});}return okdbGuardedRange={'guardSnapshotIterable':_0x2a2215,'OKDBGuardedRange':_0x3709ea,'recordGuardTrip':_0x4f25c0,'getGuardTripStats':_0x11276e},okdbGuardedRange;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0x546df3=_0x2ec26e;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x138b8b,performance:_0x5bf479}=require$$0$1,_0x4e96ca=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG===_0x546df3(0x3ee),_0x2f618e=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x47394f=process.env.OKDB_LOOP_LAG_ALL==='1',_0x2058ba=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0x5109fe{constructor(){const _0x30de8e=_0x546df3;this[_0x30de8e(0x580)]=_0x4e96ca,this[_0x30de8e(0x2c6)]=new Map(),this['_h']=null,this[_0x30de8e(0x25f)]=null,this['_started']=![],this['_log']=(_0x5b524a,_0x54da7f)=>process[_0x30de8e(0x1a3)][_0x30de8e(0x4ca)](_0x5b524a+(_0x54da7f?'\x20'+JSON['stringify'](_0x54da7f):'')+'\x0a');}[_0x546df3(0x89e)](){const _0x4e41da=_0x546df3;return _0x5bf479[_0x4e41da(0x89e)]();}[_0x546df3(0x31b)](_0x48f40e){const _0x3e8905=_0x546df3;if(typeof _0x48f40e===_0x3e8905(0x6d8))this[_0x3e8905(0x8a6)]=_0x48f40e;}[_0x546df3(0x3a5)](_0x3c0f2b,_0x2ad97c,_0x8dfd9d){const _0x5848ee=_0x546df3;if(!this[_0x5848ee(0x580)])return;let _0x599d4c=this[_0x5848ee(0x2c6)][_0x5848ee(0x63c)](_0x3c0f2b);!_0x599d4c&&(_0x599d4c={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this['_buckets']['set'](_0x3c0f2b,_0x599d4c)),_0x599d4c['ms']+=_0x2ad97c,_0x599d4c[_0x5848ee(0x3c2)]+=0x1,_0x2ad97c>_0x599d4c[_0x5848ee(0x371)]&&(_0x599d4c[_0x5848ee(0x371)]=_0x2ad97c,_0x599d4c[_0x5848ee(0x325)]=_0x8dfd9d||'');}[_0x546df3(0x898)](_0x2e086a){const _0x5c78c6=_0x546df3;if(!this[_0x5c78c6(0x580)]||this[_0x5c78c6(0x3cb)])return;this[_0x5c78c6(0x3cb)]=!![];if(_0x2e086a)this['_log']=_0x2e086a;this['_h']=_0x138b8b({'resolution':0xa}),this['_h'][_0x5c78c6(0x1cf)](),this['_timer']=setInterval(()=>this['_report'](),_0x2f618e);if(this[_0x5c78c6(0x25f)][_0x5c78c6(0x702)])this['_timer'][_0x5c78c6(0x702)]();}[_0x546df3(0x23d)](_0x561632){const _0x1d2cd1=_0x546df3;if(!this[_0x1d2cd1(0x877)])this[_0x1d2cd1(0x877)]=new Set();this[_0x1d2cd1(0x877)][_0x1d2cd1(0x7df)](_0x561632);if(!this[_0x1d2cd1(0x3cb)])this[_0x1d2cd1(0x359)]();}[_0x546df3(0x33d)](_0x5d6bfa){const _0x43429f=_0x546df3;this['_windowCbs']?.[_0x43429f(0x82f)](_0x5d6bfa);}[_0x546df3(0x359)](){const _0x2e323c=_0x546df3;if(this[_0x2e323c(0x77c)])return;this['_admissionStarted']=!![];!this['_h']&&(this['_h']=_0x138b8b({'resolution':0xa}),this['_h']['enable']());const _0x221b95=_0x2f618e;this[_0x2e323c(0x4b2)]=setInterval(()=>{const _0x9532b6=_0x2e323c,_0x4323db=this['_h'];if(!_0x4323db)return;const _0x16f15a=_0x4323db[_0x9532b6(0x710)](0x63)/0xf4240,_0x20fae0=_0x4323db[_0x9532b6(0x3e7)]/0xf4240,_0x17d19a=_0x4323db[_0x9532b6(0x349)]/0xf4240;_0x4323db['reset']();if(this['_windowCbs'])for(const _0x58620e of this[_0x9532b6(0x877)]){try{_0x58620e({'p99Ms':_0x16f15a,'maxMs':_0x20fae0,'meanMs':_0x17d19a,'reportMs':_0x221b95});}catch{}}},_0x221b95);if(this[_0x2e323c(0x4b2)][_0x2e323c(0x702)])this[_0x2e323c(0x4b2)][_0x2e323c(0x702)]();}[_0x546df3(0x813)](){const _0x2ba42c=_0x546df3,_0x194a49=this['_h'],_0x1f6950=_0x194a49[_0x2ba42c(0x3e7)]/0xf4240,_0x425ffa=_0x194a49[_0x2ba42c(0x710)](0x63)/0xf4240,_0x3c2fc5=_0x194a49['mean']/0xf4240;_0x194a49['reset']();const _0x509354=[...this[_0x2ba42c(0x2c6)][_0x2ba42c(0x72a)]()][_0x2ba42c(0x1a7)](([_0x3e5a15,_0x1f2937])=>({'label':_0x3e5a15,..._0x1f2937}))['sort']((_0x26a13a,_0x12efb8)=>_0x12efb8['ms']-_0x26a13a['ms'])[_0x2ba42c(0x5ca)](0x0,0x8);this[_0x2ba42c(0x2c6)][_0x2ba42c(0x871)]();const _0x357687=_0x509354[_0x2ba42c(0x7f8)]((_0x1ed55a,_0x155d86)=>_0x1ed55a+_0x155d86['ms'],0x0),_0x23d826=_0x509354[_0x2ba42c(0x1a7)](_0x4a5424=>_0x4a5424[_0x2ba42c(0x7c8)]+'='+_0x4a5424['ms']['toFixed'](0x0)+_0x2ba42c(0x6d7)+_0x4a5424['count']+(_0x4a5424[_0x2ba42c(0x371)]>0x5?'(worst\x20'+_0x4a5424[_0x2ba42c(0x371)][_0x2ba42c(0x5d9)](0x0)+'ms'+(_0x4a5424[_0x2ba42c(0x325)]?'\x20'+_0x4a5424[_0x2ba42c(0x325)]:'')+')':''));(_0x47394f||_0x1f6950>=_0x2058ba)&&this['_log']('loop-lag\x20'+_0x2f618e+_0x2ba42c(0x3a8)+_0x1f6950[_0x2ba42c(0x5d9)](0x0)+_0x2ba42c(0x7d0)+_0x425ffa['toFixed'](0x0)+_0x2ba42c(0x5c8)+_0x3c2fc5[_0x2ba42c(0x5d9)](0x0)+_0x2ba42c(0x6bb)+_0x357687[_0x2ba42c(0x5d9)](0x0)+'ms'+(_0x23d826['length']?_0x2ba42c(0x833)+_0x23d826[_0x2ba42c(0x3d2)]('\x20\x20'):''),{'feature':_0x2ba42c(0x2f8)});if(this['_windowCbs'])for(const _0x532227 of this[_0x2ba42c(0x877)]){try{_0x532227({'p99Ms':_0x425ffa,'maxMs':_0x1f6950,'meanMs':_0x3c2fc5,'reportMs':_0x2f618e});}catch{}}}[_0x546df3(0x893)](){const _0x3dc217=_0x546df3;if(this[_0x3dc217(0x25f)])clearInterval(this[_0x3dc217(0x25f)]);if(this['_h'])this['_h'][_0x3dc217(0x48e)]();this[_0x3dc217(0x25f)]=null,this['_h']=null,this[_0x3dc217(0x3cb)]=![];}}const _0x2543c5=new _0x5109fe();if(_0x2543c5[_0x546df3(0x580)])_0x2543c5['start']();return okdbLoopMonitor={'LOOP':_0x2543c5},okdbLoopMonitor;}var okdbTransaction,hasRequiredOkdbTransaction;function requireOkdbTransaction(){const _0xe7c62d=_0x2ec26e;if(hasRequiredOkdbTransaction)return okdbTransaction;hasRequiredOkdbTransaction=0x1;const _0x422f5c={'v4':()=>require$$0$2['randomUUID']()},{EVENTS:_0x3e0136}=requireOkdbEnums(),{OKDBError:_0x5caa13}=requireOkdbError(),{recordGuardTrip:_0x18d3a7,guardSnapshotIterable:_0x490b66}=requireOkdbGuardedRange(),{LOOP:_0x339ef9}=requireOkdbLoopMonitor();function _0x1821c4(_0x1b623d){return _0x1b623d['map'](_0x24fddc=>{const _0xdb4b47=_0x3ebb,[_0x45e586,_0x465c44]=_0x24fddc[_0xdb4b47(0x1fa)]||[];return{'action':_0x24fddc[_0xdb4b47(0x730)],'type':_0x45e586,'key':_0x465c44};});}class _0x416fef{[_0xe7c62d(0x21e)];[_0xe7c62d(0x858)]=[];[_0xe7c62d(0x18d)]=[];[_0xe7c62d(0x3a0)]=[];constructor(_0x30c9bd,_0x40047c={'useReadTransaction':![]}){const _0x1f767c=_0xe7c62d;this['okdb']=_0x30c9bd,this[_0x1f767c(0x66a)]=_0x40047c,this['id']=_0x422f5c['v4']();if(this[_0x1f767c(0x66a)][_0x1f767c(0x271)])try{this['_txnIdAtSnapshot']=this[_0x1f767c(0x21e)]['db'][_0x1f767c(0x7fd)]()[_0x1f767c(0x497)];}catch{this[_0x1f767c(0x427)]=undefined;}this[_0x1f767c(0x6b0)]=this['options'][_0x1f767c(0x271)]?this[_0x1f767c(0x21e)]['db'][_0x1f767c(0x271)]():null,this[_0x1f767c(0x208)]=![],this['_readViewExpired']=![],this['readTransaction']&&queueMicrotask(()=>{const _0x36d67a=_0x1f767c;this[_0x36d67a(0x6b0)]&&(this[_0x36d67a(0x408)](),this[_0x36d67a(0x4e8)]=!![]);});}[_0xe7c62d(0x576)](_0x534849){const _0x4e7a9b=_0xe7c62d;this[_0x4e7a9b(0x18d)][_0x4e7a9b(0x2fb)](_0x534849);}['onUndo'](_0x2d82e4){const _0x4c5e23=_0xe7c62d;this[_0x4c5e23(0x3a0)][_0x4c5e23(0x2fb)](_0x2d82e4);}['_closeReadTransaction'](){const _0x49e4a7=_0xe7c62d;if(!this[_0x49e4a7(0x6b0)])return;try{this['readTransaction'][_0x49e4a7(0x3b5)]();}catch(_0x15b959){}this[_0x49e4a7(0x6b0)]=null;}[_0xe7c62d(0x29b)](){const _0x422773=_0xe7c62d;if(this['_closed'])throw new _0x5caa13(_0x422773(0x527),_0x422773(0x1f6));if(this[_0x422773(0x4e8)]){let _0x2aba15=![];if(this['options']['useReadTransaction']===_0x422773(0x888)&&this[_0x422773(0x427)]!==undefined)try{_0x2aba15=this[_0x422773(0x21e)]['db'][_0x422773(0x7fd)]()[_0x422773(0x497)]===this['_txnIdAtSnapshot'];}catch{}if(!_0x2aba15){_0x18d3a7((this[_0x422773(0x21e)]?.['name']??'?')+_0x422773(0x725));throw new _0x5caa13(_0x422773(0x1ef)+_0x422773(0x369)+'before\x20any\x20await\x20—\x20or\x20opt\x20into\x20useReadTransaction:\x27tolerant\x27\x20to\x20keep\x20reading\x20while\x20'+_0x422773(0x68d),_0x422773(0x643));}}}[_0xe7c62d(0x63c)](_0x529ec1,_0x4ee4c0){const _0x2d5dc9=_0xe7c62d;return this[_0x2d5dc9(0x29b)](),this[_0x2d5dc9(0x21e)]['get'](_0x529ec1,_0x4ee4c0,{'transaction':this['readTransaction']});}[_0xe7c62d(0x2ec)](_0x15463a,_0x170dba){const _0x574f58=_0xe7c62d;return this[_0x574f58(0x29b)](),this[_0x574f58(0x21e)][_0x574f58(0x2ec)](_0x15463a,_0x170dba,{'transaction':this['readTransaction']});}['getMany'](_0x2a57da,_0x32b4ce){const _0x2f7a6a=_0xe7c62d;return this[_0x2f7a6a(0x29b)](),this['okdb'][_0x2f7a6a(0x791)](_0x2a57da,_0x32b4ce,{'transaction':this[_0x2f7a6a(0x6b0)]});}[_0xe7c62d(0x3b1)](_0x55ba14){const _0x3c1af0=_0xe7c62d;if(!this['options'][_0x3c1af0(0x271)])return _0x55ba14;if(_0x55ba14&&typeof _0x55ba14['then']===_0x3c1af0(0x6d8))return _0x55ba14;if(Array['isArray'](_0x55ba14))return _0x55ba14;const _0x18e72f=this,_0x1b50d3=_0x18e72f[_0x3c1af0(0x66a)][_0x3c1af0(0x271)]===_0x3c1af0(0x888),_0xa3e538=()=>{const _0x2a4f81=_0x3c1af0;if(!_0x18e72f['_readViewExpired'])return![];if(!_0x1b50d3)return!![];if(_0x18e72f[_0x2a4f81(0x427)]===undefined)return!![];try{return _0x18e72f[_0x2a4f81(0x21e)]['db'][_0x2a4f81(0x7fd)]()[_0x2a4f81(0x497)]!==_0x18e72f[_0x2a4f81(0x427)];}catch{return!![];}};return _0x490b66(()=>{const _0x171655=_0x3c1af0;if(_0x18e72f['_closed'])throw new _0x5caa13(_0x171655(0x527),_0x171655(0x1f6));if(_0xa3e538()){_0x18d3a7((_0x18e72f[_0x171655(0x21e)]?.[_0x171655(0x6fe)]??'?')+_0x171655(0x7c2));throw new _0x5caa13(_0x171655(0x4f0)+_0x171655(0x6a6)+_0x171655(0x35b),_0x171655(0x643));}return _0x55ba14;},{'label':(_0x18e72f[_0x3c1af0(0x21e)]?.[_0x3c1af0(0x6fe)]??'?')+_0x3c1af0(0x7c2),..._0x1b50d3?{'baseline':_0x18e72f[_0x3c1af0(0x427)],'getTxnId':()=>_0x18e72f[_0x3c1af0(0x21e)]['db'][_0x3c1af0(0x7fd)]()[_0x3c1af0(0x497)],'resume':(_0x56397c,_0xb34fa3)=>_0x55ba14['slice'](_0xb34fa3)}:{}});}['getRange'](_0x422349,_0x4ef4da={}){const _0x1dd774=_0xe7c62d;return this['_assertOpen'](),this[_0x1dd774(0x3b1)](this[_0x1dd774(0x21e)][_0x1dd774(0x3fa)](_0x422349,{'transaction':this[_0x1dd774(0x6b0)],..._0x4ef4da}));}[_0xe7c62d(0x618)](_0x41fb45,_0x206db2={}){const _0x396257=_0xe7c62d;return this['_assertOpen'](),this[_0x396257(0x3b1)](this[_0x396257(0x21e)][_0x396257(0x618)](_0x41fb45,{'transaction':this[_0x396257(0x6b0)],..._0x206db2}));}[_0xe7c62d(0x7d2)](_0x1d56d5,_0x1f1fb4={}){const _0xeaf03=_0xe7c62d;return this[_0xeaf03(0x29b)](),this['_range'](this['okdb'][_0xeaf03(0x7d2)](_0x1d56d5,{'transaction':this[_0xeaf03(0x6b0)],..._0x1f1fb4}));}[_0xe7c62d(0x2c0)](_0x5023f4,_0x4f2fbd,_0xfcab76={}){const _0x55c155=_0xe7c62d;return this[_0x55c155(0x29b)](),this[_0x55c155(0x3b1)](this[_0x55c155(0x21e)][_0x55c155(0x2c0)](_0x5023f4,_0x4f2fbd,{'transaction':this[_0x55c155(0x6b0)],..._0xfcab76}));}[_0xe7c62d(0x665)](_0x22dffd,_0x2ad212,_0x4cc4f6={}){const _0x57ec10=_0xe7c62d;return this['_assertOpen'](),this[_0x57ec10(0x3b1)](this[_0x57ec10(0x21e)][_0x57ec10(0x665)](_0x22dffd,_0x2ad212,{'transaction':this[_0x57ec10(0x6b0)],..._0x4cc4f6}));}['getClock'](_0x1ccc6c=null){const _0x34bf78=_0xe7c62d;return this[_0x34bf78(0x29b)](),this['okdb'][_0x34bf78(0x45e)](_0x1ccc6c,{'transaction':this[_0x34bf78(0x6b0)]});}[_0xe7c62d(0x436)](_0x195ee1){const _0x147de0=_0xe7c62d;return this[_0x147de0(0x29b)](),this['okdb']['getCount'](_0x195ee1,{'transaction':this['readTransaction']});}[_0xe7c62d(0x27f)](_0x7aa74d,_0x6a4049,_0x219f5f,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0xe7c62d(0x89e)](),origin:origin=null,ttl:ttl=null}={}){const _0x3cae94=_0xe7c62d;this[_0x3cae94(0x858)][_0x3cae94(0x2fb)]({'action':'put','args':[_0x7aa74d,_0x6a4049,_0x219f5f,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0xe7c62d(0x88e)](_0x138a3f,_0x14a2d8,_0x31710d,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0xe7c62d(0x89e)](),origin:origin=null,ttl:ttl=null}={}){const _0x4c2858=_0xe7c62d;this['actions'][_0x4c2858(0x2fb)]({'action':_0x4c2858(0x88e),'args':[_0x138a3f,_0x14a2d8,_0x31710d,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}['patch'](_0x5b2707,_0x3ed3e2,_0x32883b,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0xe7c62d(0x89e)](),origin:origin=null,ttl:ttl=null}={}){const _0x566877=_0xe7c62d;this[_0x566877(0x858)]['push']({'action':_0x566877(0x747),'args':[_0x5b2707,_0x3ed3e2,_0x32883b,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0xe7c62d(0x740)](_0x2acb4e,_0x33fb48,_0x121be5,{version:version=null,timestamp:timestamp=Date[_0xe7c62d(0x89e)](),origin:origin=null,ttl:ttl=null}={}){const _0x19dd25=_0xe7c62d;this[_0x19dd25(0x858)][_0x19dd25(0x2fb)]({'action':_0x19dd25(0x740),'args':[_0x2acb4e,_0x33fb48,_0x121be5,{'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0xe7c62d(0x42f)](_0x5785ea,_0x31be7d,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0xe7c62d(0x89e)](),origin:origin=null}={}){const _0x4dc67a=_0xe7c62d;this[_0x4dc67a(0x858)][_0x4dc67a(0x2fb)]({'action':_0x4dc67a(0x42f),'args':[_0x5785ea,_0x31be7d,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin}]});}[_0xe7c62d(0x397)](_0x50ada8,_0x3c9aa6,_0x18a372){const _0x398742=_0xe7c62d;this[_0x398742(0x858)][_0x398742(0x2fb)]({'action':'setTTL','args':[_0x50ada8,_0x3c9aa6,_0x18a372]});}['clearTTL'](_0x22b697,_0x2f9ea6){const _0x59a120=_0xe7c62d;this[_0x59a120(0x858)]['push']({'action':_0x59a120(0x483),'args':[_0x22b697,_0x2f9ea6]});}[_0xe7c62d(0x36e)](){const _0x2407ef=_0xe7c62d;if(this[_0x2407ef(0x208)])return;for(const _0x15445c of this[_0x2407ef(0x3a0)]){try{_0x15445c();}catch{}}this[_0x2407ef(0x21e)][_0x2407ef(0x29a)]['emit'](_0x3e0136[_0x2407ef(0x3b4)],{'id':this['id']}),this['actions']=[],this['_closeReadTransaction'](),this['_closed']=!![];}async[_0xe7c62d(0x2cd)](){const _0x4df007=_0xe7c62d;if(this[_0x4df007(0x208)])throw new Error(_0x4df007(0x527));const _0x15b7cc={'id':this['id'],'timestamp':Date[_0x4df007(0x89e)](),'actions':this[_0x4df007(0x858)]};this['okdb'][_0x4df007(0x29a)]['emit'](_0x3e0136['TXN_START'],_0x15b7cc);try{const _0x4baf6a=_0x339ef9[_0x4df007(0x580)]?_0x339ef9[_0x4df007(0x89e)]():0x0;await this[_0x4df007(0x21e)][_0x4df007(0x291)]['transaction'](()=>{const _0x413a63=_0x4df007;for(const _0x1b3444 of this['actions']){const _0x21154b=this[_0x413a63(0x21e)]['_'+_0x1b3444[_0x413a63(0x730)]];if(typeof _0x21154b!==_0x413a63(0x6d8))throw new Error(_0x413a63(0x77a)+_0x1b3444[_0x413a63(0x730)]);_0x21154b['call'](this[_0x413a63(0x21e)],this,..._0x1b3444['args']);}}),_0x339ef9[_0x4df007(0x580)]&&_0x339ef9['note']('txn-commit',_0x339ef9[_0x4df007(0x89e)]()-_0x4baf6a,(this['okdb'][_0x4df007(0x6fe)]??'?')+_0x4df007(0x212)+this[_0x4df007(0x858)]['length']);}catch(_0x270e7f){for(const _0x15563d of this[_0x4df007(0x3a0)]){try{_0x15563d();}catch{}}this[_0x4df007(0x408)](),this['_closed']=!![];if(_0x270e7f instanceof _0x5caa13)throw _0x270e7f;const _0x249be9={'cause':_0x270e7f,'env':this[_0x4df007(0x21e)]?.[_0x4df007(0x6fe)],'envPath':this['okdb']?.[_0x4df007(0x39d)],'pid':process[_0x4df007(0x7a5)],'txnId':this['id'],'actionCount':this['actions'][_0x4df007(0x6cf)],'actions':_0x1821c4(this[_0x4df007(0x858)]),'nativeCode':_0x270e7f?.['code'],'nativeName':_0x270e7f?.['name']};try{this[_0x4df007(0x21e)]?.[_0x4df007(0x793)]?.[_0x4df007(0x254)]?.('transaction\x20commit\x20failed',{'env':_0x249be9[_0x4df007(0x30b)],'envPath':_0x249be9[_0x4df007(0x537)],'pid':_0x249be9[_0x4df007(0x7a5)],'txnId':_0x249be9[_0x4df007(0x582)],'actionCount':_0x249be9['actionCount'],'actions':_0x249be9[_0x4df007(0x858)],'nativeCode':_0x249be9[_0x4df007(0x332)],'error':_0x270e7f?.[_0x4df007(0x2d2)],'stack':_0x270e7f?.['stack']});}catch{}throw new _0x5caa13(_0x270e7f?.['message']||_0x4df007(0x731),_0x4df007(0x7e4),_0x249be9);}this[_0x4df007(0x21e)]['events'][_0x4df007(0x6d6)](_0x3e0136[_0x4df007(0x63e)],_0x15b7cc);for(const _0x2dae05 of this[_0x4df007(0x18d)]){try{await _0x2dae05();}catch{}}this[_0x4df007(0x858)]=[],this[_0x4df007(0x408)](),this[_0x4df007(0x208)]=!![];}static['createWriteFacade'](_0x669532){const _0x44d6f1=_0xe7c62d;return Object[_0x44d6f1(0x62b)]({'id':_0x669532['id'],'put':_0x669532[_0x44d6f1(0x27f)][_0x44d6f1(0x202)](_0x669532),'update':_0x669532[_0x44d6f1(0x88e)][_0x44d6f1(0x202)](_0x669532),'patch':_0x669532['patch'][_0x44d6f1(0x202)](_0x669532),'create':_0x669532[_0x44d6f1(0x740)][_0x44d6f1(0x202)](_0x669532),'remove':_0x669532[_0x44d6f1(0x42f)][_0x44d6f1(0x202)](_0x669532),'setTTL':_0x669532['setTTL'][_0x44d6f1(0x202)](_0x669532),'clearTTL':_0x669532[_0x44d6f1(0x483)]['bind'](_0x669532),'commit':_0x669532[_0x44d6f1(0x2cd)][_0x44d6f1(0x202)](_0x669532),'rollback':_0x669532['rollback'][_0x44d6f1(0x202)](_0x669532),'get':_0x669532[_0x44d6f1(0x63c)]['bind'](_0x669532),'getEntry':_0x669532[_0x44d6f1(0x2ec)][_0x44d6f1(0x202)](_0x669532),'getMany':_0x669532[_0x44d6f1(0x791)][_0x44d6f1(0x202)](_0x669532),'getRange':_0x669532[_0x44d6f1(0x3fa)][_0x44d6f1(0x202)](_0x669532),'getValues':_0x669532[_0x44d6f1(0x618)][_0x44d6f1(0x202)](_0x669532),'getKeys':_0x669532[_0x44d6f1(0x7d2)]['bind'](_0x669532),'byIndex':_0x669532['byIndex']['bind'](_0x669532),'query':_0x669532[_0x44d6f1(0x665)][_0x44d6f1(0x202)](_0x669532),'getClock':_0x669532[_0x44d6f1(0x45e)][_0x44d6f1(0x202)](_0x669532),'getCount':_0x669532[_0x44d6f1(0x436)][_0x44d6f1(0x202)](_0x669532),'read':_0x669532,'raw':_0x669532});}static[_0xe7c62d(0x36f)](_0x13ffa6,_0x28e536=[]){const _0x1b7ead=_0xe7c62d;if(!Array[_0x1b7ead(0x69e)](_0x28e536))throw new _0x5caa13('txn\x20ops\x20must\x20be\x20an\x20array',_0x1b7ead(0x84b));for(const _0x17c37d of _0x28e536){if(Array['isArray'](_0x17c37d)){const [_0x50b164,..._0x2fef48]=_0x17c37d;if(typeof _0x13ffa6[_0x50b164]!==_0x1b7ead(0x6d8))throw new _0x5caa13('Unknown\x20transaction\x20action:\x20'+_0x50b164,_0x1b7ead(0x700),{'action':_0x50b164});_0x13ffa6[_0x50b164](..._0x2fef48);continue;}if(!_0x17c37d||typeof _0x17c37d!==_0x1b7ead(0x1be))throw new _0x5caa13(_0x1b7ead(0x57c),_0x1b7ead(0x591));const {action:_0x36f7cb}=_0x17c37d;if(typeof _0x36f7cb!=='string'||typeof _0x13ffa6[_0x36f7cb]!==_0x1b7ead(0x6d8))throw new _0x5caa13('Unknown\x20transaction\x20action:\x20'+_0x36f7cb,_0x1b7ead(0x700),{'action':_0x36f7cb});switch(_0x36f7cb){case _0x1b7ead(0x27f):case _0x1b7ead(0x88e):case'create':_0x13ffa6[_0x36f7cb](_0x17c37d[_0x1b7ead(0x673)],_0x17c37d[_0x1b7ead(0x366)],_0x17c37d[_0x1b7ead(0x820)],{..._0x17c37d[_0x1b7ead(0x66a)],'ttl':_0x17c37d[_0x1b7ead(0x463)]??_0x17c37d[_0x1b7ead(0x66a)]?.[_0x1b7ead(0x463)]??null});break;case _0x1b7ead(0x747):_0x13ffa6[_0x1b7ead(0x747)](_0x17c37d[_0x1b7ead(0x673)],_0x17c37d['key'],_0x17c37d[_0x1b7ead(0x747)],{..._0x17c37d['options'],'ttl':_0x17c37d['ttl']??_0x17c37d['options']?.[_0x1b7ead(0x463)]??null});break;case'remove':_0x13ffa6['remove'](_0x17c37d['type'],_0x17c37d[_0x1b7ead(0x366)],_0x17c37d[_0x1b7ead(0x66a)]||{});break;case _0x1b7ead(0x397):_0x13ffa6[_0x1b7ead(0x397)](_0x17c37d[_0x1b7ead(0x673)],_0x17c37d[_0x1b7ead(0x366)],_0x17c37d[_0x1b7ead(0x463)]);break;case _0x1b7ead(0x483):_0x13ffa6[_0x1b7ead(0x483)](_0x17c37d[_0x1b7ead(0x673)],_0x17c37d[_0x1b7ead(0x366)]);break;default:throw new _0x5caa13(_0x1b7ead(0x473)+_0x36f7cb,_0x1b7ead(0x700),{'action':_0x36f7cb});}}}static async[_0xe7c62d(0x22e)](_0x3cfd05,_0x1e519e,_0x48bb6c={}){const _0x276fb5=_0xe7c62d,_0xc72818=new _0x416fef(_0x3cfd05,_0x48bb6c),_0x5a3cf3=_0x416fef['createWriteFacade'](_0xc72818);try{typeof _0x1e519e===_0x276fb5(0x6d8)?await _0x1e519e(_0x5a3cf3):_0x416fef[_0x276fb5(0x36f)](_0xc72818,_0x1e519e||[]);const _0x169945=_0xc72818[_0x276fb5(0x858)][_0x276fb5(0x6cf)];return await _0xc72818[_0x276fb5(0x2cd)](),{'id':_0xc72818['id'],'actions':_0x169945};}catch(_0x29b0a2){try{_0xc72818['rollback']();}catch(_0x52537f){}throw _0x29b0a2;}}}return okdbTransaction=_0x416fef,okdbTransaction;}var dist={},hasRequiredDist;function requireDist(){const _0x2c9387=_0x2ec26e;if(hasRequiredDist)return dist;hasRequiredDist=0x1,Object[_0x2c9387(0x79d)](dist,'__esModule',{'value':!![]});const _0x56c99a=new Float64Array(0x2),_0x2be1b5=new Int32Array(_0x56c99a[_0x2c9387(0x6b6)],0x0,0x4),{lowIdx:_0x31cd05,highIdx:_0x4ea96e}=((()=>{const _0x2b066d=_0x2c9387;if(new Uint8Array(new Uint32Array([0xffee1100])[_0x2b066d(0x6b6)])[0x0]===0xff)return{'lowIdx':0x1,'highIdx':0x0};return{'lowIdx':0x0,'highIdx':0x1};})());let _0x5cec42=![],_0x4ee094;try{_0x4ee094=new TextEncoder();}catch(_0x4084bd){}function _0x34dcc5(_0x274d99,_0x4971b6,position,_0x2781f1){const _0x18259f=_0x2c9387;let _0x1f7273=_0x4971b6['dataView'];if(!_0x1f7273)_0x1f7273=_0x4971b6[_0x18259f(0x2a8)]=new DataView(_0x4971b6[_0x18259f(0x6b6)],_0x4971b6[_0x18259f(0x67f)],_0x4971b6['byteLength']+0x3>>0x2<<0x2);switch(typeof _0x274d99){case _0x18259f(0x4bb):let _0x4cc129=_0x274d99['length'],_0x2e370b=_0x274d99[_0x18259f(0x167)](0x0);if(!(_0x2e370b>=0x1c))_0x4971b6[position++]=0x1b;if(_0x4cc129<0x40){let _0xef5199,_0x154636;for(_0xef5199=0x0;_0xef5199<_0x4cc129;_0xef5199++){_0x2e370b=_0x274d99[_0x18259f(0x167)](_0xef5199);if(_0x2e370b<=0x4)_0x4971b6[position++]=0x4,_0x4971b6[position++]=_0x2e370b;else{if(_0x2e370b<0x80)_0x4971b6[position++]=_0x2e370b;else{if(_0x2e370b<0x800)_0x4971b6[position++]=_0x2e370b>>0x6|0xc0,_0x4971b6[position++]=_0x2e370b&0x3f|0x80;else(_0x2e370b&0xfc00)===0xd800&&((_0x154636=_0x274d99[_0x18259f(0x167)](_0xef5199+0x1))&0xfc00)===0xdc00?(_0x2e370b=0x10000+((_0x2e370b&0x3ff)<<0xa)+(_0x154636&0x3ff),_0xef5199++,_0x4971b6[position++]=_0x2e370b>>0x12|0xf0,_0x4971b6[position++]=_0x2e370b>>0xc&0x3f|0x80,_0x4971b6[position++]=_0x2e370b>>0x6&0x3f|0x80,_0x4971b6[position++]=_0x2e370b&0x3f|0x80):(_0x4971b6[position++]=_0x2e370b>>0xc|0xe0,_0x4971b6[position++]=_0x2e370b>>0x6&0x3f|0x80,_0x4971b6[position++]=_0x2e370b&0x3f|0x80);}}}}else{if(_0x4971b6[_0x18259f(0x581)])position+=_0x4971b6['utf8Write'](_0x274d99,position,_0x4971b6[_0x18259f(0x39c)]-position);else position+=_0x4ee094[_0x18259f(0x6af)](_0x274d99,_0x4971b6[_0x18259f(0x5df)](position))['written'];if(position>_0x4971b6['length']-0x4)throw new RangeError('String\x20does\x20not\x20fit\x20in\x20target\x20buffer');}break;case _0x18259f(0x5c1):_0x56c99a[0x0]=_0x274d99;let _0x1451d0=_0x2be1b5[_0x31cd05],_0x2f436d=_0x2be1b5[_0x4ea96e],_0x38684e;if(_0x274d99<0x0)return _0x1f7273['setInt32'](position+0x4,~(_0x1451d0>>>0x4|_0x2f436d<<0x1c)),_0x1f7273[_0x18259f(0x27d)](position+0x0,(_0x2f436d^0x7fffffff)>>>0x4),_0x1f7273['setInt32'](position+0x8,(_0x1451d0&0xf^0xf)<<0x4,!![]),position+0x9;else{if(_0x1451d0&0xf||_0x2781f1)_0x38684e=0x9;else{if(_0x1451d0&0xfffff)_0x38684e=0x8;else{if(_0x1451d0||_0x2f436d&0xf)_0x38684e=0x6;else _0x38684e=0x4;}}}_0x1f7273[_0x18259f(0x27d)](position+0x0,_0x2f436d>>>0x4|0x10000000),_0x1f7273[_0x18259f(0x27d)](position+0x4,_0x1451d0>>>0x4|_0x2f436d<<0x1c),_0x1f7273['setInt32'](position+0x8,(_0x1451d0&0xf)<<0x4,!![]);return position+_0x38684e;case'object':if(_0x274d99){if(Array[_0x18259f(0x69e)](_0x274d99)){for(let _0x353061=0x0,_0x404505=_0x274d99[_0x18259f(0x6cf)];_0x353061<_0x404505;_0x353061++){if(_0x353061>0x0)_0x4971b6[position++]=0x0;position=_0x34dcc5(_0x274d99[_0x353061],_0x4971b6,position,!![]);}break;}else{if(_0x274d99 instanceof Uint8Array){_0x4971b6[_0x18259f(0x328)](_0x274d99,position),position+=_0x274d99[_0x18259f(0x6cf)];break;}else throw new Error(_0x18259f(0x782)+JSON[_0x18259f(0x4d2)](_0x274d99));}}else _0x4971b6[position++]=0x0;break;case'boolean':_0x1f7273[_0x18259f(0x592)](position++,_0x274d99?0x7:0x6,!![]);return position;case _0x18259f(0x347):let _0x467c5=Number(_0x274d99);if(BigInt(_0x467c5)>_0x274d99){_0x56c99a[0x0]=_0x467c5;if(_0x467c5>0x0){if(_0x2be1b5[_0x31cd05])_0x2be1b5[_0x31cd05]--;else _0x2be1b5[_0x4ea96e]--,_0x2be1b5[_0x31cd05]=0xffffffff;}else{if(_0x2be1b5[_0x31cd05]<0xffffffff)_0x2be1b5[_0x31cd05]++;else _0x2be1b5[_0x4ea96e]++,_0x2be1b5[_0x31cd05]=0x0;}_0x467c5=_0x56c99a[0x0];}let _0x561dcf=_0x274d99-BigInt(_0x467c5);if(_0x561dcf===0x0n)return _0x34dcc5(_0x467c5,_0x4971b6,position,_0x2781f1);_0x34dcc5(_0x467c5,_0x4971b6,position,_0x2781f1),position+=0x9;let _0x57d31b=BigInt((_0x2be1b5[_0x4ea96e]>>0x14&0x7ff)-0x437),_0x29961b=_0x561dcf>>_0x57d31b;_0x4971b6[position-0x1]|=Number(_0x29961b),_0x561dcf-=_0x29961b<<_0x57d31b;let _0x3b148e=!![];while(_0x561dcf||_0x3b148e){_0x3b148e=![],_0x57d31b-=0x7n;let _0x286728=_0x561dcf>>_0x57d31b;_0x4971b6[position++]=Number(_0x286728)|0x80,_0x561dcf-=_0x286728<<_0x57d31b;}return position;case _0x18259f(0x809):return position;case _0x18259f(0x856):_0x4971b6[position++]=0x2;return _0x34dcc5(_0x274d99['description'],_0x4971b6,position,_0x2781f1);default:throw new Error(_0x18259f(0x862)+typeof _0x274d99);}if(_0x5cec42&&!_0x2781f1)_0x1f7273[_0x18259f(0x592)](position,0x0);return position;}let position;function _0x4cd41b(_0x27b416,_0x5e6b64,_0x287532,_0x3a1059){const _0x2486e7=_0x2c9387;position=_0x5e6b64;let _0x556cef=_0x27b416[position],_0x5a59f6;if(_0x556cef<0x18){if(_0x556cef<0x8){position++;if(_0x556cef==0x6)_0x5a59f6=![];else{if(_0x556cef==0x7)_0x5a59f6=!![];else{if(_0x556cef==0x0)_0x5a59f6=null;else{if(_0x556cef==0x2)_0x5a59f6=Symbol['for'](_0x3a3bec(_0x27b416,_0x287532));else return Uint8Array['prototype']['slice'][_0x2486e7(0x853)](_0x27b416,_0x5e6b64,_0x287532);}}}}else{let _0x369a53;try{_0x369a53=_0x27b416[_0x2486e7(0x2a8)]||(_0x27b416[_0x2486e7(0x2a8)]=new DataView(_0x27b416['buffer'],_0x27b416[_0x2486e7(0x67f)],_0x27b416[_0x2486e7(0x39c)]+0x3>>0x2<<0x2));}catch(_0x5d6785){_0x369a53=_0x27b416[_0x2486e7(0x2a8)]||(_0x27b416[_0x2486e7(0x2a8)]=new DataView(_0x27b416[_0x2486e7(0x6b6)],_0x27b416[_0x2486e7(0x67f)],_0x27b416[_0x2486e7(0x6b6)]['byteLength']-_0x27b416[_0x2486e7(0x67f)]));}let _0x583548=_0x369a53[_0x2486e7(0x46a)](position)<<0x4,_0x1b65aa=_0x287532-position,_0x5e7c54;if(_0x1b65aa>0x4)_0x5e7c54=position+0x8<=_0x27b416[_0x2486e7(0x6cf)]?_0x369a53[_0x2486e7(0x46a)](position+0x4):_0x27b416[position+0x4]<<0x18|_0x27b416[position+0x5]<<0x10|_0x27b416[position+0x6]<<0x8|_0x27b416[position+0x7],_0x583548|=_0x5e7c54>>>0x1c,_0x1b65aa<=0x6&&(_0x5e7c54&=-0x10000),_0x5e7c54=_0x5e7c54<<0x4,_0x1b65aa>0x8&&(_0x5e7c54=_0x5e7c54|_0x27b416[position+0x8]>>0x4);else _0x5e7c54=0x0;_0x556cef<0x10&&(_0x583548=_0x583548^0x7fffffff,_0x5e7c54=~_0x5e7c54);_0x2be1b5[_0x4ea96e]=_0x583548,_0x2be1b5[_0x31cd05]=_0x5e7c54,_0x5a59f6=_0x56c99a[0x0],position+=0x9;if(_0x1b65aa>0x9&&_0x27b416[position]>0x0){_0x5a59f6=BigInt(_0x5a59f6);let _0x5e83de=_0x583548>>0x14&0x7ff,_0x33b36e=_0x27b416[position-0x1]&0xf;_0x5a59f6+=BigInt(_0x33b36e)<<BigInt(_0x5e83de-0x437);while((_0x33b36e=_0x27b416[position])>0x0&&position++<_0x287532){_0x5a59f6+=BigInt(_0x33b36e&0x7f)<<BigInt((_0x5e6b64-position)*0x7+_0x5e83de-0x3f8);}}}}else{_0x556cef==0x1b&&position++;_0x5a59f6=_0x3a3bec(_0x27b416,_0x287532);if(position<_0x287532)position--;}while(position<_0x287532){if(_0x27b416[position]===0x0)position++;if(_0x3a1059)return _0x3fa388['position']=position,_0x5a59f6;let _0x9fd8f1=_0x4cd41b(_0x27b416,position,_0x287532,!![]);if(_0x5a59f6 instanceof Array)_0x5a59f6['push'](_0x9fd8f1);else _0x5a59f6=[_0x5a59f6,_0x9fd8f1];}return _0x5a59f6;}const _0x5819fe=()=>_0x5cec42=!![],_0x3fa388={'writeKey':_0x34dcc5,'readKey':_0x4cd41b,'enableNullTermination':_0x5819fe};let _0xb00fbc=[],_0x16e628=0x0;const _0x44d3c6=typeof Buffer!==_0x2c9387(0x809),_0x1862cb=_0x44d3c6?Buffer[_0x2c9387(0x73c)]:Uint8Array,_0x163de0=_0x2c7ff0=>{const _0x1fd247=_0x2c9387;let _0xb64b81;_0x16e628+0x64>_0xb00fbc[_0x1fd247(0x6cf)]&&(_0xb00fbc=new _0x1862cb(0x2000),_0x16e628=0x0,_0xb64b81=!![]);try{let _0x3cc355=_0xb00fbc[_0x1fd247(0x5ca)](_0x16e628,_0x16e628=_0x34dcc5(_0x2c7ff0,_0xb00fbc,_0x16e628));if(_0x16e628>_0xb00fbc[_0x1fd247(0x6cf)]){if(_0xb64b81)throw new Error(_0x1fd247(0x5fc));return _0x163de0(_0x2c7ff0);}return _0x3cc355;}catch(_0x33fda3){if(_0xb64b81)throw _0x33fda3;return _0x16e628=_0xb00fbc['length'],_0x163de0(_0x2c7ff0);}},_0x2130e7=_0x366e8a=>{const _0x4b9d96=_0x2c9387;return _0x4cd41b(_0x366e8a,0x0,_0x366e8a[_0x4b9d96(0x6cf)]);},fromCharCode=String[_0x2c9387(0x71e)];function _0x4e1d0d(){const _0x1310d9=_0x2c9387;let _0x3320cd=_0x1310d9(0x726),_0x36f201=[];for(let _0x454fa7=0x0;_0x454fa7<0x30;_0x454fa7++){let _0x1ec098=fromCharCode((_0x454fa7&0xf)+0x61)+fromCharCode((_0x454fa7>>0x4)+0x61);_0x3320cd+=_0x1310d9(0x246)+_0x1ec098+_0x1310d9(0x524)+_0x1ec098+_0x1310d9(0x40a)+_0x1ec098+_0x1310d9(0x30f)+_0x1ec098+_0x1310d9(0x2db)+_0x1ec098+_0x1310d9(0x765)+_0x1ec098+_0x1310d9(0x3bb)+_0x1ec098+_0x1310d9(0x4ae)+_0x36f201+_0x1310d9(0x43d),_0x36f201[_0x1310d9(0x2fb)](_0x1ec098);}return _0x3320cd+=_0x1310d9(0x72f)+_0x36f201+_0x1310d9(0x7f1),_0x3320cd;}const readString=typeof process!==_0x2c9387(0x809)&&process[_0x2c9387(0x4f5)]?function(_0xeb9957){let {setPosition:_0x4bba18,getPosition:_0x4865d5,readString:readString}=_0xeb9957;return _0x539ba9=>{_0x4bba18(position);let _0x20665d=readString(_0x539ba9);return position=_0x4865d5(),_0x20665d;};}(new Function(_0x2c9387(0x71e),'let\x20position;\x20let\x20readString\x20=\x20'+_0x4e1d0d()+_0x2c9387(0x701)+_0x2c9387(0x434)+_0x2c9387(0x2a2)+_0x2c9387(0x85a))(fromCharCode)):eval(_0x4e1d0d());function _0x3a3bec(_0x3d1967,_0x4fefcf){if(_0x3d1967[_0x4fefcf]>0x0){let _0xa50deb=_0x3d1967[_0x4fefcf];try{return _0x3d1967[_0x4fefcf]=0x0,readString(_0x3d1967);}finally{_0x3d1967[_0x4fefcf]=_0xa50deb;}}else return readString(_0x3d1967);}function _0x571fb4(_0x123d6f,_0x5249a1){const _0x583eda=_0x2c9387;if(typeof _0x123d6f=='object'){if(!_0x123d6f)return _0x5249a1==null?0x0:-0x1;if(_0x123d6f[_0x583eda(0x3f5)]){if(_0x5249a1==null)return 0x1;else return _0x5249a1[_0x583eda(0x3f5)]?_0x123d6f['compare'](_0x5249a1):-0x1;}let _0x2d4dfc;if(_0x5249a1 instanceof Array){let _0x5a5c1e=0x0;while((_0x2d4dfc=_0x571fb4(_0x123d6f[_0x5a5c1e],_0x5249a1[_0x5a5c1e]))==0x0&&_0x5a5c1e<=_0x123d6f[_0x583eda(0x6cf)]){_0x5a5c1e++;}return _0x2d4dfc;}_0x2d4dfc=_0x571fb4(_0x123d6f[0x0],_0x5249a1);if(_0x2d4dfc==0x0&&_0x123d6f[_0x583eda(0x6cf)]>0x1)return 0x1;return _0x2d4dfc;}else{if(typeof _0x123d6f==typeof _0x5249a1)return typeof _0x123d6f===_0x583eda(0x856)&&(_0x123d6f=Symbol['keyFor'](_0x123d6f),_0x5249a1=Symbol[_0x583eda(0x72c)](_0x5249a1)),_0x123d6f<_0x5249a1?-0x1:_0x123d6f===_0x5249a1?0x0:0x1;else{if(typeof _0x5249a1==_0x583eda(0x1be)){if(_0x5249a1 instanceof Array)return-_0x571fb4(_0x5249a1,_0x123d6f);return 0x1;}else return _0x5524a9[typeof _0x123d6f]<_0x5524a9[typeof _0x5249a1]?-0x1:0x1;}}}const _0x5524a9={'symbol':0x0,'undefined':0x1,'boolean':0x2,'number':0x3,'string':0x4},_0x38c910=null,_0x4a60e6=new Uint8Array([0xff]);return dist[_0x2c9387(0x1e9)]=_0x4a60e6,dist[_0x2c9387(0x6f1)]=_0x38c910,dist[_0x2c9387(0x4ad)]=_0x571fb4,dist[_0x2c9387(0x3c3)]=_0x5819fe,dist[_0x2c9387(0x227)]=_0x3fa388,dist[_0x2c9387(0x187)]=_0x2130e7,dist[_0x2c9387(0x5ad)]=_0x4cd41b,dist[_0x2c9387(0x310)]=_0x163de0,dist[_0x2c9387(0x417)]=_0x34dcc5,dist;}var keyenc,hasRequiredKeyenc;function requireKeyenc(){const _0x1ddc9d=_0x2ec26e;if(hasRequiredKeyenc)return keyenc;hasRequiredKeyenc=0x1;const {writeKey:_0x4a8e3b}=requireDist(),_0x23a82d=0x7ba,_0x1f378a=0x1000;function _0x3a6073(_0x42060c,_0x1ce593){const _0x340139=_0x3ebb;switch(typeof _0x42060c){case'string':return _0x42060c[_0x340139(0x6cf)]<=_0x23a82d&&_0x42060c[_0x340139(0x4c7)]();case _0x340139(0x5c1):case _0x340139(0x84f):return!![];case _0x340139(0x1be):if(_0x42060c===null)return!![];if(Array['isArray'](_0x42060c)){if(_0x1ce593>0x8||_0x42060c[_0x340139(0x6cf)]>_0x23a82d)return![];for(let _0x13232f=0x0;_0x13232f<_0x42060c[_0x340139(0x6cf)];_0x13232f++)if(!_0x3a6073(_0x42060c[_0x13232f],_0x1ce593+0x1))return![];return!![];}return Buffer[_0x340139(0x292)](_0x42060c)&&_0x42060c[_0x340139(0x6cf)]<=_0x23a82d;default:return![];}}function _0x2f508a(_0x3b21f6,_0xb8bab6){const _0x51afc7=_0x3ebb,_0x25235a=typeof _0x3b21f6;if(_0x25235a===_0x51afc7(0x4bb)){if(_0x3b21f6[_0x51afc7(0x6cf)]>=0x40||!_0x3b21f6[_0x51afc7(0x4c7)]()){if(!_0x3a6073(_0x3b21f6,0x0))return-0x1;}}else{if(_0x25235a!==_0x51afc7(0x5c1)){if(Array[_0x51afc7(0x69e)](_0x3b21f6)?_0x3b21f6[_0x51afc7(0x6cf)]===0x0||!_0x3a6073(_0x3b21f6,0x0):!_0x3a6073(_0x3b21f6,0x0))return-0x1;}}let _0x3ec85a;try{_0x3ec85a=_0x4a8e3b(_0x3b21f6,_0xb8bab6,0x0);}catch{return-0x1;}return _0x3ec85a>0x0&&_0x3ec85a<=_0x23a82d?_0x3ec85a:-0x1;}return keyenc={'encodeKey':_0x2f508a,'KEY_BUF_SIZE':_0x1f378a,'NO_FAST':Symbol(_0x1ddc9d(0x20d))},keyenc;}var okdbHlc,hasRequiredOkdbHlc;function requireOkdbHlc(){const _0x4fefc7=_0x2ec26e;if(hasRequiredOkdbHlc)return okdbHlc;hasRequiredOkdbHlc=0x1;const _0x3d9d4c=0x400,_0x2587d4=_0x3d9d4c-0x1,_0x3356e=0xea60;function _0x5e5568(_0xc27d7e,_0x4af709){const _0x4f3370=_0x3ebb;return _0xc27d7e*_0x3d9d4c+Math[_0x4f3370(0x3e7)](0x0,Math[_0x4f3370(0x5a9)](_0x4af709,_0x2587d4));}function _0x36a9eb(_0x111d09){const _0x17ddb7=_0x3ebb,_0x182a56=Math[_0x17ddb7(0x3e7)](0x0,Number(_0x111d09)||0x0),_0x39be75=_0x182a56%_0x3d9d4c,_0x172343=(_0x182a56-_0x39be75)/_0x3d9d4c;return{'pt':_0x172343,'l':_0x39be75};}function _0x32783b(_0x171dbd,_0x324aae=Date['now']()){const _0x457dba=_0x3ebb,{pt:_0x1471b1,l:_0x5252e3}=_0x36a9eb(_0x171dbd),_0x2d4a73=Math[_0x457dba(0x3e7)](_0x1471b1,_0x324aae),_0x311ac9=_0x2d4a73===_0x1471b1?Math[_0x457dba(0x5a9)](_0x5252e3+0x1,_0x2587d4):0x0;return _0x5e5568(_0x2d4a73,_0x311ac9);}function _0x4574e0(_0x427bc7,_0x3ec9af,_0x59a8ac=Date[_0x4fefc7(0x89e)]()){const _0x398912=_0x4fefc7,{pt:_0x4af231,l:_0x4a4636}=_0x36a9eb(_0x427bc7),{pt:_0x2de5ac,l:_0x2befa9}=_0x36a9eb(_0x3ec9af),_0x5ab046=Math[_0x398912(0x3e7)](_0x4af231,_0x2de5ac,_0x59a8ac);let _0x384f87;if(_0x5ab046===_0x4af231&&_0x5ab046===_0x2de5ac)_0x384f87=Math['min'](Math[_0x398912(0x3e7)](_0x4a4636,_0x2befa9)+0x1,_0x2587d4);else{if(_0x5ab046===_0x4af231)_0x384f87=Math[_0x398912(0x5a9)](_0x4a4636+0x1,_0x2587d4);else _0x5ab046===_0x2de5ac?_0x384f87=Math['min'](_0x2befa9+0x1,_0x2587d4):_0x384f87=0x0;}return _0x5e5568(_0x5ab046,_0x384f87);}function _0x4951a9(_0x555372,_0x245dc3){const _0x390b94=Number(_0x555372)||0x0,_0x548036=Number(_0x245dc3)||0x0;if(_0x390b94<_0x548036)return-0x1;if(_0x390b94>_0x548036)return 0x1;return 0x0;}function _0x51d68f(_0x3472b6){return _0x36a9eb(_0x3472b6)['pt'];}return okdbHlc={'send':_0x32783b,'recv':_0x4574e0,'compare':_0x4951a9,'toMs':_0x51d68f,'encode':_0x5e5568,'decode':_0x36a9eb,'SCALE':_0x3d9d4c,'L_MAX':_0x2587d4,'DRIFT_MAX':_0x3356e},okdbHlc;}var env,hasRequiredEnv;function requireEnv(){const _0x1b2b60=_0x2ec26e;if(hasRequiredEnv)return env;hasRequiredEnv=0x1;const {fromArray:_0x1a3ff7,chunkedRange:_0x5b4174,pinnedChunks:_0x247861,claimPrefetch:_0x3c513c}=requireIterable(),{reclass:_0x5c76fc,NotImplementedNative:_0xcec407,OKDBError:_0x45c9f2,optionsArg:_0x4ad11c}=requireErrors(),{OKDBViews:_0x333950}=requireViews(),{OKDBQueue:_0xe65900}=requireQueue(),{OKDBTimeMachine:_0x678cf4}=requireTimemachine(),_0x5a43a6=_0x16a7e5=>{const _0x8a959c=_0x3ebb;try{return!_0x16a7e5[_0x8a959c(0x89d)]||_0x16a7e5['_license']['isFeatureEnabled'](_0x8a959c(0x54d));}catch{return!![];}},{OKDBFiles:_0x163ded}=requireFiles(),{OKDBEngines:_0x34352e,OKDBPipelines:_0x4ed038}=requireEngines(),{OKDBFunctions:_0x268fb7}=requireFunctions(),_0x129065=requireProcessor(),{RawDb:_0x27cb06}=requireRawdb(),_0x5bf56f=requireBridge();let _0x5c983d=null;const _0x571000=()=>_0x5c983d||=requireOkdbTransaction(),_0x37b436=(..._0x54b7ac)=>requireOkdbGuardedRange()[_0x1b2b60(0x7ef)](..._0x54b7ac),_0x594408=Buffer[_0x1b2b60(0x170)]([0xff]),_0x3232f1=process.env.OKDB_NATIVE_RAW_READS!=='0',_0x59bda7=_0x3232f1&&process.env.OKDB_NATIVE_FAST_GET!=='0',{NO_FAST:_0x14ec1a}=requireKeyenc(),_0x15ed6c=new Set(_0x3232f1?['getRange',_0x1b2b60(0x2c0),_0x1b2b60(0x665),_0x1b2b60(0x267),_0x1b2b60(0x7d2)]:[]),_0x13a945=new Set(['get','getEntry',_0x1b2b60(0x791),_0x1b2b60(0x3fa),_0x1b2b60(0x7d2),_0x1b2b60(0x618),_0x1b2b60(0x436),_0x1b2b60(0x587),_0x1b2b60(0x606),_0x1b2b60(0x2c0),_0x1b2b60(0x490),'query',_0x1b2b60(0x32d),_0x1b2b60(0x181),_0x1b2b60(0x45e),_0x1b2b60(0x267),_0x1b2b60(0x3c2),'now','hasType',_0x1b2b60(0x6a4),_0x1b2b60(0x2d8),_0x1b2b60(0x2ef),_0x1b2b60(0x7ec),_0x1b2b60(0x2dd),_0x1b2b60(0x58d),'getUniqueViolations',_0x1b2b60(0x7e9),_0x1b2b60(0x4ee),_0x1b2b60(0x2d0),_0x1b2b60(0x2e7),_0x1b2b60(0x210),'getRefViolation','listRefViolations',_0x1b2b60(0x329),_0x1b2b60(0x5cc),_0x1b2b60(0x81b),'getDefaultTTL',_0x1b2b60(0x6fe),'path','id',_0x1b2b60(0x497),'hlc','resolvedFields',_0x1b2b60(0x513),_0x1b2b60(0x89f)]),_0x38aec6=new Set([_0x1b2b60(0x898),_0x1b2b60(0x330),_0x1b2b60(0x718),_0x1b2b60(0x695),_0x1b2b60(0x534),_0x1b2b60(0x6cd),_0x1b2b60(0x7ea),'versions','values','snapshot',_0x1b2b60(0x7f7),_0x1b2b60(0x366),_0x1b2b60(0x6b9),_0x1b2b60(0x575)]);function _0x23abb4(_0x4b51af,_0x49f6c7,_0xdbc404){const _0x439d2e=new Map();return(_0x58a694,_0x208b78)=>{const _0x22ebae=_0x3ebb,_0x2eee5d=JSON['stringify'](_0x208b78),_0x40224f=_0x439d2e[_0x22ebae(0x63c)](_0x2eee5d);if(_0x40224f){if(_0x40224f[_0x22ebae(0x41c)]===_0x22ebae(0x35d))throw _0x3ba523();_0x439d2e[_0x22ebae(0x82f)](_0x2eee5d);if(_0x40224f[_0x22ebae(0x41c)]==='err')throw _0x40224f[_0x22ebae(0x820)];return _0x40224f[_0x22ebae(0x820)];}const _0x58074f=_0x58a694(..._0x208b78);if(!_0x58074f||typeof _0x58074f[_0x22ebae(0x2b0)]!=='function')return _0x58074f;const _0x23d408={'state':_0x22ebae(0x35d),'value':undefined},_0x5f0be8=(_0x3f1832,_0x50141a)=>{const _0x1c33e2=_0x22ebae;_0x23d408[_0x1c33e2(0x41c)]=_0x3f1832,_0x23d408[_0x1c33e2(0x820)]=_0x50141a;if(_0x439d2e[_0x1c33e2(0x63c)](_0x2eee5d)!==_0x23d408)return;setTimeout(()=>_0x439d2e[_0x1c33e2(0x63c)](_0x2eee5d)===_0x23d408&&_0x439d2e[_0x1c33e2(0x82f)](_0x2eee5d),0x7530)[_0x1c33e2(0x702)]();try{_0x4b51af[_0x1c33e2(0x21e)]['_call'](_0x1c33e2(0x29a),null,'emit',[_0x1c33e2(0x251),{'env':_0x4b51af['name'],'type':_0x49f6c7,'field':_0xdbc404}],!![]);}catch{}};_0x58074f['then'](_0x4473ac=>_0x5f0be8('ok',_0x4473ac),_0x71c2da=>_0x5f0be8('err',_0x71c2da));for(let _0x12c2cb=0x0;_0x12c2cb<0x64&&_0x23d408[_0x22ebae(0x41c)]===_0x22ebae(0x35d);_0x12c2cb++)process['_tickCallback']();if(_0x23d408[_0x22ebae(0x41c)]==='ok')return _0x23d408[_0x22ebae(0x820)];if(_0x23d408[_0x22ebae(0x41c)]==='err')throw _0x23d408['value'];_0x439d2e['set'](_0x2eee5d,_0x23d408);throw _0x3ba523();};}function _0x3ba523(){const _0x1954be=_0x1b2b60;return Object[_0x1954be(0x76f)](new Error(_0x1954be(0x65a)),{'code':_0x1954be(0x1ea)});}class _0x4dc0fd{constructor(_0x51b8ff,_0x57f95b){const _0x964c4d=_0x1b2b60;this[_0x964c4d(0x21e)]=_0x51b8ff,this['name']=_0x57f95b,this['events']=_0x51b8ff['events'],this[_0x964c4d(0x793)]=_0x51b8ff[_0x964c4d(0x793)],this[_0x964c4d(0x60a)]=!![],this[_0x964c4d(0x62f)]=null,this[_0x964c4d(0x62a)]=new _0x333950(this),this['processor']=new _0x129065(this);if(!_0x57f95b[_0x964c4d(0x6c8)]('~')||_0x57f95b[_0x964c4d(0x1ac)](':emb:'))this[_0x964c4d(0x601)]=new _0xe65900(this);if(!_0x57f95b['startsWith']('~'))this[_0x964c4d(0x6be)]=new _0x163ded(this);this[_0x964c4d(0x762)]=new _0x268fb7(_0x51b8ff,_0x57f95b),this[_0x964c4d(0x1a5)]=new _0x34352e(_0x51b8ff,_0x57f95b,_0x51b8ff[_0x964c4d(0x1a5)]),this['pipelines']=new _0x4ed038(_0x51b8ff,_0x57f95b);if(!_0x57f95b[_0x964c4d(0x6c8)]('~')&&_0x51b8ff[_0x964c4d(0x66a)]['timeMachine']&&_0x5a43a6(_0x51b8ff))this['timeMachine']=new _0x678cf4(this);_0x5bf56f['registerEnv'](this[_0x964c4d(0x39d)],this);const _0x409b54=this;this[_0x964c4d(0x291)]={async 'transaction'(_0x26606c){const _0x20ac3f=_0x964c4d,_0x38e50c=[];_0x409b54['_txnBuf']=_0x38e50c;try{_0x26606c();}finally{_0x409b54[_0x20ac3f(0x62f)]=null;}return _0x409b54[_0x20ac3f(0x21e)]['_wb']['enqueue'](_0x20ac3f(0x30b),_0x409b54[_0x20ac3f(0x6fe)],_0x20ac3f(0x2cd),[_0x38e50c]);},'drain'(){const _0x2140a2=_0x964c4d;return _0x409b54[_0x2140a2(0x21e)][_0x2140a2(0x53b)]['drain']();},'flushLmdb'(){const _0x2affad=_0x964c4d;return _0x409b54[_0x2affad(0x21e)][_0x2affad(0x53b)][_0x2affad(0x56b)]();},'markClosed'(){}};const _0x627aa1=new _0x27cb06(this,'');_0x627aa1[_0x964c4d(0x7fd)]=()=>({'lastTxnId':this['_n'](_0x964c4d(0x497),[])}),Object[_0x964c4d(0x79d)](_0x627aa1,_0x964c4d(0x3ce),{'get':()=>this[_0x964c4d(0x21e)][_0x964c4d(0x53b)][_0x964c4d(0x56b)](),'configurable':!![]}),Object[_0x964c4d(0x79d)](_0x627aa1,_0x964c4d(0x624),{'get':()=>this[_0x964c4d(0x21e)][_0x964c4d(0x53b)][_0x964c4d(0x56b)](),'configurable':!![]});const _0x432565=_0x627aa1[_0x964c4d(0x63c)]['bind'](_0x627aa1);_0x627aa1[_0x964c4d(0x63c)]=_0x1c3b49=>_0x1c3b49===_0x964c4d(0x4d8)?this['_n'](_0x964c4d(0x45e),[null]):_0x432565(_0x1c3b49),this['db']=_0x627aa1;}async['close'](){const _0x507128=_0x1b2b60;this[_0x507128(0x7ba)]=!![];}get[_0x1b2b60(0x789)](){const _0x4b9841=_0x1b2b60;return new Map(this[_0x4b9841(0x21e)][_0x4b9841(0x49e)]('db',null,'formerOrigins',[this[_0x4b9841(0x6fe)]],![]));}get['typesDb'](){const _0x2d0133=_0x1b2b60;return this[_0x2d0133(0x884)]||(this['_typesDb']=new _0x27cb06(this,_0x2d0133(0x50b)));}[_0x1b2b60(0x4e7)](_0x182ccc){const _0x3832e6=_0x1b2b60,_0x3abe12=this[_0x3832e6(0x779)][_0x3832e6(0x63c)](_0x182ccc);if(_0x3abe12===undefined||String(_0x182ccc)[_0x3832e6(0x6c8)]('~fts:')||String(_0x182ccc)[_0x3832e6(0x6c8)](_0x3832e6(0x491))){const {OKDBError:_0x3f53a3}=requireErrors();throw new _0x3f53a3('Type\x20\x22'+_0x182ccc+_0x3832e6(0x63a),_0x3832e6(0x249),{'type':_0x182ccc});}const _0x397fbb=this,_0x3b09d6=new _0x27cb06(_0x397fbb,_0x3832e6(0x257)+_0x182ccc+_0x3832e6(0x7bd)),_0x3a9b2c=new Map();for(const _0x1f1508 of _0x3b09d6[_0x3832e6(0x7d2)]()){const _0x150c33=_0x3b09d6['get'](_0x1f1508)||{},_0x26fb39={'parts':_0x1f1508['split']('~'),'db':new _0x27cb06(_0x397fbb,'type:'+_0x182ccc+':index:'+_0x1f1508,{'dupSort':!![]})};if(_0x150c33[_0x3832e6(0x1e4)])_0x26fb39[_0x3832e6(0x1e4)]=_0x150c33[_0x3832e6(0x1e4)];if(_0x150c33['unique'])_0x26fb39[_0x3832e6(0x234)]=!![];if(_0x150c33['sparse'])_0x26fb39[_0x3832e6(0x7b3)]=!![];if(_0x150c33[_0x3832e6(0x28d)])_0x26fb39[_0x3832e6(0x28d)]=_0x150c33[_0x3832e6(0x28d)];_0x26fb39[_0x3832e6(0x875)]=new Set((_0x150c33[_0x3832e6(0x875)]??[])['map'](_0x576718=>_0x576718[_0x3832e6(0x233)]+':'+_0x576718[_0x3832e6(0x6fe)])),_0x3a9b2c[_0x3832e6(0x328)](_0x1f1508,_0x26fb39);}return{'root':new _0x27cb06(_0x397fbb,'type:'+_0x182ccc),'data':new _0x27cb06(_0x397fbb,'type:'+_0x182ccc+_0x3832e6(0x5eb),{'useVersions':!![]}),'indexes':_0x3b09d6,'clockToChange':new _0x27cb06(_0x397fbb,'type:'+_0x182ccc+':clockToChange'),'keyToChange':new _0x27cb06(_0x397fbb,_0x3832e6(0x257)+_0x182ccc+_0x3832e6(0x4b6)),'fieldSchema':new Map(Object[_0x3832e6(0x72a)](_0x3abe12['fields']||{})['map'](([_0x510b60,_0x47c9e9])=>[_0x510b60,new Set(Array['isArray'](_0x47c9e9)?_0x47c9e9:[_0x47c9e9])])),'indexToDb':_0x3a9b2c,'ftsToDb':null,'schema':_0x3abe12[_0x3832e6(0x2d4)]||null,'defaultTTL':_0x3abe12['defaultTTL']||null};}get[_0x1b2b60(0x775)](){const _0x6e4b90=_0x1b2b60,_0x32eada=this,_0x47c0c7=()=>_0x32eada['listTypes']();return{'get':_0x4453d5=>{const _0x423e3f=_0x3ebb;try{return _0x32eada[_0x423e3f(0x4e7)](_0x4453d5);}catch{return undefined;}},'has':_0x3485ac=>_0x47c0c7()[_0x6e4b90(0x1ac)](_0x3485ac),'keys':()=>_0x47c0c7()[Symbol['iterator']](),get 'size'(){const _0x910eb8=_0x6e4b90;return _0x47c0c7()[_0x910eb8(0x6cf)];}};}['_typeKeys'](){return this['listTypes']();}get[_0x1b2b60(0x6e9)](){const _0x55206e=_0x1b2b60;return this[_0x55206e(0x375)]||(this[_0x55206e(0x375)]=new _0x27cb06(this,_0x55206e(0x36a)));}get[_0x1b2b60(0x399)](){return this['_clockToChangeDb']||(this['_clockToChangeDb']=new _0x27cb06(this,'clocks'));}[_0x1b2b60(0x58f)](_0x1b3faa){const _0x56e3d1=_0x1b2b60;return this['_n'](_0x56e3d1(0x76c),[_0x1b3faa]);}get[_0x1b2b60(0x79e)](){const _0x5db1e3=_0x1b2b60;return!this['_n'](_0x5db1e3(0x5a3),[],![]);}get['_sync'](){const _0x4d46c4=_0x1b2b60;return this[_0x4d46c4(0x25a)]!==undefined?this[_0x4d46c4(0x25a)]:this['_n']('hasChangelog',[],![]);}set[_0x1b2b60(0x845)](_0x1c304d){const _0x4c10b6=_0x1b2b60;this[_0x4c10b6(0x25a)]=_0x1c304d;}get[_0x1b2b60(0x7b4)](){const _0x49ecb3=_0x1b2b60;return this[_0x49ecb3(0x28f)]||(this[_0x49ecb3(0x28f)]=new(requireLock())[(_0x49ecb3(0x828))](this[_0x49ecb3(0x21e)],_0x49ecb3(0x8a3),_0x49ecb3(0x2ab),{'ttlMs':0xea60}));}get[_0x1b2b60(0x39d)](){const _0x4ccf9d=_0x1b2b60;return this[_0x4ccf9d(0x5bf)]??(this[_0x4ccf9d(0x5bf)]=this['_n'](_0x4ccf9d(0x39d),[]));}get['id'](){return this['_n']('id',[]);}get['role'](){const _0x196ac0=_0x1b2b60;return this[_0x196ac0(0x21e)][_0x196ac0(0x437)];}['_n'](_0x110764,_0x1d5730){const _0x39e3e7=_0x1b2b60;return this['okdb']['_call'](_0x39e3e7(0x30b),this[_0x39e3e7(0x6fe)],_0x110764,_0x1d5730,!_0x13a945['has'](_0x110764));}[_0x1b2b60(0x7d8)](_0x1a497c){const _0x438439=_0x1b2b60;return this[_0x438439(0x21e)][_0x438439(0x55c)](_0x1a497c);}[_0x1b2b60(0x6f8)](_0x5a1dda,_0x4591c2){const _0x1dc1fe=_0x1b2b60;if(_0x15ed6c[_0x1dc1fe(0x51e)](_0x5a1dda==='pinned'?_0x4591c2[0x1]:_0x5a1dda))return this[_0x1dc1fe(0x21e)][_0x1dc1fe(0x39e)](this[_0x1dc1fe(0x6fe)],_0x5a1dda,_0x4591c2);return this['okdb'][_0x1dc1fe(0x270)]('env',this[_0x1dc1fe(0x6fe)],_0x5a1dda,_0x4591c2);}[_0x1b2b60(0x7f7)](_0x252b2c={'useReadTransaction':![]}){return new(_0x571000())(this,_0x252b2c);}async[_0x1b2b60(0x27c)](_0x133659,_0x513b1d){return _0x571000()['run'](this,_0x133659,_0x513b1d);}['_low'](_0x4180b,_0x367b53){const _0x3460f0=_0x1b2b60;if(this[_0x3460f0(0x62f)])this['_txnBuf'][_0x3460f0(0x2fb)]({'action':_0x4180b,'args':_0x367b53});else this['_n'](_0x4180b,_0x367b53);}[_0x1b2b60(0x386)](_0x57db04,_0x52fb20,_0x3ea2a3,_0x38584c,_0x52b0b7){const _0xc8380e=_0x1b2b60;this['_low'](_0xc8380e(0x27f),[_0x52fb20,_0x3ea2a3,_0x38584c,_0x52b0b7]);}[_0x1b2b60(0x7a6)](_0x53aa8f,_0x139b08,_0xe4b0e,_0x56f0bc,_0x428c18){const _0x14eb87=_0x1b2b60;this[_0x14eb87(0x335)](_0x14eb87(0x88e),[_0x139b08,_0xe4b0e,_0x56f0bc,_0x428c18]);}[_0x1b2b60(0x7d7)](_0x50cbcd,_0x173c9c,_0x12a9cd,_0x229147,_0x4e4b80){const _0x155534=_0x1b2b60;this[_0x155534(0x335)](_0x155534(0x747),[_0x173c9c,_0x12a9cd,_0x229147,_0x4e4b80]);}[_0x1b2b60(0x739)](_0x18f33c,_0x3ec0be,_0x1c3191,_0x31f808,_0x48476c){const _0x59bfdb=_0x1b2b60;this[_0x59bfdb(0x335)]('create',[_0x3ec0be,_0x1c3191,_0x31f808,_0x48476c]);}[_0x1b2b60(0x28e)](_0x5077fe,_0x50e23b,_0x125517,_0x49a1d7){const _0x253375=_0x1b2b60;this[_0x253375(0x335)]('remove',[_0x50e23b,_0x125517,_0x49a1d7]);}[_0x1b2b60(0x7da)](_0x284b3d,_0x292e3d,_0x535c6e,_0x382780){const _0x3e0121=_0x1b2b60;this[_0x3e0121(0x335)](_0x3e0121(0x397),[_0x292e3d,_0x535c6e,_0x382780]);}[_0x1b2b60(0x16a)](_0x3815ef,_0x1bd361,_0x2c3db6){const _0x421b7f=_0x1b2b60;this['_low'](_0x421b7f(0x483),[_0x1bd361,_0x2c3db6]);}['_w'](_0x529713,_0x720ca9){const _0x4010a9=_0x1b2b60;return this[_0x4010a9(0x21e)][_0x4010a9(0x53b)][_0x4010a9(0x414)](_0x4010a9(0x30b),this[_0x4010a9(0x6fe)],_0x529713,_0x720ca9);}[_0x1b2b60(0x27f)](_0x26e917,_0x3f7e65,_0x1ba2dc,_0xa52784={}){const _0x2d3f77=_0x1b2b60;return this['_w'](_0x2d3f77(0x27f),[_0x26e917,_0x3f7e65,_0x1ba2dc,_0xa52784]);}['update'](_0x3d0ee9,_0x52c58a,_0x5e75aa,_0x462757={}){return this['_w']('update',[_0x3d0ee9,_0x52c58a,_0x5e75aa,_0x462757]);}[_0x1b2b60(0x747)](_0x27f533,_0x1b8329,_0x374176,_0x293def={}){const _0x4c23b5=_0x1b2b60;return this['_w'](_0x4c23b5(0x747),[_0x27f533,_0x1b8329,_0x374176,_0x293def]);}[_0x1b2b60(0x740)](_0x27a866,_0x1a2e41,_0xdd64c8,_0x1faff5={}){const _0x10feb1=_0x1b2b60;return this['_w'](_0x10feb1(0x740),[_0x27a866,_0x1a2e41,_0xdd64c8,_0x1faff5]);}[_0x1b2b60(0x42f)](_0x2f70c9,_0x1acf56,_0x4ff63={}){return this['_w']('remove',[_0x2f70c9,_0x1acf56,_0x4ff63]);}['get'](_0x5d1d74,_0x58ab0d,_0x2eea8e){const _0x223c66=_0x1b2b60;if(_0x59bda7&&typeof _0x5d1d74==='string'){const _0x4ca043=this['okdb'][_0x223c66(0x721)](this[_0x223c66(0x6fe)],_0x5d1d74,_0x58ab0d);if(_0x4ca043!==_0x14ec1a)return _0x4ca043===null?this['_n'](_0x223c66(0x63c),[_0x5d1d74,_0x58ab0d]):_0x4ca043;}if(_0x3232f1&&(typeof _0x58ab0d===_0x223c66(0x4bb)||typeof _0x58ab0d===_0x223c66(0x5c1))){const _0xff17ec=this[_0x223c66(0x21e)]['_getRaw'](this[_0x223c66(0x6fe)],_0x5d1d74,_0x58ab0d);if(_0xff17ec!==null)return _0xff17ec;}return this['_n'](_0x223c66(0x63c),[_0x5d1d74,typeof _0x58ab0d===_0x223c66(0x856)?null:_0x58ab0d]);}[_0x1b2b60(0x791)](_0x3dba90,_0x47f669,_0x3b5ba6){const _0x2561d0=_0x1b2b60,_0x13dbdc=[_0x3dba90,Array[_0x2561d0(0x69e)](_0x47f669)&&_0x47f669[_0x2561d0(0x786)](_0xc209fe=>typeof _0xc209fe===_0x2561d0(0x856))?_0x47f669[_0x2561d0(0x1a7)](_0x50af2f=>typeof _0x50af2f===_0x2561d0(0x856)?null:_0x50af2f):_0x47f669];return _0x3232f1?this[_0x2561d0(0x21e)][_0x2561d0(0x39e)](this[_0x2561d0(0x6fe)],'getMany',_0x13dbdc):this['_n'](_0x2561d0(0x791),_0x13dbdc);}[_0x1b2b60(0x2ec)](_0x3e330b,_0x2c70cb,_0x3ffc59){const _0x4ee9d1=_0x1b2b60;return this['_n']('getEntry',[_0x3e330b,typeof _0x2c70cb===_0x4ee9d1(0x856)?null:_0x2c70cb]);}[_0x1b2b60(0x436)](_0x559b2d,_0x34d04a){const _0x399083=_0x1b2b60;return this[_0x399083(0x636)](_0x399083(0x436),_0x34d04a),this['_n'](_0x399083(0x436),[_0x559b2d,_0x3495e8(_0x34d04a)]);}[_0x1b2b60(0x636)](_0x28143a,_0xb5e452,_0x834014=[]){const _0x233510=_0x1b2b60;if(!_0xb5e452||typeof _0xb5e452!==_0x233510(0x1be))return;for(const _0x4f4b7e of Object[_0x233510(0x1d5)](_0xb5e452)){if(!_0x38aec6[_0x233510(0x51e)](_0x4f4b7e)&&!_0x834014[_0x233510(0x1ac)](_0x4f4b7e))throw new _0x45c9f2(_0x28143a+':\x20unknown\x20option\x20\x27'+_0x4f4b7e+'\x27',_0x233510(0x35e),{'option':_0x4f4b7e});}}[_0x1b2b60(0x3b1)](_0xfbac7c,_0x9a6f98,_0x51d838,_0x69c0d0,_0x2b4f99,_0x1c7080){const _0x1fd929=_0x1b2b60;this[_0x1fd929(0x636)](_0xfbac7c,_0x69c0d0);const _0x1f7927=_0x69c0d0?.['snapshot'],_0x43bf3d=_0x3495e8(_0x69c0d0);if(_0x1f7927===!![]||_0x1f7927===_0x1fd929(0x888)){const _0x50b555=this[_0x1fd929(0x53a)](_0xfbac7c,_0x9a6f98,_0x128e28=>[_0x51d838,{..._0x43bf3d,..._0x128e28}],_0x69c0d0);return _0x1c7080?_0x50b555['map'](_0x1c7080):_0x50b555;}const _0x1c887c=_0x5b4174(_0x32d9fd=>this['_np'](_0x9a6f98,[_0x51d838,_0x32d9fd]),_0x43bf3d,_0x2b4f99,{'rows':_0x9a6f98==='getRange'});return _0x1c7080?_0x1c887c[_0x1fd929(0x1a7)](_0x1c7080):_0x1c887c;}['_lazyPinned'](_0x2b9727,_0x44a92b,_0x192b52,_0x54d1aa,_0x1d82aa,_0x5eb977=![]){const _0x1c7aec=_0x1b2b60,{source:_0x205e36,prefetch:_0xc2d699}=_0x247861((_0x33154a,_0x4980f3)=>_0x33154a==='unpin'?this['_n'](_0x33154a,_0x4980f3):this[_0x1c7aec(0x6f8)](_0x33154a,_0x4980f3),_0x44a92b,_0x192b52,_0x54d1aa||{},_0x1d82aa),_0x47c3c8=_0xc2d699(),_0x56b84f=!_0x5eb977&&_0x54d1aa&&_0x54d1aa[_0x1c7aec(0x175)]===_0x1c7aec(0x888);let _0x310fda=null;return _0x37b436(()=>({[Symbol[_0x1c7aec(0x56e)]]:()=>_0x310fda=_0x205e36(0x0,_0x3c513c(_0x47c3c8))}),{'label':this[_0x1c7aec(0x6fe)]+':'+_0x2b9727,..._0x56b84f?{'getTxnId':()=>this['db'][_0x1c7aec(0x7fd)]()['lastTxnId'],'resume':()=>({[Symbol[_0x1c7aec(0x56e)]]:()=>_0x310fda=_0x310fda['resumed']()})}:{}});}[_0x1b2b60(0x3fa)](_0x29fe50,_0x4dbf6e){const _0x21dc8a=_0x1b2b60;return this[_0x21dc8a(0x3b1)](_0x21dc8a(0x3fa),_0x21dc8a(0x3fa),_0x29fe50,_0x4dbf6e,_0x4a6996=>_0x4a6996['key']);}[_0x1b2b60(0x7d2)](_0x1862e5,_0x4f896a){const _0x3b6bf2=_0x1b2b60;return this['_range'](_0x3b6bf2(0x7d2),'getKeys',_0x1862e5,_0x4f896a,_0x4e0760=>_0x4e0760);}[_0x1b2b60(0x618)](_0x3a2385,_0x47122f){const _0x505bb4=_0x1b2b60;return this[_0x505bb4(0x3b1)](_0x505bb4(0x618),'getRange',_0x3a2385,_0x47122f,_0x2d894e=>_0x2d894e[_0x505bb4(0x366)],_0x3ead75=>_0x3ead75[_0x505bb4(0x820)]);}[_0x1b2b60(0x587)](_0x4b8c9e,_0x23a2cc,_0x5f15f1={}){const _0x3ae089=_0x1b2b60;return this[_0x3ae089(0x3fa)](_0x4b8c9e,{'start':_0x23a2cc,'end':_0x23a2cc+'',..._0x5f15f1});}['getIndex'](_0x31dcb4,_0x2c14f2,_0xc827b4={}){const _0x4c2381=_0x1b2b60;this[_0x4c2381(0x636)]('getIndex',_0xc827b4,[_0x4c2381(0x575)]);const _0x357d12=_0x3495e8(_0xc827b4);if(_0xc827b4&&_0xc827b4['transaction'])return _0x1a3ff7(this['_n'](_0x4c2381(0x606),[_0x31dcb4,_0x2c14f2,_0x357d12]));return this[_0x4c2381(0x53a)](_0x4c2381(0x606),_0x4c2381(0x606),_0x285f64=>[_0x31dcb4,_0x2c14f2,{..._0x357d12,..._0x285f64}],_0xc827b4,undefined,!![]);}[_0x1b2b60(0x2c0)](_0x953faf,_0x3d7e4a,_0x222989){const _0x36ea8f=_0x1b2b60;this[_0x36ea8f(0x636)](_0x36ea8f(0x2c0),_0x222989,[_0x36ea8f(0x575),_0x36ea8f(0x7c4)]);const _0x5e2cb5=_0x3495e8(_0x222989);if(_0x222989&&_0x222989[_0x36ea8f(0x7f7)])return _0x1a3ff7(this['_n'](_0x36ea8f(0x2c0),[_0x953faf,_0x3d7e4a,_0x5e2cb5]));return this[_0x36ea8f(0x53a)](_0x36ea8f(0x2c0),'byIndex',_0x3a1538=>[_0x953faf,_0x3d7e4a,{..._0x5e2cb5,..._0x3a1538}],_0x222989,undefined,!![]);}[_0x1b2b60(0x490)](_0x3cfe31,_0x270bcc,_0x4957d8={}){const _0x1f44cd=_0x1b2b60;return this['_n'](_0x1f44cd(0x490),[_0x3cfe31,_0x270bcc,_0x3495e8(_0x4957d8)]);}[_0x1b2b60(0x665)](_0x243176,_0x1f4605={},_0x2c7a54={}){const _0x5572dc=_0x1b2b60,_0x26cbde=_0x52d9b9(_0x2c7a54);if(_0x2c7a54){for(const _0x4d439e of Object[_0x5572dc(0x1d5)](_0x2c7a54))if(_0x4d439e!==_0x5572dc(0x6ea)&&typeof _0x2c7a54[_0x4d439e]===_0x5572dc(0x6d8))_0x26cbde[_0x4d439e]=null;}if(_0x2c7a54&&(_0x2c7a54[_0x5572dc(0x492)]||_0x2c7a54[_0x5572dc(0x6c5)]))return this['_n'](_0x5572dc(0x32d),[_0x26cbde]),this[_0x5572dc(0x627)](_0x243176,_0x1f4605,_0x2c7a54);const _0x3354dd=typeof _0x2c7a54[_0x5572dc(0x6ea)]==='function'?_0x2c7a54[_0x5572dc(0x6ea)]:null;if(_0x2c7a54[_0x5572dc(0x842)]||_0x4cbb2e(_0x1f4605)||_0x2c7a54[_0x5572dc(0x7f7)]!==undefined){let _0x247363=this['_n'](_0x5572dc(0x665),[_0x243176,_0x1f4605,_0x26cbde]);if(_0x3354dd)_0x247363=_0x247363[_0x5572dc(0x1a7)](_0x3354dd);if(_0x2c7a54[_0x5572dc(0x842)]||_0x4cbb2e(_0x1f4605))return _0x247363;return _0x1a3ff7(_0x247363);}const _0x593a91=_0x91b10b=>typeof _0x91b10b==='number'&&Number[_0x5572dc(0x40f)](_0x91b10b)?Math[_0x5572dc(0x3e7)](0x0,_0x91b10b):Infinity;let _0x57ba5c;if(_0x2c7a54[_0x5572dc(0x3a9)]){const _0x333855=_0x30a253=>typeof _0x30a253===_0x5572dc(0x5c1)&&_0x30a253>0x0?Math[_0x5572dc(0x342)](_0x30a253):0x0;_0x57ba5c=this[_0x5572dc(0x53a)](_0x5572dc(0x665),'query',_0x521713=>[_0x243176,_0x1f4605,{..._0x26cbde,..._0x521713}],null,{'limitOf':()=>_0x593a91(_0x26cbde[_0x5572dc(0x695)]),'offsetOf':()=>_0x333855(_0x26cbde[_0x5572dc(0x534)])});}else _0x57ba5c=_0x5b4174(_0xbd939d=>{const _0x22f97e=_0x5572dc,{__after:_0x387510,..._0x104091}=_0xbd939d;return this[_0x22f97e(0x6f8)](_0x22f97e(0x665),_0x387510===undefined?[_0x243176,_0x1f4605,_0x104091]:[_0x243176,_0x1f4605,_0x104091,_0x387510]);},_0x26cbde,_0xa58118=>_0xa58118[_0x5572dc(0x366)],{'limitOf':_0x593a91,'rows':!![],'prefetch':!![],'resumeOpts':(_0x51ee97,_0x3dae5d)=>{const _0x345b69=_0x5572dc;_0x51ee97[_0x345b69(0x534)]=0x0,_0x51ee97['__after']=_0x3dae5d;}});return _0x3354dd?_0x57ba5c[_0x5572dc(0x1a7)](_0x3354dd):_0x57ba5c;}async[_0x1b2b60(0x627)](_0x5eb6ff,_0x95f122,_0xec90e4){const _0x2450a5=_0x1b2b60,{select:_0x5e0e02,..._0x5351af}=_0x52d9b9(_0xec90e4);let _0x2fcddb={..._0x5351af};const _0x177703=_0x2fcddb[_0x2450a5(0x3a9)];if(_0x177703&&!Array[_0x2450a5(0x69e)](_0x177703)&&typeof _0x177703==='object'&&_0x177703[_0x2450a5(0x613)]){const {fields:_0x138a56,prefix:_0x5b3d05,start:_0x4830ae,end:_0x50153e}=_0x177703;_0x2fcddb={..._0x2fcddb,'index':_0x138a56,'prefix':_0x5b3d05??_0x2fcddb[_0x2450a5(0x575)],'startIndex':_0x4830ae??_0x2fcddb['startIndex'],'endIndex':_0x50153e??_0x2fcddb[_0x2450a5(0x3db)]};}const _0x1eeb89=await this[_0x2450a5(0x21e)][_0x2450a5(0x406)](_0x2450a5(0x422),null,_0x2450a5(0x52d),[this['name'],_0x5eb6ff,_0x95f122,_0x2fcddb],![]),_0x2303ef=typeof _0xec90e4[_0x2450a5(0x6ea)]===_0x2450a5(0x6d8)?_0xec90e4[_0x2450a5(0x6ea)]:null;if(!_0x2303ef)return _0x1eeb89;return _0x1eeb89[_0x2450a5(0x1a7)](_0x2f5ea7=>{const {score:_0x54f41c,ftsScore:_0x522d25,numTerms:_0x3f9f24,maxScore:_0x1057d7,vectorScore:_0x55d28b,chunkHash:_0x1a5fa8,chunk:_0x56f0ea,..._0x5ca588}=_0x2f5ea7,_0x131c21=_0x2303ef(_0x5ca588);for(const [_0x1612c0,_0x5a1db2]of Object['entries']({'score':_0x54f41c,'ftsScore':_0x522d25,'numTerms':_0x3f9f24,'maxScore':_0x1057d7,'vectorScore':_0x55d28b,'chunkHash':_0x1a5fa8,'chunk':_0x56f0ea}))if(_0x5a1db2!==undefined)_0x131c21[_0x1612c0]=_0x5a1db2;return _0x131c21;});}[_0x1b2b60(0x181)](_0x2394ef,_0x2bdca5,_0xea4a23={}){const _0x5d9472=_0x1b2b60;let _0x4dea79=this['_n'](_0x5d9472(0x181),[_0x2394ef,_0x2bdca5,_0x52d9b9(_0xea4a23)]);if(typeof _0xea4a23['select']===_0x5d9472(0x6d8))_0x4dea79=_0x4dea79['map'](_0xea4a23[_0x5d9472(0x6ea)]);return _0x4dea79;}[_0x1b2b60(0x45e)](_0x3e2a84=null,_0x3ee4f0={}){return this['_n']('getClock',[_0x3e2a84]);}['getChanges'](_0xfad2b7=null,_0x5586cc=0x0,_0x2427b5=Number[_0x1b2b60(0x7eb)],_0x320995={}){const _0x18eb52=_0x1b2b60,_0x1526d3=_0x3495e8(_0x320995);if(_0x320995&&_0x320995['transaction'])return _0x1a3ff7(this['_n'](_0x18eb52(0x267),[_0xfad2b7,_0x5586cc,_0x2427b5,_0x1526d3]));return this['_lazyPinned'](_0x18eb52(0x267),_0x18eb52(0x267),_0x5a5b8b=>[_0xfad2b7,_0x5586cc,_0x2427b5,{..._0x1526d3,..._0x5a5b8b}],_0x320995);}[_0x1b2b60(0x3c2)](_0x52c1dc){const _0x23ecc3=_0x1b2b60;if(Array[_0x23ecc3(0x69e)](_0x52c1dc))return _0x52c1dc[_0x23ecc3(0x6cf)];let _0x237867=0x0;for(const _0x3cf32e of _0x52c1dc)_0x237867++;return _0x237867;}*[_0x1b2b60(0x380)](_0x762314){yield*_0x762314;}[_0x1b2b60(0x89e)](){return requireOkdbHlc()['toMs'](this['_hlc']);}get[_0x1b2b60(0x194)](){const _0x58795e=_0x1b2b60,_0x250eaf=this[_0x58795e(0x21e)][_0x58795e(0x60a)]?this[_0x58795e(0x21e)][_0x58795e(0x49e)]('db',null,_0x58795e(0x84e),[this[_0x58795e(0x6fe)]],![]):null;if(!_0x250eaf)return null;if(this[_0x58795e(0x6aa)]===_0x250eaf['gen'])return null;this[_0x58795e(0x2bb)]=this['_timerObjs']||new Map();let _0x23d4e1=this[_0x58795e(0x2bb)]['get'](_0x250eaf['gen']);if(!_0x23d4e1){const _0x18d528=this;_0x23d4e1={'ref'(){},'unref'(){},'hasRef':()=>![],'gen':_0x250eaf[_0x58795e(0x630)],'at':_0x250eaf['at'],'target':_0x250eaf[_0x58795e(0x5b4)],get '_destroyed'(){const _0x2a216a=_0x58795e,_0x248c34=_0x18d528[_0x2a216a(0x21e)][_0x2a216a(0x60a)]?_0x18d528[_0x2a216a(0x21e)][_0x2a216a(0x49e)]('db',null,_0x2a216a(0x84e),[_0x18d528[_0x2a216a(0x6fe)]],![]):null;return!_0x248c34||_0x248c34[_0x2a216a(0x630)]!==this[_0x2a216a(0x630)]||_0x18d528[_0x2a216a(0x6aa)]===this[_0x2a216a(0x630)];}},this[_0x58795e(0x2bb)][_0x58795e(0x328)](_0x250eaf[_0x58795e(0x630)],_0x23d4e1);}return _0x23d4e1;}[_0x1b2b60(0x20b)](){const _0x4f5610=_0x1b2b60,_0x1ce824=this['okdb']['_call']('db',null,_0x4f5610(0x84e),[this[_0x4f5610(0x6fe)]],![]);if(_0x1ce824)this[_0x4f5610(0x6aa)]=_0x1ce824[_0x4f5610(0x630)];}get[_0x1b2b60(0x82a)](){const _0x5f449d=_0x1b2b60,_0x1a3cdc=this[_0x5f449d(0x21e)][_0x5f449d(0x49e)]('db',null,_0x5f449d(0x84e),[this['name']],![]);return _0x1a3cdc?_0x1a3cdc[_0x5f449d(0x5b4)]:null;}get['_autoCompactTimer'](){const _0x57c67d=_0x1b2b60;return this[_0x57c67d(0x21e)][_0x57c67d(0x49e)]('db',null,_0x57c67d(0x546),[this['name']],![])?{'ref'(){},'unref'(){}}:null;}['_startAutoCompactCheck'](){const _0x38f4dd=_0x1b2b60;this[_0x38f4dd(0x21e)]['_call']('db',null,_0x38f4dd(0x3a2),[this['name']],![]);}['_stopAutoCompactCheck'](){const _0x1f7e99=_0x1b2b60;this['okdb'][_0x1f7e99(0x49e)]('db',null,_0x1f7e99(0x2d1),[this[_0x1f7e99(0x6fe)]],![]);}get[_0x1b2b60(0x340)](){const _0x154965=_0x1b2b60,_0x39ebd6=(_0x4e31d5,_0x3e7849)=>this[_0x154965(0x21e)][_0x154965(0x49e)]('db',null,_0x4e31d5,[this[_0x154965(0x6fe)],..._0x3e7849],![]),_0x38315e=Object['keys'](_0x39ebd6(_0x154965(0x3e2),[])||{}),_0x4abedb={};for(const _0x4f3fff of _0x38315e)Object[_0x154965(0x79d)](_0x4abedb,_0x4f3fff,{'enumerable':!![],'get':()=>_0x39ebd6(_0x154965(0x3e2),[])?.[_0x4f3fff],'set':_0x4fed1b=>{_0x39ebd6('setAutoCompact',[_0x4f3fff,_0x4fed1b]);}});return _0x4abedb;}get['_hlc'](){const _0x5d1c81=_0x1b2b60;return this['_n'](_0x5d1c81(0x48f),[]);}['equal'](_0x1a2327,_0x8faf9){const _0x567e7b=_0x1b2b60;return require$$16[_0x567e7b(0x757)](_0x1a2327,_0x8faf9);}async[_0x1b2b60(0x754)](_0x44791f,_0x49c698){const _0x46b0ee=_0x1b2b60;return this[_0x46b0ee(0x7d8)](this['_n'](_0x46b0ee(0x754),[_0x44791f]));}['hasType'](_0x1e2977){const _0x5a953f=_0x1b2b60;return this['_n'](_0x5a953f(0x3c7),[_0x1e2977]);}[_0x1b2b60(0x6a4)](){const _0x4beccc=_0x1b2b60;return this['_n'](_0x4beccc(0x6a4),[]);}async[_0x1b2b60(0x195)](_0xc81452,_0x3f21b8){const _0x35bbb1=_0x1b2b60;return this[_0x35bbb1(0x7d8)](this['_n']('dropType',[_0xc81452]));}async[_0x1b2b60(0x5cf)](_0x9eb792,_0x690a2){const _0x498180=_0x1b2b60,{timestamp:_0x28437b,indexes:indexes=[]}=_0x4ad11c(_0x690a2);return this[_0x498180(0x7d8)](this['_n'](_0x498180(0x5cf),[_0x9eb792,{'indexes':indexes}]));}async[_0x1b2b60(0x766)](_0x4dfcca){const _0x53b1a5=_0x1b2b60,{type:_0x296203,indexes:indexes=[],fts:fts=[],views:views=[],schema:schema=null}=_0x4ad11c(_0x4dfcca,_0x53b1a5(0x61a));if(!_0x296203)throw new Error(_0x53b1a5(0x2bf));await this['ensureType'](_0x296203,{'indexes':indexes});for(const _0x279256 of fts){const {name:_0x1cfcbd,fields:_0x43716f,..._0x1b009f}=_0x279256;if(!_0x1cfcbd||!_0x43716f)throw new Error(_0x53b1a5(0x3ac));await this[_0x53b1a5(0x21e)][_0x53b1a5(0x492)][_0x53b1a5(0x766)](_0x296203,_0x1cfcbd,{'fields':_0x43716f,..._0x1b009f},this);}for(const _0x3d1a9d of views){const {name:_0xdd1427,definition:_0x122aaf}=_0x3d1a9d;if(!_0xdd1427||!_0x122aaf)throw new Error(_0x53b1a5(0x388));if(!await this[_0x53b1a5(0x62a)][_0x53b1a5(0x261)](_0xdd1427))await this[_0x53b1a5(0x62a)][_0x53b1a5(0x740)](_0xdd1427,_0x122aaf);}if(schema)await this[_0x53b1a5(0x573)](_0x296203,schema);}async['registerIndex'](_0x13f16c,_0x19a509,_0x4a9d31){const _0x263207=_0x1b2b60,_0x230f29=this['_n']('registerIndexDeferred',[_0x13f16c,_0x19a509,typeof _0x4a9d31===_0x263207(0x1be)?_0x4a9d31:{}]);if(!_0x230f29)return this['_wsettle'](undefined);const _0xe6b3b7=this['_n']('resetIndexBegin',[_0x13f16c,_0x19a509,!![]]);if(_0xe6b3b7===undefined)return this[_0x263207(0x7d8)](undefined);return this[_0x263207(0x7d8)](await this[_0x263207(0x1e3)](_0x13f16c,_0x19a509,_0xe6b3b7));}async[_0x1b2b60(0x1e3)](_0x59a67b,_0x5825b3,_0x33a8c9){const _0x42717c=_0x1b2b60,_0x4b91d7=_0x59a67b+'@'+[][_0x42717c(0x79b)](_0x5825b3)[_0x42717c(0x3d2)]('~');if(!this[_0x42717c(0x1cb)])this[_0x42717c(0x1cb)]=new Map();const _0x59a9a9=this[_0x42717c(0x1cb)][_0x42717c(0x63c)](_0x4b91d7);if(_0x59a9a9)return _0x59a9a9;const _0x3f18b9=((async()=>{const _0x1c36f0=_0x42717c;do await new Promise(_0x52d45f=>setImmediate(_0x52d45f));while(!this['_n'](_0x1c36f0(0x216),[_0x59a67b,_0x5825b3,_0x33a8c9,!![]]));})());this[_0x42717c(0x1cb)][_0x42717c(0x328)](_0x4b91d7,_0x3f18b9);try{return await _0x3f18b9;}finally{this['_indexBuilds'][_0x42717c(0x82f)](_0x4b91d7);}}async[_0x1b2b60(0x764)](_0x46f585,_0x1386a1,_0x2fd6aa){const _0x2ed79e=_0x1b2b60;return this['_wsettle'](this['_n'](_0x2ed79e(0x764),[_0x46f585,_0x1386a1]));}async['resetIndex'](_0x529177,_0x2f1311,_0x7ad987){const _0x3eadbf=_0x1b2b60,_0x34193b=this['_indexBuilds']&&this['_indexBuilds'][_0x3eadbf(0x63c)](_0x529177+'@'+[][_0x3eadbf(0x79b)](_0x2f1311)[_0x3eadbf(0x3d2)]('~'));if(_0x34193b)return _0x34193b;const _0x149825=this['_n'](_0x3eadbf(0x7e3),[_0x529177,_0x2f1311,_0x7ad987]);if(_0x149825===undefined)return;return await new Promise(_0x4b3a93=>setImmediate(_0x4b3a93)),this['_wsettle'](await this[_0x3eadbf(0x1e3)](_0x529177,_0x2f1311,_0x149825));}[_0x1b2b60(0x2d8)](_0x2d66cb,_0x3844c5){const _0x1836be=_0x1b2b60;return this['_n'](_0x1836be(0x2d8),[_0x2d66cb,_0x3844c5]);}[_0x1b2b60(0x2ef)](_0x153e7e,_0x299c97){const _0x232a7d=_0x1b2b60;return this['_n'](_0x232a7d(0x2ef),[_0x153e7e,_0x299c97]);}async[_0x1b2b60(0x76a)](_0x73081e,_0xf1d261){const _0x30e57d=_0x1b2b60;if(this['_n']('getIndexStatus',[_0x73081e,_0xf1d261])===_0x30e57d(0x288))return!![];let _0x231dff=0xa;for(;;){await new Promise(_0xea3419=>setTimeout(_0xea3419,_0x231dff));if(!this['okdb'][_0x30e57d(0x60a)]||this[_0x30e57d(0x7ba)])return![];let _0x57b94e;try{_0x57b94e=this['_n'](_0x30e57d(0x7ec),[_0x73081e,Array[_0x30e57d(0x69e)](_0xf1d261)?_0xf1d261[_0x30e57d(0x3d2)]('~'):String(_0xf1d261)[_0x30e57d(0x3f8)](',')[_0x30e57d(0x3d2)]('~')]);}catch{return![];}const _0x36745e=_0x57b94e&&_0x57b94e[_0x30e57d(0x1c9)];if(_0x36745e===_0x30e57d(0x288))return!![];if(_0x36745e===undefined)return![];_0x231dff=Math[_0x30e57d(0x5a9)](_0x231dff*0x2,0xfa);}}[_0x1b2b60(0x7ec)](_0x233cc5,_0x3f706c){const _0x4f82d2=_0x1b2b60;return this['_n'](_0x4f82d2(0x7ec),[_0x233cc5,_0x3f706c])??null;}[_0x1b2b60(0x43b)](_0x5b57f4,_0x21ed67){const _0x5ef898=_0x1b2b60;return this['_n'](_0x5ef898(0x43b),[_0x5b57f4,_0x21ed67]);}[_0x1b2b60(0x7e9)](_0xc1172d,_0x3dc385){const _0x3d65cc=_0x1b2b60;return this['_n'](_0x3d65cc(0x7e9),[_0xc1172d,_0x3dc385]);}[_0x1b2b60(0x4ee)](_0x33a01f,_0x3598c1,_0x570d13){const _0x58bfe9=_0x1b2b60;return this['_n'](_0x58bfe9(0x4ee),[_0x33a01f,_0x3598c1,_0x570d13])??null;}['getSchema'](_0x1c8460){const _0x22da4e=_0x1b2b60;return this['_n'](_0x22da4e(0x2d0),[_0x1c8460])??null;}async['setSchema'](_0x2b2664,_0xdb15e9){const _0x518010=_0x1b2b60;return this[_0x518010(0x7d8)](this['_n'](_0x518010(0x573),[_0x2b2664,_0xdb15e9]));}async[_0x1b2b60(0x389)](_0x7c3096){const _0x5ba51c=_0x1b2b60;return this['_wsettle'](this['_n'](_0x5ba51c(0x389),[_0x7c3096]));}[_0x1b2b60(0x2e7)](_0x22d45d,_0x3c8818){return this['_n']('getViolation',[_0x22d45d,_0x3c8818])??null;}[_0x1b2b60(0x210)](_0x1ab790){const _0x556a55=_0x1b2b60;return this['_n'](_0x556a55(0x210),[_0x1ab790]);}[_0x1b2b60(0x45a)](_0x5cb24f,_0x307c66,_0x2a4bbb){const _0x1878ec=_0x1b2b60;return this['_n'](_0x1878ec(0x45a),[_0x5cb24f,_0x307c66,_0x2a4bbb])??null;}[_0x1b2b60(0x82d)](_0x3c93cd){const _0x173837=_0x1b2b60;return this['_n'](_0x173837(0x82d),[_0x3c93cd]);}async[_0x1b2b60(0x397)](_0x5bc65f,_0x2d028d,_0x2aa598){return this['_wsettle'](this['_n']('setTTL',[_0x5bc65f,_0x2d028d,_0x2aa598]));}[_0x1b2b60(0x329)](_0x472a22,_0x346cf8){const _0x12ad3b=_0x1b2b60;return this['_n'](_0x12ad3b(0x329),[_0x472a22,_0x346cf8]);}async['clearTTL'](_0x5d3722,_0xb99bb2){const _0xc8047d=_0x1b2b60;return this[_0xc8047d(0x7d8)](this['_n']('clearTTL',[_0x5d3722,_0xb99bb2]));}async[_0x1b2b60(0x6f7)](_0x387302){const _0x3affb2=_0x1b2b60;return this['_n'](_0x3affb2(0x6f7),[_0x387302]);}['listTTL'](_0x4d6671={}){const _0xe231ed=_0x1b2b60;return this['_n'](_0xe231ed(0x5cc),[_0x4d6671]);}['ttlStats'](_0x141fa8){return this['_n']('ttlStats',[_0x141fa8]);}async[_0x1b2b60(0x669)](_0x130926,_0x1f776d){const _0x37f8cd=_0x1b2b60;return this[_0x37f8cd(0x7d8)](this['_n'](_0x37f8cd(0x669),[_0x130926,_0x1f776d]));}[_0x1b2b60(0x60f)](_0xde3320){return this['_n']('getDefaultTTL',[_0xde3320]);}async[_0x1b2b60(0x8a4)](_0x14e3b2){const _0x3c7a21=_0x1b2b60;return this[_0x3c7a21(0x7d8)](this['_n']('clearDefaultTTL',[_0x14e3b2]));}async['resolveField'](_0x525550,_0x167d64,_0x3484f4,_0xcf044f){const _0x395e06=_0x1b2b60,{batch:batch=null,batchSize:_0x3a462e}=_0x4ad11c(_0xcf044f);if(typeof _0x525550!==_0x395e06(0x4bb)||!_0x525550)throw new _0x45c9f2('resolveField:\x20type\x20required',_0x395e06(0x694));if(typeof _0x167d64!==_0x395e06(0x4bb)||!_0x167d64)throw new _0x45c9f2(_0x395e06(0x168),'BAD_PARAM');if(_0x3484f4!=null&&typeof _0x3484f4!==_0x395e06(0x6d8))throw new _0x45c9f2('resolveField:\x20resolver\x20must\x20be\x20a\x20function','BAD_PARAM');if(batch!=null&&typeof batch!=='function')throw new _0x45c9f2(_0x395e06(0x39a),_0x395e06(0x694));if(!_0x3484f4&&!batch)throw new _0x45c9f2(_0x395e06(0x74c),_0x395e06(0x694));if(_0x3a462e!==undefined&&!(Number[_0x395e06(0x40f)](_0x3a462e)&&_0x3a462e>0x0))throw new _0x45c9f2(_0x395e06(0x1e7),'BAD_PARAM');const _0x337279=batch?async _0x1f5dd1=>(await batch(_0x1f5dd1))[_0x395e06(0x1a7)](_0x577ff6=>_0x577ff6 instanceof Error?{'__error':!![],'message':_0x577ff6['message']}:_0x577ff6):null,_0x229e5d=_0x23abb4(this,_0x525550,_0x167d64),_0x211a5c=this['_n']('resolveField',[_0x525550,_0x167d64,_0x3484f4?(_0xfeada,_0x750d63)=>_0x229e5d(_0x3484f4,[_0xfeada,_0x750d63]):null,{'batch':_0x337279?_0x182981=>_0x229e5d(_0x337279,[_0x182981]):null,'batchSize':_0x3a462e}]);return()=>this['_n'](_0x395e06(0x7db),[_0x211a5c]);}async['unresolveField'](_0x116862,_0x3bb459){const _0xefbede=_0x1b2b60;return this['_n'](_0xefbede(0x6db),[_0x116862,_0x3bb459]);}[_0x1b2b60(0x1e0)](_0x8ed6b){return this['_n']('resolvedFields',[_0x8ed6b]);}async['readField'](_0x2b6ea6,_0x46231f,_0x528d8a,_0x2318a8){const _0x6cbc3c=_0x1b2b60;return this[_0x6cbc3c(0x21e)]['_callMacro'](_0x6cbc3c(0x30b),this[_0x6cbc3c(0x6fe)],_0x6cbc3c(0x513),[_0x2b6ea6,_0x46231f,_0x528d8a,_0x2318a8],![]);}async[_0x1b2b60(0x89f)](_0x340b32,_0x530804,_0x52d808){const _0x4158be=_0x1b2b60;return this[_0x4158be(0x21e)][_0x4158be(0x406)](_0x4158be(0x30b),this['name'],_0x4158be(0x89f),[_0x340b32,_0x530804,_0x52d808],![]);}[_0x1b2b60(0x29e)](){}[_0x1b2b60(0x629)](_0x581651,_0x2c2522,_0x4dc880,_0x29d46c={},_0x15072f={}){const _0x18afbf=_0x1b2b60;return this['okdb'][_0x18afbf(0x49e)](_0x18afbf(0x492),null,'ftsQuery',[_0x581651,_0x2c2522,_0x4dc880,_0x29d46c,_0x15072f,this[_0x18afbf(0x6fe)]],![]);}get['fts'](){const _0x29bed6=_0x1b2b60;return this['okdb'][_0x29bed6(0x492)];}[_0x1b2b60(0x53e)](){const _0x183941=_0x1b2b60;return this[_0x183941(0x21e)][_0x183941(0x49e)](_0x183941(0x30b),this['name'],_0x183941(0x53e),[],![]);}[_0x1b2b60(0x837)](){const _0x32cf71=_0x1b2b60;return this[_0x32cf71(0x21e)][_0x32cf71(0x837)]();}[_0x1b2b60(0x1d2)](){const _0x32e9fe=_0x1b2b60;return this[_0x32e9fe(0x21e)][_0x32e9fe(0x49e)](_0x32e9fe(0x30b),this['name'],_0x32e9fe(0x1d2),[],![]);}[_0x1b2b60(0x348)](){}get[_0x1b2b60(0x238)](){const _0x376d29=_0x1b2b60;return this[_0x376d29(0x6dc)]||(this[_0x376d29(0x6dc)]=new(requireLock())[(_0x376d29(0x828))](this[_0x376d29(0x21e)],this[_0x376d29(0x6fe)],_0x376d29(0x30b)));}[_0x1b2b60(0x2ba)](){const _0x197071=_0x1b2b60;return this[_0x197071(0x21e)]['_call']('env',this[_0x197071(0x6fe)],'storageStats',[],![]);}['_registerType'](_0x312765){const _0x1dd78f=_0x1b2b60;this['_n'](_0x1dd78f(0x754),[_0x312765]);}['_logChange'](_0x3e4d6c){const _0x16ff5b=_0x1b2b60;this['_n'](_0x16ff5b(0x493),[_0x3e4d6c]);}['_ttlState'](){const _0x41cf5a=_0x1b2b60;return this['_n'](_0x41cf5a(0x599),[]);}['_ttlCompositeKey'](_0x4a40d6,_0x5e8c4e){return _0x4a40d6+'\x09'+_0x5e8c4e;}[_0x1b2b60(0x39f)](_0x2425d8){const _0x506401=_0x1b2b60,_0x525c00=_0x2425d8['indexOf']('\x09');return{'type':_0x2425d8[_0x506401(0x5ca)](0x0,_0x525c00),'key':_0x2425d8[_0x506401(0x5ca)](_0x525c00+0x1)};}get[_0x1b2b60(0x87f)](){const _0x22154b=_0x1b2b60;if(!this[_0x22154b(0x2e8)]()['enabled'])return null;return this['__ttlByKey']||(this[_0x22154b(0x71a)]=new _0x27cb06(this,_0x22154b(0x461)));}get[_0x1b2b60(0x44f)](){const _0x52c3fe=_0x1b2b60;if(!this[_0x52c3fe(0x2e8)]()[_0x52c3fe(0x580)])return null;return this[_0x52c3fe(0x572)]||(this[_0x52c3fe(0x572)]=new _0x27cb06(this,_0x52c3fe(0x6f2),{'dupSort':!![]}));}[_0x1b2b60(0x73b)](_0x2f4460,_0x1d1873,_0x53c4f3){const _0x43cb8b=_0x1b2b60;this['_n'](_0x43cb8b(0x81a),[_0x2f4460,_0x1d1873,_0x53c4f3]);}[_0x1b2b60(0x5aa)](_0x34e35e,_0x4532c4){const _0x1247c5=_0x1b2b60,_0x3d5967=this[_0x1247c5(0x87f)]?.[_0x1247c5(0x63c)](this[_0x1247c5(0x34a)](_0x34e35e,_0x4532c4));return _0x3d5967!=null&&_0x3d5967<=Date['now']();}get[_0x1b2b60(0x61e)](){const _0x38db77=_0x1b2b60;return this['_ttlState']()[_0x38db77(0x1d8)]??null;}get[_0x1b2b60(0x40b)](){const _0x647a9a=_0x1b2b60;return this['_ttlState']()[_0x647a9a(0x886)]||0x0;}get[_0x1b2b60(0x451)](){return![];}[_0x1b2b60(0x87b)](){}async[_0x1b2b60(0x5be)](_0x3c6d2a,_0x4085d7){const _0x2b12d0=_0x1b2b60;if(this[_0x2b12d0(0x19a)]){const {OKDBError:_0x2dec40}=requireErrors();throw new _0x2dec40(_0x2b12d0(0x4fa),'REBUILD_IN_PROGRESS');}this[_0x2b12d0(0x19a)]=!![];try{return await this[_0x2b12d0(0x21e)][_0x2b12d0(0x406)]('env',this[_0x2b12d0(0x6fe)],_0x3c6d2a,[_0x4085d7],!![]);}finally{this[_0x2b12d0(0x19a)]=![];}}async[_0x1b2b60(0x2ab)](_0x24b3e5={}){const _0x296a39=_0x1b2b60;return this[_0x296a39(0x5be)](_0x296a39(0x2ab),_0x24b3e5);}async[_0x1b2b60(0x1c6)](_0x2df695={}){const _0x13ebf4=_0x1b2b60;return this[_0x13ebf4(0x5be)](_0x13ebf4(0x1c6),_0x2df695);}}_0x4dc0fd[_0x1b2b60(0x477)]=_0x594408;function _0x4cbb2e(_0x234f9a){const _0x1c9644=_0x1b2b60;if(!_0x234f9a||typeof _0x234f9a!==_0x1c9644(0x1be))return![];for(const _0x34de73 of Object[_0x1c9644(0x1d5)](_0x234f9a)){const _0x5c0b92=_0x234f9a[_0x34de73];if(_0x5c0b92&&typeof _0x5c0b92===_0x1c9644(0x1be)&&(_0x5c0b92[_0x1c9644(0x3d0)]||_0x5c0b92[_0x1c9644(0x650)]))return!![];}return![];}function _0x3495e8(_0x2357f7){const _0x10f5f4=_0x1b2b60;if(!_0x2357f7||typeof _0x2357f7!==_0x10f5f4(0x1be))return{};const _0x5c33dd={};for(const _0x54f0f7 of Object['keys'](_0x2357f7)){if(_0x54f0f7===_0x10f5f4(0x7f7)||_0x54f0f7===_0x10f5f4(0x175))continue;_0x5c33dd[_0x54f0f7]=_0x2357f7[_0x54f0f7];}return _0x5c33dd;}function _0x52d9b9(_0x392415){const _0x151b5a=_0x1b2b60;if(!_0x392415||typeof _0x392415!=='object')return{};const _0x3219cb={};for(const _0x271b8d of Object['keys'](_0x392415)){if(typeof _0x392415[_0x271b8d]===_0x151b5a(0x6d8))continue;_0x3219cb[_0x271b8d]=_0x392415[_0x271b8d];}return _0x3219cb;}return env={'OKDBEnv':_0x4dc0fd,'HIGH_SENTINEL':_0x594408},env;}var unsupported,hasRequiredUnsupported;function requireUnsupported(){if(hasRequiredUnsupported)return unsupported;hasRequiredUnsupported=0x1;const {NotImplementedNative:_0x5897c0}=requireErrors();function _0xa6aecb(_0x4aec3d){const _0x5e4f5b=_0x338cea=>{throw new _0x5897c0(_0x4aec3d,_0x338cea);};return new Proxy(function(){},{'get'(_0x3eaecb,_0x4b30af){const _0x538b36=_0x3ebb;if(typeof _0x4b30af===_0x538b36(0x856)||_0x4b30af===_0x538b36(0x2b0)||_0x4b30af==='toJSON'||_0x4b30af===_0x538b36(0x89a))return undefined;if(_0x4b30af===_0x538b36(0x715))return _0x4aec3d;return(..._0x2a54eb)=>_0x5e4f5b(_0x4aec3d+'.'+String(_0x4b30af));},'apply'(){_0x5e4f5b(_0x4aec3d);},'set'(){return!![];}});}return unsupported={'notImplemented':_0xa6aecb},unsupported;}var http,hasRequiredHttp;function requireHttp(){const _0x111a97=_0x2ec26e;if(hasRequiredHttp)return http;hasRequiredHttp=0x1;function _0x4eef5b(_0x590fe0,_0x112af9={}){const _0x238bb5=_0x3ebb,_0x3f2045=[];let _0x5728d7=![];_0x590fe0[_0x238bb5(0x66c)]('/*')&&(_0x5728d7=!![],_0x590fe0=_0x590fe0[_0x238bb5(0x5ca)](0x0,-0x2),_0x3f2045[_0x238bb5(0x2fb)]('*'));let _0x5d0c89=_0x590fe0['replace'](/\/+$/,'')[_0x238bb5(0x861)](/\[([^\]]*)\]/g,(_0x5ce064,_0x3a1a16)=>{const _0x3c9115=_0x3a1a16['replace'](/\/:(\w+)(?:=([^/\]\s]*))?/g,(_0x37f041,_0x5c7975)=>{const _0x46c0b0=_0x3ebb;return _0x3f2045['push'](_0x5c7975),_0x46c0b0(0x512);});return'(?:'+_0x3c9115+')?';})[_0x238bb5(0x861)](/\/:(\w+)/g,(_0x4c3d19,_0x1c56af)=>{const _0x14f3ee=_0x238bb5;return _0x3f2045[_0x14f3ee(0x2fb)](_0x1c56af),_0x14f3ee(0x512);});if(_0x5d0c89==='')_0x5d0c89='/';return{'keys':_0x3f2045,'defaults':_0x112af9||{},'wildcard':_0x5728d7,'regex':new RegExp('^'+_0x5d0c89+(_0x5728d7?_0x238bb5(0x81d):'')+'/?$')};}const _0x121e3e=require$$0$3,{PassThrough:_0x1f378f}=require$$1;function _0x3b4d03(_0x34b3a4){const _0x2a2f4e=_0x3ebb,_0x3b76ea=_0x34b3a4[_0x2a2f4e(0x697)](':'),_0x13b825=_0x34b3a4['slice'](0x0,_0x3b76ea)[_0x2a2f4e(0x861)](/^\[|\]$/g,'');return{'address':_0x13b825,'family':_0x13b825[_0x2a2f4e(0x1ac)](':')?_0x2a2f4e(0x442):_0x2a2f4e(0x596),'port':Number(_0x34b3a4['slice'](_0x3b76ea+0x1))};}class _0x5226bd extends _0x121e3e[_0x111a97(0x605)]{constructor(_0x507543,_0x3e296b){const _0x804520=_0x111a97;super(),this[_0x804520(0x322)]=_0x507543,this['_addr']=_0x3b4d03(_0x3e296b),this[_0x804520(0x558)]=!![],this[_0x804520(0x290)]=setInterval(()=>{},0x7fffffff);}get[_0x111a97(0x558)](){const _0x3b4f4f=_0x111a97;return this[_0x3b4f4f(0x1ec)];}set[_0x111a97(0x558)](_0x52fb5d){const _0x526db5=_0x111a97;this[_0x526db5(0x1ec)]=_0x52fb5d;}[_0x111a97(0x78f)](){const _0x50091b=_0x111a97;return this['listening']?{...this[_0x50091b(0x432)]}:null;}[_0x111a97(0x41f)](){const _0x41d71c=_0x111a97;if(this[_0x41d71c(0x290)])clearInterval(this[_0x41d71c(0x290)]);this[_0x41d71c(0x290)]=null;}[_0x111a97(0x5a1)](_0x50e646){const _0x191b7a=_0x111a97;this[_0x191b7a(0x41f)]();const _0x5ae4a2=this[_0x191b7a(0x322)][_0x191b7a(0x5a1)]();if(_0x50e646)_0x5ae4a2[_0x191b7a(0x2b0)](()=>_0x50e646(),_0x50e646);return this;}['ref'](){const _0x3ca1b4=_0x111a97;return this[_0x3ca1b4(0x290)]?.[_0x3ca1b4(0x8a8)](),this;}['unref'](){const _0x27b643=_0x111a97;return this[_0x27b643(0x290)]?.[_0x27b643(0x702)](),this;}}class _0x2bda8b{constructor(_0x88a4e9){const _0x23dcc4=_0x111a97;this['okdb']=_0x88a4e9,this['servers']=[],this[_0x23dcc4(0x1e2)]={'cookieName':_0x23dcc4(0x7d6)};}get[_0x111a97(0x7e7)](){const _0x3337f2=_0x111a97;return this[_0x3337f2(0x597)][0x0]||null;}['_n'](_0x24e896,_0x4d455b=[]){const _0x865326=_0x111a97;return this['okdb'][_0x865326(0x406)]('http',null,_0x24e896,_0x4d455b,!![]);}async[_0x111a97(0x4aa)](_0x4c75d6,_0x4c4072,_0x1281ce={},_0x5ed609={}){const _0x5b5ee4=_0x111a97;let _0x1973cb=await this['_n'](_0x5b5ee4(0x4aa),[_0x4c75d6,_0x4c4072,_0x1281ce,_0x5ed609]),_0x2d8629=0x0;return _0x1973cb=await this[_0x5b5ee4(0x6f5)](_0x1973cb,_0x2d8629),_0x1973cb;}async[_0x111a97(0x6f5)](_0x5abfe2,_0x240a43){const _0x10dea7=_0x111a97;while(_0x5abfe2&&typeof _0x5abfe2===_0x10dea7(0x1be)&&_0x5abfe2[_0x10dea7(0x448)]!==undefined){await new Promise(_0x261e39=>setTimeout(_0x261e39,_0x240a43<0x5?0x1:0x5)),_0x240a43++,_0x5abfe2=await this['_n'](_0x10dea7(0x19f),[_0x5abfe2[_0x10dea7(0x448)]]);}if(_0x5abfe2&&_0x5abfe2[_0x10dea7(0x2d5)]&&typeof _0x5abfe2[_0x10dea7(0x2d5)]===_0x10dea7(0x1be)&&_0x5abfe2[_0x10dea7(0x2d5)][_0x10dea7(0x49f)]!==undefined)_0x5abfe2['body']=this['_stream'](_0x5abfe2[_0x10dea7(0x2d5)][_0x10dea7(0x49f)]);return _0x5abfe2;}[_0x111a97(0x52b)](_0x220b81){const _0xf368d6=_0x111a97,_0x2d9a9d=new _0x1f378f();let _0x445d1d=![];const _0x8a8f19=()=>{const _0x332d13=_0x3ebb;if(_0x445d1d)return;_0x445d1d=!![],clearTimeout(_0x5c8553),setImmediate(()=>this[_0x332d13(0x21e)]['_isOpen']&&this['okdb'][_0x332d13(0x49e)](_0x332d13(0x449),null,'streamClose',[_0x220b81],!![]));};let _0x5c8553=null;const _0x3432ad=()=>{const _0xe011db=_0x3ebb;if(_0x445d1d)return;let _0x431dab;try{_0x431dab=this['okdb'][_0xe011db(0x49e)](_0xe011db(0x449),null,_0xe011db(0x86e),[_0x220b81],!![]);}catch{_0x431dab={'chunks':[],'end':!![]};}for(const _0x57c99c of _0x431dab['chunks'])_0x2d9a9d['write'](_0x57c99c);if(_0x431dab[_0xe011db(0x330)]){_0x445d1d=!![],_0x2d9a9d[_0xe011db(0x330)]();return;}_0x5c8553=setTimeout(_0x3432ad,_0x431dab[_0xe011db(0x4e1)][_0xe011db(0x6cf)]?0x0:0xa);};_0x2d9a9d['on'](_0xf368d6(0x5a1),_0x8a8f19),_0x3432ad();if(!_0x445d1d)_0x3432ad();if(_0x445d1d)_0x2d9a9d['destroy']();else{if(!_0x5c8553)_0x5c8553=setTimeout(_0x3432ad,0x0);}return _0x2d9a9d;}['add'](_0x3d9b6a,_0x363c78,_0x3c9d87,_0x2f790e={}){const _0x8a5a43=_0x111a97;return this[_0x8a5a43(0x21e)][_0x8a5a43(0x49e)](_0x8a5a43(0x449),null,_0x8a5a43(0x7df),[_0x3d9b6a,_0x363c78,_0x3c9d87,_0x2f790e,![]],!![]),this;}['addRaw'](_0x26e1ab,_0x8c76aa,_0x1d9802,_0x1652e5={}){const _0x4abb12=_0x111a97;return this[_0x4abb12(0x21e)][_0x4abb12(0x49e)](_0x4abb12(0x449),null,_0x4abb12(0x7df),[_0x26e1ab,_0x8c76aa,_0x1d9802,_0x1652e5,!![]],!![]),this;}[_0x111a97(0x784)](_0x1531dc,_0x562f7a){const _0x59333f=_0x111a97,_0x18981d=async _0x4fb158=>{const _0x5ddd0a=_0x3ebb,_0xbe69a1={'status':undefined,'headers':[],'hasBody':![],'body':undefined},_0x22a94a={'status'(_0x481e3a){const _0x3ec432=_0x3ebb;return _0xbe69a1[_0x3ec432(0x1c9)]=_0x481e3a,_0x22a94a;},'setHeader'(_0x4f602e,_0x37358d){const _0x4ca9f8=_0x3ebb;_0xbe69a1[_0x4ca9f8(0x594)][_0x4ca9f8(0x2fb)]([_0x4f602e,_0x37358d]);},'send'(_0x2fc296){const _0x554fd3=_0x3ebb;_0xbe69a1[_0x554fd3(0x353)]=!![],_0xbe69a1[_0x554fd3(0x2d5)]=_0x2fc296;}};_0x4fb158[_0x5ddd0a(0x3f9)]={'remoteAddress':_0x4fb158[_0x5ddd0a(0x32e)]??null};const _0x192c2c=await _0x562f7a(_0x4fb158,_0x22a94a);return{'allowed':_0x192c2c!==![],..._0xbe69a1};};this[_0x59333f(0x21e)]['_call']('http',null,_0x59333f(0x784),[_0x4e27b5=>!!_0x1531dc(_0x4e27b5),_0x18981d],!![]);}[_0x111a97(0x69a)](_0xae1ca1){const _0x1b7c5b=_0x111a97,_0x11976e=async _0x27fe11=>{const _0x1cdc30=_0x3ebb,_0x53a6d9={'status':undefined,'headers':[],'hasBody':![],'body':undefined};let _0x59b4e6=![];const _0x5606f2={'status'(_0x4ee8a2){return _0x53a6d9['status']=_0x4ee8a2,_0x5606f2;},'setHeader'(_0x21105b,_0x391047){const _0x31a344=_0x3ebb;_0x53a6d9['headers'][_0x31a344(0x2fb)]([_0x21105b,_0x391047]);},'send'(_0x3c7117){const _0x358b62=_0x3ebb;_0x53a6d9[_0x358b62(0x353)]=!![],_0x53a6d9[_0x358b62(0x2d5)]=_0x3c7117;}};return _0x27fe11[_0x1cdc30(0x3f9)]={'remoteAddress':_0x27fe11['remoteAddress']??null},await _0xae1ca1(_0x27fe11,_0x5606f2,async()=>{_0x59b4e6=!![];}),{'allowed':_0x59b4e6,..._0x53a6d9};};return this[_0x1b7c5b(0x21e)][_0x1b7c5b(0x49e)](_0x1b7c5b(0x449),null,'use',[_0x11976e],!![]),this;}get[_0x111a97(0x269)](){const _0x24fa14=_0x111a97;return this['okdb'][_0x24fa14(0x49e)](_0x24fa14(0x449),null,_0x24fa14(0x767),[],![]);}set[_0x111a97(0x269)](_0x20d4cf){const _0x8d0ba3=_0x111a97;this[_0x8d0ba3(0x21e)][_0x8d0ba3(0x49e)](_0x8d0ba3(0x449),null,_0x8d0ba3(0x16f),[Number(_0x20d4cf)],![]);}[_0x111a97(0x5dd)](_0x2e9391,_0x23ad58,_0x14b3ff={}){const _0x19ba09=_0x111a97,_0x53d136=new Map(),_0x441930=(_0x37a83e,_0x351689)=>this['okdb']['_call'](_0x19ba09(0x449),null,_0x37a83e,_0x351689,![]),_0x579458=_0x24fffa=>{const _0x5974f9=_0x19ba09,{connId:_0x1ba2f1}=_0x24fffa;if(_0x24fffa[_0x5974f9(0x54a)]){const _0x5d1d9a=_0x53d136['get'](_0x1ba2f1);_0x53d136[_0x5974f9(0x82f)](_0x1ba2f1);if(typeof _0x5d1d9a===_0x5974f9(0x6d8))_0x5d1d9a();return;}const _0x3202c4=(_0x2db2e9,_0x22250f,_0x52179b={})=>{const _0x2d5d85=_0x5974f9;try{_0x441930(_0x2d5d85(0x679),[_0x1ba2f1,_0x2db2e9,_0x22250f,_0x52179b]);}catch{}},_0x8b5f9a=()=>{const _0x557687=_0x5974f9;try{_0x441930(_0x557687(0x3dc),[_0x1ba2f1]);}catch{}},_0x47cd6c=(_0x4eed39,_0x1c7f18)=>_0x441930(_0x5974f9(0x7dc),[_0x1ba2f1,String(_0x4eed39),String(_0x1c7f18)]),_0x35827d={'auth':{'open':_0x24fffa[_0x5974f9(0x38e)],'isAuthenticated':_0x24fffa[_0x5974f9(0x501)]}},_0x1c09ca=_0x23ad58({'send':_0x3202c4,'close':_0x8b5f9a,'params':_0x24fffa[_0x5974f9(0x55f)]??{},'query':_0x24fffa['query']??{},'headers':_0x24fffa['headers']??{},'context':_0x35827d,'setHeader':_0x47cd6c});_0x53d136['set'](_0x1ba2f1,_0x1c09ca);};return this[_0x19ba09(0x21e)][_0x19ba09(0x49e)](_0x19ba09(0x449),null,_0x19ba09(0x5dd),[_0x2e9391,_0x579458,_0x14b3ff],!![]),this;}get[_0x111a97(0x843)](){return this['listRoutes']();}[_0x111a97(0x7a4)](){const _0x408c08=_0x111a97;return this[_0x408c08(0x21e)][_0x408c08(0x49e)](_0x408c08(0x449),null,_0x408c08(0x7a4),[],![])[_0x408c08(0x1a7)](_0x5b5800=>({..._0x5b5800,'matcher':_0x4eef5b(_0x5b5800[_0x408c08(0x39d)],_0x5b5800[_0x408c08(0x6fd)])}));}[_0x111a97(0x1c0)](_0x39290c,_0x120b74){const _0x3d1f66=_0x111a97;return this[_0x3d1f66(0x21e)][_0x3d1f66(0x49e)](_0x3d1f66(0x449),null,_0x3d1f66(0x1c0),[_0x39290c,_0x120b74],![]);}[_0x111a97(0x3da)](_0x461f3d,_0x1436fe={}){const _0x233717=_0x111a97;if(typeof _0x1436fe===_0x233717(0x4bb)||Array[_0x233717(0x69e)](_0x1436fe))_0x1436fe={'host':_0x1436fe};_0x1436fe=_0x1436fe??{};if((Number(_0x1436fe[_0x233717(0x268)])||0x0)>=0x1||_0x1436fe['makeOkdb']!=null||_0x1436fe[_0x233717(0x1f3)]!=null){const _0x4925a1=new Error('http.listen({workers/makeOkdb/primaryOkdb})\x20is\x20no\x20longer\x20supported\x20in\x20the\x20'+_0x233717(0x201)+_0x233717(0x392)+_0x233717(0x31f));_0x4925a1['code']=_0x233717(0x421);throw _0x4925a1;}if(this[_0x233717(0x597)][_0x233717(0x6cf)])throw new Error(_0x233717(0x69d));const _0x5b9464=_0x1436fe[_0x233717(0x2f9)]==null?[undefined]:[][_0x233717(0x79b)](_0x1436fe[_0x233717(0x2f9)]);if(!_0x5b9464['length']||_0x5b9464[_0x233717(0x786)](_0x579840=>_0x579840!==undefined&&(typeof _0x579840!==_0x233717(0x4bb)||!_0x579840))){const _0x5b19b5=new Error(_0x233717(0x7ad));_0x5b19b5['code']=_0x233717(0x275);throw _0x5b19b5;}const _0x32c96d=require$$2[_0x233717(0x1fd)]?{..._0x1436fe,'reuseport':!![]}:_0x1436fe,_0x4ba405=this[_0x233717(0x21e)][_0x233717(0x49e)](_0x233717(0x449),null,_0x233717(0x3da),[_0x461f3d,_0x32c96d],!![]),_0x1be03b=_0x4ba405[_0x233717(0x548)]??_0x461f3d,_0x280a6d=_0x1436fe[_0x233717(0x2f9)]==null?':'+_0x1be03b:_0x5b9464[_0x233717(0x1a7)](_0x3217f9=>(_0x3217f9['includes'](':')?'['+_0x3217f9+']':_0x3217f9)+':'+_0x1be03b)[_0x233717(0x3d2)](',\x20');try{this[_0x233717(0x21e)][_0x233717(0x196)][_0x233717(0x84a)](_0x280a6d);if(!require(_0x233717(0x4c2))[_0x233717(0x1fd)])this[_0x233717(0x21e)]['processes']['register']({'kind':'standalone','listenAddr':_0x280a6d});}catch{}this['servers']=_0x4ba405['addrs'][_0x233717(0x1a7)](_0x358078=>new _0x5226bd(this,_0x358078));const _0xe0729f=this[_0x233717(0x597)][0x0];return process[_0x233717(0x343)](()=>this[_0x233717(0x597)][_0x233717(0x169)](_0x4b2d2d=>_0x4b2d2d[_0x233717(0x6d6)]('listening'))),_0xe0729f;}async['close'](_0xe777e1={}){const _0x98691b=_0x111a97,_0x1af50f=this[_0x98691b(0x597)];this[_0x98691b(0x597)]=[];if(require$$2['isWorker']&&!process[_0x98691b(0x276)]&&_0xe777e1[_0x98691b(0x825)]==null)_0xe777e1={..._0xe777e1,'forceAfterMs':Infinity};if(_0x1af50f[_0x98691b(0x6cf)]){const _0x1c7621=_0xe777e1[_0x98691b(0x825)]===Infinity?Infinity:Number[_0x98691b(0x5ef)](_0xe777e1[_0x98691b(0x825)])?Math[_0x98691b(0x3e7)](0x0,_0xe777e1[_0x98691b(0x825)]):0x3e8,_0x533edb=Date['now']();while(this[_0x98691b(0x21e)][_0x98691b(0x49e)](_0x98691b(0x449),null,'pendingResponses',[],!![])>0x0&&Date[_0x98691b(0x89e)]()-_0x533edb<_0x1c7621)await new Promise(_0x38f55a=>setTimeout(_0x38f55a,0x5));_0xe777e1={..._0xe777e1,'forceAfterMs':_0x1c7621===Infinity?0x3e8:Math[_0x98691b(0x3e7)](0x0,_0x1c7621-(Date[_0x98691b(0x89e)]()-_0x533edb))};}await this['_n'](_0x98691b(0x5a1),[_0xe777e1]);for(const _0x4a03bc of _0x1af50f){_0x4a03bc[_0x98691b(0x41f)](),_0x4a03bc[_0x98691b(0x558)]=![],_0x4a03bc[_0x98691b(0x6d6)](_0x98691b(0x5a1));}}}return http={'OKDBHttp':_0x2bda8b},http;}var fts,hasRequiredFts;function requireFts(){const _0xfa9883=_0x2ec26e;if(hasRequiredFts)return fts;hasRequiredFts=0x1;const _0x5c6369=_0x77f962=>(_0x77f962&&typeof _0x77f962===_0xfa9883(0x1be)?_0x77f962[_0xfa9883(0x6fe)]:_0x77f962)??_0xfa9883(0x822);class _0xfc9bef{constructor(_0x8dbe7){this['okdb']=_0x8dbe7;}['_n'](_0x15fac2,_0x25859d,_0x4e4d74=![]){const _0x14b37a=_0xfa9883;return this[_0x14b37a(0x21e)][_0x14b37a(0x49e)](_0x14b37a(0x492),null,_0x15fac2,_0x25859d,_0x4e4d74);}[_0xfa9883(0x321)](_0x1c066b,_0x22f1c7){const _0x25013a=_0xfa9883;return this[_0x25013a(0x21e)][_0x25013a(0x406)]('fts',null,_0x1c066b,_0x22f1c7,!![]);}get[_0xfa9883(0x50f)](){const _0x145e83=this,_0x58c59e=_0x560059=>{const _0x5e00cc=_0x3ebb,_0x39d8e9=_0x560059['indexOf'](':'),_0x299db2=_0x560059[_0x5e00cc(0x5ca)](0x0,_0x39d8e9),_0x43978b=_0x145e83[_0x5e00cc(0x21e)][_0x5e00cc(0x8a5)][_0x5e00cc(0x63c)](_0x299db2);if(!_0x43978b)return undefined;const _0x2c78b5=_0x43978b[_0x5e00cc(0x3e8)][_0x5e00cc(0x338)]()[_0x5e00cc(0x21c)](_0xc0ecc9=>_0xc0ecc9['cursorKey']===_0x5e00cc(0x21f)+_0x560059);if(!_0x2c78b5)return undefined;return _0x43978b[_0x5e00cc(0x3e8)][_0x5e00cc(0x1c1)](_0x2c78b5['id'],_0x2c78b5['cursorKey']);};return{'get':_0x58c59e,'has':_0x273ce2=>!!_0x58c59e(_0x273ce2)};}get[_0xfa9883(0x2ea)](){return[];}[_0xfa9883(0x4f9)](){const _0x3f2d40=_0xfa9883,{RawDb:_0x424121}=requireRawdb();return new _0x424121(this[_0x3f2d40(0x21e)][_0x3f2d40(0x851)],_0x3f2d40(0x5ec));}['has'](_0x225fa3,_0x376560,_0x1c1691){const _0x281030=_0xfa9883;return this['_n'](_0x281030(0x51e),[_0x225fa3,_0x376560,_0x5c6369(_0x1c1691)]);}[_0xfa9883(0x1c9)](_0x1604a6,_0x40ab79,_0xa2e191){return this['_n']('status',[_0x1604a6,_0x40ab79,_0x5c6369(_0xa2e191)]);}['list'](_0x11484a,_0x46321f){const _0x1f9243=_0xfa9883;return this['_n'](_0x1f9243(0x338),[_0x11484a,_0x5c6369(_0x46321f)]);}async[_0xfa9883(0x4cc)](_0x4589c8,_0x580975,_0x249843,_0x279eab,_0x3a2c9f){const _0x3fb5cc=_0xfa9883,_0x237989=(_0x3d1cf3,_0x1f756f)=>this[_0x3fb5cc(0x21e)][_0x3fb5cc(0x406)](_0x3fb5cc(0x492),null,_0x3d1cf3,_0x1f756f,!![],![]),_0x47c596=Date['now']()+0x1d4c0;let _0x558bf4=_0x4589c8,_0x183a57=_0x580975;for(;;){try{return await _0x237989(_0x558bf4,_0x183a57);}catch(_0x249808){if(_0x249808[_0x3fb5cc(0x748)]==='FTS_BUILD_CONTINUE'){_0x558bf4=_0x3fb5cc(0x67b),_0x183a57=[_0x249843,_0x279eab,_0x5c6369(_0x3a2c9f)];if(_0x249808['details']&&_0x249808[_0x3fb5cc(0x79f)]['wait'])await new Promise(_0x5eee99=>setTimeout(_0x5eee99,0x2));continue;}if(_0x249808[_0x3fb5cc(0x748)]!==_0x3fb5cc(0x1ea)||Date[_0x3fb5cc(0x89e)]()>=_0x47c596)throw _0x249808;}await new Promise(_0x55232c=>setTimeout(_0x55232c,0x5)),_0x558bf4=_0x3fb5cc(0x4df),_0x183a57=[_0x249843,_0x279eab,!![],_0x5c6369(_0x3a2c9f)];}}async[_0xfa9883(0x690)](_0x24cf41,_0x4ad5e6,_0x36314f,_0x39f75f,_0x25d407){const _0x29615b=_0xfa9883;return this['_build'](_0x29615b(0x690),[_0x24cf41,_0x4ad5e6,_0x36314f,_0x39f75f,_0x5c6369(_0x25d407)],_0x24cf41,_0x4ad5e6,_0x25d407);}async[_0xfa9883(0x303)](_0x21d055,_0xcd9d4e,_0xb96b0c){const _0x4805df=_0xfa9883;return this[_0x4805df(0x321)]('drop',[_0x21d055,_0xcd9d4e,_0x5c6369(_0xb96b0c)]);}async[_0xfa9883(0x766)](_0x43ae5c,_0x184a3b,_0x3cf7df,_0x2f1dba){const _0xfe0a8=_0xfa9883;return this['_build'](_0xfe0a8(0x766),[_0x43ae5c,_0x184a3b,_0x3cf7df,_0x5c6369(_0x2f1dba)],_0x43ae5c,_0x184a3b,_0x2f1dba);}async[_0xfa9883(0x4df)](_0x1f85c9,_0x5517d9,_0x555582,_0x345578){const _0x38c00b=_0xfa9883;return this[_0x38c00b(0x4cc)]('reset',[_0x1f85c9,_0x5517d9,_0x555582,_0x5c6369(_0x345578)],_0x1f85c9,_0x5517d9,_0x345578);}async[_0xfa9883(0x25b)](_0x1a9552,_0xaac99b,_0x4996c4,_0x319d97=0x1d4c0){const _0x3cd7e6=_0xfa9883,_0x457b2a=Date[_0x3cd7e6(0x89e)]()+_0x319d97;for(;;){try{return await this[_0x3cd7e6(0x321)](_0x1a9552,[..._0xaac99b,0x1]);}catch(_0x52847d){if(_0x52847d[_0x3cd7e6(0x748)]!==_0x4996c4||Date[_0x3cd7e6(0x89e)]()>=_0x457b2a)throw _0x52847d;}await new Promise(_0xb06a9b=>setTimeout(_0xb06a9b,0x2));}}async[_0xfa9883(0x288)](_0x43c961,_0x3f6988,_0xf82a8){const _0xaa5c15=_0xfa9883;return this[_0xaa5c15(0x25b)]('ready',[_0x43c961,null,_0x5c6369(_0xf82a8)],_0xaa5c15(0x4dc));}async[_0xfa9883(0x42c)](_0x2c4a33,_0x29652){const _0x239f2d=_0xfa9883;return this[_0x239f2d(0x25b)](_0x239f2d(0x42c),[_0x2c4a33,_0x5c6369(_0x29652)],_0x239f2d(0x6bc));}async['compact'](_0x4f27a0,_0x3d3371){const _0x4f28bc=_0xfa9883;return this[_0x4f28bc(0x321)](_0x4f28bc(0x2ab),[_0x4f27a0,_0x5c6369(_0x3d3371)]);}async['process'](_0x3ec93c={}){const _0x489640=_0xfa9883;return this[_0x489640(0x321)]('process',[_0x3ec93c]);}async['compactStorage'](_0x1f1ac5){const _0x54e5a3=_0xfa9883;return this[_0x54e5a3(0x321)](_0x54e5a3(0x64c),[_0x5c6369(_0x1f1ac5)]);}['envSize'](_0x457aa1){const _0x305b6d=_0xfa9883;return this['_n'](_0x305b6d(0x317),[_0x5c6369(_0x457aa1)]);}[_0xfa9883(0x58c)](_0x1f8351,_0x4edee4,_0x36138f,_0x22a20d,_0x2771cf){const _0x4b7e0e=_0xfa9883;return this['_n'](_0x4b7e0e(0x58c),[_0x1f8351,_0x4edee4,_0x36138f,_0x22a20d||{},_0x5c6369(_0x2771cf)]);}[_0xfa9883(0x191)](_0x5546d7,_0x1afdc8,_0x1fd244,_0x281d66,_0x4b7f20,_0x4a4835){const _0x2d7835=_0xfa9883;return this['_n'](_0x2d7835(0x191),[_0x5546d7,_0x1afdc8,_0x1fd244,_0x281d66||{},_0x5c6369(_0x4b7f20),_0x4a4835]);}['_searchWithScores'](_0x234d5a,_0x46094e,_0x50f03a,_0x3e3a1e,_0x1c95a7){return this['_n']('searchWithScores',[_0x234d5a,_0x46094e,_0x50f03a,_0x3e3a1e||{},_0x5c6369(_0x1c95a7)]);}[_0xfa9883(0x6e3)](){return this['_n']('listFtsEnvs',[]);}async[_0xfa9883(0x56b)](){const _0x26b274=_0xfa9883;return this[_0x26b274(0x321)](_0x26b274(0x56b),[]);}}return fts={'OKDBFts':_0xfc9bef},fts;}var embeddings,hasRequiredEmbeddings;function requireEmbeddings(){const _0x5086bf=_0x2ec26e;if(hasRequiredEmbeddings)return embeddings;hasRequiredEmbeddings=0x1;const {OKDBError:_0x12dbfc,invalidArgument:_0x47e8e4}=requireErrors();requireBridge();const _0x59b008=Object[_0x5086bf(0x62b)]({'EMBEDDER':'embedder','INDEXER':'indexer','SEARCH':_0x5086bf(0x395),'WORKER':'embed-worker'}),_0xbb6cff=_0x71a329=>typeof _0x71a329===_0x5086bf(0x4bb)||_0x71a329==null?_0x71a329:Array[_0x5086bf(0x170)](_0x71a329);class _0x5b6221{constructor(_0x170fc9){const _0xfea435=_0x5086bf;this[_0xfea435(0x21e)]=_0x170fc9,this[_0xfea435(0x4e4)]=new Map(),this[_0xfea435(0x424)]=new Map(),this[_0xfea435(0x5ce)]=new Map();}['_n'](_0x21a875,_0x5da881=[],_0x34eec0=!![]){const _0x3b8e83=_0x5086bf;return this[_0x3b8e83(0x21e)][_0x3b8e83(0x49e)](_0x3b8e83(0x422),null,_0x21a875,_0x5da881,_0x34eec0);}[_0x5086bf(0x321)](_0x2fc8ae,_0x1766be=[]){const _0x26e45a=_0x5086bf;return this[_0x26e45a(0x21e)][_0x26e45a(0x406)](_0x26e45a(0x422),null,_0x2fc8ae,_0x1766be,!![]);}[_0x5086bf(0x4f3)](_0x368d22){const _0x29961d=_0x5086bf;return _0x368d22?this[_0x29961d(0x21e)][_0x29961d(0x1a5)][_0x29961d(0x4f3)](_0x368d22):null;}[_0x5086bf(0x416)](_0x29e1d3,_0x55f7c7,_0x16643c={}){const _0x5bd781=_0x5086bf;if(typeof _0x55f7c7!==_0x5bd781(0x6d8))throw new _0x12dbfc(_0x5bd781(0x4d4),_0x5bd781(0x694),{'name':_0x29e1d3});this[_0x5bd781(0x4e4)][_0x5bd781(0x328)](_0x29e1d3,_0x55f7c7),this[_0x5bd781(0x424)][_0x5bd781(0x328)](_0x29e1d3,_0x16643c);const _0x6936db=this[_0x5bd781(0x21e)],_0x36828d=_0x21cfd4=>_0x55f7c7(_0x21cfd4,_0x6936db);_0x36828d['__okdb']=_0x6936db,this['_n']('registerEmbedderFactory',[_0x29e1d3,_0x36828d,_0x16643c??{}],![]);}[_0x5086bf(0x529)](_0x12f5f7){const _0x3733c2=_0x5086bf,_0x1434c7=this[_0x3733c2(0x4e4)][_0x3733c2(0x63c)](_0x12f5f7);if(_0x1434c7)return _0x1434c7;if(!this['_n']('hasEmbedderFactory',[_0x12f5f7],![]))return null;const _0x19b773=this;return(_0x3c9518={})=>{const _0x462d64=_0x3733c2,_0x2ae69a=_0x19b773['_n']('embedderNew',[_0x12f5f7,_0x3c9518],![]),_0x385a9e=_0x19b773['_n'](_0x462d64(0x29d),[_0x2ae69a],![]),_0x2cbcd9=(_0x3cd5c1,_0x1773d2)=>_0x19b773['_n'](_0x462d64(0x781),[_0x2ae69a,_0x3cd5c1,_0x1773d2],![]),_0x364ce3={'embed':async _0x28d703=>Float32Array[_0x462d64(0x170)](_0x2cbcd9('embed',_0x28d703)),'start':async()=>_0x2cbcd9(_0x462d64(0x898)),'stop':async()=>{const _0x5f273a=_0x462d64;_0x2cbcd9(_0x5f273a(0x893)),_0x2cbcd9(_0x5f273a(0x209));}};if(_0x385a9e)_0x364ce3[_0x462d64(0x4ce)]=async _0x211900=>_0x2cbcd9(_0x462d64(0x4ce),_0x211900)[_0x462d64(0x1a7)](_0x3699b6=>Float32Array['from'](_0x3699b6));return _0x364ce3;};}[_0x5086bf(0x637)](_0x193cfb){const _0xe63f68=_0x5086bf;return this[_0xe63f68(0x424)][_0xe63f68(0x63c)](_0x193cfb)??this['_n'](_0xe63f68(0x637),[_0x193cfb],![])??undefined;}[_0x5086bf(0x4c5)](_0x154f4e,_0x80f50b,_0x3832d4={}){const _0x5377f4=_0x5086bf;if(typeof _0x80f50b!==_0x5377f4(0x6d8))throw new _0x12dbfc(_0x5377f4(0x272),_0x5377f4(0x694),{'name':_0x154f4e});this['_n'](_0x5377f4(0x4c5),[_0x154f4e,(_0x3083ac,_0x24d5fa)=>_0x80f50b(_0x3083ac,_0x24d5fa),_0x3832d4??{}],![]);}[_0x5086bf(0x616)](){const _0x11f5bd=_0x5086bf;return this['_n'](_0x11f5bd(0x616),[],![]);}['registerPreparer'](_0x3277c3,_0x2bddf8){const _0x4ab309=_0x5086bf;if(typeof _0x2bddf8!==_0x4ab309(0x6d8))throw new _0x12dbfc(_0x4ab309(0x6d4),_0x4ab309(0x694),{'name':_0x3277c3});this['_n']('registerPreparer',[_0x3277c3,_0x2bddf8]);}[_0x5086bf(0x2a9)](_0x1dd00b,_0x3c69a8){const _0x5eea12=_0x5086bf;if(typeof _0x3c69a8!==_0x5eea12(0x6d8))throw new _0x12dbfc(_0x5eea12(0x711),_0x5eea12(0x694),{'name':_0x1dd00b});this['_n'](_0x5eea12(0x2a9),[_0x1dd00b,_0x3c69a8]);}['setStorageResolver'](_0x50e132){const _0xca8729=_0x5086bf;if(_0x50e132==null)return this['_n'](_0xca8729(0x2aa),[null],![]);if(typeof _0x50e132!=='function')throw new _0x12dbfc('Storage\x20resolver\x20must\x20be\x20a\x20function',_0xca8729(0x694));const _0x560169=this[_0xca8729(0x21e)];this['_n'](_0xca8729(0x2aa),[_0x35ab55=>_0x50e132(_0x35ab55,_0x560169)],![]);}async[_0x5086bf(0x487)](_0x14a9c7,_0x34508a={},_0x293436={},_0x59fe89=null){const _0x1c2264=_0x5086bf;return this['_wrap'](await this['_nm'](_0x1c2264(0x487),[_0x14a9c7,_0x34508a,_0x293436,_0x59fe89]));}async['createIndexer'](_0x591a35,_0x37a3a4={},_0x1c496c={}){const _0x5c20f5=_0x5086bf;return this[_0x5c20f5(0x4f3)](await this[_0x5c20f5(0x321)](_0x5c20f5(0x683),[_0x591a35,_0x37a3a4,_0x1c496c]));}async[_0x5086bf(0x678)](_0x254713,_0x50bd14={},_0x393afb={}){const _0x260a5c=_0x5086bf;return this[_0x260a5c(0x4f3)](await this[_0x260a5c(0x321)](_0x260a5c(0x678),[_0x254713,_0x50bd14,_0x393afb]));}async['createWorker'](_0x1aeca0,_0x52510f={},_0xa6aedc={}){const _0x182dbd=_0x5086bf;return this[_0x182dbd(0x4f3)](await this['_nm'](_0x182dbd(0x230),[_0x1aeca0,_0x52510f,_0xa6aedc]));}async[_0x5086bf(0x869)](_0x327d82,_0xf1a2f0={},_0x1bd98b={}){const _0x481e99=_0x5086bf,_0x409d0d=await this[_0x481e99(0x321)](_0x481e99(0x869),[_0x327d82,_0xf1a2f0,_0x1bd98b]);return{'embedder':this[_0x481e99(0x4f3)](_0x409d0d[_0x481e99(0x7b6)]),'indexer':this[_0x481e99(0x4f3)](_0x409d0d[_0x481e99(0x25c)]),'worker':this[_0x481e99(0x4f3)](_0x409d0d[_0x481e99(0x217)]),'search':this[_0x481e99(0x4f3)](_0x409d0d['search']),'api':this['_makePipelineApi'](_0x409d0d[_0x481e99(0x72b)],_0x409d0d[_0x481e99(0x7b6)][_0x481e99(0x6fe)],_0x409d0d[_0x481e99(0x217)]?_0x409d0d[_0x481e99(0x217)][_0x481e99(0x6fe)]:_0x409d0d[_0x481e99(0x72b)]+'-worker')};}[_0x5086bf(0x34d)](_0xa23f1d,_0x316ecf){const _0x2e5845=_0x5086bf;return this[_0x2e5845(0x21e)]['engines']['getRunningEngine'](_0xa23f1d,_0x316ecf)?.[_0x2e5845(0x370)]??null;}[_0x5086bf(0x7b6)](_0x18eb9a){const _0x31c3d3=_0x5086bf,_0x5099f3=this[_0x31c3d3(0x34d)](_0x59b008['EMBEDDER'],_0x18eb9a);if(!_0x5099f3)return null;const _0x49e9b8=this,_0x524b15=_0xcb6a22=>Array[_0x31c3d3(0x69e)](_0xcb6a22)&&Array[_0x31c3d3(0x69e)](_0xcb6a22[0x0])?_0xcb6a22[_0x31c3d3(0x1a7)](_0x5380d6=>Float32Array[_0x31c3d3(0x170)](_0x5380d6)):Float32Array[_0x31c3d3(0x170)](_0xcb6a22);return new Proxy(_0x5099f3,{'get'(_0x377fb6,_0x362594){const _0x799d9d=_0x31c3d3;if(_0x362594===_0x799d9d(0x4c6))return _0x49e9b8[_0x799d9d(0x21e)]['_call'](_0x799d9d(0x1a5),null,_0x799d9d(0x5a8),[_0x59b008[_0x799d9d(0x727)],_0x18eb9a,_0x799d9d(0x4c6),[]],![])[_0x799d9d(0x820)];if(_0x362594===_0x799d9d(0x22c))return async _0x355ae5=>_0x524b15(await _0x5099f3[_0x799d9d(0x22c)](_0x355ae5));if(_0x362594===_0x799d9d(0x4ce))return async _0x4f5edc=>(await _0x5099f3[_0x799d9d(0x4ce)](_0x4f5edc))['map'](_0x3eed59=>Float32Array['from'](_0x3eed59));return _0x377fb6[_0x362594];}});}[_0x5086bf(0x25c)](_0x1d0441){const _0x53fe69=_0x5086bf;return this[_0x53fe69(0x34d)](_0x59b008[_0x53fe69(0x363)],_0x1d0441);}[_0x5086bf(0x217)](_0x188eb0){const _0x459d43=_0x5086bf;return this[_0x459d43(0x34d)](_0x59b008['WORKER'],_0x188eb0);}[_0x5086bf(0x58c)](_0x2f5abd){const _0x13d95f=_0x5086bf,_0x37afb8=this[_0x13d95f(0x34d)](_0x59b008[_0x13d95f(0x880)],_0x2f5abd);if(_0x37afb8)return _0x37afb8;return this['_localViewApi'](_0x2f5abd);}['_localViewApi'](_0x2d35c7){const _0x17f2ee=_0x5086bf,_0x5d3067=this;return{'search':(_0x604462,_0x468b15={})=>_0x5d3067[_0x17f2ee(0x21e)][_0x17f2ee(0x406)]('embeddings',null,_0x17f2ee(0x58c),[_0x2d35c7,_0xbb6cff(_0x604462),_0x468b15],![]),'stats':async()=>_0x5d3067['_n'](_0x17f2ee(0x5f0),[_0x2d35c7],![]),'count':()=>_0x5d3067['_n']('viewOp',[_0x2d35c7,'count'],![])};}async[_0x5086bf(0x191)](_0x4ff43f,_0x24e780,_0x55e598={}){const _0x58cdcf=_0x5086bf,{limit:limit=0xa,..._0x260ddb}=_0x55e598;return this[_0x58cdcf(0x321)](_0x58cdcf(0x191),[_0x4ff43f,_0xbb6cff(_0x24e780),{..._0x260ddb,'limit':limit}]);}[_0x5086bf(0x896)](_0x4d6600){const _0x2e37f0=_0x5086bf;return this['_n'](_0x2e37f0(0x896),[_0x4d6600],![]);}[_0x5086bf(0x293)](_0x177a18,_0x3458b7){const _0x4e2814=_0x5086bf;return this['_n'](_0x4e2814(0x6e2),[_0x177a18,_0x3458b7],![]);}[_0x5086bf(0x778)](_0x3fcb1d){const _0x1b44de=_0x5086bf;return this['_n'](_0x1b44de(0x456),[_0x3fcb1d],![]);}async[_0x5086bf(0x4af)](_0x2c90b0){const _0x599b83=_0x5086bf;return this['_n'](_0x599b83(0x354),[_0x2c90b0],![]);}async[_0x5086bf(0x22a)](_0x29b9c8,_0x2e9815={}){const _0x5b3ce5=_0x5086bf;return this['_n'](_0x5b3ce5(0x1bd),[_0x29b9c8,_0x2e9815],![]);}async[_0x5086bf(0x163)](_0x4a6ca3,_0x5b6054){const _0x21d5c0=_0x5086bf;return this['_n'](_0x21d5c0(0x58e),[_0x4a6ca3,_0x5b6054],![]);}async['describeChunk'](_0x4150dc,_0x1ac021,_0x5704b8,_0x2a8824){const _0x5c4ebf=_0x5086bf;if(_0x4150dc!=null&&typeof _0x4150dc[_0x5c4ebf(0x1ac)]!=='function')throw _0x47e8e4(_0x5c4ebf(0x6fe),'a\x20string',_0x4150dc);if(!_0x4150dc||!_0x5704b8)return null;return this['okdb'][_0x5c4ebf(0x406)](_0x5c4ebf(0x422),null,'describeChunk',[_0x4150dc,_0x1ac021,_0x5704b8,_0x2a8824??null],![]);}async[_0x5086bf(0x692)](_0x21dbad,_0x4a5bf4,_0x9b0af8={}){const _0x1fb330=_0x5086bf,_0x51926f={..._0x9b0af8};if(_0x51926f[_0x1fb330(0x6c5)])_0x51926f[_0x1fb330(0x6c5)]=Array[_0x1fb330(0x170)](_0x51926f[_0x1fb330(0x6c5)]);return this['_n']('durableMarkDone',[_0x21dbad,_0x4a5bf4,_0x51926f]);}async[_0x5086bf(0x180)](_0x36ad6b,_0x33b492,_0x3dae4f,_0x3eb855={}){return this['_n']('durableMarkFail',[_0x36ad6b,_0x33b492,_0x3dae4f,_0x3eb855]);}async[_0x5086bf(0x506)](_0x134297,_0x10ecf9){const _0x1f3fee=_0x5086bf;return this['_n'](_0x1f3fee(0x506),[_0x134297,_0x10ecf9]);}async[_0x5086bf(0x62e)](_0x40c781,_0x11b392){return this['_n']('durableRetryDoc',[_0x40c781,_0x11b392]);}async[_0x5086bf(0x250)](_0x254844,_0x434a4f={}){const _0x193381=_0x5086bf;return this['_n'](_0x193381(0x250),[_0x254844,_0x434a4f]);}async[_0x5086bf(0x662)](_0x549b1e){const _0x22b7a2=_0x5086bf;return this[_0x22b7a2(0x321)]('durableRebuild',[_0x549b1e]);}async[_0x5086bf(0x687)](_0x8d2a9e){const _0x3044a6=_0x5086bf;return this['_n'](_0x3044a6(0x6c7),[_0x8d2a9e],![]);}[_0x5086bf(0x18c)](_0x32effb){const _0x30b263=_0x5086bf;return this['_n'](_0x30b263(0x18c),[_0x32effb],![]);}[_0x5086bf(0x415)](){const _0x4543db=_0x5086bf;return this['_n'](_0x4543db(0x415),[],![]);}[_0x5086bf(0x73e)](_0xc83e0a,_0x348215){const _0x52a289=_0x5086bf,_0xe15869=this['_n'](_0x52a289(0x73e),[_0xc83e0a,_0x348215],![]);return _0xe15869==null?null:Float32Array[_0x52a289(0x170)](_0xe15869);}[_0x5086bf(0x32c)](_0x4d8f9d,_0x2f238f){return this['_n']('resolveModelDims',[_0x4d8f9d,_0x2f238f??null],![])??undefined;}async['registerModel'](_0x355c8d,_0x148afa,_0x1c3ec0,_0x42f34c=''){return this['_n']('registerModel',[_0x355c8d,_0x148afa,_0x1c3ec0,_0x42f34c]);}[_0x5086bf(0x5db)](_0x405792=null){const _0x127b80=_0x5086bf;return this['_n'](_0x127b80(0x5db),[_0x405792],![]);}['listProviders'](){const _0x187e7f=_0x5086bf;return this['_n'](_0x187e7f(0x7a1),[],![]);}async[_0x5086bf(0x62c)](_0xb4d34c,_0x195567){const _0x32f4cb=_0x5086bf;return this['_n'](_0x32f4cb(0x728),[_0xb4d34c,_0x195567],![]),this[_0x32f4cb(0x21e)][_0x32f4cb(0x248)]('~'+_0xb4d34c+':emb:'+_0x195567);}async[_0x5086bf(0x18a)](_0x4521ec,_0x3bf9a4){const _0x1e6749=_0x5086bf;return await this[_0x1e6749(0x62c)](_0x4521ec,_0x3bf9a4),{'adapter':_0x118d04=>this['_makeLazyVectorAdapter'](_0x4521ec,_0x3bf9a4,_0x118d04)};}[_0x5086bf(0x6e5)](_0x1b88bf,_0x527d65,_0x3d53c6){const _0x56c523=this;return{async 'put'(_0x1e9aba,_0x31ed18){const _0x11e018=_0x3ebb;return _0x56c523['_n'](_0x11e018(0x5c6),[_0x1b88bf,_0x527d65,_0x3d53c6,_0x1e9aba,Array[_0x11e018(0x170)](_0x31ed18)]);},async 'remove'(_0x5485da){const _0x264259=_0x3ebb;return _0x56c523['_n'](_0x264259(0x41b),[_0x1b88bf,_0x527d65,_0x3d53c6,_0x5485da]);}};}get[_0x5086bf(0x818)](){const _0x12ae81=_0x5086bf,_0x44101a=this,_0x3ba801=()=>_0x44101a['_n'](_0x12ae81(0x43c),[],![]),_0x1f50c6=_0x552f3e=>{const _0x4cdfb6=_0x12ae81,_0x3a8acc=_0x2480b9=>_0x44101a['_n'](_0x4cdfb6(0x676),[_0x552f3e,_0x2480b9],![]);return{'name':_0x552f3e,'_evict':async()=>_0x3a8acc('evict'),'evict':async()=>_0x3a8acc(_0x4cdfb6(0x6fa)),'snapshot':async()=>_0x3a8acc(_0x4cdfb6(0x175)),'_snapshot':async()=>_0x3a8acc(_0x4cdfb6(0x175)),'rebuild':async()=>_0x3a8acc(_0x4cdfb6(0x574)),'stats':()=>_0x3a8acc('stats'),get 'count'(){return _0x3a8acc('count');},get 'loaded'(){return _0x3a8acc('loaded');}};};return{get 'size'(){const _0x1b825f=_0x12ae81;return _0x3ba801()[_0x1b825f(0x6cf)];},'has':_0x249ee2=>_0x3ba801()[_0x12ae81(0x1ac)](_0x249ee2),'get':_0x42f711=>_0x3ba801()[_0x12ae81(0x1ac)](_0x42f711)?_0x1f50c6(_0x42f711):undefined,'keys':()=>_0x3ba801()[Symbol[_0x12ae81(0x56e)]](),'values':()=>_0x3ba801()[_0x12ae81(0x1a7)](_0x1f50c6)[Symbol['iterator']](),[Symbol[_0x12ae81(0x56e)]]:()=>_0x3ba801()[_0x12ae81(0x1a7)](_0x577d07=>[_0x577d07,_0x1f50c6(_0x577d07)])[Symbol[_0x12ae81(0x56e)]]()};}async[_0x5086bf(0x898)](){}async['stop'](){const _0x41fc55=_0x5086bf;this['_n'](_0x41fc55(0x893),[]);}['_makePipelineApi'](_0x13f795,_0xc8d1a6,_0x5c5b56){const _0x33528c=_0x5086bf;return{'search':(_0x4e919f,_0x33774c={})=>{const _0x267e96=_0x3ebb,_0x9fcc49=this['search'](_0x13f795);if(!_0x9fcc49)throw new Error(_0x267e96(0x801)+_0x13f795+'\x22');return _0x9fcc49[_0x267e96(0x58c)](_0x4e919f,_0x33774c);},'searchDocs':(_0x2ea6aa,_0x2c8e02={})=>this[_0x33528c(0x191)](_0x13f795,_0x2ea6aa,_0x2c8e02),'flush':_0x1590fb=>{const _0x48563a=this['indexer'](_0x13f795);if(!_0x48563a)throw new Error('indexer\x20engine\x20not\x20running:\x20\x22'+_0x13f795+'\x22');return _0x48563a['flush'](_0x1590fb);},'stats':async()=>({'embedder':await this[_0x33528c(0x7b6)](_0xc8d1a6)?.['health']?.(),'indexer':await this['indexer'](_0x13f795)?.['stats']?.(),'worker':await this[_0x33528c(0x217)](_0x5c5b56)?.[_0x33528c(0x5e6)]?.(),'search':await this[_0x33528c(0x58c)](_0x13f795)?.[_0x33528c(0x5e6)]?.()})};}}return embeddings={'OKDBEmbeddings':_0x5b6221,'ENGINE_TYPES':_0x59b008},embeddings;}var auth,hasRequiredAuth;function requireAuth(){const _0x58b32b=_0x2ec26e;if(hasRequiredAuth)return auth;hasRequiredAuth=0x1;const {invalidArgument:_0x148aba}=requireErrors();class _0x5c82b0{constructor(_0x5f0eee){this['okdb']=_0x5f0eee;}['_n'](_0x5b16e1,_0x106da4=[],_0x18a8d9=![]){const _0x4dd7e8=_0x3ebb;return this[_0x4dd7e8(0x21e)][_0x4dd7e8(0x49e)](_0x4dd7e8(0x1e2),null,_0x5b16e1,_0x106da4,_0x18a8d9);}['_nm'](_0x27410e,_0xb27ad0=[]){const _0x27499e=_0x3ebb;return this[_0x27499e(0x21e)][_0x27499e(0x406)](_0x27499e(0x1e2),null,_0x27410e,_0xb27ad0,![]);}get[_0x58b32b(0x182)](){return this['_n']('mode');}get[_0x58b32b(0x361)](){return this['_n']('isSetupMode');}get[_0x58b32b(0x807)](){const _0x19432c=_0x58b32b;return this[_0x19432c(0x21e)][_0x19432c(0x66a)][_0x19432c(0x1e2)]?.[_0x19432c(0x745)]||{};}['isOAuthEmailAllowed'](_0x26b8fe){const _0x241491=_0x58b32b;return this['_n'](_0x241491(0x7b9),[_0x26b8fe??null]);}[_0x58b32b(0x723)](_0x1e9555){const _0x35518d=_0x58b32b;return this['_n'](_0x35518d(0x58a),[_0x1e9555??null]);}[_0x58b32b(0x802)](_0x168620){const _0x3d418a=_0x58b32b;return this['_n'](_0x3d418a(0x65b),[_0x168620??null]);}['_isBootstrap'](){const _0x4bef82=_0x58b32b;return this['_n'](_0x4bef82(0x352));}[_0x58b32b(0x71d)](){const _0x53361a=_0x58b32b;return this['_n'](_0x53361a(0x71d));}['getAuthOptions'](){const _0x52f76b=_0x58b32b;return this['_n'](_0x52f76b(0x49b));}['issueToken'](_0x81b706){const _0x1f7ff9=_0x58b32b;return this['_n'](_0x1f7ff9(0x396),[_0x81b706]);}[_0x58b32b(0x4a3)](_0x41bd64){const _0x1b70b7=_0x58b32b;return this['_n'](_0x1b70b7(0x4a3),[_0x41bd64]);}[_0x58b32b(0x3e4)](_0x2b1e66){const _0x1309c2=_0x58b32b;if(_0x2b1e66!=null&&typeof _0x2b1e66!==_0x1309c2(0x4bb))throw _0x148aba(_0x1309c2(0x334),_0x1309c2(0x6f3),_0x2b1e66);return this['_n'](_0x1309c2(0x3e4),[_0x2b1e66??null]);}async[_0x58b32b(0x82c)](){const _0x21e97f=_0x58b32b;return this['_n'](_0x21e97f(0x602),[],!![]);}async[_0x58b32b(0x419)](_0x5182f0){const _0x23fbce=_0x58b32b;return this['_n'](_0x23fbce(0x639),[_0x5182f0]);}async[_0x58b32b(0x19e)](_0x5a035e){const _0x70e3fa=_0x58b32b;return this['_n'](_0x70e3fa(0x846),[_0x5a035e]);}async[_0x58b32b(0x475)](_0x1cd8e8){const _0x53d820=_0x58b32b;return this['_n'](_0x53d820(0x183),[_0x1cd8e8]);}async[_0x58b32b(0x47f)](_0x98178b){const _0x1ce0b0=_0x58b32b,_0x36f6b7=_0x98178b?.[_0x1ce0b0(0x594)]||{};return this['_n'](_0x1ce0b0(0x47f),[{'remoteAddress':_0x98178b[_0x1ce0b0(0x3f9)]?.['remoteAddress']??null,'internal':_0x98178b?.[_0x1ce0b0(0x162)]?.['internal']===!![],'authorization':_0x36f6b7[_0x1ce0b0(0x5a4)]??null,'cookies':_0x98178b?.[_0x1ce0b0(0x57a)]??{}}]);}async[_0x58b32b(0x6ac)](_0x2e71e3,_0x81423d){const _0x371efa=_0x58b32b;return this[_0x371efa(0x321)](_0x371efa(0x6ac),[_0x2e71e3??null,_0x81423d??null]);}async['loginSelect'](_0x46a0ab,_0x287232,_0x3e745e){return this['_nm']('loginSelect',[_0x46a0ab??null,_0x287232??null,_0x3e745e??null]);}[_0x58b32b(0x69f)](){const _0xec7d23=_0x58b32b;return this['_n'](_0xec7d23(0x69f));}[_0x58b32b(0x6f6)](){const _0x5dec77=_0x58b32b;return this['_n'](_0x5dec77(0x6f6));}['createLoginState'](_0x2fc8d5={},_0x8ca27c=0x927c0){const _0x10b854=_0x58b32b;return this['_n'](_0x10b854(0x36c),[_0x2fc8d5,_0x8ca27c]);}[_0x58b32b(0x750)](_0x516f0e){const _0x243534=_0x58b32b;return this['_n'](_0x243534(0x750),[_0x516f0e]);}async[_0x58b32b(0x2ad)](_0x1ae3a0,_0x26ec20={}){const _0x329f0d=_0x58b32b;return this['_nm'](_0x329f0d(0x59c),[_0x1ae3a0,_0x26ec20]);}async[_0x58b32b(0x3a3)](_0x1ef473={}){const _0x2a068f=_0x58b32b;return this['_nm'](_0x2a068f(0x638),[_0x1ef473]);}[_0x58b32b(0x307)](_0x553f52){const _0x41415f=_0x58b32b;return this['_n'](_0x41415f(0x36d),[_0x553f52]);}}return auth={'OKDBAuth':_0x5c82b0},auth;}var sync,hasRequiredSync;function requireSync(){const _0x583d15=_0x2ec26e;if(hasRequiredSync)return sync;hasRequiredSync=0x1;const {RawDb:_0x57a270}=requireRawdb();class _0x556ae0{constructor(_0x4847ca){this['_s']=_0x4847ca;}get[_0x583d15(0x7de)](){const _0x47c9ec=_0x583d15;return this[_0x47c9ec(0x34b)]||(this[_0x47c9ec(0x34b)]=new _0x57a270(this['_s'][_0x47c9ec(0x21e)]['_systemEnv'],'__sync:acks'));}[_0x583d15(0x7c5)](){const _0x330962=_0x583d15;return this[_0x330962(0x7de)];}['_ensureDbs'](){const _0x41e865=_0x583d15;return this[_0x41e865(0x7de)];}['_n'](_0x509113,_0x43e343=[]){const _0xe38bd=_0x583d15;return this['_s']['_n'](_0xe38bd(0x1a1)+_0x509113,_0x43e343);}[_0x583d15(0x44c)](_0x9e4d4a,_0x1ec5c4){const _0x223cd9=_0x583d15;return this['_n'](_0x223cd9(0x44c),[_0x9e4d4a,_0x1ec5c4]);}async['forceResync'](_0x56ae61){const _0x3394ac=_0x583d15;return this['_n'](_0x3394ac(0x5d2),[_0x56ae61]);}[_0x583d15(0x4bf)](){const _0x4f2d52=_0x583d15;return this['_n'](_0x4f2d52(0x4bf));}[_0x583d15(0x528)](_0x21c410){const _0x3f0aed=_0x583d15;return this['_n'](_0x3f0aed(0x528),[_0x21c410]);}async['runGc'](){const _0x43324b=_0x583d15;return this['_n'](_0x43324b(0x4a8));}[_0x583d15(0x1c2)](){return this['_n']('getStatus');}[_0x583d15(0x898)](){return this['_n']('start');}['stop'](){return this['_n']('stop');}get['_gcTimer'](){try{return this['_n']('timerArmed')?{}:null;}catch{return null;}}}class _0x41c7e7{constructor(_0x2c4dc1){const _0xa8c2b0=_0x583d15;this[_0xa8c2b0(0x21e)]=_0x2c4dc1,this['gc']=new _0x556ae0(this);const _0x32f059=this;this[_0xa8c2b0(0x66a)]=new Proxy({},{'get':(_0x56d787,_0x7deb83)=>typeof _0x7deb83===_0xa8c2b0(0x4bb)?_0x32f059['_n'](_0xa8c2b0(0x66a))[_0x7deb83]:undefined,'set':(_0x530ab2,_0x403e97,_0x459b82)=>{const _0x43a0a5=_0xa8c2b0;if(_0x403e97==='address')_0x32f059['_n'](_0x43a0a5(0x2c8),[_0x459b82??null]);else{if(_0x403e97===_0x43a0a5(0x35a))_0x32f059['_n'](_0x43a0a5(0x6ee),[_0x459b82??null]);else{if(_0x403e97==='delta_limit')_0x32f059['_n'](_0x43a0a5(0x38b),[_0x459b82]);}}return!![];},'ownKeys':()=>Object[_0xa8c2b0(0x1d5)](_0x32f059['_n'](_0xa8c2b0(0x66a))),'getOwnPropertyDescriptor':(_0x175c8a,_0x57004c)=>({'enumerable':!![],'configurable':!![],'value':_0x32f059['_n'](_0xa8c2b0(0x66a))[_0x57004c]}),'has':(_0x4013dd,_0x21a38f)=>_0x21a38f in _0x32f059['_n'](_0xa8c2b0(0x66a))});}['_n'](_0x56f2aa,_0x426c89=[],_0x290397=![]){const _0xb0025a=_0x583d15;return this[_0xb0025a(0x21e)][_0xb0025a(0x49e)]('sync',null,_0x56f2aa,_0x426c89,_0x290397);}[_0x583d15(0x321)](_0x5948a6,_0x435680=[]){const _0xe4797c=_0x583d15;return this[_0xe4797c(0x21e)][_0xe4797c(0x406)]('sync',null,_0x5948a6,_0x435680,!![]);}get[_0x583d15(0x8aa)](){const _0x3ea788=_0x583d15;return this['_pdb']||(this[_0x3ea788(0x1d4)]=new _0x57a270(this[_0x3ea788(0x21e)][_0x3ea788(0x851)],'__sync:peer_state'));}[_0x583d15(0x5ab)](){const _0x371c51=_0x583d15;return this[_0x371c51(0x8aa)];}get['syncLock'](){const _0x205f63=_0x583d15;return this[_0x205f63(0x772)]||(this[_0x205f63(0x772)]=new(requireLock())[(_0x205f63(0x828))](this[_0x205f63(0x21e)],_0x205f63(0x8a3),_0x205f63(0x5f3),{'ttlMs':0x7530}));}get[_0x583d15(0x78f)](){const _0x357072=_0x583d15;return this['_n'](_0x357072(0x66a))['address'];}get['_clockListener'](){const _0x99f624=_0x583d15;return this[_0x99f624(0x21e)][_0x99f624(0x60a)]&&this['_n']('drives')?{}:null;}get[_0x583d15(0x672)](){return this['_clockListener'];}get[_0x583d15(0x38a)](){const _0x17e397=_0x583d15;return this['_n'](_0x17e397(0x849))?.[_0x17e397(0x4be)];}get[_0x583d15(0x628)](){const _0x3fdabe=_0x583d15;return this['_n'](_0x3fdabe(0x849))?.[_0x3fdabe(0x7ce)];}['info'](){const _0x194456=_0x583d15;return this['_n'](_0x194456(0x7c6));}[_0x583d15(0x433)](){const _0x25a27f=_0x583d15;return this['_n'](_0x25a27f(0x433));}get[_0x583d15(0x1a8)](){const _0x150f06=_0x583d15;return this[_0x150f06(0x6cc)]||(()=>this['_n']('peers'));}set[_0x583d15(0x1a8)](_0x42e870){const _0x15a0a2=_0x583d15;this[_0x15a0a2(0x6cc)]=typeof _0x42e870===_0x15a0a2(0x6d8)?_0x42e870:null,this['_n'](_0x15a0a2(0x4f7),[this['__peers']]);}[_0x583d15(0x4ff)](){return this['_n']('listPeers');}async[_0x583d15(0x460)](){const _0x492632=_0x583d15;return this[_0x492632(0x321)](_0x492632(0x460));}async[_0x583d15(0x4b3)](_0x175850){const _0x3af779=_0x583d15;return this[_0x3af779(0x321)](_0x3af779(0x4b3),[_0x175850]);}async[_0x583d15(0x40e)](_0x2d1fdc,_0x5ce206={}){const _0x5dc626=_0x583d15;return this['_nm'](_0x5dc626(0x171),[_0x2d1fdc,_0x5ce206]);}[_0x583d15(0x893)](){return this['_n']('stop');}[_0x583d15(0x6c4)](){const _0x20be0c=_0x583d15;return this['_n'](_0x20be0c(0x6c4));}async[_0x583d15(0x6c3)](_0x8caa55,_0x426789={}){const _0x5555f3=_0x583d15;return this['_n'](_0x5555f3(0x6c3),[_0x8caa55,_0x426789],!![]);}async[_0x583d15(0x5e9)](_0x35fb29){return this['_n']('removeLink',[_0x35fb29],!![]);}[_0x583d15(0x174)](_0x25f2b8){const _0x59f52b=_0x583d15;return this['_n'](_0x59f52b(0x811),[_0x25f2b8]);}[_0x583d15(0x3b9)](_0x44eaef){const _0x512518=_0x583d15;return this['_n'](_0x512518(0x30d),[_0x44eaef]);}async[_0x583d15(0x671)](_0x323af2,_0x3fb314,_0x318132={}){return this['_n']('setPeerState',[_0x323af2,_0x3fb314,_0x318132]);}async['_ensurePeerState'](_0x1c9178){const _0x19d040=_0x583d15;return this['_n'](_0x19d040(0x28c),[_0x1c9178]);}async['_ensure'](){return this['_n']('ensure',[],!![]);}async[_0x583d15(0x615)](_0x8c357){const _0x1d08a4=_0x583d15;return this['_n'](_0x1d08a4(0x615),[_0x8c357],!![]);}async[_0x583d15(0x3d2)](_0x220308,_0x1fa691={}){const _0x5bb876=_0x583d15;return this[_0x5bb876(0x321)]('join',[_0x220308,_0x1fa691]);}async[_0x583d15(0x89b)](_0x1c6ae1={},_0x558139={}){return void _0x1c6ae1['~system'],this['_n']('calculateDelta',[_0x1c6ae1,_0x558139]);}async[_0x583d15(0x817)](_0x472ce6,_0x27dcef,_0xd03737,_0x37e889){const _0x11e1e9=_0x583d15;return this['_nm'](_0x11e1e9(0x817),[_0x472ce6,_0x27dcef,_0xd03737,_0x37e889??null]);}async[_0x583d15(0x446)](_0x244852,_0x3663c1,_0xaccda3={}){const _0x18f0d3=_0x583d15;return this[_0x18f0d3(0x321)](_0x18f0d3(0x446),[_0x244852,_0x3663c1,_0xaccda3]);}[_0x583d15(0x3d1)](_0x2155d0,_0x112818=null){const _0x250d65=_0x583d15;return this['_n'](_0x250d65(0x185),[_0x2155d0,_0x112818?_0x112818['name']:null]);}[_0x583d15(0x6b4)](_0x5d6c84,_0x3cc081=null){const _0x35db8d=_0x583d15;return this['_n'](_0x35db8d(0x6b4),[_0x5d6c84,_0x3cc081?_0x3cc081[_0x35db8d(0x6fe)]:null],!![]);}}return sync={'OKDBSync':_0x41c7e7},sync;}var migrate,hasRequiredMigrate;function requireMigrate(){const _0x35fb94=_0x2ec26e;if(hasRequiredMigrate)return migrate;hasRequiredMigrate=0x1;const {optionsArg:_0x3cc182}=requireErrors(),_0x3f5f4c=require$$0,_0x1ed096=require$$4,_0x49a99d=0x40*0x400;async function _0x30a5c9(_0x551aff,_0x4e9a3b){const _0x490951=_0x3ebb;for(let _0x13572b=0x0;_0x13572b<_0x4e9a3b[_0x490951(0x6cf)];){let _0x248e69=Math[_0x490951(0x5a9)](_0x4e9a3b['length'],_0x13572b+_0x49a99d);if(_0x248e69<_0x4e9a3b[_0x490951(0x6cf)]){const _0x1c1238=_0x4e9a3b['indexOf'](0xa,_0x248e69-0x1);_0x248e69=_0x1c1238===-0x1?_0x4e9a3b['length']:_0x1c1238+0x1;}const _0x42f174=_0x551aff['write'](_0x4e9a3b[_0x490951(0x5df)](_0x13572b,_0x248e69));_0x13572b=_0x248e69;if(!_0x42f174)await new Promise(_0x24a3f9=>_0x551aff[_0x490951(0x874)]('drain',_0x24a3f9));await new Promise(_0x315cc9=>setImmediate(_0x315cc9));}}async function _0x29ebc5(_0x47a8c2){const _0xcb20b=_0x3ebb,_0x33fc05=[];for await(const _0x5929cf of _0x47a8c2)_0x33fc05[_0xcb20b(0x2fb)](Buffer[_0xcb20b(0x292)](_0x5929cf)?_0x5929cf:Buffer[_0xcb20b(0x170)](_0x5929cf,_0xcb20b(0x496)));return Buffer['concat'](_0x33fc05);}class _0x23b375{constructor(_0x2a78c7){this['okdb']=_0x2a78c7;}['_n'](_0x3c70aa,_0x24246d){const _0x15424d=_0x3ebb;return this[_0x15424d(0x21e)]['_call'](_0x15424d(0x622),null,_0x3c70aa,_0x24246d,!![]);}async[_0x35fb94(0x656)](_0x9680d9,_0x4d0fc6={}){const _0x196c00=_0x35fb94,{data:_0x2dcad1,stats:_0x1dca99}=this['_n']('exportBuf',[_0x4d0fc6]);return await _0x30a5c9(_0x9680d9,Buffer[_0x196c00(0x170)](_0x2dcad1)),_0x1dca99;}async[_0x35fb94(0x441)](_0x55df16,_0x2e5594={}){const _0xe6119d=_0x35fb94;_0x3f5f4c[_0xe6119d(0x756)](_0x1ed096[_0xe6119d(0x19d)](_0x55df16),{'recursive':!![]});const _0x2d142c=_0x3f5f4c[_0xe6119d(0x752)](_0x55df16),_0xfb3bee=await this[_0xe6119d(0x656)](_0x2d142c,_0x2e5594);return await new Promise((_0x3c4f00,_0x2d02c8)=>{const _0x76e107=_0xe6119d;_0x2d142c[_0x76e107(0x330)](),_0x2d142c[_0x76e107(0x874)](_0x76e107(0x7ee),_0x3c4f00),_0x2d142c[_0x76e107(0x874)](_0x76e107(0x254),_0x2d02c8);}),{..._0xfb3bee,'filePath':_0x55df16};}async[_0x35fb94(0x88b)](_0x585892,_0x356398={}){const _0x269152=_0x35fb94,{data:_0x19e0ae,stats:_0x54f0fa}=this['_n'](_0x269152(0x541),[_0x356398]);return await _0x30a5c9(_0x585892,Buffer['from'](_0x19e0ae)),_0x54f0fa;}async['importFromStream'](_0x408476,_0x1e9cd4={}){const _0x355af4=_0x35fb94,_0x634b67=await _0x29ebc5(_0x408476),{onProgress:_0x42deb0,..._0x564f90}=_0x1e9cd4,_0x5e011a=this['_n'](_0x355af4(0x3e1),[_0x634b67,_0x564f90]);if(typeof _0x42deb0==='function')_0x42deb0({'type':null,'count':_0x5e011a[_0x355af4(0x53d)]});return _0x5e011a;}async[_0x35fb94(0x43f)](_0x4dc137,_0x2b8119={}){const _0x3dd756=_0x35fb94;return this['importFromStream'](_0x3f5f4c[_0x3dd756(0x717)](_0x4dc137,{'encoding':_0x3dd756(0x496)}),_0x2b8119);}async['backup'](_0x53da41,_0x33e45f={}){const _0x2bdbbb=_0x35fb94;return this['_n'](_0x2bdbbb(0x6ce),[_0x53da41,_0x33e45f]);}['backupRoot'](){return this['_n']('backupRoot',[]);}[_0x35fb94(0x443)](_0x8e2560){return this['_n']('resolveBackupDest',[_0x8e2560??null]);}async['export'](_0x40b977={}){return this['_n']('export',[_0x40b977]);}async[_0x35fb94(0x226)](_0x4429cf,_0x39c43a={}){const _0x57bbbd=_0x35fb94;return this['_n'](_0x57bbbd(0x226),[_0x4429cf,_0x39c43a]);}async[_0x35fb94(0x78b)](_0x13f3fe){const _0x4d37f5=_0x35fb94,{pretty:pretty=![]}=_0x3cc182(_0x13f3fe);return JSON[_0x4d37f5(0x4d2)](await this[_0x4d37f5(0x56d)](),null,pretty?0x2:0x0);}async[_0x35fb94(0x503)](_0x1335b5){const _0x402b8f=_0x35fb94;return this[_0x402b8f(0x226)](JSON['parse'](_0x1335b5));}[_0x35fb94(0x413)](){const _0x587128=_0x35fb94;if(!this[_0x587128(0x21e)][_0x587128(0x8a5)][_0x587128(0x63c)]('default')?.[_0x587128(0x6be)])throw new Error(_0x587128(0x489));}async[_0x35fb94(0x7cb)](_0x22b277){const _0x13e837=_0x35fb94;return this[_0x13e837(0x413)](),this['_n']('exportBlobs',[_0x22b277]);}async[_0x35fb94(0x2c4)](_0x29d18d){const _0x1fe636=_0x35fb94;return this[_0x1fe636(0x413)](),this['_n'](_0x1fe636(0x2c4),[_0x29d18d]);}[_0x35fb94(0x204)](){const _0x546b9a=_0x35fb94;return this['_n'](_0x546b9a(0x607),[])[_0x546b9a(0x1a7)](_0x3bb787=>this[_0x546b9a(0x21e)][_0x546b9a(0x30b)](_0x3bb787));}async['validateBlobIntegrity'](){const _0x93b31b=_0x35fb94;return this[_0x93b31b(0x413)](),this['_n']('validateBlobIntegrity',[]);}async[_0x35fb94(0x37d)](){const _0x27348f=_0x35fb94;return this[_0x27348f(0x413)](),this['_n']('repairBlobRefs',[]);}}return migrate={'OKDBMigrate':_0x23b375},migrate;}function _0x1561(){const _0x195a9c=['length','queue:clear-progress','__logsDb','pushEphemeral','stopView','preparer\x20must\x20be\x20a\x20function','\x27\x20already\x20registered','emit','ms/','function','~files','checkSignals','unresolveField','_locks','view:progress','bucket\x20too\x20long','__tokenSecret','tierList','ctxRelease','durableEngineDoc','listFtsEnvs','refill_amount','_makeLazyVectorAdapter','timer','invalid\x20job.status:\x20','describeTypeDetailed','changeToClockDb','select','_enqueueInTxn','dir','logCap\x20must\x20be\x20null\x20or\x20integer\x20in\x20[','setToken','quarantinedEnvs','reject','MINIMUM_KEY','~ttl:expiry','a\x20string','Too\x20many\x20concurrent\x20connections','_settle','getLoginConfig','sweepExpiredTTL','_np','cron','evict','registerBucketProjection','~sub','defaults','name','Cannot\x20set\x20enforce\x20schema\x20on\x20','TXN_INVALID_ACTION',';return\x20{','unref','_reconcile','createEngine','disableAll','SYSTEM_CLOCK_CHANGE','PLUGIN_ALREADY_REGISTERED','recordRun','_resolveKeys','system:env_release','\x20which\x20does\x20not\x20exist','release','applyInterestDelta','limitOf','_meta','percentile','chunk\x20strategy\x20must\x20be\x20a\x20function','Query\x20operator\x20\x22','_syncExpiresAtField','online','__notImplementedNative','INVALID_VALUE','createReadStream','reverse','failed','__ttlByKey','OKDBIndexNotRegisteredError','EMBED_PENDING','getOpenWarning','fromCharCode','getCursor','ensureFeed','_getFast','okdb-node:\x20unknown\x20bridge\x20op\x20','_isOpenForIp','load',':useReadTransaction','(source)\x20=>\x20{','EMBEDDER','ensureTypeEnv','getHistory','entries','scopedName','keyFor','holder','acquiredAt','return\x20fromCharCode(','action','Unknown\x20OKDB\x20transaction\x20error','Feature\x20not\x20licensed:\x20','_store','data','listTemplates','~queue_logs','job.claim_expires\x20must\x20be\x20number|null','\x22\x20not\x20found','_create','nativeBinaryPath','_setTTLEntry','allocUnsafeSlow','resetFts','getVector','awaitIdle','create','driver','stateInfo','family','bucket','oauth','samplePayloads','patch','code','targetType','quantum','blobPath','resolveField:\x20a\x20resolver\x20or\x20options.batch\x20is\x20required','inBatch','__lock','job.status_message\x20must\x20be\x20string|null','consumeLoginState','createAndStartEngine','createWriteStream','queue:reconciled','registerType','setCurrentDb','mkdirSync','isDeepStrictEqual','getBucket','pumping','queue:removed','okdb-','_write','txn:start','jsonrpcCode','setJobTypeSchema','\x20must\x20be\x20number','closeEnvLocally','functions','_sinks','dropIndex',',\x20source)\x0a\x09\x09}\x20else\x20{\x0a\x09\x09\x09if\x20(','ensure','getMaxBodyBytes','targetKey','_baselines','indexReady','prepareTxnEnqueue','advanceHlcOnRecv','DOC_STATUS_CHANGE','removeSync','assign','randomUUID','\x22)\x20before\x20open()','_syncLock','job_type.defaults.buckets\x20must\x20be\x20array|null','\x20document(s)\x20reference\x20it\x20with\x20onDelete:restrict','typeSubDbs','explainIndex','lock','_durableEmbedderInfo','typesDb','Unknown\x20transaction\x20action:\x20','_settled','_admissionStarted','session','return','encryption\x20key\x20function','encryption:key-changed','embedderCall','Unable\x20to\x20serialize\x20object\x20as\x20a\x20key:\x20','embeddings:indexer:doc:failed','guard','_onFeedChange','some','INVALID_PRIMARY_KEY','next','_formerOrigins','groupsDb','exportJSON','trim','INDEXER_DOC_QUEUED','getTemplate','address','_subsV2Obj','getMany','json','log','_adminRelay','allSettled','reencrypt:\x20env','_quantumGate','system:proc','doc','cursor','concat','callAsync','defineProperty','_noChangelog','details','setClaimGated','listProviders','schema:drop','~processes','listRoutes','pid','_update','pin','\x22\x20to\x20enable\x20it.','resolve','~ref_violations','_registerType','bucket.refill_amount\x20must\x20be\x20int\x20>=\x200','http.listen:\x20host\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20a\x20non-empty\x20array\x20of\x20non-empty\x20strings','snapshotScan','_typeKeys','ctrl','startNewEnginesFromSync','registerFts','sparse','compactLock','_deliver','embedder','registerIndex','log\x20entry\x20message\x20required','isOAuthEmailAllowed','_closedHandle','_rawTxnBuf','isNaN',':index','shift','INVALID_INDEX_KEY','proc','ctxHeartbeat',':txnRange','process(filter)','includeViolations','_openAckDb','info','_buf','label','ctxProgress','embeddings:indexer:ready','exportBlobs','OKDBForeignKeyDeleteError','resolution','publicKey','processor:\x20cannot\x20combine\x20a\x20closure\x20handler\x20with\x20module:{path,export}.\x20','ms\x20p99=','claimGated','getKeys','buildOwnRow','Map','INVALID_ARGUMENT','okdb_session','_patch','_wsettle','sessionId','_setTTL','removeResolver','sseSetHeader','Index\x20\x22','_ackDb','add','resetting','warn','_openEnvLazy','resetIndexBegin','TXN_ERROR','algorithm\x20is\x20gone','\x20does\x20not\x20exist','server','processRest()','hasUniqueViolations','exclusiveStart','MAX_SAFE_INTEGER','getIndexMeta','\x27:\x20','finish','guardSnapshotIterable','_viewState',')\x20+\x20readString(source)}','der','subscribe','node','_dedupeKey','setReadBuffer','transaction','reduce','killAll','listPath','kickOwnedBy','process\x20options.admission\x20must\x20be\x20a\x20function','getStats','clone','_onItem','14491881CmldNZ','vector-search\x20engine\x20not\x20running:\x20\x22','_isLoopbackIp','areIndexesReady','fromEntries','pipelines','allowUnsafe','_oauthConfig','job.','undefined','hasDriver','when','$all','isOrchestrator','claim_id','_rbuf','match','getNodeRecord','record','_report','definition','status_code','_statusEnv','fetchPeer','_localViews','compaction','ttlSetEntry','ttlStats','listNodes','(?:/(.*))?','$nin','replaceMember','value','HTTP_ERROR','default','txnUndone','processor:\x20quantum.module\x20must\x20be\x20a\x20string','forceAfterMs','_run','bus','NativeLock','_handlePoke','_ttlTimerAt','isRunning','_ensureTokensType','listRefViolations','_plugins','delete','regObject','\x20returned\x20no\x20key','setMode','\x20│\x20','job_type.payload_schema.definition\x20must\x20be\x20object','_set','retryJob','diag','exportName','type:registered','retry_delay','customReducerNames','markJobFail','crypto','getRaw','there\x20is\x20no\x20`http`\x20option\x20—\x20the\x20HTTP\x20server\x20exists\x20only\x20when\x20db.http.listen(port)\x20is\x20called','openDB','INDEX_NOT_REGISTERED','near','routes','Engine\x20template\x20build()\x20is\x20required:\x20','_sync','lookupByName','incoming','OKDBAlreadyExistsError','nodeKeys','noteListenAddr','TXN_INVALID_OPS','preview','interest','ttlTimer','boolean','INDEX_ALREADY_REGISTERED','_systemEnv','filter','call','\x22\x20not\x20found\x20in\x20~envs','\x27\x20did\x20not\x20return\x20a\x20valid\x20instance','symbol','enableAll','actions','queue:retry','readString\x20}','clearStuck','index:ready','_listenAddr','\x20documents\x20fail\x20validation','unregisterTarget','ies','replace','Can\x20not\x20serialize\x20key\x20of\x20type\x20','Cannot\x20register\x20plugins\x20after\x20start','tryClaimTokens','Database\x20already\x20opened/closed','\x22\x20must\x20return\x20{\x20embed(input):\x20Promise<Float32Array>\x20}','forgetDb','getAll','createPipeline','detachFeed','Engine\x20driver\x20type\x20must\x20be\x20a\x20non-empty\x20string','level','isEnabled','streamRead','BAD_EMBEDDER_FACTORY','loadedPath','clear','hook','_draining','once','usedBy','dup','_windowCbs','TXN_ENV_MISMATCH','stateNames','resolveData','_scheduleTTLSweep','_maxConnections','destroy','SYSTEM_STOPPED','_ttlByKey','SEARCH','processor:\x20module.path\x20is\x20required','ENGINE_INVALID_TYPE','job.max_tries\x20must\x20be\x20int\x20>=\x201,\x20null\x20(unlimited)\x20or\x20Infinity','_typesDb','changeEncryptionKey:\x20to','backoffUntil','async','tolerant','OKDBInvalidPrimaryKeyError','registerHandler:\x20fn\x20must\x20be\x20a\x20function','exportEnvsToStream','starting','Engine\x20template\x20id\x20must\x20be\x20a\x20non-empty\x20string','update','_handles','_defaultEnvObj','_asArray','created_at','stop','connectionCount','_rootDb','vectorSpace','\x22\x20tokens\x20must\x20be\x20>=\x201','start',']\x20already\x20maps\x20to\x20\x27','inspect','calculateDelta','values','_license','now','readFieldMany','index:progress','getFloat64','Buffer','~system','clearDefaultTTL','_envs','_log','_ensureDbs','ref','formerIds','_peerDb','pause','context','_durableIndexerDoc','flatMap','_flushDebounce','taken','charCodeAt','resolveField:\x20field\x20required','forEach','_clearTTL','_emitProc','a\x20non-empty\x20string','INACTIVE','_logEnv','setMaxBodyBytes','from','reconcilePeerPull','retryable','resetReadTxn','_getNodeRecord','snapshot','immediate','$defs','busState','removes','$lte','VERSION_MISMATCH','job\x20id\x20required','meanwhile\x20—\x20the\x20frozen\x20view\x20cannot\x20be\x20kept.\x20Materialize\x20synchronously\x20(e.g.\x20Array.from)\x20','Plugin\x20\x27','envName','durableMarkFail','geoQuery','mode','lookupAllByName','clearTtl','shouldApplyChange','setEncryptionKey','fromBufferKey','_quantum','catch','_ensureVectorStore','~log','vectorStoreStats','_doHooks','uploadTxn','\x27,\x20module)\x20(the\x20auto-adopted\x20shared-pool\x20form)\x20was\x20removed\x20in\x20okdb\x202.0:\x20okdb\x20no\x20longer\x20auto-runs\x20queue\x20handlers\x20(trusted\x20user\x20code\x20it\x20can\x27t\x20place).\x20Use\x20queue.process(\x27','describeAllTypesDetailed','searchDocs','\x27\x20is\x20already\x20registered','_debounceTimer','_ttlTimeout','dropType','processes','job.priority\x20must\x20be\x20int','Cannot\x20delete\x20','_macro','_rebuilding','logCap','OKDBNotFoundError','dirname','_lookupByName','handleResult','\x20must\x20be\x20','gc.','reidentify','stderr','_dupArg','engines','setCursor','map','peers','_features','SCHEMA_COLLECTION_INVALID','iterate','includes','_blobsDir','job.cron\x20must\x20be\x20string|null','dropped','modeApplied','$mod','storeGetDiffsInRange','ref:violation_resolved','head','validate','isSync','processor:\x20specify\x20exactly\x20one\x20of\x20handler:\x27<name>\x27\x20or\x20module:{path,export},\x20not\x20both','registerHandler:\x20name\x20must\x20be\x20a\x20non-empty\x20string','ALL_EVENTS','durability','_db','flushPoll','durableDocs','object','rows','validateRouteInput','_stopFor','getStatus','$gt','~processes:desired','detach','repair','notes','stor','status','ENGINE_DRIVER_MISSING_START','_indexBuilds','deleted','tries','started','enable','removeEnvironment','runStart','writerStatus','bus:proc','_pdb','keys','asyncIterator','system:stopped','nextExpiry','index:','$regex','failed_ttl','config','build','refreshThresholdMs','\x27\x20doesn\x27t\x20exist','resolvedFields','markJobComplete','auth','_indexBuild','geoConfig','STARTING','iterable','resolveField:\x20options.batchSize\x20must\x20be\x20a\x20positive\x20integer','Can\x20not\x20serialize\x20async\x20iterables\x20without\x20first\x20calling\x20resolving\x20asArray','MAXIMUM_KEY','FIELD_RESOLVER_PENDING','pinned\x20range\x20iterator\x20parked\x20across\x20an\x20await/turn\x20boundary\x20and\x20the\x20env\x20was\x20written\x20','_listening','stopWorkerBegin','initialize','useReadTransaction\x20read\x20view\x20expired:\x20the\x20snapshot\x20was\x20released\x20at\x20the\x20first\x20await/turn\x20','continueIteration','remote','$size','primaryOkdb','_facade','~log_entry','TXN_CLOSED','clearSync','1503427kodVXO','useVersions','args','outgoing','Database\x20not\x20started','isWorker','_closeEnvLocally','pumpEnvSync','job.finished\x20must\x20be\x20number|null','library\x20(okdb\x20node-model\x202.0).\x20For\x20multi-process\x20HTTP\x20serving\x20use\x20the\x20okdb\x20','bind','ctxLog','_allEnvsWithFiles','_buildOwnRow','files.upload:\x20id','onDelete','_closed','free','patchDeclaration','_cancelTTLTimeout','set_null','okdb.noFast','toISOString','_key','listViolations','\x20dropped\x20(buffer\x20full)','\x20actions=','onUndo','describeType','dataEnv','resetIndexFinish','worker','autoCompact','resetIndex','STOPPING','getPrototypeOf','find','markJobProgress','okdb','fts:','engineStart','size','attachFeed','Date','encryptionKeys','putSync','import','encoder','storeEnv','fts:reset','_durableIndexerDocs','inputSchema','embed','\x27\x20is\x20not\x20a\x20function','run','\x27\x20on\x20type\x20\x27','createWorker','_root','acquired','kind','unique','bucket.id\x20must\x20be\x20non-empty\x20string','hasEnv','no_action','locks','queue:clear-done','processorHold','getRunningEngine','claim\x20requires\x20non-empty\x20type','onWindow','callRows','max_concurrency','PLUGIN_DEPENDENCY_MISSING','2359998yMlklg','getJobType','markSnapshotComplete','created','\x22\x20requires\x20a\x20`handler`\x20function','\x0a\x09\x09let\x20','schema:set','_ensureEnv','TYPE_NOT_REGISTERED','_startClaimedSoon','job.tries\x20must\x20be\x20non-negative\x20int','item','_tx','1451620OKSYOT','bus:drain','durableRetryFailed','field:resolver_registered','__absent','typeStats','error','ITEM_REMOVE','_isClosedEnvError','type:','_blobStatusDb','_connections','__syncOverride','_waitNative','indexer','buckets','job.status_code\x20must\x20be\x20string|null','_timer','.\x20Only\x20primitives,\x20null,\x20Buffers,\x20and\x20arrays\x20are\x20allowed.\x20Got:\x20','getDefinition','bucketsDb','pressure','new','floor','ITEM_PENDING','getChanges','workers','maxBodyBytes','system','namespace','item:','QUERY_OPERATOR_FORBIDDEN','OKDBVersionMismatchError','batch','_callPacked','useReadTransaction','Algorithm\x20factory\x20must\x20be\x20a\x20function','process(entries,\x20options):\x20with\x20an\x20entries\x20array\x20the\x20handler\x20lives\x20in\x20each\x20entry\x20({\x20type,\x20handler,\x20…\x20});\x20the\x20second\x20argument\x20is\x20the\x20pool\x20options\x20object.','reg','BAD_HOST','connected','module','errors','DEFAULT_TTL_MS','claim','\x22\x20must\x20have\x20a\x20start()\x20method','txn','setInt32','getRun','put','version','paused','retry','Engine\x20driver\x20already\x20registered:\x20\x22','\x20was\x20removed\x20in\x20okdb\x202.0.\x20Use\x20processors:true\x20for\x20plain\x20lease\x20participation.\x20See\x20docs/upgrade-2.0.md.','job_type.payload_schema.enforce\x20must\x20be\x20boolean','_logChange','enqueue\x20txn\x20belongs\x20to\x20a\x20different\x20environment','ready','setFilter','_envWide','emitProc','ensurePeerState','createdBy','_remove','_compactLock','_keepAlive','_writer','isBuffer','_durableEngineDoc','_warnUnknownOptions','resumeJobType','busEmit','INDEXER_DOC_FAILED','_status','captureStackTrace','events','_assertOpen','_settleRead','hasNativeBatch','_enableChangelog','log\x20entry\x20fields\x20must\x20be\x20object|null','apply','index:registered','getPosition()\x20{\x20return\x20position\x20},','instance','tags\x20must\x20be\x20array\x20or\x20string','OKDBTypeAlreadyRegisteredError','_timerHandle','subscriptions','dataView','registerChunkStrategy','setStorageResolver','compact','setLogSink','_validateOidcAccessToken','_refIndexDb','algorithm\x20has\x20no\x20method\x20','then','job.error_stack\x20must\x20be\x20string|null','gcOrphanedBlobs','item:update','tick','req','finished','signal','application/octet-stream','$payload','storageStats','_timerObjs','previewTemplate','_pending','fts:drop','ensure:\x20type\x20is\x20required','byIndex','returnRecoverableErrors','reducer','job_type.defaults.ttl\x20must\x20be\x20int\x20>=\x200\x20or\x20null','importBlobs','throw','_buckets','kick','setAddress','read','subscriptions-store:\x20addInterest\x20on\x20unknown\x20session\x20','8jQLJqn','isIndex','commit','bucket.tokens\x20cannot\x20exceed\x20capacity','job_type.defaults.','getSchema','stopAutoCompactCheck','message','removeJobLogsAfterCommit','schema','body','INVALID_SCHEMA','inline','hasIndex','stopped','_drain','\x20=\x20finishUtf8(','__warned','pinned','heartbeat','docs','changeEncryptionKey','resetUnknownOptionsWarned','byLabel','system:bus_state_change','setProcessingConfig','job_type.defaults.backoff_multiplier\x20must\x20be\x20number\x20>=\x201\x20or\x20null','pump','getViolation','_ttlState','$not','_pendingOps','onLicenseExpired','getEntry','_push','root','getIndexStatus','job.buckets\x20must\x20be\x20array|null','restart','ingest','Environment\x20\x22','catalog','storeGetTotalHeadCount','emb','_changefeed','loop-lag','host','existsSync','push','_inlineClosureWarned','DONE','docEntry','RangeError','links','system:clock_change','stream','drop','off','Blob\x20not\x20found:\x20','test','_normalizeOAuthAuthResult','shutdownTimeout','itemsPlan','_cmd','env','isWanted','getPeerState','_resolveFilter','\x20>=\x200x80)\x20','toBufferKey','_role','setWake','_subscribed','max_tries','job_type.defaults.max_tries\x20must\x20be\x20int\x20>=\x201\x20or\x20null','turnWaiters','envSize','dbs','Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results','SCHEMA_VALIDATION_FAILED','setLogger','job.buckets[].tokens\x20must\x20be\x20int\x20>=\x201','storeEnvName','unique:violation','okdb.http.listen(port)\x20in\x20each\x20worker.','viewDb','_nm','_http','OKDBSchemaValidationError','dropping','maxExtra','hash','getBlobStatus','set','getTTL','startClaimed','newListener','resolveModelDims','assertQueryOptions','remoteAddress','refreshTtl','end','refill_every','nativeCode','$exists','header','_low','MCP_ERROR','_lock','list','flushQuantum','abort','puts','attachOKDB','offWindow','job_type.max_concurrency\x20must\x20be\x20int\x20>=\x201\x20or\x20null','WORKERS_REMOVED','_autoCompact','registerQuantum:\x20load\x20must\x20be\x20a\x20function','ceil','nextTick','feature','~queue_payloads','queue:log','bigint','refreshReadTxn','mean','_ttlCompositeKey','_ack','description','_running','dirty','Referenced\x20type\x20\x27','_kbuf','registerTemplate','isBootstrap','hasBody','durableStats','\x27\x20does\x20not\x20exist','maxConnections','admission','maxDbs','_startAdmission','token','materialize\x20them\x20(Array.from)\x20while\x20the\x20view\x20is\x20live.','cause','pending','UNKNOWN_RANGE_OPTION','license:activated','removeJobTypeSchema','isSetupMode','planUpdateJob','INDEXER','setTtl',':\x20not\x20implemented\x20in\x20the\x20native\x20build\x20yet','key','getTypeCount','refItemsDbs','boundary\x20(a\x20pinned\x20read\x20txn\x20blocks\x20LMDB\x20free-page\x20reuse).\x20Do\x20all\x20consistent\x20reads\x20','changes','blobsDir','createLoginState','normalizeOAuthAuthResult','rollback','applyOps','api','maxMs','active','_cursors','db.workers\x20was\x20removed.\x20okdb\x20does\x20not\x20manage\x20processes\x20—\x20run\x20more\x20okdb\x20processes\x20(processors:true)\x20via\x20your\x20orchestrator;\x20the\x201-of-N\x20processor\x20lease\x20load-balances\x20across\x20them.\x20See\x20docs/upgrade-2.0.md.','_changeToClockDb','_pendingLocal','_claimGated','settledTickets','_blobPath','_writeBlob','event','inNativeCall','repairBlobRefs','Use\x20module:{path,export}\x20alone,\x20or\x20handler:\x27<name>\x27\x20for\x20a\x20built-in.','embeddings:indexer:doc:done','range','inflight','registerModule','rowKey','removed','markJobHeartbeat','_put','subscriptions-store:\x20open()\x20not\x20called','ensure:\x20view\x20entry\x20missing\x20name\x20or\x20definition','dropSchema','_nodePrivateKey','setDeltaLimit','INDEXER_DOC_DONE','_dedupeMax','authOpen','__blobStatusDb','bucket.refill_every\x20must\x20be\x20int\x20>=\x200','err','CLI\x20(`okdb\x20listen`),\x20or\x20use\x20Node\x27s\x20built-in\x20`cluster`\x20module\x20and\x20call\x20','removeEventListener','removeTxn','vector-search','issueToken','setTTL','job.backoff_multiplier\x20must\x20be\x20number\x20>=\x201','clockToChangeDb','resolveField:\x20options.batch\x20must\x20be\x20a\x20function','properties','byteLength','path','_callRows','_ttlParseComposite','_undoHooks','pokeHandler','startAutoCompactCheck','_getOidcDiscovery','txn:rollback','note','_fail','job.tag\x20must\x20be\x20string|null','ms\x20max=','index','resetView','_registrations','ensure:\x20fts\x20entry\x20missing\x20name\x20or\x20fields','_readerCheckInterval','_logsDb','registerQuantum:\x20name\x20must\x20be\x20a\x20non-empty\x20string','an\x20environment\x20name','_range','enforce','emitClearDone','TXN_ROLLBACK','done','okdb-node:\x20a\x20background\x20async\x20handler\x20rejected:\x20','processorsStop','recomputeFields','_getPeerState','_flushTimer','\x20===\x204)\x0a\x09\x09\x09\x09','_afterDurable','invalid\x20job_type.status:\x20','exports','exists','_desired','array','count','enableNullTermination','extend','$in','retryFailed','hasType','storeGetHeadCount','_blobStream','job\x20type\x20must\x20be\x20object','_started','debounceTimer','sweepOrphanLogs','committed','DEFAULT_EVENTS','$near','_shouldApplyChange','join','runtimeDeclarations','ITEM_UPDATE','~proc:state','FOREIGN_KEY_VIOLATION','registerQuantum','BAD_ALGORITHM_FACTORY','\x27,\x20fn)\x20for\x20an\x20in-process\x20consumer,\x20or\x20run\x20a\x20consumer\x20on\x20another\x20node/host\x20you\x20launch\x20—\x20all\x20claim\x20the\x20same\x20durable\x20jobs\x20exactly\x20once\x20(CAS).\x20See\x20docs/upgrade-2.0.md.','listen','endIndex','sseClose','unique:violation_resolved','\x27,\x20cannot\x20map\x20to\x20\x27','handleDurableClock','REVERSE_INDEX','importBuf','autoCompactState','metaDb','parseBearer','removeListener','files.registerExtractor:\x20extractor\x20must\x20be\x20a\x20function','max','processor','Unique\x20constraint\x20violated\x20on\x20','ENGINE_INVALID_TEMPLATE','describeIndexes','mapError','handleError','true','REF_VIOLATION_RESOLVED','attach','_modeApplied','compression','_pressure','afterTurn','compare','payload','_read','split','socket','getRange','index:reset','_isFar','stack','stopAll','balanced','ONLINE','for','relay:error','mcp','setKick','syncBlobs','_callMacro','isSnapshotComplete','_closeReadTransaction','processors','\x20>\x204)\x20{\x0a\x09\x09\x09if\x20(','_ttlBackoffUntil','sync:apply','toJSON','_reconcilePeer','isInteger','msg',':\x20key\x20[','reducers','_assertFiles','enqueue','listVectorStores','registerEmbedderFactory','writeKey','OKDBUniqueConstraintError','_lookupByTokenHash','_info','vecRemove','state','processorsParticipating','embedder\x20is\x20gone','_release','OKDBError','HTTP_CLUSTER_REMOVED','embeddings','tryAcquire','_jsSchemas','~queue_jobs','isReader','_txnIdAtSnapshot','processor:progress','_buffer','tags','_writerWatchdogInterval','flush','createQueryTester','SESSION_TYPE_INDEX','remove','fetch','QUEUE_WORKER_REMOVED','_addr','getSelfNode','setPosition(p)\x20{\x20position\x20=\x20p\x20},','attachConsole','getCount','role','listIndexKeys','ttl:set','aborted','getUniqueViolations','localViewNames',')\x0a\x09\x09}\x0a\x09\x09',':\x20expected\x20','importFromFile','job\x20must\x20be\x20object','exportToFile','IPv6','resolveBackupDest','_id','indexContent','fetchRemoteDelta','\x20(required\x20by\x20','$pending','http','done_ttl','prefetch','recordPeerAck','_attached','timestamp','_ttlByExpiry','LICENSE_FEATURE_DISABLED','_sweepInProgress','bucket.capacity\x20must\x20be\x20int\x20>=\x200','pauseJobType','alg','prototype','durableEmbedderInfo','fetchJson','\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer','listBuckets','getRefViolation','asArray','__okdb','_ringSize','getClock','scheduled','reconcile','~ttl:key','effective','ttl',',\x20got\x20','updated_at','getMeta','bucket\x20id\x20required','reencrypt','queue:enqueued','getInt32','system:env-sync','runtimeState','clearScan','SYSTEM_POKE','node:perf_hooks','bucket\x20must\x20be\x20object','engine\x20api\x20has\x20no\x20method\x20\x27','storage\x20adapter\x20is\x20gone','Unsupported\x20transaction\x20action:\x20','Engine\x20template\x20kind\x20must\x20be\x20\x22engine\x22\x20or\x20\x22pipeline\x22:\x20','_lookupAllByName','runDrop','HIGH_SENTINEL','Embedder\x20factory\x20for\x20\x22','workerState','trunc','meta','readHashRange','sha256','pinned\x20range\x20iterator\x20held\x20across\x20an\x20await/turn\x20boundary.\x20This\x20surface\x20cannot\x20resume\x20','authenticateRequest','addInterest','dropAll','ERROR','clearTTL','upload','unknown\x20promise\x20token','before\x20any\x20await,\x20chunk\x20with\x20{limit,\x20start,\x20exclusiveStart},\x20or\x20drop\x20snapshot:true.','createEmbedder','node:util','files\x20feature\x20not\x20available','resolvedOptions','~file:blob_status','running','_getRaw','disable','hlc','countByIndex','__fts:','fts','logChange','typeId','durableTierLag','utf8','lastTxnId','must\x20be\x20an\x20object;\x20got\x20null','$eq','whenSettled','getAuthOptions','_markSeen','listRuns','_call','$streamId','Invalid\x20onDelete\x20rule\x20\x27','_isReader','getBinary','authenticateToken','TypeError','items','listJobTypes','cascade','runGc','2320235SYOxRm','handle','sourceType','txnDone','compareKeys','\x20=\x20source[position++]\x0a\x09\x09\x09else\x0a\x09\x09\x09\x09return\x20fromCharCode(','_durableIndexerStats','system:type_drop','_refCache','_admissionTimer','reconcilePeer','flushDebounce','engineStop',':keyToChange','_seen','_uid','_onPending','quarantined','string','(no\x20unambiguous\x20bookmark)\x20—\x20consume\x20it\x20in\x20one\x20synchronous\x20block:\x20materialize\x20(e.g.\x20','cursorKey','privateKey','getPeerAcks','_customReducers','_tids','node:cluster','Index\x20\x27','empty\x20string','registerAlgorithmFactory','dims','isWellFormed','\x22\x20tokens\x20too\x20large','_onStop','write','storeHasDiff','_build','NOT_FOUND','embedBatch','_settleWaiters','closeSession','compiled','stringify','refs','Embedder\x20factory\x20must\x20be\x20a\x20function','_busFacade','\x20references\x20','_pokeHandler','clock','claim_expires','job.type\x20must\x20be\x20non-empty\x20string','status_message','FTS_READY_TIMEOUT','_envSyncStop','registerDriver','reset','OKDBProcessor','chunks','embeddings:doc:status_change','view','_jsFactories','fts:registered','Engine\x20template\x20must\x20be\x20a\x20plain\x20object','_getType','_readViewExpired','encryptionKey','getFast','_unknownOptionsWarned','\x27\x20export\x20\x27','_detachConsole','getUniqueViolation','fail','useReadTransaction\x20range\x20consumed\x20after\x20the\x20creation\x20turn\x20—\x20the\x20consistent\x20view\x20was\x20','~lock','_setKey','_wrap','getUint32','isBun','killWorker','setPeersFn','License\x20limit\x20exceeded:\x20','_envIndexDb','compact/repair\x20already\x20in\x20progress\x20for\x20this\x20environment','addEventListener','resetCursor','_defaultEnv','write\x20batch:\x20missing\x20result','_listPeers','onDone','authenticated','setMaxListeners','importJSON','_okdbAdminAttached','_drainOne','durableMarkDelete','queue.worker(\x27',';\x20got\x20','releaseClaim','[log-sink]\x20','types','$gte','invalid\x20log\x20level:\x20','getJobLogs','_processorStops','sortedDb','OKDB','/([^/]+)','readField','sourceKey','_detachLogSink','signalWant','ref:violation','storeGetConfig','__cmd','cancelJob','itemsDb','_handlePending','_subscribeEvent','has','_env','indexStats','pauseAllAndDrain','bootSyncedViewsInline','bootSyncedEngines','\x20=\x20source[position++]\x0a\x09\x09if\x20(','__desired','_keyListener','Transaction\x20already\x20closed','getGcHorizon','getEmbedderFactory','nextTurn','_stream','bucket.updated\x20must\x20be\x20number','hybridQuery','$ref','_keyFns','_tokenSecret','processor:retry','_handlerName','instanceTimerArmed','offset','job_type.defaults\x20must\x20be\x20object|null','wake','envPath','Error','system:drain','_lazyPinned','_wb','RELAY_FULL','records','getResolvedOptions','turn','raw','exportEnvsBuf','registerReducer','failures','resumeAllAfterDrain','ctxEmit','autoCompactTimerArmed','itemsGroups','port','Symbol.asyncIterator','cleanup','flushMaxWait','references','timeMachine','isActive','bucket\x20\x22','callBatch','announceEnqueued','uninstallEngine','replaceInterests','PUT','continueOnRecoverableError','ctxSignal','drivers','listening','durableCursorFloor','uninstall','listBlobStatus','_settleWrite','childTransaction','removeJob','params','_bootLog','_workers','$type','job_type.id\x20must\x20be\x20non-empty\x20string','\x22\x20is\x20used\x20by:\x20','isTypeEmpty','bootRuntime','envNames','ttl:expired','assertStartAllowed','waiting','drain','_retryPending','export','iterator','restrict','OKDBInvalidIndexKeyError','ENCRYPTION_KEY_REQUIRED','__ttlByExpiry','setSchema','rebuild','prefix','onDo','_commitSessionMutation','creating','bootLogMark','cookies','SKIP','txn\x20op\x20must\x20be\x20an\x20object\x20or\x20tuple','storeGetDiffs','updated','OKDBForeignKeyError','enabled','utf8Write','txnId','getStateAt','$and','index:drop','system:ready','getByPrefix','_sub','error_stack','isOpenForIp','__ref_index','search','unpin','durableDoc','_advanceHlcOnRecv','payload_schema','TXN_INVALID_OP','setUint32','admin','headers','process','IPv4','servers','addJobType','ttlState','PLUGIN_NAME_CONFLICT','_listeners','validateOidcAccessToken','emitWarning','_feed','CREATED','node:events','close','job.bucket_tokens\x20must\x20be\x20int\x20>=1','hasChangelog','authorization','_blobStatusTxn','hasOwnProperty','Type\x20\x27','apiCall','min','_isExpired','_openLocalPeerDb','getLegacyCursor','readKey','updateBucket','handler','sweepExpired','unpack','OKDBTypeNotRegisteredError','ttlMs','target','job_type.defaults.priority\x20must\x20be\x20int\x20or\x20null','patchConfig','queue:failed','_detachLog','envs','\x22\x20on\x20\x22','getRecord','_pumper','orchestrator','_rebuild','_path','\x22\x20is\x20not\x20allowed\x20(it\x20evaluates\x20code);\x20use\x20declarative\x20operators\x20instead','number','node:stream','ensureDesired','SUB_ENV','_ensureDesired','vecPut','fieldPath','ms\x20mean=','job_type.defaults.retry_delay\x20must\x20be\x20int\x20>=\x200\x20or\x20null','slice','hasApi','listTTL','job','_viewCache','ensureType','reason','_emit','forceResync','processor:resumed','backoff_multiplier','runRecord','node:crypto','FOREIGN_KEY_DELETE_RESTRICTED','writeBlob','toFixed','tag','listModels','$or','addSSE','item:remove','subarray','embeddings:indexer:flushed','Engine\x20driver\x20for\x20\x22','ttl:clear','turns','bumpVersion','detachConsole','stats','item:pending','digest','removeLink','updateJob',':data','~fts:envs','resume','STOPPED','isFinite','localViewStats','license:added','assertCreateAllowed','sync','existing','_ensure','~queue_buckets','isHeld','duplicate\x20bucket:\x20','storeEnvPath','__stateDb','reconcileDesired','Key\x20is\x20too\x20large','dedupeMax','flushTicket','\x22\x20must\x20be\x20a\x20plain\x20object','inFlight','queue','ensureTokensType','removeBucket','lastError','Server','getIndex','envsWithFiles','removeJobType','constructor','_isOpen','_onPoke','isCoordinator','bus:poke','licenses','getDefaultTTL','stopHandle','bus:type_drop','vec:','fields','halted','patchSelf','listAlgorithms','selfKey','getValues','registerTarget','spec','failJob','371OKWpAT','license','_nextExpiry','OKDBNotImplementedNativeError','Expected\x20catch\x20callback\x20to\x20be\x20a\x20function','ITEM_CREATE','migrate','embeddings:strategy:registered','flushed','_reconcileDesired','open','_hybridQuery','_nodePublicKey','ftsQuery','views','freeze','_ensureTypeEnv','OKDBInvalidValueError','durableRetryDoc','_txnBuf','gen','job.tags\x20must\x20be\x20array','drainDeadlineMs','@harperdb/extended-iterable:skip','\x20already\x20exists','limits','_assertRangeOptions','getEmbedderSchema','getOidcDiscovery','lookupByTokenHash','\x22\x20is\x20not\x20registered','__adminRelay','get','registerExtractor','TXN_END','processor:ready','appendJobLog','CHANGEFEED_QUANTUM','processor:paused','READER_HELD_ACROSS_AWAIT','pop','INVALID_STATE','_staticCall','_OPTION_HINTS','_handle','bootSyncedPipelines','nidFor','tokens','compactStorage','getJob','\x20of\x20env\x20\x22','stopping','$within','ringSize','__HOLD__','~engines','openEnv','setModeApplied','exportToStream','claimed','capacity','Referenced\x20key\x20\x27','field\x20resolver\x20request\x20still\x20pending','isLoopbackIp','_teardownNative','debug','REF_VIOLATION','pipelineFamily','clearAsync','queue:done','durableRebuild','job_type.payload_schema\x20must\x20be\x20object|null','use\x20engines.registerDriver()','query','_subsV2','\x27\x20does\x20not\x20exist\x20in\x20type\x20\x27','msgpackr','setDefaultTTL','options','processorsStatus','endsWith','lmdb','idempotency_key','_readBuf','OKDBIndexAlreadyRegisteredError','_setPeerState','_pokeListener','type','uninstalled','child','viewOp','~emb:models','createSearch','sseSend','bus:env_release','buildStep','_tickCallback','addBucket','TXN_START','byteOffset','embeddings:indexer:doc:queued','log\x20entry\x20fields\x20too\x20large\x20(>2KB\x20serialized)','lockHeld','createIndexer','completeJob','engine:','install','_durableWorkerStats','change','priority','node:fs','drainJobType','registerViewReducer','no\x20write\x20has\x20landed.\x20Writes/commit\x20are\x20unaffected.','native','nodeKey','register','dupSort','durableMarkDone','TYPE_ALREADY_REGISTERED','BAD_PARAM','limit','bootSyncedViews','lastIndexOf','setPrototypeOf','clearDone','use','null','STARTED','HTTP\x20server\x20already\x20running','isArray','getSecurityNotices','T_SESSION','summary','REMOVE','materializer','listTypes','doesExist','released\x20at\x20the\x20first\x20await/turn\x20boundary.\x20Consume\x20ranges\x20before\x20any\x20await,\x20or\x20','144984gfLzfL','intervalTimer','granId','__ttlCancelledGen','11020464vkohHT','login','createEnvironment','log\x20entry\x20must\x20be\x20a\x20string\x20or\x20object','encodeInto','readTransaction','_handleInProcess','listRecords','relay','applyChange','enforced','buffer','queue:rescheduled','_scheduleFlush','valuesForKey','group','ms\x20busy=','FTS_FLUSH_TIMEOUT','_native','files','$lt','WriteBatch','.\x20Valid:\x20','fingerprint','upsertLink','listLinks','vector','orchestratorStarted','durableWorkerStats','startsWith','bucket_tokens','embed-worker','embeddings:pipeline:ready','__peers','inclusiveEnd','backup'];_0x1561=function(){return _0x195a9c;};return _0x1561();}var mcp,hasRequiredMcp;function requireMcp(){const _0x4262e8=_0x2ec26e;if(hasRequiredMcp)return mcp;hasRequiredMcp=0x1;class _0x484d52{constructor(_0x5d5772){this['okdb']=_0x5d5772,this['clients']=new Map();}['_n'](_0x29f30b,_0x4b3552){const _0x44b425=_0x3ebb;try{return this[_0x44b425(0x21e)][_0x44b425(0x49e)](_0x44b425(0x403),null,_0x29f30b,_0x4b3552,!![]);}catch(_0x5b4866){if(_0x5b4866&&_0x5b4866[_0x44b425(0x748)]===_0x44b425(0x336)&&_0x5b4866[_0x44b425(0x79f)]){if(_0x5b4866[_0x44b425(0x79f)][_0x44b425(0x75e)]!==undefined)_0x5b4866[_0x44b425(0x75e)]=_0x5b4866['details']['jsonrpcCode'];_0x5b4866['details']=_0x5b4866[_0x44b425(0x79f)]['details'],_0x5b4866[_0x44b425(0x748)]=undefined;}throw _0x5b4866;}}['_tools'](){return this['_n']('tools',[]);}async[_0x4262e8(0x49e)](_0x16129d,_0x2373ce={}){const _0x3f972e=_0x4262e8;return this['_n'](_0x3f972e(0x853),[_0x16129d??null,_0x2373ce??{}]);}async[_0x4262e8(0x648)](_0x581ca6,_0x385009={}){const _0x2f8738=_0x4262e8;return this['_n'](_0x2f8738(0x4aa),[_0x581ca6,_0x385009??{}]);}['_initialize'](_0x3685a8){const _0xe22795=_0x4262e8;return this['_n'](_0xe22795(0x1ee),[_0x3685a8??null]);}}return mcp={'OKDBMcp':_0x484d52},mcp;}var sys,hasRequiredSys;function requireSys(){const _0x273bb8=_0x2ec26e;if(hasRequiredSys)return sys;hasRequiredSys=0x1;function _0x22d7a5(_0x50edfd,_0x1065a7,_0x606e87){const _0x2d92dd=_0x3ebb,_0x280ca5={};for(const [_0x3364a1,_0x568aa0]of Object[_0x2d92dd(0x72a)](_0x606e87)){_0x280ca5[_0x3364a1]=_0x568aa0===_0x2d92dd(0x887)?async(..._0x26b9d9)=>_0x50edfd['_call'](_0x1065a7,null,_0x3364a1,_0x26b9d9):(..._0x2f5f2f)=>_0x50edfd[_0x2d92dd(0x49e)](_0x1065a7,null,_0x3364a1,_0x2f5f2f,![]);}return _0x280ca5;}const _0x28c8b7=['listTypes','isType',_0x273bb8(0x214),'describeAllTypes','listIndexes',_0x273bb8(0x2cc),_0x273bb8(0x2ef),'describeIndex',_0x273bb8(0x3eb),_0x273bb8(0x253),_0x273bb8(0x520),_0x273bb8(0x6e8),_0x273bb8(0x190),'meta',_0x273bb8(0x367),'getIndexCount',_0x273bb8(0x565),_0x273bb8(0x803),_0x273bb8(0x776),_0x273bb8(0x3b8),_0x273bb8(0x438)],_0x96e58e={'add':'async','activate':_0x273bb8(0x887),'remove':_0x273bb8(0x887),'list':'sync','get':_0x273bb8(0x5f3),'effective':_0x273bb8(0x5f3)},_0x39b10f={'open':_0x273bb8(0x887),'register':'async','buildOwnRow':_0x273bb8(0x5f3),'_buildProcessingFacet':_0x273bb8(0x5f3),'reportThreadStats':_0x273bb8(0x5f3),'clearThreadStats':_0x273bb8(0x5f3),'emitProc':'sync','addSupervisedChild':'async','removeSupervisedChild':'sync','updateSupervisedChildStats':_0x273bb8(0x5f3),'publishChildRow':_0x273bb8(0x887),'putNode':'async','removeNode':_0x273bb8(0x887),'nodeDead':_0x273bb8(0x5f3),'listNodes':_0x273bb8(0x5f3),'reap':_0x273bb8(0x887),'publishOwnRow':_0x273bb8(0x887),'deregisterSelf':'async','setOwnMeta':_0x273bb8(0x5f3),'noteListenAddr':'sync','hasDesired':_0x273bb8(0x5f3),'getDesired':'sync','setDesired':_0x273bb8(0x887),'listDesired':'sync','getCmd':_0x273bb8(0x5f3),'bumpCmd':'async','processingStatusView':_0x273bb8(0x5f3),'processorsView':_0x273bb8(0x5f3),'clusterStatusView':_0x273bb8(0x5f3),'nodesView':_0x273bb8(0x5f3),'treeView':'sync','getProcess':_0x273bb8(0x5f3),'runtimeProcessesView':_0x273bb8(0x5f3)};function _0x109b3a(_0x36ea56){const _0x3af01a=_0x273bb8,_0x290fda={},_0x40d886=_0x19668d=>_0x19668d&&typeof _0x19668d===_0x3af01a(0x1be)&&!Array[_0x3af01a(0x69e)](_0x19668d)&&typeof _0x19668d[_0x3af01a(0x6fe)]===_0x3af01a(0x4bb)?_0x19668d[_0x3af01a(0x6fe)]:_0x19668d;for(const _0x40d9f2 of _0x28c8b7)_0x290fda[_0x40d9f2]=_0x40d9f2===_0x3af01a(0x3b8)?async(..._0x24c712)=>_0x36ea56['_call'](_0x3af01a(0x47b),null,_0x40d9f2,_0x24c712[_0x3af01a(0x1a7)](_0x40d886),!![]):(..._0x5a14ee)=>_0x36ea56['_call'](_0x3af01a(0x47b),null,_0x40d9f2,_0x5a14ee['map'](_0x40d886),![]);return _0x290fda;}function _0xcd0419(_0x27c69b){const _0x22ff6c=_0x22d7a5(_0x27c69b,'licenses',_0x96e58e);return _0x22ff6c;}function _0x55d214(_0xfbac20){const _0x1f0a89=_0x273bb8,_0x576a7b=()=>_0xfbac20[_0x1f0a89(0x60e)][_0x1f0a89(0x462)](),_0xff0ae4=_0x596aaf=>_0x596aaf[_0x1f0a89(0x209)]?{..._0x596aaf,'_isFree':!![]}:_0x596aaf;return{async 'addLicense'(_0x52de77){const _0x4235c9=_0x1f0a89;return _0xfbac20[_0x4235c9(0x60e)][_0x4235c9(0x7df)](_0x52de77);},async 'reload'(){},async 'recheck'(){},get 'active'(){const _0x4ac83b=_0x1f0a89,_0x15c2ef=_0x576a7b();return _0x15c2ef[_0x4ac83b(0x209)]?null:_0x15c2ef;},get 'effective'(){return _0xff0ae4(_0x576a7b());},'hasLimit'(_0x8cc3b0){const _0x32cceb=_0x1f0a89,_0x1846a9=_0x576a7b();if(!_0x1846a9[_0x32cceb(0x6b5)])return![];const _0x220ac2=_0x1846a9[_0x32cceb(0x635)]?.[_0x8cc3b0];return!(_0x220ac2===null||_0x220ac2===undefined||_0x220ac2===0x0);},'isFeatureEnabled'(_0xeb724e){const _0x4cee44=_0x576a7b();return!_0x4cee44['enforced']||!!_0x4cee44['features']?.[_0xeb724e];},'assertFeature'(_0xca05ea){const _0x2e0411=_0x1f0a89,_0x578e54=_0x576a7b();if(!_0x578e54[_0x2e0411(0x6b5)]||_0x578e54['features']?.[_0xca05ea])return;const {OKDBError:_0x22f67d}=requireErrors(),_0x3096e2=_0x578e54[_0x2e0411(0x209)]?'Feature\x20not\x20available\x20on\x20free\x20tier:\x20'+_0xca05ea+'.\x20Add\x20a\x20license\x20that\x20includes\x20\x22'+_0xca05ea+_0x2e0411(0x7a8):_0x2e0411(0x732)+_0xca05ea+'.\x20The\x20active\x20license\x20does\x20not\x20enable\x20\x22'+_0xca05ea+'\x22.';throw new _0x22f67d(_0x3096e2,_0x2e0411(0x450),{'feature':_0xca05ea});},'assertLimit'(_0x5e2827,_0x358635){const _0x157486=_0x1f0a89,_0x40c3d9=_0x576a7b();if(!_0x40c3d9[_0x157486(0x6b5)])return;const _0x8c9984=_0x40c3d9[_0x157486(0x635)]?.[_0x5e2827];if(_0x8c9984===null||_0x8c9984===undefined||_0x8c9984===0x0)return;if(_0x358635>=_0x8c9984){const {OKDBError:_0x296ea6}=requireErrors();throw new _0x296ea6(_0x157486(0x4f8)+_0x5e2827+'\x20('+_0x358635+'/'+_0x8c9984+')','LICENSE_LIMIT_EXCEEDED',{'limit':_0x5e2827,'current':_0x358635,'max':_0x8c9984});}},'listLicenses'(){const _0x5de828=_0x1f0a89;return _0xfbac20[_0x5de828(0x60e)][_0x5de828(0x338)]();},'getPins'(){const _0x2581d3=_0x1f0a89;return _0xfbac20[_0x2581d3(0x60e)]['list']()[_0x2581d3(0x1a7)](_0x55131f=>({'licenseId':_0x55131f['id'],'pin':_0x55131f[_0x2581d3(0x673)]===_0x2581d3(0x626)?null:_0x55131f[_0x2581d3(0x7a7)]}));}};}function _0x50018a(_0x13d3b6){const _0x58d459=_0x273bb8,_0x210d85=_0x22d7a5(_0x13d3b6,'processes',_0x39b10f);Object[_0x58d459(0x79d)](_0x210d85,_0x58d459(0x617),{'get':()=>_0x13d3b6[_0x58d459(0x49e)](_0x58d459(0x196),null,_0x58d459(0x617),[],![])}),Object[_0x58d459(0x79d)](_0x210d85,_0x58d459(0x383),{'get':()=>_0x13d3b6[_0x58d459(0x49e)](_0x58d459(0x196),null,_0x58d459(0x383),[],![])}),_0x210d85[_0x58d459(0x85d)]=null;const _0x55fa6c=_0x210d85['noteListenAddr'];_0x210d85[_0x58d459(0x84a)]=_0x383f47=>{const _0x64bf5c=_0x58d459;return _0x210d85[_0x64bf5c(0x85d)]=_0x383f47,_0x55fa6c(_0x383f47);};const _0x410d4e=()=>_0x210d85[_0x58d459(0x81c)]()[_0x58d459(0x1a7)](_0x2d921e=>({'key':_0x2d921e[_0x58d459(0x68f)],'value':_0x2d921e,'version':0x1})),_0x22189a={'name':_0x58d459(0x7a3),'_sync':![],'_isOpen':!![],'isProcessStore':!![],'hasType':_0x507745=>_0x507745===_0x58d459(0x7f4),'getRange':_0x500739=>_0x500739===_0x58d459(0x7f4)?_0x410d4e()[Symbol[_0x58d459(0x56e)]]():[][Symbol['iterator']](),'getKeys':_0x9b6ef7=>_0x9b6ef7===_0x58d459(0x7f4)?_0x410d4e()['map'](_0x2830cd=>_0x2830cd[_0x58d459(0x366)])[Symbol[_0x58d459(0x56e)]]():[][Symbol[_0x58d459(0x56e)]](),'getValues':_0x3634d3=>_0x3634d3===_0x58d459(0x7f4)?_0x410d4e()[_0x58d459(0x1a7)](_0x445c5c=>_0x445c5c[_0x58d459(0x820)])[Symbol['iterator']]():[][Symbol[_0x58d459(0x56e)]](),'get':(_0x43ce1f,_0x5a26e8)=>_0x43ce1f===_0x58d459(0x7f4)?_0x410d4e()[_0x58d459(0x21c)](_0x2ebbc2=>_0x2ebbc2[_0x58d459(0x366)]===_0x5a26e8)?.[_0x58d459(0x820)]:undefined,'getCount':_0x162d08=>_0x162d08===_0x58d459(0x7f4)?_0x410d4e()['length']:0x0};Object[_0x58d459(0x79d)](_0x210d85,_0x58d459(0x816),{'get':()=>_0x13d3b6[_0x58d459(0x49e)](_0x58d459(0x196),null,'statusOpen',[],![])?_0x22189a:null});const _0x3c8026=_0x210d85[_0x58d459(0x626)];_0x210d85[_0x58d459(0x626)]=async _0x3eb1f6=>{const _0xd1c632=_0x58d459;return await _0x3c8026(_0x3eb1f6),_0x210d85[_0xd1c632(0x816)];},_0x210d85[_0x58d459(0x5c5)]=()=>_0x13d3b6[_0x58d459(0x49e)]('processes',null,_0x58d459(0x5c3),[],!![]);const {RawDb:_0x2173a2}=requireRawdb();return Object['defineProperty'](_0x210d85,_0x58d459(0x3c0),{'get':()=>_0x13d3b6[_0x58d459(0x851)]?_0x210d85[_0x58d459(0x525)]||=new _0x2173a2(_0x13d3b6[_0x58d459(0x851)],_0x58d459(0x1c4)):undefined}),Object[_0x58d459(0x79d)](_0x210d85,_0x58d459(0x30a),{'get':()=>_0x13d3b6[_0x58d459(0x851)]?_0x210d85[_0x58d459(0x519)]||=new _0x2173a2(_0x13d3b6[_0x58d459(0x851)],'~processes:cmd'):undefined}),_0x210d85[_0x58d459(0x54e)]=()=>_0x13d3b6[_0x58d459(0x49e)](_0x58d459(0x196),null,_0x58d459(0x54e),[],![]),Object[_0x58d459(0x79d)](_0x210d85,'_isWriter',{'get':()=>_0x13d3b6['_call'](_0x58d459(0x196),null,'isWriter',[],![])}),Object[_0x58d459(0x79d)](_0x210d85,_0x58d459(0x4a1),{'get':()=>_0x13d3b6[_0x58d459(0x49e)](_0x58d459(0x196),null,_0x58d459(0x426),[],![])}),_0x210d85[_0x58d459(0x205)]=()=>_0x13d3b6['_call']('processes',null,_0x58d459(0x7d3),[],![]),_0x210d85[_0x58d459(0x16b)]=(_0x2f36dc,_0x9a87fc)=>_0x13d3b6[_0x58d459(0x49e)]('processes',null,_0x58d459(0x28b),[_0x2f36dc,_0x9a87fc],![]),_0x210d85;}return sys={'makeMeta':_0x109b3a,'makeLicenses':_0xcd0419,'makeLicenseChecker':_0x55d214,'makeProcesses':_0x50018a},sys;}var okdbLogger,hasRequiredOkdbLogger;function requireOkdbLogger(){const _0x4c2366=_0x2ec26e;if(hasRequiredOkdbLogger)return okdbLogger;hasRequiredOkdbLogger=0x1;const _0x35db1a={'debug':0xa,'info':0x14,'warn':0x1e,'error':0x28};class _0x5834c0{constructor(_0x152133){const _0xb1de71=_0x3ebb;this['okdb']=_0x152133,this[_0xb1de71(0x763)]=new Set(),this['_meta']={};}[_0x4c2366(0x675)](_0x2829c2){const _0x18ed2b=_0x4c2366,_0x583e18=new _0x5834c0(this['okdb']);return _0x583e18[_0x18ed2b(0x763)]=this[_0x18ed2b(0x763)],_0x583e18['_meta']={...this[_0x18ed2b(0x70f)],..._0x2829c2},_0x583e18;}[_0x4c2366(0x3f0)](_0x17abf3){const _0xdf6b9d=_0x4c2366;return this[_0xdf6b9d(0x763)][_0xdf6b9d(0x7df)](_0x17abf3),()=>this[_0xdf6b9d(0x763)][_0xdf6b9d(0x82f)](_0x17abf3);}['attachConsole'](){const _0x222c04=_0x4c2366,_0x6755d2=_0x35db1a[process.env.OKDB_LOG_LEVEL]??_0x35db1a[_0x222c04(0x7c6)];return this[_0x222c04(0x4ed)]=this[_0x222c04(0x3f0)](({level:_0x580ff3,msg:_0x15b28c,meta:_0x255e05,context:_0x5b757b,ts:_0x2666f2})=>{const _0x4890f6=_0x222c04;if((_0x35db1a[_0x580ff3]??_0x35db1a['info'])<_0x6755d2)return;if(_0x255e05?.[_0x4890f6(0x344)]===_0x4890f6(0x762)&&(_0x580ff3===_0x4890f6(0x7c6)||_0x580ff3===_0x4890f6(0x65d)))return;const _0x2bb351=_0x580ff3==='error'?console[_0x4890f6(0x254)]:_0x580ff3===_0x4890f6(0x7e1)?console[_0x4890f6(0x7e1)]:_0x580ff3===_0x4890f6(0x7c6)?console[_0x4890f6(0x7c6)]:console[_0x4890f6(0x793)],_0x4fddf6=_0x255e05&&Object[_0x4890f6(0x1d5)](_0x255e05)['length']>0x0;_0x4fddf6||_0x5b757b!==undefined?_0x2bb351(new Date(_0x2666f2)['toISOString'](),_0x15b28c,..._0x4fddf6?[_0x255e05]:[],..._0x5b757b!==undefined?[_0x5b757b]:[]):_0x2bb351(new Date(_0x2666f2)[_0x4890f6(0x20e)](),_0x15b28c);}),this[_0x222c04(0x4ed)];}[_0x4c2366(0x5e5)](){const _0xf83cef=_0x4c2366;this[_0xf83cef(0x4ed)]&&(this[_0xf83cef(0x4ed)](),this[_0xf83cef(0x4ed)]=null);}[_0x4c2366(0x33c)](_0x227f41,_0x276780){const _0x18fd15=_0x4c2366,_0x11d731=require$$0$4,_0xd558d6=0x1f4,_0x376709=Number(process.env.OKDB_LOG_FLUSH_MS)||0x3e8;let _0x22a447=[],_0x407ee0=0x0,_0x4b9f7c=null;const _0x518758=()=>{const _0x42ea50=_0x3ebb;_0x4b9f7c=null;if(_0x22a447[_0x42ea50(0x6cf)]===0x0)return;const _0x5b35d4=_0x22a447;_0x22a447=[],_0x407ee0>0x0&&(_0x5b35d4['push']({'ts':Date[_0x42ea50(0x89e)](),'level':_0x42ea50(0x7e1),'msg':_0x42ea50(0x50a)+_0x407ee0+'\x20log\x20entr'+(_0x407ee0===0x1?'y':_0x42ea50(0x860))+_0x42ea50(0x211),'feature':'log','node':_0x276780,'context':null}),_0x407ee0=0x0),_0x227f41[_0x42ea50(0x27c)](_0x3476c5=>{const _0x45d799=_0x42ea50;for(const _0x355ab5 of _0x5b35d4)_0x3476c5[_0x45d799(0x27f)](_0x45d799(0x1f5),_0x11d731[_0x45d799(0x770)](),_0x355ab5);})[_0x42ea50(0x189)](()=>{});},_0x1b928a=this[_0x18fd15(0x3f0)](({level:_0x832a98,msg:_0x350dc7,meta:_0xc2ae3f,context:_0x403ed2,ts:_0x29f1a1})=>{const _0x301d89=_0x18fd15;if(_0x832a98==='debug')return;_0x22a447['length']>=_0xd558d6&&(_0x407ee0++,_0x22a447[_0x301d89(0x7be)]()),_0x22a447[_0x301d89(0x2fb)]({'ts':_0x29f1a1,'level':_0x832a98,'msg':_0x350dc7,'feature':_0xc2ae3f?.[_0x301d89(0x344)]??_0xc2ae3f?.[_0x301d89(0x277)]??null,'node':_0x276780,'context':_0x403ed2??null}),!_0x4b9f7c&&(_0x4b9f7c=setTimeout(_0x518758,_0x376709),_0x4b9f7c[_0x301d89(0x702)]?.());});return()=>{_0x1b928a();if(_0x4b9f7c)clearTimeout(_0x4b9f7c);_0x518758();};}[_0x4c2366(0x5d1)](_0x1ee779,_0x5c6195,_0x2c1254){const _0x595993=_0x4c2366;_0x5c6195 instanceof Error&&(_0x2c1254={'message':_0x5c6195[_0x595993(0x2d2)],'stack':_0x5c6195['stack'],..._0x2c1254},_0x5c6195=_0x5c6195[_0x595993(0x2d2)]);const _0x17aa03={'level':_0x1ee779,'msg':_0x5c6195,'meta':{...this[_0x595993(0x70f)]},'context':_0x2c1254,'ts':Date['now']()};try{this['okdb']['events'][_0x595993(0x6d6)](_0x595993(0x793),_0x17aa03);}catch{}for(const _0x4e88fe of this[_0x595993(0x763)]){try{_0x4e88fe(_0x17aa03);}catch{}}}[_0x4c2366(0x2f2)](_0x2006d3){const _0x15cbfb=_0x4c2366;try{this[_0x15cbfb(0x21e)]?.['events']?.[_0x15cbfb(0x6d6)](_0x15cbfb(0x793),_0x2006d3);}catch{}for(const _0xc771a1 of this[_0x15cbfb(0x763)]){try{_0xc771a1(_0x2006d3);}catch{}}}[_0x4c2366(0x7c6)](_0x2af69b,_0xeb0619){const _0x3e7bf3=_0x4c2366;this[_0x3e7bf3(0x5d1)](_0x3e7bf3(0x7c6),_0x2af69b,_0xeb0619);}[_0x4c2366(0x7e1)](_0x7ca106,_0x28b89a){const _0x250dcc=_0x4c2366;this[_0x250dcc(0x5d1)](_0x250dcc(0x7e1),_0x7ca106,_0x28b89a);}[_0x4c2366(0x254)](_0x3d830f,_0x325175){this['_emit']('error',_0x3d830f,_0x325175);}['debug'](_0x33f2c5,_0x4e2f60){const _0x2b2050=_0x4c2366;this[_0x2b2050(0x5d1)]('debug',_0x33f2c5,_0x4e2f60);}}return okdbLogger=_0x5834c0,okdbLogger;}var okdbPlugins,hasRequiredOkdbPlugins;function requireOkdbPlugins(){const _0x396868=_0x2ec26e;if(hasRequiredOkdbPlugins)return okdbPlugins;hasRequiredOkdbPlugins=0x1;const {OKDB_STATE:_0x13533c}=requireOkdbEnums(),{OKDBError:_0x1da66b}=requireOkdbError();class _0x5ea929{constructor(_0x2b3386){const _0x946978=_0x3ebb;this[_0x946978(0x21e)]=_0x2b3386,this['_plugins']=[];}[_0x396868(0x690)](_0x47861b,_0x45ff36){const _0x3e875e=_0x396868;if(this[_0x3e875e(0x21e)]['state']!==_0x13533c[_0x3e875e(0x59f)])throw new _0x1da66b(_0x3e875e(0x863),_0x3e875e(0x645),{'state':this[_0x3e875e(0x21e)][_0x3e875e(0x41c)]});if(!_0x47861b[_0x3e875e(0x6fe)])throw new _0x1da66b('Plugin\x20must\x20have\x20a\x20name','BAD_PLUGIN',{'plugin':_0x47861b[_0x3e875e(0x6fe)]});const _0x4a3ed5=_0x47861b['requires']??[];for(const _0x1caa85 of _0x4a3ed5){if(!this[_0x3e875e(0x82e)][_0x3e875e(0x786)](_0x337c19=>_0x337c19['module'][_0x3e875e(0x6fe)]===_0x1caa85))throw new _0x1da66b('Missing\x20plugin:\x20'+_0x1caa85+_0x3e875e(0x447)+_0x47861b[_0x3e875e(0x6fe)]+')',_0x3e875e(0x240),{'required':_0x1caa85});}if(this[_0x3e875e(0x82e)][_0x3e875e(0x21c)](_0x57cfb5=>_0x57cfb5[_0x3e875e(0x277)][_0x3e875e(0x6fe)]===_0x47861b[_0x3e875e(0x6fe)]))throw new _0x1da66b(_0x3e875e(0x17e)+_0x47861b[_0x3e875e(0x6fe)]+_0x3e875e(0x6d5),_0x3e875e(0x707),{'plugin':_0x47861b['name']});if(_0x47861b['name']in this[_0x3e875e(0x21e)])throw new _0x1da66b('Plugin\x20name\x20\x27'+_0x47861b[_0x3e875e(0x6fe)]+'\x27\x20conflicts\x20with\x20existing\x20OKDB\x20property',_0x3e875e(0x59a));const _0x51154f=_0x47861b[_0x3e875e(0x690)](this[_0x3e875e(0x21e)],_0x45ff36);if(!_0x51154f||typeof _0x51154f!==_0x3e875e(0x1be))throw new _0x1da66b(_0x3e875e(0x17e)+_0x47861b[_0x3e875e(0x6fe)]+_0x3e875e(0x855),'BAD_PLUGIN',{'plugin':_0x47861b[_0x3e875e(0x6fe)]});this[_0x3e875e(0x82e)][_0x3e875e(0x2fb)]({'module':_0x47861b,'options':_0x45ff36,'instance':_0x51154f});}['_started']=[];async[_0x396868(0x898)](){const _0x6aa174=_0x396868;try{for(const _0x48319c of this[_0x6aa174(0x82e)]){await _0x48319c['instance'][_0x6aa174(0x898)]?.(this[_0x6aa174(0x21e)]),this[_0x6aa174(0x3cb)]['push'](_0x48319c);}}catch(_0x5c93b7){await this[_0x6aa174(0x893)]()[_0x6aa174(0x189)](()=>{});throw _0x5c93b7;}}async['stop'](){const _0x3c4260=_0x396868,_0x9a8785=this['_started']['reverse']();this['_started']=[];let _0x1a5db4=null;for(const _0x27151d of _0x9a8785){try{await _0x27151d['instance'][_0x3c4260(0x893)]?.(this[_0x3c4260(0x21e)]);}catch(_0x2ce5ae){_0x1a5db4??=_0x2ce5ae;}}if(_0x1a5db4)throw _0x1a5db4;}}return okdbPlugins=_0x5ea929,okdbPlugins;}var statics,hasRequiredStatics;function requireStatics(){const _0x4d72f3=_0x2ec26e;if(hasRequiredStatics)return statics;hasRequiredStatics=0x1;const _0x57ca69={'maxDbs':0x400,'pageSize':0x1000,'compression':!![],'encryptionKey':undefined,'mapSize':0x100000000,'durability':_0x4d72f3(0x3ff)},_0x1c1bd8=new Set([_0x4d72f3(0x358),'pageSize',_0x4d72f3(0x3f2),_0x4d72f3(0x4e9),_0x4d72f3(0x224),'mapSize',_0x4d72f3(0x1ba),_0x4d72f3(0x806),_0x4d72f3(0x66d),'auth',_0x4d72f3(0x5f3),'queue','functions',_0x4d72f3(0x54d),_0x4d72f3(0x403),_0x4d72f3(0x3d3),_0x4d72f3(0x793),_0x4d72f3(0x308),'readerCheckIntervalMs',_0x4d72f3(0x1a5),'processors',_0x4d72f3(0x819),'processes',_0x4d72f3(0x218),_0x4d72f3(0x370),_0x4d72f3(0x593),_0x4d72f3(0x2a7),_0x4d72f3(0x65d),_0x4d72f3(0x2eb),_0x4d72f3(0x6ce)]),_0x48a8e2={'http':_0x4d72f3(0x83f)};return statics={'defaults':_0x57ca69,'KNOWN_OPTIONS':_0x1c1bd8,'_OPTION_HINTS':_0x48a8e2},statics;}var licenseConfig,hasRequiredLicenseConfig;function requireLicenseConfig(){const _0xb020e1=_0x2ec26e;if(hasRequiredLicenseConfig)return licenseConfig;hasRequiredLicenseConfig=0x1;const _0x3d010d=require$$0$2,_0x57a1fe='-----BEGIN\x20PUBLIC\x20KEY-----\x0aMCowBQYDK2VwAyEAacrkExPrhxNVHyeQBLDwg8xfm1OwyxDAPNdGXABYS2s=\x0a-----END\x20PUBLIC\x20KEY-----',_0x4c8b68=_0x3d010d['createHash'](_0xb020e1(0x47d))['update'](_0x3d010d['createPublicKey'](_0x57a1fe)[_0xb020e1(0x56d)]({'type':'spki','format':_0xb020e1(0x7f2)}))[_0xb020e1(0x5e8)]('hex')[_0xb020e1(0x5ca)](0x0,0x10),_0x3e5d0e={'LICENSED_BUILD':_0xb020e1(0x3ee),'PUBLIC_KEY_PEM':_0x57a1fe,'PUB_FINGERPRINT':_0x4c8b68,'LICENSE_EXPIRED_ACTION':_0xb020e1(0x793)};return licenseConfig={'_C':_0x3e5d0e,'PUBLIC_KEY_PEM':_0x57a1fe,'PUB_FINGERPRINT':_0x4c8b68},licenseConfig;}var okdbSubscriptionsStore={'exports':{}},okdbQueryFilter,hasRequiredOkdbQueryFilter;function requireOkdbQueryFilter(){const _0x5e2413=_0x2ec26e;if(hasRequiredOkdbQueryFilter)return okdbQueryFilter;hasRequiredOkdbQueryFilter=0x1;const _0x3b0234=require$$0$5,{OKDBError:_0x509d49}=requireOkdbError(),_0x154c5a=[_0x5e2413(0x499),'$ne',_0x5e2413(0x1c3),_0x5e2413(0x50c),_0x5e2413(0x6bf),_0x5e2413(0x17a),_0x5e2413(0x3c5),_0x5e2413(0x81e),_0x5e2413(0x333),_0x5e2413(0x1da),'$options',_0x5e2413(0x1b1),_0x5e2413(0x1f2),_0x5e2413(0x80c),_0x5e2413(0x562),'$elemMatch',_0x5e2413(0x2e9),_0x5e2413(0x584),_0x5e2413(0x5dc),'$nor'],_0x4feb2e=['$where'];function _0x4f8427(_0x1fc3ad){return()=>{const _0x41bdcb=_0x3ebb,_0x1313d9=new _0x509d49(_0x41bdcb(0x712)+_0x1fc3ad+_0x41bdcb(0x5c0),_0x41bdcb(0x26d),{'operator':_0x1fc3ad});_0x1313d9[_0x41bdcb(0x1c9)]=0x190;throw _0x1313d9;};}const _0x2ee770=Object['freeze']({...Object[_0x5e2413(0x804)](_0x154c5a[_0x5e2413(0x1a7)](_0x373e5b=>[_0x373e5b,_0x3b0234[_0x373e5b]])),...Object[_0x5e2413(0x804)](_0x4feb2e[_0x5e2413(0x1a7)](_0x3acd5e=>[_0x3acd5e,_0x4f8427(_0x3acd5e)]))});function _0x3da044(_0x4da199){const _0x52dfdd=_0x5e2413;return _0x3b0234[_0x52dfdd(0x42d)](_0x4da199,{'operations':_0x2ee770});}function _0x5c0dbf(_0x21e9a8){const _0x5bd9cf=_0x5e2413;if(_0x21e9a8==null)return;try{_0x3da044(_0x21e9a8);}catch(_0x325de1){if(_0x325de1?.[_0x5bd9cf(0x748)]==='QUERY_OPERATOR_FORBIDDEN')throw _0x325de1;}}return okdbQueryFilter={'compileFilter':_0x3da044,'assertFilterAllowed':_0x5c0dbf,'ALLOWED_OPERATORS':_0x154c5a,'FORBIDDEN_OPERATORS':_0x4feb2e},okdbQueryFilter;}var okdbEnvRefs,hasRequiredOkdbEnvRefs;function requireOkdbEnvRefs(){const _0x2086fc=_0x2ec26e;if(hasRequiredOkdbEnvRefs)return okdbEnvRefs;hasRequiredOkdbEnvRefs=0x1;const {CHANGE_ACTIONS:_0x55737b,EVENTS:_0x362466}=requireOkdbEnums(),{OKDBError:_0x4eb244,OKDBForeignKeyDeleteError:_0x5c8be5}=requireOkdbError(),_0x1ee512=_0x2086fc(0x7aa),_0x36c181=new Set([_0x2086fc(0x237),_0x2086fc(0x4a7),_0x2086fc(0x20c),'restrict']);function _0x47a122(_0x2aa913,_0x10594b){const _0x4e3d34=_0x2086fc;if(_0x2aa913==null||!_0x10594b)return undefined;const _0x198e9a=_0x10594b[_0x4e3d34(0x3f8)]('.');let _0x2af3c8=_0x2aa913;for(const _0x5644e of _0x198e9a){if(_0x2af3c8==null||typeof _0x2af3c8!==_0x4e3d34(0x1be)||!(_0x5644e in _0x2af3c8))return undefined;_0x2af3c8=_0x2af3c8[_0x5644e];}return _0x2af3c8;}function _0x895b60(_0x13260e,_0x3e6e2e,_0x16232b){const _0x4edd55=_0x2086fc,_0x53e2b9=_0x3e6e2e[_0x4edd55(0x3f8)]('.'),_0x36834e={..._0x13260e};let _0x1a7b44=_0x36834e;for(let _0x2bd775=0x0;_0x2bd775<_0x53e2b9[_0x4edd55(0x6cf)]-0x1;_0x2bd775++){_0x1a7b44[_0x53e2b9[_0x2bd775]]=_0x1a7b44[_0x53e2b9[_0x2bd775]]!=null?{..._0x1a7b44[_0x53e2b9[_0x2bd775]]}:{},_0x1a7b44=_0x1a7b44[_0x53e2b9[_0x2bd775]];}return _0x1a7b44[_0x53e2b9[_0x53e2b9[_0x4edd55(0x6cf)]-0x1]]=_0x16232b,_0x36834e;}function _0x401a8c(_0x5548fd,_0x178a35,_0x3f3ae9,_0x7d860f,_0x1b49ed){return[_0x5548fd,_0x178a35,_0x3f3ae9,_0x7d860f,_0x1b49ed];}function _0x97714d(_0x25c256){const _0x1fa250=_0x2086fc;return typeof _0x25c256==='string'||typeof _0x25c256===_0x1fa250(0x5c1);}function _0x5c31f0(_0x54c0ba,_0x195fde){const _0x17b988=_0x2086fc;return JSON[_0x17b988(0x4d2)]([_0x54c0ba,_0x195fde]);}function*_0x1799dd(_0x5b5e91,_0x17d941,_0x385331){const _0x2f588b=_0x2086fc,_0x311ed5=_0x385331!==undefined;for(const {key:_0x4f2c8e}of _0x5b5e91[_0x2f588b(0x3fa)]({'start':_0x311ed5?[_0x17d941,_0x385331]:[_0x17d941]})){if(!Array['isArray'](_0x4f2c8e))continue;if(_0x4f2c8e[0x0]!==_0x17d941||_0x311ed5&&_0x4f2c8e[0x1]!==_0x385331)break;yield _0x4f2c8e;}}function _0x5ac15a(_0xadaa8f,_0x452ce1='',_0x23ff7a=null){const _0x209eac=_0x2086fc,_0x291e5b=[];if(!_0xadaa8f||typeof _0xadaa8f!==_0x209eac(0x1be))return _0x291e5b;if(!_0x23ff7a)_0x23ff7a=_0xadaa8f;if(_0xadaa8f[_0x209eac(0x52e)]){const _0xe6b584=_0xadaa8f['$ref'][_0x209eac(0x810)](/^#\/\$defs\/(.+)$/);if(_0xe6b584&&_0x23ff7a?.[_0x209eac(0x177)]?.[_0xe6b584[0x1]])return _0x5ac15a(_0x23ff7a['$defs'][_0xe6b584[0x1]],_0x452ce1,_0x23ff7a);return _0x291e5b;}if(_0xadaa8f[_0x209eac(0x8a8)]&&typeof _0xadaa8f[_0x209eac(0x8a8)]===_0x209eac(0x1be)&&_0xadaa8f[_0x209eac(0x8a8)][_0x209eac(0x673)]){const _0x15e135=_0xadaa8f['ref'][_0x209eac(0x207)]||_0x209eac(0x237);if(!_0x36c181[_0x209eac(0x51e)](_0x15e135))throw new _0x4eb244(_0x209eac(0x4a0)+_0x15e135+'\x27\x20at\x20'+(_0x452ce1||_0x209eac(0x2ee))+_0x209eac(0x6c1)+[..._0x36c181][_0x209eac(0x3d2)](',\x20'),_0x209eac(0x2d6));_0x291e5b[_0x209eac(0x2fb)]({'fieldPath':_0x452ce1,'targetType':_0xadaa8f[_0x209eac(0x8a8)][_0x209eac(0x673)],'onDelete':_0x15e135});}if(_0xadaa8f[_0x209eac(0x39b)])for(const [_0x75fc7b,_0x1806f6]of Object['entries'](_0xadaa8f[_0x209eac(0x39b)])){const _0x5b159b=_0x452ce1?_0x452ce1+'.'+_0x75fc7b:_0x75fc7b;_0x291e5b[_0x209eac(0x2fb)](..._0x5ac15a(_0x1806f6,_0x5b159b,_0x23ff7a));}return _0x291e5b;}function _0x295007(_0x4211fd){const _0xba4d9d=_0x2086fc,_0x307cd=new Map(),_0x5a986a=new Map();for(const _0xdec901 of _0x4211fd[_0xba4d9d(0x7af)]()){if(_0xdec901[_0xba4d9d(0x6c8)]('~'))continue;const _0x48b77d=_0x4211fd[_0xba4d9d(0x779)][_0xba4d9d(0x63c)](_0xdec901);if(!_0x48b77d?.[_0xba4d9d(0x2d4)]?.[_0xba4d9d(0x814)])continue;let _0x4e3002;try{_0x4e3002=_0x5ac15a(_0x48b77d[_0xba4d9d(0x2d4)]['definition']);}catch{continue;}if(_0x4e3002[_0xba4d9d(0x6cf)]>0x0){_0x307cd[_0xba4d9d(0x328)](_0xdec901,_0x4e3002);for(const _0x257c30 of _0x4e3002){if(!_0x5a986a[_0xba4d9d(0x51e)](_0x257c30[_0xba4d9d(0x749)]))_0x5a986a[_0xba4d9d(0x328)](_0x257c30[_0xba4d9d(0x749)],[]);_0x5a986a[_0xba4d9d(0x63c)](_0x257c30[_0xba4d9d(0x749)])['push']({'sourceType':_0xdec901,'fieldPath':_0x257c30['fieldPath'],'onDelete':_0x257c30[_0xba4d9d(0x207)]});}}}_0x4211fd[_0xba4d9d(0x4b1)]={'outgoing':_0x307cd,'incoming':_0x5a986a};if(_0x307cd[_0xba4d9d(0x221)]>0x0)_0x152c11(_0x4211fd);}function _0xe7feb2(_0x458cc7,_0x364065){const _0x28d806=_0x2086fc;return _0x458cc7[_0x28d806(0x4b1)]['outgoing'][_0x28d806(0x63c)](_0x364065)||[];}function _0xec2eed(_0x502acd,_0x559af3){const _0x5f2d42=_0x2086fc;return _0x502acd[_0x5f2d42(0x4b1)][_0x5f2d42(0x847)][_0x5f2d42(0x63c)](_0x559af3)||[];}function _0x152c11(_0x3ba6c4){const _0x148f9b=_0x2086fc;if(_0x3ba6c4[_0x148f9b(0x2ae)])return _0x3ba6c4[_0x148f9b(0x2ae)];return _0x3ba6c4[_0x148f9b(0x2ae)]=_0x3ba6c4['db'][_0x148f9b(0x840)](_0x148f9b(0x58b),{'dupSort':![]}),_0x3ba6c4[_0x148f9b(0x2ae)];}function _0x23a737(_0x51ed8b,_0x26e66e,_0x2b4e4e,_0x21c337,_0x4b945b){const _0x13cfba=_0x2086fc,_0xc90f7c=_0xe7feb2(_0x51ed8b,_0x26e66e);if(_0xc90f7c[_0x13cfba(0x6cf)]===0x0)return;const _0x2f5042=_0x152c11(_0x51ed8b);for(const _0x598ed2 of _0xc90f7c){const _0x46ab6a=_0x4b945b!=null?_0x47a122(_0x4b945b,_0x598ed2[_0x13cfba(0x5c7)]):undefined,_0x1e8f85=_0x21c337!=null?_0x47a122(_0x21c337,_0x598ed2[_0x13cfba(0x5c7)]):undefined;if(_0x46ab6a===_0x1e8f85)continue;_0x97714d(_0x46ab6a)&&_0x2f5042[_0x13cfba(0x76e)](_0x401a8c(_0x598ed2[_0x13cfba(0x749)],_0x46ab6a,_0x26e66e,_0x2b4e4e,_0x598ed2[_0x13cfba(0x5c7)])),_0x97714d(_0x1e8f85)&&_0x2f5042[_0x13cfba(0x225)](_0x401a8c(_0x598ed2[_0x13cfba(0x749)],_0x1e8f85,_0x26e66e,_0x2b4e4e,_0x598ed2[_0x13cfba(0x5c7)]),0x1);}}function _0x1047ce(_0x2bb9d8,_0x1270dd,_0x53af1b,_0x5151f5){const _0x549fa1=_0x2086fc,_0x5736cb=_0xe7feb2(_0x2bb9d8,_0x1270dd);if(_0x5736cb[_0x549fa1(0x6cf)]===0x0)return;const _0x5fa318=_0x152c11(_0x2bb9d8);for(const _0x40ef14 of _0x5736cb){const _0x5658ef=_0x5151f5!=null?_0x47a122(_0x5151f5,_0x40ef14[_0x549fa1(0x5c7)]):undefined;_0x97714d(_0x5658ef)&&_0x5fa318[_0x549fa1(0x76e)](_0x401a8c(_0x40ef14[_0x549fa1(0x749)],_0x5658ef,_0x1270dd,_0x53af1b,_0x40ef14[_0x549fa1(0x5c7)]));}}function _0x53fe5c(_0x16035a,_0x2d5dd2,_0x549fca,_0x4f2fed){const _0x22f0e0=_0x2086fc,_0x5822a0=_0xe7feb2(_0x16035a,_0x2d5dd2);if(_0x5822a0[_0x22f0e0(0x6cf)]===0x0)return[];const _0x30a536=[];for(const _0x350223 of _0x5822a0){const _0x560e1e=_0x47a122(_0x4f2fed,_0x350223[_0x22f0e0(0x5c7)]);if(_0x560e1e==null)continue;if(!_0x16035a[_0x22f0e0(0x3c7)](_0x350223[_0x22f0e0(0x749)])){_0x30a536[_0x22f0e0(0x2fb)]({'fieldPath':_0x350223[_0x22f0e0(0x5c7)],'targetType':_0x350223[_0x22f0e0(0x749)],'targetKey':_0x560e1e,'message':_0x22f0e0(0x34f)+_0x350223[_0x22f0e0(0x749)]+_0x22f0e0(0x355)});continue;}const _0x2b728d=_0x16035a[_0x22f0e0(0x4e7)](_0x350223['targetType'])[_0x22f0e0(0x734)];!_0x2b728d[_0x22f0e0(0x6a5)](_0x560e1e)&&_0x30a536[_0x22f0e0(0x2fb)]({'fieldPath':_0x350223[_0x22f0e0(0x5c7)],'targetType':_0x350223[_0x22f0e0(0x749)],'targetKey':_0x560e1e,'message':_0x22f0e0(0x659)+_0x560e1e+_0x22f0e0(0x667)+_0x350223[_0x22f0e0(0x749)]+'\x27'});}return _0x30a536;}function _0x5855b0(_0x3cb271,_0x5c7e28,_0x55d1cb,_0x5bd94d,_0x18a5b4,{timestamp:_0x36e357,origin:_0x24af3f,_cascadeVisited:_0x5be62a}){const _0x526041=_0x2086fc,_0xe5803a=_0xec2eed(_0x3cb271,_0x55d1cb);if(_0xe5803a[_0x526041(0x6cf)]===0x0)return;const _0x45b47d=_0x152c11(_0x3cb271),_0x484097=[];for(const [,,_0x47c308,_0x3fd408,_0x26a7cb]of _0x1799dd(_0x45b47d,_0x55d1cb,_0x5bd94d)){_0x484097[_0x526041(0x2fb)]({'sourceType':_0x47c308,'sourceKey':_0x3fd408,'fieldPath':_0x26a7cb});}if(_0x484097[_0x526041(0x6cf)]===0x0)return;for(const _0x241c25 of _0x484097){const _0x2619f5=_0xe5803a[_0x526041(0x21c)](_0x55182c=>_0x55182c[_0x526041(0x4ab)]===_0x241c25[_0x526041(0x4ab)]&&_0x55182c[_0x526041(0x5c7)]===_0x241c25[_0x526041(0x5c7)]),_0x19d91c=_0x2619f5?.['onDelete']||_0x526041(0x237);switch(_0x19d91c){case _0x526041(0x56f):{if(_0x24af3f===null)throw new _0x5c8be5(_0x55d1cb,_0x5bd94d,_0x484097[_0x526041(0x852)](_0x12e660=>{const _0x41ba7d=_0x526041,_0x591692=_0xe5803a[_0x41ba7d(0x21c)](_0x22a5be=>_0x22a5be[_0x41ba7d(0x4ab)]===_0x12e660['sourceType']&&_0x22a5be[_0x41ba7d(0x5c7)]===_0x12e660[_0x41ba7d(0x5c7)]);return(_0x591692?.[_0x41ba7d(0x207)]||_0x41ba7d(0x237))==='restrict';}));break;}case _0x526041(0x4a7):{const _0xf5f484=_0x5c31f0(_0x241c25[_0x526041(0x4ab)],_0x241c25[_0x526041(0x514)]);if(_0x5be62a['has'](_0xf5f484))continue;_0x3cb271[_0x526041(0x4e7)](_0x241c25[_0x526041(0x4ab)])[_0x526041(0x734)][_0x526041(0x6a5)](_0x241c25[_0x526041(0x514)])&&_0x3cb271[_0x526041(0x28e)](_0x5c7e28,_0x241c25[_0x526041(0x4ab)],_0x241c25[_0x526041(0x514)],{'timestamp':_0x36e357,'origin':_0x24af3f,'_cascadeVisited':_0x5be62a});break;}case _0x526041(0x20c):{const _0x30ff94=_0x3cb271[_0x526041(0x4e7)](_0x241c25[_0x526041(0x4ab)])[_0x526041(0x734)],_0x507d76=_0x30ff94[_0x526041(0x2ec)](_0x241c25[_0x526041(0x514)]);if(_0x507d76){const _0x5891aa=_0x895b60(_0x507d76[_0x526041(0x820)],_0x241c25[_0x526041(0x5c7)],null);_0x3cb271[_0x526041(0x75c)](_0x5c7e28,'put',_0x241c25[_0x526041(0x4ab)],_0x241c25[_0x526041(0x514)],_0x5891aa,{'timestamp':_0x36e357,'origin':_0x24af3f,'_cascading':!![]});}break;}}}}function _0x349a64(_0x4b990e){const _0x4c9669=_0x2086fc;!_0x4b990e[_0x4c9669(0x3c7)](_0x1ee512)&&_0x4b990e[_0x4c9669(0x7ab)](_0x1ee512);}function _0x2ca571(_0x308671,_0x424ead,_0x3a13ab,_0x33d964,_0x4b26c1,_0x11651b,_0x4cda49,{timestamp:timestamp=Date['now'](),origin:origin=null}={}){const _0x4e008d=_0x2086fc;_0x349a64(_0x308671);const _0x346dd6=_0x3a13ab+'@'+_0x33d964+'@'+_0x4b26c1,_0x27486b={'sourceType':_0x3a13ab,'sourceKey':_0x33d964,'fieldPath':_0x4b26c1,'targetType':_0x11651b,'targetKey':_0x4cda49,'timestamp':timestamp,'origin':origin},_0x35bb77=_0x308671[_0x4e008d(0x4e7)](_0x1ee512)[_0x4e008d(0x734)],_0x3b3f97=_0x35bb77[_0x4e008d(0x2ec)](_0x346dd6),_0x2cc914=_0x3b3f97?_0x3b3f97['version']+0x1:0x1;_0x35bb77[_0x4e008d(0x225)](_0x346dd6,_0x27486b,_0x2cc914),_0x308671['_logChange']({'id':_0x4e008d(0x26c)+_0x1ee512+'@'+_0x346dd6,'type':_0x1ee512,'key':_0x346dd6,'action':_0x55737b[_0x4e008d(0x554)],'timestamp':timestamp,'txnId':_0x424ead?.['id'],'origin':origin},_0x3b3f97?.['value'],_0x27486b),_0x308671[_0x4e008d(0x29a)][_0x4e008d(0x6d6)](_0x362466[_0x4e008d(0x65e)],{'sourceType':_0x3a13ab,'sourceKey':_0x33d964,'fieldPath':_0x4b26c1,'targetType':_0x11651b,'targetKey':_0x4cda49,'env':_0x308671[_0x4e008d(0x6fe)]});}function _0x34761d(_0x49a20b,_0x44eb4d,_0x5cfd2f,_0x1ea571,_0x28cbad,{timestamp:timestamp=Date[_0x2086fc(0x89e)](),origin:origin=null}={}){const _0x2f9682=_0x2086fc;if(!_0x49a20b[_0x2f9682(0x3c7)](_0x1ee512))return;const _0x865412=_0x5cfd2f+'@'+_0x1ea571+'@'+_0x28cbad,_0x3f27a6=_0x49a20b['_getType'](_0x1ee512)[_0x2f9682(0x734)],_0xc22c0d=_0x3f27a6[_0x2f9682(0x2ec)](_0x865412);if(!_0xc22c0d)return;_0x3f27a6[_0x2f9682(0x76e)](_0x865412),_0x49a20b['_logChange']({'id':_0x2f9682(0x26c)+_0x1ee512+'@'+_0x865412,'type':_0x1ee512,'key':_0x865412,'action':_0x55737b[_0x2f9682(0x6a2)],'timestamp':timestamp,'txnId':_0x44eb4d?.['id'],'origin':origin},_0xc22c0d[_0x2f9682(0x820)],undefined),_0x49a20b[_0x2f9682(0x29a)]['emit'](_0x362466[_0x2f9682(0x3ef)],{'sourceType':_0x5cfd2f,'sourceKey':_0x1ea571,'fieldPath':_0x28cbad,'env':_0x49a20b[_0x2f9682(0x6fe)]});}function _0x1a72a3(_0x3d67fa,_0x19f624,_0x2afb5b,_0x548c35,_0x5cb087={}){const _0x3cfe6a=_0x2086fc;if(!_0x3d67fa[_0x3cfe6a(0x3c7)](_0x1ee512))return;const _0x396cc0=_0x3d67fa[_0x3cfe6a(0x4e7)](_0x1ee512)[_0x3cfe6a(0x734)],_0x565406=_0x2afb5b+'@'+_0x548c35+'@',_0x5681b2=[];for(const {key:_0x555fea,value:_0x432026}of _0x396cc0[_0x3cfe6a(0x3fa)]({'start':_0x565406,'end':_0x565406+'\uffff'})){if(_0x432026?.[_0x3cfe6a(0x4ab)]===_0x2afb5b&&_0x432026?.[_0x3cfe6a(0x514)]===_0x548c35)_0x5681b2[_0x3cfe6a(0x2fb)](_0x555fea);}for(const _0x266161 of _0x5681b2){const _0x5b6df4=_0x396cc0['getEntry'](_0x266161);if(!_0x5b6df4)continue;_0x396cc0[_0x3cfe6a(0x76e)](_0x266161),_0x3d67fa[_0x3cfe6a(0x286)]({'id':_0x3cfe6a(0x26c)+_0x1ee512+'@'+_0x266161,'type':_0x1ee512,'key':_0x266161,'action':_0x55737b['REMOVE'],'timestamp':_0x5cb087[_0x3cfe6a(0x44e)]||Date[_0x3cfe6a(0x89e)](),'txnId':_0x19f624?.['id'],'origin':_0x5cb087['origin']},_0x5b6df4[_0x3cfe6a(0x820)],undefined);}}function _0x2ea1bc(_0x1d4059,_0x3c7603){const _0x7a3c81=_0x2086fc;if(!_0x1d4059[_0x7a3c81(0x3c7)](_0x1ee512))return;const _0x37e496=_0x1d4059[_0x7a3c81(0x4e7)](_0x1ee512)[_0x7a3c81(0x734)],_0xdaec9e=_0x3c7603+'@',_0x28ae85=[];for(const {key:_0x1508ac,value:_0x139704}of _0x37e496[_0x7a3c81(0x3fa)]({'start':_0xdaec9e,'end':_0xdaec9e+'\uffff'})){if(_0x139704?.[_0x7a3c81(0x4ab)]===_0x3c7603)_0x28ae85[_0x7a3c81(0x2fb)](_0x1508ac);}for(const _0x127a95 of _0x28ae85)_0x37e496['removeSync'](_0x127a95);}async function _0x576e3e(_0x36ef33,_0x3dd0b0){const _0x2bf2f6=_0x2086fc,_0x40f589=_0xe7feb2(_0x36ef33,_0x3dd0b0);if(_0x40f589[_0x2bf2f6(0x6cf)]===0x0)return;await _0x36ef33[_0x2bf2f6(0x291)][_0x2bf2f6(0x7f7)](()=>{const _0x297467=_0x2bf2f6;for(const {key:_0x23def5,value:_0x3bf219}of _0x36ef33[_0x297467(0x3fa)](_0x3dd0b0)){_0x23a737(_0x36ef33,_0x3dd0b0,_0x23def5,_0x3bf219,null);const _0x1e0b7b=_0x53fe5c(_0x36ef33,_0x3dd0b0,_0x23def5,_0x3bf219);for(const _0x25aee3 of _0x1e0b7b){_0x2ca571(_0x36ef33,null,_0x3dd0b0,_0x23def5,_0x25aee3[_0x297467(0x5c7)],_0x25aee3[_0x297467(0x749)],_0x25aee3[_0x297467(0x768)]);}}});}const _0x589d1d=0x1388;async function _0x4db479(_0xc4cee3){const _0x506e92=_0x2086fc,_0x371d21=_0xc4cee3['_refCache']?.[_0x506e92(0x1fb)]?.[_0x506e92(0x221)]>0x0;if(!_0x371d21&&!_0xc4cee3[_0x506e92(0x2ae)])return{'dropped':0x0,'written':0x0};const _0xd7ba44=_0x152c11(_0xc4cee3);let _0x42aaca=0x0;for(;;){const _0x165206=Array['from'](_0xd7ba44[_0x506e92(0x7d2)]({'limit':_0x589d1d}));if(_0x165206[_0x506e92(0x6cf)]===0x0)break;let _0x14fafe=0x0;await _0xc4cee3[_0x506e92(0x291)]['transaction'](()=>{const _0x208b28=_0x506e92;for(const _0x168348 of _0x165206)if(_0xd7ba44[_0x208b28(0x76e)](_0x168348))_0x14fafe++;});if(_0x14fafe===0x0)break;_0x42aaca+=_0x14fafe;}let _0x20ff81=0x0;for(const _0x231927 of _0xc4cee3[_0x506e92(0x4b1)]['outgoing'][_0x506e92(0x1d5)]()){if(_0x231927[_0x506e92(0x6c8)]('~')||!_0xc4cee3[_0x506e92(0x3c7)](_0x231927))continue;const _0xe9a436=_0xe7feb2(_0xc4cee3,_0x231927);await _0xc4cee3['_writer'][_0x506e92(0x7f7)](()=>{const _0x368423=_0x506e92;for(const {key:_0x2b807a,value:_0x2bbd28}of _0xc4cee3['getRange'](_0x231927)){for(const _0x28cc6f of _0xe9a436){const _0x48c933=_0x47a122(_0x2bbd28,_0x28cc6f[_0x368423(0x5c7)]);if(!_0x97714d(_0x48c933))continue;_0xd7ba44[_0x368423(0x225)](_0x401a8c(_0x28cc6f[_0x368423(0x749)],_0x48c933,_0x231927,_0x2b807a,_0x28cc6f[_0x368423(0x5c7)]),0x1),_0x20ff81++;}}});}return{'dropped':_0x42aaca,'written':_0x20ff81};}return okdbEnvRefs={'getFieldValue':_0x47a122,'setFieldValue':_0x895b60,'refIndexKey':_0x401a8c,'isRefTarget':_0x97714d,'cascadeVisitKey':_0x5c31f0,'extractRefs':_0x5ac15a,'rebuildRefCache':_0x295007,'getTypeRefs':_0xe7feb2,'getIncomingRefs':_0xec2eed,'getRefIndexDb':_0x152c11,'updateRefIndex':_0x23a737,'removeRefIndexEntries':_0x1047ce,'refIndexRowsFor':_0x1799dd,'rebuildRefIndex':_0x4db479,'checkForeignKeys':_0x53fe5c,'processDeleteCascade':_0x5855b0,'setRefViolation':_0x2ca571,'clearRefViolation':_0x34761d,'clearRefViolationsForKey':_0x1a72a3,'clearRefViolationsForType':_0x2ea1bc,'syncRefIndex':_0x576e3e},okdbEnvRefs;}var hasRequiredOkdbSubscriptionsStore;function requireOkdbSubscriptionsStore(){const _0x226419=_0x2ec26e;if(hasRequiredOkdbSubscriptionsStore)return okdbSubscriptionsStore[_0x226419(0x3be)];hasRequiredOkdbSubscriptionsStore=0x1;const _0x4ae891=require$$0$4,{assertFilterAllowed:_0xe634b6}=requireOkdbQueryFilter(),{rebuildRefCache:_0x1920e6}=requireOkdbEnvRefs(),_0x42eb58='~sub',_0x125447=_0x226419(0x77d),_0x335c8b=_0x226419(0x84d),_0x26afe5=[_0x226419(0x215),_0x226419(0x673),_0x226419(0x366)],_0x56aef8=[_0x226419(0x215),'type'],_0x11b967=0x5a*0x3e8,_0x1e527b=Math[_0x226419(0x265)](_0x11b967/0x2);class _0x2b7974{constructor(_0x35acbf,_0x5a44f2={}){const _0x1d337e=_0x226419;this[_0x1d337e(0x21e)]=_0x35acbf,this[_0x1d337e(0x5b3)]=Number['isFinite'](_0x5a44f2[_0x1d337e(0x5b3)])&&_0x5a44f2[_0x1d337e(0x5b3)]>0x0?_0x5a44f2[_0x1d337e(0x5b3)]:_0x11b967,this[_0x1d337e(0x1de)]=Number[_0x1d337e(0x5ef)](_0x5a44f2[_0x1d337e(0x1de)])?_0x5a44f2[_0x1d337e(0x1de)]:_0x1e527b,this['_sub']=null;}async[_0x226419(0x626)](){const _0x4a8f36=_0x226419;if(this[_0x4a8f36(0x588)])return this[_0x4a8f36(0x588)];const _0x57f0a4=await this[_0x4a8f36(0x21e)]['createEnvironment'](_0x42eb58,{'sync':![]});return await _0x57f0a4['ensureType'](_0x125447,{'indexes':[_0x56aef8]}),await _0x57f0a4[_0x4a8f36(0x5cf)](_0x335c8b),_0x57f0a4[_0x4a8f36(0x2d0)](_0x335c8b)?_0x1920e6(_0x57f0a4):await _0x57f0a4[_0x4a8f36(0x573)](_0x335c8b,{'definition':{'type':_0x4a8f36(0x1be),'properties':{'sessionId':{'type':_0x4a8f36(0x4bb),'ref':{'type':_0x125447,'onDelete':_0x4a8f36(0x4a7)}},'dataEnv':{'type':'string'},'type':{'type':_0x4a8f36(0x4bb)},'key':{'type':'string'}},'required':[_0x4a8f36(0x7d9),_0x4a8f36(0x215),_0x4a8f36(0x673),_0x4a8f36(0x366)]},'enforce':!![]}),await _0x57f0a4[_0x4a8f36(0x5cf)](_0x335c8b,{'indexes':[_0x26afe5]}),await _0x57f0a4[_0x4a8f36(0x76a)](_0x335c8b,_0x26afe5),await _0x57f0a4[_0x4a8f36(0x76a)](_0x125447,_0x56aef8),this[_0x4a8f36(0x588)]=_0x57f0a4,_0x57f0a4;}['_env'](){const _0x4f7c98=_0x226419;if(!this['_sub'])throw new Error(_0x4f7c98(0x387));return this[_0x4f7c98(0x588)];}async['createSession']({sessionId:_0xbc9b11,dataEnv:_0x9124e2,type:_0x4054f3,filter:filter=null,ttlMs:_0x5dc511}={}){const _0x25b002=_0x226419,_0x3aec2c=this[_0x25b002(0x51f)]();_0xe634b6(filter);const _0x440b71=_0xbc9b11!=null&&String(_0xbc9b11)[_0x25b002(0x6cf)]>0x0?String(_0xbc9b11):_0x4ae891[_0x25b002(0x770)](),_0x1692ad=Number[_0x25b002(0x5ef)](_0x5dc511)&&_0x5dc511>0x0?_0x5dc511:this[_0x25b002(0x5b3)],_0x2f3092=Date[_0x25b002(0x89e)](),_0x2c96bb={'sessionId':_0x440b71,'dataEnv':_0x9124e2,'type':_0x4054f3,'filter':filter??null,'version':0x0,'createdAt':_0x2f3092,'expiresAt':_0x2f3092+_0x1692ad};return await _0x3aec2c[_0x25b002(0x27f)](_0x125447,_0x440b71,_0x2c96bb,{'ttl':_0x1692ad}),{'sessionId':_0x440b71,'version':0x0};}['getSession'](_0x16de25){const _0x1d1cc7=_0x226419;if(!_0x16de25)return null;return this[_0x1d1cc7(0x51f)]()[_0x1d1cc7(0x63c)](_0x125447,String(_0x16de25))??null;}async[_0x226419(0x4d0)](_0x40ff97){const _0x34b576=_0x226419,_0x41b0cb=this['_env'](),_0x5c42f9=String(_0x40ff97);if(!_0x41b0cb[_0x34b576(0x63c)](_0x125447,_0x5c42f9))return![];return await _0x41b0cb[_0x34b576(0x42f)](_0x125447,_0x5c42f9),!![];}async[_0x226419(0x5e4)](_0x3d4387){const _0x588296=_0x226419,_0x1fcd44=this['_env'](),_0x2b8051=String(_0x3d4387),_0x31b81e=_0x1fcd44[_0x588296(0x63c)](_0x125447,_0x2b8051);if(!_0x31b81e)return null;const _0x3eb3f4=(Number[_0x588296(0x5ef)](_0x31b81e['version'])?_0x31b81e['version']:0x0)+0x1;return await _0x1fcd44['put'](_0x125447,_0x2b8051,{..._0x31b81e,'version':_0x3eb3f4}),_0x3eb3f4;}async[_0x226419(0x32f)](_0x4d8116,_0x4701b){const _0x32ace3=_0x226419,_0x34b8ce=this[_0x32ace3(0x51f)](),_0x592dde=String(_0x4d8116);if(!_0x34b8ce[_0x32ace3(0x63c)](_0x125447,_0x592dde))return![];const _0x57a9d5=Number['isFinite'](_0x4701b)&&_0x4701b>0x0?_0x4701b:this[_0x32ace3(0x5b3)];if(this[_0x32ace3(0x3fc)](_0x592dde))return![];return await _0x34b8ce[_0x32ace3(0x397)](_0x125447,_0x592dde,_0x57a9d5),await this[_0x32ace3(0x713)](_0x592dde,_0x57a9d5),!![];}async['refreshTtlBatch'](_0x1e0634,_0x1ad902){const _0x472f35=_0x226419,_0x523689=this['_env'](),_0x388d72=Number[_0x472f35(0x5ef)](_0x1ad902)&&_0x1ad902>0x0?_0x1ad902:this[_0x472f35(0x5b3)],_0x2d8101=Date[_0x472f35(0x89e)](),_0x287a4e=[];for(const _0x43d9c1 of _0x1e0634||[]){const _0x12290c=String(_0x43d9c1),_0x4be073=_0x523689['get'](_0x125447,_0x12290c);if(!_0x4be073)continue;if(this[_0x472f35(0x3fc)](_0x12290c,_0x2d8101))continue;_0x287a4e[_0x472f35(0x2fb)]({'id':_0x12290c,'cur':_0x4be073});}if(_0x287a4e[_0x472f35(0x6cf)]===0x0)return[];return await _0x523689[_0x472f35(0x27c)](async _0x21445c=>{const _0x3a43ee=_0x472f35;for(const {id:_0x2d32b7,cur:_0x350249}of _0x287a4e){_0x21445c['put'](_0x125447,_0x2d32b7,{..._0x350249,'expiresAt':_0x2d8101+_0x388d72}),_0x21445c[_0x3a43ee(0x397)](_0x125447,_0x2d32b7,_0x388d72);}}),_0x287a4e[_0x472f35(0x1a7)](_0x47201e=>_0x47201e['id']);}[_0x226419(0x3fc)](_0x445dad,_0x513f24=Date[_0x226419(0x89e)]()){const _0x1b78bf=_0x226419,_0x35687e=this[_0x1b78bf(0x51f)]()[_0x1b78bf(0x329)](_0x125447,String(_0x445dad));if(!_0x35687e)return![];return _0x35687e['expiresAt']-_0x513f24>this[_0x1b78bf(0x1de)];}async['_syncExpiresAtField'](_0x58ff4e,_0x2c2bed){const _0x42b0b8=_0x226419,_0x26a5c0=this['_env'](),_0x5154cf=_0x26a5c0['get'](_0x125447,_0x58ff4e);if(!_0x5154cf)return;await _0x26a5c0[_0x42b0b8(0x27f)](_0x125447,_0x58ff4e,{..._0x5154cf,'expiresAt':Date[_0x42b0b8(0x89e)]()+_0x2c2bed});}async[_0x226419(0x480)](_0x7377c1,_0x465c0e,_0x209ce0){const _0x14f74a=_0x226419,_0x27ca40=this[_0x14f74a(0x51f)](),_0x4f60f7=String(_0x7377c1),_0x11b8c0=_0x27ca40[_0x14f74a(0x63c)](_0x125447,_0x4f60f7);if(!_0x11b8c0)throw new Error(_0x14f74a(0x2ca)+_0x4f60f7);const _0x3d5403=_0x4ae891[_0x14f74a(0x770)]();return await _0x27ca40[_0x14f74a(0x27f)](_0x335c8b,_0x3d5403,{'sessionId':_0x4f60f7,'dataEnv':String(_0x11b8c0[_0x14f74a(0x215)]),'type':String(_0x465c0e),'key':String(_0x209ce0)}),_0x3d5403;}async['_commitSessionMutation'](_0x5dd4bf,_0x3b4971,{retries:retries=0x8}={}){const _0x25275a=_0x226419,_0x3f818c=this['_env']();for(let _0x305382=0x0;;_0x305382++){const _0x267030=_0x3f818c[_0x25275a(0x2ec)](_0x125447,_0x5dd4bf);if(!_0x267030)return null;const _0x2cd356=_0x267030[_0x25275a(0x820)],_0x4cfbc8=(Number[_0x25275a(0x5ef)](_0x2cd356[_0x25275a(0x280)])?_0x2cd356[_0x25275a(0x280)]:0x0)+0x1,{sessionPatch:sessionPatch={},applyInterests:applyInterests=null}=_0x3b4971(_0x2cd356,_0x3f818c)||{};try{return await _0x3f818c[_0x25275a(0x27c)](async _0x371cd5=>{const _0x10fc69=_0x25275a;applyInterests?.(_0x371cd5),_0x371cd5[_0x10fc69(0x27f)](_0x125447,_0x5dd4bf,{..._0x2cd356,...sessionPatch,'version':_0x4cfbc8},{'ifVersion':_0x267030['version']});}),_0x4cfbc8;}catch(_0x1c86d1){if(_0x1c86d1?.['code']===_0x25275a(0x17b)&&_0x305382<retries)continue;throw _0x1c86d1;}}}async[_0x226419(0x70d)](_0x50beae,{add:add=[],remove:remove=[]}={}){const _0x345f7a=_0x226419,_0x14498=String(_0x50beae);return this[_0x345f7a(0x577)](_0x14498,(_0x31cd52,_0x66d33f)=>{const _0x48e113=_0x345f7a,_0xcefce4=String(_0x31cd52['dataEnv']),_0x49e621=new Set((remove||[])[_0x48e113(0x1a7)](_0x5cf671=>String(_0x5cf671[_0x48e113(0x673)])+'\x00'+String(_0x5cf671[_0x48e113(0x366)]))),_0x24cd44=[];if(_0x49e621[_0x48e113(0x221)]>0x0)for(const {key:_0x3b82ae,value:_0x1b8f63}of _0x66d33f['getRange'](_0x335c8b,{})){if(!_0x1b8f63||_0x1b8f63['sessionId']!==_0x14498)continue;if(_0x49e621['has'](_0x1b8f63[_0x48e113(0x673)]+'\x00'+_0x1b8f63[_0x48e113(0x366)]))_0x24cd44[_0x48e113(0x2fb)](_0x3b82ae);}const _0x371fcc=(add||[])[_0x48e113(0x1a7)](_0x4485a0=>({'id':_0x4ae891['randomUUID'](),'type':String(_0x4485a0[_0x48e113(0x673)]),'key':String(_0x4485a0[_0x48e113(0x366)])}));return{'applyInterests':_0x25ac70=>{const _0x1355fe=_0x48e113;for(const _0x3fb8a7 of _0x24cd44)_0x25ac70[_0x1355fe(0x42f)](_0x335c8b,_0x3fb8a7);for(const _0x22cf64 of _0x371fcc)_0x25ac70['put'](_0x335c8b,_0x22cf64['id'],{'sessionId':_0x14498,'dataEnv':_0xcefce4,'type':_0x22cf64[_0x1355fe(0x673)],'key':_0x22cf64[_0x1355fe(0x366)]});}};});}async[_0x226419(0x289)](_0x3024a7,_0x30edf6){const _0x574dd5=_0x226419;_0xe634b6(_0x30edf6);const _0x495f22=String(_0x3024a7);return this[_0x574dd5(0x577)](_0x495f22,()=>({'sessionPatch':{'filter':_0x30edf6??null}}));}async['removeInterest'](_0x37b2d8,_0x577666,_0x46dd71){const _0x87f778=_0x226419,_0x52ae87=this[_0x87f778(0x51f)](),_0x576643=String(_0x37b2d8),_0x3de39c=String(_0x577666),_0x1bd99f=String(_0x46dd71),_0x9d9099=[];for(const {key:_0x1ccf41,value:_0x207880}of _0x52ae87[_0x87f778(0x3fa)](_0x335c8b,{})){if(_0x207880&&_0x207880['sessionId']===_0x576643&&_0x207880['type']===_0x3de39c&&_0x207880[_0x87f778(0x366)]===_0x1bd99f)_0x9d9099[_0x87f778(0x2fb)](_0x1ccf41);}for(const _0x215014 of _0x9d9099)await _0x52ae87[_0x87f778(0x42f)](_0x335c8b,_0x215014);return _0x9d9099[_0x87f778(0x6cf)];}async[_0x226419(0x553)](_0x1df4d8,_0x3109ed){const _0x5cbeac=_0x226419,_0xa97979=String(_0x1df4d8);return this[_0x5cbeac(0x577)](_0xa97979,(_0x44728e,_0x47da52)=>{const _0x38ac54=_0x5cbeac,_0xd4cbf9=String(_0x44728e[_0x38ac54(0x215)]),_0x537024=[];for(const {key:_0x74a81f,value:_0x5f0b41}of _0x47da52[_0x38ac54(0x3fa)](_0x335c8b,{})){if(_0x5f0b41&&_0x5f0b41[_0x38ac54(0x7d9)]===_0xa97979)_0x537024[_0x38ac54(0x2fb)](_0x74a81f);}const _0x577239=(_0x3109ed||[])['map'](_0x293685=>({'id':_0x4ae891[_0x38ac54(0x770)](),'type':String(_0x293685['type']),'key':String(_0x293685[_0x38ac54(0x366)])}));return{'applyInterests':_0x5422ff=>{const _0x1f6b77=_0x38ac54;for(const _0x184e37 of _0x537024)_0x5422ff['remove'](_0x335c8b,_0x184e37);for(const _0x532ffa of _0x577239)_0x5422ff[_0x1f6b77(0x27f)](_0x335c8b,_0x532ffa['id'],{'sessionId':_0xa97979,'dataEnv':_0xd4cbf9,'type':_0x532ffa[_0x1f6b77(0x673)],'key':_0x532ffa['key']});}};});}['sessionsForKey'](_0x4c6b83,_0xf291c7,_0x419f89){const _0x187401=_0x226419,_0x1b0d74=this[_0x187401(0x51f)](),_0x160f25=String(_0x4c6b83),_0x36263a=String(_0xf291c7),_0x35f0dd=String(_0x419f89),_0x3065fa=new Set();for(const {value:_0x5427e3}of _0x1b0d74[_0x187401(0x2c0)](_0x335c8b,_0x26afe5,{'start':[_0x160f25,_0x36263a,_0x35f0dd],'end':[_0x160f25,_0x36263a,_0x35f0dd,'']})){if(_0x5427e3&&_0x5427e3[_0x187401(0x7d9)])_0x3065fa[_0x187401(0x7df)](_0x5427e3['sessionId']);}return[..._0x3065fa];}['filterSessionsForType'](_0x52f0dc,_0x1a0af3){const _0x325d01=_0x226419,_0x17df6e=this[_0x325d01(0x51f)](),_0xc42732=String(_0x52f0dc),_0x252f78=String(_0x1a0af3),_0x2f1f54=[];for(const {value:_0x3139c8}of _0x17df6e[_0x325d01(0x2c0)](_0x125447,_0x56aef8,{'start':[_0xc42732,_0x252f78],'end':[_0xc42732,_0x252f78,'\uffff']})){if(!_0x3139c8||_0x3139c8['dataEnv']!==_0xc42732||_0x3139c8[_0x325d01(0x673)]!==_0x252f78)continue;if(_0x3139c8['filter']==null)continue;_0x2f1f54[_0x325d01(0x2fb)]({'sessionId':_0x3139c8['sessionId'],'filter':_0x3139c8['filter'],'version':Number[_0x325d01(0x5ef)](_0x3139c8[_0x325d01(0x280)])?_0x3139c8[_0x325d01(0x280)]:0x0});}return _0x2f1f54;}async[_0x226419(0x5b0)](){const _0x17a929=_0x226419;return this[_0x17a929(0x51f)]()[_0x17a929(0x6f7)]();}}return okdbSubscriptionsStore['exports']=_0x2b7974,okdbSubscriptionsStore[_0x226419(0x3be)][_0x226419(0x5c4)]=_0x42eb58,okdbSubscriptionsStore['exports'][_0x226419(0x6a0)]=_0x125447,okdbSubscriptionsStore[_0x226419(0x3be)]['T_INTEREST']=_0x335c8b,okdbSubscriptionsStore['exports'][_0x226419(0x3e0)]=_0x26afe5,okdbSubscriptionsStore[_0x226419(0x3be)][_0x226419(0x42e)]=_0x56aef8,okdbSubscriptionsStore['exports'][_0x226419(0x279)]=_0x11b967,okdbSubscriptionsStore[_0x226419(0x3be)];}var version='3.1.4',require$$29={'version':version},okdbEnginesEnums,hasRequiredOkdbEnginesEnums;function requireOkdbEnginesEnums(){const _0x2e8299=_0x2ec26e;if(hasRequiredOkdbEnginesEnums)return okdbEnginesEnums;hasRequiredOkdbEnginesEnums=0x1;const _0x31e6bf=_0x2e8299(0x653),_0x2471ad=0xa,_0xa6d147=Object[_0x2e8299(0x62b)]({'CREATED':_0x2e8299(0x244),'ONLINE':_0x2e8299(0x714),'STOPPED':_0x2e8299(0x2d9),'INACTIVE':'inactive','ERROR':_0x2e8299(0x254),'REMOVED':_0x2e8299(0x384)}),_0x115f47=Object[_0x2e8299(0x62b)]({'STARTED':_0x2e8299(0x1ce),'STOPPED':'stopped','ERROR':'error','INSTALLED':'installed','UNINSTALLED':_0x2e8299(0x674)}),_0x27b8f3=Object[_0x2e8299(0x62b)](new Set([_0xa6d147[_0x2e8299(0x400)],_0xa6d147[_0x2e8299(0x5ee)],_0xa6d147[_0x2e8299(0x16d)],_0xa6d147[_0x2e8299(0x482)]]));function _0x40b3de(_0x34512c){const _0x1a66e1=_0x2e8299;return _0x34512c?.[_0x1a66e1(0x580)]===![]?_0xa6d147[_0x1a66e1(0x5ee)]:_0x1a66e1(0x1f1);}return okdbEnginesEnums={'TYPE_ENGINES':_0x31e6bf,'MAX_UPDATE_RETRIES':_0x2471ad,'ENGINE_STATUS':_0xa6d147,'ENGINE_EVENTS':_0x115f47,'UPDATABLE_STATUSES':_0x27b8f3,'durableOnlyEngineState':_0x40b3de},okdbEnginesEnums;}var enums,hasRequiredEnums;function requireEnums(){const _0x38b358=_0x2ec26e;if(hasRequiredEnums)return enums;hasRequiredEnums=0x1;const _0xa7421a=Object[_0x38b358(0x62b)]({'EMBEDDER':'embedder','INDEXER':_0x38b358(0x25c),'SEARCH':'vector-search','WORKER':_0x38b358(0x6ca)}),_0x4224e9=Object[_0x38b358(0x62b)]({'PENDING':_0x38b358(0x35d),'DONE':_0x38b358(0x3b5),'FAILED':_0x38b358(0x719),'DELETED':_0x38b358(0x1cc)}),_0x3c9d13=Object['freeze']({'INDEXER_READY':_0x38b358(0x7ca),'INDEXER_FLUSHED':_0x38b358(0x5e0),'INDEXER_DOC_DONE':_0x38b358(0x37f),'INDEXER_DOC_FAILED':_0x38b358(0x783),'INDEXER_DOC_QUEUED':_0x38b358(0x680),'STRATEGY_REGISTERED':_0x38b358(0x623),'DOC_STATUS_CHANGE':_0x38b358(0x4e2),'PIPELINE_READY':_0x38b358(0x6cb)}),_0x5f0c5d=Object[_0x38b358(0x62b)]({'MODELS':_0x38b358(0x677),'DOC_STATUS_PREFIX':'doc_status:','VEC_PREFIX':_0x38b358(0x612)});return enums={'ENGINE_TYPES':_0xa7421a,'INDEXER_DOC_STATUS':_0x4224e9,'EMBEDDINGS_EVENTS':_0x3c9d13,'INTERNAL_TYPES':_0x5f0c5d},enums;}var okdbQueueValidate,hasRequiredOkdbQueueValidate;function requireOkdbQueueValidate(){const _0xaaefe=_0x2ec26e;if(hasRequiredOkdbQueueValidate)return okdbQueueValidate;hasRequiredOkdbQueueValidate=0x1;const _0xbc8159=Object[_0xaaefe(0x62b)]({'PENDING':'pending','RUNNING':'running','DONE':_0xaaefe(0x3b5),'FAILED':_0xaaefe(0x719)}),_0x3fd6ea=Object['freeze']({'ACTIVE':_0xaaefe(0x372),'PAUSED':_0xaaefe(0x281),'DRAINING':'draining'}),_0x389bcd=Object[_0xaaefe(0x62b)]({'ENQUEUED':_0xaaefe(0x469),'DONE':_0xaaefe(0x661),'FAILED':_0xaaefe(0x5b7),'RETRY':_0xaaefe(0x859),'RESCHEDULED':_0xaaefe(0x6b7),'REMOVED':_0xaaefe(0x75a),'RECONCILED':_0xaaefe(0x753),'CLEAR_PROGRESS':_0xaaefe(0x6d0),'CLEAR_DONE':_0xaaefe(0x239),'LOG':_0xaaefe(0x346)}),_0x26f7ff=Object[_0xaaefe(0x62b)]([_0xaaefe(0x65d),'info','warn','error']),_0x17d9e9=0x1,_0x10d0a4=0xc350,_0x569193=0x400,_0x45e521=0x800;function _0x4ecb35(_0xcd50c4){const _0x1ab16a=_0xaaefe;return _0xcd50c4!=null&&typeof _0xcd50c4===_0x1ab16a(0x1be)&&(_0xcd50c4[_0x1ab16a(0x609)]===Object||Object[_0x1ab16a(0x21b)](_0xcd50c4)===null);}function _0x1a66c3(_0x54d441,_0x3cbfef,_0x5b63f5,_0x95c302){if(_0x54d441==null)return _0x3cbfef;const _0x370329=Number(_0x54d441);if(!Number['isFinite'](_0x370329))return _0x3cbfef;const _0x1790b5=Math['trunc'](_0x370329);if(_0x1790b5<_0x5b63f5)return _0x5b63f5;if(_0x1790b5>_0x95c302)return _0x95c302;return _0x1790b5;}function _0xdb187c(_0x594c94){const _0x6a39f0=_0xaaefe;if(!_0x594c94)return[];if(typeof _0x594c94===_0x6a39f0(0x4bb))_0x594c94=[_0x594c94];if(!Array[_0x6a39f0(0x69e)](_0x594c94))throw new Error(_0x6a39f0(0x2a4));const _0xff8393=[],_0x14bdc8=new Set();for(const _0x2f96dc of _0x594c94){if(_0x2f96dc==null)continue;const _0x3f1a70=String(_0x2f96dc)[_0x6a39f0(0x78c)]();if(!_0x3f1a70)continue;if(_0x3f1a70[_0x6a39f0(0x6cf)]>0x80)throw new Error('tag\x20too\x20long');if(_0x14bdc8[_0x6a39f0(0x51e)](_0x3f1a70))continue;_0x14bdc8[_0x6a39f0(0x7df)](_0x3f1a70),_0xff8393[_0x6a39f0(0x2fb)](_0x3f1a70);if(_0xff8393[_0x6a39f0(0x6cf)]>=0x20)break;}return _0xff8393;}function _0x1cd00f(_0x347e26){const _0x3e5c86=_0xaaefe;if(_0x347e26==null)return null;const _0x297616=String(_0x347e26)[_0x3e5c86(0x78c)]();if(!_0x297616)return null;if(_0x297616[_0x3e5c86(0x6cf)]>0x80)throw new Error(_0x3e5c86(0x6de));return _0x297616;}function _0x456c9e(_0xcde9f7,_0xf304e4=0x1){const _0xe2350d=_0xaaefe;if(_0xcde9f7==null)return[];if(typeof _0xcde9f7===_0xe2350d(0x4bb)){const _0x3acf54=_0x1cd00f(_0xcde9f7);if(!_0x3acf54)return[];return[{'id':_0x3acf54,'tokens':_0xf304e4}];}if(!Array['isArray'](_0xcde9f7))throw new Error('buckets\x20must\x20be\x20array\x20or\x20string');const _0x283b0a=[],_0xe46080=new Set();for(const _0x20fbda of _0xcde9f7){let _0x47d7c4,_0x2ba92e;if(Array[_0xe2350d(0x69e)](_0x20fbda))[_0x47d7c4,_0x2ba92e]=_0x20fbda;else{if(_0x20fbda&&typeof _0x20fbda===_0xe2350d(0x1be))({id:_0x47d7c4,tokens:_0x2ba92e}=_0x20fbda);else{if(typeof _0x20fbda===_0xe2350d(0x4bb))_0x47d7c4=_0x20fbda,_0x2ba92e=_0xf304e4;else continue;}}_0x47d7c4=_0x1cd00f(_0x47d7c4);if(!_0x47d7c4)continue;const _0x4ac0d5=_0x2ba92e==null?_0xf304e4:Math[_0xe2350d(0x47a)](Number(_0x2ba92e));if(!Number['isFinite'](_0x4ac0d5)||_0x4ac0d5<0x1)throw new Error(_0xe2350d(0x54f)+_0x47d7c4+_0xe2350d(0x897));if(_0x4ac0d5>0xf4240)throw new Error('bucket\x20\x22'+_0x47d7c4+_0xe2350d(0x4c8));if(_0xe46080['has'](_0x47d7c4))throw new Error(_0xe2350d(0x5f8)+_0x47d7c4);_0xe46080[_0xe2350d(0x7df)](_0x47d7c4),_0x283b0a[_0xe2350d(0x2fb)]({'id':_0x47d7c4,'tokens':_0x4ac0d5});}return _0x283b0a;}function _0xa3471d(_0x1fa1c4,_0x5b580c=0x400){const _0x5e92b6=_0xaaefe;if(_0x1fa1c4==null)return null;const _0x41ce8b=String(_0x1fa1c4)[_0x5e92b6(0x5ca)](0x0,_0x5b580c);return _0x41ce8b||null;}function _0x295463(_0x5e1875){const _0x28c649=_0xaaefe;if(_0x5e1875==null)return null;if(_0x5e1875['key']!==undefined&&_0x5e1875[_0x28c649(0x820)]!==undefined)return _0x5e1875;return{'key':_0x5e1875['id']??null,'value':_0x5e1875};}function _0x2ce976(_0x4a6c82){const _0x53e500=_0xaaefe;let _0x14212d=_0x4a6c82;if(typeof _0x4a6c82===_0x53e500(0x4bb))_0x14212d={'message':_0x4a6c82};if(!_0x4ecb35(_0x14212d))throw new Error(_0x53e500(0x6ae));const _0x3a6e6f=_0x14212d[_0x53e500(0x86c)]==null?'info':String(_0x14212d[_0x53e500(0x86c)])['toLowerCase']();if(!_0x26f7ff[_0x53e500(0x1ac)](_0x3a6e6f))throw new Error(_0x53e500(0x50d)+_0x3a6e6f);if(_0x14212d['message']==null)throw new Error(_0x53e500(0x7b8));const _0x10675b=String(_0x14212d['message'])['slice'](0x0,_0x569193);let _0x5e3f95=null;if(_0x14212d[_0x53e500(0x613)]!=null){if(!_0x4ecb35(_0x14212d[_0x53e500(0x613)]))throw new Error(_0x53e500(0x29f));if(JSON[_0x53e500(0x4d2)](_0x14212d[_0x53e500(0x613)])[_0x53e500(0x6cf)]>_0x45e521)throw new Error(_0x53e500(0x681));_0x5e3f95=_0x14212d[_0x53e500(0x613)];}return{'level':_0x3a6e6f,'message':_0x10675b,'fields':_0x5e3f95,'ts':Date[_0x53e500(0x89e)]()};}function _0x52cb8e(_0x5f1147){const _0x5757da=_0xaaefe;if(_0x5f1147==null)return;if(!Number[_0x5757da(0x40f)](_0x5f1147)||_0x5f1147<_0x17d9e9||_0x5f1147>_0x10d0a4)throw new Error(_0x5757da(0x6ed)+_0x17d9e9+',\x20'+_0x10d0a4+']');}function _0x927530(_0x382341){const _0x43e561=_0xaaefe;if(!_0x4ecb35(_0x382341))throw new Error(_0x43e561(0x440));if(typeof _0x382341['id']!==_0x43e561(0x4bb)||_0x382341['id'][_0x43e561(0x6cf)]<0x8)throw new Error('job.id\x20must\x20be\x20string');if(typeof _0x382341['type']!==_0x43e561(0x4bb)||!_0x382341[_0x43e561(0x673)])throw new Error(_0x43e561(0x4da));if(!Object[_0x43e561(0x89c)](_0xbc8159)[_0x43e561(0x1ac)](_0x382341[_0x43e561(0x1c9)]))throw new Error(_0x43e561(0x6e7)+_0x382341[_0x43e561(0x1c9)]);for(const _0x40f4f9 of[_0x43e561(0x80b),_0x43e561(0x244),_0x43e561(0x57e)]){if(typeof _0x382341[_0x40f4f9]!==_0x43e561(0x5c1)||!Number[_0x43e561(0x5ef)](_0x382341[_0x40f4f9]))throw new Error(_0x43e561(0x808)+_0x40f4f9+'\x20must\x20be\x20number');}if(_0x382341['finished']!=null&&(typeof _0x382341['finished']!==_0x43e561(0x5c1)||!Number[_0x43e561(0x5ef)](_0x382341[_0x43e561(0x2b6)])))throw new Error(_0x43e561(0x200));if(!Number['isInteger'](_0x382341['tries'])||_0x382341[_0x43e561(0x1cd)]<0x0)throw new Error(_0x43e561(0x24b));if(!Number[_0x43e561(0x40f)](_0x382341[_0x43e561(0x689)]))throw new Error(_0x43e561(0x197));if(_0x382341['max_tries']!==null&&_0x382341[_0x43e561(0x314)]!==Infinity&&(!Number[_0x43e561(0x40f)](_0x382341[_0x43e561(0x314)])||_0x382341[_0x43e561(0x314)]<0x1))throw new Error(_0x43e561(0x883));if(_0x382341[_0x43e561(0x83a)]!=null&&(!Number['isInteger'](_0x382341['retry_delay'])||_0x382341[_0x43e561(0x83a)]<0x0))throw new Error('job.retry_delay\x20must\x20be\x20int\x20>=\x200');if(_0x382341[_0x43e561(0x5d4)]!=null&&(typeof _0x382341[_0x43e561(0x5d4)]!=='number'||_0x382341[_0x43e561(0x5d4)]<0x1))throw new Error(_0x43e561(0x398));if(_0x382341[_0x43e561(0x80e)]!=null&&typeof _0x382341['claim_id']!==_0x43e561(0x4bb))throw new Error('job.claim_id\x20must\x20be\x20string|null');if(_0x382341[_0x43e561(0x4d9)]!=null&&(typeof _0x382341['claim_expires']!==_0x43e561(0x5c1)||!Number[_0x43e561(0x5ef)](_0x382341[_0x43e561(0x4d9)])))throw new Error(_0x43e561(0x737));if(_0x382341[_0x43e561(0x744)]!=null&&typeof _0x382341[_0x43e561(0x744)]!=='string')throw new Error('job.bucket\x20must\x20be\x20string|null');if(_0x382341[_0x43e561(0x6c9)]!=null&&(!Number[_0x43e561(0x40f)](_0x382341[_0x43e561(0x6c9)])||_0x382341[_0x43e561(0x6c9)]<0x1))throw new Error(_0x43e561(0x5a2));if(_0x382341[_0x43e561(0x25d)]!=null){if(!Array['isArray'](_0x382341['buckets']))throw new Error(_0x43e561(0x2f0));for(const _0x5271c5 of _0x382341[_0x43e561(0x25d)]){if(!_0x5271c5||typeof _0x5271c5!==_0x43e561(0x1be))throw new Error('job.buckets\x20entries\x20must\x20be\x20objects');if(typeof _0x5271c5['id']!=='string'||!_0x5271c5['id']['trim']())throw new Error('job.buckets[].id\x20must\x20be\x20non-empty\x20string');if(!Number['isInteger'](_0x5271c5[_0x43e561(0x64b)])||_0x5271c5[_0x43e561(0x64b)]<0x1)throw new Error(_0x43e561(0x31c));}}if(_0x382341[_0x43e561(0x6f9)]!=null&&typeof _0x382341['cron']!==_0x43e561(0x4bb))throw new Error(_0x43e561(0x1ae));if(_0x382341[_0x43e561(0x66e)]!=null&&typeof _0x382341[_0x43e561(0x66e)]!==_0x43e561(0x4bb))throw new Error('job.idempotency_key\x20must\x20be\x20string|null');if(!Array[_0x43e561(0x69e)](_0x382341[_0x43e561(0x42a)]))throw new Error(_0x43e561(0x631));if(_0x382341[_0x43e561(0x5da)]!=null&&typeof _0x382341['tag']!==_0x43e561(0x4bb))throw new Error(_0x43e561(0x3a7));if(_0x382341[_0x43e561(0x815)]!=null&&typeof _0x382341[_0x43e561(0x815)]!==_0x43e561(0x4bb))throw new Error(_0x43e561(0x25e));if(_0x382341[_0x43e561(0x4db)]!=null&&typeof _0x382341[_0x43e561(0x4db)]!==_0x43e561(0x4bb))throw new Error(_0x43e561(0x74f));if(_0x382341[_0x43e561(0x589)]!=null&&typeof _0x382341[_0x43e561(0x589)]!==_0x43e561(0x4bb))throw new Error(_0x43e561(0x2b1));for(const _0x41b677 of['done_ttl',_0x43e561(0x1db)]){const _0x56cdcb=_0x382341[_0x41b677];if(_0x56cdcb!=null&&(!Number['isInteger'](_0x56cdcb)||_0x56cdcb<0x0))throw new Error('job.'+_0x41b677+'\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer');}_0x52cb8e(_0x382341[_0x43e561(0x19b)]);}function _0x57908a(_0x36d8b0){const _0x5bccbb=_0xaaefe;if(!_0x4ecb35(_0x36d8b0))throw new Error(_0x5bccbb(0x3ca));if(typeof _0x36d8b0['id']!==_0x5bccbb(0x4bb)||!_0x36d8b0['id'][_0x5bccbb(0x78c)]())throw new Error(_0x5bccbb(0x563));if(!Object['values'](_0x3fd6ea)['includes'](_0x36d8b0['status']))throw new Error(_0x5bccbb(0x3bd)+_0x36d8b0[_0x5bccbb(0x1c9)]);if(_0x36d8b0[_0x5bccbb(0x23f)]!=null&&(!Number['isInteger'](_0x36d8b0['max_concurrency'])||_0x36d8b0['max_concurrency']<0x1))throw new Error(_0x5bccbb(0x33e));if(_0x36d8b0[_0x5bccbb(0x6fd)]!=null){if(!_0x4ecb35(_0x36d8b0[_0x5bccbb(0x6fd)]))throw new Error(_0x5bccbb(0x535));const _0x13c90e=_0x36d8b0[_0x5bccbb(0x6fd)];if(_0x13c90e[_0x5bccbb(0x314)]!=null&&(!Number['isInteger'](_0x13c90e['max_tries'])||_0x13c90e[_0x5bccbb(0x314)]<0x1))throw new Error(_0x5bccbb(0x315));if(_0x13c90e[_0x5bccbb(0x83a)]!=null&&(!Number['isInteger'](_0x13c90e[_0x5bccbb(0x83a)])||_0x13c90e['retry_delay']<0x0))throw new Error(_0x5bccbb(0x5c9));if(_0x13c90e['backoff_multiplier']!=null&&(typeof _0x13c90e[_0x5bccbb(0x5d4)]!=='number'||_0x13c90e[_0x5bccbb(0x5d4)]<0x1))throw new Error(_0x5bccbb(0x2e5));if(_0x13c90e[_0x5bccbb(0x689)]!=null&&!Number['isInteger'](_0x13c90e[_0x5bccbb(0x689)]))throw new Error(_0x5bccbb(0x5b5));if(_0x13c90e[_0x5bccbb(0x463)]!=null&&(!Number[_0x5bccbb(0x40f)](_0x13c90e[_0x5bccbb(0x463)])||_0x13c90e[_0x5bccbb(0x463)]<0x0))throw new Error(_0x5bccbb(0x2c3));for(const _0xc3f0c0 of[_0x5bccbb(0x44a),_0x5bccbb(0x1db)]){if(_0x13c90e[_0xc3f0c0]!=null&&(!Number['isInteger'](_0x13c90e[_0xc3f0c0])||_0x13c90e[_0xc3f0c0]<0x0))throw new Error(_0x5bccbb(0x2cf)+_0xc3f0c0+_0x5bccbb(0x458));}if(_0x13c90e[_0x5bccbb(0x25d)]!=null&&!Array[_0x5bccbb(0x69e)](_0x13c90e[_0x5bccbb(0x25d)]))throw new Error(_0x5bccbb(0x773));_0x52cb8e(_0x13c90e[_0x5bccbb(0x19b)]);}if(_0x36d8b0[_0x5bccbb(0x590)]!=null){if(!_0x4ecb35(_0x36d8b0[_0x5bccbb(0x590)]))throw new Error(_0x5bccbb(0x663));if(!_0x4ecb35(_0x36d8b0['payload_schema'][_0x5bccbb(0x814)]))throw new Error(_0x5bccbb(0x834));if(typeof _0x36d8b0[_0x5bccbb(0x590)][_0x5bccbb(0x3b2)]!==_0x5bccbb(0x84f))throw new Error(_0x5bccbb(0x285));}for(const _0x101ee6 of[_0x5bccbb(0x892),_0x5bccbb(0x465)]){if(typeof _0x36d8b0[_0x101ee6]!==_0x5bccbb(0x5c1)||!Number[_0x5bccbb(0x5ef)](_0x36d8b0[_0x101ee6]))throw new Error('job_type.'+_0x101ee6+_0x5bccbb(0x760));}}function _0xc281eb(_0x2f491c){const _0x133f81=_0xaaefe;if(!_0x4ecb35(_0x2f491c))throw new Error(_0x133f81(0x470));if(typeof _0x2f491c['id']!==_0x133f81(0x4bb)||!_0x2f491c['id'][_0x133f81(0x78c)]())throw new Error(_0x133f81(0x235));if(!Number[_0x133f81(0x40f)](_0x2f491c[_0x133f81(0x64b)])||_0x2f491c[_0x133f81(0x64b)]<0x0)throw new Error('bucket.tokens\x20must\x20be\x20int\x20>=\x200');if(!Number[_0x133f81(0x40f)](_0x2f491c['capacity'])||_0x2f491c[_0x133f81(0x658)]<0x0)throw new Error(_0x133f81(0x452));if(_0x2f491c[_0x133f81(0x64b)]>_0x2f491c[_0x133f81(0x658)])throw new Error(_0x133f81(0x2ce));if(!Number[_0x133f81(0x40f)](_0x2f491c[_0x133f81(0x6e4)])||_0x2f491c['refill_amount']<0x0)throw new Error(_0x133f81(0x7ac));if(!Number[_0x133f81(0x40f)](_0x2f491c['refill_every'])||_0x2f491c[_0x133f81(0x331)]<0x0)throw new Error(_0x133f81(0x390));if(typeof _0x2f491c[_0x133f81(0x57e)]!==_0x133f81(0x5c1)||!Number[_0x133f81(0x5ef)](_0x2f491c[_0x133f81(0x57e)]))throw new Error(_0x133f81(0x52c));}return okdbQueueValidate={'STATUS':_0xbc8159,'JOB_TYPE_STATUS':_0x3fd6ea,'QUEUE_EVENTS':_0x389bcd,'LOG_LEVELS':_0x26f7ff,'LOG_CAP_MIN':_0x17d9e9,'LOG_CAP_MAX':_0x10d0a4,'clampInt':_0x1a66c3,'asNullableString':_0xa3471d,'normalizeResult':_0x295463,'normalizeTags':_0xdb187c,'normalizeBucket':_0x1cd00f,'normalizeBuckets':_0x456c9e,'normalizeLogEntry':_0x2ce976,'validateJobShape':_0x927530,'validateJobTypeShape':_0x57908a,'validateBucketShape':_0xc281eb},okdbQueueValidate;}var okdbTimers,hasRequiredOkdbTimers;function requireOkdbTimers(){if(hasRequiredOkdbTimers)return okdbTimers;hasRequiredOkdbTimers=0x1;const _0x5a8ae3=0x2**0x1f-0x1;function _0x2991b2(_0x1b9cfc){if(!(_0x1b9cfc>0x0))return 0x0;return _0x1b9cfc>_0x5a8ae3?_0x5a8ae3:_0x1b9cfc;}function _0xa4907(_0x37f1cc){return _0x37f1cc===Infinity;}return okdbTimers={'MAX_TIMER_DELAY':_0x5a8ae3,'clampTimerDelay':_0x2991b2,'isNeverDelay':_0xa4907},okdbTimers;}var okdbChangefeed,hasRequiredOkdbChangefeed;function requireOkdbChangefeed(){const _0x4be527=_0x2ec26e;if(hasRequiredOkdbChangefeed)return okdbChangefeed;hasRequiredOkdbChangefeed=0x1;const _0x513ee3=require$$0$6,{clampTimerDelay:_0xa7e58c}=requireOkdbTimers(),{EVENTS:_0x4cb723,CHANGE_ACTIONS:_0x210c08}=requireOkdbEnums(),{LOOP:_0x24454c}=requireOkdbLoopMonitor(),_0x392f87=Number(process.env.OKDB_CHANGEFEED_QUANTUM)||0x3e8,_0x5ad3a6=0x5,_0x56dae1=0x2710;class _0x3f0312 extends _0x513ee3{constructor(_0x3c2558,_0x586ed1={}){const _0x67664c=_0x3ebb;super(),this[_0x67664c(0x21e)]=_0x3c2558,this['_quantum']=_0x586ed1[_0x67664c(0x74a)]??_0x392f87,this[_0x67664c(0x165)]=_0x586ed1[_0x67664c(0x4b4)]??_0x5ad3a6,this[_0x67664c(0x38d)]=_0x586ed1[_0x67664c(0x5fd)]??_0x56dae1,this['_started']=![],this[_0x67664c(0x373)]=new Map(),this[_0x67664c(0x769)]=new Map(),this[_0x67664c(0x2bd)]=new Map(),this[_0x67664c(0x3ba)]=null,this[_0x67664c(0x873)]=![],this[_0x67664c(0x4b7)]=new Set(),this[_0x67664c(0x376)]=new Set(),this[_0x67664c(0x7ff)]=_0x5e575e=>this[_0x67664c(0x6b1)](_0x5e575e),this['_onPending']=_0x28a142=>this[_0x67664c(0x51c)](_0x28a142),this[_0x67664c(0x60b)]=_0x11ea81=>this[_0x67664c(0x829)](_0x11ea81),this['_onStop']=()=>this['stop']();}[_0x4be527(0x898)](){const _0x432f0c=_0x4be527;if(this['_started'])return;this[_0x432f0c(0x3cb)]=!![];for(const [_0x379f8b,_0x195743]of this[_0x432f0c(0x21e)]['_envs']){if(_0x379f8b[_0x432f0c(0x6c8)]('~'))continue;try{_0x195743[_0x432f0c(0x29e)]();}catch{}}for(const [_0x196c28,_0x4acdda]of this['okdb']['_envs']){if(_0x196c28[_0x432f0c(0x6c8)]('~'))continue;try{this[_0x432f0c(0x769)][_0x432f0c(0x328)](_0x196c28,_0x4acdda[_0x432f0c(0x45e)]()||0x0);}catch{}}const {events:_0x4d1c9d}=this['okdb'];_0x4d1c9d['on'](_0x4cb723[_0x432f0c(0x266)],this[_0x432f0c(0x4b9)]),_0x4d1c9d['on'](_0x4cb723['ITEM_CREATE'],this['_onItem']),_0x4d1c9d['on'](_0x4cb723[_0x432f0c(0x3d4)],this[_0x432f0c(0x7ff)]),_0x4d1c9d['on'](_0x4cb723[_0x432f0c(0x255)],this[_0x432f0c(0x7ff)]),_0x4d1c9d['on'](_0x4cb723[_0x432f0c(0x46e)],this[_0x432f0c(0x60b)]),_0x4d1c9d['once'](_0x4cb723['SYSTEM_STOPPED'],this['_onStop']);}[_0x4be527(0x893)](){const _0x4339b4=_0x4be527;if(!this[_0x4339b4(0x3cb)])return;this[_0x4339b4(0x3cb)]=![];const {events:_0xa6b0a8}=this[_0x4339b4(0x21e)];_0xa6b0a8[_0x4339b4(0x304)](_0x4cb723[_0x4339b4(0x266)],this['_onPending']),_0xa6b0a8[_0x4339b4(0x304)](_0x4cb723[_0x4339b4(0x621)],this[_0x4339b4(0x7ff)]),_0xa6b0a8[_0x4339b4(0x304)](_0x4cb723['ITEM_UPDATE'],this[_0x4339b4(0x7ff)]),_0xa6b0a8['off'](_0x4cb723['ITEM_REMOVE'],this[_0x4339b4(0x7ff)]),_0xa6b0a8['off'](_0x4cb723[_0x4339b4(0x46e)],this[_0x4339b4(0x60b)]);try{_0xa6b0a8['off'](_0x4cb723['SYSTEM_STOPPED'],this[_0x4339b4(0x4c9)]);}catch{}this[_0x4339b4(0x3ba)]&&(clearTimeout(this[_0x4339b4(0x3ba)]),this[_0x4339b4(0x3ba)]=null),this[_0x4339b4(0x2bd)][_0x4339b4(0x871)](),this[_0x4339b4(0x373)][_0x4339b4(0x871)](),this[_0x4339b4(0x769)][_0x4339b4(0x871)](),this['_seen'][_0x4339b4(0x871)](),this[_0x4339b4(0x376)][_0x4339b4(0x871)]();}['_dedupeKey'](_0x48b8e1,_0x1884b0,_0x1969a6,_0x588614){return _0x48b8e1+'\x00'+_0x1884b0+'\x00'+_0x1969a6+'\x00'+_0x588614;}[_0x4be527(0x49c)](_0xca8d2d,_0x264ba2,_0xe51a6e,_0x154ba6){const _0x47e3ff=_0x4be527,_0x4b92c3=this[_0x47e3ff(0x7f5)](_0xca8d2d,_0x264ba2,_0xe51a6e,_0x154ba6);if(this[_0x47e3ff(0x4b7)][_0x47e3ff(0x51e)](_0x4b92c3))return![];this[_0x47e3ff(0x4b7)][_0x47e3ff(0x7df)](_0x4b92c3);if(this[_0x47e3ff(0x4b7)][_0x47e3ff(0x221)]>this[_0x47e3ff(0x38d)]){const _0x1082dc=this[_0x47e3ff(0x4b7)][_0x47e3ff(0x89c)]()[_0x47e3ff(0x788)]()[_0x47e3ff(0x820)];this[_0x47e3ff(0x4b7)][_0x47e3ff(0x82f)](_0x1082dc);}return!![];}[_0x4be527(0x51c)](_0x4f53dc){const _0x15f485=_0x4be527;if(!this[_0x15f485(0x3cb)]||!_0x4f53dc)return;const {env:_0x27995b,type:_0x109597,key:_0x2bcba5,clock:_0x23f6bc}=_0x4f53dc;if(_0x27995b==null||_0x109597==null||_0x2bcba5==null)return;if(typeof _0x27995b==='string'&&_0x27995b[_0x15f485(0x6c8)]('~'))return;if(typeof _0x109597===_0x15f485(0x4bb)&&_0x109597['startsWith']('~'))return;this[_0x15f485(0x376)][_0x15f485(0x7df)](this['_dedupeKey'](_0x27995b,_0x109597,_0x2bcba5,_0x23f6bc)),this[_0x15f485(0x376)][_0x15f485(0x221)]>this[_0x15f485(0x38d)]&&this['_pendingLocal'][_0x15f485(0x82f)](this['_pendingLocal'][_0x15f485(0x89c)]()[_0x15f485(0x788)]()[_0x15f485(0x820)]);}[_0x4be527(0x6b1)](_0x230387){const _0x258a56=_0x4be527;if(!this[_0x258a56(0x3cb)]||!_0x230387)return;const {env:_0x484468,type:_0xf6aab1,key:_0x30a58f,clock:_0x1a189e,origin:_0x32266f,action:_0x40cf58,newValue:_0x341bef,oldValue:_0x56e42c}=_0x230387;if(_0x484468==null||_0xf6aab1==null||_0x30a58f==null)return;if(typeof _0x484468===_0x258a56(0x4bb)&&_0x484468[_0x258a56(0x6c8)]('~'))return;if(typeof _0xf6aab1===_0x258a56(0x4bb)&&_0xf6aab1['startsWith']('~'))return;this[_0x258a56(0x376)]['delete'](this[_0x258a56(0x7f5)](_0x484468,_0xf6aab1,_0x30a58f,_0x1a189e));if(!this[_0x258a56(0x49c)](_0x484468,_0xf6aab1,_0x30a58f,_0x1a189e))return;const _0x2928a0=_0x40cf58===_0x210c08['REMOVE']?_0x258a56(0x42f):_0x258a56(0x27f);this[_0x258a56(0x6d6)](_0x258a56(0x688),{'env':_0x484468,'type':_0xf6aab1,'key':_0x30a58f,'op':_0x2928a0,'clock':_0x1a189e,'origin':_0x32266f,'value':_0x2928a0===_0x258a56(0x42f)?null:_0x341bef,'prevValue':_0x56e42c});}[_0x4be527(0x829)](_0xc0853){const _0x1c8ad7=_0x4be527;if(!this[_0x1c8ad7(0x3cb)])return;if(!_0xc0853||typeof _0xc0853[_0x1c8ad7(0x30b)]!==_0x1c8ad7(0x4bb)||typeof _0xc0853[_0x1c8ad7(0x673)]!==_0x1c8ad7(0x4bb))return;const {env:_0x2d97b8,type:_0x3ed7cc}=_0xc0853;if(_0x2d97b8[_0x1c8ad7(0x6c8)]('~')||_0x3ed7cc[_0x1c8ad7(0x6c8)]('~'))return;this[_0x1c8ad7(0x2bd)][_0x1c8ad7(0x328)](_0x2d97b8+'\x00'+_0x3ed7cc,{'env':_0x2d97b8,'type':_0x3ed7cc}),this['_scheduleFlush']();}[_0x4be527(0x6b8)](){const _0x1f6196=_0x4be527;if(this[_0x1f6196(0x3ba)])return;const _0x518f03=()=>{const _0xd6c637=_0x1f6196;this[_0xd6c637(0x3ba)]=null,this['_drain']()[_0xd6c637(0x189)](()=>{});};this[_0x1f6196(0x3ba)]=setTimeout(_0x518f03,_0xa7e58c(this[_0x1f6196(0x165)]));}async[_0x4be527(0x2da)](){const _0x42cada=_0x4be527;if(this[_0x42cada(0x873)]){this[_0x42cada(0x6b8)]();return;}this[_0x42cada(0x873)]=!![];try{const _0x4e9bd1=[...this['_pending'][_0x42cada(0x89c)]()];this[_0x42cada(0x2bd)][_0x42cada(0x871)]();let _0x28cfbb=![];for(const {env:_0x29dc46,type:_0x27d14b}of _0x4e9bd1){try{const _0x415b06=await this[_0x42cada(0x505)](_0x29dc46,_0x27d14b);if(_0x415b06)_0x28cfbb=!![];}catch{this[_0x42cada(0x2bd)]['set'](_0x29dc46+'\x00'+_0x27d14b,{'env':_0x29dc46,'type':_0x27d14b}),_0x28cfbb=!![];}}if(_0x28cfbb||this[_0x42cada(0x2bd)][_0x42cada(0x221)]>0x0)this['_scheduleFlush']();}finally{this[_0x42cada(0x873)]=![];}}async[_0x4be527(0x505)](_0x5d936b,_0x5d8821){const _0x2cb657=_0x4be527,_0x301cf7=await this[_0x2cb657(0x21e)][_0x2cb657(0x7e2)](_0x5d936b),_0x89c4e5=_0x5d936b+'\x00'+_0x5d8821;!this[_0x2cb657(0x373)][_0x2cb657(0x51e)](_0x89c4e5)&&(!this[_0x2cb657(0x769)]['has'](_0x5d936b)&&(_0x301cf7['_enableChangelog'](),this[_0x2cb657(0x769)][_0x2cb657(0x328)](_0x5d936b,_0x301cf7[_0x2cb657(0x45e)]()||0x0)),this[_0x2cb657(0x373)][_0x2cb657(0x328)](_0x89c4e5,this[_0x2cb657(0x769)]['get'](_0x5d936b)));const _0x28a986=this['_cursors'][_0x2cb657(0x63c)](_0x89c4e5),_0x3de879=_0x301cf7[_0x2cb657(0x45e)](_0x5d8821)||0x0;if(_0x3de879<=_0x28a986)return![];const _0x2487ea=_0x28a986+this[_0x2cb657(0x188)],_0x4890b5=Math[_0x2cb657(0x5a9)](_0x3de879,_0x2487ea),_0x5d3d50=_0x24454c[_0x2cb657(0x580)]?_0x24454c[_0x2cb657(0x89e)]():0x0,_0x39ff10=Array['from'](_0x301cf7[_0x2cb657(0x267)](_0x5d8821,_0x28a986+0x1,_0x4890b5));let _0x3b86ff=_0x28a986;for(const _0x4e13d2 of _0x39ff10){const {clock:_0x3ef87d,key:_0xc3aa71,action:_0x2add58,origin:_0xb12b25}=_0x4e13d2;if(_0x3ef87d>_0x3b86ff)_0x3b86ff=_0x3ef87d;if(_0xc3aa71==null)continue;if(this['_pendingLocal'][_0x2cb657(0x51e)](this['_dedupeKey'](_0x5d936b,_0x5d8821,_0xc3aa71,_0x3ef87d)))continue;if(!this[_0x2cb657(0x49c)](_0x5d936b,_0x5d8821,_0xc3aa71,_0x3ef87d))continue;let _0x3332be,_0x288080;if(_0x2add58===_0x210c08[_0x2cb657(0x6a2)])_0x3332be='remove',_0x288080=null;else{const _0x148d35=_0x301cf7[_0x2cb657(0x63c)](_0x5d8821,_0xc3aa71);_0x148d35==null?(_0x3332be=_0x2cb657(0x42f),_0x288080=null):(_0x3332be=_0x2cb657(0x27f),_0x288080=_0x148d35);}this[_0x2cb657(0x6d6)](_0x2cb657(0x688),{'env':_0x5d936b,'type':_0x5d8821,'key':_0xc3aa71,'op':_0x3332be,'clock':_0x3ef87d,'origin':_0xb12b25,'value':_0x288080});}if(_0x24454c[_0x2cb657(0x580)])_0x24454c['note']('feed:'+_0x5d936b+':'+_0x5d8821,_0x24454c[_0x2cb657(0x89e)]()-_0x5d3d50,'n='+_0x39ff10[_0x2cb657(0x6cf)]);return this['_cursors'][_0x2cb657(0x328)](_0x89c4e5,Math['max'](_0x3b86ff,_0x4890b5)),_0x301cf7[_0x2cb657(0x45e)](_0x5d8821)>_0x4890b5;}[_0x4be527(0x1c9)](){const _0x37c5ae=_0x4be527;return{'started':this[_0x37c5ae(0x3cb)],'quantum':this[_0x37c5ae(0x188)],'flushDebounce':this[_0x37c5ae(0x165)],'cursors':Object[_0x37c5ae(0x804)]([...this['_cursors'][_0x37c5ae(0x72a)]()]['map'](([_0x266bc3,_0x109219])=>[_0x266bc3[_0x37c5ae(0x861)]('\x00',':'),_0x109219])),'pending':this['_pending']['size'],'seen':this[_0x37c5ae(0x4b7)][_0x37c5ae(0x221)]};}}return _0x3f0312[_0x4be527(0x641)]=_0x392f87,okdbChangefeed={'OKDBChangefeed':_0x3f0312},okdbChangefeed;}var okdbRelay,hasRequiredOkdbRelay;function requireOkdbRelay(){const _0x588f19=_0x2ec26e;if(hasRequiredOkdbRelay)return okdbRelay;hasRequiredOkdbRelay=0x1;const {EVENTS:_0x3ab85c}=requireOkdbEnums(),_0x37252f=new Set([_0x3ab85c[_0x588f19(0x621)],_0x3ab85c['ITEM_UPDATE'],_0x3ab85c[_0x588f19(0x255)]]),{ENGINE_EVENTS:_0x500138}=requireOkdbEnginesEnums(),{EMBEDDINGS_EVENTS:_0x17d6fa}=requireEnums(),{QUEUE_EVENTS:_0x3c81d1}=requireOkdbQueueValidate(),_0xd40efb=Object['values'](_0x3ab85c),_0x301785=Object[_0x588f19(0x89c)](_0x500138)['map'](_0x287916=>_0x588f19(0x685)+_0x287916),_0x3242ca=Object[_0x588f19(0x89c)](_0x17d6fa),_0x5dfef3=Object['values'](_0x3c81d1),_0x3139db=[_0x588f19(0x63f),_0x588f19(0x428),'processor:error',_0x588f19(0x642),_0x588f19(0x5d3),_0x588f19(0x531)],_0x4354bb=[..._0xd40efb,..._0x301785,..._0x3242ca,..._0x5dfef3,..._0x3139db,_0x588f19(0x793)],_0x3e69b2=new Set(_0x4354bb),_0x39e7b6=new Set([_0x3ab85c[_0x588f19(0x621)],_0x3ab85c[_0x588f19(0x3d4)],_0x3ab85c['ITEM_REMOVE'],_0x3ab85c[_0x588f19(0x67e)],_0x3ab85c[_0x588f19(0x63e)],_0x3ab85c[_0x588f19(0x3b4)],_0x3ab85c[_0x588f19(0x706)],_0x3ab85c['INDEX_PROGRESS'],_0x17d6fa[_0x588f19(0x38c)],_0x17d6fa[_0x588f19(0x297)],_0x17d6fa[_0x588f19(0x78d)],_0x17d6fa[_0x588f19(0x76d)],_0x588f19(0x428)]),_0x1f6c05=_0x4354bb[_0x588f19(0x852)](_0x4943a2=>_0x4943a2===_0x588f19(0x793)||!_0x39e7b6[_0x588f19(0x51e)](_0x4943a2)),_0x25285a=0x14,_0x4e66af=0xc8;class _0x459529{constructor(_0x208fea,_0x23604c={}){const _0x518282=_0x588f19;this[_0x518282(0x21e)]=_0x208fea,this[_0x518282(0x87c)]=_0x23604c[_0x518282(0x356)]??_0x25285a,this['_ringSize']=_0x23604c[_0x518282(0x651)]??_0x4e66af,this[_0x518282(0x259)]=new Set(),this[_0x518282(0x429)]=[],this[_0x518282(0x59b)]=[],this[_0x518282(0x5b8)]=null,this[_0x518282(0x44d)]=![],this[_0x518282(0x59e)]=null,this[_0x518282(0x785)]=null;}[_0x588f19(0x3f0)](){const _0x1d3842=_0x588f19;if(this[_0x1d3842(0x44d)])return;this['_attached']=!![];const {okdb:_0x3c8aa1}=this;this[_0x1d3842(0x5b8)]=_0x3c8aa1[_0x1d3842(0x793)][_0x1d3842(0x3f0)](_0xcfc977=>this['_push'](_0x1d3842(0x793),_0xcfc977));for(const _0x2591b9 of _0x4354bb){if(_0x2591b9===_0x1d3842(0x793))continue;const _0xf1adda=_0x37252f[_0x1d3842(0x51e)](_0x2591b9),_0x11aee7=_0x52de7b=>{const _0x352b0e=_0x1d3842;if(_0xf1adda&&this[_0x352b0e(0x59e)])return;this[_0x352b0e(0x2ed)](_0x2591b9,_0x52de7b??{});};_0x3c8aa1[_0x1d3842(0x29a)]['on'](_0x2591b9,_0x11aee7),this[_0x1d3842(0x59b)][_0x1d3842(0x2fb)]({'event':_0x2591b9,'handler':_0x11aee7});}this[_0x1d3842(0x4c9)]=()=>this[_0x1d3842(0x1c5)](),_0x3c8aa1[_0x1d3842(0x29a)]['once'](_0x3ab85c[_0x1d3842(0x87e)],this[_0x1d3842(0x4c9)]);}[_0x588f19(0x1c5)](){const _0x31c83e=_0x588f19;if(!this[_0x31c83e(0x44d)])return;if(this['_onStop']){try{this[_0x31c83e(0x21e)]['events'][_0x31c83e(0x304)](_0x3ab85c[_0x31c83e(0x87e)],this[_0x31c83e(0x4c9)]);}catch{}this[_0x31c83e(0x4c9)]=null;}this[_0x31c83e(0x5b8)]?.(),this[_0x31c83e(0x5b8)]=null;for(const {event:_0x5f4e7c,handler:_0x2986cd}of this[_0x31c83e(0x59b)]){try{this[_0x31c83e(0x21e)][_0x31c83e(0x29a)]['off'](_0x5f4e7c,_0x2986cd);}catch{}}this['_listeners']=[];for(const _0x353759 of this['_connections']){try{_0x353759[_0x31c83e(0x5a1)]?.();}catch{}}this[_0x31c83e(0x259)][_0x31c83e(0x871)](),this['detachFeed'](),this[_0x31c83e(0x44d)]=![];}[_0x588f19(0x222)](_0x46709d){const _0x49a5d5=_0x588f19;if(!_0x46709d||this[_0x49a5d5(0x59e)]===_0x46709d)return;this[_0x49a5d5(0x86a)](),this[_0x49a5d5(0x59e)]=_0x46709d,this[_0x49a5d5(0x785)]=_0x144632=>{const _0x174710=_0x49a5d5;if(!_0x144632)return;const _0x5f1001=_0x144632['op']===_0x174710(0x42f)?_0x3ab85c['ITEM_REMOVE']:_0x3ab85c[_0x174710(0x3d4)];this[_0x174710(0x2ed)](_0x5f1001,_0x144632);},_0x46709d['on']('change',this['_onFeedChange']);}[_0x588f19(0x86a)](){const _0x3961ed=_0x588f19;if(this['_feed']&&this[_0x3961ed(0x785)])try{this[_0x3961ed(0x59e)][_0x3961ed(0x304)](_0x3961ed(0x688),this[_0x3961ed(0x785)]);}catch{}this[_0x3961ed(0x59e)]=null,this[_0x3961ed(0x785)]=null;}[_0x588f19(0x6d2)](_0x338af4,_0x22c562){const _0x14829c=_0x588f19;if(!_0x3e69b2[_0x14829c(0x51e)](_0x338af4))return;this[_0x14829c(0x2ed)](_0x338af4,_0x22c562??{});}[_0x588f19(0x7f3)](_0x2d9e8b,_0x264d21,_0x7b51d1){const _0x265f72=_0x588f19;if(this[_0x265f72(0x259)]['size']>=this['_maxConnections'])return _0x264d21(_0x265f72(0x402),{'message':_0x265f72(0x6f4),'code':_0x265f72(0x53c)}),()=>{};const _0x5311d0=this['_resolveFilter'](_0x2d9e8b),_0x7511c1={'send':_0x264d21,'filter':_0x5311d0,'close':_0x7b51d1??null};this['_connections'][_0x265f72(0x7df)](_0x7511c1);for(const {event:_0x1ba2ea,data:_0x539c51}of this[_0x265f72(0x429)]){if(_0x5311d0[_0x265f72(0x51e)](_0x1ba2ea))try{_0x264d21(_0x1ba2ea,_0x539c51);}catch{}}return()=>this[_0x265f72(0x259)][_0x265f72(0x82f)](_0x7511c1);}[_0x588f19(0x720)](){const _0x368622=_0x588f19;if(this['_feed'])return this[_0x368622(0x59e)];const {OKDBChangefeed:_0x51bcb2}=requireOkdbChangefeed(),_0x4a80a1=new _0x51bcb2(this[_0x368622(0x21e)]);_0x4a80a1['start'](),this[_0x368622(0x222)](_0x4a80a1);if(this[_0x368622(0x21e)]&&!this[_0x368622(0x21e)][_0x368622(0x2f7)])this[_0x368622(0x21e)][_0x368622(0x2f7)]=_0x4a80a1;return this[_0x368622(0x59e)];}get[_0x588f19(0x894)](){const _0x2c2fb7=_0x588f19;return this[_0x2c2fb7(0x259)][_0x2c2fb7(0x221)];}[_0x588f19(0x5e6)](){const _0x2f4aac=_0x588f19;return{'connections':this[_0x2f4aac(0x894)],'bufferSize':this[_0x2f4aac(0x429)]['length'],'attached':this['_attached'],'allEvents':_0x4354bb[_0x2f4aac(0x6cf)],'defaultEvents':_0x1f6c05[_0x2f4aac(0x6cf)]};}static get[_0x588f19(0x1b9)](){return _0x4354bb;}static get[_0x588f19(0x3cf)](){return _0x1f6c05;}static get['HIGH_FREQ_EVENTS'](){return[..._0x39e7b6];}[_0x588f19(0x30e)](_0xcda530){const _0x101bfe=_0x588f19;if(!_0xcda530||!_0xcda530[_0x101bfe(0x6cf)])return new Set(_0x1f6c05);const _0x15523f=_0xcda530[_0x101bfe(0x852)](_0x458e4b=>_0x3e69b2[_0x101bfe(0x51e)](_0x458e4b));return new Set(_0x15523f[_0x101bfe(0x6cf)]?_0x15523f:_0x1f6c05);}[_0x588f19(0x2ed)](_0x4bc1c5,_0x5ec3a7){const _0x419abf=_0x588f19,_0x26fe4a={..._0x5ec3a7,'_ts':_0x5ec3a7?.['_ts']??_0x5ec3a7?.['ts']??Date[_0x419abf(0x89e)]()};this['_buffer'][_0x419abf(0x2fb)]({'event':_0x4bc1c5,'data':_0x26fe4a});if(this[_0x419abf(0x429)][_0x419abf(0x6cf)]>this[_0x419abf(0x45d)])this[_0x419abf(0x429)][_0x419abf(0x7be)]();for(const _0xd0c6b8 of this['_connections']){if(_0xd0c6b8[_0x419abf(0x852)][_0x419abf(0x51e)](_0x4bc1c5))try{_0xd0c6b8['send'](_0x4bc1c5,_0x26fe4a);}catch{}}}}return okdbRelay=_0x459529,okdbRelay;}var hasRequiredLib;function requireLib(){const _0x566dfe=_0x2ec26e;if(hasRequiredLib)return lib['exports'];return hasRequiredLib=0x1,function(_0x590e4f){const _0x4b066e=_0x3ebb,_0x39c370=require$$0$6,{load:_0x5d34c8}=require$$1$1,_0x485c28=requireBridge(),_0x2683a8=requireWritebatch(),{Pumper:_0x4d6866}=requirePump(),{OKDBEnv:_0x2f4b08,HIGH_SENTINEL:_0x30e045}=requireEnv(),{reclass:_0x2354a9,NotImplementedNative:_0x564778,OKDBError:_0x2c63fb,optionsArg:_0x4b8cd1,invalidArgument:_0x5b2ba6}=requireErrors(),{notImplemented:_0x421ba5}=requireUnsupported(),{OKDBHttp:_0x2ba623}=requireHttp(),{OKDBFts:_0x2299f9}=requireFts(),{OKDBEmbeddings:_0x412149}=requireEmbeddings(),{OKDBAuth:_0x13e34f}=requireAuth(),{OKDBSync:_0x1a39e6}=requireSync(),{OKDBMigrate:_0x26ecee}=requireMigrate(),{OKDBFunctions:_0x3040ad}=requireFunctions(),{OKDBMcp:_0x3fda4d}=requireMcp(),{OKDBEngines:_0x5bda5e,OKDBPipelines:_0x580702}=requireEngines(),{makeMeta:_0x4301be,makeLicenses:_0x8682cd,makeLicenseChecker:_0x371cf1,makeProcesses:_0x185664}=requireSys();let _0x1fd7ea=null;function _0xa3379(_0x425d7d){const _0x24ab97=_0x3ebb;if(!_0x1fd7ea){const {Unpackr:_0x35d400}=require$$18;_0x1fd7ea=new _0x35d400({'useRecords':![],'mapsAsObjects':!![],'copyBuffers':!![]});}return _0x1fd7ea[_0x24ab97(0x5b1)](_0x425d7d);}let _0x4474cf=null;function _0xb90e29(_0x5ef426,_0x2a980f){const _0x3aa32d=_0x3ebb;if(!_0x4474cf){const {Unpackr:_0x2cab69}=require$$18;_0x4474cf=new _0x2cab69({'copyBuffers':!![]});}return _0x4474cf[_0x3aa32d(0x5b1)](_0x5ef426,_0x2a980f);}const {encodeKey:_0x646b7,KEY_BUF_SIZE:_0x5a5ac8,NO_FAST:_0x3dbf7f}=requireKeyenc(),_0x1a9e02=0x40*0x400,_0x58400d=0x4*0x400*0x400;function _0x41b4ab(_0x2e84d2,_0x5c1714){const _0x24ebf0=_0x3ebb,_0x20d7c=_0x2e84d2[0x2],_0xc48e42=_0x20d7c?(_0x2e84d2[_0x24ebf0(0x6cf)]-0x3)/Math['abs'](_0x20d7c):0x0,_0x27cab1=new Array(_0xc48e42);let _0x73a47c=0x3;if(_0x20d7c===0x2){for(let _0x53b50e=0x0;_0x53b50e<_0xc48e42;_0x53b50e++,_0x73a47c+=0x2)_0x27cab1[_0x53b50e]={'key':_0x2e84d2[_0x73a47c],'value':_0x2e84d2[_0x73a47c+0x1]};}else{if(_0x20d7c===0x3){for(let _0x5465c9=0x0;_0x5465c9<_0xc48e42;_0x5465c9++,_0x73a47c+=0x3)_0x27cab1[_0x5465c9]={'key':_0x2e84d2[_0x73a47c],'value':_0x2e84d2[_0x73a47c+0x1],'version':_0x2e84d2[_0x73a47c+0x2]};}else{if(_0x20d7c===-0x2){for(let _0xb64c70=0x0;_0xb64c70<_0xc48e42;_0xb64c70++,_0x73a47c+=0x2)_0x27cab1[_0xb64c70]={'clock':_0x2e84d2[_0x73a47c],..._0x2e84d2[_0x73a47c+0x1]};}else{if(_0x20d7c===0x4){for(let _0x1f248a=0x0;_0x1f248a<_0xc48e42;_0x1f248a++,_0x73a47c+=0x4)_0x27cab1[_0x1f248a]={'key':_0x2e84d2[_0x73a47c],'value':_0x2e84d2[_0x73a47c+0x1],'version':_0x2e84d2[_0x73a47c+0x2],'indexKey':_0x2e84d2[_0x73a47c+0x3]};}else{if(_0xc48e42)throw new Error('callRows:\x20unexpected\x20row\x20stride\x20'+_0x20d7c);}}}}return _0x5c1714?[_0x2e84d2[0x0],_0x27cab1,_0x2e84d2[0x1]]:_0x27cab1;}let _0xd7861b=null;function _0x1f4931(_0x4ef25c,_0x354ca4,_0x52e310){const _0x398efc=_0x3ebb;if(!_0xd7861b)_0xd7861b=requireDist()[_0x398efc(0x5ad)];const _0x17a2d3=new DataView(_0x4ef25c[_0x398efc(0x6b6)],_0x4ef25c[_0x398efc(0x67f)],_0x354ca4),_0x5ce178=_0x17a2d3[_0x398efc(0x4f4)](0x10,!![]),_0x485247=new Array(_0x5ce178);let _0x728ad=0x14;for(let _0x3e1a7d=0x0;_0x3e1a7d<_0x5ce178;_0x3e1a7d++){const _0x111913=_0x4ef25c[_0x728ad]|_0x4ef25c[_0x728ad+0x1]<<0x8;_0x728ad+=0x2,_0x485247[_0x3e1a7d]=_0xd7861b(_0x4ef25c,_0x728ad,_0x728ad+_0x111913),_0x728ad+=_0x111913;}return _0x52e310?[_0x17a2d3[_0x398efc(0x8a1)](0x0,!![]),_0x485247,_0x17a2d3['getFloat64'](0x8,!![])]:_0x485247;}const _0x413630=requireOkdbLogger(),_0x367631=requireOkdbPlugins(),{OKDB_STATE:_0x58409e,EVENTS:_0x2ec25f}=requireOkdbEnums(),_0x30c87e=requireStatics();let _0x491599=null,_0x2a733d=![],_0x5b8164=0x1;const _0x4eb66f=new Map(),_0x5f4030=new Set(['FIELD_RESOLVER_PENDING',_0x4b066e(0x71c)]),_0x46ab9b=_0x110066=>!!_0x110066&&_0x5f4030['has'](_0x110066[_0x4b066e(0x748)]),_0x2df47d=Number(process.env.OKDB_PENDING_RETRY_MS)>0x0?Number(process.env.OKDB_PENDING_RETRY_MS):0x1d4c0;function _0x46d76c(){!_0x2a733d&&(_0x24f469()['setBridge'](_0x485c28['bridge']),_0x2683a8['install'](_0x24f469()),_0x2a733d=!![]);}function _0x24f469(){if(!_0x491599)_0x491599=_0x5d34c8();return _0x491599;}class _0x353085 extends Map{constructor(_0x3f3518){const _0x3aa6f7=_0x4b066e;super(),this[_0x3aa6f7(0x1bb)]=_0x3f3518;}[_0x4b066e(0x845)](){const _0x3840b3=_0x4b066e,_0x16a7b8=this[_0x3840b3(0x1bb)];if(!_0x16a7b8[_0x3840b3(0x60a)])return;let _0x3f1741;try{_0x3f1741=_0x16a7b8[_0x3840b3(0x49e)]('db',null,_0x3840b3(0x567),[],![]);}catch{return;}for(const _0x25da93 of _0x3f1741)if(!super[_0x3840b3(0x51e)](_0x25da93)&&_0x16a7b8[_0x3840b3(0x49e)]('db',null,_0x3840b3(0x236),[_0x25da93],![]))_0x16a7b8[_0x3840b3(0x248)](_0x25da93);}['get'](_0x490468){const _0x1d50e8=_0x4b066e,_0x16a5f8=super['get'](_0x490468);if(_0x16a5f8!==undefined||typeof _0x490468!==_0x1d50e8(0x4bb))return _0x16a5f8;const _0x16e45d=this[_0x1d50e8(0x1bb)];if(_0x490468===_0x1d50e8(0x7a3))return _0x16e45d['_isOpen']?_0x16e45d[_0x1d50e8(0x196)][_0x1d50e8(0x816)]??undefined:undefined;if(_0x16e45d[_0x1d50e8(0x60a)]&&_0x16e45d['_call']('db',null,_0x1d50e8(0x236),[_0x490468],![]))return _0x16e45d[_0x1d50e8(0x248)](_0x490468);if(_0x16e45d['_isOpen']&&typeof _0x490468==='string'&&!_0x490468[_0x1d50e8(0x6c8)]('~')){_0x16e45d[_0x1d50e8(0x49e)]('db',null,_0x1d50e8(0x1ff),[],![]);if(_0x16e45d['_call']('db',null,_0x1d50e8(0x236),[_0x490468],![]))return _0x16e45d[_0x1d50e8(0x248)](_0x490468);}return undefined;}[_0x4b066e(0x51e)](_0x5cd532){return this['get'](_0x5cd532)!==undefined;}get[_0x4b066e(0x221)](){const _0x53537c=_0x4b066e;return this[_0x53537c(0x845)](),super['size'];}[_0x4b066e(0x1d5)](){return this['_sync'](),super['keys']();}[_0x4b066e(0x89c)](){const _0x1f9329=_0x4b066e;return this['_sync'](),super[_0x1f9329(0x89c)]();}[_0x4b066e(0x72a)](){return this['_sync'](),super['entries']();}[_0x4b066e(0x169)](_0xd1a1b4,_0x3f32dc){const _0x2dc375=_0x4b066e;return this[_0x2dc375(0x845)](),super['forEach'](_0xd1a1b4,_0x3f32dc);}[Symbol['iterator']](){const _0x57dac5=_0x4b066e;return this[_0x57dac5(0x845)](),super[Symbol[_0x57dac5(0x56e)]]();}}class _0x40c6a4{constructor(_0x105270,_0x441552={}){const _0x3958ae=_0x4b066e,_0x468531=_0x24f469();this[_0x3958ae(0x39d)]=_0x105270,this[_0x3958ae(0x4b8)]=_0x5b8164++,this[_0x3958ae(0x20f)]='db'+this[_0x3958ae(0x4b8)],this[_0x3958ae(0x66a)]={..._0x30c87e['defaults'],..._0x441552,'auth':_0x441552[_0x3958ae(0x1e2)]?{..._0x441552[_0x3958ae(0x1e2)]}:undefined,'lmdb':{..._0x441552[_0x3958ae(0x66d)]||{}}},this[_0x3958ae(0x29a)]=new _0x39c370(),this['events'][_0x3958ae(0x502)](0x0),this[_0x3958ae(0x313)]=new Set(),this['events']['on'](_0x3958ae(0x32b),_0x9d3d85=>this['_subscribeEvent'](_0x9d3d85)),this[_0x3958ae(0x793)]=new _0x413630(this),this[_0x3958ae(0x793)][_0x3958ae(0x435)](),_0x485c28[_0x3958ae(0x619)](this['_key'],{'_deliver':(_0x30a6c9,_0x5ca8c4)=>this['_deliverEvent'](_0x30a6c9,_0x5ca8c4),'_log':_0x2e974a=>{const _0x4ac119=_0x3958ae;if(this[_0x4ac119(0x560)])this[_0x4ac119(0x560)][_0x4ac119(0x2fb)](_0x2e974a);const _0x3a4e75=_0x2e974a&&_0x2e974a[_0x4ac119(0x86c)];if(_0x3a4e75&&Object[_0x4ac119(0x455)]['hasOwnProperty'][_0x4ac119(0x853)](this[_0x4ac119(0x793)],_0x3a4e75)&&typeof this[_0x4ac119(0x793)][_0x3a4e75]===_0x4ac119(0x6d8)){const _0x5f3fcc=_0x2e974a[_0x4ac119(0x162)];return this[_0x4ac119(0x793)][_0x3a4e75](_0x2e974a[_0x4ac119(0x410)],{..._0x2e974a[_0x4ac119(0x47b)]||{},..._0x5f3fcc&&typeof _0x5f3fcc==='object'?_0x5f3fcc:{}});}return this[_0x4ac119(0x793)]['ingest'](_0x2e974a);}}),_0x46d76c();try{const _0x8626a9={};if(typeof _0x3958ae(0x3ee)===_0x3958ae(0x809)||_0x3958ae(0x3ee)!==_0x3958ae(0x3ee));const _0x42b781={..._0x441552,'_clusterWorker':require('node:cluster')[_0x3958ae(0x1fd)],..._0x8626a9};this[_0x3958ae(0x52f)]={'instance':null,'envs':new Map()};typeof _0x441552[_0x3958ae(0x4e9)]===_0x3958ae(0x6d8)&&(this[_0x3958ae(0x52f)]['instance']=_0x441552[_0x3958ae(0x4e9)],delete _0x42b781[_0x3958ae(0x4e9)]);if(_0x441552['encryptionKeys']&&typeof _0x441552[_0x3958ae(0x224)]===_0x3958ae(0x1be)){for(const [_0x3a7a11,_0xcb05a2]of Object[_0x3958ae(0x72a)](_0x441552[_0x3958ae(0x224)]))this[_0x3958ae(0x52f)][_0x3958ae(0x5b9)][_0x3958ae(0x328)](_0x3a7a11,_0xcb05a2);}delete _0x42b781['encryptionKeys'],this[_0x3958ae(0x6bd)]=new _0x468531['Native'](_0x105270,_0x42b781,this[_0x3958ae(0x20f)]);}catch(_0x4f1062){_0x485c28[_0x3958ae(0x85f)](this[_0x3958ae(0x20f)]);throw _0x2354a9(_0x4f1062);}this['state']=_0x58409e['CREATED'],this[_0x3958ae(0x60a)]=![],this[_0x3958ae(0x8a5)]=new _0x353085(this),this['_pumper']=new _0x4d6866({'pump':()=>this[_0x3958ae(0x6bd)]['pump']()}),this[_0x3958ae(0x53b)]=new _0x2683a8[(_0x3958ae(0x6c0))](this),this[_0x3958ae(0x5bc)][_0x3958ae(0x3f4)]=()=>_0x485c28[_0x3958ae(0x6da)](),_0x485c28[_0x3958ae(0x404)](()=>this[_0x3958ae(0x5bc)][_0x3958ae(0x536)](),this),_0x4eb66f[_0x3958ae(0x328)](this[_0x3958ae(0x4b8)],this),this[_0x3958ae(0x1a9)]={},_0x485c28[_0x3958ae(0x755)](this),this[_0x3958ae(0x492)]=new _0x2299f9(this),this[_0x3958ae(0x422)]=new _0x412149(this),this[_0x3958ae(0x1a5)]=new _0x5bda5e(this,null,null),this['pipelines']=new _0x580702(this,null),this[_0x3958ae(0x47b)]=_0x4301be(this),this[_0x3958ae(0x60e)]=_0x8682cd(this),this[_0x3958ae(0x89d)]=_0x371cf1(this),this['processes']=_0x185664(this),this[_0x3958ae(0x409)]=_0x104dd6(this),this['plugins']=new _0x367631(this),this[_0x3958ae(0x449)]=new _0x2ba623(this),this[_0x3958ae(0x5f3)]=new _0x1a39e6(this),this[_0x3958ae(0x1e2)]=new _0x13e34f(this),this[_0x3958ae(0x762)]=new _0x3040ad(this,null),this[_0x3958ae(0x403)]=new _0x3fda4d(this),this[_0x3958ae(0x593)]=_0x441552&&_0x441552[_0x3958ae(0x593)]===![]?null:_0x421ba5(_0x3958ae(0x593)),this[_0x3958ae(0x370)]=_0x421ba5(_0x3958ae(0x370)),this['migrate']=new _0x26ecee(this);}[_0x4b066e(0x49e)](_0x4e9cde,_0x26fe59,_0x3eef7b,_0x4820e6,_0x1f7f9d=!![]){const _0x5f3b7e=_0x4b066e;if(_0x1f7f9d&&this['_wb']&&this[_0x5f3b7e(0x53b)][_0x5f3b7e(0x601)]['length'])this['_wb'][_0x5f3b7e(0x2cd)]();try{return this['_native'][_0x5f3b7e(0x853)](_0x4e9cde,_0x26fe59,_0x3eef7b,_0x4820e6);}catch(_0x35a918){throw _0x2354a9(_0x35a918);}finally{if(_0x1f7f9d)this[_0x5f3b7e(0x5bc)][_0x5f3b7e(0x536)]();}}[_0x4b066e(0x270)](_0x253053,_0x19dd7a,_0x467b74,_0x406910){const _0x59aa95=_0x4b066e;let _0x56b2fe;try{_0x56b2fe=this[_0x59aa95(0x6bd)]['callPacked'](_0x253053,_0x19dd7a,_0x467b74,_0x406910);}catch(_0x1fae7a){throw _0x2354a9(_0x1fae7a);}return _0x56b2fe instanceof Uint8Array?_0xa3379(_0x56b2fe):_0x56b2fe[0x0];}['_readBuf'](_0x14bf77){const _0x1615b0=_0x4b066e;let _0x4732de=this[_0x1615b0(0x80f)];if(_0x4732de&&_0x14bf77<=_0x4732de[_0x1615b0(0x6cf)])return _0x4732de;let _0x435beb=_0x4732de?_0x4732de['length']:_0x1a9e02;while(_0x435beb<_0x14bf77)_0x435beb*=0x2;if(_0x435beb>_0x58400d)return _0x4732de;return _0x4732de=this['_rbuf']=Buffer[_0x1615b0(0x73c)](_0x435beb),this[_0x1615b0(0x6bd)][_0x1615b0(0x7f6)](_0x4732de),_0x4732de;}[_0x4b066e(0x48d)](_0x429731,_0x5139ee,_0x2a6579){const _0x3021f6=_0x4b066e;if(!this[_0x3021f6(0x80f)])this[_0x3021f6(0x66f)](0x0);const _0x535f57=this['_native'][_0x3021f6(0x83e)](_0x429731,_0x5139ee,_0x2a6579);if(typeof _0x535f57===_0x3021f6(0x5c1))return _0xb90e29(this[_0x3021f6(0x80f)],_0x535f57);if(_0x535f57===undefined||_0x535f57===null)return _0x535f57;return this[_0x3021f6(0x66f)](_0x535f57['length']),_0xb90e29(_0x535f57);}[_0x4b066e(0x721)](_0x4e1f83,_0x18341a,_0x24650e){const _0x3ff242=_0x4b066e;let _0x54f595=this['_kbuf'];if(!_0x54f595){_0x54f595=this[_0x3ff242(0x350)]=Buffer[_0x3ff242(0x73c)](_0x5a5ac8),this['_native']['setKeyBuffer'](_0x54f595),this[_0x3ff242(0x4c1)]=new Map();if(!this[_0x3ff242(0x80f)])this[_0x3ff242(0x66f)](0x0);}const _0x303185=_0x646b7(_0x24650e,_0x54f595);if(_0x303185<0x0)return _0x3dbf7f;let _0x27e701=this[_0x3ff242(0x4c1)][_0x3ff242(0x63c)](_0x4e1f83);if(_0x27e701===undefined)this['_tids']['set'](_0x4e1f83,_0x27e701=new Map());let _0x5a5d18=_0x27e701[_0x3ff242(0x63c)](_0x18341a);if(_0x5a5d18===undefined)_0x27e701[_0x3ff242(0x328)](_0x18341a,_0x5a5d18=this['_native'][_0x3ff242(0x494)](_0x4e1f83,_0x18341a));if(_0x5a5d18<0x0)return _0x3dbf7f;const _0x592d18=this['_native'][_0x3ff242(0x4ea)](_0x5a5d18,_0x303185);if(typeof _0x592d18==='number')return _0xb90e29(this['_rbuf'],_0x592d18);if(_0x592d18===undefined||_0x592d18===null)return _0x592d18;return this['_readBuf'](_0x592d18[_0x3ff242(0x6cf)]),_0xb90e29(_0x592d18);}[_0x4b066e(0x39e)](_0x10057a,_0x174ead,_0x174536){const _0x39a2b7=_0x4b066e;if(!this['_rbuf'])this['_readBuf'](0x0);let _0x40ce16;try{_0x40ce16=this[_0x39a2b7(0x6bd)][_0x39a2b7(0x23e)](_0x10057a,_0x174ead,_0x174536);}catch(_0x141bad){throw _0x2354a9(_0x141bad);}const _0x56cd52=_0x174ead===_0x39a2b7(0x2dd),_0x298ea7=_0x56cd52?_0x174536[0x1]:_0x174ead;let _0x5c98be=this[_0x39a2b7(0x80f)],_0xeca787=_0x40ce16;if(_0x40ce16 instanceof Uint8Array)this[_0x39a2b7(0x66f)](_0x40ce16[_0x39a2b7(0x6cf)]),_0x5c98be=_0x40ce16,_0xeca787=_0x40ce16[_0x39a2b7(0x6cf)];else{if(typeof _0x40ce16!==_0x39a2b7(0x5c1))return _0x40ce16[0x0];}if(_0x298ea7===_0x39a2b7(0x7d2))return _0x1f4931(_0x5c98be,_0xeca787,_0x56cd52);if(_0x298ea7===_0x39a2b7(0x791))return _0xb90e29(_0x5c98be,_0xeca787);return _0x41b4ab(_0xb90e29(_0x5c98be,_0xeca787),_0x56cd52);}[_0x4b066e(0x406)](_0x52a249,_0x526143,_0x5b8f22,_0x2fab65,_0x3505d7=!![],_0x23beae=!![]){const _0x5bf42c=_0x4b066e,_0x66a0c4=()=>this[_0x5bf42c(0x199)](()=>this['_call'](_0x52a249,_0x526143,_0x5b8f22,_0x2fab65,_0x3505d7));if(!_0x23beae)return _0x66a0c4();return this[_0x5bf42c(0x56c)](_0x66a0c4);}[_0x4b066e(0x56c)](_0x227528){const _0x496077=_0x4b066e;return _0x227528()[_0x496077(0x189)](async _0x4888d5=>{const _0x171cb4=_0x496077;if(!_0x46ab9b(_0x4888d5))throw _0x4888d5;const _0x33852d=Date[_0x171cb4(0x89e)]()+_0x2df47d;let _0x321086=0x1;while(_0x46ab9b(_0x4888d5)&&Date[_0x171cb4(0x89e)]()<_0x33852d){await new Promise(_0x58d4bd=>setTimeout(_0x58d4bd,_0x321086)),_0x321086=Math['min'](_0x321086*0x2,0x14);try{return await _0x227528();}catch(_0x4e2f66){_0x4888d5=_0x4e2f66;}}throw _0x4888d5;});}[_0x4b066e(0x29c)](_0x505c5b){const _0x11ebd5=_0x4b066e;if(_0x485c28[_0x11ebd5(0x37c)]())return Promise[_0x11ebd5(0x7a9)](_0x505c5b);return new Promise(_0x252fb0=>setImmediate(()=>_0x252fb0(_0x505c5b)));}[_0x4b066e(0x55c)](_0x4a384a){const _0x373a30=_0x4b066e;if(_0x485c28[_0x373a30(0x37c)]())return Promise['resolve'](_0x4a384a);return this[_0x373a30(0x3bc)]()[_0x373a30(0x2b0)](()=>_0x4a384a);}[_0x4b066e(0x3bc)](){return new Promise(_0x2c1334=>setImmediate(()=>{const _0x1e4647=_0x3ebb;let _0x2b6724;try{_0x2b6724=this[_0x1e4647(0x6bd)][_0x1e4647(0x5fe)]();}catch{return _0x2c1334();}_0x2683a8[_0x1e4647(0x49a)](_0x2b6724,_0x2c1334);}));}['_macro'](_0x463669){return new Promise((_0x139bad,_0x5d3589)=>setImmediate(()=>{try{_0x139bad(_0x463669());}catch(_0x52dd8){_0x5d3589(_0x52dd8);}}));}['_staticCall'](_0x5acc30,_0x205871,_0x120f1d){return _0x12e39f(_0x5acc30,_0x205871,_0x120f1d);}[_0x4b066e(0x51d)](_0x2b3e93){const _0x13d2e5=_0x4b066e;if(typeof _0x2b3e93!==_0x13d2e5(0x4bb)||this[_0x13d2e5(0x313)][_0x13d2e5(0x51e)](_0x2b3e93)||_0x2b3e93===_0x13d2e5(0x32b)||_0x2b3e93===_0x13d2e5(0x3e5))return;this[_0x13d2e5(0x313)][_0x13d2e5(0x7df)](_0x2b3e93);try{this['_native'][_0x13d2e5(0x853)](_0x13d2e5(0x29a),null,_0x13d2e5(0x7f3),[this[_0x13d2e5(0x20f)],_0x2b3e93]);}catch{}}['_deliverEvent'](_0x58aa88,_0x3d191d){const _0x1bde11=_0x4b066e;this[_0x1bde11(0x29a)][_0x1bde11(0x6d6)](_0x58aa88,_0x3d191d);}async[_0x4b066e(0x709)](){const _0x380235=_0x4b066e,_0x28530a=this[_0x380235(0x52f)];if(_0x28530a[_0x380235(0x2a3)])this[_0x380235(0x4f2)](null,await _0x28530a[_0x380235(0x2a3)](null),!![]);for(const [_0x2009e9,_0x129a90]of _0x28530a['envs'])this['_setKey'](_0x2009e9,typeof _0x129a90===_0x380235(0x6d8)?await _0x129a90(_0x2009e9):_0x129a90,typeof _0x129a90===_0x380235(0x6d8));(_0x28530a['instance']||[..._0x28530a[_0x380235(0x5b9)][_0x380235(0x89c)]()][_0x380235(0x786)](_0x546376=>typeof _0x546376===_0x380235(0x6d8)))&&!this[_0x380235(0x526)]&&(this[_0x380235(0x526)]=_0x44ad81=>{const _0x5f30a4=_0x380235,_0x5b46f0=_0x44ad81&&_0x44ad81['env']!=null?_0x44ad81[_0x5f30a4(0x30b)]:null,_0x5cb5e2=_0x5b46f0==null?_0x28530a['instance']:_0x28530a['envs'][_0x5f30a4(0x63c)](_0x5b46f0);if(typeof _0x5cb5e2!==_0x5f30a4(0x6d8))return;Promise[_0x5f30a4(0x7a9)]()[_0x5f30a4(0x2b0)](()=>_0x5cb5e2(_0x5b46f0))[_0x5f30a4(0x2b0)](_0x418fdf=>this[_0x5f30a4(0x4f2)](_0x5b46f0,_0x418fdf,!![]))[_0x5f30a4(0x189)](_0x4d2183=>this[_0x5f30a4(0x793)][_0x5f30a4(0x254)]('encryption\x20key\x20function\x20failed:\x20'+(_0x4d2183&&_0x4d2183[_0x5f30a4(0x2d2)]),{'env':_0x5b46f0}));},this[_0x380235(0x29a)]['on'](_0x380235(0x780),this[_0x380235(0x526)]));}[_0x4b066e(0x4f2)](_0x3c763d,_0x2e568c,_0x4a5064){const _0x29a18a=_0x4b066e;if(_0x2e568c==null)throw new _0x2c63fb(_0x29a18a(0x77f)+(_0x3c763d?_0x29a18a(0x64e)+_0x3c763d+'\x22':'')+_0x29a18a(0x831),_0x29a18a(0x571));this['_native']['call']('db',null,_0x29a18a(0x186),[_0x3c763d,_0x2e568c,!!_0x4a5064]);}async['changeEncryptionKey'](_0x58f007){const _0x16fabf=_0x4b066e;this[_0x16fabf(0x29b)]();const {env:env=null,to:_0xe51490}=_0x4b8cd1(_0x58f007),_0x3085c5=typeof _0xe51490===_0x16fabf(0x6d8),_0x2bcd57=_0x3085c5?await _0xe51490(env):_0xe51490;if(_0x2bcd57==null)throw _0x5b2ba6(_0x16fabf(0x885),'a\x2032-character\x20key\x20or\x20a\x20function\x20returning\x20one',_0x2bcd57);const _0x23d28c=this['_call']('db',null,_0x16fabf(0x2e0),[env,_0x2bcd57,_0x3085c5]);if(_0x3085c5){if(env==null)this[_0x16fabf(0x52f)][_0x16fabf(0x2a3)]=_0xe51490;else this[_0x16fabf(0x52f)][_0x16fabf(0x5b9)][_0x16fabf(0x328)](env,_0xe51490);}return _0x23d28c;}async['reencrypt'](_0x1ee8e7){const _0x3bb72e=_0x4b066e;this[_0x3bb72e(0x29b)]();const _0x585c29=_0x4b8cd1(_0x1ee8e7);if(!_0x585c29[_0x3bb72e(0x30b)])throw _0x5b2ba6(_0x3bb72e(0x796),_0x3bb72e(0x3b0),_0x585c29[_0x3bb72e(0x30b)]);let _0x2adf1f=_0x585c29['to'];const _0x514821=typeof _0x2adf1f===_0x3bb72e(0x6d8);if(_0x514821)_0x2adf1f=await _0x585c29['to'](_0x585c29[_0x3bb72e(0x30b)]);const _0x3c2ff7=await this[_0x3bb72e(0x199)](()=>this[_0x3bb72e(0x49e)]('db',null,_0x3bb72e(0x468),[_0x585c29['env'],'to'in _0x585c29?_0x2adf1f:undefined,_0x514821]));if(_0x514821)this[_0x3bb72e(0x52f)][_0x3bb72e(0x5b9)][_0x3bb72e(0x328)](_0x585c29[_0x3bb72e(0x30b)],_0x585c29['to']);return _0x3c2ff7;}async['open'](){const _0x6fb70a=_0x4b066e;if(this['state']===_0x58409e[_0x6fb70a(0x69c)])return;if(this[_0x6fb70a(0x41c)]!==_0x58409e[_0x6fb70a(0x59f)])throw new _0x2c63fb(_0x6fb70a(0x865),_0x6fb70a(0x645),{'state':this[_0x6fb70a(0x41c)]});this[_0x6fb70a(0x41c)]=_0x58409e[_0x6fb70a(0x1e5)],this['_bootLog']=[];try{try{await this[_0x6fb70a(0x709)](),await this[_0x6fb70a(0x199)](()=>this[_0x6fb70a(0x6bd)]['open']());}catch(_0x23c140){throw _0x2354a9(_0x23c140);}}catch(_0x43d4e8){this[_0x6fb70a(0x41c)]=_0x58409e[_0x6fb70a(0x5ee)],this[_0x6fb70a(0x560)]=null,this[_0x6fb70a(0x65c)]();throw _0x43d4e8;}this[_0x6fb70a(0x60a)]=!![],this[_0x6fb70a(0x41c)]=_0x58409e['STARTED'];try{this[_0x6fb70a(0x49e)]('db',null,'setHostPlugins',[this['plugins'][_0x6fb70a(0x82e)][_0x6fb70a(0x1a7)](_0x569e73=>_0x569e73[_0x6fb70a(0x277)]?.[_0x6fb70a(0x6fe)])[_0x6fb70a(0x852)](Boolean)],![]),await this['plugins'][_0x6fb70a(0x898)]();}catch(_0x21e72c){this[_0x6fb70a(0x41c)]=_0x58409e[_0x6fb70a(0x21a)];try{this[_0x6fb70a(0x6bd)][_0x6fb70a(0x5a1)]();}catch{}this['state']=_0x58409e['STOPPED'],this[_0x6fb70a(0x60a)]=![],this[_0x6fb70a(0x65c)]();throw _0x21e72c;}for(const _0x4ef352 of this[_0x6fb70a(0x49e)]('db',null,'envNames',[],![]))if(!_0x4ef352[_0x6fb70a(0x6c8)]('~'))this[_0x6fb70a(0x248)](_0x4ef352);try{if(this[_0x6fb70a(0x49e)]('db',null,_0x6fb70a(0x236),[_0x6fb70a(0x18b)],![])){this[_0x6fb70a(0x16e)]=this[_0x6fb70a(0x248)]('~log');const _0x57c337=new Set(this[_0x6fb70a(0x793)][_0x6fb70a(0x763)]);this[_0x6fb70a(0x515)]=this[_0x6fb70a(0x793)][_0x6fb70a(0x33c)](this['_logEnv'],this['id']);const _0x198d0b=[...this[_0x6fb70a(0x793)][_0x6fb70a(0x763)]]['find'](_0x3ba959=>!_0x57c337['has'](_0x3ba959)),_0x1e6ea2=this[_0x6fb70a(0x49e)]('db',null,_0x6fb70a(0x579),[],![]);for(const _0x370678 of(this['_bootLog']??[])['slice'](_0x1e6ea2))_0x198d0b?.(_0x370678);}}catch{}this[_0x6fb70a(0x560)]=null,this[_0x6fb70a(0x6bd)][_0x6fb70a(0x312)](()=>this[_0x6fb70a(0x5bc)][_0x6fb70a(0x536)]()),this[_0x6fb70a(0x5bc)][_0x6fb70a(0x898)]();}async['bootRuntimeDeclarations'](){const _0x44b449=_0x4b066e;return this[_0x44b449(0x406)]('db',null,_0x44b449(0x566),[]);}async[_0x4b066e(0x5a1)](){const _0x1f7d81=_0x4b066e;if(this[_0x1f7d81(0x41c)]===_0x58409e['STOPPED'])return;if(this[_0x1f7d81(0x41c)]!==_0x58409e[_0x1f7d81(0x69c)])throw new _0x2c63fb(_0x1f7d81(0x1fc),'INVALID_STATE',{'state':this[_0x1f7d81(0x41c)]});this['state']=_0x58409e[_0x1f7d81(0x21a)],this[_0x1f7d81(0x60a)]=![];let _0x1a2e08=null;if(this[_0x1f7d81(0x449)][_0x1f7d81(0x597)]['length'])try{await this[_0x1f7d81(0x449)]['close']();}catch(_0x32d85d){_0x1a2e08=_0x32d85d;}if(this[_0x1f7d81(0x63b)]){try{this['__adminRelay'][_0x1f7d81(0x86a)](),this[_0x1f7d81(0x63b)][_0x1f7d81(0x1c5)]();}catch{}this[_0x1f7d81(0x63b)]=null;}try{this[_0x1f7d81(0x2f7)]?.[_0x1f7d81(0x893)]?.();}catch{}try{await this['plugins']['stop']();}catch(_0xf1a1af){_0x1a2e08=_0xf1a1af;}for(const _0x14d773 of[...Map['prototype']['values'][_0x1f7d81(0x853)](this[_0x1f7d81(0x8a5)])]){try{await _0x14d773[_0x1f7d81(0x3e8)][_0x1f7d81(0x3fe)]();}catch{}try{await _0x14d773['engines'][_0x1f7d81(0x893)]();}catch{}}for(const _0x27c2bb of[()=>this[_0x1f7d81(0x5f3)]['stop'](),()=>this[_0x1f7d81(0x422)]['stop'](),()=>this[_0x1f7d81(0x492)]&&this[_0x1f7d81(0x492)]['stop']?.()]){try{await _0x27c2bb();}catch{}}const _0x339cc9=this[_0x1f7d81(0x66a)][_0x1f7d81(0x308)]??0x7530,_0x431028=[];for(const _0x3ed1cb of[...Map['prototype']['values'][_0x1f7d81(0x853)](this['_envs'])]){if(_0x3ed1cb[_0x1f7d81(0x601)]?.[_0x1f7d81(0x561)]?.[_0x1f7d81(0x221)]>0x0)_0x431028[_0x1f7d81(0x2fb)](_0x3ed1cb['queue']['stopAll'](_0x339cc9));}if(_0x431028[_0x1f7d81(0x6cf)]>0x0)await Promise[_0x1f7d81(0x795)](_0x431028);try{this[_0x1f7d81(0x515)]?.();}catch{}this['_detachLogSink']=null;try{await this[_0x1f7d81(0x53b)]['drain']();}catch{}this[_0x1f7d81(0x5bc)][_0x1f7d81(0x893)]();try{await this['_macro'](()=>this[_0x1f7d81(0x6bd)][_0x1f7d81(0x5a1)]());}catch(_0x4221de){_0x1a2e08=_0x1a2e08||_0x2354a9(_0x4221de);}this['state']=_0x58409e['STOPPED'],this[_0x1f7d81(0x65c)](),Map[_0x1f7d81(0x455)][_0x1f7d81(0x871)]['call'](this[_0x1f7d81(0x8a5)]);if(_0x1a2e08)throw _0x1a2e08;}['_teardownNative'](){const _0x4224cf=_0x4b066e;this[_0x4224cf(0x5bc)]['stop']();try{this['_native'][_0x4224cf(0x312)](null);}catch{}try{this[_0x4224cf(0x6bd)][_0x4224cf(0x70c)]();}catch{}this[_0x4224cf(0x80f)]=null,this[_0x4224cf(0x350)]=null,this[_0x4224cf(0x4c1)]=null,_0x485c28[_0x4224cf(0x85f)](this['_key']),_0x485c28[_0x4224cf(0x867)](this),_0x4eb66f['delete'](this[_0x4224cf(0x4b8)]);if(_0x485c28[_0x4224cf(0x7fb)](this)){const _0x22f7b4=[..._0x4eb66f[_0x4224cf(0x89c)]()][_0x4224cf(0x644)]();if(_0x22f7b4)_0x485c28['setKick'](()=>_0x22f7b4[_0x4224cf(0x5bc)][_0x4224cf(0x536)](),_0x22f7b4);else _0x485c28[_0x4224cf(0x404)](()=>{},null);}}get['id'](){return this['_call']('db',null,'id',[],![]);}[_0x4b066e(0x58f)](_0x4d4b4d){const _0x1ad61e=_0x4b066e;return this[_0x1ad61e(0x30b)]('default')[_0x1ad61e(0x58f)](_0x4d4b4d);}get[_0x4b066e(0x530)](){const _0x518b04=_0x4b066e;return this['_rootDb']['get'](_0x518b04(0x6df));}get[_0x4b066e(0x38a)](){const _0x477661=_0x4b066e;return this[_0x477661(0x5f3)][_0x477661(0x38a)];}get[_0x4b066e(0x628)](){const _0x2e4bf2=_0x4b066e;return this[_0x2e4bf2(0x5f3)][_0x2e4bf2(0x628)];}get[_0x4b066e(0x666)](){const _0xbfd9e=_0x4b066e;if(!this['_isOpen']||!this['_call']('db',null,'subsBuilt',[],![]))return undefined;if(!this['_subsV2Obj']){const _0x45ee4c=requireOkdbSubscriptionsStore(),_0x49411c=new _0x45ee4c(this,this[_0xbfd9e(0x66a)]&&this['options'][_0xbfd9e(0x2a7)]);_0x49411c['_sub']=this[_0xbfd9e(0x30b)](_0xbfd9e(0x6fc));const {compileFilter:_0x42054c}=requireOkdbQueryFilter(),_0xa68a56=(_0x1ecff0,_0x2bad1d)=>{if(_0x1ecff0==null)return![];try{return _0x42054c(_0x1ecff0)(_0x2bad1d);}catch{return![];}};this[_0xbfd9e(0x790)]={'store':_0x49411c,'router':{'_matches':_0xa68a56}};}return this['_subsV2Obj'];}get[_0x4b066e(0x311)](){const _0x1ff368=_0x4b066e;return this[_0x1ff368(0x437)];}get['formerIds'](){const _0x42189d=_0x4b066e;return this[_0x42189d(0x49e)]('db',null,_0x42189d(0x8a9),[],![]);}get['role'](){const _0xc09bae=_0x4b066e;return{...this[_0xc09bae(0x49e)]('db',null,'role',[],![])};}get[_0x4b066e(0x280)](){const _0x1ff382=_0x4b066e;return require$$29[_0x1ff382(0x280)];}get[_0x4b066e(0x6ef)](){const _0x4a4bde=_0x4b066e;return this[_0x4a4bde(0x49e)]('db',null,_0x4a4bde(0x4ba),[],![]);}get['info'](){const _0x5ef461=_0x4b066e;return this[_0x5ef461(0x49e)]('db',null,_0x5ef461(0x7c6),[],![]);}['getResolvedOptions'](){const _0x3dfd82=_0x4b066e;return this[_0x3dfd82(0x49e)]('db',null,_0x3dfd82(0x48a),[],![]);}[_0x4b066e(0x837)](){const _0x166691=_0x4b066e;return this[_0x166691(0x49e)]('db',null,_0x166691(0x837),[],![]);}async[_0x4b066e(0x2e4)](_0x2db429){const _0x39033e=_0x4b066e;this[_0x39033e(0x29b)](),this['_call']('db',null,_0x39033e(0x2e4),[_0x2db429],![]);}[_0x4b066e(0x263)](){const _0x2a940d=_0x4b066e,_0x508454=Date[_0x2a940d(0x89e)]();if(this[_0x2a940d(0x3f3)]&&_0x508454-this[_0x2a940d(0x3f3)]['at']<0xfa)return this[_0x2a940d(0x3f3)][_0x2a940d(0x820)];const _0x291c75=this['_call']('db',null,'pressure',[],![]);return this[_0x2a940d(0x3f3)]={'at':_0x508454,'value':_0x291c75},_0x291c75;}['_assertOpen'](){const _0x2159cf=_0x4b066e;if(!this[_0x2159cf(0x60a)])throw new _0x2c63fb(_0x2159cf(0x1fc),_0x2159cf(0x645),{'state':this[_0x2159cf(0x41c)]});}get[_0x4b066e(0x827)](){const _0x5329c8=_0x4b066e;if(this[_0x5329c8(0x41c)]===_0x58409e['STOPPED']||!this[_0x5329c8(0x60a)])return null;if(this[_0x5329c8(0x49e)]('db',null,_0x5329c8(0x178),[],![])==null)return null;if(!this['_busFacade']){const _0x4c20f4=this;this['_busFacade']={get 'state'(){const _0x4a3f66=_0x5329c8;return _0x4c20f4[_0x4a3f66(0x49e)]('db',null,'busState',[],![]);},get 'magic'(){const _0x279ec2=_0x5329c8;return Buffer[_0x279ec2(0x170)](_0x279ec2(0x75b)+_0x4c20f4['id']);},get 'isRunning'(){const _0x396e69=_0x5329c8;return _0x4c20f4[_0x396e69(0x49e)]('db',null,_0x396e69(0x178),[],![])==='started';},'emit'(_0x2ddee1,_0xc065ab=''){const _0x4e60bf=_0x5329c8;_0x4c20f4[_0x4e60bf(0x49e)]('db',null,_0x4e60bf(0x296),[_0x2ddee1,String(_0xc065ab)],![]);}};}return this[_0x5329c8(0x4d5)];}[_0x4b066e(0x16b)](_0xffa8d4,_0x262321){const _0x2634db=_0x4b066e;this[_0x2634db(0x827)]?.[_0x2634db(0x6d6)](_0x2634db(0x1d3),JSON[_0x2634db(0x4d2)]({'kind':'reconcile','scope':_0xffa8d4,'key':_0x262321}));}get[_0x4b066e(0x238)](){const _0x2fce07=_0x4b066e;return this[_0x2fce07(0x6dc)]||(this['_locks']=new(requireLock())[(_0x2fce07(0x828))](this,_0x2fce07(0x8a3),_0x2fce07(0x26a)));}get[_0x4b066e(0x895)](){const _0x4e694b=_0x4b066e;return this[_0x4e694b(0x851)]?this[_0x4e694b(0x851)]['db']:undefined;}get[_0x4b066e(0x4dd)](){const _0x1ea827=_0x4b066e,_0xe1ba02=this[_0x1ea827(0x851)]?.[_0x1ea827(0x3e8)];if(!_0xe1ba02)return null;const _0x7940dd=_0xe1ba02['list']()[_0x1ea827(0x21c)](_0x412b0b=>_0x412b0b['meta']?.[_0x1ea827(0x6fe)]===_0x1ea827(0x46b));return _0x7940dd?_0xe1ba02[_0x1ea827(0x1c1)](_0x7940dd['id'],_0x7940dd[_0x1ea827(0x4bd)]):null;}get[_0x4b066e(0x851)](){const _0x1b4ba4=_0x4b066e;return this[_0x1b4ba4(0x60a)]?this[_0x1b4ba4(0x8a5)]['get'](_0x1b4ba4(0x8a3)):undefined;}[_0x4b066e(0x248)](_0x158cc0){const _0x48761b=_0x4b066e;let _0x379107=Map[_0x48761b(0x455)][_0x48761b(0x63c)][_0x48761b(0x853)](this[_0x48761b(0x8a5)],_0x158cc0);if(!_0x379107){_0x379107=new _0x2f4b08(this,_0x158cc0),Map[_0x48761b(0x455)]['set'][_0x48761b(0x853)](this[_0x48761b(0x8a5)],_0x158cc0,_0x379107);if(_0x158cc0===_0x48761b(0x822))this[_0x48761b(0x890)]=_0x379107;}return _0x379107;}[_0x4b066e(0x30b)](_0x15e703=_0x4b066e(0x822)){const _0x46bf23=_0x4b066e,_0x3e5906=this[_0x46bf23(0x8a5)][_0x46bf23(0x63c)](_0x15e703);if(_0x3e5906)return _0x3e5906;if(this['_isOpen']&&this['_call']('db',null,'hasEnv',[_0x15e703],![]))return this[_0x46bf23(0x248)](_0x15e703);throw new _0x2c63fb(_0x46bf23(0x2f3)+_0x15e703+_0x46bf23(0x738),'ENV_NOT_FOUND');}get['default'](){const _0x49de7e=_0x4b066e;return this[_0x49de7e(0x30b)](_0x49de7e(0x822));}get[_0x4b066e(0x4fd)](){const _0x295e24=_0x4b066e;return this[_0x295e24(0x8a5)][_0x295e24(0x63c)](_0x295e24(0x822))??this[_0x295e24(0x890)];}get[_0x4b066e(0x6be)](){const _0x3fee0d=_0x4b066e;return this[_0x3fee0d(0x4fd)][_0x3fee0d(0x6be)];}get[_0x4b066e(0x601)](){const _0x22f797=_0x4b066e;return this[_0x22f797(0x4fd)][_0x22f797(0x601)];}[_0x4b066e(0x2a6)](_0x106f3a){const _0x46a2bd=_0x4b066e;if(!this[_0x46a2bd(0x60a)])return null;return this[_0x46a2bd(0x49e)]('db',null,_0x46a2bd(0x533),[_0x106f3a],![])?{'ref'(){},'unref'(){}}:null;}get[_0x4b066e(0x3ad)](){return this['_timerHandle']('readerCheck');}[_0x4b066e(0x625)](){const _0x32cfde=_0x4b066e;return this[_0x32cfde(0x49e)]('db',null,_0x32cfde(0x5fb),[],!![]);}get['_licenseInterval'](){const _0x35e543=_0x4b066e;return this[_0x35e543(0x2a6)](_0x35e543(0x61d));}get[_0x4b066e(0x42b)](){const _0x454e2c=_0x4b066e;return this[_0x454e2c(0x2a6)]('writerWatchdog');}get['_hlc'](){const _0x22c33a=_0x4b066e;return this[_0x22c33a(0x30b)](_0x22c33a(0x822))['_hlc'];}get[_0x4b066e(0x268)](){const _0x2e452f=_0x4b066e;throw new _0x2c63fb(_0x2e452f(0x374),_0x2e452f(0x33f));}get['processor'](){const _0x18c577=_0x4b066e;return this[_0x18c577(0x4fd)][_0x18c577(0x3e8)];}get['views'](){const _0x1eabb9=_0x4b066e;return this[_0x1eabb9(0x4fd)][_0x1eabb9(0x62a)];}async['createEnvironment'](_0x23c085,_0x36a4d3={}){const _0x9476b2=_0x4b066e;this[_0x9476b2(0x29b)]();if(_0x36a4d3&&typeof _0x36a4d3['encryptionKey']==='function'){const _0x4f6cad=_0x36a4d3[_0x9476b2(0x4e9)];this['_setKey'](_0x23c085,await _0x4f6cad(_0x23c085),!![]),this[_0x9476b2(0x52f)][_0x9476b2(0x5b9)]['set'](_0x23c085,_0x4f6cad),_0x36a4d3={..._0x36a4d3,'encryptionKey':!![]};}return this[_0x9476b2(0x49e)]('db',null,_0x9476b2(0x6ad),[_0x23c085,_0x36a4d3]),this[_0x9476b2(0x248)](_0x23c085);}async[_0x4b066e(0x654)](_0x3cf8f2){const _0x34e365=_0x4b066e;if(!this[_0x34e365(0x60a)])throw new _0x2c63fb('Cannot\x20openEnv(\x22'+_0x3cf8f2+_0x34e365(0x771),_0x34e365(0x645));return this[_0x34e365(0x49e)]('db',null,_0x34e365(0x654),[_0x3cf8f2]),this[_0x34e365(0x248)](_0x3cf8f2);}get[_0x4b066e(0x794)](){const _0x1da724=_0x4b066e;if(!this['__adminRelay']&&this[_0x1da724(0x60a)]){const _0x48941b=requireOkdbRelay(),_0x4c3da6=new _0x48941b(this,this[_0x1da724(0x66a)]?.[_0x1da724(0x593)]?.[_0x1da724(0x6b3)]??{});_0x4c3da6['attach'](),_0x4c3da6[_0x1da724(0x504)]=!![],this[_0x1da724(0x63b)]=_0x4c3da6;}return this[_0x1da724(0x63b)]??null;}set[_0x4b066e(0x794)](_0x208e63){const _0x115ce8=_0x4b066e;this[_0x115ce8(0x63b)]=_0x208e63;}get[_0x4b066e(0x797)](){const _0x117da9=_0x4b066e;let _0x2de399=0x0;if(this[_0x117da9(0x60a)])for(const [_0x22f62b]of Map[_0x117da9(0x455)][_0x117da9(0x72a)]['call'](this[_0x117da9(0x8a5)])){try{_0x2de399+=this[_0x117da9(0x49e)](_0x117da9(0x7c0),_0x22f62b,'gateQuanta',[],![])||0x0;}catch{}}return{'total':_0x2de399,'maxObserved':_0x2de399>0x0?0x1:0x0,'inFlight':0x0};}async[_0x4b066e(0x7e2)](_0xd803f7){const _0x5d340b=_0x4b066e,_0x561835=this[_0x5d340b(0x8a5)][_0x5d340b(0x63c)](_0xd803f7);if(_0x561835)return _0x561835;if(!this['_call']('db',null,_0x5d340b(0x236),[_0xd803f7],![]))throw new Error('okdb._openEnvLazy:\x20env\x20\x22'+_0xd803f7+_0x5d340b(0x854));return this[_0x5d340b(0x654)](_0xd803f7);}async[_0x4b066e(0x1fe)](_0x511c4b){const _0x59fa26=_0x4b066e,_0x33d7da=this[_0x59fa26(0x49e)]('db',null,_0x59fa26(0x761),[_0x511c4b]);return this[_0x59fa26(0x8a5)][_0x59fa26(0x82f)](_0x511c4b),_0x33d7da;}async[_0x4b066e(0x1d0)](_0x15b17c,_0x1acd37={}){const _0x1371e4=_0x4b066e;this[_0x1371e4(0x29b)]();const _0x5b5d06=this[_0x1371e4(0x49e)]('db',null,_0x1371e4(0x1d0),[_0x15b17c,_0x1acd37]);return this[_0x1371e4(0x8a5)][_0x1371e4(0x82f)](_0x15b17c),_0x5b5d06;}static get[_0x4b066e(0x6fd)](){const _0x12c0ef=_0x4b066e;return _0x30c87e[_0x12c0ef(0x6fd)];}static get['KNOWN_OPTIONS'](){return _0x30c87e['KNOWN_OPTIONS'];}static get['_OPTION_HINTS'](){const _0x9a524a=_0x4b066e;return _0x30c87e[_0x9a524a(0x647)];}static async[_0x4b066e(0x7fe)](_0x50250e,_0x78fc1f){const _0x4bd33f=_0x4b066e;return _0x12e39f('db',_0x4bd33f(0x7fe),[_0x50250e,_0x78fc1f]);}static[_0x4b066e(0x1a2)](_0x49b56e){return _0x12e39f('db','reidentify',[_0x49b56e]);}static[_0x4b066e(0x6fb)](_0x730034,_0x317a8c){const _0xac7827=_0x4b066e;_0x12e39f('views',_0xac7827(0x6fb),[_0x730034,_0x317a8c]);}static[_0x4b066e(0x68c)](_0x53e2ee,_0xd2ed42){const _0x3187cf=_0x4b066e;_0x12e39f(_0x3187cf(0x62a),_0x3187cf(0x68c),[_0x53e2ee,_0xd2ed42]);}static[_0x4b066e(0x294)](){}['equal'](_0x3baf04,_0x935d94){const _0x2e33d6=_0x4b066e;return require$$16[_0x2e33d6(0x757)](_0x3baf04,_0x935d94);}}_0x40c6a4[_0x4b066e(0x477)]=_0x30e045,Object[_0x4b066e(0x79d)](_0x40c6a4,_0x4b066e(0x4eb),{'get'(){const _0x4e8fb7=_0x4b066e;return _0x40c6a4[_0x4e8fb7(0x2dc)]||(_0x40c6a4[_0x4e8fb7(0x2dc)]=new Set());},'set'(_0x64e622){const _0x16de87=_0x4b066e;_0x40c6a4[_0x16de87(0x2dc)]=_0x64e622;try{_0x12e39f('db',_0x16de87(0x2e1),[]);}catch{}},'configurable':!![]});for(const _0x3a0dc2 of[_0x4b066e(0x7f7),'txn',_0x4b066e(0x27f),_0x4b066e(0x88e),'patch',_0x4b066e(0x740),_0x4b066e(0x42f),'get',_0x4b066e(0x791),_0x4b066e(0x2ec),_0x4b066e(0x3fa),_0x4b066e(0x618),_0x4b066e(0x7d2),_0x4b066e(0x436),_0x4b066e(0x587),'getIndex',_0x4b066e(0x2c0),_0x4b066e(0x490),_0x4b066e(0x665),_0x4b066e(0x181),_0x4b066e(0x629),'registerType','ensureType','ensure',_0x4b066e(0x2d0),_0x4b066e(0x3c7),_0x4b066e(0x195),_0x4b066e(0x7b7),_0x4b066e(0x2d8),_0x4b066e(0x764),_0x4b066e(0x219),'indexReady',_0x4b066e(0x2ef),_0x4b066e(0x43b),_0x4b066e(0x7e9),_0x4b066e(0x4ee),'getClock',_0x4b066e(0x267),_0x4b066e(0x397),'getTTL',_0x4b066e(0x483),_0x4b066e(0x6f7),_0x4b066e(0x5cc),_0x4b066e(0x81b),_0x4b066e(0x669),_0x4b066e(0x60f),_0x4b066e(0x8a4),_0x4b066e(0x3c2),_0x4b066e(0x380),'now']){_0x40c6a4[_0x4b066e(0x455)][_0x3a0dc2]=function(..._0x1e7eb0){const _0x3cc9ba=_0x4b066e,_0x50de71=this['env'](_0x3cc9ba(0x822));return _0x50de71[_0x3a0dc2](..._0x1e7eb0);};}function _0x104dd6(_0x335a2f){const _0x4be3e0=_0x4b066e,_0xe8d035=_0x5df7e7=>()=>{const _0x4b3c3e=_0x3ebb;throw new Error('db.processors.'+_0x5df7e7+_0x4b3c3e(0x284));};return{'process':_0xe8d035(_0x4be3e0(0x7c3)),'processRest':_0xe8d035(_0x4be3e0(0x7e8)),'processEverything':_0xe8d035('processEverything()'),async 'start'(){const _0x3c7e89=_0x4be3e0;return _0x335a2f[_0x3c7e89(0x49e)]('db',null,'processorsStart',[]);},async 'stop'(){const _0x15366c=_0x4be3e0;return _0x335a2f[_0x15366c(0x49e)]('db',null,_0x15366c(0x3b7),[]);},'status'(){const _0x5af15e=_0x4be3e0;return _0x335a2f[_0x5af15e(0x49e)]('db',null,_0x5af15e(0x66b),[],![]);},get 'participating'(){const _0x3519aa=_0x4be3e0;return _0x335a2f[_0x3519aa(0x49e)]('db',null,_0x3519aa(0x41d),[],![]);},get '_participate'(){const _0x1a3edb=_0x4be3e0;return _0x335a2f[_0x1a3edb(0x49e)]('db',null,'processorsParticipating',[],![]);}};}function _0x12e39f(_0x415fbc,_0xfcc5d6,_0x4e8a8a){_0x46d76c();try{return _0x24f469()['callStatic'](_0x415fbc,_0xfcc5d6,_0x4e8a8a);}catch(_0x27b89f){throw _0x2354a9(_0x27b89f);}}_0x590e4f[_0x4b066e(0x3be)]=_0x40c6a4,_0x590e4f[_0x4b066e(0x3be)]['staticCall']=_0x12e39f,_0x590e4f['exports'][_0x4b066e(0x511)]=_0x40c6a4,_0x590e4f['exports'][_0x4b066e(0x477)]=_0x30e045,_0x590e4f[_0x4b066e(0x3be)][_0x4b066e(0x822)]=_0x40c6a4,Object[_0x4b066e(0x79d)](_0x590e4f[_0x4b066e(0x3be)],_0x4b066e(0x73a),{'get':()=>require$$1$1[_0x4b066e(0x870)]?.()??null,'enumerable':![],'configurable':!![]});}(lib),lib[_0x566dfe(0x3be)];}var libExports=requireLib(),index=getDefaultExportFromCjs(libExports);module[_0x2ec26e(0x3be)]=index;
|