@kedem/okdb 2.0.2 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/algorithm-worker-thread.js +1 -1
- package/bin/okdb.js +1 -1
- package/docs/OKDB-ARCHITECTURE.md +16 -2
- package/docs/embeddings.md +11 -7
- package/docs/pipelines.md +12 -0
- package/okdb-functions-sandbox-worker.js +1 -1
- package/okdb-http-worker-child.js +1 -1
- package/okdb-views-bootstrap-worker.js +1 -1
- package/okdb.js +1 -1
- package/package.json +1 -1
- package/public/layouts/_default.ok.html +3 -1
- package/public/sections/embeddings/modals/edit-pipeline-modal.ok.js +1 -0
- package/public/sections/embeddings/modals/replace-embedder-modal.ok.js +1 -0
- package/public/sections/embeddings/parts/embed-create-panel.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-embedder-panel.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-indexer-panel.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-search-panel.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-worker-panel.ok.js +1 -1
- package/public/sections/embeddings/parts/engines-overview.ok.js +1 -1
- package/public/sections/embeddings/parts/pipeline-flow-strip.ok.js +1 -0
- package/public/sections/embeddings/parts/pipeline-try-search.ok.js +1 -0
- package/public/sections/engines/engine-ui-utils.js +1 -1
- package/public/sections/engines/index.ok.html +1 -1
- package/public/sections/engines/parts/engine-declaration-editor.ok.js +1 -1
- package/public/sections/engines/parts/engine-lifecycle-actions.ok.js +1 -1
- package/public/sections/engines/parts/engine-panel-shell.ok.js +1 -1
- package/public/sections/engines/parts/engine-resource-card.ok.js +1 -1
- package/public/sections/functions/index.ok.html +1 -1
- package/public/sections/system/index.ok.html +1 -1
- package/public/sections/system/parts/system-locks-panel.ok.js +1 -1
- package/public/sections/system/parts/system-storage-panel.ok.js +1 -0
- package/public/sections/views/index.ok.html +1 -1
- package/public/stores/auth-store.js +1 -1
- package/public/stores/events-store.js +1 -1
- package/public/styles.css +1 -1
- package/public/vendor/okjs/ok.esm.min.js +1 -1
- package/public/vendor/okjs/toolkit/components/ok-chart.ok.js +1 -1
- package/public/vendor/okjs/toolkit/components/ok-marked.ok.js +1 -1
- package/public/vendor/okjs/toolkit/components/ok-monaco.ok.js +1 -1
- package/public/vendor/okjs/toolkit/core/ok-layer-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/core/virtualized.ok.js +1 -1
- package/public/vendor/okjs/toolkit/devtools/ok-console.ok.js +1 -1
- package/public/vendor/okjs/toolkit/devtools/ok-fps-monitor-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/errors/ok-crash-info.ok.js +1 -1
- package/public/vendor/okjs/toolkit/interaction/ok-contextmenu.ok.js +1 -1
- package/public/vendor/okjs/toolkit/interaction/ok-flyover-panel.ok.js +1 -1
- package/public/vendor/okjs/toolkit/interaction/ok-hotkeys-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/interaction/ok-popout-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/interaction/ok-submenu.ok.js +1 -1
- package/public/vendor/okjs/toolkit/layout/ok-resizer.ok.js +1 -1
- package/public/vendor/okjs/toolkit/manifest.js +1 -1
- package/public/vendor/okjs/toolkit/modals/ok-modal-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/modals/ok-modal.ok.js +1 -1
- package/public/vendor/okjs/toolkit/modals/ok-toast-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/theming/ok-design-style.js +1 -1
- package/public/vendor/okjs/toolkit/theming/ok-theme.ok.js +1 -1
- package/public/sections/db/parts/db-pipelines-panel.ok.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x487946=_0x1273;(function(_0x4a297b,_0x536725){const _0x398b1e=_0x1273,_0x1ac674=_0x4a297b();while(!![]){try{const _0x37679b=parseInt(_0x398b1e(0x1c4))/0x1*(-parseInt(_0x398b1e(0x2e3))/0x2)+-parseInt(_0x398b1e(0x341))/0x3*(parseInt(_0x398b1e(0x271))/0x4)+-parseInt(_0x398b1e(0x344))/0x5+-parseInt(_0x398b1e(0x3a7))/0x6*(parseInt(_0x398b1e(0x351))/0x7)+parseInt(_0x398b1e(0x280))/0x8*(-parseInt(_0x398b1e(0x3c7))/0x9)+-parseInt(_0x398b1e(0x250))/0xa+parseInt(_0x398b1e(0x1af))/0xb;if(_0x37679b===_0x536725)break;else _0x1ac674['push'](_0x1ac674['shift']());}catch(_0x5e1262){_0x1ac674['push'](_0x1ac674['shift']());}}}(_0xcdd8,0x8e447));var require$$0$5=require(_0x487946(0x38a)),require$$1$1=require('cluster'),require$$1=require(_0x487946(0x2ee)),require$$0$3=require('os'),require$$2=require(_0x487946(0x2af)),require$$0=require(_0x487946(0x2c2)),require$$0$2=require(_0x487946(0x385)),require$$0$1=require('fs'),require$$0$4=require(_0x487946(0x31b));function getDefaultExportFromCjs(_0x43c342){const _0x5146b8=_0x487946;return _0x43c342&&_0x43c342[_0x5146b8(0x32b)]&&Object['prototype'][_0x5146b8(0x26a)][_0x5146b8(0x27a)](_0x43c342,_0x5146b8(0x1f2))?_0x43c342[_0x5146b8(0x1f2)]:_0x43c342;}var okdbHttpWorkerChild$1={},okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x49bacc=_0x487946;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x6d044c={'PUT':_0x49bacc(0x32c),'REMOVE':'remove','INDEX_DROP':'dropIndex','INDEX_REGISTER':_0x49bacc(0x356),'INDEX_RESET':_0x49bacc(0x2d9),'TYPE_REGISTER':_0x49bacc(0x350),'TYPE_DROP':_0x49bacc(0x3b8),'FTS_REGISTER':_0x49bacc(0x39d),'FTS_DROP':'dropFts','FTS_RESET':_0x49bacc(0x36d),'SCHEMA_SET':_0x49bacc(0x2de),'SCHEMA_DROP':_0x49bacc(0x3b1),'TTL_SET':'setTtl','TTL_CLEAR':_0x49bacc(0x32f)},_0x3b5f14={'SYSTEM_READY':'system:ready','SYSTEM_STOPPED':_0x49bacc(0x366),'SYSTEM_CLOCK_CHANGE':_0x49bacc(0x241),'SYSTEM_POKE':_0x49bacc(0x3c2),'SYSTEM_DRAIN':'system:drain','SYSTEM_TYPE_DROP':_0x49bacc(0x1cb),'SYSTEM_PROC':_0x49bacc(0x358),'SYSTEM_BUS_STATE_CHANGE':_0x49bacc(0x20b),'ITEM_CREATE':_0x49bacc(0x21d),'ITEM_UPDATE':_0x49bacc(0x36c),'ITEM_REMOVE':_0x49bacc(0x2ea),'INDEX_RESET':_0x49bacc(0x2f9),'INDEX_READY':_0x49bacc(0x2a3),'INDEX_PROGRESS':_0x49bacc(0x2ec),'VIEW_PROGRESS':_0x49bacc(0x22a),'INDEX_DROP':'index:drop','INDEX_REGISTERED':_0x49bacc(0x28b),'FTS_REGISTERED':'fts:registered','FTS_DROP':_0x49bacc(0x1d6),'FTS_RESET':_0x49bacc(0x395),'SCHEMA_SET':_0x49bacc(0x1d7),'SCHEMA_DROP':'schema:drop','UNIQUE_VIOLATION':_0x49bacc(0x375),'UNIQUE_VIOLATION_RESOLVED':_0x49bacc(0x2ce),'REF_VIOLATION':_0x49bacc(0x227),'REF_VIOLATION_RESOLVED':_0x49bacc(0x1fc),'SYNC_APPLY':_0x49bacc(0x210),'TXN_START':_0x49bacc(0x1d8),'TXN_END':_0x49bacc(0x367),'TXN_ROLLBACK':'txn:rollback','TYPE_REGISTERED':'type:registered','TYPE_DROP':_0x49bacc(0x253),'ENV_OPENED':'env:opened','ENV_REMOVED':_0x49bacc(0x1e9),'SYSTEM_ENV_RELEASE':_0x49bacc(0x1e7),'TTL_EXPIRED':_0x49bacc(0x294),'TTL_SET':_0x49bacc(0x3ca),'TTL_CLEAR':_0x49bacc(0x254),'LICENSE_INVALID':_0x49bacc(0x24e),'LICENSE_ADDED':_0x49bacc(0x2f5),'LICENSE_ACTIVATED':_0x49bacc(0x2c1),'LICENSE_REMOVED':_0x49bacc(0x224)},_0x36b2a8={'CREATING':_0x49bacc(0x27c),'RESETTING':'resetting','READY':_0x49bacc(0x229),'DROPPING':'dropping','WAITING':_0x49bacc(0x24f)},_0x6fb34d={'CREATED':'created','STARTING':_0x49bacc(0x293),'STARTED':'started','STOPPING':_0x49bacc(0x393),'STOPPED':'stopped'},_0x52ebb8={'CREATING':_0x49bacc(0x27c),'READY':_0x49bacc(0x229),'HALTED':_0x49bacc(0x2aa),'STOPPED':_0x49bacc(0x208),'RESETTING':'resetting'},_0x1d0ec2=Object[_0x49bacc(0x2a8)]({'POKE':_0x49bacc(0x1bd),'DRAIN':_0x49bacc(0x3b5),'TYPE_DROP':_0x49bacc(0x1b1),'PROC':_0x49bacc(0x2fc),'ENV_RELEASE':'bus:env_release'});return okdbEnums={'BUS_EVENTS':_0x1d0ec2,'CHANGE_ACTIONS':_0x6d044c,'EVENTS':_0x3b5f14,'INDEX_STATE':_0x36b2a8,'OKDB_STATE':_0x6fb34d,'VIEW_STATE':_0x52ebb8},okdbEnums;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0x49ee8a=_0x487946;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x520fe3,performance:_0xda0a7a}=require$$0,_0x257ff1=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG===_0x49ee8a(0x1ec),_0x4881f1=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x223693=process.env.OKDB_LOOP_LAG_ALL==='1',_0x11305c=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0x174dd6{constructor(){const _0x2c9b0e=_0x49ee8a;this[_0x2c9b0e(0x384)]=_0x257ff1,this[_0x2c9b0e(0x32a)]=new Map(),this['_h']=null,this[_0x2c9b0e(0x2a0)]=null,this[_0x2c9b0e(0x2fd)]=![],this[_0x2c9b0e(0x248)]=(_0x5b1f22,_0x9e3193)=>process[_0x2c9b0e(0x1bb)]['write'](_0x5b1f22+(_0x9e3193?'\x20'+JSON[_0x2c9b0e(0x2c7)](_0x9e3193):'')+'\x0a');}[_0x49ee8a(0x2c8)](){const _0x335a8c=_0x49ee8a;return _0xda0a7a[_0x335a8c(0x2c8)]();}[_0x49ee8a(0x328)](_0xb90aa8){const _0x557e43=_0x49ee8a;if(typeof _0xb90aa8===_0x557e43(0x1dc))this['_log']=_0xb90aa8;}['note'](_0x30d740,_0x246e9f,_0x5a0e52){const _0x571a43=_0x49ee8a;if(!this['enabled'])return;let _0x5e479d=this[_0x571a43(0x32a)]['get'](_0x30d740);!_0x5e479d&&(_0x5e479d={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this[_0x571a43(0x32a)][_0x571a43(0x1e5)](_0x30d740,_0x5e479d)),_0x5e479d['ms']+=_0x246e9f,_0x5e479d[_0x571a43(0x1b8)]+=0x1,_0x246e9f>_0x5e479d['maxMs']&&(_0x5e479d['maxMs']=_0x246e9f,_0x5e479d[_0x571a43(0x21e)]=_0x5a0e52||'');}[_0x49ee8a(0x1bf)](_0x121dec){const _0x3e667f=_0x49ee8a;if(!this['enabled']||this[_0x3e667f(0x2fd)])return;this['_started']=!![];if(_0x121dec)this[_0x3e667f(0x248)]=_0x121dec;this['_h']=_0x520fe3({'resolution':0xa}),this['_h'][_0x3e667f(0x234)](),this['_timer']=setInterval(()=>this[_0x3e667f(0x287)](),_0x4881f1);if(this[_0x3e667f(0x2a0)]['unref'])this[_0x3e667f(0x2a0)]['unref']();}['onWindow'](_0x528163){const _0xdfac0b=_0x49ee8a;if(!this[_0xdfac0b(0x359)])this[_0xdfac0b(0x359)]=new Set();this[_0xdfac0b(0x359)]['add'](_0x528163);if(!this[_0xdfac0b(0x2fd)])this['_startAdmission']();}['offWindow'](_0x422b9f){const _0x5d9cec=_0x49ee8a;this[_0x5d9cec(0x359)]?.[_0x5d9cec(0x362)](_0x422b9f);}[_0x49ee8a(0x1b9)](){const _0x749e1e=_0x49ee8a;if(this['_admissionStarted'])return;this[_0x749e1e(0x354)]=!![];!this['_h']&&(this['_h']=_0x520fe3({'resolution':0xa}),this['_h'][_0x749e1e(0x234)]());const _0x40f4ac=_0x4881f1;this['_admissionTimer']=setInterval(()=>{const _0x8c62d3=_0x749e1e,_0x5ba4d8=this['_h'];if(!_0x5ba4d8)return;const _0x2aea6e=_0x5ba4d8[_0x8c62d3(0x2ad)](0x63)/0xf4240,_0x1128a5=_0x5ba4d8[_0x8c62d3(0x31f)]/0xf4240,_0x27f9ef=_0x5ba4d8[_0x8c62d3(0x34c)]/0xf4240;_0x5ba4d8['reset']();if(this[_0x8c62d3(0x359)])for(const _0x5bb550 of this[_0x8c62d3(0x359)]){try{_0x5bb550({'p99Ms':_0x2aea6e,'maxMs':_0x1128a5,'meanMs':_0x27f9ef,'reportMs':_0x40f4ac});}catch{}}},_0x40f4ac);if(this[_0x749e1e(0x2d8)][_0x749e1e(0x371)])this[_0x749e1e(0x2d8)][_0x749e1e(0x371)]();}['_report'](){const _0x45d000=_0x49ee8a,_0x5b2d4b=this['_h'],_0x346676=_0x5b2d4b[_0x45d000(0x31f)]/0xf4240,_0x1e2796=_0x5b2d4b[_0x45d000(0x2ad)](0x63)/0xf4240,_0x2cc3e3=_0x5b2d4b['mean']/0xf4240;_0x5b2d4b['reset']();const _0x24e93f=[...this[_0x45d000(0x32a)][_0x45d000(0x23e)]()][_0x45d000(0x316)](([_0x43dd4d,_0x595db9])=>({'label':_0x43dd4d,..._0x595db9}))[_0x45d000(0x1ab)]((_0x581e72,_0x3693ba)=>_0x3693ba['ms']-_0x581e72['ms'])[_0x45d000(0x2e7)](0x0,0x8);this[_0x45d000(0x32a)][_0x45d000(0x2ba)]();const _0x24da04=_0x24e93f['reduce']((_0x394f6f,_0x9b1da4)=>_0x394f6f+_0x9b1da4['ms'],0x0),_0x378202=_0x24e93f[_0x45d000(0x316)](_0x7246ab=>_0x7246ab[_0x45d000(0x26b)]+'='+_0x7246ab['ms']['toFixed'](0x0)+_0x45d000(0x1d3)+_0x7246ab[_0x45d000(0x1b8)]+(_0x7246ab['maxMs']>0x5?_0x45d000(0x296)+_0x7246ab[_0x45d000(0x31e)]['toFixed'](0x0)+'ms'+(_0x7246ab['maxExtra']?'\x20'+_0x7246ab[_0x45d000(0x21e)]:'')+')':''));(_0x223693||_0x346676>=_0x11305c)&&this['_log']('loop-lag\x20'+_0x4881f1+_0x45d000(0x1a3)+_0x346676['toFixed'](0x0)+_0x45d000(0x2b1)+_0x1e2796[_0x45d000(0x307)](0x0)+'ms\x20mean='+_0x2cc3e3[_0x45d000(0x307)](0x0)+_0x45d000(0x2c6)+_0x24da04[_0x45d000(0x307)](0x0)+'ms'+(_0x378202[_0x45d000(0x39e)]?'\x20│\x20'+_0x378202[_0x45d000(0x28e)]('\x20\x20'):''),{'feature':_0x45d000(0x295)});if(this[_0x45d000(0x359)])for(const _0x1fe0b9 of this[_0x45d000(0x359)]){try{_0x1fe0b9({'p99Ms':_0x1e2796,'maxMs':_0x346676,'meanMs':_0x2cc3e3,'reportMs':_0x4881f1});}catch{}}}['stop'](){const _0x261d41=_0x49ee8a;if(this['_timer'])clearInterval(this[_0x261d41(0x2a0)]);if(this['_h'])this['_h']['disable']();this[_0x261d41(0x2a0)]=null,this['_h']=null,this['_started']=![];}}const _0x3dd15c=new _0x174dd6();if(_0x3dd15c[_0x49ee8a(0x384)])_0x3dd15c[_0x49ee8a(0x1bf)]();return okdbLoopMonitor={'LOOP':_0x3dd15c},okdbLoopMonitor;}var okdbWriter={'exports':{}},okdbDiag,hasRequiredOkdbDiag;function requireOkdbDiag(){if(hasRequiredOkdbDiag)return okdbDiag;hasRequiredOkdbDiag=0x1;const _0x1846aa=require$$0$1,_0x19144a=require$$1;let _0x539dcd,_0x1a3d8e,_0x457b54,_0x30a9c4,_0x15c0ae,_0x50c5c1,_0x31d889,_0xd84e73=![];const _0x13a412=new Set();let _0x291c37=null;const _0x409f87=new Map();function _0x549a25(){const _0x2c87be=_0x1273;if(_0x539dcd!==undefined)return _0x539dcd;_0x539dcd=process.env.OKDB_DIAG==='1';if(!_0x539dcd)return![];_0x1a3d8e=process.env.OKDB_DIAG_STACK==='1',_0x30a9c4=Math[_0x2c87be(0x31f)](0x10,Number(process.env.OKDB_DIAG_RING)||0x100),_0x457b54=new Array(_0x30a9c4),_0x15c0ae=0x0,_0x50c5c1=0x0,_0x31d889=process.env.OKDB_DIAG_DIR||null;if(_0x31d889)try{_0x1846aa[_0x2c87be(0x2d7)](_0x31d889,{'recursive':!![]});}catch{}return!![];}function _0x5065d6(){return _0x539dcd===undefined?_0x549a25():_0x539dcd;}function _0x2a7224(_0x3d56e2,_0x28e28b){const _0xb44661=_0x1273;if(_0x539dcd===undefined?!_0x549a25():!_0x539dcd)return;let _0x11365b;if(_0x1a3d8e){const _0x525616=new Error()[_0xb44661(0x1e6)]||'';_0x11365b=_0x525616[_0xb44661(0x1ff)]('\x0a')[_0xb44661(0x2e7)](0x3)[_0xb44661(0x316)](_0x5e6505=>_0x5e6505[_0xb44661(0x343)]())[_0xb44661(0x315)](Boolean)[_0xb44661(0x2e7)](0x0,0x8);}_0x457b54[_0x15c0ae]={'seq':_0x50c5c1++,'t':Date['now'](),'env':_0x3d56e2,'kind':_0x28e28b||_0xb44661(0x349),'stack':_0x11365b},_0x15c0ae=(_0x15c0ae+0x1)%_0x30a9c4;}function _0x356909(_0x1fa7d8){const _0x1fb1bb=_0x1273,_0x476d6b=[];for(let _0x2318c5=0x0;_0x2318c5<_0x30a9c4;_0x2318c5++){const _0x501337=_0x457b54[(_0x15c0ae-0x1-_0x2318c5+_0x30a9c4*0x2)%_0x30a9c4];if(!_0x501337)continue;_0x476d6b[_0x1fb1bb(0x232)](_0x501337);if(_0x476d6b[_0x1fb1bb(0x39e)]>=_0x1fa7d8)break;}return _0x476d6b;}function _0x27f1da(_0x380bbf){const _0x5537a6=_0x1273;try{process['stderr'][_0x5537a6(0x309)](_0x380bbf+'\x0a');}catch{}if(_0x31d889)try{_0x1846aa['appendFileSync'](_0x19144a['join'](_0x31d889,_0x5537a6(0x1f3)+process[_0x5537a6(0x2e8)]+_0x5537a6(0x27e)),_0x380bbf+'\x0a');}catch{}}function _0x1cbaea(_0x4d6ef5){const _0x14767f=_0x1273,_0x515545=_0x356909(_0x4d6ef5);if(!_0x515545['length'])return'\x20\x20(write\x20ring\x20empty\x20—\x20was\x20OKDB_DIAG\x20set\x20before\x20any\x20write?)';const _0x15bd0e=Date[_0x14767f(0x2c8)]();return _0x515545[_0x14767f(0x316)](_0x290627=>{const _0xf714fa=_0x14767f,_0x1dd205=_0xf714fa(0x290)+_0x290627[_0xf714fa(0x2f1)]+'\x20-'+(_0x15bd0e-_0x290627['t'])+_0xf714fa(0x3bd)+_0x290627[_0xf714fa(0x30d)]+'\x20'+_0x290627[_0xf714fa(0x1c9)];return _0x290627[_0xf714fa(0x1e6)]&&_0x290627[_0xf714fa(0x1e6)][_0xf714fa(0x39e)]?_0x1dd205+_0xf714fa(0x3ae)+_0x290627[_0xf714fa(0x1e6)][_0xf714fa(0x28e)](_0xf714fa(0x3ae)):_0x1dd205;})[_0x14767f(0x28e)]('\x0a');}function _0x3871f6(_0x348592,_0x483c6b){const _0x379f0a=_0x1273,_0x26b3d0=_0x379f0a(0x1f4)+_0x348592+_0x379f0a(0x391)+new Date()[_0x379f0a(0x35a)]()+'\x20pid='+process['pid']+_0x379f0a(0x207),_0x4c5512=[_0x26b3d0,'error:\x20'+(_0x483c6b&&_0x483c6b['stack']?_0x483c6b['stack'][_0x379f0a(0x1ff)]('\x0a')[0x0]:_0x483c6b),_0x379f0a(0x3a5)+(_0x1a3d8e?'':_0x379f0a(0x33b))+':',_0x1cbaea(0x18),_0x14fa7a(),'='['repeat'](_0x26b3d0[_0x379f0a(0x39e)]-0x1)];_0x27f1da(_0x4c5512[_0x379f0a(0x28e)]('\x0a'));}function _0xc811a6(_0x6149b3){const _0x272fc7=_0x1273;if(!_0x5065d6())return;const _0x310ffe=String(_0x6149b3&&_0x6149b3['message']||_0x6149b3||''),_0x3a2adc=/already closed|environment is already|invalid read txn|reset an invalid/i['test'](_0x310ffe);_0x3871f6(_0x3a2adc?_0x272fc7(0x3a6):_0x272fc7(0x392),_0x6149b3);if(process.env.OKDB_DIAG_SURVIVE==='1'&&_0x3a2adc)return;try{console[_0x272fc7(0x20c)](_0x6149b3&&_0x6149b3[_0x272fc7(0x1e6)]?_0x6149b3[_0x272fc7(0x1e6)]:_0x6149b3);}catch{}process[_0x272fc7(0x289)](0x1);}function _0x100091(_0x5ce0d8){const _0xfacda3=_0x1273;if(!_0x5065d6())return;const _0x9bcf8b=String(_0x5ce0d8&&_0x5ce0d8[_0xfacda3(0x302)]||_0x5ce0d8||'');/already closed|environment is already|invalid read txn|reset an invalid/i['test'](_0x9bcf8b)&&_0x3871f6(_0xfacda3(0x39a),_0x5ce0d8);}function _0x14fa7a(){const _0x3e9b16=_0x1273,_0xdbecc8=[_0x3e9b16(0x205)];let _0x422ea0=![];for(const _0x47b837 of _0x13a412){const _0x45f82e=_0x47b837&&_0x47b837[_0x3e9b16(0x285)];if(!_0x45f82e)continue;for(const [_0x5cfa48,_0x390216]of _0x45f82e){const _0x18fe28=_0x390216&&_0x390216[_0x3e9b16(0x33a)]&&_0x390216[_0x3e9b16(0x33a)][_0x3e9b16(0x2c4)];if(!_0x18fe28)continue;let _0x25e713,_0x13418d;try{_0x25e713=Atomics[_0x3e9b16(0x21b)](_0x18fe28,0x0),_0x13418d=Atomics[_0x3e9b16(0x21b)](_0x18fe28,0x1);}catch{continue;}if(_0x25e713===0x0)continue;_0x422ea0=!![];const _0x3b619e=_0x25e713>0x0?_0x3e9b16(0x2dd):_0x3e9b16(0x2a4),_0x4b2e80=Date[_0x3e9b16(0x2c8)]()-Math['abs'](_0x25e713)*0x3e8,_0xbb9801=((()=>{const _0x4a589f=_0x3e9b16;try{return _0x390216[_0x4a589f(0x246)]&&_0x390216[_0x4a589f(0x246)][_0x4a589f(0x2b7)]?_0x390216[_0x4a589f(0x246)][_0x4a589f(0x2b7)]():null;}catch{return null;}})());_0xdbecc8[_0x3e9b16(0x232)](_0x3e9b16(0x336)+_0x5cfa48+_0x3e9b16(0x24d)+_0x3b619e+_0x3e9b16(0x2e2)+_0x4b2e80+'ms\x20activeWriters='+_0x13418d+(_0xbb9801?_0x3e9b16(0x22d)+_0xbb9801[_0x3e9b16(0x1d1)]+_0x3e9b16(0x262)+_0xbb9801[_0x3e9b16(0x25e)]+_0x3e9b16(0x1b2)+_0xbb9801['parkedNow']+'}':''));}}if(!_0x422ea0)_0xdbecc8[_0x3e9b16(0x232)](_0x3e9b16(0x38d));return _0xdbecc8[_0x3e9b16(0x28e)]('\x0a');}function _0xb48d2a(){const _0x25eaa0=_0x1273;if(!_0x5065d6())return;const _0x52d489=Math[_0x25eaa0(0x31f)](0x3e8,Number(process.env.OKDB_DIAG_STALL_MS)||0x1f40),_0x5c1355=Date[_0x25eaa0(0x2c8)]();for(const _0x493698 of _0x13a412){const _0x240250=_0x493698&&_0x493698[_0x25eaa0(0x285)];if(!_0x240250)continue;for(const [_0x547c63,_0xd2bfd4]of _0x240250){const _0x5629c2=_0xd2bfd4&&_0xd2bfd4['_coordinator']&&_0xd2bfd4[_0x25eaa0(0x33a)][_0x25eaa0(0x2c4)];if(!_0x5629c2)continue;let _0x3379cd;try{_0x3379cd=Atomics[_0x25eaa0(0x21b)](_0x5629c2,0x0);}catch{continue;}const _0x1ae691=_0x493698[_0x25eaa0(0x2ee)]+'|'+_0x547c63;if(_0x3379cd<=0x0){_0x409f87[_0x25eaa0(0x362)](_0x1ae691);continue;}const _0x522125=_0x5c1355-_0x3379cd*0x3e8,_0x1a83af=_0x409f87[_0x25eaa0(0x2cf)](_0x1ae691);if(_0x522125<_0x52d489)continue;if(_0x1a83af&&_0x5c1355-_0x1a83af['dumpedAt']<_0x52d489)continue;_0x409f87[_0x25eaa0(0x1e5)](_0x1ae691,{'firstTs':_0x1a83af?_0x1a83af[_0x25eaa0(0x37f)]:_0x3379cd,'dumpedAt':_0x5c1355});const _0x3ba466=_0x25eaa0(0x265)+_0x522125+'ms\x20on\x20env='+_0x547c63+_0x25eaa0(0x391)+new Date()[_0x25eaa0(0x35a)]()+'\x20pid='+process[_0x25eaa0(0x2e8)]+_0x25eaa0(0x207);_0x27f1da([_0x3ba466,_0x14fa7a(),'='[_0x25eaa0(0x2ab)](_0x3ba466['length']-0x1)][_0x25eaa0(0x28e)]('\x0a'));}}}function _0x37a80d(){const _0x489add=_0x1273;if(!_0x5065d6()||_0xd84e73)return;_0xd84e73=!![],process[_0x489add(0x2d6)](_0x489add(0x392),_0xc811a6),process[_0x489add(0x2d6)](_0x489add(0x1fe),_0x100091);const _0x48d6de=Math[_0x489add(0x31f)](0xfa,Number(process.env.OKDB_DIAG_WATCH_MS)||0x7d0);_0x291c37=setInterval(_0xb48d2a,_0x48d6de);if(_0x291c37[_0x489add(0x371)])_0x291c37['unref']();}function _0x921d37(_0xa6f593){const _0x588082=_0x1273;if(!_0x5065d6()||!_0xa6f593)return;_0x13a412[_0x588082(0x2e9)](_0xa6f593),_0x37a80d();}function _0x51eca5(_0x5a585d){_0x13a412['delete'](_0x5a585d);}function _0x1eafd1(){const _0x22e6ae=_0x1273;if(!_0x5065d6())return{'enabled':![],'hint':_0x22e6ae(0x217)};return{'enabled':!![],'stackCapture':!!_0x1a3d8e,'recentWrites':_0x356909(0x10),'drain':_0x14fa7a()};}return okdbDiag={'isEnabled':_0x5065d6,'recordWrite':_0x2a7224,'installDiag':_0x37a80d,'registerOkdb':_0x921d37,'unregisterOkdb':_0x51eca5,'snapshot':_0x1eafd1},okdbDiag;}var hasRequiredOkdbWriter;function requireOkdbWriter(){const _0x51957e=_0x487946;if(hasRequiredOkdbWriter)return okdbWriter[_0x51957e(0x34f)];hasRequiredOkdbWriter=0x1;const {performance:_0x38d037}=require$$0$2,_0x3d4334=requireOkdbDiag(),_0x330d0b=process.env.OKDB_COMMIT_MODE===_0x51957e(0x1f8);class _0x567a64{constructor(_0xa5c836){const _0x43dc8a=_0x51957e;this[_0x43dc8a(0x30d)]=_0xa5c836,this[_0x43dc8a(0x377)]=new Set(),this[_0x43dc8a(0x36e)]=new Map(),this['_committed']=0x0,this[_0x43dc8a(0x257)]=[],this[_0x43dc8a(0x281)]=[],this[_0x43dc8a(0x221)]=Math[_0x43dc8a(0x31f)](0x0,Number(process.env.OKDB_WRITER_HIGH_WATER??0x400)),this['_outstanding']=0x0,this[_0x43dc8a(0x38f)]=[],this[_0x43dc8a(0x1f5)]=0x0;}async[_0x51957e(0x3cb)](_0x4998d4,_0x4bb6f3){const _0x188b37=_0x51957e;if(_0x3d4334[_0x188b37(0x2bb)]())_0x3d4334[_0x188b37(0x34e)](this[_0x188b37(0x30d)]?.[_0x188b37(0x2f6)],_0x4bb6f3);if(this[_0x188b37(0x276)]){const _0x45b518=new Error(_0x188b37(0x1fa));_0x45b518['code']=_0x188b37(0x247);throw _0x45b518;}if(this['_highWater']>0x0){let _0x1e5a2d=![];while(this[_0x188b37(0x379)]>=this[_0x188b37(0x221)]&&!this[_0x188b37(0x276)]){!_0x1e5a2d&&(_0x1e5a2d=!![],this[_0x188b37(0x1f5)]++),await new Promise(_0x5a6675=>this[_0x188b37(0x38f)][_0x188b37(0x232)](_0x5a6675));}if(this[_0x188b37(0x276)]){const _0x1719dc=new Error(_0x188b37(0x1fa));_0x1719dc[_0x188b37(0x2ff)]=_0x188b37(0x247);throw _0x1719dc;}}this[_0x188b37(0x379)]++;const _0x1198c0=this[_0x188b37(0x30d)][_0x188b37(0x33a)];if(_0x1198c0)await _0x1198c0['beforeWrite']();if(this[_0x188b37(0x276)]){if(_0x1198c0)_0x1198c0['afterWrite']();this[_0x188b37(0x379)]--;if(this[_0x188b37(0x38f)][_0x188b37(0x39e)]&&this[_0x188b37(0x379)]<this[_0x188b37(0x221)])this[_0x188b37(0x38f)][_0x188b37(0x215)]()();const _0x4eee9a=new Error('okdb-writer:\x20env\x20closing\x20—\x20retry');_0x4eee9a[_0x188b37(0x2ff)]='ENV_CLOSING_RETRY';throw _0x4eee9a;}const _0x55ade3=_0x38d037['now']();if(_0x330d0b)try{const _0xaeeae1=this['env']['db']['transactionSync'](_0x4998d4);this[_0x188b37(0x2b4)]++;if(this['_durs'][_0x188b37(0x232)](_0x38d037[_0x188b37(0x2c8)]()-_0x55ade3)>0x100)this[_0x188b37(0x257)]['shift']();if(this['_done'][_0x188b37(0x232)](_0x38d037[_0x188b37(0x2c8)]())>0x800)this[_0x188b37(0x281)]['shift']();return _0xaeeae1;}finally{this[_0x188b37(0x379)]--;if(this[_0x188b37(0x38f)]['length']&&this[_0x188b37(0x379)]<this['_highWater'])this['_bpWaiters'][_0x188b37(0x215)]()();if(_0x1198c0)_0x1198c0['afterWrite']();}const _0x188f25=this[_0x188b37(0x30d)]['db'][_0x188b37(0x2df)](_0x4998d4);this[_0x188b37(0x377)][_0x188b37(0x2e9)](_0x188f25),this['_enqueuedAt']['set'](_0x188f25,_0x55ade3);const _0x469631=()=>{const _0x4a8981=_0x188b37;this[_0x4a8981(0x377)]['delete'](_0x188f25),this['_enqueuedAt'][_0x4a8981(0x362)](_0x188f25),this[_0x4a8981(0x2b4)]++,this[_0x4a8981(0x379)]--;this[_0x4a8981(0x38f)][_0x4a8981(0x39e)]&&this[_0x4a8981(0x379)]<this[_0x4a8981(0x221)]&&this['_bpWaiters']['shift']()();if(this[_0x4a8981(0x257)][_0x4a8981(0x232)](_0x38d037[_0x4a8981(0x2c8)]()-_0x55ade3)>0x100)this[_0x4a8981(0x257)]['shift']();if(this[_0x4a8981(0x281)][_0x4a8981(0x232)](_0x38d037['now']())>0x800)this['_done'][_0x4a8981(0x215)]();};_0x188f25[_0x188b37(0x3b9)](_0x469631,_0x469631);try{return await _0x188f25;}finally{if(_0x1198c0)_0x1198c0[_0x188b37(0x338)]();}}['status'](){const _0x30e8da=_0x51957e,_0x56aee6=_0x38d037[_0x30e8da(0x2c8)]();let _0x458b0d=0x0;for(const _0x86a4d2 of this[_0x30e8da(0x36e)][_0x30e8da(0x387)]()){const _0x518916=_0x56aee6-_0x86a4d2;if(_0x518916>_0x458b0d)_0x458b0d=_0x518916;}let _0x42e971=0x0;for(let _0x34ce4b=this[_0x30e8da(0x281)][_0x30e8da(0x39e)]-0x1;_0x34ce4b>=0x0;_0x34ce4b--){if(_0x56aee6-this['_done'][_0x34ce4b]>0x3e8)break;_0x42e971++;}let _0x5c98a0=0x0;if(this[_0x30e8da(0x257)][_0x30e8da(0x39e)]){const _0x4272f0=[...this[_0x30e8da(0x257)]][_0x30e8da(0x1ab)]((_0x2a0a93,_0x286149)=>_0x2a0a93-_0x286149);_0x5c98a0=_0x4272f0[Math['min'](_0x4272f0['length']-0x1,Math[_0x30e8da(0x382)](_0x4272f0[_0x30e8da(0x39e)]*0.99))];}return{'depth':this[_0x30e8da(0x377)][_0x30e8da(0x389)],'oldestPendingMs':Math[_0x30e8da(0x292)](_0x458b0d),'committed':this[_0x30e8da(0x2b4)],'commitsPerSec':_0x42e971,'commitP99Ms':Math[_0x30e8da(0x292)](_0x5c98a0),'parkedNow':this['_bpWaiters']['length'],'parkedTotal':this[_0x30e8da(0x1f5)],'highWater':this[_0x30e8da(0x221)]};}[_0x51957e(0x3a2)](){const _0x57aafe=_0x51957e,_0x369b6f=_0x38d037[_0x57aafe(0x2c8)]();return[...this[_0x57aafe(0x36e)][_0x57aafe(0x387)]()][_0x57aafe(0x316)](_0x199c12=>Math[_0x57aafe(0x292)](_0x369b6f-_0x199c12))[_0x57aafe(0x1ab)]((_0x36d173,_0x17f7d0)=>_0x17f7d0-_0x36d173);}[_0x51957e(0x1dd)](){const _0x178fad=_0x51957e;this[_0x178fad(0x276)]=!![];for(const _0x569960 of this['_bpWaiters']['splice'](0x0))_0x569960();}async[_0x51957e(0x3ab)](){const _0x41c85a=_0x51957e;let _0x4f3609=0x0;while(this[_0x41c85a(0x377)][_0x41c85a(0x389)]&&_0x4f3609++<0x3e8){await Promise[_0x41c85a(0x35f)]([...this[_0x41c85a(0x377)]]);}}async['put'](_0x5f59dd,_0xca7018,_0x473453,_0x369036){const _0x46d019=_0x51957e;return this[_0x46d019(0x3cb)](()=>{const _0x49ba52=_0x46d019;if(_0x369036===undefined)_0x5f59dd[_0x49ba52(0x3b4)](_0xca7018,_0x473453);else _0x5f59dd[_0x49ba52(0x3b4)](_0xca7018,_0x473453,_0x369036);},'raw-put');}async['remove'](_0x580ac5,_0x1a2135){const _0x53b02a=_0x51957e;return this['transaction'](()=>_0x580ac5['removeSync'](_0x1a2135),_0x53b02a(0x226));}}async function _0x23ffca(_0x3b3d06,_0x35169b){const _0x1455da=_0x51957e;if(_0x35169b==null)_0x35169b=Math[_0x1455da(0x31f)](0x3e8,Number(process.env.OKDB_FLUSH_BEFORE_CLOSE_MS)||0x1d4c0);try{const _0x223c58=_0x3b3d06?.[_0x1455da(0x33d)];if(!_0x223c58||typeof _0x223c58[_0x1455da(0x3b9)]!==_0x1455da(0x1dc))return;await Promise[_0x1455da(0x1a8)]([Promise['resolve'](_0x223c58)[_0x1455da(0x238)](()=>{}),new Promise(_0x5ec5af=>{const _0xebee3=_0x1455da,_0x37ee30=setTimeout(_0x5ec5af,_0x35169b);if(_0x37ee30[_0xebee3(0x371)])_0x37ee30['unref']();})]);}catch{}}function _0x451efb(_0x2c1563){const _0x41d5e2=_0x51957e;if(_0x330d0b)return Promise[_0x41d5e2(0x380)]();const _0xc75b7a=_0x2c1563?.[_0x41d5e2(0x330)];return _0xc75b7a&&typeof _0xc75b7a[_0x41d5e2(0x3b9)]==='function'?_0xc75b7a:Promise[_0x41d5e2(0x380)]();}return okdbWriter[_0x51957e(0x34f)]=_0x567a64,okdbWriter[_0x51957e(0x34f)]['flushLmdb']=_0x23ffca,okdbWriter['exports'][_0x51957e(0x330)]=_0x451efb,okdbWriter[_0x51957e(0x34f)][_0x51957e(0x1ba)]=_0x330d0b,okdbWriter[_0x51957e(0x34f)];}var okdbLock,hasRequiredOkdbLock;function requireOkdbLock(){const _0x516dfe=_0x487946;if(hasRequiredOkdbLock)return okdbLock;hasRequiredOkdbLock=0x1;const _0x446f88=require$$0$3,{SYNC_COMMITS:_0x1d0462}=requireOkdbWriter(),_0x4c05a5=_0x516dfe(0x303);class _0xd88138{constructor(_0x58ae00,_0x1907f6,_0xe02f81){const _0x5beb05=_0x516dfe;this[_0x5beb05(0x1c0)]=_0x58ae00,this[_0x5beb05(0x33c)]=_0x1907f6,this[_0x5beb05(0x3c3)]=_0xe02f81,this['_released']=![],this[_0x5beb05(0x34b)]=null,this[_0x5beb05(0x272)]=null;}[_0x516dfe(0x282)](){const _0x13290c=_0x516dfe;if(this['_released'])return![];try{const _0x2c577c=this[_0x13290c(0x1c0)][_0x13290c(0x2fb)]()[_0x13290c(0x2cf)](this['_key']);if(!_0x2c577c||_0x2c577c[_0x13290c(0x35b)]!==this[_0x13290c(0x3c3)])return![];const _0x4849da=_0x2c577c[_0x13290c(0x342)]??_0x2c577c[_0x13290c(0x35b)];if(_0x4849da+_0x2c577c[_0x13290c(0x218)]<Date[_0x13290c(0x2c8)]())return![];return!![];}catch{return!this[_0x13290c(0x2f0)];}}[_0x516dfe(0x390)](){const _0x2775b1=_0x516dfe;if(this[_0x2775b1(0x2f0)])return null;try{return this[_0x2775b1(0x1c0)][_0x2775b1(0x2fb)]()['get'](this[_0x2775b1(0x33c)])??null;}catch{return null;}}async['extend'](_0x9d98fe){const _0x418f7d=_0x516dfe;if(this[_0x418f7d(0x2f0)])return;try{const _0x3fa738=this['_lock']['_db']()[_0x418f7d(0x2cf)](this['_key']);if(!_0x3fa738||_0x3fa738[_0x418f7d(0x35b)]!==this[_0x418f7d(0x3c3)])return;if(_0x1d0462)this[_0x418f7d(0x1c0)][_0x418f7d(0x2fb)]()[_0x418f7d(0x3b4)](this[_0x418f7d(0x33c)],{..._0x3fa738,'ttlMs':_0x3fa738[_0x418f7d(0x218)]+_0x9d98fe});else await this['_lock'][_0x418f7d(0x2fb)]()[_0x418f7d(0x32c)](this[_0x418f7d(0x33c)],{..._0x3fa738,'ttlMs':_0x3fa738[_0x418f7d(0x218)]+_0x9d98fe});}catch{}}async['release'](){const _0x22545b=_0x516dfe;if(this['_released'])return;if(this[_0x22545b(0x272)])try{await this['_heartbeatInFlight'];}catch{}clearInterval(this['_heartbeatTimer']),this[_0x22545b(0x34b)]=null,this[_0x22545b(0x2f0)]=!![];try{const _0x294f51=this[_0x22545b(0x1c0)][_0x22545b(0x2fb)]()['get'](this['_key']);if(_0x294f51&&_0x294f51['acquiredAt']===this[_0x22545b(0x3c3)]){if(_0x1d0462)this[_0x22545b(0x1c0)][_0x22545b(0x2fb)]()[_0x22545b(0x3c9)](this[_0x22545b(0x33c)]);else await this['_lock'][_0x22545b(0x2fb)]()['remove'](this[_0x22545b(0x33c)]);}}catch{}}[_0x516dfe(0x2d3)](_0x49765f,_0xe1801e){const _0x46551c=_0x516dfe,_0x54a269=_0xe1801e??Math[_0x46551c(0x382)](_0x49765f/0x3);this[_0x46551c(0x34b)]=setInterval(()=>{const _0x224191=_0x46551c;if(this[_0x224191(0x2f0)])return;this[_0x224191(0x272)]=((async()=>{const _0x47ec06=_0x224191;try{const _0x382a0a=this[_0x47ec06(0x1c0)][_0x47ec06(0x2fb)]()[_0x47ec06(0x2cf)](this[_0x47ec06(0x33c)]);if(!_0x382a0a||_0x382a0a['acquiredAt']!==this[_0x47ec06(0x3c3)]){this[_0x47ec06(0x2f0)]=!![],clearInterval(this[_0x47ec06(0x34b)]),this[_0x47ec06(0x34b)]=null;return;}if(_0x1d0462)this[_0x47ec06(0x1c0)][_0x47ec06(0x2fb)]()[_0x47ec06(0x3b4)](this[_0x47ec06(0x33c)],{..._0x382a0a,'updatedAt':Date[_0x47ec06(0x2c8)]()});else await this[_0x47ec06(0x1c0)][_0x47ec06(0x2fb)]()[_0x47ec06(0x32c)](this['_key'],{..._0x382a0a,'updatedAt':Date['now']()});}catch{}this[_0x47ec06(0x272)]=null;})());},_0x54a269);if(this[_0x46551c(0x34b)][_0x46551c(0x371)])this[_0x46551c(0x34b)][_0x46551c(0x371)]();}}class _0x2439c9{constructor(_0x1c1783,{namespace:_0x58da7c,ttlMs:ttlMs=0x7530,heartbeatMs:heartbeatMs=null}={}){const _0x53bd8a=_0x516dfe;this[_0x53bd8a(0x357)]=_0x1c1783,this[_0x53bd8a(0x326)]=_0x58da7c,this[_0x53bd8a(0x218)]=ttlMs,this[_0x53bd8a(0x39c)]=heartbeatMs,this[_0x53bd8a(0x2f2)]=null;}[_0x516dfe(0x2fb)](){const _0x2cb555=_0x516dfe;return!this['_lockDb']&&(this['_lockDb']=this['_rawDb']['openDB'](_0x4c05a5,{'dupSort':![]})),this[_0x2cb555(0x2f2)];}[_0x516dfe(0x2d1)](){const _0x4b97e5=_0x516dfe;return!this['_wantDbHandle']&&(this[_0x4b97e5(0x3b7)]=this[_0x4b97e5(0x357)]['openDB'](_0x4c05a5+_0x4b97e5(0x311),{'dupSort':![]})),this[_0x4b97e5(0x3b7)];}[_0x516dfe(0x33c)](_0x159b38){const _0x5a1603=_0x516dfe;return this[_0x5a1603(0x326)]+':'+_0x159b38;}['signalWant'](_0x367fa9){const _0x1d68c5=_0x516dfe;try{_0x1d0462?this[_0x1d68c5(0x2d1)]()[_0x1d68c5(0x3b4)](this[_0x1d68c5(0x33c)](_0x367fa9),Date['now']()):this[_0x1d68c5(0x2d1)]()[_0x1d68c5(0x32c)](this[_0x1d68c5(0x33c)](_0x367fa9),Date[_0x1d68c5(0x2c8)]())?.[_0x1d68c5(0x238)]?.(()=>{});}catch{}}['isWanted'](_0x3b8699,_0x4942c2=0x3e8){const _0x562e12=_0x516dfe;try{const _0x3b1b73=this[_0x562e12(0x2d1)]()['get'](this[_0x562e12(0x33c)](_0x3b8699));return typeof _0x3b1b73===_0x562e12(0x37a)&&Date['now']()-_0x3b1b73<_0x4942c2;}catch{return![];}}['_isStale'](_0x280e24){const _0x5c3216=_0x516dfe,_0x58f03a=_0x280e24[_0x5c3216(0x342)]??_0x280e24['acquiredAt'];return _0x58f03a+_0x280e24[_0x5c3216(0x218)]<Date[_0x5c3216(0x2c8)]();}static['_holderDead'](_0x2df765){const _0x1f03ec=_0x516dfe,_0x25a87=_0x2df765?.['holder'];if(!_0x25a87||typeof _0x25a87[_0x1f03ec(0x2e8)]!=='number')return![];if(_0x25a87[_0x1f03ec(0x2cd)]!==_0x446f88[_0x1f03ec(0x2cd)]())return![];if(_0x25a87[_0x1f03ec(0x2e8)]===process[_0x1f03ec(0x2e8)])return![];try{return process['kill'](_0x25a87[_0x1f03ec(0x2e8)],0x0),![];}catch(_0x572017){return _0x572017[_0x1f03ec(0x2ff)]===_0x1f03ec(0x334);}}async[_0x516dfe(0x209)](_0x967592,_0x30f97a={},_0x26f810={}){const _0x4667c3=_0x516dfe,_0x1a39fe=this[_0x4667c3(0x33c)](_0x967592),_0x427df7=_0x26f810['ttlMs']??this[_0x4667c3(0x218)],_0x506acd=Date[_0x4667c3(0x2c8)](),_0x4812a9={'holder':{'pid':process[_0x4667c3(0x2e8)],'hostname':_0x446f88[_0x4667c3(0x2cd)](),..._0x30f97a},'acquiredAt':_0x506acd,'updatedAt':_0x506acd,'ttlMs':_0x427df7};let _0x1276e6=![],_0x372de0=null;try{const _0xe13b80=()=>{const _0x13e22c=_0x4667c3,_0x2f45b2=this[_0x13e22c(0x2fb)]()[_0x13e22c(0x2cf)](_0x1a39fe);if(_0x2f45b2&&!this[_0x13e22c(0x37c)](_0x2f45b2)&&!_0x2439c9['_holderDead'](_0x2f45b2)){const _0x388d25=_0x30f97a['processorId']!=null&&_0x2f45b2['holder'][_0x13e22c(0x2e8)]===process[_0x13e22c(0x2e8)]&&_0x2f45b2['holder'][_0x13e22c(0x268)]===_0x30f97a['processorId'];if(!_0x388d25){_0x1276e6=![],_0x372de0=_0x2f45b2;return;}_0x4812a9[_0x13e22c(0x35b)]<=_0x2f45b2['acquiredAt']&&(_0x4812a9['acquiredAt']=_0x2f45b2[_0x13e22c(0x35b)]+0x1,_0x4812a9[_0x13e22c(0x342)]=_0x4812a9[_0x13e22c(0x35b)]);}this[_0x13e22c(0x2fb)]()[_0x13e22c(0x32c)](_0x1a39fe,_0x4812a9),_0x1276e6=!![],_0x372de0=_0x4812a9;};if(_0x1d0462)this[_0x4667c3(0x2fb)]()[_0x4667c3(0x383)](_0xe13b80);else await this[_0x4667c3(0x2fb)]()[_0x4667c3(0x2df)](_0xe13b80);}catch{return{'acquired':![],'handle':null,'current':null};}if(!_0x1276e6)return{'acquired':![],'handle':null,'current':_0x372de0};const _0x39a912=new _0xd88138(this,_0x1a39fe,_0x4812a9[_0x4667c3(0x35b)]);return _0x39a912[_0x4667c3(0x2d3)](_0x427df7,this[_0x4667c3(0x39c)]),{'acquired':!![],'handle':_0x39a912,'current':_0x372de0};}[_0x516dfe(0x1da)](_0x1575c0){const _0x3df4da=_0x516dfe;try{return this[_0x3df4da(0x2fb)]()[_0x3df4da(0x2cf)](this[_0x3df4da(0x33c)](_0x1575c0))??null;}catch{return null;}}[_0x516dfe(0x3c6)](){const _0x13ccd7=_0x516dfe,_0x1b60bd=this['namespace']+':',_0x2ed850=[];try{for(const {key:_0x259745,value:_0x29dcee}of this[_0x13ccd7(0x2fb)]()[_0x13ccd7(0x3ac)]({'start':_0x1b60bd,'end':_0x1b60bd+'ÿ'})){typeof _0x259745===_0x13ccd7(0x2c3)&&_0x259745[_0x13ccd7(0x2ae)](_0x1b60bd)&&_0x2ed850[_0x13ccd7(0x232)]({'id':_0x259745['slice'](_0x1b60bd[_0x13ccd7(0x39e)]),'entry':_0x29dcee});}}catch{}return _0x2ed850;}static[_0x516dfe(0x3d0)](_0x5aa63b){const _0x25a222=_0x516dfe,_0x41013e=[];try{const _0x245356=_0x5aa63b[_0x25a222(0x20d)](_0x4c05a5,{'dupSort':![]});for(const {key:_0x1381ed,value:_0x577522}of _0x245356[_0x25a222(0x3ac)]({})){if(typeof _0x1381ed!=='string')continue;const _0x2afa9f=_0x1381ed['indexOf'](':');if(_0x2afa9f<0x1)continue;_0x41013e['push']({'namespace':_0x1381ed[_0x25a222(0x2e7)](0x0,_0x2afa9f),'id':_0x1381ed[_0x25a222(0x2e7)](_0x2afa9f+0x1),'entry':_0x577522});}}catch{}return _0x41013e;}}return okdbLock={'OKDBLock':_0x2439c9},okdbLock;}var okdbProcessRegistry,hasRequiredOkdbProcessRegistry;function requireOkdbProcessRegistry(){const _0x68432e=_0x487946;if(hasRequiredOkdbProcessRegistry)return okdbProcessRegistry;hasRequiredOkdbProcessRegistry=0x1;const _0x20f178=require$$0$3,_0x3fd64e=require$$1$1,_0x4ec782=require$$2,{LOOP:_0xa51e67}=requireOkdbLoopMonitor(),{OKDBLock:_0x551c02}=requireOkdbLock(),{SYNC_COMMITS:_0x4b52cc}=requireOkdbWriter(),_0x2cc658='~processes',_0x3c2344=_0x68432e(0x30b),_0x5c63a1=_0x68432e(0x1c3),_0x367bd7='~processes:cmd',_0x5dfbb5=(_0x3f0939,_0x523d18)=>_0x3f0939+':'+_0x523d18,_0x73c97e=(_0x2df740,_0x35ba1c)=>_0x2df740+'::'+_0x35ba1c,_0x4727b0=(_0x3e201f,_0x38be76)=>_0x3e201f+'/'+_0x38be76,_0xc20854=(_0x25ba2c,_0x119f59)=>_0x25ba2c+'#'+_0x119f59,_0x346080=_0x54df84=>{const _0x3f157c=_0x68432e;if(_0x54df84?.[_0x3f157c(0x220)])return _0x54df84[_0x3f157c(0x220)];const _0x4aff1a=_0x54df84?.[_0x3f157c(0x1cd)];return typeof _0x4aff1a==='string'&&_0x4aff1a[_0x3f157c(0x2e0)]('#')?_0x4aff1a[_0x3f157c(0x2e7)](0x0,_0x4aff1a[_0x3f157c(0x1e1)]('#')):_0x4aff1a;},_0x31a63d=Number(process.env.OKDB_WORKERS_HEARTBEAT_MS)||0x2710,_0xf45cc=Number(process.env.OKDB_WORKERS_PUBLISH_MS)||0x3e8,_0x3b7c59=_0x31a63d*0x3,_0x278bc8=Number(process.env.OKDB_PID_REUSE_HORIZON_MS)||Math[_0x68432e(0x31f)](0x927c0,_0x3b7c59*0x14),_0x7806c3=[_0x68432e(0x25b),_0x68432e(0x3a9),_0x68432e(0x2e5),_0x68432e(0x21f),_0x68432e(0x269),_0x68432e(0x29a)];let _0x6f5c06=null;function _0x341077(){const _0x294afe=_0x68432e;if(_0x6f5c06==null)_0x6f5c06=Math[_0x294afe(0x292)]((Date['now']()-process[_0x294afe(0x263)]()*0x3e8)/0x3e8)*0x3e8;return _0x6f5c06;}function _0x31e34d(_0x5ef173){const _0x1339a2=_0x68432e;if(process.env.OKDB_PROCESS_KILL===_0x1339a2(0x200))return![];if(_0x5ef173?.[_0x1339a2(0x361)]?.[_0x1339a2(0x37e)]&&typeof _0x5ef173['options'][_0x1339a2(0x37e)]==='object'&&_0x5ef173[_0x1339a2(0x361)][_0x1339a2(0x37e)][_0x1339a2(0x2b8)]===![])return![];return!![];}function _0x17a946(_0x3a7a28,_0x78c68a){const _0x47e634=_0x68432e,_0x44e7ce=!!_0x78c68a?.[_0x47e634(0x33f)];switch(_0x3a7a28){case _0x47e634(0x24c):return{'controllable':_0x44e7ce,'decommissionable':![],'killable':!![],'killConfirm':'cluster-wide'};case _0x47e634(0x346):case _0x47e634(0x256):return{'controllable':_0x44e7ce,'decommissionable':![],'killable':!![],'killConfirm':'confirm'};case'embedded':return{'controllable':![],'decommissionable':![],'killable':![]};case _0x47e634(0x244):case _0x47e634(0x378):case'fn-runner':case _0x47e634(0x249):return{'controllable':![],'decommissionable':!![],'killable':!![],'killConfirm':'force'};default:return{'controllable':![],'decommissionable':![],'killable':![]};}}class _0x180ced{constructor(_0xeeece8){const _0x356937=_0x68432e;this[_0x356937(0x204)]=_0xeeece8,this['_statusEnv']=null,this[_0x356937(0x2b5)]=null,this[_0x356937(0x22e)]=new Map(),this[_0x356937(0x20f)]=null,this['_isWriter']=![],this['_isReader']=![],this[_0x356937(0x22b)]=_0x341077(),this['_selfKey']=_0x5dfbb5(process[_0x356937(0x2e8)],this[_0x356937(0x22b)]),this[_0x356937(0x223)]=_0x4ec782[_0x356937(0x2bd)]()[_0x356937(0x2e7)](0x0,0x8),this[_0x356937(0x251)]=_0xc20854(this['_selfKey'],this[_0x356937(0x223)]),this[_0x356937(0x335)]=Date[_0x356937(0x2c8)](),this[_0x356937(0x28c)]=null,this[_0x356937(0x398)]=null,this[_0x356937(0x231)]=null,this['_hbTimer']=null,this[_0x356937(0x332)]=null,this[_0x356937(0x3bc)]=null,this['_lastPublishAt']=0x0,this[_0x356937(0x2d5)]={},this[_0x356937(0x2a6)]=new Map(),this[_0x356937(0x283)]=process['cpuUsage'](),this['_lastCpuAt']=Date[_0x356937(0x2c8)](),this[_0x356937(0x233)]=0x0,this[_0x356937(0x203)]=new Map();}get[_0x68432e(0x3ba)](){const _0x3be1a8=_0x68432e;return this[_0x3be1a8(0x255)];}get[_0x68432e(0x1e0)](){const _0x5f4533=_0x68432e;return this[_0x5f4533(0x251)];}[_0x68432e(0x373)](_0x1211a2,_0x3e44ed){const _0x3fafe7=_0x68432e,_0x3a8101=_0x17a946(_0x1211a2,_0x3e44ed);if(_0x3a8101[_0x3fafe7(0x2fa)]&&!_0x31e34d(this[_0x3fafe7(0x204)]))return{..._0x3a8101,'killable':![],'killConfirm':undefined};return _0x3a8101;}[_0x68432e(0x397)](){const _0x25e1b4=_0x68432e;return!!this[_0x25e1b4(0x31c)];}['setOwnMeta'](_0x2bceac){const _0x35ebdf=_0x68432e;Object[_0x35ebdf(0x202)](this[_0x35ebdf(0x2d5)],_0x2bceac||{});}['noteListenAddr'](_0x5c61e9){if(_0x5c61e9)this['_listenAddr']=_0x5c61e9;}[_0x68432e(0x2ca)](_0x15843b={}){const _0x21ac80=_0x68432e;return this[_0x21ac80(0x204)][_0x21ac80(0x22f)](_0x15843b);}[_0x68432e(0x1be)](){const _0x3fc726=_0x68432e,_0x5d64aa={};let _0x26fea2=0x0,_0x61a6e0=0x0;const _0x5cac07=new Set();for(const _0x29b1d1 of this[_0x3fc726(0x325)]()){_0x61a6e0++;const _0x4ae944=_0x29b1d1['processing'];if(!_0x4ae944)continue;if(_0x4ae944['participate'])_0x26fea2++;for(const _0x38de36 of _0x4ae944[_0x3fc726(0x33f)]||[]){if(![_0x3fc726(0x2f8),_0x3fc726(0x252)][_0x3fc726(0x2e0)](_0x38de36[_0x3fc726(0x3cf)]))continue;(_0x38de36[_0x3fc726(0x201)]==='online'||_0x38de36[_0x3fc726(0x201)]===_0x3fc726(0x1b0))&&_0x38de36['cursorKey']&&_0x5cac07[_0x3fc726(0x2e9)]((_0x38de36[_0x3fc726(0x30d)]||'default')+':'+_0x38de36[_0x3fc726(0x29e)]);const _0xa1121=_0x38de36[_0x3fc726(0x30d)]||_0x3fc726(0x1f2);(_0x5d64aa[_0xa1121]||=[])[_0x3fc726(0x232)]({..._0x38de36,'env':_0xa1121,'owner':{'pid':_0x29b1d1[_0x3fc726(0x2e8)]??null,'kind':_0x29b1d1[_0x3fc726(0x1c9)]??null}});}}for(const [_0x246553,_0x521ad4]of Object[_0x3fc726(0x23e)](_0x5d64aa)){for(const _0x412c49 of _0x521ad4){if(_0x412c49['mode']===_0x3fc726(0x2f8)&&!_0x412c49['claimGated']){const _0x336b9a=_0x246553+':'+(_0x412c49[_0x3fc726(0x29e)]??'');if(!_0x5cac07[_0x3fc726(0x242)](_0x336b9a))_0x412c49[_0x3fc726(0x25f)]=!![];}}}return{'envs':_0x5d64aa,'policy':null,'participation':{'participating':_0x26fea2,'total':_0x61a6e0},'source':_0x3fc726(0x369)};}[_0x68432e(0x28d)](){const _0x532c4a=_0x68432e,_0x371bd3=_0xc9a4ee=>{const _0xe40515=_0x1273;if(_0xc9a4ee[_0xe40515(0x201)]===_0xe40515(0x297)||_0xc9a4ee[_0xe40515(0x201)]===_0xe40515(0x1b0)||_0xc9a4ee[_0xe40515(0x201)]===_0xe40515(0x20c))return 0x3;if(_0xc9a4ee[_0xe40515(0x1c7)])return 0x1;return 0x2;},_0x43a9bb=new Map();for(const _0x4ab586 of this['listNodes']()){for(const _0xa04f53 of _0x4ab586[_0x532c4a(0x323)]?.[_0x532c4a(0x33f)]||[]){const _0x3c6549={..._0xa04f53,'owner':{'pid':_0x4ab586[_0x532c4a(0x2e8)]??null,'kind':_0x4ab586[_0x532c4a(0x1c9)]??null,'host':_0x4ab586[_0x532c4a(0x3cd)]??null}},_0x3103fb=_0xa04f53[_0x532c4a(0x3cf)]===_0x532c4a(0x2f8)?_0x532c4a(0x304)+(_0xa04f53[_0x532c4a(0x30d)]??'')+'::'+(_0xa04f53[_0x532c4a(0x29e)]??_0xa04f53[_0x532c4a(0x3c5)]??_0xa04f53['id']):_0x532c4a(0x1c1)+(_0x4ab586[_0x532c4a(0x1cd)]??_0x4ab586[_0x532c4a(0x220)]??'')+'::'+(_0xa04f53[_0x532c4a(0x30d)]??'')+'::'+_0xa04f53['id'],_0xf87d61=_0x43a9bb['get'](_0x3103fb);if(!_0xf87d61||_0x371bd3(_0x3c6549)>_0x371bd3(_0xf87d61))_0x43a9bb[_0x532c4a(0x1e5)](_0x3103fb,_0x3c6549);}}return[..._0x43a9bb['values']()];}['clusterStatusView'](){const _0x49a12e=_0x68432e,_0x2fc5d9=Date[_0x49a12e(0x2c8)](),_0x4d7c9f=this[_0x49a12e(0x325)](),_0x30aac0=_0x3c7ca4=>Math[_0x49a12e(0x31f)](0x0,Math[_0x49a12e(0x292)]((_0x2fc5d9-(_0x3c7ca4[_0x49a12e(0x23b)]||_0x2fc5d9))/0x3e8)),_0x45ffaa=_0x4d7c9f[_0x49a12e(0x2d4)](_0x435262=>_0x435262[_0x49a12e(0x1c9)]===_0x49a12e(0x24c)),_0x262d8a=_0x4d7c9f['filter'](_0xc99f31=>_0xc99f31[_0x49a12e(0x1c9)]==='http-server');if(_0x45ffaa||_0x262d8a[_0x49a12e(0x39e)])return{'primary':_0x45ffaa?{'pid':_0x45ffaa[_0x49a12e(0x2e8)],'uptime':_0x30aac0(_0x45ffaa)}:null,'workers':_0x262d8a[_0x49a12e(0x316)](_0x35bdd9=>({'pid':_0x35bdd9['pid'],'uptime':_0x30aac0(_0x35bdd9)})),'workersConfigured':_0x45ffaa?.['meta']?.['workersConfigured']??_0x262d8a[_0x49a12e(0x39e)],'mode':_0x49a12e(0x1cf)};const _0x4e9c41=_0x4d7c9f['find'](_0x587772=>_0x587772[_0x49a12e(0x1c9)]===_0x49a12e(0x346)||_0x587772[_0x49a12e(0x1c9)]===_0x49a12e(0x256)||_0x587772[_0x49a12e(0x1c9)]===_0x49a12e(0x23d)),_0x491e13=_0x4e9c41?{'pid':_0x4e9c41[_0x49a12e(0x2e8)],'uptime':_0x30aac0(_0x4e9c41)}:{'pid':process[_0x49a12e(0x2e8)],'uptime':Math['max'](0x0,Math[_0x49a12e(0x292)](process[_0x49a12e(0x263)]()))};return{'primary':_0x491e13,'workers':[_0x491e13],'workersConfigured':0x1,'mode':_0x49a12e(0x2f8)};}['nodesView'](){return this['_groupByProcess']();}[_0x68432e(0x2b6)](){const _0x1a8d2c=_0x68432e,_0x218de0=new Map();for(const _0x14c609 of this[_0x1a8d2c(0x29b)]())_0x218de0[_0x1a8d2c(0x1e5)](_0x14c609['processKey'],{..._0x14c609,'children':[]});const _0x4658cb=[];for(const _0x34bf13 of _0x218de0['values']()){const _0x27de67=_0x34bf13[_0x1a8d2c(0x26d)]?_0x218de0['get'](_0x34bf13[_0x1a8d2c(0x26d)]):null;if(_0x27de67&&_0x27de67!==_0x34bf13)_0x27de67[_0x1a8d2c(0x284)]['push'](_0x34bf13);else _0x4658cb[_0x1a8d2c(0x232)](_0x34bf13);}const _0x4fafd7=(_0x3ef8f5,_0x51c104)=>_0x3ef8f5[_0x1a8d2c(0x1c9)]===_0x51c104[_0x1a8d2c(0x1c9)]?(_0x3ef8f5[_0x1a8d2c(0x2e8)]||0x0)-(_0x51c104[_0x1a8d2c(0x2e8)]||0x0):(_0x3ef8f5[_0x1a8d2c(0x1c9)]??'')<(_0x51c104[_0x1a8d2c(0x1c9)]??'')?-0x1:0x1,_0x352bbd=_0x31fcdb=>{const _0x59bd45=_0x1a8d2c;_0x31fcdb[_0x59bd45(0x1ab)](_0x4fafd7);for(const _0x3681e1 of _0x31fcdb)if(_0x3681e1[_0x59bd45(0x284)][_0x59bd45(0x39e)])_0x352bbd(_0x3681e1[_0x59bd45(0x284)]);};return _0x352bbd(_0x4658cb),_0x4658cb;}[_0x68432e(0x300)](_0x3da424){const _0x27c364=_0x68432e;return this[_0x27c364(0x29b)]()[_0x27c364(0x2d4)](_0x5db818=>_0x5db818[_0x27c364(0x220)]===_0x3da424)??null;}[_0x68432e(0x29b)](_0x5713e8=Date['now']()){const _0x4df009=_0x68432e,_0x49100b=new Map();for(const _0x449be4 of this[_0x4df009(0x325)]()){const _0x233752=_0x346080(_0x449be4);let _0x15d8d6=_0x49100b['get'](_0x233752);!_0x15d8d6&&(_0x15d8d6={'processKey':_0x233752,'nodeKey':_0x233752,'pid':_0x449be4[_0x4df009(0x2e8)],'ppid':_0x449be4[_0x4df009(0x1a6)]??null,'host':_0x449be4[_0x4df009(0x3cd)]??null,'kind':_0x449be4[_0x4df009(0x1c9)],'role':null,'supervisorKey':_0x449be4[_0x4df009(0x26d)]??null,'slot':_0x449be4[_0x4df009(0x35d)]??null,'slotKey':_0x449be4[_0x4df009(0x25c)]??null,'caps':_0x449be4[_0x4df009(0x363)]??null,'lifecycle':_0x449be4[_0x4df009(0x212)]??null,'uptime':Math['max'](0x0,Math[_0x4df009(0x292)]((_0x5713e8-(_0x449be4[_0x4df009(0x23b)]||_0x5713e8))/0x3e8)),'startedAt':_0x449be4[_0x4df009(0x23b)]??null,'meta':_0x449be4['meta']??null,'listenAddr':null,'processing':null,'engines':null,'singletonClaims':null,'stats':null,'instances':[]},_0x49100b[_0x4df009(0x1e5)](_0x233752,_0x15d8d6));_0x15d8d6[_0x4df009(0x312)][_0x4df009(0x232)]({'instanceId':_0x449be4[_0x4df009(0x1f1)]??null,'role':_0x449be4[_0x4df009(0x1f9)]??null,'listenAddr':_0x449be4[_0x4df009(0x35e)]??null,'lifecycle':_0x449be4[_0x4df009(0x212)]??null,'processing':_0x449be4[_0x4df009(0x323)]??null});if(!_0x15d8d6[_0x4df009(0x1f9)]&&_0x449be4[_0x4df009(0x1f9)])_0x15d8d6[_0x4df009(0x1f9)]=_0x449be4[_0x4df009(0x1f9)];if(!_0x15d8d6[_0x4df009(0x35e)]&&_0x449be4[_0x4df009(0x35e)])_0x15d8d6[_0x4df009(0x35e)]=_0x449be4[_0x4df009(0x35e)];if(!_0x15d8d6[_0x4df009(0x323)]&&_0x449be4[_0x4df009(0x323)])_0x15d8d6[_0x4df009(0x323)]=_0x449be4['processing'];if(!_0x15d8d6['engines']&&_0x449be4[_0x4df009(0x2da)])_0x15d8d6[_0x4df009(0x2da)]=_0x449be4[_0x4df009(0x2da)];if(!_0x15d8d6[_0x4df009(0x211)]&&_0x449be4[_0x4df009(0x211)])_0x15d8d6[_0x4df009(0x211)]=_0x449be4[_0x4df009(0x211)];if(_0x15d8d6[_0x4df009(0x363)]==null&&_0x449be4[_0x4df009(0x363)])_0x15d8d6[_0x4df009(0x363)]=_0x449be4[_0x4df009(0x363)];if(_0x449be4[_0x4df009(0x2d0)]&&(!_0x15d8d6[_0x4df009(0x2d0)]||(_0x449be4[_0x4df009(0x2d0)]['at']??0x0)>(_0x15d8d6['stats']['at']??0x0)))_0x15d8d6[_0x4df009(0x2d0)]=_0x449be4[_0x4df009(0x2d0)];}return[..._0x49100b[_0x4df009(0x387)]()];}[_0x68432e(0x30e)](){const _0x2aedd7=_0x68432e,_0xbfaa04=[],_0x2e3530={'rss':0x0,'heapUsed':0x0,'processes':0x0,'threads':{'count':0x0,'sandbox':0x0,'busy':0x0}};for(const _0x203604 of this['_groupByProcess']()){_0xbfaa04['push']({'processKey':_0x203604[_0x2aedd7(0x220)],'kind':_0x203604[_0x2aedd7(0x1c9)],'pid':_0x203604[_0x2aedd7(0x2e8)],'supervisorKey':_0x203604['supervisorKey'],'meta':_0x203604['meta']??null,'uptime':_0x203604['uptime'],'stats':_0x203604[_0x2aedd7(0x2d0)]??null}),_0x2e3530['processes']++;if(_0x203604[_0x2aedd7(0x2d0)]){_0x2e3530[_0x2aedd7(0x1ad)]+=_0x203604[_0x2aedd7(0x2d0)][_0x2aedd7(0x1ad)]||0x0,_0x2e3530['heapUsed']+=(_0x203604[_0x2aedd7(0x2d0)][_0x2aedd7(0x31d)]||0x0)+(_0x203604[_0x2aedd7(0x2d0)][_0x2aedd7(0x275)]?.[_0x2aedd7(0x31d)]||0x0);const _0x256ac1=_0x203604['stats'][_0x2aedd7(0x275)];_0x256ac1&&(_0x2e3530[_0x2aedd7(0x275)][_0x2aedd7(0x1b8)]+=_0x256ac1['count']||0x0,_0x2e3530['threads'][_0x2aedd7(0x364)]+=_0x256ac1[_0x2aedd7(0x364)]||0x0,_0x2e3530['threads'][_0x2aedd7(0x30a)]+=_0x256ac1[_0x2aedd7(0x30a)]||0x0);}}return{'totals':_0x2e3530,'nodes':_0xbfaa04};}async['open']({writer:writer=![],reader:reader=![],kind:kind=null,supervisorKey:supervisorKey=null,listenAddr:listenAddr=null}={}){const _0x3b3cf8=_0x68432e;this[_0x3b3cf8(0x2d2)]=this[_0x3b3cf8(0x2d2)]||!!writer,this[_0x3b3cf8(0x355)]=this[_0x3b3cf8(0x355)]||!!reader,this[_0x3b3cf8(0x28c)]=kind||this[_0x3b3cf8(0x28c)]||(_0x3fd64e[_0x3b3cf8(0x2e6)]?'http-server':'cli'),this[_0x3b3cf8(0x398)]=supervisorKey??this['_supervisorKey'],this[_0x3b3cf8(0x231)]=listenAddr??this[_0x3b3cf8(0x231)],this[_0x3b3cf8(0x291)](),await this['_migrateVocab']();if(!writer&&!reader)return null;if(!this[_0x3b3cf8(0x31c)]){const _0x37d3e0=await this['okdb'][_0x3b3cf8(0x2a2)](_0x2cc658,{'sync':![],'durability':'fast'});if(!_0x37d3e0[_0x3b3cf8(0x2ef)](_0x3c2344))await _0x37d3e0[_0x3b3cf8(0x350)](_0x3c2344);this['_statusEnv']=_0x37d3e0;}return this[_0x3b3cf8(0x31c)];}[_0x68432e(0x219)](){const _0xc5e8c0=_0x68432e;return this[_0xc5e8c0(0x2fe)]!==this['_statusEnv']&&(this[_0xc5e8c0(0x2fe)]=this[_0xc5e8c0(0x31c)],this[_0xc5e8c0(0x3a4)]=this[_0xc5e8c0(0x31c)][_0xc5e8c0(0x2a7)](_0x3c2344)['data']),this[_0xc5e8c0(0x3a4)];}[_0x68432e(0x274)](_0x4e3772){const _0x340c=_0x68432e;if(_0x4b52cc)return this['_nodeDb']()['putSync'](_0x4e3772['nodeKey'],_0x4e3772,0x1);const _0x356999=this[_0x340c(0x219)]()['put'](_0x4e3772[_0x340c(0x1cd)],_0x4e3772,0x1);if(_0x356999&&typeof _0x356999[_0x340c(0x3b9)]===_0x340c(0x1dc))_0x356999[_0x340c(0x3b9)](undefined,()=>{});return _0x356999;}[_0x68432e(0x39b)](_0x1c78b4){const _0x1273b2=_0x68432e;return this[_0x1273b2(0x219)]()[_0x1273b2(0x3b4)](_0x1c78b4['nodeKey'],_0x1c78b4,0x1);}[_0x68432e(0x29c)](_0x3c467e){const _0x244548=_0x68432e;if(_0x4b52cc)try{return this[_0x244548(0x219)]()['removeSync'](_0x3c467e);}catch{return![];}const _0x17f301=this[_0x244548(0x219)]()[_0x244548(0x333)](_0x3c467e);if(_0x17f301&&typeof _0x17f301[_0x244548(0x3b9)]==='function')_0x17f301[_0x244548(0x3b9)](undefined,()=>{});return _0x17f301;}async[_0x68432e(0x1df)](_0x1a0457){const _0xd50fc5=_0x68432e;if(!this['_statusEnv']||!this['_isWriter']||!_0x1a0457?.[_0xd50fc5(0x1cd)])return;return this['_putRowAsync'](_0x1a0457);}async[_0x68432e(0x360)](_0x14ce3a){const _0x50d234=_0x68432e;if(!this[_0x50d234(0x31c)]||!this[_0x50d234(0x2d2)]||!_0x14ce3a)return;const _0x20a100=_0x14ce3a[_0x50d234(0x2e0)]('#'),_0x29b6a6=[];for(const {key:_0xb7b99}of this[_0x50d234(0x31c)][_0x50d234(0x3ac)](_0x3c2344)){if(_0xb7b99===_0x14ce3a||!_0x20a100&&typeof _0xb7b99===_0x50d234(0x2c3)&&_0xb7b99[_0x50d234(0x2ae)](_0x14ce3a+'#'))_0x29b6a6[_0x50d234(0x232)](_0xb7b99);}for(const _0x59cce1 of _0x29b6a6){try{this['_nodeDb']()['removeSync'](_0x59cce1);}catch{}}}[_0x68432e(0x1c6)](_0x2d9870){const _0x4b9372=_0x68432e;if(typeof _0x2d9870?.['pid']!==_0x4b9372(0x37a))return![];if(_0x2d9870['host']!==_0x20f178['hostname']())return![];if(_0x2d9870[_0x4b9372(0x2e8)]===process[_0x4b9372(0x2e8)])return![];if(_0x2d9870['expiresAt']!=null&&_0x2d9870[_0x4b9372(0x273)]<Date[_0x4b9372(0x2c8)]()-_0x278bc8)return!![];try{return process[_0x4b9372(0x2b8)](_0x2d9870['pid'],0x0),![];}catch(_0x34e55b){return _0x34e55b['code']===_0x4b9372(0x334);}}[_0x68432e(0x325)](){const _0x3891ce=_0x68432e;if(!this[_0x3891ce(0x31c)])return[];try{this[_0x3891ce(0x31c)]['db']?.[_0x3891ce(0x286)]?.();}catch{}const _0x29b954=Date[_0x3891ce(0x2c8)](),_0x2c7f5d=_0x20f178[_0x3891ce(0x2cd)](),_0x15cd06=[];for(const {value:_0x56a5d8}of this[_0x3891ce(0x31c)]['getRange'](_0x3c2344)){if(!_0x56a5d8)continue;let _0x129c94=null;_0x56a5d8[_0x3891ce(0x3cd)]===_0x2c7f5d&&typeof _0x56a5d8[_0x3891ce(0x2e8)]===_0x3891ce(0x37a)&&(_0x129c94=!this[_0x3891ce(0x1c6)](_0x56a5d8));if(_0x129c94===![])continue;const _0x2ea647=_0x56a5d8[_0x3891ce(0x273)]==null||_0x56a5d8['expiresAt']>=_0x29b954;if(_0x129c94===!![]||_0x2ea647)_0x15cd06[_0x3891ce(0x232)](_0x56a5d8);}return _0x15cd06;}async['reap'](_0x20ab8c=0x0){const _0x388162=_0x68432e;if(!this[_0x388162(0x31c)]||!this[_0x388162(0x2d2)])return;const _0x45ae1e=Date['now']()-_0x20ab8c,_0x33fb90=new Set(),_0x15aea4=[],_0x29bcef=_0x20f178['hostname']();for(const {key:_0x64c94f,value:_0x384d62}of this[_0x388162(0x31c)][_0x388162(0x3ac)](_0x3c2344)){if(!_0x384d62)continue;const _0x3f8660=_0x384d62['host']===_0x29bcef&&typeof _0x384d62['pid']===_0x388162(0x37a),_0x42427a=_0x3f8660?this[_0x388162(0x1c6)](_0x384d62):_0x384d62[_0x388162(0x273)]!=null&&_0x384d62[_0x388162(0x273)]<_0x45ae1e;if(_0x42427a)_0x15aea4[_0x388162(0x232)](_0x64c94f);else _0x33fb90[_0x388162(0x2e9)](_0x346080(_0x384d62)??_0x64c94f);}for(const _0x1edfb2 of _0x15aea4)this[_0x388162(0x29c)](_0x1edfb2);if(this['_ensureDesired']()){const _0x4a058b=[];for(const {key:_0x44a521}of this[_0x388162(0x3a3)](_0x388162(0x30b))){if(!_0x33fb90[_0x388162(0x242)](_0x44a521)){if(_0x4b52cc)try{this['_desired']['removeSync'](_0x388162(0x2cb)+_0x44a521);}catch{}else _0x4a058b[_0x388162(0x232)](this['_desired'][_0x388162(0x333)](_0x388162(0x2cb)+_0x44a521));}}if(_0x4a058b[_0x388162(0x39e)])await Promise['allSettled'](_0x4a058b);}}[_0x68432e(0x2b9)](_0x13d794=null){const _0x4e64a0=_0x68432e;if(this[_0x4e64a0(0x365)])return;if(!this[_0x4e64a0(0x2d2)]||!this[_0x4e64a0(0x31c)]){this[_0x4e64a0(0x204)]?.[_0x4e64a0(0x3aa)]?.['warn']?.('registry\x20heartbeat\x20skipped\x20(writer='+this['_isWriter']+_0x4e64a0(0x314)+!!this[_0x4e64a0(0x31c)]+_0x4e64a0(0x1f0),{'feature':_0x4e64a0(0x37e)});return;}this[_0x4e64a0(0x3bc)]=_0x13d794,this['_onProcEvent']=()=>this[_0x4e64a0(0x1ee)]();for(const _0x4cd291 of _0x7806c3)this['okdb']['events']['on'](_0x4cd291,this[_0x4e64a0(0x332)]);this['_publishNow']();const _0x26f019=Number(process.env.OKDB_WORKERS_HEARTBEAT_MS)||_0x31a63d;this[_0x4e64a0(0x365)]=setInterval(()=>{const _0x564425=_0x4e64a0;if(this[_0x564425(0x3bc)])try{this[_0x564425(0x3bc)]();}catch{}this[_0x564425(0x1de)](),this[_0x564425(0x1ce)]()['catch'](()=>{});},_0x26f019);if(this[_0x4e64a0(0x365)][_0x4e64a0(0x371)])this['_hbTimer'][_0x4e64a0(0x371)]();}[_0x68432e(0x1ee)](){const _0x504a45=_0x68432e;if(!this[_0x504a45(0x2d2)]||!this[_0x504a45(0x31c)])return;if(Date[_0x504a45(0x2c8)]()-this[_0x504a45(0x322)]<_0xf45cc)return;this[_0x504a45(0x1de)]();}[_0x68432e(0x1de)](){const _0x1b0452=_0x68432e;if(!this[_0x1b0452(0x2d2)]||!this[_0x1b0452(0x31c)])return;this[_0x1b0452(0x322)]=Date[_0x1b0452(0x2c8)]();try{const _0x3e8a87=[this[_0x1b0452(0x376)]()];for(const _0x55a1d4 of this[_0x1b0452(0x2a6)][_0x1b0452(0x387)]())_0x3e8a87['push'](this[_0x1b0452(0x3b3)](_0x55a1d4));const _0x29c516=_0xa51e67[_0x1b0452(0x384)]?_0xa51e67[_0x1b0452(0x2c8)]():0x0;for(const _0x4367f4 of _0x3e8a87){try{this['_putRowSync'](_0x4367f4),this[_0x1b0452(0x353)]=![];}catch(_0xa6d1d4){!this[_0x1b0452(0x353)]&&(this['_publishFailWarned']=!![],this[_0x1b0452(0x204)]?.[_0x1b0452(0x3aa)]?.['warn']?.(_0x1b0452(0x23c)+_0xa6d1d4[_0x1b0452(0x302)],{'feature':'processes'}));}}if(_0xa51e67[_0x1b0452(0x384)])_0xa51e67[_0x1b0452(0x261)](_0x1b0452(0x245),_0xa51e67[_0x1b0452(0x2c8)]()-_0x29c516,'rows='+_0x3e8a87[_0x1b0452(0x39e)]+'\x20sync');}catch(_0x28e9af){!this[_0x1b0452(0x353)]&&(this[_0x1b0452(0x353)]=!![],this[_0x1b0452(0x204)]?.[_0x1b0452(0x3aa)]?.[_0x1b0452(0x3be)]?.(_0x1b0452(0x23c)+_0x28e9af[_0x1b0452(0x302)],{'feature':_0x1b0452(0x37e)}));}}async['stopHeartbeat'](){const _0x33593e=_0x68432e;if(this['_onProcEvent']){for(const _0x1e72f7 of _0x7806c3){try{this[_0x33593e(0x204)]['events'][_0x33593e(0x200)](_0x1e72f7,this[_0x33593e(0x332)]);}catch{}}this[_0x33593e(0x332)]=null;}this[_0x33593e(0x365)]&&(clearInterval(this[_0x33593e(0x365)]),this['_hbTimer']=null);try{if(this[_0x33593e(0x31c)]&&this['_isWriter'])await this['removeNode'](this[_0x33593e(0x251)]);}catch{}}async[_0x68432e(0x216)](){const _0x3baeb6=_0x68432e;if(!this[_0x3baeb6(0x31c)]||!this['_isWriter'])return;try{await this[_0x3baeb6(0x360)](this[_0x3baeb6(0x251)]);}catch{}try{const _0x2879cf=[];for(const {value:_0x59dd0d}of this[_0x3baeb6(0x31c)][_0x3baeb6(0x3ac)](_0x3c2344)){if(_0x59dd0d?.[_0x3baeb6(0x1a6)]===process[_0x3baeb6(0x2e8)]&&_0x59dd0d[_0x3baeb6(0x1cd)])_0x2879cf[_0x3baeb6(0x232)](_0x59dd0d['nodeKey']);}for(const _0x3f317b of _0x2879cf){try{await this[_0x3baeb6(0x360)](_0x3f317b);}catch{}}}catch{}}async['publishOwnRow'](){const _0x6f70e9=_0x68432e;return this[_0x6f70e9(0x1df)](this['_buildOwnRow']());}async[_0x68432e(0x26c)](_0x198dd8){const _0x3de12b=_0x68432e;if(!this['_statusEnv']||!this[_0x3de12b(0x2d2)])return;return this[_0x3de12b(0x1df)](this['_buildChildRow'](_0x198dd8));}[_0x68432e(0x3b3)]({pid:_0x4340cf,startedAt:_0x505c64,kind:_0x4d8e61,supervisorKey:_0x9c6983,slot:slot=null,slotKey:slotKey=null,role:role={},listenAddr:listenAddr=null,processing:processing=null,lifecycle:lifecycle=_0x68432e(0x372),meta:meta=null,stats:stats=null}){const _0x3407df=_0x68432e,_0x228b8f=Date[_0x3407df(0x2c8)](),_0x17b27a=_0x5dfbb5(_0x4340cf,_0x505c64);return{'nodeKey':_0xc20854(_0x17b27a,'0'),'processKey':_0x17b27a,'instanceId':'0','pid':_0x4340cf,'startedAt':_0x505c64,'ppid':process['pid'],'host':_0x20f178[_0x3407df(0x2cd)](),'supervisorKey':_0x9c6983,'slot':slot,'slotKey':slotKey,'kind':_0x4d8e61,'role':role,'listenAddr':listenAddr,'heartbeatAt':_0x228b8f,'expiresAt':_0x228b8f+_0x3b7c59,'caps':this[_0x3407df(0x373)](_0x4d8e61,role),'lifecycle':{'state':lifecycle,'desiredVersionApplied':null},'processing':processing,'meta':meta,'stats':stats};}async[_0x68432e(0x3a1)](_0x106917){const _0x3926c6=_0x68432e;if(!_0x106917?.[_0x3926c6(0x2e8)])return null;const _0x1ff2b4=_0x5dfbb5(_0x106917[_0x3926c6(0x2e8)],_0x106917[_0x3926c6(0x23b)]);this[_0x3926c6(0x2a6)][_0x3926c6(0x1e5)](_0x1ff2b4,{..._0x106917,'supervisorKey':_0x106917[_0x3926c6(0x26d)]??this[_0x3926c6(0x255)]});if(this[_0x3926c6(0x2d2)])await this[_0x3926c6(0x26c)](this[_0x3926c6(0x2a6)][_0x3926c6(0x2cf)](_0x1ff2b4))[_0x3926c6(0x238)]?.(()=>{});return _0x1ff2b4;}[_0x68432e(0x235)](_0x2c03d1){const _0x1af41c=_0x68432e;if(!_0x2c03d1)return;return this['_children'][_0x1af41c(0x362)](_0x2c03d1),this['removeNode'](_0x2c03d1);}['_sampleOwnStats'](){const _0x1a7dff=_0x68432e,_0x345ca3=Date[_0x1a7dff(0x2c8)](),_0x63173a=process['cpuUsage'](),_0x593674=(_0x345ca3-this['_lastCpuAt'])*0x3e8;if(_0x593674>=0x3d090){const _0x5903b7=_0x63173a[_0x1a7dff(0x3a0)]-this[_0x1a7dff(0x283)][_0x1a7dff(0x3a0)]+(_0x63173a['system']-this['_lastCpuUsage'][_0x1a7dff(0x36a)]),_0x3f0c8b=_0x20f178[_0x1a7dff(0x320)]()[_0x1a7dff(0x39e)]||0x1;this['_lastCpuPct']=Math['min'](0x64,Math[_0x1a7dff(0x292)](_0x5903b7/(_0x593674*_0x3f0c8b)*0x64)),this[_0x1a7dff(0x3a8)]=Math[_0x1a7dff(0x292)](_0x593674/0x3e8),this[_0x1a7dff(0x283)]=_0x63173a,this['_lastCpuAt']=_0x345ca3;}const _0x34b579=process[_0x1a7dff(0x2ac)](),_0x216ce9=this[_0x1a7dff(0x203)][_0x1a7dff(0x389)];let _0x24dae5=0x0;if(_0x216ce9>0x0){const _0x36143b=[this[_0x1a7dff(0x204)],...this['okdb'][_0x1a7dff(0x285)]?.['values']?.()??[]];for(const _0x3f3c82 of _0x36143b){const _0x122c6a=_0x3f3c82['functions']?.['_sandbox'];if(_0x122c6a)_0x24dae5+=_0x122c6a[_0x1a7dff(0x348)][_0x1a7dff(0x30a)];}}let _0x42031c=null;const _0x382f20=_0x216ce9;if(_0x382f20>0x0){let _0x300246=0x0;for(const _0x3fc9f9 of this[_0x1a7dff(0x203)][_0x1a7dff(0x387)]())_0x300246+=_0x3fc9f9[_0x1a7dff(0x31d)]||0x0;_0x42031c={'count':_0x382f20,'heapUsed':_0x300246,'sandbox':_0x216ce9,'busy':_0x24dae5};}return{'rss':_0x34b579[_0x1a7dff(0x1ad)],'heapUsed':_0x34b579[_0x1a7dff(0x31d)],'heapTotal':_0x34b579[_0x1a7dff(0x264)],'external':_0x34b579[_0x1a7dff(0x1aa)],'cpuPct':this[_0x1a7dff(0x233)],'cpuWindowMs':this[_0x1a7dff(0x3a8)]??null,'threads':_0x42031c,'at':_0x345ca3};}['reportThreadStats'](_0x242bc2,_0x5ba636){const _0x54eeb5=_0x68432e;if(!_0x242bc2||!_0x5ba636)return;this[_0x54eeb5(0x203)][_0x54eeb5(0x1e5)](_0x242bc2,_0x5ba636);}[_0x68432e(0x352)](_0x157614){const _0x14da89=_0x68432e;this[_0x14da89(0x203)]['delete'](_0x157614);}[_0x68432e(0x2bc)](_0x4e6f03,_0x518e08,_0x5a25f0=undefined){const _0x110a4b=_0x68432e,_0x9311d3=this[_0x110a4b(0x2a6)][_0x110a4b(0x2cf)](_0x4e6f03);if(!_0x9311d3||!_0x518e08)return;if(_0x5a25f0!==undefined)_0x9311d3[_0x110a4b(0x323)]=_0x5a25f0;_0x9311d3[_0x110a4b(0x2d0)]={'rss':_0x518e08[_0x110a4b(0x1ad)]??null,'heapUsed':_0x518e08[_0x110a4b(0x31d)]??null,'heapTotal':_0x518e08[_0x110a4b(0x264)]??null,'external':_0x518e08[_0x110a4b(0x1aa)]??null,'cpuPct':_0x518e08[_0x110a4b(0x39f)]??null,'cpuWindowMs':_0x518e08['cpuWindowMs']??null,'threads':_0x518e08[_0x110a4b(0x275)]??null,'claims':_0x518e08['claims']??null,'envsOpen':_0x518e08[_0x110a4b(0x388)]??null,'at':Date[_0x110a4b(0x2c8)]()};}[_0x68432e(0x376)](){const _0x4a7cc8=_0x68432e,_0x4cc7a1=Date[_0x4a7cc8(0x2c8)](),_0x13cf0c=this[_0x4a7cc8(0x204)]['_role']||{},_0x5852b5=this[_0x4a7cc8(0x28c)]||_0x4a7cc8(0x346);return{'nodeKey':this[_0x4a7cc8(0x251)],'processKey':this[_0x4a7cc8(0x255)],'instanceId':this[_0x4a7cc8(0x223)],'pid':process['pid'],'startedAt':this['_processStartedAt'],'instanceStartedAt':this[_0x4a7cc8(0x335)],'ppid':typeof process['ppid']==='number'?process[_0x4a7cc8(0x1a6)]:null,'host':_0x20f178[_0x4a7cc8(0x2cd)](),'supervisorKey':this[_0x4a7cc8(0x398)]??null,'kind':_0x5852b5,'role':{'engines':!!_0x13cf0c[_0x4a7cc8(0x2da)],'processors':!!_0x13cf0c[_0x4a7cc8(0x33f)],'compaction':_0x13cf0c[_0x4a7cc8(0x26f)],'http':_0x13cf0c[_0x4a7cc8(0x279)]},'listenAddr':this[_0x4a7cc8(0x231)]??null,'heartbeatAt':_0x4cc7a1,'expiresAt':_0x4cc7a1+_0x3b7c59,'caps':this['_caps'](_0x5852b5,_0x13cf0c),'lifecycle':{'state':_0x4a7cc8(0x372),'desiredVersionApplied':null},'meta':{...this[_0x4a7cc8(0x2d5)]},'processing':_0x13cf0c[_0x4a7cc8(0x33f)]?this[_0x4a7cc8(0x237)]():null,'engines':_0x13cf0c['engines']?[...this['okdb'][_0x4a7cc8(0x1ae)]??[]]:null,'singletonClaims':this[_0x4a7cc8(0x206)](),'stats':this[_0x4a7cc8(0x1c2)](),'writers':this[_0x4a7cc8(0x2c0)]()};}[_0x68432e(0x2c0)](){const _0x4e706b=_0x68432e,_0x2c1b3d={};try{for(const [_0xf43711,_0x5728a2]of this['okdb']['_envs']){try{const _0x20d7b2=_0x5728a2[_0x4e706b(0x243)]?.();if(!_0x20d7b2)continue;if(!_0x20d7b2[_0x4e706b(0x1d1)]&&!_0x20d7b2[_0x4e706b(0x330)]&&!(_0x20d7b2[_0x4e706b(0x36b)]??0x0)&&!_0x20d7b2[_0x4e706b(0x38b)])continue;_0x2c1b3d[_0xf43711]={'depth':_0x20d7b2[_0x4e706b(0x1d1)],'oldestPendingMs':_0x20d7b2[_0x4e706b(0x25e)],'committed':_0x20d7b2['committed'],'commitsPerSec':_0x20d7b2[_0x4e706b(0x267)],'commitP99Ms':_0x20d7b2[_0x4e706b(0x24a)],'parkedNow':_0x20d7b2['parkedNow']??0x0,'draining':!!_0x20d7b2['draining']};}catch{}}}catch{}return Object[_0x4e706b(0x1b3)](_0x2c1b3d)[_0x4e706b(0x39e)]?_0x2c1b3d:null;}[_0x68432e(0x206)](){const _0x4008c0=_0x68432e,_0x437bd7=process[_0x4008c0(0x2e8)],_0x4dfac0=Date[_0x4008c0(0x2c8)](),_0x3ca3a1=_0x418606=>{const _0x21da85=_0x4008c0;if(!_0x418606)return[];const _0xa1e7b0=[];try{for(const {id:_0x1d0419,entry:_0x332332}of _0x418606['list']()){if(_0x332332?.['holder']?.[_0x21da85(0x2e8)]!==_0x437bd7)continue;const _0x3cf251=_0x332332[_0x21da85(0x342)]??_0x332332[_0x21da85(0x35b)]??0x0;if(_0x3cf251+(_0x332332['ttlMs']??0x0)<_0x4dfac0)continue;_0xa1e7b0[_0x21da85(0x232)](_0x1d0419);}}catch{}return _0xa1e7b0;},_0x3d269b=_0x3ca3a1(this[_0x4008c0(0x29d)]('compact')),_0xa94907=_0x3ca3a1(this[_0x4008c0(0x29d)](_0x4008c0(0x1f8)));if(!_0x3d269b[_0x4008c0(0x39e)]&&!_0xa94907[_0x4008c0(0x39e)])return null;return{'compact':_0x3d269b,'replicate':_0xa94907};}[_0x68432e(0x29d)](_0x2c5b24){const _0x2d34d7=_0x68432e;if(!this[_0x2d34d7(0x204)]?.['_rootDb'])return null;if(!this[_0x2d34d7(0x1d5)])this[_0x2d34d7(0x1d5)]=new Map();let _0x24060c=this['_singletonLocks']['get'](_0x2c5b24);if(!_0x24060c)try{_0x24060c=new _0x551c02(this[_0x2d34d7(0x204)][_0x2d34d7(0x339)],{'namespace':_0x2c5b24}),this[_0x2d34d7(0x1d5)]['set'](_0x2c5b24,_0x24060c);}catch{return null;}return _0x24060c;}[_0x68432e(0x237)](){const _0x554de5=_0x68432e,_0x200bda=[];try{for(const [_0x495d84,_0x58e425]of this['okdb'][_0x554de5(0x285)]){if(_0x495d84['startsWith']('~'))continue;for(const _0x3e3229 of _0x58e425[_0x554de5(0x1b7)][_0x554de5(0x1b6)]())_0x200bda[_0x554de5(0x232)]({..._0x3e3229,'env':_0x495d84});}}catch{}return{'participate':this[_0x554de5(0x204)][_0x554de5(0x33f)]?.['_participate']??![],'processors':_0x200bda};}[_0x68432e(0x291)](){const _0x427df1=_0x68432e;if(this[_0x427df1(0x2b5)])return!![];const _0x2dbf62=this['okdb'][_0x427df1(0x339)];if(!_0x2dbf62)return![];return this['_desired']=_0x2dbf62['openDB'](_0x5c63a1,{'dupSort':![]}),this[_0x427df1(0x20f)]=_0x2dbf62['openDB'](_0x367bd7,{'dupSort':![]}),!![];}async[_0x68432e(0x25d)](){const _0x5337b8=_0x68432e;if(!this[_0x5337b8(0x291)]())return;const _0xd4f33f=_0x5337b8(0x27f),_0xd4ac7=0x1,_0x3f9eaf=this['_desired'][_0x5337b8(0x2cf)](_0xd4f33f)??0x0;if(_0x3f9eaf>=_0xd4ac7)return;const _0x15b5db=_0x3e87d1=>{const _0x22e614=_0x5337b8;if(_0x3e87d1==='worker')return'single';if(_0x3e87d1==='async')return _0x22e614(0x252);return _0x3e87d1;};await this[_0x5337b8(0x204)][_0x5337b8(0x1ef)][_0x5337b8(0x246)][_0x5337b8(0x3cb)](()=>{const _0x237a9b=_0x5337b8;for(const _0x33e27d of[_0x237a9b(0x3c0),'procmodeack/']){for(const {key:_0x500b11,value:_0x14c4f9}of this[_0x237a9b(0x2b5)][_0x237a9b(0x3ac)]({'start':_0x33e27d,'end':_0x33e27d+'ÿ'})){if(typeof _0x500b11!==_0x237a9b(0x2c3)||!_0x500b11[_0x237a9b(0x2ae)](_0x33e27d))break;const _0xd91a77=_0x15b5db(_0x14c4f9[_0x237a9b(0x3cf)]);if(_0xd91a77!==_0x14c4f9[_0x237a9b(0x3cf)])this[_0x237a9b(0x2b5)]['put'](_0x500b11,{..._0x14c4f9,'mode':_0xd91a77});}}this['_desired'][_0x237a9b(0x32c)](_0xd4f33f,_0xd4ac7);});}[_0x68432e(0x299)](){const _0x5933c1=_0x68432e;return!!this[_0x5933c1(0x2b5)];}[_0x68432e(0x317)](_0x270e6b,_0x264d6a){const _0x1a87c7=_0x68432e;if(!this[_0x1a87c7(0x291)]())return null;const _0x71473d=_0x270e6b+'/'+_0x264d6a;return this[_0x1a87c7(0x3c8)](),this['_desiredOverlay']['get'](_0x71473d)??this[_0x1a87c7(0x2b5)][_0x1a87c7(0x2cf)](_0x71473d)??null;}[_0x68432e(0x3c8)](){const _0x28e1ad=_0x68432e;if(!_0x4b52cc)return;try{this[_0x28e1ad(0x204)][_0x28e1ad(0x1ef)]?.['db']?.[_0x28e1ad(0x286)]?.();}catch{}}async['setDesired'](_0x28bb86,_0x526df9,_0x134ebe){const _0x1250df=_0x68432e;if(!this[_0x1250df(0x291)]())return null;const _0xa29cb8=_0x28bb86+'/'+_0x526df9;this[_0x1250df(0x3c8)]();const _0x46c156=this[_0x1250df(0x22e)]['get'](_0xa29cb8)??this['_desired'][_0x1250df(0x2cf)](_0xa29cb8)??{'version':0x0},_0x18ad6c=(_0x46c156['version']||0x0)+0x1,_0x4c413b={..._0x46c156,..._0x134ebe,'version':_0x18ad6c,'updatedAt':Date[_0x1250df(0x2c8)]()};this[_0x1250df(0x22e)][_0x1250df(0x1e5)](_0xa29cb8,_0x4c413b);try{await this[_0x1250df(0x204)][_0x1250df(0x1ef)][_0x1250df(0x246)][_0x1250df(0x3cb)](()=>{const _0x2d98d1=_0x1250df;this[_0x2d98d1(0x2b5)][_0x2d98d1(0x32c)](_0xa29cb8,_0x4c413b);});}finally{if(this[_0x1250df(0x22e)]['get'](_0xa29cb8)===_0x4c413b)this['_desiredOverlay'][_0x1250df(0x362)](_0xa29cb8);}return _0x18ad6c;}[_0x68432e(0x3a3)](_0x379eba){const _0x1709a3=_0x68432e;if(!this['_ensureDesired']())return[];this[_0x1709a3(0x3c8)]();const _0x18eefc=_0x379eba+'/',_0x3aa84a=[];for(const {key:_0x248177,value:_0x1d4246}of this[_0x1709a3(0x2b5)][_0x1709a3(0x3ac)]({'start':_0x18eefc,'end':_0x18eefc+'ÿ'})){if(typeof _0x248177!==_0x1709a3(0x2c3)||!_0x248177[_0x1709a3(0x2ae)](_0x18eefc))break;_0x3aa84a['push']({'key':_0x248177['slice'](_0x18eefc['length']),'value':_0x1d4246});}return _0x3aa84a;}[_0x68432e(0x1f7)](_0x35b354){const _0x32b289=_0x68432e;if(!this[_0x32b289(0x291)]())return null;return this[_0x32b289(0x20f)][_0x32b289(0x2cf)](_0x35b354)??null;}async[_0x68432e(0x1bc)](_0x586e0f,_0x14d2d9,_0x143ab8={}){const _0x12e2c5=_0x68432e;if(!this[_0x12e2c5(0x291)]())return null;let _0x19f2eb;return await this[_0x12e2c5(0x204)]['_systemEnv'][_0x12e2c5(0x246)][_0x12e2c5(0x3cb)](()=>{const _0x59049c=_0x12e2c5,_0x1096e5=this[_0x59049c(0x20f)][_0x59049c(0x2cf)](_0x586e0f)||{'epoch':0x0};_0x19f2eb=(_0x1096e5[_0x59049c(0x386)]||0x0)+0x1,this[_0x59049c(0x20f)][_0x59049c(0x32c)](_0x586e0f,{..._0x1096e5,..._0x143ab8,'cmd':_0x14d2d9,'epoch':_0x19f2eb,'updatedAt':Date[_0x59049c(0x2c8)]()});}),_0x19f2eb;}}return okdbProcessRegistry={'OKDBProcessRegistry':_0x180ced,'nodeKey':_0x5dfbb5,'logicalKey':_0x73c97e,'slotKey':_0x4727b0,'PROCESS_ENV':_0x2cc658,'NODE_TYPE':_0x3c2344},okdbProcessRegistry;}var okdbChangefeed,hasRequiredOkdbChangefeed;function _0xcdd8(){const _0x53cb85=['okdb-writer:\x20env\x20closing\x20—\x20retry','listen','ref:violation_resolved','\x20worker(s)\x20remaining','unhandledRejection','split','off','state','assign','_threadStats','okdb','drain\x20state\x20(envs\x20with\x20a\x20non-zero\x20drain):','_collectSingletonClaims','\x20===','stopped','tryAcquire','[okdb-cluster]\x20recommissioned\x20worker\x20slot=','system:bus_state_change','error','openDB','_scheduleFlush','_cmd','sync:apply','singletonClaims','lifecycle','_clusterWorkerAttached','[okdb-cluster]\x20respawning\x20worker\x20slot=','shift','deregisterSelf','set\x20OKDB_DIAG=1\x20(and\x20OKDB_DIAG_STACK=1\x20to\x20name\x20write\x20sites)','ttlMs','_nodeDb','platform','load',');\x20','item:create','maxExtra','processor:error','processKey','_highWater','http\x20worker\x20child\x20failed:\x20','_instanceId','license:removed','execArgv','raw-remove','ref:violation','_handleInProcess','ready','view:progress','_processStartedAt','--test','\x20writer{depth=','_desiredOverlay','_activateProcesses','__okdbCluster','_listenAddr','push','_lastCpuPct','enable','removeSupervisedChild','VIEW_PROGRESS','_buildProcessingFacet','catch','--watch','stop','startedAt','registry\x20publish\x20failing:\x20','embedded','entries','data','_changefeed','system:clock_change','has','writerStatus','http-server','registry-publish','_writer','ENV_CLOSING_RETRY','_log','worker','commitP99Ms','pushEphemeral','primary','\x20phase=','license:invalid','waiting','122200dBOHuf','_rowKey','fanout','type:drop','ttl:clear','_selfKey','standalone','_durs','event','SIGKILL','FTS_REGISTERED','processor:progress','slotKey','_migrateVocab','oldestPendingMs','unclaimed','[okdb-cluster]\x20worker\x20pid=','note','\x20oldestPendingMs=','uptime','heapTotal','\x0a===\x20OKDB_DIAG\x20STALL:\x20swap\x20drain\x20held\x20','isConnected','commitsPerSec','processorId','processor:paused','hasOwnProperty','label','publishChildRow','supervisorKey','msg','compaction','_flushTimer','12GjFBMc','_heartbeatInFlight','expiresAt','_putRowAsync','threads','_closed','ms\x20—\x20giving\x20up\x20on\x20this\x20slot;\x20','emit','http','call','all','creating','__okdbSlot','.log','__vocab/version','1896824obPnnG','_done','isHeld','_lastCpuUsage','children','_envs','resetReadTxn','_report','_onStop','exit','_markSeen','index:registered','_kind','processorsView','join','_seen','\x20\x20#','_ensureDesired','round','starting','ttl:expired','loop-lag','(worst\x20','online','getClock','hasDesired','processor:resumed','_groupByProcess','_removeRowAsync','_singletonLock','cursorKey','respawnTimer','_timer','_drainOne','createEnvironment','index:ready','copy','meta','_children','_getType','freeze','SYSTEM_STOPPED','halted','repeat','memoryUsage','percentile','startsWith','crypto','info','ms\x20p99=','ITEM_UPDATE','\x20ipc\x20error:\x20','_committed','_desired','treeView','status','kill','startHeartbeat','clear','isEnabled','updateSupervisedChildStats','randomUUID','ITEM_CREATE','[okdb-cluster]\x20CRASH-LOOP:\x20worker\x20slot=','_collectWriterFacet','license:activated','node:perf_hooks','string','view','FTS_RESET','ms\x20busy=','stringify','now','_pending','register','node/','ms\x20(attempt\x20','hostname','unique:violation_resolved','get','stats','_wantDb','_isWriter','_startHeartbeat','find','_ownMeta','prependListener','mkdirSync','_admissionTimer','resetIndex','engines','attach','decommissioning','SWAP','setSchema','childTransaction','includes','\x20worker(s)\x20still\x20serving','\x20drainAge=','892902zzTMQD','FTS_DROP','processor:retry','isWorker','slice','pid','add','item:remove','INDEX_REGISTERED','index:progress','\x20worker\x20slot=','path','hasType','_released','seq','_lockDb','_cursors','_onItem','license:added','name','consecutiveFailures','single','index:reset','killable','_db','bus:proc','_started','_nodeDbFor','code','getProcess','_quantum','message','~lock','1ofN:','_dedupeKey','events','toFixed','setOwnMeta','write','busy','node','ITEM_REMOVE','env','runtimeProcessesView','_handlePoke','_clusterOnMessage',':want','instances','\x20died\x20','\x20statusEnv=','filter','map','getDesired','okdb-http-worker-child.js','INDEX_PROGRESS','value','node:events','_statusEnv','heapUsed','maxMs','max','cpus','quantum','_lastPublishAt','processing',')\x20exited\x20','listNodes','namespace','--print','setLogger','_onPoke','_buckets','__esModule','put','change','disconnect','clearTtl','committed','next','_onProcEvent','remove','ESRCH','_startedAt','\x20\x20env=','SYSTEM_POKE','afterWrite','_rootDb','_coordinator','\x20—\x20set\x20OKDB_DIAG_STACK=1\x20to\x20name\x20the\x20call\x20site','_key','flushed','entry','processors','hard-killed','166011WxRSTl','updatedAt','trim','3645410RhAqQe','_baselines','cli','_flushDebounce','liveThreadStats','commit','\x20HTTP\x20server(s)\x20on\x20port\x20','_heartbeatTimer','mean','INDEX_RESET','recordWrite','exports','registerType','7jTLNsH','clearThreadStats','_publishFailWarned','_admissionStarted','_isReader','registerIndex','_rawDb','system:proc','_windowCbs','toISOString','acquiredAt','\x20stays\x20down\x20on\x20boot\x20(durable\x20decommission)','slot','listenAddr','allSettled','removeNode','options','delete','caps','sandbox','_hbTimer','system:stopped','txn:end','_draining','workers','system','parkedNow','item:update','resetFts','_enqueuedAt','_adminRelay','_enableChangelog','unref','running','_caps','attachFeed','unique:violation','_buildOwnRow','_inflight','queue-worker','_outstanding','number','[okdb-cluster]\x20slot=','_isStale','detachConsole','processes','firstTs','resolve','process','floor','transactionSync','enabled','perf_hooks','epoch','values','envsOpen','size','./okdb','draining','listening','\x20\x20(no\x20env\x20draining)','send','_bpWaiters','holder','\x20@\x20','uncaughtException','stopping','deaths','fts:reset','decommission','isActive','_supervisorKey','ephemeral','ORPHAN\x20(env-closed\x20write,\x20unhandledRejection)','_putRowSync','heartbeatMs','registerFts','length','cpuPct','user','addSupervisedChild','inflightAgesMs','listDesired','_nodeDbCache','recent\x20writes\x20(newest\x20first)','ORPHAN\x20(env-closed\x20write)','4126146nVGpYu','_lastCpuWindowMs','processor:ready','log','drain','getRange','_openEnvLazy','\x0a\x20\x20\x20\x20\x20\x20','\x20forked\x20','from','dropSchema','connected','_buildChildRow','putSync','bus:drain','okdb-http-worker-child:\x20OKDB_HTTP_CHILD\x20env\x20config\x20missing','_wantDbHandle','dropType','then','selfKey','SYSTEM_PROC','_onTick','ms\x20env=','warn','_drain','procmode/','(code=','system:poke','_acquiredAt','REMOVE','type','list','27YuwXWy','_refreshDesiredSnapshot','removeSync','ttl:set','transaction','dead','host','close','mode','listAll','ms\x20max=','once','getChanges','ppid','--inspect','race','replace','external','sort','CHANGEFEED_QUANTUM','rss','_servingEngines','41601362ZoIziI','building','bus:type_drop','\x20parkedNow=','keys','--eval','ingest','tierList','processor','count','_startAdmission','SYNC_COMMITS','stderr','bumpCmd','bus:poke','processingStatusView','start','_lock','inst:','_sampleOwnStats','~processes:desired','2wKjFQK','level','_nodeDead','claimGated','isPrimary','kind','object','system:type_drop','min','nodeKey','reap','cluster','_clusterOrphanWatch','depth','\x20in\x20','ms/','some','_singletonLocks','fts:drop','schema:set','txn:start','\x20(slot=','inspect','[okdb-cluster]\x20','function','markClosed','_publishNow','putNode','rowKey','indexOf','fork','\x20(durable\x20desired-state)','[okdb-cluster]\x20primary\x20pid=','set','stack','system:env_release','cpuUsage','env:removed','feed:','isDead','true','_dedupeMax','_maybePublish','_systemEnv',')\x20—\x20this\x20process\x20will\x20not\x20appear\x20in\x20the\x20process\x20census','instanceId','default','okdb-diag.','\x0a===\x20OKDB_DIAG\x20','_bpParkedTotal','parse','getCmd','sync','role'];_0xcdd8=function(){return _0x53cb85;};return _0xcdd8();}function requireOkdbChangefeed(){const _0x2194ad=_0x487946;if(hasRequiredOkdbChangefeed)return okdbChangefeed;hasRequiredOkdbChangefeed=0x1;const _0x57eae6=require$$0$4,{EVENTS:_0x9e49f,CHANGE_ACTIONS:_0xfb02d}=requireOkdbEnums(),{LOOP:_0xa79368}=requireOkdbLoopMonitor(),_0x4a5b8a=Number(process.env.OKDB_CHANGEFEED_QUANTUM)||0x3e8,_0x2adf3c=0x5,_0xde680b=0x2710;class _0x5792cc extends _0x57eae6{constructor(_0x1bf515,_0x2a391d={}){const _0x2e482f=_0x1273;super(),this[_0x2e482f(0x204)]=_0x1bf515,this[_0x2e482f(0x301)]=_0x2a391d[_0x2e482f(0x321)]??_0x4a5b8a,this[_0x2e482f(0x347)]=_0x2a391d['flushDebounce']??_0x2adf3c,this['_dedupeMax']=_0x2a391d['dedupeMax']??_0xde680b,this['_started']=![],this['_cursors']=new Map(),this[_0x2e482f(0x345)]=new Map(),this[_0x2e482f(0x2c9)]=new Map(),this[_0x2e482f(0x270)]=null,this[_0x2e482f(0x368)]=![],this[_0x2e482f(0x28f)]=new Set(),this[_0x2e482f(0x2f4)]=_0x36ded6=>this[_0x2e482f(0x228)](_0x36ded6),this['_onPoke']=_0xabd3e3=>this[_0x2e482f(0x30f)](_0xabd3e3),this['_onStop']=()=>this[_0x2e482f(0x23a)]();}[_0x2194ad(0x1bf)](){const _0x4bff23=_0x2194ad;if(this[_0x4bff23(0x2fd)])return;this[_0x4bff23(0x2fd)]=!![];for(const [_0xf7de1a,_0x1fd0a1]of this['okdb'][_0x4bff23(0x285)]){if(_0xf7de1a[_0x4bff23(0x2ae)]('~'))continue;try{_0x1fd0a1[_0x4bff23(0x370)]();}catch{}}for(const [_0x250841,_0x2c9838]of this['okdb'][_0x4bff23(0x285)]){if(_0x250841[_0x4bff23(0x2ae)]('~'))continue;try{this[_0x4bff23(0x345)][_0x4bff23(0x1e5)](_0x250841,_0x2c9838['getClock']()||0x0);}catch{}}const {events:_0x2146e3}=this['okdb'];_0x2146e3['on'](_0x9e49f[_0x4bff23(0x2be)],this[_0x4bff23(0x2f4)]),_0x2146e3['on'](_0x9e49f[_0x4bff23(0x2b2)],this['_onItem']),_0x2146e3['on'](_0x9e49f[_0x4bff23(0x30c)],this[_0x4bff23(0x2f4)]),_0x2146e3['on'](_0x9e49f['SYSTEM_POKE'],this[_0x4bff23(0x329)]),_0x2146e3['once'](_0x9e49f[_0x4bff23(0x2a9)],this[_0x4bff23(0x288)]);}['stop'](){const _0x5f560e=_0x2194ad;if(!this[_0x5f560e(0x2fd)])return;this[_0x5f560e(0x2fd)]=![];const {events:_0x226f04}=this[_0x5f560e(0x204)];_0x226f04['off'](_0x9e49f[_0x5f560e(0x2be)],this[_0x5f560e(0x2f4)]),_0x226f04[_0x5f560e(0x200)](_0x9e49f[_0x5f560e(0x2b2)],this[_0x5f560e(0x2f4)]),_0x226f04['off'](_0x9e49f[_0x5f560e(0x30c)],this['_onItem']),_0x226f04[_0x5f560e(0x200)](_0x9e49f[_0x5f560e(0x337)],this[_0x5f560e(0x329)]);try{_0x226f04[_0x5f560e(0x200)](_0x9e49f[_0x5f560e(0x2a9)],this['_onStop']);}catch{}this[_0x5f560e(0x270)]&&(clearTimeout(this['_flushTimer']),this[_0x5f560e(0x270)]=null),this[_0x5f560e(0x2c9)][_0x5f560e(0x2ba)](),this[_0x5f560e(0x2f3)]['clear'](),this[_0x5f560e(0x345)]['clear'](),this[_0x5f560e(0x28f)][_0x5f560e(0x2ba)]();}[_0x2194ad(0x305)](_0x14ffa5,_0x2e8715,_0x1fc390,_0x3207ba){return _0x14ffa5+'\x00'+_0x2e8715+'\x00'+_0x1fc390+'\x00'+_0x3207ba;}[_0x2194ad(0x28a)](_0x38fa53,_0x24a43c,_0x129f85,_0x22cb2c){const _0x2f51f3=_0x2194ad,_0x272496=this['_dedupeKey'](_0x38fa53,_0x24a43c,_0x129f85,_0x22cb2c);if(this[_0x2f51f3(0x28f)][_0x2f51f3(0x242)](_0x272496))return![];this[_0x2f51f3(0x28f)]['add'](_0x272496);if(this[_0x2f51f3(0x28f)]['size']>this[_0x2f51f3(0x1ed)]){const _0x26b95b=this[_0x2f51f3(0x28f)][_0x2f51f3(0x387)]()[_0x2f51f3(0x331)]()[_0x2f51f3(0x31a)];this[_0x2f51f3(0x28f)][_0x2f51f3(0x362)](_0x26b95b);}return!![];}[_0x2194ad(0x228)](_0x38a54c){const _0x116adc=_0x2194ad;if(!this[_0x116adc(0x2fd)]||!_0x38a54c)return;const {env:_0x112e5b,type:_0x5e0ff4,key:_0x4eae55,clock:_0x32d795,origin:_0x2a3038,action:_0x2efa8f,newValue:_0x55c74e,oldValue:_0x36dbf5}=_0x38a54c;if(_0x112e5b==null||_0x5e0ff4==null||_0x4eae55==null)return;if(typeof _0x112e5b===_0x116adc(0x2c3)&&_0x112e5b[_0x116adc(0x2ae)]('~'))return;if(typeof _0x5e0ff4==='string'&&_0x5e0ff4[_0x116adc(0x2ae)]('~'))return;if(!this['_markSeen'](_0x112e5b,_0x5e0ff4,_0x4eae55,_0x32d795))return;const _0x1d1703=_0x2efa8f===_0xfb02d[_0x116adc(0x3c4)]?_0x116adc(0x333):_0x116adc(0x32c);this['emit']('change',{'env':_0x112e5b,'type':_0x5e0ff4,'key':_0x4eae55,'op':_0x1d1703,'clock':_0x32d795,'origin':_0x2a3038,'value':_0x1d1703==='remove'?null:_0x55c74e,'prevValue':_0x36dbf5});}['_handlePoke'](_0x516311){const _0x4d21b7=_0x2194ad;if(!this[_0x4d21b7(0x2fd)])return;if(!_0x516311||typeof _0x516311[_0x4d21b7(0x30d)]!=='string'||typeof _0x516311[_0x4d21b7(0x3c5)]!==_0x4d21b7(0x2c3))return;const {env:_0x23f335,type:_0x3e7fe9}=_0x516311;if(_0x23f335['startsWith']('~')||_0x3e7fe9[_0x4d21b7(0x2ae)]('~'))return;this['_pending'][_0x4d21b7(0x1e5)](_0x23f335+'\x00'+_0x3e7fe9,{'env':_0x23f335,'type':_0x3e7fe9}),this[_0x4d21b7(0x20e)]();}[_0x2194ad(0x20e)](){const _0x3dc79f=_0x2194ad;if(this[_0x3dc79f(0x270)])return;const _0x150c05=()=>{const _0x33929e=_0x3dc79f;this[_0x33929e(0x270)]=null,this[_0x33929e(0x3bf)]()[_0x33929e(0x238)](()=>{});};this[_0x3dc79f(0x270)]=setTimeout(_0x150c05,this[_0x3dc79f(0x347)]>0x0?this['_flushDebounce']:0x0);}async[_0x2194ad(0x3bf)](){const _0x3b4831=_0x2194ad;if(this[_0x3b4831(0x368)]){this[_0x3b4831(0x20e)]();return;}this['_draining']=!![];try{const _0x56f374=[...this[_0x3b4831(0x2c9)][_0x3b4831(0x387)]()];this['_pending'][_0x3b4831(0x2ba)]();let _0x44de67=![];for(const {env:_0x44a2a1,type:_0x4a05f6}of _0x56f374){try{const _0x3eab10=await this[_0x3b4831(0x2a1)](_0x44a2a1,_0x4a05f6);if(_0x3eab10)_0x44de67=!![];}catch{this[_0x3b4831(0x2c9)][_0x3b4831(0x1e5)](_0x44a2a1+'\x00'+_0x4a05f6,{'env':_0x44a2a1,'type':_0x4a05f6}),_0x44de67=!![];}}if(_0x44de67||this[_0x3b4831(0x2c9)][_0x3b4831(0x389)]>0x0)this[_0x3b4831(0x20e)]();}finally{this[_0x3b4831(0x368)]=![];}}async[_0x2194ad(0x2a1)](_0x4d8491,_0x520593){const _0x4cfd2e=_0x2194ad,_0x3e74aa=await this[_0x4cfd2e(0x204)][_0x4cfd2e(0x3ad)](_0x4d8491),_0x332a37=_0x4d8491+'\x00'+_0x520593;!this['_cursors'][_0x4cfd2e(0x242)](_0x332a37)&&(!this[_0x4cfd2e(0x345)][_0x4cfd2e(0x242)](_0x4d8491)&&(_0x3e74aa[_0x4cfd2e(0x370)](),this[_0x4cfd2e(0x345)][_0x4cfd2e(0x1e5)](_0x4d8491,_0x3e74aa[_0x4cfd2e(0x298)]()||0x0)),this[_0x4cfd2e(0x2f3)][_0x4cfd2e(0x1e5)](_0x332a37,this[_0x4cfd2e(0x345)][_0x4cfd2e(0x2cf)](_0x4d8491)));const _0x26b1b2=this['_cursors'][_0x4cfd2e(0x2cf)](_0x332a37),_0x36a14a=_0x3e74aa[_0x4cfd2e(0x298)](_0x520593)||0x0;if(_0x36a14a<=_0x26b1b2)return![];const _0x52079c=_0x26b1b2+this[_0x4cfd2e(0x301)],_0x37b077=Math[_0x4cfd2e(0x1cc)](_0x36a14a,_0x52079c),_0x18fcf1=_0xa79368[_0x4cfd2e(0x384)]?_0xa79368['now']():0x0,_0x2dbf67=Array[_0x4cfd2e(0x3b0)](_0x3e74aa[_0x4cfd2e(0x1a5)](_0x520593,_0x26b1b2+0x1,_0x37b077));let _0x26674c=_0x26b1b2;for(const _0x2f90a7 of _0x2dbf67){const {clock:_0x37ec4c,key:_0x56b498,action:_0x81f13d,origin:_0x91b336}=_0x2f90a7;if(_0x37ec4c>_0x26674c)_0x26674c=_0x37ec4c;if(_0x56b498==null)continue;if(!this['_markSeen'](_0x4d8491,_0x520593,_0x56b498,_0x37ec4c))continue;let _0x133789,_0x45c99c;if(_0x81f13d===_0xfb02d['REMOVE'])_0x133789='remove',_0x45c99c=null;else{const _0x3b7cc7=_0x3e74aa['get'](_0x520593,_0x56b498);_0x3b7cc7==null?(_0x133789=_0x4cfd2e(0x333),_0x45c99c=null):(_0x133789=_0x4cfd2e(0x32c),_0x45c99c=_0x3b7cc7);}this[_0x4cfd2e(0x278)](_0x4cfd2e(0x32d),{'env':_0x4d8491,'type':_0x520593,'key':_0x56b498,'op':_0x133789,'clock':_0x37ec4c,'origin':_0x91b336,'value':_0x45c99c});}if(_0xa79368[_0x4cfd2e(0x384)])_0xa79368['note'](_0x4cfd2e(0x1ea)+_0x4d8491+':'+_0x520593,_0xa79368[_0x4cfd2e(0x2c8)]()-_0x18fcf1,'n='+_0x2dbf67[_0x4cfd2e(0x39e)]);return this[_0x4cfd2e(0x2f3)][_0x4cfd2e(0x1e5)](_0x332a37,Math[_0x4cfd2e(0x31f)](_0x26674c,_0x37b077)),_0x3e74aa['getClock'](_0x520593)>_0x37b077;}[_0x2194ad(0x2b7)](){const _0x16eb7e=_0x2194ad;return{'started':this[_0x16eb7e(0x2fd)],'quantum':this[_0x16eb7e(0x301)],'flushDebounce':this[_0x16eb7e(0x347)],'cursors':Object['fromEntries']([...this[_0x16eb7e(0x2f3)][_0x16eb7e(0x23e)]()][_0x16eb7e(0x316)](([_0x531365,_0x5369c8])=>[_0x531365[_0x16eb7e(0x1a9)]('\x00',':'),_0x5369c8])),'pending':this[_0x16eb7e(0x2c9)]['size'],'seen':this['_seen']['size']};}}return _0x5792cc[_0x2194ad(0x1ac)]=_0x4a5b8a,okdbChangefeed={'OKDBChangefeed':_0x5792cc},okdbChangefeed;}var okdbCluster,hasRequiredOkdbCluster;function _0x1273(_0x2164a7,_0x35284a){_0x2164a7=_0x2164a7-0x1a3;const _0xcdd8d9=_0xcdd8();let _0x12735d=_0xcdd8d9[_0x2164a7];return _0x12735d;}function requireOkdbCluster(){const _0x45fadd=_0x487946;if(hasRequiredOkdbCluster)return okdbCluster;hasRequiredOkdbCluster=0x1;const _0xfc96aa=require$$1$1,_0x178a04=require$$1,{EVENTS:_0x2ddb8a}=requireOkdbEnums(),_0x2d79f8=require$$0$3,{slotKey:_0x52b678}=requireOkdbProcessRegistry(),_0x123e3a=0xfa,_0x47d676=0xfa0,_0x16a8d7=0x5,_0x1c0828=0x2710,_0xf5434=0xbb8,_0x20a3cd=0x7d0,_0x558eeb=_0x45fadd(0x230),_0x584169=_0x45fadd(0x399),_0x5126c6='log',_0x2d28d7=_0x45fadd(0x2d0),_0x3902be=[_0x2ddb8a[_0x45fadd(0x236)],_0x2ddb8a[_0x45fadd(0x25a)],_0x2ddb8a[_0x45fadd(0x2e4)],_0x2ddb8a[_0x45fadd(0x2c5)],_0x2ddb8a[_0x45fadd(0x319)],_0x2ddb8a['INDEX_READY'],_0x2ddb8a[_0x45fadd(0x34d)],_0x2ddb8a[_0x45fadd(0x2eb)],'processor:ready',_0x45fadd(0x25b),_0x45fadd(0x21f),'processor:paused',_0x45fadd(0x29a),_0x45fadd(0x2e5)],_0x204233=Number(process.env.OKDB_CLUSTER_STATUS_MS)||0x7d0;function _0x196f08({workers:_0x2e75fb,makeOkdb:_0x5f1164,port:_0x5e52cb,primaryOkdb:_0x12e4af,childEntry:childEntry=![],workerEnv:workerEnv=null}={}){const _0x406582=_0x45fadd;if(_0xfc96aa[_0x406582(0x1c8)])return childEntry&&_0xfc96aa['setupPrimary']({'exec':_0x178a04['join'](__dirname,_0x406582(0x318)),'args':[],'execArgv':((()=>{const _0x3af676=_0x406582,_0x724b4b=[];for(let _0x14b874=0x0;_0x14b874<process[_0x3af676(0x225)][_0x3af676(0x39e)];_0x14b874++){const _0xf6ef03=process[_0x3af676(0x225)][_0x14b874];if(_0xf6ef03['startsWith'](_0x3af676(0x22c))||_0xf6ef03['startsWith'](_0x3af676(0x239))||_0xf6ef03['startsWith'](_0x3af676(0x1a7)))continue;if(_0xf6ef03==='-e'||_0xf6ef03===_0x3af676(0x1b4)||_0xf6ef03==='-p'||_0xf6ef03===_0x3af676(0x327)){_0x14b874++;continue;}_0x724b4b[_0x3af676(0x232)](_0xf6ef03);}return _0x724b4b;})())}),_0xff3c9c({'workers':_0x2e75fb,'port':_0x5e52cb,'primaryOkdb':_0x12e4af,'workerEnv':workerEnv});return _0x45f3f9({'makeOkdb':_0x5f1164,'port':_0x5e52cb});}function _0xff3c9c({workers:_0x34cf61,port:_0x542e12,primaryOkdb:_0xa590f3,workerEnv:_0x47b252}){const _0xaae862=_0x45fadd,_0x21c740=new Map(),_0x20269c=new Map();let _0x883afe=![];const _0x28ea8d=_0x59c3f7=>_0x59c3f7?.[_0xaae862(0x27d)],_0x3cf132=_0x2757fe=>{const _0x5be5f7=_0xaae862,_0xf9490b=_0xfc96aa[_0x5be5f7(0x1e2)]({...process.env,..._0x47b252||{},'OKDB_CLUSTER_SLOT':String(_0x2757fe)});return _0xf9490b[_0x5be5f7(0x27d)]=_0x2757fe,_0x21c740['set'](_0xf9490b[_0x5be5f7(0x381)][_0x5be5f7(0x2e8)],{'worker':_0xf9490b,'startedAt':Date[_0x5be5f7(0x2c8)](),'slot':_0x2757fe}),_0xf9490b['on'](_0x5be5f7(0x20c),_0x4869ea=>{const _0x3db9f0=_0x5be5f7;console[_0x3db9f0(0x3aa)](_0x3db9f0(0x260)+_0xf9490b[_0x3db9f0(0x381)]['pid']+_0x3db9f0(0x2b3)+(_0x4869ea?.[_0x3db9f0(0x302)]??_0x4869ea));}),_0xf9490b['on'](_0x5be5f7(0x297),()=>_0x54efa2()),_0xf9490b;},_0x27beeb=_0x160b59=>{const _0x20283c=_0xaae862;for(const {worker:_0x52c7fd}of _0x21c740[_0x20283c(0x387)]()){if(_0x52c7fd[_0x20283c(0x1eb)]()||!_0x52c7fd[_0x20283c(0x266)]())continue;try{_0x52c7fd[_0x20283c(0x38e)](_0x160b59);}catch{}}};_0xa590f3?.['_activateProcesses']?.({'kind':_0xaae862(0x24c),'listenAddr':':'+_0x542e12})[_0xaae862(0x238)](()=>{}),_0xa590f3?.['processes']?.[_0xaae862(0x308)]?.({'workersConfigured':_0x34cf61});const _0xb0c4e6={'engines':!![],'processors':!![],'compaction':!![],'http':!![]},_0x54efa2=()=>{const _0x5383ae=_0xaae862,_0x391b7b=_0xa590f3?.[_0x5383ae(0x37e)];if(!_0x391b7b||!_0x391b7b['_isWriter'])return;const _0xf4e87a=_0x391b7b[_0x5383ae(0x3ba)];for(const {worker:_0x415f16,startedAt:_0x55b146,slot:_0x2e6dad,stats:_0x12f10f,processing:_0x5eb6b8}of _0x21c740[_0x5383ae(0x387)]()){if(_0x415f16[_0x5383ae(0x1eb)]())continue;const _0x329625=_0x391b7b['hasDesired']?.()&&_0x391b7b['getDesired'](_0x5383ae(0x35d),_0xd2f871(_0x2e6dad))?.['decommission']===!![];_0x391b7b[_0x5383ae(0x26c)]({'pid':_0x415f16['process'][_0x5383ae(0x2e8)],'startedAt':_0x55b146,'kind':_0x5383ae(0x244),'supervisorKey':_0xf4e87a,'slot':_0x2e6dad,'slotKey':_0xd2f871(_0x2e6dad),'role':_0xb0c4e6,'listenAddr':':'+_0x542e12,'lifecycle':_0x329625?_0x5383ae(0x2dc):_0x5383ae(0x372),'processing':_0x5eb6b8??null,'stats':_0x12f10f??null})[_0x5383ae(0x238)](()=>{});}},_0xd2f871=_0x2b4dc8=>_0x52b678('cluster:'+_0x542e12,_0x2b4dc8),_0x42bc1e=_0x27d483=>{const _0x111de9=_0xaae862,_0x2ceaef=_0xa590f3?.[_0x111de9(0x37e)];if(!_0x2ceaef?.[_0x111de9(0x299)]?.())return![];return _0x2ceaef['getDesired'](_0x111de9(0x35d),_0xd2f871(_0x27d483))?.[_0x111de9(0x396)]===!![];};for(let _0x27db87=0x0;_0x27db87<_0x34cf61;_0x27db87++){const _0x26c560=_0x42bc1e(_0x27db87);_0x20269c[_0xaae862(0x1e5)](_0x27db87,{'deaths':[],'consecutiveFailures':0x0,'dead':_0x26c560,'respawnTimer':null}),_0x26c560?console['log'](_0xaae862(0x37b)+_0x27db87+_0xaae862(0x35c)):_0x3cf132(_0x27db87);}const _0x3e5dee=()=>{const _0x1eb7bd=_0xaae862,_0x115b8e=_0xa590f3?.['processes'];if(!_0x115b8e?.[_0x1eb7bd(0x2d2)]||!_0x115b8e[_0x1eb7bd(0x299)]?.())return;for(const [_0x45c1e2,_0x3e3630]of _0x20269c[_0x1eb7bd(0x23e)]()){const _0x1dd323=_0x115b8e[_0x1eb7bd(0x317)](_0x1eb7bd(0x35d),_0xd2f871(_0x45c1e2)),_0x353091=_0x1dd323?.['decommission']===!![],_0xd7ca4a=_0x1dd323?.[_0x1eb7bd(0x2b8)]===!![];if(_0x353091&&!_0x3e3630[_0x1eb7bd(0x3cc)]){_0x3e3630[_0x1eb7bd(0x3cc)]=!![];_0x3e3630['respawnTimer']&&(clearTimeout(_0x3e3630['respawnTimer']),_0x3e3630['respawnTimer']=null);for(const {worker:_0x15e19e}of _0x21c740[_0x1eb7bd(0x387)]()){if(_0x28ea8d(_0x15e19e)!==_0x45c1e2||_0x15e19e['isDead']())continue;try{if(_0xd7ca4a)_0x15e19e[_0x1eb7bd(0x381)][_0x1eb7bd(0x2b8)](_0x1eb7bd(0x259));else _0x15e19e[_0x1eb7bd(0x266)]()&&_0x15e19e[_0x1eb7bd(0x32e)]();}catch{}}console[_0x1eb7bd(0x3aa)](_0x1eb7bd(0x1db)+(_0xd7ca4a?_0x1eb7bd(0x340):'decommissioned')+_0x1eb7bd(0x2ed)+_0x45c1e2+_0x1eb7bd(0x1e3));}else{if(!_0x353091&&_0x3e3630[_0x1eb7bd(0x3cc)]&&_0x1dd323){_0x3e3630[_0x1eb7bd(0x3cc)]=![],_0x3e3630['deaths']=[],_0x3e3630[_0x1eb7bd(0x2f7)]=0x0;const _0x35d5e3=[..._0x21c740[_0x1eb7bd(0x387)]()][_0x1eb7bd(0x1d4)](({worker:_0xed30a5})=>_0x28ea8d(_0xed30a5)===_0x45c1e2&&!_0xed30a5[_0x1eb7bd(0x1eb)]());!_0x35d5e3&&!_0x883afe&&(_0x3cf132(_0x45c1e2),console[_0x1eb7bd(0x3aa)](_0x1eb7bd(0x20a)+_0x45c1e2));}}}},_0x4690bd=()=>{try{_0x3e5dee();}catch{}};_0xa590f3?.[_0xaae862(0x306)]?.['on']?.(_0x2ddb8a[_0xaae862(0x3bb)],_0x4690bd);const _0x3bb183=[];if(_0xa590f3?.[_0xaae862(0x306)]?.['on'])for(const _0x5ca31f of _0x3902be){const _0x36aafa=_0x58124c=>{_0x27beeb({[_0x558eeb]:_0x584169,'event':_0x5ca31f,'data':_0x58124c??{}});};_0xa590f3[_0xaae862(0x306)]['on'](_0x5ca31f,_0x36aafa),_0x3bb183[_0xaae862(0x232)]({'event':_0x5ca31f,'handler':_0x36aafa});}const _0x2d4436=setInterval(()=>{_0x3e5dee(),_0x54efa2();},_0x204233);_0x2d4436[_0xaae862(0x371)]?.();const _0x9510d9=(_0x1e1d9e,_0x65b03a)=>{const _0x1dcc0c=_0xaae862;if(!_0x65b03a||typeof _0x65b03a!==_0x1dcc0c(0x1ca)||_0x65b03a[_0x558eeb]!==_0x5126c6)return;if(!_0xa590f3?.[_0x1dcc0c(0x3aa)]?.[_0x1dcc0c(0x1b5)])return;const _0x4828e3=_0x65b03a[_0x1dcc0c(0x33e)]||{};_0xa590f3[_0x1dcc0c(0x3aa)]['ingest']({..._0x4828e3,'msg':'[w'+_0x65b03a[_0x1dcc0c(0x35d)]+']\x20'+(_0x4828e3[_0x1dcc0c(0x26e)]??''),'meta':{..._0x4828e3[_0x1dcc0c(0x2a5)]||{},'worker':_0x65b03a[_0x1dcc0c(0x35d)],'workerPid':_0x65b03a['pid']}});};_0xfc96aa['on'](_0xaae862(0x302),_0x9510d9);const _0x4d1e2f=(_0x2a2eb8,_0x53d7a6)=>{const _0x3385cc=_0xaae862;if(!_0x53d7a6||typeof _0x53d7a6!=='object'||_0x53d7a6[_0x558eeb]!==_0x2d28d7)return;const _0x3be1db=_0x21c740[_0x3385cc(0x2cf)](_0x2a2eb8[_0x3385cc(0x381)][_0x3385cc(0x2e8)]);if(_0x3be1db){_0x3be1db[_0x3385cc(0x2d0)]={..._0x53d7a6['stats'],'at':Date['now']()};if(_0x53d7a6['processing']!==undefined)_0x3be1db[_0x3385cc(0x323)]=_0x53d7a6[_0x3385cc(0x323)];}};_0xfc96aa['on'](_0xaae862(0x302),_0x4d1e2f),_0xfc96aa['on']('exit',(_0x1053db,_0x13c53c,_0x39ab3d)=>{const _0x276fe5=_0xaae862,_0xf7db8a=_0x1053db['process']['pid'],_0x4c6a88=_0x28ea8d(_0x1053db),_0x5ca610=_0x21c740[_0x276fe5(0x2cf)](_0xf7db8a);if(_0x5ca610&&_0xa590f3?.[_0x276fe5(0x37e)])_0xa590f3['processes'][_0x276fe5(0x360)](_0xf7db8a+':'+_0x5ca610[_0x276fe5(0x23b)])[_0x276fe5(0x238)](()=>{});_0x21c740[_0x276fe5(0x362)](_0xf7db8a),console['log'](_0x276fe5(0x260)+_0xf7db8a+_0x276fe5(0x1d9)+(_0x4c6a88??'?')+_0x276fe5(0x324)+(_0x276fe5(0x3c1)+_0x13c53c+',\x20signal='+(_0x39ab3d??'none')+_0x276fe5(0x21c)+_0x21c740[_0x276fe5(0x389)]+_0x276fe5(0x1fd))),_0x54efa2();if(_0x883afe||_0x4c6a88==null)return;const _0x381efa=_0x20269c[_0x276fe5(0x2cf)](_0x4c6a88);if(!_0x381efa||_0x381efa[_0x276fe5(0x3cc)])return;const _0x57b7e4=Date['now']();_0x381efa[_0x276fe5(0x394)][_0x276fe5(0x232)](_0x57b7e4),_0x381efa['deaths']=_0x381efa[_0x276fe5(0x394)][_0x276fe5(0x315)](_0x22fb30=>_0x57b7e4-_0x22fb30<=_0x1c0828);if(_0x381efa[_0x276fe5(0x394)][_0x276fe5(0x39e)]>=_0x16a8d7){_0x381efa[_0x276fe5(0x3cc)]=!![],console['error'](_0x276fe5(0x2bf)+_0x4c6a88+_0x276fe5(0x313)+_0x381efa[_0x276fe5(0x394)]['length']+'\x20times\x20in\x20'+(_0x1c0828+_0x276fe5(0x277)+_0x21c740[_0x276fe5(0x389)]+_0x276fe5(0x2e1)));return;}_0x381efa[_0x276fe5(0x2f7)]++;const _0x27512e=Math[_0x276fe5(0x1cc)](_0x47d676,_0x123e3a*0x2**(_0x381efa[_0x276fe5(0x2f7)]-0x1));console[_0x276fe5(0x3aa)](_0x276fe5(0x214)+_0x4c6a88+_0x276fe5(0x1d2)+_0x27512e+_0x276fe5(0x2cc)+_0x381efa[_0x276fe5(0x2f7)]+')'),_0x381efa[_0x276fe5(0x29f)]=setTimeout(()=>{const _0x5ca483=_0x276fe5;_0x381efa[_0x5ca483(0x29f)]=null;if(_0x883afe||_0x381efa['dead'])return;const _0x738f2e=_0x3cf132(_0x4c6a88);_0x738f2e[_0x5ca483(0x1a4)](_0x5ca483(0x38c),()=>{const _0x261faa=_0x5ca483;if(_0x20269c[_0x261faa(0x2cf)](_0x4c6a88)===_0x381efa)_0x381efa[_0x261faa(0x2f7)]=0x0;});},_0x27512e),_0x381efa['respawnTimer'][_0x276fe5(0x371)]?.();});const _0x4995c1=[..._0x21c740[_0xaae862(0x1b3)]()];console[_0xaae862(0x3aa)](_0xaae862(0x1e4)+process[_0xaae862(0x2e8)]+_0xaae862(0x3af)+_0x34cf61+_0xaae862(0x34a)+_0x542e12+':\x20'+('['+_0x4995c1[_0xaae862(0x28e)](',\x20')+']'));const _0x26cb1f={'_isClusterController':!![],'port':_0x542e12,'primaryOkdb':_0xa590f3??null,'status'(){const _0x1844a5=_0xaae862;return{'clustered':!![],'primaryPid':process[_0x1844a5(0x2e8)],'port':_0x542e12,'primaryRole':_0xa590f3?.[_0x1844a5(0x1f9)]??null,'processorPid':null,'supervisorPid':process[_0x1844a5(0x2e8)],'workers':[..._0x21c740[_0x1844a5(0x387)]()]['map'](({worker:_0x1f5011})=>({'pid':_0x1f5011['process'][_0x1844a5(0x2e8)],'id':_0x1f5011['id'],'dead':_0x1f5011[_0x1844a5(0x1eb)]()}))};},async 'close'(){const _0x3ea991=_0xaae862;_0x883afe=!![];for(const _0x141bf9 of _0x20269c[_0x3ea991(0x387)]()){_0x141bf9[_0x3ea991(0x3cc)]=!![],_0x141bf9[_0x3ea991(0x29f)]&&(clearTimeout(_0x141bf9[_0x3ea991(0x29f)]),_0x141bf9[_0x3ea991(0x29f)]=null);}clearInterval(_0x2d4436),_0xfc96aa[_0x3ea991(0x200)](_0x3ea991(0x302),_0x9510d9),_0xfc96aa['off'](_0x3ea991(0x302),_0x4d1e2f),_0xa590f3?.[_0x3ea991(0x306)]?.['off']?.(_0x2ddb8a['SYSTEM_PROC'],_0x4690bd);if(_0xa590f3?.[_0x3ea991(0x306)]?.[_0x3ea991(0x200)])for(const {event:_0x3d30b5,handler:_0x9361e9}of _0x3bb183){try{_0xa590f3['events'][_0x3ea991(0x200)](_0x3d30b5,_0x9361e9);}catch{}}_0x3bb183['length']=0x0;const _0x45b327=[..._0x21c740['values']()][_0x3ea991(0x316)](({worker:_0x133390})=>_0x133390);if(_0x45b327[_0x3ea991(0x39e)]===0x0)return;await Promise[_0x3ea991(0x27b)](_0x45b327['map'](_0x1a0f2a=>new Promise(_0x3efad1=>{const _0x467c7b=_0x3ea991;if(_0x1a0f2a[_0x467c7b(0x1eb)]()){_0x3efad1();return;}let _0x237586=![];const _0x4ea76e=()=>{if(_0x237586)return;_0x237586=!![];if(_0x1c81c7)clearTimeout(_0x1c81c7);_0x3efad1();};_0x1a0f2a[_0x467c7b(0x1a4)](_0x467c7b(0x289),_0x4ea76e);const _0x1c81c7=setTimeout(()=>{const _0x11e2dc=_0x467c7b;try{_0x1a0f2a[_0x11e2dc(0x381)]['kill']();}catch{}},_0xf5434+0x1f4);_0x1c81c7[_0x467c7b(0x371)]?.();try{_0x1a0f2a[_0x467c7b(0x32e)]();}catch{try{_0x1a0f2a[_0x467c7b(0x381)]['kill']();}catch{}}})));}};return _0x26cb1f;}async function _0x45f3f9({makeOkdb:_0x25df29,port:_0x10285e}){const _0x326a45=_0x45fadd,_0xc94435=await _0x25df29();return _0x56bdac(_0xc94435),_0xc94435[_0x326a45(0x279)][_0x326a45(0x1fb)](_0x10285e);}function _0x56bdac(_0x4010cc){const _0x1e9d01=_0x45fadd;if(!_0x4010cc||_0x4010cc[_0x1e9d01(0x213)])return;_0x4010cc[_0x1e9d01(0x213)]=!![];try{const {OKDBChangefeed:_0x5608d3}=requireOkdbChangefeed(),_0x5059d0=_0x4010cc['_adminRelay'];if(_0x5059d0&&typeof _0x5059d0[_0x1e9d01(0x374)]==='function'){const _0x434887=new _0x5608d3(_0x4010cc);_0x434887[_0x1e9d01(0x1bf)](),_0x5059d0[_0x1e9d01(0x374)](_0x434887),_0x4010cc[_0x1e9d01(0x240)]=_0x434887;}}catch(_0x4b5a89){_0x4010cc['log']?.[_0x1e9d01(0x3be)]?.('[okdb-cluster]\x20change-feed\x20init\x20failed:\x20'+(_0x4b5a89?.['message']??_0x4b5a89),{'feature':_0x1e9d01(0x1cf)});}const _0x2b307d=_0x1d6eca=>{const _0x38ca34=_0x1e9d01;if(!_0x1d6eca||typeof _0x1d6eca!==_0x38ca34(0x1ca)||_0x1d6eca[_0x558eeb]==null)return;if(_0x1d6eca[_0x558eeb]===_0x584169)try{_0x4010cc[_0x38ca34(0x36f)]?.[_0x38ca34(0x24b)]?.(_0x1d6eca[_0x38ca34(0x258)],_0x1d6eca[_0x38ca34(0x23f)]);}catch{}};process['on'](_0x1e9d01(0x302),_0x2b307d),_0x4010cc[_0x1e9d01(0x310)]=_0x2b307d;{let _0x315ac0=process[_0x1e9d01(0x1e8)](),_0x4b6a58=Date[_0x1e9d01(0x2c8)]();const _0x549c20=()=>{const _0x1cf461=_0x1e9d01;if(typeof process[_0x1cf461(0x38e)]!==_0x1cf461(0x1dc)||!process[_0x1cf461(0x3b2)])return;const _0x335d5c=Date[_0x1cf461(0x2c8)](),_0x1b552a=process[_0x1cf461(0x1e8)](),_0xfd6f68=(_0x335d5c-_0x4b6a58)*0x3e8,_0x4d5609=_0x1b552a[_0x1cf461(0x3a0)]-_0x315ac0['user']+(_0x1b552a[_0x1cf461(0x36a)]-_0x315ac0[_0x1cf461(0x36a)]),_0x5ced95=_0xfd6f68>0x0?Math[_0x1cf461(0x1cc)](0x64,Math[_0x1cf461(0x292)](_0x4d5609/(_0xfd6f68*(_0x2d79f8[_0x1cf461(0x320)]()[_0x1cf461(0x39e)]||0x1))*0x64)):0x0;_0x315ac0=_0x1b552a,_0x4b6a58=_0x335d5c;const _0x4ecd3b=process[_0x1cf461(0x2ac)]();let _0x7175a4=null;try{_0x7175a4=_0x4010cc[_0x1cf461(0x1f9)]?.[_0x1cf461(0x33f)]?_0x4010cc[_0x1cf461(0x37e)]?.[_0x1cf461(0x237)]?.()??null:null;}catch{}try{process[_0x1cf461(0x38e)]({[_0x558eeb]:_0x2d28d7,'stats':{'rss':_0x4ecd3b[_0x1cf461(0x1ad)],'heapUsed':_0x4ecd3b['heapUsed'],'heapTotal':_0x4ecd3b[_0x1cf461(0x264)],'external':_0x4ecd3b[_0x1cf461(0x1aa)],'cpuPct':_0x5ced95,'cpuWindowMs':Math[_0x1cf461(0x292)](_0xfd6f68/0x3e8)||null},'processing':_0x7175a4});}catch{}},_0x2b285b=Math['max'](0x3e8,Number(process.env.OKDB_STATS_INTERVAL_MS)||0x1388),_0x153ee1=setInterval(_0x549c20,_0x2b285b);_0x153ee1[_0x1e9d01(0x371)]?.(),_0x549c20();for(const _0x44d19e of[_0x1e9d01(0x269),_0x1e9d01(0x29a)]){_0x4010cc[_0x1e9d01(0x306)]?.['on']?.(_0x44d19e,()=>{try{_0x549c20();}catch{}});}}let _0x4dc68f=![];const _0x90c6d6=async _0x3f9cf1=>{const _0x5e1a5b=_0x1e9d01;if(_0x4dc68f)return;_0x4dc68f=!![];const _0xdc01ac=setTimeout(()=>process['exit'](_0x3f9cf1),_0xf5434);_0xdc01ac['unref']?.();try{await _0x4010cc[_0x5e1a5b(0x3ce)]?.();}catch{}process[_0x5e1a5b(0x289)](_0x3f9cf1);};process['on']('disconnect',()=>_0x90c6d6(0x0));if(process[_0x1e9d01(0x21a)]!=='win32'){const _0x5fffa5=setInterval(()=>{if(process['ppid']===0x1)_0x90c6d6(0x0);},_0x20a3cd);_0x5fffa5[_0x1e9d01(0x371)]?.(),_0x4010cc[_0x1e9d01(0x1d0)]=_0x5fffa5;}}return okdbCluster={'runClustered':_0x196f08,'attachWorkerCluster':_0x56bdac},okdbCluster;}var hasRequiredOkdbHttpWorkerChild;function requireOkdbHttpWorkerChild(){const _0x4650ba=_0x487946;if(hasRequiredOkdbHttpWorkerChild)return okdbHttpWorkerChild$1;hasRequiredOkdbHttpWorkerChild=0x1;const _0x3f0c68=require$$0$5,{attachWorkerCluster:_0x4d719d}=requireOkdbCluster();async function _0x4eb92c(){const _0x47b595=_0x1273,_0x10b9fe=process.env.OKDB_HTTP_CHILD;if(!_0x10b9fe)throw new Error(_0x47b595(0x3b6));const {rootPath:_0x17211d,port:_0x489bd5,options:options={},logLevel:logLevel=_0x47b595(0x2b0)}=JSON[_0x47b595(0x1f6)](_0x10b9fe);if(!_0x17211d||!_0x489bd5)throw new Error('okdb-http-worker-child:\x20rootPath\x20and\x20port\x20required');const _0x139d5b=new _0x3f0c68(_0x17211d,{...options,'engines':![],'processors':![],'compaction':![]});_0x139d5b[_0x47b595(0x3aa)][_0x47b595(0x37d)]?.();const _0x57080b=process.env.OKDB_CLUSTER_SLOT??'?',_0x38fdd8={'debug':0x0,'info':0x1,'warn':0x2,'error':0x3},_0x335ae0=_0x38fdd8[logLevel]??_0x38fdd8[_0x47b595(0x2b0)];_0x139d5b[_0x47b595(0x3aa)][_0x47b595(0x2db)](_0x960fa4=>{const _0x19d679=_0x47b595;if((_0x38fdd8[_0x960fa4[_0x19d679(0x1c5)]]??0x1)<_0x335ae0)return;try{process[_0x19d679(0x38e)]?.({'__okdbCluster':'log','slot':_0x57080b,'pid':process['pid'],'entry':_0x960fa4});}catch{}}),await _0x139d5b['open'](),_0x4d719d(_0x139d5b),await _0x139d5b[_0x47b595(0x279)][_0x47b595(0x1fb)](_0x489bd5);}return _0x4eb92c()[_0x4650ba(0x238)](_0x5031a9=>{const _0xda0903=_0x4650ba;try{process['send']?.({'__okdbCluster':_0xda0903(0x3aa),'slot':process.env.OKDB_CLUSTER_SLOT??'?','pid':process[_0xda0903(0x2e8)],'entry':{'level':'error','msg':_0xda0903(0x222)+(_0x5031a9?.[_0xda0903(0x302)]??_0x5031a9)}});}catch{}process[_0xda0903(0x289)](0x1);}),okdbHttpWorkerChild$1;}var okdbHttpWorkerChildExports=requireOkdbHttpWorkerChild(),okdbHttpWorkerChild=getDefaultExportFromCjs(okdbHttpWorkerChildExports);module[_0x487946(0x34f)]=okdbHttpWorkerChild;
|
|
1
|
+
'use strict';const _0x337619=_0x58e7;(function(_0x45e061,_0x1e302d){const _0x296fd0=_0x58e7,_0x14e8a5=_0x45e061();while(!![]){try{const _0x1d39e4=-parseInt(_0x296fd0(0x289))/0x1+-parseInt(_0x296fd0(0x2aa))/0x2*(-parseInt(_0x296fd0(0x187))/0x3)+parseInt(_0x296fd0(0x13f))/0x4+parseInt(_0x296fd0(0x282))/0x5+parseInt(_0x296fd0(0x2dd))/0x6*(parseInt(_0x296fd0(0x24b))/0x7)+-parseInt(_0x296fd0(0x20a))/0x8*(-parseInt(_0x296fd0(0x1a2))/0x9)+-parseInt(_0x296fd0(0x1d4))/0xa;if(_0x1d39e4===_0x1e302d)break;else _0x14e8a5['push'](_0x14e8a5['shift']());}catch(_0x13d360){_0x14e8a5['push'](_0x14e8a5['shift']());}}}(_0x1400,0xc119a));var require$$0$5=require('./okdb'),require$$1$1=require(_0x337619(0x210)),require$$1=require('path'),require$$0$3=require('os'),require$$2=require(_0x337619(0x134)),require$$0=require(_0x337619(0x1bf)),require$$0$2=require('perf_hooks'),require$$0$1=require('fs'),require$$0$4=require(_0x337619(0x1be));function getDefaultExportFromCjs(_0x14d3fa){const _0x568c5d=_0x337619;return _0x14d3fa&&_0x14d3fa[_0x568c5d(0x350)]&&Object[_0x568c5d(0x239)]['hasOwnProperty'][_0x568c5d(0x146)](_0x14d3fa,'default')?_0x14d3fa[_0x568c5d(0x285)]:_0x14d3fa;}var okdbHttpWorkerChild$1={},okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x36ab67=_0x337619;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x167ac9={'PUT':_0x36ab67(0x129),'REMOVE':'remove','INDEX_DROP':'dropIndex','INDEX_REGISTER':'registerIndex','INDEX_RESET':_0x36ab67(0x234),'TYPE_REGISTER':'registerType','TYPE_DROP':_0x36ab67(0x1af),'FTS_REGISTER':_0x36ab67(0x236),'FTS_DROP':_0x36ab67(0x272),'FTS_RESET':_0x36ab67(0x18b),'SCHEMA_SET':_0x36ab67(0x1e9),'SCHEMA_DROP':_0x36ab67(0x14e),'TTL_SET':_0x36ab67(0x1fb),'TTL_CLEAR':_0x36ab67(0x1ce)},_0x324657={'SYSTEM_READY':_0x36ab67(0x2cc),'SYSTEM_STOPPED':_0x36ab67(0x34a),'SYSTEM_CLOCK_CHANGE':'system:clock_change','SYSTEM_POKE':_0x36ab67(0x307),'SYSTEM_DRAIN':_0x36ab67(0x16b),'SYSTEM_TYPE_DROP':_0x36ab67(0x26c),'SYSTEM_PROC':'system:proc','SYSTEM_BUS_STATE_CHANGE':_0x36ab67(0x265),'ITEM_CREATE':'item:create','ITEM_UPDATE':'item:update','ITEM_REMOVE':'item:remove','INDEX_RESET':'index:reset','INDEX_READY':_0x36ab67(0x153),'INDEX_PROGRESS':_0x36ab67(0x221),'VIEW_PROGRESS':_0x36ab67(0x309),'INDEX_DROP':_0x36ab67(0x27d),'INDEX_REGISTERED':_0x36ab67(0x209),'FTS_REGISTERED':_0x36ab67(0x1bd),'FTS_DROP':_0x36ab67(0x180),'FTS_RESET':'fts:reset','SCHEMA_SET':_0x36ab67(0x2db),'SCHEMA_DROP':_0x36ab67(0x1b2),'UNIQUE_VIOLATION':'unique:violation','UNIQUE_VIOLATION_RESOLVED':'unique:violation_resolved','REF_VIOLATION':'ref:violation','REF_VIOLATION_RESOLVED':_0x36ab67(0x29e),'SYNC_APPLY':_0x36ab67(0x15e),'TXN_START':_0x36ab67(0x18e),'TXN_END':'txn:end','TXN_ROLLBACK':'txn:rollback','TYPE_REGISTERED':_0x36ab67(0x337),'TYPE_DROP':_0x36ab67(0x255),'ENV_OPENED':_0x36ab67(0x1f7),'ENV_REMOVED':_0x36ab67(0x2e9),'SYSTEM_ENV_RELEASE':_0x36ab67(0x31c),'TTL_EXPIRED':'ttl:expired','TTL_SET':_0x36ab67(0x2d0),'TTL_CLEAR':_0x36ab67(0x179),'LICENSE_INVALID':'license:invalid','LICENSE_ADDED':_0x36ab67(0x28c),'LICENSE_ACTIVATED':_0x36ab67(0x206),'LICENSE_REMOVED':_0x36ab67(0x235)},_0xc8eca3={'CREATING':_0x36ab67(0x16c),'RESETTING':_0x36ab67(0x271),'READY':_0x36ab67(0x243),'DROPPING':_0x36ab67(0x1e6),'WAITING':_0x36ab67(0x185)},_0x56375b={'CREATED':_0x36ab67(0x25c),'STARTING':'starting','STARTED':_0x36ab67(0x1aa),'STOPPING':_0x36ab67(0x1cd),'STOPPED':'stopped'},_0x38316d={'CREATING':_0x36ab67(0x16c),'READY':_0x36ab67(0x243),'HALTED':_0x36ab67(0x1cf),'STOPPED':_0x36ab67(0x204),'RESETTING':_0x36ab67(0x271)},_0x514fa7=Object[_0x36ab67(0x214)]({'POKE':_0x36ab67(0x2ec),'DRAIN':_0x36ab67(0x16f),'TYPE_DROP':_0x36ab67(0x335),'PROC':_0x36ab67(0x29c),'ENV_RELEASE':_0x36ab67(0x2f1)});return okdbEnums={'BUS_EVENTS':_0x514fa7,'CHANGE_ACTIONS':_0x167ac9,'EVENTS':_0x324657,'INDEX_STATE':_0xc8eca3,'OKDB_STATE':_0x56375b,'VIEW_STATE':_0x38316d},okdbEnums;}var okdbLoopMonitor,hasRequiredOkdbLoopMonitor;function requireOkdbLoopMonitor(){const _0x2af6e2=_0x337619;if(hasRequiredOkdbLoopMonitor)return okdbLoopMonitor;hasRequiredOkdbLoopMonitor=0x1;const {monitorEventLoopDelay:_0x538b4c,performance:_0x4ea8b4}=require$$0,_0x341ffd=process.env.OKDB_LOOP_LAG==='1'||process.env.OKDB_LOOP_LAG===_0x2af6e2(0x325),_0x121401=Number(process.env.OKDB_LOOP_LAG_MS)||0x7d0,_0x1ee0dd=process.env.OKDB_LOOP_LAG_ALL==='1',_0x1137c8=Number(process.env.OKDB_LOOP_LAG_MIN_MS)||0x64;class _0x2b7252{constructor(){const _0x40f9ab=_0x2af6e2;this[_0x40f9ab(0x2fb)]=_0x341ffd,this[_0x40f9ab(0x287)]=new Map(),this['_h']=null,this[_0x40f9ab(0x178)]=null,this[_0x40f9ab(0x227)]=![],this[_0x40f9ab(0x19d)]=(_0x344409,_0x253d52)=>process[_0x40f9ab(0x12f)][_0x40f9ab(0x1c7)](_0x344409+(_0x253d52?'\x20'+JSON[_0x40f9ab(0x15a)](_0x253d52):'')+'\x0a');}[_0x2af6e2(0x348)](){const _0x2badc2=_0x2af6e2;return _0x4ea8b4[_0x2badc2(0x348)]();}[_0x2af6e2(0x208)](_0x517a5d){const _0x41c2e4=_0x2af6e2;if(typeof _0x517a5d===_0x41c2e4(0x1b8))this['_log']=_0x517a5d;}[_0x2af6e2(0x30f)](_0x333b28,_0x751e6c,_0x16bb27){const _0x45e8e9=_0x2af6e2;if(!this[_0x45e8e9(0x2fb)])return;let _0x559f57=this[_0x45e8e9(0x287)][_0x45e8e9(0x1fd)](_0x333b28);!_0x559f57&&(_0x559f57={'ms':0x0,'count':0x0,'maxMs':0x0,'maxExtra':''},this[_0x45e8e9(0x287)][_0x45e8e9(0x217)](_0x333b28,_0x559f57)),_0x559f57['ms']+=_0x751e6c,_0x559f57['count']+=0x1,_0x751e6c>_0x559f57[_0x45e8e9(0x219)]&&(_0x559f57['maxMs']=_0x751e6c,_0x559f57[_0x45e8e9(0x124)]=_0x16bb27||'');}[_0x2af6e2(0x1e1)](_0x15f688){const _0x4c1e29=_0x2af6e2;if(!this[_0x4c1e29(0x2fb)]||this[_0x4c1e29(0x227)])return;this['_started']=!![];if(_0x15f688)this[_0x4c1e29(0x19d)]=_0x15f688;this['_h']=_0x538b4c({'resolution':0xa}),this['_h']['enable'](),this['_timer']=setInterval(()=>this[_0x4c1e29(0x2b2)](),_0x121401);if(this['_timer']['unref'])this[_0x4c1e29(0x178)][_0x4c1e29(0x195)]();}[_0x2af6e2(0x24f)](_0x43a1ec){const _0x3e6671=_0x2af6e2;if(!this[_0x3e6671(0x2f6)])this['_windowCbs']=new Set();this[_0x3e6671(0x2f6)][_0x3e6671(0x1ff)](_0x43a1ec);if(!this['_started'])this[_0x3e6671(0x2e7)]();}[_0x2af6e2(0x19b)](_0xd69815){const _0x5eb90f=_0x2af6e2;this[_0x5eb90f(0x2f6)]?.['delete'](_0xd69815);}[_0x2af6e2(0x2e7)](){const _0x1231f2=_0x2af6e2;if(this[_0x1231f2(0x2d5)])return;this[_0x1231f2(0x2d5)]=!![];!this['_h']&&(this['_h']=_0x538b4c({'resolution':0xa}),this['_h'][_0x1231f2(0x298)]());const _0x541615=_0x121401;this[_0x1231f2(0x224)]=setInterval(()=>{const _0x29c3ec=_0x1231f2,_0x5eeb32=this['_h'];if(!_0x5eeb32)return;const _0x58f037=_0x5eeb32[_0x29c3ec(0x154)](0x63)/0xf4240,_0x1f060=_0x5eeb32['max']/0xf4240,_0x47f166=_0x5eeb32[_0x29c3ec(0x173)]/0xf4240;_0x5eeb32[_0x29c3ec(0x190)]();if(this[_0x29c3ec(0x2f6)])for(const _0x32a2eb of this[_0x29c3ec(0x2f6)]){try{_0x32a2eb({'p99Ms':_0x58f037,'maxMs':_0x1f060,'meanMs':_0x47f166,'reportMs':_0x541615});}catch{}}},_0x541615);if(this[_0x1231f2(0x224)][_0x1231f2(0x195)])this['_admissionTimer']['unref']();}[_0x2af6e2(0x2b2)](){const _0x7d9d3b=_0x2af6e2,_0x5a03b2=this['_h'],_0x2aceab=_0x5a03b2[_0x7d9d3b(0x17a)]/0xf4240,_0x1bedb6=_0x5a03b2['percentile'](0x63)/0xf4240,_0x3d44b5=_0x5a03b2[_0x7d9d3b(0x173)]/0xf4240;_0x5a03b2['reset']();const _0xebe30b=[...this[_0x7d9d3b(0x287)]['entries']()]['map'](([_0x225611,_0x34b840])=>({'label':_0x225611,..._0x34b840}))[_0x7d9d3b(0x192)]((_0x40cf07,_0x110697)=>_0x110697['ms']-_0x40cf07['ms'])[_0x7d9d3b(0x244)](0x0,0x8);this[_0x7d9d3b(0x287)][_0x7d9d3b(0x326)]();const _0x392bcd=_0xebe30b[_0x7d9d3b(0x142)]((_0x5dd604,_0x1629c2)=>_0x5dd604+_0x1629c2['ms'],0x0),_0x4333f9=_0xebe30b['map'](_0x5b7282=>_0x5b7282[_0x7d9d3b(0x17d)]+'='+_0x5b7282['ms'][_0x7d9d3b(0x186)](0x0)+_0x7d9d3b(0x1ac)+_0x5b7282[_0x7d9d3b(0x2a1)]+(_0x5b7282['maxMs']>0x5?_0x7d9d3b(0x34d)+_0x5b7282[_0x7d9d3b(0x219)][_0x7d9d3b(0x186)](0x0)+'ms'+(_0x5b7282['maxExtra']?'\x20'+_0x5b7282[_0x7d9d3b(0x124)]:'')+')':''));(_0x1ee0dd||_0x2aceab>=_0x1137c8)&&this['_log']('loop-lag\x20'+_0x121401+_0x7d9d3b(0x21d)+_0x2aceab[_0x7d9d3b(0x186)](0x0)+_0x7d9d3b(0x299)+_0x1bedb6[_0x7d9d3b(0x186)](0x0)+'ms\x20mean='+_0x3d44b5[_0x7d9d3b(0x186)](0x0)+_0x7d9d3b(0x14f)+_0x392bcd['toFixed'](0x0)+'ms'+(_0x4333f9['length']?_0x7d9d3b(0x1ee)+_0x4333f9[_0x7d9d3b(0x159)]('\x20\x20'):''),{'feature':_0x7d9d3b(0x18c)});if(this[_0x7d9d3b(0x2f6)])for(const _0x53d4f0 of this['_windowCbs']){try{_0x53d4f0({'p99Ms':_0x1bedb6,'maxMs':_0x2aceab,'meanMs':_0x3d44b5,'reportMs':_0x121401});}catch{}}}['stop'](){const _0x195130=_0x2af6e2;if(this[_0x195130(0x178)])clearInterval(this['_timer']);if(this['_h'])this['_h'][_0x195130(0x156)]();this[_0x195130(0x178)]=null,this['_h']=null,this['_started']=![];}}const _0x5e06b6=new _0x2b7252();if(_0x5e06b6[_0x2af6e2(0x2fb)])_0x5e06b6[_0x2af6e2(0x1e1)]();return okdbLoopMonitor={'LOOP':_0x5e06b6},okdbLoopMonitor;}var okdbWriter={'exports':{}},okdbDiag,hasRequiredOkdbDiag;function requireOkdbDiag(){if(hasRequiredOkdbDiag)return okdbDiag;hasRequiredOkdbDiag=0x1;const _0x2d4dc4=require$$0$1,_0x6870d2=require$$1;let _0x5e4d7b,_0x277110,_0x581192,_0xca298e,_0x2d9e04,_0x466fe8,_0x2151c3,_0x583a56=![];const _0x446276=new Set();let _0x5e5a17=null;const _0x4e4fb4=new Map();function _0x299311(){const _0x42e5f8=_0x58e7;if(_0x5e4d7b!==undefined)return _0x5e4d7b;_0x5e4d7b=process.env.OKDB_DIAG==='1';if(!_0x5e4d7b)return![];_0x277110=process.env.OKDB_DIAG_STACK==='1',_0xca298e=Math[_0x42e5f8(0x17a)](0x10,Number(process.env.OKDB_DIAG_RING)||0x100),_0x581192=new Array(_0xca298e),_0x2d9e04=0x0,_0x466fe8=0x0,_0x2151c3=process.env.OKDB_DIAG_DIR||null;if(_0x2151c3)try{_0x2d4dc4[_0x42e5f8(0x20f)](_0x2151c3,{'recursive':!![]});}catch{}return!![];}function _0x57d88c(){return _0x5e4d7b===undefined?_0x299311():_0x5e4d7b;}function _0x4c72a3(_0x4ebd77,_0x33bee8){const _0x5f4b98=_0x58e7;if(_0x5e4d7b===undefined?!_0x299311():!_0x5e4d7b)return;let _0x5f3c48;if(_0x277110){const _0x3b0a7f=new Error()['stack']||'';_0x5f3c48=_0x3b0a7f[_0x5f4b98(0x16a)]('\x0a')[_0x5f4b98(0x244)](0x3)[_0x5f4b98(0x33e)](_0x388b57=>_0x388b57[_0x5f4b98(0x1d0)]())['filter'](Boolean)[_0x5f4b98(0x244)](0x0,0x8);}_0x581192[_0x2d9e04]={'seq':_0x466fe8++,'t':Date[_0x5f4b98(0x348)](),'env':_0x4ebd77,'kind':_0x33bee8||_0x5f4b98(0x160),'stack':_0x5f3c48},_0x2d9e04=(_0x2d9e04+0x1)%_0xca298e;}function _0x54b482(_0x48fbfe){const _0x4f1eaa=_0x58e7,_0x2e15a2=[];for(let _0x2c5124=0x0;_0x2c5124<_0xca298e;_0x2c5124++){const _0xbbb62a=_0x581192[(_0x2d9e04-0x1-_0x2c5124+_0xca298e*0x2)%_0xca298e];if(!_0xbbb62a)continue;_0x2e15a2['push'](_0xbbb62a);if(_0x2e15a2[_0x4f1eaa(0x149)]>=_0x48fbfe)break;}return _0x2e15a2;}function _0x1aedc5(_0x196d53){const _0x39ba36=_0x58e7;try{process[_0x39ba36(0x12f)]['write'](_0x196d53+'\x0a');}catch{}if(_0x2151c3)try{_0x2d4dc4[_0x39ba36(0x176)](_0x6870d2[_0x39ba36(0x159)](_0x2151c3,_0x39ba36(0x1c3)+process[_0x39ba36(0x1a8)]+_0x39ba36(0x128)),_0x196d53+'\x0a');}catch{}}function _0x5c0a02(_0x157321){const _0x4eb39c=_0x58e7,_0x57e84c=_0x54b482(_0x157321);if(!_0x57e84c[_0x4eb39c(0x149)])return _0x4eb39c(0x1f5);const _0x4f622f=Date[_0x4eb39c(0x348)]();return _0x57e84c[_0x4eb39c(0x33e)](_0x28e26f=>{const _0x51f7c1=_0x4eb39c,_0xf03f19=_0x51f7c1(0x2a4)+_0x28e26f[_0x51f7c1(0x31b)]+'\x20-'+(_0x4f622f-_0x28e26f['t'])+_0x51f7c1(0x26e)+_0x28e26f[_0x51f7c1(0x21a)]+'\x20'+_0x28e26f[_0x51f7c1(0x250)];return _0x28e26f['stack']&&_0x28e26f['stack'][_0x51f7c1(0x149)]?_0xf03f19+_0x51f7c1(0x13d)+_0x28e26f['stack'][_0x51f7c1(0x159)](_0x51f7c1(0x13d)):_0xf03f19;})['join']('\x0a');}function _0x1b7281(_0x125853,_0x57a549){const _0x35af9b=_0x58e7,_0x2fc6e5=_0x35af9b(0x2c8)+_0x125853+_0x35af9b(0x31d)+new Date()[_0x35af9b(0x189)]()+_0x35af9b(0x151)+process['pid']+_0x35af9b(0x194),_0x32bc05=[_0x2fc6e5,'error:\x20'+(_0x57a549&&_0x57a549[_0x35af9b(0x220)]?_0x57a549[_0x35af9b(0x220)][_0x35af9b(0x16a)]('\x0a')[0x0]:_0x57a549),'recent\x20writes\x20(newest\x20first)'+(_0x277110?'':_0x35af9b(0x172))+':',_0x5c0a02(0x18),_0x5f4520(),'='[_0x35af9b(0x344)](_0x2fc6e5['length']-0x1)];_0x1aedc5(_0x32bc05[_0x35af9b(0x159)]('\x0a'));}function _0x45f666(_0x2f09bb){const _0x15ffbd=_0x58e7;if(!_0x57d88c())return;const _0xf9c496=String(_0x2f09bb&&_0x2f09bb['message']||_0x2f09bb||''),_0x444a8e=/already closed|environment is already|invalid read txn|reset an invalid/i[_0x15ffbd(0x34c)](_0xf9c496);_0x1b7281(_0x444a8e?_0x15ffbd(0x20d):_0x15ffbd(0x1b9),_0x2f09bb);if(process.env.OKDB_DIAG_SURVIVE==='1'&&_0x444a8e)return;try{console[_0x15ffbd(0x2c5)](_0x2f09bb&&_0x2f09bb[_0x15ffbd(0x220)]?_0x2f09bb[_0x15ffbd(0x220)]:_0x2f09bb);}catch{}process[_0x15ffbd(0x2c3)](0x1);}function _0x31aac3(_0x4475f2){const _0x587de2=_0x58e7;if(!_0x57d88c())return;const _0xb0dd4d=String(_0x4475f2&&_0x4475f2[_0x587de2(0x188)]||_0x4475f2||'');/already closed|environment is already|invalid read txn|reset an invalid/i[_0x587de2(0x34c)](_0xb0dd4d)&&_0x1b7281('ORPHAN\x20(env-closed\x20write,\x20unhandledRejection)',_0x4475f2);}function _0x5f4520(){const _0x20c330=_0x58e7,_0x18e5b1=['drain\x20state\x20(envs\x20with\x20a\x20non-zero\x20drain):'];let _0x4de020=![];for(const _0x24aace of _0x446276){const _0x44ff57=_0x24aace&&_0x24aace[_0x20c330(0x31a)];if(!_0x44ff57)continue;for(const [_0x51ae09,_0x1e8921]of _0x44ff57){const _0x2cb115=_0x1e8921&&_0x1e8921[_0x20c330(0x27c)]&&_0x1e8921['_coordinator'][_0x20c330(0x148)];if(!_0x2cb115)continue;let _0x4cbce6,_0x3a8e53;try{_0x4cbce6=Atomics['load'](_0x2cb115,0x0),_0x3a8e53=Atomics[_0x20c330(0x169)](_0x2cb115,0x1);}catch{continue;}if(_0x4cbce6===0x0)continue;_0x4de020=!![];const _0x315739=_0x4cbce6>0x0?_0x20c330(0x34b):_0x20c330(0x2c7),_0x1fb8f8=Date[_0x20c330(0x348)]()-Math[_0x20c330(0x2b8)](_0x4cbce6)*0x3e8,_0x2ae27c=((()=>{const _0x35f657=_0x20c330;try{return _0x1e8921[_0x35f657(0x30d)]&&_0x1e8921[_0x35f657(0x30d)]['status']?_0x1e8921[_0x35f657(0x30d)][_0x35f657(0x29d)]():null;}catch{return null;}})());_0x18e5b1[_0x20c330(0x1b4)](_0x20c330(0x2bd)+_0x51ae09+'\x20phase='+_0x315739+_0x20c330(0x1a0)+_0x1fb8f8+_0x20c330(0x319)+_0x3a8e53+(_0x2ae27c?_0x20c330(0x2af)+_0x2ae27c[_0x20c330(0x196)]+'\x20oldestPendingMs='+_0x2ae27c[_0x20c330(0x203)]+'\x20parkedNow='+_0x2ae27c[_0x20c330(0x33d)]+'}':''));}}if(!_0x4de020)_0x18e5b1[_0x20c330(0x1b4)](_0x20c330(0x25f));return _0x18e5b1[_0x20c330(0x159)]('\x0a');}function _0x32205b(){const _0x23cb3a=_0x58e7;if(!_0x57d88c())return;const _0x388ab1=Math[_0x23cb3a(0x17a)](0x3e8,Number(process.env.OKDB_DIAG_STALL_MS)||0x1f40),_0x412565=Date[_0x23cb3a(0x348)]();for(const _0x226daa of _0x446276){const _0x355e14=_0x226daa&&_0x226daa['_envs'];if(!_0x355e14)continue;for(const [_0x4f67ad,_0x14fdaa]of _0x355e14){const _0x316813=_0x14fdaa&&_0x14fdaa[_0x23cb3a(0x27c)]&&_0x14fdaa[_0x23cb3a(0x27c)][_0x23cb3a(0x148)];if(!_0x316813)continue;let _0x4b08ce;try{_0x4b08ce=Atomics[_0x23cb3a(0x169)](_0x316813,0x0);}catch{continue;}const _0x2037e6=_0x226daa['path']+'|'+_0x4f67ad;if(_0x4b08ce<=0x0){_0x4e4fb4[_0x23cb3a(0x23f)](_0x2037e6);continue;}const _0x67798f=_0x412565-_0x4b08ce*0x3e8,_0x454d54=_0x4e4fb4[_0x23cb3a(0x1fd)](_0x2037e6);if(_0x67798f<_0x388ab1)continue;if(_0x454d54&&_0x412565-_0x454d54[_0x23cb3a(0x167)]<_0x388ab1)continue;_0x4e4fb4['set'](_0x2037e6,{'firstTs':_0x454d54?_0x454d54[_0x23cb3a(0x1dc)]:_0x4b08ce,'dumpedAt':_0x412565});const _0x4cd9ac=_0x23cb3a(0x12b)+_0x67798f+_0x23cb3a(0x308)+_0x4f67ad+_0x23cb3a(0x31d)+new Date()['toISOString']()+_0x23cb3a(0x151)+process[_0x23cb3a(0x1a8)]+_0x23cb3a(0x194);_0x1aedc5([_0x4cd9ac,_0x5f4520(),'='['repeat'](_0x4cd9ac[_0x23cb3a(0x149)]-0x1)][_0x23cb3a(0x159)]('\x0a'));}}}function _0x495287(){const _0x33a4dc=_0x58e7;if(!_0x57d88c()||_0x583a56)return;_0x583a56=!![],process[_0x33a4dc(0x135)](_0x33a4dc(0x1b9),_0x45f666),process[_0x33a4dc(0x135)](_0x33a4dc(0x33b),_0x31aac3);const _0x358611=Math[_0x33a4dc(0x17a)](0xfa,Number(process.env.OKDB_DIAG_WATCH_MS)||0x7d0);_0x5e5a17=setInterval(_0x32205b,_0x358611);if(_0x5e5a17[_0x33a4dc(0x195)])_0x5e5a17[_0x33a4dc(0x195)]();}function _0x287da8(_0x448882){const _0x38eb16=_0x58e7;if(!_0x57d88c()||!_0x448882)return;_0x446276[_0x38eb16(0x1ff)](_0x448882),_0x495287();}function _0xc9ec48(_0x1bcd3c){_0x446276['delete'](_0x1bcd3c);}function _0x145cbd(){if(!_0x57d88c())return{'enabled':![],'hint':'set\x20OKDB_DIAG=1\x20(and\x20OKDB_DIAG_STACK=1\x20to\x20name\x20write\x20sites)'};return{'enabled':!![],'stackCapture':!!_0x277110,'recentWrites':_0x54b482(0x10),'drain':_0x5f4520()};}return okdbDiag={'isEnabled':_0x57d88c,'recordWrite':_0x4c72a3,'installDiag':_0x495287,'registerOkdb':_0x287da8,'unregisterOkdb':_0xc9ec48,'snapshot':_0x145cbd},okdbDiag;}var hasRequiredOkdbWriter;function requireOkdbWriter(){const _0x1742db=_0x337619;if(hasRequiredOkdbWriter)return okdbWriter[_0x1742db(0x2c1)];hasRequiredOkdbWriter=0x1;const {performance:_0x3dadb0}=require$$0$2,_0x4e249d=requireOkdbDiag(),_0xf8fd77=process.env.OKDB_COMMIT_MODE===_0x1742db(0x174);class _0x3fd337{constructor(_0x394a11){const _0x548ed9=_0x1742db;this[_0x548ed9(0x21a)]=_0x394a11,this[_0x548ed9(0x15f)]=new Set(),this[_0x548ed9(0x1db)]=new Map(),this[_0x548ed9(0x131)]=0x0,this[_0x548ed9(0x1b0)]=[],this['_done']=[],this[_0x548ed9(0x2da)]=Math[_0x548ed9(0x17a)](0x0,Number(process.env.OKDB_WRITER_HIGH_WATER??0x400)),this[_0x548ed9(0x293)]=0x0,this['_bpWaiters']=[],this[_0x548ed9(0x263)]=0x0;}async[_0x1742db(0x32a)](_0xd16f75,_0x2b5009){const _0x4514ac=_0x1742db;if(_0x4e249d['isEnabled']())_0x4e249d['recordWrite'](this[_0x4514ac(0x21a)]?.['name'],_0x2b5009);if(this[_0x4514ac(0x339)]){const _0x1041c7=new Error(_0x4514ac(0x14d));_0x1041c7[_0x4514ac(0x1c0)]=_0x4514ac(0x158);throw _0x1041c7;}if(this[_0x4514ac(0x2da)]>0x0){let _0x2faf8e=![];while(this[_0x4514ac(0x293)]>=this[_0x4514ac(0x2da)]&&!this[_0x4514ac(0x339)]){!_0x2faf8e&&(_0x2faf8e=!![],this[_0x4514ac(0x263)]++),await new Promise(_0x21353d=>this[_0x4514ac(0x27b)][_0x4514ac(0x1b4)](_0x21353d));}if(this[_0x4514ac(0x339)]){const _0x4bfdc7=new Error(_0x4514ac(0x14d));_0x4bfdc7['code']=_0x4514ac(0x158);throw _0x4bfdc7;}}this[_0x4514ac(0x293)]++;const _0x287aa3=this['env'][_0x4514ac(0x27c)];if(_0x287aa3)await _0x287aa3[_0x4514ac(0x164)]();if(this[_0x4514ac(0x339)]){if(_0x287aa3)_0x287aa3[_0x4514ac(0x2c9)]();this[_0x4514ac(0x293)]--;if(this[_0x4514ac(0x27b)]['length']&&this[_0x4514ac(0x293)]<this[_0x4514ac(0x2da)])this[_0x4514ac(0x27b)][_0x4514ac(0x294)]()();const _0x547b5d=new Error(_0x4514ac(0x14d));_0x547b5d[_0x4514ac(0x1c0)]=_0x4514ac(0x158);throw _0x547b5d;}const _0x1f1016=_0x3dadb0[_0x4514ac(0x348)]();if(_0xf8fd77)try{const _0x15a179=this[_0x4514ac(0x21a)]['db'][_0x4514ac(0x20c)](_0xd16f75);this['_committed']++;if(this['_durs'][_0x4514ac(0x1b4)](_0x3dadb0[_0x4514ac(0x348)]()-_0x1f1016)>0x100)this[_0x4514ac(0x1b0)][_0x4514ac(0x294)]();if(this[_0x4514ac(0x15c)][_0x4514ac(0x1b4)](_0x3dadb0[_0x4514ac(0x348)]())>0x800)this['_done'][_0x4514ac(0x294)]();return _0x15a179;}finally{this['_outstanding']--;if(this[_0x4514ac(0x27b)][_0x4514ac(0x149)]&&this['_outstanding']<this[_0x4514ac(0x2da)])this[_0x4514ac(0x27b)][_0x4514ac(0x294)]()();if(_0x287aa3)_0x287aa3[_0x4514ac(0x2c9)]();}const _0x257e8b=this[_0x4514ac(0x21a)]['db']['childTransaction'](_0xd16f75);this['_inflight'][_0x4514ac(0x1ff)](_0x257e8b),this[_0x4514ac(0x1db)][_0x4514ac(0x217)](_0x257e8b,_0x1f1016);const _0x2e8f73=()=>{const _0x41ac27=_0x4514ac;this['_inflight'][_0x41ac27(0x23f)](_0x257e8b),this['_enqueuedAt'][_0x41ac27(0x23f)](_0x257e8b),this[_0x41ac27(0x131)]++,this['_outstanding']--;this[_0x41ac27(0x27b)]['length']&&this[_0x41ac27(0x293)]<this[_0x41ac27(0x2da)]&&this['_bpWaiters'][_0x41ac27(0x294)]()();if(this[_0x41ac27(0x1b0)]['push'](_0x3dadb0['now']()-_0x1f1016)>0x100)this[_0x41ac27(0x1b0)]['shift']();if(this['_done'][_0x41ac27(0x1b4)](_0x3dadb0[_0x41ac27(0x348)]())>0x800)this[_0x41ac27(0x15c)][_0x41ac27(0x294)]();};_0x257e8b[_0x4514ac(0x248)](_0x2e8f73,_0x2e8f73);try{return await _0x257e8b;}finally{if(_0x287aa3)_0x287aa3[_0x4514ac(0x2c9)]();}}['status'](){const _0x4328f4=_0x1742db,_0x30fb28=_0x3dadb0['now']();let _0xce9a81=0x0;for(const _0x5ea3f2 of this[_0x4328f4(0x1db)]['values']()){const _0x4d145e=_0x30fb28-_0x5ea3f2;if(_0x4d145e>_0xce9a81)_0xce9a81=_0x4d145e;}let _0x351817=0x0;for(let _0x26a9ad=this[_0x4328f4(0x15c)][_0x4328f4(0x149)]-0x1;_0x26a9ad>=0x0;_0x26a9ad--){if(_0x30fb28-this[_0x4328f4(0x15c)][_0x26a9ad]>0x3e8)break;_0x351817++;}let _0x134abb=0x0;if(this['_durs'][_0x4328f4(0x149)]){const _0x5c4ea2=[...this[_0x4328f4(0x1b0)]]['sort']((_0x1cd7ec,_0x3184a5)=>_0x1cd7ec-_0x3184a5);_0x134abb=_0x5c4ea2[Math[_0x4328f4(0x278)](_0x5c4ea2['length']-0x1,Math[_0x4328f4(0x1e4)](_0x5c4ea2[_0x4328f4(0x149)]*0.99))];}return{'depth':this['_inflight']['size'],'oldestPendingMs':Math[_0x4328f4(0x143)](_0xce9a81),'committed':this[_0x4328f4(0x131)],'commitsPerSec':_0x351817,'commitP99Ms':Math[_0x4328f4(0x143)](_0x134abb),'parkedNow':this['_bpWaiters'][_0x4328f4(0x149)],'parkedTotal':this[_0x4328f4(0x263)],'highWater':this[_0x4328f4(0x2da)]};}[_0x1742db(0x2c6)](){const _0xbefbe1=_0x1742db,_0x4b0e85=_0x3dadb0[_0xbefbe1(0x348)]();return[...this[_0xbefbe1(0x1db)][_0xbefbe1(0x1c9)]()][_0xbefbe1(0x33e)](_0x4fd91c=>Math[_0xbefbe1(0x143)](_0x4b0e85-_0x4fd91c))[_0xbefbe1(0x192)]((_0x12cefa,_0x5e4762)=>_0x5e4762-_0x12cefa);}[_0x1742db(0x316)](){const _0x549605=_0x1742db;this['_closed']=!![];for(const _0x40fb4a of this[_0x549605(0x27b)]['splice'](0x0))_0x40fb4a();}async[_0x1742db(0x1c1)](){const _0x31cd6f=_0x1742db;let _0x51e7ed=0x0;while(this['_inflight'][_0x31cd6f(0x1e8)]&&_0x51e7ed++<0x3e8){await Promise[_0x31cd6f(0x32c)]([...this[_0x31cd6f(0x15f)]]);}}async[_0x1742db(0x129)](_0x120392,_0x4d932b,_0x112380,_0x517140){const _0x515344=_0x1742db;return this[_0x515344(0x32a)](()=>{const _0x5711b1=_0x515344;if(_0x517140===undefined)_0x120392['putSync'](_0x4d932b,_0x112380);else _0x120392[_0x5711b1(0x300)](_0x4d932b,_0x112380,_0x517140);},_0x515344(0x170));}async[_0x1742db(0x1f2)](_0x1f0836,_0x5c3025){const _0x321334=_0x1742db;return this[_0x321334(0x32a)](()=>_0x1f0836[_0x321334(0x29a)](_0x5c3025),_0x321334(0x313));}}async function _0x39d50d(_0x44e52b,_0x5ae566){const _0x147a14=_0x1742db;if(_0x5ae566==null)_0x5ae566=Math['max'](0x3e8,Number(process.env.OKDB_FLUSH_BEFORE_CLOSE_MS)||0x1d4c0);try{const _0x726599=_0x44e52b?.[_0x147a14(0x1d5)];if(!_0x726599||typeof _0x726599[_0x147a14(0x248)]!==_0x147a14(0x1b8))return;await Promise[_0x147a14(0x152)]([Promise[_0x147a14(0x21e)](_0x726599)[_0x147a14(0x183)](()=>{}),new Promise(_0x16fca0=>{const _0x17fbf0=_0x147a14,_0x1196f8=setTimeout(_0x16fca0,_0x5ae566);if(_0x1196f8[_0x17fbf0(0x195)])_0x1196f8[_0x17fbf0(0x195)]();})]);}catch{}}function _0x218c67(_0x50dd47){const _0x3caced=_0x1742db;if(_0xf8fd77)return Promise[_0x3caced(0x21e)]();const _0x3da6cb=_0x50dd47?.[_0x3caced(0x304)];return _0x3da6cb&&typeof _0x3da6cb[_0x3caced(0x248)]===_0x3caced(0x1b8)?_0x3da6cb:Promise[_0x3caced(0x21e)]();}return okdbWriter['exports']=_0x3fd337,okdbWriter[_0x1742db(0x2c1)][_0x1742db(0x266)]=_0x39d50d,okdbWriter['exports']['committed']=_0x218c67,okdbWriter[_0x1742db(0x2c1)]['SYNC_COMMITS']=_0xf8fd77,okdbWriter['exports'];}var okdbLock,hasRequiredOkdbLock;function _0x1400(){const _0x2dd809=['single','putNode','pid','deaths','started','_collectWriterFacet','ms/','SYSTEM_PROC','\x20ipc\x20error:\x20','dropType','_durs','cursorKey','schema:drop','inspect','push','okdb-http-worker-child:\x20OKDB_HTTP_CHILD\x20env\x20config\x20missing','workers','online','function','uncaughtException','draining','openDB','_dedupeKey','fts:registered','node:events','node:perf_hooks','code','drain','external','okdb-diag.',':want','release','envsOpen','write','process','values','_lastPublishAt','processKey','running','stopping','clearTtl','halted','trim','_putRowSync','_scheduleFlush','_selfKey','10597430Xetxub','flushed','decommissioned','processor:resumed','processor:progress','_onItem','_instanceId','_enqueuedAt','firstTs','_wantDb','list','processor:ready','claimGated','start','entries','_removeRowAsync','floor','string','dropping','system','size','setSchema','~processes','respawnTimer','_released','removeNode','\x20│\x20','signalWant','object','replace','remove','epoch','caps','\x20\x20(write\x20ring\x20empty\x20—\x20was\x20OKDB_DIAG\x20set\x20before\x20any\x20write?)','INDEX_READY','env:opened','_publishNow','_startedAt','off','setTtl','lifecycle','get','getChanges','add','[okdb-cluster]\x20CRASH-LOOP:\x20worker\x20slot=','processing','keys','oldestPendingMs','stopped','_drainOne','license:activated','slot','setLogger','index:registered','30152ebeuaz','_quantum','transactionSync','ORPHAN\x20(env-closed\x20write)','FTS_RESET','mkdirSync','cluster','cpuWindowMs','processor:retry','fromEntries','freeze','_singletonLocks','publishOwnRow','set','_nodeDead','maxMs','env','warn','value','ms\x20max=','resolve','_adminRelay','stack','index:progress','has','assign','_admissionTimer','\x20stays\x20down\x20on\x20boot\x20(durable\x20decommission)','processorsView','_started','functions','FTS_DROP','listAll','participate','_holderDead','send','--inspect','procmodeack/','extend','\x20(slot=','~lock','_openEnvLazy','resetIndex','license:removed','registerFts','primary','_drain','prototype','_isReader','_maybePublish','building','ms\x20—\x20giving\x20up\x20on\x20this\x20slot;\x20','http','delete','_startHeartbeat','_threadStats','INDEX_RESET','ready','slice','filter','win32','_isWriter','then','runtimeProcessesView','ttlMs','2361611kPsqFv','_versionSkewWarned','_lastCpuPct','force','onWindow','kind','consecutiveFailures','user','rows=','busy','type:drop',')\x20exited\x20','slotKey','\x20HTTP\x20server(s)\x20on\x20port\x20','isWorker','reportThreadStats','events','created','ITEM_REMOVE','acquiredAt','\x20\x20(no\x20env\x20draining)','_lockDb','feed:','_lastCpuAt','_bpParkedTotal','reap','system:bus_state_change','flushLmdb','node','stopHeartbeat','_nodeDbFor','async','confirm','system:type_drop','registry-publish','ms\x20env=','_draining','_handleInProcess','resetting','dropFts','ms\x20(attempt\x20','REMOVE','standalone','meta','pushEphemeral','min','_lock','find','_bpWaiters','_coordinator','index:drop','removeSupervisedChild','holder','_participate','_onPoke','2687440jbvuFp','ESRCH','cli','default','startHeartbeat','_buckets','--test','1512846PNFSoO','_onProcEvent','stats','license:added','instanceId','open','SYSTEM_STOPPED','_putRowAsync','updateSupervisedChildStats','decommission','_outstanding','shift','children','listDesired','_desiredOverlay','enable','ms\x20p99=','removeSync','_cursors','bus:proc','status','ref:violation_resolved','[okdb-cluster]\x20','attachFeed','count','--print','deregisterSelf','\x20\x20#','noteListenAddr','kill','_servingEngines','_role','emit','128PVDXyD','once','_publishFailWarned','_activateProcesses','_clusterOnMessage','\x20writer{depth=','_refreshDesiredSnapshot','isConnected','_report','_flushDebounce','threads','_cmd','_caps','host','abs','(code=','flushDebounce','listNodes','hasDesired','\x20\x20env=','_key','getRange','rss','exports','includes','exit','expiresAt','error','inflightAgesMs','copy','\x0a===\x20OKDB_DIAG\x20','afterWrite','tryAcquire','listenAddr','system:ready','_db','okdb-http-worker-child:\x20rootPath\x20and\x20port\x20required','_rawDb','ttl:set','msg','stop','processors','registry\x20heartbeat\x20skipped\x20(writer=','_admissionStarted','execArgv','_changefeed','getProcess','_statusEnv','_highWater','schema:set','role','24OMOUlN','_heartbeatInFlight','_baselines','isWanted','\x20forked\x20','memoryUsage','_onStop','registerType','clusterStatusView','processingStatusView','_startAdmission','compaction','env:removed','publishChildRow','singletonClaims','bus:poke','_acquiredAt',');\x20','disconnect','hasType','bus:env_release','isPrimary','ppid','unclaimed','processor:paused','_windowCbs','resetReadTxn','_wantDbHandle','setOwnMeta','_handlePoke','enabled','_seen','http\x20worker\x20child\x20failed:\x20','randomUUID','_buildProcessingFacet','putSync','fanout','_rootDb','ephemeral','committed','_buildChildRow','dedupeMax','system:poke','ms\x20on\x20env=','view:progress','ITEM_UPDATE','all','options','_writer','_singletonLock','note','\x20in\x20','cluster:','close','raw-remove','log','[okdb-cluster]\x20change-feed\x20init\x20failed:\x20','markClosed','--watch','workersConfigured','ms\x20activeWriters=','_envs','seq','system:env_release','\x20@\x20','_dedupeMax','dead','clearThreadStats','CHANGEFEED_QUANTUM','some','_sampleOwnStats','heartbeatMs','true','clear','\x20while\x20this\x20process\x20runs\x20','_getType','_isStale','transaction','\x20statusEnv=','allSettled','_enableChangelog','SYSTEM_POKE','platform','next','_sandbox','supervisorKey','_desired','okdb-http-worker-child.js','bus:type_drop','_children','type:registered','sandbox','_closed','_nodeDbCache','unhandledRejection','_clusterWorkerAttached','parkedNow','map','engines','processes','_collectSingletonClaims','version','_processStartedAt','repeat','treeView','SIGKILL','heapUsed','now','_groupByProcess','system:stopped','SWAP','test','(worst\x20','compact','\x20sync','__esModule','worker','setDesired','childTransaction','updatedAt','node/','_kind','parse','cpuUsage','_hbTimer','from','maxExtra','heapTotal','writerStatus','_ownMeta','.log','put','process\x20','\x0a===\x20OKDB_DIAG\x20STALL:\x20swap\x20drain\x20held\x20','_migrateVocab','cpus','okdb','stderr','[okdb-cluster]\x20primary\x20pid=','_committed','info','~processes:desired','crypto','prependListener','connected','processor','getClock','rowKey','_onTick','entry','inst:','\x0a\x20\x20\x20\x20\x20\x20','uptime','325496ZOrlre','nodesView','processorId','reduce','round','namespace','[okdb-cluster]\x20respawning\x20worker\x20slot=','call','attach','view','length','_systemEnv','__okdbSlot','\x20(durable\x20desired-state)','okdb-writer:\x20env\x20closing\x20—\x20retry','dropSchema','ms\x20busy=','cluster-wide','\x20pid=','race','index:ready','percentile','_listenAddr','disable','fn-runner','ENV_CLOSING_RETRY','join','stringify','hostname','_done','INDEX_REGISTERED','sync:apply','_inflight','commit','__okdbCluster','_flushTimer','_buildOwnRow','beforeWrite','getCmd','ITEM_CREATE','dumpedAt','[okdb-cluster]\x20recommissioned\x20worker\x20slot=','load','split','system:drain','creating','selfKey','isDead','bus:drain','raw-put','type','\x20—\x20set\x20OKDB_DIAG_STACK=1\x20to\x20name\x20the\x20call\x20site','mean','sync','nodeKey','appendFileSync','embedded','_timer','ttl:clear','max','_ensureDesired','_lastCpuUsage','label','processor:error','mode','fts:drop','_nodeDb','_markSeen','catch','_heartbeatTimer','waiting','toFixed','29181FXAbNV','message','toISOString','migrations','resetFts','loop-lag','indexOf','txn:start','change','reset','_rowKey','sort','state','\x20===','unref','depth','commitP99Ms','startsWith','_supervisorKey','http-server','offWindow','_pending','_log','startedAt','\x20times\x20in\x20','\x20drainAge=','getDesired','1845DEnGEc','number','claims',')\x20—\x20this\x20process\x20will\x20not\x20appear\x20in\x20the\x20process\x20census'];_0x1400=function(){return _0x2dd809;};return _0x1400();}function requireOkdbLock(){const _0x4ee260=_0x337619;if(hasRequiredOkdbLock)return okdbLock;hasRequiredOkdbLock=0x1;const _0x4c4997=require$$0$3,{SYNC_COMMITS:_0x49c9f1}=requireOkdbWriter(),_0x1b821b=_0x4ee260(0x232);class _0x518c10{constructor(_0x5c8a2b,_0x12dc01,_0x2a8480){const _0x4fcbf4=_0x4ee260;this[_0x4fcbf4(0x279)]=_0x5c8a2b,this[_0x4fcbf4(0x2be)]=_0x12dc01,this[_0x4fcbf4(0x2ed)]=_0x2a8480,this[_0x4fcbf4(0x1ec)]=![],this['_heartbeatTimer']=null,this['_heartbeatInFlight']=null;}['isHeld'](){const _0x5b59e2=_0x4ee260;if(this[_0x5b59e2(0x1ec)])return![];try{const _0x2f28cb=this[_0x5b59e2(0x279)][_0x5b59e2(0x2cd)]()[_0x5b59e2(0x1fd)](this[_0x5b59e2(0x2be)]);if(!_0x2f28cb||_0x2f28cb['acquiredAt']!==this[_0x5b59e2(0x2ed)])return![];const _0x165d26=_0x2f28cb[_0x5b59e2(0x354)]??_0x2f28cb[_0x5b59e2(0x25e)];if(_0x165d26+_0x2f28cb[_0x5b59e2(0x24a)]<Date[_0x5b59e2(0x348)]())return![];return!![];}catch{return!this['_released'];}}['holder'](){const _0x4a4c85=_0x4ee260;if(this[_0x4a4c85(0x1ec)])return null;try{return this['_lock'][_0x4a4c85(0x2cd)]()[_0x4a4c85(0x1fd)](this[_0x4a4c85(0x2be)])??null;}catch{return null;}}async[_0x4ee260(0x230)](_0x435d6c){const _0x50455f=_0x4ee260;if(this[_0x50455f(0x1ec)])return;try{const _0x2cb2f7=this[_0x50455f(0x279)][_0x50455f(0x2cd)]()[_0x50455f(0x1fd)](this['_key']);if(!_0x2cb2f7||_0x2cb2f7[_0x50455f(0x25e)]!==this[_0x50455f(0x2ed)])return;if(_0x49c9f1)this[_0x50455f(0x279)][_0x50455f(0x2cd)]()['putSync'](this['_key'],{..._0x2cb2f7,'ttlMs':_0x2cb2f7['ttlMs']+_0x435d6c});else await this[_0x50455f(0x279)][_0x50455f(0x2cd)]()[_0x50455f(0x129)](this['_key'],{..._0x2cb2f7,'ttlMs':_0x2cb2f7[_0x50455f(0x24a)]+_0x435d6c});}catch{}}async[_0x4ee260(0x1c5)](){const _0x54a188=_0x4ee260;if(this[_0x54a188(0x1ec)])return;if(this[_0x54a188(0x2de)])try{await this['_heartbeatInFlight'];}catch{}clearInterval(this[_0x54a188(0x184)]),this['_heartbeatTimer']=null,this['_released']=!![];try{const _0xb90529=this['_lock'][_0x54a188(0x2cd)]()['get'](this['_key']);if(_0xb90529&&_0xb90529['acquiredAt']===this['_acquiredAt']){if(_0x49c9f1)this[_0x54a188(0x279)]['_db']()[_0x54a188(0x29a)](this[_0x54a188(0x2be)]);else await this[_0x54a188(0x279)][_0x54a188(0x2cd)]()[_0x54a188(0x1f2)](this['_key']);}}catch{}}[_0x4ee260(0x240)](_0x59b8a2,_0x29face){const _0x5801dc=_0x4ee260,_0x2d9aa3=_0x29face??Math[_0x5801dc(0x1e4)](_0x59b8a2/0x3);this['_heartbeatTimer']=setInterval(()=>{const _0x47b292=_0x5801dc;if(this['_released'])return;this[_0x47b292(0x2de)]=((async()=>{const _0x51af62=_0x47b292;try{const _0xccfdce=this[_0x51af62(0x279)]['_db']()[_0x51af62(0x1fd)](this[_0x51af62(0x2be)]);if(!_0xccfdce||_0xccfdce[_0x51af62(0x25e)]!==this[_0x51af62(0x2ed)]){this[_0x51af62(0x1ec)]=!![],clearInterval(this['_heartbeatTimer']),this[_0x51af62(0x184)]=null;return;}if(_0x49c9f1)this[_0x51af62(0x279)][_0x51af62(0x2cd)]()[_0x51af62(0x300)](this[_0x51af62(0x2be)],{..._0xccfdce,'updatedAt':Date[_0x51af62(0x348)]()});else await this[_0x51af62(0x279)]['_db']()[_0x51af62(0x129)](this[_0x51af62(0x2be)],{..._0xccfdce,'updatedAt':Date['now']()});}catch{}this[_0x51af62(0x2de)]=null;})());},_0x2d9aa3);if(this[_0x5801dc(0x184)][_0x5801dc(0x195)])this[_0x5801dc(0x184)]['unref']();}}class _0x36751e{constructor(_0x2c9c7f,{namespace:_0x18f445,ttlMs:ttlMs=0x7530,heartbeatMs:heartbeatMs=null}={}){const _0x64bedf=_0x4ee260;this[_0x64bedf(0x2cf)]=_0x2c9c7f,this['namespace']=_0x18f445,this['ttlMs']=ttlMs,this[_0x64bedf(0x324)]=heartbeatMs,this[_0x64bedf(0x260)]=null;}[_0x4ee260(0x2cd)](){const _0x430c88=_0x4ee260;return!this['_lockDb']&&(this[_0x430c88(0x260)]=this['_rawDb'][_0x430c88(0x1bb)](_0x1b821b,{'dupSort':![]})),this[_0x430c88(0x260)];}['_wantDb'](){const _0x29429e=_0x4ee260;return!this[_0x29429e(0x2f8)]&&(this[_0x29429e(0x2f8)]=this[_0x29429e(0x2cf)][_0x29429e(0x1bb)](_0x1b821b+_0x29429e(0x1c4),{'dupSort':![]})),this['_wantDbHandle'];}[_0x4ee260(0x2be)](_0x27b2f6){const _0x539865=_0x4ee260;return this[_0x539865(0x144)]+':'+_0x27b2f6;}[_0x4ee260(0x1ef)](_0x34ed6e){const _0x68e404=_0x4ee260;try{_0x49c9f1?this['_wantDb']()['putSync'](this[_0x68e404(0x2be)](_0x34ed6e),Date[_0x68e404(0x348)]()):this['_wantDb']()[_0x68e404(0x129)](this['_key'](_0x34ed6e),Date['now']())?.['catch']?.(()=>{});}catch{}}[_0x4ee260(0x2e0)](_0x1ca297,_0x378b01=0x3e8){const _0x1a7fcc=_0x4ee260;try{const _0x4b2872=this[_0x1a7fcc(0x1dd)]()[_0x1a7fcc(0x1fd)](this['_key'](_0x1ca297));return typeof _0x4b2872===_0x1a7fcc(0x1a3)&&Date[_0x1a7fcc(0x348)]()-_0x4b2872<_0x378b01;}catch{return![];}}['_isStale'](_0x1a394f){const _0x1f96d2=_0x4ee260,_0x449ca4=_0x1a394f[_0x1f96d2(0x354)]??_0x1a394f[_0x1f96d2(0x25e)];return _0x449ca4+_0x1a394f[_0x1f96d2(0x24a)]<Date[_0x1f96d2(0x348)]();}static[_0x4ee260(0x22c)](_0x18d068){const _0x254daf=_0x4ee260,_0x26b2cb=_0x18d068?.[_0x254daf(0x27f)];if(!_0x26b2cb||typeof _0x26b2cb['pid']!=='number')return![];if(_0x26b2cb['hostname']!==_0x4c4997[_0x254daf(0x15b)]())return![];if(_0x26b2cb['pid']===process[_0x254daf(0x1a8)])return![];try{return process[_0x254daf(0x2a6)](_0x26b2cb[_0x254daf(0x1a8)],0x0),![];}catch(_0x47f36e){return _0x47f36e['code']===_0x254daf(0x283);}}async[_0x4ee260(0x2ca)](_0x2a18da,_0x5e825d={},_0x3f17e0={}){const _0x4b26ca=_0x4ee260,_0x40524b=this[_0x4b26ca(0x2be)](_0x2a18da),_0x1b5100=_0x3f17e0[_0x4b26ca(0x24a)]??this['ttlMs'],_0x562575=Date[_0x4b26ca(0x348)](),_0x98e8f5={'holder':{'pid':process[_0x4b26ca(0x1a8)],'hostname':_0x4c4997[_0x4b26ca(0x15b)](),..._0x5e825d},'acquiredAt':_0x562575,'updatedAt':_0x562575,'ttlMs':_0x1b5100};let _0x55e98e=![],_0x523508=null;try{const _0x58167e=()=>{const _0x2cd83b=_0x4b26ca,_0x410751=this[_0x2cd83b(0x2cd)]()[_0x2cd83b(0x1fd)](_0x40524b);if(_0x410751&&!this[_0x2cd83b(0x329)](_0x410751)&&!_0x36751e[_0x2cd83b(0x22c)](_0x410751)){const _0x32272d=_0x5e825d['processorId']!=null&&_0x410751[_0x2cd83b(0x27f)][_0x2cd83b(0x1a8)]===process[_0x2cd83b(0x1a8)]&&_0x410751[_0x2cd83b(0x27f)][_0x2cd83b(0x141)]===_0x5e825d[_0x2cd83b(0x141)];if(!_0x32272d){_0x55e98e=![],_0x523508=_0x410751;return;}_0x98e8f5[_0x2cd83b(0x25e)]<=_0x410751['acquiredAt']&&(_0x98e8f5[_0x2cd83b(0x25e)]=_0x410751[_0x2cd83b(0x25e)]+0x1,_0x98e8f5[_0x2cd83b(0x354)]=_0x98e8f5[_0x2cd83b(0x25e)]);}this['_db']()[_0x2cd83b(0x129)](_0x40524b,_0x98e8f5),_0x55e98e=!![],_0x523508=_0x98e8f5;};if(_0x49c9f1)this[_0x4b26ca(0x2cd)]()[_0x4b26ca(0x20c)](_0x58167e);else await this[_0x4b26ca(0x2cd)]()[_0x4b26ca(0x353)](_0x58167e);}catch{return{'acquired':![],'handle':null,'current':null};}if(!_0x55e98e)return{'acquired':![],'handle':null,'current':_0x523508};const _0x38003b=new _0x518c10(this,_0x40524b,_0x98e8f5[_0x4b26ca(0x25e)]);return _0x38003b[_0x4b26ca(0x240)](_0x1b5100,this[_0x4b26ca(0x324)]),{'acquired':!![],'handle':_0x38003b,'current':_0x523508};}[_0x4ee260(0x1b3)](_0x19dcb1){const _0xa949dc=_0x4ee260;try{return this[_0xa949dc(0x2cd)]()[_0xa949dc(0x1fd)](this['_key'](_0x19dcb1))??null;}catch{return null;}}[_0x4ee260(0x1de)](){const _0x559c4d=_0x4ee260,_0x1a521d=this[_0x559c4d(0x144)]+':',_0x344442=[];try{for(const {key:_0x307ad3,value:_0x45cbed}of this[_0x559c4d(0x2cd)]()[_0x559c4d(0x2bf)]({'start':_0x1a521d,'end':_0x1a521d+'ÿ'})){typeof _0x307ad3===_0x559c4d(0x1e5)&&_0x307ad3['startsWith'](_0x1a521d)&&_0x344442[_0x559c4d(0x1b4)]({'id':_0x307ad3[_0x559c4d(0x244)](_0x1a521d['length']),'entry':_0x45cbed});}}catch{}return _0x344442;}static[_0x4ee260(0x22a)](_0x50c109){const _0x5b801f=_0x4ee260,_0x2a3360=[];try{const _0x2de914=_0x50c109[_0x5b801f(0x1bb)](_0x1b821b,{'dupSort':![]});for(const {key:_0x34a7a9,value:_0x5ebe27}of _0x2de914[_0x5b801f(0x2bf)]({})){if(typeof _0x34a7a9!==_0x5b801f(0x1e5))continue;const _0x48fa81=_0x34a7a9[_0x5b801f(0x18d)](':');if(_0x48fa81<0x1)continue;_0x2a3360[_0x5b801f(0x1b4)]({'namespace':_0x34a7a9[_0x5b801f(0x244)](0x0,_0x48fa81),'id':_0x34a7a9[_0x5b801f(0x244)](_0x48fa81+0x1),'entry':_0x5ebe27});}}catch{}return _0x2a3360;}}return okdbLock={'OKDBLock':_0x36751e},okdbLock;}var version='2.0.4',require$$6={'version':version},okdbProcessRegistry,hasRequiredOkdbProcessRegistry;function requireOkdbProcessRegistry(){const _0x2abc23=_0x337619;if(hasRequiredOkdbProcessRegistry)return okdbProcessRegistry;hasRequiredOkdbProcessRegistry=0x1;const _0xf1a56e=require$$0$3,_0x53c1ad=require$$1$1,_0x4c6dda=require$$2,{LOOP:_0x844ebf}=requireOkdbLoopMonitor(),{OKDBLock:_0x26ca52}=requireOkdbLock(),{SYNC_COMMITS:_0x2e020a}=requireOkdbWriter(),_0x204a5a=_0x2abc23(0x1ea),_0x326745=_0x2abc23(0x267),_0x4ab62b=_0x2abc23(0x133),_0x291776='~processes:cmd',_0x3a50de=(_0x3880d1,_0x455108)=>_0x3880d1+':'+_0x455108,_0x5ef476=(_0x13b5a7,_0x574c50)=>_0x13b5a7+'::'+_0x574c50,_0x231cb9=(_0x20fbaf,_0xb772c8)=>_0x20fbaf+'/'+_0xb772c8,_0xaad60e=(_0x28bfe8,_0x2f0c79)=>_0x28bfe8+'#'+_0x2f0c79,_0xc7b3a9=_0x3b2e5c=>{const _0x3ca774=_0x2abc23;if(_0x3b2e5c?.[_0x3ca774(0x1cb)])return _0x3b2e5c['processKey'];const _0x48ed51=_0x3b2e5c?.[_0x3ca774(0x175)];return typeof _0x48ed51===_0x3ca774(0x1e5)&&_0x48ed51['includes']('#')?_0x48ed51[_0x3ca774(0x244)](0x0,_0x48ed51['indexOf']('#')):_0x48ed51;},_0x5277c3=Number(process.env.OKDB_WORKERS_HEARTBEAT_MS)||0x2710,_0x57d7ff=Number(process.env.OKDB_WORKERS_PUBLISH_MS)||0x3e8,_0x1da1ba=_0x5277c3*0x3,_0x50c0ba=Number(process.env.OKDB_PID_REUSE_HORIZON_MS)||Math['max'](0x927c0,_0x1da1ba*0x14),_0xffa4ec=[_0x2abc23(0x1d8),'processor:ready',_0x2abc23(0x212),_0x2abc23(0x17e),'processor:paused',_0x2abc23(0x1d7)];let _0x505fc1=null;function _0x200371(){const _0x502843=_0x2abc23;if(_0x505fc1==null)_0x505fc1=Math[_0x502843(0x143)]((Date[_0x502843(0x348)]()-process[_0x502843(0x13e)]()*0x3e8)/0x3e8)*0x3e8;return _0x505fc1;}function _0x2d8b92(_0x28a1fb){const _0x31737d=_0x2abc23;if(process.env.OKDB_PROCESS_KILL==='off')return![];if(_0x28a1fb?.['options']?.[_0x31737d(0x340)]&&typeof _0x28a1fb[_0x31737d(0x30c)][_0x31737d(0x340)]===_0x31737d(0x1f0)&&_0x28a1fb[_0x31737d(0x30c)][_0x31737d(0x340)]['kill']===![])return![];return!![];}function _0x553ea3(_0xc249ee,_0x42aa7f){const _0x606a72=_0x2abc23,_0x342d88=!!_0x42aa7f?.[_0x606a72(0x2d3)];switch(_0xc249ee){case _0x606a72(0x237):return{'controllable':_0x342d88,'decommissionable':![],'killable':!![],'killConfirm':_0x606a72(0x150)};case _0x606a72(0x284):case _0x606a72(0x275):return{'controllable':_0x342d88,'decommissionable':![],'killable':!![],'killConfirm':_0x606a72(0x26b)};case _0x606a72(0x177):return{'controllable':![],'decommissionable':![],'killable':![]};case'http-server':case'queue-worker':case _0x606a72(0x157):case _0x606a72(0x351):return{'controllable':![],'decommissionable':!![],'killable':!![],'killConfirm':_0x606a72(0x24e)};default:return{'controllable':![],'decommissionable':![],'killable':![]};}}class _0x4c501d{constructor(_0x1b2ebd){const _0x55352f=_0x2abc23;this['okdb']=_0x1b2ebd,this['_statusEnv']=null,this[_0x55352f(0x333)]=null,this[_0x55352f(0x297)]=new Map(),this[_0x55352f(0x2b5)]=null,this[_0x55352f(0x247)]=![],this[_0x55352f(0x23a)]=![],this['_processStartedAt']=_0x200371(),this['_selfKey']=_0x3a50de(process[_0x55352f(0x1a8)],this[_0x55352f(0x343)]),this[_0x55352f(0x1da)]=_0x4c6dda[_0x55352f(0x2fe)]()['slice'](0x0,0x8),this[_0x55352f(0x191)]=_0xaad60e(this[_0x55352f(0x1d3)],this[_0x55352f(0x1da)]),this['_startedAt']=Date[_0x55352f(0x348)](),this[_0x55352f(0x356)]=null,this['_supervisorKey']=null,this[_0x55352f(0x155)]=null,this[_0x55352f(0x359)]=null,this['_onProcEvent']=null,this[_0x55352f(0x13a)]=null,this[_0x55352f(0x1ca)]=0x0,this[_0x55352f(0x127)]={},this['_children']=new Map(),this[_0x55352f(0x17c)]=process['cpuUsage'](),this[_0x55352f(0x262)]=Date[_0x55352f(0x348)](),this[_0x55352f(0x24d)]=0x0,this[_0x55352f(0x241)]=new Map();}get[_0x2abc23(0x16d)](){return this['_selfKey'];}get[_0x2abc23(0x139)](){const _0x31b1da=_0x2abc23;return this[_0x31b1da(0x191)];}[_0x2abc23(0x2b6)](_0x4f28d9,_0x53fe79){const _0x5ec36c=_0x2abc23,_0x39072d=_0x553ea3(_0x4f28d9,_0x53fe79);if(_0x39072d['killable']&&!_0x2d8b92(this[_0x5ec36c(0x12e)]))return{..._0x39072d,'killable':![],'killConfirm':undefined};return _0x39072d;}['isActive'](){return!!this['_statusEnv'];}[_0x2abc23(0x2f9)](_0x5ef079){const _0x53f2f9=_0x2abc23;Object[_0x53f2f9(0x223)](this[_0x53f2f9(0x127)],_0x5ef079||{});}[_0x2abc23(0x2a5)](_0x99d47d){const _0x85a7e2=_0x2abc23;if(_0x99d47d)this[_0x85a7e2(0x155)]=_0x99d47d;}['register'](_0xb2e818={}){const _0x49411b=_0x2abc23;return this[_0x49411b(0x12e)][_0x49411b(0x2ad)](_0xb2e818);}[_0x2abc23(0x2e6)](){const _0x4f0a45=_0x2abc23,_0x56efce={};let _0x22aa7a=0x0,_0x303619=0x0;const _0x51e393=new Set();for(const _0x5bf94e of this['listNodes']()){_0x303619++;const _0x38f79b=_0x5bf94e[_0x4f0a45(0x201)];if(!_0x38f79b)continue;if(_0x38f79b[_0x4f0a45(0x22b)])_0x22aa7a++;for(const _0xb33d4c of _0x38f79b[_0x4f0a45(0x2d3)]||[]){if(!['single',_0x4f0a45(0x301)][_0x4f0a45(0x2c2)](_0xb33d4c['mode']))continue;(_0xb33d4c[_0x4f0a45(0x193)]===_0x4f0a45(0x1b7)||_0xb33d4c[_0x4f0a45(0x193)]===_0x4f0a45(0x23c))&&_0xb33d4c['cursorKey']&&_0x51e393['add']((_0xb33d4c[_0x4f0a45(0x21a)]||'default')+':'+_0xb33d4c[_0x4f0a45(0x1b1)]);const _0x4a80a0=_0xb33d4c[_0x4f0a45(0x21a)]||'default';(_0x56efce[_0x4a80a0]||=[])[_0x4f0a45(0x1b4)]({..._0xb33d4c,'env':_0x4a80a0,'owner':{'pid':_0x5bf94e['pid']??null,'kind':_0x5bf94e['kind']??null}});}}for(const [_0x2c37dd,_0x3777bf]of Object[_0x4f0a45(0x1e2)](_0x56efce)){for(const _0x3ed170 of _0x3777bf){if(_0x3ed170['mode']===_0x4f0a45(0x1a6)&&!_0x3ed170[_0x4f0a45(0x1e0)]){const _0x608b2b=_0x2c37dd+':'+(_0x3ed170[_0x4f0a45(0x1b1)]??'');if(!_0x51e393[_0x4f0a45(0x222)](_0x608b2b))_0x3ed170[_0x4f0a45(0x2f4)]=!![];}}}return{'envs':_0x56efce,'policy':null,'participation':{'participating':_0x22aa7a,'total':_0x303619},'source':_0x4f0a45(0x1b6)};}[_0x2abc23(0x226)](){const _0x1f822e=_0x2abc23,_0x44f59d=_0x35a7a5=>{const _0x3610a8=_0x58e7;if(_0x35a7a5[_0x3610a8(0x193)]==='online'||_0x35a7a5[_0x3610a8(0x193)]==='building'||_0x35a7a5[_0x3610a8(0x193)]===_0x3610a8(0x2c5))return 0x3;if(_0x35a7a5[_0x3610a8(0x1e0)])return 0x1;return 0x2;},_0xed7f63=new Map();for(const _0xdfa7ec of this[_0x1f822e(0x2bb)]()){for(const _0x3641a7 of _0xdfa7ec[_0x1f822e(0x201)]?.[_0x1f822e(0x2d3)]||[]){const _0x4c1e00={..._0x3641a7,'owner':{'pid':_0xdfa7ec['pid']??null,'kind':_0xdfa7ec['kind']??null,'host':_0xdfa7ec[_0x1f822e(0x2b7)]??null}},_0x3da4bb=_0x3641a7[_0x1f822e(0x17f)]==='single'?'1ofN:'+(_0x3641a7[_0x1f822e(0x21a)]??'')+'::'+(_0x3641a7[_0x1f822e(0x1b1)]??_0x3641a7[_0x1f822e(0x171)]??_0x3641a7['id']):_0x1f822e(0x13c)+(_0xdfa7ec[_0x1f822e(0x175)]??_0xdfa7ec[_0x1f822e(0x1cb)]??'')+'::'+(_0x3641a7[_0x1f822e(0x21a)]??'')+'::'+_0x3641a7['id'],_0x5ae882=_0xed7f63['get'](_0x3da4bb);if(!_0x5ae882||_0x44f59d(_0x4c1e00)>_0x44f59d(_0x5ae882))_0xed7f63[_0x1f822e(0x217)](_0x3da4bb,_0x4c1e00);}}return[..._0xed7f63[_0x1f822e(0x1c9)]()];}[_0x2abc23(0x2e5)](){const _0x14f8da=_0x2abc23,_0x15d0bd=Date[_0x14f8da(0x348)](),_0x962f8f=this[_0x14f8da(0x2bb)](),_0x126c10=_0x42b50f=>Math[_0x14f8da(0x17a)](0x0,Math['round']((_0x15d0bd-(_0x42b50f[_0x14f8da(0x19e)]||_0x15d0bd))/0x3e8)),_0xb3b78b=_0x962f8f['find'](_0x14c432=>_0x14c432[_0x14f8da(0x250)]===_0x14f8da(0x237)),_0x3cf30b=_0x962f8f[_0x14f8da(0x245)](_0x54a317=>_0x54a317['kind']===_0x14f8da(0x19a));if(_0xb3b78b||_0x3cf30b['length'])return{'primary':_0xb3b78b?{'pid':_0xb3b78b['pid'],'uptime':_0x126c10(_0xb3b78b)}:null,'workers':_0x3cf30b[_0x14f8da(0x33e)](_0x54ae71=>({'pid':_0x54ae71[_0x14f8da(0x1a8)],'uptime':_0x126c10(_0x54ae71)})),'workersConfigured':_0xb3b78b?.[_0x14f8da(0x276)]?.[_0x14f8da(0x318)]??_0x3cf30b['length'],'mode':'cluster'};const _0x1c963f=_0x962f8f[_0x14f8da(0x27a)](_0x499ace=>_0x499ace['kind']===_0x14f8da(0x284)||_0x499ace[_0x14f8da(0x250)]===_0x14f8da(0x275)||_0x499ace[_0x14f8da(0x250)]===_0x14f8da(0x177)),_0x14ab60=_0x1c963f?{'pid':_0x1c963f[_0x14f8da(0x1a8)],'uptime':_0x126c10(_0x1c963f)}:{'pid':process['pid'],'uptime':Math[_0x14f8da(0x17a)](0x0,Math[_0x14f8da(0x143)](process[_0x14f8da(0x13e)]()))};return{'primary':_0x14ab60,'workers':[_0x14ab60],'workersConfigured':0x1,'mode':_0x14f8da(0x1a6)};}[_0x2abc23(0x140)](){return this['_groupByProcess']();}[_0x2abc23(0x345)](){const _0x6af44c=_0x2abc23,_0x50ab0e=new Map();for(const _0x5c3f2b of this[_0x6af44c(0x349)]())_0x50ab0e[_0x6af44c(0x217)](_0x5c3f2b[_0x6af44c(0x1cb)],{..._0x5c3f2b,'children':[]});const _0x204ae5=[];for(const _0x5428eb of _0x50ab0e[_0x6af44c(0x1c9)]()){const _0x4152d6=_0x5428eb[_0x6af44c(0x332)]?_0x50ab0e['get'](_0x5428eb[_0x6af44c(0x332)]):null;if(_0x4152d6&&_0x4152d6!==_0x5428eb)_0x4152d6[_0x6af44c(0x295)]['push'](_0x5428eb);else _0x204ae5[_0x6af44c(0x1b4)](_0x5428eb);}const _0x4d1e1c=(_0x2d047b,_0x3a6dc8)=>_0x2d047b['kind']===_0x3a6dc8[_0x6af44c(0x250)]?(_0x2d047b[_0x6af44c(0x1a8)]||0x0)-(_0x3a6dc8[_0x6af44c(0x1a8)]||0x0):(_0x2d047b[_0x6af44c(0x250)]??'')<(_0x3a6dc8[_0x6af44c(0x250)]??'')?-0x1:0x1,_0x5b847e=_0x2fdb2b=>{const _0x251cc1=_0x6af44c;_0x2fdb2b['sort'](_0x4d1e1c);for(const _0x35ab48 of _0x2fdb2b)if(_0x35ab48[_0x251cc1(0x295)][_0x251cc1(0x149)])_0x5b847e(_0x35ab48['children']);};return _0x5b847e(_0x204ae5),_0x204ae5;}[_0x2abc23(0x2d8)](_0x2bbdf2){const _0x538624=_0x2abc23;return this[_0x538624(0x349)]()[_0x538624(0x27a)](_0x50db95=>_0x50db95['processKey']===_0x2bbdf2)??null;}['_groupByProcess'](_0x32ece7=Date['now']()){const _0x190cf3=_0x2abc23,_0x28ba67=new Map();for(const _0x540394 of this[_0x190cf3(0x2bb)]()){const _0x8141df=_0xc7b3a9(_0x540394);let _0x1b7185=_0x28ba67['get'](_0x8141df);!_0x1b7185&&(_0x1b7185={'processKey':_0x8141df,'nodeKey':_0x8141df,'pid':_0x540394['pid'],'ppid':_0x540394[_0x190cf3(0x2f3)]??null,'host':_0x540394[_0x190cf3(0x2b7)]??null,'kind':_0x540394[_0x190cf3(0x250)],'role':null,'supervisorKey':_0x540394['supervisorKey']??null,'slot':_0x540394['slot']??null,'slotKey':_0x540394[_0x190cf3(0x257)]??null,'caps':_0x540394[_0x190cf3(0x1f4)]??null,'lifecycle':_0x540394[_0x190cf3(0x1fc)]??null,'uptime':Math[_0x190cf3(0x17a)](0x0,Math[_0x190cf3(0x143)]((_0x32ece7-(_0x540394['startedAt']||_0x32ece7))/0x3e8)),'startedAt':_0x540394[_0x190cf3(0x19e)]??null,'meta':_0x540394[_0x190cf3(0x276)]??null,'listenAddr':null,'processing':null,'engines':null,'singletonClaims':null,'stats':null,'instances':[]},_0x28ba67['set'](_0x8141df,_0x1b7185));_0x1b7185['instances']['push']({'instanceId':_0x540394[_0x190cf3(0x28d)]??null,'role':_0x540394[_0x190cf3(0x2dc)]??null,'listenAddr':_0x540394[_0x190cf3(0x2cb)]??null,'lifecycle':_0x540394['lifecycle']??null,'processing':_0x540394['processing']??null});if(!_0x1b7185[_0x190cf3(0x2dc)]&&_0x540394[_0x190cf3(0x2dc)])_0x1b7185[_0x190cf3(0x2dc)]=_0x540394[_0x190cf3(0x2dc)];if(!_0x1b7185['listenAddr']&&_0x540394[_0x190cf3(0x2cb)])_0x1b7185[_0x190cf3(0x2cb)]=_0x540394['listenAddr'];if(!_0x1b7185[_0x190cf3(0x201)]&&_0x540394[_0x190cf3(0x201)])_0x1b7185['processing']=_0x540394['processing'];if(!_0x1b7185['engines']&&_0x540394[_0x190cf3(0x33f)])_0x1b7185['engines']=_0x540394[_0x190cf3(0x33f)];if(!_0x1b7185['singletonClaims']&&_0x540394[_0x190cf3(0x2eb)])_0x1b7185[_0x190cf3(0x2eb)]=_0x540394[_0x190cf3(0x2eb)];if(_0x1b7185[_0x190cf3(0x1f4)]==null&&_0x540394[_0x190cf3(0x1f4)])_0x1b7185[_0x190cf3(0x1f4)]=_0x540394[_0x190cf3(0x1f4)];if(_0x540394[_0x190cf3(0x28b)]&&(!_0x1b7185[_0x190cf3(0x28b)]||(_0x540394['stats']['at']??0x0)>(_0x1b7185['stats']['at']??0x0)))_0x1b7185[_0x190cf3(0x28b)]=_0x540394[_0x190cf3(0x28b)];}return[..._0x28ba67[_0x190cf3(0x1c9)]()];}[_0x2abc23(0x249)](){const _0x3c2dfc=_0x2abc23,_0x4a03d3=[],_0x2d78d3={'rss':0x0,'heapUsed':0x0,'processes':0x0,'threads':{'count':0x0,'sandbox':0x0,'busy':0x0}};for(const _0x55a5ff of this['_groupByProcess']()){_0x4a03d3[_0x3c2dfc(0x1b4)]({'processKey':_0x55a5ff[_0x3c2dfc(0x1cb)],'kind':_0x55a5ff[_0x3c2dfc(0x250)],'pid':_0x55a5ff[_0x3c2dfc(0x1a8)],'supervisorKey':_0x55a5ff[_0x3c2dfc(0x332)],'meta':_0x55a5ff[_0x3c2dfc(0x276)]??null,'uptime':_0x55a5ff['uptime'],'stats':_0x55a5ff[_0x3c2dfc(0x28b)]??null}),_0x2d78d3['processes']++;if(_0x55a5ff['stats']){_0x2d78d3[_0x3c2dfc(0x2c0)]+=_0x55a5ff[_0x3c2dfc(0x28b)]['rss']||0x0,_0x2d78d3[_0x3c2dfc(0x347)]+=(_0x55a5ff['stats'][_0x3c2dfc(0x347)]||0x0)+(_0x55a5ff[_0x3c2dfc(0x28b)][_0x3c2dfc(0x2b4)]?.[_0x3c2dfc(0x347)]||0x0);const _0x3ed440=_0x55a5ff['stats']['threads'];_0x3ed440&&(_0x2d78d3['threads'][_0x3c2dfc(0x2a1)]+=_0x3ed440['count']||0x0,_0x2d78d3[_0x3c2dfc(0x2b4)][_0x3c2dfc(0x338)]+=_0x3ed440[_0x3c2dfc(0x338)]||0x0,_0x2d78d3[_0x3c2dfc(0x2b4)][_0x3c2dfc(0x254)]+=_0x3ed440['busy']||0x0);}}return{'totals':_0x2d78d3,'nodes':_0x4a03d3};}async['open']({writer:writer=![],reader:reader=![],kind:kind=null,supervisorKey:supervisorKey=null,listenAddr:listenAddr=null}={}){const _0x262d92=_0x2abc23;this[_0x262d92(0x247)]=this['_isWriter']||!!writer,this['_isReader']=this['_isReader']||!!reader,this[_0x262d92(0x356)]=kind||this[_0x262d92(0x356)]||(_0x53c1ad[_0x262d92(0x259)]?_0x262d92(0x19a):'cli'),this['_supervisorKey']=supervisorKey??this[_0x262d92(0x199)],this[_0x262d92(0x155)]=listenAddr??this[_0x262d92(0x155)],this['_ensureDesired'](),await this['_migrateVocab']();if(!writer&&!reader)return null;if(!this[_0x262d92(0x2d9)]){const _0x26f4b8=await this[_0x262d92(0x12e)]['createEnvironment'](_0x204a5a,{'sync':![],'durability':'fast'});if(!_0x26f4b8[_0x262d92(0x2f0)](_0x326745))await _0x26f4b8[_0x262d92(0x2e4)](_0x326745);this['_statusEnv']=_0x26f4b8;}return this[_0x262d92(0x2d9)];}[_0x2abc23(0x181)](){const _0x475f02=_0x2abc23;return this[_0x475f02(0x269)]!==this[_0x475f02(0x2d9)]&&(this[_0x475f02(0x269)]=this[_0x475f02(0x2d9)],this['_nodeDbCache']=this[_0x475f02(0x2d9)][_0x475f02(0x328)](_0x326745)['data']),this[_0x475f02(0x33a)];}['_putRowAsync'](_0xea74e8){const _0x9caa8f=_0x2abc23;if(_0x2e020a)return this['_nodeDb']()[_0x9caa8f(0x300)](_0xea74e8[_0x9caa8f(0x175)],_0xea74e8,0x1);const _0x12f135=this[_0x9caa8f(0x181)]()['put'](_0xea74e8[_0x9caa8f(0x175)],_0xea74e8,0x1);if(_0x12f135&&typeof _0x12f135['then']==='function')_0x12f135['then'](undefined,()=>{});return _0x12f135;}[_0x2abc23(0x1d1)](_0x5f4fcd){const _0x5aec8b=_0x2abc23;return this[_0x5aec8b(0x181)]()['putSync'](_0x5f4fcd['nodeKey'],_0x5f4fcd,0x1);}[_0x2abc23(0x1e3)](_0x3bb98d){const _0x3914ba=_0x2abc23;if(_0x2e020a)try{return this[_0x3914ba(0x181)]()[_0x3914ba(0x29a)](_0x3bb98d);}catch{return![];}const _0x27ebf9=this[_0x3914ba(0x181)]()[_0x3914ba(0x1f2)](_0x3bb98d);if(_0x27ebf9&&typeof _0x27ebf9[_0x3914ba(0x248)]===_0x3914ba(0x1b8))_0x27ebf9[_0x3914ba(0x248)](undefined,()=>{});return _0x27ebf9;}async[_0x2abc23(0x1a7)](_0x7cb5af){const _0x20e54d=_0x2abc23;if(!this['_statusEnv']||!this[_0x20e54d(0x247)]||!_0x7cb5af?.[_0x20e54d(0x175)])return;return this[_0x20e54d(0x290)](_0x7cb5af);}async[_0x2abc23(0x1ed)](_0x5af85a){const _0x44f279=_0x2abc23;if(!this[_0x44f279(0x2d9)]||!this[_0x44f279(0x247)]||!_0x5af85a)return;const _0x404291=_0x5af85a[_0x44f279(0x2c2)]('#'),_0x5c3eca=[];for(const {key:_0x598ca5}of this[_0x44f279(0x2d9)][_0x44f279(0x2bf)](_0x326745)){if(_0x598ca5===_0x5af85a||!_0x404291&&typeof _0x598ca5==='string'&&_0x598ca5[_0x44f279(0x198)](_0x5af85a+'#'))_0x5c3eca[_0x44f279(0x1b4)](_0x598ca5);}for(const _0x4ed4a6 of _0x5c3eca){try{this[_0x44f279(0x181)]()['removeSync'](_0x4ed4a6);}catch{}}}[_0x2abc23(0x218)](_0xfb6683){const _0x4d29a1=_0x2abc23;if(typeof _0xfb6683?.['pid']!==_0x4d29a1(0x1a3))return![];if(_0xfb6683[_0x4d29a1(0x2b7)]!==_0xf1a56e[_0x4d29a1(0x15b)]())return![];if(_0xfb6683['pid']===process['pid'])return![];if(_0xfb6683[_0x4d29a1(0x2c4)]!=null&&_0xfb6683[_0x4d29a1(0x2c4)]<Date[_0x4d29a1(0x348)]()-_0x50c0ba)return!![];try{return process[_0x4d29a1(0x2a6)](_0xfb6683[_0x4d29a1(0x1a8)],0x0),![];}catch(_0x753dac){return _0x753dac[_0x4d29a1(0x1c0)]==='ESRCH';}}[_0x2abc23(0x2bb)](){const _0x340efc=_0x2abc23;if(!this[_0x340efc(0x2d9)])return[];try{this[_0x340efc(0x2d9)]['db']?.[_0x340efc(0x2f7)]?.();}catch{}const _0x2739c8=Date['now'](),_0x1b9a4c=_0xf1a56e[_0x340efc(0x15b)](),_0xcf21b9=[];for(const {value:_0x5eb215}of this[_0x340efc(0x2d9)][_0x340efc(0x2bf)](_0x326745)){if(!_0x5eb215)continue;let _0x1fb45a=null;_0x5eb215[_0x340efc(0x2b7)]===_0x1b9a4c&&typeof _0x5eb215[_0x340efc(0x1a8)]===_0x340efc(0x1a3)&&(_0x1fb45a=!this['_nodeDead'](_0x5eb215));if(_0x1fb45a===![])continue;const _0x17fa5e=_0x5eb215['expiresAt']==null||_0x5eb215[_0x340efc(0x2c4)]>=_0x2739c8;if(_0x1fb45a===!![]||_0x17fa5e)_0xcf21b9['push'](_0x5eb215);}return _0xcf21b9;}async[_0x2abc23(0x264)](_0x25d023=0x0){const _0x154c09=_0x2abc23;if(!this[_0x154c09(0x2d9)]||!this[_0x154c09(0x247)])return;const _0xeadc80=Date['now']()-_0x25d023,_0x7690b1=new Set(),_0x9ab315=[],_0x4128bb=_0xf1a56e['hostname'](),_0x407f0b=require$$6[_0x154c09(0x342)];for(const {key:_0x519756,value:_0xf8d4c6}of this[_0x154c09(0x2d9)]['getRange'](_0x326745)){if(!_0xf8d4c6)continue;const _0x414e20=_0xf8d4c6[_0x154c09(0x2b7)]===_0x4128bb&&typeof _0xf8d4c6[_0x154c09(0x1a8)]===_0x154c09(0x1a3),_0x207856=_0x414e20?this[_0x154c09(0x218)](_0xf8d4c6):_0xf8d4c6[_0x154c09(0x2c4)]!=null&&_0xf8d4c6[_0x154c09(0x2c4)]<_0xeadc80;if(_0x207856)_0x9ab315[_0x154c09(0x1b4)](_0x519756);else{_0x7690b1['add'](_0xc7b3a9(_0xf8d4c6)??_0x519756);if(_0xf8d4c6['version']&&_0xf8d4c6[_0x154c09(0x342)]!==_0x407f0b){if(!this[_0x154c09(0x24c)])this['_versionSkewWarned']=new Set();!this[_0x154c09(0x24c)][_0x154c09(0x222)](_0xf8d4c6[_0x154c09(0x342)])&&(this[_0x154c09(0x24c)][_0x154c09(0x1ff)](_0xf8d4c6[_0x154c09(0x342)]),this['okdb'][_0x154c09(0x314)]?.[_0x154c09(0x21b)]?.(_0x154c09(0x12a)+(_0xf8d4c6['pid']??'?')+'\x20on\x20this\x20data\x20path\x20runs\x20okdb\x20'+_0xf8d4c6[_0x154c09(0x342)]+_0x154c09(0x327)+_0x407f0b+'\x20—\x20'+'mixed\x20versions\x20on\x20one\x20store\x20are\x20unsafe\x20across\x20storage\x20migrations;\x20align\x20versions\x20before\x20upgrading\x20further.',{'feature':_0x154c09(0x18a)}));}}}for(const _0x1c2239 of _0x9ab315)this[_0x154c09(0x1e3)](_0x1c2239);if(this[_0x154c09(0x17b)]()){const _0x3942c5=[];for(const {key:_0x4b9ac2}of this[_0x154c09(0x296)](_0x154c09(0x267))){if(!_0x7690b1[_0x154c09(0x222)](_0x4b9ac2)){if(_0x2e020a)try{this['_desired'][_0x154c09(0x29a)](_0x154c09(0x355)+_0x4b9ac2);}catch{}else _0x3942c5['push'](this[_0x154c09(0x333)]['remove']('node/'+_0x4b9ac2));}}if(_0x3942c5[_0x154c09(0x149)])await Promise[_0x154c09(0x32c)](_0x3942c5);}}[_0x2abc23(0x286)](_0x3dc388=null){const _0x247867=_0x2abc23;if(this['_hbTimer'])return;if(!this[_0x247867(0x247)]||!this['_statusEnv']){this[_0x247867(0x12e)]?.['log']?.[_0x247867(0x21b)]?.(_0x247867(0x2d4)+this[_0x247867(0x247)]+_0x247867(0x32b)+!!this[_0x247867(0x2d9)]+_0x247867(0x1a5),{'feature':_0x247867(0x340)});return;}this[_0x247867(0x13a)]=_0x3dc388,this[_0x247867(0x28a)]=()=>this['_maybePublish']();for(const _0x51958f of _0xffa4ec)this['okdb'][_0x247867(0x25b)]['on'](_0x51958f,this[_0x247867(0x28a)]);this[_0x247867(0x1f8)]();const _0x46df2c=Number(process.env.OKDB_WORKERS_HEARTBEAT_MS)||_0x5277c3;this[_0x247867(0x359)]=setInterval(()=>{const _0x337589=_0x247867;if(this['_onTick'])try{this[_0x337589(0x13a)]();}catch{}this[_0x337589(0x1f8)](),this[_0x337589(0x264)]()['catch'](()=>{});},_0x46df2c);if(this['_hbTimer'][_0x247867(0x195)])this[_0x247867(0x359)][_0x247867(0x195)]();}[_0x2abc23(0x23b)](){const _0x551aab=_0x2abc23;if(!this[_0x551aab(0x247)]||!this[_0x551aab(0x2d9)])return;if(Date[_0x551aab(0x348)]()-this['_lastPublishAt']<_0x57d7ff)return;this['_publishNow']();}[_0x2abc23(0x1f8)](){const _0x565618=_0x2abc23;if(!this[_0x565618(0x247)]||!this[_0x565618(0x2d9)])return;this[_0x565618(0x1ca)]=Date[_0x565618(0x348)]();try{const _0x4aa3a8=[this[_0x565618(0x163)]()];for(const _0x310676 of this['_children'][_0x565618(0x1c9)]())_0x4aa3a8[_0x565618(0x1b4)](this[_0x565618(0x305)](_0x310676));const _0x109773=_0x844ebf[_0x565618(0x2fb)]?_0x844ebf[_0x565618(0x348)]():0x0;for(const _0xa3b1b5 of _0x4aa3a8){try{this[_0x565618(0x1d1)](_0xa3b1b5),this['_publishFailWarned']=![];}catch(_0x32740c){!this[_0x565618(0x2ac)]&&(this[_0x565618(0x2ac)]=!![],this['okdb']?.['log']?.[_0x565618(0x21b)]?.('registry\x20publish\x20failing:\x20'+_0x32740c[_0x565618(0x188)],{'feature':_0x565618(0x340)}));}}if(_0x844ebf[_0x565618(0x2fb)])_0x844ebf[_0x565618(0x30f)](_0x565618(0x26d),_0x844ebf[_0x565618(0x348)]()-_0x109773,_0x565618(0x253)+_0x4aa3a8[_0x565618(0x149)]+_0x565618(0x34f));}catch(_0xa0e5af){!this[_0x565618(0x2ac)]&&(this['_publishFailWarned']=!![],this[_0x565618(0x12e)]?.[_0x565618(0x314)]?.[_0x565618(0x21b)]?.('registry\x20publish\x20failing:\x20'+_0xa0e5af[_0x565618(0x188)],{'feature':'processes'}));}}async[_0x2abc23(0x268)](){const _0xdb59a7=_0x2abc23;if(this[_0xdb59a7(0x28a)]){for(const _0x19f08a of _0xffa4ec){try{this[_0xdb59a7(0x12e)][_0xdb59a7(0x25b)][_0xdb59a7(0x1fa)](_0x19f08a,this['_onProcEvent']);}catch{}}this['_onProcEvent']=null;}this[_0xdb59a7(0x359)]&&(clearInterval(this[_0xdb59a7(0x359)]),this[_0xdb59a7(0x359)]=null);try{if(this[_0xdb59a7(0x2d9)]&&this[_0xdb59a7(0x247)])await this['removeNode'](this[_0xdb59a7(0x191)]);}catch{}}async[_0x2abc23(0x2a3)](){const _0x3ef69d=_0x2abc23;if(!this[_0x3ef69d(0x2d9)]||!this[_0x3ef69d(0x247)])return;try{await this[_0x3ef69d(0x1ed)](this['_rowKey']);}catch{}try{const _0x563a36=[];for(const {value:_0x5b1ff0}of this[_0x3ef69d(0x2d9)][_0x3ef69d(0x2bf)](_0x326745)){if(_0x5b1ff0?.[_0x3ef69d(0x2f3)]===process[_0x3ef69d(0x1a8)]&&_0x5b1ff0[_0x3ef69d(0x175)])_0x563a36[_0x3ef69d(0x1b4)](_0x5b1ff0[_0x3ef69d(0x175)]);}for(const _0x19510c of _0x563a36){try{await this[_0x3ef69d(0x1ed)](_0x19510c);}catch{}}}catch{}}async[_0x2abc23(0x216)](){const _0x4ab793=_0x2abc23;return this[_0x4ab793(0x1a7)](this[_0x4ab793(0x163)]());}async[_0x2abc23(0x2ea)](_0x215a75){const _0x16e7ee=_0x2abc23;if(!this[_0x16e7ee(0x2d9)]||!this[_0x16e7ee(0x247)])return;return this[_0x16e7ee(0x1a7)](this[_0x16e7ee(0x305)](_0x215a75));}[_0x2abc23(0x305)]({pid:_0x15c0ea,startedAt:_0x4844d1,kind:_0xde9ef8,supervisorKey:_0x2ad019,slot:slot=null,slotKey:slotKey=null,role:role={},listenAddr:listenAddr=null,processing:processing=null,lifecycle:lifecycle=_0x2abc23(0x1cc),meta:meta=null,stats:stats=null}){const _0xed0368=_0x2abc23,_0x44f7df=Date[_0xed0368(0x348)](),_0x2cfaa7=_0x3a50de(_0x15c0ea,_0x4844d1);return{'nodeKey':_0xaad60e(_0x2cfaa7,'0'),'processKey':_0x2cfaa7,'instanceId':'0','pid':_0x15c0ea,'startedAt':_0x4844d1,'ppid':process[_0xed0368(0x1a8)],'host':_0xf1a56e[_0xed0368(0x15b)](),'supervisorKey':_0x2ad019,'slot':slot,'slotKey':slotKey,'kind':_0xde9ef8,'role':role,'listenAddr':listenAddr,'heartbeatAt':_0x44f7df,'expiresAt':_0x44f7df+_0x1da1ba,'caps':this['_caps'](_0xde9ef8,role),'lifecycle':{'state':lifecycle,'desiredVersionApplied':null},'processing':processing,'meta':meta,'stats':stats};}async['addSupervisedChild'](_0x55bebc){const _0x230d22=_0x2abc23;if(!_0x55bebc?.[_0x230d22(0x1a8)])return null;const _0x84d932=_0x3a50de(_0x55bebc['pid'],_0x55bebc[_0x230d22(0x19e)]);this[_0x230d22(0x336)][_0x230d22(0x217)](_0x84d932,{..._0x55bebc,'supervisorKey':_0x55bebc[_0x230d22(0x332)]??this['_selfKey']});if(this[_0x230d22(0x247)])await this['publishChildRow'](this[_0x230d22(0x336)][_0x230d22(0x1fd)](_0x84d932))[_0x230d22(0x183)]?.(()=>{});return _0x84d932;}[_0x2abc23(0x27e)](_0x146829){const _0x4429d6=_0x2abc23;if(!_0x146829)return;return this[_0x4429d6(0x336)][_0x4429d6(0x23f)](_0x146829),this[_0x4429d6(0x1ed)](_0x146829);}[_0x2abc23(0x323)](){const _0x28a257=_0x2abc23,_0xcced42=Date[_0x28a257(0x348)](),_0x5f1ef9=process[_0x28a257(0x358)](),_0x191302=(_0xcced42-this[_0x28a257(0x262)])*0x3e8;if(_0x191302>=0x3d090){const _0x1f9040=_0x5f1ef9[_0x28a257(0x252)]-this['_lastCpuUsage'][_0x28a257(0x252)]+(_0x5f1ef9['system']-this['_lastCpuUsage'][_0x28a257(0x1e7)]),_0xafe818=_0xf1a56e[_0x28a257(0x12d)]()[_0x28a257(0x149)]||0x1;this[_0x28a257(0x24d)]=Math[_0x28a257(0x278)](0x64,Math[_0x28a257(0x143)](_0x1f9040/(_0x191302*_0xafe818)*0x64)),this['_lastCpuWindowMs']=Math[_0x28a257(0x143)](_0x191302/0x3e8),this[_0x28a257(0x17c)]=_0x5f1ef9,this[_0x28a257(0x262)]=_0xcced42;}const _0x384717=process[_0x28a257(0x2e2)](),_0x3c7cac=this['_threadStats']['size'];let _0x315e58=0x0;if(_0x3c7cac>0x0){const _0x5c1934=[this[_0x28a257(0x12e)],...this[_0x28a257(0x12e)][_0x28a257(0x31a)]?.[_0x28a257(0x1c9)]?.()??[]];for(const _0xa227e9 of _0x5c1934){const _0x38b258=_0xa227e9[_0x28a257(0x228)]?.[_0x28a257(0x331)];if(_0x38b258)_0x315e58+=_0x38b258['liveThreadStats']['busy'];}}let _0x2808dc=null;const _0x54dfd5=_0x3c7cac;if(_0x54dfd5>0x0){let _0x41684c=0x0;for(const _0x37a140 of this[_0x28a257(0x241)][_0x28a257(0x1c9)]())_0x41684c+=_0x37a140[_0x28a257(0x347)]||0x0;_0x2808dc={'count':_0x54dfd5,'heapUsed':_0x41684c,'sandbox':_0x3c7cac,'busy':_0x315e58};}return{'rss':_0x384717[_0x28a257(0x2c0)],'heapUsed':_0x384717[_0x28a257(0x347)],'heapTotal':_0x384717[_0x28a257(0x125)],'external':_0x384717[_0x28a257(0x1c2)],'cpuPct':this[_0x28a257(0x24d)],'cpuWindowMs':this['_lastCpuWindowMs']??null,'threads':_0x2808dc,'at':_0xcced42};}[_0x2abc23(0x25a)](_0x5bae26,_0x59e905){const _0x41bd74=_0x2abc23;if(!_0x5bae26||!_0x59e905)return;this[_0x41bd74(0x241)]['set'](_0x5bae26,_0x59e905);}[_0x2abc23(0x320)](_0x446857){const _0xf7fc49=_0x2abc23;this[_0xf7fc49(0x241)]['delete'](_0x446857);}[_0x2abc23(0x291)](_0x5e6f7c,_0x23cc4d,_0x42b24b=undefined){const _0xa4ee10=_0x2abc23,_0x17f566=this[_0xa4ee10(0x336)][_0xa4ee10(0x1fd)](_0x5e6f7c);if(!_0x17f566||!_0x23cc4d)return;if(_0x42b24b!==undefined)_0x17f566[_0xa4ee10(0x201)]=_0x42b24b;_0x17f566['stats']={'rss':_0x23cc4d[_0xa4ee10(0x2c0)]??null,'heapUsed':_0x23cc4d[_0xa4ee10(0x347)]??null,'heapTotal':_0x23cc4d[_0xa4ee10(0x125)]??null,'external':_0x23cc4d[_0xa4ee10(0x1c2)]??null,'cpuPct':_0x23cc4d['cpuPct']??null,'cpuWindowMs':_0x23cc4d[_0xa4ee10(0x211)]??null,'threads':_0x23cc4d['threads']??null,'claims':_0x23cc4d[_0xa4ee10(0x1a4)]??null,'envsOpen':_0x23cc4d[_0xa4ee10(0x1c6)]??null,'at':Date['now']()};}['_buildOwnRow'](){const _0x172d88=_0x2abc23,_0x3a4a4e=Date[_0x172d88(0x348)](),_0x1c7b2b=this[_0x172d88(0x12e)][_0x172d88(0x2a8)]||{},_0x277e52=this[_0x172d88(0x356)]||'cli';return{'nodeKey':this['_rowKey'],'processKey':this['_selfKey'],'instanceId':this[_0x172d88(0x1da)],'pid':process[_0x172d88(0x1a8)],'startedAt':this[_0x172d88(0x343)],'instanceStartedAt':this[_0x172d88(0x1f9)],'ppid':typeof process['ppid']==='number'?process[_0x172d88(0x2f3)]:null,'host':_0xf1a56e[_0x172d88(0x15b)](),'supervisorKey':this[_0x172d88(0x199)]??null,'version':require$$6[_0x172d88(0x342)],'kind':_0x277e52,'role':{'engines':!!_0x1c7b2b[_0x172d88(0x33f)],'processors':!!_0x1c7b2b['processors'],'compaction':_0x1c7b2b[_0x172d88(0x2e8)],'http':_0x1c7b2b['http']},'listenAddr':this[_0x172d88(0x155)]??null,'heartbeatAt':_0x3a4a4e,'expiresAt':_0x3a4a4e+_0x1da1ba,'caps':this['_caps'](_0x277e52,_0x1c7b2b),'lifecycle':{'state':_0x172d88(0x1cc),'desiredVersionApplied':null},'meta':{...this['_ownMeta']},'processing':_0x1c7b2b[_0x172d88(0x2d3)]?this[_0x172d88(0x2ff)]():null,'engines':_0x1c7b2b[_0x172d88(0x33f)]?[...this[_0x172d88(0x12e)][_0x172d88(0x2a7)]??[]]:null,'singletonClaims':this[_0x172d88(0x341)](),'stats':this[_0x172d88(0x323)](),'writers':this[_0x172d88(0x1ab)]()};}[_0x2abc23(0x1ab)](){const _0x82df5e=_0x2abc23,_0x504d43={};try{for(const [_0x52f9ae,_0x606240]of this['okdb']['_envs']){try{const _0x3ce7b5=_0x606240[_0x82df5e(0x126)]?.();if(!_0x3ce7b5)continue;if(!_0x3ce7b5['depth']&&!_0x3ce7b5[_0x82df5e(0x304)]&&!(_0x3ce7b5[_0x82df5e(0x33d)]??0x0)&&!_0x3ce7b5[_0x82df5e(0x1ba)])continue;_0x504d43[_0x52f9ae]={'depth':_0x3ce7b5[_0x82df5e(0x196)],'oldestPendingMs':_0x3ce7b5[_0x82df5e(0x203)],'committed':_0x3ce7b5[_0x82df5e(0x304)],'commitsPerSec':_0x3ce7b5['commitsPerSec'],'commitP99Ms':_0x3ce7b5[_0x82df5e(0x197)],'parkedNow':_0x3ce7b5[_0x82df5e(0x33d)]??0x0,'draining':!!_0x3ce7b5[_0x82df5e(0x1ba)]};}catch{}}}catch{}return Object['keys'](_0x504d43)['length']?_0x504d43:null;}[_0x2abc23(0x341)](){const _0x3a9bee=_0x2abc23,_0x117ac4=process[_0x3a9bee(0x1a8)],_0x13a890=Date[_0x3a9bee(0x348)](),_0x31bb56=_0x3fac23=>{const _0x3f32e4=_0x3a9bee;if(!_0x3fac23)return[];const _0x2e0608=[];try{for(const {id:_0x2c81ed,entry:_0x5a191a}of _0x3fac23[_0x3f32e4(0x1de)]()){if(_0x5a191a?.[_0x3f32e4(0x27f)]?.[_0x3f32e4(0x1a8)]!==_0x117ac4)continue;const _0xfb895b=_0x5a191a[_0x3f32e4(0x354)]??_0x5a191a['acquiredAt']??0x0;if(_0xfb895b+(_0x5a191a[_0x3f32e4(0x24a)]??0x0)<_0x13a890)continue;_0x2e0608[_0x3f32e4(0x1b4)](_0x2c81ed);}}catch{}return _0x2e0608;},_0x1307f0=_0x31bb56(this['_singletonLock'](_0x3a9bee(0x34e))),_0x4b23ef=_0x31bb56(this[_0x3a9bee(0x30e)]('sync'));if(!_0x1307f0[_0x3a9bee(0x149)]&&!_0x4b23ef[_0x3a9bee(0x149)])return null;return{'compact':_0x1307f0,'replicate':_0x4b23ef};}[_0x2abc23(0x30e)](_0x31f459){const _0x44734b=_0x2abc23;if(!this[_0x44734b(0x12e)]?.['_rootDb'])return null;if(!this['_singletonLocks'])this[_0x44734b(0x215)]=new Map();let _0x114309=this[_0x44734b(0x215)][_0x44734b(0x1fd)](_0x31f459);if(!_0x114309)try{_0x114309=new _0x26ca52(this[_0x44734b(0x12e)][_0x44734b(0x302)],{'namespace':_0x31f459}),this[_0x44734b(0x215)]['set'](_0x31f459,_0x114309);}catch{return null;}return _0x114309;}[_0x2abc23(0x2ff)](){const _0x36c02a=_0x2abc23,_0x3a76d2=[];try{for(const [_0x3d550f,_0x353947]of this[_0x36c02a(0x12e)][_0x36c02a(0x31a)]){if(_0x3d550f[_0x36c02a(0x198)]('~'))continue;for(const _0x1b417d of _0x353947[_0x36c02a(0x137)]['tierList']())_0x3a76d2[_0x36c02a(0x1b4)]({..._0x1b417d,'env':_0x3d550f});}}catch{}return{'participate':this['okdb'][_0x36c02a(0x2d3)]?.[_0x36c02a(0x280)]??![],'processors':_0x3a76d2};}['_ensureDesired'](){const _0x4944f4=_0x2abc23;if(this[_0x4944f4(0x333)])return!![];const _0x28b99c=this[_0x4944f4(0x12e)][_0x4944f4(0x302)];if(!_0x28b99c)return![];return this['_desired']=_0x28b99c[_0x4944f4(0x1bb)](_0x4ab62b,{'dupSort':![]}),this['_cmd']=_0x28b99c[_0x4944f4(0x1bb)](_0x291776,{'dupSort':![]}),!![];}async[_0x2abc23(0x12c)](){const _0x5dabc8=_0x2abc23;if(!this[_0x5dabc8(0x17b)]())return;const _0x4278d0='__vocab/version',_0x41f536=0x1,_0x526a0e=this[_0x5dabc8(0x333)][_0x5dabc8(0x1fd)](_0x4278d0)??0x0;if(_0x526a0e>=_0x41f536)return;const _0x276765=_0xf4a593=>{const _0x506f89=_0x5dabc8;if(_0xf4a593===_0x506f89(0x351))return'single';if(_0xf4a593===_0x506f89(0x26a))return _0x506f89(0x301);return _0xf4a593;};await this[_0x5dabc8(0x12e)][_0x5dabc8(0x14a)][_0x5dabc8(0x30d)]['transaction'](()=>{const _0x3125c8=_0x5dabc8;for(const _0x3dc836 of['procmode/',_0x3125c8(0x22f)]){for(const {key:_0x39318,value:_0x2bfe26}of this[_0x3125c8(0x333)][_0x3125c8(0x2bf)]({'start':_0x3dc836,'end':_0x3dc836+'ÿ'})){if(typeof _0x39318!=='string'||!_0x39318[_0x3125c8(0x198)](_0x3dc836))break;const _0x300e21=_0x276765(_0x2bfe26[_0x3125c8(0x17f)]);if(_0x300e21!==_0x2bfe26[_0x3125c8(0x17f)])this[_0x3125c8(0x333)][_0x3125c8(0x129)](_0x39318,{..._0x2bfe26,'mode':_0x300e21});}}this[_0x3125c8(0x333)][_0x3125c8(0x129)](_0x4278d0,_0x41f536);});}[_0x2abc23(0x2bc)](){const _0x40c81f=_0x2abc23;return!!this[_0x40c81f(0x333)];}[_0x2abc23(0x1a1)](_0x320609,_0x50ed33){const _0x6acf67=_0x2abc23;if(!this[_0x6acf67(0x17b)]())return null;const _0x1d8b2b=_0x320609+'/'+_0x50ed33;return this[_0x6acf67(0x2b0)](),this['_desiredOverlay'][_0x6acf67(0x1fd)](_0x1d8b2b)??this[_0x6acf67(0x333)][_0x6acf67(0x1fd)](_0x1d8b2b)??null;}[_0x2abc23(0x2b0)](){const _0x3f9bd8=_0x2abc23;if(!_0x2e020a)return;try{this[_0x3f9bd8(0x12e)][_0x3f9bd8(0x14a)]?.['db']?.[_0x3f9bd8(0x2f7)]?.();}catch{}}async[_0x2abc23(0x352)](_0x1ae24c,_0x44324c,_0x2dc7d0){const _0x92488d=_0x2abc23;if(!this[_0x92488d(0x17b)]())return null;const _0x551fb4=_0x1ae24c+'/'+_0x44324c;this[_0x92488d(0x2b0)]();const _0x2e5573=this[_0x92488d(0x297)][_0x92488d(0x1fd)](_0x551fb4)??this[_0x92488d(0x333)][_0x92488d(0x1fd)](_0x551fb4)??{'version':0x0},_0x44cb2e=(_0x2e5573[_0x92488d(0x342)]||0x0)+0x1,_0x13d351={..._0x2e5573,..._0x2dc7d0,'version':_0x44cb2e,'updatedAt':Date['now']()};this[_0x92488d(0x297)]['set'](_0x551fb4,_0x13d351);try{await this[_0x92488d(0x12e)]['_systemEnv']['_writer']['transaction'](()=>{const _0x4f3f3b=_0x92488d;this[_0x4f3f3b(0x333)][_0x4f3f3b(0x129)](_0x551fb4,_0x13d351);});}finally{if(this[_0x92488d(0x297)][_0x92488d(0x1fd)](_0x551fb4)===_0x13d351)this[_0x92488d(0x297)][_0x92488d(0x23f)](_0x551fb4);}return _0x44cb2e;}[_0x2abc23(0x296)](_0xd1114f){const _0x358afe=_0x2abc23;if(!this[_0x358afe(0x17b)]())return[];this[_0x358afe(0x2b0)]();const _0x394cdb=_0xd1114f+'/',_0x1357bd=[];for(const {key:_0x41eb4c,value:_0x1bea9b}of this[_0x358afe(0x333)][_0x358afe(0x2bf)]({'start':_0x394cdb,'end':_0x394cdb+'ÿ'})){if(typeof _0x41eb4c!==_0x358afe(0x1e5)||!_0x41eb4c[_0x358afe(0x198)](_0x394cdb))break;_0x1357bd[_0x358afe(0x1b4)]({'key':_0x41eb4c[_0x358afe(0x244)](_0x394cdb['length']),'value':_0x1bea9b});}return _0x1357bd;}[_0x2abc23(0x165)](_0x393d36){const _0x3fbb67=_0x2abc23;if(!this[_0x3fbb67(0x17b)]())return null;return this['_cmd'][_0x3fbb67(0x1fd)](_0x393d36)??null;}async['bumpCmd'](_0x5ca974,_0xc34318,_0x2c6738={}){const _0x5dfda7=_0x2abc23;if(!this[_0x5dfda7(0x17b)]())return null;let _0x42ce19;return await this[_0x5dfda7(0x12e)][_0x5dfda7(0x14a)][_0x5dfda7(0x30d)]['transaction'](()=>{const _0x4962fe=_0x5dfda7,_0x4d41d1=this[_0x4962fe(0x2b5)][_0x4962fe(0x1fd)](_0x5ca974)||{'epoch':0x0};_0x42ce19=(_0x4d41d1[_0x4962fe(0x1f3)]||0x0)+0x1,this[_0x4962fe(0x2b5)][_0x4962fe(0x129)](_0x5ca974,{..._0x4d41d1,..._0x2c6738,'cmd':_0xc34318,'epoch':_0x42ce19,'updatedAt':Date['now']()});}),_0x42ce19;}}return okdbProcessRegistry={'OKDBProcessRegistry':_0x4c501d,'nodeKey':_0x3a50de,'logicalKey':_0x5ef476,'slotKey':_0x231cb9,'PROCESS_ENV':_0x204a5a,'NODE_TYPE':_0x326745},okdbProcessRegistry;}var okdbChangefeed,hasRequiredOkdbChangefeed;function requireOkdbChangefeed(){const _0x201e9b=_0x337619;if(hasRequiredOkdbChangefeed)return okdbChangefeed;hasRequiredOkdbChangefeed=0x1;const _0x367271=require$$0$4,{EVENTS:_0x4cfdfb,CHANGE_ACTIONS:_0x486c1b}=requireOkdbEnums(),{LOOP:_0x482767}=requireOkdbLoopMonitor(),_0x34e1ae=Number(process.env.OKDB_CHANGEFEED_QUANTUM)||0x3e8,_0x5628c9=0x5,_0xbdb910=0x2710;class _0x15d904 extends _0x367271{constructor(_0x484737,_0x1045da={}){const _0x57b48f=_0x58e7;super(),this['okdb']=_0x484737,this[_0x57b48f(0x20b)]=_0x1045da['quantum']??_0x34e1ae,this['_flushDebounce']=_0x1045da[_0x57b48f(0x2ba)]??_0x5628c9,this[_0x57b48f(0x31e)]=_0x1045da[_0x57b48f(0x306)]??_0xbdb910,this['_started']=![],this[_0x57b48f(0x29b)]=new Map(),this[_0x57b48f(0x2df)]=new Map(),this[_0x57b48f(0x19c)]=new Map(),this[_0x57b48f(0x162)]=null,this[_0x57b48f(0x26f)]=![],this[_0x57b48f(0x2fc)]=new Set(),this[_0x57b48f(0x1d9)]=_0x536b5c=>this[_0x57b48f(0x270)](_0x536b5c),this[_0x57b48f(0x281)]=_0x3a0003=>this[_0x57b48f(0x2fa)](_0x3a0003),this[_0x57b48f(0x2e3)]=()=>this[_0x57b48f(0x2d2)]();}['start'](){const _0x966cd2=_0x58e7;if(this[_0x966cd2(0x227)])return;this[_0x966cd2(0x227)]=!![];for(const [_0x2eceaa,_0x132524]of this[_0x966cd2(0x12e)][_0x966cd2(0x31a)]){if(_0x2eceaa['startsWith']('~'))continue;try{_0x132524[_0x966cd2(0x32d)]();}catch{}}for(const [_0x891ce9,_0x4db207]of this[_0x966cd2(0x12e)][_0x966cd2(0x31a)]){if(_0x891ce9['startsWith']('~'))continue;try{this[_0x966cd2(0x2df)][_0x966cd2(0x217)](_0x891ce9,_0x4db207['getClock']()||0x0);}catch{}}const {events:_0x1f0458}=this[_0x966cd2(0x12e)];_0x1f0458['on'](_0x4cfdfb[_0x966cd2(0x166)],this[_0x966cd2(0x1d9)]),_0x1f0458['on'](_0x4cfdfb['ITEM_UPDATE'],this[_0x966cd2(0x1d9)]),_0x1f0458['on'](_0x4cfdfb[_0x966cd2(0x25d)],this[_0x966cd2(0x1d9)]),_0x1f0458['on'](_0x4cfdfb[_0x966cd2(0x32e)],this[_0x966cd2(0x281)]),_0x1f0458[_0x966cd2(0x2ab)](_0x4cfdfb[_0x966cd2(0x28f)],this[_0x966cd2(0x2e3)]);}[_0x201e9b(0x2d2)](){const _0xc875df=_0x201e9b;if(!this['_started'])return;this[_0xc875df(0x227)]=![];const {events:_0x5b7503}=this[_0xc875df(0x12e)];_0x5b7503['off'](_0x4cfdfb['ITEM_CREATE'],this['_onItem']),_0x5b7503[_0xc875df(0x1fa)](_0x4cfdfb[_0xc875df(0x30a)],this['_onItem']),_0x5b7503[_0xc875df(0x1fa)](_0x4cfdfb[_0xc875df(0x25d)],this[_0xc875df(0x1d9)]),_0x5b7503['off'](_0x4cfdfb[_0xc875df(0x32e)],this[_0xc875df(0x281)]);try{_0x5b7503[_0xc875df(0x1fa)](_0x4cfdfb[_0xc875df(0x28f)],this[_0xc875df(0x2e3)]);}catch{}this['_flushTimer']&&(clearTimeout(this['_flushTimer']),this[_0xc875df(0x162)]=null),this[_0xc875df(0x19c)][_0xc875df(0x326)](),this[_0xc875df(0x29b)][_0xc875df(0x326)](),this[_0xc875df(0x2df)][_0xc875df(0x326)](),this[_0xc875df(0x2fc)][_0xc875df(0x326)]();}[_0x201e9b(0x1bc)](_0x157ba5,_0x39d049,_0x27a8f6,_0xe50fba){return _0x157ba5+'\x00'+_0x39d049+'\x00'+_0x27a8f6+'\x00'+_0xe50fba;}['_markSeen'](_0xbf50b6,_0x53ea92,_0x3f2b,_0x3b0c7a){const _0x2446b0=_0x201e9b,_0x8931d5=this[_0x2446b0(0x1bc)](_0xbf50b6,_0x53ea92,_0x3f2b,_0x3b0c7a);if(this[_0x2446b0(0x2fc)]['has'](_0x8931d5))return![];this[_0x2446b0(0x2fc)]['add'](_0x8931d5);if(this[_0x2446b0(0x2fc)][_0x2446b0(0x1e8)]>this[_0x2446b0(0x31e)]){const _0x1d70cc=this[_0x2446b0(0x2fc)][_0x2446b0(0x1c9)]()[_0x2446b0(0x330)]()[_0x2446b0(0x21c)];this['_seen'][_0x2446b0(0x23f)](_0x1d70cc);}return!![];}['_handleInProcess'](_0xcc2711){const _0x532c50=_0x201e9b;if(!this[_0x532c50(0x227)]||!_0xcc2711)return;const {env:_0x4af93c,type:_0x31d2c2,key:_0x424fe3,clock:_0x8c409d,origin:_0x219dd1,action:_0x58e695,newValue:_0x531c19,oldValue:_0x39058d}=_0xcc2711;if(_0x4af93c==null||_0x31d2c2==null||_0x424fe3==null)return;if(typeof _0x4af93c===_0x532c50(0x1e5)&&_0x4af93c[_0x532c50(0x198)]('~'))return;if(typeof _0x31d2c2===_0x532c50(0x1e5)&&_0x31d2c2['startsWith']('~'))return;if(!this[_0x532c50(0x182)](_0x4af93c,_0x31d2c2,_0x424fe3,_0x8c409d))return;const _0x5ccf40=_0x58e695===_0x486c1b[_0x532c50(0x274)]?_0x532c50(0x1f2):_0x532c50(0x129);this[_0x532c50(0x2a9)](_0x532c50(0x18f),{'env':_0x4af93c,'type':_0x31d2c2,'key':_0x424fe3,'op':_0x5ccf40,'clock':_0x8c409d,'origin':_0x219dd1,'value':_0x5ccf40===_0x532c50(0x1f2)?null:_0x531c19,'prevValue':_0x39058d});}[_0x201e9b(0x2fa)](_0x14f3af){const _0x10430e=_0x201e9b;if(!this['_started'])return;if(!_0x14f3af||typeof _0x14f3af[_0x10430e(0x21a)]!=='string'||typeof _0x14f3af[_0x10430e(0x171)]!==_0x10430e(0x1e5))return;const {env:_0x1ff18c,type:_0x19b880}=_0x14f3af;if(_0x1ff18c['startsWith']('~')||_0x19b880[_0x10430e(0x198)]('~'))return;this[_0x10430e(0x19c)][_0x10430e(0x217)](_0x1ff18c+'\x00'+_0x19b880,{'env':_0x1ff18c,'type':_0x19b880}),this[_0x10430e(0x1d2)]();}[_0x201e9b(0x1d2)](){const _0x2da8f7=_0x201e9b;if(this['_flushTimer'])return;const _0x173b18=()=>{const _0x12c4b6=_0x58e7;this[_0x12c4b6(0x162)]=null,this[_0x12c4b6(0x238)]()['catch'](()=>{});};this[_0x2da8f7(0x162)]=setTimeout(_0x173b18,this[_0x2da8f7(0x2b3)]>0x0?this[_0x2da8f7(0x2b3)]:0x0);}async['_drain'](){const _0xa9de0b=_0x201e9b;if(this[_0xa9de0b(0x26f)]){this[_0xa9de0b(0x1d2)]();return;}this[_0xa9de0b(0x26f)]=!![];try{const _0x3c1ec3=[...this[_0xa9de0b(0x19c)][_0xa9de0b(0x1c9)]()];this[_0xa9de0b(0x19c)][_0xa9de0b(0x326)]();let _0x34606e=![];for(const {env:_0x51b42e,type:_0x2e8bd7}of _0x3c1ec3){try{const _0x24baa9=await this['_drainOne'](_0x51b42e,_0x2e8bd7);if(_0x24baa9)_0x34606e=!![];}catch{this[_0xa9de0b(0x19c)]['set'](_0x51b42e+'\x00'+_0x2e8bd7,{'env':_0x51b42e,'type':_0x2e8bd7}),_0x34606e=!![];}}if(_0x34606e||this[_0xa9de0b(0x19c)][_0xa9de0b(0x1e8)]>0x0)this[_0xa9de0b(0x1d2)]();}finally{this[_0xa9de0b(0x26f)]=![];}}async[_0x201e9b(0x205)](_0x5b07fc,_0x3fcdeb){const _0x1fe932=_0x201e9b,_0x4434e5=await this['okdb'][_0x1fe932(0x233)](_0x5b07fc),_0x29c65b=_0x5b07fc+'\x00'+_0x3fcdeb;!this['_cursors'][_0x1fe932(0x222)](_0x29c65b)&&(!this[_0x1fe932(0x2df)]['has'](_0x5b07fc)&&(_0x4434e5[_0x1fe932(0x32d)](),this['_baselines'][_0x1fe932(0x217)](_0x5b07fc,_0x4434e5[_0x1fe932(0x138)]()||0x0)),this[_0x1fe932(0x29b)]['set'](_0x29c65b,this[_0x1fe932(0x2df)][_0x1fe932(0x1fd)](_0x5b07fc)));const _0x339b59=this[_0x1fe932(0x29b)]['get'](_0x29c65b),_0x3c70fe=_0x4434e5[_0x1fe932(0x138)](_0x3fcdeb)||0x0;if(_0x3c70fe<=_0x339b59)return![];const _0x3c2826=_0x339b59+this[_0x1fe932(0x20b)],_0x2e3493=Math[_0x1fe932(0x278)](_0x3c70fe,_0x3c2826),_0x443275=_0x482767[_0x1fe932(0x2fb)]?_0x482767[_0x1fe932(0x348)]():0x0,_0x5435e=Array[_0x1fe932(0x123)](_0x4434e5[_0x1fe932(0x1fe)](_0x3fcdeb,_0x339b59+0x1,_0x2e3493));let _0x1f77cc=_0x339b59;for(const _0x54e4d7 of _0x5435e){const {clock:_0x3a085e,key:_0x498063,action:_0x3a5c6e,origin:_0x57ed4a}=_0x54e4d7;if(_0x3a085e>_0x1f77cc)_0x1f77cc=_0x3a085e;if(_0x498063==null)continue;if(!this[_0x1fe932(0x182)](_0x5b07fc,_0x3fcdeb,_0x498063,_0x3a085e))continue;let _0x14a572,_0x44b6f4;if(_0x3a5c6e===_0x486c1b[_0x1fe932(0x274)])_0x14a572=_0x1fe932(0x1f2),_0x44b6f4=null;else{const _0x40bd08=_0x4434e5['get'](_0x3fcdeb,_0x498063);_0x40bd08==null?(_0x14a572='remove',_0x44b6f4=null):(_0x14a572='put',_0x44b6f4=_0x40bd08);}this[_0x1fe932(0x2a9)](_0x1fe932(0x18f),{'env':_0x5b07fc,'type':_0x3fcdeb,'key':_0x498063,'op':_0x14a572,'clock':_0x3a085e,'origin':_0x57ed4a,'value':_0x44b6f4});}if(_0x482767['enabled'])_0x482767[_0x1fe932(0x30f)](_0x1fe932(0x261)+_0x5b07fc+':'+_0x3fcdeb,_0x482767[_0x1fe932(0x348)]()-_0x443275,'n='+_0x5435e['length']);return this[_0x1fe932(0x29b)]['set'](_0x29c65b,Math[_0x1fe932(0x17a)](_0x1f77cc,_0x2e3493)),_0x4434e5[_0x1fe932(0x138)](_0x3fcdeb)>_0x2e3493;}[_0x201e9b(0x29d)](){const _0x164c0b=_0x201e9b;return{'started':this[_0x164c0b(0x227)],'quantum':this['_quantum'],'flushDebounce':this['_flushDebounce'],'cursors':Object[_0x164c0b(0x213)]([...this[_0x164c0b(0x29b)]['entries']()][_0x164c0b(0x33e)](([_0x1327ee,_0x3162df])=>[_0x1327ee[_0x164c0b(0x1f1)]('\x00',':'),_0x3162df])),'pending':this[_0x164c0b(0x19c)][_0x164c0b(0x1e8)],'seen':this[_0x164c0b(0x2fc)][_0x164c0b(0x1e8)]};}}return _0x15d904[_0x201e9b(0x321)]=_0x34e1ae,okdbChangefeed={'OKDBChangefeed':_0x15d904},okdbChangefeed;}var okdbCluster,hasRequiredOkdbCluster;function requireOkdbCluster(){const _0x17ad02=_0x337619;if(hasRequiredOkdbCluster)return okdbCluster;hasRequiredOkdbCluster=0x1;const _0x3406f1=require$$1$1,_0x5508c2=require$$1,{EVENTS:_0x21bf8f}=requireOkdbEnums(),_0x38f0f9=require$$0$3,{slotKey:_0x2f92be}=requireOkdbProcessRegistry(),_0x5ced5d=0xfa,_0x4887e5=0xfa0,_0x4652fb=0x5,_0x2da6a2=0x2710,_0x43babd=0xbb8,_0x1a1558=0x7d0,_0x2f36c8=_0x17ad02(0x161),_0x331222=_0x17ad02(0x303),_0x5309fd=_0x17ad02(0x314),_0x57a3dd=_0x17ad02(0x28b),_0x629c24=[_0x21bf8f['VIEW_PROGRESS'],_0x21bf8f['FTS_REGISTERED'],_0x21bf8f[_0x17ad02(0x229)],_0x21bf8f[_0x17ad02(0x20e)],_0x21bf8f['INDEX_PROGRESS'],_0x21bf8f[_0x17ad02(0x1f6)],_0x21bf8f[_0x17ad02(0x242)],_0x21bf8f[_0x17ad02(0x15d)],_0x17ad02(0x1df),'processor:progress','processor:error',_0x17ad02(0x2f5),'processor:resumed',_0x17ad02(0x212)],_0x551a7d=Number(process.env.OKDB_CLUSTER_STATUS_MS)||0x7d0;function _0x58d000({workers:_0x5dd4b5,makeOkdb:_0x39cf0e,port:_0x88ad02,primaryOkdb:_0x47dea6,childEntry:childEntry=![],workerEnv:workerEnv=null}={}){const _0xd203f1=_0x17ad02;if(_0x3406f1[_0xd203f1(0x2f2)])return childEntry&&_0x3406f1['setupPrimary']({'exec':_0x5508c2[_0xd203f1(0x159)](__dirname,_0xd203f1(0x334)),'args':[],'execArgv':((()=>{const _0xe7aae5=_0xd203f1,_0x4c5b1f=[];for(let _0x442c02=0x0;_0x442c02<process[_0xe7aae5(0x2d6)][_0xe7aae5(0x149)];_0x442c02++){const _0x268fd8=process[_0xe7aae5(0x2d6)][_0x442c02];if(_0x268fd8[_0xe7aae5(0x198)](_0xe7aae5(0x288))||_0x268fd8[_0xe7aae5(0x198)](_0xe7aae5(0x317))||_0x268fd8[_0xe7aae5(0x198)](_0xe7aae5(0x22e)))continue;if(_0x268fd8==='-e'||_0x268fd8==='--eval'||_0x268fd8==='-p'||_0x268fd8===_0xe7aae5(0x2a2)){_0x442c02++;continue;}_0x4c5b1f[_0xe7aae5(0x1b4)](_0x268fd8);}return _0x4c5b1f;})())}),_0x522c0f({'workers':_0x5dd4b5,'port':_0x88ad02,'primaryOkdb':_0x47dea6,'workerEnv':workerEnv});return _0x4957d1({'makeOkdb':_0x39cf0e,'port':_0x88ad02});}function _0x522c0f({workers:_0x1ae110,port:_0x1933ff,primaryOkdb:_0xd416eb,workerEnv:_0x34caae}){const _0x84c327=_0x17ad02,_0x5493d9=new Map(),_0x1c0b33=new Map();let _0x58c0ae=![];const _0x58380d=_0x5beb77=>_0x5beb77?.[_0x84c327(0x14b)],_0x30e316=_0x48cf0d=>{const _0x522de6=_0x84c327,_0x4db195=_0x3406f1['fork']({...process.env,..._0x34caae||{},'OKDB_CLUSTER_SLOT':String(_0x48cf0d)});return _0x4db195[_0x522de6(0x14b)]=_0x48cf0d,_0x5493d9[_0x522de6(0x217)](_0x4db195[_0x522de6(0x1c8)]['pid'],{'worker':_0x4db195,'startedAt':Date[_0x522de6(0x348)](),'slot':_0x48cf0d}),_0x4db195['on']('error',_0x2e8294=>{const _0x58d681=_0x522de6;console['log']('[okdb-cluster]\x20worker\x20pid='+_0x4db195[_0x58d681(0x1c8)]['pid']+_0x58d681(0x1ae)+(_0x2e8294?.[_0x58d681(0x188)]??_0x2e8294));}),_0x4db195['on'](_0x522de6(0x1b7),()=>_0x1a24d0()),_0x4db195;},_0x277923=_0x549bbe=>{const _0x2ddfde=_0x84c327;for(const {worker:_0x1c1d2f}of _0x5493d9[_0x2ddfde(0x1c9)]()){if(_0x1c1d2f['isDead']()||!_0x1c1d2f[_0x2ddfde(0x2b1)]())continue;try{_0x1c1d2f[_0x2ddfde(0x22d)](_0x549bbe);}catch{}}};_0xd416eb?.[_0x84c327(0x2ad)]?.({'kind':'primary','listenAddr':':'+_0x1933ff})[_0x84c327(0x183)](()=>{}),_0xd416eb?.[_0x84c327(0x340)]?.[_0x84c327(0x2f9)]?.({'workersConfigured':_0x1ae110});const _0x1e0d08={'engines':!![],'processors':!![],'compaction':!![],'http':!![]},_0x1a24d0=()=>{const _0x116998=_0x84c327,_0x5d4832=_0xd416eb?.[_0x116998(0x340)];if(!_0x5d4832||!_0x5d4832['_isWriter'])return;const _0x3b7095=_0x5d4832[_0x116998(0x16d)];for(const {worker:_0x2ed09a,startedAt:_0xb24dc4,slot:_0x3f8bc6,stats:_0x47ed85,processing:_0x2469cf}of _0x5493d9[_0x116998(0x1c9)]()){if(_0x2ed09a[_0x116998(0x16e)]())continue;const _0x3d00dc=_0x5d4832[_0x116998(0x2bc)]?.()&&_0x5d4832['getDesired'](_0x116998(0x207),_0xfb7d35(_0x3f8bc6))?.[_0x116998(0x292)]===!![];_0x5d4832[_0x116998(0x2ea)]({'pid':_0x2ed09a[_0x116998(0x1c8)][_0x116998(0x1a8)],'startedAt':_0xb24dc4,'kind':_0x116998(0x19a),'supervisorKey':_0x3b7095,'slot':_0x3f8bc6,'slotKey':_0xfb7d35(_0x3f8bc6),'role':_0x1e0d08,'listenAddr':':'+_0x1933ff,'lifecycle':_0x3d00dc?'decommissioning':'running','processing':_0x2469cf??null,'stats':_0x47ed85??null})['catch'](()=>{});}},_0xfb7d35=_0x2031cf=>_0x2f92be(_0x84c327(0x311)+_0x1933ff,_0x2031cf),_0x201bfc=_0x5ec35d=>{const _0x42e54f=_0x84c327,_0x328ea3=_0xd416eb?.['processes'];if(!_0x328ea3?.[_0x42e54f(0x2bc)]?.())return![];return _0x328ea3[_0x42e54f(0x1a1)](_0x42e54f(0x207),_0xfb7d35(_0x5ec35d))?.[_0x42e54f(0x292)]===!![];};for(let _0x3b64c4=0x0;_0x3b64c4<_0x1ae110;_0x3b64c4++){const _0x2168d6=_0x201bfc(_0x3b64c4);_0x1c0b33[_0x84c327(0x217)](_0x3b64c4,{'deaths':[],'consecutiveFailures':0x0,'dead':_0x2168d6,'respawnTimer':null}),_0x2168d6?console['log']('[okdb-cluster]\x20slot='+_0x3b64c4+_0x84c327(0x225)):_0x30e316(_0x3b64c4);}const _0x116a8c=()=>{const _0x25827d=_0x84c327,_0x5ce327=_0xd416eb?.[_0x25827d(0x340)];if(!_0x5ce327?.[_0x25827d(0x247)]||!_0x5ce327['hasDesired']?.())return;for(const [_0x322df9,_0x3dd6f8]of _0x1c0b33[_0x25827d(0x1e2)]()){const _0x22e4c8=_0x5ce327[_0x25827d(0x1a1)]('slot',_0xfb7d35(_0x322df9)),_0x15872d=_0x22e4c8?.[_0x25827d(0x292)]===!![],_0x62fac5=_0x22e4c8?.['kill']===!![];if(_0x15872d&&!_0x3dd6f8[_0x25827d(0x31f)]){_0x3dd6f8[_0x25827d(0x31f)]=!![];_0x3dd6f8['respawnTimer']&&(clearTimeout(_0x3dd6f8[_0x25827d(0x1eb)]),_0x3dd6f8[_0x25827d(0x1eb)]=null);for(const {worker:_0x4e6e8e}of _0x5493d9[_0x25827d(0x1c9)]()){if(_0x58380d(_0x4e6e8e)!==_0x322df9||_0x4e6e8e[_0x25827d(0x16e)]())continue;try{if(_0x62fac5)_0x4e6e8e[_0x25827d(0x1c8)]['kill'](_0x25827d(0x346));else _0x4e6e8e[_0x25827d(0x2b1)]()&&_0x4e6e8e['disconnect']();}catch{}}console[_0x25827d(0x314)](_0x25827d(0x29f)+(_0x62fac5?'hard-killed':_0x25827d(0x1d6))+'\x20worker\x20slot='+_0x322df9+_0x25827d(0x14c));}else{if(!_0x15872d&&_0x3dd6f8[_0x25827d(0x31f)]&&_0x22e4c8){_0x3dd6f8['dead']=![],_0x3dd6f8['deaths']=[],_0x3dd6f8['consecutiveFailures']=0x0;const _0xa7b2b4=[..._0x5493d9[_0x25827d(0x1c9)]()][_0x25827d(0x322)](({worker:_0x2bcc0b})=>_0x58380d(_0x2bcc0b)===_0x322df9&&!_0x2bcc0b[_0x25827d(0x16e)]());!_0xa7b2b4&&!_0x58c0ae&&(_0x30e316(_0x322df9),console[_0x25827d(0x314)](_0x25827d(0x168)+_0x322df9));}}}},_0x4dea58=()=>{try{_0x116a8c();}catch{}};_0xd416eb?.[_0x84c327(0x25b)]?.['on']?.(_0x21bf8f[_0x84c327(0x1ad)],_0x4dea58);const _0x4de447=[];if(_0xd416eb?.[_0x84c327(0x25b)]?.['on'])for(const _0x3cbdc0 of _0x629c24){const _0xdb1f71=_0x4bbb54=>{_0x277923({[_0x2f36c8]:_0x331222,'event':_0x3cbdc0,'data':_0x4bbb54??{}});};_0xd416eb[_0x84c327(0x25b)]['on'](_0x3cbdc0,_0xdb1f71),_0x4de447['push']({'event':_0x3cbdc0,'handler':_0xdb1f71});}const _0x5893a9=setInterval(()=>{_0x116a8c(),_0x1a24d0();},_0x551a7d);_0x5893a9[_0x84c327(0x195)]?.();const _0x26d1de=(_0x49eab5,_0x27f351)=>{const _0xec4989=_0x84c327;if(!_0x27f351||typeof _0x27f351!==_0xec4989(0x1f0)||_0x27f351[_0x2f36c8]!==_0x5309fd)return;if(!_0xd416eb?.[_0xec4989(0x314)]?.['ingest'])return;const _0x507573=_0x27f351[_0xec4989(0x13b)]||{};_0xd416eb[_0xec4989(0x314)]['ingest']({..._0x507573,'msg':'[w'+_0x27f351[_0xec4989(0x207)]+']\x20'+(_0x507573[_0xec4989(0x2d1)]??''),'meta':{..._0x507573[_0xec4989(0x276)]||{},'worker':_0x27f351[_0xec4989(0x207)],'workerPid':_0x27f351[_0xec4989(0x1a8)]}});};_0x3406f1['on'](_0x84c327(0x188),_0x26d1de);const _0x151f9e=(_0x1a5885,_0x7fd078)=>{const _0x21e393=_0x84c327;if(!_0x7fd078||typeof _0x7fd078!==_0x21e393(0x1f0)||_0x7fd078[_0x2f36c8]!==_0x57a3dd)return;const _0x2973b3=_0x5493d9['get'](_0x1a5885['process'][_0x21e393(0x1a8)]);if(_0x2973b3){_0x2973b3['stats']={..._0x7fd078[_0x21e393(0x28b)],'at':Date[_0x21e393(0x348)]()};if(_0x7fd078[_0x21e393(0x201)]!==undefined)_0x2973b3['processing']=_0x7fd078[_0x21e393(0x201)];}};_0x3406f1['on'](_0x84c327(0x188),_0x151f9e),_0x3406f1['on'](_0x84c327(0x2c3),(_0xecc9a7,_0x366a8f,_0x512c54)=>{const _0x3fb9f6=_0x84c327,_0x7a4375=_0xecc9a7['process'][_0x3fb9f6(0x1a8)],_0x23363c=_0x58380d(_0xecc9a7),_0x5d5a39=_0x5493d9['get'](_0x7a4375);if(_0x5d5a39&&_0xd416eb?.[_0x3fb9f6(0x340)])_0xd416eb[_0x3fb9f6(0x340)][_0x3fb9f6(0x1ed)](_0x7a4375+':'+_0x5d5a39[_0x3fb9f6(0x19e)])[_0x3fb9f6(0x183)](()=>{});_0x5493d9[_0x3fb9f6(0x23f)](_0x7a4375),console[_0x3fb9f6(0x314)]('[okdb-cluster]\x20worker\x20pid='+_0x7a4375+_0x3fb9f6(0x231)+(_0x23363c??'?')+_0x3fb9f6(0x256)+(_0x3fb9f6(0x2b9)+_0x366a8f+',\x20signal='+(_0x512c54??'none')+_0x3fb9f6(0x2ee)+_0x5493d9[_0x3fb9f6(0x1e8)]+'\x20worker(s)\x20remaining')),_0x1a24d0();if(_0x58c0ae||_0x23363c==null)return;const _0x11265f=_0x1c0b33[_0x3fb9f6(0x1fd)](_0x23363c);if(!_0x11265f||_0x11265f[_0x3fb9f6(0x31f)])return;const _0xb0b60f=Date[_0x3fb9f6(0x348)]();_0x11265f[_0x3fb9f6(0x1a9)][_0x3fb9f6(0x1b4)](_0xb0b60f),_0x11265f[_0x3fb9f6(0x1a9)]=_0x11265f[_0x3fb9f6(0x1a9)][_0x3fb9f6(0x245)](_0x592567=>_0xb0b60f-_0x592567<=_0x2da6a2);if(_0x11265f['deaths']['length']>=_0x4652fb){_0x11265f[_0x3fb9f6(0x31f)]=!![],console['error'](_0x3fb9f6(0x200)+_0x23363c+'\x20died\x20'+_0x11265f['deaths'][_0x3fb9f6(0x149)]+_0x3fb9f6(0x19f)+(_0x2da6a2+_0x3fb9f6(0x23d)+_0x5493d9[_0x3fb9f6(0x1e8)]+'\x20worker(s)\x20still\x20serving'));return;}_0x11265f[_0x3fb9f6(0x251)]++;const _0xd2f0e1=Math[_0x3fb9f6(0x278)](_0x4887e5,_0x5ced5d*0x2**(_0x11265f['consecutiveFailures']-0x1));console[_0x3fb9f6(0x314)](_0x3fb9f6(0x145)+_0x23363c+_0x3fb9f6(0x310)+_0xd2f0e1+_0x3fb9f6(0x273)+_0x11265f[_0x3fb9f6(0x251)]+')'),_0x11265f[_0x3fb9f6(0x1eb)]=setTimeout(()=>{const _0x548aa8=_0x3fb9f6;_0x11265f[_0x548aa8(0x1eb)]=null;if(_0x58c0ae||_0x11265f[_0x548aa8(0x31f)])return;const _0x520418=_0x30e316(_0x23363c);_0x520418[_0x548aa8(0x2ab)]('listening',()=>{const _0xef4de4=_0x548aa8;if(_0x1c0b33[_0xef4de4(0x1fd)](_0x23363c)===_0x11265f)_0x11265f[_0xef4de4(0x251)]=0x0;});},_0xd2f0e1),_0x11265f[_0x3fb9f6(0x1eb)][_0x3fb9f6(0x195)]?.();});const _0x5ea6e4=[..._0x5493d9[_0x84c327(0x202)]()];console[_0x84c327(0x314)](_0x84c327(0x130)+process[_0x84c327(0x1a8)]+_0x84c327(0x2e1)+_0x1ae110+_0x84c327(0x258)+_0x1933ff+':\x20'+('['+_0x5ea6e4[_0x84c327(0x159)](',\x20')+']'));const _0x3f2d90={'_isClusterController':!![],'port':_0x1933ff,'primaryOkdb':_0xd416eb??null,'status'(){const _0x397460=_0x84c327;return{'clustered':!![],'primaryPid':process[_0x397460(0x1a8)],'port':_0x1933ff,'primaryRole':_0xd416eb?.[_0x397460(0x2dc)]??null,'processorPid':null,'supervisorPid':process[_0x397460(0x1a8)],'workers':[..._0x5493d9[_0x397460(0x1c9)]()][_0x397460(0x33e)](({worker:_0x1f664f})=>({'pid':_0x1f664f['process'][_0x397460(0x1a8)],'id':_0x1f664f['id'],'dead':_0x1f664f['isDead']()}))};},async 'close'(){const _0x7539f7=_0x84c327;_0x58c0ae=!![];for(const _0x41acab of _0x1c0b33['values']()){_0x41acab['dead']=!![],_0x41acab['respawnTimer']&&(clearTimeout(_0x41acab[_0x7539f7(0x1eb)]),_0x41acab[_0x7539f7(0x1eb)]=null);}clearInterval(_0x5893a9),_0x3406f1['off']('message',_0x26d1de),_0x3406f1[_0x7539f7(0x1fa)]('message',_0x151f9e),_0xd416eb?.[_0x7539f7(0x25b)]?.[_0x7539f7(0x1fa)]?.(_0x21bf8f[_0x7539f7(0x1ad)],_0x4dea58);if(_0xd416eb?.[_0x7539f7(0x25b)]?.[_0x7539f7(0x1fa)])for(const {event:_0x22f9f1,handler:_0x4feeef}of _0x4de447){try{_0xd416eb[_0x7539f7(0x25b)][_0x7539f7(0x1fa)](_0x22f9f1,_0x4feeef);}catch{}}_0x4de447[_0x7539f7(0x149)]=0x0;const _0x583f92=[..._0x5493d9['values']()]['map'](({worker:_0x3f8406})=>_0x3f8406);if(_0x583f92[_0x7539f7(0x149)]===0x0)return;await Promise[_0x7539f7(0x30b)](_0x583f92[_0x7539f7(0x33e)](_0x55bafb=>new Promise(_0x4198db=>{const _0x61e9f9=_0x7539f7;if(_0x55bafb[_0x61e9f9(0x16e)]()){_0x4198db();return;}let _0x19fd95=![];const _0x2db60e=()=>{if(_0x19fd95)return;_0x19fd95=!![];if(_0x56d94d)clearTimeout(_0x56d94d);_0x4198db();};_0x55bafb[_0x61e9f9(0x2ab)](_0x61e9f9(0x2c3),_0x2db60e);const _0x56d94d=setTimeout(()=>{const _0x1e99cf=_0x61e9f9;try{_0x55bafb[_0x1e99cf(0x1c8)]['kill']();}catch{}},_0x43babd+0x1f4);_0x56d94d[_0x61e9f9(0x195)]?.();try{_0x55bafb[_0x61e9f9(0x2ef)]();}catch{try{_0x55bafb[_0x61e9f9(0x1c8)]['kill']();}catch{}}})));}};return _0x3f2d90;}async function _0x4957d1({makeOkdb:_0x229098,port:_0x2f4161}){const _0x4b5270=_0x17ad02,_0x389f86=await _0x229098();return _0x374111(_0x389f86),_0x389f86[_0x4b5270(0x23e)]['listen'](_0x2f4161);}function _0x374111(_0x1a5bf2){const _0x26609b=_0x17ad02;if(!_0x1a5bf2||_0x1a5bf2[_0x26609b(0x33c)])return;_0x1a5bf2[_0x26609b(0x33c)]=!![];try{const {OKDBChangefeed:_0x57c516}=requireOkdbChangefeed(),_0x37870f=_0x1a5bf2['_adminRelay'];if(_0x37870f&&typeof _0x37870f[_0x26609b(0x2a0)]===_0x26609b(0x1b8)){const _0x54b144=new _0x57c516(_0x1a5bf2);_0x54b144[_0x26609b(0x1e1)](),_0x37870f[_0x26609b(0x2a0)](_0x54b144),_0x1a5bf2[_0x26609b(0x2d7)]=_0x54b144;}}catch(_0x3dded5){_0x1a5bf2[_0x26609b(0x314)]?.[_0x26609b(0x21b)]?.(_0x26609b(0x315)+(_0x3dded5?.['message']??_0x3dded5),{'feature':_0x26609b(0x210)});}const _0x4d9161=_0x2dd6f7=>{const _0x511e7e=_0x26609b;if(!_0x2dd6f7||typeof _0x2dd6f7!==_0x511e7e(0x1f0)||_0x2dd6f7[_0x2f36c8]==null)return;if(_0x2dd6f7[_0x2f36c8]===_0x331222)try{_0x1a5bf2[_0x511e7e(0x21f)]?.[_0x511e7e(0x277)]?.(_0x2dd6f7['event'],_0x2dd6f7['data']);}catch{}};process['on'](_0x26609b(0x188),_0x4d9161),_0x1a5bf2[_0x26609b(0x2ae)]=_0x4d9161;{let _0x37ccb5=process['cpuUsage'](),_0xde2308=Date['now']();const _0x280abc=()=>{const _0x22a1b8=_0x26609b;if(typeof process[_0x22a1b8(0x22d)]!==_0x22a1b8(0x1b8)||!process[_0x22a1b8(0x136)])return;const _0x3c9854=Date[_0x22a1b8(0x348)](),_0x4e60e1=process[_0x22a1b8(0x358)](),_0x3527fc=(_0x3c9854-_0xde2308)*0x3e8,_0x183747=_0x4e60e1['user']-_0x37ccb5[_0x22a1b8(0x252)]+(_0x4e60e1['system']-_0x37ccb5['system']),_0x3cf10d=_0x3527fc>0x0?Math[_0x22a1b8(0x278)](0x64,Math[_0x22a1b8(0x143)](_0x183747/(_0x3527fc*(_0x38f0f9[_0x22a1b8(0x12d)]()[_0x22a1b8(0x149)]||0x1))*0x64)):0x0;_0x37ccb5=_0x4e60e1,_0xde2308=_0x3c9854;const _0x4ce636=process[_0x22a1b8(0x2e2)]();let _0x399315=null;try{_0x399315=_0x1a5bf2[_0x22a1b8(0x2dc)]?.[_0x22a1b8(0x2d3)]?_0x1a5bf2['processes']?.[_0x22a1b8(0x2ff)]?.()??null:null;}catch{}try{process[_0x22a1b8(0x22d)]({[_0x2f36c8]:_0x57a3dd,'stats':{'rss':_0x4ce636[_0x22a1b8(0x2c0)],'heapUsed':_0x4ce636['heapUsed'],'heapTotal':_0x4ce636[_0x22a1b8(0x125)],'external':_0x4ce636[_0x22a1b8(0x1c2)],'cpuPct':_0x3cf10d,'cpuWindowMs':Math['round'](_0x3527fc/0x3e8)||null},'processing':_0x399315});}catch{}},_0x2b8d10=Math[_0x26609b(0x17a)](0x3e8,Number(process.env.OKDB_STATS_INTERVAL_MS)||0x1388),_0x20c037=setInterval(_0x280abc,_0x2b8d10);_0x20c037[_0x26609b(0x195)]?.(),_0x280abc();for(const _0x5c0c5e of['processor:paused',_0x26609b(0x1d7)]){_0x1a5bf2[_0x26609b(0x25b)]?.['on']?.(_0x5c0c5e,()=>{try{_0x280abc();}catch{}});}}let _0xe5cde0=![];const _0x29f573=async _0x34bcb9=>{const _0x1c36ab=_0x26609b;if(_0xe5cde0)return;_0xe5cde0=!![];const _0x3be390=setTimeout(()=>process['exit'](_0x34bcb9),_0x43babd);_0x3be390[_0x1c36ab(0x195)]?.();try{await _0x1a5bf2[_0x1c36ab(0x312)]?.();}catch{}process[_0x1c36ab(0x2c3)](_0x34bcb9);};process['on'](_0x26609b(0x2ef),()=>_0x29f573(0x0));if(process[_0x26609b(0x32f)]!==_0x26609b(0x246)){const _0x354ff9=setInterval(()=>{const _0x36475d=_0x26609b;if(process[_0x36475d(0x2f3)]===0x1)_0x29f573(0x0);},_0x1a1558);_0x354ff9[_0x26609b(0x195)]?.(),_0x1a5bf2['_clusterOrphanWatch']=_0x354ff9;}}return okdbCluster={'runClustered':_0x58d000,'attachWorkerCluster':_0x374111},okdbCluster;}var hasRequiredOkdbHttpWorkerChild;function requireOkdbHttpWorkerChild(){const _0xaee61=_0x337619;if(hasRequiredOkdbHttpWorkerChild)return okdbHttpWorkerChild$1;hasRequiredOkdbHttpWorkerChild=0x1;const _0x4fb85d=require$$0$5,{attachWorkerCluster:_0x3a5458}=requireOkdbCluster();async function _0x400944(){const _0x2934e5=_0x58e7,_0x4a10d0=process.env.OKDB_HTTP_CHILD;if(!_0x4a10d0)throw new Error(_0x2934e5(0x1b5));const {rootPath:_0x4f97a4,port:_0x1a1525,options:options={},logLevel:logLevel=_0x2934e5(0x132)}=JSON[_0x2934e5(0x357)](_0x4a10d0);if(!_0x4f97a4||!_0x1a1525)throw new Error(_0x2934e5(0x2ce));const _0x29c4b3=new _0x4fb85d(_0x4f97a4,{...options,'engines':![],'processors':![],'compaction':![]});_0x29c4b3[_0x2934e5(0x314)]['detachConsole']?.();const _0xac07a2=process.env.OKDB_CLUSTER_SLOT??'?',_0x471fd2={'debug':0x0,'info':0x1,'warn':0x2,'error':0x3},_0x1c5b3e=_0x471fd2[logLevel]??_0x471fd2[_0x2934e5(0x132)];_0x29c4b3[_0x2934e5(0x314)][_0x2934e5(0x147)](_0xdcf1f2=>{const _0x57c010=_0x2934e5;if((_0x471fd2[_0xdcf1f2['level']]??0x1)<_0x1c5b3e)return;try{process[_0x57c010(0x22d)]?.({'__okdbCluster':_0x57c010(0x314),'slot':_0xac07a2,'pid':process[_0x57c010(0x1a8)],'entry':_0xdcf1f2});}catch{}}),await _0x29c4b3[_0x2934e5(0x28e)](),_0x3a5458(_0x29c4b3),await _0x29c4b3[_0x2934e5(0x23e)]['listen'](_0x1a1525);}return _0x400944()[_0xaee61(0x183)](_0x53b45d=>{const _0x44da2d=_0xaee61;try{process[_0x44da2d(0x22d)]?.({'__okdbCluster':_0x44da2d(0x314),'slot':process.env.OKDB_CLUSTER_SLOT??'?','pid':process[_0x44da2d(0x1a8)],'entry':{'level':_0x44da2d(0x2c5),'msg':_0x44da2d(0x2fd)+(_0x53b45d?.[_0x44da2d(0x188)]??_0x53b45d)}});}catch{}process['exit'](0x1);}),okdbHttpWorkerChild$1;}var okdbHttpWorkerChildExports=requireOkdbHttpWorkerChild(),okdbHttpWorkerChild=getDefaultExportFromCjs(okdbHttpWorkerChildExports);function _0x58e7(_0x6ec921,_0x2719d9){_0x6ec921=_0x6ec921-0x123;const _0x140067=_0x1400();let _0x58e7ac=_0x140067[_0x6ec921];return _0x58e7ac;}module[_0x337619(0x2c1)]=okdbHttpWorkerChild;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3a34f0=_0x4478;(function(_0x29839d,_0x2e3de3){const _0x347b88=_0x4478,_0x307f90=_0x29839d();while(!![]){try{const _0xe9b08d=-parseInt(_0x347b88(0xd9))/0x1*(-parseInt(_0x347b88(0xb4))/0x2)+-parseInt(_0x347b88(0xad))/0x3+parseInt(_0x347b88(0xa3))/0x4*(parseInt(_0x347b88(0x96))/0x5)+-parseInt(_0x347b88(0xa7))/0x6+parseInt(_0x347b88(0xc3))/0x7*(parseInt(_0x347b88(0xd6))/0x8)+-parseInt(_0x347b88(0xd7))/0x9*(parseInt(_0x347b88(0xe4))/0xa)+parseInt(_0x347b88(0xcd))/0xb;if(_0xe9b08d===_0x2e3de3)break;else _0x307f90['push'](_0x307f90['shift']());}catch(_0x423076){_0x307f90['push'](_0x307f90['shift']());}}}(_0x13d7,0xefe8c));var require$$0=require(_0x3a34f0(0xbb)),require$$1=require(_0x3a34f0(0xa2));function getDefaultExportFromCjs(_0x31cd5f){const _0xc0deb0=_0x3a34f0;return _0x31cd5f&&_0x31cd5f[_0xc0deb0(0xe2)]&&Object[_0xc0deb0(0xb2)][_0xc0deb0(0xa6)][_0xc0deb0(0xe0)](_0x31cd5f,_0xc0deb0(0xdb))?_0x31cd5f[_0xc0deb0(0xdb)]:_0x31cd5f;}var okdbViewsBootstrapWorker$1={},okdbEnums,hasRequiredOkdbEnums;function requireOkdbEnums(){const _0x1f54ee=_0x3a34f0;if(hasRequiredOkdbEnums)return okdbEnums;hasRequiredOkdbEnums=0x1;const _0x44c77f={'PUT':_0x1f54ee(0xa4),'REMOVE':'remove','INDEX_DROP':_0x1f54ee(0xdd),'INDEX_REGISTER':_0x1f54ee(0xa8),'INDEX_RESET':_0x1f54ee(0xa0),'TYPE_REGISTER':_0x1f54ee(0xd2),'TYPE_DROP':_0x1f54ee(0x99),'FTS_REGISTER':_0x1f54ee(0xbd),'FTS_DROP':_0x1f54ee(0xa9),'FTS_RESET':_0x1f54ee(0x9f),'SCHEMA_SET':_0x1f54ee(0xb6),'SCHEMA_DROP':_0x1f54ee(0x9d),'TTL_SET':_0x1f54ee(0xba),'TTL_CLEAR':'clearTtl'},_0x537b6f={'SYSTEM_READY':'system:ready','SYSTEM_STOPPED':_0x1f54ee(0xb8),'SYSTEM_CLOCK_CHANGE':_0x1f54ee(0x97),'SYSTEM_POKE':_0x1f54ee(0xb5),'SYSTEM_DRAIN':'system:drain','SYSTEM_TYPE_DROP':_0x1f54ee(0xd5),'SYSTEM_PROC':_0x1f54ee(0xae),'SYSTEM_BUS_STATE_CHANGE':_0x1f54ee(0xdc),'ITEM_CREATE':'item:create','ITEM_UPDATE':'item:update','ITEM_REMOVE':_0x1f54ee(0xd8),'INDEX_RESET':'index:reset','INDEX_READY':_0x1f54ee(0xe9),'INDEX_PROGRESS':_0x1f54ee(0x94),'VIEW_PROGRESS':_0x1f54ee(0xca),'INDEX_DROP':_0x1f54ee(0xd3),'INDEX_REGISTERED':_0x1f54ee(0x98),'FTS_REGISTERED':_0x1f54ee(0x92),'FTS_DROP':_0x1f54ee(0xc5),'FTS_RESET':'fts:reset','SCHEMA_SET':'schema:set','SCHEMA_DROP':_0x1f54ee(0xa5),'UNIQUE_VIOLATION':_0x1f54ee(0xcc),'UNIQUE_VIOLATION_RESOLVED':_0x1f54ee(0x9c),'REF_VIOLATION':_0x1f54ee(0xbc),'REF_VIOLATION_RESOLVED':'ref:violation_resolved','SYNC_APPLY':_0x1f54ee(0xc9),'TXN_START':_0x1f54ee(0xc4),'TXN_END':_0x1f54ee(0xe1),'TXN_ROLLBACK':_0x1f54ee(0x93),'TYPE_REGISTERED':_0x1f54ee(0xab),'TYPE_DROP':_0x1f54ee(0xe3),'ENV_OPENED':'env:opened','ENV_REMOVED':_0x1f54ee(0xaf),'SYSTEM_ENV_RELEASE':'system:env_release','TTL_EXPIRED':_0x1f54ee(0xc7),'TTL_SET':_0x1f54ee(0xac),'TTL_CLEAR':_0x1f54ee(0xc1),'LICENSE_INVALID':_0x1f54ee(0xd4),'LICENSE_ADDED':_0x1f54ee(0xb3),'LICENSE_ACTIVATED':_0x1f54ee(0xda),'LICENSE_REMOVED':'license:removed'},_0x5940da={'CREATING':_0x1f54ee(0xa1),'RESETTING':'resetting','READY':'ready','DROPPING':'dropping','WAITING':_0x1f54ee(0x9a)},_0x111564={'CREATED':_0x1f54ee(0xdf),'STARTING':_0x1f54ee(0xe8),'STARTED':_0x1f54ee(0xe6),'STOPPING':'stopping','STOPPED':_0x1f54ee(0xc8)},_0x24c7a8={'CREATING':_0x1f54ee(0xa1),'READY':_0x1f54ee(0xcf),'HALTED':_0x1f54ee(0xce),'STOPPED':'stopped','RESETTING':_0x1f54ee(0xc2)},_0x1f0420=Object[_0x1f54ee(0xbf)]({'POKE':_0x1f54ee(0xd1),'DRAIN':_0x1f54ee(0xbe),'TYPE_DROP':_0x1f54ee(0xde),'PROC':'bus:proc','ENV_RELEASE':_0x1f54ee(0xe7)});return okdbEnums={'BUS_EVENTS':_0x1f0420,'CHANGE_ACTIONS':_0x44c77f,'EVENTS':_0x537b6f,'INDEX_STATE':_0x5940da,'OKDB_STATE':_0x111564,'VIEW_STATE':_0x24c7a8},okdbEnums;}var hasRequiredOkdbViewsBootstrapWorker;function _0x13d7(){const _0x3ff78f=['bus:env_release','starting','index:ready','fts:registered','txn:rollback','index:progress','error','8640935XfRIJc','system:clock_change','index:registered','dropType','waiting','catch','unique:violation_resolved','dropSchema','progress','resetFts','resetIndex','creating','./okdb','4pQdkaA','put','schema:drop','hasOwnProperty','10904568TUuvJw','registerIndex','dropFts','events','type:registered','ttl:set','3546507mgVGjC','system:proc','env:removed','_activateViewStorage','views','prototype','license:added','2HeDHbg','system:poke','setSchema','exit','system:stopped','_runBootstrapScanPhases','setTtl','worker_threads','ref:violation','registerFts','bus:drain','freeze','postMessage','ttl:clear','resetting','98mdXldY','txn:start','fts:drop','VIEW_PROGRESS','ttl:expired','stopped','sync:apply','view:progress','exports','unique:violation','26988269REIFDd','halted','ready','stack','bus:poke','registerType','index:drop','license:invalid','system:type_drop','597560YSOcUX','90tfyHDW','item:remove','313259ANhzGo','license:activated','default','system:bus_state_change','dropIndex','bus:type_drop','created','call','txn:end','__esModule','type:drop','1558390pkddlc','env','started'];_0x13d7=function(){return _0x3ff78f;};return _0x13d7();}function requireOkdbViewsBootstrapWorker(){const _0x32d029=_0x3a34f0;if(hasRequiredOkdbViewsBootstrapWorker)return okdbViewsBootstrapWorker$1;hasRequiredOkdbViewsBootstrapWorker=0x1;const {parentPort:_0x3ab872,workerData:_0x15e753}=require$$0,_0x337622=require$$1,{EVENTS:_0x440131}=requireOkdbEnums();async function _0x48552b(){const _0x2373a0=_0x4478,{rootPath:_0x12e2d0,envName:_0xe558ab,viewName:_0x6c0eaf,definition:_0x2a1841}=_0x15e753,_0x23fe3d=new _0x337622(_0x12e2d0,{'admin':![],'mcp':![],'timeMachine':![],'engines':![],'processors':![],'compaction':![],'_skipBootRuntime':!![],'processes':![]});await _0x23fe3d['open']();const _0x478560=_0x23fe3d[_0x2373a0(0xe5)](_0xe558ab);_0x478560[_0x2373a0(0xaa)]['on'](_0x440131[_0x2373a0(0xc6)],_0xfbe5c2=>{const _0x8a9444=_0x2373a0;if(_0xfbe5c2?.['name']!==_0x6c0eaf)return;try{_0x3ab872['postMessage']({'type':_0x8a9444(0x9e),'event':_0xfbe5c2});}catch{}}),await _0x478560[_0x2373a0(0xb1)]['_prepareViewDict'](_0x2a1841),await _0x478560[_0x2373a0(0xb1)][_0x2373a0(0xb0)](_0x6c0eaf,_0x2a1841),await _0x478560[_0x2373a0(0xb1)][_0x2373a0(0xb9)](_0x6c0eaf,_0x2a1841),_0x3ab872[_0x2373a0(0xc0)]({'type':'done'}),await _0x23fe3d['close'](),process['exit'](0x0);}return _0x48552b()[_0x32d029(0x9b)](_0x14f370=>{const _0x38aa02=_0x32d029;try{_0x3ab872[_0x38aa02(0xc0)]({'type':_0x38aa02(0x95),'error':_0x14f370['message']??String(_0x14f370),'stack':_0x14f370[_0x38aa02(0xd0)]});}catch{}process[_0x38aa02(0xb7)](0x1);}),okdbViewsBootstrapWorker$1;}function _0x4478(_0xec293,_0x23ce65){_0xec293=_0xec293-0x92;const _0x13d74=_0x13d7();let _0x44782a=_0x13d74[_0xec293];return _0x44782a;}var okdbViewsBootstrapWorkerExports=requireOkdbViewsBootstrapWorker(),okdbViewsBootstrapWorker=getDefaultExportFromCjs(okdbViewsBootstrapWorkerExports);module[_0x3a34f0(0xcb)]=okdbViewsBootstrapWorker;
|