@kedem/okdb 3.2.0 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/okdb-native.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x7b0c8f=_0xf27e;(function(_0x58b4d5,_0x31a38d){const _0x15ba12=_0xf27e,_0xb2f2c8=_0x58b4d5();while(!![]){try{const _0x1a4593=parseInt(_0x15ba12(0x39b))/0x1*(-parseInt(_0x15ba12(0x735))/0x2)+parseInt(_0x15ba12(0x32c))/0x3+parseInt(_0x15ba12(0x1b1))/0x4+parseInt(_0x15ba12(0x5ef))/0x5*(-parseInt(_0x15ba12(0x578))/0x6)+parseInt(_0x15ba12(0x53b))/0x7+parseInt(_0x15ba12(0x720))/0x8*(-parseInt(_0x15ba12(0x4e6))/0x9)+parseInt(_0x15ba12(0x60c))/0xa*(-parseInt(_0x15ba12(0x633))/0xb);if(_0x1a4593===_0x31a38d)break;else _0xb2f2c8['push'](_0xb2f2c8['shift']());}catch(_0x4c5c65){_0xb2f2c8['push'](_0xb2f2c8['shift']());}}}(_0x38ac,0x3c918));var require$$0$6=require('node:events'),require$$1$1=require(_0x7b0c8f(0x39c)),require$$0=require(_0x7b0c8f(0x669)),require$$1=require('node:stream'),require$$4=require('node:path'),require$$0$2=require(_0x7b0c8f(0x356)),require$$0$1=require(_0x7b0c8f(0x4eb)),require$$16=require('node:util'),require$$0$3=require('node:http'),require$$2=require(_0x7b0c8f(0x6f3)),require$$18=require(_0x7b0c8f(0x1d2)),require$$0$4=require(_0x7b0c8f(0x4d5)),require$$0$5=require(_0x7b0c8f(0x8c2));function getDefaultExportFromCjs(_0x3fc703){const _0x2952bb=_0x7b0c8f;return _0x3fc703&&_0x3fc703[_0x2952bb(0x42c)]&&Object[_0x2952bb(0x36e)][_0x2952bb(0x364)][_0x2952bb(0x352)](_0x3fc703,'default')?_0x3fc703['default']:_0x3fc703;}var lib={'exports':{}},okdbError,hasRequiredOkdbError;function requireOkdbError(){if(hasRequiredOkdbError)return okdbError;hasRequiredOkdbError=0x1;class _0x17ba9e extends Error{constructor(_0x56ecff,_0x3a0dc5,_0x4b60d8={}){const _0x59302e=_0xf27e;super(_0x56ecff),this['name']=_0x59302e(0x728),this[_0x59302e(0x5c5)]=_0x3a0dc5,this[_0x59302e(0x33f)]=_0x4b60d8,_0x4b60d8[_0x59302e(0x381)]&&(this[_0x59302e(0x381)]=_0x4b60d8[_0x59302e(0x381)]),Error[_0x59302e(0x3a5)](this,this[_0x59302e(0x342)]);}}class _0x29afc0 extends _0x17ba9e{constructor(_0x68a296,_0x3b05f6,_0x10baaf,_0x122435){const _0x4eed9c=_0xf27e;super('Version\x20mismatch\x20for\x20'+_0x68a296+'@'+_0x3b05f6+_0x4eed9c(0x4bb)+_0x10baaf+_0x4eed9c(0x298)+_0x122435,'VERSION_MISMATCH',{'type':_0x68a296,'key':_0x3b05f6,'expectedVersion':_0x10baaf,'actualVersion':_0x122435}),this['name']=_0x4eed9c(0x88e);}}class _0x294daa extends _0x17ba9e{constructor(_0x35b207,_0x307e07){const _0x596af6=_0xf27e;super(_0x35b207+'@'+_0x307e07+_0x596af6(0x3a3),_0x596af6(0x1b6),{'type':_0x35b207,'key':_0x307e07}),this[_0x596af6(0x264)]=_0x596af6(0x225);}}class _0x280159 extends _0x17ba9e{constructor(_0xb19943,_0x34b414){const _0x222756=_0xf27e;super(_0xb19943+'@'+_0x34b414+_0x222756(0x5db),_0x222756(0x359),{'type':_0xb19943,'key':_0x34b414}),this[_0x222756(0x264)]=_0x222756(0x7d7);}}class _0x4953ca extends _0x17ba9e{constructor(_0x272d78,_0x586f45){const _0x5913d9=_0xf27e,_0x191f57=typeof _0x586f45;super('Invalid\x20index\x20key\x20type\x20for\x20\x27'+_0x272d78+_0x5913d9(0x250)+_0x191f57+_0x5913d9(0x407)+_0x586f45,_0x5913d9(0x6ec),{'index':_0x272d78,'key':_0x586f45,'keyType':_0x191f57}),this[_0x5913d9(0x264)]=_0x5913d9(0x4c0);}}class _0x434e50 extends _0x17ba9e{constructor(_0x3a8804){const _0x2ed44b=_0xf27e,_0x3bc641=typeof _0x3a8804;super(_0x2ed44b(0x1af)+_0x3bc641+_0x2ed44b(0x609)+_0x3a8804,_0x2ed44b(0x692),{'key':_0x3a8804,'keyType':_0x3bc641}),this[_0x2ed44b(0x264)]='OKDBInvalidPrimaryKeyError';}}class _0x3c009d extends _0x17ba9e{constructor(_0x3d49ea){const _0x114684=_0xf27e;super(_0x114684(0x25e)+_0x3d49ea+'\x27\x20doesn\x27t\x20exist',_0x114684(0x29b),{'type':_0x3d49ea}),this[_0x114684(0x264)]='OKDBTypeNotRegisteredError';}}class _0x4bf761 extends _0x17ba9e{constructor(_0x57094c){const _0x554c2d=_0xf27e;super(_0x554c2d(0x25e)+_0x57094c+'\x27\x20already\x20registered',_0x554c2d(0x80c),{'type':_0x57094c}),this[_0x554c2d(0x264)]=_0x554c2d(0x70a);}}class _0x39c252 extends _0x17ba9e{constructor(_0x3a665e,_0x4551bc){const _0x2941cf=_0xf27e;super(_0x2941cf(0x1ec)+_0x4551bc+_0x2941cf(0x8b7)+_0x3a665e+_0x2941cf(0x2cc),_0x2941cf(0x1f6),{'type':_0x3a665e,'index':_0x4551bc}),this[_0x2941cf(0x264)]=_0x2941cf(0x77c);}}class _0x14c144 extends _0x17ba9e{constructor(_0x3285ca,_0x269966){const _0x2e027c=_0xf27e;super(_0x2e027c(0x1ec)+_0x269966+_0x2e027c(0x8b7)+_0x3285ca+_0x2e027c(0x317),_0x2e027c(0x3d8),{'type':_0x3285ca,'index':_0x269966}),this[_0x2e027c(0x264)]=_0x2e027c(0x2d0);}}class _0x9ed711 extends _0x17ba9e{constructor(_0x59e8b9,_0x55942c={}){const _0x23464d=_0xf27e;super(_0x59e8b9,_0x23464d(0x1ff),_0x55942c),this['name']='OKDBInvalidValueError';}}class _0x41ddee extends _0x17ba9e{constructor(_0x55e5d9,_0x4fbe0b,_0x43fc8b,_0x5343c4,_0x3ded3d){const _0x14e351=_0xf27e;super(_0x14e351(0x6f1)+_0x55e5d9+'@'+_0x4fbe0b+_0x14e351(0x804)+_0x43fc8b+_0x14e351(0x32f)+_0x5343c4+_0x14e351(0x3ee)+_0x3ded3d+'\x27',_0x14e351(0x3cb),{'type':_0x55e5d9,'index':_0x4fbe0b,'indexKey':_0x43fc8b,'existingKey':_0x5343c4,'conflictingKey':_0x3ded3d}),this[_0x14e351(0x264)]='OKDBUniqueConstraintError';}}class _0x1b8cd4 extends _0x17ba9e{constructor(_0x4a7d1e,_0x444a85,_0x504a60){const _0x4677f8=_0xf27e;super(_0x4677f8(0x3a4)+_0x4a7d1e+'@'+_0x444a85,'SCHEMA_VALIDATION_FAILED',{'type':_0x4a7d1e,'key':_0x444a85,'errors':_0x504a60}),this[_0x4677f8(0x264)]=_0x4677f8(0x69d),this[_0x4677f8(0x326)]=_0x4a7d1e,this['key']=_0x444a85,this[_0x4677f8(0x670)]=_0x504a60;}}class _0x3e6c36 extends _0x17ba9e{constructor(_0x57c802,_0x217a62){const _0x208e96=_0xf27e;super('Cannot\x20set\x20enforce\x20schema\x20on\x20'+_0x57c802+':\x20'+_0x217a62[_0x208e96(0x7e0)]+'\x20documents\x20fail\x20validation',_0x208e96(0x870),{'type':_0x57c802,'failures':_0x217a62}),this[_0x208e96(0x264)]='OKDBSchemaCollectionError',this['type']=_0x57c802,this[_0x208e96(0x551)]=_0x217a62;}}class _0x2f497b extends _0x17ba9e{constructor(_0x4e37eb,_0x12d4ee,_0x532fff,_0x648bd9,_0x393b72){const _0x94bb38=_0xf27e;super(_0x94bb38(0x2a6)+_0x4e37eb+'@'+_0x12d4ee+'.'+_0x532fff+_0x94bb38(0x60e)+_0x648bd9+'@'+_0x393b72+_0x94bb38(0x752),_0x94bb38(0x299),{'sourceType':_0x4e37eb,'sourceKey':_0x12d4ee,'fieldPath':_0x532fff,'targetType':_0x648bd9,'targetKey':_0x393b72}),this[_0x94bb38(0x264)]='OKDBForeignKeyError',this[_0x94bb38(0x782)]=_0x4e37eb,this[_0x94bb38(0x1e3)]=_0x12d4ee,this['fieldPath']=_0x532fff,this['targetType']=_0x648bd9,this[_0x94bb38(0x479)]=_0x393b72;}}class _0x39d874 extends _0x17ba9e{constructor(_0x2829b3,_0x26e632,_0x23e5a7){const _0x58b0cd=_0xf27e;super(_0x58b0cd(0x365)+_0x2829b3+'@'+_0x26e632+':\x20'+_0x23e5a7[_0x58b0cd(0x7e0)]+'\x20document(s)\x20reference\x20it\x20with\x20onDelete:restrict',_0x58b0cd(0x589),{'targetType':_0x2829b3,'targetKey':_0x26e632,'references':_0x23e5a7}),this[_0x58b0cd(0x264)]=_0x58b0cd(0x555),this[_0x58b0cd(0x296)]=_0x2829b3,this['targetKey']=_0x26e632,this[_0x58b0cd(0x607)]=_0x23e5a7;}}class _0x5b876e extends _0x17ba9e{constructor(_0x480ae4,_0x15d499,_0x510574){const _0x3537c4=_0xf27e;super(_0x3537c4(0x46e)+_0x15d499+_0x3537c4(0x46f)+_0x480ae4+_0x3537c4(0x1bc)+_0x510574[_0x3537c4(0x59f)](_0xa16bc=>_0xa16bc[_0x3537c4(0x472)]+':'+_0xa16bc[_0x3537c4(0x264)])['join'](',\x20'),'INDEX_HAS_CONSUMERS',{'type':_0x480ae4,'index':_0x15d499,'usedBy':_0x510574}),this['name']=_0x3537c4(0x750);}}return okdbError={'OKDBError':_0x17ba9e,'OKDBVersionMismatchError':_0x29afc0,'OKDBNotFoundError':_0x294daa,'OKDBAlreadyExistsError':_0x280159,'OKDBInvalidIndexKeyError':_0x4953ca,'OKDBInvalidPrimaryKeyError':_0x434e50,'OKDBTypeNotRegisteredError':_0x3c009d,'OKDBTypeAlreadyRegisteredError':_0x4bf761,'OKDBIndexNotRegisteredError':_0x39c252,'OKDBIndexAlreadyRegisteredError':_0x14c144,'OKDBInvalidValueError':_0x9ed711,'OKDBUniqueConstraintError':_0x41ddee,'OKDBSchemaValidationError':_0x1b8cd4,'OKDBSchemaCollectionError':_0x3e6c36,'OKDBForeignKeyError':_0x2f497b,'OKDBForeignKeyDeleteError':_0x39d874,'OKDBIndexHasConsumersError':_0x5b876e},okdbError;}var errors,hasRequiredErrors;function requireErrors(){const _0x569187=_0x7b0c8f;if(hasRequiredErrors)return errors;hasRequiredErrors=0x1;const _0x52d61d=requireOkdbError(),_0x1500c2={'VERSION_MISMATCH':_0x52d61d[_0x569187(0x88e)],'NOT_FOUND':_0x52d61d[_0x569187(0x225)],'ALREADY_EXISTS':_0x52d61d[_0x569187(0x7d7)],'INVALID_INDEX_KEY':_0x52d61d[_0x569187(0x4c0)],'INVALID_PRIMARY_KEY':_0x52d61d[_0x569187(0x2b5)],'TYPE_NOT_REGISTERED':_0x52d61d[_0x569187(0x624)],'TYPE_ALREADY_REGISTERED':_0x52d61d['OKDBTypeAlreadyRegisteredError'],'INDEX_NOT_REGISTERED':_0x52d61d[_0x569187(0x77c)],'INDEX_ALREADY_REGISTERED':_0x52d61d['OKDBIndexAlreadyRegisteredError'],'INVALID_VALUE':_0x52d61d['OKDBInvalidValueError'],'UNIQUE_CONSTRAINT':_0x52d61d[_0x569187(0x3ed)],'SCHEMA_VALIDATION_FAILED':_0x52d61d[_0x569187(0x69d)],'SCHEMA_COLLECTION_INVALID':_0x52d61d[_0x569187(0x33c)],'FOREIGN_KEY_VIOLATION':_0x52d61d[_0x569187(0x803)],'FOREIGN_KEY_DELETE_RESTRICTED':_0x52d61d[_0x569187(0x555)],'INDEX_HAS_CONSUMERS':_0x52d61d[_0x569187(0x750)]};class _0x2030a3 extends _0x52d61d[_0x569187(0x728)]{constructor(_0xd672ca,_0x723be3){const _0x4f86d9=_0x569187;super(_0xd672ca+':\x20not\x20implemented\x20in\x20the\x20native\x20build\x20yet'+(_0x723be3?'\x20('+_0x723be3+')':''),_0x4f86d9(0x20b),{'feature':_0xd672ca}),this[_0x4f86d9(0x264)]=_0x4f86d9(0x4be);}}function _0xdafe0f(_0x1b62be){const _0x5ca7fa=_0x569187;if(!_0x1b62be||typeof _0x1b62be!==_0x5ca7fa(0x81a)||!_0x1b62be[_0x5ca7fa(0x572)])return _0x1b62be;delete _0x1b62be['__okdb'];const _0x4312e8=_0x1b62be['code'];if(_0x4312e8==='Error'||_0x4312e8===_0x5ca7fa(0x23c)||_0x4312e8===_0x5ca7fa(0x5b2)){const _0x4f6534=_0x4312e8===_0x5ca7fa(0x23c)?TypeError['prototype']:_0x4312e8===_0x5ca7fa(0x5b2)?RangeError[_0x5ca7fa(0x36e)]:Error[_0x5ca7fa(0x36e)];Object[_0x5ca7fa(0x61b)](_0x1b62be,_0x4f6534),_0x1b62be[_0x5ca7fa(0x264)]=_0x4312e8;if(_0x1b62be[_0x5ca7fa(0x33f)]&&_0x1b62be['details']['status']!==undefined)_0x1b62be[_0x5ca7fa(0x602)]=_0x1b62be[_0x5ca7fa(0x33f)][_0x5ca7fa(0x602)];return delete _0x1b62be[_0x5ca7fa(0x5c5)],delete _0x1b62be['details'],_0x1b62be;}const _0x496108=_0x1500c2[_0x4312e8];Object[_0x5ca7fa(0x61b)](_0x1b62be,(_0x496108||_0x52d61d['OKDBError'])[_0x5ca7fa(0x36e)]),_0x1b62be[_0x5ca7fa(0x264)]=_0x496108?_0x496108[_0x5ca7fa(0x264)]['replace'](/^OKDB/,'OKDB'):_0x5ca7fa(0x728);const _0x64b749=_0x1b62be[_0x5ca7fa(0x33f)]||{};_0x4312e8==='SCHEMA_VALIDATION_FAILED'&&(_0x1b62be[_0x5ca7fa(0x326)]=_0x64b749[_0x5ca7fa(0x326)],_0x1b62be[_0x5ca7fa(0x8cd)]=_0x64b749['key'],_0x1b62be[_0x5ca7fa(0x670)]=_0x64b749[_0x5ca7fa(0x670)]);_0x4312e8===_0x5ca7fa(0x870)&&(_0x1b62be[_0x5ca7fa(0x326)]=_0x64b749[_0x5ca7fa(0x326)],_0x1b62be['failures']=_0x64b749[_0x5ca7fa(0x551)]);if(_0x4312e8===_0x5ca7fa(0x299)){for(const _0x1eddac of[_0x5ca7fa(0x782),_0x5ca7fa(0x1e3),'fieldPath','targetType',_0x5ca7fa(0x479)])_0x1b62be[_0x1eddac]=_0x64b749[_0x1eddac];}if(_0x4312e8===_0x5ca7fa(0x589)){for(const _0x2bdd64 of[_0x5ca7fa(0x296),_0x5ca7fa(0x479),'references'])_0x1b62be[_0x2bdd64]=_0x64b749[_0x2bdd64];}if(_0x64b749['cause'])_0x1b62be[_0x5ca7fa(0x381)]=_0x64b749[_0x5ca7fa(0x381)];if(_0x64b749[_0x5ca7fa(0x602)]!==undefined)_0x1b62be[_0x5ca7fa(0x602)]=_0x64b749[_0x5ca7fa(0x602)];if(_0x64b749[_0x5ca7fa(0x7f0)]!==undefined)_0x1b62be[_0x5ca7fa(0x7f0)]=_0x64b749[_0x5ca7fa(0x7f0)];return _0x1b62be;}function _0x12a4d5(_0x466b3c){const _0x33d25c=_0x569187;if(_0x466b3c===undefined)return _0x33d25c(0x30c);if(_0x466b3c===null)return'null';if(typeof _0x466b3c===_0x33d25c(0x6d1))return _0x466b3c?'string':'empty\x20string';if(typeof _0x466b3c===_0x33d25c(0x84a))return _0x33d25c(0x84a);if(typeof _0x466b3c!==_0x33d25c(0x81a))return typeof _0x466b3c;if(Array['isArray'](_0x466b3c))return _0x466b3c['length']?'array':_0x33d25c(0x7be);if(_0x466b3c instanceof Date)return'Date';if(_0x466b3c instanceof Map)return _0x33d25c(0x7c9);if(Buffer[_0x33d25c(0x5d9)](_0x466b3c))return _0x33d25c(0x349);return _0x33d25c(0x81a);}const _0x452c59=(_0x1a3f22,_0x4034bd,_0x56cca4)=>new _0x52d61d[(_0x569187(0x728))](_0x4034bd,_0x1a3f22,_0x56cca4),_0x5cdfbb=(_0x3c7189,_0x3d9d6,_0x5d3a63)=>_0x452c59(_0x569187(0x2fa),_0x3c7189+_0x569187(0x4ee)+_0x3d9d6+_0x569187(0x598)+_0x12a4d5(_0x5d3a63),{'argument':_0x3c7189,'expected':_0x3d9d6,'got':_0x12a4d5(_0x5d3a63)}),_0xccd68c=(_0x5d4ead,_0x5d7325)=>_0x452c59(_0x569187(0x1f2),_0x5d4ead+_0x569187(0x6e8)+_0x12a4d5(_0x5d7325),{'argument':_0x5d4ead,'expected':_0x569187(0x476),'got':_0x12a4d5(_0x5d7325)}),_0x2db7f8=(_0x238f34,_0x377d07)=>_0x452c59(_0x569187(0x5c8),_0x238f34+':\x20'+_0x377d07,{'argument':_0x238f34,'problem':_0x377d07});function _0x5cb986(_0x6b6da9,_0x14ec57=_0x569187(0x2c2)){const _0x2dedd8=_0x569187;if(_0x6b6da9===undefined)return{};if(_0x6b6da9===null)throw _0x2db7f8(_0x14ec57,_0x2dedd8(0x3e1));return _0x6b6da9;}return errors={'reclass':_0xdafe0f,'NotImplementedNative':_0x2030a3,'BY_CODE':_0x1500c2,'describe':_0x12a4d5,'invalidArgument':_0x5cdfbb,'invalidTypeName':_0xccd68c,'invalidOptions':_0x2db7f8,'optionsArg':_0x5cb986,..._0x52d61d},errors;}var bridge_1,hasRequiredBridge;function requireBridge(){if(hasRequiredBridge)return bridge_1;hasRequiredBridge=0x1;const _0x2549ab=new Map(),_0xd35066=new Map();let _0x3e33cf=0x1;const _0x936db8=new Map(),_0x13407c=new Map();let _0x177b2e=0x1;const _0x24b0dc=new Map();let _0xb7af17=0x1;const _0x49b1ff=new Map();function _0x5dfa43(_0x3cd3f3,_0x11a227=null){const _0x50d30e=_0xf27e,_0x57ed23=_0xb7af17++;_0x24b0dc[_0x50d30e(0x8db)](_0x57ed23,_0x3cd3f3);if(_0x11a227)_0x49b1ff[_0x50d30e(0x8db)](_0x57ed23,_0x11a227);return _0x57ed23;}function _0x25e845(_0x1ff32a,_0x26f542){const _0x5ede6c=_0xf27e,_0x361e1c=_0x24b0dc[_0x5ede6c(0x341)](_0x1ff32a),_0x58e5c4=Array[_0x5ede6c(0x36e)][_0x5ede6c(0x836)][_0x5ede6c(0x352)](arguments,0x2),_0x44dda0=_0x38a762=>_0x10c340(_0x38a762,_0x49b1ff['get'](_0x1ff32a));let _0x5693f5=_0x58e5c4;if(_0x26f542===_0x5ede6c(0x8a9)||_0x26f542==='stop'||_0x26f542==='uninstall'||_0x26f542===_0x5ede6c(0x5e2)||_0x26f542==='assertStartAllowed')_0x5693f5=[_0x44dda0(_0x58e5c4[0x0])];else{if(_0x26f542===_0x5ede6c(0x23f))_0x5693f5=[_0x58e5c4[0x0],_0x58e5c4[0x1],_0x44dda0(_0x58e5c4[0x2])];else{if(_0x26f542==='assertCreateAllowed')_0x5693f5=[_0x44dda0(_0x58e5c4[0x0])];}}let _0x4ea619=_0x361e1c[_0x26f542](..._0x5693f5);if(_0x4ea619&&typeof _0x4ea619[_0x5ede6c(0x478)]===_0x5ede6c(0x84a))_0x4ea619=_0x157f26(_0x4ea619);if(_0x26f542===_0x5ede6c(0x8a9)){const _0x18c5a9=_0x4ea619&&typeof _0x4ea619===_0x5ede6c(0x81a)?_0x5dfa43(_0x4ea619):_0x5dfa43({});return{'$api':_0x18c5a9};}return _0x4ea619===undefined?null:_0x4ea619;}function _0x10c340(_0x428dd8,_0xa5cdea){const _0x2a4aec=_0xf27e;let _0x2c852f=_0x46e50f[_0x2a4aec(0x341)](_0x428dd8[_0x2a4aec(0x57c)]);const _0xbda6c1=_0x2c852f&&_0x2c852f[_0x2a4aec(0x709)]||_0xa5cdea||_0x16e758,_0x23f4cc=(_0x5641b2,..._0x3eb679)=>_0xbda6c1[_0x2a4aec(0x4e8)](_0x2a4aec(0x7ac),null,_0x5641b2,[_0x428dd8[_0x2a4aec(0x326)],_0x428dd8['name'],..._0x3eb679],!![]);return{'okdb':_0xbda6c1,'key':_0x428dd8[_0x2a4aec(0x8cd)],'type':_0x428dd8[_0x2a4aec(0x326)],'name':_0x428dd8[_0x2a4aec(0x264)],get 'storeEnv'(){const _0x2c710e=_0x2a4aec;if(!_0x2c852f&&_0xbda6c1&&_0xbda6c1['_isOpen']&&_0x428dd8['storeEnvName'])_0x2c852f=_0xbda6c1['_envs'][_0x2c710e(0x341)](_0x428dd8[_0x2c710e(0x444)]);return _0x2c852f;},'storeEnvName':_0x428dd8[_0x2a4aec(0x444)],'config':_0x428dd8[_0x2a4aec(0x5c0)],'meta':_0x428dd8['meta'],'options':_0x428dd8[_0x2a4aec(0x2c2)],'emit':(_0x32170f,_0x59936c)=>_0x23f4cc(_0x2a4aec(0x50e),_0x32170f,_0x59936c),'updateStatus':async(_0x194a45,_0x181c36)=>_0x23f4cc('ctxUpdateStatus',_0x194a45,_0x181c36==null?null:String(_0x181c36&&_0x181c36[_0x2a4aec(0x63a)]?_0x181c36[_0x2a4aec(0x63a)]:_0x181c36)),'updateMeta':async _0x32d01f=>_0x23f4cc('patchDeclaration',{'meta':_0x32d01f}),'updateConfig':async _0x26c43f=>_0x23f4cc(_0x2a4aec(0x8a0),{'config':_0x26c43f})};}function _0x505261(_0x340ccd,_0x2a5d83,_0x358c6a){const _0x30bb9f=_0xf27e;if(_0x340ccd==='new'){const _0x360dd7=_0x2da295(_0x2a5d83);let _0x54bae1=_0x360dd7(_0x358c6a);if(_0x54bae1&&typeof _0x54bae1[_0x30bb9f(0x478)]===_0x30bb9f(0x84a))_0x54bae1=_0x157f26(_0x54bae1);if(!_0x54bae1||typeof _0x54bae1[_0x30bb9f(0x8e0)]!=='function'){const {OKDBError:_0x32ccae}=requireErrors();throw new _0x32ccae(_0x30bb9f(0x503)+(_0x358c6a&&_0x358c6a[_0x30bb9f(0x326)])+_0x30bb9f(0x208),_0x30bb9f(0x226));}return _0x54bae1[_0x30bb9f(0x572)]=_0x360dd7[_0x30bb9f(0x572)],{'$id':_0x5dfa43(_0x54bae1),'batch':typeof _0x54bae1[_0x30bb9f(0x2e8)]===_0x30bb9f(0x84a)};}const _0x369711=_0x24b0dc['get'](_0x2a5d83);if(_0x340ccd==='free')return _0x24b0dc[_0x30bb9f(0x610)](_0x2a5d83),_0x49a9ea[_0x30bb9f(0x610)](_0x2a5d83),null;if(!_0x369711)throw new Error(_0x30bb9f(0x905));if(typeof _0x369711[_0x340ccd]!==_0x30bb9f(0x84a))return null;if(_0x340ccd===_0x30bb9f(0x8e0)||_0x340ccd===_0x30bb9f(0x2e8)){const _0x374b3e=_0x340ccd===_0x30bb9f(0x2e8)?_0x4ed6bd(_0x2a5d83,_0x369711,_0x358c6a):_0x1c5f47(_0x2a5d83,_0x369711,_0x340ccd,_0x358c6a);return _0x340ccd===_0x30bb9f(0x8e0)?_0x20ea93(_0x374b3e):_0x374b3e['map'](_0x20ea93);}let _0x5e0d77=_0x369711[_0x340ccd]();if(_0x5e0d77&&typeof _0x5e0d77[_0x30bb9f(0x478)]==='function')_0x5e0d77=_0x157f26(_0x5e0d77);return _0x5e0d77===undefined?null:_0x5e0d77;}function _0x20ea93(_0xd73baf){const _0x33344b=_0xf27e;return _0xd73baf instanceof Float32Array?_0xd73baf:Array[_0x33344b(0x875)](_0xd73baf);}function _0x4afaa9(_0x9f906,_0x5665e0,_0x39491d){const _0x3b957e=_0xf27e;if(_0x9f906==='new'){const _0x1ef37f=_0x2da295(_0x5665e0);let _0x50279b=_0x1ef37f(_0x39491d[_0x3b957e(0x5c0)]??{},{'dims':_0x39491d[_0x3b957e(0x6ea)],'dir':_0x39491d[_0x3b957e(0x541)]});if(_0x50279b&&typeof _0x50279b[_0x3b957e(0x478)]===_0x3b957e(0x84a))_0x50279b=_0x157f26(_0x50279b);for(const _0x39ebd5 of[_0x3b957e(0x222),'add','remove',_0x3b957e(0x92b),_0x3b957e(0x44b)]){if(!_0x50279b||typeof _0x50279b[_0x39ebd5]!=='function'){const {OKDBError:_0x2572e0}=requireErrors();throw new _0x2572e0(_0x3b957e(0x20c)+_0x39ebd5+'()',_0x3b957e(0x2e5),{'method':_0x39ebd5});}}return{'$id':_0x5dfa43(_0x50279b)};}const _0x4a5dba=_0x24b0dc[_0x3b957e(0x341)](_0x5665e0);if(_0x9f906==='free')return _0x24b0dc[_0x3b957e(0x610)](_0x5665e0),null;if(!_0x4a5dba)throw new Error('algorithm\x20is\x20gone');const _0x5267ef=_0x156cc1=>_0x156cc1?_0x156cc1[_0x3b957e(0x59f)](_0x52b3be=>({'key':_0x52b3be[_0x3b957e(0x8cd)],'vector':Float32Array['from'](_0x52b3be[_0x3b957e(0x8e1)])})):null;let _0x346ede;switch(_0x9f906){case _0x3b957e(0x222):case _0x3b957e(0x5e7):{const _0xbdb09b=_0x5267ef(_0x39491d);_0x346ede=_0x4a5dba[_0x9f906](_0xbdb09b?async()=>_0xbdb09b:undefined);break;}case'add':_0x346ede=_0x4a5dba[_0x3b957e(0x737)](_0x39491d[0x0],Float32Array['from'](_0x39491d[0x1]),_0x39491d[0x2]??undefined);break;case _0x3b957e(0x694):_0x346ede=_0x4a5dba[_0x3b957e(0x694)](_0x39491d);break;case'search':_0x346ede=_0x4a5dba[_0x3b957e(0x92b)](Float32Array[_0x3b957e(0x875)](_0x39491d[_0x3b957e(0x3da)]),_0x39491d[_0x3b957e(0x43b)]??{});break;case'snapshot':_0x346ede=typeof _0x4a5dba[_0x3b957e(0x7e2)]==='function'?_0x4a5dba['snapshot'](_0x39491d??undefined):![];break;case _0x3b957e(0x61d):_0x346ede=typeof _0x4a5dba[_0x3b957e(0x61d)]==='function'?_0x4a5dba[_0x3b957e(0x61d)]():undefined;break;case _0x3b957e(0x8d8):_0x346ede=typeof _0x4a5dba[_0x3b957e(0x8d8)]===_0x3b957e(0x84a)?_0x4a5dba[_0x3b957e(0x8d8)]():undefined;break;case'count':return Number(_0x4a5dba[_0x3b957e(0x44b)]());case _0x3b957e(0x809):return(typeof _0x4a5dba[_0x3b957e(0x809)]===_0x3b957e(0x84a)?_0x4a5dba[_0x3b957e(0x809)]():null)??{};default:throw new Error(_0x3b957e(0x28b)+_0x9f906);}if(_0x346ede&&typeof _0x346ede[_0x3b957e(0x478)]==='function')_0x346ede=_0x157f26(_0x346ede);return _0x346ede===undefined?null:_0x346ede;}function _0x185519(_0xd9534e,_0x28f548,_0x4c320e){const _0x24adab=_0xf27e;if(_0xd9534e===_0x24adab(0x2a5)){const _0x44ef41=_0x2da295(_0x28f548);let _0x67c798=_0x44ef41(_0x4c320e);if(_0x67c798&&typeof _0x67c798['then']===_0x24adab(0x84a))_0x67c798=_0x157f26(_0x67c798);if(!_0x67c798)return null;const _0x2307c8=[_0x24adab(0x248),_0x24adab(0x88a),_0x24adab(0x341),_0x24adab(0x44b),_0x24adab(0x2c0),_0x24adab(0x7ad)][_0x24adab(0x4bf)](_0x72bd74=>typeof _0x67c798[_0x72bd74]===_0x24adab(0x84a));return{'$id':_0x5dfa43(_0x67c798),'has':_0x2307c8};}const _0xcfab37=_0x24b0dc['get'](_0x28f548);if(_0xd9534e==='free')return _0x24b0dc[_0x24adab(0x610)](_0x28f548),null;if(!_0xcfab37)throw new Error(_0x24adab(0x233));const _0x2e760e=_0x4422db=>Float32Array[_0x24adab(0x875)](_0x4422db);let _0x325392;switch(_0xd9534e){case'put':_0x325392=_0xcfab37[_0x24adab(0x4a2)](_0x4c320e[0x0],_0x2e760e(_0x4c320e[0x1]));break;case _0x24adab(0x694):_0x325392=_0xcfab37[_0x24adab(0x694)](_0x4c320e);break;case _0x24adab(0x7d1):{_0x325392=typeof _0xcfab37[_0x24adab(0x7d1)]===_0x24adab(0x84a)?_0xcfab37[_0x24adab(0x7d1)]():[];if(_0x325392&&typeof _0x325392[_0x24adab(0x478)]===_0x24adab(0x84a))_0x325392=_0x157f26(_0x325392);return Array['from'](_0x325392??[],_0x4d13e0=>({'key':_0x4d13e0[_0x24adab(0x8cd)],'vector':Array[_0x24adab(0x875)](_0x4d13e0[_0x24adab(0x8e1)])}));}case _0x24adab(0x248):_0x325392=_0xcfab37[_0x24adab(0x248)](_0x4c320e[_0x24adab(0x849)][_0x24adab(0x59f)](_0xbdc84c=>({'key':_0xbdc84c[_0x24adab(0x8cd)],'vector':_0x2e760e(_0xbdc84c[_0x24adab(0x8e1)])})),_0x4c320e['removes']);break;case _0x24adab(0x88a):_0x325392=_0xcfab37[_0x24adab(0x88a)](_0x4c320e??undefined);if(_0x325392&&typeof _0x325392[_0x24adab(0x478)]===_0x24adab(0x84a))_0x325392=_0x157f26(_0x325392);return Array[_0x24adab(0x875)](_0x325392??[]);case'get':{_0x325392=_0xcfab37[_0x24adab(0x341)](_0x4c320e);if(_0x325392&&typeof _0x325392[_0x24adab(0x478)]===_0x24adab(0x84a))_0x325392=_0x157f26(_0x325392);return _0x325392==null?null:Array[_0x24adab(0x875)](_0x325392);}case _0x24adab(0x44b):return Number(_0xcfab37['count']());case _0x24adab(0x2c0):_0x325392=_0xcfab37['dropAll']();break;case'stats':return _0xcfab37[_0x24adab(0x7ad)]()??null;default:throw new Error('storage\x20adapter\x20has\x20no\x20method\x20'+_0xd9534e);}if(_0x325392&&typeof _0x325392[_0x24adab(0x478)]===_0x24adab(0x84a))_0x325392=_0x157f26(_0x325392);return _0x325392===undefined?null:_0x325392;}const _0x5d3b9f=new Map();function _0x1c5f47(_0x1e1053,_0x4f8740,_0x506db7,_0x5e5b43){const _0x411c8d=_0xf27e,_0xd9083a=_0x1e1053+'\x00'+_0x506db7+'\x00'+JSON[_0x411c8d(0x7af)](_0x5e5b43),_0x3d2a04=_0x5d3b9f[_0x411c8d(0x341)](_0xd9083a);if(_0x3d2a04){if(_0x3d2a04[_0x411c8d(0x613)]===_0x411c8d(0x528))throw _0x3d0e97();_0x5d3b9f[_0x411c8d(0x610)](_0xd9083a);if(_0x3d2a04['state']==='err')throw _0x3d2a04['value'];return _0x3d2a04[_0x411c8d(0x59b)];}const _0x27e8b6=_0x4f8740[_0x506db7](_0x5e5b43);if(!_0x27e8b6||typeof _0x27e8b6[_0x411c8d(0x478)]!=='function')return _0x27e8b6;const _0x139e13={'state':'pending','value':undefined};_0x27e8b6[_0x411c8d(0x478)](_0x336391=>{const _0x2291fe=_0x411c8d;_0x139e13[_0x2291fe(0x613)]='ok',_0x139e13['value']=_0x336391;if(_0x5d3b9f[_0x2291fe(0x341)](_0xd9083a)===_0x139e13)_0x38bed6(_0x4f8740);},_0x493a73=>{const _0x4b6a87=_0x411c8d;_0x139e13[_0x4b6a87(0x613)]='err',_0x139e13[_0x4b6a87(0x59b)]=_0x493a73;if(_0x5d3b9f[_0x4b6a87(0x341)](_0xd9083a)===_0x139e13)_0x38bed6(_0x4f8740);});for(let _0x152ab1=0x0;_0x152ab1<0x64&&_0x139e13[_0x411c8d(0x613)]===_0x411c8d(0x528);_0x152ab1++)process['_tickCallback']();if(_0x139e13['state']==='ok')return _0x139e13[_0x411c8d(0x59b)];if(_0x139e13[_0x411c8d(0x613)]===_0x411c8d(0x438))throw _0x139e13[_0x411c8d(0x59b)];_0x5d3b9f[_0x411c8d(0x8db)](_0xd9083a,_0x139e13);throw _0x3d0e97();}const _0x49a9ea=new Map(),_0x5c2256=0xa*0x3c*0x3e8;function _0x4ed6bd(_0xf3fdd,_0x457750,_0xb52d91){const _0x5da916=_0xf27e,_0x238009=Array['isArray'](_0xb52d91)?_0xb52d91:Array['from'](_0xb52d91??[]);let _0x11b83a=_0x49a9ea[_0x5da916(0x341)](_0xf3fdd);if(!_0x11b83a)_0x49a9ea[_0x5da916(0x8db)](_0xf3fdd,_0x11b83a=new Map());const _0x3bd0d5=Date[_0x5da916(0x274)]();for(const [_0x3e7e22,_0xc40f6]of _0x11b83a)if(_0xc40f6[_0x5da916(0x2ef)]['state']!==_0x5da916(0x528)&&_0x3bd0d5-_0xc40f6['req']['at']>_0x5c2256)_0x11b83a[_0x5da916(0x610)](_0x3e7e22);const _0x26f738=_0x238009[_0x5da916(0x59f)](_0x51e2c8=>JSON[_0x5da916(0x7af)](_0x51e2c8));let _0x4d627a=![];const _0x4e9b52=[],_0x379f56=new Set();for(let _0x4062d4=0x0;_0x4062d4<_0x26f738['length'];_0x4062d4++){const _0xcb76aa=_0x11b83a[_0x5da916(0x341)](_0x26f738[_0x4062d4]);if(!_0xcb76aa)!_0x379f56[_0x5da916(0x5ed)](_0x26f738[_0x4062d4])&&(_0x379f56[_0x5da916(0x737)](_0x26f738[_0x4062d4]),_0x4e9b52[_0x5da916(0x247)](_0x4062d4));else{if(_0xcb76aa['req'][_0x5da916(0x613)]===_0x5da916(0x528))_0x4d627a=!![];else{if(_0xcb76aa[_0x5da916(0x2ef)][_0x5da916(0x613)]===_0x5da916(0x438)){const _0x4a29e3=_0xcb76aa[_0x5da916(0x2ef)][_0x5da916(0x59b)];for(const [_0x3bef70,_0x5bf515]of _0x11b83a)if(_0x5bf515[_0x5da916(0x2ef)]===_0xcb76aa[_0x5da916(0x2ef)])_0x11b83a[_0x5da916(0x610)](_0x3bef70);throw _0x4a29e3;}}}}if(_0x4d627a)throw _0x3d0e97();if(_0x4e9b52[_0x5da916(0x7e0)]){const _0x403819=_0x4e9b52[_0x5da916(0x59f)](_0x4c6871=>_0x238009[_0x4c6871]),_0x4ef53b=_0x457750['embedBatch'](_0x403819),_0xe72994={'state':_0x5da916(0x528),'value':undefined,'at':0x0},_0x34f1f8=(_0x43aad1,_0x3d4a47)=>{const _0xa360da=_0x5da916;_0xe72994['state']=_0x43aad1,_0xe72994[_0xa360da(0x59b)]=_0x3d4a47,_0xe72994['at']=Date[_0xa360da(0x274)]();};if(!_0x4ef53b||typeof _0x4ef53b[_0x5da916(0x478)]!==_0x5da916(0x84a))_0x34f1f8('ok',_0x4ef53b);else{let _0x328fc9=!![];_0x4ef53b[_0x5da916(0x478)](_0x5bd7f0=>{_0x34f1f8('ok',_0x5bd7f0);if(!_0x328fc9)_0x38bed6(_0x457750);},_0x6ca12c=>{const _0x5e4b1d=_0x5da916;_0x34f1f8(_0x5e4b1d(0x438),_0x6ca12c);if(!_0x328fc9)_0x38bed6(_0x457750);});for(let _0x6a6451=0x0;_0x6a6451<0x64&&_0xe72994['state']===_0x5da916(0x528);_0x6a6451++)process['_tickCallback']();_0x328fc9=![];}for(let _0x3b1652=0x0;_0x3b1652<_0x4e9b52['length'];_0x3b1652++)_0x11b83a[_0x5da916(0x8db)](_0x26f738[_0x4e9b52[_0x3b1652]],{'req':_0xe72994,'index':_0x3b1652});if(_0xe72994[_0x5da916(0x613)]===_0x5da916(0x438)){for(const _0x310539 of _0x4e9b52)_0x11b83a[_0x5da916(0x610)](_0x26f738[_0x310539]);throw _0xe72994[_0x5da916(0x59b)];}if(_0xe72994['state']===_0x5da916(0x528))throw _0x3d0e97();}const _0x128962=_0x26f738[_0x5da916(0x59f)](_0x1101b9=>{const _0x5e94fa=_0x5da916,_0x1e7412=_0x11b83a[_0x5e94fa(0x341)](_0x1101b9),_0x3c1eec=_0x1e7412[_0x5e94fa(0x2ef)][_0x5e94fa(0x59b)];return _0x3c1eec?_0x3c1eec[_0x1e7412[_0x5e94fa(0x7a2)]]:undefined;});for(const _0x26ae2a of _0x26f738)_0x11b83a[_0x5da916(0x610)](_0x26ae2a);if(!_0x11b83a['size'])_0x49a9ea['delete'](_0xf3fdd);return _0x128962;}function _0x3d0e97(){const _0x4d2912=_0xf27e;return Object[_0x4d2912(0x7de)](new Error('embedder\x20request\x20still\x20pending'),{'code':_0x4d2912(0x78b)});}function _0x38bed6(_0x544ee0){const _0x1e503c=_0xf27e;_0xe67d5b();try{const _0x196733=_0x544ee0[_0x1e503c(0x572)]||_0x16e758;if(_0x196733&&_0x196733[_0x1e503c(0x588)])_0x196733[_0x1e503c(0x4e8)](_0x1e503c(0x4a6),null,'emit',['embeddings:embed:settled',{}],!![]);}catch{}}function _0x489504(_0x3c39d5,_0x4449fc,_0x56cf20){const _0x4b544c=_0xf27e,_0x122226=_0x24b0dc[_0x4b544c(0x341)](_0x3c39d5);if(!_0x122226||typeof _0x122226[_0x4449fc]!==_0x4b544c(0x84a))return{'__absent':!![]};let _0x3fbc08=_0x122226[_0x4449fc](...Array[_0x4b544c(0x239)](_0x56cf20)?_0x56cf20:[]);if(_0x3fbc08&&typeof _0x3fbc08[_0x4b544c(0x478)]===_0x4b544c(0x84a))_0x3fbc08=_0x157f26(_0x3fbc08);return{'value':_0x3fbc08===undefined?null:_0x3fbc08};}const _0x3ed846=new Map();let _0x3b64b8=0x1;const _0x46e50f=new Map(),_0x3298fc=new Map();function _0x116335(_0x9fa9c4,_0x270bcd=null){const _0x20c971=_0xf27e,_0x21fb72=_0x3b64b8++;_0x3ed846[_0x20c971(0x8db)](_0x21fb72,_0x9fa9c4);if(_0x270bcd)_0x3298fc[_0x20c971(0x8db)](_0x21fb72,_0x270bcd);return _0x21fb72;}function _0x509d21(_0x10e3f6){const _0x2587c0=_0xf27e;for(const [_0x3f9215,_0x4d0a3f]of _0x46e50f)if(_0x4d0a3f&&_0x4d0a3f[_0x2587c0(0x709)]===_0x10e3f6)_0x46e50f['delete'](_0x3f9215);for(const [_0xd55cb8,_0xd25f63]of _0x49b1ff)if(_0xd25f63===_0x10e3f6)_0x49b1ff[_0x2587c0(0x610)](_0xd55cb8);for(const [_0x19037a,_0xe2c90b]of _0x3298fc)_0xe2c90b===_0x10e3f6&&(_0x3298fc[_0x2587c0(0x610)](_0x19037a),_0x3ed846[_0x2587c0(0x610)](_0x19037a));if(_0x16e758===_0x10e3f6)_0x16e758=null;}function _0x1ec12a(_0x4ad682,_0x3e7cf2){const _0x4edb06=_0xf27e;_0x46e50f[_0x4edb06(0x8db)](_0x4ad682,_0x3e7cf2);}function _0x341f21(_0x412f2c){const _0x3524f7=_0xf27e;if(_0x412f2c&&typeof _0x412f2c===_0x3524f7(0x81a)&&Object[_0x3524f7(0x88a)](_0x412f2c)['length']===0x1&&_0x412f2c['$payload']!==undefined)return _0x3ed846[_0x3524f7(0x341)](_0x412f2c[_0x3524f7(0x464)]);return _0x412f2c;}function _0x157f26(_0x24f3a0){const _0x5f6ca4=_0xf27e;let _0x3b6fb8=![],_0x4666ec=![],_0x488840;_0x24f3a0['then'](_0x17820f=>{_0x3b6fb8=!![],_0x488840=_0x17820f;},_0x19179e=>{_0x3b6fb8=!![],_0x4666ec=!![],_0x488840=_0x19179e;});for(let _0x12bb79=0x0;_0x12bb79<0x2710&&!_0x3b6fb8;_0x12bb79++)process['_tickCallback']();if(!_0x3b6fb8)return _0x24f3a0[_0x5f6ca4(0x478)](undefined,_0x19bdd8=>{const _0x4fd649=_0x5f6ca4;try{process[_0x4fd649(0x876)]('okdb-node:\x20a\x20background\x20async\x20handler\x20rejected:\x20'+(_0x19bdd8&&_0x19bdd8[_0x4fd649(0x63a)]?_0x19bdd8['message']:_0x19bdd8));}catch{}}),undefined;if(_0x4666ec)throw _0x488840;return _0x488840;}function _0x4f1b71(_0x122c79,_0x5942fa,_0x3a5577){const _0xa90329=_0xf27e,_0x35f9e6=_0x2da295(_0x122c79),_0x51e70d=_0x46e50f[_0xa90329(0x341)](_0x5942fa);try{const _0x4a1c63=_0x35f9e6(_0x3a5577,{'okdb':_0x51e70d&&_0x51e70d[_0xa90329(0x709)],'env':_0x51e70d});if(_0x4a1c63&&typeof _0x4a1c63[_0xa90329(0x478)]===_0xa90329(0x84a))_0x157f26(_0x4a1c63);}catch(_0x2b3e40){if(_0x2b3e40&&_0x2b3e40[_0xa90329(0x51d)]===!![]&&_0x2b3e40['code']!==_0xa90329(0x6eb)){const _0x3548a0=new Error(_0x2b3e40['message']);_0x3548a0[_0xa90329(0x5c5)]=_0xa90329(0x6eb);throw _0x3548a0;}throw _0x2b3e40;}}const _0xba0b41=new Map();function _0x3658dc(_0x27e243,_0x202f4b,_0x498d8f,_0x48be0,_0x231fff,_0x135d14){const _0x56160d=_0xf27e,_0x20ef3d=_0x2da295(_0x27e243),_0x53e148=(_0x46e50f[_0x56160d(0x341)](_0x135d14)||{})[_0x56160d(0x709)]||_0x16e758,_0x19149f=new AbortController(),_0x3cd0e4=(_0x2f666e,..._0x410dbb)=>_0x53e148[_0x56160d(0x4e8)](_0x56160d(0x5d2),_0x56160d(0x88c),_0x2f666e,_0x410dbb,![]),_0x450fdc={'okdb':_0x53e148,'env':_0x46e50f[_0x56160d(0x341)](_0x135d14)||null,'job':_0x48be0,'jobId':_0x231fff,'signal':_0x19149f[_0x56160d(0x783)],'heartbeat':()=>_0x3cd0e4('ctxHeartbeat',_0x498d8f),'markProgress':_0x5a21a1=>_0x3cd0e4(_0x56160d(0x83c),_0x498d8f,_0x5a21a1),'log':(_0x107917,_0x25f4d7)=>_0x3cd0e4('ctxLog',_0x498d8f,_0x107917,_0x25f4d7)};_0xba0b41[_0x56160d(0x8db)](_0x498d8f,{'ctrl':_0x19149f,'call':_0x3cd0e4});const _0x5d7d08=()=>{const _0x3ec4c2=_0x56160d;_0xba0b41[_0x3ec4c2(0x610)](_0x498d8f);try{_0x3cd0e4(_0x3ec4c2(0x2eb),_0x498d8f);}catch{}};let _0x191156;try{_0x191156=_0x20ef3d(_0x202f4b,_0x450fdc);}catch(_0x5948aa){_0x5d7d08();throw _0x5948aa;}if(_0x191156&&typeof _0x191156[_0x56160d(0x478)]===_0x56160d(0x84a)){const _0x24adc2=_0x3de6ef(_0x191156);return _0x191156[_0x56160d(0x478)](_0x5d7d08,_0x5d7d08),{'$token':_0x24adc2};}return _0x5d7d08(),_0x191156;}function _0x91ec90(){const _0xa59363=_0xf27e;for(const [_0x215cce,_0x39e7a2]of _0xba0b41){if(_0x39e7a2[_0xa59363(0x731)][_0xa59363(0x783)]['aborted'])continue;let _0x18c4a8;try{_0x18c4a8=_0x39e7a2[_0xa59363(0x352)](_0xa59363(0x350),_0x215cce);}catch{continue;}if(_0x18c4a8&&_0x18c4a8[_0xa59363(0x7a4)]){const {OKDBError:_0x417b1c}=requireErrors();_0x39e7a2[_0xa59363(0x731)][_0xa59363(0x594)](new _0x417b1c(_0x18c4a8[_0xa59363(0x63a)],_0x18c4a8[_0xa59363(0x5c5)]));}}}let _0x16e758=null;function _0x2617ea(_0x4ed5c0){_0x16e758=_0x4ed5c0;}function _0x4f8d5e(_0x51d6ec,_0xd81546,_0x597e91,_0x2904b0,_0x6038de,_0x581020,_0x31d578){const _0x42eb4a=_0xf27e,_0x4d4bb5=_0x2da295(_0x51d6ec),_0x59fab6=_0x46e50f['get'](_0x597e91);try{const _0x38ec92=_0xd81546?_0x4d4bb5(_0x6038de,_0x581020):_0x4d4bb5({'env':_0x59fab6,'okdb':_0x59fab6&&_0x59fab6[_0x42eb4a(0x709)],'payload':_0x341f21(_0x2904b0)},_0x6038de,_0x581020);if(_0x38ec92&&typeof _0x38ec92[_0x42eb4a(0x478)]==='function'){if(_0x581020&&_0x581020[_0x42eb4a(0x51a)]===_0x42eb4a(0x1dc))_0x38ec92[_0x42eb4a(0x478)](undefined,()=>{});else{if(_0x31d578){const _0x48826a=_0x267334(_0x38ec92);if(_0x48826a===0x0)return null;return{'$token':_0x48826a};}else _0x157f26(_0x38ec92);}}}catch(_0x32e5fa){if(_0x32e5fa&&_0x32e5fa[_0x42eb4a(0x51d)]===!![]&&_0x32e5fa[_0x42eb4a(0x5c5)]!=='__HOLD__'){const _0x414aff=new Error(_0x32e5fa['message']);_0x414aff[_0x42eb4a(0x5c5)]='__HOLD__';throw _0x414aff;}throw _0x32e5fa;}return null;}function _0x267334(_0x11b6fc){const _0x5909e4=_0xf27e;let _0x552751=_0x5909e4(0x528),_0x4edd50;_0x11b6fc[_0x5909e4(0x478)](_0xee845=>{_0x552751='ok',_0x4edd50=_0xee845;},_0x12e8a9=>{const _0x17235=_0x5909e4;_0x552751=_0x17235(0x438),_0x4edd50=_0x12e8a9;});for(let _0x5cd2b7=0x0;_0x5cd2b7<0x64&&_0x552751===_0x5909e4(0x528);_0x5cd2b7++)process[_0x5909e4(0x422)]();if(_0x552751==='ok')return 0x0;const _0x10f13c=_0x177b2e++,_0x4c7920={'state':_0x552751,'value':_0x4edd50};_0x13407c[_0x5909e4(0x8db)](_0x10f13c,_0x4c7920);if(_0x552751==='pending')_0x11b6fc[_0x5909e4(0x478)](_0x204c6a=>{const _0x104109=_0x5909e4;_0x4c7920[_0x104109(0x613)]='ok',_0x4c7920['value']=_0x204c6a,_0xe67d5b();},_0x3c4161=>{const _0x542d10=_0x5909e4;_0x4c7920[_0x542d10(0x613)]=_0x542d10(0x438),_0x4c7920['value']=_0x3c4161,_0xe67d5b();});return _0x10f13c;}function _0x5a678c(_0x16d4bc){const _0x3ad730=_0xf27e;let _0xe1b627=_0xd35066[_0x3ad730(0x341)](_0x16d4bc);return _0xe1b627===undefined&&(_0xe1b627=_0x3e33cf++,_0xd35066[_0x3ad730(0x8db)](_0x16d4bc,_0xe1b627),_0x2549ab[_0x3ad730(0x8db)](_0xe1b627,{'fn':_0x16d4bc,'refs':0x0})),_0x2549ab[_0x3ad730(0x341)](_0xe1b627)['refs']++,_0xe1b627;}function _0x47d425(_0x3b426e){const _0x2c1a4b=_0xf27e,_0x17828a=_0x2549ab[_0x2c1a4b(0x341)](_0x3b426e);if(!_0x17828a)return;--_0x17828a[_0x2c1a4b(0x877)]<=0x0&&(_0x2549ab[_0x2c1a4b(0x610)](_0x3b426e),_0xd35066[_0x2c1a4b(0x610)](_0x17828a['fn']));}function _0x2da295(_0x310e5a){const _0x5ce0ea=_0xf27e,_0x54c9ea=_0x2549ab['get'](_0x310e5a);if(!_0x54c9ea)throw new Error(_0x5ce0ea(0x2c5)+_0x310e5a);return _0x54c9ea['fn'];}function _0x3de6ef(_0x13a3a0){const _0x1b6e9f=_0xf27e;if(_0x13a3a0&&typeof _0x13a3a0[_0x1b6e9f(0x478)]===_0x1b6e9f(0x84a)){const _0x35f622=_0x177b2e++,_0xb80701={'state':_0x1b6e9f(0x528),'value':undefined};return _0x13407c['set'](_0x35f622,_0xb80701),_0x13a3a0[_0x1b6e9f(0x478)](_0x2a63e9=>{_0xb80701['state']='ok',_0xb80701['value']=_0x2a63e9,_0xe67d5b();},_0x5d3b00=>{const _0x561849=_0x1b6e9f;_0xb80701[_0x561849(0x613)]=_0x561849(0x438),_0xb80701[_0x561849(0x59b)]=_0x5d3b00,_0xe67d5b();}),_0x35f622;}return 0x0;}let _0x8cc0fe=()=>{},_0xcbc2a8=null;function _0x28511f(_0x5e2ad2,_0x31db00=null){_0x8cc0fe=_0x5e2ad2,_0xcbc2a8=_0x31db00;}function _0x3bb775(_0x1fcb38){return _0xcbc2a8===_0x1fcb38;}function _0xe67d5b(){_0x8cc0fe();}function _0x1a40bb(_0x35d50d){const _0x1806d1=_0xf27e,_0x53fd9e=_0x13407c[_0x1806d1(0x341)](_0x35d50d);if(!_0x53fd9e)return{'state':_0x1806d1(0x438),'error':{'message':'unknown\x20promise\x20token'}};if(_0x53fd9e[_0x1806d1(0x613)]===_0x1806d1(0x528))return{'state':_0x1806d1(0x528)};_0x13407c[_0x1806d1(0x610)](_0x35d50d);if(_0x53fd9e['state']==='ok')return{'state':'ok','value':_0x53fd9e['value']};const _0x3c5565=_0x53fd9e[_0x1806d1(0x59b)];return{'state':'err','error':{'message':_0x3c5565&&_0x3c5565[_0x1806d1(0x63a)]!=null?String(_0x3c5565['message']):String(_0x3c5565),'stack':_0x3c5565&&_0x3c5565[_0x1806d1(0x30d)],'code':_0x3c5565&&_0x3c5565['code'],'status':_0x3c5565&&typeof _0x3c5565['status']===_0x1806d1(0x645)?_0x3c5565[_0x1806d1(0x602)]:undefined,'hold':!!(_0x3c5565&&_0x3c5565[_0x1806d1(0x51d)]===!![])}};}function _0x1dcacf(_0x10ff6b,_0x57a0aa){const _0x32bad6=_0xf27e;_0x936db8[_0x32bad6(0x8db)](_0x10ff6b,_0x57a0aa);}function _0x5c2140(_0x26f5a8){_0x936db8['delete'](_0x26f5a8);}let _0x1cc017=0x0;function _0x2a99aa(){return _0x1cc017>0x0;}function _0x4949b8(){const _0x5e435d=_0xf27e;_0x1cc017++;try{return _0x677914[_0x5e435d(0x24f)](undefined,arguments);}finally{_0x1cc017--;}}function _0x677914(_0x13f85a,_0x3aa0af,_0x203df5,_0x127303,_0x2d0344,_0x342b6e){const _0x42f87a=_0xf27e;switch(_0x13f85a){case _0x42f87a(0x521):return _0x5a678c(_0x3aa0af);case _0x42f87a(0x2d2):return _0x47d425(_0x3aa0af);case _0x42f87a(0x352):{const _0x539ce3=Array['prototype'][_0x42f87a(0x836)][_0x42f87a(0x352)](arguments,0x2),_0x3e3330=_0x2da295(_0x3aa0af)[_0x42f87a(0x24f)](undefined,_0x539ce3);return _0x3e3330&&typeof _0x3e3330[_0x42f87a(0x478)]===_0x42f87a(0x84a)?_0x157f26(_0x3e3330):_0x3e3330;}case _0x42f87a(0x668):{const _0x543f1d=Array[_0x42f87a(0x36e)][_0x42f87a(0x836)][_0x42f87a(0x352)](arguments,0x2),_0x5704c4=_0x2da295(_0x3aa0af)[_0x42f87a(0x24f)](undefined,_0x543f1d);if(_0x5704c4&&typeof _0x5704c4[_0x42f87a(0x478)]===_0x42f87a(0x84a))return{'$token':_0x3de6ef(_0x5704c4)};return{'$value':_0x5704c4===undefined?null:_0x5704c4,'$undef':_0x5704c4===undefined};}case _0x42f87a(0x859):{const _0x33239e=_0x936db8[_0x42f87a(0x341)](_0x3aa0af);if(_0x33239e)_0x33239e[_0x42f87a(0x40f)](_0x203df5,_0x127303);return undefined;}case _0x42f87a(0x5a7):{const _0x33cd02=_0x936db8[_0x42f87a(0x341)](_0x3aa0af);if(_0x33cd02)_0x33cd02[_0x42f87a(0x4f0)](_0x203df5);return undefined;}case'handler':return _0x4f8d5e(_0x3aa0af,_0x203df5,_0x127303,_0x2d0344,_0x342b6e,arguments[0x6],arguments[0x7]);case'quantum':return _0x4f1b71(_0x3aa0af,_0x203df5,_0x127303);case _0x42f87a(0x2bb):return _0x3658dc(_0x3aa0af,_0x203df5,_0x127303,_0x2d0344,_0x342b6e,arguments[0x6]);case _0x42f87a(0x552):return _0x25e845['apply'](null,Array[_0x42f87a(0x36e)][_0x42f87a(0x836)][_0x42f87a(0x352)](arguments,0x1));case'api':return _0x489504(_0x3aa0af,_0x203df5,_0x127303);case _0x42f87a(0x629):return _0x1a40bb(_0x3aa0af);case _0x42f87a(0x406):{const _0x3878b7=((async()=>{const _0x5a8799=_0x42f87a,_0x41401e=await globalThis[_0x5a8799(0x6b4)](_0x3aa0af);if(!_0x41401e['ok']){const _0x7c020a=new Error('HTTP\x20'+_0x41401e[_0x5a8799(0x602)]);_0x7c020a['code']='HTTP_ERROR';throw _0x7c020a;}return _0x41401e[_0x5a8799(0x308)]();})());return _0x157f26(_0x3878b7)??null;}case'emb':return _0x505261(_0x3aa0af,_0x203df5,_0x127303);case _0x42f87a(0x36f):return _0x4afaa9(_0x3aa0af,_0x203df5,_0x127303);case _0x42f87a(0x35b):return _0x185519(_0x3aa0af,_0x203df5,_0x127303);default:throw new Error(_0x42f87a(0x579)+_0x13f85a);}}return bridge_1={'inNativeCall':_0x2a99aa,'regObject':_0x5dfa43,'checkSignals':_0x91ec90,'setCurrentDb':_0x2617ea,'forgetDb':_0x509d21,'storePayload':_0x116335,'registerEnv':_0x1ec12a,'resolvePayload':_0x341f21,'bridge':_0x4949b8,'reg':_0x5a678c,'unreg':_0x47d425,'fnOf':_0x2da295,'track':_0x3de6ef,'resolve':_0x1a40bb,'registerTarget':_0x1dcacf,'unregisterTarget':_0x5c2140,'setKick':_0x28511f,'kickOwnedBy':_0x3bb775},bridge_1;}var writebatch,hasRequiredWritebatch;function requireWritebatch(){const _0x1d1010=_0x7b0c8f;if(hasRequiredWritebatch)return writebatch;hasRequiredWritebatch=0x1;const {reclass:_0x5e8f11}=requireErrors(),_0x381c93=requireBridge(),_0x231a11=new Map();let _0x5ce3d0=null;function _0x9779f9(_0x962d88){const _0x5df5c9=_0xf27e;if(_0x5ce3d0)return;_0x5ce3d0=_0x962d88,_0x962d88[_0x5df5c9(0x571)](_0x4e2d5a);}function _0x4e2d5a(){const _0x597624=_0xf27e,_0x2eb287=_0x5ce3d0[_0x597624(0x8f3)]();for(const _0x25ea21 of _0x2eb287){const _0x8f72b7=_0x231a11[_0x597624(0x341)](_0x25ea21);_0x8f72b7&&(_0x231a11[_0x597624(0x610)](_0x25ea21),_0x8f72b7());}}function _0x156d89(_0x585445,_0x2f281e){const _0x34fe20=_0xf27e;_0x231a11[_0x34fe20(0x8db)](_0x585445,_0x2f281e);}class _0x33e76f{constructor(_0xccf4e){const _0x5377f7=_0xf27e;this['db']=_0xccf4e,this['queue']=[],this[_0x5377f7(0x59c)]=![],this[_0x5377f7(0x302)]=![],this[_0x5377f7(0x89e)]=new Set();}[_0x1d1010(0x65d)](_0x5ce3d4,_0x2541f6,_0x2e2a80,_0x10eb1e){const _0x2ee06f=_0x1d1010;if(_0x381c93[_0x2ee06f(0x20f)]())try{return Promise[_0x2ee06f(0x629)](this['db'][_0x2ee06f(0x4e8)](_0x5ce3d4,_0x2541f6,_0x2e2a80,_0x10eb1e));}catch(_0x2930eb){return Promise[_0x2ee06f(0x314)](_0x2930eb);}const _0x56eb9d=new Promise((_0x47b1d5,_0x57f1c2)=>{const _0x3a20dd=_0x2ee06f;this[_0x3a20dd(0x5d2)][_0x3a20dd(0x247)]({'item':[_0x5ce3d4,_0x2541f6,_0x2e2a80,_0x10eb1e],'resolve':_0x47b1d5,'reject':_0x57f1c2});});this[_0x2ee06f(0x89e)][_0x2ee06f(0x737)](_0x56eb9d);const _0x538c85=()=>this['inflight'][_0x2ee06f(0x610)](_0x56eb9d);return _0x56eb9d[_0x2ee06f(0x478)](_0x538c85,_0x538c85),!this[_0x2ee06f(0x59c)]&&(this[_0x2ee06f(0x59c)]=!![],setImmediate(()=>{const _0x1c9b66=_0x2ee06f;this[_0x1c9b66(0x59c)]=![],this[_0x1c9b66(0x436)]();})),_0x56eb9d;}[_0x1d1010(0x436)](){const _0x27af93=_0x1d1010;if(!this['queue']['length'])return;if(this[_0x27af93(0x302)]){!this[_0x27af93(0x59c)]&&(this[_0x27af93(0x59c)]=!![],setImmediate(()=>{const _0xccbad5=_0x27af93;this[_0xccbad5(0x59c)]=![],this[_0xccbad5(0x436)]();}));return;}const _0xcd3f2c=this[_0x27af93(0x5d2)];this['queue']=[],this[_0x27af93(0x7bf)](_0xcd3f2c);}['_run'](_0x3d7a5c){const _0x3b0b16=_0x1d1010;let _0x54429e;this[_0x3b0b16(0x302)]=!![];try{_0x54429e=this['db'][_0x3b0b16(0x6ed)][_0x3b0b16(0x676)](_0x3d7a5c[_0x3b0b16(0x59f)](_0x180b44=>_0x180b44[_0x3b0b16(0x6e6)]));}catch(_0x285c3a){this[_0x3b0b16(0x302)]=![];if(_0x3d7a5c['length']>0x1){for(const _0x277217 of _0x3d7a5c)this[_0x3b0b16(0x7bf)]([_0x277217]);return;}const _0x1bd4df=_0x5e8f11(_0x285c3a);for(const _0x1d252b of _0x3d7a5c)_0x1d252b['reject'](_0x1bd4df);return;}finally{this['inBatch']=![];}try{this['db'][_0x3b0b16(0x5b0)][_0x3b0b16(0x84f)]();}catch{}const [_0x2a1509,_0x3f1ce5]=_0x54429e;_0x156d89(_0x3f1ce5,()=>{const _0x2a6889=_0x3b0b16;for(let _0x50cd7b=0x0;_0x50cd7b<_0x3d7a5c['length'];_0x50cd7b++){const _0x1414e3=_0x2a1509[_0x50cd7b];if(_0x1414e3&&_0x1414e3[0x0])_0x3d7a5c[_0x50cd7b][_0x2a6889(0x629)](_0x1414e3[0x1]);else _0x3d7a5c[_0x50cd7b][_0x2a6889(0x314)](_0x5e8f11(_0x1414e3?_0x1414e3[0x1]:new Error(_0x2a6889(0x370))));}});}async[_0x1d1010(0x62f)](){const _0x53d3a9=_0x1d1010;this[_0x53d3a9(0x436)]();while(this['inflight'][_0x53d3a9(0x625)]){await Promise['allSettled']([...this['inflight']]),this[_0x53d3a9(0x436)]();}let _0x263486;try{_0x263486=this['db']['_native']['flushTicket']();}catch{return;}await new Promise(_0x57a400=>_0x156d89(_0x263486,_0x57a400));}}return writebatch={'install':_0x9779f9,'WriteBatch':_0x33e76f,'whenSettled':_0x156d89},writebatch;}var pump,hasRequiredPump;function requirePump(){const _0x54f7e0=_0x7b0c8f;if(hasRequiredPump)return pump;hasRequiredPump=0x1;const _0x3311a3=Number(process.env.OKDB_NATIVE_IDLE_MS)||0xfa;class _0x3eb908{constructor(_0x3e93ff){const _0x17ab90=_0xf27e;this[_0x17ab90(0x3e4)]=_0x3e93ff,this[_0x17ab90(0x7e6)]=null,this['immediate']=null,this[_0x17ab90(0x6f8)]=![],this[_0x17ab90(0x1c2)]=![],this['pumping']=![],this[_0x17ab90(0x237)]=![],this[_0x17ab90(0x896)]=0x0,this[_0x17ab90(0x670)]=[],this[_0x17ab90(0x78a)]=[];}[_0x54f7e0(0x776)](_0x6437bd){return new Promise(_0x10d4f8=>{const _0x812940=_0xf27e,_0x4df6a8=setTimeout(_0x305e01,_0x6437bd);function _0x305e01(){clearTimeout(_0x4df6a8),_0x10d4f8();}this[_0x812940(0x78a)][_0x812940(0x247)](_0x305e01);});}['_settleWaiters'](){const _0x15a924=_0x54f7e0;if(this['turnWaiters']['length']===0x0)return;const _0x1bd8f6=this[_0x15a924(0x78a)];this[_0x15a924(0x78a)]=[];for(const _0x31729f of _0x1bd8f6)_0x31729f();}[_0x54f7e0(0x8a9)](){const _0x463e6b=_0x54f7e0;this[_0x463e6b(0x1c2)]=![],this['wake']();}[_0x54f7e0(0x61d)](){const _0x1a67a6=_0x54f7e0;this[_0x1a67a6(0x1c2)]=!![];if(this['timer'])clearTimeout(this['timer']);if(this[_0x1a67a6(0x8e5)])clearImmediate(this[_0x1a67a6(0x8e5)]);this['timer']=this['immediate']=null,this[_0x1a67a6(0x6fd)]();}[_0x54f7e0(0x84f)](){const _0x3b7f95=_0x54f7e0;if(this['stopped']||this[_0x3b7f95(0x8e5)])return;this[_0x3b7f95(0x7e6)]&&(clearTimeout(this[_0x3b7f95(0x7e6)]),this[_0x3b7f95(0x7e6)]=null),this[_0x3b7f95(0x8e5)]=setImmediate(()=>{const _0x5e8d94=_0x3b7f95;this[_0x5e8d94(0x8e5)]=null,this['turn']();});}[_0x54f7e0(0x456)](){const _0x4537d9=_0x54f7e0;if(this[_0x4537d9(0x1c2)]||this[_0x4537d9(0x696)]){this['dirty']=!![];return;}this[_0x4537d9(0x696)]=!![];let _0x4110fb;try{this[_0x4537d9(0x896)]++,_0x4110fb=this[_0x4537d9(0x3e4)][_0x4537d9(0x632)]();if(this['afterTurn'])this['afterTurn']();}catch(_0x453048){_0x4110fb=_0x3311a3,process[_0x4537d9(0x2fb)](()=>{throw _0x453048;});}finally{this[_0x4537d9(0x696)]=![],this['_settleWaiters']();}if(this[_0x4537d9(0x1c2)]||_0x4110fb===-0x2)return;if(this[_0x4537d9(0x237)])return this[_0x4537d9(0x237)]=![],this['wake']();const _0x23e6b9=_0x4110fb<0x0?_0x3311a3:Math[_0x4537d9(0x3d2)](0x0,Math[_0x4537d9(0x644)](_0x4110fb,_0x3311a3));if(_0x23e6b9<=0x0)return this[_0x4537d9(0x84f)]();this[_0x4537d9(0x7e6)]=setTimeout(()=>{const _0x409ea1=_0x4537d9;this['timer']=null,this[_0x409ea1(0x456)]();},Math[_0x4537d9(0x695)](_0x23e6b9));if(this['timer'][_0x4537d9(0x32d)])this[_0x4537d9(0x7e6)][_0x4537d9(0x32d)]();}}return pump={'Pumper':_0x3eb908},pump;}function _0x38ac(){const _0x4a9c6d=['processor','claim','_undoHooks','OKDBForeignKeyError',':\x20key\x20[','job_type.defaults.backoff_multiplier\x20must\x20be\x20number\x20>=\x201\x20or\x20null','_jsSchemas','refreshThresholdMs','runtimeDeclarations','info','$or','resumeJobType','TYPE_ALREADY_REGISTERED','resolvedOptions','_rbuf',':\x20unknown\x20option\x20\x27','__ttlCancelledGen','field\x20resolver\x20request\x20still\x20pending','system:drain','setDefaultTTL','_staticCall','replaceMember','pause','_resolveKeys','QUEUE_WORKER_REMOVED','_blobStream','object','importJSON','charCodeAt','remote','files','logChange','nativeCode','attach','\x22\x20must\x20be\x20a\x20plain\x20object','_markSeen','resolveField:\x20options.batchSize\x20must\x20be\x20a\x20positive\x20integer','OKDBProcessor','_writer','setLogger','exportJSON','Expected\x20catch\x20callback\x20to\x20be\x20a\x20function','getUniqueViolation','enable','ttlSetEntry','item:create','reencrypt','startAutoCompactCheck','_reconcilePeer','catalog','QUERY_OPERATOR_FORBIDDEN','createHash','_low','announceEnqueued','slice','__ref_index','_workers','_features','~proc:state','fetchRemoteDelta','ctxProgress','_macro','_meta','$not','SKIP','registerFts','forgetDb','_statusEnv','refreshTtlBatch','\x27\x20is\x20not\x20a\x20function','gen','READER_HELD_ACROSS_AWAIT','idempotency_key','puts','function','ttl:clear','next','(worst\x20','addInterest','wake','destroy','_localViews','released\x20at\x20the\x20first\x20await/turn\x20boundary.\x20Consume\x20ranges\x20before\x20any\x20await,\x20or\x20','Engine\x20template\x20must\x20be\x20a\x20plain\x20object','ExtendedIterable','createEnvironment','isNaN','getBlobStatus','_handlePending','event','detachFeed','_addr','deleted','_durableEmbedderInfo','maxBodyBytes','export','dropFts','registerQuantum:\x20name\x20must\x20be\x20a\x20non-empty\x20string','_admissionStarted','hasType','stderr','setFilter','setHostPlugins','\x22\x20not\x20ready\x20after\x20','BAD_HOST',':clockToChange','job_type.defaults.buckets\x20must\x20be\x20array|null','_envSyncStop','isOAuthEmailAllowed','_lock','_assertOpen','flushPoll','SCHEMA_COLLECTION_INVALID','trunc','embeddings:indexer:doc:queued','ttlStats','header','from','emitWarning','refs','sort','$mod','childTransaction','ITEM_UPDATE','endIndex','plugins','bootSyncedEngines','streamRead','createEngine','envs','group','_runRecord','indexer\x20engine\x20not\x20running:\x20\x22','_syncLock','useReadTransaction','fail','login','createReadStream','keys','error_stack','default','vector-search\x20engine\x20not\x20running:\x20\x22','OKDBVersionMismatchError','prefix','indexContent','tries','_searchWithScores','_wb','reason','nodeKey','turns','admission','pumpEnvSync','REBUILD_IN_PROGRESS','forceResync','indexOf','_blobsDir','bootstrapStartClock','inflight','byLabel','patchDeclaration','startClaimed','_stopAutoCompactCheck','batch','patchSelf','txn:rollback','_isExpired','setSchema','@harperdb/extended-iterable:skip','start','job_type.payload_schema.definition\x20must\x20be\x20object','_windowCbs','~ref_violations','feature','listening','lock','TXN_END','stopAll','throw','_wrap','blobsDir','setCursor','issueToken','\x27\x20on\x20type\x20\x27','clearScan','_enqueueInTxn','indexStats','processorsStart','registerHandler:\x20fn\x20must\x20be\x20a\x20function','asArray','job.backoff_multiplier\x20must\x20be\x20number\x20>=\x201','close','getChanges','links','sift','sha256','_onPoke','onDelete','ms\x20max=','replace','job.','reset','lastTxnId','job.cron\x20must\x20be\x20string|null','\x20===\x204)\x0a\x09\x09\x09\x09','key','sweepExpiredTTL','runGc','stateInfo','gc.','storageStats','~queue_buckets','_retryPending','evict','lookupByName','putSync','tick','label','__ttlByExpiry','set','job.buckets\x20must\x20be\x20array|null','queue:log','resetView','INVALID_SCHEMA','embed','vector','delta_limit','type:','maxExtra','immediate','emitProc','getSelfNode','files.registerExtractor:\x20extractor\x20must\x20be\x20a\x20function','isCoordinator',':emb:','shouldApplyChange','rebuildBegin','api','oauth','_writeBlob','workers','processor:\x20rebuild\x20must\x20be\x20a\x20function','planUpdateJob','settledTickets','_registerType','setPeersFn','bucketsDb','$type','\x27\x20does\x20not\x20exist\x20in\x20type\x20\x27','listAlgorithms','typeId','_isReader','listTTL','searchWithScores','_pendingOps','SEARCH','consumeLoginState','ENGINE_DRIVER_MISSING_START','docEntry','chunk\x20strategy\x20must\x20be\x20a\x20function','ttl','embedder\x20is\x20gone','_patch','processor:resumed','finished','catch','recordRun','_handleInProcess','job_type.defaults.priority\x20must\x20be\x20int\x20or\x20null','Storage\x20resolver\x20must\x20be\x20a\x20function','release','resolveField:\x20options.batch\x20must\x20be\x20a\x20function','migrate','heartbeat','records','exportToStream','TXN_ENV_MISMATCH','_ensureEnv','invalid\x20job.status:\x20','BAD_PARAM','updateBucket','_ensureTokensType','$ref','_keyFns','envPath','getViolation','hex','_isFar','noteListenAddr','compare','registerEnv','job.tags\x20must\x20be\x20array','_sync',':index','getNodeRecord','split','~log',')\x20+\x20readString(source)}','regObject','search','last','Cannot\x20openEnv(\x22','changes','-worker','Invalid\x20primary\x20key\x20type:\x20','embeddings:indexer:doc:failed','1398032pnQDUZ','durableStats','$options','pop','toBufferKey','NOT_FOUND','written','headers','meta','Environment\x20\x22','queue:removed','\x22\x20is\x20used\x20by:\x20','describeAllTypes','stopAutoCompactCheck','version','INDEX_PROGRESS','process()\x20entry\x20\x22','stopped','getIndexMeta','timerArmed','removeListener','listNodes','apiCall','position','_defaultEnvObj','note','readKey','join','spki','viewDb','hasEmbedderFactory','getMaxBodyBytes','STOPPING','msgpackr','getTypeCount','\x20=\x20source[position++]\x0a\x09\x09if\x20(','_setKey','time-machine:','Transaction\x20already\x20closed','_peerDb','unique:violation_resolved','lastError','flush','inline','runRecord','use','listTypes','_callMacro','_validateOidcAccessToken','__warned','sourceKey','_ackDb','pageSize','_viewCache','embedderCall','capacity','addrs','system:ready','_ringSize','Index\x20\x27','areIndexesReady','getRunningEngine','dropped','attachOKDB','_shouldApplyChange','INVALID_TYPE_NAME','_kbuf','_sweepOrphanLogs','compactLock','INDEX_NOT_REGISTERED','_afterDurable','exists','ALL_EVENTS','view\x20\x22','defineProperty','searchDocs','removeSync','$lte','INVALID_VALUE','unregisterTarget','_commitSessionMutation','_claimGated','authOpen','_timerHandle','_isOpenForIp','namespace','setJobTypeSchema','\x22\x20must\x20return\x20{\x20embed(input):\x20Promise<Float32Array>\x20}','license:removed','addJobType','NOT_IMPLEMENTED_NATIVE','Algorithm\x20factory\x20must\x20return\x20an\x20object\x20with\x20','duplicate\x20bucket:\x20','enabled','inNativeCall','T_INTEREST','standalone','getUniqueViolations','VERSION_MISMATCH','failed','boundary\x20(a\x20pinned\x20read\x20txn\x20blocks\x20LMDB\x20free-page\x20reuse).\x20Do\x20all\x20consistent\x20reads\x20','maxDbs','getStateAt','quantum','set_null','_db','~log_entry','tolerant','getBucket','definition','nidFor','useReadTransaction\x20read\x20view\x20expired:\x20the\x20snapshot\x20was\x20released\x20at\x20the\x20first\x20await/turn\x20','job_type.payload_schema.enforce\x20must\x20be\x20boolean','load','resumeAllAfterDrain','emit','OKDBNotFoundError','BAD_EMBEDDER_FACTORY','item:pending','sessionId','application/octet-stream','_settleRead','properties','_clearChunked','open','_desired','getSecurityNotices','durableMarkDelete','FIELD_RESOLVER_PENDING','_advanceHlcOnRecv','storage\x20adapter\x20is\x20gone','VECTOR_SEARCH_READY_TIMEOUT','Engine\x20driver\x20type\x20must\x20be\x20a\x20non-empty\x20string','\x27\x20conflicts\x20with\x20existing\x20OKDB\x20property','dirty','inspect','isArray','emitClearDone','listVectorStores','TypeError','~ttl:expiry',':txnRange','patchConfig','VIEW_BOOTSTRAP_CANCELLED','exportBuf','isActive','_normalizeOAuthAuthResult','embed-worker','describeIndex','created','push','write','shift','createdBy','HIGH_SENTINEL','ONLINE','vecRemove','mapError','apply','\x27:\x20','getSchema','body','queue:reconciled','durableClock','forceAfterMs','validateBlobIntegrity','repair','job.tries\x20must\x20be\x20non-negative\x20int','fetchPeer','\x22:\x20the\x20build\x20another\x20process\x20took\x20over\x20made\x20no\x20progress\x20for\x2010\x20min','_waitNative','backupRoot','Plugin\x20must\x20have\x20a\x20name','Type\x20\x27','queue:rescheduled','refItemsDbs','FTS_BUILD_CONTINUE','_quantum','payload_schema','name','interest','_quantumGate','bus:env_release','getJobType','register','Blob\x20missing\x20for\x20file:\x20','lastIndexOf','RELAY_FULL','notes','system:proc','__cmd','test','repairBlobRefs','mean','cursor','now','loaded','type:drop','validate','getInt32','_stateDb','durableMarkDone','updated','lookupByTokenHash','_openEnvLazy','\x22\x20build\x20by\x20another\x20process\x20ended\x20\x22','[log-sink]\x20','processor:ready','vector-search','for','TXN_INVALID_OPS','job.id\x20must\x20be\x20string','getStats','_getType','createPublicKey','unique','sseSend','encryptionKeys','algorithm\x20has\x20no\x20method\x20','encryption\x20key\x20function','__fts:','writerWatchdog','utf8Write','listProviders','invalid\x20job_type.status:\x20','error','defaults','stopWorkerAbort','schema','targetType','getFast',',\x20got\x20','FOREIGN_KEY_VIOLATION','flatMap','TYPE_NOT_REGISTERED','job.status_code\x20must\x20be\x20string|null','expiresAt','engineType','job_type.defaults.','_push','INDEXER_DOC_DONE','makeOkdb','$eq','boolean','new','Foreign\x20key\x20violation:\x20','proc','taken-over','callPacked','MAXIMUM_KEY','readTransaction','CHANGEFEED_QUANTUM','SYSTEM_POKE','off','geoConfig','Database\x20not\x20started','storeGetHead','_dedupeKey','_subsV2','okdb._openEnvLazy:\x20env\x20\x22','OKDBInvalidPrimaryKeyError','_readViewExpired','~queue_payloads','_put','import','isReader','job','acquired','once','detach','isSnapshotComplete','dropAll','asyncIterator','options','bucket','__logsDb','okdb-node:\x20unknown\x20callback\x20id\x20','countByIndex','index:progress','_ensureDesired','getIndexStatus','_buckets','async','\x27\x20doesn\x27t\x20exist','_gcTimer','INDEXER','getIndexCount','OKDBIndexAlreadyRegisteredError','max_concurrency','unreg','listBuckets','utf8','_detachConsole','priority','\x22\x20is\x20not\x20registered','reverse','target','updated_at','restart','_getRaw','processes','outgoing','refill_every','relay','read','_handlerName','filterSessionsForType','setToken','BAD_ALGORITHM_FACTORY','fts:','embeddings:indexer:doc:done','embedBatch','continueOnRecoverableError','_closeReadTransaction','ctxRelease','retry','nextExpiry','ensurePeerState','req','claim_expires','getBinary','unpin','getPosition()\x20{\x20return\x20position\x20},','processor:paused','actions','\x20returned\x20no\x20key','_detachLog','index:reset','LICENSE_FEATURE_DISABLED','INVALID_ARGUMENT','nextTick','clearTTL','_typesDb','_compactLock','setReadBuffer','locks','_listeners','inBatch','ref','registerIndex','loginSelect','http.listen:\x20host\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20a\x20non-empty\x20array\x20of\x20non-empty\x20strings','createSearch','json','docs','item:','writerStatus','undefined','stack','_formerOrigins','schema:drop','registerTarget','.\x20Add\x20a\x20license\x20that\x20includes\x20\x22','isWriter','MAX_SAFE_INTEGER','reject','_openAckDb','_pending','\x27\x20is\x20already\x20registered','hash','_setTTL','_syncExpiresAtField','doc','doesExist','listViolations','storeGetDiffs','runStart','_cmd','process(filter)','preview','normalizeOAuthAuthResult','ensure:\x20type\x20is\x20required','_stops','type','hasStopFn','inFlight','registerHandler','_okdbAdminAttached','each\x20process()\x20entry\x20requires\x20a\x20non-empty\x20`type`','951429OzDYPS','unref','removeJob',']\x20already\x20maps\x20to\x20\x27','SYSTEM_CLOCK_CHANGE','a\x20Buffer\x20or\x20readable\x20stream','kick','getMany','true','(?:','includeViolations','returnRecoverableErrors','job.buckets\x20entries\x20must\x20be\x20objects','symbol','registerReducer','reidentify','OKDBSchemaCollectionError','readerCheckIntervalMs','readString\x20}','details','__lock','get','constructor','closeSession','clearDefaultTTL','getEmbedderSchema','~processes:desired','setDeltaLimit','resetCursor','Buffer','viewOp','_startAutoCompactCheck','_changefeed','addEventListener','_flushTimer','byIndex','ctxSignal','tag\x20too\x20long','call','_awaitBuild','lastClock','_debounceTimer','node:crypto','getJobLogs','system:clock_change','ALREADY_EXISTS','removeResolver','stor','isFinite','job_type.defaults.ttl\x20must\x20be\x20int\x20>=\x200\x20or\x20null','isInteger','_callPacked','_locks','files\x20feature\x20not\x20available','_buf','field:resolver_registered','hasOwnProperty','Cannot\x20delete\x20','fts:reset','_viewState','_isClosedEnvError','connected','REMOVE','current','_subscribed','stateNames','prototype','alg','write\x20batch:\x20missing\x20result','flushed','_logEnv','updateJob','actionCount','drainJobType','_listenAddr','ensureFeed','update','isWellFormed','autoCompact','types','bootLogMark','clearTtl','dupSort','setMaxListeners','system:stopped','cause','_rootDb','Can\x20not\x20serialize\x20key\x20of\x20type\x20','resetUnknownOptionsWarned','resolveField:\x20a\x20resolver\x20or\x20options.batch\x20is\x20required','_viewRebuildChain','importFromStream','useVersions','describeIndexes','_assertFiles','Unknown\x20transaction\x20action:\x20','getTTL','__blobStatusDb','pipelines','envName','bumpVersion','createSession','~system','job.bucket\x20must\x20be\x20string|null','vec:','sessionsForKey','listFtsEnvs','\x22)\x20before\x20open()','NativeLock','backup','encoder','139991TCdoNJ','./native-loader.js','diag','onDone','job.buckets[].id\x20must\x20be\x20non-empty\x20string','VIEW_NOT_FOUND','_maxConnections','_readBuf','\x20does\x20not\x20exist','Schema\x20validation\x20failed\x20for\x20','captureStackTrace','shutdownTimeout','describeChunk','_autoCompact','itemsPlan','hasUniqueViolations','restrict','getDefinition','reconcileDesired','REVERSE_INDEX','exportName','raw','UNKNOWN_RANGE_OPTION','_onFeedChange','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.','_bootLog','_isWriter','view:progress','_defaultEnv','FTS_FLUSH_TIMEOUT','token','functions','module','__adminRelay','isFeatureEnabled','resetReadTxn','nodeKeys','_customReducers','-----BEGIN\x20PUBLIC\x20KEY-----\x0aMCowBQYDK2VwAyEAacrkExPrhxNVHyeQBLDwg8xfm1OwyxDAPNdGXABYS2s=\x0a-----END\x20PUBLIC\x20KEY-----','_rawTxnBuf','resumed','no\x20write\x20has\x20landed.\x20Writes/commit\x20are\x20unaffected.','process','subscriptions','max_tries','_doHooks','$lt','applyChange','UNIQUE_CONSTRAINT','mcp','~emb:models','newListener','$streamId','MINIMUM_KEY','log\x20entry\x20must\x20be\x20a\x20string\x20or\x20object','max','description','previewTemplate','log\x20entry\x20fields\x20must\x20be\x20object|null','bucket\x20\x22','setTtl','INDEX_ALREADY_REGISTERED','markSnapshotComplete','query','inclusiveEnd','changeToClockDb','chunks','resetIndex','_logChange','ringSize','must\x20be\x20an\x20object;\x20got\x20null','spec','_report','native','Engine\x20driver\x20already\x20registered:\x20\x22','disable','fromCharCode','__desired','Type\x20\x22','resetting','File\x20not\x20found:\x20','exports','OKDBUniqueConstraintError','\x27,\x20cannot\x20map\x20to\x20\x27','queue:clear-done','samplePayloads','STARTED','continueIteration','processors','~file:blob_status','describeAllTypesDetailed','doc_status:','job_type.defaults\x20must\x20be\x20object|null','markJobComplete','getStatus','pokeHandler','_timerObjs','args','index:registered','durableDoc','queue:retry','~files','bucket\x20id\x20required','end','tokens','return','\x22\x20tokens\x20too\x20large','fetchJson','.\x20Only\x20primitives,\x20null,\x20Buffers,\x20and\x20arrays\x20are\x20allowed.\x20Got:\x20','$gte','authorization','ensure:\x20fts\x20entry\x20missing\x20name\x20or\x20fields','ENGINE_INVALID_TEMPLATE','callRows:\x20unexpected\x20row\x20stride\x20','_feed','$size','_deliver','isBootstrap','runtimeState','clocks','bus:drain','_subsV2Obj','item:update','setPeerState','ensureTokensType','nativeBinaryPath','durableEngineDoc','removeInterest','_OPTION_HINTS','_modeApplied','_uid','handle','ms/','debug','KNOWN_OPTIONS','_tickCallback','cleanup','fromEntries','recommended','instance','_read','index:drop','dbs','action','embedder','__esModule','_makePipelineApi','subscribe','assertCreateAllowed','loadedPath','resetIndexBegin','_started','cursorKey','VIEW_BUILD_FAILED','processor:progress','commit','_isLoopbackIp','err','origin','drop','opts','_indexBuilds','storeEnv','handleError','_listPeers','setKeyBuffer','pid','isLoopbackIp','tierList','storeEnvName','job.error_stack\x20must\x20be\x20string|null','iterate','_baselines','level','readHashRange','pin','count','Engine\x20template\x20id\x20must\x20be\x20a\x20non-empty\x20string','job\x20type\x20must\x20be\x20object','PLUGIN_NAME_CONFLICT','cookies','_getOidcDiscovery','a\x2032-character\x20key\x20or\x20a\x20function\x20returning\x20one','engine:','PLUGIN_DEPENDENCY_MISSING','_envWide','gcOrphanedBlobs','turn','onDo','ITEM_PENDING','getDefaultTTL','subscriptions-store:\x20open()\x20not\x20called','db.processors.','compareKeys','storeGetDiffsInRange','socket','$nor','Missing\x20plugin:\x20','buildStep','worker','describeType','$payload','onWindow','_timer','\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer','bus','removeBucket','__tokenSecret','stream','vecPut','_attached','Index\x20\x22','\x22\x20on\x20\x22','_flushIntervalTimer','_nextExpiry','kind','\x22\x20tokens\x20must\x20be\x20>=\x201','inputSchema','listLinks','non-empty\x20string','_drain','then','targetKey','sync:apply','setProcessingConfig','loop-lag\x20','setCurrentDb','resetViewBegin','getCount','parseBearer','_startClaimedSoon','_range','enableNullTermination','compactBegin','writeKey','clone','unique:violation','listBlobStatus','markJobProgress','$and','clearDone','License\x20limit\x20exceeded:\x20','job_type.max_concurrency\x20must\x20be\x20int\x20>=\x201\x20or\x20null','resolveModelDims','resetFts','INVALID_STATE','fingerprint','_adminRelay','reconcilePeer','uninstallEngine','job.priority\x20must\x20be\x20int','_tools','resolveData','getRange','tags\x20must\x20be\x20array\x20or\x20string','\x20(required\x20by\x20','sseSetHeader','_info','buckets','getLegacyCursor','_nodePublicKey','usedBy','_writerWatchdogInterval','put','_warnUnknownOptions','embeddings','durableDocs','events','ITEM_CREATE','listRoutes','existing','setClaimGated','$pending','tryAcquire','exportBlobs','engine','getEngine','_handlePoke','_envs','_draining','digest','changeEncryptionKey','context','releaseClaim','~lock','WriteBatch','_seen','_cancelTTLTimeout',':\x20expected\x20','invalid\x20log\x20level:\x20','validateOidcAccessToken','OKDBNotImplementedNativeError','filter','OKDBInvalidIndexKeyError','callStatic','envNames','getLoginConfig','listModels','tag','hasBody','SUB_ENV','_subscribeEvent','getEntry','markJobFail','_buffer','before\x20any\x20await,\x20chunk\x20with\x20{limit,\x20start,\x20exclusiveStart},\x20or\x20drop\x20snapshot:true.','role','DOC_STATUS_CHANGE','initialize','_root',':data','Symbol.asyncIterator','vectorStoreStats','_ttlParseComposite','crypto','byteOffset','_durableEngineDoc','setAutoCompact','bootSyncedPipelines','authenticated','_emit','_startAdmission','find','_pressure','compiled','listIndexes','pendingResponses','registerViewReducer','_blobStatusDb','compactStorage','isOrchestrator','1759302vXeZou','autoCompactState','_call','failJob','before\x20any\x20await\x20—\x20or\x20opt\x20into\x20useReadTransaction:\x27tolerant\x27\x20to\x20keep\x20reading\x20while\x20','node:perf_hooks','recordPeerAck','~queue_jobs','\x20must\x20be\x20','processor:\x20specify\x20exactly\x20one\x20of\x20handler:\x27<name>\x27\x20or\x20module:{path,export},\x20not\x20both','_log','holder','Native','node','listRuns','createIndexer','\x22\x20must\x20have\x20a\x20start()\x20method','~engines','resolveField:\x20type\x20required','_jsFactories','hasNativeBatch','getKeys','msg','removeEnvironment','setModeApplied','txn-commit','_ensurePeerState','bucket.id\x20must\x20be\x20non-empty\x20string','resolveBackupDest','Embedder\x20factory\x20for\x20\x22','localViewStats','building','_allEnvsWithFiles','_refIndexDb','\x20log\x20entr','job_type.id\x20must\x20be\x20non-empty\x20string','listPeers','build','select','patch','ctxEmit','licenses','clear','_setTTLEntry','Engine\x20driver\x20for\x20\x22','\x20was\x20removed\x20in\x20okdb\x202.0.\x20Use\x20processors:true\x20for\x20plain\x20lease\x20participation.\x20See\x20docs/upgrade-2.0.md.','durableTierLag','status_message','removeTxn','iterable','__peers','assertStartAllowed','mode','index:','Server','processorHold','ENCRYPTION_KEY_REQUIRED','registerChunkStrategy','_wsettle','reg','concat','drainDeadlineMs','attachFeed','_reconcile','ENGINE_DRIVER_ALREADY_REGISTERED','flushTimeoutError','pending','registerTemplate','_ttlState','_ttlByExpiry','feed:','getResolvedOptions','syncBlobs','String\x20does\x20not\x20fit\x20in\x20target\x20buffer','~fts:envs','removeLink','createQueryTester','there\x20is\x20no\x20`http`\x20option\x20—\x20the\x20HTTP\x20server\x20exists\x20only\x20when\x20db.http.listen(port)\x20is\x20called','$in','items','_ensureDbs','forEach','~ttl:key','prevDb','unpack','2740346QhebBl','(?:/(.*))?','_cursors','Algorithm\x20factory\x20must\x20be\x20a\x20function','pinned','upsertLink','dir','connectionCount','some','(source)\x20=>\x20{','\x20of\x20env\x20\x22','STOPPED','tryClaimTokens','exportToFile','\x27\x20did\x20not\x20return\x20a\x20valid\x20instance','embeddings:doc:status_change','defaultTTL','_envIndexDb','isEnabled','setInt32','_tx','\x22\x20was\x20removed\x20while\x20it\x20was\x20being\x20built','failures','driver','cancelJob','queue:failed','OKDBForeignKeyDeleteError','_dedupeMax','setStorageResolver','getIndex','openEnv','_hybridQuery','_getNodeRecord','halted','T_SESSION','finish','okdb.http.listen(port)\x20in\x20each\x20worker.','_openLocalPeerDb','customReducerNames','isType','stopWorkerBegin','sparse','entries','includes','encryptionKey','~processes','encryption:key-changed','registerBucketProjection','_registrations','_resolveFilter','\x22\x20requires\x20a\x20`handler`\x20function','getByPrefix','\x20must\x20be\x20number','DONE','setFlushNotify','__okdb','warn','Embedder\x20factory\x20must\x20be\x20a\x20function','compaction','registerQuantum','.\x20Valid:\x20','18XARQbn','okdb-node:\x20unknown\x20bridge\x20op\x20','ref:violation','storeGetTotalHeadCount','storeEnvPath','_localViewApi','autoCompactTimerArmed','CREATED','getUint32','modeApplied','free','TXN_INVALID_ACTION','_flushDebounce','isWanted','getPrototypeOf','keyFor','_isOpen','FOREIGN_KEY_DELETE_RESTRICTED','MCP_ERROR','scopedName','claimGated','system:poke','system:type_drop','setMode','_onItem','env:removed','acquiredAt','dirname','abort','__sync:peer_state','findOwner','_durableIndexerDoc',';\x20got\x20','bucket_tokens','tags','value','scheduled','okdb_session','registerModule','map','_ttlByKey','refTrackingDbs','let\x20position;\x20let\x20readString\x20=\x20','_ts','exclusiveStart','dropType','_sub','log','remoteAddress','~queue_logs','effective',';return\x20{','_keyListener','family','startsWith','flushTicket','_pumper','\x27\x20export\x20\x27','RangeError','use\x20engines.registerDriver()','REF_VIOLATION','_blobStatusTxn','listRefViolations','created_at','txn\x20ops\x20must\x20be\x20an\x20array','files.upload:\x20stream','closeEnvLocally','ensureType','OKDB','INDEXER_DOC_FAILED','engineStop','_isBootstrap','config','__stateDb','getAuthOptions','typeStats','extend','code','processRest()','job.idempotency_key\x20must\x20be\x20string|null','INVALID_OPTIONS','bucket.tokens\x20must\x20be\x20int\x20>=\x200','STARTING','_facade','upload','reducers','retry_delay','_pdb','typeSubDbs','subarray','queue','uploadTxn','logCap','debounceTimer','CLI\x20(`okdb\x20listen`),\x20or\x20use\x20Node\x27s\x20built-in\x20`cluster`\x20module\x20and\x20call\x20','_stream','pauseJobType','isBuffer','_lookupByTokenHash','\x20already\x20exists','partially-ready','_busFacade','statusOpen','_txnIdAtSnapshot','isSetupMode','routes','install','randomUUID','durableRetryDoc','enqueueClaim','job.type\x20must\x20be\x20non-empty\x20string','rebuild','registerAlgorithmFactory','limit','$regex','authenticateRequest','job\x20id\x20required','has','registerIndexDeferred','441470nlcXtl',':keyToChange','reencrypt:\x20env','setBridge','_env','enforced','ENV_NOT_FOUND','quarantined','inactive','progressed','replaceInterests','job.finished\x20must\x20be\x20number|null','handlerName','_refCache','_running','values','storeHasDiff','_ensure','_blobPath','status','~sub','_http','rows','iterator','references','existsSync','.\x20Primary\x20keys\x20must\x20be\x20string\x20or\x20number.\x20Got:\x20','TXN_INVALID_OP','cascade','99570uDMVdZ','_key','\x20references\x20','fields','delete','auth','bus:proc','state','_settle','markJobHeartbeat','Array.from)\x20before\x20any\x20await.','servers','readFieldMany','hlc','clockToChangeDb','setPrototypeOf','a\x20string','stop','refill_amount','durableMarkFail','record','geoQuery','allocUnsafeSlow','pressure','OKDBTypeNotRegisteredError','size','processorsStop','takeCompactResult','materializer','resolve','head','admin','txnDone','createWorker','job.bucket_tokens\x20must\x20be\x20int\x20>=1','drain','handleResult','getVector','pump','77waEmwr','unresolveField','create','installed','job\x20must\x20be\x20object','_id','importBlobs','message','_scheduleTTLSweep','TXN_START','allSettled','_ttlTimerAt','_txnBuf','disableAll','cron','\x0a\x09\x09let\x20','_initialize','min','number','_lazyPinned','getMeta','_listening','readField','blobPath','VIEW_REBUILD_IN_PROGRESS','toMs','Too\x20many\x20concurrent\x20connections','removeJobType','_typeKeys','path','_role','type:registered','_ensureTypeEnv','registerPreparer','HIGH_FREQ_EVENTS','importFromFile','buildPending','_lockHandle','Plugin\x20\x27','setTTL','freeze','createEmbedder','enqueue','buffer','taken','_processorStops','ttlMs','removeJobTypeSchema','fts:drop','timestamp','engine\x20api\x20has\x20no\x20method\x20\x27','claim\x20requires\x20non-empty\x20type','getRun','callAsync','node:fs','clients','_ttlTimeout','kickOwnedBy','workerState','loop-lag','bridge','errors','bootSyncedViewsInline','_teardownNative',',\x20source)\x0a\x09\x09}\x20else\x20{\x0a\x09\x09\x09if\x20(','isSync','_hlc','callBatch','registerEmbedderFactory','__sync:acks','backoff_multiplier','env',':useReadTransaction','enforce','embeddings:strategy:registered','valuesForKey','ERROR','changeEncryptionKey:\x20to','whenSettled','processor:\x20module.path\x20is\x20required','session','queue:enqueued','stopping','_nm','TXN_CLOSED','ftsQuery','reconcilePeerPull','typesDb','_lookupAllByName','createAndStartEngine','job.retry_delay\x20must\x20be\x20int\x20>=\x200','openDB','byteLength','__notImplementedNative','_setPeerState','INVALID_PRIMARY_KEY','Blob\x20not\x20found:\x20','remove','ceil','pumping','resume','registerExtractor','toISOString','selfKey','onUndo','license:invalid','OKDBSchemaValidationError','_remove','_deliverEvent','license:added','Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results','process\x20options.admission\x20must\x20be\x20a\x20function','_durableWorkerStats','job_type.defaults.max_tries\x20must\x20be\x20int\x20>=\x201\x20or\x20null','log\x20entry\x20message\x20required','equal','Invalid\x20onDelete\x20rule\x20\x27','retryFailed','listIndexKeys','_ttlCompositeKey','_asArray','resolveField','addSSE','dropIndex','change','_connections','creating','Unable\x20to\x20serialize\x20object\x20as\x20a\x20key:\x20','isTypeEmpty','fetch','trim','removeEventListener','EMBEDDER','ms\x20mean=','createLoginState','library\x20(okdb\x20node-model\x202.0).\x20For\x20multi-process\x20HTTP\x20serving\x20use\x20the\x20okdb\x20','registerType','LICENSE_LIMIT_EXCEEDED','\x20>=\x200x80)\x20','_nodePrivateKey','Engine\x20template\x20build()\x20is\x20required:\x20','_closedHandle','runDrop','payload','_indexBuild',':index:','envsWithFiles','jsonrpcCode','claim_id','near','system','dataEnv','formerOrigins','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.','txnUndone','claimed','sections','pinned\x20range\x20iterator\x20held\x20across\x20an\x20await/turn\x20boundary.\x20This\x20surface\x20cannot\x20resume\x20','string','listen','maxMs','started','ensureDesired','ensure','Feature\x20not\x20licensed:\x20','child','range','item:remove','drivers','REF_VIOLATION_RESOLVED','(no\x20unambiguous\x20bookmark)\x20—\x20consume\x20it\x20in\x20one\x20synchronous\x20block:\x20materialize\x20(e.g.\x20','_tids','_systemEnv','fts','offWindow','paused','logCap\x20must\x20be\x20null\x20or\x20integer\x20in\x20[','guard','addBucket','item','compact/repair\x20already\x20in\x20progress\x20for\x20this\x20environment','\x20must\x20be\x20a\x20non-empty\x20string;\x20got\x20','primaryOkdb','dims','__HOLD__','INVALID_INDEX_KEY','_native','ready','dropSchema','getPeerState','Unique\x20constraint\x20violated\x20on\x20','endsWith','node:cluster','no_action','dup','validateRouteInput','_changeToClockDb','running','_autoCompactTimer','SYSTEM_STOPPED','Query\x20operator\x20\x22','encryption\x20key\x20function\x20failed:\x20','_settleWaiters','_dupArg','getEmbedderFactory','host','resolvedFields','\x27\x20does\x20not\x20exist','indexReady','getFloat64','setMaxBodyBytes','Use\x20module:{path,export}\x20alone,\x20or\x20handler:\x27<name>\x27\x20for\x20a\x20built-in.','.\x20The\x20active\x20license\x20does\x20not\x20enable\x20\x22','_stopFor','okdb','OKDBTypeAlreadyRegisteredError','listTemplates','explainIndex','/?$','parse','killWorker','$near','itemsDb','uninstalled','job.tag\x20must\x20be\x20string|null','embeddings:pipeline:ready','txn','peers','send','\x20dropped\x20(buffer\x20full)','killAll','startNewEnginesFromSync','wait','hook','_sinks','run','handleDurableClock','8WGdcqD','_clockToChangeDb','setKick','Key\x20is\x20too\x20large','indexer','itemsGroups','getCursor','durableCursorFloor','OKDBError','_noChangelog','privateKey','timeMachine','~fts:','clearFailed','hasIndex','listJobTypes','applyOps','ctrl','offset','timeoutMs','ttlTimer','4QYeptI','grouped','add','_rebuild','_readerCheckInterval','log\x20entry\x20fields\x20too\x20large\x20(>2KB\x20serialized)','_release','preparer\x20must\x20be\x20a\x20function','lmdb','setUint32','bind','ms\x20p99=','getHistory','dataView','_license','runPoll','FTS_READY_TIMEOUT','ITEM_REMOVE','retryJob','toLowerCase','views','ttl:expired','spawn','_emitProc','params','_clearTTL','hasEnv','OKDBIndexHasConsumersError','_settled','\x20which\x20does\x20not\x20exist','busState','total','formerIds','isHeld','_update','getJob','vector\x20search\x20\x22','getRefViolation','\x20ms','_onStop','done_ttl','resolveField:\x20resolver\x20must\x20be\x20a\x20function','reconcile','groupsDb','_sweepInProgress','bucket.updated\x20must\x20be\x20number','regInfo','rollback','listRecords','_inlineClosureWarned','syncLock','useReadTransaction\x20range\x20consumed\x20after\x20the\x20creation\x20turn\x20—\x20the\x20consistent\x20view\x20was\x20','signalWant','sweepExpired','view','exportEnvsBuf','bucket.refill_every\x20must\x20be\x20int\x20>=\x200','processor:\x20cannot\x20combine\x20a\x20closure\x20handler\x20with\x20module:{path,export}.\x20','_oauthConfig','refreshReadTxn','$gt','rowKey','Cannot\x20register\x20plugins\x20after\x20start','toFixed','prefetch','nextTurn','system:env-sync','\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.','address','__ttlByKey','bulkRemoveChunk','OKDBIndexNotRegisteredError','_begin','return\x20fromCharCode(','uninstall','exportEnvsToStream','pipelineFamily','sourceType','signal','clearStuck','_makeIterator','txnId','_keepAlive','getClock','http','turnWaiters','EMBED_PENDING','unregisterExtractor','getValues','der','online','sseClose','enqueue\x20txn\x20belongs\x20to\x20a\x20different\x20environment','orchestratorStarted','_buildOwnRow','listPath','processorsParticipating','status_code','\x22\x20not\x20found','registerModel','ENGINE_INVALID_DRIVER','writeBlob','job.max_tries\x20must\x20be\x20int\x20>=\x201,\x20null\x20(unlimited)\x20or\x20Infinity','awaitIdle','match','_ack','_closed','_handles','done','index','limitOf','aborted','percentile','importBuf','list','pauseAllAndDrain','fieldPath','ensureTypeEnv','okdb-','engines','stats','_write','stringify','Referenced\x20type\x20\x27','transaction','_scheduleFlush','_reconcileDesired','isWorker','http.listen({workers/makeOkdb/primaryOkdb})\x20is\x20no\x20longer\x20supported\x20in\x20the\x20','createWriteFacade','handler','job.claim_expires\x20must\x20be\x20number|null','stopView','_enableChangelog','_plugins','resetIndexFinish','processor:error','empty\x20array','_run','_admissionTimer','enableAll','localViewNames','BAD_PLUGIN','_path','getPeerAcks','checkSignals','createPipeline','reduce','Map','storeGetHeadCount','queue:done','$where','setNative','setClaiming','registerDriver','maxConnections','getAll','hasChangelog','_callRows','port','toJSON','_pendingLocal','OKDBAlreadyExistsError','bootSyncedViews','_onPending','_assertRangeOptions','bus:type_drop','$all','engineUninstall','assign','fromBufferKey','length','_np','snapshot','_settleWrite','$nin','TXN_ROLLBACK','timer','committed','a\x20non-empty\x20string','\x22\x20is\x20not\x20allowed\x20(it\x20evaluates\x20code);\x20use\x20declarative\x20operators\x20instead','_build','license:activated','onLicenseExpired','compact','features','tools','retryable','data','getGcHorizon','~processes:cmd','authenticateToken','_clockListener','clearSync','ttl:set','\x20=\x20source[position++]\x0a\x09\x09\x09else\x0a\x09\x09\x09\x09return\x20fromCharCode(','applyInterestDelta','embeddings:indexer:ready','callRows','getOpenWarning','sync','PLUGIN_ALREADY_REGISTERED','processor:\x20module\x20\x27'];_0x38ac=function(){return _0x4a9c6d;};return _0x38ac();}var dist$1={},hasRequiredDist$1;function requireDist$1(){const _0x18262c=_0x7b0c8f;if(hasRequiredDist$1)return dist$1;hasRequiredDist$1=0x1;const _0x4d42cc=Symbol[_0x18262c(0x282)]('@harperdb/extended-iterable:skip'),_0x3b2111={'value':null,'done':!![]},_0x1b460b={'value':null,'done':!![]};!Symbol[_0x18262c(0x2c1)]&&(Symbol[_0x18262c(0x2c1)]=Symbol['for'](_0x18262c(0x4d2)));const _0x3a75ed={};class _0x1bbd51{constructor(_0x30a070){const _0xb34ad7=_0x18262c;_0x30a070&&(this[_0xb34ad7(0x446)]=_0x30a070[Symbol[_0xb34ad7(0x606)]][_0xb34ad7(0x73f)](_0x30a070));}[_0x18262c(0x59f)](_0x554bd3){const _0x1a0e92=_0x18262c;let _0x595e9c=this,_0x5aad8f=new _0x1bbd51();return _0x5aad8f[_0x1a0e92(0x446)]=(_0x2a8f19=_0x3a75ed)=>{const _0x447e70=_0x1a0e92,{async:_0x4bbf23}=_0x2a8f19;let _0x53d10a=_0x595e9c[_0x4bbf23?Symbol['asyncIterator']:Symbol[_0x447e70(0x606)]](_0x2a8f19);if(!_0x4bbf23)_0x595e9c[_0x447e70(0x674)]=!![];let _0x314064=-0x1;return{'next'(_0x1293e2){const _0x256aa0=_0x447e70;let _0x395de4;do{let _0x15146d;try{if(_0x1293e2)_0x15146d=_0x1293e2,_0x1293e2=null;else{_0x314064++,_0x15146d=_0x53d10a[_0x256aa0(0x84c)]();if(_0x15146d['then'])return!_0x4bbf23&&this[_0x256aa0(0x8b2)](new Error('Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results')),_0x15146d[_0x256aa0(0x478)](_0x59008e=>this['next'](_0x59008e),_0x2d8304=>{const _0xe1c810=_0x256aa0;return this[_0xe1c810(0x8b2)](_0x2d8304);});}if(_0x15146d[_0x256aa0(0x7a1)]===!![]){this[_0x256aa0(0x7a1)]=!![];if(_0x5aad8f[_0x256aa0(0x39e)])_0x5aad8f[_0x256aa0(0x39e)]();return _0x15146d;}try{_0x395de4=_0x554bd3[_0x256aa0(0x352)](_0x595e9c,_0x15146d[_0x256aa0(0x59b)],_0x314064);if(_0x395de4&&_0x395de4[_0x256aa0(0x478)]&&_0x4bbf23)return _0x395de4[_0x256aa0(0x478)](_0x422171=>_0x422171===_0x4d42cc?this['next']():{'value':_0x422171},_0x3ea849=>{const _0x6c3042=_0x256aa0;if(_0x2a8f19[_0x6c3042(0x2e9)])_0x3ea849[_0x6c3042(0x3f2)]=!![];return this[_0x6c3042(0x8b2)](_0x3ea849);});}catch(_0x1bce95){if(_0x2a8f19['continueOnRecoverableError'])_0x1bce95['continueIteration']=!![];throw _0x1bce95;}}catch(_0x3e0241){if(_0x5aad8f[_0x256aa0(0x43e)])try{_0x395de4=_0x5aad8f['handleError'](_0x3e0241,_0x314064);}catch(_0x5c1798){return this[_0x256aa0(0x8b2)](_0x5c1798);}else return this[_0x256aa0(0x8b2)](_0x3e0241);}}while(_0x395de4===_0x4d42cc);if(_0x395de4===_0x3b2111)return this['return']();return{'value':_0x395de4};},'return'(_0x47658c){const _0x5cc2e3=_0x447e70;if(!this['done']){_0x1b460b[_0x5cc2e3(0x59b)]=_0x47658c,this[_0x5cc2e3(0x7a1)]=!![];if(_0x5aad8f['onDone'])_0x5aad8f[_0x5cc2e3(0x39e)]();_0x53d10a['return']?.();}return _0x1b460b;},'throw'(_0x8267a){const _0x1c6bec=_0x447e70;if(_0x8267a[_0x1c6bec(0x3f2)]){if(_0x5aad8f['returnRecoverableErrors'])try{return{'value':_0x5aad8f[_0x1c6bec(0x337)](_0x8267a)};}catch(_0x46aae4){this[_0x1c6bec(0x404)]();throw _0x46aae4;}if(_0x2a8f19[_0x1c6bec(0x2e9)])throw _0x8267a;}this[_0x1c6bec(0x404)]();throw _0x8267a;}};},_0x5aad8f;}[Symbol[_0x18262c(0x2c1)]](_0x49fc8c){const _0x5a30e5=_0x18262c;if(_0x49fc8c)_0x49fc8c={..._0x49fc8c,'async':!![]};else _0x49fc8c={'async':!![]};return this[_0x5a30e5(0x606)]=this[_0x5a30e5(0x446)](_0x49fc8c);}[Symbol[_0x18262c(0x606)]](_0x4ba9b4){const _0x30f79f=_0x18262c;return this[_0x30f79f(0x606)]=this[_0x30f79f(0x446)](_0x4ba9b4);}[_0x18262c(0x4bf)](_0x16ae11){const _0x56ddd6=_0x18262c;let _0x2b0b54=this[_0x56ddd6(0x59f)](_0x5a2489=>{const _0xdc8efb=_0x56ddd6;let _0x95d72a=_0x16ae11(_0x5a2489);if(_0x95d72a?.[_0xdc8efb(0x478)])return _0x95d72a[_0xdc8efb(0x478)](_0x31510b=>_0x31510b?_0x5a2489:_0x4d42cc);else return _0x95d72a?_0x5a2489:_0x4d42cc;}),_0x47b362=_0x2b0b54['iterate'];return _0x2b0b54[_0x56ddd6(0x446)]=(_0x3e0db3=_0x3a75ed)=>{const _0x53ad04=_0x56ddd6;if(_0x3e0db3[_0x53ad04(0x2e9)])_0x3e0db3={..._0x3e0db3,'continueOnRecoverableError':![]};return _0x47b362(_0x3e0db3);},_0x2b0b54;}[_0x18262c(0x537)](_0x38c120){const _0x91e764=_0x18262c;let _0x841822=this[_0x91e764(0x606)]=this[_0x91e764(0x446)](),_0x46ba8c;while((_0x46ba8c=_0x841822[_0x91e764(0x84c)]())['done']!==!![]){_0x38c120(_0x46ba8c[_0x91e764(0x59b)]);}}[_0x18262c(0x522)](_0x11cbc1){const _0x1838a5=_0x18262c;let _0x1b94aa=new _0x1bbd51();return _0x1b94aa[_0x1838a5(0x446)]=(_0x336307=_0x3a75ed)=>{const _0xaaec68=_0x1838a5;let _0x23c9c5=this[_0xaaec68(0x606)]=this['iterate'](_0x336307),_0x417664=!![];function _0x339ba1(_0x58f1ae){const _0x291f2b=_0xaaec68;if(_0x417664)try{_0x417664=![],_0x23c9c5=_0x11cbc1[_0x336307['async']?Symbol[_0x291f2b(0x2c1)]:Symbol['iterator']](),_0x58f1ae=_0x23c9c5['next']();if(_0x1b94aa[_0x291f2b(0x39e)]){if(_0x58f1ae[_0x291f2b(0x478)]){if(!_0x336307['async'])throw new Error(_0x291f2b(0x6a1));_0x58f1ae[_0x291f2b(0x478)](_0x2a227c=>{const _0x13c2ba=_0x291f2b;if(_0x2a227c[_0x13c2ba(0x7a1)]())_0x1b94aa[_0x13c2ba(0x39e)]();},_0x5ea5cd=>{const _0xdbd449=_0x291f2b;this[_0xdbd449(0x404)]();throw _0x5ea5cd;});}else{if(_0x58f1ae[_0x291f2b(0x7a1)])_0x1b94aa[_0x291f2b(0x39e)]();}}}catch(_0x226922){this['throw'](_0x226922);}else{if(_0x1b94aa[_0x291f2b(0x39e)])_0x1b94aa[_0x291f2b(0x39e)]();}return _0x58f1ae;}return{'next'(){const _0x4b9a7c=_0xaaec68;try{let _0x3896d6=_0x23c9c5[_0x4b9a7c(0x84c)]();if(_0x3896d6[_0x4b9a7c(0x478)]){if(!_0x336307['async'])throw new Error(_0x4b9a7c(0x6a1));return _0x3896d6[_0x4b9a7c(0x478)](_0x33c577=>{const _0x217c56=_0x4b9a7c;if(_0x33c577[_0x217c56(0x7a1)])return _0x339ba1(_0x33c577);return _0x33c577;});}if(_0x3896d6[_0x4b9a7c(0x7a1)])return _0x339ba1(_0x3896d6);return _0x3896d6;}catch(_0x23bb2d){this[_0x4b9a7c(0x8b2)](_0x23bb2d);}},'return'(_0x1e1135){const _0x400b61=_0xaaec68;if(!this[_0x400b61(0x7a1)]){_0x1b460b[_0x400b61(0x59b)]=_0x1e1135,this[_0x400b61(0x7a1)]=!![];if(_0x1b94aa[_0x400b61(0x39e)])_0x1b94aa[_0x400b61(0x39e)]();_0x23c9c5[_0x400b61(0x404)]();}return _0x1b460b;},'throw'(_0x788706){const _0x4ea9c1=_0xaaec68;if(_0x336307[_0x4ea9c1(0x2e9)])throw _0x788706;this[_0x4ea9c1(0x404)]();throw _0x788706;}};},_0x1b94aa;}[_0x18262c(0x29a)](_0x46678a){const _0x3128bf=_0x18262c;let _0x218291=new _0x1bbd51();return _0x218291[_0x3128bf(0x446)]=(_0x55bc93=_0x3a75ed)=>{const _0x169e02=_0x3128bf;let _0x174521=this[_0x169e02(0x606)]=this[_0x169e02(0x446)](_0x55bc93),_0x484a04;return{'next'(_0x58cabe){const _0x128baf=_0x169e02;try{do{if(_0x484a04){let _0x5c10dc;if(_0x58cabe)_0x5c10dc=_0x58cabe,_0x58cabe=undefined;else _0x5c10dc=_0x484a04[_0x128baf(0x84c)]();if(_0x5c10dc[_0x128baf(0x478)]){if(!_0x55bc93[_0x128baf(0x2cb)])throw new Error(_0x128baf(0x6a1));return _0x5c10dc[_0x128baf(0x478)](_0x2ed552=>this[_0x128baf(0x84c)](_0x2ed552));}if(!_0x5c10dc[_0x128baf(0x7a1)])return _0x5c10dc;}let _0x1df9c2;if(_0x58cabe!=undefined)_0x1df9c2=_0x58cabe,_0x58cabe=undefined;else _0x1df9c2=_0x174521[_0x128baf(0x84c)]();if(_0x1df9c2[_0x128baf(0x478)]){if(!_0x55bc93[_0x128baf(0x2cb)])throw new Error(_0x128baf(0x6a1));return _0x484a04=undefined,_0x1df9c2[_0x128baf(0x478)](_0x494c8c=>this['next'](_0x494c8c));}if(_0x1df9c2[_0x128baf(0x7a1)]){if(_0x218291[_0x128baf(0x39e)])_0x218291[_0x128baf(0x39e)]();return _0x1df9c2;}try{let _0x504f6b=_0x46678a(_0x1df9c2[_0x128baf(0x59b)]);if(_0x504f6b?.['then']){if(!_0x55bc93[_0x128baf(0x2cb)])throw new Error(_0x128baf(0x6a1));return _0x504f6b['then'](_0x3c9869=>{const _0x56a5c3=_0x128baf;return Array[_0x56a5c3(0x239)](_0x3c9869)||_0x3c9869 instanceof _0x1bbd51?(_0x484a04=_0x3c9869[Symbol[_0x56a5c3(0x606)]](),this[_0x56a5c3(0x84c)]()):(_0x484a04=null,{'value':_0x3c9869});},_0x50e134=>{const _0x4038d0=_0x128baf;if(_0x55bc93[_0x4038d0(0x2e9)])_0x50e134[_0x4038d0(0x3f2)]=!![];this[_0x4038d0(0x8b2)](_0x50e134);});}if(Array[_0x128baf(0x239)](_0x504f6b)||_0x504f6b instanceof _0x1bbd51)_0x484a04=_0x504f6b[Symbol[_0x128baf(0x606)]]();else return _0x484a04=null,{'value':_0x504f6b};}catch(_0x1dad84){if(_0x55bc93[_0x128baf(0x2e9)])_0x1dad84['continueIteration']=!![];throw _0x1dad84;}}while(!![]);}catch(_0x5f0e94){this[_0x128baf(0x8b2)](_0x5f0e94);}},'return'(){const _0x593dd9=_0x169e02;if(_0x218291[_0x593dd9(0x39e)])_0x218291[_0x593dd9(0x39e)]();if(_0x484a04)_0x484a04[_0x593dd9(0x404)]();return _0x174521[_0x593dd9(0x404)]();},'throw'(_0x16871b){const _0x1801c1=_0x169e02;if(_0x55bc93[_0x1801c1(0x2e9)])throw _0x16871b;if(_0x218291[_0x1801c1(0x39e)])_0x218291[_0x1801c1(0x39e)]();if(_0x484a04)_0x484a04[_0x1801c1(0x404)]();this['return']();throw _0x16871b;}};},_0x218291;}['slice'](_0x48e1c6,_0x4097e5){const _0x54cb81=_0x18262c;let _0x314ed6=this[_0x54cb81(0x59f)]((_0x56c47e,_0x31e45f)=>{const _0x3ec235=_0x54cb81;if(_0x31e45f<_0x48e1c6)return _0x4d42cc;if(_0x31e45f>=_0x4097e5)return _0x3b2111[_0x3ec235(0x59b)]=_0x56c47e,_0x3b2111;return _0x56c47e;});return _0x314ed6[_0x54cb81(0x43e)]=(_0x26bbfc,_0x212bea)=>{if(_0x212bea<_0x48e1c6)return _0x4d42cc;if(_0x212bea>=_0x4097e5)return _0x3b2111;throw _0x26bbfc;},_0x314ed6;}[_0x18262c(0x24e)](_0x30ef2c){const _0x1d81ab=_0x18262c;if(typeof _0x30ef2c!==_0x1d81ab(0x84a))throw new TypeError(_0x1d81ab(0x829));let _0x29e257=this[_0x1d81ab(0x59f)](_0x57d2f3=>{return _0x57d2f3;}),_0x3522b5=_0x29e257[_0x1d81ab(0x446)];return _0x29e257[_0x1d81ab(0x446)]=(_0x3cf224=_0x3a75ed)=>{return _0x3522b5({..._0x3cf224,'continueOnRecoverableError':!![]});},_0x29e257['returnRecoverableErrors']=_0x30ef2c,_0x29e257;}[_0x18262c(0x84c)](){const _0x1cb5d1=_0x18262c;if(!this[_0x1cb5d1(0x606)])this[_0x1cb5d1(0x606)]=this['iterate']();return this[_0x1cb5d1(0x606)][_0x1cb5d1(0x84c)]();}[_0x18262c(0x7d5)](){const _0x1805a2=_0x18262c;if(this[_0x1805a2(0x8bd)]&&this[_0x1805a2(0x8bd)]['forEach'])return this[_0x1805a2(0x8bd)];const _0x345d22=new Error('Can\x20not\x20serialize\x20async\x20iterables\x20without\x20first\x20calling\x20resolving\x20asArray');_0x345d22['resolution']=this['asArray'];throw _0x345d22;}get[_0x18262c(0x8bd)](){const _0x34ccf1=_0x18262c;if(this[_0x34ccf1(0x6ab)])return this[_0x34ccf1(0x6ab)];let _0x325e04=new Promise((_0x4a57b8,_0x5dd1dc)=>{const _0x321a29=_0x34ccf1;let _0x37af17=this[_0x321a29(0x446)](!![]),_0x1e18ff=[],_0xf5a62d=this;Object['defineProperty'](_0x1e18ff,'iterable',{'value':_0xf5a62d});function _0x11113b(_0x1a584d){const _0x21df97=_0x321a29;while(_0x1a584d[_0x21df97(0x7a1)]!==!![]){if(_0x1a584d['then'])return _0x1a584d['then'](_0x11113b);else _0x1e18ff[_0x21df97(0x247)](_0x1a584d['value']);_0x1a584d=_0x37af17[_0x21df97(0x84c)]();}_0x4a57b8(_0xf5a62d[_0x21df97(0x6ab)]=_0x1e18ff);}_0x11113b(_0x37af17['next']());});return _0x325e04[_0x34ccf1(0x517)]=this,this[_0x34ccf1(0x6ab)]||(this[_0x34ccf1(0x6ab)]=_0x325e04);}[_0x18262c(0x497)](){const _0x2a569=_0x18262c;return this[_0x2a569(0x8bd)];}['at'](_0x464f3a){for(let _0x3b0552 of this){if(_0x464f3a--===0x0)return _0x3b0552;}}}return _0x1bbd51['prototype'][_0x18262c(0x570)]=_0x3b2111,dist$1[_0x18262c(0x854)]=_0x1bbd51,dist$1[_0x18262c(0x840)]=_0x4d42cc,dist$1;}var iterable,hasRequiredIterable;function requireIterable(){const _0x15d222=_0x7b0c8f;if(hasRequiredIterable)return iterable;hasRequiredIterable=0x1;const {ExtendedIterable:_0x59f267}=requireDist$1(),_0x2e1ba4=Number(process.env.OKDB_NATIVE_RANGE_CHUNK)||0x3e8,_0x40f90f=Math[_0x15d222(0x644)](_0x2e1ba4,Number(process.env.OKDB_NATIVE_ROW_CHUNK)||0x100),_0x1e7ee8=new Set([_0x15d222(0x498),_0x15d222(0x34f),_0x15d222(0x3da),_0x15d222(0x8c0)]),_0x3fcde1=Math[_0x15d222(0x644)](_0x40f90f,Number(process.env.OKDB_NATIVE_RANGE_FIRST)||0x1),_0x4ef772=0x4,_0x20fa78=(_0x5420a9,_0x2f8eeb=_0x2e1ba4)=>Math[_0x15d222(0x644)](_0x2f8eeb,_0x5420a9*_0x4ef772),_0x3660dc={'value':undefined,'done':!![]};function _0x4212f2(_0x5bb0da){const _0x5a31a7=_0x15d222,_0x2fc08c=new _0x59f267();return _0x2fc08c[_0x5a31a7(0x446)]=()=>{let _0x4c229b=0x0;return{'next'(){const _0x88fbeb=_0xf27e;return _0x4c229b<_0x5bb0da[_0x88fbeb(0x7e0)]?{'value':_0x5bb0da[_0x4c229b++],'done':![]}:{'value':undefined,'done':!![]};},'return'(){return _0x4c229b=_0x5bb0da['length'],{'value':undefined,'done':!![]};},'throw'(){const _0x5f2f44=_0xf27e;return _0x4c229b=_0x5bb0da[_0x5f2f44(0x7e0)],{'value':undefined,'done':!![]};}};},_0x2fc08c;}const _0x36f67e=_0x1d730f=>typeof _0x1d730f===_0x15d222(0x645)&&!Number[_0x15d222(0x856)](_0x1d730f)?Math[_0x15d222(0x3d2)](0x0,Math[_0x15d222(0x695)](_0x1d730f)):Infinity,_0x2bb8a3=_0x353e92=>typeof _0x353e92===_0x15d222(0x645)?Math['max'](0x0,Math[_0x15d222(0x871)](_0x353e92))||0x0:0x0;function _0x5ac0e5(_0x3a9422,_0x1a8872,_0x4adbbe,_0x2d76ef={}){const _0x322d93=_0x15d222,_0x524331=new _0x59f267(),_0x19ea01=(_0x2d76ef[_0x322d93(0x7a3)]||_0x36f67e)(_0x1a8872[_0x322d93(0x5e9)]),_0x582e27=_0x2d76ef[_0x322d93(0x605)]?_0x40f90f:_0x2e1ba4,_0x49e8f3=_0x2d76ef['resumeOpts']||((_0x4b9949,_0x419bfb)=>{const _0x565c97=_0x322d93;_0x4b9949['start']=_0x419bfb,_0x4b9949['exclusiveStart']=!![],delete _0x4b9949[_0x565c97(0x732)];});let _0x3a4a6d=null;if(_0x2d76ef[_0x322d93(0x775)]){const _0x150308={..._0x1a8872,'limit':Math[_0x322d93(0x644)](_0x3fcde1,_0x19ea01)};_0x3a4a6d={'rows':_0x3a9422(_0x150308),'limit':_0x150308['limit']};const _0x5ecb9c=_0x3a4a6d;queueMicrotask(()=>{const _0x310cd1=_0x322d93;_0x5ecb9c[_0x310cd1(0x1ef)]=!![];});}return _0x524331[_0x322d93(0x446)]=()=>{const _0x5715fc=_0x322d93;let _0xfce50b=[],_0x18e839=0x0,_0x4d8762=0x0,_0x76345e,_0x205dea=![],_0x4610a6=![],_0x23d60a=_0x3fcde1;if(_0x3a4a6d&&!_0x3a4a6d['dropped']&&!_0x3a4a6d[_0x5715fc(0x65f)]){_0x3a4a6d[_0x5715fc(0x65f)]=!![],_0xfce50b=_0x3a4a6d[_0x5715fc(0x605)],_0x205dea=!![],_0x23d60a=_0x20fa78(_0x23d60a,_0x582e27);if(_0xfce50b[_0x5715fc(0x7e0)]<_0x3a4a6d[_0x5715fc(0x5e9)])_0x4610a6=!![];if(_0xfce50b[_0x5715fc(0x7e0)])_0x76345e=_0x4adbbe(_0xfce50b[_0xfce50b[_0x5715fc(0x7e0)]-0x1]);}const _0x3b521f=()=>{const _0x21a4e9=_0x5715fc;if(_0x4610a6)return;const _0x21f9cb=_0x19ea01-_0x4d8762;if(_0x21f9cb<=0x0){_0x4610a6=!![],_0xfce50b=[];return;}const _0x46929b={..._0x1a8872,'limit':Math[_0x21a4e9(0x644)](_0x23d60a,_0x21f9cb)};if(_0x205dea)_0x49e8f3(_0x46929b,_0x76345e);_0x205dea=!![],_0x23d60a=_0x20fa78(_0x23d60a,_0x582e27),_0xfce50b=_0x3a9422(_0x46929b),_0x18e839=0x0;if(_0xfce50b[_0x21a4e9(0x7e0)]<_0x46929b['limit'])_0x4610a6=!![];if(_0xfce50b[_0x21a4e9(0x7e0)])_0x76345e=_0x4adbbe(_0xfce50b[_0xfce50b[_0x21a4e9(0x7e0)]-0x1]);};return{'next'(){const _0x1f0425=_0x5715fc;if(_0x18e839>=_0xfce50b[_0x1f0425(0x7e0)])_0x3b521f();if(_0x18e839>=_0xfce50b[_0x1f0425(0x7e0)])return{'value':undefined,'done':!![]};return _0x4d8762++,{'value':_0xfce50b[_0x18e839++],'done':![]};},'return'(){return _0x4610a6=!![],_0xfce50b=[],{'value':undefined,'done':!![]};},'throw'(){return _0x4610a6=!![],_0xfce50b=[],{'value':undefined,'done':!![]};}};},_0x524331;}function _0x2618fe(_0x5bb0d2,_0x97187,_0x9026f9,_0x14292b,_0x29b8b7={}){const _0x1bb3ff=_0x15d222,_0x4fe75e=(_0x29b8b7['limitOf']||_0x36f67e)(_0x14292b&&_0x14292b[_0x1bb3ff(0x5e9)]),_0xfef30a=_0x1e7ee8[_0x1bb3ff(0x5ed)](_0x97187)?_0x40f90f:_0x2e1ba4,_0x224cfa=(_0x29b8b7['offsetOf']||_0x2bb8a3)(_0x14292b&&_0x14292b['offset']),_0x50a3d3=(_0x178215,_0x26ff85,_0x3f4118)=>{const _0x2541f5=_0x1bb3ff,_0x5ae491=_0x4fe75e-_0x26ff85,_0x187549=Math[_0x2541f5(0x644)](_0x3f4118,_0x5ae491),_0x3c2270={'limit':_0x187549,'offset':_0x224cfa+_0x26ff85},_0x115647=_0x5bb0d2('pinned',[_0x178215,_0x97187,_0x187549===_0x5ae491?Infinity:_0x187549,..._0x9026f9(_0x3c2270)]);if(_0x115647[0x0]===-0x1){const _0x399e60={'offset':_0x224cfa+_0x26ff85};if(_0x5ae491!==Infinity)_0x399e60[_0x2541f5(0x5e9)]=_0x5ae491;return{'pin':0x0,'rows':_0x5bb0d2(_0x97187,_0x9026f9(_0x399e60)),'raw':Infinity,'eager':!![]};}return{'pin':_0x115647[0x0],'rows':_0x115647[0x1],'raw':_0x115647[0x2]};},_0x4f35b9=_0x36f095=>{const _0x5328c4=_0x1bb3ff;if(_0x36f095)_0x5bb0d2(_0x5328c4(0x2f2),[_0x36f095]);};function _0x119a5a(_0x12c764,_0x45f118,_0x215e8f){const _0x4e7565=_0x1bb3ff;let _0xb26cf=0x0,_0x14cba3=[],_0x496016=0x0,_0x19a594=_0x12c764,_0x103563=_0x3fcde1,_0x27d113=_0x4fe75e-_0x12c764<=0x0;if(_0x215e8f)({buf:_0x14cba3,pos:_0x496016,consumed:_0x19a594,size:_0x103563,exhausted:_0x27d113}=_0x215e8f);const _0x335ff2=_0x12620c=>{const _0x1a5c2a=_0xf27e;_0xb26cf=_0x12620c[_0x1a5c2a(0x44a)],_0x14cba3=_0x12620c['rows'],_0x496016=0x0,_0x19a594+=_0x12620c[_0x1a5c2a(0x3b0)],_0x103563=_0x20fa78(_0x103563,_0xfef30a);if(!_0xb26cf)_0x27d113=!![];};if(_0x45f118)_0x335ff2(_0x45f118);const _0x3aeb12=()=>{const _0x4bd131=_0xb26cf;_0xb26cf=0x0,_0x4f35b9(_0x4bd131);},_0x7046a1={'next'(){while(_0x496016>=_0x14cba3['length']){if(_0x27d113||_0x4fe75e-_0x19a594<=0x0)return _0x27d113=!![],_0x3aeb12(),_0x3660dc;try{_0x335ff2(_0x50a3d3(_0xb26cf,_0x19a594,_0x103563));}catch(_0x57960d){_0xb26cf=0x0,_0x27d113=!![],_0x14cba3=[];throw _0x57960d;}}return{'value':_0x14cba3[_0x496016++],'done':![]};},'return'(){return _0x3aeb12(),_0x3660dc;},'throw'(){return _0x3aeb12(),_0x3660dc;},'resumed'(){return _0x119a5a(0x0,null,{'buf':_0x14cba3,'pos':_0x496016,'consumed':_0x19a594,'size':_0x103563,'exhausted':_0x27d113});},[Symbol[_0x4e7565(0x606)]](){return this;}};return _0x7046a1;}function _0x32ddb3(){if(_0x4fe75e<=0x0)return null;const _0x249083=_0x50a3d3(0x0,0x0,_0x3fcde1);return queueMicrotask(()=>{const _0x1e95bb=_0xf27e;!_0x249083[_0x1e95bb(0x65f)]&&(_0x249083[_0x1e95bb(0x1ef)]=!![],_0x4f35b9(_0x249083['pin']));}),_0x249083;}return{'source':_0x119a5a,'prefetch':_0x32ddb3};}function _0x271e89(_0x16aad7){const _0x481abd=_0x15d222;if(!_0x16aad7||_0x16aad7[_0x481abd(0x65f)]||_0x16aad7['dropped'])return null;return _0x16aad7[_0x481abd(0x65f)]=!![],_0x16aad7;}return iterable={'fromArray':_0x4212f2,'chunkedRange':_0x5ac0e5,'pinnedChunks':_0x2618fe,'claimPrefetch':_0x271e89,'lmdbLimit':_0x36f67e,'lmdbOffset':_0x2bb8a3,'CHUNK':_0x2e1ba4,'ROW_CHUNK':_0x40f90f,'FIRST':_0x3fcde1},iterable;}var rawdb,hasRequiredRawdb;function requireRawdb(){const _0x5e9c41=_0x7b0c8f;if(hasRequiredRawdb)return rawdb;hasRequiredRawdb=0x1;const {fromArray:_0x39cda9}=requireIterable();class _0xb8736c{constructor(_0x35c1ab,_0x51709b='',_0x5e82e2={},_0x3a9b04=null){const _0x533a8b=_0xf27e;this[_0x533a8b(0x5f3)]=_0x35c1ab,this[_0x533a8b(0x264)]=_0x51709b,this['dupSort']=!!(_0x5e82e2&&_0x5e82e2[_0x533a8b(0x37e)]),this[_0x533a8b(0x388)]=!!(_0x5e82e2&&_0x5e82e2[_0x533a8b(0x388)]),this[_0x533a8b(0x4d0)]=_0x3a9b04||this,this[_0x533a8b(0x362)]=null;}get['_dupArg'](){const _0x130f4a=_0xf27e;return this[_0x130f4a(0x37e)]?!![]:this[_0x130f4a(0x388)]?'v':![];}['_n'](_0x4393fb,_0x1ea5bc){const _0x14b96d=_0xf27e;return this[_0x14b96d(0x5f3)][_0x14b96d(0x709)][_0x14b96d(0x4e8)](_0x14b96d(0x3b0),this[_0x14b96d(0x5f3)][_0x14b96d(0x264)],_0x4393fb,[this[_0x14b96d(0x264)],this[_0x14b96d(0x6fe)],..._0x1ea5bc],!![]);}[_0x5e9c41(0x427)](_0x1c2a0c,_0x4c4b2d){const _0x32b08e=_0x5e9c41;return this['_env']['okdb'][_0x32b08e(0x4e8)](_0x32b08e(0x3b0),this[_0x32b08e(0x5f3)]['name'],_0x1c2a0c,[this[_0x32b08e(0x264)],this[_0x32b08e(0x6fe)],..._0x4c4b2d],![]);}['_write'](_0x577752){const _0x4d3ba0=_0x5e9c41,_0x2529c7=this[_0x4d3ba0(0x5f3)][_0x4d3ba0(0x3c2)];if(_0x2529c7)_0x2529c7[_0x4d3ba0(0x247)]({'sub':this[_0x4d3ba0(0x264)],'dup':this[_0x4d3ba0(0x6fe)],..._0x577752});else this[_0x4d3ba0(0x5f3)]['okdb']['_call'](_0x4d3ba0(0x3b0),this[_0x4d3ba0(0x5f3)][_0x4d3ba0(0x264)],_0x4d3ba0(0x8a3),[[{'sub':this['name'],'dup':this[_0x4d3ba0(0x6fe)],..._0x577752}]],!![]);}[_0x5e9c41(0x341)](_0x17c436){const _0x4299f5=_0x5e9c41;return this['_read'](_0x4299f5(0x341),[_0x17c436]);}[_0x5e9c41(0x4c9)](_0x3c0863){const _0xfb12d1=_0x5e9c41;if(this[_0xfb12d1(0x388)])return this['_read']('getEntry',[_0x3c0863]);const _0x3ce6fb=this[_0xfb12d1(0x341)](_0x3c0863);return _0x3ce6fb===undefined?undefined:{'value':_0x3ce6fb};}[_0x5e9c41(0x31c)](_0x4e55ac){const _0x5dc637=_0x5e9c41;return this['_read'](_0x5dc637(0x1f8),[_0x4e55ac]);}[_0x5e9c41(0x2f1)](_0x5449cd){const _0x4bfdb8=_0x5e9c41;return this[_0x4bfdb8(0x341)](_0x5449cd);}[_0x5e9c41(0x498)](_0x4a4b15={}){const _0xd39874=_0x5e9c41,_0x24bd8a=this[_0xd39874(0x427)]('getRange',[_0x4a4b15]),_0x2368a1=_0x4a4b15[_0xd39874(0x5fe)]===![],_0x2dfab1=_0x4a4b15[_0xd39874(0x88a)]===![];return _0x39cda9(_0x24bd8a['map'](([_0x15b1bb,_0x5788ab,_0x102a37])=>{if(_0x2368a1)return _0x15b1bb;if(_0x2dfab1)return _0x5788ab;return _0x102a37===undefined?{'key':_0x15b1bb,'value':_0x5788ab}:{'key':_0x15b1bb,'value':_0x5788ab,'version':_0x102a37};}));}[_0x5e9c41(0x4fb)](_0x42dd66={}){const _0x1a3cff=_0x5e9c41;return _0x39cda9(this['_read'](_0x1a3cff(0x498),[_0x42dd66])[_0x1a3cff(0x59f)](([_0x116a7d])=>_0x116a7d));}[_0x5e9c41(0x78d)](_0x5a6529,_0x15d893={}){const _0x1a7b19=_0x5e9c41,_0x120113=this[_0x1a7b19(0x427)](_0x1a7b19(0x498),[{..._0x15d893,'start':_0x5a6529,'end':_0x5a6529,'inclusiveEnd':!![]}]);return _0x39cda9(_0x120113[_0x1a7b19(0x59f)](([,_0x51c8c2])=>_0x51c8c2));}[_0x5e9c41(0x47f)](_0x29f2af={}){const _0x2bd613=_0x5e9c41;return this[_0x2bd613(0x427)]('count',[_0x29f2af]);}['getStats'](){const _0x161c5d=_0x5e9c41;return{'entryCount':this[_0x161c5d(0x47f)]()};}[_0x5e9c41(0x4a2)](_0x5cb861,_0x3ed2d3,_0x79a16c){const _0x2a5702=_0x5e9c41;return this[_0x2a5702(0x7ae)]({'op':'put','key':_0x5cb861,'value':_0x3ed2d3,'version':_0x79a16c}),Promise['resolve'](!![]);}[_0x5e9c41(0x8d7)](_0x26b1f3,_0x7760bb,_0x46f5dc){const _0x2def7e=_0x5e9c41;return this[_0x2def7e(0x7ae)]({'op':_0x2def7e(0x4a2),'key':_0x26b1f3,'value':_0x7760bb,'version':_0x46f5dc}),!![];}[_0x5e9c41(0x694)](_0x19426b,_0x13fa3b){const _0x22432e=_0x5e9c41;return this[_0x22432e(0x7ae)]({'op':_0x22432e(0x694),'key':_0x19426b,'value':_0x13fa3b}),Promise[_0x22432e(0x629)](!![]);}[_0x5e9c41(0x1fd)](_0x35d1b7,_0x2cca0b){const _0xf8d302=_0x5e9c41;return this[_0xf8d302(0x7ae)]({'op':'remove','key':_0x35d1b7,'value':_0x2cca0b}),!![];}[_0x5e9c41(0x7f6)](){const _0xb1153b=_0x5e9c41;this[_0xb1153b(0x7ae)]({'op':'clear'});}['clearAsync'](){const _0x3c9df9=_0x5e9c41;return this[_0x3c9df9(0x7ae)]({'op':_0x3c9df9(0x510)}),Promise[_0x3c9df9(0x629)]();}[_0x5e9c41(0x43a)](){const _0x54e0d7=_0x5e9c41;this[_0x54e0d7(0x7f6)]();}[_0x5e9c41(0x68e)](_0x3f46dd,_0x2b4b7c={}){const _0x374026=_0x5e9c41,_0x51656f=typeof _0x3f46dd===_0x374026(0x81a)?_0x3f46dd:_0x2b4b7c,_0x5b4f2e=typeof _0x3f46dd===_0x374026(0x81a)?_0x3f46dd['name']:_0x3f46dd,_0x5ec69f=new _0xb8736c(this[_0x374026(0x5f3)],_0x5b4f2e,_0x51656f);return _0x5ec69f[_0x374026(0x7ae)]({'op':_0x374026(0x6d6)}),_0x5ec69f;}[_0x5e9c41(0x8bf)](){}['transactionSync'](_0x71c885){const _0x2d80fb=_0x5e9c41;return this[_0x2d80fb(0x54f)](_0x71c885);}async[_0x5e9c41(0x7b1)](_0x523d87){return this['_tx'](_0x523d87);}[_0x5e9c41(0x87a)](_0x248fc2){const _0x2225c2=_0x5e9c41;return this[_0x2225c2(0x54f)](_0x248fc2);}['_tx'](_0x324d0a){const _0x220e76=_0x5e9c41,_0x1376d5=this['_env'];if(_0x1376d5[_0x220e76(0x3c2)])return _0x324d0a();_0x1376d5[_0x220e76(0x3c2)]=[];let _0x414b4f;try{_0x414b4f=_0x324d0a();}catch(_0x11a897){_0x1376d5['_rawTxnBuf']=null;throw _0x11a897;}const _0x390813=_0x1376d5[_0x220e76(0x3c2)];_0x1376d5['_rawTxnBuf']=null;if(_0x390813['length'])_0x1376d5[_0x220e76(0x709)][_0x220e76(0x4e8)](_0x220e76(0x3b0),_0x1376d5[_0x220e76(0x264)],_0x220e76(0x8a3),[_0x390813],!![]);return _0x414b4f;}[_0x5e9c41(0x886)](){return{'done'(){}};}[_0x5e9c41(0x3be)](){}}return rawdb={'RawDb':_0xb8736c},rawdb;}var views,hasRequiredViews;function requireViews(){const _0x587d02=_0x7b0c8f;if(hasRequiredViews)return views;hasRequiredViews=0x1;const {RawDb:_0x1c01f7}=requireRawdb();class _0x18974e{constructor(_0x396908){const _0x345dc7=_0xf27e;this[_0x345dc7(0x67a)]=_0x396908,this['_n']=(_0x37437f,_0x4118a7,_0x779bf0=!![])=>_0x396908[_0x345dc7(0x709)][_0x345dc7(0x4e8)](_0x345dc7(0x749),_0x396908['name'],_0x37437f,_0x4118a7,_0x779bf0);}get[_0x587d02(0x367)](){const _0x1966cb=_0x587d02,_0x84d27a=this,_0x53378b=this[_0x1966cb(0x67a)],_0x47bc45=_0x348c68=>_0x348c68?new _0x1c01f7(_0x53378b,_0x348c68['name'],{'dupSort':_0x348c68[_0x1966cb(0x6f5)]}):undefined,_0x4958e5=_0xab560d=>{const _0x4b2810=_0x1966cb,_0x477aee=_0x84d27a['_n'](_0x4b2810(0x8d0),[_0xab560d],![]);if(!_0x477aee)return undefined;const _0x50bdc9=_0x477aee[_0x4b2810(0x4df)],_0x4cea46=new Map(Object[_0x4b2810(0x565)](_0x50bdc9[_0x4b2810(0x877)])),_0x2bd291=new Map(Object['entries'](_0x477aee[_0x4b2810(0x260)])['map'](([_0x46f76d,_0x1d63ff])=>[_0x46f76d,_0x47bc45(_0x1d63ff)]));return{'name':_0xab560d,'compiled':{'T':_0x50bdc9['T'],'reducers':_0x50bdc9['reducers'],'refs':_0x4cea46,'granId':_0x50bdc9['granId'],'type':_0x50bdc9[_0x4b2810(0x326)],'_nidFor':_0x332e77=>_0x84d27a['_n'](_0x4b2810(0x21f),[_0xab560d,_0x332e77],![])},'viewDb':_0x47bc45(_0x477aee[_0x4b2810(0x429)][_0x4b2810(0x1ce)]),'metaDb':_0x47bc45(_0x477aee[_0x4b2810(0x429)]['metaDb']),'itemsDb':_0x47bc45(_0x477aee[_0x4b2810(0x429)][_0x4b2810(0x711)]),'bucketsDb':_0x47bc45(_0x477aee[_0x4b2810(0x429)][_0x4b2810(0x8f6)]),'sortedDb':_0x47bc45(_0x477aee[_0x4b2810(0x429)]['sortedDb']),'groupsDb':_0x47bc45(_0x477aee['dbs'][_0x4b2810(0x760)]),'prevDb':_0x47bc45(_0x477aee['dbs'][_0x4b2810(0x539)]),'refItemsDbs':_0x2bd291,'refTrackingDbs':new Map(Object[_0x4b2810(0x565)](_0x477aee[_0x4b2810(0x5a1)]||{})['map'](([_0x51f87a,_0x5531fd])=>[_0x51f87a,_0x47bc45(_0x5531fd)])),'stopFn':_0x477aee[_0x4b2810(0x327)]?async()=>_0x84d27a['_n'](_0x4b2810(0x7b9),[_0xab560d]):null,'bootstrapWorker':null};};return{'get':_0x5e0b4b=>_0x4958e5(_0x5e0b4b),'has':_0x1dee30=>_0x84d27a['_n'](_0x1966cb(0x36d),[],![])[_0x1966cb(0x566)](_0x1dee30),'keys':()=>_0x84d27a['_n'](_0x1966cb(0x36d),[],![])[Symbol[_0x1966cb(0x606)]](),get 'size'(){return _0x84d27a['_n']('stateNames',[],![])['length'];},[Symbol['iterator']]:()=>_0x84d27a['_n'](_0x1966cb(0x36d),[],![])['map'](_0x4292d5=>[_0x4292d5,_0x4958e5(_0x4292d5)])[Symbol['iterator']]()};}get[_0x587d02(0x3c0)](){const _0x3f3e9e=_0x587d02,_0x562c62=this;return{'has':_0x5c33c6=>_0x562c62['_n'](_0x3f3e9e(0x561),[],![])[_0x3f3e9e(0x566)](_0x5c33c6),get 'size'(){const _0x539ab8=_0x3f3e9e;return _0x562c62['_n'](_0x539ab8(0x561),[],![])[_0x539ab8(0x7e0)];},'keys':()=>_0x562c62['_n'](_0x3f3e9e(0x561),[],![])[Symbol[_0x3f3e9e(0x606)]]()};}async[_0x587d02(0x671)](){return this['_n']('bootSyncedViewsInline',[]);}async[_0x587d02(0x7d8)](_0x1636c7={}){const _0x5e4d89=_0x587d02;return this['_n'](_0x5e4d89(0x7d8),[_0x1636c7]);}async[_0x587d02(0x635)](_0x2f8a5f,_0x1d793b){const _0x56f439=_0x587d02;return await this['_begin']('createBegin',[_0x2f8a5f,_0x1d793b]),await this[_0x56f439(0x353)](_0x2f8a5f),{'name':_0x2f8a5f};}async['_begin'](_0x2e3bc3,_0x4752d4){const _0x245c3d=_0x587d02,_0x39e58f=Date[_0x245c3d(0x274)]()+0x7d0;for(;;){try{return this['_n'](_0x2e3bc3,_0x4752d4);}catch(_0x1c2576){if(_0x1c2576?.[_0x245c3d(0x5c5)]!==_0x245c3d(0x64b)||Date[_0x245c3d(0x274)]()>=_0x39e58f)throw _0x1c2576;await new Promise(_0x2efdc6=>setTimeout(_0x2efdc6,0x32));}}}async['_awaitBuild'](_0x5ef0ed){const _0x554b01=_0x587d02,_0x5852ff=this[_0x554b01(0x67a)][_0x554b01(0x709)][_0x554b01(0x5b0)];while(this['_n'](_0x554b01(0x657),[_0x5ef0ed],![]))await _0x5852ff['nextTurn'](0xfa);try{this['_n']('takeBuildResult',[_0x5ef0ed],![]);}catch(_0x5811b3){if(_0x5811b3?.[_0x554b01(0x5c5)]!==_0x554b01(0x240)||_0x5811b3[_0x554b01(0x33f)]?.[_0x554b01(0x894)]!==_0x554b01(0x2a8))throw _0x5811b3;await this['_awaitPeerBuild'](_0x5ef0ed);}}async['_awaitPeerBuild'](_0x3112fa){const _0x2eebb4=_0x587d02,_0x59ea64=this[_0x2eebb4(0x67a)][_0x2eebb4(0x709)][_0x2eebb4(0x5b0)];let _0x562ceb=0x0,_0x54568a='',_0x912253=Date[_0x2eebb4(0x274)]();for(;;){if(this['_n']('buildPending',[_0x3112fa],![]))return this[_0x2eebb4(0x353)](_0x3112fa);const _0x8da93c=this[_0x2eebb4(0x647)](_0x3112fa);if(!_0x8da93c)throw Object[_0x2eebb4(0x7de)](new Error(_0x2eebb4(0x1fa)+_0x3112fa+_0x2eebb4(0x550)),{'code':_0x2eebb4(0x3a0)});const _0x224f8b=_0x8da93c['state'],_0x499108=_0x4f4973=>_0x4f4973===_0x2eebb4(0x6b1)||_0x4f4973===_0x2eebb4(0x3ea),_0x3d4dea=Object['values'](_0x8da93c[_0x2eebb4(0x6cf)]?.['refs']??{})[_0x2eebb4(0x543)](_0x534768=>_0x499108(_0x534768?.['state'])),_0x1a436a=_0x499108(_0x224f8b)||_0x224f8b===_0x2eebb4(0x5dc)&&(_0x8da93c[_0x2eebb4(0x89d)]!=null||_0x3d4dea);if(!_0x1a436a){if(_0x224f8b==='ready'||_0x224f8b===_0x2eebb4(0x5dc))return;throw Object['assign'](new Error(_0x2eebb4(0x1fa)+_0x3112fa+_0x2eebb4(0x27e)+_0x224f8b+'\x22'+(_0x8da93c['error']?':\x20'+_0x8da93c[_0x2eebb4(0x292)]:'')),{'code':_0x2eebb4(0x434),'details':{'name':_0x3112fa,'state':_0x224f8b}});}const _0xe5b116=JSON['stringify'](_0x8da93c);if(_0xe5b116!==_0x54568a)_0x54568a=_0xe5b116,_0x912253=Date[_0x2eebb4(0x274)]();else{if(!this[_0x2eebb4(0x67a)]['okdb'][_0x2eebb4(0x4cd)]?.[_0x2eebb4(0x3f3)]&&Date[_0x2eebb4(0x274)]()-_0x912253>0x927c0)throw Object[_0x2eebb4(0x7de)](new Error(_0x2eebb4(0x1fa)+_0x3112fa+_0x2eebb4(0x25a)),{'code':'VIEW_BUILD_STALLED','details':{'name':_0x3112fa}});}Date[_0x2eebb4(0x274)]()>=_0x562ceb&&this[_0x2eebb4(0x67a)][_0x2eebb4(0x709)][_0x2eebb4(0x4cd)]?.[_0x2eebb4(0x3f3)]&&(_0x562ceb=Date[_0x2eebb4(0x274)]()+0x3e8,await this[_0x2eebb4(0x7d8)]({'skipReadyRescan':!![]})['catch'](()=>{})),await _0x59ea64['nextTurn'](0xfa);}}['get'](_0x2ff93f,_0x3c821d={}){const _0x287d22=_0x587d02,_0x34350c=this['_n'](_0x287d22(0x341),[_0x2ff93f,{'preview':_0x3c821d?.[_0x287d22(0x322)]??{}}],![]);if(_0x34350c==null)return null;const _0x4bf3af=this['_n'](_0x287d22(0x3a9),[_0x2ff93f],![]);if(!_0x4bf3af)return _0x34350c;const _0x1cd75c=_0x54bba0=>(_0x5b2105={})=>this['_n']('items',[_0x2ff93f,_0x54bba0,_0x5b2105],![]);if(_0x4bf3af[_0x287d22(0x76b)]){_0x34350c[_0x287d22(0x535)]=_0x1cd75c({'kind':'view'});for(const _0x814982 of _0x4bf3af[_0x287d22(0x5cd)]){if(!_0x814982[_0x287d22(0x535)])continue;if(_0x814982[_0x287d22(0x736)]){const _0x24f0dc=_0x34350c[_0x814982[_0x287d22(0x264)]];if(_0x24f0dc?.[_0x287d22(0x322)]&&Array[_0x287d22(0x239)](_0x24f0dc['preview'])){for(const _0x3355e6 of _0x24f0dc[_0x287d22(0x322)])_0x3355e6[_0x287d22(0x535)]=_0x1cd75c({'kind':_0x287d22(0x882),'reducer':_0x814982[_0x287d22(0x264)],'key':_0x3355e6[_0x287d22(0x8cd)]});}}else _0x34350c[_0x814982[_0x287d22(0x264)]]&&(_0x34350c[_0x814982[_0x287d22(0x264)]][_0x287d22(0x535)]=_0x1cd75c({'kind':'reducer','reducer':_0x814982['name']}));}}for(const _0x5f746 of _0x4bf3af[_0x287d22(0x877)]){if(!_0x5f746[_0x287d22(0x76b)])continue;const _0x4672b0=_0x34350c[_0x5f746[_0x287d22(0x264)]];if(!_0x4672b0||typeof _0x4672b0!=='object')continue;_0x4672b0[_0x287d22(0x535)]=_0x1cd75c({'kind':'view','ref':_0x5f746['name']});for(const _0x3ecc85 of _0x5f746[_0x287d22(0x5cd)]){if(!_0x3ecc85['items'])continue;if(_0x3ecc85['grouped']){const _0x3bb98e=_0x4672b0[_0x3ecc85[_0x287d22(0x264)]];if(_0x3bb98e?.['preview']&&Array[_0x287d22(0x239)](_0x3bb98e[_0x287d22(0x322)])){for(const _0x4ad5d8 of _0x3bb98e[_0x287d22(0x322)])_0x4ad5d8[_0x287d22(0x535)]=_0x1cd75c({'kind':_0x287d22(0x882),'ref':_0x5f746[_0x287d22(0x264)],'reducer':_0x3ecc85[_0x287d22(0x264)],'key':_0x4ad5d8[_0x287d22(0x8cd)]});}}else _0x4672b0[_0x3ecc85[_0x287d22(0x264)]]&&(_0x4672b0[_0x3ecc85[_0x287d22(0x264)]]['items']=_0x1cd75c({'kind':'reducer','ref':_0x5f746[_0x287d22(0x264)],'reducer':_0x3ecc85[_0x287d22(0x264)]}));}}return _0x34350c;}[_0x587d02(0x647)](_0x56de54){return this['_n']('getMeta',[_0x56de54],![]);}[_0x587d02(0x725)](_0x5ec02c,_0x3545ba={}){const _0x1f1462=_0x587d02;return this['_n'](_0x1f1462(0x725),[_0x5ec02c,_0x3545ba],![]);}[_0x587d02(0x6d9)](_0x24876c,_0x5b3064={}){const _0x3f81a7=_0x587d02;return this['_n'](_0x3f81a7(0x6d9),[_0x24876c,_0x5b3064],![]);}[_0x587d02(0x2d3)](_0x34f637,_0x5bce96={}){const _0x201716=_0x587d02;return this['_n'](_0x201716(0x2d3),[_0x34f637,_0x5bce96],![]);}async[_0x587d02(0x7a7)](){return this['_n']('list',[],![]);}async['getDefinition'](_0x3ca59b){return this['_n']('getDefinition',[_0x3ca59b],![])??null;}async['remove'](_0x3e6b9b,_0x5dfa16={}){const _0x3ebd24=_0x587d02;return this['_n'](_0x3ebd24(0x694),[_0x3e6b9b,_0x5dfa16]);}async[_0x587d02(0x61d)](_0x1e66c4){const _0xd3ab50=_0x587d02;return this['_n'](_0xd3ab50(0x61d),[_0x1e66c4]);}async[_0x587d02(0x8a9)](_0x1fea06){const _0x5ec2dd=_0x587d02;await this[_0x5ec2dd(0x77d)]('startBegin',[_0x1fea06]),await this['_awaitBuild'](_0x1fea06);}async[_0x587d02(0x5e7)](_0xd13a4d){const _0x91101f=_0x587d02;await this[_0x91101f(0x77d)](_0x91101f(0x8ec),[_0xd13a4d]),await this[_0x91101f(0x353)](_0xd13a4d);}async[_0x587d02(0x8de)](_0x315912){const _0x1b65fc=_0x587d02;await this[_0x1b65fc(0x77d)](_0x1b65fc(0x47e),[_0x315912]),await this['_awaitBuild'](_0x315912);}[_0x587d02(0x33a)](_0x19230e,_0x52318a={}){const _0x2316cc=_0x587d02;return this['_n'](_0x2316cc(0x33a),[_0x19230e,{'apply':_0x52318a&&_0x52318a['apply']}]);}}return views={'OKDBViews':_0x18974e},views;}var queue,hasRequiredQueue;function requireQueue(){const _0x482dd7=_0x7b0c8f;if(hasRequiredQueue)return queue;hasRequiredQueue=0x1;const {OKDBError:_0x24f3d5}=requireErrors(),_0xd7f963=requireBridge();class _0x1a48a7{constructor(_0x4ac9fb){const _0x1355be=_0xf27e;this['env']=_0x4ac9fb,this['okdb']=_0x4ac9fb[_0x1355be(0x709)],this[_0x1355be(0x5a7)]=_0x4ac9fb[_0x1355be(0x709)][_0x1355be(0x5a7)][_0x1355be(0x6d8)]({'feature':_0x1355be(0x5d2)}),this[_0x1355be(0x838)]=new Set();}['_n'](_0x10c485,_0x337a8b,_0x21dcef=!![]){const _0x57d69e=_0xf27e;return this[_0x57d69e(0x709)][_0x57d69e(0x4e8)](_0x57d69e(0x5d2),this[_0x57d69e(0x67a)][_0x57d69e(0x264)],_0x10c485,_0x337a8b,_0x21dcef);}['_w'](_0x35c917,_0x582b35){const _0x455cf4=_0xf27e;return this[_0x455cf4(0x709)][_0x455cf4(0x7e3)](this['_n'](_0x35c917,_0x582b35));}async[_0x482dd7(0x600)](){return this['_n']('ensure',[]);}async[_0x482dd7(0x7a7)](_0x5a420c={}){const _0x48dcf8=_0x482dd7;return this['_n'](_0x48dcf8(0x7a7),[_0x5a420c],![]);}get['_logsDb'](){const _0x10c81f=_0x482dd7,{RawDb:_0x15083d}=requireRawdb();return this[_0x10c81f(0x2c4)]||(this[_0x10c81f(0x2c4)]=new _0x15083d(this[_0x10c81f(0x67a)],_0x10c81f(0x5a9)));}async[_0x482dd7(0x1f4)](){return this['_w']('sweepOrphanLogs',[]);}async[_0x482dd7(0x65d)](_0x12285c,_0x5ec10c,_0x2d3a47={}){const _0x5c3ee4=_0x482dd7,{txn:_0x2b2edb,..._0x23def3}=_0x2d3a47||{};if(_0x2b2edb)return this['_enqueueInTxn'](_0x2b2edb,_0x12285c,_0x5ec10c,_0x23def3);const _0x23cfd3=this['okdb']['_wb'];if(_0x23cfd3&&_0x23cfd3['queue'][_0x5c3ee4(0x7e0)])_0x23cfd3['commit']();const _0x48baec=this['_n'](_0x5c3ee4(0x5e5),[_0x12285c,_0x5ec10c,_0x23def3],![]);return this[_0x5c3ee4(0x709)]['_settleWrite'](_0x48baec['id'])[_0x5c3ee4(0x478)](_0x32e6da=>{const _0x2d7031=_0x5c3ee4;if(_0x48baec[_0x2d7031(0x6ce)])this[_0x2d7031(0x481)](_0x12285c);else try{this[_0x2d7031(0x709)][_0x2d7031(0x5b0)][_0x2d7031(0x84f)]();}catch{}return _0x32e6da;});}[_0x482dd7(0x481)](_0x307183){queueMicrotask(()=>{const _0x59284f=_0xf27e;try{this['_n'](_0x59284f(0x8a1),[_0x307183]);}catch{}});}[_0x482dd7(0x8b9)](_0x42edad,_0x1f6c16,_0x33c214,_0x3aff62){const _0x590f05=_0x482dd7,_0x507fcd=_0x42edad[_0x590f05(0x3b0)]??_0x42edad;if(_0x507fcd['_closed'])throw new _0x24f3d5('Transaction\x20already\x20closed',_0x590f05(0x687));if(_0x507fcd[_0x590f05(0x709)]&&_0x507fcd[_0x590f05(0x709)]!==this['env']&&_0x507fcd[_0x590f05(0x709)][_0x590f05(0x264)]!==this['env'][_0x590f05(0x264)])throw new _0x24f3d5(_0x590f05(0x791),_0x590f05(0x914),{'txnEnv':_0x507fcd['okdb'][_0x590f05(0x264)],'queueEnv':this[_0x590f05(0x67a)][_0x590f05(0x264)]});const _0x10d0ea=this['_n']('prepareTxnEnqueue',[_0x1f6c16,_0x33c214,_0x3aff62],![]);if(_0x10d0ea[_0x590f05(0x4a9)])return _0x10d0ea['id'];if(_0x10d0ea[_0x590f05(0x90e)])_0x42edad[_0x590f05(0x378)](_0x590f05(0x4ed),_0x10d0ea['release'][_0x590f05(0x8cd)],_0x10d0ea[_0x590f05(0x90e)][_0x590f05(0x59b)],{'ifVersion':_0x10d0ea[_0x590f05(0x90e)]['version']});if(_0x33c214!==undefined)_0x42edad[_0x590f05(0x4a2)]('~queue_payloads',_0x10d0ea['id'],_0x33c214);_0x42edad[_0x590f05(0x4a2)](_0x590f05(0x4ed),_0x10d0ea['id'],_0x10d0ea['job']);if(typeof _0x507fcd[_0x590f05(0x457)]==='function')_0x507fcd['onDo'](()=>{const _0x4e6397=_0x590f05;if(this['_n'](_0x4e6397(0x835),[_0x10d0ea['id'],_0x1f6c16,_0x10d0ea['when'],_0x10d0ea[_0x4e6397(0x2d6)]]))this[_0x4e6397(0x481)](_0x1f6c16);});return _0x10d0ea['id'];}async[_0x482dd7(0x801)](_0x5a68bc,_0x508123={}){const _0x185ec2=_0x482dd7;if(typeof _0x5a68bc!==_0x185ec2(0x6d1)||!_0x5a68bc)throw new _0x24f3d5(_0x185ec2(0x666),'BAD_PARAM');return this['_w']('claim',[_0x5a68bc,_0x508123]);}async['markJobHeartbeat'](_0x29a921,_0x349eb6,_0x3cd436=null){const _0x1ee715=_0x482dd7;return this['_w'](_0x1ee715(0x615),[_0x29a921,_0x349eb6,_0x3cd436]);}async[_0x482dd7(0x911)](_0xb41089,_0x5b5331,_0x509f33=null){const _0x320a8c=_0x482dd7;return this[_0x320a8c(0x615)](_0xb41089,_0x5b5331,_0x509f33);}async['markJobProgress'](_0x3966e8,_0xb5882b,_0x17d555){const _0x499f34=_0x482dd7;return this['_w'](_0x499f34(0x489),[_0x3966e8,_0xb5882b,_0x17d555]);}async[_0x482dd7(0x3f8)](_0x5a9678,_0x17d7fa,_0x45e761){return this['_w']('markJobComplete',[_0x5a9678,_0x17d7fa,_0x45e761]);}async['completeJob'](_0x198494,_0x276eb6,_0x5cc16a){return this['markJobComplete'](_0x198494,_0x276eb6,_0x5cc16a);}async['markJobFail'](_0x3d3824,_0x1f5e48,_0xbf52d7,_0x5a19fb){const _0x39679d=_0x482dd7,_0x245e6c=_0xbf52d7 instanceof Error?{'message':_0xbf52d7['message'],'stack':_0xbf52d7[_0x39679d(0x30d)]}:_0xbf52d7;return this['_w']('markJobFail',[_0x3d3824,_0x1f5e48,_0x245e6c,_0x5a19fb]);}async[_0x482dd7(0x4e9)](_0x2f556f,_0x5a33ce,_0x2afacd,_0x2b2a5c){const _0x42fc83=_0x482dd7;return this[_0x42fc83(0x4ca)](_0x2f556f,_0x5a33ce,_0x2afacd,_0x2b2a5c);}async['releaseClaim'](_0x19c29a,_0xb2c6de,_0x5a1640={}){const _0x43647c=_0x482dd7;return this['_w'](_0x43647c(0x4b6),[_0x19c29a,_0xb2c6de,_0x5a1640]);}async['getJob'](_0x1038ee){const _0x4b8990=_0x482dd7;return this['_n'](_0x4b8990(0x758),[_0x1038ee],![]);}async['updateJob'](_0x85c5f9,_0x201e64={},_0x10b1f1={}){const _0x425951=_0x482dd7,_0x408bf5=_0x10b1f1&&_0x10b1f1['txn'];if(!_0x408bf5)return this['_w'](_0x425951(0x373),[_0x85c5f9,_0x201e64]);const {next:_0x6d29d3,version:_0x13652e}=this['_n'](_0x425951(0x8f2),[_0x85c5f9,_0x201e64],![]);_0x408bf5['update'](_0x425951(0x4ed),_0x85c5f9,_0x6d29d3,{'ifVersion':_0x13652e});let _0x54cf8f;if(_0x425951(0x6c2)in _0x201e64){if(_0x201e64['payload']===undefined){if(this[_0x425951(0x67a)][_0x425951(0x4c9)](_0x425951(0x2b7),_0x85c5f9))_0x408bf5[_0x425951(0x694)]('~queue_payloads',_0x85c5f9);}else _0x408bf5[_0x425951(0x4a2)](_0x425951(0x2b7),_0x85c5f9,_0x201e64['payload']);_0x54cf8f=_0x201e64[_0x425951(0x6c2)];}else _0x54cf8f=this['env'][_0x425951(0x341)]('~queue_payloads',_0x85c5f9);return{..._0x6d29d3,'payload':_0x54cf8f};}async['removeJob'](_0x1a625f,_0x5cfa38={}){const _0x2ba8f2=_0x482dd7,_0x14acf7=_0x5cfa38&&_0x5cfa38['txn'];if(!_0x14acf7)return this['_w'](_0x2ba8f2(0x32e),[_0x1a625f]);if(!_0x1a625f)throw new _0x24f3d5(_0x2ba8f2(0x5ec),_0x2ba8f2(0x917));if(!this[_0x2ba8f2(0x67a)][_0x2ba8f2(0x4c9)](_0x2ba8f2(0x4ed),_0x1a625f))return![];_0x14acf7[_0x2ba8f2(0x694)](_0x2ba8f2(0x4ed),_0x1a625f);if(this['env'][_0x2ba8f2(0x4c9)]('~queue_payloads',_0x1a625f))_0x14acf7[_0x2ba8f2(0x694)](_0x2ba8f2(0x2b7),_0x1a625f);if(typeof _0x14acf7[_0x2ba8f2(0x457)]===_0x2ba8f2(0x84a))_0x14acf7[_0x2ba8f2(0x457)](()=>this['_n']('removeJobLogsAfterCommit',[_0x1a625f]));return!![];}async['cancelJob'](_0x13c59e){const _0x2d1d27=_0x482dd7;return this['_w'](_0x2d1d27(0x553),[_0x13c59e]);}async['retryJob'](_0x48692a){const _0xbc10ea=_0x482dd7;return this['_w'](_0xbc10ea(0x747),[_0x48692a]);}async['_clearChunked'](_0x3e3d34,_0x1842a0,_0x2cbcb3){const _0x28b68e=_0x482dd7,_0x5454df=this['_n'](_0x28b68e(0x8b8),[_0x1842a0??null,_0x2cbcb3??0x0,_0x3e3d34]),_0xd27b25=0x1f4;for(let _0x19e7bd=0x0;_0x19e7bd<_0x5454df[_0x28b68e(0x7e0)];_0x19e7bd+=_0xd27b25){this['_n'](_0x28b68e(0x77b),[_0x5454df[_0x28b68e(0x836)](_0x19e7bd,_0x19e7bd+_0xd27b25),_0x19e7bd,_0x5454df[_0x28b68e(0x7e0)],_0x1842a0??null]);if(_0x19e7bd+_0xd27b25<_0x5454df['length'])await new Promise(_0x3f72cc=>setImmediate(_0x3f72cc));}return this['_n'](_0x28b68e(0x23a),[_0x5454df[_0x28b68e(0x7e0)],_0x1842a0??null]),await new Promise(_0x4c251d=>setImmediate(_0x4c251d)),_0x5454df[_0x28b68e(0x7e0)];}async[_0x482dd7(0x48b)](_0x3ac724,_0x470702){const _0xfd8d76=_0x482dd7;return this[_0xfd8d76(0x22c)](_0xfd8d76(0x7a1),_0x3ac724,_0x470702);}async[_0x482dd7(0x72d)](_0x4112e9,_0x5d43ee){const _0x4c8737=_0x482dd7;return this[_0x4c8737(0x22c)]('failed',_0x4112e9,_0x5d43ee);}async[_0x482dd7(0x6a8)](_0x133ced,_0x451674){const _0x208d7c=_0x482dd7;return this['_w'](_0x208d7c(0x6a8),[_0x133ced??null,_0x451674??0x0]);}async[_0x482dd7(0x784)](_0x30c115,_0x5d6a6f){const _0x5d5f4a=_0x482dd7;return this['_w'](_0x5d5f4a(0x784),[_0x30c115??null,_0x5d6a6f??0x0]);}async['appendJobLog'](_0x37108b,_0x2a69fa,_0x5201cd){return this['_w']('appendJobLog',[_0x37108b,_0x2a69fa,_0x5201cd]);}async[_0x482dd7(0x357)](_0x31ebd9,_0x2d6b52={}){const _0x75db86=_0x482dd7;return this['_n'](_0x75db86(0x357),[_0x31ebd9,_0x2d6b52],![]);}async[_0x482dd7(0x6e5)](_0x47ee77,_0x1e1c81={}){const _0x213e63=_0x482dd7,{txn:_0xf9c003,..._0x5deef4}=_0x1e1c81||{};if(!_0xf9c003)return this['_w'](_0x213e63(0x6e5),[_0x47ee77,_0x5deef4]);const _0x2c2fba=(_0x2152ea,_0xb3694c,_0x13c5b1,_0x3b85a2)=>{const _0x1dbc8d=_0x213e63,_0x48eb94=Math['trunc'](Number(_0x2152ea));return Number[_0x1dbc8d(0x35c)](_0x48eb94)?Math[_0x1dbc8d(0x644)](_0x3b85a2,Math[_0x1dbc8d(0x3d2)](_0x13c5b1,_0x48eb94)):_0xb3694c;},_0x45eb2c=typeof _0x47ee77==='string'?_0x47ee77[_0x213e63(0x6b5)]():'';if(!_0x45eb2c)throw new Error(_0x213e63(0x401));const _0x33df1e=_0x2c2fba(_0x5deef4[_0x213e63(0x1e8)],0x0,0x0,0x3b9aca00);_0xf9c003[_0x213e63(0x4a2)](_0x213e63(0x8d3),_0x45eb2c,{'id':_0x45eb2c,'tokens':_0x2c2fba(_0x5deef4[_0x213e63(0x403)],_0x33df1e,0x0,_0x33df1e),'capacity':_0x33df1e,'refill_amount':_0x2c2fba(_0x5deef4['refill_amount'],0x0,0x0,0x3b9aca00),'refill_every':_0x2c2fba(_0x5deef4['refill_every'],0x0,0x0,0x16d*0x18*0x36ee80),'updated':Date[_0x213e63(0x274)]()});}async['updateBucket'](_0x5e3e9f,_0x851d54){const _0x4364c4=_0x482dd7;return this['_w'](_0x4364c4(0x918),[_0x5e3e9f,_0x851d54]);}async[_0x482dd7(0x469)](_0x62d3fe){const _0x1bcda8=_0x482dd7;return this['_w'](_0x1bcda8(0x469),[_0x62d3fe]);}['getBucket'](_0x1f4751){const _0x530e45=_0x482dd7,_0x2123e0=this['_n'](_0x530e45(0x21d),[_0x1f4751],![]);return _0x2123e0===null&&typeof _0x1f4751===_0x530e45(0x6d1)&&_0x1f4751['trim']()?undefined:_0x2123e0;}async['tryClaimTokens'](_0xf1e23b,_0x5f2cb6){const _0x44ecf6=_0x482dd7;return this['_w'](_0x44ecf6(0x547),[_0xf1e23b,_0x5f2cb6]);}async[_0x482dd7(0x20a)](_0x1a0235,_0x38ae12={}){const _0x222250=_0x482dd7;return this['_w'](_0x222250(0x20a),[_0x1a0235,_0x38ae12]);}async[_0x482dd7(0x268)](_0x302405){const _0xab7c22=_0x482dd7;return this['_n'](_0xab7c22(0x268),[_0x302405],![]);}async[_0x482dd7(0x72f)](){const _0x15ea3d=_0x482dd7;return this['_n'](_0x15ea3d(0x72f),[],![]);}async[_0x482dd7(0x64e)](_0x344110){return this['_w']('removeJobType',[_0x344110]);}[_0x482dd7(0x5d8)](_0x4972d3){const _0x166514=_0x482dd7;return this['_n'](_0x166514(0x5d8),[_0x4972d3]);}['resumeJobType'](_0x5f48fb){const _0x33e540=_0x482dd7;return this['_n'](_0x33e540(0x80b),[_0x5f48fb]);}[_0x482dd7(0x375)](_0x218128){const _0x45b743=_0x482dd7;return this['_n'](_0x45b743(0x375),[_0x218128]);}async['setJobTypeSchema'](_0x54c25e,_0x5d211d,_0x43795d=![]){const _0x5222db=_0x482dd7;return this['_w'](_0x5222db(0x207),[_0x54c25e,_0x5d211d,_0x43795d]);}async[_0x482dd7(0x662)](_0x5d41e2){return this['_w']('removeJobTypeSchema',[_0x5d41e2]);}async['samplePayloads'](_0x10ac64,_0x428d22=0x5){const _0x113c2c=_0x482dd7;return this['_n'](_0x113c2c(0x3f0),[_0x10ac64,_0x428d22],![]);}async[_0x482dd7(0x525)](_0x30b7d7){const _0x46706a=_0x482dd7;return this['_n'](_0x46706a(0x75f),[_0x30b7d7]);}async[_0x482dd7(0x8b1)](_0x46887d=0x7530){const _0x32a8ed=_0x482dd7;await Promise['allSettled']([...this[_0x32a8ed(0x838)]][_0x32a8ed(0x59f)](_0x4cf561=>_0x4cf561[_0x32a8ed(0x61d)](_0x46887d)));const _0x39a74e=this['_n']('stopAll',[0x0]);return this[_0x32a8ed(0x838)][_0x32a8ed(0x510)](),_0x39a74e;}async['killAll'](){const _0x53806a=_0x482dd7,_0x1d0454=this['_n'](_0x53806a(0x719),[]);return this['_workers'][_0x53806a(0x510)](),_0x1d0454;}['process'](_0x1706a8,_0x18e644,_0x31d7b6){const _0x16470e=_0x482dd7;let _0x5cd052,_0x413c3d;if(Array[_0x16470e(0x239)](_0x1706a8)){if(typeof _0x18e644===_0x16470e(0x84a))throw new _0x24f3d5(_0x16470e(0x6cc),_0x16470e(0x917));_0x413c3d=_0x18e644??{};if(_0x413c3d[_0x16470e(0x897)]!=null&&typeof _0x413c3d['admission']!=='function')throw new _0x24f3d5(_0x16470e(0x6a2),_0x16470e(0x917));if(_0x1706a8[_0x16470e(0x7e0)]===0x0)throw new _0x24f3d5('process(entries)\x20requires\x20at\x20least\x20one\x20entry',_0x16470e(0x917));_0x5cd052=_0x1706a8[_0x16470e(0x59f)](_0x229ed7=>{const _0x1b294b=_0x16470e;if(!_0x229ed7||typeof _0x229ed7['type']!==_0x1b294b(0x6d1)||!_0x229ed7[_0x1b294b(0x326)])throw new _0x24f3d5(_0x1b294b(0x32b),_0x1b294b(0x917));if(typeof _0x229ed7['handler']!==_0x1b294b(0x84a))throw new _0x24f3d5(_0x1b294b(0x1c1)+_0x229ed7[_0x1b294b(0x326)]+_0x1b294b(0x56d),_0x1b294b(0x917));return{..._0x229ed7};});}else{_0x413c3d=_0x31d7b6??{};if(typeof _0x18e644!=='function')throw new _0x24f3d5('process()\x20entry\x20\x22'+_0x1706a8+'\x22\x20requires\x20a\x20`handler`\x20function',_0x16470e(0x917));_0x5cd052=[{'type':_0x1706a8,'handler':_0x18e644,..._0x31d7b6??{}}];}const _0x293f7=this[_0x16470e(0x709)];for(const _0x7c4351 of _0x5cd052){const _0x3ff7f5=_0x7c4351[_0x16470e(0x7b7)];_0x7c4351[_0x16470e(0x7b7)]=function(..._0xd4ff9d){const _0x37839c=_0x16470e;return _0x293f7[_0x37839c(0x1f7)]()[_0x37839c(0x478)](()=>_0x3ff7f5[_0x37839c(0x24f)](this,_0xd4ff9d));};}const _0x250eeb=this['_n'](_0x16470e(0x3c5),[_0x5cd052,_0x413c3d]),_0x5d3f94=this,_0x39940a={'id':_0x250eeb['id'],'type':_0x250eeb[_0x16470e(0x326)],get 'running'(){const _0x2e578d=_0x16470e;return _0x5d3f94['_n'](_0x2e578d(0x66d),[_0x250eeb['id']],![])[_0x2e578d(0x6f8)];},'isRunning'(){const _0x28e87a=_0x16470e;return _0x5d3f94['_n'](_0x28e87a(0x66d),[_0x250eeb['id']],![])[_0x28e87a(0x6f8)];},async 'stop'(_0x33994d=0x7530){const _0x306b46=_0x16470e;_0x5d3f94['_n'](_0x306b46(0x563),[_0x250eeb['id']]);const _0x5869a8=Date[_0x306b46(0x274)]()+_0x33994d;while(_0x5d3f94['_n'](_0x306b46(0x66d),[_0x250eeb['id']],![])[_0x306b46(0x328)]>0x0&&Date[_0x306b46(0x274)]()<_0x5869a8)await new Promise(_0xcbf067=>setTimeout(_0xcbf067,0x2));_0x5d3f94['_n'](_0x306b46(0x294),[_0x250eeb['id']]),_0xd7f963[_0x306b46(0x7c6)](),_0x5d3f94[_0x306b46(0x838)][_0x306b46(0x610)](_0x39940a);},async 'kill'(){const _0x58f8fc=_0x16470e;_0x5d3f94['_n'](_0x58f8fc(0x70f),[_0x250eeb['id']]),_0x5d3f94[_0x58f8fc(0x838)][_0x58f8fc(0x610)](_0x39940a);}};return this['_workers'][_0x16470e(0x737)](_0x39940a),_0x39940a;}[_0x482dd7(0x462)](_0x1010a2){const _0x266d82=_0x482dd7;throw new _0x24f3d5('queue.worker(\x27'+_0x1010a2+'\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'+_0x1010a2+_0x266d82(0x778),_0x266d82(0x818));}[_0x482dd7(0x74b)](_0x4b4eea){const _0x4b0138=_0x482dd7;return this[_0x4b0138(0x462)](_0x4b4eea);}}return queue={'OKDBQueue':_0x1a48a7},queue;}var timemachine,hasRequiredTimemachine;function requireTimemachine(){const _0x5ddeb4=_0x7b0c8f;if(hasRequiredTimemachine)return timemachine;hasRequiredTimemachine=0x1;const {fromArray:_0x340343}=requireIterable();class _0xbdf6c3{constructor(_0x4b78ed){const _0x2d636b=_0xf27e;this[_0x2d636b(0x67a)]=_0x4b78ed,this[_0x2d636b(0x709)]=_0x4b78ed[_0x2d636b(0x709)];const _0x163fc9=(_0x5e859a,_0x3a334e)=>this['_n'](_0x5e859a,_0x3a334e,![]);this['_store']={'getDiffs':(_0x43dbc5,_0x5a44a3,_0x357add)=>_0x163fc9(_0x2d636b(0x31e),[_0x43dbc5,_0x5a44a3,_0x357add||{}]),'hasDiff':(_0x515b66,_0x2cfe78,_0x410087)=>_0x163fc9(_0x2d636b(0x5ff),[_0x515b66,_0x2cfe78,_0x410087]),'getHead':(_0x3b7412,_0x4bea8a)=>_0x163fc9(_0x2d636b(0x2b1),[_0x3b7412,_0x4bea8a])??null,'getHeadCount':_0x345709=>_0x163fc9(_0x2d636b(0x7ca),[_0x345709]),'getTotalHeadCount':()=>_0x163fc9(_0x2d636b(0x57b),[]),'getDiffsInRange':(_0x431579,_0x379e89,_0x7a36d7)=>_0x163fc9(_0x2d636b(0x45d),[_0x431579??null,_0x379e89,_0x7a36d7]),'getConfig':()=>_0x163fc9('storeGetConfig',[])??null,'getCursor':()=>this['_n'](_0x2d636b(0x49e),[],![])??null,get 'db'(){const _0x5eb142=_0x2d636b;try{return _0x163fc9(_0x5eb142(0x57b),[]),{};}catch{return null;}}};}get['_registrations'](){const _0x1c170c=_0xf27e,_0x3bf1a4=(this[_0x1c170c(0x67a)][_0x1c170c(0x800)]?.[_0x1c170c(0x7a7)]?.()||[])[_0x1c170c(0x4bf)](_0x2cbccc=>String(_0x2cbccc[_0x1c170c(0x433)]||'')[_0x1c170c(0x5ae)](_0x1c170c(0x1d6)))[_0x1c170c(0x7e0)];return{'size':_0x3bf1a4};}['_n'](_0x334d87,_0x3cc796,_0x4b9024=!![]){const _0x3db82e=_0xf27e;return this[_0x3db82e(0x709)][_0x3db82e(0x4e8)]('tm',this[_0x3db82e(0x67a)][_0x3db82e(0x264)],_0x334d87,_0x3cc796,_0x4b9024);}async[_0x5ddeb4(0x82b)](_0x51e281){return this['_n']('enable',[_0x51e281??null]);}async[_0x5ddeb4(0x3e6)](_0x22fa86){const _0x23b043=_0x5ddeb4;return this['_n'](_0x23b043(0x3e6),[_0x22fa86??null]);}async[_0x5ddeb4(0x7c1)](){const _0x24c116=_0x5ddeb4;return this['_n'](_0x24c116(0x7c1),[]);}async['disableAll'](){const _0xee1093=_0x5ddeb4;return this['_n'](_0xee1093(0x640),[]);}async[_0x5ddeb4(0x43a)](_0x23330c){const _0x34a779=_0x5ddeb4;return this['_n'](_0x34a779(0x43a),[_0x23330c??null]);}async['dropAll'](){const _0x479d6a=_0x5ddeb4;return this['_n'](_0x479d6a(0x2c0),[]);}[_0x5ddeb4(0x54d)](_0x4eebdf){const _0x54957c=_0x5ddeb4;return this['_n'](_0x54957c(0x54d),[_0x4eebdf??null],![]);}['list'](){const _0x31ef65=_0x5ddeb4;return this['_n'](_0x31ef65(0x7a7),[],![]);}[_0x5ddeb4(0x602)](_0x3d6673){const _0x3c642a=_0x5ddeb4;return this['_n'](_0x3c642a(0x602),[_0x3d6673??null],![]);}[_0x5ddeb4(0x726)](_0x59df51){const _0x572704=_0x5ddeb4;if(!_0x59df51)return this['_n']('getLegacyCursor',[],![]);return this['_n'](_0x572704(0x726),[_0x59df51],![]);}[_0x5ddeb4(0x49e)](){return this['_n']('getLegacyCursor',[],![]);}[_0x5ddeb4(0x217)](_0x5ce57a,_0x31e52f,_0x1478a4){return this['_n']('getStateAt',[_0x5ce57a,_0x31e52f,_0x1478a4],![]);}[_0x5ddeb4(0x741)](_0x53132a,_0x39f673,_0x5e4e79){const _0x2310ea=_0x5ddeb4;return this['_n'](_0x2310ea(0x741),[_0x53132a,_0x39f673,_0x5e4e79||{}],![]);}[_0x5ddeb4(0x8c0)](_0x38de9f,_0x57e139,_0xa41ae3){const _0x52e0f7=_0x5ddeb4;return this['_n']('getChanges',[_0x38de9f??null,_0x57e139,_0xa41ae3],![])[Symbol[_0x52e0f7(0x606)]]();}async['flush'](_0xa17b53){const _0x4c2ca2=_0x5ddeb4;return this['_n'](_0x4c2ca2(0x1db),[_0xa17b53??null]);}}return timemachine={'OKDBTimeMachine':_0xbdf6c3},timemachine;}var files,hasRequiredFiles;function requireFiles(){const _0x582d2d=_0x7b0c8f;if(hasRequiredFiles)return files;hasRequiredFiles=0x1;const _0x1983a7=require$$0,{Readable:_0x3a156e}=require$$1,{OKDBError:_0x5e9f64,optionsArg:_0x3df009,invalidArgument:_0x343f38}=requireErrors(),{RawDb:_0x23d51a}=requireRawdb();async function _0xbbe17a(_0x3cd150){const _0x405551=_0xf27e;if(Buffer[_0x405551(0x5d9)](_0x3cd150))return _0x3cd150;if(_0x3cd150 instanceof Uint8Array)return Buffer[_0x405551(0x875)](_0x3cd150);if(typeof _0x3cd150===_0x405551(0x6d1))return Buffer[_0x405551(0x875)](_0x3cd150);const _0x1fa6f5=[];for await(const _0x3e6f57 of _0x3cd150)_0x1fa6f5[_0x405551(0x247)](Buffer[_0x405551(0x5d9)](_0x3e6f57)?_0x3e6f57:Buffer[_0x405551(0x875)](_0x3e6f57));return Buffer[_0x405551(0x522)](_0x1fa6f5);}class _0x14906e{constructor(_0x233651){const _0x187138=_0xf27e;this[_0x187138(0x67a)]=_0x233651,this[_0x187138(0x709)]=_0x233651[_0x187138(0x709)];}['_n'](_0x5ca33b,_0x469b59,_0x57ead7=!![]){const _0x420986=_0xf27e;return this['okdb'][_0x420986(0x4e8)](_0x420986(0x81e),this[_0x420986(0x67a)][_0x420986(0x264)],_0x5ca33b,_0x469b59,_0x57ead7);}[_0x582d2d(0x8a9)](){return!![];}[_0x582d2d(0x61d)](){}async[_0x582d2d(0x600)](){const _0x4332f2=_0x582d2d;this['_n'](_0x4332f2(0x6d6),[]);}async[_0x582d2d(0x8ef)](_0x307cc5,_0x1e242c){const _0x5e5ccc=_0x582d2d;return this[_0x5e5ccc(0x709)][_0x5e5ccc(0x7e3)](this['_n'](_0x5e5ccc(0x79a),[_0x307cc5,await _0xbbe17a(_0x1e242c)]));}get['_blobStatusDb'](){const _0x878345=_0x582d2d;return this[_0x878345(0x38d)]||(this['__blobStatusDb']=new _0x23d51a(this['env'],_0x878345(0x3f4)));}async[_0x582d2d(0x5b5)](_0x438ce7){const _0x26bed8=_0x582d2d;return this[_0x26bed8(0x4e3)][_0x26bed8(0x54f)](_0x438ce7);}async['upload'](_0x3936d1){const _0x3e28fd=_0x582d2d,{id:_0x45d808,stream:_0x16b5ee,mime:mime=_0x3e28fd(0x229),path:_0x43ab96='',txn:txn=null}=_0x3df009(_0x3936d1);if(!_0x45d808)throw _0x343f38('files.upload:\x20id',_0x3e28fd(0x7e8),_0x45d808);if(!_0x16b5ee)throw _0x343f38(_0x3e28fd(0x5b9),_0x3e28fd(0x331),_0x16b5ee);const _0x5d93c1=await _0xbbe17a(_0x16b5ee);if(txn){const _0x528e83=this['_n'](_0x3e28fd(0x5d3),[_0x45d808,_0x5d93c1,{'mime':mime,'path':_0x43ab96}]);return txn[_0x3e28fd(0x4a2)](_0x3e28fd(0x400),_0x45d808,_0x528e83[_0x3e28fd(0x620)]),txn[_0x3e28fd(0x457)](()=>this['_n'](_0x3e28fd(0x62c),[_0x528e83[_0x3e28fd(0x71c)]])),txn['onUndo'](()=>this['_n'](_0x3e28fd(0x6cd),[_0x528e83[_0x3e28fd(0x71c)]])),_0x528e83[_0x3e28fd(0x620)];}return this[_0x3e28fd(0x709)][_0x3e28fd(0x7e3)](this['_n'](_0x3e28fd(0x5cc),[_0x45d808,_0x5d93c1,{'mime':mime,'path':_0x43ab96}]));}['get'](_0x228e2c){const _0x2e35f3=_0x582d2d;return this['_n'](_0x2e35f3(0x341),[_0x228e2c],![])??null;}['streamByHash'](_0x52fde9){const _0x81d4f5=_0x582d2d,_0x137716=this[_0x81d4f5(0x601)](_0x52fde9);if(!_0x1983a7[_0x81d4f5(0x608)](_0x137716))throw Object['assign'](new Error(_0x81d4f5(0x693)+_0x52fde9),{'status':0x194});return this[_0x81d4f5(0x819)](_0x52fde9);}['_blobStream'](_0x5b6b24){const _0x32bd90=0x100*0x400,_0x394ebd=this;let _0x11d115=0x0;return new _0x3a156e({'highWaterMark':_0x32bd90,'read'(){const _0x2a639c=_0xf27e;let _0x58ea2e;try{const _0x33d1a3=_0x394ebd['_n'](_0x2a639c(0x449),[_0x5b6b24,_0x11d115,_0x32bd90],![]);_0x58ea2e=Buffer[_0x2a639c(0x5d9)](_0x33d1a3)?_0x33d1a3:Buffer[_0x2a639c(0x875)](_0x33d1a3);}catch(_0x25daec){this[_0x2a639c(0x850)](_0x25daec);return;}_0x11d115+=_0x58ea2e[_0x2a639c(0x7e0)];if(_0x58ea2e[_0x2a639c(0x7e0)])this[_0x2a639c(0x247)](_0x58ea2e);if(_0x58ea2e[_0x2a639c(0x7e0)]<_0x32bd90)this['push'](null);}});}async[_0x582d2d(0x2e1)](_0x5585c9){const _0x291286=_0x582d2d;return this[_0x291286(0x709)][_0x291286(0x22a)](this['_n'](_0x291286(0x2e1),[_0x5585c9],![]));}async[_0x582d2d(0x46b)](_0x5cea21){const _0x50151a=_0x582d2d,_0x1f8ae1=this[_0x50151a(0x341)](_0x5cea21);if(!_0x1f8ae1)throw Object[_0x50151a(0x7de)](new Error(_0x50151a(0x3eb)+_0x5cea21),{'status':0x194});const _0x580f0f=this[_0x50151a(0x601)](_0x1f8ae1[_0x50151a(0x318)]);if(!_0x1983a7[_0x50151a(0x608)](_0x580f0f))throw Object[_0x50151a(0x7de)](new Error(_0x50151a(0x26a)+_0x5cea21),{'status':0x194});return{'stream':this[_0x50151a(0x819)](_0x1f8ae1[_0x50151a(0x318)]),'record':_0x1f8ae1};}async[_0x582d2d(0x694)](_0x3a66a1,_0xc5645f){const _0x3038ec=_0x582d2d,{txn:txn=null}=_0x3df009(_0xc5645f);if(txn){const _0x4505ef=this['_n'](_0x3038ec(0x516),[_0x3a66a1]);txn['remove'](_0x3038ec(0x400),_0x3a66a1),txn['onDo'](()=>this['_n'](_0x3038ec(0x62c),[_0x4505ef['hook']])),txn[_0x3038ec(0x69b)](()=>this['_n'](_0x3038ec(0x6cd),[_0x4505ef[_0x3038ec(0x71c)]]));return;}return this['okdb'][_0x3038ec(0x7e3)](this['_n'](_0x3038ec(0x694),[_0x3a66a1]));}async[_0x582d2d(0x794)](_0x1f4d11,_0x1f3cd8={}){const _0x33ab34=_0x582d2d;return this['_n'](_0x33ab34(0x794),[_0x1f4d11,_0x1f3cd8],![]);}[_0x582d2d(0x857)](_0x4d352d){const _0x1c5df7=_0x582d2d;return this['_n'](_0x1c5df7(0x857),[_0x4d352d],![]);}[_0x582d2d(0x488)](){const _0x106f0f=_0x582d2d;return this['_n'](_0x106f0f(0x488),[],![]);}['gcOrphanedBlobs'](_0x178c38){const _0x4170e7=_0x582d2d,{minAgeMs:_0x41794f}=_0x3df009(_0x178c38);return this['_n'](_0x4170e7(0x455),[_0x41794f??null]);}[_0x582d2d(0x698)](_0x4feadc,_0x2a9e22){const _0x2a96ca=_0x582d2d;if(typeof _0x2a9e22!=='function')throw new _0x5e9f64(_0x2a96ca(0x8e8),_0x2a96ca(0x917));const _0x21d5bd=this['_n'](_0x2a96ca(0x698),[_0x4feadc,_0x2a9e22]);return()=>this['_n'](_0x2a96ca(0x78c),[_0x21d5bd]);}async['indexContent'](_0x22d72d){const _0x1b9150=_0x582d2d;return _0x22d72d=_0x3df009(_0x22d72d),this['_n'](_0x1b9150(0x890),[_0x22d72d]);}async[_0x582d2d(0x52e)](_0x351ded){const _0x641a21=_0x582d2d,{peerIds:_0x22b3ea}=_0x3df009(_0x351ded);return this['_n'](_0x641a21(0x52e),[_0x22b3ea??null]);}['_blobPath'](_0x113a10){const _0x102dd9=_0x582d2d;if(typeof _0x113a10!=='string')return require$$4[_0x102dd9(0x1cc)](this[_0x102dd9(0x89c)],_0x113a10['slice'](0x0,0x2),_0x113a10[_0x102dd9(0x836)](0x2));return this['_n'](_0x102dd9(0x64a),[_0x113a10],![]);}get['_blobsDir'](){const _0x48db71=_0x582d2d;return this['_n'](_0x48db71(0x8b4),[],![]);}}return files={'OKDBFiles':_0x14906e},files;}var engines,hasRequiredEngines;function requireEngines(){const _0x1f705=_0x7b0c8f;if(hasRequiredEngines)return engines;hasRequiredEngines=0x1;const {OKDBError:_0x463872}=requireErrors(),_0x2f53b6=requireBridge(),_0x51fa33=new Set([_0x1f705(0x42b),_0x1f705(0x724),_0x1f705(0x281),_0x1f705(0x244)]),_0xdea674=new Set(['count',_0x1f705(0x809),_0x1f705(0x6ea)]),_0x4eeca1=[_0x1f705(0x277),'patchConfig',_0x1f705(0x42f),_0x1f705(0x519),'install','stop',_0x1f705(0x77f)],_0x1c5d0d={'embedder':new Set(['dims',_0x1f705(0x491)])},_0x410881=new Set([_0x1f705(0x628),_0x1f705(0x800),'queue-worker']);class _0x521c6d{constructor(_0xdce018,_0x2b2723,_0x18cc28,_0x29d9e1){const _0x982f82=_0x1f705;this[_0x982f82(0x5cb)]=_0xdce018,this['key']=_0x2b2723,this[_0x982f82(0x326)]=_0x18cc28,this[_0x982f82(0x264)]=_0x29d9e1,this[_0x982f82(0x29e)]=_0x18cc28;}[_0x1f705(0x49c)](){const _0x372bf9=_0x1f705;return this[_0x372bf9(0x5cb)]['_n'](_0x372bf9(0x809),[this[_0x372bf9(0x326)],this['name']],![]);}get[_0x1f705(0x31b)](){const _0x15fd37=_0x1f705;return this[_0x15fd37(0x49c)]()[_0x15fd37(0x31b)];}get['_store'](){const _0x13af7f=_0x1f705,_0x12e0fa=this[_0x13af7f(0x49c)]()[_0x13af7f(0x43d)];return _0x12e0fa?this[_0x13af7f(0x5cb)]['okdb'][_0x13af7f(0x4b1)]['get'](_0x12e0fa):undefined;}get[_0x1f705(0x902)](){const _0x3c7025=_0x1f705;return this[_0x3c7025(0x49c)]()['docEntry'];}get['enabled'](){const _0x4f02ff=_0x1f705;return this[_0x4f02ff(0x49c)]()[_0x4f02ff(0x20e)];}get['isRunning'](){const _0x59f76c=_0x1f705;return this[_0x59f76c(0x49c)]()['isRunning'];}get[_0x1f705(0x602)](){const _0x32365a=_0x1f705;return this['_info']()[_0x32365a(0x602)];}get['reason'](){const _0x45179f=_0x1f705;return this[_0x45179f(0x49c)]()['reason'];}get[_0x1f705(0x1da)](){const _0x2bdd2e=_0x1f705,_0x39f4d3=this['_info']()[_0x2bdd2e(0x1da)];return _0x39f4d3?Object['assign'](new Error(_0x39f4d3[_0x2bdd2e(0x63a)]),{'code':_0x39f4d3['code']}):null;}get['runtimeState'](){const _0x14cdd1=_0x1f705;return this['_info']()[_0x14cdd1(0x411)];}get[_0x1f705(0x552)](){const _0x9d3af1=_0x1f705;return this[_0x9d3af1(0x5cb)][_0x9d3af1(0x6db)]['get'](this[_0x9d3af1(0x326)])??null;}get[_0x1f705(0x8ed)](){const _0x18a7d0=_0x1f705;if(!this[_0x18a7d0(0x49c)]()['hasApi'])return null;const _0x14cf1c=this;return new Proxy({},{'get'(_0x455047,_0x443180){const _0x488927=_0x18a7d0;if(typeof _0x443180===_0x488927(0x339)||_0x443180==='then')return undefined;if(_0x1c5d0d[_0x14cf1c[_0x488927(0x326)]]&&_0x1c5d0d[_0x14cf1c['type']][_0x488927(0x5ed)](_0x443180))return _0x14cf1c[_0x488927(0x5cb)]['_n'](_0x488927(0x1c7),[_0x14cf1c[_0x488927(0x326)],_0x14cf1c[_0x488927(0x264)],_0x443180,[]],![])[_0x488927(0x59b)];if(_0x14cf1c[_0x488927(0x326)]==='indexer'&&_0x443180===_0x488927(0x1db))return async(_0x5626b1={})=>{const _0x5d7e85=_0x488927,_0x5c6870=(_0x270e43,..._0x137e9c)=>_0x14cf1c['_facade']['_n']('apiCall',[_0x14cf1c['type'],_0x14cf1c[_0x5d7e85(0x264)],_0x270e43,_0x137e9c],!![])[_0x5d7e85(0x59b)],_0x408469=_0x5c6870('flushMaxWait',_0x5626b1??{}),_0x4cdc63=Date[_0x5d7e85(0x274)]();for(;;){const _0x46253a=await _0x14cf1c['_facade']['okdb'][_0x5d7e85(0x83d)](()=>_0x5c6870(_0x5d7e85(0x86f)));if(_0x46253a[_0x5d7e85(0x273)]>=_0x46253a[_0x5d7e85(0x62a)])return;Date['now']()-_0x4cdc63>=_0x408469&&_0x5c6870(_0x5d7e85(0x527),_0x5626b1??{},_0x46253a),await new Promise(_0x37dad8=>setTimeout(_0x37dad8,0x3));}};return(..._0x226d2c)=>{const _0x56178c=_0x488927,_0x10574c=()=>_0x14cf1c[_0x56178c(0x5cb)]['_n'](_0x56178c(0x1c7),[_0x14cf1c[_0x56178c(0x326)],_0x14cf1c[_0x56178c(0x264)],_0x443180,_0x226d2c],!![]),_0x19032f=_0x6ef339=>{const _0x2443ca=_0x56178c;if(_0x6ef339&&_0x6ef339['__absent'])throw new TypeError(_0x2443ca(0x665)+_0x443180+'\x27');return _0x6ef339[_0x2443ca(0x59b)];};if(_0x51fa33['has'](_0x14cf1c[_0x56178c(0x326)])&&!_0xdea674[_0x56178c(0x5ed)](_0x443180)){const _0x3da1b3=_0x14cf1c['_facade']['okdb'];return _0x3da1b3[_0x56178c(0x8d4)](()=>_0x3da1b3['_macro'](_0x10574c))['then'](_0x19032f);}if(_0x410881[_0x56178c(0x5ed)](_0x14cf1c[_0x56178c(0x326)]))try{return Promise['resolve'](_0x19032f(_0x10574c()));}catch(_0x599416){return Promise['reject'](_0x599416);}return _0x19032f(_0x10574c());};}});}async[_0x1f705(0x222)](_0x41c83f={}){const _0x8e5c2a=_0x1f705;return await this[_0x8e5c2a(0x5cb)]['_nm']('load',[this['type'],this[_0x8e5c2a(0x264)],_0x41c83f]),this;}async[_0x1f705(0x8a9)](){const _0x19495d=_0x1f705;await this['_facade']['_nm']('engineStart',[this[_0x19495d(0x326)],this[_0x19495d(0x264)]]);}async[_0x1f705(0x61d)](_0xc83be9={}){const _0x258292=_0x1f705;await this['_facade'][_0x258292(0x686)](_0x258292(0x5be),[this[_0x258292(0x326)],this[_0x258292(0x264)],_0xc83be9]);}async[_0x1f705(0x8a0)](_0x21ab6b={}){const _0x19cb14=_0x1f705;return await this['_facade'][_0x19cb14(0x686)]('patchDeclaration',[this[_0x19cb14(0x326)],this[_0x19cb14(0x264)],_0x21ab6b]),this;}async['uninstall'](){const _0x121368=_0x1f705;await this[_0x121368(0x5cb)][_0x121368(0x686)](_0x121368(0x7dd),[this[_0x121368(0x326)],this[_0x121368(0x264)]]);}}class _0x2eb532{constructor(_0x73ba6,_0xd78ba8=null,_0xc4cb65=null){const _0x411ed7=_0x1f705;this[_0x411ed7(0x709)]=_0x73ba6,this[_0x411ed7(0x38f)]=_0xd78ba8,this[_0x411ed7(0x4e5)]=_0xd78ba8===null,this['_root']=_0xc4cb65||this,this[_0x411ed7(0x6db)]=this[_0x411ed7(0x4d0)]===this?_0x19dea8(this):this[_0x411ed7(0x4d0)][_0x411ed7(0x6db)],this[_0x411ed7(0x7a0)]=new Map();}['_n'](_0x51b4d8,_0xbf5e41,_0x2f843a=!![]){const _0xbc91c2=_0x1f705;return this[_0xbc91c2(0x709)]['_call'](_0xbc91c2(0x7ac),this['envName'],_0x51b4d8,_0xbf5e41,_0x2f843a);}[_0x1f705(0x686)](_0x5910ee,_0x3fcc5f){const _0x3a1294=_0x1f705;return this['okdb'][_0x3a1294(0x1e0)](_0x3a1294(0x7ac),this[_0x3a1294(0x38f)],_0x5910ee,_0x3fcc5f,!![]);}get[_0x1f705(0x67a)](){const _0x48df44=_0x1f705;return this[_0x48df44(0x38f)]?this[_0x48df44(0x709)][_0x48df44(0x67a)](this[_0x48df44(0x38f)]):null;}[_0x1f705(0x8b3)](_0x1c80fe){const _0x47b77b=_0x1f705;if(!_0x1c80fe)return null;let _0x3fa697=this[_0x47b77b(0x7a0)][_0x47b77b(0x341)](_0x1c80fe['key']);return!_0x3fa697&&(_0x3fa697=new _0x521c6d(this,_0x1c80fe['key'],_0x1c80fe['type'],_0x1c80fe[_0x47b77b(0x264)]),this[_0x47b77b(0x7a0)][_0x47b77b(0x8db)](_0x1c80fe['key'],_0x3fa697)),_0x3fa697;}[_0x1f705(0x7cf)](_0xa1eba6,_0x36ea03){const _0xc40bd1=_0x1f705;if(!_0xa1eba6||typeof _0xa1eba6!==_0xc40bd1(0x6d1))throw new _0x463872(_0xc40bd1(0x235),'ENGINE_INVALID_TYPE',{'type':_0xa1eba6});if(!_0x36ea03||typeof _0x36ea03!==_0xc40bd1(0x81a))throw new _0x463872(_0xc40bd1(0x512)+_0xa1eba6+_0xc40bd1(0x822),_0xc40bd1(0x799),{'type':_0xa1eba6});if(typeof _0x36ea03[_0xc40bd1(0x8a9)]!==_0xc40bd1(0x84a))throw new _0x463872('Engine\x20driver\x20for\x20\x22'+_0xa1eba6+_0xc40bd1(0x4f6),_0xc40bd1(0x901),{'type':_0xa1eba6});const _0x1bb4e0=this[_0xc40bd1(0x4d0)];if(_0x1bb4e0[_0xc40bd1(0x6db)][_0xc40bd1(0x5ed)](_0xa1eba6))throw new _0x463872(_0xc40bd1(0x3e5)+_0xa1eba6+'\x22',_0xc40bd1(0x526),{'type':_0xa1eba6});const _0x425dc9=_0x2f53b6[_0xc40bd1(0x92a)](_0x36ea03,this[_0xc40bd1(0x709)]),_0x50c669=_0x4eeca1['filter'](_0x242a99=>typeof _0x36ea03[_0x242a99]==='function'),_0x9565bf=_0x36ea03[_0xc40bd1(0x309)]&&typeof _0x36ea03[_0xc40bd1(0x309)]==='object'?_0x36ea03[_0xc40bd1(0x309)]:{};this[_0xc40bd1(0x709)][_0xc40bd1(0x4e8)](_0xc40bd1(0x7ac),null,_0xc40bd1(0x7cf),[_0xa1eba6,{'$id':_0x425dc9,'has':_0x50c669,'docs':_0x9565bf}]),_0x1bb4e0[_0xc40bd1(0x6db)]['_set'](_0xa1eba6,_0x36ea03);}get[_0x1f705(0x432)](){const _0x147dcf=_0x1f705;return this[_0x147dcf(0x709)]['_call'](_0x147dcf(0x7ac),null,_0x147dcf(0x792),[],![]);}get['orchestrator'](){const _0xc08d7c=this;return{get '_started'(){const _0x522bdd=_0xf27e;return _0xc08d7c[_0x522bdd(0x432)];}};}[_0x1f705(0x529)](_0x474f14){const _0x564fc7=_0x1f705;if(!_0x474f14||typeof _0x474f14!=='object')throw new _0x463872(_0x564fc7(0x853),_0x564fc7(0x40b));if(!_0x474f14['id']||typeof _0x474f14['id']!==_0x564fc7(0x6d1))throw new _0x463872(_0x564fc7(0x44c),'ENGINE_INVALID_TEMPLATE');if(![_0x564fc7(0x4ae),'pipeline'][_0x564fc7(0x566)](_0x474f14[_0x564fc7(0x472)]))throw new _0x463872('Engine\x20template\x20kind\x20must\x20be\x20\x22engine\x22\x20or\x20\x22pipeline\x22:\x20'+_0x474f14['id'],_0x564fc7(0x40b));if(typeof _0x474f14[_0x564fc7(0x50b)]!==_0x564fc7(0x84a))throw new _0x463872(_0x564fc7(0x6bf)+_0x474f14['id'],_0x564fc7(0x40b));const _0x24b83c=this[_0x564fc7(0x709)],_0x68cc79=typeof _0x474f14['inputSchema']==='function';return this['_n'](_0x564fc7(0x529),[{'id':_0x474f14['id'],'kind':_0x474f14[_0x564fc7(0x472)],'family':_0x474f14[_0x564fc7(0x5ad)]??null,'engineType':_0x474f14[_0x564fc7(0x29e)]??null,'pipelineFamily':_0x474f14[_0x564fc7(0x781)]??null,'recommended':_0x474f14[_0x564fc7(0x425)]===!![],'summary':_0x474f14['summary']??null,'description':_0x474f14[_0x564fc7(0x3d3)]??null,'inputSchema':_0x68cc79?null:_0x474f14['inputSchema']??null,'inputSchemaFn':_0x68cc79?()=>_0x474f14[_0x564fc7(0x474)](_0x24b83c):null,'defaults':_0x474f14[_0x564fc7(0x293)]??null,'notes':Array['isArray'](_0x474f14[_0x564fc7(0x26d)])?_0x474f14['notes']:[],'links':Array['isArray'](_0x474f14[_0x564fc7(0x8c1)])?_0x474f14[_0x564fc7(0x8c1)]:[],'build':(_0x9941ac,_0x691b80)=>_0x474f14[_0x564fc7(0x50b)](_0x9941ac??{},{'okdb':_0x24b83c,'envName':_0x691b80??null})}],![]);}['listTemplates'](_0x1b24f9){const _0x184a6c=_0x1f705;return this['_n'](_0x184a6c(0x70b),[_0x1b24f9??null],![]);}['getTemplate'](_0x289683){return this['_n']('getTemplate',[_0x289683],![]);}[_0x1f705(0x3d4)](_0x45e6c8,_0x2cb47c,_0x3347e4){const _0x5c773a=_0x1f705;return this['_n'](_0x5c773a(0x3d4),[_0x45e6c8,_0x2cb47c,_0x3347e4??this[_0x5c773a(0x38f)]],![]);}[_0x1f705(0x831)](){const _0x5d6738=_0x1f705;return this['_n'](_0x5d6738(0x831),[],![]);}async[_0x1f705(0x8a9)](){const _0x5cf953=_0x1f705;return this['_nm'](_0x5cf953(0x8a9),[]);}async[_0x1f705(0x61d)](){return this['_nm']('stop',[]);}async[_0x1f705(0x880)](_0x3c68e3,_0x40ceb3,_0x21b8c5={},_0x18cb50={},_0x30e3a4={}){const _0x43caac=_0x1f705;return this['_wrap'](await this[_0x43caac(0x686)](_0x43caac(0x880),[_0x3c68e3,_0x40ceb3,_0x21b8c5,_0x18cb50,_0x30e3a4]));}async[_0x1f705(0x68c)](_0xe48052,_0x239667,_0x57c1af={},_0x13189b={},_0x152e94={}){const _0x428f65=_0x1f705;return this[_0x428f65(0x8b3)](await this[_0x428f65(0x686)](_0x428f65(0x68c),[_0xe48052,_0x239667,_0x57c1af,_0x13189b,_0x152e94]));}[_0x1f705(0x4af)](_0x28a844,_0x374f44){const _0x2ee902=_0x1f705;return this[_0x2ee902(0x8b3)](this['_n'](_0x2ee902(0x4af),[_0x28a844,_0x374f44],![]));}[_0x1f705(0x1ee)](_0x5a2d03,_0x2c5c35){const _0x3f7f34=_0x1f705;return this[_0x3f7f34(0x8b3)](this['_n'](_0x3f7f34(0x1ee),[_0x5a2d03,_0x2c5c35],![]));}[_0x1f705(0x7a7)](_0x168545){const _0x2262f9=_0x1f705;return this['_n']('list',[_0x168545??null],![])['map'](_0x13d3d3=>this[_0x2262f9(0x8b3)](_0x13d3d3));}async[_0x1f705(0x2db)](_0x1026f2,_0x5bf000){const _0x51efea=_0x1f705;return this['_wrap'](await this[_0x51efea(0x686)]('restart',[_0x1026f2,_0x5bf000]));}async[_0x1f705(0x494)](_0x237417,_0x55e74c){const _0x13cb4b=_0x1f705;return this[_0x13cb4b(0x7a0)]['delete'](_0x237417+':'+_0x55e74c),this[_0x13cb4b(0x686)](_0x13cb4b(0x494),[_0x237417,_0x55e74c]);}async[_0x1f705(0x71a)](_0x51e799){const _0x487774=_0x1f705;return this[_0x487774(0x686)]('startNewEnginesFromSync',[_0x51e799]);}async[_0x1f705(0x87e)](){const _0x4f0a7f=_0x1f705;return this['_nm'](_0x4f0a7f(0x87e),[]);}}function _0x19dea8(_0x1249ae){const _0x200f45=_0x1f705,_0x1033a5=new Map();return{'has':_0x348522=>_0x1033a5[_0x200f45(0x5ed)](_0x348522)||_0x1249ae[_0x200f45(0x709)][_0x200f45(0x4e8)]('engines',null,'hasDriver',[_0x348522],![]),'get':_0x23aa12=>_0x1033a5[_0x200f45(0x341)](_0x23aa12),'set':()=>{const _0xfe13ac=_0x200f45;throw new _0x463872(_0xfe13ac(0x5b3),_0xfe13ac(0x917));},'_set':(_0x25b1f7,_0x127ab3)=>_0x1033a5[_0x200f45(0x8db)](_0x25b1f7,_0x127ab3),'keys':()=>_0x1033a5[_0x200f45(0x88a)](),'entries':()=>_0x1033a5['entries'](),'values':()=>_0x1033a5['values'](),get 'size'(){return _0x1033a5['size'];},[Symbol[_0x200f45(0x606)]]:()=>_0x1033a5[Symbol[_0x200f45(0x606)]]()};}class _0x4946d2{constructor(_0x5d3905,_0x5894aa=null){const _0x5c30a6=_0x1f705;this['okdb']=_0x5d3905,this[_0x5c30a6(0x38f)]=_0x5894aa;}['_n'](_0x4fec33,_0x510970,_0x3b95c9=!![]){const _0x27f7f8=_0x1f705;return this['okdb'][_0x27f7f8(0x4e8)](_0x27f7f8(0x38e),this[_0x27f7f8(0x38f)],_0x4fec33,_0x510970,_0x3b95c9);}['_nm'](_0x23c921,_0x39ebe2){const _0x584819=_0x1f705;return this[_0x584819(0x709)]['_callMacro'](_0x584819(0x38e),this[_0x584819(0x38f)],_0x23c921,_0x39ebe2,!![]);}get[_0x1f705(0x8e9)](){const _0x227ed6=_0x1f705;return this[_0x227ed6(0x38f)]===null;}async[_0x1f705(0x6d6)](_0x4037fb){const _0x165dfd=_0x1f705;return this['_n'](_0x165dfd(0x6d6),[_0x4037fb]);}async[_0x1f705(0x341)](_0x43fa24,_0x1498c3){const _0x55e12d=_0x1f705;return this['_n'](_0x55e12d(0x341),[_0x43fa24,_0x1498c3??null],![]);}async['getRecord'](_0x326fe8,_0x60a1f6){return this['_n']('getRecord',[_0x326fe8,_0x60a1f6??null],![]);}async['list'](_0x35152b){const _0x1d0024=_0x1f705;return this['_n'](_0x1d0024(0x7a7),[_0x35152b??null],![]);}async['listRecords'](_0x1ef99e={}){const _0x53de83=_0x1f705;return this['_n'](_0x53de83(0x765),[_0x1ef99e?.[_0x53de83(0x38f)]??null],![]);}[_0x1f705(0x277)](_0x2fc6f1,_0x381e33){return this['_n']('validate',[_0x2fc6f1,_0x381e33??null],![]);}async[_0x1f705(0x635)](_0x4f6a19){const _0x2b04a7=_0x1f705;return this['_nm'](_0x2b04a7(0x635),[_0x4f6a19]);}async[_0x1f705(0x378)](_0x1655fe,_0x4be353){const _0xd64cfc=_0x1f705;return this['_nm'](_0xd64cfc(0x378),[_0x1655fe,_0x4be353]);}async[_0x1f705(0x61d)](_0x54ed35){const _0x149cbd=_0x1f705;return this[_0x149cbd(0x686)]('stop',[_0x54ed35]);}async['_settled'](_0x814910){const _0x11c5cf=_0x1f705;if(!_0x814910||typeof _0x814910!==_0x11c5cf(0x81a)||!_0x814910['name']||!_0x814910[_0x11c5cf(0x7ac)])return _0x814910;for(let _0x18d137=0x0;_0x18d137<0x3;_0x18d137++)await new Promise(_0x62611d=>setImmediate(_0x62611d));try{const _0x2d957d=this[_0x11c5cf(0x38f)]!==null?await this[_0x11c5cf(0x341)](_0x814910[_0x11c5cf(0x264)]):_0x814910[_0x11c5cf(0x67a)]?await this['get'](_0x814910[_0x11c5cf(0x67a)],_0x814910['name']):null;return _0x2d957d||_0x814910;}catch{return _0x814910;}}async[_0x1f705(0x8a9)](_0x47cbd7){const _0x21e0bf=_0x1f705;return this[_0x21e0bf(0x751)](await this[_0x21e0bf(0x686)](_0x21e0bf(0x8a9),[_0x47cbd7]));}async[_0x1f705(0x2db)](_0x5506dc){const _0x417538=_0x1f705;return this[_0x417538(0x751)](await this['_nm'](_0x417538(0x2db),[_0x5506dc]));}async[_0x1f705(0x5e7)](_0x3f03d6){const _0x17367b=_0x1f705;return this['_nm'](_0x17367b(0x5e7),[_0x3f03d6]);}async[_0x1f705(0x815)](_0x577c35,_0x1ad50b,_0x323f45){const _0x19dbc9=_0x1f705;return this[_0x19dbc9(0x686)](_0x19dbc9(0x815),[_0x577c35,_0x1ad50b,_0x323f45]);}async['remove'](_0x4726b8){const _0x1e9803=_0x1f705;return this[_0x1e9803(0x686)]('remove',[_0x4726b8]);}async[_0x1f705(0x8b1)](){const _0x4daf18=_0x1f705;return this[_0x4daf18(0x686)](_0x4daf18(0x8b1),[]);}async[_0x1f705(0x4d9)](){const _0x55d43f=_0x1f705;return this[_0x55d43f(0x686)]('bootSyncedPipelines',[]);}[_0x1f705(0x596)](_0x23a0d3,_0x1c61da){const _0xdf6af6=_0x1f705;return this['_n'](_0xdf6af6(0x596),[_0x23a0d3,_0x1c61da],![]);}}return engines={'OKDBEngines':_0x2eb532,'OKDBPipelines':_0x4946d2,'OKDBEngineHandle':_0x521c6d},engines;}var functions,hasRequiredFunctions;function requireFunctions(){const _0x444cff=_0x7b0c8f;if(hasRequiredFunctions)return functions;hasRequiredFunctions=0x1;const {optionsArg:_0x28e39e}=requireErrors(),_0x59fcdb=Number(process.env.OKDB_FN_POLL_MS)||0x14;class _0x1033b6{constructor(_0x1607f1,_0x38b4d1=null){const _0x4715f6=_0xf27e;this[_0x4715f6(0x709)]=_0x1607f1,this[_0x4715f6(0x38f)]=_0x38b4d1??'~system';}get[_0x444cff(0x67a)](){const _0x560041=_0x444cff;return this[_0x560041(0x709)][_0x560041(0x4b1)][_0x560041(0x341)](this[_0x560041(0x38f)])??null;}['_n'](_0x2ee224,_0x522a80=[],_0x292fa5=!![]){const _0x270840=_0x444cff;try{return this[_0x270840(0x709)][_0x270840(0x4e8)](_0x270840(0x3ba),this[_0x270840(0x38f)],_0x2ee224,_0x522a80,_0x292fa5);}catch(_0x2516c9){throw _0x1b283f(_0x2516c9);}}async['_nm'](_0x51be73,_0x234b13=[]){const _0x2f421b=_0x444cff;try{return await this['okdb'][_0x2f421b(0x1e0)](_0x2f421b(0x3ba),this[_0x2f421b(0x38f)],_0x51be73,_0x234b13,!![]);}catch(_0x345b01){throw _0x1b283f(_0x345b01);}}async[_0x444cff(0x7a7)](){const _0x34756f=_0x444cff;return this['_n'](_0x34756f(0x7a7),[],![]);}async[_0x444cff(0x341)](_0x520298){return this['_n']('get',[_0x520298],![]);}async[_0x444cff(0x635)](_0x4e7037){const _0x2514c2=_0x444cff;return this['_n'](_0x2514c2(0x635),[_0x4e7037]);}async['update'](_0x39f4f8,_0x601c6c={}){const _0x2c494e=_0x444cff;return this['_n'](_0x2c494e(0x378),[_0x39f4f8,_0x601c6c]);}async[_0x444cff(0x694)](_0x23c3a5){const _0x2f6a94=_0x444cff;return this['_n'](_0x2f6a94(0x694),[_0x23c3a5]);}async['listRuns'](_0x3fa856){const _0x1ed6e6=_0x444cff,{functionName:functionName=null}=_0x28e39e(_0x3fa856);return this['_n'](_0x1ed6e6(0x4f4),[{'functionName':functionName}],![]);}async[_0x444cff(0x667)](_0x3fdffa){return this['_n']('getRun',[_0x3fdffa],![]);}async[_0x444cff(0x90a)](_0x2a0872){return _0x2a0872=_0x28e39e(_0x2a0872,'run'),this['_n']('recordRun',[_0x2a0872]);}async[_0x444cff(0x71e)](_0x2d355d,_0x4b6d71=null,_0x2edda6={}){const _0x2a25c9=_0x444cff,_0x5e9f6e={..._0x2edda6},_0x45b424=_0x5e9f6e['signal'];if(_0x45b424)_0x5e9f6e['aborted']=!!_0x45b424[_0x2a25c9(0x7a4)];delete _0x5e9f6e[_0x2a25c9(0x783)];const _0x1130d1=await this[_0x2a25c9(0x686)](_0x2a25c9(0x31f),[_0x2d355d,_0x4b6d71,_0x5e9f6e]),_0xcd4187=this[_0x2a25c9(0x709)],_0x12599d=()=>_0xcd4187[_0x2a25c9(0x5b0)][_0x2a25c9(0x84f)]();if(_0x45b424&&typeof _0x45b424['addEventListener']==='function')_0x45b424[_0x2a25c9(0x34d)]('abort',_0x12599d,{'once':!![]});let _0x2da087=![];try{for(;;){const _0x55aa9b=_0xcd4187[_0x2a25c9(0x5b0)]['nextTurn'](_0x59fcdb);let _0x4b4e98;try{_0x4b4e98=await _0xcd4187[_0x2a25c9(0x1e0)]('functions',this['envName'],_0x2a25c9(0x744),[_0x1130d1,!!_0x45b424?.['aborted']],![],![]);}catch(_0x20acc6){_0x2da087=!![];throw _0x1b283f(_0x20acc6);}if(!_0x4b4e98||_0x4b4e98[_0x2a25c9(0x4ab)]!==!![])return _0x2da087=!![],_0xcd4187[_0x2a25c9(0x5b0)][_0x2a25c9(0x84f)](),_0x4b4e98;if(_0x4b4e98[_0x2a25c9(0x5f8)])_0xcd4187[_0x2a25c9(0x5b0)][_0x2a25c9(0x84f)]();await _0x55aa9b;}}finally{if(_0x45b424&&typeof _0x45b424[_0x2a25c9(0x6b6)]==='function')_0x45b424['removeEventListener'](_0x2a25c9(0x594),_0x12599d);if(!_0x2da087)try{_0xcd4187[_0x2a25c9(0x4e8)]('functions',this[_0x2a25c9(0x38f)],_0x2a25c9(0x6c1),[_0x1130d1],![]);}catch{}}}async[_0x444cff(0x322)](_0x31843b={},_0x219313=null,_0x2f2d4e={}){const _0x116509=_0x444cff;return this[_0x116509(0x686)](_0x116509(0x322),[_0x31843b,_0x219313,_0x2f2d4e]);}async[_0x444cff(0x61d)](){}}function _0x1b283f(_0x467585){const _0x42e881=_0x444cff;if(_0x467585&&_0x467585[_0x42e881(0x33f)]&&_0x467585[_0x42e881(0x33f)][_0x42e881(0x1dd)])_0x467585[_0x42e881(0x883)]=_0x467585[_0x42e881(0x33f)][_0x42e881(0x1dd)];return _0x467585;}return functions={'OKDBFunctions':_0x1033b6},functions;}var processor={'exports':{}},lock,hasRequiredLock;function requireLock(){const _0x5aa63d=_0x7b0c8f;if(hasRequiredLock)return lock;hasRequiredLock=0x1;const {optionsArg:_0x199265}=requireErrors();class _0x17a783{constructor(_0x3030d4,_0x1ce240){const _0x611dcf=_0xf27e;this[_0x611dcf(0x86d)]=_0x3030d4,this[_0x611dcf(0x638)]=_0x1ce240;}['_n'](_0x5231c5,_0x33e0cf=[]){const _0x411692=_0xf27e;return this[_0x411692(0x86d)]['_n'](_0x5231c5,[this['_id'],..._0x33e0cf]);}[_0x5aa63d(0x756)](){const _0x567f9a=_0x5aa63d;return this['_n'](_0x567f9a(0x756));}get[_0x5aa63d(0x592)](){const _0x12f082=_0x5aa63d;return this['_n'](_0x12f082(0x592));}[_0x5aa63d(0x4f1)](){const _0x2eed62=_0x5aa63d;return this['_n'](_0x2eed62(0x4f1));}[_0x5aa63d(0x5c4)](_0x3adf6c){const _0x399c1a=_0x5aa63d;return this['_n'](_0x399c1a(0x5c4),[_0x3adf6c]);}async[_0x5aa63d(0x90e)](){const _0x2b7672=_0x5aa63d;return this['_n'](_0x2b7672(0x90e));}}class _0x511d02{constructor(_0x56affa,_0x2ebd9c,_0x50416d,_0xecdd5d){const _0x470f46=_0x5aa63d,{ttlMs:ttlMs=0x7530,heartbeatMs:heartbeatMs=null}=_0x199265(_0xecdd5d);this['okdb']=_0x56affa,this[_0x470f46(0x206)]=_0x50416d,this['_id']=_0x56affa[_0x470f46(0x4e8)](_0x470f46(0x8af),_0x2ebd9c,_0x470f46(0x22d),[_0x50416d,ttlMs,heartbeatMs],![]),this[_0x470f46(0x5f3)]=_0x2ebd9c;}['_n'](_0x30648a,_0x3f3dc0=[]){const _0x48aa11=_0x5aa63d;return this['okdb'][_0x48aa11(0x4e8)](_0x48aa11(0x8af),this[_0x48aa11(0x5f3)],_0x30648a,_0x3f3dc0,![]);}[_0x5aa63d(0x60d)](_0x14090a){const _0x45af83=_0x5aa63d;return this['_n'](_0x45af83(0x8cd),[this[_0x45af83(0x638)],_0x14090a]);}async[_0x5aa63d(0x4ac)](_0x10bc4b,_0x5e4ba7={},_0x30633f={}){const _0x57748d=_0x5aa63d,_0x3afa59=this['_n'](_0x57748d(0x4ac),[this['_id'],_0x10bc4b,_0x5e4ba7,_0x30633f]);return{'acquired':_0x3afa59[_0x57748d(0x2bc)],'handle':_0x3afa59[_0x57748d(0x41e)]==null?null:new _0x17a783(this,_0x3afa59[_0x57748d(0x41e)]),'current':_0x3afa59[_0x57748d(0x36b)]};}[_0x5aa63d(0x238)](_0x4e14d8){const _0x46f502=_0x5aa63d;return this['_n'](_0x46f502(0x238),[this[_0x46f502(0x638)],_0x4e14d8]);}['list'](){const _0x51aeb1=_0x5aa63d;return this['_n'](_0x51aeb1(0x7a7),[this[_0x51aeb1(0x638)]]);}[_0x5aa63d(0x769)](_0x933684){const _0x4e2e11=_0x5aa63d;return this['_n'](_0x4e2e11(0x769),[this[_0x4e2e11(0x638)],_0x933684]);}[_0x5aa63d(0x585)](_0x3a2d2a,_0x2d30ff=0x3e8){const _0x21973a=_0x5aa63d;return this['_n'](_0x21973a(0x585),[this[_0x21973a(0x638)],_0x3a2d2a,_0x2d30ff]);}}return lock={'NativeLock':_0x511d02,'NativeLockHandle':_0x17a783},lock;}var hasRequiredProcessor;function requireProcessor(){const _0x10e702=_0x7b0c8f;if(hasRequiredProcessor)return processor[_0x10e702(0x3ec)];hasRequiredProcessor=0x1;const _0x368c76=requireBridge(),{RawDb:_0x3013b1}=requireRawdb(),{NativeLock:_0x535c3b}=requireLock();function _0x5bf321(_0x5402e1){}class _0x2ed01b{constructor(_0x2ec850){const _0x3bca81=_0x10e702;this[_0x3bca81(0x67a)]=_0x2ec850,this['okdb']=_0x2ec850;try{this['_n']('setLogSink',[(_0x226c94,_0x150dde)=>{const _0x11f9ea=_0x3bca81,_0x8eceab=this[_0x11f9ea(0x709)][_0x11f9ea(0x5a7)],_0x11e6bb=_0x8eceab?.[_0x226c94]??_0x8eceab?.['info'];if(typeof _0x11e6bb===_0x11f9ea(0x84a))_0x11e6bb['call'](_0x8eceab,_0x150dde);}],![]);}catch{}}['_n'](_0x4ec2d8,_0xaf1cfa,_0x7acde5=!![]){const _0x365a2d=_0x10e702;return this[_0x365a2d(0x67a)][_0x365a2d(0x709)][_0x365a2d(0x4e8)](_0x365a2d(0x2a7),this['env'][_0x365a2d(0x264)],_0x4ec2d8,_0xaf1cfa,_0x7acde5);}['register'](_0x2982e4,_0x2de08f={}){const _0x21b373=_0x10e702,_0x32e164={..._0x2de08f};if(typeof _0x32e164[_0x21b373(0x7b7)]==='function'&&_0x32e164['module']!=null)throw new Error(_0x21b373(0x76e)+_0x21b373(0x706));if(typeof _0x32e164[_0x21b373(0x7b7)]===_0x21b373(0x6d1)&&_0x32e164[_0x21b373(0x3bb)]!=null)throw new Error(_0x21b373(0x4ef));if(_0x32e164[_0x21b373(0x3bb)]!=null){if(!_0x32e164['module'][_0x21b373(0x650)])throw new Error(_0x21b373(0x682));const _0x5c224a=_0x32e164[_0x21b373(0x3bb)][_0x21b373(0x85f)]??_0x32e164[_0x21b373(0x3bb)][_0x21b373(0x3af)]??'process',_0x40e1f3=require[_0x21b373(0x629)](_0x32e164[_0x21b373(0x3bb)][_0x21b373(0x650)]),_0x49cb7d=require(_0x40e1f3),_0x1e274d=_0x49cb7d[_0x5c224a]??_0x49cb7d['default']??_0x49cb7d;if(typeof _0x1e274d!==_0x21b373(0x84a))throw new Error(_0x21b373(0x7ff)+_0x32e164[_0x21b373(0x3bb)][_0x21b373(0x650)]+_0x21b373(0x5b1)+_0x5c224a+_0x21b373(0x845));this[_0x21b373(0x67a)][_0x21b373(0x709)][_0x21b373(0x814)](_0x21b373(0x2a7),_0x21b373(0x59e),[_0x40e1f3,_0x5c224a,_0x1e274d]),_0x32e164[_0x21b373(0x3bb)]={'path':_0x40e1f3,'export':_0x5c224a};}if(_0x32e164[_0x21b373(0x218)]!=null){if(typeof _0x32e164[_0x21b373(0x218)][_0x21b373(0x3bb)]!==_0x21b373(0x6d1))throw new Error('processor:\x20quantum.module\x20must\x20be\x20a\x20string');const _0x5bb50e=require[_0x21b373(0x629)](_0x32e164[_0x21b373(0x218)]['module']),_0x431a61=require(_0x5bb50e),_0x3fa7f9=_0x32e164[_0x21b373(0x218)][_0x21b373(0x3af)],_0x1e0039=_0x3fa7f9?_0x431a61[_0x3fa7f9]:_0x431a61[_0x21b373(0x88c)]??_0x431a61;if(typeof _0x1e0039==='function'){const _0x298ec4=_0x3fa7f9?_0x32e164[_0x21b373(0x218)][_0x21b373(0x3bb)]+'#'+_0x3fa7f9:_0x32e164[_0x21b373(0x218)]['module'];this['env'][_0x21b373(0x709)][_0x21b373(0x814)](_0x21b373(0x2a7),_0x21b373(0x576),[_0x298ec4,_0x1e0039]);}_0x32e164[_0x21b373(0x218)]={..._0x32e164['quantum']};}_0x32e164[_0x21b373(0x6c2)]!=null&&typeof _0x32e164['payload']==='object'&&(_0x32e164[_0x21b373(0x6c2)]={'$payload':_0x368c76['storePayload'](_0x32e164[_0x21b373(0x6c2)],this[_0x21b373(0x67a)][_0x21b373(0x709)])});if(_0x32e164[_0x21b373(0x5e7)]!=null&&typeof _0x32e164[_0x21b373(0x5e7)]!==_0x21b373(0x84a))throw new Error(_0x21b373(0x8f1));const _0x2d654b=this['_n'](_0x21b373(0x269),[_0x2982e4??null,_0x32e164]);return this[_0x21b373(0x708)](_0x2d654b['id'],_0x2d654b[_0x21b373(0x433)]);}['_stopFor'](_0x13a8f2,_0x483ae9){const _0x5c9bab=_0x10e702,_0x434b27=this,_0x39c417=async()=>{_0x434b27['_n']('stopHandle',[_0x13a8f2]);};return _0x39c417['id']=_0x13a8f2,_0x39c417[_0x5c9bab(0x433)]=_0x483ae9,_0x39c417[_0x5c9bab(0x254)]=()=>_0x483ae9?_0x434b27['_n'](_0x5c9bab(0x71f),[_0x13a8f2],![]):0x0,_0x39c417['status']=()=>_0x434b27['get'](_0x13a8f2),_0x39c417[_0x5c9bab(0x3f9)]=_0x39c417['status'],_0x39c417['pause']=()=>_0x434b27[_0x5c9bab(0x816)](_0x13a8f2),_0x39c417[_0x5c9bab(0x697)]=()=>_0x434b27[_0x5c9bab(0x697)](_0x13a8f2),_0x39c417['kick']=()=>_0x434b27['kick'](_0x13a8f2),_0x39c417[_0x5c9bab(0x2ec)]=()=>_0x434b27[_0x5c9bab(0x2ec)](_0x13a8f2),_0x39c417[_0x5c9bab(0x79c)]=_0x530475=>_0x434b27[_0x5c9bab(0x79c)](_0x13a8f2,_0x530475),_0x39c417;}get[_0x10e702(0x325)](){const _0x53248c=_0x10e702;try{return this['_n'](_0x53248c(0x7a7),[],![])['map'](_0x3958d7=>({'id':_0x3958d7['id']}));}catch{return[];}}async[_0x10e702(0x7a8)](_0x719208){const _0x5cded9=_0x10e702;return new Set(this['_n'](_0x5cded9(0x7a8),[]));}['resumeAllAfterDrain'](_0x882632){const _0x40ac97=_0x10e702;return this['_n'](_0x40ac97(0x223),[[..._0x882632??[]]]);}get[_0x10e702(0x454)](){const _0x116440=_0x10e702;return new Set(this['_n']('list',[],![])[_0x116440(0x4bf)](_0x34ae4e=>_0x34ae4e['type']==null)[_0x116440(0x59f)](_0x2408b7=>_0x2408b7['id']));}[_0x10e702(0x536)](){}get[_0x10e702(0x86d)](){const _0x377401=_0x10e702;if(!this[_0x377401(0x340)]){const _0x535b3d=new _0x535c3b(this['env'][_0x377401(0x709)],this[_0x377401(0x67a)]['name'],'proc'),_0x56e952=this[_0x377401(0x67a)];_0x535b3d[_0x377401(0x21a)]=()=>new _0x3013b1(_0x56e952,_0x377401(0x4b7)),this['__lock']=_0x535b3d;}return this['__lock'];}['_fail'](_0x153df7,_0x27db82){const _0x253aef=_0x10e702;return this['_n'](_0x253aef(0x887),[typeof _0x153df7===_0x253aef(0x6d1)?_0x153df7:_0x153df7['id'],_0x27db82?.['message']??String(_0x27db82??'')]);}get[_0x10e702(0x279)](){const _0x23dbc6=_0x10e702;return this[_0x23dbc6(0x5c1)]||(this[_0x23dbc6(0x5c1)]=new _0x3013b1(this['env'],_0x23dbc6(0x83a)));}get[_0x10e702(0x56b)](){const _0x262699=_0x10e702,_0x282ed6=this,_0x4acc37=_0xa14a00=>{const _0x4711df=_0xf27e,_0x1017ed=()=>_0x282ed6['_n'](_0x4711df(0x763),[_0xa14a00],![]);if(!_0x1017ed())return undefined;const _0xb1fab9=_0x226e47=>()=>_0x1017ed()?.[_0x226e47],_0x3089b6={'id':_0xa14a00},_0x11751c=(_0x321be4,_0xdeb985,_0x5a4f13)=>Object[_0x4711df(0x1fb)](_0x3089b6,_0x321be4,{'get':_0xdeb985,'set':_0x5a4f13,'enumerable':!![],'configurable':!![]});return _0x11751c(_0x4711df(0x613),_0xb1fab9(_0x4711df(0x613))),_0x11751c('mode',_0xb1fab9(_0x4711df(0x51a))),_0x11751c('paused',_0xb1fab9(_0x4711df(0x6e2))),_0x11751c(_0x4711df(0x354),_0xb1fab9(_0x4711df(0x354)),_0x444725=>_0x282ed6['_n']('setLastClock',[_0xa14a00,_0x444725])),_0x11751c(_0x4711df(0x433),_0xb1fab9(_0x4711df(0x433))),_0x11751c(_0x4711df(0x202),_0xb1fab9(_0x4711df(0x58c)),_0x427661=>_0x282ed6['_n'](_0x4711df(0x4aa),[_0xa14a00,!!_0x427661])),_0x11751c(_0x4711df(0x2e2),_0xb1fab9(_0x4711df(0x5fb))),_0x11751c('flushQuantum',_0xb1fab9('flushQuantum')),_0x11751c(_0x4711df(0x523),_0xb1fab9(_0x4711df(0x523))),_0x11751c(_0x4711df(0x41c),_0xb1fab9(_0x4711df(0x581)),_0xaee183=>_0x282ed6['_n'](_0x4711df(0x4fe),[_0xa14a00,_0xaee183])),_0x11751c(_0x4711df(0x1b9),()=>_0x282ed6[_0x4711df(0x341)](_0xa14a00)?.[_0x4711df(0x1b9)]),_0x11751c(_0x4711df(0x658),()=>_0x1017ed()?.['lockHeld']?{'isHeld':()=>!!_0x1017ed()?.['lockHeld']}:null),_0x11751c('_pokeHandler',()=>_0x1017ed()?.[_0x4711df(0x3fa)]?()=>{}:null),_0x11751c(_0x4711df(0x470),()=>_0x1017ed()?.['intervalTimer']?{}:null),_0x11751c(_0x4711df(0x355),()=>_0x1017ed()?.[_0x4711df(0x5d5)]?{}:null),_0x3089b6;},_0x5482f8=()=>_0x282ed6['_n']('list',[],![])[_0x262699(0x59f)](_0x5affea=>_0x5affea['id']);return{'get':_0x3eb504=>_0x4acc37(_0x3eb504),'has':_0x45bd6c=>_0x5482f8()[_0x262699(0x566)](_0x45bd6c),get 'size'(){const _0x522bd6=_0x262699;return _0x5482f8()[_0x522bd6(0x7e0)];},'keys':()=>_0x5482f8()[Symbol[_0x262699(0x606)]](),'values':()=>_0x5482f8()[_0x262699(0x59f)](_0x4acc37)[Symbol[_0x262699(0x606)]](),'entries':()=>_0x5482f8()['map'](_0x345525=>[_0x345525,_0x4acc37(_0x345525)])[Symbol[_0x262699(0x606)]](),[Symbol['iterator']]:()=>_0x5482f8()['map'](_0x33a0c6=>[_0x33a0c6,_0x4acc37(_0x33a0c6)])[Symbol[_0x262699(0x606)]](),'forEach':_0x1cf273=>_0x5482f8()['forEach'](_0xb6c010=>_0x1cf273(_0x4acc37(_0xb6c010),_0xb6c010))};}async['stopAll'](){const _0x2c29c8=_0x10e702;return this['_n'](_0x2c29c8(0x8b1),[]);}[_0x10e702(0x7a7)](){const _0xe55bb=_0x10e702,_0x3def57=this['_n'](_0xe55bb(0x7a7),[],![]);if(!this['env'][_0xe55bb(0x264)][_0xe55bb(0x5ae)]('~'))try{const _0x36a6a0=this[_0xe55bb(0x67a)][_0xe55bb(0x709)][_0xe55bb(0x1b9)];for(const _0x306005 of _0x36a6a0[_0xe55bb(0x1df)](this[_0xe55bb(0x67a)][_0xe55bb(0x264)])){for(const _0x86dd3d of _0x36a6a0[_0xe55bb(0x4e0)](_0x306005,this['env'][_0xe55bb(0x264)])){const _0x5ecd18=_0xe55bb(0x51b)+_0x306005+':'+_0x86dd3d;_0x3def57[_0xe55bb(0x247)]({'id':_0x5ecd18,'type':_0x306005,'mode':_0xe55bb(0x1dc),'state':_0xe55bb(0x78f),'paused':![],'lag':0x0,'cursorKey':_0x5ecd18,'meta':{'name':_0x5ecd18}});}}}catch{}return _0x3def57;}[_0x10e702(0x443)](){const _0x4dcc57=_0x10e702;return this['_n'](_0x4dcc57(0x443),[],![]);}[_0x10e702(0x514)](){const _0xd91edb=_0x10e702;return this['_n'](_0xd91edb(0x514),[],![]);}[_0x10e702(0x727)](){const _0x239e1e=_0x10e702;return this['_n'](_0x239e1e(0x727),[],![]);}[_0x10e702(0x341)](_0x19220e){const _0x430c59=_0x10e702;return this['_n'](_0x430c59(0x341),[_0x19220e],![]);}['_status'](_0xd7e325){return this['get'](typeof _0xd7e325==='string'?_0xd7e325:_0xd7e325['id']);}[_0x10e702(0x726)](_0x5a2d79){const _0x4c89ed=_0x10e702;return this['_n'](_0x4c89ed(0x726),[_0x5a2d79],![]);}[_0x10e702(0x348)](_0x35c6e5){return this['_n']('resetCursor',[_0x35c6e5]);}[_0x10e702(0x3d9)](_0xf90dee){const _0x434fa2=_0x10e702;return this['_n'](_0x434fa2(0x3d9),[_0xf90dee]);}[_0x10e702(0x2bf)](_0x45818a){const _0x26101f=_0x10e702;return this['_n'](_0x26101f(0x2bf),[_0x45818a],![]);}[_0x10e702(0x8b5)](_0x8ca420,_0x27df8d){const _0x9c38a1=_0x10e702;return this['_n'](_0x9c38a1(0x8b5),[_0x8ca420,_0x27df8d]);}async[_0x10e702(0x79c)](_0x1cc706,_0x8171ba){const _0x5295bb=_0x10e702;return this['_n'](_0x5295bb(0x79c),[_0x1cc706,_0x8171ba??0x7530]);}[_0x10e702(0x816)](_0x579b30){const _0x2c7a20=_0x10e702;return this['_n'](_0x2c7a20(0x816),[_0x579b30]);}[_0x10e702(0x697)](_0x26466c){const _0x47efe7=_0x10e702;return this['_n'](_0x47efe7(0x697),[_0x26466c]);}async['setClaiming'](_0x46cac1){const _0x82ef5a=_0x10e702;return this['_n'](_0x82ef5a(0x7ce),[_0x46cac1]);}[_0x10e702(0x332)](_0x208e67){const _0x1f2337=_0x10e702;return this['_n'](_0x1f2337(0x332),[_0x208e67]);}['retry'](_0x576f68){const _0x4bac96=_0x10e702;return this['_n'](_0x4bac96(0x2ec),[_0x576f68]);}[_0x10e702(0x2db)](_0x209c21,_0x6e2209={}){return this['_n']('restart',[_0x209c21,_0x6e2209]);}async[_0x10e702(0x58f)](_0x147ba1,_0x3eff9f,_0x29fb76){const _0x4879e7=_0x10e702,[_0x3866a9,_0x1a9919]=this['_n'](_0x4879e7(0x58f),[_0x147ba1,_0x3eff9f,_0x29fb76]);return{'version':_0x3866a9,'flipClock':_0x1a9919};}async['snapshotScan'](_0x5ea480,_0x53eaa5,_0x15a0ab={}){return this['_n']('snapshotScan',[_0x5ea480,_0x53eaa5,_0x15a0ab]);}}_0x2ed01b[_0x10e702(0x329)]=function _0x2fcb53(_0x291a7f,_0x544928){const _0xd71fb5=_0x10e702;if(typeof _0x291a7f!==_0xd71fb5(0x6d1)||!_0x291a7f)throw new Error('registerHandler:\x20name\x20must\x20be\x20a\x20non-empty\x20string');if(typeof _0x544928!==_0xd71fb5(0x84a))throw new Error(_0xd71fb5(0x8bc));_0x4f1d16(_0xd71fb5(0x2a7),_0xd71fb5(0x329),[_0x291a7f,_0x544928]);},_0x2ed01b[_0x10e702(0x576)]=function _0x55ed7b(_0x73189e,_0x46701f){const _0x5bd64a=_0x10e702;if(typeof _0x73189e!==_0x5bd64a(0x6d1)||!_0x73189e)throw new Error(_0x5bd64a(0x861));if(typeof _0x46701f!==_0x5bd64a(0x84a))throw new Error('registerQuantum:\x20load\x20must\x20be\x20a\x20function');let _0x49f68f=null;_0x4f1d16('proc',_0x5bd64a(0x576),[_0x73189e,(_0x71a02,_0x13bdcf)=>{if(!_0x49f68f)_0x49f68f=_0x46701f();return _0x49f68f(_0x71a02,_0x13bdcf);}]);},_0x2ed01b[_0x10e702(0x368)]=_0x345187=>/closed|not open|released/i[_0x10e702(0x270)](String(_0x345187)),_0x2ed01b[_0x10e702(0x766)]=![];function _0x4f1d16(_0x513628,_0x158fcc,_0x24ccf9){const {staticCall:_0x1fc8fd}=requireLib();return _0x1fc8fd(_0x513628,_0x158fcc,_0x24ccf9);}return processor['exports']=_0x2ed01b,processor[_0x10e702(0x3ec)][_0x10e702(0x825)]=_0x2ed01b,processor[_0x10e702(0x3ec)][_0x10e702(0x7cd)]=_0x5bf321,processor[_0x10e702(0x3ec)];}var okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0xf597b4=_0x7b0c8f;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0xc0f683={'PUT':_0xf597b4(0x4a2),'REMOVE':_0xf597b4(0x694),'INDEX_DROP':_0xf597b4(0x6ae),'INDEX_REGISTER':_0xf597b4(0x304),'INDEX_RESET':_0xf597b4(0x3de),'TYPE_REGISTER':_0xf597b4(0x6bb),'TYPE_DROP':_0xf597b4(0x5a5),'FTS_REGISTER':_0xf597b4(0x841),'FTS_DROP':_0xf597b4(0x860),'FTS_RESET':_0xf597b4(0x48f),'SCHEMA_SET':_0xf597b4(0x8a7),'SCHEMA_DROP':'dropSchema','TTL_SET':_0xf597b4(0x3d7),'TTL_CLEAR':_0xf597b4(0x37d)},_0x3243ba={'SYSTEM_READY':_0xf597b4(0x1ea),'FIELD_RESOLVER_REGISTERED':_0xf597b4(0x363),'SYSTEM_STOPPED':_0xf597b4(0x380),'SYSTEM_CLOCK_CHANGE':_0xf597b4(0x358),'SYSTEM_POKE':_0xf597b4(0x58d),'SYSTEM_DRAIN':_0xf597b4(0x812),'SYSTEM_TYPE_DROP':_0xf597b4(0x58e),'SYSTEM_PROC':_0xf597b4(0x26e),'SYSTEM_BUS_STATE_CHANGE':'system:bus_state_change','ITEM_CREATE':_0xf597b4(0x82d),'ITEM_UPDATE':_0xf597b4(0x415),'ITEM_REMOVE':_0xf597b4(0x6da),'ITEM_PENDING':_0xf597b4(0x227),'INDEX_RESET':_0xf597b4(0x2f8),'INDEX_READY':'index:ready','INDEX_PROGRESS':_0xf597b4(0x2c7),'VIEW_PROGRESS':_0xf597b4(0x3b6),'INDEX_DROP':_0xf597b4(0x428),'INDEX_REGISTERED':_0xf597b4(0x3fd),'FTS_REGISTERED':'fts:registered','FTS_DROP':_0xf597b4(0x663),'FTS_RESET':_0xf597b4(0x366),'SCHEMA_SET':'schema:set','SCHEMA_DROP':_0xf597b4(0x30f),'UNIQUE_VIOLATION':_0xf597b4(0x487),'UNIQUE_VIOLATION_RESOLVED':_0xf597b4(0x1d9),'REF_VIOLATION':_0xf597b4(0x57a),'REF_VIOLATION_RESOLVED':'ref:violation_resolved','SYNC_APPLY':_0xf597b4(0x47a),'TXN_START':'txn:start','TXN_END':'txn:end','TXN_ROLLBACK':_0xf597b4(0x8a5),'TYPE_REGISTERED':_0xf597b4(0x652),'TYPE_DROP':_0xf597b4(0x276),'ENV_OPENED':'env:opened','ENV_REMOVED':_0xf597b4(0x591),'SYSTEM_ENV_RELEASE':'system:env_release','TTL_EXPIRED':_0xf597b4(0x74a),'TTL_SET':_0xf597b4(0x7f7),'TTL_CLEAR':_0xf597b4(0x84b),'LICENSE_INVALID':_0xf597b4(0x69c),'LICENSE_ADDED':_0xf597b4(0x6a0),'LICENSE_ACTIVATED':_0xf597b4(0x7eb),'LICENSE_REMOVED':_0xf597b4(0x209)},_0x14ba6d={'CREATING':_0xf597b4(0x6b1),'RESETTING':_0xf597b4(0x3ea),'READY':_0xf597b4(0x6ee),'DROPPING':'dropping','WAITING':'waiting','ERROR':'error'},_0x112517={'CREATED':'created','STARTING':'starting','STARTED':_0xf597b4(0x6d4),'STOPPING':_0xf597b4(0x685),'STOPPED':_0xf597b4(0x1c2)},_0x3b8d51={'CREATING':_0xf597b4(0x6b1),'READY':'ready','HALTED':_0xf597b4(0x55c),'STOPPED':_0xf597b4(0x1c2),'RESETTING':'resetting'},_0xdf8997=Object[_0xf597b4(0x65b)]({'POKE':'bus:poke','DRAIN':_0xf597b4(0x413),'TYPE_DROP':_0xf597b4(0x7db),'PROC':_0xf597b4(0x612),'ENV_RELEASE':_0xf597b4(0x267)});return okdbEnums={'BUS_EVENTS':_0xdf8997,'CHANGE_ACTIONS':_0xc0f683,'EVENTS':_0x3243ba,'INDEX_STATE':_0x14ba6d,'OKDB_STATE':_0x112517,'VIEW_STATE':_0x3b8d51},okdbEnums;}var okdbGuardedRange,hasRequiredOkdbGuardedRange;function requireOkdbGuardedRange(){const _0x373604=_0x7b0c8f;if(hasRequiredOkdbGuardedRange)return okdbGuardedRange;hasRequiredOkdbGuardedRange=0x1;const _0x2d8b40={'SKIP':Symbol[_0x373604(0x282)](_0x373604(0x8a8))},{OKDBError:_0x1ccde8}=requireOkdbError(),_0x5c0445={'value':null,'done':!![]};class _0x2eb301{constructor(_0x48215d){const _0x988724=_0x373604;this[_0x988724(0x785)]=_0x48215d;}get['DONE'](){return _0x5c0445;}[Symbol[_0x373604(0x606)]](){return this['_makeIterator']();}['map'](_0x374306){const _0x123e2d=this;return new _0x2eb301(()=>{const _0x5849f1=_0xf27e,_0x180a25=_0x123e2d[Symbol[_0x5849f1(0x606)]]();return{'next'(){const _0x481c95=_0x5849f1;for(;;){const _0x2e6a9d=_0x180a25[_0x481c95(0x84c)]();if(_0x2e6a9d[_0x481c95(0x7a1)])return{'done':!![],'value':undefined};const _0x29f444=_0x374306(_0x2e6a9d['value']);if(_0x29f444===_0x2d8b40[_0x481c95(0x840)])continue;if(_0x29f444===_0x5c0445)return _0x180a25[_0x481c95(0x404)]?.(),{'done':!![],'value':undefined};return{'done':![],'value':_0x29f444};}},'return'(){return _0x180a25['return']?.(),{'done':!![],'value':undefined};},[Symbol[_0x5849f1(0x606)]](){return this;}};});}[_0x373604(0x4bf)](_0x5bea39){const _0x5964b5=_0x373604;return this['map'](_0x1d596b=>_0x5bea39(_0x1d596b)?_0x1d596b:_0x2d8b40[_0x5964b5(0x840)]);}['forEach'](_0x38eb22){for(const _0x1bd82d of this)_0x38eb22(_0x1bd82d);}['slice'](_0x535570=0x0,_0x3f1d50=Infinity){const _0x297687=this;return new _0x2eb301(()=>{const _0x5c1d09=_0xf27e,_0x5ae84a=_0x297687[Symbol[_0x5c1d09(0x606)]]();let _0x48f76e=0x0;return{'next'(){const _0x4e8f9d=_0x5c1d09;for(;;){const _0x1918f5=_0x5ae84a[_0x4e8f9d(0x84c)]();if(_0x1918f5[_0x4e8f9d(0x7a1)])return{'done':!![],'value':undefined};const _0x6e75bb=_0x48f76e++;if(_0x6e75bb<_0x535570)continue;if(_0x6e75bb>=_0x3f1d50)return _0x5ae84a[_0x4e8f9d(0x404)]?.(),{'done':!![],'value':undefined};return _0x1918f5;}},'return'(){const _0x58a478=_0x5c1d09;return _0x5ae84a[_0x58a478(0x404)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x5c1d09(0x606)]](){return this;}};});}['at'](_0x73eed0){let _0x282152=0x0;for(const _0x4c09e4 of this)if(_0x282152++===_0x73eed0)return _0x4c09e4;return undefined;}[_0x373604(0x29a)](_0x1ed3c9){const _0x859c64=this;return new _0x2eb301(()=>{const _0xcff648=_0xf27e,_0x25ca56=_0x859c64[Symbol['iterator']]();let _0x288772=[];return{'next'(){const _0xd1cd97=_0xf27e;for(;;){if(_0x288772['length'])return{'done':![],'value':_0x288772[_0xd1cd97(0x249)]()};const _0x19bfb3=_0x25ca56[_0xd1cd97(0x84c)]();if(_0x19bfb3[_0xd1cd97(0x7a1)])return{'done':!![],'value':undefined};const _0x523806=_0x1ed3c9(_0x19bfb3['value']);if(Array[_0xd1cd97(0x239)](_0x523806))_0x288772=_0x288772['concat'](_0x523806);else{if(_0x523806!=null&&(_0x523806 instanceof _0x2eb301||typeof _0x523806[Symbol[_0xd1cd97(0x606)]]==='function'&&_0xd1cd97(0x8bd)in _0x523806))_0x288772=_0x288772[_0xd1cd97(0x522)](Array['from'](_0x523806));else{if(_0x523806!==_0x2d8b40[_0xd1cd97(0x840)])return{'done':![],'value':_0x523806};}}}},'return'(){const _0xddc758=_0xf27e;return _0x25ca56[_0xddc758(0x404)]?.(),{'done':!![],'value':undefined};},[Symbol[_0xcff648(0x606)]](){return this;}};});}[_0x373604(0x522)](_0x3718b0){const _0x339803=this;return new _0x2eb301(()=>{const _0x486f48=_0xf27e;let _0x2cafaf=_0x339803[Symbol[_0x486f48(0x606)]](),_0x22c1ff=![];return{'next'(){const _0x5afbc7=_0x486f48;for(;;){const _0x2427ad=_0x2cafaf[_0x5afbc7(0x84c)]();if(!_0x2427ad[_0x5afbc7(0x7a1)])return _0x2427ad;if(_0x22c1ff)return{'done':!![],'value':undefined};_0x22c1ff=!![],_0x2cafaf=_0x3718b0[Symbol['iterator']]();}},'return'(){const _0x291a34=_0x486f48;return _0x2cafaf[_0x291a34(0x404)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x486f48(0x606)]](){return this;}};});}[_0x373604(0x24e)](_0x217687){const _0x5300f2=this;return new _0x2eb301(()=>{const _0x141d41=_0x5300f2[Symbol['iterator']]();return{'next'(){const _0x43edd5=_0xf27e;for(;;){try{return _0x141d41[_0x43edd5(0x84c)]();}catch(_0x304b5d){const _0x5e71b1=_0x217687(_0x304b5d);if(_0x5e71b1===_0x2d8b40[_0x43edd5(0x840)]||_0x5e71b1===undefined)continue;return{'done':![],'value':_0x5e71b1};}}},'return'(){return _0x141d41['return']?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}[_0x373604(0x7d5)](){const _0x15444e=_0x373604;return Array[_0x15444e(0x875)](this);}get[_0x373604(0x8bd)](){const _0x59ebbc=_0x373604;return Array[_0x59ebbc(0x875)](this);}}const _0x331a39={'total':0x0,'byLabel':{},'last':null};function _0x5bb919(_0x35279c){const _0x1808fd=_0x373604;_0x331a39[_0x1808fd(0x754)]++;if(_0x35279c)_0x331a39[_0x1808fd(0x89f)][_0x35279c]=(_0x331a39[_0x1808fd(0x89f)][_0x35279c]??0x0)+0x1;_0x331a39['last']={'label':_0x35279c??null,'at':Date['now']()};}function _0x45c1d0(){const _0x4e5719=_0x373604;return{'total':_0x331a39['total'],'byLabel':{..._0x331a39[_0x4e5719(0x89f)]},'last':_0x331a39[_0x4e5719(0x1ab)]};}function _0x6c5dd2(_0x1fbcbc,_0x16a17e={}){const {getTxnId:_0x4877a9,resume:_0x50441b,label:_0x529cf1,baseline:_0x5033ae}=_0x16a17e;return new _0x2eb301(()=>{const _0xbdee9d=_0xf27e;let _0x5f1b50=null,_0x59e643=![],_0x2a0bdd=![],_0x1faffe=![],_0x5d96e7,_0x695260=0x0,_0x1d19e8;return{'next'(){const _0x521cdb=_0xf27e;if(_0x1faffe)return{'done':!![],'value':undefined};if(_0x2a0bdd){let _0x581cdc=![];if(_0x50441b&&_0x4877a9)try{_0x581cdc=_0x4877a9()===_0x1d19e8;}catch{}if(!_0x581cdc){_0x1faffe=!![],_0x5bb919(_0x529cf1);throw new _0x1ccde8(_0x50441b?'pinned\x20range\x20iterator\x20parked\x20across\x20an\x20await/turn\x20boundary\x20and\x20the\x20env\x20was\x20written\x20'+'meanwhile\x20—\x20the\x20frozen\x20view\x20cannot\x20be\x20kept.\x20Materialize\x20synchronously\x20(e.g.\x20Array.from)\x20'+_0x521cdb(0x4cc):_0x521cdb(0x6d0)+_0x521cdb(0x6dd)+_0x521cdb(0x616),'READER_HELD_ACROSS_AWAIT');}_0x5f1b50=_0x50441b(_0x5d96e7,_0x695260)[Symbol[_0x521cdb(0x606)]](),_0x2a0bdd=![];}if(!_0x5f1b50){if(_0x5033ae!==undefined)_0x1d19e8=_0x5033ae;else try{_0x1d19e8=_0x4877a9?_0x4877a9():undefined;}catch{_0x1d19e8=undefined;}try{_0x5f1b50=_0x1fbcbc()[Symbol[_0x521cdb(0x606)]]();}catch(_0x50c056){_0x1faffe=!![];throw _0x50c056;}}!_0x59e643&&(_0x59e643=!![],queueMicrotask(()=>{const _0x40ccf1=_0x521cdb;_0x59e643=![];if(_0x1faffe||_0x2a0bdd)return;try{_0x5f1b50?.[_0x40ccf1(0x404)]?.();}catch{}_0x5f1b50=null,_0x2a0bdd=!![];}));const _0x4f965d=_0x5f1b50[_0x521cdb(0x84c)]();if(_0x4f965d[_0x521cdb(0x7a1)])return _0x1faffe=!![],{'done':!![],'value':undefined};return _0x5d96e7=_0x4f965d[_0x521cdb(0x59b)],_0x695260++,_0x4f965d;},'return'(){const _0x32ce43=_0xf27e;_0x1faffe=!![];try{_0x5f1b50?.[_0x32ce43(0x404)]?.();}catch{}return{'done':!![],'value':undefined};},[Symbol[_0xbdee9d(0x606)]](){return this;}};});}return okdbGuardedRange={'guardSnapshotIterable':_0x6c5dd2,'OKDBGuardedRange':_0x2eb301,'recordGuardTrip':_0x5bb919,'getGuardTripStats':_0x45c1d0},okdbGuardedRange;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0x42425d=_0x7b0c8f;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x38246e,performance:_0x5ce537}=require$$0$1,_0xcb7ff7=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG===_0x42425d(0x334),_0x4497b1=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x1d316a=process.env.OKDB_LOOP_LAG_ALL==='1',_0x3f2569=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0x3a74ed{constructor(){const _0x3775c8=_0x42425d;this['enabled']=_0xcb7ff7,this[_0x3775c8(0x2ca)]=new Map(),this['_h']=null,this[_0x3775c8(0x466)]=null,this[_0x3775c8(0x432)]=![],this[_0x3775c8(0x4f0)]=(_0x4ba4c3,_0x305413)=>process[_0x3775c8(0x864)][_0x3775c8(0x248)](_0x4ba4c3+(_0x305413?'\x20'+JSON[_0x3775c8(0x7af)](_0x305413):'')+'\x0a');}[_0x42425d(0x274)](){const _0x336085=_0x42425d;return _0x5ce537[_0x336085(0x274)]();}[_0x42425d(0x827)](_0x4c6bc1){const _0x1ed29c=_0x42425d;if(typeof _0x4c6bc1===_0x1ed29c(0x84a))this[_0x1ed29c(0x4f0)]=_0x4c6bc1;}['note'](_0x35a4b6,_0x51d9a4,_0x93c46b){const _0x4cf1ef=_0x42425d;if(!this[_0x4cf1ef(0x20e)])return;let _0x2a2ba9=this[_0x4cf1ef(0x2ca)]['get'](_0x35a4b6);!_0x2a2ba9&&(_0x2a2ba9={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this[_0x4cf1ef(0x2ca)][_0x4cf1ef(0x8db)](_0x35a4b6,_0x2a2ba9)),_0x2a2ba9['ms']+=_0x51d9a4,_0x2a2ba9[_0x4cf1ef(0x44b)]+=0x1,_0x51d9a4>_0x2a2ba9[_0x4cf1ef(0x6d3)]&&(_0x2a2ba9[_0x4cf1ef(0x6d3)]=_0x51d9a4,_0x2a2ba9[_0x4cf1ef(0x8e4)]=_0x93c46b||'');}[_0x42425d(0x8a9)](_0x3bbc45){const _0xed5c84=_0x42425d;if(!this[_0xed5c84(0x20e)]||this[_0xed5c84(0x432)])return;this[_0xed5c84(0x432)]=!![];if(_0x3bbc45)this['_log']=_0x3bbc45;this['_h']=_0x38246e({'resolution':0xa}),this['_h'][_0xed5c84(0x82b)](),this[_0xed5c84(0x466)]=setInterval(()=>this[_0xed5c84(0x3e3)](),_0x4497b1);if(this[_0xed5c84(0x466)][_0xed5c84(0x32d)])this[_0xed5c84(0x466)][_0xed5c84(0x32d)]();}[_0x42425d(0x465)](_0x5022f6){const _0x58a534=_0x42425d;if(!this['_windowCbs'])this[_0x58a534(0x8ab)]=new Set();this[_0x58a534(0x8ab)][_0x58a534(0x737)](_0x5022f6);if(!this[_0x58a534(0x432)])this[_0x58a534(0x4dc)]();}[_0x42425d(0x6e1)](_0x20b9eb){const _0x299b2f=_0x42425d;this[_0x299b2f(0x8ab)]?.[_0x299b2f(0x610)](_0x20b9eb);}['_startAdmission'](){const _0x42db87=_0x42425d;if(this[_0x42db87(0x862)])return;this[_0x42db87(0x862)]=!![];!this['_h']&&(this['_h']=_0x38246e({'resolution':0xa}),this['_h'][_0x42db87(0x82b)]());const _0x75818e=_0x4497b1;this[_0x42db87(0x7c0)]=setInterval(()=>{const _0x56cca1=_0x42db87,_0x1c55fe=this['_h'];if(!_0x1c55fe)return;const _0x306fa5=_0x1c55fe[_0x56cca1(0x7a5)](0x63)/0xf4240,_0x5c3691=_0x1c55fe[_0x56cca1(0x3d2)]/0xf4240,_0x5cf13c=_0x1c55fe[_0x56cca1(0x272)]/0xf4240;_0x1c55fe[_0x56cca1(0x8c9)]();if(this['_windowCbs'])for(const _0x4afb08 of this[_0x56cca1(0x8ab)]){try{_0x4afb08({'p99Ms':_0x306fa5,'maxMs':_0x5c3691,'meanMs':_0x5cf13c,'reportMs':_0x75818e});}catch{}}},_0x75818e);if(this[_0x42db87(0x7c0)]['unref'])this['_admissionTimer'][_0x42db87(0x32d)]();}[_0x42425d(0x3e3)](){const _0xccb6a8=_0x42425d,_0x423a50=this['_h'],_0x44efb5=_0x423a50[_0xccb6a8(0x3d2)]/0xf4240,_0x53711c=_0x423a50['percentile'](0x63)/0xf4240,_0x4e1185=_0x423a50[_0xccb6a8(0x272)]/0xf4240;_0x423a50['reset']();const _0x48340b=[...this['_buckets']['entries']()][_0xccb6a8(0x59f)](([_0x3cc54c,_0x544b19])=>({'label':_0x3cc54c,..._0x544b19}))[_0xccb6a8(0x878)]((_0x204efa,_0x135968)=>_0x135968['ms']-_0x204efa['ms'])[_0xccb6a8(0x836)](0x0,0x8);this[_0xccb6a8(0x2ca)][_0xccb6a8(0x510)]();const _0x311882=_0x48340b[_0xccb6a8(0x7c8)]((_0x5b4db3,_0x2284ee)=>_0x5b4db3+_0x2284ee['ms'],0x0),_0x15c4ff=_0x48340b[_0xccb6a8(0x59f)](_0x52c2a9=>_0x52c2a9[_0xccb6a8(0x8d9)]+'='+_0x52c2a9['ms'][_0xccb6a8(0x774)](0x0)+_0xccb6a8(0x41f)+_0x52c2a9[_0xccb6a8(0x44b)]+(_0x52c2a9[_0xccb6a8(0x6d3)]>0x5?_0xccb6a8(0x84d)+_0x52c2a9[_0xccb6a8(0x6d3)]['toFixed'](0x0)+'ms'+(_0x52c2a9[_0xccb6a8(0x8e4)]?'\x20'+_0x52c2a9[_0xccb6a8(0x8e4)]:'')+')':''));(_0x1d316a||_0x44efb5>=_0x3f2569)&&this[_0xccb6a8(0x4f0)](_0xccb6a8(0x47c)+_0x4497b1+_0xccb6a8(0x8c6)+_0x44efb5[_0xccb6a8(0x774)](0x0)+_0xccb6a8(0x740)+_0x53711c['toFixed'](0x0)+_0xccb6a8(0x6b8)+_0x4e1185['toFixed'](0x0)+'ms\x20busy='+_0x311882['toFixed'](0x0)+'ms'+(_0x15c4ff[_0xccb6a8(0x7e0)]?'\x20│\x20'+_0x15c4ff[_0xccb6a8(0x1cc)]('\x20\x20'):''),{'feature':_0xccb6a8(0x66e)});if(this['_windowCbs'])for(const _0x3f1119 of this[_0xccb6a8(0x8ab)]){try{_0x3f1119({'p99Ms':_0x53711c,'maxMs':_0x44efb5,'meanMs':_0x4e1185,'reportMs':_0x4497b1});}catch{}}}[_0x42425d(0x61d)](){const _0x38b86f=_0x42425d;if(this[_0x38b86f(0x466)])clearInterval(this[_0x38b86f(0x466)]);if(this['_h'])this['_h'][_0x38b86f(0x3e6)]();this[_0x38b86f(0x466)]=null,this['_h']=null,this[_0x38b86f(0x432)]=![];}}const _0xa45059=new _0x3a74ed();if(_0xa45059[_0x42425d(0x20e)])_0xa45059[_0x42425d(0x8a9)]();return okdbLoopMonitor={'LOOP':_0xa45059},okdbLoopMonitor;}var okdbTransaction,hasRequiredOkdbTransaction;function requireOkdbTransaction(){const _0xe3a0e=_0x7b0c8f;if(hasRequiredOkdbTransaction)return okdbTransaction;hasRequiredOkdbTransaction=0x1;const _0x1f08b3={'v4':()=>require$$0$2['randomUUID']()},{EVENTS:_0x106d1d}=requireOkdbEnums(),{OKDBError:_0x78b9f2}=requireOkdbError(),{recordGuardTrip:_0x1ae1f2,guardSnapshotIterable:_0x2399a9}=requireOkdbGuardedRange(),{LOOP:_0x4711f8}=requireOkdbLoopMonitor();function _0x5ed363(_0x4bbb2e){const _0x424690=_0xf27e;return _0x4bbb2e[_0x424690(0x59f)](_0x14eec6=>{const _0x57514f=_0x424690,[_0x3f276b,_0x8ece1b]=_0x14eec6[_0x57514f(0x3fc)]||[];return{'action':_0x14eec6['action'],'type':_0x3f276b,'key':_0x8ece1b};});}class _0x2e74ce{['okdb'];[_0xe3a0e(0x2f5)]=[];['_doHooks']=[];[_0xe3a0e(0x802)]=[];constructor(_0x1bd50d,_0x424335={'useReadTransaction':![]}){const _0x2319db=_0xe3a0e;this['okdb']=_0x1bd50d,this[_0x2319db(0x2c2)]=_0x424335,this['id']=_0x1f08b3['v4']();if(this[_0x2319db(0x2c2)][_0x2319db(0x886)])try{this['_txnIdAtSnapshot']=this[_0x2319db(0x709)]['db']['getStats']()[_0x2319db(0x8ca)];}catch{this[_0x2319db(0x5df)]=undefined;}this[_0x2319db(0x2ab)]=this[_0x2319db(0x2c2)][_0x2319db(0x886)]?this[_0x2319db(0x709)]['db']['useReadTransaction']():null,this[_0x2319db(0x79f)]=![],this[_0x2319db(0x2b6)]=![],this[_0x2319db(0x2ab)]&&queueMicrotask(()=>{const _0x2aa637=_0x2319db;this['readTransaction']&&(this[_0x2aa637(0x2ea)](),this[_0x2aa637(0x2b6)]=!![]);});}[_0xe3a0e(0x457)](_0x5e91ad){const _0x32ecee=_0xe3a0e;this[_0x32ecee(0x3c8)]['push'](_0x5e91ad);}['onUndo'](_0x982d08){const _0x84b724=_0xe3a0e;this[_0x84b724(0x802)]['push'](_0x982d08);}[_0xe3a0e(0x2ea)](){const _0x49baff=_0xe3a0e;if(!this[_0x49baff(0x2ab)])return;try{this[_0x49baff(0x2ab)]['done']();}catch(_0x4de807){}this[_0x49baff(0x2ab)]=null;}[_0xe3a0e(0x86e)](){const _0x6fb6eb=_0xe3a0e;if(this['_closed'])throw new _0x78b9f2(_0x6fb6eb(0x1d7),_0x6fb6eb(0x687));if(this[_0x6fb6eb(0x2b6)]){let _0x3301fc=![];if(this['options'][_0x6fb6eb(0x886)]==='tolerant'&&this['_txnIdAtSnapshot']!==undefined)try{_0x3301fc=this[_0x6fb6eb(0x709)]['db']['getStats']()[_0x6fb6eb(0x8ca)]===this[_0x6fb6eb(0x5df)];}catch{}if(!_0x3301fc){_0x1ae1f2((this['okdb']?.[_0x6fb6eb(0x264)]??'?')+_0x6fb6eb(0x67b));throw new _0x78b9f2(_0x6fb6eb(0x220)+_0x6fb6eb(0x215)+_0x6fb6eb(0x4ea)+_0x6fb6eb(0x3c4),'READER_HELD_ACROSS_AWAIT');}}}['get'](_0xb5a1a6,_0x5006ab){const _0x423dbf=_0xe3a0e;return this[_0x423dbf(0x86e)](),this['okdb'][_0x423dbf(0x341)](_0xb5a1a6,_0x5006ab,{'transaction':this[_0x423dbf(0x2ab)]});}[_0xe3a0e(0x4c9)](_0x451f8e,_0x243d7e){const _0x57ef51=_0xe3a0e;return this['_assertOpen'](),this[_0x57ef51(0x709)][_0x57ef51(0x4c9)](_0x451f8e,_0x243d7e,{'transaction':this[_0x57ef51(0x2ab)]});}[_0xe3a0e(0x333)](_0x1ccb2a,_0x393890){const _0x211206=_0xe3a0e;return this[_0x211206(0x86e)](),this[_0x211206(0x709)][_0x211206(0x333)](_0x1ccb2a,_0x393890,{'transaction':this['readTransaction']});}['_range'](_0x3be91a){const _0x805b92=_0xe3a0e;if(!this[_0x805b92(0x2c2)][_0x805b92(0x886)])return _0x3be91a;if(_0x3be91a&&typeof _0x3be91a[_0x805b92(0x478)]==='function')return _0x3be91a;if(Array['isArray'](_0x3be91a))return _0x3be91a;const _0x3bd5e5=this,_0x19bc6b=_0x3bd5e5[_0x805b92(0x2c2)][_0x805b92(0x886)]===_0x805b92(0x21c),_0x4026b8=()=>{const _0x23bd76=_0x805b92;if(!_0x3bd5e5['_readViewExpired'])return![];if(!_0x19bc6b)return!![];if(_0x3bd5e5[_0x23bd76(0x5df)]===undefined)return!![];try{return _0x3bd5e5[_0x23bd76(0x709)]['db']['getStats']()['lastTxnId']!==_0x3bd5e5[_0x23bd76(0x5df)];}catch{return!![];}};return _0x2399a9(()=>{const _0x2aff4d=_0x805b92;if(_0x3bd5e5[_0x2aff4d(0x79f)])throw new _0x78b9f2(_0x2aff4d(0x1d7),_0x2aff4d(0x687));if(_0x4026b8()){_0x1ae1f2((_0x3bd5e5['okdb']?.['name']??'?')+_0x2aff4d(0x23e));throw new _0x78b9f2(_0x2aff4d(0x768)+_0x2aff4d(0x852)+'materialize\x20them\x20(Array.from)\x20while\x20the\x20view\x20is\x20live.',_0x2aff4d(0x847));}return _0x3be91a;},{'label':(_0x3bd5e5[_0x805b92(0x709)]?.[_0x805b92(0x264)]??'?')+_0x805b92(0x23e),..._0x19bc6b?{'baseline':_0x3bd5e5[_0x805b92(0x5df)],'getTxnId':()=>_0x3bd5e5['okdb']['db'][_0x805b92(0x285)]()[_0x805b92(0x8ca)],'resume':(_0x42e913,_0x2046c4)=>_0x3be91a['slice'](_0x2046c4)}:{}});}['getRange'](_0x2391cc,_0x11c286={}){const _0x53ba51=_0xe3a0e;return this[_0x53ba51(0x86e)](),this[_0x53ba51(0x482)](this['okdb'][_0x53ba51(0x498)](_0x2391cc,{'transaction':this['readTransaction'],..._0x11c286}));}['getValues'](_0x2c59a3,_0x5794cf={}){const _0x458d90=_0xe3a0e;return this[_0x458d90(0x86e)](),this[_0x458d90(0x482)](this[_0x458d90(0x709)][_0x458d90(0x78d)](_0x2c59a3,{'transaction':this['readTransaction'],..._0x5794cf}));}[_0xe3a0e(0x4fb)](_0x21b468,_0x42e845={}){const _0x85a797=_0xe3a0e;return this[_0x85a797(0x86e)](),this[_0x85a797(0x482)](this[_0x85a797(0x709)][_0x85a797(0x4fb)](_0x21b468,{'transaction':this[_0x85a797(0x2ab)],..._0x42e845}));}['byIndex'](_0xcb873,_0x529614,_0x7a9155={}){const _0x50d816=_0xe3a0e;return this[_0x50d816(0x86e)](),this[_0x50d816(0x482)](this['okdb'][_0x50d816(0x34f)](_0xcb873,_0x529614,{'transaction':this[_0x50d816(0x2ab)],..._0x7a9155}));}[_0xe3a0e(0x3da)](_0x2031df,_0x40a65f,_0x3b0a7d={}){const _0x14a085=_0xe3a0e;return this['_assertOpen'](),this['_range'](this[_0x14a085(0x709)]['query'](_0x2031df,_0x40a65f,{'transaction':this[_0x14a085(0x2ab)],..._0x3b0a7d}));}[_0xe3a0e(0x788)](_0xaf345d=null){const _0x3bc3bf=_0xe3a0e;return this['_assertOpen'](),this['okdb'][_0x3bc3bf(0x788)](_0xaf345d,{'transaction':this[_0x3bc3bf(0x2ab)]});}['getCount'](_0x29dc7b){const _0xe2d2b0=_0xe3a0e;return this[_0xe2d2b0(0x86e)](),this[_0xe2d2b0(0x709)][_0xe2d2b0(0x47f)](_0x29dc7b,{'transaction':this['readTransaction']});}[_0xe3a0e(0x4a2)](_0xcfdecc,_0x80fe30,_0x55476e,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0xe3a0e(0x274)](),origin:origin=null,ttl:ttl=null}={}){const _0x382dd3=_0xe3a0e;this[_0x382dd3(0x2f5)][_0x382dd3(0x247)]({'action':'put','args':[_0xcfdecc,_0x80fe30,_0x55476e,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0xe3a0e(0x378)](_0x346bfb,_0x5d5866,_0x88ded3,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date['now'](),origin:origin=null,ttl:ttl=null}={}){const _0x31e271=_0xe3a0e;this[_0x31e271(0x2f5)]['push']({'action':_0x31e271(0x378),'args':[_0x346bfb,_0x5d5866,_0x88ded3,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0xe3a0e(0x50d)](_0x26a22c,_0x5b5660,_0xa4e84c,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0xe3a0e(0x274)](),origin:origin=null,ttl:ttl=null}={}){const _0x8cdf49=_0xe3a0e;this[_0x8cdf49(0x2f5)]['push']({'action':_0x8cdf49(0x50d),'args':[_0x26a22c,_0x5b5660,_0xa4e84c,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0xe3a0e(0x635)](_0x429f9e,_0x3a521d,_0x1d9198,{version:version=null,timestamp:timestamp=Date[_0xe3a0e(0x274)](),origin:origin=null,ttl:ttl=null}={}){const _0x21c042=_0xe3a0e;this[_0x21c042(0x2f5)][_0x21c042(0x247)]({'action':_0x21c042(0x635),'args':[_0x429f9e,_0x3a521d,_0x1d9198,{'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0xe3a0e(0x694)](_0x3fed3c,_0x47ccfb,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0xe3a0e(0x274)](),origin:origin=null}={}){const _0xd92b49=_0xe3a0e;this['actions'][_0xd92b49(0x247)]({'action':_0xd92b49(0x694),'args':[_0x3fed3c,_0x47ccfb,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin}]});}['setTTL'](_0x246b23,_0x3e53c6,_0x7e066){const _0x47420f=_0xe3a0e;this[_0x47420f(0x2f5)][_0x47420f(0x247)]({'action':'setTTL','args':[_0x246b23,_0x3e53c6,_0x7e066]});}[_0xe3a0e(0x2fc)](_0x190c8d,_0x5b14cb){const _0x5b947e=_0xe3a0e;this['actions'][_0x5b947e(0x247)]({'action':_0x5b947e(0x2fc),'args':[_0x190c8d,_0x5b14cb]});}['rollback'](){const _0x4b2d63=_0xe3a0e;if(this[_0x4b2d63(0x79f)])return;for(const _0x5c76e4 of this[_0x4b2d63(0x802)]){try{_0x5c76e4();}catch{}}this['okdb'][_0x4b2d63(0x4a6)][_0x4b2d63(0x224)](_0x106d1d[_0x4b2d63(0x7e5)],{'id':this['id']}),this['actions']=[],this[_0x4b2d63(0x2ea)](),this[_0x4b2d63(0x79f)]=!![];}async[_0xe3a0e(0x436)](){const _0x2bcb54=_0xe3a0e;if(this[_0x2bcb54(0x79f)])throw new Error(_0x2bcb54(0x1d7));const _0x36a29d={'id':this['id'],'timestamp':Date['now'](),'actions':this[_0x2bcb54(0x2f5)]};this[_0x2bcb54(0x709)][_0x2bcb54(0x4a6)]['emit'](_0x106d1d['TXN_START'],_0x36a29d);try{const _0x2bc28f=_0x4711f8[_0x2bcb54(0x20e)]?_0x4711f8[_0x2bcb54(0x274)]():0x0;await this[_0x2bcb54(0x709)]['_writer'][_0x2bcb54(0x7b1)](()=>{const _0x16b715=_0x2bcb54;for(const _0x4f2119 of this[_0x16b715(0x2f5)]){const _0x29cf17=this[_0x16b715(0x709)]['_'+_0x4f2119[_0x16b715(0x42a)]];if(typeof _0x29cf17!=='function')throw new Error(_0x16b715(0x38b)+_0x4f2119[_0x16b715(0x42a)]);_0x29cf17[_0x16b715(0x352)](this[_0x16b715(0x709)],this,..._0x4f2119['args']);}}),_0x4711f8[_0x2bcb54(0x20e)]&&_0x4711f8['note'](_0x2bcb54(0x4ff),_0x4711f8[_0x2bcb54(0x274)]()-_0x2bc28f,(this[_0x2bcb54(0x709)][_0x2bcb54(0x264)]??'?')+'\x20actions='+this[_0x2bcb54(0x2f5)][_0x2bcb54(0x7e0)]);}catch(_0x505169){for(const _0x25fc0b of this[_0x2bcb54(0x802)]){try{_0x25fc0b();}catch{}}this[_0x2bcb54(0x2ea)](),this[_0x2bcb54(0x79f)]=!![];if(_0x505169 instanceof _0x78b9f2)throw _0x505169;const _0x131231={'cause':_0x505169,'env':this[_0x2bcb54(0x709)]?.[_0x2bcb54(0x264)],'envPath':this['okdb']?.['path'],'pid':process['pid'],'txnId':this['id'],'actionCount':this['actions'][_0x2bcb54(0x7e0)],'actions':_0x5ed363(this[_0x2bcb54(0x2f5)]),'nativeCode':_0x505169?.[_0x2bcb54(0x5c5)],'nativeName':_0x505169?.[_0x2bcb54(0x264)]};try{this['okdb']?.[_0x2bcb54(0x5a7)]?.[_0x2bcb54(0x292)]?.('transaction\x20commit\x20failed',{'env':_0x131231['env'],'envPath':_0x131231[_0x2bcb54(0x91c)],'pid':_0x131231[_0x2bcb54(0x441)],'txnId':_0x131231[_0x2bcb54(0x786)],'actionCount':_0x131231[_0x2bcb54(0x374)],'actions':_0x131231[_0x2bcb54(0x2f5)],'nativeCode':_0x131231[_0x2bcb54(0x820)],'error':_0x505169?.['message'],'stack':_0x505169?.[_0x2bcb54(0x30d)]});}catch{}throw new _0x78b9f2(_0x505169?.[_0x2bcb54(0x63a)]||'Unknown\x20OKDB\x20transaction\x20error','TXN_ERROR',_0x131231);}this[_0x2bcb54(0x709)][_0x2bcb54(0x4a6)][_0x2bcb54(0x224)](_0x106d1d[_0x2bcb54(0x8b0)],_0x36a29d);for(const _0x581803 of this[_0x2bcb54(0x3c8)]){try{await _0x581803();}catch{}}this[_0x2bcb54(0x2f5)]=[],this[_0x2bcb54(0x2ea)](),this['_closed']=!![];}static[_0xe3a0e(0x7b6)](_0xb009a2){const _0x3a3afd=_0xe3a0e;return Object[_0x3a3afd(0x65b)]({'id':_0xb009a2['id'],'put':_0xb009a2[_0x3a3afd(0x4a2)][_0x3a3afd(0x73f)](_0xb009a2),'update':_0xb009a2[_0x3a3afd(0x378)]['bind'](_0xb009a2),'patch':_0xb009a2[_0x3a3afd(0x50d)][_0x3a3afd(0x73f)](_0xb009a2),'create':_0xb009a2['create'][_0x3a3afd(0x73f)](_0xb009a2),'remove':_0xb009a2[_0x3a3afd(0x694)][_0x3a3afd(0x73f)](_0xb009a2),'setTTL':_0xb009a2['setTTL'][_0x3a3afd(0x73f)](_0xb009a2),'clearTTL':_0xb009a2['clearTTL'][_0x3a3afd(0x73f)](_0xb009a2),'commit':_0xb009a2[_0x3a3afd(0x436)][_0x3a3afd(0x73f)](_0xb009a2),'rollback':_0xb009a2[_0x3a3afd(0x764)][_0x3a3afd(0x73f)](_0xb009a2),'get':_0xb009a2['get']['bind'](_0xb009a2),'getEntry':_0xb009a2['getEntry'][_0x3a3afd(0x73f)](_0xb009a2),'getMany':_0xb009a2[_0x3a3afd(0x333)][_0x3a3afd(0x73f)](_0xb009a2),'getRange':_0xb009a2[_0x3a3afd(0x498)][_0x3a3afd(0x73f)](_0xb009a2),'getValues':_0xb009a2[_0x3a3afd(0x78d)][_0x3a3afd(0x73f)](_0xb009a2),'getKeys':_0xb009a2[_0x3a3afd(0x4fb)][_0x3a3afd(0x73f)](_0xb009a2),'byIndex':_0xb009a2[_0x3a3afd(0x34f)][_0x3a3afd(0x73f)](_0xb009a2),'query':_0xb009a2[_0x3a3afd(0x3da)][_0x3a3afd(0x73f)](_0xb009a2),'getClock':_0xb009a2[_0x3a3afd(0x788)]['bind'](_0xb009a2),'getCount':_0xb009a2[_0x3a3afd(0x47f)][_0x3a3afd(0x73f)](_0xb009a2),'read':_0xb009a2,'raw':_0xb009a2});}static[_0xe3a0e(0x730)](_0x2d2bde,_0x7e0019=[]){const _0x115e06=_0xe3a0e;if(!Array[_0x115e06(0x239)](_0x7e0019))throw new _0x78b9f2(_0x115e06(0x5b8),_0x115e06(0x283));for(const _0x5b4ab9 of _0x7e0019){if(Array['isArray'](_0x5b4ab9)){const [_0x5c830a,..._0x41b9e5]=_0x5b4ab9;if(typeof _0x2d2bde[_0x5c830a]!==_0x115e06(0x84a))throw new _0x78b9f2(_0x115e06(0x38b)+_0x5c830a,_0x115e06(0x583),{'action':_0x5c830a});_0x2d2bde[_0x5c830a](..._0x41b9e5);continue;}if(!_0x5b4ab9||typeof _0x5b4ab9!==_0x115e06(0x81a))throw new _0x78b9f2('txn\x20op\x20must\x20be\x20an\x20object\x20or\x20tuple',_0x115e06(0x60a));const {action:_0x5c90cd}=_0x5b4ab9;if(typeof _0x5c90cd!=='string'||typeof _0x2d2bde[_0x5c90cd]!==_0x115e06(0x84a))throw new _0x78b9f2(_0x115e06(0x38b)+_0x5c90cd,_0x115e06(0x583),{'action':_0x5c90cd});switch(_0x5c90cd){case _0x115e06(0x4a2):case _0x115e06(0x378):case _0x115e06(0x635):_0x2d2bde[_0x5c90cd](_0x5b4ab9[_0x115e06(0x326)],_0x5b4ab9[_0x115e06(0x8cd)],_0x5b4ab9['value'],{..._0x5b4ab9[_0x115e06(0x2c2)],'ttl':_0x5b4ab9['ttl']??_0x5b4ab9[_0x115e06(0x2c2)]?.['ttl']??null});break;case'patch':_0x2d2bde['patch'](_0x5b4ab9[_0x115e06(0x326)],_0x5b4ab9['key'],_0x5b4ab9[_0x115e06(0x50d)],{..._0x5b4ab9[_0x115e06(0x2c2)],'ttl':_0x5b4ab9[_0x115e06(0x904)]??_0x5b4ab9[_0x115e06(0x2c2)]?.[_0x115e06(0x904)]??null});break;case _0x115e06(0x694):_0x2d2bde[_0x115e06(0x694)](_0x5b4ab9[_0x115e06(0x326)],_0x5b4ab9[_0x115e06(0x8cd)],_0x5b4ab9[_0x115e06(0x2c2)]||{});break;case _0x115e06(0x65a):_0x2d2bde[_0x115e06(0x65a)](_0x5b4ab9[_0x115e06(0x326)],_0x5b4ab9['key'],_0x5b4ab9['ttl']);break;case'clearTTL':_0x2d2bde[_0x115e06(0x2fc)](_0x5b4ab9[_0x115e06(0x326)],_0x5b4ab9[_0x115e06(0x8cd)]);break;default:throw new _0x78b9f2('Unsupported\x20transaction\x20action:\x20'+_0x5c90cd,_0x115e06(0x583),{'action':_0x5c90cd});}}}static async[_0xe3a0e(0x71e)](_0x32ddb6,_0x4ea7e,_0x316704={}){const _0x2f5e22=_0xe3a0e,_0x2d1b69=new _0x2e74ce(_0x32ddb6,_0x316704),_0x4544d7=_0x2e74ce[_0x2f5e22(0x7b6)](_0x2d1b69);try{typeof _0x4ea7e===_0x2f5e22(0x84a)?await _0x4ea7e(_0x4544d7):_0x2e74ce[_0x2f5e22(0x730)](_0x2d1b69,_0x4ea7e||[]);const _0x8bab88=_0x2d1b69['actions'][_0x2f5e22(0x7e0)];return await _0x2d1b69[_0x2f5e22(0x436)](),{'id':_0x2d1b69['id'],'actions':_0x8bab88};}catch(_0xec2dc9){try{_0x2d1b69[_0x2f5e22(0x764)]();}catch(_0x474e17){}throw _0xec2dc9;}}}return okdbTransaction=_0x2e74ce,okdbTransaction;}var dist={},hasRequiredDist;function requireDist(){const _0x5c7419=_0x7b0c8f;if(hasRequiredDist)return dist;hasRequiredDist=0x1,Object['defineProperty'](dist,_0x5c7419(0x42c),{'value':!![]});const _0x401e22=new Float64Array(0x2),_0x5e5ac5=new Int32Array(_0x401e22[_0x5c7419(0x65e)],0x0,0x4),{lowIdx:_0x1310ce,highIdx:_0x45e16c}=((()=>{if(new Uint8Array(new Uint32Array([0xffee1100])['buffer'])[0x0]===0xff)return{'lowIdx':0x1,'highIdx':0x0};return{'lowIdx':0x0,'highIdx':0x1};})());let _0x41b214=![],_0x3fba9c;try{_0x3fba9c=new TextEncoder();}catch(_0x4e7813){}function _0x593e66(_0x23d6d8,_0x5754c8,position,_0x21423b){const _0x1fd3c9=_0x5c7419;let _0x527ff1=_0x5754c8[_0x1fd3c9(0x742)];if(!_0x527ff1)_0x527ff1=_0x5754c8[_0x1fd3c9(0x742)]=new DataView(_0x5754c8[_0x1fd3c9(0x65e)],_0x5754c8[_0x1fd3c9(0x4d6)],_0x5754c8[_0x1fd3c9(0x68f)]+0x3>>0x2<<0x2);switch(typeof _0x23d6d8){case _0x1fd3c9(0x6d1):let _0x2989be=_0x23d6d8[_0x1fd3c9(0x7e0)],_0x4a159f=_0x23d6d8[_0x1fd3c9(0x81c)](0x0);if(!(_0x4a159f>=0x1c))_0x5754c8[position++]=0x1b;if(_0x2989be<0x40){let _0x2ef503,_0x3ab97f;for(_0x2ef503=0x0;_0x2ef503<_0x2989be;_0x2ef503++){_0x4a159f=_0x23d6d8[_0x1fd3c9(0x81c)](_0x2ef503);if(_0x4a159f<=0x4)_0x5754c8[position++]=0x4,_0x5754c8[position++]=_0x4a159f;else{if(_0x4a159f<0x80)_0x5754c8[position++]=_0x4a159f;else{if(_0x4a159f<0x800)_0x5754c8[position++]=_0x4a159f>>0x6|0xc0,_0x5754c8[position++]=_0x4a159f&0x3f|0x80;else(_0x4a159f&0xfc00)===0xd800&&((_0x3ab97f=_0x23d6d8[_0x1fd3c9(0x81c)](_0x2ef503+0x1))&0xfc00)===0xdc00?(_0x4a159f=0x10000+((_0x4a159f&0x3ff)<<0xa)+(_0x3ab97f&0x3ff),_0x2ef503++,_0x5754c8[position++]=_0x4a159f>>0x12|0xf0,_0x5754c8[position++]=_0x4a159f>>0xc&0x3f|0x80,_0x5754c8[position++]=_0x4a159f>>0x6&0x3f|0x80,_0x5754c8[position++]=_0x4a159f&0x3f|0x80):(_0x5754c8[position++]=_0x4a159f>>0xc|0xe0,_0x5754c8[position++]=_0x4a159f>>0x6&0x3f|0x80,_0x5754c8[position++]=_0x4a159f&0x3f|0x80);}}}}else{if(_0x5754c8[_0x1fd3c9(0x28f)])position+=_0x5754c8['utf8Write'](_0x23d6d8,position,_0x5754c8[_0x1fd3c9(0x68f)]-position);else position+=_0x3fba9c['encodeInto'](_0x23d6d8,_0x5754c8['subarray'](position))[_0x1fd3c9(0x1b7)];if(position>_0x5754c8[_0x1fd3c9(0x7e0)]-0x4)throw new RangeError(_0x1fd3c9(0x52f));}break;case _0x1fd3c9(0x645):_0x401e22[0x0]=_0x23d6d8;let _0x525cf4=_0x5e5ac5[_0x1310ce],_0x3ae127=_0x5e5ac5[_0x45e16c],_0x70041d;if(_0x23d6d8<0x0)return _0x527ff1['setInt32'](position+0x4,~(_0x525cf4>>>0x4|_0x3ae127<<0x1c)),_0x527ff1[_0x1fd3c9(0x54e)](position+0x0,(_0x3ae127^0x7fffffff)>>>0x4),_0x527ff1[_0x1fd3c9(0x54e)](position+0x8,(_0x525cf4&0xf^0xf)<<0x4,!![]),position+0x9;else{if(_0x525cf4&0xf||_0x21423b)_0x70041d=0x9;else{if(_0x525cf4&0xfffff)_0x70041d=0x8;else{if(_0x525cf4||_0x3ae127&0xf)_0x70041d=0x6;else _0x70041d=0x4;}}}_0x527ff1[_0x1fd3c9(0x54e)](position+0x0,_0x3ae127>>>0x4|0x10000000),_0x527ff1[_0x1fd3c9(0x54e)](position+0x4,_0x525cf4>>>0x4|_0x3ae127<<0x1c),_0x527ff1[_0x1fd3c9(0x54e)](position+0x8,(_0x525cf4&0xf)<<0x4,!![]);return position+_0x70041d;case _0x1fd3c9(0x81a):if(_0x23d6d8){if(Array[_0x1fd3c9(0x239)](_0x23d6d8)){for(let _0x1982e7=0x0,_0x28010a=_0x23d6d8[_0x1fd3c9(0x7e0)];_0x1982e7<_0x28010a;_0x1982e7++){if(_0x1982e7>0x0)_0x5754c8[position++]=0x0;position=_0x593e66(_0x23d6d8[_0x1982e7],_0x5754c8,position,!![]);}break;}else{if(_0x23d6d8 instanceof Uint8Array){_0x5754c8['set'](_0x23d6d8,position),position+=_0x23d6d8[_0x1fd3c9(0x7e0)];break;}else throw new Error(_0x1fd3c9(0x6b2)+JSON[_0x1fd3c9(0x7af)](_0x23d6d8));}}else _0x5754c8[position++]=0x0;break;case _0x1fd3c9(0x2a4):_0x527ff1[_0x1fd3c9(0x73e)](position++,_0x23d6d8?0x7:0x6,!![]);return position;case'bigint':let _0x59c461=Number(_0x23d6d8);if(BigInt(_0x59c461)>_0x23d6d8){_0x401e22[0x0]=_0x59c461;if(_0x59c461>0x0){if(_0x5e5ac5[_0x1310ce])_0x5e5ac5[_0x1310ce]--;else _0x5e5ac5[_0x45e16c]--,_0x5e5ac5[_0x1310ce]=0xffffffff;}else{if(_0x5e5ac5[_0x1310ce]<0xffffffff)_0x5e5ac5[_0x1310ce]++;else _0x5e5ac5[_0x45e16c]++,_0x5e5ac5[_0x1310ce]=0x0;}_0x59c461=_0x401e22[0x0];}let _0x49f7c5=_0x23d6d8-BigInt(_0x59c461);if(_0x49f7c5===0x0n)return _0x593e66(_0x59c461,_0x5754c8,position,_0x21423b);_0x593e66(_0x59c461,_0x5754c8,position,_0x21423b),position+=0x9;let _0x314386=BigInt((_0x5e5ac5[_0x45e16c]>>0x14&0x7ff)-0x437),_0x213f19=_0x49f7c5>>_0x314386;_0x5754c8[position-0x1]|=Number(_0x213f19),_0x49f7c5-=_0x213f19<<_0x314386;let _0x3dfc5b=!![];while(_0x49f7c5||_0x3dfc5b){_0x3dfc5b=![],_0x314386-=0x7n;let _0x55d584=_0x49f7c5>>_0x314386;_0x5754c8[position++]=Number(_0x55d584)|0x80,_0x49f7c5-=_0x55d584<<_0x314386;}return position;case _0x1fd3c9(0x30c):return position;case _0x1fd3c9(0x339):_0x5754c8[position++]=0x2;return _0x593e66(_0x23d6d8[_0x1fd3c9(0x3d3)],_0x5754c8,position,_0x21423b);default:throw new Error(_0x1fd3c9(0x383)+typeof _0x23d6d8);}if(_0x41b214&&!_0x21423b)_0x527ff1[_0x1fd3c9(0x73e)](position,0x0);return position;}let position;function _0x5af8d8(_0x75b54a,_0x3fa604,_0x5bc07e,_0x3486d2){const _0x2cb4d1=_0x5c7419;position=_0x3fa604;let _0x543f72=_0x75b54a[position],_0x5d9bb4;if(_0x543f72<0x18){if(_0x543f72<0x8){position++;if(_0x543f72==0x6)_0x5d9bb4=![];else{if(_0x543f72==0x7)_0x5d9bb4=!![];else{if(_0x543f72==0x0)_0x5d9bb4=null;else{if(_0x543f72==0x2)_0x5d9bb4=Symbol['for'](_0x3a05ba(_0x75b54a,_0x5bc07e));else return Uint8Array[_0x2cb4d1(0x36e)]['slice'][_0x2cb4d1(0x352)](_0x75b54a,_0x3fa604,_0x5bc07e);}}}}else{let _0x4b8278;try{_0x4b8278=_0x75b54a[_0x2cb4d1(0x742)]||(_0x75b54a[_0x2cb4d1(0x742)]=new DataView(_0x75b54a[_0x2cb4d1(0x65e)],_0x75b54a[_0x2cb4d1(0x4d6)],_0x75b54a[_0x2cb4d1(0x68f)]+0x3>>0x2<<0x2));}catch(_0x36d07f){_0x4b8278=_0x75b54a[_0x2cb4d1(0x742)]||(_0x75b54a[_0x2cb4d1(0x742)]=new DataView(_0x75b54a[_0x2cb4d1(0x65e)],_0x75b54a[_0x2cb4d1(0x4d6)],_0x75b54a[_0x2cb4d1(0x65e)][_0x2cb4d1(0x68f)]-_0x75b54a[_0x2cb4d1(0x4d6)]));}let _0x52a10c=_0x4b8278[_0x2cb4d1(0x278)](position)<<0x4,_0x34084f=_0x5bc07e-position,_0x1058c5;if(_0x34084f>0x4)_0x1058c5=position+0x8<=_0x75b54a[_0x2cb4d1(0x7e0)]?_0x4b8278[_0x2cb4d1(0x278)](position+0x4):_0x75b54a[position+0x4]<<0x18|_0x75b54a[position+0x5]<<0x10|_0x75b54a[position+0x6]<<0x8|_0x75b54a[position+0x7],_0x52a10c|=_0x1058c5>>>0x1c,_0x34084f<=0x6&&(_0x1058c5&=-0x10000),_0x1058c5=_0x1058c5<<0x4,_0x34084f>0x8&&(_0x1058c5=_0x1058c5|_0x75b54a[position+0x8]>>0x4);else _0x1058c5=0x0;_0x543f72<0x10&&(_0x52a10c=_0x52a10c^0x7fffffff,_0x1058c5=~_0x1058c5);_0x5e5ac5[_0x45e16c]=_0x52a10c,_0x5e5ac5[_0x1310ce]=_0x1058c5,_0x5d9bb4=_0x401e22[0x0],position+=0x9;if(_0x34084f>0x9&&_0x75b54a[position]>0x0){_0x5d9bb4=BigInt(_0x5d9bb4);let _0x4f47c3=_0x52a10c>>0x14&0x7ff,_0x59993b=_0x75b54a[position-0x1]&0xf;_0x5d9bb4+=BigInt(_0x59993b)<<BigInt(_0x4f47c3-0x437);while((_0x59993b=_0x75b54a[position])>0x0&&position++<_0x5bc07e){_0x5d9bb4+=BigInt(_0x59993b&0x7f)<<BigInt((_0x3fa604-position)*0x7+_0x4f47c3-0x3f8);}}}}else{_0x543f72==0x1b&&position++;_0x5d9bb4=_0x3a05ba(_0x75b54a,_0x5bc07e);if(position<_0x5bc07e)position--;}while(position<_0x5bc07e){if(_0x75b54a[position]===0x0)position++;if(_0x3486d2)return _0x71e2f5[_0x2cb4d1(0x1c8)]=position,_0x5d9bb4;let _0x1fbab0=_0x5af8d8(_0x75b54a,position,_0x5bc07e,!![]);if(_0x5d9bb4 instanceof Array)_0x5d9bb4[_0x2cb4d1(0x247)](_0x1fbab0);else _0x5d9bb4=[_0x5d9bb4,_0x1fbab0];}return _0x5d9bb4;}const _0x38afa8=()=>_0x41b214=!![],_0x71e2f5={'writeKey':_0x593e66,'readKey':_0x5af8d8,'enableNullTermination':_0x38afa8};let _0x3630df=[],_0x521c17=0x0;const _0x450e98=typeof Buffer!==_0x5c7419(0x30c),_0x39960c=_0x450e98?Buffer[_0x5c7419(0x622)]:Uint8Array,_0x11ee75=_0x42c2a5=>{const _0xcc8deb=_0x5c7419;let _0x51b9a6;_0x521c17+0x64>_0x3630df['length']&&(_0x3630df=new _0x39960c(0x2000),_0x521c17=0x0,_0x51b9a6=!![]);try{let _0x5c06c6=_0x3630df['slice'](_0x521c17,_0x521c17=_0x593e66(_0x42c2a5,_0x3630df,_0x521c17));if(_0x521c17>_0x3630df[_0xcc8deb(0x7e0)]){if(_0x51b9a6)throw new Error(_0xcc8deb(0x723));return _0x11ee75(_0x42c2a5);}return _0x5c06c6;}catch(_0x30448d){if(_0x51b9a6)throw _0x30448d;return _0x521c17=_0x3630df[_0xcc8deb(0x7e0)],_0x11ee75(_0x42c2a5);}},_0x3b0a8a=_0x356019=>{return _0x5af8d8(_0x356019,0x0,_0x356019['length']);},fromCharCode=String[_0x5c7419(0x3e7)];function _0x5dcd97(){const _0x551fd8=_0x5c7419;let _0x3fd561=_0x551fd8(0x544),_0x455837=[];for(let _0x5dbdb0=0x0;_0x5dbdb0<0x30;_0x5dbdb0++){let _0x3323ff=fromCharCode((_0x5dbdb0&0xf)+0x61)+fromCharCode((_0x5dbdb0>>0x4)+0x61);_0x3fd561+=_0x551fd8(0x642)+_0x3323ff+_0x551fd8(0x1d4)+_0x3323ff+'\x20>\x204)\x20{\x0a\x09\x09\x09if\x20('+_0x3323ff+_0x551fd8(0x6bd)+_0x3323ff+'\x20=\x20finishUtf8('+_0x3323ff+_0x551fd8(0x673)+_0x3323ff+_0x551fd8(0x8cc)+_0x3323ff+_0x551fd8(0x7f8)+_0x455837+')\x0a\x09\x09}\x0a\x09\x09',_0x455837[_0x551fd8(0x247)](_0x3323ff);}return _0x3fd561+=_0x551fd8(0x77e)+_0x455837+_0x551fd8(0x929),_0x3fd561;}const readString=typeof process!==_0x5c7419(0x30c)&&process['isBun']?function(_0x1f327c){let {setPosition:_0x3d18e3,getPosition:_0x6915f4,readString:readString}=_0x1f327c;return _0x148bcc=>{_0x3d18e3(position);let _0x2b3cef=readString(_0x148bcc);return position=_0x6915f4(),_0x2b3cef;};}(new Function(_0x5c7419(0x3e7),_0x5c7419(0x5a2)+_0x5dcd97()+_0x5c7419(0x5ab)+'setPosition(p)\x20{\x20position\x20=\x20p\x20},'+_0x5c7419(0x2f3)+_0x5c7419(0x33e))(fromCharCode)):eval(_0x5dcd97());function _0x3a05ba(_0x5e0965,_0x2a4555){if(_0x5e0965[_0x2a4555]>0x0){let _0x333fe6=_0x5e0965[_0x2a4555];try{return _0x5e0965[_0x2a4555]=0x0,readString(_0x5e0965);}finally{_0x5e0965[_0x2a4555]=_0x333fe6;}}else return readString(_0x5e0965);}function _0x39368f(_0xb3a624,_0x39edb4){const _0x2e2185=_0x5c7419;if(typeof _0xb3a624==_0x2e2185(0x81a)){if(!_0xb3a624)return _0x39edb4==null?0x0:-0x1;if(_0xb3a624[_0x2e2185(0x921)]){if(_0x39edb4==null)return 0x1;else return _0x39edb4['compare']?_0xb3a624['compare'](_0x39edb4):-0x1;}let _0x1249c6;if(_0x39edb4 instanceof Array){let _0x3ab3ab=0x0;while((_0x1249c6=_0x39368f(_0xb3a624[_0x3ab3ab],_0x39edb4[_0x3ab3ab]))==0x0&&_0x3ab3ab<=_0xb3a624[_0x2e2185(0x7e0)]){_0x3ab3ab++;}return _0x1249c6;}_0x1249c6=_0x39368f(_0xb3a624[0x0],_0x39edb4);if(_0x1249c6==0x0&&_0xb3a624[_0x2e2185(0x7e0)]>0x1)return 0x1;return _0x1249c6;}else{if(typeof _0xb3a624==typeof _0x39edb4)return typeof _0xb3a624===_0x2e2185(0x339)&&(_0xb3a624=Symbol['keyFor'](_0xb3a624),_0x39edb4=Symbol[_0x2e2185(0x587)](_0x39edb4)),_0xb3a624<_0x39edb4?-0x1:_0xb3a624===_0x39edb4?0x0:0x1;else{if(typeof _0x39edb4=='object'){if(_0x39edb4 instanceof Array)return-_0x39368f(_0x39edb4,_0xb3a624);return 0x1;}else return _0x499250[typeof _0xb3a624]<_0x499250[typeof _0x39edb4]?-0x1:0x1;}}}const _0x499250={'symbol':0x0,'undefined':0x1,'boolean':0x2,'number':0x3,'string':0x4},_0x3b9cbe=null,_0x3210b6=new Uint8Array([0xff]);return dist[_0x5c7419(0x2aa)]=_0x3210b6,dist[_0x5c7419(0x3d0)]=_0x3b9cbe,dist[_0x5c7419(0x45c)]=_0x39368f,dist[_0x5c7419(0x483)]=_0x38afa8,dist[_0x5c7419(0x39a)]=_0x71e2f5,dist[_0x5c7419(0x7df)]=_0x3b0a8a,dist[_0x5c7419(0x1cb)]=_0x5af8d8,dist[_0x5c7419(0x1b5)]=_0x11ee75,dist[_0x5c7419(0x485)]=_0x593e66,dist;}var keyenc,hasRequiredKeyenc;function requireKeyenc(){if(hasRequiredKeyenc)return keyenc;hasRequiredKeyenc=0x1;const {writeKey:_0x1d2e2a}=requireDist(),_0xe5265b=0x7ba,_0x1228e7=0x1000;function _0x2a6059(_0x339558,_0xac2817){const _0x4f8c03=_0xf27e;switch(typeof _0x339558){case _0x4f8c03(0x6d1):return _0x339558[_0x4f8c03(0x7e0)]<=_0xe5265b&&_0x339558[_0x4f8c03(0x379)]();case _0x4f8c03(0x645):case _0x4f8c03(0x2a4):return!![];case _0x4f8c03(0x81a):if(_0x339558===null)return!![];if(Array[_0x4f8c03(0x239)](_0x339558)){if(_0xac2817>0x8||_0x339558[_0x4f8c03(0x7e0)]>_0xe5265b)return![];for(let _0x56915b=0x0;_0x56915b<_0x339558[_0x4f8c03(0x7e0)];_0x56915b++)if(!_0x2a6059(_0x339558[_0x56915b],_0xac2817+0x1))return![];return!![];}return Buffer[_0x4f8c03(0x5d9)](_0x339558)&&_0x339558[_0x4f8c03(0x7e0)]<=_0xe5265b;default:return![];}}function _0x2e4139(_0xac28c0,_0x4bb178){const _0x10447b=_0xf27e,_0x1081d1=typeof _0xac28c0;if(_0x1081d1===_0x10447b(0x6d1)){if(_0xac28c0[_0x10447b(0x7e0)]>=0x40||!_0xac28c0[_0x10447b(0x379)]()){if(!_0x2a6059(_0xac28c0,0x0))return-0x1;}}else{if(_0x1081d1!==_0x10447b(0x645)){if(Array[_0x10447b(0x239)](_0xac28c0)?_0xac28c0[_0x10447b(0x7e0)]===0x0||!_0x2a6059(_0xac28c0,0x0):!_0x2a6059(_0xac28c0,0x0))return-0x1;}}let _0x156227;try{_0x156227=_0x1d2e2a(_0xac28c0,_0x4bb178,0x0);}catch{return-0x1;}return _0x156227>0x0&&_0x156227<=_0xe5265b?_0x156227:-0x1;}return keyenc={'encodeKey':_0x2e4139,'KEY_BUF_SIZE':_0x1228e7,'NO_FAST':Symbol('okdb.noFast')},keyenc;}var okdbHlc,hasRequiredOkdbHlc;function requireOkdbHlc(){const _0xf4f429=_0x7b0c8f;if(hasRequiredOkdbHlc)return okdbHlc;hasRequiredOkdbHlc=0x1;const _0x5d4dbf=0x400,_0x1cbbae=_0x5d4dbf-0x1,_0xc60fcf=0xea60;function _0x13ab31(_0x3eeac1,_0x23441b){const _0x5d52b9=_0xf27e;return _0x3eeac1*_0x5d4dbf+Math[_0x5d52b9(0x3d2)](0x0,Math['min'](_0x23441b,_0x1cbbae));}function _0x46bead(_0x2f6ff9){const _0x30ec41=_0xf27e,_0x3259db=Math[_0x30ec41(0x3d2)](0x0,Number(_0x2f6ff9)||0x0),_0x4644ec=_0x3259db%_0x5d4dbf,_0x3fac95=(_0x3259db-_0x4644ec)/_0x5d4dbf;return{'pt':_0x3fac95,'l':_0x4644ec};}function _0x51fc5c(_0x456d0e,_0x14bec3=Date[_0xf4f429(0x274)]()){const _0xe7875c=_0xf4f429,{pt:_0x11c2c0,l:_0x1e765d}=_0x46bead(_0x456d0e),_0x144112=Math[_0xe7875c(0x3d2)](_0x11c2c0,_0x14bec3),_0x508a05=_0x144112===_0x11c2c0?Math['min'](_0x1e765d+0x1,_0x1cbbae):0x0;return _0x13ab31(_0x144112,_0x508a05);}function _0x4f57e7(_0x4b7016,_0xc2c48d,_0x212ecb=Date[_0xf4f429(0x274)]()){const _0x10a0b1=_0xf4f429,{pt:_0x21ed8e,l:_0x1c6518}=_0x46bead(_0x4b7016),{pt:_0x29ca70,l:_0x5f573a}=_0x46bead(_0xc2c48d),_0x4bc99e=Math[_0x10a0b1(0x3d2)](_0x21ed8e,_0x29ca70,_0x212ecb);let _0xcd2712;if(_0x4bc99e===_0x21ed8e&&_0x4bc99e===_0x29ca70)_0xcd2712=Math['min'](Math[_0x10a0b1(0x3d2)](_0x1c6518,_0x5f573a)+0x1,_0x1cbbae);else{if(_0x4bc99e===_0x21ed8e)_0xcd2712=Math[_0x10a0b1(0x644)](_0x1c6518+0x1,_0x1cbbae);else _0x4bc99e===_0x29ca70?_0xcd2712=Math['min'](_0x5f573a+0x1,_0x1cbbae):_0xcd2712=0x0;}return _0x13ab31(_0x4bc99e,_0xcd2712);}function _0x5e849b(_0x19c152,_0x294f46){const _0x5132a3=Number(_0x19c152)||0x0,_0x1f1405=Number(_0x294f46)||0x0;if(_0x5132a3<_0x1f1405)return-0x1;if(_0x5132a3>_0x1f1405)return 0x1;return 0x0;}function _0x3bee7(_0x3ffb26){return _0x46bead(_0x3ffb26)['pt'];}return okdbHlc={'send':_0x51fc5c,'recv':_0x4f57e7,'compare':_0x5e849b,'toMs':_0x3bee7,'encode':_0x13ab31,'decode':_0x46bead,'SCALE':_0x5d4dbf,'L_MAX':_0x1cbbae,'DRIFT_MAX':_0xc60fcf},okdbHlc;}var env,hasRequiredEnv;function requireEnv(){const _0x18518c=_0x7b0c8f;if(hasRequiredEnv)return env;hasRequiredEnv=0x1;const {fromArray:_0x2a67ea,chunkedRange:_0x3dca9e,pinnedChunks:_0x164436,claimPrefetch:_0x46cde0}=requireIterable(),{reclass:_0x302f5e,NotImplementedNative:_0x27fa96,OKDBError:_0xb86d6b,optionsArg:_0x160a8a}=requireErrors(),{OKDBViews:_0x58e298}=requireViews(),{OKDBQueue:_0x7474f5}=requireQueue(),{OKDBTimeMachine:_0xc6b147}=requireTimemachine(),_0x2ceb48=_0x8c0464=>{const _0x53cb62=_0xf27e;try{return!_0x8c0464[_0x53cb62(0x743)]||_0x8c0464[_0x53cb62(0x743)][_0x53cb62(0x3bd)](_0x53cb62(0x72b));}catch{return!![];}},{OKDBFiles:_0x74f200}=requireFiles(),{OKDBEngines:_0x2a381f,OKDBPipelines:_0xd68a92}=requireEngines(),{OKDBFunctions:_0x411fa5}=requireFunctions(),_0x44116d=requireProcessor(),{RawDb:_0x5ddf76}=requireRawdb(),_0x45e025=requireBridge();let _0x2bda13=null;const _0x25c866=()=>_0x2bda13||=requireOkdbTransaction(),_0x13c342=(..._0x4533ed)=>requireOkdbGuardedRange()['guardSnapshotIterable'](..._0x4533ed),_0x244a67=Buffer[_0x18518c(0x875)]([0xff]),_0x21e1a4=process.env.OKDB_NATIVE_RAW_READS!=='0',_0x4620e2=_0x21e1a4&&process.env.OKDB_NATIVE_FAST_GET!=='0',{NO_FAST:_0x18bec4}=requireKeyenc(),_0x29eae3=new Set(_0x21e1a4?[_0x18518c(0x498),'byIndex','query','getChanges','getKeys']:[]),_0x5a74b4=new Set([_0x18518c(0x341),_0x18518c(0x4c9),_0x18518c(0x333),'getRange',_0x18518c(0x4fb),_0x18518c(0x78d),_0x18518c(0x47f),'getByPrefix',_0x18518c(0x558),_0x18518c(0x34f),'countByIndex','query','assertQueryOptions',_0x18518c(0x621),_0x18518c(0x788),_0x18518c(0x8c0),_0x18518c(0x44b),_0x18518c(0x274),'hasType',_0x18518c(0x1df),_0x18518c(0x72e),_0x18518c(0x2c9),'getIndexMeta',_0x18518c(0x53f),_0x18518c(0x2f2),_0x18518c(0x212),_0x18518c(0x3aa),_0x18518c(0x82a),'getSchema',_0x18518c(0x91d),_0x18518c(0x31d),_0x18518c(0x75a),'listRefViolations',_0x18518c(0x38c),'listTTL','ttlStats',_0x18518c(0x459),_0x18518c(0x264),_0x18518c(0x650),'id',_0x18518c(0x8ca),'hlc',_0x18518c(0x701),'readField',_0x18518c(0x618)]),_0x52f43b=new Set([_0x18518c(0x8a9),'end',_0x18518c(0x2d8),_0x18518c(0x5e9),_0x18518c(0x732),_0x18518c(0x3db),_0x18518c(0x5a4),'versions',_0x18518c(0x5fe),_0x18518c(0x7e2),'transaction',_0x18518c(0x8cd),_0x18518c(0x67e),_0x18518c(0x88f)]);function _0x390ee0(_0x1b36a0,_0x41cd50,_0x3333d6){const _0x58f9e4=new Map();return(_0x4c1be5,_0x9de9d0)=>{const _0x4cbfa4=_0xf27e,_0x3d6016=JSON[_0x4cbfa4(0x7af)](_0x9de9d0),_0x4bc9ee=_0x58f9e4[_0x4cbfa4(0x341)](_0x3d6016);if(_0x4bc9ee){if(_0x4bc9ee[_0x4cbfa4(0x613)]==='pending')throw _0x4b7f7b();_0x58f9e4[_0x4cbfa4(0x610)](_0x3d6016);if(_0x4bc9ee[_0x4cbfa4(0x613)]===_0x4cbfa4(0x438))throw _0x4bc9ee[_0x4cbfa4(0x59b)];return _0x4bc9ee[_0x4cbfa4(0x59b)];}const _0x451f6c=_0x4c1be5(..._0x9de9d0);if(!_0x451f6c||typeof _0x451f6c[_0x4cbfa4(0x478)]!==_0x4cbfa4(0x84a))return _0x451f6c;const _0x50ee7d={'state':'pending','value':undefined},_0x44fd61=(_0x501641,_0x3ea997)=>{const _0x3e7f2a=_0x4cbfa4;_0x50ee7d[_0x3e7f2a(0x613)]=_0x501641,_0x50ee7d[_0x3e7f2a(0x59b)]=_0x3ea997;if(_0x58f9e4[_0x3e7f2a(0x341)](_0x3d6016)!==_0x50ee7d)return;setTimeout(()=>_0x58f9e4[_0x3e7f2a(0x341)](_0x3d6016)===_0x50ee7d&&_0x58f9e4[_0x3e7f2a(0x610)](_0x3d6016),0x7530)[_0x3e7f2a(0x32d)]();try{_0x1b36a0[_0x3e7f2a(0x709)][_0x3e7f2a(0x4e8)](_0x3e7f2a(0x4a6),null,'emit',['field:resolver_registered',{'env':_0x1b36a0[_0x3e7f2a(0x264)],'type':_0x41cd50,'field':_0x3333d6}],!![]);}catch{}};_0x451f6c[_0x4cbfa4(0x478)](_0x24113a=>_0x44fd61('ok',_0x24113a),_0x144b95=>_0x44fd61(_0x4cbfa4(0x438),_0x144b95));for(let _0x3a863f=0x0;_0x3a863f<0x64&&_0x50ee7d[_0x4cbfa4(0x613)]===_0x4cbfa4(0x528);_0x3a863f++)process['_tickCallback']();if(_0x50ee7d['state']==='ok')return _0x50ee7d[_0x4cbfa4(0x59b)];if(_0x50ee7d[_0x4cbfa4(0x613)]===_0x4cbfa4(0x438))throw _0x50ee7d[_0x4cbfa4(0x59b)];_0x58f9e4['set'](_0x3d6016,_0x50ee7d);throw _0x4b7f7b();};}function _0x4b7f7b(){const _0x48de9a=_0x18518c;return Object[_0x48de9a(0x7de)](new Error(_0x48de9a(0x811)),{'code':'FIELD_RESOLVER_PENDING'});}class _0x3193c1{constructor(_0x50b0c2,_0x539619){const _0x26b82a=_0x18518c;this[_0x26b82a(0x709)]=_0x50b0c2,this[_0x26b82a(0x264)]=_0x539619,this[_0x26b82a(0x4a6)]=_0x50b0c2['events'],this[_0x26b82a(0x5a7)]=_0x50b0c2[_0x26b82a(0x5a7)],this[_0x26b82a(0x588)]=!![],this[_0x26b82a(0x63f)]=null,this['views']=new _0x58e298(this),this[_0x26b82a(0x800)]=new _0x44116d(this);if(!_0x539619[_0x26b82a(0x5ae)]('~')||_0x539619[_0x26b82a(0x566)](_0x26b82a(0x8ea)))this['queue']=new _0x7474f5(this);if(!_0x539619['startsWith']('~'))this['files']=new _0x74f200(this);this[_0x26b82a(0x3ba)]=new _0x411fa5(_0x50b0c2,_0x539619),this[_0x26b82a(0x7ac)]=new _0x2a381f(_0x50b0c2,_0x539619,_0x50b0c2['engines']),this['pipelines']=new _0xd68a92(_0x50b0c2,_0x539619);if(!_0x539619[_0x26b82a(0x5ae)]('~')&&_0x50b0c2['options']['timeMachine']&&_0x2ceb48(_0x50b0c2))this[_0x26b82a(0x72b)]=new _0xc6b147(this);_0x45e025[_0x26b82a(0x922)](this[_0x26b82a(0x650)],this);const _0x49a42e=this;this['_writer']={async 'transaction'(_0xbbe36){const _0x2a2f08=_0x26b82a,_0x4ada1a=[];_0x49a42e['_txnBuf']=_0x4ada1a;try{_0xbbe36();}finally{_0x49a42e['_txnBuf']=null;}return _0x49a42e['okdb'][_0x2a2f08(0x893)][_0x2a2f08(0x65d)](_0x2a2f08(0x67a),_0x49a42e[_0x2a2f08(0x264)],_0x2a2f08(0x436),[_0x4ada1a]);},'drain'(){const _0x2d3815=_0x26b82a;return _0x49a42e[_0x2d3815(0x709)][_0x2d3815(0x893)][_0x2d3815(0x62f)]();},'flushLmdb'(){const _0x350186=_0x26b82a;return _0x49a42e[_0x350186(0x709)]['_wb'][_0x350186(0x62f)]();},'markClosed'(){}};const _0x400eac=new _0x5ddf76(this,'');_0x400eac['getStats']=()=>({'lastTxnId':this['_n'](_0x26b82a(0x8ca),[])}),Object['defineProperty'](_0x400eac,_0x26b82a(0x7e7),{'get':()=>this[_0x26b82a(0x709)][_0x26b82a(0x893)]['drain'](),'configurable':!![]}),Object['defineProperty'](_0x400eac,_0x26b82a(0x371),{'get':()=>this[_0x26b82a(0x709)][_0x26b82a(0x893)][_0x26b82a(0x62f)](),'configurable':!![]});const _0x5b334e=_0x400eac[_0x26b82a(0x341)][_0x26b82a(0x73f)](_0x400eac);_0x400eac[_0x26b82a(0x341)]=_0x4dbb61=>_0x4dbb61==='clock'?this['_n'](_0x26b82a(0x788),[null]):_0x5b334e(_0x4dbb61),this['db']=_0x400eac;}async[_0x18518c(0x8bf)](){const _0x430981=_0x18518c;this[_0x430981(0x6c0)]=!![];}get[_0x18518c(0x30e)](){const _0x1cc01d=_0x18518c;return new Map(this[_0x1cc01d(0x709)]['_call']('db',null,_0x1cc01d(0x6cb),[this[_0x1cc01d(0x264)]],![]));}get[_0x18518c(0x68a)](){const _0x589243=_0x18518c;return this['_typesDb']||(this[_0x589243(0x2fd)]=new _0x5ddf76(this,_0x589243(0x37b)));}[_0x18518c(0x286)](_0x13e3a0){const _0x4a74b9=_0x18518c,_0x4006e8=this[_0x4a74b9(0x68a)][_0x4a74b9(0x341)](_0x13e3a0);if(_0x4006e8===undefined||String(_0x13e3a0)['startsWith'](_0x4a74b9(0x72c))||String(_0x13e3a0)[_0x4a74b9(0x5ae)](_0x4a74b9(0x28d))){const {OKDBError:_0xdfb511}=requireErrors();throw new _0xdfb511(_0x4a74b9(0x3e9)+_0x13e3a0+_0x4a74b9(0x2d7),_0x4a74b9(0x29b),{'type':_0x13e3a0});}const _0x786a91=this,_0x25b2ea=new _0x5ddf76(_0x786a91,_0x4a74b9(0x8e3)+_0x13e3a0+_0x4a74b9(0x925)),_0x426097=new Map();for(const _0x4a3fbd of _0x25b2ea[_0x4a74b9(0x4fb)]()){const _0x5449ea=_0x25b2ea[_0x4a74b9(0x341)](_0x4a3fbd)||{},_0x1374eb={'parts':_0x4a3fbd['split']('~'),'db':new _0x5ddf76(_0x786a91,_0x4a74b9(0x8e3)+_0x13e3a0+_0x4a74b9(0x6c4)+_0x4a3fbd,{'dupSort':!![]})};if(_0x5449ea[_0x4a74b9(0x2af)])_0x1374eb['geoConfig']=_0x5449ea[_0x4a74b9(0x2af)];if(_0x5449ea[_0x4a74b9(0x288)])_0x1374eb[_0x4a74b9(0x288)]=!![];if(_0x5449ea[_0x4a74b9(0x564)])_0x1374eb['sparse']=!![];if(_0x5449ea[_0x4a74b9(0x24a)])_0x1374eb['createdBy']=_0x5449ea[_0x4a74b9(0x24a)];_0x1374eb[_0x4a74b9(0x4a0)]=new Set((_0x5449ea[_0x4a74b9(0x4a0)]??[])['map'](_0x1d18d8=>_0x1d18d8[_0x4a74b9(0x472)]+':'+_0x1d18d8['name'])),_0x426097[_0x4a74b9(0x8db)](_0x4a3fbd,_0x1374eb);}return{'root':new _0x5ddf76(_0x786a91,_0x4a74b9(0x8e3)+_0x13e3a0),'data':new _0x5ddf76(_0x786a91,'type:'+_0x13e3a0+_0x4a74b9(0x4d1),{'useVersions':!![]}),'indexes':_0x25b2ea,'clockToChange':new _0x5ddf76(_0x786a91,'type:'+_0x13e3a0+_0x4a74b9(0x869)),'keyToChange':new _0x5ddf76(_0x786a91,'type:'+_0x13e3a0+_0x4a74b9(0x5f0)),'fieldSchema':new Map(Object[_0x4a74b9(0x565)](_0x4006e8['fields']||{})[_0x4a74b9(0x59f)](([_0x4090df,_0x2175aa])=>[_0x4090df,new Set(Array[_0x4a74b9(0x239)](_0x2175aa)?_0x2175aa:[_0x2175aa])])),'indexToDb':_0x426097,'ftsToDb':null,'schema':_0x4006e8['schema']||null,'defaultTTL':_0x4006e8[_0x4a74b9(0x54b)]||null};}get[_0x18518c(0x5d0)](){const _0x2bd921=_0x18518c,_0x358af5=this,_0x1f6f29=()=>_0x358af5[_0x2bd921(0x1df)]();return{'get':_0xfce1a4=>{const _0x573196=_0x2bd921;try{return _0x358af5[_0x573196(0x286)](_0xfce1a4);}catch{return undefined;}},'has':_0x186798=>_0x1f6f29()[_0x2bd921(0x566)](_0x186798),'keys':()=>_0x1f6f29()[Symbol[_0x2bd921(0x606)]](),get 'size'(){const _0x435207=_0x2bd921;return _0x1f6f29()[_0x435207(0x7e0)];}};}[_0x18518c(0x64f)](){const _0x2fe54c=_0x18518c;return this[_0x2fe54c(0x1df)]();}get[_0x18518c(0x3dc)](){const _0x1bea4e=_0x18518c;return this[_0x1bea4e(0x6f7)]||(this['_changeToClockDb']=new _0x5ddf76(this,_0x1bea4e(0x1ad)));}get[_0x18518c(0x61a)](){const _0x2d8622=_0x18518c;return this[_0x2d8622(0x721)]||(this[_0x2d8622(0x721)]=new _0x5ddf76(this,_0x2d8622(0x412)));}[_0x18518c(0x232)](_0x307863){return this['_n']('advanceHlcOnRecv',[_0x307863]);}get[_0x18518c(0x729)](){const _0x38fb15=_0x18518c;return!this['_n'](_0x38fb15(0x7d2),[],![]);}get[_0x18518c(0x924)](){const _0x1d66a4=_0x18518c;return this['__syncOverride']!==undefined?this['__syncOverride']:this['_n'](_0x1d66a4(0x7d2),[],![]);}set[_0x18518c(0x924)](_0x32272d){this['__syncOverride']=_0x32272d;}get[_0x18518c(0x1f5)](){const _0x3ff50e=_0x18518c;return this['_compactLock']||(this[_0x3ff50e(0x2fe)]=new(requireLock())[(_0x3ff50e(0x398))](this[_0x3ff50e(0x709)],_0x3ff50e(0x392),'compact',{'ttlMs':0xea60}));}get[_0x18518c(0x650)](){const _0x147ba6=_0x18518c;return this[_0x147ba6(0x7c4)]??(this[_0x147ba6(0x7c4)]=this['_n'](_0x147ba6(0x650),[]));}get['id'](){return this['_n']('id',[]);}get[_0x18518c(0x4cd)](){const _0x3ff95c=_0x18518c;return this[_0x3ff95c(0x709)][_0x3ff95c(0x4cd)];}['_n'](_0x25abcc,_0x32d622){const _0x237b7a=_0x18518c;return this[_0x237b7a(0x709)][_0x237b7a(0x4e8)]('env',this[_0x237b7a(0x264)],_0x25abcc,_0x32d622,!_0x5a74b4[_0x237b7a(0x5ed)](_0x25abcc));}[_0x18518c(0x520)](_0x57fee4){const _0xcacf1a=_0x18518c;return this[_0xcacf1a(0x709)][_0xcacf1a(0x7e3)](_0x57fee4);}[_0x18518c(0x7e1)](_0x2c3357,_0x14aca1){const _0x4e134c=_0x18518c;if(_0x29eae3['has'](_0x2c3357===_0x4e134c(0x53f)?_0x14aca1[0x1]:_0x2c3357))return this[_0x4e134c(0x709)][_0x4e134c(0x7d3)](this[_0x4e134c(0x264)],_0x2c3357,_0x14aca1);return this[_0x4e134c(0x709)][_0x4e134c(0x35f)]('env',this[_0x4e134c(0x264)],_0x2c3357,_0x14aca1);}['transaction'](_0x21fbb1={'useReadTransaction':![]}){return new(_0x25c866())(this,_0x21fbb1);}async['txn'](_0x20bf14,_0xd04652){return _0x25c866()['run'](this,_0x20bf14,_0xd04652);}[_0x18518c(0x834)](_0x558193,_0x41cad9){const _0x1933fc=_0x18518c;if(this[_0x1933fc(0x63f)])this[_0x1933fc(0x63f)][_0x1933fc(0x247)]({'action':_0x558193,'args':_0x41cad9});else this['_n'](_0x558193,_0x41cad9);}[_0x18518c(0x2b8)](_0xba8d58,_0x51ca17,_0x3870b6,_0x500a0d,_0x5bad0c){this['_low']('put',[_0x51ca17,_0x3870b6,_0x500a0d,_0x5bad0c]);}[_0x18518c(0x757)](_0x2a38b4,_0x4e1554,_0x1baf87,_0x338ff2,_0x2edff7){const _0x3695f1=_0x18518c;this['_low'](_0x3695f1(0x378),[_0x4e1554,_0x1baf87,_0x338ff2,_0x2edff7]);}[_0x18518c(0x906)](_0x531c1f,_0x19a13c,_0x295604,_0x48beb2,_0x519064){const _0x5b29a9=_0x18518c;this[_0x5b29a9(0x834)](_0x5b29a9(0x50d),[_0x19a13c,_0x295604,_0x48beb2,_0x519064]);}['_create'](_0x199459,_0x3830f9,_0x31e08d,_0x3f733e,_0x3acd0f){const _0x2d2ecd=_0x18518c;this[_0x2d2ecd(0x834)]('create',[_0x3830f9,_0x31e08d,_0x3f733e,_0x3acd0f]);}[_0x18518c(0x69e)](_0x3a5656,_0x5be3aa,_0x251367,_0x2e9ba8){const _0x11667f=_0x18518c;this[_0x11667f(0x834)]('remove',[_0x5be3aa,_0x251367,_0x2e9ba8]);}[_0x18518c(0x319)](_0x9a7b54,_0x2ec978,_0x174fad,_0x22b2ed){const _0x2a3854=_0x18518c;this[_0x2a3854(0x834)](_0x2a3854(0x65a),[_0x2ec978,_0x174fad,_0x22b2ed]);}[_0x18518c(0x74e)](_0x8a19f8,_0x60831f,_0x5b57c7){const _0xb3d031=_0x18518c;this[_0xb3d031(0x834)](_0xb3d031(0x2fc),[_0x60831f,_0x5b57c7]);}['_w'](_0x5e0c55,_0x5eaa16){const _0x1ab3c2=_0x18518c;return this[_0x1ab3c2(0x709)][_0x1ab3c2(0x893)][_0x1ab3c2(0x65d)](_0x1ab3c2(0x67a),this[_0x1ab3c2(0x264)],_0x5e0c55,_0x5eaa16);}[_0x18518c(0x4a2)](_0x4c42c0,_0x393b60,_0x23c812,_0x385b09={}){const _0x4630a6=_0x18518c;return this['_w'](_0x4630a6(0x4a2),[_0x4c42c0,_0x393b60,_0x23c812,_0x385b09]);}[_0x18518c(0x378)](_0x3fd83f,_0x5d654d,_0x507836,_0x124d9b={}){const _0x446d00=_0x18518c;return this['_w'](_0x446d00(0x378),[_0x3fd83f,_0x5d654d,_0x507836,_0x124d9b]);}[_0x18518c(0x50d)](_0x330854,_0x543c88,_0x432a2e,_0x3e3e2e={}){const _0x3074de=_0x18518c;return this['_w'](_0x3074de(0x50d),[_0x330854,_0x543c88,_0x432a2e,_0x3e3e2e]);}[_0x18518c(0x635)](_0x40594b,_0xcb7ddb,_0xf9d2f6,_0x3578fe={}){const _0x33a8e9=_0x18518c;return this['_w'](_0x33a8e9(0x635),[_0x40594b,_0xcb7ddb,_0xf9d2f6,_0x3578fe]);}[_0x18518c(0x694)](_0x5be585,_0x29837a,_0x320b2b={}){const _0x4d163a=_0x18518c;return this['_w'](_0x4d163a(0x694),[_0x5be585,_0x29837a,_0x320b2b]);}[_0x18518c(0x341)](_0x2ebc9c,_0x4ca868,_0x3baaad){const _0x53314f=_0x18518c;if(_0x4620e2&&typeof _0x2ebc9c===_0x53314f(0x6d1)){const _0x55e797=this[_0x53314f(0x709)]['_getFast'](this[_0x53314f(0x264)],_0x2ebc9c,_0x4ca868);if(_0x55e797!==_0x18bec4)return _0x55e797===null?this['_n'](_0x53314f(0x341),[_0x2ebc9c,_0x4ca868]):_0x55e797;}if(_0x21e1a4&&(typeof _0x4ca868===_0x53314f(0x6d1)||typeof _0x4ca868===_0x53314f(0x645))){const _0x2be2b8=this[_0x53314f(0x709)][_0x53314f(0x2dc)](this[_0x53314f(0x264)],_0x2ebc9c,_0x4ca868);if(_0x2be2b8!==null)return _0x2be2b8;}return this['_n'](_0x53314f(0x341),[_0x2ebc9c,typeof _0x4ca868===_0x53314f(0x339)?null:_0x4ca868]);}[_0x18518c(0x333)](_0x552b94,_0x4a4032,_0x527849){const _0x1dee32=_0x18518c,_0x5258bd=[_0x552b94,Array[_0x1dee32(0x239)](_0x4a4032)&&_0x4a4032['some'](_0x5215dc=>typeof _0x5215dc===_0x1dee32(0x339))?_0x4a4032['map'](_0x4b389a=>typeof _0x4b389a===_0x1dee32(0x339)?null:_0x4b389a):_0x4a4032];return _0x21e1a4?this[_0x1dee32(0x709)][_0x1dee32(0x7d3)](this[_0x1dee32(0x264)],_0x1dee32(0x333),_0x5258bd):this['_n'](_0x1dee32(0x333),_0x5258bd);}['getEntry'](_0x47263b,_0x48df7f,_0x346321){return this['_n']('getEntry',[_0x47263b,typeof _0x48df7f==='symbol'?null:_0x48df7f]);}[_0x18518c(0x47f)](_0x6fca9f,_0x17a2e3){const _0x5d96d7=_0x18518c;return this[_0x5d96d7(0x7da)](_0x5d96d7(0x47f),_0x17a2e3),this['_n'](_0x5d96d7(0x47f),[_0x6fca9f,_0x55513f(_0x17a2e3)]);}[_0x18518c(0x7da)](_0x151bea,_0xead413,_0x4118db=[]){const _0x361da1=_0x18518c;if(!_0xead413||typeof _0xead413!=='object')return;for(const _0x21f3e5 of Object[_0x361da1(0x88a)](_0xead413)){if(!_0x52f43b[_0x361da1(0x5ed)](_0x21f3e5)&&!_0x4118db['includes'](_0x21f3e5))throw new _0xb86d6b(_0x151bea+_0x361da1(0x80f)+_0x21f3e5+'\x27',_0x361da1(0x3b1),{'option':_0x21f3e5});}}[_0x18518c(0x482)](_0x558710,_0x4adada,_0x5980a1,_0x27e701,_0x4d487e,_0x5b4efc){const _0x39b1c1=_0x18518c;this[_0x39b1c1(0x7da)](_0x558710,_0x27e701);const _0x36826b=_0x27e701?.[_0x39b1c1(0x7e2)],_0x1537ca=_0x55513f(_0x27e701);if(_0x36826b===!![]||_0x36826b===_0x39b1c1(0x21c)){const _0x5ec8f7=this[_0x39b1c1(0x646)](_0x558710,_0x4adada,_0x3d8946=>[_0x5980a1,{..._0x1537ca,..._0x3d8946}],_0x27e701);return _0x5b4efc?_0x5ec8f7['map'](_0x5b4efc):_0x5ec8f7;}const _0xd1136e=_0x3dca9e(_0xceb1ea=>this[_0x39b1c1(0x7e1)](_0x4adada,[_0x5980a1,_0xceb1ea]),_0x1537ca,_0x4d487e,{'rows':_0x4adada==='getRange'});return _0x5b4efc?_0xd1136e[_0x39b1c1(0x59f)](_0x5b4efc):_0xd1136e;}['_lazyPinned'](_0x2704d8,_0x4c6c8d,_0x13ff86,_0x1a5274,_0x9d22c9,_0x43bc07=![]){const _0x1a2012=_0x18518c,{source:_0x102c1c,prefetch:_0x22617e}=_0x164436((_0x36c7e9,_0x1c86ee)=>_0x36c7e9===_0x1a2012(0x2f2)?this['_n'](_0x36c7e9,_0x1c86ee):this[_0x1a2012(0x7e1)](_0x36c7e9,_0x1c86ee),_0x4c6c8d,_0x13ff86,_0x1a5274||{},_0x9d22c9),_0x5a9b9e=_0x22617e(),_0x170f02=!_0x43bc07&&_0x1a5274&&_0x1a5274['snapshot']===_0x1a2012(0x21c);let _0x32d6d9=null;return _0x13c342(()=>({[Symbol[_0x1a2012(0x606)]]:()=>_0x32d6d9=_0x102c1c(0x0,_0x46cde0(_0x5a9b9e))}),{'label':this[_0x1a2012(0x264)]+':'+_0x2704d8,..._0x170f02?{'getTxnId':()=>this['db'][_0x1a2012(0x285)]()[_0x1a2012(0x8ca)],'resume':()=>({[Symbol[_0x1a2012(0x606)]]:()=>_0x32d6d9=_0x32d6d9[_0x1a2012(0x3c3)]()})}:{}});}[_0x18518c(0x498)](_0x34dc52,_0x5063ae){const _0x55ce64=_0x18518c;return this[_0x55ce64(0x482)](_0x55ce64(0x498),_0x55ce64(0x498),_0x34dc52,_0x5063ae,_0x1f98b8=>_0x1f98b8[_0x55ce64(0x8cd)]);}[_0x18518c(0x4fb)](_0x1366c7,_0x3d7ca0){const _0x3d7ff5=_0x18518c;return this[_0x3d7ff5(0x482)](_0x3d7ff5(0x4fb),_0x3d7ff5(0x4fb),_0x1366c7,_0x3d7ca0,_0x5604da=>_0x5604da);}['getValues'](_0x3360cb,_0x542240){const _0xffb156=_0x18518c;return this[_0xffb156(0x482)](_0xffb156(0x78d),_0xffb156(0x498),_0x3360cb,_0x542240,_0xe7360f=>_0xe7360f[_0xffb156(0x8cd)],_0x3b9eac=>_0x3b9eac['value']);}['getByPrefix'](_0x112e4b,_0x9c0ed8,_0x46d885={}){return this['getRange'](_0x112e4b,{'start':_0x9c0ed8,'end':_0x9c0ed8+'￿',..._0x46d885});}[_0x18518c(0x558)](_0x4d0794,_0x4e58d4,_0x2c2c13={}){const _0x230343=_0x18518c;this['_assertRangeOptions'](_0x230343(0x558),_0x2c2c13,[_0x230343(0x88f)]);const _0x596fce=_0x55513f(_0x2c2c13);if(_0x2c2c13&&_0x2c2c13[_0x230343(0x7b1)])return _0x2a67ea(this['_n'](_0x230343(0x558),[_0x4d0794,_0x4e58d4,_0x596fce]));return this[_0x230343(0x646)](_0x230343(0x558),_0x230343(0x558),_0x2258ca=>[_0x4d0794,_0x4e58d4,{..._0x596fce,..._0x2258ca}],_0x2c2c13,undefined,!![]);}[_0x18518c(0x34f)](_0x28c41a,_0x52149f,_0x53a1d3){const _0x583c96=_0x18518c;this[_0x583c96(0x7da)](_0x583c96(0x34f),_0x53a1d3,[_0x583c96(0x88f),_0x583c96(0x336)]);const _0x4167b5=_0x55513f(_0x53a1d3);if(_0x53a1d3&&_0x53a1d3[_0x583c96(0x7b1)])return _0x2a67ea(this['_n'](_0x583c96(0x34f),[_0x28c41a,_0x52149f,_0x4167b5]));return this['_lazyPinned'](_0x583c96(0x34f),_0x583c96(0x34f),_0x364ff1=>[_0x28c41a,_0x52149f,{..._0x4167b5,..._0x364ff1}],_0x53a1d3,undefined,!![]);}[_0x18518c(0x2c6)](_0x415366,_0x3c5095,_0x1418ec={}){const _0x37913c=_0x18518c;return this['_n'](_0x37913c(0x2c6),[_0x415366,_0x3c5095,_0x55513f(_0x1418ec)]);}[_0x18518c(0x3da)](_0x5c6711,_0x4dccf0={},_0x218428={}){const _0x39fd72=_0x18518c,_0x3f49ad=_0x258468(_0x218428);if(_0x218428){for(const _0x22e5c8 of Object[_0x39fd72(0x88a)](_0x218428))if(_0x22e5c8!==_0x39fd72(0x50c)&&typeof _0x218428[_0x22e5c8]==='function')_0x3f49ad[_0x22e5c8]=null;}if(_0x218428&&(_0x218428[_0x39fd72(0x6e0)]||_0x218428[_0x39fd72(0x8e1)]))return this['_n']('assertQueryOptions',[_0x3f49ad]),this[_0x39fd72(0x55a)](_0x5c6711,_0x4dccf0,_0x218428);const _0x376952=typeof _0x218428[_0x39fd72(0x50c)]===_0x39fd72(0x84a)?_0x218428[_0x39fd72(0x50c)]:null;if(_0x218428['near']||_0x33cf8f(_0x4dccf0)||_0x218428[_0x39fd72(0x7b1)]!==undefined){let _0x5e4599=this['_n'](_0x39fd72(0x3da),[_0x5c6711,_0x4dccf0,_0x3f49ad]);if(_0x376952)_0x5e4599=_0x5e4599[_0x39fd72(0x59f)](_0x376952);if(_0x218428[_0x39fd72(0x6c8)]||_0x33cf8f(_0x4dccf0))return _0x5e4599;return _0x2a67ea(_0x5e4599);}const _0x3c1ff6=_0x56b584=>typeof _0x56b584===_0x39fd72(0x645)&&Number['isInteger'](_0x56b584)?Math[_0x39fd72(0x3d2)](0x0,_0x56b584):Infinity;let _0x43c1f5;if(_0x218428[_0x39fd72(0x7a2)]){const _0x558b64=_0x584e58=>typeof _0x584e58===_0x39fd72(0x645)&&_0x584e58>0x0?Math['ceil'](_0x584e58):0x0;_0x43c1f5=this['_lazyPinned']('query',_0x39fd72(0x3da),_0x433435=>[_0x5c6711,_0x4dccf0,{..._0x3f49ad,..._0x433435}],null,{'limitOf':()=>_0x3c1ff6(_0x3f49ad[_0x39fd72(0x5e9)]),'offsetOf':()=>_0x558b64(_0x3f49ad['offset'])});}else _0x43c1f5=_0x3dca9e(_0x150c01=>{const _0x43ab90=_0x39fd72,{__after:_0xed855c,..._0x3f20b5}=_0x150c01;return this[_0x43ab90(0x7e1)]('query',_0xed855c===undefined?[_0x5c6711,_0x4dccf0,_0x3f20b5]:[_0x5c6711,_0x4dccf0,_0x3f20b5,_0xed855c]);},_0x3f49ad,_0x3ef4a6=>_0x3ef4a6[_0x39fd72(0x8cd)],{'limitOf':_0x3c1ff6,'rows':!![],'prefetch':!![],'resumeOpts':(_0x4354fb,_0x2548d8)=>{const _0x5d6c52=_0x39fd72;_0x4354fb[_0x5d6c52(0x732)]=0x0,_0x4354fb['__after']=_0x2548d8;}});return _0x376952?_0x43c1f5[_0x39fd72(0x59f)](_0x376952):_0x43c1f5;}async[_0x18518c(0x55a)](_0x56a18d,_0x4f7836,_0x1d73e7){const _0x44063f=_0x18518c,{select:_0x25040b,..._0x4d22b9}=_0x258468(_0x1d73e7);let _0x47c793={..._0x4d22b9};const _0x10d9a1=_0x47c793['index'];if(_0x10d9a1&&!Array['isArray'](_0x10d9a1)&&typeof _0x10d9a1===_0x44063f(0x81a)&&_0x10d9a1[_0x44063f(0x60f)]){const {fields:_0x4343a6,prefix:_0x385c0f,start:_0x19c21c,end:_0x41ce9a}=_0x10d9a1;_0x47c793={..._0x47c793,'index':_0x4343a6,'prefix':_0x385c0f??_0x47c793['prefix'],'startIndex':_0x19c21c??_0x47c793['startIndex'],'endIndex':_0x41ce9a??_0x47c793[_0x44063f(0x87c)]};}const _0x594090=await this[_0x44063f(0x709)][_0x44063f(0x1e0)](_0x44063f(0x4a4),null,'hybridQuery',[this[_0x44063f(0x264)],_0x56a18d,_0x4f7836,_0x47c793],![]),_0x5a791=typeof _0x1d73e7[_0x44063f(0x50c)]===_0x44063f(0x84a)?_0x1d73e7['select']:null;if(!_0x5a791)return _0x594090;return _0x594090[_0x44063f(0x59f)](_0x21a581=>{const _0x1f5072=_0x44063f,{score:_0x3e69fa,ftsScore:_0x3a44e8,numTerms:_0x2c4939,maxScore:_0x5dd067,vectorScore:_0x124770,chunkHash:_0x21f669,chunk:_0x539d3e,..._0x25c59b}=_0x21a581,_0x13e166=_0x5a791(_0x25c59b);for(const [_0x964d4f,_0xfefb20]of Object[_0x1f5072(0x565)]({'score':_0x3e69fa,'ftsScore':_0x3a44e8,'numTerms':_0x2c4939,'maxScore':_0x5dd067,'vectorScore':_0x124770,'chunkHash':_0x21f669,'chunk':_0x539d3e}))if(_0xfefb20!==undefined)_0x13e166[_0x964d4f]=_0xfefb20;return _0x13e166;});}['geoQuery'](_0x2ccd35,_0x3e20b1,_0x5d6f36={}){const _0x3262bf=_0x18518c;let _0x3c7d7f=this['_n']('geoQuery',[_0x2ccd35,_0x3e20b1,_0x258468(_0x5d6f36)]);if(typeof _0x5d6f36[_0x3262bf(0x50c)]==='function')_0x3c7d7f=_0x3c7d7f['map'](_0x5d6f36[_0x3262bf(0x50c)]);return _0x3c7d7f;}[_0x18518c(0x788)](_0x296f60=null,_0x469669={}){const _0x2417b3=_0x18518c;return this['_n'](_0x2417b3(0x788),[_0x296f60]);}[_0x18518c(0x8c0)](_0x3ffbf1=null,_0x18786f=0x0,_0x2401e4=Number[_0x18518c(0x313)],_0x855533={}){const _0x1e5bcc=_0x18518c,_0x14540a=_0x55513f(_0x855533);if(_0x855533&&_0x855533[_0x1e5bcc(0x7b1)])return _0x2a67ea(this['_n'](_0x1e5bcc(0x8c0),[_0x3ffbf1,_0x18786f,_0x2401e4,_0x14540a]));return this[_0x1e5bcc(0x646)](_0x1e5bcc(0x8c0),_0x1e5bcc(0x8c0),_0x3bb89b=>[_0x3ffbf1,_0x18786f,_0x2401e4,{..._0x14540a,..._0x3bb89b}],_0x855533);}[_0x18518c(0x44b)](_0x562410){const _0x22859c=_0x18518c;if(Array[_0x22859c(0x239)](_0x562410))return _0x562410[_0x22859c(0x7e0)];let _0x1138fa=0x0;for(const _0x120c8a of _0x562410)_0x1138fa++;return _0x1138fa;}*[_0x18518c(0x6d9)](_0xc99b1f){yield*_0xc99b1f;}[_0x18518c(0x274)](){const _0x546f4d=_0x18518c;return requireOkdbHlc()[_0x546f4d(0x64c)](this[_0x546f4d(0x675)]);}get[_0x18518c(0x66b)](){const _0x103c76=_0x18518c,_0x1191f7=this[_0x103c76(0x709)][_0x103c76(0x588)]?this[_0x103c76(0x709)]['_call']('db',null,_0x103c76(0x734),[this[_0x103c76(0x264)]],![]):null;if(!_0x1191f7)return null;if(this[_0x103c76(0x810)]===_0x1191f7['gen'])return null;this[_0x103c76(0x3fb)]=this[_0x103c76(0x3fb)]||new Map();let _0x35fd2d=this[_0x103c76(0x3fb)][_0x103c76(0x341)](_0x1191f7['gen']);if(!_0x35fd2d){const _0x50c1c9=this;_0x35fd2d={'ref'(){},'unref'(){},'hasRef':()=>![],'gen':_0x1191f7[_0x103c76(0x846)],'at':_0x1191f7['at'],'target':_0x1191f7[_0x103c76(0x2d9)],get '_destroyed'(){const _0x18600c=_0x103c76,_0x1678b2=_0x50c1c9[_0x18600c(0x709)][_0x18600c(0x588)]?_0x50c1c9['okdb'][_0x18600c(0x4e8)]('db',null,'ttlTimer',[_0x50c1c9[_0x18600c(0x264)]],![]):null;return!_0x1678b2||_0x1678b2[_0x18600c(0x846)]!==this[_0x18600c(0x846)]||_0x50c1c9[_0x18600c(0x810)]===this[_0x18600c(0x846)];}},this['_timerObjs'][_0x103c76(0x8db)](_0x1191f7[_0x103c76(0x846)],_0x35fd2d);}return _0x35fd2d;}[_0x18518c(0x4ba)](){const _0x316458=_0x18518c,_0x40c0c0=this[_0x316458(0x709)]['_call']('db',null,'ttlTimer',[this[_0x316458(0x264)]],![]);if(_0x40c0c0)this[_0x316458(0x810)]=_0x40c0c0[_0x316458(0x846)];}get[_0x18518c(0x63e)](){const _0x3a6cd3=_0x18518c,_0x5e6125=this[_0x3a6cd3(0x709)][_0x3a6cd3(0x4e8)]('db',null,_0x3a6cd3(0x734),[this[_0x3a6cd3(0x264)]],![]);return _0x5e6125?_0x5e6125[_0x3a6cd3(0x2d9)]:null;}get[_0x18518c(0x6f9)](){const _0x2685a8=_0x18518c;return this[_0x2685a8(0x709)][_0x2685a8(0x4e8)]('db',null,_0x2685a8(0x57e),[this[_0x2685a8(0x264)]],![])?{'ref'(){},'unref'(){}}:null;}[_0x18518c(0x34b)](){const _0x3868ee=_0x18518c;this[_0x3868ee(0x709)]['_call']('db',null,_0x3868ee(0x82f),[this['name']],![]);}[_0x18518c(0x8a2)](){const _0x32c306=_0x18518c;this[_0x32c306(0x709)][_0x32c306(0x4e8)]('db',null,_0x32c306(0x1be),[this[_0x32c306(0x264)]],![]);}get[_0x18518c(0x3a8)](){const _0x4a1d38=_0x18518c,_0x3f0954=(_0x2e7f07,_0x5accbb)=>this['okdb']['_call']('db',null,_0x2e7f07,[this[_0x4a1d38(0x264)],..._0x5accbb],![]),_0x53fa8c=Object['keys'](_0x3f0954('autoCompactState',[])||{}),_0x14374b={};for(const _0x5243b4 of _0x53fa8c)Object['defineProperty'](_0x14374b,_0x5243b4,{'enumerable':!![],'get':()=>_0x3f0954(_0x4a1d38(0x4e7),[])?.[_0x5243b4],'set':_0x5d426c=>{const _0x3bd377=_0x4a1d38;_0x3f0954(_0x3bd377(0x4d8),[_0x5243b4,_0x5d426c]);}});return _0x14374b;}get['_hlc'](){const _0x1c06bc=_0x18518c;return this['_n'](_0x1c06bc(0x619),[]);}[_0x18518c(0x6a6)](_0x2e27ec,_0x537092){return require$$16['isDeepStrictEqual'](_0x2e27ec,_0x537092);}async[_0x18518c(0x6bb)](_0x55245d,_0x48cdae){const _0x32fa1f=_0x18518c;return this[_0x32fa1f(0x520)](this['_n'](_0x32fa1f(0x6bb),[_0x55245d]));}[_0x18518c(0x863)](_0x1c2fe4){const _0x22dac5=_0x18518c;return this['_n'](_0x22dac5(0x863),[_0x1c2fe4]);}['listTypes'](){const _0x4d0380=_0x18518c;return this['_n'](_0x4d0380(0x1df),[]);}async[_0x18518c(0x5a5)](_0x37bb71,_0x33764c){const _0x279721=_0x18518c;return this['_wsettle'](this['_n'](_0x279721(0x5a5),[_0x37bb71]));}async[_0x18518c(0x5bb)](_0x185eb9,_0x530526){const _0x3e8a47=_0x18518c,{timestamp:_0x19333e,indexes:indexes=[]}=_0x160a8a(_0x530526);return this['_wsettle'](this['_n'](_0x3e8a47(0x5bb),[_0x185eb9,{'indexes':indexes}]));}async[_0x18518c(0x6d6)](_0x97f857){const _0x393c33=_0x18518c,{type:_0x7fd944,indexes:indexes=[],fts:fts=[],views:views=[],schema:schema=null}=_0x160a8a(_0x97f857,_0x393c33(0x3e2));if(!_0x7fd944)throw new Error(_0x393c33(0x324));await this[_0x393c33(0x5bb)](_0x7fd944,{'indexes':indexes});for(const _0x2f9658 of fts){const {name:_0x21ce6b,fields:_0x1ee972,..._0x5e9410}=_0x2f9658;if(!_0x21ce6b||!_0x1ee972)throw new Error(_0x393c33(0x40a));await this[_0x393c33(0x709)][_0x393c33(0x6e0)][_0x393c33(0x6d6)](_0x7fd944,_0x21ce6b,{'fields':_0x1ee972,..._0x5e9410},this);}for(const _0x3f998b of views){const {name:_0x1d008e,definition:_0x8b430e}=_0x3f998b;if(!_0x1d008e||!_0x8b430e)throw new Error('ensure:\x20view\x20entry\x20missing\x20name\x20or\x20definition');if(!await this[_0x393c33(0x749)][_0x393c33(0x3ac)](_0x1d008e))await this[_0x393c33(0x749)][_0x393c33(0x635)](_0x1d008e,_0x8b430e);}if(schema)await this[_0x393c33(0x8a7)](_0x7fd944,schema);}async['registerIndex'](_0x250cf3,_0x12f8b2,_0x421288){const _0x467746=_0x18518c,_0x5e60a0=this['_n'](_0x467746(0x5ee),[_0x250cf3,_0x12f8b2,typeof _0x421288===_0x467746(0x81a)?_0x421288:{}]);if(!_0x5e60a0)return this[_0x467746(0x520)](undefined);const _0x34222b=this['_n'](_0x467746(0x431),[_0x250cf3,_0x12f8b2,!![]]);if(_0x34222b===undefined)return this[_0x467746(0x520)](undefined);return this[_0x467746(0x520)](await this[_0x467746(0x6c3)](_0x250cf3,_0x12f8b2,_0x34222b));}async[_0x18518c(0x6c3)](_0x2dab0,_0x17f56f,_0x43a3d5){const _0x5080fb=_0x18518c,_0x1359bd=_0x2dab0+'@'+[][_0x5080fb(0x522)](_0x17f56f)[_0x5080fb(0x1cc)]('~');if(!this[_0x5080fb(0x43c)])this[_0x5080fb(0x43c)]=new Map();const _0x30e9ff=this['_indexBuilds'][_0x5080fb(0x341)](_0x1359bd);if(_0x30e9ff)return _0x30e9ff;const _0x225064=((async()=>{const _0x363dc7=_0x5080fb;do await new Promise(_0x2295db=>setImmediate(_0x2295db));while(!this['_n'](_0x363dc7(0x7bc),[_0x2dab0,_0x17f56f,_0x43a3d5,!![]]));})());this[_0x5080fb(0x43c)]['set'](_0x1359bd,_0x225064);try{return await _0x225064;}finally{this['_indexBuilds'][_0x5080fb(0x610)](_0x1359bd);}}async[_0x18518c(0x6ae)](_0x43a693,_0x1128e0,_0x165376){const _0x41cb1b=_0x18518c;return this['_wsettle'](this['_n'](_0x41cb1b(0x6ae),[_0x43a693,_0x1128e0]));}async[_0x18518c(0x3de)](_0x35cf01,_0x415389,_0xdf27ae){const _0x2c3ebf=_0x18518c,_0x5066bd=this['_indexBuilds']&&this[_0x2c3ebf(0x43c)]['get'](_0x35cf01+'@'+[][_0x2c3ebf(0x522)](_0x415389)[_0x2c3ebf(0x1cc)]('~'));if(_0x5066bd)return _0x5066bd;const _0x503489=this['_n']('resetIndexBegin',[_0x35cf01,_0x415389,_0xdf27ae]);if(_0x503489===undefined)return;return await new Promise(_0x1de140=>setImmediate(_0x1de140)),this[_0x2c3ebf(0x520)](await this['_indexBuild'](_0x35cf01,_0x415389,_0x503489));}[_0x18518c(0x72e)](_0x3d57f3,_0x107566){const _0x5473d7=_0x18518c;return this['_n'](_0x5473d7(0x72e),[_0x3d57f3,_0x107566]);}[_0x18518c(0x2c9)](_0x5e631e,_0x37d12b){const _0x257551=_0x18518c;return this['_n'](_0x257551(0x2c9),[_0x5e631e,_0x37d12b]);}async[_0x18518c(0x703)](_0x5ab475,_0x307e97){const _0x361ec5=_0x18518c;if(this['_n'](_0x361ec5(0x2c9),[_0x5ab475,_0x307e97])==='ready')return!![];let _0x24b885=0xa;for(;;){await new Promise(_0x4d787f=>setTimeout(_0x4d787f,_0x24b885));if(!this[_0x361ec5(0x709)][_0x361ec5(0x588)]||this['_closedHandle'])return![];let _0x2a72c2;try{_0x2a72c2=this['_n'](_0x361ec5(0x1c3),[_0x5ab475,Array[_0x361ec5(0x239)](_0x307e97)?_0x307e97[_0x361ec5(0x1cc)]('~'):String(_0x307e97)[_0x361ec5(0x927)](',')['join']('~')]);}catch{return![];}const _0x3d7215=_0x2a72c2&&_0x2a72c2[_0x361ec5(0x602)];if(_0x3d7215===_0x361ec5(0x6ee))return!![];if(_0x3d7215===undefined)return![];_0x24b885=Math[_0x361ec5(0x644)](_0x24b885*0x2,0xfa);}}[_0x18518c(0x1c3)](_0x26225d,_0x366b98){return this['_n']('getIndexMeta',[_0x26225d,_0x366b98])??null;}[_0x18518c(0x212)](_0x562f47,_0x4ac52f){return this['_n']('getUniqueViolations',[_0x562f47,_0x4ac52f]);}[_0x18518c(0x3aa)](_0x11ba19,_0x4d7a4b){return this['_n']('hasUniqueViolations',[_0x11ba19,_0x4d7a4b]);}[_0x18518c(0x82a)](_0x1a63d5,_0x44e437,_0x5be9cd){const _0x247adc=_0x18518c;return this['_n'](_0x247adc(0x82a),[_0x1a63d5,_0x44e437,_0x5be9cd])??null;}[_0x18518c(0x251)](_0x10e660){const _0x2a8d1e=_0x18518c;return this['_n'](_0x2a8d1e(0x251),[_0x10e660])??null;}async[_0x18518c(0x8a7)](_0x156ee1,_0x1af787){const _0x88a8d5=_0x18518c;return this[_0x88a8d5(0x520)](this['_n'](_0x88a8d5(0x8a7),[_0x156ee1,_0x1af787]));}async['dropSchema'](_0x395c2c){const _0x38f1ff=_0x18518c;return this[_0x38f1ff(0x520)](this['_n'](_0x38f1ff(0x6ef),[_0x395c2c]));}[_0x18518c(0x91d)](_0x7acef2,_0x595184){const _0x568ac7=_0x18518c;return this['_n'](_0x568ac7(0x91d),[_0x7acef2,_0x595184])??null;}[_0x18518c(0x31d)](_0x275613){return this['_n']('listViolations',[_0x275613]);}[_0x18518c(0x75a)](_0xacfc3a,_0x2c2cfe,_0x34fa2e){const _0x440f8f=_0x18518c;return this['_n'](_0x440f8f(0x75a),[_0xacfc3a,_0x2c2cfe,_0x34fa2e])??null;}[_0x18518c(0x5b6)](_0x7fdb71){const _0x5be5ef=_0x18518c;return this['_n'](_0x5be5ef(0x5b6),[_0x7fdb71]);}async['setTTL'](_0x4636e4,_0x3b44c2,_0x37b472){const _0x13d694=_0x18518c;return this[_0x13d694(0x520)](this['_n']('setTTL',[_0x4636e4,_0x3b44c2,_0x37b472]));}[_0x18518c(0x38c)](_0xd1037f,_0x14ab05){const _0x58a963=_0x18518c;return this['_n'](_0x58a963(0x38c),[_0xd1037f,_0x14ab05]);}async['clearTTL'](_0x247ff9,_0x476c15){const _0x1a5a99=_0x18518c;return this[_0x1a5a99(0x520)](this['_n'](_0x1a5a99(0x2fc),[_0x247ff9,_0x476c15]));}async[_0x18518c(0x8ce)](_0x23e498){return this['_n']('sweepExpiredTTL',[_0x23e498]);}[_0x18518c(0x8fc)](_0x4f0b7a={}){const _0xd962c5=_0x18518c;return this['_n'](_0xd962c5(0x8fc),[_0x4f0b7a]);}[_0x18518c(0x873)](_0x3c7635){return this['_n']('ttlStats',[_0x3c7635]);}async[_0x18518c(0x813)](_0x1167c9,_0x287097){const _0x378eb7=_0x18518c;return this[_0x378eb7(0x520)](this['_n'](_0x378eb7(0x813),[_0x1167c9,_0x287097]));}['getDefaultTTL'](_0x384ac3){const _0x2fe296=_0x18518c;return this['_n'](_0x2fe296(0x459),[_0x384ac3]);}async['clearDefaultTTL'](_0x17414b){const _0x2b9dce=_0x18518c;return this[_0x2b9dce(0x520)](this['_n'](_0x2b9dce(0x344),[_0x17414b]));}async[_0x18518c(0x6ac)](_0x4ae6dc,_0xe03edb,_0x27196f,_0x34f3ef){const _0x27a112=_0x18518c,{batch:batch=null,batchSize:_0x152f06}=_0x160a8a(_0x34f3ef);if(typeof _0x4ae6dc!==_0x27a112(0x6d1)||!_0x4ae6dc)throw new _0xb86d6b(_0x27a112(0x4f8),_0x27a112(0x917));if(typeof _0xe03edb!==_0x27a112(0x6d1)||!_0xe03edb)throw new _0xb86d6b('resolveField:\x20field\x20required','BAD_PARAM');if(_0x27196f!=null&&typeof _0x27196f!==_0x27a112(0x84a))throw new _0xb86d6b(_0x27a112(0x75e),'BAD_PARAM');if(batch!=null&&typeof batch!=='function')throw new _0xb86d6b(_0x27a112(0x90f),_0x27a112(0x917));if(!_0x27196f&&!batch)throw new _0xb86d6b(_0x27a112(0x385),_0x27a112(0x917));if(_0x152f06!==undefined&&!(Number[_0x27a112(0x35e)](_0x152f06)&&_0x152f06>0x0))throw new _0xb86d6b(_0x27a112(0x824),_0x27a112(0x917));const _0x2b70e3=batch?async _0x294b53=>(await batch(_0x294b53))[_0x27a112(0x59f)](_0x39ed32=>_0x39ed32 instanceof Error?{'__error':!![],'message':_0x39ed32[_0x27a112(0x63a)]}:_0x39ed32):null,_0x5b6a84=_0x390ee0(this,_0x4ae6dc,_0xe03edb),_0x3e7766=this['_n'](_0x27a112(0x6ac),[_0x4ae6dc,_0xe03edb,_0x27196f?(_0x5556df,_0x1ff895)=>_0x5b6a84(_0x27196f,[_0x5556df,_0x1ff895]):null,{'batch':_0x2b70e3?_0x337766=>_0x5b6a84(_0x2b70e3,[_0x337766]):null,'batchSize':_0x152f06}]);return()=>this['_n'](_0x27a112(0x35a),[_0x3e7766]);}async[_0x18518c(0x634)](_0x5d1776,_0x37cb1e){const _0x2fa271=_0x18518c;return this['_n'](_0x2fa271(0x634),[_0x5d1776,_0x37cb1e]);}['resolvedFields'](_0x3e8702){const _0x3cdbda=_0x18518c;return this['_n'](_0x3cdbda(0x701),[_0x3e8702]);}async[_0x18518c(0x649)](_0x198633,_0x23809a,_0x110b9c,_0x3d3c7b){const _0x356502=_0x18518c;return this[_0x356502(0x709)]['_callMacro'](_0x356502(0x67a),this[_0x356502(0x264)],_0x356502(0x649),[_0x198633,_0x23809a,_0x110b9c,_0x3d3c7b],![]);}async[_0x18518c(0x618)](_0xf3039a,_0x45bfc0,_0x3ca2e7){const _0x313c69=_0x18518c;return this[_0x313c69(0x709)]['_callMacro'](_0x313c69(0x67a),this[_0x313c69(0x264)],_0x313c69(0x618),[_0xf3039a,_0x45bfc0,_0x3ca2e7],![]);}['_enableChangelog'](){}[_0x18518c(0x688)](_0x43dde5,_0x13599f,_0xac5428,_0x4cfef0={},_0x409ecf={}){const _0x3a7a91=_0x18518c;return this['okdb']['_call'](_0x3a7a91(0x6e0),null,_0x3a7a91(0x688),[_0x43dde5,_0x13599f,_0xac5428,_0x4cfef0,_0x409ecf,this['name']],![]);}get['fts'](){const _0x4e6ee6=_0x18518c;return this[_0x4e6ee6(0x709)][_0x4e6ee6(0x6e0)];}[_0x18518c(0x52d)](){const _0x597736=_0x18518c;return this['okdb'][_0x597736(0x4e8)]('env',this[_0x597736(0x264)],_0x597736(0x52d),[],![]);}[_0x18518c(0x39d)](){const _0x53ab95=_0x18518c;return this[_0x53ab95(0x709)][_0x53ab95(0x39d)]();}[_0x18518c(0x30b)](){const _0x3db6a9=_0x18518c;return this[_0x3db6a9(0x709)]['_call']('env',this['name'],'writerStatus',[],![]);}[_0x18518c(0x770)](){}get['locks'](){const _0xc8f5be=_0x18518c;return this[_0xc8f5be(0x360)]||(this[_0xc8f5be(0x360)]=new(requireLock())[(_0xc8f5be(0x398))](this[_0xc8f5be(0x709)],this['name'],_0xc8f5be(0x67a)));}[_0x18518c(0x8d2)](){const _0x4fdb10=_0x18518c;return this[_0x4fdb10(0x709)][_0x4fdb10(0x4e8)](_0x4fdb10(0x67a),this[_0x4fdb10(0x264)],_0x4fdb10(0x8d2),[],![]);}[_0x18518c(0x8f4)](_0x356342){this['_n']('registerType',[_0x356342]);}[_0x18518c(0x3df)](_0x42f7c3){const _0x26fcba=_0x18518c;this['_n'](_0x26fcba(0x81f),[_0x42f7c3]);}['_ttlState'](){return this['_n']('ttlState',[]);}[_0x18518c(0x6aa)](_0x4d23ab,_0xd85bc6){return _0x4d23ab+'\x09'+_0xd85bc6;}[_0x18518c(0x4d4)](_0x1693c7){const _0x2c3190=_0x18518c,_0x2c3c41=_0x1693c7['indexOf']('\x09');return{'type':_0x1693c7[_0x2c3190(0x836)](0x0,_0x2c3c41),'key':_0x1693c7['slice'](_0x2c3c41+0x1)};}get[_0x18518c(0x5a0)](){const _0xf40df3=_0x18518c;if(!this[_0xf40df3(0x52a)]()[_0xf40df3(0x20e)])return null;return this['__ttlByKey']||(this[_0xf40df3(0x77a)]=new _0x5ddf76(this,_0xf40df3(0x538)));}get[_0x18518c(0x52b)](){const _0x4f2971=_0x18518c;if(!this[_0x4f2971(0x52a)]()[_0x4f2971(0x20e)])return null;return this['__ttlByExpiry']||(this[_0x4f2971(0x8da)]=new _0x5ddf76(this,_0x4f2971(0x23d),{'dupSort':!![]}));}[_0x18518c(0x511)](_0x84084f,_0x4cbfca,_0x3d8d30){const _0x2687bc=_0x18518c;this['_n'](_0x2687bc(0x82c),[_0x84084f,_0x4cbfca,_0x3d8d30]);}[_0x18518c(0x8a6)](_0x2cc008,_0x4ea8d2){const _0x4c7ac1=_0x18518c,_0x5c7f83=this['_ttlByKey']?.[_0x4c7ac1(0x341)](this[_0x4c7ac1(0x6aa)](_0x2cc008,_0x4ea8d2));return _0x5c7f83!=null&&_0x5c7f83<=Date['now']();}get[_0x18518c(0x471)](){const _0x303ce3=_0x18518c;return this[_0x303ce3(0x52a)]()[_0x303ce3(0x2ed)]??null;}get['_ttlBackoffUntil'](){return this['_ttlState']()['backoffUntil']||0x0;}get[_0x18518c(0x761)](){return![];}[_0x18518c(0x63b)](){}async[_0x18518c(0x738)](_0x19d2c1,_0x301e9f){const _0x2b9e5f=_0x18518c;if(this['_rebuilding']){const {OKDBError:_0x4ab81b}=requireErrors();throw new _0x4ab81b(_0x2b9e5f(0x6e7),_0x2b9e5f(0x899));}this['_rebuilding']=!![];try{const _0x68625={..._0x301e9f||{},'repair':_0x19d2c1===_0x2b9e5f(0x257)};this[_0x2b9e5f(0x709)][_0x2b9e5f(0x4e8)]('env',this[_0x2b9e5f(0x264)],_0x2b9e5f(0x484),[_0x68625]);const _0x512f21=this[_0x2b9e5f(0x709)][_0x2b9e5f(0x5b0)];while(this['okdb']['_call'](_0x2b9e5f(0x67a),this['name'],'compactPending',[],![]))await _0x512f21['nextTurn'](0xfa);return this[_0x2b9e5f(0x709)][_0x2b9e5f(0x4e8)](_0x2b9e5f(0x67a),this[_0x2b9e5f(0x264)],_0x2b9e5f(0x627),[],![]);}finally{this['_rebuilding']=![];}}async[_0x18518c(0x7ed)](_0x54dd98={}){const _0x49100f=_0x18518c;return this[_0x49100f(0x738)](_0x49100f(0x7ed),_0x54dd98);}async[_0x18518c(0x257)](_0x4c7712={}){const _0x3a4882=_0x18518c;return this[_0x3a4882(0x738)]('repair',_0x4c7712);}}_0x3193c1[_0x18518c(0x24b)]=_0x244a67;function _0x33cf8f(_0x29ef1d){const _0x369555=_0x18518c;if(!_0x29ef1d||typeof _0x29ef1d!==_0x369555(0x81a))return![];for(const _0xecce3d of Object[_0x369555(0x88a)](_0x29ef1d)){const _0x4427c5=_0x29ef1d[_0xecce3d];if(_0x4427c5&&typeof _0x4427c5===_0x369555(0x81a)&&(_0x4427c5[_0x369555(0x710)]||_0x4427c5['$within']))return!![];}return![];}function _0x55513f(_0x26e713){const _0xe1de9a=_0x18518c;if(!_0x26e713||typeof _0x26e713!==_0xe1de9a(0x81a))return{};const _0x1eece2={};for(const _0x5996ea of Object['keys'](_0x26e713)){if(_0x5996ea==='transaction'||_0x5996ea==='snapshot')continue;_0x1eece2[_0x5996ea]=_0x26e713[_0x5996ea];}return _0x1eece2;}function _0x258468(_0x3acce2){const _0x23e6a4=_0x18518c;if(!_0x3acce2||typeof _0x3acce2!==_0x23e6a4(0x81a))return{};const _0x4ef592={};for(const _0x32c082 of Object['keys'](_0x3acce2)){if(typeof _0x3acce2[_0x32c082]===_0x23e6a4(0x84a))continue;_0x4ef592[_0x32c082]=_0x3acce2[_0x32c082];}return _0x4ef592;}return env={'OKDBEnv':_0x3193c1,'HIGH_SENTINEL':_0x244a67},env;}var unsupported,hasRequiredUnsupported;function requireUnsupported(){if(hasRequiredUnsupported)return unsupported;hasRequiredUnsupported=0x1;const {NotImplementedNative:_0x571d1e}=requireErrors();function _0x46869a(_0x5f17c0){const _0x2fbe73=_0x3b7c92=>{throw new _0x571d1e(_0x5f17c0,_0x3b7c92);};return new Proxy(function(){},{'get'(_0x3c931c,_0x5282e3){const _0x317ee9=_0xf27e;if(typeof _0x5282e3==='symbol'||_0x5282e3===_0x317ee9(0x478)||_0x5282e3==='toJSON'||_0x5282e3===_0x317ee9(0x238))return undefined;if(_0x5282e3===_0x317ee9(0x690))return _0x5f17c0;return(..._0x5cddf8)=>_0x2fbe73(_0x5f17c0+'.'+String(_0x5282e3));},'apply'(){_0x2fbe73(_0x5f17c0);},'set'(){return!![];}});}return unsupported={'notImplemented':_0x46869a},unsupported;}var http,hasRequiredHttp;function requireHttp(){const _0x8abadc=_0x7b0c8f;if(hasRequiredHttp)return http;hasRequiredHttp=0x1;function _0x2c011d(_0x8e3039,_0x872d={}){const _0x2d42ac=_0xf27e,_0x19517c=[];let _0x19b7f7=![];_0x8e3039[_0x2d42ac(0x6f2)]('/*')&&(_0x19b7f7=!![],_0x8e3039=_0x8e3039['slice'](0x0,-0x2),_0x19517c[_0x2d42ac(0x247)]('*'));let _0x4cb95c=_0x8e3039[_0x2d42ac(0x8c7)](/\/+$/,'')[_0x2d42ac(0x8c7)](/\[([^\]]*)\]/g,(_0x3e4f1a,_0x478392)=>{const _0x3798d1=_0x2d42ac,_0x47c5ee=_0x478392[_0x3798d1(0x8c7)](/\/:(\w+)(?:=([^/\]\s]*))?/g,(_0x4a253c,_0x3dd788)=>{const _0x19ec39=_0x3798d1;return _0x19517c[_0x19ec39(0x247)](_0x3dd788),'/([^/]+)';});return _0x3798d1(0x335)+_0x47c5ee+')?';})[_0x2d42ac(0x8c7)](/\/:(\w+)/g,(_0x1ff8e4,_0x2c3fd9)=>{const _0x1603c6=_0x2d42ac;return _0x19517c[_0x1603c6(0x247)](_0x2c3fd9),'/([^/]+)';});if(_0x4cb95c==='')_0x4cb95c='/';return{'keys':_0x19517c,'defaults':_0x872d||{},'wildcard':_0x19b7f7,'regex':new RegExp('^'+_0x4cb95c+(_0x19b7f7?_0x2d42ac(0x53c):'')+_0x2d42ac(0x70d))};}const _0x5fd28f=require$$0$3,{PassThrough:_0x4148cc}=require$$1;function _0x588eac(_0x56452b){const _0x460609=_0xf27e,_0x5df80e=_0x56452b[_0x460609(0x26b)](':'),_0x558ee0=_0x56452b[_0x460609(0x836)](0x0,_0x5df80e)[_0x460609(0x8c7)](/^\[|\]$/g,'');return{'address':_0x558ee0,'family':_0x558ee0[_0x460609(0x566)](':')?'IPv6':'IPv4','port':Number(_0x56452b[_0x460609(0x836)](_0x5df80e+0x1))};}class _0x5931a9 extends _0x5fd28f[_0x8abadc(0x51c)]{constructor(_0x35367c,_0x3db703){const _0x48ecab=_0x8abadc;super(),this[_0x48ecab(0x604)]=_0x35367c,this[_0x48ecab(0x85b)]=_0x588eac(_0x3db703),this[_0x48ecab(0x8ae)]=!![],this[_0x48ecab(0x787)]=setInterval(()=>{},0x7fffffff);}get[_0x8abadc(0x8ae)](){const _0x12a257=_0x8abadc;return this[_0x12a257(0x648)];}set[_0x8abadc(0x8ae)](_0x369b63){const _0x549d78=_0x8abadc;this[_0x549d78(0x648)]=_0x369b63;}[_0x8abadc(0x779)](){const _0x5e1477=_0x8abadc;return this[_0x5e1477(0x8ae)]?{...this['_addr']}:null;}[_0x8abadc(0x73b)](){const _0x52166c=_0x8abadc;if(this[_0x52166c(0x787)])clearInterval(this['_keepAlive']);this[_0x52166c(0x787)]=null;}[_0x8abadc(0x8bf)](_0x5a5e50){const _0x4f58ef=_0x8abadc;this['_release']();const _0x18197a=this[_0x4f58ef(0x604)][_0x4f58ef(0x8bf)]();if(_0x5a5e50)_0x18197a[_0x4f58ef(0x478)](()=>_0x5a5e50(),_0x5a5e50);return this;}['ref'](){const _0x504a83=_0x8abadc;return this[_0x504a83(0x787)]?.[_0x504a83(0x303)](),this;}[_0x8abadc(0x32d)](){const _0x4a7413=_0x8abadc;return this[_0x4a7413(0x787)]?.['unref'](),this;}}class _0xb8e65b{constructor(_0x449426){const _0x2e44ff=_0x8abadc;this['okdb']=_0x449426,this[_0x2e44ff(0x617)]=[],this[_0x2e44ff(0x611)]={'cookieName':_0x2e44ff(0x59d)};}get['server'](){const _0x506f52=_0x8abadc;return this[_0x506f52(0x617)][0x0]||null;}['_n'](_0x39c1e0,_0x288ef7=[]){const _0x4ec63e=_0x8abadc;return this[_0x4ec63e(0x709)]['_callMacro'](_0x4ec63e(0x789),null,_0x39c1e0,_0x288ef7,!![]);}async[_0x8abadc(0x41e)](_0xd8933b,_0x15cc4b,_0xdcb6e1={},_0x32611a={}){let _0x357e4b=await this['_n']('handle',[_0xd8933b,_0x15cc4b,_0xdcb6e1,_0x32611a]),_0x2da877=0x0;return _0x357e4b=await this['_settle'](_0x357e4b,_0x2da877),_0x357e4b;}async[_0x8abadc(0x614)](_0x401f25,_0x587bb2){const _0x10d0fe=_0x8abadc;while(_0x401f25&&typeof _0x401f25==='object'&&_0x401f25[_0x10d0fe(0x4ab)]!==undefined){await new Promise(_0x238398=>setTimeout(_0x238398,_0x587bb2<0x5?0x1:0x5)),_0x587bb2++,_0x401f25=await this['_n'](_0x10d0fe(0x630),[_0x401f25[_0x10d0fe(0x4ab)]]);}if(_0x401f25&&_0x401f25[_0x10d0fe(0x252)]&&typeof _0x401f25[_0x10d0fe(0x252)]===_0x10d0fe(0x81a)&&_0x401f25[_0x10d0fe(0x252)][_0x10d0fe(0x3cf)]!==undefined)_0x401f25['body']=this[_0x10d0fe(0x5d7)](_0x401f25[_0x10d0fe(0x252)]['$streamId']);return _0x401f25;}[_0x8abadc(0x5d7)](_0x33bf3e){const _0x5258c9=new _0x4148cc();let _0x22d9fe=![];const _0x46ffb6=()=>{const _0x24a052=_0xf27e;if(_0x22d9fe)return;_0x22d9fe=!![],clearTimeout(_0x5e86de),setImmediate(()=>this[_0x24a052(0x709)][_0x24a052(0x588)]&&this[_0x24a052(0x709)][_0x24a052(0x4e8)](_0x24a052(0x789),null,'streamClose',[_0x33bf3e],!![]));};let _0x5e86de=null;const _0x427401=()=>{const _0xbfbab1=_0xf27e;if(_0x22d9fe)return;let _0x55454e;try{_0x55454e=this[_0xbfbab1(0x709)][_0xbfbab1(0x4e8)](_0xbfbab1(0x789),null,_0xbfbab1(0x87f),[_0x33bf3e],!![]);}catch{_0x55454e={'chunks':[],'end':!![]};}for(const _0x4aaa6e of _0x55454e[_0xbfbab1(0x3dd)])_0x5258c9[_0xbfbab1(0x248)](_0x4aaa6e);if(_0x55454e[_0xbfbab1(0x402)]){_0x22d9fe=!![],_0x5258c9[_0xbfbab1(0x402)]();return;}_0x5e86de=setTimeout(_0x427401,_0x55454e[_0xbfbab1(0x3dd)][_0xbfbab1(0x7e0)]?0x0:0xa);};_0x5258c9['on']('close',_0x46ffb6),_0x427401();if(!_0x22d9fe)_0x427401();if(_0x22d9fe)_0x5258c9['destroy']();else{if(!_0x5e86de)_0x5e86de=setTimeout(_0x427401,0x0);}return _0x5258c9;}['add'](_0x58591a,_0x3d5f6d,_0x3b9b2b,_0x287e39={}){const _0x26ae27=_0x8abadc;return this[_0x26ae27(0x709)][_0x26ae27(0x4e8)](_0x26ae27(0x789),null,_0x26ae27(0x737),[_0x58591a,_0x3d5f6d,_0x3b9b2b,_0x287e39,![]],!![]),this;}['addRaw'](_0x3ac3f3,_0x564534,_0x13c213,_0x3191f4={}){const _0x1fc03d=_0x8abadc;return this[_0x1fc03d(0x709)][_0x1fc03d(0x4e8)](_0x1fc03d(0x789),null,_0x1fc03d(0x737),[_0x3ac3f3,_0x564534,_0x13c213,_0x3191f4,!![]],!![]),this;}['guard'](_0x326509,_0xf6cc2a){const _0x409f9d=_0x8abadc,_0x207dc0=async _0x92c81d=>{const _0x4b7705=_0xf27e,_0x2eb470={'status':undefined,'headers':[],'hasBody':![],'body':undefined},_0x7ac283={'status'(_0x122bf1){const _0x4b702d=_0xf27e;return _0x2eb470[_0x4b702d(0x602)]=_0x122bf1,_0x7ac283;},'setHeader'(_0x4955b2,_0x24fe76){const _0x3ecce3=_0xf27e;_0x2eb470[_0x3ecce3(0x1b8)][_0x3ecce3(0x247)]([_0x4955b2,_0x24fe76]);},'send'(_0x58feda){const _0x41fab6=_0xf27e;_0x2eb470[_0x41fab6(0x4c6)]=!![],_0x2eb470[_0x41fab6(0x252)]=_0x58feda;}};_0x92c81d[_0x4b7705(0x45e)]={'remoteAddress':_0x92c81d[_0x4b7705(0x5a8)]??null};const _0x2431a4=await _0xf6cc2a(_0x92c81d,_0x7ac283);return{'allowed':_0x2431a4!==![],..._0x2eb470};};this[_0x409f9d(0x709)][_0x409f9d(0x4e8)](_0x409f9d(0x789),null,_0x409f9d(0x6e4),[_0x5f9df=>!!_0x326509(_0x5f9df),_0x207dc0],!![]);}[_0x8abadc(0x1de)](_0x6f9a1c){const _0x5db5f3=_0x8abadc,_0x5cf94a=async _0x4ff6e2=>{const _0x59bbaf=_0xf27e,_0x626b4a={'status':undefined,'headers':[],'hasBody':![],'body':undefined};let _0x546d8f=![];const _0x20e9b7={'status'(_0x1036b1){const _0x4cddc1=_0xf27e;return _0x626b4a[_0x4cddc1(0x602)]=_0x1036b1,_0x20e9b7;},'setHeader'(_0x5f184b,_0x284105){const _0x463620=_0xf27e;_0x626b4a['headers'][_0x463620(0x247)]([_0x5f184b,_0x284105]);},'send'(_0x4e6b08){const _0x38b78f=_0xf27e;_0x626b4a[_0x38b78f(0x4c6)]=!![],_0x626b4a[_0x38b78f(0x252)]=_0x4e6b08;}};return _0x4ff6e2[_0x59bbaf(0x45e)]={'remoteAddress':_0x4ff6e2[_0x59bbaf(0x5a8)]??null},await _0x6f9a1c(_0x4ff6e2,_0x20e9b7,async()=>{_0x546d8f=!![];}),{'allowed':_0x546d8f,..._0x626b4a};};return this['okdb']['_call'](_0x5db5f3(0x789),null,_0x5db5f3(0x1de),[_0x5cf94a],!![]),this;}get[_0x8abadc(0x85e)](){const _0x395dee=_0x8abadc;return this[_0x395dee(0x709)][_0x395dee(0x4e8)]('http',null,_0x395dee(0x1d0),[],![]);}set[_0x8abadc(0x85e)](_0x14c7a1){const _0x35a5b1=_0x8abadc;this[_0x35a5b1(0x709)][_0x35a5b1(0x4e8)](_0x35a5b1(0x789),null,_0x35a5b1(0x705),[Number(_0x14c7a1)],![]);}[_0x8abadc(0x6ad)](_0x13a294,_0x75827b,_0x51f754={}){const _0x18a729=_0x8abadc,_0x27fe18=new Map(),_0xc7d9b5=(_0x5a7690,_0x48b781)=>this['okdb'][_0x18a729(0x4e8)](_0x18a729(0x789),null,_0x5a7690,_0x48b781,![]),_0xff9b81=_0x555a86=>{const _0x3aadb7=_0x18a729,{connId:_0x53869f}=_0x555a86;if(_0x555a86[_0x3aadb7(0x423)]){const _0x3e0496=_0x27fe18['get'](_0x53869f);_0x27fe18[_0x3aadb7(0x610)](_0x53869f);if(typeof _0x3e0496===_0x3aadb7(0x84a))_0x3e0496();return;}const _0x389e6f=(_0x32faff,_0x21252f,_0x2e72a1={})=>{const _0x3df5f6=_0x3aadb7;try{_0xc7d9b5(_0x3df5f6(0x289),[_0x53869f,_0x32faff,_0x21252f,_0x2e72a1]);}catch{}},_0x5d36ad=()=>{const _0x462f4a=_0x3aadb7;try{_0xc7d9b5(_0x462f4a(0x790),[_0x53869f]);}catch{}},_0x4ba0f5=(_0x2a4b5c,_0x3ccb0a)=>_0xc7d9b5(_0x3aadb7(0x49b),[_0x53869f,String(_0x2a4b5c),String(_0x3ccb0a)]),_0x44a548={'auth':{'open':_0x555a86[_0x3aadb7(0x203)],'isAuthenticated':_0x555a86[_0x3aadb7(0x4da)]}},_0x430d63=_0x75827b({'send':_0x389e6f,'close':_0x5d36ad,'params':_0x555a86[_0x3aadb7(0x74d)]??{},'query':_0x555a86[_0x3aadb7(0x3da)]??{},'headers':_0x555a86[_0x3aadb7(0x1b8)]??{},'context':_0x44a548,'setHeader':_0x4ba0f5});_0x27fe18[_0x3aadb7(0x8db)](_0x53869f,_0x430d63);};return this['okdb']['_call'](_0x18a729(0x789),null,_0x18a729(0x6ad),[_0x13a294,_0xff9b81,_0x51f754],!![]),this;}get[_0x8abadc(0x5e1)](){const _0x261016=_0x8abadc;return this[_0x261016(0x4a8)]();}[_0x8abadc(0x4a8)](){const _0x45301b=_0x8abadc;return this[_0x45301b(0x709)][_0x45301b(0x4e8)](_0x45301b(0x789),null,_0x45301b(0x4a8),[],![])[_0x45301b(0x59f)](_0x4de27c=>({..._0x4de27c,'matcher':_0x2c011d(_0x4de27c['path'],_0x4de27c[_0x45301b(0x293)])}));}[_0x8abadc(0x6f6)](_0x486a01,_0x2fd417){const _0x48496a=_0x8abadc;return this[_0x48496a(0x709)][_0x48496a(0x4e8)](_0x48496a(0x789),null,_0x48496a(0x6f6),[_0x486a01,_0x2fd417],![]);}[_0x8abadc(0x6d2)](_0x2b24a5,_0x29b564={}){const _0x3604d2=_0x8abadc;if(typeof _0x29b564===_0x3604d2(0x6d1)||Array[_0x3604d2(0x239)](_0x29b564))_0x29b564={'host':_0x29b564};_0x29b564=_0x29b564??{};if((Number(_0x29b564[_0x3604d2(0x8f0)])||0x0)>=0x1||_0x29b564[_0x3604d2(0x2a2)]!=null||_0x29b564[_0x3604d2(0x6e9)]!=null){const _0x134bad=new Error(_0x3604d2(0x7b5)+_0x3604d2(0x6ba)+_0x3604d2(0x5d6)+_0x3604d2(0x55f));_0x134bad[_0x3604d2(0x5c5)]='HTTP_CLUSTER_REMOVED';throw _0x134bad;}if(this[_0x3604d2(0x617)][_0x3604d2(0x7e0)])throw new Error('HTTP\x20server\x20already\x20running');const _0x593532=_0x29b564[_0x3604d2(0x700)]==null?[undefined]:[]['concat'](_0x29b564[_0x3604d2(0x700)]);if(!_0x593532[_0x3604d2(0x7e0)]||_0x593532[_0x3604d2(0x543)](_0x256da8=>_0x256da8!==undefined&&(typeof _0x256da8!==_0x3604d2(0x6d1)||!_0x256da8))){const _0x2a09af=new Error(_0x3604d2(0x306));_0x2a09af[_0x3604d2(0x5c5)]=_0x3604d2(0x868);throw _0x2a09af;}const _0x3fd742=require$$2[_0x3604d2(0x7b4)]?{..._0x29b564,'reuseport':!![]}:_0x29b564,_0x6cc689=this[_0x3604d2(0x709)][_0x3604d2(0x4e8)](_0x3604d2(0x789),null,_0x3604d2(0x6d2),[_0x2b24a5,_0x3fd742],!![]),_0x10635b=_0x6cc689[_0x3604d2(0x7d4)]??_0x2b24a5,_0x38f8f7=_0x29b564[_0x3604d2(0x700)]==null?':'+_0x10635b:_0x593532[_0x3604d2(0x59f)](_0x28f0fd=>(_0x28f0fd[_0x3604d2(0x566)](':')?'['+_0x28f0fd+']':_0x28f0fd)+':'+_0x10635b)['join'](',\x20');try{this[_0x3604d2(0x709)][_0x3604d2(0x2dd)][_0x3604d2(0x920)](_0x38f8f7);if(!require(_0x3604d2(0x6f3))[_0x3604d2(0x7b4)])this[_0x3604d2(0x709)][_0x3604d2(0x2dd)][_0x3604d2(0x269)]({'kind':_0x3604d2(0x211),'listenAddr':_0x38f8f7});}catch{}this[_0x3604d2(0x617)]=_0x6cc689[_0x3604d2(0x1e9)][_0x3604d2(0x59f)](_0x14d8d7=>new _0x5931a9(this,_0x14d8d7));const _0x5cc312=this[_0x3604d2(0x617)][0x0];return process[_0x3604d2(0x2fb)](()=>this['servers'][_0x3604d2(0x537)](_0x2b1618=>_0x2b1618[_0x3604d2(0x224)](_0x3604d2(0x8ae)))),_0x5cc312;}async[_0x8abadc(0x8bf)](_0x1881da={}){const _0x4a39fd=_0x8abadc,_0x3c3f9e=this[_0x4a39fd(0x617)];this[_0x4a39fd(0x617)]=[];if(require$$2[_0x4a39fd(0x7b4)]&&!process[_0x4a39fd(0x369)]&&_0x1881da[_0x4a39fd(0x255)]==null)_0x1881da={..._0x1881da,'forceAfterMs':Infinity};if(_0x3c3f9e[_0x4a39fd(0x7e0)]){const _0x194d0a=_0x1881da[_0x4a39fd(0x255)]===Infinity?Infinity:Number['isFinite'](_0x1881da[_0x4a39fd(0x255)])?Math['max'](0x0,_0x1881da[_0x4a39fd(0x255)]):0x3e8,_0x5f3406=Date['now']();while(this[_0x4a39fd(0x709)]['_call'](_0x4a39fd(0x789),null,_0x4a39fd(0x4e1),[],!![])>0x0&&Date[_0x4a39fd(0x274)]()-_0x5f3406<_0x194d0a)await new Promise(_0x5731bc=>setTimeout(_0x5731bc,0x5));_0x1881da={..._0x1881da,'forceAfterMs':_0x194d0a===Infinity?0x3e8:Math[_0x4a39fd(0x3d2)](0x0,_0x194d0a-(Date[_0x4a39fd(0x274)]()-_0x5f3406))};}await this['_n'](_0x4a39fd(0x8bf),[_0x1881da]);for(const _0x3d7914 of _0x3c3f9e){_0x3d7914[_0x4a39fd(0x73b)](),_0x3d7914[_0x4a39fd(0x8ae)]=![],_0x3d7914[_0x4a39fd(0x224)](_0x4a39fd(0x8bf));}}}return http={'OKDBHttp':_0xb8e65b},http;}var fts,hasRequiredFts;function _0xf27e(_0x234eff,_0x4f3d06){_0x234eff=_0x234eff-0x1ab;const _0x38ac2f=_0x38ac();let _0xf27e9=_0x38ac2f[_0x234eff];return _0xf27e9;}function requireFts(){const _0x4693a0=_0x7b0c8f;if(hasRequiredFts)return fts;hasRequiredFts=0x1;const _0x3a23b4=_0xff5fde=>(_0xff5fde&&typeof _0xff5fde===_0x4693a0(0x81a)?_0xff5fde[_0x4693a0(0x264)]:_0xff5fde)??_0x4693a0(0x88c);class _0x2edbc1{constructor(_0xd488e3){const _0x522dd7=_0x4693a0;this[_0x522dd7(0x709)]=_0xd488e3;}['_n'](_0x2bb1b8,_0x177063,_0x43a007=![]){const _0x36499d=_0x4693a0;return this[_0x36499d(0x709)][_0x36499d(0x4e8)](_0x36499d(0x6e0),null,_0x2bb1b8,_0x177063,_0x43a007);}[_0x4693a0(0x686)](_0x36082e,_0xe1d2cf){const _0x32c1cf=_0x4693a0;return this[_0x32c1cf(0x709)][_0x32c1cf(0x1e0)](_0x32c1cf(0x6e0),null,_0x36082e,_0xe1d2cf,!![]);}get[_0x4693a0(0x660)](){const _0x40a3ab=this,_0xd0df8f=_0xc057b=>{const _0x352a8f=_0xf27e,_0x5c8d1d=_0xc057b[_0x352a8f(0x89b)](':'),_0x26bebc=_0xc057b['slice'](0x0,_0x5c8d1d),_0x23d612=_0x40a3ab[_0x352a8f(0x709)][_0x352a8f(0x4b1)][_0x352a8f(0x341)](_0x26bebc);if(!_0x23d612)return undefined;const _0x54465a=_0x23d612[_0x352a8f(0x800)][_0x352a8f(0x7a7)]()[_0x352a8f(0x4dd)](_0x2f24cc=>_0x2f24cc[_0x352a8f(0x433)]===_0x352a8f(0x2e6)+_0xc057b);if(!_0x54465a)return undefined;return _0x23d612['processor'][_0x352a8f(0x708)](_0x54465a['id'],_0x54465a[_0x352a8f(0x433)]);};return{'get':_0xd0df8f,'has':_0x2c3dd3=>!!_0xd0df8f(_0x2c3dd3)};}get[_0x4693a0(0x8fe)](){return[];}[_0x4693a0(0x54c)](){const _0x5185ef=_0x4693a0,{RawDb:_0x38df3a}=requireRawdb();return new _0x38df3a(this[_0x5185ef(0x709)]['_systemEnv'],_0x5185ef(0x530));}['has'](_0x3dcfce,_0x3a7b5f,_0x4fd9dc){const _0x5ba788=_0x4693a0;return this['_n'](_0x5ba788(0x5ed),[_0x3dcfce,_0x3a7b5f,_0x3a23b4(_0x4fd9dc)]);}[_0x4693a0(0x602)](_0x3535b1,_0x576457,_0x136a44){const _0x22e515=_0x4693a0;return this['_n'](_0x22e515(0x602),[_0x3535b1,_0x576457,_0x3a23b4(_0x136a44)]);}[_0x4693a0(0x7a7)](_0x14c745,_0x5eebe5){const _0x1c805e=_0x4693a0;return this['_n'](_0x1c805e(0x7a7),[_0x14c745,_0x3a23b4(_0x5eebe5)]);}async[_0x4693a0(0x7ea)](_0x16357c,_0x2fe620,_0x4e46c0,_0x4b33d7,_0xb94c7){const _0x483598=_0x4693a0,_0x9c2e62=(_0x502858,_0x3ffb22)=>this['okdb'][_0x483598(0x1e0)](_0x483598(0x6e0),null,_0x502858,_0x3ffb22,!![],![]),_0x4ccb0c=Date[_0x483598(0x274)]()+0x1d4c0;let _0x19a650=_0x16357c,_0x5d8ea4=_0x2fe620;for(;;){try{return await _0x9c2e62(_0x19a650,_0x5d8ea4);}catch(_0x457a95){if(_0x457a95['code']===_0x483598(0x261)){_0x19a650=_0x483598(0x461),_0x5d8ea4=[_0x4e46c0,_0x4b33d7,_0x3a23b4(_0xb94c7)];if(_0x457a95[_0x483598(0x33f)]&&_0x457a95[_0x483598(0x33f)][_0x483598(0x71b)])await new Promise(_0x2bf8bd=>setTimeout(_0x2bf8bd,0x2));continue;}if(_0x457a95[_0x483598(0x5c5)]!=='FIELD_RESOLVER_PENDING'||Date['now']()>=_0x4ccb0c)throw _0x457a95;}await new Promise(_0x33cae1=>setTimeout(_0x33cae1,0x5)),_0x19a650=_0x483598(0x8c9),_0x5d8ea4=[_0x4e46c0,_0x4b33d7,!![],_0x3a23b4(_0xb94c7)];}}async[_0x4693a0(0x269)](_0x3c3dfb,_0x2f1e5c,_0x11ade2,_0x281b79,_0x2e1631){const _0x35f052=_0x4693a0;return this[_0x35f052(0x7ea)]('register',[_0x3c3dfb,_0x2f1e5c,_0x11ade2,_0x281b79,_0x3a23b4(_0x2e1631)],_0x3c3dfb,_0x2f1e5c,_0x2e1631);}async[_0x4693a0(0x43a)](_0x437001,_0x25f807,_0x124ee2){const _0x2dbe56=_0x4693a0;return this[_0x2dbe56(0x686)](_0x2dbe56(0x43a),[_0x437001,_0x25f807,_0x3a23b4(_0x124ee2)]);}async['ensure'](_0x50faba,_0x475b9c,_0x2ac6f3,_0x5158ce){const _0x27496a=_0x4693a0;return this[_0x27496a(0x7ea)](_0x27496a(0x6d6),[_0x50faba,_0x475b9c,_0x2ac6f3,_0x3a23b4(_0x5158ce)],_0x50faba,_0x475b9c,_0x5158ce);}async['reset'](_0x4a657f,_0x2d96a8,_0x28d57b,_0x430737){const _0x5e2cdd=_0x4693a0;return this[_0x5e2cdd(0x7ea)](_0x5e2cdd(0x8c9),[_0x4a657f,_0x2d96a8,_0x28d57b,_0x3a23b4(_0x430737)],_0x4a657f,_0x2d96a8,_0x430737);}async[_0x4693a0(0x25b)](_0x20cb56,_0x2adc05,_0x1c9b71,_0x5400e2=0x1d4c0){const _0x2fa037=_0x4693a0,_0x5f1a36=Date[_0x2fa037(0x274)]()+_0x5400e2;for(;;){try{return await this['_nm'](_0x20cb56,[..._0x2adc05,0x1]);}catch(_0x4c922a){if(_0x4c922a[_0x2fa037(0x5c5)]!==_0x1c9b71||Date['now']()>=_0x5f1a36)throw _0x4c922a;}await new Promise(_0x5e50a5=>setTimeout(_0x5e50a5,0x2));}}async[_0x4693a0(0x6ee)](_0x4a4f5f,_0x23a7da,_0x3a844b){const _0x1492d1=_0x4693a0;return this[_0x1492d1(0x25b)](_0x1492d1(0x6ee),[_0x4a4f5f,null,_0x3a23b4(_0x3a844b)],_0x1492d1(0x745));}async[_0x4693a0(0x1db)](_0x16a6a4,_0x8d4675){const _0x3c80a2=_0x4693a0;return this['_waitNative'](_0x3c80a2(0x1db),[_0x16a6a4,_0x3a23b4(_0x8d4675)],_0x3c80a2(0x3b8));}async[_0x4693a0(0x7ed)](_0x29d0db,_0x2d2d09){const _0x27e4d4=_0x4693a0;return this[_0x27e4d4(0x686)](_0x27e4d4(0x7ed),[_0x29d0db,_0x3a23b4(_0x2d2d09)]);}async['process'](_0x7ed5fb={}){const _0x3a5ed7=_0x4693a0;return this[_0x3a5ed7(0x686)]('process',[_0x7ed5fb]);}async[_0x4693a0(0x4e4)](_0x57c510){const _0xe90743=_0x4693a0;return this[_0xe90743(0x686)]('compactStorage',[_0x3a23b4(_0x57c510)]);}['envSize'](_0x16e48d){return this['_n']('envSize',[_0x3a23b4(_0x16e48d)]);}[_0x4693a0(0x92b)](_0x13640a,_0x5c1c97,_0x3c2577,_0x1f6896,_0x526266){const _0x4d48a5=_0x4693a0;return this['_n'](_0x4d48a5(0x92b),[_0x13640a,_0x5c1c97,_0x3c2577,_0x1f6896||{},_0x3a23b4(_0x526266)]);}['searchDocs'](_0x31664d,_0x4cfc95,_0xcf44bc,_0x2e5d97,_0x4956f0,_0x5374db){const _0x1a5520=_0x4693a0;return this['_n'](_0x1a5520(0x1fc),[_0x31664d,_0x4cfc95,_0xcf44bc,_0x2e5d97||{},_0x3a23b4(_0x4956f0),_0x5374db]);}[_0x4693a0(0x892)](_0x233bf4,_0x32821a,_0x209ba0,_0x5a303e,_0x5d96fe){const _0x523464=_0x4693a0;return this['_n'](_0x523464(0x8fd),[_0x233bf4,_0x32821a,_0x209ba0,_0x5a303e||{},_0x3a23b4(_0x5d96fe)]);}[_0x4693a0(0x396)](){const _0x1f6fdc=_0x4693a0;return this['_n'](_0x1f6fdc(0x396),[]);}async[_0x4693a0(0x62f)](){const _0x19ed68=_0x4693a0;return this[_0x19ed68(0x686)](_0x19ed68(0x62f),[]);}}return fts={'OKDBFts':_0x2edbc1},fts;}var embeddings,hasRequiredEmbeddings;function requireEmbeddings(){const _0x1ff339=_0x7b0c8f;if(hasRequiredEmbeddings)return embeddings;hasRequiredEmbeddings=0x1;const {OKDBError:_0x22cd2b,invalidArgument:_0x34d760}=requireErrors();requireBridge();const _0x2080ba=Object[_0x1ff339(0x65b)]({'EMBEDDER':_0x1ff339(0x42b),'INDEXER':_0x1ff339(0x724),'SEARCH':_0x1ff339(0x281),'WORKER':_0x1ff339(0x244)});async function _0x307c86(_0x565cd8,_0x16abd8,_0x3fac75,_0x81d0db={}){const _0x212439=_0x1ff339,_0x22c447=_0x81d0db&&_0x81d0db[_0x212439(0x733)]!=null?Number(_0x81d0db[_0x212439(0x733)]):0x1d4c0,_0x36560c=Date[_0x212439(0x274)]()+_0x22c447;await _0x16abd8();for(;;){const _0x3c6b45=await _0x3fac75()||{};if(_0x3c6b45[_0x212439(0x275)]&&!_0x3c6b45[_0x212439(0x505)])return!![];if(Date[_0x212439(0x274)]()>=_0x36560c)throw new _0x22cd2b(_0x212439(0x759)+_0x565cd8+_0x212439(0x867)+_0x22c447+_0x212439(0x75b),_0x212439(0x234),{'name':_0x565cd8,'timeoutMs':_0x22c447,'loaded':!!_0x3c6b45[_0x212439(0x275)],'building':!!_0x3c6b45[_0x212439(0x505)],'count':_0x3c6b45[_0x212439(0x44b)]});await new Promise(_0x117696=>setTimeout(_0x117696,0xa));}}const _0x42be1a=_0x4fd476=>typeof _0x4fd476===_0x1ff339(0x6d1)||_0x4fd476==null?_0x4fd476:Array[_0x1ff339(0x875)](_0x4fd476);class _0x50d200{constructor(_0x1e77df){const _0x5a555c=_0x1ff339;this['okdb']=_0x1e77df,this[_0x5a555c(0x4f9)]=new Map(),this[_0x5a555c(0x806)]=new Map(),this[_0x5a555c(0x1e6)]=new Map();}['_n'](_0xafae3c,_0x233bf1=[],_0x165597=!![]){const _0x20a50c=_0x1ff339;return this[_0x20a50c(0x709)][_0x20a50c(0x4e8)]('embeddings',null,_0xafae3c,_0x233bf1,_0x165597);}['_nm'](_0x1d8498,_0xb441b0=[]){const _0x41e60d=_0x1ff339;return this[_0x41e60d(0x709)][_0x41e60d(0x1e0)](_0x41e60d(0x4a4),null,_0x1d8498,_0xb441b0,!![]);}['_wrap'](_0xceca3f){const _0x4d3faa=_0x1ff339;return _0xceca3f?this[_0x4d3faa(0x709)]['engines'][_0x4d3faa(0x8b3)](_0xceca3f):null;}['registerEmbedderFactory'](_0x43ec3a,_0xb58d4f,_0x44a984={}){const _0x506ed5=_0x1ff339;if(typeof _0xb58d4f!==_0x506ed5(0x84a))throw new _0x22cd2b(_0x506ed5(0x574),_0x506ed5(0x917),{'name':_0x43ec3a});this[_0x506ed5(0x4f9)][_0x506ed5(0x8db)](_0x43ec3a,_0xb58d4f),this['_jsSchemas'][_0x506ed5(0x8db)](_0x43ec3a,_0x44a984);const _0x1554d3=this[_0x506ed5(0x709)],_0x5af6fd=_0x4ec5fd=>_0xb58d4f(_0x4ec5fd,_0x1554d3);_0x5af6fd[_0x506ed5(0x572)]=_0x1554d3,this['_n'](_0x506ed5(0x677),[_0x43ec3a,_0x5af6fd,_0x44a984??{}],![]);}[_0x1ff339(0x6ff)](_0x464f25){const _0x345ae6=_0x1ff339,_0x48f3fa=this[_0x345ae6(0x4f9)][_0x345ae6(0x341)](_0x464f25);if(_0x48f3fa)return _0x48f3fa;if(!this['_n'](_0x345ae6(0x1cf),[_0x464f25],![]))return null;const _0x2f7bd4=this;return(_0x21b824={})=>{const _0x4f1afb=_0x345ae6,_0x3307e6=_0x2f7bd4['_n']('embedderNew',[_0x464f25,_0x21b824],![]),_0x47327d=_0x2f7bd4['_n'](_0x4f1afb(0x4fa),[_0x3307e6],![]),_0x1440c3=(_0x513ea0,_0xb5baa5)=>_0x2f7bd4['_n'](_0x4f1afb(0x1e7),[_0x3307e6,_0x513ea0,_0xb5baa5],![]),_0x4c8813={'embed':async _0x57fa36=>Float32Array[_0x4f1afb(0x875)](_0x1440c3(_0x4f1afb(0x8e0),_0x57fa36)),'start':async()=>_0x1440c3(_0x4f1afb(0x8a9)),'stop':async()=>{const _0x4298a3=_0x4f1afb;_0x1440c3(_0x4298a3(0x61d)),_0x1440c3('free');}};if(_0x47327d)_0x4c8813[_0x4f1afb(0x2e8)]=async _0x54c8c6=>_0x1440c3(_0x4f1afb(0x2e8),_0x54c8c6)[_0x4f1afb(0x59f)](_0x107e43=>Float32Array[_0x4f1afb(0x875)](_0x107e43));return _0x4c8813;};}[_0x1ff339(0x345)](_0xfab9e5){const _0x59a54f=_0x1ff339;return this[_0x59a54f(0x806)][_0x59a54f(0x341)](_0xfab9e5)??this['_n']('getEmbedderSchema',[_0xfab9e5],![])??undefined;}[_0x1ff339(0x5e8)](_0x42094e,_0x26ccef,_0x32931d={}){const _0x13912a=_0x1ff339;if(typeof _0x26ccef!=='function')throw new _0x22cd2b(_0x13912a(0x53e),_0x13912a(0x917),{'name':_0x42094e});this['_n'](_0x13912a(0x5e8),[_0x42094e,(_0x39502a,_0x27de25)=>_0x26ccef(_0x39502a,_0x27de25),_0x32931d??{}],![]);}[_0x1ff339(0x8f9)](){const _0x2cdeb9=_0x1ff339;return this['_n'](_0x2cdeb9(0x8f9),[],![]);}['registerPreparer'](_0x45732e,_0x309903){const _0x3a311c=_0x1ff339;if(typeof _0x309903!==_0x3a311c(0x84a))throw new _0x22cd2b(_0x3a311c(0x73c),'BAD_PARAM',{'name':_0x45732e});this['_n'](_0x3a311c(0x654),[_0x45732e,_0x309903]);}[_0x1ff339(0x51f)](_0xac0e85,_0x2f5a6b){const _0x3f6987=_0x1ff339;if(typeof _0x2f5a6b!==_0x3f6987(0x84a))throw new _0x22cd2b(_0x3f6987(0x903),_0x3f6987(0x917),{'name':_0xac0e85});this['_n'](_0x3f6987(0x51f),[_0xac0e85,_0x2f5a6b]);}[_0x1ff339(0x557)](_0x172670){const _0x182cc2=_0x1ff339;if(_0x172670==null)return this['_n'](_0x182cc2(0x557),[null],![]);if(typeof _0x172670!==_0x182cc2(0x84a))throw new _0x22cd2b(_0x182cc2(0x90d),_0x182cc2(0x917));const _0x5c12ff=this[_0x182cc2(0x709)];this['_n'](_0x182cc2(0x557),[_0x48397a=>_0x172670(_0x48397a,_0x5c12ff)],![]);}async[_0x1ff339(0x65c)](_0x4ab0e4,_0x4a1eee={},_0x33b3fc={},_0xe0df3a=null){const _0x273c74=_0x1ff339;return this[_0x273c74(0x8b3)](await this[_0x273c74(0x686)](_0x273c74(0x65c),[_0x4ab0e4,_0x4a1eee,_0x33b3fc,_0xe0df3a]));}async[_0x1ff339(0x4f5)](_0x46733b,_0x4e643b={},_0x32ca99={}){const _0x5d6b89=_0x1ff339;return this[_0x5d6b89(0x8b3)](await this[_0x5d6b89(0x686)](_0x5d6b89(0x4f5),[_0x46733b,_0x4e643b,_0x32ca99]));}async['createSearch'](_0x4ea100,_0x4588c5={},_0x4473f7={}){const _0x3285e3=_0x1ff339;return this[_0x3285e3(0x8b3)](await this['_nm'](_0x3285e3(0x307),[_0x4ea100,_0x4588c5,_0x4473f7]));}async[_0x1ff339(0x62d)](_0x59c50a,_0x1594d3={},_0x1b59be={}){const _0x54f58c=_0x1ff339;return this[_0x54f58c(0x8b3)](await this[_0x54f58c(0x686)]('createWorker',[_0x59c50a,_0x1594d3,_0x1b59be]));}async[_0x1ff339(0x7c7)](_0x5e1efc,_0x529f01={},_0x508e6d={}){const _0x3bf809=_0x1ff339,_0x33a8cf=await this[_0x3bf809(0x686)](_0x3bf809(0x7c7),[_0x5e1efc,_0x529f01,_0x508e6d]);return{'embedder':this['_wrap'](_0x33a8cf['embedder']),'indexer':this[_0x3bf809(0x8b3)](_0x33a8cf['indexer']),'worker':this['_wrap'](_0x33a8cf[_0x3bf809(0x462)]),'search':this[_0x3bf809(0x8b3)](_0x33a8cf['search']),'api':this[_0x3bf809(0x42d)](_0x33a8cf[_0x3bf809(0x58b)],_0x33a8cf[_0x3bf809(0x42b)]['name'],_0x33a8cf[_0x3bf809(0x462)]?_0x33a8cf[_0x3bf809(0x462)][_0x3bf809(0x264)]:_0x33a8cf[_0x3bf809(0x58b)]+_0x3bf809(0x1ae))};}['_running'](_0x2a3149,_0x410ec0){const _0x2afb5d=_0x1ff339;return this[_0x2afb5d(0x709)]['engines'][_0x2afb5d(0x1ee)](_0x2a3149,_0x410ec0)?.[_0x2afb5d(0x8ed)]??null;}[_0x1ff339(0x42b)](_0x232a20){const _0x1bd546=_0x1ff339,_0x101483=this[_0x1bd546(0x5fd)](_0x2080ba[_0x1bd546(0x6b7)],_0x232a20);if(!_0x101483)return null;const _0x1631d6=this,_0x2073d7=_0x51045b=>Array['isArray'](_0x51045b)&&Array['isArray'](_0x51045b[0x0])?_0x51045b[_0x1bd546(0x59f)](_0x506cf5=>Float32Array[_0x1bd546(0x875)](_0x506cf5)):Float32Array[_0x1bd546(0x875)](_0x51045b);return new Proxy(_0x101483,{'get'(_0x1d2205,_0x13a994){const _0x30fda5=_0x1bd546;if(_0x13a994===_0x30fda5(0x6ea))return _0x1631d6[_0x30fda5(0x709)][_0x30fda5(0x4e8)](_0x30fda5(0x7ac),null,'apiCall',[_0x2080ba[_0x30fda5(0x6b7)],_0x232a20,'dims',[]],![])['value'];if(_0x13a994===_0x30fda5(0x8e0))return async _0x193362=>_0x2073d7(await _0x101483[_0x30fda5(0x8e0)](_0x193362));if(_0x13a994===_0x30fda5(0x2e8))return async _0x37cdeb=>(await _0x101483[_0x30fda5(0x2e8)](_0x37cdeb))[_0x30fda5(0x59f)](_0x1bc552=>Float32Array[_0x30fda5(0x875)](_0x1bc552));return _0x1d2205[_0x13a994];}});}[_0x1ff339(0x724)](_0x501c0f){const _0x6849e5=_0x1ff339;return this[_0x6849e5(0x5fd)](_0x2080ba[_0x6849e5(0x2ce)],_0x501c0f);}[_0x1ff339(0x462)](_0x155f6f){const _0x8528dd=_0x1ff339;return this[_0x8528dd(0x5fd)](_0x2080ba['WORKER'],_0x155f6f);}[_0x1ff339(0x92b)](_0x2e4286){const _0x4eb3da=_0x1ff339,_0x2621e4=this[_0x4eb3da(0x5fd)](_0x2080ba[_0x4eb3da(0x8ff)],_0x2e4286);if(_0x2621e4){const _0x543e00=_0x652a3b=>_0x307c86(_0x2e4286,async()=>_0x2621e4[_0x4eb3da(0x222)](),async()=>_0x2621e4[_0x4eb3da(0x7ad)](),_0x652a3b);return new Proxy(_0x2621e4,{'get':(_0x429f47,_0x21e24e)=>_0x21e24e==='ready'?_0x543e00:_0x429f47[_0x21e24e]});}return this[_0x4eb3da(0x57d)](_0x2e4286);}['_localViewApi'](_0x323f12){const _0x336018=_0x1ff339,_0x4d8f19=this;return{'search':(_0x247aaa,_0xbb8085={})=>_0x4d8f19[_0x336018(0x709)][_0x336018(0x1e0)](_0x336018(0x4a4),null,_0x336018(0x92b),[_0x323f12,_0x42be1a(_0x247aaa),_0xbb8085],![]),'stats':async()=>_0x4d8f19['_n'](_0x336018(0x504),[_0x323f12],![]),'count':()=>_0x4d8f19['_n'](_0x336018(0x34a),[_0x323f12,_0x336018(0x44b)],![]),'ready':_0x28fa7a=>_0x307c86(_0x323f12,async()=>_0x4d8f19['_n'](_0x336018(0x34a),[_0x323f12,_0x336018(0x222)],!![]),async()=>_0x4d8f19['_n'](_0x336018(0x504),[_0x323f12],!![]),_0x28fa7a)};}async['searchDocs'](_0x5444b7,_0x51c42b,_0x12911a={}){const _0x33cb8b=_0x1ff339,{limit:limit=0xa,..._0x5ed449}=_0x12911a;return this[_0x33cb8b(0x686)](_0x33cb8b(0x1fc),[_0x5444b7,_0x42be1a(_0x51c42b),{..._0x5ed449,'limit':limit}]);}['vectorSpace'](_0x531c70){return this['_n']('vectorSpace',[_0x531c70],![]);}[_0x1ff339(0x4d7)](_0x46d217,_0x52f404){const _0x5d8136=_0x1ff339;return this['_n'](_0x5d8136(0x419),[_0x46d217,_0x52f404],![]);}[_0x1ff339(0x85d)](_0x580aae){return this['_n']('durableEmbedderInfo',[_0x580aae],![]);}async['_durableIndexerStats'](_0xd0d72c){const _0xfabd23=_0x1ff339;return this['_n'](_0xfabd23(0x1b2),[_0xd0d72c],![]);}async['_durableIndexerDocs'](_0x14a467,_0x27d447={}){const _0xd0d5c9=_0x1ff339;return this['_n'](_0xd0d5c9(0x4a5),[_0x14a467,_0x27d447],![]);}async[_0x1ff339(0x597)](_0x5a07c7,_0x3586a0){const _0x299fa1=_0x1ff339;return this['_n'](_0x299fa1(0x3fe),[_0x5a07c7,_0x3586a0],![]);}async[_0x1ff339(0x3a7)](_0x3259cd,_0x1db9b0,_0x59125c,_0x43f037){const _0x1313ed=_0x1ff339;if(_0x3259cd!=null&&typeof _0x3259cd[_0x1313ed(0x566)]!==_0x1313ed(0x84a))throw _0x34d760(_0x1313ed(0x264),_0x1313ed(0x61c),_0x3259cd);if(!_0x3259cd||!_0x59125c)return null;return this['okdb']['_callMacro'](_0x1313ed(0x4a4),null,_0x1313ed(0x3a7),[_0x3259cd,_0x1db9b0,_0x59125c,_0x43f037??null],![]);}async[_0x1ff339(0x27a)](_0x3944a8,_0xc2c98b,_0x5469b9={}){const _0x68ca89=_0x1ff339,_0x1b0a25={..._0x5469b9};if(_0x1b0a25[_0x68ca89(0x8e1)])_0x1b0a25[_0x68ca89(0x8e1)]=Array['from'](_0x1b0a25[_0x68ca89(0x8e1)]);return this['_n'](_0x68ca89(0x27a),[_0x3944a8,_0xc2c98b,_0x1b0a25]);}async[_0x1ff339(0x61f)](_0x1c36b4,_0x4cb107,_0x41c61f,_0xaa10fd={}){const _0x3047b4=_0x1ff339;return this['_n'](_0x3047b4(0x61f),[_0x1c36b4,_0x4cb107,_0x41c61f,_0xaa10fd]);}async[_0x1ff339(0x230)](_0xa917a3,_0x552b3f){return this['_n']('durableMarkDelete',[_0xa917a3,_0x552b3f]);}async['durableRetryDoc'](_0x44aadb,_0xf88cd3){const _0x53c19c=_0x1ff339;return this['_n'](_0x53c19c(0x5e4),[_0x44aadb,_0xf88cd3]);}async['durableRetryFailed'](_0x201a91,_0x2e1ce4={}){return this['_n']('durableRetryFailed',[_0x201a91,_0x2e1ce4]);}async['durableRebuild'](_0x581123){const _0x2c2308=_0x1ff339;return this[_0x2c2308(0x686)]('durableRebuild',[_0x581123]);}async[_0x1ff339(0x6a3)](_0x46740c){return this['_n']('durableWorkerStats',[_0x46740c],![]);}[_0x1ff339(0x4d3)](_0x4aaee9){const _0x531059=_0x1ff339;return this['_n'](_0x531059(0x4d3),[_0x4aaee9],![]);}['listVectorStores'](){const _0x251535=_0x1ff339;return this['_n'](_0x251535(0x23b),[],![]);}[_0x1ff339(0x631)](_0x40a1e2,_0x23e4a1){const _0x9c8ae0=_0x1ff339,_0x16d94b=this['_n'](_0x9c8ae0(0x631),[_0x40a1e2,_0x23e4a1],![]);return _0x16d94b==null?null:Float32Array[_0x9c8ae0(0x875)](_0x16d94b);}[_0x1ff339(0x48e)](_0x50a106,_0x3abd2d){const _0x44b4d9=_0x1ff339;return this['_n'](_0x44b4d9(0x48e),[_0x50a106,_0x3abd2d??null],![])??undefined;}async[_0x1ff339(0x798)](_0x325a88,_0x3429b0,_0x4dc573,_0xa74865=''){const _0x4a4595=_0x1ff339;return this['_n'](_0x4a4595(0x798),[_0x325a88,_0x3429b0,_0x4dc573,_0xa74865]);}[_0x1ff339(0x4c4)](_0x40f934=null){const _0x4fae7f=_0x1ff339;return this['_n'](_0x4fae7f(0x4c4),[_0x40f934],![]);}[_0x1ff339(0x290)](){const _0x25c288=_0x1ff339;return this['_n'](_0x25c288(0x290),[],![]);}async[_0x1ff339(0x653)](_0x5f3d30,_0x1f4067){const _0x263ae3=_0x1ff339;return this['_n'](_0x263ae3(0x7aa),[_0x5f3d30,_0x1f4067],![]),this[_0x263ae3(0x709)]['_ensureEnv']('~'+_0x5f3d30+':emb:'+_0x1f4067);}async['_ensureVectorStore'](_0x1496e1,_0x349851){const _0x20c1a6=_0x1ff339;return await this[_0x20c1a6(0x653)](_0x1496e1,_0x349851),{'adapter':_0xeba925=>this['_makeLazyVectorAdapter'](_0x1496e1,_0x349851,_0xeba925)};}['_makeLazyVectorAdapter'](_0x291e9f,_0x55a7ed,_0x5bf99b){const _0x2148ee=this;return{async 'put'(_0x198741,_0x2088ea){const _0x3a4974=_0xf27e;return _0x2148ee['_n'](_0x3a4974(0x46c),[_0x291e9f,_0x55a7ed,_0x5bf99b,_0x198741,Array['from'](_0x2088ea)]);},async 'remove'(_0x36ba5e){const _0x1a6729=_0xf27e;return _0x2148ee['_n'](_0x1a6729(0x24d),[_0x291e9f,_0x55a7ed,_0x5bf99b,_0x36ba5e]);}};}get[_0x1ff339(0x851)](){const _0x5d2040=_0x1ff339,_0x191f3f=this,_0x247ce2=()=>_0x191f3f['_n'](_0x5d2040(0x7c2),[],![]),_0x4abb20=_0x20a936=>{const _0x383123=_0x5d2040,_0x1986d8=_0x517224=>_0x191f3f['_n'](_0x383123(0x34a),[_0x20a936,_0x517224],![]);return{'name':_0x20a936,'_evict':async()=>_0x1986d8(_0x383123(0x8d5)),'evict':async()=>_0x1986d8('evict'),'snapshot':async()=>_0x1986d8('snapshot'),'_snapshot':async()=>_0x1986d8(_0x383123(0x7e2)),'rebuild':async()=>_0x1986d8('rebuild'),'stats':()=>_0x1986d8(_0x383123(0x7ad)),get 'count'(){const _0x1776cb=_0x383123;return _0x1986d8(_0x1776cb(0x44b));},get 'loaded'(){const _0x136429=_0x383123;return _0x1986d8(_0x136429(0x275));}};};return{get 'size'(){const _0x532cd4=_0x5d2040;return _0x247ce2()[_0x532cd4(0x7e0)];},'has':_0x14a015=>_0x247ce2()[_0x5d2040(0x566)](_0x14a015),'get':_0x56fc81=>_0x247ce2()[_0x5d2040(0x566)](_0x56fc81)?_0x4abb20(_0x56fc81):undefined,'keys':()=>_0x247ce2()[Symbol[_0x5d2040(0x606)]](),'values':()=>_0x247ce2()[_0x5d2040(0x59f)](_0x4abb20)[Symbol[_0x5d2040(0x606)]](),[Symbol[_0x5d2040(0x606)]]:()=>_0x247ce2()[_0x5d2040(0x59f)](_0x8ebd38=>[_0x8ebd38,_0x4abb20(_0x8ebd38)])[Symbol[_0x5d2040(0x606)]]()};}async[_0x1ff339(0x8a9)](){}async['stop'](){const _0x3777df=_0x1ff339;this['_n'](_0x3777df(0x61d),[]);}[_0x1ff339(0x42d)](_0x2f915f,_0x323077,_0x34da87){const _0x4debff=_0x1ff339;return{'search':(_0x202152,_0x36e0f7={})=>{const _0x5588c9=_0xf27e,_0x3d1340=this[_0x5588c9(0x92b)](_0x2f915f);if(!_0x3d1340)throw new Error(_0x5588c9(0x88d)+_0x2f915f+'\x22');return _0x3d1340[_0x5588c9(0x92b)](_0x202152,_0x36e0f7);},'searchDocs':(_0x351747,_0x169eb3={})=>this[_0x4debff(0x1fc)](_0x2f915f,_0x351747,_0x169eb3),'flush':_0xab5e42=>{const _0x2a6b20=_0x4debff,_0x1ac864=this[_0x2a6b20(0x724)](_0x2f915f);if(!_0x1ac864)throw new Error(_0x2a6b20(0x884)+_0x2f915f+'\x22');return _0x1ac864['flush'](_0xab5e42);},'stats':async()=>({'embedder':await this[_0x4debff(0x42b)](_0x323077)?.['health']?.(),'indexer':await this[_0x4debff(0x724)](_0x2f915f)?.['stats']?.(),'worker':await this[_0x4debff(0x462)](_0x34da87)?.[_0x4debff(0x7ad)]?.(),'search':await this[_0x4debff(0x92b)](_0x2f915f)?.[_0x4debff(0x7ad)]?.()})};}}return embeddings={'OKDBEmbeddings':_0x50d200,'ENGINE_TYPES':_0x2080ba},embeddings;}var auth,hasRequiredAuth;function requireAuth(){const _0x2d5fe4=_0x7b0c8f;if(hasRequiredAuth)return auth;hasRequiredAuth=0x1;const {invalidArgument:_0x4f0e18}=requireErrors();class _0x462d77{constructor(_0x2f460b){this['okdb']=_0x2f460b;}['_n'](_0x29d273,_0x36c73d=[],_0x47c8bd=![]){const _0x31804d=_0xf27e;return this[_0x31804d(0x709)][_0x31804d(0x4e8)](_0x31804d(0x611),null,_0x29d273,_0x36c73d,_0x47c8bd);}[_0x2d5fe4(0x686)](_0x2f3ab5,_0x336161=[]){const _0x568ff0=_0x2d5fe4;return this[_0x568ff0(0x709)][_0x568ff0(0x1e0)](_0x568ff0(0x611),null,_0x2f3ab5,_0x336161,![]);}get[_0x2d5fe4(0x51a)](){return this['_n']('mode');}get[_0x2d5fe4(0x5e0)](){const _0x3148f3=_0x2d5fe4;return this['_n'](_0x3148f3(0x5e0));}get[_0x2d5fe4(0x76f)](){const _0x39605d=_0x2d5fe4;return this[_0x39605d(0x709)][_0x39605d(0x2c2)][_0x39605d(0x611)]?.[_0x39605d(0x8ee)]||{};}[_0x2d5fe4(0x86c)](_0x215407){const _0x2c70b5=_0x2d5fe4;return this['_n'](_0x2c70b5(0x86c),[_0x215407??null]);}[_0x2d5fe4(0x205)](_0x45ac09){return this['_n']('isOpenForIp',[_0x45ac09??null]);}[_0x2d5fe4(0x437)](_0x6a976b){const _0x3bb47c=_0x2d5fe4;return this['_n'](_0x3bb47c(0x442),[_0x6a976b??null]);}[_0x2d5fe4(0x5bf)](){const _0x20e5e7=_0x2d5fe4;return this['_n'](_0x20e5e7(0x410));}[_0x2d5fe4(0x7fc)](){const _0x416c13=_0x2d5fe4;return this['_n'](_0x416c13(0x7fc));}[_0x2d5fe4(0x5c2)](){const _0xcf2554=_0x2d5fe4;return this['_n'](_0xcf2554(0x5c2));}[_0x2d5fe4(0x8b6)](_0x1051c6){const _0x5077bc=_0x2d5fe4;return this['_n'](_0x5077bc(0x8b6),[_0x1051c6]);}[_0x2d5fe4(0x7f4)](_0x50f8e2){const _0x1d6cf7=_0x2d5fe4;return this['_n'](_0x1d6cf7(0x7f4),[_0x50f8e2]);}[_0x2d5fe4(0x480)](_0x59374c){const _0x55d68c=_0x2d5fe4;if(_0x59374c!=null&&typeof _0x59374c!==_0x55d68c(0x6d1))throw _0x4f0e18(_0x55d68c(0x874),_0x55d68c(0x61c),_0x59374c);return this['_n'](_0x55d68c(0x480),[_0x59374c??null]);}async[_0x2d5fe4(0x919)](){const _0x1fa79c=_0x2d5fe4;return this['_n'](_0x1fa79c(0x417),[],!![]);}async[_0x2d5fe4(0x5da)](_0x354899){const _0x5e9daf=_0x2d5fe4;return this['_n'](_0x5e9daf(0x27c),[_0x354899]);}async['_lookupByName'](_0x5d36d9){const _0x1832e9=_0x2d5fe4;return this['_n'](_0x1832e9(0x8d6),[_0x5d36d9]);}async[_0x2d5fe4(0x68b)](_0x4676c5){return this['_n']('lookupAllByName',[_0x4676c5]);}async[_0x2d5fe4(0x5eb)](_0x4a7e95){const _0x2e49fd=_0x2d5fe4,_0xc68fdc=_0x4a7e95?.[_0x2e49fd(0x1b8)]||{};return this['_n'](_0x2e49fd(0x5eb),[{'remoteAddress':_0x4a7e95[_0x2e49fd(0x45e)]?.[_0x2e49fd(0x5a8)]??null,'internal':_0x4a7e95?.[_0x2e49fd(0x4b5)]?.['internal']===!![],'authorization':_0xc68fdc[_0x2e49fd(0x409)]??null,'cookies':_0x4a7e95?.[_0x2e49fd(0x44f)]??{}}]);}async[_0x2d5fe4(0x888)](_0x542dda,_0x3208cd){const _0x45a60b=_0x2d5fe4;return this[_0x45a60b(0x686)](_0x45a60b(0x888),[_0x542dda??null,_0x3208cd??null]);}async[_0x2d5fe4(0x305)](_0x1134ae,_0x2d0aa7,_0x351225){const _0x5b4ff9=_0x2d5fe4;return this[_0x5b4ff9(0x686)](_0x5b4ff9(0x305),[_0x1134ae??null,_0x2d0aa7??null,_0x351225??null]);}[_0x2d5fe4(0x22f)](){return this['_n']('getSecurityNotices');}[_0x2d5fe4(0x4c3)](){const _0x5dc70f=_0x2d5fe4;return this['_n'](_0x5dc70f(0x4c3));}[_0x2d5fe4(0x6b9)](_0x120fae={},_0x5c4484=0x927c0){const _0x591f67=_0x2d5fe4;return this['_n'](_0x591f67(0x6b9),[_0x120fae,_0x5c4484]);}[_0x2d5fe4(0x900)](_0x40fac8){return this['_n']('consumeLoginState',[_0x40fac8]);}async[_0x2d5fe4(0x1e1)](_0x469f62,_0x53b556={}){const _0x25ea0f=_0x2d5fe4;return this[_0x25ea0f(0x686)](_0x25ea0f(0x4bd),[_0x469f62,_0x53b556]);}async[_0x2d5fe4(0x450)](_0x20b089={}){const _0x22f0bc=_0x2d5fe4;return this[_0x22f0bc(0x686)]('getOidcDiscovery',[_0x20b089]);}[_0x2d5fe4(0x243)](_0x2a24d2){const _0x543fcc=_0x2d5fe4;return this['_n'](_0x543fcc(0x323),[_0x2a24d2]);}}return auth={'OKDBAuth':_0x462d77},auth;}var sync,hasRequiredSync;function requireSync(){const _0x440ee4=_0x7b0c8f;if(hasRequiredSync)return sync;hasRequiredSync=0x1;const {RawDb:_0x57a274}=requireRawdb();class _0x351fd8{constructor(_0x327388){this['_s']=_0x327388;}get[_0x440ee4(0x1e4)](){const _0x265543=_0x440ee4;return this[_0x265543(0x79e)]||(this[_0x265543(0x79e)]=new _0x57a274(this['_s'][_0x265543(0x709)][_0x265543(0x6df)],_0x265543(0x678)));}[_0x440ee4(0x315)](){return this['_ackDb'];}[_0x440ee4(0x536)](){const _0x413353=_0x440ee4;return this[_0x413353(0x1e4)];}['_n'](_0x462a9b,_0x281fd6=[]){const _0x1f121f=_0x440ee4;return this['_s']['_n'](_0x1f121f(0x8d1)+_0x462a9b,_0x281fd6);}['recordPeerAck'](_0x21db2a,_0x25826d){const _0x27ad56=_0x440ee4;return this['_n'](_0x27ad56(0x4ec),[_0x21db2a,_0x25826d]);}async[_0x440ee4(0x89a)](_0x4bbe72){const _0x332ddb=_0x440ee4;return this['_n'](_0x332ddb(0x89a),[_0x4bbe72]);}['getPeerAcks'](){const _0x4984c5=_0x440ee4;return this['_n'](_0x4984c5(0x7c5));}[_0x440ee4(0x7f2)](_0x184e4e){const _0x127f67=_0x440ee4;return this['_n'](_0x127f67(0x7f2),[_0x184e4e]);}async['runGc'](){const _0x2dcd69=_0x440ee4;return this['_n'](_0x2dcd69(0x8cf));}['getStatus'](){const _0x54c2a6=_0x440ee4;return this['_n'](_0x54c2a6(0x3f9));}[_0x440ee4(0x8a9)](){const _0x1ba477=_0x440ee4;return this['_n'](_0x1ba477(0x8a9));}['stop'](){return this['_n']('stop');}get[_0x440ee4(0x2cd)](){const _0x35edeb=_0x440ee4;try{return this['_n'](_0x35edeb(0x1c4))?{}:null;}catch{return null;}}}class _0x1bff23{constructor(_0x30b888){const _0x5e2b7c=_0x440ee4;this['okdb']=_0x30b888,this['gc']=new _0x351fd8(this);const _0x5db03c=this;this['options']=new Proxy({},{'get':(_0x295c17,_0x63c2d1)=>typeof _0x63c2d1==='string'?_0x5db03c['_n'](_0x5e2b7c(0x2c2))[_0x63c2d1]:undefined,'set':(_0x26ff93,_0x16ada5,_0x5d8e51)=>{const _0x42debe=_0x5e2b7c;if(_0x16ada5===_0x42debe(0x779))_0x5db03c['_n']('setAddress',[_0x5d8e51??null]);else{if(_0x16ada5===_0x42debe(0x3b9))_0x5db03c['_n'](_0x42debe(0x2e4),[_0x5d8e51??null]);else{if(_0x16ada5===_0x42debe(0x8e2))_0x5db03c['_n'](_0x42debe(0x347),[_0x5d8e51]);}}return!![];},'ownKeys':()=>Object['keys'](_0x5db03c['_n'](_0x5e2b7c(0x2c2))),'getOwnPropertyDescriptor':(_0x374ccc,_0x136754)=>({'enumerable':!![],'configurable':!![],'value':_0x5db03c['_n']('options')[_0x136754]}),'has':(_0x581041,_0x10c3c7)=>_0x10c3c7 in _0x5db03c['_n'](_0x5e2b7c(0x2c2))});}['_n'](_0x32c2d1,_0xb48080=[],_0x235161=![]){const _0x2d5fe6=_0x440ee4;return this[_0x2d5fe6(0x709)][_0x2d5fe6(0x4e8)](_0x2d5fe6(0x7fd),null,_0x32c2d1,_0xb48080,_0x235161);}[_0x440ee4(0x686)](_0x4f7c3f,_0x27df04=[]){const _0x5141c6=_0x440ee4;return this[_0x5141c6(0x709)]['_callMacro']('sync',null,_0x4f7c3f,_0x27df04,!![]);}get[_0x440ee4(0x1d8)](){const _0x525162=_0x440ee4;return this[_0x525162(0x5cf)]||(this[_0x525162(0x5cf)]=new _0x57a274(this[_0x525162(0x709)]['_systemEnv'],_0x525162(0x595)));}[_0x440ee4(0x560)](){return this['_peerDb'];}get[_0x440ee4(0x767)](){const _0xcf274e=_0x440ee4;return this[_0xcf274e(0x885)]||(this[_0xcf274e(0x885)]=new(requireLock())[(_0xcf274e(0x398))](this[_0xcf274e(0x709)],_0xcf274e(0x392),_0xcf274e(0x7fd),{'ttlMs':0x7530}));}get[_0x440ee4(0x779)](){const _0x3e8955=_0x440ee4;return this['_n'](_0x3e8955(0x2c2))[_0x3e8955(0x779)];}get[_0x440ee4(0x7f5)](){const _0x50c177=_0x440ee4;return this[_0x50c177(0x709)][_0x50c177(0x588)]&&this['_n']('drives')?{}:null;}get['_pokeListener'](){const _0x4fc8f5=_0x440ee4;return this[_0x4fc8f5(0x7f5)];}get[_0x440ee4(0x6be)](){const _0x53c6a5=_0x440ee4;return this['_n'](_0x53c6a5(0x3bf))?.[_0x53c6a5(0x72a)];}get['_nodePublicKey'](){const _0x359dfb=_0x440ee4;return this['_n'](_0x359dfb(0x3bf))?.['publicKey'];}[_0x440ee4(0x809)](){const _0x4121f4=_0x440ee4;return this['_n'](_0x4121f4(0x809));}[_0x440ee4(0x8e7)](){const _0x2fd0d1=_0x440ee4;return this['_n'](_0x2fd0d1(0x8e7));}get[_0x440ee4(0x716)](){const _0x3e958e=_0x440ee4;return this[_0x3e958e(0x518)]||(()=>this['_n'](_0x3e958e(0x716)));}set[_0x440ee4(0x716)](_0x3df9f1){const _0x426ec3=_0x440ee4;this[_0x426ec3(0x518)]=typeof _0x3df9f1===_0x426ec3(0x84a)?_0x3df9f1:null,this['_n'](_0x426ec3(0x8f5),[this['__peers']]);}[_0x440ee4(0x43f)](){const _0x1aadbe=_0x440ee4;return this['_n'](_0x1aadbe(0x50a));}async[_0x440ee4(0x75f)](){const _0x38e22a=_0x440ee4;return this[_0x38e22a(0x686)]('reconcile');}async[_0x440ee4(0x493)](_0x1f7374){const _0x54e9cf=_0x440ee4;return this[_0x54e9cf(0x686)](_0x54e9cf(0x493),[_0x1f7374]);}async[_0x440ee4(0x830)](_0x580ac8,_0x387cf7={}){const _0x549e25=_0x440ee4;return this[_0x549e25(0x686)](_0x549e25(0x689),[_0x580ac8,_0x387cf7]);}['stop'](){const _0x48c3d2=_0x440ee4;return this['_n'](_0x48c3d2(0x61d));}['listLinks'](){const _0x53a172=_0x440ee4;return this['_n'](_0x53a172(0x475));}async[_0x440ee4(0x540)](_0x350c0d,_0x5b463e={}){return this['_n']('upsertLink',[_0x350c0d,_0x5b463e],!![]);}async[_0x440ee4(0x531)](_0x447ada){const _0x183212=_0x440ee4;return this['_n'](_0x183212(0x531),[_0x447ada],!![]);}[_0x440ee4(0x55b)](_0x4b2fed){const _0x40a56a=_0x440ee4;return this['_n'](_0x40a56a(0x926),[_0x4b2fed]);}['_getPeerState'](_0x1b3710){const _0x4076b3=_0x440ee4;return this['_n'](_0x4076b3(0x6f0),[_0x1b3710]);}async[_0x440ee4(0x691)](_0x75dcd1,_0x1725a7,_0x5e0504={}){const _0x561088=_0x440ee4;return this['_n'](_0x561088(0x416),[_0x75dcd1,_0x1725a7,_0x5e0504]);}async[_0x440ee4(0x500)](_0x512f47){const _0x38c45a=_0x440ee4;return this['_n'](_0x38c45a(0x2ee),[_0x512f47]);}async[_0x440ee4(0x600)](){const _0x25f77b=_0x440ee4;return this['_n'](_0x25f77b(0x6d6),[],!![]);}async['patchSelf'](_0x52e628){const _0x5b7f58=_0x440ee4;return this['_n'](_0x5b7f58(0x8a4),[_0x52e628],!![]);}async[_0x440ee4(0x1cc)](_0x36605b,_0x52b9f8={}){const _0x274720=_0x440ee4;return this[_0x274720(0x686)](_0x274720(0x1cc),[_0x36605b,_0x52b9f8]);}async['calculateDelta'](_0x4cd823={},_0xbae81c={}){const _0x3b3e31=_0x440ee4;return void _0x4cd823[_0x3b3e31(0x392)],this['_n']('calculateDelta',[_0x4cd823,_0xbae81c]);}async[_0x440ee4(0x259)](_0x2830c7,_0xe029f8,_0xaa3fa1,_0x34cb16){const _0x3568ad=_0x440ee4;return this[_0x3568ad(0x686)](_0x3568ad(0x259),[_0x2830c7,_0xe029f8,_0xaa3fa1,_0x34cb16??null]);}async[_0x440ee4(0x83b)](_0x6d43d3,_0x2031d5,_0x395841={}){const _0x3230b0=_0x440ee4;return this['_nm'](_0x3230b0(0x83b),[_0x6d43d3,_0x2031d5,_0x395841]);}[_0x440ee4(0x1f1)](_0x79e95c,_0xd48832=null){const _0x3e82da=_0x440ee4;return this['_n'](_0x3e82da(0x8eb),[_0x79e95c,_0xd48832?_0xd48832[_0x3e82da(0x264)]:null]);}[_0x440ee4(0x3ca)](_0x408b3f,_0x4e2adc=null){const _0xaad25a=_0x440ee4;return this['_n'](_0xaad25a(0x3ca),[_0x408b3f,_0x4e2adc?_0x4e2adc['name']:null],!![]);}}return sync={'OKDBSync':_0x1bff23},sync;}var migrate,hasRequiredMigrate;function requireMigrate(){const _0x90dd49=_0x7b0c8f;if(hasRequiredMigrate)return migrate;hasRequiredMigrate=0x1;const {optionsArg:_0x5c9b29}=requireErrors(),_0x2fb60e=require$$0,_0x1b6cd9=require$$4,_0x32bc11=0x40*0x400;async function _0xda9dc(_0x2c6bb9,_0x44336a){const _0x30e65d=_0xf27e;for(let _0x22106c=0x0;_0x22106c<_0x44336a[_0x30e65d(0x7e0)];){let _0x1e079a=Math[_0x30e65d(0x644)](_0x44336a['length'],_0x22106c+_0x32bc11);if(_0x1e079a<_0x44336a['length']){const _0x23b6ec=_0x44336a[_0x30e65d(0x89b)](0xa,_0x1e079a-0x1);_0x1e079a=_0x23b6ec===-0x1?_0x44336a[_0x30e65d(0x7e0)]:_0x23b6ec+0x1;}const _0x588803=_0x2c6bb9[_0x30e65d(0x248)](_0x44336a[_0x30e65d(0x5d1)](_0x22106c,_0x1e079a));_0x22106c=_0x1e079a;if(!_0x588803)await new Promise(_0x39ee52=>_0x2c6bb9[_0x30e65d(0x2bd)](_0x30e65d(0x62f),_0x39ee52));await new Promise(_0x208504=>setImmediate(_0x208504));}}async function _0x529d94(_0x9d8c40){const _0x3debb6=_0xf27e,_0x557d2d=[];for await(const _0x11f2cb of _0x9d8c40)_0x557d2d['push'](Buffer[_0x3debb6(0x5d9)](_0x11f2cb)?_0x11f2cb:Buffer[_0x3debb6(0x875)](_0x11f2cb,_0x3debb6(0x2d4)));return Buffer[_0x3debb6(0x522)](_0x557d2d);}class _0x2b0319{constructor(_0x3b4d1b){this['okdb']=_0x3b4d1b;}['_n'](_0x45ab0c,_0x2222b6){const _0x86821f=_0xf27e;return this[_0x86821f(0x709)][_0x86821f(0x4e8)]('migrate',null,_0x45ab0c,_0x2222b6,!![]);}async['exportToStream'](_0x16a317,_0x1890e3={}){const _0x18afa7=_0xf27e,{data:_0x2803a3,stats:_0x18beb5}=this['_n'](_0x18afa7(0x241),[_0x1890e3]);return await _0xda9dc(_0x16a317,Buffer[_0x18afa7(0x875)](_0x2803a3)),_0x18beb5;}async[_0x90dd49(0x548)](_0xd5490a,_0xe443a7={}){const _0xa30d8b=_0x90dd49;_0x2fb60e['mkdirSync'](_0x1b6cd9[_0xa30d8b(0x593)](_0xd5490a),{'recursive':!![]});const _0x4f1d03=_0x2fb60e['createWriteStream'](_0xd5490a),_0x5b615f=await this[_0xa30d8b(0x913)](_0x4f1d03,_0xe443a7);return await new Promise((_0x3b2687,_0x226695)=>{const _0xbe06c8=_0xa30d8b;_0x4f1d03[_0xbe06c8(0x402)](),_0x4f1d03[_0xbe06c8(0x2bd)](_0xbe06c8(0x55e),_0x3b2687),_0x4f1d03[_0xbe06c8(0x2bd)]('error',_0x226695);}),{..._0x5b615f,'filePath':_0xd5490a};}async[_0x90dd49(0x780)](_0x59e00c,_0x4e635a={}){const _0x11f2d7=_0x90dd49,{data:_0x57223e,stats:_0x139932}=this['_n'](_0x11f2d7(0x76c),[_0x4e635a]);return await _0xda9dc(_0x59e00c,Buffer[_0x11f2d7(0x875)](_0x57223e)),_0x139932;}async[_0x90dd49(0x387)](_0x3c4e0d,_0x29aa71={}){const _0x158f3a=_0x90dd49,_0x4ac530=await _0x529d94(_0x3c4e0d),{onProgress:_0x117431,..._0x1f4aa6}=_0x29aa71,_0x37c60a=this['_n'](_0x158f3a(0x7a6),[_0x4ac530,_0x1f4aa6]);if(typeof _0x117431===_0x158f3a(0x84a))_0x117431({'type':null,'count':_0x37c60a[_0x158f3a(0x912)]});return _0x37c60a;}async[_0x90dd49(0x656)](_0x14b95e,_0x124470={}){const _0x13723f=_0x90dd49;return this[_0x13723f(0x387)](_0x2fb60e[_0x13723f(0x889)](_0x14b95e,{'encoding':_0x13723f(0x2d4)}),_0x124470);}async['backup'](_0x74d75c,_0x424e19={}){return this['_n']('backup',[_0x74d75c,_0x424e19]);}[_0x90dd49(0x25c)](){const _0x556a52=_0x90dd49;return this['_n'](_0x556a52(0x25c),[]);}[_0x90dd49(0x502)](_0x5f030f){const _0x444666=_0x90dd49;return this['_n'](_0x444666(0x502),[_0x5f030f??null]);}async['export'](_0x8be3a6={}){const _0xb1482=_0x90dd49;return this['_n'](_0xb1482(0x85f),[_0x8be3a6]);}async[_0x90dd49(0x2b9)](_0xf53dc6,_0x54c180={}){const _0x53daba=_0x90dd49;return this['_n'](_0x53daba(0x2b9),[_0xf53dc6,_0x54c180]);}async[_0x90dd49(0x828)](_0x4f18fb){const _0x2b3337=_0x90dd49,{pretty:pretty=![]}=_0x5c9b29(_0x4f18fb);return JSON[_0x2b3337(0x7af)](await this[_0x2b3337(0x85f)](),null,pretty?0x2:0x0);}async[_0x90dd49(0x81b)](_0x4cfced){const _0x287ef7=_0x90dd49;return this['import'](JSON[_0x287ef7(0x70e)](_0x4cfced));}[_0x90dd49(0x38a)](){const _0x8b5ca1=_0x90dd49;if(!this['okdb'][_0x8b5ca1(0x4b1)]['get']('default')?.['files'])throw new Error(_0x8b5ca1(0x361));}async[_0x90dd49(0x4ad)](_0x2447db){const _0x34a3a0=_0x90dd49;return this['_assertFiles'](),this['_n'](_0x34a3a0(0x4ad),[_0x2447db]);}async[_0x90dd49(0x639)](_0xcc06e){const _0x3e2046=_0x90dd49;return this[_0x3e2046(0x38a)](),this['_n']('importBlobs',[_0xcc06e]);}[_0x90dd49(0x506)](){const _0x3efe1b=_0x90dd49;return this['_n'](_0x3efe1b(0x6c5),[])[_0x3efe1b(0x59f)](_0x33fbf5=>this[_0x3efe1b(0x709)]['env'](_0x33fbf5));}async[_0x90dd49(0x256)](){const _0x24a967=_0x90dd49;return this[_0x24a967(0x38a)](),this['_n'](_0x24a967(0x256),[]);}async[_0x90dd49(0x271)](){const _0x332732=_0x90dd49;return this[_0x332732(0x38a)](),this['_n']('repairBlobRefs',[]);}}return migrate={'OKDBMigrate':_0x2b0319},migrate;}var mcp,hasRequiredMcp;function requireMcp(){const _0x445132=_0x7b0c8f;if(hasRequiredMcp)return mcp;hasRequiredMcp=0x1;class _0x197d01{constructor(_0x577efb){const _0x15b50f=_0xf27e;this[_0x15b50f(0x709)]=_0x577efb,this[_0x15b50f(0x66a)]=new Map();}['_n'](_0x516e7f,_0x5edf23){const _0x480e31=_0xf27e;try{return this[_0x480e31(0x709)]['_call'](_0x480e31(0x3cc),null,_0x516e7f,_0x5edf23,!![]);}catch(_0x30ed83){if(_0x30ed83&&_0x30ed83[_0x480e31(0x5c5)]===_0x480e31(0x58a)&&_0x30ed83[_0x480e31(0x33f)]){if(_0x30ed83[_0x480e31(0x33f)][_0x480e31(0x6c6)]!==undefined)_0x30ed83[_0x480e31(0x6c6)]=_0x30ed83['details'][_0x480e31(0x6c6)];_0x30ed83[_0x480e31(0x33f)]=_0x30ed83['details'][_0x480e31(0x33f)],_0x30ed83[_0x480e31(0x5c5)]=undefined;}throw _0x30ed83;}}[_0x445132(0x496)](){const _0x2eca8f=_0x445132;return this['_n'](_0x2eca8f(0x7ef),[]);}async[_0x445132(0x4e8)](_0x2147bf,_0x4639cc={}){const _0x356718=_0x445132;return this['_n'](_0x356718(0x352),[_0x2147bf??null,_0x4639cc??{}]);}async['_handle'](_0x3867f0,_0x307206={}){const _0x219bac=_0x445132;return this['_n'](_0x219bac(0x41e),[_0x3867f0,_0x307206??{}]);}[_0x445132(0x643)](_0x2c6e79){const _0x3c1c33=_0x445132;return this['_n'](_0x3c1c33(0x4cf),[_0x2c6e79??null]);}}return mcp={'OKDBMcp':_0x197d01},mcp;}var sys,hasRequiredSys;function requireSys(){const _0x32ef31=_0x7b0c8f;if(hasRequiredSys)return sys;hasRequiredSys=0x1;function _0x33d263(_0x34ad42,_0x45cc2c,_0x16a22f){const _0x20457e=_0xf27e,_0x1d160c={};for(const [_0x4632f9,_0x3c8820]of Object[_0x20457e(0x565)](_0x16a22f)){_0x1d160c[_0x4632f9]=_0x3c8820==='async'?async(..._0x1ff825)=>_0x34ad42[_0x20457e(0x4e8)](_0x45cc2c,null,_0x4632f9,_0x1ff825):(..._0x3a1dc5)=>_0x34ad42['_call'](_0x45cc2c,null,_0x4632f9,_0x3a1dc5,![]);}return _0x1d160c;}const _0x4634b2=[_0x32ef31(0x1df),_0x32ef31(0x562),_0x32ef31(0x463),_0x32ef31(0x1bd),_0x32ef31(0x4e0),'isIndex',_0x32ef31(0x2c9),_0x32ef31(0x245),_0x32ef31(0x389),_0x32ef31(0x5c3),_0x32ef31(0x8ba),'describeTypeDetailed',_0x32ef31(0x3f5),_0x32ef31(0x1b9),_0x32ef31(0x1d3),_0x32ef31(0x2cf),_0x32ef31(0x6b3),_0x32ef31(0x1ed),_0x32ef31(0x70c),'recomputeFields',_0x32ef31(0x6a9)],_0x865fca={'add':_0x32ef31(0x2cb),'activate':_0x32ef31(0x2cb),'remove':_0x32ef31(0x2cb),'list':_0x32ef31(0x7fd),'get':'sync','effective':_0x32ef31(0x7fd)},_0x216d8f={'open':_0x32ef31(0x2cb),'register':_0x32ef31(0x2cb),'buildOwnRow':'sync','_buildProcessingFacet':_0x32ef31(0x7fd),'reportThreadStats':_0x32ef31(0x7fd),'clearThreadStats':_0x32ef31(0x7fd),'emitProc':'sync','addSupervisedChild':_0x32ef31(0x2cb),'removeSupervisedChild':_0x32ef31(0x7fd),'updateSupervisedChildStats':_0x32ef31(0x7fd),'publishChildRow':_0x32ef31(0x2cb),'putNode':_0x32ef31(0x2cb),'removeNode':_0x32ef31(0x2cb),'nodeDead':_0x32ef31(0x7fd),'listNodes':_0x32ef31(0x7fd),'reap':_0x32ef31(0x2cb),'publishOwnRow':_0x32ef31(0x2cb),'deregisterSelf':'async','setOwnMeta':_0x32ef31(0x7fd),'noteListenAddr':_0x32ef31(0x7fd),'hasDesired':_0x32ef31(0x7fd),'getDesired':_0x32ef31(0x7fd),'setDesired':_0x32ef31(0x2cb),'listDesired':_0x32ef31(0x7fd),'getCmd':'sync','bumpCmd':'async','processingStatusView':'sync','processorsView':_0x32ef31(0x7fd),'clusterStatusView':_0x32ef31(0x7fd),'nodesView':_0x32ef31(0x7fd),'treeView':_0x32ef31(0x7fd),'getProcess':'sync','runtimeProcessesView':_0x32ef31(0x7fd)};function _0x25acee(_0x1aad13){const _0x38870f=_0x32ef31,_0x31aa25={},_0x2bd75d=_0x304545=>_0x304545&&typeof _0x304545===_0x38870f(0x81a)&&!Array[_0x38870f(0x239)](_0x304545)&&typeof _0x304545[_0x38870f(0x264)]===_0x38870f(0x6d1)?_0x304545[_0x38870f(0x264)]:_0x304545;for(const _0x197748 of _0x4634b2)_0x31aa25[_0x197748]=_0x197748==='recomputeFields'?async(..._0x4bf3e3)=>_0x1aad13[_0x38870f(0x4e8)]('meta',null,_0x197748,_0x4bf3e3[_0x38870f(0x59f)](_0x2bd75d),!![]):(..._0x441161)=>_0x1aad13[_0x38870f(0x4e8)]('meta',null,_0x197748,_0x441161[_0x38870f(0x59f)](_0x2bd75d),![]);return _0x31aa25;}function _0xbae645(_0x1ae9cf){const _0xaa5fef=_0x32ef31,_0x3c6160=_0x33d263(_0x1ae9cf,_0xaa5fef(0x50f),_0x865fca);return _0x3c6160;}function _0x292343(_0xfafe12){const _0x461a58=_0x32ef31,_0x1980de=()=>_0xfafe12[_0x461a58(0x50f)][_0x461a58(0x5aa)](),_0x398d55=_0x1cb271=>_0x1cb271[_0x461a58(0x582)]?{..._0x1cb271,'_isFree':!![]}:_0x1cb271;return{async 'addLicense'(_0x340a1b){const _0x31115d=_0x461a58;return _0xfafe12[_0x31115d(0x50f)][_0x31115d(0x737)](_0x340a1b);},async 'reload'(){},async 'recheck'(){},get 'active'(){const _0x87dce3=_0x461a58,_0x5e0408=_0x1980de();return _0x5e0408[_0x87dce3(0x582)]?null:_0x5e0408;},get 'effective'(){return _0x398d55(_0x1980de());},'hasLimit'(_0x3238a6){const _0x25d15d=_0x461a58,_0x5b8223=_0x1980de();if(!_0x5b8223[_0x25d15d(0x5f4)])return![];const _0xbc8958=_0x5b8223['limits']?.[_0x3238a6];return!(_0xbc8958===null||_0xbc8958===undefined||_0xbc8958===0x0);},'isFeatureEnabled'(_0x5be6cd){const _0x2d585f=_0x461a58,_0xc244d0=_0x1980de();return!_0xc244d0['enforced']||!!_0xc244d0[_0x2d585f(0x7ee)]?.[_0x5be6cd];},'assertFeature'(_0x38227f){const _0x2ed724=_0x461a58,_0x878c14=_0x1980de();if(!_0x878c14[_0x2ed724(0x5f4)]||_0x878c14[_0x2ed724(0x7ee)]?.[_0x38227f])return;const {OKDBError:_0x7be024}=requireErrors(),_0x3b9135=_0x878c14[_0x2ed724(0x582)]?'Feature\x20not\x20available\x20on\x20free\x20tier:\x20'+_0x38227f+_0x2ed724(0x311)+_0x38227f+'\x22\x20to\x20enable\x20it.':_0x2ed724(0x6d7)+_0x38227f+_0x2ed724(0x707)+_0x38227f+'\x22.';throw new _0x7be024(_0x3b9135,_0x2ed724(0x2f9),{'feature':_0x38227f});},'assertLimit'(_0x26e891,_0x475ef3){const _0x1b1101=_0x461a58,_0x390f3c=_0x1980de();if(!_0x390f3c[_0x1b1101(0x5f4)])return;const _0xc3db0f=_0x390f3c['limits']?.[_0x26e891];if(_0xc3db0f===null||_0xc3db0f===undefined||_0xc3db0f===0x0)return;if(_0x475ef3>=_0xc3db0f){const {OKDBError:_0x59c24b}=requireErrors();throw new _0x59c24b(_0x1b1101(0x48c)+_0x26e891+'\x20('+_0x475ef3+'/'+_0xc3db0f+')',_0x1b1101(0x6bc),{'limit':_0x26e891,'current':_0x475ef3,'max':_0xc3db0f});}},'listLicenses'(){const _0x23e564=_0x461a58;return _0xfafe12[_0x23e564(0x50f)][_0x23e564(0x7a7)]();},'getPins'(){const _0x1701d3=_0x461a58;return _0xfafe12[_0x1701d3(0x50f)][_0x1701d3(0x7a7)]()[_0x1701d3(0x59f)](_0x8b1d19=>({'licenseId':_0x8b1d19['id'],'pin':_0x8b1d19[_0x1701d3(0x326)]===_0x1701d3(0x22d)?null:_0x8b1d19[_0x1701d3(0x44a)]}));}};}function _0x1453dc(_0x36dd68){const _0x2350d2=_0x32ef31,_0x1fb77f=_0x33d263(_0x36dd68,_0x2350d2(0x2dd),_0x216d8f);Object[_0x2350d2(0x1fb)](_0x1fb77f,_0x2350d2(0x69a),{'get':()=>_0x36dd68['_call'](_0x2350d2(0x2dd),null,'selfKey',[],![])}),Object[_0x2350d2(0x1fb)](_0x1fb77f,'rowKey',{'get':()=>_0x36dd68[_0x2350d2(0x4e8)](_0x2350d2(0x2dd),null,_0x2350d2(0x772),[],![])}),_0x1fb77f[_0x2350d2(0x376)]=null;const _0xbd0c6f=_0x1fb77f[_0x2350d2(0x920)];_0x1fb77f[_0x2350d2(0x920)]=_0x16eb7a=>{const _0x5514ca=_0x2350d2;return _0x1fb77f[_0x5514ca(0x376)]=_0x16eb7a,_0xbd0c6f(_0x16eb7a);};const _0x47f28d=()=>_0x1fb77f[_0x2350d2(0x1c6)]()[_0x2350d2(0x59f)](_0xb81003=>({'key':_0xb81003[_0x2350d2(0x895)],'value':_0xb81003,'version':0x1})),_0x530c2a={'name':_0x2350d2(0x568),'_sync':![],'_isOpen':!![],'isProcessStore':!![],'hasType':_0x2c35a6=>_0x2c35a6===_0x2350d2(0x4f3),'getRange':_0x340413=>_0x340413===_0x2350d2(0x4f3)?_0x47f28d()[Symbol[_0x2350d2(0x606)]]():[][Symbol[_0x2350d2(0x606)]](),'getKeys':_0x2b41ab=>_0x2b41ab===_0x2350d2(0x4f3)?_0x47f28d()[_0x2350d2(0x59f)](_0x4d9052=>_0x4d9052[_0x2350d2(0x8cd)])[Symbol['iterator']]():[][Symbol[_0x2350d2(0x606)]](),'getValues':_0x509dea=>_0x509dea===_0x2350d2(0x4f3)?_0x47f28d()[_0x2350d2(0x59f)](_0x1031a0=>_0x1031a0[_0x2350d2(0x59b)])[Symbol['iterator']]():[][Symbol[_0x2350d2(0x606)]](),'get':(_0x3555e1,_0x75bd97)=>_0x3555e1==='node'?_0x47f28d()[_0x2350d2(0x4dd)](_0x424d44=>_0x424d44[_0x2350d2(0x8cd)]===_0x75bd97)?.[_0x2350d2(0x59b)]:undefined,'getCount':_0x1589b7=>_0x1589b7===_0x2350d2(0x4f3)?_0x47f28d()[_0x2350d2(0x7e0)]:0x0};Object['defineProperty'](_0x1fb77f,_0x2350d2(0x843),{'get':()=>_0x36dd68[_0x2350d2(0x4e8)](_0x2350d2(0x2dd),null,_0x2350d2(0x5de),[],![])?_0x530c2a:null});const _0x524778=_0x1fb77f[_0x2350d2(0x22d)];_0x1fb77f[_0x2350d2(0x22d)]=async _0x2ac9ca=>{const _0x1a7903=_0x2350d2;return await _0x524778(_0x2ac9ca),_0x1fb77f[_0x1a7903(0x843)];},_0x1fb77f[_0x2350d2(0x2c8)]=()=>_0x36dd68[_0x2350d2(0x4e8)](_0x2350d2(0x2dd),null,_0x2350d2(0x6d5),[],!![]);const {RawDb:_0xffeafb}=requireRawdb();return Object[_0x2350d2(0x1fb)](_0x1fb77f,_0x2350d2(0x22e),{'get':()=>_0x36dd68[_0x2350d2(0x6df)]?_0x1fb77f[_0x2350d2(0x3e8)]||=new _0xffeafb(_0x36dd68[_0x2350d2(0x6df)],_0x2350d2(0x346)):undefined}),Object[_0x2350d2(0x1fb)](_0x1fb77f,_0x2350d2(0x320),{'get':()=>_0x36dd68['_systemEnv']?_0x1fb77f[_0x2350d2(0x26f)]||=new _0xffeafb(_0x36dd68[_0x2350d2(0x6df)],_0x2350d2(0x7f3)):undefined}),_0x1fb77f[_0x2350d2(0x242)]=()=>_0x36dd68['_call']('processes',null,_0x2350d2(0x242),[],![]),Object['defineProperty'](_0x1fb77f,_0x2350d2(0x3b5),{'get':()=>_0x36dd68[_0x2350d2(0x4e8)](_0x2350d2(0x2dd),null,_0x2350d2(0x312),[],![])}),Object[_0x2350d2(0x1fb)](_0x1fb77f,_0x2350d2(0x8fb),{'get':()=>_0x36dd68[_0x2350d2(0x4e8)](_0x2350d2(0x2dd),null,_0x2350d2(0x2ba),[],![])}),_0x1fb77f[_0x2350d2(0x793)]=()=>_0x36dd68[_0x2350d2(0x4e8)](_0x2350d2(0x2dd),null,'buildOwnRow',[],![]),_0x1fb77f['_emitProc']=(_0x3bd69e,_0xad6a07)=>_0x36dd68['_call'](_0x2350d2(0x2dd),null,_0x2350d2(0x8e6),[_0x3bd69e,_0xad6a07],![]),_0x1fb77f;}return sys={'makeMeta':_0x25acee,'makeLicenses':_0xbae645,'makeLicenseChecker':_0x292343,'makeProcesses':_0x1453dc},sys;}var okdbLogger,hasRequiredOkdbLogger;function requireOkdbLogger(){const _0x25bc06=_0x7b0c8f;if(hasRequiredOkdbLogger)return okdbLogger;hasRequiredOkdbLogger=0x1;const _0x149921={'debug':0xa,'info':0x14,'warn':0x1e,'error':0x28};class _0x311903{constructor(_0x3b9d22){const _0x4e79fd=_0xf27e;this['okdb']=_0x3b9d22,this[_0x4e79fd(0x71d)]=new Set(),this['_meta']={};}[_0x25bc06(0x6d8)](_0x298fb7){const _0x2bbe8f=_0x25bc06,_0x18a792=new _0x311903(this['okdb']);return _0x18a792['_sinks']=this[_0x2bbe8f(0x71d)],_0x18a792['_meta']={...this['_meta'],..._0x298fb7},_0x18a792;}[_0x25bc06(0x821)](_0x2078a1){const _0x42db12=_0x25bc06;return this[_0x42db12(0x71d)][_0x42db12(0x737)](_0x2078a1),()=>this[_0x42db12(0x71d)][_0x42db12(0x610)](_0x2078a1);}['attachConsole'](){const _0x50d3dd=_0x25bc06,_0x249316=_0x149921[process.env.OKDB_LOG_LEVEL]??_0x149921[_0x50d3dd(0x809)];return this[_0x50d3dd(0x2d5)]=this[_0x50d3dd(0x821)](({level:_0x3d0720,msg:_0x40e5f4,meta:_0x144c2e,context:_0x886368,ts:_0x22e5ad})=>{const _0x4fd598=_0x50d3dd;if((_0x149921[_0x3d0720]??_0x149921[_0x4fd598(0x809)])<_0x249316)return;if(_0x144c2e?.[_0x4fd598(0x8ad)]===_0x4fd598(0x3ba)&&(_0x3d0720===_0x4fd598(0x809)||_0x3d0720===_0x4fd598(0x420)))return;const _0x522d84=_0x3d0720===_0x4fd598(0x292)?console[_0x4fd598(0x292)]:_0x3d0720===_0x4fd598(0x573)?console[_0x4fd598(0x573)]:_0x3d0720==='info'?console[_0x4fd598(0x809)]:console['log'],_0x21b4a7=_0x144c2e&&Object[_0x4fd598(0x88a)](_0x144c2e)['length']>0x0;_0x21b4a7||_0x886368!==undefined?_0x522d84(new Date(_0x22e5ad)[_0x4fd598(0x699)](),_0x40e5f4,..._0x21b4a7?[_0x144c2e]:[],..._0x886368!==undefined?[_0x886368]:[]):_0x522d84(new Date(_0x22e5ad)[_0x4fd598(0x699)](),_0x40e5f4);}),this[_0x50d3dd(0x2d5)];}['detachConsole'](){const _0x3cfa6c=_0x25bc06;this[_0x3cfa6c(0x2d5)]&&(this['_detachConsole'](),this[_0x3cfa6c(0x2d5)]=null);}[_0x25bc06(0x1f0)](_0x4a3c05,_0x454680){const _0x2300b9=require$$0$4,_0xe7d6ae=0x1f4,_0x431640=Number(process.env.OKDB_LOG_FLUSH_MS)||0x3e8;let _0x2aac83=[],_0x133ec8=0x0,_0x35638c=null;const _0x2f7ec7=()=>{const _0x37cbf4=_0xf27e;_0x35638c=null;if(_0x2aac83['length']===0x0)return;const _0x104939=_0x2aac83;_0x2aac83=[],_0x133ec8>0x0&&(_0x104939[_0x37cbf4(0x247)]({'ts':Date['now'](),'level':_0x37cbf4(0x573),'msg':_0x37cbf4(0x27f)+_0x133ec8+_0x37cbf4(0x508)+(_0x133ec8===0x1?'y':'ies')+_0x37cbf4(0x718),'feature':_0x37cbf4(0x5a7),'node':_0x454680,'context':null}),_0x133ec8=0x0),_0x4a3c05[_0x37cbf4(0x715)](_0x125a73=>{const _0x53b722=_0x37cbf4;for(const _0x359ec7 of _0x104939)_0x125a73[_0x53b722(0x4a2)](_0x53b722(0x21b),_0x2300b9[_0x53b722(0x5e3)](),_0x359ec7);})[_0x37cbf4(0x909)](()=>{});},_0x4553d3=this['attach'](({level:_0x4137af,msg:_0x5c9fcc,meta:_0x238e31,context:_0x388ab2,ts:_0x1d660d})=>{const _0x51a0ff=_0xf27e;if(_0x4137af===_0x51a0ff(0x420))return;_0x2aac83[_0x51a0ff(0x7e0)]>=_0xe7d6ae&&(_0x133ec8++,_0x2aac83[_0x51a0ff(0x249)]()),_0x2aac83[_0x51a0ff(0x247)]({'ts':_0x1d660d,'level':_0x4137af,'msg':_0x5c9fcc,'feature':_0x238e31?.['feature']??_0x238e31?.[_0x51a0ff(0x3bb)]??null,'node':_0x454680,'context':_0x388ab2??null}),!_0x35638c&&(_0x35638c=setTimeout(_0x2f7ec7,_0x431640),_0x35638c[_0x51a0ff(0x32d)]?.());});return()=>{_0x4553d3();if(_0x35638c)clearTimeout(_0x35638c);_0x2f7ec7();};}['_emit'](_0x3ee233,_0x5d716a,_0x531953){const _0x244e30=_0x25bc06;_0x5d716a instanceof Error&&(_0x531953={'message':_0x5d716a[_0x244e30(0x63a)],'stack':_0x5d716a['stack'],..._0x531953},_0x5d716a=_0x5d716a[_0x244e30(0x63a)]);const _0x319882={'level':_0x3ee233,'msg':_0x5d716a,'meta':{...this[_0x244e30(0x83e)]},'context':_0x531953,'ts':Date['now']()};try{this[_0x244e30(0x709)][_0x244e30(0x4a6)]['emit']('log',_0x319882);}catch{}for(const _0x4ee8a1 of this['_sinks']){try{_0x4ee8a1(_0x319882);}catch{}}}['ingest'](_0x558760){const _0xe2f054=_0x25bc06;try{this[_0xe2f054(0x709)]?.['events']?.[_0xe2f054(0x224)]('log',_0x558760);}catch{}for(const _0xfce9eb of this[_0xe2f054(0x71d)]){try{_0xfce9eb(_0x558760);}catch{}}}[_0x25bc06(0x809)](_0x636521,_0x1f3741){const _0xe2c4a7=_0x25bc06;this['_emit'](_0xe2c4a7(0x809),_0x636521,_0x1f3741);}['warn'](_0x58b803,_0x2a4312){const _0x52d087=_0x25bc06;this[_0x52d087(0x4db)](_0x52d087(0x573),_0x58b803,_0x2a4312);}[_0x25bc06(0x292)](_0x16e1fe,_0x55b24d){this['_emit']('error',_0x16e1fe,_0x55b24d);}[_0x25bc06(0x420)](_0xaeac2b,_0x6c46ba){const _0xb086a5=_0x25bc06;this[_0xb086a5(0x4db)](_0xb086a5(0x420),_0xaeac2b,_0x6c46ba);}}return okdbLogger=_0x311903,okdbLogger;}var okdbPlugins,hasRequiredOkdbPlugins;function requireOkdbPlugins(){const _0x5ca8b4=_0x7b0c8f;if(hasRequiredOkdbPlugins)return okdbPlugins;hasRequiredOkdbPlugins=0x1;const {OKDB_STATE:_0x37580a}=requireOkdbEnums(),{OKDBError:_0x4f3a2f}=requireOkdbError();class _0x52ce0f{constructor(_0x515026){const _0x5a881f=_0xf27e;this[_0x5a881f(0x709)]=_0x515026,this[_0x5a881f(0x7bb)]=[];}[_0x5ca8b4(0x269)](_0x2ad68e,_0x29864e){const _0x54c09c=_0x5ca8b4;if(this[_0x54c09c(0x709)]['state']!==_0x37580a['CREATED'])throw new _0x4f3a2f(_0x54c09c(0x773),_0x54c09c(0x490),{'state':this[_0x54c09c(0x709)][_0x54c09c(0x613)]});if(!_0x2ad68e[_0x54c09c(0x264)])throw new _0x4f3a2f(_0x54c09c(0x25d),'BAD_PLUGIN',{'plugin':_0x2ad68e[_0x54c09c(0x264)]});const _0x1b6f6d=_0x2ad68e['requires']??[];for(const _0x2c2a9b of _0x1b6f6d){if(!this[_0x54c09c(0x7bb)][_0x54c09c(0x543)](_0xa04061=>_0xa04061[_0x54c09c(0x3bb)]['name']===_0x2c2a9b))throw new _0x4f3a2f(_0x54c09c(0x460)+_0x2c2a9b+_0x54c09c(0x49a)+_0x2ad68e[_0x54c09c(0x264)]+')',_0x54c09c(0x453),{'required':_0x2c2a9b});}if(this[_0x54c09c(0x7bb)][_0x54c09c(0x4dd)](_0x337f05=>_0x337f05['module'][_0x54c09c(0x264)]===_0x2ad68e[_0x54c09c(0x264)]))throw new _0x4f3a2f(_0x54c09c(0x659)+_0x2ad68e[_0x54c09c(0x264)]+'\x27\x20already\x20registered',_0x54c09c(0x7fe),{'plugin':_0x2ad68e[_0x54c09c(0x264)]});if(_0x2ad68e[_0x54c09c(0x264)]in this[_0x54c09c(0x709)])throw new _0x4f3a2f('Plugin\x20name\x20\x27'+_0x2ad68e[_0x54c09c(0x264)]+_0x54c09c(0x236),_0x54c09c(0x44e));const _0x98c747=_0x2ad68e[_0x54c09c(0x269)](this[_0x54c09c(0x709)],_0x29864e);if(!_0x98c747||typeof _0x98c747!=='object')throw new _0x4f3a2f(_0x54c09c(0x659)+_0x2ad68e[_0x54c09c(0x264)]+_0x54c09c(0x549),_0x54c09c(0x7c3),{'plugin':_0x2ad68e[_0x54c09c(0x264)]});this[_0x54c09c(0x7bb)][_0x54c09c(0x247)]({'module':_0x2ad68e,'options':_0x29864e,'instance':_0x98c747});}[_0x5ca8b4(0x432)]=[];async['start'](){const _0x261292=_0x5ca8b4;try{for(const _0x1395ef of this['_plugins']){await _0x1395ef['instance']['start']?.(this[_0x261292(0x709)]),this[_0x261292(0x432)][_0x261292(0x247)](_0x1395ef);}}catch(_0x412dcf){await this['stop']()[_0x261292(0x909)](()=>{});throw _0x412dcf;}}async[_0x5ca8b4(0x61d)](){const _0x4e7766=_0x5ca8b4,_0x9ea6be=this[_0x4e7766(0x432)][_0x4e7766(0x2d8)]();this[_0x4e7766(0x432)]=[];let _0x34eee0=null;for(const _0x530cf4 of _0x9ea6be){try{await _0x530cf4[_0x4e7766(0x426)][_0x4e7766(0x61d)]?.(this[_0x4e7766(0x709)]);}catch(_0x2231d7){_0x34eee0??=_0x2231d7;}}if(_0x34eee0)throw _0x34eee0;}}return okdbPlugins=_0x52ce0f,okdbPlugins;}var statics,hasRequiredStatics;function requireStatics(){const _0x3f793d=_0x7b0c8f;if(hasRequiredStatics)return statics;hasRequiredStatics=0x1;const _0x2f6fbe={'maxDbs':0x400,'pageSize':0x1000,'compression':!![],'encryptionKey':undefined,'mapSize':0x100000000,'durability':'balanced'},_0x2463d9=new Set([_0x3f793d(0x216),_0x3f793d(0x1e5),'compression',_0x3f793d(0x567),_0x3f793d(0x28a),'mapSize','durability','allowUnsafe',_0x3f793d(0x73d),_0x3f793d(0x611),_0x3f793d(0x7fd),_0x3f793d(0x5d2),'functions',_0x3f793d(0x72b),_0x3f793d(0x3cc),_0x3f793d(0x808),_0x3f793d(0x5a7),_0x3f793d(0x3a6),_0x3f793d(0x33d),_0x3f793d(0x7ac),_0x3f793d(0x3f3),_0x3f793d(0x575),_0x3f793d(0x2dd),_0x3f793d(0x37a),_0x3f793d(0x8ed),_0x3f793d(0x62b),_0x3f793d(0x3c6),_0x3f793d(0x420),_0x3f793d(0x7ec),_0x3f793d(0x399)]),_0x16b8bd={'http':_0x3f793d(0x533)};return statics={'defaults':_0x2f6fbe,'KNOWN_OPTIONS':_0x2463d9,'_OPTION_HINTS':_0x16b8bd},statics;}var licenseConfig,hasRequiredLicenseConfig;function requireLicenseConfig(){const _0x4d7111=_0x7b0c8f;if(hasRequiredLicenseConfig)return licenseConfig;hasRequiredLicenseConfig=0x1;const _0x2c9266=require$$0$2,_0x56583a=_0x4d7111(0x3c1),_0x2f2a0a=_0x2c9266[_0x4d7111(0x833)](_0x4d7111(0x8c3))['update'](_0x2c9266[_0x4d7111(0x287)](_0x56583a)[_0x4d7111(0x85f)]({'type':_0x4d7111(0x1cd),'format':_0x4d7111(0x78e)}))[_0x4d7111(0x4b3)](_0x4d7111(0x91e))[_0x4d7111(0x836)](0x0,0x10),_0x6a0376={'LICENSED_BUILD':_0x4d7111(0x334),'PUBLIC_KEY_PEM':_0x56583a,'PUB_FINGERPRINT':_0x2f2a0a,'LICENSE_EXPIRED_ACTION':_0x4d7111(0x5a7)};return licenseConfig={'_C':_0x6a0376,'PUBLIC_KEY_PEM':_0x56583a,'PUB_FINGERPRINT':_0x2f2a0a},licenseConfig;}var okdbSubscriptionsStore={'exports':{}},okdbQueryFilter,hasRequiredOkdbQueryFilter;function requireOkdbQueryFilter(){const _0x3a45c5=_0x7b0c8f;if(hasRequiredOkdbQueryFilter)return okdbQueryFilter;hasRequiredOkdbQueryFilter=0x1;const _0x348738=require$$0$5,{OKDBError:_0x44937b}=requireOkdbError(),_0x5d37b8=[_0x3a45c5(0x2a3),'$ne',_0x3a45c5(0x771),_0x3a45c5(0x408),_0x3a45c5(0x3c9),_0x3a45c5(0x1fe),_0x3a45c5(0x534),_0x3a45c5(0x7e4),'$exists',_0x3a45c5(0x5ea),_0x3a45c5(0x1b3),_0x3a45c5(0x879),_0x3a45c5(0x40e),_0x3a45c5(0x7dc),_0x3a45c5(0x8f7),'$elemMatch',_0x3a45c5(0x83f),_0x3a45c5(0x48a),_0x3a45c5(0x80a),_0x3a45c5(0x45f)],_0x2f4bb8=[_0x3a45c5(0x7cc)];function _0x11cbf1(_0x566f33){return()=>{const _0x47b257=_0xf27e,_0x219ce1=new _0x44937b(_0x47b257(0x6fb)+_0x566f33+_0x47b257(0x7e9),_0x47b257(0x832),{'operator':_0x566f33});_0x219ce1['status']=0x190;throw _0x219ce1;};}const _0x4b12ba=Object['freeze']({...Object['fromEntries'](_0x5d37b8[_0x3a45c5(0x59f)](_0x266f12=>[_0x266f12,_0x348738[_0x266f12]])),...Object[_0x3a45c5(0x424)](_0x2f4bb8[_0x3a45c5(0x59f)](_0x39a8dc=>[_0x39a8dc,_0x11cbf1(_0x39a8dc)]))});function _0x34c58b(_0xb6f955){const _0x287902=_0x3a45c5;return _0x348738[_0x287902(0x532)](_0xb6f955,{'operations':_0x4b12ba});}function _0x1894d9(_0x8cb40a){const _0x2ee0f4=_0x3a45c5;if(_0x8cb40a==null)return;try{_0x34c58b(_0x8cb40a);}catch(_0x22be62){if(_0x22be62?.['code']===_0x2ee0f4(0x832))throw _0x22be62;}}return okdbQueryFilter={'compileFilter':_0x34c58b,'assertFilterAllowed':_0x1894d9,'ALLOWED_OPERATORS':_0x5d37b8,'FORBIDDEN_OPERATORS':_0x2f4bb8},okdbQueryFilter;}var okdbEnvRefs,hasRequiredOkdbEnvRefs;function requireOkdbEnvRefs(){const _0x4afa87=_0x7b0c8f;if(hasRequiredOkdbEnvRefs)return okdbEnvRefs;hasRequiredOkdbEnvRefs=0x1;const {CHANGE_ACTIONS:_0x332dc9,EVENTS:_0x294d3f}=requireOkdbEnums(),{OKDBError:_0x17b4d9,OKDBForeignKeyDeleteError:_0x147128}=requireOkdbError(),_0x214e9b=_0x4afa87(0x8ac),_0x36520f=new Set([_0x4afa87(0x6f4),_0x4afa87(0x60b),_0x4afa87(0x219),_0x4afa87(0x3ab)]);function _0x4c6341(_0x4dcbda,_0x270df8){if(_0x4dcbda==null||!_0x270df8)return undefined;const _0x216a76=_0x270df8['split']('.');let _0x29fadc=_0x4dcbda;for(const _0x4e81bb of _0x216a76){if(_0x29fadc==null||typeof _0x29fadc!=='object'||!(_0x4e81bb in _0x29fadc))return undefined;_0x29fadc=_0x29fadc[_0x4e81bb];}return _0x29fadc;}function _0x1fb14a(_0x38f14d,_0x57f051,_0x27f321){const _0x9a8f7c=_0x4afa87,_0x5dde4a=_0x57f051[_0x9a8f7c(0x927)]('.'),_0x2dcc90={..._0x38f14d};let _0x50197f=_0x2dcc90;for(let _0x19fc64=0x0;_0x19fc64<_0x5dde4a[_0x9a8f7c(0x7e0)]-0x1;_0x19fc64++){_0x50197f[_0x5dde4a[_0x19fc64]]=_0x50197f[_0x5dde4a[_0x19fc64]]!=null?{..._0x50197f[_0x5dde4a[_0x19fc64]]}:{},_0x50197f=_0x50197f[_0x5dde4a[_0x19fc64]];}return _0x50197f[_0x5dde4a[_0x5dde4a[_0x9a8f7c(0x7e0)]-0x1]]=_0x27f321,_0x2dcc90;}function _0x51f658(_0x42c5f2,_0x47ba69,_0x10b3fa,_0xc0bc5c,_0x4ffa2a){return[_0x42c5f2,_0x47ba69,_0x10b3fa,_0xc0bc5c,_0x4ffa2a];}function _0x2cb48a(_0x1702db){const _0x5059fa=_0x4afa87;return typeof _0x1702db===_0x5059fa(0x6d1)||typeof _0x1702db===_0x5059fa(0x645);}function _0x377c4a(_0x9977e4,_0x3b0c29){return JSON['stringify']([_0x9977e4,_0x3b0c29]);}function*_0x3daaee(_0x262853,_0x16c9a5,_0x1405e5){const _0x5c0657=_0x4afa87,_0x58c66d=_0x1405e5!==undefined;for(const {key:_0x46b845}of _0x262853['getRange']({'start':_0x58c66d?[_0x16c9a5,_0x1405e5]:[_0x16c9a5]})){if(!Array[_0x5c0657(0x239)](_0x46b845))continue;if(_0x46b845[0x0]!==_0x16c9a5||_0x58c66d&&_0x46b845[0x1]!==_0x1405e5)break;yield _0x46b845;}}function _0x11a967(_0x6315c2,_0x52b285='',_0x40a79a=null){const _0x3e71e3=_0x4afa87,_0x2f0005=[];if(!_0x6315c2||typeof _0x6315c2!==_0x3e71e3(0x81a))return _0x2f0005;if(!_0x40a79a)_0x40a79a=_0x6315c2;if(_0x6315c2[_0x3e71e3(0x91a)]){const _0x57a900=_0x6315c2['$ref'][_0x3e71e3(0x79d)](/^#\/\$defs\/(.+)$/);if(_0x57a900&&_0x40a79a?.['$defs']?.[_0x57a900[0x1]])return _0x11a967(_0x40a79a['$defs'][_0x57a900[0x1]],_0x52b285,_0x40a79a);return _0x2f0005;}if(_0x6315c2['ref']&&typeof _0x6315c2[_0x3e71e3(0x303)]===_0x3e71e3(0x81a)&&_0x6315c2[_0x3e71e3(0x303)][_0x3e71e3(0x326)]){const _0x4eceef=_0x6315c2[_0x3e71e3(0x303)][_0x3e71e3(0x8c5)]||'no_action';if(!_0x36520f[_0x3e71e3(0x5ed)](_0x4eceef))throw new _0x17b4d9(_0x3e71e3(0x6a7)+_0x4eceef+'\x27\x20at\x20'+(_0x52b285||'root')+_0x3e71e3(0x577)+[..._0x36520f][_0x3e71e3(0x1cc)](',\x20'),_0x3e71e3(0x8df));_0x2f0005[_0x3e71e3(0x247)]({'fieldPath':_0x52b285,'targetType':_0x6315c2[_0x3e71e3(0x303)][_0x3e71e3(0x326)],'onDelete':_0x4eceef});}if(_0x6315c2[_0x3e71e3(0x22b)])for(const [_0x3cb61c,_0x5c1695]of Object[_0x3e71e3(0x565)](_0x6315c2[_0x3e71e3(0x22b)])){const _0x3be4e9=_0x52b285?_0x52b285+'.'+_0x3cb61c:_0x3cb61c;_0x2f0005[_0x3e71e3(0x247)](..._0x11a967(_0x5c1695,_0x3be4e9,_0x40a79a));}return _0x2f0005;}function _0x287ba2(_0x333a02){const _0x5ce1a8=_0x4afa87,_0x459911=new Map(),_0x5019d3=new Map();for(const _0x4a8d27 of _0x333a02[_0x5ce1a8(0x64f)]()){if(_0x4a8d27['startsWith']('~'))continue;const _0x225654=_0x333a02[_0x5ce1a8(0x68a)][_0x5ce1a8(0x341)](_0x4a8d27);if(!_0x225654?.['schema']?.[_0x5ce1a8(0x21e)])continue;let _0x761e11;try{_0x761e11=_0x11a967(_0x225654[_0x5ce1a8(0x295)]['definition']);}catch{continue;}if(_0x761e11[_0x5ce1a8(0x7e0)]>0x0){_0x459911[_0x5ce1a8(0x8db)](_0x4a8d27,_0x761e11);for(const _0x5b537e of _0x761e11){if(!_0x5019d3[_0x5ce1a8(0x5ed)](_0x5b537e[_0x5ce1a8(0x296)]))_0x5019d3[_0x5ce1a8(0x8db)](_0x5b537e[_0x5ce1a8(0x296)],[]);_0x5019d3[_0x5ce1a8(0x341)](_0x5b537e[_0x5ce1a8(0x296)])[_0x5ce1a8(0x247)]({'sourceType':_0x4a8d27,'fieldPath':_0x5b537e[_0x5ce1a8(0x7a9)],'onDelete':_0x5b537e[_0x5ce1a8(0x8c5)]});}}}_0x333a02[_0x5ce1a8(0x5fc)]={'outgoing':_0x459911,'incoming':_0x5019d3};if(_0x459911['size']>0x0)_0x2794c8(_0x333a02);}function _0x581d64(_0xc81cdd,_0x41f468){const _0x5bfbea=_0x4afa87;return _0xc81cdd[_0x5bfbea(0x5fc)][_0x5bfbea(0x2de)][_0x5bfbea(0x341)](_0x41f468)||[];}function _0x502674(_0x551f44,_0x4d403d){const _0x16cf7f=_0x4afa87;return _0x551f44[_0x16cf7f(0x5fc)]['incoming'][_0x16cf7f(0x341)](_0x4d403d)||[];}function _0x2794c8(_0x46932f){const _0x295b8a=_0x4afa87;if(_0x46932f[_0x295b8a(0x507)])return _0x46932f[_0x295b8a(0x507)];return _0x46932f[_0x295b8a(0x507)]=_0x46932f['db'][_0x295b8a(0x68e)](_0x295b8a(0x837),{'dupSort':![]}),_0x46932f[_0x295b8a(0x507)];}function _0x4fd755(_0x1551d0,_0xbd4bae,_0x1d3e7,_0x4d098e,_0x5fd1d9){const _0x58c1ba=_0x4afa87,_0x376eeb=_0x581d64(_0x1551d0,_0xbd4bae);if(_0x376eeb['length']===0x0)return;const _0x1401e1=_0x2794c8(_0x1551d0);for(const _0x1ab9ee of _0x376eeb){const _0x2af8da=_0x5fd1d9!=null?_0x4c6341(_0x5fd1d9,_0x1ab9ee['fieldPath']):undefined,_0x189c08=_0x4d098e!=null?_0x4c6341(_0x4d098e,_0x1ab9ee[_0x58c1ba(0x7a9)]):undefined;if(_0x2af8da===_0x189c08)continue;_0x2cb48a(_0x2af8da)&&_0x1401e1[_0x58c1ba(0x1fd)](_0x51f658(_0x1ab9ee[_0x58c1ba(0x296)],_0x2af8da,_0xbd4bae,_0x1d3e7,_0x1ab9ee['fieldPath'])),_0x2cb48a(_0x189c08)&&_0x1401e1['putSync'](_0x51f658(_0x1ab9ee[_0x58c1ba(0x296)],_0x189c08,_0xbd4bae,_0x1d3e7,_0x1ab9ee[_0x58c1ba(0x7a9)]),0x1);}}function _0x2c9662(_0x343876,_0x51ebd1,_0x39f3a1,_0x19de87){const _0x23bfcf=_0x4afa87,_0xa27607=_0x581d64(_0x343876,_0x51ebd1);if(_0xa27607[_0x23bfcf(0x7e0)]===0x0)return;const _0x12366a=_0x2794c8(_0x343876);for(const _0x15c983 of _0xa27607){const _0x18aff1=_0x19de87!=null?_0x4c6341(_0x19de87,_0x15c983[_0x23bfcf(0x7a9)]):undefined;_0x2cb48a(_0x18aff1)&&_0x12366a['removeSync'](_0x51f658(_0x15c983['targetType'],_0x18aff1,_0x51ebd1,_0x39f3a1,_0x15c983[_0x23bfcf(0x7a9)]));}}function _0x469b81(_0x192682,_0x108816,_0x220fc0,_0x3fdf81){const _0x3b6886=_0x4afa87,_0x138668=_0x581d64(_0x192682,_0x108816);if(_0x138668['length']===0x0)return[];const _0x14d279=[];for(const _0x32238e of _0x138668){const _0x6862d0=_0x4c6341(_0x3fdf81,_0x32238e['fieldPath']);if(_0x6862d0==null)continue;if(!_0x192682[_0x3b6886(0x863)](_0x32238e[_0x3b6886(0x296)])){_0x14d279[_0x3b6886(0x247)]({'fieldPath':_0x32238e[_0x3b6886(0x7a9)],'targetType':_0x32238e[_0x3b6886(0x296)],'targetKey':_0x6862d0,'message':_0x3b6886(0x7b0)+_0x32238e['targetType']+_0x3b6886(0x702)});continue;}const _0x3d4ec9=_0x192682[_0x3b6886(0x286)](_0x32238e['targetType'])[_0x3b6886(0x7f1)];!_0x3d4ec9['doesExist'](_0x6862d0)&&_0x14d279[_0x3b6886(0x247)]({'fieldPath':_0x32238e[_0x3b6886(0x7a9)],'targetType':_0x32238e[_0x3b6886(0x296)],'targetKey':_0x6862d0,'message':'Referenced\x20key\x20\x27'+_0x6862d0+_0x3b6886(0x8f8)+_0x32238e['targetType']+'\x27'});}return _0x14d279;}function _0x2786f3(_0x1c19d0,_0x35912d,_0x576186,_0x27b17f,_0xd1d515,{timestamp:_0x560858,origin:_0x551b3b,_cascadeVisited:_0x5e841e}){const _0x304145=_0x4afa87,_0x32a3ca=_0x502674(_0x1c19d0,_0x576186);if(_0x32a3ca[_0x304145(0x7e0)]===0x0)return;const _0x51f37f=_0x2794c8(_0x1c19d0),_0x2e28af=[];for(const [,,_0x571c44,_0x54a21d,_0x3774e3]of _0x3daaee(_0x51f37f,_0x576186,_0x27b17f)){_0x2e28af[_0x304145(0x247)]({'sourceType':_0x571c44,'sourceKey':_0x54a21d,'fieldPath':_0x3774e3});}if(_0x2e28af[_0x304145(0x7e0)]===0x0)return;for(const _0x2599bc of _0x2e28af){const _0x3c88af=_0x32a3ca[_0x304145(0x4dd)](_0x5409fe=>_0x5409fe[_0x304145(0x782)]===_0x2599bc[_0x304145(0x782)]&&_0x5409fe['fieldPath']===_0x2599bc['fieldPath']),_0x16db84=_0x3c88af?.[_0x304145(0x8c5)]||'no_action';switch(_0x16db84){case _0x304145(0x3ab):{if(_0x551b3b===null)throw new _0x147128(_0x576186,_0x27b17f,_0x2e28af[_0x304145(0x4bf)](_0xfcd44=>{const _0x396dd5=_0x304145,_0x4903ea=_0x32a3ca[_0x396dd5(0x4dd)](_0x4b2627=>_0x4b2627[_0x396dd5(0x782)]===_0xfcd44['sourceType']&&_0x4b2627[_0x396dd5(0x7a9)]===_0xfcd44['fieldPath']);return(_0x4903ea?.['onDelete']||'no_action')===_0x396dd5(0x3ab);}));break;}case'cascade':{const _0x1adc18=_0x377c4a(_0x2599bc[_0x304145(0x782)],_0x2599bc[_0x304145(0x1e3)]);if(_0x5e841e['has'](_0x1adc18))continue;_0x1c19d0[_0x304145(0x286)](_0x2599bc['sourceType'])[_0x304145(0x7f1)][_0x304145(0x31c)](_0x2599bc[_0x304145(0x1e3)])&&_0x1c19d0[_0x304145(0x69e)](_0x35912d,_0x2599bc[_0x304145(0x782)],_0x2599bc[_0x304145(0x1e3)],{'timestamp':_0x560858,'origin':_0x551b3b,'_cascadeVisited':_0x5e841e});break;}case _0x304145(0x219):{const _0x28673e=_0x1c19d0[_0x304145(0x286)](_0x2599bc['sourceType'])[_0x304145(0x7f1)],_0x4024c0=_0x28673e[_0x304145(0x4c9)](_0x2599bc[_0x304145(0x1e3)]);if(_0x4024c0){const _0x326ddc=_0x1fb14a(_0x4024c0[_0x304145(0x59b)],_0x2599bc['fieldPath'],null);_0x1c19d0[_0x304145(0x7ae)](_0x35912d,'put',_0x2599bc[_0x304145(0x782)],_0x2599bc[_0x304145(0x1e3)],_0x326ddc,{'timestamp':_0x560858,'origin':_0x551b3b,'_cascading':!![]});}break;}}}}function _0x4c3c20(_0x1a36d2){const _0x3d5ded=_0x4afa87;!_0x1a36d2[_0x3d5ded(0x863)](_0x214e9b)&&_0x1a36d2['_registerType'](_0x214e9b);}function _0x5ad395(_0x116fee,_0x2001ab,_0x401ad1,_0x274413,_0x5f2886,_0x180f73,_0x4d070f,{timestamp:timestamp=Date[_0x4afa87(0x274)](),origin:origin=null}={}){const _0x5cef85=_0x4afa87;_0x4c3c20(_0x116fee);const _0x30c3b6=_0x401ad1+'@'+_0x274413+'@'+_0x5f2886,_0x52ec49={'sourceType':_0x401ad1,'sourceKey':_0x274413,'fieldPath':_0x5f2886,'targetType':_0x180f73,'targetKey':_0x4d070f,'timestamp':timestamp,'origin':origin},_0x512902=_0x116fee['_getType'](_0x214e9b)['data'],_0x3e38e3=_0x512902['getEntry'](_0x30c3b6),_0x278422=_0x3e38e3?_0x3e38e3['version']+0x1:0x1;_0x512902[_0x5cef85(0x8d7)](_0x30c3b6,_0x52ec49,_0x278422),_0x116fee[_0x5cef85(0x3df)]({'id':'item:'+_0x214e9b+'@'+_0x30c3b6,'type':_0x214e9b,'key':_0x30c3b6,'action':_0x332dc9['PUT'],'timestamp':timestamp,'txnId':_0x2001ab?.['id'],'origin':origin},_0x3e38e3?.[_0x5cef85(0x59b)],_0x52ec49),_0x116fee['events'][_0x5cef85(0x224)](_0x294d3f[_0x5cef85(0x5b4)],{'sourceType':_0x401ad1,'sourceKey':_0x274413,'fieldPath':_0x5f2886,'targetType':_0x180f73,'targetKey':_0x4d070f,'env':_0x116fee[_0x5cef85(0x264)]});}function _0x4b5401(_0x2a1f12,_0x6e449,_0x5a3ae7,_0x40e6a8,_0x2b8673,{timestamp:timestamp=Date[_0x4afa87(0x274)](),origin:origin=null}={}){const _0x244362=_0x4afa87;if(!_0x2a1f12[_0x244362(0x863)](_0x214e9b))return;const _0x2acd8f=_0x5a3ae7+'@'+_0x40e6a8+'@'+_0x2b8673,_0x1c38d1=_0x2a1f12[_0x244362(0x286)](_0x214e9b)['data'],_0x34ac88=_0x1c38d1[_0x244362(0x4c9)](_0x2acd8f);if(!_0x34ac88)return;_0x1c38d1['removeSync'](_0x2acd8f),_0x2a1f12['_logChange']({'id':_0x244362(0x30a)+_0x214e9b+'@'+_0x2acd8f,'type':_0x214e9b,'key':_0x2acd8f,'action':_0x332dc9['REMOVE'],'timestamp':timestamp,'txnId':_0x6e449?.['id'],'origin':origin},_0x34ac88[_0x244362(0x59b)],undefined),_0x2a1f12['events']['emit'](_0x294d3f[_0x244362(0x6dc)],{'sourceType':_0x5a3ae7,'sourceKey':_0x40e6a8,'fieldPath':_0x2b8673,'env':_0x2a1f12[_0x244362(0x264)]});}function _0x5b42f7(_0x43b4dc,_0x21a02e,_0x9525ba,_0x53afb5,_0x4d0790={}){const _0x432e9f=_0x4afa87;if(!_0x43b4dc[_0x432e9f(0x863)](_0x214e9b))return;const _0x5bce97=_0x43b4dc[_0x432e9f(0x286)](_0x214e9b)['data'],_0x3f7fa1=_0x9525ba+'@'+_0x53afb5+'@',_0x4ba2e4=[];for(const {key:_0x36c27b,value:_0x51c5fc}of _0x5bce97[_0x432e9f(0x498)]({'start':_0x3f7fa1,'end':_0x3f7fa1+'\uffff'})){if(_0x51c5fc?.['sourceType']===_0x9525ba&&_0x51c5fc?.[_0x432e9f(0x1e3)]===_0x53afb5)_0x4ba2e4[_0x432e9f(0x247)](_0x36c27b);}for(const _0x2b3a78 of _0x4ba2e4){const _0x1816fa=_0x5bce97[_0x432e9f(0x4c9)](_0x2b3a78);if(!_0x1816fa)continue;_0x5bce97[_0x432e9f(0x1fd)](_0x2b3a78),_0x43b4dc['_logChange']({'id':_0x432e9f(0x30a)+_0x214e9b+'@'+_0x2b3a78,'type':_0x214e9b,'key':_0x2b3a78,'action':_0x332dc9['REMOVE'],'timestamp':_0x4d0790[_0x432e9f(0x664)]||Date[_0x432e9f(0x274)](),'txnId':_0x21a02e?.['id'],'origin':_0x4d0790[_0x432e9f(0x439)]},_0x1816fa[_0x432e9f(0x59b)],undefined);}}function _0xcaf1a1(_0x57edf8,_0x2f995b){const _0x3d4f0b=_0x4afa87;if(!_0x57edf8[_0x3d4f0b(0x863)](_0x214e9b))return;const _0x1968a4=_0x57edf8[_0x3d4f0b(0x286)](_0x214e9b)[_0x3d4f0b(0x7f1)],_0x5f5d12=_0x2f995b+'@',_0x4575bf=[];for(const {key:_0x5035cf,value:_0x4d4b35}of _0x1968a4[_0x3d4f0b(0x498)]({'start':_0x5f5d12,'end':_0x5f5d12+'\uffff'})){if(_0x4d4b35?.[_0x3d4f0b(0x782)]===_0x2f995b)_0x4575bf['push'](_0x5035cf);}for(const _0x29387b of _0x4575bf)_0x1968a4[_0x3d4f0b(0x1fd)](_0x29387b);}async function _0x53b796(_0x1dcad9,_0x5af726){const _0x333184=_0x4afa87,_0x5ddbbc=_0x581d64(_0x1dcad9,_0x5af726);if(_0x5ddbbc[_0x333184(0x7e0)]===0x0)return;await _0x1dcad9[_0x333184(0x826)][_0x333184(0x7b1)](()=>{const _0x398d66=_0x333184;for(const {key:_0x21cce8,value:_0x2ee725}of _0x1dcad9[_0x398d66(0x498)](_0x5af726)){_0x4fd755(_0x1dcad9,_0x5af726,_0x21cce8,_0x2ee725,null);const _0xede7f=_0x469b81(_0x1dcad9,_0x5af726,_0x21cce8,_0x2ee725);for(const _0x1dd627 of _0xede7f){_0x5ad395(_0x1dcad9,null,_0x5af726,_0x21cce8,_0x1dd627['fieldPath'],_0x1dd627[_0x398d66(0x296)],_0x1dd627[_0x398d66(0x479)]);}}});}const _0x55c8e4=0x1388;async function _0x2aad33(_0x59a100){const _0x36b0d2=_0x4afa87,_0x481785=_0x59a100[_0x36b0d2(0x5fc)]?.[_0x36b0d2(0x2de)]?.[_0x36b0d2(0x625)]>0x0;if(!_0x481785&&!_0x59a100[_0x36b0d2(0x507)])return{'dropped':0x0,'written':0x0};const _0x2ca742=_0x2794c8(_0x59a100);let _0x2bb617=0x0;for(;;){const _0x52ee10=Array[_0x36b0d2(0x875)](_0x2ca742[_0x36b0d2(0x4fb)]({'limit':_0x55c8e4}));if(_0x52ee10['length']===0x0)break;let _0x25dde4=0x0;await _0x59a100[_0x36b0d2(0x826)][_0x36b0d2(0x7b1)](()=>{const _0x135885=_0x36b0d2;for(const _0x40fa69 of _0x52ee10)if(_0x2ca742[_0x135885(0x1fd)](_0x40fa69))_0x25dde4++;});if(_0x25dde4===0x0)break;_0x2bb617+=_0x25dde4;}let _0x282605=0x0;for(const _0x4a9ca5 of _0x59a100[_0x36b0d2(0x5fc)]['outgoing'][_0x36b0d2(0x88a)]()){if(_0x4a9ca5[_0x36b0d2(0x5ae)]('~')||!_0x59a100[_0x36b0d2(0x863)](_0x4a9ca5))continue;const _0xba7a4=_0x581d64(_0x59a100,_0x4a9ca5);await _0x59a100[_0x36b0d2(0x826)][_0x36b0d2(0x7b1)](()=>{const _0x40d478=_0x36b0d2;for(const {key:_0x173897,value:_0x2cf95e}of _0x59a100[_0x40d478(0x498)](_0x4a9ca5)){for(const _0x156dda of _0xba7a4){const _0x30b21e=_0x4c6341(_0x2cf95e,_0x156dda[_0x40d478(0x7a9)]);if(!_0x2cb48a(_0x30b21e))continue;_0x2ca742['putSync'](_0x51f658(_0x156dda[_0x40d478(0x296)],_0x30b21e,_0x4a9ca5,_0x173897,_0x156dda['fieldPath']),0x1),_0x282605++;}}});}return{'dropped':_0x2bb617,'written':_0x282605};}return okdbEnvRefs={'getFieldValue':_0x4c6341,'setFieldValue':_0x1fb14a,'refIndexKey':_0x51f658,'isRefTarget':_0x2cb48a,'cascadeVisitKey':_0x377c4a,'extractRefs':_0x11a967,'rebuildRefCache':_0x287ba2,'getTypeRefs':_0x581d64,'getIncomingRefs':_0x502674,'getRefIndexDb':_0x2794c8,'updateRefIndex':_0x4fd755,'removeRefIndexEntries':_0x2c9662,'refIndexRowsFor':_0x3daaee,'rebuildRefIndex':_0x2aad33,'checkForeignKeys':_0x469b81,'processDeleteCascade':_0x2786f3,'setRefViolation':_0x5ad395,'clearRefViolation':_0x4b5401,'clearRefViolationsForKey':_0x5b42f7,'clearRefViolationsForType':_0xcaf1a1,'syncRefIndex':_0x53b796},okdbEnvRefs;}var hasRequiredOkdbSubscriptionsStore;function requireOkdbSubscriptionsStore(){const _0x271fe9=_0x7b0c8f;if(hasRequiredOkdbSubscriptionsStore)return okdbSubscriptionsStore[_0x271fe9(0x3ec)];hasRequiredOkdbSubscriptionsStore=0x1;const _0xf17a5e=require$$0$4,{assertFilterAllowed:_0x144640}=requireOkdbQueryFilter(),{rebuildRefCache:_0x43fd0c}=requireOkdbEnvRefs(),_0x31d2ef=_0x271fe9(0x603),_0x1a2c34=_0x271fe9(0x683),_0x15ed23=_0x271fe9(0x265),_0x54ac63=[_0x271fe9(0x6ca),_0x271fe9(0x326),'key'],_0x43c6ee=['dataEnv',_0x271fe9(0x326)],_0x49396c=0x5a*0x3e8,_0x5c3524=Math['floor'](_0x49396c/0x2);class _0x3e2698{constructor(_0x17d0f0,_0x475b7e={}){const _0x64ec=_0x271fe9;this['okdb']=_0x17d0f0,this[_0x64ec(0x661)]=Number[_0x64ec(0x35c)](_0x475b7e[_0x64ec(0x661)])&&_0x475b7e['ttlMs']>0x0?_0x475b7e[_0x64ec(0x661)]:_0x49396c,this[_0x64ec(0x807)]=Number[_0x64ec(0x35c)](_0x475b7e['refreshThresholdMs'])?_0x475b7e[_0x64ec(0x807)]:_0x5c3524,this[_0x64ec(0x5a6)]=null;}async[_0x271fe9(0x22d)](){const _0x206087=_0x271fe9;if(this['_sub'])return this[_0x206087(0x5a6)];const _0x3b0884=await this[_0x206087(0x709)]['createEnvironment'](_0x31d2ef,{'sync':![]});return await _0x3b0884[_0x206087(0x5bb)](_0x1a2c34,{'indexes':[_0x43c6ee]}),await _0x3b0884[_0x206087(0x5bb)](_0x15ed23),_0x3b0884['getSchema'](_0x15ed23)?_0x43fd0c(_0x3b0884):await _0x3b0884[_0x206087(0x8a7)](_0x15ed23,{'definition':{'type':_0x206087(0x81a),'properties':{'sessionId':{'type':_0x206087(0x6d1),'ref':{'type':_0x1a2c34,'onDelete':_0x206087(0x60b)}},'dataEnv':{'type':'string'},'type':{'type':_0x206087(0x6d1)},'key':{'type':_0x206087(0x6d1)}},'required':[_0x206087(0x228),'dataEnv',_0x206087(0x326),_0x206087(0x8cd)]},'enforce':!![]}),await _0x3b0884['ensureType'](_0x15ed23,{'indexes':[_0x54ac63]}),await _0x3b0884['indexReady'](_0x15ed23,_0x54ac63),await _0x3b0884[_0x206087(0x703)](_0x1a2c34,_0x43c6ee),this[_0x206087(0x5a6)]=_0x3b0884,_0x3b0884;}[_0x271fe9(0x5f3)](){const _0x1c6d85=_0x271fe9;if(!this['_sub'])throw new Error(_0x1c6d85(0x45a));return this['_sub'];}async[_0x271fe9(0x391)]({sessionId:_0x560960,dataEnv:_0x5c7ed7,type:_0x2e851b,filter:filter=null,ttlMs:_0x58c3ec}={}){const _0x182c54=_0x271fe9,_0x31e61e=this[_0x182c54(0x5f3)]();_0x144640(filter);const _0xd99799=_0x560960!=null&&String(_0x560960)[_0x182c54(0x7e0)]>0x0?String(_0x560960):_0xf17a5e['randomUUID'](),_0xa954e4=Number[_0x182c54(0x35c)](_0x58c3ec)&&_0x58c3ec>0x0?_0x58c3ec:this['ttlMs'],_0x20bdda=Date[_0x182c54(0x274)](),_0x3ec6c5={'sessionId':_0xd99799,'dataEnv':_0x5c7ed7,'type':_0x2e851b,'filter':filter??null,'version':0x0,'createdAt':_0x20bdda,'expiresAt':_0x20bdda+_0xa954e4};return await _0x31e61e[_0x182c54(0x4a2)](_0x1a2c34,_0xd99799,_0x3ec6c5,{'ttl':_0xa954e4}),{'sessionId':_0xd99799,'version':0x0};}['getSession'](_0xc70b96){const _0x4ff3e3=_0x271fe9;if(!_0xc70b96)return null;return this['_env']()[_0x4ff3e3(0x341)](_0x1a2c34,String(_0xc70b96))??null;}async[_0x271fe9(0x343)](_0xaab480){const _0x1d4d50=_0x271fe9,_0x3fdbb5=this[_0x1d4d50(0x5f3)](),_0x10739f=String(_0xaab480);if(!_0x3fdbb5[_0x1d4d50(0x341)](_0x1a2c34,_0x10739f))return![];return await _0x3fdbb5[_0x1d4d50(0x694)](_0x1a2c34,_0x10739f),!![];}async[_0x271fe9(0x390)](_0x4892b2){const _0x281c86=_0x271fe9,_0x499ce5=this[_0x281c86(0x5f3)](),_0x132379=String(_0x4892b2),_0x2b308=_0x499ce5[_0x281c86(0x341)](_0x1a2c34,_0x132379);if(!_0x2b308)return null;const _0x4164e1=(Number[_0x281c86(0x35c)](_0x2b308[_0x281c86(0x1bf)])?_0x2b308[_0x281c86(0x1bf)]:0x0)+0x1;return await _0x499ce5[_0x281c86(0x4a2)](_0x1a2c34,_0x132379,{..._0x2b308,'version':_0x4164e1}),_0x4164e1;}async['refreshTtl'](_0x474589,_0x59b3d7){const _0x320f99=_0x271fe9,_0x17d070=this['_env'](),_0x50ceba=String(_0x474589);if(!_0x17d070[_0x320f99(0x341)](_0x1a2c34,_0x50ceba))return![];const _0x184d17=Number['isFinite'](_0x59b3d7)&&_0x59b3d7>0x0?_0x59b3d7:this[_0x320f99(0x661)];if(this[_0x320f99(0x91f)](_0x50ceba))return![];return await _0x17d070['setTTL'](_0x1a2c34,_0x50ceba,_0x184d17),await this[_0x320f99(0x31a)](_0x50ceba,_0x184d17),!![];}async[_0x271fe9(0x844)](_0xbd8c7b,_0x4c747a){const _0x4de6e0=_0x271fe9,_0x3cd4cb=this[_0x4de6e0(0x5f3)](),_0xa561c8=Number[_0x4de6e0(0x35c)](_0x4c747a)&&_0x4c747a>0x0?_0x4c747a:this[_0x4de6e0(0x661)],_0x5f12f9=Date[_0x4de6e0(0x274)](),_0x5352cb=[];for(const _0x2ab7ac of _0xbd8c7b||[]){const _0x24836e=String(_0x2ab7ac),_0x28703c=_0x3cd4cb[_0x4de6e0(0x341)](_0x1a2c34,_0x24836e);if(!_0x28703c)continue;if(this['_isFar'](_0x24836e,_0x5f12f9))continue;_0x5352cb[_0x4de6e0(0x247)]({'id':_0x24836e,'cur':_0x28703c});}if(_0x5352cb['length']===0x0)return[];return await _0x3cd4cb['txn'](async _0x575448=>{const _0x3d5b3a=_0x4de6e0;for(const {id:_0x59d85b,cur:_0x5893ed}of _0x5352cb){_0x575448[_0x3d5b3a(0x4a2)](_0x1a2c34,_0x59d85b,{..._0x5893ed,'expiresAt':_0x5f12f9+_0xa561c8}),_0x575448['setTTL'](_0x1a2c34,_0x59d85b,_0xa561c8);}}),_0x5352cb[_0x4de6e0(0x59f)](_0x2c8994=>_0x2c8994['id']);}['_isFar'](_0x531520,_0x354027=Date[_0x271fe9(0x274)]()){const _0x342ed8=_0x271fe9,_0x5655c3=this['_env']()[_0x342ed8(0x38c)](_0x1a2c34,String(_0x531520));if(!_0x5655c3)return![];return _0x5655c3[_0x342ed8(0x29d)]-_0x354027>this[_0x342ed8(0x807)];}async['_syncExpiresAtField'](_0x419824,_0x9fd72d){const _0x3158d6=_0x271fe9,_0x22aa5e=this['_env'](),_0x24cb7f=_0x22aa5e['get'](_0x1a2c34,_0x419824);if(!_0x24cb7f)return;await _0x22aa5e[_0x3158d6(0x4a2)](_0x1a2c34,_0x419824,{..._0x24cb7f,'expiresAt':Date[_0x3158d6(0x274)]()+_0x9fd72d});}async[_0x271fe9(0x84e)](_0x1662ce,_0x1fb9d8,_0x16d23d){const _0x4c8167=_0x271fe9,_0x39c9cd=this[_0x4c8167(0x5f3)](),_0x216653=String(_0x1662ce),_0x4979f4=_0x39c9cd[_0x4c8167(0x341)](_0x1a2c34,_0x216653);if(!_0x4979f4)throw new Error('subscriptions-store:\x20addInterest\x20on\x20unknown\x20session\x20'+_0x216653);const _0x45a4b4=_0xf17a5e[_0x4c8167(0x5e3)]();return await _0x39c9cd[_0x4c8167(0x4a2)](_0x15ed23,_0x45a4b4,{'sessionId':_0x216653,'dataEnv':String(_0x4979f4[_0x4c8167(0x6ca)]),'type':String(_0x1fb9d8),'key':String(_0x16d23d)}),_0x45a4b4;}async[_0x271fe9(0x201)](_0x41fea1,_0x575ee0,{retries:retries=0x8}={}){const _0x4292b9=_0x271fe9,_0x17a8f8=this[_0x4292b9(0x5f3)]();for(let _0x3f528e=0x0;;_0x3f528e++){const _0x1b7d5a=_0x17a8f8[_0x4292b9(0x4c9)](_0x1a2c34,_0x41fea1);if(!_0x1b7d5a)return null;const _0x4cff4a=_0x1b7d5a[_0x4292b9(0x59b)],_0x2cac01=(Number['isFinite'](_0x4cff4a['version'])?_0x4cff4a[_0x4292b9(0x1bf)]:0x0)+0x1,{sessionPatch:sessionPatch={},applyInterests:applyInterests=null}=_0x575ee0(_0x4cff4a,_0x17a8f8)||{};try{return await _0x17a8f8[_0x4292b9(0x715)](async _0x308d60=>{const _0x3ae194=_0x4292b9;applyInterests?.(_0x308d60),_0x308d60[_0x3ae194(0x4a2)](_0x1a2c34,_0x41fea1,{..._0x4cff4a,...sessionPatch,'version':_0x2cac01},{'ifVersion':_0x1b7d5a[_0x3ae194(0x1bf)]});}),_0x2cac01;}catch(_0x2f854a){if(_0x2f854a?.[_0x4292b9(0x5c5)]===_0x4292b9(0x213)&&_0x3f528e<retries)continue;throw _0x2f854a;}}}async[_0x271fe9(0x7f9)](_0x441f35,{add:add=[],remove:remove=[]}={}){const _0x1bd478=_0x271fe9,_0x4daa78=String(_0x441f35);return this[_0x1bd478(0x201)](_0x4daa78,(_0x41eed0,_0x27fba9)=>{const _0x414511=_0x1bd478,_0x186178=String(_0x41eed0['dataEnv']),_0x2f274a=new Set((remove||[])[_0x414511(0x59f)](_0x4cd3a6=>String(_0x4cd3a6[_0x414511(0x326)])+'\x00'+String(_0x4cd3a6[_0x414511(0x8cd)]))),_0x57ace6=[];if(_0x2f274a[_0x414511(0x625)]>0x0)for(const {key:_0x3e5473,value:_0x669d79}of _0x27fba9[_0x414511(0x498)](_0x15ed23,{})){if(!_0x669d79||_0x669d79[_0x414511(0x228)]!==_0x4daa78)continue;if(_0x2f274a['has'](_0x669d79[_0x414511(0x326)]+'\x00'+_0x669d79['key']))_0x57ace6['push'](_0x3e5473);}const _0x1af7c6=(add||[])['map'](_0x2d4e10=>({'id':_0xf17a5e['randomUUID'](),'type':String(_0x2d4e10[_0x414511(0x326)]),'key':String(_0x2d4e10[_0x414511(0x8cd)])}));return{'applyInterests':_0x347715=>{const _0x3199a3=_0x414511;for(const _0x175a41 of _0x57ace6)_0x347715[_0x3199a3(0x694)](_0x15ed23,_0x175a41);for(const _0x5da964 of _0x1af7c6)_0x347715['put'](_0x15ed23,_0x5da964['id'],{'sessionId':_0x4daa78,'dataEnv':_0x186178,'type':_0x5da964[_0x3199a3(0x326)],'key':_0x5da964[_0x3199a3(0x8cd)]});}};});}async[_0x271fe9(0x865)](_0x39fb11,_0x1cbd1d){const _0xeddef1=_0x271fe9;_0x144640(_0x1cbd1d);const _0x14b773=String(_0x39fb11);return this[_0xeddef1(0x201)](_0x14b773,()=>({'sessionPatch':{'filter':_0x1cbd1d??null}}));}async[_0x271fe9(0x41a)](_0x4c34c3,_0x3e5342,_0x452592){const _0x4ed799=_0x271fe9,_0x3e9a4d=this[_0x4ed799(0x5f3)](),_0x2021e1=String(_0x4c34c3),_0x152f53=String(_0x3e5342),_0x55fca5=String(_0x452592),_0x536e49=[];for(const {key:_0xed8829,value:_0x23945d}of _0x3e9a4d[_0x4ed799(0x498)](_0x15ed23,{})){if(_0x23945d&&_0x23945d['sessionId']===_0x2021e1&&_0x23945d['type']===_0x152f53&&_0x23945d[_0x4ed799(0x8cd)]===_0x55fca5)_0x536e49[_0x4ed799(0x247)](_0xed8829);}for(const _0x38c575 of _0x536e49)await _0x3e9a4d[_0x4ed799(0x694)](_0x15ed23,_0x38c575);return _0x536e49[_0x4ed799(0x7e0)];}async[_0x271fe9(0x5f9)](_0x5941e9,_0x59ade2){const _0x1d04c3=_0x271fe9,_0x926a7d=String(_0x5941e9);return this[_0x1d04c3(0x201)](_0x926a7d,(_0x32598b,_0x3bf7e3)=>{const _0x12f915=_0x1d04c3,_0xd1ba35=String(_0x32598b[_0x12f915(0x6ca)]),_0x27387c=[];for(const {key:_0x566c59,value:_0x484d91}of _0x3bf7e3[_0x12f915(0x498)](_0x15ed23,{})){if(_0x484d91&&_0x484d91[_0x12f915(0x228)]===_0x926a7d)_0x27387c[_0x12f915(0x247)](_0x566c59);}const _0x4bc52c=(_0x59ade2||[])['map'](_0x339092=>({'id':_0xf17a5e[_0x12f915(0x5e3)](),'type':String(_0x339092[_0x12f915(0x326)]),'key':String(_0x339092[_0x12f915(0x8cd)])}));return{'applyInterests':_0x934dbd=>{const _0x247e11=_0x12f915;for(const _0x564f42 of _0x27387c)_0x934dbd[_0x247e11(0x694)](_0x15ed23,_0x564f42);for(const _0x174653 of _0x4bc52c)_0x934dbd[_0x247e11(0x4a2)](_0x15ed23,_0x174653['id'],{'sessionId':_0x926a7d,'dataEnv':_0xd1ba35,'type':_0x174653[_0x247e11(0x326)],'key':_0x174653[_0x247e11(0x8cd)]});}};});}[_0x271fe9(0x395)](_0x3e6e24,_0x20d8d1,_0x4ee06e){const _0x5d3736=_0x271fe9,_0x4c7641=this[_0x5d3736(0x5f3)](),_0x36896b=String(_0x3e6e24),_0x37ce4d=String(_0x20d8d1),_0x2d2d8b=String(_0x4ee06e),_0x400044=new Set();for(const {value:_0x4022ac}of _0x4c7641['byIndex'](_0x15ed23,_0x54ac63,{'start':[_0x36896b,_0x37ce4d,_0x2d2d8b],'end':[_0x36896b,_0x37ce4d,_0x2d2d8b,'￿']})){if(_0x4022ac&&_0x4022ac[_0x5d3736(0x228)])_0x400044[_0x5d3736(0x737)](_0x4022ac['sessionId']);}return[..._0x400044];}[_0x271fe9(0x2e3)](_0x52ca1a,_0x4f7c5c){const _0x1f1cbc=_0x271fe9,_0x58e35f=this[_0x1f1cbc(0x5f3)](),_0x324908=String(_0x52ca1a),_0x841d48=String(_0x4f7c5c),_0x1469ec=[];for(const {value:_0x266de1}of _0x58e35f[_0x1f1cbc(0x34f)](_0x1a2c34,_0x43c6ee,{'start':[_0x324908,_0x841d48],'end':[_0x324908,_0x841d48,'\uffff']})){if(!_0x266de1||_0x266de1[_0x1f1cbc(0x6ca)]!==_0x324908||_0x266de1[_0x1f1cbc(0x326)]!==_0x841d48)continue;if(_0x266de1[_0x1f1cbc(0x4bf)]==null)continue;_0x1469ec['push']({'sessionId':_0x266de1[_0x1f1cbc(0x228)],'filter':_0x266de1[_0x1f1cbc(0x4bf)],'version':Number[_0x1f1cbc(0x35c)](_0x266de1[_0x1f1cbc(0x1bf)])?_0x266de1[_0x1f1cbc(0x1bf)]:0x0});}return _0x1469ec;}async[_0x271fe9(0x76a)](){const _0x50fd98=_0x271fe9;return this[_0x50fd98(0x5f3)]()[_0x50fd98(0x8ce)]();}}return okdbSubscriptionsStore[_0x271fe9(0x3ec)]=_0x3e2698,okdbSubscriptionsStore[_0x271fe9(0x3ec)][_0x271fe9(0x4c7)]=_0x31d2ef,okdbSubscriptionsStore['exports'][_0x271fe9(0x55d)]=_0x1a2c34,okdbSubscriptionsStore[_0x271fe9(0x3ec)][_0x271fe9(0x210)]=_0x15ed23,okdbSubscriptionsStore[_0x271fe9(0x3ec)][_0x271fe9(0x3ae)]=_0x54ac63,okdbSubscriptionsStore[_0x271fe9(0x3ec)]['SESSION_TYPE_INDEX']=_0x43c6ee,okdbSubscriptionsStore[_0x271fe9(0x3ec)]['DEFAULT_TTL_MS']=_0x49396c,okdbSubscriptionsStore[_0x271fe9(0x3ec)];}var version='3.2.0',require$$29={'version':version},okdbEnginesEnums,hasRequiredOkdbEnginesEnums;function requireOkdbEnginesEnums(){const _0x49dd00=_0x7b0c8f;if(hasRequiredOkdbEnginesEnums)return okdbEnginesEnums;hasRequiredOkdbEnginesEnums=0x1;const _0x2550a0=_0x49dd00(0x4f7),_0x571ecb=0xa,_0xe720eb=Object[_0x49dd00(0x65b)]({'CREATED':_0x49dd00(0x246),'ONLINE':_0x49dd00(0x78f),'STOPPED':_0x49dd00(0x1c2),'INACTIVE':_0x49dd00(0x5f7),'ERROR':'error','REMOVED':'removed'}),_0x51ab33=Object[_0x49dd00(0x65b)]({'STARTED':_0x49dd00(0x6d4),'STOPPED':_0x49dd00(0x1c2),'ERROR':'error','INSTALLED':_0x49dd00(0x636),'UNINSTALLED':_0x49dd00(0x712)}),_0x33c56d=Object[_0x49dd00(0x65b)](new Set([_0xe720eb[_0x49dd00(0x24c)],_0xe720eb[_0x49dd00(0x546)],_0xe720eb['INACTIVE'],_0xe720eb[_0x49dd00(0x67f)]]));function _0x2967cf(_0x452c71){const _0x45252e=_0x49dd00;return _0x452c71?.[_0x45252e(0x20e)]===![]?_0xe720eb['STOPPED']:_0x45252e(0x81d);}return okdbEnginesEnums={'TYPE_ENGINES':_0x2550a0,'MAX_UPDATE_RETRIES':_0x571ecb,'ENGINE_STATUS':_0xe720eb,'ENGINE_EVENTS':_0x51ab33,'UPDATABLE_STATUSES':_0x33c56d,'durableOnlyEngineState':_0x2967cf},okdbEnginesEnums;}var enums,hasRequiredEnums;function requireEnums(){const _0x822a74=_0x7b0c8f;if(hasRequiredEnums)return enums;hasRequiredEnums=0x1;const _0x236602=Object[_0x822a74(0x65b)]({'EMBEDDER':_0x822a74(0x42b),'INDEXER':_0x822a74(0x724),'SEARCH':_0x822a74(0x281),'WORKER':'embed-worker'}),_0x3e4c56=Object['freeze']({'PENDING':_0x822a74(0x528),'DONE':'done','FAILED':'failed','DELETED':_0x822a74(0x85c)}),_0x3956ff=Object[_0x822a74(0x65b)]({'INDEXER_READY':_0x822a74(0x7fa),'INDEXER_FLUSHED':'embeddings:indexer:flushed','INDEXER_DOC_DONE':_0x822a74(0x2e7),'INDEXER_DOC_FAILED':_0x822a74(0x1b0),'INDEXER_DOC_QUEUED':_0x822a74(0x872),'STRATEGY_REGISTERED':_0x822a74(0x67d),'DOC_STATUS_CHANGE':_0x822a74(0x54a),'PIPELINE_READY':_0x822a74(0x714)}),_0x128a80=Object[_0x822a74(0x65b)]({'MODELS':_0x822a74(0x3cd),'DOC_STATUS_PREFIX':_0x822a74(0x3f6),'VEC_PREFIX':_0x822a74(0x394)});return enums={'ENGINE_TYPES':_0x236602,'INDEXER_DOC_STATUS':_0x3e4c56,'EMBEDDINGS_EVENTS':_0x3956ff,'INTERNAL_TYPES':_0x128a80},enums;}var okdbQueueValidate,hasRequiredOkdbQueueValidate;function requireOkdbQueueValidate(){const _0x20dd20=_0x7b0c8f;if(hasRequiredOkdbQueueValidate)return okdbQueueValidate;hasRequiredOkdbQueueValidate=0x1;const _0x52b99=Object['freeze']({'PENDING':_0x20dd20(0x528),'RUNNING':_0x20dd20(0x6f8),'DONE':_0x20dd20(0x7a1),'FAILED':_0x20dd20(0x214)}),_0xed8d33=Object[_0x20dd20(0x65b)]({'ACTIVE':'active','PAUSED':_0x20dd20(0x6e2),'DRAINING':'draining'}),_0x5bc447=Object['freeze']({'ENQUEUED':_0x20dd20(0x684),'DONE':_0x20dd20(0x7cb),'FAILED':_0x20dd20(0x554),'RETRY':_0x20dd20(0x3ff),'RESCHEDULED':_0x20dd20(0x25f),'REMOVED':_0x20dd20(0x1bb),'RECONCILED':_0x20dd20(0x253),'CLEAR_PROGRESS':'queue:clear-progress','CLEAR_DONE':_0x20dd20(0x3ef),'LOG':_0x20dd20(0x8dd)}),_0x5bec9b=Object[_0x20dd20(0x65b)]([_0x20dd20(0x420),_0x20dd20(0x809),'warn',_0x20dd20(0x292)]),_0x235e91=0x1,_0x118711=0xc350,_0x135d09=0x400,_0xb60308=0x800;function _0x52ca4d(_0x3f20c1){const _0x2da939=_0x20dd20;return _0x3f20c1!=null&&typeof _0x3f20c1===_0x2da939(0x81a)&&(_0x3f20c1['constructor']===Object||Object[_0x2da939(0x586)](_0x3f20c1)===null);}function _0x4d1319(_0x3e77b5,_0x51a2a8,_0x53b5b8,_0x4ec70d){const _0x45f2df=_0x20dd20;if(_0x3e77b5==null)return _0x51a2a8;const _0x4eab12=Number(_0x3e77b5);if(!Number[_0x45f2df(0x35c)](_0x4eab12))return _0x51a2a8;const _0x2a2282=Math['trunc'](_0x4eab12);if(_0x2a2282<_0x53b5b8)return _0x53b5b8;if(_0x2a2282>_0x4ec70d)return _0x4ec70d;return _0x2a2282;}function _0x540851(_0x167858){const _0x272747=_0x20dd20;if(!_0x167858)return[];if(typeof _0x167858===_0x272747(0x6d1))_0x167858=[_0x167858];if(!Array[_0x272747(0x239)](_0x167858))throw new Error(_0x272747(0x499));const _0x451d03=[],_0x3dcb46=new Set();for(const _0x3e57fe of _0x167858){if(_0x3e57fe==null)continue;const _0x3c726e=String(_0x3e57fe)[_0x272747(0x6b5)]();if(!_0x3c726e)continue;if(_0x3c726e[_0x272747(0x7e0)]>0x80)throw new Error(_0x272747(0x351));if(_0x3dcb46[_0x272747(0x5ed)](_0x3c726e))continue;_0x3dcb46[_0x272747(0x737)](_0x3c726e),_0x451d03[_0x272747(0x247)](_0x3c726e);if(_0x451d03[_0x272747(0x7e0)]>=0x20)break;}return _0x451d03;}function _0x3ae4a7(_0x39c67d){const _0x5824d9=_0x20dd20;if(_0x39c67d==null)return null;const _0x452aa0=String(_0x39c67d)[_0x5824d9(0x6b5)]();if(!_0x452aa0)return null;if(_0x452aa0['length']>0x80)throw new Error('bucket\x20too\x20long');return _0x452aa0;}function _0x5793cd(_0x35be88,_0x2da0bb=0x1){const _0x660388=_0x20dd20;if(_0x35be88==null)return[];if(typeof _0x35be88==='string'){const _0x5f1429=_0x3ae4a7(_0x35be88);if(!_0x5f1429)return[];return[{'id':_0x5f1429,'tokens':_0x2da0bb}];}if(!Array[_0x660388(0x239)](_0x35be88))throw new Error('buckets\x20must\x20be\x20array\x20or\x20string');const _0x391405=[],_0x2acc8b=new Set();for(const _0x1d73a1 of _0x35be88){let _0x30dacd,_0x16fae9;if(Array[_0x660388(0x239)](_0x1d73a1))[_0x30dacd,_0x16fae9]=_0x1d73a1;else{if(_0x1d73a1&&typeof _0x1d73a1==='object')({id:_0x30dacd,tokens:_0x16fae9}=_0x1d73a1);else{if(typeof _0x1d73a1===_0x660388(0x6d1))_0x30dacd=_0x1d73a1,_0x16fae9=_0x2da0bb;else continue;}}_0x30dacd=_0x3ae4a7(_0x30dacd);if(!_0x30dacd)continue;const _0xa7d6d7=_0x16fae9==null?_0x2da0bb:Math[_0x660388(0x871)](Number(_0x16fae9));if(!Number[_0x660388(0x35c)](_0xa7d6d7)||_0xa7d6d7<0x1)throw new Error('bucket\x20\x22'+_0x30dacd+_0x660388(0x473));if(_0xa7d6d7>0xf4240)throw new Error(_0x660388(0x3d6)+_0x30dacd+_0x660388(0x405));if(_0x2acc8b['has'](_0x30dacd))throw new Error(_0x660388(0x20d)+_0x30dacd);_0x2acc8b[_0x660388(0x737)](_0x30dacd),_0x391405[_0x660388(0x247)]({'id':_0x30dacd,'tokens':_0xa7d6d7});}return _0x391405;}function _0x44fb97(_0x501e94,_0x403e8b=0x400){const _0x541c6d=_0x20dd20;if(_0x501e94==null)return null;const _0x273cdf=String(_0x501e94)[_0x541c6d(0x836)](0x0,_0x403e8b);return _0x273cdf||null;}function _0x34b192(_0x4e2709){const _0x466664=_0x20dd20;if(_0x4e2709==null)return null;if(_0x4e2709[_0x466664(0x8cd)]!==undefined&&_0x4e2709['value']!==undefined)return _0x4e2709;return{'key':_0x4e2709['id']??null,'value':_0x4e2709};}function _0x56f056(_0x2c0419){const _0x440179=_0x20dd20;let _0x3c8a98=_0x2c0419;if(typeof _0x2c0419===_0x440179(0x6d1))_0x3c8a98={'message':_0x2c0419};if(!_0x52ca4d(_0x3c8a98))throw new Error(_0x440179(0x3d1));const _0x589ee2=_0x3c8a98['level']==null?'info':String(_0x3c8a98[_0x440179(0x448)])[_0x440179(0x748)]();if(!_0x5bec9b[_0x440179(0x566)](_0x589ee2))throw new Error(_0x440179(0x4bc)+_0x589ee2);if(_0x3c8a98[_0x440179(0x63a)]==null)throw new Error(_0x440179(0x6a5));const _0x13996f=String(_0x3c8a98['message'])[_0x440179(0x836)](0x0,_0x135d09);let _0x2c3c36=null;if(_0x3c8a98[_0x440179(0x60f)]!=null){if(!_0x52ca4d(_0x3c8a98[_0x440179(0x60f)]))throw new Error(_0x440179(0x3d5));if(JSON[_0x440179(0x7af)](_0x3c8a98[_0x440179(0x60f)])[_0x440179(0x7e0)]>_0xb60308)throw new Error(_0x440179(0x73a));_0x2c3c36=_0x3c8a98['fields'];}return{'level':_0x589ee2,'message':_0x13996f,'fields':_0x2c3c36,'ts':Date[_0x440179(0x274)]()};}function _0xaa3532(_0x1ffea4){const _0x3ef1ef=_0x20dd20;if(_0x1ffea4==null)return;if(!Number['isInteger'](_0x1ffea4)||_0x1ffea4<_0x235e91||_0x1ffea4>_0x118711)throw new Error(_0x3ef1ef(0x6e3)+_0x235e91+',\x20'+_0x118711+']');}function _0x70b02b(_0x326482){const _0x3a4dd2=_0x20dd20;if(!_0x52ca4d(_0x326482))throw new Error(_0x3a4dd2(0x637));if(typeof _0x326482['id']!==_0x3a4dd2(0x6d1)||_0x326482['id'][_0x3a4dd2(0x7e0)]<0x8)throw new Error(_0x3a4dd2(0x284));if(typeof _0x326482[_0x3a4dd2(0x326)]!==_0x3a4dd2(0x6d1)||!_0x326482[_0x3a4dd2(0x326)])throw new Error(_0x3a4dd2(0x5e6));if(!Object[_0x3a4dd2(0x5fe)](_0x52b99)[_0x3a4dd2(0x566)](_0x326482[_0x3a4dd2(0x602)]))throw new Error(_0x3a4dd2(0x916)+_0x326482[_0x3a4dd2(0x602)]);for(const _0x412153 of['when',_0x3a4dd2(0x246),_0x3a4dd2(0x27b)]){if(typeof _0x326482[_0x412153]!==_0x3a4dd2(0x645)||!Number['isFinite'](_0x326482[_0x412153]))throw new Error(_0x3a4dd2(0x8c8)+_0x412153+_0x3a4dd2(0x56f));}if(_0x326482[_0x3a4dd2(0x908)]!=null&&(typeof _0x326482[_0x3a4dd2(0x908)]!==_0x3a4dd2(0x645)||!Number[_0x3a4dd2(0x35c)](_0x326482[_0x3a4dd2(0x908)])))throw new Error(_0x3a4dd2(0x5fa));if(!Number[_0x3a4dd2(0x35e)](_0x326482[_0x3a4dd2(0x891)])||_0x326482[_0x3a4dd2(0x891)]<0x0)throw new Error(_0x3a4dd2(0x258));if(!Number['isInteger'](_0x326482[_0x3a4dd2(0x2d6)]))throw new Error(_0x3a4dd2(0x495));if(_0x326482[_0x3a4dd2(0x3c7)]!==null&&_0x326482[_0x3a4dd2(0x3c7)]!==Infinity&&(!Number[_0x3a4dd2(0x35e)](_0x326482[_0x3a4dd2(0x3c7)])||_0x326482[_0x3a4dd2(0x3c7)]<0x1))throw new Error(_0x3a4dd2(0x79b));if(_0x326482[_0x3a4dd2(0x5ce)]!=null&&(!Number['isInteger'](_0x326482['retry_delay'])||_0x326482[_0x3a4dd2(0x5ce)]<0x0))throw new Error(_0x3a4dd2(0x68d));if(_0x326482[_0x3a4dd2(0x679)]!=null&&(typeof _0x326482[_0x3a4dd2(0x679)]!==_0x3a4dd2(0x645)||_0x326482[_0x3a4dd2(0x679)]<0x1))throw new Error(_0x3a4dd2(0x8be));if(_0x326482['claim_id']!=null&&typeof _0x326482[_0x3a4dd2(0x6c7)]!==_0x3a4dd2(0x6d1))throw new Error('job.claim_id\x20must\x20be\x20string|null');if(_0x326482[_0x3a4dd2(0x2f0)]!=null&&(typeof _0x326482['claim_expires']!==_0x3a4dd2(0x645)||!Number['isFinite'](_0x326482[_0x3a4dd2(0x2f0)])))throw new Error(_0x3a4dd2(0x7b8));if(_0x326482['bucket']!=null&&typeof _0x326482[_0x3a4dd2(0x2c3)]!==_0x3a4dd2(0x6d1))throw new Error(_0x3a4dd2(0x393));if(_0x326482[_0x3a4dd2(0x599)]!=null&&(!Number[_0x3a4dd2(0x35e)](_0x326482['bucket_tokens'])||_0x326482['bucket_tokens']<0x1))throw new Error(_0x3a4dd2(0x62e));if(_0x326482[_0x3a4dd2(0x49d)]!=null){if(!Array[_0x3a4dd2(0x239)](_0x326482[_0x3a4dd2(0x49d)]))throw new Error(_0x3a4dd2(0x8dc));for(const _0x535baa of _0x326482['buckets']){if(!_0x535baa||typeof _0x535baa!==_0x3a4dd2(0x81a))throw new Error(_0x3a4dd2(0x338));if(typeof _0x535baa['id']!==_0x3a4dd2(0x6d1)||!_0x535baa['id'][_0x3a4dd2(0x6b5)]())throw new Error(_0x3a4dd2(0x39f));if(!Number[_0x3a4dd2(0x35e)](_0x535baa['tokens'])||_0x535baa[_0x3a4dd2(0x403)]<0x1)throw new Error('job.buckets[].tokens\x20must\x20be\x20int\x20>=\x201');}}if(_0x326482[_0x3a4dd2(0x641)]!=null&&typeof _0x326482[_0x3a4dd2(0x641)]!==_0x3a4dd2(0x6d1))throw new Error(_0x3a4dd2(0x8cb));if(_0x326482[_0x3a4dd2(0x848)]!=null&&typeof _0x326482[_0x3a4dd2(0x848)]!==_0x3a4dd2(0x6d1))throw new Error(_0x3a4dd2(0x5c7));if(!Array['isArray'](_0x326482[_0x3a4dd2(0x59a)]))throw new Error(_0x3a4dd2(0x923));if(_0x326482[_0x3a4dd2(0x4c5)]!=null&&typeof _0x326482[_0x3a4dd2(0x4c5)]!==_0x3a4dd2(0x6d1))throw new Error(_0x3a4dd2(0x713));if(_0x326482['status_code']!=null&&typeof _0x326482[_0x3a4dd2(0x796)]!==_0x3a4dd2(0x6d1))throw new Error(_0x3a4dd2(0x29c));if(_0x326482[_0x3a4dd2(0x515)]!=null&&typeof _0x326482[_0x3a4dd2(0x515)]!==_0x3a4dd2(0x6d1))throw new Error('job.status_message\x20must\x20be\x20string|null');if(_0x326482[_0x3a4dd2(0x88b)]!=null&&typeof _0x326482[_0x3a4dd2(0x88b)]!=='string')throw new Error(_0x3a4dd2(0x445));for(const _0x2aed9b of[_0x3a4dd2(0x75d),'failed_ttl']){const _0x25a0ab=_0x326482[_0x2aed9b];if(_0x25a0ab!=null&&(!Number['isInteger'](_0x25a0ab)||_0x25a0ab<0x0))throw new Error(_0x3a4dd2(0x8c8)+_0x2aed9b+_0x3a4dd2(0x467));}_0xaa3532(_0x326482[_0x3a4dd2(0x5d4)]);}function _0x294b13(_0x441029){const _0x39a392=_0x20dd20;if(!_0x52ca4d(_0x441029))throw new Error(_0x39a392(0x44d));if(typeof _0x441029['id']!==_0x39a392(0x6d1)||!_0x441029['id']['trim']())throw new Error(_0x39a392(0x509));if(!Object['values'](_0xed8d33)[_0x39a392(0x566)](_0x441029[_0x39a392(0x602)]))throw new Error(_0x39a392(0x291)+_0x441029[_0x39a392(0x602)]);if(_0x441029['max_concurrency']!=null&&(!Number[_0x39a392(0x35e)](_0x441029[_0x39a392(0x2d1)])||_0x441029[_0x39a392(0x2d1)]<0x1))throw new Error(_0x39a392(0x48d));if(_0x441029[_0x39a392(0x293)]!=null){if(!_0x52ca4d(_0x441029[_0x39a392(0x293)]))throw new Error(_0x39a392(0x3f7));const _0x115e6a=_0x441029[_0x39a392(0x293)];if(_0x115e6a[_0x39a392(0x3c7)]!=null&&(!Number[_0x39a392(0x35e)](_0x115e6a['max_tries'])||_0x115e6a[_0x39a392(0x3c7)]<0x1))throw new Error(_0x39a392(0x6a4));if(_0x115e6a[_0x39a392(0x5ce)]!=null&&(!Number[_0x39a392(0x35e)](_0x115e6a[_0x39a392(0x5ce)])||_0x115e6a[_0x39a392(0x5ce)]<0x0))throw new Error('job_type.defaults.retry_delay\x20must\x20be\x20int\x20>=\x200\x20or\x20null');if(_0x115e6a[_0x39a392(0x679)]!=null&&(typeof _0x115e6a['backoff_multiplier']!==_0x39a392(0x645)||_0x115e6a[_0x39a392(0x679)]<0x1))throw new Error(_0x39a392(0x805));if(_0x115e6a[_0x39a392(0x2d6)]!=null&&!Number['isInteger'](_0x115e6a[_0x39a392(0x2d6)]))throw new Error(_0x39a392(0x90c));if(_0x115e6a[_0x39a392(0x904)]!=null&&(!Number[_0x39a392(0x35e)](_0x115e6a['ttl'])||_0x115e6a[_0x39a392(0x904)]<0x0))throw new Error(_0x39a392(0x35d));for(const _0x108049 of[_0x39a392(0x75d),'failed_ttl']){if(_0x115e6a[_0x108049]!=null&&(!Number['isInteger'](_0x115e6a[_0x108049])||_0x115e6a[_0x108049]<0x0))throw new Error(_0x39a392(0x29f)+_0x108049+_0x39a392(0x467));}if(_0x115e6a[_0x39a392(0x49d)]!=null&&!Array[_0x39a392(0x239)](_0x115e6a[_0x39a392(0x49d)]))throw new Error(_0x39a392(0x86a));_0xaa3532(_0x115e6a['logCap']);}if(_0x441029['payload_schema']!=null){if(!_0x52ca4d(_0x441029[_0x39a392(0x263)]))throw new Error('job_type.payload_schema\x20must\x20be\x20object|null');if(!_0x52ca4d(_0x441029[_0x39a392(0x263)][_0x39a392(0x21e)]))throw new Error(_0x39a392(0x8aa));if(typeof _0x441029[_0x39a392(0x263)][_0x39a392(0x67c)]!==_0x39a392(0x2a4))throw new Error(_0x39a392(0x221));}for(const _0x3329ad of[_0x39a392(0x5b7),_0x39a392(0x2da)]){if(typeof _0x441029[_0x3329ad]!==_0x39a392(0x645)||!Number[_0x39a392(0x35c)](_0x441029[_0x3329ad]))throw new Error('job_type.'+_0x3329ad+_0x39a392(0x56f));}}function _0x221a7f(_0x573fab){const _0x1a3478=_0x20dd20;if(!_0x52ca4d(_0x573fab))throw new Error('bucket\x20must\x20be\x20object');if(typeof _0x573fab['id']!==_0x1a3478(0x6d1)||!_0x573fab['id']['trim']())throw new Error(_0x1a3478(0x501));if(!Number[_0x1a3478(0x35e)](_0x573fab[_0x1a3478(0x403)])||_0x573fab['tokens']<0x0)throw new Error(_0x1a3478(0x5c9));if(!Number[_0x1a3478(0x35e)](_0x573fab['capacity'])||_0x573fab['capacity']<0x0)throw new Error('bucket.capacity\x20must\x20be\x20int\x20>=\x200');if(_0x573fab[_0x1a3478(0x403)]>_0x573fab[_0x1a3478(0x1e8)])throw new Error('bucket.tokens\x20cannot\x20exceed\x20capacity');if(!Number[_0x1a3478(0x35e)](_0x573fab[_0x1a3478(0x61e)])||_0x573fab[_0x1a3478(0x61e)]<0x0)throw new Error('bucket.refill_amount\x20must\x20be\x20int\x20>=\x200');if(!Number['isInteger'](_0x573fab[_0x1a3478(0x2df)])||_0x573fab[_0x1a3478(0x2df)]<0x0)throw new Error(_0x1a3478(0x76d));if(typeof _0x573fab['updated']!==_0x1a3478(0x645)||!Number[_0x1a3478(0x35c)](_0x573fab[_0x1a3478(0x27b)]))throw new Error(_0x1a3478(0x762));}return okdbQueueValidate={'STATUS':_0x52b99,'JOB_TYPE_STATUS':_0xed8d33,'QUEUE_EVENTS':_0x5bc447,'LOG_LEVELS':_0x5bec9b,'LOG_CAP_MIN':_0x235e91,'LOG_CAP_MAX':_0x118711,'clampInt':_0x4d1319,'asNullableString':_0x44fb97,'normalizeResult':_0x34b192,'normalizeTags':_0x540851,'normalizeBucket':_0x3ae4a7,'normalizeBuckets':_0x5793cd,'normalizeLogEntry':_0x56f056,'validateJobShape':_0x70b02b,'validateJobTypeShape':_0x294b13,'validateBucketShape':_0x221a7f},okdbQueueValidate;}var okdbTimers,hasRequiredOkdbTimers;function requireOkdbTimers(){if(hasRequiredOkdbTimers)return okdbTimers;hasRequiredOkdbTimers=0x1;const _0x56f9b0=0x2**0x1f-0x1;function _0x42bf28(_0x51469f){if(!(_0x51469f>0x0))return 0x0;return _0x51469f>_0x56f9b0?_0x56f9b0:_0x51469f;}function _0x55d38d(_0x3d2c96){return _0x3d2c96===Infinity;}return okdbTimers={'MAX_TIMER_DELAY':_0x56f9b0,'clampTimerDelay':_0x42bf28,'isNeverDelay':_0x55d38d},okdbTimers;}var okdbChangefeed,hasRequiredOkdbChangefeed;function requireOkdbChangefeed(){const _0x355969=_0x7b0c8f;if(hasRequiredOkdbChangefeed)return okdbChangefeed;hasRequiredOkdbChangefeed=0x1;const _0x3ebb08=require$$0$6,{clampTimerDelay:_0x57c86b}=requireOkdbTimers(),{EVENTS:_0x5d0c1f,CHANGE_ACTIONS:_0x349768}=requireOkdbEnums(),{LOOP:_0x310ae5}=requireOkdbLoopMonitor(),_0x4b50c7=Number(process.env.OKDB_CHANGEFEED_QUANTUM)||0x3e8,_0x2c700a=0x5,_0x3322e6=0x2710;class _0x3a9d9f extends _0x3ebb08{constructor(_0x5595d3,_0x30e190={}){const _0x3ccfed=_0xf27e;super(),this[_0x3ccfed(0x709)]=_0x5595d3,this[_0x3ccfed(0x262)]=_0x30e190[_0x3ccfed(0x218)]??_0x4b50c7,this[_0x3ccfed(0x584)]=_0x30e190['flushDebounce']??_0x2c700a,this['_dedupeMax']=_0x30e190['dedupeMax']??_0x3322e6,this[_0x3ccfed(0x432)]=![],this[_0x3ccfed(0x53d)]=new Map(),this['_baselines']=new Map(),this[_0x3ccfed(0x316)]=new Map(),this[_0x3ccfed(0x34e)]=null,this[_0x3ccfed(0x4b2)]=![],this[_0x3ccfed(0x4b9)]=new Set(),this[_0x3ccfed(0x7d6)]=new Set(),this[_0x3ccfed(0x590)]=_0x120023=>this[_0x3ccfed(0x90b)](_0x120023),this[_0x3ccfed(0x7d9)]=_0x599907=>this['_handlePending'](_0x599907),this[_0x3ccfed(0x8c4)]=_0x337469=>this['_handlePoke'](_0x337469),this['_onStop']=()=>this[_0x3ccfed(0x61d)]();}[_0x355969(0x8a9)](){const _0x5428f8=_0x355969;if(this[_0x5428f8(0x432)])return;this['_started']=!![];for(const [_0x2633a7,_0x1e48b2]of this[_0x5428f8(0x709)][_0x5428f8(0x4b1)]){if(_0x2633a7[_0x5428f8(0x5ae)]('~'))continue;try{_0x1e48b2[_0x5428f8(0x7ba)]();}catch{}}for(const [_0x57318e,_0x547756]of this[_0x5428f8(0x709)][_0x5428f8(0x4b1)]){if(_0x57318e[_0x5428f8(0x5ae)]('~'))continue;try{this[_0x5428f8(0x447)][_0x5428f8(0x8db)](_0x57318e,_0x547756[_0x5428f8(0x788)]()||0x0);}catch{}}const {events:_0x18ecc9}=this['okdb'];_0x18ecc9['on'](_0x5d0c1f[_0x5428f8(0x458)],this[_0x5428f8(0x7d9)]),_0x18ecc9['on'](_0x5d0c1f[_0x5428f8(0x4a7)],this[_0x5428f8(0x590)]),_0x18ecc9['on'](_0x5d0c1f[_0x5428f8(0x87b)],this[_0x5428f8(0x590)]),_0x18ecc9['on'](_0x5d0c1f[_0x5428f8(0x746)],this[_0x5428f8(0x590)]),_0x18ecc9['on'](_0x5d0c1f[_0x5428f8(0x2ad)],this['_onPoke']),_0x18ecc9['once'](_0x5d0c1f['SYSTEM_STOPPED'],this[_0x5428f8(0x75c)]);}[_0x355969(0x61d)](){const _0x57c29b=_0x355969;if(!this[_0x57c29b(0x432)])return;this[_0x57c29b(0x432)]=![];const {events:_0x2e56b4}=this['okdb'];_0x2e56b4[_0x57c29b(0x2ae)](_0x5d0c1f[_0x57c29b(0x458)],this[_0x57c29b(0x7d9)]),_0x2e56b4[_0x57c29b(0x2ae)](_0x5d0c1f[_0x57c29b(0x4a7)],this[_0x57c29b(0x590)]),_0x2e56b4[_0x57c29b(0x2ae)](_0x5d0c1f[_0x57c29b(0x87b)],this[_0x57c29b(0x590)]),_0x2e56b4[_0x57c29b(0x2ae)](_0x5d0c1f[_0x57c29b(0x746)],this['_onItem']),_0x2e56b4[_0x57c29b(0x2ae)](_0x5d0c1f[_0x57c29b(0x2ad)],this[_0x57c29b(0x8c4)]);try{_0x2e56b4['off'](_0x5d0c1f[_0x57c29b(0x6fa)],this[_0x57c29b(0x75c)]);}catch{}this[_0x57c29b(0x34e)]&&(clearTimeout(this[_0x57c29b(0x34e)]),this[_0x57c29b(0x34e)]=null),this['_pending'][_0x57c29b(0x510)](),this[_0x57c29b(0x53d)][_0x57c29b(0x510)](),this['_baselines'][_0x57c29b(0x510)](),this[_0x57c29b(0x4b9)]['clear'](),this[_0x57c29b(0x7d6)]['clear']();}[_0x355969(0x2b2)](_0x4df7a4,_0xf77f5,_0x2127b0,_0x274dab){return _0x4df7a4+'\x00'+_0xf77f5+'\x00'+_0x2127b0+'\x00'+_0x274dab;}[_0x355969(0x823)](_0x480b69,_0x4a8b38,_0x2abae8,_0x35115b){const _0x2f593b=_0x355969,_0x5c1d51=this['_dedupeKey'](_0x480b69,_0x4a8b38,_0x2abae8,_0x35115b);if(this[_0x2f593b(0x4b9)]['has'](_0x5c1d51))return![];this[_0x2f593b(0x4b9)][_0x2f593b(0x737)](_0x5c1d51);if(this[_0x2f593b(0x4b9)]['size']>this[_0x2f593b(0x556)]){const _0x30f745=this[_0x2f593b(0x4b9)][_0x2f593b(0x5fe)]()[_0x2f593b(0x84c)]()[_0x2f593b(0x59b)];this['_seen'][_0x2f593b(0x610)](_0x30f745);}return!![];}[_0x355969(0x858)](_0x371c84){const _0x5d51cc=_0x355969;if(!this[_0x5d51cc(0x432)]||!_0x371c84)return;const {env:_0x42f898,type:_0x3cfcde,key:_0x577d97,clock:_0x45099b}=_0x371c84;if(_0x42f898==null||_0x3cfcde==null||_0x577d97==null)return;if(typeof _0x42f898===_0x5d51cc(0x6d1)&&_0x42f898[_0x5d51cc(0x5ae)]('~'))return;if(typeof _0x3cfcde===_0x5d51cc(0x6d1)&&_0x3cfcde['startsWith']('~'))return;this[_0x5d51cc(0x7d6)]['add'](this['_dedupeKey'](_0x42f898,_0x3cfcde,_0x577d97,_0x45099b)),this['_pendingLocal'][_0x5d51cc(0x625)]>this[_0x5d51cc(0x556)]&&this['_pendingLocal']['delete'](this[_0x5d51cc(0x7d6)][_0x5d51cc(0x5fe)]()[_0x5d51cc(0x84c)]()[_0x5d51cc(0x59b)]);}[_0x355969(0x90b)](_0x329f47){const _0x3b36b8=_0x355969;if(!this[_0x3b36b8(0x432)]||!_0x329f47)return;const {env:_0xb11c1e,type:_0x220dd7,key:_0x26ba1f,clock:_0x3be9aa,origin:_0x58e22f,action:_0x1d9a36,newValue:_0x4b39e7,oldValue:_0x306512}=_0x329f47;if(_0xb11c1e==null||_0x220dd7==null||_0x26ba1f==null)return;if(typeof _0xb11c1e===_0x3b36b8(0x6d1)&&_0xb11c1e[_0x3b36b8(0x5ae)]('~'))return;if(typeof _0x220dd7===_0x3b36b8(0x6d1)&&_0x220dd7[_0x3b36b8(0x5ae)]('~'))return;this[_0x3b36b8(0x7d6)][_0x3b36b8(0x610)](this[_0x3b36b8(0x2b2)](_0xb11c1e,_0x220dd7,_0x26ba1f,_0x3be9aa));if(!this[_0x3b36b8(0x823)](_0xb11c1e,_0x220dd7,_0x26ba1f,_0x3be9aa))return;const _0x914c66=_0x1d9a36===_0x349768[_0x3b36b8(0x36a)]?'remove':'put';this[_0x3b36b8(0x224)]('change',{'env':_0xb11c1e,'type':_0x220dd7,'key':_0x26ba1f,'op':_0x914c66,'clock':_0x3be9aa,'origin':_0x58e22f,'value':_0x914c66==='remove'?null:_0x4b39e7,'prevValue':_0x306512});}[_0x355969(0x4b0)](_0x30a718){const _0x5ec493=_0x355969;if(!this[_0x5ec493(0x432)])return;if(!_0x30a718||typeof _0x30a718[_0x5ec493(0x67a)]!==_0x5ec493(0x6d1)||typeof _0x30a718[_0x5ec493(0x326)]!==_0x5ec493(0x6d1))return;const {env:_0x1085b6,type:_0x54fc74}=_0x30a718;if(_0x1085b6[_0x5ec493(0x5ae)]('~')||_0x54fc74[_0x5ec493(0x5ae)]('~'))return;this[_0x5ec493(0x316)][_0x5ec493(0x8db)](_0x1085b6+'\x00'+_0x54fc74,{'env':_0x1085b6,'type':_0x54fc74}),this[_0x5ec493(0x7b2)]();}['_scheduleFlush'](){const _0x4f4beb=_0x355969;if(this[_0x4f4beb(0x34e)])return;const _0xbded26=()=>{const _0x10c7cf=_0x4f4beb;this['_flushTimer']=null,this[_0x10c7cf(0x477)]()['catch'](()=>{});};this[_0x4f4beb(0x34e)]=setTimeout(_0xbded26,_0x57c86b(this['_flushDebounce']));}async[_0x355969(0x477)](){const _0x4c2555=_0x355969;if(this['_draining']){this[_0x4c2555(0x7b2)]();return;}this[_0x4c2555(0x4b2)]=!![];try{const _0x346f2f=[...this['_pending'][_0x4c2555(0x5fe)]()];this[_0x4c2555(0x316)][_0x4c2555(0x510)]();let _0x2b40e8=![];for(const {env:_0x52d1c5,type:_0x1e9f87}of _0x346f2f){try{const _0x115707=await this['_drainOne'](_0x52d1c5,_0x1e9f87);if(_0x115707)_0x2b40e8=!![];}catch{this['_pending'][_0x4c2555(0x8db)](_0x52d1c5+'\x00'+_0x1e9f87,{'env':_0x52d1c5,'type':_0x1e9f87}),_0x2b40e8=!![];}}if(_0x2b40e8||this['_pending']['size']>0x0)this[_0x4c2555(0x7b2)]();}finally{this[_0x4c2555(0x4b2)]=![];}}async['_drainOne'](_0x3ae814,_0x1aaddf){const _0x48c59b=_0x355969,_0x32c905=await this[_0x48c59b(0x709)][_0x48c59b(0x27d)](_0x3ae814),_0x4e2851=_0x3ae814+'\x00'+_0x1aaddf;!this['_cursors'][_0x48c59b(0x5ed)](_0x4e2851)&&(!this[_0x48c59b(0x447)][_0x48c59b(0x5ed)](_0x3ae814)&&(_0x32c905[_0x48c59b(0x7ba)](),this[_0x48c59b(0x447)]['set'](_0x3ae814,_0x32c905[_0x48c59b(0x788)]()||0x0)),this[_0x48c59b(0x53d)][_0x48c59b(0x8db)](_0x4e2851,this[_0x48c59b(0x447)][_0x48c59b(0x341)](_0x3ae814)));const _0x5a7e60=this[_0x48c59b(0x53d)][_0x48c59b(0x341)](_0x4e2851),_0xe7c09e=_0x32c905[_0x48c59b(0x788)](_0x1aaddf)||0x0;if(_0xe7c09e<=_0x5a7e60)return![];const _0x1dbab7=_0x5a7e60+this[_0x48c59b(0x262)],_0x4caaba=Math[_0x48c59b(0x644)](_0xe7c09e,_0x1dbab7),_0x24a6dd=_0x310ae5[_0x48c59b(0x20e)]?_0x310ae5['now']():0x0,_0x38ff79=Array[_0x48c59b(0x875)](_0x32c905[_0x48c59b(0x8c0)](_0x1aaddf,_0x5a7e60+0x1,_0x4caaba));let _0x53d38e=_0x5a7e60;for(const _0x3ecc28 of _0x38ff79){const {clock:_0x2072a5,key:_0x44f7ae,action:_0x49a036,origin:_0x4dd8eb}=_0x3ecc28;if(_0x2072a5>_0x53d38e)_0x53d38e=_0x2072a5;if(_0x44f7ae==null)continue;if(this[_0x48c59b(0x7d6)]['has'](this[_0x48c59b(0x2b2)](_0x3ae814,_0x1aaddf,_0x44f7ae,_0x2072a5)))continue;if(!this['_markSeen'](_0x3ae814,_0x1aaddf,_0x44f7ae,_0x2072a5))continue;let _0x24f637,_0x49063c;if(_0x49a036===_0x349768['REMOVE'])_0x24f637='remove',_0x49063c=null;else{const _0x435710=_0x32c905[_0x48c59b(0x341)](_0x1aaddf,_0x44f7ae);_0x435710==null?(_0x24f637=_0x48c59b(0x694),_0x49063c=null):(_0x24f637=_0x48c59b(0x4a2),_0x49063c=_0x435710);}this[_0x48c59b(0x224)]('change',{'env':_0x3ae814,'type':_0x1aaddf,'key':_0x44f7ae,'op':_0x24f637,'clock':_0x2072a5,'origin':_0x4dd8eb,'value':_0x49063c});}if(_0x310ae5[_0x48c59b(0x20e)])_0x310ae5[_0x48c59b(0x1ca)](_0x48c59b(0x52c)+_0x3ae814+':'+_0x1aaddf,_0x310ae5[_0x48c59b(0x274)]()-_0x24a6dd,'n='+_0x38ff79[_0x48c59b(0x7e0)]);return this[_0x48c59b(0x53d)]['set'](_0x4e2851,Math[_0x48c59b(0x3d2)](_0x53d38e,_0x4caaba)),_0x32c905[_0x48c59b(0x788)](_0x1aaddf)>_0x4caaba;}[_0x355969(0x602)](){const _0x39bbb1=_0x355969;return{'started':this[_0x39bbb1(0x432)],'quantum':this['_quantum'],'flushDebounce':this[_0x39bbb1(0x584)],'cursors':Object[_0x39bbb1(0x424)]([...this[_0x39bbb1(0x53d)]['entries']()][_0x39bbb1(0x59f)](([_0x17f0a4,_0xbdfe9e])=>[_0x17f0a4[_0x39bbb1(0x8c7)]('\x00',':'),_0xbdfe9e])),'pending':this[_0x39bbb1(0x316)]['size'],'seen':this['_seen'][_0x39bbb1(0x625)]};}}return _0x3a9d9f[_0x355969(0x2ac)]=_0x4b50c7,okdbChangefeed={'OKDBChangefeed':_0x3a9d9f},okdbChangefeed;}var okdbRelay,hasRequiredOkdbRelay;function requireOkdbRelay(){const _0x4f4c8d=_0x7b0c8f;if(hasRequiredOkdbRelay)return okdbRelay;hasRequiredOkdbRelay=0x1;const {EVENTS:_0x5a8ae6}=requireOkdbEnums(),_0x46a9b8=new Set([_0x5a8ae6[_0x4f4c8d(0x4a7)],_0x5a8ae6[_0x4f4c8d(0x87b)],_0x5a8ae6[_0x4f4c8d(0x746)]]),{ENGINE_EVENTS:_0x2e76b1}=requireOkdbEnginesEnums(),{EMBEDDINGS_EVENTS:_0x12d600}=requireEnums(),{QUEUE_EVENTS:_0xf39d19}=requireOkdbQueueValidate(),_0x2c0a2e=Object['values'](_0x5a8ae6),_0x457012=Object[_0x4f4c8d(0x5fe)](_0x2e76b1)[_0x4f4c8d(0x59f)](_0x54287f=>_0x4f4c8d(0x452)+_0x54287f),_0x442188=Object['values'](_0x12d600),_0x44a639=Object[_0x4f4c8d(0x5fe)](_0xf39d19),_0x5efc50=[_0x4f4c8d(0x280),_0x4f4c8d(0x435),_0x4f4c8d(0x7bd),_0x4f4c8d(0x2f4),_0x4f4c8d(0x907),'processor:retry'],_0xa03fc8=[..._0x2c0a2e,..._0x457012,..._0x442188,..._0x44a639,..._0x5efc50,_0x4f4c8d(0x5a7)],_0x31c63a=new Set(_0xa03fc8),_0x428dec=new Set([_0x5a8ae6['ITEM_CREATE'],_0x5a8ae6[_0x4f4c8d(0x87b)],_0x5a8ae6[_0x4f4c8d(0x746)],_0x5a8ae6[_0x4f4c8d(0x63c)],_0x5a8ae6[_0x4f4c8d(0x8b0)],_0x5a8ae6['TXN_ROLLBACK'],_0x5a8ae6[_0x4f4c8d(0x330)],_0x5a8ae6[_0x4f4c8d(0x1c0)],_0x12d600[_0x4f4c8d(0x2a1)],_0x12d600[_0x4f4c8d(0x5bd)],_0x12d600['INDEXER_DOC_QUEUED'],_0x12d600[_0x4f4c8d(0x4ce)],_0x4f4c8d(0x435)]),_0x177bc0=_0xa03fc8['filter'](_0xe7f7c3=>_0xe7f7c3===_0x4f4c8d(0x5a7)||!_0x428dec[_0x4f4c8d(0x5ed)](_0xe7f7c3)),_0x3ac6c2=0x14,_0x276c26=0xc8;class _0x4ad300{constructor(_0x6cf47d,_0x64aa6a={}){const _0x3cab5b=_0x4f4c8d;this[_0x3cab5b(0x709)]=_0x6cf47d,this[_0x3cab5b(0x3a1)]=_0x64aa6a[_0x3cab5b(0x7d0)]??_0x3ac6c2,this[_0x3cab5b(0x1eb)]=_0x64aa6a[_0x3cab5b(0x3e0)]??_0x276c26,this[_0x3cab5b(0x6b0)]=new Set(),this[_0x3cab5b(0x4cb)]=[],this[_0x3cab5b(0x301)]=[],this['_detachLog']=null,this[_0x3cab5b(0x46d)]=![],this[_0x3cab5b(0x40d)]=null,this['_onFeedChange']=null;}[_0x4f4c8d(0x821)](){const _0x5e2f7d=_0x4f4c8d;if(this[_0x5e2f7d(0x46d)])return;this[_0x5e2f7d(0x46d)]=!![];const {okdb:_0x15b55a}=this;this['_detachLog']=_0x15b55a[_0x5e2f7d(0x5a7)][_0x5e2f7d(0x821)](_0x4d4e8f=>this[_0x5e2f7d(0x2a0)]('log',_0x4d4e8f));for(const _0x315a4a of _0xa03fc8){if(_0x315a4a===_0x5e2f7d(0x5a7))continue;const _0x3efac5=_0x46a9b8[_0x5e2f7d(0x5ed)](_0x315a4a),_0x272a87=_0x448015=>{const _0x147244=_0x5e2f7d;if(_0x3efac5&&this[_0x147244(0x40d)])return;this[_0x147244(0x2a0)](_0x315a4a,_0x448015??{});};_0x15b55a[_0x5e2f7d(0x4a6)]['on'](_0x315a4a,_0x272a87),this[_0x5e2f7d(0x301)][_0x5e2f7d(0x247)]({'event':_0x315a4a,'handler':_0x272a87});}this[_0x5e2f7d(0x75c)]=()=>this[_0x5e2f7d(0x2be)](),_0x15b55a[_0x5e2f7d(0x4a6)][_0x5e2f7d(0x2bd)](_0x5a8ae6[_0x5e2f7d(0x6fa)],this['_onStop']);}[_0x4f4c8d(0x2be)](){const _0x3615bb=_0x4f4c8d;if(!this[_0x3615bb(0x46d)])return;if(this[_0x3615bb(0x75c)]){try{this[_0x3615bb(0x709)][_0x3615bb(0x4a6)][_0x3615bb(0x2ae)](_0x5a8ae6['SYSTEM_STOPPED'],this['_onStop']);}catch{}this['_onStop']=null;}this[_0x3615bb(0x2f7)]?.(),this[_0x3615bb(0x2f7)]=null;for(const {event:_0x2452ed,handler:_0x2ed239}of this['_listeners']){try{this[_0x3615bb(0x709)]['events']['off'](_0x2452ed,_0x2ed239);}catch{}}this['_listeners']=[];for(const _0x34d4f6 of this[_0x3615bb(0x6b0)]){try{_0x34d4f6['close']?.();}catch{}}this[_0x3615bb(0x6b0)]['clear'](),this[_0x3615bb(0x85a)](),this[_0x3615bb(0x46d)]=![];}[_0x4f4c8d(0x524)](_0x1fa486){const _0x1e7db6=_0x4f4c8d;if(!_0x1fa486||this[_0x1e7db6(0x40d)]===_0x1fa486)return;this[_0x1e7db6(0x85a)](),this[_0x1e7db6(0x40d)]=_0x1fa486,this[_0x1e7db6(0x3b2)]=_0xc513=>{const _0x1765ab=_0x1e7db6;if(!_0xc513)return;const _0x244bce=_0xc513['op']===_0x1765ab(0x694)?_0x5a8ae6[_0x1765ab(0x746)]:_0x5a8ae6[_0x1765ab(0x87b)];this[_0x1765ab(0x2a0)](_0x244bce,_0xc513);},_0x1fa486['on'](_0x1e7db6(0x6af),this[_0x1e7db6(0x3b2)]);}['detachFeed'](){const _0x4205f2=_0x4f4c8d;if(this[_0x4205f2(0x40d)]&&this[_0x4205f2(0x3b2)])try{this[_0x4205f2(0x40d)][_0x4205f2(0x2ae)](_0x4205f2(0x6af),this[_0x4205f2(0x3b2)]);}catch{}this['_feed']=null,this[_0x4205f2(0x3b2)]=null;}['pushEphemeral'](_0x2ed6f8,_0x1b18e4){const _0x218b9f=_0x4f4c8d;if(!_0x31c63a[_0x218b9f(0x5ed)](_0x2ed6f8))return;this['_push'](_0x2ed6f8,_0x1b18e4??{});}[_0x4f4c8d(0x42e)](_0x5105f8,_0x157172,_0x136763){const _0x87e162=_0x4f4c8d;if(this['_connections']['size']>=this['_maxConnections'])return _0x157172('relay:error',{'message':_0x87e162(0x64d),'code':_0x87e162(0x26c)}),()=>{};const _0x333e2d=this['_resolveFilter'](_0x5105f8),_0x3e3874={'send':_0x157172,'filter':_0x333e2d,'close':_0x136763??null};this[_0x87e162(0x6b0)][_0x87e162(0x737)](_0x3e3874);for(const {event:_0x3697ef,data:_0x51a0c3}of this[_0x87e162(0x4cb)]){if(_0x333e2d[_0x87e162(0x5ed)](_0x3697ef))try{_0x157172(_0x3697ef,_0x51a0c3);}catch{}}return()=>this[_0x87e162(0x6b0)]['delete'](_0x3e3874);}[_0x4f4c8d(0x377)](){const _0x260bff=_0x4f4c8d;if(this[_0x260bff(0x40d)])return this['_feed'];const {OKDBChangefeed:_0xac7d82}=requireOkdbChangefeed(),_0x22fd46=new _0xac7d82(this[_0x260bff(0x709)]);_0x22fd46['start'](),this['attachFeed'](_0x22fd46);if(this[_0x260bff(0x709)]&&!this[_0x260bff(0x709)][_0x260bff(0x34c)])this[_0x260bff(0x709)][_0x260bff(0x34c)]=_0x22fd46;return this[_0x260bff(0x40d)];}get[_0x4f4c8d(0x542)](){const _0x4774b4=_0x4f4c8d;return this[_0x4774b4(0x6b0)][_0x4774b4(0x625)];}[_0x4f4c8d(0x7ad)](){const _0x44e798=_0x4f4c8d;return{'connections':this['connectionCount'],'bufferSize':this[_0x44e798(0x4cb)]['length'],'attached':this['_attached'],'allEvents':_0xa03fc8[_0x44e798(0x7e0)],'defaultEvents':_0x177bc0[_0x44e798(0x7e0)]};}static get[_0x4f4c8d(0x1f9)](){return _0xa03fc8;}static get['DEFAULT_EVENTS'](){return _0x177bc0;}static get[_0x4f4c8d(0x655)](){return[..._0x428dec];}[_0x4f4c8d(0x56c)](_0x4898da){const _0x1bc48d=_0x4f4c8d;if(!_0x4898da||!_0x4898da['length'])return new Set(_0x177bc0);const _0x3f5354=_0x4898da[_0x1bc48d(0x4bf)](_0x444b11=>_0x31c63a[_0x1bc48d(0x5ed)](_0x444b11));return new Set(_0x3f5354[_0x1bc48d(0x7e0)]?_0x3f5354:_0x177bc0);}[_0x4f4c8d(0x2a0)](_0x2dee41,_0x434e26){const _0x24a616=_0x4f4c8d,_0x4c6f1c={..._0x434e26,'_ts':_0x434e26?.[_0x24a616(0x5a3)]??_0x434e26?.['ts']??Date[_0x24a616(0x274)]()};this[_0x24a616(0x4cb)][_0x24a616(0x247)]({'event':_0x2dee41,'data':_0x4c6f1c});if(this[_0x24a616(0x4cb)]['length']>this[_0x24a616(0x1eb)])this[_0x24a616(0x4cb)][_0x24a616(0x249)]();for(const _0x13fe59 of this[_0x24a616(0x6b0)]){if(_0x13fe59[_0x24a616(0x4bf)][_0x24a616(0x5ed)](_0x2dee41))try{_0x13fe59[_0x24a616(0x717)](_0x2dee41,_0x4c6f1c);}catch{}}}}return okdbRelay=_0x4ad300,okdbRelay;}var hasRequiredLib;function requireLib(){const _0xafb86f=_0x7b0c8f;if(hasRequiredLib)return lib[_0xafb86f(0x3ec)];return hasRequiredLib=0x1,function(_0x44188a){const _0x39c760=_0xafb86f,_0x29760b=require$$0$6,{load:_0x5b662c}=require$$1$1,_0x1c7293=requireBridge(),_0xd3e9b5=requireWritebatch(),{Pumper:_0x238d08}=requirePump(),{OKDBEnv:_0x4bc140,HIGH_SENTINEL:_0x1f7d26}=requireEnv(),{reclass:_0x3db6f4,NotImplementedNative:_0x3bcb80,OKDBError:_0x558529,optionsArg:_0x31ad2a,invalidArgument:_0x10dae0}=requireErrors(),{notImplemented:_0x40c03c}=requireUnsupported(),{OKDBHttp:_0x50813e}=requireHttp(),{OKDBFts:_0x107303}=requireFts(),{OKDBEmbeddings:_0xe051f9}=requireEmbeddings(),{OKDBAuth:_0x183845}=requireAuth(),{OKDBSync:_0x44c37b}=requireSync(),{OKDBMigrate:_0x2bd701}=requireMigrate(),{OKDBFunctions:_0x364dbf}=requireFunctions(),{OKDBMcp:_0x10e6c0}=requireMcp(),{OKDBEngines:_0x358a5d,OKDBPipelines:_0x584233}=requireEngines(),{makeMeta:_0x4a3b61,makeLicenses:_0x38d282,makeLicenseChecker:_0x57569e,makeProcesses:_0x3acd1c}=requireSys();let _0x42567f=null;function _0x3a8d50(_0x31b354){const _0x35c9af=_0xf27e;if(!_0x42567f){const {Unpackr:_0x2d348f}=require$$18;_0x42567f=new _0x2d348f({'useRecords':![],'mapsAsObjects':!![],'copyBuffers':!![]});}return _0x42567f[_0x35c9af(0x53a)](_0x31b354);}let _0x57f292=null;function _0x3f34c5(_0x703617,_0x300519){const _0x4c615a=_0xf27e;if(!_0x57f292){const {Unpackr:_0x6dabdf}=require$$18;_0x57f292=new _0x6dabdf({'copyBuffers':!![]});}return _0x57f292[_0x4c615a(0x53a)](_0x703617,_0x300519);}const {encodeKey:_0x12d346,KEY_BUF_SIZE:_0x1f3e81,NO_FAST:_0x582f9a}=requireKeyenc(),_0xdd9a54=0x40*0x400,_0x31d982=0x4*0x400*0x400;function _0x4a5133(_0x4aef14,_0x708dd2){const _0x5bff44=_0xf27e,_0x206c41=_0x4aef14[0x2],_0x465ced=_0x206c41?(_0x4aef14[_0x5bff44(0x7e0)]-0x3)/Math['abs'](_0x206c41):0x0,_0x17ff88=new Array(_0x465ced);let _0x5549e5=0x3;if(_0x206c41===0x2){for(let _0x3ab962=0x0;_0x3ab962<_0x465ced;_0x3ab962++,_0x5549e5+=0x2)_0x17ff88[_0x3ab962]={'key':_0x4aef14[_0x5549e5],'value':_0x4aef14[_0x5549e5+0x1]};}else{if(_0x206c41===0x3){for(let _0x49476c=0x0;_0x49476c<_0x465ced;_0x49476c++,_0x5549e5+=0x3)_0x17ff88[_0x49476c]={'key':_0x4aef14[_0x5549e5],'value':_0x4aef14[_0x5549e5+0x1],'version':_0x4aef14[_0x5549e5+0x2]};}else{if(_0x206c41===-0x2){for(let _0x475633=0x0;_0x475633<_0x465ced;_0x475633++,_0x5549e5+=0x2)_0x17ff88[_0x475633]={'clock':_0x4aef14[_0x5549e5],..._0x4aef14[_0x5549e5+0x1]};}else{if(_0x206c41===0x4){for(let _0x19a662=0x0;_0x19a662<_0x465ced;_0x19a662++,_0x5549e5+=0x4)_0x17ff88[_0x19a662]={'key':_0x4aef14[_0x5549e5],'value':_0x4aef14[_0x5549e5+0x1],'version':_0x4aef14[_0x5549e5+0x2],'indexKey':_0x4aef14[_0x5549e5+0x3]};}else{if(_0x465ced)throw new Error(_0x5bff44(0x40c)+_0x206c41);}}}}return _0x708dd2?[_0x4aef14[0x0],_0x17ff88,_0x4aef14[0x1]]:_0x17ff88;}let _0x15e1f0=null;function _0x269ebd(_0x59297b,_0x2c6017,_0x5d2b6a){const _0x6d18d2=_0xf27e;if(!_0x15e1f0)_0x15e1f0=requireDist()[_0x6d18d2(0x1cb)];const _0x162695=new DataView(_0x59297b[_0x6d18d2(0x65e)],_0x59297b['byteOffset'],_0x2c6017),_0x213a5c=_0x162695[_0x6d18d2(0x580)](0x10,!![]),_0x5371b4=new Array(_0x213a5c);let _0x27df74=0x14;for(let _0x2e5459=0x0;_0x2e5459<_0x213a5c;_0x2e5459++){const _0x290b97=_0x59297b[_0x27df74]|_0x59297b[_0x27df74+0x1]<<0x8;_0x27df74+=0x2,_0x5371b4[_0x2e5459]=_0x15e1f0(_0x59297b,_0x27df74,_0x27df74+_0x290b97),_0x27df74+=_0x290b97;}return _0x5d2b6a?[_0x162695[_0x6d18d2(0x704)](0x0,!![]),_0x5371b4,_0x162695['getFloat64'](0x8,!![])]:_0x5371b4;}const _0x59de76=requireOkdbLogger(),_0x516fa0=requireOkdbPlugins(),{OKDB_STATE:_0x2f4f3c,EVENTS:_0x1ce67e}=requireOkdbEnums(),_0x53fcd3=requireStatics();let _0x348261=null,_0x4ea969=![],_0x5babf3=0x1;const _0xe35ab4=new Map(),_0x33fa61=new Set([_0x39c760(0x231),_0x39c760(0x78b)]),_0xccc32f=_0x460a99=>!!_0x460a99&&_0x33fa61['has'](_0x460a99['code']),_0x19315b=Number(process.env.OKDB_PENDING_RETRY_MS)>0x0?Number(process.env.OKDB_PENDING_RETRY_MS):0x1d4c0;function _0x458847(){const _0x527d02=_0x39c760;!_0x4ea969&&(_0x78fe63()[_0x527d02(0x5f2)](_0x1c7293[_0x527d02(0x66f)]),_0xd3e9b5[_0x527d02(0x5e2)](_0x78fe63()),_0x4ea969=!![]);}function _0x78fe63(){if(!_0x348261)_0x348261=_0x5b662c();return _0x348261;}class _0x45ab41 extends Map{constructor(_0x46c009){const _0x4531dd=_0x39c760;super(),this[_0x4531dd(0x21a)]=_0x46c009;}[_0x39c760(0x924)](){const _0x5522a0=_0x39c760,_0x4a6340=this[_0x5522a0(0x21a)];if(!_0x4a6340[_0x5522a0(0x588)])return;let _0x58ee63;try{_0x58ee63=_0x4a6340[_0x5522a0(0x4e8)]('db',null,_0x5522a0(0x4c2),[],![]);}catch{return;}for(const _0x2b51e4 of _0x58ee63)if(!super[_0x5522a0(0x5ed)](_0x2b51e4)&&_0x4a6340['_call']('db',null,_0x5522a0(0x74f),[_0x2b51e4],![]))_0x4a6340['_ensureEnv'](_0x2b51e4);}['get'](_0x16a11b){const _0x31d7a4=_0x39c760,_0x16e655=super[_0x31d7a4(0x341)](_0x16a11b);if(_0x16e655!==undefined||typeof _0x16a11b!==_0x31d7a4(0x6d1))return _0x16e655;const _0xc19b00=this['_db'];if(_0x16a11b===_0x31d7a4(0x568))return _0xc19b00[_0x31d7a4(0x588)]?_0xc19b00[_0x31d7a4(0x2dd)][_0x31d7a4(0x843)]??undefined:undefined;if(_0xc19b00[_0x31d7a4(0x588)]&&_0xc19b00[_0x31d7a4(0x4e8)]('db',null,_0x31d7a4(0x74f),[_0x16a11b],![]))return _0xc19b00[_0x31d7a4(0x915)](_0x16a11b);if(_0xc19b00[_0x31d7a4(0x588)]&&typeof _0x16a11b===_0x31d7a4(0x6d1)&&!_0x16a11b[_0x31d7a4(0x5ae)]('~')){_0xc19b00[_0x31d7a4(0x4e8)]('db',null,_0x31d7a4(0x898),[],![]);if(_0xc19b00[_0x31d7a4(0x4e8)]('db',null,'hasEnv',[_0x16a11b],![]))return _0xc19b00[_0x31d7a4(0x915)](_0x16a11b);}return undefined;}[_0x39c760(0x5ed)](_0x4825c1){return this['get'](_0x4825c1)!==undefined;}get[_0x39c760(0x625)](){const _0x4ed50c=_0x39c760;return this[_0x4ed50c(0x924)](),super['size'];}[_0x39c760(0x88a)](){return this['_sync'](),super['keys']();}[_0x39c760(0x5fe)](){const _0x422ae0=_0x39c760;return this[_0x422ae0(0x924)](),super[_0x422ae0(0x5fe)]();}[_0x39c760(0x565)](){const _0x151281=_0x39c760;return this[_0x151281(0x924)](),super[_0x151281(0x565)]();}[_0x39c760(0x537)](_0x5f3f3b,_0x5d67f0){const _0x3b3aa5=_0x39c760;return this[_0x3b3aa5(0x924)](),super[_0x3b3aa5(0x537)](_0x5f3f3b,_0x5d67f0);}[Symbol['iterator']](){const _0x30e72f=_0x39c760;return this[_0x30e72f(0x924)](),super[Symbol[_0x30e72f(0x606)]]();}}class _0x5e8e4d{constructor(_0x3c582c,_0x47efba={}){const _0x258c12=_0x39c760,_0x79f5d4=_0x78fe63();this['path']=_0x3c582c,this[_0x258c12(0x41d)]=_0x5babf3++,this[_0x258c12(0x60d)]='db'+this[_0x258c12(0x41d)],this[_0x258c12(0x2c2)]={..._0x53fcd3[_0x258c12(0x293)],..._0x47efba,'auth':_0x47efba['auth']?{..._0x47efba[_0x258c12(0x611)]}:undefined,'lmdb':{..._0x47efba[_0x258c12(0x73d)]||{}}},this[_0x258c12(0x4a6)]=new _0x29760b(),this[_0x258c12(0x4a6)][_0x258c12(0x37f)](0x0),this[_0x258c12(0x36c)]=new Set(),this[_0x258c12(0x4a6)]['on']('newListener',_0x11787f=>this[_0x258c12(0x4c8)](_0x11787f)),this[_0x258c12(0x5a7)]=new _0x59de76(this),this['log']['attachConsole'](),_0x1c7293[_0x258c12(0x310)](this[_0x258c12(0x60d)],{'_deliver':(_0x2728d0,_0xca28b4)=>this[_0x258c12(0x69f)](_0x2728d0,_0xca28b4),'_log':_0x16630e=>{const _0x148c3a=_0x258c12;if(this[_0x148c3a(0x3b4)])this['_bootLog'][_0x148c3a(0x247)](_0x16630e);const _0x118c71=_0x16630e&&_0x16630e[_0x148c3a(0x448)];if(_0x118c71&&Object[_0x148c3a(0x36e)][_0x148c3a(0x364)][_0x148c3a(0x352)](this[_0x148c3a(0x5a7)],_0x118c71)&&typeof this[_0x148c3a(0x5a7)][_0x118c71]===_0x148c3a(0x84a)){const _0x209a0f=_0x16630e['context'];return this[_0x148c3a(0x5a7)][_0x118c71](_0x16630e[_0x148c3a(0x4fc)],{..._0x16630e[_0x148c3a(0x1b9)]||{},..._0x209a0f&&typeof _0x209a0f==='object'?_0x209a0f:{}});}return this['log']['ingest'](_0x16630e);}}),_0x458847();try{const _0x7387d0={};if(typeof _0x258c12(0x334)==='undefined'||_0x258c12(0x334)!==_0x258c12(0x334));const _0xddea1={..._0x47efba,'_clusterWorker':require('node:cluster')[_0x258c12(0x7b4)],..._0x7387d0};this[_0x258c12(0x91b)]={'instance':null,'envs':new Map()};typeof _0x47efba['encryptionKey']===_0x258c12(0x84a)&&(this[_0x258c12(0x91b)][_0x258c12(0x426)]=_0x47efba[_0x258c12(0x567)],delete _0xddea1[_0x258c12(0x567)]);if(_0x47efba['encryptionKeys']&&typeof _0x47efba[_0x258c12(0x28a)]==='object'){for(const [_0x60873b,_0x3880c3]of Object[_0x258c12(0x565)](_0x47efba[_0x258c12(0x28a)]))this[_0x258c12(0x91b)][_0x258c12(0x881)][_0x258c12(0x8db)](_0x60873b,_0x3880c3);}delete _0xddea1[_0x258c12(0x28a)],this[_0x258c12(0x6ed)]=new _0x79f5d4[(_0x258c12(0x4f2))](_0x3c582c,_0xddea1,this['_key']);}catch(_0x398bed){_0x1c7293[_0x258c12(0x200)](this[_0x258c12(0x60d)]);throw _0x3db6f4(_0x398bed);}this[_0x258c12(0x613)]=_0x2f4f3c[_0x258c12(0x57f)],this[_0x258c12(0x588)]=![],this[_0x258c12(0x4b1)]=new _0x45ab41(this),this[_0x258c12(0x5b0)]=new _0x238d08({'pump':()=>this[_0x258c12(0x6ed)][_0x258c12(0x632)]()}),this[_0x258c12(0x893)]=new _0xd3e9b5[(_0x258c12(0x4b8))](this),this['_pumper']['afterTurn']=()=>_0x1c7293['checkSignals'](),_0x1c7293[_0x258c12(0x722)](()=>this[_0x258c12(0x5b0)][_0x258c12(0x84f)](),this),_0xe35ab4[_0x258c12(0x8db)](this[_0x258c12(0x41d)],this),this[_0x258c12(0x839)]={},_0x1c7293[_0x258c12(0x47d)](this),this[_0x258c12(0x6e0)]=new _0x107303(this),this[_0x258c12(0x4a4)]=new _0xe051f9(this),this[_0x258c12(0x7ac)]=new _0x358a5d(this,null,null),this[_0x258c12(0x38e)]=new _0x584233(this,null),this[_0x258c12(0x1b9)]=_0x4a3b61(this),this[_0x258c12(0x50f)]=_0x38d282(this),this['_license']=_0x57569e(this),this[_0x258c12(0x2dd)]=_0x3acd1c(this),this[_0x258c12(0x3f3)]=_0x3c63c7(this),this[_0x258c12(0x87d)]=new _0x516fa0(this),this[_0x258c12(0x789)]=new _0x50813e(this),this[_0x258c12(0x7fd)]=new _0x44c37b(this),this[_0x258c12(0x611)]=new _0x183845(this),this[_0x258c12(0x3ba)]=new _0x364dbf(this,null),this['mcp']=new _0x10e6c0(this),this[_0x258c12(0x62b)]=_0x47efba&&_0x47efba[_0x258c12(0x62b)]===![]?null:_0x40c03c(_0x258c12(0x62b)),this['api']=_0x40c03c(_0x258c12(0x8ed)),this[_0x258c12(0x910)]=new _0x2bd701(this);}[_0x39c760(0x4e8)](_0x101e5d,_0x3c9895,_0x1d98b7,_0x5bd4fe,_0xcce77e=!![]){const _0x1ae2c5=_0x39c760;if(_0xcce77e&&this[_0x1ae2c5(0x893)]&&this[_0x1ae2c5(0x893)][_0x1ae2c5(0x5d2)][_0x1ae2c5(0x7e0)])this[_0x1ae2c5(0x893)][_0x1ae2c5(0x436)]();try{return this[_0x1ae2c5(0x6ed)]['call'](_0x101e5d,_0x3c9895,_0x1d98b7,_0x5bd4fe);}catch(_0x2a4c3a){throw _0x3db6f4(_0x2a4c3a);}finally{if(_0xcce77e)this['_pumper']['wake']();}}[_0x39c760(0x35f)](_0x355419,_0x509087,_0x522e27,_0x1aeab5){const _0x3afc45=_0x39c760;let _0x35132f;try{_0x35132f=this[_0x3afc45(0x6ed)][_0x3afc45(0x2a9)](_0x355419,_0x509087,_0x522e27,_0x1aeab5);}catch(_0x22871f){throw _0x3db6f4(_0x22871f);}return _0x35132f instanceof Uint8Array?_0x3a8d50(_0x35132f):_0x35132f[0x0];}['_readBuf'](_0x26e2c4){const _0x2565ce=_0x39c760;let _0x287ea4=this[_0x2565ce(0x80e)];if(_0x287ea4&&_0x26e2c4<=_0x287ea4[_0x2565ce(0x7e0)])return _0x287ea4;let _0x508255=_0x287ea4?_0x287ea4[_0x2565ce(0x7e0)]:_0xdd9a54;while(_0x508255<_0x26e2c4)_0x508255*=0x2;if(_0x508255>_0x31d982)return _0x287ea4;return _0x287ea4=this[_0x2565ce(0x80e)]=Buffer['allocUnsafeSlow'](_0x508255),this[_0x2565ce(0x6ed)][_0x2565ce(0x2ff)](_0x287ea4),_0x287ea4;}['_getRaw'](_0x7e1148,_0x32b04e,_0x1e0dd4){const _0x3e416b=_0x39c760;if(!this['_rbuf'])this['_readBuf'](0x0);const _0xd7336b=this['_native']['getRaw'](_0x7e1148,_0x32b04e,_0x1e0dd4);if(typeof _0xd7336b===_0x3e416b(0x645))return _0x3f34c5(this[_0x3e416b(0x80e)],_0xd7336b);if(_0xd7336b===undefined||_0xd7336b===null)return _0xd7336b;return this[_0x3e416b(0x3a2)](_0xd7336b[_0x3e416b(0x7e0)]),_0x3f34c5(_0xd7336b);}['_getFast'](_0x2b0059,_0x2e93c2,_0x595899){const _0x3fc3a2=_0x39c760;let _0x4818af=this[_0x3fc3a2(0x1f3)];if(!_0x4818af){_0x4818af=this[_0x3fc3a2(0x1f3)]=Buffer[_0x3fc3a2(0x622)](_0x1f3e81),this[_0x3fc3a2(0x6ed)][_0x3fc3a2(0x440)](_0x4818af),this[_0x3fc3a2(0x6de)]=new Map();if(!this[_0x3fc3a2(0x80e)])this[_0x3fc3a2(0x3a2)](0x0);}const _0xaf7eca=_0x12d346(_0x595899,_0x4818af);if(_0xaf7eca<0x0)return _0x582f9a;let _0x55c4a1=this['_tids'][_0x3fc3a2(0x341)](_0x2b0059);if(_0x55c4a1===undefined)this[_0x3fc3a2(0x6de)]['set'](_0x2b0059,_0x55c4a1=new Map());let _0x26525a=_0x55c4a1[_0x3fc3a2(0x341)](_0x2e93c2);if(_0x26525a===undefined)_0x55c4a1[_0x3fc3a2(0x8db)](_0x2e93c2,_0x26525a=this[_0x3fc3a2(0x6ed)][_0x3fc3a2(0x8fa)](_0x2b0059,_0x2e93c2));if(_0x26525a<0x0)return _0x582f9a;const _0x498902=this[_0x3fc3a2(0x6ed)][_0x3fc3a2(0x297)](_0x26525a,_0xaf7eca);if(typeof _0x498902===_0x3fc3a2(0x645))return _0x3f34c5(this['_rbuf'],_0x498902);if(_0x498902===undefined||_0x498902===null)return _0x498902;return this[_0x3fc3a2(0x3a2)](_0x498902['length']),_0x3f34c5(_0x498902);}[_0x39c760(0x7d3)](_0x2f88a9,_0x52b55c,_0x2be012){const _0x4da7cc=_0x39c760;if(!this[_0x4da7cc(0x80e)])this[_0x4da7cc(0x3a2)](0x0);let _0x3a1acb;try{_0x3a1acb=this[_0x4da7cc(0x6ed)][_0x4da7cc(0x7fb)](_0x2f88a9,_0x52b55c,_0x2be012);}catch(_0x385094){throw _0x3db6f4(_0x385094);}const _0x2bd497=_0x52b55c===_0x4da7cc(0x53f),_0x18e574=_0x2bd497?_0x2be012[0x1]:_0x52b55c;let _0x29b433=this[_0x4da7cc(0x80e)],_0x430046=_0x3a1acb;if(_0x3a1acb instanceof Uint8Array)this['_readBuf'](_0x3a1acb[_0x4da7cc(0x7e0)]),_0x29b433=_0x3a1acb,_0x430046=_0x3a1acb[_0x4da7cc(0x7e0)];else{if(typeof _0x3a1acb!==_0x4da7cc(0x645))return _0x3a1acb[0x0];}if(_0x18e574===_0x4da7cc(0x4fb))return _0x269ebd(_0x29b433,_0x430046,_0x2bd497);if(_0x18e574===_0x4da7cc(0x333))return _0x3f34c5(_0x29b433,_0x430046);return _0x4a5133(_0x3f34c5(_0x29b433,_0x430046),_0x2bd497);}[_0x39c760(0x1e0)](_0x2cca99,_0x25284e,_0x1ce8da,_0x5f202e,_0x7ad855=!![],_0x109058=!![]){const _0x3b04d9=_0x39c760,_0x4dc53f=()=>this[_0x3b04d9(0x83d)](()=>this['_call'](_0x2cca99,_0x25284e,_0x1ce8da,_0x5f202e,_0x7ad855));if(!_0x109058)return _0x4dc53f();return this[_0x3b04d9(0x8d4)](_0x4dc53f);}['_retryPending'](_0x53dedc){const _0x2ed189=_0x39c760;return _0x53dedc()[_0x2ed189(0x909)](async _0x19f3a0=>{const _0x5d5b14=_0x2ed189;if(!_0xccc32f(_0x19f3a0))throw _0x19f3a0;const _0x4bea5c=Date[_0x5d5b14(0x274)]()+_0x19315b;let _0x5a7ccb=0x1;while(_0xccc32f(_0x19f3a0)&&Date['now']()<_0x4bea5c){await new Promise(_0x2a986b=>setTimeout(_0x2a986b,_0x5a7ccb)),_0x5a7ccb=Math['min'](_0x5a7ccb*0x2,0x14);try{return await _0x53dedc();}catch(_0x2bacb2){_0x19f3a0=_0x2bacb2;}}throw _0x19f3a0;});}['_settleRead'](_0x178663){const _0x252ab9=_0x39c760;if(_0x1c7293[_0x252ab9(0x20f)]())return Promise[_0x252ab9(0x629)](_0x178663);return new Promise(_0x2ec6ca=>setImmediate(()=>_0x2ec6ca(_0x178663)));}[_0x39c760(0x7e3)](_0x2e4eb6){const _0xfd81a7=_0x39c760;if(_0x1c7293[_0xfd81a7(0x20f)]())return Promise[_0xfd81a7(0x629)](_0x2e4eb6);return this[_0xfd81a7(0x1f7)]()[_0xfd81a7(0x478)](()=>_0x2e4eb6);}[_0x39c760(0x1f7)](){return new Promise(_0x3a0092=>setImmediate(()=>{const _0x3d9e13=_0xf27e;let _0x1e9f56;try{_0x1e9f56=this['_native'][_0x3d9e13(0x5af)]();}catch{return _0x3a0092();}_0xd3e9b5[_0x3d9e13(0x681)](_0x1e9f56,_0x3a0092);}));}[_0x39c760(0x83d)](_0x18e8ca){return new Promise((_0x71bc11,_0x29eea1)=>setImmediate(()=>{try{_0x71bc11(_0x18e8ca());}catch(_0x402bb0){_0x29eea1(_0x402bb0);}}));}['_staticCall'](_0x2e6416,_0x3b316b,_0x40a50b){return _0x8d646b(_0x2e6416,_0x3b316b,_0x40a50b);}['_subscribeEvent'](_0x22ee2c){const _0x3f4a43=_0x39c760;if(typeof _0x22ee2c!==_0x3f4a43(0x6d1)||this['_subscribed'][_0x3f4a43(0x5ed)](_0x22ee2c)||_0x22ee2c===_0x3f4a43(0x3ce)||_0x22ee2c===_0x3f4a43(0x1c5))return;this['_subscribed'][_0x3f4a43(0x737)](_0x22ee2c);try{this['_native']['call'](_0x3f4a43(0x4a6),null,_0x3f4a43(0x42e),[this['_key'],_0x22ee2c]);}catch{}}[_0x39c760(0x69f)](_0x31f2d5,_0x2c7a61){const _0x29683c=_0x39c760;this['events'][_0x29683c(0x224)](_0x31f2d5,_0x2c7a61);}async[_0x39c760(0x817)](){const _0x50c452=_0x39c760,_0x3776db=this['_keyFns'];if(_0x3776db[_0x50c452(0x426)])this[_0x50c452(0x1d5)](null,await _0x3776db['instance'](null),!![]);for(const [_0x388704,_0x52e6f0]of _0x3776db[_0x50c452(0x881)])this[_0x50c452(0x1d5)](_0x388704,typeof _0x52e6f0===_0x50c452(0x84a)?await _0x52e6f0(_0x388704):_0x52e6f0,typeof _0x52e6f0===_0x50c452(0x84a));(_0x3776db[_0x50c452(0x426)]||[..._0x3776db[_0x50c452(0x881)][_0x50c452(0x5fe)]()][_0x50c452(0x543)](_0x46f613=>typeof _0x46f613==='function'))&&!this[_0x50c452(0x5ac)]&&(this[_0x50c452(0x5ac)]=_0x229569=>{const _0x28f7a0=_0x50c452,_0x15e724=_0x229569&&_0x229569[_0x28f7a0(0x67a)]!=null?_0x229569[_0x28f7a0(0x67a)]:null,_0x4f2409=_0x15e724==null?_0x3776db[_0x28f7a0(0x426)]:_0x3776db[_0x28f7a0(0x881)][_0x28f7a0(0x341)](_0x15e724);if(typeof _0x4f2409!=='function')return;Promise['resolve']()[_0x28f7a0(0x478)](()=>_0x4f2409(_0x15e724))['then'](_0x4fa288=>this[_0x28f7a0(0x1d5)](_0x15e724,_0x4fa288,!![]))[_0x28f7a0(0x909)](_0xe2cc62=>this[_0x28f7a0(0x5a7)][_0x28f7a0(0x292)](_0x28f7a0(0x6fc)+(_0xe2cc62&&_0xe2cc62[_0x28f7a0(0x63a)]),{'env':_0x15e724}));},this[_0x50c452(0x4a6)]['on'](_0x50c452(0x569),this['_keyListener']));}[_0x39c760(0x1d5)](_0x2ffe73,_0x5346ab,_0x4ba18d){const _0x3cd4b7=_0x39c760;if(_0x5346ab==null)throw new _0x558529(_0x3cd4b7(0x28c)+(_0x2ffe73?_0x3cd4b7(0x545)+_0x2ffe73+'\x22':'')+_0x3cd4b7(0x2f6),_0x3cd4b7(0x51e));this[_0x3cd4b7(0x6ed)][_0x3cd4b7(0x352)]('db',null,'setEncryptionKey',[_0x2ffe73,_0x5346ab,!!_0x4ba18d]);}async[_0x39c760(0x4b4)](_0x2f7206){const _0x203a8f=_0x39c760;this[_0x203a8f(0x86e)]();const {env:env=null,to:_0x5a40b6}=_0x31ad2a(_0x2f7206),_0x1d4e6d=typeof _0x5a40b6==='function',_0x15c44f=_0x1d4e6d?await _0x5a40b6(env):_0x5a40b6;if(_0x15c44f==null)throw _0x10dae0(_0x203a8f(0x680),_0x203a8f(0x451),_0x15c44f);const _0x3e3102=this[_0x203a8f(0x4e8)]('db',null,_0x203a8f(0x4b4),[env,_0x15c44f,_0x1d4e6d]);if(_0x1d4e6d){if(env==null)this['_keyFns'][_0x203a8f(0x426)]=_0x5a40b6;else this[_0x203a8f(0x91b)][_0x203a8f(0x881)][_0x203a8f(0x8db)](env,_0x5a40b6);}return _0x3e3102;}async[_0x39c760(0x82e)](_0xe3ce61){const _0x24c5b0=_0x39c760;this[_0x24c5b0(0x86e)]();const _0x252d7f=_0x31ad2a(_0xe3ce61);if(!_0x252d7f[_0x24c5b0(0x67a)])throw _0x10dae0(_0x24c5b0(0x5f1),'an\x20environment\x20name',_0x252d7f[_0x24c5b0(0x67a)]);let _0x3f7d75=_0x252d7f['to'];const _0x361f06=typeof _0x3f7d75===_0x24c5b0(0x84a);if(_0x361f06)_0x3f7d75=await _0x252d7f['to'](_0x252d7f[_0x24c5b0(0x67a)]);const _0x4b9aa3=await this[_0x24c5b0(0x83d)](()=>this[_0x24c5b0(0x4e8)]('db',null,_0x24c5b0(0x82e),[_0x252d7f[_0x24c5b0(0x67a)],'to'in _0x252d7f?_0x3f7d75:undefined,_0x361f06]));if(_0x361f06)this[_0x24c5b0(0x91b)][_0x24c5b0(0x881)][_0x24c5b0(0x8db)](_0x252d7f[_0x24c5b0(0x67a)],_0x252d7f['to']);return _0x4b9aa3;}async['open'](){const _0x367933=_0x39c760;if(this[_0x367933(0x613)]===_0x2f4f3c[_0x367933(0x3f1)])return;if(this['state']!==_0x2f4f3c[_0x367933(0x57f)])throw new _0x558529('Database\x20already\x20opened/closed',_0x367933(0x490),{'state':this['state']});this[_0x367933(0x613)]=_0x2f4f3c[_0x367933(0x5ca)],this[_0x367933(0x3b4)]=[];try{try{await this[_0x367933(0x817)](),await this[_0x367933(0x83d)](()=>this['_native'][_0x367933(0x22d)]());}catch(_0x123ffa){throw _0x3db6f4(_0x123ffa);}}catch(_0x908146){this[_0x367933(0x613)]=_0x2f4f3c['STOPPED'],this['_bootLog']=null,this[_0x367933(0x672)]();throw _0x908146;}this[_0x367933(0x588)]=!![],this['state']=_0x2f4f3c[_0x367933(0x3f1)];try{this['_call']('db',null,_0x367933(0x866),[this['plugins'][_0x367933(0x7bb)][_0x367933(0x59f)](_0x1456ae=>_0x1456ae[_0x367933(0x3bb)]?.['name'])[_0x367933(0x4bf)](Boolean)],![]),await this[_0x367933(0x87d)]['start']();}catch(_0x259f6e){this['state']=_0x2f4f3c[_0x367933(0x1d1)];try{this[_0x367933(0x6ed)][_0x367933(0x8bf)]();}catch{}this[_0x367933(0x613)]=_0x2f4f3c['STOPPED'],this[_0x367933(0x588)]=![],this['_teardownNative']();throw _0x259f6e;}for(const _0x23ba21 of this[_0x367933(0x4e8)]('db',null,_0x367933(0x4c2),[],![]))if(!_0x23ba21[_0x367933(0x5ae)]('~'))this[_0x367933(0x915)](_0x23ba21);try{if(this[_0x367933(0x4e8)]('db',null,_0x367933(0x74f),[_0x367933(0x928)],![])){this['_logEnv']=this['_ensureEnv']('~log');const _0x38ad28=new Set(this[_0x367933(0x5a7)]['_sinks']);this['_detachLogSink']=this[_0x367933(0x5a7)][_0x367933(0x1f0)](this[_0x367933(0x372)],this['id']);const _0x1e1117=[...this['log'][_0x367933(0x71d)]][_0x367933(0x4dd)](_0x74792=>!_0x38ad28[_0x367933(0x5ed)](_0x74792)),_0x4372f7=this[_0x367933(0x4e8)]('db',null,_0x367933(0x37c),[],![]);for(const _0x33e489 of(this[_0x367933(0x3b4)]??[])[_0x367933(0x836)](_0x4372f7))_0x1e1117?.(_0x33e489);}}catch{}this['_bootLog']=null,this[_0x367933(0x6ed)]['setWake'](()=>this['_pumper'][_0x367933(0x84f)]()),this[_0x367933(0x5b0)][_0x367933(0x8a9)]();}get[_0x39c760(0x386)](){const _0x780479=()=>{const _0x4ea6d5=_0xf27e;if(!this[_0x4ea6d5(0x588)])return![];for(const _0x218fc6 of this['_call']('db',null,_0x4ea6d5(0x4c2),[],![])){if(!_0x218fc6['startsWith']('~')&&this[_0x4ea6d5(0x4e8)](_0x4ea6d5(0x749),_0x218fc6,'buildsPending',[],![]))return!![];}return![];};return((async()=>{const _0x39bfde=_0xf27e;while(_0x780479())await this[_0x39bfde(0x5b0)][_0x39bfde(0x776)](0xfa);})());}async['bootRuntimeDeclarations'](){const _0x4ecd68=_0x39c760;return this[_0x4ecd68(0x1e0)]('db',null,'bootRuntime',[]);}async[_0x39c760(0x8bf)](){const _0x285a05=_0x39c760;if(this[_0x285a05(0x613)]===_0x2f4f3c[_0x285a05(0x546)])return;if(this[_0x285a05(0x613)]!==_0x2f4f3c['STARTED'])throw new _0x558529('Database\x20not\x20started',_0x285a05(0x490),{'state':this[_0x285a05(0x613)]});this[_0x285a05(0x613)]=_0x2f4f3c[_0x285a05(0x1d1)],this[_0x285a05(0x588)]=![];let _0x45896e=null;if(this[_0x285a05(0x789)][_0x285a05(0x617)][_0x285a05(0x7e0)])try{await this['http'][_0x285a05(0x8bf)]();}catch(_0x67ef55){_0x45896e=_0x67ef55;}if(this[_0x285a05(0x3bc)]){try{this['__adminRelay'][_0x285a05(0x85a)](),this['__adminRelay'][_0x285a05(0x2be)]();}catch{}this['__adminRelay']=null;}try{this[_0x285a05(0x34c)]?.[_0x285a05(0x61d)]?.();}catch{}try{await this[_0x285a05(0x87d)]['stop']();}catch(_0x4ef361){_0x45896e=_0x4ef361;}for(const _0x66e6f9 of[...Map['prototype'][_0x285a05(0x5fe)]['call'](this[_0x285a05(0x4b1)])]){try{await _0x66e6f9[_0x285a05(0x800)][_0x285a05(0x8b1)]();}catch{}try{await _0x66e6f9[_0x285a05(0x7ac)][_0x285a05(0x61d)]();}catch{}}for(const _0x268f6e of[()=>this['sync'][_0x285a05(0x61d)](),()=>this[_0x285a05(0x4a4)][_0x285a05(0x61d)](),()=>this[_0x285a05(0x6e0)]&&this[_0x285a05(0x6e0)][_0x285a05(0x61d)]?.()]){try{await _0x268f6e();}catch{}}const _0x488c74=this[_0x285a05(0x2c2)][_0x285a05(0x3a6)]??0x7530,_0x15ae81=[];for(const _0x209309 of[...Map[_0x285a05(0x36e)][_0x285a05(0x5fe)][_0x285a05(0x352)](this[_0x285a05(0x4b1)])]){if(_0x209309[_0x285a05(0x5d2)]?.[_0x285a05(0x838)]?.[_0x285a05(0x625)]>0x0)_0x15ae81[_0x285a05(0x247)](_0x209309[_0x285a05(0x5d2)][_0x285a05(0x8b1)](_0x488c74));}if(_0x15ae81[_0x285a05(0x7e0)]>0x0)await Promise[_0x285a05(0x63d)](_0x15ae81);try{this['_detachLogSink']?.();}catch{}this['_detachLogSink']=null;try{await this[_0x285a05(0x893)][_0x285a05(0x62f)]();}catch{}this['_pumper'][_0x285a05(0x61d)]();try{await this[_0x285a05(0x83d)](()=>this[_0x285a05(0x6ed)][_0x285a05(0x8bf)]());}catch(_0x4e9c65){_0x45896e=_0x45896e||_0x3db6f4(_0x4e9c65);}this[_0x285a05(0x613)]=_0x2f4f3c[_0x285a05(0x546)],this['_teardownNative'](),Map[_0x285a05(0x36e)][_0x285a05(0x510)]['call'](this['_envs']);if(_0x45896e)throw _0x45896e;}['_teardownNative'](){const _0x59c69d=_0x39c760;this[_0x59c69d(0x5b0)]['stop']();try{this['_native']['setWake'](null);}catch{}try{this['_native'][_0x59c69d(0x90e)]();}catch{}this['_rbuf']=null,this[_0x59c69d(0x1f3)]=null,this['_tids']=null,_0x1c7293[_0x59c69d(0x200)](this[_0x59c69d(0x60d)]),_0x1c7293[_0x59c69d(0x842)](this),_0xe35ab4[_0x59c69d(0x610)](this[_0x59c69d(0x41d)]);if(_0x1c7293[_0x59c69d(0x66c)](this)){const _0x5575ac=[..._0xe35ab4[_0x59c69d(0x5fe)]()][_0x59c69d(0x1b4)]();if(_0x5575ac)_0x1c7293['setKick'](()=>_0x5575ac['_pumper'][_0x59c69d(0x84f)](),_0x5575ac);else _0x1c7293[_0x59c69d(0x722)](()=>{},null);}}get['id'](){const _0x2d74b9=_0x39c760;return this[_0x2d74b9(0x4e8)]('db',null,'id',[],![]);}[_0x39c760(0x232)](_0x369d38){const _0x5cc500=_0x39c760;return this['env'](_0x5cc500(0x88c))[_0x5cc500(0x232)](_0x369d38);}get['_tokenSecret'](){const _0x4fd3f3=_0x39c760;return this[_0x4fd3f3(0x382)][_0x4fd3f3(0x341)](_0x4fd3f3(0x46a));}get[_0x39c760(0x6be)](){const _0x34fe8b=_0x39c760;return this[_0x34fe8b(0x7fd)][_0x34fe8b(0x6be)];}get[_0x39c760(0x49f)](){const _0x39177c=_0x39c760;return this[_0x39177c(0x7fd)][_0x39177c(0x49f)];}get[_0x39c760(0x2b3)](){const _0x214090=_0x39c760;if(!this['_isOpen']||!this[_0x214090(0x4e8)]('db',null,'subsBuilt',[],![]))return undefined;if(!this[_0x214090(0x414)]){const _0x1a366b=requireOkdbSubscriptionsStore(),_0xc0d499=new _0x1a366b(this,this[_0x214090(0x2c2)]&&this[_0x214090(0x2c2)][_0x214090(0x3c6)]);_0xc0d499[_0x214090(0x5a6)]=this[_0x214090(0x67a)](_0x214090(0x603));const {compileFilter:_0x5953ac}=requireOkdbQueryFilter(),_0x1177d7=(_0x3b3ceb,_0x499d74)=>{if(_0x3b3ceb==null)return![];try{return _0x5953ac(_0x3b3ceb)(_0x499d74);}catch{return![];}};this[_0x214090(0x414)]={'store':_0xc0d499,'router':{'_matches':_0x1177d7}};}return this[_0x214090(0x414)];}get[_0x39c760(0x651)](){const _0x3975c6=_0x39c760;return this[_0x3975c6(0x4cd)];}get[_0x39c760(0x755)](){const _0x3b6224=_0x39c760;return this[_0x3b6224(0x4e8)]('db',null,_0x3b6224(0x755),[],![]);}get[_0x39c760(0x4cd)](){const _0x543ec2=_0x39c760;return{...this['_call']('db',null,_0x543ec2(0x4cd),[],![])};}get['version'](){return require$$29['version'];}get['quarantinedEnvs'](){const _0x4eb082=_0x39c760;return this[_0x4eb082(0x4e8)]('db',null,_0x4eb082(0x5f6),[],![]);}get[_0x39c760(0x809)](){const _0x1ac0a8=_0x39c760;return this[_0x1ac0a8(0x4e8)]('db',null,_0x1ac0a8(0x809),[],![]);}[_0x39c760(0x52d)](){const _0xe3c13f=_0x39c760;return this[_0xe3c13f(0x4e8)]('db',null,_0xe3c13f(0x80d),[],![]);}[_0x39c760(0x39d)](){const _0x30efb4=_0x39c760;return this['_call']('db',null,_0x30efb4(0x39d),[],![]);}async[_0x39c760(0x47b)](_0x590316){const _0x12f27a=_0x39c760;this[_0x12f27a(0x86e)](),this['_call']('db',null,_0x12f27a(0x47b),[_0x590316],![]);}[_0x39c760(0x623)](){const _0x1818e7=_0x39c760,_0xd28b30=Date[_0x1818e7(0x274)]();if(this['_pressure']&&_0xd28b30-this['_pressure']['at']<0xfa)return this[_0x1818e7(0x4de)][_0x1818e7(0x59b)];const _0x209972=this[_0x1818e7(0x4e8)]('db',null,_0x1818e7(0x623),[],![]);return this[_0x1818e7(0x4de)]={'at':_0xd28b30,'value':_0x209972},_0x209972;}[_0x39c760(0x86e)](){const _0x1e362c=_0x39c760;if(!this['_isOpen'])throw new _0x558529(_0x1e362c(0x2b0),'INVALID_STATE',{'state':this['state']});}get['bus'](){const _0x38fc11=_0x39c760;if(this[_0x38fc11(0x613)]===_0x2f4f3c['STOPPED']||!this[_0x38fc11(0x588)])return null;if(this[_0x38fc11(0x4e8)]('db',null,'busState',[],![])==null)return null;if(!this[_0x38fc11(0x5dd)]){const _0x1c5ed7=this;this[_0x38fc11(0x5dd)]={get 'state'(){const _0xbbbfde=_0x38fc11;return _0x1c5ed7[_0xbbbfde(0x4e8)]('db',null,_0xbbbfde(0x753),[],![]);},get 'magic'(){const _0x10e51a=_0x38fc11;return Buffer[_0x10e51a(0x875)](_0x10e51a(0x7ab)+_0x1c5ed7['id']);},get 'isRunning'(){const _0x150e8a=_0x38fc11;return _0x1c5ed7[_0x150e8a(0x4e8)]('db',null,_0x150e8a(0x753),[],![])===_0x150e8a(0x6d4);},'emit'(_0x47c6f6,_0x119812=''){_0x1c5ed7['_call']('db',null,'busEmit',[_0x47c6f6,String(_0x119812)],![]);}};}return this[_0x38fc11(0x5dd)];}[_0x39c760(0x74c)](_0x1e5b62,_0x4ac7e4){const _0x57179a=_0x39c760;this[_0x57179a(0x468)]?.[_0x57179a(0x224)](_0x57179a(0x612),JSON[_0x57179a(0x7af)]({'kind':_0x57179a(0x75f),'scope':_0x1e5b62,'key':_0x4ac7e4}));}get[_0x39c760(0x300)](){const _0x249dbf=_0x39c760;return this[_0x249dbf(0x360)]||(this[_0x249dbf(0x360)]=new(requireLock())[(_0x249dbf(0x398))](this,'~system',_0x249dbf(0x6c9)));}get[_0x39c760(0x382)](){const _0x2cdb40=_0x39c760;return this[_0x2cdb40(0x6df)]?this[_0x2cdb40(0x6df)]['db']:undefined;}get[_0x39c760(0x86b)](){const _0x2e2162=_0x39c760,_0xef978b=this[_0x2e2162(0x6df)]?.[_0x2e2162(0x800)];if(!_0xef978b)return null;const _0x5027e7=_0xef978b[_0x2e2162(0x7a7)]()['find'](_0x5aaa55=>_0x5aaa55['meta']?.[_0x2e2162(0x264)]===_0x2e2162(0x777));return _0x5027e7?_0xef978b[_0x2e2162(0x708)](_0x5027e7['id'],_0x5027e7[_0x2e2162(0x433)]):null;}get['_systemEnv'](){const _0x50d91b=_0x39c760;return this[_0x50d91b(0x588)]?this[_0x50d91b(0x4b1)][_0x50d91b(0x341)](_0x50d91b(0x392)):undefined;}[_0x39c760(0x915)](_0x533a21){const _0xacd598=_0x39c760;let _0x4c9cb8=Map['prototype'][_0xacd598(0x341)][_0xacd598(0x352)](this[_0xacd598(0x4b1)],_0x533a21);if(!_0x4c9cb8){_0x4c9cb8=new _0x4bc140(this,_0x533a21),Map[_0xacd598(0x36e)][_0xacd598(0x8db)][_0xacd598(0x352)](this[_0xacd598(0x4b1)],_0x533a21,_0x4c9cb8);if(_0x533a21==='default')this[_0xacd598(0x1c9)]=_0x4c9cb8;}return _0x4c9cb8;}[_0x39c760(0x67a)](_0x9ba93f=_0x39c760(0x88c)){const _0x38470b=_0x39c760,_0x16cac8=this[_0x38470b(0x4b1)][_0x38470b(0x341)](_0x9ba93f);if(_0x16cac8)return _0x16cac8;if(this['_isOpen']&&this['_call']('db',null,_0x38470b(0x74f),[_0x9ba93f],![]))return this[_0x38470b(0x915)](_0x9ba93f);throw new _0x558529(_0x38470b(0x1ba)+_0x9ba93f+_0x38470b(0x797),_0x38470b(0x5f5));}get[_0x39c760(0x88c)](){const _0x573ee1=_0x39c760;return this[_0x573ee1(0x67a)](_0x573ee1(0x88c));}get['_defaultEnv'](){const _0x2584df=_0x39c760;return this[_0x2584df(0x4b1)][_0x2584df(0x341)](_0x2584df(0x88c))??this[_0x2584df(0x1c9)];}get[_0x39c760(0x81e)](){const _0x3b1ef=_0x39c760;return this[_0x3b1ef(0x3b7)]['files'];}get[_0x39c760(0x5d2)](){const _0x130c7f=_0x39c760;return this[_0x130c7f(0x3b7)]['queue'];}[_0x39c760(0x204)](_0x36456d){const _0x3b1846=_0x39c760;if(!this['_isOpen'])return null;return this[_0x3b1846(0x4e8)]('db',null,'instanceTimerArmed',[_0x36456d],![])?{'ref'(){},'unref'(){}}:null;}get[_0x39c760(0x739)](){const _0x528399=_0x39c760;return this[_0x528399(0x204)]('readerCheck');}[_0x39c760(0x7b3)](){const _0x6cc58e=_0x39c760;return this['_call']('db',null,_0x6cc58e(0x3ad),[],!![]);}get['_licenseInterval'](){const _0x19ef74=_0x39c760;return this[_0x19ef74(0x204)]('license');}get[_0x39c760(0x4a1)](){const _0x339c33=_0x39c760;return this[_0x339c33(0x204)](_0x339c33(0x28e));}get['_hlc'](){const _0x1928b1=_0x39c760;return this[_0x1928b1(0x67a)](_0x1928b1(0x88c))[_0x1928b1(0x675)];}get[_0x39c760(0x8f0)](){const _0x5ebc4a=_0x39c760;throw new _0x558529(_0x5ebc4a(0x3b3),'WORKERS_REMOVED');}get[_0x39c760(0x800)](){const _0x10efff=_0x39c760;return this[_0x10efff(0x3b7)][_0x10efff(0x800)];}get[_0x39c760(0x749)](){const _0x4ae173=_0x39c760;return this[_0x4ae173(0x3b7)][_0x4ae173(0x749)];}async[_0x39c760(0x855)](_0x4cd9c6,_0x2b3e0a={}){const _0x413364=_0x39c760;this[_0x413364(0x86e)]();if(_0x2b3e0a&&typeof _0x2b3e0a[_0x413364(0x567)]===_0x413364(0x84a)){const _0xd41d51=_0x2b3e0a[_0x413364(0x567)];this[_0x413364(0x1d5)](_0x4cd9c6,await _0xd41d51(_0x4cd9c6),!![]),this[_0x413364(0x91b)]['envs'][_0x413364(0x8db)](_0x4cd9c6,_0xd41d51),_0x2b3e0a={..._0x2b3e0a,'encryptionKey':!![]};}return this[_0x413364(0x4e8)]('db',null,'createEnvironment',[_0x4cd9c6,_0x2b3e0a]),this[_0x413364(0x915)](_0x4cd9c6);}async[_0x39c760(0x559)](_0x52e823){const _0x3eb270=_0x39c760;if(!this[_0x3eb270(0x588)])throw new _0x558529(_0x3eb270(0x1ac)+_0x52e823+_0x3eb270(0x397),_0x3eb270(0x490));return this[_0x3eb270(0x4e8)]('db',null,'openEnv',[_0x52e823]),this[_0x3eb270(0x915)](_0x52e823);}get[_0x39c760(0x492)](){const _0x3a1545=_0x39c760;if(!this[_0x3a1545(0x3bc)]&&this[_0x3a1545(0x588)]){const _0x5046ef=requireOkdbRelay(),_0x2c37b6=new _0x5046ef(this,this[_0x3a1545(0x2c2)]?.[_0x3a1545(0x62b)]?.[_0x3a1545(0x2e0)]??{});_0x2c37b6[_0x3a1545(0x821)](),_0x2c37b6[_0x3a1545(0x32a)]=!![],this['__adminRelay']=_0x2c37b6;}return this['__adminRelay']??null;}set['_adminRelay'](_0x2ad5ff){const _0x32bb99=_0x39c760;this[_0x32bb99(0x3bc)]=_0x2ad5ff;}get[_0x39c760(0x266)](){const _0x40ec12=_0x39c760;let _0x5b8a98=0x0;if(this[_0x40ec12(0x588)])for(const [_0x53eafd]of Map[_0x40ec12(0x36e)][_0x40ec12(0x565)][_0x40ec12(0x352)](this[_0x40ec12(0x4b1)])){try{_0x5b8a98+=this[_0x40ec12(0x4e8)](_0x40ec12(0x2a7),_0x53eafd,'gateQuanta',[],![])||0x0;}catch{}}return{'total':_0x5b8a98,'maxObserved':_0x5b8a98>0x0?0x1:0x0,'inFlight':0x0};}async[_0x39c760(0x27d)](_0x442609){const _0x1d4d79=_0x39c760,_0x34ec1d=this['_envs'][_0x1d4d79(0x341)](_0x442609);if(_0x34ec1d)return _0x34ec1d;if(!this[_0x1d4d79(0x4e8)]('db',null,_0x1d4d79(0x74f),[_0x442609],![]))throw new Error(_0x1d4d79(0x2b4)+_0x442609+'\x22\x20not\x20found\x20in\x20~envs');return this[_0x1d4d79(0x559)](_0x442609);}async['_closeEnvLocally'](_0x4b3c48){const _0x4b7441=_0x39c760,_0x39bf09=this['_call']('db',null,_0x4b7441(0x5ba),[_0x4b3c48]);return this[_0x4b7441(0x4b1)]['delete'](_0x4b3c48),_0x39bf09;}async[_0x39c760(0x4fd)](_0x20fd03,_0x350464={}){const _0x484637=_0x39c760;this['_assertOpen']();const _0x16f62d=this[_0x484637(0x4e8)]('db',null,'removeEnvironment',[_0x20fd03,_0x350464]);return this[_0x484637(0x4b1)][_0x484637(0x610)](_0x20fd03),_0x16f62d;}static get[_0x39c760(0x293)](){return _0x53fcd3['defaults'];}static get[_0x39c760(0x421)](){const _0x4bb155=_0x39c760;return _0x53fcd3[_0x4bb155(0x421)];}static get[_0x39c760(0x41b)](){const _0x5618cb=_0x39c760;return _0x53fcd3[_0x5618cb(0x41b)];}static async[_0x39c760(0x486)](_0x3da5c7,_0x5bde3a){const _0x4978b6=_0x39c760;return _0x8d646b('db',_0x4978b6(0x486),[_0x3da5c7,_0x5bde3a]);}static[_0x39c760(0x33b)](_0x5e4c03){return _0x8d646b('db','reidentify',[_0x5e4c03]);}static[_0x39c760(0x56a)](_0x57065d,_0x4cbeae){const _0x1bdec5=_0x39c760;_0x8d646b(_0x1bdec5(0x749),_0x1bdec5(0x56a),[_0x57065d,_0x4cbeae]);}static[_0x39c760(0x4e2)](_0x4a30b8,_0x1c5f4b){const _0x4a9aaf=_0x39c760;_0x8d646b(_0x4a9aaf(0x749),'registerViewReducer',[_0x4a30b8,_0x1c5f4b]);}static[_0x39c760(0x4a3)](){}[_0x39c760(0x6a6)](_0x2d91ac,_0x416d7e){return require$$16['isDeepStrictEqual'](_0x2d91ac,_0x416d7e);}}_0x5e8e4d[_0x39c760(0x24b)]=_0x1f7d26,Object[_0x39c760(0x1fb)](_0x5e8e4d,'_unknownOptionsWarned',{'get'(){const _0x3b06b3=_0x39c760;return _0x5e8e4d['__warned']||(_0x5e8e4d[_0x3b06b3(0x1e2)]=new Set());},'set'(_0x5ace64){const _0x55cb5b=_0x39c760;_0x5e8e4d[_0x55cb5b(0x1e2)]=_0x5ace64;try{_0x8d646b('db',_0x55cb5b(0x384),[]);}catch{}},'configurable':!![]});for(const _0x400087 of[_0x39c760(0x7b1),'txn',_0x39c760(0x4a2),_0x39c760(0x378),_0x39c760(0x50d),'create','remove',_0x39c760(0x341),_0x39c760(0x333),_0x39c760(0x4c9),'getRange',_0x39c760(0x78d),_0x39c760(0x4fb),'getCount',_0x39c760(0x56e),_0x39c760(0x558),_0x39c760(0x34f),_0x39c760(0x2c6),_0x39c760(0x3da),'geoQuery',_0x39c760(0x688),_0x39c760(0x6bb),'ensureType',_0x39c760(0x6d6),_0x39c760(0x251),'hasType',_0x39c760(0x5a5),_0x39c760(0x304),'hasIndex',_0x39c760(0x6ae),'resetIndex',_0x39c760(0x703),_0x39c760(0x2c9),_0x39c760(0x212),'hasUniqueViolations',_0x39c760(0x82a),_0x39c760(0x788),_0x39c760(0x8c0),_0x39c760(0x65a),_0x39c760(0x38c),_0x39c760(0x2fc),_0x39c760(0x8ce),_0x39c760(0x8fc),_0x39c760(0x873),_0x39c760(0x813),'getDefaultTTL','clearDefaultTTL',_0x39c760(0x44b),_0x39c760(0x6d9),'now']){_0x5e8e4d[_0x39c760(0x36e)][_0x400087]=function(..._0x4e92e0){const _0xad4df6=_0x39c760,_0x9acaf0=this[_0xad4df6(0x67a)]('default');return _0x9acaf0[_0x400087](..._0x4e92e0);};}function _0x3c63c7(_0x11d1a5){const _0xae3634=_0x39c760,_0x2cb526=_0x164075=>()=>{const _0x216d3a=_0xf27e;throw new Error(_0x216d3a(0x45b)+_0x164075+_0x216d3a(0x513));};return{'process':_0x2cb526(_0xae3634(0x321)),'processRest':_0x2cb526(_0xae3634(0x5c6)),'processEverything':_0x2cb526('processEverything()'),async 'start'(){const _0x4dfdde=_0xae3634;return _0x11d1a5[_0x4dfdde(0x4e8)]('db',null,_0x4dfdde(0x8bb),[]);},async 'stop'(){const _0x2df9ad=_0xae3634;return _0x11d1a5[_0x2df9ad(0x4e8)]('db',null,_0x2df9ad(0x626),[]);},'status'(){const _0x20d47a=_0xae3634;return _0x11d1a5[_0x20d47a(0x4e8)]('db',null,'processorsStatus',[],![]);},get 'participating'(){const _0x5a2d29=_0xae3634;return _0x11d1a5[_0x5a2d29(0x4e8)]('db',null,_0x5a2d29(0x795),[],![]);},get '_participate'(){const _0x35c71c=_0xae3634;return _0x11d1a5['_call']('db',null,_0x35c71c(0x795),[],![]);}};}function _0x8d646b(_0x59e010,_0x221694,_0x5cc2cc){const _0x354516=_0x39c760;_0x458847();try{return _0x78fe63()[_0x354516(0x4c1)](_0x59e010,_0x221694,_0x5cc2cc);}catch(_0x513bd0){throw _0x3db6f4(_0x513bd0);}}_0x44188a[_0x39c760(0x3ec)]=_0x5e8e4d,_0x44188a['exports']['staticCall']=_0x8d646b,_0x44188a[_0x39c760(0x3ec)][_0x39c760(0x5bc)]=_0x5e8e4d,_0x44188a[_0x39c760(0x3ec)][_0x39c760(0x24b)]=_0x1f7d26,_0x44188a[_0x39c760(0x3ec)][_0x39c760(0x88c)]=_0x5e8e4d,Object[_0x39c760(0x1fb)](_0x44188a[_0x39c760(0x3ec)],_0x39c760(0x418),{'get':()=>require$$1$1[_0x39c760(0x430)]?.()??null,'enumerable':![],'configurable':!![]});}(lib),lib[_0xafb86f(0x3ec)];}var libExports=requireLib(),index=getDefaultExportFromCjs(libExports);module[_0x7b0c8f(0x3ec)]=index;
1
+ 'use strict';const _0x2d5353=_0x36a2;(function(_0x41afde,_0xacf9bb){const _0x3f4bba=_0x36a2,_0xcac20c=_0x41afde();while(!![]){try{const _0x1bc9fd=parseInt(_0x3f4bba(0x6b6))/0x1+parseInt(_0x3f4bba(0x13b))/0x2+-parseInt(_0x3f4bba(0x786))/0x3+-parseInt(_0x3f4bba(0x272))/0x4+parseInt(_0x3f4bba(0x81d))/0x5+-parseInt(_0x3f4bba(0x45f))/0x6+parseInt(_0x3f4bba(0x632))/0x7;if(_0x1bc9fd===_0xacf9bb)break;else _0xcac20c['push'](_0xcac20c['shift']());}catch(_0xe4b1e6){_0xcac20c['push'](_0xcac20c['shift']());}}}(_0x49fd,0x383f5));var require$$0$6=require(_0x2d5353(0x264)),require$$1$1=require(_0x2d5353(0x80d)),require$$0=require(_0x2d5353(0x7cd)),require$$1=require(_0x2d5353(0x2d1)),require$$4=require(_0x2d5353(0x164)),require$$0$2=require(_0x2d5353(0x4ba)),require$$0$1=require('node:perf_hooks'),require$$16=require(_0x2d5353(0x1ca)),require$$0$3=require(_0x2d5353(0x6d4)),require$$2=require(_0x2d5353(0x29e)),require$$18=require(_0x2d5353(0x5e0)),require$$0$4=require('crypto'),require$$0$5=require(_0x2d5353(0x58d));function getDefaultExportFromCjs(_0x30e22a){const _0x1580fe=_0x2d5353;return _0x30e22a&&_0x30e22a[_0x1580fe(0x3df)]&&Object[_0x1580fe(0x771)][_0x1580fe(0x5b6)][_0x1580fe(0x245)](_0x30e22a,_0x1580fe(0x634))?_0x30e22a[_0x1580fe(0x634)]:_0x30e22a;}var lib={'exports':{}},okdbError,hasRequiredOkdbError;function requireOkdbError(){if(hasRequiredOkdbError)return okdbError;hasRequiredOkdbError=0x1;class _0xcd71bd extends Error{constructor(_0x28e856,_0x1d5803,_0x5ee495={}){const _0x43cbae=_0x36a2;super(_0x28e856),this['name']=_0x43cbae(0x5c6),this[_0x43cbae(0x316)]=_0x1d5803,this[_0x43cbae(0x433)]=_0x5ee495,_0x5ee495[_0x43cbae(0x13e)]&&(this[_0x43cbae(0x13e)]=_0x5ee495['cause']),Error[_0x43cbae(0x2e6)](this,this['constructor']);}}class _0x2b871e extends _0xcd71bd{constructor(_0x32736e,_0x2fe410,_0x59e57e,_0x56acf7){const _0x365c00=_0x36a2;super('Version\x20mismatch\x20for\x20'+_0x32736e+'@'+_0x2fe410+':\x20expected\x20'+_0x59e57e+_0x365c00(0x749)+_0x56acf7,_0x365c00(0x430),{'type':_0x32736e,'key':_0x2fe410,'expectedVersion':_0x59e57e,'actualVersion':_0x56acf7}),this[_0x365c00(0x425)]=_0x365c00(0x28b);}}class _0x1646aa extends _0xcd71bd{constructor(_0x5dbf52,_0x315f4f){const _0x3a3460=_0x36a2;super(_0x5dbf52+'@'+_0x315f4f+_0x3a3460(0x403),_0x3a3460(0x2e7),{'type':_0x5dbf52,'key':_0x315f4f}),this[_0x3a3460(0x425)]=_0x3a3460(0x60e);}}class _0x3f4a24 extends _0xcd71bd{constructor(_0x1cdc4e,_0x42fa10){const _0x3c4cef=_0x36a2;super(_0x1cdc4e+'@'+_0x42fa10+_0x3c4cef(0x4c3),'ALREADY_EXISTS',{'type':_0x1cdc4e,'key':_0x42fa10}),this[_0x3c4cef(0x425)]=_0x3c4cef(0x368);}}class _0x33a4ae extends _0xcd71bd{constructor(_0x208601,_0x657c33){const _0x30d1e0=_0x36a2,_0x40b349=typeof _0x657c33;super('Invalid\x20index\x20key\x20type\x20for\x20\x27'+_0x208601+_0x30d1e0(0x2ea)+_0x40b349+_0x30d1e0(0x1db)+_0x657c33,_0x30d1e0(0x646),{'index':_0x208601,'key':_0x657c33,'keyType':_0x40b349}),this[_0x30d1e0(0x425)]=_0x30d1e0(0x843);}}class _0x3d62da extends _0xcd71bd{constructor(_0x3e9fab){const _0x390a05=_0x36a2,_0x40b01a=typeof _0x3e9fab;super(_0x390a05(0x39c)+_0x40b01a+_0x390a05(0x365)+_0x3e9fab,_0x390a05(0x764),{'key':_0x3e9fab,'keyType':_0x40b01a}),this['name']=_0x390a05(0x495);}}class _0x369276 extends _0xcd71bd{constructor(_0x5ba377){const _0x44916e=_0x36a2;super('Type\x20\x27'+_0x5ba377+'\x27\x20doesn\x27t\x20exist',_0x44916e(0x1cf),{'type':_0x5ba377}),this['name']=_0x44916e(0x7be);}}class _0x28addf extends _0xcd71bd{constructor(_0x3ac3cc){const _0x2d201d=_0x36a2;super('Type\x20\x27'+_0x3ac3cc+_0x2d201d(0x5c4),_0x2d201d(0x58f),{'type':_0x3ac3cc}),this[_0x2d201d(0x425)]=_0x2d201d(0x347);}}class _0x5d9ff1 extends _0xcd71bd{constructor(_0x5f171c,_0x3a3265){const _0x1029d5=_0x36a2;super('Index\x20\x27'+_0x3a3265+_0x1029d5(0x19a)+_0x5f171c+_0x1029d5(0x1ff),'INDEX_NOT_REGISTERED',{'type':_0x5f171c,'index':_0x3a3265}),this['name']=_0x1029d5(0x3d8);}}class _0x2ae7a3 extends _0xcd71bd{constructor(_0x195739,_0x243259){const _0x293071=_0x36a2;super('Index\x20\x27'+_0x243259+_0x293071(0x19a)+_0x195739+_0x293071(0x2d4),_0x293071(0x837),{'type':_0x195739,'index':_0x243259}),this['name']='OKDBIndexAlreadyRegisteredError';}}class _0x2f651c extends _0xcd71bd{constructor(_0x1b2a9d,_0xbcd118={}){const _0x340dbe=_0x36a2;super(_0x1b2a9d,_0x340dbe(0x315),_0xbcd118),this[_0x340dbe(0x425)]=_0x340dbe(0x621);}}class _0x33fa0 extends _0xcd71bd{constructor(_0x3550ad,_0x2f7212,_0x2c5875,_0x130261,_0x3303b5){const _0x3d820a=_0x36a2;super(_0x3d820a(0x853)+_0x3550ad+'@'+_0x2f7212+_0x3d820a(0x30b)+_0x2c5875+_0x3d820a(0x3d3)+_0x130261+'\x27,\x20cannot\x20map\x20to\x20\x27'+_0x3303b5+'\x27','UNIQUE_CONSTRAINT',{'type':_0x3550ad,'index':_0x2f7212,'indexKey':_0x2c5875,'existingKey':_0x130261,'conflictingKey':_0x3303b5}),this[_0x3d820a(0x425)]=_0x3d820a(0x42f);}}class _0x1460e7 extends _0xcd71bd{constructor(_0x24a9f8,_0x4b4f24,_0x1d8a74){const _0x549244=_0x36a2;super(_0x549244(0x832)+_0x24a9f8+'@'+_0x4b4f24,_0x549244(0x458),{'type':_0x24a9f8,'key':_0x4b4f24,'errors':_0x1d8a74}),this['name']=_0x549244(0x778),this[_0x549244(0x2d0)]=_0x24a9f8,this['key']=_0x4b4f24,this['errors']=_0x1d8a74;}}class _0x290cfe extends _0xcd71bd{constructor(_0x31b1fc,_0x130200){const _0x299d25=_0x36a2;super(_0x299d25(0x505)+_0x31b1fc+':\x20'+_0x130200[_0x299d25(0x192)]+_0x299d25(0x75c),_0x299d25(0x822),{'type':_0x31b1fc,'failures':_0x130200}),this[_0x299d25(0x425)]=_0x299d25(0x828),this[_0x299d25(0x2d0)]=_0x31b1fc,this[_0x299d25(0x544)]=_0x130200;}}class _0x120f49 extends _0xcd71bd{constructor(_0x2965a8,_0x586de0,_0x45f39d,_0x56ca6b,_0x589736){const _0x44fc47=_0x36a2;super(_0x44fc47(0x15b)+_0x2965a8+'@'+_0x586de0+'.'+_0x45f39d+_0x44fc47(0x867)+_0x56ca6b+'@'+_0x589736+'\x20which\x20does\x20not\x20exist',_0x44fc47(0x1b0),{'sourceType':_0x2965a8,'sourceKey':_0x586de0,'fieldPath':_0x45f39d,'targetType':_0x56ca6b,'targetKey':_0x589736}),this[_0x44fc47(0x425)]='OKDBForeignKeyError',this[_0x44fc47(0x615)]=_0x2965a8,this[_0x44fc47(0x806)]=_0x586de0,this[_0x44fc47(0x818)]=_0x45f39d,this[_0x44fc47(0x67f)]=_0x56ca6b,this[_0x44fc47(0x1aa)]=_0x589736;}}class _0x3defb9 extends _0xcd71bd{constructor(_0x4cf952,_0x5d2aa3,_0x46b311){const _0x490637=_0x36a2;super(_0x490637(0x6de)+_0x4cf952+'@'+_0x5d2aa3+':\x20'+_0x46b311['length']+_0x490637(0x754),_0x490637(0x722),{'targetType':_0x4cf952,'targetKey':_0x5d2aa3,'references':_0x46b311}),this[_0x490637(0x425)]='OKDBForeignKeyDeleteError',this[_0x490637(0x67f)]=_0x4cf952,this['targetKey']=_0x5d2aa3,this[_0x490637(0x59d)]=_0x46b311;}}class _0x4bc1be extends _0xcd71bd{constructor(_0x54570c,_0x5be7cb,_0x5e4acf){const _0x5b6295=_0x36a2;super('Index\x20\x22'+_0x5be7cb+'\x22\x20on\x20\x22'+_0x54570c+'\x22\x20is\x20used\x20by:\x20'+_0x5e4acf[_0x5b6295(0x4e8)](_0x53c023=>_0x53c023[_0x5b6295(0x50a)]+':'+_0x53c023[_0x5b6295(0x425)])['join'](',\x20'),_0x5b6295(0x567),{'type':_0x54570c,'index':_0x5be7cb,'usedBy':_0x5e4acf}),this[_0x5b6295(0x425)]='OKDBIndexHasConsumersError';}}return okdbError={'OKDBError':_0xcd71bd,'OKDBVersionMismatchError':_0x2b871e,'OKDBNotFoundError':_0x1646aa,'OKDBAlreadyExistsError':_0x3f4a24,'OKDBInvalidIndexKeyError':_0x33a4ae,'OKDBInvalidPrimaryKeyError':_0x3d62da,'OKDBTypeNotRegisteredError':_0x369276,'OKDBTypeAlreadyRegisteredError':_0x28addf,'OKDBIndexNotRegisteredError':_0x5d9ff1,'OKDBIndexAlreadyRegisteredError':_0x2ae7a3,'OKDBInvalidValueError':_0x2f651c,'OKDBUniqueConstraintError':_0x33fa0,'OKDBSchemaValidationError':_0x1460e7,'OKDBSchemaCollectionError':_0x290cfe,'OKDBForeignKeyError':_0x120f49,'OKDBForeignKeyDeleteError':_0x3defb9,'OKDBIndexHasConsumersError':_0x4bc1be},okdbError;}var errors,hasRequiredErrors;function requireErrors(){const _0x4e17bf=_0x2d5353;if(hasRequiredErrors)return errors;hasRequiredErrors=0x1;const _0x372879=requireOkdbError(),_0x1b0d54={'VERSION_MISMATCH':_0x372879['OKDBVersionMismatchError'],'NOT_FOUND':_0x372879['OKDBNotFoundError'],'ALREADY_EXISTS':_0x372879[_0x4e17bf(0x368)],'INVALID_INDEX_KEY':_0x372879[_0x4e17bf(0x843)],'INVALID_PRIMARY_KEY':_0x372879[_0x4e17bf(0x495)],'TYPE_NOT_REGISTERED':_0x372879[_0x4e17bf(0x7be)],'TYPE_ALREADY_REGISTERED':_0x372879['OKDBTypeAlreadyRegisteredError'],'INDEX_NOT_REGISTERED':_0x372879[_0x4e17bf(0x3d8)],'INDEX_ALREADY_REGISTERED':_0x372879[_0x4e17bf(0x4d4)],'INVALID_VALUE':_0x372879['OKDBInvalidValueError'],'UNIQUE_CONSTRAINT':_0x372879[_0x4e17bf(0x42f)],'SCHEMA_VALIDATION_FAILED':_0x372879['OKDBSchemaValidationError'],'SCHEMA_COLLECTION_INVALID':_0x372879[_0x4e17bf(0x828)],'FOREIGN_KEY_VIOLATION':_0x372879[_0x4e17bf(0x7b1)],'FOREIGN_KEY_DELETE_RESTRICTED':_0x372879[_0x4e17bf(0x68b)],'INDEX_HAS_CONSUMERS':_0x372879[_0x4e17bf(0x6b2)]};class _0x16ae2d extends _0x372879['OKDBError']{constructor(_0x54e50e,_0x20748c){const _0xbd15cf=_0x4e17bf;super(_0x54e50e+':\x20not\x20implemented\x20in\x20the\x20native\x20build\x20yet'+(_0x20748c?'\x20('+_0x20748c+')':''),'NOT_IMPLEMENTED_NATIVE',{'feature':_0x54e50e}),this[_0xbd15cf(0x425)]=_0xbd15cf(0x61f);}}function _0x426671(_0x275d1b){const _0x5cd49b=_0x4e17bf;if(!_0x275d1b||typeof _0x275d1b!=='object'||!_0x275d1b['__okdb'])return _0x275d1b;delete _0x275d1b[_0x5cd49b(0x330)];const _0x5f8839=_0x275d1b[_0x5cd49b(0x316)];if(_0x5f8839===_0x5cd49b(0x153)||_0x5f8839===_0x5cd49b(0x622)||_0x5f8839==='RangeError'){const _0xb72d90=_0x5f8839===_0x5cd49b(0x622)?TypeError[_0x5cd49b(0x771)]:_0x5f8839==='RangeError'?RangeError[_0x5cd49b(0x771)]:Error['prototype'];Object[_0x5cd49b(0x30f)](_0x275d1b,_0xb72d90),_0x275d1b[_0x5cd49b(0x425)]=_0x5f8839;if(_0x275d1b['details']&&_0x275d1b[_0x5cd49b(0x433)][_0x5cd49b(0x2e4)]!==undefined)_0x275d1b[_0x5cd49b(0x2e4)]=_0x275d1b[_0x5cd49b(0x433)][_0x5cd49b(0x2e4)];return delete _0x275d1b['code'],delete _0x275d1b[_0x5cd49b(0x433)],_0x275d1b;}const _0x47a5ed=_0x1b0d54[_0x5f8839];Object[_0x5cd49b(0x30f)](_0x275d1b,(_0x47a5ed||_0x372879['OKDBError'])[_0x5cd49b(0x771)]),_0x275d1b[_0x5cd49b(0x425)]=_0x47a5ed?_0x47a5ed[_0x5cd49b(0x425)][_0x5cd49b(0x4d7)](/^OKDB/,_0x5cd49b(0x39d)):'OKDBError';const _0x58134c=_0x275d1b['details']||{};_0x5f8839===_0x5cd49b(0x458)&&(_0x275d1b[_0x5cd49b(0x2d0)]=_0x58134c['type'],_0x275d1b[_0x5cd49b(0x5c0)]=_0x58134c[_0x5cd49b(0x5c0)],_0x275d1b[_0x5cd49b(0x266)]=_0x58134c[_0x5cd49b(0x266)]);_0x5f8839==='SCHEMA_COLLECTION_INVALID'&&(_0x275d1b[_0x5cd49b(0x2d0)]=_0x58134c[_0x5cd49b(0x2d0)],_0x275d1b[_0x5cd49b(0x544)]=_0x58134c['failures']);if(_0x5f8839===_0x5cd49b(0x1b0)){for(const _0x74076a of[_0x5cd49b(0x615),_0x5cd49b(0x806),_0x5cd49b(0x818),_0x5cd49b(0x67f),'targetKey'])_0x275d1b[_0x74076a]=_0x58134c[_0x74076a];}if(_0x5f8839===_0x5cd49b(0x722)){for(const _0x19df31 of[_0x5cd49b(0x67f),'targetKey',_0x5cd49b(0x59d)])_0x275d1b[_0x19df31]=_0x58134c[_0x19df31];}if(_0x58134c[_0x5cd49b(0x13e)])_0x275d1b[_0x5cd49b(0x13e)]=_0x58134c[_0x5cd49b(0x13e)];if(_0x58134c[_0x5cd49b(0x2e4)]!==undefined)_0x275d1b[_0x5cd49b(0x2e4)]=_0x58134c[_0x5cd49b(0x2e4)];if(_0x58134c[_0x5cd49b(0x129)]!==undefined)_0x275d1b[_0x5cd49b(0x129)]=_0x58134c[_0x5cd49b(0x129)];return _0x275d1b;}function _0x134d44(_0x39f5b2){const _0xa9dc75=_0x4e17bf;if(_0x39f5b2===undefined)return _0xa9dc75(0x364);if(_0x39f5b2===null)return _0xa9dc75(0x6f7);if(typeof _0x39f5b2===_0xa9dc75(0x84a))return _0x39f5b2?_0xa9dc75(0x84a):'empty\x20string';if(typeof _0x39f5b2==='function')return'function';if(typeof _0x39f5b2!==_0xa9dc75(0x712))return typeof _0x39f5b2;if(Array['isArray'](_0x39f5b2))return _0x39f5b2['length']?_0xa9dc75(0x22f):'empty\x20array';if(_0x39f5b2 instanceof Date)return _0xa9dc75(0x7c6);if(_0x39f5b2 instanceof Map)return'Map';if(Buffer['isBuffer'](_0x39f5b2))return _0xa9dc75(0x70f);return _0xa9dc75(0x712);}const _0x1c0bec=(_0x30e297,_0x4cb444,_0x444454)=>new _0x372879[(_0x4e17bf(0x5c6))](_0x4cb444,_0x30e297,_0x444454),_0x299ed4=(_0x26334f,_0x1ae7e2,_0x569dcb)=>_0x1c0bec(_0x4e17bf(0x4fa),_0x26334f+_0x4e17bf(0x1b9)+_0x1ae7e2+';\x20got\x20'+_0x134d44(_0x569dcb),{'argument':_0x26334f,'expected':_0x1ae7e2,'got':_0x134d44(_0x569dcb)}),_0x36dea1=(_0xbe2e9d,_0x2c9501)=>_0x1c0bec(_0x4e17bf(0x5a4),_0xbe2e9d+_0x4e17bf(0x23f)+_0x134d44(_0x2c9501),{'argument':_0xbe2e9d,'expected':_0x4e17bf(0x1fd),'got':_0x134d44(_0x2c9501)}),_0x57426d=(_0x415b07,_0x21a50f)=>_0x1c0bec(_0x4e17bf(0x5bd),_0x415b07+':\x20'+_0x21a50f,{'argument':_0x415b07,'problem':_0x21a50f});function _0xd485f5(_0x2622ad,_0x10cc95=_0x4e17bf(0x4c0)){const _0x28d92f=_0x4e17bf;if(_0x2622ad===undefined)return{};if(_0x2622ad===null)throw _0x57426d(_0x10cc95,_0x28d92f(0x838));return _0x2622ad;}return errors={'reclass':_0x426671,'NotImplementedNative':_0x16ae2d,'BY_CODE':_0x1b0d54,'describe':_0x134d44,'invalidArgument':_0x299ed4,'invalidTypeName':_0x36dea1,'invalidOptions':_0x57426d,'optionsArg':_0xd485f5,..._0x372879},errors;}var bridge_1,hasRequiredBridge;function requireBridge(){if(hasRequiredBridge)return bridge_1;hasRequiredBridge=0x1;const _0x578a6f=new Map(),_0xc638bf=new Map();let _0xffb492=0x1;const _0x888ce=new Map(),_0x20ce5a=new Map();let _0x5e13e6=0x1;const _0x572656=new Map();let _0x4e1fc5=0x1;const _0x496125=new Map();function _0x3adb68(_0x33597f,_0x5ece4d=null){const _0x41fe4f=_0x36a2,_0x331e6f=_0x4e1fc5++;_0x572656[_0x41fe4f(0x7a0)](_0x331e6f,_0x33597f);if(_0x5ece4d)_0x496125['set'](_0x331e6f,_0x5ece4d);return _0x331e6f;}function _0x1b9b37(_0x4e53b6,_0x2782da){const _0x4c5964=_0x36a2,_0x50974f=_0x572656[_0x4c5964(0x6ce)](_0x4e53b6),_0x455736=Array[_0x4c5964(0x771)][_0x4c5964(0x6fe)][_0x4c5964(0x245)](arguments,0x2),_0x4f40b7=_0x4db0a0=>_0x3c2ec5(_0x4db0a0,_0x496125['get'](_0x4e53b6));let _0x59a0cc=_0x455736;if(_0x2782da===_0x4c5964(0x4df)||_0x2782da==='stop'||_0x2782da===_0x4c5964(0x145)||_0x2782da===_0x4c5964(0x708)||_0x2782da==='assertStartAllowed')_0x59a0cc=[_0x4f40b7(_0x455736[0x0])];else{if(_0x2782da===_0x4c5964(0x327))_0x59a0cc=[_0x455736[0x0],_0x455736[0x1],_0x4f40b7(_0x455736[0x2])];else{if(_0x2782da==='assertCreateAllowed')_0x59a0cc=[_0x4f40b7(_0x455736[0x0])];}}let _0x2539bf=_0x50974f[_0x2782da](..._0x59a0cc);if(_0x2539bf&&typeof _0x2539bf[_0x4c5964(0x600)]===_0x4c5964(0x3b3))_0x2539bf=_0x2e3e1d(_0x2539bf);if(_0x2782da===_0x4c5964(0x4df)){const _0x158812=_0x2539bf&&typeof _0x2539bf===_0x4c5964(0x712)?_0x3adb68(_0x2539bf):_0x3adb68({});return{'$api':_0x158812};}return _0x2539bf===undefined?null:_0x2539bf;}function _0x3c2ec5(_0x53a035,_0xfe04a2){const _0x1ecb95=_0x36a2;let _0x29eb94=_0x14f8a8[_0x1ecb95(0x6ce)](_0x53a035[_0x1ecb95(0x1d7)]);const _0x368318=_0x29eb94&&_0x29eb94[_0x1ecb95(0x4f7)]||_0xfe04a2||_0x4324fe,_0x25b22d=(_0x5ee99d,..._0x14bc9b)=>_0x368318[_0x1ecb95(0x24a)]('engines',null,_0x5ee99d,[_0x53a035[_0x1ecb95(0x2d0)],_0x53a035[_0x1ecb95(0x425)],..._0x14bc9b],!![]);return{'okdb':_0x368318,'key':_0x53a035[_0x1ecb95(0x5c0)],'type':_0x53a035['type'],'name':_0x53a035[_0x1ecb95(0x425)],get 'storeEnv'(){const _0x220ae7=_0x1ecb95;if(!_0x29eb94&&_0x368318&&_0x368318['_isOpen']&&_0x53a035['storeEnvName'])_0x29eb94=_0x368318['_envs']['get'](_0x53a035[_0x220ae7(0x768)]);return _0x29eb94;},'storeEnvName':_0x53a035[_0x1ecb95(0x768)],'config':_0x53a035['config'],'meta':_0x53a035[_0x1ecb95(0x360)],'options':_0x53a035[_0x1ecb95(0x4c0)],'emit':(_0x1eff24,_0x5248e9)=>_0x25b22d(_0x1ecb95(0x379),_0x1eff24,_0x5248e9),'updateStatus':async(_0x195c58,_0x3e09e5)=>_0x25b22d(_0x1ecb95(0x181),_0x195c58,_0x3e09e5==null?null:String(_0x3e09e5&&_0x3e09e5[_0x1ecb95(0x367)]?_0x3e09e5[_0x1ecb95(0x367)]:_0x3e09e5)),'updateMeta':async _0x20015d=>_0x25b22d(_0x1ecb95(0x6c4),{'meta':_0x20015d}),'updateConfig':async _0x23a2b0=>_0x25b22d(_0x1ecb95(0x6c4),{'config':_0x23a2b0})};}function _0x6cf95d(_0x9e44f5,_0x59a727,_0x4fc0a6){const _0x8a4a0f=_0x36a2;if(_0x9e44f5===_0x8a4a0f(0x770)){const _0x591af8=_0x23f4e7(_0x59a727);let _0x14f4ee=_0x591af8(_0x4fc0a6);if(_0x14f4ee&&typeof _0x14f4ee[_0x8a4a0f(0x600)]===_0x8a4a0f(0x3b3))_0x14f4ee=_0x2e3e1d(_0x14f4ee);if(!_0x14f4ee||typeof _0x14f4ee[_0x8a4a0f(0x6b9)]!=='function'){const {OKDBError:_0x193fa3}=requireErrors();throw new _0x193fa3('Embedder\x20factory\x20for\x20\x22'+(_0x4fc0a6&&_0x4fc0a6[_0x8a4a0f(0x2d0)])+_0x8a4a0f(0x405),_0x8a4a0f(0x17f));}return _0x14f4ee[_0x8a4a0f(0x330)]=_0x591af8[_0x8a4a0f(0x330)],{'$id':_0x3adb68(_0x14f4ee),'batch':typeof _0x14f4ee[_0x8a4a0f(0x3f6)]==='function'};}const _0xb9dc20=_0x572656[_0x8a4a0f(0x6ce)](_0x59a727);if(_0x9e44f5===_0x8a4a0f(0x152))return _0x572656[_0x8a4a0f(0x243)](_0x59a727),_0x520752[_0x8a4a0f(0x243)](_0x59a727),null;if(!_0xb9dc20)throw new Error(_0x8a4a0f(0x1ab));if(typeof _0xb9dc20[_0x9e44f5]!==_0x8a4a0f(0x3b3))return null;if(_0x9e44f5==='embed'||_0x9e44f5===_0x8a4a0f(0x3f6)){const _0x191b52=_0x9e44f5===_0x8a4a0f(0x3f6)?_0x1aef07(_0x59a727,_0xb9dc20,_0x4fc0a6):_0x43af9b(_0x59a727,_0xb9dc20,_0x9e44f5,_0x4fc0a6);return _0x9e44f5==='embed'?_0x55f8d9(_0x191b52):_0x191b52['map'](_0x55f8d9);}let _0x4a5655=_0xb9dc20[_0x9e44f5]();if(_0x4a5655&&typeof _0x4a5655['then']===_0x8a4a0f(0x3b3))_0x4a5655=_0x2e3e1d(_0x4a5655);return _0x4a5655===undefined?null:_0x4a5655;}function _0x55f8d9(_0x3afb9b){const _0x169bea=_0x36a2;return _0x3afb9b instanceof Float32Array?_0x3afb9b:Array[_0x169bea(0x3ed)](_0x3afb9b);}function _0x33d227(_0x41e7b8,_0x59f2b2,_0x36c491){const _0x3dcd7a=_0x36a2;if(_0x41e7b8===_0x3dcd7a(0x770)){const _0x18c462=_0x23f4e7(_0x59f2b2);let _0x375d78=_0x18c462(_0x36c491['config']??{},{'dims':_0x36c491[_0x3dcd7a(0x250)],'dir':_0x36c491['dir']});if(_0x375d78&&typeof _0x375d78[_0x3dcd7a(0x600)]===_0x3dcd7a(0x3b3))_0x375d78=_0x2e3e1d(_0x375d78);for(const _0x1b2bee of['load',_0x3dcd7a(0x725),_0x3dcd7a(0x78e),_0x3dcd7a(0x3ff),_0x3dcd7a(0x21b)]){if(!_0x375d78||typeof _0x375d78[_0x1b2bee]!==_0x3dcd7a(0x3b3)){const {OKDBError:_0x330ca7}=requireErrors();throw new _0x330ca7(_0x3dcd7a(0x847)+_0x1b2bee+'()',_0x3dcd7a(0x663),{'method':_0x1b2bee});}}return{'$id':_0x3adb68(_0x375d78)};}const _0x41ab9c=_0x572656['get'](_0x59f2b2);if(_0x41e7b8===_0x3dcd7a(0x152))return _0x572656[_0x3dcd7a(0x243)](_0x59f2b2),null;if(!_0x41ab9c)throw new Error(_0x3dcd7a(0x22a));const _0x3911df=_0x41f01c=>_0x41f01c?_0x41f01c[_0x3dcd7a(0x4e8)](_0x5013e6=>({'key':_0x5013e6[_0x3dcd7a(0x5c0)],'vector':Float32Array['from'](_0x5013e6['vector'])})):null;let _0x58663d;switch(_0x41e7b8){case'load':case _0x3dcd7a(0x247):{const _0x299480=_0x3911df(_0x36c491);_0x58663d=_0x41ab9c[_0x41e7b8](_0x299480?async()=>_0x299480:undefined);break;}case _0x3dcd7a(0x725):_0x58663d=_0x41ab9c[_0x3dcd7a(0x725)](_0x36c491[0x0],Float32Array['from'](_0x36c491[0x1]),_0x36c491[0x2]??undefined);break;case'remove':_0x58663d=_0x41ab9c[_0x3dcd7a(0x78e)](_0x36c491);break;case _0x3dcd7a(0x3ff):_0x58663d=_0x41ab9c['search'](Float32Array[_0x3dcd7a(0x3ed)](_0x36c491[_0x3dcd7a(0x450)]),_0x36c491[_0x3dcd7a(0x635)]??{});break;case _0x3dcd7a(0x22c):_0x58663d=typeof _0x41ab9c[_0x3dcd7a(0x22c)]==='function'?_0x41ab9c[_0x3dcd7a(0x22c)](_0x36c491??undefined):![];break;case'stop':_0x58663d=typeof _0x41ab9c[_0x3dcd7a(0x32a)]===_0x3dcd7a(0x3b3)?_0x41ab9c['stop']():undefined;break;case _0x3dcd7a(0x479):_0x58663d=typeof _0x41ab9c[_0x3dcd7a(0x479)]===_0x3dcd7a(0x3b3)?_0x41ab9c[_0x3dcd7a(0x479)]():undefined;break;case'count':return Number(_0x41ab9c['count']());case _0x3dcd7a(0x758):return(typeof _0x41ab9c[_0x3dcd7a(0x758)]===_0x3dcd7a(0x3b3)?_0x41ab9c[_0x3dcd7a(0x758)]():null)??{};default:throw new Error(_0x3dcd7a(0x5d3)+_0x41e7b8);}if(_0x58663d&&typeof _0x58663d[_0x3dcd7a(0x600)]===_0x3dcd7a(0x3b3))_0x58663d=_0x2e3e1d(_0x58663d);return _0x58663d===undefined?null:_0x58663d;}function _0x5deb4e(_0x8ce3f,_0x1bd4f0,_0x30e57f){const _0x199a20=_0x36a2;if(_0x8ce3f===_0x199a20(0x770)){const _0x4bbaba=_0x23f4e7(_0x1bd4f0);let _0x464041=_0x4bbaba(_0x30e57f);if(_0x464041&&typeof _0x464041[_0x199a20(0x600)]==='function')_0x464041=_0x2e3e1d(_0x464041);if(!_0x464041)return null;const _0x5c98fa=[_0x199a20(0x46e),_0x199a20(0x50d),'get',_0x199a20(0x21b),_0x199a20(0x645),_0x199a20(0x159)][_0x199a20(0x440)](_0x180b6b=>typeof _0x464041[_0x180b6b]===_0x199a20(0x3b3));return{'$id':_0x3adb68(_0x464041),'has':_0x5c98fa};}const _0xb8fb5f=_0x572656[_0x199a20(0x6ce)](_0x1bd4f0);if(_0x8ce3f===_0x199a20(0x152))return _0x572656[_0x199a20(0x243)](_0x1bd4f0),null;if(!_0xb8fb5f)throw new Error(_0x199a20(0x253));const _0x38a046=_0x291cbb=>Float32Array['from'](_0x291cbb);let _0x3c1098;switch(_0x8ce3f){case'put':_0x3c1098=_0xb8fb5f[_0x199a20(0x14f)](_0x30e57f[0x0],_0x38a046(_0x30e57f[0x1]));break;case _0x199a20(0x78e):_0x3c1098=_0xb8fb5f[_0x199a20(0x78e)](_0x30e57f);break;case _0x199a20(0x552):{_0x3c1098=typeof _0xb8fb5f[_0x199a20(0x552)]===_0x199a20(0x3b3)?_0xb8fb5f[_0x199a20(0x552)]():[];if(_0x3c1098&&typeof _0x3c1098[_0x199a20(0x600)]===_0x199a20(0x3b3))_0x3c1098=_0x2e3e1d(_0x3c1098);return Array[_0x199a20(0x3ed)](_0x3c1098??[],_0x5339bf=>({'key':_0x5339bf['key'],'vector':Array[_0x199a20(0x3ed)](_0x5339bf[_0x199a20(0x695)])}));}case _0x199a20(0x46e):_0x3c1098=_0xb8fb5f[_0x199a20(0x46e)](_0x30e57f[_0x199a20(0x1d2)]['map'](_0x204443=>({'key':_0x204443[_0x199a20(0x5c0)],'vector':_0x38a046(_0x204443['vector'])})),_0x30e57f[_0x199a20(0x4a5)]);break;case'keys':_0x3c1098=_0xb8fb5f[_0x199a20(0x50d)](_0x30e57f??undefined);if(_0x3c1098&&typeof _0x3c1098[_0x199a20(0x600)]==='function')_0x3c1098=_0x2e3e1d(_0x3c1098);return Array['from'](_0x3c1098??[]);case _0x199a20(0x6ce):{_0x3c1098=_0xb8fb5f['get'](_0x30e57f);if(_0x3c1098&&typeof _0x3c1098[_0x199a20(0x600)]===_0x199a20(0x3b3))_0x3c1098=_0x2e3e1d(_0x3c1098);return _0x3c1098==null?null:Array['from'](_0x3c1098);}case'count':return Number(_0xb8fb5f[_0x199a20(0x21b)]());case _0x199a20(0x645):_0x3c1098=_0xb8fb5f[_0x199a20(0x645)]();break;case _0x199a20(0x159):return _0xb8fb5f[_0x199a20(0x159)]()??null;default:throw new Error(_0x199a20(0x55c)+_0x8ce3f);}if(_0x3c1098&&typeof _0x3c1098['then']===_0x199a20(0x3b3))_0x3c1098=_0x2e3e1d(_0x3c1098);return _0x3c1098===undefined?null:_0x3c1098;}const _0x4e3431=new Map();function _0x43af9b(_0xf83396,_0x3dd8d7,_0x2c45d6,_0x2b16ed){const _0x5d5120=_0x36a2,_0x2990cb=_0xf83396+'\x00'+_0x2c45d6+'\x00'+JSON['stringify'](_0x2b16ed),_0x2bb0bf=_0x4e3431[_0x5d5120(0x6ce)](_0x2990cb);if(_0x2bb0bf){if(_0x2bb0bf['state']===_0x5d5120(0x641))throw _0x4648a4();_0x4e3431['delete'](_0x2990cb);if(_0x2bb0bf[_0x5d5120(0x76c)]==='err')throw _0x2bb0bf[_0x5d5120(0x821)];return _0x2bb0bf[_0x5d5120(0x821)];}const _0x4389c5=_0x3dd8d7[_0x2c45d6](_0x2b16ed);if(!_0x4389c5||typeof _0x4389c5[_0x5d5120(0x600)]!==_0x5d5120(0x3b3))return _0x4389c5;const _0x1b6b4a={'state':_0x5d5120(0x641),'value':undefined};_0x4389c5['then'](_0x110e8b=>{const _0x44e0ed=_0x5d5120;_0x1b6b4a[_0x44e0ed(0x76c)]='ok',_0x1b6b4a[_0x44e0ed(0x821)]=_0x110e8b;if(_0x4e3431[_0x44e0ed(0x6ce)](_0x2990cb)===_0x1b6b4a)_0x1525ae(_0x3dd8d7);},_0x39e831=>{const _0x375bb0=_0x5d5120;_0x1b6b4a[_0x375bb0(0x76c)]=_0x375bb0(0x20f),_0x1b6b4a[_0x375bb0(0x821)]=_0x39e831;if(_0x4e3431['get'](_0x2990cb)===_0x1b6b4a)_0x1525ae(_0x3dd8d7);});for(let _0x15b4f9=0x0;_0x15b4f9<0x64&&_0x1b6b4a[_0x5d5120(0x76c)]===_0x5d5120(0x641);_0x15b4f9++)process[_0x5d5120(0x168)]();if(_0x1b6b4a[_0x5d5120(0x76c)]==='ok')return _0x1b6b4a[_0x5d5120(0x821)];if(_0x1b6b4a[_0x5d5120(0x76c)]===_0x5d5120(0x20f))throw _0x1b6b4a[_0x5d5120(0x821)];_0x4e3431[_0x5d5120(0x7a0)](_0x2990cb,_0x1b6b4a);throw _0x4648a4();}const _0x520752=new Map(),_0xe6851d=0xa*0x3c*0x3e8;function _0x1aef07(_0x816040,_0x20d3ac,_0x12f892){const _0x1e08a2=_0x36a2,_0x3a2a84=Array[_0x1e08a2(0x7e3)](_0x12f892)?_0x12f892:Array[_0x1e08a2(0x3ed)](_0x12f892??[]);let _0x57da0d=_0x520752['get'](_0x816040);if(!_0x57da0d)_0x520752['set'](_0x816040,_0x57da0d=new Map());const _0xba4648=Date[_0x1e08a2(0x76a)]();for(const [_0xb6810d,_0x5a823d]of _0x57da0d)if(_0x5a823d[_0x1e08a2(0x2e3)][_0x1e08a2(0x76c)]!==_0x1e08a2(0x641)&&_0xba4648-_0x5a823d[_0x1e08a2(0x2e3)]['at']>_0xe6851d)_0x57da0d[_0x1e08a2(0x243)](_0xb6810d);const _0x5b54fc=_0x3a2a84[_0x1e08a2(0x4e8)](_0x352c2b=>JSON[_0x1e08a2(0x84b)](_0x352c2b));let _0x2a5c4d=![];const _0x432909=[],_0x271d2e=new Set();for(let _0x408c5f=0x0;_0x408c5f<_0x5b54fc[_0x1e08a2(0x192)];_0x408c5f++){const _0x21022a=_0x57da0d[_0x1e08a2(0x6ce)](_0x5b54fc[_0x408c5f]);if(!_0x21022a)!_0x271d2e[_0x1e08a2(0x69d)](_0x5b54fc[_0x408c5f])&&(_0x271d2e['add'](_0x5b54fc[_0x408c5f]),_0x432909[_0x1e08a2(0x46d)](_0x408c5f));else{if(_0x21022a[_0x1e08a2(0x2e3)][_0x1e08a2(0x76c)]===_0x1e08a2(0x641))_0x2a5c4d=!![];else{if(_0x21022a[_0x1e08a2(0x2e3)][_0x1e08a2(0x76c)]==='err'){const _0x4c5eb8=_0x21022a['req']['value'];for(const [_0x2d61b5,_0x3c8db8]of _0x57da0d)if(_0x3c8db8[_0x1e08a2(0x2e3)]===_0x21022a[_0x1e08a2(0x2e3)])_0x57da0d[_0x1e08a2(0x243)](_0x2d61b5);throw _0x4c5eb8;}}}}if(_0x2a5c4d)throw _0x4648a4();if(_0x432909['length']){const _0x4c456f=_0x432909[_0x1e08a2(0x4e8)](_0x418032=>_0x3a2a84[_0x418032]),_0x3d9e0b=_0x20d3ac[_0x1e08a2(0x3f6)](_0x4c456f),_0x3fa094={'state':_0x1e08a2(0x641),'value':undefined,'at':0x0},_0x15a1d7=(_0x26fd8d,_0x24c32e)=>{const _0x1f8b52=_0x1e08a2;_0x3fa094[_0x1f8b52(0x76c)]=_0x26fd8d,_0x3fa094[_0x1f8b52(0x821)]=_0x24c32e,_0x3fa094['at']=Date[_0x1f8b52(0x76a)]();};if(!_0x3d9e0b||typeof _0x3d9e0b[_0x1e08a2(0x600)]!==_0x1e08a2(0x3b3))_0x15a1d7('ok',_0x3d9e0b);else{let _0x3350bd=!![];_0x3d9e0b[_0x1e08a2(0x600)](_0x4c60ef=>{_0x15a1d7('ok',_0x4c60ef);if(!_0x3350bd)_0x1525ae(_0x20d3ac);},_0x29c100=>{const _0x1d4e20=_0x1e08a2;_0x15a1d7(_0x1d4e20(0x20f),_0x29c100);if(!_0x3350bd)_0x1525ae(_0x20d3ac);});for(let _0x444200=0x0;_0x444200<0x64&&_0x3fa094[_0x1e08a2(0x76c)]===_0x1e08a2(0x641);_0x444200++)process[_0x1e08a2(0x168)]();_0x3350bd=![];}for(let _0x583afd=0x0;_0x583afd<_0x432909[_0x1e08a2(0x192)];_0x583afd++)_0x57da0d['set'](_0x5b54fc[_0x432909[_0x583afd]],{'req':_0x3fa094,'index':_0x583afd});if(_0x3fa094[_0x1e08a2(0x76c)]===_0x1e08a2(0x20f)){for(const _0x1df86b of _0x432909)_0x57da0d[_0x1e08a2(0x243)](_0x5b54fc[_0x1df86b]);throw _0x3fa094['value'];}if(_0x3fa094[_0x1e08a2(0x76c)]===_0x1e08a2(0x641))throw _0x4648a4();}const _0x431d=_0x5b54fc[_0x1e08a2(0x4e8)](_0x43cf6b=>{const _0x3f97a3=_0x1e08a2,_0x59178e=_0x57da0d[_0x3f97a3(0x6ce)](_0x43cf6b),_0x48b313=_0x59178e[_0x3f97a3(0x2e3)][_0x3f97a3(0x821)];return _0x48b313?_0x48b313[_0x59178e[_0x3f97a3(0x4bf)]]:undefined;});for(const _0x2fc0aa of _0x5b54fc)_0x57da0d[_0x1e08a2(0x243)](_0x2fc0aa);if(!_0x57da0d['size'])_0x520752['delete'](_0x816040);return _0x431d;}function _0x4648a4(){const _0x1ba152=_0x36a2;return Object[_0x1ba152(0x3aa)](new Error('embedder\x20request\x20still\x20pending'),{'code':_0x1ba152(0x2dc)});}function _0x1525ae(_0x33c718){const _0x627b44=_0x36a2;_0x1ed962();try{const _0x26e184=_0x33c718[_0x627b44(0x330)]||_0x4324fe;if(_0x26e184&&_0x26e184[_0x627b44(0x67d)])_0x26e184['_call'](_0x627b44(0x5d6),null,_0x627b44(0x839),[_0x627b44(0x161),{}],!![]);}catch{}}function _0x241040(_0x16bb5a,_0x16870a,_0x288c2f){const _0x480374=_0x36a2,_0x797e71=_0x572656['get'](_0x16bb5a);if(!_0x797e71||typeof _0x797e71[_0x16870a]!=='function')return{'__absent':!![]};let _0x21741d=_0x797e71[_0x16870a](...Array[_0x480374(0x7e3)](_0x288c2f)?_0x288c2f:[]);if(_0x21741d&&typeof _0x21741d[_0x480374(0x600)]==='function')_0x21741d=_0x2e3e1d(_0x21741d);return{'value':_0x21741d===undefined?null:_0x21741d};}const _0x267b83=new Map();let _0x371e0d=0x1;const _0x14f8a8=new Map(),_0xcc0215=new Map();function _0x2a870c(_0x589755,_0x3b8738=null){const _0x494459=_0x36a2,_0x451d21=_0x371e0d++;_0x267b83[_0x494459(0x7a0)](_0x451d21,_0x589755);if(_0x3b8738)_0xcc0215[_0x494459(0x7a0)](_0x451d21,_0x3b8738);return _0x451d21;}function _0x1b2f9c(_0x1a6d46){const _0x39f57d=_0x36a2;for(const [_0x302e16,_0x18aaea]of _0x14f8a8)if(_0x18aaea&&_0x18aaea[_0x39f57d(0x4f7)]===_0x1a6d46)_0x14f8a8['delete'](_0x302e16);for(const [_0x3c529a,_0x400429]of _0x496125)if(_0x400429===_0x1a6d46)_0x496125[_0x39f57d(0x243)](_0x3c529a);for(const [_0x4a9aa8,_0x4ded91]of _0xcc0215)_0x4ded91===_0x1a6d46&&(_0xcc0215[_0x39f57d(0x243)](_0x4a9aa8),_0x267b83[_0x39f57d(0x243)](_0x4a9aa8));if(_0x4324fe===_0x1a6d46)_0x4324fe=null;}function _0x2936ac(_0x40cf4a,_0x3ae223){const _0x577d8f=_0x36a2;_0x14f8a8[_0x577d8f(0x7a0)](_0x40cf4a,_0x3ae223);}function _0x445458(_0x365918){const _0x14e4b4=_0x36a2;if(_0x365918&&typeof _0x365918==='object'&&Object[_0x14e4b4(0x50d)](_0x365918)[_0x14e4b4(0x192)]===0x1&&_0x365918['$payload']!==undefined)return _0x267b83[_0x14e4b4(0x6ce)](_0x365918['$payload']);return _0x365918;}function _0x2e3e1d(_0x12b79f){const _0x3e1ef6=_0x36a2;let _0x58ea5e=![],_0x2d9ed4=![],_0x36fc61;_0x12b79f[_0x3e1ef6(0x600)](_0x296b6c=>{_0x58ea5e=!![],_0x36fc61=_0x296b6c;},_0x7ec2d3=>{_0x58ea5e=!![],_0x2d9ed4=!![],_0x36fc61=_0x7ec2d3;});for(let _0xa42cba=0x0;_0xa42cba<0x2710&&!_0x58ea5e;_0xa42cba++)process[_0x3e1ef6(0x168)]();if(!_0x58ea5e)return _0x12b79f[_0x3e1ef6(0x600)](undefined,_0x1fa830=>{const _0x567307=_0x3e1ef6;try{process['emitWarning']('okdb-node:\x20a\x20background\x20async\x20handler\x20rejected:\x20'+(_0x1fa830&&_0x1fa830[_0x567307(0x367)]?_0x1fa830[_0x567307(0x367)]:_0x1fa830));}catch{}}),undefined;if(_0x2d9ed4)throw _0x36fc61;return _0x36fc61;}function _0x42aae5(_0x299032,_0x2e84ba,_0x1fca12){const _0x3f4cb9=_0x36a2,_0x4726ee=_0x23f4e7(_0x299032),_0x533e55=_0x14f8a8[_0x3f4cb9(0x6ce)](_0x2e84ba);try{const _0x154ca3=_0x4726ee(_0x1fca12,{'okdb':_0x533e55&&_0x533e55['okdb'],'env':_0x533e55});if(_0x154ca3&&typeof _0x154ca3['then']===_0x3f4cb9(0x3b3))_0x2e3e1d(_0x154ca3);}catch(_0x359136){if(_0x359136&&_0x359136[_0x3f4cb9(0x461)]===!![]&&_0x359136[_0x3f4cb9(0x316)]!==_0x3f4cb9(0x3cf)){const _0x16232a=new Error(_0x359136[_0x3f4cb9(0x367)]);_0x16232a['code']=_0x3f4cb9(0x3cf);throw _0x16232a;}throw _0x359136;}}const _0x45d43b=new Map();function _0x5dc11a(_0x378bb6,_0x53725e,_0x3b4aec,_0x29f0ab,_0x2a0610,_0x1a0b7e){const _0x55b754=_0x36a2,_0x1b4167=_0x23f4e7(_0x378bb6),_0x456c49=(_0x14f8a8[_0x55b754(0x6ce)](_0x1a0b7e)||{})[_0x55b754(0x4f7)]||_0x4324fe,_0x2fc976=new AbortController(),_0x2adf33=(_0x47a951,..._0x629a76)=>_0x456c49[_0x55b754(0x24a)](_0x55b754(0x72c),'default',_0x47a951,_0x629a76,![]),_0x50a1ed={'okdb':_0x456c49,'env':_0x14f8a8[_0x55b754(0x6ce)](_0x1a0b7e)||null,'job':_0x29f0ab,'jobId':_0x2a0610,'signal':_0x2fc976[_0x55b754(0x1cc)],'heartbeat':()=>_0x2adf33(_0x55b754(0x7c4),_0x3b4aec),'markProgress':_0x5c9f0b=>_0x2adf33(_0x55b754(0x58a),_0x3b4aec,_0x5c9f0b),'log':(_0x38cbf1,_0x234d7d)=>_0x2adf33(_0x55b754(0x7d3),_0x3b4aec,_0x38cbf1,_0x234d7d)};_0x45d43b[_0x55b754(0x7a0)](_0x3b4aec,{'ctrl':_0x2fc976,'call':_0x2adf33});const _0x11c2de=()=>{_0x45d43b['delete'](_0x3b4aec);try{_0x2adf33('ctxRelease',_0x3b4aec);}catch{}};let _0x52d015;try{_0x52d015=_0x1b4167(_0x53725e,_0x50a1ed);}catch(_0x1dc4d6){_0x11c2de();throw _0x1dc4d6;}if(_0x52d015&&typeof _0x52d015[_0x55b754(0x600)]===_0x55b754(0x3b3)){const _0x196f4c=_0x353521(_0x52d015);return _0x52d015['then'](_0x11c2de,_0x11c2de),{'$token':_0x196f4c};}return _0x11c2de(),_0x52d015;}function _0x484b26(){const _0x50bbaf=_0x36a2;for(const [_0x172311,_0xe66b46]of _0x45d43b){if(_0xe66b46[_0x50bbaf(0x44d)][_0x50bbaf(0x1cc)]['aborted'])continue;let _0x178ca0;try{_0x178ca0=_0xe66b46[_0x50bbaf(0x245)](_0x50bbaf(0x2cf),_0x172311);}catch{continue;}if(_0x178ca0&&_0x178ca0['aborted']){const {OKDBError:_0x480531}=requireErrors();_0xe66b46['ctrl']['abort'](new _0x480531(_0x178ca0[_0x50bbaf(0x367)],_0x178ca0[_0x50bbaf(0x316)]));}}}let _0x4324fe=null;function _0x2576f2(_0xae746b){_0x4324fe=_0xae746b;}function _0x2bba21(_0x188c99,_0x4c676c,_0x32d4b8,_0x43e0a8,_0x43df60,_0x3cdbad,_0x59ccdb){const _0x5afecd=_0x36a2,_0x51d933=_0x23f4e7(_0x188c99),_0x4642cb=_0x14f8a8[_0x5afecd(0x6ce)](_0x32d4b8);try{const _0xb2711a=_0x4c676c?_0x51d933(_0x43df60,_0x3cdbad):_0x51d933({'env':_0x4642cb,'okdb':_0x4642cb&&_0x4642cb[_0x5afecd(0x4f7)],'payload':_0x445458(_0x43e0a8)},_0x43df60,_0x3cdbad);if(_0xb2711a&&typeof _0xb2711a[_0x5afecd(0x600)]==='function'){if(_0x3cdbad&&_0x3cdbad[_0x5afecd(0x82b)]===_0x5afecd(0x3a4))_0xb2711a['then'](undefined,()=>{});else{if(_0x59ccdb){const _0x1fd9b0=_0x39dbad(_0xb2711a);if(_0x1fd9b0===0x0)return null;return{'$token':_0x1fd9b0};}else _0x2e3e1d(_0xb2711a);}}}catch(_0x3869cd){if(_0x3869cd&&_0x3869cd[_0x5afecd(0x461)]===!![]&&_0x3869cd[_0x5afecd(0x316)]!==_0x5afecd(0x3cf)){const _0x237ab4=new Error(_0x3869cd[_0x5afecd(0x367)]);_0x237ab4['code']=_0x5afecd(0x3cf);throw _0x237ab4;}throw _0x3869cd;}return null;}function _0x39dbad(_0x1b5312){const _0x24ba10=_0x36a2;let _0x1028b3=_0x24ba10(0x641),_0x8f022d;_0x1b5312[_0x24ba10(0x600)](_0x81a80a=>{_0x1028b3='ok',_0x8f022d=_0x81a80a;},_0x3584cc=>{_0x1028b3='err',_0x8f022d=_0x3584cc;});for(let _0x3e1efe=0x0;_0x3e1efe<0x64&&_0x1028b3==='pending';_0x3e1efe++)process[_0x24ba10(0x168)]();if(_0x1028b3==='ok')return 0x0;const _0x1e7b17=_0x5e13e6++,_0x13f5df={'state':_0x1028b3,'value':_0x8f022d};_0x20ce5a[_0x24ba10(0x7a0)](_0x1e7b17,_0x13f5df);if(_0x1028b3===_0x24ba10(0x641))_0x1b5312['then'](_0xa6f389=>{const _0x51192c=_0x24ba10;_0x13f5df[_0x51192c(0x76c)]='ok',_0x13f5df['value']=_0xa6f389,_0x1ed962();},_0x5f0f2d=>{const _0x29bde2=_0x24ba10;_0x13f5df[_0x29bde2(0x76c)]=_0x29bde2(0x20f),_0x13f5df[_0x29bde2(0x821)]=_0x5f0f2d,_0x1ed962();});return _0x1e7b17;}function _0x4d3e(_0x1d0320){const _0x3580ea=_0x36a2;let _0x5d477d=_0xc638bf[_0x3580ea(0x6ce)](_0x1d0320);return _0x5d477d===undefined&&(_0x5d477d=_0xffb492++,_0xc638bf['set'](_0x1d0320,_0x5d477d),_0x578a6f[_0x3580ea(0x7a0)](_0x5d477d,{'fn':_0x1d0320,'refs':0x0})),_0x578a6f[_0x3580ea(0x6ce)](_0x5d477d)['refs']++,_0x5d477d;}function _0x4c51de(_0x16032b){const _0x28a263=_0x36a2,_0x1aeb39=_0x578a6f['get'](_0x16032b);if(!_0x1aeb39)return;--_0x1aeb39[_0x28a263(0x3ec)]<=0x0&&(_0x578a6f['delete'](_0x16032b),_0xc638bf[_0x28a263(0x243)](_0x1aeb39['fn']));}function _0x23f4e7(_0x328bd4){const _0x2e085c=_0x36a2,_0x1c3148=_0x578a6f[_0x2e085c(0x6ce)](_0x328bd4);if(!_0x1c3148)throw new Error(_0x2e085c(0x79f)+_0x328bd4);return _0x1c3148['fn'];}function _0x353521(_0x326483){const _0x57926=_0x36a2;if(_0x326483&&typeof _0x326483[_0x57926(0x600)]==='function'){const _0x5af0a0=_0x5e13e6++,_0xa648a1={'state':_0x57926(0x641),'value':undefined};return _0x20ce5a['set'](_0x5af0a0,_0xa648a1),_0x326483['then'](_0x529df1=>{const _0x4b604a=_0x57926;_0xa648a1[_0x4b604a(0x76c)]='ok',_0xa648a1[_0x4b604a(0x821)]=_0x529df1,_0x1ed962();},_0x40a22e=>{const _0x4a87aa=_0x57926;_0xa648a1['state']='err',_0xa648a1[_0x4a87aa(0x821)]=_0x40a22e,_0x1ed962();}),_0x5af0a0;}return 0x0;}let _0x478282=()=>{},_0x11ce00=null;function _0x448757(_0x434b5b,_0xc49b2f=null){_0x478282=_0x434b5b,_0x11ce00=_0xc49b2f;}function _0x4a2aea(_0x3299ad){return _0x11ce00===_0x3299ad;}function _0x1ed962(){_0x478282();}function _0x3008b7(_0x54d647){const _0x3dbcd7=_0x36a2,_0x569bff=_0x20ce5a[_0x3dbcd7(0x6ce)](_0x54d647);if(!_0x569bff)return{'state':_0x3dbcd7(0x20f),'error':{'message':'unknown\x20promise\x20token'}};if(_0x569bff[_0x3dbcd7(0x76c)]===_0x3dbcd7(0x641))return{'state':_0x3dbcd7(0x641)};_0x20ce5a['delete'](_0x54d647);if(_0x569bff[_0x3dbcd7(0x76c)]==='ok')return{'state':'ok','value':_0x569bff['value']};const _0x596984=_0x569bff['value'];return{'state':_0x3dbcd7(0x20f),'error':{'message':_0x596984&&_0x596984[_0x3dbcd7(0x367)]!=null?String(_0x596984[_0x3dbcd7(0x367)]):String(_0x596984),'stack':_0x596984&&_0x596984[_0x3dbcd7(0x86d)],'code':_0x596984&&_0x596984['code'],'status':_0x596984&&typeof _0x596984[_0x3dbcd7(0x2e4)]==='number'?_0x596984['status']:undefined,'hold':!!(_0x596984&&_0x596984[_0x3dbcd7(0x461)]===!![])}};}function _0x3eb388(_0x43e372,_0x1e6da0){const _0x4b0f48=_0x36a2;_0x888ce[_0x4b0f48(0x7a0)](_0x43e372,_0x1e6da0);}function _0x1e4662(_0x109861){const _0x43a0ca=_0x36a2;_0x888ce[_0x43a0ca(0x243)](_0x109861);}let _0x300908=0x0;function _0x8e78a3(){return _0x300908>0x0;}function _0x2cc1f3(){_0x300908++;try{return _0x4fb6ae['apply'](undefined,arguments);}finally{_0x300908--;}}function _0x4fb6ae(_0x447963,_0x14bfc3,_0x55afcc,_0x5e2062,_0x57fe8c,_0x1fe9bd){const _0x2bd03e=_0x36a2;switch(_0x447963){case _0x2bd03e(0x4d1):return _0x4d3e(_0x14bfc3);case _0x2bd03e(0x2db):return _0x4c51de(_0x14bfc3);case _0x2bd03e(0x245):{const _0x574a60=Array['prototype']['slice'][_0x2bd03e(0x245)](arguments,0x2),_0x5c6961=_0x23f4e7(_0x14bfc3)[_0x2bd03e(0x5fb)](undefined,_0x574a60);return _0x5c6961&&typeof _0x5c6961['then']===_0x2bd03e(0x3b3)?_0x2e3e1d(_0x5c6961):_0x5c6961;}case _0x2bd03e(0x521):{const _0x193205=Array[_0x2bd03e(0x771)][_0x2bd03e(0x6fe)]['call'](arguments,0x2),_0x122a73=_0x23f4e7(_0x14bfc3)['apply'](undefined,_0x193205);if(_0x122a73&&typeof _0x122a73['then']===_0x2bd03e(0x3b3))return{'$token':_0x353521(_0x122a73)};return{'$value':_0x122a73===undefined?null:_0x122a73,'$undef':_0x122a73===undefined};}case'event':{const _0x401f4e=_0x888ce[_0x2bd03e(0x6ce)](_0x14bfc3);if(_0x401f4e)_0x401f4e[_0x2bd03e(0x707)](_0x55afcc,_0x5e2062);return undefined;}case'log':{const _0x58487d=_0x888ce['get'](_0x14bfc3);if(_0x58487d)_0x58487d[_0x2bd03e(0x1ac)](_0x55afcc);return undefined;}case _0x2bd03e(0x816):return _0x2bba21(_0x14bfc3,_0x55afcc,_0x5e2062,_0x57fe8c,_0x1fe9bd,arguments[0x6],arguments[0x7]);case _0x2bd03e(0x86b):return _0x42aae5(_0x14bfc3,_0x55afcc,_0x5e2062);case _0x2bd03e(0x16f):return _0x5dc11a(_0x14bfc3,_0x55afcc,_0x5e2062,_0x57fe8c,_0x1fe9bd,arguments[0x6]);case _0x2bd03e(0x281):return _0x1b9b37['apply'](null,Array[_0x2bd03e(0x771)][_0x2bd03e(0x6fe)][_0x2bd03e(0x245)](arguments,0x1));case _0x2bd03e(0x551):return _0x241040(_0x14bfc3,_0x55afcc,_0x5e2062);case _0x2bd03e(0x794):return _0x3008b7(_0x14bfc3);case'fetchJson':{const _0x71cca2=((async()=>{const _0x2097b2=_0x2bd03e,_0x141449=await globalThis[_0x2097b2(0x73e)](_0x14bfc3);if(!_0x141449['ok']){const _0x2447da=new Error('HTTP\x20'+_0x141449[_0x2097b2(0x2e4)]);_0x2447da[_0x2097b2(0x316)]=_0x2097b2(0x6b3);throw _0x2447da;}return _0x141449[_0x2097b2(0x650)]();})());return _0x2e3e1d(_0x71cca2)??null;}case'emb':return _0x6cf95d(_0x14bfc3,_0x55afcc,_0x5e2062);case _0x2bd03e(0x7a6):return _0x33d227(_0x14bfc3,_0x55afcc,_0x5e2062);case _0x2bd03e(0x7ea):return _0x5deb4e(_0x14bfc3,_0x55afcc,_0x5e2062);default:throw new Error(_0x2bd03e(0x17b)+_0x447963);}}return bridge_1={'inNativeCall':_0x8e78a3,'regObject':_0x3adb68,'checkSignals':_0x484b26,'setCurrentDb':_0x2576f2,'forgetDb':_0x1b2f9c,'storePayload':_0x2a870c,'registerEnv':_0x2936ac,'resolvePayload':_0x445458,'bridge':_0x2cc1f3,'reg':_0x4d3e,'unreg':_0x4c51de,'fnOf':_0x23f4e7,'track':_0x353521,'resolve':_0x3008b7,'registerTarget':_0x3eb388,'unregisterTarget':_0x1e4662,'setKick':_0x448757,'kickOwnedBy':_0x4a2aea},bridge_1;}var writebatch,hasRequiredWritebatch;function requireWritebatch(){const _0xa90467=_0x2d5353;if(hasRequiredWritebatch)return writebatch;hasRequiredWritebatch=0x1;const {reclass:_0x3af623}=requireErrors(),_0x299d58=requireBridge(),_0x30d525=new Map();let _0x30021c=null;function _0x2495b6(_0x3e3bfa){const _0x5a710e=_0x36a2;if(_0x30021c)return;_0x30021c=_0x3e3bfa,_0x3e3bfa[_0x5a710e(0x826)](_0x27f9ff);}function _0x27f9ff(){const _0xc3461f=_0x30021c['settledTickets']();for(const _0x572581 of _0xc3461f){const _0x4b5ee6=_0x30d525['get'](_0x572581);_0x4b5ee6&&(_0x30d525['delete'](_0x572581),_0x4b5ee6());}}function _0x5040f5(_0x121fc0,_0x53222a){const _0x2c46cc=_0x36a2;_0x30d525[_0x2c46cc(0x7a0)](_0x121fc0,_0x53222a);}class _0x1d940f{constructor(_0x1ee0cb){const _0x5af9d9=_0x36a2;this['db']=_0x1ee0cb,this[_0x5af9d9(0x72c)]=[],this[_0x5af9d9(0x311)]=![],this['inBatch']=![],this[_0x5af9d9(0x57f)]=new Set();}[_0xa90467(0x4eb)](_0xbec1bb,_0x3af299,_0x20d60e,_0x88fba6){const _0x383632=_0xa90467;if(_0x299d58[_0x383632(0x211)]())try{return Promise[_0x383632(0x794)](this['db']['_call'](_0xbec1bb,_0x3af299,_0x20d60e,_0x88fba6));}catch(_0x2460b6){return Promise[_0x383632(0x47c)](_0x2460b6);}const _0x20b613=new Promise((_0x1caf15,_0x1b2474)=>{const _0x2c55ca=_0x383632;this[_0x2c55ca(0x72c)]['push']({'item':[_0xbec1bb,_0x3af299,_0x20d60e,_0x88fba6],'resolve':_0x1caf15,'reject':_0x1b2474});});this[_0x383632(0x57f)][_0x383632(0x725)](_0x20b613);const _0x32f321=()=>this[_0x383632(0x57f)][_0x383632(0x243)](_0x20b613);return _0x20b613['then'](_0x32f321,_0x32f321),!this[_0x383632(0x311)]&&(this[_0x383632(0x311)]=!![],setImmediate(()=>{const _0x2ab8d6=_0x383632;this[_0x2ab8d6(0x311)]=![],this[_0x2ab8d6(0x65f)]();})),_0x20b613;}[_0xa90467(0x65f)](){const _0x5d49eb=_0xa90467;if(!this[_0x5d49eb(0x72c)][_0x5d49eb(0x192)])return;if(this[_0x5d49eb(0x400)]){!this['scheduled']&&(this[_0x5d49eb(0x311)]=!![],setImmediate(()=>{const _0x2456d3=_0x5d49eb;this[_0x2456d3(0x311)]=![],this[_0x2456d3(0x65f)]();}));return;}const _0xa3122=this[_0x5d49eb(0x72c)];this[_0x5d49eb(0x72c)]=[],this[_0x5d49eb(0x7ee)](_0xa3122);}[_0xa90467(0x7ee)](_0x4656d3){const _0x3bbb5f=_0xa90467;let _0x1b342f;this[_0x3bbb5f(0x400)]=!![];try{_0x1b342f=this['db'][_0x3bbb5f(0x38a)][_0x3bbb5f(0x736)](_0x4656d3[_0x3bbb5f(0x4e8)](_0x5f3ee4=>_0x5f3ee4[_0x3bbb5f(0x5ce)]));}catch(_0xa9289e){this['inBatch']=![];if(_0x4656d3['length']>0x1){for(const _0x457911 of _0x4656d3)this[_0x3bbb5f(0x7ee)]([_0x457911]);return;}const _0x335afb=_0x3af623(_0xa9289e);for(const _0x26cf56 of _0x4656d3)_0x26cf56[_0x3bbb5f(0x47c)](_0x335afb);return;}finally{this[_0x3bbb5f(0x400)]=![];}try{this['db'][_0x3bbb5f(0x176)]['wake']();}catch{}const [_0x398a68,_0x31dbb7]=_0x1b342f;_0x5040f5(_0x31dbb7,()=>{const _0x4a03fa=_0x3bbb5f;for(let _0x32050d=0x0;_0x32050d<_0x4656d3[_0x4a03fa(0x192)];_0x32050d++){const _0x33f216=_0x398a68[_0x32050d];if(_0x33f216&&_0x33f216[0x0])_0x4656d3[_0x32050d][_0x4a03fa(0x794)](_0x33f216[0x1]);else _0x4656d3[_0x32050d]['reject'](_0x3af623(_0x33f216?_0x33f216[0x1]:new Error(_0x4a03fa(0x237))));}});}async[_0xa90467(0x7da)](){const _0x2d0233=_0xa90467;this[_0x2d0233(0x65f)]();while(this[_0x2d0233(0x57f)]['size']){await Promise[_0x2d0233(0x373)]([...this[_0x2d0233(0x57f)]]),this[_0x2d0233(0x65f)]();}let _0x56a098;try{_0x56a098=this['db']['_native'][_0x2d0233(0x1c8)]();}catch{return;}await new Promise(_0x139fef=>_0x5040f5(_0x56a098,_0x139fef));}}return writebatch={'install':_0x2495b6,'WriteBatch':_0x1d940f,'whenSettled':_0x5040f5},writebatch;}var pump,hasRequiredPump;function requirePump(){const _0x12a7e9=_0x2d5353;if(hasRequiredPump)return pump;hasRequiredPump=0x1;const _0xbc68d3=Number(process.env.OKDB_NATIVE_IDLE_MS)||0xfa;class _0x4f283a{constructor(_0x26311f){const _0x5ac4bc=_0x36a2;this[_0x5ac4bc(0x72f)]=_0x26311f,this[_0x5ac4bc(0x562)]=null,this['immediate']=null,this[_0x5ac4bc(0x12a)]=![],this[_0x5ac4bc(0x6da)]=![],this['pumping']=![],this[_0x5ac4bc(0x2bb)]=![],this[_0x5ac4bc(0x4e1)]=0x0,this[_0x5ac4bc(0x266)]=[],this[_0x5ac4bc(0x78a)]=[];}[_0x12a7e9(0x7f9)](_0x1944a5){return new Promise(_0x5cba1e=>{const _0x4c242e=_0x36a2,_0x75c7ba=setTimeout(_0x3cd5e2,_0x1944a5);function _0x3cd5e2(){clearTimeout(_0x75c7ba),_0x5cba1e();}this['turnWaiters'][_0x4c242e(0x46d)](_0x3cd5e2);});}[_0x12a7e9(0x4aa)](){const _0x48b5db=_0x12a7e9;if(this[_0x48b5db(0x78a)][_0x48b5db(0x192)]===0x0)return;const _0x4a5b95=this['turnWaiters'];this[_0x48b5db(0x78a)]=[];for(const _0x500e36 of _0x4a5b95)_0x500e36();}['start'](){const _0xdc2fc=_0x12a7e9;this[_0xdc2fc(0x6da)]=![],this['wake']();}[_0x12a7e9(0x32a)](){const _0x5e8a27=_0x12a7e9;this[_0x5e8a27(0x6da)]=!![];if(this[_0x5e8a27(0x562)])clearTimeout(this[_0x5e8a27(0x562)]);if(this[_0x5e8a27(0x5ff)])clearImmediate(this['immediate']);this[_0x5e8a27(0x562)]=this[_0x5e8a27(0x5ff)]=null,this[_0x5e8a27(0x4aa)]();}[_0x12a7e9(0x42a)](){const _0x2b3298=_0x12a7e9;if(this[_0x2b3298(0x6da)]||this['immediate'])return;this['timer']&&(clearTimeout(this[_0x2b3298(0x562)]),this['timer']=null),this['immediate']=setImmediate(()=>{const _0x2b95e3=_0x2b3298;this[_0x2b95e3(0x5ff)]=null,this[_0x2b95e3(0x6eb)]();});}[_0x12a7e9(0x6eb)](){const _0x231c84=_0x12a7e9;if(this[_0x231c84(0x6da)]||this['pumping']){this[_0x231c84(0x2bb)]=!![];return;}this[_0x231c84(0x3b2)]=!![];let _0x40b7bf;try{this[_0x231c84(0x4e1)]++,_0x40b7bf=this[_0x231c84(0x72f)][_0x231c84(0x2c7)]();if(this['afterTurn'])this[_0x231c84(0x783)]();}catch(_0x435ae1){_0x40b7bf=_0xbc68d3,process[_0x231c84(0x864)](()=>{throw _0x435ae1;});}finally{this['pumping']=![],this[_0x231c84(0x4aa)]();}if(this[_0x231c84(0x6da)]||_0x40b7bf===-0x2)return;if(this[_0x231c84(0x2bb)])return this['dirty']=![],this[_0x231c84(0x42a)]();const _0x2ad37b=_0x40b7bf<0x0?_0xbc68d3:Math['max'](0x0,Math[_0x231c84(0x7bc)](_0x40b7bf,_0xbc68d3));if(_0x2ad37b<=0x0)return this[_0x231c84(0x42a)]();this[_0x231c84(0x562)]=setTimeout(()=>{this['timer']=null,this['turn']();},Math['ceil'](_0x2ad37b));if(this[_0x231c84(0x562)][_0x231c84(0x46f)])this[_0x231c84(0x562)][_0x231c84(0x46f)]();}}return pump={'Pumper':_0x4f283a},pump;}var dist$1={},hasRequiredDist$1;function requireDist$1(){const _0x53275e=_0x2d5353;if(hasRequiredDist$1)return dist$1;hasRequiredDist$1=0x1;const _0xa8ee49=Symbol[_0x53275e(0x2c3)](_0x53275e(0x48f)),_0x5cc775={'value':null,'done':!![]},_0x508653={'value':null,'done':!![]};!Symbol['asyncIterator']&&(Symbol['asyncIterator']=Symbol['for'](_0x53275e(0x385)));const _0x1dd011={};class _0xe91c8f{constructor(_0x41e3e2){const _0xdd7249=_0x53275e;_0x41e3e2&&(this[_0xdd7249(0x165)]=_0x41e3e2[Symbol[_0xdd7249(0x1f2)]][_0xdd7249(0x7b2)](_0x41e3e2));}['map'](_0x34fde6){const _0x3d93df=_0x53275e;let _0x1c6965=this,_0x18c181=new _0xe91c8f();return _0x18c181[_0x3d93df(0x165)]=(_0x4f0be1=_0x1dd011)=>{const _0x5546b5=_0x3d93df,{async:_0x407323}=_0x4f0be1;let _0x3ba1c6=_0x1c6965[_0x407323?Symbol[_0x5546b5(0x87b)]:Symbol['iterator']](_0x4f0be1);if(!_0x407323)_0x1c6965[_0x5546b5(0x611)]=!![];let _0x494e99=-0x1;return{'next'(_0x5c827b){const _0x576b5a=_0x5546b5;let _0x36ecaa;do{let _0x151bec;try{if(_0x5c827b)_0x151bec=_0x5c827b,_0x5c827b=null;else{_0x494e99++,_0x151bec=_0x3ba1c6['next']();if(_0x151bec[_0x576b5a(0x600)])return!_0x407323&&this[_0x576b5a(0x3f7)](new Error(_0x576b5a(0x5dc))),_0x151bec[_0x576b5a(0x600)](_0x4dfd02=>this[_0x576b5a(0x730)](_0x4dfd02),_0x834e5c=>{const _0xa36c12=_0x576b5a;return this[_0xa36c12(0x3f7)](_0x834e5c);});}if(_0x151bec['done']===!![]){this[_0x576b5a(0x5f1)]=!![];if(_0x18c181[_0x576b5a(0x65b)])_0x18c181[_0x576b5a(0x65b)]();return _0x151bec;}try{_0x36ecaa=_0x34fde6[_0x576b5a(0x245)](_0x1c6965,_0x151bec[_0x576b5a(0x821)],_0x494e99);if(_0x36ecaa&&_0x36ecaa[_0x576b5a(0x600)]&&_0x407323)return _0x36ecaa[_0x576b5a(0x600)](_0x3d5742=>_0x3d5742===_0xa8ee49?this[_0x576b5a(0x730)]():{'value':_0x3d5742},_0x27fe7b=>{const _0x5df579=_0x576b5a;if(_0x4f0be1[_0x5df579(0x4af)])_0x27fe7b[_0x5df579(0x3a7)]=!![];return this['throw'](_0x27fe7b);});}catch(_0x55907e){if(_0x4f0be1['continueOnRecoverableError'])_0x55907e[_0x576b5a(0x3a7)]=!![];throw _0x55907e;}}catch(_0x452d67){if(_0x18c181[_0x576b5a(0x1a0)])try{_0x36ecaa=_0x18c181[_0x576b5a(0x1a0)](_0x452d67,_0x494e99);}catch(_0x20e682){return this[_0x576b5a(0x3f7)](_0x20e682);}else return this[_0x576b5a(0x3f7)](_0x452d67);}}while(_0x36ecaa===_0xa8ee49);if(_0x36ecaa===_0x5cc775)return this[_0x576b5a(0x700)]();return{'value':_0x36ecaa};},'return'(_0x50e024){const _0x4ac876=_0x5546b5;if(!this[_0x4ac876(0x5f1)]){_0x508653[_0x4ac876(0x821)]=_0x50e024,this[_0x4ac876(0x5f1)]=!![];if(_0x18c181[_0x4ac876(0x65b)])_0x18c181['onDone']();_0x3ba1c6[_0x4ac876(0x700)]?.();}return _0x508653;},'throw'(_0x3c5d38){const _0x816948=_0x5546b5;if(_0x3c5d38[_0x816948(0x3a7)]){if(_0x18c181['returnRecoverableErrors'])try{return{'value':_0x18c181['returnRecoverableErrors'](_0x3c5d38)};}catch(_0x1ef702){this[_0x816948(0x700)]();throw _0x1ef702;}if(_0x4f0be1['continueOnRecoverableError'])throw _0x3c5d38;}this[_0x816948(0x700)]();throw _0x3c5d38;}};},_0x18c181;}[Symbol['asyncIterator']](_0x47bc1a){if(_0x47bc1a)_0x47bc1a={..._0x47bc1a,'async':!![]};else _0x47bc1a={'async':!![]};return this['iterator']=this['iterate'](_0x47bc1a);}[Symbol[_0x53275e(0x1f2)]](_0x33a557){const _0x6f27c=_0x53275e;return this[_0x6f27c(0x1f2)]=this['iterate'](_0x33a557);}[_0x53275e(0x440)](_0x5503ee){const _0xc1d47a=_0x53275e;let _0x19cc75=this[_0xc1d47a(0x4e8)](_0xe4f4d8=>{const _0x40e730=_0xc1d47a;let _0x578e33=_0x5503ee(_0xe4f4d8);if(_0x578e33?.[_0x40e730(0x600)])return _0x578e33[_0x40e730(0x600)](_0x26c986=>_0x26c986?_0xe4f4d8:_0xa8ee49);else return _0x578e33?_0xe4f4d8:_0xa8ee49;}),_0xae3eba=_0x19cc75['iterate'];return _0x19cc75[_0xc1d47a(0x165)]=(_0x4ea541=_0x1dd011)=>{const _0xe87371=_0xc1d47a;if(_0x4ea541[_0xe87371(0x4af)])_0x4ea541={..._0x4ea541,'continueOnRecoverableError':![]};return _0xae3eba(_0x4ea541);},_0x19cc75;}['forEach'](_0xed844f){const _0x4460a0=_0x53275e;let _0x21fee2=this[_0x4460a0(0x1f2)]=this[_0x4460a0(0x165)](),_0x208035;while((_0x208035=_0x21fee2[_0x4460a0(0x730)]())['done']!==!![]){_0xed844f(_0x208035[_0x4460a0(0x821)]);}}[_0x53275e(0x557)](_0x10b4be){const _0x8cc783=_0x53275e;let _0x4dfa7a=new _0xe91c8f();return _0x4dfa7a[_0x8cc783(0x165)]=(_0x5f169f=_0x1dd011)=>{const _0x1f7935=_0x8cc783;let _0x388858=this[_0x1f7935(0x1f2)]=this[_0x1f7935(0x165)](_0x5f169f),_0x2c06de=!![];function _0x368f40(_0x373cd4){const _0x15cf53=_0x1f7935;if(_0x2c06de)try{_0x2c06de=![],_0x388858=_0x10b4be[_0x5f169f[_0x15cf53(0x537)]?Symbol[_0x15cf53(0x87b)]:Symbol[_0x15cf53(0x1f2)]](),_0x373cd4=_0x388858[_0x15cf53(0x730)]();if(_0x4dfa7a['onDone']){if(_0x373cd4[_0x15cf53(0x600)]){if(!_0x5f169f[_0x15cf53(0x537)])throw new Error('Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results');_0x373cd4[_0x15cf53(0x600)](_0x52e6eb=>{if(_0x52e6eb['done']())_0x4dfa7a['onDone']();},_0x3f0452=>{this['return']();throw _0x3f0452;});}else{if(_0x373cd4[_0x15cf53(0x5f1)])_0x4dfa7a[_0x15cf53(0x65b)]();}}}catch(_0x29c083){this['throw'](_0x29c083);}else{if(_0x4dfa7a[_0x15cf53(0x65b)])_0x4dfa7a[_0x15cf53(0x65b)]();}return _0x373cd4;}return{'next'(){const _0x17f1ed=_0x1f7935;try{let _0x9abaf1=_0x388858[_0x17f1ed(0x730)]();if(_0x9abaf1[_0x17f1ed(0x600)]){if(!_0x5f169f[_0x17f1ed(0x537)])throw new Error(_0x17f1ed(0x5dc));return _0x9abaf1[_0x17f1ed(0x600)](_0x560c21=>{const _0x3c93f8=_0x17f1ed;if(_0x560c21[_0x3c93f8(0x5f1)])return _0x368f40(_0x560c21);return _0x560c21;});}if(_0x9abaf1[_0x17f1ed(0x5f1)])return _0x368f40(_0x9abaf1);return _0x9abaf1;}catch(_0x472c17){this[_0x17f1ed(0x3f7)](_0x472c17);}},'return'(_0x5a2cf7){const _0x44a9ee=_0x1f7935;if(!this['done']){_0x508653['value']=_0x5a2cf7,this['done']=!![];if(_0x4dfa7a[_0x44a9ee(0x65b)])_0x4dfa7a[_0x44a9ee(0x65b)]();_0x388858[_0x44a9ee(0x700)]();}return _0x508653;},'throw'(_0x3c9874){const _0x588d21=_0x1f7935;if(_0x5f169f[_0x588d21(0x4af)])throw _0x3c9874;this[_0x588d21(0x700)]();throw _0x3c9874;}};},_0x4dfa7a;}[_0x53275e(0x661)](_0x16cd21){const _0x17cb32=_0x53275e;let _0x46c671=new _0xe91c8f();return _0x46c671[_0x17cb32(0x165)]=(_0x256a08=_0x1dd011)=>{const _0x178ff5=_0x17cb32;let _0xe0b7fc=this['iterator']=this[_0x178ff5(0x165)](_0x256a08),_0x642934;return{'next'(_0x52f716){const _0x1d3734=_0x178ff5;try{do{if(_0x642934){let _0x5b31a7;if(_0x52f716)_0x5b31a7=_0x52f716,_0x52f716=undefined;else _0x5b31a7=_0x642934['next']();if(_0x5b31a7[_0x1d3734(0x600)]){if(!_0x256a08[_0x1d3734(0x537)])throw new Error(_0x1d3734(0x5dc));return _0x5b31a7[_0x1d3734(0x600)](_0x7099cb=>this[_0x1d3734(0x730)](_0x7099cb));}if(!_0x5b31a7['done'])return _0x5b31a7;}let _0x2670e9;if(_0x52f716!=undefined)_0x2670e9=_0x52f716,_0x52f716=undefined;else _0x2670e9=_0xe0b7fc[_0x1d3734(0x730)]();if(_0x2670e9[_0x1d3734(0x600)]){if(!_0x256a08[_0x1d3734(0x537)])throw new Error(_0x1d3734(0x5dc));return _0x642934=undefined,_0x2670e9[_0x1d3734(0x600)](_0xa2e060=>this[_0x1d3734(0x730)](_0xa2e060));}if(_0x2670e9['done']){if(_0x46c671[_0x1d3734(0x65b)])_0x46c671['onDone']();return _0x2670e9;}try{let _0x540931=_0x16cd21(_0x2670e9[_0x1d3734(0x821)]);if(_0x540931?.[_0x1d3734(0x600)]){if(!_0x256a08[_0x1d3734(0x537)])throw new Error(_0x1d3734(0x5dc));return _0x540931[_0x1d3734(0x600)](_0x29c49e=>{const _0x464b7f=_0x1d3734;return Array[_0x464b7f(0x7e3)](_0x29c49e)||_0x29c49e instanceof _0xe91c8f?(_0x642934=_0x29c49e[Symbol[_0x464b7f(0x1f2)]](),this['next']()):(_0x642934=null,{'value':_0x29c49e});},_0x469a9b=>{const _0x1f753e=_0x1d3734;if(_0x256a08[_0x1f753e(0x4af)])_0x469a9b[_0x1f753e(0x3a7)]=!![];this[_0x1f753e(0x3f7)](_0x469a9b);});}if(Array[_0x1d3734(0x7e3)](_0x540931)||_0x540931 instanceof _0xe91c8f)_0x642934=_0x540931[Symbol['iterator']]();else return _0x642934=null,{'value':_0x540931};}catch(_0x15d13f){if(_0x256a08[_0x1d3734(0x4af)])_0x15d13f[_0x1d3734(0x3a7)]=!![];throw _0x15d13f;}}while(!![]);}catch(_0x176573){this[_0x1d3734(0x3f7)](_0x176573);}},'return'(){const _0x444ff0=_0x178ff5;if(_0x46c671[_0x444ff0(0x65b)])_0x46c671[_0x444ff0(0x65b)]();if(_0x642934)_0x642934['return']();return _0xe0b7fc[_0x444ff0(0x700)]();},'throw'(_0xc1d19a){const _0x35af30=_0x178ff5;if(_0x256a08[_0x35af30(0x4af)])throw _0xc1d19a;if(_0x46c671[_0x35af30(0x65b)])_0x46c671[_0x35af30(0x65b)]();if(_0x642934)_0x642934[_0x35af30(0x700)]();this['return']();throw _0xc1d19a;}};},_0x46c671;}['slice'](_0x299eb8,_0x5b5cf5){const _0x10476c=_0x53275e;let _0x378f0d=this[_0x10476c(0x4e8)]((_0x98fca1,_0x1596ca)=>{const _0x561f92=_0x10476c;if(_0x1596ca<_0x299eb8)return _0xa8ee49;if(_0x1596ca>=_0x5b5cf5)return _0x5cc775[_0x561f92(0x821)]=_0x98fca1,_0x5cc775;return _0x98fca1;});return _0x378f0d['handleError']=(_0x160525,_0x508e5d)=>{if(_0x508e5d<_0x299eb8)return _0xa8ee49;if(_0x508e5d>=_0x5b5cf5)return _0x5cc775;throw _0x160525;},_0x378f0d;}[_0x53275e(0x65d)](_0x2dabb9){const _0x361b16=_0x53275e;if(typeof _0x2dabb9!==_0x361b16(0x3b3))throw new TypeError(_0x361b16(0x43c));let _0x136be4=this[_0x361b16(0x4e8)](_0x3c7a3f=>{return _0x3c7a3f;}),_0x2468ca=_0x136be4[_0x361b16(0x165)];return _0x136be4['iterate']=(_0x5f283e=_0x1dd011)=>{return _0x2468ca({..._0x5f283e,'continueOnRecoverableError':!![]});},_0x136be4[_0x361b16(0x74d)]=_0x2dabb9,_0x136be4;}[_0x53275e(0x730)](){const _0x24d071=_0x53275e;if(!this[_0x24d071(0x1f2)])this[_0x24d071(0x1f2)]=this[_0x24d071(0x165)]();return this[_0x24d071(0x1f2)][_0x24d071(0x730)]();}['toJSON'](){const _0x5704f1=_0x53275e;if(this[_0x5704f1(0x6ca)]&&this[_0x5704f1(0x6ca)][_0x5704f1(0x524)])return this[_0x5704f1(0x6ca)];const _0xe525b=new Error(_0x5704f1(0x2e9));_0xe525b[_0x5704f1(0x7ff)]=this[_0x5704f1(0x6ca)];throw _0xe525b;}get[_0x53275e(0x6ca)](){const _0x39da13=_0x53275e;if(this[_0x39da13(0x136)])return this[_0x39da13(0x136)];let _0x33e9d2=new Promise((_0x4c1a6d,_0x2f9f3c)=>{const _0x483bba=_0x39da13;let _0x5b4305=this[_0x483bba(0x165)](!![]),_0x17d953=[],_0x883ff5=this;Object[_0x483bba(0x2ad)](_0x17d953,_0x483bba(0x282),{'value':_0x883ff5});function _0x4bc496(_0x2297fa){const _0x368d6f=_0x483bba;while(_0x2297fa[_0x368d6f(0x5f1)]!==!![]){if(_0x2297fa['then'])return _0x2297fa[_0x368d6f(0x600)](_0x4bc496);else _0x17d953['push'](_0x2297fa[_0x368d6f(0x821)]);_0x2297fa=_0x5b4305[_0x368d6f(0x730)]();}_0x4c1a6d(_0x883ff5[_0x368d6f(0x136)]=_0x17d953);}_0x4bc496(_0x5b4305['next']());});return _0x33e9d2[_0x39da13(0x282)]=this,this[_0x39da13(0x136)]||(this[_0x39da13(0x136)]=_0x33e9d2);}['resolveData'](){const _0x5105ab=_0x53275e;return this[_0x5105ab(0x6ca)];}['at'](_0xe75d70){for(let _0x38a729 of this){if(_0xe75d70--===0x0)return _0x38a729;}}}return _0xe91c8f[_0x53275e(0x771)]['DONE']=_0x5cc775,dist$1[_0x53275e(0x27c)]=_0xe91c8f,dist$1[_0x53275e(0x337)]=_0xa8ee49,dist$1;}var iterable,hasRequiredIterable;function requireIterable(){const _0x124c20=_0x2d5353;if(hasRequiredIterable)return iterable;hasRequiredIterable=0x1;const {ExtendedIterable:_0x11000a}=requireDist$1(),_0x257d29=Number(process.env.OKDB_NATIVE_RANGE_CHUNK)||0x3e8,_0x11dfc7=Math[_0x124c20(0x7bc)](_0x257d29,Number(process.env.OKDB_NATIVE_ROW_CHUNK)||0x100),_0x21f43e=new Set([_0x124c20(0x35a),'byIndex',_0x124c20(0x450),_0x124c20(0x5ed)]),_0x3efd1c=Math['min'](_0x11dfc7,Number(process.env.OKDB_NATIVE_RANGE_FIRST)||0x1),_0x2f3abc=0x4,_0x235c7d=(_0x471083,_0x1b0f72=_0x257d29)=>Math['min'](_0x1b0f72,_0x471083*_0x2f3abc),_0x18c513={'value':undefined,'done':!![]};function _0x46ba74(_0x3fb26c){const _0xc3880d=_0x124c20,_0x97b9e7=new _0x11000a();return _0x97b9e7[_0xc3880d(0x165)]=()=>{let _0x528eff=0x0;return{'next'(){const _0x4cf150=_0x36a2;return _0x528eff<_0x3fb26c[_0x4cf150(0x192)]?{'value':_0x3fb26c[_0x528eff++],'done':![]}:{'value':undefined,'done':!![]};},'return'(){const _0x371010=_0x36a2;return _0x528eff=_0x3fb26c[_0x371010(0x192)],{'value':undefined,'done':!![]};},'throw'(){return _0x528eff=_0x3fb26c['length'],{'value':undefined,'done':!![]};}};},_0x97b9e7;}const _0x3e6acf=_0x1fb8cf=>typeof _0x1fb8cf===_0x124c20(0x859)&&!Number['isNaN'](_0x1fb8cf)?Math[_0x124c20(0x81c)](0x0,Math[_0x124c20(0x69c)](_0x1fb8cf)):Infinity,_0x1b44c7=_0x558dbc=>typeof _0x558dbc===_0x124c20(0x859)?Math[_0x124c20(0x81c)](0x0,Math[_0x124c20(0x232)](_0x558dbc))||0x0:0x0;function _0x24b6ce(_0x8a30e5,_0x2bf2d2,_0x216415,_0x307094={}){const _0x176a04=_0x124c20,_0x5141de=new _0x11000a(),_0x3c03e8=(_0x307094[_0x176a04(0x2d7)]||_0x3e6acf)(_0x2bf2d2[_0x176a04(0x15c)]),_0x528e72=_0x307094[_0x176a04(0x503)]?_0x11dfc7:_0x257d29,_0x3479df=_0x307094['resumeOpts']||((_0x24573d,_0x5ac713)=>{const _0x2c2872=_0x176a04;_0x24573d[_0x2c2872(0x4df)]=_0x5ac713,_0x24573d[_0x2c2872(0x332)]=!![],delete _0x24573d[_0x2c2872(0x87e)];});let _0x40c93c=null;if(_0x307094[_0x176a04(0x61e)]){const _0x39112c={..._0x2bf2d2,'limit':Math[_0x176a04(0x7bc)](_0x3efd1c,_0x3c03e8)};_0x40c93c={'rows':_0x8a30e5(_0x39112c),'limit':_0x39112c[_0x176a04(0x15c)]};const _0x4be867=_0x40c93c;queueMicrotask(()=>{_0x4be867['dropped']=!![];});}return _0x5141de[_0x176a04(0x165)]=()=>{const _0x1c5f4b=_0x176a04;let _0x5926b1=[],_0x709955=0x0,_0x2fc826=0x0,_0x2b226d,_0x51fe49=![],_0x2745cd=![],_0x28f476=_0x3efd1c;if(_0x40c93c&&!_0x40c93c['dropped']&&!_0x40c93c[_0x1c5f4b(0x679)]){_0x40c93c[_0x1c5f4b(0x679)]=!![],_0x5926b1=_0x40c93c['rows'],_0x51fe49=!![],_0x28f476=_0x235c7d(_0x28f476,_0x528e72);if(_0x5926b1[_0x1c5f4b(0x192)]<_0x40c93c['limit'])_0x2745cd=!![];if(_0x5926b1['length'])_0x2b226d=_0x216415(_0x5926b1[_0x5926b1[_0x1c5f4b(0x192)]-0x1]);}const _0x3b4071=()=>{const _0xbc9de6=_0x1c5f4b;if(_0x2745cd)return;const _0x4234bf=_0x3c03e8-_0x2fc826;if(_0x4234bf<=0x0){_0x2745cd=!![],_0x5926b1=[];return;}const _0x5633a6={..._0x2bf2d2,'limit':Math['min'](_0x28f476,_0x4234bf)};if(_0x51fe49)_0x3479df(_0x5633a6,_0x2b226d);_0x51fe49=!![],_0x28f476=_0x235c7d(_0x28f476,_0x528e72),_0x5926b1=_0x8a30e5(_0x5633a6),_0x709955=0x0;if(_0x5926b1[_0xbc9de6(0x192)]<_0x5633a6['limit'])_0x2745cd=!![];if(_0x5926b1[_0xbc9de6(0x192)])_0x2b226d=_0x216415(_0x5926b1[_0x5926b1[_0xbc9de6(0x192)]-0x1]);};return{'next'(){const _0x593129=_0x1c5f4b;if(_0x709955>=_0x5926b1[_0x593129(0x192)])_0x3b4071();if(_0x709955>=_0x5926b1[_0x593129(0x192)])return{'value':undefined,'done':!![]};return _0x2fc826++,{'value':_0x5926b1[_0x709955++],'done':![]};},'return'(){return _0x2745cd=!![],_0x5926b1=[],{'value':undefined,'done':!![]};},'throw'(){return _0x2745cd=!![],_0x5926b1=[],{'value':undefined,'done':!![]};}};},_0x5141de;}function _0x522ede(_0x115415,_0x57f321,_0x693477,_0x1d544,_0x3c6c23={}){const _0x4bdd2b=_0x124c20,_0x2b7889=(_0x3c6c23[_0x4bdd2b(0x2d7)]||_0x3e6acf)(_0x1d544&&_0x1d544['limit']),_0x4e98a5=_0x21f43e[_0x4bdd2b(0x69d)](_0x57f321)?_0x11dfc7:_0x257d29,_0x5b107a=(_0x3c6c23[_0x4bdd2b(0x5da)]||_0x1b44c7)(_0x1d544&&_0x1d544[_0x4bdd2b(0x87e)]),_0x5e0874=(_0x2196b8,_0x5f32b8,_0x31d4e1)=>{const _0x557134=_0x4bdd2b,_0x3536bc=_0x2b7889-_0x5f32b8,_0xcf7822=Math[_0x557134(0x7bc)](_0x31d4e1,_0x3536bc),_0x7ce026={'limit':_0xcf7822,'offset':_0x5b107a+_0x5f32b8},_0x22d5e3=_0x115415('pinned',[_0x2196b8,_0x57f321,_0xcf7822===_0x3536bc?Infinity:_0xcf7822,..._0x693477(_0x7ce026)]);if(_0x22d5e3[0x0]===-0x1){const _0x1f80e8={'offset':_0x5b107a+_0x5f32b8};if(_0x3536bc!==Infinity)_0x1f80e8[_0x557134(0x15c)]=_0x3536bc;return{'pin':0x0,'rows':_0x115415(_0x57f321,_0x693477(_0x1f80e8)),'raw':Infinity,'eager':!![]};}return{'pin':_0x22d5e3[0x0],'rows':_0x22d5e3[0x1],'raw':_0x22d5e3[0x2]};},_0x30f0f7=_0x366e8a=>{const _0x395d71=_0x4bdd2b;if(_0x366e8a)_0x115415(_0x395d71(0x2fc),[_0x366e8a]);};function _0x1196d0(_0x34e1b6,_0x61b2e9,_0x2c92a8){const _0xc7a749=_0x4bdd2b;let _0x95dfd=0x0,_0x128663=[],_0x57dbe5=0x0,_0x19bb99=_0x34e1b6,_0xe08a95=_0x3efd1c,_0x38f196=_0x2b7889-_0x34e1b6<=0x0;if(_0x2c92a8)({buf:_0x128663,pos:_0x57dbe5,consumed:_0x19bb99,size:_0xe08a95,exhausted:_0x38f196}=_0x2c92a8);const _0x221b72=_0x512f95=>{const _0x2bffbf=_0x36a2;_0x95dfd=_0x512f95[_0x2bffbf(0x202)],_0x128663=_0x512f95['rows'],_0x57dbe5=0x0,_0x19bb99+=_0x512f95[_0x2bffbf(0x6a8)],_0xe08a95=_0x235c7d(_0xe08a95,_0x4e98a5);if(!_0x95dfd)_0x38f196=!![];};if(_0x61b2e9)_0x221b72(_0x61b2e9);const _0x5917a0=()=>{const _0x544662=_0x95dfd;_0x95dfd=0x0,_0x30f0f7(_0x544662);},_0x2d5e91={'next'(){const _0x48c8e9=_0x36a2;while(_0x57dbe5>=_0x128663[_0x48c8e9(0x192)]){if(_0x38f196||_0x2b7889-_0x19bb99<=0x0)return _0x38f196=!![],_0x5917a0(),_0x18c513;try{_0x221b72(_0x5e0874(_0x95dfd,_0x19bb99,_0xe08a95));}catch(_0x5f5d91){_0x95dfd=0x0,_0x38f196=!![],_0x128663=[];throw _0x5f5d91;}}return{'value':_0x128663[_0x57dbe5++],'done':![]};},'return'(){return _0x5917a0(),_0x18c513;},'throw'(){return _0x5917a0(),_0x18c513;},'resumed'(){return _0x1196d0(0x0,null,{'buf':_0x128663,'pos':_0x57dbe5,'consumed':_0x19bb99,'size':_0xe08a95,'exhausted':_0x38f196});},[Symbol[_0xc7a749(0x1f2)]](){return this;}};return _0x2d5e91;}function _0xb5fdfc(){if(_0x2b7889<=0x0)return null;const _0x39d6dc=_0x5e0874(0x0,0x0,_0x3efd1c);return queueMicrotask(()=>{const _0x49df80=_0x36a2;!_0x39d6dc['taken']&&(_0x39d6dc[_0x49df80(0x87a)]=!![],_0x30f0f7(_0x39d6dc[_0x49df80(0x202)]));}),_0x39d6dc;}return{'source':_0x1196d0,'prefetch':_0xb5fdfc};}function _0x43682c(_0x82fe55){const _0x9cd394=_0x124c20;if(!_0x82fe55||_0x82fe55['taken']||_0x82fe55[_0x9cd394(0x87a)])return null;return _0x82fe55['taken']=!![],_0x82fe55;}return iterable={'fromArray':_0x46ba74,'chunkedRange':_0x24b6ce,'pinnedChunks':_0x522ede,'claimPrefetch':_0x43682c,'lmdbLimit':_0x3e6acf,'lmdbOffset':_0x1b44c7,'CHUNK':_0x257d29,'ROW_CHUNK':_0x11dfc7,'FIRST':_0x3efd1c},iterable;}var rawdb,hasRequiredRawdb;function requireRawdb(){const _0x24cfd1=_0x2d5353;if(hasRequiredRawdb)return rawdb;hasRequiredRawdb=0x1;const {fromArray:_0x44ccb0}=requireIterable();class _0x198f2a{constructor(_0x5c0066,_0x240930='',_0x420feb={},_0x574d1b=null){const _0x477570=_0x36a2;this['_env']=_0x5c0066,this[_0x477570(0x425)]=_0x240930,this[_0x477570(0x5d1)]=!!(_0x420feb&&_0x420feb['dupSort']),this['useVersions']=!!(_0x420feb&&_0x420feb['useVersions']),this[_0x477570(0x6f0)]=_0x574d1b||this,this[_0x477570(0x41a)]=null;}get[_0x24cfd1(0x363)](){const _0x43398f=_0x24cfd1;return this['dupSort']?!![]:this[_0x43398f(0x4c8)]?'v':![];}['_n'](_0x54e298,_0x2d7452){const _0x46ade2=_0x24cfd1;return this[_0x46ade2(0x76b)][_0x46ade2(0x4f7)][_0x46ade2(0x24a)](_0x46ade2(0x6a8),this[_0x46ade2(0x76b)][_0x46ade2(0x425)],_0x54e298,[this[_0x46ade2(0x425)],this[_0x46ade2(0x363)],..._0x2d7452],!![]);}[_0x24cfd1(0x299)](_0x64ed82,_0x9331d1){const _0x3f92c8=_0x24cfd1;return this[_0x3f92c8(0x76b)][_0x3f92c8(0x4f7)][_0x3f92c8(0x24a)](_0x3f92c8(0x6a8),this[_0x3f92c8(0x76b)][_0x3f92c8(0x425)],_0x64ed82,[this[_0x3f92c8(0x425)],this[_0x3f92c8(0x363)],..._0x9331d1],![]);}['_write'](_0x6d8457){const _0x1d0c32=_0x24cfd1,_0x3c468a=this[_0x1d0c32(0x76b)][_0x1d0c32(0x540)];if(_0x3c468a)_0x3c468a[_0x1d0c32(0x46d)]({'sub':this['name'],'dup':this[_0x1d0c32(0x363)],..._0x6d8457});else this['_env'][_0x1d0c32(0x4f7)][_0x1d0c32(0x24a)](_0x1d0c32(0x6a8),this[_0x1d0c32(0x76b)]['name'],_0x1d0c32(0x5ba),[[{'sub':this[_0x1d0c32(0x425)],'dup':this['_dupArg'],..._0x6d8457}]],!![]);}[_0x24cfd1(0x6ce)](_0x38c5c3){const _0x1f781d=_0x24cfd1;return this[_0x1f781d(0x299)](_0x1f781d(0x6ce),[_0x38c5c3]);}[_0x24cfd1(0x638)](_0x5d701c){const _0x29eb8f=_0x24cfd1;if(this['useVersions'])return this[_0x29eb8f(0x299)](_0x29eb8f(0x638),[_0x5d701c]);const _0x16aae7=this[_0x29eb8f(0x6ce)](_0x5d701c);return _0x16aae7===undefined?undefined:{'value':_0x16aae7};}[_0x24cfd1(0x16c)](_0xb4d3fe){const _0x10ae00=_0x24cfd1;return this[_0x10ae00(0x299)](_0x10ae00(0x5e2),[_0xb4d3fe]);}[_0x24cfd1(0x52f)](_0x41e143){const _0x582e4a=_0x24cfd1;return this[_0x582e4a(0x6ce)](_0x41e143);}[_0x24cfd1(0x35a)](_0x1afeee={}){const _0x4e6131=_0x24cfd1,_0x118d2e=this[_0x4e6131(0x299)](_0x4e6131(0x35a),[_0x1afeee]),_0xabe855=_0x1afeee[_0x4e6131(0x514)]===![],_0x37d862=_0x1afeee['keys']===![];return _0x44ccb0(_0x118d2e[_0x4e6131(0x4e8)](([_0x551ac1,_0x1056c5,_0x5cb46c])=>{if(_0xabe855)return _0x551ac1;if(_0x37d862)return _0x1056c5;return _0x5cb46c===undefined?{'key':_0x551ac1,'value':_0x1056c5}:{'key':_0x551ac1,'value':_0x1056c5,'version':_0x5cb46c};}));}[_0x24cfd1(0x462)](_0xc060fc={}){const _0x579fd2=_0x24cfd1;return _0x44ccb0(this[_0x579fd2(0x299)](_0x579fd2(0x35a),[_0xc060fc])[_0x579fd2(0x4e8)](([_0x4b09e2])=>_0x4b09e2));}[_0x24cfd1(0x38b)](_0x191837,_0x149d3d={}){const _0x213724=_0x24cfd1,_0x5bba87=this[_0x213724(0x299)]('getRange',[{..._0x149d3d,'start':_0x191837,'end':_0x191837,'inclusiveEnd':!![]}]);return _0x44ccb0(_0x5bba87[_0x213724(0x4e8)](([,_0x1151fe])=>_0x1151fe));}['getCount'](_0x4fe729={}){const _0x1434dd=_0x24cfd1;return this[_0x1434dd(0x299)](_0x1434dd(0x21b),[_0x4fe729]);}[_0x24cfd1(0x20d)](){const _0x540ac0=_0x24cfd1;return{'entryCount':this[_0x540ac0(0x7d6)]()};}['put'](_0xc9e7dc,_0x185d55,_0x33e01f){const _0x54c6e6=_0x24cfd1;return this[_0x54c6e6(0x3a8)]({'op':_0x54c6e6(0x14f),'key':_0xc9e7dc,'value':_0x185d55,'version':_0x33e01f}),Promise[_0x54c6e6(0x794)](!![]);}[_0x24cfd1(0x759)](_0x2f4493,_0x3741f1,_0x8de6f5){const _0x2a49de=_0x24cfd1;return this[_0x2a49de(0x3a8)]({'op':_0x2a49de(0x14f),'key':_0x2f4493,'value':_0x3741f1,'version':_0x8de6f5}),!![];}[_0x24cfd1(0x78e)](_0x53f253,_0x6a98fd){const _0x58adb6=_0x24cfd1;return this['_write']({'op':_0x58adb6(0x78e),'key':_0x53f253,'value':_0x6a98fd}),Promise[_0x58adb6(0x794)](!![]);}['removeSync'](_0x45a0bb,_0x9db311){const _0x5bdde=_0x24cfd1;return this[_0x5bdde(0x3a8)]({'op':_0x5bdde(0x78e),'key':_0x45a0bb,'value':_0x9db311}),!![];}[_0x24cfd1(0x53b)](){this['_write']({'op':'clear'});}['clearAsync'](){const _0x459c48=_0x24cfd1;return this['_write']({'op':_0x459c48(0x530)}),Promise[_0x459c48(0x794)]();}['drop'](){this['clearSync']();}[_0x24cfd1(0x5f9)](_0x51f5e8,_0x3b507a={}){const _0xc9b73d=_0x24cfd1,_0x4c06ad=typeof _0x51f5e8===_0xc9b73d(0x712)?_0x51f5e8:_0x3b507a,_0x136443=typeof _0x51f5e8==='object'?_0x51f5e8[_0xc9b73d(0x425)]:_0x51f5e8,_0x182883=new _0x198f2a(this[_0xc9b73d(0x76b)],_0x136443,_0x4c06ad);return _0x182883[_0xc9b73d(0x3a8)]({'op':_0xc9b73d(0x51b)}),_0x182883;}[_0x24cfd1(0x182)](){}[_0x24cfd1(0x6ff)](_0x2a0e63){return this['_tx'](_0x2a0e63);}async['transaction'](_0x1a34fe){const _0x1a91a0=_0x24cfd1;return this[_0x1a91a0(0x6a7)](_0x1a34fe);}[_0x24cfd1(0x11f)](_0x1800a3){const _0x59b401=_0x24cfd1;return this[_0x59b401(0x6a7)](_0x1800a3);}[_0x24cfd1(0x6a7)](_0x5dbe01){const _0x44174a=_0x24cfd1,_0xcb3a62=this[_0x44174a(0x76b)];if(_0xcb3a62[_0x44174a(0x540)])return _0x5dbe01();_0xcb3a62[_0x44174a(0x540)]=[];let _0x5892a8;try{_0x5892a8=_0x5dbe01();}catch(_0x49b786){_0xcb3a62[_0x44174a(0x540)]=null;throw _0x49b786;}const _0x16d902=_0xcb3a62['_rawTxnBuf'];_0xcb3a62[_0x44174a(0x540)]=null;if(_0x16d902['length'])_0xcb3a62[_0x44174a(0x4f7)][_0x44174a(0x24a)](_0x44174a(0x6a8),_0xcb3a62[_0x44174a(0x425)],_0x44174a(0x5ba),[_0x16d902],!![]);return _0x5892a8;}[_0x24cfd1(0x157)](){return{'done'(){}};}[_0x24cfd1(0x24e)](){}}return rawdb={'RawDb':_0x198f2a},rawdb;}var views,hasRequiredViews;function requireViews(){const _0x40f90a=_0x2d5353;if(hasRequiredViews)return views;hasRequiredViews=0x1;const {RawDb:_0x27cbe2}=requireRawdb();class _0x52a83b{constructor(_0x559321){const _0x5e42c6=_0x36a2;this[_0x5e42c6(0x784)]=_0x559321,this['_n']=(_0x3c3aaf,_0x114a58,_0x121332=!![])=>_0x559321[_0x5e42c6(0x4f7)]['_call'](_0x5e42c6(0x555),_0x559321[_0x5e42c6(0x425)],_0x3c3aaf,_0x114a58,_0x121332);}get[_0x40f90a(0x5c5)](){const _0x546d30=_0x40f90a,_0xcd9d98=this,_0x131508=this['env'],_0x3e8b44=_0x269f73=>_0x269f73?new _0x27cbe2(_0x131508,_0x269f73[_0x546d30(0x425)],{'dupSort':_0x269f73[_0x546d30(0x647)]}):undefined,_0x47732b=_0xd990b8=>{const _0x31c308=_0x546d30,_0x43f13c=_0xcd9d98['_n'](_0x31c308(0x798),[_0xd990b8],![]);if(!_0x43f13c)return undefined;const _0x525e49=_0x43f13c[_0x31c308(0x59e)],_0x4436e9=new Map(Object['entries'](_0x525e49[_0x31c308(0x3ec)])),_0x4e3ebf=new Map(Object[_0x31c308(0x45b)](_0x43f13c[_0x31c308(0x35c)])[_0x31c308(0x4e8)](([_0x53f5c1,_0x467a0f])=>[_0x53f5c1,_0x3e8b44(_0x467a0f)]));return{'name':_0xd990b8,'compiled':{'T':_0x525e49['T'],'reducers':_0x525e49[_0x31c308(0x18d)],'refs':_0x4436e9,'granId':_0x525e49[_0x31c308(0x72b)],'type':_0x525e49[_0x31c308(0x2d0)],'_nidFor':_0x134f21=>_0xcd9d98['_n'](_0x31c308(0x349),[_0xd990b8,_0x134f21],![])},'viewDb':_0x3e8b44(_0x43f13c['dbs'][_0x31c308(0x4cb)]),'metaDb':_0x3e8b44(_0x43f13c[_0x31c308(0x34e)][_0x31c308(0x1b3)]),'itemsDb':_0x3e8b44(_0x43f13c['dbs']['itemsDb']),'bucketsDb':_0x3e8b44(_0x43f13c['dbs']['bucketsDb']),'sortedDb':_0x3e8b44(_0x43f13c[_0x31c308(0x34e)][_0x31c308(0x15f)]),'groupsDb':_0x3e8b44(_0x43f13c[_0x31c308(0x34e)][_0x31c308(0x53d)]),'prevDb':_0x3e8b44(_0x43f13c['dbs'][_0x31c308(0x483)]),'refItemsDbs':_0x4e3ebf,'refTrackingDbs':new Map(Object[_0x31c308(0x45b)](_0x43f13c[_0x31c308(0x1af)]||{})[_0x31c308(0x4e8)](([_0x3bccee,_0x27a733])=>[_0x3bccee,_0x3e8b44(_0x27a733)])),'stopFn':_0x43f13c[_0x31c308(0x3ea)]?async()=>_0xcd9d98['_n']('stopView',[_0xd990b8]):null,'bootstrapWorker':null};};return{'get':_0x206e2d=>_0x47732b(_0x206e2d),'has':_0x5dabfb=>_0xcd9d98['_n'](_0x546d30(0x435),[],![])['includes'](_0x5dabfb),'keys':()=>_0xcd9d98['_n'](_0x546d30(0x435),[],![])[Symbol['iterator']](),get 'size'(){const _0x55bcbb=_0x546d30;return _0xcd9d98['_n'](_0x55bcbb(0x435),[],![])[_0x55bcbb(0x192)];},[Symbol['iterator']]:()=>_0xcd9d98['_n'](_0x546d30(0x435),[],![])['map'](_0x192d11=>[_0x192d11,_0x47732b(_0x192d11)])[Symbol[_0x546d30(0x1f2)]]()};}get[_0x40f90a(0x2df)](){const _0x360f0a=_0x40f90a,_0x5a936a=this;return{'has':_0x5e643b=>_0x5a936a['_n'](_0x360f0a(0x732),[],![])[_0x360f0a(0x6f8)](_0x5e643b),get 'size'(){const _0x470979=_0x360f0a;return _0x5a936a['_n'](_0x470979(0x732),[],![])[_0x470979(0x192)];},'keys':()=>_0x5a936a['_n']('customReducerNames',[],![])[Symbol[_0x360f0a(0x1f2)]]()};}async[_0x40f90a(0x3d4)](){const _0x50048a=_0x40f90a;return this['_n'](_0x50048a(0x3d4),[]);}async[_0x40f90a(0x1d3)](_0x21cb9e={}){const _0x46c615=_0x40f90a;return this['_n'](_0x46c615(0x1d3),[_0x21cb9e]);}async['create'](_0x327a6d,_0x46946f){const _0x4b8299=_0x40f90a;return await this[_0x4b8299(0x6bf)](_0x4b8299(0x193),[_0x327a6d,_0x46946f]),await this[_0x4b8299(0x559)](_0x327a6d),{'name':_0x327a6d};}async[_0x40f90a(0x6bf)](_0x345303,_0x3f367d){const _0x1b3c3f=_0x40f90a,_0xb6cad6=Date[_0x1b3c3f(0x76a)]()+0x7d0;for(;;){try{return this['_n'](_0x345303,_0x3f367d);}catch(_0x129166){if(_0x129166?.[_0x1b3c3f(0x316)]!==_0x1b3c3f(0x287)||Date[_0x1b3c3f(0x76a)]()>=_0xb6cad6)throw _0x129166;await new Promise(_0x25f926=>setTimeout(_0x25f926,0x32));}}}async[_0x40f90a(0x559)](_0x3c1c10){const _0xb9daeb=_0x40f90a,_0x3ccc69=this[_0xb9daeb(0x784)]['okdb'][_0xb9daeb(0x176)];while(this['_n'](_0xb9daeb(0x785),[_0x3c1c10],![]))await _0x3ccc69[_0xb9daeb(0x7f9)](0xfa);try{this['_n'](_0xb9daeb(0x25f),[_0x3c1c10],![]);}catch(_0x14e10f){if(_0x14e10f?.[_0xb9daeb(0x316)]!==_0xb9daeb(0x64d)||_0x14e10f[_0xb9daeb(0x433)]?.[_0xb9daeb(0x549)]!==_0xb9daeb(0x541))throw _0x14e10f;await this['_awaitPeerBuild'](_0x3c1c10);}}async['_awaitPeerBuild'](_0x1c5cc6){const _0x50a4a3=_0x40f90a,_0x8c935c=this[_0x50a4a3(0x784)][_0x50a4a3(0x4f7)]['_pumper'];let _0x34e183=0x0,_0x3f9daa='',_0x406edf=Date[_0x50a4a3(0x76a)]();for(;;){if(this['_n'](_0x50a4a3(0x785),[_0x1c5cc6],![]))return this[_0x50a4a3(0x559)](_0x1c5cc6);const _0x2d6526=this['getMeta'](_0x1c5cc6);if(!_0x2d6526)throw Object[_0x50a4a3(0x3aa)](new Error('view\x20\x22'+_0x1c5cc6+_0x50a4a3(0x682)),{'code':_0x50a4a3(0x1f7)});const _0x20bf26=_0x2d6526[_0x50a4a3(0x76c)],_0x2077a0=_0x4c680b=>_0x4c680b===_0x50a4a3(0x169)||_0x4c680b===_0x50a4a3(0x44c),_0x151353=Object[_0x50a4a3(0x514)](_0x2d6526[_0x50a4a3(0x4cf)]?.[_0x50a4a3(0x3ec)]??{})[_0x50a4a3(0x454)](_0x354bcc=>_0x2077a0(_0x354bcc?.[_0x50a4a3(0x76c)])),_0x1f3147=_0x2077a0(_0x20bf26)||_0x20bf26===_0x50a4a3(0x772)&&(_0x2d6526['bootstrapStartClock']!=null||_0x151353);if(!_0x1f3147){if(_0x20bf26==='ready'||_0x20bf26===_0x50a4a3(0x772))return;throw Object[_0x50a4a3(0x3aa)](new Error(_0x50a4a3(0x19c)+_0x1c5cc6+_0x50a4a3(0x3c0)+_0x20bf26+'\x22'+(_0x2d6526[_0x50a4a3(0x5b4)]?':\x20'+_0x2d6526['error']:'')),{'code':_0x50a4a3(0x606),'details':{'name':_0x1c5cc6,'state':_0x20bf26}});}const _0x46c4f0=JSON[_0x50a4a3(0x84b)](_0x2d6526);if(_0x46c4f0!==_0x3f9daa)_0x3f9daa=_0x46c4f0,_0x406edf=Date[_0x50a4a3(0x76a)]();else{if(!this[_0x50a4a3(0x784)][_0x50a4a3(0x4f7)]['role']?.[_0x50a4a3(0x23a)]&&Date['now']()-_0x406edf>0x927c0)throw Object[_0x50a4a3(0x3aa)](new Error(_0x50a4a3(0x19c)+_0x1c5cc6+_0x50a4a3(0x81b)),{'code':_0x50a4a3(0x277),'details':{'name':_0x1c5cc6}});}Date[_0x50a4a3(0x76a)]()>=_0x34e183&&this[_0x50a4a3(0x784)][_0x50a4a3(0x4f7)]['role']?.[_0x50a4a3(0x23a)]&&(_0x34e183=Date['now']()+0x3e8,await this[_0x50a4a3(0x1d3)]({'skipReadyRescan':!![]})[_0x50a4a3(0x512)](()=>{})),await _0x8c935c[_0x50a4a3(0x7f9)](0xfa);}}[_0x40f90a(0x6ce)](_0xdf37ef,_0x3905ca={}){const _0x1ec6a9=_0x40f90a,_0x2d24e8=this['_n']('get',[_0xdf37ef,{'preview':_0x3905ca?.[_0x1ec6a9(0x73d)]??{}}],![]);if(_0x2d24e8==null)return null;const _0x4064a7=this['_n']('itemsPlan',[_0xdf37ef],![]);if(!_0x4064a7)return _0x2d24e8;const _0x3b357a=_0x4e8110=>(_0x2baa0b={})=>this['_n'](_0x1ec6a9(0x420),[_0xdf37ef,_0x4e8110,_0x2baa0b],![]);if(_0x4064a7['view']){_0x2d24e8[_0x1ec6a9(0x420)]=_0x3b357a({'kind':_0x1ec6a9(0x36e)});for(const _0x1f1d9b of _0x4064a7[_0x1ec6a9(0x18d)]){if(!_0x1f1d9b[_0x1ec6a9(0x420)])continue;if(_0x1f1d9b[_0x1ec6a9(0x820)]){const _0x598d2b=_0x2d24e8[_0x1f1d9b['name']];if(_0x598d2b?.[_0x1ec6a9(0x73d)]&&Array[_0x1ec6a9(0x7e3)](_0x598d2b[_0x1ec6a9(0x73d)])){for(const _0x10dcea of _0x598d2b['preview'])_0x10dcea[_0x1ec6a9(0x420)]=_0x3b357a({'kind':_0x1ec6a9(0x47e),'reducer':_0x1f1d9b[_0x1ec6a9(0x425)],'key':_0x10dcea[_0x1ec6a9(0x5c0)]});}}else _0x2d24e8[_0x1f1d9b[_0x1ec6a9(0x425)]]&&(_0x2d24e8[_0x1f1d9b[_0x1ec6a9(0x425)]][_0x1ec6a9(0x420)]=_0x3b357a({'kind':'reducer','reducer':_0x1f1d9b[_0x1ec6a9(0x425)]}));}}for(const _0x24b193 of _0x4064a7[_0x1ec6a9(0x3ec)]){if(!_0x24b193[_0x1ec6a9(0x36e)])continue;const _0x4aa2ea=_0x2d24e8[_0x24b193['name']];if(!_0x4aa2ea||typeof _0x4aa2ea!==_0x1ec6a9(0x712))continue;_0x4aa2ea[_0x1ec6a9(0x420)]=_0x3b357a({'kind':_0x1ec6a9(0x36e),'ref':_0x24b193[_0x1ec6a9(0x425)]});for(const _0x3e9260 of _0x24b193[_0x1ec6a9(0x18d)]){if(!_0x3e9260[_0x1ec6a9(0x420)])continue;if(_0x3e9260[_0x1ec6a9(0x820)]){const _0x4ae215=_0x4aa2ea[_0x3e9260[_0x1ec6a9(0x425)]];if(_0x4ae215?.['preview']&&Array[_0x1ec6a9(0x7e3)](_0x4ae215[_0x1ec6a9(0x73d)])){for(const _0x4ef465 of _0x4ae215[_0x1ec6a9(0x73d)])_0x4ef465[_0x1ec6a9(0x420)]=_0x3b357a({'kind':'group','ref':_0x24b193['name'],'reducer':_0x3e9260[_0x1ec6a9(0x425)],'key':_0x4ef465[_0x1ec6a9(0x5c0)]});}}else _0x4aa2ea[_0x3e9260[_0x1ec6a9(0x425)]]&&(_0x4aa2ea[_0x3e9260[_0x1ec6a9(0x425)]][_0x1ec6a9(0x420)]=_0x3b357a({'kind':_0x1ec6a9(0x28f),'ref':_0x24b193['name'],'reducer':_0x3e9260[_0x1ec6a9(0x425)]}));}}return _0x2d24e8;}[_0x40f90a(0x504)](_0x24480a){const _0xb4fb8f=_0x40f90a;return this['_n'](_0xb4fb8f(0x504),[_0x24480a],![]);}[_0x40f90a(0x4bb)](_0x22f6e5,_0x558de6={}){return this['_n']('itemsGroups',[_0x22f6e5,_0x558de6],![]);}['range'](_0x1b718f,_0x3d0b68={}){const _0x435410=_0x40f90a;return this['_n'](_0x435410(0x85c),[_0x1b718f,_0x3d0b68],![]);}[_0x40f90a(0x87c)](_0xf09ab4,_0x1b0d38={}){const _0x2c8e70=_0x40f90a;return this['_n'](_0x2c8e70(0x87c),[_0xf09ab4,_0x1b0d38],![]);}async[_0x40f90a(0x6ec)](){const _0x366931=_0x40f90a;return this['_n'](_0x366931(0x6ec),[],![]);}async[_0x40f90a(0x6d8)](_0x5c1261){return this['_n']('getDefinition',[_0x5c1261],![])??null;}async[_0x40f90a(0x78e)](_0x1cde67,_0x50e6d5={}){const _0x1c41c1=_0x40f90a;return this['_n'](_0x1c41c1(0x78e),[_0x1cde67,_0x50e6d5]);}async[_0x40f90a(0x32a)](_0xede3a){return this['_n']('stop',[_0xede3a]);}async[_0x40f90a(0x4df)](_0x3b5c04){const _0x574a80=_0x40f90a;await this[_0x574a80(0x6bf)]('startBegin',[_0x3b5c04]),await this[_0x574a80(0x559)](_0x3b5c04);}async[_0x40f90a(0x247)](_0x3a13c7){const _0x405913=_0x40f90a;await this[_0x405913(0x6bf)](_0x405913(0x80e),[_0x3a13c7]),await this['_awaitBuild'](_0x3a13c7);}async['resetView'](_0x491f08){const _0x42f239=_0x40f90a;await this[_0x42f239(0x6bf)](_0x42f239(0x1e0),[_0x491f08]),await this['_awaitBuild'](_0x491f08);}[_0x40f90a(0x214)](_0x153bef,_0x55743b={}){const _0x577746=_0x40f90a;return this['_n'](_0x577746(0x214),[_0x153bef,{'apply':_0x55743b&&_0x55743b[_0x577746(0x5fb)]}]);}}return views={'OKDBViews':_0x52a83b},views;}var queue,hasRequiredQueue;function requireQueue(){const _0x4dd2a6=_0x2d5353;if(hasRequiredQueue)return queue;hasRequiredQueue=0x1;const {OKDBError:_0x25e1be}=requireErrors(),_0x2e7993=requireBridge();class _0x3ab6b1{constructor(_0x3a500a){const _0x59e872=_0x36a2;this[_0x59e872(0x784)]=_0x3a500a,this[_0x59e872(0x4f7)]=_0x3a500a[_0x59e872(0x4f7)],this[_0x59e872(0x71e)]=_0x3a500a['okdb'][_0x59e872(0x71e)]['child']({'feature':_0x59e872(0x72c)}),this['_workers']=new Set();}['_n'](_0x1da2b8,_0x1dc659,_0x4db333=!![]){const _0x3bc36c=_0x36a2;return this[_0x3bc36c(0x4f7)][_0x3bc36c(0x24a)](_0x3bc36c(0x72c),this['env']['name'],_0x1da2b8,_0x1dc659,_0x4db333);}['_w'](_0x34a13a,_0x1060ee){const _0x2cc42a=_0x36a2;return this['okdb'][_0x2cc42a(0x664)](this['_n'](_0x34a13a,_0x1060ee));}async[_0x4dd2a6(0x862)](){const _0xd1700e=_0x4dd2a6;return this['_n'](_0xd1700e(0x51b),[]);}async[_0x4dd2a6(0x6ec)](_0x1a7ae7={}){const _0x4f2585=_0x4dd2a6;return this['_n'](_0x4f2585(0x6ec),[_0x1a7ae7],![]);}get[_0x4dd2a6(0x62b)](){const _0x238989=_0x4dd2a6,{RawDb:_0x5ae5df}=requireRawdb();return this['__logsDb']||(this[_0x238989(0x38c)]=new _0x5ae5df(this['env'],_0x238989(0x4cd)));}async[_0x4dd2a6(0x1ee)](){const _0x24c272=_0x4dd2a6;return this['_w'](_0x24c272(0x672),[]);}async[_0x4dd2a6(0x4eb)](_0x31010f,_0x27587a,_0x34625f={}){const _0x131bfd=_0x4dd2a6,{txn:_0x1cc8b6,..._0x1d15cd}=_0x34625f||{};if(_0x1cc8b6)return this[_0x131bfd(0x851)](_0x1cc8b6,_0x31010f,_0x27587a,_0x1d15cd);const _0x4dac71=this[_0x131bfd(0x4f7)][_0x131bfd(0x61c)];if(_0x4dac71&&_0x4dac71[_0x131bfd(0x72c)][_0x131bfd(0x192)])_0x4dac71['commit']();const _0x193afd=this['_n'](_0x131bfd(0x716),[_0x31010f,_0x27587a,_0x1d15cd],![]);return this['okdb'][_0x131bfd(0x664)](_0x193afd['id'])['then'](_0x358806=>{const _0x19c999=_0x131bfd;if(_0x193afd['claimed'])this[_0x19c999(0x3cd)](_0x31010f);else try{this[_0x19c999(0x4f7)][_0x19c999(0x176)][_0x19c999(0x42a)]();}catch{}return _0x358806;});}[_0x4dd2a6(0x3cd)](_0x3a934b){queueMicrotask(()=>{try{this['_n']('startClaimed',[_0x3a934b]);}catch{}});}[_0x4dd2a6(0x851)](_0x4b3a99,_0x19e88e,_0x5b077e,_0x1f1b53){const _0x2a5059=_0x4dd2a6,_0x37a687=_0x4b3a99[_0x2a5059(0x6a8)]??_0x4b3a99;if(_0x37a687['_closed'])throw new _0x25e1be(_0x2a5059(0x54d),_0x2a5059(0x3dc));if(_0x37a687['okdb']&&_0x37a687[_0x2a5059(0x4f7)]!==this[_0x2a5059(0x784)]&&_0x37a687[_0x2a5059(0x4f7)][_0x2a5059(0x425)]!==this[_0x2a5059(0x784)][_0x2a5059(0x425)])throw new _0x25e1be(_0x2a5059(0x320),_0x2a5059(0x350),{'txnEnv':_0x37a687['okdb'][_0x2a5059(0x425)],'queueEnv':this[_0x2a5059(0x784)][_0x2a5059(0x425)]});const _0x2610a7=this['_n']('prepareTxnEnqueue',[_0x19e88e,_0x5b077e,_0x1f1b53],![]);if(_0x2610a7[_0x2a5059(0x248)])return _0x2610a7['id'];if(_0x2610a7[_0x2a5059(0x7fb)])_0x4b3a99['update'](_0x2a5059(0x55a),_0x2610a7[_0x2a5059(0x7fb)][_0x2a5059(0x5c0)],_0x2610a7[_0x2a5059(0x7fb)][_0x2a5059(0x821)],{'ifVersion':_0x2610a7[_0x2a5059(0x7fb)][_0x2a5059(0x779)]});if(_0x5b077e!==undefined)_0x4b3a99[_0x2a5059(0x14f)]('~queue_payloads',_0x2610a7['id'],_0x5b077e);_0x4b3a99[_0x2a5059(0x14f)](_0x2a5059(0x55a),_0x2610a7['id'],_0x2610a7[_0x2a5059(0x16f)]);if(typeof _0x37a687[_0x2a5059(0x12b)]===_0x2a5059(0x3b3))_0x37a687[_0x2a5059(0x12b)](()=>{const _0x16f3ed=_0x2a5059;if(this['_n'](_0x16f3ed(0x271),[_0x2610a7['id'],_0x19e88e,_0x2610a7[_0x16f3ed(0x1e9)],_0x2610a7[_0x16f3ed(0x876)]]))this[_0x16f3ed(0x3cd)](_0x19e88e);});return _0x2610a7['id'];}async[_0x4dd2a6(0x374)](_0x57d50,_0x23b9aa={}){const _0x1a6225=_0x4dd2a6;if(typeof _0x57d50!==_0x1a6225(0x84a)||!_0x57d50)throw new _0x25e1be(_0x1a6225(0x762),_0x1a6225(0x29b));return this['_w'](_0x1a6225(0x374),[_0x57d50,_0x23b9aa]);}async[_0x4dd2a6(0x7eb)](_0xaf8d14,_0x33253,_0x4c80d9=null){const _0x336798=_0x4dd2a6;return this['_w'](_0x336798(0x7eb),[_0xaf8d14,_0x33253,_0x4c80d9]);}async['heartbeat'](_0x3ead94,_0x94b63f,_0x120856=null){const _0x5daf36=_0x4dd2a6;return this[_0x5daf36(0x7eb)](_0x3ead94,_0x94b63f,_0x120856);}async[_0x4dd2a6(0x587)](_0x47640c,_0x47cf3c,_0x534cb9){const _0x1dee53=_0x4dd2a6;return this['_w'](_0x1dee53(0x587),[_0x47640c,_0x47cf3c,_0x534cb9]);}async[_0x4dd2a6(0x477)](_0x3315c7,_0x3c8eeb,_0x1dcd0d){const _0xe5fb9=_0x4dd2a6;return this['_w'](_0xe5fb9(0x477),[_0x3315c7,_0x3c8eeb,_0x1dcd0d]);}async[_0x4dd2a6(0x1e8)](_0x858ba6,_0x53f103,_0x7197b9){const _0x3a438f=_0x4dd2a6;return this[_0x3a438f(0x477)](_0x858ba6,_0x53f103,_0x7197b9);}async[_0x4dd2a6(0x51c)](_0x46a337,_0x5651b2,_0x41e645,_0x408de3){const _0x373da9=_0x4dd2a6,_0x10ee35=_0x41e645 instanceof Error?{'message':_0x41e645['message'],'stack':_0x41e645['stack']}:_0x41e645;return this['_w'](_0x373da9(0x51c),[_0x46a337,_0x5651b2,_0x10ee35,_0x408de3]);}async[_0x4dd2a6(0x775)](_0xe4fea5,_0x2d8895,_0x1eb483,_0x15d5dd){const _0x40be2e=_0x4dd2a6;return this[_0x40be2e(0x51c)](_0xe4fea5,_0x2d8895,_0x1eb483,_0x15d5dd);}async['releaseClaim'](_0x53b944,_0x43bcc2,_0x3cb397={}){const _0x2bcc81=_0x4dd2a6;return this['_w'](_0x2bcc81(0x201),[_0x53b944,_0x43bcc2,_0x3cb397]);}async['getJob'](_0x2980a4){const _0x41c227=_0x4dd2a6;return this['_n'](_0x41c227(0x3a3),[_0x2980a4],![]);}async[_0x4dd2a6(0x2a6)](_0x501f1a,_0x43459d={},_0x2a8d6a={}){const _0x24607f=_0x4dd2a6,_0x17b170=_0x2a8d6a&&_0x2a8d6a[_0x24607f(0x346)];if(!_0x17b170)return this['_w'](_0x24607f(0x2a6),[_0x501f1a,_0x43459d]);const {next:_0x487b22,version:_0xe898e6}=this['_n'](_0x24607f(0x233),[_0x501f1a,_0x43459d],![]);_0x17b170[_0x24607f(0x1a2)](_0x24607f(0x55a),_0x501f1a,_0x487b22,{'ifVersion':_0xe898e6});let _0x53b848;if('payload'in _0x43459d){if(_0x43459d[_0x24607f(0x172)]===undefined){if(this[_0x24607f(0x784)]['getEntry'](_0x24607f(0x124),_0x501f1a))_0x17b170[_0x24607f(0x78e)]('~queue_payloads',_0x501f1a);}else _0x17b170[_0x24607f(0x14f)](_0x24607f(0x124),_0x501f1a,_0x43459d['payload']);_0x53b848=_0x43459d['payload'];}else _0x53b848=this['env'][_0x24607f(0x6ce)](_0x24607f(0x124),_0x501f1a);return{..._0x487b22,'payload':_0x53b848};}async[_0x4dd2a6(0x133)](_0x3a920c,_0x52c5b0={}){const _0x36427e=_0x4dd2a6,_0x11bf7e=_0x52c5b0&&_0x52c5b0['txn'];if(!_0x11bf7e)return this['_w']('removeJob',[_0x3a920c]);if(!_0x3a920c)throw new _0x25e1be(_0x36427e(0x5f8),_0x36427e(0x29b));if(!this['env'][_0x36427e(0x638)]('~queue_jobs',_0x3a920c))return![];_0x11bf7e[_0x36427e(0x78e)](_0x36427e(0x55a),_0x3a920c);if(this['env']['getEntry']('~queue_payloads',_0x3a920c))_0x11bf7e[_0x36427e(0x78e)](_0x36427e(0x124),_0x3a920c);if(typeof _0x11bf7e['onDo']===_0x36427e(0x3b3))_0x11bf7e[_0x36427e(0x12b)](()=>this['_n'](_0x36427e(0x135),[_0x3a920c]));return!![];}async[_0x4dd2a6(0x747)](_0x353422){const _0x28a250=_0x4dd2a6;return this['_w'](_0x28a250(0x747),[_0x353422]);}async[_0x4dd2a6(0x7d8)](_0x9b440b){const _0x11016e=_0x4dd2a6;return this['_w'](_0x11016e(0x7d8),[_0x9b440b]);}async[_0x4dd2a6(0x1f4)](_0x5336cb,_0x1f6394,_0x430407){const _0x44d8c9=_0x4dd2a6,_0x46ba8c=this['_n']('clearScan',[_0x1f6394??null,_0x430407??0x0,_0x5336cb]),_0xc7f2d5=0x1f4;for(let _0x443c07=0x0;_0x443c07<_0x46ba8c[_0x44d8c9(0x192)];_0x443c07+=_0xc7f2d5){this['_n'](_0x44d8c9(0x209),[_0x46ba8c['slice'](_0x443c07,_0x443c07+_0xc7f2d5),_0x443c07,_0x46ba8c[_0x44d8c9(0x192)],_0x1f6394??null]);if(_0x443c07+_0xc7f2d5<_0x46ba8c[_0x44d8c9(0x192)])await new Promise(_0x45c243=>setImmediate(_0x45c243));}return this['_n'](_0x44d8c9(0x17e),[_0x46ba8c[_0x44d8c9(0x192)],_0x1f6394??null]),await new Promise(_0x4fcbf5=>setImmediate(_0x4fcbf5)),_0x46ba8c[_0x44d8c9(0x192)];}async['clearDone'](_0x4c3d02,_0x26e228){const _0x2c5bfe=_0x4dd2a6;return this[_0x2c5bfe(0x1f4)](_0x2c5bfe(0x5f1),_0x4c3d02,_0x26e228);}async['clearFailed'](_0x2be0bc,_0x56c77e){const _0x44de1a=_0x4dd2a6;return this[_0x44de1a(0x1f4)](_0x44de1a(0x823),_0x2be0bc,_0x56c77e);}async[_0x4dd2a6(0x416)](_0xf820c,_0x345af2){return this['_w']('retryFailed',[_0xf820c??null,_0x345af2??0x0]);}async[_0x4dd2a6(0x561)](_0xa217ed,_0x411b3f){return this['_w']('clearStuck',[_0xa217ed??null,_0x411b3f??0x0]);}async[_0x4dd2a6(0x515)](_0x396d29,_0x51c453,_0x4443a0){const _0x385d56=_0x4dd2a6;return this['_w'](_0x385d56(0x515),[_0x396d29,_0x51c453,_0x4443a0]);}async['getJobLogs'](_0x1b6ea9,_0x2a22e9={}){return this['_n']('getJobLogs',[_0x1b6ea9,_0x2a22e9],![]);}async['addBucket'](_0x26a4b4,_0x18228f={}){const _0x3a856b=_0x4dd2a6,{txn:_0x4d1590,..._0x79f243}=_0x18228f||{};if(!_0x4d1590)return this['_w'](_0x3a856b(0x383),[_0x26a4b4,_0x79f243]);const _0x394c06=(_0xc34410,_0x3bc8eb,_0x181125,_0x5554b9)=>{const _0xc0e994=_0x3a856b,_0x1908f8=Math[_0xc0e994(0x232)](Number(_0xc34410));return Number[_0xc0e994(0x496)](_0x1908f8)?Math[_0xc0e994(0x7bc)](_0x5554b9,Math[_0xc0e994(0x81c)](_0x181125,_0x1908f8)):_0x3bc8eb;},_0x3ec494=typeof _0x26a4b4==='string'?_0x26a4b4[_0x3a856b(0x4f1)]():'';if(!_0x3ec494)throw new Error(_0x3a856b(0x7e9));const _0x1772f7=_0x394c06(_0x79f243[_0x3a856b(0x583)],0x0,0x0,0x3b9aca00);_0x4d1590['put']('~queue_buckets',_0x3ec494,{'id':_0x3ec494,'tokens':_0x394c06(_0x79f243[_0x3a856b(0x493)],_0x1772f7,0x0,_0x1772f7),'capacity':_0x1772f7,'refill_amount':_0x394c06(_0x79f243[_0x3a856b(0x24d)],0x0,0x0,0x3b9aca00),'refill_every':_0x394c06(_0x79f243[_0x3a856b(0x306)],0x0,0x0,0x16d*0x18*0x36ee80),'updated':Date[_0x3a856b(0x76a)]()});}async[_0x4dd2a6(0x4ce)](_0x39775d,_0x252055){const _0x151c97=_0x4dd2a6;return this['_w'](_0x151c97(0x4ce),[_0x39775d,_0x252055]);}async[_0x4dd2a6(0x38f)](_0x18bbaf){const _0x1cc967=_0x4dd2a6;return this['_w'](_0x1cc967(0x38f),[_0x18bbaf]);}[_0x4dd2a6(0x6f5)](_0x18bb39){const _0x475810=_0x4dd2a6,_0x3de032=this['_n'](_0x475810(0x6f5),[_0x18bb39],![]);return _0x3de032===null&&typeof _0x18bb39==='string'&&_0x18bb39['trim']()?undefined:_0x3de032;}async['tryClaimTokens'](_0x41e5f0,_0x4b1197){const _0x12c303=_0x4dd2a6;return this['_w'](_0x12c303(0x4c6),[_0x41e5f0,_0x4b1197]);}async['addJobType'](_0x437e12,_0x204461={}){return this['_w']('addJobType',[_0x437e12,_0x204461]);}async[_0x4dd2a6(0x441)](_0x3c6dde){const _0x5d4ba9=_0x4dd2a6;return this['_n'](_0x5d4ba9(0x441),[_0x3c6dde],![]);}async[_0x4dd2a6(0x452)](){const _0x941470=_0x4dd2a6;return this['_n'](_0x941470(0x452),[],![]);}async[_0x4dd2a6(0x7fa)](_0x4c4afe){const _0x1de408=_0x4dd2a6;return this['_w'](_0x1de408(0x7fa),[_0x4c4afe]);}[_0x4dd2a6(0x186)](_0x7278c9){const _0x3f9f72=_0x4dd2a6;return this['_n'](_0x3f9f72(0x186),[_0x7278c9]);}[_0x4dd2a6(0x3ac)](_0x5e147f){const _0x1cbee3=_0x4dd2a6;return this['_n'](_0x1cbee3(0x3ac),[_0x5e147f]);}[_0x4dd2a6(0x68c)](_0x18591c){const _0x126610=_0x4dd2a6;return this['_n'](_0x126610(0x68c),[_0x18591c]);}async[_0x4dd2a6(0x804)](_0x13d52a,_0x4dd5e7,_0x2fd1d7=![]){return this['_w']('setJobTypeSchema',[_0x13d52a,_0x4dd5e7,_0x2fd1d7]);}async['removeJobTypeSchema'](_0x44258f){const _0xbe47f3=_0x4dd2a6;return this['_w'](_0xbe47f3(0x293),[_0x44258f]);}async[_0x4dd2a6(0x4f3)](_0x24ed23,_0x7ee588=0x5){const _0x2360f5=_0x4dd2a6;return this['_n'](_0x2360f5(0x4f3),[_0x24ed23,_0x7ee588],![]);}async[_0x4dd2a6(0x6f1)](_0x451515){const _0x3694b5=_0x4dd2a6;return this['_n'](_0x3694b5(0x423),[_0x451515]);}async[_0x4dd2a6(0x570)](_0x28ff22=0x7530){const _0x588c4a=_0x4dd2a6;await Promise[_0x588c4a(0x373)]([...this[_0x588c4a(0x80a)]][_0x588c4a(0x4e8)](_0x1ff958=>_0x1ff958['stop'](_0x28ff22)));const _0x515c43=this['_n'](_0x588c4a(0x570),[0x0]);return this[_0x588c4a(0x80a)][_0x588c4a(0x530)](),_0x515c43;}async[_0x4dd2a6(0x16a)](){const _0xde5cfb=_0x4dd2a6,_0x112834=this['_n'](_0xde5cfb(0x16a),[]);return this[_0xde5cfb(0x80a)]['clear'](),_0x112834;}['process'](_0x1b70e3,_0x28d390,_0x5be5f8){const _0x469187=_0x4dd2a6;let _0x2e62c0,_0x48516c;if(Array[_0x469187(0x7e3)](_0x1b70e3)){if(typeof _0x28d390===_0x469187(0x3b3))throw new _0x25e1be(_0x469187(0x539),_0x469187(0x29b));_0x48516c=_0x28d390??{};if(_0x48516c[_0x469187(0x354)]!=null&&typeof _0x48516c[_0x469187(0x354)]!==_0x469187(0x3b3))throw new _0x25e1be('process\x20options.admission\x20must\x20be\x20a\x20function',_0x469187(0x29b));if(_0x1b70e3[_0x469187(0x192)]===0x0)throw new _0x25e1be('process(entries)\x20requires\x20at\x20least\x20one\x20entry',_0x469187(0x29b));_0x2e62c0=_0x1b70e3[_0x469187(0x4e8)](_0x3b9cbf=>{const _0x2cf73c=_0x469187;if(!_0x3b9cbf||typeof _0x3b9cbf['type']!==_0x2cf73c(0x84a)||!_0x3b9cbf[_0x2cf73c(0x2d0)])throw new _0x25e1be(_0x2cf73c(0x156),_0x2cf73c(0x29b));if(typeof _0x3b9cbf[_0x2cf73c(0x816)]!==_0x2cf73c(0x3b3))throw new _0x25e1be(_0x2cf73c(0x6ea)+_0x3b9cbf[_0x2cf73c(0x2d0)]+_0x2cf73c(0x3f5),'BAD_PARAM');return{..._0x3b9cbf};});}else{_0x48516c=_0x5be5f8??{};if(typeof _0x28d390!==_0x469187(0x3b3))throw new _0x25e1be(_0x469187(0x6ea)+_0x1b70e3+_0x469187(0x3f5),_0x469187(0x29b));_0x2e62c0=[{'type':_0x1b70e3,'handler':_0x28d390,..._0x5be5f8??{}}];}const _0x51d729=this['okdb'];for(const _0xb0fa1e of _0x2e62c0){const _0x1947a2=_0xb0fa1e[_0x469187(0x816)];_0xb0fa1e[_0x469187(0x816)]=function(..._0xc846ad){const _0x423122=_0x469187;return _0x51d729[_0x423122(0x409)]()['then'](()=>_0x1947a2['apply'](this,_0xc846ad));};}const _0x5ce500=this['_n'](_0x469187(0x421),[_0x2e62c0,_0x48516c]),_0x4c1502=this,_0x3544ce={'id':_0x5ce500['id'],'type':_0x5ce500['type'],get 'running'(){const _0x56e5ef=_0x469187;return _0x4c1502['_n'](_0x56e5ef(0x738),[_0x5ce500['id']],![])[_0x56e5ef(0x12a)];},'isRunning'(){const _0x4f48fb=_0x469187;return _0x4c1502['_n'](_0x4f48fb(0x738),[_0x5ce500['id']],![])['running'];},async 'stop'(_0xa3b44a=0x7530){const _0x2efb64=_0x469187;_0x4c1502['_n'](_0x2efb64(0x1e3),[_0x5ce500['id']]);const _0xa218fd=Date[_0x2efb64(0x76a)]()+_0xa3b44a;while(_0x4c1502['_n'](_0x2efb64(0x738),[_0x5ce500['id']],![])['inFlight']>0x0&&Date[_0x2efb64(0x76a)]()<_0xa218fd)await new Promise(_0x363925=>setTimeout(_0x363925,0x2));_0x4c1502['_n'](_0x2efb64(0x5fa),[_0x5ce500['id']]),_0x2e7993[_0x2efb64(0x3e6)](),_0x4c1502[_0x2efb64(0x80a)][_0x2efb64(0x243)](_0x3544ce);},async 'kill'(){const _0x3b39f6=_0x469187;_0x4c1502['_n'](_0x3b39f6(0x18f),[_0x5ce500['id']]),_0x4c1502[_0x3b39f6(0x80a)]['delete'](_0x3544ce);}};return this[_0x469187(0x80a)][_0x469187(0x725)](_0x3544ce),_0x3544ce;}[_0x4dd2a6(0x7ab)](_0x538a2b){const _0x5d1bf7=_0x4dd2a6;throw new _0x25e1be(_0x5d1bf7(0x84f)+_0x538a2b+_0x5d1bf7(0x817)+_0x538a2b+'\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.',_0x5d1bf7(0x780));}[_0x4dd2a6(0x795)](_0x24fea1){const _0x55c298=_0x4dd2a6;return this[_0x55c298(0x7ab)](_0x24fea1);}}return queue={'OKDBQueue':_0x3ab6b1},queue;}var timemachine,hasRequiredTimemachine;function requireTimemachine(){const _0x1f1f48=_0x2d5353;if(hasRequiredTimemachine)return timemachine;hasRequiredTimemachine=0x1;const {fromArray:_0x32faca}=requireIterable();class _0x4b8e6f{constructor(_0x89726){const _0x2dcb8b=_0x36a2;this['env']=_0x89726,this[_0x2dcb8b(0x4f7)]=_0x89726[_0x2dcb8b(0x4f7)];const _0x32fd24=(_0x50ae13,_0x3024e8)=>this['_n'](_0x50ae13,_0x3024e8,![]);this[_0x2dcb8b(0x180)]={'getDiffs':(_0xd382ba,_0x506dae,_0x42de90)=>_0x32fd24('storeGetDiffs',[_0xd382ba,_0x506dae,_0x42de90||{}]),'hasDiff':(_0x401ae1,_0x510c66,_0x2965ef)=>_0x32fd24('storeHasDiff',[_0x401ae1,_0x510c66,_0x2965ef]),'getHead':(_0x52cbd0,_0xb16247)=>_0x32fd24(_0x2dcb8b(0x46a),[_0x52cbd0,_0xb16247])??null,'getHeadCount':_0x4a5f4d=>_0x32fd24(_0x2dcb8b(0x6c9),[_0x4a5f4d]),'getTotalHeadCount':()=>_0x32fd24(_0x2dcb8b(0x6e7),[]),'getDiffsInRange':(_0x55f408,_0x37b3e8,_0x8bea33)=>_0x32fd24(_0x2dcb8b(0x2ca),[_0x55f408??null,_0x37b3e8,_0x8bea33]),'getConfig':()=>_0x32fd24('storeGetConfig',[])??null,'getCursor':()=>this['_n'](_0x2dcb8b(0x246),[],![])??null,get 'db'(){const _0x4084a4=_0x2dcb8b;try{return _0x32fd24(_0x4084a4(0x6e7),[]),{};}catch{return null;}}};}get[_0x1f1f48(0x207)](){const _0xccd493=_0x1f1f48,_0x3c6492=(this[_0xccd493(0x784)][_0xccd493(0x26e)]?.['list']?.()||[])[_0xccd493(0x440)](_0x306e10=>String(_0x306e10[_0xccd493(0x52c)]||'')[_0xccd493(0x48b)](_0xccd493(0x7e7)))[_0xccd493(0x192)];return{'size':_0x3c6492};}['_n'](_0x54fc34,_0x32eb17,_0x2b0f3b=!![]){const _0x1d8aad=_0x1f1f48;return this[_0x1d8aad(0x4f7)]['_call']('tm',this[_0x1d8aad(0x784)]['name'],_0x54fc34,_0x32eb17,_0x2b0f3b);}async[_0x1f1f48(0x671)](_0x3e9faf){const _0x57bf5f=_0x1f1f48;return this['_n'](_0x57bf5f(0x671),[_0x3e9faf??null]);}async[_0x1f1f48(0x878)](_0x407897){return this['_n']('disable',[_0x407897??null]);}async[_0x1f1f48(0x1cb)](){const _0x55f577=_0x1f1f48;return this['_n'](_0x55f577(0x1cb),[]);}async[_0x1f1f48(0x593)](){const _0x4b7357=_0x1f1f48;return this['_n'](_0x4b7357(0x593),[]);}async[_0x1f1f48(0x4e3)](_0x45f171){const _0x2070f5=_0x1f1f48;return this['_n'](_0x2070f5(0x4e3),[_0x45f171??null]);}async[_0x1f1f48(0x645)](){const _0x3e78dd=_0x1f1f48;return this['_n'](_0x3e78dd(0x645),[]);}[_0x1f1f48(0x366)](_0x1fc5a6){return this['_n']('isEnabled',[_0x1fc5a6??null],![]);}['list'](){const _0x5c9d74=_0x1f1f48;return this['_n'](_0x5c9d74(0x6ec),[],![]);}[_0x1f1f48(0x2e4)](_0x25dcb7){const _0x4ce02d=_0x1f1f48;return this['_n'](_0x4ce02d(0x2e4),[_0x25dcb7??null],![]);}[_0x1f1f48(0x665)](_0x225982){const _0x394c01=_0x1f1f48;if(!_0x225982)return this['_n'](_0x394c01(0x246),[],![]);return this['_n'](_0x394c01(0x665),[_0x225982],![]);}[_0x1f1f48(0x246)](){return this['_n']('getLegacyCursor',[],![]);}[_0x1f1f48(0x698)](_0x2cf450,_0x23b14b,_0x3bf8a6){const _0x56bc9c=_0x1f1f48;return this['_n'](_0x56bc9c(0x698),[_0x2cf450,_0x23b14b,_0x3bf8a6],![]);}['getHistory'](_0x2f025f,_0x2d66a3,_0x1f98e3){const _0x26a684=_0x1f1f48;return this['_n'](_0x26a684(0x14c),[_0x2f025f,_0x2d66a3,_0x1f98e3||{}],![]);}[_0x1f1f48(0x5ed)](_0x457cc8,_0x5bb3e4,_0x488b9f){const _0x4ac35d=_0x1f1f48;return this['_n'](_0x4ac35d(0x5ed),[_0x457cc8??null,_0x5bb3e4,_0x488b9f],![])[Symbol[_0x4ac35d(0x1f2)]]();}async['flush'](_0x4d8b97){return this['_n']('flush',[_0x4d8b97??null]);}}return timemachine={'OKDBTimeMachine':_0x4b8e6f},timemachine;}var files,hasRequiredFiles;function requireFiles(){const _0x1446b9=_0x2d5353;if(hasRequiredFiles)return files;hasRequiredFiles=0x1;const _0x3eb27e=require$$0,{Readable:_0x800de4}=require$$1,{OKDBError:_0x1dbf87,optionsArg:_0x14ef19,invalidArgument:_0x5e945c}=requireErrors(),{RawDb:_0x29e3d0}=requireRawdb();async function _0x43c747(_0x2bdfab){const _0x2cd2da=_0x36a2;if(Buffer[_0x2cd2da(0x478)](_0x2bdfab))return _0x2bdfab;if(_0x2bdfab instanceof Uint8Array)return Buffer[_0x2cd2da(0x3ed)](_0x2bdfab);if(typeof _0x2bdfab===_0x2cd2da(0x84a))return Buffer['from'](_0x2bdfab);const _0x2f110c=[];for await(const _0x202aa7 of _0x2bdfab)_0x2f110c[_0x2cd2da(0x46d)](Buffer['isBuffer'](_0x202aa7)?_0x202aa7:Buffer['from'](_0x202aa7));return Buffer[_0x2cd2da(0x557)](_0x2f110c);}class _0x635168{constructor(_0x4fcadd){const _0x3c482d=_0x36a2;this[_0x3c482d(0x784)]=_0x4fcadd,this[_0x3c482d(0x4f7)]=_0x4fcadd['okdb'];}['_n'](_0xf85038,_0x2a82b5,_0x2381e7=!![]){const _0x5bfbae=_0x36a2;return this['okdb'][_0x5bfbae(0x24a)](_0x5bfbae(0x669),this[_0x5bfbae(0x784)][_0x5bfbae(0x425)],_0xf85038,_0x2a82b5,_0x2381e7);}[_0x1446b9(0x4df)](){return!![];}[_0x1446b9(0x32a)](){}async[_0x1446b9(0x862)](){const _0x5838c8=_0x1446b9;this['_n'](_0x5838c8(0x51b),[]);}async[_0x1446b9(0x639)](_0x51aa01,_0x43caa3){const _0x12ed4d=_0x1446b9;return this[_0x12ed4d(0x4f7)]['_settleWrite'](this['_n'](_0x12ed4d(0x210),[_0x51aa01,await _0x43c747(_0x43caa3)]));}get['_blobStatusDb'](){const _0x2b6b6c=_0x1446b9;return this[_0x2b6b6c(0x487)]||(this[_0x2b6b6c(0x487)]=new _0x29e3d0(this[_0x2b6b6c(0x784)],_0x2b6b6c(0x413)));}async['_blobStatusTxn'](_0x5f049e){const _0xf0f34d=_0x1446b9;return this[_0xf0f34d(0x7d9)][_0xf0f34d(0x6a7)](_0x5f049e);}async[_0x1446b9(0x324)](_0x4a21db){const _0x4825f2=_0x1446b9,{id:_0x33d0fb,stream:_0x29d50c,mime:mime=_0x4825f2(0x5b8),path:_0x7f61bb='',txn:txn=null}=_0x14ef19(_0x4a21db);if(!_0x33d0fb)throw _0x5e945c(_0x4825f2(0x571),_0x4825f2(0x7c8),_0x33d0fb);if(!_0x29d50c)throw _0x5e945c(_0x4825f2(0x148),_0x4825f2(0x294),_0x29d50c);const _0x90c3ac=await _0x43c747(_0x29d50c);if(txn){const _0x4b9b47=this['_n'](_0x4825f2(0x750),[_0x33d0fb,_0x90c3ac,{'mime':mime,'path':_0x7f61bb}]);return txn[_0x4825f2(0x14f)](_0x4825f2(0x325),_0x33d0fb,_0x4b9b47[_0x4825f2(0x702)]),txn[_0x4825f2(0x12b)](()=>this['_n']('txnDone',[_0x4b9b47[_0x4825f2(0x787)]])),txn[_0x4825f2(0x179)](()=>this['_n'](_0x4825f2(0x63e),[_0x4b9b47[_0x4825f2(0x787)]])),_0x4b9b47['record'];}return this[_0x4825f2(0x4f7)]['_settleWrite'](this['_n'](_0x4825f2(0x324),[_0x33d0fb,_0x90c3ac,{'mime':mime,'path':_0x7f61bb}]));}[_0x1446b9(0x6ce)](_0x841f3f){const _0x50cbf1=_0x1446b9;return this['_n'](_0x50cbf1(0x6ce),[_0x841f3f],![])??null;}[_0x1446b9(0x1d8)](_0x45d969){const _0x371fce=_0x1446b9,_0x47a65e=this[_0x371fce(0x188)](_0x45d969);if(!_0x3eb27e[_0x371fce(0x7a5)](_0x47a65e))throw Object[_0x371fce(0x3aa)](new Error(_0x371fce(0x7b0)+_0x45d969),{'status':0x194});return this['_blobStream'](_0x45d969);}[_0x1446b9(0x411)](_0x5a45d8){const _0x58e6cd=0x100*0x400,_0x32aebb=this;let _0xf7d8e6=0x0;return new _0x800de4({'highWaterMark':_0x58e6cd,'read'(){const _0x6cc6ed=_0x36a2;let _0x2ddd3d;try{const _0x391475=_0x32aebb['_n'](_0x6cc6ed(0x376),[_0x5a45d8,_0xf7d8e6,_0x58e6cd],![]);_0x2ddd3d=Buffer['isBuffer'](_0x391475)?_0x391475:Buffer[_0x6cc6ed(0x3ed)](_0x391475);}catch(_0x3738f5){this[_0x6cc6ed(0x1e6)](_0x3738f5);return;}_0xf7d8e6+=_0x2ddd3d[_0x6cc6ed(0x192)];if(_0x2ddd3d['length'])this[_0x6cc6ed(0x46d)](_0x2ddd3d);if(_0x2ddd3d[_0x6cc6ed(0x192)]<_0x58e6cd)this[_0x6cc6ed(0x46d)](null);}});}async[_0x1446b9(0x83c)](_0x14d5cc){const _0x4a49a0=_0x1446b9;return this[_0x4a49a0(0x4f7)][_0x4a49a0(0x369)](this['_n'](_0x4a49a0(0x83c),[_0x14d5cc],![]));}async[_0x1446b9(0x6df)](_0x53adc7){const _0x97a156=_0x1446b9,_0x30a2b8=this[_0x97a156(0x6ce)](_0x53adc7);if(!_0x30a2b8)throw Object[_0x97a156(0x3aa)](new Error('File\x20not\x20found:\x20'+_0x53adc7),{'status':0x194});const _0x3102cc=this[_0x97a156(0x188)](_0x30a2b8[_0x97a156(0x643)]);if(!_0x3eb27e[_0x97a156(0x7a5)](_0x3102cc))throw Object[_0x97a156(0x3aa)](new Error('Blob\x20missing\x20for\x20file:\x20'+_0x53adc7),{'status':0x194});return{'stream':this[_0x97a156(0x411)](_0x30a2b8[_0x97a156(0x643)]),'record':_0x30a2b8};}async['remove'](_0x2194d2,_0x1aae6d){const _0x3d513b=_0x1446b9,{txn:txn=null}=_0x14ef19(_0x1aae6d);if(txn){const _0xb385ee=this['_n'](_0x3d513b(0x6cb),[_0x2194d2]);txn[_0x3d513b(0x78e)](_0x3d513b(0x325),_0x2194d2),txn[_0x3d513b(0x12b)](()=>this['_n'](_0x3d513b(0x252),[_0xb385ee[_0x3d513b(0x787)]])),txn[_0x3d513b(0x179)](()=>this['_n'](_0x3d513b(0x63e),[_0xb385ee['hook']]));return;}return this[_0x3d513b(0x4f7)]['_settleWrite'](this['_n']('remove',[_0x2194d2]));}async['listPath'](_0x67ac19,_0x105662={}){const _0x34c28d=_0x1446b9;return this['_n'](_0x34c28d(0x597),[_0x67ac19,_0x105662],![]);}['getBlobStatus'](_0x44e465){return this['_n']('getBlobStatus',[_0x44e465],![]);}[_0x1446b9(0x6fb)](){const _0x2be89b=_0x1446b9;return this['_n'](_0x2be89b(0x6fb),[],![]);}[_0x1446b9(0x71d)](_0x4d7b49){const _0x37aa5d=_0x1446b9,{minAgeMs:_0x3665b9}=_0x14ef19(_0x4d7b49);return this['_n'](_0x37aa5d(0x71d),[_0x3665b9??null]);}['registerExtractor'](_0x564e16,_0x268d78){const _0x35b995=_0x1446b9;if(typeof _0x268d78!==_0x35b995(0x3b3))throw new _0x1dbf87(_0x35b995(0x678),_0x35b995(0x29b));const _0x16685c=this['_n'](_0x35b995(0x38d),[_0x564e16,_0x268d78]);return()=>this['_n'](_0x35b995(0x370),[_0x16685c]);}async[_0x1446b9(0x1bc)](_0x53612c){return _0x53612c=_0x14ef19(_0x53612c),this['_n']('indexContent',[_0x53612c]);}async[_0x1446b9(0x1fa)](_0x1ee1b9){const _0x16233d=_0x1446b9,{peerIds:_0x333767}=_0x14ef19(_0x1ee1b9);return this['_n'](_0x16233d(0x1fa),[_0x333767??null]);}[_0x1446b9(0x188)](_0x5741fa){const _0x312e54=_0x1446b9;if(typeof _0x5741fa!==_0x312e54(0x84a))return require$$4[_0x312e54(0x3ee)](this[_0x312e54(0x79d)],_0x5741fa[_0x312e54(0x6fe)](0x0,0x2),_0x5741fa[_0x312e54(0x6fe)](0x2));return this['_n'](_0x312e54(0x480),[_0x5741fa],![]);}get['_blobsDir'](){return this['_n']('blobsDir',[],![]);}}return files={'OKDBFiles':_0x635168},files;}var engines,hasRequiredEngines;function requireEngines(){const _0x3718ee=_0x2d5353;if(hasRequiredEngines)return engines;hasRequiredEngines=0x1;const {OKDBError:_0x5079f6}=requireErrors(),_0x26376a=requireBridge(),_0xecaf78=new Set([_0x3718ee(0x122),_0x3718ee(0x706),'vector-search',_0x3718ee(0x31b)]),_0x1fd2bc=new Set(['count',_0x3718ee(0x758),_0x3718ee(0x250)]),_0x4da184=[_0x3718ee(0x83e),'patchConfig',_0x3718ee(0x5aa),_0x3718ee(0x468),_0x3718ee(0x708),_0x3718ee(0x32a),_0x3718ee(0x145)],_0x53f1c0={'embedder':new Set(['dims',_0x3718ee(0x1f3)])},_0x46a82f=new Set(['materializer','processor',_0x3718ee(0x3ef)]);class _0x16d4e3{constructor(_0x2e25b8,_0x19933e,_0x4e348c,_0x5157d4){const _0x56cfa4=_0x3718ee;this[_0x56cfa4(0x7cf)]=_0x2e25b8,this[_0x56cfa4(0x5c0)]=_0x19933e,this[_0x56cfa4(0x2d0)]=_0x4e348c,this[_0x56cfa4(0x425)]=_0x5157d4,this['engineType']=_0x4e348c;}[_0x3718ee(0x33b)](){const _0x5d106a=_0x3718ee;return this[_0x5d106a(0x7cf)]['_n'](_0x5d106a(0x758),[this['type'],this[_0x5d106a(0x425)]],![]);}get[_0x3718ee(0x6ac)](){const _0x4af9bc=_0x3718ee;return this[_0x4af9bc(0x33b)]()[_0x4af9bc(0x6ac)];}get[_0x3718ee(0x180)](){const _0x350d8b=_0x3718ee,_0x5b5c8a=this['_info']()[_0x350d8b(0x241)];return _0x5b5c8a?this[_0x350d8b(0x7cf)]['okdb'][_0x350d8b(0x3e2)][_0x350d8b(0x6ce)](_0x5b5c8a):undefined;}get[_0x3718ee(0x5b1)](){const _0x152233=_0x3718ee;return this['_info']()[_0x152233(0x5b1)];}get[_0x3718ee(0x6f9)](){const _0x51bd1a=_0x3718ee;return this['_info']()[_0x51bd1a(0x6f9)];}get[_0x3718ee(0x1c3)](){const _0x15148b=_0x3718ee;return this[_0x15148b(0x33b)]()[_0x15148b(0x1c3)];}get[_0x3718ee(0x2e4)](){const _0x23edc1=_0x3718ee;return this[_0x23edc1(0x33b)]()[_0x23edc1(0x2e4)];}get[_0x3718ee(0x549)](){const _0x67adaf=_0x3718ee;return this[_0x67adaf(0x33b)]()[_0x67adaf(0x549)];}get[_0x3718ee(0x66e)](){const _0x36b1bc=_0x3718ee,_0x234104=this['_info']()[_0x36b1bc(0x66e)];return _0x234104?Object[_0x36b1bc(0x3aa)](new Error(_0x234104['message']),{'code':_0x234104[_0x36b1bc(0x316)]}):null;}get[_0x3718ee(0x802)](){const _0x202806=_0x3718ee;return this['_info']()[_0x202806(0x802)];}get['driver'](){const _0x3c27b7=_0x3718ee;return this[_0x3c27b7(0x7cf)][_0x3c27b7(0x469)][_0x3c27b7(0x6ce)](this[_0x3c27b7(0x2d0)])??null;}get[_0x3718ee(0x551)](){const _0x1be6ed=_0x3718ee;if(!this[_0x1be6ed(0x33b)]()[_0x1be6ed(0x26b)])return null;const _0x1a98ec=this;return new Proxy({},{'get'(_0x505ef0,_0x4ad32a){const _0x131320=_0x1be6ed;if(typeof _0x4ad32a==='symbol'||_0x4ad32a===_0x131320(0x600))return undefined;if(_0x53f1c0[_0x1a98ec['type']]&&_0x53f1c0[_0x1a98ec[_0x131320(0x2d0)]]['has'](_0x4ad32a))return _0x1a98ec[_0x131320(0x7cf)]['_n'](_0x131320(0x30c),[_0x1a98ec['type'],_0x1a98ec[_0x131320(0x425)],_0x4ad32a,[]],![])[_0x131320(0x821)];if(_0x1a98ec[_0x131320(0x2d0)]===_0x131320(0x706)&&_0x4ad32a===_0x131320(0x53c))return async(_0x184ac3={})=>{const _0x56c9d5=_0x131320,_0x276867=(_0x3b1c82,..._0x56a00f)=>_0x1a98ec['_facade']['_n'](_0x56c9d5(0x30c),[_0x1a98ec[_0x56c9d5(0x2d0)],_0x1a98ec[_0x56c9d5(0x425)],_0x3b1c82,_0x56a00f],!![])['value'],_0x49e2b2=_0x276867('flushMaxWait',_0x184ac3??{}),_0x385221=Date[_0x56c9d5(0x76a)]();for(;;){const _0x34b0a2=await _0x1a98ec['_facade'][_0x56c9d5(0x4f7)][_0x56c9d5(0x45c)](()=>_0x276867(_0x56c9d5(0x2c4)));if(_0x34b0a2['cursor']>=_0x34b0a2[_0x56c9d5(0x6ba)])return;Date[_0x56c9d5(0x76a)]()-_0x385221>=_0x49e2b2&&_0x276867(_0x56c9d5(0x7b4),_0x184ac3??{},_0x34b0a2),await new Promise(_0x2af8cd=>setTimeout(_0x2af8cd,0x3));}};return(..._0x306d52)=>{const _0x524a8c=_0x131320,_0x5f43fa=()=>_0x1a98ec[_0x524a8c(0x7cf)]['_n'](_0x524a8c(0x30c),[_0x1a98ec[_0x524a8c(0x2d0)],_0x1a98ec['name'],_0x4ad32a,_0x306d52],!![]),_0x102c12=_0x5c0db2=>{const _0x4d2de8=_0x524a8c;if(_0x5c0db2&&_0x5c0db2[_0x4d2de8(0x34b)])throw new TypeError('engine\x20api\x20has\x20no\x20method\x20\x27'+_0x4ad32a+'\x27');return _0x5c0db2[_0x4d2de8(0x821)];};if(_0xecaf78['has'](_0x1a98ec['type'])&&!_0x1fd2bc[_0x524a8c(0x69d)](_0x4ad32a)){const _0x457f22=_0x1a98ec['_facade'][_0x524a8c(0x4f7)];return _0x457f22[_0x524a8c(0x7ef)](()=>_0x457f22[_0x524a8c(0x45c)](_0x5f43fa))[_0x524a8c(0x600)](_0x102c12);}if(_0x46a82f[_0x524a8c(0x69d)](_0x1a98ec[_0x524a8c(0x2d0)]))try{return Promise[_0x524a8c(0x794)](_0x102c12(_0x5f43fa()));}catch(_0xd3a8f9){return Promise[_0x524a8c(0x47c)](_0xd3a8f9);}return _0x102c12(_0x5f43fa());};}});}async['load'](_0x5a1610={}){const _0x21dcdf=_0x3718ee;return await this[_0x21dcdf(0x7cf)][_0x21dcdf(0x577)](_0x21dcdf(0x321),[this[_0x21dcdf(0x2d0)],this[_0x21dcdf(0x425)],_0x5a1610]),this;}async[_0x3718ee(0x4df)](){const _0x12f9d6=_0x3718ee;await this[_0x12f9d6(0x7cf)][_0x12f9d6(0x577)](_0x12f9d6(0x424),[this[_0x12f9d6(0x2d0)],this[_0x12f9d6(0x425)]]);}async[_0x3718ee(0x32a)](_0x3ae824={}){const _0x2ed92e=_0x3718ee;await this[_0x2ed92e(0x7cf)][_0x2ed92e(0x577)](_0x2ed92e(0x29d),[this[_0x2ed92e(0x2d0)],this['name'],_0x3ae824]);}async[_0x3718ee(0x6c4)](_0x304a90={}){const _0x1e54ca=_0x3718ee;return await this[_0x1e54ca(0x7cf)][_0x1e54ca(0x577)]('patchDeclaration',[this[_0x1e54ca(0x2d0)],this[_0x1e54ca(0x425)],_0x304a90]),this;}async[_0x3718ee(0x145)](){const _0x2a9021=_0x3718ee;await this['_facade']['_nm'](_0x2a9021(0x599),[this[_0x2a9021(0x2d0)],this[_0x2a9021(0x425)]]);}}class _0x505bf3{constructor(_0x4e05a3,_0x4e987a=null,_0xcb7e5f=null){const _0x1225f3=_0x3718ee;this['okdb']=_0x4e05a3,this['envName']=_0x4e987a,this['isOrchestrator']=_0x4e987a===null,this[_0x1225f3(0x6f0)]=_0xcb7e5f||this,this[_0x1225f3(0x469)]=this[_0x1225f3(0x6f0)]===this?_0x1140e3(this):this[_0x1225f3(0x6f0)][_0x1225f3(0x469)],this[_0x1225f3(0x7d2)]=new Map();}['_n'](_0x37407f,_0x155fd3,_0x50c6d6=!![]){const _0x7398b=_0x3718ee;return this[_0x7398b(0x4f7)]['_call'](_0x7398b(0x617),this[_0x7398b(0x305)],_0x37407f,_0x155fd3,_0x50c6d6);}['_nm'](_0x149987,_0x274434){const _0x493889=_0x3718ee;return this[_0x493889(0x4f7)][_0x493889(0x67a)]('engines',this[_0x493889(0x305)],_0x149987,_0x274434,!![]);}get[_0x3718ee(0x784)](){const _0x389446=_0x3718ee;return this[_0x389446(0x305)]?this['okdb']['env'](this[_0x389446(0x305)]):null;}[_0x3718ee(0x48e)](_0x4a3f7b){const _0xed9b2e=_0x3718ee;if(!_0x4a3f7b)return null;let _0x824df2=this[_0xed9b2e(0x7d2)][_0xed9b2e(0x6ce)](_0x4a3f7b[_0xed9b2e(0x5c0)]);return!_0x824df2&&(_0x824df2=new _0x16d4e3(this,_0x4a3f7b['key'],_0x4a3f7b[_0xed9b2e(0x2d0)],_0x4a3f7b['name']),this[_0xed9b2e(0x7d2)][_0xed9b2e(0x7a0)](_0x4a3f7b['key'],_0x824df2)),_0x824df2;}['registerDriver'](_0x4372b0,_0x34a7b7){const _0x1ff8c4=_0x3718ee;if(!_0x4372b0||typeof _0x4372b0!=='string')throw new _0x5079f6(_0x1ff8c4(0x5f6),'ENGINE_INVALID_TYPE',{'type':_0x4372b0});if(!_0x34a7b7||typeof _0x34a7b7!==_0x1ff8c4(0x712))throw new _0x5079f6(_0x1ff8c4(0x531)+_0x4372b0+'\x22\x20must\x20be\x20a\x20plain\x20object',_0x1ff8c4(0x2fb),{'type':_0x4372b0});if(typeof _0x34a7b7[_0x1ff8c4(0x4df)]!==_0x1ff8c4(0x3b3))throw new _0x5079f6(_0x1ff8c4(0x531)+_0x4372b0+'\x22\x20must\x20have\x20a\x20start()\x20method',_0x1ff8c4(0x33e),{'type':_0x4372b0});const _0x55ddff=this[_0x1ff8c4(0x6f0)];if(_0x55ddff[_0x1ff8c4(0x469)]['has'](_0x4372b0))throw new _0x5079f6('Engine\x20driver\x20already\x20registered:\x20\x22'+_0x4372b0+'\x22','ENGINE_DRIVER_ALREADY_REGISTERED',{'type':_0x4372b0});const _0x58b9f6=_0x26376a[_0x1ff8c4(0x6a2)](_0x34a7b7,this[_0x1ff8c4(0x4f7)]),_0x4be14c=_0x4da184['filter'](_0x5603c2=>typeof _0x34a7b7[_0x5603c2]===_0x1ff8c4(0x3b3)),_0x2ac7c8=_0x34a7b7[_0x1ff8c4(0x2d9)]&&typeof _0x34a7b7[_0x1ff8c4(0x2d9)]===_0x1ff8c4(0x712)?_0x34a7b7['docs']:{};this['okdb'][_0x1ff8c4(0x24a)](_0x1ff8c4(0x617),null,_0x1ff8c4(0x4f8),[_0x4372b0,{'$id':_0x58b9f6,'has':_0x4be14c,'docs':_0x2ac7c8}]),_0x55ddff[_0x1ff8c4(0x469)][_0x1ff8c4(0x431)](_0x4372b0,_0x34a7b7);}get[_0x3718ee(0x508)](){const _0x5e220f=_0x3718ee;return this['okdb'][_0x5e220f(0x24a)](_0x5e220f(0x617),null,_0x5e220f(0x848),[],![]);}get['orchestrator'](){const _0x38a6bf=this;return{get '_started'(){return _0x38a6bf['_started'];}};}[_0x3718ee(0x5fc)](_0x22a859){const _0x5bb2f8=_0x3718ee;if(!_0x22a859||typeof _0x22a859!=='object')throw new _0x5079f6('Engine\x20template\x20must\x20be\x20a\x20plain\x20object',_0x5bb2f8(0x43d));if(!_0x22a859['id']||typeof _0x22a859['id']!==_0x5bb2f8(0x84a))throw new _0x5079f6(_0x5bb2f8(0x77c),_0x5bb2f8(0x43d));if(![_0x5bb2f8(0x769),'pipeline'][_0x5bb2f8(0x6f8)](_0x22a859[_0x5bb2f8(0x50a)]))throw new _0x5079f6(_0x5bb2f8(0x173)+_0x22a859['id'],_0x5bb2f8(0x43d));if(typeof _0x22a859[_0x5bb2f8(0x13a)]!==_0x5bb2f8(0x3b3))throw new _0x5079f6(_0x5bb2f8(0x7a9)+_0x22a859['id'],_0x5bb2f8(0x43d));const _0x580994=this[_0x5bb2f8(0x4f7)],_0x27933b=typeof _0x22a859[_0x5bb2f8(0x1a3)]===_0x5bb2f8(0x3b3);return this['_n'](_0x5bb2f8(0x5fc),[{'id':_0x22a859['id'],'kind':_0x22a859[_0x5bb2f8(0x50a)],'family':_0x22a859['family']??null,'engineType':_0x22a859[_0x5bb2f8(0x16d)]??null,'pipelineFamily':_0x22a859[_0x5bb2f8(0x657)]??null,'recommended':_0x22a859[_0x5bb2f8(0x43f)]===!![],'summary':_0x22a859['summary']??null,'description':_0x22a859[_0x5bb2f8(0x18c)]??null,'inputSchema':_0x27933b?null:_0x22a859[_0x5bb2f8(0x1a3)]??null,'inputSchemaFn':_0x27933b?()=>_0x22a859[_0x5bb2f8(0x1a3)](_0x580994):null,'defaults':_0x22a859[_0x5bb2f8(0x163)]??null,'notes':Array[_0x5bb2f8(0x7e3)](_0x22a859['notes'])?_0x22a859[_0x5bb2f8(0x428)]:[],'links':Array[_0x5bb2f8(0x7e3)](_0x22a859['links'])?_0x22a859['links']:[],'build':(_0x1be392,_0x5b3a6a)=>_0x22a859[_0x5bb2f8(0x13a)](_0x1be392??{},{'okdb':_0x580994,'envName':_0x5b3a6a??null})}],![]);}[_0x3718ee(0x6e1)](_0x57063b){const _0x7b01f5=_0x3718ee;return this['_n'](_0x7b01f5(0x6e1),[_0x57063b??null],![]);}[_0x3718ee(0x739)](_0x3b9b15){const _0x13d733=_0x3718ee;return this['_n'](_0x13d733(0x739),[_0x3b9b15],![]);}['previewTemplate'](_0xd843fc,_0x36bdf6,_0x3da969){const _0x33c318=_0x3718ee;return this['_n'](_0x33c318(0x6d0),[_0xd843fc,_0x36bdf6,_0x3da969??this[_0x33c318(0x305)]],![]);}['catalog'](){const _0x833b2=_0x3718ee;return this['_n'](_0x833b2(0x47b),[],![]);}async[_0x3718ee(0x4df)](){const _0x4ea48d=_0x3718ee;return this[_0x4ea48d(0x577)](_0x4ea48d(0x4df),[]);}async[_0x3718ee(0x32a)](){const _0x4ddfb2=_0x3718ee;return this['_nm'](_0x4ddfb2(0x32a),[]);}async[_0x3718ee(0x752)](_0x104f85,_0x4fac6d,_0x2f6525={},_0x47812e={},_0x55a478={}){const _0x1349fe=_0x3718ee;return this['_wrap'](await this['_nm'](_0x1349fe(0x752),[_0x104f85,_0x4fac6d,_0x2f6525,_0x47812e,_0x55a478]));}async[_0x3718ee(0x6e3)](_0x301d58,_0x136028,_0x4d60d9={},_0x1c4fba={},_0x12f363={}){const _0xea7d3c=_0x3718ee;return this['_wrap'](await this['_nm'](_0xea7d3c(0x6e3),[_0x301d58,_0x136028,_0x4d60d9,_0x1c4fba,_0x12f363]));}[_0x3718ee(0x553)](_0x5ea9e1,_0x4e7fc7){const _0x7d182f=_0x3718ee;return this[_0x7d182f(0x48e)](this['_n'](_0x7d182f(0x553),[_0x5ea9e1,_0x4e7fc7],![]));}['getRunningEngine'](_0x2ba6d6,_0x5d2b05){const _0x20d55b=_0x3718ee;return this[_0x20d55b(0x48e)](this['_n'](_0x20d55b(0x6a9),[_0x2ba6d6,_0x5d2b05],![]));}[_0x3718ee(0x6ec)](_0x373ba3){const _0x1eef48=_0x3718ee;return this['_n'](_0x1eef48(0x6ec),[_0x373ba3??null],![])['map'](_0x5bad5f=>this[_0x1eef48(0x48e)](_0x5bad5f));}async[_0x3718ee(0x17a)](_0x2e5e09,_0x120781){const _0x45105f=_0x3718ee;return this[_0x45105f(0x48e)](await this['_nm'](_0x45105f(0x17a),[_0x2e5e09,_0x120781]));}async[_0x3718ee(0x147)](_0x19b88a,_0x533e09){const _0x5ecb08=_0x3718ee;return this[_0x5ecb08(0x7d2)][_0x5ecb08(0x243)](_0x19b88a+':'+_0x533e09),this['_nm'](_0x5ecb08(0x147),[_0x19b88a,_0x533e09]);}async['startNewEnginesFromSync'](_0x4b27c1){const _0x5b0ccd=_0x3718ee;return this[_0x5b0ccd(0x577)](_0x5b0ccd(0x576),[_0x4b27c1]);}async[_0x3718ee(0x6a6)](){const _0x10e32=_0x3718ee;return this[_0x10e32(0x577)](_0x10e32(0x6a6),[]);}}function _0x1140e3(_0x234a9e){const _0x5e6174=_0x3718ee,_0x13e453=new Map();return{'has':_0x910314=>_0x13e453['has'](_0x910314)||_0x234a9e['okdb'][_0x5e6174(0x24a)](_0x5e6174(0x617),null,_0x5e6174(0x329),[_0x910314],![]),'get':_0x31ce44=>_0x13e453[_0x5e6174(0x6ce)](_0x31ce44),'set':()=>{const _0x3d677b=_0x5e6174;throw new _0x5079f6('use\x20engines.registerDriver()',_0x3d677b(0x29b));},'_set':(_0x2d5345,_0x4be3df)=>_0x13e453[_0x5e6174(0x7a0)](_0x2d5345,_0x4be3df),'keys':()=>_0x13e453[_0x5e6174(0x50d)](),'entries':()=>_0x13e453[_0x5e6174(0x45b)](),'values':()=>_0x13e453[_0x5e6174(0x514)](),get 'size'(){const _0x6a5041=_0x5e6174;return _0x13e453[_0x6a5041(0x4fb)];},[Symbol[_0x5e6174(0x1f2)]]:()=>_0x13e453[Symbol[_0x5e6174(0x1f2)]]()};}class _0x483778{constructor(_0x36c2de,_0x2d3dd1=null){const _0x65a270=_0x3718ee;this[_0x65a270(0x4f7)]=_0x36c2de,this[_0x65a270(0x305)]=_0x2d3dd1;}['_n'](_0x4391e7,_0x3127d5,_0xfe536=!![]){const _0x1caa5c=_0x3718ee;return this[_0x1caa5c(0x4f7)]['_call']('pipelines',this[_0x1caa5c(0x305)],_0x4391e7,_0x3127d5,_0xfe536);}[_0x3718ee(0x577)](_0x490ef1,_0x51329c){const _0x341ca3=_0x3718ee;return this[_0x341ca3(0x4f7)][_0x341ca3(0x67a)](_0x341ca3(0x3ca),this['envName'],_0x490ef1,_0x51329c,!![]);}get['isCoordinator'](){const _0x18a3a4=_0x3718ee;return this[_0x18a3a4(0x305)]===null;}async['ensure'](_0x21219b){const _0x4d3db7=_0x3718ee;return this['_n'](_0x4d3db7(0x51b),[_0x21219b]);}async[_0x3718ee(0x6ce)](_0x161575,_0x5bbaa4){return this['_n']('get',[_0x161575,_0x5bbaa4??null],![]);}async[_0x3718ee(0x875)](_0x84f321,_0x466dff){const _0x115cb3=_0x3718ee;return this['_n'](_0x115cb3(0x875),[_0x84f321,_0x466dff??null],![]);}async[_0x3718ee(0x6ec)](_0x563607){const _0x519ea6=_0x3718ee;return this['_n'](_0x519ea6(0x6ec),[_0x563607??null],![]);}async['listRecords'](_0x4dad2b={}){const _0x479682=_0x3718ee;return this['_n'](_0x479682(0x4fc),[_0x4dad2b?.[_0x479682(0x305)]??null],![]);}['validate'](_0x1a1cae,_0x19c93b){const _0x337436=_0x3718ee;return this['_n'](_0x337436(0x83e),[_0x1a1cae,_0x19c93b??null],![]);}async[_0x3718ee(0x569)](_0x45c56a){const _0x5e38f8=_0x3718ee;return this[_0x5e38f8(0x577)](_0x5e38f8(0x569),[_0x45c56a]);}async[_0x3718ee(0x1a2)](_0xcb247a,_0x359cf3){const _0x278cf0=_0x3718ee;return this[_0x278cf0(0x577)](_0x278cf0(0x1a2),[_0xcb247a,_0x359cf3]);}async['stop'](_0xeae818){const _0x175ac1=_0x3718ee;return this[_0x175ac1(0x577)](_0x175ac1(0x32a),[_0xeae818]);}async[_0x3718ee(0x654)](_0x1c6f8a){const _0x495815=_0x3718ee;if(!_0x1c6f8a||typeof _0x1c6f8a!==_0x495815(0x712)||!_0x1c6f8a[_0x495815(0x425)]||!_0x1c6f8a[_0x495815(0x617)])return _0x1c6f8a;for(let _0x1a94fa=0x0;_0x1a94fa<0x3;_0x1a94fa++)await new Promise(_0x58a2a8=>setImmediate(_0x58a2a8));try{const _0x4925e9=this['envName']!==null?await this['get'](_0x1c6f8a[_0x495815(0x425)]):_0x1c6f8a[_0x495815(0x784)]?await this['get'](_0x1c6f8a['env'],_0x1c6f8a[_0x495815(0x425)]):null;return _0x4925e9||_0x1c6f8a;}catch{return _0x1c6f8a;}}async[_0x3718ee(0x4df)](_0x1619a8){const _0x31e1d7=_0x3718ee;return this[_0x31e1d7(0x654)](await this[_0x31e1d7(0x577)](_0x31e1d7(0x4df),[_0x1619a8]));}async[_0x3718ee(0x17a)](_0x1a410e){const _0x2a0ea5=_0x3718ee;return this[_0x2a0ea5(0x654)](await this[_0x2a0ea5(0x577)](_0x2a0ea5(0x17a),[_0x1a410e]));}async['rebuild'](_0xe3af1b){const _0xf31dc2=_0x3718ee;return this[_0xf31dc2(0x577)](_0xf31dc2(0x247),[_0xe3af1b]);}async['replaceMember'](_0x46a796,_0x604467,_0x2af3a7){const _0x43e93b=_0x3718ee;return this[_0x43e93b(0x577)](_0x43e93b(0x4c1),[_0x46a796,_0x604467,_0x2af3a7]);}async[_0x3718ee(0x78e)](_0x39c90f){const _0x1dae5f=_0x3718ee;return this[_0x1dae5f(0x577)](_0x1dae5f(0x78e),[_0x39c90f]);}async['stopAll'](){const _0x72569e=_0x3718ee;return this[_0x72569e(0x577)]('stopAll',[]);}async[_0x3718ee(0x6f4)](){const _0x104ab7=_0x3718ee;return this[_0x104ab7(0x577)]('bootSyncedPipelines',[]);}['findOwner'](_0x43317f,_0x49f795){const _0x272718=_0x3718ee;return this['_n'](_0x272718(0x388),[_0x43317f,_0x49f795],![]);}}return engines={'OKDBEngines':_0x505bf3,'OKDBPipelines':_0x483778,'OKDBEngineHandle':_0x16d4e3},engines;}var functions,hasRequiredFunctions;function requireFunctions(){const _0x5951c7=_0x2d5353;if(hasRequiredFunctions)return functions;hasRequiredFunctions=0x1;const {optionsArg:_0xf9a428}=requireErrors(),_0x188c6e=Number(process.env.OKDB_FN_POLL_MS)||0x14;class _0x55d3c7{constructor(_0x33d5d6,_0x44cead=null){const _0x182827=_0x36a2;this[_0x182827(0x4f7)]=_0x33d5d6,this[_0x182827(0x305)]=_0x44cead??_0x182827(0x5f7);}get['env'](){const _0x11fd17=_0x36a2;return this['okdb'][_0x11fd17(0x3e2)][_0x11fd17(0x6ce)](this[_0x11fd17(0x305)])??null;}['_n'](_0x11c647,_0x391d33=[],_0x333aaf=!![]){const _0x1748bd=_0x36a2;try{return this[_0x1748bd(0x4f7)]['_call'](_0x1748bd(0x792),this[_0x1748bd(0x305)],_0x11c647,_0x391d33,_0x333aaf);}catch(_0x1d0dff){throw _0xa18e09(_0x1d0dff);}}async['_nm'](_0x3e83ea,_0xe666cc=[]){const _0xb39b26=_0x36a2;try{return await this[_0xb39b26(0x4f7)]['_callMacro'](_0xb39b26(0x792),this[_0xb39b26(0x305)],_0x3e83ea,_0xe666cc,!![]);}catch(_0xea3181){throw _0xa18e09(_0xea3181);}}async[_0x5951c7(0x6ec)](){return this['_n']('list',[],![]);}async[_0x5951c7(0x6ce)](_0x230c5e){const _0x456a16=_0x5951c7;return this['_n'](_0x456a16(0x6ce),[_0x230c5e],![]);}async[_0x5951c7(0x569)](_0x26d017){const _0x260665=_0x5951c7;return this['_n'](_0x260665(0x569),[_0x26d017]);}async[_0x5951c7(0x1a2)](_0x2c2084,_0x47d179={}){const _0x1f8130=_0x5951c7;return this['_n'](_0x1f8130(0x1a2),[_0x2c2084,_0x47d179]);}async[_0x5951c7(0x78e)](_0x46f3eb){return this['_n']('remove',[_0x46f3eb]);}async[_0x5951c7(0x36d)](_0xd33d32){const _0x34818=_0x5951c7,{functionName:functionName=null}=_0xf9a428(_0xd33d32);return this['_n'](_0x34818(0x36d),[{'functionName':functionName}],![]);}async['getRun'](_0x2201fe){const _0x5e653e=_0x5951c7;return this['_n'](_0x5e653e(0x1bf),[_0x2201fe],![]);}async['recordRun'](_0x46e6a6){const _0x3b70ec=_0x5951c7;return _0x46e6a6=_0xf9a428(_0x46e6a6,_0x3b70ec(0x269)),this['_n'](_0x3b70ec(0x5af),[_0x46e6a6]);}async[_0x5951c7(0x269)](_0x31f16b,_0x335043=null,_0x55c154={}){const _0x5dd076=_0x5951c7,_0x157c79={..._0x55c154},_0x2182eb=_0x157c79[_0x5dd076(0x1cc)];if(_0x2182eb)_0x157c79[_0x5dd076(0x550)]=!!_0x2182eb[_0x5dd076(0x550)];delete _0x157c79[_0x5dd076(0x1cc)];const _0x4cf7ff=await this[_0x5dd076(0x577)](_0x5dd076(0x1c0),[_0x31f16b,_0x335043,_0x157c79]),_0x14072a=this[_0x5dd076(0x4f7)],_0x7a05c6=()=>_0x14072a[_0x5dd076(0x176)]['wake']();if(_0x2182eb&&typeof _0x2182eb[_0x5dd076(0x30a)]===_0x5dd076(0x3b3))_0x2182eb['addEventListener'](_0x5dd076(0x2bc),_0x7a05c6,{'once':!![]});let _0x53b1c8=![];try{for(;;){const _0xc627a3=_0x14072a['_pumper'][_0x5dd076(0x7f9)](_0x188c6e);let _0x469003;try{_0x469003=await _0x14072a[_0x5dd076(0x67a)](_0x5dd076(0x792),this['envName'],_0x5dd076(0x7bd),[_0x4cf7ff,!!_0x2182eb?.['aborted']],![],![]);}catch(_0x3df1e9){_0x53b1c8=!![];throw _0xa18e09(_0x3df1e9);}if(!_0x469003||_0x469003[_0x5dd076(0x3bb)]!==!![])return _0x53b1c8=!![],_0x14072a[_0x5dd076(0x176)]['wake'](),_0x469003;if(_0x469003['progressed'])_0x14072a[_0x5dd076(0x176)][_0x5dd076(0x42a)]();await _0xc627a3;}}finally{if(_0x2182eb&&typeof _0x2182eb[_0x5dd076(0x724)]==='function')_0x2182eb['removeEventListener'](_0x5dd076(0x2bc),_0x7a05c6);if(!_0x53b1c8)try{_0x14072a[_0x5dd076(0x24a)]('functions',this['envName'],_0x5dd076(0x52d),[_0x4cf7ff],![]);}catch{}}}async[_0x5951c7(0x73d)](_0x2d7e6f={},_0x4ba965=null,_0x59ce1a={}){const _0x3d17db=_0x5951c7;return this[_0x3d17db(0x577)](_0x3d17db(0x73d),[_0x2d7e6f,_0x4ba965,_0x59ce1a]);}async['stop'](){}}function _0xa18e09(_0x3c218c){const _0x26a46f=_0x5951c7;if(_0x3c218c&&_0x3c218c['details']&&_0x3c218c[_0x26a46f(0x433)][_0x26a46f(0x146)])_0x3c218c['_runRecord']=_0x3c218c[_0x26a46f(0x433)]['runRecord'];return _0x3c218c;}return functions={'OKDBFunctions':_0x55d3c7},functions;}var processor={'exports':{}},lock,hasRequiredLock;function requireLock(){const _0x1a47a1=_0x2d5353;if(hasRequiredLock)return lock;hasRequiredLock=0x1;const {optionsArg:_0x46863a}=requireErrors();class _0xb9d07b{constructor(_0x4d54f3,_0x135cec){const _0x2a492=_0x36a2;this[_0x2a492(0x190)]=_0x4d54f3,this[_0x2a492(0x23e)]=_0x135cec;}['_n'](_0x26140d,_0x54384c=[]){const _0x32928e=_0x36a2;return this[_0x32928e(0x190)]['_n'](_0x26140d,[this[_0x32928e(0x23e)],..._0x54384c]);}['isHeld'](){const _0x43a638=_0x36a2;return this['_n'](_0x43a638(0x6f2));}get[_0x1a47a1(0x255)](){const _0x5c917b=_0x1a47a1;return this['_n'](_0x5c917b(0x255));}[_0x1a47a1(0x4e2)](){return this['_n']('holder');}[_0x1a47a1(0x35f)](_0x46dd62){const _0x41fe15=_0x1a47a1;return this['_n'](_0x41fe15(0x35f),[_0x46dd62]);}async[_0x1a47a1(0x7fb)](){return this['_n']('release');}}class _0x440408{constructor(_0x4d2602,_0x577ae7,_0xaaed20,_0x24c5c0){const _0x16fb74=_0x1a47a1,{ttlMs:ttlMs=0x7530,heartbeatMs:heartbeatMs=null}=_0x46863a(_0x24c5c0);this[_0x16fb74(0x4f7)]=_0x4d2602,this[_0x16fb74(0x542)]=_0xaaed20,this[_0x16fb74(0x23e)]=_0x4d2602['_call']('lock',_0x577ae7,_0x16fb74(0x223),[_0xaaed20,ttlMs,heartbeatMs],![]),this[_0x16fb74(0x76b)]=_0x577ae7;}['_n'](_0x3f1748,_0x3122a1=[]){const _0x4a7ca4=_0x1a47a1;return this['okdb']['_call'](_0x4a7ca4(0x58c),this[_0x4a7ca4(0x76b)],_0x3f1748,_0x3122a1,![]);}['_key'](_0x233c9b){const _0x56c9a0=_0x1a47a1;return this['_n'](_0x56c9a0(0x5c0),[this[_0x56c9a0(0x23e)],_0x233c9b]);}async[_0x1a47a1(0x6af)](_0xc18d2c,_0x5b93d0={},_0x3e0727={}){const _0x282748=_0x1a47a1,_0x4553ee=this['_n'](_0x282748(0x6af),[this[_0x282748(0x23e)],_0xc18d2c,_0x5b93d0,_0x3e0727]);return{'acquired':_0x4553ee['acquired'],'handle':_0x4553ee['handle']==null?null:new _0xb9d07b(this,_0x4553ee[_0x282748(0x398)]),'current':_0x4553ee[_0x282748(0x2a1)]};}['inspect'](_0x26514f){const _0x2b7789=_0x1a47a1;return this['_n']('inspect',[this[_0x2b7789(0x23e)],_0x26514f]);}[_0x1a47a1(0x6ec)](){const _0x3b0dfb=_0x1a47a1;return this['_n']('list',[this[_0x3b0dfb(0x23e)]]);}[_0x1a47a1(0x490)](_0xbb225d){const _0x4bd14d=_0x1a47a1;return this['_n'](_0x4bd14d(0x490),[this['_id'],_0xbb225d]);}['isWanted'](_0x184fc8,_0x1240d7=0x3e8){const _0x545d46=_0x1a47a1;return this['_n']('isWanted',[this[_0x545d46(0x23e)],_0x184fc8,_0x1240d7]);}}return lock={'NativeLock':_0x440408,'NativeLockHandle':_0xb9d07b},lock;}var hasRequiredProcessor;function requireProcessor(){const _0x2398e9=_0x2d5353;if(hasRequiredProcessor)return processor[_0x2398e9(0x613)];hasRequiredProcessor=0x1;const _0x36978e=requireBridge(),{RawDb:_0x10a31f}=requireRawdb(),{NativeLock:_0x4d0220}=requireLock();function _0x464018(_0x24b9c6){}class _0x59442e{constructor(_0x465505){const _0x5e74a2=_0x2398e9;this[_0x5e74a2(0x784)]=_0x465505,this['okdb']=_0x465505;try{this['_n'](_0x5e74a2(0x16e),[(_0x2dfd8d,_0x85235a)=>{const _0x302b7b=_0x5e74a2,_0x1a5f89=this[_0x302b7b(0x4f7)][_0x302b7b(0x71e)],_0x1fac06=_0x1a5f89?.[_0x2dfd8d]??_0x1a5f89?.['info'];if(typeof _0x1fac06===_0x302b7b(0x3b3))_0x1fac06['call'](_0x1a5f89,_0x85235a);}],![]);}catch{}}['_n'](_0x85c437,_0x572a8b,_0x193487=!![]){const _0x240f5a=_0x2398e9;return this[_0x240f5a(0x784)][_0x240f5a(0x4f7)][_0x240f5a(0x24a)](_0x240f5a(0x171),this['env'][_0x240f5a(0x425)],_0x85c437,_0x572a8b,_0x193487);}[_0x2398e9(0x82d)](_0x48a64a,_0x1eba14={}){const _0x399750=_0x2398e9,_0x294f4c={..._0x1eba14};if(typeof _0x294f4c['handler']===_0x399750(0x3b3)&&_0x294f4c[_0x399750(0x455)]!=null)throw new Error(_0x399750(0x563)+_0x399750(0x85e));if(typeof _0x294f4c['handler']===_0x399750(0x84a)&&_0x294f4c['module']!=null)throw new Error('processor:\x20specify\x20exactly\x20one\x20of\x20handler:\x27<name>\x27\x20or\x20module:{path,export},\x20not\x20both');if(_0x294f4c[_0x399750(0x455)]!=null){if(!_0x294f4c[_0x399750(0x455)][_0x399750(0x733)])throw new Error(_0x399750(0x691));const _0x55438e=_0x294f4c[_0x399750(0x455)][_0x399750(0x5bc)]??_0x294f4c[_0x399750(0x455)][_0x399750(0x6d9)]??'process',_0x16b1f9=require[_0x399750(0x794)](_0x294f4c[_0x399750(0x455)][_0x399750(0x733)]),_0x2a97c8=require(_0x16b1f9),_0x181ff2=_0x2a97c8[_0x55438e]??_0x2a97c8['default']??_0x2a97c8;if(typeof _0x181ff2!==_0x399750(0x3b3))throw new Error('processor:\x20module\x20\x27'+_0x294f4c[_0x399750(0x455)][_0x399750(0x733)]+_0x399750(0x384)+_0x55438e+_0x399750(0x673));this[_0x399750(0x784)][_0x399750(0x4f7)]['_staticCall'](_0x399750(0x171),_0x399750(0x1dd),[_0x16b1f9,_0x55438e,_0x181ff2]),_0x294f4c[_0x399750(0x455)]={'path':_0x16b1f9,'export':_0x55438e};}if(_0x294f4c[_0x399750(0x86b)]!=null){if(typeof _0x294f4c[_0x399750(0x86b)][_0x399750(0x455)]!==_0x399750(0x84a))throw new Error(_0x399750(0x224));const _0x5f1f5d=require[_0x399750(0x794)](_0x294f4c['quantum'][_0x399750(0x455)]),_0x1bb03a=require(_0x5f1f5d),_0x3de5ca=_0x294f4c['quantum']['exportName'],_0x38ef1e=_0x3de5ca?_0x1bb03a[_0x3de5ca]:_0x1bb03a[_0x399750(0x634)]??_0x1bb03a;if(typeof _0x38ef1e===_0x399750(0x3b3)){const _0x25da34=_0x3de5ca?_0x294f4c[_0x399750(0x86b)][_0x399750(0x455)]+'#'+_0x3de5ca:_0x294f4c[_0x399750(0x86b)][_0x399750(0x455)];this[_0x399750(0x784)][_0x399750(0x4f7)][_0x399750(0x701)](_0x399750(0x171),_0x399750(0x51e),[_0x25da34,_0x38ef1e]);}_0x294f4c[_0x399750(0x86b)]={..._0x294f4c[_0x399750(0x86b)]};}_0x294f4c[_0x399750(0x172)]!=null&&typeof _0x294f4c[_0x399750(0x172)]===_0x399750(0x712)&&(_0x294f4c[_0x399750(0x172)]={'$payload':_0x36978e[_0x399750(0x723)](_0x294f4c[_0x399750(0x172)],this[_0x399750(0x784)][_0x399750(0x4f7)])});if(_0x294f4c[_0x399750(0x247)]!=null&&typeof _0x294f4c[_0x399750(0x247)]!==_0x399750(0x3b3))throw new Error(_0x399750(0x265));const _0x4692ef=this['_n']('register',[_0x48a64a??null,_0x294f4c]);return this[_0x399750(0x7ba)](_0x4692ef['id'],_0x4692ef[_0x399750(0x52c)]);}[_0x2398e9(0x7ba)](_0x33ac77,_0x4e3530){const _0x56c7d=_0x2398e9,_0x39fdf8=this,_0x18c8d5=async()=>{const _0xd053c3=_0x36a2;_0x39fdf8['_n'](_0xd053c3(0x6bb),[_0x33ac77]);};return _0x18c8d5['id']=_0x33ac77,_0x18c8d5[_0x56c7d(0x52c)]=_0x4e3530,_0x18c8d5[_0x56c7d(0x63a)]=()=>_0x4e3530?_0x39fdf8['_n'](_0x56c7d(0x3e3),[_0x33ac77],![]):0x0,_0x18c8d5[_0x56c7d(0x2e4)]=()=>_0x39fdf8[_0x56c7d(0x6ce)](_0x33ac77),_0x18c8d5[_0x56c7d(0x782)]=_0x18c8d5['status'],_0x18c8d5[_0x56c7d(0x689)]=()=>_0x39fdf8['pause'](_0x33ac77),_0x18c8d5['resume']=()=>_0x39fdf8[_0x56c7d(0x506)](_0x33ac77),_0x18c8d5[_0x56c7d(0x6bd)]=()=>_0x39fdf8['kick'](_0x33ac77),_0x18c8d5[_0x56c7d(0x855)]=()=>_0x39fdf8[_0x56c7d(0x855)](_0x33ac77),_0x18c8d5[_0x56c7d(0x194)]=_0x47699b=>_0x39fdf8[_0x56c7d(0x194)](_0x33ac77,_0x47699b),_0x18c8d5;}get[_0x2398e9(0x80c)](){try{return this['_n']('list',[],![])['map'](_0x2cade6=>({'id':_0x2cade6['id']}));}catch{return[];}}async[_0x2398e9(0x40e)](_0x4b46b0){return new Set(this['_n']('pauseAllAndDrain',[]));}[_0x2398e9(0x763)](_0x240b03){const _0x1f2d20=_0x2398e9;return this['_n'](_0x1f2d20(0x763),[[..._0x240b03??[]]]);}get['_envWide'](){const _0x5b5bec=_0x2398e9;return new Set(this['_n'](_0x5b5bec(0x6ec),[],![])[_0x5b5bec(0x440)](_0x2ab088=>_0x2ab088[_0x5b5bec(0x2d0)]==null)[_0x5b5bec(0x4e8)](_0xdd82d0=>_0xdd82d0['id']));}[_0x2398e9(0x31f)](){}get[_0x2398e9(0x190)](){const _0x554aef=_0x2398e9;if(!this[_0x554aef(0x62c)]){const _0x1e2527=new _0x4d0220(this[_0x554aef(0x784)][_0x554aef(0x4f7)],this['env'][_0x554aef(0x425)],_0x554aef(0x171)),_0x391823=this[_0x554aef(0x784)];_0x1e2527['_db']=()=>new _0x10a31f(_0x391823,_0x554aef(0x7c3)),this[_0x554aef(0x62c)]=_0x1e2527;}return this['__lock'];}[_0x2398e9(0x292)](_0x45a5b4,_0x18d2d9){const _0x5e129f=_0x2398e9;return this['_n']('fail',[typeof _0x45a5b4===_0x5e129f(0x84a)?_0x45a5b4:_0x45a5b4['id'],_0x18d2d9?.[_0x5e129f(0x367)]??String(_0x18d2d9??'')]);}get['_stateDb'](){const _0x369776=_0x2398e9;return this[_0x369776(0x24f)]||(this[_0x369776(0x24f)]=new _0x10a31f(this['env'],'~proc:state'));}get[_0x2398e9(0x207)](){const _0x48f701=_0x2398e9,_0x48e528=this,_0x364437=_0x2f4635=>{const _0xe383c2=_0x36a2,_0x161789=()=>_0x48e528['_n']('regInfo',[_0x2f4635],![]);if(!_0x161789())return undefined;const _0x2acb5c=_0x492321=>()=>_0x161789()?.[_0x492321],_0x2c5b0e={'id':_0x2f4635},_0x43730a=(_0x1e7853,_0x137512,_0x3243b0)=>Object[_0xe383c2(0x2ad)](_0x2c5b0e,_0x1e7853,{'get':_0x137512,'set':_0x3243b0,'enumerable':!![],'configurable':!![]});return _0x43730a(_0xe383c2(0x76c),_0x2acb5c('state')),_0x43730a(_0xe383c2(0x82b),_0x2acb5c('mode')),_0x43730a(_0xe383c2(0x1ae),_0x2acb5c(_0xe383c2(0x1ae))),_0x43730a(_0xe383c2(0x4b9),_0x2acb5c(_0xe383c2(0x4b9)),_0x2ee8ec=>_0x48e528['_n'](_0xe383c2(0x7c0),[_0x2f4635,_0x2ee8ec])),_0x43730a(_0xe383c2(0x52c),_0x2acb5c(_0xe383c2(0x52c))),_0x43730a(_0xe383c2(0x499),_0x2acb5c(_0xe383c2(0x4ef)),_0x226fd4=>_0x48e528['_n']('setClaimGated',[_0x2f4635,!!_0x226fd4])),_0x43730a(_0xe383c2(0x7ae),_0x2acb5c(_0xe383c2(0x70d))),_0x43730a(_0xe383c2(0x275),_0x2acb5c(_0xe383c2(0x275))),_0x43730a(_0xe383c2(0x2eb),_0x2acb5c('drainDeadlineMs')),_0x43730a(_0xe383c2(0x64a),_0x2acb5c(_0xe383c2(0x7ed)),_0x148dfd=>_0x48e528['_n'](_0xe383c2(0x290),[_0x2f4635,_0x148dfd])),_0x43730a(_0xe383c2(0x360),()=>_0x48e528[_0xe383c2(0x6ce)](_0x2f4635)?.[_0xe383c2(0x360)]),_0x43730a('_lockHandle',()=>_0x161789()?.[_0xe383c2(0x648)]?{'isHeld':()=>!!_0x161789()?.[_0xe383c2(0x648)]}:null),_0x43730a(_0xe383c2(0x446),()=>_0x161789()?.['pokeHandler']?()=>{}:null),_0x43730a(_0xe383c2(0x12d),()=>_0x161789()?.[_0xe383c2(0x28e)]?{}:null),_0x43730a('_debounceTimer',()=>_0x161789()?.[_0xe383c2(0x734)]?{}:null),_0x2c5b0e;},_0x50b376=()=>_0x48e528['_n'](_0x48f701(0x6ec),[],![])[_0x48f701(0x4e8)](_0x3438a9=>_0x3438a9['id']);return{'get':_0x3e41e0=>_0x364437(_0x3e41e0),'has':_0x31ffd3=>_0x50b376()[_0x48f701(0x6f8)](_0x31ffd3),get 'size'(){return _0x50b376()['length'];},'keys':()=>_0x50b376()[Symbol[_0x48f701(0x1f2)]](),'values':()=>_0x50b376()[_0x48f701(0x4e8)](_0x364437)[Symbol[_0x48f701(0x1f2)]](),'entries':()=>_0x50b376()['map'](_0x1838ec=>[_0x1838ec,_0x364437(_0x1838ec)])[Symbol['iterator']](),[Symbol['iterator']]:()=>_0x50b376()['map'](_0x44720a=>[_0x44720a,_0x364437(_0x44720a)])[Symbol[_0x48f701(0x1f2)]](),'forEach':_0x5634e6=>_0x50b376()[_0x48f701(0x524)](_0x567a06=>_0x5634e6(_0x364437(_0x567a06),_0x567a06))};}async['stopAll'](){const _0x68e70c=_0x2398e9;return this['_n'](_0x68e70c(0x570),[]);}['list'](){const _0x256cc5=_0x2398e9,_0x394939=this['_n'](_0x256cc5(0x6ec),[],![]);if(!this[_0x256cc5(0x784)][_0x256cc5(0x425)]['startsWith']('~'))try{const _0x1282a3=this[_0x256cc5(0x784)][_0x256cc5(0x4f7)][_0x256cc5(0x360)];for(const _0x24e8df of _0x1282a3[_0x256cc5(0x1c7)](this[_0x256cc5(0x784)][_0x256cc5(0x425)])){for(const _0x573953 of _0x1282a3[_0x256cc5(0x581)](_0x24e8df,this['env'][_0x256cc5(0x425)])){const _0x20a941=_0x256cc5(0x84e)+_0x24e8df+':'+_0x573953;_0x394939[_0x256cc5(0x46d)]({'id':_0x20a941,'type':_0x24e8df,'mode':_0x256cc5(0x3a4),'state':'online','paused':![],'lag':0x0,'cursorKey':_0x20a941,'meta':{'name':_0x20a941}});}}}catch{}return _0x394939;}[_0x2398e9(0x62d)](){const _0x47e3d5=_0x2398e9;return this['_n'](_0x47e3d5(0x62d),[],![]);}[_0x2398e9(0x2ba)](){return this['_n']('durableTierLag',[],![]);}[_0x2398e9(0x59c)](){const _0x3795f8=_0x2398e9;return this['_n'](_0x3795f8(0x59c),[],![]);}[_0x2398e9(0x6ce)](_0x91793b){return this['_n']('get',[_0x91793b],![]);}[_0x2398e9(0x4b7)](_0x42df0e){const _0x155602=_0x2398e9;return this[_0x155602(0x6ce)](typeof _0x42df0e===_0x155602(0x84a)?_0x42df0e:_0x42df0e['id']);}[_0x2398e9(0x665)](_0x2ab6ff){const _0xa60bab=_0x2398e9;return this['_n'](_0xa60bab(0x665),[_0x2ab6ff],![]);}['resetCursor'](_0x41be47){return this['_n']('resetCursor',[_0x41be47]);}[_0x2398e9(0x380)](_0x9b34b1){const _0x31fbe8=_0x2398e9;return this['_n'](_0x31fbe8(0x380),[_0x9b34b1]);}[_0x2398e9(0x434)](_0x98f77d){return this['_n']('isSnapshotComplete',[_0x98f77d],![]);}[_0x2398e9(0x41b)](_0x2578d3,_0xe9dd5){const _0x4d139b=_0x2398e9;return this['_n'](_0x4d139b(0x41b),[_0x2578d3,_0xe9dd5]);}async[_0x2398e9(0x194)](_0x276e23,_0xfbfefc){const _0x3be276=_0x2398e9;return this['_n'](_0x3be276(0x194),[_0x276e23,_0xfbfefc??0x7530]);}[_0x2398e9(0x689)](_0xf2c3b){const _0x5aa24a=_0x2398e9;return this['_n'](_0x5aa24a(0x689),[_0xf2c3b]);}['resume'](_0x1644d6){return this['_n']('resume',[_0x1644d6]);}async[_0x2398e9(0x154)](_0x3bec03){return this['_n']('setClaiming',[_0x3bec03]);}[_0x2398e9(0x6bd)](_0x1693eb){const _0x13af5f=_0x2398e9;return this['_n'](_0x13af5f(0x6bd),[_0x1693eb]);}[_0x2398e9(0x855)](_0x1b2763){const _0x276717=_0x2398e9;return this['_n'](_0x276717(0x855),[_0x1b2763]);}[_0x2398e9(0x17a)](_0x2b932d,_0x3b6096={}){return this['_n']('restart',[_0x2b932d,_0x3b6096]);}async[_0x2398e9(0x149)](_0x294ff0,_0x42b36c,_0x1ffbc){const _0x784e09=_0x2398e9,[_0xa337fb,_0xb0d1bf]=this['_n'](_0x784e09(0x149),[_0x294ff0,_0x42b36c,_0x1ffbc]);return{'version':_0xa337fb,'flipClock':_0xb0d1bf};}async[_0x2398e9(0x3c1)](_0x1c276c,_0x5e3298,_0x522a10={}){const _0xbe4126=_0x2398e9;return this['_n'](_0xbe4126(0x3c1),[_0x1c276c,_0x5e3298,_0x522a10]);}}_0x59442e[_0x2398e9(0x625)]=function _0x1fdc3f(_0x5cb737,_0x2bb5f3){const _0x581624=_0x2398e9;if(typeof _0x5cb737!=='string'||!_0x5cb737)throw new Error(_0x581624(0x160));if(typeof _0x2bb5f3!==_0x581624(0x3b3))throw new Error(_0x581624(0x4b5));_0x1f46f0(_0x581624(0x171),_0x581624(0x625),[_0x5cb737,_0x2bb5f3]);},_0x59442e[_0x2398e9(0x51e)]=function _0x1b5188(_0x25eaca,_0x2b173a){const _0x8bda6f=_0x2398e9;if(typeof _0x25eaca!==_0x8bda6f(0x84a)||!_0x25eaca)throw new Error(_0x8bda6f(0x7e2));if(typeof _0x2b173a!=='function')throw new Error(_0x8bda6f(0x407));let _0x5eecb8=null;_0x1f46f0(_0x8bda6f(0x171),_0x8bda6f(0x51e),[_0x25eaca,(_0xb98c64,_0x3e0157)=>{if(!_0x5eecb8)_0x5eecb8=_0x2b173a();return _0x5eecb8(_0xb98c64,_0x3e0157);}]);},_0x59442e[_0x2398e9(0x652)]=_0x121952=>/closed|not open|released/i[_0x2398e9(0x728)](String(_0x121952)),_0x59442e[_0x2398e9(0x205)]=![];function _0x1f46f0(_0x373bb2,_0xb15e93,_0x521a18){const {staticCall:_0x262f95}=requireLib();return _0x262f95(_0x373bb2,_0xb15e93,_0x521a18);}return processor['exports']=_0x59442e,processor[_0x2398e9(0x613)][_0x2398e9(0x3c6)]=_0x59442e,processor[_0x2398e9(0x613)][_0x2398e9(0x4b8)]=_0x464018,processor[_0x2398e9(0x613)];}var okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x36b62a=_0x2d5353;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x443f87={'PUT':'put','REMOVE':_0x36b62a(0x78e),'INDEX_DROP':'dropIndex','INDEX_REGISTER':_0x36b62a(0x5cc),'INDEX_RESET':_0x36b62a(0x475),'TYPE_REGISTER':_0x36b62a(0x6c6),'TYPE_DROP':'dropType','FTS_REGISTER':_0x36b62a(0x4ff),'FTS_DROP':_0x36b62a(0x812),'FTS_RESET':_0x36b62a(0x685),'SCHEMA_SET':_0x36b62a(0x598),'SCHEMA_DROP':_0x36b62a(0x39b),'TTL_SET':_0x36b62a(0x408),'TTL_CLEAR':'clearTtl'},_0xaf58ab={'SYSTEM_READY':'system:ready','FIELD_RESOLVER_REGISTERED':_0x36b62a(0x3a0),'SYSTEM_STOPPED':'system:stopped','SYSTEM_CLOCK_CHANGE':_0x36b62a(0x390),'SYSTEM_POKE':_0x36b62a(0x338),'SYSTEM_DRAIN':'system:drain','SYSTEM_TYPE_DROP':_0x36b62a(0x21c),'SYSTEM_PROC':_0x36b62a(0x810),'SYSTEM_BUS_STATE_CHANGE':_0x36b62a(0x158),'ITEM_CREATE':_0x36b62a(0x64c),'ITEM_UPDATE':'item:update','ITEM_REMOVE':'item:remove','ITEM_PENDING':_0x36b62a(0x5e6),'INDEX_RESET':_0x36b62a(0x312),'INDEX_READY':'index:ready','INDEX_PROGRESS':_0x36b62a(0x4dc),'VIEW_PROGRESS':_0x36b62a(0x69f),'INDEX_DROP':'index:drop','INDEX_REGISTERED':_0x36b62a(0x5e1),'FTS_REGISTERED':_0x36b62a(0x511),'FTS_DROP':_0x36b62a(0x25d),'FTS_RESET':_0x36b62a(0x2f9),'SCHEMA_SET':_0x36b62a(0x37c),'SCHEMA_DROP':_0x36b62a(0x336),'UNIQUE_VIOLATION':'unique:violation','UNIQUE_VIOLATION_RESOLVED':_0x36b62a(0x66b),'REF_VIOLATION':_0x36b62a(0x614),'REF_VIOLATION_RESOLVED':_0x36b62a(0x45a),'SYNC_APPLY':_0x36b62a(0x760),'TXN_START':_0x36b62a(0x20b),'TXN_END':_0x36b62a(0x6e6),'TXN_ROLLBACK':_0x36b62a(0x70b),'TYPE_REGISTERED':_0x36b62a(0x2f4),'TYPE_DROP':_0x36b62a(0x4dd),'ENV_OPENED':_0x36b62a(0x1e4),'ENV_REMOVED':_0x36b62a(0x748),'SYSTEM_ENV_RELEASE':_0x36b62a(0x3f3),'TTL_EXPIRED':_0x36b62a(0x686),'TTL_SET':_0x36b62a(0x870),'TTL_CLEAR':'ttl:clear','LICENSE_INVALID':_0x36b62a(0x37e),'LICENSE_ADDED':_0x36b62a(0x3c8),'LICENSE_ACTIVATED':'license:activated','LICENSE_REMOVED':_0x36b62a(0x830)},_0x4aa940={'CREATING':_0x36b62a(0x169),'RESETTING':'resetting','READY':_0x36b62a(0x2bf),'DROPPING':_0x36b62a(0x522),'WAITING':_0x36b62a(0x66c),'ERROR':'error'},_0x9bc5f6={'CREATED':_0x36b62a(0x236),'STARTING':_0x36b62a(0x6e8),'STARTED':_0x36b62a(0x344),'STOPPING':'stopping','STOPPED':'stopped'},_0x248f29={'CREATING':_0x36b62a(0x169),'READY':_0x36b62a(0x2bf),'HALTED':_0x36b62a(0x3b5),'STOPPED':_0x36b62a(0x6da),'RESETTING':_0x36b62a(0x44c)},_0x139637=Object[_0x36b62a(0x1c4)]({'POKE':_0x36b62a(0x393),'DRAIN':_0x36b62a(0x5cd),'TYPE_DROP':'bus:type_drop','PROC':_0x36b62a(0x5de),'ENV_RELEASE':_0x36b62a(0x308)});return okdbEnums={'BUS_EVENTS':_0x139637,'CHANGE_ACTIONS':_0x443f87,'EVENTS':_0xaf58ab,'INDEX_STATE':_0x4aa940,'OKDB_STATE':_0x9bc5f6,'VIEW_STATE':_0x248f29},okdbEnums;}var okdbGuardedRange,hasRequiredOkdbGuardedRange;function requireOkdbGuardedRange(){const _0x42ec9b=_0x2d5353;if(hasRequiredOkdbGuardedRange)return okdbGuardedRange;hasRequiredOkdbGuardedRange=0x1;const _0x5c5e00={'SKIP':Symbol['for'](_0x42ec9b(0x48f))},{OKDBError:_0x4c861e}=requireOkdbError(),_0x21fcb8={'value':null,'done':!![]};class _0x539dd8{constructor(_0x55be05){const _0x39297e=_0x42ec9b;this[_0x39297e(0x459)]=_0x55be05;}get[_0x42ec9b(0x21f)](){return _0x21fcb8;}[Symbol[_0x42ec9b(0x1f2)]](){const _0x3ca340=_0x42ec9b;return this[_0x3ca340(0x459)]();}[_0x42ec9b(0x4e8)](_0x3860c6){const _0xc1030c=this;return new _0x539dd8(()=>{const _0x43fa7b=_0x36a2,_0xad27b6=_0xc1030c[Symbol['iterator']]();return{'next'(){const _0x52e8d5=_0x36a2;for(;;){const _0x57f151=_0xad27b6['next']();if(_0x57f151[_0x52e8d5(0x5f1)])return{'done':!![],'value':undefined};const _0xa56b68=_0x3860c6(_0x57f151[_0x52e8d5(0x821)]);if(_0xa56b68===_0x5c5e00[_0x52e8d5(0x337)])continue;if(_0xa56b68===_0x21fcb8)return _0xad27b6[_0x52e8d5(0x700)]?.(),{'done':!![],'value':undefined};return{'done':![],'value':_0xa56b68};}},'return'(){const _0x3c6901=_0x36a2;return _0xad27b6[_0x3c6901(0x700)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x43fa7b(0x1f2)]](){return this;}};});}['filter'](_0xb2205d){return this['map'](_0x2e8400=>_0xb2205d(_0x2e8400)?_0x2e8400:_0x5c5e00['SKIP']);}[_0x42ec9b(0x524)](_0x24c0d7){for(const _0x19048d of this)_0x24c0d7(_0x19048d);}['slice'](_0x494bba=0x0,_0x433324=Infinity){const _0x3132e8=this;return new _0x539dd8(()=>{const _0x30f4b1=_0x36a2,_0xed47a=_0x3132e8[Symbol['iterator']]();let _0x1800f7=0x0;return{'next'(){const _0x5eb2c3=_0x36a2;for(;;){const _0x113a0f=_0xed47a[_0x5eb2c3(0x730)]();if(_0x113a0f[_0x5eb2c3(0x5f1)])return{'done':!![],'value':undefined};const _0x43510b=_0x1800f7++;if(_0x43510b<_0x494bba)continue;if(_0x43510b>=_0x433324)return _0xed47a['return']?.(),{'done':!![],'value':undefined};return _0x113a0f;}},'return'(){const _0x187c8a=_0x36a2;return _0xed47a[_0x187c8a(0x700)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x30f4b1(0x1f2)]](){return this;}};});}['at'](_0x430771){let _0x18c6d6=0x0;for(const _0x103d9e of this)if(_0x18c6d6++===_0x430771)return _0x103d9e;return undefined;}[_0x42ec9b(0x661)](_0x5c649f){const _0x33dd41=this;return new _0x539dd8(()=>{const _0x46213c=_0x36a2,_0x394ac8=_0x33dd41[Symbol[_0x46213c(0x1f2)]]();let _0x1d6033=[];return{'next'(){const _0x425462=_0x46213c;for(;;){if(_0x1d6033[_0x425462(0x192)])return{'done':![],'value':_0x1d6033[_0x425462(0x356)]()};const _0x6a4f54=_0x394ac8[_0x425462(0x730)]();if(_0x6a4f54[_0x425462(0x5f1)])return{'done':!![],'value':undefined};const _0x54a8a3=_0x5c649f(_0x6a4f54[_0x425462(0x821)]);if(Array[_0x425462(0x7e3)](_0x54a8a3))_0x1d6033=_0x1d6033[_0x425462(0x557)](_0x54a8a3);else{if(_0x54a8a3!=null&&(_0x54a8a3 instanceof _0x539dd8||typeof _0x54a8a3[Symbol[_0x425462(0x1f2)]]===_0x425462(0x3b3)&&_0x425462(0x6ca)in _0x54a8a3))_0x1d6033=_0x1d6033['concat'](Array[_0x425462(0x3ed)](_0x54a8a3));else{if(_0x54a8a3!==_0x5c5e00[_0x425462(0x337)])return{'done':![],'value':_0x54a8a3};}}}},'return'(){return _0x394ac8['return']?.(),{'done':!![],'value':undefined};},[Symbol[_0x46213c(0x1f2)]](){return this;}};});}[_0x42ec9b(0x557)](_0x770869){const _0x54d301=this;return new _0x539dd8(()=>{let _0x33439b=_0x54d301[Symbol['iterator']](),_0x24d768=![];return{'next'(){const _0x23d49c=_0x36a2;for(;;){const _0x20f201=_0x33439b[_0x23d49c(0x730)]();if(!_0x20f201[_0x23d49c(0x5f1)])return _0x20f201;if(_0x24d768)return{'done':!![],'value':undefined};_0x24d768=!![],_0x33439b=_0x770869[Symbol[_0x23d49c(0x1f2)]]();}},'return'(){return _0x33439b['return']?.(),{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}[_0x42ec9b(0x65d)](_0x58f0b6){const _0x29fd55=this;return new _0x539dd8(()=>{const _0x3ec7f3=_0x36a2,_0x3b3c34=_0x29fd55[Symbol['iterator']]();return{'next'(){const _0x555486=_0x36a2;for(;;){try{return _0x3b3c34[_0x555486(0x730)]();}catch(_0x248c45){const _0x336538=_0x58f0b6(_0x248c45);if(_0x336538===_0x5c5e00[_0x555486(0x337)]||_0x336538===undefined)continue;return{'done':![],'value':_0x336538};}}},'return'(){const _0x32b280=_0x36a2;return _0x3b3c34[_0x32b280(0x700)]?.(),{'done':!![],'value':undefined};},[Symbol[_0x3ec7f3(0x1f2)]](){return this;}};});}[_0x42ec9b(0x2d3)](){const _0x3670c1=_0x42ec9b;return Array[_0x3670c1(0x3ed)](this);}get[_0x42ec9b(0x6ca)](){const _0x123156=_0x42ec9b;return Array[_0x123156(0x3ed)](this);}}const _0x4a0d37={'total':0x0,'byLabel':{},'last':null};function _0x465f82(_0x5eeedb){const _0x3c0336=_0x42ec9b;_0x4a0d37[_0x3c0336(0x4ea)]++;if(_0x5eeedb)_0x4a0d37['byLabel'][_0x5eeedb]=(_0x4a0d37['byLabel'][_0x5eeedb]??0x0)+0x1;_0x4a0d37[_0x3c0336(0x582)]={'label':_0x5eeedb??null,'at':Date['now']()};}function _0x494b4a(){const _0xc5fc78=_0x42ec9b;return{'total':_0x4a0d37[_0xc5fc78(0x4ea)],'byLabel':{..._0x4a0d37[_0xc5fc78(0x422)]},'last':_0x4a0d37['last']};}function _0x810f43(_0x2b333d,_0x1c4c6e={}){const {getTxnId:_0x373e66,resume:_0x332f07,label:_0x143ed7,baseline:_0x3fc309}=_0x1c4c6e;return new _0x539dd8(()=>{let _0x2f6860=null,_0x3fca7d=![],_0x3f7852=![],_0x51b39e=![],_0x7885ce,_0xffe040=0x0,_0x2dec76;return{'next'(){const _0x57d1bb=_0x36a2;if(_0x51b39e)return{'done':!![],'value':undefined};if(_0x3f7852){let _0x39d5e4=![];if(_0x332f07&&_0x373e66)try{_0x39d5e4=_0x373e66()===_0x2dec76;}catch{}if(!_0x39d5e4){_0x51b39e=!![],_0x465f82(_0x143ed7);throw new _0x4c861e(_0x332f07?'pinned\x20range\x20iterator\x20parked\x20across\x20an\x20await/turn\x20boundary\x20and\x20the\x20env\x20was\x20written\x20'+_0x57d1bb(0x604)+_0x57d1bb(0x58e):_0x57d1bb(0x323)+_0x57d1bb(0x32f)+_0x57d1bb(0x62a),_0x57d1bb(0x77e));}_0x2f6860=_0x332f07(_0x7885ce,_0xffe040)[Symbol[_0x57d1bb(0x1f2)]](),_0x3f7852=![];}if(!_0x2f6860){if(_0x3fc309!==undefined)_0x2dec76=_0x3fc309;else try{_0x2dec76=_0x373e66?_0x373e66():undefined;}catch{_0x2dec76=undefined;}try{_0x2f6860=_0x2b333d()[Symbol[_0x57d1bb(0x1f2)]]();}catch(_0x178b25){_0x51b39e=!![];throw _0x178b25;}}!_0x3fca7d&&(_0x3fca7d=!![],queueMicrotask(()=>{_0x3fca7d=![];if(_0x51b39e||_0x3f7852)return;try{_0x2f6860?.['return']?.();}catch{}_0x2f6860=null,_0x3f7852=!![];}));const _0x296c7b=_0x2f6860[_0x57d1bb(0x730)]();if(_0x296c7b[_0x57d1bb(0x5f1)])return _0x51b39e=!![],{'done':!![],'value':undefined};return _0x7885ce=_0x296c7b[_0x57d1bb(0x821)],_0xffe040++,_0x296c7b;},'return'(){_0x51b39e=!![];try{_0x2f6860?.['return']?.();}catch{}return{'done':!![],'value':undefined};},[Symbol['iterator']](){return this;}};});}return okdbGuardedRange={'guardSnapshotIterable':_0x810f43,'OKDBGuardedRange':_0x539dd8,'recordGuardTrip':_0x465f82,'getGuardTripStats':_0x494b4a},okdbGuardedRange;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0x79a08=_0x2d5353;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x1b24bf,performance:_0x20b9d4}=require$$0$1,_0x5c0d34=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG==='true',_0x3e520c=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x4eb0d8=process.env.OKDB_LOOP_LAG_ALL==='1',_0x5d2ff0=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0x1a8fae{constructor(){const _0x5c5d8f=_0x36a2;this['enabled']=_0x5c0d34,this[_0x5c5d8f(0x1bd)]=new Map(),this['_h']=null,this['_timer']=null,this['_started']=![],this[_0x5c5d8f(0x1ac)]=(_0x30f1cc,_0xa13061)=>process['stderr'][_0x5c5d8f(0x46e)](_0x30f1cc+(_0xa13061?'\x20'+JSON['stringify'](_0xa13061):'')+'\x0a');}[_0x79a08(0x76a)](){return _0x20b9d4['now']();}['setLogger'](_0x1ab4ff){const _0x2a4d2d=_0x79a08;if(typeof _0x1ab4ff==='function')this[_0x2a4d2d(0x1ac)]=_0x1ab4ff;}[_0x79a08(0x80b)](_0x59852d,_0x36fba7,_0x5a4976){const _0x3e80c0=_0x79a08;if(!this[_0x3e80c0(0x6f9)])return;let _0x107d52=this[_0x3e80c0(0x1bd)][_0x3e80c0(0x6ce)](_0x59852d);!_0x107d52&&(_0x107d52={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this[_0x3e80c0(0x1bd)]['set'](_0x59852d,_0x107d52)),_0x107d52['ms']+=_0x36fba7,_0x107d52[_0x3e80c0(0x21b)]+=0x1,_0x36fba7>_0x107d52['maxMs']&&(_0x107d52['maxMs']=_0x36fba7,_0x107d52[_0x3e80c0(0x381)]=_0x5a4976||'');}[_0x79a08(0x4df)](_0x28ec47){const _0x2c0a6b=_0x79a08;if(!this[_0x2c0a6b(0x6f9)]||this[_0x2c0a6b(0x508)])return;this[_0x2c0a6b(0x508)]=!![];if(_0x28ec47)this[_0x2c0a6b(0x1ac)]=_0x28ec47;this['_h']=_0x1b24bf({'resolution':0xa}),this['_h'][_0x2c0a6b(0x671)](),this[_0x2c0a6b(0x7f8)]=setInterval(()=>this['_report'](),_0x3e520c);if(this[_0x2c0a6b(0x7f8)][_0x2c0a6b(0x46f)])this[_0x2c0a6b(0x7f8)]['unref']();}['onWindow'](_0x3b58b6){const _0x5d330e=_0x79a08;if(!this['_windowCbs'])this[_0x5d330e(0x166)]=new Set();this[_0x5d330e(0x166)][_0x5d330e(0x725)](_0x3b58b6);if(!this[_0x5d330e(0x508)])this['_startAdmission']();}['offWindow'](_0x3d5f2b){const _0x94480a=_0x79a08;this[_0x94480a(0x166)]?.['delete'](_0x3d5f2b);}['_startAdmission'](){const _0x44deec=_0x79a08;if(this[_0x44deec(0x25a)])return;this['_admissionStarted']=!![];!this['_h']&&(this['_h']=_0x1b24bf({'resolution':0xa}),this['_h'][_0x44deec(0x671)]());const _0x235110=_0x3e520c;this[_0x44deec(0x4a9)]=setInterval(()=>{const _0x5673a6=_0x44deec,_0x32e239=this['_h'];if(!_0x32e239)return;const _0x4a4362=_0x32e239['percentile'](0x63)/0xf4240,_0xb7fd28=_0x32e239[_0x5673a6(0x81c)]/0xf4240,_0x3a80bc=_0x32e239[_0x5673a6(0x727)]/0xf4240;_0x32e239[_0x5673a6(0x5be)]();if(this[_0x5673a6(0x166)])for(const _0x3943f7 of this[_0x5673a6(0x166)]){try{_0x3943f7({'p99Ms':_0x4a4362,'maxMs':_0xb7fd28,'meanMs':_0x3a80bc,'reportMs':_0x235110});}catch{}}},_0x235110);if(this[_0x44deec(0x4a9)]['unref'])this[_0x44deec(0x4a9)]['unref']();}['_report'](){const _0x224d8e=_0x79a08,_0x3acbf7=this['_h'],_0x4d016e=_0x3acbf7['max']/0xf4240,_0x799d14=_0x3acbf7[_0x224d8e(0x2a5)](0x63)/0xf4240,_0x1129f4=_0x3acbf7[_0x224d8e(0x727)]/0xf4240;_0x3acbf7['reset']();const _0x3243c0=[...this[_0x224d8e(0x1bd)]['entries']()][_0x224d8e(0x4e8)](([_0x885751,_0x18be66])=>({'label':_0x885751,..._0x18be66}))[_0x224d8e(0x861)]((_0x268ca,_0x22af6a)=>_0x22af6a['ms']-_0x268ca['ms'])['slice'](0x0,0x8);this[_0x224d8e(0x1bd)][_0x224d8e(0x530)]();const _0x4dcf44=_0x3243c0[_0x224d8e(0x268)]((_0x3bc354,_0x46b6db)=>_0x3bc354+_0x46b6db['ms'],0x0),_0x3cea0a=_0x3243c0[_0x224d8e(0x4e8)](_0x4a4e09=>_0x4a4e09[_0x224d8e(0x50e)]+'='+_0x4a4e09['ms']['toFixed'](0x0)+_0x224d8e(0x7cb)+_0x4a4e09[_0x224d8e(0x21b)]+(_0x4a4e09['maxMs']>0x5?'(worst\x20'+_0x4a4e09[_0x224d8e(0x77a)][_0x224d8e(0x5ae)](0x0)+'ms'+(_0x4a4e09[_0x224d8e(0x381)]?'\x20'+_0x4a4e09['maxExtra']:'')+')':''));(_0x4eb0d8||_0x4d016e>=_0x5d2ff0)&&this['_log'](_0x224d8e(0x703)+_0x3e520c+'ms\x20max='+_0x4d016e[_0x224d8e(0x5ae)](0x0)+'ms\x20p99='+_0x799d14[_0x224d8e(0x5ae)](0x0)+_0x224d8e(0x56d)+_0x1129f4[_0x224d8e(0x5ae)](0x0)+_0x224d8e(0x5f4)+_0x4dcf44[_0x224d8e(0x5ae)](0x0)+'ms'+(_0x3cea0a[_0x224d8e(0x192)]?_0x224d8e(0x2e0)+_0x3cea0a[_0x224d8e(0x3ee)]('\x20\x20'):''),{'feature':_0x224d8e(0x20c)});if(this[_0x224d8e(0x166)])for(const _0x34d75b of this[_0x224d8e(0x166)]){try{_0x34d75b({'p99Ms':_0x799d14,'maxMs':_0x4d016e,'meanMs':_0x1129f4,'reportMs':_0x3e520c});}catch{}}}['stop'](){const _0x2b87ee=_0x79a08;if(this[_0x2b87ee(0x7f8)])clearInterval(this['_timer']);if(this['_h'])this['_h'][_0x2b87ee(0x878)]();this[_0x2b87ee(0x7f8)]=null,this['_h']=null,this['_started']=![];}}const _0x8fdc4a=new _0x1a8fae();if(_0x8fdc4a['enabled'])_0x8fdc4a[_0x79a08(0x4df)]();return okdbLoopMonitor={'LOOP':_0x8fdc4a},okdbLoopMonitor;}var okdbTransaction,hasRequiredOkdbTransaction;function requireOkdbTransaction(){const _0x3318fb=_0x2d5353;if(hasRequiredOkdbTransaction)return okdbTransaction;hasRequiredOkdbTransaction=0x1;const _0xdc58a3={'v4':()=>require$$0$2[_0x3318fb(0x846)]()},{EVENTS:_0x408654}=requireOkdbEnums(),{OKDBError:_0x783ec9}=requireOkdbError(),{recordGuardTrip:_0x100442,guardSnapshotIterable:_0x37c2a9}=requireOkdbGuardedRange(),{LOOP:_0x3d55a4}=requireOkdbLoopMonitor();function _0x485164(_0x1bf91a){const _0x4f6f26=_0x3318fb;return _0x1bf91a[_0x4f6f26(0x4e8)](_0x411346=>{const _0x5e39a7=_0x4f6f26,[_0x329d38,_0x66d4cd]=_0x411346['args']||[];return{'action':_0x411346[_0x5e39a7(0x608)],'type':_0x329d38,'key':_0x66d4cd};});}class _0x344b33{[_0x3318fb(0x4f7)];[_0x3318fb(0x533)]=[];[_0x3318fb(0x2e8)]=[];[_0x3318fb(0x465)]=[];constructor(_0x2d7835,_0x33d4fe={'useReadTransaction':![]}){const _0x3bc0e6=_0x3318fb;this['okdb']=_0x2d7835,this[_0x3bc0e6(0x4c0)]=_0x33d4fe,this['id']=_0xdc58a3['v4']();if(this['options'][_0x3bc0e6(0x157)])try{this[_0x3bc0e6(0x222)]=this['okdb']['db'][_0x3bc0e6(0x20d)]()['lastTxnId'];}catch{this[_0x3bc0e6(0x222)]=undefined;}this[_0x3bc0e6(0x5d0)]=this['options'][_0x3bc0e6(0x157)]?this[_0x3bc0e6(0x4f7)]['db']['useReadTransaction']():null,this[_0x3bc0e6(0x788)]=![],this['_readViewExpired']=![],this['readTransaction']&&queueMicrotask(()=>{const _0x122787=_0x3bc0e6;this[_0x122787(0x5d0)]&&(this[_0x122787(0x4d0)](),this[_0x122787(0x4be)]=!![]);});}[_0x3318fb(0x12b)](_0x863527){this['_doHooks']['push'](_0x863527);}[_0x3318fb(0x179)](_0x15acbd){const _0x109c69=_0x3318fb;this[_0x109c69(0x465)]['push'](_0x15acbd);}[_0x3318fb(0x4d0)](){const _0x579c6e=_0x3318fb;if(!this[_0x579c6e(0x5d0)])return;try{this[_0x579c6e(0x5d0)][_0x579c6e(0x5f1)]();}catch(_0x538217){}this[_0x579c6e(0x5d0)]=null;}[_0x3318fb(0x23b)](){const _0x1a6d35=_0x3318fb;if(this[_0x1a6d35(0x788)])throw new _0x783ec9(_0x1a6d35(0x54d),_0x1a6d35(0x3dc));if(this[_0x1a6d35(0x4be)]){let _0x167430=![];if(this[_0x1a6d35(0x4c0)][_0x1a6d35(0x157)]===_0x1a6d35(0x7c2)&&this['_txnIdAtSnapshot']!==undefined)try{_0x167430=this['okdb']['db']['getStats']()['lastTxnId']===this[_0x1a6d35(0x222)];}catch{}if(!_0x167430){_0x100442((this[_0x1a6d35(0x4f7)]?.['name']??'?')+_0x1a6d35(0x3fc));throw new _0x783ec9('useReadTransaction\x20read\x20view\x20expired:\x20the\x20snapshot\x20was\x20released\x20at\x20the\x20first\x20await/turn\x20'+_0x1a6d35(0x6c8)+_0x1a6d35(0x603)+_0x1a6d35(0x5d2),'READER_HELD_ACROSS_AWAIT');}}}[_0x3318fb(0x6ce)](_0x571258,_0x18af26){const _0x32dc9e=_0x3318fb;return this[_0x32dc9e(0x23b)](),this['okdb']['get'](_0x571258,_0x18af26,{'transaction':this['readTransaction']});}[_0x3318fb(0x638)](_0x5e9012,_0x1a3d08){const _0x49690c=_0x3318fb;return this['_assertOpen'](),this[_0x49690c(0x4f7)]['getEntry'](_0x5e9012,_0x1a3d08,{'transaction':this[_0x49690c(0x5d0)]});}[_0x3318fb(0x438)](_0x4feb7f,_0x2edb7b){const _0x4c9cec=_0x3318fb;return this[_0x4c9cec(0x23b)](),this[_0x4c9cec(0x4f7)][_0x4c9cec(0x438)](_0x4feb7f,_0x2edb7b,{'transaction':this[_0x4c9cec(0x5d0)]});}[_0x3318fb(0x130)](_0x57335c){const _0x294ffb=_0x3318fb;if(!this['options']['useReadTransaction'])return _0x57335c;if(_0x57335c&&typeof _0x57335c['then']==='function')return _0x57335c;if(Array[_0x294ffb(0x7e3)](_0x57335c))return _0x57335c;const _0x2223ee=this,_0x464f43=_0x2223ee[_0x294ffb(0x4c0)][_0x294ffb(0x157)]===_0x294ffb(0x7c2),_0x648e97=()=>{const _0x43c33c=_0x294ffb;if(!_0x2223ee[_0x43c33c(0x4be)])return![];if(!_0x464f43)return!![];if(_0x2223ee[_0x43c33c(0x222)]===undefined)return!![];try{return _0x2223ee[_0x43c33c(0x4f7)]['db'][_0x43c33c(0x20d)]()['lastTxnId']!==_0x2223ee['_txnIdAtSnapshot'];}catch{return!![];}};return _0x37c2a9(()=>{const _0x355b8c=_0x294ffb;if(_0x2223ee[_0x355b8c(0x788)])throw new _0x783ec9(_0x355b8c(0x54d),_0x355b8c(0x3dc));if(_0x648e97()){_0x100442((_0x2223ee[_0x355b8c(0x4f7)]?.[_0x355b8c(0x425)]??'?')+_0x355b8c(0x1f0));throw new _0x783ec9(_0x355b8c(0x2ef)+_0x355b8c(0x64b)+_0x355b8c(0x6b0),_0x355b8c(0x77e));}return _0x57335c;},{'label':(_0x2223ee[_0x294ffb(0x4f7)]?.[_0x294ffb(0x425)]??'?')+_0x294ffb(0x1f0),..._0x464f43?{'baseline':_0x2223ee[_0x294ffb(0x222)],'getTxnId':()=>_0x2223ee[_0x294ffb(0x4f7)]['db'][_0x294ffb(0x20d)]()[_0x294ffb(0x274)],'resume':(_0x31845b,_0x3030d4)=>_0x57335c['slice'](_0x3030d4)}:{}});}[_0x3318fb(0x35a)](_0x3ff8a0,_0x245b22={}){const _0xbf42db=_0x3318fb;return this[_0xbf42db(0x23b)](),this[_0xbf42db(0x130)](this[_0xbf42db(0x4f7)]['getRange'](_0x3ff8a0,{'transaction':this[_0xbf42db(0x5d0)],..._0x245b22}));}[_0x3318fb(0x38b)](_0x4966bf,_0x100f6a={}){const _0x235cd9=_0x3318fb;return this[_0x235cd9(0x23b)](),this[_0x235cd9(0x130)](this['okdb'][_0x235cd9(0x38b)](_0x4966bf,{'transaction':this[_0x235cd9(0x5d0)],..._0x100f6a}));}[_0x3318fb(0x462)](_0x141c84,_0x4dcfae={}){const _0x2f5e7b=_0x3318fb;return this['_assertOpen'](),this[_0x2f5e7b(0x130)](this['okdb']['getKeys'](_0x141c84,{'transaction':this[_0x2f5e7b(0x5d0)],..._0x4dcfae}));}[_0x3318fb(0x120)](_0x2db76d,_0x2ebdfd,_0x505020={}){const _0x1e46f3=_0x3318fb;return this['_assertOpen'](),this[_0x1e46f3(0x130)](this['okdb']['byIndex'](_0x2db76d,_0x2ebdfd,{'transaction':this['readTransaction'],..._0x505020}));}[_0x3318fb(0x450)](_0x2fce20,_0x46a307,_0x1866ad={}){const _0x1eb1f0=_0x3318fb;return this[_0x1eb1f0(0x23b)](),this[_0x1eb1f0(0x130)](this['okdb'][_0x1eb1f0(0x450)](_0x2fce20,_0x46a307,{'transaction':this['readTransaction'],..._0x1866ad}));}[_0x3318fb(0x863)](_0x4132b1=null){const _0x19f3f9=_0x3318fb;return this[_0x19f3f9(0x23b)](),this[_0x19f3f9(0x4f7)]['getClock'](_0x4132b1,{'transaction':this[_0x19f3f9(0x5d0)]});}[_0x3318fb(0x7d6)](_0x53e07a){const _0x469aad=_0x3318fb;return this[_0x469aad(0x23b)](),this[_0x469aad(0x4f7)][_0x469aad(0x7d6)](_0x53e07a,{'transaction':this[_0x469aad(0x5d0)]});}[_0x3318fb(0x14f)](_0x408044,_0x3cec8d,_0x3721a6,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0x3318fb(0x76a)](),origin:origin=null,ttl:ttl=null}={}){const _0x212d46=_0x3318fb;this[_0x212d46(0x533)][_0x212d46(0x46d)]({'action':'put','args':[_0x408044,_0x3cec8d,_0x3721a6,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x3318fb(0x1a2)](_0x206f35,_0x3ea720,_0x4c5726,{ifVersion:ifVersion=null,version:version=null,timestamp:timestamp=Date[_0x3318fb(0x76a)](),origin:origin=null,ttl:ttl=null}={}){const _0x17627f=_0x3318fb;this[_0x17627f(0x533)]['push']({'action':_0x17627f(0x1a2),'args':[_0x206f35,_0x3ea720,_0x4c5726,{'ifVersion':ifVersion,'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}['patch'](_0x405ed1,_0x55463d,_0xf0840c,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0x3318fb(0x76a)](),origin:origin=null,ttl:ttl=null}={}){const _0x58b25f=_0x3318fb;this[_0x58b25f(0x533)][_0x58b25f(0x46d)]({'action':_0x58b25f(0x41f),'args':[_0x405ed1,_0x55463d,_0xf0840c,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x3318fb(0x569)](_0x2fbecb,_0x23f72f,_0x456dd9,{version:version=null,timestamp:timestamp=Date['now'](),origin:origin=null,ttl:ttl=null}={}){const _0x7f3d0d=_0x3318fb;this[_0x7f3d0d(0x533)][_0x7f3d0d(0x46d)]({'action':_0x7f3d0d(0x569),'args':[_0x2fbecb,_0x23f72f,_0x456dd9,{'version':version,'timestamp':timestamp,'origin':origin,'ttl':ttl}]});}[_0x3318fb(0x78e)](_0x4506ab,_0x5c28ce,{ifVersion:ifVersion=null,timestamp:timestamp=Date[_0x3318fb(0x76a)](),origin:origin=null}={}){const _0x127c70=_0x3318fb;this[_0x127c70(0x533)]['push']({'action':'remove','args':[_0x4506ab,_0x5c28ce,{'ifVersion':ifVersion,'timestamp':timestamp,'origin':origin}]});}[_0x3318fb(0x235)](_0x3b8ff1,_0x97c7e0,_0x15bc1d){const _0x36b9b1=_0x3318fb;this[_0x36b9b1(0x533)][_0x36b9b1(0x46d)]({'action':_0x36b9b1(0x235),'args':[_0x3b8ff1,_0x97c7e0,_0x15bc1d]});}['clearTTL'](_0x525826,_0x727c3b){const _0xc30ccf=_0x3318fb;this[_0xc30ccf(0x533)][_0xc30ccf(0x46d)]({'action':'clearTTL','args':[_0x525826,_0x727c3b]});}[_0x3318fb(0x5a0)](){const _0x26fa64=_0x3318fb;if(this[_0x26fa64(0x788)])return;for(const _0x744734 of this[_0x26fa64(0x465)]){try{_0x744734();}catch{}}this[_0x26fa64(0x4f7)]['events'][_0x26fa64(0x839)](_0x408654['TXN_ROLLBACK'],{'id':this['id']}),this[_0x26fa64(0x533)]=[],this[_0x26fa64(0x4d0)](),this[_0x26fa64(0x788)]=!![];}async[_0x3318fb(0x65f)](){const _0x2a0328=_0x3318fb;if(this['_closed'])throw new Error(_0x2a0328(0x54d));const _0x32b691={'id':this['id'],'timestamp':Date[_0x2a0328(0x76a)](),'actions':this['actions']};this[_0x2a0328(0x4f7)][_0x2a0328(0x5d6)][_0x2a0328(0x839)](_0x408654[_0x2a0328(0x256)],_0x32b691);try{const _0xc0a879=_0x3d55a4['enabled']?_0x3d55a4[_0x2a0328(0x76a)]():0x0;await this['okdb'][_0x2a0328(0x208)][_0x2a0328(0x5d5)](()=>{const _0x4177bc=_0x2a0328;for(const _0x25a67e of this[_0x4177bc(0x533)]){const _0x147c69=this['okdb']['_'+_0x25a67e['action']];if(typeof _0x147c69!=='function')throw new Error(_0x4177bc(0x280)+_0x25a67e[_0x4177bc(0x608)]);_0x147c69[_0x4177bc(0x245)](this[_0x4177bc(0x4f7)],this,..._0x25a67e['args']);}}),_0x3d55a4['enabled']&&_0x3d55a4[_0x2a0328(0x80b)](_0x2a0328(0x217),_0x3d55a4[_0x2a0328(0x76a)]()-_0xc0a879,(this[_0x2a0328(0x4f7)][_0x2a0328(0x425)]??'?')+_0x2a0328(0x644)+this[_0x2a0328(0x533)][_0x2a0328(0x192)]);}catch(_0x47daa8){for(const _0x102854 of this[_0x2a0328(0x465)]){try{_0x102854();}catch{}}this[_0x2a0328(0x4d0)](),this[_0x2a0328(0x788)]=!![];if(_0x47daa8 instanceof _0x783ec9)throw _0x47daa8;const _0x5d6549={'cause':_0x47daa8,'env':this[_0x2a0328(0x4f7)]?.[_0x2a0328(0x425)],'envPath':this[_0x2a0328(0x4f7)]?.[_0x2a0328(0x733)],'pid':process[_0x2a0328(0x27b)],'txnId':this['id'],'actionCount':this[_0x2a0328(0x533)]['length'],'actions':_0x485164(this[_0x2a0328(0x533)]),'nativeCode':_0x47daa8?.['code'],'nativeName':_0x47daa8?.['name']};try{this['okdb']?.[_0x2a0328(0x71e)]?.['error']?.('transaction\x20commit\x20failed',{'env':_0x5d6549['env'],'envPath':_0x5d6549['envPath'],'pid':_0x5d6549[_0x2a0328(0x27b)],'txnId':_0x5d6549[_0x2a0328(0x132)],'actionCount':_0x5d6549[_0x2a0328(0x303)],'actions':_0x5d6549[_0x2a0328(0x533)],'nativeCode':_0x5d6549[_0x2a0328(0x743)],'error':_0x47daa8?.[_0x2a0328(0x367)],'stack':_0x47daa8?.[_0x2a0328(0x86d)]});}catch{}throw new _0x783ec9(_0x47daa8?.[_0x2a0328(0x367)]||_0x2a0328(0x464),_0x2a0328(0x56e),_0x5d6549);}this['okdb'][_0x2a0328(0x5d6)]['emit'](_0x408654[_0x2a0328(0x1a9)],_0x32b691);for(const _0x1b418e of this['_doHooks']){try{await _0x1b418e();}catch{}}this[_0x2a0328(0x533)]=[],this[_0x2a0328(0x4d0)](),this[_0x2a0328(0x788)]=!![];}static['createWriteFacade'](_0x3f53e5){const _0x32814e=_0x3318fb;return Object['freeze']({'id':_0x3f53e5['id'],'put':_0x3f53e5[_0x32814e(0x14f)][_0x32814e(0x7b2)](_0x3f53e5),'update':_0x3f53e5['update'][_0x32814e(0x7b2)](_0x3f53e5),'patch':_0x3f53e5[_0x32814e(0x41f)][_0x32814e(0x7b2)](_0x3f53e5),'create':_0x3f53e5[_0x32814e(0x569)]['bind'](_0x3f53e5),'remove':_0x3f53e5[_0x32814e(0x78e)][_0x32814e(0x7b2)](_0x3f53e5),'setTTL':_0x3f53e5['setTTL'][_0x32814e(0x7b2)](_0x3f53e5),'clearTTL':_0x3f53e5['clearTTL'][_0x32814e(0x7b2)](_0x3f53e5),'commit':_0x3f53e5['commit'][_0x32814e(0x7b2)](_0x3f53e5),'rollback':_0x3f53e5[_0x32814e(0x5a0)][_0x32814e(0x7b2)](_0x3f53e5),'get':_0x3f53e5[_0x32814e(0x6ce)][_0x32814e(0x7b2)](_0x3f53e5),'getEntry':_0x3f53e5[_0x32814e(0x638)][_0x32814e(0x7b2)](_0x3f53e5),'getMany':_0x3f53e5[_0x32814e(0x438)][_0x32814e(0x7b2)](_0x3f53e5),'getRange':_0x3f53e5['getRange']['bind'](_0x3f53e5),'getValues':_0x3f53e5[_0x32814e(0x38b)]['bind'](_0x3f53e5),'getKeys':_0x3f53e5['getKeys'][_0x32814e(0x7b2)](_0x3f53e5),'byIndex':_0x3f53e5[_0x32814e(0x120)][_0x32814e(0x7b2)](_0x3f53e5),'query':_0x3f53e5['query']['bind'](_0x3f53e5),'getClock':_0x3f53e5[_0x32814e(0x863)][_0x32814e(0x7b2)](_0x3f53e5),'getCount':_0x3f53e5[_0x32814e(0x7d6)]['bind'](_0x3f53e5),'read':_0x3f53e5,'raw':_0x3f53e5});}static[_0x3318fb(0x251)](_0x463c36,_0x158faf=[]){const _0x9c1bb5=_0x3318fb;if(!Array[_0x9c1bb5(0x7e3)](_0x158faf))throw new _0x783ec9('txn\x20ops\x20must\x20be\x20an\x20array',_0x9c1bb5(0x73b));for(const _0x5773d5 of _0x158faf){if(Array[_0x9c1bb5(0x7e3)](_0x5773d5)){const [_0x9eee2a,..._0x206219]=_0x5773d5;if(typeof _0x463c36[_0x9eee2a]!=='function')throw new _0x783ec9(_0x9c1bb5(0x280)+_0x9eee2a,_0x9c1bb5(0x49c),{'action':_0x9eee2a});_0x463c36[_0x9eee2a](..._0x206219);continue;}if(!_0x5773d5||typeof _0x5773d5!==_0x9c1bb5(0x712))throw new _0x783ec9('txn\x20op\x20must\x20be\x20an\x20object\x20or\x20tuple',_0x9c1bb5(0x328));const {action:_0x3b93d9}=_0x5773d5;if(typeof _0x3b93d9!=='string'||typeof _0x463c36[_0x3b93d9]!=='function')throw new _0x783ec9(_0x9c1bb5(0x280)+_0x3b93d9,_0x9c1bb5(0x49c),{'action':_0x3b93d9});switch(_0x3b93d9){case'put':case _0x9c1bb5(0x1a2):case _0x9c1bb5(0x569):_0x463c36[_0x3b93d9](_0x5773d5[_0x9c1bb5(0x2d0)],_0x5773d5[_0x9c1bb5(0x5c0)],_0x5773d5['value'],{..._0x5773d5['options'],'ttl':_0x5773d5[_0x9c1bb5(0x419)]??_0x5773d5[_0x9c1bb5(0x4c0)]?.[_0x9c1bb5(0x419)]??null});break;case _0x9c1bb5(0x41f):_0x463c36[_0x9c1bb5(0x41f)](_0x5773d5[_0x9c1bb5(0x2d0)],_0x5773d5[_0x9c1bb5(0x5c0)],_0x5773d5['patch'],{..._0x5773d5[_0x9c1bb5(0x4c0)],'ttl':_0x5773d5[_0x9c1bb5(0x419)]??_0x5773d5[_0x9c1bb5(0x4c0)]?.[_0x9c1bb5(0x419)]??null});break;case _0x9c1bb5(0x78e):_0x463c36['remove'](_0x5773d5[_0x9c1bb5(0x2d0)],_0x5773d5[_0x9c1bb5(0x5c0)],_0x5773d5[_0x9c1bb5(0x4c0)]||{});break;case _0x9c1bb5(0x235):_0x463c36[_0x9c1bb5(0x235)](_0x5773d5[_0x9c1bb5(0x2d0)],_0x5773d5[_0x9c1bb5(0x5c0)],_0x5773d5[_0x9c1bb5(0x419)]);break;case _0x9c1bb5(0x449):_0x463c36[_0x9c1bb5(0x449)](_0x5773d5['type'],_0x5773d5['key']);break;default:throw new _0x783ec9(_0x9c1bb5(0x2c8)+_0x3b93d9,_0x9c1bb5(0x49c),{'action':_0x3b93d9});}}}static async[_0x3318fb(0x269)](_0x34e597,_0x4580a6,_0x48876f={}){const _0x4c1b3d=_0x3318fb,_0x54082e=new _0x344b33(_0x34e597,_0x48876f),_0x2e288c=_0x344b33[_0x4c1b3d(0x42c)](_0x54082e);try{typeof _0x4580a6==='function'?await _0x4580a6(_0x2e288c):_0x344b33['applyOps'](_0x54082e,_0x4580a6||[]);const _0xbfa819=_0x54082e[_0x4c1b3d(0x533)]['length'];return await _0x54082e[_0x4c1b3d(0x65f)](),{'id':_0x54082e['id'],'actions':_0xbfa819};}catch(_0x21fe91){try{_0x54082e[_0x4c1b3d(0x5a0)]();}catch(_0x3f303d){}throw _0x21fe91;}}}return okdbTransaction=_0x344b33,okdbTransaction;}var dist={},hasRequiredDist;function requireDist(){const _0x5d62f8=_0x2d5353;if(hasRequiredDist)return dist;hasRequiredDist=0x1,Object[_0x5d62f8(0x2ad)](dist,_0x5d62f8(0x3df),{'value':!![]});const _0x2c10bb=new Float64Array(0x2),_0x1cd289=new Int32Array(_0x2c10bb[_0x5d62f8(0x2c6)],0x0,0x4),{lowIdx:_0x47cf8e,highIdx:_0x20cb3e}=((()=>{const _0x9bb63c=_0x5d62f8;if(new Uint8Array(new Uint32Array([0xffee1100])[_0x9bb63c(0x2c6)])[0x0]===0xff)return{'lowIdx':0x1,'highIdx':0x0};return{'lowIdx':0x0,'highIdx':0x1};})());let _0x36752a=![],_0x3c73db;try{_0x3c73db=new TextEncoder();}catch(_0x43ecc0){}function _0x5df842(_0xb9634c,_0x3923a4,position,_0x2837a2){const _0x1562f7=_0x5d62f8;let _0x5f4ac9=_0x3923a4[_0x1562f7(0x6cd)];if(!_0x5f4ac9)_0x5f4ac9=_0x3923a4[_0x1562f7(0x6cd)]=new DataView(_0x3923a4['buffer'],_0x3923a4[_0x1562f7(0x824)],_0x3923a4['byteLength']+0x3>>0x2<<0x2);switch(typeof _0xb9634c){case _0x1562f7(0x84a):let _0x4fa98f=_0xb9634c[_0x1562f7(0x192)],_0x12be65=_0xb9634c['charCodeAt'](0x0);if(!(_0x12be65>=0x1c))_0x3923a4[position++]=0x1b;if(_0x4fa98f<0x40){let _0x11c2ad,_0x239e77;for(_0x11c2ad=0x0;_0x11c2ad<_0x4fa98f;_0x11c2ad++){_0x12be65=_0xb9634c[_0x1562f7(0x73f)](_0x11c2ad);if(_0x12be65<=0x4)_0x3923a4[position++]=0x4,_0x3923a4[position++]=_0x12be65;else{if(_0x12be65<0x80)_0x3923a4[position++]=_0x12be65;else{if(_0x12be65<0x800)_0x3923a4[position++]=_0x12be65>>0x6|0xc0,_0x3923a4[position++]=_0x12be65&0x3f|0x80;else(_0x12be65&0xfc00)===0xd800&&((_0x239e77=_0xb9634c[_0x1562f7(0x73f)](_0x11c2ad+0x1))&0xfc00)===0xdc00?(_0x12be65=0x10000+((_0x12be65&0x3ff)<<0xa)+(_0x239e77&0x3ff),_0x11c2ad++,_0x3923a4[position++]=_0x12be65>>0x12|0xf0,_0x3923a4[position++]=_0x12be65>>0xc&0x3f|0x80,_0x3923a4[position++]=_0x12be65>>0x6&0x3f|0x80,_0x3923a4[position++]=_0x12be65&0x3f|0x80):(_0x3923a4[position++]=_0x12be65>>0xc|0xe0,_0x3923a4[position++]=_0x12be65>>0x6&0x3f|0x80,_0x3923a4[position++]=_0x12be65&0x3f|0x80);}}}}else{if(_0x3923a4[_0x1562f7(0x28a)])position+=_0x3923a4['utf8Write'](_0xb9634c,position,_0x3923a4['byteLength']-position);else position+=_0x3c73db[_0x1562f7(0x404)](_0xb9634c,_0x3923a4[_0x1562f7(0x5ad)](position))[_0x1562f7(0x3a1)];if(position>_0x3923a4['length']-0x4)throw new RangeError(_0x1562f7(0x3ba));}break;case _0x1562f7(0x859):_0x2c10bb[0x0]=_0xb9634c;let _0x66d732=_0x1cd289[_0x47cf8e],_0x5f0c28=_0x1cd289[_0x20cb3e],_0x4ae71f;if(_0xb9634c<0x0)return _0x5f4ac9[_0x1562f7(0x32b)](position+0x4,~(_0x66d732>>>0x4|_0x5f0c28<<0x1c)),_0x5f4ac9[_0x1562f7(0x32b)](position+0x0,(_0x5f0c28^0x7fffffff)>>>0x4),_0x5f4ac9[_0x1562f7(0x32b)](position+0x8,(_0x66d732&0xf^0xf)<<0x4,!![]),position+0x9;else{if(_0x66d732&0xf||_0x2837a2)_0x4ae71f=0x9;else{if(_0x66d732&0xfffff)_0x4ae71f=0x8;else{if(_0x66d732||_0x5f0c28&0xf)_0x4ae71f=0x6;else _0x4ae71f=0x4;}}}_0x5f4ac9[_0x1562f7(0x32b)](position+0x0,_0x5f0c28>>>0x4|0x10000000),_0x5f4ac9[_0x1562f7(0x32b)](position+0x4,_0x66d732>>>0x4|_0x5f0c28<<0x1c),_0x5f4ac9['setInt32'](position+0x8,(_0x66d732&0xf)<<0x4,!![]);return position+_0x4ae71f;case'object':if(_0xb9634c){if(Array[_0x1562f7(0x7e3)](_0xb9634c)){for(let _0x2a55be=0x0,_0x2f7b61=_0xb9634c[_0x1562f7(0x192)];_0x2a55be<_0x2f7b61;_0x2a55be++){if(_0x2a55be>0x0)_0x3923a4[position++]=0x0;position=_0x5df842(_0xb9634c[_0x2a55be],_0x3923a4,position,!![]);}break;}else{if(_0xb9634c instanceof Uint8Array){_0x3923a4[_0x1562f7(0x7a0)](_0xb9634c,position),position+=_0xb9634c[_0x1562f7(0x192)];break;}else throw new Error('Unable\x20to\x20serialize\x20object\x20as\x20a\x20key:\x20'+JSON[_0x1562f7(0x84b)](_0xb9634c));}}else _0x3923a4[position++]=0x0;break;case _0x1562f7(0x2ff):_0x5f4ac9[_0x1562f7(0x62e)](position++,_0xb9634c?0x7:0x6,!![]);return position;case _0x1562f7(0x538):let _0x3ad134=Number(_0xb9634c);if(BigInt(_0x3ad134)>_0xb9634c){_0x2c10bb[0x0]=_0x3ad134;if(_0x3ad134>0x0){if(_0x1cd289[_0x47cf8e])_0x1cd289[_0x47cf8e]--;else _0x1cd289[_0x20cb3e]--,_0x1cd289[_0x47cf8e]=0xffffffff;}else{if(_0x1cd289[_0x47cf8e]<0xffffffff)_0x1cd289[_0x47cf8e]++;else _0x1cd289[_0x20cb3e]++,_0x1cd289[_0x47cf8e]=0x0;}_0x3ad134=_0x2c10bb[0x0];}let _0x3450b7=_0xb9634c-BigInt(_0x3ad134);if(_0x3450b7===0x0n)return _0x5df842(_0x3ad134,_0x3923a4,position,_0x2837a2);_0x5df842(_0x3ad134,_0x3923a4,position,_0x2837a2),position+=0x9;let _0x1da745=BigInt((_0x1cd289[_0x20cb3e]>>0x14&0x7ff)-0x437),_0x56b222=_0x3450b7>>_0x1da745;_0x3923a4[position-0x1]|=Number(_0x56b222),_0x3450b7-=_0x56b222<<_0x1da745;let _0x49e409=!![];while(_0x3450b7||_0x49e409){_0x49e409=![],_0x1da745-=0x7n;let _0x2e4c51=_0x3450b7>>_0x1da745;_0x3923a4[position++]=Number(_0x2e4c51)|0x80,_0x3450b7-=_0x2e4c51<<_0x1da745;}return position;case _0x1562f7(0x364):return position;case _0x1562f7(0x721):_0x3923a4[position++]=0x2;return _0x5df842(_0xb9634c[_0x1562f7(0x18c)],_0x3923a4,position,_0x2837a2);default:throw new Error(_0x1562f7(0x766)+typeof _0xb9634c);}if(_0x36752a&&!_0x2837a2)_0x5f4ac9['setUint32'](position,0x0);return position;}let position;function _0x56feb0(_0x2a038d,_0x232527,_0x4b0ac1,_0x5a7161){const _0xa57eda=_0x5d62f8;position=_0x232527;let _0x38fa78=_0x2a038d[position],_0x3e0eba;if(_0x38fa78<0x18){if(_0x38fa78<0x8){position++;if(_0x38fa78==0x6)_0x3e0eba=![];else{if(_0x38fa78==0x7)_0x3e0eba=!![];else{if(_0x38fa78==0x0)_0x3e0eba=null;else{if(_0x38fa78==0x2)_0x3e0eba=Symbol['for'](_0x4fe17c(_0x2a038d,_0x4b0ac1));else return Uint8Array[_0xa57eda(0x771)]['slice'][_0xa57eda(0x245)](_0x2a038d,_0x232527,_0x4b0ac1);}}}}else{let _0x1dcfd4;try{_0x1dcfd4=_0x2a038d[_0xa57eda(0x6cd)]||(_0x2a038d[_0xa57eda(0x6cd)]=new DataView(_0x2a038d['buffer'],_0x2a038d[_0xa57eda(0x824)],_0x2a038d[_0xa57eda(0x227)]+0x3>>0x2<<0x2));}catch(_0x48a061){_0x1dcfd4=_0x2a038d[_0xa57eda(0x6cd)]||(_0x2a038d[_0xa57eda(0x6cd)]=new DataView(_0x2a038d['buffer'],_0x2a038d[_0xa57eda(0x824)],_0x2a038d[_0xa57eda(0x2c6)][_0xa57eda(0x227)]-_0x2a038d[_0xa57eda(0x824)]));}let _0x5e7a11=_0x1dcfd4[_0xa57eda(0x204)](position)<<0x4,_0x56c8b5=_0x4b0ac1-position,_0x552c8f;if(_0x56c8b5>0x4)_0x552c8f=position+0x8<=_0x2a038d[_0xa57eda(0x192)]?_0x1dcfd4['getInt32'](position+0x4):_0x2a038d[position+0x4]<<0x18|_0x2a038d[position+0x5]<<0x10|_0x2a038d[position+0x6]<<0x8|_0x2a038d[position+0x7],_0x5e7a11|=_0x552c8f>>>0x1c,_0x56c8b5<=0x6&&(_0x552c8f&=-0x10000),_0x552c8f=_0x552c8f<<0x4,_0x56c8b5>0x8&&(_0x552c8f=_0x552c8f|_0x2a038d[position+0x8]>>0x4);else _0x552c8f=0x0;_0x38fa78<0x10&&(_0x5e7a11=_0x5e7a11^0x7fffffff,_0x552c8f=~_0x552c8f);_0x1cd289[_0x20cb3e]=_0x5e7a11,_0x1cd289[_0x47cf8e]=_0x552c8f,_0x3e0eba=_0x2c10bb[0x0],position+=0x9;if(_0x56c8b5>0x9&&_0x2a038d[position]>0x0){_0x3e0eba=BigInt(_0x3e0eba);let _0x36995e=_0x5e7a11>>0x14&0x7ff,_0x68601d=_0x2a038d[position-0x1]&0xf;_0x3e0eba+=BigInt(_0x68601d)<<BigInt(_0x36995e-0x437);while((_0x68601d=_0x2a038d[position])>0x0&&position++<_0x4b0ac1){_0x3e0eba+=BigInt(_0x68601d&0x7f)<<BigInt((_0x232527-position)*0x7+_0x36995e-0x3f8);}}}}else{_0x38fa78==0x1b&&position++;_0x3e0eba=_0x4fe17c(_0x2a038d,_0x4b0ac1);if(position<_0x4b0ac1)position--;}while(position<_0x4b0ac1){if(_0x2a038d[position]===0x0)position++;if(_0x5a7161)return _0x3865b0[_0xa57eda(0x6e5)]=position,_0x3e0eba;let _0x2e8308=_0x56feb0(_0x2a038d,position,_0x4b0ac1,!![]);if(_0x3e0eba instanceof Array)_0x3e0eba[_0xa57eda(0x46d)](_0x2e8308);else _0x3e0eba=[_0x3e0eba,_0x2e8308];}return _0x3e0eba;}const _0x28944d=()=>_0x36752a=!![],_0x3865b0={'writeKey':_0x5df842,'readKey':_0x56feb0,'enableNullTermination':_0x28944d};let _0x39d662=[],_0x3e6daf=0x0;const _0x477cac=typeof Buffer!==_0x5d62f8(0x364),_0xa2dfee=_0x477cac?Buffer[_0x5d62f8(0x623)]:Uint8Array,_0x2c807b=_0x5eecc0=>{const _0x45983a=_0x5d62f8;let _0x352a05;_0x3e6daf+0x64>_0x39d662[_0x45983a(0x192)]&&(_0x39d662=new _0xa2dfee(0x2000),_0x3e6daf=0x0,_0x352a05=!![]);try{let _0x2b0b7d=_0x39d662['slice'](_0x3e6daf,_0x3e6daf=_0x5df842(_0x5eecc0,_0x39d662,_0x3e6daf));if(_0x3e6daf>_0x39d662[_0x45983a(0x192)]){if(_0x352a05)throw new Error(_0x45983a(0x273));return _0x2c807b(_0x5eecc0);}return _0x2b0b7d;}catch(_0x29908a){if(_0x352a05)throw _0x29908a;return _0x3e6daf=_0x39d662[_0x45983a(0x192)],_0x2c807b(_0x5eecc0);}},_0x933876=_0x3aee0a=>{const _0x39ef8e=_0x5d62f8;return _0x56feb0(_0x3aee0a,0x0,_0x3aee0a[_0x39ef8e(0x192)]);},fromCharCode=String[_0x5d62f8(0x612)];function _0x44f8ed(){const _0x44e4b2=_0x5d62f8;let _0x31819c=_0x44e4b2(0x46c),_0x2942f8=[];for(let _0x5639ee=0x0;_0x5639ee<0x30;_0x5639ee++){let _0x5cc890=fromCharCode((_0x5639ee&0xf)+0x61)+fromCharCode((_0x5639ee>>0x4)+0x61);_0x31819c+=_0x44e4b2(0x19f)+_0x5cc890+'\x20=\x20source[position++]\x0a\x09\x09if\x20('+_0x5cc890+_0x44e4b2(0x59f)+_0x5cc890+_0x44e4b2(0x26d)+_0x5cc890+_0x44e4b2(0x489)+_0x5cc890+_0x44e4b2(0x7a1)+_0x5cc890+_0x44e4b2(0x2ed)+_0x5cc890+_0x44e4b2(0x791)+_0x2942f8+')\x0a\x09\x09}\x0a\x09\x09',_0x2942f8[_0x44e4b2(0x46d)](_0x5cc890);}return _0x31819c+=_0x44e4b2(0x620)+_0x2942f8+')\x20+\x20readString(source)}',_0x31819c;}const readString=typeof process!==_0x5d62f8(0x364)&&process['isBun']?function(_0x4415f9){let {setPosition:_0x3e1156,getPosition:_0x6f6bd9,readString:readString}=_0x4415f9;return _0x46fd7d=>{_0x3e1156(position);let _0x5d1028=readString(_0x46fd7d);return position=_0x6f6bd9(),_0x5d1028;};}(new Function('fromCharCode',_0x5d62f8(0x212)+_0x44f8ed()+';return\x20{'+_0x5d62f8(0x3d9)+_0x5d62f8(0x45d)+_0x5d62f8(0x601))(fromCharCode)):eval(_0x44f8ed());function _0x4fe17c(_0x49c4a7,_0xeb7790){if(_0x49c4a7[_0xeb7790]>0x0){let _0x40e7a0=_0x49c4a7[_0xeb7790];try{return _0x49c4a7[_0xeb7790]=0x0,readString(_0x49c4a7);}finally{_0x49c4a7[_0xeb7790]=_0x40e7a0;}}else return readString(_0x49c4a7);}function _0x43c1b2(_0x33d6af,_0x3d9359){const _0x3f8754=_0x5d62f8;if(typeof _0x33d6af==_0x3f8754(0x712)){if(!_0x33d6af)return _0x3d9359==null?0x0:-0x1;if(_0x33d6af[_0x3f8754(0x546)]){if(_0x3d9359==null)return 0x1;else return _0x3d9359[_0x3f8754(0x546)]?_0x33d6af[_0x3f8754(0x546)](_0x3d9359):-0x1;}let _0x1c53e6;if(_0x3d9359 instanceof Array){let _0x3b50eb=0x0;while((_0x1c53e6=_0x43c1b2(_0x33d6af[_0x3b50eb],_0x3d9359[_0x3b50eb]))==0x0&&_0x3b50eb<=_0x33d6af[_0x3f8754(0x192)]){_0x3b50eb++;}return _0x1c53e6;}_0x1c53e6=_0x43c1b2(_0x33d6af[0x0],_0x3d9359);if(_0x1c53e6==0x0&&_0x33d6af[_0x3f8754(0x192)]>0x1)return 0x1;return _0x1c53e6;}else{if(typeof _0x33d6af==typeof _0x3d9359)return typeof _0x33d6af==='symbol'&&(_0x33d6af=Symbol[_0x3f8754(0x4de)](_0x33d6af),_0x3d9359=Symbol[_0x3f8754(0x4de)](_0x3d9359)),_0x33d6af<_0x3d9359?-0x1:_0x33d6af===_0x3d9359?0x0:0x1;else{if(typeof _0x3d9359==_0x3f8754(0x712)){if(_0x3d9359 instanceof Array)return-_0x43c1b2(_0x3d9359,_0x33d6af);return 0x1;}else return _0x111901[typeof _0x33d6af]<_0x111901[typeof _0x3d9359]?-0x1:0x1;}}}const _0x111901={'symbol':0x0,'undefined':0x1,'boolean':0x2,'number':0x3,'string':0x4},_0x5e408d=null,_0x162569=new Uint8Array([0xff]);return dist[_0x5d62f8(0x25e)]=_0x162569,dist[_0x5d62f8(0x22e)]=_0x5e408d,dist[_0x5d62f8(0x2ce)]=_0x43c1b2,dist[_0x5d62f8(0x175)]=_0x28944d,dist['encoder']=_0x3865b0,dist[_0x5d62f8(0x75b)]=_0x933876,dist[_0x5d62f8(0x5ef)]=_0x56feb0,dist['toBufferKey']=_0x2c807b,dist[_0x5d62f8(0x61b)]=_0x5df842,dist;}var keyenc,hasRequiredKeyenc;function _0x49fd(){const _0xee5233=['queue:enqueued','~processes:desired','removeResolver','bucket\x20too\x20long','autoCompactState','_stream','$options','registerQuantum:\x20name\x20must\x20be\x20a\x20non-empty\x20string','isArray','ttlMs','files\x20feature\x20not\x20available','_ensureDesired','time-machine:','_rebuild','bucket\x20id\x20required','stor','markJobHeartbeat','_autoCompactTimer','modeApplied','_run','_retryPending','WORKER','durableRetryFailed','queue:retry','Referenced\x20type\x20\x27','T_SESSION','\x27\x20conflicts\x20with\x20existing\x20OKDB\x20property','floor','_isBootstrap','_timer','nextTurn','removeJobType','release','timerArmed','listTTL','_changefeed','resolution','Invalid\x20onDelete\x20rule\x20\x27','$regex','runtimeState','_durableIndexerDoc','setJobTypeSchema','import','sourceKey','lastIndexOf','installed','isType','_workers','note','_stops','./native-loader.js','rebuildBegin','getGcHorizon','system:proc','log\x20entry\x20message\x20required','dropFts','backupRoot','building','indexOf','handler','\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','fieldPath','streamClose','detachFeed','\x22:\x20the\x20build\x20another\x20process\x20took\x20over\x20made\x20no\x20progress\x20for\x2010\x20min','max','838700YqGJNH','refreshTtlBatch','max_tries','grouped','value','SCHEMA_COLLECTION_INVALID','failed','byteOffset','_license','setFlushNotify','logChange','OKDBSchemaCollectionError','isActive','_indexBuilds','mode','__ttlByKey','register','typeId','authenticated','license:removed','ensureDesired','Schema\x20validation\x20failed\x20for\x20','setEncryptionKey','parseBearer','okdb.http.listen(port)\x20in\x20each\x20worker.','job.tries\x20must\x20be\x20non-negative\x20int','INDEX_ALREADY_REGISTERED','must\x20be\x20an\x20object;\x20got\x20null','emit',':data','reencrypt:\x20env','read','pendingResponses','validate','durableEmbedderInfo','createEmbedder','_handleInProcess','_isOpenForIp','OKDBInvalidIndexKeyError','getTypeCount','processor:ready','randomUUID','Algorithm\x20factory\x20must\x20return\x20an\x20object\x20with\x20','orchestratorStarted','stopAutoCompactCheck','string','stringify','vector-search','_clockToChangeDb','index:','queue.worker(\x27','properties','_enqueueInTxn','sweepExpiredTTL','Unique\x20constraint\x20violated\x20on\x20','root','retry','set_null','embeddings:doc:status_change','timeMachine','number','Embedder\x20factory\x20must\x20be\x20a\x20function','servers','range','runGc','Use\x20module:{path,export}\x20alone,\x20or\x20handler:\x27<name>\x27\x20for\x20a\x20built-in.','createPipeline','_setTTLEntry','sort','_ensure','getClock','nextTick','_ack','claim_id','\x20references\x20','_getPeerState','createEnvironment','fetchPeer','quantum','readFieldMany','stack','mkdirSync','_assertFiles','ttl:set','FIELD_RESOLVER_PENDING','storageStats','Database\x20already\x20opened/closed','delta_limit','getRecord','priority','token','disable','processorsParticipating','dropped','asyncIterator','listBuckets','applyInterestDelta','offset','connectionCount','childTransaction','byIndex','Plugin\x20name\x20\x27','embedder','MCP_ERROR','~queue_payloads','_buffer','T_INTEREST','removeLink','describeChunk','retryable','running','onDo','compression','_flushIntervalTimer','_okdbAdminAttached','durableRebuild','_range','sha256','txnId','removeJob','_nodePrivateKey','removeJobLogsAfterCommit','_asArray','_warnUnknownOptions','uninstalled','prefix','build','469454tieCWX','INVALID_SCHEMA','auth','cause','debug','_licenseInterval','_localViewApi','$lt','MAX_SAFE_INTEGER','_statusEnv','uninstall','runRecord','uninstallEngine','files.upload:\x20stream','setMode','loginSelect','listen','getHistory','nodeKeys','job.id\x20must\x20be\x20string','put','drives','FTS_FLUSH_TIMEOUT','free','Error','setClaiming','~ref_violations','each\x20process()\x20entry\x20requires\x20a\x20non-empty\x20`type`','useReadTransaction','system:bus_state_change','stats','hasEnv','Foreign\x20key\x20violation:\x20','limit','_keyFns','finish','sortedDb','registerHandler:\x20name\x20must\x20be\x20a\x20non-empty\x20string','embeddings:embed:settled','_clearTTL','defaults','node:path','iterate','_windowCbs','encryption:key-changed','_tickCallback','creating','killAll','SYSTEM_CLOCK_CHANGE','doesExist','engineType','setLogSink','job','REBUILD_IN_PROGRESS','proc','payload','Engine\x20template\x20kind\x20must\x20be\x20\x22engine\x22\x20or\x20\x22pipeline\x22:\x20','bucket\x20must\x20be\x20object','enableNullTermination','_pumper','outgoing','STARTING','onUndo','restart','okdb-node:\x20unknown\x20bridge\x20op\x20','__ttlByExpiry','scopedName','emitClearDone','BAD_EMBEDDER_FACTORY','_store','ctxUpdateStatus','close','ensure:\x20fts\x20entry\x20missing\x20name\x20or\x20fields','_put','_indexBuild','pauseJobType','http.listen:\x20host\x20must\x20be\x20a\x20non-empty\x20string\x20or\x20a\x20non-empty\x20array\x20of\x20non-empty\x20strings','_blobPath','_settle','_commitSessionMutation','migrate','description','reducers','SESSION_TYPE_INDEX','killWorker','_lock','subscriptions-store:\x20open()\x20not\x20called','length','createBegin','awaitIdle','_baselines','$eq','idempotency_key','job.cron\x20must\x20be\x20string|null','host','\x27\x20on\x20type\x20\x27','peers','view\x20\x22','LICENSE_LIMIT_EXCEEDED','ensureTokensType','\x0a\x09\x09let\x20','handleError','addRaw','update','inputSchema','writerWatchdog','usedBy','_defaultEnvObj','~ttl:expiry','_advanceHlcOnRecv','TXN_END','targetKey','embedder\x20is\x20gone','_log','schema','paused','refTrackingDbs','FOREIGN_KEY_VIOLATION','getFast','INDEXER_DOC_DONE','metaDb','_sub','\x22)\x20before\x20open()','ensureFeed','_peerDb','bumpVersion','\x20must\x20be\x20','setPeerState','autoCompactTimerArmed','indexContent','_buckets','INVALID_STATE','getRun','runStart','active','_ensureEnv','isRunning','freeze','__ref_index','_rbuf','listTypes','flushTicket','ENCRYPTION_KEY_REQUIRED','node:util','enableAll','signal','_wsettle','_cursors','TYPE_NOT_REGISTERED','LICENSE_FEATURE_DISABLED','queue:clear-progress','puts','bootSyncedViews','ttlState','_busFacade','FTS_BUILD_CONTINUE','storeEnvPath','streamByHash','params','\x22\x20to\x20enable\x20it.','.\x20Only\x20primitives,\x20null,\x20Buffers,\x20and\x20arrays\x20are\x20allowed.\x20Got:\x20','job.backoff_multiplier\x20must\x20be\x20number\x20>=\x201','registerModule','job_type.defaults.','_normalizeOAuthAuthResult','resetViewBegin','job.buckets[].id\x20must\x20be\x20non-empty\x20string','getByPrefix','stopWorkerBegin','env:opened','~fts:envs','destroy','newListener','completeJob','when','processes','_onPoke','features','importFromFile','_sweepOrphanLogs','pushEphemeral',':txnRange','~log','iterator','fingerprint','_clearChunked','listRefViolations','$lte','VIEW_NOT_FOUND','_txnBuf','attachConsole','syncBlobs','_subscribed','warn','non-empty\x20string','cron','\x27\x20doesn\x27t\x20exist','_rootDb','releaseClaim','pin','subscriptions-store:\x20addInterest\x20on\x20unknown\x20session\x20','getInt32','_inlineClosureWarned','createSearch','_registrations','_writer','bulkRemoveChunk','_pending','txn:start','loop-lag','getStats','statusOpen','err','writeBlob','inNativeCall','let\x20position;\x20let\x20readString\x20=\x20','job_type.payload_schema.enforce\x20must\x20be\x20boolean','registerReducer','max_concurrency','jsonrpcCode','txn-commit','job_type.payload_schema\x20must\x20be\x20object|null','definition','_ensurePeerState','count','system:type_drop','job.bucket_tokens\x20must\x20be\x20int\x20>=1','processEverything()','DONE','indexer\x20engine\x20not\x20running:\x20\x22','SYSTEM_POKE','_txnIdAtSnapshot','open','processor:\x20quantum.module\x20must\x20be\x20a\x20string','processor:progress','resolveModelDims','byteLength','setKeyBuffer','_shouldApplyChange','algorithm\x20is\x20gone','importJSON','snapshot','_refCache','MINIMUM_KEY','array','_sweepInProgress','_initialize','trunc','planUpdateJob','createWorker','setTTL','created','write\x20batch:\x20missing\x20result','listModels','_pdb','processors','_assertOpen','getSecurityNotices','durableDocs','_id','\x20must\x20be\x20a\x20non-empty\x20string;\x20got\x20','abs','storeEnv','_typesDb','delete','deleted','call','getLegacyCursor','rebuild','existing','forceResync','_call','_durableEngineDoc','Plugin\x20must\x20have\x20a\x20name','refill_amount','resetReadTxn','__stateDb','dims','applyOps','txnDone','storage\x20adapter\x20is\x20gone','Feature\x20not\x20available\x20on\x20free\x20tier:\x20','acquiredAt','TXN_START','attachOKDB','describeAllTypesDetailed','listFtsEnvs','_admissionStarted','getEmbedderSchema','REVERSE_INDEX','fts:drop','MAXIMUM_KEY','takeBuildResult','isFeatureEnabled','cascade','login','createdBy','node:events','processor:\x20rebuild\x20must\x20be\x20a\x20function','errors','hasEmbedderFactory','reduce','run','enforce','hasApi','describeType','\x20>=\x200x80)\x20','processor','_create','dedupeMax','announceEnqueued','1267376jsLaeK','Key\x20is\x20too\x20large','lastTxnId','flushQuantum','buildsPending','VIEW_BUILD_STALLED','listening','\x22\x20not\x20found\x20in\x20~envs','unique','pid','ExtendedIterable','$size','__adminRelay','health','Unknown\x20transaction\x20action:\x20','driver','iterable','_connections','committed','_attached','dropIndex','VIEW_REBUILD_IN_PROGRESS','registerAlgorithmFactory','_keyListener','utf8Write','OKDBVersionMismatchError','node','_setTTL','intervalTimer','reducer','setModeApplied','job_type.defaults.priority\x20must\x20be\x20int\x20or\x20null','_fail','removeJobTypeSchema','a\x20Buffer\x20or\x20readable\x20stream','queue:done','reidentify','ingest','_ttlTimerAt','_read','noteListenAddr','BAD_PARAM','durableEngineDoc','engineStop','node:cluster','onDelete','~processes','current','sync','getSelfNode','localViewNames','percentile','updateJob','viewOp','setHostPlugins','dropType','_defaultEnv','setFilter','getFloat64','defineProperty','durableWorkerStats','openEnv','~emb:models','plugins','_seen','_subsV2Obj','off','getAuthOptions','_cmd','inactive','_drain','replaceInterests','durableTierLag','dirty','abort','setMaxListeners','durability','ready','listPeers','expiresAt','unregisterTarget','for','flushPoll','limits','buffer','pump','Unsupported\x20transaction\x20action:\x20','__peers','storeGetDiffsInRange','createReadStream','valuesForKey','RELAY_FULL','compareKeys','ctxSignal','type','node:stream','listRoutes','toJSON','\x27\x20is\x20already\x20registered','compactLock','~sub','limitOf','clearDefaultTTL','docs','ies','unreg','EMBED_PENDING','describeIndex','embeddings:indexer:doc:done','_customReducers','\x20│\x20','resolveBackupDest','callRows:\x20unexpected\x20row\x20stride\x20','req','status','addSSE','captureStackTrace','NOT_FOUND','_doHooks','Can\x20not\x20serialize\x20async\x20iterables\x20without\x20first\x20calling\x20resolving\x20asArray','\x27:\x20','drainDeadlineMs','match','\x20===\x204)\x0a\x09\x09\x09\x09','_path','useReadTransaction\x20range\x20consumed\x20after\x20the\x20creation\x20turn\x20—\x20the\x20consistent\x20view\x20was\x20','_timerObjs','describeIndexes','lookupByName','equal','type:registered','_onPending','reconcilePeer','bootLogMark','isDeepStrictEqual','fts:reset','__warned','ENGINE_INVALID_DRIVER','unpin','listLinks','relay:error','boolean','$exists','SYSTEM_STOPPED','bucket.tokens\x20must\x20be\x20int\x20>=\x200','actionCount','detachConsole','envName','refill_every','compactBegin','bus:env_release','_sinks','addEventListener',':\x20key\x20[','apiCall','makeOkdb','hasUniqueViolations','setPrototypeOf','writerStatus','scheduled','index:reset','requires','indexStats','INVALID_VALUE','code','getOpenWarning','$not','_reconcileDesired','durableRetryDoc','embed-worker','_ttlCompositeKey','bridge','status_message','_ensureDbs','enqueue\x20txn\x20belongs\x20to\x20a\x20different\x20environment','load','setDefaultTTL','pinned\x20range\x20iterator\x20held\x20across\x20an\x20await/turn\x20boundary.\x20This\x20surface\x20cannot\x20resume\x20','upload','~files','importBlobs','patchConfig','TXN_INVALID_OP','hasDriver','stop','setInt32','tries','mcp','timeoutMs','(no\x20unambiguous\x20bookmark)\x20—\x20consume\x20it\x20in\x20one\x20synchronous\x20block:\x20materialize\x20(e.g.\x20','__okdb','_handle','exclusiveStart','job_type.defaults\x20must\x20be\x20object|null','getRefViolation','_onItem','schema:drop','SKIP','system:poke','isInteger','body','_info','typeStats','job.type\x20must\x20be\x20non-empty\x20string','ENGINE_DRIVER_MISSING_START','_enableChangelog','$type','INDEXER_DOC_FAILED','_jsFactories','shouldApplyChange','started','getPeerState','txn','OKDBTypeAlreadyRegisteredError','-worker','nidFor','_nodePublicKey','__absent','typeSubDbs','setAddress','dbs','NativeLock','TXN_ENV_MISMATCH','STOPPING','~engines','_hybridQuery','admission','done_ttl','shift','streamRead','authenticateToken','processor:resumed','getRange','_autoCompact','refItemsDbs','restrict','embedderCall','extend','meta','subscriptions','upsertLink','_dupArg','undefined','.\x20Primary\x20keys\x20must\x20be\x20string\x20or\x20number.\x20Got:\x20','isEnabled','message','OKDBAlreadyExistsError','_settleRead','standalone','getNodeRecord','sseSetHeader','listRuns','view','BAD_PLUGIN','unregisterExtractor','recordPeerAck','ERROR','allSettled','claim','INDEXER','readHashRange','\x20must\x20be\x20null\x20|\x200\x20|\x20positive\x20integer','inclusiveEnd','ctxEmit','admin','address','schema:set','_flushTimer','license:invalid','_plugins','markSnapshotComplete','maxExtra','_openLocalPeerDb','addBucket','\x27\x20export\x20\x27','Symbol.asyncIterator','refreshReadTxn','SEARCH','findOwner','_subscribeEvent','_native','getValues','__logsDb','registerExtractor','getRaw','removeBucket','system:clock_change','hlc','CREATED','bus:poke','vec:',':\x20unknown\x20option\x20\x27','_isWriter','createSession','handle','send','_syncLock','dropSchema','Invalid\x20primary\x20key\x20type:\x20','OKDB','VECTOR_SEARCH_READY_TIMEOUT','fields','field:resolver_registered','written','draining','getJob','inline','log\x20entry\x20fields\x20must\x20be\x20object|null','_draining','continueIteration','_write','processorsStop','assign','nodeKey','resumeJobType','okdb._openEnvLazy:\x20env\x20\x22','refreshTtl','http','reencrypt','_meta','pumping','function','addrs','halted','created_at','isBootstrap','_startAutoCompactCheck','changeEncryptionKey','String\x20does\x20not\x20fit\x20in\x20target\x20buffer','$pending','effective','isLoopbackIp','\x27\x20did\x20not\x20return\x20a\x20valid\x20instance','DOC_STATUS_CHANGE','\x22\x20build\x20by\x20another\x20process\x20ended\x20\x22','snapshotScan','toLowerCase','_hlc','embeddings:strategy:registered','\x22\x20tokens\x20too\x20large','OKDBProcessor','PUT','license:added','resolveField:\x20options.batch\x20must\x20be\x20a\x20function','pipelines','clone','$near','_startClaimedSoon','context','__HOLD__','_gcTimer','pumpEnvSync','_noChangelog',']\x20already\x20maps\x20to\x20\x27','bootSyncedViewsInline','validateBlobIntegrity','_assertRangeOptions','~log_entry','OKDBIndexNotRegisteredError','setPosition(p)\x20{\x20position\x20=\x20p\x20},','embedderNew','clocks','TXN_CLOSED','_emit','(?:/(.*))?','__esModule','_resolveFilter','_ackDb','_envs','handleDurableClock','EMBEDDER','getResolvedOptions','checkSignals','getDefaultTTL','_listenAddr','_emitProc','hasStopFn','$defs','refs','from','join','queue-worker','incoming','timestamp',':keyToChange','system:env_release','_closedHandle','\x22\x20requires\x20a\x20`handler`\x20function','embedBatch','throw','nativeBinaryPath','end','balanced','getOidcDiscovery',':useReadTransaction','ensure:\x20type\x20is\x20required','quarantinedEnvs','search','inBatch','no_action','_onStop','\x20does\x20not\x20exist','encodeInto','\x22\x20must\x20return\x20{\x20embed(input):\x20Promise<Float32Array>\x20}','registerModel','registerQuantum:\x20load\x20must\x20be\x20a\x20function','setTtl','_afterDurable','_closeEnvLocally','job_type.defaults.retry_delay\x20must\x20be\x20int\x20>=\x200\x20or\x20null','$gte','queue:clear-done','pauseAllAndDrain','isWellFormed','getMaxBodyBytes','_blobStream','defaultTTL','~file:blob_status','_dedupeMax','connected','retryFailed','_syncExpiresAtField','bucket_tokens','ttl','_buf','setCursor','_openEnvLazy','3.3.0','durableMarkFail','patch','items','process','byLabel','reconcile','engineStart','name','$mod','job.tags\x20must\x20be\x20array','notes','_ttlTimeout','wake','bucket.id\x20must\x20be\x20non-empty\x20string','createWriteFacade','_viewRebuildChain','_reconcilePeer','OKDBUniqueConstraintError','VERSION_MISMATCH','_set','_envSyncStop','details','isSnapshotComplete','stateNames','pinned','_callRows','getMany','attachFeed','_jsSchemas','envNames','Expected\x20catch\x20callback\x20to\x20be\x20a\x20function','ENGINE_INVALID_TEMPLATE','(?:','recommended','filter','getJobType','bucket.capacity\x20must\x20be\x20int\x20>=\x200','Missing\x20plugin:\x20','PLUGIN_DEPENDENCY_MISSING','_ttlByKey','_pokeHandler','getIndexStatus','__after','clearTTL','headers','handleResult','resetting','ctrl','role','_oauthConfig','query','CLI\x20(`okdb\x20listen`),\x20or\x20use\x20Node\x27s\x20built-in\x20`cluster`\x20module\x20and\x20call\x20','listJobTypes','removeEnvironment','some','module','_listeners','vector\x20search\x20\x22','SCHEMA_VALIDATION_FAILED','_makeIterator','ref:violation_resolved','entries','_macro','getPosition()\x20{\x20return\x20position\x20},','UNKNOWN_RANGE_OPTION','534558SSTilh','$ref','processorHold','getKeys','subsBuilt','Unknown\x20OKDB\x20transaction\x20error','_undoHooks','Environment\x20\x22','removeSync','assertStartAllowed','drivers','storeGetHead','takeCompactResult','(source)\x20=>\x20{','push','write','unref','_listPeers','updated','find','_setKey','_pokeListener','resetIndex',':index:','markJobComplete','isBuffer','tick','_durableIndexerDocs','catalog','reject','field\x20resolver\x20request\x20still\x20pending','group','$where','blobPath','syncLock','hasChangelog','prevDb','bucket.refill_every\x20must\x20be\x20int\x20>=\x200','_makePipelineApi','_lookupByTokenHash','__blobStatusDb','near','\x20=\x20finishUtf8(','engine:','startsWith','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.','job_type.defaults.buckets\x20must\x20be\x20array|null','_wrap','@harperdb/extended-iterable:skip','signalWant','\x20returned\x20no\x20key','getSession','tokens','_logEnv','OKDBInvalidPrimaryKeyError','isFinite','envs','okdb.noFast','_claimGated','forceAfterMs','importFromStream','TXN_INVALID_ACTION','select','registerEnv','applyChange','remoteAddress','getTTL','staticCall','consumeLoginState','_readBuf','removes','geoConfig','_tools','_adminRelay','_admissionTimer','_settleWaiters','_formerOrigins','loaded','rowKey','ttlSetEntry','continueOnRecoverableError','FTS_READY_TIMEOUT','_key','fts:','resolveField:\x20a\x20resolver\x20or\x20options.batch\x20is\x20required','invalid\x20job.status:\x20','registerHandler:\x20fn\x20must\x20be\x20a\x20function','clients','_status','setNative','lastClock','node:crypto','itemsGroups','_scheduleFlush','job.priority\x20must\x20be\x20int','_readViewExpired','index','options','replaceMember','countByIndex','\x20already\x20exists','_listening','spki','tryClaimTokens','a\x2032-character\x20key\x20or\x20a\x20function\x20returning\x20one','useVersions','_detachLog','_feed','viewDb','hybridQuery','~queue_logs','updateBucket','sections','_closeReadTransaction','reg','$within','exportJSON','OKDBIndexAlreadyRegisteredError','WriteBatch','lookupAllByName','replace','_detachLogSink','_pendingLocal','queue:reconciled','unpack','index:progress','type:drop','keyFor','start','remote','turns','holder','drop','digest','getEmbedderFactory','job_type.payload_schema.definition\x20must\x20be\x20object','isOAuthEmailAllowed','map','ensureType','total','enqueue','setDeltaLimit','nextExpiry','encryptionKey','claimGated','split','trim','setCurrentDb','samplePayloads','hasNativeBatch','bus','\x20must\x20be\x20number','okdb','registerDriver','_quantumGate','INVALID_ARGUMENT','size','listRecords','_build','setReadBuffer','registerFts','busEmit','registerViewReducer',':emb:','rows','getMeta','Cannot\x20set\x20enforce\x20schema\x20on\x20','resume','TXN_ROLLBACK','_started','process(filter)','kind','ITEM_CREATE','error_stack','keys','label','enforced','diag','fts:registered','catch','callStatic','values','appendJobLog','Referenced\x20key\x20\x27','$in','isIndex','$nor','repair','ensure','markJobFail','_detachConsole','registerQuantum','retry_delay','removeInterest','callAsync','dropping','_markSeen','forEach','job.idempotency_key\x20must\x20be\x20string|null','-----BEGIN\x20PUBLIC\x20KEY-----\x0aMCowBQYDK2VwAyEAacrkExPrhxNVHyeQBLDwg8xfm1OwyxDAPNdGXABYS2s=\x0a-----END\x20PUBLIC\x20KEY-----','tags\x20must\x20be\x20array\x20or\x20string','server','isWriter','describeAllTypes','_envIndexDb','cursorKey','runDrop','_dedupeKey','getBinary','clear','Engine\x20driver\x20for\x20\x22','_onFeedChange','actions','\x27\x20at\x20','filterSessionsForType','formerOrigins','async','bigint','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.','_scheduleTTLSweep','clearSync','flush','groupsDb','ITEM_REMOVE','_push','_rawTxnBuf','taken-over','namespace','HTTP_CLUSTER_REMOVED','failures','_maxConnections','compare','DEFAULT_EVENTS','assertQueryOptions','reason','INDEX_PROGRESS','clock','_teardownNative','Transaction\x20already\x20closed','_kbuf','validateRouteInput','aborted','api','getAll','getEngine','type:','views','invalid\x20job_type.status:\x20','concat','vecRemove','_awaitBuild','~queue_jobs','log\x20entry\x20must\x20be\x20a\x20string\x20or\x20object','storage\x20adapter\x20has\x20no\x20method\x20','subscribe','\x22\x20is\x20not\x20allowed\x20(it\x20evaluates\x20code);\x20use\x20declarative\x20operators\x20instead','listIndexKeys','_ts','clearStuck','timer','processor:\x20cannot\x20combine\x20a\x20closure\x20handler\x20with\x20module:{path,export}.\x20','ttlStats','encryption\x20key\x20function\x20failed:\x20','_lazyPinned','INDEX_HAS_CONSUMERS','status_code','create','IPv4','$or','.\x20Add\x20a\x20license\x20that\x20includes\x20\x22','ms\x20mean=','TXN_ERROR','backoff_multiplier','stopAll','files.upload:\x20id','job_type.defaults.max_tries\x20must\x20be\x20int\x20>=\x201\x20or\x20null','_changeToClockDb','buildStep','job.bucket\x20must\x20be\x20string|null','startNewEnginesFromSync','_nm','forgetDb','_lookupAllByName','/?$','updated_at','SUB_ENV','_registerType','durableStats','inflight','preparer\x20must\x20be\x20a\x20function','listIndexes','last','capacity','relay','selfKey','allowUnsafe','markJobProgress','setStorageResolver','resolveField:\x20resolver\x20must\x20be\x20a\x20function','ctxProgress','der','lock','sift','before\x20any\x20await,\x20chunk\x20with\x20{limit,\x20start,\x20exclusiveStart},\x20or\x20drop\x20snapshot:true.','TYPE_ALREADY_REGISTERED','isSetupMode','isWorker','guardSnapshotIterable','disableAll','formerIds','compactStorage','_getFast','listPath','setSchema','engineUninstall','sessionId','QUERY_OPERATOR_FORBIDDEN','durableCursorFloor','references','compiled','\x20>\x204)\x20{\x0a\x09\x09\x09if\x20(','rollback','removed','patchSelf','authorization','INVALID_TYPE_NAME','embeddings:indexer:ready','__ttlCancelledGen','REMOVE','getIndexMeta','__tokenSecret','assertCreateAllowed','_makeLazyVectorAdapter','_getOidcDiscovery','subarray','toFixed','recordRun','PLUGIN_NAME_CONFLICT','docEntry','attach','failed_ttl','error','resolvedOptions','hasOwnProperty','Type\x20\x22','application/octet-stream','\x20of\x20env\x20\x22','batch','_setPeerState','export','INVALID_OPTIONS','reset','setKick','key','logCap','_role','_refIndexDb','\x27\x20already\x20registered','_viewState','OKDBError','job.','invalid\x20log\x20level:\x20','shutdownTimeout','reverse','encryption\x20key\x20function','registerIndex','bus:drain','item','target','readTransaction','dupSort','no\x20write\x20has\x20landed.\x20Writes/commit\x20are\x20unaffected.','algorithm\x20has\x20no\x20method\x20','getPeerAcks','transaction','events','sseSend','vectorStoreStats','routes','offsetOf','Cannot\x20register\x20plugins\x20after\x20start','Can\x20not\x20synchronously\x20iterate\x20with\x20promises\x20as\x20iterator\x20results','_addr','bus:proc','setAutoCompact','msgpackr','index:registered','exists','registerIndexDeferred','dataEnv','socket','item:pending','getLoginConfig','_sync','_readerCheckInterval','registerEmbedderFactory','\x22\x20not\x20found','runtimeDeclarations','getChanges','backup','readKey','_localViews','done','tag\x20too\x20long','once','ms\x20busy=','bootRuntime','Engine\x20driver\x20type\x20must\x20be\x20a\x20non-empty\x20string','~system','job\x20id\x20required','openDB','stopWorkerAbort','apply','registerTemplate','_durableIndexerStats','getUniqueViolation','immediate','then','readString\x20}','\x20ms','before\x20any\x20await\x20—\x20or\x20opt\x20into\x20useReadTransaction:\x27tolerant\x27\x20to\x20keep\x20reading\x20while\x20','meanwhile\x20—\x20the\x20frozen\x20view\x20cannot\x20be\x20kept.\x20Materialize\x20synchronously\x20(e.g.\x20Array.from)\x20','doc_status:','VIEW_BUILD_FAILED','vector-search\x20engine\x20not\x20running:\x20\x22','action','_waitNative','compact','_processorStops','__fts:','_stopAutoCompactCheck','OKDBNotFoundError','issueToken','Too\x20many\x20concurrent\x20connections','isSync','fromCharCode','exports','ref:violation','sourceType','gateQuanta','engines','\x20was\x20removed\x20in\x20okdb\x202.0.\x20Use\x20processors:true\x20for\x20plain\x20lease\x20participation.\x20See\x20docs/upgrade-2.0.md.','processor:retry','ENV_NOT_FOUND','writeKey','_wb','buckets','prefetch','OKDBNotImplementedNativeError','return\x20fromCharCode(','OKDBInvalidValueError','TypeError','allocUnsafeSlow','_ttlByExpiry','registerHandler','_deliverEvent','registerChunkStrategy','tags','_resolveKeys','Array.from)\x20before\x20any\x20await.','_logsDb','__lock','tierList','setUint32','_viewCache','_np','recomputeFields','386519EUpkUA','readerCheck','default','opts','KNOWN_OPTIONS','ITEM_UPDATE','getEntry','_writeBlob','durableClock','oauth','ensureTypeEnv','Database\x20not\x20started','txnUndone','\x27\x20does\x20not\x20exist','tag','pending','.\x20Valid:\x20','hash','\x20actions=','dropAll','INVALID_INDEX_KEY','dup','lockHeld','_nextExpiry','_modeApplied','released\x20at\x20the\x20first\x20await/turn\x20boundary.\x20Consume\x20ranges\x20before\x20any\x20await,\x20or\x20','item:create','VIEW_BOOTSTRAP_CANCELLED','getIndexCount','IPv6','json','item:','_isClosedEnvError','listProviders','_settled','job.max_tries\x20must\x20be\x20int\x20>=\x201,\x20null\x20(unlimited)\x20or\x20Infinity','changeToClockDb','pipelineFamily','createPublicKey','evict','there\x20is\x20no\x20`http`\x20option\x20—\x20the\x20HTTP\x20server\x20exists\x20only\x20when\x20db.http.listen(port)\x20is\x20called','onDone','getPrototypeOf','mapError','_db','commit','ringSize','flatMap','_bootLog','BAD_ALGORITHM_FACTORY','_settleWrite','getCursor','_getRaw','utf8','spec','files','ALL_EVENTS','unique:violation_resolved','waiting','Server','lastError','chunk\x20strategy\x20must\x20be\x20a\x20function',':clockToChange','enable','sweepOrphanLogs','\x27\x20is\x20not\x20a\x20function','ref','_isFar','onLicenseExpired','busState','files.registerExtractor:\x20extractor\x20must\x20be\x20a\x20function','taken','_callMacro','_subsV2','__syncOverride','_isOpen','_quantum','targetType','HIGH_SENTINEL','_clockListener','\x22\x20was\x20removed\x20while\x20it\x20was\x20being\x20built','processRest()','maxBodyBytes','resetFts','ttl:expired','job.claim_id\x20must\x20be\x20string|null','listVectorStores','pause','Query\x20operator\x20\x22','OKDBForeignKeyDeleteError','drainJobType','job_type.','\x22\x20not\x20ready\x20after\x20','_locks','toISOString','processor:\x20module.path\x20is\x20required','job_type.max_concurrency\x20must\x20be\x20int\x20>=\x201\x20or\x20null','processor:error','registerTarget','vector','localViewStats','_remove','getStateAt','instance','_handlePending','_keepAlive','ceil','has','job.buckets\x20entries\x20must\x20be\x20objects','view:progress','listNodes','gc.','regObject','_logChange','PLUGIN_ALREADY_REGISTERED','fromEntries','bootSyncedEngines','_tx','raw','getRunningEngine','HTTP\x20server\x20already\x20running','closeSession','doc','$streamId','getVector','tryAcquire','materialize\x20them\x20(Array.from)\x20while\x20the\x20view\x20is\x20live.','_timerHandle','OKDBIndexHasConsumersError','HTTP_ERROR','indexReady','hasIndex','209476GrdyHZ','sparse','licenses','embed','head','stopHandle','vectorSpace','kick','_isReader','_begin','change','removeListener','unresolveField','durableMarkDelete','patchDeclaration','payload_schema','registerType','getIndex','boundary\x20(a\x20pinned\x20read\x20txn\x20blocks\x20LMDB\x20free-page\x20reuse).\x20Do\x20all\x20consistent\x20reads\x20','storeGetHeadCount','asArray','removeTxn','kickOwnedBy','dataView','get','detach','previewTemplate','Cannot\x20openEnv(\x22','explainIndex','/([^/]+)','node:http','gen','primaryOkdb','emitProc','getDefinition','exportName','stopped','setProcessingConfig','refreshThresholdMs','level','Cannot\x20delete\x20','stream','listViolations','listTemplates','hasType','createAndStartEngine','processorsStart','position','txn:end','storeGetTotalHeadCount','starting','job.error_stack\x20must\x20be\x20string|null','process()\x20entry\x20\x22','turn','list','embeddings','normalizeOAuthAuthResult','fts','_root','_reconcile','isHeld','envSize','bootSyncedPipelines','getBucket','job.tag\x20must\x20be\x20string|null','null','includes','enabled','claim_expires','listBlobStatus','job.status_message\x20must\x20be\x20string|null','isTypeEmpty','slice','transactionSync','return','_staticCall','record','loop-lag\x20','exportEnvsToStream','a\x20string','indexer','_deliver','install','library\x20(okdb\x20node-model\x202.0).\x20For\x20multi-process\x20HTTP\x20serving\x20use\x20the\x20okdb\x20','_getNodeRecord','txn:rollback','searchDocs','handlerName','__notImplementedNative','Buffer','resetIndexBegin','.\x20The\x20active\x20license\x20does\x20not\x20enable\x20\x22','object','getViolation','ONLINE','finished','enqueueClaim','header','job\x20must\x20be\x20object','_tids','interest','_rebuilding','~ttl:key','gcOrphanedBlobs','log','geoQuery','reconcilePeerPull','symbol','FOREIGN_KEY_DELETE_RESTRICTED','storePayload','removeEventListener','add','_getType','mean','test','locks','_compactLock','granId','queue','resolveField','Plugin\x20\x27','native','next','fetchRemoteDelta','customReducerNames','path','debounceTimer','use','callBatch','_ringSize','workerState','getTemplate','_running','TXN_INVALID_OPS','_ttlParseComposite','preview','fetch','charCodeAt','ttlTimer','_http','maxConnections','nativeCode','embeddings:indexer:doc:failed','constructor','$all','cancelJob','env:removed',',\x20got\x20','port','_typeKeys','setWake','returnRecoverableErrors','endsWith','workers','uploadTxn','sessionsForKey','createEngine','_buildOwnRow','\x20document(s)\x20reference\x20it\x20with\x20onDelete:restrict','_ensureTokensType','resolvedFields','_low','info','putSync','_tokenSecret','fromBufferKey','\x20documents\x20fail\x20validation','ensure:\x20view\x20entry\x20missing\x20name\x20or\x20definition','embeddings:indexer:flushed','bucket','sync:apply','__cmd','claim\x20requires\x20non-empty\x20type','resumeAllAfterDrain','INVALID_PRIMARY_KEY','Algorithm\x20factory\x20must\x20be\x20a\x20function','Can\x20not\x20serialize\x20key\x20of\x20type\x20','_flushDebounce','storeEnvName','engine','now','_env','state','readField','isReader','\x20(required\x20by\x20','new','prototype','partially-ready','db.processors.','$ne','failJob','vecPut','createLoginState','OKDBSchemaValidationError','version','maxMs','true','Engine\x20template\x20id\x20must\x20be\x20a\x20non-empty\x20string','ftsQuery','READER_HELD_ACROSS_AWAIT','getUniqueViolations','QUEUE_WORKER_REMOVED','REF_VIOLATION_RESOLVED','getStatus','afterTurn','env','buildPending','92502uuljRi','hook','_closed','http.listen({workers/makeOkdb/primaryOkdb})\x20is\x20no\x20longer\x20supported\x20in\x20the\x20','turnWaiters','_ensureTypeEnv','publicKey','exportBuf','remove','hasBody','ITEM_PENDING','\x20=\x20source[position++]\x0a\x09\x09\x09else\x0a\x09\x09\x09\x09return\x20fromCharCode(','functions','$gt','resolve','spawn','_ttlState','registerPreparer','stateInfo','_callPacked','~processes:cmd','_uid','data','_blobsDir','listAlgorithms','okdb-node:\x20unknown\x20callback\x20id\x20','set',',\x20source)\x0a\x09\x09}\x20else\x20{\x0a\x09\x09\x09if\x20(','cleanup','getSchema','guard','existsSync','alg','feature','addInterest','Engine\x20template\x20build()\x20is\x20required:\x20','_openAckDb','worker','startAutoCompactCheck','bucket\x20\x22','_handlerName','registerBucketProjection','Blob\x20not\x20found:\x20','OKDBForeignKeyError','bind','origin','flushTimeoutError','_systemEnv','STOPPED','setPeersFn','authenticateRequest','job_type.defaults.ttl\x20must\x20be\x20int\x20>=\x200\x20or\x20null','_stopFor','job_type.id\x20must\x20be\x20non-empty\x20string','min','runPoll','OKDBTypeNotRegisteredError','startIndex','setLastClock','durableMarkDone','tolerant','~lock','ctxHeartbeat','pressure','Date','encryptionKeys','a\x20non-empty\x20string','STARTED','exportBlobs','ms/','$and','node:fs','calculateDelta','_facade','job_type.defaults.backoff_multiplier\x20must\x20be\x20number\x20>=\x201\x20or\x20null','privateKey','_handles','ctxLog','system','job\x20type\x20must\x20be\x20object','getCount','whenSettled','retryJob','_blobStatusDb','drain'];_0x49fd=function(){return _0xee5233;};return _0x49fd();}function requireKeyenc(){const _0x48b000=_0x2d5353;if(hasRequiredKeyenc)return keyenc;hasRequiredKeyenc=0x1;const {writeKey:_0x486de0}=requireDist(),_0x1c47ec=0x7ba,_0xeefb12=0x1000;function _0x2ad51c(_0x5da6ff,_0x1ff97a){const _0x2bdb94=_0x36a2;switch(typeof _0x5da6ff){case _0x2bdb94(0x84a):return _0x5da6ff[_0x2bdb94(0x192)]<=_0x1c47ec&&_0x5da6ff[_0x2bdb94(0x40f)]();case _0x2bdb94(0x859):case _0x2bdb94(0x2ff):return!![];case _0x2bdb94(0x712):if(_0x5da6ff===null)return!![];if(Array[_0x2bdb94(0x7e3)](_0x5da6ff)){if(_0x1ff97a>0x8||_0x5da6ff['length']>_0x1c47ec)return![];for(let _0x32709b=0x0;_0x32709b<_0x5da6ff[_0x2bdb94(0x192)];_0x32709b++)if(!_0x2ad51c(_0x5da6ff[_0x32709b],_0x1ff97a+0x1))return![];return!![];}return Buffer[_0x2bdb94(0x478)](_0x5da6ff)&&_0x5da6ff[_0x2bdb94(0x192)]<=_0x1c47ec;default:return![];}}function _0x141bea(_0x271c6a,_0x3bb8fb){const _0x364eb0=_0x36a2,_0x81b529=typeof _0x271c6a;if(_0x81b529==='string'){if(_0x271c6a[_0x364eb0(0x192)]>=0x40||!_0x271c6a[_0x364eb0(0x40f)]()){if(!_0x2ad51c(_0x271c6a,0x0))return-0x1;}}else{if(_0x81b529!=='number'){if(Array['isArray'](_0x271c6a)?_0x271c6a[_0x364eb0(0x192)]===0x0||!_0x2ad51c(_0x271c6a,0x0):!_0x2ad51c(_0x271c6a,0x0))return-0x1;}}let _0x31ddeb;try{_0x31ddeb=_0x486de0(_0x271c6a,_0x3bb8fb,0x0);}catch{return-0x1;}return _0x31ddeb>0x0&&_0x31ddeb<=_0x1c47ec?_0x31ddeb:-0x1;}return keyenc={'encodeKey':_0x141bea,'KEY_BUF_SIZE':_0xeefb12,'NO_FAST':Symbol(_0x48b000(0x498))},keyenc;}var okdbHlc,hasRequiredOkdbHlc;function requireOkdbHlc(){const _0x523bcf=_0x2d5353;if(hasRequiredOkdbHlc)return okdbHlc;hasRequiredOkdbHlc=0x1;const _0x59b003=0x400,_0x28e5fc=_0x59b003-0x1,_0x3601db=0xea60;function _0x23219f(_0x4bcbc4,_0x50a24b){const _0x11bd53=_0x36a2;return _0x4bcbc4*_0x59b003+Math['max'](0x0,Math[_0x11bd53(0x7bc)](_0x50a24b,_0x28e5fc));}function _0x418ea4(_0x4c248f){const _0xc583ee=_0x36a2,_0xce0612=Math[_0xc583ee(0x81c)](0x0,Number(_0x4c248f)||0x0),_0x25cbfa=_0xce0612%_0x59b003,_0x4749d1=(_0xce0612-_0x25cbfa)/_0x59b003;return{'pt':_0x4749d1,'l':_0x25cbfa};}function _0x22bad0(_0x153a97,_0x1a6e90=Date[_0x523bcf(0x76a)]()){const _0xd82ceb=_0x523bcf,{pt:_0x4ddd41,l:_0xa099a6}=_0x418ea4(_0x153a97),_0x4ca972=Math['max'](_0x4ddd41,_0x1a6e90),_0x2fa927=_0x4ca972===_0x4ddd41?Math[_0xd82ceb(0x7bc)](_0xa099a6+0x1,_0x28e5fc):0x0;return _0x23219f(_0x4ca972,_0x2fa927);}function _0x2d4453(_0x1eb885,_0x24eea3,_0x2a4db7=Date[_0x523bcf(0x76a)]()){const _0x9258b4=_0x523bcf,{pt:_0x1f81b7,l:_0x2c67f2}=_0x418ea4(_0x1eb885),{pt:_0x650674,l:_0x8f7462}=_0x418ea4(_0x24eea3),_0x40b259=Math[_0x9258b4(0x81c)](_0x1f81b7,_0x650674,_0x2a4db7);let _0x35a182;if(_0x40b259===_0x1f81b7&&_0x40b259===_0x650674)_0x35a182=Math['min'](Math[_0x9258b4(0x81c)](_0x2c67f2,_0x8f7462)+0x1,_0x28e5fc);else{if(_0x40b259===_0x1f81b7)_0x35a182=Math[_0x9258b4(0x7bc)](_0x2c67f2+0x1,_0x28e5fc);else _0x40b259===_0x650674?_0x35a182=Math[_0x9258b4(0x7bc)](_0x8f7462+0x1,_0x28e5fc):_0x35a182=0x0;}return _0x23219f(_0x40b259,_0x35a182);}function _0x2d657b(_0x23d4f4,_0x451b4f){const _0x1e9587=Number(_0x23d4f4)||0x0,_0x3eb639=Number(_0x451b4f)||0x0;if(_0x1e9587<_0x3eb639)return-0x1;if(_0x1e9587>_0x3eb639)return 0x1;return 0x0;}function _0x565f70(_0x22bc5f){return _0x418ea4(_0x22bc5f)['pt'];}return okdbHlc={'send':_0x22bad0,'recv':_0x2d4453,'compare':_0x2d657b,'toMs':_0x565f70,'encode':_0x23219f,'decode':_0x418ea4,'SCALE':_0x59b003,'L_MAX':_0x28e5fc,'DRIFT_MAX':_0x3601db},okdbHlc;}var env,hasRequiredEnv;function requireEnv(){const _0x4e67d6=_0x2d5353;if(hasRequiredEnv)return env;hasRequiredEnv=0x1;const {fromArray:_0x10c8a8,chunkedRange:_0x1665ed,pinnedChunks:_0x1bc2c5,claimPrefetch:_0x3cea51}=requireIterable(),{reclass:_0x166499,NotImplementedNative:_0x3ab58c,OKDBError:_0x462cf0,optionsArg:_0x3702c7}=requireErrors(),{OKDBViews:_0x96f27f}=requireViews(),{OKDBQueue:_0xafdba6}=requireQueue(),{OKDBTimeMachine:_0x264fe9}=requireTimemachine(),_0x5a9d16=_0x92a57d=>{const _0x4800d3=_0x36a2;try{return!_0x92a57d[_0x4800d3(0x825)]||_0x92a57d[_0x4800d3(0x825)][_0x4800d3(0x260)]('timeMachine');}catch{return!![];}},{OKDBFiles:_0x2770b7}=requireFiles(),{OKDBEngines:_0x5105f8,OKDBPipelines:_0x58fad6}=requireEngines(),{OKDBFunctions:_0x3f84c2}=requireFunctions(),_0x51b4df=requireProcessor(),{RawDb:_0x2b4711}=requireRawdb(),_0x2c3b7f=requireBridge();let _0x524230=null;const _0x42064b=()=>_0x524230||=requireOkdbTransaction(),_0x1408da=(..._0x36b186)=>requireOkdbGuardedRange()[_0x4e67d6(0x592)](..._0x36b186),_0x4248e9=Buffer[_0x4e67d6(0x3ed)]([0xff]),_0x3924ea=process.env.OKDB_NATIVE_RAW_READS!=='0',_0x156629=_0x3924ea&&process.env.OKDB_NATIVE_FAST_GET!=='0',{NO_FAST:_0x1b1955}=requireKeyenc(),_0x22d911=new Set(_0x3924ea?[_0x4e67d6(0x35a),_0x4e67d6(0x120),_0x4e67d6(0x450),'getChanges',_0x4e67d6(0x462)]:[]),_0x296d11=new Set([_0x4e67d6(0x6ce),'getEntry',_0x4e67d6(0x438),_0x4e67d6(0x35a),'getKeys',_0x4e67d6(0x38b),_0x4e67d6(0x7d6),_0x4e67d6(0x1e2),_0x4e67d6(0x6c7),_0x4e67d6(0x120),'countByIndex',_0x4e67d6(0x450),_0x4e67d6(0x548),_0x4e67d6(0x71f),_0x4e67d6(0x863),'getChanges',_0x4e67d6(0x21b),_0x4e67d6(0x76a),_0x4e67d6(0x6e2),_0x4e67d6(0x1c7),_0x4e67d6(0x6b5),_0x4e67d6(0x447),'getIndexMeta',_0x4e67d6(0x436),_0x4e67d6(0x2fc),_0x4e67d6(0x77f),_0x4e67d6(0x30e),_0x4e67d6(0x5fe),_0x4e67d6(0x7a3),_0x4e67d6(0x713),_0x4e67d6(0x6e0),'getRefViolation','listRefViolations',_0x4e67d6(0x4a1),_0x4e67d6(0x7fd),'ttlStats',_0x4e67d6(0x3e7),_0x4e67d6(0x425),_0x4e67d6(0x733),'id',_0x4e67d6(0x274),_0x4e67d6(0x391),_0x4e67d6(0x756),'readField',_0x4e67d6(0x86c)]),_0x5e791f=new Set([_0x4e67d6(0x4df),'end',_0x4e67d6(0x5ca),_0x4e67d6(0x15c),_0x4e67d6(0x87e),_0x4e67d6(0x378),_0x4e67d6(0x332),'versions','values',_0x4e67d6(0x22c),'transaction',_0x4e67d6(0x5c0),_0x4e67d6(0x2cc),_0x4e67d6(0x139)]);function _0x280303(_0x17d90e,_0x1bd5b3,_0x568a41){const _0x3d95fe=new Map();return(_0x5d46c5,_0x51b475)=>{const _0x44d015=_0x36a2,_0x12a3c9=JSON[_0x44d015(0x84b)](_0x51b475),_0x105cb4=_0x3d95fe[_0x44d015(0x6ce)](_0x12a3c9);if(_0x105cb4){if(_0x105cb4[_0x44d015(0x76c)]===_0x44d015(0x641))throw _0xf70a4e();_0x3d95fe['delete'](_0x12a3c9);if(_0x105cb4[_0x44d015(0x76c)]===_0x44d015(0x20f))throw _0x105cb4[_0x44d015(0x821)];return _0x105cb4[_0x44d015(0x821)];}const _0x7c5f8=_0x5d46c5(..._0x51b475);if(!_0x7c5f8||typeof _0x7c5f8[_0x44d015(0x600)]!==_0x44d015(0x3b3))return _0x7c5f8;const _0x2f3b21={'state':_0x44d015(0x641),'value':undefined},_0xc753ac=(_0x1f285b,_0x192c98)=>{const _0x10279e=_0x44d015;_0x2f3b21[_0x10279e(0x76c)]=_0x1f285b,_0x2f3b21[_0x10279e(0x821)]=_0x192c98;if(_0x3d95fe[_0x10279e(0x6ce)](_0x12a3c9)!==_0x2f3b21)return;setTimeout(()=>_0x3d95fe[_0x10279e(0x6ce)](_0x12a3c9)===_0x2f3b21&&_0x3d95fe[_0x10279e(0x243)](_0x12a3c9),0x7530)[_0x10279e(0x46f)]();try{_0x17d90e[_0x10279e(0x4f7)][_0x10279e(0x24a)](_0x10279e(0x5d6),null,_0x10279e(0x839),['field:resolver_registered',{'env':_0x17d90e[_0x10279e(0x425)],'type':_0x1bd5b3,'field':_0x568a41}],!![]);}catch{}};_0x7c5f8[_0x44d015(0x600)](_0x452f42=>_0xc753ac('ok',_0x452f42),_0x32615e=>_0xc753ac('err',_0x32615e));for(let _0x3fcdd6=0x0;_0x3fcdd6<0x64&&_0x2f3b21[_0x44d015(0x76c)]===_0x44d015(0x641);_0x3fcdd6++)process['_tickCallback']();if(_0x2f3b21[_0x44d015(0x76c)]==='ok')return _0x2f3b21[_0x44d015(0x821)];if(_0x2f3b21[_0x44d015(0x76c)]===_0x44d015(0x20f))throw _0x2f3b21['value'];_0x3d95fe[_0x44d015(0x7a0)](_0x12a3c9,_0x2f3b21);throw _0xf70a4e();};}function _0xf70a4e(){const _0x251edb=_0x4e67d6;return Object['assign'](new Error(_0x251edb(0x47d)),{'code':'FIELD_RESOLVER_PENDING'});}class _0x3302b2{constructor(_0x294ff3,_0x1f4522){const _0x4d6387=_0x4e67d6;this[_0x4d6387(0x4f7)]=_0x294ff3,this['name']=_0x1f4522,this[_0x4d6387(0x5d6)]=_0x294ff3[_0x4d6387(0x5d6)],this[_0x4d6387(0x71e)]=_0x294ff3[_0x4d6387(0x71e)],this[_0x4d6387(0x67d)]=!![],this['_txnBuf']=null,this[_0x4d6387(0x555)]=new _0x96f27f(this),this['processor']=new _0x51b4df(this);if(!_0x1f4522[_0x4d6387(0x48b)]('~')||_0x1f4522[_0x4d6387(0x6f8)](_0x4d6387(0x502)))this[_0x4d6387(0x72c)]=new _0xafdba6(this);if(!_0x1f4522[_0x4d6387(0x48b)]('~'))this[_0x4d6387(0x669)]=new _0x2770b7(this);this[_0x4d6387(0x792)]=new _0x3f84c2(_0x294ff3,_0x1f4522),this[_0x4d6387(0x617)]=new _0x5105f8(_0x294ff3,_0x1f4522,_0x294ff3['engines']),this['pipelines']=new _0x58fad6(_0x294ff3,_0x1f4522);if(!_0x1f4522[_0x4d6387(0x48b)]('~')&&_0x294ff3['options']['timeMachine']&&_0x5a9d16(_0x294ff3))this[_0x4d6387(0x858)]=new _0x264fe9(this);_0x2c3b7f[_0x4d6387(0x49e)](this[_0x4d6387(0x733)],this);const _0x567075=this;this['_writer']={async 'transaction'(_0x5ed9f5){const _0x228be5=_0x4d6387,_0x2270a6=[];_0x567075[_0x228be5(0x1f8)]=_0x2270a6;try{_0x5ed9f5();}finally{_0x567075[_0x228be5(0x1f8)]=null;}return _0x567075[_0x228be5(0x4f7)][_0x228be5(0x61c)][_0x228be5(0x4eb)](_0x228be5(0x784),_0x567075['name'],_0x228be5(0x65f),[_0x2270a6]);},'drain'(){const _0x47e1f2=_0x4d6387;return _0x567075[_0x47e1f2(0x4f7)]['_wb'][_0x47e1f2(0x7da)]();},'flushLmdb'(){const _0xbf366a=_0x4d6387;return _0x567075[_0xbf366a(0x4f7)][_0xbf366a(0x61c)][_0xbf366a(0x7da)]();},'markClosed'(){}};const _0x396471=new _0x2b4711(this,'');_0x396471[_0x4d6387(0x20d)]=()=>({'lastTxnId':this['_n'](_0x4d6387(0x274),[])}),Object[_0x4d6387(0x2ad)](_0x396471,_0x4d6387(0x284),{'get':()=>this[_0x4d6387(0x4f7)][_0x4d6387(0x61c)]['drain'](),'configurable':!![]}),Object[_0x4d6387(0x2ad)](_0x396471,'flushed',{'get':()=>this['okdb'][_0x4d6387(0x61c)]['drain'](),'configurable':!![]});const _0x51d12c=_0x396471[_0x4d6387(0x6ce)][_0x4d6387(0x7b2)](_0x396471);_0x396471[_0x4d6387(0x6ce)]=_0x231c1b=>_0x231c1b===_0x4d6387(0x54b)?this['_n']('getClock',[null]):_0x51d12c(_0x231c1b),this['db']=_0x396471;}async[_0x4e67d6(0x182)](){const _0x6f024=_0x4e67d6;this[_0x6f024(0x3f4)]=!![];}get[_0x4e67d6(0x4ab)](){const _0x10ee9f=_0x4e67d6;return new Map(this[_0x10ee9f(0x4f7)][_0x10ee9f(0x24a)]('db',null,_0x10ee9f(0x536),[this['name']],![]));}get['typesDb'](){const _0x56f43a=_0x4e67d6;return this[_0x56f43a(0x242)]||(this[_0x56f43a(0x242)]=new _0x2b4711(this,'types'));}[_0x4e67d6(0x726)](_0x269bb7){const _0x39938a=_0x4e67d6,_0xf74791=this['typesDb']['get'](_0x269bb7);if(_0xf74791===undefined||String(_0x269bb7)[_0x39938a(0x48b)]('~fts:')||String(_0x269bb7)['startsWith'](_0x39938a(0x60c))){const {OKDBError:_0x592c6b}=requireErrors();throw new _0x592c6b(_0x39938a(0x5b7)+_0x269bb7+'\x22\x20is\x20not\x20registered',_0x39938a(0x1cf),{'type':_0x269bb7});}const _0x58e94c=this,_0x2cb8ff=new _0x2b4711(_0x58e94c,_0x39938a(0x554)+_0x269bb7+':index'),_0x14474a=new Map();for(const _0x191a9d of _0x2cb8ff[_0x39938a(0x462)]()){const _0x1dfe18=_0x2cb8ff['get'](_0x191a9d)||{},_0x33cb69={'parts':_0x191a9d[_0x39938a(0x4f0)]('~'),'db':new _0x2b4711(_0x58e94c,_0x39938a(0x554)+_0x269bb7+_0x39938a(0x476)+_0x191a9d,{'dupSort':!![]})};if(_0x1dfe18[_0x39938a(0x4a6)])_0x33cb69[_0x39938a(0x4a6)]=_0x1dfe18[_0x39938a(0x4a6)];if(_0x1dfe18[_0x39938a(0x27a)])_0x33cb69['unique']=!![];if(_0x1dfe18['sparse'])_0x33cb69[_0x39938a(0x6b7)]=!![];if(_0x1dfe18[_0x39938a(0x263)])_0x33cb69[_0x39938a(0x263)]=_0x1dfe18[_0x39938a(0x263)];_0x33cb69[_0x39938a(0x1a5)]=new Set((_0x1dfe18[_0x39938a(0x1a5)]??[])[_0x39938a(0x4e8)](_0x3fa22c=>_0x3fa22c[_0x39938a(0x50a)]+':'+_0x3fa22c[_0x39938a(0x425)])),_0x14474a[_0x39938a(0x7a0)](_0x191a9d,_0x33cb69);}return{'root':new _0x2b4711(_0x58e94c,'type:'+_0x269bb7),'data':new _0x2b4711(_0x58e94c,_0x39938a(0x554)+_0x269bb7+_0x39938a(0x83a),{'useVersions':!![]}),'indexes':_0x2cb8ff,'clockToChange':new _0x2b4711(_0x58e94c,'type:'+_0x269bb7+_0x39938a(0x670)),'keyToChange':new _0x2b4711(_0x58e94c,_0x39938a(0x554)+_0x269bb7+_0x39938a(0x3f2)),'fieldSchema':new Map(Object[_0x39938a(0x45b)](_0xf74791[_0x39938a(0x39f)]||{})[_0x39938a(0x4e8)](([_0xb4d51f,_0x281bac])=>[_0xb4d51f,new Set(Array[_0x39938a(0x7e3)](_0x281bac)?_0x281bac:[_0x281bac])])),'indexToDb':_0x14474a,'ftsToDb':null,'schema':_0xf74791['schema']||null,'defaultTTL':_0xf74791[_0x39938a(0x412)]||null};}get[_0x4e67d6(0x34c)](){const _0x12b2bd=_0x4e67d6,_0x37c1eb=this,_0x5bf4a5=()=>_0x37c1eb[_0x12b2bd(0x1c7)]();return{'get':_0x482cb2=>{try{return _0x37c1eb['_getType'](_0x482cb2);}catch{return undefined;}},'has':_0x3362e6=>_0x5bf4a5()['includes'](_0x3362e6),'keys':()=>_0x5bf4a5()[Symbol[_0x12b2bd(0x1f2)]](),get 'size'(){return _0x5bf4a5()['length'];}};}[_0x4e67d6(0x74b)](){const _0x502e84=_0x4e67d6;return this[_0x502e84(0x1c7)]();}get[_0x4e67d6(0x656)](){const _0x2f90fd=_0x4e67d6;return this[_0x2f90fd(0x573)]||(this[_0x2f90fd(0x573)]=new _0x2b4711(this,'changes'));}get['clockToChangeDb'](){const _0x38d0e0=_0x4e67d6;return this[_0x38d0e0(0x84d)]||(this[_0x38d0e0(0x84d)]=new _0x2b4711(this,_0x38d0e0(0x3db)));}[_0x4e67d6(0x1a8)](_0x3e4291){return this['_n']('advanceHlcOnRecv',[_0x3e4291]);}get[_0x4e67d6(0x3d2)](){const _0x3b70b9=_0x4e67d6;return!this['_n'](_0x3b70b9(0x482),[],![]);}get[_0x4e67d6(0x5e8)](){const _0xbd1cdc=_0x4e67d6;return this[_0xbd1cdc(0x67c)]!==undefined?this['__syncOverride']:this['_n'](_0xbd1cdc(0x482),[],![]);}set[_0x4e67d6(0x5e8)](_0x36696a){this['__syncOverride']=_0x36696a;}get[_0x4e67d6(0x2d5)](){const _0x1514ed=_0x4e67d6;return this[_0x1514ed(0x72a)]||(this[_0x1514ed(0x72a)]=new(requireLock())[(_0x1514ed(0x34f))](this[_0x1514ed(0x4f7)],'~system','compact',{'ttlMs':0xea60}));}get['path'](){const _0x3903bb=_0x4e67d6;return this[_0x3903bb(0x2ee)]??(this[_0x3903bb(0x2ee)]=this['_n'](_0x3903bb(0x733),[]));}get['id'](){return this['_n']('id',[]);}get[_0x4e67d6(0x44e)](){const _0xcad581=_0x4e67d6;return this[_0xcad581(0x4f7)]['role'];}['_n'](_0x1cb0fd,_0xdc89bf){const _0x10404f=_0x4e67d6;return this[_0x10404f(0x4f7)][_0x10404f(0x24a)](_0x10404f(0x784),this[_0x10404f(0x425)],_0x1cb0fd,_0xdc89bf,!_0x296d11['has'](_0x1cb0fd));}[_0x4e67d6(0x1cd)](_0x34d1f1){const _0x306c94=_0x4e67d6;return this[_0x306c94(0x4f7)][_0x306c94(0x664)](_0x34d1f1);}[_0x4e67d6(0x630)](_0x224a3e,_0x45f44a){const _0x2b3f4d=_0x4e67d6;if(_0x22d911[_0x2b3f4d(0x69d)](_0x224a3e==='pinned'?_0x45f44a[0x1]:_0x224a3e))return this['okdb'][_0x2b3f4d(0x437)](this[_0x2b3f4d(0x425)],_0x224a3e,_0x45f44a);return this[_0x2b3f4d(0x4f7)][_0x2b3f4d(0x799)](_0x2b3f4d(0x784),this['name'],_0x224a3e,_0x45f44a);}[_0x4e67d6(0x5d5)](_0x134224={'useReadTransaction':![]}){return new(_0x42064b())(this,_0x134224);}async[_0x4e67d6(0x346)](_0x4c38da,_0x56152a){const _0x26bfa2=_0x4e67d6;return _0x42064b()[_0x26bfa2(0x269)](this,_0x4c38da,_0x56152a);}[_0x4e67d6(0x757)](_0x57a00b,_0xfafe37){const _0x15e058=_0x4e67d6;if(this[_0x15e058(0x1f8)])this[_0x15e058(0x1f8)]['push']({'action':_0x57a00b,'args':_0xfafe37});else this['_n'](_0x57a00b,_0xfafe37);}[_0x4e67d6(0x184)](_0x2eaf58,_0x22fadb,_0x46461a,_0x4c8f04,_0x4de4b1){const _0x5637f3=_0x4e67d6;this[_0x5637f3(0x757)]('put',[_0x22fadb,_0x46461a,_0x4c8f04,_0x4de4b1]);}['_update'](_0x3cdb92,_0x28fa9b,_0x21807f,_0x27fed8,_0x581038){const _0x5644e=_0x4e67d6;this[_0x5644e(0x757)](_0x5644e(0x1a2),[_0x28fa9b,_0x21807f,_0x27fed8,_0x581038]);}['_patch'](_0x36fefe,_0x5c0a3,_0x4f070a,_0x2a76a7,_0x24e534){const _0x4ba2a8=_0x4e67d6;this[_0x4ba2a8(0x757)]('patch',[_0x5c0a3,_0x4f070a,_0x2a76a7,_0x24e534]);}[_0x4e67d6(0x26f)](_0x30fdb2,_0x1faa6c,_0x1e8379,_0x9536fc,_0x174fa7){const _0x5a5d50=_0x4e67d6;this['_low'](_0x5a5d50(0x569),[_0x1faa6c,_0x1e8379,_0x9536fc,_0x174fa7]);}[_0x4e67d6(0x697)](_0x1815f7,_0x3756b2,_0x51ce8c,_0x31e5f9){const _0x10dc9b=_0x4e67d6;this[_0x10dc9b(0x757)]('remove',[_0x3756b2,_0x51ce8c,_0x31e5f9]);}[_0x4e67d6(0x28d)](_0x366be2,_0x4b2656,_0x9b2834,_0x5487c4){const _0xceb1eb=_0x4e67d6;this[_0xceb1eb(0x757)](_0xceb1eb(0x235),[_0x4b2656,_0x9b2834,_0x5487c4]);}[_0x4e67d6(0x162)](_0xb8b2e1,_0x22ce38,_0x50e3fa){const _0x10b2b7=_0x4e67d6;this['_low'](_0x10b2b7(0x449),[_0x22ce38,_0x50e3fa]);}['_w'](_0x3c8132,_0x238e64){const _0x99792a=_0x4e67d6;return this[_0x99792a(0x4f7)][_0x99792a(0x61c)][_0x99792a(0x4eb)](_0x99792a(0x784),this[_0x99792a(0x425)],_0x3c8132,_0x238e64);}[_0x4e67d6(0x14f)](_0x5f0d20,_0x3797ed,_0x14ec60,_0x11fb69={}){const _0x14348f=_0x4e67d6;return this['_w'](_0x14348f(0x14f),[_0x5f0d20,_0x3797ed,_0x14ec60,_0x11fb69]);}[_0x4e67d6(0x1a2)](_0x1d61b3,_0x69fbac,_0x4e95b5,_0x3d2ba2={}){const _0x3774df=_0x4e67d6;return this['_w'](_0x3774df(0x1a2),[_0x1d61b3,_0x69fbac,_0x4e95b5,_0x3d2ba2]);}[_0x4e67d6(0x41f)](_0x4ae741,_0x230d02,_0x22075a,_0x3fed40={}){const _0x215d11=_0x4e67d6;return this['_w'](_0x215d11(0x41f),[_0x4ae741,_0x230d02,_0x22075a,_0x3fed40]);}[_0x4e67d6(0x569)](_0x438767,_0x269b5a,_0x5ad04e,_0x1143ab={}){const _0x5109e7=_0x4e67d6;return this['_w'](_0x5109e7(0x569),[_0x438767,_0x269b5a,_0x5ad04e,_0x1143ab]);}['remove'](_0x32611c,_0x3baaa7,_0x45c250={}){const _0x4da0e9=_0x4e67d6;return this['_w'](_0x4da0e9(0x78e),[_0x32611c,_0x3baaa7,_0x45c250]);}['get'](_0x529781,_0x5eabcc,_0x3bd9a1){const _0x249098=_0x4e67d6;if(_0x156629&&typeof _0x529781===_0x249098(0x84a)){const _0x4bb5c5=this[_0x249098(0x4f7)]['_getFast'](this[_0x249098(0x425)],_0x529781,_0x5eabcc);if(_0x4bb5c5!==_0x1b1955)return _0x4bb5c5===null?this['_n']('get',[_0x529781,_0x5eabcc]):_0x4bb5c5;}if(_0x3924ea&&(typeof _0x5eabcc===_0x249098(0x84a)||typeof _0x5eabcc===_0x249098(0x859))){const _0x54a63c=this[_0x249098(0x4f7)]['_getRaw'](this[_0x249098(0x425)],_0x529781,_0x5eabcc);if(_0x54a63c!==null)return _0x54a63c;}return this['_n'](_0x249098(0x6ce),[_0x529781,typeof _0x5eabcc===_0x249098(0x721)?null:_0x5eabcc]);}['getMany'](_0x524f3d,_0x571dfa,_0x578c0e){const _0x1e52fa=_0x4e67d6,_0x45a6b2=[_0x524f3d,Array[_0x1e52fa(0x7e3)](_0x571dfa)&&_0x571dfa[_0x1e52fa(0x454)](_0x3c0e79=>typeof _0x3c0e79===_0x1e52fa(0x721))?_0x571dfa['map'](_0x1dc1d9=>typeof _0x1dc1d9==='symbol'?null:_0x1dc1d9):_0x571dfa];return _0x3924ea?this[_0x1e52fa(0x4f7)][_0x1e52fa(0x437)](this[_0x1e52fa(0x425)],'getMany',_0x45a6b2):this['_n']('getMany',_0x45a6b2);}[_0x4e67d6(0x638)](_0x1cf92e,_0x27e531,_0x55ae04){const _0x4c5fbb=_0x4e67d6;return this['_n'](_0x4c5fbb(0x638),[_0x1cf92e,typeof _0x27e531===_0x4c5fbb(0x721)?null:_0x27e531]);}[_0x4e67d6(0x7d6)](_0x542ea0,_0x473242){const _0x223bfd=_0x4e67d6;return this[_0x223bfd(0x3d6)](_0x223bfd(0x7d6),_0x473242),this['_n'](_0x223bfd(0x7d6),[_0x542ea0,_0x27f346(_0x473242)]);}[_0x4e67d6(0x3d6)](_0x4fb751,_0x2ef67a,_0x4cee99=[]){const _0x31d9b2=_0x4e67d6;if(!_0x2ef67a||typeof _0x2ef67a!==_0x31d9b2(0x712))return;for(const _0x40e101 of Object[_0x31d9b2(0x50d)](_0x2ef67a)){if(!_0x5e791f[_0x31d9b2(0x69d)](_0x40e101)&&!_0x4cee99[_0x31d9b2(0x6f8)](_0x40e101))throw new _0x462cf0(_0x4fb751+_0x31d9b2(0x395)+_0x40e101+'\x27',_0x31d9b2(0x45e),{'option':_0x40e101});}}[_0x4e67d6(0x130)](_0x333c26,_0x2b313e,_0x59dd03,_0x26c772,_0x5ef2bc,_0x3e5585){const _0x5890cf=_0x4e67d6;this['_assertRangeOptions'](_0x333c26,_0x26c772);const _0x1dea96=_0x26c772?.['snapshot'],_0x16a705=_0x27f346(_0x26c772);if(_0x1dea96===!![]||_0x1dea96===_0x5890cf(0x7c2)){const _0x248a07=this['_lazyPinned'](_0x333c26,_0x2b313e,_0x536ac3=>[_0x59dd03,{..._0x16a705,..._0x536ac3}],_0x26c772);return _0x3e5585?_0x248a07[_0x5890cf(0x4e8)](_0x3e5585):_0x248a07;}const _0x2a065a=_0x1665ed(_0x5d8083=>this['_np'](_0x2b313e,[_0x59dd03,_0x5d8083]),_0x16a705,_0x5ef2bc,{'rows':_0x2b313e===_0x5890cf(0x35a)});return _0x3e5585?_0x2a065a['map'](_0x3e5585):_0x2a065a;}[_0x4e67d6(0x566)](_0x599fe3,_0x2bb63e,_0x38c9f1,_0x25272a,_0x1ec927,_0x292f55=![]){const _0x233cf4=_0x4e67d6,{source:_0x1f34c5,prefetch:_0x5843dd}=_0x1bc2c5((_0xf4bf7a,_0x11fa9a)=>_0xf4bf7a===_0x233cf4(0x2fc)?this['_n'](_0xf4bf7a,_0x11fa9a):this[_0x233cf4(0x630)](_0xf4bf7a,_0x11fa9a),_0x2bb63e,_0x38c9f1,_0x25272a||{},_0x1ec927),_0x3db11d=_0x5843dd(),_0x2223c7=!_0x292f55&&_0x25272a&&_0x25272a[_0x233cf4(0x22c)]===_0x233cf4(0x7c2);let _0x3e80dd=null;return _0x1408da(()=>({[Symbol['iterator']]:()=>_0x3e80dd=_0x1f34c5(0x0,_0x3cea51(_0x3db11d))}),{'label':this[_0x233cf4(0x425)]+':'+_0x599fe3,..._0x2223c7?{'getTxnId':()=>this['db']['getStats']()['lastTxnId'],'resume':()=>({[Symbol['iterator']]:()=>_0x3e80dd=_0x3e80dd['resumed']()})}:{}});}[_0x4e67d6(0x35a)](_0x526c7b,_0x1de8dc){const _0x5bceb3=_0x4e67d6;return this[_0x5bceb3(0x130)](_0x5bceb3(0x35a),_0x5bceb3(0x35a),_0x526c7b,_0x1de8dc,_0xbabf49=>_0xbabf49[_0x5bceb3(0x5c0)]);}['getKeys'](_0x3aa8e2,_0x24af1f){const _0x40afb1=_0x4e67d6;return this[_0x40afb1(0x130)](_0x40afb1(0x462),_0x40afb1(0x462),_0x3aa8e2,_0x24af1f,_0x41de03=>_0x41de03);}[_0x4e67d6(0x38b)](_0x23ad84,_0x48b5ea){const _0x1b6a19=_0x4e67d6;return this['_range']('getValues',_0x1b6a19(0x35a),_0x23ad84,_0x48b5ea,_0xde48bc=>_0xde48bc[_0x1b6a19(0x5c0)],_0x57a383=>_0x57a383['value']);}['getByPrefix'](_0x26ae06,_0x25dca1,_0x53f96e={}){const _0x476f2f=_0x4e67d6;return this[_0x476f2f(0x35a)](_0x26ae06,{'start':_0x25dca1,'end':_0x25dca1+'￿',..._0x53f96e});}[_0x4e67d6(0x6c7)](_0x370a4f,_0x499f7c,_0x49a5f0={}){const _0x29cc55=_0x4e67d6;this['_assertRangeOptions']('getIndex',_0x49a5f0,[_0x29cc55(0x139)]);const _0x13e38c=_0x27f346(_0x49a5f0);if(_0x49a5f0&&_0x49a5f0[_0x29cc55(0x5d5)])return _0x10c8a8(this['_n'](_0x29cc55(0x6c7),[_0x370a4f,_0x499f7c,_0x13e38c]));return this[_0x29cc55(0x566)](_0x29cc55(0x6c7),_0x29cc55(0x6c7),_0xb4283b=>[_0x370a4f,_0x499f7c,{..._0x13e38c,..._0xb4283b}],_0x49a5f0,undefined,!![]);}['byIndex'](_0x460b8e,_0x3aed91,_0x5d2798){const _0x464ac2=_0x4e67d6;this[_0x464ac2(0x3d6)](_0x464ac2(0x120),_0x5d2798,[_0x464ac2(0x139),'includeViolations']);const _0x100693=_0x27f346(_0x5d2798);if(_0x5d2798&&_0x5d2798[_0x464ac2(0x5d5)])return _0x10c8a8(this['_n'](_0x464ac2(0x120),[_0x460b8e,_0x3aed91,_0x100693]));return this[_0x464ac2(0x566)]('byIndex',_0x464ac2(0x120),_0x1f4e68=>[_0x460b8e,_0x3aed91,{..._0x100693,..._0x1f4e68}],_0x5d2798,undefined,!![]);}[_0x4e67d6(0x4c2)](_0x5a31eb,_0x9067ef,_0x2b7efc={}){const _0xec626b=_0x4e67d6;return this['_n'](_0xec626b(0x4c2),[_0x5a31eb,_0x9067ef,_0x27f346(_0x2b7efc)]);}[_0x4e67d6(0x450)](_0x73a4db,_0x4920ca={},_0x3ec352={}){const _0x1b1fec=_0x4e67d6,_0x3516cd=_0x2c6aab(_0x3ec352);if(_0x3ec352){for(const _0x5887c7 of Object['keys'](_0x3ec352))if(_0x5887c7!==_0x1b1fec(0x49d)&&typeof _0x3ec352[_0x5887c7]==='function')_0x3516cd[_0x5887c7]=null;}if(_0x3ec352&&(_0x3ec352[_0x1b1fec(0x6ef)]||_0x3ec352['vector']))return this['_n']('assertQueryOptions',[_0x3516cd]),this['_hybridQuery'](_0x73a4db,_0x4920ca,_0x3ec352);const _0x14ea3a=typeof _0x3ec352[_0x1b1fec(0x49d)]===_0x1b1fec(0x3b3)?_0x3ec352[_0x1b1fec(0x49d)]:null;if(_0x3ec352[_0x1b1fec(0x488)]||_0xf1170f(_0x4920ca)||_0x3ec352['transaction']!==undefined){let _0x4b741c=this['_n'](_0x1b1fec(0x450),[_0x73a4db,_0x4920ca,_0x3516cd]);if(_0x14ea3a)_0x4b741c=_0x4b741c[_0x1b1fec(0x4e8)](_0x14ea3a);if(_0x3ec352[_0x1b1fec(0x488)]||_0xf1170f(_0x4920ca))return _0x4b741c;return _0x10c8a8(_0x4b741c);}const _0x33308e=_0x363524=>typeof _0x363524===_0x1b1fec(0x859)&&Number[_0x1b1fec(0x339)](_0x363524)?Math[_0x1b1fec(0x81c)](0x0,_0x363524):Infinity;let _0x136532;if(_0x3ec352[_0x1b1fec(0x4bf)]){const _0x5581da=_0x231983=>typeof _0x231983==='number'&&_0x231983>0x0?Math[_0x1b1fec(0x69c)](_0x231983):0x0;_0x136532=this[_0x1b1fec(0x566)]('query',_0x1b1fec(0x450),_0x21ca72=>[_0x73a4db,_0x4920ca,{..._0x3516cd,..._0x21ca72}],null,{'limitOf':()=>_0x33308e(_0x3516cd[_0x1b1fec(0x15c)]),'offsetOf':()=>_0x5581da(_0x3516cd[_0x1b1fec(0x87e)])});}else _0x136532=_0x1665ed(_0x32de67=>{const _0x52cbb1=_0x1b1fec,{__after:_0x2f588e,..._0xaa173a}=_0x32de67;return this['_np'](_0x52cbb1(0x450),_0x2f588e===undefined?[_0x73a4db,_0x4920ca,_0xaa173a]:[_0x73a4db,_0x4920ca,_0xaa173a,_0x2f588e]);},_0x3516cd,_0x514117=>_0x514117[_0x1b1fec(0x5c0)],{'limitOf':_0x33308e,'rows':!![],'prefetch':!![],'resumeOpts':(_0x37e624,_0x187def)=>{const _0x488037=_0x1b1fec;_0x37e624[_0x488037(0x87e)]=0x0,_0x37e624[_0x488037(0x448)]=_0x187def;}});return _0x14ea3a?_0x136532['map'](_0x14ea3a):_0x136532;}async[_0x4e67d6(0x353)](_0x3b301d,_0xb8d137,_0x3a63f1){const _0x47aa15=_0x4e67d6,{select:_0x2e89bb,..._0x5b4482}=_0x2c6aab(_0x3a63f1);let _0x460ea2={..._0x5b4482};const _0x3ad83f=_0x460ea2['index'];if(_0x3ad83f&&!Array[_0x47aa15(0x7e3)](_0x3ad83f)&&typeof _0x3ad83f==='object'&&_0x3ad83f[_0x47aa15(0x39f)]){const {fields:_0x167ef1,prefix:_0x5caecd,start:_0x517f67,end:_0x463bf5}=_0x3ad83f;_0x460ea2={..._0x460ea2,'index':_0x167ef1,'prefix':_0x5caecd??_0x460ea2[_0x47aa15(0x139)],'startIndex':_0x517f67??_0x460ea2[_0x47aa15(0x7bf)],'endIndex':_0x463bf5??_0x460ea2['endIndex']};}const _0x2c70d4=await this[_0x47aa15(0x4f7)][_0x47aa15(0x67a)](_0x47aa15(0x6ed),null,_0x47aa15(0x4cc),[this[_0x47aa15(0x425)],_0x3b301d,_0xb8d137,_0x460ea2],![]),_0x345a47=typeof _0x3a63f1[_0x47aa15(0x49d)]==='function'?_0x3a63f1[_0x47aa15(0x49d)]:null;if(!_0x345a47)return _0x2c70d4;return _0x2c70d4[_0x47aa15(0x4e8)](_0x430fa3=>{const {score:_0x4451c0,ftsScore:_0x5e85e2,numTerms:_0xef47be,maxScore:_0x4123cb,vectorScore:_0x3a2846,chunkHash:_0x2ee578,chunk:_0x1d96a9,..._0x302147}=_0x430fa3,_0x5a8445=_0x345a47(_0x302147);for(const [_0x1c5a1b,_0x18aede]of Object['entries']({'score':_0x4451c0,'ftsScore':_0x5e85e2,'numTerms':_0xef47be,'maxScore':_0x4123cb,'vectorScore':_0x3a2846,'chunkHash':_0x2ee578,'chunk':_0x1d96a9}))if(_0x18aede!==undefined)_0x5a8445[_0x1c5a1b]=_0x18aede;return _0x5a8445;});}[_0x4e67d6(0x71f)](_0x50a3fa,_0x228d7a,_0x2dea66={}){const _0x5027d8=_0x4e67d6;let _0x32a392=this['_n'](_0x5027d8(0x71f),[_0x50a3fa,_0x228d7a,_0x2c6aab(_0x2dea66)]);if(typeof _0x2dea66[_0x5027d8(0x49d)]==='function')_0x32a392=_0x32a392['map'](_0x2dea66[_0x5027d8(0x49d)]);return _0x32a392;}[_0x4e67d6(0x863)](_0x5f1ed0=null,_0x2b63d3={}){return this['_n']('getClock',[_0x5f1ed0]);}[_0x4e67d6(0x5ed)](_0x4916ef=null,_0x531d36=0x0,_0x44870b=Number[_0x4e67d6(0x143)],_0x1965e7={}){const _0x1fdbbf=_0x4e67d6,_0x47ea8a=_0x27f346(_0x1965e7);if(_0x1965e7&&_0x1965e7[_0x1fdbbf(0x5d5)])return _0x10c8a8(this['_n'](_0x1fdbbf(0x5ed),[_0x4916ef,_0x531d36,_0x44870b,_0x47ea8a]));return this[_0x1fdbbf(0x566)](_0x1fdbbf(0x5ed),_0x1fdbbf(0x5ed),_0x540b0b=>[_0x4916ef,_0x531d36,_0x44870b,{..._0x47ea8a,..._0x540b0b}],_0x1965e7);}[_0x4e67d6(0x21b)](_0x4e627a){const _0x243191=_0x4e67d6;if(Array[_0x243191(0x7e3)](_0x4e627a))return _0x4e627a[_0x243191(0x192)];let _0x2ea626=0x0;for(const _0x4482bd of _0x4e627a)_0x2ea626++;return _0x2ea626;}*['range'](_0x22d03b){yield*_0x22d03b;}[_0x4e67d6(0x76a)](){const _0x109e7b=_0x4e67d6;return requireOkdbHlc()['toMs'](this[_0x109e7b(0x3c3)]);}get[_0x4e67d6(0x429)](){const _0x3f7ee1=_0x4e67d6,_0x647ef0=this[_0x3f7ee1(0x4f7)][_0x3f7ee1(0x67d)]?this[_0x3f7ee1(0x4f7)][_0x3f7ee1(0x24a)]('db',null,_0x3f7ee1(0x740),[this[_0x3f7ee1(0x425)]],![]):null;if(!_0x647ef0)return null;if(this['__ttlCancelledGen']===_0x647ef0['gen'])return null;this[_0x3f7ee1(0x2f0)]=this[_0x3f7ee1(0x2f0)]||new Map();let _0x162032=this['_timerObjs']['get'](_0x647ef0[_0x3f7ee1(0x6d5)]);if(!_0x162032){const _0x3f1224=this;_0x162032={'ref'(){},'unref'(){},'hasRef':()=>![],'gen':_0x647ef0['gen'],'at':_0x647ef0['at'],'target':_0x647ef0[_0x3f7ee1(0x5cf)],get '_destroyed'(){const _0x5a09f7=_0x3f7ee1,_0x46cc86=_0x3f1224['okdb'][_0x5a09f7(0x67d)]?_0x3f1224[_0x5a09f7(0x4f7)][_0x5a09f7(0x24a)]('db',null,_0x5a09f7(0x740),[_0x3f1224[_0x5a09f7(0x425)]],![]):null;return!_0x46cc86||_0x46cc86[_0x5a09f7(0x6d5)]!==this['gen']||_0x3f1224[_0x5a09f7(0x5a6)]===this[_0x5a09f7(0x6d5)];}},this[_0x3f7ee1(0x2f0)][_0x3f7ee1(0x7a0)](_0x647ef0[_0x3f7ee1(0x6d5)],_0x162032);}return _0x162032;}['_cancelTTLTimeout'](){const _0x22e925=_0x4e67d6,_0x167b7d=this[_0x22e925(0x4f7)][_0x22e925(0x24a)]('db',null,_0x22e925(0x740),[this[_0x22e925(0x425)]],![]);if(_0x167b7d)this['__ttlCancelledGen']=_0x167b7d[_0x22e925(0x6d5)];}get[_0x4e67d6(0x298)](){const _0x2a43fd=_0x4e67d6,_0x5c1e7e=this[_0x2a43fd(0x4f7)][_0x2a43fd(0x24a)]('db',null,'ttlTimer',[this[_0x2a43fd(0x425)]],![]);return _0x5c1e7e?_0x5c1e7e[_0x2a43fd(0x5cf)]:null;}get[_0x4e67d6(0x7ec)](){const _0x20403e=_0x4e67d6;return this[_0x20403e(0x4f7)][_0x20403e(0x24a)]('db',null,_0x20403e(0x1bb),[this[_0x20403e(0x425)]],![])?{'ref'(){},'unref'(){}}:null;}[_0x4e67d6(0x3b8)](){const _0x3a7e94=_0x4e67d6;this[_0x3a7e94(0x4f7)][_0x3a7e94(0x24a)]('db',null,_0x3a7e94(0x7ac),[this[_0x3a7e94(0x425)]],![]);}[_0x4e67d6(0x60d)](){const _0x216e61=_0x4e67d6;this[_0x216e61(0x4f7)][_0x216e61(0x24a)]('db',null,_0x216e61(0x849),[this[_0x216e61(0x425)]],![]);}get[_0x4e67d6(0x35b)](){const _0x1970b5=_0x4e67d6,_0x1e6037=(_0x1bb409,_0x348f18)=>this['okdb'][_0x1970b5(0x24a)]('db',null,_0x1bb409,[this[_0x1970b5(0x425)],..._0x348f18],![]),_0x587576=Object[_0x1970b5(0x50d)](_0x1e6037('autoCompactState',[])||{}),_0x571dc7={};for(const _0x14d818 of _0x587576)Object[_0x1970b5(0x2ad)](_0x571dc7,_0x14d818,{'enumerable':!![],'get':()=>_0x1e6037(_0x1970b5(0x7df),[])?.[_0x14d818],'set':_0x39a106=>{const _0x15fa6e=_0x1970b5;_0x1e6037(_0x15fa6e(0x5df),[_0x14d818,_0x39a106]);}});return _0x571dc7;}get[_0x4e67d6(0x3c3)](){const _0x177ddc=_0x4e67d6;return this['_n'](_0x177ddc(0x391),[]);}[_0x4e67d6(0x2f3)](_0xd2764b,_0x2bd29b){const _0xf263b9=_0x4e67d6;return require$$16[_0xf263b9(0x2f8)](_0xd2764b,_0x2bd29b);}async[_0x4e67d6(0x6c6)](_0x1d9173,_0x2bb75e){const _0x16bea7=_0x4e67d6;return this[_0x16bea7(0x1cd)](this['_n'](_0x16bea7(0x6c6),[_0x1d9173]));}['hasType'](_0x3f95ff){return this['_n']('hasType',[_0x3f95ff]);}[_0x4e67d6(0x1c7)](){const _0x2eb713=_0x4e67d6;return this['_n'](_0x2eb713(0x1c7),[]);}async[_0x4e67d6(0x2a9)](_0xff892c,_0x54b4d5){const _0x44d4f6=_0x4e67d6;return this[_0x44d4f6(0x1cd)](this['_n'](_0x44d4f6(0x2a9),[_0xff892c]));}async[_0x4e67d6(0x4e9)](_0x38aa51,_0x2f66c5){const _0x4963bb=_0x4e67d6,{timestamp:_0x40ea21,indexes:indexes=[]}=_0x3702c7(_0x2f66c5);return this['_wsettle'](this['_n'](_0x4963bb(0x4e9),[_0x38aa51,{'indexes':indexes}]));}async['ensure'](_0x2021e1){const _0x294c66=_0x4e67d6,{type:_0x6739bd,indexes:indexes=[],fts:fts=[],views:views=[],schema:schema=null}=_0x3702c7(_0x2021e1,_0x294c66(0x668));if(!_0x6739bd)throw new Error(_0x294c66(0x3fd));await this[_0x294c66(0x4e9)](_0x6739bd,{'indexes':indexes});for(const _0x3de547 of fts){const {name:_0x1ca8e9,fields:_0x4b8886,..._0x2ac535}=_0x3de547;if(!_0x1ca8e9||!_0x4b8886)throw new Error(_0x294c66(0x183));await this[_0x294c66(0x4f7)][_0x294c66(0x6ef)]['ensure'](_0x6739bd,_0x1ca8e9,{'fields':_0x4b8886,..._0x2ac535},this);}for(const _0x58bbba of views){const {name:_0x79a95a,definition:_0x41a529}=_0x58bbba;if(!_0x79a95a||!_0x41a529)throw new Error(_0x294c66(0x75d));if(!await this[_0x294c66(0x555)][_0x294c66(0x6d8)](_0x79a95a))await this[_0x294c66(0x555)][_0x294c66(0x569)](_0x79a95a,_0x41a529);}if(schema)await this[_0x294c66(0x598)](_0x6739bd,schema);}async[_0x4e67d6(0x5cc)](_0x949c49,_0x11c853,_0x24462d){const _0x231640=_0x4e67d6,_0x1f12a6=this['_n'](_0x231640(0x5e3),[_0x949c49,_0x11c853,typeof _0x24462d===_0x231640(0x712)?_0x24462d:{}]);if(!_0x1f12a6)return this['_wsettle'](undefined);const _0x59f33e=this['_n'](_0x231640(0x710),[_0x949c49,_0x11c853,!![]]);if(_0x59f33e===undefined)return this[_0x231640(0x1cd)](undefined);return this[_0x231640(0x1cd)](await this[_0x231640(0x185)](_0x949c49,_0x11c853,_0x59f33e));}async[_0x4e67d6(0x185)](_0x3cf68d,_0x2d53bf,_0x1331bb){const _0x55739d=_0x4e67d6,_0x1d19a3=_0x3cf68d+'@'+[][_0x55739d(0x557)](_0x2d53bf)['join']('~');if(!this[_0x55739d(0x82a)])this[_0x55739d(0x82a)]=new Map();const _0x542c97=this[_0x55739d(0x82a)][_0x55739d(0x6ce)](_0x1d19a3);if(_0x542c97)return _0x542c97;const _0x42040c=((async()=>{do await new Promise(_0xb6dd46=>setImmediate(_0xb6dd46));while(!this['_n']('resetIndexFinish',[_0x3cf68d,_0x2d53bf,_0x1331bb,!![]]));})());this[_0x55739d(0x82a)][_0x55739d(0x7a0)](_0x1d19a3,_0x42040c);try{return await _0x42040c;}finally{this[_0x55739d(0x82a)]['delete'](_0x1d19a3);}}async[_0x4e67d6(0x286)](_0x30e266,_0x39d543,_0xa53c6a){const _0xd79bb7=_0x4e67d6;return this[_0xd79bb7(0x1cd)](this['_n'](_0xd79bb7(0x286),[_0x30e266,_0x39d543]));}async[_0x4e67d6(0x475)](_0x3c9fbb,_0x9ebe38,_0x3557ed){const _0x263f08=_0x4e67d6,_0x14da4e=this[_0x263f08(0x82a)]&&this[_0x263f08(0x82a)][_0x263f08(0x6ce)](_0x3c9fbb+'@'+[]['concat'](_0x9ebe38)['join']('~'));if(_0x14da4e)return _0x14da4e;const _0x512fa3=this['_n']('resetIndexBegin',[_0x3c9fbb,_0x9ebe38,_0x3557ed]);if(_0x512fa3===undefined)return;return await new Promise(_0x415dae=>setImmediate(_0x415dae)),this[_0x263f08(0x1cd)](await this['_indexBuild'](_0x3c9fbb,_0x9ebe38,_0x512fa3));}[_0x4e67d6(0x6b5)](_0x1778d3,_0x44b853){return this['_n']('hasIndex',[_0x1778d3,_0x44b853]);}[_0x4e67d6(0x447)](_0x2cb910,_0x5cea2b){const _0x181c80=_0x4e67d6;return this['_n'](_0x181c80(0x447),[_0x2cb910,_0x5cea2b]);}async[_0x4e67d6(0x6b4)](_0x478fcb,_0xc246a4){const _0x1209bb=_0x4e67d6;if(this['_n'](_0x1209bb(0x447),[_0x478fcb,_0xc246a4])==='ready')return!![];let _0x4b1219=0xa;for(;;){await new Promise(_0x36b3aa=>setTimeout(_0x36b3aa,_0x4b1219));if(!this[_0x1209bb(0x4f7)][_0x1209bb(0x67d)]||this[_0x1209bb(0x3f4)])return![];let _0x1e09c2;try{_0x1e09c2=this['_n'](_0x1209bb(0x5a8),[_0x478fcb,Array[_0x1209bb(0x7e3)](_0xc246a4)?_0xc246a4[_0x1209bb(0x3ee)]('~'):String(_0xc246a4)[_0x1209bb(0x4f0)](',')[_0x1209bb(0x3ee)]('~')]);}catch{return![];}const _0x5c0f15=_0x1e09c2&&_0x1e09c2['status'];if(_0x5c0f15==='ready')return!![];if(_0x5c0f15===undefined)return![];_0x4b1219=Math[_0x1209bb(0x7bc)](_0x4b1219*0x2,0xfa);}}[_0x4e67d6(0x5a8)](_0x39616a,_0x5a60cb){const _0x4dba5e=_0x4e67d6;return this['_n'](_0x4dba5e(0x5a8),[_0x39616a,_0x5a60cb])??null;}['getUniqueViolations'](_0x943354,_0x33f665){const _0x22ac42=_0x4e67d6;return this['_n'](_0x22ac42(0x77f),[_0x943354,_0x33f665]);}[_0x4e67d6(0x30e)](_0xadbb7a,_0x5b4edf){const _0x51bd77=_0x4e67d6;return this['_n'](_0x51bd77(0x30e),[_0xadbb7a,_0x5b4edf]);}[_0x4e67d6(0x5fe)](_0x27a255,_0x213692,_0x375d5d){return this['_n']('getUniqueViolation',[_0x27a255,_0x213692,_0x375d5d])??null;}[_0x4e67d6(0x7a3)](_0x546097){const _0x46b49b=_0x4e67d6;return this['_n'](_0x46b49b(0x7a3),[_0x546097])??null;}async[_0x4e67d6(0x598)](_0x4ccc3e,_0x523b46){const _0x2e069a=_0x4e67d6;return this[_0x2e069a(0x1cd)](this['_n'](_0x2e069a(0x598),[_0x4ccc3e,_0x523b46]));}async[_0x4e67d6(0x39b)](_0x5e770a){const _0x306cea=_0x4e67d6;return this[_0x306cea(0x1cd)](this['_n'](_0x306cea(0x39b),[_0x5e770a]));}[_0x4e67d6(0x713)](_0x1f1cca,_0x454147){const _0x51c759=_0x4e67d6;return this['_n'](_0x51c759(0x713),[_0x1f1cca,_0x454147])??null;}[_0x4e67d6(0x6e0)](_0x1db461){const _0x3b62ea=_0x4e67d6;return this['_n'](_0x3b62ea(0x6e0),[_0x1db461]);}[_0x4e67d6(0x334)](_0x382dc9,_0x46c81d,_0x1b669f){const _0x46479=_0x4e67d6;return this['_n'](_0x46479(0x334),[_0x382dc9,_0x46c81d,_0x1b669f])??null;}[_0x4e67d6(0x1f5)](_0x203697){const _0x560c55=_0x4e67d6;return this['_n'](_0x560c55(0x1f5),[_0x203697]);}async[_0x4e67d6(0x235)](_0x73da1d,_0x50f372,_0x528828){const _0xf03f4=_0x4e67d6;return this[_0xf03f4(0x1cd)](this['_n']('setTTL',[_0x73da1d,_0x50f372,_0x528828]));}[_0x4e67d6(0x4a1)](_0x4a5871,_0x4aff95){const _0x49ff5b=_0x4e67d6;return this['_n'](_0x49ff5b(0x4a1),[_0x4a5871,_0x4aff95]);}async[_0x4e67d6(0x449)](_0x2207ae,_0x16686d){return this['_wsettle'](this['_n']('clearTTL',[_0x2207ae,_0x16686d]));}async[_0x4e67d6(0x852)](_0x5423d4){const _0x205f3c=_0x4e67d6;return this['_n'](_0x205f3c(0x852),[_0x5423d4]);}[_0x4e67d6(0x7fd)](_0x48d86b={}){const _0x161fa1=_0x4e67d6;return this['_n'](_0x161fa1(0x7fd),[_0x48d86b]);}['ttlStats'](_0x2c1bdd){const _0x4883f5=_0x4e67d6;return this['_n'](_0x4883f5(0x564),[_0x2c1bdd]);}async[_0x4e67d6(0x322)](_0x52953d,_0x430a1b){const _0x2a3b12=_0x4e67d6;return this[_0x2a3b12(0x1cd)](this['_n']('setDefaultTTL',[_0x52953d,_0x430a1b]));}[_0x4e67d6(0x3e7)](_0x2bdba5){return this['_n']('getDefaultTTL',[_0x2bdba5]);}async[_0x4e67d6(0x2d8)](_0x6d88d4){const _0x370f94=_0x4e67d6;return this[_0x370f94(0x1cd)](this['_n']('clearDefaultTTL',[_0x6d88d4]));}async['resolveField'](_0x575621,_0x39d0a9,_0x48f195,_0x2630e7){const _0x1e6a5f=_0x4e67d6,{batch:batch=null,batchSize:_0x1e8274}=_0x3702c7(_0x2630e7);if(typeof _0x575621!==_0x1e6a5f(0x84a)||!_0x575621)throw new _0x462cf0('resolveField:\x20type\x20required',_0x1e6a5f(0x29b));if(typeof _0x39d0a9!==_0x1e6a5f(0x84a)||!_0x39d0a9)throw new _0x462cf0('resolveField:\x20field\x20required',_0x1e6a5f(0x29b));if(_0x48f195!=null&&typeof _0x48f195!==_0x1e6a5f(0x3b3))throw new _0x462cf0(_0x1e6a5f(0x589),_0x1e6a5f(0x29b));if(batch!=null&&typeof batch!==_0x1e6a5f(0x3b3))throw new _0x462cf0(_0x1e6a5f(0x3c9),_0x1e6a5f(0x29b));if(!_0x48f195&&!batch)throw new _0x462cf0(_0x1e6a5f(0x4b3),_0x1e6a5f(0x29b));if(_0x1e8274!==undefined&&!(Number[_0x1e6a5f(0x339)](_0x1e8274)&&_0x1e8274>0x0))throw new _0x462cf0('resolveField:\x20options.batchSize\x20must\x20be\x20a\x20positive\x20integer',_0x1e6a5f(0x29b));const _0x4bc22e=batch?async _0x33f66e=>(await batch(_0x33f66e))[_0x1e6a5f(0x4e8)](_0x1e2d5f=>_0x1e2d5f instanceof Error?{'__error':!![],'message':_0x1e2d5f['message']}:_0x1e2d5f):null,_0x36449e=_0x280303(this,_0x575621,_0x39d0a9),_0x2a590a=this['_n'](_0x1e6a5f(0x72d),[_0x575621,_0x39d0a9,_0x48f195?(_0x2e0bcd,_0xa8206c)=>_0x36449e(_0x48f195,[_0x2e0bcd,_0xa8206c]):null,{'batch':_0x4bc22e?_0x398e25=>_0x36449e(_0x4bc22e,[_0x398e25]):null,'batchSize':_0x1e8274}]);return()=>this['_n'](_0x1e6a5f(0x7dd),[_0x2a590a]);}async[_0x4e67d6(0x6c2)](_0x265334,_0x4135c9){return this['_n']('unresolveField',[_0x265334,_0x4135c9]);}[_0x4e67d6(0x756)](_0x41d6af){return this['_n']('resolvedFields',[_0x41d6af]);}async[_0x4e67d6(0x76d)](_0x279b6f,_0x3c88d1,_0x4f02c6,_0x15565d){const _0x29c3ea=_0x4e67d6;return this[_0x29c3ea(0x4f7)][_0x29c3ea(0x67a)]('env',this[_0x29c3ea(0x425)],_0x29c3ea(0x76d),[_0x279b6f,_0x3c88d1,_0x4f02c6,_0x15565d],![]);}async['readFieldMany'](_0x3f9343,_0xa916d0,_0x513abb){const _0x4db9c4=_0x4e67d6;return this['okdb'][_0x4db9c4(0x67a)](_0x4db9c4(0x784),this[_0x4db9c4(0x425)],_0x4db9c4(0x86c),[_0x3f9343,_0xa916d0,_0x513abb],![]);}[_0x4e67d6(0x33f)](){}['ftsQuery'](_0x3c6788,_0x519d5b,_0x56b277,_0x514bab={},_0x1205a4={}){const _0x5ee1e4=_0x4e67d6;return this[_0x5ee1e4(0x4f7)][_0x5ee1e4(0x24a)](_0x5ee1e4(0x6ef),null,_0x5ee1e4(0x77d),[_0x3c6788,_0x519d5b,_0x56b277,_0x514bab,_0x1205a4,this[_0x5ee1e4(0x425)]],![]);}get[_0x4e67d6(0x6ef)](){const _0x3d9fc8=_0x4e67d6;return this['okdb'][_0x3d9fc8(0x6ef)];}[_0x4e67d6(0x3e5)](){const _0x37701c=_0x4e67d6;return this[_0x37701c(0x4f7)][_0x37701c(0x24a)](_0x37701c(0x784),this[_0x37701c(0x425)],_0x37701c(0x3e5),[],![]);}[_0x4e67d6(0x510)](){const _0x5b52c5=_0x4e67d6;return this[_0x5b52c5(0x4f7)]['diag']();}[_0x4e67d6(0x310)](){const _0x2c91f0=_0x4e67d6;return this[_0x2c91f0(0x4f7)][_0x2c91f0(0x24a)]('env',this['name'],_0x2c91f0(0x310),[],![]);}[_0x4e67d6(0x386)](){}get[_0x4e67d6(0x729)](){const _0xb96254=_0x4e67d6;return this['_locks']||(this[_0xb96254(0x68f)]=new(requireLock())['NativeLock'](this[_0xb96254(0x4f7)],this[_0xb96254(0x425)],'env'));}[_0x4e67d6(0x872)](){const _0x453a0f=_0x4e67d6;return this[_0x453a0f(0x4f7)][_0x453a0f(0x24a)](_0x453a0f(0x784),this[_0x453a0f(0x425)],_0x453a0f(0x872),[],![]);}[_0x4e67d6(0x57d)](_0x3728b5){const _0x3ab641=_0x4e67d6;this['_n'](_0x3ab641(0x6c6),[_0x3728b5]);}[_0x4e67d6(0x6a3)](_0x38b390){const _0x16a570=_0x4e67d6;this['_n'](_0x16a570(0x827),[_0x38b390]);}[_0x4e67d6(0x796)](){const _0x177127=_0x4e67d6;return this['_n'](_0x177127(0x1d4),[]);}[_0x4e67d6(0x31c)](_0x3a9a29,_0xd4e97a){return _0x3a9a29+'\x09'+_0xd4e97a;}[_0x4e67d6(0x73c)](_0x24d65a){const _0x2e072f=_0x4e67d6,_0x25bd7d=_0x24d65a[_0x2e072f(0x815)]('\x09');return{'type':_0x24d65a['slice'](0x0,_0x25bd7d),'key':_0x24d65a[_0x2e072f(0x6fe)](_0x25bd7d+0x1)};}get[_0x4e67d6(0x445)](){const _0x12957f=_0x4e67d6;if(!this[_0x12957f(0x796)]()['enabled'])return null;return this[_0x12957f(0x82c)]||(this[_0x12957f(0x82c)]=new _0x2b4711(this,_0x12957f(0x71c)));}get[_0x4e67d6(0x624)](){const _0x305280=_0x4e67d6;if(!this['_ttlState']()[_0x305280(0x6f9)])return null;return this[_0x305280(0x17c)]||(this['__ttlByExpiry']=new _0x2b4711(this,_0x305280(0x1a7),{'dupSort':!![]}));}[_0x4e67d6(0x860)](_0x38d4d0,_0x29b59d,_0x15ae7e){const _0x1dbdd3=_0x4e67d6;this['_n'](_0x1dbdd3(0x4ae),[_0x38d4d0,_0x29b59d,_0x15ae7e]);}['_isExpired'](_0x247d56,_0x1fb7c4){const _0x10b66a=_0x4e67d6,_0x631815=this[_0x10b66a(0x445)]?.[_0x10b66a(0x6ce)](this[_0x10b66a(0x31c)](_0x247d56,_0x1fb7c4));return _0x631815!=null&&_0x631815<=Date[_0x10b66a(0x76a)]();}get[_0x4e67d6(0x649)](){const _0x58d27=_0x4e67d6;return this[_0x58d27(0x796)]()[_0x58d27(0x4ed)]??null;}get['_ttlBackoffUntil'](){const _0x501d55=_0x4e67d6;return this[_0x501d55(0x796)]()['backoffUntil']||0x0;}get[_0x4e67d6(0x230)](){return![];}[_0x4e67d6(0x53a)](){}async['_rebuild'](_0x22e63e,_0x18733d){const _0x4b2bb5=_0x4e67d6;if(this[_0x4b2bb5(0x71b)]){const {OKDBError:_0x5110a9}=requireErrors();throw new _0x5110a9('compact/repair\x20already\x20in\x20progress\x20for\x20this\x20environment',_0x4b2bb5(0x170));}this[_0x4b2bb5(0x71b)]=!![];try{const _0x336ac4={..._0x18733d||{},'repair':_0x22e63e===_0x4b2bb5(0x51a)};this[_0x4b2bb5(0x4f7)][_0x4b2bb5(0x24a)](_0x4b2bb5(0x784),this[_0x4b2bb5(0x425)],_0x4b2bb5(0x307),[_0x336ac4]);const _0xd2b063=this[_0x4b2bb5(0x4f7)][_0x4b2bb5(0x176)];while(this[_0x4b2bb5(0x4f7)][_0x4b2bb5(0x24a)]('env',this['name'],'compactPending',[],![]))await _0xd2b063['nextTurn'](0xfa);return this[_0x4b2bb5(0x4f7)][_0x4b2bb5(0x24a)](_0x4b2bb5(0x784),this[_0x4b2bb5(0x425)],_0x4b2bb5(0x46b),[],![]);}finally{this['_rebuilding']=![];}}async[_0x4e67d6(0x60a)](_0x294174={}){const _0x241c69=_0x4e67d6;return this[_0x241c69(0x7e8)](_0x241c69(0x60a),_0x294174);}async[_0x4e67d6(0x51a)](_0x2b0be6={}){const _0xdb0774=_0x4e67d6;return this[_0xdb0774(0x7e8)](_0xdb0774(0x51a),_0x2b0be6);}}_0x3302b2[_0x4e67d6(0x680)]=_0x4248e9;function _0xf1170f(_0x4eaa2b){const _0x3da289=_0x4e67d6;if(!_0x4eaa2b||typeof _0x4eaa2b!=='object')return![];for(const _0x4bde14 of Object[_0x3da289(0x50d)](_0x4eaa2b)){const _0x21e16f=_0x4eaa2b[_0x4bde14];if(_0x21e16f&&typeof _0x21e16f===_0x3da289(0x712)&&(_0x21e16f[_0x3da289(0x3cc)]||_0x21e16f[_0x3da289(0x4d2)]))return!![];}return![];}function _0x27f346(_0xb1f517){const _0x57c349=_0x4e67d6;if(!_0xb1f517||typeof _0xb1f517!==_0x57c349(0x712))return{};const _0x408db9={};for(const _0x2fbb43 of Object['keys'](_0xb1f517)){if(_0x2fbb43===_0x57c349(0x5d5)||_0x2fbb43===_0x57c349(0x22c))continue;_0x408db9[_0x2fbb43]=_0xb1f517[_0x2fbb43];}return _0x408db9;}function _0x2c6aab(_0x374341){const _0x1f16a1=_0x4e67d6;if(!_0x374341||typeof _0x374341!==_0x1f16a1(0x712))return{};const _0x39ecde={};for(const _0x526c60 of Object[_0x1f16a1(0x50d)](_0x374341)){if(typeof _0x374341[_0x526c60]===_0x1f16a1(0x3b3))continue;_0x39ecde[_0x526c60]=_0x374341[_0x526c60];}return _0x39ecde;}return env={'OKDBEnv':_0x3302b2,'HIGH_SENTINEL':_0x4248e9},env;}var unsupported,hasRequiredUnsupported;function requireUnsupported(){if(hasRequiredUnsupported)return unsupported;hasRequiredUnsupported=0x1;const {NotImplementedNative:_0x546d26}=requireErrors();function _0x4bfc7c(_0x15f484){const _0x3567d2=_0x36d2c8=>{throw new _0x546d26(_0x15f484,_0x36d2c8);};return new Proxy(function(){},{'get'(_0x532397,_0x44d0c0){const _0x2d7983=_0x36a2;if(typeof _0x44d0c0===_0x2d7983(0x721)||_0x44d0c0===_0x2d7983(0x600)||_0x44d0c0===_0x2d7983(0x2d3)||_0x44d0c0==='inspect')return undefined;if(_0x44d0c0===_0x2d7983(0x70e))return _0x15f484;return(..._0x379b8f)=>_0x3567d2(_0x15f484+'.'+String(_0x44d0c0));},'apply'(){_0x3567d2(_0x15f484);},'set'(){return!![];}});}return unsupported={'notImplemented':_0x4bfc7c},unsupported;}var http,hasRequiredHttp;function requireHttp(){const _0x47ef7f=_0x2d5353;if(hasRequiredHttp)return http;hasRequiredHttp=0x1;function _0xa98e13(_0x1c0bd2,_0x15e172={}){const _0x5aae4f=_0x36a2,_0x1a7c74=[];let _0x18c2dd=![];_0x1c0bd2[_0x5aae4f(0x74e)]('/*')&&(_0x18c2dd=!![],_0x1c0bd2=_0x1c0bd2[_0x5aae4f(0x6fe)](0x0,-0x2),_0x1a7c74[_0x5aae4f(0x46d)]('*'));let _0xb0f708=_0x1c0bd2[_0x5aae4f(0x4d7)](/\/+$/,'')[_0x5aae4f(0x4d7)](/\[([^\]]*)\]/g,(_0x2a05f0,_0x22dc2b)=>{const _0x314376=_0x5aae4f,_0x3dcf80=_0x22dc2b[_0x314376(0x4d7)](/\/:(\w+)(?:=([^/\]\s]*))?/g,(_0x1de959,_0x5c3d9d)=>{const _0x11f408=_0x314376;return _0x1a7c74[_0x11f408(0x46d)](_0x5c3d9d),_0x11f408(0x6d3);});return _0x314376(0x43e)+_0x3dcf80+')?';})['replace'](/\/:(\w+)/g,(_0x392b42,_0x4fe62b)=>{const _0x345184=_0x5aae4f;return _0x1a7c74[_0x345184(0x46d)](_0x4fe62b),_0x345184(0x6d3);});if(_0xb0f708==='')_0xb0f708='/';return{'keys':_0x1a7c74,'defaults':_0x15e172||{},'wildcard':_0x18c2dd,'regex':new RegExp('^'+_0xb0f708+(_0x18c2dd?_0x5aae4f(0x3de):'')+_0x5aae4f(0x57a))};}const _0x534c61=require$$0$3,{PassThrough:_0x3c8b64}=require$$1;function _0x457653(_0x2de628){const _0x3765a3=_0x36a2,_0x290d34=_0x2de628[_0x3765a3(0x807)](':'),_0x3d72e3=_0x2de628['slice'](0x0,_0x290d34)[_0x3765a3(0x4d7)](/^\[|\]$/g,'');return{'address':_0x3d72e3,'family':_0x3d72e3['includes'](':')?_0x3765a3(0x64f):_0x3765a3(0x56a),'port':Number(_0x2de628['slice'](_0x290d34+0x1))};}class _0x2a1c06 extends _0x534c61[_0x47ef7f(0x66d)]{constructor(_0x563e5e,_0x2fb3cf){const _0x2e0a75=_0x47ef7f;super(),this['_http']=_0x563e5e,this['_addr']=_0x457653(_0x2fb3cf),this[_0x2e0a75(0x278)]=!![],this[_0x2e0a75(0x69b)]=setInterval(()=>{},0x7fffffff);}get[_0x47ef7f(0x278)](){const _0x4f135d=_0x47ef7f;return this[_0x4f135d(0x4c4)];}set['listening'](_0x4b6fdf){const _0x4355bc=_0x47ef7f;this[_0x4355bc(0x4c4)]=_0x4b6fdf;}['address'](){const _0x5b4256=_0x47ef7f;return this[_0x5b4256(0x278)]?{...this[_0x5b4256(0x5dd)]}:null;}['_release'](){const _0x574df0=_0x47ef7f;if(this[_0x574df0(0x69b)])clearInterval(this[_0x574df0(0x69b)]);this[_0x574df0(0x69b)]=null;}['close'](_0x429865){const _0x3ff5e2=_0x47ef7f;this['_release']();const _0x2eaf04=this[_0x3ff5e2(0x741)]['close']();if(_0x429865)_0x2eaf04['then'](()=>_0x429865(),_0x429865);return this;}[_0x47ef7f(0x674)](){const _0x3269cd=_0x47ef7f;return this[_0x3269cd(0x69b)]?.[_0x3269cd(0x674)](),this;}[_0x47ef7f(0x46f)](){const _0x3b8161=_0x47ef7f;return this[_0x3b8161(0x69b)]?.['unref'](),this;}}class _0x3b874e{constructor(_0x5ec035){const _0x3043c2=_0x47ef7f;this[_0x3043c2(0x4f7)]=_0x5ec035,this[_0x3043c2(0x85b)]=[],this['auth']={'cookieName':'okdb_session'};}get[_0x47ef7f(0x528)](){const _0x55fad7=_0x47ef7f;return this[_0x55fad7(0x85b)][0x0]||null;}['_n'](_0x33fb1d,_0xa66221=[]){const _0x1b0de4=_0x47ef7f;return this[_0x1b0de4(0x4f7)][_0x1b0de4(0x67a)](_0x1b0de4(0x3af),null,_0x33fb1d,_0xa66221,!![]);}async[_0x47ef7f(0x398)](_0xd151a6,_0xb22b81,_0x2bd832={},_0x3f94c9={}){const _0x3608ca=_0x47ef7f;let _0x1f15e7=await this['_n'](_0x3608ca(0x398),[_0xd151a6,_0xb22b81,_0x2bd832,_0x3f94c9]),_0x293376=0x0;return _0x1f15e7=await this[_0x3608ca(0x189)](_0x1f15e7,_0x293376),_0x1f15e7;}async[_0x47ef7f(0x189)](_0x44ea9f,_0x483355){const _0x5f031d=_0x47ef7f;while(_0x44ea9f&&typeof _0x44ea9f===_0x5f031d(0x712)&&_0x44ea9f[_0x5f031d(0x3bb)]!==undefined){await new Promise(_0x5b0dbb=>setTimeout(_0x5b0dbb,_0x483355<0x5?0x1:0x5)),_0x483355++,_0x44ea9f=await this['_n'](_0x5f031d(0x44b),[_0x44ea9f[_0x5f031d(0x3bb)]]);}if(_0x44ea9f&&_0x44ea9f[_0x5f031d(0x33a)]&&typeof _0x44ea9f[_0x5f031d(0x33a)]===_0x5f031d(0x712)&&_0x44ea9f[_0x5f031d(0x33a)][_0x5f031d(0x6ad)]!==undefined)_0x44ea9f[_0x5f031d(0x33a)]=this[_0x5f031d(0x7e0)](_0x44ea9f[_0x5f031d(0x33a)][_0x5f031d(0x6ad)]);return _0x44ea9f;}[_0x47ef7f(0x7e0)](_0x78b502){const _0x206890=new _0x3c8b64();let _0x408966=![];const _0xe86f9e=()=>{const _0x5e9ab9=_0x36a2;if(_0x408966)return;_0x408966=!![],clearTimeout(_0x265711),setImmediate(()=>this[_0x5e9ab9(0x4f7)][_0x5e9ab9(0x67d)]&&this[_0x5e9ab9(0x4f7)][_0x5e9ab9(0x24a)](_0x5e9ab9(0x3af),null,_0x5e9ab9(0x819),[_0x78b502],!![]));};let _0x265711=null;const _0x33aa2d=()=>{const _0x515245=_0x36a2;if(_0x408966)return;let _0x55fbc6;try{_0x55fbc6=this[_0x515245(0x4f7)][_0x515245(0x24a)](_0x515245(0x3af),null,_0x515245(0x357),[_0x78b502],!![]);}catch{_0x55fbc6={'chunks':[],'end':!![]};}for(const _0x4b8732 of _0x55fbc6['chunks'])_0x206890[_0x515245(0x46e)](_0x4b8732);if(_0x55fbc6[_0x515245(0x3f9)]){_0x408966=!![],_0x206890['end']();return;}_0x265711=setTimeout(_0x33aa2d,_0x55fbc6['chunks'][_0x515245(0x192)]?0x0:0xa);};_0x206890['on']('close',_0xe86f9e),_0x33aa2d();if(!_0x408966)_0x33aa2d();if(_0x408966)_0x206890['destroy']();else{if(!_0x265711)_0x265711=setTimeout(_0x33aa2d,0x0);}return _0x206890;}[_0x47ef7f(0x725)](_0xa10abe,_0x1c2283,_0x32c03c,_0x5bdea2={}){const _0xfed972=_0x47ef7f;return this[_0xfed972(0x4f7)][_0xfed972(0x24a)](_0xfed972(0x3af),null,'add',[_0xa10abe,_0x1c2283,_0x32c03c,_0x5bdea2,![]],!![]),this;}[_0x47ef7f(0x1a1)](_0x140f2c,_0x494b91,_0x671bea,_0x4eb02f={}){const _0x990513=_0x47ef7f;return this[_0x990513(0x4f7)]['_call'](_0x990513(0x3af),null,_0x990513(0x725),[_0x140f2c,_0x494b91,_0x671bea,_0x4eb02f,!![]],!![]),this;}['guard'](_0x380419,_0x2940bd){const _0x9d53f0=_0x47ef7f,_0xcdf75c=async _0x3de550=>{const _0x4dd0c1=_0x36a2,_0x179031={'status':undefined,'headers':[],'hasBody':![],'body':undefined},_0x966bf3={'status'(_0x2b4766){const _0x1372af=_0x36a2;return _0x179031[_0x1372af(0x2e4)]=_0x2b4766,_0x966bf3;},'setHeader'(_0x1b6be7,_0x209694){const _0x1ab41f=_0x36a2;_0x179031[_0x1ab41f(0x44a)]['push']([_0x1b6be7,_0x209694]);},'send'(_0x42b3c0){const _0x170c8a=_0x36a2;_0x179031['hasBody']=!![],_0x179031[_0x170c8a(0x33a)]=_0x42b3c0;}};_0x3de550[_0x4dd0c1(0x5e5)]={'remoteAddress':_0x3de550[_0x4dd0c1(0x4a0)]??null};const _0x33674a=await _0x2940bd(_0x3de550,_0x966bf3);return{'allowed':_0x33674a!==![],..._0x179031};};this[_0x9d53f0(0x4f7)]['_call']('http',null,_0x9d53f0(0x7a4),[_0x2ac4bb=>!!_0x380419(_0x2ac4bb),_0xcdf75c],!![]);}[_0x47ef7f(0x735)](_0x133eb8){const _0x58ef63=_0x47ef7f,_0x30e4e5=async _0x12cd41=>{const _0x479d1e=_0x36a2,_0x171405={'status':undefined,'headers':[],'hasBody':![],'body':undefined};let _0x52b54c=![];const _0x2cd256={'status'(_0x41ab8e){return _0x171405['status']=_0x41ab8e,_0x2cd256;},'setHeader'(_0x3f034d,_0x585c3c){const _0x2d06fd=_0x36a2;_0x171405['headers'][_0x2d06fd(0x46d)]([_0x3f034d,_0x585c3c]);},'send'(_0x2d07cc){const _0x2d67a3=_0x36a2;_0x171405[_0x2d67a3(0x78f)]=!![],_0x171405['body']=_0x2d07cc;}};return _0x12cd41['socket']={'remoteAddress':_0x12cd41[_0x479d1e(0x4a0)]??null},await _0x133eb8(_0x12cd41,_0x2cd256,async()=>{_0x52b54c=!![];}),{'allowed':_0x52b54c,..._0x171405};};return this[_0x58ef63(0x4f7)][_0x58ef63(0x24a)](_0x58ef63(0x3af),null,_0x58ef63(0x735),[_0x30e4e5],!![]),this;}get['maxBodyBytes'](){const _0x53e055=_0x47ef7f;return this[_0x53e055(0x4f7)][_0x53e055(0x24a)](_0x53e055(0x3af),null,_0x53e055(0x410),[],![]);}set[_0x47ef7f(0x684)](_0x233996){const _0x1ca9c2=_0x47ef7f;this['okdb'][_0x1ca9c2(0x24a)](_0x1ca9c2(0x3af),null,'setMaxBodyBytes',[Number(_0x233996)],![]);}[_0x47ef7f(0x2e5)](_0x3eecf5,_0x2dc2dc,_0x535e2b={}){const _0x50a3ca=_0x47ef7f,_0x30d67b=new Map(),_0x27ddd9=(_0x2e8cce,_0x2dd9a4)=>this['okdb']['_call'](_0x50a3ca(0x3af),null,_0x2e8cce,_0x2dd9a4,![]),_0x14622e=_0x12e2d0=>{const _0x50a328=_0x50a3ca,{connId:_0x3e3bc1}=_0x12e2d0;if(_0x12e2d0[_0x50a328(0x7a2)]){const _0xa0501d=_0x30d67b[_0x50a328(0x6ce)](_0x3e3bc1);_0x30d67b[_0x50a328(0x243)](_0x3e3bc1);if(typeof _0xa0501d===_0x50a328(0x3b3))_0xa0501d();return;}const _0x2a5d71=(_0x3d7b79,_0x83d4a4,_0x1a9e18={})=>{const _0x58451f=_0x50a328;try{_0x27ddd9(_0x58451f(0x5d7),[_0x3e3bc1,_0x3d7b79,_0x83d4a4,_0x1a9e18]);}catch{}},_0x2f9649=()=>{try{_0x27ddd9('sseClose',[_0x3e3bc1]);}catch{}},_0x2c81c3=(_0x140f81,_0x529a83)=>_0x27ddd9(_0x50a328(0x36c),[_0x3e3bc1,String(_0x140f81),String(_0x529a83)]),_0x4dbf47={'auth':{'open':_0x12e2d0['authOpen'],'isAuthenticated':_0x12e2d0[_0x50a328(0x82f)]}},_0x3a5480=_0x2dc2dc({'send':_0x2a5d71,'close':_0x2f9649,'params':_0x12e2d0[_0x50a328(0x1d9)]??{},'query':_0x12e2d0[_0x50a328(0x450)]??{},'headers':_0x12e2d0[_0x50a328(0x44a)]??{},'context':_0x4dbf47,'setHeader':_0x2c81c3});_0x30d67b[_0x50a328(0x7a0)](_0x3e3bc1,_0x3a5480);};return this[_0x50a3ca(0x4f7)][_0x50a3ca(0x24a)](_0x50a3ca(0x3af),null,_0x50a3ca(0x2e5),[_0x3eecf5,_0x14622e,_0x535e2b],!![]),this;}get[_0x47ef7f(0x5d9)](){const _0x1256e2=_0x47ef7f;return this[_0x1256e2(0x2d2)]();}[_0x47ef7f(0x2d2)](){const _0x41913c=_0x47ef7f;return this[_0x41913c(0x4f7)][_0x41913c(0x24a)](_0x41913c(0x3af),null,'listRoutes',[],![])[_0x41913c(0x4e8)](_0x29f624=>({..._0x29f624,'matcher':_0xa98e13(_0x29f624[_0x41913c(0x733)],_0x29f624['defaults'])}));}[_0x47ef7f(0x54f)](_0x18474f,_0xa30326){const _0x1a8b23=_0x47ef7f;return this[_0x1a8b23(0x4f7)][_0x1a8b23(0x24a)](_0x1a8b23(0x3af),null,_0x1a8b23(0x54f),[_0x18474f,_0xa30326],![]);}['listen'](_0x3b769d,_0x1c84c0={}){const _0x304a8f=_0x47ef7f;if(typeof _0x1c84c0==='string'||Array[_0x304a8f(0x7e3)](_0x1c84c0))_0x1c84c0={'host':_0x1c84c0};_0x1c84c0=_0x1c84c0??{};if((Number(_0x1c84c0[_0x304a8f(0x74f)])||0x0)>=0x1||_0x1c84c0[_0x304a8f(0x30d)]!=null||_0x1c84c0[_0x304a8f(0x6d6)]!=null){const _0x546757=new Error(_0x304a8f(0x789)+_0x304a8f(0x709)+_0x304a8f(0x451)+_0x304a8f(0x835));_0x546757[_0x304a8f(0x316)]=_0x304a8f(0x543);throw _0x546757;}if(this['servers'][_0x304a8f(0x192)])throw new Error(_0x304a8f(0x6aa));const _0x24558a=_0x1c84c0[_0x304a8f(0x199)]==null?[undefined]:[][_0x304a8f(0x557)](_0x1c84c0['host']);if(!_0x24558a[_0x304a8f(0x192)]||_0x24558a[_0x304a8f(0x454)](_0x2ae2d2=>_0x2ae2d2!==undefined&&(typeof _0x2ae2d2!==_0x304a8f(0x84a)||!_0x2ae2d2))){const _0x1d4036=new Error(_0x304a8f(0x187));_0x1d4036[_0x304a8f(0x316)]='BAD_HOST';throw _0x1d4036;}const _0x5b1b2c=require$$2[_0x304a8f(0x591)]?{..._0x1c84c0,'reuseport':!![]}:_0x1c84c0,_0x4f150a=this['okdb'][_0x304a8f(0x24a)](_0x304a8f(0x3af),null,_0x304a8f(0x14b),[_0x3b769d,_0x5b1b2c],!![]),_0x46d011=_0x4f150a[_0x304a8f(0x74a)]??_0x3b769d,_0x5d725f=_0x1c84c0[_0x304a8f(0x199)]==null?':'+_0x46d011:_0x24558a[_0x304a8f(0x4e8)](_0x576962=>(_0x576962[_0x304a8f(0x6f8)](':')?'['+_0x576962+']':_0x576962)+':'+_0x46d011)[_0x304a8f(0x3ee)](',\x20');try{this['okdb']['processes'][_0x304a8f(0x29a)](_0x5d725f);if(!require(_0x304a8f(0x29e))['isWorker'])this['okdb'][_0x304a8f(0x1ea)][_0x304a8f(0x82d)]({'kind':_0x304a8f(0x36a),'listenAddr':_0x5d725f});}catch{}this[_0x304a8f(0x85b)]=_0x4f150a[_0x304a8f(0x3b4)]['map'](_0x198d47=>new _0x2a1c06(this,_0x198d47));const _0x90e1e6=this[_0x304a8f(0x85b)][0x0];return process[_0x304a8f(0x864)](()=>this[_0x304a8f(0x85b)][_0x304a8f(0x524)](_0x177b29=>_0x177b29[_0x304a8f(0x839)]('listening'))),_0x90e1e6;}async[_0x47ef7f(0x182)](_0x5a16ba={}){const _0x2ed5b8=_0x47ef7f,_0x193941=this[_0x2ed5b8(0x85b)];this[_0x2ed5b8(0x85b)]=[];if(require$$2[_0x2ed5b8(0x591)]&&!process[_0x2ed5b8(0x415)]&&_0x5a16ba[_0x2ed5b8(0x49a)]==null)_0x5a16ba={..._0x5a16ba,'forceAfterMs':Infinity};if(_0x193941['length']){const _0x1b4ebb=_0x5a16ba[_0x2ed5b8(0x49a)]===Infinity?Infinity:Number['isFinite'](_0x5a16ba[_0x2ed5b8(0x49a)])?Math[_0x2ed5b8(0x81c)](0x0,_0x5a16ba[_0x2ed5b8(0x49a)]):0x3e8,_0x2c2284=Date['now']();while(this[_0x2ed5b8(0x4f7)][_0x2ed5b8(0x24a)](_0x2ed5b8(0x3af),null,_0x2ed5b8(0x83d),[],!![])>0x0&&Date[_0x2ed5b8(0x76a)]()-_0x2c2284<_0x1b4ebb)await new Promise(_0x20dfbf=>setTimeout(_0x20dfbf,0x5));_0x5a16ba={..._0x5a16ba,'forceAfterMs':_0x1b4ebb===Infinity?0x3e8:Math['max'](0x0,_0x1b4ebb-(Date[_0x2ed5b8(0x76a)]()-_0x2c2284))};}await this['_n'](_0x2ed5b8(0x182),[_0x5a16ba]);for(const _0xcd6a40 of _0x193941){_0xcd6a40['_release'](),_0xcd6a40['listening']=![],_0xcd6a40[_0x2ed5b8(0x839)]('close');}}}return http={'OKDBHttp':_0x3b874e},http;}var fts,hasRequiredFts;function requireFts(){const _0x26d508=_0x2d5353;if(hasRequiredFts)return fts;hasRequiredFts=0x1;const _0x17b48c=_0x156cb3=>(_0x156cb3&&typeof _0x156cb3==='object'?_0x156cb3[_0x26d508(0x425)]:_0x156cb3)??'default';class _0xc6a66b{constructor(_0x3b9ab7){const _0x449861=_0x26d508;this[_0x449861(0x4f7)]=_0x3b9ab7;}['_n'](_0x1a5db6,_0x2bc2bf,_0x176bbe=![]){const _0x10dbf5=_0x26d508;return this[_0x10dbf5(0x4f7)][_0x10dbf5(0x24a)](_0x10dbf5(0x6ef),null,_0x1a5db6,_0x2bc2bf,_0x176bbe);}[_0x26d508(0x577)](_0x5c5936,_0x17e067){const _0x384edd=_0x26d508;return this[_0x384edd(0x4f7)]['_callMacro'](_0x384edd(0x6ef),null,_0x5c5936,_0x17e067,!![]);}get[_0x26d508(0x60b)](){const _0x586241=this,_0x14e9d1=_0x1f5eb3=>{const _0x431e60=_0x36a2,_0x5811cd=_0x1f5eb3[_0x431e60(0x815)](':'),_0x747ef8=_0x1f5eb3[_0x431e60(0x6fe)](0x0,_0x5811cd),_0x25e795=_0x586241[_0x431e60(0x4f7)]['_envs']['get'](_0x747ef8);if(!_0x25e795)return undefined;const _0x2b7110=_0x25e795[_0x431e60(0x26e)][_0x431e60(0x6ec)]()[_0x431e60(0x472)](_0x4afbce=>_0x4afbce[_0x431e60(0x52c)]===_0x431e60(0x4b2)+_0x1f5eb3);if(!_0x2b7110)return undefined;return _0x25e795[_0x431e60(0x26e)]['_stopFor'](_0x2b7110['id'],_0x2b7110[_0x431e60(0x52c)]);};return{'get':_0x14e9d1,'has':_0x3fe572=>!!_0x14e9d1(_0x3fe572)};}get['_pendingOps'](){return[];}[_0x26d508(0x52b)](){const _0x22e4d7=_0x26d508,{RawDb:_0xd27988}=requireRawdb();return new _0xd27988(this[_0x22e4d7(0x4f7)][_0x22e4d7(0x7b5)],_0x22e4d7(0x1e5));}[_0x26d508(0x69d)](_0x51ea3f,_0x3ae522,_0x35be7d){const _0x30c87f=_0x26d508;return this['_n'](_0x30c87f(0x69d),[_0x51ea3f,_0x3ae522,_0x17b48c(_0x35be7d)]);}['status'](_0x472620,_0x5aed6a,_0x1a8681){const _0x45366b=_0x26d508;return this['_n'](_0x45366b(0x2e4),[_0x472620,_0x5aed6a,_0x17b48c(_0x1a8681)]);}[_0x26d508(0x6ec)](_0x48fddc,_0x2b6db7){return this['_n']('list',[_0x48fddc,_0x17b48c(_0x2b6db7)]);}async[_0x26d508(0x4fd)](_0x2d0f72,_0x526afc,_0x2e708a,_0x3e2856,_0xb40c13){const _0x402914=_0x26d508,_0x215b7f=(_0x16b847,_0x2a873a)=>this[_0x402914(0x4f7)]['_callMacro'](_0x402914(0x6ef),null,_0x16b847,_0x2a873a,!![],![]),_0x4c5493=Date[_0x402914(0x76a)]()+0x1d4c0;let _0x5e8cda=_0x2d0f72,_0x1a95c9=_0x526afc;for(;;){try{return await _0x215b7f(_0x5e8cda,_0x1a95c9);}catch(_0x3d1630){if(_0x3d1630['code']===_0x402914(0x1d6)){_0x5e8cda=_0x402914(0x574),_0x1a95c9=[_0x2e708a,_0x3e2856,_0x17b48c(_0xb40c13)];if(_0x3d1630['details']&&_0x3d1630[_0x402914(0x433)]['wait'])await new Promise(_0xc2b079=>setTimeout(_0xc2b079,0x2));continue;}if(_0x3d1630[_0x402914(0x316)]!==_0x402914(0x871)||Date['now']()>=_0x4c5493)throw _0x3d1630;}await new Promise(_0x1d3ae9=>setTimeout(_0x1d3ae9,0x5)),_0x5e8cda=_0x402914(0x5be),_0x1a95c9=[_0x2e708a,_0x3e2856,!![],_0x17b48c(_0xb40c13)];}}async['register'](_0x52c07f,_0xa72e5e,_0x3f9b5f,_0xbf668f,_0x23d23c){const _0x4d473c=_0x26d508;return this[_0x4d473c(0x4fd)](_0x4d473c(0x82d),[_0x52c07f,_0xa72e5e,_0x3f9b5f,_0xbf668f,_0x17b48c(_0x23d23c)],_0x52c07f,_0xa72e5e,_0x23d23c);}async[_0x26d508(0x4e3)](_0x50d3e7,_0x2c1f97,_0x5ab61b){const _0x1fd043=_0x26d508;return this['_nm'](_0x1fd043(0x4e3),[_0x50d3e7,_0x2c1f97,_0x17b48c(_0x5ab61b)]);}async['ensure'](_0x4ec34f,_0x5d6a23,_0x369709,_0x42582f){const _0x4dc101=_0x26d508;return this[_0x4dc101(0x4fd)](_0x4dc101(0x51b),[_0x4ec34f,_0x5d6a23,_0x369709,_0x17b48c(_0x42582f)],_0x4ec34f,_0x5d6a23,_0x42582f);}async[_0x26d508(0x5be)](_0x388f83,_0x346c05,_0x29c00a,_0x4e68b5){const _0x54f55f=_0x26d508;return this[_0x54f55f(0x4fd)](_0x54f55f(0x5be),[_0x388f83,_0x346c05,_0x29c00a,_0x17b48c(_0x4e68b5)],_0x388f83,_0x346c05,_0x4e68b5);}async[_0x26d508(0x609)](_0x45f301,_0xa48a38,_0x64db96,_0x523feb=0x1d4c0){const _0xaa66a8=_0x26d508,_0x1eb162=Date[_0xaa66a8(0x76a)]()+_0x523feb;for(;;){try{return await this[_0xaa66a8(0x577)](_0x45f301,[..._0xa48a38,0x1]);}catch(_0x35d58f){if(_0x35d58f[_0xaa66a8(0x316)]!==_0x64db96||Date['now']()>=_0x1eb162)throw _0x35d58f;}await new Promise(_0x276fa2=>setTimeout(_0x276fa2,0x2));}}async[_0x26d508(0x2bf)](_0x48a9c3,_0x3757a0,_0x22b7be){const _0x16bd9a=_0x26d508;return this['_waitNative'](_0x16bd9a(0x2bf),[_0x48a9c3,null,_0x17b48c(_0x22b7be)],_0x16bd9a(0x4b0));}async['flush'](_0x2d92a3,_0x1edea0){const _0x575f1d=_0x26d508;return this[_0x575f1d(0x609)]('flush',[_0x2d92a3,_0x17b48c(_0x1edea0)],_0x575f1d(0x151));}async[_0x26d508(0x60a)](_0x3e30a2,_0x383910){const _0x562124=_0x26d508;return this[_0x562124(0x577)]('compact',[_0x3e30a2,_0x17b48c(_0x383910)]);}async[_0x26d508(0x421)](_0x3ab348={}){const _0x3e6101=_0x26d508;return this[_0x3e6101(0x577)](_0x3e6101(0x421),[_0x3ab348]);}async[_0x26d508(0x595)](_0x4929af){const _0x31aba7=_0x26d508;return this[_0x31aba7(0x577)](_0x31aba7(0x595),[_0x17b48c(_0x4929af)]);}[_0x26d508(0x6f3)](_0x487eb7){const _0x5f4a0a=_0x26d508;return this['_n'](_0x5f4a0a(0x6f3),[_0x17b48c(_0x487eb7)]);}['search'](_0x1a2329,_0x462850,_0x1fd570,_0x262ee1,_0x55aa16){const _0x5c0e5a=_0x26d508;return this['_n'](_0x5c0e5a(0x3ff),[_0x1a2329,_0x462850,_0x1fd570,_0x262ee1||{},_0x17b48c(_0x55aa16)]);}[_0x26d508(0x70c)](_0x3809d5,_0x1f2a31,_0x2d5efb,_0x217ca3,_0x2dd7fa,_0x13e0e9){const _0x56dca3=_0x26d508;return this['_n'](_0x56dca3(0x70c),[_0x3809d5,_0x1f2a31,_0x2d5efb,_0x217ca3||{},_0x17b48c(_0x2dd7fa),_0x13e0e9]);}['_searchWithScores'](_0x329d9e,_0x3ab497,_0x598f8f,_0xe1f47b,_0x5d1c76){return this['_n']('searchWithScores',[_0x329d9e,_0x3ab497,_0x598f8f,_0xe1f47b||{},_0x17b48c(_0x5d1c76)]);}[_0x26d508(0x259)](){return this['_n']('listFtsEnvs',[]);}async[_0x26d508(0x7da)](){const _0x3dfedf=_0x26d508;return this[_0x3dfedf(0x577)](_0x3dfedf(0x7da),[]);}}return fts={'OKDBFts':_0xc6a66b},fts;}var embeddings,hasRequiredEmbeddings;function requireEmbeddings(){const _0xb23287=_0x2d5353;if(hasRequiredEmbeddings)return embeddings;hasRequiredEmbeddings=0x1;const {OKDBError:_0x41dcc0,invalidArgument:_0x5a6350}=requireErrors();requireBridge();const _0x171944=Object[_0xb23287(0x1c4)]({'EMBEDDER':_0xb23287(0x122),'INDEXER':_0xb23287(0x706),'SEARCH':'vector-search','WORKER':_0xb23287(0x31b)});async function _0x1839e8(_0x25a661,_0x1f81bb,_0x5e76e5,_0x590225={}){const _0x5637c7=_0xb23287,_0x51237e=_0x590225&&_0x590225['timeoutMs']!=null?Number(_0x590225[_0x5637c7(0x32e)]):0x1d4c0,_0x89aa3b=Date['now']()+_0x51237e;await _0x1f81bb();for(;;){const _0x4f6cf0=await _0x5e76e5()||{};if(_0x4f6cf0[_0x5637c7(0x4ac)]&&!_0x4f6cf0[_0x5637c7(0x814)])return!![];if(Date['now']()>=_0x89aa3b)throw new _0x41dcc0(_0x5637c7(0x457)+_0x25a661+_0x5637c7(0x68e)+_0x51237e+_0x5637c7(0x602),_0x5637c7(0x39e),{'name':_0x25a661,'timeoutMs':_0x51237e,'loaded':!!_0x4f6cf0['loaded'],'building':!!_0x4f6cf0[_0x5637c7(0x814)],'count':_0x4f6cf0[_0x5637c7(0x21b)]});await new Promise(_0x2f861d=>setTimeout(_0x2f861d,0xa));}}const _0x18cb59=_0x1f77bf=>typeof _0x1f77bf===_0xb23287(0x84a)||_0x1f77bf==null?_0x1f77bf:Array[_0xb23287(0x3ed)](_0x1f77bf);class _0x5c0fbf{constructor(_0x520dd9){const _0xfcdde0=_0xb23287;this['okdb']=_0x520dd9,this[_0xfcdde0(0x342)]=new Map(),this[_0xfcdde0(0x43a)]=new Map(),this[_0xfcdde0(0x62f)]=new Map();}['_n'](_0x161849,_0x827bb6=[],_0xefc845=!![]){const _0x1d01d0=_0xb23287;return this['okdb']['_call'](_0x1d01d0(0x6ed),null,_0x161849,_0x827bb6,_0xefc845);}[_0xb23287(0x577)](_0x2186d5,_0x4447cc=[]){const _0x51af03=_0xb23287;return this[_0x51af03(0x4f7)][_0x51af03(0x67a)](_0x51af03(0x6ed),null,_0x2186d5,_0x4447cc,!![]);}[_0xb23287(0x48e)](_0x4e9405){const _0x48e1a7=_0xb23287;return _0x4e9405?this[_0x48e1a7(0x4f7)][_0x48e1a7(0x617)][_0x48e1a7(0x48e)](_0x4e9405):null;}['registerEmbedderFactory'](_0x1623ea,_0x186fdb,_0x23f459={}){const _0x569cfc=_0xb23287;if(typeof _0x186fdb!=='function')throw new _0x41dcc0(_0x569cfc(0x85a),_0x569cfc(0x29b),{'name':_0x1623ea});this[_0x569cfc(0x342)][_0x569cfc(0x7a0)](_0x1623ea,_0x186fdb),this['_jsSchemas'][_0x569cfc(0x7a0)](_0x1623ea,_0x23f459);const _0x5660b2=this['okdb'],_0x21a30c=_0x3c068d=>_0x186fdb(_0x3c068d,_0x5660b2);_0x21a30c[_0x569cfc(0x330)]=_0x5660b2,this['_n'](_0x569cfc(0x5ea),[_0x1623ea,_0x21a30c,_0x23f459??{}],![]);}[_0xb23287(0x4e5)](_0x510d48){const _0x9f28cf=_0xb23287,_0x49ee87=this['_jsFactories'][_0x9f28cf(0x6ce)](_0x510d48);if(_0x49ee87)return _0x49ee87;if(!this['_n'](_0x9f28cf(0x267),[_0x510d48],![]))return null;const _0x23d7b5=this;return(_0x3893a1={})=>{const _0x5d9ed8=_0x9f28cf,_0x1cc4c3=_0x23d7b5['_n'](_0x5d9ed8(0x3da),[_0x510d48,_0x3893a1],![]),_0x2191e0=_0x23d7b5['_n'](_0x5d9ed8(0x4f4),[_0x1cc4c3],![]),_0x3a9210=(_0x120445,_0xd5d45c)=>_0x23d7b5['_n'](_0x5d9ed8(0x35e),[_0x1cc4c3,_0x120445,_0xd5d45c],![]),_0x44ea64={'embed':async _0x161d70=>Float32Array[_0x5d9ed8(0x3ed)](_0x3a9210(_0x5d9ed8(0x6b9),_0x161d70)),'start':async()=>_0x3a9210('start'),'stop':async()=>{const _0x4de684=_0x5d9ed8;_0x3a9210(_0x4de684(0x32a)),_0x3a9210(_0x4de684(0x152));}};if(_0x2191e0)_0x44ea64[_0x5d9ed8(0x3f6)]=async _0x4018b5=>_0x3a9210(_0x5d9ed8(0x3f6),_0x4018b5)[_0x5d9ed8(0x4e8)](_0x41faa2=>Float32Array[_0x5d9ed8(0x3ed)](_0x41faa2));return _0x44ea64;};}[_0xb23287(0x25b)](_0x30efaa){const _0x17a0b1=_0xb23287;return this[_0x17a0b1(0x43a)]['get'](_0x30efaa)??this['_n'](_0x17a0b1(0x25b),[_0x30efaa],![])??undefined;}[_0xb23287(0x288)](_0x480f09,_0x321ffe,_0x4efdcd={}){const _0x37990c=_0xb23287;if(typeof _0x321ffe!=='function')throw new _0x41dcc0(_0x37990c(0x765),_0x37990c(0x29b),{'name':_0x480f09});this['_n'](_0x37990c(0x288),[_0x480f09,(_0x3a612c,_0x5a8e3c)=>_0x321ffe(_0x3a612c,_0x5a8e3c),_0x4efdcd??{}],![]);}[_0xb23287(0x79e)](){const _0x1ebe9a=_0xb23287;return this['_n'](_0x1ebe9a(0x79e),[],![]);}[_0xb23287(0x797)](_0x5c9e06,_0x212083){const _0x33f88e=_0xb23287;if(typeof _0x212083!=='function')throw new _0x41dcc0(_0x33f88e(0x580),_0x33f88e(0x29b),{'name':_0x5c9e06});this['_n'](_0x33f88e(0x797),[_0x5c9e06,_0x212083]);}[_0xb23287(0x627)](_0x5a3f23,_0x5a67ef){const _0x248b41=_0xb23287;if(typeof _0x5a67ef!=='function')throw new _0x41dcc0(_0x248b41(0x66f),_0x248b41(0x29b),{'name':_0x5a3f23});this['_n'](_0x248b41(0x627),[_0x5a3f23,_0x5a67ef]);}[_0xb23287(0x588)](_0x4e9277){const _0x500e5a=_0xb23287;if(_0x4e9277==null)return this['_n']('setStorageResolver',[null],![]);if(typeof _0x4e9277!==_0x500e5a(0x3b3))throw new _0x41dcc0('Storage\x20resolver\x20must\x20be\x20a\x20function','BAD_PARAM');const _0x1a811a=this[_0x500e5a(0x4f7)];this['_n'](_0x500e5a(0x588),[_0x295e04=>_0x4e9277(_0x295e04,_0x1a811a)],![]);}async[_0xb23287(0x840)](_0x471141,_0x307eb4={},_0x18e395={},_0x39627c=null){const _0x334825=_0xb23287;return this[_0x334825(0x48e)](await this[_0x334825(0x577)](_0x334825(0x840),[_0x471141,_0x307eb4,_0x18e395,_0x39627c]));}async['createIndexer'](_0x37fe08,_0x30c209={},_0x476690={}){const _0x3b70ba=_0xb23287;return this[_0x3b70ba(0x48e)](await this['_nm']('createIndexer',[_0x37fe08,_0x30c209,_0x476690]));}async[_0xb23287(0x206)](_0x29e96b,_0xda0dac={},_0x373bf4={}){const _0x444b22=_0xb23287;return this[_0x444b22(0x48e)](await this[_0x444b22(0x577)](_0x444b22(0x206),[_0x29e96b,_0xda0dac,_0x373bf4]));}async[_0xb23287(0x234)](_0x2c1ad7,_0x333d4f={},_0x89a2c5={}){const _0x4b697c=_0xb23287;return this[_0x4b697c(0x48e)](await this['_nm'](_0x4b697c(0x234),[_0x2c1ad7,_0x333d4f,_0x89a2c5]));}async[_0xb23287(0x85f)](_0x32effb,_0x420d98={},_0x186f9e={}){const _0x3ad5a9=_0xb23287,_0x180880=await this['_nm'](_0x3ad5a9(0x85f),[_0x32effb,_0x420d98,_0x186f9e]);return{'embedder':this['_wrap'](_0x180880[_0x3ad5a9(0x122)]),'indexer':this[_0x3ad5a9(0x48e)](_0x180880[_0x3ad5a9(0x706)]),'worker':this['_wrap'](_0x180880[_0x3ad5a9(0x7ab)]),'search':this[_0x3ad5a9(0x48e)](_0x180880[_0x3ad5a9(0x3ff)]),'api':this[_0x3ad5a9(0x485)](_0x180880[_0x3ad5a9(0x17d)],_0x180880['embedder'][_0x3ad5a9(0x425)],_0x180880['worker']?_0x180880[_0x3ad5a9(0x7ab)][_0x3ad5a9(0x425)]:_0x180880[_0x3ad5a9(0x17d)]+_0x3ad5a9(0x348))};}[_0xb23287(0x73a)](_0x549940,_0x3c3928){const _0x2779b1=_0xb23287;return this[_0x2779b1(0x4f7)][_0x2779b1(0x617)][_0x2779b1(0x6a9)](_0x549940,_0x3c3928)?.[_0x2779b1(0x551)]??null;}[_0xb23287(0x122)](_0x4954ee){const _0x1ebc8e=_0xb23287,_0x40d91f=this['_running'](_0x171944[_0x1ebc8e(0x3e4)],_0x4954ee);if(!_0x40d91f)return null;const _0x3e8e71=this,_0x4dc505=_0x5dd842=>Array[_0x1ebc8e(0x7e3)](_0x5dd842)&&Array[_0x1ebc8e(0x7e3)](_0x5dd842[0x0])?_0x5dd842[_0x1ebc8e(0x4e8)](_0x8eadb1=>Float32Array[_0x1ebc8e(0x3ed)](_0x8eadb1)):Float32Array['from'](_0x5dd842);return new Proxy(_0x40d91f,{'get'(_0x3b0e7f,_0x3c4e88){const _0x405662=_0x1ebc8e;if(_0x3c4e88==='dims')return _0x3e8e71[_0x405662(0x4f7)][_0x405662(0x24a)](_0x405662(0x617),null,_0x405662(0x30c),[_0x171944[_0x405662(0x3e4)],_0x4954ee,_0x405662(0x250),[]],![])[_0x405662(0x821)];if(_0x3c4e88===_0x405662(0x6b9))return async _0x15f5eb=>_0x4dc505(await _0x40d91f[_0x405662(0x6b9)](_0x15f5eb));if(_0x3c4e88===_0x405662(0x3f6))return async _0x501263=>(await _0x40d91f[_0x405662(0x3f6)](_0x501263))[_0x405662(0x4e8)](_0x436366=>Float32Array[_0x405662(0x3ed)](_0x436366));return _0x3b0e7f[_0x3c4e88];}});}[_0xb23287(0x706)](_0x363276){const _0x112ddb=_0xb23287;return this[_0x112ddb(0x73a)](_0x171944[_0x112ddb(0x375)],_0x363276);}[_0xb23287(0x7ab)](_0x381feb){const _0x73c621=_0xb23287;return this['_running'](_0x171944[_0x73c621(0x7f0)],_0x381feb);}[_0xb23287(0x3ff)](_0x3abd0c){const _0x29de11=_0xb23287,_0x1790c8=this['_running'](_0x171944[_0x29de11(0x387)],_0x3abd0c);if(_0x1790c8){const _0x3178a7=_0x87f848=>_0x1839e8(_0x3abd0c,async()=>_0x1790c8['load'](),async()=>_0x1790c8[_0x29de11(0x159)](),_0x87f848);return new Proxy(_0x1790c8,{'get':(_0x334449,_0x56c640)=>_0x56c640===_0x29de11(0x2bf)?_0x3178a7:_0x334449[_0x56c640]});}return this[_0x29de11(0x141)](_0x3abd0c);}[_0xb23287(0x141)](_0x4c17a8){const _0x3a2d3b=_0xb23287,_0x2a2097=this;return{'search':(_0x4acc5b,_0xaaf09={})=>_0x2a2097[_0x3a2d3b(0x4f7)]['_callMacro']('embeddings',null,_0x3a2d3b(0x3ff),[_0x4c17a8,_0x18cb59(_0x4acc5b),_0xaaf09],![]),'stats':async()=>_0x2a2097['_n'](_0x3a2d3b(0x696),[_0x4c17a8],![]),'count':()=>_0x2a2097['_n'](_0x3a2d3b(0x2a7),[_0x4c17a8,_0x3a2d3b(0x21b)],![]),'ready':_0x50bc82=>_0x1839e8(_0x4c17a8,async()=>_0x2a2097['_n'](_0x3a2d3b(0x2a7),[_0x4c17a8,'load'],!![]),async()=>_0x2a2097['_n'](_0x3a2d3b(0x696),[_0x4c17a8],!![]),_0x50bc82)};}async['searchDocs'](_0x341112,_0x4ba71d,_0x289658={}){const _0x36326b=_0xb23287,{limit:limit=0xa,..._0xd9555}=_0x289658;return this['_nm'](_0x36326b(0x70c),[_0x341112,_0x18cb59(_0x4ba71d),{..._0xd9555,'limit':limit}]);}['vectorSpace'](_0x1fcd62){const _0x2dd192=_0xb23287;return this['_n'](_0x2dd192(0x6bc),[_0x1fcd62],![]);}[_0xb23287(0x24b)](_0x4181f8,_0x12036b){const _0x3ccf3c=_0xb23287;return this['_n'](_0x3ccf3c(0x29c),[_0x4181f8,_0x12036b],![]);}['_durableEmbedderInfo'](_0x210478){const _0x557010=_0xb23287;return this['_n'](_0x557010(0x83f),[_0x210478],![]);}async[_0xb23287(0x5fd)](_0x5394c1){const _0x16671b=_0xb23287;return this['_n'](_0x16671b(0x57e),[_0x5394c1],![]);}async[_0xb23287(0x47a)](_0x43263e,_0x1b9aa1={}){const _0x22527a=_0xb23287;return this['_n'](_0x22527a(0x23d),[_0x43263e,_0x1b9aa1],![]);}async[_0xb23287(0x803)](_0x495d62,_0xb9caeb){return this['_n']('durableDoc',[_0x495d62,_0xb9caeb],![]);}async[_0xb23287(0x128)](_0x78162d,_0x496150,_0x4dbc7d,_0x197dc7){const _0x463814=_0xb23287;if(_0x78162d!=null&&typeof _0x78162d[_0x463814(0x6f8)]!=='function')throw _0x5a6350(_0x463814(0x425),_0x463814(0x705),_0x78162d);if(!_0x78162d||!_0x4dbc7d)return null;return this[_0x463814(0x4f7)]['_callMacro']('embeddings',null,_0x463814(0x128),[_0x78162d,_0x496150,_0x4dbc7d,_0x197dc7??null],![]);}async[_0xb23287(0x7c1)](_0x5385d8,_0x4d9b94,_0x35258d={}){const _0x211305=_0xb23287,_0x1a7319={..._0x35258d};if(_0x1a7319[_0x211305(0x695)])_0x1a7319[_0x211305(0x695)]=Array[_0x211305(0x3ed)](_0x1a7319[_0x211305(0x695)]);return this['_n'](_0x211305(0x7c1),[_0x5385d8,_0x4d9b94,_0x1a7319]);}async[_0xb23287(0x41e)](_0x4cd936,_0xeb4eaa,_0x3d1681,_0x1f2ae8={}){const _0x41e87d=_0xb23287;return this['_n'](_0x41e87d(0x41e),[_0x4cd936,_0xeb4eaa,_0x3d1681,_0x1f2ae8]);}async[_0xb23287(0x6c3)](_0x4e6128,_0x33d2b6){return this['_n']('durableMarkDelete',[_0x4e6128,_0x33d2b6]);}async[_0xb23287(0x31a)](_0x50dce2,_0x5d78e8){const _0x54a465=_0xb23287;return this['_n'](_0x54a465(0x31a),[_0x50dce2,_0x5d78e8]);}async[_0xb23287(0x7f1)](_0x147d99,_0x25a0fd={}){return this['_n']('durableRetryFailed',[_0x147d99,_0x25a0fd]);}async[_0xb23287(0x12f)](_0x2bac55){const _0x452fae=_0xb23287;return this['_nm'](_0x452fae(0x12f),[_0x2bac55]);}async['_durableWorkerStats'](_0x1964a7){const _0x599c8e=_0xb23287;return this['_n'](_0x599c8e(0x2ae),[_0x1964a7],![]);}['vectorStoreStats'](_0x1c6916){const _0x45ee80=_0xb23287;return this['_n'](_0x45ee80(0x5d8),[_0x1c6916],![]);}['listVectorStores'](){const _0x2d0c27=_0xb23287;return this['_n'](_0x2d0c27(0x688),[],![]);}[_0xb23287(0x6ae)](_0x34fe4f,_0x2fcd47){const _0x35d010=_0xb23287,_0x1b40a9=this['_n'](_0x35d010(0x6ae),[_0x34fe4f,_0x2fcd47],![]);return _0x1b40a9==null?null:Float32Array[_0x35d010(0x3ed)](_0x1b40a9);}[_0xb23287(0x226)](_0x5b373c,_0x3b1147){return this['_n']('resolveModelDims',[_0x5b373c,_0x3b1147??null],![])??undefined;}async[_0xb23287(0x406)](_0x3127a7,_0xba5a35,_0x57f764,_0x432650=''){const _0x5487f6=_0xb23287;return this['_n'](_0x5487f6(0x406),[_0x3127a7,_0xba5a35,_0x57f764,_0x432650]);}['listModels'](_0x2272a4=null){const _0x1b250a=_0xb23287;return this['_n'](_0x1b250a(0x238),[_0x2272a4],![]);}['listProviders'](){const _0x3c4aab=_0xb23287;return this['_n'](_0x3c4aab(0x653),[],![]);}async[_0xb23287(0x78b)](_0x2d0f58,_0x3929be){const _0x3dfa28=_0xb23287;return this['_n'](_0x3dfa28(0x63c),[_0x2d0f58,_0x3929be],![]),this[_0x3dfa28(0x4f7)][_0x3dfa28(0x1c2)]('~'+_0x2d0f58+_0x3dfa28(0x502)+_0x3929be);}async['_ensureVectorStore'](_0x26af92,_0x4a6a4b){const _0x584d5a=_0xb23287;return await this[_0x584d5a(0x78b)](_0x26af92,_0x4a6a4b),{'adapter':_0x20cce0=>this[_0x584d5a(0x5ab)](_0x26af92,_0x4a6a4b,_0x20cce0)};}['_makeLazyVectorAdapter'](_0x170c37,_0xca052b,_0x1f4c3f){const _0x47bd6a=this;return{async 'put'(_0x30c9f9,_0x1f6a92){const _0xc1e18e=_0x36a2;return _0x47bd6a['_n'](_0xc1e18e(0x776),[_0x170c37,_0xca052b,_0x1f4c3f,_0x30c9f9,Array[_0xc1e18e(0x3ed)](_0x1f6a92)]);},async 'remove'(_0x3ca583){const _0x55afea=_0x36a2;return _0x47bd6a['_n'](_0x55afea(0x558),[_0x170c37,_0xca052b,_0x1f4c3f,_0x3ca583]);}};}get[_0xb23287(0x5f0)](){const _0x51054f=_0xb23287,_0x1d3ae2=this,_0x3cbd47=()=>_0x1d3ae2['_n'](_0x51054f(0x2a4),[],![]),_0x4bb0d1=_0x4c277d=>{const _0x206d3f=_0x51054f,_0x17a433=_0x152ccf=>_0x1d3ae2['_n']('viewOp',[_0x4c277d,_0x152ccf],![]);return{'name':_0x4c277d,'_evict':async()=>_0x17a433(_0x206d3f(0x659)),'evict':async()=>_0x17a433(_0x206d3f(0x659)),'snapshot':async()=>_0x17a433(_0x206d3f(0x22c)),'_snapshot':async()=>_0x17a433(_0x206d3f(0x22c)),'rebuild':async()=>_0x17a433(_0x206d3f(0x247)),'stats':()=>_0x17a433(_0x206d3f(0x159)),get 'count'(){const _0x3e4504=_0x206d3f;return _0x17a433(_0x3e4504(0x21b));},get 'loaded'(){const _0x49d7b5=_0x206d3f;return _0x17a433(_0x49d7b5(0x4ac));}};};return{get 'size'(){const _0x37c7e9=_0x51054f;return _0x3cbd47()[_0x37c7e9(0x192)];},'has':_0x3a8807=>_0x3cbd47()[_0x51054f(0x6f8)](_0x3a8807),'get':_0x27a590=>_0x3cbd47()['includes'](_0x27a590)?_0x4bb0d1(_0x27a590):undefined,'keys':()=>_0x3cbd47()[Symbol[_0x51054f(0x1f2)]](),'values':()=>_0x3cbd47()[_0x51054f(0x4e8)](_0x4bb0d1)[Symbol[_0x51054f(0x1f2)]](),[Symbol['iterator']]:()=>_0x3cbd47()['map'](_0x3ebdff=>[_0x3ebdff,_0x4bb0d1(_0x3ebdff)])[Symbol[_0x51054f(0x1f2)]]()};}async['start'](){}async[_0xb23287(0x32a)](){const _0x4c0637=_0xb23287;this['_n'](_0x4c0637(0x32a),[]);}[_0xb23287(0x485)](_0x347824,_0x18f13a,_0x2bea78){const _0x7d97ee=_0xb23287;return{'search':(_0x23af39,_0x3f38a6={})=>{const _0x3de92d=_0x36a2,_0x5ea064=this[_0x3de92d(0x3ff)](_0x347824);if(!_0x5ea064)throw new Error(_0x3de92d(0x607)+_0x347824+'\x22');return _0x5ea064[_0x3de92d(0x3ff)](_0x23af39,_0x3f38a6);},'searchDocs':(_0x550543,_0x10c618={})=>this[_0x7d97ee(0x70c)](_0x347824,_0x550543,_0x10c618),'flush':_0x1fe3d6=>{const _0x1143a6=_0x7d97ee,_0x155f3f=this[_0x1143a6(0x706)](_0x347824);if(!_0x155f3f)throw new Error(_0x1143a6(0x220)+_0x347824+'\x22');return _0x155f3f[_0x1143a6(0x53c)](_0x1fe3d6);},'stats':async()=>({'embedder':await this[_0x7d97ee(0x122)](_0x18f13a)?.[_0x7d97ee(0x27f)]?.(),'indexer':await this[_0x7d97ee(0x706)](_0x347824)?.['stats']?.(),'worker':await this[_0x7d97ee(0x7ab)](_0x2bea78)?.['stats']?.(),'search':await this['search'](_0x347824)?.['stats']?.()})};}}return embeddings={'OKDBEmbeddings':_0x5c0fbf,'ENGINE_TYPES':_0x171944},embeddings;}var auth,hasRequiredAuth;function requireAuth(){const _0x3b708a=_0x2d5353;if(hasRequiredAuth)return auth;hasRequiredAuth=0x1;const {invalidArgument:_0x3842f7}=requireErrors();class _0x18b8eb{constructor(_0x15f886){const _0x249bf3=_0x36a2;this[_0x249bf3(0x4f7)]=_0x15f886;}['_n'](_0xd97bdb,_0x293d64=[],_0x310615=![]){const _0x52a448=_0x36a2;return this[_0x52a448(0x4f7)][_0x52a448(0x24a)]('auth',null,_0xd97bdb,_0x293d64,_0x310615);}[_0x3b708a(0x577)](_0x4a1882,_0x52bb63=[]){const _0x5614d5=_0x3b708a;return this['okdb'][_0x5614d5(0x67a)](_0x5614d5(0x13d),null,_0x4a1882,_0x52bb63,![]);}get[_0x3b708a(0x82b)](){const _0x4320ce=_0x3b708a;return this['_n'](_0x4320ce(0x82b));}get[_0x3b708a(0x590)](){const _0x2382c2=_0x3b708a;return this['_n'](_0x2382c2(0x590));}get[_0x3b708a(0x44f)](){const _0x166d23=_0x3b708a;return this[_0x166d23(0x4f7)]['options'][_0x166d23(0x13d)]?.[_0x166d23(0x63b)]||{};}[_0x3b708a(0x4e7)](_0x4bb470){const _0x532168=_0x3b708a;return this['_n'](_0x532168(0x4e7),[_0x4bb470??null]);}[_0x3b708a(0x842)](_0x1727a7){return this['_n']('isOpenForIp',[_0x1727a7??null]);}['_isLoopbackIp'](_0x3b0b91){const _0x164d47=_0x3b708a;return this['_n'](_0x164d47(0x3bd),[_0x3b0b91??null]);}[_0x3b708a(0x7f7)](){const _0x2c1e69=_0x3b708a;return this['_n'](_0x2c1e69(0x3b7));}[_0x3b708a(0x317)](){const _0x3c9121=_0x3b708a;return this['_n'](_0x3c9121(0x317));}[_0x3b708a(0x2b5)](){const _0x7f678f=_0x3b708a;return this['_n'](_0x7f678f(0x2b5));}[_0x3b708a(0x60f)](_0x524131){const _0x1813dc=_0x3b708a;return this['_n'](_0x1813dc(0x60f),[_0x524131]);}['authenticateToken'](_0x1b223e){const _0x2cdc63=_0x3b708a;return this['_n'](_0x2cdc63(0x358),[_0x1b223e]);}[_0x3b708a(0x834)](_0x279a47){const _0xf63da=_0x3b708a;if(_0x279a47!=null&&typeof _0x279a47!==_0xf63da(0x84a))throw _0x3842f7(_0xf63da(0x717),_0xf63da(0x705),_0x279a47);return this['_n']('parseBearer',[_0x279a47??null]);}async[_0x3b708a(0x755)](){const _0x19eb1b=_0x3b708a;return this['_n'](_0x19eb1b(0x19e),[],!![]);}async[_0x3b708a(0x486)](_0x12dfa1){return this['_n']('lookupByTokenHash',[_0x12dfa1]);}async['_lookupByName'](_0x33c64d){const _0x2ddafe=_0x3b708a;return this['_n'](_0x2ddafe(0x2f2),[_0x33c64d]);}async[_0x3b708a(0x579)](_0x4ce5c8){const _0x4c34f8=_0x3b708a;return this['_n'](_0x4c34f8(0x4d6),[_0x4ce5c8]);}async[_0x3b708a(0x7b8)](_0x52deb1){const _0xf9fda1=_0x3b708a,_0xc12671=_0x52deb1?.[_0xf9fda1(0x44a)]||{};return this['_n'](_0xf9fda1(0x7b8),[{'remoteAddress':_0x52deb1[_0xf9fda1(0x5e5)]?.[_0xf9fda1(0x4a0)]??null,'internal':_0x52deb1?.[_0xf9fda1(0x3ce)]?.['internal']===!![],'authorization':_0xc12671[_0xf9fda1(0x5a3)]??null,'cookies':_0x52deb1?.['cookies']??{}}]);}async[_0x3b708a(0x262)](_0x5581e9,_0x715f0b){const _0x9ac0b3=_0x3b708a;return this[_0x9ac0b3(0x577)](_0x9ac0b3(0x262),[_0x5581e9??null,_0x715f0b??null]);}async[_0x3b708a(0x14a)](_0x4c2576,_0x484916,_0xa57464){const _0x1798ee=_0x3b708a;return this[_0x1798ee(0x577)]('loginSelect',[_0x4c2576??null,_0x484916??null,_0xa57464??null]);}[_0x3b708a(0x23c)](){return this['_n']('getSecurityNotices');}[_0x3b708a(0x5e7)](){const _0x32be09=_0x3b708a;return this['_n'](_0x32be09(0x5e7));}[_0x3b708a(0x777)](_0x409c51={},_0x12fa43=0x927c0){const _0x13b11d=_0x3b708a;return this['_n'](_0x13b11d(0x777),[_0x409c51,_0x12fa43]);}['consumeLoginState'](_0x5e3caa){const _0x46219d=_0x3b708a;return this['_n'](_0x46219d(0x4a3),[_0x5e3caa]);}async['_validateOidcAccessToken'](_0xd4ea17,_0x188b3b={}){const _0x2d993c=_0x3b708a;return this[_0x2d993c(0x577)]('validateOidcAccessToken',[_0xd4ea17,_0x188b3b]);}async[_0x3b708a(0x5ac)](_0x287e5b={}){const _0x4c6b17=_0x3b708a;return this[_0x4c6b17(0x577)](_0x4c6b17(0x3fb),[_0x287e5b]);}[_0x3b708a(0x1df)](_0x2dfd05){const _0x2a9710=_0x3b708a;return this['_n'](_0x2a9710(0x6ee),[_0x2dfd05]);}}return auth={'OKDBAuth':_0x18b8eb},auth;}var sync,hasRequiredSync;function requireSync(){const _0x569042=_0x2d5353;if(hasRequiredSync)return sync;hasRequiredSync=0x1;const {RawDb:_0x4d51aa}=requireRawdb();class _0x29cfd1{constructor(_0xaf80ac){this['_s']=_0xaf80ac;}get[_0x569042(0x3e1)](){const _0x3e7a49=_0x569042;return this[_0x3e7a49(0x865)]||(this[_0x3e7a49(0x865)]=new _0x4d51aa(this['_s'][_0x3e7a49(0x4f7)][_0x3e7a49(0x7b5)],'__sync:acks'));}[_0x569042(0x7aa)](){return this['_ackDb'];}['_ensureDbs'](){return this['_ackDb'];}['_n'](_0x3a4c70,_0x153cf0=[]){const _0x35d2f8=_0x569042;return this['_s']['_n'](_0x35d2f8(0x6a1)+_0x3a4c70,_0x153cf0);}[_0x569042(0x371)](_0x40f37c,_0x97e059){const _0x1a8422=_0x569042;return this['_n'](_0x1a8422(0x371),[_0x40f37c,_0x97e059]);}async[_0x569042(0x249)](_0x5d9a3a){const _0xe2b871=_0x569042;return this['_n'](_0xe2b871(0x249),[_0x5d9a3a]);}[_0x569042(0x5d4)](){const _0x5c8efd=_0x569042;return this['_n'](_0x5c8efd(0x5d4));}[_0x569042(0x80f)](_0x5c1b50){const _0x223b69=_0x569042;return this['_n'](_0x223b69(0x80f),[_0x5c1b50]);}async[_0x569042(0x85d)](){const _0x494516=_0x569042;return this['_n'](_0x494516(0x85d));}['getStatus'](){const _0x231cd2=_0x569042;return this['_n'](_0x231cd2(0x782));}[_0x569042(0x4df)](){const _0x3d1072=_0x569042;return this['_n'](_0x3d1072(0x4df));}[_0x569042(0x32a)](){return this['_n']('stop');}get[_0x569042(0x3d0)](){const _0x4d1e36=_0x569042;try{return this['_n'](_0x4d1e36(0x7fc))?{}:null;}catch{return null;}}}class _0x24339d{constructor(_0x3807e2){const _0xa1652a=_0x569042;this[_0xa1652a(0x4f7)]=_0x3807e2,this['gc']=new _0x29cfd1(this);const _0x4595f0=this;this[_0xa1652a(0x4c0)]=new Proxy({},{'get':(_0x2b0a84,_0x3e68e1)=>typeof _0x3e68e1==='string'?_0x4595f0['_n']('options')[_0x3e68e1]:undefined,'set':(_0x3fd5a2,_0x1d40b4,_0x339bb2)=>{const _0x6981ef=_0xa1652a;if(_0x1d40b4===_0x6981ef(0x37b))_0x4595f0['_n'](_0x6981ef(0x34d),[_0x339bb2??null]);else{if(_0x1d40b4===_0x6981ef(0x877))_0x4595f0['_n']('setToken',[_0x339bb2??null]);else{if(_0x1d40b4===_0x6981ef(0x874))_0x4595f0['_n'](_0x6981ef(0x4ec),[_0x339bb2]);}}return!![];},'ownKeys':()=>Object[_0xa1652a(0x50d)](_0x4595f0['_n'](_0xa1652a(0x4c0))),'getOwnPropertyDescriptor':(_0x32184e,_0x508ca2)=>({'enumerable':!![],'configurable':!![],'value':_0x4595f0['_n'](_0xa1652a(0x4c0))[_0x508ca2]}),'has':(_0x3be418,_0x35d849)=>_0x35d849 in _0x4595f0['_n'](_0xa1652a(0x4c0))});}['_n'](_0x2a16ad,_0x1c9269=[],_0x9d7ef3=![]){const _0x2dbf6e=_0x569042;return this[_0x2dbf6e(0x4f7)][_0x2dbf6e(0x24a)](_0x2dbf6e(0x2a2),null,_0x2a16ad,_0x1c9269,_0x9d7ef3);}[_0x569042(0x577)](_0x195349,_0x116266=[]){const _0x5bcda9=_0x569042;return this[_0x5bcda9(0x4f7)]['_callMacro'](_0x5bcda9(0x2a2),null,_0x195349,_0x116266,!![]);}get[_0x569042(0x1b7)](){const _0x216f28=_0x569042;return this[_0x216f28(0x239)]||(this['_pdb']=new _0x4d51aa(this[_0x216f28(0x4f7)][_0x216f28(0x7b5)],'__sync:peer_state'));}[_0x569042(0x382)](){const _0x3900f8=_0x569042;return this[_0x3900f8(0x1b7)];}get[_0x569042(0x481)](){const _0x1751a4=_0x569042;return this[_0x1751a4(0x39a)]||(this['_syncLock']=new(requireLock())[(_0x1751a4(0x34f))](this['okdb'],'~system',_0x1751a4(0x2a2),{'ttlMs':0x7530}));}get['address'](){const _0x5b47a5=_0x569042;return this['_n'](_0x5b47a5(0x4c0))['address'];}get['_clockListener'](){const _0x40c8af=_0x569042;return this['okdb']['_isOpen']&&this['_n'](_0x40c8af(0x150))?{}:null;}get[_0x569042(0x474)](){const _0x2fb9c2=_0x569042;return this[_0x2fb9c2(0x681)];}get['_nodePrivateKey'](){const _0xe8695f=_0x569042;return this['_n'](_0xe8695f(0x14d))?.[_0xe8695f(0x7d1)];}get['_nodePublicKey'](){const _0x13218e=_0x569042;return this['_n'](_0x13218e(0x14d))?.[_0x13218e(0x78c)];}['info'](){const _0x43d264=_0x569042;return this['_n'](_0x43d264(0x758));}['getSelfNode'](){const _0x2d1777=_0x569042;return this['_n'](_0x2d1777(0x2a3));}get['peers'](){return this['__peers']||(()=>this['_n']('peers'));}set[_0x569042(0x19b)](_0x39039e){const _0x557435=_0x569042;this[_0x557435(0x2c9)]=typeof _0x39039e==='function'?_0x39039e:null,this['_n'](_0x557435(0x7b7),[this[_0x557435(0x2c9)]]);}[_0x569042(0x470)](){const _0x5aac6a=_0x569042;return this['_n'](_0x5aac6a(0x2c0));}async['reconcile'](){const _0x492c47=_0x569042;return this[_0x492c47(0x577)](_0x492c47(0x423));}async[_0x569042(0x2f6)](_0x6d5de9){const _0x49419c=_0x569042;return this['_nm'](_0x49419c(0x2f6),[_0x6d5de9]);}async[_0x569042(0x42e)](_0xfc6557,_0x2b12f2={}){const _0x337768=_0x569042;return this[_0x337768(0x577)](_0x337768(0x720),[_0xfc6557,_0x2b12f2]);}[_0x569042(0x32a)](){const _0xb0b114=_0x569042;return this['_n'](_0xb0b114(0x32a));}[_0x569042(0x2fd)](){return this['_n']('listLinks');}async[_0x569042(0x362)](_0x42c426,_0x3745e9={}){const _0x285c51=_0x569042;return this['_n'](_0x285c51(0x362),[_0x42c426,_0x3745e9],!![]);}async[_0x569042(0x127)](_0x113f13){return this['_n']('removeLink',[_0x113f13],!![]);}[_0x569042(0x70a)](_0x5a71d7){const _0x48829b=_0x569042;return this['_n'](_0x48829b(0x36b),[_0x5a71d7]);}[_0x569042(0x868)](_0x20a053){const _0x32cfa7=_0x569042;return this['_n'](_0x32cfa7(0x345),[_0x20a053]);}async[_0x569042(0x5bb)](_0x5088a5,_0x49fc67,_0x505826={}){const _0x15c9e5=_0x569042;return this['_n'](_0x15c9e5(0x1ba),[_0x5088a5,_0x49fc67,_0x505826]);}async[_0x569042(0x21a)](_0x16c2fc){return this['_n']('ensurePeerState',[_0x16c2fc]);}async[_0x569042(0x862)](){return this['_n']('ensure',[],!![]);}async[_0x569042(0x5a2)](_0xe11bcb){return this['_n']('patchSelf',[_0xe11bcb],!![]);}async[_0x569042(0x3ee)](_0x54c218,_0x1fcf1c={}){const _0x1a8063=_0x569042;return this[_0x1a8063(0x577)](_0x1a8063(0x3ee),[_0x54c218,_0x1fcf1c]);}async[_0x569042(0x7ce)](_0x3f0bf4={},_0x51321e={}){const _0x2f1f11=_0x569042;return void _0x3f0bf4[_0x2f1f11(0x5f7)],this['_n']('calculateDelta',[_0x3f0bf4,_0x51321e]);}async[_0x569042(0x86a)](_0x3eb42e,_0x463fc5,_0x3ab66a,_0x465c3d){const _0x43e776=_0x569042;return this[_0x43e776(0x577)]('fetchPeer',[_0x3eb42e,_0x463fc5,_0x3ab66a,_0x465c3d??null]);}async[_0x569042(0x731)](_0x5cf278,_0xdf21a2,_0x375a6f={}){const _0x4b89b4=_0x569042;return this[_0x4b89b4(0x577)]('fetchRemoteDelta',[_0x5cf278,_0xdf21a2,_0x375a6f]);}[_0x569042(0x229)](_0xd523e2,_0x4372a6=null){const _0x4a46d2=_0x569042;return this['_n'](_0x4a46d2(0x343),[_0xd523e2,_0x4372a6?_0x4372a6[_0x4a46d2(0x425)]:null]);}[_0x569042(0x49f)](_0x4c8b5d,_0x2b351b=null){const _0x1c2425=_0x569042;return this['_n'](_0x1c2425(0x49f),[_0x4c8b5d,_0x2b351b?_0x2b351b[_0x1c2425(0x425)]:null],!![]);}}return sync={'OKDBSync':_0x24339d},sync;}var migrate,hasRequiredMigrate;function requireMigrate(){const _0x1ac7b4=_0x2d5353;if(hasRequiredMigrate)return migrate;hasRequiredMigrate=0x1;const {optionsArg:_0x1eeff6}=requireErrors(),_0x2d0142=require$$0,_0x3dafaf=require$$4,_0x4f5532=0x40*0x400;async function _0x281c4f(_0x1708d3,_0x274d7a){const _0x1847d0=_0x36a2;for(let _0x5ed184=0x0;_0x5ed184<_0x274d7a[_0x1847d0(0x192)];){let _0x3a5326=Math['min'](_0x274d7a[_0x1847d0(0x192)],_0x5ed184+_0x4f5532);if(_0x3a5326<_0x274d7a[_0x1847d0(0x192)]){const _0x34951e=_0x274d7a[_0x1847d0(0x815)](0xa,_0x3a5326-0x1);_0x3a5326=_0x34951e===-0x1?_0x274d7a[_0x1847d0(0x192)]:_0x34951e+0x1;}const _0x4316d9=_0x1708d3[_0x1847d0(0x46e)](_0x274d7a[_0x1847d0(0x5ad)](_0x5ed184,_0x3a5326));_0x5ed184=_0x3a5326;if(!_0x4316d9)await new Promise(_0x3d74cf=>_0x1708d3[_0x1847d0(0x5f3)](_0x1847d0(0x7da),_0x3d74cf));await new Promise(_0x1ee70c=>setImmediate(_0x1ee70c));}}async function _0x41555e(_0x3574fe){const _0x29f74c=_0x36a2,_0x477ac9=[];for await(const _0x56401 of _0x3574fe)_0x477ac9[_0x29f74c(0x46d)](Buffer['isBuffer'](_0x56401)?_0x56401:Buffer[_0x29f74c(0x3ed)](_0x56401,_0x29f74c(0x667)));return Buffer[_0x29f74c(0x557)](_0x477ac9);}class _0x562dac{constructor(_0x3e1deb){const _0x43715f=_0x36a2;this[_0x43715f(0x4f7)]=_0x3e1deb;}['_n'](_0x17591f,_0xc8d0c4){const _0x74e65d=_0x36a2;return this[_0x74e65d(0x4f7)][_0x74e65d(0x24a)]('migrate',null,_0x17591f,_0xc8d0c4,!![]);}async['exportToStream'](_0x4836c4,_0x343d76={}){const _0x44a7fc=_0x36a2,{data:_0x2dbe5c,stats:_0x25b7ad}=this['_n'](_0x44a7fc(0x78d),[_0x343d76]);return await _0x281c4f(_0x4836c4,Buffer[_0x44a7fc(0x3ed)](_0x2dbe5c)),_0x25b7ad;}async['exportToFile'](_0x3843c8,_0x2f118b={}){const _0x559c9c=_0x36a2;_0x2d0142[_0x559c9c(0x86e)](_0x3dafaf['dirname'](_0x3843c8),{'recursive':!![]});const _0x2abbdb=_0x2d0142['createWriteStream'](_0x3843c8),_0xac5f62=await this['exportToStream'](_0x2abbdb,_0x2f118b);return await new Promise((_0x56f959,_0x198712)=>{const _0x3156e8=_0x559c9c;_0x2abbdb['end'](),_0x2abbdb[_0x3156e8(0x5f3)](_0x3156e8(0x15e),_0x56f959),_0x2abbdb[_0x3156e8(0x5f3)](_0x3156e8(0x5b4),_0x198712);}),{..._0xac5f62,'filePath':_0x3843c8};}async[_0x1ac7b4(0x704)](_0x1073b8,_0x5bfbf9={}){const _0x46846b=_0x1ac7b4,{data:_0x392838,stats:_0x493d7c}=this['_n']('exportEnvsBuf',[_0x5bfbf9]);return await _0x281c4f(_0x1073b8,Buffer[_0x46846b(0x3ed)](_0x392838)),_0x493d7c;}async['importFromStream'](_0x5bb061,_0x46aaad={}){const _0x156150=_0x1ac7b4,_0x4e4afa=await _0x41555e(_0x5bb061),{onProgress:_0x5a2b53,..._0x3ee054}=_0x46aaad,_0x1cb936=this['_n']('importBuf',[_0x4e4afa,_0x3ee054]);if(typeof _0x5a2b53===_0x156150(0x3b3))_0x5a2b53({'type':null,'count':_0x1cb936['records']});return _0x1cb936;}async[_0x1ac7b4(0x1ed)](_0x902d77,_0x26e2c6={}){const _0x4b8625=_0x1ac7b4;return this[_0x4b8625(0x49b)](_0x2d0142[_0x4b8625(0x2cb)](_0x902d77,{'encoding':'utf8'}),_0x26e2c6);}async[_0x1ac7b4(0x5ee)](_0x575ce2,_0x5db86e={}){const _0x29fcf0=_0x1ac7b4;return this['_n'](_0x29fcf0(0x5ee),[_0x575ce2,_0x5db86e]);}[_0x1ac7b4(0x813)](){const _0x43c7b6=_0x1ac7b4;return this['_n'](_0x43c7b6(0x813),[]);}[_0x1ac7b4(0x2e1)](_0x38566f){const _0x5e3348=_0x1ac7b4;return this['_n'](_0x5e3348(0x2e1),[_0x38566f??null]);}async[_0x1ac7b4(0x5bc)](_0x8db695={}){return this['_n']('export',[_0x8db695]);}async[_0x1ac7b4(0x805)](_0xaf1590,_0x585d21={}){return this['_n']('import',[_0xaf1590,_0x585d21]);}async[_0x1ac7b4(0x4d3)](_0x3a8e3c){const _0x5d7bb0=_0x1ac7b4,{pretty:pretty=![]}=_0x1eeff6(_0x3a8e3c);return JSON[_0x5d7bb0(0x84b)](await this[_0x5d7bb0(0x5bc)](),null,pretty?0x2:0x0);}async[_0x1ac7b4(0x22b)](_0x114715){const _0x580d4c=_0x1ac7b4;return this[_0x580d4c(0x805)](JSON['parse'](_0x114715));}[_0x1ac7b4(0x86f)](){const _0x18b699=_0x1ac7b4;if(!this[_0x18b699(0x4f7)][_0x18b699(0x3e2)][_0x18b699(0x6ce)](_0x18b699(0x634))?.[_0x18b699(0x669)])throw new Error(_0x18b699(0x7e5));}async[_0x1ac7b4(0x7ca)](_0x52099d){return this['_assertFiles'](),this['_n']('exportBlobs',[_0x52099d]);}async['importBlobs'](_0x20b3a4){const _0x40f8ea=_0x1ac7b4;return this[_0x40f8ea(0x86f)](),this['_n'](_0x40f8ea(0x326),[_0x20b3a4]);}['_allEnvsWithFiles'](){const _0x598b61=_0x1ac7b4;return this['_n']('envsWithFiles',[])[_0x598b61(0x4e8)](_0x3cca69=>this['okdb'][_0x598b61(0x784)](_0x3cca69));}async[_0x1ac7b4(0x3d5)](){const _0x5af1ef=_0x1ac7b4;return this[_0x5af1ef(0x86f)](),this['_n'](_0x5af1ef(0x3d5),[]);}async['repairBlobRefs'](){const _0x4becc9=_0x1ac7b4;return this[_0x4becc9(0x86f)](),this['_n']('repairBlobRefs',[]);}}return migrate={'OKDBMigrate':_0x562dac},migrate;}var mcp,hasRequiredMcp;function requireMcp(){const _0x4b65ea=_0x2d5353;if(hasRequiredMcp)return mcp;hasRequiredMcp=0x1;class _0x394d2b{constructor(_0x2bd5b6){const _0x44851f=_0x36a2;this[_0x44851f(0x4f7)]=_0x2bd5b6,this[_0x44851f(0x4b6)]=new Map();}['_n'](_0x407352,_0x5b88a6){const _0x422017=_0x36a2;try{return this[_0x422017(0x4f7)][_0x422017(0x24a)](_0x422017(0x32d),null,_0x407352,_0x5b88a6,!![]);}catch(_0xc9a96f){if(_0xc9a96f&&_0xc9a96f[_0x422017(0x316)]===_0x422017(0x123)&&_0xc9a96f[_0x422017(0x433)]){if(_0xc9a96f[_0x422017(0x433)]['jsonrpcCode']!==undefined)_0xc9a96f['jsonrpcCode']=_0xc9a96f['details'][_0x422017(0x216)];_0xc9a96f[_0x422017(0x433)]=_0xc9a96f[_0x422017(0x433)][_0x422017(0x433)],_0xc9a96f[_0x422017(0x316)]=undefined;}throw _0xc9a96f;}}[_0x4b65ea(0x4a7)](){return this['_n']('tools',[]);}async[_0x4b65ea(0x24a)](_0x1bbce5,_0xcccb13={}){return this['_n']('call',[_0x1bbce5??null,_0xcccb13??{}]);}async[_0x4b65ea(0x331)](_0x4423ba,_0x2f4777={}){return this['_n']('handle',[_0x4423ba,_0x2f4777??{}]);}[_0x4b65ea(0x231)](_0x1c4dfa){return this['_n']('initialize',[_0x1c4dfa??null]);}}return mcp={'OKDBMcp':_0x394d2b},mcp;}var sys,hasRequiredSys;function requireSys(){const _0x25927a=_0x2d5353;if(hasRequiredSys)return sys;hasRequiredSys=0x1;function _0x1699ec(_0x1c5c21,_0x39227b,_0x4e2374){const _0x548b0c=_0x36a2,_0x3c4d6c={};for(const [_0x1dec3,_0x493cba]of Object[_0x548b0c(0x45b)](_0x4e2374)){_0x3c4d6c[_0x1dec3]=_0x493cba===_0x548b0c(0x537)?async(..._0x4b4e73)=>_0x1c5c21[_0x548b0c(0x24a)](_0x39227b,null,_0x1dec3,_0x4b4e73):(..._0x4c64ae)=>_0x1c5c21['_call'](_0x39227b,null,_0x1dec3,_0x4c64ae,![]);}return _0x3c4d6c;}const _0x1242ca=['listTypes',_0x25927a(0x809),_0x25927a(0x26c),_0x25927a(0x52a),_0x25927a(0x581),_0x25927a(0x518),_0x25927a(0x447),_0x25927a(0x2dd),_0x25927a(0x2f1),_0x25927a(0x33c),_0x25927a(0x314),'describeTypeDetailed',_0x25927a(0x258),_0x25927a(0x360),_0x25927a(0x844),_0x25927a(0x64e),_0x25927a(0x6fd),'areIndexesReady',_0x25927a(0x6d2),_0x25927a(0x631),_0x25927a(0x55f)],_0x5a3752={'add':_0x25927a(0x537),'activate':_0x25927a(0x537),'remove':_0x25927a(0x537),'list':_0x25927a(0x2a2),'get':_0x25927a(0x2a2),'effective':_0x25927a(0x2a2)},_0x414bad={'open':_0x25927a(0x537),'register':'async','buildOwnRow':'sync','_buildProcessingFacet':_0x25927a(0x2a2),'reportThreadStats':_0x25927a(0x2a2),'clearThreadStats':'sync','emitProc':_0x25927a(0x2a2),'addSupervisedChild':'async','removeSupervisedChild':_0x25927a(0x2a2),'updateSupervisedChildStats':_0x25927a(0x2a2),'publishChildRow':_0x25927a(0x537),'putNode':'async','removeNode':_0x25927a(0x537),'nodeDead':_0x25927a(0x2a2),'listNodes':_0x25927a(0x2a2),'reap':'async','publishOwnRow':'async','deregisterSelf':_0x25927a(0x537),'setOwnMeta':_0x25927a(0x2a2),'noteListenAddr':_0x25927a(0x2a2),'hasDesired':_0x25927a(0x2a2),'getDesired':_0x25927a(0x2a2),'setDesired':'async','listDesired':_0x25927a(0x2a2),'getCmd':_0x25927a(0x2a2),'bumpCmd':_0x25927a(0x537),'processingStatusView':_0x25927a(0x2a2),'processorsView':_0x25927a(0x2a2),'clusterStatusView':_0x25927a(0x2a2),'nodesView':_0x25927a(0x2a2),'treeView':_0x25927a(0x2a2),'getProcess':_0x25927a(0x2a2),'runtimeProcessesView':_0x25927a(0x2a2)};function _0x41b156(_0x935371){const _0xe49b45=_0x25927a,_0x385842={},_0xfd8e03=_0x44f914=>_0x44f914&&typeof _0x44f914===_0xe49b45(0x712)&&!Array[_0xe49b45(0x7e3)](_0x44f914)&&typeof _0x44f914[_0xe49b45(0x425)]==='string'?_0x44f914[_0xe49b45(0x425)]:_0x44f914;for(const _0x32e45c of _0x1242ca)_0x385842[_0x32e45c]=_0x32e45c===_0xe49b45(0x631)?async(..._0x25d5c5)=>_0x935371[_0xe49b45(0x24a)](_0xe49b45(0x360),null,_0x32e45c,_0x25d5c5[_0xe49b45(0x4e8)](_0xfd8e03),!![]):(..._0x133588)=>_0x935371[_0xe49b45(0x24a)]('meta',null,_0x32e45c,_0x133588[_0xe49b45(0x4e8)](_0xfd8e03),![]);return _0x385842;}function _0xb804ba(_0x5e44fa){const _0x446e0f=_0x25927a,_0x34711e=_0x1699ec(_0x5e44fa,_0x446e0f(0x6b8),_0x5a3752);return _0x34711e;}function _0x259449(_0x386b77){const _0x1ae09f=_0x25927a,_0x232345=()=>_0x386b77[_0x1ae09f(0x6b8)][_0x1ae09f(0x3bc)](),_0x498449=_0x5f18e0=>_0x5f18e0['free']?{..._0x5f18e0,'_isFree':!![]}:_0x5f18e0;return{async 'addLicense'(_0x2ee5ba){const _0x442c34=_0x1ae09f;return _0x386b77[_0x442c34(0x6b8)][_0x442c34(0x725)](_0x2ee5ba);},async 'reload'(){},async 'recheck'(){},get 'active'(){const _0x48bed3=_0x1ae09f,_0x38f491=_0x232345();return _0x38f491[_0x48bed3(0x152)]?null:_0x38f491;},get 'effective'(){return _0x498449(_0x232345());},'hasLimit'(_0x2895d7){const _0x4dbe69=_0x1ae09f,_0x5327c5=_0x232345();if(!_0x5327c5['enforced'])return![];const _0x5ac72c=_0x5327c5[_0x4dbe69(0x2c5)]?.[_0x2895d7];return!(_0x5ac72c===null||_0x5ac72c===undefined||_0x5ac72c===0x0);},'isFeatureEnabled'(_0x431719){const _0x407a5c=_0x1ae09f,_0x1883cd=_0x232345();return!_0x1883cd['enforced']||!!_0x1883cd[_0x407a5c(0x1ec)]?.[_0x431719];},'assertFeature'(_0x1dd68e){const _0x533c86=_0x1ae09f,_0x489917=_0x232345();if(!_0x489917[_0x533c86(0x50f)]||_0x489917[_0x533c86(0x1ec)]?.[_0x1dd68e])return;const {OKDBError:_0x46a9fe}=requireErrors(),_0x587c5f=_0x489917[_0x533c86(0x152)]?_0x533c86(0x254)+_0x1dd68e+_0x533c86(0x56c)+_0x1dd68e+_0x533c86(0x1da):'Feature\x20not\x20licensed:\x20'+_0x1dd68e+_0x533c86(0x711)+_0x1dd68e+'\x22.';throw new _0x46a9fe(_0x587c5f,_0x533c86(0x1d0),{'feature':_0x1dd68e});},'assertLimit'(_0x3e78a8,_0x3dc3e8){const _0x5ede20=_0x1ae09f,_0x16062b=_0x232345();if(!_0x16062b['enforced'])return;const _0x329d04=_0x16062b[_0x5ede20(0x2c5)]?.[_0x3e78a8];if(_0x329d04===null||_0x329d04===undefined||_0x329d04===0x0)return;if(_0x3dc3e8>=_0x329d04){const {OKDBError:_0x155101}=requireErrors();throw new _0x155101('License\x20limit\x20exceeded:\x20'+_0x3e78a8+'\x20('+_0x3dc3e8+'/'+_0x329d04+')',_0x5ede20(0x19d),{'limit':_0x3e78a8,'current':_0x3dc3e8,'max':_0x329d04});}},'listLicenses'(){const _0xe5abe7=_0x1ae09f;return _0x386b77[_0xe5abe7(0x6b8)][_0xe5abe7(0x6ec)]();},'getPins'(){const _0x3168af=_0x1ae09f;return _0x386b77['licenses']['list']()[_0x3168af(0x4e8)](_0x33c9ab=>({'licenseId':_0x33c9ab['id'],'pin':_0x33c9ab[_0x3168af(0x2d0)]===_0x3168af(0x223)?null:_0x33c9ab[_0x3168af(0x202)]}));}};}function _0x51fef8(_0x5b310a){const _0x382fe8=_0x25927a,_0xf5bcaa=_0x1699ec(_0x5b310a,_0x382fe8(0x1ea),_0x414bad);Object[_0x382fe8(0x2ad)](_0xf5bcaa,_0x382fe8(0x585),{'get':()=>_0x5b310a[_0x382fe8(0x24a)](_0x382fe8(0x1ea),null,_0x382fe8(0x585),[],![])}),Object[_0x382fe8(0x2ad)](_0xf5bcaa,_0x382fe8(0x4ad),{'get':()=>_0x5b310a[_0x382fe8(0x24a)](_0x382fe8(0x1ea),null,_0x382fe8(0x4ad),[],![])}),_0xf5bcaa[_0x382fe8(0x3e8)]=null;const _0xebd5ec=_0xf5bcaa[_0x382fe8(0x29a)];_0xf5bcaa[_0x382fe8(0x29a)]=_0x5c8a20=>{const _0x469862=_0x382fe8;return _0xf5bcaa[_0x469862(0x3e8)]=_0x5c8a20,_0xebd5ec(_0x5c8a20);};const _0x2c4a8a=()=>_0xf5bcaa[_0x382fe8(0x6a0)]()[_0x382fe8(0x4e8)](_0x4cd634=>({'key':_0x4cd634[_0x382fe8(0x3ab)],'value':_0x4cd634,'version':0x1})),_0x3f1a26={'name':_0x382fe8(0x2a0),'_sync':![],'_isOpen':!![],'isProcessStore':!![],'hasType':_0x542875=>_0x542875==='node','getRange':_0x442a2f=>_0x442a2f==='node'?_0x2c4a8a()[Symbol[_0x382fe8(0x1f2)]]():[][Symbol[_0x382fe8(0x1f2)]](),'getKeys':_0x7f98cf=>_0x7f98cf===_0x382fe8(0x28c)?_0x2c4a8a()[_0x382fe8(0x4e8)](_0x5d3161=>_0x5d3161['key'])[Symbol[_0x382fe8(0x1f2)]]():[][Symbol[_0x382fe8(0x1f2)]](),'getValues':_0x5d654b=>_0x5d654b===_0x382fe8(0x28c)?_0x2c4a8a()[_0x382fe8(0x4e8)](_0x115809=>_0x115809[_0x382fe8(0x821)])[Symbol[_0x382fe8(0x1f2)]]():[][Symbol['iterator']](),'get':(_0x3428a6,_0x431ec6)=>_0x3428a6===_0x382fe8(0x28c)?_0x2c4a8a()[_0x382fe8(0x472)](_0x133314=>_0x133314['key']===_0x431ec6)?.['value']:undefined,'getCount':_0x4eb7c1=>_0x4eb7c1===_0x382fe8(0x28c)?_0x2c4a8a()[_0x382fe8(0x192)]:0x0};Object[_0x382fe8(0x2ad)](_0xf5bcaa,_0x382fe8(0x144),{'get':()=>_0x5b310a[_0x382fe8(0x24a)](_0x382fe8(0x1ea),null,_0x382fe8(0x20e),[],![])?_0x3f1a26:null});const _0x1dbc62=_0xf5bcaa[_0x382fe8(0x223)];_0xf5bcaa[_0x382fe8(0x223)]=async _0x2c3121=>{return await _0x1dbc62(_0x2c3121),_0xf5bcaa['_statusEnv'];},_0xf5bcaa[_0x382fe8(0x7e6)]=()=>_0x5b310a[_0x382fe8(0x24a)]('processes',null,_0x382fe8(0x831),[],!![]);const {RawDb:_0x24ba00}=requireRawdb();return Object[_0x382fe8(0x2ad)](_0xf5bcaa,'_desired',{'get':()=>_0x5b310a[_0x382fe8(0x7b5)]?_0xf5bcaa['__desired']||=new _0x24ba00(_0x5b310a['_systemEnv'],_0x382fe8(0x7dc)):undefined}),Object['defineProperty'](_0xf5bcaa,_0x382fe8(0x2b6),{'get':()=>_0x5b310a['_systemEnv']?_0xf5bcaa[_0x382fe8(0x761)]||=new _0x24ba00(_0x5b310a['_systemEnv'],_0x382fe8(0x79a)):undefined}),_0xf5bcaa[_0x382fe8(0x829)]=()=>_0x5b310a[_0x382fe8(0x24a)](_0x382fe8(0x1ea),null,_0x382fe8(0x829),[],![]),Object[_0x382fe8(0x2ad)](_0xf5bcaa,_0x382fe8(0x396),{'get':()=>_0x5b310a[_0x382fe8(0x24a)](_0x382fe8(0x1ea),null,_0x382fe8(0x529),[],![])}),Object[_0x382fe8(0x2ad)](_0xf5bcaa,_0x382fe8(0x6be),{'get':()=>_0x5b310a['_call']('processes',null,_0x382fe8(0x76e),[],![])}),_0xf5bcaa[_0x382fe8(0x753)]=()=>_0x5b310a[_0x382fe8(0x24a)](_0x382fe8(0x1ea),null,'buildOwnRow',[],![]),_0xf5bcaa['_emitProc']=(_0x12f0b0,_0x5d3918)=>_0x5b310a['_call'](_0x382fe8(0x1ea),null,_0x382fe8(0x6d7),[_0x12f0b0,_0x5d3918],![]),_0xf5bcaa;}return sys={'makeMeta':_0x41b156,'makeLicenses':_0xb804ba,'makeLicenseChecker':_0x259449,'makeProcesses':_0x51fef8},sys;}var okdbLogger,hasRequiredOkdbLogger;function requireOkdbLogger(){const _0x53f791=_0x2d5353;if(hasRequiredOkdbLogger)return okdbLogger;hasRequiredOkdbLogger=0x1;const _0x49d3fd={'debug':0xa,'info':0x14,'warn':0x1e,'error':0x28};class _0x4db742{constructor(_0x248c2f){const _0x5980ee=_0x36a2;this[_0x5980ee(0x4f7)]=_0x248c2f,this[_0x5980ee(0x309)]=new Set(),this[_0x5980ee(0x3b1)]={};}['child'](_0xcb657){const _0x481d47=_0x36a2,_0x258392=new _0x4db742(this[_0x481d47(0x4f7)]);return _0x258392[_0x481d47(0x309)]=this['_sinks'],_0x258392[_0x481d47(0x3b1)]={...this[_0x481d47(0x3b1)],..._0xcb657},_0x258392;}[_0x53f791(0x5b2)](_0x52ed69){const _0x4d1838=_0x53f791;return this[_0x4d1838(0x309)][_0x4d1838(0x725)](_0x52ed69),()=>this[_0x4d1838(0x309)][_0x4d1838(0x243)](_0x52ed69);}['attachConsole'](){const _0x39242a=_0x53f791,_0x5bbea3=_0x49d3fd[process.env.OKDB_LOG_LEVEL]??_0x49d3fd[_0x39242a(0x758)];return this[_0x39242a(0x51d)]=this[_0x39242a(0x5b2)](({level:_0x4828b8,msg:_0x280456,meta:_0x53488f,context:_0x5837a7,ts:_0x5229a7})=>{const _0x279a2b=_0x39242a;if((_0x49d3fd[_0x4828b8]??_0x49d3fd[_0x279a2b(0x758)])<_0x5bbea3)return;if(_0x53488f?.[_0x279a2b(0x7a7)]===_0x279a2b(0x792)&&(_0x4828b8===_0x279a2b(0x758)||_0x4828b8==='debug'))return;const _0x146f87=_0x4828b8===_0x279a2b(0x5b4)?console[_0x279a2b(0x5b4)]:_0x4828b8===_0x279a2b(0x1fc)?console['warn']:_0x4828b8===_0x279a2b(0x758)?console[_0x279a2b(0x758)]:console[_0x279a2b(0x71e)],_0x2d779e=_0x53488f&&Object[_0x279a2b(0x50d)](_0x53488f)[_0x279a2b(0x192)]>0x0;_0x2d779e||_0x5837a7!==undefined?_0x146f87(new Date(_0x5229a7)[_0x279a2b(0x690)](),_0x280456,..._0x2d779e?[_0x53488f]:[],..._0x5837a7!==undefined?[_0x5837a7]:[]):_0x146f87(new Date(_0x5229a7)[_0x279a2b(0x690)](),_0x280456);}),this['_detachConsole'];}[_0x53f791(0x304)](){const _0x370d00=_0x53f791;this[_0x370d00(0x51d)]&&(this[_0x370d00(0x51d)](),this[_0x370d00(0x51d)]=null);}[_0x53f791(0x257)](_0x3e80f4,_0x20ac4f){const _0x257313=_0x53f791,_0x4297c7=require$$0$4,_0x2d2107=0x1f4,_0x444892=Number(process.env.OKDB_LOG_FLUSH_MS)||0x3e8;let _0x39e81a=[],_0x2462cf=0x0,_0x2407a6=null;const _0x188477=()=>{const _0x3fc125=_0x36a2;_0x2407a6=null;if(_0x39e81a[_0x3fc125(0x192)]===0x0)return;const _0x2c3789=_0x39e81a;_0x39e81a=[],_0x2462cf>0x0&&(_0x2c3789[_0x3fc125(0x46d)]({'ts':Date[_0x3fc125(0x76a)](),'level':'warn','msg':'[log-sink]\x20'+_0x2462cf+'\x20log\x20entr'+(_0x2462cf===0x1?'y':_0x3fc125(0x2da))+'\x20dropped\x20(buffer\x20full)','feature':_0x3fc125(0x71e),'node':_0x20ac4f,'context':null}),_0x2462cf=0x0),_0x3e80f4['txn'](_0x265143=>{const _0xc4d081=_0x3fc125;for(const _0x35e930 of _0x2c3789)_0x265143['put'](_0xc4d081(0x3d7),_0x4297c7['randomUUID'](),_0x35e930);})[_0x3fc125(0x512)](()=>{});},_0x5b98d8=this[_0x257313(0x5b2)](({level:_0x4787ff,msg:_0x5fdb7b,meta:_0x5ce8a3,context:_0x3a5c99,ts:_0x492a43})=>{const _0x234d5f=_0x257313;if(_0x4787ff===_0x234d5f(0x13f))return;_0x39e81a[_0x234d5f(0x192)]>=_0x2d2107&&(_0x2462cf++,_0x39e81a[_0x234d5f(0x356)]()),_0x39e81a[_0x234d5f(0x46d)]({'ts':_0x492a43,'level':_0x4787ff,'msg':_0x5fdb7b,'feature':_0x5ce8a3?.['feature']??_0x5ce8a3?.[_0x234d5f(0x455)]??null,'node':_0x20ac4f,'context':_0x3a5c99??null}),!_0x2407a6&&(_0x2407a6=setTimeout(_0x188477,_0x444892),_0x2407a6[_0x234d5f(0x46f)]?.());});return()=>{_0x5b98d8();if(_0x2407a6)clearTimeout(_0x2407a6);_0x188477();};}[_0x53f791(0x3dd)](_0x351938,_0x53786f,_0x23c90a){const _0x417a05=_0x53f791;_0x53786f instanceof Error&&(_0x23c90a={'message':_0x53786f[_0x417a05(0x367)],'stack':_0x53786f[_0x417a05(0x86d)],..._0x23c90a},_0x53786f=_0x53786f[_0x417a05(0x367)]);const _0x5bd985={'level':_0x351938,'msg':_0x53786f,'meta':{...this['_meta']},'context':_0x23c90a,'ts':Date[_0x417a05(0x76a)]()};try{this[_0x417a05(0x4f7)]['events'][_0x417a05(0x839)](_0x417a05(0x71e),_0x5bd985);}catch{}for(const _0x24ca0c of this[_0x417a05(0x309)]){try{_0x24ca0c(_0x5bd985);}catch{}}}[_0x53f791(0x297)](_0x56513c){const _0x5b2af7=_0x53f791;try{this[_0x5b2af7(0x4f7)]?.[_0x5b2af7(0x5d6)]?.[_0x5b2af7(0x839)](_0x5b2af7(0x71e),_0x56513c);}catch{}for(const _0x58783d of this[_0x5b2af7(0x309)]){try{_0x58783d(_0x56513c);}catch{}}}['info'](_0x1bd9f0,_0x254a39){const _0x49047e=_0x53f791;this[_0x49047e(0x3dd)](_0x49047e(0x758),_0x1bd9f0,_0x254a39);}[_0x53f791(0x1fc)](_0x20c88e,_0x303040){const _0xe1a6d4=_0x53f791;this[_0xe1a6d4(0x3dd)](_0xe1a6d4(0x1fc),_0x20c88e,_0x303040);}[_0x53f791(0x5b4)](_0x5a50d9,_0x5270de){const _0x56bc78=_0x53f791;this[_0x56bc78(0x3dd)]('error',_0x5a50d9,_0x5270de);}[_0x53f791(0x13f)](_0x50f421,_0x507987){const _0x108a53=_0x53f791;this[_0x108a53(0x3dd)](_0x108a53(0x13f),_0x50f421,_0x507987);}}return okdbLogger=_0x4db742,okdbLogger;}var okdbPlugins,hasRequiredOkdbPlugins;function requireOkdbPlugins(){const _0x5ac7b2=_0x2d5353;if(hasRequiredOkdbPlugins)return okdbPlugins;hasRequiredOkdbPlugins=0x1;const {OKDB_STATE:_0x2a7626}=requireOkdbEnums(),{OKDBError:_0xa3f487}=requireOkdbError();class _0x2f24d6{constructor(_0x508b73){const _0x3ea20e=_0x36a2;this[_0x3ea20e(0x4f7)]=_0x508b73,this[_0x3ea20e(0x37f)]=[];}[_0x5ac7b2(0x82d)](_0x468819,_0x270168){const _0x1b8eca=_0x5ac7b2;if(this['okdb'][_0x1b8eca(0x76c)]!==_0x2a7626[_0x1b8eca(0x392)])throw new _0xa3f487(_0x1b8eca(0x5db),_0x1b8eca(0x1be),{'state':this[_0x1b8eca(0x4f7)]['state']});if(!_0x468819[_0x1b8eca(0x425)])throw new _0xa3f487(_0x1b8eca(0x24c),_0x1b8eca(0x36f),{'plugin':_0x468819[_0x1b8eca(0x425)]});const _0x301942=_0x468819[_0x1b8eca(0x313)]??[];for(const _0x8e9ee6 of _0x301942){if(!this[_0x1b8eca(0x37f)]['some'](_0x38b1c9=>_0x38b1c9['module'][_0x1b8eca(0x425)]===_0x8e9ee6))throw new _0xa3f487(_0x1b8eca(0x443)+_0x8e9ee6+_0x1b8eca(0x76f)+_0x468819[_0x1b8eca(0x425)]+')',_0x1b8eca(0x444),{'required':_0x8e9ee6});}if(this[_0x1b8eca(0x37f)][_0x1b8eca(0x472)](_0x100f17=>_0x100f17[_0x1b8eca(0x455)][_0x1b8eca(0x425)]===_0x468819[_0x1b8eca(0x425)]))throw new _0xa3f487('Plugin\x20\x27'+_0x468819['name']+_0x1b8eca(0x5c4),_0x1b8eca(0x6a4),{'plugin':_0x468819[_0x1b8eca(0x425)]});if(_0x468819[_0x1b8eca(0x425)]in this[_0x1b8eca(0x4f7)])throw new _0xa3f487(_0x1b8eca(0x121)+_0x468819['name']+_0x1b8eca(0x7f5),_0x1b8eca(0x5b0));const _0x3afea4=_0x468819[_0x1b8eca(0x82d)](this[_0x1b8eca(0x4f7)],_0x270168);if(!_0x3afea4||typeof _0x3afea4!==_0x1b8eca(0x712))throw new _0xa3f487(_0x1b8eca(0x72e)+_0x468819[_0x1b8eca(0x425)]+_0x1b8eca(0x3be),_0x1b8eca(0x36f),{'plugin':_0x468819[_0x1b8eca(0x425)]});this[_0x1b8eca(0x37f)][_0x1b8eca(0x46d)]({'module':_0x468819,'options':_0x270168,'instance':_0x3afea4});}[_0x5ac7b2(0x508)]=[];async[_0x5ac7b2(0x4df)](){const _0x22a980=_0x5ac7b2;try{for(const _0x170b8b of this[_0x22a980(0x37f)]){await _0x170b8b[_0x22a980(0x699)][_0x22a980(0x4df)]?.(this[_0x22a980(0x4f7)]),this[_0x22a980(0x508)][_0x22a980(0x46d)](_0x170b8b);}}catch(_0x5efebd){await this[_0x22a980(0x32a)]()[_0x22a980(0x512)](()=>{});throw _0x5efebd;}}async[_0x5ac7b2(0x32a)](){const _0x348e3c=_0x5ac7b2,_0x1d90f2=this[_0x348e3c(0x508)][_0x348e3c(0x5ca)]();this[_0x348e3c(0x508)]=[];let _0x90ccf1=null;for(const _0x45edd3 of _0x1d90f2){try{await _0x45edd3[_0x348e3c(0x699)]['stop']?.(this['okdb']);}catch(_0xa4b766){_0x90ccf1??=_0xa4b766;}}if(_0x90ccf1)throw _0x90ccf1;}}return okdbPlugins=_0x2f24d6,okdbPlugins;}var statics,hasRequiredStatics;function requireStatics(){const _0x5aba02=_0x2d5353;if(hasRequiredStatics)return statics;hasRequiredStatics=0x1;const _0x4343a8={'maxDbs':0x400,'pageSize':0x1000,'compression':!![],'encryptionKey':undefined,'mapSize':0x100000000,'durability':_0x5aba02(0x3fa)},_0xcbcea1=new Set(['maxDbs','pageSize',_0x5aba02(0x12c),_0x5aba02(0x4ee),_0x5aba02(0x7c7),'mapSize',_0x5aba02(0x2be),_0x5aba02(0x586),'lmdb',_0x5aba02(0x13d),_0x5aba02(0x2a2),_0x5aba02(0x72c),_0x5aba02(0x792),_0x5aba02(0x858),_0x5aba02(0x32d),_0x5aba02(0x5ec),'log',_0x5aba02(0x5c9),'readerCheckIntervalMs',_0x5aba02(0x617),_0x5aba02(0x23a),'compaction','processes','autoCompact',_0x5aba02(0x551),'admin',_0x5aba02(0x361),_0x5aba02(0x13f),_0x5aba02(0x676),'backup']),_0x4413bc={'http':_0x5aba02(0x65a)};return statics={'defaults':_0x4343a8,'KNOWN_OPTIONS':_0xcbcea1,'_OPTION_HINTS':_0x4413bc},statics;}var licenseConfig,hasRequiredLicenseConfig;function requireLicenseConfig(){const _0x14ff32=_0x2d5353;if(hasRequiredLicenseConfig)return licenseConfig;hasRequiredLicenseConfig=0x1;const _0x487c03=require$$0$2,_0x190915=_0x14ff32(0x526),_0x1892ac=_0x487c03['createHash'](_0x14ff32(0x131))[_0x14ff32(0x1a2)](_0x487c03[_0x14ff32(0x658)](_0x190915)[_0x14ff32(0x5bc)]({'type':_0x14ff32(0x4c5),'format':_0x14ff32(0x58b)}))[_0x14ff32(0x4e4)]('hex')['slice'](0x0,0x10),_0x286ee0={'LICENSED_BUILD':_0x14ff32(0x77b),'PUBLIC_KEY_PEM':_0x190915,'PUB_FINGERPRINT':_0x1892ac,'LICENSE_EXPIRED_ACTION':_0x14ff32(0x71e)};return licenseConfig={'_C':_0x286ee0,'PUBLIC_KEY_PEM':_0x190915,'PUB_FINGERPRINT':_0x1892ac},licenseConfig;}var okdbSubscriptionsStore={'exports':{}},okdbQueryFilter,hasRequiredOkdbQueryFilter;function requireOkdbQueryFilter(){const _0x3ab921=_0x2d5353;if(hasRequiredOkdbQueryFilter)return okdbQueryFilter;hasRequiredOkdbQueryFilter=0x1;const _0x4229d6=require$$0$5,{OKDBError:_0x2f3fdd}=requireOkdbError(),_0xe8e305=[_0x3ab921(0x196),_0x3ab921(0x774),_0x3ab921(0x793),_0x3ab921(0x40c),_0x3ab921(0x142),_0x3ab921(0x1f6),_0x3ab921(0x517),'$nin',_0x3ab921(0x300),_0x3ab921(0x801),_0x3ab921(0x7e1),_0x3ab921(0x426),_0x3ab921(0x27d),_0x3ab921(0x746),_0x3ab921(0x340),'$elemMatch',_0x3ab921(0x318),_0x3ab921(0x7cc),_0x3ab921(0x56b),_0x3ab921(0x519)],_0x3ece84=[_0x3ab921(0x47f)];function _0x449286(_0x676d1e){return()=>{const _0x336043=_0x36a2,_0xebf838=new _0x2f3fdd(_0x336043(0x68a)+_0x676d1e+_0x336043(0x55e),'QUERY_OPERATOR_FORBIDDEN',{'operator':_0x676d1e});_0xebf838[_0x336043(0x2e4)]=0x190;throw _0xebf838;};}const _0x2fcce3=Object['freeze']({...Object[_0x3ab921(0x6a5)](_0xe8e305[_0x3ab921(0x4e8)](_0x43f1ea=>[_0x43f1ea,_0x4229d6[_0x43f1ea]])),...Object['fromEntries'](_0x3ece84['map'](_0x1a6c91=>[_0x1a6c91,_0x449286(_0x1a6c91)]))});function _0x2420a2(_0x500eec){return _0x4229d6['createQueryTester'](_0x500eec,{'operations':_0x2fcce3});}function _0x4b4f1f(_0x492374){const _0x1793cb=_0x3ab921;if(_0x492374==null)return;try{_0x2420a2(_0x492374);}catch(_0x409816){if(_0x409816?.[_0x1793cb(0x316)]===_0x1793cb(0x59b))throw _0x409816;}}return okdbQueryFilter={'compileFilter':_0x2420a2,'assertFilterAllowed':_0x4b4f1f,'ALLOWED_OPERATORS':_0xe8e305,'FORBIDDEN_OPERATORS':_0x3ece84},okdbQueryFilter;}var okdbEnvRefs,hasRequiredOkdbEnvRefs;function _0x36a2(_0x1132a7,_0x16066a){_0x1132a7=_0x1132a7-0x11e;const _0x49fde6=_0x49fd();let _0x36a2c4=_0x49fde6[_0x1132a7];return _0x36a2c4;}function requireOkdbEnvRefs(){const _0x40af1c=_0x2d5353;if(hasRequiredOkdbEnvRefs)return okdbEnvRefs;hasRequiredOkdbEnvRefs=0x1;const {CHANGE_ACTIONS:_0x423fa7,EVENTS:_0x434d64}=requireOkdbEnums(),{OKDBError:_0x4c364b,OKDBForeignKeyDeleteError:_0x3b59ed}=requireOkdbError(),_0x205a6b=_0x40af1c(0x155),_0x1ec415=new Set(['no_action',_0x40af1c(0x261),_0x40af1c(0x856),'restrict']);function _0x529aa1(_0x5349e2,_0x5ef7ac){const _0x1d661c=_0x40af1c;if(_0x5349e2==null||!_0x5ef7ac)return undefined;const _0x3b94cd=_0x5ef7ac[_0x1d661c(0x4f0)]('.');let _0x1ca2ad=_0x5349e2;for(const _0x13a264 of _0x3b94cd){if(_0x1ca2ad==null||typeof _0x1ca2ad!==_0x1d661c(0x712)||!(_0x13a264 in _0x1ca2ad))return undefined;_0x1ca2ad=_0x1ca2ad[_0x13a264];}return _0x1ca2ad;}function _0xa0fd40(_0x579550,_0x1d59a6,_0x124781){const _0x29fe1d=_0x40af1c,_0x1942bc=_0x1d59a6[_0x29fe1d(0x4f0)]('.'),_0x25310b={..._0x579550};let _0x4c4057=_0x25310b;for(let _0x73b497=0x0;_0x73b497<_0x1942bc[_0x29fe1d(0x192)]-0x1;_0x73b497++){_0x4c4057[_0x1942bc[_0x73b497]]=_0x4c4057[_0x1942bc[_0x73b497]]!=null?{..._0x4c4057[_0x1942bc[_0x73b497]]}:{},_0x4c4057=_0x4c4057[_0x1942bc[_0x73b497]];}return _0x4c4057[_0x1942bc[_0x1942bc[_0x29fe1d(0x192)]-0x1]]=_0x124781,_0x25310b;}function _0xa91a1c(_0x2fa686,_0x2be9a9,_0x2c8754,_0x5363ef,_0x179f69){return[_0x2fa686,_0x2be9a9,_0x2c8754,_0x5363ef,_0x179f69];}function _0xc8de30(_0x13d065){const _0x298d72=_0x40af1c;return typeof _0x13d065==='string'||typeof _0x13d065===_0x298d72(0x859);}function _0xe242db(_0x5c292c,_0x1d2046){const _0x4e373f=_0x40af1c;return JSON[_0x4e373f(0x84b)]([_0x5c292c,_0x1d2046]);}function*_0x5ee967(_0x2940be,_0x4cecba,_0x381251){const _0x4ec499=_0x40af1c,_0x5d8f2c=_0x381251!==undefined;for(const {key:_0x331925}of _0x2940be[_0x4ec499(0x35a)]({'start':_0x5d8f2c?[_0x4cecba,_0x381251]:[_0x4cecba]})){if(!Array[_0x4ec499(0x7e3)](_0x331925))continue;if(_0x331925[0x0]!==_0x4cecba||_0x5d8f2c&&_0x331925[0x1]!==_0x381251)break;yield _0x331925;}}function _0x5ba584(_0x7c2c2a,_0x33e25b='',_0x5269e4=null){const _0x6c966b=_0x40af1c,_0x49d2eb=[];if(!_0x7c2c2a||typeof _0x7c2c2a!==_0x6c966b(0x712))return _0x49d2eb;if(!_0x5269e4)_0x5269e4=_0x7c2c2a;if(_0x7c2c2a[_0x6c966b(0x460)]){const _0x2560b6=_0x7c2c2a[_0x6c966b(0x460)][_0x6c966b(0x2ec)](/^#\/\$defs\/(.+)$/);if(_0x2560b6&&_0x5269e4?.[_0x6c966b(0x3eb)]?.[_0x2560b6[0x1]])return _0x5ba584(_0x5269e4[_0x6c966b(0x3eb)][_0x2560b6[0x1]],_0x33e25b,_0x5269e4);return _0x49d2eb;}if(_0x7c2c2a['ref']&&typeof _0x7c2c2a[_0x6c966b(0x674)]==='object'&&_0x7c2c2a[_0x6c966b(0x674)]['type']){const _0x1210f7=_0x7c2c2a[_0x6c966b(0x674)][_0x6c966b(0x29f)]||_0x6c966b(0x401);if(!_0x1ec415[_0x6c966b(0x69d)](_0x1210f7))throw new _0x4c364b(_0x6c966b(0x800)+_0x1210f7+_0x6c966b(0x534)+(_0x33e25b||_0x6c966b(0x854))+_0x6c966b(0x642)+[..._0x1ec415][_0x6c966b(0x3ee)](',\x20'),_0x6c966b(0x13c));_0x49d2eb['push']({'fieldPath':_0x33e25b,'targetType':_0x7c2c2a[_0x6c966b(0x674)]['type'],'onDelete':_0x1210f7});}if(_0x7c2c2a[_0x6c966b(0x850)])for(const [_0x25c491,_0xfc4ff8]of Object[_0x6c966b(0x45b)](_0x7c2c2a[_0x6c966b(0x850)])){const _0xaddad9=_0x33e25b?_0x33e25b+'.'+_0x25c491:_0x25c491;_0x49d2eb[_0x6c966b(0x46d)](..._0x5ba584(_0xfc4ff8,_0xaddad9,_0x5269e4));}return _0x49d2eb;}function _0x2bd684(_0x34d9fc){const _0x3b4f67=_0x40af1c,_0x372a2c=new Map(),_0x512f76=new Map();for(const _0x5a5128 of _0x34d9fc['_typeKeys']()){if(_0x5a5128['startsWith']('~'))continue;const _0xc56ce5=_0x34d9fc['typesDb'][_0x3b4f67(0x6ce)](_0x5a5128);if(!_0xc56ce5?.['schema']?.[_0x3b4f67(0x219)])continue;let _0x9aaacc;try{_0x9aaacc=_0x5ba584(_0xc56ce5[_0x3b4f67(0x1ad)]['definition']);}catch{continue;}if(_0x9aaacc[_0x3b4f67(0x192)]>0x0){_0x372a2c['set'](_0x5a5128,_0x9aaacc);for(const _0xcc4231 of _0x9aaacc){if(!_0x512f76[_0x3b4f67(0x69d)](_0xcc4231['targetType']))_0x512f76[_0x3b4f67(0x7a0)](_0xcc4231[_0x3b4f67(0x67f)],[]);_0x512f76[_0x3b4f67(0x6ce)](_0xcc4231[_0x3b4f67(0x67f)])[_0x3b4f67(0x46d)]({'sourceType':_0x5a5128,'fieldPath':_0xcc4231[_0x3b4f67(0x818)],'onDelete':_0xcc4231[_0x3b4f67(0x29f)]});}}}_0x34d9fc['_refCache']={'outgoing':_0x372a2c,'incoming':_0x512f76};if(_0x372a2c[_0x3b4f67(0x4fb)]>0x0)_0x44c9e4(_0x34d9fc);}function _0x3d2afa(_0x3cea00,_0x2c87f6){const _0x3a15f3=_0x40af1c;return _0x3cea00[_0x3a15f3(0x22d)][_0x3a15f3(0x177)][_0x3a15f3(0x6ce)](_0x2c87f6)||[];}function _0x2a8401(_0x42da0a,_0x38f74d){const _0x2c832d=_0x40af1c;return _0x42da0a['_refCache'][_0x2c832d(0x3f0)][_0x2c832d(0x6ce)](_0x38f74d)||[];}function _0x44c9e4(_0x13fba1){const _0x4fc0b9=_0x40af1c;if(_0x13fba1[_0x4fc0b9(0x5c3)])return _0x13fba1['_refIndexDb'];return _0x13fba1[_0x4fc0b9(0x5c3)]=_0x13fba1['db']['openDB'](_0x4fc0b9(0x1c5),{'dupSort':![]}),_0x13fba1['_refIndexDb'];}function _0x11c029(_0x213238,_0x4fafdf,_0x256ded,_0x385279,_0x535fb6){const _0x170b53=_0x40af1c,_0x224f00=_0x3d2afa(_0x213238,_0x4fafdf);if(_0x224f00[_0x170b53(0x192)]===0x0)return;const _0xf972d2=_0x44c9e4(_0x213238);for(const _0x316f7f of _0x224f00){const _0x392145=_0x535fb6!=null?_0x529aa1(_0x535fb6,_0x316f7f[_0x170b53(0x818)]):undefined,_0x4d23f6=_0x385279!=null?_0x529aa1(_0x385279,_0x316f7f['fieldPath']):undefined;if(_0x392145===_0x4d23f6)continue;_0xc8de30(_0x392145)&&_0xf972d2['removeSync'](_0xa91a1c(_0x316f7f[_0x170b53(0x67f)],_0x392145,_0x4fafdf,_0x256ded,_0x316f7f[_0x170b53(0x818)])),_0xc8de30(_0x4d23f6)&&_0xf972d2[_0x170b53(0x759)](_0xa91a1c(_0x316f7f[_0x170b53(0x67f)],_0x4d23f6,_0x4fafdf,_0x256ded,_0x316f7f[_0x170b53(0x818)]),0x1);}}function _0x539932(_0x5a593f,_0x11d59d,_0x2a87a2,_0x146c58){const _0x1ac1ef=_0x40af1c,_0x113f23=_0x3d2afa(_0x5a593f,_0x11d59d);if(_0x113f23[_0x1ac1ef(0x192)]===0x0)return;const _0xfbda2b=_0x44c9e4(_0x5a593f);for(const _0x2f90ed of _0x113f23){const _0x282504=_0x146c58!=null?_0x529aa1(_0x146c58,_0x2f90ed['fieldPath']):undefined;_0xc8de30(_0x282504)&&_0xfbda2b[_0x1ac1ef(0x467)](_0xa91a1c(_0x2f90ed[_0x1ac1ef(0x67f)],_0x282504,_0x11d59d,_0x2a87a2,_0x2f90ed[_0x1ac1ef(0x818)]));}}function _0x300f6b(_0x208d03,_0x5c257a,_0x5e69b5,_0x3a6ba5){const _0x3914b7=_0x40af1c,_0x1ccf6c=_0x3d2afa(_0x208d03,_0x5c257a);if(_0x1ccf6c[_0x3914b7(0x192)]===0x0)return[];const _0x46f427=[];for(const _0x41b28e of _0x1ccf6c){const _0x212e17=_0x529aa1(_0x3a6ba5,_0x41b28e[_0x3914b7(0x818)]);if(_0x212e17==null)continue;if(!_0x208d03['hasType'](_0x41b28e['targetType'])){_0x46f427[_0x3914b7(0x46d)]({'fieldPath':_0x41b28e[_0x3914b7(0x818)],'targetType':_0x41b28e[_0x3914b7(0x67f)],'targetKey':_0x212e17,'message':_0x3914b7(0x7f3)+_0x41b28e[_0x3914b7(0x67f)]+_0x3914b7(0x63f)});continue;}const _0xb9598f=_0x208d03['_getType'](_0x41b28e[_0x3914b7(0x67f)])[_0x3914b7(0x79c)];!_0xb9598f[_0x3914b7(0x16c)](_0x212e17)&&_0x46f427[_0x3914b7(0x46d)]({'fieldPath':_0x41b28e['fieldPath'],'targetType':_0x41b28e[_0x3914b7(0x67f)],'targetKey':_0x212e17,'message':_0x3914b7(0x516)+_0x212e17+'\x27\x20does\x20not\x20exist\x20in\x20type\x20\x27'+_0x41b28e[_0x3914b7(0x67f)]+'\x27'});}return _0x46f427;}function _0x93bbd6(_0x4ba307,_0x35c376,_0x56a853,_0x3a0a21,_0x5e0262,{timestamp:_0x425f4a,origin:_0x3df3f8,_cascadeVisited:_0x3c0795}){const _0x2559d7=_0x40af1c,_0x5405d4=_0x2a8401(_0x4ba307,_0x56a853);if(_0x5405d4[_0x2559d7(0x192)]===0x0)return;const _0x280ccc=_0x44c9e4(_0x4ba307),_0x41eb9c=[];for(const [,,_0x522cba,_0x2842d7,_0x192003]of _0x5ee967(_0x280ccc,_0x56a853,_0x3a0a21)){_0x41eb9c[_0x2559d7(0x46d)]({'sourceType':_0x522cba,'sourceKey':_0x2842d7,'fieldPath':_0x192003});}if(_0x41eb9c['length']===0x0)return;for(const _0x5025e8 of _0x41eb9c){const _0x5a8cdd=_0x5405d4[_0x2559d7(0x472)](_0x2ac734=>_0x2ac734[_0x2559d7(0x615)]===_0x5025e8[_0x2559d7(0x615)]&&_0x2ac734[_0x2559d7(0x818)]===_0x5025e8[_0x2559d7(0x818)]),_0x19af6d=_0x5a8cdd?.[_0x2559d7(0x29f)]||'no_action';switch(_0x19af6d){case _0x2559d7(0x35d):{if(_0x3df3f8===null)throw new _0x3b59ed(_0x56a853,_0x3a0a21,_0x41eb9c['filter'](_0x35dd73=>{const _0x2f8206=_0x2559d7,_0x221da9=_0x5405d4[_0x2f8206(0x472)](_0x305eba=>_0x305eba[_0x2f8206(0x615)]===_0x35dd73[_0x2f8206(0x615)]&&_0x305eba[_0x2f8206(0x818)]===_0x35dd73['fieldPath']);return(_0x221da9?.['onDelete']||_0x2f8206(0x401))===_0x2f8206(0x35d);}));break;}case _0x2559d7(0x261):{const _0x13490d=_0xe242db(_0x5025e8['sourceType'],_0x5025e8[_0x2559d7(0x806)]);if(_0x3c0795['has'](_0x13490d))continue;_0x4ba307[_0x2559d7(0x726)](_0x5025e8['sourceType'])[_0x2559d7(0x79c)]['doesExist'](_0x5025e8[_0x2559d7(0x806)])&&_0x4ba307[_0x2559d7(0x697)](_0x35c376,_0x5025e8[_0x2559d7(0x615)],_0x5025e8[_0x2559d7(0x806)],{'timestamp':_0x425f4a,'origin':_0x3df3f8,'_cascadeVisited':_0x3c0795});break;}case'set_null':{const _0x1e7e52=_0x4ba307[_0x2559d7(0x726)](_0x5025e8[_0x2559d7(0x615)])['data'],_0x268fbf=_0x1e7e52[_0x2559d7(0x638)](_0x5025e8[_0x2559d7(0x806)]);if(_0x268fbf){const _0x3e5dec=_0xa0fd40(_0x268fbf['value'],_0x5025e8[_0x2559d7(0x818)],null);_0x4ba307[_0x2559d7(0x3a8)](_0x35c376,_0x2559d7(0x14f),_0x5025e8[_0x2559d7(0x615)],_0x5025e8[_0x2559d7(0x806)],_0x3e5dec,{'timestamp':_0x425f4a,'origin':_0x3df3f8,'_cascading':!![]});}break;}}}}function _0x24ddb8(_0x450b6d){const _0x2fe2d8=_0x40af1c;!_0x450b6d[_0x2fe2d8(0x6e2)](_0x205a6b)&&_0x450b6d[_0x2fe2d8(0x57d)](_0x205a6b);}function _0x508910(_0x1b5c7a,_0x3a1cb5,_0x2f1499,_0x58600e,_0x44ed6d,_0x3714bf,_0x11cfce,{timestamp:timestamp=Date[_0x40af1c(0x76a)](),origin:origin=null}={}){const _0x1d12f9=_0x40af1c;_0x24ddb8(_0x1b5c7a);const _0x1d62fe=_0x2f1499+'@'+_0x58600e+'@'+_0x44ed6d,_0x5b1ee4={'sourceType':_0x2f1499,'sourceKey':_0x58600e,'fieldPath':_0x44ed6d,'targetType':_0x3714bf,'targetKey':_0x11cfce,'timestamp':timestamp,'origin':origin},_0x5e960f=_0x1b5c7a[_0x1d12f9(0x726)](_0x205a6b)['data'],_0x249277=_0x5e960f[_0x1d12f9(0x638)](_0x1d62fe),_0x383cdf=_0x249277?_0x249277[_0x1d12f9(0x779)]+0x1:0x1;_0x5e960f[_0x1d12f9(0x759)](_0x1d62fe,_0x5b1ee4,_0x383cdf),_0x1b5c7a['_logChange']({'id':_0x1d12f9(0x651)+_0x205a6b+'@'+_0x1d62fe,'type':_0x205a6b,'key':_0x1d62fe,'action':_0x423fa7[_0x1d12f9(0x3c7)],'timestamp':timestamp,'txnId':_0x3a1cb5?.['id'],'origin':origin},_0x249277?.[_0x1d12f9(0x821)],_0x5b1ee4),_0x1b5c7a[_0x1d12f9(0x5d6)][_0x1d12f9(0x839)](_0x434d64['REF_VIOLATION'],{'sourceType':_0x2f1499,'sourceKey':_0x58600e,'fieldPath':_0x44ed6d,'targetType':_0x3714bf,'targetKey':_0x11cfce,'env':_0x1b5c7a[_0x1d12f9(0x425)]});}function _0x3f56dd(_0x1c46aa,_0x5503dc,_0xdec749,_0x59dfc0,_0x203cc9,{timestamp:timestamp=Date[_0x40af1c(0x76a)](),origin:origin=null}={}){const _0x317b4e=_0x40af1c;if(!_0x1c46aa[_0x317b4e(0x6e2)](_0x205a6b))return;const _0x4ab494=_0xdec749+'@'+_0x59dfc0+'@'+_0x203cc9,_0x997a84=_0x1c46aa[_0x317b4e(0x726)](_0x205a6b)[_0x317b4e(0x79c)],_0x1f0673=_0x997a84[_0x317b4e(0x638)](_0x4ab494);if(!_0x1f0673)return;_0x997a84['removeSync'](_0x4ab494),_0x1c46aa[_0x317b4e(0x6a3)]({'id':_0x317b4e(0x651)+_0x205a6b+'@'+_0x4ab494,'type':_0x205a6b,'key':_0x4ab494,'action':_0x423fa7[_0x317b4e(0x5a7)],'timestamp':timestamp,'txnId':_0x5503dc?.['id'],'origin':origin},_0x1f0673[_0x317b4e(0x821)],undefined),_0x1c46aa[_0x317b4e(0x5d6)][_0x317b4e(0x839)](_0x434d64[_0x317b4e(0x781)],{'sourceType':_0xdec749,'sourceKey':_0x59dfc0,'fieldPath':_0x203cc9,'env':_0x1c46aa[_0x317b4e(0x425)]});}function _0x4b8fcb(_0x5c45e1,_0x542ada,_0x3d0071,_0x229173,_0x30dea9={}){const _0x5c6ec1=_0x40af1c;if(!_0x5c45e1[_0x5c6ec1(0x6e2)](_0x205a6b))return;const _0x259b84=_0x5c45e1[_0x5c6ec1(0x726)](_0x205a6b)[_0x5c6ec1(0x79c)],_0x14d0d0=_0x3d0071+'@'+_0x229173+'@',_0x2a593d=[];for(const {key:_0x59862c,value:_0x47223a}of _0x259b84[_0x5c6ec1(0x35a)]({'start':_0x14d0d0,'end':_0x14d0d0+'\uffff'})){if(_0x47223a?.[_0x5c6ec1(0x615)]===_0x3d0071&&_0x47223a?.['sourceKey']===_0x229173)_0x2a593d[_0x5c6ec1(0x46d)](_0x59862c);}for(const _0x46e0e0 of _0x2a593d){const _0x47e05b=_0x259b84[_0x5c6ec1(0x638)](_0x46e0e0);if(!_0x47e05b)continue;_0x259b84[_0x5c6ec1(0x467)](_0x46e0e0),_0x5c45e1[_0x5c6ec1(0x6a3)]({'id':_0x5c6ec1(0x651)+_0x205a6b+'@'+_0x46e0e0,'type':_0x205a6b,'key':_0x46e0e0,'action':_0x423fa7[_0x5c6ec1(0x5a7)],'timestamp':_0x30dea9[_0x5c6ec1(0x3f1)]||Date['now'](),'txnId':_0x542ada?.['id'],'origin':_0x30dea9[_0x5c6ec1(0x7b3)]},_0x47e05b['value'],undefined);}}function _0x5dc7dd(_0x90f386,_0x4a829a){const _0x360c28=_0x40af1c;if(!_0x90f386[_0x360c28(0x6e2)](_0x205a6b))return;const _0x10f24c=_0x90f386['_getType'](_0x205a6b)[_0x360c28(0x79c)],_0x4147e5=_0x4a829a+'@',_0x2af448=[];for(const {key:_0x3e3178,value:_0x48cb6b}of _0x10f24c[_0x360c28(0x35a)]({'start':_0x4147e5,'end':_0x4147e5+'\uffff'})){if(_0x48cb6b?.[_0x360c28(0x615)]===_0x4a829a)_0x2af448[_0x360c28(0x46d)](_0x3e3178);}for(const _0x2e93b9 of _0x2af448)_0x10f24c[_0x360c28(0x467)](_0x2e93b9);}async function _0xbd73f4(_0x4c983b,_0x3a6873){const _0x5748d6=_0x40af1c,_0x3485a8=_0x3d2afa(_0x4c983b,_0x3a6873);if(_0x3485a8['length']===0x0)return;await _0x4c983b[_0x5748d6(0x208)][_0x5748d6(0x5d5)](()=>{const _0x497979=_0x5748d6;for(const {key:_0x1be8c1,value:_0x1083c1}of _0x4c983b[_0x497979(0x35a)](_0x3a6873)){_0x11c029(_0x4c983b,_0x3a6873,_0x1be8c1,_0x1083c1,null);const _0x365663=_0x300f6b(_0x4c983b,_0x3a6873,_0x1be8c1,_0x1083c1);for(const _0xfe0f09 of _0x365663){_0x508910(_0x4c983b,null,_0x3a6873,_0x1be8c1,_0xfe0f09['fieldPath'],_0xfe0f09[_0x497979(0x67f)],_0xfe0f09[_0x497979(0x1aa)]);}}});}const _0x2c7514=0x1388;async function _0x1405e3(_0x52c63e){const _0x1ad138=_0x40af1c,_0x12dd24=_0x52c63e[_0x1ad138(0x22d)]?.['outgoing']?.[_0x1ad138(0x4fb)]>0x0;if(!_0x12dd24&&!_0x52c63e['_refIndexDb'])return{'dropped':0x0,'written':0x0};const _0x3a695a=_0x44c9e4(_0x52c63e);let _0x229ab6=0x0;for(;;){const _0x3a5c2f=Array['from'](_0x3a695a[_0x1ad138(0x462)]({'limit':_0x2c7514}));if(_0x3a5c2f[_0x1ad138(0x192)]===0x0)break;let _0x4cfb3d=0x0;await _0x52c63e[_0x1ad138(0x208)]['transaction'](()=>{for(const _0x3e6e12 of _0x3a5c2f)if(_0x3a695a['removeSync'](_0x3e6e12))_0x4cfb3d++;});if(_0x4cfb3d===0x0)break;_0x229ab6+=_0x4cfb3d;}let _0x4b46d6=0x0;for(const _0x4c9687 of _0x52c63e['_refCache'][_0x1ad138(0x177)][_0x1ad138(0x50d)]()){if(_0x4c9687[_0x1ad138(0x48b)]('~')||!_0x52c63e['hasType'](_0x4c9687))continue;const _0x5f0779=_0x3d2afa(_0x52c63e,_0x4c9687);await _0x52c63e[_0x1ad138(0x208)]['transaction'](()=>{const _0x59bd3f=_0x1ad138;for(const {key:_0xa8416d,value:_0x3fa824}of _0x52c63e[_0x59bd3f(0x35a)](_0x4c9687)){for(const _0x2af9f0 of _0x5f0779){const _0x234663=_0x529aa1(_0x3fa824,_0x2af9f0[_0x59bd3f(0x818)]);if(!_0xc8de30(_0x234663))continue;_0x3a695a['putSync'](_0xa91a1c(_0x2af9f0[_0x59bd3f(0x67f)],_0x234663,_0x4c9687,_0xa8416d,_0x2af9f0[_0x59bd3f(0x818)]),0x1),_0x4b46d6++;}}});}return{'dropped':_0x229ab6,'written':_0x4b46d6};}return okdbEnvRefs={'getFieldValue':_0x529aa1,'setFieldValue':_0xa0fd40,'refIndexKey':_0xa91a1c,'isRefTarget':_0xc8de30,'cascadeVisitKey':_0xe242db,'extractRefs':_0x5ba584,'rebuildRefCache':_0x2bd684,'getTypeRefs':_0x3d2afa,'getIncomingRefs':_0x2a8401,'getRefIndexDb':_0x44c9e4,'updateRefIndex':_0x11c029,'removeRefIndexEntries':_0x539932,'refIndexRowsFor':_0x5ee967,'rebuildRefIndex':_0x1405e3,'checkForeignKeys':_0x300f6b,'processDeleteCascade':_0x93bbd6,'setRefViolation':_0x508910,'clearRefViolation':_0x3f56dd,'clearRefViolationsForKey':_0x4b8fcb,'clearRefViolationsForType':_0x5dc7dd,'syncRefIndex':_0xbd73f4},okdbEnvRefs;}var hasRequiredOkdbSubscriptionsStore;function requireOkdbSubscriptionsStore(){const _0x5a3d70=_0x2d5353;if(hasRequiredOkdbSubscriptionsStore)return okdbSubscriptionsStore['exports'];hasRequiredOkdbSubscriptionsStore=0x1;const _0x351418=require$$0$4,{assertFilterAllowed:_0xc89baa}=requireOkdbQueryFilter(),{rebuildRefCache:_0x1f324e}=requireOkdbEnvRefs(),_0x51932f=_0x5a3d70(0x2d6),_0x471413='session',_0xcd42e8=_0x5a3d70(0x71a),_0x42333b=[_0x5a3d70(0x5e4),_0x5a3d70(0x2d0),_0x5a3d70(0x5c0)],_0x5c8423=[_0x5a3d70(0x5e4),_0x5a3d70(0x2d0)],_0x4903e5=0x5a*0x3e8,_0x3491db=Math[_0x5a3d70(0x7f6)](_0x4903e5/0x2);class _0x5130af{constructor(_0xc26376,_0xbd0bc3={}){const _0x25fe9e=_0x5a3d70;this['okdb']=_0xc26376,this[_0x25fe9e(0x7e4)]=Number['isFinite'](_0xbd0bc3[_0x25fe9e(0x7e4)])&&_0xbd0bc3[_0x25fe9e(0x7e4)]>0x0?_0xbd0bc3[_0x25fe9e(0x7e4)]:_0x4903e5,this['refreshThresholdMs']=Number['isFinite'](_0xbd0bc3[_0x25fe9e(0x6dc)])?_0xbd0bc3['refreshThresholdMs']:_0x3491db,this['_sub']=null;}async['open'](){const _0x3c0e46=_0x5a3d70;if(this[_0x3c0e46(0x1b4)])return this[_0x3c0e46(0x1b4)];const _0x39a9f5=await this[_0x3c0e46(0x4f7)][_0x3c0e46(0x869)](_0x51932f,{'sync':![]});return await _0x39a9f5['ensureType'](_0x471413,{'indexes':[_0x5c8423]}),await _0x39a9f5[_0x3c0e46(0x4e9)](_0xcd42e8),_0x39a9f5[_0x3c0e46(0x7a3)](_0xcd42e8)?_0x1f324e(_0x39a9f5):await _0x39a9f5[_0x3c0e46(0x598)](_0xcd42e8,{'definition':{'type':_0x3c0e46(0x712),'properties':{'sessionId':{'type':_0x3c0e46(0x84a),'ref':{'type':_0x471413,'onDelete':_0x3c0e46(0x261)}},'dataEnv':{'type':'string'},'type':{'type':_0x3c0e46(0x84a)},'key':{'type':'string'}},'required':[_0x3c0e46(0x59a),'dataEnv',_0x3c0e46(0x2d0),_0x3c0e46(0x5c0)]},'enforce':!![]}),await _0x39a9f5['ensureType'](_0xcd42e8,{'indexes':[_0x42333b]}),await _0x39a9f5['indexReady'](_0xcd42e8,_0x42333b),await _0x39a9f5[_0x3c0e46(0x6b4)](_0x471413,_0x5c8423),this['_sub']=_0x39a9f5,_0x39a9f5;}['_env'](){const _0x5c02e9=_0x5a3d70;if(!this[_0x5c02e9(0x1b4)])throw new Error(_0x5c02e9(0x191));return this[_0x5c02e9(0x1b4)];}async[_0x5a3d70(0x397)]({sessionId:_0x4b46cf,dataEnv:_0x138240,type:_0x4e7d3f,filter:filter=null,ttlMs:_0x1af5ec}={}){const _0x56acfe=_0x5a3d70,_0xe2632f=this[_0x56acfe(0x76b)]();_0xc89baa(filter);const _0x231f3a=_0x4b46cf!=null&&String(_0x4b46cf)[_0x56acfe(0x192)]>0x0?String(_0x4b46cf):_0x351418[_0x56acfe(0x846)](),_0x12f25f=Number[_0x56acfe(0x496)](_0x1af5ec)&&_0x1af5ec>0x0?_0x1af5ec:this[_0x56acfe(0x7e4)],_0x4cdd02=Date[_0x56acfe(0x76a)](),_0x158755={'sessionId':_0x231f3a,'dataEnv':_0x138240,'type':_0x4e7d3f,'filter':filter??null,'version':0x0,'createdAt':_0x4cdd02,'expiresAt':_0x4cdd02+_0x12f25f};return await _0xe2632f['put'](_0x471413,_0x231f3a,_0x158755,{'ttl':_0x12f25f}),{'sessionId':_0x231f3a,'version':0x0};}[_0x5a3d70(0x492)](_0x106d4b){const _0x50213f=_0x5a3d70;if(!_0x106d4b)return null;return this[_0x50213f(0x76b)]()[_0x50213f(0x6ce)](_0x471413,String(_0x106d4b))??null;}async[_0x5a3d70(0x6ab)](_0x10145b){const _0x5a64b7=_0x5a3d70,_0x230620=this[_0x5a64b7(0x76b)](),_0x749673=String(_0x10145b);if(!_0x230620[_0x5a64b7(0x6ce)](_0x471413,_0x749673))return![];return await _0x230620[_0x5a64b7(0x78e)](_0x471413,_0x749673),!![];}async[_0x5a3d70(0x1b8)](_0x242c7a){const _0x4b6bce=_0x5a3d70,_0x21b523=this[_0x4b6bce(0x76b)](),_0x384445=String(_0x242c7a),_0x2b8ce8=_0x21b523['get'](_0x471413,_0x384445);if(!_0x2b8ce8)return null;const _0x2fe438=(Number[_0x4b6bce(0x496)](_0x2b8ce8['version'])?_0x2b8ce8['version']:0x0)+0x1;return await _0x21b523[_0x4b6bce(0x14f)](_0x471413,_0x384445,{..._0x2b8ce8,'version':_0x2fe438}),_0x2fe438;}async[_0x5a3d70(0x3ae)](_0x3b84d4,_0x216a44){const _0x1fdb0b=_0x5a3d70,_0x3af704=this[_0x1fdb0b(0x76b)](),_0xe4803a=String(_0x3b84d4);if(!_0x3af704[_0x1fdb0b(0x6ce)](_0x471413,_0xe4803a))return![];const _0x583f8c=Number[_0x1fdb0b(0x496)](_0x216a44)&&_0x216a44>0x0?_0x216a44:this[_0x1fdb0b(0x7e4)];if(this[_0x1fdb0b(0x675)](_0xe4803a))return![];return await _0x3af704[_0x1fdb0b(0x235)](_0x471413,_0xe4803a,_0x583f8c),await this[_0x1fdb0b(0x417)](_0xe4803a,_0x583f8c),!![];}async[_0x5a3d70(0x81e)](_0x4248df,_0x4335e0){const _0x50c846=_0x5a3d70,_0x28cd63=this[_0x50c846(0x76b)](),_0x47a0c1=Number[_0x50c846(0x496)](_0x4335e0)&&_0x4335e0>0x0?_0x4335e0:this['ttlMs'],_0x325a25=Date[_0x50c846(0x76a)](),_0x2abbd8=[];for(const _0x2c8c95 of _0x4248df||[]){const _0x99fef3=String(_0x2c8c95),_0x37a275=_0x28cd63[_0x50c846(0x6ce)](_0x471413,_0x99fef3);if(!_0x37a275)continue;if(this[_0x50c846(0x675)](_0x99fef3,_0x325a25))continue;_0x2abbd8[_0x50c846(0x46d)]({'id':_0x99fef3,'cur':_0x37a275});}if(_0x2abbd8[_0x50c846(0x192)]===0x0)return[];return await _0x28cd63[_0x50c846(0x346)](async _0x434a36=>{const _0xc508c3=_0x50c846;for(const {id:_0x20795c,cur:_0x4f842c}of _0x2abbd8){_0x434a36['put'](_0x471413,_0x20795c,{..._0x4f842c,'expiresAt':_0x325a25+_0x47a0c1}),_0x434a36[_0xc508c3(0x235)](_0x471413,_0x20795c,_0x47a0c1);}}),_0x2abbd8[_0x50c846(0x4e8)](_0x3b7ce5=>_0x3b7ce5['id']);}[_0x5a3d70(0x675)](_0x2c14c4,_0x28cfd3=Date['now']()){const _0x2e6824=_0x5a3d70,_0x5bfc0e=this[_0x2e6824(0x76b)]()[_0x2e6824(0x4a1)](_0x471413,String(_0x2c14c4));if(!_0x5bfc0e)return![];return _0x5bfc0e[_0x2e6824(0x2c1)]-_0x28cfd3>this['refreshThresholdMs'];}async['_syncExpiresAtField'](_0xc7d3c1,_0x1603e1){const _0x1f8f4f=_0x5a3d70,_0x50a2e8=this[_0x1f8f4f(0x76b)](),_0x40d40e=_0x50a2e8['get'](_0x471413,_0xc7d3c1);if(!_0x40d40e)return;await _0x50a2e8['put'](_0x471413,_0xc7d3c1,{..._0x40d40e,'expiresAt':Date['now']()+_0x1603e1});}async[_0x5a3d70(0x7a8)](_0x481ee7,_0x4129e8,_0x2cabca){const _0x53332a=_0x5a3d70,_0x51440e=this['_env'](),_0x459289=String(_0x481ee7),_0x554182=_0x51440e[_0x53332a(0x6ce)](_0x471413,_0x459289);if(!_0x554182)throw new Error(_0x53332a(0x203)+_0x459289);const _0x5bed5a=_0x351418[_0x53332a(0x846)]();return await _0x51440e['put'](_0xcd42e8,_0x5bed5a,{'sessionId':_0x459289,'dataEnv':String(_0x554182[_0x53332a(0x5e4)]),'type':String(_0x4129e8),'key':String(_0x2cabca)}),_0x5bed5a;}async['_commitSessionMutation'](_0x511195,_0x326b7b,{retries:retries=0x8}={}){const _0x4725d1=_0x5a3d70,_0x3c4549=this[_0x4725d1(0x76b)]();for(let _0x1aa836=0x0;;_0x1aa836++){const _0x34952a=_0x3c4549[_0x4725d1(0x638)](_0x471413,_0x511195);if(!_0x34952a)return null;const _0x36ddb5=_0x34952a[_0x4725d1(0x821)],_0x16cefb=(Number[_0x4725d1(0x496)](_0x36ddb5[_0x4725d1(0x779)])?_0x36ddb5[_0x4725d1(0x779)]:0x0)+0x1,{sessionPatch:sessionPatch={},applyInterests:applyInterests=null}=_0x326b7b(_0x36ddb5,_0x3c4549)||{};try{return await _0x3c4549[_0x4725d1(0x346)](async _0xd6f064=>{const _0xf8976d=_0x4725d1;applyInterests?.(_0xd6f064),_0xd6f064[_0xf8976d(0x14f)](_0x471413,_0x511195,{..._0x36ddb5,...sessionPatch,'version':_0x16cefb},{'ifVersion':_0x34952a[_0xf8976d(0x779)]});}),_0x16cefb;}catch(_0x3c3565){if(_0x3c3565?.['code']==='VERSION_MISMATCH'&&_0x1aa836<retries)continue;throw _0x3c3565;}}}async[_0x5a3d70(0x87d)](_0x4212a3,{add:add=[],remove:remove=[]}={}){const _0x1dc972=_0x5a3d70,_0x7b2679=String(_0x4212a3);return this[_0x1dc972(0x18a)](_0x7b2679,(_0x16d82a,_0x4f0c39)=>{const _0x45af71=_0x1dc972,_0x527c85=String(_0x16d82a[_0x45af71(0x5e4)]),_0x5bdafa=new Set((remove||[])[_0x45af71(0x4e8)](_0x5e04a2=>String(_0x5e04a2[_0x45af71(0x2d0)])+'\x00'+String(_0x5e04a2[_0x45af71(0x5c0)]))),_0x4842c1=[];if(_0x5bdafa[_0x45af71(0x4fb)]>0x0)for(const {key:_0x33a4a1,value:_0x23f2be}of _0x4f0c39[_0x45af71(0x35a)](_0xcd42e8,{})){if(!_0x23f2be||_0x23f2be[_0x45af71(0x59a)]!==_0x7b2679)continue;if(_0x5bdafa[_0x45af71(0x69d)](_0x23f2be['type']+'\x00'+_0x23f2be[_0x45af71(0x5c0)]))_0x4842c1[_0x45af71(0x46d)](_0x33a4a1);}const _0x11003f=(add||[])[_0x45af71(0x4e8)](_0x535de9=>({'id':_0x351418[_0x45af71(0x846)](),'type':String(_0x535de9[_0x45af71(0x2d0)]),'key':String(_0x535de9[_0x45af71(0x5c0)])}));return{'applyInterests':_0x44312e=>{const _0x37419e=_0x45af71;for(const _0x2a3db6 of _0x4842c1)_0x44312e[_0x37419e(0x78e)](_0xcd42e8,_0x2a3db6);for(const _0x2b4166 of _0x11003f)_0x44312e[_0x37419e(0x14f)](_0xcd42e8,_0x2b4166['id'],{'sessionId':_0x7b2679,'dataEnv':_0x527c85,'type':_0x2b4166[_0x37419e(0x2d0)],'key':_0x2b4166[_0x37419e(0x5c0)]});}};});}async[_0x5a3d70(0x2ab)](_0x3254e1,_0x30277e){const _0x5e477c=_0x5a3d70;_0xc89baa(_0x30277e);const _0x590f35=String(_0x3254e1);return this[_0x5e477c(0x18a)](_0x590f35,()=>({'sessionPatch':{'filter':_0x30277e??null}}));}async[_0x5a3d70(0x520)](_0x5c3d72,_0x2abcd1,_0x177c6f){const _0x30804b=_0x5a3d70,_0x279c7c=this['_env'](),_0x67b313=String(_0x5c3d72),_0x386dd0=String(_0x2abcd1),_0x166d8e=String(_0x177c6f),_0x5b52c3=[];for(const {key:_0x3ba6da,value:_0x95033}of _0x279c7c[_0x30804b(0x35a)](_0xcd42e8,{})){if(_0x95033&&_0x95033['sessionId']===_0x67b313&&_0x95033[_0x30804b(0x2d0)]===_0x386dd0&&_0x95033[_0x30804b(0x5c0)]===_0x166d8e)_0x5b52c3[_0x30804b(0x46d)](_0x3ba6da);}for(const _0xefbd3c of _0x5b52c3)await _0x279c7c['remove'](_0xcd42e8,_0xefbd3c);return _0x5b52c3['length'];}async[_0x5a3d70(0x2b9)](_0x16b149,_0x36b41a){const _0x493632=_0x5a3d70,_0x3c89cb=String(_0x16b149);return this[_0x493632(0x18a)](_0x3c89cb,(_0x89a268,_0x4b467c)=>{const _0x29673d=_0x493632,_0x3696b3=String(_0x89a268[_0x29673d(0x5e4)]),_0x41317b=[];for(const {key:_0x592538,value:_0x398c02}of _0x4b467c['getRange'](_0xcd42e8,{})){if(_0x398c02&&_0x398c02[_0x29673d(0x59a)]===_0x3c89cb)_0x41317b[_0x29673d(0x46d)](_0x592538);}const _0x28b301=(_0x36b41a||[])['map'](_0x378924=>({'id':_0x351418[_0x29673d(0x846)](),'type':String(_0x378924[_0x29673d(0x2d0)]),'key':String(_0x378924[_0x29673d(0x5c0)])}));return{'applyInterests':_0x4ac56c=>{const _0x41fb5c=_0x29673d;for(const _0x2107cb of _0x41317b)_0x4ac56c[_0x41fb5c(0x78e)](_0xcd42e8,_0x2107cb);for(const _0x2ebc60 of _0x28b301)_0x4ac56c['put'](_0xcd42e8,_0x2ebc60['id'],{'sessionId':_0x3c89cb,'dataEnv':_0x3696b3,'type':_0x2ebc60[_0x41fb5c(0x2d0)],'key':_0x2ebc60['key']});}};});}[_0x5a3d70(0x751)](_0x2d6f2d,_0x53ca0e,_0x160ce7){const _0xca3cf5=_0x5a3d70,_0x25f85c=this['_env'](),_0x55279a=String(_0x2d6f2d),_0x39434e=String(_0x53ca0e),_0x16d89c=String(_0x160ce7),_0x4609b5=new Set();for(const {value:_0x252932}of _0x25f85c['byIndex'](_0xcd42e8,_0x42333b,{'start':[_0x55279a,_0x39434e,_0x16d89c],'end':[_0x55279a,_0x39434e,_0x16d89c,'￿']})){if(_0x252932&&_0x252932[_0xca3cf5(0x59a)])_0x4609b5[_0xca3cf5(0x725)](_0x252932[_0xca3cf5(0x59a)]);}return[..._0x4609b5];}[_0x5a3d70(0x535)](_0x318b23,_0x325422){const _0x87356e=_0x5a3d70,_0x43ebe3=this[_0x87356e(0x76b)](),_0xda9c9e=String(_0x318b23),_0x490e6b=String(_0x325422),_0x5b2026=[];for(const {value:_0x448cd7}of _0x43ebe3[_0x87356e(0x120)](_0x471413,_0x5c8423,{'start':[_0xda9c9e,_0x490e6b],'end':[_0xda9c9e,_0x490e6b,'\uffff']})){if(!_0x448cd7||_0x448cd7[_0x87356e(0x5e4)]!==_0xda9c9e||_0x448cd7[_0x87356e(0x2d0)]!==_0x490e6b)continue;if(_0x448cd7[_0x87356e(0x440)]==null)continue;_0x5b2026['push']({'sessionId':_0x448cd7['sessionId'],'filter':_0x448cd7['filter'],'version':Number['isFinite'](_0x448cd7[_0x87356e(0x779)])?_0x448cd7[_0x87356e(0x779)]:0x0});}return _0x5b2026;}async['sweepExpired'](){const _0x3ab395=_0x5a3d70;return this['_env']()[_0x3ab395(0x852)]();}}return okdbSubscriptionsStore['exports']=_0x5130af,okdbSubscriptionsStore[_0x5a3d70(0x613)][_0x5a3d70(0x57c)]=_0x51932f,okdbSubscriptionsStore[_0x5a3d70(0x613)][_0x5a3d70(0x7f4)]=_0x471413,okdbSubscriptionsStore[_0x5a3d70(0x613)][_0x5a3d70(0x126)]=_0xcd42e8,okdbSubscriptionsStore[_0x5a3d70(0x613)][_0x5a3d70(0x25c)]=_0x42333b,okdbSubscriptionsStore[_0x5a3d70(0x613)][_0x5a3d70(0x18e)]=_0x5c8423,okdbSubscriptionsStore[_0x5a3d70(0x613)]['DEFAULT_TTL_MS']=_0x4903e5,okdbSubscriptionsStore[_0x5a3d70(0x613)];}var version=_0x2d5353(0x41d),require$$29={'version':version},okdbEnginesEnums,hasRequiredOkdbEnginesEnums;function requireOkdbEnginesEnums(){const _0x41abc7=_0x2d5353;if(hasRequiredOkdbEnginesEnums)return okdbEnginesEnums;hasRequiredOkdbEnginesEnums=0x1;const _0x40f140=_0x41abc7(0x352),_0x5b809e=0xa,_0x52d6a4=Object[_0x41abc7(0x1c4)]({'CREATED':_0x41abc7(0x236),'ONLINE':'online','STOPPED':_0x41abc7(0x6da),'INACTIVE':_0x41abc7(0x2b7),'ERROR':_0x41abc7(0x5b4),'REMOVED':_0x41abc7(0x5a1)}),_0xfc87b6=Object['freeze']({'STARTED':'started','STOPPED':_0x41abc7(0x6da),'ERROR':'error','INSTALLED':_0x41abc7(0x808),'UNINSTALLED':_0x41abc7(0x138)}),_0x526fbe=Object['freeze'](new Set([_0x52d6a4[_0x41abc7(0x714)],_0x52d6a4['STOPPED'],_0x52d6a4['INACTIVE'],_0x52d6a4[_0x41abc7(0x372)]]));function _0x34f6d3(_0x151377){const _0x5fc60a=_0x41abc7;return _0x151377?.['enabled']===![]?_0x52d6a4[_0x5fc60a(0x7b6)]:_0x5fc60a(0x4e0);}return okdbEnginesEnums={'TYPE_ENGINES':_0x40f140,'MAX_UPDATE_RETRIES':_0x5b809e,'ENGINE_STATUS':_0x52d6a4,'ENGINE_EVENTS':_0xfc87b6,'UPDATABLE_STATUSES':_0x526fbe,'durableOnlyEngineState':_0x34f6d3},okdbEnginesEnums;}var enums,hasRequiredEnums;function requireEnums(){const _0x5e78b0=_0x2d5353;if(hasRequiredEnums)return enums;hasRequiredEnums=0x1;const _0xe5a739=Object[_0x5e78b0(0x1c4)]({'EMBEDDER':_0x5e78b0(0x122),'INDEXER':_0x5e78b0(0x706),'SEARCH':_0x5e78b0(0x84c),'WORKER':_0x5e78b0(0x31b)}),_0xdb19fd=Object[_0x5e78b0(0x1c4)]({'PENDING':_0x5e78b0(0x641),'DONE':_0x5e78b0(0x5f1),'FAILED':_0x5e78b0(0x823),'DELETED':_0x5e78b0(0x244)}),_0x583c61=Object[_0x5e78b0(0x1c4)]({'INDEXER_READY':_0x5e78b0(0x5a5),'INDEXER_FLUSHED':_0x5e78b0(0x75e),'INDEXER_DOC_DONE':_0x5e78b0(0x2de),'INDEXER_DOC_FAILED':_0x5e78b0(0x744),'INDEXER_DOC_QUEUED':'embeddings:indexer:doc:queued','STRATEGY_REGISTERED':_0x5e78b0(0x3c4),'DOC_STATUS_CHANGE':_0x5e78b0(0x857),'PIPELINE_READY':'embeddings:pipeline:ready'}),_0x535d24=Object[_0x5e78b0(0x1c4)]({'MODELS':_0x5e78b0(0x2b0),'DOC_STATUS_PREFIX':_0x5e78b0(0x605),'VEC_PREFIX':_0x5e78b0(0x394)});return enums={'ENGINE_TYPES':_0xe5a739,'INDEXER_DOC_STATUS':_0xdb19fd,'EMBEDDINGS_EVENTS':_0x583c61,'INTERNAL_TYPES':_0x535d24},enums;}var okdbQueueValidate,hasRequiredOkdbQueueValidate;function requireOkdbQueueValidate(){const _0x3a99e4=_0x2d5353;if(hasRequiredOkdbQueueValidate)return okdbQueueValidate;hasRequiredOkdbQueueValidate=0x1;const _0x137719=Object['freeze']({'PENDING':_0x3a99e4(0x641),'RUNNING':_0x3a99e4(0x12a),'DONE':_0x3a99e4(0x5f1),'FAILED':'failed'}),_0x513883=Object[_0x3a99e4(0x1c4)]({'ACTIVE':_0x3a99e4(0x1c1),'PAUSED':_0x3a99e4(0x1ae),'DRAINING':_0x3a99e4(0x3a2)}),_0x448778=Object[_0x3a99e4(0x1c4)]({'ENQUEUED':_0x3a99e4(0x7db),'DONE':_0x3a99e4(0x295),'FAILED':'queue:failed','RETRY':_0x3a99e4(0x7f2),'RESCHEDULED':'queue:rescheduled','REMOVED':'queue:removed','RECONCILED':_0x3a99e4(0x4da),'CLEAR_PROGRESS':_0x3a99e4(0x1d1),'CLEAR_DONE':_0x3a99e4(0x40d),'LOG':'queue:log'}),_0x4ae576=Object[_0x3a99e4(0x1c4)]([_0x3a99e4(0x13f),_0x3a99e4(0x758),_0x3a99e4(0x1fc),_0x3a99e4(0x5b4)]),_0x8c01d3=0x1,_0x15210e=0xc350,_0x5c2379=0x400,_0x8c10b6=0x800;function _0x4d41d1(_0x5b70c9){const _0xa8482e=_0x3a99e4;return _0x5b70c9!=null&&typeof _0x5b70c9==='object'&&(_0x5b70c9[_0xa8482e(0x745)]===Object||Object[_0xa8482e(0x65c)](_0x5b70c9)===null);}function _0x36c6ae(_0x2791cb,_0x26baaa,_0xa6d615,_0x2a0078){const _0x2f48b3=_0x3a99e4;if(_0x2791cb==null)return _0x26baaa;const _0x4c049d=Number(_0x2791cb);if(!Number[_0x2f48b3(0x496)](_0x4c049d))return _0x26baaa;const _0x502d2b=Math['trunc'](_0x4c049d);if(_0x502d2b<_0xa6d615)return _0xa6d615;if(_0x502d2b>_0x2a0078)return _0x2a0078;return _0x502d2b;}function _0x2948c3(_0x36ec70){const _0x157c7b=_0x3a99e4;if(!_0x36ec70)return[];if(typeof _0x36ec70===_0x157c7b(0x84a))_0x36ec70=[_0x36ec70];if(!Array['isArray'](_0x36ec70))throw new Error(_0x157c7b(0x527));const _0x3f6b96=[],_0xb6a1d6=new Set();for(const _0x557e04 of _0x36ec70){if(_0x557e04==null)continue;const _0x53e1f8=String(_0x557e04)['trim']();if(!_0x53e1f8)continue;if(_0x53e1f8[_0x157c7b(0x192)]>0x80)throw new Error(_0x157c7b(0x5f2));if(_0xb6a1d6[_0x157c7b(0x69d)](_0x53e1f8))continue;_0xb6a1d6[_0x157c7b(0x725)](_0x53e1f8),_0x3f6b96[_0x157c7b(0x46d)](_0x53e1f8);if(_0x3f6b96[_0x157c7b(0x192)]>=0x20)break;}return _0x3f6b96;}function _0xf35097(_0x4153d2){const _0xdfabd9=_0x3a99e4;if(_0x4153d2==null)return null;const _0xd56e28=String(_0x4153d2)[_0xdfabd9(0x4f1)]();if(!_0xd56e28)return null;if(_0xd56e28[_0xdfabd9(0x192)]>0x80)throw new Error(_0xdfabd9(0x7de));return _0xd56e28;}function _0x48e879(_0x452295,_0x119e0a=0x1){const _0x206e5e=_0x3a99e4;if(_0x452295==null)return[];if(typeof _0x452295===_0x206e5e(0x84a)){const _0xb68449=_0xf35097(_0x452295);if(!_0xb68449)return[];return[{'id':_0xb68449,'tokens':_0x119e0a}];}if(!Array[_0x206e5e(0x7e3)](_0x452295))throw new Error('buckets\x20must\x20be\x20array\x20or\x20string');const _0x480c32=[],_0x3f44be=new Set();for(const _0x96f6b7 of _0x452295){let _0x41574a,_0x3559dc;if(Array[_0x206e5e(0x7e3)](_0x96f6b7))[_0x41574a,_0x3559dc]=_0x96f6b7;else{if(_0x96f6b7&&typeof _0x96f6b7===_0x206e5e(0x712))({id:_0x41574a,tokens:_0x3559dc}=_0x96f6b7);else{if(typeof _0x96f6b7==='string')_0x41574a=_0x96f6b7,_0x3559dc=_0x119e0a;else continue;}}_0x41574a=_0xf35097(_0x41574a);if(!_0x41574a)continue;const _0x1dc58f=_0x3559dc==null?_0x119e0a:Math['trunc'](Number(_0x3559dc));if(!Number[_0x206e5e(0x496)](_0x1dc58f)||_0x1dc58f<0x1)throw new Error(_0x206e5e(0x7ad)+_0x41574a+'\x22\x20tokens\x20must\x20be\x20>=\x201');if(_0x1dc58f>0xf4240)throw new Error(_0x206e5e(0x7ad)+_0x41574a+_0x206e5e(0x3c5));if(_0x3f44be[_0x206e5e(0x69d)](_0x41574a))throw new Error('duplicate\x20bucket:\x20'+_0x41574a);_0x3f44be['add'](_0x41574a),_0x480c32[_0x206e5e(0x46d)]({'id':_0x41574a,'tokens':_0x1dc58f});}return _0x480c32;}function _0x580933(_0x4ac013,_0x16b9a3=0x400){const _0x250f52=_0x3a99e4;if(_0x4ac013==null)return null;const _0x2abe6c=String(_0x4ac013)[_0x250f52(0x6fe)](0x0,_0x16b9a3);return _0x2abe6c||null;}function _0x47bc31(_0x10dedb){const _0x2343f6=_0x3a99e4;if(_0x10dedb==null)return null;if(_0x10dedb[_0x2343f6(0x5c0)]!==undefined&&_0x10dedb[_0x2343f6(0x821)]!==undefined)return _0x10dedb;return{'key':_0x10dedb['id']??null,'value':_0x10dedb};}function _0x3a352c(_0x46bc08){const _0xe50da8=_0x3a99e4;let _0x5174a4=_0x46bc08;if(typeof _0x46bc08===_0xe50da8(0x84a))_0x5174a4={'message':_0x46bc08};if(!_0x4d41d1(_0x5174a4))throw new Error(_0xe50da8(0x55b));const _0x41d54c=_0x5174a4[_0xe50da8(0x6dd)]==null?_0xe50da8(0x758):String(_0x5174a4[_0xe50da8(0x6dd)])[_0xe50da8(0x3c2)]();if(!_0x4ae576[_0xe50da8(0x6f8)](_0x41d54c))throw new Error(_0xe50da8(0x5c8)+_0x41d54c);if(_0x5174a4[_0xe50da8(0x367)]==null)throw new Error(_0xe50da8(0x811));const _0x3af139=String(_0x5174a4[_0xe50da8(0x367)])[_0xe50da8(0x6fe)](0x0,_0x5c2379);let _0x29e922=null;if(_0x5174a4['fields']!=null){if(!_0x4d41d1(_0x5174a4[_0xe50da8(0x39f)]))throw new Error(_0xe50da8(0x3a5));if(JSON[_0xe50da8(0x84b)](_0x5174a4[_0xe50da8(0x39f)])[_0xe50da8(0x192)]>_0x8c10b6)throw new Error('log\x20entry\x20fields\x20too\x20large\x20(>2KB\x20serialized)');_0x29e922=_0x5174a4[_0xe50da8(0x39f)];}return{'level':_0x41d54c,'message':_0x3af139,'fields':_0x29e922,'ts':Date[_0xe50da8(0x76a)]()};}function _0x6edbcf(_0x1dc1db){const _0x2826bc=_0x3a99e4;if(_0x1dc1db==null)return;if(!Number[_0x2826bc(0x339)](_0x1dc1db)||_0x1dc1db<_0x8c01d3||_0x1dc1db>_0x15210e)throw new Error('logCap\x20must\x20be\x20null\x20or\x20integer\x20in\x20['+_0x8c01d3+',\x20'+_0x15210e+']');}function _0x1ec720(_0x30b1e8){const _0x2926bb=_0x3a99e4;if(!_0x4d41d1(_0x30b1e8))throw new Error(_0x2926bb(0x718));if(typeof _0x30b1e8['id']!==_0x2926bb(0x84a)||_0x30b1e8['id'][_0x2926bb(0x192)]<0x8)throw new Error(_0x2926bb(0x14e));if(typeof _0x30b1e8[_0x2926bb(0x2d0)]!=='string'||!_0x30b1e8[_0x2926bb(0x2d0)])throw new Error(_0x2926bb(0x33d));if(!Object[_0x2926bb(0x514)](_0x137719)[_0x2926bb(0x6f8)](_0x30b1e8['status']))throw new Error(_0x2926bb(0x4b4)+_0x30b1e8[_0x2926bb(0x2e4)]);for(const _0x5e1f8e of[_0x2926bb(0x1e9),_0x2926bb(0x236),_0x2926bb(0x471)]){if(typeof _0x30b1e8[_0x5e1f8e]!==_0x2926bb(0x859)||!Number['isFinite'](_0x30b1e8[_0x5e1f8e]))throw new Error('job.'+_0x5e1f8e+_0x2926bb(0x4f6));}if(_0x30b1e8['finished']!=null&&(typeof _0x30b1e8[_0x2926bb(0x715)]!==_0x2926bb(0x859)||!Number[_0x2926bb(0x496)](_0x30b1e8[_0x2926bb(0x715)])))throw new Error('job.finished\x20must\x20be\x20number|null');if(!Number[_0x2926bb(0x339)](_0x30b1e8[_0x2926bb(0x32c)])||_0x30b1e8['tries']<0x0)throw new Error(_0x2926bb(0x836));if(!Number[_0x2926bb(0x339)](_0x30b1e8[_0x2926bb(0x876)]))throw new Error(_0x2926bb(0x4bd));if(_0x30b1e8[_0x2926bb(0x81f)]!==null&&_0x30b1e8[_0x2926bb(0x81f)]!==Infinity&&(!Number[_0x2926bb(0x339)](_0x30b1e8[_0x2926bb(0x81f)])||_0x30b1e8[_0x2926bb(0x81f)]<0x1))throw new Error(_0x2926bb(0x655));if(_0x30b1e8['retry_delay']!=null&&(!Number[_0x2926bb(0x339)](_0x30b1e8['retry_delay'])||_0x30b1e8[_0x2926bb(0x51f)]<0x0))throw new Error('job.retry_delay\x20must\x20be\x20int\x20>=\x200');if(_0x30b1e8[_0x2926bb(0x56f)]!=null&&(typeof _0x30b1e8[_0x2926bb(0x56f)]!==_0x2926bb(0x859)||_0x30b1e8[_0x2926bb(0x56f)]<0x1))throw new Error(_0x2926bb(0x1dc));if(_0x30b1e8[_0x2926bb(0x866)]!=null&&typeof _0x30b1e8['claim_id']!==_0x2926bb(0x84a))throw new Error(_0x2926bb(0x687));if(_0x30b1e8[_0x2926bb(0x6fa)]!=null&&(typeof _0x30b1e8[_0x2926bb(0x6fa)]!==_0x2926bb(0x859)||!Number[_0x2926bb(0x496)](_0x30b1e8[_0x2926bb(0x6fa)])))throw new Error('job.claim_expires\x20must\x20be\x20number|null');if(_0x30b1e8[_0x2926bb(0x75f)]!=null&&typeof _0x30b1e8[_0x2926bb(0x75f)]!==_0x2926bb(0x84a))throw new Error(_0x2926bb(0x575));if(_0x30b1e8[_0x2926bb(0x418)]!=null&&(!Number[_0x2926bb(0x339)](_0x30b1e8[_0x2926bb(0x418)])||_0x30b1e8['bucket_tokens']<0x1))throw new Error(_0x2926bb(0x21d));if(_0x30b1e8['buckets']!=null){if(!Array[_0x2926bb(0x7e3)](_0x30b1e8[_0x2926bb(0x61d)]))throw new Error('job.buckets\x20must\x20be\x20array|null');for(const _0x41f3d5 of _0x30b1e8[_0x2926bb(0x61d)]){if(!_0x41f3d5||typeof _0x41f3d5!==_0x2926bb(0x712))throw new Error(_0x2926bb(0x69e));if(typeof _0x41f3d5['id']!==_0x2926bb(0x84a)||!_0x41f3d5['id'][_0x2926bb(0x4f1)]())throw new Error(_0x2926bb(0x1e1));if(!Number[_0x2926bb(0x339)](_0x41f3d5['tokens'])||_0x41f3d5[_0x2926bb(0x493)]<0x1)throw new Error('job.buckets[].tokens\x20must\x20be\x20int\x20>=\x201');}}if(_0x30b1e8[_0x2926bb(0x1fe)]!=null&&typeof _0x30b1e8[_0x2926bb(0x1fe)]!==_0x2926bb(0x84a))throw new Error(_0x2926bb(0x198));if(_0x30b1e8[_0x2926bb(0x197)]!=null&&typeof _0x30b1e8[_0x2926bb(0x197)]!==_0x2926bb(0x84a))throw new Error(_0x2926bb(0x525));if(!Array[_0x2926bb(0x7e3)](_0x30b1e8[_0x2926bb(0x628)]))throw new Error(_0x2926bb(0x427));if(_0x30b1e8[_0x2926bb(0x640)]!=null&&typeof _0x30b1e8[_0x2926bb(0x640)]!==_0x2926bb(0x84a))throw new Error(_0x2926bb(0x6f6));if(_0x30b1e8[_0x2926bb(0x568)]!=null&&typeof _0x30b1e8['status_code']!=='string')throw new Error('job.status_code\x20must\x20be\x20string|null');if(_0x30b1e8[_0x2926bb(0x31e)]!=null&&typeof _0x30b1e8[_0x2926bb(0x31e)]!=='string')throw new Error(_0x2926bb(0x6fc));if(_0x30b1e8[_0x2926bb(0x50c)]!=null&&typeof _0x30b1e8[_0x2926bb(0x50c)]!==_0x2926bb(0x84a))throw new Error(_0x2926bb(0x6e9));for(const _0x52bb10 of['done_ttl',_0x2926bb(0x5b3)]){const _0x400987=_0x30b1e8[_0x52bb10];if(_0x400987!=null&&(!Number['isInteger'](_0x400987)||_0x400987<0x0))throw new Error(_0x2926bb(0x5c7)+_0x52bb10+_0x2926bb(0x377));}_0x6edbcf(_0x30b1e8[_0x2926bb(0x5c1)]);}function _0x89abfd(_0x2ec629){const _0x176670=_0x3a99e4;if(!_0x4d41d1(_0x2ec629))throw new Error(_0x176670(0x7d5));if(typeof _0x2ec629['id']!==_0x176670(0x84a)||!_0x2ec629['id']['trim']())throw new Error(_0x176670(0x7bb));if(!Object[_0x176670(0x514)](_0x513883)[_0x176670(0x6f8)](_0x2ec629[_0x176670(0x2e4)]))throw new Error(_0x176670(0x556)+_0x2ec629['status']);if(_0x2ec629[_0x176670(0x215)]!=null&&(!Number[_0x176670(0x339)](_0x2ec629[_0x176670(0x215)])||_0x2ec629[_0x176670(0x215)]<0x1))throw new Error(_0x176670(0x692));if(_0x2ec629[_0x176670(0x163)]!=null){if(!_0x4d41d1(_0x2ec629[_0x176670(0x163)]))throw new Error(_0x176670(0x333));const _0x2ee58f=_0x2ec629[_0x176670(0x163)];if(_0x2ee58f[_0x176670(0x81f)]!=null&&(!Number[_0x176670(0x339)](_0x2ee58f[_0x176670(0x81f)])||_0x2ee58f['max_tries']<0x1))throw new Error(_0x176670(0x572));if(_0x2ee58f[_0x176670(0x51f)]!=null&&(!Number[_0x176670(0x339)](_0x2ee58f[_0x176670(0x51f)])||_0x2ee58f[_0x176670(0x51f)]<0x0))throw new Error(_0x176670(0x40b));if(_0x2ee58f[_0x176670(0x56f)]!=null&&(typeof _0x2ee58f[_0x176670(0x56f)]!==_0x176670(0x859)||_0x2ee58f[_0x176670(0x56f)]<0x1))throw new Error(_0x176670(0x7d0));if(_0x2ee58f[_0x176670(0x876)]!=null&&!Number['isInteger'](_0x2ee58f['priority']))throw new Error(_0x176670(0x291));if(_0x2ee58f[_0x176670(0x419)]!=null&&(!Number['isInteger'](_0x2ee58f[_0x176670(0x419)])||_0x2ee58f[_0x176670(0x419)]<0x0))throw new Error(_0x176670(0x7b9));for(const _0x58824e of[_0x176670(0x355),'failed_ttl']){if(_0x2ee58f[_0x58824e]!=null&&(!Number[_0x176670(0x339)](_0x2ee58f[_0x58824e])||_0x2ee58f[_0x58824e]<0x0))throw new Error(_0x176670(0x1de)+_0x58824e+_0x176670(0x377));}if(_0x2ee58f[_0x176670(0x61d)]!=null&&!Array[_0x176670(0x7e3)](_0x2ee58f[_0x176670(0x61d)]))throw new Error(_0x176670(0x48d));_0x6edbcf(_0x2ee58f[_0x176670(0x5c1)]);}if(_0x2ec629[_0x176670(0x6c5)]!=null){if(!_0x4d41d1(_0x2ec629[_0x176670(0x6c5)]))throw new Error(_0x176670(0x218));if(!_0x4d41d1(_0x2ec629['payload_schema'][_0x176670(0x219)]))throw new Error(_0x176670(0x4e6));if(typeof _0x2ec629[_0x176670(0x6c5)][_0x176670(0x26a)]!==_0x176670(0x2ff))throw new Error(_0x176670(0x213));}for(const _0x404007 of[_0x176670(0x3b6),_0x176670(0x57b)]){if(typeof _0x2ec629[_0x404007]!=='number'||!Number[_0x176670(0x496)](_0x2ec629[_0x404007]))throw new Error(_0x176670(0x68d)+_0x404007+_0x176670(0x4f6));}}function _0x1c9d85(_0x279697){const _0x1027ff=_0x3a99e4;if(!_0x4d41d1(_0x279697))throw new Error(_0x1027ff(0x174));if(typeof _0x279697['id']!=='string'||!_0x279697['id'][_0x1027ff(0x4f1)]())throw new Error(_0x1027ff(0x42b));if(!Number[_0x1027ff(0x339)](_0x279697['tokens'])||_0x279697[_0x1027ff(0x493)]<0x0)throw new Error(_0x1027ff(0x302));if(!Number['isInteger'](_0x279697['capacity'])||_0x279697['capacity']<0x0)throw new Error(_0x1027ff(0x442));if(_0x279697[_0x1027ff(0x493)]>_0x279697[_0x1027ff(0x583)])throw new Error('bucket.tokens\x20cannot\x20exceed\x20capacity');if(!Number[_0x1027ff(0x339)](_0x279697[_0x1027ff(0x24d)])||_0x279697['refill_amount']<0x0)throw new Error('bucket.refill_amount\x20must\x20be\x20int\x20>=\x200');if(!Number['isInteger'](_0x279697[_0x1027ff(0x306)])||_0x279697[_0x1027ff(0x306)]<0x0)throw new Error(_0x1027ff(0x484));if(typeof _0x279697['updated']!==_0x1027ff(0x859)||!Number[_0x1027ff(0x496)](_0x279697[_0x1027ff(0x471)]))throw new Error('bucket.updated\x20must\x20be\x20number');}return okdbQueueValidate={'STATUS':_0x137719,'JOB_TYPE_STATUS':_0x513883,'QUEUE_EVENTS':_0x448778,'LOG_LEVELS':_0x4ae576,'LOG_CAP_MIN':_0x8c01d3,'LOG_CAP_MAX':_0x15210e,'clampInt':_0x36c6ae,'asNullableString':_0x580933,'normalizeResult':_0x47bc31,'normalizeTags':_0x2948c3,'normalizeBucket':_0xf35097,'normalizeBuckets':_0x48e879,'normalizeLogEntry':_0x3a352c,'validateJobShape':_0x1ec720,'validateJobTypeShape':_0x89abfd,'validateBucketShape':_0x1c9d85},okdbQueueValidate;}var okdbTimers,hasRequiredOkdbTimers;function requireOkdbTimers(){if(hasRequiredOkdbTimers)return okdbTimers;hasRequiredOkdbTimers=0x1;const _0x2e5acd=0x2**0x1f-0x1;function _0x3196bc(_0x4a72ad){if(!(_0x4a72ad>0x0))return 0x0;return _0x4a72ad>_0x2e5acd?_0x2e5acd:_0x4a72ad;}function _0x3914e1(_0x1c546a){return _0x1c546a===Infinity;}return okdbTimers={'MAX_TIMER_DELAY':_0x2e5acd,'clampTimerDelay':_0x3196bc,'isNeverDelay':_0x3914e1},okdbTimers;}var okdbChangefeed,hasRequiredOkdbChangefeed;function requireOkdbChangefeed(){const _0x1aaedf=_0x2d5353;if(hasRequiredOkdbChangefeed)return okdbChangefeed;hasRequiredOkdbChangefeed=0x1;const _0x5a36c6=require$$0$6,{clampTimerDelay:_0x457ba1}=requireOkdbTimers(),{EVENTS:_0x2bdbf6,CHANGE_ACTIONS:_0x520fd7}=requireOkdbEnums(),{LOOP:_0x4331b6}=requireOkdbLoopMonitor(),_0x5ca7d7=Number(process.env.OKDB_CHANGEFEED_QUANTUM)||0x3e8,_0x3494ba=0x5,_0x54ddbc=0x2710;class _0x3f6435 extends _0x5a36c6{constructor(_0x332c67,_0x10de91={}){const _0x355f79=_0x36a2;super(),this[_0x355f79(0x4f7)]=_0x332c67,this[_0x355f79(0x67e)]=_0x10de91[_0x355f79(0x86b)]??_0x5ca7d7,this['_flushDebounce']=_0x10de91['flushDebounce']??_0x3494ba,this[_0x355f79(0x414)]=_0x10de91[_0x355f79(0x270)]??_0x54ddbc,this[_0x355f79(0x508)]=![],this[_0x355f79(0x1ce)]=new Map(),this['_baselines']=new Map(),this[_0x355f79(0x20a)]=new Map(),this[_0x355f79(0x37d)]=null,this['_draining']=![],this['_seen']=new Set(),this[_0x355f79(0x4d9)]=new Set(),this[_0x355f79(0x335)]=_0x302cc2=>this[_0x355f79(0x841)](_0x302cc2),this[_0x355f79(0x2f5)]=_0x334ff3=>this[_0x355f79(0x69a)](_0x334ff3),this[_0x355f79(0x1eb)]=_0x4eae5d=>this['_handlePoke'](_0x4eae5d),this[_0x355f79(0x402)]=()=>this[_0x355f79(0x32a)]();}['start'](){const _0x52d55e=_0x36a2;if(this['_started'])return;this[_0x52d55e(0x508)]=!![];for(const [_0x5d1ea7,_0x3c9142]of this[_0x52d55e(0x4f7)][_0x52d55e(0x3e2)]){if(_0x5d1ea7[_0x52d55e(0x48b)]('~'))continue;try{_0x3c9142[_0x52d55e(0x33f)]();}catch{}}for(const [_0x4553ad,_0x4b6cf5]of this[_0x52d55e(0x4f7)]['_envs']){if(_0x4553ad['startsWith']('~'))continue;try{this[_0x52d55e(0x195)][_0x52d55e(0x7a0)](_0x4553ad,_0x4b6cf5[_0x52d55e(0x863)]()||0x0);}catch{}}const {events:_0x4a170b}=this[_0x52d55e(0x4f7)];_0x4a170b['on'](_0x2bdbf6[_0x52d55e(0x790)],this['_onPending']),_0x4a170b['on'](_0x2bdbf6[_0x52d55e(0x50b)],this['_onItem']),_0x4a170b['on'](_0x2bdbf6['ITEM_UPDATE'],this[_0x52d55e(0x335)]),_0x4a170b['on'](_0x2bdbf6['ITEM_REMOVE'],this[_0x52d55e(0x335)]),_0x4a170b['on'](_0x2bdbf6[_0x52d55e(0x221)],this[_0x52d55e(0x1eb)]),_0x4a170b[_0x52d55e(0x5f3)](_0x2bdbf6['SYSTEM_STOPPED'],this[_0x52d55e(0x402)]);}[_0x1aaedf(0x32a)](){const _0x441cde=_0x1aaedf;if(!this[_0x441cde(0x508)])return;this['_started']=![];const {events:_0x14636a}=this['okdb'];_0x14636a[_0x441cde(0x2b4)](_0x2bdbf6['ITEM_PENDING'],this['_onPending']),_0x14636a[_0x441cde(0x2b4)](_0x2bdbf6['ITEM_CREATE'],this[_0x441cde(0x335)]),_0x14636a[_0x441cde(0x2b4)](_0x2bdbf6['ITEM_UPDATE'],this['_onItem']),_0x14636a['off'](_0x2bdbf6[_0x441cde(0x53e)],this[_0x441cde(0x335)]),_0x14636a[_0x441cde(0x2b4)](_0x2bdbf6['SYSTEM_POKE'],this[_0x441cde(0x1eb)]);try{_0x14636a[_0x441cde(0x2b4)](_0x2bdbf6[_0x441cde(0x301)],this[_0x441cde(0x402)]);}catch{}this[_0x441cde(0x37d)]&&(clearTimeout(this[_0x441cde(0x37d)]),this[_0x441cde(0x37d)]=null),this[_0x441cde(0x20a)][_0x441cde(0x530)](),this[_0x441cde(0x1ce)][_0x441cde(0x530)](),this[_0x441cde(0x195)][_0x441cde(0x530)](),this[_0x441cde(0x2b2)][_0x441cde(0x530)](),this[_0x441cde(0x4d9)][_0x441cde(0x530)]();}[_0x1aaedf(0x52e)](_0x2799d4,_0x45d19a,_0xba5c66,_0x22cfb5){return _0x2799d4+'\x00'+_0x45d19a+'\x00'+_0xba5c66+'\x00'+_0x22cfb5;}[_0x1aaedf(0x523)](_0xb56f87,_0x1fbac9,_0x5b589a,_0x54363c){const _0x4dfeee=_0x1aaedf,_0x47553f=this[_0x4dfeee(0x52e)](_0xb56f87,_0x1fbac9,_0x5b589a,_0x54363c);if(this[_0x4dfeee(0x2b2)][_0x4dfeee(0x69d)](_0x47553f))return![];this[_0x4dfeee(0x2b2)][_0x4dfeee(0x725)](_0x47553f);if(this[_0x4dfeee(0x2b2)][_0x4dfeee(0x4fb)]>this[_0x4dfeee(0x414)]){const _0x723eee=this['_seen'][_0x4dfeee(0x514)]()['next']()[_0x4dfeee(0x821)];this[_0x4dfeee(0x2b2)][_0x4dfeee(0x243)](_0x723eee);}return!![];}[_0x1aaedf(0x69a)](_0x1e2b69){const _0x325b6b=_0x1aaedf;if(!this['_started']||!_0x1e2b69)return;const {env:_0x13b18c,type:_0x4b0acf,key:_0x1a6232,clock:_0x3d7df5}=_0x1e2b69;if(_0x13b18c==null||_0x4b0acf==null||_0x1a6232==null)return;if(typeof _0x13b18c===_0x325b6b(0x84a)&&_0x13b18c[_0x325b6b(0x48b)]('~'))return;if(typeof _0x4b0acf===_0x325b6b(0x84a)&&_0x4b0acf[_0x325b6b(0x48b)]('~'))return;this[_0x325b6b(0x4d9)][_0x325b6b(0x725)](this[_0x325b6b(0x52e)](_0x13b18c,_0x4b0acf,_0x1a6232,_0x3d7df5)),this[_0x325b6b(0x4d9)][_0x325b6b(0x4fb)]>this['_dedupeMax']&&this['_pendingLocal'][_0x325b6b(0x243)](this[_0x325b6b(0x4d9)][_0x325b6b(0x514)]()[_0x325b6b(0x730)]()[_0x325b6b(0x821)]);}[_0x1aaedf(0x841)](_0x376e77){const _0x1daf7e=_0x1aaedf;if(!this[_0x1daf7e(0x508)]||!_0x376e77)return;const {env:_0x336ccf,type:_0x45179e,key:_0x47beeb,clock:_0x5a1c87,origin:_0x510c63,action:_0x426a2f,newValue:_0xa33d2e,oldValue:_0x4830ef}=_0x376e77;if(_0x336ccf==null||_0x45179e==null||_0x47beeb==null)return;if(typeof _0x336ccf===_0x1daf7e(0x84a)&&_0x336ccf[_0x1daf7e(0x48b)]('~'))return;if(typeof _0x45179e===_0x1daf7e(0x84a)&&_0x45179e[_0x1daf7e(0x48b)]('~'))return;this[_0x1daf7e(0x4d9)][_0x1daf7e(0x243)](this[_0x1daf7e(0x52e)](_0x336ccf,_0x45179e,_0x47beeb,_0x5a1c87));if(!this[_0x1daf7e(0x523)](_0x336ccf,_0x45179e,_0x47beeb,_0x5a1c87))return;const _0x39996a=_0x426a2f===_0x520fd7[_0x1daf7e(0x5a7)]?'remove':'put';this[_0x1daf7e(0x839)](_0x1daf7e(0x6c0),{'env':_0x336ccf,'type':_0x45179e,'key':_0x47beeb,'op':_0x39996a,'clock':_0x5a1c87,'origin':_0x510c63,'value':_0x39996a==='remove'?null:_0xa33d2e,'prevValue':_0x4830ef});}['_handlePoke'](_0x46059a){const _0x54e25a=_0x1aaedf;if(!this[_0x54e25a(0x508)])return;if(!_0x46059a||typeof _0x46059a['env']!=='string'||typeof _0x46059a[_0x54e25a(0x2d0)]!==_0x54e25a(0x84a))return;const {env:_0x9f1bc8,type:_0x386c4a}=_0x46059a;if(_0x9f1bc8[_0x54e25a(0x48b)]('~')||_0x386c4a['startsWith']('~'))return;this[_0x54e25a(0x20a)][_0x54e25a(0x7a0)](_0x9f1bc8+'\x00'+_0x386c4a,{'env':_0x9f1bc8,'type':_0x386c4a}),this[_0x54e25a(0x4bc)]();}[_0x1aaedf(0x4bc)](){const _0x5e1722=_0x1aaedf;if(this['_flushTimer'])return;const _0x461239=()=>{const _0x382425=_0x36a2;this[_0x382425(0x37d)]=null,this['_drain']()['catch'](()=>{});};this['_flushTimer']=setTimeout(_0x461239,_0x457ba1(this[_0x5e1722(0x767)]));}async[_0x1aaedf(0x2b8)](){const _0x555207=_0x1aaedf;if(this[_0x555207(0x3a6)]){this['_scheduleFlush']();return;}this['_draining']=!![];try{const _0x2efbb7=[...this['_pending'][_0x555207(0x514)]()];this[_0x555207(0x20a)][_0x555207(0x530)]();let _0x394d47=![];for(const {env:_0x11655e,type:_0xb826c9}of _0x2efbb7){try{const _0x1319d7=await this['_drainOne'](_0x11655e,_0xb826c9);if(_0x1319d7)_0x394d47=!![];}catch{this[_0x555207(0x20a)]['set'](_0x11655e+'\x00'+_0xb826c9,{'env':_0x11655e,'type':_0xb826c9}),_0x394d47=!![];}}if(_0x394d47||this[_0x555207(0x20a)][_0x555207(0x4fb)]>0x0)this['_scheduleFlush']();}finally{this[_0x555207(0x3a6)]=![];}}async['_drainOne'](_0x5349df,_0x3a1e05){const _0xac4317=_0x1aaedf,_0x147b54=await this[_0xac4317(0x4f7)][_0xac4317(0x41c)](_0x5349df),_0x326dd3=_0x5349df+'\x00'+_0x3a1e05;!this[_0xac4317(0x1ce)][_0xac4317(0x69d)](_0x326dd3)&&(!this[_0xac4317(0x195)][_0xac4317(0x69d)](_0x5349df)&&(_0x147b54[_0xac4317(0x33f)](),this[_0xac4317(0x195)][_0xac4317(0x7a0)](_0x5349df,_0x147b54['getClock']()||0x0)),this[_0xac4317(0x1ce)][_0xac4317(0x7a0)](_0x326dd3,this[_0xac4317(0x195)][_0xac4317(0x6ce)](_0x5349df)));const _0x5df0ad=this[_0xac4317(0x1ce)][_0xac4317(0x6ce)](_0x326dd3),_0x139d10=_0x147b54[_0xac4317(0x863)](_0x3a1e05)||0x0;if(_0x139d10<=_0x5df0ad)return![];const _0x4114a1=_0x5df0ad+this['_quantum'],_0x43681b=Math[_0xac4317(0x7bc)](_0x139d10,_0x4114a1),_0x27c765=_0x4331b6['enabled']?_0x4331b6['now']():0x0,_0xfaeeef=Array[_0xac4317(0x3ed)](_0x147b54[_0xac4317(0x5ed)](_0x3a1e05,_0x5df0ad+0x1,_0x43681b));let _0x347290=_0x5df0ad;for(const _0x23449d of _0xfaeeef){const {clock:_0x4201b5,key:_0x1b2ec3,action:_0x16a33c,origin:_0x578705}=_0x23449d;if(_0x4201b5>_0x347290)_0x347290=_0x4201b5;if(_0x1b2ec3==null)continue;if(this[_0xac4317(0x4d9)][_0xac4317(0x69d)](this[_0xac4317(0x52e)](_0x5349df,_0x3a1e05,_0x1b2ec3,_0x4201b5)))continue;if(!this[_0xac4317(0x523)](_0x5349df,_0x3a1e05,_0x1b2ec3,_0x4201b5))continue;let _0x56543a,_0x1037b8;if(_0x16a33c===_0x520fd7['REMOVE'])_0x56543a=_0xac4317(0x78e),_0x1037b8=null;else{const _0x50de31=_0x147b54[_0xac4317(0x6ce)](_0x3a1e05,_0x1b2ec3);_0x50de31==null?(_0x56543a=_0xac4317(0x78e),_0x1037b8=null):(_0x56543a=_0xac4317(0x14f),_0x1037b8=_0x50de31);}this[_0xac4317(0x839)](_0xac4317(0x6c0),{'env':_0x5349df,'type':_0x3a1e05,'key':_0x1b2ec3,'op':_0x56543a,'clock':_0x4201b5,'origin':_0x578705,'value':_0x1037b8});}if(_0x4331b6[_0xac4317(0x6f9)])_0x4331b6['note']('feed:'+_0x5349df+':'+_0x3a1e05,_0x4331b6[_0xac4317(0x76a)]()-_0x27c765,'n='+_0xfaeeef[_0xac4317(0x192)]);return this[_0xac4317(0x1ce)][_0xac4317(0x7a0)](_0x326dd3,Math['max'](_0x347290,_0x43681b)),_0x147b54[_0xac4317(0x863)](_0x3a1e05)>_0x43681b;}[_0x1aaedf(0x2e4)](){const _0x185a41=_0x1aaedf;return{'started':this[_0x185a41(0x508)],'quantum':this[_0x185a41(0x67e)],'flushDebounce':this[_0x185a41(0x767)],'cursors':Object[_0x185a41(0x6a5)]([...this['_cursors'][_0x185a41(0x45b)]()][_0x185a41(0x4e8)](([_0x22acc0,_0x1b4ced])=>[_0x22acc0[_0x185a41(0x4d7)]('\x00',':'),_0x1b4ced])),'pending':this[_0x185a41(0x20a)]['size'],'seen':this[_0x185a41(0x2b2)]['size']};}}return _0x3f6435['CHANGEFEED_QUANTUM']=_0x5ca7d7,okdbChangefeed={'OKDBChangefeed':_0x3f6435},okdbChangefeed;}var okdbRelay,hasRequiredOkdbRelay;function requireOkdbRelay(){const _0x651e71=_0x2d5353;if(hasRequiredOkdbRelay)return okdbRelay;hasRequiredOkdbRelay=0x1;const {EVENTS:_0x59e280}=requireOkdbEnums(),_0x2d5e9a=new Set([_0x59e280['ITEM_CREATE'],_0x59e280[_0x651e71(0x637)],_0x59e280['ITEM_REMOVE']]),{ENGINE_EVENTS:_0x1db2a0}=requireOkdbEnginesEnums(),{EMBEDDINGS_EVENTS:_0x26212c}=requireEnums(),{QUEUE_EVENTS:_0x7f8fe3}=requireOkdbQueueValidate(),_0x455c88=Object['values'](_0x59e280),_0x3dd425=Object[_0x651e71(0x514)](_0x1db2a0)[_0x651e71(0x4e8)](_0x26ec08=>_0x651e71(0x48a)+_0x26ec08),_0x27c8c9=Object[_0x651e71(0x514)](_0x26212c),_0x4de12e=Object[_0x651e71(0x514)](_0x7f8fe3),_0x348005=[_0x651e71(0x845),_0x651e71(0x225),_0x651e71(0x693),'processor:paused',_0x651e71(0x359),_0x651e71(0x619)],_0x57e253=[..._0x455c88,..._0x3dd425,..._0x27c8c9,..._0x4de12e,..._0x348005,_0x651e71(0x71e)],_0x42c7ac=new Set(_0x57e253),_0x5af9c5=new Set([_0x59e280[_0x651e71(0x50b)],_0x59e280['ITEM_UPDATE'],_0x59e280[_0x651e71(0x53e)],_0x59e280[_0x651e71(0x256)],_0x59e280[_0x651e71(0x1a9)],_0x59e280[_0x651e71(0x507)],_0x59e280[_0x651e71(0x16b)],_0x59e280[_0x651e71(0x54a)],_0x26212c[_0x651e71(0x1b2)],_0x26212c[_0x651e71(0x341)],_0x26212c['INDEXER_DOC_QUEUED'],_0x26212c[_0x651e71(0x3bf)],_0x651e71(0x225)]),_0x4aeeb7=_0x57e253['filter'](_0x3bc1b1=>_0x3bc1b1===_0x651e71(0x71e)||!_0x5af9c5[_0x651e71(0x69d)](_0x3bc1b1)),_0x474d7b=0x14,_0x2f692d=0xc8;class _0x496597{constructor(_0x459c0d,_0x42e235={}){const _0x4c40c9=_0x651e71;this[_0x4c40c9(0x4f7)]=_0x459c0d,this[_0x4c40c9(0x545)]=_0x42e235[_0x4c40c9(0x742)]??_0x474d7b,this[_0x4c40c9(0x737)]=_0x42e235[_0x4c40c9(0x660)]??_0x2f692d,this['_connections']=new Set(),this[_0x4c40c9(0x125)]=[],this[_0x4c40c9(0x456)]=[],this[_0x4c40c9(0x4c9)]=null,this[_0x4c40c9(0x285)]=![],this[_0x4c40c9(0x4ca)]=null,this[_0x4c40c9(0x532)]=null;}[_0x651e71(0x5b2)](){const _0x32b0ed=_0x651e71;if(this[_0x32b0ed(0x285)])return;this['_attached']=!![];const {okdb:_0x3260bb}=this;this[_0x32b0ed(0x4c9)]=_0x3260bb['log']['attach'](_0x3b4feb=>this['_push'](_0x32b0ed(0x71e),_0x3b4feb));for(const _0x2e087e of _0x57e253){if(_0x2e087e===_0x32b0ed(0x71e))continue;const _0x2ff407=_0x2d5e9a[_0x32b0ed(0x69d)](_0x2e087e),_0x5ac315=_0x527400=>{const _0xed485=_0x32b0ed;if(_0x2ff407&&this[_0xed485(0x4ca)])return;this['_push'](_0x2e087e,_0x527400??{});};_0x3260bb[_0x32b0ed(0x5d6)]['on'](_0x2e087e,_0x5ac315),this[_0x32b0ed(0x456)][_0x32b0ed(0x46d)]({'event':_0x2e087e,'handler':_0x5ac315});}this[_0x32b0ed(0x402)]=()=>this['detach'](),_0x3260bb[_0x32b0ed(0x5d6)][_0x32b0ed(0x5f3)](_0x59e280['SYSTEM_STOPPED'],this[_0x32b0ed(0x402)]);}[_0x651e71(0x6cf)](){const _0x179e13=_0x651e71;if(!this[_0x179e13(0x285)])return;if(this[_0x179e13(0x402)]){try{this[_0x179e13(0x4f7)]['events']['off'](_0x59e280[_0x179e13(0x301)],this[_0x179e13(0x402)]);}catch{}this['_onStop']=null;}this[_0x179e13(0x4c9)]?.(),this[_0x179e13(0x4c9)]=null;for(const {event:_0x1f7d99,handler:_0x2d572b}of this['_listeners']){try{this['okdb'][_0x179e13(0x5d6)]['off'](_0x1f7d99,_0x2d572b);}catch{}}this['_listeners']=[];for(const _0x470269 of this[_0x179e13(0x283)]){try{_0x470269[_0x179e13(0x182)]?.();}catch{}}this[_0x179e13(0x283)][_0x179e13(0x530)](),this[_0x179e13(0x81a)](),this[_0x179e13(0x285)]=![];}[_0x651e71(0x439)](_0x285b50){const _0x582a22=_0x651e71;if(!_0x285b50||this[_0x582a22(0x4ca)]===_0x285b50)return;this[_0x582a22(0x81a)](),this['_feed']=_0x285b50,this['_onFeedChange']=_0x5cf735=>{const _0x125f3c=_0x582a22;if(!_0x5cf735)return;const _0x4b0979=_0x5cf735['op']===_0x125f3c(0x78e)?_0x59e280[_0x125f3c(0x53e)]:_0x59e280[_0x125f3c(0x637)];this[_0x125f3c(0x53f)](_0x4b0979,_0x5cf735);},_0x285b50['on']('change',this[_0x582a22(0x532)]);}[_0x651e71(0x81a)](){const _0x24b499=_0x651e71;if(this[_0x24b499(0x4ca)]&&this[_0x24b499(0x532)])try{this[_0x24b499(0x4ca)]['off']('change',this[_0x24b499(0x532)]);}catch{}this['_feed']=null,this[_0x24b499(0x532)]=null;}[_0x651e71(0x1ef)](_0x4eb92f,_0x2864ea){const _0x4f7f81=_0x651e71;if(!_0x42c7ac['has'](_0x4eb92f))return;this[_0x4f7f81(0x53f)](_0x4eb92f,_0x2864ea??{});}[_0x651e71(0x55d)](_0x4537cb,_0x3f18fa,_0x49a321){const _0x2de6f6=_0x651e71;if(this[_0x2de6f6(0x283)][_0x2de6f6(0x4fb)]>=this[_0x2de6f6(0x545)])return _0x3f18fa(_0x2de6f6(0x2fe),{'message':_0x2de6f6(0x610),'code':_0x2de6f6(0x2cd)}),()=>{};const _0x195cf2=this[_0x2de6f6(0x3e0)](_0x4537cb),_0x120912={'send':_0x3f18fa,'filter':_0x195cf2,'close':_0x49a321??null};this[_0x2de6f6(0x283)][_0x2de6f6(0x725)](_0x120912);for(const {event:_0x346e87,data:_0x503aab}of this['_buffer']){if(_0x195cf2[_0x2de6f6(0x69d)](_0x346e87))try{_0x3f18fa(_0x346e87,_0x503aab);}catch{}}return()=>this[_0x2de6f6(0x283)][_0x2de6f6(0x243)](_0x120912);}[_0x651e71(0x1b6)](){const _0x2b377d=_0x651e71;if(this[_0x2b377d(0x4ca)])return this[_0x2b377d(0x4ca)];const {OKDBChangefeed:_0x2130ec}=requireOkdbChangefeed(),_0x2919be=new _0x2130ec(this['okdb']);_0x2919be[_0x2b377d(0x4df)](),this['attachFeed'](_0x2919be);if(this[_0x2b377d(0x4f7)]&&!this[_0x2b377d(0x4f7)][_0x2b377d(0x7fe)])this[_0x2b377d(0x4f7)][_0x2b377d(0x7fe)]=_0x2919be;return this[_0x2b377d(0x4ca)];}get[_0x651e71(0x11e)](){const _0x5a9cc6=_0x651e71;return this[_0x5a9cc6(0x283)][_0x5a9cc6(0x4fb)];}[_0x651e71(0x159)](){const _0x1aa075=_0x651e71;return{'connections':this[_0x1aa075(0x11e)],'bufferSize':this['_buffer'][_0x1aa075(0x192)],'attached':this[_0x1aa075(0x285)],'allEvents':_0x57e253[_0x1aa075(0x192)],'defaultEvents':_0x4aeeb7[_0x1aa075(0x192)]};}static get[_0x651e71(0x66a)](){return _0x57e253;}static get[_0x651e71(0x547)](){return _0x4aeeb7;}static get['HIGH_FREQ_EVENTS'](){return[..._0x5af9c5];}[_0x651e71(0x3e0)](_0x381b89){const _0x301527=_0x651e71;if(!_0x381b89||!_0x381b89[_0x301527(0x192)])return new Set(_0x4aeeb7);const _0x2da1fa=_0x381b89['filter'](_0x1020db=>_0x42c7ac[_0x301527(0x69d)](_0x1020db));return new Set(_0x2da1fa['length']?_0x2da1fa:_0x4aeeb7);}[_0x651e71(0x53f)](_0x2ea5f5,_0x94b1cf){const _0x3deb11=_0x651e71,_0x3f505d={..._0x94b1cf,'_ts':_0x94b1cf?.[_0x3deb11(0x560)]??_0x94b1cf?.['ts']??Date[_0x3deb11(0x76a)]()};this[_0x3deb11(0x125)][_0x3deb11(0x46d)]({'event':_0x2ea5f5,'data':_0x3f505d});if(this[_0x3deb11(0x125)]['length']>this[_0x3deb11(0x737)])this['_buffer'][_0x3deb11(0x356)]();for(const _0x445b80 of this['_connections']){if(_0x445b80['filter'][_0x3deb11(0x69d)](_0x2ea5f5))try{_0x445b80[_0x3deb11(0x399)](_0x2ea5f5,_0x3f505d);}catch{}}}}return okdbRelay=_0x496597,okdbRelay;}var hasRequiredLib;function requireLib(){const _0xfaecd0=_0x2d5353;if(hasRequiredLib)return lib[_0xfaecd0(0x613)];return hasRequiredLib=0x1,function(_0x5cf16a){const _0x225529=_0xfaecd0,_0x2eca81=require$$0$6,{load:_0x18d4fe}=require$$1$1,_0x59662c=requireBridge(),_0x24e126=requireWritebatch(),{Pumper:_0x599bd4}=requirePump(),{OKDBEnv:_0x5924c6,HIGH_SENTINEL:_0x458029}=requireEnv(),{reclass:_0x996777,NotImplementedNative:_0xc989f2,OKDBError:_0x3557d7,optionsArg:_0x53bf1c,invalidArgument:_0x2bbe5e}=requireErrors(),{notImplemented:_0x5c68e2}=requireUnsupported(),{OKDBHttp:_0x2c8512}=requireHttp(),{OKDBFts:_0x552848}=requireFts(),{OKDBEmbeddings:_0x3029e6}=requireEmbeddings(),{OKDBAuth:_0x22c1e1}=requireAuth(),{OKDBSync:_0x495aef}=requireSync(),{OKDBMigrate:_0x4cb43f}=requireMigrate(),{OKDBFunctions:_0x3b0284}=requireFunctions(),{OKDBMcp:_0x1f0b42}=requireMcp(),{OKDBEngines:_0x4c006a,OKDBPipelines:_0x5d7443}=requireEngines(),{makeMeta:_0x371de6,makeLicenses:_0xee87e3,makeLicenseChecker:_0x196721,makeProcesses:_0x2ffba7}=requireSys();let _0x5cade8=null;function _0x7f91a2(_0xec5edc){if(!_0x5cade8){const {Unpackr:_0x26bf46}=require$$18;_0x5cade8=new _0x26bf46({'useRecords':![],'mapsAsObjects':!![],'copyBuffers':!![]});}return _0x5cade8['unpack'](_0xec5edc);}let _0x360eab=null;function _0x56399f(_0x4ad7d3,_0x12a1b0){const _0x2b8a03=_0x36a2;if(!_0x360eab){const {Unpackr:_0xe2cd32}=require$$18;_0x360eab=new _0xe2cd32({'copyBuffers':!![]});}return _0x360eab[_0x2b8a03(0x4db)](_0x4ad7d3,_0x12a1b0);}const {encodeKey:_0x4eefe8,KEY_BUF_SIZE:_0x3f46f1,NO_FAST:_0x4a2e97}=requireKeyenc(),_0x360dfc=0x40*0x400,_0xd222cf=0x4*0x400*0x400;function _0x5b437f(_0xa7a499,_0x2092c9){const _0x8e8f76=_0x36a2,_0x22732f=_0xa7a499[0x2],_0x47e008=_0x22732f?(_0xa7a499[_0x8e8f76(0x192)]-0x3)/Math[_0x8e8f76(0x240)](_0x22732f):0x0,_0x180e6e=new Array(_0x47e008);let _0x22be0e=0x3;if(_0x22732f===0x2){for(let _0x165dff=0x0;_0x165dff<_0x47e008;_0x165dff++,_0x22be0e+=0x2)_0x180e6e[_0x165dff]={'key':_0xa7a499[_0x22be0e],'value':_0xa7a499[_0x22be0e+0x1]};}else{if(_0x22732f===0x3){for(let _0x3d50d1=0x0;_0x3d50d1<_0x47e008;_0x3d50d1++,_0x22be0e+=0x3)_0x180e6e[_0x3d50d1]={'key':_0xa7a499[_0x22be0e],'value':_0xa7a499[_0x22be0e+0x1],'version':_0xa7a499[_0x22be0e+0x2]};}else{if(_0x22732f===-0x2){for(let _0x2026ab=0x0;_0x2026ab<_0x47e008;_0x2026ab++,_0x22be0e+=0x2)_0x180e6e[_0x2026ab]={'clock':_0xa7a499[_0x22be0e],..._0xa7a499[_0x22be0e+0x1]};}else{if(_0x22732f===0x4){for(let _0x17614f=0x0;_0x17614f<_0x47e008;_0x17614f++,_0x22be0e+=0x4)_0x180e6e[_0x17614f]={'key':_0xa7a499[_0x22be0e],'value':_0xa7a499[_0x22be0e+0x1],'version':_0xa7a499[_0x22be0e+0x2],'indexKey':_0xa7a499[_0x22be0e+0x3]};}else{if(_0x47e008)throw new Error(_0x8e8f76(0x2e2)+_0x22732f);}}}}return _0x2092c9?[_0xa7a499[0x0],_0x180e6e,_0xa7a499[0x1]]:_0x180e6e;}let _0x8afa1=null;function _0x55a549(_0x3539ab,_0x17b818,_0xaa0c85){const _0x39ef6e=_0x36a2;if(!_0x8afa1)_0x8afa1=requireDist()['readKey'];const _0x504f1c=new DataView(_0x3539ab[_0x39ef6e(0x2c6)],_0x3539ab['byteOffset'],_0x17b818),_0xe60533=_0x504f1c['getUint32'](0x10,!![]),_0x3c6118=new Array(_0xe60533);let _0xf895b=0x14;for(let _0x49fff9=0x0;_0x49fff9<_0xe60533;_0x49fff9++){const _0x5340de=_0x3539ab[_0xf895b]|_0x3539ab[_0xf895b+0x1]<<0x8;_0xf895b+=0x2,_0x3c6118[_0x49fff9]=_0x8afa1(_0x3539ab,_0xf895b,_0xf895b+_0x5340de),_0xf895b+=_0x5340de;}return _0xaa0c85?[_0x504f1c[_0x39ef6e(0x2ac)](0x0,!![]),_0x3c6118,_0x504f1c[_0x39ef6e(0x2ac)](0x8,!![])]:_0x3c6118;}const _0x2a5b58=requireOkdbLogger(),_0x71351=requireOkdbPlugins(),{OKDB_STATE:_0x3fda88,EVENTS:_0x239e30}=requireOkdbEnums(),_0x185869=requireStatics();let _0x55c1c1=null,_0x3c887a=![],_0x2e1441=0x1;const _0x5678fd=new Map(),_0x2aa026=new Set([_0x225529(0x871),_0x225529(0x2dc)]),_0x135527=_0x2c34ea=>!!_0x2c34ea&&_0x2aa026[_0x225529(0x69d)](_0x2c34ea[_0x225529(0x316)]),_0x53120a=Number(process.env.OKDB_PENDING_RETRY_MS)>0x0?Number(process.env.OKDB_PENDING_RETRY_MS):0x1d4c0;function _0x1e8ed7(){const _0x19f6df=_0x225529;!_0x3c887a&&(_0x176e58()['setBridge'](_0x59662c[_0x19f6df(0x31d)]),_0x24e126['install'](_0x176e58()),_0x3c887a=!![]);}function _0x176e58(){if(!_0x55c1c1)_0x55c1c1=_0x18d4fe();return _0x55c1c1;}class _0x535b16 extends Map{constructor(_0x477d3d){const _0x212251=_0x225529;super(),this[_0x212251(0x65e)]=_0x477d3d;}[_0x225529(0x5e8)](){const _0x5c6aa6=_0x225529,_0x45f4a5=this['_db'];if(!_0x45f4a5[_0x5c6aa6(0x67d)])return;let _0x59c9de;try{_0x59c9de=_0x45f4a5[_0x5c6aa6(0x24a)]('db',null,_0x5c6aa6(0x43b),[],![]);}catch{return;}for(const _0x38352a of _0x59c9de)if(!super[_0x5c6aa6(0x69d)](_0x38352a)&&_0x45f4a5[_0x5c6aa6(0x24a)]('db',null,_0x5c6aa6(0x15a),[_0x38352a],![]))_0x45f4a5['_ensureEnv'](_0x38352a);}[_0x225529(0x6ce)](_0x54c2de){const _0x324adb=_0x225529,_0x4e0ea8=super[_0x324adb(0x6ce)](_0x54c2de);if(_0x4e0ea8!==undefined||typeof _0x54c2de!==_0x324adb(0x84a))return _0x4e0ea8;const _0x1e3159=this['_db'];if(_0x54c2de===_0x324adb(0x2a0))return _0x1e3159[_0x324adb(0x67d)]?_0x1e3159[_0x324adb(0x1ea)][_0x324adb(0x144)]??undefined:undefined;if(_0x1e3159[_0x324adb(0x67d)]&&_0x1e3159['_call']('db',null,_0x324adb(0x15a),[_0x54c2de],![]))return _0x1e3159[_0x324adb(0x1c2)](_0x54c2de);if(_0x1e3159['_isOpen']&&typeof _0x54c2de===_0x324adb(0x84a)&&!_0x54c2de[_0x324adb(0x48b)]('~')){_0x1e3159[_0x324adb(0x24a)]('db',null,_0x324adb(0x3d1),[],![]);if(_0x1e3159['_call']('db',null,_0x324adb(0x15a),[_0x54c2de],![]))return _0x1e3159[_0x324adb(0x1c2)](_0x54c2de);}return undefined;}[_0x225529(0x69d)](_0x1eadb7){const _0xb3c612=_0x225529;return this[_0xb3c612(0x6ce)](_0x1eadb7)!==undefined;}get['size'](){const _0x33018d=_0x225529;return this['_sync'](),super[_0x33018d(0x4fb)];}[_0x225529(0x50d)](){const _0x1a1d1d=_0x225529;return this[_0x1a1d1d(0x5e8)](),super['keys']();}[_0x225529(0x514)](){const _0x4258d5=_0x225529;return this['_sync'](),super[_0x4258d5(0x514)]();}[_0x225529(0x45b)](){const _0x11502d=_0x225529;return this['_sync'](),super[_0x11502d(0x45b)]();}['forEach'](_0xb34281,_0x28974c){const _0x4b58a3=_0x225529;return this[_0x4b58a3(0x5e8)](),super[_0x4b58a3(0x524)](_0xb34281,_0x28974c);}[Symbol['iterator']](){const _0x1245e2=_0x225529;return this[_0x1245e2(0x5e8)](),super[Symbol[_0x1245e2(0x1f2)]]();}}class _0x20abc6{constructor(_0x2d17d0,_0x83184d={}){const _0x2e39bf=_0x225529,_0x55e58e=_0x176e58();this[_0x2e39bf(0x733)]=_0x2d17d0,this[_0x2e39bf(0x79b)]=_0x2e1441++,this[_0x2e39bf(0x4b1)]='db'+this['_uid'],this[_0x2e39bf(0x4c0)]={..._0x185869['defaults'],..._0x83184d,'auth':_0x83184d['auth']?{..._0x83184d['auth']}:undefined,'lmdb':{..._0x83184d['lmdb']||{}}},this['events']=new _0x2eca81(),this['events'][_0x2e39bf(0x2bd)](0x0),this[_0x2e39bf(0x1fb)]=new Set(),this[_0x2e39bf(0x5d6)]['on']('newListener',_0x3c96a7=>this[_0x2e39bf(0x389)](_0x3c96a7)),this[_0x2e39bf(0x71e)]=new _0x2a5b58(this),this['log'][_0x2e39bf(0x1f9)](),_0x59662c[_0x2e39bf(0x694)](this[_0x2e39bf(0x4b1)],{'_deliver':(_0x185193,_0x16ce2b)=>this[_0x2e39bf(0x626)](_0x185193,_0x16ce2b),'_log':_0x23e194=>{const _0x2cdd05=_0x2e39bf;if(this[_0x2cdd05(0x662)])this[_0x2cdd05(0x662)][_0x2cdd05(0x46d)](_0x23e194);const _0x491910=_0x23e194&&_0x23e194[_0x2cdd05(0x6dd)];if(_0x491910&&Object[_0x2cdd05(0x771)][_0x2cdd05(0x5b6)]['call'](this[_0x2cdd05(0x71e)],_0x491910)&&typeof this[_0x2cdd05(0x71e)][_0x491910]==='function'){const _0x1e0dfe=_0x23e194[_0x2cdd05(0x3ce)];return this[_0x2cdd05(0x71e)][_0x491910](_0x23e194['msg'],{..._0x23e194[_0x2cdd05(0x360)]||{},..._0x1e0dfe&&typeof _0x1e0dfe==='object'?_0x1e0dfe:{}});}return this[_0x2cdd05(0x71e)][_0x2cdd05(0x297)](_0x23e194);}}),_0x1e8ed7();try{const _0x5c3d48={};if(typeof _0x2e39bf(0x77b)===_0x2e39bf(0x364)||_0x2e39bf(0x77b)!==_0x2e39bf(0x77b));const _0x50e976={..._0x83184d,'_clusterWorker':require(_0x2e39bf(0x29e))[_0x2e39bf(0x591)],..._0x5c3d48};this[_0x2e39bf(0x15d)]={'instance':null,'envs':new Map()};typeof _0x83184d[_0x2e39bf(0x4ee)]===_0x2e39bf(0x3b3)&&(this[_0x2e39bf(0x15d)][_0x2e39bf(0x699)]=_0x83184d['encryptionKey'],delete _0x50e976[_0x2e39bf(0x4ee)]);if(_0x83184d[_0x2e39bf(0x7c7)]&&typeof _0x83184d[_0x2e39bf(0x7c7)]===_0x2e39bf(0x712)){for(const [_0x43b85e,_0x48f05e]of Object[_0x2e39bf(0x45b)](_0x83184d[_0x2e39bf(0x7c7)]))this['_keyFns']['envs'][_0x2e39bf(0x7a0)](_0x43b85e,_0x48f05e);}delete _0x50e976[_0x2e39bf(0x7c7)],this['_native']=new _0x55e58e['Native'](_0x2d17d0,_0x50e976,this[_0x2e39bf(0x4b1)]);}catch(_0x1a1d3f){_0x59662c[_0x2e39bf(0x2c2)](this[_0x2e39bf(0x4b1)]);throw _0x996777(_0x1a1d3f);}this[_0x2e39bf(0x76c)]=_0x3fda88[_0x2e39bf(0x392)],this['_isOpen']=![],this['_envs']=new _0x535b16(this),this[_0x2e39bf(0x176)]=new _0x599bd4({'pump':()=>this[_0x2e39bf(0x38a)][_0x2e39bf(0x2c7)]()}),this['_wb']=new _0x24e126[(_0x2e39bf(0x4d5))](this),this['_pumper']['afterTurn']=()=>_0x59662c[_0x2e39bf(0x3e6)](),_0x59662c[_0x2e39bf(0x5bf)](()=>this[_0x2e39bf(0x176)][_0x2e39bf(0x42a)](),this),_0x5678fd['set'](this[_0x2e39bf(0x79b)],this),this['_features']={},_0x59662c[_0x2e39bf(0x4f2)](this),this[_0x2e39bf(0x6ef)]=new _0x552848(this),this[_0x2e39bf(0x6ed)]=new _0x3029e6(this),this[_0x2e39bf(0x617)]=new _0x4c006a(this,null,null),this[_0x2e39bf(0x3ca)]=new _0x5d7443(this,null),this['meta']=_0x371de6(this),this[_0x2e39bf(0x6b8)]=_0xee87e3(this),this[_0x2e39bf(0x825)]=_0x196721(this),this[_0x2e39bf(0x1ea)]=_0x2ffba7(this),this[_0x2e39bf(0x23a)]=_0x1ca5b8(this),this['plugins']=new _0x71351(this),this[_0x2e39bf(0x3af)]=new _0x2c8512(this),this['sync']=new _0x495aef(this),this[_0x2e39bf(0x13d)]=new _0x22c1e1(this),this[_0x2e39bf(0x792)]=new _0x3b0284(this,null),this[_0x2e39bf(0x32d)]=new _0x1f0b42(this),this[_0x2e39bf(0x37a)]=_0x83184d&&_0x83184d[_0x2e39bf(0x37a)]===![]?null:_0x5c68e2(_0x2e39bf(0x37a)),this['api']=_0x5c68e2('api'),this[_0x2e39bf(0x18b)]=new _0x4cb43f(this);}[_0x225529(0x24a)](_0x532048,_0x47334d,_0x52cc75,_0x5e6e27,_0x30d6ec=!![]){const _0x3f6a47=_0x225529;if(_0x30d6ec&&this[_0x3f6a47(0x61c)]&&this[_0x3f6a47(0x61c)]['queue'][_0x3f6a47(0x192)])this[_0x3f6a47(0x61c)]['commit']();try{return this['_native'][_0x3f6a47(0x245)](_0x532048,_0x47334d,_0x52cc75,_0x5e6e27);}catch(_0x4a4a9f){throw _0x996777(_0x4a4a9f);}finally{if(_0x30d6ec)this[_0x3f6a47(0x176)][_0x3f6a47(0x42a)]();}}[_0x225529(0x799)](_0x1635ab,_0x25e50b,_0x517af8,_0x511b06){const _0x24dc6b=_0x225529;let _0x45bf4a;try{_0x45bf4a=this[_0x24dc6b(0x38a)]['callPacked'](_0x1635ab,_0x25e50b,_0x517af8,_0x511b06);}catch(_0x113faa){throw _0x996777(_0x113faa);}return _0x45bf4a instanceof Uint8Array?_0x7f91a2(_0x45bf4a):_0x45bf4a[0x0];}['_readBuf'](_0x1e46d2){const _0x2b5936=_0x225529;let _0x18f2e0=this[_0x2b5936(0x1c6)];if(_0x18f2e0&&_0x1e46d2<=_0x18f2e0[_0x2b5936(0x192)])return _0x18f2e0;let _0x27bfb1=_0x18f2e0?_0x18f2e0[_0x2b5936(0x192)]:_0x360dfc;while(_0x27bfb1<_0x1e46d2)_0x27bfb1*=0x2;if(_0x27bfb1>_0xd222cf)return _0x18f2e0;return _0x18f2e0=this[_0x2b5936(0x1c6)]=Buffer[_0x2b5936(0x623)](_0x27bfb1),this[_0x2b5936(0x38a)][_0x2b5936(0x4fe)](_0x18f2e0),_0x18f2e0;}[_0x225529(0x666)](_0x11aac9,_0x31a7d3,_0x36965c){const _0x1f9b2c=_0x225529;if(!this['_rbuf'])this[_0x1f9b2c(0x4a4)](0x0);const _0x5d8ddf=this[_0x1f9b2c(0x38a)][_0x1f9b2c(0x38e)](_0x11aac9,_0x31a7d3,_0x36965c);if(typeof _0x5d8ddf===_0x1f9b2c(0x859))return _0x56399f(this[_0x1f9b2c(0x1c6)],_0x5d8ddf);if(_0x5d8ddf===undefined||_0x5d8ddf===null)return _0x5d8ddf;return this[_0x1f9b2c(0x4a4)](_0x5d8ddf['length']),_0x56399f(_0x5d8ddf);}[_0x225529(0x596)](_0x2b1a74,_0x5e639e,_0x3a47c9){const _0x3997fa=_0x225529;let _0xc78bbf=this[_0x3997fa(0x54e)];if(!_0xc78bbf){_0xc78bbf=this['_kbuf']=Buffer['allocUnsafeSlow'](_0x3f46f1),this['_native'][_0x3997fa(0x228)](_0xc78bbf),this[_0x3997fa(0x719)]=new Map();if(!this[_0x3997fa(0x1c6)])this[_0x3997fa(0x4a4)](0x0);}const _0x393ca6=_0x4eefe8(_0x3a47c9,_0xc78bbf);if(_0x393ca6<0x0)return _0x4a2e97;let _0x52917a=this[_0x3997fa(0x719)][_0x3997fa(0x6ce)](_0x2b1a74);if(_0x52917a===undefined)this[_0x3997fa(0x719)][_0x3997fa(0x7a0)](_0x2b1a74,_0x52917a=new Map());let _0x4da6e5=_0x52917a['get'](_0x5e639e);if(_0x4da6e5===undefined)_0x52917a[_0x3997fa(0x7a0)](_0x5e639e,_0x4da6e5=this[_0x3997fa(0x38a)][_0x3997fa(0x82e)](_0x2b1a74,_0x5e639e));if(_0x4da6e5<0x0)return _0x4a2e97;const _0x183840=this[_0x3997fa(0x38a)][_0x3997fa(0x1b1)](_0x4da6e5,_0x393ca6);if(typeof _0x183840===_0x3997fa(0x859))return _0x56399f(this[_0x3997fa(0x1c6)],_0x183840);if(_0x183840===undefined||_0x183840===null)return _0x183840;return this['_readBuf'](_0x183840['length']),_0x56399f(_0x183840);}['_callRows'](_0x17d528,_0x1d2b82,_0x493f3d){const _0x1ee4be=_0x225529;if(!this[_0x1ee4be(0x1c6)])this['_readBuf'](0x0);let _0x1041cf;try{_0x1041cf=this[_0x1ee4be(0x38a)]['callRows'](_0x17d528,_0x1d2b82,_0x493f3d);}catch(_0x437f85){throw _0x996777(_0x437f85);}const _0x92d12c=_0x1d2b82===_0x1ee4be(0x436),_0x243968=_0x92d12c?_0x493f3d[0x1]:_0x1d2b82;let _0x4b9cd4=this[_0x1ee4be(0x1c6)],_0x2995fb=_0x1041cf;if(_0x1041cf instanceof Uint8Array)this[_0x1ee4be(0x4a4)](_0x1041cf['length']),_0x4b9cd4=_0x1041cf,_0x2995fb=_0x1041cf[_0x1ee4be(0x192)];else{if(typeof _0x1041cf!=='number')return _0x1041cf[0x0];}if(_0x243968===_0x1ee4be(0x462))return _0x55a549(_0x4b9cd4,_0x2995fb,_0x92d12c);if(_0x243968==='getMany')return _0x56399f(_0x4b9cd4,_0x2995fb);return _0x5b437f(_0x56399f(_0x4b9cd4,_0x2995fb),_0x92d12c);}['_callMacro'](_0x2a8b23,_0x179224,_0x37158e,_0x1acd3f,_0x230693=!![],_0x128a07=!![]){const _0x111cd0=_0x225529,_0xb5695e=()=>this['_macro'](()=>this[_0x111cd0(0x24a)](_0x2a8b23,_0x179224,_0x37158e,_0x1acd3f,_0x230693));if(!_0x128a07)return _0xb5695e();return this['_retryPending'](_0xb5695e);}[_0x225529(0x7ef)](_0x240a90){return _0x240a90()['catch'](async _0xfe2eb0=>{const _0x28d7b7=_0x36a2;if(!_0x135527(_0xfe2eb0))throw _0xfe2eb0;const _0x47f99a=Date[_0x28d7b7(0x76a)]()+_0x53120a;let _0x2704c2=0x1;while(_0x135527(_0xfe2eb0)&&Date[_0x28d7b7(0x76a)]()<_0x47f99a){await new Promise(_0x8b5392=>setTimeout(_0x8b5392,_0x2704c2)),_0x2704c2=Math['min'](_0x2704c2*0x2,0x14);try{return await _0x240a90();}catch(_0x2f0be7){_0xfe2eb0=_0x2f0be7;}}throw _0xfe2eb0;});}[_0x225529(0x369)](_0xe1ab46){const _0x21bf64=_0x225529;if(_0x59662c[_0x21bf64(0x211)]())return Promise[_0x21bf64(0x794)](_0xe1ab46);return new Promise(_0x185e06=>setImmediate(()=>_0x185e06(_0xe1ab46)));}[_0x225529(0x664)](_0x59c131){const _0x4fd63c=_0x225529;if(_0x59662c[_0x4fd63c(0x211)]())return Promise[_0x4fd63c(0x794)](_0x59c131);return this[_0x4fd63c(0x409)]()[_0x4fd63c(0x600)](()=>_0x59c131);}[_0x225529(0x409)](){return new Promise(_0x11ba89=>setImmediate(()=>{const _0x43a934=_0x36a2;let _0x275898;try{_0x275898=this[_0x43a934(0x38a)][_0x43a934(0x1c8)]();}catch{return _0x11ba89();}_0x24e126[_0x43a934(0x7d7)](_0x275898,_0x11ba89);}));}['_macro'](_0x22c291){return new Promise((_0x3fce86,_0x3181b7)=>setImmediate(()=>{try{_0x3fce86(_0x22c291());}catch(_0x2f8dfa){_0x3181b7(_0x2f8dfa);}}));}[_0x225529(0x701)](_0xa44b31,_0x1cff11,_0x5f00e8){return _0x165880(_0xa44b31,_0x1cff11,_0x5f00e8);}['_subscribeEvent'](_0x513580){const _0x196a0a=_0x225529;if(typeof _0x513580!==_0x196a0a(0x84a)||this['_subscribed'][_0x196a0a(0x69d)](_0x513580)||_0x513580===_0x196a0a(0x1e7)||_0x513580===_0x196a0a(0x6c1))return;this[_0x196a0a(0x1fb)]['add'](_0x513580);try{this[_0x196a0a(0x38a)][_0x196a0a(0x245)]('events',null,_0x196a0a(0x55d),[this[_0x196a0a(0x4b1)],_0x513580]);}catch{}}[_0x225529(0x626)](_0x4b37d7,_0x58cab4){this['events']['emit'](_0x4b37d7,_0x58cab4);}async[_0x225529(0x629)](){const _0x2829e1=_0x225529,_0x43b7ae=this[_0x2829e1(0x15d)];if(_0x43b7ae[_0x2829e1(0x699)])this[_0x2829e1(0x473)](null,await _0x43b7ae[_0x2829e1(0x699)](null),!![]);for(const [_0x5bae2e,_0x43e4f0]of _0x43b7ae[_0x2829e1(0x497)])this[_0x2829e1(0x473)](_0x5bae2e,typeof _0x43e4f0===_0x2829e1(0x3b3)?await _0x43e4f0(_0x5bae2e):_0x43e4f0,typeof _0x43e4f0==='function');(_0x43b7ae[_0x2829e1(0x699)]||[..._0x43b7ae[_0x2829e1(0x497)][_0x2829e1(0x514)]()][_0x2829e1(0x454)](_0x1ba349=>typeof _0x1ba349==='function'))&&!this[_0x2829e1(0x289)]&&(this[_0x2829e1(0x289)]=_0x456f97=>{const _0x38a62d=_0x2829e1,_0x34b7bb=_0x456f97&&_0x456f97[_0x38a62d(0x784)]!=null?_0x456f97[_0x38a62d(0x784)]:null,_0x5a2a9b=_0x34b7bb==null?_0x43b7ae[_0x38a62d(0x699)]:_0x43b7ae[_0x38a62d(0x497)][_0x38a62d(0x6ce)](_0x34b7bb);if(typeof _0x5a2a9b!=='function')return;Promise[_0x38a62d(0x794)]()[_0x38a62d(0x600)](()=>_0x5a2a9b(_0x34b7bb))[_0x38a62d(0x600)](_0x46da0b=>this[_0x38a62d(0x473)](_0x34b7bb,_0x46da0b,!![]))[_0x38a62d(0x512)](_0x5ede6a=>this['log'][_0x38a62d(0x5b4)](_0x38a62d(0x565)+(_0x5ede6a&&_0x5ede6a[_0x38a62d(0x367)]),{'env':_0x34b7bb}));},this[_0x2829e1(0x5d6)]['on'](_0x2829e1(0x167),this[_0x2829e1(0x289)]));}[_0x225529(0x473)](_0x583adf,_0x260a0a,_0x12f069){const _0x37f201=_0x225529;if(_0x260a0a==null)throw new _0x3557d7(_0x37f201(0x5cb)+(_0x583adf?_0x37f201(0x5b9)+_0x583adf+'\x22':'')+_0x37f201(0x491),_0x37f201(0x1c9));this[_0x37f201(0x38a)][_0x37f201(0x245)]('db',null,_0x37f201(0x833),[_0x583adf,_0x260a0a,!!_0x12f069]);}async[_0x225529(0x3b9)](_0x42d2ae){const _0x55bb23=_0x225529;this['_assertOpen']();const {env:env=null,to:_0x56d0bf}=_0x53bf1c(_0x42d2ae),_0x4d173a=typeof _0x56d0bf===_0x55bb23(0x3b3),_0x4eb844=_0x4d173a?await _0x56d0bf(env):_0x56d0bf;if(_0x4eb844==null)throw _0x2bbe5e('changeEncryptionKey:\x20to',_0x55bb23(0x4c7),_0x4eb844);const _0x2661b9=this[_0x55bb23(0x24a)]('db',null,'changeEncryptionKey',[env,_0x4eb844,_0x4d173a]);if(_0x4d173a){if(env==null)this['_keyFns'][_0x55bb23(0x699)]=_0x56d0bf;else this[_0x55bb23(0x15d)]['envs'][_0x55bb23(0x7a0)](env,_0x56d0bf);}return _0x2661b9;}async['reencrypt'](_0xf7b619){const _0x3ae817=_0x225529;this[_0x3ae817(0x23b)]();const _0x991fc6=_0x53bf1c(_0xf7b619);if(!_0x991fc6[_0x3ae817(0x784)])throw _0x2bbe5e(_0x3ae817(0x83b),'an\x20environment\x20name',_0x991fc6['env']);let _0x4e0d1f=_0x991fc6['to'];const _0x6d046c=typeof _0x4e0d1f===_0x3ae817(0x3b3);if(_0x6d046c)_0x4e0d1f=await _0x991fc6['to'](_0x991fc6[_0x3ae817(0x784)]);const _0x59699b=await this[_0x3ae817(0x45c)](()=>this[_0x3ae817(0x24a)]('db',null,_0x3ae817(0x3b0),[_0x991fc6[_0x3ae817(0x784)],'to'in _0x991fc6?_0x4e0d1f:undefined,_0x6d046c]));if(_0x6d046c)this['_keyFns']['envs'][_0x3ae817(0x7a0)](_0x991fc6[_0x3ae817(0x784)],_0x991fc6['to']);return _0x59699b;}async['open'](){const _0x380a86=_0x225529;if(this[_0x380a86(0x76c)]===_0x3fda88[_0x380a86(0x7c9)])return;if(this[_0x380a86(0x76c)]!==_0x3fda88[_0x380a86(0x392)])throw new _0x3557d7(_0x380a86(0x873),_0x380a86(0x1be),{'state':this['state']});this[_0x380a86(0x76c)]=_0x3fda88[_0x380a86(0x178)],this[_0x380a86(0x662)]=[];try{try{await this['_resolveKeys'](),await this[_0x380a86(0x45c)](()=>this['_native'][_0x380a86(0x223)]());}catch(_0x26d4ac){throw _0x996777(_0x26d4ac);}}catch(_0x2e3805){this[_0x380a86(0x76c)]=_0x3fda88[_0x380a86(0x7b6)],this['_bootLog']=null,this[_0x380a86(0x54c)]();throw _0x2e3805;}this['_isOpen']=!![],this['state']=_0x3fda88['STARTED'];try{this[_0x380a86(0x24a)]('db',null,_0x380a86(0x2a8),[this['plugins'][_0x380a86(0x37f)][_0x380a86(0x4e8)](_0x1682d8=>_0x1682d8[_0x380a86(0x455)]?.[_0x380a86(0x425)])[_0x380a86(0x440)](Boolean)],![]),await this[_0x380a86(0x2b1)][_0x380a86(0x4df)]();}catch(_0x5f179a){this[_0x380a86(0x76c)]=_0x3fda88[_0x380a86(0x351)];try{this[_0x380a86(0x38a)][_0x380a86(0x182)]();}catch{}this[_0x380a86(0x76c)]=_0x3fda88[_0x380a86(0x7b6)],this[_0x380a86(0x67d)]=![],this[_0x380a86(0x54c)]();throw _0x5f179a;}for(const _0x4113f8 of this['_call']('db',null,_0x380a86(0x43b),[],![]))if(!_0x4113f8[_0x380a86(0x48b)]('~'))this[_0x380a86(0x1c2)](_0x4113f8);try{if(this['_call']('db',null,_0x380a86(0x15a),[_0x380a86(0x1f1)],![])){this[_0x380a86(0x494)]=this[_0x380a86(0x1c2)]('~log');const _0x6a16e2=new Set(this[_0x380a86(0x71e)]['_sinks']);this['_detachLogSink']=this[_0x380a86(0x71e)][_0x380a86(0x257)](this[_0x380a86(0x494)],this['id']);const _0x2a6b0d=[...this[_0x380a86(0x71e)][_0x380a86(0x309)]][_0x380a86(0x472)](_0x2ec800=>!_0x6a16e2[_0x380a86(0x69d)](_0x2ec800)),_0x204720=this[_0x380a86(0x24a)]('db',null,_0x380a86(0x2f7),[],![]);for(const _0x2affb7 of(this['_bootLog']??[])[_0x380a86(0x6fe)](_0x204720))_0x2a6b0d?.(_0x2affb7);}}catch{}this[_0x380a86(0x662)]=null,this['_native'][_0x380a86(0x74c)](()=>this['_pumper'][_0x380a86(0x42a)]()),this[_0x380a86(0x176)]['start']();}get[_0x225529(0x42d)](){const _0x392208=()=>{const _0x14da95=_0x36a2;if(!this[_0x14da95(0x67d)])return![];for(const _0x319e17 of this[_0x14da95(0x24a)]('db',null,_0x14da95(0x43b),[],![])){if(!_0x319e17[_0x14da95(0x48b)]('~')&&this['_call'](_0x14da95(0x555),_0x319e17,_0x14da95(0x276),[],![]))return!![];}return![];};return((async()=>{const _0xf78929=_0x36a2;while(_0x392208())await this['_pumper'][_0xf78929(0x7f9)](0xfa);})());}async['bootRuntimeDeclarations'](){const _0x40a3a9=_0x225529;return this[_0x40a3a9(0x67a)]('db',null,_0x40a3a9(0x5f5),[]);}async[_0x225529(0x182)](){const _0x41ff8f=_0x225529;if(this['state']===_0x3fda88['STOPPED'])return;if(this[_0x41ff8f(0x76c)]!==_0x3fda88['STARTED'])throw new _0x3557d7(_0x41ff8f(0x63d),_0x41ff8f(0x1be),{'state':this[_0x41ff8f(0x76c)]});this[_0x41ff8f(0x76c)]=_0x3fda88['STOPPING'],this['_isOpen']=![];let _0x137bf0=null;if(this[_0x41ff8f(0x3af)][_0x41ff8f(0x85b)]['length'])try{await this[_0x41ff8f(0x3af)][_0x41ff8f(0x182)]();}catch(_0x436438){_0x137bf0=_0x436438;}if(this['__adminRelay']){try{this[_0x41ff8f(0x27e)][_0x41ff8f(0x81a)](),this[_0x41ff8f(0x27e)]['detach']();}catch{}this[_0x41ff8f(0x27e)]=null;}try{this['_changefeed']?.['stop']?.();}catch{}try{await this[_0x41ff8f(0x2b1)][_0x41ff8f(0x32a)]();}catch(_0x360f45){_0x137bf0=_0x360f45;}for(const _0xb6bff0 of[...Map['prototype'][_0x41ff8f(0x514)][_0x41ff8f(0x245)](this['_envs'])]){try{await _0xb6bff0['processor'][_0x41ff8f(0x570)]();}catch{}try{await _0xb6bff0[_0x41ff8f(0x617)][_0x41ff8f(0x32a)]();}catch{}}for(const _0x3c4a79 of[()=>this['sync'][_0x41ff8f(0x32a)](),()=>this['embeddings'][_0x41ff8f(0x32a)](),()=>this[_0x41ff8f(0x6ef)]&&this['fts'][_0x41ff8f(0x32a)]?.()]){try{await _0x3c4a79();}catch{}}const _0x575c35=this['options'][_0x41ff8f(0x5c9)]??0x7530,_0xeaf6ab=[];for(const _0x52402 of[...Map[_0x41ff8f(0x771)][_0x41ff8f(0x514)][_0x41ff8f(0x245)](this['_envs'])]){if(_0x52402[_0x41ff8f(0x72c)]?.[_0x41ff8f(0x80a)]?.['size']>0x0)_0xeaf6ab[_0x41ff8f(0x46d)](_0x52402[_0x41ff8f(0x72c)]['stopAll'](_0x575c35));}if(_0xeaf6ab[_0x41ff8f(0x192)]>0x0)await Promise[_0x41ff8f(0x373)](_0xeaf6ab);try{this[_0x41ff8f(0x4d8)]?.();}catch{}this[_0x41ff8f(0x4d8)]=null;try{await this[_0x41ff8f(0x61c)][_0x41ff8f(0x7da)]();}catch{}this[_0x41ff8f(0x176)][_0x41ff8f(0x32a)]();try{await this['_macro'](()=>this[_0x41ff8f(0x38a)][_0x41ff8f(0x182)]());}catch(_0x29d537){_0x137bf0=_0x137bf0||_0x996777(_0x29d537);}this[_0x41ff8f(0x76c)]=_0x3fda88['STOPPED'],this[_0x41ff8f(0x54c)](),Map[_0x41ff8f(0x771)][_0x41ff8f(0x530)][_0x41ff8f(0x245)](this[_0x41ff8f(0x3e2)]);if(_0x137bf0)throw _0x137bf0;}[_0x225529(0x54c)](){const _0x335fd4=_0x225529;this[_0x335fd4(0x176)][_0x335fd4(0x32a)]();try{this[_0x335fd4(0x38a)][_0x335fd4(0x74c)](null);}catch{}try{this[_0x335fd4(0x38a)][_0x335fd4(0x7fb)]();}catch{}this['_rbuf']=null,this[_0x335fd4(0x54e)]=null,this[_0x335fd4(0x719)]=null,_0x59662c[_0x335fd4(0x2c2)](this[_0x335fd4(0x4b1)]),_0x59662c[_0x335fd4(0x578)](this),_0x5678fd[_0x335fd4(0x243)](this[_0x335fd4(0x79b)]);if(_0x59662c[_0x335fd4(0x6cc)](this)){const _0x4a72ee=[..._0x5678fd[_0x335fd4(0x514)]()]['pop']();if(_0x4a72ee)_0x59662c[_0x335fd4(0x5bf)](()=>_0x4a72ee[_0x335fd4(0x176)]['wake'](),_0x4a72ee);else _0x59662c[_0x335fd4(0x5bf)](()=>{},null);}}get['id'](){const _0x1b7e88=_0x225529;return this[_0x1b7e88(0x24a)]('db',null,'id',[],![]);}['_advanceHlcOnRecv'](_0x48e36b){const _0x4b6e3c=_0x225529;return this[_0x4b6e3c(0x784)](_0x4b6e3c(0x634))['_advanceHlcOnRecv'](_0x48e36b);}get[_0x225529(0x75a)](){const _0x582672=_0x225529;return this[_0x582672(0x200)][_0x582672(0x6ce)](_0x582672(0x5a9));}get['_nodePrivateKey'](){const _0x95f942=_0x225529;return this[_0x95f942(0x2a2)][_0x95f942(0x134)];}get[_0x225529(0x34a)](){const _0x5d4861=_0x225529;return this[_0x5d4861(0x2a2)][_0x5d4861(0x34a)];}get[_0x225529(0x67b)](){const _0xa84fa6=_0x225529;if(!this[_0xa84fa6(0x67d)]||!this[_0xa84fa6(0x24a)]('db',null,_0xa84fa6(0x463),[],![]))return undefined;if(!this['_subsV2Obj']){const _0x6835b2=requireOkdbSubscriptionsStore(),_0x23f018=new _0x6835b2(this,this['options']&&this[_0xa84fa6(0x4c0)]['subscriptions']);_0x23f018[_0xa84fa6(0x1b4)]=this['env'](_0xa84fa6(0x2d6));const {compileFilter:_0x1b769a}=requireOkdbQueryFilter(),_0x3797d9=(_0x505209,_0x1ece1a)=>{if(_0x505209==null)return![];try{return _0x1b769a(_0x505209)(_0x1ece1a);}catch{return![];}};this[_0xa84fa6(0x2b3)]={'store':_0x23f018,'router':{'_matches':_0x3797d9}};}return this['_subsV2Obj'];}get[_0x225529(0x5c2)](){return this['role'];}get[_0x225529(0x594)](){const _0x128732=_0x225529;return this[_0x128732(0x24a)]('db',null,_0x128732(0x594),[],![]);}get[_0x225529(0x44e)](){const _0x2b7d59=_0x225529;return{...this[_0x2b7d59(0x24a)]('db',null,_0x2b7d59(0x44e),[],![])};}get[_0x225529(0x779)](){return require$$29['version'];}get[_0x225529(0x3fe)](){const _0x4a60d8=_0x225529;return this[_0x4a60d8(0x24a)]('db',null,'quarantined',[],![]);}get[_0x225529(0x758)](){const _0x2f8f70=_0x225529;return this[_0x2f8f70(0x24a)]('db',null,_0x2f8f70(0x758),[],![]);}[_0x225529(0x3e5)](){const _0x1949cd=_0x225529;return this['_call']('db',null,_0x1949cd(0x5b5),[],![]);}[_0x225529(0x510)](){const _0x1c2de7=_0x225529;return this[_0x1c2de7(0x24a)]('db',null,_0x1c2de7(0x510),[],![]);}async[_0x225529(0x6db)](_0x1e7e21){const _0x5422e4=_0x225529;this[_0x5422e4(0x23b)](),this[_0x5422e4(0x24a)]('db',null,'setProcessingConfig',[_0x1e7e21],![]);}['pressure'](){const _0x34231e=_0x225529,_0xf1e969=Date['now']();if(this['_pressure']&&_0xf1e969-this['_pressure']['at']<0xfa)return this['_pressure'][_0x34231e(0x821)];const _0x132677=this[_0x34231e(0x24a)]('db',null,_0x34231e(0x7c5),[],![]);return this['_pressure']={'at':_0xf1e969,'value':_0x132677},_0x132677;}['_assertOpen'](){const _0x424217=_0x225529;if(!this[_0x424217(0x67d)])throw new _0x3557d7('Database\x20not\x20started',_0x424217(0x1be),{'state':this[_0x424217(0x76c)]});}get['bus'](){const _0x829b93=_0x225529;if(this[_0x829b93(0x76c)]===_0x3fda88[_0x829b93(0x7b6)]||!this[_0x829b93(0x67d)])return null;if(this[_0x829b93(0x24a)]('db',null,_0x829b93(0x677),[],![])==null)return null;if(!this[_0x829b93(0x1d5)]){const _0x261cce=this;this['_busFacade']={get 'state'(){const _0x1abc5d=_0x829b93;return _0x261cce[_0x1abc5d(0x24a)]('db',null,'busState',[],![]);},get 'magic'(){const _0xbd0650=_0x829b93;return Buffer[_0xbd0650(0x3ed)]('okdb-'+_0x261cce['id']);},get 'isRunning'(){const _0x28a3a2=_0x829b93;return _0x261cce[_0x28a3a2(0x24a)]('db',null,_0x28a3a2(0x677),[],![])===_0x28a3a2(0x344);},'emit'(_0x3fa7d6,_0x157326=''){const _0x14386e=_0x829b93;_0x261cce[_0x14386e(0x24a)]('db',null,_0x14386e(0x500),[_0x3fa7d6,String(_0x157326)],![]);}};}return this[_0x829b93(0x1d5)];}[_0x225529(0x3e9)](_0x528a5a,_0x3754b2){const _0x2c0f6f=_0x225529;this[_0x2c0f6f(0x4f5)]?.['emit']('bus:proc',JSON[_0x2c0f6f(0x84b)]({'kind':'reconcile','scope':_0x528a5a,'key':_0x3754b2}));}get[_0x225529(0x729)](){const _0x54b4f0=_0x225529;return this[_0x54b4f0(0x68f)]||(this[_0x54b4f0(0x68f)]=new(requireLock())['NativeLock'](this,_0x54b4f0(0x5f7),_0x54b4f0(0x7d4)));}get[_0x225529(0x200)](){const _0x3c75a7=_0x225529;return this[_0x3c75a7(0x7b5)]?this[_0x3c75a7(0x7b5)]['db']:undefined;}get[_0x225529(0x432)](){const _0x1c49c8=_0x225529,_0x184069=this[_0x1c49c8(0x7b5)]?.[_0x1c49c8(0x26e)];if(!_0x184069)return null;const _0xa7b8d7=_0x184069[_0x1c49c8(0x6ec)]()[_0x1c49c8(0x472)](_0x17fa42=>_0x17fa42[_0x1c49c8(0x360)]?.[_0x1c49c8(0x425)]==='system:env-sync');return _0xa7b8d7?_0x184069[_0x1c49c8(0x7ba)](_0xa7b8d7['id'],_0xa7b8d7['cursorKey']):null;}get['_systemEnv'](){const _0x3229aa=_0x225529;return this[_0x3229aa(0x67d)]?this[_0x3229aa(0x3e2)]['get'](_0x3229aa(0x5f7)):undefined;}['_ensureEnv'](_0x3fdd92){const _0x376770=_0x225529;let _0x517c34=Map[_0x376770(0x771)][_0x376770(0x6ce)][_0x376770(0x245)](this[_0x376770(0x3e2)],_0x3fdd92);if(!_0x517c34){_0x517c34=new _0x5924c6(this,_0x3fdd92),Map[_0x376770(0x771)][_0x376770(0x7a0)]['call'](this[_0x376770(0x3e2)],_0x3fdd92,_0x517c34);if(_0x3fdd92==='default')this[_0x376770(0x1a6)]=_0x517c34;}return _0x517c34;}[_0x225529(0x784)](_0x299ef2='default'){const _0x2615d8=_0x225529,_0x13b77b=this[_0x2615d8(0x3e2)][_0x2615d8(0x6ce)](_0x299ef2);if(_0x13b77b)return _0x13b77b;if(this[_0x2615d8(0x67d)]&&this[_0x2615d8(0x24a)]('db',null,_0x2615d8(0x15a),[_0x299ef2],![]))return this[_0x2615d8(0x1c2)](_0x299ef2);throw new _0x3557d7(_0x2615d8(0x466)+_0x299ef2+_0x2615d8(0x5eb),_0x2615d8(0x61a));}get[_0x225529(0x634)](){return this['env']('default');}get[_0x225529(0x2aa)](){const _0x233870=_0x225529;return this[_0x233870(0x3e2)][_0x233870(0x6ce)]('default')??this[_0x233870(0x1a6)];}get[_0x225529(0x669)](){const _0x292c30=_0x225529;return this[_0x292c30(0x2aa)][_0x292c30(0x669)];}get[_0x225529(0x72c)](){const _0x13511d=_0x225529;return this[_0x13511d(0x2aa)][_0x13511d(0x72c)];}[_0x225529(0x6b1)](_0x51568c){const _0x7b58e9=_0x225529;if(!this[_0x7b58e9(0x67d)])return null;return this['_call']('db',null,'instanceTimerArmed',[_0x51568c],![])?{'ref'(){},'unref'(){}}:null;}get[_0x225529(0x5e9)](){const _0x4e0a12=_0x225529;return this[_0x4e0a12(0x6b1)](_0x4e0a12(0x633));}[_0x225529(0x319)](){const _0x312604=_0x225529;return this[_0x312604(0x24a)]('db',null,'reconcileDesired',[],!![]);}get[_0x225529(0x140)](){const _0xd060d3=_0x225529;return this[_0xd060d3(0x6b1)]('license');}get['_writerWatchdogInterval'](){const _0x492670=_0x225529;return this['_timerHandle'](_0x492670(0x1a4));}get[_0x225529(0x3c3)](){const _0x9f2f30=_0x225529;return this[_0x9f2f30(0x784)](_0x9f2f30(0x634))[_0x9f2f30(0x3c3)];}get[_0x225529(0x74f)](){const _0x37420c=_0x225529;throw new _0x3557d7(_0x37420c(0x48c),'WORKERS_REMOVED');}get[_0x225529(0x26e)](){const _0x4a20ca=_0x225529;return this['_defaultEnv'][_0x4a20ca(0x26e)];}get[_0x225529(0x555)](){const _0x2ec4a5=_0x225529;return this['_defaultEnv'][_0x2ec4a5(0x555)];}async['createEnvironment'](_0x14ed06,_0x367bb5={}){const _0x60f8f=_0x225529;this['_assertOpen']();if(_0x367bb5&&typeof _0x367bb5[_0x60f8f(0x4ee)]===_0x60f8f(0x3b3)){const _0xec6aa5=_0x367bb5['encryptionKey'];this['_setKey'](_0x14ed06,await _0xec6aa5(_0x14ed06),!![]),this[_0x60f8f(0x15d)]['envs'][_0x60f8f(0x7a0)](_0x14ed06,_0xec6aa5),_0x367bb5={..._0x367bb5,'encryptionKey':!![]};}return this['_call']('db',null,_0x60f8f(0x869),[_0x14ed06,_0x367bb5]),this[_0x60f8f(0x1c2)](_0x14ed06);}async[_0x225529(0x2af)](_0x51a868){const _0x578f07=_0x225529;if(!this['_isOpen'])throw new _0x3557d7(_0x578f07(0x6d1)+_0x51a868+_0x578f07(0x1b5),_0x578f07(0x1be));return this[_0x578f07(0x24a)]('db',null,'openEnv',[_0x51a868]),this[_0x578f07(0x1c2)](_0x51a868);}get[_0x225529(0x4a8)](){const _0x2acbe2=_0x225529;if(!this[_0x2acbe2(0x27e)]&&this[_0x2acbe2(0x67d)]){const _0x54067a=requireOkdbRelay(),_0x3bcdad=new _0x54067a(this,this[_0x2acbe2(0x4c0)]?.[_0x2acbe2(0x37a)]?.[_0x2acbe2(0x584)]??{});_0x3bcdad[_0x2acbe2(0x5b2)](),_0x3bcdad[_0x2acbe2(0x12e)]=!![],this[_0x2acbe2(0x27e)]=_0x3bcdad;}return this[_0x2acbe2(0x27e)]??null;}set[_0x225529(0x4a8)](_0x115e23){const _0x3af910=_0x225529;this[_0x3af910(0x27e)]=_0x115e23;}get[_0x225529(0x4f9)](){const _0x376545=_0x225529;let _0x34f45f=0x0;if(this[_0x376545(0x67d)])for(const [_0x14f151]of Map[_0x376545(0x771)][_0x376545(0x45b)][_0x376545(0x245)](this[_0x376545(0x3e2)])){try{_0x34f45f+=this[_0x376545(0x24a)](_0x376545(0x171),_0x14f151,_0x376545(0x616),[],![])||0x0;}catch{}}return{'total':_0x34f45f,'maxObserved':_0x34f45f>0x0?0x1:0x0,'inFlight':0x0};}async[_0x225529(0x41c)](_0x1afcc1){const _0x413817=_0x225529,_0x3d7ff9=this[_0x413817(0x3e2)][_0x413817(0x6ce)](_0x1afcc1);if(_0x3d7ff9)return _0x3d7ff9;if(!this[_0x413817(0x24a)]('db',null,'hasEnv',[_0x1afcc1],![]))throw new Error(_0x413817(0x3ad)+_0x1afcc1+_0x413817(0x279));return this[_0x413817(0x2af)](_0x1afcc1);}async[_0x225529(0x40a)](_0x24437f){const _0x7d4cc8=_0x225529,_0x3259d9=this[_0x7d4cc8(0x24a)]('db',null,'closeEnvLocally',[_0x24437f]);return this['_envs'][_0x7d4cc8(0x243)](_0x24437f),_0x3259d9;}async['removeEnvironment'](_0x288b3e,_0xc1bf14={}){const _0x478f08=_0x225529;this[_0x478f08(0x23b)]();const _0x3329a7=this[_0x478f08(0x24a)]('db',null,_0x478f08(0x453),[_0x288b3e,_0xc1bf14]);return this[_0x478f08(0x3e2)][_0x478f08(0x243)](_0x288b3e),_0x3329a7;}static get[_0x225529(0x163)](){const _0x47a450=_0x225529;return _0x185869[_0x47a450(0x163)];}static get[_0x225529(0x636)](){return _0x185869['KNOWN_OPTIONS'];}static get['_OPTION_HINTS'](){return _0x185869['_OPTION_HINTS'];}static async['clone'](_0x239815,_0x1e65f9){const _0x10527f=_0x225529;return _0x165880('db',_0x10527f(0x3cb),[_0x239815,_0x1e65f9]);}static[_0x225529(0x296)](_0x57f09c){return _0x165880('db','reidentify',[_0x57f09c]);}static['registerBucketProjection'](_0x42edc6,_0x22df32){const _0x316500=_0x225529;_0x165880(_0x316500(0x555),_0x316500(0x7af),[_0x42edc6,_0x22df32]);}static[_0x225529(0x501)](_0xd6d9a,_0xf830ce){const _0x37d6a2=_0x225529;_0x165880(_0x37d6a2(0x555),_0x37d6a2(0x501),[_0xd6d9a,_0xf830ce]);}static[_0x225529(0x137)](){}[_0x225529(0x2f3)](_0x436cef,_0x2d931b){const _0x288620=_0x225529;return require$$16[_0x288620(0x2f8)](_0x436cef,_0x2d931b);}}_0x20abc6[_0x225529(0x680)]=_0x458029,Object['defineProperty'](_0x20abc6,'_unknownOptionsWarned',{'get'(){return _0x20abc6['__warned']||(_0x20abc6['__warned']=new Set());},'set'(_0x434551){const _0x24eaa5=_0x225529;_0x20abc6[_0x24eaa5(0x2fa)]=_0x434551;try{_0x165880('db','resetUnknownOptionsWarned',[]);}catch{}},'configurable':!![]});for(const _0x54c563 of[_0x225529(0x5d5),_0x225529(0x346),_0x225529(0x14f),_0x225529(0x1a2),'patch',_0x225529(0x569),'remove',_0x225529(0x6ce),'getMany',_0x225529(0x638),_0x225529(0x35a),_0x225529(0x38b),_0x225529(0x462),'getCount',_0x225529(0x1e2),'getIndex',_0x225529(0x120),_0x225529(0x4c2),'query',_0x225529(0x71f),'ftsQuery','registerType',_0x225529(0x4e9),_0x225529(0x51b),_0x225529(0x7a3),'hasType','dropType','registerIndex',_0x225529(0x6b5),'dropIndex',_0x225529(0x475),_0x225529(0x6b4),_0x225529(0x447),'getUniqueViolations',_0x225529(0x30e),_0x225529(0x5fe),_0x225529(0x863),_0x225529(0x5ed),_0x225529(0x235),'getTTL',_0x225529(0x449),'sweepExpiredTTL',_0x225529(0x7fd),'ttlStats',_0x225529(0x322),'getDefaultTTL',_0x225529(0x2d8),_0x225529(0x21b),_0x225529(0x85c),_0x225529(0x76a)]){_0x20abc6[_0x225529(0x771)][_0x54c563]=function(..._0x48d983){const _0x45fbec=_0x225529,_0x177681=this[_0x45fbec(0x784)](_0x45fbec(0x634));return _0x177681[_0x54c563](..._0x48d983);};}function _0x1ca5b8(_0x14ee67){const _0x3b1c1b=_0x225529,_0x36a230=_0xd2db39=>()=>{const _0x2bbf42=_0x36a2;throw new Error(_0x2bbf42(0x773)+_0xd2db39+_0x2bbf42(0x618));};return{'process':_0x36a230(_0x3b1c1b(0x509)),'processRest':_0x36a230(_0x3b1c1b(0x683)),'processEverything':_0x36a230(_0x3b1c1b(0x21e)),async 'start'(){const _0x1989bd=_0x3b1c1b;return _0x14ee67[_0x1989bd(0x24a)]('db',null,_0x1989bd(0x6e4),[]);},async 'stop'(){const _0x3c8a3c=_0x3b1c1b;return _0x14ee67[_0x3c8a3c(0x24a)]('db',null,_0x3c8a3c(0x3a9),[]);},'status'(){return _0x14ee67['_call']('db',null,'processorsStatus',[],![]);},get 'participating'(){const _0x325cc4=_0x3b1c1b;return _0x14ee67[_0x325cc4(0x24a)]('db',null,_0x325cc4(0x879),[],![]);},get '_participate'(){const _0xcd5d0c=_0x3b1c1b;return _0x14ee67[_0xcd5d0c(0x24a)]('db',null,_0xcd5d0c(0x879),[],![]);}};}function _0x165880(_0x25e3b3,_0x40aab9,_0x25fe22){const _0x31f843=_0x225529;_0x1e8ed7();try{return _0x176e58()[_0x31f843(0x513)](_0x25e3b3,_0x40aab9,_0x25fe22);}catch(_0x379036){throw _0x996777(_0x379036);}}_0x5cf16a['exports']=_0x20abc6,_0x5cf16a[_0x225529(0x613)][_0x225529(0x4a2)]=_0x165880,_0x5cf16a[_0x225529(0x613)][_0x225529(0x39d)]=_0x20abc6,_0x5cf16a[_0x225529(0x613)][_0x225529(0x680)]=_0x458029,_0x5cf16a[_0x225529(0x613)][_0x225529(0x634)]=_0x20abc6,Object[_0x225529(0x2ad)](_0x5cf16a[_0x225529(0x613)],_0x225529(0x3f8),{'get':()=>require$$1$1['loadedPath']?.()??null,'enumerable':![],'configurable':!![]});}(lib),lib[_0xfaecd0(0x613)];}var libExports=requireLib(),index=getDefaultExportFromCjs(libExports);module[_0x2d5353(0x613)]=index;